@microsoft/ocsdk 0.5.19-main.bee1915 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SDK.js +1 -1
- package/dist/SDK.min.js +1 -1
- package/package.json +1 -1
package/dist/SDK.js
CHANGED
|
@@ -8801,7 +8801,7 @@ module.exports = g;
|
|
|
8801
8801
|
/*! exports provided: name, version, description, files, main, types, scripts, repository, keywords, author, license, devDependencies, dependencies, default */
|
|
8802
8802
|
/***/ (function(module) {
|
|
8803
8803
|
|
|
8804
|
-
module.exports = JSON.parse("{\"name\":\"@microsoft/ocsdk\",\"version\":\"0.5.19
|
|
8804
|
+
module.exports = JSON.parse("{\"name\":\"@microsoft/ocsdk\",\"version\":\"0.5.19\",\"description\":\"Microsoft Omnichannel SDK\",\"files\":[\"dist/**/*\",\"lib/**/*\"],\"main\":\"lib/index.js\",\"types\":\"lib/index.d.ts\",\"scripts\":{\"test\":\"karma start karma.conf.js\",\"start\":\"webpack-dev-server\",\"watch\":\"webpack --watch --config webpack.config.js --mode development\",\"build:tsc\":\"tsc --project tsconfig.json\",\"build:babel\":\"babel src --extensions .js,.ts --out-dir lib --verbose\",\"build:dev\":\"webpack --config webpack.config.js --mode development\",\"build:prod\":\"export NODE_OPTIONS=--openssl-legacy-provider && npm run build:tsc && npm run build:babel && webpack --config webpack.config.js --mode production\",\"format\":\"prettier --write \\\"src/**/*.ts\\\" \\\"src/**/*.js\\\"\",\"lint\":\"eslint src --ext .ts\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/microsoft/omnichannel-sdk.git\"},\"keywords\":[],\"author\":\"Microsoft Corporation\",\"license\":\"MIT\",\"devDependencies\":{\"@babel/cli\":\"^7.15.7\",\"@babel/core\":\"^7.15.5\",\"@babel/plugin-proposal-class-properties\":\"^7.14.5\",\"@babel/plugin-transform-runtime\":\"^7.15.0\",\"@babel/preset-env\":\"^7.15.6\",\"@babel/preset-typescript\":\"^7.15.0\",\"@dhigroup/karma-vsts-reporter\":\"^1.3.0\",\"@types/crypto-js\":\"^4.2.2\",\"@types/jasmine\":\"^3.9.1\",\"@typescript-eslint/eslint-plugin\":\"^3.10.1\",\"@typescript-eslint/parser\":\"^3.10.1\",\"axios-mock-adapter\":\"^2.0.0\",\"danger\":\"^13.0.4\",\"eslint\":\"^7.32.0\",\"eslint-plugin-security\":\"^1.4.0\",\"istanbul-instrumenter-loader\":\"^3.0.1\",\"jasmine\":\"^3.9.0\",\"karma\":\"^6.3.16\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-cli\":\"^2.0.0\",\"karma-coverage-istanbul-reporter\":\"^2.1.1\",\"karma-jasmine\":\"^2.0.1\",\"karma-spec-reporter\":\"0.0.32\",\"karma-webpack\":\"^4.0.2\",\"prettier\":\"^1.19.1\",\"ts-loader\":\"^8.4.0\",\"typescript\":\"^4.9.5\",\"webpack\":\"^4.47.0\",\"webpack-cli\":\"^3.3.12\",\"webpack-dev-server\":\"^3.11.2\",\"webpack-merge\":\"^4.2.2\"},\"dependencies\":{\"@babel/runtime\":\"^7.15.4\",\"@types/node\":\"^22.13.10\",\"axios\":\"^1.8.2\",\"axios-retry\":\"^3.9.1\",\"crypto-js\":\"^4.2.0\"}}");
|
|
8805
8805
|
|
|
8806
8806
|
/***/ }),
|
|
8807
8807
|
|
package/dist/SDK.min.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*/
|
|
8
8
|
var r=n(36),o=n(37),i=n(38);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return j(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return O(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return b(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var d=!0,f=0;f<u;f++)if(c(e,i+f)!==c(t,f)){d=!1;break}if(d)return i}return-1}function T(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,r){return H(j(t,e.length-n),e,n,r)}function C(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return C(e,t,n,r)}function S(e,t,n,r){return H(G(t),e,n,r)}function R(e,t,n,r){return H(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function b(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function O(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=n)switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),d=0;d<s;++d)if(c[d]!==l[d]){i=c[d],a=l[d];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return T(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function L(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=B(e[i]);return o}function D(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function x(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function k(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function _(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||_(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return i||_(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):k(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);N(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):k(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:j(new u(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function G(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(7))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(l(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){
|
|
9
9
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserInfo=t.UNKNOWN_VERSION=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=n(8);t.UNKNOWN_VERSION="U";var u=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"getUserAgent",value:function(){return this.userAgent()}},{key:"userAgentContainsString",value:function(e){return this.getUserAgent().indexOf(e)>-1}},{key:"isChrome",value:function(){return this.userAgentContainsString(s.BrowserVendor.CHROME)&&!this.userAgentContainsString(s.BrowserVendor.EDGE)&&!this.userAgentContainsString(s.BrowserVendor.EDGE_CHROMIUM)}},{key:"isIe",value:function(){return this.userAgentContainsString("Trident")}},{key:"isEdge",value:function(){return this.userAgentContainsString(s.BrowserVendor.EDGE)||this.userAgentContainsString(s.BrowserVendor.EDGE_CHROMIUM)}},{key:"isOpera",value:function(){return this.userAgentContainsString("OPR/")}},{key:"getBrowserName",value:function(){return this.isOpera()?s.BrowserVendor.OPERA:this.isEdge()?s.BrowserVendor.EDGE:this.isChrome()?s.BrowserVendor.CHROME:this.userAgentContainsString(s.BrowserVendor.FIREFOX)?s.BrowserVendor.FIREFOX:this.userAgentContainsString(s.BrowserVendor.SAFARI)?s.BrowserVendor.SAFARI:this.isIe()?s.BrowserVendor.IE:s.BrowserVendor.UNKNOWN}},{key:"getBrowserVersion",value:function(){var e=this;return this.isIe()?function(){var t=e.getUserAgent(),n=t.match(new RegExp(s.BrowserVendor.IE+" ([\\d,.]+)"));if(n)return n[1];var r=t.match(new RegExp("rv:([\\d,.]+)"));return r?r[1]:void 0}():function(t){t===s.BrowserVendor.SAFARI&&(t="Version"),t===s.BrowserVendor.OPERA&&(t="OPR"),t===s.BrowserVendor.EDGE&&(t="Edge?");var n=e.getUserAgent().match(new RegExp(t+"/([\\d,.]+)"));return n?n[1]:"U"}(this.getBrowserName())}}]),e}();t.BrowserInfo=u,(0,a.default)(u,"userAgent",(function(){return window.navigator.userAgent}))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContextData=void 0;var o=r(n(3)),i=r(n(4)),a=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"sort",value:function(e){var t=new Array;return Object.keys(e).forEach((function(n){if(e&&e["".concat(n)]){var r={key:n,value:e["".concat(n)]};t.push(r)}})),t.sort((function(e,t){var n=e.key.toUpperCase(),r=t.key.toUpperCase();return n<r?-1:n>r?1:0})),t}}]),e}();t.CustomContextData=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceInfo=void 0;var o=r(n(3)),i=r(n(4)),a=n(8),s=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"getDeviceType",value:function(){return window.navigator.userAgent.match(/(android|ipod|windows phone|wpdesktop|windows ce|blackberry\w*|meego|webos|palm|symbian|pda|\w*?mobile\w*?|\w*?phone\w*?)/i)?a.DeviceType.Mobile:window.navigator.userAgent.match(/tablet|ipad/i)?a.DeviceType.Tablet:a.DeviceType.Desktop}}]),e}();t.DeviceInfo=s},function(e,t,n){var r;e.exports=(r=n(17),r.enc.Hex)},function(e,t){},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3)),i=r(n(5)),a=function e(){(0,o.default)(this,e)};t.default=a,(0,i.default)(a,"supportedLocales",["ar-sa","bg-bg","ca-es","cs-cz","da-dk","de-de","el-gr","en-us","es-es","et-ee","eu-es","fi-fi","fr-fr","gl-es","he-il","hi-in","hr-hr","hu-hu","id-id","it-it","ja-jp","kk-kz","ko-kr","lt-lt","lv-lv","ms-my","nb-no","nl-nl","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sl-si","sr-cyrl-cs","sr-latn-cs","sv-se","th-th","tr-tr","uk-ua","vi-vn","zh-cn","zh-hk","zh-tw"])},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,t.LogLevel=r,function(e){e.INFO="INFO",e.DEBUG="DEBUG",e.WARN="WARN",e.ERROR="ERROR"}(r||(t.LogLevel=r={}))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingSanitizer=void 0;var o=r(n(10)),i=r(n(3)),a=r(n(4)),s=r(n(5)),u=r(n(9)),c=r(n(13)),l=function(){function e(){(0,i.default)(this,e)}return(0,a.default)(e,null,[{key:"stripCustomContextDataValues",value:function(e){var t;e&&(null===(t=Object.keys(e))||void 0===t||t.forEach((function(t){var n;null!==(n=e["".concat(t)])&&void 0!==n&&n.value&&(e["".concat(t)].value=u.default.hiddenContentPlaceholder)})))}},{key:"stripPreChatResponse",value:function(e){e&&Object.keys(e).forEach((function(t){e["".concat(t)]&&"Type"!==t&&(e["".concat(t)]=u.default.hiddenContentPlaceholder)}))}},{key:"stripGeolocation",value:function(e){e&&(Object.keys(e).includes("longitude")&&(e.longitude=u.default.hiddenContentPlaceholder),Object.keys(e).includes("latitude")&&(e.latitude=u.default.hiddenContentPlaceholder))}},{key:"stripAuthenticationUserToken",value:function(e){e&&(Object.keys(e).includes(c.default.authenticatedUserToken)&&(e[c.default.authenticatedUserToken]=u.default.hiddenContentPlaceholder),Object.keys(e).includes(c.default.authCodeNonce)&&(e[c.default.authCodeNonce]=u.default.hiddenContentPlaceholder),Object.keys(e).includes(c.default.authorization)&&(e[c.default.authorization]=u.default.hiddenContentPlaceholder))}},{key:"stripRequestHeadersSensitiveProperties",value:function(t){e.stripAuthenticationUserToken(t),Object.keys(t).includes(c.default.authorization)&&(t[c.default.authorization]=u.default.hiddenContentPlaceholder)}},{key:"stripRequestPayloadData",value:function(t){if(null!=t&&t.data){var n;if("string"==typeof t.data)try{n=JSON.parse(t.data)}catch(e){n=void 0}n&&(Object.keys(n).includes("preChatResponse")&&e.stripPreChatResponse(n.preChatResponse),Object.keys(n).includes("customContextData")&&e.stripCustomContextDataValues(n.customContextData),e.stripGeolocation(n),t.data=JSON.stringify(n),t.data=e.stripEmailDataFromError(t.data))}}},{key:"stripEmailDataFromError",value:function(e){return e=e.replace(this.emailRegex,u.default.hiddenContentPlaceholder)}},{key:"stripAxiosErrorSensitiveProperties",value:function(t){if(t.isAxiosError){var n,r,o,i,a,s,u,c,l,d;if(null!=t&&null!==(n=t.config)&&void 0!==n&&n.headers)e.stripAuthenticationUserToken(null==t||null===(u=t.config)||void 0===u?void 0:u.headers);if(null!=t&&null!==(r=t.config)&&void 0!==r&&r.data&&this.stripRequestPayloadData(null==t?void 0:t.config),null!=t&&null!==(o=t.response)&&void 0!==o&&null!==(i=o.config)&&void 0!==i&&i.data)this.stripRequestPayloadData(null==t||null===(c=t.response)||void 0===c?void 0:c.config);if(null!=t&&null!==(a=t.response)&&void 0!==a&&null!==(s=a.config)&&void 0!==s&&s.headers)e.stripAuthenticationUserToken(null==t||null===(l=t.response)||void 0===l||null===(d=l.config)||void 0===d?void 0:d.headers)}}},{key:"stripErrorSensitiveProperties",value:function(e){var t;e&&"object"===(0,o.default)(e)&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&this.stripAxiosErrorSensitiveProperties(e)}}]),e}();t.LoggingSanitizer=l,(0,s.default)(l,"emailRegex",/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.OSInfo=void 0;var o=r(n(3)),i=r(n(4)),a=n(8),s=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"getOsType",value:function(){var e=function(){return window.navigator.userAgent};return e().match(/windows\sphone\s\d+\.\d+/i)?a.OperatingSystem.WINDOWS_PHONE:e().match(/ arm;/i)?a.OperatingSystem.WINDOWS_RT:e().match(/(iPad|iPhone|iPod)(?=.*like Mac OS X)/i)?a.OperatingSystem.IOS:e().match(/android/i)?a.OperatingSystem.ANDROID:e().match(/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|cros)/i)?a.OperatingSystem.LINUX:e().match(/(macintosh|mac os x)/i)?a.OperatingSystem.MACOSX:e().match(/(windows|win32)/i)?a.OperatingSystem.WINDOWS:a.OperatingSystem.UNKNOWN}}]),e}();t.OSInfo=s},function(e,t,n){var r;e.exports=(r=n(17),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=c[h-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[h]=g+c[h-7]+m+c[h-16]}var E=r&o^r&i^o&i,T=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),y=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+u[h]+c[h];f=d,d=l,l=s,s=a+y|0,a=i,i=o,o=r,r=y+(T+E)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var o=r(n(3)),i=r(n(4)),a=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"TIMER",value:function(){var e=(new Date).getTime();return{get milliSecondsElapsed(){return(new Date).getTime()-e}}}}]),e}();t.Timer=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.addOcUserAgentHeader=void 0;var o=r(n(51)),i=r(n(13));t.addOcUserAgentHeader=function(e,t){var r=n(56).version,a="ocsdk/".concat(r);t["".concat(i.default.ocUserAgent)]=[].concat((0,o.default)(e),[a]).join(" ")}},function(e,t,n){var r=n(52),o=n(53),i=n(54),a=n(55);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(19);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(19);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e){e.exports=JSON.parse('{"name":"@microsoft/ocsdk","version":"0.5.19-main.bee1915","description":"Microsoft Omnichannel SDK","files":["dist/**/*","lib/**/*"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"karma start karma.conf.js","start":"webpack-dev-server","watch":"webpack --watch --config webpack.config.js --mode development","build:tsc":"tsc --project tsconfig.json","build:babel":"babel src --extensions .js,.ts --out-dir lib --verbose","build:dev":"webpack --config webpack.config.js --mode development","build:prod":"export NODE_OPTIONS=--openssl-legacy-provider && npm run build:tsc && npm run build:babel && webpack --config webpack.config.js --mode production","format":"prettier --write \\"src/**/*.ts\\" \\"src/**/*.js\\"","lint":"eslint src --ext .ts"},"repository":{"type":"git","url":"https://github.com/microsoft/omnichannel-sdk.git"},"keywords":[],"author":"Microsoft Corporation","license":"MIT","devDependencies":{"@babel/cli":"^7.15.7","@babel/core":"^7.15.5","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-transform-runtime":"^7.15.0","@babel/preset-env":"^7.15.6","@babel/preset-typescript":"^7.15.0","@dhigroup/karma-vsts-reporter":"^1.3.0","@types/crypto-js":"^4.2.2","@types/jasmine":"^3.9.1","@typescript-eslint/eslint-plugin":"^3.10.1","@typescript-eslint/parser":"^3.10.1","axios-mock-adapter":"^2.0.0","danger":"^13.0.4","eslint":"^7.32.0","eslint-plugin-security":"^1.4.0","istanbul-instrumenter-loader":"^3.0.1","jasmine":"^3.9.0","karma":"^6.3.16","karma-chrome-launcher":"^3.1.0","karma-cli":"^2.0.0","karma-coverage-istanbul-reporter":"^2.1.1","karma-jasmine":"^2.0.1","karma-spec-reporter":"0.0.32","karma-webpack":"^4.0.2","prettier":"^1.19.1","ts-loader":"^8.4.0","typescript":"^4.9.5","webpack":"^4.47.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.2","webpack-merge":"^4.2.2"},"dependencies":{"@babel/runtime":"^7.15.4","@types/node":"^22.13.10","axios":"^1.8.2","axios-retry":"^3.9.1","crypto-js":"^4.2.0"}}')},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.createGetChatTokenEndpoint=void 0;var o=r(n(5)),i=n(8),a=r(n(18));t.createGetChatTokenEndpoint=function(e,t,n){var r,s,u=(r={},(0,o.default)(r,i.LiveChatVersion.V1,a.default.LiveChatGetChatTokenPath),(0,o.default)(r,i.LiveChatVersion.V2,a.default.LiveChatv2GetChatTokenPath),(0,o.default)(r,i.LiveChatVersion.V3,a.default.LiveChatv3GetChatTokenPath),r),c=(s={},(0,o.default)(s,i.LiveChatVersion.V1,a.default.LiveChatAuthGetChatTokenPath),(0,o.default)(s,i.LiveChatVersion.V2,a.default.LiveChatv2AuthGetChatTokenPath),(0,o.default)(s,i.LiveChatVersion.V3,a.default.LiveChatv3AuthGetChatTokenPath),s);return n?t?a.default.LiveChatv4AuthGetChatTokenPath:a.default.LiveChatv4GetChatTokenPath:Object.values(i.LiveChatVersion).includes(e)?t?c[e]:u[e]:t?c[i.LiveChatVersion.V2]:u[i.LiveChatVersion.V2]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(21)),i=function(e,t){try{if(o.default.isAxiosError(e)&&e.code==t)return!0}catch(e){return!1}return!1};t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(9)),i=n(16),a=n(15),s=function(e,t){var n,r,s,u,c,l,d;if(null!=e&&null!==(n=e.response)&&void 0!==n&&n.status)switch(e.response.status){case o.default.tooManyRequestsStatusCode:if(!1===t)return!1;break;case o.default.badRequestStatusCode:if(null!==(r=e.response)&&void 0!==r&&null!==(s=r.headers)&&void 0!==s&&s.errorcode&&parseInt(e.response.headers.errorcode)===o.default.outOfOfficeErrorCode)return!1;break;default:return(0,a.isRetryableError)(e)||(0,i.isNetworkError)(e)||0==(null===(u=e.response)||void 0===u?void 0:u.status)||!(null!==(c=e.response)&&void 0!==c&&c.status)}return(0,a.isRetryableError)(e)||(0,i.isNetworkError)(e)||0==(null===(l=e.response)||void 0===l?void 0:l.status)||!(null!==(d=e.response)&&void 0!==d&&d.status)};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitTimeBetweenRetriesConfigs=void 0;t.waitTimeBetweenRetriesConfigs={getChatConfig:1e3,getLWIDetails:3e3,getChatToken:1e3,sessionInit:1e3,sessionClose:1e3,getReconnectableChats:1e3,getReconnectAvailability:1e3,submitPostChatResponse:1e3,getSurveyInviteLink:1e3,getChatTranscripts:1e3,emailTranscript:1e3,fetchDataMaskingInfo:1e3,makeSecondaryChannelEventRequest:1e3,getAgentAvailability:1e3,sendTypingIndicator:1e3,validateAuthChatRecordTimeout:1e3,getPersistentChatHistory:1e3}}]));
|
|
10
|
+
t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,c=u>>1,l=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,d=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[n+h]=255&a,h+=p,a/=256,c-=8);e[n+h-p]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserInfo=t.UNKNOWN_VERSION=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=n(8);t.UNKNOWN_VERSION="U";var u=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"getUserAgent",value:function(){return this.userAgent()}},{key:"userAgentContainsString",value:function(e){return this.getUserAgent().indexOf(e)>-1}},{key:"isChrome",value:function(){return this.userAgentContainsString(s.BrowserVendor.CHROME)&&!this.userAgentContainsString(s.BrowserVendor.EDGE)&&!this.userAgentContainsString(s.BrowserVendor.EDGE_CHROMIUM)}},{key:"isIe",value:function(){return this.userAgentContainsString("Trident")}},{key:"isEdge",value:function(){return this.userAgentContainsString(s.BrowserVendor.EDGE)||this.userAgentContainsString(s.BrowserVendor.EDGE_CHROMIUM)}},{key:"isOpera",value:function(){return this.userAgentContainsString("OPR/")}},{key:"getBrowserName",value:function(){return this.isOpera()?s.BrowserVendor.OPERA:this.isEdge()?s.BrowserVendor.EDGE:this.isChrome()?s.BrowserVendor.CHROME:this.userAgentContainsString(s.BrowserVendor.FIREFOX)?s.BrowserVendor.FIREFOX:this.userAgentContainsString(s.BrowserVendor.SAFARI)?s.BrowserVendor.SAFARI:this.isIe()?s.BrowserVendor.IE:s.BrowserVendor.UNKNOWN}},{key:"getBrowserVersion",value:function(){var e=this;return this.isIe()?function(){var t=e.getUserAgent(),n=t.match(new RegExp(s.BrowserVendor.IE+" ([\\d,.]+)"));if(n)return n[1];var r=t.match(new RegExp("rv:([\\d,.]+)"));return r?r[1]:void 0}():function(t){t===s.BrowserVendor.SAFARI&&(t="Version"),t===s.BrowserVendor.OPERA&&(t="OPR"),t===s.BrowserVendor.EDGE&&(t="Edge?");var n=e.getUserAgent().match(new RegExp(t+"/([\\d,.]+)"));return n?n[1]:"U"}(this.getBrowserName())}}]),e}();t.BrowserInfo=u,(0,a.default)(u,"userAgent",(function(){return window.navigator.userAgent}))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.CustomContextData=void 0;var o=r(n(3)),i=r(n(4)),a=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"sort",value:function(e){var t=new Array;return Object.keys(e).forEach((function(n){if(e&&e["".concat(n)]){var r={key:n,value:e["".concat(n)]};t.push(r)}})),t.sort((function(e,t){var n=e.key.toUpperCase(),r=t.key.toUpperCase();return n<r?-1:n>r?1:0})),t}}]),e}();t.CustomContextData=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.DeviceInfo=void 0;var o=r(n(3)),i=r(n(4)),a=n(8),s=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"getDeviceType",value:function(){return window.navigator.userAgent.match(/(android|ipod|windows phone|wpdesktop|windows ce|blackberry\w*|meego|webos|palm|symbian|pda|\w*?mobile\w*?|\w*?phone\w*?)/i)?a.DeviceType.Mobile:window.navigator.userAgent.match(/tablet|ipad/i)?a.DeviceType.Tablet:a.DeviceType.Desktop}}]),e}();t.DeviceInfo=s},function(e,t,n){var r;e.exports=(r=n(17),r.enc.Hex)},function(e,t){},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(3)),i=r(n(5)),a=function e(){(0,o.default)(this,e)};t.default=a,(0,i.default)(a,"supportedLocales",["ar-sa","bg-bg","ca-es","cs-cz","da-dk","de-de","el-gr","en-us","es-es","et-ee","eu-es","fi-fi","fr-fr","gl-es","he-il","hi-in","hr-hr","hu-hu","id-id","it-it","ja-jp","kk-kz","ko-kr","lt-lt","lv-lv","ms-my","nb-no","nl-nl","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sl-si","sr-cyrl-cs","sr-latn-cs","sv-se","th-th","tr-tr","uk-ua","vi-vn","zh-cn","zh-hk","zh-tw"])},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,t.LogLevel=r,function(e){e.INFO="INFO",e.DEBUG="DEBUG",e.WARN="WARN",e.ERROR="ERROR"}(r||(t.LogLevel=r={}))},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingSanitizer=void 0;var o=r(n(10)),i=r(n(3)),a=r(n(4)),s=r(n(5)),u=r(n(9)),c=r(n(13)),l=function(){function e(){(0,i.default)(this,e)}return(0,a.default)(e,null,[{key:"stripCustomContextDataValues",value:function(e){var t;e&&(null===(t=Object.keys(e))||void 0===t||t.forEach((function(t){var n;null!==(n=e["".concat(t)])&&void 0!==n&&n.value&&(e["".concat(t)].value=u.default.hiddenContentPlaceholder)})))}},{key:"stripPreChatResponse",value:function(e){e&&Object.keys(e).forEach((function(t){e["".concat(t)]&&"Type"!==t&&(e["".concat(t)]=u.default.hiddenContentPlaceholder)}))}},{key:"stripGeolocation",value:function(e){e&&(Object.keys(e).includes("longitude")&&(e.longitude=u.default.hiddenContentPlaceholder),Object.keys(e).includes("latitude")&&(e.latitude=u.default.hiddenContentPlaceholder))}},{key:"stripAuthenticationUserToken",value:function(e){e&&(Object.keys(e).includes(c.default.authenticatedUserToken)&&(e[c.default.authenticatedUserToken]=u.default.hiddenContentPlaceholder),Object.keys(e).includes(c.default.authCodeNonce)&&(e[c.default.authCodeNonce]=u.default.hiddenContentPlaceholder),Object.keys(e).includes(c.default.authorization)&&(e[c.default.authorization]=u.default.hiddenContentPlaceholder))}},{key:"stripRequestHeadersSensitiveProperties",value:function(t){e.stripAuthenticationUserToken(t),Object.keys(t).includes(c.default.authorization)&&(t[c.default.authorization]=u.default.hiddenContentPlaceholder)}},{key:"stripRequestPayloadData",value:function(t){if(null!=t&&t.data){var n;if("string"==typeof t.data)try{n=JSON.parse(t.data)}catch(e){n=void 0}n&&(Object.keys(n).includes("preChatResponse")&&e.stripPreChatResponse(n.preChatResponse),Object.keys(n).includes("customContextData")&&e.stripCustomContextDataValues(n.customContextData),e.stripGeolocation(n),t.data=JSON.stringify(n),t.data=e.stripEmailDataFromError(t.data))}}},{key:"stripEmailDataFromError",value:function(e){return e=e.replace(this.emailRegex,u.default.hiddenContentPlaceholder)}},{key:"stripAxiosErrorSensitiveProperties",value:function(t){if(t.isAxiosError){var n,r,o,i,a,s,u,c,l,d;if(null!=t&&null!==(n=t.config)&&void 0!==n&&n.headers)e.stripAuthenticationUserToken(null==t||null===(u=t.config)||void 0===u?void 0:u.headers);if(null!=t&&null!==(r=t.config)&&void 0!==r&&r.data&&this.stripRequestPayloadData(null==t?void 0:t.config),null!=t&&null!==(o=t.response)&&void 0!==o&&null!==(i=o.config)&&void 0!==i&&i.data)this.stripRequestPayloadData(null==t||null===(c=t.response)||void 0===c?void 0:c.config);if(null!=t&&null!==(a=t.response)&&void 0!==a&&null!==(s=a.config)&&void 0!==s&&s.headers)e.stripAuthenticationUserToken(null==t||null===(l=t.response)||void 0===l||null===(d=l.config)||void 0===d?void 0:d.headers)}}},{key:"stripErrorSensitiveProperties",value:function(e){var t;e&&"object"===(0,o.default)(e)&&(null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0&&this.stripAxiosErrorSensitiveProperties(e)}}]),e}();t.LoggingSanitizer=l,(0,s.default)(l,"emailRegex",/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.OSInfo=void 0;var o=r(n(3)),i=r(n(4)),a=n(8),s=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"getOsType",value:function(){var e=function(){return window.navigator.userAgent};return e().match(/windows\sphone\s\d+\.\d+/i)?a.OperatingSystem.WINDOWS_PHONE:e().match(/ arm;/i)?a.OperatingSystem.WINDOWS_RT:e().match(/(iPad|iPhone|iPod)(?=.*like Mac OS X)/i)?a.OperatingSystem.IOS:e().match(/android/i)?a.OperatingSystem.ANDROID:e().match(/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|cros)/i)?a.OperatingSystem.LINUX:e().match(/(macintosh|mac os x)/i)?a.OperatingSystem.MACOSX:e().match(/(windows|win32)/i)?a.OperatingSystem.WINDOWS:a.OperatingSystem.UNKNOWN}}]),e}();t.OSInfo=s},function(e,t,n){var r;e.exports=(r=n(17),function(e){var t=r,n=t.lib,o=n.WordArray,i=n.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,o=0;o<64;)t(r)&&(o<8&&(s[o]=n(e.pow(r,.5))),u[o]=n(e.pow(r,1/3)),o++),r++}();var c=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],d=n[6],f=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=c[h-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[h]=g+c[h-7]+m+c[h-16]}var E=r&o^r&i^o&i,T=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),y=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+u[h]+c[h];f=d,d=l,l=s,s=a+y|0,a=i,i=o,o=r,r=y+(T+E)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256)},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0;var o=r(n(3)),i=r(n(4)),a=function(){function e(){(0,o.default)(this,e)}return(0,i.default)(e,null,[{key:"TIMER",value:function(){var e=(new Date).getTime();return{get milliSecondsElapsed(){return(new Date).getTime()-e}}}}]),e}();t.Timer=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.addOcUserAgentHeader=void 0;var o=r(n(51)),i=r(n(13));t.addOcUserAgentHeader=function(e,t){var r=n(56).version,a="ocsdk/".concat(r);t["".concat(i.default.ocUserAgent)]=[].concat((0,o.default)(e),[a]).join(" ")}},function(e,t,n){var r=n(52),o=n(53),i=n(54),a=n(55);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(19);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){var r=n(19);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.default=e.exports,e.exports.__esModule=!0},function(e){e.exports=JSON.parse('{"name":"@microsoft/ocsdk","version":"0.5.19","description":"Microsoft Omnichannel SDK","files":["dist/**/*","lib/**/*"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"karma start karma.conf.js","start":"webpack-dev-server","watch":"webpack --watch --config webpack.config.js --mode development","build:tsc":"tsc --project tsconfig.json","build:babel":"babel src --extensions .js,.ts --out-dir lib --verbose","build:dev":"webpack --config webpack.config.js --mode development","build:prod":"export NODE_OPTIONS=--openssl-legacy-provider && npm run build:tsc && npm run build:babel && webpack --config webpack.config.js --mode production","format":"prettier --write \\"src/**/*.ts\\" \\"src/**/*.js\\"","lint":"eslint src --ext .ts"},"repository":{"type":"git","url":"https://github.com/microsoft/omnichannel-sdk.git"},"keywords":[],"author":"Microsoft Corporation","license":"MIT","devDependencies":{"@babel/cli":"^7.15.7","@babel/core":"^7.15.5","@babel/plugin-proposal-class-properties":"^7.14.5","@babel/plugin-transform-runtime":"^7.15.0","@babel/preset-env":"^7.15.6","@babel/preset-typescript":"^7.15.0","@dhigroup/karma-vsts-reporter":"^1.3.0","@types/crypto-js":"^4.2.2","@types/jasmine":"^3.9.1","@typescript-eslint/eslint-plugin":"^3.10.1","@typescript-eslint/parser":"^3.10.1","axios-mock-adapter":"^2.0.0","danger":"^13.0.4","eslint":"^7.32.0","eslint-plugin-security":"^1.4.0","istanbul-instrumenter-loader":"^3.0.1","jasmine":"^3.9.0","karma":"^6.3.16","karma-chrome-launcher":"^3.1.0","karma-cli":"^2.0.0","karma-coverage-istanbul-reporter":"^2.1.1","karma-jasmine":"^2.0.1","karma-spec-reporter":"0.0.32","karma-webpack":"^4.0.2","prettier":"^1.19.1","ts-loader":"^8.4.0","typescript":"^4.9.5","webpack":"^4.47.0","webpack-cli":"^3.3.12","webpack-dev-server":"^3.11.2","webpack-merge":"^4.2.2"},"dependencies":{"@babel/runtime":"^7.15.4","@types/node":"^22.13.10","axios":"^1.8.2","axios-retry":"^3.9.1","crypto-js":"^4.2.0"}}')},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.createGetChatTokenEndpoint=void 0;var o=r(n(5)),i=n(8),a=r(n(18));t.createGetChatTokenEndpoint=function(e,t,n){var r,s,u=(r={},(0,o.default)(r,i.LiveChatVersion.V1,a.default.LiveChatGetChatTokenPath),(0,o.default)(r,i.LiveChatVersion.V2,a.default.LiveChatv2GetChatTokenPath),(0,o.default)(r,i.LiveChatVersion.V3,a.default.LiveChatv3GetChatTokenPath),r),c=(s={},(0,o.default)(s,i.LiveChatVersion.V1,a.default.LiveChatAuthGetChatTokenPath),(0,o.default)(s,i.LiveChatVersion.V2,a.default.LiveChatv2AuthGetChatTokenPath),(0,o.default)(s,i.LiveChatVersion.V3,a.default.LiveChatv3AuthGetChatTokenPath),s);return n?t?a.default.LiveChatv4AuthGetChatTokenPath:a.default.LiveChatv4GetChatTokenPath:Object.values(i.LiveChatVersion).includes(e)?t?c[e]:u[e]:t?c[i.LiveChatVersion.V2]:u[i.LiveChatVersion.V2]}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(21)),i=function(e,t){try{if(o.default.isAxiosError(e)&&e.code==t)return!0}catch(e){return!1}return!1};t.default=i},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(9)),i=n(16),a=n(15),s=function(e,t){var n,r,s,u,c,l,d;if(null!=e&&null!==(n=e.response)&&void 0!==n&&n.status)switch(e.response.status){case o.default.tooManyRequestsStatusCode:if(!1===t)return!1;break;case o.default.badRequestStatusCode:if(null!==(r=e.response)&&void 0!==r&&null!==(s=r.headers)&&void 0!==s&&s.errorcode&&parseInt(e.response.headers.errorcode)===o.default.outOfOfficeErrorCode)return!1;break;default:return(0,a.isRetryableError)(e)||(0,i.isNetworkError)(e)||0==(null===(u=e.response)||void 0===u?void 0:u.status)||!(null!==(c=e.response)&&void 0!==c&&c.status)}return(0,a.isRetryableError)(e)||(0,i.isNetworkError)(e)||0==(null===(l=e.response)||void 0===l?void 0:l.status)||!(null!==(d=e.response)&&void 0!==d&&d.status)};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitTimeBetweenRetriesConfigs=void 0;t.waitTimeBetweenRetriesConfigs={getChatConfig:1e3,getLWIDetails:3e3,getChatToken:1e3,sessionInit:1e3,sessionClose:1e3,getReconnectableChats:1e3,getReconnectAvailability:1e3,submitPostChatResponse:1e3,getSurveyInviteLink:1e3,getChatTranscripts:1e3,emailTranscript:1e3,fetchDataMaskingInfo:1e3,makeSecondaryChannelEventRequest:1e3,getAgentAvailability:1e3,sendTypingIndicator:1e3,validateAuthChatRecordTimeout:1e3,getPersistentChatHistory:1e3}}]));
|