@webex/calling 3.10.0 → 3.11.0-webex-services-ready.1

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 (151) hide show
  1. package/dist/CallHistory/CallHistory.js +128 -133
  2. package/dist/CallHistory/CallHistory.js.map +1 -1
  3. package/dist/CallHistory/CallHistory.test.js +289 -186
  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 +72 -25
  10. package/dist/CallSettings/UcmBackendConnector.js.map +1 -1
  11. package/dist/CallSettings/UcmBackendConnector.test.js +138 -48
  12. package/dist/CallSettings/UcmBackendConnector.test.js.map +1 -1
  13. package/dist/CallSettings/WxCallBackendConnector.js +138 -145
  14. package/dist/CallSettings/WxCallBackendConnector.js.map +1 -1
  15. package/dist/CallSettings/WxCallBackendConnector.test.js +149 -150
  16. package/dist/CallSettings/WxCallBackendConnector.test.js.map +1 -1
  17. package/dist/CallingClient/CallingClient.js +298 -347
  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 +657 -616
  26. package/dist/CallingClient/calling/call.js.map +1 -1
  27. package/dist/CallingClient/calling/call.test.js +864 -551
  28. package/dist/CallingClient/calling/call.test.js.map +1 -1
  29. package/dist/CallingClient/calling/callManager.js +22 -18
  30. package/dist/CallingClient/calling/callManager.js.map +1 -1
  31. package/dist/CallingClient/calling/callManager.test.js +114 -114
  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 +659 -527
  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/registration/webWorkerStr.js +1 -1
  49. package/dist/CallingClient/registration/webWorkerStr.js.map +1 -1
  50. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js +28 -28
  51. package/dist/CallingClient/windowsChromiumIceWarmupUtils.js.map +1 -1
  52. package/dist/Contacts/ContactsClient.js +259 -268
  53. package/dist/Contacts/ContactsClient.js.map +1 -1
  54. package/dist/Contacts/ContactsClient.test.js +64 -63
  55. package/dist/Contacts/ContactsClient.test.js.map +1 -1
  56. package/dist/Errors/catalog/CallError.js +7 -10
  57. package/dist/Errors/catalog/CallError.js.map +1 -1
  58. package/dist/Errors/catalog/CallingDeviceError.js +6 -9
  59. package/dist/Errors/catalog/CallingDeviceError.js.map +1 -1
  60. package/dist/Errors/catalog/ExtendedError.js +6 -8
  61. package/dist/Errors/catalog/ExtendedError.js.map +1 -1
  62. package/dist/Errors/catalog/LineError.js +6 -9
  63. package/dist/Errors/catalog/LineError.js.map +1 -1
  64. package/dist/Events/impl/index.js +12 -14
  65. package/dist/Events/impl/index.js.map +1 -1
  66. package/dist/Logger/index.js +3 -3
  67. package/dist/Logger/index.js.map +1 -1
  68. package/dist/Logger/index.test.js +1 -1
  69. package/dist/Logger/index.test.js.map +1 -1
  70. package/dist/Metrics/index.js +1 -2
  71. package/dist/Metrics/index.js.map +1 -1
  72. package/dist/SDKConnector/index.js +1 -2
  73. package/dist/SDKConnector/index.js.map +1 -1
  74. package/dist/SDKConnector/types.js.map +1 -1
  75. package/dist/Voicemail/BroadworksBackendConnector.js +131 -139
  76. package/dist/Voicemail/BroadworksBackendConnector.js.map +1 -1
  77. package/dist/Voicemail/BroadworksBackendConnector.test.js +106 -98
  78. package/dist/Voicemail/BroadworksBackendConnector.test.js.map +1 -1
  79. package/dist/Voicemail/UcmBackendConnector.js +88 -92
  80. package/dist/Voicemail/UcmBackendConnector.js.map +1 -1
  81. package/dist/Voicemail/UcmBackendConnector.test.js +72 -72
  82. package/dist/Voicemail/UcmBackendConnector.test.js.map +1 -1
  83. package/dist/Voicemail/Voicemail.js +103 -131
  84. package/dist/Voicemail/Voicemail.js.map +1 -1
  85. package/dist/Voicemail/Voicemail.test.js +20 -20
  86. package/dist/Voicemail/Voicemail.test.js.map +1 -1
  87. package/dist/Voicemail/WxCallBackendConnector.js +117 -131
  88. package/dist/Voicemail/WxCallBackendConnector.js.map +1 -1
  89. package/dist/Voicemail/WxCallBackendConnector.test.js +180 -154
  90. package/dist/Voicemail/WxCallBackendConnector.test.js.map +1 -1
  91. package/dist/common/Utils.js +198 -166
  92. package/dist/common/Utils.js.map +1 -1
  93. package/dist/common/Utils.test.js +436 -191
  94. package/dist/common/Utils.test.js.map +1 -1
  95. package/dist/common/constants.js +3 -1
  96. package/dist/common/constants.js.map +1 -1
  97. package/dist/common/testUtil.js +5 -4
  98. package/dist/common/testUtil.js.map +1 -1
  99. package/dist/module/CallHistory/CallHistory.js +20 -11
  100. package/dist/module/CallSettings/UcmBackendConnector.js +21 -8
  101. package/dist/module/CallSettings/WxCallBackendConnector.js +10 -15
  102. package/dist/module/CallingClient/CallingClient.js +83 -123
  103. package/dist/module/CallingClient/calling/call.js +73 -58
  104. package/dist/module/CallingClient/calling/callManager.js +7 -0
  105. package/dist/module/CallingClient/constants.js +3 -0
  106. package/dist/module/CallingClient/registration/register.js +85 -5
  107. package/dist/module/CallingClient/registration/webWorker.js +2 -2
  108. package/dist/module/CallingClient/registration/webWorkerStr.js +2 -2
  109. package/dist/module/Contacts/ContactsClient.js +19 -25
  110. package/dist/module/Events/impl/index.js +1 -1
  111. package/dist/module/Logger/index.js +2 -2
  112. package/dist/module/Voicemail/BroadworksBackendConnector.js +10 -18
  113. package/dist/module/Voicemail/UcmBackendConnector.js +7 -11
  114. package/dist/module/Voicemail/Voicemail.js +42 -68
  115. package/dist/module/Voicemail/WxCallBackendConnector.js +14 -28
  116. package/dist/module/common/Utils.js +31 -5
  117. package/dist/module/common/constants.js +2 -0
  118. package/dist/module/common/testUtil.js +1 -0
  119. package/dist/types/CallHistory/CallHistory.d.ts.map +1 -1
  120. package/dist/types/CallSettings/UcmBackendConnector.d.ts +1 -0
  121. package/dist/types/CallSettings/UcmBackendConnector.d.ts.map +1 -1
  122. package/dist/types/CallSettings/WxCallBackendConnector.d.ts.map +1 -1
  123. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
  124. package/dist/types/CallingClient/calling/call.d.ts +4 -0
  125. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  126. package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -1
  127. package/dist/types/CallingClient/constants.d.ts +3 -0
  128. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  129. package/dist/types/CallingClient/registration/register.d.ts +4 -0
  130. package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
  131. package/dist/types/CallingClient/registration/types.d.ts +6 -0
  132. package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
  133. package/dist/types/CallingClient/registration/webWorkerStr.d.ts +1 -1
  134. package/dist/types/CallingClient/registration/webWorkerStr.d.ts.map +1 -1
  135. package/dist/types/Contacts/ContactsClient.d.ts +1 -0
  136. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
  137. package/dist/types/Logger/index.d.ts +1 -2
  138. package/dist/types/Logger/index.d.ts.map +1 -1
  139. package/dist/types/SDKConnector/types.d.ts +16 -0
  140. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  141. package/dist/types/Voicemail/BroadworksBackendConnector.d.ts.map +1 -1
  142. package/dist/types/Voicemail/UcmBackendConnector.d.ts.map +1 -1
  143. package/dist/types/Voicemail/Voicemail.d.ts.map +1 -1
  144. package/dist/types/Voicemail/WxCallBackendConnector.d.ts.map +1 -1
  145. package/dist/types/common/Utils.d.ts +1 -1
  146. package/dist/types/common/Utils.d.ts.map +1 -1
  147. package/dist/types/common/constants.d.ts +2 -0
  148. package/dist/types/common/constants.d.ts.map +1 -1
  149. package/dist/types/common/testUtil.d.ts +1 -0
  150. package/dist/types/common/testUtil.d.ts.map +1 -1
  151. package/package.json +4 -4
@@ -17,7 +17,7 @@ var utils = _interopRequireWildcard(require("../common/Utils"));
17
17
  var _WxCallBackendConnector = require("./WxCallBackendConnector");
18
18
  var _Logger = _interopRequireDefault(require("../Logger"));
19
19
  var _testFixtures = require("./testFixtures");
20
- function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
+ function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t19 in e) "default" !== _t19 && {}.hasOwnProperty.call(e, _t19) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t19)) && (i.get || i.set) ? o(f, _t19, i) : f[_t19] = e[_t19]); return f; })(e, t); }
21
21
  /* eslint-disable dot-notation */
22
22
 
23
23
  jest.spyOn(utils, 'uploadLogs').mockResolvedValue(undefined);
@@ -55,7 +55,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
55
55
  var callWaitingUrl = "".concat(xsiEndpoint, "/").concat(_constants2.XSI_VERSION, "/").concat(_constants2.USER_ENDPOINT, "/").concat(userId, "/").concat(_constants.SERVICES_ENDPOINT, "/").concat(_constants2.CALL_WAITING_ENDPOINT);
56
56
  beforeAll(/*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
57
57
  var urlResponsePayload;
58
- return _regenerator.default.wrap(function _callee$(_context) {
58
+ return _regenerator.default.wrap(function (_context) {
59
59
  while (1) switch (_context.prev = _context.next) {
60
60
  case 0:
61
61
  callSettingsClient = new _WxCallBackendConnector.WxCallBackendConnector(webex, {
@@ -66,24 +66,24 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
66
66
  body: _testFixtures.xsiEndpointUrlResponse
67
67
  };
68
68
  webex.request.mockResolvedValue(urlResponsePayload);
69
- _context.next = 5;
69
+ _context.next = 1;
70
70
  return callSettingsClient.getCallWaitingSetting();
71
- case 5:
71
+ case 1:
72
72
  expect(webex.request).toBeCalledOnceWith({
73
73
  method: _types2.HTTP_METHODS.GET,
74
74
  uri: webexUri
75
75
  });
76
76
  expect(callSettingsClient['xsiEndpoint']).toEqual(xsiEndpoint);
77
77
  webex.request.mockClear();
78
- case 8:
78
+ case 2:
79
79
  case "end":
80
80
  return _context.stop();
81
81
  }
82
82
  }, _callee);
83
83
  })));
84
84
  it('Success: Get Call Waiting setting enabled', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2() {
85
- var callWaitingMockedResponse, response, toggleSetting;
86
- return _regenerator.default.wrap(function _callee2$(_context2) {
85
+ var callWaitingMockedResponse, response, toggleSetting, _t, _t2, _t3, _t4, _t5;
86
+ return _regenerator.default.wrap(function (_context2) {
87
87
  while (1) switch (_context2.prev = _context2.next) {
88
88
  case 0:
89
89
  callWaitingMockedResponse = '<CallWaiting><active>true</active></CallWaiting>';
@@ -96,30 +96,29 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
96
96
  }
97
97
  });
98
98
  });
99
- _context2.next = 4;
99
+ _context2.next = 1;
100
100
  return callSettingsClient.getCallWaitingSetting();
101
- case 4:
101
+ case 1:
102
102
  response = _context2.sent;
103
103
  toggleSetting = response.data.callSetting;
104
104
  expect(webex.request).not.toBeCalled();
105
105
  expect(response.statusCode).toBe(200);
106
106
  expect(response.message).toBe(_constants.SUCCESS_MESSAGE);
107
107
  expect(toggleSetting.enabled).toStrictEqual(true);
108
- _context2.t0 = expect(global.fetch);
109
- _context2.t1 = callWaitingUrl;
110
- _context2.t2 = _types2.HTTP_METHODS.GET;
111
- _context2.next = 15;
108
+ _t = expect(global.fetch);
109
+ _t2 = callWaitingUrl;
110
+ _t3 = _types2.HTTP_METHODS.GET;
111
+ _context2.next = 2;
112
112
  return webex.credentials.getUserToken();
113
- case 15:
114
- _context2.t3 = _context2.sent;
115
- _context2.t4 = {
116
- Authorization: _context2.t3
113
+ case 2:
114
+ _t4 = _context2.sent;
115
+ _t5 = {
116
+ Authorization: _t4
117
117
  };
118
- _context2.t5 = {
119
- method: _context2.t2,
120
- headers: _context2.t4
121
- };
122
- _context2.t0.toBeCalledOnceWith.call(_context2.t0, _context2.t1, _context2.t5);
118
+ _t.toBeCalledOnceWith.call(_t, _t2, {
119
+ method: _t3,
120
+ headers: _t5
121
+ });
123
122
  expect(infoSpy).toHaveBeenCalledWith(_constants.METHOD_START_MESSAGE, {
124
123
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
125
124
  method: 'getCallWaitingSetting'
@@ -129,15 +128,15 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
129
128
  method: 'getCallWaitingSetting'
130
129
  });
131
130
  expect(errorSpy).not.toHaveBeenCalled();
132
- case 22:
131
+ case 3:
133
132
  case "end":
134
133
  return _context2.stop();
135
134
  }
136
135
  }, _callee2);
137
136
  })));
138
137
  it('Success: Get Call Waiting setting disabled', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3() {
139
- var callWaitingMockedResponse, response, toggleSetting;
140
- return _regenerator.default.wrap(function _callee3$(_context3) {
138
+ var callWaitingMockedResponse, response, toggleSetting, _t6, _t7, _t8, _t9, _t0;
139
+ return _regenerator.default.wrap(function (_context3) {
141
140
  while (1) switch (_context3.prev = _context3.next) {
142
141
  case 0:
143
142
  callWaitingMockedResponse = '<CallWaiting><active>false</active></CallWaiting>';
@@ -150,39 +149,38 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
150
149
  }
151
150
  });
152
151
  });
153
- _context3.next = 4;
152
+ _context3.next = 1;
154
153
  return callSettingsClient.getCallWaitingSetting();
155
- case 4:
154
+ case 1:
156
155
  response = _context3.sent;
157
156
  toggleSetting = response.data.callSetting;
158
157
  expect(webex.request).not.toBeCalled();
159
158
  expect(response.statusCode).toBe(200);
160
159
  expect(response.message).toBe(_constants.SUCCESS_MESSAGE);
161
160
  expect(toggleSetting.enabled).toStrictEqual(false);
162
- _context3.t0 = expect(global.fetch);
163
- _context3.t1 = callWaitingUrl;
164
- _context3.t2 = _types2.HTTP_METHODS.GET;
165
- _context3.next = 15;
161
+ _t6 = expect(global.fetch);
162
+ _t7 = callWaitingUrl;
163
+ _t8 = _types2.HTTP_METHODS.GET;
164
+ _context3.next = 2;
166
165
  return webex.credentials.getUserToken();
167
- case 15:
168
- _context3.t3 = _context3.sent;
169
- _context3.t4 = {
170
- Authorization: _context3.t3
171
- };
172
- _context3.t5 = {
173
- method: _context3.t2,
174
- headers: _context3.t4
166
+ case 2:
167
+ _t9 = _context3.sent;
168
+ _t0 = {
169
+ Authorization: _t9
175
170
  };
176
- _context3.t0.toBeCalledOnceWith.call(_context3.t0, _context3.t1, _context3.t5);
177
- case 19:
171
+ _t6.toBeCalledOnceWith.call(_t6, _t7, {
172
+ method: _t8,
173
+ headers: _t0
174
+ });
175
+ case 3:
178
176
  case "end":
179
177
  return _context3.stop();
180
178
  }
181
179
  }, _callee3);
182
180
  })));
183
181
  it('Error: Get Call Waiting setting throw 403 error', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4() {
184
- var response;
185
- return _regenerator.default.wrap(function _callee4$(_context4) {
182
+ var response, _t1, _t10, _t11, _t12, _t13;
183
+ return _regenerator.default.wrap(function (_context4) {
186
184
  while (1) switch (_context4.prev = _context4.next) {
187
185
  case 0:
188
186
  global.fetch = jest.fn(function () {
@@ -191,27 +189,26 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
191
189
  ok: false
192
190
  });
193
191
  });
194
- _context4.next = 3;
192
+ _context4.next = 1;
195
193
  return callSettingsClient.getCallWaitingSetting();
196
- case 3:
194
+ case 1:
197
195
  response = _context4.sent;
198
196
  expect(response.statusCode).toBe(403);
199
197
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
200
- _context4.t0 = expect(global.fetch);
201
- _context4.t1 = callWaitingUrl;
202
- _context4.t2 = _types2.HTTP_METHODS.GET;
203
- _context4.next = 11;
198
+ _t1 = expect(global.fetch);
199
+ _t10 = callWaitingUrl;
200
+ _t11 = _types2.HTTP_METHODS.GET;
201
+ _context4.next = 2;
204
202
  return webex.credentials.getUserToken();
205
- case 11:
206
- _context4.t3 = _context4.sent;
207
- _context4.t4 = {
208
- Authorization: _context4.t3
209
- };
210
- _context4.t5 = {
211
- method: _context4.t2,
212
- headers: _context4.t4
203
+ case 2:
204
+ _t12 = _context4.sent;
205
+ _t13 = {
206
+ Authorization: _t12
213
207
  };
214
- _context4.t0.toBeCalledOnceWith.call(_context4.t0, _context4.t1, _context4.t5);
208
+ _t1.toBeCalledOnceWith.call(_t1, _t10, {
209
+ method: _t11,
210
+ headers: _t13
211
+ });
215
212
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
216
213
  statusCode: 403
217
214
  }, {
@@ -222,50 +219,52 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
222
219
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
223
220
  method: 'getCallWaitingSetting'
224
221
  });
225
- expect(errorSpy).toHaveBeenCalled();
222
+ expect(errorSpy).toHaveBeenCalledWith("Failed to get call waiting setting: {}", {
223
+ file: 'WxCallBackendConnector',
224
+ method: 'getCallWaitingSetting'
225
+ });
226
226
  expect(logSpy).not.toHaveBeenCalled();
227
- case 19:
227
+ case 3:
228
228
  case "end":
229
229
  return _context4.stop();
230
230
  }
231
231
  }, _callee4);
232
232
  })));
233
233
  it('Error: Get Call Waiting settings throw URI error', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
234
- var response;
235
- return _regenerator.default.wrap(function _callee5$(_context5) {
234
+ var response, _t14, _t15, _t16, _t17, _t18;
235
+ return _regenerator.default.wrap(function (_context5) {
236
236
  while (1) switch (_context5.prev = _context5.next) {
237
237
  case 0:
238
238
  global.fetch = jest.fn().mockImplementation(function () {
239
239
  throw new URIError('422');
240
240
  });
241
- _context5.next = 3;
241
+ _context5.next = 1;
242
242
  return callSettingsClient.getCallWaitingSetting();
243
- case 3:
243
+ case 1:
244
244
  response = _context5.sent;
245
245
  expect(response.statusCode).toBe(422);
246
246
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
247
- _context5.t0 = expect(global.fetch);
248
- _context5.t1 = callWaitingUrl;
249
- _context5.t2 = _types2.HTTP_METHODS.GET;
250
- _context5.next = 11;
247
+ _t14 = expect(global.fetch);
248
+ _t15 = callWaitingUrl;
249
+ _t16 = _types2.HTTP_METHODS.GET;
250
+ _context5.next = 2;
251
251
  return webex.credentials.getUserToken();
252
- case 11:
253
- _context5.t3 = _context5.sent;
254
- _context5.t4 = {
255
- Authorization: _context5.t3
256
- };
257
- _context5.t5 = {
258
- method: _context5.t2,
259
- headers: _context5.t4
252
+ case 2:
253
+ _t17 = _context5.sent;
254
+ _t18 = {
255
+ Authorization: _t17
260
256
  };
261
- _context5.t0.toBeCalledOnceWith.call(_context5.t0, _context5.t1, _context5.t5);
257
+ _t14.toBeCalledOnceWith.call(_t14, _t15, {
258
+ method: _t16,
259
+ headers: _t18
260
+ });
262
261
  expect(serviceErrorCodeHandlerSpy).toBeCalledOnceWith({
263
262
  statusCode: 422
264
263
  }, {
265
264
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
266
265
  method: 'getCallWaitingSetting'
267
266
  });
268
- case 16:
267
+ case 3:
269
268
  case "end":
270
269
  return _context5.stop();
271
270
  }
@@ -282,7 +281,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
282
281
  });
283
282
  it('Success: Set DND settings', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6() {
284
283
  var dndRequestBody, response;
285
- return _regenerator.default.wrap(function _callee6$(_context6) {
284
+ return _regenerator.default.wrap(function (_context6) {
286
285
  while (1) switch (_context6.prev = _context6.next) {
287
286
  case 0:
288
287
  dndRequestBody = {
@@ -290,9 +289,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
290
289
  ringSplashEnabled: false
291
290
  };
292
291
  webex.request.mockResolvedValueOnce(responsePayload204);
293
- _context6.next = 4;
292
+ _context6.next = 1;
294
293
  return callSettingsClient.setDoNotDisturbSetting(false);
295
- case 4:
294
+ case 1:
296
295
  response = _context6.sent;
297
296
  expect(response.statusCode).toBe(204);
298
297
  expect(response.message).toBe(_constants.SUCCESS_MESSAGE);
@@ -301,7 +300,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
301
300
  uri: uri,
302
301
  body: dndRequestBody
303
302
  });
304
- case 8:
303
+ case 2:
305
304
  case "end":
306
305
  return _context6.stop();
307
306
  }
@@ -309,7 +308,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
309
308
  })));
310
309
  it('Success: Get DND setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee7() {
311
310
  var dndResponsePayload, response, toggleSetting;
312
- return _regenerator.default.wrap(function _callee7$(_context7) {
311
+ return _regenerator.default.wrap(function (_context7) {
313
312
  while (1) switch (_context7.prev = _context7.next) {
314
313
  case 0:
315
314
  dndResponsePayload = {
@@ -319,9 +318,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
319
318
  }
320
319
  };
321
320
  webex.request.mockResolvedValueOnce(dndResponsePayload);
322
- _context7.next = 4;
321
+ _context7.next = 1;
323
322
  return callSettingsClient.getDoNotDisturbSetting();
324
- case 4:
323
+ case 1:
325
324
  response = _context7.sent;
326
325
  toggleSetting = response.data.callSetting;
327
326
  expect(response.statusCode).toBe(200);
@@ -340,7 +339,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
340
339
  method: 'getDoNotDisturbSetting'
341
340
  });
342
341
  expect(errorSpy).not.toHaveBeenCalled();
343
- case 13:
342
+ case 2:
344
343
  case "end":
345
344
  return _context7.stop();
346
345
  }
@@ -348,7 +347,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
348
347
  })));
349
348
  it('Error: Set DND setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee8() {
350
349
  var dndRequestBody, response;
351
- return _regenerator.default.wrap(function _callee8$(_context8) {
350
+ return _regenerator.default.wrap(function (_context8) {
352
351
  while (1) switch (_context8.prev = _context8.next) {
353
352
  case 0:
354
353
  dndRequestBody = {
@@ -356,9 +355,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
356
355
  ringSplashEnabled: false
357
356
  };
358
357
  webex.request.mockRejectedValueOnce(responsePayload400);
359
- _context8.next = 4;
358
+ _context8.next = 1;
360
359
  return callSettingsClient.setDoNotDisturbSetting(false);
361
- case 4:
360
+ case 1:
362
361
  response = _context8.sent;
363
362
  expect(response.statusCode).toBe(400);
364
363
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -373,7 +372,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
373
372
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
374
373
  method: 'setDoNotDisturbSetting'
375
374
  });
376
- case 9:
375
+ case 2:
377
376
  case "end":
378
377
  return _context8.stop();
379
378
  }
@@ -381,13 +380,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
381
380
  })));
382
381
  it('Error: Get DND setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee9() {
383
382
  var response;
384
- return _regenerator.default.wrap(function _callee9$(_context9) {
383
+ return _regenerator.default.wrap(function (_context9) {
385
384
  while (1) switch (_context9.prev = _context9.next) {
386
385
  case 0:
387
386
  webex.request.mockRejectedValueOnce(responsePayload403);
388
- _context9.next = 3;
387
+ _context9.next = 1;
389
388
  return callSettingsClient.getDoNotDisturbSetting();
390
- case 3:
389
+ case 1:
391
390
  response = _context9.sent;
392
391
  expect(response.statusCode).toBe(403);
393
392
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -407,7 +406,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
407
406
  });
408
407
  expect(errorSpy).toHaveBeenCalled();
409
408
  expect(logSpy).not.toHaveBeenCalled();
410
- case 11:
409
+ case 2:
411
410
  case "end":
412
411
  return _context9.stop();
413
412
  }
@@ -424,13 +423,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
424
423
  });
425
424
  it('Success: Set Call Forward setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee0() {
426
425
  var response;
427
- return _regenerator.default.wrap(function _callee0$(_context0) {
426
+ return _regenerator.default.wrap(function (_context0) {
428
427
  while (1) switch (_context0.prev = _context0.next) {
429
428
  case 0:
430
429
  webex.request.mockResolvedValueOnce(responsePayload204);
431
- _context0.next = 3;
430
+ _context0.next = 1;
432
431
  return callSettingsClient.setCallForwardSetting(_testFixtures.callForwardPayload);
433
- case 3:
432
+ case 1:
434
433
  response = _context0.sent;
435
434
  expect(response.statusCode).toBe(204);
436
435
  expect(response.message).toBe(_constants.SUCCESS_MESSAGE);
@@ -439,7 +438,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
439
438
  uri: uri,
440
439
  body: _testFixtures.callForwardPayload
441
440
  });
442
- case 7:
441
+ case 2:
443
442
  case "end":
444
443
  return _context0.stop();
445
444
  }
@@ -447,7 +446,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
447
446
  })));
448
447
  it('Success: Get Call Forward setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee1() {
449
448
  var responsePayload, response, callForwardSetting;
450
- return _regenerator.default.wrap(function _callee1$(_context1) {
449
+ return _regenerator.default.wrap(function (_context1) {
451
450
  while (1) switch (_context1.prev = _context1.next) {
452
451
  case 0:
453
452
  responsePayload = {
@@ -455,9 +454,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
455
454
  body: _testFixtures.callForwardPayload
456
455
  };
457
456
  webex.request.mockResolvedValueOnce(responsePayload);
458
- _context1.next = 4;
457
+ _context1.next = 1;
459
458
  return callSettingsClient.getCallForwardSetting();
460
- case 4:
459
+ case 1:
461
460
  response = _context1.sent;
462
461
  callForwardSetting = response.data.callSetting;
463
462
  expect(response.statusCode).toBe(200);
@@ -467,7 +466,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
467
466
  method: _types2.HTTP_METHODS.GET,
468
467
  uri: uri
469
468
  });
470
- case 10:
469
+ case 2:
471
470
  case "end":
472
471
  return _context1.stop();
473
472
  }
@@ -475,13 +474,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
475
474
  })));
476
475
  it('Error: Set Call Forwarding setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee10() {
477
476
  var response;
478
- return _regenerator.default.wrap(function _callee10$(_context10) {
477
+ return _regenerator.default.wrap(function (_context10) {
479
478
  while (1) switch (_context10.prev = _context10.next) {
480
479
  case 0:
481
480
  webex.request.mockRejectedValueOnce(responsePayload400);
482
- _context10.next = 3;
481
+ _context10.next = 1;
483
482
  return callSettingsClient.setCallForwardSetting(_testFixtures.callForwardPayload);
484
- case 3:
483
+ case 1:
485
484
  response = _context10.sent;
486
485
  expect(response.statusCode).toBe(400);
487
486
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -496,7 +495,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
496
495
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
497
496
  method: 'setCallForwardSetting'
498
497
  });
499
- case 8:
498
+ case 2:
500
499
  case "end":
501
500
  return _context10.stop();
502
501
  }
@@ -504,13 +503,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
504
503
  })));
505
504
  it('Error: Get Call Forwarding setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee11() {
506
505
  var response;
507
- return _regenerator.default.wrap(function _callee11$(_context11) {
506
+ return _regenerator.default.wrap(function (_context11) {
508
507
  while (1) switch (_context11.prev = _context11.next) {
509
508
  case 0:
510
509
  webex.request.mockRejectedValueOnce(responsePayload403);
511
- _context11.next = 3;
510
+ _context11.next = 1;
512
511
  return callSettingsClient.getCallForwardSetting();
513
- case 3:
512
+ case 1:
514
513
  response = _context11.sent;
515
514
  expect(response.statusCode).toBe(403);
516
515
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -524,7 +523,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
524
523
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
525
524
  method: 'getCallForwardSetting'
526
525
  });
527
- case 8:
526
+ case 2:
528
527
  case "end":
529
528
  return _context11.stop();
530
529
  }
@@ -541,13 +540,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
541
540
  });
542
541
  it('Success: Set Voicemail setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee12() {
543
542
  var response;
544
- return _regenerator.default.wrap(function _callee12$(_context12) {
543
+ return _regenerator.default.wrap(function (_context12) {
545
544
  while (1) switch (_context12.prev = _context12.next) {
546
545
  case 0:
547
546
  webex.request.mockResolvedValueOnce(responsePayload204);
548
- _context12.next = 3;
547
+ _context12.next = 1;
549
548
  return callSettingsClient.setVoicemailSetting(_testFixtures.voicemailPayload);
550
- case 3:
549
+ case 1:
551
550
  response = _context12.sent;
552
551
  expect(response.statusCode).toBe(204);
553
552
  expect(response.message).toBe(_constants.SUCCESS_MESSAGE);
@@ -556,7 +555,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
556
555
  uri: uri,
557
556
  body: _testFixtures.voicemailPayload
558
557
  });
559
- case 7:
558
+ case 2:
560
559
  case "end":
561
560
  return _context12.stop();
562
561
  }
@@ -564,7 +563,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
564
563
  })));
565
564
  it('Success: Get Voicemail setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee13() {
566
565
  var responsePayload, response, voicemailSetting;
567
- return _regenerator.default.wrap(function _callee13$(_context13) {
566
+ return _regenerator.default.wrap(function (_context13) {
568
567
  while (1) switch (_context13.prev = _context13.next) {
569
568
  case 0:
570
569
  responsePayload = {
@@ -572,9 +571,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
572
571
  body: _testFixtures.voicemailPayload
573
572
  };
574
573
  webex.request.mockResolvedValueOnce(responsePayload);
575
- _context13.next = 4;
574
+ _context13.next = 1;
576
575
  return callSettingsClient.getVoicemailSetting();
577
- case 4:
576
+ case 1:
578
577
  response = _context13.sent;
579
578
  voicemailSetting = response.data.callSetting;
580
579
  expect(response.statusCode).toBe(200);
@@ -584,7 +583,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
584
583
  method: _types2.HTTP_METHODS.GET,
585
584
  uri: uri
586
585
  });
587
- case 10:
586
+ case 2:
588
587
  case "end":
589
588
  return _context13.stop();
590
589
  }
@@ -592,13 +591,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
592
591
  })));
593
592
  it('Error: Set Voicemail setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee14() {
594
593
  var response;
595
- return _regenerator.default.wrap(function _callee14$(_context14) {
594
+ return _regenerator.default.wrap(function (_context14) {
596
595
  while (1) switch (_context14.prev = _context14.next) {
597
596
  case 0:
598
597
  webex.request.mockRejectedValueOnce(responsePayload400);
599
- _context14.next = 3;
598
+ _context14.next = 1;
600
599
  return callSettingsClient.setVoicemailSetting(_testFixtures.voicemailPayload);
601
- case 3:
600
+ case 1:
602
601
  response = _context14.sent;
603
602
  expect(response.statusCode).toBe(400);
604
603
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -613,7 +612,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
613
612
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
614
613
  method: 'setVoicemailSetting'
615
614
  });
616
- case 8:
615
+ case 2:
617
616
  case "end":
618
617
  return _context14.stop();
619
618
  }
@@ -621,13 +620,13 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
621
620
  })));
622
621
  it('Error: Get Voicemail setting', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee15() {
623
622
  var response;
624
- return _regenerator.default.wrap(function _callee15$(_context15) {
623
+ return _regenerator.default.wrap(function (_context15) {
625
624
  while (1) switch (_context15.prev = _context15.next) {
626
625
  case 0:
627
626
  webex.request.mockRejectedValueOnce(responsePayload403);
628
- _context15.next = 3;
627
+ _context15.next = 1;
629
628
  return callSettingsClient.getVoicemailSetting();
630
- case 3:
629
+ case 1:
631
630
  response = _context15.sent;
632
631
  expect(response.statusCode).toBe(403);
633
632
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -641,7 +640,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
641
640
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
642
641
  method: 'getVoicemailSetting'
643
642
  });
644
- case 8:
643
+ case 2:
645
644
  case "end":
646
645
  return _context15.stop();
647
646
  }
@@ -659,7 +658,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
659
658
  });
660
659
  it('Success: Get Call Forward Always setting when set to destination', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee16() {
661
660
  var responsePayload, response, callForwardSetting;
662
- return _regenerator.default.wrap(function _callee16$(_context16) {
661
+ return _regenerator.default.wrap(function (_context16) {
663
662
  while (1) switch (_context16.prev = _context16.next) {
664
663
  case 0:
665
664
  responsePayload = {
@@ -667,9 +666,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
667
666
  body: _testFixtures.callForwardPayload
668
667
  };
669
668
  webex.request.mockResolvedValueOnce(responsePayload);
670
- _context16.next = 4;
669
+ _context16.next = 1;
671
670
  return callSettingsClient.getCallForwardAlwaysSetting();
672
- case 4:
671
+ case 1:
673
672
  response = _context16.sent;
674
673
  callForwardSetting = response.data.callSetting;
675
674
  expect(response.statusCode).toBe(200);
@@ -680,7 +679,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
680
679
  method: _types2.HTTP_METHODS.GET,
681
680
  uri: callForwardingUri
682
681
  });
683
- case 11:
682
+ case 2:
684
683
  case "end":
685
684
  return _context16.stop();
686
685
  }
@@ -688,7 +687,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
688
687
  })));
689
688
  it('Success: Get Call Forward Always setting in Fedramp with limited options in payload', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee17() {
690
689
  var responsePayload, voicemailResponsePayload, response, callSetting;
691
- return _regenerator.default.wrap(function _callee17$(_context17) {
690
+ return _regenerator.default.wrap(function (_context17) {
692
691
  while (1) switch (_context17.prev = _context17.next) {
693
692
  case 0:
694
693
  responsePayload = {
@@ -727,9 +726,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
727
726
  }
728
727
  };
729
728
  webex.request.mockResolvedValueOnce(responsePayload).mockResolvedValueOnce(voicemailResponsePayload);
730
- _context17.next = 5;
729
+ _context17.next = 1;
731
730
  return callSettingsClient.getCallForwardAlwaysSetting();
732
- case 5:
731
+ case 1:
733
732
  response = _context17.sent;
734
733
  callSetting = response.data.callSetting;
735
734
  expect(response.statusCode).toBe(200);
@@ -747,7 +746,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
747
746
  method: _types2.HTTP_METHODS.GET,
748
747
  uri: voicemailUri
749
748
  });
750
- case 16:
749
+ case 2:
751
750
  case "end":
752
751
  return _context17.stop();
753
752
  }
@@ -755,7 +754,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
755
754
  })));
756
755
  it('Success: Get Call Forward Always setting when set to disabled and voicemail request fails', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee18() {
757
756
  var responsePayload, response;
758
- return _regenerator.default.wrap(function _callee18$(_context18) {
757
+ return _regenerator.default.wrap(function (_context18) {
759
758
  while (1) switch (_context18.prev = _context18.next) {
760
759
  case 0:
761
760
  _testFixtures.callForwardPayload.callForwarding.always.enabled = false;
@@ -766,9 +765,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
766
765
  webex.request.mockResolvedValueOnce(responsePayload).mockRejectedValueOnce({
767
766
  statusCode: 503
768
767
  });
769
- _context18.next = 5;
768
+ _context18.next = 1;
770
769
  return callSettingsClient.getCallForwardAlwaysSetting();
771
- case 5:
770
+ case 1:
772
771
  response = _context18.sent;
773
772
  expect(response.statusCode).toBe(503);
774
773
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -791,7 +790,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
791
790
  file: _constants.WEBEX_CALLING_CONNECTOR_FILE,
792
791
  method: callSettingsClient.getCallForwardAlwaysSetting.name
793
792
  });
794
- case 15:
793
+ case 2:
795
794
  case "end":
796
795
  return _context18.stop();
797
796
  }
@@ -799,7 +798,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
799
798
  })));
800
799
  it('Success: Get Call Forward Always setting when set to voicemail', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee19() {
801
800
  var responsePayload, response, callForwardSetting;
802
- return _regenerator.default.wrap(function _callee19$(_context19) {
801
+ return _regenerator.default.wrap(function (_context19) {
803
802
  while (1) switch (_context19.prev = _context19.next) {
804
803
  case 0:
805
804
  _testFixtures.callForwardPayload.callForwarding.always.enabled = false;
@@ -811,9 +810,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
811
810
  statusCode: 200,
812
811
  body: _testFixtures.voicemailPayload
813
812
  });
814
- _context19.next = 5;
813
+ _context19.next = 1;
815
814
  return callSettingsClient.getCallForwardAlwaysSetting();
816
- case 5:
815
+ case 1:
817
816
  response = _context19.sent;
818
817
  callForwardSetting = response.data.callSetting;
819
818
  expect(response.statusCode).toBe(200);
@@ -829,7 +828,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
829
828
  method: _types2.HTTP_METHODS.GET,
830
829
  uri: voicemailUri
831
830
  });
832
- case 14:
831
+ case 2:
833
832
  case "end":
834
833
  return _context19.stop();
835
834
  }
@@ -837,7 +836,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
837
836
  })));
838
837
  it('Success: Get Call Forward Always setting when not set', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee20() {
839
838
  var responsePayload, response, callForwardSetting;
840
- return _regenerator.default.wrap(function _callee20$(_context20) {
839
+ return _regenerator.default.wrap(function (_context20) {
841
840
  while (1) switch (_context20.prev = _context20.next) {
842
841
  case 0:
843
842
  _testFixtures.callForwardPayload.callForwarding.always.enabled = false;
@@ -851,9 +850,9 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
851
850
  statusCode: 200,
852
851
  body: _testFixtures.voicemailPayload
853
852
  });
854
- _context20.next = 7;
853
+ _context20.next = 1;
855
854
  return callSettingsClient.getCallForwardAlwaysSetting();
856
- case 7:
855
+ case 1:
857
856
  response = _context20.sent;
858
857
  callForwardSetting = response.data.callSetting;
859
858
  expect(response.statusCode).toBe(200);
@@ -869,7 +868,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
869
868
  method: _types2.HTTP_METHODS.GET,
870
869
  uri: voicemailUri
871
870
  });
872
- case 16:
871
+ case 2:
873
872
  case "end":
874
873
  return _context20.stop();
875
874
  }
@@ -877,16 +876,16 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
877
876
  })));
878
877
  it('Failure: Get Call Forward Always setting fails', /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee21() {
879
878
  var responsePayload, response;
880
- return _regenerator.default.wrap(function _callee21$(_context21) {
879
+ return _regenerator.default.wrap(function (_context21) {
881
880
  while (1) switch (_context21.prev = _context21.next) {
882
881
  case 0:
883
882
  responsePayload = {
884
883
  statusCode: 503
885
884
  };
886
885
  webex.request.mockRejectedValueOnce(responsePayload);
887
- _context21.next = 4;
886
+ _context21.next = 1;
888
887
  return callSettingsClient.getCallForwardAlwaysSetting();
889
- case 4:
888
+ case 1:
890
889
  response = _context21.sent;
891
890
  expect(response.statusCode).toBe(503);
892
891
  expect(response.message).toBe(_constants.FAILURE_MESSAGE);
@@ -894,7 +893,7 @@ describe('Call Settings Client Tests for WxCallBackendConnector', function () {
894
893
  method: _types2.HTTP_METHODS.GET,
895
894
  uri: callForwardingUri
896
895
  });
897
- case 8:
896
+ case 2:
898
897
  case "end":
899
898
  return _context21.stop();
900
899
  }