@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 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 _0x3329c0 = _0x2deb;
34549
- (function(_0x29a3dd, _0x101ee6) {
34550
- const _0x950cc5 = _0x2deb, _0x2579b4 = _0x29a3dd();
34552
+ const _0x15a666 = _0x3e0d;
34553
+ (function(_0x3af6fe, _0x12136b) {
34554
+ const _0x1a20aa = _0x3e0d, _0x327053 = _0x3af6fe();
34551
34555
  while (!![]) {
34552
34556
  try {
34553
- const _0x40a6cc = -parseInt(_0x950cc5(488)) / 1 + -parseInt(_0x950cc5(600)) / 2 + -parseInt(_0x950cc5(541)) / 3 + parseInt(_0x950cc5(366)) / 4 * (-parseInt(_0x950cc5(423)) / 5) + -parseInt(_0x950cc5(682)) / 6 * (-parseInt(_0x950cc5(602)) / 7) + parseInt(_0x950cc5(538)) / 8 + parseInt(_0x950cc5(426)) / 9;
34554
- if (_0x40a6cc === _0x101ee6) break;
34555
- else _0x2579b4["push"](_0x2579b4["shift"]());
34556
- } catch (_0x31c7ed) {
34557
- _0x2579b4["push"](_0x2579b4["shift"]());
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
- })(_0x5e5f, 568107);
34561
- var q = Object[_0x3329c0(420)], J = (_0x2751a9, _0x11e63e, _0x2c98ea) => _0x11e63e in _0x2751a9 ? q(_0x2751a9, _0x11e63e, { "enumerable": true, "configurable": true, "writable": true, "value": _0x2c98ea }) : _0x2751a9[_0x11e63e] = _0x2c98ea, K = (_0x2e4c58, _0x5e242c, _0x243181) => J(_0x2e4c58, typeof _0x5e242c != _0x3329c0(535) ? _0x5e242c + "" : _0x5e242c, _0x243181);
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(_0xfa331e, _0x21ff92) {
34564
- const _0x4a50e9 = _0x3329c0;
34565
- this[_0x4a50e9(495)] = new AudioContext({ "sampleRate": 8e3 });
34566
- let _0x21ca48 = this[_0x4a50e9(495)]["createMediaStreamSource"](_0xfa331e), _0x28d347 = this[_0x4a50e9(495)][_0x4a50e9(479)](2048, 1, 1);
34567
- const _0x5eb051 = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
34568
- const _0x44a245 = _0x4a50e9;
34569
- this[_0x44a245(491)] = [], this[_0x44a245(658)] = 0;
34570
- }, "input": function(_0x26530e) {
34571
- const _0x1b33fa = _0x4a50e9;
34572
- this[_0x1b33fa(491)][_0x1b33fa(527)](new Float32Array(_0x26530e)), this[_0x1b33fa(658)] += _0x26530e["length"];
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 _0x14f2e1 = _0x4a50e9;
34575
- for (var _0x58fe78 = new Float32Array(this[_0x14f2e1(658)]), _0x51c66e = 0, _0x250c1c = 0; _0x250c1c < this[_0x14f2e1(491)][_0x14f2e1(680)]; _0x250c1c++) _0x58fe78[_0x14f2e1(379)](this[_0x14f2e1(491)][_0x250c1c], _0x51c66e), _0x51c66e += this[_0x14f2e1(491)][_0x250c1c]["length"];
34576
- for (var _0x21ffa5 = parseInt(String(this["inputSampleRate"] / this[_0x14f2e1(662)])), _0xcbd096 = _0x58fe78[_0x14f2e1(680)] / _0x21ffa5, _0x908ee1 = new Float32Array(_0xcbd096), _0x4fdb30 = 0, _0x41ce0d = 0; _0x4fdb30 < _0xcbd096; ) _0x908ee1[_0x4fdb30] = _0x58fe78[_0x41ce0d], _0x41ce0d += _0x21ffa5, _0x4fdb30++;
34577
- return _0x908ee1;
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 _0x589937 = _0x4a50e9;
34580
- for (var _0x47a1e2 = Math[_0x589937(567)](this[_0x589937(686)], this["outputSampleBits"]), _0x395b1e = this[_0x589937(470)](), _0x10aafc = _0x395b1e["length"] * (_0x47a1e2 / 8), _0x5e73cb = new ArrayBuffer(_0x10aafc), _0x1717ac = new DataView(_0x5e73cb), _0x2acb97 = 0, _0x35eef5 = 0; _0x35eef5 < _0x395b1e[_0x589937(680)]; _0x35eef5++, _0x2acb97 += 2) {
34581
- var _0x446c4b = Math[_0x589937(656)](-1, Math[_0x589937(567)](1, _0x395b1e[_0x35eef5]));
34582
- _0x1717ac["setInt16"](_0x2acb97, _0x446c4b < 0 ? _0x446c4b * 32768 : _0x446c4b * 32767, true);
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([_0x1717ac]);
34595
+ return new Blob([_0x19201c]);
34585
34596
  } };
34586
- var _0x33c3a8 = function() {
34587
- const _0x596a37 = _0x4a50e9;
34588
- var _0x2eec46 = new FileReader();
34589
- _0x2eec46[_0x596a37(679)] = (_0x358ab3) => {
34590
- const _0x45557b = _0x596a37;
34591
- if (!(!_0x358ab3[_0x45557b(506)] || !v)) {
34592
- var _0x34614b = _0x358ab3[_0x45557b(506)]["result"];
34593
- if (!(!_0x34614b || typeof _0x34614b == _0x45557b(649))) {
34594
- var _0x4dec92 = new Int16Array(_0x34614b);
34595
- _0x21ff92(_0x4dec92);
34596
- }
34597
- }
34598
- }, _0x2eec46[_0x596a37(671)](_0x5eb051[_0x596a37(384)]()), _0x5eb051[_0x596a37(622)]();
34599
- };
34600
- this[_0x4a50e9(405)] = function() {
34601
- const _0x5812cc = _0x4a50e9;
34602
- v = true, _0x21ca48[_0x5812cc(637)](_0x28d347), _0x28d347[_0x5812cc(637)](this["context"][_0x5812cc(469)]);
34603
- }, this[_0x4a50e9(592)] = function() {
34604
- const _0x3f670d = _0x4a50e9;
34605
- v = false, _0xfa331e[_0x3f670d(631)]()[_0x3f670d(389)]((_0x45aa79) => _0x45aa79[_0x3f670d(592)]()), _0x28d347 && (_0x28d347[_0x3f670d(368)] = null, _0x28d347["disconnect"]()), _0x21ca48 && _0x21ca48[_0x3f670d(400)](), this["context"] && this["context"]["close"](), _0x28d347 = null, _0x21ca48 = null, this["context"] = null;
34606
- }, this[_0x4a50e9(687)] = function() {
34607
- return _0x5eb051["encodePCM"]();
34608
- }, this["clear"] = function() {
34609
- const _0x1ea919 = _0x4a50e9;
34610
- _0x5eb051[_0x1ea919(622)](), this[_0x1ea919(495)] && (this[_0x1ea919(495)]["close"](), this[_0x1ea919(495)] = null);
34611
- }, _0x28d347[_0x4a50e9(368)] = function(_0x17bd86) {
34612
- const _0x2bcb6d = _0x4a50e9;
34613
- if (!(!v || !this[_0x2bcb6d(495)] || this[_0x2bcb6d(495)]["state"] === _0x2bcb6d(650))) {
34614
- var _0x1bd5ce = _0x17bd86[_0x2bcb6d(570)]["getChannelData"](0);
34615
- _0x5eb051["input"](_0x1bd5ce), _0x33c3a8();
34616
- }
34617
- };
34618
- }, U = (_0xe44417) => {
34619
- const _0x1b5904 = _0x3329c0;
34620
- switch (_0xe44417[_0x1b5904(383)] || _0xe44417[_0x1b5904(489)]) {
34621
- case _0x1b5904(500):
34622
- case _0x1b5904(646):
34623
- return _0x1b5904(534);
34624
- case _0x1b5904(412):
34625
- case _0x1b5904(474):
34626
- return _0x1b5904(633);
34627
- case _0x1b5904(417):
34628
- case _0x1b5904(454):
34629
- return "无法发现指定的硬件设备。";
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 _0x1b5904(556) + _0xe44417;
34643
+ return _0x10f7c2(561) + _0x9b8933;
34632
34644
  }
34633
- }, Y = () => !navigator["mediaDevices"] || !navigator[_0x3329c0(624)][_0x3329c0(580)] ? (console["log"](_0x3329c0(394)), false) : true;
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 _0x69ba7f = _0x3329c0;
34648
+ const _0x3574b7 = _0x15a666;
34637
34649
  I();
34638
- let _0x2704ca = "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3";
34639
- h = new Audio(_0x2704ca), h[_0x69ba7f(544)](_0x69ba7f(666), (_0x49ccbe) => {
34640
- const _0x1024a6 = _0x69ba7f;
34641
- console[_0x1024a6(645)](_0x1024a6(666), _0x49ccbe);
34642
- }), h["addEventListener"]("ended", () => {
34643
- const _0x27b4e7 = _0x69ba7f;
34644
- h[_0x27b4e7(494)](), console[_0x27b4e7(645)](_0x27b4e7(550));
34645
- }), h[_0x69ba7f(494)]();
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 _0x2c220b = _0x3329c0;
34648
- h && (console[_0x2c220b(645)](_0x2c220b(565)), h[_0x2c220b(391)](), h = "");
34659
+ const _0x3ec2db = _0x15a666;
34660
+ h && (console[_0x3ec2db(292)]("停止响铃"), h["pause"](), h = "");
34649
34661
  }, Q = () => {
34650
- const _0x16d8ab = _0x3329c0;
34651
- let _0x498c99 = "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3";
34652
- const _0x27567f = new Audio(_0x498c99);
34653
- _0x27567f["addEventListener"]("error", (_0x1bbd97) => {
34654
- console["log"]("error", _0x1bbd97);
34655
- }), _0x27567f["addEventListener"](_0x16d8ab(436), () => {
34656
- const _0x3e2add = _0x16d8ab;
34657
- _0x27567f[_0x3e2add(391)]();
34658
- }), _0x27567f[_0x16d8ab(494)]();
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 _0x4ce098 = _0x3329c0;
34661
- let _0x12f153 = _0x4ce098(632);
34662
- const _0x1c122e = new Audio(_0x12f153);
34663
- _0x1c122e[_0x4ce098(544)](_0x4ce098(666), (_0x24ecbe) => {
34664
- const _0x12d467 = _0x4ce098;
34665
- console["log"](_0x12d467(666), _0x24ecbe);
34666
- }), _0x1c122e[_0x4ce098(544)](_0x4ce098(436), () => {
34667
- _0x1c122e["pause"]();
34668
- }), _0x1c122e[_0x4ce098(494)]();
34669
- }, W = (_0x3bc4b4, _0x29719) => {
34670
- const _0x3e4389 = _0x3329c0;
34671
- navigator[_0x3e4389(624)]["getUserMedia"]({ "audio": {} })[_0x3e4389(641)]((_0x2f0ca6) => {
34672
- const _0x1aa229 = _0x3e4389;
34673
- _0x3bc4b4 && _0x3bc4b4(), _0x2f0ca6[_0x1aa229(631)]()[_0x1aa229(389)]((_0x19e2a5) => _0x19e2a5["stop"]());
34674
- })[_0x3e4389(508)]((_0xb8d49) => {
34675
- const _0x54dd76 = U(_0xb8d49);
34676
- _0x29719 && _0x29719({ "errMsg": _0x54dd76 });
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["random"]() * 1e7)["toString"](16)[_0x3329c0(416)](0, 4) + "-" + (/* @__PURE__ */ new Date())["getTime"]() + "-" + Math[_0x3329c0(576)]()[_0x3329c0(528)]()[_0x3329c0(416)](2, 5);
34679
- function Z(_0x54c9f6) {
34680
- const _0x1841d4 = _0x3329c0;
34681
- let _0x35fada;
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
- _0x35fada = JSON["parse"](atob(_0x54c9f6[_0x1841d4(392)](".")[1]))[_0x1841d4(660)];
34696
+ _0x5aa69d = JSON[_0x35e1f2(353)](atob(_0x5dd679["split"](".")[1]))[_0x35e1f2(365)];
34684
34697
  } catch {
34685
- _0x35fada = 0;
34686
- }
34687
- return _0x35fada > Date[_0x1841d4(401)]() / 1e3;
34688
- }
34689
- const X = (_0x95d264) => _0x95d264["replace"](new RegExp(/(\d{3})\d*(\d{4})/), _0x3329c0(683)), $ = (_0x1e9aab) => _0x1e9aab === "test" ? "//api.kiwi.tuotoo.org" : _0x3329c0(375), E = (_0x55ac59, _0x217dfd) => {
34690
- const _0x4aa6b1 = _0x3329c0;
34691
- let _0x1d3cc5 = _0x55ac59;
34692
- _0x1d3cc5[_0x4aa6b1(690)] = JSON[_0x4aa6b1(702)]({ "ts": ee(), "type": "pc", "extra": _0x55ac59[_0x4aa6b1(690)] });
34693
- const _0xde42a9 = new XMLHttpRequest();
34694
- _0xde42a9[_0x4aa6b1(663)](_0x4aa6b1(529), _0x4aa6b1(525) + $(_0x217dfd) + _0x4aa6b1(559), true), _0xde42a9["setRequestHeader"](_0x4aa6b1(694), _0x4aa6b1(453)), _0xde42a9[_0x4aa6b1(422)] = function() {
34695
- const _0x399dda = _0x4aa6b1;
34696
- _0xde42a9[_0x399dda(458)] === 4 && _0xde42a9[_0x399dda(603)];
34697
- };
34698
- let _0x2c3217 = "";
34699
- for (const _0x43b049 in _0x1d3cc5) _0x2c3217 += _0x43b049 + "=" + encodeURIComponent(_0x1d3cc5[_0x43b049]) + "&";
34700
- _0xde42a9[_0x4aa6b1(555)](_0x2c3217[_0x4aa6b1(590)](0, -1));
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 _0x1ef1a9 = _0x3329c0, _0x4cea13 = /* @__PURE__ */ new Date(), _0x21af4c = _0x4cea13[_0x1ef1a9(558)](), _0x591ef1 = ("0" + (_0x4cea13[_0x1ef1a9(638)]() + 1))["slice"](-2), _0x32ddd0 = ("0" + _0x4cea13[_0x1ef1a9(597)]())[_0x1ef1a9(590)](-2), _0x29fb8f = ("0" + _0x4cea13[_0x1ef1a9(672)]())[_0x1ef1a9(590)](-2), _0x1802e8 = ("0" + _0x4cea13["getMinutes"]())[_0x1ef1a9(590)](-2), _0x399540 = ("0" + _0x4cea13[_0x1ef1a9(482)]())[_0x1ef1a9(590)](-2), _0x3bc477 = ("00" + _0x4cea13[_0x1ef1a9(621)]())[_0x1ef1a9(590)](-3);
34703
- return _0x21af4c + "/" + _0x591ef1 + "/" + _0x32ddd0 + " " + _0x29fb8f + ":" + _0x1802e8 + ":" + _0x399540 + "." + _0x3bc477;
34704
- };
34705
- function g(_0x1c2dd5) {
34706
- const _0x5ccbf8 = _0x3329c0;
34707
- this[_0x5ccbf8(517)](_0x1c2dd5);
34708
- }
34709
- g["prototype"]["init"] = function(_0x24bd1a) {
34710
- const _0x2734fb = _0x3329c0;
34711
- var _0x5630c5 = { "encoding": _0x2734fb(526), "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
34712
- this[_0x2734fb(388)] = Object["assign"]({}, _0x5630c5, _0x24bd1a), this[_0x2734fb(689)] = new Float32Array(), this[_0x2734fb(363)] = this[_0x2734fb(363)][_0x2734fb(403)](this), this[_0x2734fb(430)] = setInterval(this["flush"], this[_0x2734fb(388)][_0x2734fb(464)]), this[_0x2734fb(665)] = this[_0x2734fb(520)](), this[_0x2734fb(610)] = this[_0x2734fb(357)](), this[_0x2734fb(447)]();
34713
- }, g[_0x3329c0(511)][_0x3329c0(520)] = function() {
34714
- const _0x3f2b1e = _0x3329c0;
34715
- var _0x205c71 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
34716
- return _0x205c71[this[_0x3f2b1e(388)][_0x3f2b1e(605)]] ? _0x205c71[this[_0x3f2b1e(388)]["encoding"]] : _0x205c71[_0x3f2b1e(526)];
34717
- }, g[_0x3329c0(511)][_0x3329c0(357)] = function() {
34718
- const _0xb65fe8 = _0x3329c0;
34719
- var _0x15da79 = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
34720
- return _0x15da79[this["option"][_0xb65fe8(605)]] ? _0x15da79[this[_0xb65fe8(388)][_0xb65fe8(605)]] : _0x15da79[_0xb65fe8(526)];
34721
- }, g["prototype"][_0x3329c0(447)] = function() {
34722
- const _0x14da06 = _0x3329c0;
34723
- this["audioCtx"] = new (window["AudioContext"] || window[_0x14da06(700)])(), this["gainNode"] = this[_0x14da06(606)][_0x14da06(503)](), this[_0x14da06(644)][_0x14da06(560)][_0x14da06(449)] = 1, this[_0x14da06(644)]["connect"](this["audioCtx"]["destination"]), this[_0x14da06(460)] = this[_0x14da06(606)]["currentTime"];
34724
- }, g[_0x3329c0(511)][_0x3329c0(473)] = function(_0x9532ac) {
34725
- const _0x55dd16 = _0x3329c0;
34726
- return _0x9532ac[_0x55dd16(685)] && _0x9532ac[_0x55dd16(491)] && _0x9532ac["buffer"][_0x55dd16(516)] == ArrayBuffer;
34727
- }, g[_0x3329c0(511)][_0x3329c0(365)] = function(_0x5c93a4) {
34728
- const _0x187522 = _0x3329c0;
34729
- if (this[_0x187522(473)](_0x5c93a4)) {
34730
- _0x5c93a4 = this["getFormatedValue"](_0x5c93a4);
34731
- var _0x3beb03 = new Float32Array(this[_0x187522(689)]["length"] + _0x5c93a4["length"]);
34732
- _0x3beb03[_0x187522(379)](this[_0x187522(689)], 0), _0x3beb03[_0x187522(379)](_0x5c93a4, this[_0x187522(689)][_0x187522(680)]), this[_0x187522(689)] = _0x3beb03;
34733
- }
34734
- }, g["prototype"][_0x3329c0(681)] = function(_0x25ac32) {
34735
- const _0x1875e8 = _0x3329c0;
34736
- var _0x25ac32 = new this[_0x1875e8(610)](_0x25ac32[_0x1875e8(491)]), _0x4a73da = new Float32Array(_0x25ac32[_0x1875e8(680)]), _0x5f4530;
34737
- for (_0x5f4530 = 0; _0x5f4530 < _0x25ac32[_0x1875e8(680)]; _0x5f4530++) _0x4a73da[_0x5f4530] = _0x25ac32[_0x5f4530] / this["maxValue"];
34738
- return _0x4a73da;
34739
- }, g[_0x3329c0(511)][_0x3329c0(664)] = function(_0x4beb7d) {
34740
- const _0x4bfee2 = _0x3329c0;
34741
- this[_0x4bfee2(644)][_0x4bfee2(560)]["value"] = _0x4beb7d;
34742
- }, g[_0x3329c0(511)]["destroy"] = function() {
34743
- const _0x148844 = _0x3329c0;
34744
- this[_0x148844(430)] && clearInterval(this["interval"]), this["samples"] = null, this["audioCtx"] && this[_0x148844(606)]["close"](), this[_0x148844(606)] = null;
34745
- }, g[_0x3329c0(511)][_0x3329c0(363)] = function() {
34746
- const _0x5395fc = _0x3329c0;
34747
- if (this[_0x5395fc(689)]["length"]) {
34748
- var _0x293a4e = this[_0x5395fc(606)][_0x5395fc(540)](), _0x5642ac = this["samples"]["length"] / this[_0x5395fc(388)]["channels"], _0x388832 = this[_0x5395fc(606)][_0x5395fc(675)](this[_0x5395fc(388)][_0x5395fc(456)], _0x5642ac, this[_0x5395fc(388)][_0x5395fc(510)]), _0x19639c, _0x40dc6a, _0x33c0e4, _0x1f3791, _0x673ea4;
34749
- for (_0x40dc6a = 0; _0x40dc6a < this["option"][_0x5395fc(456)]; _0x40dc6a++) for (_0x19639c = _0x388832[_0x5395fc(701)](_0x40dc6a), _0x33c0e4 = _0x40dc6a, _0x673ea4 = 50, _0x1f3791 = 0; _0x1f3791 < _0x5642ac; _0x1f3791++) _0x19639c[_0x1f3791] = this["samples"][_0x33c0e4], _0x1f3791 < 50 && (_0x19639c[_0x1f3791] = _0x19639c[_0x1f3791] * _0x1f3791 / 50), _0x1f3791 >= _0x5642ac - 51 && (_0x19639c[_0x1f3791] = _0x19639c[_0x1f3791] * _0x673ea4-- / 50), _0x33c0e4 += this[_0x5395fc(388)][_0x5395fc(456)];
34750
- this["startTime"] < this[_0x5395fc(606)][_0x5395fc(532)] && (this[_0x5395fc(460)] = this[_0x5395fc(606)][_0x5395fc(532)]), _0x293a4e[_0x5395fc(491)] = _0x388832, _0x293a4e[_0x5395fc(637)](this[_0x5395fc(644)]), _0x293a4e[_0x5395fc(405)](this[_0x5395fc(460)]), this[_0x5395fc(460)] += _0x388832[_0x5395fc(443)], this[_0x5395fc(689)] = new Float32Array();
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(_0x53fd5a) {
34756
- const _0x5c3175 = _0x3329c0;
34757
- let _0x159c0d = "";
34768
+ function j(_0x5804cd) {
34769
+ const _0x845e68 = _0x15a666;
34770
+ let _0x59b86b = "";
34758
34771
  try {
34759
- _0x159c0d = JSON["stringify"](_0x53fd5a);
34760
- } catch (_0x2c1287) {
34761
- console[_0x5c3175(645)](_0x5c3175(418), _0x2c1287);
34762
- }
34763
- return _0x159c0d;
34764
- }
34765
- function _0x2deb(_0x405dda, _0x223a01) {
34766
- const _0x5e5f6a = _0x5e5f();
34767
- return _0x2deb = function(_0x2deb65, _0x167460) {
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 _0x5c7802 = _0x3329c0;
34785
- return t[_0x5c7802(382)][_0x5c7802(596)]((_0x5f407c) => _0x5f407c["kind"] === _0x5c7802(407));
34782
+ const _0x1f2932 = _0x15a666;
34783
+ return t["mediaDevice"]["filter"]((_0x4421db) => _0x4421db["kind"] === _0x1f2932(556));
34786
34784
  }, "getterSeatCurrentDeviceInfoInputID"() {
34787
- const _0x378bf9 = _0x3329c0;
34788
- return t[_0x378bf9(642)] ? t[_0x378bf9(642)][_0x378bf9(574)] : "";
34785
+ const _0x18a11c = _0x15a666;
34786
+ return t[_0x18a11c(411)] ? t[_0x18a11c(411)]["deviceId"] : "";
34789
34787
  }, "getterSeatCurrentDeviceInfoOutputID"() {
34790
- const _0x4563df = _0x3329c0;
34791
- return t[_0x4563df(370)] ? t[_0x4563df(370)][_0x4563df(574)] : "";
34792
- }, "getterSeatCurrentPhoneRingAudio"(_0x48a8c8) {
34793
- return _0x48a8c8["phoneRingAudio"];
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 _0x1c1a15 = _0x3329c0;
34796
- return t[_0x1c1a15(553)] ? t[_0x1c1a15(553)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34794
+ const _0x5ba32b = _0x15a666;
34795
+ return t[_0x5ba32b(350)] ? t[_0x5ba32b(350)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34797
34796
  }, "getterSeatConnectInfo"() {
34798
- const _0x5e9519 = _0x3329c0;
34799
- return t[_0x5e9519(513)] ? t[_0x5e9519(513)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34797
+ const _0x300baf = _0x15a666;
34798
+ return t["connectInfo"] ? t[_0x300baf(570)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34800
34799
  }, "getterSeatIsRinging"() {
34801
- const _0x1758a5 = _0x3329c0;
34802
- return t["callingStage"] === _0x1758a5(374);
34800
+ const _0x4efe3d = _0x15a666;
34801
+ return t[_0x4efe3d(266)] === _0x4efe3d(290);
34803
34802
  }, "getterSeatIsConnected"() {
34804
- const _0x41808e = _0x3329c0;
34805
- return t["callingStage"] === _0x41808e(625);
34803
+ const _0x103f0c = _0x15a666;
34804
+ return t[_0x103f0c(266)] === _0x103f0c(452);
34806
34805
  }, "getterSeatIsHangup"() {
34807
- const _0x243e1e = _0x3329c0;
34808
- return t[_0x243e1e(409)] === _0x243e1e(562);
34806
+ const _0x5da66f = _0x15a666;
34807
+ return t["callingStage"] === _0x5da66f(462);
34809
34808
  }, "getterSeatStatus"() {
34810
- const _0x127e49 = _0x3329c0;
34811
- return t[_0x127e49(581)];
34809
+ const _0x5ed307 = _0x15a666;
34810
+ return t[_0x5ed307(468)];
34812
34811
  }, "getterSeatCanCallout"() {
34813
- const _0x54b611 = _0x3329c0;
34814
- return t[_0x54b611(603)] === _0x54b611(625);
34812
+ const _0x29723d = _0x15a666;
34813
+ return t[_0x29723d(273)] === "connected";
34815
34814
  }, "getterSeatBotStatus"() {
34816
- const _0x52df3a = _0x3329c0;
34817
- return t[_0x52df3a(439)];
34815
+ return t["botStatus"];
34818
34816
  }, "getterSeatRecordsData"() {
34819
- return t["recordsData"];
34817
+ const _0x19b0e2 = _0x15a666;
34818
+ return t[_0x19b0e2(308)];
34820
34819
  }, "getterSeatOnceCall"() {
34821
- const _0x4a68e9 = _0x3329c0;
34822
- return t[_0x4a68e9(509)];
34820
+ const _0x100a36 = _0x15a666;
34821
+ return t[_0x100a36(286)];
34823
34822
  }, "getterAIToSeat"() {
34824
- return t["aiToSeat"];
34823
+ const _0x669507 = _0x15a666;
34824
+ return t[_0x669507(456)];
34825
34825
  }, "getterSeatCallOnceStage"() {
34826
- const _0x3852ba = _0x3329c0;
34827
- return t[_0x3852ba(629)];
34826
+ const _0x279ae0 = _0x15a666;
34827
+ return t[_0x279ae0(386)];
34828
34828
  }, "getterSeatCallingStage"() {
34829
- return t["callingStage"];
34829
+ const _0x547383 = _0x15a666;
34830
+ return t[_0x547383(266)];
34830
34831
  } };
34831
34832
  let P = false, k = "";
34832
- const i = { "actionSeatInitVoiceWSInstance": (_0xb49109) => {
34833
- const _0xc6915e = _0x3329c0;
34834
- t["voiceInstance"] && (console[_0xc6915e(645)](_0xc6915e(396), t[_0xc6915e(434)]), t[_0xc6915e(434)][_0xc6915e(468)](1e3));
34835
- const _0x142505 = new WebSocket(_0xb49109[_0xc6915e(367)]);
34836
- _0x142505["binaryType"] = _0xc6915e(373), _0x142505["onopen"] = () => {
34837
- const _0x24d541 = _0xc6915e;
34838
- l[_0x24d541(369)]({ "key": _0x24d541(439), "status": _0x24d541(625) });
34839
- }, _0x142505["onmessage"] = (_0x433de0) => {
34840
- const _0x5778a7 = _0xc6915e;
34841
- if (typeof _0x433de0[_0x5778a7(695)] == _0x5778a7(634)) {
34842
- t[_0x5778a7(509)] && I(), l["SEAT_PLAY_AUDIO"]({ "type": _0x5778a7(616), "value": _0x433de0["data"], "outputID": m[_0x5778a7(653)]() });
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 _0xdc5040 = JSON[_0x5778a7(667)](_0x433de0[_0x5778a7(695)]);
34846
- if (_0xdc5040["Code"] !== 0) {
34847
- i[_0x5778a7(546)](_0x5778a7(480), _0xdc5040[_0x5778a7(697)]);
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 (_0xdc5040[_0x5778a7(648)]) {
34851
- case _0x5778a7(542):
34852
- l[_0x5778a7(369)]({ "key": _0x5778a7(439), "status": "connected" }), i[_0x5778a7(549)]({ "type": _0x5778a7(354), "wsType": "VoiceFromOther" });
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
- }, _0x142505[_0xc6915e(598)] = () => {
34856
- const _0x343de8 = _0xc6915e;
34857
- l[_0x343de8(613)](""), l["SEAT_UPDATE_WEBSOCKET_STATUS"]({ "key": "botStatus", "status": _0x343de8(650) });
34858
- }, _0x142505["onerror"] = () => {
34859
- const _0xc69c89 = _0xc6915e;
34860
- console["log"]("actionSeatInitVoiceWSInstance异常"), [_0xc69c89(374), _0xc69c89(625)][_0xc69c89(415)](t[_0xc69c89(409)]) > -1 && l[_0xc69c89(522)]({ "Type": _0xc69c89(561), "Data": {}, "Code": 0, "Msg": "" + (t["aiToSeat"] ? _0xc69c89(582) : t["onceCall"] ? _0xc69c89(381) : ""), "TaskID": "" });
34861
- }, l[_0xc6915e(613)](_0x142505);
34862
- }, "actionSeatInitWSInstance": (_0x2f62f6) => {
34863
- const _0x460d7a = _0x3329c0;
34864
- if (t[_0x460d7a(566)]) {
34865
- console[_0x460d7a(645)](_0x460d7a(569)), i["instanceClose"](), P = true;
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(_0x2f62f6);
34869
+ G(_0x2303e5);
34869
34870
  }, async "actionSeatTestEquipment"() {
34870
- const _0x13cfb1 = _0x3329c0;
34871
- if (l[_0x13cfb1(678)](), !Y()) {
34872
- i[_0x13cfb1(546)]("Error", _0x13cfb1(394));
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 _0x566702 = await navigator[_0x13cfb1(624)]["getUserMedia"]({ "audio": { "advanced": [{ "deviceId": m[_0x13cfb1(578)]() }] } });
34877
- return l[_0x13cfb1(390)]({ "type": _0x13cfb1(571), "value": _0x566702, "outputID": m["getterSeatCurrentDeviceInfoOutputID"]() }), navigator[_0x13cfb1(624)]["enumerateDevices"]();
34878
- } catch (_0x886d7e) {
34879
- U(_0x886d7e);
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 _0x186083 = _0x3329c0;
34883
+ const _0x3cbabc = _0x15a666;
34883
34884
  try {
34884
- k = new g({ "encoding": _0x186083(526), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34885
- } catch (_0x31335a) {
34886
- console[_0x186083(645)](_0x31335a);
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 _0x4863c7 = _0x3329c0;
34890
+ const _0x596953 = _0x15a666;
34890
34891
  if (!Y()) {
34891
- i[_0x4863c7(546)](_0x4863c7(480), _0x4863c7(394));
34892
+ i[_0x596953(399)]("Error", _0x596953(533));
34892
34893
  return;
34893
34894
  }
34894
34895
  try {
34895
- t["recorder"] && t[_0x4863c7(684)][_0x4863c7(622)]();
34896
- const _0x4b4fc9 = await navigator[_0x4863c7(624)][_0x4863c7(580)]({ "audio": { "advanced": [{ "deviceId": m[_0x4863c7(578)]() }] } });
34897
- t[_0x4863c7(684)] = new z(_0x4b4fc9, (_0xc8d170) => {
34898
- const _0x2eb8df = _0x4863c7;
34899
- i[_0x2eb8df(523)](_0xc8d170);
34900
- }), t[_0x4863c7(684)][_0x4863c7(405)]();
34901
- } catch (_0x4b0c80) {
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 _0x2ce7c0 = _0x3329c0;
34906
- i["actionSeatInitWSInstance"]({ "url": _0x2ce7c0(501) + $(n["env"]) + _0x2ce7c0(669) + n[_0x2ce7c0(545)] + "/seat/call/" + n["employeeID"] + _0x2ce7c0(448) + n[_0x2ce7c0(408)] + "&needKeepAlive=true" });
34907
- }, "actionSeatVoiceWS"(_0x4f8be4) {
34908
- const _0x478efe = _0x3329c0;
34909
- let _0x4d6ebe = "";
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
- _0x4d6ebe = (_0x4f8be4 && _0x4f8be4[_0x478efe(697)] ? JSON["parse"](_0x4f8be4[_0x478efe(697)]) : [])[_0x478efe(611)]((_0x492252) => !_0x492252[_0x478efe(557)](_0x478efe(505)));
34911
+ _0xda60b3 = (_0x4e81eb && _0x4e81eb[_0x3c9f1f(507)] ? JSON[_0x3c9f1f(353)](_0x4e81eb[_0x3c9f1f(507)]) : [])[_0x3c9f1f(328)]((_0x4d3a53) => !_0x4d3a53["includes"](_0x3c9f1f(463)));
34912
34912
  } catch {
34913
- _0x4d6ebe = _0x4f8be4 && _0x4f8be4[_0x478efe(697)];
34913
+ _0xda60b3 = _0x4e81eb && _0x4e81eb[_0x3c9f1f(507)];
34914
34914
  }
34915
- i[_0x478efe(393)]({ "url": _0x478efe(693) + _0x4d6ebe + _0x478efe(446) + (_0x4f8be4 && _0x4f8be4["Data"]["PlanID"]) });
34916
- }, "actionSeatSendVoice"(_0x2c036d) {
34917
- const _0x3341f9 = _0x3329c0;
34918
- l[_0x3341f9(471)](_0x2c036d);
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 _0x4adbec = _0x3329c0;
34920
+ const _0x415ead = _0x15a666;
34921
34921
  try {
34922
- const _0xc14e2b = await navigator[_0x4adbec(624)][_0x4adbec(496)]();
34923
- l[_0x4adbec(440)]({ "key": _0x4adbec(382), "value": _0xc14e2b }), console[_0x4adbec(645)]("devices", _0xc14e2b);
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[_0x4adbec(546)](_0x4adbec(480), _0x4adbec(404));
34926
- }
34927
- }, "actionSeatHandleIncoming"(_0x3348cc) {
34928
- const _0x4a1252 = _0x3329c0;
34929
- var _0x173413, _0x565155, _0x416250, _0x49accb, _0x2a5ca7, _0x144950;
34930
- const { type: _0x394d3b, data: _0xb68e6d, wsType: _0x3d897a } = _0x3348cc;
34931
- switch (_0x394d3b) {
34932
- case _0x4a1252(433):
34933
- l[_0x4a1252(522)]({ "Type": _0x4a1252(438), "Data": {}, "Code": 0, "Msg": "" + (t[_0x4a1252(493)] ? _0x4a1252(582) : t[_0x4a1252(509)] ? _0x4a1252(381) : ""), "TaskID": "" }), E({ "operatorID": n[_0x4a1252(421)], "key": n[_0x4a1252(462)][_0x4a1252(361)] || n[_0x4a1252(462)][_0x4a1252(507)] || ((_0x173413 = t[_0x4a1252(513)]) == null ? void 0 : _0x173413["Mobile"]) || "", "detail": { "base": _0x4a1252(674), "mobile": (_0x565155 = t[_0x4a1252(513)]) == null ? void 0 : _0x565155[_0x4a1252(361)], "planID": (_0x416250 = t["connectInfo"]) == null ? void 0 : _0x416250[_0x4a1252(507)], "isOnceCall": t[_0x4a1252(509)] } }, n[_0x4a1252(626)]);
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 _0x4a1252(655):
34936
- l["SEAT_SEND_MESSAGE"]({ "Type": _0x4a1252(485), "Data": {}, "Code": 0, "Msg": t["aiToSeat"] ? "TypeAIToSeat" : t[_0x4a1252(509)] ? "TypeCallOnce" : "", "TaskID": "" }), E({ "operatorID": n[_0x4a1252(421)], "key": n["callOptions"][_0x4a1252(361)] || n["callOptions"][_0x4a1252(507)] || ((_0x49accb = t[_0x4a1252(513)]) == null ? void 0 : _0x49accb[_0x4a1252(361)]) || "", "detail": { "base": _0x4a1252(551), "mobile": (_0x2a5ca7 = t[_0x4a1252(513)]) == null ? void 0 : _0x2a5ca7[_0x4a1252(361)], "planID": (_0x144950 = t[_0x4a1252(513)]) == null ? void 0 : _0x144950[_0x4a1252(507)], "isOnceCall": t["onceCall"] } }, n[_0x4a1252(626)]);
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 _0x4a1252(425):
34939
- l[_0x4a1252(522)]({ "Type": _0x4a1252(537), "Data": {}, "Code": 0, "Msg": "" + (t[_0x4a1252(493)] ? _0x4a1252(582) : t["onceCall"] ? "TypeCallOnce" : ""), "TaskID": "" });
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 _0x4a1252(586):
34942
- l[_0x4a1252(522)]({ "Type": _0x4a1252(588), "Data": _0xb68e6d, "Code": 0, "Msg": _0x4a1252(381), "TaskID": "" });
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 _0x4a1252(628):
34945
- l[_0x4a1252(522)]({ "Type": _0x4a1252(628), "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34944
+ case _0x9d6d36(313):
34945
+ l["SEAT_SEND_MESSAGE"]({ "Type": _0x9d6d36(313), "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34946
34946
  break;
34947
- case "CallOnce":
34948
- console["log"]("呼叫参数", _0xb68e6d), l[_0x4a1252(522)]({ "Type": _0x4a1252(381), "Data": _0xb68e6d, "Code": 0, "Msg": "", "TaskID": "" }), l[_0x4a1252(440)]({ "key": _0x4a1252(553), "value": Object[_0x4a1252(498)]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0xb68e6d) }), E({ "operatorID": n[_0x4a1252(421)], "key": n[_0x4a1252(462)][_0x4a1252(361)] || n["callOptions"][_0x4a1252(507)] || "", "detail": { "base": _0x4a1252(487) } }, n[_0x4a1252(626)]);
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 _0x4a1252(354):
34951
- l[_0x4a1252(471)](j({ "Type": _0x3d897a, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34950
+ case _0x9d6d36(524):
34951
+ l[_0x9d6d36(573)](j({ "Type": _0x4b3ad7, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34952
34952
  break;
34953
- case "SendMsg":
34954
- l[_0x4a1252(522)](_0x4a1252(459));
34953
+ case _0x9d6d36(579):
34954
+ l["SEAT_SEND_MESSAGE"]("ping");
34955
34955
  break;
34956
- case _0x4a1252(386):
34957
- l[_0x4a1252(522)](_0xb68e6d);
34956
+ case _0x9d6d36(503):
34957
+ l[_0x9d6d36(272)](_0x43800f);
34958
34958
  break;
34959
34959
  }
34960
34960
  }, "instanceClose"() {
34961
- const _0x29f405 = _0x3329c0;
34962
- t[_0x29f405(566)] && (i[_0x29f405(457)](false), t[_0x29f405(566)]["close"](1e3), l[_0x29f405(440)]({ "key": _0x29f405(566), "value": "" }));
34963
- }, "actionSeatUpdatePhoneRingAudio"(_0x5c233e) {
34964
- l["SEAT_SET_PHONERINGAUDIO"](_0x5c233e);
34965
- }, "actionSeatReconnectWSAfterClosed"(_0xdb6360) {
34966
- const _0x5a30ba = _0x3329c0;
34967
- l[_0x5a30ba(440)]({ "key": _0x5a30ba(536), "value": _0xdb6360 });
34968
- }, "actionHandleCallBack"(_0x2c8b34, _0x4c1678, _0xf4eb3d = {}) {
34969
- const _0x530ff8 = _0x3329c0;
34970
- _0xf4eb3d["Mobile"] !== void 0 && (_0xf4eb3d[_0x530ff8(450)] = btoa(_0xf4eb3d[_0x530ff8(361)] || "")), _0xf4eb3d && _0xf4eb3d[_0x530ff8(361)] && n["maskPhoneNumber"] !== false && (_0xf4eb3d[_0x530ff8(361)] = X(_0xf4eb3d["Mobile"])), n[_0x530ff8(462)] && n["callOptions"][_0x530ff8(677)] && (_0xf4eb3d["OutPlanID"] = n[_0x530ff8(462)]["OutPlanID"]), n[_0x530ff8(462)] && n[_0x530ff8(462)][_0x530ff8(619)] && (_0xf4eb3d[_0x530ff8(619)] = n["callOptions"][_0x530ff8(619)]), n[_0x530ff8(385)] && n["onMessage"]({ "type": _0x2c8b34, "msg": _0x4c1678, "data": _0xf4eb3d });
34971
- } }, l = { "SEAT_SET_LIST"(_0x116c33) {
34972
- const _0x3adbc5 = _0x3329c0;
34973
- t[_0x3adbc5(548)] = _0x116c33;
34974
- }, "SEAT_SET_WS"(_0x28e508) {
34975
- const _0x58d14c = _0x3329c0;
34976
- t[_0x58d14c(566)] = _0x28e508;
34977
- }, "SEAT_SET_VoiceWS"(_0x1c6496) {
34978
- const _0x11401c = _0x3329c0;
34979
- t[_0x11401c(434)] = _0x1c6496;
34980
- }, "SEAT_SEND_MESSAGE"(_0x299bdc) {
34981
- const _0x38a777 = _0x3329c0;
34982
- t["status"] === _0x38a777(625) && t[_0x38a777(566)] && t[_0x38a777(566)][_0x38a777(555)](j(_0x299bdc));
34983
- }, "SEAT_SEND_RAW_MESSAGE"(_0x17a934) {
34984
- const _0x37d28f = _0x3329c0;
34985
- t[_0x37d28f(603)] === _0x37d28f(625) && t["voiceInstance"] && t["botStatus"] === "connected" && t[_0x37d28f(434)][_0x37d28f(555)](_0x17a934);
34986
- }, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x4aa9f4) {
34987
- const _0x53440f = _0x3329c0;
34988
- t[_0x4aa9f4["key"]] = _0x4aa9f4[_0x53440f(603)];
34989
- }, "SEAT_SAVE_KEY_VALUE"(_0x5c293b) {
34990
- const _0x47c7ed = _0x3329c0, { key: _0x8d6c87, value: _0xde4801 } = _0x5c293b;
34991
- t[_0x8d6c87] = _0xde4801, _0x8d6c87 === _0x47c7ed(409) && _0xde4801 === _0x47c7ed(562) && b(true);
34992
- }, "SEAT_PLAY_AUDIO"(_0x4d0842) {
34993
- const _0x1a1004 = _0x3329c0;
34994
- let { type: _0x2559af, value: _0x177bf4 } = _0x4d0842;
34995
- if (_0x2559af === _0x1a1004(571)) t[_0x1a1004(402)][_0x1a1004(571)] = _0x177bf4;
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 (_0x2559af === _0x1a1004(521)) t[_0x1a1004(402)][_0x1a1004(521)] = _0x177bf4;
34998
+ if (_0x48db1e === _0x4d9640(257)) t[_0x4d9640(471)][_0x4d9640(257)] = _0x9809d2;
34998
34999
  else {
34999
- if (_0x2559af === _0x1a1004(616)) {
35000
- k && k["feed"](new Int16Array(_0x177bf4));
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 _0x364e3c = _0x3329c0;
35007
- t[_0x364e3c(402)] && t[_0x364e3c(402)][_0x364e3c(391)](), t[_0x364e3c(402)]["srcObject"] = null, t["audio"][_0x364e3c(521)] = "", t[_0x364e3c(402)] = document[_0x364e3c(514)](_0x364e3c(402));
35008
- }, "SEAT_SET_PHONERINGAUDIO"(_0x14428f) {
35009
- const _0x329b44 = _0x3329c0;
35010
- t[_0x329b44(564)] = _0x14428f;
35011
- }, "SEAT_SET_RECORDSDATA"(_0x18ff19) {
35012
- const _0x27764d = _0x3329c0;
35013
- if (!_0x18ff19) return;
35014
- if ([_0x27764d(670)][_0x27764d(415)](_0x18ff19["Type"]) > -1) {
35015
- t[_0x27764d(595)] = [];
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 _0x4073db = [];
35019
- if (_0x18ff19[_0x27764d(648)] === "SeatConnectedResp" && _0x18ff19[_0x27764d(697)] === "TypeAIToSeat" && (t[_0x27764d(595)] = [], _0x4073db = (JSON["parse"](_0x18ff19[_0x27764d(478)][_0x27764d(608)])[_0x27764d(410)] || [])[_0x27764d(360)]((_0x558f5e) => Object[_0x27764d(498)]({}, _0x558f5e, { "ID": M() }))), t[_0x27764d(595)][_0x27764d(680)] === 0) {
35020
- const _0x297825 = { "ID": M(), "PlanID": _0x18ff19[_0x27764d(478)][_0x27764d(507)] ? _0x18ff19[_0x27764d(478)][_0x27764d(507)] : M(), "Messages": _0x18ff19["Type"] === _0x27764d(378) && _0x18ff19[_0x27764d(697)] === "TypeAIToSeat" ? _0x4073db : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x18ff19["Data"] && _0x18ff19[_0x27764d(478)]["Mobile"] ? _0x18ff19[_0x27764d(478)][_0x27764d(361)] : "", "Sip": "", "VoiceID": "", "CallAt": _0x18ff19[_0x27764d(478)] && _0x18ff19[_0x27764d(478)][_0x27764d(445)] ? _0x18ff19[_0x27764d(478)]["Time"] : /* @__PURE__ */ new Date() };
35021
- t[_0x27764d(595)] = [_0x297825];
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 _0x270529 = t["recordsData"][0][_0x27764d(410)][_0x27764d(680)] || 0, _0x2758a0 = { "ID": M(), "Index": _0x270529, "ProduceBy": _0x18ff19[_0x27764d(648)] === "CustomerSayText" ? "customer" : _0x18ff19[_0x27764d(648)] === _0x27764d(614) ? _0x27764d(647) : _0x27764d(585), "VoiceID": "", "VoiceText": _0x18ff19[_0x27764d(648)] === _0x27764d(614) ? _0x18ff19["Msg"] : _0x18ff19["Data"]["Text"], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": "0001-01-01T00:00:00Z", "Events": null, "CreatedAt": "0001-01-01T00:00:00Z", "DeletedAt": null };
35024
- (_0x18ff19["Type"] !== _0x27764d(378) && _0x18ff19[_0x27764d(648)] !== _0x27764d(614) && _0x18ff19[_0x27764d(478)][_0x27764d(608)] || _0x18ff19["Type"] === _0x27764d(614)) && t[_0x27764d(595)][0]["Messages"][_0x27764d(527)](_0x2758a0);
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(_0x1af666) {
35027
- const _0x47e515 = _0x3329c0, _0x6fa9b4 = new WebSocket(_0x1af666[_0x47e515(367)]);
35028
- _0x6fa9b4[_0x47e515(623)] = () => {
35029
- const _0x714905 = _0x47e515;
35030
- l["SEAT_UPDATE_WEBSOCKET_STATUS"]({ "key": _0x714905(603), "status": _0x714905(625) }), E({ "operatorID": n[_0x714905(421)], "key": n["callOptions"] && (n[_0x714905(462)]["Mobile"] || n["callOptions"]["PlanID"]) || "", "detail": { "base": "ws连接已建立" } }, n[_0x714905(626)]);
35031
- }, _0x6fa9b4[_0x47e515(673)] = (_0x4adf56) => {
35032
- const _0x1bdbe2 = _0x47e515;
35033
- var _0xbb8398, _0x3c2279, _0x55db80, _0x43b0dc, _0x514452, _0x182ec7, _0x20248e, _0x1851e8, _0x1cfadd, _0x22bc0e, _0x274189, _0x5bcead, _0x37b3ec, _0x3a0412, _0x360660, _0x118076, _0x2bca6c, _0x389974;
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 _0x4b8597 = JSON[_0x1bdbe2(667)](_0x4adf56[_0x1bdbe2(695)]);
35036
- switch (_0x4b8597[_0x1bdbe2(648)]) {
35037
- case _0x1bdbe2(542):
35038
- l[_0x1bdbe2(369)]({ "key": _0x1bdbe2(603), "status": "connected" }), l[_0x1bdbe2(698)](_0x6fa9b4), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(581), "value": { "IsOnline": true, "IsAutoAnswer": n[_0x1bdbe2(455)] } }), l[_0x1bdbe2(440)]({ "key": "reconnectCount", "value": 3 }), i["actionHandleCallBack"](_0x1bdbe2(635), "坐席上线成功"), n[_0x1bdbe2(466)] || i[_0x1bdbe2(549)]({ "type": _0x1bdbe2(387), "data": n["callOptions"] });
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 "WSConnectedReplace":
35041
- i[_0x1bdbe2(457)](false), i["actionHandleCallBack"](_0x1bdbe2(636), _0x1bdbe2(472));
35041
+ case _0x587772(368):
35042
+ i[_0x587772(517)](false), i[_0x587772(399)](_0x587772(374), _0x587772(511));
35042
35043
  break;
35043
- case _0x1bdbe2(668):
35044
- i["actionSeatReconnectWSAfterClosed"](false), i[_0x1bdbe2(546)](_0x1bdbe2(424), _0x1bdbe2(692)), b();
35044
+ case "SeatFailToReady":
35045
+ i[_0x587772(517)](false), i["actionHandleCallBack"](_0x587772(258), _0x587772(384)), b();
35045
35046
  break;
35046
- case _0x1bdbe2(465):
35047
- i[_0x1bdbe2(549)]({ "type": "SendPong", "data": { "TaskID": _0x4b8597[_0x1bdbe2(618)], "Type": _0x1bdbe2(399) } });
35047
+ case _0x587772(343):
35048
+ i["actionSeatHandleIncoming"]({ "type": _0x587772(503), "data": { "TaskID": _0x57504f[_0x587772(288)], "Type": _0x587772(461) } });
35048
35049
  break;
35049
- case "CallOnceRinging":
35050
- R(), l["SEAT_SAVE_KEY_VALUE"]({ "key": "aiToSeatVoiceUrl", "value": "" }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(629), "value": _0x1bdbe2(431) }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(553), "value": _0x4b8597[_0x1bdbe2(478)] }), i[_0x1bdbe2(546)](_0x1bdbe2(437), _0x1bdbe2(372), { "PlanID": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(507)], "Mobile": _0x4b8597["Data"][_0x1bdbe2(361)] }), t[_0x1bdbe2(509)] && (i[_0x1bdbe2(359)](), i["actionSeatVoiceWS"](_0x4b8597)), E({ "operatorID": n[_0x1bdbe2(421)], "key": ((_0xbb8398 = n[_0x1bdbe2(462)]) == null ? void 0 : _0xbb8398[_0x1bdbe2(361)]) || ((_0x3c2279 = n[_0x1bdbe2(462)]) == null ? void 0 : _0x3c2279[_0x1bdbe2(507)]), "detail": { "base": _0x1bdbe2(461), "mobile": (_0x55db80 = _0x4b8597[_0x1bdbe2(478)]) == null ? void 0 : _0x55db80[_0x1bdbe2(361)], "planID": (_0x43b0dc = _0x4b8597[_0x1bdbe2(478)]) == null ? void 0 : _0x43b0dc[_0x1bdbe2(507)] } }, n["env"]);
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 "SeatQualityNotice":
35053
- const _0x2209de = _0x4b8597[_0x1bdbe2(478)];
35054
- i[_0x1bdbe2(546)](_0x1bdbe2(691), _0x1bdbe2(442), { "PlanID": _0x4b8597["Data"][_0x1bdbe2(507)], "RuleName": _0x2209de[_0x1bdbe2(589)], "DictionaryName": _0x2209de[_0x1bdbe2(441)], "MatchKeyword": _0x2209de[_0x1bdbe2(583)] });
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 "Say":
35057
+ case _0x587772(259):
35057
35058
  break;
35058
- case _0x1bdbe2(524):
35059
- l[_0x1bdbe2(440)]({ "key": "callOnceStage", "value": Number(_0x4b8597["Code"]) === 203 ? _0x1bdbe2(699) : _0x1bdbe2(444) }), b(true), i["actionHandleCallBack"](Number(_0x4b8597[_0x1bdbe2(512)]) === 203 ? "InsufficientBalance" : "CallUnexpected", _0x4b8597[_0x1bdbe2(697)]), E({ "operatorID": n[_0x1bdbe2(421)], "key": n[_0x1bdbe2(462)][_0x1bdbe2(361)] || n[_0x1bdbe2(462)][_0x1bdbe2(507)] || "", "detail": { "base": _0x1bdbe2(643) + _0x4b8597[_0x1bdbe2(697)], "mobile": (_0x514452 = _0x4b8597["Data"]) == null ? void 0 : _0x514452[_0x1bdbe2(361)], "planID": (_0x182ec7 = _0x4b8597["Data"]) == null ? void 0 : _0x182ec7["PlanID"] } }, n[_0x1bdbe2(626)]);
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 _0x1bdbe2(378):
35062
- l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(513), "value": Object[_0x1bdbe2(498)]({}, _0x4b8597["Data"], { "CustomerID": t[_0x1bdbe2(513)] && t[_0x1bdbe2(513)][_0x1bdbe2(504)], "Time": t["connectInfo"] && t[_0x1bdbe2(513)][_0x1bdbe2(445)] }) }), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(409), "value": _0x1bdbe2(625) }), l[_0x1bdbe2(652)](_0x4b8597), I(), Q(), t[_0x1bdbe2(493)] && i[_0x1bdbe2(552)](Object[_0x1bdbe2(498)]({}, _0x4b8597, { "Msg": t["aiToSeatVoiceUrl"] })), t[_0x1bdbe2(509)] || (i["actionSeatStartPlayer"](), i[_0x1bdbe2(577)]()), i[_0x1bdbe2(546)](_0x1bdbe2(554), _0x1bdbe2(530), { "PlanID": _0x4b8597[_0x1bdbe2(478)]["PlanID"], "Mobile": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(361)] });
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 "CustomerConnected":
35065
- l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(409), "value": _0x1bdbe2(374) }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(629), "value": "" }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(513), "value": _0x4b8597["Data"] }), l[_0x1bdbe2(440)]({ "key": "customerInfo", "value": _0x4b8597["Data"] }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(493), "value": false }), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(451), "value": "" }), l[_0x1bdbe2(652)](_0x4b8597), t[_0x1bdbe2(509)] ? (i["actionSeatHandleIncoming"]({ "type": _0x1bdbe2(433) }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(409), "value": "connected" }), i["actionSeatStartTalk"]()) : (R(), i[_0x1bdbe2(552)](_0x4b8597), n[_0x1bdbe2(455)] && setTimeout(() => {
35066
- const _0x4aa21c = _0x1bdbe2;
35067
- i[_0x4aa21c(549)]({ "type": _0x4aa21c(433) }), console["log"]("自动接听");
35068
- }, 500), i[_0x1bdbe2(546)](_0x1bdbe2(437), _0x1bdbe2(432), { "PlanID": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(507)], "Mobile": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(361)] })), E({ "operatorID": n["employeeID"], "key": n["callOptions"][_0x1bdbe2(361)] || n[_0x1bdbe2(462)][_0x1bdbe2(507)] || ((_0x20248e = _0x4b8597[_0x1bdbe2(478)]) == null ? void 0 : _0x20248e["Mobile"]) || "", "detail": { "base": _0x1bdbe2(476), "mobile": (_0x1851e8 = _0x4b8597[_0x1bdbe2(478)]) == null ? void 0 : _0x1851e8[_0x1bdbe2(361)], "planID": (_0x1cfadd = _0x4b8597[_0x1bdbe2(478)]) == null ? void 0 : _0x1cfadd[_0x1bdbe2(507)], "isOnceCall": t["onceCall"] } }, n[_0x1bdbe2(626)]);
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 _0x1bdbe2(627):
35071
- I(), b(), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(409), "value": "" }), i[_0x1bdbe2(362)](), O(), i[_0x1bdbe2(546)](_0x1bdbe2(376), "通话异常"), E({ "operatorID": n[_0x1bdbe2(421)], "key": n[_0x1bdbe2(462)][_0x1bdbe2(361)] || n["callOptions"][_0x1bdbe2(507)] || ((_0x22bc0e = t[_0x1bdbe2(513)]) == null ? void 0 : _0x22bc0e[_0x1bdbe2(361)]) || "", "detail": { "base": _0x1bdbe2(411), "mobile": (_0x274189 = t[_0x1bdbe2(513)]) == null ? void 0 : _0x274189["Mobile"], "planID": (_0x5bcead = t[_0x1bdbe2(513)]) == null ? void 0 : _0x5bcead[_0x1bdbe2(507)] } }, n[_0x1bdbe2(626)]);
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 _0x1bdbe2(659):
35074
- I(), t[_0x1bdbe2(684)] && t[_0x1bdbe2(684)]["stop"](), l[_0x1bdbe2(440)]({ "key": "callingStage", "value": _0x1bdbe2(562) }), i[_0x1bdbe2(546)]("CallUnexpected", _0x1bdbe2(483)), O(), E({ "operatorID": n[_0x1bdbe2(421)], "key": n[_0x1bdbe2(462)][_0x1bdbe2(361)] || n[_0x1bdbe2(462)][_0x1bdbe2(507)] || ((_0x37b3ec = t[_0x1bdbe2(513)]) == null ? void 0 : _0x37b3ec["Mobile"]) || "", "detail": { "base": _0x1bdbe2(499), "mobile": (_0x3a0412 = t[_0x1bdbe2(513)]) == null ? void 0 : _0x3a0412[_0x1bdbe2(361)], "planID": (_0x360660 = t[_0x1bdbe2(513)]) == null ? void 0 : _0x360660[_0x1bdbe2(507)] } }, n[_0x1bdbe2(626)]);
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 "CustomerHangUp":
35077
- case _0x1bdbe2(594):
35078
- t[_0x1bdbe2(684)] && t[_0x1bdbe2(684)][_0x1bdbe2(592)](), I(), l[_0x1bdbe2(440)]({ "key": "onceCall", "value": false }), t[_0x1bdbe2(409)] !== _0x1bdbe2(625) && i[_0x1bdbe2(549)]({ "type": "CallNext" }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(409), "value": t[_0x1bdbe2(409)] === _0x1bdbe2(625) ? _0x1bdbe2(562) : "" }), i["actionHandleCallBack"](_0x1bdbe2(397), _0x1bdbe2(515)), E({ "operatorID": n[_0x1bdbe2(421)], "key": n[_0x1bdbe2(462)][_0x1bdbe2(361)] || n[_0x1bdbe2(462)][_0x1bdbe2(507)] || ((_0x118076 = _0x4b8597["Data"]) == null ? void 0 : _0x118076[_0x1bdbe2(361)]) || "", "detail": { "base": _0x1bdbe2(484), "mobile": (_0x2bca6c = _0x4b8597[_0x1bdbe2(478)]) == null ? void 0 : _0x2bca6c[_0x1bdbe2(361)], "planID": (_0x389974 = _0x4b8597["Data"]) == null ? void 0 : _0x389974[_0x1bdbe2(507)] } }, n[_0x1bdbe2(626)]), O();
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 "CustomerRefuse":
35081
- b(), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(629), "value": _0x1bdbe2(429) }), l["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(509), "value": false }), I(), i[_0x1bdbe2(546)](_0x1bdbe2(395), "客户拒接"), O();
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 "SeatHangUp":
35084
- t[_0x1bdbe2(684)] && t["recorder"][_0x1bdbe2(592)](), l[_0x1bdbe2(440)]({ "key": "callingStage", "value": _0x1bdbe2(562) }), I();
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 _0x1bdbe2(703):
35087
- t[_0x1bdbe2(684)] && (t[_0x1bdbe2(684)][_0x1bdbe2(592)](), t["recorder"] = null), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(409), "value": _0x1bdbe2(562) }), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(509), "value": false }), i[_0x1bdbe2(546)](_0x1bdbe2(537), _0x1bdbe2(406));
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 "SeatRefuseResp":
35090
- console[_0x1bdbe2(645)]("坐席拒接"), i[_0x1bdbe2(546)](_0x1bdbe2(485), _0x1bdbe2(551)), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(409), "value": "" }), I(), i["actionSeatHandleIncoming"]({ "type": "CallNext" });
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 _0x1bdbe2(380):
35093
- l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(629), "value": "" }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(509), "value": false }), i[_0x1bdbe2(546)]("SeatHangUp", _0x1bdbe2(406)), i[_0x1bdbe2(549)]({ "type": _0x1bdbe2(628) }), I();
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 _0x1bdbe2(477):
35096
- l[_0x1bdbe2(652)](_0x4b8597), i[_0x1bdbe2(546)]("CustomerSay", "客户说话", { "PlanID": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(507)], "Text": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(608)], "Time": _0x4b8597[_0x1bdbe2(478)]["Time"] });
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 _0x1bdbe2(639):
35099
- l[_0x1bdbe2(652)](_0x4b8597), i[_0x1bdbe2(546)](_0x1bdbe2(364), _0x1bdbe2(539), { "PlanID": _0x4b8597["Data"][_0x1bdbe2(507)], "Text": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(608)], "Time": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(445)] });
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 _0x1bdbe2(614):
35102
- l["SEAT_SET_RECORDSDATA"](_0x4b8597), i[_0x1bdbe2(546)](_0x1bdbe2(614), _0x1bdbe2(651), { "PlanID": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(507)], "Text": _0x4b8597["Data"][_0x1bdbe2(608)], "Time": _0x4b8597["Data"][_0x1bdbe2(445)] });
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 _0x1bdbe2(568):
35105
- i[_0x1bdbe2(546)](_0x1bdbe2(568), _0x1bdbe2(502));
35105
+ case _0x587772(341):
35106
+ i[_0x587772(399)](_0x587772(341), _0x587772(438));
35106
35107
  break;
35107
- case _0x1bdbe2(377):
35108
- l[_0x1bdbe2(440)]({ "key": "onceCall", "value": true }), l[_0x1bdbe2(440)]({ "key": "callOnceStage", "value": _0x1bdbe2(427) }), i[_0x1bdbe2(546)](_0x1bdbe2(377), _0x1bdbe2(573));
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 _0x1bdbe2(582):
35111
- l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(409), "value": _0x1bdbe2(374) }), R(), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(493), "value": true }), l["SEAT_SAVE_KEY_VALUE"]({ "key": "aiToSeatVoiceUrl", "value": _0x4b8597["Msg"] }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(553), "value": _0x4b8597["Data"] }), l[_0x1bdbe2(440)]({ "key": _0x1bdbe2(513), "value": _0x4b8597[_0x1bdbe2(478)] }), n[_0x1bdbe2(455)] && setTimeout(() => {
35112
- const _0x3727f9 = _0x1bdbe2;
35113
- i[_0x3727f9(549)]({ "type": "Answer" }), console["log"](_0x3727f9(579));
35114
- }, 500), i[_0x1bdbe2(546)]("CallConnecting", "响铃中", { "PlanID": _0x4b8597["Data"]["PlanID"], "Mobile": _0x4b8597[_0x1bdbe2(478)][_0x1bdbe2(361)], "IsAIToSeat": true });
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 _0x1bdbe2(661):
35117
- i["actionHandleCallBack"](_0x1bdbe2(604), _0x1bdbe2(419)), t[_0x1bdbe2(684)] && t[_0x1bdbe2(684)][_0x1bdbe2(592)](), l["SEAT_SAVE_KEY_VALUE"]({ "key": _0x1bdbe2(409), "value": "" }), i[_0x1bdbe2(549)]({ "type": _0x1bdbe2(628) }), 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[_0x1bdbe2(645)](_0x1bdbe2(612));
35121
+ console[_0x587772(292)](_0x587772(354));
35121
35122
  break;
35122
35123
  }
35123
- } catch (_0x5de2bf) {
35124
- console[_0x1bdbe2(666)](_0x1bdbe2(371), _0x5de2bf);
35125
- }
35126
- }, _0x6fa9b4["onclose"] = (_0x443d43) => {
35127
- const _0xdf47de = _0x47e515;
35128
- var _0x12aeaf, _0x434017, _0x11bff5;
35129
- if (console["log"](_0xdf47de(356), _0x443d43), i[_0xdf47de(546)]("Offline", _0xdf47de(599)), l[_0xdf47de(698)](""), l[_0xdf47de(369)]({ "key": "status", "status": _0xdf47de(650) }), l[_0xdf47de(440)]({ "key": "callingStage", "value": "" }), l[_0xdf47de(440)]({ "key": _0xdf47de(581), "value": { "IsOnline": false, "IsAutoAnswer": n[_0xdf47de(455)] } }), I(), E({ "operatorID": n[_0xdf47de(421)], "key": n["callOptions"]["Mobile"] || n["callOptions"][_0xdf47de(507)] || ((_0x12aeaf = t[_0xdf47de(513)]) == null ? void 0 : _0x12aeaf[_0xdf47de(361)]) || "", "detail": { "base": "ws连接关闭", "mobile": (_0x434017 = t[_0xdf47de(513)]) == null ? void 0 : _0x434017[_0xdf47de(361)], "planID": (_0x11bff5 = t[_0xdf47de(513)]) == null ? void 0 : _0x11bff5[_0xdf47de(507)], "message": { "code": _0x443d43[_0xdf47de(533)], "reason": _0x443d43[_0xdf47de(490)], "autoClosed": t[_0xdf47de(536)], "reconnectCount": t[_0xdf47de(572)] } } }, n[_0xdf47de(626)]), t[_0xdf47de(684)] && t[_0xdf47de(684)][_0xdf47de(592)](), k && k[_0xdf47de(435)](), (P || n[_0xdf47de(466)] && t[_0xdf47de(536)]) && t[_0xdf47de(572)] > 0) {
35130
- const _0x4e9093 = t[_0xdf47de(572)] - 1;
35131
- P = false, G(_0x1af666), l[_0xdf47de(440)]({ "key": _0xdf47de(572), "value": _0x4e9093 });
35132
- }
35133
- }, _0x6fa9b4[_0x47e515(358)] = (_0xcc1bc8) => {
35134
- const _0x26d0cf = _0x47e515;
35135
- var _0x51bace, _0x3e6b7f, _0x44a838;
35136
- console[_0x26d0cf(645)]("ws连接异常", _0xcc1bc8), i[_0x26d0cf(546)](_0x26d0cf(376), _0x26d0cf(483)), i[_0x26d0cf(546)]("Offline", "坐席下线"), i[_0x26d0cf(362)](), E({ "operatorID": n[_0x26d0cf(421)], "key": n["callOptions"][_0x26d0cf(361)] || n[_0x26d0cf(462)][_0x26d0cf(507)] || ((_0x51bace = t[_0x26d0cf(513)]) == null ? void 0 : _0x51bace[_0x26d0cf(361)]) || "", "detail": { "base": _0x26d0cf(497), "mobile": (_0x3e6b7f = t["connectInfo"]) == null ? void 0 : _0x3e6b7f[_0x26d0cf(361)], "planID": (_0x44a838 = t["connectInfo"]) == null ? void 0 : _0x44a838[_0x26d0cf(507)] } }, n[_0x26d0cf(626)]);
35137
- };
35138
- }
35139
- const te = (_0x2f0b57) => {
35140
- const _0xc5fdb5 = _0x3329c0;
35141
- n = _0x2f0b57, _0x2f0b57[_0xc5fdb5(466)] ? w[_0xc5fdb5(640)]["actionSeatHandleIncoming"]({ "type": _0xc5fdb5(387), "data": n[_0xc5fdb5(462)] }) : i["actionSeatStartWS"]();
35142
- }, ae = (_0x26c564) => {
35143
- const _0x346635 = _0x3329c0;
35144
- n = _0x26c564, i[_0x346635(575)]();
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 _0x4773f0 = _0x3329c0;
35147
- var _0x5429af, _0x1f1049, _0x316be8;
35148
- const _0x5b3d42 = m[_0x4773f0(609)]();
35149
- let _0x127d34 = "";
35150
- m[_0x4773f0(413)]() ? (i[_0x4773f0(549)]({ "type": "Reject" }), _0x127d34 = _0x4773f0(615)) : m[_0x4773f0(601)]() ? (i[_0x4773f0(549)]({ "type": _0x4773f0(425) }), _0x127d34 = _0x4773f0(654)) : (_0x5b3d42 === _0x4773f0(431) || _0x5b3d42 === _0x4773f0(427)) && (i[_0x4773f0(549)]({ "type": "Cancel" }), _0x127d34 = _0x4773f0(676)), _0x127d34 && E({ "operatorID": n[_0x4773f0(421)], "key": n[_0x4773f0(462)]["Mobile"] || n[_0x4773f0(462)]["PlanID"] || ((_0x5429af = t[_0x4773f0(513)]) == null ? void 0 : _0x5429af["Mobile"]) || "", "detail": { "base": _0x4773f0(591) + _0x127d34, "mobile": (_0x1f1049 = t[_0x4773f0(513)]) == null ? void 0 : _0x1f1049[_0x4773f0(361)], "planID": (_0x316be8 = t[_0x4773f0(513)]) == null ? void 0 : _0x316be8["PlanID"], "isOnceCall": t["onceCall"] } }, n[_0x4773f0(626)]), b();
35151
- }, b = (_0x53fe27 = false) => {
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 _0x4bfd33 = _0x2deb;
35154
- t[_0x4bfd33(434)] && t["voiceInstance"][_0x4bfd33(468)](1e3), n[_0x4bfd33(466)] ? _0x53fe27 && i[_0x4bfd33(549)]({ "type": "CallNext" }) : i[_0x4bfd33(362)]();
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
- i["actionSeatHandleIncoming"]({ "type": "Answer" });
35158
- }, le = (_0x248910) => {
35159
- _0x248910 && (n = Object["assign"]({}, n, _0x248910));
35160
- }, w = { "actions": i }, ie = "0.1.15", F = { "version": ie };
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(_0x548e37) {
35163
- const _0x22f120 = _0x3329c0;
35164
- K(this, _0x22f120(695)), this[_0x22f120(695)] = _0x548e37;
35165
- }
35166
- [_0x3329c0(486)](_0x675da4) {
35167
- const _0x39fac5 = _0x3329c0, { mobile: _0xd618bb, callBack: _0x2c6be3 = "", outPlanID: _0x5622b0 = "", robotPID: _0x49dd84 = "" } = _0x675da4;
35168
- if (!this[_0x39fac5(695)][_0x39fac5(545)] || !this["data"][_0x39fac5(421)] || !this[_0x39fac5(695)][_0x39fac5(408)]) {
35169
- this[_0x39fac5(607)]("缺少companyID、employeeID、token参数");
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 (!_0xd618bb && !_0x675da4["planID"]) {
35173
- this["handleError"]("缺少参数");
35182
+ if (!_0x3c54c9 && !_0x49cd3a["planID"]) {
35183
+ this["handleError"](_0x326825(434));
35174
35184
  return;
35175
35185
  }
35176
- if (!Z(this["data"][_0x39fac5(408)])) {
35177
- this[_0x39fac5(607)]("token过期");
35186
+ if (!Z(this[_0x326825(547)]["token"])) {
35187
+ this[_0x326825(521)](_0x326825(348));
35178
35188
  return;
35179
35189
  }
35180
- let _0x3dcd7f = { "Mobile": _0x675da4[_0x39fac5(587)] };
35181
- _0x675da4[_0x39fac5(620)] && (_0x3dcd7f[_0x39fac5(414)] = _0x675da4[_0x39fac5(620)]), _0x675da4[_0x39fac5(481)] && (_0x3dcd7f[_0x39fac5(507)] = _0x675da4[_0x39fac5(481)]), _0x675da4["taskID"] && (_0x3dcd7f[_0x39fac5(618)] = _0x675da4[_0x39fac5(617)]), _0x49dd84 && (_0x3dcd7f[_0x39fac5(630)] = _0x49dd84), _0x5622b0 && (_0x3dcd7f[_0x39fac5(677)] = _0x5622b0), _0x2c6be3 && (_0x3dcd7f[_0x39fac5(619)] = _0x2c6be3), _0x675da4[_0x39fac5(452)] && (_0x3dcd7f[_0x39fac5(543)] = _0x675da4[_0x39fac5(452)]), _0x675da4[_0x39fac5(355)] && (_0x3dcd7f["QualityMonitorIDs"] = _0x675da4[_0x39fac5(355)]), _0x675da4[_0x39fac5(531)] && (_0x3dcd7f["QualityNoticeToCaller"] = _0x675da4[_0x39fac5(531)]);
35182
- let _0x3f4d3b = Object["assign"]({}, this["data"], { "callOptions": _0x3dcd7f });
35183
- E({ "operatorID": this[_0x39fac5(695)]["employeeID"], "key": _0x675da4[_0x39fac5(587)], "detail": { "base": _0x39fac5(398), "callConfig": _0x3f4d3b, "pluginVersion": F[_0x39fac5(475)], "maskPhoneNumber": this["data"][_0x39fac5(492)], "isAutoAnswer": this["data"]["isAutoAnswer"], "manualControlSeat": this[_0x39fac5(695)][_0x39fac5(466)] } }, this["data"]["env"]), W(() => {
35184
- te(_0x3f4d3b);
35185
- }, (_0x1db6a8) => {
35186
- const _0x4c5839 = _0x39fac5;
35187
- this[_0x4c5839(607)](_0x1db6a8["errMsg"]);
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
- [_0x3329c0(607)](_0x5056cd) {
35191
- const _0x4c429c = _0x3329c0;
35192
- this[_0x4c429c(695)][_0x4c429c(385)] && this["data"][_0x4c429c(385)]({ "type": _0x4c429c(480), "msg": _0x5056cd }), E({ "operatorID": this["data"][_0x4c429c(421)], "key": "", "detail": { "base": _0x4c429c(428), "message": _0x5056cd } }, this[_0x4c429c(695)][_0x4c429c(626)]);
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
- [_0x3329c0(584)]() {
35204
+ [_0x15a666(318)]() {
35195
35205
  ne();
35196
35206
  }
35197
- [_0x3329c0(688)]() {
35207
+ [_0x15a666(502)]() {
35198
35208
  oe();
35199
35209
  }
35200
- [_0x3329c0(696)]() {
35210
+ ["online"]() {
35201
35211
  W(() => {
35202
- const _0x47bad0 = _0x2deb;
35203
- ae({ ...this[_0x47bad0(695)], "callOptions": {} }), E({ "operatorID": this[_0x47bad0(695)][_0x47bad0(421)], "key": "", "detail": { "base": _0x47bad0(518), "pluginVersion": F[_0x47bad0(475)], ...this[_0x47bad0(695)] } }, this[_0x47bad0(695)][_0x47bad0(626)]);
35204
- }, (_0x4d5c45) => {
35205
- const _0x214c5e = _0x2deb;
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
- [_0x3329c0(467)]() {
35210
- const _0x3cd9df = _0x3329c0;
35211
- w[_0x3cd9df(640)]["actionSeatReconnectWSAfterClosed"](false), w["actions"][_0x3cd9df(362)]();
35218
+ [_0x15a666(360)]() {
35219
+ const _0x2aa650 = _0x15a666;
35220
+ w[_0x2aa650(488)]["actionSeatReconnectWSAfterClosed"](false), w[_0x2aa650(488)][_0x2aa650(508)]();
35212
35221
  }
35213
- [_0x3329c0(463)](_0x48e606) {
35214
- le(_0x48e606);
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, { locale: unref(zhCn) }, {
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
  // 外呼初始化参数