@webex/plugin-meetings 3.8.0-next.29 → 3.8.0-next.30

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.
@@ -209,7 +209,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
209
209
  sessionId: this.sessionId
210
210
  });
211
211
  },
212
- version: "3.8.0-next.29"
212
+ version: "3.8.0-next.30"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -1046,7 +1046,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1046
1046
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1047
1047
  }
1048
1048
  },
1049
- version: "3.8.0-next.29"
1049
+ version: "3.8.0-next.30"
1050
1050
  });
1051
1051
  var _default = exports.default = Breakouts;
1052
1052
  //# sourceMappingURL=index.js.map
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
373
373
  throw error;
374
374
  });
375
375
  },
376
- version: "3.8.0-next.29"
376
+ version: "3.8.0-next.30"
377
377
  });
378
378
  var _default = exports.default = SimultaneousInterpretation;
379
379
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.8.0-next.29"
21
+ version: "3.8.0-next.30"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -11,7 +11,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequ
11
11
  _Object$defineProperty(exports, "__esModule", {
12
12
  value: true
13
13
  });
14
- exports.default = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2PolicyError = exports.MeetingInfoV2PasswordError = exports.MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2CaptchaError = exports.MeetingInfoV2AdhocMeetingError = void 0;
14
+ exports.default = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticLinkDoesNotExistError = exports.MeetingInfoV2PolicyError = exports.MeetingInfoV2PasswordError = exports.MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2CaptchaError = exports.MeetingInfoV2AdhocMeetingError = void 0;
15
15
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
16
16
  var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
17
17
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
@@ -37,6 +37,7 @@ var CAPTCHA_ERROR_DEFAULT_MESSAGE = 'Captcha required. Call fetchMeetingInfo() w
37
37
  var ADHOC_MEETING_DEFAULT_ERROR = 'Failed starting the adhoc meeting, Please contact support team ';
38
38
  var MEETING_IS_IN_PROGRESS_MESSAGE = 'Meeting is in progress';
39
39
  var STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE = 'Static meeting link already exists';
40
+ var FETCH_STATIC_MEETING_LINK = 'Meeting link does not exists for conversation';
40
41
  var CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES = [423005, 423006];
41
42
  var CAPTCHA_ERROR_REQUIRES_REGISTRATION_ID_CODES = [423007];
42
43
  var POLICY_ERROR_CODES = [403049, 403104, 403103, 403048, 403102, 403101];
@@ -237,61 +238,89 @@ var MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2JoinForbiddenError =
237
238
  return (0, _createClass2.default)(MeetingInfoV2JoinForbiddenError);
238
239
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
239
240
  /**
240
- * Error enabling/disabling static meeting link
241
+ * Error fetching static link for a conversation when it does not exist
241
242
  */
242
- var MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2MeetingIsInProgressError = /*#__PURE__*/function (_Error7) {
243
- (0, _inherits2.default)(MeetingInfoV2MeetingIsInProgressError, _Error7);
244
- var _super7 = _createSuper(MeetingInfoV2MeetingIsInProgressError);
243
+ var MeetingInfoV2StaticLinkDoesNotExistError = exports.MeetingInfoV2StaticLinkDoesNotExistError = /*#__PURE__*/function (_Error7) {
244
+ (0, _inherits2.default)(MeetingInfoV2StaticLinkDoesNotExistError, _Error7);
245
+ var _super7 = _createSuper(MeetingInfoV2StaticLinkDoesNotExistError);
245
246
  /**
246
247
  *
247
248
  * @constructor
248
249
  * @param {Number} [wbxAppApiErrorCode]
249
250
  * @param {String} [message]
250
- * @param {Boolean} [enable]
251
251
  */
252
- function MeetingInfoV2MeetingIsInProgressError(wbxAppApiErrorCode) {
252
+ function MeetingInfoV2StaticLinkDoesNotExistError(wbxAppApiErrorCode) {
253
253
  var _this7;
254
- var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MEETING_IS_IN_PROGRESS_MESSAGE;
255
- var enable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
256
- (0, _classCallCheck2.default)(this, MeetingInfoV2MeetingIsInProgressError);
257
- _this7 = _super7.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode, ", enable=").concat(enable));
254
+ var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : FETCH_STATIC_MEETING_LINK;
255
+ (0, _classCallCheck2.default)(this, MeetingInfoV2StaticLinkDoesNotExistError);
256
+ _this7 = _super7.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
258
257
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "sdkMessage", void 0);
259
258
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "wbxAppApiCode", void 0);
260
259
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "body", void 0);
261
- _this7.name = 'MeetingInfoV2MeetingIsInProgressError';
260
+ _this7.name = 'MeetingInfoV2StaticLinkDoesNotExistError';
262
261
  _this7.sdkMessage = message;
263
262
  _this7.stack = new Error().stack;
264
263
  _this7.wbxAppApiCode = wbxAppApiErrorCode;
265
264
  return _this7;
266
265
  }
267
- return (0, _createClass2.default)(MeetingInfoV2MeetingIsInProgressError);
266
+ return (0, _createClass2.default)(MeetingInfoV2StaticLinkDoesNotExistError);
268
267
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
269
268
  /**
270
269
  * Error enabling/disabling static meeting link
271
270
  */
272
- var MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = /*#__PURE__*/function (_Error8) {
273
- (0, _inherits2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists, _Error8);
274
- var _super8 = _createSuper(MeetingInfoV2StaticMeetingLinkAlreadyExists);
271
+ var MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2MeetingIsInProgressError = /*#__PURE__*/function (_Error8) {
272
+ (0, _inherits2.default)(MeetingInfoV2MeetingIsInProgressError, _Error8);
273
+ var _super8 = _createSuper(MeetingInfoV2MeetingIsInProgressError);
275
274
  /**
276
275
  *
277
276
  * @constructor
278
277
  * @param {Number} [wbxAppApiErrorCode]
279
278
  * @param {String} [message]
279
+ * @param {Boolean} [enable]
280
280
  */
281
- function MeetingInfoV2StaticMeetingLinkAlreadyExists(wbxAppApiErrorCode) {
281
+ function MeetingInfoV2MeetingIsInProgressError(wbxAppApiErrorCode) {
282
282
  var _this8;
283
- var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE;
284
- (0, _classCallCheck2.default)(this, MeetingInfoV2StaticMeetingLinkAlreadyExists);
285
- _this8 = _super8.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
283
+ var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MEETING_IS_IN_PROGRESS_MESSAGE;
284
+ var enable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
285
+ (0, _classCallCheck2.default)(this, MeetingInfoV2MeetingIsInProgressError);
286
+ _this8 = _super8.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode, ", enable=").concat(enable));
286
287
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "sdkMessage", void 0);
287
288
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "wbxAppApiCode", void 0);
288
289
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "body", void 0);
289
- _this8.name = 'MeetingInfoV2StaticMeetingLinkAlreadyExists';
290
+ _this8.name = 'MeetingInfoV2MeetingIsInProgressError';
290
291
  _this8.sdkMessage = message;
291
292
  _this8.stack = new Error().stack;
292
293
  _this8.wbxAppApiCode = wbxAppApiErrorCode;
293
294
  return _this8;
294
295
  }
296
+ return (0, _createClass2.default)(MeetingInfoV2MeetingIsInProgressError);
297
+ }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
298
+ /**
299
+ * Error enabling/disabling static meeting link
300
+ */
301
+ var MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = /*#__PURE__*/function (_Error9) {
302
+ (0, _inherits2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists, _Error9);
303
+ var _super9 = _createSuper(MeetingInfoV2StaticMeetingLinkAlreadyExists);
304
+ /**
305
+ *
306
+ * @constructor
307
+ * @param {Number} [wbxAppApiErrorCode]
308
+ * @param {String} [message]
309
+ */
310
+ function MeetingInfoV2StaticMeetingLinkAlreadyExists(wbxAppApiErrorCode) {
311
+ var _this9;
312
+ var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE;
313
+ (0, _classCallCheck2.default)(this, MeetingInfoV2StaticMeetingLinkAlreadyExists);
314
+ _this9 = _super9.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
315
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this9), "sdkMessage", void 0);
316
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this9), "wbxAppApiCode", void 0);
317
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this9), "body", void 0);
318
+ _this9.name = 'MeetingInfoV2StaticMeetingLinkAlreadyExists';
319
+ _this9.sdkMessage = message;
320
+ _this9.stack = new Error().stack;
321
+ _this9.wbxAppApiCode = wbxAppApiErrorCode;
322
+ return _this9;
323
+ }
295
324
  return (0, _createClass2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists);
296
325
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
297
326
  /**
@@ -394,7 +423,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
394
423
  */
395
424
  function () {
396
425
  var _createAdhocSpaceMeetingOrEnableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(conversationUrl, installedOrgID) {
397
- var _this9 = this;
426
+ var _this10 = this;
398
427
  var enableStaticMeetingLink,
399
428
  getInvitees,
400
429
  _args = arguments;
@@ -436,8 +465,8 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
436
465
  if (installedOrgID) {
437
466
  body.installedOrgID = installedOrgID;
438
467
  }
439
- var uri = _this9.webex.meetings.preferredWebexSite ? "https://".concat(_this9.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
440
- return _this9.webex.request({
468
+ var uri = _this10.webex.meetings.preferredWebexSite ? "https://".concat(_this10.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
469
+ return _this10.webex.request({
441
470
  method: _constants.HTTP_VERBS.POST,
442
471
  uri: uri,
443
472
  body: body
@@ -467,7 +496,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
467
496
  key: "createAdhocSpaceMeeting",
468
497
  value: (function () {
469
498
  var _createAdhocSpaceMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(conversationUrl, installedOrgID) {
470
- var _this10 = this;
499
+ var _this11 = this;
471
500
  return _regenerator.default.wrap(function _callee2$(_context2) {
472
501
  while (1) switch (_context2.prev = _context2.next) {
473
502
  case 0:
@@ -482,9 +511,9 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
482
511
  return requestResult;
483
512
  }).catch(function (err) {
484
513
  var _err$body16, _err$body17;
485
- _this10.handlePolicyError(err);
486
- _this10.handleJoinWebinarError(err);
487
- _this10.handleForbiddenError(err);
514
+ _this11.handlePolicyError(err);
515
+ _this11.handleJoinWebinarError(err);
516
+ _this11.handleForbiddenError(err);
488
517
  _metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_FAILURE, {
489
518
  reason: err.message,
490
519
  stack: err.stack
@@ -503,17 +532,18 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
503
532
  return createAdhocSpaceMeeting;
504
533
  }()
505
534
  /**
506
- * Enables static meeting link
507
- * @param {String} conversationUrl conversationUrl that's required to enable static meeting link
508
- * @returns {Promise} returns a meeting info object
535
+ * Fetches details for static meeting link
536
+ * @param {String} conversationUrl conversationUrl that's required to find static meeting link if it exists
537
+ * @returns {Promise} returns a Promise
509
538
  * @public
510
539
  * @memberof MeetingInfo
511
540
  */
512
541
  )
513
542
  }, {
514
- key: "enableStaticMeetingLink",
543
+ key: "fetchStaticMeetingLink",
515
544
  value: (function () {
516
- var _enableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
545
+ var _fetchStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
546
+ var body, uri;
517
547
  return _regenerator.default.wrap(function _callee3$(_context3) {
518
548
  while (1) switch (_context3.prev = _context3.next) {
519
549
  case 0:
@@ -523,25 +553,83 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
523
553
  }
524
554
  throw Error('No preferred webex site found');
525
555
  case 2:
526
- return _context3.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, undefined, true).then(function (requestResult) {
527
- _metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_SUCCESS);
556
+ body = {
557
+ spaceUrl: conversationUrl
558
+ };
559
+ uri = this.webex.meetings.preferredWebexSite ? "https://".concat(this.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant/query") : '';
560
+ return _context3.abrupt("return", this.webex.request({
561
+ method: _constants.HTTP_VERBS.POST,
562
+ uri: uri,
563
+ body: body
564
+ }).then(function (requestResult) {
565
+ _metrics.default.sendBehavioralMetric(_constants2.default.FETCH_STATIC_MEETING_LINK_SUCCESS);
528
566
  return requestResult;
529
567
  }).catch(function (err) {
530
568
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
531
569
  var _err$body18, _err$body19;
570
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_LINK_DOES_NOT_EXIST_ERROR, {
571
+ reason: err.message,
572
+ stack: err.stack
573
+ });
574
+ throw new MeetingInfoV2StaticLinkDoesNotExistError((_err$body18 = err.body) === null || _err$body18 === void 0 ? void 0 : _err$body18.code, (_err$body19 = err.body) === null || _err$body19 === void 0 ? void 0 : _err$body19.message);
575
+ }
576
+ _metrics.default.sendBehavioralMetric(_constants2.default.FETCH_STATIC_MEETING_LINK_FAILURE, {
577
+ reason: err.message,
578
+ stack: err.stack
579
+ });
580
+ throw err;
581
+ }));
582
+ case 5:
583
+ case "end":
584
+ return _context3.stop();
585
+ }
586
+ }, _callee3, this);
587
+ }));
588
+ function fetchStaticMeetingLink(_x5) {
589
+ return _fetchStaticMeetingLink.apply(this, arguments);
590
+ }
591
+ return fetchStaticMeetingLink;
592
+ }()
593
+ /**
594
+ * Enables static meeting link
595
+ * @param {String} conversationUrl conversationUrl that's required to enable static meeting link
596
+ * @returns {Promise} returns a Promise
597
+ * @public
598
+ * @memberof MeetingInfo
599
+ */
600
+ )
601
+ }, {
602
+ key: "enableStaticMeetingLink",
603
+ value: (function () {
604
+ var _enableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(conversationUrl) {
605
+ return _regenerator.default.wrap(function _callee4$(_context4) {
606
+ while (1) switch (_context4.prev = _context4.next) {
607
+ case 0:
608
+ if (this.webex.meetings.preferredWebexSite) {
609
+ _context4.next = 2;
610
+ break;
611
+ }
612
+ throw Error('No preferred webex site found');
613
+ case 2:
614
+ return _context4.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, undefined, true).then(function (requestResult) {
615
+ _metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_SUCCESS);
616
+ return requestResult;
617
+ }).catch(function (err) {
618
+ if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
619
+ var _err$body20, _err$body21;
532
620
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
533
621
  reason: err.message,
534
622
  stack: err.stack
535
623
  });
536
- throw new MeetingInfoV2MeetingIsInProgressError((_err$body18 = err.body) === null || _err$body18 === void 0 ? void 0 : _err$body18.code, (_err$body19 = err.body) === null || _err$body19 === void 0 ? void 0 : _err$body19.message, true);
624
+ throw new MeetingInfoV2MeetingIsInProgressError((_err$body20 = err.body) === null || _err$body20 === void 0 ? void 0 : _err$body20.code, (_err$body21 = err.body) === null || _err$body21 === void 0 ? void 0 : _err$body21.message, true);
537
625
  }
538
626
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 409) {
539
- var _err$body20, _err$body21;
627
+ var _err$body22, _err$body23;
540
628
  _metrics.default.sendBehavioralMetric(_constants2.default.STATIC_MEETING_LINK_ALREADY_EXISTS_ERROR, {
541
629
  reason: err.message,
542
630
  stack: err.stack
543
631
  });
544
- throw new MeetingInfoV2StaticMeetingLinkAlreadyExists((_err$body20 = err.body) === null || _err$body20 === void 0 ? void 0 : _err$body20.code, (_err$body21 = err.body) === null || _err$body21 === void 0 ? void 0 : _err$body21.message);
632
+ throw new MeetingInfoV2StaticMeetingLinkAlreadyExists((_err$body22 = err.body) === null || _err$body22 === void 0 ? void 0 : _err$body22.code, (_err$body23 = err.body) === null || _err$body23 === void 0 ? void 0 : _err$body23.message);
545
633
  }
546
634
  _metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_FAILURE, {
547
635
  reason: err.message,
@@ -551,11 +639,11 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
551
639
  }));
552
640
  case 3:
553
641
  case "end":
554
- return _context3.stop();
642
+ return _context4.stop();
555
643
  }
556
- }, _callee3, this);
644
+ }, _callee4, this);
557
645
  }));
558
- function enableStaticMeetingLink(_x5) {
646
+ function enableStaticMeetingLink(_x6) {
559
647
  return _enableStaticMeetingLink.apply(this, arguments);
560
648
  }
561
649
  return enableStaticMeetingLink;
@@ -563,7 +651,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
563
651
  /**
564
652
  * Disables static meeting link for given conversation url
565
653
  * @param {String} conversationUrl conversationUrl that's required to disable static meeting link if it exists
566
- * @returns {Promise} returns a meeting info object
654
+ * @returns {Promise} returns a Promise
567
655
  * @public
568
656
  * @memberof MeetingInfo
569
657
  */
@@ -571,13 +659,13 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
571
659
  }, {
572
660
  key: "disableStaticMeetingLink",
573
661
  value: (function () {
574
- var _disableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(conversationUrl) {
662
+ var _disableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(conversationUrl) {
575
663
  var body, uri;
576
- return _regenerator.default.wrap(function _callee4$(_context4) {
577
- while (1) switch (_context4.prev = _context4.next) {
664
+ return _regenerator.default.wrap(function _callee5$(_context5) {
665
+ while (1) switch (_context5.prev = _context5.next) {
578
666
  case 0:
579
667
  if (this.webex.meetings.preferredWebexSite) {
580
- _context4.next = 2;
668
+ _context5.next = 2;
581
669
  break;
582
670
  }
583
671
  throw Error('No preferred webex site found');
@@ -586,7 +674,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
586
674
  spaceUrl: conversationUrl
587
675
  };
588
676
  uri = this.webex.meetings.preferredWebexSite ? "https://".concat(this.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant/deletePersistentMeeting") : '';
589
- return _context4.abrupt("return", this.webex.request({
677
+ return _context5.abrupt("return", this.webex.request({
590
678
  method: _constants.HTTP_VERBS.POST,
591
679
  uri: uri,
592
680
  body: body
@@ -595,12 +683,12 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
595
683
  return requestResult;
596
684
  }).catch(function (err) {
597
685
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
598
- var _err$body22, _err$body23;
686
+ var _err$body24, _err$body25;
599
687
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
600
688
  reason: err.message,
601
689
  stack: err.stack
602
690
  });
603
- throw new MeetingInfoV2MeetingIsInProgressError((_err$body22 = err.body) === null || _err$body22 === void 0 ? void 0 : _err$body22.code, (_err$body23 = err.body) === null || _err$body23 === void 0 ? void 0 : _err$body23.message);
691
+ throw new MeetingInfoV2MeetingIsInProgressError((_err$body24 = err.body) === null || _err$body24 === void 0 ? void 0 : _err$body24.code, (_err$body25 = err.body) === null || _err$body25 === void 0 ? void 0 : _err$body25.message);
604
692
  }
605
693
  _metrics.default.sendBehavioralMetric(_constants2.default.DISABLE_STATIC_MEETING_LINK_FAILURE, {
606
694
  reason: err.message,
@@ -610,11 +698,11 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
610
698
  }));
611
699
  case 5:
612
700
  case "end":
613
- return _context4.stop();
701
+ return _context5.stop();
614
702
  }
615
- }, _callee4, this);
703
+ }, _callee5, this);
616
704
  }));
617
- function disableStaticMeetingLink(_x6) {
705
+ function disableStaticMeetingLink(_x7) {
618
706
  return _disableStaticMeetingLink.apply(this, arguments);
619
707
  }
620
708
  return disableStaticMeetingLink;
@@ -640,8 +728,8 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
640
728
  }, {
641
729
  key: "fetchMeetingInfo",
642
730
  value: (function () {
643
- var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(destination) {
644
- var _this11 = this;
731
+ var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(destination) {
732
+ var _this12 = this;
645
733
  var type,
646
734
  password,
647
735
  captchaInfo,
@@ -659,34 +747,34 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
659
747
  err,
660
748
  requestOptions,
661
749
  directURI,
662
- _args5 = arguments;
663
- return _regenerator.default.wrap(function _callee5$(_context5) {
664
- while (1) switch (_context5.prev = _context5.next) {
750
+ _args6 = arguments;
751
+ return _regenerator.default.wrap(function _callee6$(_context6) {
752
+ while (1) switch (_context6.prev = _context6.next) {
665
753
  case 0:
666
- type = _args5.length > 1 && _args5[1] !== undefined ? _args5[1] : null;
667
- password = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : null;
668
- captchaInfo = _args5.length > 3 && _args5[3] !== undefined ? _args5[3] : null;
669
- installedOrgID = _args5.length > 4 && _args5[4] !== undefined ? _args5[4] : null;
670
- locusId = _args5.length > 5 && _args5[5] !== undefined ? _args5[5] : null;
671
- extraParams = _args5.length > 6 && _args5[6] !== undefined ? _args5[6] : {};
672
- options = _args5.length > 7 && _args5[7] !== undefined ? _args5[7] : {};
673
- registrationId = _args5.length > 8 && _args5[8] !== undefined ? _args5[8] : null;
754
+ type = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : null;
755
+ password = _args6.length > 2 && _args6[2] !== undefined ? _args6[2] : null;
756
+ captchaInfo = _args6.length > 3 && _args6[3] !== undefined ? _args6[3] : null;
757
+ installedOrgID = _args6.length > 4 && _args6[4] !== undefined ? _args6[4] : null;
758
+ locusId = _args6.length > 5 && _args6[5] !== undefined ? _args6[5] : null;
759
+ extraParams = _args6.length > 6 && _args6[6] !== undefined ? _args6[6] : {};
760
+ options = _args6.length > 7 && _args6[7] !== undefined ? _args6[7] : {};
761
+ registrationId = _args6.length > 8 && _args6[8] !== undefined ? _args6[8] : null;
674
762
  meetingId = options.meetingId, sendCAevents = options.sendCAevents;
675
- _context5.next = 11;
763
+ _context6.next = 11;
676
764
  return _utilv.default.getDestinationType({
677
765
  destination: destination,
678
766
  type: type,
679
767
  webex: this.webex
680
768
  });
681
769
  case 11:
682
- destinationType = _context5.sent;
770
+ destinationType = _context6.sent;
683
771
  if (!(destinationType.type === _constants.DESTINATION_TYPE.CONVERSATION_URL && this.webex.config.meetings.experimental.enableAdhocMeetings && this.webex.meetings.preferredWebexSite)) {
684
- _context5.next = 14;
772
+ _context6.next = 14;
685
773
  break;
686
774
  }
687
- return _context5.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID));
775
+ return _context6.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID));
688
776
  case 14:
689
- _context5.next = 16;
777
+ _context6.next = 16;
690
778
  return _utilv.default.getRequestBody(_objectSpread(_objectSpread({}, destinationType), {}, {
691
779
  password: password,
692
780
  captchaInfo: captchaInfo,
@@ -696,9 +784,9 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
696
784
  registrationId: registrationId
697
785
  }));
698
786
  case 16:
699
- body = _context5.sent;
787
+ body = _context6.sent;
700
788
  if (_lodash.default.difference((0, _keys.default)(body), (0, _keys.default)(_constants.DEFAULT_MEETING_INFO_REQUEST_BODY)).length) {
701
- _context5.next = 21;
789
+ _context6.next = 21;
702
790
  break;
703
791
  }
704
792
  err = new Error('Not enough information to fetch meeting info');
@@ -714,10 +802,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
714
802
  method: _constants.HTTP_VERBS.POST,
715
803
  body: body
716
804
  };
717
- _context5.next = 24;
805
+ _context6.next = 24;
718
806
  return _utilv.default.getDirectMeetingInfoURI(destinationType);
719
807
  case 24:
720
- directURI = _context5.sent;
808
+ directURI = _context6.sent;
721
809
  if (directURI) {
722
810
  requestOptions.uri = directURI;
723
811
  } else {
@@ -735,13 +823,13 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
735
823
  }
736
824
  });
737
825
  }
738
- return _context5.abrupt("return", this.webex.request(requestOptions).then(function (response) {
826
+ return _context6.abrupt("return", this.webex.request(requestOptions).then(function (response) {
739
827
  if (meetingId && sendCAevents) {
740
828
  var _response$body, _response$body2, _response$body3;
741
- _this11.webex.internal.newMetrics.submitInternalEvent({
829
+ _this12.webex.internal.newMetrics.submitInternalEvent({
742
830
  name: 'internal.client.meetinginfo.response'
743
831
  });
744
- _this11.webex.internal.newMetrics.submitClientEvent({
832
+ _this12.webex.internal.newMetrics.submitClientEvent({
745
833
  name: 'client.meetinginfo.response',
746
834
  payload: {
747
835
  identifiers: {
@@ -759,10 +847,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
759
847
  return response;
760
848
  }).catch(function (err) {
761
849
  if (meetingId && sendCAevents) {
762
- _this11.webex.internal.newMetrics.submitInternalEvent({
850
+ _this12.webex.internal.newMetrics.submitInternalEvent({
763
851
  name: 'internal.client.meetinginfo.response'
764
852
  });
765
- _this11.webex.internal.newMetrics.submitClientEvent({
853
+ _this12.webex.internal.newMetrics.submitClientEvent({
766
854
  name: 'client.meetinginfo.response',
767
855
  payload: {
768
856
  identifiers: {
@@ -776,23 +864,23 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
776
864
  });
777
865
  }
778
866
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
779
- var _err$body24, _err$body25, _err$body25$data;
780
- _this11.handlePolicyError(err);
781
- _this11.handleJoinWebinarError(err);
782
- _this11.handleForbiddenError(err);
867
+ var _err$body26, _err$body27, _err$body27$data;
868
+ _this12.handlePolicyError(err);
869
+ _this12.handleJoinWebinarError(err);
870
+ _this12.handleForbiddenError(err);
783
871
  _metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_PASSWORD_ERROR, {
784
872
  reason: err.message,
785
873
  stack: err.stack
786
874
  });
787
- throw new MeetingInfoV2PasswordError((_err$body24 = err.body) === null || _err$body24 === void 0 ? void 0 : _err$body24.code, (_err$body25 = err.body) === null || _err$body25 === void 0 ? void 0 : (_err$body25$data = _err$body25.data) === null || _err$body25$data === void 0 ? void 0 : _err$body25$data.meetingInfo);
875
+ throw new MeetingInfoV2PasswordError((_err$body26 = err.body) === null || _err$body26 === void 0 ? void 0 : _err$body26.code, (_err$body27 = err.body) === null || _err$body27 === void 0 ? void 0 : (_err$body27$data = _err$body27.data) === null || _err$body27$data === void 0 ? void 0 : _err$body27$data.meetingInfo);
788
876
  }
789
877
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 423) {
790
- var _err$body26;
878
+ var _err$body28;
791
879
  _metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_CAPTCHA_ERROR, {
792
880
  reason: err.message,
793
881
  stack: err.stack
794
882
  });
795
- throw new MeetingInfoV2CaptchaError((_err$body26 = err.body) === null || _err$body26 === void 0 ? void 0 : _err$body26.code, {
883
+ throw new MeetingInfoV2CaptchaError((_err$body28 = err.body) === null || _err$body28 === void 0 ? void 0 : _err$body28.code, {
796
884
  captchaId: err.body.captchaID,
797
885
  verificationImageURL: err.body.verificationImageURL,
798
886
  verificationAudioURL: err.body.verificationAudioURL,
@@ -807,11 +895,11 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
807
895
  }));
808
896
  case 28:
809
897
  case "end":
810
- return _context5.stop();
898
+ return _context6.stop();
811
899
  }
812
- }, _callee5, this);
900
+ }, _callee6, this);
813
901
  }));
814
- function fetchMeetingInfo(_x7) {
902
+ function fetchMeetingInfo(_x8) {
815
903
  return _fetchMeetingInfo.apply(this, arguments);
816
904
  }
817
905
  return fetchMeetingInfo;