@tuotoo/kiwi-pc-plugin-toolbar 0.1.12 → 0.1.14
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 +542 -529
- package/dist/index.umd.js +7 -7
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -30973,7 +30973,11 @@ const format = (date, formatStr = "yyyy-MM-dd") => {
|
|
|
30973
30973
|
});
|
|
30974
30974
|
return result;
|
|
30975
30975
|
};
|
|
30976
|
-
const getApiHost = (env) => {
|
|
30976
|
+
const getApiHost = (env, deployBaseURL) => {
|
|
30977
|
+
if (deployBaseURL) {
|
|
30978
|
+
let url = new URL(deployBaseURL.includes("://") ? deployBaseURL : `http://${deployBaseURL}`);
|
|
30979
|
+
return "https://" + url.host + "/v1";
|
|
30980
|
+
}
|
|
30977
30981
|
if (env === "test") return "https://api.kiwi.tuotoo.org/v1";
|
|
30978
30982
|
return "https://api.kiwi.tuotoo.com/v1";
|
|
30979
30983
|
};
|
|
@@ -33516,7 +33520,7 @@ const _sfc_main$8 = {
|
|
|
33516
33520
|
followType: "sms"
|
|
33517
33521
|
});
|
|
33518
33522
|
const apiHost = computed(() => {
|
|
33519
|
-
return getApiHost(__props.initConfig.env);
|
|
33523
|
+
return getApiHost(__props.initConfig.env, __props.initConfig.deployBaseURL);
|
|
33520
33524
|
});
|
|
33521
33525
|
watch(() => __props.CustomerDetail, (val) => {
|
|
33522
33526
|
const copyFollowRecords = JSON.parse(JSON.stringify(val)).FollowRecords || [];
|
|
@@ -34035,7 +34039,7 @@ const _sfc_main$5 = {
|
|
|
34035
34039
|
const dealTime = ref("");
|
|
34036
34040
|
const followStatus = ref("clue");
|
|
34037
34041
|
const apiHost = computed(() => {
|
|
34038
|
-
return getApiHost(__props.initConfig.env);
|
|
34042
|
+
return getApiHost(__props.initConfig.env, __props.initConfig.deployBaseURL);
|
|
34039
34043
|
});
|
|
34040
34044
|
watch(() => __props.CustomerDetail, (val) => {
|
|
34041
34045
|
dealTime.value = val.ExpectedCompleteAt;
|
|
@@ -34545,673 +34549,678 @@ const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYA
|
|
|
34545
34549
|
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
34550
|
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
34551
|
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
|
|
34552
|
+
const _0x15a666 = _0x3e0d;
|
|
34553
|
+
(function(_0x3af6fe, _0x12136b) {
|
|
34554
|
+
const _0x1a20aa = _0x3e0d, _0x327053 = _0x3af6fe();
|
|
34551
34555
|
while (!![]) {
|
|
34552
34556
|
try {
|
|
34553
|
-
const
|
|
34554
|
-
if (
|
|
34555
|
-
else
|
|
34556
|
-
} catch (
|
|
34557
|
-
|
|
34557
|
+
const _0x3b1255 = -parseInt(_0x1a20aa(498)) / 1 * (-parseInt(_0x1a20aa(549)) / 2) + -parseInt(_0x1a20aa(589)) / 3 + parseInt(_0x1a20aa(473)) / 4 + parseInt(_0x1a20aa(545)) / 5 + parseInt(_0x1a20aa(390)) / 6 * (parseInt(_0x1a20aa(475)) / 7) + parseInt(_0x1a20aa(443)) / 8 * (parseInt(_0x1a20aa(340)) / 9) + -parseInt(_0x1a20aa(554)) / 10;
|
|
34558
|
+
if (_0x3b1255 === _0x12136b) break;
|
|
34559
|
+
else _0x327053["push"](_0x327053["shift"]());
|
|
34560
|
+
} catch (_0x485297) {
|
|
34561
|
+
_0x327053["push"](_0x327053["shift"]());
|
|
34558
34562
|
}
|
|
34559
34563
|
}
|
|
34560
|
-
})(
|
|
34561
|
-
|
|
34564
|
+
})(_0x1da3, 865850);
|
|
34565
|
+
function _0x1da3() {
|
|
34566
|
+
const _0x4a4157 = ["http://", "option", "max", "version", "seatStatus", "devices", "duration", "audio", "indexOf", "4909148UGZjjt", "maskPhoneNumber", "1600011IePIrd", "qualityNoticeToCaller", "MatchKeyword", "actionSeatVoiceWS", "addEventListener", "token", "Mobile", "循环响铃", "handleData", "坐席接听", "RuleName", "send", "length", "actions", "createMediaStreamSource", "input", "buffer", "16bitInt", "call", "SeatCancel", "0001-01-01T00:00:00Z", "voiceInstance", "application/x-www-form-urlencoded", "1RFcLTv", "start", "enumerateDevices", "channels", "answer", "SendPong", "srcStream", "manualControlSeat", "target", "Msg", "instanceClose", "Type", "onMessage", "坐席在其他地方上线", "deployBaseURL", "机器人挂机", "SeatConnectedResp", "flush", "kind", "actionSeatReconnectWSAfterClosed", "getTracks", "Offline", "CallOnce", "handleError", "phoneRingAudio", "disconnect", "VoiceFrom", "actionSeatInitWSInstance", "onaudioprocess", "收到WSConnected,发送起呼请求", "getUserMedia", "sampleRate", "坐席主动挂断", "CustomerConnected", "MANDATORY_UNSATISFIED_ERROR", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "起呼参数", "encodePCM", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3", "createElement", "defineProperty", "SeatHangUp", "qualityDictionaryIDs", "map", "createGain", "instance", "CallOnceSuccess", "5960575elBqaH", "binaryType", "data", "object", "56776klszOA", "Messages", "state.voiceInstance", "createScriptProcessor", "botStatus", "27108970hjroEC", "getFormatedValue", "audiooutput", "getMaxValue", "currentDeviceInfoOutput", "SEAT_SET_RECORDSDATA", "通话异常:SeatConnectClientFailedResp", "无法打开麦克风。异常信息:", "被叫接通,坐席拒接", "//api.kiwi.tuotoo.org", "srcObject", "://", "SEAT_RESET_AUDIO", "onload", "actionSeatStartPlayer", "无法发现指定的硬件设备。", "connectInfo", "outputSampleRate", "maxValue", "SEAT_SEND_RAW_MESSAGE", "onmessage", "CallBack", "SeatQualityNotice", "CallConnected", "employeeID", "SendMsg", "NotSupportedError", "坐席下线", "getTypedArray", "gainNode", "客户拒接", "catch", "env", "errMsg", "audioinput", "3207636NMrPbw", "Cancel", "起呼中", "客户说话", "/v1/operationLog", "PERMISSION_DENIED", "getMonth", "坐席上线成功", "$1****$2", "SeatConnectClientFailedResp", "缺少companyID、employeeID、token参数", "detail", "CustomerSay", "error", "SEAT_UPDATE_WEBSOCKET_STATUS", "WSConnected", "src", "SeatFail", "Say", "坐席取消外呼", "CustomerHangUp", "SeatConnectClientFailed", "closed", "SeatConnected", "getMinutes", "callingStage", "ws连接已建立", "qualityMonitorIDs", "code", "deviceId", "已有websocket连接,重新连接。", "SEAT_SEND_MESSAGE", "status", "currentTime", "outputSampleBits", "min", "set", "stringify", "客户挂断", "wss:", "onerror", "isAutoAnswer", "clear", "getDate", "assign", "onceCall", "mediaDevice", "TaskID", "destroy", "ringing", "您已触发质检规则", "log", "gain", "init", "RobotSay", "SEAT_SET_VoiceWS", "TypeCallOnce", "mediaDevices", "string", "SeatSay", "stop", "getChannelData", "recorder", "自动接听", "CallOnceRinging", "context", "actionSeatHandleIncoming", "recordsData", "connect", "startTime", "getSeconds", "isTypedArray", "CallNext", "PermissionDeniedError", "/v1/company/", "aiToSeatRobotHangup", "VoiceFromOther", "terminate", "响铃中", "POST", "open", "inputSampleBits", "seatData", "SeatHangUpResp", "0.1.17", "constructor", "getTime", "find", "SEAT_SET_WS", "呼叫参数", "slice", "LineListID", "getterSeatIsRinging", "random", "getFullYear", "url", "通话异常:InternetErrorHangUp", "result", "SeatSayText", "453735eSmUVn", "SeatBusy", "CustomerRefuse", "WSPing", "mobile", "companyID", "lineListID", "now", "token过期", "CallUnexpected", "customerInfo", "手动上线", "Error", "parse", "未处理情况", "SEAT_SAVE_KEY_VALUE", "createContext", "QualityDictionaryIDs", "typedArray", "Text", "offline", "Code", "用户拒绝提供信息。", "pause", "getBlob", "exp", "浏览器不支持硬件设备。", "CustomerCancel", "WSConnectedReplace", "forEach", "test", "坐席拒接", "Online", "客户已挂机", "SeatConflict", "OutPlanID", "机器人说话", "SeatRefuse", "autoClosed", "feed", "key", "getterSeatIsConnected", "samples", "SeatRefuseResp", "坐席忙线", "&needKeepAlive=true", "callOnceStage", "play", "SEAT_SET_PHONERINGAUDIO", "hangUp_", "18suCrvk", "ws连接异常", "坐席已挂机", "initial", "toString", "flushingTime", "robot", "arraybuffer", "Answer", "actionHandleCallBack", "getterSeatCallOnceStage", "MandatoryUnsatisfiedError", "通话异常", "onclose", "actionSeatInitVoiceWSInstance异常", "actionSeatInitVoiceWSInstance", "aiToSeatVoiceUrl", "呼叫失败", "reconnectCount", "destination", "Data", "currentDeviceInfoInput", "客户接通", "push", "getHours", "pc参数错误", "/websocket?access_token=", "actionSeatStartWS", "onopen", "setInt16", "getterSeatCurrentDeviceInfoOutputID", "callOptions", "Time", "Hangup", "振铃中", "audioCtx", "reason", "size", "DictionaryName", "TypeAIToSeat", "planID", "ws onmessage报错", "close", "actionSeatStartTalk", "缺少参数", "NOT_SUPPORTED_ERROR", "value", "getterSeatCurrentDeviceInfoInputID", "坐席正忙", "volume", "prototype", "encoding", "onreadystatechange", "240fOTpGS", "updateConfig", "ended", "interval", "bind", "?key=", "SEAT_PLAY_AUDIO", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "RobotPID", "connected", "Failed:", "includes", "PlanID", "aiToSeat", "CustomerSayText", "createBuffer", "CallConnecting", "InternetErrorHangUp", "WSPong", "hangup", "rtmp://"];
|
|
34567
|
+
_0x1da3 = function() {
|
|
34568
|
+
return _0x4a4157;
|
|
34569
|
+
};
|
|
34570
|
+
return _0x1da3();
|
|
34571
|
+
}
|
|
34572
|
+
var q = Object[_0x15a666(538)], J = (_0x94f00a, _0x4403f2, _0x52d529) => _0x4403f2 in _0x94f00a ? q(_0x94f00a, _0x4403f2, { "enumerable": true, "configurable": true, "writable": true, "value": _0x52d529 }) : _0x94f00a[_0x4403f2] = _0x52d529, K = (_0x3a9614, _0x194f07, _0x444c97) => J(_0x3a9614, typeof _0x194f07 != "symbol" ? _0x194f07 + "" : _0x194f07, _0x444c97);
|
|
34562
34573
|
let v = false;
|
|
34563
|
-
const z = function(
|
|
34564
|
-
const
|
|
34565
|
-
this[
|
|
34566
|
-
let
|
|
34567
|
-
const
|
|
34568
|
-
const
|
|
34569
|
-
this[
|
|
34570
|
-
}, "input": function(
|
|
34571
|
-
const
|
|
34572
|
-
this[
|
|
34574
|
+
const z = function(_0x2ec5ff, _0x14b2f1) {
|
|
34575
|
+
const _0x55ea80 = _0x15a666;
|
|
34576
|
+
this[_0x55ea80(306)] = new AudioContext({ "sampleRate": 8e3 });
|
|
34577
|
+
let _0x306258 = this[_0x55ea80(306)][_0x55ea80(489)](_0x2ec5ff), _0x399f61 = this[_0x55ea80(306)][_0x55ea80(552)](2048, 1, 1);
|
|
34578
|
+
const _0xa242f9 = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
|
|
34579
|
+
const _0x197fac = _0x55ea80;
|
|
34580
|
+
this["buffer"] = [], this[_0x197fac(427)] = 0;
|
|
34581
|
+
}, "input": function(_0x587db4) {
|
|
34582
|
+
const _0x131972 = _0x55ea80;
|
|
34583
|
+
this["buffer"][_0x131972(413)](new Float32Array(_0x587db4)), this[_0x131972(427)] += _0x587db4[_0x131972(487)];
|
|
34573
34584
|
}, "compress": function() {
|
|
34574
|
-
const
|
|
34575
|
-
for (var
|
|
34576
|
-
for (var
|
|
34577
|
-
return
|
|
34585
|
+
const _0x4626c8 = _0x55ea80;
|
|
34586
|
+
for (var _0x410bb4 = new Float32Array(this[_0x4626c8(427)]), _0x458f32 = 0, _0x5ca353 = 0; _0x5ca353 < this[_0x4626c8(491)]["length"]; _0x5ca353++) _0x410bb4[_0x4626c8(277)](this[_0x4626c8(491)][_0x5ca353], _0x458f32), _0x458f32 += this[_0x4626c8(491)][_0x5ca353][_0x4626c8(487)];
|
|
34587
|
+
for (var _0x299263 = parseInt(String(this["inputSampleRate"] / this[_0x4626c8(571)])), _0x265c1e = _0x410bb4[_0x4626c8(487)] / _0x299263, _0x3e5260 = new Float32Array(_0x265c1e), _0x2aac24 = 0, _0x16579d = 0; _0x2aac24 < _0x265c1e; ) _0x3e5260[_0x2aac24] = _0x410bb4[_0x16579d], _0x16579d += _0x299263, _0x2aac24++;
|
|
34588
|
+
return _0x3e5260;
|
|
34578
34589
|
}, "encodePCM": function() {
|
|
34579
|
-
const
|
|
34580
|
-
for (var
|
|
34581
|
-
var
|
|
34582
|
-
|
|
34590
|
+
const _0x7f5797 = _0x55ea80;
|
|
34591
|
+
for (var _0x29331e = Math["min"](this[_0x7f5797(322)], this[_0x7f5797(275)]), _0x28893f = this["compress"](), _0x278665 = _0x28893f[_0x7f5797(487)] * (_0x29331e / 8), _0x4ebc74 = new ArrayBuffer(_0x278665), _0x19201c = new DataView(_0x4ebc74), _0x47b05f = 0, _0x2cc2f8 = 0; _0x2cc2f8 < _0x28893f[_0x7f5797(487)]; _0x2cc2f8++, _0x47b05f += 2) {
|
|
34592
|
+
var _0x5dba26 = Math[_0x7f5797(466)](-1, Math[_0x7f5797(276)](1, _0x28893f[_0x2cc2f8]));
|
|
34593
|
+
_0x19201c[_0x7f5797(419)](_0x47b05f, _0x5dba26 < 0 ? _0x5dba26 * 32768 : _0x5dba26 * 32767, true);
|
|
34583
34594
|
}
|
|
34584
|
-
return new Blob([
|
|
34595
|
+
return new Blob([_0x19201c]);
|
|
34585
34596
|
} };
|
|
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
|
-
v = true,
|
|
34603
|
-
}, this[
|
|
34604
|
-
const
|
|
34605
|
-
v = false,
|
|
34606
|
-
}, this[
|
|
34607
|
-
|
|
34608
|
-
|
|
34609
|
-
|
|
34610
|
-
|
|
34611
|
-
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34615
|
-
|
|
34616
|
-
|
|
34617
|
-
|
|
34618
|
-
}
|
|
34619
|
-
|
|
34620
|
-
|
|
34621
|
-
|
|
34622
|
-
case
|
|
34623
|
-
|
|
34624
|
-
|
|
34625
|
-
case
|
|
34626
|
-
|
|
34627
|
-
|
|
34628
|
-
case
|
|
34629
|
-
|
|
34597
|
+
var _0x62ab87 = function() {
|
|
34598
|
+
const _0x641f2c = _0x55ea80;
|
|
34599
|
+
var _0x3fa396 = new FileReader();
|
|
34600
|
+
_0x3fa396[_0x641f2c(567)] = (_0x38c57e) => {
|
|
34601
|
+
const _0x34b97b = _0x641f2c;
|
|
34602
|
+
if (!(!_0x38c57e[_0x34b97b(506)] || !v)) {
|
|
34603
|
+
var _0x436712 = _0x38c57e[_0x34b97b(506)][_0x34b97b(338)];
|
|
34604
|
+
if (!(!_0x436712 || typeof _0x436712 == _0x34b97b(299))) {
|
|
34605
|
+
var _0x39dd92 = new Int16Array(_0x436712);
|
|
34606
|
+
_0x14b2f1(_0x39dd92);
|
|
34607
|
+
}
|
|
34608
|
+
}
|
|
34609
|
+
}, _0x3fa396["readAsArrayBuffer"](_0xa242f9[_0x641f2c(535)]()), _0xa242f9[_0x641f2c(283)]();
|
|
34610
|
+
};
|
|
34611
|
+
this[_0x55ea80(499)] = function() {
|
|
34612
|
+
const _0x1da0dc = _0x55ea80;
|
|
34613
|
+
v = true, _0x306258["connect"](_0x399f61), _0x399f61[_0x1da0dc(309)](this[_0x1da0dc(306)][_0x1da0dc(409)]);
|
|
34614
|
+
}, this[_0x55ea80(301)] = function() {
|
|
34615
|
+
const _0x2be775 = _0x55ea80;
|
|
34616
|
+
v = false, _0x2ec5ff[_0x2be775(518)]()[_0x2be775(369)]((_0x41675e) => _0x41675e["stop"]()), _0x399f61 && (_0x399f61[_0x2be775(526)] = null, _0x399f61[_0x2be775(523)]()), _0x306258 && _0x306258[_0x2be775(523)](), this["context"] && this["context"][_0x2be775(432)](), _0x399f61 = null, _0x306258 = null, this["context"] = null;
|
|
34617
|
+
}, this[_0x55ea80(364)] = function() {
|
|
34618
|
+
const _0x472882 = _0x55ea80;
|
|
34619
|
+
return _0xa242f9[_0x472882(535)]();
|
|
34620
|
+
}, this[_0x55ea80(283)] = function() {
|
|
34621
|
+
const _0x1a08f4 = _0x55ea80;
|
|
34622
|
+
_0xa242f9[_0x1a08f4(283)](), this[_0x1a08f4(306)] && (this["context"][_0x1a08f4(432)](), this[_0x1a08f4(306)] = null);
|
|
34623
|
+
}, _0x399f61[_0x55ea80(526)] = function(_0x2096ef) {
|
|
34624
|
+
const _0x2a7ef8 = _0x55ea80;
|
|
34625
|
+
if (!(!v || !this[_0x2a7ef8(306)] || this[_0x2a7ef8(306)]["state"] === _0x2a7ef8(263))) {
|
|
34626
|
+
var _0x585883 = _0x2096ef["inputBuffer"][_0x2a7ef8(302)](0);
|
|
34627
|
+
_0xa242f9[_0x2a7ef8(490)](_0x585883), _0x62ab87();
|
|
34628
|
+
}
|
|
34629
|
+
};
|
|
34630
|
+
}, U = (_0x9b8933) => {
|
|
34631
|
+
const _0x10f7c2 = _0x15a666;
|
|
34632
|
+
switch (_0x9b8933["message"] || _0x9b8933["name"]) {
|
|
34633
|
+
case _0x10f7c2(594):
|
|
34634
|
+
case _0x10f7c2(314):
|
|
34635
|
+
return _0x10f7c2(362);
|
|
34636
|
+
case _0x10f7c2(435):
|
|
34637
|
+
case _0x10f7c2(580):
|
|
34638
|
+
return _0x10f7c2(366);
|
|
34639
|
+
case _0x10f7c2(532):
|
|
34640
|
+
case _0x10f7c2(401):
|
|
34641
|
+
return _0x10f7c2(569);
|
|
34630
34642
|
default:
|
|
34631
|
-
return
|
|
34643
|
+
return _0x10f7c2(561) + _0x9b8933;
|
|
34632
34644
|
}
|
|
34633
|
-
}, Y = () => !navigator[
|
|
34645
|
+
}, Y = () => !navigator[_0x15a666(298)] || !navigator[_0x15a666(298)][_0x15a666(528)] ? (console[_0x15a666(292)](_0x15a666(533)), false) : true;
|
|
34634
34646
|
let h = "";
|
|
34635
34647
|
const R = () => {
|
|
34636
|
-
const
|
|
34648
|
+
const _0x3574b7 = _0x15a666;
|
|
34637
34649
|
I();
|
|
34638
|
-
let
|
|
34639
|
-
h = new Audio(
|
|
34640
|
-
const
|
|
34641
|
-
console[
|
|
34642
|
-
}), h[
|
|
34643
|
-
const
|
|
34644
|
-
h[
|
|
34645
|
-
}), h[
|
|
34650
|
+
let _0x21af5c = _0x3574b7(536);
|
|
34651
|
+
h = new Audio(_0x21af5c), h[_0x3574b7(479)](_0x3574b7(254), (_0x7e794a) => {
|
|
34652
|
+
const _0x6c3645 = _0x3574b7;
|
|
34653
|
+
console[_0x6c3645(292)]("error", _0x7e794a);
|
|
34654
|
+
}), h[_0x3574b7(479)](_0x3574b7(445), () => {
|
|
34655
|
+
const _0x301c56 = _0x3574b7;
|
|
34656
|
+
h[_0x301c56(387)](), console[_0x301c56(292)](_0x301c56(482));
|
|
34657
|
+
}), h["play"]();
|
|
34646
34658
|
}, I = () => {
|
|
34647
|
-
const
|
|
34648
|
-
h && (console[
|
|
34659
|
+
const _0x3ec2db = _0x15a666;
|
|
34660
|
+
h && (console[_0x3ec2db(292)]("停止响铃"), h["pause"](), h = "");
|
|
34649
34661
|
}, Q = () => {
|
|
34650
|
-
const
|
|
34651
|
-
let
|
|
34652
|
-
const
|
|
34653
|
-
|
|
34654
|
-
|
|
34655
|
-
|
|
34656
|
-
|
|
34657
|
-
|
|
34658
|
-
|
|
34662
|
+
const _0x823672 = _0x15a666;
|
|
34663
|
+
let _0xfc5b07 = _0x823672(450);
|
|
34664
|
+
const _0x48414c = new Audio(_0xfc5b07);
|
|
34665
|
+
_0x48414c["addEventListener"]("error", (_0x124374) => {
|
|
34666
|
+
const _0x5c0fa2 = _0x823672;
|
|
34667
|
+
console[_0x5c0fa2(292)](_0x5c0fa2(254), _0x124374);
|
|
34668
|
+
}), _0x48414c["addEventListener"]("ended", () => {
|
|
34669
|
+
const _0x53339e = _0x823672;
|
|
34670
|
+
_0x48414c[_0x53339e(363)]();
|
|
34671
|
+
}), _0x48414c[_0x823672(387)]();
|
|
34659
34672
|
}, O = () => {
|
|
34660
|
-
const
|
|
34661
|
-
let
|
|
34662
|
-
const
|
|
34663
|
-
|
|
34664
|
-
const
|
|
34665
|
-
console["
|
|
34666
|
-
}),
|
|
34667
|
-
|
|
34668
|
-
}),
|
|
34669
|
-
}, W = (
|
|
34670
|
-
const
|
|
34671
|
-
navigator[
|
|
34672
|
-
const
|
|
34673
|
-
|
|
34674
|
-
})[
|
|
34675
|
-
const
|
|
34676
|
-
|
|
34673
|
+
const _0x2a5e0b = _0x15a666;
|
|
34674
|
+
let _0x8e8bde = "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3";
|
|
34675
|
+
const _0x361022 = new Audio(_0x8e8bde);
|
|
34676
|
+
_0x361022["addEventListener"](_0x2a5e0b(254), (_0x557289) => {
|
|
34677
|
+
const _0xf1877a = _0x2a5e0b;
|
|
34678
|
+
console[_0xf1877a(292)]("error", _0x557289);
|
|
34679
|
+
}), _0x361022["addEventListener"](_0x2a5e0b(445), () => {
|
|
34680
|
+
_0x361022["pause"]();
|
|
34681
|
+
}), _0x361022[_0x2a5e0b(387)]();
|
|
34682
|
+
}, W = (_0x7698b5, _0x290d10) => {
|
|
34683
|
+
const _0x3f249c = _0x15a666;
|
|
34684
|
+
navigator[_0x3f249c(298)][_0x3f249c(528)]({ "audio": {} })["then"]((_0xaa1c0f) => {
|
|
34685
|
+
const _0x5da981 = _0x3f249c;
|
|
34686
|
+
_0x7698b5 && _0x7698b5(), _0xaa1c0f[_0x5da981(518)]()[_0x5da981(369)]((_0x1568c0) => _0x1568c0["stop"]());
|
|
34687
|
+
})[_0x3f249c(585)]((_0x1793a8) => {
|
|
34688
|
+
const _0x447ed5 = U(_0x1793a8);
|
|
34689
|
+
_0x290d10 && _0x290d10({ "errMsg": _0x447ed5 });
|
|
34677
34690
|
});
|
|
34678
|
-
}, M = () => (Math[
|
|
34679
|
-
function Z(
|
|
34680
|
-
const
|
|
34681
|
-
let
|
|
34691
|
+
}, M = () => (Math[_0x15a666(334)]() * 1e7)[_0x15a666(394)](16)["substr"](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x15a666(327)]() + "-" + Math["random"]()[_0x15a666(394)]()["substr"](2, 5);
|
|
34692
|
+
function Z(_0x5dd679) {
|
|
34693
|
+
const _0x35e1f2 = _0x15a666;
|
|
34694
|
+
let _0x5aa69d;
|
|
34682
34695
|
try {
|
|
34683
|
-
|
|
34696
|
+
_0x5aa69d = JSON[_0x35e1f2(353)](atob(_0x5dd679["split"](".")[1]))[_0x35e1f2(365)];
|
|
34684
34697
|
} catch {
|
|
34685
|
-
|
|
34686
|
-
}
|
|
34687
|
-
return
|
|
34688
|
-
}
|
|
34689
|
-
const X = (
|
|
34690
|
-
const
|
|
34691
|
-
let
|
|
34692
|
-
|
|
34693
|
-
const
|
|
34694
|
-
|
|
34695
|
-
const
|
|
34696
|
-
|
|
34697
|
-
};
|
|
34698
|
-
let
|
|
34699
|
-
for (const
|
|
34700
|
-
|
|
34698
|
+
_0x5aa69d = 0;
|
|
34699
|
+
}
|
|
34700
|
+
return _0x5aa69d > Date[_0x35e1f2(347)]() / 1e3;
|
|
34701
|
+
}
|
|
34702
|
+
const X = (_0x34bc1e) => _0x34bc1e["replace"](new RegExp(/(\d{3})\d*(\d{4})/), _0x15a666(597)), $ = (_0x12bd05, _0x56cba6) => _0x56cba6 ? "//" + new URL(_0x56cba6[_0x15a666(454)](_0x15a666(565)) ? _0x56cba6 : _0x15a666(464) + _0x56cba6)["host"] : _0x12bd05 === _0x15a666(370) ? _0x15a666(563) : "//api.kiwi.tuotoo.com", E = (_0x23504a, _0x3313c7) => {
|
|
34703
|
+
const _0x538152 = _0x15a666;
|
|
34704
|
+
let _0x11eae9 = _0x23504a;
|
|
34705
|
+
_0x11eae9[_0x538152(252)] = JSON[_0x538152(278)]({ "ts": ee(), "type": "pc", "extra": _0x23504a[_0x538152(252)] });
|
|
34706
|
+
const _0x8c1ae0 = new XMLHttpRequest();
|
|
34707
|
+
_0x8c1ae0[_0x538152(321)](_0x538152(320), "https:" + $(_0x3313c7["env"], _0x3313c7[_0x538152(512)]) + _0x538152(593), true), _0x8c1ae0["setRequestHeader"]("Content-Type", _0x538152(497)), _0x8c1ae0[_0x538152(442)] = function() {
|
|
34708
|
+
const _0x20b217 = _0x538152;
|
|
34709
|
+
_0x8c1ae0["readyState"] === 4 && _0x8c1ae0[_0x20b217(273)];
|
|
34710
|
+
};
|
|
34711
|
+
let _0xe4adaf = "";
|
|
34712
|
+
for (const _0x33edc8 in _0x11eae9) _0xe4adaf += _0x33edc8 + "=" + encodeURIComponent(_0x11eae9[_0x33edc8]) + "&";
|
|
34713
|
+
_0x8c1ae0[_0x538152(486)](_0xe4adaf[_0x538152(331)](0, -1));
|
|
34701
34714
|
}, ee = () => {
|
|
34702
|
-
const
|
|
34703
|
-
return
|
|
34704
|
-
};
|
|
34705
|
-
function g(
|
|
34706
|
-
const
|
|
34707
|
-
this[
|
|
34708
|
-
}
|
|
34709
|
-
g[
|
|
34710
|
-
const
|
|
34711
|
-
var
|
|
34712
|
-
this[
|
|
34713
|
-
}, g[
|
|
34714
|
-
const
|
|
34715
|
-
var
|
|
34716
|
-
return
|
|
34717
|
-
}, g[
|
|
34718
|
-
const
|
|
34719
|
-
var
|
|
34720
|
-
return
|
|
34721
|
-
}, g[
|
|
34722
|
-
const
|
|
34723
|
-
this[
|
|
34724
|
-
}, g[
|
|
34725
|
-
const
|
|
34726
|
-
return
|
|
34727
|
-
}, g[
|
|
34728
|
-
const
|
|
34729
|
-
if (this[
|
|
34730
|
-
|
|
34731
|
-
var
|
|
34732
|
-
|
|
34733
|
-
}
|
|
34734
|
-
}, g["prototype"][
|
|
34735
|
-
const
|
|
34736
|
-
var
|
|
34737
|
-
for (
|
|
34738
|
-
return
|
|
34739
|
-
}, g[
|
|
34740
|
-
const
|
|
34741
|
-
this[
|
|
34742
|
-
}, g[
|
|
34743
|
-
const
|
|
34744
|
-
this[
|
|
34745
|
-
}, g[
|
|
34746
|
-
const
|
|
34747
|
-
if (this[
|
|
34748
|
-
var
|
|
34749
|
-
for (
|
|
34750
|
-
this[
|
|
34715
|
+
const _0x749fd5 = _0x15a666, _0x810248 = /* @__PURE__ */ new Date(), _0x4ca5db = _0x810248[_0x749fd5(335)](), _0x245609 = ("0" + (_0x810248[_0x749fd5(595)]() + 1))["slice"](-2), _0x58edbd = ("0" + _0x810248[_0x749fd5(284)]())[_0x749fd5(331)](-2), _0x3f95e7 = ("0" + _0x810248[_0x749fd5(414)]())[_0x749fd5(331)](-2), _0x19c8c8 = ("0" + _0x810248[_0x749fd5(265)]())[_0x749fd5(331)](-2), _0x3bec08 = ("0" + _0x810248[_0x749fd5(311)]())[_0x749fd5(331)](-2), _0x3f98c1 = ("00" + _0x810248["getMilliseconds"]())[_0x749fd5(331)](-3);
|
|
34716
|
+
return _0x4ca5db + "/" + _0x245609 + "/" + _0x58edbd + " " + _0x3f95e7 + ":" + _0x19c8c8 + ":" + _0x3bec08 + "." + _0x3f98c1;
|
|
34717
|
+
};
|
|
34718
|
+
function g(_0x3c82ce) {
|
|
34719
|
+
const _0x3feecf = _0x15a666;
|
|
34720
|
+
this[_0x3feecf(294)](_0x3c82ce);
|
|
34721
|
+
}
|
|
34722
|
+
g[_0x15a666(440)]["init"] = function(_0x293b07) {
|
|
34723
|
+
const _0x4ff906 = _0x15a666;
|
|
34724
|
+
var _0x332724 = { "encoding": _0x4ff906(492), "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
|
|
34725
|
+
this[_0x4ff906(465)] = Object[_0x4ff906(285)]({}, _0x332724, _0x293b07), this["samples"] = new Float32Array(), this[_0x4ff906(515)] = this[_0x4ff906(515)][_0x4ff906(447)](this), this[_0x4ff906(446)] = setInterval(this["flush"], this[_0x4ff906(465)][_0x4ff906(395)]), this[_0x4ff906(572)] = this[_0x4ff906(557)](), this[_0x4ff906(358)] = this[_0x4ff906(582)](), this["createContext"]();
|
|
34726
|
+
}, g[_0x15a666(440)][_0x15a666(557)] = function() {
|
|
34727
|
+
const _0x32cf9b = _0x15a666;
|
|
34728
|
+
var _0x46f8d2 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
|
|
34729
|
+
return _0x46f8d2[this[_0x32cf9b(465)][_0x32cf9b(441)]] ? _0x46f8d2[this[_0x32cf9b(465)][_0x32cf9b(441)]] : _0x46f8d2[_0x32cf9b(492)];
|
|
34730
|
+
}, g[_0x15a666(440)]["getTypedArray"] = function() {
|
|
34731
|
+
const _0x28f0e8 = _0x15a666;
|
|
34732
|
+
var _0x170322 = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
|
|
34733
|
+
return _0x170322[this["option"]["encoding"]] ? _0x170322[this[_0x28f0e8(465)][_0x28f0e8(441)]] : _0x170322[_0x28f0e8(492)];
|
|
34734
|
+
}, g[_0x15a666(440)][_0x15a666(356)] = function() {
|
|
34735
|
+
const _0x230e16 = _0x15a666;
|
|
34736
|
+
this[_0x230e16(425)] = new (window["AudioContext"] || window["webkitAudioContext"])(), this[_0x230e16(583)] = this["audioCtx"][_0x230e16(542)](), this["gainNode"][_0x230e16(293)][_0x230e16(436)] = 1, this["gainNode"]["connect"](this[_0x230e16(425)][_0x230e16(409)]), this["startTime"] = this[_0x230e16(425)][_0x230e16(274)];
|
|
34737
|
+
}, g[_0x15a666(440)][_0x15a666(312)] = function(_0x58d003) {
|
|
34738
|
+
const _0x2f9488 = _0x15a666;
|
|
34739
|
+
return _0x58d003["byteLength"] && _0x58d003[_0x2f9488(491)] && _0x58d003[_0x2f9488(491)][_0x2f9488(326)] == ArrayBuffer;
|
|
34740
|
+
}, g[_0x15a666(440)][_0x15a666(379)] = function(_0x25bc6a) {
|
|
34741
|
+
const _0x58c978 = _0x15a666;
|
|
34742
|
+
if (this[_0x58c978(312)](_0x25bc6a)) {
|
|
34743
|
+
_0x25bc6a = this[_0x58c978(555)](_0x25bc6a);
|
|
34744
|
+
var _0x32e495 = new Float32Array(this["samples"][_0x58c978(487)] + _0x25bc6a[_0x58c978(487)]);
|
|
34745
|
+
_0x32e495[_0x58c978(277)](this[_0x58c978(382)], 0), _0x32e495[_0x58c978(277)](_0x25bc6a, this["samples"]["length"]), this[_0x58c978(382)] = _0x32e495;
|
|
34746
|
+
}
|
|
34747
|
+
}, g["prototype"][_0x15a666(555)] = function(_0x5542d6) {
|
|
34748
|
+
const _0x2b2fb3 = _0x15a666;
|
|
34749
|
+
var _0x5542d6 = new this[_0x2b2fb3(358)](_0x5542d6[_0x2b2fb3(491)]), _0x2f1344 = new Float32Array(_0x5542d6[_0x2b2fb3(487)]), _0x56fac7;
|
|
34750
|
+
for (_0x56fac7 = 0; _0x56fac7 < _0x5542d6[_0x2b2fb3(487)]; _0x56fac7++) _0x2f1344[_0x56fac7] = _0x5542d6[_0x56fac7] / this["maxValue"];
|
|
34751
|
+
return _0x2f1344;
|
|
34752
|
+
}, g[_0x15a666(440)][_0x15a666(439)] = function(_0x193d11) {
|
|
34753
|
+
const _0x1c1ba7 = _0x15a666;
|
|
34754
|
+
this[_0x1c1ba7(583)]["gain"][_0x1c1ba7(436)] = _0x193d11;
|
|
34755
|
+
}, g[_0x15a666(440)]["destroy"] = function() {
|
|
34756
|
+
const _0x35fb0c = _0x15a666;
|
|
34757
|
+
this[_0x35fb0c(446)] && clearInterval(this[_0x35fb0c(446)]), this[_0x35fb0c(382)] = null, this["audioCtx"] && this["audioCtx"][_0x35fb0c(432)](), this[_0x35fb0c(425)] = null;
|
|
34758
|
+
}, g[_0x15a666(440)][_0x15a666(515)] = function() {
|
|
34759
|
+
const _0x5b54b6 = _0x15a666;
|
|
34760
|
+
if (this["samples"][_0x5b54b6(487)]) {
|
|
34761
|
+
var _0x4737b3 = this["audioCtx"]["createBufferSource"](), _0x45284c = this[_0x5b54b6(382)][_0x5b54b6(487)] / this[_0x5b54b6(465)]["channels"], _0x2e3f66 = this[_0x5b54b6(425)][_0x5b54b6(458)](this["option"][_0x5b54b6(501)], _0x45284c, this[_0x5b54b6(465)][_0x5b54b6(529)]), _0x84118d, _0x1439ea, _0x511c0a, _0x41c446, _0x573158;
|
|
34762
|
+
for (_0x1439ea = 0; _0x1439ea < this[_0x5b54b6(465)][_0x5b54b6(501)]; _0x1439ea++) for (_0x84118d = _0x2e3f66[_0x5b54b6(302)](_0x1439ea), _0x511c0a = _0x1439ea, _0x573158 = 50, _0x41c446 = 0; _0x41c446 < _0x45284c; _0x41c446++) _0x84118d[_0x41c446] = this[_0x5b54b6(382)][_0x511c0a], _0x41c446 < 50 && (_0x84118d[_0x41c446] = _0x84118d[_0x41c446] * _0x41c446 / 50), _0x41c446 >= _0x45284c - 51 && (_0x84118d[_0x41c446] = _0x84118d[_0x41c446] * _0x573158-- / 50), _0x511c0a += this["option"][_0x5b54b6(501)];
|
|
34763
|
+
this[_0x5b54b6(310)] < this[_0x5b54b6(425)][_0x5b54b6(274)] && (this[_0x5b54b6(310)] = this[_0x5b54b6(425)]["currentTime"]), _0x4737b3["buffer"] = _0x2e3f66, _0x4737b3[_0x5b54b6(309)](this[_0x5b54b6(583)]), _0x4737b3["start"](this[_0x5b54b6(310)]), this[_0x5b54b6(310)] += _0x2e3f66[_0x5b54b6(470)], this[_0x5b54b6(382)] = new Float32Array();
|
|
34751
34764
|
}
|
|
34752
34765
|
};
|
|
34753
34766
|
let n = { "companyID": "", "employeeID": "", "token": "", "callOptions": {}, "onMessage": () => {
|
|
34754
34767
|
} };
|
|
34755
|
-
function j(
|
|
34756
|
-
const
|
|
34757
|
-
let
|
|
34768
|
+
function j(_0x5804cd) {
|
|
34769
|
+
const _0x845e68 = _0x15a666;
|
|
34770
|
+
let _0x59b86b = "";
|
|
34758
34771
|
try {
|
|
34759
|
-
|
|
34760
|
-
} catch (
|
|
34761
|
-
console[
|
|
34762
|
-
}
|
|
34763
|
-
return
|
|
34764
|
-
}
|
|
34765
|
-
|
|
34766
|
-
const
|
|
34767
|
-
return
|
|
34768
|
-
_0x2deb65 = _0x2deb65 - 354;
|
|
34769
|
-
let _0x4d7108 = _0x5e5f6a[_0x2deb65];
|
|
34770
|
-
return _0x4d7108;
|
|
34771
|
-
}, _0x2deb(_0x405dda, _0x223a01);
|
|
34772
|
-
}
|
|
34773
|
-
function _0x5e5f() {
|
|
34774
|
-
const _0x5c2cbc = ["MANDATORY_UNSATISFIED_ERROR", "handleData", "机器人挂机", "defineProperty", "employeeID", "onreadystatechange", "5itNcMq", "SeatFail", "Hangup", "12225771eZLFcT", "起呼中", "pc参数错误", "客户拒接", "interval", "振铃中", "通话连接中", "Answer", "voiceInstance", "destroy", "ended", "CallConnecting", "SeatConnected", "botStatus", "SEAT_SAVE_KEY_VALUE", "DictionaryName", "您已触发质检规则", "duration", "呼叫失败", "Time", "?key=", "createContext", "/websocket?access_token=", "value", "Str", "aiToSeatVoiceUrl", "qualityDictionaryIDs", "application/x-www-form-urlencoded", "MandatoryUnsatisfiedError", "isAutoAnswer", "channels", "actionSeatReconnectWSAfterClosed", "readyState", "ping", "startTime", "收到CallOnceRinging", "callOptions", "updateConfig", "flushingTime", "WSPing", "manualControlSeat", "offline", "close", "destination", "compress", "SEAT_SEND_RAW_MESSAGE", "坐席在其他地方上线", "isTypedArray", "NotSupportedError", "version", "客户接通", "CustomerSayText", "Data", "createScriptProcessor", "Error", "planID", "getSeconds", "通话异常", "客户挂断", "SeatRefuse", "call", "收到WSConnected,发送起呼请求", "489704OyowyR", "name", "reason", "buffer", "maskPhoneNumber", "aiToSeat", "play", "context", "enumerateDevices", "ws连接异常", "assign", "通话异常:InternetErrorHangUp", "PERMISSION_DENIED", "wss:", "坐席正忙", "createGain", "CustomerID", "rtmp://", "target", "PlanID", "catch", "onceCall", "sampleRate", "prototype", "Code", "connectInfo", "createElement", "客户已挂机", "constructor", "init", "手动上线", "kind", "getMaxValue", "src", "SEAT_SEND_MESSAGE", "actionSeatSendVoice", "CallOnceFailed", "https:", "16bitInt", "push", "toString", "POST", "通话中", "qualityNoticeToCaller", "currentTime", "code", "用户拒绝提供信息。", "symbol", "autoClosed", "SeatHangUp", "7305328LVLESL", "坐席说话", "createBufferSource", "3391041ThFELg", "WSConnected", "QualityDictionaryIDs", "addEventListener", "companyID", "actionHandleCallBack", "errMsg", "seatData", "actionSeatHandleIncoming", "循环响铃", "坐席拒接", "actionSeatVoiceWS", "customerInfo", "CallConnected", "send", "无法打开麦克风。异常信息:", "includes", "getFullYear", "/v1/operationLog", "gain", "SeatConnectClientFailed", "hangup", "results", "phoneRingAudio", "停止响铃", "instance", "min", "SeatBusy", "已有websocket连接,重新连接。", "inputBuffer", "srcObject", "reconnectCount", "呼出成功", "deviceId", "actionSeatStartWS", "random", "actionSeatStartTalk", "getterSeatCurrentDeviceInfoInputID", "人机切换自动接听", "getUserMedia", "seatStatus", "TypeAIToSeat", "MatchKeyword", "terminate", "operator", "Cancel", "mobile", "SeatCancel", "RuleName", "slice", "hangUp_", "stop", "audioinput", "CustomerCancel", "recordsData", "filter", "getDate", "onclose", "坐席下线", "684770potbic", "getterSeatIsConnected", "1806ofAZpd", "status", "RobotHangUp", "encoding", "audioCtx", "handleError", "Text", "getterSeatCallOnceStage", "typedArray", "find", "未处理情况", "SEAT_SET_VoiceWS", "RobotSay", "被叫接通,坐席拒接", "srcStream", "taskID", "TaskID", "CallBack", "lineListID", "getMilliseconds", "clear", "onopen", "mediaDevices", "connected", "env", "SeatConnectClientFailedResp", "CallNext", "callOnceStage", "RobotPID", "getTracks", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "浏览器不支持硬件设备。", "object", "Online", "SeatConflict", "connect", "getMonth", "SeatSayText", "actions", "then", "currentDeviceInfoInput", "Failed:", "gainNode", "log", "PermissionDeniedError", "robot", "Type", "string", "closed", "机器人说话", "SEAT_SET_RECORDSDATA", "getterSeatCurrentDeviceInfoOutputID", "坐席主动挂断", "Reject", "max", "initial", "size", "InternetErrorHangUp", "exp", "aiToSeatRobotHangup", "outputSampleRate", "open", "volume", "maxValue", "error", "parse", "SeatFailToReady", "/v1/company/", "CustomerConnected", "readAsArrayBuffer", "getHours", "onmessage", "坐席接听", "createBuffer", "坐席取消外呼", "OutPlanID", "SEAT_RESET_AUDIO", "onload", "length", "getFormatedValue", "21066aVQASr", "$1****$2", "recorder", "byteLength", "inputSampleBits", "getBlob", "answer", "samples", "detail", "QualityNotice", "坐席忙线", "wss://", "Content-Type", "data", "online", "Msg", "SEAT_SET_WS", "钱包/通话余量不足", "webkitAudioContext", "getChannelData", "stringify", "SeatHangUpResp", "VoiceFrom", "qualityMonitorIDs", "ws关闭", "getTypedArray", "onerror", "actionSeatStartPlayer", "map", "Mobile", "instanceClose", "flush", "SeatSay", "feed", "2587520oZQPsg", "url", "onaudioprocess", "SEAT_UPDATE_WEBSOCKET_STATUS", "currentDeviceInfoOutput", "ws onmessage报错", "响铃中", "arraybuffer", "ringing", "//api.kiwi.tuotoo.com", "CallUnexpected", "CallOnceSuccess", "SeatConnectedResp", "set", "SeatCancelResp", "TypeCallOnce", "mediaDevice", "message", "encodePCM", "onMessage", "SendPong", "CallOnce", "option", "forEach", "SEAT_PLAY_AUDIO", "pause", "split", "actionSeatInitVoiceWSInstance", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "CustomerRefuse", "state.voiceInstance", "CustomerHangUp", "起呼参数", "WSPong", "disconnect", "now", "audio", "bind", "获取设备列表失败,请检查浏览器权限设置", "start", "坐席已挂机", "audiooutput", "token", "callingStage", "Messages", "通话异常:SeatConnectClientFailedResp", "NOT_SUPPORTED_ERROR", "getterSeatIsRinging", "LineListID", "indexOf", "substr"];
|
|
34775
|
-
_0x5e5f = function() {
|
|
34776
|
-
return _0x5c2cbc;
|
|
34777
|
-
};
|
|
34778
|
-
return _0x5e5f();
|
|
34779
|
-
}
|
|
34780
|
-
const t = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x3329c0(657), "botStatus": _0x3329c0(657), "audio": document["createElement"](_0x3329c0(402)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": true, "reconnectCount": 3, "callOnceStage": "" }, m = { "getterSeatAllList": () => t[_0x3329c0(548)][_0x3329c0(563)] || [], "getterSeatAudioInput"() {
|
|
34781
|
-
const _0x2661b2 = _0x3329c0;
|
|
34782
|
-
return t[_0x2661b2(382)][_0x2661b2(596)]((_0x3e787b) => _0x3e787b[_0x2661b2(519)] === _0x2661b2(593));
|
|
34772
|
+
_0x59b86b = JSON[_0x845e68(278)](_0x5804cd);
|
|
34773
|
+
} catch (_0x567281) {
|
|
34774
|
+
console[_0x845e68(292)](_0x845e68(483), _0x567281);
|
|
34775
|
+
}
|
|
34776
|
+
return _0x59b86b;
|
|
34777
|
+
}
|
|
34778
|
+
const t = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x15a666(393), "botStatus": _0x15a666(393), "audio": document[_0x15a666(537)]("audio"), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": true, "reconnectCount": 3, "callOnceStage": "" }, m = { "getterSeatAllList": () => t[_0x15a666(323)]["results"] || [], "getterSeatAudioInput"() {
|
|
34779
|
+
const _0x5cc8e5 = _0x15a666;
|
|
34780
|
+
return t[_0x5cc8e5(287)]["filter"]((_0x5a3e6c) => _0x5a3e6c[_0x5cc8e5(516)] === _0x5cc8e5(588));
|
|
34783
34781
|
}, "getterSeatAudioOutput"() {
|
|
34784
|
-
const
|
|
34785
|
-
return t[
|
|
34782
|
+
const _0x1f2932 = _0x15a666;
|
|
34783
|
+
return t["mediaDevice"]["filter"]((_0x4421db) => _0x4421db["kind"] === _0x1f2932(556));
|
|
34786
34784
|
}, "getterSeatCurrentDeviceInfoInputID"() {
|
|
34787
|
-
const
|
|
34788
|
-
return t[
|
|
34785
|
+
const _0x18a11c = _0x15a666;
|
|
34786
|
+
return t[_0x18a11c(411)] ? t[_0x18a11c(411)]["deviceId"] : "";
|
|
34789
34787
|
}, "getterSeatCurrentDeviceInfoOutputID"() {
|
|
34790
|
-
const
|
|
34791
|
-
return t[
|
|
34792
|
-
}, "getterSeatCurrentPhoneRingAudio"(
|
|
34793
|
-
|
|
34788
|
+
const _0x409aea = _0x15a666;
|
|
34789
|
+
return t[_0x409aea(558)] ? t[_0x409aea(558)][_0x409aea(270)] : "";
|
|
34790
|
+
}, "getterSeatCurrentPhoneRingAudio"(_0x4224d7) {
|
|
34791
|
+
const _0x34a5a5 = _0x15a666;
|
|
34792
|
+
return _0x4224d7[_0x34a5a5(522)];
|
|
34794
34793
|
}, "getterSeatCustomerInfo"() {
|
|
34795
|
-
const
|
|
34796
|
-
return t[
|
|
34794
|
+
const _0x5ba32b = _0x15a666;
|
|
34795
|
+
return t[_0x5ba32b(350)] ? t[_0x5ba32b(350)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
|
|
34797
34796
|
}, "getterSeatConnectInfo"() {
|
|
34798
|
-
const
|
|
34799
|
-
return t[
|
|
34797
|
+
const _0x300baf = _0x15a666;
|
|
34798
|
+
return t["connectInfo"] ? t[_0x300baf(570)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
|
|
34800
34799
|
}, "getterSeatIsRinging"() {
|
|
34801
|
-
const
|
|
34802
|
-
return t[
|
|
34800
|
+
const _0x4efe3d = _0x15a666;
|
|
34801
|
+
return t[_0x4efe3d(266)] === _0x4efe3d(290);
|
|
34803
34802
|
}, "getterSeatIsConnected"() {
|
|
34804
|
-
const
|
|
34805
|
-
return t[
|
|
34803
|
+
const _0x103f0c = _0x15a666;
|
|
34804
|
+
return t[_0x103f0c(266)] === _0x103f0c(452);
|
|
34806
34805
|
}, "getterSeatIsHangup"() {
|
|
34807
|
-
const
|
|
34808
|
-
return t[
|
|
34806
|
+
const _0x5da66f = _0x15a666;
|
|
34807
|
+
return t["callingStage"] === _0x5da66f(462);
|
|
34809
34808
|
}, "getterSeatStatus"() {
|
|
34810
|
-
const
|
|
34811
|
-
return t[
|
|
34809
|
+
const _0x5ed307 = _0x15a666;
|
|
34810
|
+
return t[_0x5ed307(468)];
|
|
34812
34811
|
}, "getterSeatCanCallout"() {
|
|
34813
|
-
const
|
|
34814
|
-
return t[
|
|
34812
|
+
const _0x29723d = _0x15a666;
|
|
34813
|
+
return t[_0x29723d(273)] === "connected";
|
|
34815
34814
|
}, "getterSeatBotStatus"() {
|
|
34816
|
-
|
|
34817
|
-
return t[_0x52df3a(439)];
|
|
34815
|
+
return t["botStatus"];
|
|
34818
34816
|
}, "getterSeatRecordsData"() {
|
|
34819
|
-
|
|
34817
|
+
const _0x19b0e2 = _0x15a666;
|
|
34818
|
+
return t[_0x19b0e2(308)];
|
|
34820
34819
|
}, "getterSeatOnceCall"() {
|
|
34821
|
-
const
|
|
34822
|
-
return t[
|
|
34820
|
+
const _0x100a36 = _0x15a666;
|
|
34821
|
+
return t[_0x100a36(286)];
|
|
34823
34822
|
}, "getterAIToSeat"() {
|
|
34824
|
-
|
|
34823
|
+
const _0x669507 = _0x15a666;
|
|
34824
|
+
return t[_0x669507(456)];
|
|
34825
34825
|
}, "getterSeatCallOnceStage"() {
|
|
34826
|
-
const
|
|
34827
|
-
return t[
|
|
34826
|
+
const _0x279ae0 = _0x15a666;
|
|
34827
|
+
return t[_0x279ae0(386)];
|
|
34828
34828
|
}, "getterSeatCallingStage"() {
|
|
34829
|
-
|
|
34829
|
+
const _0x547383 = _0x15a666;
|
|
34830
|
+
return t[_0x547383(266)];
|
|
34830
34831
|
} };
|
|
34831
34832
|
let P = false, k = "";
|
|
34832
|
-
const i = { "actionSeatInitVoiceWSInstance": (
|
|
34833
|
-
const
|
|
34834
|
-
t[
|
|
34835
|
-
const
|
|
34836
|
-
|
|
34837
|
-
const
|
|
34838
|
-
l[
|
|
34839
|
-
},
|
|
34840
|
-
const
|
|
34841
|
-
if (typeof
|
|
34842
|
-
t[
|
|
34833
|
+
const i = { "actionSeatInitVoiceWSInstance": (_0x4840a1) => {
|
|
34834
|
+
const _0x57d747 = _0x15a666;
|
|
34835
|
+
t[_0x57d747(496)] && (console[_0x57d747(292)](_0x57d747(551), t["voiceInstance"]), t[_0x57d747(496)]["close"](1e3));
|
|
34836
|
+
const _0x5720ad = new WebSocket(_0x4840a1[_0x57d747(336)]);
|
|
34837
|
+
_0x5720ad[_0x57d747(546)] = _0x57d747(397), _0x5720ad[_0x57d747(418)] = () => {
|
|
34838
|
+
const _0x93c1dd = _0x57d747;
|
|
34839
|
+
l[_0x93c1dd(255)]({ "key": _0x93c1dd(553), "status": _0x93c1dd(452) });
|
|
34840
|
+
}, _0x5720ad[_0x57d747(574)] = (_0xf1c5ec) => {
|
|
34841
|
+
const _0x4faead = _0x57d747;
|
|
34842
|
+
if (typeof _0xf1c5ec[_0x4faead(547)] == _0x4faead(548)) {
|
|
34843
|
+
t[_0x4faead(286)] && I(), l[_0x4faead(449)]({ "type": _0x4faead(504), "value": _0xf1c5ec[_0x4faead(547)], "outputID": m[_0x4faead(420)]() });
|
|
34843
34844
|
return;
|
|
34844
34845
|
}
|
|
34845
|
-
let
|
|
34846
|
-
if (
|
|
34847
|
-
i[
|
|
34846
|
+
let _0x247f37 = JSON["parse"](_0xf1c5ec[_0x4faead(547)]);
|
|
34847
|
+
if (_0x247f37[_0x4faead(361)] !== 0) {
|
|
34848
|
+
i["actionHandleCallBack"](_0x4faead(352), _0x247f37[_0x4faead(507)]);
|
|
34848
34849
|
return;
|
|
34849
34850
|
}
|
|
34850
|
-
switch (
|
|
34851
|
-
case
|
|
34852
|
-
l[
|
|
34851
|
+
switch (_0x247f37["Type"]) {
|
|
34852
|
+
case _0x4faead(256):
|
|
34853
|
+
l["SEAT_UPDATE_WEBSOCKET_STATUS"]({ "key": _0x4faead(553), "status": "connected" }), i[_0x4faead(307)]({ "type": _0x4faead(524), "wsType": _0x4faead(317) });
|
|
34853
34854
|
break;
|
|
34854
34855
|
}
|
|
34855
|
-
},
|
|
34856
|
-
const
|
|
34857
|
-
l[
|
|
34858
|
-
},
|
|
34859
|
-
const
|
|
34860
|
-
console["log"](
|
|
34861
|
-
}, l[
|
|
34862
|
-
}, "actionSeatInitWSInstance": (
|
|
34863
|
-
const
|
|
34864
|
-
if (t[
|
|
34865
|
-
console[
|
|
34856
|
+
}, _0x5720ad["onclose"] = () => {
|
|
34857
|
+
const _0x1d2f05 = _0x57d747;
|
|
34858
|
+
l["SEAT_SET_VoiceWS"](""), l[_0x1d2f05(255)]({ "key": _0x1d2f05(553), "status": _0x1d2f05(263) });
|
|
34859
|
+
}, _0x5720ad[_0x57d747(281)] = () => {
|
|
34860
|
+
const _0x5690c9 = _0x57d747;
|
|
34861
|
+
console["log"](_0x5690c9(404)), [_0x5690c9(290), _0x5690c9(452)]["indexOf"](t[_0x5690c9(266)]) > -1 && l[_0x5690c9(272)]({ "Type": _0x5690c9(262), "Data": {}, "Code": 0, "Msg": "" + (t[_0x5690c9(456)] ? _0x5690c9(429) : t["onceCall"] ? _0x5690c9(297) : ""), "TaskID": "" });
|
|
34862
|
+
}, l[_0x57d747(296)](_0x5720ad);
|
|
34863
|
+
}, "actionSeatInitWSInstance": (_0x2303e5) => {
|
|
34864
|
+
const _0x2bac9d = _0x15a666;
|
|
34865
|
+
if (t[_0x2bac9d(543)]) {
|
|
34866
|
+
console["log"](_0x2bac9d(271)), i[_0x2bac9d(508)](), P = true;
|
|
34866
34867
|
return;
|
|
34867
34868
|
}
|
|
34868
|
-
G(
|
|
34869
|
+
G(_0x2303e5);
|
|
34869
34870
|
}, async "actionSeatTestEquipment"() {
|
|
34870
|
-
const
|
|
34871
|
-
if (l[
|
|
34872
|
-
i[
|
|
34871
|
+
const _0x4650d5 = _0x15a666;
|
|
34872
|
+
if (l[_0x4650d5(566)](), !Y()) {
|
|
34873
|
+
i[_0x4650d5(399)](_0x4650d5(352), "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。");
|
|
34873
34874
|
return;
|
|
34874
34875
|
}
|
|
34875
34876
|
try {
|
|
34876
|
-
const
|
|
34877
|
-
return l[
|
|
34878
|
-
} catch (
|
|
34879
|
-
U(
|
|
34877
|
+
const _0x145161 = await navigator["mediaDevices"][_0x4650d5(528)]({ "audio": { "advanced": [{ "deviceId": m["getterSeatCurrentDeviceInfoInputID"]() }] } });
|
|
34878
|
+
return l[_0x4650d5(449)]({ "type": _0x4650d5(564), "value": _0x145161, "outputID": m[_0x4650d5(420)]() }), navigator[_0x4650d5(298)][_0x4650d5(500)]();
|
|
34879
|
+
} catch (_0x89d0ff) {
|
|
34880
|
+
U(_0x89d0ff);
|
|
34880
34881
|
}
|
|
34881
34882
|
}, async "actionSeatStartPlayer"() {
|
|
34882
|
-
const
|
|
34883
|
+
const _0x3cbabc = _0x15a666;
|
|
34883
34884
|
try {
|
|
34884
|
-
k = new g({ "encoding":
|
|
34885
|
-
} catch (
|
|
34886
|
-
console[
|
|
34885
|
+
k = new g({ "encoding": _0x3cbabc(492), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
|
|
34886
|
+
} catch (_0x125f1d) {
|
|
34887
|
+
console[_0x3cbabc(292)](_0x125f1d);
|
|
34887
34888
|
}
|
|
34888
34889
|
}, async "actionSeatStartTalk"() {
|
|
34889
|
-
const
|
|
34890
|
+
const _0x596953 = _0x15a666;
|
|
34890
34891
|
if (!Y()) {
|
|
34891
|
-
i[
|
|
34892
|
+
i[_0x596953(399)]("Error", _0x596953(533));
|
|
34892
34893
|
return;
|
|
34893
34894
|
}
|
|
34894
34895
|
try {
|
|
34895
|
-
t[
|
|
34896
|
-
const
|
|
34897
|
-
t[
|
|
34898
|
-
|
|
34899
|
-
|
|
34900
|
-
|
|
34901
|
-
|
|
34902
|
-
U(_0x4b0c80);
|
|
34896
|
+
t[_0x596953(303)] && t[_0x596953(303)]["clear"]();
|
|
34897
|
+
const _0x324c08 = await navigator["mediaDevices"][_0x596953(528)]({ "audio": { "advanced": [{ "deviceId": m[_0x596953(437)]() }] } });
|
|
34898
|
+
t[_0x596953(303)] = new z(_0x324c08, (_0x2fcb7e) => {
|
|
34899
|
+
i["actionSeatSendVoice"](_0x2fcb7e);
|
|
34900
|
+
}), t[_0x596953(303)][_0x596953(499)]();
|
|
34901
|
+
} catch (_0x1934dd) {
|
|
34902
|
+
U(_0x1934dd);
|
|
34903
34903
|
}
|
|
34904
34904
|
}, "actionSeatStartWS"() {
|
|
34905
|
-
const
|
|
34906
|
-
i[
|
|
34907
|
-
}, "actionSeatVoiceWS"(
|
|
34908
|
-
const
|
|
34909
|
-
let
|
|
34905
|
+
const _0x441ab8 = _0x15a666;
|
|
34906
|
+
i[_0x441ab8(525)]({ "url": _0x441ab8(280) + $(n[_0x441ab8(586)], n["deployBaseURL"]) + _0x441ab8(315) + n[_0x441ab8(345)] + "/seat/call/" + n[_0x441ab8(578)] + _0x441ab8(416) + n[_0x441ab8(480)] + _0x441ab8(385) });
|
|
34907
|
+
}, "actionSeatVoiceWS"(_0x4e81eb) {
|
|
34908
|
+
const _0x3c9f1f = _0x15a666;
|
|
34909
|
+
let _0xda60b3 = "";
|
|
34910
34910
|
try {
|
|
34911
|
-
|
|
34911
|
+
_0xda60b3 = (_0x4e81eb && _0x4e81eb[_0x3c9f1f(507)] ? JSON[_0x3c9f1f(353)](_0x4e81eb[_0x3c9f1f(507)]) : [])[_0x3c9f1f(328)]((_0x4d3a53) => !_0x4d3a53["includes"](_0x3c9f1f(463)));
|
|
34912
34912
|
} catch {
|
|
34913
|
-
|
|
34913
|
+
_0xda60b3 = _0x4e81eb && _0x4e81eb[_0x3c9f1f(507)];
|
|
34914
34914
|
}
|
|
34915
|
-
i[
|
|
34916
|
-
}, "actionSeatSendVoice"(
|
|
34917
|
-
const
|
|
34918
|
-
l[
|
|
34915
|
+
i[_0x3c9f1f(405)]({ "url": "wss://" + _0xda60b3 + _0x3c9f1f(448) + (_0x4e81eb && _0x4e81eb[_0x3c9f1f(410)][_0x3c9f1f(455)]) });
|
|
34916
|
+
}, "actionSeatSendVoice"(_0x51d99c) {
|
|
34917
|
+
const _0x139270 = _0x15a666;
|
|
34918
|
+
l[_0x139270(573)](_0x51d99c);
|
|
34919
34919
|
}, async "actionGetMediaDevices"() {
|
|
34920
|
-
const
|
|
34920
|
+
const _0x415ead = _0x15a666;
|
|
34921
34921
|
try {
|
|
34922
|
-
const
|
|
34923
|
-
l[
|
|
34922
|
+
const _0xc741f5 = await navigator[_0x415ead(298)][_0x415ead(500)]();
|
|
34923
|
+
l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x415ead(287), "value": _0xc741f5 }), console[_0x415ead(292)](_0x415ead(469), _0xc741f5);
|
|
34924
34924
|
} catch {
|
|
34925
|
-
i[
|
|
34926
|
-
}
|
|
34927
|
-
}, "actionSeatHandleIncoming"(
|
|
34928
|
-
const
|
|
34929
|
-
var
|
|
34930
|
-
const { type:
|
|
34931
|
-
switch (
|
|
34932
|
-
case
|
|
34933
|
-
l[
|
|
34925
|
+
i["actionHandleCallBack"](_0x415ead(352), "获取设备列表失败,请检查浏览器权限设置");
|
|
34926
|
+
}
|
|
34927
|
+
}, "actionSeatHandleIncoming"(_0x51c92c) {
|
|
34928
|
+
const _0x9d6d36 = _0x15a666;
|
|
34929
|
+
var _0xd52fc1, _0x4fdff4, _0x9b6f9c, _0x2970e8, _0x3fded9, _0x1785a8;
|
|
34930
|
+
const { type: _0x44d31e, data: _0x43800f, wsType: _0x4b3ad7 } = _0x51c92c;
|
|
34931
|
+
switch (_0x44d31e) {
|
|
34932
|
+
case _0x9d6d36(398):
|
|
34933
|
+
l[_0x9d6d36(272)]({ "Type": _0x9d6d36(264), "Data": {}, "Code": 0, "Msg": "" + (t["aiToSeat"] ? _0x9d6d36(429) : t["onceCall"] ? "TypeCallOnce" : ""), "TaskID": "" }), E({ "operatorID": n["employeeID"], "key": n[_0x9d6d36(421)][_0x9d6d36(481)] || n[_0x9d6d36(421)][_0x9d6d36(455)] || ((_0xd52fc1 = t[_0x9d6d36(570)]) == null ? void 0 : _0xd52fc1[_0x9d6d36(481)]) || "", "detail": { "base": _0x9d6d36(484), "mobile": (_0x4fdff4 = t[_0x9d6d36(570)]) == null ? void 0 : _0x4fdff4[_0x9d6d36(481)], "planID": (_0x9b6f9c = t["connectInfo"]) == null ? void 0 : _0x9b6f9c[_0x9d6d36(455)], "isOnceCall": t[_0x9d6d36(286)] } }, n);
|
|
34934
34934
|
break;
|
|
34935
|
-
case
|
|
34936
|
-
l[
|
|
34935
|
+
case "Reject":
|
|
34936
|
+
l[_0x9d6d36(272)]({ "Type": _0x9d6d36(377), "Data": {}, "Code": 0, "Msg": "" + (t["aiToSeat"] ? _0x9d6d36(429) : t[_0x9d6d36(286)] ? "TypeCallOnce" : ""), "TaskID": "" }), E({ "operatorID": n[_0x9d6d36(578)], "key": n[_0x9d6d36(421)][_0x9d6d36(481)] || n["callOptions"][_0x9d6d36(455)] || ((_0x2970e8 = t[_0x9d6d36(570)]) == null ? void 0 : _0x2970e8["Mobile"]) || "", "detail": { "base": _0x9d6d36(371), "mobile": (_0x3fded9 = t[_0x9d6d36(570)]) == null ? void 0 : _0x3fded9[_0x9d6d36(481)], "planID": (_0x1785a8 = t["connectInfo"]) == null ? void 0 : _0x1785a8[_0x9d6d36(455)], "isOnceCall": t[_0x9d6d36(286)] } }, n);
|
|
34937
34937
|
break;
|
|
34938
|
-
case
|
|
34939
|
-
l[
|
|
34938
|
+
case "Hangup":
|
|
34939
|
+
l[_0x9d6d36(272)]({ "Type": _0x9d6d36(539), "Data": {}, "Code": 0, "Msg": t[_0x9d6d36(456)] ? "TypeAIToSeat" : t[_0x9d6d36(286)] ? "TypeCallOnce" : "", "TaskID": "" });
|
|
34940
34940
|
break;
|
|
34941
|
-
case
|
|
34942
|
-
l[
|
|
34941
|
+
case _0x9d6d36(590):
|
|
34942
|
+
l["SEAT_SEND_MESSAGE"]({ "Type": _0x9d6d36(494), "Data": _0x43800f, "Code": 0, "Msg": _0x9d6d36(297), "TaskID": "" });
|
|
34943
34943
|
break;
|
|
34944
|
-
case
|
|
34945
|
-
l[
|
|
34944
|
+
case _0x9d6d36(313):
|
|
34945
|
+
l["SEAT_SEND_MESSAGE"]({ "Type": _0x9d6d36(313), "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
|
|
34946
34946
|
break;
|
|
34947
|
-
case
|
|
34948
|
-
console["log"](
|
|
34947
|
+
case _0x9d6d36(520):
|
|
34948
|
+
console["log"](_0x9d6d36(330), _0x43800f), l["SEAT_SEND_MESSAGE"]({ "Type": _0x9d6d36(297), "Data": _0x43800f, "Code": 0, "Msg": "", "TaskID": "" }), l[_0x9d6d36(355)]({ "key": _0x9d6d36(350), "value": Object["assign"]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0x43800f) }), E({ "operatorID": n[_0x9d6d36(578)], "key": n[_0x9d6d36(421)][_0x9d6d36(481)] || n[_0x9d6d36(421)][_0x9d6d36(455)] || "", "detail": { "base": _0x9d6d36(527) } }, n);
|
|
34949
34949
|
break;
|
|
34950
|
-
case
|
|
34951
|
-
l[
|
|
34950
|
+
case _0x9d6d36(524):
|
|
34951
|
+
l[_0x9d6d36(573)](j({ "Type": _0x4b3ad7, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
|
|
34952
34952
|
break;
|
|
34953
|
-
case
|
|
34954
|
-
l[
|
|
34953
|
+
case _0x9d6d36(579):
|
|
34954
|
+
l["SEAT_SEND_MESSAGE"]("ping");
|
|
34955
34955
|
break;
|
|
34956
|
-
case
|
|
34957
|
-
l[
|
|
34956
|
+
case _0x9d6d36(503):
|
|
34957
|
+
l[_0x9d6d36(272)](_0x43800f);
|
|
34958
34958
|
break;
|
|
34959
34959
|
}
|
|
34960
34960
|
}, "instanceClose"() {
|
|
34961
|
-
const
|
|
34962
|
-
t[
|
|
34963
|
-
}, "actionSeatUpdatePhoneRingAudio"(
|
|
34964
|
-
|
|
34965
|
-
|
|
34966
|
-
|
|
34967
|
-
|
|
34968
|
-
|
|
34969
|
-
|
|
34970
|
-
|
|
34971
|
-
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34986
|
-
|
|
34987
|
-
|
|
34988
|
-
|
|
34989
|
-
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34993
|
-
|
|
34994
|
-
|
|
34995
|
-
|
|
34961
|
+
const _0x1d06e4 = _0x15a666;
|
|
34962
|
+
t[_0x1d06e4(543)] && (i[_0x1d06e4(517)](false), t[_0x1d06e4(543)][_0x1d06e4(432)](1e3), l[_0x1d06e4(355)]({ "key": _0x1d06e4(543), "value": "" }));
|
|
34963
|
+
}, "actionSeatUpdatePhoneRingAudio"(_0x22576f) {
|
|
34964
|
+
const _0x2f0188 = _0x15a666;
|
|
34965
|
+
l[_0x2f0188(388)](_0x22576f);
|
|
34966
|
+
}, "actionSeatReconnectWSAfterClosed"(_0x19f973) {
|
|
34967
|
+
const _0x375fc0 = _0x15a666;
|
|
34968
|
+
l[_0x375fc0(355)]({ "key": _0x375fc0(378), "value": _0x19f973 });
|
|
34969
|
+
}, "actionHandleCallBack"(_0x41a2b7, _0x369133, _0x4c0007 = {}) {
|
|
34970
|
+
const _0x2a2832 = _0x15a666;
|
|
34971
|
+
_0x4c0007[_0x2a2832(481)] !== void 0 && (_0x4c0007["Str"] = btoa(_0x4c0007["Mobile"] || "")), _0x4c0007 && _0x4c0007[_0x2a2832(481)] && n["maskPhoneNumber"] !== false && (_0x4c0007[_0x2a2832(481)] = X(_0x4c0007[_0x2a2832(481)])), n[_0x2a2832(421)] && n[_0x2a2832(421)]["OutPlanID"] && (_0x4c0007["OutPlanID"] = n[_0x2a2832(421)][_0x2a2832(375)]), n[_0x2a2832(421)] && n[_0x2a2832(421)][_0x2a2832(575)] && (_0x4c0007[_0x2a2832(575)] = n[_0x2a2832(421)][_0x2a2832(575)]), n[_0x2a2832(510)] && n[_0x2a2832(510)]({ "type": _0x41a2b7, "msg": _0x369133, "data": _0x4c0007 });
|
|
34972
|
+
} }, l = { "SEAT_SET_LIST"(_0xd7ad6) {
|
|
34973
|
+
const _0x17b836 = _0x15a666;
|
|
34974
|
+
t[_0x17b836(323)] = _0xd7ad6;
|
|
34975
|
+
}, "SEAT_SET_WS"(_0x536a56) {
|
|
34976
|
+
const _0x31ea96 = _0x15a666;
|
|
34977
|
+
t[_0x31ea96(543)] = _0x536a56;
|
|
34978
|
+
}, "SEAT_SET_VoiceWS"(_0x1a01a3) {
|
|
34979
|
+
const _0xe53a16 = _0x15a666;
|
|
34980
|
+
t[_0xe53a16(496)] = _0x1a01a3;
|
|
34981
|
+
}, "SEAT_SEND_MESSAGE"(_0x937a3e) {
|
|
34982
|
+
const _0x595221 = _0x15a666;
|
|
34983
|
+
t[_0x595221(273)] === _0x595221(452) && t["instance"] && t[_0x595221(543)]["send"](j(_0x937a3e));
|
|
34984
|
+
}, "SEAT_SEND_RAW_MESSAGE"(_0x4773c3) {
|
|
34985
|
+
const _0x1b5a50 = _0x15a666;
|
|
34986
|
+
t[_0x1b5a50(273)] === _0x1b5a50(452) && t[_0x1b5a50(496)] && t[_0x1b5a50(553)] === _0x1b5a50(452) && t[_0x1b5a50(496)]["send"](_0x4773c3);
|
|
34987
|
+
}, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x4a2d1a) {
|
|
34988
|
+
const _0x590dba = _0x15a666;
|
|
34989
|
+
t[_0x4a2d1a[_0x590dba(380)]] = _0x4a2d1a[_0x590dba(273)];
|
|
34990
|
+
}, "SEAT_SAVE_KEY_VALUE"(_0x3d8aa7) {
|
|
34991
|
+
const _0x5e9bdf = _0x15a666, { key: _0x2433fe, value: _0x58353b } = _0x3d8aa7;
|
|
34992
|
+
t[_0x2433fe] = _0x58353b, _0x2433fe === "callingStage" && _0x58353b === _0x5e9bdf(462) && b(true);
|
|
34993
|
+
}, "SEAT_PLAY_AUDIO"(_0x3b284f) {
|
|
34994
|
+
const _0x4d9640 = _0x15a666;
|
|
34995
|
+
let { type: _0x48db1e, value: _0x9809d2 } = _0x3b284f;
|
|
34996
|
+
if (_0x48db1e === _0x4d9640(564)) t[_0x4d9640(471)]["srcObject"] = _0x9809d2;
|
|
34996
34997
|
else {
|
|
34997
|
-
if (
|
|
34998
|
+
if (_0x48db1e === _0x4d9640(257)) t[_0x4d9640(471)][_0x4d9640(257)] = _0x9809d2;
|
|
34998
34999
|
else {
|
|
34999
|
-
if (
|
|
35000
|
-
k && k[
|
|
35000
|
+
if (_0x48db1e === _0x4d9640(504)) {
|
|
35001
|
+
k && k[_0x4d9640(379)](new Int16Array(_0x9809d2));
|
|
35001
35002
|
return;
|
|
35002
35003
|
}
|
|
35003
35004
|
}
|
|
35004
35005
|
}
|
|
35005
35006
|
}, "SEAT_RESET_AUDIO"() {
|
|
35006
|
-
const
|
|
35007
|
-
t[
|
|
35008
|
-
}, "SEAT_SET_PHONERINGAUDIO"(
|
|
35009
|
-
const
|
|
35010
|
-
t[
|
|
35011
|
-
}, "SEAT_SET_RECORDSDATA"(
|
|
35012
|
-
const
|
|
35013
|
-
if (!
|
|
35014
|
-
if ([
|
|
35015
|
-
t[
|
|
35007
|
+
const _0x3f95ce = _0x15a666;
|
|
35008
|
+
t[_0x3f95ce(471)] && t[_0x3f95ce(471)][_0x3f95ce(363)](), t[_0x3f95ce(471)][_0x3f95ce(564)] = null, t["audio"][_0x3f95ce(257)] = "", t["audio"] = document[_0x3f95ce(537)]("audio");
|
|
35009
|
+
}, "SEAT_SET_PHONERINGAUDIO"(_0x81502a) {
|
|
35010
|
+
const _0x5515f4 = _0x15a666;
|
|
35011
|
+
t[_0x5515f4(522)] = _0x81502a;
|
|
35012
|
+
}, "SEAT_SET_RECORDSDATA"(_0x5fff3a) {
|
|
35013
|
+
const _0x4a556f = _0x15a666;
|
|
35014
|
+
if (!_0x5fff3a) return;
|
|
35015
|
+
if ([_0x4a556f(531)][_0x4a556f(472)](_0x5fff3a[_0x4a556f(509)]) > -1) {
|
|
35016
|
+
t["recordsData"] = [];
|
|
35016
35017
|
return;
|
|
35017
35018
|
}
|
|
35018
|
-
let
|
|
35019
|
-
if (
|
|
35020
|
-
const
|
|
35021
|
-
t[
|
|
35019
|
+
let _0x4ec818 = [];
|
|
35020
|
+
if (_0x5fff3a[_0x4a556f(509)] === _0x4a556f(514) && _0x5fff3a[_0x4a556f(507)] === "TypeAIToSeat" && (t["recordsData"] = [], _0x4ec818 = (JSON["parse"](_0x5fff3a[_0x4a556f(410)][_0x4a556f(359)])[_0x4a556f(550)] || [])[_0x4a556f(541)]((_0x1b0be4) => Object[_0x4a556f(285)]({}, _0x1b0be4, { "ID": M() }))), t[_0x4a556f(308)]["length"] === 0) {
|
|
35021
|
+
const _0x131102 = { "ID": M(), "PlanID": _0x5fff3a[_0x4a556f(410)][_0x4a556f(455)] ? _0x5fff3a["Data"][_0x4a556f(455)] : M(), "Messages": _0x5fff3a[_0x4a556f(509)] === "SeatConnectedResp" && _0x5fff3a[_0x4a556f(507)] === _0x4a556f(429) ? _0x4ec818 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x5fff3a[_0x4a556f(410)] && _0x5fff3a["Data"][_0x4a556f(481)] ? _0x5fff3a[_0x4a556f(410)]["Mobile"] : "", "Sip": "", "VoiceID": "", "CallAt": _0x5fff3a[_0x4a556f(410)] && _0x5fff3a["Data"][_0x4a556f(422)] ? _0x5fff3a["Data"][_0x4a556f(422)] : /* @__PURE__ */ new Date() };
|
|
35022
|
+
t[_0x4a556f(308)] = [_0x131102];
|
|
35022
35023
|
}
|
|
35023
|
-
const
|
|
35024
|
-
(
|
|
35024
|
+
const _0x48142c = t["recordsData"][0][_0x4a556f(550)]["length"] || 0, _0x4c40cc = { "ID": M(), "Index": _0x48142c, "ProduceBy": _0x5fff3a["Type"] === _0x4a556f(457) ? "customer" : _0x5fff3a[_0x4a556f(509)] === _0x4a556f(295) ? _0x4a556f(396) : "operator", "VoiceID": "", "VoiceText": _0x5fff3a[_0x4a556f(509)] === _0x4a556f(295) ? _0x5fff3a[_0x4a556f(507)] : _0x5fff3a["Data"]["Text"], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": _0x4a556f(495), "Events": null, "CreatedAt": _0x4a556f(495), "DeletedAt": null };
|
|
35025
|
+
(_0x5fff3a[_0x4a556f(509)] !== _0x4a556f(514) && _0x5fff3a["Type"] !== "RobotSay" && _0x5fff3a["Data"][_0x4a556f(359)] || _0x5fff3a[_0x4a556f(509)] === "RobotSay") && t["recordsData"][0]["Messages"][_0x4a556f(413)](_0x4c40cc);
|
|
35025
35026
|
} };
|
|
35026
|
-
function G(
|
|
35027
|
-
const
|
|
35028
|
-
|
|
35029
|
-
const
|
|
35030
|
-
l[
|
|
35031
|
-
},
|
|
35032
|
-
const
|
|
35033
|
-
var
|
|
35027
|
+
function G(_0x1887d8) {
|
|
35028
|
+
const _0x3bc4b7 = _0x15a666, _0x354fe0 = new WebSocket(_0x1887d8[_0x3bc4b7(336)]);
|
|
35029
|
+
_0x354fe0["onopen"] = () => {
|
|
35030
|
+
const _0xd67bfe = _0x3bc4b7;
|
|
35031
|
+
l[_0xd67bfe(255)]({ "key": _0xd67bfe(273), "status": "connected" }), E({ "operatorID": n[_0xd67bfe(578)], "key": n["callOptions"] && (n[_0xd67bfe(421)]["Mobile"] || n[_0xd67bfe(421)][_0xd67bfe(455)]) || "", "detail": { "base": _0xd67bfe(267) } }, n);
|
|
35032
|
+
}, _0x354fe0[_0x3bc4b7(574)] = (_0x3a7dfb) => {
|
|
35033
|
+
const _0x587772 = _0x3bc4b7;
|
|
35034
|
+
var _0xc2ce29, _0xa0aaf3, _0x3e3f36, _0x51a278, _0x5a31f6, _0x4297b1, _0x54e2d8, _0x4e4777, _0x5e3134, _0x2e4361, _0x1173f2, _0x53d9cd, _0x34fe06, _0x25177e, _0x4bb8dd, _0x55138f, _0x1a3f61, _0x58d557;
|
|
35034
35035
|
try {
|
|
35035
|
-
let
|
|
35036
|
-
switch (
|
|
35037
|
-
case
|
|
35038
|
-
l[
|
|
35036
|
+
let _0x57504f = JSON["parse"](_0x3a7dfb[_0x587772(547)]);
|
|
35037
|
+
switch (_0x57504f[_0x587772(509)]) {
|
|
35038
|
+
case _0x587772(256):
|
|
35039
|
+
l[_0x587772(255)]({ "key": _0x587772(273), "status": _0x587772(452) }), l["SEAT_SET_WS"](_0x354fe0), l[_0x587772(355)]({ "key": _0x587772(468), "value": { "IsOnline": true, "IsAutoAnswer": n[_0x587772(282)] } }), l[_0x587772(355)]({ "key": _0x587772(408), "value": 3 }), i[_0x587772(399)](_0x587772(372), _0x587772(596)), n[_0x587772(505)] || i[_0x587772(307)]({ "type": _0x587772(520), "data": n["callOptions"] });
|
|
35039
35040
|
break;
|
|
35040
|
-
case
|
|
35041
|
-
i[
|
|
35041
|
+
case _0x587772(368):
|
|
35042
|
+
i[_0x587772(517)](false), i[_0x587772(399)](_0x587772(374), _0x587772(511));
|
|
35042
35043
|
break;
|
|
35043
|
-
case
|
|
35044
|
-
i[
|
|
35044
|
+
case "SeatFailToReady":
|
|
35045
|
+
i[_0x587772(517)](false), i["actionHandleCallBack"](_0x587772(258), _0x587772(384)), b();
|
|
35045
35046
|
break;
|
|
35046
|
-
case
|
|
35047
|
-
i[
|
|
35047
|
+
case _0x587772(343):
|
|
35048
|
+
i["actionSeatHandleIncoming"]({ "type": _0x587772(503), "data": { "TaskID": _0x57504f[_0x587772(288)], "Type": _0x587772(461) } });
|
|
35048
35049
|
break;
|
|
35049
|
-
case
|
|
35050
|
-
R(), l[
|
|
35050
|
+
case _0x587772(305):
|
|
35051
|
+
R(), l[_0x587772(355)]({ "key": _0x587772(406), "value": "" }), l[_0x587772(355)]({ "key": _0x587772(386), "value": _0x587772(424) }), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(350), "value": _0x57504f[_0x587772(410)] }), i["actionHandleCallBack"](_0x587772(459), _0x587772(319), { "PlanID": _0x57504f["Data"][_0x587772(455)], "Mobile": _0x57504f[_0x587772(410)][_0x587772(481)] }), t[_0x587772(286)] && (i["actionSeatStartPlayer"](), i[_0x587772(478)](_0x57504f)), E({ "operatorID": n[_0x587772(578)], "key": ((_0xc2ce29 = n[_0x587772(421)]) == null ? void 0 : _0xc2ce29[_0x587772(481)]) || ((_0xa0aaf3 = n["callOptions"]) == null ? void 0 : _0xa0aaf3["PlanID"]), "detail": { "base": "收到CallOnceRinging", "mobile": (_0x3e3f36 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x3e3f36["Mobile"], "planID": (_0x51a278 = _0x57504f["Data"]) == null ? void 0 : _0x51a278[_0x587772(455)] } }, n);
|
|
35051
35052
|
break;
|
|
35052
|
-
case
|
|
35053
|
-
const
|
|
35054
|
-
i[
|
|
35053
|
+
case _0x587772(576):
|
|
35054
|
+
const _0x3e3c57 = _0x57504f[_0x587772(410)];
|
|
35055
|
+
i[_0x587772(399)]("QualityNotice", _0x587772(291), { "PlanID": _0x57504f[_0x587772(410)][_0x587772(455)], "RuleName": _0x3e3c57[_0x587772(485)], "DictionaryName": _0x3e3c57[_0x587772(428)], "MatchKeyword": _0x3e3c57[_0x587772(477)] });
|
|
35055
35056
|
break;
|
|
35056
|
-
case
|
|
35057
|
+
case _0x587772(259):
|
|
35057
35058
|
break;
|
|
35058
|
-
case
|
|
35059
|
-
l[
|
|
35059
|
+
case "CallOnceFailed":
|
|
35060
|
+
l[_0x587772(355)]({ "key": _0x587772(386), "value": Number(_0x57504f[_0x587772(361)]) === 203 ? "钱包/通话余量不足" : _0x587772(407) }), b(true), i[_0x587772(399)](Number(_0x57504f[_0x587772(361)]) === 203 ? "InsufficientBalance" : "CallUnexpected", _0x57504f[_0x587772(507)]), E({ "operatorID": n[_0x587772(578)], "key": n[_0x587772(421)][_0x587772(481)] || n[_0x587772(421)][_0x587772(455)] || "", "detail": { "base": _0x587772(453) + _0x57504f[_0x587772(507)], "mobile": (_0x5a31f6 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x5a31f6["Mobile"], "planID": (_0x4297b1 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x4297b1[_0x587772(455)] } }, n);
|
|
35060
35061
|
break;
|
|
35061
|
-
case
|
|
35062
|
-
l[
|
|
35062
|
+
case _0x587772(514):
|
|
35063
|
+
l[_0x587772(355)]({ "key": _0x587772(570), "value": Object[_0x587772(285)]({}, _0x57504f[_0x587772(410)], { "CustomerID": t[_0x587772(570)] && t[_0x587772(570)]["CustomerID"], "Time": t[_0x587772(570)] && t[_0x587772(570)]["Time"] }) }), l[_0x587772(355)]({ "key": _0x587772(266), "value": _0x587772(452) }), l[_0x587772(559)](_0x57504f), I(), Q(), t["aiToSeat"] && i["actionSeatVoiceWS"](Object[_0x587772(285)]({}, _0x57504f, { "Msg": t[_0x587772(406)] })), t[_0x587772(286)] || (i[_0x587772(568)](), i[_0x587772(433)]()), i[_0x587772(399)](_0x587772(577), "通话中", { "PlanID": _0x57504f[_0x587772(410)][_0x587772(455)], "Mobile": _0x57504f[_0x587772(410)][_0x587772(481)] });
|
|
35063
35064
|
break;
|
|
35064
|
-
case
|
|
35065
|
-
l[
|
|
35066
|
-
const
|
|
35067
|
-
i[
|
|
35068
|
-
}, 500), i[
|
|
35065
|
+
case _0x587772(531):
|
|
35066
|
+
l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(266), "value": _0x587772(290) }), l[_0x587772(355)]({ "key": _0x587772(386), "value": "" }), l[_0x587772(355)]({ "key": "connectInfo", "value": _0x57504f[_0x587772(410)] }), l[_0x587772(355)]({ "key": _0x587772(350), "value": _0x57504f[_0x587772(410)] }), l[_0x587772(355)]({ "key": "aiToSeat", "value": false }), l["SEAT_SAVE_KEY_VALUE"]({ "key": "aiToSeatVoiceUrl", "value": "" }), l[_0x587772(559)](_0x57504f), t["onceCall"] ? (i[_0x587772(307)]({ "type": _0x587772(398) }), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(266), "value": "connected" }), i[_0x587772(433)]()) : (R(), i[_0x587772(478)](_0x57504f), n[_0x587772(282)] && setTimeout(() => {
|
|
35067
|
+
const _0x40abf6 = _0x587772;
|
|
35068
|
+
i[_0x40abf6(307)]({ "type": _0x40abf6(398) }), console[_0x40abf6(292)](_0x40abf6(304));
|
|
35069
|
+
}, 500), i[_0x587772(399)](_0x587772(459), "通话连接中", { "PlanID": _0x57504f["Data"][_0x587772(455)], "Mobile": _0x57504f[_0x587772(410)][_0x587772(481)] })), E({ "operatorID": n[_0x587772(578)], "key": n[_0x587772(421)][_0x587772(481)] || n[_0x587772(421)][_0x587772(455)] || ((_0x54e2d8 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x54e2d8[_0x587772(481)]) || "", "detail": { "base": _0x587772(412), "mobile": (_0x4e4777 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x4e4777[_0x587772(481)], "planID": (_0x5e3134 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x5e3134["PlanID"], "isOnceCall": t["onceCall"] } }, n);
|
|
35069
35070
|
break;
|
|
35070
|
-
case
|
|
35071
|
-
I(), b(), l["SEAT_SAVE_KEY_VALUE"]({ "key":
|
|
35071
|
+
case _0x587772(598):
|
|
35072
|
+
I(), b(), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(266), "value": "" }), i[_0x587772(508)](), O(), i[_0x587772(399)]("CallUnexpected", "通话异常"), E({ "operatorID": n[_0x587772(578)], "key": n[_0x587772(421)]["Mobile"] || n[_0x587772(421)][_0x587772(455)] || ((_0x2e4361 = t[_0x587772(570)]) == null ? void 0 : _0x2e4361["Mobile"]) || "", "detail": { "base": _0x587772(560), "mobile": (_0x1173f2 = t[_0x587772(570)]) == null ? void 0 : _0x1173f2[_0x587772(481)], "planID": (_0x53d9cd = t[_0x587772(570)]) == null ? void 0 : _0x53d9cd["PlanID"] } }, n);
|
|
35072
35073
|
break;
|
|
35073
|
-
case
|
|
35074
|
-
I(), t[
|
|
35074
|
+
case _0x587772(460):
|
|
35075
|
+
I(), t["recorder"] && t["recorder"][_0x587772(301)](), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(266), "value": "hangup" }), i[_0x587772(399)]("CallUnexpected", _0x587772(402)), O(), E({ "operatorID": n[_0x587772(578)], "key": n["callOptions"]["Mobile"] || n[_0x587772(421)]["PlanID"] || ((_0x34fe06 = t[_0x587772(570)]) == null ? void 0 : _0x34fe06[_0x587772(481)]) || "", "detail": { "base": _0x587772(337), "mobile": (_0x25177e = t[_0x587772(570)]) == null ? void 0 : _0x25177e[_0x587772(481)], "planID": (_0x4bb8dd = t["connectInfo"]) == null ? void 0 : _0x4bb8dd[_0x587772(455)] } }, n);
|
|
35075
35076
|
break;
|
|
35076
|
-
case
|
|
35077
|
-
case
|
|
35078
|
-
t[
|
|
35077
|
+
case _0x587772(261):
|
|
35078
|
+
case _0x587772(367):
|
|
35079
|
+
t[_0x587772(303)] && t[_0x587772(303)]["stop"](), I(), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(286), "value": false }), t[_0x587772(266)] !== _0x587772(452) && i[_0x587772(307)]({ "type": _0x587772(313) }), l[_0x587772(355)]({ "key": _0x587772(266), "value": t[_0x587772(266)] === _0x587772(452) ? _0x587772(462) : "" }), i[_0x587772(399)](_0x587772(261), _0x587772(373)), E({ "operatorID": n[_0x587772(578)], "key": n[_0x587772(421)][_0x587772(481)] || n[_0x587772(421)][_0x587772(455)] || ((_0x55138f = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x55138f[_0x587772(481)]) || "", "detail": { "base": _0x587772(279), "mobile": (_0x1a3f61 = _0x57504f[_0x587772(410)]) == null ? void 0 : _0x1a3f61[_0x587772(481)], "planID": (_0x58d557 = _0x57504f["Data"]) == null ? void 0 : _0x58d557[_0x587772(455)] } }, n), O();
|
|
35079
35080
|
break;
|
|
35080
|
-
case
|
|
35081
|
-
b(), l[
|
|
35081
|
+
case _0x587772(342):
|
|
35082
|
+
b(), l[_0x587772(355)]({ "key": _0x587772(386), "value": _0x587772(584) }), l[_0x587772(355)]({ "key": _0x587772(266), "value": "" }), l["SEAT_SAVE_KEY_VALUE"]({ "key": "onceCall", "value": false }), I(), i[_0x587772(399)]("CustomerRefuse", _0x587772(584)), O();
|
|
35082
35083
|
break;
|
|
35083
|
-
case
|
|
35084
|
-
t[
|
|
35084
|
+
case _0x587772(539):
|
|
35085
|
+
t[_0x587772(303)] && t["recorder"]["stop"](), l[_0x587772(355)]({ "key": _0x587772(266), "value": "hangup" }), I();
|
|
35085
35086
|
break;
|
|
35086
|
-
case
|
|
35087
|
-
t[
|
|
35087
|
+
case _0x587772(324):
|
|
35088
|
+
t[_0x587772(303)] && (t["recorder"][_0x587772(301)](), t[_0x587772(303)] = null), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(266), "value": _0x587772(462) }), l[_0x587772(355)]({ "key": _0x587772(286), "value": false }), i[_0x587772(399)]("SeatHangUp", _0x587772(392));
|
|
35088
35089
|
break;
|
|
35089
|
-
case
|
|
35090
|
-
console[
|
|
35090
|
+
case _0x587772(383):
|
|
35091
|
+
console[_0x587772(292)]("坐席拒接"), i[_0x587772(399)]("SeatRefuse", "坐席拒接"), l["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), I(), i["actionSeatHandleIncoming"]({ "type": _0x587772(313) });
|
|
35091
35092
|
break;
|
|
35092
|
-
case
|
|
35093
|
-
l[
|
|
35093
|
+
case "SeatCancelResp":
|
|
35094
|
+
l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x587772(386), "value": "" }), l[_0x587772(355)]({ "key": _0x587772(286), "value": false }), i[_0x587772(399)](_0x587772(539), "坐席已挂机"), i[_0x587772(307)]({ "type": _0x587772(313) }), I();
|
|
35094
35095
|
break;
|
|
35095
|
-
case
|
|
35096
|
-
l[
|
|
35096
|
+
case "CustomerSayText":
|
|
35097
|
+
l[_0x587772(559)](_0x57504f), i["actionHandleCallBack"](_0x587772(253), _0x587772(592), { "PlanID": _0x57504f["Data"][_0x587772(455)], "Text": _0x57504f[_0x587772(410)][_0x587772(359)], "Time": _0x57504f[_0x587772(410)][_0x587772(422)] });
|
|
35097
35098
|
break;
|
|
35098
|
-
case
|
|
35099
|
-
l[
|
|
35099
|
+
case _0x587772(339):
|
|
35100
|
+
l["SEAT_SET_RECORDSDATA"](_0x57504f), i[_0x587772(399)](_0x587772(300), "坐席说话", { "PlanID": _0x57504f[_0x587772(410)][_0x587772(455)], "Text": _0x57504f[_0x587772(410)][_0x587772(359)], "Time": _0x57504f[_0x587772(410)][_0x587772(422)] });
|
|
35100
35101
|
break;
|
|
35101
|
-
case
|
|
35102
|
-
l[
|
|
35102
|
+
case _0x587772(295):
|
|
35103
|
+
l[_0x587772(559)](_0x57504f), i["actionHandleCallBack"](_0x587772(295), _0x587772(376), { "PlanID": _0x57504f[_0x587772(410)][_0x587772(455)], "Text": _0x57504f[_0x587772(410)][_0x587772(359)], "Time": _0x57504f[_0x587772(410)][_0x587772(422)] });
|
|
35103
35104
|
break;
|
|
35104
|
-
case
|
|
35105
|
-
i[
|
|
35105
|
+
case _0x587772(341):
|
|
35106
|
+
i[_0x587772(399)](_0x587772(341), _0x587772(438));
|
|
35106
35107
|
break;
|
|
35107
|
-
case
|
|
35108
|
-
l[
|
|
35108
|
+
case _0x587772(544):
|
|
35109
|
+
l[_0x587772(355)]({ "key": _0x587772(286), "value": true }), l[_0x587772(355)]({ "key": "callOnceStage", "value": _0x587772(591) }), i[_0x587772(399)](_0x587772(544), "呼出成功");
|
|
35109
35110
|
break;
|
|
35110
|
-
case
|
|
35111
|
-
l["SEAT_SAVE_KEY_VALUE"]({ "key":
|
|
35112
|
-
const
|
|
35113
|
-
i[
|
|
35114
|
-
}, 500), i[
|
|
35111
|
+
case _0x587772(429):
|
|
35112
|
+
l["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": _0x587772(290) }), R(), l[_0x587772(355)]({ "key": _0x587772(456), "value": true }), l[_0x587772(355)]({ "key": _0x587772(406), "value": _0x57504f[_0x587772(507)] }), l[_0x587772(355)]({ "key": _0x587772(350), "value": _0x57504f[_0x587772(410)] }), l[_0x587772(355)]({ "key": "connectInfo", "value": _0x57504f[_0x587772(410)] }), n[_0x587772(282)] && setTimeout(() => {
|
|
35113
|
+
const _0x6a0357 = _0x587772;
|
|
35114
|
+
i[_0x6a0357(307)]({ "type": "Answer" }), console[_0x6a0357(292)]("人机切换自动接听");
|
|
35115
|
+
}, 500), i[_0x587772(399)]("CallConnecting", _0x587772(319), { "PlanID": _0x57504f[_0x587772(410)][_0x587772(455)], "Mobile": _0x57504f[_0x587772(410)][_0x587772(481)], "IsAIToSeat": true });
|
|
35115
35116
|
break;
|
|
35116
|
-
case
|
|
35117
|
-
i["
|
|
35117
|
+
case _0x587772(316):
|
|
35118
|
+
i[_0x587772(399)]("RobotHangUp", _0x587772(513)), t["recorder"] && t[_0x587772(303)][_0x587772(301)](), l[_0x587772(355)]({ "key": _0x587772(266), "value": "" }), i["actionSeatHandleIncoming"]({ "type": "CallNext" }), I();
|
|
35118
35119
|
break;
|
|
35119
35120
|
default:
|
|
35120
|
-
console[
|
|
35121
|
+
console[_0x587772(292)](_0x587772(354));
|
|
35121
35122
|
break;
|
|
35122
35123
|
}
|
|
35123
|
-
} catch (
|
|
35124
|
-
console[
|
|
35125
|
-
}
|
|
35126
|
-
},
|
|
35127
|
-
const
|
|
35128
|
-
var
|
|
35129
|
-
if (console["
|
|
35130
|
-
const
|
|
35131
|
-
P = false, G(
|
|
35132
|
-
}
|
|
35133
|
-
},
|
|
35134
|
-
const
|
|
35135
|
-
var
|
|
35136
|
-
console[
|
|
35137
|
-
};
|
|
35138
|
-
}
|
|
35139
|
-
|
|
35140
|
-
const
|
|
35141
|
-
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35124
|
+
} catch (_0x1dbfa7) {
|
|
35125
|
+
console[_0x587772(254)](_0x587772(431), _0x1dbfa7);
|
|
35126
|
+
}
|
|
35127
|
+
}, _0x354fe0[_0x3bc4b7(403)] = (_0x3f3b0c) => {
|
|
35128
|
+
const _0x327cb9 = _0x3bc4b7;
|
|
35129
|
+
var _0x2d576e, _0x40abaf, _0x41f3ca;
|
|
35130
|
+
if (console[_0x327cb9(292)]("ws关闭", _0x3f3b0c), i[_0x327cb9(399)](_0x327cb9(519), _0x327cb9(581)), l[_0x327cb9(329)](""), l[_0x327cb9(255)]({ "key": _0x327cb9(273), "status": _0x327cb9(263) }), l[_0x327cb9(355)]({ "key": "callingStage", "value": "" }), l[_0x327cb9(355)]({ "key": "seatStatus", "value": { "IsOnline": false, "IsAutoAnswer": n[_0x327cb9(282)] } }), I(), E({ "operatorID": n["employeeID"], "key": n[_0x327cb9(421)][_0x327cb9(481)] || n[_0x327cb9(421)][_0x327cb9(455)] || ((_0x2d576e = t[_0x327cb9(570)]) == null ? void 0 : _0x2d576e[_0x327cb9(481)]) || "", "detail": { "base": "ws连接关闭", "mobile": (_0x40abaf = t["connectInfo"]) == null ? void 0 : _0x40abaf[_0x327cb9(481)], "planID": (_0x41f3ca = t[_0x327cb9(570)]) == null ? void 0 : _0x41f3ca[_0x327cb9(455)], "message": { "code": _0x3f3b0c[_0x327cb9(269)], "reason": _0x3f3b0c[_0x327cb9(426)], "autoClosed": t[_0x327cb9(378)], "reconnectCount": t[_0x327cb9(408)] } } }, n), t[_0x327cb9(303)] && t[_0x327cb9(303)]["stop"](), k && k[_0x327cb9(289)](), (P || n[_0x327cb9(505)] && t[_0x327cb9(378)]) && t[_0x327cb9(408)] > 0) {
|
|
35131
|
+
const _0x4c2481 = t["reconnectCount"] - 1;
|
|
35132
|
+
P = false, G(_0x1887d8), l[_0x327cb9(355)]({ "key": _0x327cb9(408), "value": _0x4c2481 });
|
|
35133
|
+
}
|
|
35134
|
+
}, _0x354fe0[_0x3bc4b7(281)] = (_0x4217a8) => {
|
|
35135
|
+
const _0x5abfeb = _0x3bc4b7;
|
|
35136
|
+
var _0x3c1cc8, _0x3bbca1, _0x21f9e5;
|
|
35137
|
+
console["log"](_0x5abfeb(391), _0x4217a8), i[_0x5abfeb(399)](_0x5abfeb(349), _0x5abfeb(402)), i[_0x5abfeb(399)](_0x5abfeb(519), "坐席下线"), i[_0x5abfeb(508)](), E({ "operatorID": n[_0x5abfeb(578)], "key": n[_0x5abfeb(421)]["Mobile"] || n[_0x5abfeb(421)]["PlanID"] || ((_0x3c1cc8 = t[_0x5abfeb(570)]) == null ? void 0 : _0x3c1cc8[_0x5abfeb(481)]) || "", "detail": { "base": "ws连接异常", "mobile": (_0x3bbca1 = t["connectInfo"]) == null ? void 0 : _0x3bbca1[_0x5abfeb(481)], "planID": (_0x21f9e5 = t[_0x5abfeb(570)]) == null ? void 0 : _0x21f9e5["PlanID"] } }, n);
|
|
35138
|
+
};
|
|
35139
|
+
}
|
|
35140
|
+
function _0x3e0d(_0xde7917, _0x1df413) {
|
|
35141
|
+
const _0x1da3bc = _0x1da3();
|
|
35142
|
+
return _0x3e0d = function(_0x3e0d9d, _0x39897d) {
|
|
35143
|
+
_0x3e0d9d = _0x3e0d9d - 252;
|
|
35144
|
+
let _0x3f5052 = _0x1da3bc[_0x3e0d9d];
|
|
35145
|
+
return _0x3f5052;
|
|
35146
|
+
}, _0x3e0d(_0xde7917, _0x1df413);
|
|
35147
|
+
}
|
|
35148
|
+
const te = (_0x1e9d60) => {
|
|
35149
|
+
const _0xd591e0 = _0x15a666;
|
|
35150
|
+
n = _0x1e9d60, _0x1e9d60[_0xd591e0(505)] ? w[_0xd591e0(488)]["actionSeatHandleIncoming"]({ "type": _0xd591e0(520), "data": n[_0xd591e0(421)] }) : i[_0xd591e0(417)]();
|
|
35151
|
+
}, ae = (_0x2adb1d) => {
|
|
35152
|
+
n = _0x2adb1d, i["actionSeatStartWS"]();
|
|
35145
35153
|
}, ne = () => {
|
|
35146
|
-
const
|
|
35147
|
-
var
|
|
35148
|
-
const
|
|
35149
|
-
let
|
|
35150
|
-
m[
|
|
35151
|
-
}, b = (
|
|
35154
|
+
const _0x295bc2 = _0x15a666;
|
|
35155
|
+
var _0x4c6aa2, _0x3ca3eb, _0x26a811;
|
|
35156
|
+
const _0x16968e = m[_0x295bc2(400)]();
|
|
35157
|
+
let _0x35a2c3 = "";
|
|
35158
|
+
m[_0x295bc2(333)]() ? (i[_0x295bc2(307)]({ "type": "Reject" }), _0x35a2c3 = _0x295bc2(562)) : m[_0x295bc2(381)]() ? (i[_0x295bc2(307)]({ "type": _0x295bc2(423) }), _0x35a2c3 = _0x295bc2(530)) : (_0x16968e === _0x295bc2(424) || _0x16968e === "起呼中") && (i[_0x295bc2(307)]({ "type": "Cancel" }), _0x35a2c3 = _0x295bc2(260)), _0x35a2c3 && E({ "operatorID": n[_0x295bc2(578)], "key": n["callOptions"][_0x295bc2(481)] || n[_0x295bc2(421)]["PlanID"] || ((_0x4c6aa2 = t[_0x295bc2(570)]) == null ? void 0 : _0x4c6aa2[_0x295bc2(481)]) || "", "detail": { "base": _0x295bc2(389) + _0x35a2c3, "mobile": (_0x3ca3eb = t[_0x295bc2(570)]) == null ? void 0 : _0x3ca3eb["Mobile"], "planID": (_0x26a811 = t[_0x295bc2(570)]) == null ? void 0 : _0x26a811[_0x295bc2(455)], "isOnceCall": t[_0x295bc2(286)] } }, n), b();
|
|
35159
|
+
}, b = (_0x408316 = false) => {
|
|
35152
35160
|
setTimeout(() => {
|
|
35153
|
-
const
|
|
35154
|
-
t[
|
|
35161
|
+
const _0xa32d48 = _0x3e0d;
|
|
35162
|
+
t[_0xa32d48(496)] && t["voiceInstance"][_0xa32d48(432)](1e3), n[_0xa32d48(505)] ? _0x408316 && i[_0xa32d48(307)]({ "type": _0xa32d48(313) }) : i[_0xa32d48(508)]();
|
|
35155
35163
|
}, 800);
|
|
35156
35164
|
}, oe = () => {
|
|
35157
|
-
|
|
35158
|
-
|
|
35159
|
-
|
|
35160
|
-
|
|
35165
|
+
const _0x308db0 = _0x15a666;
|
|
35166
|
+
i[_0x308db0(307)]({ "type": _0x308db0(398) });
|
|
35167
|
+
}, le = (_0x565a18) => {
|
|
35168
|
+
const _0x530338 = _0x15a666;
|
|
35169
|
+
_0x565a18 && (n = Object[_0x530338(285)]({}, n, _0x565a18));
|
|
35170
|
+
}, w = { "actions": i }, ie = _0x15a666(325), F = { "version": ie };
|
|
35161
35171
|
class se {
|
|
35162
|
-
constructor(
|
|
35163
|
-
const
|
|
35164
|
-
K(this,
|
|
35165
|
-
}
|
|
35166
|
-
[
|
|
35167
|
-
const
|
|
35168
|
-
if (!this[
|
|
35169
|
-
this[
|
|
35172
|
+
constructor(_0x3f1249) {
|
|
35173
|
+
const _0x37dc83 = _0x15a666;
|
|
35174
|
+
K(this, _0x37dc83(547)), this["data"] = _0x3f1249;
|
|
35175
|
+
}
|
|
35176
|
+
[_0x15a666(493)](_0x49cd3a) {
|
|
35177
|
+
const _0x326825 = _0x15a666, { mobile: _0x3c54c9, callBack: _0x372d98 = "", outPlanID: _0x1540b9 = "", robotPID: _0x1083ed = "" } = _0x49cd3a;
|
|
35178
|
+
if (!this[_0x326825(547)][_0x326825(345)] || !this[_0x326825(547)][_0x326825(578)] || !this["data"][_0x326825(480)]) {
|
|
35179
|
+
this[_0x326825(521)](_0x326825(599));
|
|
35170
35180
|
return;
|
|
35171
35181
|
}
|
|
35172
|
-
if (!
|
|
35173
|
-
this["handleError"](
|
|
35182
|
+
if (!_0x3c54c9 && !_0x49cd3a["planID"]) {
|
|
35183
|
+
this["handleError"](_0x326825(434));
|
|
35174
35184
|
return;
|
|
35175
35185
|
}
|
|
35176
|
-
if (!Z(this["
|
|
35177
|
-
this[
|
|
35186
|
+
if (!Z(this[_0x326825(547)]["token"])) {
|
|
35187
|
+
this[_0x326825(521)](_0x326825(348));
|
|
35178
35188
|
return;
|
|
35179
35189
|
}
|
|
35180
|
-
let
|
|
35181
|
-
|
|
35182
|
-
let
|
|
35183
|
-
E({ "operatorID": this[
|
|
35184
|
-
te(
|
|
35185
|
-
}, (
|
|
35186
|
-
const
|
|
35187
|
-
this[
|
|
35190
|
+
let _0x71b8e9 = { "Mobile": _0x49cd3a[_0x326825(344)] };
|
|
35191
|
+
_0x49cd3a[_0x326825(346)] && (_0x71b8e9[_0x326825(332)] = _0x49cd3a[_0x326825(346)]), _0x49cd3a["planID"] && (_0x71b8e9[_0x326825(455)] = _0x49cd3a[_0x326825(430)]), _0x49cd3a["taskID"] && (_0x71b8e9[_0x326825(288)] = _0x49cd3a["taskID"]), _0x1083ed && (_0x71b8e9[_0x326825(451)] = _0x1083ed), _0x1540b9 && (_0x71b8e9[_0x326825(375)] = _0x1540b9), _0x372d98 && (_0x71b8e9[_0x326825(575)] = _0x372d98), _0x49cd3a[_0x326825(540)] && (_0x71b8e9[_0x326825(357)] = _0x49cd3a[_0x326825(540)]), _0x49cd3a["qualityMonitorIDs"] && (_0x71b8e9["QualityMonitorIDs"] = _0x49cd3a[_0x326825(268)]), _0x49cd3a[_0x326825(476)] && (_0x71b8e9["QualityNoticeToCaller"] = _0x49cd3a[_0x326825(476)]);
|
|
35192
|
+
let _0x3183aa = Object[_0x326825(285)]({}, this[_0x326825(547)], { "callOptions": _0x71b8e9 });
|
|
35193
|
+
E({ "operatorID": this["data"][_0x326825(578)], "key": _0x49cd3a[_0x326825(344)], "detail": { "base": _0x326825(534), "callConfig": _0x3183aa, "pluginVersion": F[_0x326825(467)], "maskPhoneNumber": this[_0x326825(547)][_0x326825(474)], "isAutoAnswer": this[_0x326825(547)]["isAutoAnswer"], "manualControlSeat": this[_0x326825(547)]["manualControlSeat"] } }, this[_0x326825(547)]), W(() => {
|
|
35194
|
+
te(_0x3183aa);
|
|
35195
|
+
}, (_0x424cf3) => {
|
|
35196
|
+
const _0x24a214 = _0x326825;
|
|
35197
|
+
this[_0x24a214(521)](_0x424cf3[_0x24a214(587)]);
|
|
35188
35198
|
});
|
|
35189
35199
|
}
|
|
35190
|
-
[
|
|
35191
|
-
const
|
|
35192
|
-
this[
|
|
35200
|
+
[_0x15a666(521)](_0x1b7c3b) {
|
|
35201
|
+
const _0x4213d3 = _0x15a666;
|
|
35202
|
+
this[_0x4213d3(547)]["onMessage"] && this[_0x4213d3(547)][_0x4213d3(510)]({ "type": "Error", "msg": _0x1b7c3b }), E({ "operatorID": this[_0x4213d3(547)][_0x4213d3(578)], "key": "", "detail": { "base": _0x4213d3(415), "message": _0x1b7c3b } }, this["data"]);
|
|
35193
35203
|
}
|
|
35194
|
-
[
|
|
35204
|
+
[_0x15a666(318)]() {
|
|
35195
35205
|
ne();
|
|
35196
35206
|
}
|
|
35197
|
-
[
|
|
35207
|
+
[_0x15a666(502)]() {
|
|
35198
35208
|
oe();
|
|
35199
35209
|
}
|
|
35200
|
-
[
|
|
35210
|
+
["online"]() {
|
|
35201
35211
|
W(() => {
|
|
35202
|
-
const
|
|
35203
|
-
ae({ ...this[
|
|
35204
|
-
}, (
|
|
35205
|
-
|
|
35206
|
-
this[_0x214c5e(607)](_0x4d5c45[_0x214c5e(547)]);
|
|
35212
|
+
const _0x135c13 = _0x3e0d;
|
|
35213
|
+
ae({ ...this["data"], "callOptions": {} }), E({ "operatorID": this[_0x135c13(547)][_0x135c13(578)], "key": "", "detail": { "base": _0x135c13(351), "pluginVersion": F[_0x135c13(467)], ...this["data"] } }, this[_0x135c13(547)]);
|
|
35214
|
+
}, (_0x24c657) => {
|
|
35215
|
+
this["handleError"](_0x24c657["errMsg"]);
|
|
35207
35216
|
});
|
|
35208
35217
|
}
|
|
35209
|
-
[
|
|
35210
|
-
const
|
|
35211
|
-
w[
|
|
35218
|
+
[_0x15a666(360)]() {
|
|
35219
|
+
const _0x2aa650 = _0x15a666;
|
|
35220
|
+
w[_0x2aa650(488)]["actionSeatReconnectWSAfterClosed"](false), w[_0x2aa650(488)][_0x2aa650(508)]();
|
|
35212
35221
|
}
|
|
35213
|
-
[
|
|
35214
|
-
le(
|
|
35222
|
+
[_0x15a666(444)](_0x43eb2f) {
|
|
35223
|
+
le(_0x43eb2f);
|
|
35215
35224
|
}
|
|
35216
35225
|
}
|
|
35217
35226
|
const _hoisted_1$3 = {
|
|
@@ -35338,7 +35347,7 @@ const _sfc_main$3 = {
|
|
|
35338
35347
|
const loading = ref(false);
|
|
35339
35348
|
const allEmployee = ref([]);
|
|
35340
35349
|
const apiHost = computed(() => {
|
|
35341
|
-
return getApiHost(__props.initConfig.env);
|
|
35350
|
+
return getApiHost(__props.initConfig.env, __props.initConfig.deployBaseURL);
|
|
35342
35351
|
});
|
|
35343
35352
|
let timer = 0;
|
|
35344
35353
|
const remoteAllEmployeeMethod = (query) => {
|
|
@@ -35474,7 +35483,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
35474
35483
|
const loading = ref(false);
|
|
35475
35484
|
const allRobots = ref([]);
|
|
35476
35485
|
const apiHost = computed(() => {
|
|
35477
|
-
return getApiHost(__props.initConfig.env);
|
|
35486
|
+
return getApiHost(__props.initConfig.env, __props.initConfig.deployBaseURL);
|
|
35478
35487
|
});
|
|
35479
35488
|
let timer = 0;
|
|
35480
35489
|
const remoteAllRobotMethod = (query) => {
|
|
@@ -35589,7 +35598,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
35589
35598
|
});
|
|
35590
35599
|
const sipList = ref([]);
|
|
35591
35600
|
const apiHost = computed(() => {
|
|
35592
|
-
return getApiHost(__props.initConfig.env);
|
|
35601
|
+
return getApiHost(__props.initConfig.env, __props.initConfig.deployBaseURL);
|
|
35593
35602
|
});
|
|
35594
35603
|
const emits = __emit;
|
|
35595
35604
|
const handleVisibleChangeSip = (val) => {
|
|
@@ -36069,7 +36078,7 @@ const _sfc_main = {
|
|
|
36069
36078
|
return props.showSeatStatus;
|
|
36070
36079
|
});
|
|
36071
36080
|
const apiHost = computed(() => {
|
|
36072
|
-
return getApiHost(props.initConfig.env);
|
|
36081
|
+
return getApiHost(props.initConfig.env, props.initConfig.deployBaseURL);
|
|
36073
36082
|
});
|
|
36074
36083
|
const seatStatus = ref(false);
|
|
36075
36084
|
const showCallPopup = ref(false);
|
|
@@ -36513,7 +36522,10 @@ const _sfc_main = {
|
|
|
36513
36522
|
ref_key: "callPluginRef",
|
|
36514
36523
|
ref: callPluginRef
|
|
36515
36524
|
}, [
|
|
36516
|
-
createVNode(_component_el_config_provider, {
|
|
36525
|
+
createVNode(_component_el_config_provider, {
|
|
36526
|
+
locale: unref(zhCn),
|
|
36527
|
+
namespace: "kiwi"
|
|
36528
|
+
}, {
|
|
36517
36529
|
default: withCtx(() => [
|
|
36518
36530
|
showSeatStatus_.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
36519
36531
|
createBaseVNode("div", {
|
|
@@ -36997,6 +37009,7 @@ class CallPluginWrapper {
|
|
|
36997
37009
|
// employeeID: '',
|
|
36998
37010
|
// env: 'test',
|
|
36999
37011
|
// maskPhoneNumber: false,
|
|
37012
|
+
// deployBaseURL: '',
|
|
37000
37013
|
// token: '',
|
|
37001
37014
|
},
|
|
37002
37015
|
// 外呼初始化参数
|