@tuotoo/kiwi-pc-plugin-toolbar 0.1.4 → 0.1.6
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 +543 -550
- package/dist/index.umd.js +7 -7
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -6704,7 +6704,7 @@ const computed = (getterOrOptions, debugOptions) => {
|
|
|
6704
6704
|
const c2 = computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
6705
6705
|
return c2;
|
|
6706
6706
|
};
|
|
6707
|
-
function h$
|
|
6707
|
+
function h$1(type, propsOrChildren, children) {
|
|
6708
6708
|
try {
|
|
6709
6709
|
setBlockTracking(-1);
|
|
6710
6710
|
const l2 = arguments.length;
|
|
@@ -6847,7 +6847,7 @@ const decorate$1 = (t) => {
|
|
|
6847
6847
|
return t;
|
|
6848
6848
|
};
|
|
6849
6849
|
const Transition = /* @__PURE__ */ decorate$1(
|
|
6850
|
-
(props, { slots }) => h$
|
|
6850
|
+
(props, { slots }) => h$1(BaseTransition, resolveTransitionProps(props), slots)
|
|
6851
6851
|
);
|
|
6852
6852
|
const callHook = (hook, args = []) => {
|
|
6853
6853
|
if (isArray$2(hook)) {
|
|
@@ -13089,7 +13089,7 @@ var E$2 = "top", R$1 = "bottom", W$1 = "right", P$2 = "left", me = "auto", G$1 =
|
|
|
13089
13089
|
}, []), Ee = [].concat(G$1, [me]).reduce(function(t, e) {
|
|
13090
13090
|
return t.concat([e, e + "-" + U$2, e + "-" + J$1]);
|
|
13091
13091
|
}, []), Ge = "beforeRead", Je = "read", Ke = "afterRead", Qe = "beforeMain", Ze = "main", et = "afterMain", tt = "beforeWrite", nt = "write", rt = "afterWrite", ot = [Ge, Je, Ke, Qe, Ze, et, tt, nt, rt];
|
|
13092
|
-
function C(t) {
|
|
13092
|
+
function C$1(t) {
|
|
13093
13093
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
13094
13094
|
}
|
|
13095
13095
|
function H$1(t) {
|
|
@@ -13117,7 +13117,7 @@ function Mt(t) {
|
|
|
13117
13117
|
var e = t.state;
|
|
13118
13118
|
Object.keys(e.elements).forEach(function(n2) {
|
|
13119
13119
|
var r = e.styles[n2] || {}, o2 = e.attributes[n2] || {}, i = e.elements[n2];
|
|
13120
|
-
!B$1(i) || !C(i) || (Object.assign(i.style, r), Object.keys(o2).forEach(function(a2) {
|
|
13120
|
+
!B$1(i) || !C$1(i) || (Object.assign(i.style, r), Object.keys(o2).forEach(function(a2) {
|
|
13121
13121
|
var s2 = o2[a2];
|
|
13122
13122
|
s2 === false ? i.removeAttribute(a2) : i.setAttribute(a2, s2 === true ? "" : s2);
|
|
13123
13123
|
}));
|
|
@@ -13130,7 +13130,7 @@ function Rt(t) {
|
|
|
13130
13130
|
var o2 = e.elements[r], i = e.attributes[r] || {}, a2 = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n2[r]), s2 = a2.reduce(function(f2, c2) {
|
|
13131
13131
|
return f2[c2] = "", f2;
|
|
13132
13132
|
}, {});
|
|
13133
|
-
!B$1(o2) || !C(o2) || (Object.assign(o2.style, s2), Object.keys(i).forEach(function(f2) {
|
|
13133
|
+
!B$1(o2) || !C$1(o2) || (Object.assign(o2.style, s2), Object.keys(i).forEach(function(f2) {
|
|
13134
13134
|
o2.removeAttribute(f2);
|
|
13135
13135
|
}));
|
|
13136
13136
|
});
|
|
@@ -13170,13 +13170,13 @@ function N$2(t) {
|
|
|
13170
13170
|
return H$1(t).getComputedStyle(t);
|
|
13171
13171
|
}
|
|
13172
13172
|
function Wt(t) {
|
|
13173
|
-
return ["table", "td", "th"].indexOf(C(t)) >= 0;
|
|
13173
|
+
return ["table", "td", "th"].indexOf(C$1(t)) >= 0;
|
|
13174
13174
|
}
|
|
13175
13175
|
function I$1(t) {
|
|
13176
13176
|
return ((Q$1(t) ? t.ownerDocument : t.document) || window.document).documentElement;
|
|
13177
13177
|
}
|
|
13178
13178
|
function ge(t) {
|
|
13179
|
-
return C(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I$1(t);
|
|
13179
|
+
return C$1(t) === "html" ? t : t.assignedSlot || t.parentNode || (Pe(t) ? t.host : null) || I$1(t);
|
|
13180
13180
|
}
|
|
13181
13181
|
function at(t) {
|
|
13182
13182
|
return !B$1(t) || N$2(t).position === "fixed" ? null : t.offsetParent;
|
|
@@ -13188,7 +13188,7 @@ function Bt(t) {
|
|
|
13188
13188
|
if (r.position === "fixed") return null;
|
|
13189
13189
|
}
|
|
13190
13190
|
var o2 = ge(t);
|
|
13191
|
-
for (Pe(o2) && (o2 = o2.host); B$1(o2) && ["html", "body"].indexOf(C(o2)) < 0; ) {
|
|
13191
|
+
for (Pe(o2) && (o2 = o2.host); B$1(o2) && ["html", "body"].indexOf(C$1(o2)) < 0; ) {
|
|
13192
13192
|
var i = N$2(o2);
|
|
13193
13193
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none") return o2;
|
|
13194
13194
|
o2 = o2.parentNode;
|
|
@@ -13197,7 +13197,7 @@ function Bt(t) {
|
|
|
13197
13197
|
}
|
|
13198
13198
|
function se(t) {
|
|
13199
13199
|
for (var e = H$1(t), n2 = at(t); n2 && Wt(n2) && N$2(n2).position === "static"; ) n2 = at(n2);
|
|
13200
|
-
return n2 && (C(n2) === "html" || C(n2) === "body" && N$2(n2).position === "static") ? e : n2 || Bt(t) || e;
|
|
13200
|
+
return n2 && (C$1(n2) === "html" || C$1(n2) === "body" && N$2(n2).position === "static") ? e : n2 || Bt(t) || e;
|
|
13201
13201
|
}
|
|
13202
13202
|
function Le(t) {
|
|
13203
13203
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -13315,7 +13315,7 @@ function Se(t) {
|
|
|
13315
13315
|
return /auto|scroll|overlay|hidden/.test(n2 + o2 + r);
|
|
13316
13316
|
}
|
|
13317
13317
|
function dt(t) {
|
|
13318
|
-
return ["html", "body", "#document"].indexOf(C(t)) >= 0 ? t.ownerDocument.body : B$1(t) && Se(t) ? t : dt(ge(t));
|
|
13318
|
+
return ["html", "body", "#document"].indexOf(C$1(t)) >= 0 ? t.ownerDocument.body : B$1(t) && Se(t) ? t : dt(ge(t));
|
|
13319
13319
|
}
|
|
13320
13320
|
function ce(t, e) {
|
|
13321
13321
|
var n2;
|
|
@@ -13336,7 +13336,7 @@ function ht(t, e) {
|
|
|
13336
13336
|
function Yt(t) {
|
|
13337
13337
|
var e = ce(ge(t)), n2 = ["absolute", "fixed"].indexOf(N$2(t).position) >= 0, r = n2 && B$1(t) ? se(t) : t;
|
|
13338
13338
|
return Q$1(r) ? e.filter(function(o2) {
|
|
13339
|
-
return Q$1(o2) && it(o2, r) && C(o2) !== "body";
|
|
13339
|
+
return Q$1(o2) && it(o2, r) && C$1(o2) !== "body";
|
|
13340
13340
|
}) : [];
|
|
13341
13341
|
}
|
|
13342
13342
|
function Gt(t, e, n2) {
|
|
@@ -13503,7 +13503,7 @@ function fn(t) {
|
|
|
13503
13503
|
function cn(t, e, n2) {
|
|
13504
13504
|
n2 === void 0 && (n2 = false);
|
|
13505
13505
|
var r = B$1(e), o2 = B$1(e) && fn(e), i = I$1(e), a2 = ee$1(t, o2), s2 = { scrollLeft: 0, scrollTop: 0 }, f2 = { x: 0, y: 0 };
|
|
13506
|
-
return (r || !r && !n2) && ((C(e) !== "body" || Se(i)) && (s2 = sn(e)), B$1(e) ? (f2 = ee$1(e, true), f2.x += e.clientLeft, f2.y += e.clientTop) : i && (f2.x = Be(i))), { x: a2.left + s2.scrollLeft - f2.x, y: a2.top + s2.scrollTop - f2.y, width: a2.width, height: a2.height };
|
|
13506
|
+
return (r || !r && !n2) && ((C$1(e) !== "body" || Se(i)) && (s2 = sn(e)), B$1(e) ? (f2 = ee$1(e, true), f2.x += e.clientLeft, f2.y += e.clientTop) : i && (f2.x = Be(i))), { x: a2.left + s2.scrollLeft - f2.x, y: a2.top + s2.scrollTop - f2.y, width: a2.width, height: a2.height };
|
|
13507
13507
|
}
|
|
13508
13508
|
function pn(t) {
|
|
13509
13509
|
var e = /* @__PURE__ */ new Map(), n2 = /* @__PURE__ */ new Set(), r = [];
|
|
@@ -16587,7 +16587,7 @@ const useOrderedChildren = (vm, childComponentName) => {
|
|
|
16587
16587
|
setup(_2, { slots }) {
|
|
16588
16588
|
return () => {
|
|
16589
16589
|
sortChildren();
|
|
16590
|
-
return slots.default ? h$
|
|
16590
|
+
return slots.default ? h$1(IsolatedRenderer, {
|
|
16591
16591
|
render: slots.default
|
|
16592
16592
|
}) : null;
|
|
16593
16593
|
};
|
|
@@ -27355,10 +27355,10 @@ var TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
27355
27355
|
isTableLayoutAuto
|
|
27356
27356
|
} = this;
|
|
27357
27357
|
let rowSpan = 1;
|
|
27358
|
-
return h$
|
|
27358
|
+
return h$1("thead", {
|
|
27359
27359
|
ref: "theadRef",
|
|
27360
27360
|
class: { [ns.is("group")]: isGroup }
|
|
27361
|
-
}, columnRows.map((subColumns, rowIndex) => h$
|
|
27361
|
+
}, columnRows.map((subColumns, rowIndex) => h$1("tr", {
|
|
27362
27362
|
class: getHeaderRowClass(rowIndex),
|
|
27363
27363
|
key: rowIndex,
|
|
27364
27364
|
style: getHeaderRowStyle(rowIndex)
|
|
@@ -27370,7 +27370,7 @@ var TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
27370
27370
|
if (isTableLayoutAuto && column.fixed) {
|
|
27371
27371
|
saveIndexSelection.set(_class, column);
|
|
27372
27372
|
}
|
|
27373
|
-
return h$
|
|
27373
|
+
return h$1("th", {
|
|
27374
27374
|
class: _class,
|
|
27375
27375
|
colspan: column.colSpan,
|
|
27376
27376
|
key: `${column.id}-thead`,
|
|
@@ -27388,7 +27388,7 @@ var TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
27388
27388
|
onMousemove: ($event) => handleMouseMove($event, column),
|
|
27389
27389
|
onMouseout: handleMouseOut
|
|
27390
27390
|
}, [
|
|
27391
|
-
h$
|
|
27391
|
+
h$1("div", {
|
|
27392
27392
|
class: [
|
|
27393
27393
|
"cell",
|
|
27394
27394
|
column.filteredValue && column.filteredValue.length > 0 ? "highlight" : ""
|
|
@@ -27400,20 +27400,20 @@ var TableHeader = /* @__PURE__ */ defineComponent({
|
|
|
27400
27400
|
store,
|
|
27401
27401
|
_self: $parent
|
|
27402
27402
|
}) : column.label,
|
|
27403
|
-
column.sortable && h$
|
|
27403
|
+
column.sortable && h$1("span", {
|
|
27404
27404
|
onClick: ($event) => handleSortClick($event, column),
|
|
27405
27405
|
class: "caret-wrapper"
|
|
27406
27406
|
}, [
|
|
27407
|
-
h$
|
|
27407
|
+
h$1("i", {
|
|
27408
27408
|
onClick: ($event) => handleSortClick($event, column, "ascending"),
|
|
27409
27409
|
class: "sort-caret ascending"
|
|
27410
27410
|
}),
|
|
27411
|
-
h$
|
|
27411
|
+
h$1("i", {
|
|
27412
27412
|
onClick: ($event) => handleSortClick($event, column, "descending"),
|
|
27413
27413
|
class: "sort-caret descending"
|
|
27414
27414
|
})
|
|
27415
27415
|
]),
|
|
27416
|
-
column.filterable && h$
|
|
27416
|
+
column.filterable && h$1(FilterPanel, {
|
|
27417
27417
|
store,
|
|
27418
27418
|
placement: column.filterPlacement || "bottom-start",
|
|
27419
27419
|
appendTo: $parent == null ? void 0 : $parent.appendFilterPanelTo,
|
|
@@ -27437,7 +27437,7 @@ function isGreaterThan(a2, b2, epsilon = 0.03) {
|
|
|
27437
27437
|
function useEvents(props) {
|
|
27438
27438
|
const parent2 = inject(TABLE_INJECTION_KEY);
|
|
27439
27439
|
const tooltipContent = ref("");
|
|
27440
|
-
const tooltipTrigger = ref(h$
|
|
27440
|
+
const tooltipTrigger = ref(h$1("div"));
|
|
27441
27441
|
const handleEvent = (event, row, name) => {
|
|
27442
27442
|
var _a2, _b, _c;
|
|
27443
27443
|
const table = parent2;
|
|
@@ -27750,7 +27750,7 @@ function useRender$1(props) {
|
|
|
27750
27750
|
}
|
|
27751
27751
|
rowClasses.push(...getRowClass(row, $index, displayIndex));
|
|
27752
27752
|
const displayStyle = display ? null : { display: "none" };
|
|
27753
|
-
return h$
|
|
27753
|
+
return h$1("tr", {
|
|
27754
27754
|
style: [displayStyle, getRowStyle(row, $index)],
|
|
27755
27755
|
class: rowClasses,
|
|
27756
27756
|
key: getKeyOfRow(row, $index),
|
|
@@ -27795,7 +27795,7 @@ function useRender$1(props) {
|
|
|
27795
27795
|
const mergedTooltipOptions = column.showOverflowTooltip && merge$1({
|
|
27796
27796
|
effect: tooltipEffect
|
|
27797
27797
|
}, tooltipOptions, column.showOverflowTooltip);
|
|
27798
|
-
return h$
|
|
27798
|
+
return h$1(TdWrapper, {
|
|
27799
27799
|
style: getCellStyle($index, cellIndex, row, column),
|
|
27800
27800
|
class: getCellClass($index, cellIndex, row, column, colspan - 1),
|
|
27801
27801
|
key: `${patchKey}${baseKey}`,
|
|
@@ -27827,11 +27827,11 @@ function useRender$1(props) {
|
|
|
27827
27827
|
}
|
|
27828
27828
|
const rows = [[tr]];
|
|
27829
27829
|
if (parent2.props.preserveExpandedContent || expanded) {
|
|
27830
|
-
rows[0].push(h$
|
|
27830
|
+
rows[0].push(h$1("tr", {
|
|
27831
27831
|
key: `expanded-row__${tr.key}`,
|
|
27832
27832
|
style: { display: expanded ? "" : "none" }
|
|
27833
27833
|
}, [
|
|
27834
|
-
h$
|
|
27834
|
+
h$1("td", {
|
|
27835
27835
|
colspan: columns.length,
|
|
27836
27836
|
class: `${ns.e("cell")} ${ns.e("expanded-cell")}`
|
|
27837
27837
|
}, [renderExpanded({ row, $index, store, expanded })])
|
|
@@ -28009,7 +28009,7 @@ var TableBody = /* @__PURE__ */ defineComponent({
|
|
|
28009
28009
|
render() {
|
|
28010
28010
|
const { wrappedRowRender, store } = this;
|
|
28011
28011
|
const data = (store == null ? void 0 : store.states.data.value) || [];
|
|
28012
|
-
return h$
|
|
28012
|
+
return h$1("tbody", { tabIndex: -1 }, [
|
|
28013
28013
|
data.reduce((acc, row) => {
|
|
28014
28014
|
return acc.concat(wrappedRowRender(row, acc.length));
|
|
28015
28015
|
}, [])
|
|
@@ -28161,16 +28161,16 @@ var TableFooter = /* @__PURE__ */ defineComponent({
|
|
|
28161
28161
|
}
|
|
28162
28162
|
});
|
|
28163
28163
|
}
|
|
28164
|
-
return h$
|
|
28165
|
-
h$
|
|
28166
|
-
...columns.map((column, cellIndex) => h$
|
|
28164
|
+
return h$1(h$1("tfoot", [
|
|
28165
|
+
h$1("tr", {}, [
|
|
28166
|
+
...columns.map((column, cellIndex) => h$1("td", {
|
|
28167
28167
|
key: cellIndex,
|
|
28168
28168
|
colspan: column.colSpan,
|
|
28169
28169
|
rowspan: column.rowSpan,
|
|
28170
28170
|
class: getCellClasses(columns, cellIndex),
|
|
28171
28171
|
style: getCellStyles(column, cellIndex)
|
|
28172
28172
|
}, [
|
|
28173
|
-
h$
|
|
28173
|
+
h$1("div", {
|
|
28174
28174
|
class: ["cell", column.labelClassName]
|
|
28175
28175
|
}, [sums[cellIndex]])
|
|
28176
28176
|
]))
|
|
@@ -28617,7 +28617,7 @@ function hColgroup(props) {
|
|
|
28617
28617
|
}
|
|
28618
28618
|
return propsData;
|
|
28619
28619
|
};
|
|
28620
|
-
return h$
|
|
28620
|
+
return h$1("colgroup", {}, columns.map((column) => h$1("col", getPropsData(column))));
|
|
28621
28621
|
}
|
|
28622
28622
|
hColgroup.props = ["columns", "tableLayout"];
|
|
28623
28623
|
const useScrollbar = () => {
|
|
@@ -28695,11 +28695,11 @@ var _ = { ie: function() {
|
|
|
28695
28695
|
}, ipad: function() {
|
|
28696
28696
|
return a$1() || E$1;
|
|
28697
28697
|
} }, A$1 = _;
|
|
28698
|
-
var c$1 = !!(typeof window < "u" && window.document && window.document.createElement), U$1 = { canUseDOM: c$1 }, h
|
|
28698
|
+
var c$1 = !!(typeof window < "u" && window.document && window.document.createElement), U$1 = { canUseDOM: c$1 }, h = U$1;
|
|
28699
28699
|
var X;
|
|
28700
|
-
h
|
|
28700
|
+
h.canUseDOM && (X = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
|
|
28701
28701
|
function S(e, n2) {
|
|
28702
|
-
if (!h
|
|
28702
|
+
if (!h.canUseDOM || n2 && !("addEventListener" in document)) return false;
|
|
28703
28703
|
var i = "on" + e, r = i in document;
|
|
28704
28704
|
if (!r) {
|
|
28705
28705
|
var t = document.createElement("div");
|
|
@@ -29133,7 +29133,7 @@ const cellForced = {
|
|
|
29133
29133
|
function isDisabled() {
|
|
29134
29134
|
return store.states.data.value && store.states.data.value.length === 0;
|
|
29135
29135
|
}
|
|
29136
|
-
return h$
|
|
29136
|
+
return h$1(ElCheckbox, {
|
|
29137
29137
|
disabled: isDisabled(),
|
|
29138
29138
|
size: store.states.tableSize.value,
|
|
29139
29139
|
indeterminate: store.states.selection.value.length > 0 && !store.states.isAllSelected.value,
|
|
@@ -29148,7 +29148,7 @@ const cellForced = {
|
|
|
29148
29148
|
store,
|
|
29149
29149
|
$index
|
|
29150
29150
|
}) {
|
|
29151
|
-
return h$
|
|
29151
|
+
return h$1(ElCheckbox, {
|
|
29152
29152
|
disabled: column.selectable ? !column.selectable.call(null, row, $index) : false,
|
|
29153
29153
|
size: store.states.tableSize.value,
|
|
29154
29154
|
onChange: () => {
|
|
@@ -29179,7 +29179,7 @@ const cellForced = {
|
|
|
29179
29179
|
} else if (isFunction$3(index)) {
|
|
29180
29180
|
i = index($index);
|
|
29181
29181
|
}
|
|
29182
|
-
return h$
|
|
29182
|
+
return h$1("div", {}, [i]);
|
|
29183
29183
|
},
|
|
29184
29184
|
sortable: false
|
|
29185
29185
|
},
|
|
@@ -29204,7 +29204,7 @@ const cellForced = {
|
|
|
29204
29204
|
e.stopPropagation();
|
|
29205
29205
|
store.toggleRowExpansion(row);
|
|
29206
29206
|
};
|
|
29207
|
-
return h$
|
|
29207
|
+
return h$1("div", {
|
|
29208
29208
|
class: classes,
|
|
29209
29209
|
onClick: callback
|
|
29210
29210
|
}, {
|
|
@@ -29217,9 +29217,9 @@ const cellForced = {
|
|
|
29217
29217
|
];
|
|
29218
29218
|
}
|
|
29219
29219
|
return [
|
|
29220
|
-
h$
|
|
29220
|
+
h$1(ElIcon, null, {
|
|
29221
29221
|
default: () => {
|
|
29222
|
-
return [h$
|
|
29222
|
+
return [h$1(arrow_right_default)];
|
|
29223
29223
|
}
|
|
29224
29224
|
})
|
|
29225
29225
|
];
|
|
@@ -29252,7 +29252,7 @@ function treeCellPrefix({
|
|
|
29252
29252
|
if (!treeNode) {
|
|
29253
29253
|
if (createPlaceholder) {
|
|
29254
29254
|
return [
|
|
29255
|
-
h$
|
|
29255
|
+
h$1("span", {
|
|
29256
29256
|
class: ns.e("placeholder")
|
|
29257
29257
|
})
|
|
29258
29258
|
];
|
|
@@ -29268,7 +29268,7 @@ function treeCellPrefix({
|
|
|
29268
29268
|
store.loadOrToggle(row);
|
|
29269
29269
|
};
|
|
29270
29270
|
if (treeNode.indent) {
|
|
29271
|
-
ele.push(h$
|
|
29271
|
+
ele.push(h$1("span", {
|
|
29272
29272
|
class: ns.e("indent"),
|
|
29273
29273
|
style: { "padding-left": `${treeNode.indent}px` }
|
|
29274
29274
|
}));
|
|
@@ -29282,20 +29282,20 @@ function treeCellPrefix({
|
|
|
29282
29282
|
if (treeNode.loading) {
|
|
29283
29283
|
icon = loading_default;
|
|
29284
29284
|
}
|
|
29285
|
-
ele.push(h$
|
|
29285
|
+
ele.push(h$1("div", {
|
|
29286
29286
|
class: expandClasses,
|
|
29287
29287
|
onClick: callback
|
|
29288
29288
|
}, {
|
|
29289
29289
|
default: () => {
|
|
29290
29290
|
return [
|
|
29291
|
-
h$
|
|
29292
|
-
default: () => [h$
|
|
29291
|
+
h$1(ElIcon, { class: { [ns.is("loading")]: treeNode.loading } }, {
|
|
29292
|
+
default: () => [h$1(icon)]
|
|
29293
29293
|
})
|
|
29294
29294
|
];
|
|
29295
29295
|
}
|
|
29296
29296
|
}));
|
|
29297
29297
|
} else {
|
|
29298
|
-
ele.push(h$
|
|
29298
|
+
ele.push(h$1("span", {
|
|
29299
29299
|
class: ns.e("placeholder")
|
|
29300
29300
|
}));
|
|
29301
29301
|
}
|
|
@@ -29474,7 +29474,7 @@ function useRender(props, slots, owner) {
|
|
|
29474
29474
|
}
|
|
29475
29475
|
let originRenderCell = column.renderCell;
|
|
29476
29476
|
if (column.type === "expand") {
|
|
29477
|
-
column.renderCell = (data) => h$
|
|
29477
|
+
column.renderCell = (data) => h$1("div", {
|
|
29478
29478
|
class: "cell"
|
|
29479
29479
|
}, [originRenderCell(data)]);
|
|
29480
29480
|
owner.value.renderExpanded = (row) => {
|
|
@@ -29505,7 +29505,7 @@ function useRender(props, slots, owner) {
|
|
|
29505
29505
|
};
|
|
29506
29506
|
}
|
|
29507
29507
|
checkSubColumn(children);
|
|
29508
|
-
return h$
|
|
29508
|
+
return h$1("div", props2, [prefix, children]);
|
|
29509
29509
|
};
|
|
29510
29510
|
}
|
|
29511
29511
|
return column;
|
|
@@ -29730,10 +29730,10 @@ var ElTableColumn$1 = /* @__PURE__ */ defineComponent({
|
|
|
29730
29730
|
}
|
|
29731
29731
|
}
|
|
29732
29732
|
}
|
|
29733
|
-
const vnode = h$
|
|
29733
|
+
const vnode = h$1("div", children);
|
|
29734
29734
|
return vnode;
|
|
29735
29735
|
} catch (e) {
|
|
29736
|
-
return h$
|
|
29736
|
+
return h$1("div", []);
|
|
29737
29737
|
}
|
|
29738
29738
|
}
|
|
29739
29739
|
});
|
|
@@ -34545,658 +34545,655 @@ const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYA
|
|
|
34545
34545
|
const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADP0lEQVR4AeyXjVHEIBCF0Uq0ErUStQM68OzgOlArUStRK9H3IZvBnJ4skHOcicO7hL/lvd2F4HH453+rgL8O4BqBNQKdHlhTqNOB3dPXCHS7sNOAOwIxxpMY43n8BO8JLTyyjRs9S1x5bLkEaKE7GX8RHjN4T1Dfi0C/uqrLjUZuZriTnXO1VZVqAdnoPu+caMUrjfOIuNacJ6G5VAvQCmcC5Wm73R7p5XSGe9Up1d6TnVdNuBWai0fAW14FTwcWL6G+B8FVovaRJpCOegTEBO+fR0DtAlWbek5eziCi7nTyCDDnpAhYpXiWAn8ak4b/QJ4+9sS9xFQLaRHAQjvQoqWAnf5Zw5Q2mofnU7feXwVEpHrNj0fARDB78Iv9WdveCGgiRydkJ/JqayrVAuQZBFhoL8vVMnnzKqeUnUjlsOldtm6FbvIYrBbAYMEETEelyONtI49XLzTuYMUhIHF6Tr8hcNJMInIbDxPI+0HgEqCwQ5BUglxKI7VRt43Hl/g7YYxfBC4BmYF9ObnQkT40Iwzwzl3G2qkvihYBEMXrkOQyFmZRoN1zH+oS6BaQye5EIbdbKhGdJK6LXcVkt4Bss4yCnUBEguOTM55hmxjj1EcDUBt3/2F7pUlA9rYdl5xIZcpwqTMRRIL/E0irIPIIoo/xj6rTx54B+67qaP8WTQKwlEVYyuDRlDK0C6QYRBkK+URWlfkJRR/EASIQqGH1pVkAS4goKQOokjJJBBX1IQKBtuEhS9eF+uz/CfqZD+gjYjaO+q/oEpCtQ9QIzEXQTqpZNK5Fnv0T9OSrzc0TEdjI5nyPbgEQ0ZIQMJKIIGWSJ+kX6Ic8gjR8XOkWABURxJuQNBHkOiLKlBpOnrWHCMAQkBBEkBKW90SDk2YSwriRGCoAYhKBp8u8J5VMCCcNJw5DSzAm1TUf8em95me4ABaFhEA0uPMjiGZIQh4R7zFGIkOa8U1ojtAiAmALJIK9QUohhKeJoRtB7BVE8aTN9hDvVVhUgDHIQuzIRAxAEEAUR+tG44iaTat6HkRAyUQkiQpAEOB45ePmJo/dgwtg0ZFYBYz0ZoutZSLQwqRxziqg0XHDpq0RGObKRkP/PgIfAAAA///EkZMiAAAABklEQVQDAOfjSnAM/aqlAAAAAElFTkSuQmCC";
|
|
34546
34546
|
const _imports_2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGO0lEQVR4AdRaW3bbOAwFlY04u5jkTN14JeP8TLOLpLuI58fuSuymc5zuIl5IbBYXlGQ9qAcfsmQewZIoEgQuAfDlhAZOT9u/Zk9v98t/f90/g7693a+/vd1t+f7BpJlwZ5I8/na/RnnQwKIJ+0EAgNJG2butvkk+NNFaaXoBEdGSSD0Q0YxMwp1J8vgbLVEeZMC52wIM8DTF4/5GBaCotFFWlAqRWIABGAASgKCNEIbVulEAgFAsnI6kdFXG4vsMbXBbH2iz+MH3OQiAp19/P0AYCOUrgGe9HAi4hycPqeYFAPwRgUzr05a5sJny7zjXDO6BToBMPiI4A4Behz+SCWQ0kTRjmbaQzVUeJwBgbmmvu7ZzifIzlm3tGht6AwDGMLdLaBLQhsQGyNqXRy8A4O8jBLq+OtTKQVaOC+vaB0tGJwCGUfB4bml68CyZfXa10gpAGlQwO+viM8nvsIQud2gEAMpzUMEwN0nl+grFICyhS1N5KwAYU69U+YNFURkdoJPlG1kB0DeqVwCxMRwp76BUslDH06KhfZ4n2HWqAWDM5ZqCnt6t5vvb1y//714Xv9kC9M4OgnqAbtVvNQC0Pj5XC031XRE9rubvTb1eE5vdumbZJQAw06NpTXGpIR3Y3G9f5/tN8TvmK9Quv2zOUCGVANBE19D7mxVMXsz9rEkP5aVwVcccANP7NObKjrqSMfn9Y7VcX+XTeiUryAHQpP9JC0zxJlG+avIQ1FF5VKGirjkA1O47NGKCvy8Q5asy+E/TzyOCAJCaf5X/BN7TIa7i7xAsldl/mq5P4u4CAAeGr2A6MeJgZx/iMJ6zzLUhzUX+zA0EAK7ojyRXHuBi5evBDu2I8mYrDq8BpIwFpKYUwChuVSWTG7vyaMk2mUG+B80AZmYBHvXjV4HytkiftWQiPknPUYR0otPXhH1pEv7fpbxZ1yucKEVQ/cwi2AK0ohfQmaX7k2Kzb+t5mKrS9EKRk9L6gQHQ3iaFJeh/X/bfk8/TD18QOpXnw1UdJejZ0WMAlA8AZmbGS1CwxTIUQLiCgPJtPQ/ew+5NqBkDQK4AHGQxkipPhQQQsErjLF6X82/7tUH5tiJmhFJBft/GH98AAO5OBJ9sqgBrYBAW/L0FBJnh1RY1XCe/sIWl+Vg9zxjmQSygRVBrq2aPjQ9GrV85MwMBJs6vlQvKvwOgSn75dVjTz9s6sAVoVwBQ24DAAQovNgIIMPEKCOw+3coPNeTV5dQAQPkAAF680ZhsYap4aSKAgNEC3/neavYoA35DDHngXSd1SLiHfAEgTr1AwFKWA6fCneu0Xhcy/VwGdoH82fehFwh9mF8i6hflUEQ/k4SSn8VMz2cBwbNuXk0PH/XztrKHhD4/Q1wg44P7jHdoPvDgQ1w3aH3v0yYmYQmiNZFuOExwZgsQnBVJ5xVL59bCKsiWusQARepHGK9S7aVrb45xGKOIxPUFADqeYllAhkRvEC4d+DIBM50FgMhukLXR6w8Kepzt+I3Rmc6nwyquGwgImNCYWZ281n7G6n2Vmj8EEgvAQ2oSsUYEYYmfNhBG6v0Doj9kA+UAwCQYme/IjE02EEbs/ZKOOQCitATDaEOisMx+GIRSTBiq97P27He9K/Y+ypQAECtQNyWEUCgS4T98S/S8GffVoBsdNpmVRbcSAKhkFizDWAHzx397n3mPz3myxHUDL+59yy5WDQC0oo4ay9boARG8mbAFB+LHi118wCo61Rq0AiCu0PyHoxqTqWcolTxCJ5ucVgBQEBUU79fj+ZqJlbcerWc6NQKAAoiYWtELXWmC7CamNSvQCgCqhRx6oP54pHfYjutqvxMAuMIVgsDH692brwCnEwAUAghAEyaF9ykT4hbvP2IU6yVmLwAyTgBBHU+3/D7UEMmsvS9zXFf572AXNycAwAzWwCAsIu4igW0o8XmD+busKyNnANAAQFjN3xcwt5GBkF5fzfewSojmTF4AZK1gmFQ8azRA0CXd4oB4BMW7hjnqSEEAgDeswQBxWkCogS0iVxzxCO2HUjAAmQAAAkKt4BocKI1VxFhU6R2AXc33iukWbWRtxrhHA6AoDMCAVawKYBhACFvRTAJM5jK4M0neBsqCUH4lSr8v2pSmwPQHAAD//xlmNnoAAAAGSURBVAMABTvLnpY7IesAAAAASUVORK5CYII=";
|
|
34547
34547
|
const _imports_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFi0lEQVR4AdxaTZKrNhBuMblH8EnezC6ZynJclV3skzznJHZ2qfJbppzs5r2T2LlHxsr3tZB/QIBBApunohEI1Orvo9USgkwGTvanX3P7y9uzfX377GS+tj/P3+3rfA+xEOb7omyNc8oC+WJg01T9IAQoaAIGUMk+9nI07yJm5UQWYuRZRHJxiXlelC1QRFkjJxGemAV1oiz5lpQAewmagB3QGKM9MWsSadVr3j7HKCzXTUKAJXAYJ2lAS0PKBW1YtGXRpiRIUQS4vj3fC4ySs0vjcPDtgog5u0zvBnsRwP7IoOX6tsAYuVdi2y5WINj2MaIzAXzq7I9F0OrT5hB1ctjEkaWzN3QiQMFrRB8CQ7ROeoMOtV003UyABp3HBe8xgwSzUlt9SUt+EwHa312ga1H3KJdBAucgN5jTSoCyaYQTF5lUgs32dc4JVaPZjQRon5/Uk69gxZS6eeJUS4CCf/w+X0FcLTALxVK9oCVBAjjOF2O83jTxXQ4sa8UUABIkQMxHa98J6HrkorwOU4UAdRcEkEdG08s2YCK2ct0KAfJhkr5tlRu86/nRVDz7igAMG4sHm+Km5itXjBdarwhAeYqnf4AeCrKk20GsfJX4dIXxREDBTB6pf2l225kcn15ELFaAIrWdq6te8/f2RTIL3ecLPY6uvOBEANj9rYeyqyoAv2GB+efPg9l9+R3HS0jcBsBeLxWZv758ha1xnmDlhPVMAKIkG4iQitsXhvcngeAJuGyUkThPBVY/IigBhftLZIJrVaedvUmoAV/YGkcAgR6N6lACcP4JkmDDtDOwVteZhDrwWF6HkWtI/FZ0A0/AIl6jagCrkSQ0gU/5blJ0o6xwKbU+0a4/CWOBd0D1g433AFeUbt+dhHHBO6RH+QQC7I/uLPn+dhLuAb6ACwJcNCzOU2ftJNwRvFjzDAJk6NRIgk5sShboGJ0y4JX0X56SgOfLgoGOa0kotzcmeLz45SSgbMNQ560kDAG+DcyYBNAWkvAvD4JSzM6C14YphAdYqczhZbjEtzp9YQo10XnGGFLSrewwpgc0gvd2j0oCHn6GQDCGBwTBs8/bFO8Onr2uuRF6gB2agFrwWK5+F4l8d5C4lImY+qAk0akFvOpnYAx+wRmhO3zLsMQ0lAfcAl4ZwO5uJGTy3w9DENAFPPDrNjoJ9LCM63diJW6NTa5SH/BewZgk6HCMGIC2nywXMHEQu9kVWS1rYbR3Aa98JXg+Fgnf2LojIFE3KFaCqfckHcH7es0kpPDY45N6vRKQqBtUYklP8K0k+Bsi8o1ihgIlALlgQvSHxCWsCp//2YsE7y2peILqxbK2v6Fnru7PumcC6BLxruX+2Xud2w59nnY0CUlYWf07dL5PoBcfbbYb3+CJAHWJNMEQBnv1SXPqpcQqvQr4JwKoVVdn4r2Aqu4mjQ0DW3mUuiJAK6fxAlX1cLsAtgoB360X8OkHvjNWCNCnZp/4QbMyrOm1ae4O+mk9YHuQAA2I+o0/UGOKRZnlAw1aHiSAdyoJIrUVec8kpOa7g7e9lgDe4CKmXfF4mmJXGtMajG8kgPXc/N5OjwQGPfeXCmHUSisBrDk9EuyqLugRz6XcRAArOBImEBPY52948sREuZkA3qwx4fg0w/EjDpEHLO+9tPV52H61dSKANXV0cEPk6YWC5XcV7e/bWVfwtLkzAaxEEuANS6E3oHGW3UncU+f/gz0N6EWAb0uJcI1zvjBmt2BbXHvs9dS9/cyjCKACCrxhA2/gH5zLxAusVH8pAI4Iv4O7787v9Jc3dD1OQgAbVW+AUTr8sGu4WWRsnDg4QhW0AdGzYjRik0kkGQGX1pzI2G2X8AyOGuwiEMsJ1UZBWeGiJJ6oOHHnIIz3QHQ4285IaBNoiUz/AwAA//878XESAAAABklEQVQDAPJDlJLj/TutAAAAAElFTkSuQmCC";
|
|
34548
|
-
const
|
|
34549
|
-
(function(
|
|
34550
|
-
const
|
|
34548
|
+
const _0x5609b8 = _0x4084;
|
|
34549
|
+
(function(_0x134f03, _0x2bf0eb) {
|
|
34550
|
+
const _0x304de1 = _0x4084, _0x155bac = _0x134f03();
|
|
34551
34551
|
while (!![]) {
|
|
34552
34552
|
try {
|
|
34553
|
-
const
|
|
34554
|
-
if (
|
|
34555
|
-
else
|
|
34556
|
-
} catch (
|
|
34557
|
-
|
|
34553
|
+
const _0x14a20f = -parseInt(_0x304de1(210)) / 1 * (parseInt(_0x304de1(419)) / 2) + -parseInt(_0x304de1(338)) / 3 * (-parseInt(_0x304de1(298)) / 4) + parseInt(_0x304de1(160)) / 5 * (parseInt(_0x304de1(295)) / 6) + -parseInt(_0x304de1(314)) / 7 + -parseInt(_0x304de1(391)) / 8 * (-parseInt(_0x304de1(396)) / 9) + -parseInt(_0x304de1(208)) / 10 + -parseInt(_0x304de1(360)) / 11 * (parseInt(_0x304de1(363)) / 12);
|
|
34554
|
+
if (_0x14a20f === _0x2bf0eb) break;
|
|
34555
|
+
else _0x155bac["push"](_0x155bac["shift"]());
|
|
34556
|
+
} catch (_0x473b21) {
|
|
34557
|
+
_0x155bac["push"](_0x155bac["shift"]());
|
|
34558
34558
|
}
|
|
34559
34559
|
}
|
|
34560
|
-
})(
|
|
34561
|
-
var K = Object[
|
|
34560
|
+
})(_0x446f, 840083);
|
|
34561
|
+
var K = Object[_0x5609b8(381)], N = (_0x590dbe, _0x41feff, _0x428ec6) => _0x41feff in _0x590dbe ? K(_0x590dbe, _0x41feff, { "enumerable": true, "configurable": true, "writable": true, "value": _0x428ec6 }) : _0x590dbe[_0x41feff] = _0x428ec6, w = (_0x3a7c7e, _0x5191c5, _0x37f9b4) => N(_0x3a7c7e, typeof _0x5191c5 != _0x5609b8(294) ? _0x5191c5 + "" : _0x5191c5, _0x37f9b4);
|
|
34562
34562
|
let k = false;
|
|
34563
|
-
|
|
34564
|
-
const
|
|
34565
|
-
|
|
34566
|
-
|
|
34567
|
-
|
|
34568
|
-
|
|
34569
|
-
|
|
34570
|
-
|
|
34571
|
-
|
|
34572
|
-
|
|
34563
|
+
function _0x446f() {
|
|
34564
|
+
const _0x1154b0 = ["manualControlSeat", "deviceId", "handleError", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "缺少参数", "getMaxValue", "actionSeatReconnectWSAfterClosed", "QualityMonitorIDs", "robot", "token过期", "stringify", "state.voiceInstance", "getTypedArray", "/seat/call/", "Hangup", "length", "浏览器不支持硬件设备。", "CustomerCancel", "flush", "RobotSay", "symbol", "54QwgQoc", "wss://", "aiToSeatRobotHangup", "8EqGbkH", "qualityNoticeToCaller", "onopen", "recorder", "currentDeviceInfoOutput", "status", "typedArray", "toString", "您已触发质检规则", "autoClosed", "Error", "channels", "addEventListener", "connectInfo", "SendMsg", "NotSupportedError", "7325976vShQly", "Say", "connect", "actionSeatHandleIncoming", "phoneRingAudio", "recordsData", "actionSeatInitWSInstance", "客户说话", "close", "Offline", "CustomerID", "actionSeatStartWS", "qualityMonitorIDs", "inputSampleBits", "onceCall", "name", "maskPhoneNumber", "振铃中", "max", "parse", "then", "start", "SeatConnectClientFailedResp", "closed", "476961wsvujL", "onerror", "getterSeatCurrentDeviceInfoInputID", "catch", "呼出成功", "feed", "LineListID", "actions", "坐席正忙", "set", "pause", "CustomerSayText", "DictionaryName", "buffer", "16bitInt", "seatStatus", "push", "createBufferSource", "钱包/通话余量不足", "employeeID", "mobile", "PlanID", "132880PQpfyF", "actionSeatSendVoice", "operator", "132GRJecs", "gainNode", "ringing", "onclose", "客户已挂机", "getTracks", "src", "play", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "CallBack", "WSConnected", "起呼中", "destroy", "aiToSeat", "arraybuffer", "stop", "VoiceFrom", "SEAT_SET_VoiceWS", "defineProperty", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "rtmp://", "Answer", "Reject", "循环响铃", "SEAT_PLAY_AUDIO", "CallUnexpected", "SEAT_SET_RECORDSDATA", "split", "1219384eCQikY", "/websocket?access_token=", "Time", "用户拒绝提供信息。", "CallOnceFailed", "99kRcNHx", "readAsArrayBuffer", "enumerateDevices", "getFormatedValue", "encodePCM", "Text", "无法打开麦克风。异常信息:", "CustomerRefuse", "MANDATORY_UNSATISFIED_ERROR", "reconnectCount", "kind", "Data", "planID", "audio", "SeatCancel", "坐席说话", "substr", "assign", "key", "actionSeatInitVoiceWSInstance", "startTime", "call", "SeatSayText", "22518QeIgFW", "CustomerHangUp", "isTypedArray", "botStatus", "handleData", "OutPlanID", "ended", "callOnceStage", "setInt16", "Msg", "errMsg", "RobotPID", "hangup", "getterSeatCurrentDeviceInfoOutputID", "option", "wss://api.kiwi.tuotoo.org", "outputSampleBits", "通话中", "坐席拒接", "callingStage", "companyID", "devices", "QualityDictionaryIDs", "SEAT_SAVE_KEY_VALUE", "QualityNoticeToCaller", "getTime", "SeatConflict", "map", "includes", "callOptions", "CustomerConnected", "getBlob", "坐席已挂机", "未处理情况", "坐席上线成功", "actionSeatInitVoiceWSInstance异常", "通话异常", "updateConfig", "replace", "indexOf", "actionHandleCallBack", "destination", "result", "taskID", "坐席在其他地方上线", "客户拒接", "SEAT_SET_WS", "PERMISSION_DENIED", "bind", "maxValue", "869945lsZNWH", "SeatSay", "encoding", "SEAT_SEND_RAW_MESSAGE", "clear", "onmessage", "state", "0001-01-01T00:00:00Z", "onaudioprocess", "呼叫参数", "SeatBusy", "context", "value", "getUserMedia", "机器人说话", "createElement", "NOT_SUPPORTED_ERROR", "binaryType", "CallOnceSuccess", "seatData", "MandatoryUnsatisfiedError", "min", "test", "customer", "wss://api.kiwi.tuotoo.com", "env", "CallConnected", "byteLength", "CallOnceRinging", "InsufficientBalance", "object", "init", "SeatQualityNotice", "AudioContext", "坐席下线", "createContext", "actionSeatStartTalk", "mediaDevice", "CallNext", "RuleName", "offline", "size", "error", "actionSeatVoiceWS", "SeatConnectedResp", "ping", "token", "aiToSeatVoiceUrl", "11919680JRSvzg", "SeatConnected", "31qOkvHt", "sampleRate", "onMessage", "target", "CallConnecting", "disconnect", "?key=", "Cancel", "Messages", "connected", "answer", "forEach", "getterSeatIsConnected", "volume", "无法发现指定的硬件设备。", "prototype", "SEAT_UPDATE_WEBSOCKET_STATUS", "message", "CustomerSay", "currentTime", "createMediaStreamSource", "SeatRefuse", "SEAT_RESET_AUDIO", "TypeAIToSeat", "isAutoAnswer", "$1****$2", "initial", "TaskID", "qualityDictionaryIDs", "SeatHangUp", "samples", "WSConnectedReplace", "url", "instance", "voiceInstance", "Code", "响铃中", "instanceClose", "getterSeatIsRinging", "find", "Mobile", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3", "log", "Type", "InternetErrorHangUp", "SEAT_SEND_MESSAGE", "filter", "customerInfo", "send", "audioCtx", "actionSeatStartPlayer", "CallOnce", "getterSeatCallOnceStage", "getChannelData", "random", "mediaDevices", "通话连接中", "srcObject", "lineListID", "TypeCallOnce", "data", "interval", "flushingTime", "gain"];
|
|
34565
|
+
_0x446f = function() {
|
|
34566
|
+
return _0x1154b0;
|
|
34567
|
+
};
|
|
34568
|
+
return _0x446f();
|
|
34569
|
+
}
|
|
34570
|
+
const Y = function(_0x48358c, _0x110e60) {
|
|
34571
|
+
const _0x28345c = _0x5609b8;
|
|
34572
|
+
this["context"] = new AudioContext({ "sampleRate": 8e3 });
|
|
34573
|
+
let _0x376a25 = this[_0x28345c(171)][_0x28345c(230)](_0x48358c), _0x3531a4 = this[_0x28345c(171)]["createScriptProcessor"](2048, 1, 1);
|
|
34574
|
+
const _0x2aa5b3 = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
|
|
34575
|
+
const _0x43a85a = _0x28345c;
|
|
34576
|
+
this["buffer"] = [], this[_0x43a85a(201)] = 0;
|
|
34577
|
+
}, "input": function(_0x41dc6d) {
|
|
34578
|
+
const _0x1d7eba = _0x28345c;
|
|
34579
|
+
this[_0x1d7eba(351)]["push"](new Float32Array(_0x41dc6d)), this["size"] += _0x41dc6d["length"];
|
|
34573
34580
|
}, "compress": function() {
|
|
34574
|
-
const
|
|
34575
|
-
for (var
|
|
34576
|
-
for (var
|
|
34577
|
-
return
|
|
34581
|
+
const _0x6b8c5a = _0x28345c;
|
|
34582
|
+
for (var _0x4a4049 = new Float32Array(this[_0x6b8c5a(201)]), _0x367a6c = 0, _0x14e42f = 0; _0x14e42f < this[_0x6b8c5a(351)][_0x6b8c5a(289)]; _0x14e42f++) _0x4a4049["set"](this[_0x6b8c5a(351)][_0x14e42f], _0x367a6c), _0x367a6c += this[_0x6b8c5a(351)][_0x14e42f][_0x6b8c5a(289)];
|
|
34583
|
+
for (var _0x583a37 = parseInt(String(this["inputSampleRate"] / this["outputSampleRate"])), _0x2495f0 = _0x4a4049["length"] / _0x583a37, _0x35802a = new Float32Array(_0x2495f0), _0x440362 = 0, _0x59c042 = 0; _0x440362 < _0x2495f0; ) _0x35802a[_0x440362] = _0x4a4049[_0x59c042], _0x59c042 += _0x583a37, _0x440362++;
|
|
34584
|
+
return _0x35802a;
|
|
34578
34585
|
}, "encodePCM": function() {
|
|
34579
|
-
const
|
|
34580
|
-
for (var
|
|
34581
|
-
var
|
|
34582
|
-
|
|
34586
|
+
const _0x5ad952 = _0x28345c;
|
|
34587
|
+
for (var _0x485681 = Math["min"](this[_0x5ad952(327)], this[_0x5ad952(435)]), _0x1bfeab = this["compress"](), _0x13e4ab = _0x1bfeab[_0x5ad952(289)] * (_0x485681 / 8), _0x2d4902 = new ArrayBuffer(_0x13e4ab), _0x54d1f1 = new DataView(_0x2d4902), _0x2458e2 = 0, _0x4515f6 = 0; _0x4515f6 < _0x1bfeab["length"]; _0x4515f6++, _0x2458e2 += 2) {
|
|
34588
|
+
var _0xb11476 = Math[_0x5ad952(332)](-1, Math[_0x5ad952(181)](1, _0x1bfeab[_0x4515f6]));
|
|
34589
|
+
_0x54d1f1[_0x5ad952(427)](_0x2458e2, _0xb11476 < 0 ? _0xb11476 * 32768 : _0xb11476 * 32767, true);
|
|
34583
34590
|
}
|
|
34584
|
-
return new Blob([
|
|
34591
|
+
return new Blob([_0x54d1f1]);
|
|
34585
34592
|
} };
|
|
34586
|
-
var
|
|
34587
|
-
const
|
|
34588
|
-
var
|
|
34589
|
-
|
|
34590
|
-
const
|
|
34591
|
-
if (!(!
|
|
34592
|
-
var
|
|
34593
|
-
if (!(!
|
|
34594
|
-
var
|
|
34595
|
-
|
|
34596
|
-
}
|
|
34597
|
-
}
|
|
34598
|
-
},
|
|
34599
|
-
};
|
|
34600
|
-
this[
|
|
34601
|
-
const
|
|
34602
|
-
k = true,
|
|
34603
|
-
}, this[
|
|
34604
|
-
const
|
|
34605
|
-
k = false,
|
|
34606
|
-
}, this[
|
|
34607
|
-
const
|
|
34608
|
-
return
|
|
34609
|
-
}, this[
|
|
34610
|
-
const
|
|
34611
|
-
|
|
34612
|
-
},
|
|
34613
|
-
const
|
|
34614
|
-
if (!(!k || !this[
|
|
34615
|
-
var
|
|
34616
|
-
|
|
34617
|
-
}
|
|
34618
|
-
};
|
|
34619
|
-
}, O = (
|
|
34620
|
-
const
|
|
34621
|
-
switch (
|
|
34622
|
-
case
|
|
34593
|
+
var _0x3df9d1 = function() {
|
|
34594
|
+
const _0x22c76c = _0x28345c;
|
|
34595
|
+
var _0x3aa263 = new FileReader();
|
|
34596
|
+
_0x3aa263["onload"] = (_0x59d153) => {
|
|
34597
|
+
const _0x24eb7a = _0x4084;
|
|
34598
|
+
if (!(!_0x59d153[_0x24eb7a(213)] || !k)) {
|
|
34599
|
+
var _0x34a1e1 = _0x59d153[_0x24eb7a(213)][_0x24eb7a(152)];
|
|
34600
|
+
if (!(!_0x34a1e1 || typeof _0x34a1e1 == "string")) {
|
|
34601
|
+
var _0x168da2 = new Int16Array(_0x34a1e1);
|
|
34602
|
+
_0x110e60(_0x168da2);
|
|
34603
|
+
}
|
|
34604
|
+
}
|
|
34605
|
+
}, _0x3aa263[_0x22c76c(397)](_0x2aa5b3[_0x22c76c(400)]()), _0x2aa5b3["clear"]();
|
|
34606
|
+
};
|
|
34607
|
+
this[_0x28345c(335)] = function() {
|
|
34608
|
+
const _0x293aa3 = _0x28345c;
|
|
34609
|
+
k = true, _0x376a25[_0x293aa3(316)](_0x3531a4), _0x3531a4[_0x293aa3(316)](this[_0x293aa3(171)]["destination"]);
|
|
34610
|
+
}, this[_0x28345c(378)] = function() {
|
|
34611
|
+
const _0x49a374 = _0x28345c;
|
|
34612
|
+
k = false, _0x48358c["getTracks"]()[_0x49a374(221)]((_0x38ed20) => _0x38ed20["stop"]()), _0x3531a4 && (_0x3531a4[_0x49a374(168)] = null, _0x3531a4["disconnect"]()), _0x376a25 && _0x376a25[_0x49a374(215)](), this[_0x49a374(171)] && this[_0x49a374(171)][_0x49a374(322)](), _0x3531a4 = null, _0x376a25 = null, this["context"] = null;
|
|
34613
|
+
}, this[_0x28345c(450)] = function() {
|
|
34614
|
+
const _0x5a705e = _0x28345c;
|
|
34615
|
+
return _0x2aa5b3[_0x5a705e(400)]();
|
|
34616
|
+
}, this[_0x28345c(164)] = function() {
|
|
34617
|
+
const _0x4edf3c = _0x28345c;
|
|
34618
|
+
_0x2aa5b3[_0x4edf3c(164)](), this[_0x4edf3c(171)] && (this["context"][_0x4edf3c(322)](), this["context"] = null);
|
|
34619
|
+
}, _0x3531a4["onaudioprocess"] = function(_0xb9de1a) {
|
|
34620
|
+
const _0x4d3cc0 = _0x28345c;
|
|
34621
|
+
if (!(!k || !this[_0x4d3cc0(171)] || this["context"][_0x4d3cc0(166)] === _0x4d3cc0(337))) {
|
|
34622
|
+
var _0x1b35da = _0xb9de1a["inputBuffer"][_0x4d3cc0(263)](0);
|
|
34623
|
+
_0x2aa5b3["input"](_0x1b35da), _0x3df9d1();
|
|
34624
|
+
}
|
|
34625
|
+
};
|
|
34626
|
+
}, O = (_0x3b6f59) => {
|
|
34627
|
+
const _0x3f5cc7 = _0x5609b8;
|
|
34628
|
+
switch (_0x3b6f59[_0x3f5cc7(227)] || _0x3b6f59[_0x3f5cc7(329)]) {
|
|
34629
|
+
case _0x3f5cc7(157):
|
|
34623
34630
|
case "PermissionDeniedError":
|
|
34624
|
-
return
|
|
34625
|
-
case
|
|
34626
|
-
case
|
|
34627
|
-
return
|
|
34628
|
-
case
|
|
34629
|
-
case
|
|
34630
|
-
return
|
|
34631
|
+
return _0x3f5cc7(394);
|
|
34632
|
+
case _0x3f5cc7(176):
|
|
34633
|
+
case _0x3f5cc7(313):
|
|
34634
|
+
return _0x3f5cc7(290);
|
|
34635
|
+
case _0x3f5cc7(404):
|
|
34636
|
+
case _0x3f5cc7(180):
|
|
34637
|
+
return _0x3f5cc7(224);
|
|
34631
34638
|
default:
|
|
34632
|
-
return
|
|
34639
|
+
return _0x3f5cc7(402) + _0x3b6f59;
|
|
34633
34640
|
}
|
|
34634
|
-
}, x = () => !navigator[
|
|
34641
|
+
}, x = () => !navigator["mediaDevices"] || !navigator[_0x5609b8(265)][_0x5609b8(173)] ? (console[_0x5609b8(252)]("当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。"), false) : true;
|
|
34635
34642
|
let T = "";
|
|
34636
34643
|
const V = () => {
|
|
34637
|
-
const
|
|
34644
|
+
const _0x386af6 = _0x5609b8;
|
|
34638
34645
|
E();
|
|
34639
|
-
let
|
|
34640
|
-
T = new Audio(
|
|
34641
|
-
const
|
|
34642
|
-
console["
|
|
34643
|
-
}), T[
|
|
34644
|
-
const
|
|
34645
|
-
T[
|
|
34646
|
-
}), T[
|
|
34646
|
+
let _0x4c6275 = _0x386af6(251);
|
|
34647
|
+
T = new Audio(_0x4c6275), T[_0x386af6(310)]("error", (_0x43a9b0) => {
|
|
34648
|
+
const _0x8577f = _0x386af6;
|
|
34649
|
+
console[_0x8577f(252)]("error", _0x43a9b0);
|
|
34650
|
+
}), T[_0x386af6(310)]("ended", () => {
|
|
34651
|
+
const _0x38fd0b = _0x386af6;
|
|
34652
|
+
T[_0x38fd0b(370)](), console[_0x38fd0b(252)](_0x38fd0b(386));
|
|
34653
|
+
}), T[_0x386af6(370)]();
|
|
34647
34654
|
}, E = () => {
|
|
34648
|
-
const
|
|
34649
|
-
T && (console[
|
|
34655
|
+
const _0x5e6efc = _0x5609b8;
|
|
34656
|
+
T && (console[_0x5e6efc(252)]("停止响铃"), T[_0x5e6efc(348)](), T = "");
|
|
34650
34657
|
}, W = () => {
|
|
34651
|
-
const
|
|
34652
|
-
let
|
|
34653
|
-
const
|
|
34654
|
-
|
|
34655
|
-
const
|
|
34656
|
-
console[
|
|
34657
|
-
}),
|
|
34658
|
-
const
|
|
34659
|
-
|
|
34660
|
-
}),
|
|
34658
|
+
const _0x5e564c = _0x5609b8;
|
|
34659
|
+
let _0x2fddb9 = _0x5e564c(382);
|
|
34660
|
+
const _0x5b6b98 = new Audio(_0x2fddb9);
|
|
34661
|
+
_0x5b6b98["addEventListener"](_0x5e564c(202), (_0x92ba7b) => {
|
|
34662
|
+
const _0x55990b = _0x5e564c;
|
|
34663
|
+
console[_0x55990b(252)]("error", _0x92ba7b);
|
|
34664
|
+
}), _0x5b6b98[_0x5e564c(310)](_0x5e564c(425), () => {
|
|
34665
|
+
const _0x34f52c = _0x5e564c;
|
|
34666
|
+
_0x5b6b98[_0x34f52c(348)]();
|
|
34667
|
+
}), _0x5b6b98[_0x5e564c(370)]();
|
|
34661
34668
|
}, v = () => {
|
|
34662
|
-
const
|
|
34663
|
-
let
|
|
34664
|
-
const
|
|
34665
|
-
|
|
34666
|
-
const
|
|
34667
|
-
console["log"](
|
|
34668
|
-
}),
|
|
34669
|
-
|
|
34670
|
-
|
|
34671
|
-
},
|
|
34672
|
-
|
|
34673
|
-
|
|
34674
|
-
|
|
34675
|
-
|
|
34676
|
-
|
|
34677
|
-
|
|
34678
|
-
|
|
34669
|
+
const _0x2de133 = _0x5609b8;
|
|
34670
|
+
let _0x4fa2fc = _0x2de133(277);
|
|
34671
|
+
const _0x1cccda = new Audio(_0x4fa2fc);
|
|
34672
|
+
_0x1cccda["addEventListener"](_0x2de133(202), (_0x23aef2) => {
|
|
34673
|
+
const _0x113530 = _0x2de133;
|
|
34674
|
+
console["log"](_0x113530(202), _0x23aef2);
|
|
34675
|
+
}), _0x1cccda[_0x2de133(310)](_0x2de133(425), () => {
|
|
34676
|
+
const _0x25ef07 = _0x2de133;
|
|
34677
|
+
_0x1cccda[_0x25ef07(348)]();
|
|
34678
|
+
}), _0x1cccda["play"]();
|
|
34679
|
+
}, B = (_0x5cd449, _0x103307) => {
|
|
34680
|
+
const _0x34681b = _0x5609b8;
|
|
34681
|
+
navigator["mediaDevices"]["getUserMedia"]({ "audio": {} })[_0x34681b(334)]((_0x6823a8) => {
|
|
34682
|
+
const _0x2f4ad7 = _0x34681b;
|
|
34683
|
+
_0x5cd449 && _0x5cd449(), _0x6823a8[_0x2f4ad7(368)]()["forEach"]((_0xc7684c) => _0xc7684c[_0x2f4ad7(378)]());
|
|
34684
|
+
})[_0x34681b(341)]((_0xe59fe1) => {
|
|
34685
|
+
const _0x25d89e = O(_0xe59fe1);
|
|
34686
|
+
_0x103307 && _0x103307({ "errMsg": _0x25d89e });
|
|
34679
34687
|
});
|
|
34680
|
-
}, b = () => (Math[
|
|
34681
|
-
function
|
|
34682
|
-
const
|
|
34683
|
-
|
|
34688
|
+
}, b = () => (Math[_0x5609b8(264)]() * 1e7)[_0x5609b8(305)](16)[_0x5609b8(412)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x5609b8(444)]() + "-" + Math[_0x5609b8(264)]()[_0x5609b8(305)]()["substr"](2, 5);
|
|
34689
|
+
function _0x4084(_0x562c0d, _0x48998d) {
|
|
34690
|
+
const _0x446f6b = _0x446f();
|
|
34691
|
+
return _0x4084 = function(_0x408455, _0x419986) {
|
|
34692
|
+
_0x408455 = _0x408455 - 149;
|
|
34693
|
+
let _0x3377bc = _0x446f6b[_0x408455];
|
|
34694
|
+
return _0x3377bc;
|
|
34695
|
+
}, _0x4084(_0x562c0d, _0x48998d);
|
|
34696
|
+
}
|
|
34697
|
+
function F(_0x1d239a) {
|
|
34698
|
+
const _0x35a9fc = _0x5609b8;
|
|
34699
|
+
let _0x38cbbb;
|
|
34684
34700
|
try {
|
|
34685
|
-
|
|
34701
|
+
_0x38cbbb = JSON[_0x35a9fc(333)](atob(_0x1d239a[_0x35a9fc(390)](".")[1]))["exp"];
|
|
34686
34702
|
} catch {
|
|
34687
|
-
|
|
34688
|
-
}
|
|
34689
|
-
return
|
|
34690
|
-
}
|
|
34691
|
-
const j = (
|
|
34692
|
-
function A(
|
|
34693
|
-
|
|
34694
|
-
|
|
34695
|
-
|
|
34696
|
-
|
|
34697
|
-
|
|
34698
|
-
|
|
34699
|
-
},
|
|
34700
|
-
|
|
34701
|
-
|
|
34702
|
-
|
|
34703
|
-
|
|
34704
|
-
|
|
34705
|
-
|
|
34706
|
-
|
|
34707
|
-
|
|
34708
|
-
|
|
34709
|
-
|
|
34710
|
-
|
|
34711
|
-
|
|
34712
|
-
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
-
|
|
34716
|
-
|
|
34717
|
-
|
|
34718
|
-
|
|
34719
|
-
|
|
34720
|
-
}
|
|
34721
|
-
|
|
34722
|
-
|
|
34723
|
-
|
|
34724
|
-
|
|
34725
|
-
|
|
34726
|
-
|
|
34727
|
-
|
|
34728
|
-
|
|
34729
|
-
|
|
34730
|
-
|
|
34731
|
-
|
|
34732
|
-
|
|
34733
|
-
|
|
34734
|
-
|
|
34735
|
-
|
|
34736
|
-
|
|
34703
|
+
_0x38cbbb = 0;
|
|
34704
|
+
}
|
|
34705
|
+
return _0x38cbbb > Date["now"]() / 1e3;
|
|
34706
|
+
}
|
|
34707
|
+
const j = (_0xc698cc) => _0xc698cc[_0x5609b8(457)](new RegExp(/(\d{3})\d*(\d{4})/), _0x5609b8(235));
|
|
34708
|
+
function A(_0x3ccebd) {
|
|
34709
|
+
const _0x586a1b = _0x5609b8;
|
|
34710
|
+
this[_0x586a1b(191)](_0x3ccebd);
|
|
34711
|
+
}
|
|
34712
|
+
A[_0x5609b8(225)][_0x5609b8(191)] = function(_0x15c10f) {
|
|
34713
|
+
const _0x531861 = _0x5609b8;
|
|
34714
|
+
var _0x213537 = { "encoding": _0x531861(352), "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
|
|
34715
|
+
this["option"] = Object[_0x531861(413)]({}, _0x213537, _0x15c10f), this[_0x531861(240)] = new Float32Array(), this[_0x531861(292)] = this[_0x531861(292)][_0x531861(158)](this), this[_0x531861(271)] = setInterval(this["flush"], this[_0x531861(433)][_0x531861(272)]), this[_0x531861(159)] = this[_0x531861(279)](), this[_0x531861(304)] = this[_0x531861(286)](), this[_0x531861(195)]();
|
|
34716
|
+
}, A[_0x5609b8(225)]["getMaxValue"] = function() {
|
|
34717
|
+
const _0x734ea7 = _0x5609b8;
|
|
34718
|
+
var _0x2fd9a8 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
|
|
34719
|
+
return _0x2fd9a8[this[_0x734ea7(433)][_0x734ea7(162)]] ? _0x2fd9a8[this[_0x734ea7(433)][_0x734ea7(162)]] : _0x2fd9a8[_0x734ea7(352)];
|
|
34720
|
+
}, A[_0x5609b8(225)]["getTypedArray"] = function() {
|
|
34721
|
+
const _0x236815 = _0x5609b8;
|
|
34722
|
+
var _0x2f95e2 = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
|
|
34723
|
+
return _0x2f95e2[this[_0x236815(433)][_0x236815(162)]] ? _0x2f95e2[this[_0x236815(433)]["encoding"]] : _0x2f95e2[_0x236815(352)];
|
|
34724
|
+
}, A[_0x5609b8(225)]["createContext"] = function() {
|
|
34725
|
+
const _0x50b71b = _0x5609b8;
|
|
34726
|
+
this[_0x50b71b(259)] = new (window[_0x50b71b(193)] || window["webkitAudioContext"])(), this[_0x50b71b(364)] = this[_0x50b71b(259)]["createGain"](), this["gainNode"]["gain"][_0x50b71b(172)] = 1, this[_0x50b71b(364)][_0x50b71b(316)](this["audioCtx"][_0x50b71b(151)]), this[_0x50b71b(416)] = this[_0x50b71b(259)][_0x50b71b(229)];
|
|
34727
|
+
}, A[_0x5609b8(225)][_0x5609b8(421)] = function(_0x25c93f) {
|
|
34728
|
+
const _0x259d5e = _0x5609b8;
|
|
34729
|
+
return _0x25c93f[_0x259d5e(187)] && _0x25c93f[_0x259d5e(351)] && _0x25c93f["buffer"]["constructor"] == ArrayBuffer;
|
|
34730
|
+
}, A[_0x5609b8(225)][_0x5609b8(343)] = function(_0x2563e5) {
|
|
34731
|
+
const _0x1ba46e = _0x5609b8;
|
|
34732
|
+
if (this[_0x1ba46e(421)](_0x2563e5)) {
|
|
34733
|
+
_0x2563e5 = this["getFormatedValue"](_0x2563e5);
|
|
34734
|
+
var _0x3045f2 = new Float32Array(this[_0x1ba46e(240)]["length"] + _0x2563e5["length"]);
|
|
34735
|
+
_0x3045f2[_0x1ba46e(347)](this[_0x1ba46e(240)], 0), _0x3045f2[_0x1ba46e(347)](_0x2563e5, this[_0x1ba46e(240)][_0x1ba46e(289)]), this[_0x1ba46e(240)] = _0x3045f2;
|
|
34736
|
+
}
|
|
34737
|
+
}, A["prototype"][_0x5609b8(399)] = function(_0x4b8c6f) {
|
|
34738
|
+
const _0x126b64 = _0x5609b8;
|
|
34739
|
+
var _0x4b8c6f = new this[_0x126b64(304)](_0x4b8c6f["buffer"]), _0x23db34 = new Float32Array(_0x4b8c6f[_0x126b64(289)]), _0x5316f0;
|
|
34740
|
+
for (_0x5316f0 = 0; _0x5316f0 < _0x4b8c6f[_0x126b64(289)]; _0x5316f0++) _0x23db34[_0x5316f0] = _0x4b8c6f[_0x5316f0] / this[_0x126b64(159)];
|
|
34741
|
+
return _0x23db34;
|
|
34742
|
+
}, A[_0x5609b8(225)][_0x5609b8(223)] = function(_0x3bc603) {
|
|
34743
|
+
const _0x97ac88 = _0x5609b8;
|
|
34744
|
+
this[_0x97ac88(364)][_0x97ac88(273)][_0x97ac88(172)] = _0x3bc603;
|
|
34745
|
+
}, A[_0x5609b8(225)][_0x5609b8(375)] = function() {
|
|
34746
|
+
const _0x14eda6 = _0x5609b8;
|
|
34747
|
+
this["interval"] && clearInterval(this[_0x14eda6(271)]), this[_0x14eda6(240)] = null, this[_0x14eda6(259)] && this["audioCtx"]["close"](), this[_0x14eda6(259)] = null;
|
|
34748
|
+
}, A["prototype"]["flush"] = function() {
|
|
34749
|
+
const _0x577fca = _0x5609b8;
|
|
34750
|
+
if (this["samples"][_0x577fca(289)]) {
|
|
34751
|
+
var _0x39e59a = this[_0x577fca(259)][_0x577fca(355)](), _0x16b8d8 = this[_0x577fca(240)]["length"] / this["option"][_0x577fca(309)], _0xdb848e = this[_0x577fca(259)]["createBuffer"](this[_0x577fca(433)][_0x577fca(309)], _0x16b8d8, this[_0x577fca(433)][_0x577fca(211)]), _0x1051c8, _0x6382fb, _0x55d5d2, _0x3711bb, _0x3a9699;
|
|
34752
|
+
for (_0x6382fb = 0; _0x6382fb < this["option"][_0x577fca(309)]; _0x6382fb++) for (_0x1051c8 = _0xdb848e[_0x577fca(263)](_0x6382fb), _0x55d5d2 = _0x6382fb, _0x3a9699 = 50, _0x3711bb = 0; _0x3711bb < _0x16b8d8; _0x3711bb++) _0x1051c8[_0x3711bb] = this[_0x577fca(240)][_0x55d5d2], _0x3711bb < 50 && (_0x1051c8[_0x3711bb] = _0x1051c8[_0x3711bb] * _0x3711bb / 50), _0x3711bb >= _0x16b8d8 - 51 && (_0x1051c8[_0x3711bb] = _0x1051c8[_0x3711bb] * _0x3a9699-- / 50), _0x55d5d2 += this[_0x577fca(433)][_0x577fca(309)];
|
|
34753
|
+
this[_0x577fca(416)] < this[_0x577fca(259)][_0x577fca(229)] && (this[_0x577fca(416)] = this[_0x577fca(259)][_0x577fca(229)]), _0x39e59a[_0x577fca(351)] = _0xdb848e, _0x39e59a[_0x577fca(316)](this[_0x577fca(364)]), _0x39e59a[_0x577fca(335)](this[_0x577fca(416)]), this[_0x577fca(416)] += _0xdb848e["duration"], this[_0x577fca(240)] = new Float32Array();
|
|
34737
34754
|
}
|
|
34738
34755
|
};
|
|
34739
34756
|
let l = { "companyID": "", "employeeID": "", "token": "", "callOptions": {}, "onMessage": () => {
|
|
34740
34757
|
} };
|
|
34741
|
-
function H(
|
|
34742
|
-
const
|
|
34743
|
-
let
|
|
34758
|
+
function H(_0x3898f4) {
|
|
34759
|
+
const _0x134deb = _0x5609b8;
|
|
34760
|
+
let _0x19660c = "";
|
|
34744
34761
|
try {
|
|
34745
|
-
|
|
34746
|
-
} catch (
|
|
34747
|
-
console[
|
|
34762
|
+
_0x19660c = JSON[_0x134deb(284)](_0x3898f4);
|
|
34763
|
+
} catch (_0x321b5a) {
|
|
34764
|
+
console["log"](_0x134deb(423), _0x321b5a);
|
|
34748
34765
|
}
|
|
34749
|
-
return
|
|
34766
|
+
return _0x19660c;
|
|
34750
34767
|
}
|
|
34751
|
-
function G(
|
|
34752
|
-
const
|
|
34753
|
-
return
|
|
34768
|
+
function G(_0x1edb92) {
|
|
34769
|
+
const _0x3de77b = _0x5609b8;
|
|
34770
|
+
return _0x1edb92 === _0x3de77b(182) ? _0x3de77b(434) : _0x3de77b(184);
|
|
34754
34771
|
}
|
|
34755
|
-
let
|
|
34772
|
+
let U = "";
|
|
34756
34773
|
function $() {
|
|
34757
|
-
|
|
34758
|
-
const
|
|
34759
|
-
c[
|
|
34774
|
+
M(), U = setInterval(() => {
|
|
34775
|
+
const _0x45f353 = _0x4084;
|
|
34776
|
+
c["actionSeatHandleIncoming"]({ "type": _0x45f353(312) });
|
|
34760
34777
|
}, 3e4);
|
|
34761
34778
|
}
|
|
34762
|
-
function
|
|
34763
|
-
|
|
34764
|
-
return _0x548d = function(_0x548d65, _0x37fb73) {
|
|
34765
|
-
_0x548d65 = _0x548d65 - 215;
|
|
34766
|
-
let _0x15e7d1 = _0x37f668[_0x548d65];
|
|
34767
|
-
return _0x15e7d1;
|
|
34768
|
-
}, _0x548d(_0x3113e7, _0x12a02c);
|
|
34769
|
-
}
|
|
34770
|
-
function U() {
|
|
34771
|
-
M && clearInterval(M);
|
|
34779
|
+
function M() {
|
|
34780
|
+
U && clearInterval(U);
|
|
34772
34781
|
}
|
|
34773
|
-
const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status":
|
|
34774
|
-
const
|
|
34775
|
-
return a[
|
|
34782
|
+
const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x5609b8(236), "botStatus": "initial", "audio": document[_0x5609b8(175)](_0x5609b8(409)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a[_0x5609b8(179)]["results"] || [], "getterSeatAudioInput"() {
|
|
34783
|
+
const _0x5b9605 = _0x5609b8;
|
|
34784
|
+
return a["mediaDevice"][_0x5b9605(256)]((_0xfc9506) => _0xfc9506["kind"] === "audioinput");
|
|
34776
34785
|
}, "getterSeatAudioOutput"() {
|
|
34777
|
-
const
|
|
34778
|
-
return a[
|
|
34786
|
+
const _0x213740 = _0x5609b8;
|
|
34787
|
+
return a[_0x213740(197)][_0x213740(256)]((_0x3bd68a) => _0x3bd68a[_0x213740(406)] === "audiooutput");
|
|
34779
34788
|
}, "getterSeatCurrentDeviceInfoInputID"() {
|
|
34780
|
-
const
|
|
34781
|
-
return a[
|
|
34789
|
+
const _0x580954 = _0x5609b8;
|
|
34790
|
+
return a["currentDeviceInfoInput"] ? a["currentDeviceInfoInput"][_0x580954(275)] : "";
|
|
34782
34791
|
}, "getterSeatCurrentDeviceInfoOutputID"() {
|
|
34783
|
-
const
|
|
34784
|
-
return a[
|
|
34785
|
-
}, "getterSeatCurrentPhoneRingAudio"(
|
|
34786
|
-
const
|
|
34787
|
-
return
|
|
34792
|
+
const _0xf9ae85 = _0x5609b8;
|
|
34793
|
+
return a[_0xf9ae85(302)] ? a[_0xf9ae85(302)][_0xf9ae85(275)] : "";
|
|
34794
|
+
}, "getterSeatCurrentPhoneRingAudio"(_0x289731) {
|
|
34795
|
+
const _0x59da90 = _0x5609b8;
|
|
34796
|
+
return _0x289731[_0x59da90(318)];
|
|
34788
34797
|
}, "getterSeatCustomerInfo"() {
|
|
34789
|
-
const
|
|
34790
|
-
return a[
|
|
34798
|
+
const _0x1a30b3 = _0x5609b8;
|
|
34799
|
+
return a[_0x1a30b3(257)] ? a[_0x1a30b3(257)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
|
|
34791
34800
|
}, "getterSeatConnectInfo"() {
|
|
34792
|
-
const
|
|
34793
|
-
return a[
|
|
34801
|
+
const _0x353568 = _0x5609b8;
|
|
34802
|
+
return a[_0x353568(311)] ? a[_0x353568(311)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
|
|
34794
34803
|
}, "getterSeatIsRinging"() {
|
|
34795
|
-
const
|
|
34796
|
-
return a[
|
|
34804
|
+
const _0x1c3131 = _0x5609b8;
|
|
34805
|
+
return a[_0x1c3131(438)] === _0x1c3131(365);
|
|
34797
34806
|
}, "getterSeatIsConnected"() {
|
|
34798
|
-
const
|
|
34799
|
-
return a[
|
|
34807
|
+
const _0x3d3104 = _0x5609b8;
|
|
34808
|
+
return a[_0x3d3104(438)] === _0x3d3104(219);
|
|
34800
34809
|
}, "getterSeatIsHangup"() {
|
|
34801
|
-
const
|
|
34802
|
-
return a[
|
|
34810
|
+
const _0x1d14e6 = _0x5609b8;
|
|
34811
|
+
return a[_0x1d14e6(438)] === _0x1d14e6(431);
|
|
34803
34812
|
}, "getterSeatStatus"() {
|
|
34804
|
-
const
|
|
34805
|
-
return a[
|
|
34813
|
+
const _0x546a43 = _0x5609b8;
|
|
34814
|
+
return a[_0x546a43(353)];
|
|
34806
34815
|
}, "getterSeatCanCallout"() {
|
|
34807
|
-
const
|
|
34808
|
-
return a[
|
|
34816
|
+
const _0x296e13 = _0x5609b8;
|
|
34817
|
+
return a[_0x296e13(303)] === _0x296e13(219);
|
|
34809
34818
|
}, "getterSeatBotStatus"() {
|
|
34810
34819
|
return a["botStatus"];
|
|
34811
34820
|
}, "getterSeatRecordsData"() {
|
|
34812
|
-
|
|
34813
|
-
return a[_0x28789a(473)];
|
|
34821
|
+
return a["recordsData"];
|
|
34814
34822
|
}, "getterSeatOnceCall"() {
|
|
34815
|
-
const
|
|
34816
|
-
return a[
|
|
34823
|
+
const _0x369095 = _0x5609b8;
|
|
34824
|
+
return a[_0x369095(328)];
|
|
34817
34825
|
}, "getterAIToSeat"() {
|
|
34818
|
-
const
|
|
34819
|
-
return a[
|
|
34826
|
+
const _0x44cbf8 = _0x5609b8;
|
|
34827
|
+
return a[_0x44cbf8(376)];
|
|
34820
34828
|
}, "getterSeatCallOnceStage"() {
|
|
34821
|
-
const
|
|
34822
|
-
return a[
|
|
34829
|
+
const _0x5613fe = _0x5609b8;
|
|
34830
|
+
return a[_0x5613fe(426)];
|
|
34823
34831
|
}, "getterSeatCallingStage"() {
|
|
34824
|
-
const
|
|
34825
|
-
return a[
|
|
34832
|
+
const _0x1a24d6 = _0x5609b8;
|
|
34833
|
+
return a[_0x1a24d6(438)];
|
|
34826
34834
|
} };
|
|
34827
34835
|
let R = false, m = "";
|
|
34828
|
-
const c = { "actionSeatInitVoiceWSInstance": (
|
|
34829
|
-
const
|
|
34830
|
-
a[
|
|
34831
|
-
const
|
|
34832
|
-
|
|
34833
|
-
const
|
|
34834
|
-
n[
|
|
34835
|
-
},
|
|
34836
|
-
const
|
|
34837
|
-
if (typeof
|
|
34838
|
-
a[
|
|
34836
|
+
const c = { "actionSeatInitVoiceWSInstance": (_0x36d0d5) => {
|
|
34837
|
+
const _0x5ab0e4 = _0x5609b8;
|
|
34838
|
+
a["voiceInstance"] && (console["log"](_0x5ab0e4(285), a[_0x5ab0e4(244)]), a[_0x5ab0e4(244)][_0x5ab0e4(322)]());
|
|
34839
|
+
const _0x2e7aaf = new WebSocket(_0x36d0d5[_0x5ab0e4(242)]);
|
|
34840
|
+
_0x2e7aaf[_0x5ab0e4(177)] = _0x5ab0e4(377), _0x2e7aaf["onopen"] = () => {
|
|
34841
|
+
const _0x5d7fad = _0x5ab0e4;
|
|
34842
|
+
n[_0x5d7fad(226)]({ "key": _0x5d7fad(422), "status": _0x5d7fad(219) });
|
|
34843
|
+
}, _0x2e7aaf[_0x5ab0e4(165)] = (_0xdc5ff) => {
|
|
34844
|
+
const _0x51b12f = _0x5ab0e4;
|
|
34845
|
+
if (typeof _0xdc5ff[_0x51b12f(270)] == _0x51b12f(190)) {
|
|
34846
|
+
a[_0x51b12f(328)] && E(), n[_0x51b12f(387)]({ "type": "srcStream", "value": _0xdc5ff[_0x51b12f(270)], "outputID": p[_0x51b12f(432)]() });
|
|
34839
34847
|
return;
|
|
34840
34848
|
}
|
|
34841
|
-
let
|
|
34842
|
-
if (
|
|
34843
|
-
c["actionHandleCallBack"](
|
|
34849
|
+
let _0x1908f5 = JSON[_0x51b12f(333)](_0xdc5ff[_0x51b12f(270)]);
|
|
34850
|
+
if (_0x1908f5[_0x51b12f(245)] !== 0) {
|
|
34851
|
+
c["actionHandleCallBack"](_0x51b12f(308), _0x1908f5[_0x51b12f(428)]);
|
|
34844
34852
|
return;
|
|
34845
34853
|
}
|
|
34846
|
-
switch (
|
|
34847
|
-
case
|
|
34848
|
-
n[
|
|
34854
|
+
switch (_0x1908f5[_0x51b12f(253)]) {
|
|
34855
|
+
case _0x51b12f(373):
|
|
34856
|
+
n["SEAT_UPDATE_WEBSOCKET_STATUS"]({ "key": _0x51b12f(422), "status": _0x51b12f(219) }), c[_0x51b12f(317)]({ "type": "VoiceFrom", "wsType": "VoiceFromOther" });
|
|
34849
34857
|
break;
|
|
34850
34858
|
}
|
|
34851
|
-
},
|
|
34852
|
-
const
|
|
34853
|
-
n[
|
|
34854
|
-
},
|
|
34855
|
-
const
|
|
34856
|
-
console[
|
|
34857
|
-
}, n[
|
|
34858
|
-
}, "actionSeatInitWSInstance": (
|
|
34859
|
-
const
|
|
34860
|
-
if (a[
|
|
34861
|
-
console[
|
|
34859
|
+
}, _0x2e7aaf[_0x5ab0e4(366)] = () => {
|
|
34860
|
+
const _0x4d1a33 = _0x5ab0e4;
|
|
34861
|
+
n[_0x4d1a33(380)](""), n[_0x4d1a33(226)]({ "key": _0x4d1a33(422), "status": "closed" });
|
|
34862
|
+
}, _0x2e7aaf[_0x5ab0e4(339)] = () => {
|
|
34863
|
+
const _0x46a700 = _0x5ab0e4;
|
|
34864
|
+
console[_0x46a700(252)](_0x46a700(454)), ["ringing", _0x46a700(219)][_0x46a700(149)](a["callingStage"]) > -1 && n[_0x46a700(255)]({ "Type": "SeatConnectClientFailed", "Data": {}, "Code": 0, "Msg": "" + (a[_0x46a700(376)] ? _0x46a700(233) : a["onceCall"] ? _0x46a700(269) : ""), "TaskID": "" });
|
|
34865
|
+
}, n[_0x5ab0e4(380)](_0x2e7aaf);
|
|
34866
|
+
}, "actionSeatInitWSInstance": (_0x2c75ae) => {
|
|
34867
|
+
const _0x1f32a2 = _0x5609b8;
|
|
34868
|
+
if (a[_0x1f32a2(243)]) {
|
|
34869
|
+
console[_0x1f32a2(252)]("已有websocket连接,重新连接。"), c[_0x1f32a2(247)](), R = true;
|
|
34862
34870
|
return;
|
|
34863
34871
|
}
|
|
34864
|
-
L(
|
|
34872
|
+
L(_0x2c75ae);
|
|
34865
34873
|
}, async "actionSeatTestEquipment"() {
|
|
34866
|
-
const
|
|
34867
|
-
if (n[
|
|
34868
|
-
c[
|
|
34874
|
+
const _0xcd0b57 = _0x5609b8;
|
|
34875
|
+
if (n[_0xcd0b57(232)](), !x()) {
|
|
34876
|
+
c[_0xcd0b57(150)](_0xcd0b57(308), _0xcd0b57(371));
|
|
34869
34877
|
return;
|
|
34870
34878
|
}
|
|
34871
34879
|
try {
|
|
34872
|
-
const
|
|
34873
|
-
return n[
|
|
34874
|
-
} catch (
|
|
34875
|
-
O(
|
|
34880
|
+
const _0x3fab88 = await navigator[_0xcd0b57(265)][_0xcd0b57(173)]({ "audio": { "advanced": [{ "deviceId": p[_0xcd0b57(340)]() }] } });
|
|
34881
|
+
return n[_0xcd0b57(387)]({ "type": _0xcd0b57(267), "value": _0x3fab88, "outputID": p[_0xcd0b57(432)]() }), navigator[_0xcd0b57(265)][_0xcd0b57(398)]();
|
|
34882
|
+
} catch (_0x187a33) {
|
|
34883
|
+
O(_0x187a33);
|
|
34876
34884
|
}
|
|
34877
34885
|
}, async "actionSeatStartPlayer"() {
|
|
34878
|
-
const
|
|
34886
|
+
const _0x965c58 = _0x5609b8;
|
|
34879
34887
|
try {
|
|
34880
|
-
m = new A({ "encoding":
|
|
34881
|
-
} catch (
|
|
34882
|
-
console[
|
|
34888
|
+
m = new A({ "encoding": _0x965c58(352), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
|
|
34889
|
+
} catch (_0x1ecbfd) {
|
|
34890
|
+
console[_0x965c58(252)](_0x1ecbfd);
|
|
34883
34891
|
}
|
|
34884
34892
|
}, async "actionSeatStartTalk"() {
|
|
34885
|
-
const
|
|
34893
|
+
const _0x18c7ff = _0x5609b8;
|
|
34886
34894
|
if (!x()) {
|
|
34887
|
-
c[
|
|
34895
|
+
c["actionHandleCallBack"](_0x18c7ff(308), "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。");
|
|
34888
34896
|
return;
|
|
34889
34897
|
}
|
|
34890
34898
|
try {
|
|
34891
|
-
a[
|
|
34892
|
-
const
|
|
34893
|
-
a[
|
|
34894
|
-
const
|
|
34895
|
-
c[
|
|
34896
|
-
}), a[
|
|
34897
|
-
} catch (
|
|
34898
|
-
O(
|
|
34899
|
+
a[_0x18c7ff(301)] && a["recorder"][_0x18c7ff(164)]();
|
|
34900
|
+
const _0x17b594 = await navigator[_0x18c7ff(265)][_0x18c7ff(173)]({ "audio": { "advanced": [{ "deviceId": p[_0x18c7ff(340)]() }] } });
|
|
34901
|
+
a[_0x18c7ff(301)] = new Y(_0x17b594, (_0x55f73d) => {
|
|
34902
|
+
const _0x4d4d63 = _0x18c7ff;
|
|
34903
|
+
c[_0x4d4d63(361)](_0x55f73d);
|
|
34904
|
+
}), a[_0x18c7ff(301)][_0x18c7ff(335)]();
|
|
34905
|
+
} catch (_0x160ff3) {
|
|
34906
|
+
O(_0x160ff3);
|
|
34899
34907
|
}
|
|
34900
34908
|
}, "actionSeatStartWS"() {
|
|
34901
|
-
const
|
|
34902
|
-
c[
|
|
34903
|
-
}, "actionSeatVoiceWS"(
|
|
34904
|
-
const
|
|
34905
|
-
let
|
|
34909
|
+
const _0x294eb1 = _0x5609b8;
|
|
34910
|
+
c[_0x294eb1(320)]({ "url": G(l[_0x294eb1(185)]) + "/v1/company/" + l["companyID"] + _0x294eb1(287) + l[_0x294eb1(357)] + _0x294eb1(392) + l["token"] });
|
|
34911
|
+
}, "actionSeatVoiceWS"(_0x284b20) {
|
|
34912
|
+
const _0x27f1e8 = _0x5609b8;
|
|
34913
|
+
let _0x9c8a94 = "";
|
|
34906
34914
|
try {
|
|
34907
|
-
|
|
34915
|
+
_0x9c8a94 = (_0x284b20 && _0x284b20[_0x27f1e8(428)] ? JSON["parse"](_0x284b20[_0x27f1e8(428)]) : [])[_0x27f1e8(249)]((_0x2e685d) => !_0x2e685d[_0x27f1e8(447)](_0x27f1e8(383)));
|
|
34908
34916
|
} catch {
|
|
34909
|
-
|
|
34917
|
+
_0x9c8a94 = _0x284b20 && _0x284b20["Msg"];
|
|
34910
34918
|
}
|
|
34911
|
-
c[
|
|
34912
|
-
}, "actionSeatSendVoice"(
|
|
34913
|
-
const
|
|
34914
|
-
n[
|
|
34919
|
+
c[_0x27f1e8(415)]({ "url": _0x27f1e8(296) + _0x9c8a94 + _0x27f1e8(216) + (_0x284b20 && _0x284b20["Data"][_0x27f1e8(359)]) });
|
|
34920
|
+
}, "actionSeatSendVoice"(_0x4dd732) {
|
|
34921
|
+
const _0x11f0ad = _0x5609b8;
|
|
34922
|
+
n[_0x11f0ad(163)](_0x4dd732);
|
|
34915
34923
|
}, async "actionGetMediaDevices"() {
|
|
34916
|
-
const
|
|
34924
|
+
const _0x354740 = _0x5609b8;
|
|
34917
34925
|
try {
|
|
34918
|
-
const
|
|
34919
|
-
n[
|
|
34926
|
+
const _0x1f975a = await navigator[_0x354740(265)]["enumerateDevices"]();
|
|
34927
|
+
n[_0x354740(442)]({ "key": "mediaDevice", "value": _0x1f975a }), console[_0x354740(252)](_0x354740(440), _0x1f975a);
|
|
34920
34928
|
} catch {
|
|
34921
|
-
c[
|
|
34929
|
+
c["actionHandleCallBack"](_0x354740(308), "获取设备列表失败,请检查浏览器权限设置");
|
|
34922
34930
|
}
|
|
34923
|
-
}, "actionSeatHandleIncoming"(
|
|
34924
|
-
const
|
|
34925
|
-
switch (
|
|
34926
|
-
case
|
|
34927
|
-
n[
|
|
34931
|
+
}, "actionSeatHandleIncoming"(_0x100031) {
|
|
34932
|
+
const _0x4ece09 = _0x5609b8, { type: _0x4b00cd, data: _0x749880, wsType: _0x3a6109 } = _0x100031;
|
|
34933
|
+
switch (_0x4b00cd) {
|
|
34934
|
+
case "Answer":
|
|
34935
|
+
n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(209), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4ece09(376)] ? _0x4ece09(233) : a[_0x4ece09(328)] ? _0x4ece09(269) : ""), "TaskID": "" });
|
|
34928
34936
|
break;
|
|
34929
|
-
case
|
|
34930
|
-
n["SEAT_SEND_MESSAGE"]({ "Type":
|
|
34937
|
+
case _0x4ece09(385):
|
|
34938
|
+
n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(231), "Data": {}, "Code": 0, "Msg": a[_0x4ece09(376)] ? "TypeAIToSeat" : a["onceCall"] ? "TypeCallOnce" : "", "TaskID": "" });
|
|
34931
34939
|
break;
|
|
34932
|
-
case
|
|
34933
|
-
n["SEAT_SEND_MESSAGE"]({ "Type":
|
|
34940
|
+
case _0x4ece09(288):
|
|
34941
|
+
n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(239), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4ece09(376)] ? _0x4ece09(233) : a[_0x4ece09(328)] ? _0x4ece09(269) : ""), "TaskID": "" });
|
|
34934
34942
|
break;
|
|
34935
|
-
case
|
|
34936
|
-
n[
|
|
34943
|
+
case _0x4ece09(217):
|
|
34944
|
+
n[_0x4ece09(255)]({ "Type": _0x4ece09(410), "Data": _0x749880, "Code": 0, "Msg": "TypeCallOnce", "TaskID": "" });
|
|
34937
34945
|
break;
|
|
34938
|
-
case
|
|
34939
|
-
n[
|
|
34946
|
+
case _0x4ece09(198):
|
|
34947
|
+
n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(198), "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
|
|
34940
34948
|
break;
|
|
34941
|
-
case
|
|
34942
|
-
console[
|
|
34949
|
+
case _0x4ece09(261):
|
|
34950
|
+
console[_0x4ece09(252)](_0x4ece09(169), _0x749880), n[_0x4ece09(255)]({ "Type": _0x4ece09(269), "Data": _0x749880, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x4ece09(442)]({ "key": _0x4ece09(257), "value": Object["assign"]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0x749880) });
|
|
34943
34951
|
break;
|
|
34944
|
-
case
|
|
34945
|
-
n[
|
|
34952
|
+
case _0x4ece09(379):
|
|
34953
|
+
n[_0x4ece09(163)](H({ "Type": _0x3a6109, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
|
|
34946
34954
|
break;
|
|
34947
|
-
case
|
|
34948
|
-
n[
|
|
34955
|
+
case _0x4ece09(312):
|
|
34956
|
+
n[_0x4ece09(255)](_0x4ece09(205));
|
|
34949
34957
|
break;
|
|
34950
34958
|
}
|
|
34951
34959
|
}, "instanceClose"() {
|
|
34952
|
-
const
|
|
34953
|
-
a[
|
|
34954
|
-
}, "actionSeatUpdatePhoneRingAudio"(
|
|
34955
|
-
n["SEAT_SET_PHONERINGAUDIO"](
|
|
34956
|
-
}, "actionSeatReconnectWSAfterClosed"(
|
|
34957
|
-
const
|
|
34958
|
-
n[
|
|
34959
|
-
}, "actionHandleCallBack"(
|
|
34960
|
-
const
|
|
34961
|
-
|
|
34962
|
-
} }, n = { "SEAT_SET_LIST"(
|
|
34963
|
-
const
|
|
34964
|
-
a[
|
|
34965
|
-
}, "SEAT_SET_WS"(
|
|
34966
|
-
const
|
|
34967
|
-
a[
|
|
34968
|
-
}, "SEAT_SET_VoiceWS"(
|
|
34969
|
-
|
|
34970
|
-
|
|
34971
|
-
|
|
34972
|
-
|
|
34973
|
-
|
|
34974
|
-
|
|
34975
|
-
|
|
34976
|
-
|
|
34977
|
-
|
|
34978
|
-
|
|
34979
|
-
|
|
34980
|
-
|
|
34981
|
-
|
|
34982
|
-
|
|
34983
|
-
|
|
34984
|
-
|
|
34985
|
-
|
|
34960
|
+
const _0x3d2bcd = _0x5609b8;
|
|
34961
|
+
a[_0x3d2bcd(243)] && (a[_0x3d2bcd(243)][_0x3d2bcd(322)](), n[_0x3d2bcd(442)]({ "key": _0x3d2bcd(243), "value": "" }));
|
|
34962
|
+
}, "actionSeatUpdatePhoneRingAudio"(_0x30fcdd) {
|
|
34963
|
+
n["SEAT_SET_PHONERINGAUDIO"](_0x30fcdd);
|
|
34964
|
+
}, "actionSeatReconnectWSAfterClosed"(_0x20ce8f) {
|
|
34965
|
+
const _0x7aee91 = _0x5609b8;
|
|
34966
|
+
n[_0x7aee91(442)]({ "key": _0x7aee91(307), "value": _0x20ce8f });
|
|
34967
|
+
}, "actionHandleCallBack"(_0x44aa3e, _0x30287d, _0xba09bb = {}) {
|
|
34968
|
+
const _0x94fc3d = _0x5609b8;
|
|
34969
|
+
_0xba09bb[_0x94fc3d(250)] !== void 0 && (_0xba09bb["Str"] = btoa(_0xba09bb[_0x94fc3d(250)] || "")), _0xba09bb && _0xba09bb[_0x94fc3d(250)] && l[_0x94fc3d(330)] !== false && (_0xba09bb["Mobile"] = j(_0xba09bb[_0x94fc3d(250)])), l["callOptions"] && l["callOptions"][_0x94fc3d(424)] && (_0xba09bb[_0x94fc3d(424)] = l[_0x94fc3d(448)][_0x94fc3d(424)]), l[_0x94fc3d(448)] && l[_0x94fc3d(448)][_0x94fc3d(372)] && (_0xba09bb[_0x94fc3d(372)] = l[_0x94fc3d(448)][_0x94fc3d(372)]), l["onMessage"] && l[_0x94fc3d(212)]({ "type": _0x44aa3e, "msg": _0x30287d, "data": _0xba09bb });
|
|
34970
|
+
} }, n = { "SEAT_SET_LIST"(_0x35ee6d) {
|
|
34971
|
+
const _0x2e91ed = _0x5609b8;
|
|
34972
|
+
a[_0x2e91ed(179)] = _0x35ee6d;
|
|
34973
|
+
}, "SEAT_SET_WS"(_0x2d2f48) {
|
|
34974
|
+
const _0x27e0ed = _0x5609b8;
|
|
34975
|
+
a[_0x27e0ed(243)] = _0x2d2f48;
|
|
34976
|
+
}, "SEAT_SET_VoiceWS"(_0x2c436e) {
|
|
34977
|
+
const _0x5f33e7 = _0x5609b8;
|
|
34978
|
+
a[_0x5f33e7(244)] = _0x2c436e;
|
|
34979
|
+
}, "SEAT_SEND_MESSAGE"(_0x228fcd) {
|
|
34980
|
+
const _0x391e70 = _0x5609b8;
|
|
34981
|
+
a["status"] === _0x391e70(219) && a[_0x391e70(243)] && a[_0x391e70(243)][_0x391e70(258)](H(_0x228fcd));
|
|
34982
|
+
}, "SEAT_SEND_RAW_MESSAGE"(_0x305dfd) {
|
|
34983
|
+
const _0x39bcb7 = _0x5609b8;
|
|
34984
|
+
a[_0x39bcb7(303)] === _0x39bcb7(219) && a["voiceInstance"] && a[_0x39bcb7(422)] === _0x39bcb7(219) && a[_0x39bcb7(244)][_0x39bcb7(258)](_0x305dfd);
|
|
34985
|
+
}, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x46ec9f) {
|
|
34986
|
+
const _0x52100 = _0x5609b8;
|
|
34987
|
+
a[_0x46ec9f[_0x52100(414)]] = _0x46ec9f[_0x52100(303)];
|
|
34988
|
+
}, "SEAT_SAVE_KEY_VALUE"(_0x449e96) {
|
|
34989
|
+
const _0x4de005 = _0x5609b8, { key: _0x1bd62d, value: _0x58cb49 } = _0x449e96;
|
|
34990
|
+
a[_0x1bd62d] = _0x58cb49, _0x1bd62d === _0x4de005(438) && _0x58cb49 === _0x4de005(431) && C(true);
|
|
34991
|
+
}, "SEAT_PLAY_AUDIO"(_0x28d28f) {
|
|
34992
|
+
const _0x1cba50 = _0x5609b8;
|
|
34993
|
+
let { type: _0x1336c5, value: _0x30f39c } = _0x28d28f;
|
|
34994
|
+
if (_0x1336c5 === _0x1cba50(267)) a[_0x1cba50(409)][_0x1cba50(267)] = _0x30f39c;
|
|
34986
34995
|
else {
|
|
34987
|
-
if (
|
|
34996
|
+
if (_0x1336c5 === _0x1cba50(369)) a[_0x1cba50(409)]["src"] = _0x30f39c;
|
|
34988
34997
|
else {
|
|
34989
|
-
if (
|
|
34990
|
-
m && m[
|
|
34998
|
+
if (_0x1336c5 === "srcStream") {
|
|
34999
|
+
m && m["feed"](new Int16Array(_0x30f39c));
|
|
34991
35000
|
return;
|
|
34992
35001
|
}
|
|
34993
35002
|
}
|
|
34994
35003
|
}
|
|
34995
35004
|
}, "SEAT_RESET_AUDIO"() {
|
|
34996
|
-
const
|
|
34997
|
-
a[
|
|
34998
|
-
}, "SEAT_SET_PHONERINGAUDIO"(
|
|
34999
|
-
const
|
|
35000
|
-
a[
|
|
35001
|
-
}, "SEAT_SET_RECORDSDATA"(
|
|
35002
|
-
const
|
|
35003
|
-
if (!
|
|
35004
|
-
if ([
|
|
35005
|
-
a[
|
|
35005
|
+
const _0x207cfc = _0x5609b8;
|
|
35006
|
+
a[_0x207cfc(409)] && a[_0x207cfc(409)][_0x207cfc(348)](), a["audio"][_0x207cfc(267)] = null, a["audio"][_0x207cfc(369)] = "", a[_0x207cfc(409)] = document[_0x207cfc(175)](_0x207cfc(409));
|
|
35007
|
+
}, "SEAT_SET_PHONERINGAUDIO"(_0x5d0a3e) {
|
|
35008
|
+
const _0x1a546c = _0x5609b8;
|
|
35009
|
+
a[_0x1a546c(318)] = _0x5d0a3e;
|
|
35010
|
+
}, "SEAT_SET_RECORDSDATA"(_0x24079a) {
|
|
35011
|
+
const _0x24d8df = _0x5609b8;
|
|
35012
|
+
if (!_0x24079a) return;
|
|
35013
|
+
if ([_0x24d8df(449)][_0x24d8df(149)](_0x24079a[_0x24d8df(253)]) > -1) {
|
|
35014
|
+
a["recordsData"] = [];
|
|
35006
35015
|
return;
|
|
35007
35016
|
}
|
|
35008
|
-
let
|
|
35009
|
-
if (
|
|
35010
|
-
const
|
|
35011
|
-
a[
|
|
35017
|
+
let _0x5e7477 = [];
|
|
35018
|
+
if (_0x24079a[_0x24d8df(253)] === "SeatConnectedResp" && _0x24079a[_0x24d8df(428)] === _0x24d8df(233) && (a[_0x24d8df(319)] = [], _0x5e7477 = (JSON[_0x24d8df(333)](_0x24079a[_0x24d8df(407)][_0x24d8df(401)])[_0x24d8df(218)] || [])[_0x24d8df(446)]((_0x39db5a) => Object[_0x24d8df(413)]({}, _0x39db5a, { "ID": b() }))), a[_0x24d8df(319)][_0x24d8df(289)] === 0) {
|
|
35019
|
+
const _0x3efe7c = { "ID": b(), "PlanID": _0x24079a[_0x24d8df(407)][_0x24d8df(359)] ? _0x24079a[_0x24d8df(407)][_0x24d8df(359)] : b(), "Messages": _0x24079a[_0x24d8df(253)] === "SeatConnectedResp" && _0x24079a[_0x24d8df(428)] === _0x24d8df(233) ? _0x5e7477 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x24079a[_0x24d8df(407)] && _0x24079a[_0x24d8df(407)]["Mobile"] ? _0x24079a[_0x24d8df(407)]["Mobile"] : "", "Sip": "", "VoiceID": "", "CallAt": _0x24079a["Data"] && _0x24079a[_0x24d8df(407)][_0x24d8df(393)] ? _0x24079a[_0x24d8df(407)][_0x24d8df(393)] : /* @__PURE__ */ new Date() };
|
|
35020
|
+
a[_0x24d8df(319)] = [_0x3efe7c];
|
|
35012
35021
|
}
|
|
35013
|
-
const
|
|
35014
|
-
(
|
|
35022
|
+
const _0x3c6a08 = a["recordsData"][0]["Messages"][_0x24d8df(289)] || 0, _0x3b1a04 = { "ID": b(), "Index": _0x3c6a08, "ProduceBy": _0x24079a[_0x24d8df(253)] === "CustomerSayText" ? _0x24d8df(183) : _0x24079a[_0x24d8df(253)] === _0x24d8df(293) ? _0x24d8df(282) : _0x24d8df(362), "VoiceID": "", "VoiceText": _0x24079a[_0x24d8df(253)] === _0x24d8df(293) ? _0x24079a["Msg"] : _0x24079a["Data"][_0x24d8df(401)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": "0001-01-01T00:00:00Z", "Events": null, "CreatedAt": _0x24d8df(167), "DeletedAt": null };
|
|
35023
|
+
(_0x24079a[_0x24d8df(253)] !== "SeatConnectedResp" && _0x24079a[_0x24d8df(253)] !== _0x24d8df(293) && _0x24079a["Data"][_0x24d8df(401)] || _0x24079a["Type"] === "RobotSay") && a[_0x24d8df(319)][0]["Messages"][_0x24d8df(354)](_0x3b1a04);
|
|
35015
35024
|
} };
|
|
35016
|
-
function
|
|
35017
|
-
const
|
|
35018
|
-
|
|
35019
|
-
|
|
35020
|
-
|
|
35021
|
-
|
|
35022
|
-
|
|
35023
|
-
|
|
35024
|
-
|
|
35025
|
-
_0x337915[_0x221e5c(446)] = () => {
|
|
35026
|
-
const _0x1c9604 = _0x221e5c;
|
|
35027
|
-
n[_0x1c9604(386)]({ "key": _0x1c9604(220), "status": _0x1c9604(314) });
|
|
35028
|
-
}, _0x337915[_0x221e5c(340)] = (_0x515e03) => {
|
|
35029
|
-
const _0x15507f = _0x221e5c;
|
|
35030
|
-
let _0x474262 = JSON[_0x15507f(272)](_0x515e03[_0x15507f(437)]);
|
|
35031
|
-
if (_0x474262[_0x15507f(239)] !== 0) {
|
|
35032
|
-
c[_0x15507f(431)](_0x15507f(467), _0x474262[_0x15507f(488)]);
|
|
35033
|
-
return;
|
|
35034
|
-
}
|
|
35035
|
-
switch (_0x474262["Type"]) {
|
|
35025
|
+
function L(_0x2d70c1) {
|
|
35026
|
+
const _0x579e74 = _0x5609b8, _0x1e2873 = new WebSocket(_0x2d70c1[_0x579e74(242)]);
|
|
35027
|
+
_0x1e2873[_0x579e74(300)] = () => {
|
|
35028
|
+
const _0x30040a = _0x579e74;
|
|
35029
|
+
n[_0x30040a(226)]({ "key": _0x30040a(303), "status": _0x30040a(219) });
|
|
35030
|
+
}, _0x1e2873[_0x579e74(165)] = (_0xa87661) => {
|
|
35031
|
+
const _0x5cb876 = _0x579e74;
|
|
35032
|
+
let _0xe374a4 = JSON["parse"](_0xa87661[_0x5cb876(270)]);
|
|
35033
|
+
switch (_0xe374a4[_0x5cb876(253)]) {
|
|
35036
35034
|
case "WSConnected":
|
|
35037
|
-
n[
|
|
35035
|
+
n[_0x5cb876(226)]({ "key": _0x5cb876(303), "status": "connected" }), n[_0x5cb876(156)](_0x1e2873), n[_0x5cb876(442)]({ "key": _0x5cb876(353), "value": { "IsOnline": true, "IsAutoAnswer": l["isAutoAnswer"] } }), n[_0x5cb876(442)]({ "key": "reconnectCount", "value": 3 }), c[_0x5cb876(150)]("Online", _0x5cb876(453)), $(), l[_0x5cb876(274)] || c["actionSeatHandleIncoming"]({ "type": _0x5cb876(261), "data": l["callOptions"] });
|
|
35038
35036
|
break;
|
|
35039
|
-
case
|
|
35040
|
-
c[
|
|
35037
|
+
case _0x5cb876(241):
|
|
35038
|
+
c[_0x5cb876(280)](false), c[_0x5cb876(150)](_0x5cb876(445), _0x5cb876(154));
|
|
35041
35039
|
break;
|
|
35042
|
-
case
|
|
35043
|
-
V(), n[
|
|
35040
|
+
case _0x5cb876(188):
|
|
35041
|
+
V(), n[_0x5cb876(442)]({ "key": _0x5cb876(207), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(426), "value": _0x5cb876(331) }), n[_0x5cb876(442)]({ "key": "customerInfo", "value": _0xe374a4[_0x5cb876(407)] }), c["actionHandleCallBack"](_0x5cb876(214), "响铃中", { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Mobile": _0xe374a4["Data"][_0x5cb876(250)] }), a[_0x5cb876(328)] && (c["actionSeatStartPlayer"](), c[_0x5cb876(203)](_0xe374a4));
|
|
35044
35042
|
break;
|
|
35045
|
-
case
|
|
35046
|
-
const
|
|
35047
|
-
c[
|
|
35043
|
+
case _0x5cb876(192):
|
|
35044
|
+
const _0x57613c = _0xe374a4[_0x5cb876(407)];
|
|
35045
|
+
c["actionHandleCallBack"]("QualityNotice", _0x5cb876(306), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "RuleName": _0x57613c[_0x5cb876(199)], "DictionaryName": _0x57613c[_0x5cb876(350)], "MatchKeyword": _0x57613c["MatchKeyword"] });
|
|
35048
35046
|
break;
|
|
35049
|
-
case
|
|
35047
|
+
case _0x5cb876(315):
|
|
35050
35048
|
break;
|
|
35051
|
-
case
|
|
35052
|
-
n[
|
|
35049
|
+
case _0x5cb876(395):
|
|
35050
|
+
n["SEAT_SAVE_KEY_VALUE"]({ "key": "callOnceStage", "value": Number(_0xe374a4[_0x5cb876(245)]) === 203 ? _0x5cb876(356) : "呼叫失败" }), C(true), c[_0x5cb876(150)](Number(_0xe374a4[_0x5cb876(245)]) === 203 ? _0x5cb876(189) : _0x5cb876(388), _0xe374a4[_0x5cb876(428)]);
|
|
35053
35051
|
break;
|
|
35054
|
-
case
|
|
35055
|
-
n[
|
|
35052
|
+
case _0x5cb876(204):
|
|
35053
|
+
n[_0x5cb876(442)]({ "key": _0x5cb876(311), "value": Object[_0x5cb876(413)]({}, _0xe374a4[_0x5cb876(407)], { "CustomerID": a[_0x5cb876(311)] && a[_0x5cb876(311)][_0x5cb876(324)], "Time": a["connectInfo"] && a[_0x5cb876(311)][_0x5cb876(393)] }) }), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(219) }), n["SEAT_SET_RECORDSDATA"](_0xe374a4), E(), W(), a[_0x5cb876(376)] && c["actionSeatVoiceWS"](Object[_0x5cb876(413)]({}, _0xe374a4, { "Msg": a[_0x5cb876(207)] })), a[_0x5cb876(328)] || (c[_0x5cb876(260)](), c[_0x5cb876(196)]()), c[_0x5cb876(150)](_0x5cb876(186), _0x5cb876(436), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Mobile": _0xe374a4[_0x5cb876(407)]["Mobile"] });
|
|
35056
35054
|
break;
|
|
35057
|
-
case
|
|
35058
|
-
n[
|
|
35059
|
-
const
|
|
35060
|
-
c[
|
|
35061
|
-
}, 500), c[
|
|
35055
|
+
case _0x5cb876(449):
|
|
35056
|
+
n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(365) }), n[_0x5cb876(442)]({ "key": "callOnceStage", "value": "" }), n[_0x5cb876(442)]({ "key": _0x5cb876(311), "value": _0xe374a4[_0x5cb876(407)] }), n[_0x5cb876(442)]({ "key": "customerInfo", "value": _0xe374a4["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(376), "value": false }), n[_0x5cb876(442)]({ "key": _0x5cb876(207), "value": "" }), n[_0x5cb876(389)](_0xe374a4), a[_0x5cb876(328)] ? (c[_0x5cb876(317)]({ "type": _0x5cb876(384) }), n[_0x5cb876(442)]({ "key": "callingStage", "value": "connected" }), c["actionSeatStartTalk"]()) : (V(), c[_0x5cb876(203)](_0xe374a4), l[_0x5cb876(234)] && setTimeout(() => {
|
|
35057
|
+
const _0x525aa4 = _0x5cb876;
|
|
35058
|
+
c["actionSeatHandleIncoming"]({ "type": _0x525aa4(384) }), console["log"]("自动接听");
|
|
35059
|
+
}, 500), c[_0x5cb876(150)](_0x5cb876(214), _0x5cb876(266), { "PlanID": _0xe374a4[_0x5cb876(407)]["PlanID"], "Mobile": _0xe374a4[_0x5cb876(407)][_0x5cb876(250)] }));
|
|
35062
35060
|
break;
|
|
35063
|
-
case
|
|
35064
|
-
E(),
|
|
35061
|
+
case _0x5cb876(336):
|
|
35062
|
+
E(), C(), n[_0x5cb876(442)]({ "key": "callingStage", "value": "" }), c[_0x5cb876(247)](), v(), c[_0x5cb876(150)](_0x5cb876(388), _0x5cb876(455));
|
|
35065
35063
|
break;
|
|
35066
|
-
case
|
|
35067
|
-
E(), a[
|
|
35064
|
+
case _0x5cb876(254):
|
|
35065
|
+
E(), a["recorder"] && a[_0x5cb876(301)]["stop"](), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(438), "value": _0x5cb876(431) }), c[_0x5cb876(150)](_0x5cb876(388), "通话异常"), v();
|
|
35068
35066
|
break;
|
|
35069
|
-
case
|
|
35070
|
-
case
|
|
35071
|
-
a[
|
|
35067
|
+
case _0x5cb876(420):
|
|
35068
|
+
case _0x5cb876(291):
|
|
35069
|
+
a[_0x5cb876(301)] && a[_0x5cb876(301)]["stop"](), E(), n[_0x5cb876(442)]({ "key": _0x5cb876(328), "value": false }), a[_0x5cb876(438)] !== _0x5cb876(219) && c["actionSeatHandleIncoming"]({ "type": "CallNext" }), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": a["callingStage"] === _0x5cb876(219) ? _0x5cb876(431) : "" }), c[_0x5cb876(150)](_0x5cb876(420), _0x5cb876(367)), v();
|
|
35072
35070
|
break;
|
|
35073
|
-
case
|
|
35074
|
-
|
|
35071
|
+
case _0x5cb876(403):
|
|
35072
|
+
C(), n[_0x5cb876(442)]({ "key": "callOnceStage", "value": "客户拒接" }), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": "" }), n[_0x5cb876(442)]({ "key": _0x5cb876(328), "value": false }), E(), c[_0x5cb876(150)](_0x5cb876(403), _0x5cb876(155)), v();
|
|
35075
35073
|
break;
|
|
35076
|
-
case
|
|
35077
|
-
a[
|
|
35074
|
+
case _0x5cb876(239):
|
|
35075
|
+
a[_0x5cb876(301)] && a[_0x5cb876(301)][_0x5cb876(378)](), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(431) }), E();
|
|
35078
35076
|
break;
|
|
35079
35077
|
case "SeatHangUpResp":
|
|
35080
|
-
a[
|
|
35078
|
+
a[_0x5cb876(301)] && (a[_0x5cb876(301)][_0x5cb876(378)](), a["recorder"] = null), n[_0x5cb876(442)]({ "key": "callingStage", "value": _0x5cb876(431) }), n[_0x5cb876(442)]({ "key": _0x5cb876(328), "value": false }), c[_0x5cb876(150)](_0x5cb876(239), _0x5cb876(451));
|
|
35081
35079
|
break;
|
|
35082
|
-
case
|
|
35083
|
-
console[
|
|
35080
|
+
case "SeatRefuseResp":
|
|
35081
|
+
console[_0x5cb876(252)](_0x5cb876(437)), n["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), E(), c[_0x5cb876(317)]({ "type": _0x5cb876(198) });
|
|
35084
35082
|
break;
|
|
35085
|
-
case
|
|
35086
|
-
n[
|
|
35083
|
+
case "SeatCancelResp":
|
|
35084
|
+
n["SEAT_SAVE_KEY_VALUE"]({ "key": "callOnceStage", "value": "" }), n[_0x5cb876(442)]({ "key": "onceCall", "value": false }), c[_0x5cb876(150)](_0x5cb876(239), _0x5cb876(451)), E();
|
|
35087
35085
|
break;
|
|
35088
|
-
case
|
|
35089
|
-
n[
|
|
35086
|
+
case _0x5cb876(349):
|
|
35087
|
+
n["SEAT_SET_RECORDSDATA"](_0xe374a4), c[_0x5cb876(150)](_0x5cb876(228), _0x5cb876(321), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Text": _0xe374a4[_0x5cb876(407)][_0x5cb876(401)], "Time": _0xe374a4["Data"][_0x5cb876(393)] });
|
|
35090
35088
|
break;
|
|
35091
|
-
case
|
|
35092
|
-
n[
|
|
35089
|
+
case _0x5cb876(418):
|
|
35090
|
+
n[_0x5cb876(389)](_0xe374a4), c["actionHandleCallBack"](_0x5cb876(161), _0x5cb876(411), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Text": _0xe374a4[_0x5cb876(407)][_0x5cb876(401)], "Time": _0xe374a4[_0x5cb876(407)][_0x5cb876(393)] });
|
|
35093
35091
|
break;
|
|
35094
|
-
case
|
|
35095
|
-
n[
|
|
35092
|
+
case _0x5cb876(293):
|
|
35093
|
+
n[_0x5cb876(389)](_0xe374a4), c["actionHandleCallBack"](_0x5cb876(293), _0x5cb876(174), { "PlanID": _0xe374a4["Data"][_0x5cb876(359)], "Text": _0xe374a4[_0x5cb876(407)]["Text"], "Time": _0xe374a4[_0x5cb876(407)][_0x5cb876(393)] });
|
|
35096
35094
|
break;
|
|
35097
|
-
case
|
|
35098
|
-
c[
|
|
35095
|
+
case _0x5cb876(170):
|
|
35096
|
+
c["actionHandleCallBack"]("SeatBusy", _0x5cb876(346));
|
|
35099
35097
|
break;
|
|
35100
|
-
case
|
|
35101
|
-
n[
|
|
35098
|
+
case "CallOnceSuccess":
|
|
35099
|
+
n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(328), "value": true }), n[_0x5cb876(442)]({ "key": _0x5cb876(426), "value": _0x5cb876(374) }), c[_0x5cb876(150)](_0x5cb876(178), _0x5cb876(342));
|
|
35102
35100
|
break;
|
|
35103
|
-
case
|
|
35104
|
-
n[
|
|
35105
|
-
const
|
|
35106
|
-
c[
|
|
35107
|
-
}, 500), c[
|
|
35101
|
+
case "TypeAIToSeat":
|
|
35102
|
+
n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(438), "value": _0x5cb876(365) }), V(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x5cb876(376), "value": true }), n[_0x5cb876(442)]({ "key": "aiToSeatVoiceUrl", "value": _0xe374a4["Msg"] }), n[_0x5cb876(442)]({ "key": "customerInfo", "value": _0xe374a4["Data"] }), n[_0x5cb876(442)]({ "key": "connectInfo", "value": _0xe374a4[_0x5cb876(407)] }), l[_0x5cb876(234)] && setTimeout(() => {
|
|
35103
|
+
const _0x56f306 = _0x5cb876;
|
|
35104
|
+
c[_0x56f306(317)]({ "type": _0x56f306(384) }), console[_0x56f306(252)]("人机切换自动接听");
|
|
35105
|
+
}, 500), c[_0x5cb876(150)](_0x5cb876(214), _0x5cb876(246), { "PlanID": _0xe374a4[_0x5cb876(407)][_0x5cb876(359)], "Mobile": _0xe374a4[_0x5cb876(407)]["Mobile"], "IsAIToSeat": true });
|
|
35108
35106
|
break;
|
|
35109
|
-
case
|
|
35110
|
-
a[
|
|
35107
|
+
case _0x5cb876(297):
|
|
35108
|
+
a[_0x5cb876(301)] && a[_0x5cb876(301)][_0x5cb876(378)](), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": "" }), c[_0x5cb876(317)]({ "type": _0x5cb876(198) }), E();
|
|
35111
35109
|
break;
|
|
35112
35110
|
default:
|
|
35113
|
-
console[
|
|
35111
|
+
console[_0x5cb876(252)](_0x5cb876(452));
|
|
35114
35112
|
break;
|
|
35115
35113
|
}
|
|
35116
|
-
},
|
|
35117
|
-
const
|
|
35118
|
-
if (
|
|
35119
|
-
const
|
|
35120
|
-
|
|
35114
|
+
}, _0x1e2873["onclose"] = () => {
|
|
35115
|
+
const _0x25a0f8 = _0x579e74;
|
|
35116
|
+
if (M(), c[_0x25a0f8(150)](_0x25a0f8(323), _0x25a0f8(194)), n[_0x25a0f8(156)](""), n[_0x25a0f8(226)]({ "key": _0x25a0f8(303), "status": "closed" }), n[_0x25a0f8(442)]({ "key": _0x25a0f8(438), "value": "" }), n[_0x25a0f8(442)]({ "key": _0x25a0f8(353), "value": { "IsOnline": false, "IsAutoAnswer": l[_0x25a0f8(234)] } }), E(), a["recorder"] && a[_0x25a0f8(301)][_0x25a0f8(378)](), m && m["destroy"](), (R || a["autoClosed"]) && a[_0x25a0f8(405)] > 0) {
|
|
35117
|
+
const _0x55f036 = a["reconnectCount"] - 1;
|
|
35118
|
+
R = false, L(_0x2d70c1), n[_0x25a0f8(442)]({ "key": "reconnectCount", "value": _0x55f036 });
|
|
35121
35119
|
}
|
|
35122
|
-
},
|
|
35123
|
-
const
|
|
35124
|
-
|
|
35120
|
+
}, _0x1e2873[_0x579e74(339)] = () => {
|
|
35121
|
+
const _0x373373 = _0x579e74;
|
|
35122
|
+
M(), c[_0x373373(150)]("Offline", "坐席下线"), c["instanceClose"](), c[_0x373373(150)](_0x373373(388), _0x373373(455));
|
|
35125
35123
|
};
|
|
35126
35124
|
}
|
|
35127
|
-
const q = (
|
|
35128
|
-
const
|
|
35129
|
-
l =
|
|
35130
|
-
}, z = (
|
|
35131
|
-
const
|
|
35132
|
-
l =
|
|
35125
|
+
const q = (_0x22f8bc) => {
|
|
35126
|
+
const _0x5282f8 = _0x5609b8;
|
|
35127
|
+
l = _0x22f8bc, _0x22f8bc[_0x5282f8(274)] ? P["actions"][_0x5282f8(317)]({ "type": "CallOnce", "data": l[_0x5282f8(448)] }) : c[_0x5282f8(325)]();
|
|
35128
|
+
}, z = (_0x558458) => {
|
|
35129
|
+
const _0x236722 = _0x5609b8;
|
|
35130
|
+
l = _0x558458, c[_0x236722(325)]();
|
|
35133
35131
|
}, J = () => {
|
|
35134
|
-
const
|
|
35135
|
-
p[
|
|
35136
|
-
},
|
|
35132
|
+
const _0x21b722 = _0x5609b8, _0x173128 = p[_0x21b722(262)]();
|
|
35133
|
+
p[_0x21b722(248)]() ? c[_0x21b722(317)]({ "type": _0x21b722(385) }) : p[_0x21b722(222)]() ? c[_0x21b722(317)]({ "type": _0x21b722(288) }) : (_0x173128 === "振铃中" || _0x173128 === _0x21b722(374)) && c[_0x21b722(317)]({ "type": _0x21b722(217) }), C();
|
|
35134
|
+
}, C = (_0x27f898 = false) => {
|
|
35137
35135
|
setTimeout(() => {
|
|
35138
|
-
const
|
|
35139
|
-
a[
|
|
35136
|
+
const _0x363751 = _0x4084;
|
|
35137
|
+
a[_0x363751(244)] && a[_0x363751(244)][_0x363751(322)](), l[_0x363751(274)] ? _0x27f898 && c[_0x363751(317)]({ "type": _0x363751(198) }) : c["instanceClose"]();
|
|
35140
35138
|
}, 800);
|
|
35141
35139
|
}, Q = () => {
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
|
|
35146
|
-
_0x4150ce && (l = Object[_0x1f812c(500)]({}, l, _0x4150ce));
|
|
35140
|
+
c["actionSeatHandleIncoming"]({ "type": "Answer" });
|
|
35141
|
+
}, Z = (_0x7ba243) => {
|
|
35142
|
+
const _0x110e38 = _0x5609b8;
|
|
35143
|
+
_0x7ba243 && (l = Object[_0x110e38(413)]({}, l, _0x7ba243));
|
|
35147
35144
|
}, P = { "actions": c };
|
|
35148
35145
|
class ee {
|
|
35149
|
-
constructor(
|
|
35150
|
-
const
|
|
35151
|
-
w(this,
|
|
35152
|
-
}
|
|
35153
|
-
[
|
|
35154
|
-
const
|
|
35155
|
-
if (!this[
|
|
35156
|
-
this[
|
|
35146
|
+
constructor(_0x481aad) {
|
|
35147
|
+
const _0xa31d99 = _0x5609b8;
|
|
35148
|
+
w(this, _0xa31d99(270)), this["data"] = _0x481aad;
|
|
35149
|
+
}
|
|
35150
|
+
[_0x5609b8(417)](_0x49115b) {
|
|
35151
|
+
const _0x2d2967 = _0x5609b8, { mobile: _0x28702a, callBack: _0x3a23be = "", outPlanID: _0x5ef403 = "", robotPID: _0xb9254d = "" } = _0x49115b;
|
|
35152
|
+
if (!this[_0x2d2967(270)][_0x2d2967(439)] || !this[_0x2d2967(270)][_0x2d2967(357)] || !this[_0x2d2967(270)][_0x2d2967(206)]) {
|
|
35153
|
+
this[_0x2d2967(276)]("缺少companyID、employeeID、token参数");
|
|
35157
35154
|
return;
|
|
35158
35155
|
}
|
|
35159
|
-
if (!
|
|
35160
|
-
this[
|
|
35156
|
+
if (!_0x28702a && !_0x49115b["planID"]) {
|
|
35157
|
+
this[_0x2d2967(276)](_0x2d2967(278));
|
|
35161
35158
|
return;
|
|
35162
35159
|
}
|
|
35163
|
-
if (!F(this[
|
|
35164
|
-
this[
|
|
35160
|
+
if (!F(this[_0x2d2967(270)][_0x2d2967(206)])) {
|
|
35161
|
+
this[_0x2d2967(276)](_0x2d2967(283));
|
|
35165
35162
|
return;
|
|
35166
35163
|
}
|
|
35167
|
-
let
|
|
35168
|
-
|
|
35169
|
-
const
|
|
35170
|
-
q(Object[
|
|
35171
|
-
}, (
|
|
35172
|
-
const
|
|
35173
|
-
this[
|
|
35164
|
+
let _0x565e35 = { "Mobile": _0x49115b[_0x2d2967(358)] };
|
|
35165
|
+
_0x49115b[_0x2d2967(268)] && (_0x565e35[_0x2d2967(344)] = _0x49115b[_0x2d2967(268)]), _0x49115b[_0x2d2967(408)] && (_0x565e35[_0x2d2967(359)] = _0x49115b["planID"]), _0x49115b[_0x2d2967(153)] && (_0x565e35[_0x2d2967(237)] = _0x49115b[_0x2d2967(153)]), _0xb9254d && (_0x565e35[_0x2d2967(430)] = _0xb9254d), _0x5ef403 && (_0x565e35[_0x2d2967(424)] = _0x5ef403), _0x3a23be && (_0x565e35[_0x2d2967(372)] = _0x3a23be), _0x49115b[_0x2d2967(238)] && (_0x565e35[_0x2d2967(441)] = _0x49115b[_0x2d2967(238)]), _0x49115b[_0x2d2967(326)] && (_0x565e35[_0x2d2967(281)] = _0x49115b[_0x2d2967(326)]), _0x49115b[_0x2d2967(299)] && (_0x565e35[_0x2d2967(443)] = _0x49115b["qualityNoticeToCaller"]), B(() => {
|
|
35166
|
+
const _0x5b5edc = _0x2d2967;
|
|
35167
|
+
q(Object[_0x5b5edc(413)]({}, this[_0x5b5edc(270)], { "callOptions": _0x565e35 }));
|
|
35168
|
+
}, (_0x3ed876) => {
|
|
35169
|
+
const _0x288edc = _0x2d2967;
|
|
35170
|
+
this[_0x288edc(276)](_0x3ed876[_0x288edc(429)]);
|
|
35174
35171
|
});
|
|
35175
35172
|
}
|
|
35176
|
-
[
|
|
35177
|
-
const
|
|
35178
|
-
this[
|
|
35173
|
+
["handleError"](_0x42be27) {
|
|
35174
|
+
const _0x194525 = _0x5609b8;
|
|
35175
|
+
this[_0x194525(270)][_0x194525(212)] && this["data"][_0x194525(212)]({ "type": "Error", "msg": _0x42be27 });
|
|
35179
35176
|
}
|
|
35180
|
-
[
|
|
35177
|
+
["terminate"]() {
|
|
35181
35178
|
J();
|
|
35182
35179
|
}
|
|
35183
|
-
[
|
|
35180
|
+
[_0x5609b8(220)]() {
|
|
35184
35181
|
Q();
|
|
35185
35182
|
}
|
|
35186
|
-
[
|
|
35183
|
+
["online"]() {
|
|
35187
35184
|
B(() => {
|
|
35188
35185
|
z(this["data"]);
|
|
35189
|
-
}, (
|
|
35190
|
-
const
|
|
35191
|
-
this[
|
|
35186
|
+
}, (_0x586f73) => {
|
|
35187
|
+
const _0x3f0668 = _0x4084;
|
|
35188
|
+
this[_0x3f0668(276)](_0x586f73["errMsg"]);
|
|
35192
35189
|
});
|
|
35193
35190
|
}
|
|
35194
|
-
[
|
|
35195
|
-
const
|
|
35196
|
-
P[
|
|
35191
|
+
[_0x5609b8(200)]() {
|
|
35192
|
+
const _0x4d593b = _0x5609b8;
|
|
35193
|
+
P[_0x4d593b(345)][_0x4d593b(247)]();
|
|
35197
35194
|
}
|
|
35198
|
-
[
|
|
35199
|
-
Z(
|
|
35195
|
+
[_0x5609b8(456)](_0xef22d8) {
|
|
35196
|
+
Z(_0xef22d8);
|
|
35200
35197
|
}
|
|
35201
35198
|
}
|
|
35202
35199
|
const _hoisted_1$3 = {
|
|
@@ -36156,14 +36153,10 @@ const _sfc_main = {
|
|
|
36156
36153
|
handleCallEnded();
|
|
36157
36154
|
break;
|
|
36158
36155
|
case "Error":
|
|
36159
|
-
|
|
36160
|
-
closeMsg.value = e.msg;
|
|
36161
|
-
initData();
|
|
36162
|
-
break;
|
|
36156
|
+
case "SeatBusy":
|
|
36163
36157
|
case "CallUnexpected":
|
|
36164
36158
|
showError.value = true;
|
|
36165
36159
|
closeMsg.value = e.msg;
|
|
36166
|
-
seatStatus.value = false;
|
|
36167
36160
|
initData();
|
|
36168
36161
|
break;
|
|
36169
36162
|
case "Offline":
|