@webex/plugin-meetings 2.60.1-next.9 → 2.60.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (539) hide show
  1. package/README.md +8 -58
  2. package/dist/common/browser-detection.js +3 -2
  3. package/dist/common/browser-detection.js.map +1 -1
  4. package/dist/common/collection.js +4 -3
  5. package/dist/common/collection.js.map +1 -1
  6. package/dist/common/config.js +2 -1
  7. package/dist/common/config.js.map +1 -1
  8. package/dist/common/errors/captcha-error.js +2 -1
  9. package/dist/common/errors/captcha-error.js.map +1 -1
  10. package/dist/common/errors/intent-to-join.js +2 -1
  11. package/dist/common/errors/intent-to-join.js.map +1 -1
  12. package/dist/common/errors/join-meeting.js +2 -1
  13. package/dist/common/errors/join-meeting.js.map +1 -1
  14. package/dist/common/errors/media.js +2 -1
  15. package/dist/common/errors/media.js.map +1 -1
  16. package/dist/common/errors/parameter.js +4 -3
  17. package/dist/common/errors/parameter.js.map +1 -1
  18. package/dist/common/errors/password-error.js +2 -1
  19. package/dist/common/errors/password-error.js.map +1 -1
  20. package/dist/common/errors/permission.js +2 -1
  21. package/dist/common/errors/permission.js.map +1 -1
  22. package/dist/common/errors/{reclaim-host-role-errors.js → reclaim-host-role-error.js} +11 -7
  23. package/dist/common/errors/reclaim-host-role-error.js.map +1 -0
  24. package/dist/common/errors/reconnection-in-progress.js +2 -1
  25. package/dist/common/errors/reconnection-in-progress.js.map +1 -1
  26. package/dist/common/errors/reconnection.js +2 -1
  27. package/dist/common/errors/reconnection.js.map +1 -1
  28. package/dist/common/errors/stats.js +2 -1
  29. package/dist/common/errors/stats.js.map +1 -1
  30. package/dist/common/errors/webex-errors.d.ts +8 -20
  31. package/dist/common/errors/webex-errors.js +28 -48
  32. package/dist/common/errors/webex-errors.js.map +1 -1
  33. package/dist/common/errors/webex-meetings-error.js +2 -1
  34. package/dist/common/errors/webex-meetings-error.js.map +1 -1
  35. package/dist/common/events/events-scope.js +2 -1
  36. package/dist/common/events/events-scope.js.map +1 -1
  37. package/dist/common/events/events.js +2 -1
  38. package/dist/common/events/events.js.map +1 -1
  39. package/dist/common/events/trigger-proxy.js +2 -1
  40. package/dist/common/events/trigger-proxy.js.map +1 -1
  41. package/dist/common/events/util.js +2 -1
  42. package/dist/common/events/util.js.map +1 -1
  43. package/dist/common/logs/logger-config.js +2 -1
  44. package/dist/common/logs/logger-config.js.map +1 -1
  45. package/dist/common/logs/logger-proxy.js +3 -2
  46. package/dist/common/logs/logger-proxy.js.map +1 -1
  47. package/dist/common/logs/request.d.ts +1 -3
  48. package/dist/common/logs/request.js +5 -8
  49. package/dist/common/logs/request.js.map +1 -1
  50. package/dist/common/queue.d.ts +7 -9
  51. package/dist/common/queue.js +9 -22
  52. package/dist/common/queue.js.map +1 -1
  53. package/dist/config.d.ts +7 -6
  54. package/dist/config.js +10 -8
  55. package/dist/config.js.map +1 -1
  56. package/dist/constants.d.ts +100 -234
  57. package/dist/constants.js +444 -433
  58. package/dist/constants.js.map +1 -1
  59. package/dist/controls-options-manager/constants.js +6 -3
  60. package/dist/controls-options-manager/constants.js.map +1 -1
  61. package/dist/controls-options-manager/enums.d.ts +1 -11
  62. package/dist/controls-options-manager/enums.js +6 -15
  63. package/dist/controls-options-manager/enums.js.map +1 -1
  64. package/dist/controls-options-manager/index.d.ts +1 -17
  65. package/dist/controls-options-manager/index.js +38 -127
  66. package/dist/controls-options-manager/index.js.map +1 -1
  67. package/dist/controls-options-manager/util.d.ts +7 -1
  68. package/dist/controls-options-manager/util.js +19 -309
  69. package/dist/controls-options-manager/util.js.map +1 -1
  70. package/dist/index.d.ts +3 -6
  71. package/dist/index.js +5 -121
  72. package/dist/index.js.map +1 -1
  73. package/dist/locus-info/controlsUtils.js +11 -100
  74. package/dist/locus-info/controlsUtils.js.map +1 -1
  75. package/dist/locus-info/embeddedAppsUtils.js +4 -3
  76. package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
  77. package/dist/locus-info/fullState.js +2 -1
  78. package/dist/locus-info/fullState.js.map +1 -1
  79. package/dist/locus-info/hostUtils.js +2 -1
  80. package/dist/locus-info/hostUtils.js.map +1 -1
  81. package/dist/locus-info/index.d.ts +4 -57
  82. package/dist/locus-info/index.js +84 -425
  83. package/dist/locus-info/index.js.map +1 -1
  84. package/dist/locus-info/infoUtils.js +5 -13
  85. package/dist/locus-info/infoUtils.js.map +1 -1
  86. package/dist/locus-info/mediaSharesUtils.js +3 -58
  87. package/dist/locus-info/mediaSharesUtils.js.map +1 -1
  88. package/dist/locus-info/parser.d.ts +6 -66
  89. package/dist/locus-info/parser.js +80 -253
  90. package/dist/locus-info/parser.js.map +1 -1
  91. package/dist/locus-info/selfUtils.js +13 -97
  92. package/dist/locus-info/selfUtils.js.map +1 -1
  93. package/dist/media/index.d.ts +0 -2
  94. package/dist/media/index.js +319 -107
  95. package/dist/media/index.js.map +1 -1
  96. package/dist/media/properties.d.ts +53 -38
  97. package/dist/media/properties.js +153 -96
  98. package/dist/media/properties.js.map +1 -1
  99. package/dist/media/util.js +22 -1
  100. package/dist/media/util.js.map +1 -1
  101. package/dist/mediaQualityMetrics/config.d.ts +230 -234
  102. package/dist/mediaQualityMetrics/config.js +498 -302
  103. package/dist/mediaQualityMetrics/config.js.map +1 -1
  104. package/dist/meeting/effectsState.d.ts +42 -0
  105. package/dist/meeting/effectsState.js +260 -0
  106. package/dist/meeting/effectsState.js.map +1 -0
  107. package/dist/meeting/in-meeting-actions.d.ts +0 -88
  108. package/dist/meeting/in-meeting-actions.js +3 -94
  109. package/dist/meeting/in-meeting-actions.js.map +1 -1
  110. package/dist/meeting/index.d.ts +520 -705
  111. package/dist/meeting/index.js +3083 -5041
  112. package/dist/meeting/index.js.map +1 -1
  113. package/dist/meeting/muteState.d.ts +25 -93
  114. package/dist/meeting/muteState.js +133 -224
  115. package/dist/meeting/muteState.js.map +1 -1
  116. package/dist/meeting/request.d.ts +47 -82
  117. package/dist/meeting/request.js +199 -304
  118. package/dist/meeting/request.js.map +1 -1
  119. package/dist/meeting/state.js +2 -1
  120. package/dist/meeting/state.js.map +1 -1
  121. package/dist/meeting/util.d.ts +1 -118
  122. package/dist/meeting/util.js +435 -676
  123. package/dist/meeting/util.js.map +1 -1
  124. package/dist/meeting-info/collection.js +4 -3
  125. package/dist/meeting-info/collection.js.map +1 -1
  126. package/dist/meeting-info/index.d.ts +1 -13
  127. package/dist/meeting-info/index.js +7 -74
  128. package/dist/meeting-info/index.js.map +1 -1
  129. package/dist/meeting-info/meeting-info-v2.d.ts +1 -31
  130. package/dist/meeting-info/meeting-info-v2.js +63 -200
  131. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  132. package/dist/meeting-info/request.js +2 -1
  133. package/dist/meeting-info/request.js.map +1 -1
  134. package/dist/meeting-info/util.js +3 -2
  135. package/dist/meeting-info/util.js.map +1 -1
  136. package/dist/meeting-info/utilv2.js +41 -39
  137. package/dist/meeting-info/utilv2.js.map +1 -1
  138. package/dist/meetings/collection.d.ts +0 -17
  139. package/dist/meetings/collection.js +4 -42
  140. package/dist/meetings/collection.js.map +1 -1
  141. package/dist/meetings/index.d.ts +20 -114
  142. package/dist/meetings/index.js +133 -540
  143. package/dist/meetings/index.js.map +1 -1
  144. package/dist/meetings/request.js +3 -4
  145. package/dist/meetings/request.js.map +1 -1
  146. package/dist/meetings/util.js +6 -107
  147. package/dist/meetings/util.js.map +1 -1
  148. package/dist/member/index.d.ts +1 -13
  149. package/dist/member/index.js +2 -45
  150. package/dist/member/index.js.map +1 -1
  151. package/dist/member/member.types.js +4 -3
  152. package/dist/member/member.types.js.map +1 -1
  153. package/dist/member/util.js +29 -120
  154. package/dist/member/util.js.map +1 -1
  155. package/dist/members/collection.d.ts +0 -5
  156. package/dist/members/collection.js +2 -11
  157. package/dist/members/collection.js.map +1 -1
  158. package/dist/members/index.d.ts +11 -56
  159. package/dist/members/index.js +47 -174
  160. package/dist/members/index.js.map +1 -1
  161. package/dist/members/request.d.ts +11 -67
  162. package/dist/members/request.js +54 -102
  163. package/dist/members/request.js.map +1 -1
  164. package/dist/members/types.js +4 -3
  165. package/dist/members/types.js.map +1 -1
  166. package/dist/members/util.d.ts +1 -214
  167. package/dist/members/util.js +284 -327
  168. package/dist/members/util.js.map +1 -1
  169. package/dist/metrics/config.d.ts +169 -0
  170. package/dist/metrics/config.js +289 -0
  171. package/dist/metrics/config.js.map +1 -0
  172. package/dist/metrics/constants.d.ts +6 -15
  173. package/dist/metrics/constants.js +9 -17
  174. package/dist/metrics/constants.js.map +1 -1
  175. package/dist/metrics/index.d.ts +111 -4
  176. package/dist/metrics/index.js +452 -4
  177. package/dist/metrics/index.js.map +1 -1
  178. package/dist/networkQualityMonitor/index.js +4 -5
  179. package/dist/networkQualityMonitor/index.js.map +1 -1
  180. package/dist/peer-connection-manager/index.d.ts +6 -0
  181. package/dist/peer-connection-manager/index.js +671 -0
  182. package/dist/peer-connection-manager/index.js.map +1 -0
  183. package/dist/peer-connection-manager/util.d.ts +6 -0
  184. package/dist/peer-connection-manager/util.js +110 -0
  185. package/dist/peer-connection-manager/util.js.map +1 -0
  186. package/dist/personal-meeting-room/index.js +3 -2
  187. package/dist/personal-meeting-room/index.js.map +1 -1
  188. package/dist/personal-meeting-room/request.js +3 -2
  189. package/dist/personal-meeting-room/request.js.map +1 -1
  190. package/dist/personal-meeting-room/util.js +2 -1
  191. package/dist/personal-meeting-room/util.js.map +1 -1
  192. package/dist/reachability/index.d.ts +95 -61
  193. package/dist/reachability/index.js +392 -304
  194. package/dist/reachability/index.js.map +1 -1
  195. package/dist/reachability/request.d.ts +3 -7
  196. package/dist/reachability/request.js +10 -18
  197. package/dist/reachability/request.js.map +1 -1
  198. package/dist/reactions/reactions.d.ts +2 -2
  199. package/dist/reactions/reactions.js +6 -4
  200. package/dist/reactions/reactions.js.map +1 -1
  201. package/dist/reactions/reactions.type.d.ts +3 -23
  202. package/dist/reactions/reactions.type.js +23 -21
  203. package/dist/reactions/reactions.type.js.map +1 -1
  204. package/dist/reconnection-manager/index.d.ts +8 -32
  205. package/dist/reconnection-manager/index.js +232 -285
  206. package/dist/reconnection-manager/index.js.map +1 -1
  207. package/dist/recording-controller/enums.js +5 -4
  208. package/dist/recording-controller/enums.js.map +1 -1
  209. package/dist/recording-controller/index.d.ts +1 -15
  210. package/dist/recording-controller/index.js +46 -57
  211. package/dist/recording-controller/index.js.map +1 -1
  212. package/dist/recording-controller/util.d.ts +4 -5
  213. package/dist/recording-controller/util.js +10 -10
  214. package/dist/recording-controller/util.js.map +1 -1
  215. package/dist/roap/collection.d.ts +10 -0
  216. package/dist/roap/collection.js +63 -0
  217. package/dist/roap/collection.js.map +1 -0
  218. package/dist/roap/handler.d.ts +47 -0
  219. package/dist/roap/handler.js +279 -0
  220. package/dist/roap/handler.js.map +1 -0
  221. package/dist/roap/index.d.ts +47 -9
  222. package/dist/roap/index.js +238 -100
  223. package/dist/roap/index.js.map +1 -1
  224. package/dist/roap/request.d.ts +12 -18
  225. package/dist/roap/request.js +180 -126
  226. package/dist/roap/request.js.map +1 -1
  227. package/dist/roap/state.d.ts +9 -0
  228. package/dist/roap/state.js +127 -0
  229. package/dist/roap/state.js.map +1 -0
  230. package/dist/roap/turnDiscovery.d.ts +16 -27
  231. package/dist/roap/turnDiscovery.js +105 -115
  232. package/dist/roap/turnDiscovery.js.map +1 -1
  233. package/dist/roap/util.d.ts +2 -0
  234. package/dist/roap/util.js +76 -0
  235. package/dist/roap/util.js.map +1 -0
  236. package/dist/statsAnalyzer/global.d.ts +83 -1
  237. package/dist/statsAnalyzer/global.js +85 -2
  238. package/dist/statsAnalyzer/global.js.map +1 -1
  239. package/dist/statsAnalyzer/index.d.ts +30 -50
  240. package/dist/statsAnalyzer/index.js +511 -436
  241. package/dist/statsAnalyzer/index.js.map +1 -1
  242. package/dist/statsAnalyzer/mqaUtil.d.ts +6 -8
  243. package/dist/statsAnalyzer/mqaUtil.js +90 -130
  244. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  245. package/dist/transcription/index.js +2 -1
  246. package/dist/transcription/index.js.map +1 -1
  247. package/package.json +26 -39
  248. package/src/common/errors/webex-errors.ts +12 -36
  249. package/src/common/logs/logger-proxy.ts +1 -1
  250. package/src/common/logs/request.ts +1 -5
  251. package/src/common/queue.ts +8 -22
  252. package/src/config.ts +7 -6
  253. package/src/constants.ts +100 -265
  254. package/src/controls-options-manager/enums.ts +0 -12
  255. package/src/controls-options-manager/index.ts +21 -116
  256. package/src/controls-options-manager/util.ts +14 -294
  257. package/src/index.js +15 -0
  258. package/src/locus-info/controlsUtils.ts +0 -110
  259. package/src/locus-info/index.ts +61 -450
  260. package/src/locus-info/infoUtils.ts +2 -14
  261. package/src/locus-info/mediaSharesUtils.ts +0 -64
  262. package/src/locus-info/parser.ts +47 -258
  263. package/src/locus-info/selfUtils.ts +2 -85
  264. package/src/media/index.ts +370 -153
  265. package/src/media/properties.ts +136 -106
  266. package/src/media/util.ts +21 -0
  267. package/src/mediaQualityMetrics/config.ts +377 -244
  268. package/src/meeting/effectsState.ts +209 -0
  269. package/src/meeting/in-meeting-actions.ts +0 -176
  270. package/src/meeting/index.ts +2581 -4306
  271. package/src/meeting/muteState.ts +138 -224
  272. package/src/meeting/request.ts +127 -214
  273. package/src/meeting/util.ts +423 -687
  274. package/src/meeting-info/index.ts +8 -81
  275. package/src/meeting-info/meeting-info-v2.ts +13 -163
  276. package/src/meeting-info/util.ts +1 -1
  277. package/src/meeting-info/utilv2.ts +28 -28
  278. package/src/meetings/collection.ts +0 -33
  279. package/src/meetings/index.ts +136 -531
  280. package/src/meetings/request.ts +0 -2
  281. package/src/meetings/util.ts +5 -116
  282. package/src/member/index.ts +1 -43
  283. package/src/member/util.ts +28 -125
  284. package/src/members/collection.ts +0 -8
  285. package/src/members/index.ts +52 -187
  286. package/src/members/request.ts +27 -87
  287. package/src/members/util.ts +291 -332
  288. package/src/metrics/config.ts +485 -0
  289. package/src/metrics/constants.ts +6 -15
  290. package/src/metrics/index.ts +471 -1
  291. package/src/networkQualityMonitor/index.ts +6 -6
  292. package/src/peer-connection-manager/index.ts +847 -0
  293. package/src/peer-connection-manager/util.ts +119 -0
  294. package/src/reachability/index.ts +347 -246
  295. package/src/reachability/request.ts +8 -17
  296. package/src/reactions/reactions.ts +4 -4
  297. package/src/reactions/reactions.type.ts +4 -30
  298. package/src/reconnection-manager/index.ts +156 -168
  299. package/src/recording-controller/index.ts +3 -20
  300. package/src/recording-controller/util.ts +9 -26
  301. package/src/roap/collection.ts +62 -0
  302. package/src/roap/handler.ts +294 -0
  303. package/src/roap/index.ts +241 -96
  304. package/src/roap/request.ts +148 -74
  305. package/src/roap/state.ts +156 -0
  306. package/src/roap/turnDiscovery.ts +56 -62
  307. package/src/roap/util.ts +100 -0
  308. package/src/statsAnalyzer/global.ts +84 -1
  309. package/src/statsAnalyzer/index.ts +645 -479
  310. package/src/statsAnalyzer/mqaUtil.ts +126 -128
  311. package/test/integration/spec/journey.js +264 -320
  312. package/test/integration/spec/space-meeting.js +4 -77
  313. package/test/unit/spec/common/queue.js +2 -31
  314. package/test/unit/spec/controls-options-manager/index.js +0 -163
  315. package/test/unit/spec/controls-options-manager/util.js +60 -576
  316. package/test/unit/spec/fixture/locus.js +0 -1
  317. package/test/unit/spec/locus-info/controlsUtils.js +30 -323
  318. package/test/unit/spec/locus-info/index.js +15 -1437
  319. package/test/unit/spec/locus-info/infoUtils.js +16 -54
  320. package/test/unit/spec/locus-info/lib/SeqCmp.json +0 -16
  321. package/test/unit/spec/locus-info/lib/selfConstant.js +0 -48
  322. package/test/unit/spec/locus-info/parser.js +35 -116
  323. package/test/unit/spec/locus-info/selfUtils.js +0 -275
  324. package/test/unit/spec/media/properties.ts +84 -75
  325. package/test/unit/spec/meeting/effectsState.js +281 -0
  326. package/test/unit/spec/meeting/in-meeting-actions.ts +0 -86
  327. package/test/unit/spec/meeting/index.js +2313 -8384
  328. package/test/unit/spec/meeting/muteState.js +213 -409
  329. package/test/unit/spec/meeting/request.js +43 -523
  330. package/test/unit/spec/meeting/utils.js +24 -834
  331. package/test/unit/spec/meeting-info/meetinginfov2.js +5 -527
  332. package/test/unit/spec/meeting-info/utilv2.js +0 -21
  333. package/test/unit/spec/meetings/collection.js +0 -26
  334. package/test/unit/spec/meetings/index.js +232 -1445
  335. package/test/unit/spec/meetings/utils.js +2 -202
  336. package/test/unit/spec/member/index.js +9 -32
  337. package/test/unit/spec/member/util.js +61 -499
  338. package/test/unit/spec/members/index.js +5 -394
  339. package/test/unit/spec/members/request.js +27 -206
  340. package/test/unit/spec/members/utils.js +38 -173
  341. package/test/unit/spec/metrics/index.js +50 -1
  342. package/test/unit/spec/networkQualityMonitor/index.js +4 -4
  343. package/test/unit/spec/peerconnection-manager/index.js +218 -0
  344. package/test/unit/spec/peerconnection-manager/utils.js +49 -0
  345. package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +388 -0
  346. package/test/unit/spec/reachability/index.ts +24 -532
  347. package/test/unit/spec/reconnection-manager/index.js +24 -163
  348. package/test/unit/spec/recording-controller/index.js +218 -293
  349. package/test/unit/spec/recording-controller/util.js +96 -223
  350. package/test/unit/spec/roap/index.ts +77 -187
  351. package/test/unit/spec/roap/turnDiscovery.ts +48 -86
  352. package/test/unit/spec/roap/util.js +30 -0
  353. package/test/unit/spec/stats-analyzer/index.js +165 -644
  354. package/test/utils/testUtils.js +45 -0
  355. package/test/utils/webex-config.js +0 -4
  356. package/test/utils/webex-test-users.js +3 -7
  357. package/dist/annotation/annotation.types.d.ts +0 -42
  358. package/dist/annotation/annotation.types.js +0 -7
  359. package/dist/annotation/annotation.types.js.map +0 -1
  360. package/dist/annotation/constants.d.ts +0 -31
  361. package/dist/annotation/constants.js +0 -41
  362. package/dist/annotation/constants.js.map +0 -1
  363. package/dist/annotation/index.d.ts +0 -117
  364. package/dist/annotation/index.js +0 -357
  365. package/dist/annotation/index.js.map +0 -1
  366. package/dist/breakouts/breakout.d.ts +0 -8
  367. package/dist/breakouts/breakout.js +0 -215
  368. package/dist/breakouts/breakout.js.map +0 -1
  369. package/dist/breakouts/collection.d.ts +0 -5
  370. package/dist/breakouts/collection.js +0 -22
  371. package/dist/breakouts/collection.js.map +0 -1
  372. package/dist/breakouts/edit-lock-error.d.ts +0 -15
  373. package/dist/breakouts/edit-lock-error.js +0 -51
  374. package/dist/breakouts/edit-lock-error.js.map +0 -1
  375. package/dist/breakouts/events.d.ts +0 -8
  376. package/dist/breakouts/events.js +0 -44
  377. package/dist/breakouts/events.js.map +0 -1
  378. package/dist/breakouts/index.d.ts +0 -5
  379. package/dist/breakouts/index.js +0 -1047
  380. package/dist/breakouts/index.js.map +0 -1
  381. package/dist/breakouts/request.d.ts +0 -22
  382. package/dist/breakouts/request.js +0 -77
  383. package/dist/breakouts/request.js.map +0 -1
  384. package/dist/breakouts/utils.d.ts +0 -15
  385. package/dist/breakouts/utils.js +0 -64
  386. package/dist/breakouts/utils.js.map +0 -1
  387. package/dist/common/errors/no-meeting-info.d.ts +0 -14
  388. package/dist/common/errors/no-meeting-info.js +0 -50
  389. package/dist/common/errors/no-meeting-info.js.map +0 -1
  390. package/dist/common/errors/reclaim-host-role-errors.js.map +0 -1
  391. package/dist/controls-options-manager/types.d.ts +0 -43
  392. package/dist/controls-options-manager/types.js +0 -7
  393. package/dist/controls-options-manager/types.js.map +0 -1
  394. package/dist/interceptors/index.d.ts +0 -2
  395. package/dist/interceptors/index.js +0 -15
  396. package/dist/interceptors/index.js.map +0 -1
  397. package/dist/interceptors/locusRetry.d.ts +0 -27
  398. package/dist/interceptors/locusRetry.js +0 -94
  399. package/dist/interceptors/locusRetry.js.map +0 -1
  400. package/dist/interpretation/collection.d.ts +0 -5
  401. package/dist/interpretation/collection.js +0 -22
  402. package/dist/interpretation/collection.js.map +0 -1
  403. package/dist/interpretation/index.d.ts +0 -5
  404. package/dist/interpretation/index.js +0 -365
  405. package/dist/interpretation/index.js.map +0 -1
  406. package/dist/interpretation/siLanguage.d.ts +0 -5
  407. package/dist/interpretation/siLanguage.js +0 -24
  408. package/dist/interpretation/siLanguage.js.map +0 -1
  409. package/dist/meeting/locusMediaRequest.d.ts +0 -74
  410. package/dist/meeting/locusMediaRequest.js +0 -291
  411. package/dist/meeting/locusMediaRequest.js.map +0 -1
  412. package/dist/meeting/request.type.d.ts +0 -11
  413. package/dist/meeting/request.type.js +0 -7
  414. package/dist/meeting/request.type.js.map +0 -1
  415. package/dist/meeting/voicea-meeting.d.ts +0 -20
  416. package/dist/meeting/voicea-meeting.js +0 -201
  417. package/dist/meeting/voicea-meeting.js.map +0 -1
  418. package/dist/meetings/meetings.types.d.ts +0 -4
  419. package/dist/meetings/meetings.types.js +0 -7
  420. package/dist/meetings/meetings.types.js.map +0 -1
  421. package/dist/member/types.d.ts +0 -32
  422. package/dist/member/types.js +0 -23
  423. package/dist/member/types.js.map +0 -1
  424. package/dist/multistream/mediaRequestManager.d.ts +0 -118
  425. package/dist/multistream/mediaRequestManager.js +0 -344
  426. package/dist/multistream/mediaRequestManager.js.map +0 -1
  427. package/dist/multistream/receiveSlot.d.ts +0 -68
  428. package/dist/multistream/receiveSlot.js +0 -200
  429. package/dist/multistream/receiveSlot.js.map +0 -1
  430. package/dist/multistream/receiveSlotManager.d.ts +0 -56
  431. package/dist/multistream/receiveSlotManager.js +0 -174
  432. package/dist/multistream/receiveSlotManager.js.map +0 -1
  433. package/dist/multistream/remoteMedia.d.ts +0 -72
  434. package/dist/multistream/remoteMedia.js +0 -268
  435. package/dist/multistream/remoteMedia.js.map +0 -1
  436. package/dist/multistream/remoteMediaGroup.d.ts +0 -47
  437. package/dist/multistream/remoteMediaGroup.js +0 -267
  438. package/dist/multistream/remoteMediaGroup.js.map +0 -1
  439. package/dist/multistream/remoteMediaManager.d.ts +0 -285
  440. package/dist/multistream/remoteMediaManager.js +0 -1211
  441. package/dist/multistream/remoteMediaManager.js.map +0 -1
  442. package/dist/multistream/sendSlotManager.d.ts +0 -61
  443. package/dist/multistream/sendSlotManager.js +0 -236
  444. package/dist/multistream/sendSlotManager.js.map +0 -1
  445. package/dist/reachability/clusterReachability.d.ts +0 -109
  446. package/dist/reachability/clusterReachability.js +0 -357
  447. package/dist/reachability/clusterReachability.js.map +0 -1
  448. package/dist/reachability/util.d.ts +0 -8
  449. package/dist/reachability/util.js +0 -29
  450. package/dist/reachability/util.js.map +0 -1
  451. package/dist/reactions/constants.d.ts +0 -3
  452. package/dist/reactions/constants.js +0 -12
  453. package/dist/reactions/constants.js.map +0 -1
  454. package/dist/rtcMetrics/constants.d.ts +0 -4
  455. package/dist/rtcMetrics/constants.js +0 -11
  456. package/dist/rtcMetrics/constants.js.map +0 -1
  457. package/dist/rtcMetrics/index.d.ts +0 -54
  458. package/dist/rtcMetrics/index.js +0 -140
  459. package/dist/rtcMetrics/index.js.map +0 -1
  460. package/dist/webinar/collection.d.ts +0 -16
  461. package/dist/webinar/collection.js +0 -43
  462. package/dist/webinar/collection.js.map +0 -1
  463. package/dist/webinar/index.d.ts +0 -5
  464. package/dist/webinar/index.js +0 -68
  465. package/dist/webinar/index.js.map +0 -1
  466. package/src/annotation/annotation.types.ts +0 -50
  467. package/src/annotation/constants.ts +0 -36
  468. package/src/annotation/index.ts +0 -328
  469. package/src/breakouts/README.md +0 -220
  470. package/src/breakouts/breakout.ts +0 -188
  471. package/src/breakouts/collection.ts +0 -19
  472. package/src/breakouts/edit-lock-error.ts +0 -25
  473. package/src/breakouts/events.ts +0 -56
  474. package/src/breakouts/index.ts +0 -925
  475. package/src/breakouts/request.ts +0 -55
  476. package/src/breakouts/utils.ts +0 -57
  477. package/src/common/errors/no-meeting-info.ts +0 -24
  478. package/src/controls-options-manager/types.ts +0 -59
  479. package/src/index.ts +0 -44
  480. package/src/interceptors/index.ts +0 -3
  481. package/src/interceptors/locusRetry.ts +0 -67
  482. package/src/interpretation/README.md +0 -60
  483. package/src/interpretation/collection.ts +0 -19
  484. package/src/interpretation/index.ts +0 -332
  485. package/src/interpretation/siLanguage.ts +0 -18
  486. package/src/meeting/locusMediaRequest.ts +0 -313
  487. package/src/meeting/request.type.ts +0 -13
  488. package/src/meeting/voicea-meeting.ts +0 -161
  489. package/src/meetings/meetings.types.ts +0 -12
  490. package/src/member/types.ts +0 -38
  491. package/src/multistream/mediaRequestManager.ts +0 -440
  492. package/src/multistream/receiveSlot.ts +0 -184
  493. package/src/multistream/receiveSlotManager.ts +0 -166
  494. package/src/multistream/remoteMedia.ts +0 -254
  495. package/src/multistream/remoteMediaGroup.ts +0 -284
  496. package/src/multistream/remoteMediaManager.ts +0 -1145
  497. package/src/multistream/sendSlotManager.ts +0 -170
  498. package/src/reachability/clusterReachability.ts +0 -320
  499. package/src/reachability/util.ts +0 -24
  500. package/src/reactions/constants.ts +0 -4
  501. package/src/rtcMetrics/constants.ts +0 -3
  502. package/src/rtcMetrics/index.ts +0 -124
  503. package/src/webinar/collection.ts +0 -31
  504. package/src/webinar/index.ts +0 -62
  505. package/test/integration/spec/converged-space-meetings.js +0 -233
  506. package/test/unit/spec/annotation/index.ts +0 -418
  507. package/test/unit/spec/breakouts/breakout.ts +0 -237
  508. package/test/unit/spec/breakouts/collection.ts +0 -15
  509. package/test/unit/spec/breakouts/edit-lock-error.ts +0 -30
  510. package/test/unit/spec/breakouts/events.ts +0 -89
  511. package/test/unit/spec/breakouts/index.ts +0 -1790
  512. package/test/unit/spec/breakouts/request.ts +0 -104
  513. package/test/unit/spec/breakouts/utils.js +0 -72
  514. package/test/unit/spec/interceptors/locusRetry.ts +0 -131
  515. package/test/unit/spec/interpretation/collection.ts +0 -15
  516. package/test/unit/spec/interpretation/index.ts +0 -589
  517. package/test/unit/spec/interpretation/siLanguage.ts +0 -28
  518. package/test/unit/spec/locus-info/mediaSharesUtils.ts +0 -32
  519. package/test/unit/spec/media/index.ts +0 -290
  520. package/test/unit/spec/meeting/locusMediaRequest.ts +0 -442
  521. package/test/unit/spec/meeting-info/index.js +0 -300
  522. package/test/unit/spec/multistream/mediaRequestManager.ts +0 -1418
  523. package/test/unit/spec/multistream/receiveSlot.ts +0 -163
  524. package/test/unit/spec/multistream/receiveSlotManager.ts +0 -203
  525. package/test/unit/spec/multistream/remoteMedia.ts +0 -255
  526. package/test/unit/spec/multistream/remoteMediaGroup.ts +0 -662
  527. package/test/unit/spec/multistream/remoteMediaManager.ts +0 -1924
  528. package/test/unit/spec/multistream/sendSlotManager.ts +0 -242
  529. package/test/unit/spec/reachability/clusterReachability.ts +0 -279
  530. package/test/unit/spec/reachability/request.js +0 -68
  531. package/test/unit/spec/reachability/util.ts +0 -40
  532. package/test/unit/spec/roap/request.ts +0 -255
  533. package/test/unit/spec/rtcMetrics/index.ts +0 -93
  534. package/test/unit/spec/webinar/collection.ts +0 -13
  535. package/test/unit/spec/webinar/index.ts +0 -60
  536. package/test/utils/constants.js +0 -9
  537. package/test/utils/integrationTestUtils.js +0 -46
  538. /package/dist/common/errors/{reclaim-host-role-errors.d.ts → reclaim-host-role-error.d.ts} +0 -0
  539. /package/src/common/errors/{reclaim-host-role-errors.ts → reclaim-host-role-error.ts} +0 -0
@@ -1,43 +1,32 @@
1
1
  "use strict";
2
2
 
3
- var _typeof = require("@babel/runtime-corejs2/helpers/typeof");
4
3
  var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
5
- var _Object$keys2 = require("@babel/runtime-corejs2/core-js/object/keys");
6
- var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
7
- var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
8
- var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
9
- var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
10
4
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
11
- var _WeakMap = require("@babel/runtime-corejs2/core-js/weak-map");
12
5
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
13
6
  _Object$defineProperty(exports, "__esModule", {
14
7
  value: true
15
8
  });
16
9
  exports.default = void 0;
10
+ var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
17
11
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
18
12
  var _now = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/date/now"));
19
13
  var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
20
14
  var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
21
- var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
22
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/toConsumableArray"));
23
15
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
16
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
17
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
24
18
  var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
25
19
  var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
26
20
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
27
21
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
28
22
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
29
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
30
- var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
31
23
  require("@webex/internal-plugin-mercury");
32
- require("@webex/internal-plugin-conversation");
33
- require("@webex/internal-plugin-metrics");
34
24
  var _webexCore = require("@webex/webex-core");
35
- var _internalMediaCore = require("@webex/internal-media-core");
36
- var mediaHelpersModule = _interopRequireWildcard(require("@webex/media-helpers"));
37
25
  require("webrtc-adapter");
38
26
  var _metrics = _interopRequireDefault(require("../metrics"));
27
+ var _config = require("../metrics/config");
39
28
  var _loggerConfig = _interopRequireDefault(require("../common/logs/logger-config"));
40
- var _config = _interopRequireDefault(require("../common/config"));
29
+ var _config2 = _interopRequireDefault(require("../common/config"));
41
30
  var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
42
31
  var _request = _interopRequireDefault(require("../common/logs/request"));
43
32
  var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
@@ -55,59 +44,8 @@ var _passwordError = _interopRequireDefault(require("../common/errors/password-e
55
44
  var _captchaError = _interopRequireDefault(require("../common/errors/captcha-error"));
56
45
  var _collection = _interopRequireDefault(require("./collection"));
57
46
  var _util2 = _interopRequireDefault(require("./util"));
58
- var _permission = _interopRequireDefault(require("../common/errors/permission"));
59
- var _webexErrors = require("../common/errors/webex-errors");
60
- var _noMeetingInfo = _interopRequireDefault(require("../common/errors/no-meeting-info"));
61
- function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
62
- 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; }
63
- 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; }
64
- 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; }
65
47
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
66
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /* eslint no-shadow: ["error", { "allow": ["eventType"] }] */ // @ts-ignore
67
- var mediaLogger;
68
- var MediaLogger = /*#__PURE__*/function () {
69
- function MediaLogger() {
70
- (0, _classCallCheck2.default)(this, MediaLogger);
71
- }
72
- (0, _createClass2.default)(MediaLogger, [{
73
- key: "info",
74
- value: function info() {
75
- var _LoggerProxy$logger;
76
- (_LoggerProxy$logger = _loggerProxy.default.logger).info.apply(_LoggerProxy$logger, arguments);
77
- }
78
- }, {
79
- key: "log",
80
- value: function log() {
81
- var _LoggerProxy$logger2;
82
- (_LoggerProxy$logger2 = _loggerProxy.default.logger).log.apply(_LoggerProxy$logger2, arguments);
83
- }
84
- }, {
85
- key: "error",
86
- value: function error() {
87
- var _LoggerProxy$logger3;
88
- (_LoggerProxy$logger3 = _loggerProxy.default.logger).error.apply(_LoggerProxy$logger3, arguments);
89
- }
90
- }, {
91
- key: "warn",
92
- value: function warn() {
93
- var _LoggerProxy$logger4;
94
- (_LoggerProxy$logger4 = _loggerProxy.default.logger).warn.apply(_LoggerProxy$logger4, arguments);
95
- }
96
- }, {
97
- key: "trace",
98
- value: function trace() {
99
- var _LoggerProxy$logger5;
100
- (_LoggerProxy$logger5 = _loggerProxy.default.logger).trace.apply(_LoggerProxy$logger5, arguments);
101
- }
102
- }, {
103
- key: "debug",
104
- value: function debug() {
105
- var _LoggerProxy$logger6;
106
- (_LoggerProxy$logger6 = _loggerProxy.default.logger).debug.apply(_LoggerProxy$logger6, arguments);
107
- }
108
- }]);
109
- return MediaLogger;
110
- }();
48
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
111
49
  /**
112
50
  * Meetings Ready Event
113
51
  * Emitted when the meetings instance on webex is ready
@@ -155,7 +93,7 @@ var MediaLogger = /*#__PURE__*/function () {
155
93
  * Maintain a cache of meetings and sync with services.
156
94
  * @class
157
95
  */
158
- var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
96
+ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
159
97
  (0, _inherits2.default)(Meetings, _WebexPlugin);
160
98
  var _super = _createSuper(Meetings);
161
99
  /**
@@ -173,14 +111,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
173
111
  _this = _super.call.apply(_super, [this].concat(args));
174
112
 
175
113
  /**
176
- * The webrtc-core media helpers. This is a temporary solution required for the SDK sample app
177
- * to be able to call media helper functions.
178
- *
114
+ * The Meetings request to interact with server
179
115
  * @instance
180
116
  * @type {Object}
181
117
  * @private
182
118
  * @memberof Meetings
183
119
  */
120
+ // @ts-ignore
184
121
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "loggerRequest", void 0);
185
122
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "media", void 0);
186
123
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingCollection", void 0);
@@ -191,77 +128,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
191
128
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "request", void 0);
192
129
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "geoHintInfo", void 0);
193
130
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfo", void 0);
194
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaHelpers", void 0);
195
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "breakoutLocusForHandleLater", void 0);
196
131
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "namespace", _constants.MEETINGS);
197
- /**
198
- * Creates a noise reduction effect
199
- *
200
- * @param {INoiseReductionEffect} options optional custom effect options
201
- * @returns {Promise<effect>} noise reduction effect.
202
- * @public
203
- * @memberof Meetings
204
- */
205
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createNoiseReductionEffect", /*#__PURE__*/function () {
206
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(options) {
207
- var authToken;
208
- return _regenerator.default.wrap(function _callee$(_context) {
209
- while (1) switch (_context.prev = _context.next) {
210
- case 0:
211
- // @ts-ignore
212
- authToken = _this.webex.credentials.supertoken.access_token;
213
- return _context.abrupt("return", new mediaHelpersModule.NoiseReductionEffect(_objectSpread({
214
- authToken: authToken
215
- }, options)));
216
- case 2:
217
- case "end":
218
- return _context.stop();
219
- }
220
- }, _callee);
221
- }));
222
- return function (_x) {
223
- return _ref.apply(this, arguments);
224
- };
225
- }());
226
- /**
227
- * Creates a virtual background effect
228
- *
229
- * @param {IVirtualBackgroundEffect} options optional custom effect options
230
- * @returns {Promise<effect>} virtual background effect.
231
- * @public
232
- * @memberof Meetings
233
- */
234
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createVirtualBackgroundEffect", /*#__PURE__*/function () {
235
- var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
236
- var authToken;
237
- return _regenerator.default.wrap(function _callee2$(_context2) {
238
- while (1) switch (_context2.prev = _context2.next) {
239
- case 0:
240
- // @ts-ignore
241
- authToken = _this.webex.credentials.supertoken.access_token;
242
- return _context2.abrupt("return", new mediaHelpersModule.VirtualBackgroundEffect(_objectSpread({
243
- authToken: authToken
244
- }, options)));
245
- case 2:
246
- case "end":
247
- return _context2.stop();
248
- }
249
- }, _callee2);
250
- }));
251
- return function (_x2) {
252
- return _ref2.apply(this, arguments);
253
- };
254
- }());
255
- _this.mediaHelpers = mediaHelpersModule;
256
-
257
- /**
258
- * The Meetings request to interact with server
259
- * @instance
260
- * @type {Object}
261
- * @private
262
- * @memberof Meetings
263
- */
264
- // @ts-ignore
265
132
  _this.request = new _request2.default({}, {
266
133
  parent: _this.webex
267
134
  });
@@ -285,17 +152,15 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
285
152
  * @memberof Meetings
286
153
  */
287
154
  _this.personalMeetingRoom = null;
288
-
289
155
  /**
290
- * The Reachability object to interact with server
156
+ * The Reachability object to interact with server, starts as null until {@link Meeting#setReachability} is called
291
157
  * starts as null
292
158
  * @instance
293
159
  * @type {Object}
294
160
  * @private
295
161
  * @memberof Meetings
296
162
  */
297
- // @ts-ignore
298
- _this.reachability = new _reachability.default(_this.webex);
163
+ _this.reachability = null;
299
164
 
300
165
  /**
301
166
  * If the meetings plugin has been registered and listening via {@link Meetings#register}
@@ -324,152 +189,50 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
324
189
  * @memberof Meetings
325
190
  */
326
191
  _this.media = {
327
- getUserMedia: _media.default.getUserMedia
192
+ getUserMedia: _media.default.getUserMedia,
193
+ getSupportedDevice: _media.default.getSupportedDevice
328
194
  };
329
195
  _this.onReady();
330
196
  return _this;
331
197
  }
332
198
 
333
199
  /**
334
- * check whether you need to handle this main session's locus data or not
335
- * @param {Object} meeting current meeting data
336
- * @param {Object} newLocus new locus data
337
- * @returns {boolean}
200
+ * handle locus events and takes meeting actions with them as they come in
201
+ * @param {Object} data a locus event
202
+ * @param {String} data.locusUrl
203
+ * @param {Object} data.locus
204
+ * @param {Boolean} useRandomDelayForInfo whether a random delay should be added to fetching meeting info
205
+ * @param {String} data.eventType
206
+ * @returns {undefined}
338
207
  * @private
339
208
  * @memberof Meetings
340
209
  */
341
210
  (0, _createClass2.default)(Meetings, [{
342
- key: "isNeedHandleMainLocus",
343
- value: function isNeedHandleMainLocus(meeting, newLocus) {
344
- var _newLocus$controls, _newLocus$controls$br, _newLocus$self, _newLocus$self2, _newLocus$self3, _breakoutLocus$joined, _newLocus$self4;
345
- var breakoutUrl = (_newLocus$controls = newLocus.controls) === null || _newLocus$controls === void 0 ? void 0 : (_newLocus$controls$br = _newLocus$controls.breakout) === null || _newLocus$controls$br === void 0 ? void 0 : _newLocus$controls$br.url;
346
- var breakoutLocus = this.meetingCollection.getActiveBreakoutLocus(breakoutUrl);
347
- var isSelfJoined = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self = newLocus.self) === null || _newLocus$self === void 0 ? void 0 : _newLocus$self.state) === _constants._JOINED_;
348
- var isSelfMoved = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self2 = newLocus.self) === null || _newLocus$self2 === void 0 ? void 0 : _newLocus$self2.state) === _constants._LEFT_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self3 = newLocus.self) === null || _newLocus$self3 === void 0 ? void 0 : _newLocus$self3.reason) === _constants._MOVED_;
349
- // @ts-ignore
350
- var deviceFromNewLocus = _util2.default.getThisDevice(newLocus, this.webex.internal.device.url);
351
- var isResourceMovedOnThisDevice = (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.state) === _constants._LEFT_ && (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.reason) === _constants._MOVED_;
352
- var isNewLocusJoinThisDevice = _util2.default.joinedOnThisDevice(meeting, newLocus,
353
- // @ts-ignore
354
- this.webex.internal.device.url);
355
- var isBreakoutLocusJoinThisDevice = (breakoutLocus === null || breakoutLocus === void 0 ? void 0 : (_breakoutLocus$joined = breakoutLocus.joinedWith) === null || _breakoutLocus$joined === void 0 ? void 0 : _breakoutLocus$joined.correlationId) && breakoutLocus.joinedWith.correlationId === (meeting === null || meeting === void 0 ? void 0 : meeting.correlationId);
356
- if (isSelfJoined && isNewLocusJoinThisDevice) {
357
- _loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> self this device shown as JOINED in the main session');
358
- if (breakoutLocus !== null && breakoutLocus !== void 0 && breakoutLocus.joinedWith && deviceFromNewLocus) {
359
- var _breakoutLocus$joined2, _deviceFromNewLocus$r;
360
- var breakoutReplaceAt = ((_breakoutLocus$joined2 = breakoutLocus.joinedWith.replaces) === null || _breakoutLocus$joined2 === void 0 ? void 0 : _breakoutLocus$joined2.length) > 0 ? breakoutLocus.joinedWith.replaces[0].replaceAt : '';
361
- var newLocusReplaceAt = ((_deviceFromNewLocus$r = deviceFromNewLocus.replaces) === null || _deviceFromNewLocus$r === void 0 ? void 0 : _deviceFromNewLocus$r.length) > 0 ? deviceFromNewLocus.replaces[0].replaceAt : '';
362
- if (breakoutReplaceAt && newLocusReplaceAt && breakoutReplaceAt > newLocusReplaceAt) {
363
- _loggerProxy.default.logger.log("Meetings:index#isNeedHandleMainLocus --> this is expired main joined status locus_dto replacedAt ".concat(newLocusReplaceAt, " bo replacedAt ").concat(breakoutReplaceAt));
364
- return false;
365
- }
366
- }
367
- return true;
368
- }
369
- if (isBreakoutLocusJoinThisDevice) {
370
- _loggerProxy.default.logger.log("Meetings:index#isNeedHandleMainLocus --> there is active breakout session and joined on this device, and don't need to handle main session: ".concat(breakoutUrl));
371
- return false;
372
- }
373
- if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$self4 = newLocus.self) !== null && _newLocus$self4 !== void 0 && _newLocus$self4.removed || isResourceMovedOnThisDevice)) {
374
- _loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> self moved main locus with self removed status or with device resource moved, not need to handle');
375
- return false;
376
- }
377
- if (isSelfJoined && isResourceMovedOnThisDevice) {
378
- _loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> self device left&moved in main locus with self joined status, not need to handle');
379
- return false;
380
- }
381
- _loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> this is a normal main session locusDTO update case');
382
- return true;
383
- }
384
-
385
- /**
386
- * check whether you need to handle this locus data or not
387
- * @param {Object} meeting old locus data
388
- * @param {Object} newLocus new locus data
389
- * @returns {boolean}
390
- * @private
391
- * @memberof Meetings
392
- */
393
- }, {
394
- key: "isNeedHandleLocusDTO",
395
- value: function isNeedHandleLocusDTO(meeting, newLocus) {
396
- if (newLocus) {
397
- var _newLocus$self5, _newLocus$self6;
398
- var isNewLocusAsBreakout = _util2.default.isBreakoutLocusDTO(newLocus);
399
- var isSelfMoved = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self5 = newLocus.self) === null || _newLocus$self5 === void 0 ? void 0 : _newLocus$self5.state) === _constants._LEFT_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self6 = newLocus.self) === null || _newLocus$self6 === void 0 ? void 0 : _newLocus$self6.reason) === _constants._MOVED_;
400
- if (!meeting) {
401
- if (isNewLocusAsBreakout) {
402
- var _newLocus$fullState, _newLocus$self7;
403
- _loggerProxy.default.logger.log("Meetings:index#isNeedHandleLocusDTO --> the first breakout session locusDTO active status: ".concat((_newLocus$fullState = newLocus.fullState) === null || _newLocus$fullState === void 0 ? void 0 : _newLocus$fullState.active));
404
- return ((_newLocus$self7 = newLocus.self) === null || _newLocus$self7 === void 0 ? void 0 : _newLocus$self7.state) === _constants._JOINED_;
405
- }
406
- return this.isNeedHandleMainLocus(meeting, newLocus);
407
- }
408
- if (!isNewLocusAsBreakout) {
409
- return this.isNeedHandleMainLocus(meeting, newLocus);
410
- }
411
- return !isSelfMoved;
412
- }
413
- return true;
414
- }
211
+ key: "handleLocusEvent",
212
+ value: function handleLocusEvent(data) {
213
+ var _data$locus$info,
214
+ _data$locus,
215
+ _data$locus$replaces,
216
+ _this2 = this;
217
+ var useRandomDelayForInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
218
+ var meeting = null;
415
219
 
416
- /**
417
- * get corresponding meeting object by locus data
418
- * @param {Object} data a locus event
419
- * @param {String} data.locusUrl
420
- * @param {Object} data.locus
421
- * @returns {Object}
422
- * @private
423
- * @memberof Meetings
424
- */
425
- }, {
426
- key: "getCorrespondingMeetingByLocus",
427
- value: function getCorrespondingMeetingByLocus(data) {
428
- var _data$locus$info, _data$locus, _data$locus$info2;
429
220
  // getting meeting by correlationId. This will happen for the new event
430
221
  // Either the locus
431
222
  // TODO : Add check for the callBack Address
432
- return this.meetingCollection.getByKey(_constants.LOCUS_URL, data.locusUrl) ||
223
+ meeting = this.meetingCollection.getByKey(_constants.LOCUS_URL, data.locusUrl) ||
433
224
  // @ts-ignore
434
225
  this.meetingCollection.getByKey(_constants.CORRELATION_ID,
435
226
  // @ts-ignore
436
- _util2.default.checkForCorrelationId(this.webex.internal.device.url, data.locus)) || this.meetingCollection.getByKey(_constants.SIP_URI, data.locus.self && data.locus.self.callbackInfo && data.locus.self.callbackInfo.callbackAddress) || ((_data$locus$info = data.locus.info) !== null && _data$locus$info !== void 0 && _data$locus$info.isUnifiedSpaceMeeting ? undefined : this.meetingCollection.getByKey(_constants.CONVERSATION_URL, data.locus.conversationUrl)) || this.meetingCollection.getByKey(_constants.MEETINGNUMBER, (_data$locus = data.locus) === null || _data$locus === void 0 ? void 0 : (_data$locus$info2 = _data$locus.info) === null || _data$locus$info2 === void 0 ? void 0 : _data$locus$info2.webExMeetingId);
437
- }
438
-
439
- /**
440
- * handle locus events and takes meeting actions with them as they come in
441
- * @param {Object} data a locus event
442
- * @param {String} data.locusUrl
443
- * @param {Object} data.locus
444
- * @param {Boolean} useRandomDelayForInfo whether a random delay should be added to fetching meeting info
445
- * @param {String} data.eventType
446
- * @returns {undefined}
447
- * @private
448
- * @memberof Meetings
449
- */
450
- }, {
451
- key: "handleLocusEvent",
452
- value: function handleLocusEvent(data) {
453
- var _data$locus2,
454
- _data$locus2$replaces,
455
- _this2 = this;
456
- var useRandomDelayForInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
457
- var meeting = this.getCorrespondingMeetingByLocus(data);
227
+ _util2.default.checkForCorrelationId(this.webex.internal.device.url, data.locus)) || this.meetingCollection.getByKey(_constants.SIP_URI, data.locus.self && data.locus.self.callbackInfo && data.locus.self.callbackInfo.callbackAddress) || ((_data$locus$info = data.locus.info) !== null && _data$locus$info !== void 0 && _data$locus$info.isUnifiedSpaceMeeting ? undefined : this.meetingCollection.getByKey(_constants.CONVERSATION_URL, data.locus.conversationUrl));
458
228
 
459
229
  // Special case when locus has got replaced, This only happend once if a replace locus exists
460
230
  // https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-changing-mid-call
461
231
 
462
- if (!meeting && ((_data$locus2 = data.locus) === null || _data$locus2 === void 0 ? void 0 : (_data$locus2$replaces = _data$locus2.replaces) === null || _data$locus2$replaces === void 0 ? void 0 : _data$locus2$replaces.length) > 0) {
232
+ if (!meeting && ((_data$locus = data.locus) === null || _data$locus === void 0 ? void 0 : (_data$locus$replaces = _data$locus.replaces) === null || _data$locus$replaces === void 0 ? void 0 : _data$locus$replaces.length) > 0) {
463
233
  // Always the last element in the replace is the active one
464
234
  meeting = this.meetingCollection.getByKey(_constants.LOCUS_URL, data.locus.replaces[data.locus.replaces.length - 1].locusUrl);
465
235
  }
466
- if (meeting && !_util2.default.isBreakoutLocusDTO(data.locus)) {
467
- meeting.locusInfo.updateMainSessionLocusCache(data.locus);
468
- }
469
- if (!this.isNeedHandleLocusDTO(meeting, data.locus)) {
470
- _loggerProxy.default.logger.log("Meetings:index#handleLocusEvent --> doesn't need to process locus event");
471
- return;
472
- }
473
236
  if (!meeting) {
474
237
  // TODO: create meeting when we get a meeting object
475
238
  // const checkForEnded = (locus) => {
@@ -509,7 +272,6 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
509
272
 
510
273
  // It's a new meeting so initialize the locus data
511
274
  meeting.locusInfo.initialSetup(data.locus);
512
- _this2.checkHandleBreakoutLocus(data.locus);
513
275
  }).catch(function (e) {
514
276
  _loggerProxy.default.logger.error(e);
515
277
  }).finally(function () {
@@ -517,14 +279,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
517
279
  // because the other user left so before sending 'added' event make sure it exists in the collection
518
280
 
519
281
  if (_this2.getMeetingByType(_constants._ID_, meeting.id)) {
520
- // @ts-ignore
521
- _this2.webex.internal.newMetrics.submitClientEvent({
522
- name: 'client.call.remote-started',
523
- payload: {
524
- trigger: 'mercury-event'
525
- },
526
- options: {
527
- meetingId: meeting.id
282
+ _metrics.default.postEvent({
283
+ event: _config.eventType.REMOTE_STARTED,
284
+ meeting: meeting,
285
+ data: {
286
+ trigger: _config.trigger.MERCURY_EVENT
528
287
  }
529
288
  });
530
289
  _triggerProxy.default.trigger(_this2, {
@@ -600,9 +359,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
600
359
 
601
360
  // @ts-ignore
602
361
  this.webex.internal.mercury.on(_constants.ONLINE, function () {
603
- _this3.syncMeetings({
604
- keepOnlyLocusMeetings: false
605
- });
362
+ _this3.syncMeetings();
606
363
  });
607
364
 
608
365
  // @ts-ignore
@@ -640,13 +397,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
640
397
  // @ts-ignore
641
398
  this.webex.once(_constants.READY, function () {
642
399
  // @ts-ignore
643
- _config.default.set(_this4.config);
400
+ _config2.default.set(_this4.config);
644
401
  // @ts-ignore
645
402
  _loggerConfig.default.set(_this4.config.logging);
646
403
  // @ts-ignore
647
404
  _loggerProxy.default.set(_this4.webex.logger);
648
- mediaLogger = new MediaLogger();
649
- (0, _internalMediaCore.setLogger)(mediaLogger);
650
405
 
651
406
  /**
652
407
  * The MeetingInfo object to interact with server
@@ -677,7 +432,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
677
432
  disableNotifications: true
678
433
  });
679
434
  // @ts-ignore
680
- _metrics.default.initialSetup(_this4.webex);
435
+ _metrics.default.initialSetup(_this4.meetingCollection, _this4.webex);
681
436
  });
682
437
  }
683
438
 
@@ -705,43 +460,40 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
705
460
  }
706
461
 
707
462
  /**
708
- * API to toggle starting adhoc meeting
709
- * @param {Boolean} changeState
463
+ * API to enable or disable TURN discovery
464
+ * @param {Boolean} enable
710
465
  * @private
711
466
  * @memberof Meetings
712
467
  * @returns {undefined}
713
468
  */
714
469
  }, {
715
- key: "_toggleAdhocMeetings",
716
- value: function _toggleAdhocMeetings(changeState) {
717
- var _this$config2, _this$config2$experim;
718
- if (typeof changeState !== 'boolean') {
470
+ key: "_toggleTurnDiscovery",
471
+ value: function _toggleTurnDiscovery(enable) {
472
+ if (typeof enable !== 'boolean') {
719
473
  return;
720
474
  }
721
475
  // @ts-ignore
722
- if (((_this$config2 = this.config) === null || _this$config2 === void 0 ? void 0 : (_this$config2$experim = _this$config2.experimental) === null || _this$config2$experim === void 0 ? void 0 : _this$config2$experim.enableAdhocMeetings) !== changeState) {
723
- // @ts-ignore
724
- this.config.experimental.enableAdhocMeetings = changeState;
725
- }
476
+ this.config.experimental.enableTurnDiscovery = enable;
726
477
  }
727
478
 
728
479
  /**
729
- * API to toggle TCP reachability, needs to be called before webex.meetings.register()
730
- * @param {Boolean} newValue
480
+ * API to toggle starting adhoc meeting
481
+ * @param {Boolean} changeState
731
482
  * @private
732
483
  * @memberof Meetings
733
484
  * @returns {undefined}
734
485
  */
735
486
  }, {
736
- key: "_toggleTcpReachability",
737
- value: function _toggleTcpReachability(newValue) {
738
- if (typeof newValue !== 'boolean') {
487
+ key: "_toggleAdhocMeetings",
488
+ value: function _toggleAdhocMeetings(changeState) {
489
+ var _this$config2, _this$config2$experim;
490
+ if (typeof changeState !== 'boolean') {
739
491
  return;
740
492
  }
741
493
  // @ts-ignore
742
- if (this.config.experimental.enableTcpReachability !== newValue) {
494
+ if (((_this$config2 = this.config) === null || _this$config2 === void 0 ? void 0 : (_this$config2$experim = _this$config2.experimental) === null || _this$config2$experim === void 0 ? void 0 : _this$config2$experim.enableAdhocMeetings) !== changeState) {
743
495
  // @ts-ignore
744
- this.config.experimental.enableTcpReachability = newValue;
496
+ this.config.experimental.enableAdhocMeetings = changeState;
745
497
  }
746
498
  }
747
499
 
@@ -829,9 +581,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
829
581
  })
830
582
  );
831
583
  }
832
- }, {
833
- key: "uploadLogs",
834
- value:
584
+
835
585
  /**
836
586
  * Uploads logs to the webex services for tracking
837
587
  * @param {Object} [options={}]
@@ -844,13 +594,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
844
594
  * @param {String} [options.orgId] org id
845
595
  * @returns {String} feedback ID logs were submitted under
846
596
  */
847
- function uploadLogs() {
597
+ }, {
598
+ key: "uploadLogs",
599
+ value: function uploadLogs() {
848
600
  var _this7 = this;
849
601
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
850
602
  _loggerProxy.default.logger.info('Meetings:index#uploadLogs --> uploading logs');
851
603
  return this.loggerRequest.uploadLogs(options).then(function (uploadResult) {
852
604
  _loggerProxy.default.logger.info('Meetings:index#uploadLogs --> Upload logs for meeting completed.', uploadResult);
853
- _metrics.default.sendBehavioralMetric(_constants2.default.UPLOAD_LOGS_SUCCESS, options);
854
605
  _triggerProxy.default.trigger(_this7, {
855
606
  file: 'meetings',
856
607
  function: 'uploadLogs'
@@ -868,14 +619,29 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
868
619
  meetingId: options.meetingId,
869
620
  reason: uploadError
870
621
  });
871
- _metrics.default.sendBehavioralMetric(_constants2.default.UPLOAD_LOGS_FAILURE, _objectSpread(_objectSpread({}, options), {}, {
622
+ _metrics.default.sendBehavioralMetric(_constants2.default.UPLOAD_LOGS_FAILURE, {
623
+ // @ts-ignore - seems like typo
624
+ meetingId: options.meetingsId,
872
625
  reason: uploadError.message,
873
626
  stack: uploadError.stack,
874
627
  code: uploadError.code
875
- }));
628
+ });
876
629
  });
877
630
  }
878
631
 
632
+ /**
633
+ * initializes the reachability instance for Meetings
634
+ * @returns {undefined}
635
+ * @public
636
+ * @memberof Meetings
637
+ */
638
+ }, {
639
+ key: "setReachability",
640
+ value: function setReachability() {
641
+ // @ts-ignore
642
+ this.reachability = new _reachability.default(this.webex);
643
+ }
644
+
879
645
  /**
880
646
  * gets the reachability instance for Meetings
881
647
  * @returns {Reachability}
@@ -897,6 +663,9 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
897
663
  }, {
898
664
  key: "startReachability",
899
665
  value: function startReachability() {
666
+ if (!this.reachability) {
667
+ this.setReachability();
668
+ }
900
669
  return this.getReachability().gatherReachability();
901
670
  }
902
671
 
@@ -926,24 +695,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
926
695
  key: "fetchUserPreferredWebexSite",
927
696
  value: function fetchUserPreferredWebexSite() {
928
697
  var _this9 = this;
929
- return this.request.getMeetingPreferences().then(function (res) {
930
- if (res) {
931
- _this9.preferredWebexSite = _util2.default.parseDefaultSiteFromMeetingPreferences(res);
932
- }
933
-
934
- // fall back to getting the preferred site from the user information
935
- if (!_this9.preferredWebexSite) {
936
- // @ts-ignore
937
- return _this9.webex.internal.user.get().then(function (user) {
938
- var _user$userPreferences, _user$userPreferences2;
939
- 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;
940
- if (preferredWebexSite) {
941
- _this9.preferredWebexSite = preferredWebexSite;
942
- } else {
943
- throw new Error('site not found');
698
+ // @ts-ignore
699
+ return this.webex.people._getMe().then(function (me) {
700
+ var isGuestUser = me.type === 'appuser';
701
+ if (!isGuestUser) {
702
+ return _this9.request.getMeetingPreferences().then(function (res) {
703
+ if (res) {
704
+ _this9.preferredWebexSite = _util2.default.parseDefaultSiteFromMeetingPreferences(res);
944
705
  }
945
- }).catch(function () {
946
- _loggerProxy.default.logger.error('Failed to fetch preferred site from user - no site will be set');
947
706
  });
948
707
  }
949
708
  return _promise.default.resolve();
@@ -985,19 +744,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
985
744
  }
986
745
 
987
746
  /**
988
- * Create a meeting or return an existing meeting.
989
- *
990
- * When meeting info passed it should be complete, e.g.: fetched after password or captcha provided
991
- *
992
- * @param {string} destination - sipURL, phonenumber, or locus object}
747
+ * Create a meeting.
748
+ * @param {string} destination - sipURL, spaceId, phonenumber, or locus object}
993
749
  * @param {string} [type] - the optional specified type, such as locusId
994
750
  * @param {Boolean} useRandomDelayForInfo - whether a random delay should be added to fetching meeting info
995
- * @param {Object} infoExtraParams extra parameters to be provided when fetching meeting info
996
- * @param {string} correlationId - the optional specified correlationId (callStateForMetrics.correlationId can be provided instead)
997
- * @param {Boolean} failOnMissingMeetingInfo - whether to throw an error if meeting info fails to fetch (for calls that are not 1:1 or content share)
998
- * @param {CallStateForMetrics} callStateForMetrics - information about call state for metrics
999
- * @param {Object} [meetingInfo] - Pre-fetched complete meeting info
1000
- * @param {String} [meetingLookupUrl] - meeting info prefetch url
1001
751
  * @returns {Promise<Meeting>} A new Meeting.
1002
752
  * @public
1003
753
  * @memberof Meetings
@@ -1008,30 +758,16 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1008
758
  var _this10 = this;
1009
759
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
1010
760
  var useRandomDelayForInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
1011
- var infoExtraParams = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1012
- var correlationId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
1013
- var failOnMissingMeetingInfo = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
1014
- var callStateForMetrics = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : undefined;
1015
- var meetingInfo = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : undefined;
1016
- var meetingLookupUrl = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : undefined;
1017
761
  // TODO: type should be from a dictionary
1018
762
 
1019
763
  // Validate meeting information based on the provided destination and
1020
764
  // type. This must be performed prior to determining if the meeting is
1021
765
  // found in the collection, as we mutate the destination for hydra person
1022
766
  // id values.
1023
- if (correlationId) {
1024
- callStateForMetrics = _objectSpread(_objectSpread({}, callStateForMetrics || {}), {}, {
1025
- correlationId: correlationId
1026
- });
1027
- }
1028
767
  return this.meetingInfo.fetchInfoOptions(destination, type)
1029
768
  // Catch a failure to fetch info options.
1030
769
  .catch(function (error) {
1031
- _loggerProxy.default.logger.error("Meetings:index#create --> ERROR, unable to determine info options: ".concat(error.message));
1032
- if (error instanceof _webexErrors.SpaceIDDeprecatedError) {
1033
- throw new _webexErrors.SpaceIDDeprecatedError();
1034
- }
770
+ _loggerProxy.default.logger.info("Meetings:index#create --> INFO, unable to determine info options: ".concat(error.message));
1035
771
  }).then(function () {
1036
772
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1037
773
  // Normalize the destination.
@@ -1060,22 +796,20 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1060
796
  // Validate if a meeting was found.
1061
797
  if (!meeting) {
1062
798
  // Create a meeting based on the normalized destination and type.
1063
- return _this10.createMeeting(targetDest, type, useRandomDelayForInfo, infoExtraParams, callStateForMetrics, failOnMissingMeetingInfo, meetingInfo, meetingLookupUrl).then(function (createdMeeting) {
799
+ return _this10.createMeeting(targetDest, type, useRandomDelayForInfo).then(function (createdMeeting) {
1064
800
  // If the meeting was successfully created.
1065
801
  if (createdMeeting && createdMeeting.on) {
1066
802
  // Create a destruction event for the meeting.
1067
803
  createdMeeting.on(_constants.EVENTS.DESTROY_MEETING, function (payload) {
1068
804
  // @ts-ignore
1069
805
  if (_this10.config.autoUploadLogs) {
1070
- var _createdMeeting$locus, _createdMeeting$locus2, _createdMeeting$locus3, _createdMeeting$locus4, _createdMeeting$locus5, _createdMeeting$locus6;
806
+ var _createdMeeting$locus, _createdMeeting$locus2, _createdMeeting$locus3, _createdMeeting$locus4;
1071
807
  _this10.uploadLogs({
1072
808
  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,
1073
- 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,
1074
809
  correlationId: createdMeeting.correlationId,
1075
810
  feedbackId: createdMeeting.correlationId,
1076
811
  locusId: createdMeeting.locusId,
1077
- meetingId: (_createdMeeting$locus5 = createdMeeting.locusInfo) === null || _createdMeeting$locus5 === void 0 ? void 0 : (_createdMeeting$locus6 = _createdMeeting$locus5.info) === null || _createdMeeting$locus6 === void 0 ? void 0 : _createdMeeting$locus6.webExMeetingId,
1078
- autoupload: true
812
+ meetingId: (_createdMeeting$locus3 = createdMeeting.locusInfo) === null || _createdMeeting$locus3 === void 0 ? void 0 : (_createdMeeting$locus4 = _createdMeeting$locus3.info) === null || _createdMeeting$locus4 === void 0 ? void 0 : _createdMeeting$locus4.webExMeetingId
1079
813
  }).then(function () {
1080
814
  return _this10.destroy(createdMeeting, payload.reason);
1081
815
  });
@@ -1086,15 +820,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1086
820
  createdMeeting.on(_constants.EVENTS.REQUEST_UPLOAD_LOGS, function (meetingInstance) {
1087
821
  // @ts-ignore
1088
822
  if (_this10.config.autoUploadLogs) {
1089
- var _meetingInstance$locu, _meetingInstance$locu2, _meetingInstance$locu3, _meetingInstance$locu4, _meetingInstance$locu5, _meetingInstance$locu6;
823
+ var _meetingInstance$locu, _meetingInstance$locu2, _meetingInstance$locu3, _meetingInstance$locu4;
1090
824
  _this10.uploadLogs({
1091
825
  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,
1092
- 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,
1093
826
  correlationId: meetingInstance.correlationId,
1094
827
  feedbackId: meetingInstance.correlationId,
1095
828
  locusId: meetingInstance.locusId,
1096
- meetingId: (_meetingInstance$locu5 = meetingInstance.locusInfo) === null || _meetingInstance$locu5 === void 0 ? void 0 : (_meetingInstance$locu6 = _meetingInstance$locu5.info) === null || _meetingInstance$locu6 === void 0 ? void 0 : _meetingInstance$locu6.webExMeetingId,
1097
- autoupload: true
829
+ meetingId: (_meetingInstance$locu3 = meetingInstance.locusInfo) === null || _meetingInstance$locu3 === void 0 ? void 0 : (_meetingInstance$locu4 = _meetingInstance$locu3.info) === null || _meetingInstance$locu4 === void 0 ? void 0 : _meetingInstance$locu4.webExMeetingId
1098
830
  });
1099
831
  }
1100
832
  });
@@ -1106,7 +838,6 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1106
838
  return _promise.default.resolve(createdMeeting);
1107
839
  });
1108
840
  }
1109
- meeting.setCallStateForMetrics(callStateForMetrics);
1110
841
 
1111
842
  // Return the existing meeting.
1112
843
  return _promise.default.resolve(meeting);
@@ -1114,33 +845,19 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1114
845
  }
1115
846
 
1116
847
  /**
1117
- * Create meeting
1118
- *
1119
- * When meeting info passed it should be complete, e.g.: fetched after password or captcha provided
1120
- *
1121
848
  * @param {String} destination see create()
1122
849
  * @param {String} type see create()
1123
850
  * @param {Boolean} useRandomDelayForInfo whether a random delay should be added to fetching meeting info
1124
- * @param {Object} infoExtraParams extra parameters to be provided when fetching meeting info
1125
- * @param {CallStateForMetrics} callStateForMetrics - information about call state for metrics
1126
- * @param {Boolean} failOnMissingMeetingInfo - whether to throw an error if meeting info fails to fetch (for calls that are not 1:1 or content share)
1127
- * @param {Object} [meetingInfo] - Pre-fetched complete meeting info
1128
- * @param {String} [meetingLookupUrl] - meeting info prefetch url
1129
851
  * @returns {Promise} a new meeting instance complete with meeting info and destination
1130
852
  * @private
1131
853
  * @memberof Meetings
1132
854
  */
1133
855
  }, {
1134
856
  key: "createMeeting",
1135
- value: (function () {
1136
- var _createMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(destination) {
857
+ value: function () {
858
+ var _createMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(destination) {
1137
859
  var type,
1138
860
  useRandomDelayForInfo,
1139
- infoExtraParams,
1140
- callStateForMetrics,
1141
- failOnMissingMeetingInfo,
1142
- meetingInfo,
1143
- meetingLookupUrl,
1144
861
  meeting,
1145
862
  _destination$fullStat,
1146
863
  waitingTime,
@@ -1151,19 +868,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1151
868
  maxWaitingTime,
1152
869
  isMeetingActive,
1153
870
  enableUnifiedMeetings,
1154
- meetingInfoOptions,
1155
871
  meetingAddedType,
1156
- _args3 = arguments;
1157
- return _regenerator.default.wrap(function _callee3$(_context3) {
1158
- while (1) switch (_context3.prev = _context3.next) {
872
+ _args = arguments;
873
+ return _regenerator.default.wrap(function _callee$(_context) {
874
+ while (1) switch (_context.prev = _context.next) {
1159
875
  case 0:
1160
- type = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : null;
1161
- useRandomDelayForInfo = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : false;
1162
- infoExtraParams = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : {};
1163
- callStateForMetrics = _args3.length > 4 && _args3[4] !== undefined ? _args3[4] : undefined;
1164
- failOnMissingMeetingInfo = _args3.length > 5 && _args3[5] !== undefined ? _args3[5] : false;
1165
- meetingInfo = _args3.length > 6 && _args3[6] !== undefined ? _args3[6] : undefined;
1166
- meetingLookupUrl = _args3.length > 7 && _args3[7] !== undefined ? _args3[7] : undefined;
876
+ type = _args.length > 1 && _args[1] !== undefined ? _args[1] : null;
877
+ useRandomDelayForInfo = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
1167
878
  meeting = new _meeting.default({
1168
879
  // @ts-ignore
1169
880
  userId: this.webex.internal.device.userId,
@@ -1171,18 +882,18 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1171
882
  deviceUrl: this.webex.internal.device.url,
1172
883
  // @ts-ignore
1173
884
  orgId: this.webex.internal.device.orgId,
885
+ roapSeq: 0,
1174
886
  locus: type === _constants._LOCUS_ID_ ? destination : null,
1175
887
  // pass the locus object if present
1176
888
  meetingInfoProvider: this.meetingInfo,
1177
889
  destination: destination,
1178
- destinationType: type,
1179
- callStateForMetrics: callStateForMetrics
890
+ destinationType: type
1180
891
  }, {
1181
892
  // @ts-ignore
1182
893
  parent: this.webex
1183
894
  });
1184
895
  this.meetingCollection.set(meeting);
1185
- _context3.prev = 9;
896
+ _context.prev = 4;
1186
897
  // if no participant has joined the scheduled meeting (meaning meeting is not active) and we get a locusEvent,
1187
898
  // it means the meeting will start in 5-6 min. In that case, we want to fetchMeetingInfo
1188
899
  // between 5 and 2 min (random between 3 minutes) before the meeting starts
@@ -1198,57 +909,33 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1198
909
  }
1199
910
  isMeetingActive = !!((_destination$fullStat = destination.fullState) !== null && _destination$fullStat !== void 0 && _destination$fullStat.active); // @ts-ignore
1200
911
  enableUnifiedMeetings = this.config.experimental.enableUnifiedMeetings;
1201
- meetingInfoOptions = {
1202
- extraParams: infoExtraParams,
1203
- 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
1204
- };
1205
- if (!meetingInfo) {
1206
- _context3.next = 19;
1207
- break;
1208
- }
1209
- meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
1210
- _context3.next = 26;
1211
- break;
1212
- case 19:
1213
912
  if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
1214
- _context3.next = 24;
913
+ _context.next = 14;
1215
914
  break;
1216
915
  }
1217
916
  meeting.fetchMeetingInfoTimeoutId = setTimeout(function () {
1218
- return meeting.fetchMeetingInfo(meetingInfoOptions);
917
+ return meeting.fetchMeetingInfo({});
1219
918
  }, waitingTime);
1220
919
  meeting.parseMeetingInfo(undefined, destination);
1221
- _context3.next = 26;
920
+ _context.next = 16;
1222
921
  break;
1223
- case 24:
1224
- _context3.next = 26;
1225
- return meeting.fetchMeetingInfo(meetingInfoOptions);
1226
- case 26:
1227
- _context3.next = 38;
922
+ case 14:
923
+ _context.next = 16;
924
+ return meeting.fetchMeetingInfo({});
925
+ case 16:
926
+ _context.next = 22;
1228
927
  break;
1229
- case 28:
1230
- _context3.prev = 28;
1231
- _context3.t0 = _context3["catch"](9);
1232
- if (!(!(_context3.t0 instanceof _captchaError.default) && !(_context3.t0 instanceof _passwordError.default) && !(_context3.t0 instanceof _permission.default))) {
1233
- _context3.next = 37;
1234
- break;
928
+ case 18:
929
+ _context.prev = 18;
930
+ _context.t0 = _context["catch"](4);
931
+ if (!(_context.t0 instanceof _captchaError.default) && !(_context.t0 instanceof _passwordError.default)) {
932
+ // if there is no meeting info we assume its a 1:1 call or wireless share
933
+ _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
934
+ _loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
1235
935
  }
1236
- _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
1237
- if (!failOnMissingMeetingInfo) {
1238
- _context3.next = 36;
1239
- break;
1240
- }
1241
- _loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
1242
- // @ts-ignore
1243
- this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
1244
- throw new _noMeetingInfo.default();
1245
- case 36:
1246
- // if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
1247
- _loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
1248
- case 37:
1249
- _loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_context3.t0, " fetching /meetingInfo for creation."));
1250
- case 38:
1251
- _context3.prev = 38;
936
+ _loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_context.t0, " fetching /meetingInfo for creation."));
937
+ case 22:
938
+ _context.prev = 22;
1252
939
  // For type LOCUS_ID we need to parse the locus object to get the information
1253
940
  // about the caller and callee
1254
941
  // Meeting Added event will be created in `handleLocusEvent`
@@ -1268,16 +955,16 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1268
955
  type: meetingAddedType
1269
956
  });
1270
957
  }
1271
- return _context3.finish(38);
1272
- case 41:
1273
- return _context3.abrupt("return", meeting);
1274
- case 42:
958
+ return _context.finish(22);
959
+ case 25:
960
+ return _context.abrupt("return", meeting);
961
+ case 26:
1275
962
  case "end":
1276
- return _context3.stop();
963
+ return _context.stop();
1277
964
  }
1278
- }, _callee3, this, [[9, 28, 38, 41]]);
965
+ }, _callee, this, [[4, 18, 22, 25]]);
1279
966
  }));
1280
- function createMeeting(_x3) {
967
+ function createMeeting(_x) {
1281
968
  return _createMeeting.apply(this, arguments);
1282
969
  }
1283
970
  return createMeeting;
@@ -1290,7 +977,6 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1290
977
  * @public
1291
978
  * @memberof Meetings
1292
979
  */
1293
- )
1294
980
  }, {
1295
981
  key: "getMeetingByType",
1296
982
  value: function getMeetingByType(type, value) {
@@ -1317,8 +1003,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1317
1003
 
1318
1004
  /**
1319
1005
  * syncs all the meeting from server
1320
- * @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
1321
- * @returns {Promise<void>}
1006
+ * @returns {undefined}
1322
1007
  * @public
1323
1008
  * @memberof Meetings
1324
1009
  */
@@ -1326,14 +1011,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1326
1011
  key: "syncMeetings",
1327
1012
  value: function syncMeetings() {
1328
1013
  var _this11 = this;
1329
- var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
1330
- _ref3$keepOnlyLocusMe = _ref3.keepOnlyLocusMeetings,
1331
- keepOnlyLocusMeetings = _ref3$keepOnlyLocusMe === void 0 ? true : _ref3$keepOnlyLocusMe;
1332
1014
  return this.request.getActiveMeetings().then(function (locusArray) {
1333
1015
  var activeLocusUrl = [];
1334
1016
  if (locusArray !== null && locusArray !== void 0 && locusArray.loci && locusArray.loci.length > 0) {
1335
- var lociToUpdate = _this11.sortLocusArrayToUpdate(locusArray.loci);
1336
- lociToUpdate.forEach(function (locus) {
1017
+ locusArray.loci.forEach(function (locus) {
1337
1018
  activeLocusUrl.push(locus.url);
1338
1019
  _this11.handleLocusEvent({
1339
1020
  locus: locus,
@@ -1343,95 +1024,19 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1343
1024
  }
1344
1025
  var meetingsCollection = _this11.meetingCollection.getAll();
1345
1026
  if ((0, _keys.default)(meetingsCollection).length > 0) {
1346
- // Sometimes the mercury events are lost after mercury reconnect
1347
- // Remove any Locus meetings that are not returned by Locus
1348
- // (they had a locusUrl previously but are no longer active) in the sync
1027
+ // Some time the mercury event is missed after mercury reconnect
1028
+ // if sync returns no locus then clear all the meetings
1349
1029
  for (var _i = 0, _Object$values = (0, _values.default)(meetingsCollection); _i < _Object$values.length; _i++) {
1350
1030
  var meeting = _Object$values[_i];
1351
1031
  // @ts-ignore
1352
- var locusUrl = meeting.locusUrl;
1353
- if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
1032
+ if (!activeLocusUrl.includes(meeting.locusUrl)) {
1354
1033
  // destroy function also uploads logs
1355
1034
  // @ts-ignore
1356
1035
  _this11.destroy(meeting, _constants.MEETING_REMOVED_REASON.NO_MEETINGS_TO_SYNC);
1357
1036
  }
1358
1037
  }
1359
1038
  }
1360
- }).catch(function (error) {
1361
- _loggerProxy.default.logger.error("Meetings:index#syncMeetings --> failed to sync meetings, ".concat(error));
1362
- throw new Error(error);
1363
- });
1364
- }
1365
-
1366
- /**
1367
- * sort out locus array for initial creating
1368
- * @param {Array} loci original locus array
1369
- * @returns {undefined}
1370
- * @public
1371
- * @memberof Meetings
1372
- */
1373
- }, {
1374
- key: "sortLocusArrayToUpdate",
1375
- value: function sortLocusArrayToUpdate(loci) {
1376
- var _this12 = this;
1377
- var mainLoci = loci.filter(function (locus) {
1378
- return !_util2.default.isBreakoutLocusDTO(locus);
1379
- });
1380
- var breakoutLoci = loci.filter(function (locus) {
1381
- return _util2.default.isValidBreakoutLocus(locus);
1382
- });
1383
- this.breakoutLocusForHandleLater = [];
1384
- var lociToUpdate = (0, _toConsumableArray2.default)(mainLoci);
1385
- breakoutLoci.forEach(function (breakoutLocus) {
1386
- var associateMainLocus = mainLoci.find(function (mainLocus) {
1387
- var _mainLocus$controls, _mainLocus$controls$b, _breakoutLocus$contro, _breakoutLocus$contro2;
1388
- 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);
1389
- });
1390
- var existCorrespondingMeeting = _this12.getCorrespondingMeetingByLocus({
1391
- locus: breakoutLocus,
1392
- locusUrl: breakoutLocus.url
1393
- });
1394
- if (associateMainLocus && !existCorrespondingMeeting) {
1395
- // if exists both main session and breakout session locus of the same non-exist meeting, handle main locus first,
1396
- // after meeting create with main locus, then handle the associate breakout locus.
1397
- // if only handle breakout locus, will miss some date
1398
- _this12.breakoutLocusForHandleLater.push(breakoutLocus);
1399
- } else {
1400
- lociToUpdate.push(breakoutLocus);
1401
- }
1402
1039
  });
1403
- return lociToUpdate;
1404
- }
1405
-
1406
- /**
1407
- * check breakout locus which waiting for main locus's meeting to be created, then handle the breakout locus
1408
- * @param {Object} newCreatedLocus the locus which just create meeting object of it
1409
- * @returns {undefined}
1410
- * @public
1411
- * @memberof Meetings
1412
- */
1413
- }, {
1414
- key: "checkHandleBreakoutLocus",
1415
- value: function checkHandleBreakoutLocus(newCreatedLocus) {
1416
- if (!newCreatedLocus || !this.breakoutLocusForHandleLater || !this.breakoutLocusForHandleLater.length) {
1417
- return;
1418
- }
1419
- if (_util2.default.isBreakoutLocusDTO(newCreatedLocus)) {
1420
- return;
1421
- }
1422
- var existIndex = this.breakoutLocusForHandleLater.findIndex(function (breakoutLocus) {
1423
- var _breakoutLocus$contro3, _breakoutLocus$contro4, _newCreatedLocus$cont, _newCreatedLocus$cont2;
1424
- return ((_breakoutLocus$contro3 = breakoutLocus.controls) === null || _breakoutLocus$contro3 === void 0 ? void 0 : (_breakoutLocus$contro4 = _breakoutLocus$contro3.breakout) === null || _breakoutLocus$contro4 === void 0 ? void 0 : _breakoutLocus$contro4.url) === ((_newCreatedLocus$cont = newCreatedLocus.controls) === null || _newCreatedLocus$cont === void 0 ? void 0 : (_newCreatedLocus$cont2 = _newCreatedLocus$cont.breakout) === null || _newCreatedLocus$cont2 === void 0 ? void 0 : _newCreatedLocus$cont2.url);
1425
- });
1426
- if (existIndex < 0) {
1427
- return;
1428
- }
1429
- var associateBreakoutLocus = this.breakoutLocusForHandleLater[existIndex];
1430
- this.handleLocusEvent({
1431
- locus: associateBreakoutLocus,
1432
- locusUrl: associateBreakoutLocus.url
1433
- });
1434
- this.breakoutLocusForHandleLater.splice(existIndex, 1);
1435
1040
  }
1436
1041
 
1437
1042
  /**
@@ -1459,20 +1064,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
1459
1064
  value: function getLogger() {
1460
1065
  return _loggerProxy.default.get();
1461
1066
  }
1462
-
1463
- /**
1464
- * Returns the first meeting it finds that has the webrtc media connection created.
1465
- * Useful for debugging in the console.
1466
- *
1467
- * @private
1468
- * @returns {Meeting} Meeting object that has a webrtc media connection, else undefined
1469
- */
1470
- }, {
1471
- key: "getActiveWebrtcMeeting",
1472
- value: function getActiveWebrtcMeeting() {
1473
- return this.meetingCollection.getActiveWebrtcMeeting();
1474
- }
1475
1067
  }]);
1476
1068
  return Meetings;
1477
1069
  }(_webexCore.WebexPlugin);
1070
+ exports.default = Meetings;
1478
1071
  //# sourceMappingURL=index.js.map