@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.
Files changed (131) hide show
  1. package/dist/CallHistory/CallHistory.js +128 -128
  2. package/dist/CallHistory/CallHistory.js.map +1 -1
  3. package/dist/CallHistory/CallHistory.test.js +278 -181
  4. package/dist/CallHistory/CallHistory.test.js.map +1 -1
  5. package/dist/CallSettings/CallSettings.js +17 -18
  6. package/dist/CallSettings/CallSettings.js.map +1 -1
  7. package/dist/CallSettings/CallSettings.test.js +14 -14
  8. package/dist/CallSettings/CallSettings.test.js.map +1 -1
  9. package/dist/CallSettings/UcmBackendConnector.js +71 -24
  10. package/dist/CallSettings/UcmBackendConnector.js.map +1 -1
  11. package/dist/CallSettings/UcmBackendConnector.test.js +136 -47
  12. package/dist/CallSettings/UcmBackendConnector.test.js.map +1 -1
  13. package/dist/CallSettings/WxCallBackendConnector.js +137 -138
  14. package/dist/CallSettings/WxCallBackendConnector.js.map +1 -1
  15. package/dist/CallSettings/WxCallBackendConnector.test.js +145 -149
  16. package/dist/CallSettings/WxCallBackendConnector.test.js.map +1 -1
  17. package/dist/CallingClient/CallingClient.js +297 -345
  18. package/dist/CallingClient/CallingClient.js.map +1 -1
  19. package/dist/CallingClient/CallingClient.test.js +267 -405
  20. package/dist/CallingClient/CallingClient.test.js.map +1 -1
  21. package/dist/CallingClient/calling/CallerId/index.js +7 -8
  22. package/dist/CallingClient/calling/CallerId/index.js.map +1 -1
  23. package/dist/CallingClient/calling/CallerId/index.test.js +24 -24
  24. package/dist/CallingClient/calling/CallerId/index.test.js.map +1 -1
  25. package/dist/CallingClient/calling/call.js +655 -611
  26. package/dist/CallingClient/calling/call.js.map +1 -1
  27. package/dist/CallingClient/calling/call.test.js +762 -551
  28. package/dist/CallingClient/calling/call.test.js.map +1 -1
  29. package/dist/CallingClient/calling/callManager.js +15 -18
  30. package/dist/CallingClient/calling/callManager.js.map +1 -1
  31. package/dist/CallingClient/calling/callManager.test.js +113 -113
  32. package/dist/CallingClient/calling/callManager.test.js.map +1 -1
  33. package/dist/CallingClient/constants.js +5 -1
  34. package/dist/CallingClient/constants.js.map +1 -1
  35. package/dist/CallingClient/line/index.js +57 -74
  36. package/dist/CallingClient/line/index.js.map +1 -1
  37. package/dist/CallingClient/line/line.test.js +22 -22
  38. package/dist/CallingClient/line/line.test.js.map +1 -1
  39. package/dist/CallingClient/registration/register.js +657 -526
  40. package/dist/CallingClient/registration/register.js.map +1 -1
  41. package/dist/CallingClient/registration/register.test.js +657 -309
  42. package/dist/CallingClient/registration/register.test.js.map +1 -1
  43. package/dist/CallingClient/registration/types.js.map +1 -1
  44. package/dist/CallingClient/registration/webWorker.js +24 -24
  45. package/dist/CallingClient/registration/webWorker.js.map +1 -1
  46. package/dist/CallingClient/registration/webWorker.test.js +20 -20
  47. package/dist/CallingClient/registration/webWorker.test.js.map +1 -1
  48. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js +28 -28
  49. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js.map +1 -1
  50. package/dist/Contacts/ContactsClient.js +258 -258
  51. package/dist/Contacts/ContactsClient.js.map +1 -1
  52. package/dist/Contacts/ContactsClient.test.js +60 -60
  53. package/dist/Contacts/ContactsClient.test.js.map +1 -1
  54. package/dist/Errors/catalog/CallError.js +7 -10
  55. package/dist/Errors/catalog/CallError.js.map +1 -1
  56. package/dist/Errors/catalog/CallingDeviceError.js +6 -9
  57. package/dist/Errors/catalog/CallingDeviceError.js.map +1 -1
  58. package/dist/Errors/catalog/ExtendedError.js +6 -8
  59. package/dist/Errors/catalog/ExtendedError.js.map +1 -1
  60. package/dist/Errors/catalog/LineError.js +6 -9
  61. package/dist/Errors/catalog/LineError.js.map +1 -1
  62. package/dist/Events/impl/index.js +11 -13
  63. package/dist/Events/impl/index.js.map +1 -1
  64. package/dist/Metrics/index.js +1 -2
  65. package/dist/Metrics/index.js.map +1 -1
  66. package/dist/SDKConnector/index.js +1 -2
  67. package/dist/SDKConnector/index.js.map +1 -1
  68. package/dist/SDKConnector/types.js.map +1 -1
  69. package/dist/Voicemail/BroadworksBackendConnector.js +129 -128
  70. package/dist/Voicemail/BroadworksBackendConnector.js.map +1 -1
  71. package/dist/Voicemail/BroadworksBackendConnector.test.js +98 -98
  72. package/dist/Voicemail/BroadworksBackendConnector.test.js.map +1 -1
  73. package/dist/Voicemail/UcmBackendConnector.js +86 -86
  74. package/dist/Voicemail/UcmBackendConnector.js.map +1 -1
  75. package/dist/Voicemail/UcmBackendConnector.test.js +72 -72
  76. package/dist/Voicemail/UcmBackendConnector.test.js.map +1 -1
  77. package/dist/Voicemail/Voicemail.js +58 -61
  78. package/dist/Voicemail/Voicemail.js.map +1 -1
  79. package/dist/Voicemail/Voicemail.test.js +20 -20
  80. package/dist/Voicemail/Voicemail.test.js.map +1 -1
  81. package/dist/Voicemail/WxCallBackendConnector.js +116 -117
  82. package/dist/Voicemail/WxCallBackendConnector.js.map +1 -1
  83. package/dist/Voicemail/WxCallBackendConnector.test.js +140 -140
  84. package/dist/Voicemail/WxCallBackendConnector.test.js.map +1 -1
  85. package/dist/common/Utils.js +195 -165
  86. package/dist/common/Utils.js.map +1 -1
  87. package/dist/common/Utils.test.js +432 -183
  88. package/dist/common/Utils.test.js.map +1 -1
  89. package/dist/common/constants.js +3 -1
  90. package/dist/common/constants.js.map +1 -1
  91. package/dist/common/testUtil.js +5 -4
  92. package/dist/common/testUtil.js.map +1 -1
  93. package/dist/module/CallHistory/CallHistory.js +7 -3
  94. package/dist/module/CallSettings/UcmBackendConnector.js +20 -6
  95. package/dist/module/CallSettings/WxCallBackendConnector.js +3 -1
  96. package/dist/module/CallingClient/CallingClient.js +83 -121
  97. package/dist/module/CallingClient/calling/call.js +60 -39
  98. package/dist/module/CallingClient/constants.js +3 -0
  99. package/dist/module/CallingClient/registration/register.js +82 -2
  100. package/dist/module/Contacts/ContactsClient.js +9 -5
  101. package/dist/module/Voicemail/BroadworksBackendConnector.js +3 -1
  102. package/dist/module/Voicemail/UcmBackendConnector.js +2 -1
  103. package/dist/module/common/Utils.js +27 -3
  104. package/dist/module/common/constants.js +2 -0
  105. package/dist/module/common/testUtil.js +1 -0
  106. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
  107. package/dist/types/CallSettings/UcmBackendConnector.d.ts +1 -0
  108. package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -1
  109. package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -1
  110. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
  111. package/dist/types/CallingClient/calling/call.d.ts +4 -0
  112. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  113. package/dist/types/CallingClient/constants.d.ts +3 -0
  114. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  115. package/dist/types/CallingClient/registration/register.d.ts +4 -0
  116. package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
  117. package/dist/types/CallingClient/registration/types.d.ts +6 -0
  118. package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
  119. package/dist/types/Contacts/ContactsClient.d.ts +1 -0
  120. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
  121. package/dist/types/SDKConnector/types.d.ts +16 -0
  122. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  123. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -1
  124. package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -1
  125. package/dist/types/common/Utils.d.ts +1 -1
  126. package/dist/types/common/Utils.d.ts.map +1 -1
  127. package/dist/types/common/constants.d.ts +2 -0
  128. package/dist/types/common/constants.d.ts.map +1 -1
  129. package/dist/types/common/testUtil.d.ts +1 -0
  130. package/dist/types/common/testUtil.d.ts.map +1 -1
  131. package/package.json +4 -4
@@ -79,16 +79,16 @@ describe('Voicemail UCM Backend Connector Test case', function () {
79
79
  });
80
80
  it('verify fetching transcript returned null', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
81
81
  var response;
82
- return _regenerator.default.wrap(function _callee$(_context) {
82
+ return _regenerator.default.wrap(function (_context) {
83
83
  while (1) switch (_context.prev = _context.next) {
84
84
  case 0:
85
- _context.next = 2;
85
+ _context.next = 1;
86
86
  return ucmBackendConnector.getVMTranscript('98099432-9d81-4224-bd04-00def73cd262');
87
- case 2:
87
+ case 1:
88
88
  response = _context.sent;
89
89
  expect(response).toBeNull();
90
90
  expect(infoSpy).toHaveBeenCalledWith('Message Id: 98099432-9d81-4224-bd04-00def73cd262', {});
91
- case 5:
91
+ case 2:
92
92
  case "end":
93
93
  return _context.stop();
94
94
  }
@@ -96,13 +96,13 @@ describe('Voicemail UCM Backend Connector Test case', function () {
96
96
  })));
97
97
  it('verify successful voicemail list', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
98
98
  var response;
99
- return _regenerator.default.wrap(function _callee2$(_context2) {
99
+ return _regenerator.default.wrap(function (_context2) {
100
100
  while (1) switch (_context2.prev = _context2.next) {
101
101
  case 0:
102
102
  webex.request.mockResolvedValueOnce(voicemailPayload);
103
- _context2.next = 3;
103
+ _context2.next = 1;
104
104
  return ucmBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC);
105
- case 3:
105
+ case 1:
106
106
  response = _context2.sent;
107
107
  expect(response).toStrictEqual(listResponseDetails);
108
108
  expect(webex.request).toBeCalledOnceWith({
@@ -122,7 +122,7 @@ describe('Voicemail UCM Backend Connector Test case', function () {
122
122
  });
123
123
  expect(warnSpy).not.toHaveBeenCalled();
124
124
  expect(errorSpy).not.toHaveBeenCalled();
125
- case 10:
125
+ case 2:
126
126
  case "end":
127
127
  return _context2.stop();
128
128
  }
@@ -130,14 +130,14 @@ describe('Voicemail UCM Backend Connector Test case', function () {
130
130
  })));
131
131
  it('verify successful voicemailContent', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
132
132
  var voiceMailPayload, response, voicemailContentResponse, vmResponseDetails;
133
- return _regenerator.default.wrap(function _callee3$(_context3) {
133
+ return _regenerator.default.wrap(function (_context3) {
134
134
  while (1) switch (_context3.prev = _context3.next) {
135
135
  case 0:
136
136
  voiceMailPayload = _voicemailFixture.mockVoicemailContentResponse;
137
137
  webex.request.mockResolvedValueOnce(voiceMailPayload);
138
- _context3.next = 4;
138
+ _context3.next = 1;
139
139
  return ucmBackendConnector.getVoicemailContent(messageId);
140
- case 4:
140
+ case 1:
141
141
  response = _context3.sent.data;
142
142
  voicemailContentResponse = _voicemailFixture.voicemailContent;
143
143
  vmResponseDetails = {
@@ -164,7 +164,7 @@ describe('Voicemail UCM Backend Connector Test case', function () {
164
164
  file: 'UcmBackendConnector',
165
165
  method: 'getVoicemailContent'
166
166
  });
167
- case 11:
167
+ case 2:
168
168
  case "end":
169
169
  return _context3.stop();
170
170
  }
@@ -172,13 +172,13 @@ describe('Voicemail UCM Backend Connector Test case', function () {
172
172
  })));
173
173
  it('verify successful voicemailMarkAsRead', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
174
174
  var response;
175
- return _regenerator.default.wrap(function _callee4$(_context4) {
175
+ return _regenerator.default.wrap(function (_context4) {
176
176
  while (1) switch (_context4.prev = _context4.next) {
177
177
  case 0:
178
178
  webex.request.mockResolvedValueOnce(voicemailPayload);
179
- _context4.next = 3;
179
+ _context4.next = 1;
180
180
  return ucmBackendConnector.voicemailMarkAsRead(messageId);
181
- case 3:
181
+ case 1:
182
182
  response = _context4.sent;
183
183
  expect(response).toStrictEqual(responseDetails);
184
184
  expect(webex.request).toBeCalledOnceWith({
@@ -199,7 +199,7 @@ describe('Voicemail UCM Backend Connector Test case', function () {
199
199
  file: 'UcmBackendConnector',
200
200
  method: 'voicemailMarkAsRead'
201
201
  });
202
- case 8:
202
+ case 2:
203
203
  case "end":
204
204
  return _context4.stop();
205
205
  }
@@ -207,13 +207,13 @@ describe('Voicemail UCM Backend Connector Test case', function () {
207
207
  })));
208
208
  it('verify successful voicemailMarkAsUnread', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
209
209
  var response;
210
- return _regenerator.default.wrap(function _callee5$(_context5) {
210
+ return _regenerator.default.wrap(function (_context5) {
211
211
  while (1) switch (_context5.prev = _context5.next) {
212
212
  case 0:
213
213
  webex.request.mockResolvedValueOnce(voicemailPayload);
214
- _context5.next = 3;
214
+ _context5.next = 1;
215
215
  return ucmBackendConnector.voicemailMarkAsUnread(messageId);
216
- case 3:
216
+ case 1:
217
217
  response = _context5.sent;
218
218
  expect(response).toStrictEqual(responseDetails);
219
219
  expect(webex.request).toBeCalledOnceWith({
@@ -234,7 +234,7 @@ describe('Voicemail UCM Backend Connector Test case', function () {
234
234
  file: 'UcmBackendConnector',
235
235
  method: 'voicemailMarkAsUnread'
236
236
  });
237
- case 8:
237
+ case 2:
238
238
  case "end":
239
239
  return _context5.stop();
240
240
  }
@@ -242,13 +242,13 @@ describe('Voicemail UCM Backend Connector Test case', function () {
242
242
  })));
243
243
  it('verify successful deleteVoicemail', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
244
244
  var response;
245
- return _regenerator.default.wrap(function _callee6$(_context6) {
245
+ return _regenerator.default.wrap(function (_context6) {
246
246
  while (1) switch (_context6.prev = _context6.next) {
247
247
  case 0:
248
248
  webex.request.mockResolvedValueOnce(voicemailPayload);
249
- _context6.next = 3;
249
+ _context6.next = 1;
250
250
  return ucmBackendConnector.deleteVoicemail(messageId);
251
- case 3:
251
+ case 1:
252
252
  response = _context6.sent;
253
253
  expect(response).toStrictEqual(responseDetails);
254
254
  expect(webex.request).toBeCalledOnceWith({
@@ -266,7 +266,7 @@ describe('Voicemail UCM Backend Connector Test case', function () {
266
266
  file: 'UcmBackendConnector',
267
267
  method: 'deleteVoicemail'
268
268
  });
269
- case 8:
269
+ case 2:
270
270
  case "end":
271
271
  return _context6.stop();
272
272
  }
@@ -274,16 +274,16 @@ describe('Voicemail UCM Backend Connector Test case', function () {
274
274
  })));
275
275
  it('verify resolution of contact to null', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
276
276
  var response;
277
- return _regenerator.default.wrap(function _callee7$(_context7) {
277
+ return _regenerator.default.wrap(function (_context7) {
278
278
  while (1) switch (_context7.prev = _context7.next) {
279
279
  case 0:
280
- _context7.next = 2;
280
+ _context7.next = 1;
281
281
  return ucmBackendConnector.resolveContact(_voicemailFixture.resolveContactArgs);
282
- case 2:
282
+ case 1:
283
283
  response = _context7.sent;
284
284
  expect(response).toBeNull();
285
285
  expect(infoSpy).toHaveBeenCalledWith("Calling Party Info: ".concat(_voicemailFixture.resolveContactArgs), {});
286
- case 5:
286
+ case 2:
287
287
  case "end":
288
288
  return _context7.stop();
289
289
  }
@@ -338,13 +338,13 @@ describe('Voicemail failure tests for UCM', function () {
338
338
  });
339
339
  it('verify failure voicemail listing when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
340
340
  var response;
341
- return _regenerator.default.wrap(function _callee8$(_context8) {
341
+ return _regenerator.default.wrap(function (_context8) {
342
342
  while (1) switch (_context8.prev = _context8.next) {
343
343
  case 0:
344
344
  webex.request.mockRejectedValueOnce(failurePayload);
345
- _context8.next = 3;
345
+ _context8.next = 1;
346
346
  return ucmBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC);
347
- case 3:
347
+ case 1:
348
348
  response = _context8.sent;
349
349
  expect(response).toStrictEqual(responseDetails);
350
350
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -365,7 +365,7 @@ describe('Voicemail failure tests for UCM', function () {
365
365
  method: _constants2.METHODS.GET_VOICEMAIL_LIST
366
366
  });
367
367
  expect(errorSpy).toHaveBeenCalled();
368
- case 9:
368
+ case 2:
369
369
  case "end":
370
370
  return _context8.stop();
371
371
  }
@@ -373,7 +373,7 @@ describe('Voicemail failure tests for UCM', function () {
373
373
  })));
374
374
  it('verify failure voicemailContent when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
375
375
  var vmContentSpy, failurePayload422, response;
376
- return _regenerator.default.wrap(function _callee9$(_context9) {
376
+ return _regenerator.default.wrap(function (_context9) {
377
377
  while (1) switch (_context9.prev = _context9.next) {
378
378
  case 0:
379
379
  vmContentSpy = jest.spyOn(ucmBackendConnector, 'getVoicemailContent');
@@ -381,9 +381,9 @@ describe('Voicemail failure tests for UCM', function () {
381
381
  statusCode: _constants.UNPROCESSABLE_CONTENT_CODE
382
382
  };
383
383
  webex.request.mockRejectedValue(failurePayload422);
384
- _context9.next = 5;
384
+ _context9.next = 1;
385
385
  return ucmBackendConnector.getVoicemailContent(messageId);
386
- case 5:
386
+ case 1:
387
387
  response = _context9.sent;
388
388
  expect(vmContentSpy).toBeCalledTimes(1);
389
389
  expect(response).toStrictEqual(_voicemailFixture.responseDetails422);
@@ -407,7 +407,7 @@ describe('Voicemail failure tests for UCM', function () {
407
407
  method: _constants2.METHODS.GET_VOICEMAIL_CONTENT
408
408
  });
409
409
  expect(errorSpy).toHaveBeenCalled();
410
- case 12:
410
+ case 2:
411
411
  case "end":
412
412
  return _context9.stop();
413
413
  }
@@ -415,7 +415,7 @@ describe('Voicemail failure tests for UCM', function () {
415
415
  })));
416
416
  it('verify failure voicemailContent when failure voicemail api response received', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0() {
417
417
  var vmContentSpy, failureVoicemailResponse, response, failureVmResponseDetails;
418
- return _regenerator.default.wrap(function _callee0$(_context0) {
418
+ return _regenerator.default.wrap(function (_context0) {
419
419
  while (1) switch (_context0.prev = _context0.next) {
420
420
  case 0:
421
421
  vmContentSpy = jest.spyOn(ucmBackendConnector, 'getVoicemailContent');
@@ -423,9 +423,9 @@ describe('Voicemail failure tests for UCM', function () {
423
423
  statusCode: 204
424
424
  };
425
425
  webex.request.mockResolvedValueOnce(failureVoicemailResponse);
426
- _context0.next = 5;
426
+ _context0.next = 1;
427
427
  return ucmBackendConnector.getVoicemailContent(messageId);
428
- case 5:
428
+ case 1:
429
429
  response = _context0.sent;
430
430
  failureVmResponseDetails = _objectSpread({
431
431
  data: {
@@ -455,7 +455,7 @@ describe('Voicemail failure tests for UCM', function () {
455
455
  file: 'UcmBackendConnector',
456
456
  method: _constants2.METHODS.GET_VOICEMAIL_CONTENT
457
457
  });
458
- case 12:
458
+ case 2:
459
459
  case "end":
460
460
  return _context0.stop();
461
461
  }
@@ -463,13 +463,13 @@ describe('Voicemail failure tests for UCM', function () {
463
463
  })));
464
464
  it('verify failure voicemailMarkAsRead when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1() {
465
465
  var response;
466
- return _regenerator.default.wrap(function _callee1$(_context1) {
466
+ return _regenerator.default.wrap(function (_context1) {
467
467
  while (1) switch (_context1.prev = _context1.next) {
468
468
  case 0:
469
469
  webex.request.mockRejectedValue(failurePayload);
470
- _context1.next = 3;
470
+ _context1.next = 1;
471
471
  return ucmBackendConnector.voicemailMarkAsRead(messageId);
472
- case 3:
472
+ case 1:
473
473
  response = _context1.sent;
474
474
  expect(response).toStrictEqual(responseDetails);
475
475
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -493,7 +493,7 @@ describe('Voicemail failure tests for UCM', function () {
493
493
  method: _constants2.METHODS.VOICEMAIL_MARK_AS_READ
494
494
  });
495
495
  expect(errorSpy).toHaveBeenCalled();
496
- case 9:
496
+ case 2:
497
497
  case "end":
498
498
  return _context1.stop();
499
499
  }
@@ -501,13 +501,13 @@ describe('Voicemail failure tests for UCM', function () {
501
501
  })));
502
502
  it('verify failure voicemailMarkAsUnread when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10() {
503
503
  var response;
504
- return _regenerator.default.wrap(function _callee10$(_context10) {
504
+ return _regenerator.default.wrap(function (_context10) {
505
505
  while (1) switch (_context10.prev = _context10.next) {
506
506
  case 0:
507
507
  webex.request.mockRejectedValue(failurePayload);
508
- _context10.next = 3;
508
+ _context10.next = 1;
509
509
  return ucmBackendConnector.voicemailMarkAsUnread(messageId);
510
- case 3:
510
+ case 1:
511
511
  response = _context10.sent;
512
512
  expect(response).toStrictEqual(responseDetails);
513
513
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -531,7 +531,7 @@ describe('Voicemail failure tests for UCM', function () {
531
531
  method: _constants2.METHODS.VOICEMAIL_MARK_AS_UNREAD
532
532
  });
533
533
  expect(errorSpy).toHaveBeenCalled();
534
- case 9:
534
+ case 2:
535
535
  case "end":
536
536
  return _context10.stop();
537
537
  }
@@ -539,13 +539,13 @@ describe('Voicemail failure tests for UCM', function () {
539
539
  })));
540
540
  it('verify failure delete voicemail when bad request occur', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11() {
541
541
  var response;
542
- return _regenerator.default.wrap(function _callee11$(_context11) {
542
+ return _regenerator.default.wrap(function (_context11) {
543
543
  while (1) switch (_context11.prev = _context11.next) {
544
544
  case 0:
545
545
  webex.request.mockRejectedValue(failurePayload);
546
- _context11.next = 3;
546
+ _context11.next = 1;
547
547
  return ucmBackendConnector.deleteVoicemail(messageId);
548
- case 3:
548
+ case 1:
549
549
  response = _context11.sent;
550
550
  expect(response).toStrictEqual(responseDetails);
551
551
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -566,7 +566,7 @@ describe('Voicemail failure tests for UCM', function () {
566
566
  method: _constants2.METHODS.DELETE_VOICEMAIL
567
567
  });
568
568
  expect(errorSpy).toHaveBeenCalled();
569
- case 9:
569
+ case 2:
570
570
  case "end":
571
571
  return _context11.stop();
572
572
  }
@@ -574,13 +574,13 @@ describe('Voicemail failure tests for UCM', function () {
574
574
  })));
575
575
  it('verify failure voicemail listing when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12() {
576
576
  var response;
577
- return _regenerator.default.wrap(function _callee12$(_context12) {
577
+ return _regenerator.default.wrap(function (_context12) {
578
578
  while (1) switch (_context12.prev = _context12.next) {
579
579
  case 0:
580
580
  webex.request.mockRejectedValue(failurePayload401);
581
- _context12.next = 3;
581
+ _context12.next = 1;
582
582
  return ucmBackendConnector.getVoicemailList(0, 20, _types2.SORT.DESC);
583
- case 3:
583
+ case 1:
584
584
  response = _context12.sent;
585
585
  expect(response).toStrictEqual(responseDetails401);
586
586
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -601,7 +601,7 @@ describe('Voicemail failure tests for UCM', function () {
601
601
  method: _constants2.METHODS.GET_VOICEMAIL_LIST
602
602
  });
603
603
  expect(errorSpy).toHaveBeenCalled();
604
- case 9:
604
+ case 2:
605
605
  case "end":
606
606
  return _context12.stop();
607
607
  }
@@ -609,13 +609,13 @@ describe('Voicemail failure tests for UCM', function () {
609
609
  })));
610
610
  it('verify failure voicemailMarkAsRead when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13() {
611
611
  var response;
612
- return _regenerator.default.wrap(function _callee13$(_context13) {
612
+ return _regenerator.default.wrap(function (_context13) {
613
613
  while (1) switch (_context13.prev = _context13.next) {
614
614
  case 0:
615
615
  webex.request.mockRejectedValue(failurePayload401);
616
- _context13.next = 3;
616
+ _context13.next = 1;
617
617
  return ucmBackendConnector.voicemailMarkAsRead(messageId);
618
- case 3:
618
+ case 1:
619
619
  response = _context13.sent;
620
620
  expect(response).toStrictEqual(responseDetails401);
621
621
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -639,7 +639,7 @@ describe('Voicemail failure tests for UCM', function () {
639
639
  method: _constants2.METHODS.VOICEMAIL_MARK_AS_READ
640
640
  });
641
641
  expect(errorSpy).toHaveBeenCalled();
642
- case 9:
642
+ case 2:
643
643
  case "end":
644
644
  return _context13.stop();
645
645
  }
@@ -647,13 +647,13 @@ describe('Voicemail failure tests for UCM', function () {
647
647
  })));
648
648
  it('verify failure voicemailMarkAsUnread when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14() {
649
649
  var response;
650
- return _regenerator.default.wrap(function _callee14$(_context14) {
650
+ return _regenerator.default.wrap(function (_context14) {
651
651
  while (1) switch (_context14.prev = _context14.next) {
652
652
  case 0:
653
653
  webex.request.mockRejectedValue(failurePayload401);
654
- _context14.next = 3;
654
+ _context14.next = 1;
655
655
  return ucmBackendConnector.voicemailMarkAsUnread(messageId);
656
- case 3:
656
+ case 1:
657
657
  response = _context14.sent;
658
658
  expect(response).toStrictEqual(responseDetails401);
659
659
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -677,7 +677,7 @@ describe('Voicemail failure tests for UCM', function () {
677
677
  method: _constants2.METHODS.VOICEMAIL_MARK_AS_UNREAD
678
678
  });
679
679
  expect(errorSpy).toHaveBeenCalled();
680
- case 9:
680
+ case 2:
681
681
  case "end":
682
682
  return _context14.stop();
683
683
  }
@@ -685,13 +685,13 @@ describe('Voicemail failure tests for UCM', function () {
685
685
  })));
686
686
  it('verify failure delete voicemail when user is unauthorised, possible token expiry', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15() {
687
687
  var response;
688
- return _regenerator.default.wrap(function _callee15$(_context15) {
688
+ return _regenerator.default.wrap(function (_context15) {
689
689
  while (1) switch (_context15.prev = _context15.next) {
690
690
  case 0:
691
691
  webex.request.mockRejectedValue(failurePayload401);
692
- _context15.next = 3;
692
+ _context15.next = 1;
693
693
  return ucmBackendConnector.deleteVoicemail(messageId);
694
- case 3:
694
+ case 1:
695
695
  response = _context15.sent;
696
696
  expect(response).toStrictEqual(responseDetails401);
697
697
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
@@ -712,7 +712,7 @@ describe('Voicemail failure tests for UCM', function () {
712
712
  method: _constants2.METHODS.DELETE_VOICEMAIL
713
713
  });
714
714
  expect(errorSpy).toHaveBeenCalled();
715
- case 9:
715
+ case 2:
716
716
  case "end":
717
717
  return _context15.stop();
718
718
  }
@@ -720,15 +720,15 @@ describe('Voicemail failure tests for UCM', function () {
720
720
  })));
721
721
  it('verify fetching voicemail summary returned to be null', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee16() {
722
722
  var response;
723
- return _regenerator.default.wrap(function _callee16$(_context16) {
723
+ return _regenerator.default.wrap(function (_context16) {
724
724
  while (1) switch (_context16.prev = _context16.next) {
725
725
  case 0:
726
- _context16.next = 2;
726
+ _context16.next = 1;
727
727
  return ucmBackendConnector.getVoicemailSummary();
728
- case 2:
728
+ case 1:
729
729
  response = _context16.sent;
730
730
  expect(response).toBeNull();
731
- case 4:
731
+ case 2:
732
732
  case "end":
733
733
  return _context16.stop();
734
734
  }