@tuotoo/kiwi-pc-plugin-toolbar 0.1.4 → 0.1.5
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/index.es.js +482 -489
- package/dist/index.umd.js +7 -7
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -34545,658 +34545,651 @@ const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYA
|
|
|
34545
34545
|
const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADP0lEQVR4AeyXjVHEIBCF0Uq0ErUStQM68OzgOlArUStRK9H3IZvBnJ4skHOcicO7hL/lvd2F4HH453+rgL8O4BqBNQKdHlhTqNOB3dPXCHS7sNOAOwIxxpMY43n8BO8JLTyyjRs9S1x5bLkEaKE7GX8RHjN4T1Dfi0C/uqrLjUZuZriTnXO1VZVqAdnoPu+caMUrjfOIuNacJ6G5VAvQCmcC5Wm73R7p5XSGe9Up1d6TnVdNuBWai0fAW14FTwcWL6G+B8FVovaRJpCOegTEBO+fR0DtAlWbek5eziCi7nTyCDDnpAhYpXiWAn8ak4b/QJ4+9sS9xFQLaRHAQjvQoqWAnf5Zw5Q2mofnU7feXwVEpHrNj0fARDB78Iv9WdveCGgiRydkJ/JqayrVAuQZBFhoL8vVMnnzKqeUnUjlsOldtm6FbvIYrBbAYMEETEelyONtI49XLzTuYMUhIHF6Tr8hcNJMInIbDxPI+0HgEqCwQ5BUglxKI7VRt43Hl/g7YYxfBC4BmYF9ObnQkT40Iwzwzl3G2qkvihYBEMXrkOQyFmZRoN1zH+oS6BaQye5EIbdbKhGdJK6LXcVkt4Bss4yCnUBEguOTM55hmxjj1EcDUBt3/2F7pUlA9rYdl5xIZcpwqTMRRIL/E0irIPIIoo/xj6rTx54B+67qaP8WTQKwlEVYyuDRlDK0C6QYRBkK+URWlfkJRR/EASIQqGH1pVkAS4goKQOokjJJBBX1IQKBtuEhS9eF+uz/CfqZD+gjYjaO+q/oEpCtQ9QIzEXQTqpZNK5Fnv0T9OSrzc0TEdjI5nyPbgEQ0ZIQMJKIIGWSJ+kX6Ic8gjR8XOkWABURxJuQNBHkOiLKlBpOnrWHCMAQkBBEkBKW90SDk2YSwriRGCoAYhKBp8u8J5VMCCcNJw5DSzAm1TUf8em95me4ABaFhEA0uPMjiGZIQh4R7zFGIkOa8U1ojtAiAmALJIK9QUohhKeJoRtB7BVE8aTN9hDvVVhUgDHIQuzIRAxAEEAUR+tG44iaTat6HkRAyUQkiQpAEOB45ePmJo/dgwtg0ZFYBYz0ZoutZSLQwqRxziqg0XHDpq0RGObKRkP/PgIfAAAA///EkZMiAAAABklEQVQDAOfjSnAM/aqlAAAAAElFTkSuQmCC";
|
|
34546
34546
|
const _imports_2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGO0lEQVR4AdRaW3bbOAwFlY04u5jkTN14JeP8TLOLpLuI58fuSuymc5zuIl5IbBYXlGQ9qAcfsmQewZIoEgQuAfDlhAZOT9u/Zk9v98t/f90/g7693a+/vd1t+f7BpJlwZ5I8/na/RnnQwKIJ+0EAgNJG2butvkk+NNFaaXoBEdGSSD0Q0YxMwp1J8vgbLVEeZMC52wIM8DTF4/5GBaCotFFWlAqRWIABGAASgKCNEIbVulEAgFAsnI6kdFXG4vsMbXBbH2iz+MH3OQiAp19/P0AYCOUrgGe9HAi4hycPqeYFAPwRgUzr05a5sJny7zjXDO6BToBMPiI4A4Behz+SCWQ0kTRjmbaQzVUeJwBgbmmvu7ZzifIzlm3tGht6AwDGMLdLaBLQhsQGyNqXRy8A4O8jBLq+OtTKQVaOC+vaB0tGJwCGUfB4bml68CyZfXa10gpAGlQwO+viM8nvsIQud2gEAMpzUMEwN0nl+grFICyhS1N5KwAYU69U+YNFURkdoJPlG1kB0DeqVwCxMRwp76BUslDH06KhfZ4n2HWqAWDM5ZqCnt6t5vvb1y//714Xv9kC9M4OgnqAbtVvNQC0Pj5XC031XRE9rubvTb1eE5vdumbZJQAw06NpTXGpIR3Y3G9f5/tN8TvmK9Quv2zOUCGVANBE19D7mxVMXsz9rEkP5aVwVcccANP7NObKjrqSMfn9Y7VcX+XTeiUryAHQpP9JC0zxJlG+avIQ1FF5VKGirjkA1O47NGKCvy8Q5asy+E/TzyOCAJCaf5X/BN7TIa7i7xAsldl/mq5P4u4CAAeGr2A6MeJgZx/iMJ6zzLUhzUX+zA0EAK7ojyRXHuBi5evBDu2I8mYrDq8BpIwFpKYUwChuVSWTG7vyaMk2mUG+B80AZmYBHvXjV4HytkiftWQiPknPUYR0otPXhH1pEv7fpbxZ1yucKEVQ/cwi2AK0ohfQmaX7k2Kzb+t5mKrS9EKRk9L6gQHQ3iaFJeh/X/bfk8/TD18QOpXnw1UdJejZ0WMAlA8AZmbGS1CwxTIUQLiCgPJtPQ/ew+5NqBkDQK4AHGQxkipPhQQQsErjLF6X82/7tUH5tiJmhFJBft/GH98AAO5OBJ9sqgBrYBAW/L0FBJnh1RY1XCe/sIWl+Vg9zxjmQSygRVBrq2aPjQ9GrV85MwMBJs6vlQvKvwOgSn75dVjTz9s6sAVoVwBQ24DAAQovNgIIMPEKCOw+3coPNeTV5dQAQPkAAF680ZhsYap4aSKAgNEC3/neavYoA35DDHngXSd1SLiHfAEgTr1AwFKWA6fCneu0Xhcy/VwGdoH82fehFwh9mF8i6hflUEQ/k4SSn8VMz2cBwbNuXk0PH/XztrKHhD4/Q1wg44P7jHdoPvDgQ1w3aH3v0yYmYQmiNZFuOExwZgsQnBVJ5xVL59bCKsiWusQARepHGK9S7aVrb45xGKOIxPUFADqeYllAhkRvEC4d+DIBM50FgMhukLXR6w8Kepzt+I3Rmc6nwyquGwgImNCYWZ281n7G6n2Vmj8EEgvAQ2oSsUYEYYmfNhBG6v0Doj9kA+UAwCQYme/IjE02EEbs/ZKOOQCitATDaEOisMx+GIRSTBiq97P27He9K/Y+ypQAECtQNyWEUCgS4T98S/S8GffVoBsdNpmVRbcSAKhkFizDWAHzx397n3mPz3myxHUDL+59yy5WDQC0oo4ay9boARG8mbAFB+LHi118wCo61Rq0AiCu0PyHoxqTqWcolTxCJ5ucVgBQEBUU79fj+ZqJlbcerWc6NQKAAoiYWtELXWmC7CamNSvQCgCqhRx6oP54pHfYjutqvxMAuMIVgsDH692brwCnEwAUAghAEyaF9ykT4hbvP2IU6yVmLwAyTgBBHU+3/D7UEMmsvS9zXFf572AXNycAwAzWwCAsIu4igW0o8XmD+busKyNnANAAQFjN3xcwt5GBkF5fzfewSojmTF4AZK1gmFQ8azRA0CXd4oB4BMW7hjnqSEEAgDeswQBxWkCogS0iVxzxCO2HUjAAmQAAAkKt4BocKI1VxFhU6R2AXc33iukWbWRtxrhHA6AoDMCAVawKYBhACFvRTAJM5jK4M0neBsqCUH4lSr8v2pSmwPQHAAD//xlmNnoAAAAGSURBVAMABTvLnpY7IesAAAAASUVORK5CYII=";
|
|
34547
34547
|
const _imports_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFi0lEQVR4AdxaTZKrNhBuMblH8EnezC6ZynJclV3skzznJHZ2qfJbppzs5r2T2LlHxsr3tZB/QIBBApunohEI1Orvo9USgkwGTvanX3P7y9uzfX377GS+tj/P3+3rfA+xEOb7omyNc8oC+WJg01T9IAQoaAIGUMk+9nI07yJm5UQWYuRZRHJxiXlelC1QRFkjJxGemAV1oiz5lpQAewmagB3QGKM9MWsSadVr3j7HKCzXTUKAJXAYJ2lAS0PKBW1YtGXRpiRIUQS4vj3fC4ySs0vjcPDtgog5u0zvBnsRwP7IoOX6tsAYuVdi2y5WINj2MaIzAXzq7I9F0OrT5hB1ctjEkaWzN3QiQMFrRB8CQ7ROeoMOtV003UyABp3HBe8xgwSzUlt9SUt+EwHa312ga1H3KJdBAucgN5jTSoCyaYQTF5lUgs32dc4JVaPZjQRon5/Uk69gxZS6eeJUS4CCf/w+X0FcLTALxVK9oCVBAjjOF2O83jTxXQ4sa8UUABIkQMxHa98J6HrkorwOU4UAdRcEkEdG08s2YCK2ct0KAfJhkr5tlRu86/nRVDz7igAMG4sHm+Km5itXjBdarwhAeYqnf4AeCrKk20GsfJX4dIXxREDBTB6pf2l225kcn15ELFaAIrWdq6te8/f2RTIL3ecLPY6uvOBEANj9rYeyqyoAv2GB+efPg9l9+R3HS0jcBsBeLxWZv758ha1xnmDlhPVMAKIkG4iQitsXhvcngeAJuGyUkThPBVY/IigBhftLZIJrVaedvUmoAV/YGkcAgR6N6lACcP4JkmDDtDOwVteZhDrwWF6HkWtI/FZ0A0/AIl6jagCrkSQ0gU/5blJ0o6xwKbU+0a4/CWOBd0D1g433AFeUbt+dhHHBO6RH+QQC7I/uLPn+dhLuAb6ACwJcNCzOU2ftJNwRvFjzDAJk6NRIgk5sShboGJ0y4JX0X56SgOfLgoGOa0kotzcmeLz45SSgbMNQ560kDAG+DcyYBNAWkvAvD4JSzM6C14YphAdYqczhZbjEtzp9YQo10XnGGFLSrewwpgc0gvd2j0oCHn6GQDCGBwTBs8/bFO8Onr2uuRF6gB2agFrwWK5+F4l8d5C4lImY+qAk0akFvOpnYAx+wRmhO3zLsMQ0lAfcAl4ZwO5uJGTy3w9DENAFPPDrNjoJ9LCM63diJW6NTa5SH/BewZgk6HCMGIC2nywXMHEQu9kVWS1rYbR3Aa98JXg+Fgnf2LojIFE3KFaCqfckHcH7es0kpPDY45N6vRKQqBtUYklP8K0k+Bsi8o1ihgIlALlgQvSHxCWsCp//2YsE7y2peILqxbK2v6Fnru7PumcC6BLxruX+2Xud2w59nnY0CUlYWf07dL5PoBcfbbYb3+CJAHWJNMEQBnv1SXPqpcQqvQr4JwKoVVdn4r2Aqu4mjQ0DW3mUuiJAK6fxAlX1cLsAtgoB360X8OkHvjNWCNCnZp/4QbMyrOm1ae4O+mk9YHuQAA2I+o0/UGOKRZnlAw1aHiSAdyoJIrUVec8kpOa7g7e9lgDe4CKmXfF4mmJXGtMajG8kgPXc/N5OjwQGPfeXCmHUSisBrDk9EuyqLugRz6XcRAArOBImEBPY52948sREuZkA3qwx4fg0w/EjDpEHLO+9tPV52H61dSKANXV0cEPk6YWC5XcV7e/bWVfwtLkzAaxEEuANS6E3oHGW3UncU+f/gz0N6EWAb0uJcI1zvjBmt2BbXHvs9dS9/cyjCKACCrxhA2/gH5zLxAusVH8pAI4Iv4O7787v9Jc3dD1OQgAbVW+AUTr8sGu4WWRsnDg4QhW0AdGzYjRik0kkGQGX1pzI2G2X8AyOGuwiEMsJ1UZBWeGiJJ6oOHHnIIz3QHQ4285IaBNoiUz/AwAA//878XESAAAABklEQVQDAPJDlJLj/TutAAAAAElFTkSuQmCC";
|
|
34548
|
-
const
|
|
34549
|
-
(function(
|
|
34550
|
-
const
|
|
34548
|
+
const _0x4ae588 = _0x2125;
|
|
34549
|
+
(function(_0x4a6f01, _0x523d45) {
|
|
34550
|
+
const _0xd20530 = _0x2125, _0x347cfe = _0x4a6f01();
|
|
34551
34551
|
while (!![]) {
|
|
34552
34552
|
try {
|
|
34553
|
-
const
|
|
34554
|
-
if (
|
|
34555
|
-
else
|
|
34556
|
-
} catch (
|
|
34557
|
-
|
|
34553
|
+
const _0x122c47 = -parseInt(_0xd20530(352)) / 1 * (-parseInt(_0xd20530(594)) / 2) + -parseInt(_0xd20530(452)) / 3 + parseInt(_0xd20530(649)) / 4 + -parseInt(_0xd20530(458)) / 5 * (parseInt(_0xd20530(394)) / 6) + parseInt(_0xd20530(442)) / 7 * (parseInt(_0xd20530(401)) / 8) + -parseInt(_0xd20530(544)) / 9 * (-parseInt(_0xd20530(512)) / 10) + parseInt(_0xd20530(380)) / 11;
|
|
34554
|
+
if (_0x122c47 === _0x523d45) break;
|
|
34555
|
+
else _0x347cfe["push"](_0x347cfe["shift"]());
|
|
34556
|
+
} catch (_0x556949) {
|
|
34557
|
+
_0x347cfe["push"](_0x347cfe["shift"]());
|
|
34558
34558
|
}
|
|
34559
34559
|
}
|
|
34560
|
-
})(
|
|
34561
|
-
var K = Object[
|
|
34560
|
+
})(_0x14e4, 716287);
|
|
34561
|
+
var K = Object["defineProperty"], N = (_0x360dd7, _0x3267f3, _0x9cbca2) => _0x3267f3 in _0x360dd7 ? K(_0x360dd7, _0x3267f3, { "enumerable": true, "configurable": true, "writable": true, "value": _0x9cbca2 }) : _0x360dd7[_0x3267f3] = _0x9cbca2, w = (_0x4feb91, _0x20cf99, _0x120246) => N(_0x4feb91, typeof _0x20cf99 != "symbol" ? _0x20cf99 + "" : _0x20cf99, _0x120246);
|
|
34562
34562
|
let k = false;
|
|
34563
|
-
|
|
34564
|
-
const
|
|
34565
|
-
|
|
34566
|
-
|
|
34567
|
-
|
|
34568
|
-
|
|
34569
|
-
|
|
34570
|
-
|
|
34571
|
-
|
|
34572
|
-
|
|
34563
|
+
function _0x2125(_0x4a6304, _0x443aab) {
|
|
34564
|
+
const _0x14e411 = _0x14e4();
|
|
34565
|
+
return _0x2125 = function(_0x21252e, _0x424804) {
|
|
34566
|
+
_0x21252e = _0x21252e - 348;
|
|
34567
|
+
let _0x2e3eaa = _0x14e411[_0x21252e];
|
|
34568
|
+
return _0x2e3eaa;
|
|
34569
|
+
}, _0x2125(_0x4a6304, _0x443aab);
|
|
34570
|
+
}
|
|
34571
|
+
const Y = function(_0x1a5280, _0x47d493) {
|
|
34572
|
+
const _0xebcddc = _0x2125;
|
|
34573
|
+
this["context"] = new AudioContext({ "sampleRate": 8e3 });
|
|
34574
|
+
let _0x560f0b = this[_0xebcddc(554)][_0xebcddc(619)](_0x1a5280), _0x1b04c0 = this[_0xebcddc(554)][_0xebcddc(422)](2048, 1, 1);
|
|
34575
|
+
const _0x1dbb6d = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
|
|
34576
|
+
const _0xe40866 = _0xebcddc;
|
|
34577
|
+
this[_0xe40866(643)] = [], this[_0xe40866(529)] = 0;
|
|
34578
|
+
}, "input": function(_0x59113f) {
|
|
34579
|
+
const _0x37c22e = _0xebcddc;
|
|
34580
|
+
this["buffer"][_0x37c22e(543)](new Float32Array(_0x59113f)), this[_0x37c22e(529)] += _0x59113f[_0x37c22e(435)];
|
|
34573
34581
|
}, "compress": function() {
|
|
34574
|
-
const
|
|
34575
|
-
for (var
|
|
34576
|
-
for (var
|
|
34577
|
-
return
|
|
34582
|
+
const _0x3d5388 = _0xebcddc;
|
|
34583
|
+
for (var _0x5b6428 = new Float32Array(this[_0x3d5388(529)]), _0x215192 = 0, _0x59dc51 = 0; _0x59dc51 < this[_0x3d5388(643)][_0x3d5388(435)]; _0x59dc51++) _0x5b6428["set"](this[_0x3d5388(643)][_0x59dc51], _0x215192), _0x215192 += this[_0x3d5388(643)][_0x59dc51]["length"];
|
|
34584
|
+
for (var _0x4afe92 = parseInt(String(this[_0x3d5388(531)] / this[_0x3d5388(476)])), _0x36cc5f = _0x5b6428[_0x3d5388(435)] / _0x4afe92, _0x49cacd = new Float32Array(_0x36cc5f), _0x5f48a7 = 0, _0xc0ae = 0; _0x5f48a7 < _0x36cc5f; ) _0x49cacd[_0x5f48a7] = _0x5b6428[_0xc0ae], _0xc0ae += _0x4afe92, _0x5f48a7++;
|
|
34585
|
+
return _0x49cacd;
|
|
34578
34586
|
}, "encodePCM": function() {
|
|
34579
|
-
const
|
|
34580
|
-
for (var
|
|
34581
|
-
var
|
|
34582
|
-
|
|
34587
|
+
const _0x4e7be7 = _0xebcddc;
|
|
34588
|
+
for (var _0x28ac1f = Math["min"](this[_0x4e7be7(359)], this[_0x4e7be7(557)]), _0x27a387 = this["compress"](), _0x6677e3 = _0x27a387[_0x4e7be7(435)] * (_0x28ac1f / 8), _0x3450cf = new ArrayBuffer(_0x6677e3), _0xb8f840 = new DataView(_0x3450cf), _0x4f63b = 0, _0x4db4ea = 0; _0x4db4ea < _0x27a387[_0x4e7be7(435)]; _0x4db4ea++, _0x4f63b += 2) {
|
|
34589
|
+
var _0x192f90 = Math[_0x4e7be7(514)](-1, Math[_0x4e7be7(432)](1, _0x27a387[_0x4db4ea]));
|
|
34590
|
+
_0xb8f840[_0x4e7be7(402)](_0x4f63b, _0x192f90 < 0 ? _0x192f90 * 32768 : _0x192f90 * 32767, true);
|
|
34583
34591
|
}
|
|
34584
|
-
return new Blob([
|
|
34592
|
+
return new Blob([_0xb8f840]);
|
|
34585
34593
|
} };
|
|
34586
|
-
var
|
|
34587
|
-
const
|
|
34588
|
-
var
|
|
34589
|
-
|
|
34590
|
-
const
|
|
34591
|
-
if (!(!
|
|
34592
|
-
var
|
|
34593
|
-
if (!(!
|
|
34594
|
-
var
|
|
34595
|
-
|
|
34596
|
-
}
|
|
34597
|
-
}
|
|
34598
|
-
},
|
|
34599
|
-
};
|
|
34600
|
-
this[
|
|
34601
|
-
const
|
|
34602
|
-
k = true,
|
|
34603
|
-
}, this[
|
|
34604
|
-
const
|
|
34605
|
-
k = false,
|
|
34606
|
-
}, this[
|
|
34607
|
-
|
|
34608
|
-
|
|
34609
|
-
|
|
34610
|
-
|
|
34611
|
-
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34615
|
-
|
|
34616
|
-
|
|
34617
|
-
|
|
34618
|
-
|
|
34619
|
-
|
|
34620
|
-
|
|
34621
|
-
|
|
34622
|
-
case
|
|
34623
|
-
|
|
34624
|
-
return _0x4e262b(461);
|
|
34594
|
+
var _0x5245a8 = function() {
|
|
34595
|
+
const _0x23facd = _0xebcddc;
|
|
34596
|
+
var _0xbfe1e6 = new FileReader();
|
|
34597
|
+
_0xbfe1e6[_0x23facd(635)] = (_0x24f969) => {
|
|
34598
|
+
const _0x2caab7 = _0x23facd;
|
|
34599
|
+
if (!(!_0x24f969[_0x2caab7(389)] || !k)) {
|
|
34600
|
+
var _0x2f29c7 = _0x24f969[_0x2caab7(389)][_0x2caab7(434)];
|
|
34601
|
+
if (!(!_0x2f29c7 || typeof _0x2f29c7 == _0x2caab7(653))) {
|
|
34602
|
+
var _0x59ab3f = new Int16Array(_0x2f29c7);
|
|
34603
|
+
_0x47d493(_0x59ab3f);
|
|
34604
|
+
}
|
|
34605
|
+
}
|
|
34606
|
+
}, _0xbfe1e6["readAsArrayBuffer"](_0x1dbb6d["encodePCM"]()), _0x1dbb6d["clear"]();
|
|
34607
|
+
};
|
|
34608
|
+
this[_0xebcddc(569)] = function() {
|
|
34609
|
+
const _0x4549a1 = _0xebcddc;
|
|
34610
|
+
k = true, _0x560f0b["connect"](_0x1b04c0), _0x1b04c0[_0x4549a1(500)](this[_0x4549a1(554)][_0x4549a1(651)]);
|
|
34611
|
+
}, this["stop"] = function() {
|
|
34612
|
+
const _0x435302 = _0xebcddc;
|
|
34613
|
+
k = false, _0x1a5280[_0x435302(496)]()["forEach"]((_0x316c74) => _0x316c74["stop"]()), _0x1b04c0 && (_0x1b04c0[_0x435302(396)] = null, _0x1b04c0[_0x435302(424)]()), _0x560f0b && _0x560f0b[_0x435302(424)](), this[_0x435302(554)] && this[_0x435302(554)]["close"](), _0x1b04c0 = null, _0x560f0b = null, this["context"] = null;
|
|
34614
|
+
}, this["getBlob"] = function() {
|
|
34615
|
+
return _0x1dbb6d["encodePCM"]();
|
|
34616
|
+
}, this[_0xebcddc(597)] = function() {
|
|
34617
|
+
const _0x3f39af = _0xebcddc;
|
|
34618
|
+
_0x1dbb6d["clear"](), this[_0x3f39af(554)] && (this["context"][_0x3f39af(518)](), this["context"] = null);
|
|
34619
|
+
}, _0x1b04c0[_0xebcddc(396)] = function(_0x51eda0) {
|
|
34620
|
+
const _0x2a554d = _0xebcddc;
|
|
34621
|
+
if (!(!k || !this["context"] || this["context"][_0x2a554d(441)] === _0x2a554d(576))) {
|
|
34622
|
+
var _0x4faa2d = _0x51eda0[_0x2a554d(450)][_0x2a554d(657)](0);
|
|
34623
|
+
_0x1dbb6d[_0x2a554d(354)](_0x4faa2d), _0x5245a8();
|
|
34624
|
+
}
|
|
34625
|
+
};
|
|
34626
|
+
}, O = (_0x2fb5ab) => {
|
|
34627
|
+
const _0x3f0f79 = _0x2125;
|
|
34628
|
+
switch (_0x2fb5ab[_0x3f0f79(535)] || _0x2fb5ab[_0x3f0f79(508)]) {
|
|
34629
|
+
case _0x3f0f79(646):
|
|
34630
|
+
case _0x3f0f79(647):
|
|
34631
|
+
return _0x3f0f79(372);
|
|
34625
34632
|
case "NOT_SUPPORTED_ERROR":
|
|
34626
|
-
case
|
|
34627
|
-
return
|
|
34628
|
-
case
|
|
34629
|
-
case
|
|
34630
|
-
return
|
|
34633
|
+
case _0x3f0f79(511):
|
|
34634
|
+
return _0x3f0f79(636);
|
|
34635
|
+
case "MANDATORY_UNSATISFIED_ERROR":
|
|
34636
|
+
case _0x3f0f79(538):
|
|
34637
|
+
return _0x3f0f79(507);
|
|
34631
34638
|
default:
|
|
34632
|
-
return
|
|
34639
|
+
return _0x3f0f79(565) + _0x2fb5ab;
|
|
34633
34640
|
}
|
|
34634
|
-
}, x = () => !navigator[
|
|
34641
|
+
}, x = () => !navigator["mediaDevices"] || !navigator[_0x4ae588(566)]["getUserMedia"] ? (console[_0x4ae588(495)](_0x4ae588(579)), false) : true;
|
|
34635
34642
|
let T = "";
|
|
34636
34643
|
const V = () => {
|
|
34637
|
-
const
|
|
34644
|
+
const _0xe7479d = _0x4ae588;
|
|
34638
34645
|
E();
|
|
34639
|
-
let
|
|
34640
|
-
T = new Audio(
|
|
34641
|
-
const
|
|
34642
|
-
console[
|
|
34643
|
-
}), T[
|
|
34644
|
-
const
|
|
34645
|
-
T[
|
|
34646
|
-
}), T[
|
|
34646
|
+
let _0x4e7a6c = _0xe7479d(607);
|
|
34647
|
+
T = new Audio(_0x4e7a6c), T["addEventListener"](_0xe7479d(361), (_0x4cd588) => {
|
|
34648
|
+
const _0x1ec2de = _0xe7479d;
|
|
34649
|
+
console[_0x1ec2de(495)](_0x1ec2de(361), _0x4cd588);
|
|
34650
|
+
}), T[_0xe7479d(622)](_0xe7479d(459), () => {
|
|
34651
|
+
const _0x228891 = _0xe7479d;
|
|
34652
|
+
T[_0x228891(564)](), console[_0x228891(495)](_0x228891(440));
|
|
34653
|
+
}), T[_0xe7479d(564)]();
|
|
34647
34654
|
}, E = () => {
|
|
34648
|
-
const
|
|
34649
|
-
T && (console[
|
|
34655
|
+
const _0x3859d2 = _0x4ae588;
|
|
34656
|
+
T && (console["log"](_0x3859d2(417)), T["pause"](), T = "");
|
|
34650
34657
|
}, W = () => {
|
|
34651
|
-
const
|
|
34652
|
-
let
|
|
34653
|
-
const
|
|
34654
|
-
|
|
34655
|
-
const
|
|
34656
|
-
console[
|
|
34657
|
-
}),
|
|
34658
|
-
const
|
|
34659
|
-
|
|
34660
|
-
}),
|
|
34658
|
+
const _0x262651 = _0x4ae588;
|
|
34659
|
+
let _0x411582 = _0x262651(445);
|
|
34660
|
+
const _0x184ff1 = new Audio(_0x411582);
|
|
34661
|
+
_0x184ff1[_0x262651(622)](_0x262651(361), (_0x5262d8) => {
|
|
34662
|
+
const _0x13eb0a = _0x262651;
|
|
34663
|
+
console[_0x13eb0a(495)](_0x13eb0a(361), _0x5262d8);
|
|
34664
|
+
}), _0x184ff1[_0x262651(622)](_0x262651(459), () => {
|
|
34665
|
+
const _0x21a979 = _0x262651;
|
|
34666
|
+
_0x184ff1[_0x21a979(541)]();
|
|
34667
|
+
}), _0x184ff1[_0x262651(564)]();
|
|
34661
34668
|
}, v = () => {
|
|
34662
|
-
const
|
|
34663
|
-
let
|
|
34664
|
-
const
|
|
34665
|
-
|
|
34666
|
-
const
|
|
34667
|
-
console["log"](
|
|
34668
|
-
}),
|
|
34669
|
-
|
|
34670
|
-
|
|
34671
|
-
},
|
|
34672
|
-
|
|
34673
|
-
|
|
34674
|
-
|
|
34675
|
-
|
|
34676
|
-
|
|
34677
|
-
|
|
34678
|
-
|
|
34669
|
+
const _0x2bf1bf = _0x4ae588;
|
|
34670
|
+
let _0x283242 = _0x2bf1bf(431);
|
|
34671
|
+
const _0x20731c = new Audio(_0x283242);
|
|
34672
|
+
_0x20731c["addEventListener"](_0x2bf1bf(361), (_0x5c47f6) => {
|
|
34673
|
+
const _0xa87221 = _0x2bf1bf;
|
|
34674
|
+
console["log"](_0xa87221(361), _0x5c47f6);
|
|
34675
|
+
}), _0x20731c["addEventListener"](_0x2bf1bf(459), () => {
|
|
34676
|
+
const _0x392047 = _0x2bf1bf;
|
|
34677
|
+
_0x20731c[_0x392047(541)]();
|
|
34678
|
+
}), _0x20731c[_0x2bf1bf(564)]();
|
|
34679
|
+
}, B = (_0x229977, _0x20dd5f) => {
|
|
34680
|
+
const _0x11abd8 = _0x4ae588;
|
|
34681
|
+
navigator[_0x11abd8(566)][_0x11abd8(614)]({ "audio": {} })[_0x11abd8(428)]((_0x3b5af1) => {
|
|
34682
|
+
const _0x2b00cd = _0x11abd8;
|
|
34683
|
+
_0x229977 && _0x229977(), _0x3b5af1[_0x2b00cd(496)]()[_0x2b00cd(471)]((_0x51e7b2) => _0x51e7b2["stop"]());
|
|
34684
|
+
})[_0x11abd8(555)]((_0x412cba) => {
|
|
34685
|
+
const _0x33ddfb = O(_0x412cba);
|
|
34686
|
+
_0x20dd5f && _0x20dd5f({ "errMsg": _0x33ddfb });
|
|
34679
34687
|
});
|
|
34680
|
-
}, b = () => (Math[
|
|
34681
|
-
function F(
|
|
34682
|
-
const
|
|
34683
|
-
let
|
|
34688
|
+
}, b = () => (Math[_0x4ae588(630)]() * 1e7)[_0x4ae588(378)](16)[_0x4ae588(600)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x4ae588(502)]() + "-" + Math[_0x4ae588(630)]()[_0x4ae588(378)]()[_0x4ae588(600)](2, 5);
|
|
34689
|
+
function F(_0x5d777d) {
|
|
34690
|
+
const _0x5573fc = _0x4ae588;
|
|
34691
|
+
let _0x581fff;
|
|
34684
34692
|
try {
|
|
34685
|
-
|
|
34693
|
+
_0x581fff = JSON[_0x5573fc(430)](atob(_0x5d777d["split"](".")[1]))[_0x5573fc(642)];
|
|
34686
34694
|
} catch {
|
|
34687
|
-
|
|
34688
|
-
}
|
|
34689
|
-
return
|
|
34690
|
-
}
|
|
34691
|
-
const j = (
|
|
34692
|
-
function A(
|
|
34693
|
-
this["init"](
|
|
34694
|
-
}
|
|
34695
|
-
A["
|
|
34696
|
-
const
|
|
34697
|
-
var
|
|
34698
|
-
this[
|
|
34699
|
-
}, A[
|
|
34700
|
-
const
|
|
34701
|
-
var
|
|
34702
|
-
return
|
|
34703
|
-
}, A[
|
|
34704
|
-
const
|
|
34705
|
-
var
|
|
34706
|
-
return
|
|
34707
|
-
}, A[
|
|
34708
|
-
const
|
|
34709
|
-
this[
|
|
34710
|
-
}, A[
|
|
34711
|
-
const
|
|
34712
|
-
return
|
|
34713
|
-
}, A[
|
|
34714
|
-
const
|
|
34715
|
-
if (this["isTypedArray"](
|
|
34716
|
-
|
|
34717
|
-
var
|
|
34718
|
-
|
|
34719
|
-
}
|
|
34720
|
-
}, A[
|
|
34721
|
-
const
|
|
34722
|
-
var
|
|
34723
|
-
for (
|
|
34724
|
-
return
|
|
34725
|
-
}, A[
|
|
34726
|
-
const
|
|
34727
|
-
this[
|
|
34728
|
-
}, A[
|
|
34729
|
-
const
|
|
34730
|
-
this[
|
|
34731
|
-
}, A[
|
|
34732
|
-
const
|
|
34733
|
-
if (this[
|
|
34734
|
-
var
|
|
34735
|
-
for (
|
|
34736
|
-
this[
|
|
34695
|
+
_0x581fff = 0;
|
|
34696
|
+
}
|
|
34697
|
+
return _0x581fff > Date[_0x5573fc(483)]() / 1e3;
|
|
34698
|
+
}
|
|
34699
|
+
const j = (_0x241c2d) => _0x241c2d[_0x4ae588(598)](new RegExp(/(\d{3})\d*(\d{4})/), _0x4ae588(497));
|
|
34700
|
+
function A(_0x567554) {
|
|
34701
|
+
this["init"](_0x567554);
|
|
34702
|
+
}
|
|
34703
|
+
A[_0x4ae588(620)]["init"] = function(_0x2188b8) {
|
|
34704
|
+
const _0x443aad = _0x4ae588;
|
|
34705
|
+
var _0x82169c = { "encoding": "16bitInt", "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
|
|
34706
|
+
this[_0x443aad(406)] = Object[_0x443aad(528)]({}, _0x82169c, _0x2188b8), this["samples"] = new Float32Array(), this["flush"] = this[_0x443aad(454)][_0x443aad(366)](this), this[_0x443aad(632)] = setInterval(this[_0x443aad(454)], this[_0x443aad(406)][_0x443aad(560)]), this["maxValue"] = this["getMaxValue"](), this[_0x443aad(494)] = this["getTypedArray"](), this[_0x443aad(656)]();
|
|
34707
|
+
}, A[_0x4ae588(620)][_0x4ae588(486)] = function() {
|
|
34708
|
+
const _0xff9adc = _0x4ae588;
|
|
34709
|
+
var _0x2bf7f1 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
|
|
34710
|
+
return _0x2bf7f1[this[_0xff9adc(406)][_0xff9adc(487)]] ? _0x2bf7f1[this[_0xff9adc(406)][_0xff9adc(487)]] : _0x2bf7f1[_0xff9adc(448)];
|
|
34711
|
+
}, A[_0x4ae588(620)]["getTypedArray"] = function() {
|
|
34712
|
+
const _0x4f14f6 = _0x4ae588;
|
|
34713
|
+
var _0x198b1e = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
|
|
34714
|
+
return _0x198b1e[this[_0x4f14f6(406)][_0x4f14f6(487)]] ? _0x198b1e[this[_0x4f14f6(406)][_0x4f14f6(487)]] : _0x198b1e["16bitInt"];
|
|
34715
|
+
}, A[_0x4ae588(620)][_0x4ae588(656)] = function() {
|
|
34716
|
+
const _0x3f1b03 = _0x4ae588;
|
|
34717
|
+
this["audioCtx"] = new (window["AudioContext"] || window["webkitAudioContext"])(), this[_0x3f1b03(650)] = this["audioCtx"]["createGain"](), this[_0x3f1b03(650)][_0x3f1b03(568)][_0x3f1b03(388)] = 1, this["gainNode"][_0x3f1b03(500)](this["audioCtx"][_0x3f1b03(651)]), this[_0x3f1b03(563)] = this[_0x3f1b03(467)][_0x3f1b03(593)];
|
|
34718
|
+
}, A["prototype"][_0x4ae588(391)] = function(_0x386c9e) {
|
|
34719
|
+
const _0x54b0d1 = _0x4ae588;
|
|
34720
|
+
return _0x386c9e["byteLength"] && _0x386c9e[_0x54b0d1(643)] && _0x386c9e["buffer"][_0x54b0d1(491)] == ArrayBuffer;
|
|
34721
|
+
}, A[_0x4ae588(620)][_0x4ae588(439)] = function(_0x1426fb) {
|
|
34722
|
+
const _0xa42815 = _0x4ae588;
|
|
34723
|
+
if (this["isTypedArray"](_0x1426fb)) {
|
|
34724
|
+
_0x1426fb = this["getFormatedValue"](_0x1426fb);
|
|
34725
|
+
var _0x2b9d99 = new Float32Array(this[_0xa42815(577)][_0xa42815(435)] + _0x1426fb[_0xa42815(435)]);
|
|
34726
|
+
_0x2b9d99[_0xa42815(377)](this[_0xa42815(577)], 0), _0x2b9d99[_0xa42815(377)](_0x1426fb, this[_0xa42815(577)][_0xa42815(435)]), this[_0xa42815(577)] = _0x2b9d99;
|
|
34727
|
+
}
|
|
34728
|
+
}, A[_0x4ae588(620)][_0x4ae588(384)] = function(_0x150862) {
|
|
34729
|
+
const _0x437f5d = _0x4ae588;
|
|
34730
|
+
var _0x150862 = new this[_0x437f5d(494)](_0x150862[_0x437f5d(643)]), _0x3b560b = new Float32Array(_0x150862["length"]), _0xf4c310;
|
|
34731
|
+
for (_0xf4c310 = 0; _0xf4c310 < _0x150862[_0x437f5d(435)]; _0xf4c310++) _0x3b560b[_0xf4c310] = _0x150862[_0xf4c310] / this["maxValue"];
|
|
34732
|
+
return _0x3b560b;
|
|
34733
|
+
}, A[_0x4ae588(620)][_0x4ae588(395)] = function(_0x17561) {
|
|
34734
|
+
const _0x23c6c4 = _0x4ae588;
|
|
34735
|
+
this[_0x23c6c4(650)][_0x23c6c4(568)][_0x23c6c4(388)] = _0x17561;
|
|
34736
|
+
}, A["prototype"][_0x4ae588(498)] = function() {
|
|
34737
|
+
const _0x2ce509 = _0x4ae588;
|
|
34738
|
+
this[_0x2ce509(632)] && clearInterval(this[_0x2ce509(632)]), this[_0x2ce509(577)] = null, this[_0x2ce509(467)] && this[_0x2ce509(467)][_0x2ce509(518)](), this["audioCtx"] = null;
|
|
34739
|
+
}, A["prototype"]["flush"] = function() {
|
|
34740
|
+
const _0x5a0566 = _0x4ae588;
|
|
34741
|
+
if (this[_0x5a0566(577)][_0x5a0566(435)]) {
|
|
34742
|
+
var _0x3c4ae3 = this[_0x5a0566(467)][_0x5a0566(412)](), _0x16c6c7 = this[_0x5a0566(577)][_0x5a0566(435)] / this[_0x5a0566(406)]["channels"], _0x112c71 = this[_0x5a0566(467)]["createBuffer"](this[_0x5a0566(406)][_0x5a0566(373)], _0x16c6c7, this[_0x5a0566(406)]["sampleRate"]), _0x49e336, _0xa7951c, _0x16361e, _0x2e0818, _0x36e62b;
|
|
34743
|
+
for (_0xa7951c = 0; _0xa7951c < this[_0x5a0566(406)][_0x5a0566(373)]; _0xa7951c++) for (_0x49e336 = _0x112c71[_0x5a0566(657)](_0xa7951c), _0x16361e = _0xa7951c, _0x36e62b = 50, _0x2e0818 = 0; _0x2e0818 < _0x16c6c7; _0x2e0818++) _0x49e336[_0x2e0818] = this[_0x5a0566(577)][_0x16361e], _0x2e0818 < 50 && (_0x49e336[_0x2e0818] = _0x49e336[_0x2e0818] * _0x2e0818 / 50), _0x2e0818 >= _0x16c6c7 - 51 && (_0x49e336[_0x2e0818] = _0x49e336[_0x2e0818] * _0x36e62b-- / 50), _0x16361e += this[_0x5a0566(406)][_0x5a0566(373)];
|
|
34744
|
+
this[_0x5a0566(563)] < this[_0x5a0566(467)][_0x5a0566(593)] && (this[_0x5a0566(563)] = this[_0x5a0566(467)][_0x5a0566(593)]), _0x3c4ae3[_0x5a0566(643)] = _0x112c71, _0x3c4ae3[_0x5a0566(500)](this["gainNode"]), _0x3c4ae3["start"](this[_0x5a0566(563)]), this[_0x5a0566(563)] += _0x112c71[_0x5a0566(551)], this[_0x5a0566(577)] = new Float32Array();
|
|
34737
34745
|
}
|
|
34738
34746
|
};
|
|
34739
34747
|
let l = { "companyID": "", "employeeID": "", "token": "", "callOptions": {}, "onMessage": () => {
|
|
34740
34748
|
} };
|
|
34741
|
-
function H(
|
|
34742
|
-
const
|
|
34743
|
-
let
|
|
34749
|
+
function H(_0x34d9d9) {
|
|
34750
|
+
const _0x251902 = _0x4ae588;
|
|
34751
|
+
let _0x15ee82 = "";
|
|
34744
34752
|
try {
|
|
34745
|
-
|
|
34746
|
-
} catch (
|
|
34747
|
-
console[
|
|
34753
|
+
_0x15ee82 = JSON[_0x251902(519)](_0x34d9d9);
|
|
34754
|
+
} catch (_0x114da1) {
|
|
34755
|
+
console[_0x251902(495)](_0x251902(484), _0x114da1);
|
|
34748
34756
|
}
|
|
34749
|
-
return
|
|
34757
|
+
return _0x15ee82;
|
|
34750
34758
|
}
|
|
34751
|
-
function G(
|
|
34752
|
-
const
|
|
34753
|
-
return
|
|
34759
|
+
function G(_0x81c307) {
|
|
34760
|
+
const _0x164236 = _0x4ae588;
|
|
34761
|
+
return _0x81c307 === "test" ? _0x164236(462) : _0x164236(418);
|
|
34754
34762
|
}
|
|
34755
34763
|
let M = "";
|
|
34756
34764
|
function $() {
|
|
34757
34765
|
U(), M = setInterval(() => {
|
|
34758
|
-
const
|
|
34759
|
-
c[
|
|
34766
|
+
const _0x3a9c20 = _0x2125;
|
|
34767
|
+
c["actionSeatHandleIncoming"]({ "type": _0x3a9c20(490) });
|
|
34760
34768
|
}, 3e4);
|
|
34761
34769
|
}
|
|
34762
|
-
function _0x548d(_0x3113e7, _0x12a02c) {
|
|
34763
|
-
const _0x37f668 = _0x37f6();
|
|
34764
|
-
return _0x548d = function(_0x548d65, _0x37fb73) {
|
|
34765
|
-
_0x548d65 = _0x548d65 - 215;
|
|
34766
|
-
let _0x15e7d1 = _0x37f668[_0x548d65];
|
|
34767
|
-
return _0x15e7d1;
|
|
34768
|
-
}, _0x548d(_0x3113e7, _0x12a02c);
|
|
34769
|
-
}
|
|
34770
34770
|
function U() {
|
|
34771
34771
|
M && clearInterval(M);
|
|
34772
34772
|
}
|
|
34773
|
-
const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status":
|
|
34774
|
-
const
|
|
34775
|
-
return a[
|
|
34773
|
+
const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x4ae588(583), "botStatus": _0x4ae588(583), "audio": document[_0x4ae588(382)](_0x4ae588(525)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a["seatData"]["results"] || [], "getterSeatAudioInput"() {
|
|
34774
|
+
const _0x1c5edd = _0x4ae588;
|
|
34775
|
+
return a["mediaDevice"][_0x1c5edd(534)]((_0x414310) => _0x414310["kind"] === _0x1c5edd(641));
|
|
34776
34776
|
}, "getterSeatAudioOutput"() {
|
|
34777
|
-
const
|
|
34778
|
-
return a[
|
|
34777
|
+
const _0x2e99f2 = _0x4ae588;
|
|
34778
|
+
return a[_0x2e99f2(426)][_0x2e99f2(534)]((_0x76774b) => _0x76774b[_0x2e99f2(461)] === _0x2e99f2(533));
|
|
34779
34779
|
}, "getterSeatCurrentDeviceInfoInputID"() {
|
|
34780
|
-
const
|
|
34781
|
-
return a[
|
|
34780
|
+
const _0x217820 = _0x4ae588;
|
|
34781
|
+
return a[_0x217820(423)] ? a["currentDeviceInfoInput"][_0x217820(596)] : "";
|
|
34782
34782
|
}, "getterSeatCurrentDeviceInfoOutputID"() {
|
|
34783
|
-
const
|
|
34784
|
-
return a[
|
|
34785
|
-
}, "getterSeatCurrentPhoneRingAudio"(
|
|
34786
|
-
const
|
|
34787
|
-
return
|
|
34783
|
+
const _0xf79b97 = _0x4ae588;
|
|
34784
|
+
return a[_0xf79b97(466)] ? a[_0xf79b97(466)][_0xf79b97(596)] : "";
|
|
34785
|
+
}, "getterSeatCurrentPhoneRingAudio"(_0x4311d1) {
|
|
34786
|
+
const _0x235ca2 = _0x4ae588;
|
|
34787
|
+
return _0x4311d1[_0x235ca2(621)];
|
|
34788
34788
|
}, "getterSeatCustomerInfo"() {
|
|
34789
|
-
const
|
|
34790
|
-
return a[
|
|
34789
|
+
const _0x405c48 = _0x4ae588;
|
|
34790
|
+
return a[_0x405c48(408)] ? a[_0x405c48(408)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
|
|
34791
34791
|
}, "getterSeatConnectInfo"() {
|
|
34792
|
-
const
|
|
34793
|
-
return a[
|
|
34792
|
+
const _0x5ba22a = _0x4ae588;
|
|
34793
|
+
return a[_0x5ba22a(411)] ? a[_0x5ba22a(411)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
|
|
34794
34794
|
}, "getterSeatIsRinging"() {
|
|
34795
|
-
const
|
|
34796
|
-
return a[
|
|
34795
|
+
const _0xb76e2b = _0x4ae588;
|
|
34796
|
+
return a[_0xb76e2b(419)] === _0xb76e2b(505);
|
|
34797
34797
|
}, "getterSeatIsConnected"() {
|
|
34798
|
-
const
|
|
34799
|
-
return a[
|
|
34798
|
+
const _0x3138fc = _0x4ae588;
|
|
34799
|
+
return a[_0x3138fc(419)] === _0x3138fc(612);
|
|
34800
34800
|
}, "getterSeatIsHangup"() {
|
|
34801
|
-
const
|
|
34802
|
-
return a[
|
|
34801
|
+
const _0x2ced94 = _0x4ae588;
|
|
34802
|
+
return a["callingStage"] === _0x2ced94(586);
|
|
34803
34803
|
}, "getterSeatStatus"() {
|
|
34804
|
-
const
|
|
34805
|
-
return a[
|
|
34804
|
+
const _0x8dfe = _0x4ae588;
|
|
34805
|
+
return a[_0x8dfe(421)];
|
|
34806
34806
|
}, "getterSeatCanCallout"() {
|
|
34807
|
-
const
|
|
34808
|
-
return a[
|
|
34807
|
+
const _0x184694 = _0x4ae588;
|
|
34808
|
+
return a[_0x184694(479)] === "connected";
|
|
34809
34809
|
}, "getterSeatBotStatus"() {
|
|
34810
34810
|
return a["botStatus"];
|
|
34811
34811
|
}, "getterSeatRecordsData"() {
|
|
34812
|
-
const
|
|
34813
|
-
return a[
|
|
34812
|
+
const _0xb0a911 = _0x4ae588;
|
|
34813
|
+
return a[_0xb0a911(379)];
|
|
34814
34814
|
}, "getterSeatOnceCall"() {
|
|
34815
|
-
|
|
34816
|
-
return a[_0x7da418(442)];
|
|
34815
|
+
return a["onceCall"];
|
|
34817
34816
|
}, "getterAIToSeat"() {
|
|
34818
|
-
|
|
34819
|
-
return a[_0x24d52e(458)];
|
|
34817
|
+
return a["aiToSeat"];
|
|
34820
34818
|
}, "getterSeatCallOnceStage"() {
|
|
34821
|
-
const
|
|
34822
|
-
return a[
|
|
34819
|
+
const _0x1eb31a = _0x4ae588;
|
|
34820
|
+
return a[_0x1eb31a(425)];
|
|
34823
34821
|
}, "getterSeatCallingStage"() {
|
|
34824
|
-
const
|
|
34825
|
-
return a[
|
|
34822
|
+
const _0x315d33 = _0x4ae588;
|
|
34823
|
+
return a[_0x315d33(419)];
|
|
34826
34824
|
} };
|
|
34827
34825
|
let R = false, m = "";
|
|
34828
|
-
const c = { "actionSeatInitVoiceWSInstance": (
|
|
34829
|
-
const
|
|
34830
|
-
a[
|
|
34831
|
-
const
|
|
34832
|
-
|
|
34833
|
-
const
|
|
34834
|
-
n[
|
|
34835
|
-
},
|
|
34836
|
-
const
|
|
34837
|
-
if (typeof
|
|
34838
|
-
a[
|
|
34826
|
+
const c = { "actionSeatInitVoiceWSInstance": (_0x955e3e) => {
|
|
34827
|
+
const _0xf3fece = _0x4ae588;
|
|
34828
|
+
a[_0xf3fece(353)] && (console["log"](_0xf3fece(530), a[_0xf3fece(353)]), a["voiceInstance"][_0xf3fece(518)]());
|
|
34829
|
+
const _0x3bce12 = new WebSocket(_0x955e3e[_0xf3fece(370)]);
|
|
34830
|
+
_0x3bce12[_0xf3fece(639)] = _0xf3fece(392), _0x3bce12[_0xf3fece(539)] = () => {
|
|
34831
|
+
const _0x10e34e = _0xf3fece;
|
|
34832
|
+
n[_0x10e34e(358)]({ "key": _0x10e34e(489), "status": "connected" });
|
|
34833
|
+
}, _0x3bce12[_0xf3fece(453)] = (_0x40ea7f) => {
|
|
34834
|
+
const _0x462d94 = _0xf3fece;
|
|
34835
|
+
if (typeof _0x40ea7f[_0x462d94(404)] == _0x462d94(488)) {
|
|
34836
|
+
a[_0x462d94(606)] && E(), n["SEAT_PLAY_AUDIO"]({ "type": _0x462d94(536), "value": _0x40ea7f[_0x462d94(404)], "outputID": p[_0x462d94(414)]() });
|
|
34839
34837
|
return;
|
|
34840
34838
|
}
|
|
34841
|
-
let
|
|
34842
|
-
if (
|
|
34843
|
-
c[
|
|
34839
|
+
let _0x78d6ef = JSON["parse"](_0x40ea7f[_0x462d94(404)]);
|
|
34840
|
+
if (_0x78d6ef["Code"] !== 0) {
|
|
34841
|
+
c[_0x462d94(477)](_0x462d94(527), _0x78d6ef[_0x462d94(473)]);
|
|
34844
34842
|
return;
|
|
34845
34843
|
}
|
|
34846
|
-
switch (
|
|
34847
|
-
case
|
|
34848
|
-
n[
|
|
34844
|
+
switch (_0x78d6ef["Type"]) {
|
|
34845
|
+
case _0x462d94(385):
|
|
34846
|
+
n[_0x462d94(358)]({ "key": "botStatus", "status": "connected" }), c["actionSeatHandleIncoming"]({ "type": _0x462d94(443), "wsType": "VoiceFromOther" });
|
|
34849
34847
|
break;
|
|
34850
34848
|
}
|
|
34851
|
-
},
|
|
34852
|
-
const
|
|
34853
|
-
n[
|
|
34854
|
-
},
|
|
34855
|
-
const
|
|
34856
|
-
console[
|
|
34857
|
-
}, n[
|
|
34858
|
-
}, "actionSeatInitWSInstance": (
|
|
34859
|
-
const
|
|
34860
|
-
if (a[
|
|
34861
|
-
console[
|
|
34849
|
+
}, _0x3bce12[_0xf3fece(485)] = () => {
|
|
34850
|
+
const _0xfab73d = _0xf3fece;
|
|
34851
|
+
n["SEAT_SET_VoiceWS"](""), n[_0xfab73d(358)]({ "key": _0xfab73d(489), "status": "closed" });
|
|
34852
|
+
}, _0x3bce12[_0xf3fece(360)] = () => {
|
|
34853
|
+
const _0x37a28b = _0xf3fece;
|
|
34854
|
+
console["log"](_0x37a28b(375)), [_0x37a28b(505), _0x37a28b(612)][_0x37a28b(463)](a["callingStage"]) > -1 && n[_0x37a28b(510)]({ "Type": _0x37a28b(383), "Data": {}, "Code": 0, "Msg": "" + (a["aiToSeat"] ? _0x37a28b(413) : a[_0x37a28b(606)] ? _0x37a28b(451) : ""), "TaskID": "" });
|
|
34855
|
+
}, n[_0xf3fece(615)](_0x3bce12);
|
|
34856
|
+
}, "actionSeatInitWSInstance": (_0x4cf7a8) => {
|
|
34857
|
+
const _0x4fb6fb = _0x4ae588;
|
|
34858
|
+
if (a[_0x4fb6fb(403)]) {
|
|
34859
|
+
console["log"](_0x4fb6fb(613)), c["instanceClose"](), R = true;
|
|
34862
34860
|
return;
|
|
34863
34861
|
}
|
|
34864
|
-
L(
|
|
34862
|
+
L(_0x4cf7a8);
|
|
34865
34863
|
}, async "actionSeatTestEquipment"() {
|
|
34866
|
-
const
|
|
34867
|
-
if (n[
|
|
34868
|
-
c["
|
|
34864
|
+
const _0x1f77c5 = _0x4ae588;
|
|
34865
|
+
if (n[_0x1f77c5(652)](), !x()) {
|
|
34866
|
+
c[_0x1f77c5(477)]("Error", _0x1f77c5(579));
|
|
34869
34867
|
return;
|
|
34870
34868
|
}
|
|
34871
34869
|
try {
|
|
34872
|
-
const
|
|
34873
|
-
return n[
|
|
34874
|
-
} catch (
|
|
34875
|
-
O(
|
|
34870
|
+
const _0x1fc35d = await navigator["mediaDevices"][_0x1f77c5(614)]({ "audio": { "advanced": [{ "deviceId": p[_0x1f77c5(446)]() }] } });
|
|
34871
|
+
return n[_0x1f77c5(520)]({ "type": _0x1f77c5(348), "value": _0x1fc35d, "outputID": p[_0x1f77c5(414)]() }), navigator["mediaDevices"][_0x1f77c5(634)]();
|
|
34872
|
+
} catch (_0x4527db) {
|
|
34873
|
+
O(_0x4527db);
|
|
34876
34874
|
}
|
|
34877
34875
|
}, async "actionSeatStartPlayer"() {
|
|
34878
|
-
const
|
|
34876
|
+
const _0x148f6a = _0x4ae588;
|
|
34879
34877
|
try {
|
|
34880
|
-
m = new A({ "encoding":
|
|
34881
|
-
} catch (
|
|
34882
|
-
console[
|
|
34878
|
+
m = new A({ "encoding": _0x148f6a(448), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
|
|
34879
|
+
} catch (_0x52cdd4) {
|
|
34880
|
+
console[_0x148f6a(495)](_0x52cdd4);
|
|
34883
34881
|
}
|
|
34884
34882
|
}, async "actionSeatStartTalk"() {
|
|
34885
|
-
const
|
|
34883
|
+
const _0x2a83e0 = _0x4ae588;
|
|
34886
34884
|
if (!x()) {
|
|
34887
|
-
c[
|
|
34885
|
+
c[_0x2a83e0(477)](_0x2a83e0(527), _0x2a83e0(579));
|
|
34888
34886
|
return;
|
|
34889
34887
|
}
|
|
34890
34888
|
try {
|
|
34891
|
-
a[
|
|
34892
|
-
const
|
|
34893
|
-
a[
|
|
34894
|
-
const
|
|
34895
|
-
c[
|
|
34896
|
-
}), a[
|
|
34897
|
-
} catch (
|
|
34898
|
-
O(
|
|
34889
|
+
a[_0x2a83e0(355)] && a[_0x2a83e0(355)][_0x2a83e0(597)]();
|
|
34890
|
+
const _0x353a95 = await navigator[_0x2a83e0(566)][_0x2a83e0(614)]({ "audio": { "advanced": [{ "deviceId": p["getterSeatCurrentDeviceInfoInputID"]() }] } });
|
|
34891
|
+
a[_0x2a83e0(355)] = new Y(_0x353a95, (_0x208f5a) => {
|
|
34892
|
+
const _0x3f7cf4 = _0x2a83e0;
|
|
34893
|
+
c[_0x3f7cf4(548)](_0x208f5a);
|
|
34894
|
+
}), a[_0x2a83e0(355)][_0x2a83e0(569)]();
|
|
34895
|
+
} catch (_0x560223) {
|
|
34896
|
+
O(_0x560223);
|
|
34899
34897
|
}
|
|
34900
34898
|
}, "actionSeatStartWS"() {
|
|
34901
|
-
const
|
|
34902
|
-
c[
|
|
34903
|
-
}, "actionSeatVoiceWS"(
|
|
34904
|
-
const
|
|
34905
|
-
let
|
|
34899
|
+
const _0x3f91cc = _0x4ae588;
|
|
34900
|
+
c[_0x3f91cc(625)]({ "url": G(l[_0x3f91cc(405)]) + "/v1/company/" + l[_0x3f91cc(570)] + _0x3f91cc(602) + l["employeeID"] + _0x3f91cc(587) + l[_0x3f91cc(582)] });
|
|
34901
|
+
}, "actionSeatVoiceWS"(_0x52881c) {
|
|
34902
|
+
const _0x4dcc05 = _0x4ae588;
|
|
34903
|
+
let _0x365db5 = "";
|
|
34906
34904
|
try {
|
|
34907
|
-
|
|
34905
|
+
_0x365db5 = (_0x52881c && _0x52881c[_0x4dcc05(473)] ? JSON["parse"](_0x52881c[_0x4dcc05(473)]) : [])["find"]((_0x3c8770) => !_0x3c8770[_0x4dcc05(493)](_0x4dcc05(368)));
|
|
34908
34906
|
} catch {
|
|
34909
|
-
|
|
34907
|
+
_0x365db5 = _0x52881c && _0x52881c[_0x4dcc05(473)];
|
|
34910
34908
|
}
|
|
34911
|
-
c[
|
|
34912
|
-
}, "actionSeatSendVoice"(
|
|
34913
|
-
const
|
|
34914
|
-
n[
|
|
34909
|
+
c[_0x4dcc05(515)]({ "url": _0x4dcc05(410) + _0x365db5 + _0x4dcc05(561) + (_0x52881c && _0x52881c[_0x4dcc05(617)][_0x4dcc05(592)]) });
|
|
34910
|
+
}, "actionSeatSendVoice"(_0xa38fd4) {
|
|
34911
|
+
const _0x153ee6 = _0x4ae588;
|
|
34912
|
+
n[_0x153ee6(407)](_0xa38fd4);
|
|
34915
34913
|
}, async "actionGetMediaDevices"() {
|
|
34916
|
-
const
|
|
34914
|
+
const _0x31f20b = _0x4ae588;
|
|
34917
34915
|
try {
|
|
34918
|
-
const
|
|
34919
|
-
n[
|
|
34916
|
+
const _0x5c6870 = await navigator[_0x31f20b(566)]["enumerateDevices"]();
|
|
34917
|
+
n[_0x31f20b(516)]({ "key": _0x31f20b(426), "value": _0x5c6870 }), console[_0x31f20b(495)](_0x31f20b(605), _0x5c6870);
|
|
34920
34918
|
} catch {
|
|
34921
|
-
c[
|
|
34919
|
+
c[_0x31f20b(477)]("Error", _0x31f20b(363));
|
|
34922
34920
|
}
|
|
34923
|
-
}, "actionSeatHandleIncoming"(
|
|
34924
|
-
const
|
|
34925
|
-
switch (
|
|
34926
|
-
case
|
|
34927
|
-
n[
|
|
34921
|
+
}, "actionSeatHandleIncoming"(_0x2c4382) {
|
|
34922
|
+
const _0x4681c4 = _0x4ae588, { type: _0x55b5e8, data: _0xdbfb12, wsType: _0x3e307e } = _0x2c4382;
|
|
34923
|
+
switch (_0x55b5e8) {
|
|
34924
|
+
case _0x4681c4(608):
|
|
34925
|
+
n["SEAT_SEND_MESSAGE"]({ "Type": _0x4681c4(546), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? _0x4681c4(413) : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
|
|
34928
34926
|
break;
|
|
34929
|
-
case
|
|
34930
|
-
n[
|
|
34927
|
+
case "Reject":
|
|
34928
|
+
n[_0x4681c4(510)]({ "Type": _0x4681c4(644), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? _0x4681c4(413) : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
|
|
34931
34929
|
break;
|
|
34932
|
-
case
|
|
34933
|
-
n[
|
|
34930
|
+
case _0x4681c4(492):
|
|
34931
|
+
n[_0x4681c4(510)]({ "Type": "SeatHangUp", "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? "TypeAIToSeat" : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
|
|
34934
34932
|
break;
|
|
34935
|
-
case
|
|
34936
|
-
n[
|
|
34933
|
+
case "Cancel":
|
|
34934
|
+
n[_0x4681c4(510)]({ "Type": _0x4681c4(631), "Data": _0xdbfb12, "Code": 0, "Msg": _0x4681c4(451), "TaskID": "" });
|
|
34937
34935
|
break;
|
|
34938
|
-
case
|
|
34939
|
-
n[
|
|
34936
|
+
case _0x4681c4(480):
|
|
34937
|
+
n[_0x4681c4(510)]({ "Type": "CallNext", "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
|
|
34940
34938
|
break;
|
|
34941
|
-
case
|
|
34942
|
-
console[
|
|
34939
|
+
case _0x4681c4(475):
|
|
34940
|
+
console["log"](_0x4681c4(571), _0xdbfb12), n[_0x4681c4(510)]({ "Type": _0x4681c4(451), "Data": _0xdbfb12, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x4681c4(516)]({ "key": _0x4681c4(408), "value": Object[_0x4681c4(528)]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0xdbfb12) });
|
|
34943
34941
|
break;
|
|
34944
|
-
case
|
|
34945
|
-
n[
|
|
34942
|
+
case "VoiceFrom":
|
|
34943
|
+
n["SEAT_SEND_RAW_MESSAGE"](H({ "Type": _0x3e307e, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
|
|
34946
34944
|
break;
|
|
34947
|
-
case
|
|
34948
|
-
n[
|
|
34945
|
+
case _0x4681c4(490):
|
|
34946
|
+
n[_0x4681c4(510)](_0x4681c4(645));
|
|
34949
34947
|
break;
|
|
34950
34948
|
}
|
|
34951
34949
|
}, "instanceClose"() {
|
|
34952
|
-
const
|
|
34953
|
-
a[
|
|
34954
|
-
}, "actionSeatUpdatePhoneRingAudio"(
|
|
34955
|
-
|
|
34956
|
-
|
|
34957
|
-
|
|
34958
|
-
n[
|
|
34959
|
-
}, "actionHandleCallBack"(
|
|
34960
|
-
const
|
|
34961
|
-
|
|
34962
|
-
} }, n = { "SEAT_SET_LIST"(
|
|
34963
|
-
const
|
|
34964
|
-
a[
|
|
34965
|
-
}, "SEAT_SET_WS"(
|
|
34966
|
-
const
|
|
34967
|
-
a[
|
|
34968
|
-
}, "SEAT_SET_VoiceWS"(
|
|
34969
|
-
|
|
34970
|
-
|
|
34971
|
-
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34950
|
+
const _0x14c0ea = _0x4ae588;
|
|
34951
|
+
a[_0x14c0ea(403)] && (a[_0x14c0ea(403)][_0x14c0ea(518)](), n[_0x14c0ea(516)]({ "key": _0x14c0ea(403), "value": "" }));
|
|
34952
|
+
}, "actionSeatUpdatePhoneRingAudio"(_0x597452) {
|
|
34953
|
+
const _0x3a15a4 = _0x4ae588;
|
|
34954
|
+
n[_0x3a15a4(618)](_0x597452);
|
|
34955
|
+
}, "actionSeatReconnectWSAfterClosed"(_0xd1792a) {
|
|
34956
|
+
n["SEAT_SAVE_KEY_VALUE"]({ "key": "autoClosed", "value": _0xd1792a });
|
|
34957
|
+
}, "actionHandleCallBack"(_0x6fc51e, _0xf84280, _0x10c3a8 = {}) {
|
|
34958
|
+
const _0x443995 = _0x4ae588;
|
|
34959
|
+
_0x10c3a8[_0x443995(521)] !== void 0 && (_0x10c3a8[_0x443995(381)] = btoa(_0x10c3a8[_0x443995(521)] || "")), _0x10c3a8 && _0x10c3a8[_0x443995(521)] && l[_0x443995(472)] !== false && (_0x10c3a8[_0x443995(521)] = j(_0x10c3a8[_0x443995(521)])), l[_0x443995(478)] && l[_0x443995(478)][_0x443995(610)] && (_0x10c3a8[_0x443995(610)] = l[_0x443995(478)]["OutPlanID"]), l[_0x443995(478)] && l[_0x443995(478)][_0x443995(374)] && (_0x10c3a8[_0x443995(374)] = l["callOptions"]["CallBack"]), l["onMessage"] && l["onMessage"]({ "type": _0x6fc51e, "msg": _0xf84280, "data": _0x10c3a8 });
|
|
34960
|
+
} }, n = { "SEAT_SET_LIST"(_0x3a73c2) {
|
|
34961
|
+
const _0xcb8ac4 = _0x4ae588;
|
|
34962
|
+
a[_0xcb8ac4(532)] = _0x3a73c2;
|
|
34963
|
+
}, "SEAT_SET_WS"(_0x3300b6) {
|
|
34964
|
+
const _0x57bf4a = _0x4ae588;
|
|
34965
|
+
a[_0x57bf4a(403)] = _0x3300b6;
|
|
34966
|
+
}, "SEAT_SET_VoiceWS"(_0x331c0e) {
|
|
34967
|
+
const _0x12fd01 = _0x4ae588;
|
|
34968
|
+
a[_0x12fd01(353)] = _0x331c0e;
|
|
34969
|
+
}, "SEAT_SEND_MESSAGE"(_0x57c2ae) {
|
|
34970
|
+
const _0x265b59 = _0x4ae588;
|
|
34971
|
+
a[_0x265b59(479)] === _0x265b59(612) && a[_0x265b59(403)] && a["instance"]["send"](H(_0x57c2ae));
|
|
34972
|
+
}, "SEAT_SEND_RAW_MESSAGE"(_0x2f82e7) {
|
|
34973
|
+
const _0x4dd881 = _0x4ae588;
|
|
34974
|
+
a[_0x4dd881(479)] === "connected" && a[_0x4dd881(353)] && a[_0x4dd881(489)] === _0x4dd881(612) && a["voiceInstance"][_0x4dd881(397)](_0x2f82e7);
|
|
34975
|
+
}, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x21f6e5) {
|
|
34976
|
+
const _0x61d803 = _0x4ae588;
|
|
34977
|
+
a[_0x21f6e5[_0x61d803(595)]] = _0x21f6e5[_0x61d803(479)];
|
|
34978
|
+
}, "SEAT_SAVE_KEY_VALUE"(_0x45002b) {
|
|
34979
|
+
const _0x1f2b71 = _0x4ae588, { key: _0x4ab73e, value: _0x7002a8 } = _0x45002b;
|
|
34980
|
+
a[_0x4ab73e] = _0x7002a8, _0x4ab73e === _0x1f2b71(419) && _0x7002a8 === "hangup" && (c[_0x1f2b71(365)]({ "type": _0x1f2b71(480) }), h());
|
|
34981
|
+
}, "SEAT_PLAY_AUDIO"(_0x546017) {
|
|
34982
|
+
const _0x5153c1 = _0x4ae588;
|
|
34983
|
+
let { type: _0x383c7f, value: _0x388038 } = _0x546017;
|
|
34984
|
+
if (_0x383c7f === _0x5153c1(348)) a[_0x5153c1(525)][_0x5153c1(348)] = _0x388038;
|
|
34986
34985
|
else {
|
|
34987
|
-
if (
|
|
34986
|
+
if (_0x383c7f === _0x5153c1(559)) a[_0x5153c1(525)]["src"] = _0x388038;
|
|
34988
34987
|
else {
|
|
34989
|
-
if (
|
|
34990
|
-
m && m[
|
|
34988
|
+
if (_0x383c7f === "srcStream") {
|
|
34989
|
+
m && m[_0x5153c1(439)](new Int16Array(_0x388038));
|
|
34991
34990
|
return;
|
|
34992
34991
|
}
|
|
34993
34992
|
}
|
|
34994
34993
|
}
|
|
34995
34994
|
}, "SEAT_RESET_AUDIO"() {
|
|
34996
|
-
const
|
|
34997
|
-
a[
|
|
34998
|
-
}, "SEAT_SET_PHONERINGAUDIO"(
|
|
34999
|
-
|
|
35000
|
-
|
|
35001
|
-
|
|
35002
|
-
|
|
35003
|
-
if (
|
|
35004
|
-
|
|
35005
|
-
a[_0x49ae46(473)] = [];
|
|
34995
|
+
const _0x59fe9f = _0x4ae588;
|
|
34996
|
+
a[_0x59fe9f(525)] && a[_0x59fe9f(525)][_0x59fe9f(541)](), a["audio"]["srcObject"] = null, a[_0x59fe9f(525)][_0x59fe9f(559)] = "", a[_0x59fe9f(525)] = document[_0x59fe9f(382)](_0x59fe9f(525));
|
|
34997
|
+
}, "SEAT_SET_PHONERINGAUDIO"(_0x5e1ea8) {
|
|
34998
|
+
a["phoneRingAudio"] = _0x5e1ea8;
|
|
34999
|
+
}, "SEAT_SET_RECORDSDATA"(_0x5d25bb) {
|
|
35000
|
+
const _0x5f4a96 = _0x4ae588;
|
|
35001
|
+
if (!_0x5d25bb) return;
|
|
35002
|
+
if ([_0x5f4a96(429)][_0x5f4a96(463)](_0x5d25bb[_0x5f4a96(581)]) > -1) {
|
|
35003
|
+
a[_0x5f4a96(379)] = [];
|
|
35006
35004
|
return;
|
|
35007
35005
|
}
|
|
35008
|
-
let
|
|
35009
|
-
if (
|
|
35010
|
-
const
|
|
35011
|
-
a[
|
|
35006
|
+
let _0x42c5f7 = [];
|
|
35007
|
+
if (_0x5d25bb["Type"] === _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(473)] === _0x5f4a96(413) && (a["recordsData"] = [], _0x42c5f7 = (JSON[_0x5f4a96(430)](_0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)])[_0x5f4a96(416)] || [])[_0x5f4a96(367)]((_0x54d331) => Object[_0x5f4a96(528)]({}, _0x54d331, { "ID": b() }))), a[_0x5f4a96(379)][_0x5f4a96(435)] === 0) {
|
|
35008
|
+
const _0x43d71d = { "ID": b(), "PlanID": _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(592)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(592)] : b(), "Messages": _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(473)] === "TypeAIToSeat" ? _0x42c5f7 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x5d25bb[_0x5f4a96(617)] && _0x5d25bb["Data"][_0x5f4a96(521)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(521)] : "", "Sip": "", "VoiceID": "", "CallAt": _0x5d25bb[_0x5f4a96(617)] && _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(556)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(556)] : /* @__PURE__ */ new Date() };
|
|
35009
|
+
a[_0x5f4a96(379)] = [_0x43d71d];
|
|
35012
35010
|
}
|
|
35013
|
-
const
|
|
35014
|
-
(
|
|
35011
|
+
const _0x253d7f = a[_0x5f4a96(379)][0]["Messages"]["length"] || 0, _0x2fc797 = { "ID": b(), "Index": _0x253d7f, "ProduceBy": _0x5d25bb["Type"] === _0x5f4a96(501) ? _0x5f4a96(438) : _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(362) ? _0x5f4a96(575) : "operator", "VoiceID": "", "VoiceText": _0x5d25bb[_0x5f4a96(581)] === "RobotSay" ? _0x5d25bb[_0x5f4a96(473)] : _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": _0x5f4a96(585), "Events": null, "CreatedAt": _0x5f4a96(585), "DeletedAt": null };
|
|
35012
|
+
(_0x5d25bb["Type"] !== _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(581)] !== "RobotSay" && _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)] || _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(362)) && a[_0x5f4a96(379)][0][_0x5f4a96(416)][_0x5f4a96(543)](_0x2fc797);
|
|
35015
35013
|
} };
|
|
35016
|
-
function
|
|
35017
|
-
const
|
|
35018
|
-
|
|
35019
|
-
return
|
|
35020
|
-
};
|
|
35021
|
-
return
|
|
35022
|
-
}
|
|
35023
|
-
function L(
|
|
35024
|
-
const
|
|
35025
|
-
|
|
35026
|
-
const
|
|
35027
|
-
n[
|
|
35028
|
-
},
|
|
35029
|
-
const
|
|
35030
|
-
let
|
|
35031
|
-
|
|
35032
|
-
|
|
35033
|
-
|
|
35034
|
-
}
|
|
35035
|
-
switch (_0x474262["Type"]) {
|
|
35036
|
-
case "WSConnected":
|
|
35037
|
-
n[_0x15507f(386)]({ "key": _0x15507f(220), "status": _0x15507f(314) }), n[_0x15507f(511)](_0x337915), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(258), "value": { "IsOnline": true, "IsAutoAnswer": l[_0x15507f(406)] } }), n[_0x15507f(513)]({ "key": _0x15507f(302), "value": 3 }), c[_0x15507f(431)](_0x15507f(479), _0x15507f(310)), $(), l[_0x15507f(331)] || c["actionSeatHandleIncoming"]({ "type": "CallOnce", "data": l[_0x15507f(460)] });
|
|
35014
|
+
function _0x14e4() {
|
|
35015
|
+
const _0x2d4cff = ["PERMISSION_DENIED", "PermissionDeniedError", "SeatSay", "2186524aaVBjj", "gainNode", "destination", "SEAT_RESET_AUDIO", "string", "CallConnected", "SeatConnectedResp", "createContext", "getChannelData", "srcObject", "CustomerRefuse", "call", "stop", "1855dCsYhM", "voiceInstance", "input", "recorder", "Offline", "Code", "SEAT_UPDATE_WEBSOCKET_STATUS", "inputSampleBits", "onerror", "error", "RobotSay", "获取设备列表失败,请检查浏览器权限设置", "actionSeatStartWS", "actionSeatHandleIncoming", "bind", "map", "rtmp://", "通话中", "url", "terminate", "用户拒绝提供信息。", "channels", "CallBack", "actionSeatInitVoiceWSInstance异常", "employeeID", "set", "toString", "recordsData", "2548546THNiPK", "Str", "createElement", "SeatConnectClientFailed", "getFormatedValue", "WSConnected", "SeatQualityNotice", "CallOnceRinging", "value", "target", "aiToSeat", "isTypedArray", "arraybuffer", "isAutoAnswer", "24qguZsB", "volume", "onaudioprocess", "send", "客户拒接", "autoClosed", "CallUnexpected", "700368SQTMMl", "setInt16", "instance", "data", "env", "option", "SEAT_SEND_RAW_MESSAGE", "customerInfo", "updateConfig", "wss://", "connectInfo", "createBufferSource", "TypeAIToSeat", "getterSeatCurrentDeviceInfoOutputID", "QualityNoticeToCaller", "Messages", "停止响铃", "wss://api.kiwi.tuotoo.com", "callingStage", "WSConnectedReplace", "seatStatus", "createScriptProcessor", "currentDeviceInfoInput", "disconnect", "callOnceStage", "mediaDevice", "人机切换自动接听", "then", "CustomerConnected", "parse", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "min", "online", "result", "length", "CustomerHangUp", "aiToSeatRobotHangup", "customer", "feed", "循环响铃", "state", "7qAzFLm", "VoiceFrom", "Say", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "getterSeatCurrentDeviceInfoInputID", "RobotPID", "16bitInt", "aiToSeatVoiceUrl", "inputBuffer", "TypeCallOnce", "180465onhTTu", "onmessage", "flush", "坐席已挂机", "坐席在其他地方上线", "qualityNoticeToCaller", "1386110bZIMkw", "ended", "onMessage", "kind", "wss://api.kiwi.tuotoo.org", "indexOf", "qualityDictionaryIDs", "Reject", "currentDeviceInfoOutput", "audioCtx", "SeatRefuseResp", "RuleName", "起呼中", "forEach", "maskPhoneNumber", "Msg", "actionSeatStartTalk", "CallOnce", "outputSampleRate", "actionHandleCallBack", "callOptions", "status", "CallNext", "自动接听", "Online", "now", "handleData", "onclose", "getMaxValue", "encoding", "object", "botStatus", "SendMsg", "constructor", "Hangup", "includes", "typedArray", "log", "getTracks", "$1****$2", "destroy", "SeatConnectClientFailedResp", "connect", "CustomerSayText", "getTime", "actionSeatStartPlayer", "getterSeatIsConnected", "ringing", "缺少参数", "无法发现指定的硬件设备。", "name", "actionSeatReconnectWSAfterClosed", "SEAT_SEND_MESSAGE", "NotSupportedError", "820iIRGzS", "QualityNotice", "max", "actionSeatInitVoiceWSInstance", "SEAT_SAVE_KEY_VALUE", "CallConnecting", "close", "stringify", "SEAT_PLAY_AUDIO", "Mobile", "QualityDictionaryIDs", "SeatBusy", "坐席下线", "audio", "SeatCancelResp", "Error", "assign", "size", "state.voiceInstance", "inputSampleRate", "seatData", "audiooutput", "filter", "message", "srcStream", "响铃中", "MandatoryUnsatisfiedError", "onopen", "taskID", "pause", "DictionaryName", "push", "55089UEqMeI", "actions", "SeatConnected", "CustomerSay", "actionSeatSendVoice", "SeatHangUp", "机器人说话", "duration", "LineListID", "坐席上线成功", "context", "catch", "Time", "outputSampleBits", "坐席说话", "src", "flushingTime", "?key=", "InsufficientBalance", "startTime", "play", "无法打开麦克风。异常信息:", "mediaDevices", "通话异常", "gain", "start", "companyID", "呼叫参数", "CustomerID", "planID", "reconnectCount", "robot", "closed", "samples", "qualityMonitorIDs", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "answer", "Type", "token", "initial", "客户已挂机", "0001-01-01T00:00:00Z", "hangup", "/websocket?access_token=", "handleError", "mobile", "SEAT_SET_WS", "坐席正忙", "PlanID", "currentTime", "558ZvwvIQ", "key", "deviceId", "clear", "replace", "MatchKeyword", "substr", "lineListID", "/seat/call/", "errMsg", "Text", "devices", "onceCall", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3", "Answer", "instanceClose", "OutPlanID", "Cancel", "connected", "已有websocket连接,重新连接。", "getUserMedia", "SEAT_SET_VoiceWS", "未处理情况", "Data", "SEAT_SET_PHONERINGAUDIO", "createMediaStreamSource", "prototype", "phoneRingAudio", "addEventListener", "缺少companyID、employeeID、token参数", "SEAT_SET_RECORDSDATA", "actionSeatInitWSInstance", "CallOnceSuccess", "呼出成功", "振铃中", "manualControlSeat", "random", "SeatCancel", "interval", "CallOnceFailed", "enumerateDevices", "onload", "浏览器不支持硬件设备。", "InternetErrorHangUp", "QualityMonitorIDs", "binaryType", "actionSeatVoiceWS", "audioinput", "exp", "buffer", "SeatRefuse", "ping"];
|
|
35016
|
+
_0x14e4 = function() {
|
|
35017
|
+
return _0x2d4cff;
|
|
35018
|
+
};
|
|
35019
|
+
return _0x14e4();
|
|
35020
|
+
}
|
|
35021
|
+
function L(_0x25856e) {
|
|
35022
|
+
const _0x3e4c53 = _0x4ae588, _0x66aa69 = new WebSocket(_0x25856e[_0x3e4c53(370)]);
|
|
35023
|
+
_0x66aa69[_0x3e4c53(539)] = () => {
|
|
35024
|
+
const _0x5741f5 = _0x3e4c53;
|
|
35025
|
+
n[_0x5741f5(358)]({ "key": _0x5741f5(479), "status": "connected" });
|
|
35026
|
+
}, _0x66aa69[_0x3e4c53(453)] = (_0x56c930) => {
|
|
35027
|
+
const _0x12c23d = _0x3e4c53;
|
|
35028
|
+
let _0x11c111 = JSON[_0x12c23d(430)](_0x56c930[_0x12c23d(404)]);
|
|
35029
|
+
switch (_0x11c111[_0x12c23d(357)] !== 0 && c[_0x12c23d(477)](_0x12c23d(527), _0x11c111[_0x12c23d(473)]), _0x11c111[_0x12c23d(581)]) {
|
|
35030
|
+
case _0x12c23d(385):
|
|
35031
|
+
n[_0x12c23d(358)]({ "key": _0x12c23d(479), "status": _0x12c23d(612) }), n[_0x12c23d(590)](_0x66aa69), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(421), "value": { "IsOnline": true, "IsAutoAnswer": l[_0x12c23d(393)] } }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(574), "value": 3 }), c[_0x12c23d(477)](_0x12c23d(482), _0x12c23d(553)), $(), l[_0x12c23d(629)] || c[_0x12c23d(365)]({ "type": _0x12c23d(475), "data": l[_0x12c23d(478)] });
|
|
35038
35032
|
break;
|
|
35039
|
-
case
|
|
35040
|
-
c[
|
|
35033
|
+
case _0x12c23d(420):
|
|
35034
|
+
c[_0x12c23d(509)](false), c["actionHandleCallBack"]("SeatConflict", _0x12c23d(456));
|
|
35041
35035
|
break;
|
|
35042
|
-
case
|
|
35043
|
-
V(), n[
|
|
35036
|
+
case _0x12c23d(387):
|
|
35037
|
+
V(), n[_0x12c23d(516)]({ "key": _0x12c23d(449), "value": "" }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "振铃中" }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), c[_0x12c23d(477)]("CallConnecting", _0x12c23d(537), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)][_0x12c23d(521)] }), a["onceCall"] && (c[_0x12c23d(503)](), c["actionSeatVoiceWS"](_0x11c111));
|
|
35044
35038
|
break;
|
|
35045
|
-
case
|
|
35046
|
-
const
|
|
35047
|
-
c[
|
|
35039
|
+
case _0x12c23d(386):
|
|
35040
|
+
const _0x326aff = _0x11c111[_0x12c23d(617)];
|
|
35041
|
+
c["actionHandleCallBack"](_0x12c23d(513), "您已触发质检规则", { "PlanID": _0x11c111["Data"]["PlanID"], "RuleName": _0x326aff[_0x12c23d(469)], "DictionaryName": _0x326aff[_0x12c23d(542)], "MatchKeyword": _0x326aff[_0x12c23d(599)] });
|
|
35048
35042
|
break;
|
|
35049
|
-
case
|
|
35043
|
+
case _0x12c23d(444):
|
|
35050
35044
|
break;
|
|
35051
|
-
case
|
|
35052
|
-
n[
|
|
35045
|
+
case _0x12c23d(633):
|
|
35046
|
+
n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": Number(_0x11c111[_0x12c23d(357)]) === 203 ? "钱包/通话余量不足" : "呼叫失败" }), h(), c[_0x12c23d(477)](Number(_0x11c111["Code"]) === 203 ? _0x12c23d(562) : _0x12c23d(400), _0x11c111[_0x12c23d(473)]);
|
|
35053
35047
|
break;
|
|
35054
|
-
case
|
|
35055
|
-
n[
|
|
35048
|
+
case _0x12c23d(655):
|
|
35049
|
+
n[_0x12c23d(516)]({ "key": _0x12c23d(411), "value": Object[_0x12c23d(528)]({}, _0x11c111[_0x12c23d(617)], { "CustomerID": a[_0x12c23d(411)] && a[_0x12c23d(411)][_0x12c23d(572)], "Time": a["connectInfo"] && a[_0x12c23d(411)][_0x12c23d(556)] }) }), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": _0x12c23d(612) }), n["SEAT_SET_RECORDSDATA"](_0x11c111), E(), W(), a[_0x12c23d(390)] && c[_0x12c23d(640)](Object[_0x12c23d(528)]({}, _0x11c111, { "Msg": a[_0x12c23d(449)] })), a[_0x12c23d(606)] || (c[_0x12c23d(503)](), c[_0x12c23d(474)]()), c[_0x12c23d(477)](_0x12c23d(654), _0x12c23d(369), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)]["Mobile"] });
|
|
35056
35050
|
break;
|
|
35057
|
-
case
|
|
35058
|
-
n[
|
|
35059
|
-
const
|
|
35060
|
-
c[
|
|
35061
|
-
}, 500), c[
|
|
35051
|
+
case _0x12c23d(429):
|
|
35052
|
+
n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(419), "value": _0x12c23d(505) }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "" }), n[_0x12c23d(516)]({ "key": "connectInfo", "value": _0x11c111["Data"] }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(390), "value": false }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(449), "value": "" }), n[_0x12c23d(624)](_0x11c111), a["onceCall"] ? (c["actionSeatHandleIncoming"]({ "type": _0x12c23d(608) }), n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(612) }), c[_0x12c23d(474)]()) : (V(), c[_0x12c23d(640)](_0x11c111), l["isAutoAnswer"] && setTimeout(() => {
|
|
35053
|
+
const _0x223622 = _0x12c23d;
|
|
35054
|
+
c[_0x223622(365)]({ "type": _0x223622(608) }), console[_0x223622(495)](_0x223622(481));
|
|
35055
|
+
}, 500), c[_0x12c23d(477)](_0x12c23d(517), "通话连接中", { "PlanID": _0x11c111["Data"][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)]["Mobile"] }));
|
|
35062
35056
|
break;
|
|
35063
|
-
case
|
|
35064
|
-
E(), h(), n[
|
|
35057
|
+
case _0x12c23d(499):
|
|
35058
|
+
E(), h(), n[_0x12c23d(516)]({ "key": "callingStage", "value": "" }), c[_0x12c23d(609)](), v(), c[_0x12c23d(477)](_0x12c23d(400), _0x12c23d(567));
|
|
35065
35059
|
break;
|
|
35066
|
-
case
|
|
35067
|
-
E(), a[
|
|
35060
|
+
case _0x12c23d(637):
|
|
35061
|
+
E(), a["recorder"] && a["recorder"]["stop"](), n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(586) }), c[_0x12c23d(477)](_0x12c23d(400), "通话异常"), v();
|
|
35068
35062
|
break;
|
|
35069
|
-
case
|
|
35070
|
-
case
|
|
35071
|
-
a[
|
|
35063
|
+
case _0x12c23d(436):
|
|
35064
|
+
case "CustomerCancel":
|
|
35065
|
+
a[_0x12c23d(355)] && a[_0x12c23d(355)][_0x12c23d(351)](), E(), n["SEAT_SAVE_KEY_VALUE"]({ "key": "onceCall", "value": false }), a[_0x12c23d(419)] !== _0x12c23d(612) && c[_0x12c23d(365)]({ "type": _0x12c23d(480) }), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": a[_0x12c23d(419)] === _0x12c23d(612) ? _0x12c23d(586) : "" }), c[_0x12c23d(477)]("CustomerHangUp", _0x12c23d(584)), v();
|
|
35072
35066
|
break;
|
|
35073
|
-
case
|
|
35074
|
-
h(), n[
|
|
35067
|
+
case _0x12c23d(349):
|
|
35068
|
+
h(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(425), "value": _0x12c23d(398) }), n[_0x12c23d(516)]({ "key": "callingStage", "value": "" }), n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": false }), E(), c[_0x12c23d(477)](_0x12c23d(349), _0x12c23d(398)), v();
|
|
35075
35069
|
break;
|
|
35076
|
-
case
|
|
35077
|
-
a[
|
|
35070
|
+
case _0x12c23d(549):
|
|
35071
|
+
a[_0x12c23d(355)] && a["recorder"][_0x12c23d(351)](), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "hangup" }), E();
|
|
35078
35072
|
break;
|
|
35079
35073
|
case "SeatHangUpResp":
|
|
35080
|
-
a[
|
|
35074
|
+
a["recorder"] && (a[_0x12c23d(355)][_0x12c23d(351)](), a["recorder"] = null), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "hangup" }), n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": false }), c[_0x12c23d(477)](_0x12c23d(549), _0x12c23d(455));
|
|
35081
35075
|
break;
|
|
35082
|
-
case
|
|
35083
|
-
console[
|
|
35076
|
+
case _0x12c23d(468):
|
|
35077
|
+
console[_0x12c23d(495)]("坐席拒接"), n["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), E(), c["actionSeatHandleIncoming"]({ "type": _0x12c23d(480) });
|
|
35084
35078
|
break;
|
|
35085
|
-
case
|
|
35086
|
-
n[
|
|
35079
|
+
case _0x12c23d(526):
|
|
35080
|
+
n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(606), "value": false }), c["actionHandleCallBack"]("SeatHangUp", _0x12c23d(455)), E();
|
|
35087
35081
|
break;
|
|
35088
|
-
case
|
|
35089
|
-
n[
|
|
35082
|
+
case _0x12c23d(501):
|
|
35083
|
+
n[_0x12c23d(624)](_0x11c111), c[_0x12c23d(477)](_0x12c23d(547), "客户说话", { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Text": _0x11c111["Data"][_0x12c23d(604)], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
|
|
35090
35084
|
break;
|
|
35091
|
-
case
|
|
35092
|
-
n[
|
|
35085
|
+
case "SeatSayText":
|
|
35086
|
+
n[_0x12c23d(624)](_0x11c111), c["actionHandleCallBack"](_0x12c23d(648), _0x12c23d(558), { "PlanID": _0x11c111[_0x12c23d(617)]["PlanID"], "Text": _0x11c111["Data"][_0x12c23d(604)], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
|
|
35093
35087
|
break;
|
|
35094
35088
|
case "RobotSay":
|
|
35095
|
-
n[
|
|
35089
|
+
n["SEAT_SET_RECORDSDATA"](_0x11c111), c[_0x12c23d(477)](_0x12c23d(362), _0x12c23d(550), { "PlanID": _0x11c111["Data"][_0x12c23d(592)], "Text": _0x11c111[_0x12c23d(617)]["Text"], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
|
|
35096
35090
|
break;
|
|
35097
|
-
case
|
|
35098
|
-
c[
|
|
35091
|
+
case _0x12c23d(523):
|
|
35092
|
+
c[_0x12c23d(477)](_0x12c23d(523), _0x12c23d(591));
|
|
35099
35093
|
break;
|
|
35100
|
-
case
|
|
35101
|
-
n[
|
|
35094
|
+
case "CallOnceSuccess":
|
|
35095
|
+
n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": true }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": _0x12c23d(470) }), c[_0x12c23d(477)](_0x12c23d(626), _0x12c23d(627));
|
|
35102
35096
|
break;
|
|
35103
|
-
case
|
|
35104
|
-
n[
|
|
35105
|
-
const
|
|
35106
|
-
c[
|
|
35107
|
-
}, 500), c[
|
|
35097
|
+
case _0x12c23d(413):
|
|
35098
|
+
n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(505) }), V(), n[_0x12c23d(516)]({ "key": _0x12c23d(390), "value": true }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(449), "value": _0x11c111[_0x12c23d(473)] }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(411), "value": _0x11c111[_0x12c23d(617)] }), l[_0x12c23d(393)] && setTimeout(() => {
|
|
35099
|
+
const _0x56447b = _0x12c23d;
|
|
35100
|
+
c[_0x56447b(365)]({ "type": _0x56447b(608) }), console[_0x56447b(495)](_0x56447b(427));
|
|
35101
|
+
}, 500), c["actionHandleCallBack"](_0x12c23d(517), _0x12c23d(537), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111["Data"][_0x12c23d(521)], "IsAIToSeat": true });
|
|
35108
35102
|
break;
|
|
35109
|
-
case
|
|
35110
|
-
a[
|
|
35103
|
+
case _0x12c23d(437):
|
|
35104
|
+
a[_0x12c23d(355)] && a[_0x12c23d(355)]["stop"](), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "" }), c["actionSeatHandleIncoming"]({ "type": "CallNext" }), E();
|
|
35111
35105
|
break;
|
|
35112
35106
|
default:
|
|
35113
|
-
console[
|
|
35107
|
+
console[_0x12c23d(495)](_0x12c23d(616));
|
|
35114
35108
|
break;
|
|
35115
35109
|
}
|
|
35116
|
-
},
|
|
35117
|
-
const
|
|
35118
|
-
if (U(), c[
|
|
35119
|
-
const
|
|
35120
|
-
|
|
35110
|
+
}, _0x66aa69[_0x3e4c53(485)] = () => {
|
|
35111
|
+
const _0x445f40 = _0x3e4c53;
|
|
35112
|
+
if (U(), c["actionHandleCallBack"]("Offline", _0x445f40(524)), n[_0x445f40(590)](""), n[_0x445f40(358)]({ "key": _0x445f40(479), "status": "closed" }), n[_0x445f40(516)]({ "key": _0x445f40(419), "value": "" }), n[_0x445f40(516)]({ "key": _0x445f40(421), "value": { "IsOnline": false, "IsAutoAnswer": l[_0x445f40(393)] } }), E(), a[_0x445f40(355)] && a["recorder"][_0x445f40(351)](), m && m[_0x445f40(498)](), (R || a[_0x445f40(399)]) && a[_0x445f40(574)] > 0) {
|
|
35113
|
+
const _0x2e961c = a["reconnectCount"] - 1;
|
|
35114
|
+
R = false, L(_0x25856e), n[_0x445f40(516)]({ "key": "reconnectCount", "value": _0x2e961c });
|
|
35121
35115
|
}
|
|
35122
|
-
},
|
|
35123
|
-
const
|
|
35124
|
-
U(), c[
|
|
35116
|
+
}, _0x66aa69[_0x3e4c53(360)] = () => {
|
|
35117
|
+
const _0x226a71 = _0x3e4c53;
|
|
35118
|
+
U(), c[_0x226a71(477)](_0x226a71(356), _0x226a71(524)), c[_0x226a71(609)](), c["actionHandleCallBack"](_0x226a71(400), _0x226a71(567));
|
|
35125
35119
|
};
|
|
35126
35120
|
}
|
|
35127
|
-
const q = (
|
|
35128
|
-
const
|
|
35129
|
-
l =
|
|
35130
|
-
}, z = (
|
|
35131
|
-
|
|
35132
|
-
l = _0x4da26f, c[_0x492f91(377)]();
|
|
35121
|
+
const q = (_0x1df244) => {
|
|
35122
|
+
const _0x3b6002 = _0x4ae588;
|
|
35123
|
+
l = _0x1df244, _0x1df244[_0x3b6002(629)] ? P[_0x3b6002(545)][_0x3b6002(365)]({ "type": _0x3b6002(475), "data": l["callOptions"] }) : c[_0x3b6002(364)]();
|
|
35124
|
+
}, z = (_0x5711c0) => {
|
|
35125
|
+
l = _0x5711c0, c["actionSeatStartWS"]();
|
|
35133
35126
|
}, J = () => {
|
|
35134
|
-
const
|
|
35135
|
-
p["getterSeatIsRinging"]() ? c["actionSeatHandleIncoming"]({ "type":
|
|
35127
|
+
const _0x9ed8a7 = _0x4ae588, _0x2c6e02 = p["getterSeatCallOnceStage"]();
|
|
35128
|
+
p["getterSeatIsRinging"]() ? c["actionSeatHandleIncoming"]({ "type": _0x9ed8a7(465) }) : p[_0x9ed8a7(504)]() ? c[_0x9ed8a7(365)]({ "type": _0x9ed8a7(492) }) : (_0x2c6e02 === _0x9ed8a7(628) || _0x2c6e02 === _0x9ed8a7(470)) && c["actionSeatHandleIncoming"]({ "type": _0x9ed8a7(611) }), h();
|
|
35136
35129
|
}, h = () => {
|
|
35137
35130
|
setTimeout(() => {
|
|
35138
|
-
const
|
|
35139
|
-
a[
|
|
35131
|
+
const _0x546f24 = _0x2125;
|
|
35132
|
+
a["voiceInstance"] && a[_0x546f24(353)][_0x546f24(518)](), l[_0x546f24(629)] || c[_0x546f24(609)]();
|
|
35140
35133
|
}, 800);
|
|
35141
35134
|
}, Q = () => {
|
|
35142
|
-
const
|
|
35143
|
-
c[
|
|
35144
|
-
}, Z = (
|
|
35145
|
-
const
|
|
35146
|
-
|
|
35135
|
+
const _0x24dcaa = _0x4ae588;
|
|
35136
|
+
c["actionSeatHandleIncoming"]({ "type": _0x24dcaa(608) });
|
|
35137
|
+
}, Z = (_0xe1dbb8) => {
|
|
35138
|
+
const _0x3c7ef5 = _0x4ae588;
|
|
35139
|
+
_0xe1dbb8 && (l = Object[_0x3c7ef5(528)]({}, l, _0xe1dbb8));
|
|
35147
35140
|
}, P = { "actions": c };
|
|
35148
35141
|
class ee {
|
|
35149
|
-
constructor(
|
|
35150
|
-
const
|
|
35151
|
-
w(this,
|
|
35152
|
-
}
|
|
35153
|
-
[
|
|
35154
|
-
const
|
|
35155
|
-
if (!this[
|
|
35156
|
-
this[
|
|
35142
|
+
constructor(_0x5e4ad8) {
|
|
35143
|
+
const _0xcc0d25 = _0x4ae588;
|
|
35144
|
+
w(this, _0xcc0d25(404)), this[_0xcc0d25(404)] = _0x5e4ad8;
|
|
35145
|
+
}
|
|
35146
|
+
[_0x4ae588(350)](_0x85ef6c) {
|
|
35147
|
+
const _0x2b5745 = _0x4ae588, { mobile: _0x2323e3, callBack: _0x3422c8 = "", outPlanID: _0x25ad13 = "", robotPID: _0x1f3ce3 = "" } = _0x85ef6c;
|
|
35148
|
+
if (!this[_0x2b5745(404)][_0x2b5745(570)] || !this["data"][_0x2b5745(376)] || !this[_0x2b5745(404)]["token"]) {
|
|
35149
|
+
this[_0x2b5745(588)](_0x2b5745(623));
|
|
35157
35150
|
return;
|
|
35158
35151
|
}
|
|
35159
|
-
if (!
|
|
35160
|
-
this[
|
|
35152
|
+
if (!_0x2323e3 && !_0x85ef6c[_0x2b5745(573)]) {
|
|
35153
|
+
this["handleError"](_0x2b5745(506));
|
|
35161
35154
|
return;
|
|
35162
35155
|
}
|
|
35163
|
-
if (!F(this[
|
|
35164
|
-
this[
|
|
35156
|
+
if (!F(this["data"][_0x2b5745(582)])) {
|
|
35157
|
+
this["handleError"]("token过期");
|
|
35165
35158
|
return;
|
|
35166
35159
|
}
|
|
35167
|
-
let
|
|
35168
|
-
|
|
35169
|
-
const
|
|
35170
|
-
q(Object[
|
|
35171
|
-
}, (
|
|
35172
|
-
const
|
|
35173
|
-
this[
|
|
35160
|
+
let _0x2dce03 = { "Mobile": _0x85ef6c[_0x2b5745(589)] };
|
|
35161
|
+
_0x85ef6c[_0x2b5745(601)] && (_0x2dce03[_0x2b5745(552)] = _0x85ef6c[_0x2b5745(601)]), _0x85ef6c[_0x2b5745(573)] && (_0x2dce03[_0x2b5745(592)] = _0x85ef6c["planID"]), _0x85ef6c[_0x2b5745(540)] && (_0x2dce03["TaskID"] = _0x85ef6c["taskID"]), _0x1f3ce3 && (_0x2dce03[_0x2b5745(447)] = _0x1f3ce3), _0x25ad13 && (_0x2dce03[_0x2b5745(610)] = _0x25ad13), _0x3422c8 && (_0x2dce03[_0x2b5745(374)] = _0x3422c8), _0x85ef6c[_0x2b5745(464)] && (_0x2dce03[_0x2b5745(522)] = _0x85ef6c[_0x2b5745(464)]), _0x85ef6c[_0x2b5745(578)] && (_0x2dce03[_0x2b5745(638)] = _0x85ef6c[_0x2b5745(578)]), _0x85ef6c[_0x2b5745(457)] && (_0x2dce03[_0x2b5745(415)] = _0x85ef6c[_0x2b5745(457)]), B(() => {
|
|
35162
|
+
const _0x151f02 = _0x2b5745;
|
|
35163
|
+
q(Object[_0x151f02(528)]({}, this[_0x151f02(404)], { "callOptions": _0x2dce03 }));
|
|
35164
|
+
}, (_0x543af8) => {
|
|
35165
|
+
const _0x490030 = _0x2b5745;
|
|
35166
|
+
this["handleError"](_0x543af8[_0x490030(603)]);
|
|
35174
35167
|
});
|
|
35175
35168
|
}
|
|
35176
|
-
[
|
|
35177
|
-
const
|
|
35178
|
-
this[
|
|
35169
|
+
[_0x4ae588(588)](_0x104136) {
|
|
35170
|
+
const _0x347bec = _0x4ae588;
|
|
35171
|
+
this["data"][_0x347bec(460)] && this[_0x347bec(404)][_0x347bec(460)]({ "type": _0x347bec(527), "msg": _0x104136 });
|
|
35179
35172
|
}
|
|
35180
|
-
[
|
|
35173
|
+
[_0x4ae588(371)]() {
|
|
35181
35174
|
J();
|
|
35182
35175
|
}
|
|
35183
|
-
[
|
|
35176
|
+
[_0x4ae588(580)]() {
|
|
35184
35177
|
Q();
|
|
35185
35178
|
}
|
|
35186
|
-
[
|
|
35179
|
+
[_0x4ae588(433)]() {
|
|
35187
35180
|
B(() => {
|
|
35188
35181
|
z(this["data"]);
|
|
35189
|
-
}, (
|
|
35190
|
-
const
|
|
35191
|
-
this[
|
|
35182
|
+
}, (_0x594671) => {
|
|
35183
|
+
const _0x13344d = _0x2125;
|
|
35184
|
+
this[_0x13344d(588)](_0x594671["errMsg"]);
|
|
35192
35185
|
});
|
|
35193
35186
|
}
|
|
35194
|
-
[
|
|
35195
|
-
const
|
|
35196
|
-
P[
|
|
35187
|
+
["offline"]() {
|
|
35188
|
+
const _0x3bd157 = _0x4ae588;
|
|
35189
|
+
P[_0x3bd157(545)]["instanceClose"]();
|
|
35197
35190
|
}
|
|
35198
|
-
[
|
|
35199
|
-
Z(
|
|
35191
|
+
[_0x4ae588(409)](_0x290c16) {
|
|
35192
|
+
Z(_0x290c16);
|
|
35200
35193
|
}
|
|
35201
35194
|
}
|
|
35202
35195
|
const _hoisted_1$3 = {
|