@webex/plugin-meetings 3.10.0-next.8 → 3.10.0-webex-services-ready.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotation/annotation.types.js.map +1 -1
- package/dist/annotation/constants.js.map +1 -1
- package/dist/annotation/index.js +19 -22
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +6 -6
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/collection.js.map +1 -1
- package/dist/breakouts/edit-lock-error.js +9 -11
- package/dist/breakouts/edit-lock-error.js.map +1 -1
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +126 -127
- package/dist/breakouts/index.js.map +1 -1
- package/dist/breakouts/request.js +6 -8
- package/dist/breakouts/request.js.map +1 -1
- package/dist/breakouts/utils.js.map +1 -1
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +1 -2
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +9 -11
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +10 -12
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-forbidden-error.js +10 -12
- package/dist/common/errors/join-forbidden-error.js.map +1 -1
- package/dist/common/errors/join-meeting.js +10 -12
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/join-webinar-error.js +9 -11
- package/dist/common/errors/join-webinar-error.js.map +1 -1
- package/dist/common/errors/media.js +9 -11
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/multistream-not-supported-error.js +9 -11
- package/dist/common/errors/multistream-not-supported-error.js.map +1 -1
- package/dist/common/errors/no-meeting-info.js +9 -11
- package/dist/common/errors/no-meeting-info.js.map +1 -1
- package/dist/common/errors/parameter.js +11 -14
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +9 -11
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +9 -11
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reclaim-host-role-errors.js +32 -38
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -1
- package/dist/common/errors/reconnection-not-started.js +5 -6
- package/dist/common/errors/reconnection-not-started.js.map +1 -1
- package/dist/common/errors/reconnection.js +9 -11
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +9 -11
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +20 -29
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +9 -12
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +9 -10
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +9 -10
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +17 -17
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +1 -2
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +11 -8
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.js +1 -2
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.js +1 -2
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +20 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +515 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +1266 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +21 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +48 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +6 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +6 -8
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interpretation/collection.js.map +1 -1
- package/dist/interpretation/index.js +1 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/interpretation/siLanguage.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +551 -94
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +3 -4
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +7 -0
- package/dist/locus-info/types.js.map +1 -0
- package/dist/media/MediaConnectionAwaiter.js +1 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +0 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +15 -17
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js.map +1 -1
- package/dist/meeting/brbState.js +8 -9
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/connectionStateHandler.js +10 -13
- package/dist/meeting/connectionStateHandler.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1555 -1527
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +13 -17
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +11 -12
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +101 -104
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/type.js.map +1 -1
- package/dist/meeting/util.js +24 -23
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +3 -3
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/collection.js +7 -10
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +1 -2
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +135 -146
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +1 -2
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +36 -37
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +30 -31
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +6 -8
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +179 -141
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +6 -8
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +25 -23
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +1 -2
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +6 -3
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -2
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +18 -21
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +8 -11
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +3 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +1 -2
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +34 -45
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +8 -9
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +12 -15
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +1 -2
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +122 -123
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +29 -30
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/personal-meeting-room/index.js +16 -19
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +7 -10
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/clusterReachability.js +56 -373
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +203 -205
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +14 -1
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +445 -0
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -0
- package/dist/reachability/request.js.map +1 -1
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/constants.js.map +1 -1
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +178 -176
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.js +1 -2
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/index.js +12 -15
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +24 -26
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +75 -76
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/types.js.map +1 -1
- package/dist/transcription/index.js +4 -5
- package/dist/transcription/index.js.map +1 -1
- package/dist/types/constants.d.ts +26 -21
- package/dist/types/hashTree/constants.d.ts +8 -0
- package/dist/types/hashTree/hashTree.d.ts +129 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +260 -0
- package/dist/types/hashTree/types.d.ts +25 -0
- package/dist/types/hashTree/utils.d.ts +9 -0
- package/dist/types/locus-info/index.d.ts +91 -42
- package/dist/types/locus-info/types.d.ts +46 -0
- package/dist/types/meeting/index.d.ts +22 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +2 -0
- package/dist/types/reachability/clusterReachability.d.ts +10 -88
- package/dist/types/reachability/reachability.types.d.ts +12 -1
- package/dist/types/reachability/reachabilityPeerConnection.d.ts +111 -0
- package/dist/webinar/collection.js +1 -2
- package/dist/webinar/collection.js.map +1 -1
- package/dist/webinar/index.js +148 -158
- package/dist/webinar/index.js.map +1 -1
- package/package.json +22 -21
- package/src/constants.ts +13 -1
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1161 -0
- package/src/hashTree/types.ts +30 -0
- package/src/hashTree/utils.ts +42 -0
- package/src/locus-info/index.ts +556 -85
- package/src/locus-info/types.ts +48 -0
- package/src/meeting/index.ts +58 -26
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +104 -51
- package/src/metrics/constants.ts +2 -0
- package/src/reachability/clusterReachability.ts +50 -347
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +416 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1532 -0
- package/test/unit/spec/hashTree/utils.ts +103 -0
- package/test/unit/spec/locus-info/index.js +667 -1
- package/test/unit/spec/meeting/index.js +91 -20
- package/test/unit/spec/meeting/utils.js +77 -0
- package/test/unit/spec/meetings/index.js +71 -26
- package/test/unit/spec/reachability/clusterReachability.ts +281 -138
package/dist/meetings/index.js
CHANGED
|
@@ -22,10 +22,9 @@ var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/obj
|
|
|
22
22
|
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
23
23
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/toConsumableArray"));
|
|
24
24
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
25
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
26
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
27
25
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
28
26
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
27
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
29
28
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
30
29
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
31
30
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
@@ -63,18 +62,17 @@ var _joinWebinarError = _interopRequireDefault(require("../common/errors/join-we
|
|
|
63
62
|
var _webexErrors = require("../common/errors/webex-errors");
|
|
64
63
|
var _noMeetingInfo = _interopRequireDefault(require("../common/errors/no-meeting-info"));
|
|
65
64
|
var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
|
|
66
|
-
function
|
|
67
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
65
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
|
|
68
66
|
function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
69
67
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
70
|
-
function
|
|
71
|
-
function _isNativeReflectConstruct() {
|
|
68
|
+
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
69
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /* eslint no-shadow: ["error", { "allow": ["eventType"] }] */ // @ts-ignore
|
|
72
70
|
var mediaLogger;
|
|
73
71
|
var MediaLogger = /*#__PURE__*/function () {
|
|
74
72
|
function MediaLogger() {
|
|
75
73
|
(0, _classCallCheck2.default)(this, MediaLogger);
|
|
76
74
|
}
|
|
77
|
-
(0, _createClass2.default)(MediaLogger, [{
|
|
75
|
+
return (0, _createClass2.default)(MediaLogger, [{
|
|
78
76
|
key: "info",
|
|
79
77
|
value: function info() {
|
|
80
78
|
var _LoggerProxy$logger;
|
|
@@ -111,7 +109,6 @@ var MediaLogger = /*#__PURE__*/function () {
|
|
|
111
109
|
(_LoggerProxy$logger6 = _loggerProxy.default.logger).debug.apply(_LoggerProxy$logger6, arguments);
|
|
112
110
|
}
|
|
113
111
|
}]);
|
|
114
|
-
return MediaLogger;
|
|
115
112
|
}();
|
|
116
113
|
/**
|
|
117
114
|
* Meetings Ready Event
|
|
@@ -165,8 +162,6 @@ var MediaLogger = /*#__PURE__*/function () {
|
|
|
165
162
|
* @class
|
|
166
163
|
*/
|
|
167
164
|
var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
168
|
-
(0, _inherits2.default)(Meetings, _WebexPlugin);
|
|
169
|
-
var _super = _createSuper(Meetings);
|
|
170
165
|
/**
|
|
171
166
|
* Initializes the Meetings Plugin
|
|
172
167
|
* @constructor
|
|
@@ -179,7 +174,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
179
174
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
180
175
|
args[_key] = arguments[_key];
|
|
181
176
|
}
|
|
182
|
-
_this =
|
|
177
|
+
_this = _callSuper(this, Meetings, [].concat(args));
|
|
183
178
|
|
|
184
179
|
/**
|
|
185
180
|
* The webrtc-core media helpers. This is a temporary solution required for the SDK sample app
|
|
@@ -190,21 +185,21 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
190
185
|
* @private
|
|
191
186
|
* @memberof Meetings
|
|
192
187
|
*/
|
|
193
|
-
(0, _defineProperty2.default)(
|
|
194
|
-
(0, _defineProperty2.default)(
|
|
195
|
-
(0, _defineProperty2.default)(
|
|
196
|
-
(0, _defineProperty2.default)(
|
|
197
|
-
(0, _defineProperty2.default)(
|
|
198
|
-
(0, _defineProperty2.default)(
|
|
199
|
-
(0, _defineProperty2.default)(
|
|
200
|
-
(0, _defineProperty2.default)(
|
|
201
|
-
(0, _defineProperty2.default)(
|
|
202
|
-
(0, _defineProperty2.default)(
|
|
203
|
-
(0, _defineProperty2.default)(
|
|
204
|
-
(0, _defineProperty2.default)(
|
|
205
|
-
(0, _defineProperty2.default)(
|
|
206
|
-
(0, _defineProperty2.default)(
|
|
207
|
-
(0, _defineProperty2.default)(
|
|
188
|
+
(0, _defineProperty2.default)(_this, "loggerRequest", void 0);
|
|
189
|
+
(0, _defineProperty2.default)(_this, "media", void 0);
|
|
190
|
+
(0, _defineProperty2.default)(_this, "meetingCollection", void 0);
|
|
191
|
+
(0, _defineProperty2.default)(_this, "deletedMeetings", void 0);
|
|
192
|
+
(0, _defineProperty2.default)(_this, "personalMeetingRoom", void 0);
|
|
193
|
+
(0, _defineProperty2.default)(_this, "preferredWebexSite", void 0);
|
|
194
|
+
(0, _defineProperty2.default)(_this, "reachability", void 0);
|
|
195
|
+
(0, _defineProperty2.default)(_this, "registered", void 0);
|
|
196
|
+
(0, _defineProperty2.default)(_this, "request", void 0);
|
|
197
|
+
(0, _defineProperty2.default)(_this, "geoHintInfo", void 0);
|
|
198
|
+
(0, _defineProperty2.default)(_this, "meetingInfo", void 0);
|
|
199
|
+
(0, _defineProperty2.default)(_this, "mediaHelpers", void 0);
|
|
200
|
+
(0, _defineProperty2.default)(_this, "breakoutLocusForHandleLater", void 0);
|
|
201
|
+
(0, _defineProperty2.default)(_this, "namespace", _constants.MEETINGS);
|
|
202
|
+
(0, _defineProperty2.default)(_this, "registrationStatus", void 0);
|
|
208
203
|
/**
|
|
209
204
|
* Creates a noise reduction effect
|
|
210
205
|
*
|
|
@@ -213,10 +208,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
213
208
|
* @public
|
|
214
209
|
* @memberof Meetings
|
|
215
210
|
*/
|
|
216
|
-
(0, _defineProperty2.default)(
|
|
217
|
-
var _ref = (0, _asyncToGenerator2.default)(
|
|
211
|
+
(0, _defineProperty2.default)(_this, "createNoiseReductionEffect", /*#__PURE__*/function () {
|
|
212
|
+
var _ref = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(options) {
|
|
218
213
|
var authToken;
|
|
219
|
-
return _regenerator.default.wrap(function
|
|
214
|
+
return _regenerator.default.wrap(function (_context) {
|
|
220
215
|
while (1) switch (_context.prev = _context.next) {
|
|
221
216
|
case 0:
|
|
222
217
|
// @ts-ignore
|
|
@@ -224,7 +219,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
224
219
|
return _context.abrupt("return", new mediaHelpersModule.NoiseReductionEffect(_objectSpread({
|
|
225
220
|
authToken: authToken
|
|
226
221
|
}, options)));
|
|
227
|
-
case
|
|
222
|
+
case 1:
|
|
228
223
|
case "end":
|
|
229
224
|
return _context.stop();
|
|
230
225
|
}
|
|
@@ -242,10 +237,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
242
237
|
* @public
|
|
243
238
|
* @memberof Meetings
|
|
244
239
|
*/
|
|
245
|
-
(0, _defineProperty2.default)(
|
|
246
|
-
var _ref2 = (0, _asyncToGenerator2.default)(
|
|
240
|
+
(0, _defineProperty2.default)(_this, "createVirtualBackgroundEffect", /*#__PURE__*/function () {
|
|
241
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
|
|
247
242
|
var authToken;
|
|
248
|
-
return _regenerator.default.wrap(function
|
|
243
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
249
244
|
while (1) switch (_context2.prev = _context2.next) {
|
|
250
245
|
case 0:
|
|
251
246
|
// @ts-ignore
|
|
@@ -253,7 +248,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
253
248
|
return _context2.abrupt("return", new mediaHelpersModule.VirtualBackgroundEffect(_objectSpread({
|
|
254
249
|
authToken: authToken
|
|
255
250
|
}, options)));
|
|
256
|
-
case
|
|
251
|
+
case 1:
|
|
257
252
|
case "end":
|
|
258
253
|
return _context2.stop();
|
|
259
254
|
}
|
|
@@ -351,7 +346,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
351
346
|
* @private
|
|
352
347
|
* @memberof Meetings
|
|
353
348
|
*/
|
|
354
|
-
(0,
|
|
349
|
+
(0, _inherits2.default)(Meetings, _WebexPlugin);
|
|
350
|
+
return (0, _createClass2.default)(Meetings, [{
|
|
355
351
|
key: "isNeedHandleMainLocus",
|
|
356
352
|
value: function isNeedHandleMainLocus(meeting, newLocus) {
|
|
357
353
|
var _newLocus$controls, _newLocus$controls$br, _newLocus$self, _newLocus$self2, _newLocus$self3, _breakoutLocus$joined, _newLocus$self4;
|
|
@@ -439,7 +435,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
439
435
|
}, {
|
|
440
436
|
key: "getCorrespondingMeetingByLocus",
|
|
441
437
|
value: function getCorrespondingMeetingByLocus(data) {
|
|
442
|
-
var _data$locus
|
|
438
|
+
var _data$stateElementsMe, _data$locus, _data$locus$self, _data$locus$self$call, _data$locus2, _data$locus2$info, _data$locus3, _data$locus4, _data$locus4$info;
|
|
439
|
+
if (data.eventType === _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED && (_data$stateElementsMe = data.stateElementsMessage) !== null && _data$stateElementsMe !== void 0 && _data$stateElementsMe.locusUrl) {
|
|
440
|
+
return this.meetingCollection.getByKey(_meetings.MEETING_KEY.LOCUS_URL, data.stateElementsMessage.locusUrl);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
443
|
// getting meeting by correlationId. This will happen for the new event
|
|
444
444
|
// Either the locus
|
|
445
445
|
// TODO : Add check for the callBack Address
|
|
@@ -447,7 +447,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
447
447
|
// @ts-ignore
|
|
448
448
|
this.meetingCollection.getByKey(_meetings.MEETING_KEY.CORRELATION_ID,
|
|
449
449
|
// @ts-ignore
|
|
450
|
-
_util2.default.checkForCorrelationId(this.webex.internal.device.url, data.locus)) || this.meetingCollection.getByKey(_meetings.MEETING_KEY.SIP_URI, data.locus
|
|
450
|
+
_util2.default.checkForCorrelationId(this.webex.internal.device.url, data.locus)) || this.meetingCollection.getByKey(_meetings.MEETING_KEY.SIP_URI, (_data$locus = data.locus) === null || _data$locus === void 0 ? void 0 : (_data$locus$self = _data$locus.self) === null || _data$locus$self === void 0 ? void 0 : (_data$locus$self$call = _data$locus$self.callbackInfo) === null || _data$locus$self$call === void 0 ? void 0 : _data$locus$self$call.callbackAddress) || ((_data$locus2 = data.locus) !== null && _data$locus2 !== void 0 && (_data$locus2$info = _data$locus2.info) !== null && _data$locus2$info !== void 0 && _data$locus2$info.isUnifiedSpaceMeeting ? undefined : this.meetingCollection.getByKey(_meetings.MEETING_KEY.CONVERSATION_URL, (_data$locus3 = data.locus) === null || _data$locus3 === void 0 ? void 0 : _data$locus3.conversationUrl)) || this.meetingCollection.getByKey(_meetings.MEETING_KEY.MEETINGNUMBER, (_data$locus4 = data.locus) === null || _data$locus4 === void 0 ? void 0 : (_data$locus4$info = _data$locus4.info) === null || _data$locus4$info === void 0 ? void 0 : _data$locus4$info.webExMeetingId);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
/**
|
|
@@ -464,25 +464,26 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
464
464
|
}, {
|
|
465
465
|
key: "handleLocusEvent",
|
|
466
466
|
value: function handleLocusEvent(data) {
|
|
467
|
-
var
|
|
468
|
-
_data$locus2$replaces,
|
|
469
|
-
_this2 = this;
|
|
467
|
+
var _this2 = this;
|
|
470
468
|
var useRandomDelayForInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
471
469
|
var meeting = this.getCorrespondingMeetingByLocus(data);
|
|
472
470
|
|
|
473
471
|
// Special case when locus has got replaced, This only happend once if a replace locus exists
|
|
474
472
|
// https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-changing-mid-call
|
|
475
473
|
|
|
476
|
-
if (
|
|
477
|
-
|
|
478
|
-
meeting
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
474
|
+
if (data.eventType !== _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED) {
|
|
475
|
+
var _data$locus5, _data$locus5$replaces;
|
|
476
|
+
if (!meeting && ((_data$locus5 = data.locus) === null || _data$locus5 === void 0 ? void 0 : (_data$locus5$replaces = _data$locus5.replaces) === null || _data$locus5$replaces === void 0 ? void 0 : _data$locus5$replaces.length) > 0) {
|
|
477
|
+
// Always the last element in the replace is the active one
|
|
478
|
+
meeting = this.meetingCollection.getByKey(_meetings.MEETING_KEY.LOCUS_URL, data.locus.replaces[data.locus.replaces.length - 1].locusUrl);
|
|
479
|
+
}
|
|
480
|
+
if (meeting && !_util2.default.isBreakoutLocusDTO(data.locus)) {
|
|
481
|
+
meeting.locusInfo.updateMainSessionLocusCache(data.locus);
|
|
482
|
+
}
|
|
483
|
+
if (!this.isNeedHandleLocusDTO(meeting, data.locus)) {
|
|
484
|
+
_loggerProxy.default.logger.log("Meetings:index#handleLocusEvent --> doesn't need to process locus event");
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
486
487
|
}
|
|
487
488
|
if (!meeting) {
|
|
488
489
|
// TODO: create meeting when we get a meeting object
|
|
@@ -504,27 +505,61 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
504
505
|
// };
|
|
505
506
|
// rather then locus object change to locus url
|
|
506
507
|
|
|
507
|
-
if (data.
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
508
|
+
if (data.eventType !== _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED) {
|
|
509
|
+
if (data.locus && data.locus.fullState && data.locus.fullState.state === _constants.LOCUS.STATE.INACTIVE) {
|
|
510
|
+
// just ignore the event as its already ended and not active
|
|
511
|
+
_loggerProxy.default.logger.warn('Meetings:index#handleLocusEvent --> Locus event received for meeting, after it was ended.');
|
|
512
|
+
return;
|
|
513
|
+
}
|
|
512
514
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
+
// When its wireless share or guest and user leaves the meeting we dont have to keep the meeting object
|
|
516
|
+
// Any future events will be neglected
|
|
515
517
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
518
|
+
if (data.locus && data.locus.self && data.locus.self.state === _constants._LEFT_ && data.locus.self.removed === true) {
|
|
519
|
+
// just ignore the event as its already ended and not active
|
|
520
|
+
_loggerProxy.default.logger.warn('Meetings:index#handleLocusEvent --> Locus event received for meeting, after it was ended.');
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
520
523
|
}
|
|
521
|
-
|
|
522
|
-
meeting
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
524
|
+
if (data.eventType === _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED) {
|
|
525
|
+
// in hash tree messages we don't ge the locus object, but the meeting constructor needs at least locus.url
|
|
526
|
+
(0, _lodash.set)(data, 'locus.url', data.stateElementsMessage.locusUrl);
|
|
527
|
+
}
|
|
528
|
+
this.create(data.locus, _constants.DESTINATION_TYPE.LOCUS_ID, useRandomDelayForInfo).then(/*#__PURE__*/function () {
|
|
529
|
+
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(newMeeting) {
|
|
530
|
+
var _t;
|
|
531
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
532
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
533
|
+
case 0:
|
|
534
|
+
meeting = newMeeting;
|
|
535
|
+
_context3.prev = 1;
|
|
536
|
+
_context3.next = 2;
|
|
537
|
+
return meeting.locusInfo.initialSetup({
|
|
538
|
+
trigger: data.eventType === _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS ? 'get-loci-response' : 'locus-message',
|
|
539
|
+
locus: data.locus,
|
|
540
|
+
hashTreeMessage: data.stateElementsMessage
|
|
541
|
+
});
|
|
542
|
+
case 2:
|
|
543
|
+
_context3.next = 4;
|
|
544
|
+
break;
|
|
545
|
+
case 3:
|
|
546
|
+
_context3.prev = 3;
|
|
547
|
+
_t = _context3["catch"](1);
|
|
548
|
+
_loggerProxy.default.logger.warn("Meetings:index#handleLocusEvent --> Error initializing locus data: ".concat(_t.message));
|
|
549
|
+
// @ts-ignore
|
|
550
|
+
_this2.destroy(meeting, _constants.MEETING_REMOVED_REASON.LOCUS_DTO_SYNC_FAILED);
|
|
551
|
+
case 4:
|
|
552
|
+
_this2.checkHandleBreakoutLocus(data.locus);
|
|
553
|
+
case 5:
|
|
554
|
+
case "end":
|
|
555
|
+
return _context3.stop();
|
|
556
|
+
}
|
|
557
|
+
}, _callee3, null, [[1, 3]]);
|
|
558
|
+
}));
|
|
559
|
+
return function (_x3) {
|
|
560
|
+
return _ref3.apply(this, arguments);
|
|
561
|
+
};
|
|
562
|
+
}()).catch(function (e) {
|
|
528
563
|
_loggerProxy.default.logger.error(e);
|
|
529
564
|
}).finally(function () {
|
|
530
565
|
// There will be cases where locus event comes in gets created and deleted because its a 1:1 and meeting gets deleted
|
|
@@ -936,7 +971,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
936
971
|
_this6.webex.internal.device.register(deviceRegistrationOptions)
|
|
937
972
|
// @ts-ignore
|
|
938
973
|
.then(function () {
|
|
939
|
-
_loggerProxy.default.logger.info(
|
|
974
|
+
_loggerProxy.default.logger.info(// @ts-ignore
|
|
940
975
|
"Meetings:index#register --> INFO, Device registered ".concat(_this6.webex.internal.device.url));
|
|
941
976
|
})
|
|
942
977
|
);
|
|
@@ -1106,29 +1141,29 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1106
1141
|
}, {
|
|
1107
1142
|
key: "fetchUserPreferredWebexSite",
|
|
1108
1143
|
value: function fetchUserPreferredWebexSite() {
|
|
1109
|
-
var
|
|
1144
|
+
var _this0 = this;
|
|
1110
1145
|
// @ts-ignore
|
|
1111
1146
|
return this.webex.people._getMe().then(function (me) {
|
|
1112
1147
|
var isGuestUser = me.type === 'appuser';
|
|
1113
1148
|
if (!isGuestUser) {
|
|
1114
|
-
return
|
|
1149
|
+
return _this0.request.getMeetingPreferences().then(function (res) {
|
|
1115
1150
|
if (res) {
|
|
1116
1151
|
var preferredWebexSite = _util2.default.parseDefaultSiteFromMeetingPreferences(res);
|
|
1117
|
-
|
|
1152
|
+
_this0.preferredWebexSite = preferredWebexSite;
|
|
1118
1153
|
// @ts-ignore
|
|
1119
|
-
|
|
1154
|
+
_this0.webex.internal.services._getCatalog().addAllowedDomains([preferredWebexSite]);
|
|
1120
1155
|
}
|
|
1121
1156
|
|
|
1122
1157
|
// fall back to getting the preferred site from the user information
|
|
1123
|
-
if (!
|
|
1158
|
+
if (!_this0.preferredWebexSite) {
|
|
1124
1159
|
// @ts-ignore
|
|
1125
|
-
return
|
|
1160
|
+
return _this0.webex.internal.user.get().then(function (user) {
|
|
1126
1161
|
var _user$userPreferences, _user$userPreferences2;
|
|
1127
1162
|
var preferredWebexSite = user === null || user === void 0 ? void 0 : (_user$userPreferences = user.userPreferences) === null || _user$userPreferences === void 0 ? void 0 : (_user$userPreferences2 = _user$userPreferences.userPreferencesItems) === null || _user$userPreferences2 === void 0 ? void 0 : _user$userPreferences2.preferredWebExSite;
|
|
1128
1163
|
if (preferredWebexSite) {
|
|
1129
|
-
|
|
1164
|
+
_this0.preferredWebexSite = preferredWebexSite;
|
|
1130
1165
|
// @ts-ignore
|
|
1131
|
-
|
|
1166
|
+
_this0.webex.internal.services._getCatalog().addAllowedDomains([preferredWebexSite]);
|
|
1132
1167
|
} else {
|
|
1133
1168
|
throw new Error('site not found');
|
|
1134
1169
|
}
|
|
@@ -1256,7 +1291,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1256
1291
|
}, {
|
|
1257
1292
|
key: "create",
|
|
1258
1293
|
value: function create(destination) {
|
|
1259
|
-
var
|
|
1294
|
+
var _this1 = this;
|
|
1260
1295
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
1261
1296
|
var useRandomDelayForInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1262
1297
|
var infoExtraParams = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
@@ -1297,7 +1332,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1297
1332
|
// check for the conversation URL then sip Url
|
|
1298
1333
|
var meeting = null;
|
|
1299
1334
|
if (type === _constants.DESTINATION_TYPE.CONVERSATION_URL || options.type === _constants.DESTINATION_TYPE.CONVERSATION_URL) {
|
|
1300
|
-
var foundMeeting =
|
|
1335
|
+
var foundMeeting = _this1.meetingCollection.getByKey(_meetings.MEETING_KEY.CONVERSATION_URL, targetDest);
|
|
1301
1336
|
if (foundMeeting) {
|
|
1302
1337
|
var foundMeetingIsNotCalendarMeeting = !foundMeeting.locusInfo.scheduledMeeting;
|
|
1303
1338
|
|
|
@@ -1311,21 +1346,21 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1311
1346
|
|
|
1312
1347
|
// Attempt to collect the meeting if it exists.
|
|
1313
1348
|
if (!meeting) {
|
|
1314
|
-
meeting =
|
|
1349
|
+
meeting = _this1.meetingCollection.getByKey(_meetings.MEETING_KEY.SIP_URI, targetDest);
|
|
1315
1350
|
}
|
|
1316
1351
|
|
|
1317
1352
|
// Validate if a meeting was found.
|
|
1318
1353
|
if (!meeting) {
|
|
1319
1354
|
// Create a meeting based on the normalized destination and type.
|
|
1320
|
-
return
|
|
1355
|
+
return _this1.createMeeting(targetDest, type, useRandomDelayForInfo, infoExtraParams, callStateForMetrics, failOnMissingMeetingInfo, meetingInfo, meetingLookupUrl, classificationId).then(function (createdMeeting) {
|
|
1321
1356
|
// If the meeting was successfully created.
|
|
1322
1357
|
if (createdMeeting && createdMeeting.on) {
|
|
1323
1358
|
// Create a destruction event for the meeting.
|
|
1324
1359
|
createdMeeting.on(_constants.EVENTS.DESTROY_MEETING, function (payload) {
|
|
1325
1360
|
// @ts-ignore
|
|
1326
|
-
if (
|
|
1361
|
+
if (_this1.config.autoUploadLogs) {
|
|
1327
1362
|
var _createdMeeting$locus, _createdMeeting$locus2, _createdMeeting$locus3, _createdMeeting$locus4, _createdMeeting$locus5, _createdMeeting$locus6;
|
|
1328
|
-
|
|
1363
|
+
_this1.uploadLogs({
|
|
1329
1364
|
callStart: (_createdMeeting$locus = createdMeeting.locusInfo) === null || _createdMeeting$locus === void 0 ? void 0 : (_createdMeeting$locus2 = _createdMeeting$locus.fullState) === null || _createdMeeting$locus2 === void 0 ? void 0 : _createdMeeting$locus2.lastActive,
|
|
1330
1365
|
locussessionid: (_createdMeeting$locus3 = createdMeeting.locusInfo) === null || _createdMeeting$locus3 === void 0 ? void 0 : (_createdMeeting$locus4 = _createdMeeting$locus3.fullState) === null || _createdMeeting$locus4 === void 0 ? void 0 : _createdMeeting$locus4.sessionId,
|
|
1331
1366
|
correlationId: createdMeeting.correlationId,
|
|
@@ -1335,13 +1370,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1335
1370
|
autoupload: true
|
|
1336
1371
|
});
|
|
1337
1372
|
}
|
|
1338
|
-
|
|
1373
|
+
_this1.destroy(createdMeeting, payload.reason);
|
|
1339
1374
|
});
|
|
1340
1375
|
createdMeeting.on(_constants.EVENTS.REQUEST_UPLOAD_LOGS, function (meetingInstance) {
|
|
1341
1376
|
// @ts-ignore
|
|
1342
|
-
if (
|
|
1377
|
+
if (_this1.config.autoUploadLogs) {
|
|
1343
1378
|
var _meetingInstance$locu, _meetingInstance$locu2, _meetingInstance$locu3, _meetingInstance$locu4, _meetingInstance$locu5, _meetingInstance$locu6;
|
|
1344
|
-
|
|
1379
|
+
_this1.uploadLogs({
|
|
1345
1380
|
callStart: meetingInstance === null || meetingInstance === void 0 ? void 0 : (_meetingInstance$locu = meetingInstance.locusInfo) === null || _meetingInstance$locu === void 0 ? void 0 : (_meetingInstance$locu2 = _meetingInstance$locu.fullState) === null || _meetingInstance$locu2 === void 0 ? void 0 : _meetingInstance$locu2.lastActive,
|
|
1346
1381
|
locussessionid: meetingInstance === null || meetingInstance === void 0 ? void 0 : (_meetingInstance$locu3 = meetingInstance.locusInfo) === null || _meetingInstance$locu3 === void 0 ? void 0 : (_meetingInstance$locu4 = _meetingInstance$locu3.fullState) === null || _meetingInstance$locu4 === void 0 ? void 0 : _meetingInstance$locu4.sessionId,
|
|
1347
1382
|
correlationId: meetingInstance.correlationId,
|
|
@@ -1428,8 +1463,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1428
1463
|
}, {
|
|
1429
1464
|
key: "createMeeting",
|
|
1430
1465
|
value: (function () {
|
|
1431
|
-
var _createMeeting = (0, _asyncToGenerator2.default)(
|
|
1432
|
-
var
|
|
1466
|
+
var _createMeeting = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(destination) {
|
|
1467
|
+
var _this10 = this;
|
|
1433
1468
|
var type,
|
|
1434
1469
|
useRandomDelayForInfo,
|
|
1435
1470
|
infoExtraParams,
|
|
@@ -1450,18 +1485,19 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1450
1485
|
enableUnifiedMeetings,
|
|
1451
1486
|
meetingInfoOptions,
|
|
1452
1487
|
meetingAddedType,
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1488
|
+
_args4 = arguments,
|
|
1489
|
+
_t2;
|
|
1490
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
1491
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
1456
1492
|
case 0:
|
|
1457
|
-
type =
|
|
1458
|
-
useRandomDelayForInfo =
|
|
1459
|
-
infoExtraParams =
|
|
1460
|
-
callStateForMetrics =
|
|
1461
|
-
failOnMissingMeetingInfo =
|
|
1462
|
-
meetingInfo =
|
|
1463
|
-
meetingLookupUrl =
|
|
1464
|
-
classificationId =
|
|
1493
|
+
type = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : null;
|
|
1494
|
+
useRandomDelayForInfo = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : false;
|
|
1495
|
+
infoExtraParams = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : {};
|
|
1496
|
+
callStateForMetrics = _args4.length > 4 && _args4[4] !== undefined ? _args4[4] : undefined;
|
|
1497
|
+
failOnMissingMeetingInfo = _args4.length > 5 && _args4[5] !== undefined ? _args4[5] : false;
|
|
1498
|
+
meetingInfo = _args4.length > 6 && _args4[6] !== undefined ? _args4[6] : undefined;
|
|
1499
|
+
meetingLookupUrl = _args4.length > 7 && _args4[7] !== undefined ? _args4[7] : undefined;
|
|
1500
|
+
classificationId = _args4.length > 8 && _args4[8] !== undefined ? _args4[8] : undefined;
|
|
1465
1501
|
meeting = new _meeting.default({
|
|
1466
1502
|
// @ts-ignore
|
|
1467
1503
|
userId: this.webex.internal.device.userId,
|
|
@@ -1479,9 +1515,9 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1479
1515
|
// @ts-ignore
|
|
1480
1516
|
parent: this.webex
|
|
1481
1517
|
}, function (newMeeting) {
|
|
1482
|
-
|
|
1518
|
+
_this10.meetingCollection.set(newMeeting);
|
|
1483
1519
|
});
|
|
1484
|
-
|
|
1520
|
+
_context4.prev = 1;
|
|
1485
1521
|
// if no participant has joined the scheduled meeting (meaning meeting is not active) and we get a locusEvent,
|
|
1486
1522
|
// it means the meeting will start in 5-6 min. In that case, we want to fetchMeetingInfo
|
|
1487
1523
|
// between 5 and 2 min (random between 3 minutes) before the meeting starts
|
|
@@ -1503,56 +1539,56 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1503
1539
|
sendCAevents: !!(callStateForMetrics !== null && callStateForMetrics !== void 0 && callStateForMetrics.correlationId) // if client sends correlation id as argument of public create(), then it means that this meeting creation is part of a pre-join intent from user
|
|
1504
1540
|
};
|
|
1505
1541
|
if (!meetingInfo) {
|
|
1506
|
-
|
|
1542
|
+
_context4.next = 2;
|
|
1507
1543
|
break;
|
|
1508
1544
|
}
|
|
1509
1545
|
meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
|
|
1510
|
-
|
|
1546
|
+
_context4.next = 4;
|
|
1511
1547
|
break;
|
|
1512
|
-
case
|
|
1548
|
+
case 2:
|
|
1513
1549
|
if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL)) {
|
|
1514
|
-
|
|
1550
|
+
_context4.next = 4;
|
|
1515
1551
|
break;
|
|
1516
1552
|
}
|
|
1517
1553
|
if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
|
|
1518
|
-
|
|
1554
|
+
_context4.next = 3;
|
|
1519
1555
|
break;
|
|
1520
1556
|
}
|
|
1521
1557
|
meeting.fetchMeetingInfoTimeoutId = setTimeout(function () {
|
|
1522
1558
|
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
|
1523
1559
|
}, waitingTime);
|
|
1524
1560
|
meeting.parseMeetingInfo(undefined, destination);
|
|
1525
|
-
|
|
1561
|
+
_context4.next = 4;
|
|
1526
1562
|
break;
|
|
1527
|
-
case
|
|
1528
|
-
|
|
1563
|
+
case 3:
|
|
1564
|
+
_context4.next = 4;
|
|
1529
1565
|
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
|
1530
|
-
case
|
|
1531
|
-
|
|
1566
|
+
case 4:
|
|
1567
|
+
_context4.next = 8;
|
|
1532
1568
|
break;
|
|
1533
|
-
case
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
if (!(!(
|
|
1537
|
-
|
|
1569
|
+
case 5:
|
|
1570
|
+
_context4.prev = 5;
|
|
1571
|
+
_t2 = _context4["catch"](1);
|
|
1572
|
+
if (!(!(_t2 instanceof _captchaError.default) && !(_t2 instanceof _passwordError.default) && !(_t2 instanceof _permission.default) && !(_t2 instanceof _joinWebinarError.default) && !(_t2 instanceof _joinForbiddenError.default))) {
|
|
1573
|
+
_context4.next = 7;
|
|
1538
1574
|
break;
|
|
1539
1575
|
}
|
|
1540
1576
|
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
|
|
1541
1577
|
if (!failOnMissingMeetingInfo) {
|
|
1542
|
-
|
|
1578
|
+
_context4.next = 6;
|
|
1543
1579
|
break;
|
|
1544
1580
|
}
|
|
1545
1581
|
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
|
|
1546
1582
|
// @ts-ignore
|
|
1547
1583
|
this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
|
|
1548
1584
|
throw new _noMeetingInfo.default();
|
|
1549
|
-
case
|
|
1585
|
+
case 6:
|
|
1550
1586
|
// if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
|
|
1551
1587
|
_loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
|
|
1552
|
-
case
|
|
1553
|
-
_loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(
|
|
1554
|
-
case
|
|
1555
|
-
|
|
1588
|
+
case 7:
|
|
1589
|
+
_loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_t2, " fetching /meetingInfo for creation."));
|
|
1590
|
+
case 8:
|
|
1591
|
+
_context4.prev = 8;
|
|
1556
1592
|
// For type LOCUS_ID we need to parse the locus object to get the information
|
|
1557
1593
|
// about the caller and callee
|
|
1558
1594
|
// Meeting Added event will be created in `handleLocusEvent`
|
|
@@ -1572,16 +1608,16 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1572
1608
|
type: meetingAddedType
|
|
1573
1609
|
});
|
|
1574
1610
|
}
|
|
1575
|
-
return
|
|
1576
|
-
case
|
|
1577
|
-
return
|
|
1578
|
-
case
|
|
1611
|
+
return _context4.finish(8);
|
|
1612
|
+
case 9:
|
|
1613
|
+
return _context4.abrupt("return", meeting);
|
|
1614
|
+
case 10:
|
|
1579
1615
|
case "end":
|
|
1580
|
-
return
|
|
1616
|
+
return _context4.stop();
|
|
1581
1617
|
}
|
|
1582
|
-
},
|
|
1618
|
+
}, _callee4, this, [[1, 5, 8, 9]]);
|
|
1583
1619
|
}));
|
|
1584
|
-
function createMeeting(
|
|
1620
|
+
function createMeeting(_x4) {
|
|
1585
1621
|
return _createMeeting.apply(this, arguments);
|
|
1586
1622
|
}
|
|
1587
1623
|
return createMeeting;
|
|
@@ -1623,10 +1659,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1623
1659
|
}, {
|
|
1624
1660
|
key: "syncMeetings",
|
|
1625
1661
|
value: function syncMeetings() {
|
|
1626
|
-
var
|
|
1627
|
-
var
|
|
1628
|
-
|
|
1629
|
-
keepOnlyLocusMeetings =
|
|
1662
|
+
var _this11 = this;
|
|
1663
|
+
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
1664
|
+
_ref4$keepOnlyLocusMe = _ref4.keepOnlyLocusMeetings,
|
|
1665
|
+
keepOnlyLocusMeetings = _ref4$keepOnlyLocusMe === void 0 ? true : _ref4$keepOnlyLocusMe;
|
|
1630
1666
|
// @ts-ignore
|
|
1631
1667
|
if (this.webex.credentials.isUnverifiedGuest) {
|
|
1632
1668
|
_loggerProxy.default.logger.info('Meetings:index#syncMeetings --> skipping meeting sync as unverified guest');
|
|
@@ -1635,16 +1671,17 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1635
1671
|
return this.request.getActiveMeetings().then(function (locusArray) {
|
|
1636
1672
|
var activeLocusUrl = [];
|
|
1637
1673
|
if (locusArray !== null && locusArray !== void 0 && locusArray.loci && locusArray.loci.length > 0) {
|
|
1638
|
-
var lociToUpdate =
|
|
1674
|
+
var lociToUpdate = _this11.sortLocusArrayToUpdate(locusArray.loci);
|
|
1639
1675
|
lociToUpdate.forEach(function (locus) {
|
|
1640
1676
|
activeLocusUrl.push(locus.url);
|
|
1641
|
-
|
|
1677
|
+
_this11.handleLocusEvent({
|
|
1678
|
+
eventType: _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS,
|
|
1642
1679
|
locus: locus,
|
|
1643
1680
|
locusUrl: locus.url
|
|
1644
1681
|
});
|
|
1645
1682
|
});
|
|
1646
1683
|
}
|
|
1647
|
-
var meetingsCollection =
|
|
1684
|
+
var meetingsCollection = _this11.meetingCollection.getAll();
|
|
1648
1685
|
if ((0, _keys.default)(meetingsCollection).length > 0) {
|
|
1649
1686
|
// Sometimes the mercury events are lost after mercury reconnect
|
|
1650
1687
|
// Remove any Locus meetings that are not returned by Locus
|
|
@@ -1656,7 +1693,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1656
1693
|
if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
|
|
1657
1694
|
// destroy function also uploads logs
|
|
1658
1695
|
// @ts-ignore
|
|
1659
|
-
|
|
1696
|
+
_this11.destroy(meeting, _constants.MEETING_REMOVED_REASON.NO_MEETINGS_TO_SYNC);
|
|
1660
1697
|
}
|
|
1661
1698
|
}
|
|
1662
1699
|
}
|
|
@@ -1676,7 +1713,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1676
1713
|
}, {
|
|
1677
1714
|
key: "sortLocusArrayToUpdate",
|
|
1678
1715
|
value: function sortLocusArrayToUpdate(loci) {
|
|
1679
|
-
var
|
|
1716
|
+
var _this12 = this;
|
|
1680
1717
|
var mainLoci = loci.filter(function (locus) {
|
|
1681
1718
|
return !_util2.default.isBreakoutLocusDTO(locus);
|
|
1682
1719
|
});
|
|
@@ -1690,7 +1727,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1690
1727
|
var _mainLocus$controls, _mainLocus$controls$b, _breakoutLocus$contro, _breakoutLocus$contro2;
|
|
1691
1728
|
return ((_mainLocus$controls = mainLocus.controls) === null || _mainLocus$controls === void 0 ? void 0 : (_mainLocus$controls$b = _mainLocus$controls.breakout) === null || _mainLocus$controls$b === void 0 ? void 0 : _mainLocus$controls$b.url) === ((_breakoutLocus$contro = breakoutLocus.controls) === null || _breakoutLocus$contro === void 0 ? void 0 : (_breakoutLocus$contro2 = _breakoutLocus$contro.breakout) === null || _breakoutLocus$contro2 === void 0 ? void 0 : _breakoutLocus$contro2.url);
|
|
1692
1729
|
});
|
|
1693
|
-
var existCorrespondingMeeting =
|
|
1730
|
+
var existCorrespondingMeeting = _this12.getCorrespondingMeetingByLocus({
|
|
1731
|
+
eventType: _constants.LOCUSEVENT.SDK_NO_EVENT,
|
|
1694
1732
|
locus: breakoutLocus,
|
|
1695
1733
|
locusUrl: breakoutLocus.url
|
|
1696
1734
|
});
|
|
@@ -1698,7 +1736,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1698
1736
|
// if exists both main session and breakout session locus of the same non-exist meeting, handle main locus first,
|
|
1699
1737
|
// after meeting create with main locus, then handle the associate breakout locus.
|
|
1700
1738
|
// if only handle breakout locus, will miss some date
|
|
1701
|
-
|
|
1739
|
+
_this12.breakoutLocusForHandleLater.push(breakoutLocus);
|
|
1702
1740
|
} else {
|
|
1703
1741
|
lociToUpdate.push(breakoutLocus);
|
|
1704
1742
|
}
|
|
@@ -1731,6 +1769,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1731
1769
|
}
|
|
1732
1770
|
var associateBreakoutLocus = this.breakoutLocusForHandleLater[existIndex];
|
|
1733
1771
|
this.handleLocusEvent({
|
|
1772
|
+
eventType: _constants.LOCUSEVENT.SDK_NO_EVENT,
|
|
1734
1773
|
locus: associateBreakoutLocus,
|
|
1735
1774
|
locusUrl: associateBreakoutLocus.url
|
|
1736
1775
|
});
|
|
@@ -1760,6 +1799,5 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1760
1799
|
return this.meetingCollection.getActiveWebrtcMeeting();
|
|
1761
1800
|
}
|
|
1762
1801
|
}]);
|
|
1763
|
-
return Meetings;
|
|
1764
1802
|
}(_webexCore.WebexPlugin);
|
|
1765
1803
|
//# sourceMappingURL=index.js.map
|