@tuotoo/kiwi-pc-plugin-toolbar 0.1.5 → 0.1.7

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
@@ -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$2(type, propsOrChildren, children) {
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$2(BaseTransition, resolveTransitionProps(props), slots)
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$2(IsolatedRenderer, {
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$2("thead", {
27358
+ return h$1("thead", {
27359
27359
  ref: "theadRef",
27360
27360
  class: { [ns.is("group")]: isGroup }
27361
- }, columnRows.map((subColumns, rowIndex) => h$2("tr", {
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$2("th", {
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$2("div", {
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$2("span", {
27403
+ column.sortable && h$1("span", {
27404
27404
  onClick: ($event) => handleSortClick($event, column),
27405
27405
  class: "caret-wrapper"
27406
27406
  }, [
27407
- h$2("i", {
27407
+ h$1("i", {
27408
27408
  onClick: ($event) => handleSortClick($event, column, "ascending"),
27409
27409
  class: "sort-caret ascending"
27410
27410
  }),
27411
- h$2("i", {
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$2(FilterPanel, {
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$2("div"));
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$2("tr", {
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$2(TdWrapper, {
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$2("tr", {
27830
+ rows[0].push(h$1("tr", {
27831
27831
  key: `expanded-row__${tr.key}`,
27832
27832
  style: { display: expanded ? "" : "none" }
27833
27833
  }, [
27834
- h$2("td", {
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$2("tbody", { tabIndex: -1 }, [
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$2(h$2("tfoot", [
28165
- h$2("tr", {}, [
28166
- ...columns.map((column, cellIndex) => h$2("td", {
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$2("div", {
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$2("colgroup", {}, columns.map((column) => h$2("col", getPropsData(column))));
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$1 = U$1;
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$1.canUseDOM && (X = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
28700
+ h.canUseDOM && (X = document.implementation && document.implementation.hasFeature && document.implementation.hasFeature("", "") !== true);
28701
28701
  function S(e, n2) {
28702
- if (!h$1.canUseDOM || n2 && !("addEventListener" in document)) return false;
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$2(ElCheckbox, {
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$2(ElCheckbox, {
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$2("div", {}, [i]);
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$2("div", {
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$2(ElIcon, null, {
29220
+ h$1(ElIcon, null, {
29221
29221
  default: () => {
29222
- return [h$2(arrow_right_default)];
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$2("span", {
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$2("span", {
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$2("div", {
29285
+ ele.push(h$1("div", {
29286
29286
  class: expandClasses,
29287
29287
  onClick: callback
29288
29288
  }, {
29289
29289
  default: () => {
29290
29290
  return [
29291
- h$2(ElIcon, { class: { [ns.is("loading")]: treeNode.loading } }, {
29292
- default: () => [h$2(icon)]
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$2("span", {
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$2("div", {
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$2("div", props2, [prefix, children]);
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$2("div", children);
29733
+ const vnode = h$1("div", children);
29734
29734
  return vnode;
29735
29735
  } catch (e) {
29736
- return h$2("div", []);
29736
+ return h$1("div", []);
29737
29737
  }
29738
29738
  }
29739
29739
  });
@@ -34545,651 +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 _0x4ae588 = _0x2125;
34549
- (function(_0x4a6f01, _0x523d45) {
34550
- const _0xd20530 = _0x2125, _0x347cfe = _0x4a6f01();
34548
+ const _0x5609b8 = _0x4084;
34549
+ (function(_0x134f03, _0x2bf0eb) {
34550
+ const _0x304de1 = _0x4084, _0x155bac = _0x134f03();
34551
34551
  while (!![]) {
34552
34552
  try {
34553
- const _0x122c47 = -parseInt(_0xd20530(352)) / 1 * (-parseInt(_0xd20530(594)) / 2) + -parseInt(_0xd20530(452)) / 3 + parseInt(_0xd20530(649)) / 4 + -parseInt(_0xd20530(458)) / 5 * (parseInt(_0xd20530(394)) / 6) + parseInt(_0xd20530(442)) / 7 * (parseInt(_0xd20530(401)) / 8) + -parseInt(_0xd20530(544)) / 9 * (-parseInt(_0xd20530(512)) / 10) + parseInt(_0xd20530(380)) / 11;
34554
- if (_0x122c47 === _0x523d45) break;
34555
- else _0x347cfe["push"](_0x347cfe["shift"]());
34556
- } catch (_0x556949) {
34557
- _0x347cfe["push"](_0x347cfe["shift"]());
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
- })(_0x14e4, 716287);
34561
- var K = Object["defineProperty"], N = (_0x360dd7, _0x3267f3, _0x9cbca2) => _0x3267f3 in _0x360dd7 ? K(_0x360dd7, _0x3267f3, { "enumerable": true, "configurable": true, "writable": true, "value": _0x9cbca2 }) : _0x360dd7[_0x3267f3] = _0x9cbca2, w = (_0x4feb91, _0x20cf99, _0x120246) => N(_0x4feb91, typeof _0x20cf99 != "symbol" ? _0x20cf99 + "" : _0x20cf99, _0x120246);
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
- function _0x2125(_0x4a6304, _0x443aab) {
34564
- const _0x14e411 = _0x14e4();
34565
- return _0x2125 = function(_0x21252e, _0x424804) {
34566
- _0x21252e = _0x21252e - 348;
34567
- let _0x2e3eaa = _0x14e411[_0x21252e];
34568
- return _0x2e3eaa;
34569
- }, _0x2125(_0x4a6304, _0x443aab);
34570
- }
34571
- const Y = function(_0x1a5280, _0x47d493) {
34572
- const _0xebcddc = _0x2125;
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;
34573
34572
  this["context"] = new AudioContext({ "sampleRate": 8e3 });
34574
- let _0x560f0b = this[_0xebcddc(554)][_0xebcddc(619)](_0x1a5280), _0x1b04c0 = this[_0xebcddc(554)][_0xebcddc(422)](2048, 1, 1);
34575
- const _0x1dbb6d = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
34576
- const _0xe40866 = _0xebcddc;
34577
- this[_0xe40866(643)] = [], this[_0xe40866(529)] = 0;
34578
- }, "input": function(_0x59113f) {
34579
- const _0x37c22e = _0xebcddc;
34580
- this["buffer"][_0x37c22e(543)](new Float32Array(_0x59113f)), this[_0x37c22e(529)] += _0x59113f[_0x37c22e(435)];
34573
+ 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"];
34581
34580
  }, "compress": function() {
34582
- const _0x3d5388 = _0xebcddc;
34583
- for (var _0x5b6428 = new Float32Array(this[_0x3d5388(529)]), _0x215192 = 0, _0x59dc51 = 0; _0x59dc51 < this[_0x3d5388(643)][_0x3d5388(435)]; _0x59dc51++) _0x5b6428["set"](this[_0x3d5388(643)][_0x59dc51], _0x215192), _0x215192 += this[_0x3d5388(643)][_0x59dc51]["length"];
34584
- for (var _0x4afe92 = parseInt(String(this[_0x3d5388(531)] / this[_0x3d5388(476)])), _0x36cc5f = _0x5b6428[_0x3d5388(435)] / _0x4afe92, _0x49cacd = new Float32Array(_0x36cc5f), _0x5f48a7 = 0, _0xc0ae = 0; _0x5f48a7 < _0x36cc5f; ) _0x49cacd[_0x5f48a7] = _0x5b6428[_0xc0ae], _0xc0ae += _0x4afe92, _0x5f48a7++;
34585
- return _0x49cacd;
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;
34586
34585
  }, "encodePCM": function() {
34587
- const _0x4e7be7 = _0xebcddc;
34588
- for (var _0x28ac1f = Math["min"](this[_0x4e7be7(359)], this[_0x4e7be7(557)]), _0x27a387 = this["compress"](), _0x6677e3 = _0x27a387[_0x4e7be7(435)] * (_0x28ac1f / 8), _0x3450cf = new ArrayBuffer(_0x6677e3), _0xb8f840 = new DataView(_0x3450cf), _0x4f63b = 0, _0x4db4ea = 0; _0x4db4ea < _0x27a387[_0x4e7be7(435)]; _0x4db4ea++, _0x4f63b += 2) {
34589
- var _0x192f90 = Math[_0x4e7be7(514)](-1, Math[_0x4e7be7(432)](1, _0x27a387[_0x4db4ea]));
34590
- _0xb8f840[_0x4e7be7(402)](_0x4f63b, _0x192f90 < 0 ? _0x192f90 * 32768 : _0x192f90 * 32767, true);
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);
34591
34590
  }
34592
- return new Blob([_0xb8f840]);
34591
+ return new Blob([_0x54d1f1]);
34593
34592
  } };
34594
- var _0x5245a8 = function() {
34595
- const _0x23facd = _0xebcddc;
34596
- var _0xbfe1e6 = new FileReader();
34597
- _0xbfe1e6[_0x23facd(635)] = (_0x24f969) => {
34598
- const _0x2caab7 = _0x23facd;
34599
- if (!(!_0x24f969[_0x2caab7(389)] || !k)) {
34600
- var _0x2f29c7 = _0x24f969[_0x2caab7(389)][_0x2caab7(434)];
34601
- if (!(!_0x2f29c7 || typeof _0x2f29c7 == _0x2caab7(653))) {
34602
- var _0x59ab3f = new Int16Array(_0x2f29c7);
34603
- _0x47d493(_0x59ab3f);
34604
- }
34605
- }
34606
- }, _0xbfe1e6["readAsArrayBuffer"](_0x1dbb6d["encodePCM"]()), _0x1dbb6d["clear"]();
34607
- };
34608
- this[_0xebcddc(569)] = function() {
34609
- const _0x4549a1 = _0xebcddc;
34610
- k = true, _0x560f0b["connect"](_0x1b04c0), _0x1b04c0[_0x4549a1(500)](this[_0x4549a1(554)][_0x4549a1(651)]);
34611
- }, this["stop"] = function() {
34612
- const _0x435302 = _0xebcddc;
34613
- k = false, _0x1a5280[_0x435302(496)]()["forEach"]((_0x316c74) => _0x316c74["stop"]()), _0x1b04c0 && (_0x1b04c0[_0x435302(396)] = null, _0x1b04c0[_0x435302(424)]()), _0x560f0b && _0x560f0b[_0x435302(424)](), this[_0x435302(554)] && this[_0x435302(554)]["close"](), _0x1b04c0 = null, _0x560f0b = null, this["context"] = null;
34614
- }, this["getBlob"] = function() {
34615
- return _0x1dbb6d["encodePCM"]();
34616
- }, this[_0xebcddc(597)] = function() {
34617
- const _0x3f39af = _0xebcddc;
34618
- _0x1dbb6d["clear"](), this[_0x3f39af(554)] && (this["context"][_0x3f39af(518)](), this["context"] = null);
34619
- }, _0x1b04c0[_0xebcddc(396)] = function(_0x51eda0) {
34620
- const _0x2a554d = _0xebcddc;
34621
- if (!(!k || !this["context"] || this["context"][_0x2a554d(441)] === _0x2a554d(576))) {
34622
- var _0x4faa2d = _0x51eda0[_0x2a554d(450)][_0x2a554d(657)](0);
34623
- _0x1dbb6d[_0x2a554d(354)](_0x4faa2d), _0x5245a8();
34624
- }
34625
- };
34626
- }, O = (_0x2fb5ab) => {
34627
- const _0x3f0f79 = _0x2125;
34628
- switch (_0x2fb5ab[_0x3f0f79(535)] || _0x2fb5ab[_0x3f0f79(508)]) {
34629
- case _0x3f0f79(646):
34630
- case _0x3f0f79(647):
34631
- return _0x3f0f79(372);
34632
- case "NOT_SUPPORTED_ERROR":
34633
- case _0x3f0f79(511):
34634
- return _0x3f0f79(636);
34635
- case "MANDATORY_UNSATISFIED_ERROR":
34636
- case _0x3f0f79(538):
34637
- return _0x3f0f79(507);
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):
34630
+ case "PermissionDeniedError":
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);
34638
34638
  default:
34639
- return _0x3f0f79(565) + _0x2fb5ab;
34639
+ return _0x3f5cc7(402) + _0x3b6f59;
34640
34640
  }
34641
- }, x = () => !navigator["mediaDevices"] || !navigator[_0x4ae588(566)]["getUserMedia"] ? (console[_0x4ae588(495)](_0x4ae588(579)), false) : true;
34641
+ }, x = () => !navigator["mediaDevices"] || !navigator[_0x5609b8(265)][_0x5609b8(173)] ? (console[_0x5609b8(252)]("当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。"), false) : true;
34642
34642
  let T = "";
34643
34643
  const V = () => {
34644
- const _0xe7479d = _0x4ae588;
34644
+ const _0x386af6 = _0x5609b8;
34645
34645
  E();
34646
- let _0x4e7a6c = _0xe7479d(607);
34647
- T = new Audio(_0x4e7a6c), T["addEventListener"](_0xe7479d(361), (_0x4cd588) => {
34648
- const _0x1ec2de = _0xe7479d;
34649
- console[_0x1ec2de(495)](_0x1ec2de(361), _0x4cd588);
34650
- }), T[_0xe7479d(622)](_0xe7479d(459), () => {
34651
- const _0x228891 = _0xe7479d;
34652
- T[_0x228891(564)](), console[_0x228891(495)](_0x228891(440));
34653
- }), T[_0xe7479d(564)]();
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)]();
34654
34654
  }, E = () => {
34655
- const _0x3859d2 = _0x4ae588;
34656
- T && (console["log"](_0x3859d2(417)), T["pause"](), T = "");
34655
+ const _0x5e6efc = _0x5609b8;
34656
+ T && (console[_0x5e6efc(252)]("停止响铃"), T[_0x5e6efc(348)](), T = "");
34657
34657
  }, W = () => {
34658
- const _0x262651 = _0x4ae588;
34659
- let _0x411582 = _0x262651(445);
34660
- const _0x184ff1 = new Audio(_0x411582);
34661
- _0x184ff1[_0x262651(622)](_0x262651(361), (_0x5262d8) => {
34662
- const _0x13eb0a = _0x262651;
34663
- console[_0x13eb0a(495)](_0x13eb0a(361), _0x5262d8);
34664
- }), _0x184ff1[_0x262651(622)](_0x262651(459), () => {
34665
- const _0x21a979 = _0x262651;
34666
- _0x184ff1[_0x21a979(541)]();
34667
- }), _0x184ff1[_0x262651(564)]();
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)]();
34668
34668
  }, v = () => {
34669
- const _0x2bf1bf = _0x4ae588;
34670
- let _0x283242 = _0x2bf1bf(431);
34671
- const _0x20731c = new Audio(_0x283242);
34672
- _0x20731c["addEventListener"](_0x2bf1bf(361), (_0x5c47f6) => {
34673
- const _0xa87221 = _0x2bf1bf;
34674
- console["log"](_0xa87221(361), _0x5c47f6);
34675
- }), _0x20731c["addEventListener"](_0x2bf1bf(459), () => {
34676
- const _0x392047 = _0x2bf1bf;
34677
- _0x20731c[_0x392047(541)]();
34678
- }), _0x20731c[_0x2bf1bf(564)]();
34679
- }, B = (_0x229977, _0x20dd5f) => {
34680
- const _0x11abd8 = _0x4ae588;
34681
- navigator[_0x11abd8(566)][_0x11abd8(614)]({ "audio": {} })[_0x11abd8(428)]((_0x3b5af1) => {
34682
- const _0x2b00cd = _0x11abd8;
34683
- _0x229977 && _0x229977(), _0x3b5af1[_0x2b00cd(496)]()[_0x2b00cd(471)]((_0x51e7b2) => _0x51e7b2["stop"]());
34684
- })[_0x11abd8(555)]((_0x412cba) => {
34685
- const _0x33ddfb = O(_0x412cba);
34686
- _0x20dd5f && _0x20dd5f({ "errMsg": _0x33ddfb });
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 });
34687
34687
  });
34688
- }, b = () => (Math[_0x4ae588(630)]() * 1e7)[_0x4ae588(378)](16)[_0x4ae588(600)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x4ae588(502)]() + "-" + Math[_0x4ae588(630)]()[_0x4ae588(378)]()[_0x4ae588(600)](2, 5);
34689
- function F(_0x5d777d) {
34690
- const _0x5573fc = _0x4ae588;
34691
- let _0x581fff;
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;
34692
34700
  try {
34693
- _0x581fff = JSON[_0x5573fc(430)](atob(_0x5d777d["split"](".")[1]))[_0x5573fc(642)];
34701
+ _0x38cbbb = JSON[_0x35a9fc(333)](atob(_0x1d239a[_0x35a9fc(390)](".")[1]))["exp"];
34694
34702
  } catch {
34695
- _0x581fff = 0;
34696
- }
34697
- return _0x581fff > Date[_0x5573fc(483)]() / 1e3;
34698
- }
34699
- const j = (_0x241c2d) => _0x241c2d[_0x4ae588(598)](new RegExp(/(\d{3})\d*(\d{4})/), _0x4ae588(497));
34700
- function A(_0x567554) {
34701
- this["init"](_0x567554);
34702
- }
34703
- A[_0x4ae588(620)]["init"] = function(_0x2188b8) {
34704
- const _0x443aad = _0x4ae588;
34705
- var _0x82169c = { "encoding": "16bitInt", "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
34706
- this[_0x443aad(406)] = Object[_0x443aad(528)]({}, _0x82169c, _0x2188b8), this["samples"] = new Float32Array(), this["flush"] = this[_0x443aad(454)][_0x443aad(366)](this), this[_0x443aad(632)] = setInterval(this[_0x443aad(454)], this[_0x443aad(406)][_0x443aad(560)]), this["maxValue"] = this["getMaxValue"](), this[_0x443aad(494)] = this["getTypedArray"](), this[_0x443aad(656)]();
34707
- }, A[_0x4ae588(620)][_0x4ae588(486)] = function() {
34708
- const _0xff9adc = _0x4ae588;
34709
- var _0x2bf7f1 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
34710
- return _0x2bf7f1[this[_0xff9adc(406)][_0xff9adc(487)]] ? _0x2bf7f1[this[_0xff9adc(406)][_0xff9adc(487)]] : _0x2bf7f1[_0xff9adc(448)];
34711
- }, A[_0x4ae588(620)]["getTypedArray"] = function() {
34712
- const _0x4f14f6 = _0x4ae588;
34713
- var _0x198b1e = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
34714
- return _0x198b1e[this[_0x4f14f6(406)][_0x4f14f6(487)]] ? _0x198b1e[this[_0x4f14f6(406)][_0x4f14f6(487)]] : _0x198b1e["16bitInt"];
34715
- }, A[_0x4ae588(620)][_0x4ae588(656)] = function() {
34716
- const _0x3f1b03 = _0x4ae588;
34717
- this["audioCtx"] = new (window["AudioContext"] || window["webkitAudioContext"])(), this[_0x3f1b03(650)] = this["audioCtx"]["createGain"](), this[_0x3f1b03(650)][_0x3f1b03(568)][_0x3f1b03(388)] = 1, this["gainNode"][_0x3f1b03(500)](this["audioCtx"][_0x3f1b03(651)]), this[_0x3f1b03(563)] = this[_0x3f1b03(467)][_0x3f1b03(593)];
34718
- }, A["prototype"][_0x4ae588(391)] = function(_0x386c9e) {
34719
- const _0x54b0d1 = _0x4ae588;
34720
- return _0x386c9e["byteLength"] && _0x386c9e[_0x54b0d1(643)] && _0x386c9e["buffer"][_0x54b0d1(491)] == ArrayBuffer;
34721
- }, A[_0x4ae588(620)][_0x4ae588(439)] = function(_0x1426fb) {
34722
- const _0xa42815 = _0x4ae588;
34723
- if (this["isTypedArray"](_0x1426fb)) {
34724
- _0x1426fb = this["getFormatedValue"](_0x1426fb);
34725
- var _0x2b9d99 = new Float32Array(this[_0xa42815(577)][_0xa42815(435)] + _0x1426fb[_0xa42815(435)]);
34726
- _0x2b9d99[_0xa42815(377)](this[_0xa42815(577)], 0), _0x2b9d99[_0xa42815(377)](_0x1426fb, this[_0xa42815(577)][_0xa42815(435)]), this[_0xa42815(577)] = _0x2b9d99;
34727
- }
34728
- }, A[_0x4ae588(620)][_0x4ae588(384)] = function(_0x150862) {
34729
- const _0x437f5d = _0x4ae588;
34730
- var _0x150862 = new this[_0x437f5d(494)](_0x150862[_0x437f5d(643)]), _0x3b560b = new Float32Array(_0x150862["length"]), _0xf4c310;
34731
- for (_0xf4c310 = 0; _0xf4c310 < _0x150862[_0x437f5d(435)]; _0xf4c310++) _0x3b560b[_0xf4c310] = _0x150862[_0xf4c310] / this["maxValue"];
34732
- return _0x3b560b;
34733
- }, A[_0x4ae588(620)][_0x4ae588(395)] = function(_0x17561) {
34734
- const _0x23c6c4 = _0x4ae588;
34735
- this[_0x23c6c4(650)][_0x23c6c4(568)][_0x23c6c4(388)] = _0x17561;
34736
- }, A["prototype"][_0x4ae588(498)] = function() {
34737
- const _0x2ce509 = _0x4ae588;
34738
- this[_0x2ce509(632)] && clearInterval(this[_0x2ce509(632)]), this[_0x2ce509(577)] = null, this[_0x2ce509(467)] && this[_0x2ce509(467)][_0x2ce509(518)](), this["audioCtx"] = null;
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;
34739
34748
  }, A["prototype"]["flush"] = function() {
34740
- const _0x5a0566 = _0x4ae588;
34741
- if (this[_0x5a0566(577)][_0x5a0566(435)]) {
34742
- var _0x3c4ae3 = this[_0x5a0566(467)][_0x5a0566(412)](), _0x16c6c7 = this[_0x5a0566(577)][_0x5a0566(435)] / this[_0x5a0566(406)]["channels"], _0x112c71 = this[_0x5a0566(467)]["createBuffer"](this[_0x5a0566(406)][_0x5a0566(373)], _0x16c6c7, this[_0x5a0566(406)]["sampleRate"]), _0x49e336, _0xa7951c, _0x16361e, _0x2e0818, _0x36e62b;
34743
- for (_0xa7951c = 0; _0xa7951c < this[_0x5a0566(406)][_0x5a0566(373)]; _0xa7951c++) for (_0x49e336 = _0x112c71[_0x5a0566(657)](_0xa7951c), _0x16361e = _0xa7951c, _0x36e62b = 50, _0x2e0818 = 0; _0x2e0818 < _0x16c6c7; _0x2e0818++) _0x49e336[_0x2e0818] = this[_0x5a0566(577)][_0x16361e], _0x2e0818 < 50 && (_0x49e336[_0x2e0818] = _0x49e336[_0x2e0818] * _0x2e0818 / 50), _0x2e0818 >= _0x16c6c7 - 51 && (_0x49e336[_0x2e0818] = _0x49e336[_0x2e0818] * _0x36e62b-- / 50), _0x16361e += this[_0x5a0566(406)][_0x5a0566(373)];
34744
- this[_0x5a0566(563)] < this[_0x5a0566(467)][_0x5a0566(593)] && (this[_0x5a0566(563)] = this[_0x5a0566(467)][_0x5a0566(593)]), _0x3c4ae3[_0x5a0566(643)] = _0x112c71, _0x3c4ae3[_0x5a0566(500)](this["gainNode"]), _0x3c4ae3["start"](this[_0x5a0566(563)]), this[_0x5a0566(563)] += _0x112c71[_0x5a0566(551)], this[_0x5a0566(577)] = new Float32Array();
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();
34745
34754
  }
34746
34755
  };
34747
34756
  let l = { "companyID": "", "employeeID": "", "token": "", "callOptions": {}, "onMessage": () => {
34748
34757
  } };
34749
- function H(_0x34d9d9) {
34750
- const _0x251902 = _0x4ae588;
34751
- let _0x15ee82 = "";
34758
+ function H(_0x3898f4) {
34759
+ const _0x134deb = _0x5609b8;
34760
+ let _0x19660c = "";
34752
34761
  try {
34753
- _0x15ee82 = JSON[_0x251902(519)](_0x34d9d9);
34754
- } catch (_0x114da1) {
34755
- console[_0x251902(495)](_0x251902(484), _0x114da1);
34762
+ _0x19660c = JSON[_0x134deb(284)](_0x3898f4);
34763
+ } catch (_0x321b5a) {
34764
+ console["log"](_0x134deb(423), _0x321b5a);
34756
34765
  }
34757
- return _0x15ee82;
34766
+ return _0x19660c;
34758
34767
  }
34759
- function G(_0x81c307) {
34760
- const _0x164236 = _0x4ae588;
34761
- return _0x81c307 === "test" ? _0x164236(462) : _0x164236(418);
34768
+ function G(_0x1edb92) {
34769
+ const _0x3de77b = _0x5609b8;
34770
+ return _0x1edb92 === _0x3de77b(182) ? _0x3de77b(434) : _0x3de77b(184);
34762
34771
  }
34763
- let M = "";
34772
+ let U = "";
34764
34773
  function $() {
34765
- U(), M = setInterval(() => {
34766
- const _0x3a9c20 = _0x2125;
34767
- c["actionSeatHandleIncoming"]({ "type": _0x3a9c20(490) });
34774
+ M(), U = setInterval(() => {
34775
+ const _0x45f353 = _0x4084;
34776
+ c["actionSeatHandleIncoming"]({ "type": _0x45f353(312) });
34768
34777
  }, 3e4);
34769
34778
  }
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": _0x4ae588(583), "botStatus": _0x4ae588(583), "audio": document[_0x4ae588(382)](_0x4ae588(525)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a["seatData"]["results"] || [], "getterSeatAudioInput"() {
34774
- const _0x1c5edd = _0x4ae588;
34775
- return a["mediaDevice"][_0x1c5edd(534)]((_0x414310) => _0x414310["kind"] === _0x1c5edd(641));
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 _0x2e99f2 = _0x4ae588;
34778
- return a[_0x2e99f2(426)][_0x2e99f2(534)]((_0x76774b) => _0x76774b[_0x2e99f2(461)] === _0x2e99f2(533));
34786
+ const _0x213740 = _0x5609b8;
34787
+ return a[_0x213740(197)][_0x213740(256)]((_0x3bd68a) => _0x3bd68a[_0x213740(406)] === "audiooutput");
34779
34788
  }, "getterSeatCurrentDeviceInfoInputID"() {
34780
- const _0x217820 = _0x4ae588;
34781
- return a[_0x217820(423)] ? a["currentDeviceInfoInput"][_0x217820(596)] : "";
34789
+ const _0x580954 = _0x5609b8;
34790
+ return a["currentDeviceInfoInput"] ? a["currentDeviceInfoInput"][_0x580954(275)] : "";
34782
34791
  }, "getterSeatCurrentDeviceInfoOutputID"() {
34783
- const _0xf79b97 = _0x4ae588;
34784
- return a[_0xf79b97(466)] ? a[_0xf79b97(466)][_0xf79b97(596)] : "";
34785
- }, "getterSeatCurrentPhoneRingAudio"(_0x4311d1) {
34786
- const _0x235ca2 = _0x4ae588;
34787
- return _0x4311d1[_0x235ca2(621)];
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 _0x405c48 = _0x4ae588;
34790
- return a[_0x405c48(408)] ? a[_0x405c48(408)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34798
+ const _0x1a30b3 = _0x5609b8;
34799
+ return a[_0x1a30b3(257)] ? a[_0x1a30b3(257)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34791
34800
  }, "getterSeatConnectInfo"() {
34792
- const _0x5ba22a = _0x4ae588;
34793
- return a[_0x5ba22a(411)] ? a[_0x5ba22a(411)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34801
+ const _0x353568 = _0x5609b8;
34802
+ return a[_0x353568(311)] ? a[_0x353568(311)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34794
34803
  }, "getterSeatIsRinging"() {
34795
- const _0xb76e2b = _0x4ae588;
34796
- return a[_0xb76e2b(419)] === _0xb76e2b(505);
34804
+ const _0x1c3131 = _0x5609b8;
34805
+ return a[_0x1c3131(438)] === _0x1c3131(365);
34797
34806
  }, "getterSeatIsConnected"() {
34798
- const _0x3138fc = _0x4ae588;
34799
- return a[_0x3138fc(419)] === _0x3138fc(612);
34807
+ const _0x3d3104 = _0x5609b8;
34808
+ return a[_0x3d3104(438)] === _0x3d3104(219);
34800
34809
  }, "getterSeatIsHangup"() {
34801
- const _0x2ced94 = _0x4ae588;
34802
- return a["callingStage"] === _0x2ced94(586);
34810
+ const _0x1d14e6 = _0x5609b8;
34811
+ return a[_0x1d14e6(438)] === _0x1d14e6(431);
34803
34812
  }, "getterSeatStatus"() {
34804
- const _0x8dfe = _0x4ae588;
34805
- return a[_0x8dfe(421)];
34813
+ const _0x546a43 = _0x5609b8;
34814
+ return a[_0x546a43(353)];
34806
34815
  }, "getterSeatCanCallout"() {
34807
- const _0x184694 = _0x4ae588;
34808
- return a[_0x184694(479)] === "connected";
34816
+ const _0x296e13 = _0x5609b8;
34817
+ return a[_0x296e13(303)] === _0x296e13(219);
34809
34818
  }, "getterSeatBotStatus"() {
34810
34819
  return a["botStatus"];
34811
34820
  }, "getterSeatRecordsData"() {
34812
- const _0xb0a911 = _0x4ae588;
34813
- return a[_0xb0a911(379)];
34821
+ return a["recordsData"];
34814
34822
  }, "getterSeatOnceCall"() {
34815
- return a["onceCall"];
34823
+ const _0x369095 = _0x5609b8;
34824
+ return a[_0x369095(328)];
34816
34825
  }, "getterAIToSeat"() {
34817
- return a["aiToSeat"];
34826
+ const _0x44cbf8 = _0x5609b8;
34827
+ return a[_0x44cbf8(376)];
34818
34828
  }, "getterSeatCallOnceStage"() {
34819
- const _0x1eb31a = _0x4ae588;
34820
- return a[_0x1eb31a(425)];
34829
+ const _0x5613fe = _0x5609b8;
34830
+ return a[_0x5613fe(426)];
34821
34831
  }, "getterSeatCallingStage"() {
34822
- const _0x315d33 = _0x4ae588;
34823
- return a[_0x315d33(419)];
34832
+ const _0x1a24d6 = _0x5609b8;
34833
+ return a[_0x1a24d6(438)];
34824
34834
  } };
34825
34835
  let R = false, m = "";
34826
- const c = { "actionSeatInitVoiceWSInstance": (_0x955e3e) => {
34827
- const _0xf3fece = _0x4ae588;
34828
- a[_0xf3fece(353)] && (console["log"](_0xf3fece(530), a[_0xf3fece(353)]), a["voiceInstance"][_0xf3fece(518)]());
34829
- const _0x3bce12 = new WebSocket(_0x955e3e[_0xf3fece(370)]);
34830
- _0x3bce12[_0xf3fece(639)] = _0xf3fece(392), _0x3bce12[_0xf3fece(539)] = () => {
34831
- const _0x10e34e = _0xf3fece;
34832
- n[_0x10e34e(358)]({ "key": _0x10e34e(489), "status": "connected" });
34833
- }, _0x3bce12[_0xf3fece(453)] = (_0x40ea7f) => {
34834
- const _0x462d94 = _0xf3fece;
34835
- if (typeof _0x40ea7f[_0x462d94(404)] == _0x462d94(488)) {
34836
- a[_0x462d94(606)] && E(), n["SEAT_PLAY_AUDIO"]({ "type": _0x462d94(536), "value": _0x40ea7f[_0x462d94(404)], "outputID": p[_0x462d94(414)]() });
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)]() });
34837
34847
  return;
34838
34848
  }
34839
- let _0x78d6ef = JSON["parse"](_0x40ea7f[_0x462d94(404)]);
34840
- if (_0x78d6ef["Code"] !== 0) {
34841
- c[_0x462d94(477)](_0x462d94(527), _0x78d6ef[_0x462d94(473)]);
34849
+ let _0x1908f5 = JSON[_0x51b12f(333)](_0xdc5ff[_0x51b12f(270)]);
34850
+ if (_0x1908f5[_0x51b12f(245)] !== 0) {
34851
+ c["actionHandleCallBack"](_0x51b12f(308), _0x1908f5[_0x51b12f(428)]);
34842
34852
  return;
34843
34853
  }
34844
- switch (_0x78d6ef["Type"]) {
34845
- case _0x462d94(385):
34846
- n[_0x462d94(358)]({ "key": "botStatus", "status": "connected" }), c["actionSeatHandleIncoming"]({ "type": _0x462d94(443), "wsType": "VoiceFromOther" });
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" });
34847
34857
  break;
34848
34858
  }
34849
- }, _0x3bce12[_0xf3fece(485)] = () => {
34850
- const _0xfab73d = _0xf3fece;
34851
- n["SEAT_SET_VoiceWS"](""), n[_0xfab73d(358)]({ "key": _0xfab73d(489), "status": "closed" });
34852
- }, _0x3bce12[_0xf3fece(360)] = () => {
34853
- const _0x37a28b = _0xf3fece;
34854
- console["log"](_0x37a28b(375)), [_0x37a28b(505), _0x37a28b(612)][_0x37a28b(463)](a["callingStage"]) > -1 && n[_0x37a28b(510)]({ "Type": _0x37a28b(383), "Data": {}, "Code": 0, "Msg": "" + (a["aiToSeat"] ? _0x37a28b(413) : a[_0x37a28b(606)] ? _0x37a28b(451) : ""), "TaskID": "" });
34855
- }, n[_0xf3fece(615)](_0x3bce12);
34856
- }, "actionSeatInitWSInstance": (_0x4cf7a8) => {
34857
- const _0x4fb6fb = _0x4ae588;
34858
- if (a[_0x4fb6fb(403)]) {
34859
- console["log"](_0x4fb6fb(613)), c["instanceClose"](), R = true;
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;
34860
34870
  return;
34861
34871
  }
34862
- L(_0x4cf7a8);
34872
+ L(_0x2c75ae);
34863
34873
  }, async "actionSeatTestEquipment"() {
34864
- const _0x1f77c5 = _0x4ae588;
34865
- if (n[_0x1f77c5(652)](), !x()) {
34866
- c[_0x1f77c5(477)]("Error", _0x1f77c5(579));
34874
+ const _0xcd0b57 = _0x5609b8;
34875
+ if (n[_0xcd0b57(232)](), !x()) {
34876
+ c[_0xcd0b57(150)](_0xcd0b57(308), _0xcd0b57(371));
34867
34877
  return;
34868
34878
  }
34869
34879
  try {
34870
- const _0x1fc35d = await navigator["mediaDevices"][_0x1f77c5(614)]({ "audio": { "advanced": [{ "deviceId": p[_0x1f77c5(446)]() }] } });
34871
- return n[_0x1f77c5(520)]({ "type": _0x1f77c5(348), "value": _0x1fc35d, "outputID": p[_0x1f77c5(414)]() }), navigator["mediaDevices"][_0x1f77c5(634)]();
34872
- } catch (_0x4527db) {
34873
- O(_0x4527db);
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);
34874
34884
  }
34875
34885
  }, async "actionSeatStartPlayer"() {
34876
- const _0x148f6a = _0x4ae588;
34886
+ const _0x965c58 = _0x5609b8;
34877
34887
  try {
34878
- m = new A({ "encoding": _0x148f6a(448), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34879
- } catch (_0x52cdd4) {
34880
- console[_0x148f6a(495)](_0x52cdd4);
34888
+ m = new A({ "encoding": _0x965c58(352), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34889
+ } catch (_0x1ecbfd) {
34890
+ console[_0x965c58(252)](_0x1ecbfd);
34881
34891
  }
34882
34892
  }, async "actionSeatStartTalk"() {
34883
- const _0x2a83e0 = _0x4ae588;
34893
+ const _0x18c7ff = _0x5609b8;
34884
34894
  if (!x()) {
34885
- c[_0x2a83e0(477)](_0x2a83e0(527), _0x2a83e0(579));
34895
+ c["actionHandleCallBack"](_0x18c7ff(308), "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。");
34886
34896
  return;
34887
34897
  }
34888
34898
  try {
34889
- a[_0x2a83e0(355)] && a[_0x2a83e0(355)][_0x2a83e0(597)]();
34890
- const _0x353a95 = await navigator[_0x2a83e0(566)][_0x2a83e0(614)]({ "audio": { "advanced": [{ "deviceId": p["getterSeatCurrentDeviceInfoInputID"]() }] } });
34891
- a[_0x2a83e0(355)] = new Y(_0x353a95, (_0x208f5a) => {
34892
- const _0x3f7cf4 = _0x2a83e0;
34893
- c[_0x3f7cf4(548)](_0x208f5a);
34894
- }), a[_0x2a83e0(355)][_0x2a83e0(569)]();
34895
- } catch (_0x560223) {
34896
- O(_0x560223);
34899
+ 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);
34897
34907
  }
34898
34908
  }, "actionSeatStartWS"() {
34899
- const _0x3f91cc = _0x4ae588;
34900
- c[_0x3f91cc(625)]({ "url": G(l[_0x3f91cc(405)]) + "/v1/company/" + l[_0x3f91cc(570)] + _0x3f91cc(602) + l["employeeID"] + _0x3f91cc(587) + l[_0x3f91cc(582)] });
34901
- }, "actionSeatVoiceWS"(_0x52881c) {
34902
- const _0x4dcc05 = _0x4ae588;
34903
- let _0x365db5 = "";
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 = "";
34904
34914
  try {
34905
- _0x365db5 = (_0x52881c && _0x52881c[_0x4dcc05(473)] ? JSON["parse"](_0x52881c[_0x4dcc05(473)]) : [])["find"]((_0x3c8770) => !_0x3c8770[_0x4dcc05(493)](_0x4dcc05(368)));
34915
+ _0x9c8a94 = (_0x284b20 && _0x284b20[_0x27f1e8(428)] ? JSON["parse"](_0x284b20[_0x27f1e8(428)]) : [])[_0x27f1e8(249)]((_0x2e685d) => !_0x2e685d[_0x27f1e8(447)](_0x27f1e8(383)));
34906
34916
  } catch {
34907
- _0x365db5 = _0x52881c && _0x52881c[_0x4dcc05(473)];
34917
+ _0x9c8a94 = _0x284b20 && _0x284b20["Msg"];
34908
34918
  }
34909
- c[_0x4dcc05(515)]({ "url": _0x4dcc05(410) + _0x365db5 + _0x4dcc05(561) + (_0x52881c && _0x52881c[_0x4dcc05(617)][_0x4dcc05(592)]) });
34910
- }, "actionSeatSendVoice"(_0xa38fd4) {
34911
- const _0x153ee6 = _0x4ae588;
34912
- n[_0x153ee6(407)](_0xa38fd4);
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);
34913
34923
  }, async "actionGetMediaDevices"() {
34914
- const _0x31f20b = _0x4ae588;
34924
+ const _0x354740 = _0x5609b8;
34915
34925
  try {
34916
- const _0x5c6870 = await navigator[_0x31f20b(566)]["enumerateDevices"]();
34917
- n[_0x31f20b(516)]({ "key": _0x31f20b(426), "value": _0x5c6870 }), console[_0x31f20b(495)](_0x31f20b(605), _0x5c6870);
34926
+ const _0x1f975a = await navigator[_0x354740(265)]["enumerateDevices"]();
34927
+ n[_0x354740(442)]({ "key": "mediaDevice", "value": _0x1f975a }), console[_0x354740(252)](_0x354740(440), _0x1f975a);
34918
34928
  } catch {
34919
- c[_0x31f20b(477)]("Error", _0x31f20b(363));
34929
+ c["actionHandleCallBack"](_0x354740(308), "获取设备列表失败,请检查浏览器权限设置");
34920
34930
  }
34921
- }, "actionSeatHandleIncoming"(_0x2c4382) {
34922
- const _0x4681c4 = _0x4ae588, { type: _0x55b5e8, data: _0xdbfb12, wsType: _0x3e307e } = _0x2c4382;
34923
- switch (_0x55b5e8) {
34924
- case _0x4681c4(608):
34925
- n["SEAT_SEND_MESSAGE"]({ "Type": _0x4681c4(546), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? _0x4681c4(413) : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
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": "" });
34926
34936
  break;
34927
- case "Reject":
34928
- n[_0x4681c4(510)]({ "Type": _0x4681c4(644), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? _0x4681c4(413) : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
34937
+ case _0x4ece09(385):
34938
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(231), "Data": {}, "Code": 0, "Msg": a[_0x4ece09(376)] ? "TypeAIToSeat" : a["onceCall"] ? "TypeCallOnce" : "", "TaskID": "" });
34929
34939
  break;
34930
- case _0x4681c4(492):
34931
- n[_0x4681c4(510)]({ "Type": "SeatHangUp", "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? "TypeAIToSeat" : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
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": "" });
34932
34942
  break;
34933
- case "Cancel":
34934
- n[_0x4681c4(510)]({ "Type": _0x4681c4(631), "Data": _0xdbfb12, "Code": 0, "Msg": _0x4681c4(451), "TaskID": "" });
34943
+ case _0x4ece09(217):
34944
+ n[_0x4ece09(255)]({ "Type": _0x4ece09(410), "Data": _0x749880, "Code": 0, "Msg": "TypeCallOnce", "TaskID": "" });
34935
34945
  break;
34936
- case _0x4681c4(480):
34937
- n[_0x4681c4(510)]({ "Type": "CallNext", "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34946
+ case _0x4ece09(198):
34947
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4ece09(198), "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34938
34948
  break;
34939
- case _0x4681c4(475):
34940
- console["log"](_0x4681c4(571), _0xdbfb12), n[_0x4681c4(510)]({ "Type": _0x4681c4(451), "Data": _0xdbfb12, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x4681c4(516)]({ "key": _0x4681c4(408), "value": Object[_0x4681c4(528)]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0xdbfb12) });
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) });
34941
34951
  break;
34942
- case "VoiceFrom":
34943
- n["SEAT_SEND_RAW_MESSAGE"](H({ "Type": _0x3e307e, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34952
+ case _0x4ece09(379):
34953
+ n[_0x4ece09(163)](H({ "Type": _0x3a6109, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34944
34954
  break;
34945
- case _0x4681c4(490):
34946
- n[_0x4681c4(510)](_0x4681c4(645));
34955
+ case _0x4ece09(312):
34956
+ n[_0x4ece09(255)](_0x4ece09(205));
34947
34957
  break;
34948
34958
  }
34949
34959
  }, "instanceClose"() {
34950
- const _0x14c0ea = _0x4ae588;
34951
- a[_0x14c0ea(403)] && (a[_0x14c0ea(403)][_0x14c0ea(518)](), n[_0x14c0ea(516)]({ "key": _0x14c0ea(403), "value": "" }));
34952
- }, "actionSeatUpdatePhoneRingAudio"(_0x597452) {
34953
- const _0x3a15a4 = _0x4ae588;
34954
- n[_0x3a15a4(618)](_0x597452);
34955
- }, "actionSeatReconnectWSAfterClosed"(_0xd1792a) {
34956
- n["SEAT_SAVE_KEY_VALUE"]({ "key": "autoClosed", "value": _0xd1792a });
34957
- }, "actionHandleCallBack"(_0x6fc51e, _0xf84280, _0x10c3a8 = {}) {
34958
- const _0x443995 = _0x4ae588;
34959
- _0x10c3a8[_0x443995(521)] !== void 0 && (_0x10c3a8[_0x443995(381)] = btoa(_0x10c3a8[_0x443995(521)] || "")), _0x10c3a8 && _0x10c3a8[_0x443995(521)] && l[_0x443995(472)] !== false && (_0x10c3a8[_0x443995(521)] = j(_0x10c3a8[_0x443995(521)])), l[_0x443995(478)] && l[_0x443995(478)][_0x443995(610)] && (_0x10c3a8[_0x443995(610)] = l[_0x443995(478)]["OutPlanID"]), l[_0x443995(478)] && l[_0x443995(478)][_0x443995(374)] && (_0x10c3a8[_0x443995(374)] = l["callOptions"]["CallBack"]), l["onMessage"] && l["onMessage"]({ "type": _0x6fc51e, "msg": _0xf84280, "data": _0x10c3a8 });
34960
- } }, n = { "SEAT_SET_LIST"(_0x3a73c2) {
34961
- const _0xcb8ac4 = _0x4ae588;
34962
- a[_0xcb8ac4(532)] = _0x3a73c2;
34963
- }, "SEAT_SET_WS"(_0x3300b6) {
34964
- const _0x57bf4a = _0x4ae588;
34965
- a[_0x57bf4a(403)] = _0x3300b6;
34966
- }, "SEAT_SET_VoiceWS"(_0x331c0e) {
34967
- const _0x12fd01 = _0x4ae588;
34968
- a[_0x12fd01(353)] = _0x331c0e;
34969
- }, "SEAT_SEND_MESSAGE"(_0x57c2ae) {
34970
- const _0x265b59 = _0x4ae588;
34971
- a[_0x265b59(479)] === _0x265b59(612) && a[_0x265b59(403)] && a["instance"]["send"](H(_0x57c2ae));
34972
- }, "SEAT_SEND_RAW_MESSAGE"(_0x2f82e7) {
34973
- const _0x4dd881 = _0x4ae588;
34974
- a[_0x4dd881(479)] === "connected" && a[_0x4dd881(353)] && a[_0x4dd881(489)] === _0x4dd881(612) && a["voiceInstance"][_0x4dd881(397)](_0x2f82e7);
34975
- }, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x21f6e5) {
34976
- const _0x61d803 = _0x4ae588;
34977
- a[_0x21f6e5[_0x61d803(595)]] = _0x21f6e5[_0x61d803(479)];
34978
- }, "SEAT_SAVE_KEY_VALUE"(_0x45002b) {
34979
- const _0x1f2b71 = _0x4ae588, { key: _0x4ab73e, value: _0x7002a8 } = _0x45002b;
34980
- a[_0x4ab73e] = _0x7002a8, _0x4ab73e === _0x1f2b71(419) && _0x7002a8 === "hangup" && (c[_0x1f2b71(365)]({ "type": _0x1f2b71(480) }), h());
34981
- }, "SEAT_PLAY_AUDIO"(_0x546017) {
34982
- const _0x5153c1 = _0x4ae588;
34983
- let { type: _0x383c7f, value: _0x388038 } = _0x546017;
34984
- if (_0x383c7f === _0x5153c1(348)) a[_0x5153c1(525)][_0x5153c1(348)] = _0x388038;
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;
34985
34995
  else {
34986
- if (_0x383c7f === _0x5153c1(559)) a[_0x5153c1(525)]["src"] = _0x388038;
34996
+ if (_0x1336c5 === _0x1cba50(369)) a[_0x1cba50(409)]["src"] = _0x30f39c;
34987
34997
  else {
34988
- if (_0x383c7f === "srcStream") {
34989
- m && m[_0x5153c1(439)](new Int16Array(_0x388038));
34998
+ if (_0x1336c5 === "srcStream") {
34999
+ m && m["feed"](new Int16Array(_0x30f39c));
34990
35000
  return;
34991
35001
  }
34992
35002
  }
34993
35003
  }
34994
35004
  }, "SEAT_RESET_AUDIO"() {
34995
- const _0x59fe9f = _0x4ae588;
34996
- a[_0x59fe9f(525)] && a[_0x59fe9f(525)][_0x59fe9f(541)](), a["audio"]["srcObject"] = null, a[_0x59fe9f(525)][_0x59fe9f(559)] = "", a[_0x59fe9f(525)] = document[_0x59fe9f(382)](_0x59fe9f(525));
34997
- }, "SEAT_SET_PHONERINGAUDIO"(_0x5e1ea8) {
34998
- a["phoneRingAudio"] = _0x5e1ea8;
34999
- }, "SEAT_SET_RECORDSDATA"(_0x5d25bb) {
35000
- const _0x5f4a96 = _0x4ae588;
35001
- if (!_0x5d25bb) return;
35002
- if ([_0x5f4a96(429)][_0x5f4a96(463)](_0x5d25bb[_0x5f4a96(581)]) > -1) {
35003
- a[_0x5f4a96(379)] = [];
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"] = [];
35004
35015
  return;
35005
35016
  }
35006
- let _0x42c5f7 = [];
35007
- if (_0x5d25bb["Type"] === _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(473)] === _0x5f4a96(413) && (a["recordsData"] = [], _0x42c5f7 = (JSON[_0x5f4a96(430)](_0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)])[_0x5f4a96(416)] || [])[_0x5f4a96(367)]((_0x54d331) => Object[_0x5f4a96(528)]({}, _0x54d331, { "ID": b() }))), a[_0x5f4a96(379)][_0x5f4a96(435)] === 0) {
35008
- const _0x43d71d = { "ID": b(), "PlanID": _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(592)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(592)] : b(), "Messages": _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(473)] === "TypeAIToSeat" ? _0x42c5f7 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x5d25bb[_0x5f4a96(617)] && _0x5d25bb["Data"][_0x5f4a96(521)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(521)] : "", "Sip": "", "VoiceID": "", "CallAt": _0x5d25bb[_0x5f4a96(617)] && _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(556)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(556)] : /* @__PURE__ */ new Date() };
35009
- a[_0x5f4a96(379)] = [_0x43d71d];
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];
35010
35021
  }
35011
- const _0x253d7f = a[_0x5f4a96(379)][0]["Messages"]["length"] || 0, _0x2fc797 = { "ID": b(), "Index": _0x253d7f, "ProduceBy": _0x5d25bb["Type"] === _0x5f4a96(501) ? _0x5f4a96(438) : _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(362) ? _0x5f4a96(575) : "operator", "VoiceID": "", "VoiceText": _0x5d25bb[_0x5f4a96(581)] === "RobotSay" ? _0x5d25bb[_0x5f4a96(473)] : _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": _0x5f4a96(585), "Events": null, "CreatedAt": _0x5f4a96(585), "DeletedAt": null };
35012
- (_0x5d25bb["Type"] !== _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(581)] !== "RobotSay" && _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)] || _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(362)) && a[_0x5f4a96(379)][0][_0x5f4a96(416)][_0x5f4a96(543)](_0x2fc797);
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);
35013
35024
  } };
35014
- function _0x14e4() {
35015
- const _0x2d4cff = ["PERMISSION_DENIED", "PermissionDeniedError", "SeatSay", "2186524aaVBjj", "gainNode", "destination", "SEAT_RESET_AUDIO", "string", "CallConnected", "SeatConnectedResp", "createContext", "getChannelData", "srcObject", "CustomerRefuse", "call", "stop", "1855dCsYhM", "voiceInstance", "input", "recorder", "Offline", "Code", "SEAT_UPDATE_WEBSOCKET_STATUS", "inputSampleBits", "onerror", "error", "RobotSay", "获取设备列表失败,请检查浏览器权限设置", "actionSeatStartWS", "actionSeatHandleIncoming", "bind", "map", "rtmp://", "通话中", "url", "terminate", "用户拒绝提供信息。", "channels", "CallBack", "actionSeatInitVoiceWSInstance异常", "employeeID", "set", "toString", "recordsData", "2548546THNiPK", "Str", "createElement", "SeatConnectClientFailed", "getFormatedValue", "WSConnected", "SeatQualityNotice", "CallOnceRinging", "value", "target", "aiToSeat", "isTypedArray", "arraybuffer", "isAutoAnswer", "24qguZsB", "volume", "onaudioprocess", "send", "客户拒接", "autoClosed", "CallUnexpected", "700368SQTMMl", "setInt16", "instance", "data", "env", "option", "SEAT_SEND_RAW_MESSAGE", "customerInfo", "updateConfig", "wss://", "connectInfo", "createBufferSource", "TypeAIToSeat", "getterSeatCurrentDeviceInfoOutputID", "QualityNoticeToCaller", "Messages", "停止响铃", "wss://api.kiwi.tuotoo.com", "callingStage", "WSConnectedReplace", "seatStatus", "createScriptProcessor", "currentDeviceInfoInput", "disconnect", "callOnceStage", "mediaDevice", "人机切换自动接听", "then", "CustomerConnected", "parse", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "min", "online", "result", "length", "CustomerHangUp", "aiToSeatRobotHangup", "customer", "feed", "循环响铃", "state", "7qAzFLm", "VoiceFrom", "Say", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "getterSeatCurrentDeviceInfoInputID", "RobotPID", "16bitInt", "aiToSeatVoiceUrl", "inputBuffer", "TypeCallOnce", "180465onhTTu", "onmessage", "flush", "坐席已挂机", "坐席在其他地方上线", "qualityNoticeToCaller", "1386110bZIMkw", "ended", "onMessage", "kind", "wss://api.kiwi.tuotoo.org", "indexOf", "qualityDictionaryIDs", "Reject", "currentDeviceInfoOutput", "audioCtx", "SeatRefuseResp", "RuleName", "起呼中", "forEach", "maskPhoneNumber", "Msg", "actionSeatStartTalk", "CallOnce", "outputSampleRate", "actionHandleCallBack", "callOptions", "status", "CallNext", "自动接听", "Online", "now", "handleData", "onclose", "getMaxValue", "encoding", "object", "botStatus", "SendMsg", "constructor", "Hangup", "includes", "typedArray", "log", "getTracks", "$1****$2", "destroy", "SeatConnectClientFailedResp", "connect", "CustomerSayText", "getTime", "actionSeatStartPlayer", "getterSeatIsConnected", "ringing", "缺少参数", "无法发现指定的硬件设备。", "name", "actionSeatReconnectWSAfterClosed", "SEAT_SEND_MESSAGE", "NotSupportedError", "820iIRGzS", "QualityNotice", "max", "actionSeatInitVoiceWSInstance", "SEAT_SAVE_KEY_VALUE", "CallConnecting", "close", "stringify", "SEAT_PLAY_AUDIO", "Mobile", "QualityDictionaryIDs", "SeatBusy", "坐席下线", "audio", "SeatCancelResp", "Error", "assign", "size", "state.voiceInstance", "inputSampleRate", "seatData", "audiooutput", "filter", "message", "srcStream", "响铃中", "MandatoryUnsatisfiedError", "onopen", "taskID", "pause", "DictionaryName", "push", "55089UEqMeI", "actions", "SeatConnected", "CustomerSay", "actionSeatSendVoice", "SeatHangUp", "机器人说话", "duration", "LineListID", "坐席上线成功", "context", "catch", "Time", "outputSampleBits", "坐席说话", "src", "flushingTime", "?key=", "InsufficientBalance", "startTime", "play", "无法打开麦克风。异常信息:", "mediaDevices", "通话异常", "gain", "start", "companyID", "呼叫参数", "CustomerID", "planID", "reconnectCount", "robot", "closed", "samples", "qualityMonitorIDs", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "answer", "Type", "token", "initial", "客户已挂机", "0001-01-01T00:00:00Z", "hangup", "/websocket?access_token=", "handleError", "mobile", "SEAT_SET_WS", "坐席正忙", "PlanID", "currentTime", "558ZvwvIQ", "key", "deviceId", "clear", "replace", "MatchKeyword", "substr", "lineListID", "/seat/call/", "errMsg", "Text", "devices", "onceCall", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3", "Answer", "instanceClose", "OutPlanID", "Cancel", "connected", "已有websocket连接,重新连接。", "getUserMedia", "SEAT_SET_VoiceWS", "未处理情况", "Data", "SEAT_SET_PHONERINGAUDIO", "createMediaStreamSource", "prototype", "phoneRingAudio", "addEventListener", "缺少companyID、employeeID、token参数", "SEAT_SET_RECORDSDATA", "actionSeatInitWSInstance", "CallOnceSuccess", "呼出成功", "振铃中", "manualControlSeat", "random", "SeatCancel", "interval", "CallOnceFailed", "enumerateDevices", "onload", "浏览器不支持硬件设备。", "InternetErrorHangUp", "QualityMonitorIDs", "binaryType", "actionSeatVoiceWS", "audioinput", "exp", "buffer", "SeatRefuse", "ping"];
35016
- _0x14e4 = function() {
35017
- return _0x2d4cff;
35018
- };
35019
- return _0x14e4();
35020
- }
35021
- function L(_0x25856e) {
35022
- const _0x3e4c53 = _0x4ae588, _0x66aa69 = new WebSocket(_0x25856e[_0x3e4c53(370)]);
35023
- _0x66aa69[_0x3e4c53(539)] = () => {
35024
- const _0x5741f5 = _0x3e4c53;
35025
- n[_0x5741f5(358)]({ "key": _0x5741f5(479), "status": "connected" });
35026
- }, _0x66aa69[_0x3e4c53(453)] = (_0x56c930) => {
35027
- const _0x12c23d = _0x3e4c53;
35028
- let _0x11c111 = JSON[_0x12c23d(430)](_0x56c930[_0x12c23d(404)]);
35029
- switch (_0x11c111[_0x12c23d(357)] !== 0 && c[_0x12c23d(477)](_0x12c23d(527), _0x11c111[_0x12c23d(473)]), _0x11c111[_0x12c23d(581)]) {
35030
- case _0x12c23d(385):
35031
- n[_0x12c23d(358)]({ "key": _0x12c23d(479), "status": _0x12c23d(612) }), n[_0x12c23d(590)](_0x66aa69), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(421), "value": { "IsOnline": true, "IsAutoAnswer": l[_0x12c23d(393)] } }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(574), "value": 3 }), c[_0x12c23d(477)](_0x12c23d(482), _0x12c23d(553)), $(), l[_0x12c23d(629)] || c[_0x12c23d(365)]({ "type": _0x12c23d(475), "data": l[_0x12c23d(478)] });
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)]) {
35034
+ case "WSConnected":
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"] });
35032
35036
  break;
35033
- case _0x12c23d(420):
35034
- c[_0x12c23d(509)](false), c["actionHandleCallBack"]("SeatConflict", _0x12c23d(456));
35037
+ case _0x5cb876(241):
35038
+ c[_0x5cb876(280)](false), c[_0x5cb876(150)](_0x5cb876(445), _0x5cb876(154));
35035
35039
  break;
35036
- case _0x12c23d(387):
35037
- V(), n[_0x12c23d(516)]({ "key": _0x12c23d(449), "value": "" }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "振铃中" }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), c[_0x12c23d(477)]("CallConnecting", _0x12c23d(537), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)][_0x12c23d(521)] }), a["onceCall"] && (c[_0x12c23d(503)](), c["actionSeatVoiceWS"](_0x11c111));
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));
35038
35042
  break;
35039
- case _0x12c23d(386):
35040
- const _0x326aff = _0x11c111[_0x12c23d(617)];
35041
- c["actionHandleCallBack"](_0x12c23d(513), "您已触发质检规则", { "PlanID": _0x11c111["Data"]["PlanID"], "RuleName": _0x326aff[_0x12c23d(469)], "DictionaryName": _0x326aff[_0x12c23d(542)], "MatchKeyword": _0x326aff[_0x12c23d(599)] });
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"] });
35042
35046
  break;
35043
- case _0x12c23d(444):
35047
+ case _0x5cb876(315):
35044
35048
  break;
35045
- case _0x12c23d(633):
35046
- n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": Number(_0x11c111[_0x12c23d(357)]) === 203 ? "钱包/通话余量不足" : "呼叫失败" }), h(), c[_0x12c23d(477)](Number(_0x11c111["Code"]) === 203 ? _0x12c23d(562) : _0x12c23d(400), _0x11c111[_0x12c23d(473)]);
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)]);
35047
35051
  break;
35048
- case _0x12c23d(655):
35049
- n[_0x12c23d(516)]({ "key": _0x12c23d(411), "value": Object[_0x12c23d(528)]({}, _0x11c111[_0x12c23d(617)], { "CustomerID": a[_0x12c23d(411)] && a[_0x12c23d(411)][_0x12c23d(572)], "Time": a["connectInfo"] && a[_0x12c23d(411)][_0x12c23d(556)] }) }), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": _0x12c23d(612) }), n["SEAT_SET_RECORDSDATA"](_0x11c111), E(), W(), a[_0x12c23d(390)] && c[_0x12c23d(640)](Object[_0x12c23d(528)]({}, _0x11c111, { "Msg": a[_0x12c23d(449)] })), a[_0x12c23d(606)] || (c[_0x12c23d(503)](), c[_0x12c23d(474)]()), c[_0x12c23d(477)](_0x12c23d(654), _0x12c23d(369), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)]["Mobile"] });
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"] });
35050
35054
  break;
35051
- case _0x12c23d(429):
35052
- n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(419), "value": _0x12c23d(505) }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "" }), n[_0x12c23d(516)]({ "key": "connectInfo", "value": _0x11c111["Data"] }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(390), "value": false }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(449), "value": "" }), n[_0x12c23d(624)](_0x11c111), a["onceCall"] ? (c["actionSeatHandleIncoming"]({ "type": _0x12c23d(608) }), n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(612) }), c[_0x12c23d(474)]()) : (V(), c[_0x12c23d(640)](_0x11c111), l["isAutoAnswer"] && setTimeout(() => {
35053
- const _0x223622 = _0x12c23d;
35054
- c[_0x223622(365)]({ "type": _0x223622(608) }), console[_0x223622(495)](_0x223622(481));
35055
- }, 500), c[_0x12c23d(477)](_0x12c23d(517), "通话连接中", { "PlanID": _0x11c111["Data"][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)]["Mobile"] }));
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)] }));
35056
35060
  break;
35057
- case _0x12c23d(499):
35058
- E(), h(), n[_0x12c23d(516)]({ "key": "callingStage", "value": "" }), c[_0x12c23d(609)](), v(), c[_0x12c23d(477)](_0x12c23d(400), _0x12c23d(567));
35061
+ case _0x5cb876(336):
35062
+ E(), C(), n[_0x5cb876(442)]({ "key": "callingStage", "value": "" }), c[_0x5cb876(247)](), v(), c[_0x5cb876(150)](_0x5cb876(388), _0x5cb876(455));
35059
35063
  break;
35060
- case _0x12c23d(637):
35061
- E(), a["recorder"] && a["recorder"]["stop"](), n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(586) }), c[_0x12c23d(477)](_0x12c23d(400), "通话异常"), v();
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();
35062
35066
  break;
35063
- case _0x12c23d(436):
35064
- case "CustomerCancel":
35065
- a[_0x12c23d(355)] && a[_0x12c23d(355)][_0x12c23d(351)](), E(), n["SEAT_SAVE_KEY_VALUE"]({ "key": "onceCall", "value": false }), a[_0x12c23d(419)] !== _0x12c23d(612) && c[_0x12c23d(365)]({ "type": _0x12c23d(480) }), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": a[_0x12c23d(419)] === _0x12c23d(612) ? _0x12c23d(586) : "" }), c[_0x12c23d(477)]("CustomerHangUp", _0x12c23d(584)), v();
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();
35066
35070
  break;
35067
- case _0x12c23d(349):
35068
- h(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(425), "value": _0x12c23d(398) }), n[_0x12c23d(516)]({ "key": "callingStage", "value": "" }), n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": false }), E(), c[_0x12c23d(477)](_0x12c23d(349), _0x12c23d(398)), v();
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();
35069
35073
  break;
35070
- case _0x12c23d(549):
35071
- a[_0x12c23d(355)] && a["recorder"][_0x12c23d(351)](), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "hangup" }), E();
35074
+ case _0x5cb876(239):
35075
+ a[_0x5cb876(301)] && a[_0x5cb876(301)][_0x5cb876(378)](), n[_0x5cb876(442)]({ "key": _0x5cb876(438), "value": _0x5cb876(431) }), E();
35072
35076
  break;
35073
35077
  case "SeatHangUpResp":
35074
- a["recorder"] && (a[_0x12c23d(355)][_0x12c23d(351)](), a["recorder"] = null), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "hangup" }), n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": false }), c[_0x12c23d(477)](_0x12c23d(549), _0x12c23d(455));
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));
35075
35079
  break;
35076
- case _0x12c23d(468):
35077
- console[_0x12c23d(495)]("坐席拒接"), n["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), E(), c["actionSeatHandleIncoming"]({ "type": _0x12c23d(480) });
35080
+ case "SeatRefuseResp":
35081
+ console[_0x5cb876(252)](_0x5cb876(437)), n["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), E(), c[_0x5cb876(317)]({ "type": _0x5cb876(198) });
35078
35082
  break;
35079
- case _0x12c23d(526):
35080
- n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(606), "value": false }), c["actionHandleCallBack"]("SeatHangUp", _0x12c23d(455)), E();
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();
35081
35085
  break;
35082
- case _0x12c23d(501):
35083
- n[_0x12c23d(624)](_0x11c111), c[_0x12c23d(477)](_0x12c23d(547), "客户说话", { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Text": _0x11c111["Data"][_0x12c23d(604)], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
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)] });
35084
35088
  break;
35085
- case "SeatSayText":
35086
- n[_0x12c23d(624)](_0x11c111), c["actionHandleCallBack"](_0x12c23d(648), _0x12c23d(558), { "PlanID": _0x11c111[_0x12c23d(617)]["PlanID"], "Text": _0x11c111["Data"][_0x12c23d(604)], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
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)] });
35087
35091
  break;
35088
- case "RobotSay":
35089
- n["SEAT_SET_RECORDSDATA"](_0x11c111), c[_0x12c23d(477)](_0x12c23d(362), _0x12c23d(550), { "PlanID": _0x11c111["Data"][_0x12c23d(592)], "Text": _0x11c111[_0x12c23d(617)]["Text"], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
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)] });
35090
35094
  break;
35091
- case _0x12c23d(523):
35092
- c[_0x12c23d(477)](_0x12c23d(523), _0x12c23d(591));
35095
+ case _0x5cb876(170):
35096
+ c["actionHandleCallBack"]("SeatBusy", _0x5cb876(346));
35093
35097
  break;
35094
35098
  case "CallOnceSuccess":
35095
- n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": true }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": _0x12c23d(470) }), c[_0x12c23d(477)](_0x12c23d(626), _0x12c23d(627));
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));
35096
35100
  break;
35097
- case _0x12c23d(413):
35098
- n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(505) }), V(), n[_0x12c23d(516)]({ "key": _0x12c23d(390), "value": true }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(449), "value": _0x11c111[_0x12c23d(473)] }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(411), "value": _0x11c111[_0x12c23d(617)] }), l[_0x12c23d(393)] && setTimeout(() => {
35099
- const _0x56447b = _0x12c23d;
35100
- c[_0x56447b(365)]({ "type": _0x56447b(608) }), console[_0x56447b(495)](_0x56447b(427));
35101
- }, 500), c["actionHandleCallBack"](_0x12c23d(517), _0x12c23d(537), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111["Data"][_0x12c23d(521)], "IsAIToSeat": true });
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 });
35102
35106
  break;
35103
- case _0x12c23d(437):
35104
- a[_0x12c23d(355)] && a[_0x12c23d(355)]["stop"](), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "" }), c["actionSeatHandleIncoming"]({ "type": "CallNext" }), E();
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();
35105
35109
  break;
35106
35110
  default:
35107
- console[_0x12c23d(495)](_0x12c23d(616));
35111
+ console[_0x5cb876(252)](_0x5cb876(452));
35108
35112
  break;
35109
35113
  }
35110
- }, _0x66aa69[_0x3e4c53(485)] = () => {
35111
- const _0x445f40 = _0x3e4c53;
35112
- if (U(), c["actionHandleCallBack"]("Offline", _0x445f40(524)), n[_0x445f40(590)](""), n[_0x445f40(358)]({ "key": _0x445f40(479), "status": "closed" }), n[_0x445f40(516)]({ "key": _0x445f40(419), "value": "" }), n[_0x445f40(516)]({ "key": _0x445f40(421), "value": { "IsOnline": false, "IsAutoAnswer": l[_0x445f40(393)] } }), E(), a[_0x445f40(355)] && a["recorder"][_0x445f40(351)](), m && m[_0x445f40(498)](), (R || a[_0x445f40(399)]) && a[_0x445f40(574)] > 0) {
35113
- const _0x2e961c = a["reconnectCount"] - 1;
35114
- R = false, L(_0x25856e), n[_0x445f40(516)]({ "key": "reconnectCount", "value": _0x2e961c });
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 });
35115
35119
  }
35116
- }, _0x66aa69[_0x3e4c53(360)] = () => {
35117
- const _0x226a71 = _0x3e4c53;
35118
- U(), c[_0x226a71(477)](_0x226a71(356), _0x226a71(524)), c[_0x226a71(609)](), c["actionHandleCallBack"](_0x226a71(400), _0x226a71(567));
35120
+ }, _0x1e2873[_0x579e74(339)] = () => {
35121
+ const _0x373373 = _0x579e74;
35122
+ M(), c[_0x373373(150)]("Offline", "坐席下线"), c["instanceClose"](), c[_0x373373(150)](_0x373373(388), _0x373373(455));
35119
35123
  };
35120
35124
  }
35121
- const q = (_0x1df244) => {
35122
- const _0x3b6002 = _0x4ae588;
35123
- l = _0x1df244, _0x1df244[_0x3b6002(629)] ? P[_0x3b6002(545)][_0x3b6002(365)]({ "type": _0x3b6002(475), "data": l["callOptions"] }) : c[_0x3b6002(364)]();
35124
- }, z = (_0x5711c0) => {
35125
- l = _0x5711c0, c["actionSeatStartWS"]();
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)]();
35126
35131
  }, J = () => {
35127
- const _0x9ed8a7 = _0x4ae588, _0x2c6e02 = p["getterSeatCallOnceStage"]();
35128
- p["getterSeatIsRinging"]() ? c["actionSeatHandleIncoming"]({ "type": _0x9ed8a7(465) }) : p[_0x9ed8a7(504)]() ? c[_0x9ed8a7(365)]({ "type": _0x9ed8a7(492) }) : (_0x2c6e02 === _0x9ed8a7(628) || _0x2c6e02 === _0x9ed8a7(470)) && c["actionSeatHandleIncoming"]({ "type": _0x9ed8a7(611) }), h();
35129
- }, h = () => {
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) => {
35130
35135
  setTimeout(() => {
35131
- const _0x546f24 = _0x2125;
35132
- a["voiceInstance"] && a[_0x546f24(353)][_0x546f24(518)](), l[_0x546f24(629)] || c[_0x546f24(609)]();
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"]();
35133
35138
  }, 800);
35134
35139
  }, Q = () => {
35135
- const _0x24dcaa = _0x4ae588;
35136
- c["actionSeatHandleIncoming"]({ "type": _0x24dcaa(608) });
35137
- }, Z = (_0xe1dbb8) => {
35138
- const _0x3c7ef5 = _0x4ae588;
35139
- _0xe1dbb8 && (l = Object[_0x3c7ef5(528)]({}, l, _0xe1dbb8));
35140
+ c["actionSeatHandleIncoming"]({ "type": "Answer" });
35141
+ }, Z = (_0x7ba243) => {
35142
+ const _0x110e38 = _0x5609b8;
35143
+ _0x7ba243 && (l = Object[_0x110e38(413)]({}, l, _0x7ba243));
35140
35144
  }, P = { "actions": c };
35141
35145
  class ee {
35142
- constructor(_0x5e4ad8) {
35143
- const _0xcc0d25 = _0x4ae588;
35144
- w(this, _0xcc0d25(404)), this[_0xcc0d25(404)] = _0x5e4ad8;
35145
- }
35146
- [_0x4ae588(350)](_0x85ef6c) {
35147
- const _0x2b5745 = _0x4ae588, { mobile: _0x2323e3, callBack: _0x3422c8 = "", outPlanID: _0x25ad13 = "", robotPID: _0x1f3ce3 = "" } = _0x85ef6c;
35148
- if (!this[_0x2b5745(404)][_0x2b5745(570)] || !this["data"][_0x2b5745(376)] || !this[_0x2b5745(404)]["token"]) {
35149
- this[_0x2b5745(588)](_0x2b5745(623));
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参数");
35150
35154
  return;
35151
35155
  }
35152
- if (!_0x2323e3 && !_0x85ef6c[_0x2b5745(573)]) {
35153
- this["handleError"](_0x2b5745(506));
35156
+ if (!_0x28702a && !_0x49115b["planID"]) {
35157
+ this[_0x2d2967(276)](_0x2d2967(278));
35154
35158
  return;
35155
35159
  }
35156
- if (!F(this["data"][_0x2b5745(582)])) {
35157
- this["handleError"]("token过期");
35160
+ if (!F(this[_0x2d2967(270)][_0x2d2967(206)])) {
35161
+ this[_0x2d2967(276)](_0x2d2967(283));
35158
35162
  return;
35159
35163
  }
35160
- let _0x2dce03 = { "Mobile": _0x85ef6c[_0x2b5745(589)] };
35161
- _0x85ef6c[_0x2b5745(601)] && (_0x2dce03[_0x2b5745(552)] = _0x85ef6c[_0x2b5745(601)]), _0x85ef6c[_0x2b5745(573)] && (_0x2dce03[_0x2b5745(592)] = _0x85ef6c["planID"]), _0x85ef6c[_0x2b5745(540)] && (_0x2dce03["TaskID"] = _0x85ef6c["taskID"]), _0x1f3ce3 && (_0x2dce03[_0x2b5745(447)] = _0x1f3ce3), _0x25ad13 && (_0x2dce03[_0x2b5745(610)] = _0x25ad13), _0x3422c8 && (_0x2dce03[_0x2b5745(374)] = _0x3422c8), _0x85ef6c[_0x2b5745(464)] && (_0x2dce03[_0x2b5745(522)] = _0x85ef6c[_0x2b5745(464)]), _0x85ef6c[_0x2b5745(578)] && (_0x2dce03[_0x2b5745(638)] = _0x85ef6c[_0x2b5745(578)]), _0x85ef6c[_0x2b5745(457)] && (_0x2dce03[_0x2b5745(415)] = _0x85ef6c[_0x2b5745(457)]), B(() => {
35162
- const _0x151f02 = _0x2b5745;
35163
- q(Object[_0x151f02(528)]({}, this[_0x151f02(404)], { "callOptions": _0x2dce03 }));
35164
- }, (_0x543af8) => {
35165
- const _0x490030 = _0x2b5745;
35166
- this["handleError"](_0x543af8[_0x490030(603)]);
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)]);
35167
35171
  });
35168
35172
  }
35169
- [_0x4ae588(588)](_0x104136) {
35170
- const _0x347bec = _0x4ae588;
35171
- this["data"][_0x347bec(460)] && this[_0x347bec(404)][_0x347bec(460)]({ "type": _0x347bec(527), "msg": _0x104136 });
35173
+ ["handleError"](_0x42be27) {
35174
+ const _0x194525 = _0x5609b8;
35175
+ this[_0x194525(270)][_0x194525(212)] && this["data"][_0x194525(212)]({ "type": "Error", "msg": _0x42be27 });
35172
35176
  }
35173
- [_0x4ae588(371)]() {
35177
+ ["terminate"]() {
35174
35178
  J();
35175
35179
  }
35176
- [_0x4ae588(580)]() {
35180
+ [_0x5609b8(220)]() {
35177
35181
  Q();
35178
35182
  }
35179
- [_0x4ae588(433)]() {
35183
+ ["online"]() {
35180
35184
  B(() => {
35181
35185
  z(this["data"]);
35182
- }, (_0x594671) => {
35183
- const _0x13344d = _0x2125;
35184
- this[_0x13344d(588)](_0x594671["errMsg"]);
35186
+ }, (_0x586f73) => {
35187
+ const _0x3f0668 = _0x4084;
35188
+ this[_0x3f0668(276)](_0x586f73["errMsg"]);
35185
35189
  });
35186
35190
  }
35187
- ["offline"]() {
35188
- const _0x3bd157 = _0x4ae588;
35189
- P[_0x3bd157(545)]["instanceClose"]();
35191
+ [_0x5609b8(200)]() {
35192
+ const _0x4d593b = _0x5609b8;
35193
+ P[_0x4d593b(345)][_0x4d593b(247)]();
35190
35194
  }
35191
- [_0x4ae588(409)](_0x290c16) {
35192
- Z(_0x290c16);
35195
+ [_0x5609b8(456)](_0xef22d8) {
35196
+ Z(_0xef22d8);
35193
35197
  }
35194
35198
  }
35195
35199
  const _hoisted_1$3 = {
@@ -35916,7 +35920,10 @@ const _hoisted_15 = { class: "call-type" };
35916
35920
  const _hoisted_16 = { class: "call-duration" };
35917
35921
  const _hoisted_17 = { class: "popup-actions" };
35918
35922
  const _hoisted_18 = { class: "warning-tips" };
35919
- const _hoisted_19 = { class: "call-plugin-customer-container" };
35923
+ const _hoisted_19 = {
35924
+ key: 0,
35925
+ class: "call-plugin-customer-container"
35926
+ };
35920
35927
  const _hoisted_20 = { class: "call-plugin-customer-header" };
35921
35928
  const _hoisted_21 = {
35922
35929
  key: 0,
@@ -36019,6 +36026,10 @@ const _sfc_main = {
36019
36026
  type: Boolean,
36020
36027
  default: false
36021
36028
  },
36029
+ showCustomerInfo: {
36030
+ type: Boolean,
36031
+ default: false
36032
+ },
36022
36033
  onPluginReady: Function,
36023
36034
  onCallSuccess: Function,
36024
36035
  onMessage: Function,
@@ -36096,8 +36107,12 @@ const _sfc_main = {
36096
36107
  break;
36097
36108
  }
36098
36109
  if (showCallMsg.value) className += " show-call-msg";
36110
+ if (props.showCustomerInfo) className += " show-customer-info";
36099
36111
  return className;
36100
36112
  });
36113
+ const popupWidth = computed(() => {
36114
+ return props.showCustomerInfo ? 900 : 441;
36115
+ });
36101
36116
  onMounted(async () => {
36102
36117
  initDeviceData();
36103
36118
  await getEmployeeInfo();
@@ -36149,14 +36164,11 @@ const _sfc_main = {
36149
36164
  handleCallEnded();
36150
36165
  break;
36151
36166
  case "Error":
36152
- showError.value = true;
36153
- closeMsg.value = e.msg;
36154
- initData();
36155
- break;
36167
+ case "SeatBusy":
36156
36168
  case "CallUnexpected":
36169
+ case "InsufficientBalance":
36157
36170
  showError.value = true;
36158
36171
  closeMsg.value = e.msg;
36159
- seatStatus.value = false;
36160
36172
  initData();
36161
36173
  break;
36162
36174
  case "Offline":
@@ -36274,14 +36286,15 @@ const _sfc_main = {
36274
36286
  }
36275
36287
  const callPopupRect = callDom.getBoundingClientRect();
36276
36288
  const { innerWidth } = window;
36289
+ const maxW = popupWidth.value + 20;
36277
36290
  if (props.popupPosition.includes("left")) {
36278
- if (innerWidth - callPopupRect.left < 920) {
36279
- x2 = innerWidth - 900 - 40;
36291
+ if (innerWidth - callPopupRect.left < maxW) {
36292
+ x2 = innerWidth - popupWidth.value - 40;
36280
36293
  callDom.style.transform = `translate(${x2}px, ${y}px)`;
36281
36294
  }
36282
36295
  } else if (props.popupPosition.includes("right")) {
36283
- if (callPopupRect.right < 920) {
36284
- x2 = 900 + 40 - innerWidth;
36296
+ if (callPopupRect.right < maxW) {
36297
+ x2 = popupWidth.value + 40 - innerWidth;
36285
36298
  callDom.style.transform = `translate(${x2}px, ${y}px)`;
36286
36299
  }
36287
36300
  }
@@ -36380,6 +36393,7 @@ const _sfc_main = {
36380
36393
  });
36381
36394
  };
36382
36395
  const realGetCustomerDetail = async () => {
36396
+ if (!props.showCustomerInfo) return;
36383
36397
  if (!callerInfo.value.OriginalMobile) return;
36384
36398
  await axios.get(apiHost.value + `/company/${props.initConfig.companyID}/call/customer?mobile=${callerInfo.value.OriginalMobile}`, {
36385
36399
  headers: {
@@ -36651,7 +36665,7 @@ const _sfc_main = {
36651
36665
  }),
36652
36666
  _cache[36] || (_cache[36] = createTextVNode(" 通话结束后,当前弹窗将自动关闭,请尽快操作 ", -1))
36653
36667
  ]),
36654
- createBaseVNode("div", _hoisted_19, [
36668
+ props.showCustomerInfo ? (openBlock(), createElementBlock("div", _hoisted_19, [
36655
36669
  createBaseVNode("div", _hoisted_20, [
36656
36670
  _cache[37] || (_cache[37] = createTextVNode(" 客户详情 ", -1)),
36657
36671
  customerDetail.value.ID ? (openBlock(), createElementBlock("div", _hoisted_21, [
@@ -36678,7 +36692,7 @@ const _sfc_main = {
36678
36692
  initConfig: props.initConfig,
36679
36693
  onRefreshCustomerDetail: realGetCustomerDetail
36680
36694
  }, null, 8, ["CustomerDetail", "initConfig"])) : createCommentVNode("", true)
36681
- ]),
36695
+ ])) : createCommentVNode("", true),
36682
36696
  createBaseVNode("div", _hoisted_22, [
36683
36697
  _cache[41] || (_cache[41] = createBaseVNode("div", { class: "call-plugin-record-header" }, " 通话详情 ", -1)),
36684
36698
  createBaseVNode("div", {
@@ -36947,6 +36961,8 @@ class CallPluginWrapper {
36947
36961
  // 是否显示SIP列表
36948
36962
  showRobotList: false,
36949
36963
  // 是否显示话术列表
36964
+ showCustomerInfo: false,
36965
+ // 是否显示客户信息
36950
36966
  initConfig: {
36951
36967
  // companyID: '',
36952
36968
  // employeeID: '',
@@ -36976,6 +36992,7 @@ class CallPluginWrapper {
36976
36992
  showSeatStatus: this.options.showSeatStatus,
36977
36993
  showSipList: this.options.showSipList,
36978
36994
  showRobotList: this.options.showRobotList,
36995
+ showCustomerInfo: this.options.showCustomerInfo,
36979
36996
  onPluginReady: this.options.onPluginReady,
36980
36997
  onMessage: this.options.onMessage,
36981
36998
  onCallSuccess: this.options.onCallSuccess,
@@ -36991,9 +37008,11 @@ class CallPluginWrapper {
36991
37008
  showCallOut(mobile) {
36992
37009
  this.instance.openCallerInfoDialog(mobile);
36993
37010
  }
37011
+ offline() {
37012
+ if (this.options.showSeatStatus) this.instance.toggleSeatStatus("offline");
37013
+ }
36994
37014
  // 公共方法:销毁插件
36995
37015
  destroy() {
36996
- if (this.options.showSeatStatus) this.instance.toggleSeatStatus("offline");
36997
37016
  this.app.unmount();
36998
37017
  this.container.innerHTML = "";
36999
37018
  }