@webex/calling 3.10.0-next.2 → 3.10.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CallHistory/CallHistory.js +128 -128
- package/dist/CallHistory/CallHistory.js.map +1 -1
- package/dist/CallHistory/CallHistory.test.js +278 -181
- package/dist/CallHistory/CallHistory.test.js.map +1 -1
- package/dist/CallSettings/CallSettings.js +17 -18
- package/dist/CallSettings/CallSettings.js.map +1 -1
- package/dist/CallSettings/CallSettings.test.js +14 -14
- package/dist/CallSettings/CallSettings.test.js.map +1 -1
- package/dist/CallSettings/UcmBackendConnector.js +71 -24
- package/dist/CallSettings/UcmBackendConnector.js.map +1 -1
- package/dist/CallSettings/UcmBackendConnector.test.js +136 -47
- package/dist/CallSettings/UcmBackendConnector.test.js.map +1 -1
- package/dist/CallSettings/WxCallBackendConnector.js +137 -138
- package/dist/CallSettings/WxCallBackendConnector.js.map +1 -1
- package/dist/CallSettings/WxCallBackendConnector.test.js +145 -149
- package/dist/CallSettings/WxCallBackendConnector.test.js.map +1 -1
- package/dist/CallingClient/CallingClient.js +297 -345
- package/dist/CallingClient/CallingClient.js.map +1 -1
- package/dist/CallingClient/CallingClient.test.js +267 -405
- package/dist/CallingClient/CallingClient.test.js.map +1 -1
- package/dist/CallingClient/calling/CallerId/index.js +7 -8
- package/dist/CallingClient/calling/CallerId/index.js.map +1 -1
- package/dist/CallingClient/calling/CallerId/index.test.js +24 -24
- package/dist/CallingClient/calling/CallerId/index.test.js.map +1 -1
- package/dist/CallingClient/calling/call.js +655 -611
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +762 -551
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/calling/callManager.js +15 -18
- package/dist/CallingClient/calling/callManager.js.map +1 -1
- package/dist/CallingClient/calling/callManager.test.js +113 -113
- package/dist/CallingClient/calling/callManager.test.js.map +1 -1
- package/dist/CallingClient/constants.js +5 -1
- package/dist/CallingClient/constants.js.map +1 -1
- package/dist/CallingClient/line/index.js +57 -74
- package/dist/CallingClient/line/index.js.map +1 -1
- package/dist/CallingClient/line/line.test.js +22 -22
- package/dist/CallingClient/line/line.test.js.map +1 -1
- package/dist/CallingClient/registration/register.js +657 -526
- package/dist/CallingClient/registration/register.js.map +1 -1
- package/dist/CallingClient/registration/register.test.js +657 -309
- package/dist/CallingClient/registration/register.test.js.map +1 -1
- package/dist/CallingClient/registration/types.js.map +1 -1
- package/dist/CallingClient/registration/webWorker.js +24 -24
- package/dist/CallingClient/registration/webWorker.js.map +1 -1
- package/dist/CallingClient/registration/webWorker.test.js +20 -20
- package/dist/CallingClient/registration/webWorker.test.js.map +1 -1
- package/dist/CallingClient/windowsChromiumIceWarmupUtils.js +28 -28
- package/dist/CallingClient/windowsChromiumIceWarmupUtils.js.map +1 -1
- package/dist/Contacts/ContactsClient.js +258 -258
- package/dist/Contacts/ContactsClient.js.map +1 -1
- package/dist/Contacts/ContactsClient.test.js +60 -60
- package/dist/Contacts/ContactsClient.test.js.map +1 -1
- package/dist/Errors/catalog/CallError.js +7 -10
- package/dist/Errors/catalog/CallError.js.map +1 -1
- package/dist/Errors/catalog/CallingDeviceError.js +6 -9
- package/dist/Errors/catalog/CallingDeviceError.js.map +1 -1
- package/dist/Errors/catalog/ExtendedError.js +6 -8
- package/dist/Errors/catalog/ExtendedError.js.map +1 -1
- package/dist/Errors/catalog/LineError.js +6 -9
- package/dist/Errors/catalog/LineError.js.map +1 -1
- package/dist/Events/impl/index.js +11 -13
- package/dist/Events/impl/index.js.map +1 -1
- package/dist/Metrics/index.js +1 -2
- package/dist/Metrics/index.js.map +1 -1
- package/dist/SDKConnector/index.js +1 -2
- package/dist/SDKConnector/index.js.map +1 -1
- package/dist/SDKConnector/types.js.map +1 -1
- package/dist/Voicemail/BroadworksBackendConnector.js +129 -128
- package/dist/Voicemail/BroadworksBackendConnector.js.map +1 -1
- package/dist/Voicemail/BroadworksBackendConnector.test.js +98 -98
- package/dist/Voicemail/BroadworksBackendConnector.test.js.map +1 -1
- package/dist/Voicemail/UcmBackendConnector.js +86 -86
- package/dist/Voicemail/UcmBackendConnector.js.map +1 -1
- package/dist/Voicemail/UcmBackendConnector.test.js +72 -72
- package/dist/Voicemail/UcmBackendConnector.test.js.map +1 -1
- package/dist/Voicemail/Voicemail.js +58 -61
- package/dist/Voicemail/Voicemail.js.map +1 -1
- package/dist/Voicemail/Voicemail.test.js +20 -20
- package/dist/Voicemail/Voicemail.test.js.map +1 -1
- package/dist/Voicemail/WxCallBackendConnector.js +116 -117
- package/dist/Voicemail/WxCallBackendConnector.js.map +1 -1
- package/dist/Voicemail/WxCallBackendConnector.test.js +140 -140
- package/dist/Voicemail/WxCallBackendConnector.test.js.map +1 -1
- package/dist/common/Utils.js +195 -165
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +432 -183
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/common/constants.js +3 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/testUtil.js +5 -4
- package/dist/common/testUtil.js.map +1 -1
- package/dist/module/CallHistory/CallHistory.js +7 -3
- package/dist/module/CallSettings/UcmBackendConnector.js +20 -6
- package/dist/module/CallSettings/WxCallBackendConnector.js +3 -1
- package/dist/module/CallingClient/CallingClient.js +83 -121
- package/dist/module/CallingClient/calling/call.js +60 -39
- package/dist/module/CallingClient/constants.js +3 -0
- package/dist/module/CallingClient/registration/register.js +82 -2
- package/dist/module/Contacts/ContactsClient.js +9 -5
- package/dist/module/Voicemail/BroadworksBackendConnector.js +3 -1
- package/dist/module/Voicemail/UcmBackendConnector.js +2 -1
- package/dist/module/common/Utils.js +27 -3
- package/dist/module/common/constants.js +2 -0
- package/dist/module/common/testUtil.js +1 -0
- package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
- package/dist/types/CallSettings/UcmBackendConnector.d.ts +1 -0
- package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -1
- package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -1
- package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts +4 -0
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/constants.d.ts +3 -0
- package/dist/types/CallingClient/constants.d.ts.map +1 -1
- package/dist/types/CallingClient/registration/register.d.ts +4 -0
- package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
- package/dist/types/CallingClient/registration/types.d.ts +6 -0
- package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
- package/dist/types/Contacts/ContactsClient.d.ts +1 -0
- package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
- package/dist/types/SDKConnector/types.d.ts +16 -0
- package/dist/types/SDKConnector/types.d.ts.map +1 -1
- package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -1
- package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -1
- package/dist/types/common/Utils.d.ts +1 -1
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/dist/types/common/constants.d.ts +2 -0
- package/dist/types/common/constants.d.ts.map +1 -1
- package/dist/types/common/testUtil.d.ts +1 -0
- package/dist/types/common/testUtil.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -71,16 +71,16 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
71
71
|
});
|
|
72
72
|
it('verify failure voicemail listing when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
73
73
|
var failurePayload, response, responseDetails;
|
|
74
|
-
return _regenerator.default.wrap(function
|
|
74
|
+
return _regenerator.default.wrap(function (_context) {
|
|
75
75
|
while (1) switch (_context.prev = _context.next) {
|
|
76
76
|
case 0:
|
|
77
77
|
failurePayload = {
|
|
78
78
|
statusCode: 400
|
|
79
79
|
};
|
|
80
80
|
webex.request.mockRejectedValueOnce(failurePayload);
|
|
81
|
-
_context.next =
|
|
81
|
+
_context.next = 1;
|
|
82
82
|
return wxCallBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC, true);
|
|
83
|
-
case
|
|
83
|
+
case 1:
|
|
84
84
|
response = _context.sent;
|
|
85
85
|
responseDetails = {
|
|
86
86
|
statusCode: 400,
|
|
@@ -105,7 +105,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
105
105
|
file: 'WxCallBackendConnector',
|
|
106
106
|
method: 'getVoicemailList'
|
|
107
107
|
});
|
|
108
|
-
case
|
|
108
|
+
case 2:
|
|
109
109
|
case "end":
|
|
110
110
|
return _context.stop();
|
|
111
111
|
}
|
|
@@ -113,7 +113,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
113
113
|
})));
|
|
114
114
|
it('verify failure voicemailMarkAsRead when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
115
115
|
var failurePayload, responseDetails, response;
|
|
116
|
-
return _regenerator.default.wrap(function
|
|
116
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
117
117
|
while (1) switch (_context2.prev = _context2.next) {
|
|
118
118
|
case 0:
|
|
119
119
|
failurePayload = {
|
|
@@ -127,9 +127,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
127
127
|
},
|
|
128
128
|
message: FAILURE
|
|
129
129
|
};
|
|
130
|
-
_context2.next =
|
|
130
|
+
_context2.next = 1;
|
|
131
131
|
return wxCallBackendConnector.voicemailMarkAsRead(messageId.$);
|
|
132
|
-
case
|
|
132
|
+
case 1:
|
|
133
133
|
response = _context2.sent;
|
|
134
134
|
expect(response).toStrictEqual(responseDetails);
|
|
135
135
|
expect(response.message).toBe(FAILURE);
|
|
@@ -147,7 +147,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
147
147
|
file: 'WxCallBackendConnector',
|
|
148
148
|
method: 'voicemailMarkAsRead'
|
|
149
149
|
});
|
|
150
|
-
case
|
|
150
|
+
case 2:
|
|
151
151
|
case "end":
|
|
152
152
|
return _context2.stop();
|
|
153
153
|
}
|
|
@@ -155,7 +155,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
155
155
|
})));
|
|
156
156
|
it('verify failure voicemailMarkAsUnread when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
157
157
|
var failurePayload, responseDetails, response;
|
|
158
|
-
return _regenerator.default.wrap(function
|
|
158
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
159
159
|
while (1) switch (_context3.prev = _context3.next) {
|
|
160
160
|
case 0:
|
|
161
161
|
failurePayload = {
|
|
@@ -169,9 +169,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
169
169
|
},
|
|
170
170
|
message: FAILURE
|
|
171
171
|
};
|
|
172
|
-
_context3.next =
|
|
172
|
+
_context3.next = 1;
|
|
173
173
|
return wxCallBackendConnector.voicemailMarkAsUnread(messageId.$);
|
|
174
|
-
case
|
|
174
|
+
case 1:
|
|
175
175
|
response = _context3.sent;
|
|
176
176
|
expect(response).toStrictEqual(responseDetails);
|
|
177
177
|
expect(response.message).toBe(FAILURE);
|
|
@@ -189,7 +189,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
189
189
|
file: 'WxCallBackendConnector',
|
|
190
190
|
method: 'voicemailMarkAsUnread'
|
|
191
191
|
});
|
|
192
|
-
case
|
|
192
|
+
case 2:
|
|
193
193
|
case "end":
|
|
194
194
|
return _context3.stop();
|
|
195
195
|
}
|
|
@@ -197,7 +197,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
197
197
|
})));
|
|
198
198
|
it('verify failure delete Voicemail when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
|
199
199
|
var failurePayload, responseDetails, response;
|
|
200
|
-
return _regenerator.default.wrap(function
|
|
200
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
201
201
|
while (1) switch (_context4.prev = _context4.next) {
|
|
202
202
|
case 0:
|
|
203
203
|
failurePayload = {
|
|
@@ -211,9 +211,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
211
211
|
},
|
|
212
212
|
message: FAILURE
|
|
213
213
|
};
|
|
214
|
-
_context4.next =
|
|
214
|
+
_context4.next = 1;
|
|
215
215
|
return wxCallBackendConnector.deleteVoicemail(messageId.$);
|
|
216
|
-
case
|
|
216
|
+
case 1:
|
|
217
217
|
response = _context4.sent;
|
|
218
218
|
expect(response).toStrictEqual(responseDetails);
|
|
219
219
|
expect(response.message).toBe(FAILURE);
|
|
@@ -231,7 +231,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
231
231
|
file: 'WxCallBackendConnector',
|
|
232
232
|
method: 'deleteVoicemail'
|
|
233
233
|
});
|
|
234
|
-
case
|
|
234
|
+
case 2:
|
|
235
235
|
case "end":
|
|
236
236
|
return _context4.stop();
|
|
237
237
|
}
|
|
@@ -239,7 +239,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
239
239
|
})));
|
|
240
240
|
it('verify failure for get transcript when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
241
241
|
var failurePayload, responseDetails, response;
|
|
242
|
-
return _regenerator.default.wrap(function
|
|
242
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
243
243
|
while (1) switch (_context5.prev = _context5.next) {
|
|
244
244
|
case 0:
|
|
245
245
|
failurePayload = {
|
|
@@ -253,9 +253,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
253
253
|
},
|
|
254
254
|
message: FAILURE
|
|
255
255
|
};
|
|
256
|
-
_context5.next =
|
|
256
|
+
_context5.next = 1;
|
|
257
257
|
return wxCallBackendConnector.getVMTranscript(messageId.$);
|
|
258
|
-
case
|
|
258
|
+
case 1:
|
|
259
259
|
response = _context5.sent;
|
|
260
260
|
expect(response).toStrictEqual(responseDetails);
|
|
261
261
|
expect(response === null || response === void 0 ? void 0 : response.message).toBe(FAILURE);
|
|
@@ -265,7 +265,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
265
265
|
file: 'WxCallBackendConnector',
|
|
266
266
|
method: 'getVMTranscript'
|
|
267
267
|
});
|
|
268
|
-
case
|
|
268
|
+
case 2:
|
|
269
269
|
case "end":
|
|
270
270
|
return _context5.stop();
|
|
271
271
|
}
|
|
@@ -273,16 +273,16 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
273
273
|
})));
|
|
274
274
|
it('verify failure voicemail listing when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
|
|
275
275
|
var failurePayload, response, responseDetails;
|
|
276
|
-
return _regenerator.default.wrap(function
|
|
276
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
277
277
|
while (1) switch (_context6.prev = _context6.next) {
|
|
278
278
|
case 0:
|
|
279
279
|
failurePayload = {
|
|
280
280
|
statusCode: 401
|
|
281
281
|
};
|
|
282
282
|
webex.request.mockRejectedValue(failurePayload);
|
|
283
|
-
_context6.next =
|
|
283
|
+
_context6.next = 1;
|
|
284
284
|
return wxCallBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC, true);
|
|
285
|
-
case
|
|
285
|
+
case 1:
|
|
286
286
|
response = _context6.sent;
|
|
287
287
|
responseDetails = {
|
|
288
288
|
statusCode: 401,
|
|
@@ -299,7 +299,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
299
299
|
file: 'WxCallBackendConnector',
|
|
300
300
|
method: 'getVoicemailList'
|
|
301
301
|
});
|
|
302
|
-
case
|
|
302
|
+
case 2:
|
|
303
303
|
case "end":
|
|
304
304
|
return _context6.stop();
|
|
305
305
|
}
|
|
@@ -307,7 +307,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
307
307
|
})));
|
|
308
308
|
it('verify failure voicemailMarkAsRead when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
|
|
309
309
|
var failurePayload, responseDetails, response;
|
|
310
|
-
return _regenerator.default.wrap(function
|
|
310
|
+
return _regenerator.default.wrap(function (_context7) {
|
|
311
311
|
while (1) switch (_context7.prev = _context7.next) {
|
|
312
312
|
case 0:
|
|
313
313
|
failurePayload = {
|
|
@@ -321,9 +321,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
321
321
|
},
|
|
322
322
|
message: FAILURE
|
|
323
323
|
};
|
|
324
|
-
_context7.next =
|
|
324
|
+
_context7.next = 1;
|
|
325
325
|
return wxCallBackendConnector.voicemailMarkAsRead(messageId.$);
|
|
326
|
-
case
|
|
326
|
+
case 1:
|
|
327
327
|
response = _context7.sent;
|
|
328
328
|
expect(response).toStrictEqual(responseDetails);
|
|
329
329
|
expect(response.message).toBe(FAILURE);
|
|
@@ -333,7 +333,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
333
333
|
file: 'WxCallBackendConnector',
|
|
334
334
|
method: 'voicemailMarkAsRead'
|
|
335
335
|
});
|
|
336
|
-
case
|
|
336
|
+
case 2:
|
|
337
337
|
case "end":
|
|
338
338
|
return _context7.stop();
|
|
339
339
|
}
|
|
@@ -341,7 +341,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
341
341
|
})));
|
|
342
342
|
it('verify failure voicemailMarkAsUnread when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
|
|
343
343
|
var failurePayload, responseDetails, response;
|
|
344
|
-
return _regenerator.default.wrap(function
|
|
344
|
+
return _regenerator.default.wrap(function (_context8) {
|
|
345
345
|
while (1) switch (_context8.prev = _context8.next) {
|
|
346
346
|
case 0:
|
|
347
347
|
failurePayload = {
|
|
@@ -355,9 +355,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
355
355
|
},
|
|
356
356
|
message: FAILURE
|
|
357
357
|
};
|
|
358
|
-
_context8.next =
|
|
358
|
+
_context8.next = 1;
|
|
359
359
|
return wxCallBackendConnector.voicemailMarkAsUnread(messageId.$);
|
|
360
|
-
case
|
|
360
|
+
case 1:
|
|
361
361
|
response = _context8.sent;
|
|
362
362
|
expect(response).toStrictEqual(responseDetails);
|
|
363
363
|
expect(response.message).toBe(FAILURE);
|
|
@@ -367,7 +367,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
367
367
|
file: 'WxCallBackendConnector',
|
|
368
368
|
method: 'voicemailMarkAsUnread'
|
|
369
369
|
});
|
|
370
|
-
case
|
|
370
|
+
case 2:
|
|
371
371
|
case "end":
|
|
372
372
|
return _context8.stop();
|
|
373
373
|
}
|
|
@@ -375,7 +375,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
375
375
|
})));
|
|
376
376
|
it('verify failure delete Voicemail when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
|
|
377
377
|
var failurePayload, responseDetails, response;
|
|
378
|
-
return _regenerator.default.wrap(function
|
|
378
|
+
return _regenerator.default.wrap(function (_context9) {
|
|
379
379
|
while (1) switch (_context9.prev = _context9.next) {
|
|
380
380
|
case 0:
|
|
381
381
|
failurePayload = {
|
|
@@ -389,9 +389,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
389
389
|
},
|
|
390
390
|
message: FAILURE
|
|
391
391
|
};
|
|
392
|
-
_context9.next =
|
|
392
|
+
_context9.next = 1;
|
|
393
393
|
return wxCallBackendConnector.deleteVoicemail(messageId.$);
|
|
394
|
-
case
|
|
394
|
+
case 1:
|
|
395
395
|
response = _context9.sent;
|
|
396
396
|
expect(response).toStrictEqual(responseDetails);
|
|
397
397
|
expect(response.message).toBe(FAILURE);
|
|
@@ -401,7 +401,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
401
401
|
file: 'WxCallBackendConnector',
|
|
402
402
|
method: 'deleteVoicemail'
|
|
403
403
|
});
|
|
404
|
-
case
|
|
404
|
+
case 2:
|
|
405
405
|
case "end":
|
|
406
406
|
return _context9.stop();
|
|
407
407
|
}
|
|
@@ -409,7 +409,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
409
409
|
})));
|
|
410
410
|
it('verify failure for get transcript when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0() {
|
|
411
411
|
var failurePayload, responseDetails, response;
|
|
412
|
-
return _regenerator.default.wrap(function
|
|
412
|
+
return _regenerator.default.wrap(function (_context0) {
|
|
413
413
|
while (1) switch (_context0.prev = _context0.next) {
|
|
414
414
|
case 0:
|
|
415
415
|
failurePayload = {
|
|
@@ -423,9 +423,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
423
423
|
},
|
|
424
424
|
message: FAILURE
|
|
425
425
|
};
|
|
426
|
-
_context0.next =
|
|
426
|
+
_context0.next = 1;
|
|
427
427
|
return wxCallBackendConnector.getVMTranscript(messageId.$);
|
|
428
|
-
case
|
|
428
|
+
case 1:
|
|
429
429
|
response = _context0.sent;
|
|
430
430
|
expect(response).toStrictEqual(responseDetails);
|
|
431
431
|
expect(response === null || response === void 0 ? void 0 : response.message).toBe(FAILURE);
|
|
@@ -435,7 +435,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
435
435
|
file: 'WxCallBackendConnector',
|
|
436
436
|
method: 'getVMTranscript'
|
|
437
437
|
});
|
|
438
|
-
case
|
|
438
|
+
case 2:
|
|
439
439
|
case "end":
|
|
440
440
|
return _context0.stop();
|
|
441
441
|
}
|
|
@@ -443,16 +443,16 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
443
443
|
})));
|
|
444
444
|
it('verify failure voicemail summary when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1() {
|
|
445
445
|
var failurePayload, response, responseDetails;
|
|
446
|
-
return _regenerator.default.wrap(function
|
|
446
|
+
return _regenerator.default.wrap(function (_context1) {
|
|
447
447
|
while (1) switch (_context1.prev = _context1.next) {
|
|
448
448
|
case 0:
|
|
449
449
|
failurePayload = {
|
|
450
450
|
statusCode: 400
|
|
451
451
|
};
|
|
452
452
|
webex.request.mockRejectedValueOnce(failurePayload);
|
|
453
|
-
_context1.next =
|
|
453
|
+
_context1.next = 1;
|
|
454
454
|
return wxCallBackendConnector.getVoicemailSummary();
|
|
455
|
-
case
|
|
455
|
+
case 1:
|
|
456
456
|
response = _context1.sent;
|
|
457
457
|
responseDetails = {
|
|
458
458
|
statusCode: 400,
|
|
@@ -481,7 +481,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
481
481
|
file: 'WxCallBackendConnector',
|
|
482
482
|
method: 'getVoicemailSummary'
|
|
483
483
|
});
|
|
484
|
-
case
|
|
484
|
+
case 2:
|
|
485
485
|
case "end":
|
|
486
486
|
return _context1.stop();
|
|
487
487
|
}
|
|
@@ -489,14 +489,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
489
489
|
})));
|
|
490
490
|
it('verify failure case for the voicemail content when api response is invalid', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10() {
|
|
491
491
|
var xsiActionsEndpointUrl, response;
|
|
492
|
-
return _regenerator.default.wrap(function
|
|
492
|
+
return _regenerator.default.wrap(function (_context10) {
|
|
493
493
|
while (1) switch (_context10.prev = _context10.next) {
|
|
494
494
|
case 0:
|
|
495
495
|
webex.request.mockResolvedValueOnce({});
|
|
496
496
|
xsiActionsEndpointUrl = _voicemailFixture.mockWXCData.body.items[0].xsiActionsEndpoint;
|
|
497
|
-
_context10.next =
|
|
497
|
+
_context10.next = 1;
|
|
498
498
|
return wxCallBackendConnector.getVoicemailContent(messageId);
|
|
499
|
-
case
|
|
499
|
+
case 1:
|
|
500
500
|
response = _context10.sent;
|
|
501
501
|
expect(response).toStrictEqual(_voicemailFixture.responseDetails422);
|
|
502
502
|
expect(webex.request).toBeCalledOnceWith({
|
|
@@ -508,7 +508,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
508
508
|
file: 'WxCallBackendConnector',
|
|
509
509
|
method: 'getVoicemailContent'
|
|
510
510
|
});
|
|
511
|
-
case
|
|
511
|
+
case 2:
|
|
512
512
|
case "end":
|
|
513
513
|
return _context10.stop();
|
|
514
514
|
}
|
|
@@ -527,7 +527,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
527
527
|
});
|
|
528
528
|
it('verify successfully fetching voicemail summary with newMessages and newUrgentMessage', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11() {
|
|
529
529
|
var mockRawRequest, mockVoicemailSummary, voicemailSummary, response, voicemailSummaryResponseInfo, responseDetails;
|
|
530
|
-
return _regenerator.default.wrap(function
|
|
530
|
+
return _regenerator.default.wrap(function (_context11) {
|
|
531
531
|
while (1) switch (_context11.prev = _context11.next) {
|
|
532
532
|
case 0:
|
|
533
533
|
mockRawRequest = {
|
|
@@ -539,9 +539,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
539
539
|
};
|
|
540
540
|
voicemailSummary = mockVoicemailSummary;
|
|
541
541
|
webex.request.mockResolvedValueOnce(voicemailSummary);
|
|
542
|
-
_context11.next =
|
|
542
|
+
_context11.next = 1;
|
|
543
543
|
return wxCallBackendConnector.getVoicemailSummary();
|
|
544
|
-
case
|
|
544
|
+
case 1:
|
|
545
545
|
response = _context11.sent;
|
|
546
546
|
voicemailSummaryResponseInfo = {
|
|
547
547
|
voicemailSummary: {
|
|
@@ -570,7 +570,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
570
570
|
file: 'WxCallBackendConnector',
|
|
571
571
|
method: 'getVoicemailSummary'
|
|
572
572
|
});
|
|
573
|
-
case
|
|
573
|
+
case 2:
|
|
574
574
|
case "end":
|
|
575
575
|
return _context11.stop();
|
|
576
576
|
}
|
|
@@ -578,7 +578,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
578
578
|
})));
|
|
579
579
|
it('verify successfully fetching voicemail summary with oldMessages and oldUrgentMessage', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12() {
|
|
580
580
|
var mockRawRequest, mockVoicemailSummary, voicemailSummary, response, voicemailSummaryResponseInfo, responseDetails;
|
|
581
|
-
return _regenerator.default.wrap(function
|
|
581
|
+
return _regenerator.default.wrap(function (_context12) {
|
|
582
582
|
while (1) switch (_context12.prev = _context12.next) {
|
|
583
583
|
case 0:
|
|
584
584
|
mockRawRequest = {
|
|
@@ -590,9 +590,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
590
590
|
};
|
|
591
591
|
voicemailSummary = mockVoicemailSummary;
|
|
592
592
|
webex.request.mockResolvedValueOnce(voicemailSummary);
|
|
593
|
-
_context12.next =
|
|
593
|
+
_context12.next = 1;
|
|
594
594
|
return wxCallBackendConnector.getVoicemailSummary();
|
|
595
|
-
case
|
|
595
|
+
case 1:
|
|
596
596
|
response = _context12.sent;
|
|
597
597
|
voicemailSummaryResponseInfo = {
|
|
598
598
|
voicemailSummary: {
|
|
@@ -621,7 +621,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
621
621
|
file: 'WxCallBackendConnector',
|
|
622
622
|
method: 'getVoicemailSummary'
|
|
623
623
|
});
|
|
624
|
-
case
|
|
624
|
+
case 2:
|
|
625
625
|
case "end":
|
|
626
626
|
return _context12.stop();
|
|
627
627
|
}
|
|
@@ -629,7 +629,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
629
629
|
})));
|
|
630
630
|
it('verify that PENDING transcription status is passed while transcribing is in progress in the backend', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13() {
|
|
631
631
|
var pending, mockPendingResponse, mockVoicemailTranscript, voicemailTranscript, response, responseDetails;
|
|
632
|
-
return _regenerator.default.wrap(function
|
|
632
|
+
return _regenerator.default.wrap(function (_context13) {
|
|
633
633
|
while (1) switch (_context13.prev = _context13.next) {
|
|
634
634
|
case 0:
|
|
635
635
|
pending = 'PENDING';
|
|
@@ -641,9 +641,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
641
641
|
});
|
|
642
642
|
voicemailTranscript = mockVoicemailTranscript;
|
|
643
643
|
webex.request.mockResolvedValueOnce(voicemailTranscript);
|
|
644
|
-
_context13.next =
|
|
644
|
+
_context13.next = 1;
|
|
645
645
|
return wxCallBackendConnector.getVMTranscript('98099432-9d81-4224-bd04-00def73cd262');
|
|
646
|
-
case
|
|
646
|
+
case 1:
|
|
647
647
|
response = _context13.sent;
|
|
648
648
|
responseDetails = {
|
|
649
649
|
data: {
|
|
@@ -654,7 +654,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
654
654
|
};
|
|
655
655
|
expect(response === null || response === void 0 ? void 0 : response.message).toBe(pending);
|
|
656
656
|
expect(response).toStrictEqual(responseDetails);
|
|
657
|
-
case
|
|
657
|
+
case 2:
|
|
658
658
|
case "end":
|
|
659
659
|
return _context13.stop();
|
|
660
660
|
}
|
|
@@ -662,7 +662,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
662
662
|
})));
|
|
663
663
|
it('verify successfully fetching voicemail transcript', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14() {
|
|
664
664
|
var ready, mockRawRequest, mockVoicemailTranscript, voicemailTranscript, response, voicemailResponseInfo, responseDetails;
|
|
665
|
-
return _regenerator.default.wrap(function
|
|
665
|
+
return _regenerator.default.wrap(function (_context14) {
|
|
666
666
|
while (1) switch (_context14.prev = _context14.next) {
|
|
667
667
|
case 0:
|
|
668
668
|
ready = 'READY';
|
|
@@ -674,9 +674,9 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
674
674
|
});
|
|
675
675
|
voicemailTranscript = mockVoicemailTranscript;
|
|
676
676
|
webex.request.mockResolvedValueOnce(voicemailTranscript);
|
|
677
|
-
_context14.next =
|
|
677
|
+
_context14.next = 1;
|
|
678
678
|
return wxCallBackendConnector.getVMTranscript('98099432-9d81-4224-bd04-00def73cd262');
|
|
679
|
-
case
|
|
679
|
+
case 1:
|
|
680
680
|
response = _context14.sent;
|
|
681
681
|
voicemailResponseInfo = {
|
|
682
682
|
voicemailTranscript: 'Hi, uh, testing, voice mail script, so dropping this message to be able to fetch it later.'
|
|
@@ -688,7 +688,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
688
688
|
};
|
|
689
689
|
expect(response === null || response === void 0 ? void 0 : response.message).toBe(ready);
|
|
690
690
|
expect(response).toStrictEqual(responseDetails);
|
|
691
|
-
case
|
|
691
|
+
case 2:
|
|
692
692
|
case "end":
|
|
693
693
|
return _context14.stop();
|
|
694
694
|
}
|
|
@@ -696,14 +696,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
696
696
|
})));
|
|
697
697
|
it('verify successful voicemail listing in descending order with offset 0 and limit 20', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15() {
|
|
698
698
|
var voiceMailPayload, response, voicemailResponseInfo, responseDetails;
|
|
699
|
-
return _regenerator.default.wrap(function
|
|
699
|
+
return _regenerator.default.wrap(function (_context15) {
|
|
700
700
|
while (1) switch (_context15.prev = _context15.next) {
|
|
701
701
|
case 0:
|
|
702
702
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
703
703
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
704
|
-
_context15.next =
|
|
704
|
+
_context15.next = 1;
|
|
705
705
|
return wxCallBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC, true);
|
|
706
|
-
case
|
|
706
|
+
case 1:
|
|
707
707
|
response = _context15.sent;
|
|
708
708
|
voicemailResponseInfo = {
|
|
709
709
|
voicemailList: _voicemailFixture.getDescVoicemailListJsonWXC.body.VoiceMessagingMessages.messageInfoList.messageInfo
|
|
@@ -721,7 +721,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
721
721
|
file: 'WxCallBackendConnector',
|
|
722
722
|
method: 'getVoicemailList'
|
|
723
723
|
});
|
|
724
|
-
case
|
|
724
|
+
case 2:
|
|
725
725
|
case "end":
|
|
726
726
|
return _context15.stop();
|
|
727
727
|
}
|
|
@@ -729,14 +729,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
729
729
|
})));
|
|
730
730
|
it('verify successful voicemail listing in ascending order with offset 0 and limit 20', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee16() {
|
|
731
731
|
var voiceMailPayload, response, voicemailResponseInfo, responseDetails;
|
|
732
|
-
return _regenerator.default.wrap(function
|
|
732
|
+
return _regenerator.default.wrap(function (_context16) {
|
|
733
733
|
while (1) switch (_context16.prev = _context16.next) {
|
|
734
734
|
case 0:
|
|
735
735
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
736
736
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
737
|
-
_context16.next =
|
|
737
|
+
_context16.next = 1;
|
|
738
738
|
return wxCallBackendConnector.getVoicemailList(0, 20, _types2.SORT.ASC, true);
|
|
739
|
-
case
|
|
739
|
+
case 1:
|
|
740
740
|
response = _context16.sent;
|
|
741
741
|
voicemailResponseInfo = {
|
|
742
742
|
voicemailList: _voicemailFixture.getAscVoicemailListJsonWXC.body.VoiceMessagingMessages.messageInfoList.messageInfo
|
|
@@ -754,7 +754,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
754
754
|
file: 'WxCallBackendConnector',
|
|
755
755
|
method: 'getVoicemailList'
|
|
756
756
|
});
|
|
757
|
-
case
|
|
757
|
+
case 2:
|
|
758
758
|
case "end":
|
|
759
759
|
return _context16.stop();
|
|
760
760
|
}
|
|
@@ -762,14 +762,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
762
762
|
})));
|
|
763
763
|
it('verify successful voicemail listing in descending order with offset 0 and limit 2 with incorrect SORT param', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee17() {
|
|
764
764
|
var voiceMailPayload, response, voicemailResponseInfo, responseDetails;
|
|
765
|
-
return _regenerator.default.wrap(function
|
|
765
|
+
return _regenerator.default.wrap(function (_context17) {
|
|
766
766
|
while (1) switch (_context17.prev = _context17.next) {
|
|
767
767
|
case 0:
|
|
768
768
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
769
769
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
770
|
-
_context17.next =
|
|
770
|
+
_context17.next = 1;
|
|
771
771
|
return wxCallBackendConnector.getVoicemailList(0, 2, 'abcd', true);
|
|
772
|
-
case
|
|
772
|
+
case 1:
|
|
773
773
|
response = _context17.sent;
|
|
774
774
|
voicemailResponseInfo = {
|
|
775
775
|
voicemailList: _voicemailFixture.getDescVoicemailListJsonWXC.body.VoiceMessagingMessages.messageInfoList.messageInfo.slice(0, 2)
|
|
@@ -787,7 +787,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
787
787
|
file: 'WxCallBackendConnector',
|
|
788
788
|
method: 'getVoicemailList'
|
|
789
789
|
});
|
|
790
|
-
case
|
|
790
|
+
case 2:
|
|
791
791
|
case "end":
|
|
792
792
|
return _context17.stop();
|
|
793
793
|
}
|
|
@@ -795,14 +795,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
795
795
|
})));
|
|
796
796
|
it('verify successful voicemail listing in ascending order with offset 0 and limit 4', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee18() {
|
|
797
797
|
var voiceMailPayload, response, voicemailResponseInfo, responseDetails;
|
|
798
|
-
return _regenerator.default.wrap(function
|
|
798
|
+
return _regenerator.default.wrap(function (_context18) {
|
|
799
799
|
while (1) switch (_context18.prev = _context18.next) {
|
|
800
800
|
case 0:
|
|
801
801
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
802
802
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
803
|
-
_context18.next =
|
|
803
|
+
_context18.next = 1;
|
|
804
804
|
return wxCallBackendConnector.getVoicemailList(0, 4, _types2.SORT.ASC, true);
|
|
805
|
-
case
|
|
805
|
+
case 1:
|
|
806
806
|
response = _context18.sent;
|
|
807
807
|
voicemailResponseInfo = {
|
|
808
808
|
voicemailList: _voicemailFixture.getAscVoicemailListJsonWXC.body.VoiceMessagingMessages.messageInfoList.messageInfo.slice(0, 4)
|
|
@@ -820,7 +820,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
820
820
|
file: 'WxCallBackendConnector',
|
|
821
821
|
method: 'getVoicemailList'
|
|
822
822
|
});
|
|
823
|
-
case
|
|
823
|
+
case 2:
|
|
824
824
|
case "end":
|
|
825
825
|
return _context18.stop();
|
|
826
826
|
}
|
|
@@ -828,13 +828,13 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
828
828
|
})));
|
|
829
829
|
it('verify empty voicemail list data', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee19() {
|
|
830
830
|
var response, voicemailResponseInfo, responseDetails;
|
|
831
|
-
return _regenerator.default.wrap(function
|
|
831
|
+
return _regenerator.default.wrap(function (_context19) {
|
|
832
832
|
while (1) switch (_context19.prev = _context19.next) {
|
|
833
833
|
case 0:
|
|
834
834
|
webex.request.mockResolvedValueOnce(_voicemailFixture.getEmptyVoicemailListJsonWxC);
|
|
835
|
-
_context19.next =
|
|
835
|
+
_context19.next = 1;
|
|
836
836
|
return wxCallBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC, true);
|
|
837
|
-
case
|
|
837
|
+
case 1:
|
|
838
838
|
response = _context19.sent;
|
|
839
839
|
voicemailResponseInfo = {
|
|
840
840
|
voicemailList: []
|
|
@@ -851,7 +851,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
851
851
|
file: 'WxCallBackendConnector',
|
|
852
852
|
method: 'getVoicemailList'
|
|
853
853
|
});
|
|
854
|
-
case
|
|
854
|
+
case 2:
|
|
855
855
|
case "end":
|
|
856
856
|
return _context19.stop();
|
|
857
857
|
}
|
|
@@ -859,13 +859,13 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
859
859
|
})));
|
|
860
860
|
it('verify empty voicemail list data when response data is in invalid format', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee20() {
|
|
861
861
|
var response, voicemailResponseInfo, responseDetails;
|
|
862
|
-
return _regenerator.default.wrap(function
|
|
862
|
+
return _regenerator.default.wrap(function (_context20) {
|
|
863
863
|
while (1) switch (_context20.prev = _context20.next) {
|
|
864
864
|
case 0:
|
|
865
865
|
webex.request.mockResolvedValueOnce(_voicemailFixture.getInvalidVoicemailListJsonWxC);
|
|
866
|
-
_context20.next =
|
|
866
|
+
_context20.next = 1;
|
|
867
867
|
return wxCallBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC, true);
|
|
868
|
-
case
|
|
868
|
+
case 1:
|
|
869
869
|
response = _context20.sent;
|
|
870
870
|
voicemailResponseInfo = {
|
|
871
871
|
voicemailList: [{}]
|
|
@@ -882,7 +882,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
882
882
|
file: 'WxCallBackendConnector',
|
|
883
883
|
method: 'getVoicemailList'
|
|
884
884
|
});
|
|
885
|
-
case
|
|
885
|
+
case 2:
|
|
886
886
|
case "end":
|
|
887
887
|
return _context20.stop();
|
|
888
888
|
}
|
|
@@ -890,16 +890,16 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
890
890
|
})));
|
|
891
891
|
it('verify successful fetching of voicemail list without refresh', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee21() {
|
|
892
892
|
var voiceMailPayload, vmEncodedList, response, voicemailResponseInfo, responseDetails;
|
|
893
|
-
return _regenerator.default.wrap(function
|
|
893
|
+
return _regenerator.default.wrap(function (_context21) {
|
|
894
894
|
while (1) switch (_context21.prev = _context21.next) {
|
|
895
895
|
case 0:
|
|
896
896
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
897
897
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
898
898
|
vmEncodedList = Buffer.from((0, _stringify.default)(_voicemailFixture.getAscVoicemailListJsonWXC.body.VoiceMessagingMessages.messageInfoList.messageInfo), 'utf8').toString('base64');
|
|
899
899
|
sessionStorage.setItem(CONTEXT, vmEncodedList.toString());
|
|
900
|
-
_context21.next =
|
|
900
|
+
_context21.next = 1;
|
|
901
901
|
return wxCallBackendConnector.getVoicemailList(0, 4, _types2.SORT.ASC, false);
|
|
902
|
-
case
|
|
902
|
+
case 1:
|
|
903
903
|
response = _context21.sent;
|
|
904
904
|
voicemailResponseInfo = {
|
|
905
905
|
voicemailList: _voicemailFixture.getAscVoicemailListJsonWXC.body.VoiceMessagingMessages.messageInfoList.messageInfo.slice(0, 4)
|
|
@@ -918,7 +918,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
918
918
|
method: 'getVoicemailList'
|
|
919
919
|
});
|
|
920
920
|
sessionStorage.removeItem(CONTEXT);
|
|
921
|
-
case
|
|
921
|
+
case 2:
|
|
922
922
|
case "end":
|
|
923
923
|
return _context21.stop();
|
|
924
924
|
}
|
|
@@ -926,14 +926,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
926
926
|
})));
|
|
927
927
|
it('verify successful voicemailMarkAsRead', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee22() {
|
|
928
928
|
var voiceMailPayload, response;
|
|
929
|
-
return _regenerator.default.wrap(function
|
|
929
|
+
return _regenerator.default.wrap(function (_context22) {
|
|
930
930
|
while (1) switch (_context22.prev = _context22.next) {
|
|
931
931
|
case 0:
|
|
932
932
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
933
933
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
934
|
-
_context22.next =
|
|
934
|
+
_context22.next = 1;
|
|
935
935
|
return wxCallBackendConnector.voicemailMarkAsRead(messageId.$);
|
|
936
|
-
case
|
|
936
|
+
case 1:
|
|
937
937
|
response = _context22.sent;
|
|
938
938
|
expect(response).toStrictEqual(EMPTY_SUCCESS_RESPONSE);
|
|
939
939
|
expect(infoSpy).toHaveBeenCalledWith("".concat(_constants2.METHOD_START_MESSAGE, " with messageId: ").concat(messageId.$), {
|
|
@@ -944,7 +944,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
944
944
|
file: 'WxCallBackendConnector',
|
|
945
945
|
method: 'voicemailMarkAsRead'
|
|
946
946
|
});
|
|
947
|
-
case
|
|
947
|
+
case 2:
|
|
948
948
|
case "end":
|
|
949
949
|
return _context22.stop();
|
|
950
950
|
}
|
|
@@ -952,14 +952,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
952
952
|
})));
|
|
953
953
|
it('verify successful voicemailMarkAsUnread', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee23() {
|
|
954
954
|
var voiceMailPayload, response;
|
|
955
|
-
return _regenerator.default.wrap(function
|
|
955
|
+
return _regenerator.default.wrap(function (_context23) {
|
|
956
956
|
while (1) switch (_context23.prev = _context23.next) {
|
|
957
957
|
case 0:
|
|
958
958
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
959
959
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
960
|
-
_context23.next =
|
|
960
|
+
_context23.next = 1;
|
|
961
961
|
return wxCallBackendConnector.voicemailMarkAsUnread(messageId.$);
|
|
962
|
-
case
|
|
962
|
+
case 1:
|
|
963
963
|
response = _context23.sent;
|
|
964
964
|
expect(response).toStrictEqual(EMPTY_SUCCESS_RESPONSE);
|
|
965
965
|
expect(infoSpy).toHaveBeenCalledWith("".concat(_constants2.METHOD_START_MESSAGE, " with messageId: ").concat(messageId.$), {
|
|
@@ -970,7 +970,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
970
970
|
file: 'WxCallBackendConnector',
|
|
971
971
|
method: 'voicemailMarkAsUnread'
|
|
972
972
|
});
|
|
973
|
-
case
|
|
973
|
+
case 2:
|
|
974
974
|
case "end":
|
|
975
975
|
return _context23.stop();
|
|
976
976
|
}
|
|
@@ -978,14 +978,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
978
978
|
})));
|
|
979
979
|
it('verify successful deleteVoicemail', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee24() {
|
|
980
980
|
var voiceMailPayload, response;
|
|
981
|
-
return _regenerator.default.wrap(function
|
|
981
|
+
return _regenerator.default.wrap(function (_context24) {
|
|
982
982
|
while (1) switch (_context24.prev = _context24.next) {
|
|
983
983
|
case 0:
|
|
984
984
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
985
985
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
986
|
-
_context24.next =
|
|
986
|
+
_context24.next = 1;
|
|
987
987
|
return wxCallBackendConnector.deleteVoicemail(messageId.$);
|
|
988
|
-
case
|
|
988
|
+
case 1:
|
|
989
989
|
response = _context24.sent;
|
|
990
990
|
expect(response).toStrictEqual(EMPTY_SUCCESS_RESPONSE);
|
|
991
991
|
expect(infoSpy).toHaveBeenCalledWith("".concat(_constants2.METHOD_START_MESSAGE, " with messageId: ").concat(messageId.$), {
|
|
@@ -996,7 +996,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
996
996
|
file: 'WxCallBackendConnector',
|
|
997
997
|
method: 'deleteVoicemail'
|
|
998
998
|
});
|
|
999
|
-
case
|
|
999
|
+
case 2:
|
|
1000
1000
|
case "end":
|
|
1001
1001
|
return _context24.stop();
|
|
1002
1002
|
}
|
|
@@ -1004,26 +1004,26 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1004
1004
|
})));
|
|
1005
1005
|
it('verify resolveContact', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee25() {
|
|
1006
1006
|
var voiceMailPayload, samplePeopleListResponse, displayInfo;
|
|
1007
|
-
return _regenerator.default.wrap(function
|
|
1007
|
+
return _regenerator.default.wrap(function (_context25) {
|
|
1008
1008
|
while (1) switch (_context25.prev = _context25.next) {
|
|
1009
1009
|
case 0:
|
|
1010
1010
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1011
1011
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1012
1012
|
samplePeopleListResponse = (0, _testUtil.getSamplePeopleListResponse)();
|
|
1013
1013
|
webex.people.list.mockResolvedValue(samplePeopleListResponse);
|
|
1014
|
-
_context25.next =
|
|
1014
|
+
_context25.next = 1;
|
|
1015
1015
|
return wxCallBackendConnector.resolveContact({
|
|
1016
1016
|
name: {
|
|
1017
1017
|
$: 'Name'
|
|
1018
1018
|
}
|
|
1019
1019
|
});
|
|
1020
|
-
case
|
|
1020
|
+
case 1:
|
|
1021
1021
|
displayInfo = _context25.sent;
|
|
1022
1022
|
expect(displayInfo === null || displayInfo === void 0 ? void 0 : displayInfo.id).toStrictEqual(Buffer.from(samplePeopleListResponse.items[0].id, 'base64').toString('binary').split('/').pop());
|
|
1023
1023
|
expect(displayInfo === null || displayInfo === void 0 ? void 0 : displayInfo.name).toStrictEqual(samplePeopleListResponse.items[0].displayName);
|
|
1024
1024
|
expect(displayInfo === null || displayInfo === void 0 ? void 0 : displayInfo.num).toStrictEqual(samplePeopleListResponse.items[0].phoneNumbers[0].value);
|
|
1025
1025
|
expect(displayInfo === null || displayInfo === void 0 ? void 0 : displayInfo.avatarSrc).toStrictEqual(samplePeopleListResponse.items[0].avatar);
|
|
1026
|
-
case
|
|
1026
|
+
case 2:
|
|
1027
1027
|
case "end":
|
|
1028
1028
|
return _context25.stop();
|
|
1029
1029
|
}
|
|
@@ -1034,7 +1034,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1034
1034
|
webex.config.fedramp = true;
|
|
1035
1035
|
var MOCK_FEDRAMP_URL = 'https://mock-fedramp-url/com.broadsoft.xsi-actions';
|
|
1036
1036
|
beforeAll(/*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee26() {
|
|
1037
|
-
return _regenerator.default.wrap(function
|
|
1037
|
+
return _regenerator.default.wrap(function (_context26) {
|
|
1038
1038
|
while (1) switch (_context26.prev = _context26.next) {
|
|
1039
1039
|
case 0:
|
|
1040
1040
|
webex.credentials.getUserToken.mockResolvedValue('mockAuthToken');
|
|
@@ -1043,12 +1043,12 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1043
1043
|
level: _types.LOGGER.INFO
|
|
1044
1044
|
});
|
|
1045
1045
|
jest.spyOn(webex, 'request');
|
|
1046
|
-
_context26.next =
|
|
1046
|
+
_context26.next = 1;
|
|
1047
1047
|
return wxCallBackendConnector.init();
|
|
1048
|
-
case
|
|
1048
|
+
case 1:
|
|
1049
1049
|
wxCallBackendConnector['context'] = CONTEXT;
|
|
1050
1050
|
wxCallBackendConnector.getSDKConnector();
|
|
1051
|
-
case
|
|
1051
|
+
case 2:
|
|
1052
1052
|
case "end":
|
|
1053
1053
|
return _context26.stop();
|
|
1054
1054
|
}
|
|
@@ -1061,14 +1061,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1061
1061
|
});
|
|
1062
1062
|
it('getVoicemailList: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee27() {
|
|
1063
1063
|
var voiceMailPayload;
|
|
1064
|
-
return _regenerator.default.wrap(function
|
|
1064
|
+
return _regenerator.default.wrap(function (_context27) {
|
|
1065
1065
|
while (1) switch (_context27.prev = _context27.next) {
|
|
1066
1066
|
case 0:
|
|
1067
1067
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1068
1068
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1069
|
-
_context27.next =
|
|
1069
|
+
_context27.next = 1;
|
|
1070
1070
|
return wxCallBackendConnector.getVoicemailList(0, 4, _types2.SORT.ASC, true);
|
|
1071
|
-
case
|
|
1071
|
+
case 1:
|
|
1072
1072
|
expect(webex.request).toBeCalledOnceWith({
|
|
1073
1073
|
method: _types2.HTTP_METHODS.GET,
|
|
1074
1074
|
uri: "".concat(MOCK_FEDRAMP_URL, "/v2.0/user/").concat(_voicemailFixture.userId, "/VoiceMessagingMessages?format=json"),
|
|
@@ -1076,7 +1076,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1076
1076
|
Authorization: 'mockAuthToken'
|
|
1077
1077
|
}
|
|
1078
1078
|
});
|
|
1079
|
-
case
|
|
1079
|
+
case 2:
|
|
1080
1080
|
case "end":
|
|
1081
1081
|
return _context27.stop();
|
|
1082
1082
|
}
|
|
@@ -1084,14 +1084,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1084
1084
|
})));
|
|
1085
1085
|
it('getVoicemailContent: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee28() {
|
|
1086
1086
|
var voiceMailPayload;
|
|
1087
|
-
return _regenerator.default.wrap(function
|
|
1087
|
+
return _regenerator.default.wrap(function (_context28) {
|
|
1088
1088
|
while (1) switch (_context28.prev = _context28.next) {
|
|
1089
1089
|
case 0:
|
|
1090
1090
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1091
1091
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1092
|
-
_context28.next =
|
|
1092
|
+
_context28.next = 1;
|
|
1093
1093
|
return wxCallBackendConnector.getVoicemailContent(messageId.$);
|
|
1094
|
-
case
|
|
1094
|
+
case 1:
|
|
1095
1095
|
expect(webex.request).toBeCalledOnceWith({
|
|
1096
1096
|
method: _types2.HTTP_METHODS.GET,
|
|
1097
1097
|
uri: "".concat(MOCK_FEDRAMP_URL).concat(_voicemailFixture.braodworksUserMessageInfo, "/").concat(_voicemailFixture.broadworksUserMessageId),
|
|
@@ -1099,7 +1099,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1099
1099
|
Authorization: 'mockAuthToken'
|
|
1100
1100
|
}
|
|
1101
1101
|
});
|
|
1102
|
-
case
|
|
1102
|
+
case 2:
|
|
1103
1103
|
case "end":
|
|
1104
1104
|
return _context28.stop();
|
|
1105
1105
|
}
|
|
@@ -1107,14 +1107,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1107
1107
|
})));
|
|
1108
1108
|
it('getVoicemailSummary: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee29() {
|
|
1109
1109
|
var voiceMailPayload;
|
|
1110
|
-
return _regenerator.default.wrap(function
|
|
1110
|
+
return _regenerator.default.wrap(function (_context29) {
|
|
1111
1111
|
while (1) switch (_context29.prev = _context29.next) {
|
|
1112
1112
|
case 0:
|
|
1113
1113
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1114
1114
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1115
|
-
_context29.next =
|
|
1115
|
+
_context29.next = 1;
|
|
1116
1116
|
return wxCallBackendConnector.getVoicemailSummary();
|
|
1117
|
-
case
|
|
1117
|
+
case 1:
|
|
1118
1118
|
expect(webex.request).toBeCalledOnceWith({
|
|
1119
1119
|
method: _types2.HTTP_METHODS.GET,
|
|
1120
1120
|
uri: "".concat(MOCK_FEDRAMP_URL, "/v2.0/user/").concat(_voicemailFixture.userId, "/calls/MessageSummary"),
|
|
@@ -1122,7 +1122,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1122
1122
|
Authorization: 'mockAuthToken'
|
|
1123
1123
|
}
|
|
1124
1124
|
});
|
|
1125
|
-
case
|
|
1125
|
+
case 2:
|
|
1126
1126
|
case "end":
|
|
1127
1127
|
return _context29.stop();
|
|
1128
1128
|
}
|
|
@@ -1130,14 +1130,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1130
1130
|
})));
|
|
1131
1131
|
it('voicemailMarkAsRead: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee30() {
|
|
1132
1132
|
var voiceMailPayload;
|
|
1133
|
-
return _regenerator.default.wrap(function
|
|
1133
|
+
return _regenerator.default.wrap(function (_context30) {
|
|
1134
1134
|
while (1) switch (_context30.prev = _context30.next) {
|
|
1135
1135
|
case 0:
|
|
1136
1136
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1137
1137
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1138
|
-
_context30.next =
|
|
1138
|
+
_context30.next = 1;
|
|
1139
1139
|
return wxCallBackendConnector.voicemailMarkAsRead(messageId.$);
|
|
1140
|
-
case
|
|
1140
|
+
case 1:
|
|
1141
1141
|
expect(webex.request).toBeCalledOnceWith({
|
|
1142
1142
|
method: _types2.HTTP_METHODS.PUT,
|
|
1143
1143
|
uri: "".concat(MOCK_FEDRAMP_URL).concat(messageId.$, "/MarkAsRead"),
|
|
@@ -1145,7 +1145,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1145
1145
|
Authorization: 'mockAuthToken'
|
|
1146
1146
|
}
|
|
1147
1147
|
});
|
|
1148
|
-
case
|
|
1148
|
+
case 2:
|
|
1149
1149
|
case "end":
|
|
1150
1150
|
return _context30.stop();
|
|
1151
1151
|
}
|
|
@@ -1153,14 +1153,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1153
1153
|
})));
|
|
1154
1154
|
it('voicemailMarkAsUnread: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee31() {
|
|
1155
1155
|
var voiceMailPayload;
|
|
1156
|
-
return _regenerator.default.wrap(function
|
|
1156
|
+
return _regenerator.default.wrap(function (_context31) {
|
|
1157
1157
|
while (1) switch (_context31.prev = _context31.next) {
|
|
1158
1158
|
case 0:
|
|
1159
1159
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1160
1160
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1161
|
-
_context31.next =
|
|
1161
|
+
_context31.next = 1;
|
|
1162
1162
|
return wxCallBackendConnector.voicemailMarkAsUnread(messageId.$);
|
|
1163
|
-
case
|
|
1163
|
+
case 1:
|
|
1164
1164
|
expect(webex.request).toBeCalledOnceWith({
|
|
1165
1165
|
method: _types2.HTTP_METHODS.PUT,
|
|
1166
1166
|
uri: "".concat(MOCK_FEDRAMP_URL).concat(messageId.$, "/MarkAsUnread"),
|
|
@@ -1168,7 +1168,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1168
1168
|
Authorization: 'mockAuthToken'
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
1171
|
-
case
|
|
1171
|
+
case 2:
|
|
1172
1172
|
case "end":
|
|
1173
1173
|
return _context31.stop();
|
|
1174
1174
|
}
|
|
@@ -1176,14 +1176,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1176
1176
|
})));
|
|
1177
1177
|
it('deleteVoicemail: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee32() {
|
|
1178
1178
|
var voiceMailPayload;
|
|
1179
|
-
return _regenerator.default.wrap(function
|
|
1179
|
+
return _regenerator.default.wrap(function (_context32) {
|
|
1180
1180
|
while (1) switch (_context32.prev = _context32.next) {
|
|
1181
1181
|
case 0:
|
|
1182
1182
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1183
1183
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1184
|
-
_context32.next =
|
|
1184
|
+
_context32.next = 1;
|
|
1185
1185
|
return wxCallBackendConnector.deleteVoicemail(messageId.$);
|
|
1186
|
-
case
|
|
1186
|
+
case 1:
|
|
1187
1187
|
expect(webex.request).toBeCalledOnceWith({
|
|
1188
1188
|
method: _types2.HTTP_METHODS.DELETE,
|
|
1189
1189
|
uri: "".concat(MOCK_FEDRAMP_URL).concat(messageId.$),
|
|
@@ -1191,7 +1191,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1191
1191
|
Authorization: 'mockAuthToken'
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
|
-
case
|
|
1194
|
+
case 2:
|
|
1195
1195
|
case "end":
|
|
1196
1196
|
return _context32.stop();
|
|
1197
1197
|
}
|
|
@@ -1199,14 +1199,14 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1199
1199
|
})));
|
|
1200
1200
|
it('getVMTranscript: adds the authorization header when in fedramp', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee33() {
|
|
1201
1201
|
var voiceMailPayload;
|
|
1202
|
-
return _regenerator.default.wrap(function
|
|
1202
|
+
return _regenerator.default.wrap(function (_context33) {
|
|
1203
1203
|
while (1) switch (_context33.prev = _context33.next) {
|
|
1204
1204
|
case 0:
|
|
1205
1205
|
voiceMailPayload = _voicemailFixture.getVoicemailListJsonWXC;
|
|
1206
1206
|
webex.request.mockResolvedValueOnce(voiceMailPayload);
|
|
1207
|
-
_context33.next =
|
|
1207
|
+
_context33.next = 1;
|
|
1208
1208
|
return wxCallBackendConnector.getVMTranscript(messageId.$);
|
|
1209
|
-
case
|
|
1209
|
+
case 1:
|
|
1210
1210
|
expect(webex.request).toBeCalledOnceWith({
|
|
1211
1211
|
method: _types2.HTTP_METHODS.GET,
|
|
1212
1212
|
uri: "".concat(MOCK_FEDRAMP_URL).concat(messageId.$, "/transcript"),
|
|
@@ -1214,7 +1214,7 @@ describe('Voicemail webex call Backend Connector Test case', function () {
|
|
|
1214
1214
|
Authorization: 'mockAuthToken'
|
|
1215
1215
|
}
|
|
1216
1216
|
});
|
|
1217
|
-
case
|
|
1217
|
+
case 2:
|
|
1218
1218
|
case "end":
|
|
1219
1219
|
return _context33.stop();
|
|
1220
1220
|
}
|