@webex/plugin-meetings 3.8.0-next.31 → 3.8.0-next.33

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.
@@ -4282,6 +4282,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4282
4282
  key: "beRightBack",
4283
4283
  value: (function () {
4284
4284
  var _beRightBack = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11(enabled) {
4285
+ var _this24 = this;
4285
4286
  var errorMessage, error, _errorMessage, _error;
4286
4287
  return _regenerator.default.wrap(function _callee11$(_context11) {
4287
4288
  while (1) switch (_context11.prev = _context11.next) {
@@ -4304,7 +4305,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4304
4305
  _loggerProxy.default.logger.error(_error);
4305
4306
  return _context11.abrupt("return", _promise.default.reject(_error));
4306
4307
  case 10:
4307
- return _context11.abrupt("return", this.brbState.enable(enabled, this.sendSlotManager));
4308
+ return _context11.abrupt("return", this.brbState.enable(enabled, this.sendSlotManager).then(function () {
4309
+ if (_this24.audio && enabled) {
4310
+ // locus mutes the participant with brb enabled request,
4311
+ // so we need to explicitly update remote mute for correct logic flow
4312
+ _this24.audio.handleServerRemoteMuteUpdate(_this24, enabled);
4313
+ }
4314
+ }));
4308
4315
  case 11:
4309
4316
  case "end":
4310
4317
  return _context11.stop();
@@ -4799,7 +4806,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4799
4806
  }, {
4800
4807
  key: "setLogUploadTimer",
4801
4808
  value: function setLogUploadTimer() {
4802
- var _this24 = this;
4809
+ var _this25 = this;
4803
4810
  // start with short timeouts and increase them later on so in case users have very long multi-hour meetings we don't get too fragmented logs
4804
4811
  var LOG_UPLOAD_INTERVALS = [0.1, 15, 30, 60]; // in minutes
4805
4812
 
@@ -4810,15 +4817,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4810
4817
  this.logUploadIntervalIndex += 1;
4811
4818
  }
4812
4819
  this.uploadLogsTimer = (0, _commonTimers.safeSetTimeout)(function () {
4813
- _this24.uploadLogsTimer = undefined;
4814
- _this24.uploadLogs();
4820
+ _this25.uploadLogsTimer = undefined;
4821
+ _this25.uploadLogs();
4815
4822
 
4816
4823
  // just as an extra precaution, to avoid uploading logs forever in case something goes wrong
4817
4824
  // and the page remains opened, we stop it if there is no media connection
4818
- if (!_this24.mediaProperties.webrtcMediaConnection) {
4825
+ if (!_this25.mediaProperties.webrtcMediaConnection) {
4819
4826
  return;
4820
4827
  }
4821
- _this24.setLogUploadTimer();
4828
+ _this25.setLogUploadTimer();
4822
4829
  }, delay);
4823
4830
  }
4824
4831
 
@@ -4885,7 +4892,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4885
4892
  }, {
4886
4893
  key: "closeRemoteStreams",
4887
4894
  value: function closeRemoteStreams() {
4888
- var _this25 = this;
4895
+ var _this26 = this;
4889
4896
  var _this$mediaProperties6 = this.mediaProperties,
4890
4897
  remoteAudioStream = _this$mediaProperties6.remoteAudioStream,
4891
4898
  remoteVideoStream = _this$mediaProperties6.remoteVideoStream,
@@ -4899,7 +4906,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
4899
4906
  */
4900
4907
  // eslint-disable-next-line @typescript-eslint/no-shadow
4901
4908
  var triggerMediaStoppedEvent = function triggerMediaStoppedEvent(mediaType) {
4902
- _triggerProxy.default.trigger(_this25, {
4909
+ _triggerProxy.default.trigger(_this26, {
4903
4910
  file: 'meeting/index',
4904
4911
  function: 'closeRemoteStreams'
4905
4912
  }, _constants.EVENT_TRIGGERS.MEDIA_STOPPED, {
@@ -5207,7 +5214,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5207
5214
  }, {
5208
5215
  key: "setMercuryListener",
5209
5216
  value: function setMercuryListener() {
5210
- var _this26 = this;
5217
+ var _this27 = this;
5211
5218
  // Client will have a socket manager and handle reconnecting to mercury, when we reconnect to mercury
5212
5219
  // if the meeting has active peer connections, it should try to reconnect.
5213
5220
  // @ts-ignore
@@ -5215,33 +5222,33 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5215
5222
  _loggerProxy.default.logger.info('Meeting:index#setMercuryListener --> Web socket online');
5216
5223
 
5217
5224
  // Only send restore event when it was disconnected before and for connected later
5218
- if (!_this26.hasWebsocketConnected) {
5225
+ if (!_this27.hasWebsocketConnected) {
5219
5226
  // @ts-ignore
5220
- _this26.webex.internal.newMetrics.submitClientEvent({
5227
+ _this27.webex.internal.newMetrics.submitClientEvent({
5221
5228
  name: 'client.mercury.connection.restored',
5222
5229
  options: {
5223
- meetingId: _this26.id
5230
+ meetingId: _this27.id
5224
5231
  }
5225
5232
  });
5226
5233
  _metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_RESTORED, {
5227
- correlation_id: _this26.correlationId
5234
+ correlation_id: _this27.correlationId
5228
5235
  });
5229
5236
  }
5230
- _this26.hasWebsocketConnected = true;
5237
+ _this27.hasWebsocketConnected = true;
5231
5238
  });
5232
5239
 
5233
5240
  // @ts-ignore
5234
5241
  this.webex.internal.mercury.on(_constants.OFFLINE, function () {
5235
5242
  _loggerProxy.default.logger.error('Meeting:index#setMercuryListener --> Web socket offline');
5236
5243
  // @ts-ignore
5237
- _this26.webex.internal.newMetrics.submitClientEvent({
5244
+ _this27.webex.internal.newMetrics.submitClientEvent({
5238
5245
  name: 'client.mercury.connection.lost',
5239
5246
  options: {
5240
- meetingId: _this26.id
5247
+ meetingId: _this27.id
5241
5248
  }
5242
5249
  });
5243
5250
  _metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_FAILURE, {
5244
- correlation_id: _this26.correlationId
5251
+ correlation_id: _this27.correlationId
5245
5252
  });
5246
5253
  });
5247
5254
  }
@@ -5348,7 +5355,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5348
5355
  }, {
5349
5356
  key: "muteAudio",
5350
5357
  value: function muteAudio() {
5351
- var _this27 = this;
5358
+ var _this28 = this;
5352
5359
  if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
5353
5360
  return _promise.default.reject(new _webexErrors.UserNotJoinedError());
5354
5361
  }
@@ -5364,22 +5371,22 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5364
5371
 
5365
5372
  // First, stop sending the local audio media
5366
5373
  return logRequest(this.audio.handleClientRequest(this, true).then(function () {
5367
- _util2.default.handleAudioLogging(_this27.mediaProperties.audioStream);
5374
+ _util2.default.handleAudioLogging(_this28.mediaProperties.audioStream);
5368
5375
  // @ts-ignore
5369
- _this27.webex.internal.newMetrics.submitClientEvent({
5376
+ _this28.webex.internal.newMetrics.submitClientEvent({
5370
5377
  name: 'client.muted',
5371
5378
  payload: {
5372
5379
  trigger: 'user-interaction',
5373
5380
  mediaType: 'audio'
5374
5381
  },
5375
5382
  options: {
5376
- meetingId: _this27.id
5383
+ meetingId: _this28.id
5377
5384
  }
5378
5385
  });
5379
5386
  }).catch(function (error) {
5380
5387
  _metrics.default.sendBehavioralMetric(_constants2.default.MUTE_AUDIO_FAILURE, {
5381
- correlation_id: _this27.correlationId,
5382
- locus_id: _this27.locusUrl.split('/').pop(),
5388
+ correlation_id: _this28.correlationId,
5389
+ locus_id: _this28.locusUrl.split('/').pop(),
5383
5390
  reason: error.message,
5384
5391
  stack: error.stack
5385
5392
  });
@@ -5398,7 +5405,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5398
5405
  }, {
5399
5406
  key: "unmuteAudio",
5400
5407
  value: function unmuteAudio() {
5401
- var _this28 = this;
5408
+ var _this29 = this;
5402
5409
  if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
5403
5410
  return _promise.default.reject(new _webexErrors.UserNotJoinedError());
5404
5411
  }
@@ -5414,22 +5421,22 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5414
5421
 
5415
5422
  // First, send the control to unmute the participant on the server
5416
5423
  return logRequest(this.audio.handleClientRequest(this, false).then(function () {
5417
- _util2.default.handleAudioLogging(_this28.mediaProperties.audioStream);
5424
+ _util2.default.handleAudioLogging(_this29.mediaProperties.audioStream);
5418
5425
  // @ts-ignore
5419
- _this28.webex.internal.newMetrics.submitClientEvent({
5426
+ _this29.webex.internal.newMetrics.submitClientEvent({
5420
5427
  name: 'client.unmuted',
5421
5428
  payload: {
5422
5429
  trigger: 'user-interaction',
5423
5430
  mediaType: 'audio'
5424
5431
  },
5425
5432
  options: {
5426
- meetingId: _this28.id
5433
+ meetingId: _this29.id
5427
5434
  }
5428
5435
  });
5429
5436
  }).catch(function (error) {
5430
5437
  _metrics.default.sendBehavioralMetric(_constants2.default.UNMUTE_AUDIO_FAILURE, {
5431
- correlation_id: _this28.correlationId,
5432
- locus_id: _this28.locusUrl.split('/').pop(),
5438
+ correlation_id: _this29.correlationId,
5439
+ locus_id: _this29.locusUrl.split('/').pop(),
5433
5440
  reason: error.message,
5434
5441
  stack: error.stack
5435
5442
  });
@@ -5448,7 +5455,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5448
5455
  }, {
5449
5456
  key: "muteVideo",
5450
5457
  value: function muteVideo() {
5451
- var _this29 = this;
5458
+ var _this30 = this;
5452
5459
  if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
5453
5460
  return _promise.default.reject(new _webexErrors.UserNotJoinedError());
5454
5461
  }
@@ -5462,22 +5469,22 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5462
5469
  return _promise.default.reject(new _parameter.default('no video control associated to the meeting'));
5463
5470
  }
5464
5471
  return logRequest(this.video.handleClientRequest(this, true).then(function () {
5465
- _util2.default.handleVideoLogging(_this29.mediaProperties.videoStream);
5472
+ _util2.default.handleVideoLogging(_this30.mediaProperties.videoStream);
5466
5473
  // @ts-ignore
5467
- _this29.webex.internal.newMetrics.submitClientEvent({
5474
+ _this30.webex.internal.newMetrics.submitClientEvent({
5468
5475
  name: 'client.muted',
5469
5476
  payload: {
5470
5477
  trigger: 'user-interaction',
5471
5478
  mediaType: 'video'
5472
5479
  },
5473
5480
  options: {
5474
- meetingId: _this29.id
5481
+ meetingId: _this30.id
5475
5482
  }
5476
5483
  });
5477
5484
  }).catch(function (error) {
5478
5485
  _metrics.default.sendBehavioralMetric(_constants2.default.MUTE_VIDEO_FAILURE, {
5479
- correlation_id: _this29.correlationId,
5480
- locus_id: _this29.locusUrl.split('/').pop(),
5486
+ correlation_id: _this30.correlationId,
5487
+ locus_id: _this30.locusUrl.split('/').pop(),
5481
5488
  reason: error.message,
5482
5489
  stack: error.stack
5483
5490
  });
@@ -5496,7 +5503,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5496
5503
  }, {
5497
5504
  key: "unmuteVideo",
5498
5505
  value: function unmuteVideo() {
5499
- var _this30 = this;
5506
+ var _this31 = this;
5500
5507
  if (!_util2.default.isUserInJoinedState(this.locusInfo)) {
5501
5508
  return _promise.default.reject(new _webexErrors.UserNotJoinedError());
5502
5509
  }
@@ -5510,22 +5517,22 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5510
5517
  return _promise.default.reject(new _parameter.default('no audio control associated to the meeting'));
5511
5518
  }
5512
5519
  return logRequest(this.video.handleClientRequest(this, false).then(function () {
5513
- _util2.default.handleVideoLogging(_this30.mediaProperties.videoStream);
5520
+ _util2.default.handleVideoLogging(_this31.mediaProperties.videoStream);
5514
5521
  // @ts-ignore
5515
- _this30.webex.internal.newMetrics.submitClientEvent({
5522
+ _this31.webex.internal.newMetrics.submitClientEvent({
5516
5523
  name: 'client.unmuted',
5517
5524
  payload: {
5518
5525
  trigger: 'user-interaction',
5519
5526
  mediaType: 'video'
5520
5527
  },
5521
5528
  options: {
5522
- meetingId: _this30.id
5529
+ meetingId: _this31.id
5523
5530
  }
5524
5531
  });
5525
5532
  }).catch(function (error) {
5526
5533
  _metrics.default.sendBehavioralMetric(_constants2.default.UNMUTE_VIDEO_FAILURE, {
5527
- correlation_id: _this30.correlationId,
5528
- locus_id: _this30.locusUrl.split('/').pop(),
5534
+ correlation_id: _this31.correlationId,
5535
+ locus_id: _this31.locusUrl.split('/').pop(),
5529
5536
  reason: error.message,
5530
5537
  stack: error.stack
5531
5538
  });
@@ -5555,7 +5562,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5555
5562
  key: "joinWithMedia",
5556
5563
  value: (function () {
5557
5564
  var _joinWithMedia = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee16() {
5558
- var _this31 = this;
5565
+ var _this32 = this;
5559
5566
  var options,
5560
5567
  mediaOptions,
5561
5568
  _options$joinOptions,
@@ -5638,7 +5645,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5638
5645
  case 35:
5639
5646
  _context16.next = 37;
5640
5647
  return this.addMediaInternal(function () {
5641
- return _this31.joinWithMediaRetryInfo.isRetry ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
5648
+ return _this32.joinWithMediaRetryInfo.isRetry ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
5642
5649
  }, turnServerInfo, forceTurnDiscovery, mediaOptions);
5643
5650
  case 37:
5644
5651
  mediaResponse = _context16.sent;
@@ -5733,7 +5740,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5733
5740
  }, {
5734
5741
  key: "reconnect",
5735
5742
  value: function reconnect(options) {
5736
- var _this32 = this;
5743
+ var _this33 = this;
5737
5744
  _loggerProxy.default.logger.log("Meeting:index#reconnect --> attempting to reconnect meeting ".concat(this.id));
5738
5745
  if (!this.reconnectionManager || !this.reconnectionManager.reconnect) {
5739
5746
  return _promise.default.reject(new _parameter.default('Cannot reconnect, ReconnectionManager must first be defined.'));
@@ -5749,10 +5756,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5749
5756
  while (1) switch (_context17.prev = _context17.next) {
5750
5757
  case 0:
5751
5758
  _context17.next = 2;
5752
- return _this32.waitForRemoteSDPAnswer();
5759
+ return _this33.waitForRemoteSDPAnswer();
5753
5760
  case 2:
5754
5761
  _context17.next = 4;
5755
- return _this32.waitForMediaConnectionConnected();
5762
+ return _this33.waitForMediaConnectionConnected();
5756
5763
  case 4:
5757
5764
  case "end":
5758
5765
  return _context17.stop();
@@ -5766,7 +5773,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5766
5773
  return _promise.default.resolve();
5767
5774
  }
5768
5775
  _loggerProxy.default.logger.error('Meeting:index#reconnect --> Meeting reconnect failed', error);
5769
- _this32.uploadLogs({
5776
+ _this33.uploadLogs({
5770
5777
  file: 'meeting/index',
5771
5778
  function: 'reconnect'
5772
5779
  });
@@ -5813,19 +5820,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5813
5820
  }, {
5814
5821
  key: "setCaptionLanguage",
5815
5822
  value: function setCaptionLanguage(language) {
5816
- var _this33 = this;
5823
+ var _this34 = this;
5817
5824
  return new _promise.default(function (resolve, reject) {
5818
- if (!_this33.isTranscriptionSupported()) {
5825
+ if (!_this34.isTranscriptionSupported()) {
5819
5826
  _loggerProxy.default.logger.error('Meeting:index#setCaptionLanguage --> Webex Assistant is not enabled/supported');
5820
5827
  reject(new Error('Webex Assistant is not enabled/supported'));
5821
5828
  }
5822
5829
  try {
5823
5830
  var voiceaListenerCaptionUpdate = function voiceaListenerCaptionUpdate(payload) {
5824
5831
  // @ts-ignore
5825
- _this33.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, voiceaListenerCaptionUpdate);
5832
+ _this34.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, voiceaListenerCaptionUpdate);
5826
5833
  var statusCode = payload.statusCode;
5827
5834
  if (statusCode === 200) {
5828
- _this33.transcription.languageOptions = _objectSpread(_objectSpread({}, _this33.transcription.languageOptions), {}, {
5835
+ _this34.transcription.languageOptions = _objectSpread(_objectSpread({}, _this34.transcription.languageOptions), {}, {
5829
5836
  currentCaptionLanguage: language
5830
5837
  });
5831
5838
  resolve(language);
@@ -5834,9 +5841,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5834
5841
  }
5835
5842
  };
5836
5843
  // @ts-ignore
5837
- _this33.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, voiceaListenerCaptionUpdate);
5844
+ _this34.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.CAPTION_LANGUAGE_UPDATE, voiceaListenerCaptionUpdate);
5838
5845
  // @ts-ignore
5839
- _this33.webex.internal.voicea.requestLanguage(language);
5846
+ _this34.webex.internal.voicea.requestLanguage(language);
5840
5847
  } catch (error) {
5841
5848
  _loggerProxy.default.logger.error("Meeting:index#setCaptionLanguage --> ".concat(error));
5842
5849
  reject(error);
@@ -5852,23 +5859,23 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5852
5859
  }, {
5853
5860
  key: "setSpokenLanguage",
5854
5861
  value: function setSpokenLanguage(language) {
5855
- var _this34 = this;
5862
+ var _this35 = this;
5856
5863
  return new _promise.default(function (resolve, reject) {
5857
- if (!_this34.isTranscriptionSupported()) {
5864
+ if (!_this35.isTranscriptionSupported()) {
5858
5865
  _loggerProxy.default.logger.error('Meeting:index#setCaptionLanguage --> Webex Assistant is not enabled/supported');
5859
5866
  reject(new Error('Webex Assistant is not enabled/supported'));
5860
5867
  }
5861
- if (_this34.getCurUserType() !== 'host') {
5868
+ if (_this35.getCurUserType() !== 'host') {
5862
5869
  _loggerProxy.default.logger.error('Meeting:index#setSpokenLanguage --> Only host can set spoken language');
5863
5870
  reject(new Error('Only host can set spoken language'));
5864
5871
  }
5865
5872
  try {
5866
5873
  var voiceaListenerLanguageUpdate = function voiceaListenerLanguageUpdate(payload) {
5867
5874
  // @ts-ignore
5868
- _this34.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, voiceaListenerLanguageUpdate);
5875
+ _this35.webex.internal.voicea.off(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, voiceaListenerLanguageUpdate);
5869
5876
  var languageCode = payload.languageCode;
5870
5877
  if (languageCode) {
5871
- _this34.transcription.languageOptions = _objectSpread(_objectSpread({}, _this34.transcription.languageOptions), {}, {
5878
+ _this35.transcription.languageOptions = _objectSpread(_objectSpread({}, _this35.transcription.languageOptions), {}, {
5872
5879
  currentSpokenLanguage: languageCode
5873
5880
  });
5874
5881
  resolve(languageCode);
@@ -5878,10 +5885,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
5878
5885
  };
5879
5886
 
5880
5887
  // @ts-ignore
5881
- _this34.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, voiceaListenerLanguageUpdate);
5888
+ _this35.webex.internal.voicea.on(_internalPluginVoicea.EVENT_TRIGGERS.SPOKEN_LANGUAGE_UPDATE, voiceaListenerLanguageUpdate);
5882
5889
 
5883
5890
  // @ts-ignore
5884
- _this34.webex.internal.voicea.setSpokenLanguage(language);
5891
+ _this35.webex.internal.voicea.setSpokenLanguage(language);
5885
5892
  } catch (error) {
5886
5893
  _loggerProxy.default.logger.error("Meeting:index#setSpokenLanguage --> ".concat(error));
5887
5894
  reject(error);
@@ -6004,7 +6011,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6004
6011
  */
6005
6012
  function () {
6006
6013
  var _join = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee19() {
6007
- var _this35 = this;
6014
+ var _this36 = this;
6008
6015
  var options,
6009
6016
  errorMessage,
6010
6017
  error,
@@ -6153,61 +6160,61 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6153
6160
  return _context19.abrupt("return", _promise.default.reject(_context19.t0));
6154
6161
  case 51:
6155
6162
  return _context19.abrupt("return", _util2.default.joinMeetingOptions(this, options).then(function (join) {
6156
- _this35.meetingFiniteStateMachine.join();
6157
- _this35.setupLocusMediaRequest();
6163
+ _this36.meetingFiniteStateMachine.join();
6164
+ _this36.setupLocusMediaRequest();
6158
6165
 
6159
6166
  // @ts-ignore
6160
- _this35.webex.internal.device.meetingStarted();
6167
+ _this36.webex.internal.device.meetingStarted();
6161
6168
  _loggerProxy.default.logger.log('Meeting:index#join --> Success');
6162
6169
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_SUCCESS, {
6163
- correlation_id: _this35.correlationId
6170
+ correlation_id: _this36.correlationId
6164
6171
  });
6165
6172
  joinSuccess(join);
6166
- _this35.deferJoin = undefined;
6173
+ _this36.deferJoin = undefined;
6167
6174
  return join;
6168
6175
  }).catch(function (error) {
6169
- var _this35$meetingInfo, _error$error;
6170
- _this35.meetingFiniteStateMachine.fail(error);
6176
+ var _this36$meetingInfo, _error$error;
6177
+ _this36.meetingFiniteStateMachine.fail(error);
6171
6178
  _loggerProxy.default.logger.error('Meeting:index#join --> Failed', error);
6172
6179
 
6173
6180
  // @ts-ignore
6174
- _this35.webex.internal.newMetrics.submitClientEvent({
6181
+ _this36.webex.internal.newMetrics.submitClientEvent({
6175
6182
  name: 'client.locus.join.response',
6176
6183
  payload: {
6177
6184
  identifiers: {
6178
- meetingLookupUrl: (_this35$meetingInfo = _this35.meetingInfo) === null || _this35$meetingInfo === void 0 ? void 0 : _this35$meetingInfo.meetingLookupUrl
6185
+ meetingLookupUrl: (_this36$meetingInfo = _this36.meetingInfo) === null || _this36$meetingInfo === void 0 ? void 0 : _this36$meetingInfo.meetingLookupUrl
6179
6186
  }
6180
6187
  },
6181
6188
  options: {
6182
- meetingId: _this35.id,
6189
+ meetingId: _this36.id,
6183
6190
  rawError: error
6184
6191
  }
6185
6192
  });
6186
6193
 
6187
6194
  // TODO: change this to error codes and pre defined dictionary
6188
6195
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_FAILURE, {
6189
- correlation_id: _this35.correlationId,
6196
+ correlation_id: _this36.correlationId,
6190
6197
  reason: (_error$error = error.error) === null || _error$error === void 0 ? void 0 : _error$error.message,
6191
6198
  stack: error.stack
6192
6199
  });
6193
6200
 
6194
6201
  // Upload logs on join Failure
6195
- _triggerProxy.default.trigger(_this35, {
6202
+ _triggerProxy.default.trigger(_this36, {
6196
6203
  file: 'meeting/index',
6197
6204
  function: 'join'
6198
- }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this35);
6205
+ }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this36);
6199
6206
  joinFailed(error);
6200
- _this35.deferJoin = undefined;
6207
+ _this36.deferJoin = undefined;
6201
6208
  return _promise.default.reject(error);
6202
6209
  }).then(function (join) {
6203
6210
  // @ts-ignore - config coming from registerPlugin
6204
- if (_this35.config.enableAutomaticLLM) {
6211
+ if (_this36.config.enableAutomaticLLM) {
6205
6212
  // @ts-ignore
6206
- _this35.webex.internal.llm.on('online', _this35.handleLLMOnline);
6207
- _this35.updateLLMConnection().catch(function (error) {
6213
+ _this36.webex.internal.llm.on('online', _this36.handleLLMOnline);
6214
+ _this36.updateLLMConnection().catch(function (error) {
6208
6215
  _loggerProxy.default.logger.error('Meeting:index#join --> Transcription Socket Connection Failed', error);
6209
6216
  _metrics.default.sendBehavioralMetric(_constants2.default.LLM_CONNECTION_AFTER_JOIN_FAILURE, {
6210
- correlation_id: _this35.correlationId,
6217
+ correlation_id: _this36.correlationId,
6211
6218
  reason: error === null || error === void 0 ? void 0 : error.message,
6212
6219
  stack: error.stack
6213
6220
  });
@@ -6239,7 +6246,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6239
6246
  key: "updateLLMConnection",
6240
6247
  value: (function () {
6241
6248
  var _updateLLMConnection = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee20() {
6242
- var _this36 = this;
6249
+ var _this37 = this;
6243
6250
  var _this$locusInfo6, url, _this$locusInfo6$info, _this$locusInfo6$info2, datachannelUrl, practiceSessionDatachannelUrl, isJoined, dataChannelUrl;
6244
6251
  return _regenerator.default.wrap(function _callee20$(_context20) {
6245
6252
  while (1) switch (_context20.prev = _context20.next) {
@@ -6279,9 +6286,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6279
6286
  case 11:
6280
6287
  return _context20.abrupt("return", this.webex.internal.llm.registerAndConnect(url, dataChannelUrl).then(function (registerAndConnectResult) {
6281
6288
  // @ts-ignore - Fix type
6282
- _this36.webex.internal.llm.off('event:relay.event', _this36.processRelayEvent);
6289
+ _this37.webex.internal.llm.off('event:relay.event', _this37.processRelayEvent);
6283
6290
  // @ts-ignore - Fix type
6284
- _this36.webex.internal.llm.on('event:relay.event', _this36.processRelayEvent);
6291
+ _this37.webex.internal.llm.on('event:relay.event', _this37.processRelayEvent);
6285
6292
  _loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
6286
6293
  return _promise.default.resolve(registerAndConnectResult);
6287
6294
  }));
@@ -6335,7 +6342,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6335
6342
  }, {
6336
6343
  key: "dialInPstn",
6337
6344
  value: function dialInPstn() {
6338
- var _this37 = this;
6345
+ var _this38 = this;
6339
6346
  if (this.isPhoneProvisioned(this.dialInDeviceStatus)) return _promise.default.resolve(); // prevent multiple dial in devices from being provisioned
6340
6347
 
6341
6348
  var correlationId = this.correlationId,
@@ -6351,10 +6358,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6351
6358
  }).catch(function (error) {
6352
6359
  var _error$error2;
6353
6360
  _metrics.default.sendBehavioralMetric(_constants2.default.ADD_DIAL_IN_FAILURE, {
6354
- correlation_id: _this37.correlationId,
6355
- dial_in_url: _this37.dialInUrl,
6361
+ correlation_id: _this38.correlationId,
6362
+ dial_in_url: _this38.dialInUrl,
6356
6363
  locus_id: locusUrl.split('/').pop(),
6357
- client_url: _this37.deviceUrl,
6364
+ client_url: _this38.deviceUrl,
6358
6365
  reason: (_error$error2 = error.error) === null || _error$error2 === void 0 ? void 0 : _error$error2.message,
6359
6366
  stack: error.stack
6360
6367
  });
@@ -6372,7 +6379,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6372
6379
  }, {
6373
6380
  key: "dialOutPstn",
6374
6381
  value: function dialOutPstn(phoneNumber) {
6375
- var _this38 = this;
6382
+ var _this39 = this;
6376
6383
  if (this.isPhoneProvisioned(this.dialOutDeviceStatus)) return _promise.default.resolve(); // prevent multiple dial out devices from being provisioned
6377
6384
 
6378
6385
  var correlationId = this.correlationId,
@@ -6389,10 +6396,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6389
6396
  }).catch(function (error) {
6390
6397
  var _error$error3;
6391
6398
  _metrics.default.sendBehavioralMetric(_constants2.default.ADD_DIAL_OUT_FAILURE, {
6392
- correlation_id: _this38.correlationId,
6393
- dial_out_url: _this38.dialOutUrl,
6399
+ correlation_id: _this39.correlationId,
6400
+ dial_out_url: _this39.dialOutUrl,
6394
6401
  locus_id: locusUrl.split('/').pop(),
6395
- client_url: _this38.deviceUrl,
6402
+ client_url: _this39.deviceUrl,
6396
6403
  reason: (_error$error3 = error.error) === null || _error$error3 === void 0 ? void 0 : _error$error3.message,
6397
6404
  stack: error.stack
6398
6405
  });
@@ -6423,7 +6430,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6423
6430
  }, {
6424
6431
  key: "moveTo",
6425
6432
  value: function moveTo(resourceId) {
6426
- var _this39 = this;
6433
+ var _this40 = this;
6427
6434
  if (!resourceId) {
6428
6435
  throw new _parameter.default('Cannot move call without a resourceId.');
6429
6436
  }
@@ -6467,12 +6474,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6467
6474
  while (1) switch (_context21.prev = _context21.next) {
6468
6475
  case 0:
6469
6476
  _context21.prev = 0;
6470
- if (!(_this39.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
6477
+ if (!(_this40.screenShareFloorState === ScreenShareFloorStatus.GRANTED)) {
6471
6478
  _context21.next = 4;
6472
6479
  break;
6473
6480
  }
6474
6481
  _context21.next = 4;
6475
- return _this39.releaseScreenShareFloor();
6482
+ return _this40.releaseScreenShareFloor();
6476
6483
  case 4:
6477
6484
  mediaSettings = {
6478
6485
  mediaDirection: {
@@ -6484,37 +6491,37 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6484
6491
  receiveShare: true
6485
6492
  }
6486
6493
  };
6487
- _this39.mediaProperties.setMediaDirection(mediaSettings.mediaDirection);
6488
- _this39.mediaProperties.unsetRemoteMedia();
6494
+ _this40.mediaProperties.setMediaDirection(mediaSettings.mediaDirection);
6495
+ _this40.mediaProperties.unsetRemoteMedia();
6489
6496
 
6490
6497
  // when a move to is intiated by the client , Locus delets the existing media node from the server as soon the device answers the meeting
6491
6498
  // once the device answers we close the old connection and create new media server connection with only share enabled
6492
- if (!_this39.statsAnalyzer) {
6499
+ if (!_this40.statsAnalyzer) {
6493
6500
  _context21.next = 10;
6494
6501
  break;
6495
6502
  }
6496
6503
  _context21.next = 10;
6497
- return _this39.statsAnalyzer.stopAnalyzer();
6504
+ return _this40.statsAnalyzer.stopAnalyzer();
6498
6505
  case 10:
6499
6506
  _context21.next = 12;
6500
- return _this39.closeRemoteStreams();
6507
+ return _this40.closeRemoteStreams();
6501
6508
  case 12:
6502
6509
  _context21.next = 14;
6503
- return _this39.closePeerConnections();
6510
+ return _this40.closePeerConnections();
6504
6511
  case 14:
6505
- _this39.cleanupLocalStreams();
6506
- _this39.unsetRemoteStreams();
6507
- _this39.unsetPeerConnections();
6508
- _this39.reconnectionManager.cleanUp();
6512
+ _this40.cleanupLocalStreams();
6513
+ _this40.unsetRemoteStreams();
6514
+ _this40.unsetPeerConnections();
6515
+ _this40.reconnectionManager.cleanUp();
6509
6516
  _context21.next = 20;
6510
- return _this39.addMedia({
6517
+ return _this40.addMedia({
6511
6518
  audioEnabled: false,
6512
6519
  videoEnabled: false,
6513
6520
  shareVideoEnabled: true
6514
6521
  });
6515
6522
  case 20:
6516
6523
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_SUCCESS);
6517
- _this39.isMoveToInProgress = false;
6524
+ _this40.isMoveToInProgress = false;
6518
6525
  _context21.next = 29;
6519
6526
  break;
6520
6527
  case 24:
@@ -6522,12 +6529,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6522
6529
  _context21.t0 = _context21["catch"](0);
6523
6530
  _loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', _context21.t0);
6524
6531
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
6525
- correlation_id: _this39.correlationId,
6526
- locus_id: _this39.locusUrl.split('/').pop(),
6532
+ correlation_id: _this40.correlationId,
6533
+ locus_id: _this40.locusUrl.split('/').pop(),
6527
6534
  reason: _context21.t0.message,
6528
6535
  stack: _context21.t0.stack
6529
6536
  });
6530
- _this39.isMoveToInProgress = false;
6537
+ _this40.isMoveToInProgress = false;
6531
6538
  case 29:
6532
6539
  case "end":
6533
6540
  return _context21.stop();
@@ -6543,17 +6550,17 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6543
6550
  resourceId: resourceId,
6544
6551
  moveToResource: true
6545
6552
  }).then(function () {
6546
- _this39.meetingFiniteStateMachine.join();
6553
+ _this40.meetingFiniteStateMachine.join();
6547
6554
  }).catch(function (error) {
6548
- _this39.meetingFiniteStateMachine.fail(error);
6555
+ _this40.meetingFiniteStateMachine.fail(error);
6549
6556
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_TO_FAILURE, {
6550
- correlation_id: _this39.correlationId,
6551
- locus_id: _this39.locusUrl.split('/').pop(),
6557
+ correlation_id: _this40.correlationId,
6558
+ locus_id: _this40.locusUrl.split('/').pop(),
6552
6559
  reason: error.message,
6553
6560
  stack: error.stack
6554
6561
  });
6555
6562
  _loggerProxy.default.logger.error('Meeting:index#moveTo --> Failed to moveTo resourceId', error);
6556
- _this39.isMoveToInProgress = false;
6563
+ _this40.isMoveToInProgress = false;
6557
6564
  return _promise.default.reject(error);
6558
6565
  });
6559
6566
  }
@@ -6568,7 +6575,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6568
6575
  }, {
6569
6576
  key: "moveFrom",
6570
6577
  value: function moveFrom(resourceId) {
6571
- var _this40 = this;
6578
+ var _this41 = this;
6572
6579
  // On moveFrom ask the developer to re capture it moveFrom then updateMedia
6573
6580
  if (!resourceId) {
6574
6581
  throw new _parameter.default('Cannot move call without a resourceId.');
@@ -6583,19 +6590,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6583
6590
  }
6584
6591
  });
6585
6592
  return _util2.default.joinMeetingOptions(this).then(function () {
6586
- return _util2.default.leaveMeeting(_this40, {
6593
+ return _util2.default.leaveMeeting(_this41, {
6587
6594
  resourceId: resourceId,
6588
6595
  correlationId: oldCorrelationId,
6589
6596
  moveMeeting: true
6590
6597
  }).then(function () {
6591
- _this40.resourceId = '';
6598
+ _this41.resourceId = '';
6592
6599
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_FROM_SUCCESS);
6593
6600
  });
6594
6601
  }).catch(function (error) {
6595
- _this40.meetingFiniteStateMachine.fail(error);
6602
+ _this41.meetingFiniteStateMachine.fail(error);
6596
6603
  _metrics.default.sendBehavioralMetric(_constants2.default.MOVE_FROM_FAILURE, {
6597
- correlation_id: _this40.correlationId,
6598
- locus_id: _this40.locusUrl.split('/').pop(),
6604
+ correlation_id: _this41.correlationId,
6605
+ locus_id: _this41.locusUrl.split('/').pop(),
6599
6606
  reason: error.message,
6600
6607
  stack: error.stack
6601
6608
  });
@@ -6711,9 +6718,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6711
6718
  }, {
6712
6719
  key: "forwardEvent",
6713
6720
  value: function forwardEvent(eventEmitter, eventTypeToForward, meetingEventType) {
6714
- var _this41 = this;
6721
+ var _this42 = this;
6715
6722
  eventEmitter.on(eventTypeToForward, function (data) {
6716
- return _triggerProxy.default.trigger(_this41, {
6723
+ return _triggerProxy.default.trigger(_this42, {
6717
6724
  file: 'meetings',
6718
6725
  function: 'addMedia'
6719
6726
  }, meetingEventType, data);
@@ -6890,7 +6897,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6890
6897
  key: "waitForRemoteSDPAnswer",
6891
6898
  value: (function () {
6892
6899
  var _waitForRemoteSDPAnswer = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25() {
6893
- var _this42 = this;
6900
+ var _this43 = this;
6894
6901
  var LOG_HEADER, deferSDPAnswer;
6895
6902
  return _regenerator.default.wrap(function _callee25$(_context25) {
6896
6903
  while (1) switch (_context25.prev = _context25.next) {
@@ -6907,18 +6914,18 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
6907
6914
  this.sdpResponseTimer = setTimeout(function () {
6908
6915
  _loggerProxy.default.logger.warn("".concat(LOG_HEADER, " timeout! no REMOTE SDP ANSWER received within ").concat(_constants.ROAP_OFFER_ANSWER_EXCHANGE_TIMEOUT / 1000, " seconds"));
6909
6916
  // @ts-ignore
6910
- _this42.webex.internal.newMetrics.submitClientEvent({
6917
+ _this43.webex.internal.newMetrics.submitClientEvent({
6911
6918
  name: 'client.media-engine.remote-sdp-received',
6912
6919
  payload: {
6913
6920
  canProceed: false,
6914
6921
  errors: [
6915
6922
  // @ts-ignore
6916
- _this42.webex.internal.newMetrics.callDiagnosticMetrics.getErrorPayloadForClientErrorCode({
6923
+ _this43.webex.internal.newMetrics.callDiagnosticMetrics.getErrorPayloadForClientErrorCode({
6917
6924
  clientErrorCode: _internalPluginMetrics.CALL_DIAGNOSTIC_CONFIG.MISSING_ROAP_ANSWER_CLIENT_CODE
6918
6925
  })]
6919
6926
  },
6920
6927
  options: {
6921
- meetingId: _this42.id,
6928
+ meetingId: _this43.id,
6922
6929
  rawError: new Error('Timeout waiting for SDP answer')
6923
6930
  }
6924
6931
  });
@@ -7425,10 +7432,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7425
7432
  }, {
7426
7433
  key: "addMedia",
7427
7434
  value: function addMedia() {
7428
- var _this43 = this;
7435
+ var _this44 = this;
7429
7436
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7430
7437
  return this.addMediaInternal(function () {
7431
- return _this43.turnServerUsed ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
7438
+ return _this44.turnServerUsed ? 'JOIN_MEETING_FINAL' : 'JOIN_MEETING_RETRY';
7432
7439
  }, undefined, false, options);
7433
7440
  }
7434
7441
 
@@ -7733,7 +7740,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7733
7740
  * @memberof Meeting
7734
7741
  */
7735
7742
  function enqueueMediaUpdate(mediaUpdateType) {
7736
- var _this44 = this;
7743
+ var _this45 = this;
7737
7744
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
7738
7745
  var canUpdateMediaNow = this.canUpdateMedia();
7739
7746
  return new _promise.default(function (resolve, reject) {
@@ -7744,9 +7751,9 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7744
7751
  options: options
7745
7752
  };
7746
7753
  _loggerProxy.default.logger.log("Meeting:index#enqueueMediaUpdate --> enqueuing media update type=".concat(mediaUpdateType));
7747
- _this44.queuedMediaUpdates.push(queueItem);
7754
+ _this45.queuedMediaUpdates.push(queueItem);
7748
7755
  if (canUpdateMediaNow) {
7749
- _this44.processNextQueuedMediaUpdate();
7756
+ _this45.processNextQueuedMediaUpdate();
7750
7757
  }
7751
7758
  });
7752
7759
  }
@@ -7851,7 +7858,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7851
7858
  }, {
7852
7859
  key: "acknowledge",
7853
7860
  value: function acknowledge(type) {
7854
- var _this45 = this;
7861
+ var _this46 = this;
7855
7862
  if (!type) {
7856
7863
  return _promise.default.reject(new _parameter.default('Type must be set to acknowledge the meeting.'));
7857
7864
  }
@@ -7863,12 +7870,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7863
7870
  }).then(function (response) {
7864
7871
  return _promise.default.resolve(response);
7865
7872
  }).then(function (response) {
7866
- _this45.meetingFiniteStateMachine.ring(type);
7873
+ _this46.meetingFiniteStateMachine.ring(type);
7867
7874
  // @ts-ignore
7868
- _this45.webex.internal.newMetrics.submitClientEvent({
7875
+ _this46.webex.internal.newMetrics.submitClientEvent({
7869
7876
  name: 'client.alert.displayed',
7870
7877
  options: {
7871
- meetingId: _this45.id
7878
+ meetingId: _this46.id
7872
7879
  }
7873
7880
  });
7874
7881
  return _promise.default.resolve({
@@ -7893,12 +7900,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7893
7900
  }, {
7894
7901
  key: "decline",
7895
7902
  value: function decline(reason) {
7896
- var _this46 = this;
7903
+ var _this47 = this;
7897
7904
  return _util2.default.declineMeeting(this, reason).then(function (decline) {
7898
- _this46.meetingFiniteStateMachine.decline();
7905
+ _this47.meetingFiniteStateMachine.decline();
7899
7906
  return _promise.default.resolve(decline);
7900
7907
  }).catch(function (error) {
7901
- _this46.meetingFiniteStateMachine.fail(error);
7908
+ _this47.meetingFiniteStateMachine.fail(error);
7902
7909
  return _promise.default.reject(error);
7903
7910
  });
7904
7911
  }
@@ -7949,7 +7956,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7949
7956
  }, {
7950
7957
  key: "leave",
7951
7958
  value: function leave() {
7952
- var _this47 = this;
7959
+ var _this48 = this;
7953
7960
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7954
7961
  var leaveReason = options.reason || _constants.MEETING_REMOVED_REASON.CLIENT_LEAVE_REQUEST;
7955
7962
 
@@ -7961,7 +7968,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7961
7968
  var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
7962
7969
  return (
7963
7970
  // @ts-ignore
7964
- _this47.webex.internal.newMetrics.submitClientEvent({
7971
+ _this48.webex.internal.newMetrics.submitClientEvent({
7965
7972
  name: 'client.call.leave',
7966
7973
  payload: _objectSpread({
7967
7974
  trigger: 'user-interaction',
@@ -7969,7 +7976,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7969
7976
  leaveReason: options.clientEventLeaveReason
7970
7977
  }, payload),
7971
7978
  options: {
7972
- meetingId: _this47.id
7979
+ meetingId: _this48.id
7973
7980
  }
7974
7981
  })
7975
7982
  );
@@ -7978,24 +7985,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
7978
7985
  return _util2.default.leaveMeeting(this, options).then(function (leave) {
7979
7986
  // CA team recommends submitting this *after* locus /leave
7980
7987
  submitLeaveMetric();
7981
- _this47.meetingFiniteStateMachine.leave();
7982
- _this47.clearMeetingData();
7988
+ _this48.meetingFiniteStateMachine.leave();
7989
+ _this48.clearMeetingData();
7983
7990
 
7984
7991
  // upload logs on leave irrespective of meeting delete
7985
- _triggerProxy.default.trigger(_this47, {
7992
+ _triggerProxy.default.trigger(_this48, {
7986
7993
  file: 'meeting/index',
7987
7994
  function: 'leave'
7988
- }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this47);
7995
+ }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this48);
7989
7996
 
7990
7997
  // TODO: more testing before we remove this code, we are not sure the scenarios for destroy here
7991
- if (_this47.wirelessShare || _this47.guest) {
7998
+ if (_this48.wirelessShare || _this48.guest) {
7992
7999
  // If screen sharing clean the meeting object
7993
- _triggerProxy.default.trigger(_this47, {
8000
+ _triggerProxy.default.trigger(_this48, {
7994
8001
  file: 'meeting/index',
7995
8002
  function: 'leave'
7996
8003
  }, _constants.EVENTS.DESTROY_MEETING, {
7997
8004
  reason: options.reason,
7998
- meetingId: _this47.id
8005
+ meetingId: _this48.id
7999
8006
  });
8000
8007
  }
8001
8008
  _loggerProxy.default.logger.log('Meeting:index#leave --> LEAVE REASON ', leaveReason);
@@ -8012,16 +8019,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8012
8019
  shownToUser: false
8013
8020
  }]
8014
8021
  });
8015
- _this47.meetingFiniteStateMachine.fail(error);
8022
+ _this48.meetingFiniteStateMachine.fail(error);
8016
8023
  _loggerProxy.default.logger.error('Meeting:index#leave --> Failed to leave ', error);
8017
8024
  // upload logs on leave irrespective of meeting delete
8018
- _triggerProxy.default.trigger(_this47, {
8025
+ _triggerProxy.default.trigger(_this48, {
8019
8026
  file: 'meeting/index',
8020
8027
  function: 'leave'
8021
- }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this47);
8028
+ }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this48);
8022
8029
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_LEAVE_FAILURE, {
8023
- correlation_id: _this47.correlationId,
8024
- locus_id: _this47.locusUrl.split('/').pop(),
8030
+ correlation_id: _this48.correlationId,
8031
+ locus_id: _this48.locusUrl.split('/').pop(),
8025
8032
  reason: error.message,
8026
8033
  stack: error.stack,
8027
8034
  code: error.code
@@ -8041,7 +8048,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8041
8048
  }, {
8042
8049
  key: "startWhiteboardShare",
8043
8050
  value: function startWhiteboardShare(channelUrl, resourceToken) {
8044
- var _this48 = this;
8051
+ var _this49 = this;
8045
8052
  var whiteboard = this.locusInfo.mediaShares.find(function (element) {
8046
8053
  return element.name === 'whiteboard';
8047
8054
  });
@@ -8070,13 +8077,13 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8070
8077
  body.resourceToken = resourceToken;
8071
8078
  }
8072
8079
  return this.meetingRequest.changeMeetingFloor(body).then(function () {
8073
- _this48.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
8080
+ _this49.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
8074
8081
  return _promise.default.resolve();
8075
8082
  }).catch(function (error) {
8076
8083
  _loggerProxy.default.logger.error('Meeting:index#startWhiteboardShare --> Error ', error);
8077
8084
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_START_WHITEBOARD_SHARE_FAILURE, {
8078
- correlation_id: _this48.correlationId,
8079
- locus_id: _this48.locusUrl.split('/').pop(),
8085
+ correlation_id: _this49.correlationId,
8086
+ locus_id: _this49.locusUrl.split('/').pop(),
8080
8087
  reason: error.message,
8081
8088
  stack: error.stack,
8082
8089
  board: {
@@ -8099,7 +8106,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8099
8106
  }, {
8100
8107
  key: "stopWhiteboardShare",
8101
8108
  value: function stopWhiteboardShare(channelUrl) {
8102
- var _this49 = this;
8109
+ var _this50 = this;
8103
8110
  var whiteboard = this.locusInfo.mediaShares.find(function (element) {
8104
8111
  return element.name === 'whiteboard';
8105
8112
  });
@@ -8122,8 +8129,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8122
8129
  }).catch(function (error) {
8123
8130
  _loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
8124
8131
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_STOP_WHITEBOARD_SHARE_FAILURE, {
8125
- correlation_id: _this49.correlationId,
8126
- locus_id: _this49.locusUrl.split('/').pop(),
8132
+ correlation_id: _this50.correlationId,
8133
+ locus_id: _this50.locusUrl.split('/').pop(),
8127
8134
  reason: error.message,
8128
8135
  stack: error.stack,
8129
8136
  board: {
@@ -8145,7 +8152,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8145
8152
  }, {
8146
8153
  key: "requestScreenShareFloor",
8147
8154
  value: function requestScreenShareFloor() {
8148
- var _this50 = this;
8155
+ var _this51 = this;
8149
8156
  if (!this.mediaProperties.hasLocalShareStream() || !this.mediaProperties.mediaDirection.sendShare) {
8150
8157
  _loggerProxy.default.logger.log("Meeting:index#requestScreenShareFloor --> NOT requesting floor, because we don't have the share stream anymore (shareStream=".concat(this.mediaProperties.shareVideoStream ? 'yes' : 'no', ", sendShare=").concat(this.mediaProperties.mediaDirection.sendShare, ")"));
8151
8158
  this.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
@@ -8176,34 +8183,34 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8176
8183
  resourceUrl: this.resourceUrl,
8177
8184
  shareInstanceId: this.localShareInstanceId
8178
8185
  }).then(function () {
8179
- _this50.screenShareFloorState = ScreenShareFloorStatus.GRANTED;
8186
+ _this51.screenShareFloorState = ScreenShareFloorStatus.GRANTED;
8180
8187
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_SUCCESS, {
8181
- correlation_id: _this50.correlationId,
8182
- locus_id: _this50.locusUrl.split('/').pop()
8188
+ correlation_id: _this51.correlationId,
8189
+ locus_id: _this51.locusUrl.split('/').pop()
8183
8190
  });
8184
8191
  return _promise.default.resolve();
8185
8192
  }).catch(function (error) {
8186
8193
  _loggerProxy.default.logger.error('Meeting:index#share --> Error ', error);
8187
8194
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_FAILURE, {
8188
- correlation_id: _this50.correlationId,
8189
- locus_id: _this50.locusUrl.split('/').pop(),
8195
+ correlation_id: _this51.correlationId,
8196
+ locus_id: _this51.locusUrl.split('/').pop(),
8190
8197
  reason: error.message,
8191
8198
  stack: error.stack
8192
8199
  });
8193
8200
 
8194
8201
  // @ts-ignore
8195
- _this50.webex.internal.newMetrics.submitClientEvent({
8202
+ _this51.webex.internal.newMetrics.submitClientEvent({
8196
8203
  name: 'client.share.floor-granted.local',
8197
8204
  payload: {
8198
8205
  mediaType: 'share',
8199
8206
  errors: _util2.default.getChangeMeetingFloorErrorPayload(error.message),
8200
- shareInstanceId: _this50.localShareInstanceId
8207
+ shareInstanceId: _this51.localShareInstanceId
8201
8208
  },
8202
8209
  options: {
8203
- meetingId: _this50.id
8210
+ meetingId: _this51.id
8204
8211
  }
8205
8212
  });
8206
- _this50.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
8213
+ _this51.screenShareFloorState = ScreenShareFloorStatus.RELEASED;
8207
8214
  return _promise.default.reject(error);
8208
8215
  });
8209
8216
  }
@@ -8226,10 +8233,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8226
8233
  }, {
8227
8234
  key: "requestScreenShareFloorIfPending",
8228
8235
  value: function requestScreenShareFloorIfPending() {
8229
- var _this51 = this;
8236
+ var _this52 = this;
8230
8237
  if (this.floorGrantPending && this.state === _constants.MEETING_STATE.STATES.JOINED) {
8231
8238
  this.requestScreenShareFloor().then(function () {
8232
- _this51.floorGrantPending = false;
8239
+ _this52.floorGrantPending = false;
8233
8240
  });
8234
8241
  }
8235
8242
  }
@@ -8243,7 +8250,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8243
8250
  }, {
8244
8251
  key: "releaseScreenShareFloor",
8245
8252
  value: function releaseScreenShareFloor() {
8246
- var _this52 = this;
8253
+ var _this53 = this;
8247
8254
  var content = this.locusInfo.mediaShares.find(function (element) {
8248
8255
  return element.name === _constants.CONTENT;
8249
8256
  });
@@ -8278,8 +8285,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8278
8285
  }).catch(function (error) {
8279
8286
  _loggerProxy.default.logger.error('Meeting:index#releaseScreenShareFloor --> Error ', error);
8280
8287
  _metrics.default.sendBehavioralMetric(_constants2.default.STOP_FLOOR_REQUEST_FAILURE, {
8281
- correlation_id: _this52.correlationId,
8282
- locus_id: _this52.locusUrl.split('/').pop(),
8288
+ correlation_id: _this53.correlationId,
8289
+ locus_id: _this53.locusUrl.split('/').pop(),
8283
8290
  reason: error.message,
8284
8291
  stack: error.stack
8285
8292
  });
@@ -8459,7 +8466,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8459
8466
  }, {
8460
8467
  key: "changeVideoLayout",
8461
8468
  value: function changeVideoLayout(layoutType) {
8462
- var _this53 = this;
8469
+ var _this54 = this;
8463
8470
  var renderInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8464
8471
  var main = renderInfo.main,
8465
8472
  content = renderInfo.content;
@@ -8513,7 +8520,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8513
8520
  }
8514
8521
  this.lastVideoLayoutInfo = (0, _lodash.cloneDeep)(layoutInfo);
8515
8522
  this.locusInfo.once(_constants.LOCUSINFO.EVENTS.CONTROLS_MEETING_LAYOUT_UPDATED, function (envelope) {
8516
- _triggerProxy.default.trigger(_this53, {
8523
+ _triggerProxy.default.trigger(_this54, {
8517
8524
  file: 'meeting/index',
8518
8525
  function: 'changeVideoLayout'
8519
8526
  }, _constants.EVENT_TRIGGERS.MEETING_CONTROLS_LAYOUT_UPDATE, {
@@ -8629,7 +8636,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8629
8636
  }, {
8630
8637
  key: "endMeetingForAll",
8631
8638
  value: function endMeetingForAll() {
8632
- var _this54 = this;
8639
+ var _this55 = this;
8633
8640
  // @ts-ignore
8634
8641
  this.webex.internal.newMetrics.submitClientEvent({
8635
8642
  name: 'client.call.leave',
@@ -8647,25 +8654,25 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8647
8654
  locus_id: this.locusId
8648
8655
  });
8649
8656
  return _util2.default.endMeetingForAll(this).then(function (end) {
8650
- _this54.meetingFiniteStateMachine.end();
8651
- _this54.clearMeetingData();
8657
+ _this55.meetingFiniteStateMachine.end();
8658
+ _this55.clearMeetingData();
8652
8659
  // upload logs on leave irrespective of meeting delete
8653
- _triggerProxy.default.trigger(_this54, {
8660
+ _triggerProxy.default.trigger(_this55, {
8654
8661
  file: 'meeting/index',
8655
8662
  function: 'endMeetingForAll'
8656
- }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this54);
8663
+ }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this55);
8657
8664
  return end;
8658
8665
  }).catch(function (error) {
8659
- _this54.meetingFiniteStateMachine.fail(error);
8666
+ _this55.meetingFiniteStateMachine.fail(error);
8660
8667
  _loggerProxy.default.logger.error('Meeting:index#endMeetingForAll --> Failed to end meeting ', error);
8661
8668
  // upload logs on leave irrespective of meeting delete
8662
- _triggerProxy.default.trigger(_this54, {
8669
+ _triggerProxy.default.trigger(_this55, {
8663
8670
  file: 'meeting/index',
8664
8671
  function: 'endMeetingForAll'
8665
- }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this54);
8672
+ }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this55);
8666
8673
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_END_ALL_FAILURE, {
8667
- correlation_id: _this54.correlationId,
8668
- locus_id: _this54.locusUrl.split('/').pop(),
8674
+ correlation_id: _this55.correlationId,
8675
+ locus_id: _this55.locusUrl.split('/').pop(),
8669
8676
  reason: error.message,
8670
8677
  stack: error.stack,
8671
8678
  code: error.code
@@ -8807,7 +8814,7 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8807
8814
  _this$mediaProperties43,
8808
8815
  _this$mediaProperties44,
8809
8816
  _this$mediaProperties45,
8810
- _this55 = this;
8817
+ _this56 = this;
8811
8818
  var LOG_HEADER = 'Meeting:index#updateTranscodedMediaConnection -->';
8812
8819
  _loggerProxy.default.logger.info("".concat(LOG_HEADER, " starting"));
8813
8820
  if (!this.canUpdateMedia()) {
@@ -8832,8 +8839,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
8832
8839
  }).catch(function (error) {
8833
8840
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error: "), error);
8834
8841
  _metrics.default.sendBehavioralMetric(_constants2.default.UPDATE_MEDIA_FAILURE, {
8835
- correlation_id: _this55.correlationId,
8836
- locus_id: _this55.locusUrl.split('/').pop(),
8842
+ correlation_id: _this56.correlationId,
8843
+ locus_id: _this56.locusUrl.split('/').pop(),
8837
8844
  reason: error.message,
8838
8845
  stack: error.stack
8839
8846
  });