@exotel-npm-dev/webrtc-client-sdk 2.0.2 → 2.0.3
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/Makefile +1 -1
- package/dist/exotelsdk.js +249 -249
- package/dist/exotelsdk.js.map +1 -1
- package/package.json +2 -2
package/Makefile
CHANGED
package/dist/exotelsdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* WebRTC CLient SIP version 2.0.
|
|
3
|
+
* WebRTC CLient SIP version 2.0.3
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -303,7 +303,8 @@ const coreSDKLogger = {
|
|
|
303
303
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
304
304
|
if(true)
|
|
305
305
|
module.exports = factory();
|
|
306
|
-
else
|
|
306
|
+
else // removed by dead control flow
|
|
307
|
+
{}
|
|
307
308
|
})(this, function() {
|
|
308
309
|
return /******/ (() => { // webpackBootstrap
|
|
309
310
|
/******/ "use strict";
|
|
@@ -12612,7 +12613,8 @@ class UserAgentCore {
|
|
|
12612
12613
|
break;
|
|
12613
12614
|
case _messages__WEBPACK_IMPORTED_MODULE_7__.C.CANCEL:
|
|
12614
12615
|
throw new Error(`Unexpected out of dialog request method ${message.method}.`);
|
|
12615
|
-
|
|
12616
|
+
// removed by dead control flow
|
|
12617
|
+
{}
|
|
12616
12618
|
case _messages__WEBPACK_IMPORTED_MODULE_7__.C.INFO:
|
|
12617
12619
|
// Use of the INFO method does not constitute a separate dialog usage.
|
|
12618
12620
|
// INFO messages are always part of, and share the fate of, an invite
|
|
@@ -22213,12 +22215,8 @@ const SIPJSPhone = {
|
|
|
22213
22215
|
}
|
|
22214
22216
|
},
|
|
22215
22217
|
replaceSenderTrack(stream, deviceId) {
|
|
22218
|
+
logger.log(`sipjsphone:replaceSenderTrack: entry, deviceId=${deviceId}`);
|
|
22216
22219
|
try {
|
|
22217
|
-
|
|
22218
|
-
if (_audioDeviceManager_js__WEBPACK_IMPORTED_MODULE_0__.audioDeviceManager.currentAudioInputDeviceId == deviceId) {
|
|
22219
|
-
SIPJSPhone.stopStreamTracks(stream);
|
|
22220
|
-
return false;
|
|
22221
|
-
}
|
|
22222
22220
|
if (ctxSip.callActiveID) {
|
|
22223
22221
|
ctxSip.Stream = stream;
|
|
22224
22222
|
const s = ctxSip.Sessions[ctxSip.callActiveID];
|
|
@@ -22230,14 +22228,21 @@ const SIPJSPhone = {
|
|
|
22230
22228
|
sender.track.stop();
|
|
22231
22229
|
sender.replaceTrack(audioTrack);
|
|
22232
22230
|
} catch (e) {
|
|
22233
|
-
logger.error(`replaceSenderTrack unable to replace track for stream for device id ${deviceId} `,
|
|
22231
|
+
logger.error(`sipjsphone:replaceSenderTrack: unable to replace track for stream for device id ${deviceId} `, e);
|
|
22232
|
+
SIPJSPhone.stopStreamTracks(stream);
|
|
22234
22233
|
}
|
|
22234
|
+
} else {
|
|
22235
|
+
logger.error("sipjsphone:replaceSenderTrack: no sender found");
|
|
22236
|
+
SIPJSPhone.stopStreamTracks(stream);
|
|
22235
22237
|
}
|
|
22236
22238
|
} else {
|
|
22239
|
+
logger.log("sipjsphone:replaceSenderTrack: no call active, stopping stream tracks");
|
|
22237
22240
|
SIPJSPhone.stopStreamTracks(stream);
|
|
22238
22241
|
}
|
|
22239
22242
|
return true;
|
|
22240
22243
|
} catch (e) {
|
|
22244
|
+
SIPJSPhone.stopStreamTracks(stream);
|
|
22245
|
+
logger.error("sipjsphone:replaceSenderTrack: failed to replace track", e);
|
|
22241
22246
|
return false;
|
|
22242
22247
|
}
|
|
22243
22248
|
|
|
@@ -22303,6 +22308,50 @@ const SIPJSPhone = {
|
|
|
22303
22308
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SIPJSPhone);
|
|
22304
22309
|
|
|
22305
22310
|
|
|
22311
|
+
/***/ }),
|
|
22312
|
+
|
|
22313
|
+
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/beep.wav":
|
|
22314
|
+
/*!**************************************************************************!*\
|
|
22315
|
+
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/beep.wav ***!
|
|
22316
|
+
\**************************************************************************/
|
|
22317
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22318
|
+
|
|
22319
|
+
"use strict";
|
|
22320
|
+
module.exports = __webpack_require__.p + "beep.wav";
|
|
22321
|
+
|
|
22322
|
+
/***/ }),
|
|
22323
|
+
|
|
22324
|
+
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/dtmf.wav":
|
|
22325
|
+
/*!**************************************************************************!*\
|
|
22326
|
+
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/dtmf.wav ***!
|
|
22327
|
+
\**************************************************************************/
|
|
22328
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22329
|
+
|
|
22330
|
+
"use strict";
|
|
22331
|
+
module.exports = __webpack_require__.p + "dtmf.wav";
|
|
22332
|
+
|
|
22333
|
+
/***/ }),
|
|
22334
|
+
|
|
22335
|
+
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringbacktone.wav":
|
|
22336
|
+
/*!**********************************************************************************!*\
|
|
22337
|
+
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringbacktone.wav ***!
|
|
22338
|
+
\**********************************************************************************/
|
|
22339
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22340
|
+
|
|
22341
|
+
"use strict";
|
|
22342
|
+
module.exports = __webpack_require__.p + "ringbacktone.wav";
|
|
22343
|
+
|
|
22344
|
+
/***/ }),
|
|
22345
|
+
|
|
22346
|
+
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringtone.wav":
|
|
22347
|
+
/*!******************************************************************************!*\
|
|
22348
|
+
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringtone.wav ***!
|
|
22349
|
+
\******************************************************************************/
|
|
22350
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22351
|
+
|
|
22352
|
+
"use strict";
|
|
22353
|
+
module.exports = __webpack_require__.p + "ringtone.wav";
|
|
22354
|
+
|
|
22306
22355
|
/***/ }),
|
|
22307
22356
|
|
|
22308
22357
|
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/webrtcSIPPhone.js":
|
|
@@ -22766,6 +22815,188 @@ const webrtcSIPPhoneEventDelegate = {
|
|
|
22766
22815
|
|
|
22767
22816
|
/***/ }),
|
|
22768
22817
|
|
|
22818
|
+
/***/ "./node_modules/uuid/dist/esm-browser/native.js":
|
|
22819
|
+
/*!******************************************************!*\
|
|
22820
|
+
!*** ./node_modules/uuid/dist/esm-browser/native.js ***!
|
|
22821
|
+
\******************************************************/
|
|
22822
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22823
|
+
|
|
22824
|
+
"use strict";
|
|
22825
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22826
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22827
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22828
|
+
/* harmony export */ });
|
|
22829
|
+
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
22830
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
22831
|
+
randomUUID
|
|
22832
|
+
});
|
|
22833
|
+
|
|
22834
|
+
/***/ }),
|
|
22835
|
+
|
|
22836
|
+
/***/ "./node_modules/uuid/dist/esm-browser/regex.js":
|
|
22837
|
+
/*!*****************************************************!*\
|
|
22838
|
+
!*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
|
|
22839
|
+
\*****************************************************/
|
|
22840
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22841
|
+
|
|
22842
|
+
"use strict";
|
|
22843
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22844
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22845
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22846
|
+
/* harmony export */ });
|
|
22847
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
22848
|
+
|
|
22849
|
+
/***/ }),
|
|
22850
|
+
|
|
22851
|
+
/***/ "./node_modules/uuid/dist/esm-browser/rng.js":
|
|
22852
|
+
/*!***************************************************!*\
|
|
22853
|
+
!*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
|
|
22854
|
+
\***************************************************/
|
|
22855
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22856
|
+
|
|
22857
|
+
"use strict";
|
|
22858
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22859
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22860
|
+
/* harmony export */ "default": () => (/* binding */ rng)
|
|
22861
|
+
/* harmony export */ });
|
|
22862
|
+
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
22863
|
+
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
22864
|
+
// generators (like Math.random()).
|
|
22865
|
+
let getRandomValues;
|
|
22866
|
+
const rnds8 = new Uint8Array(16);
|
|
22867
|
+
function rng() {
|
|
22868
|
+
// lazy load so that environments that need to polyfill have a chance to do so
|
|
22869
|
+
if (!getRandomValues) {
|
|
22870
|
+
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
22871
|
+
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
22872
|
+
|
|
22873
|
+
if (!getRandomValues) {
|
|
22874
|
+
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
22875
|
+
}
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
return getRandomValues(rnds8);
|
|
22879
|
+
}
|
|
22880
|
+
|
|
22881
|
+
/***/ }),
|
|
22882
|
+
|
|
22883
|
+
/***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
|
|
22884
|
+
/*!*********************************************************!*\
|
|
22885
|
+
!*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
|
|
22886
|
+
\*********************************************************/
|
|
22887
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22888
|
+
|
|
22889
|
+
"use strict";
|
|
22890
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22891
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22892
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
22893
|
+
/* harmony export */ unsafeStringify: () => (/* binding */ unsafeStringify)
|
|
22894
|
+
/* harmony export */ });
|
|
22895
|
+
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
22896
|
+
|
|
22897
|
+
/**
|
|
22898
|
+
* Convert array of 16 byte values to UUID string format of the form:
|
|
22899
|
+
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
22900
|
+
*/
|
|
22901
|
+
|
|
22902
|
+
const byteToHex = [];
|
|
22903
|
+
|
|
22904
|
+
for (let i = 0; i < 256; ++i) {
|
|
22905
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
22906
|
+
}
|
|
22907
|
+
|
|
22908
|
+
function unsafeStringify(arr, offset = 0) {
|
|
22909
|
+
// Note: Be careful editing this code! It's been tuned for performance
|
|
22910
|
+
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
22911
|
+
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
|
|
22912
|
+
}
|
|
22913
|
+
|
|
22914
|
+
function stringify(arr, offset = 0) {
|
|
22915
|
+
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
22916
|
+
// of the following:
|
|
22917
|
+
// - One or more input array values don't map to a hex octet (leading to
|
|
22918
|
+
// "undefined" in the uuid)
|
|
22919
|
+
// - Invalid input values for the RFC `version` or `variant` fields
|
|
22920
|
+
|
|
22921
|
+
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
22922
|
+
throw TypeError('Stringified UUID is invalid');
|
|
22923
|
+
}
|
|
22924
|
+
|
|
22925
|
+
return uuid;
|
|
22926
|
+
}
|
|
22927
|
+
|
|
22928
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);
|
|
22929
|
+
|
|
22930
|
+
/***/ }),
|
|
22931
|
+
|
|
22932
|
+
/***/ "./node_modules/uuid/dist/esm-browser/v4.js":
|
|
22933
|
+
/*!**************************************************!*\
|
|
22934
|
+
!*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
|
|
22935
|
+
\**************************************************/
|
|
22936
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22937
|
+
|
|
22938
|
+
"use strict";
|
|
22939
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22940
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22941
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22942
|
+
/* harmony export */ });
|
|
22943
|
+
/* harmony import */ var _native_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./native.js */ "./node_modules/uuid/dist/esm-browser/native.js");
|
|
22944
|
+
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
|
|
22945
|
+
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
22946
|
+
|
|
22947
|
+
|
|
22948
|
+
|
|
22949
|
+
|
|
22950
|
+
function v4(options, buf, offset) {
|
|
22951
|
+
if (_native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID && !buf && !options) {
|
|
22952
|
+
return _native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID();
|
|
22953
|
+
}
|
|
22954
|
+
|
|
22955
|
+
options = options || {};
|
|
22956
|
+
const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
22957
|
+
|
|
22958
|
+
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
22959
|
+
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
22960
|
+
|
|
22961
|
+
if (buf) {
|
|
22962
|
+
offset = offset || 0;
|
|
22963
|
+
|
|
22964
|
+
for (let i = 0; i < 16; ++i) {
|
|
22965
|
+
buf[offset + i] = rnds[i];
|
|
22966
|
+
}
|
|
22967
|
+
|
|
22968
|
+
return buf;
|
|
22969
|
+
}
|
|
22970
|
+
|
|
22971
|
+
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(rnds);
|
|
22972
|
+
}
|
|
22973
|
+
|
|
22974
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
|
|
22975
|
+
|
|
22976
|
+
/***/ }),
|
|
22977
|
+
|
|
22978
|
+
/***/ "./node_modules/uuid/dist/esm-browser/validate.js":
|
|
22979
|
+
/*!********************************************************!*\
|
|
22980
|
+
!*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
|
|
22981
|
+
\********************************************************/
|
|
22982
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
22983
|
+
|
|
22984
|
+
"use strict";
|
|
22985
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22986
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22987
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
22988
|
+
/* harmony export */ });
|
|
22989
|
+
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
|
|
22990
|
+
|
|
22991
|
+
|
|
22992
|
+
function validate(uuid) {
|
|
22993
|
+
return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
|
|
22994
|
+
}
|
|
22995
|
+
|
|
22996
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);
|
|
22997
|
+
|
|
22998
|
+
/***/ }),
|
|
22999
|
+
|
|
22769
23000
|
/***/ "./src/api/LogManager.js":
|
|
22770
23001
|
/*!*******************************!*\
|
|
22771
23002
|
!*** ./src/api/LogManager.js ***!
|
|
@@ -22788,7 +23019,6 @@ const LogManager = {
|
|
|
22788
23019
|
if (logs.length > MAX_LOG_LINES) {
|
|
22789
23020
|
logs = logs.slice(-MAX_LOG_LINES); // rotate
|
|
22790
23021
|
}
|
|
22791
|
-
|
|
22792
23022
|
localStorage.setItem(LOG_STORAGE_KEY, JSON.stringify(logs));
|
|
22793
23023
|
},
|
|
22794
23024
|
getLogs() {
|
|
@@ -23085,7 +23315,6 @@ var ameyoWebRTCTroubleshooter = {
|
|
|
23085
23315
|
_listeners_Callback__WEBPACK_IMPORTED_MODULE_0__.diagnosticsCallback.triggerDiagnosticsSaveCallback('troubleShootReport', msg);
|
|
23086
23316
|
//}
|
|
23087
23317
|
},
|
|
23088
|
-
|
|
23089
23318
|
getBrowserData: function () {
|
|
23090
23319
|
var agent = navigator.userAgent;
|
|
23091
23320
|
var browserName = navigator.appName;
|
|
@@ -23203,7 +23432,6 @@ var ameyoWebRTCTroubleshooter = {
|
|
|
23203
23432
|
}
|
|
23204
23433
|
//Enable this for tone loop - End
|
|
23205
23434
|
},
|
|
23206
|
-
|
|
23207
23435
|
stopSpeakerTest: function () {
|
|
23208
23436
|
var parent = this;
|
|
23209
23437
|
speakerTestTone = _exotel_npm_dev_webrtc_core_sdk__WEBPACK_IMPORTED_MODULE_1__.webrtcSIPPhone.getSpeakerTestTone();
|
|
@@ -23221,7 +23449,6 @@ var ameyoWebRTCTroubleshooter = {
|
|
|
23221
23449
|
}
|
|
23222
23450
|
//Enable this for tone loop - End
|
|
23223
23451
|
},
|
|
23224
|
-
|
|
23225
23452
|
startMicTest: function () {
|
|
23226
23453
|
this.closeAudioTrack();
|
|
23227
23454
|
this.addToTrobuleshootReport("INFO", "Microphone device testing is inprogress");
|
|
@@ -24654,14 +24881,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24654
24881
|
/* harmony export */ SessionListener: () => (/* binding */ SessionListener)
|
|
24655
24882
|
/* harmony export */ });
|
|
24656
24883
|
/* harmony import */ var _Callback__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Callback */ "./src/listeners/Callback.js");
|
|
24657
|
-
/* harmony import */ var
|
|
24658
|
-
/* harmony import */ var
|
|
24659
|
-
/* harmony import */ var
|
|
24884
|
+
/* harmony import */ var uuid__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! uuid */ "./node_modules/uuid/dist/esm-browser/v4.js");
|
|
24885
|
+
/* harmony import */ var _constants_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../constants/common */ "./src/constants/common.js");
|
|
24886
|
+
/* harmony import */ var _exotel_npm_dev_webrtc_core_sdk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @exotel-npm-dev/webrtc-core-sdk */ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/index.js");
|
|
24660
24887
|
|
|
24661
24888
|
|
|
24662
24889
|
|
|
24663
24890
|
|
|
24664
|
-
var logger =
|
|
24891
|
+
var logger = _exotel_npm_dev_webrtc_core_sdk__WEBPACK_IMPORTED_MODULE_3__.webrtcSIPPhone.getLogger();
|
|
24665
24892
|
/**
|
|
24666
24893
|
* Session listeners is invoked when user opens two tabs, the data in tab 1 is
|
|
24667
24894
|
* copied into tab 2
|
|
@@ -24711,7 +24938,6 @@ function SessionListener() {
|
|
|
24711
24938
|
*/
|
|
24712
24939
|
//sessionCallback.triggerSessionCallback();
|
|
24713
24940
|
}
|
|
24714
|
-
|
|
24715
24941
|
if (event.key === 'CREDENTIALS_SHARING' && credentials !== null) {
|
|
24716
24942
|
const newData = JSON.parse(event.newValue);
|
|
24717
24943
|
if (event.newValue !== null) {
|
|
@@ -24722,7 +24948,7 @@ function SessionListener() {
|
|
|
24722
24948
|
* Fetch the array of tabs and add the tab, put it on session also
|
|
24723
24949
|
*/
|
|
24724
24950
|
const currentTab = {
|
|
24725
|
-
tabID: (0,
|
|
24951
|
+
tabID: (0,uuid__WEBPACK_IMPORTED_MODULE_1__["default"])(),
|
|
24726
24952
|
tabType: 'child',
|
|
24727
24953
|
tabStatus: 'active'
|
|
24728
24954
|
};
|
|
@@ -24774,232 +25000,6 @@ function SessionListener() {
|
|
|
24774
25000
|
}
|
|
24775
25001
|
;
|
|
24776
25002
|
|
|
24777
|
-
/***/ }),
|
|
24778
|
-
|
|
24779
|
-
/***/ "./node_modules/uuid/dist/esm-browser/native.js":
|
|
24780
|
-
/*!******************************************************!*\
|
|
24781
|
-
!*** ./node_modules/uuid/dist/esm-browser/native.js ***!
|
|
24782
|
-
\******************************************************/
|
|
24783
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24784
|
-
|
|
24785
|
-
"use strict";
|
|
24786
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24787
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24788
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24789
|
-
/* harmony export */ });
|
|
24790
|
-
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
24791
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
24792
|
-
randomUUID
|
|
24793
|
-
});
|
|
24794
|
-
|
|
24795
|
-
/***/ }),
|
|
24796
|
-
|
|
24797
|
-
/***/ "./node_modules/uuid/dist/esm-browser/regex.js":
|
|
24798
|
-
/*!*****************************************************!*\
|
|
24799
|
-
!*** ./node_modules/uuid/dist/esm-browser/regex.js ***!
|
|
24800
|
-
\*****************************************************/
|
|
24801
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24802
|
-
|
|
24803
|
-
"use strict";
|
|
24804
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24805
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24806
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24807
|
-
/* harmony export */ });
|
|
24808
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
24809
|
-
|
|
24810
|
-
/***/ }),
|
|
24811
|
-
|
|
24812
|
-
/***/ "./node_modules/uuid/dist/esm-browser/rng.js":
|
|
24813
|
-
/*!***************************************************!*\
|
|
24814
|
-
!*** ./node_modules/uuid/dist/esm-browser/rng.js ***!
|
|
24815
|
-
\***************************************************/
|
|
24816
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24817
|
-
|
|
24818
|
-
"use strict";
|
|
24819
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24820
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24821
|
-
/* harmony export */ "default": () => (/* binding */ rng)
|
|
24822
|
-
/* harmony export */ });
|
|
24823
|
-
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
24824
|
-
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
24825
|
-
// generators (like Math.random()).
|
|
24826
|
-
let getRandomValues;
|
|
24827
|
-
const rnds8 = new Uint8Array(16);
|
|
24828
|
-
function rng() {
|
|
24829
|
-
// lazy load so that environments that need to polyfill have a chance to do so
|
|
24830
|
-
if (!getRandomValues) {
|
|
24831
|
-
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
|
24832
|
-
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
|
24833
|
-
|
|
24834
|
-
if (!getRandomValues) {
|
|
24835
|
-
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
|
24836
|
-
}
|
|
24837
|
-
}
|
|
24838
|
-
|
|
24839
|
-
return getRandomValues(rnds8);
|
|
24840
|
-
}
|
|
24841
|
-
|
|
24842
|
-
/***/ }),
|
|
24843
|
-
|
|
24844
|
-
/***/ "./node_modules/uuid/dist/esm-browser/stringify.js":
|
|
24845
|
-
/*!*********************************************************!*\
|
|
24846
|
-
!*** ./node_modules/uuid/dist/esm-browser/stringify.js ***!
|
|
24847
|
-
\*********************************************************/
|
|
24848
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24849
|
-
|
|
24850
|
-
"use strict";
|
|
24851
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24852
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24853
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
24854
|
-
/* harmony export */ unsafeStringify: () => (/* binding */ unsafeStringify)
|
|
24855
|
-
/* harmony export */ });
|
|
24856
|
-
/* harmony import */ var _validate_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./validate.js */ "./node_modules/uuid/dist/esm-browser/validate.js");
|
|
24857
|
-
|
|
24858
|
-
/**
|
|
24859
|
-
* Convert array of 16 byte values to UUID string format of the form:
|
|
24860
|
-
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
24861
|
-
*/
|
|
24862
|
-
|
|
24863
|
-
const byteToHex = [];
|
|
24864
|
-
|
|
24865
|
-
for (let i = 0; i < 256; ++i) {
|
|
24866
|
-
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
24867
|
-
}
|
|
24868
|
-
|
|
24869
|
-
function unsafeStringify(arr, offset = 0) {
|
|
24870
|
-
// Note: Be careful editing this code! It's been tuned for performance
|
|
24871
|
-
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
24872
|
-
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
24873
|
-
}
|
|
24874
|
-
|
|
24875
|
-
function stringify(arr, offset = 0) {
|
|
24876
|
-
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
|
24877
|
-
// of the following:
|
|
24878
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
24879
|
-
// "undefined" in the uuid)
|
|
24880
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
24881
|
-
|
|
24882
|
-
if (!(0,_validate_js__WEBPACK_IMPORTED_MODULE_0__["default"])(uuid)) {
|
|
24883
|
-
throw TypeError('Stringified UUID is invalid');
|
|
24884
|
-
}
|
|
24885
|
-
|
|
24886
|
-
return uuid;
|
|
24887
|
-
}
|
|
24888
|
-
|
|
24889
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (stringify);
|
|
24890
|
-
|
|
24891
|
-
/***/ }),
|
|
24892
|
-
|
|
24893
|
-
/***/ "./node_modules/uuid/dist/esm-browser/v4.js":
|
|
24894
|
-
/*!**************************************************!*\
|
|
24895
|
-
!*** ./node_modules/uuid/dist/esm-browser/v4.js ***!
|
|
24896
|
-
\**************************************************/
|
|
24897
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24898
|
-
|
|
24899
|
-
"use strict";
|
|
24900
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24901
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24902
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24903
|
-
/* harmony export */ });
|
|
24904
|
-
/* harmony import */ var _native_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./native.js */ "./node_modules/uuid/dist/esm-browser/native.js");
|
|
24905
|
-
/* harmony import */ var _rng_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rng.js */ "./node_modules/uuid/dist/esm-browser/rng.js");
|
|
24906
|
-
/* harmony import */ var _stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./stringify.js */ "./node_modules/uuid/dist/esm-browser/stringify.js");
|
|
24907
|
-
|
|
24908
|
-
|
|
24909
|
-
|
|
24910
|
-
|
|
24911
|
-
function v4(options, buf, offset) {
|
|
24912
|
-
if (_native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID && !buf && !options) {
|
|
24913
|
-
return _native_js__WEBPACK_IMPORTED_MODULE_0__["default"].randomUUID();
|
|
24914
|
-
}
|
|
24915
|
-
|
|
24916
|
-
options = options || {};
|
|
24917
|
-
const rnds = options.random || (options.rng || _rng_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
24918
|
-
|
|
24919
|
-
rnds[6] = rnds[6] & 0x0f | 0x40;
|
|
24920
|
-
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
|
24921
|
-
|
|
24922
|
-
if (buf) {
|
|
24923
|
-
offset = offset || 0;
|
|
24924
|
-
|
|
24925
|
-
for (let i = 0; i < 16; ++i) {
|
|
24926
|
-
buf[offset + i] = rnds[i];
|
|
24927
|
-
}
|
|
24928
|
-
|
|
24929
|
-
return buf;
|
|
24930
|
-
}
|
|
24931
|
-
|
|
24932
|
-
return (0,_stringify_js__WEBPACK_IMPORTED_MODULE_2__.unsafeStringify)(rnds);
|
|
24933
|
-
}
|
|
24934
|
-
|
|
24935
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (v4);
|
|
24936
|
-
|
|
24937
|
-
/***/ }),
|
|
24938
|
-
|
|
24939
|
-
/***/ "./node_modules/uuid/dist/esm-browser/validate.js":
|
|
24940
|
-
/*!********************************************************!*\
|
|
24941
|
-
!*** ./node_modules/uuid/dist/esm-browser/validate.js ***!
|
|
24942
|
-
\********************************************************/
|
|
24943
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24944
|
-
|
|
24945
|
-
"use strict";
|
|
24946
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24947
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24948
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24949
|
-
/* harmony export */ });
|
|
24950
|
-
/* harmony import */ var _regex_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./regex.js */ "./node_modules/uuid/dist/esm-browser/regex.js");
|
|
24951
|
-
|
|
24952
|
-
|
|
24953
|
-
function validate(uuid) {
|
|
24954
|
-
return typeof uuid === 'string' && _regex_js__WEBPACK_IMPORTED_MODULE_0__["default"].test(uuid);
|
|
24955
|
-
}
|
|
24956
|
-
|
|
24957
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (validate);
|
|
24958
|
-
|
|
24959
|
-
/***/ }),
|
|
24960
|
-
|
|
24961
|
-
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/beep.wav":
|
|
24962
|
-
/*!**************************************************************************!*\
|
|
24963
|
-
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/beep.wav ***!
|
|
24964
|
-
\**************************************************************************/
|
|
24965
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
24966
|
-
|
|
24967
|
-
"use strict";
|
|
24968
|
-
module.exports = __webpack_require__.p + "beep.wav";
|
|
24969
|
-
|
|
24970
|
-
/***/ }),
|
|
24971
|
-
|
|
24972
|
-
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/dtmf.wav":
|
|
24973
|
-
/*!**************************************************************************!*\
|
|
24974
|
-
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/dtmf.wav ***!
|
|
24975
|
-
\**************************************************************************/
|
|
24976
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
24977
|
-
|
|
24978
|
-
"use strict";
|
|
24979
|
-
module.exports = __webpack_require__.p + "dtmf.wav";
|
|
24980
|
-
|
|
24981
|
-
/***/ }),
|
|
24982
|
-
|
|
24983
|
-
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringbacktone.wav":
|
|
24984
|
-
/*!**********************************************************************************!*\
|
|
24985
|
-
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringbacktone.wav ***!
|
|
24986
|
-
\**********************************************************************************/
|
|
24987
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
24988
|
-
|
|
24989
|
-
"use strict";
|
|
24990
|
-
module.exports = __webpack_require__.p + "ringbacktone.wav";
|
|
24991
|
-
|
|
24992
|
-
/***/ }),
|
|
24993
|
-
|
|
24994
|
-
/***/ "./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringtone.wav":
|
|
24995
|
-
/*!******************************************************************************!*\
|
|
24996
|
-
!*** ./node_modules/@exotel-npm-dev/webrtc-core-sdk/src/static/ringtone.wav ***!
|
|
24997
|
-
\******************************************************************************/
|
|
24998
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
24999
|
-
|
|
25000
|
-
"use strict";
|
|
25001
|
-
module.exports = __webpack_require__.p + "ringtone.wav";
|
|
25002
|
-
|
|
25003
25003
|
/***/ })
|
|
25004
25004
|
|
|
25005
25005
|
/******/ });
|
|
@@ -25075,26 +25075,26 @@ module.exports = __webpack_require__.p + "ringtone.wav";
|
|
|
25075
25075
|
/******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
|
|
25076
25076
|
/******/ var document = __webpack_require__.g.document;
|
|
25077
25077
|
/******/ if (!scriptUrl && document) {
|
|
25078
|
-
/******/ if (document.currentScript)
|
|
25078
|
+
/******/ if (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')
|
|
25079
25079
|
/******/ scriptUrl = document.currentScript.src;
|
|
25080
25080
|
/******/ if (!scriptUrl) {
|
|
25081
25081
|
/******/ var scripts = document.getElementsByTagName("script");
|
|
25082
25082
|
/******/ if(scripts.length) {
|
|
25083
25083
|
/******/ var i = scripts.length - 1;
|
|
25084
|
-
/******/ while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;
|
|
25084
|
+
/******/ while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;
|
|
25085
25085
|
/******/ }
|
|
25086
25086
|
/******/ }
|
|
25087
25087
|
/******/ }
|
|
25088
25088
|
/******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
|
|
25089
25089
|
/******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
|
|
25090
25090
|
/******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
|
|
25091
|
-
/******/ scriptUrl = scriptUrl.replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
25091
|
+
/******/ scriptUrl = scriptUrl.replace(/^blob:/, "").replace(/#.*$/, "").replace(/\?.*$/, "").replace(/\/[^\/]+$/, "/");
|
|
25092
25092
|
/******/ __webpack_require__.p = scriptUrl;
|
|
25093
25093
|
/******/ })();
|
|
25094
25094
|
/******/
|
|
25095
25095
|
/************************************************************************/
|
|
25096
25096
|
var __webpack_exports__ = {};
|
|
25097
|
-
// This entry
|
|
25097
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
25098
25098
|
(() => {
|
|
25099
25099
|
"use strict";
|
|
25100
25100
|
/*!******************!*\
|