-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockServer.js
65 lines (65 loc) · 1.8 KB
/
mockServer.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
exports.callReportData = function (req, res) {
res.send({
"callDate": "10 Jul 2018",
"callSubject": "Sales Discussion",
"companyName": "XYZ Corp",
"callType": "Multi-Purpose",
"status": "Open"
});
}
exports.gemsData = function (req, res) {
if (req.params.id === "SR-AE-20170909-TD1231") {
res.send({
"error": false,
"name": "XYZ Corp",
"productGroup": "Money Management",
"classification": "Complaint",
"createdDate": "09 Aug 2018",
"status": "Overdue",
"queryType": "Account Opening / Closing Related",
"lastUpdatedBy": "1109908 - LName, FName"
});
} else {
res.send({
"error": true,
"errorMessage": "No Case found. Please search for some other Case ID."
});
}
}
exports.COBData = function (req, res) {
res.send({
"customerName": "XYZ Corp",
"status":"In-Progress"
});
}
exports.dealData = function (req, res) {
res.send({
"dealName": "XYZ Corp Merger",
"stage": "Marketing"
});
}
exports.dealCCRStatus = function (req, res) {
res.send({
"dealName": "XYZ Corp Merger",
"ccrStatus": "Business Input Required"
});
}
exports.documentDetails = function (req, res) {
res.send({
"doc1": "HOS Sheet",
"doc2": "FATCA Report"
});
}
exports.confirmQuery = function (req, res) {
res.send({
"error": false,
"clientName": "XYZ Corp",
"name": "XYZ Corp",
"productGroup": "Money Management",
"classification": "Complaint",
"createdDate": "09 Aug 2018",
"status": "Overdue",
"queryType": "Account Opening / Closing Related",
"lastUpdatedBy": "1109908 - LName, FName"
});
}