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

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.27"
212
+ version: "3.8.0-next.29"
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.27"
1049
+ version: "3.8.0-next.29"
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.27"
376
+ version: "3.8.0-next.29"
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.27"
21
+ version: "3.8.0-next.29"
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.MeetingInfoV2PolicyError = exports.MeetingInfoV2PasswordError = exports.MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2CaptchaError = exports.MeetingInfoV2AdhocMeetingError = void 0;
14
+ exports.default = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = 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"));
@@ -35,6 +35,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
35
35
  var PASSWORD_ERROR_DEFAULT_MESSAGE = 'Password required. Call fetchMeetingInfo() with password argument';
36
36
  var CAPTCHA_ERROR_DEFAULT_MESSAGE = 'Captcha required. Call fetchMeetingInfo() with captchaInfo argument';
37
37
  var ADHOC_MEETING_DEFAULT_ERROR = 'Failed starting the adhoc meeting, Please contact support team ';
38
+ var MEETING_IS_IN_PROGRESS_MESSAGE = 'Meeting is in progress';
39
+ var STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE = 'Static meeting link already exists';
38
40
  var CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES = [423005, 423006];
39
41
  var CAPTCHA_ERROR_REQUIRES_REGISTRATION_ID_CODES = [423007];
40
42
  var POLICY_ERROR_CODES = [403049, 403104, 403103, 403048, 403102, 403101];
@@ -234,6 +236,64 @@ var MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2JoinForbiddenError =
234
236
  }
235
237
  return (0, _createClass2.default)(MeetingInfoV2JoinForbiddenError);
236
238
  }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
239
+ /**
240
+ * Error enabling/disabling static meeting link
241
+ */
242
+ var MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2MeetingIsInProgressError = /*#__PURE__*/function (_Error7) {
243
+ (0, _inherits2.default)(MeetingInfoV2MeetingIsInProgressError, _Error7);
244
+ var _super7 = _createSuper(MeetingInfoV2MeetingIsInProgressError);
245
+ /**
246
+ *
247
+ * @constructor
248
+ * @param {Number} [wbxAppApiErrorCode]
249
+ * @param {String} [message]
250
+ * @param {Boolean} [enable]
251
+ */
252
+ function MeetingInfoV2MeetingIsInProgressError(wbxAppApiErrorCode) {
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));
258
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "sdkMessage", void 0);
259
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "wbxAppApiCode", void 0);
260
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "body", void 0);
261
+ _this7.name = 'MeetingInfoV2MeetingIsInProgressError';
262
+ _this7.sdkMessage = message;
263
+ _this7.stack = new Error().stack;
264
+ _this7.wbxAppApiCode = wbxAppApiErrorCode;
265
+ return _this7;
266
+ }
267
+ return (0, _createClass2.default)(MeetingInfoV2MeetingIsInProgressError);
268
+ }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
269
+ /**
270
+ * Error enabling/disabling static meeting link
271
+ */
272
+ var MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = /*#__PURE__*/function (_Error8) {
273
+ (0, _inherits2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists, _Error8);
274
+ var _super8 = _createSuper(MeetingInfoV2StaticMeetingLinkAlreadyExists);
275
+ /**
276
+ *
277
+ * @constructor
278
+ * @param {Number} [wbxAppApiErrorCode]
279
+ * @param {String} [message]
280
+ */
281
+ function MeetingInfoV2StaticMeetingLinkAlreadyExists(wbxAppApiErrorCode) {
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));
286
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "sdkMessage", void 0);
287
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "wbxAppApiCode", void 0);
288
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "body", void 0);
289
+ _this8.name = 'MeetingInfoV2StaticMeetingLinkAlreadyExists';
290
+ _this8.sdkMessage = message;
291
+ _this8.stack = new Error().stack;
292
+ _this8.wbxAppApiCode = wbxAppApiErrorCode;
293
+ return _this8;
294
+ }
295
+ return (0, _createClass2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists);
296
+ }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
237
297
  /**
238
298
  * @class MeetingInfo
239
299
  */
@@ -321,29 +381,27 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
321
381
  });
322
382
  }
323
383
  }, {
324
- key: "createAdhocSpaceMeeting",
384
+ key: "createAdhocSpaceMeetingOrEnableStaticMeetingLink",
325
385
  value: (
326
386
  /**
327
- * Creates adhoc space meetings for a space by fetching the conversation infomation
387
+ * helper function to either create an adhoc space meeting or enable static meeting link
328
388
  * @param {String} conversationUrl conversationUrl to start adhoc meeting on
329
389
  * @param {String} installedOrgID org ID of user's machine
390
+ * @param {Boolean} enableStaticMeetingLink whether or not to enable static meeting link
330
391
  * @returns {Promise} returns a meeting info object
331
392
  * @public
332
393
  * @memberof MeetingInfo
333
394
  */
334
395
  function () {
335
- var _createAdhocSpaceMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(conversationUrl, installedOrgID) {
336
- var _this7 = this;
337
- var getInvitees;
396
+ var _createAdhocSpaceMeetingOrEnableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(conversationUrl, installedOrgID) {
397
+ var _this9 = this;
398
+ var enableStaticMeetingLink,
399
+ getInvitees,
400
+ _args = arguments;
338
401
  return _regenerator.default.wrap(function _callee$(_context) {
339
402
  while (1) switch (_context.prev = _context.next) {
340
403
  case 0:
341
- if (this.webex.meetings.preferredWebexSite) {
342
- _context.next = 2;
343
- break;
344
- }
345
- throw Error('No preferred webex site found');
346
- case 2:
404
+ enableStaticMeetingLink = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
347
405
  getInvitees = function getInvitees() {
348
406
  var particpants = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
349
407
  var invitees = [];
@@ -372,42 +430,195 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
372
430
  keyUrl: conversation.encryptionKeyUrl,
373
431
  kroUrl: conversation.kmsResourceObjectUrl,
374
432
  invitees: getInvitees((_conversation$partici = conversation.participants) === null || _conversation$partici === void 0 ? void 0 : _conversation$partici.items),
375
- installedOrgID: installedOrgID
433
+ installedOrgID: installedOrgID,
434
+ schedule: enableStaticMeetingLink
376
435
  };
377
436
  if (installedOrgID) {
378
437
  body.installedOrgID = installedOrgID;
379
438
  }
380
- var uri = _this7.webex.meetings.preferredWebexSite ? "https://".concat(_this7.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
381
- return _this7.webex.request({
439
+ var uri = _this9.webex.meetings.preferredWebexSite ? "https://".concat(_this9.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
440
+ return _this9.webex.request({
382
441
  method: _constants.HTTP_VERBS.POST,
383
442
  uri: uri,
384
443
  body: body
385
444
  });
386
- }).then(function (requestResult) {
445
+ }));
446
+ case 3:
447
+ case "end":
448
+ return _context.stop();
449
+ }
450
+ }, _callee, this);
451
+ }));
452
+ function createAdhocSpaceMeetingOrEnableStaticMeetingLink(_x, _x2) {
453
+ return _createAdhocSpaceMeetingOrEnableStaticMeetingLink.apply(this, arguments);
454
+ }
455
+ return createAdhocSpaceMeetingOrEnableStaticMeetingLink;
456
+ }()
457
+ /**
458
+ * Creates adhoc space meetings for a space by fetching the conversation infomation
459
+ * @param {String} conversationUrl conversationUrl to start adhoc meeting on
460
+ * @param {String} installedOrgID org ID of user's machine
461
+ * @returns {Promise} returns a meeting info object
462
+ * @public
463
+ * @memberof MeetingInfo
464
+ */
465
+ )
466
+ }, {
467
+ key: "createAdhocSpaceMeeting",
468
+ value: (function () {
469
+ var _createAdhocSpaceMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(conversationUrl, installedOrgID) {
470
+ var _this10 = this;
471
+ return _regenerator.default.wrap(function _callee2$(_context2) {
472
+ while (1) switch (_context2.prev = _context2.next) {
473
+ case 0:
474
+ if (this.webex.meetings.preferredWebexSite) {
475
+ _context2.next = 2;
476
+ break;
477
+ }
478
+ throw Error('No preferred webex site found');
479
+ case 2:
480
+ return _context2.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, installedOrgID).then(function (requestResult) {
387
481
  _metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_SUCCESS);
388
482
  return requestResult;
389
483
  }).catch(function (err) {
390
484
  var _err$body16, _err$body17;
391
- _this7.handlePolicyError(err);
392
- _this7.handleJoinWebinarError(err);
393
- _this7.handleForbiddenError(err);
485
+ _this10.handlePolicyError(err);
486
+ _this10.handleJoinWebinarError(err);
487
+ _this10.handleForbiddenError(err);
394
488
  _metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_FAILURE, {
395
489
  reason: err.message,
396
490
  stack: err.stack
397
491
  });
398
492
  throw new MeetingInfoV2AdhocMeetingError((_err$body16 = err.body) === null || _err$body16 === void 0 ? void 0 : _err$body16.code, (_err$body17 = err.body) === null || _err$body17 === void 0 ? void 0 : _err$body17.message);
399
493
  }));
400
- case 4:
494
+ case 3:
401
495
  case "end":
402
- return _context.stop();
496
+ return _context2.stop();
403
497
  }
404
- }, _callee, this);
498
+ }, _callee2, this);
405
499
  }));
406
- function createAdhocSpaceMeeting(_x, _x2) {
500
+ function createAdhocSpaceMeeting(_x3, _x4) {
407
501
  return _createAdhocSpaceMeeting.apply(this, arguments);
408
502
  }
409
503
  return createAdhocSpaceMeeting;
410
504
  }()
505
+ /**
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
509
+ * @public
510
+ * @memberof MeetingInfo
511
+ */
512
+ )
513
+ }, {
514
+ key: "enableStaticMeetingLink",
515
+ value: (function () {
516
+ var _enableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
517
+ return _regenerator.default.wrap(function _callee3$(_context3) {
518
+ while (1) switch (_context3.prev = _context3.next) {
519
+ case 0:
520
+ if (this.webex.meetings.preferredWebexSite) {
521
+ _context3.next = 2;
522
+ break;
523
+ }
524
+ throw Error('No preferred webex site found');
525
+ 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);
528
+ return requestResult;
529
+ }).catch(function (err) {
530
+ if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
531
+ var _err$body18, _err$body19;
532
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
533
+ reason: err.message,
534
+ stack: err.stack
535
+ });
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);
537
+ }
538
+ if ((err === null || err === void 0 ? void 0 : err.statusCode) === 409) {
539
+ var _err$body20, _err$body21;
540
+ _metrics.default.sendBehavioralMetric(_constants2.default.STATIC_MEETING_LINK_ALREADY_EXISTS_ERROR, {
541
+ reason: err.message,
542
+ stack: err.stack
543
+ });
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);
545
+ }
546
+ _metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_FAILURE, {
547
+ reason: err.message,
548
+ stack: err.stack
549
+ });
550
+ throw err;
551
+ }));
552
+ case 3:
553
+ case "end":
554
+ return _context3.stop();
555
+ }
556
+ }, _callee3, this);
557
+ }));
558
+ function enableStaticMeetingLink(_x5) {
559
+ return _enableStaticMeetingLink.apply(this, arguments);
560
+ }
561
+ return enableStaticMeetingLink;
562
+ }()
563
+ /**
564
+ * Disables static meeting link for given conversation url
565
+ * @param {String} conversationUrl conversationUrl that's required to disable static meeting link if it exists
566
+ * @returns {Promise} returns a meeting info object
567
+ * @public
568
+ * @memberof MeetingInfo
569
+ */
570
+ )
571
+ }, {
572
+ key: "disableStaticMeetingLink",
573
+ value: (function () {
574
+ var _disableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(conversationUrl) {
575
+ var body, uri;
576
+ return _regenerator.default.wrap(function _callee4$(_context4) {
577
+ while (1) switch (_context4.prev = _context4.next) {
578
+ case 0:
579
+ if (this.webex.meetings.preferredWebexSite) {
580
+ _context4.next = 2;
581
+ break;
582
+ }
583
+ throw Error('No preferred webex site found');
584
+ case 2:
585
+ body = {
586
+ spaceUrl: conversationUrl
587
+ };
588
+ uri = this.webex.meetings.preferredWebexSite ? "https://".concat(this.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant/deletePersistentMeeting") : '';
589
+ return _context4.abrupt("return", this.webex.request({
590
+ method: _constants.HTTP_VERBS.POST,
591
+ uri: uri,
592
+ body: body
593
+ }).then(function (requestResult) {
594
+ _metrics.default.sendBehavioralMetric(_constants2.default.DISABLE_STATIC_MEETING_LINK_SUCCESS);
595
+ return requestResult;
596
+ }).catch(function (err) {
597
+ if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
598
+ var _err$body22, _err$body23;
599
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
600
+ reason: err.message,
601
+ stack: err.stack
602
+ });
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);
604
+ }
605
+ _metrics.default.sendBehavioralMetric(_constants2.default.DISABLE_STATIC_MEETING_LINK_FAILURE, {
606
+ reason: err.message,
607
+ stack: err.stack
608
+ });
609
+ throw err;
610
+ }));
611
+ case 5:
612
+ case "end":
613
+ return _context4.stop();
614
+ }
615
+ }, _callee4, this);
616
+ }));
617
+ function disableStaticMeetingLink(_x6) {
618
+ return _disableStaticMeetingLink.apply(this, arguments);
619
+ }
620
+ return disableStaticMeetingLink;
621
+ }()
411
622
  /**
412
623
  * Fetches meeting info from the server
413
624
  * @param {String} destination one of many different types of destinations to look up info for
@@ -429,8 +640,8 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
429
640
  }, {
430
641
  key: "fetchMeetingInfo",
431
642
  value: (function () {
432
- var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(destination) {
433
- var _this8 = this;
643
+ var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(destination) {
644
+ var _this11 = this;
434
645
  var type,
435
646
  password,
436
647
  captchaInfo,
@@ -448,34 +659,34 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
448
659
  err,
449
660
  requestOptions,
450
661
  directURI,
451
- _args2 = arguments;
452
- return _regenerator.default.wrap(function _callee2$(_context2) {
453
- while (1) switch (_context2.prev = _context2.next) {
662
+ _args5 = arguments;
663
+ return _regenerator.default.wrap(function _callee5$(_context5) {
664
+ while (1) switch (_context5.prev = _context5.next) {
454
665
  case 0:
455
- type = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : null;
456
- password = _args2.length > 2 && _args2[2] !== undefined ? _args2[2] : null;
457
- captchaInfo = _args2.length > 3 && _args2[3] !== undefined ? _args2[3] : null;
458
- installedOrgID = _args2.length > 4 && _args2[4] !== undefined ? _args2[4] : null;
459
- locusId = _args2.length > 5 && _args2[5] !== undefined ? _args2[5] : null;
460
- extraParams = _args2.length > 6 && _args2[6] !== undefined ? _args2[6] : {};
461
- options = _args2.length > 7 && _args2[7] !== undefined ? _args2[7] : {};
462
- registrationId = _args2.length > 8 && _args2[8] !== undefined ? _args2[8] : null;
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;
463
674
  meetingId = options.meetingId, sendCAevents = options.sendCAevents;
464
- _context2.next = 11;
675
+ _context5.next = 11;
465
676
  return _utilv.default.getDestinationType({
466
677
  destination: destination,
467
678
  type: type,
468
679
  webex: this.webex
469
680
  });
470
681
  case 11:
471
- destinationType = _context2.sent;
682
+ destinationType = _context5.sent;
472
683
  if (!(destinationType.type === _constants.DESTINATION_TYPE.CONVERSATION_URL && this.webex.config.meetings.experimental.enableAdhocMeetings && this.webex.meetings.preferredWebexSite)) {
473
- _context2.next = 14;
684
+ _context5.next = 14;
474
685
  break;
475
686
  }
476
- return _context2.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID));
687
+ return _context5.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID));
477
688
  case 14:
478
- _context2.next = 16;
689
+ _context5.next = 16;
479
690
  return _utilv.default.getRequestBody(_objectSpread(_objectSpread({}, destinationType), {}, {
480
691
  password: password,
481
692
  captchaInfo: captchaInfo,
@@ -485,9 +696,9 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
485
696
  registrationId: registrationId
486
697
  }));
487
698
  case 16:
488
- body = _context2.sent;
699
+ body = _context5.sent;
489
700
  if (_lodash.default.difference((0, _keys.default)(body), (0, _keys.default)(_constants.DEFAULT_MEETING_INFO_REQUEST_BODY)).length) {
490
- _context2.next = 21;
701
+ _context5.next = 21;
491
702
  break;
492
703
  }
493
704
  err = new Error('Not enough information to fetch meeting info');
@@ -503,10 +714,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
503
714
  method: _constants.HTTP_VERBS.POST,
504
715
  body: body
505
716
  };
506
- _context2.next = 24;
717
+ _context5.next = 24;
507
718
  return _utilv.default.getDirectMeetingInfoURI(destinationType);
508
719
  case 24:
509
- directURI = _context2.sent;
720
+ directURI = _context5.sent;
510
721
  if (directURI) {
511
722
  requestOptions.uri = directURI;
512
723
  } else {
@@ -524,13 +735,13 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
524
735
  }
525
736
  });
526
737
  }
527
- return _context2.abrupt("return", this.webex.request(requestOptions).then(function (response) {
738
+ return _context5.abrupt("return", this.webex.request(requestOptions).then(function (response) {
528
739
  if (meetingId && sendCAevents) {
529
740
  var _response$body, _response$body2, _response$body3;
530
- _this8.webex.internal.newMetrics.submitInternalEvent({
741
+ _this11.webex.internal.newMetrics.submitInternalEvent({
531
742
  name: 'internal.client.meetinginfo.response'
532
743
  });
533
- _this8.webex.internal.newMetrics.submitClientEvent({
744
+ _this11.webex.internal.newMetrics.submitClientEvent({
534
745
  name: 'client.meetinginfo.response',
535
746
  payload: {
536
747
  identifiers: {
@@ -548,10 +759,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
548
759
  return response;
549
760
  }).catch(function (err) {
550
761
  if (meetingId && sendCAevents) {
551
- _this8.webex.internal.newMetrics.submitInternalEvent({
762
+ _this11.webex.internal.newMetrics.submitInternalEvent({
552
763
  name: 'internal.client.meetinginfo.response'
553
764
  });
554
- _this8.webex.internal.newMetrics.submitClientEvent({
765
+ _this11.webex.internal.newMetrics.submitClientEvent({
555
766
  name: 'client.meetinginfo.response',
556
767
  payload: {
557
768
  identifiers: {
@@ -565,23 +776,23 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
565
776
  });
566
777
  }
567
778
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
568
- var _err$body18, _err$body19, _err$body19$data;
569
- _this8.handlePolicyError(err);
570
- _this8.handleJoinWebinarError(err);
571
- _this8.handleForbiddenError(err);
779
+ var _err$body24, _err$body25, _err$body25$data;
780
+ _this11.handlePolicyError(err);
781
+ _this11.handleJoinWebinarError(err);
782
+ _this11.handleForbiddenError(err);
572
783
  _metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_PASSWORD_ERROR, {
573
784
  reason: err.message,
574
785
  stack: err.stack
575
786
  });
576
- throw new MeetingInfoV2PasswordError((_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$data = _err$body19.data) === null || _err$body19$data === void 0 ? void 0 : _err$body19$data.meetingInfo);
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);
577
788
  }
578
789
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 423) {
579
- var _err$body20;
790
+ var _err$body26;
580
791
  _metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_CAPTCHA_ERROR, {
581
792
  reason: err.message,
582
793
  stack: err.stack
583
794
  });
584
- throw new MeetingInfoV2CaptchaError((_err$body20 = err.body) === null || _err$body20 === void 0 ? void 0 : _err$body20.code, {
795
+ throw new MeetingInfoV2CaptchaError((_err$body26 = err.body) === null || _err$body26 === void 0 ? void 0 : _err$body26.code, {
585
796
  captchaId: err.body.captchaID,
586
797
  verificationImageURL: err.body.verificationImageURL,
587
798
  verificationAudioURL: err.body.verificationAudioURL,
@@ -596,11 +807,11 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
596
807
  }));
597
808
  case 28:
598
809
  case "end":
599
- return _context2.stop();
810
+ return _context5.stop();
600
811
  }
601
- }, _callee2, this);
812
+ }, _callee5, this);
602
813
  }));
603
- function fetchMeetingInfo(_x3) {
814
+ function fetchMeetingInfo(_x7) {
604
815
  return _fetchMeetingInfo.apply(this, arguments);
605
816
  }
606
817
  return fetchMeetingInfo;