@webitel/ui-sdk 26.6.71 → 26.6.73
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/{clients-DjB6nJHf.js → clients-B_u-8Hev.js} +191 -192
- package/dist/{components-CXf44HOY.js → components-DXso3cNH.js} +10 -10
- package/dist/{enums-CoY-pIuZ.js → enums-CaJ2Kh6z.js} +6 -0
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +3 -3
- package/dist/ui-sdk.umd.cjs +545 -539
- package/dist/{useValidation-DMp_AiNP.js → useValidation-D966lfIa.js} +1 -1
- package/dist/{wt-action-bar-CSdnxT_s.js → wt-action-bar-4kYwf6im.js} +2 -2
- package/dist/{wt-button-BVX4GDCP.js → wt-button-CT1JWvQo.js} +2 -2
- package/dist/{wt-chat-emoji-BdKDyZmY.js → wt-chat-emoji-Bg2CkUHQ.js} +4 -4
- package/dist/{wt-datepicker-CJXKrxBh.js → wt-datepicker-C-hb329G.js} +87 -54
- package/dist/{wt-display-chip-items-BIw3LDyc.js → wt-display-chip-items-CIpASRgr.js} +1 -1
- package/dist/{wt-dual-panel-Dn52cFd0.js → wt-dual-panel-BzJePzqE.js} +1 -1
- package/dist/{wt-expansion-card-C4ratcs-.js → wt-expansion-card-H6a_Nfe5.js} +1 -1
- package/dist/{wt-expansion-panel-BUta42RO.js → wt-expansion-panel-95IUAB3-.js} +1 -1
- package/dist/{wt-icon-CXZgq3LL.js → wt-icon-RopCKnvN.js} +2 -1
- package/dist/{wt-icon-action-SuNhSnx4.js → wt-icon-action-9anRgrpl.js} +1 -1
- package/dist/{wt-icon-btn-gkyWWthY.js → wt-icon-btn-DaAa_Ywc.js} +1 -1
- package/dist/{wt-notifications-bar-kewyyshr.js → wt-notifications-bar-uj3OVFZc.js} +2 -2
- package/dist/{wt-player-CP_9u3G3.js → wt-player-CvX-MhQf.js} +3 -3
- package/dist/{wt-search-bar-DmwAjznv.js → wt-search-bar-CIkp_KW3.js} +1 -1
- package/dist/{wt-send-message-popup-C83QgUfa.js → wt-send-message-popup-ClWBSwxI.js} +14 -14
- package/dist/{wt-status-select-D20EwR17.js → wt-status-select-BLq_dxqN.js} +1 -1
- package/dist/{wt-timepicker-BivkZpXq.js → wt-timepicker-CuflSCqz.js} +2 -2
- package/dist/{wt-toast-Dufgfee5.js → wt-toast-BLDcVPXR.js} +2 -2
- package/dist/{wt-tree-table-BFvSXadM.js → wt-tree-table-CLLEP40A.js} +1 -1
- package/dist/{wt-type-extension-value-input-DdGZn73d.js → wt-type-extension-value-input-X7FXHDUW.js} +21 -21
- package/dist/{wt-vidstack-player-B4lxjSc4.js → wt-vidstack-player-DZYW8huS.js} +4 -4
- package/package.json +2 -2
- package/src/assets/icons/sprite/custom-provider.svg +6 -0
- package/src/assets/icons/sprite/index.ts +2 -0
- package/src/components/wt-datepicker/_internals/composables/usePreventZeroPad.ts +72 -0
- package/src/components/wt-datepicker/wt-datepicker.vue +3 -0
- package/src/enums/SingleSignOnProvider/SingleSignOnProvider.ts +9 -0
- package/src/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.ts +14 -0
- package/src/enums/index.ts +4 -0
- package/src/locale/en/en.js +1 -1
- package/src/locale/ru/ru.js +1 -1
- package/src/locale/uk/uk.js +1 -1
- package/src/modules/Userinfo/enums/ScopeClass/ScopeClass.ts +1 -1
- package/types/components/wt-datepicker/_internals/composables/usePreventZeroPad.d.ts +15 -0
- package/types/enums/SingleSignOnProvider/SingleSignOnProvider.d.ts +7 -0
- package/types/enums/SingleSignOnProviderIconMappings/SingleSignOnProviderIconMappings.d.ts +3 -0
- package/types/enums/index.d.ts +3 -1
- package/types/modules/Userinfo/enums/ScopeClass/ScopeClass.d.ts +1 -1
|
@@ -2,77 +2,78 @@ import { a as e, t } from "./rolldown-runtime-BEcgMyyN.js";
|
|
|
2
2
|
import { n, t as r } from "./dist-CAOIU8xq.js";
|
|
3
3
|
import { n as i, t as a } from "./generateInstance-C9d7J_TX.js";
|
|
4
4
|
import { i as o, r as s } from "./caseConverters-DXegZoCt.js";
|
|
5
|
-
import "./enums-
|
|
5
|
+
import "./enums-CaJ2Kh6z.js";
|
|
6
6
|
import { f as c, t as l } from "./side-channel-8SnAuRMA.js";
|
|
7
7
|
import { t as u } from "./deep-copy-CTgLtgMO.js";
|
|
8
8
|
import { get as d, set as f } from "lodash-es";
|
|
9
9
|
import p from "@aliasedDeps/api-services/axios";
|
|
10
10
|
import * as m from "zod";
|
|
11
|
-
//#region packages/api-services/src/
|
|
12
|
-
|
|
11
|
+
//#region packages/api-services/src/utils/gen/index.ts
|
|
12
|
+
n();
|
|
13
|
+
var h = (e) => e.keyof().options, g = () => ({
|
|
13
14
|
items: [],
|
|
14
15
|
next: !1
|
|
15
|
-
}),
|
|
16
|
+
}), _ = ({ page: e = 1, size: t = 10 } = {}) => ({
|
|
16
17
|
page: e,
|
|
17
18
|
size: t
|
|
18
|
-
}),
|
|
19
|
+
}), v = String.prototype.replace, y = /%20/g, b = {
|
|
19
20
|
RFC1738: "RFC1738",
|
|
20
21
|
RFC3986: "RFC3986"
|
|
21
|
-
},
|
|
22
|
+
}, x = {
|
|
22
23
|
RFC1738: function(e) {
|
|
23
|
-
return
|
|
24
|
+
return v.call(e, y, "+");
|
|
24
25
|
},
|
|
25
26
|
RFC3986: function(e) {
|
|
26
27
|
return String(e);
|
|
27
28
|
}
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
var
|
|
29
|
+
}, S = b.RFC1738;
|
|
30
|
+
b.RFC3986;
|
|
31
|
+
var C = b.RFC3986, w = Array.isArray, T = (function() {
|
|
31
32
|
let e = [];
|
|
32
33
|
for (let t = 0; t < 256; ++t) e.push("%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase());
|
|
33
34
|
return e;
|
|
34
|
-
})(),
|
|
35
|
+
})(), E = 1024, D = function(e, t, n, r, i) {
|
|
35
36
|
if (e.length === 0) return e;
|
|
36
37
|
let a = e;
|
|
37
38
|
if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), n === "iso-8859-1") return escape(a).replace(/%u[0-9a-f]{4}/gi, function(e) {
|
|
38
39
|
return "%26%23" + parseInt(e.slice(2), 16) + "%3B";
|
|
39
40
|
});
|
|
40
41
|
let o = "";
|
|
41
|
-
for (let e = 0; e < a.length; e +=
|
|
42
|
-
let t = a.length >=
|
|
42
|
+
for (let e = 0; e < a.length; e += E) {
|
|
43
|
+
let t = a.length >= E ? a.slice(e, e + E) : a, n = [];
|
|
43
44
|
for (let e = 0; e < t.length; ++e) {
|
|
44
45
|
let r = t.charCodeAt(e);
|
|
45
|
-
if (r === 45 || r === 46 || r === 95 || r === 126 || r >= 48 && r <= 57 || r >= 65 && r <= 90 || r >= 97 && r <= 122 || i ===
|
|
46
|
+
if (r === 45 || r === 46 || r === 95 || r === 126 || r >= 48 && r <= 57 || r >= 65 && r <= 90 || r >= 97 && r <= 122 || i === S && (r === 40 || r === 41)) {
|
|
46
47
|
n[n.length] = t.charAt(e);
|
|
47
48
|
continue;
|
|
48
49
|
}
|
|
49
50
|
if (r < 128) {
|
|
50
|
-
n[n.length] =
|
|
51
|
+
n[n.length] = T[r];
|
|
51
52
|
continue;
|
|
52
53
|
}
|
|
53
54
|
if (r < 2048) {
|
|
54
|
-
n[n.length] =
|
|
55
|
+
n[n.length] = T[192 | r >> 6] + T[128 | r & 63];
|
|
55
56
|
continue;
|
|
56
57
|
}
|
|
57
58
|
if (r < 55296 || r >= 57344) {
|
|
58
|
-
n[n.length] =
|
|
59
|
+
n[n.length] = T[224 | r >> 12] + T[128 | r >> 6 & 63] + T[128 | r & 63];
|
|
59
60
|
continue;
|
|
60
61
|
}
|
|
61
|
-
e += 1, r = 65536 + ((r & 1023) << 10 | t.charCodeAt(e) & 1023), n[n.length] =
|
|
62
|
+
e += 1, r = 65536 + ((r & 1023) << 10 | t.charCodeAt(e) & 1023), n[n.length] = T[240 | r >> 18] + T[128 | r >> 12 & 63] + T[128 | r >> 6 & 63] + T[128 | r & 63];
|
|
62
63
|
}
|
|
63
64
|
o += n.join("");
|
|
64
65
|
}
|
|
65
66
|
return o;
|
|
66
|
-
},
|
|
67
|
+
}, O = function(e) {
|
|
67
68
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
68
|
-
},
|
|
69
|
-
if (
|
|
69
|
+
}, k = function(e, t) {
|
|
70
|
+
if (w(e)) {
|
|
70
71
|
let n = [];
|
|
71
72
|
for (let r = 0; r < e.length; r += 1) n.push(t(e[r]));
|
|
72
73
|
return n;
|
|
73
74
|
}
|
|
74
75
|
return t(e);
|
|
75
|
-
},
|
|
76
|
+
}, A = Object.prototype.hasOwnProperty, j = {
|
|
76
77
|
brackets: function(e) {
|
|
77
78
|
return e + "[]";
|
|
78
79
|
},
|
|
@@ -83,9 +84,9 @@ var S = y.RFC3986, C = Array.isArray, w = (function() {
|
|
|
83
84
|
repeat: function(e) {
|
|
84
85
|
return e;
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
87
|
+
}, M = Array.isArray, N = Array.prototype.push, P = function(e, t) {
|
|
88
|
+
N.apply(e, M(t) ? t : [t]);
|
|
89
|
+
}, F = Date.prototype.toISOString, I = C, L = {
|
|
89
90
|
addQueryPrefix: !1,
|
|
90
91
|
allowDots: !1,
|
|
91
92
|
allowEmptyArrays: !1,
|
|
@@ -95,134 +96,128 @@ var S = y.RFC3986, C = Array.isArray, w = (function() {
|
|
|
95
96
|
delimiter: "&",
|
|
96
97
|
encode: !0,
|
|
97
98
|
encodeDotInKeys: !1,
|
|
98
|
-
encoder:
|
|
99
|
+
encoder: D,
|
|
99
100
|
encodeValuesOnly: !1,
|
|
100
|
-
format:
|
|
101
|
-
formatter:
|
|
101
|
+
format: I,
|
|
102
|
+
formatter: x[I],
|
|
102
103
|
indices: !1,
|
|
103
104
|
serializeDate: function(e) {
|
|
104
|
-
return
|
|
105
|
+
return F.call(e);
|
|
105
106
|
},
|
|
106
107
|
skipNulls: !1,
|
|
107
108
|
strictNullHandling: !1
|
|
108
|
-
},
|
|
109
|
+
}, R = function(e) {
|
|
109
110
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
110
|
-
},
|
|
111
|
+
}, z = {}, ee = function(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _) {
|
|
111
112
|
let v = e, y = _, b = 0, x = !1;
|
|
112
|
-
for (; (y = y.get(
|
|
113
|
+
for (; (y = y.get(z)) !== void 0 && !x;) {
|
|
113
114
|
let t = y.get(e);
|
|
114
115
|
if (b += 1, t !== void 0) {
|
|
115
116
|
if (t === b) throw RangeError("Cyclic object value");
|
|
116
117
|
x = !0;
|
|
117
118
|
}
|
|
118
|
-
y.get(
|
|
119
|
+
y.get(z) === void 0 && (b = 0);
|
|
119
120
|
}
|
|
120
|
-
if (typeof l == "function" ? v = l(t, v) : v instanceof Date ? v = f(v) : n === "comma" &&
|
|
121
|
+
if (typeof l == "function" ? v = l(t, v) : v instanceof Date ? v = f(v) : n === "comma" && M(v) && (v = k(v, function(e) {
|
|
121
122
|
return e instanceof Date ? f(e) : e;
|
|
122
123
|
})), v === null) {
|
|
123
|
-
if (a) return c && !h ? c(t,
|
|
124
|
+
if (a) return c && !h ? c(t, L.encoder, g, "key", p) : t;
|
|
124
125
|
v = "";
|
|
125
126
|
}
|
|
126
|
-
if (
|
|
127
|
+
if (R(v) || O(v)) return c ? [m(h ? t : c(t, L.encoder, g, "key", p)) + "=" + m(c(v, L.encoder, g, "value", p))] : [m(t) + "=" + m(String(v))];
|
|
127
128
|
let S = [];
|
|
128
129
|
if (v === void 0) return S;
|
|
129
130
|
let C;
|
|
130
|
-
if (n === "comma" &&
|
|
131
|
-
else if (
|
|
131
|
+
if (n === "comma" && M(v)) h && c && (v = k(v, c)), C = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
132
|
+
else if (M(l)) C = l;
|
|
132
133
|
else {
|
|
133
134
|
let e = Object.keys(v);
|
|
134
135
|
C = u ? e.sort(u) : e;
|
|
135
136
|
}
|
|
136
|
-
let w = s ? t.replace(/\./g, "%2E") : t, T = r &&
|
|
137
|
-
if (i &&
|
|
137
|
+
let w = s ? t.replace(/\./g, "%2E") : t, T = r && M(v) && v.length === 1 ? w + "[]" : w;
|
|
138
|
+
if (i && M(v) && v.length === 0) return T + "[]";
|
|
138
139
|
for (let t = 0; t < C.length; ++t) {
|
|
139
140
|
let y = C[t], x = typeof y == "object" && y.value !== void 0 ? y.value : v[y];
|
|
140
141
|
if (o && x === null) continue;
|
|
141
|
-
let w = d && s ? y.replace(/\./g, "%2E") : y, E =
|
|
142
|
+
let w = d && s ? y.replace(/\./g, "%2E") : y, E = M(v) ? typeof n == "function" ? n(T, w) : T : T + (d ? "." + w : "[" + w + "]");
|
|
142
143
|
_.set(e, b);
|
|
143
144
|
let D = /* @__PURE__ */ new WeakMap();
|
|
144
|
-
D.set(
|
|
145
|
+
D.set(z, _), P(S, ee(x, E, n, r, i, a, o, s, n === "comma" && h && M(v) ? null : c, l, u, d, f, p, m, h, g, D));
|
|
145
146
|
}
|
|
146
147
|
return S;
|
|
147
|
-
},
|
|
148
|
-
if (!e) return
|
|
148
|
+
}, B = function(e) {
|
|
149
|
+
if (!e) return L;
|
|
149
150
|
if (e.allowEmptyArrays !== void 0 && typeof e.allowEmptyArrays != "boolean") throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
150
151
|
if (e.encodeDotInKeys !== void 0 && typeof e.encodeDotInKeys != "boolean") throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
151
152
|
if (e.encoder !== null && e.encoder !== void 0 && typeof e.encoder != "function") throw TypeError("Encoder has to be a function.");
|
|
152
|
-
let t = e.charset ||
|
|
153
|
+
let t = e.charset || L.charset;
|
|
153
154
|
if (e.charset !== void 0 && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
154
|
-
let n =
|
|
155
|
+
let n = C;
|
|
155
156
|
if (e.format !== void 0) {
|
|
156
|
-
if (!
|
|
157
|
+
if (!A.call(x, e.format)) throw TypeError("Unknown format option provided.");
|
|
157
158
|
n = e.format;
|
|
158
159
|
}
|
|
159
|
-
let r =
|
|
160
|
-
(typeof e.filter == "function" ||
|
|
160
|
+
let r = x[n], i = L.filter;
|
|
161
|
+
(typeof e.filter == "function" || M(e.filter)) && (i = e.filter);
|
|
161
162
|
let a;
|
|
162
|
-
if (a = e.arrayFormat in
|
|
163
|
-
let o = e.allowDots === void 0 ? e.encodeDotInKeys === !0 ? !0 :
|
|
163
|
+
if (a = e.arrayFormat in j ? e.arrayFormat : "indices" in e ? e.indices ? "indices" : "repeat" : L.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
164
|
+
let o = e.allowDots === void 0 ? e.encodeDotInKeys === !0 ? !0 : L.allowDots : !!e.allowDots;
|
|
164
165
|
return {
|
|
165
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
166
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : L.addQueryPrefix,
|
|
166
167
|
allowDots: o,
|
|
167
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
168
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : L.allowEmptyArrays,
|
|
168
169
|
arrayFormat: a,
|
|
169
170
|
charset: t,
|
|
170
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
171
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : L.charsetSentinel,
|
|
171
172
|
commaRoundTrip: e.commaRoundTrip,
|
|
172
|
-
delimiter: e.delimiter === void 0 ?
|
|
173
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
174
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
175
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
176
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
173
|
+
delimiter: e.delimiter === void 0 ? L.delimiter : e.delimiter,
|
|
174
|
+
encode: typeof e.encode == "boolean" ? e.encode : L.encode,
|
|
175
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : L.encodeDotInKeys,
|
|
176
|
+
encoder: typeof e.encoder == "function" ? e.encoder : L.encoder,
|
|
177
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : L.encodeValuesOnly,
|
|
177
178
|
filter: i,
|
|
178
179
|
format: n,
|
|
179
180
|
formatter: r,
|
|
180
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
181
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
181
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : L.serializeDate,
|
|
182
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : L.skipNulls,
|
|
182
183
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
183
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
184
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : L.strictNullHandling
|
|
184
185
|
};
|
|
185
186
|
};
|
|
186
|
-
function
|
|
187
|
-
let n = e, r =
|
|
188
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
187
|
+
function V(e, t) {
|
|
188
|
+
let n = e, r = B(t), i, a;
|
|
189
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : M(r.filter) && (a = r.filter, i = a);
|
|
189
190
|
let o = [];
|
|
190
191
|
if (typeof n != "object" || !n) return "";
|
|
191
|
-
let s =
|
|
192
|
+
let s = j[r.arrayFormat], c = s === "comma" && r.commaRoundTrip;
|
|
192
193
|
i ||= Object.keys(n), r.sort && i.sort(r.sort);
|
|
193
194
|
let l = /* @__PURE__ */ new WeakMap();
|
|
194
195
|
for (let e = 0; e < i.length; ++e) {
|
|
195
196
|
let t = i[e];
|
|
196
|
-
r.skipNulls && n[t] === null ||
|
|
197
|
+
r.skipNulls && n[t] === null || P(o, ee(n[t], t, s, c, r.allowEmptyArrays, r.strictNullHandling, r.skipNulls, r.encodeDotInKeys, r.encode ? r.encoder : null, r.filter, r.sort, r.allowDots, r.serializeDate, r.format, r.formatter, r.encodeValuesOnly, r.charset, l));
|
|
197
198
|
}
|
|
198
199
|
let u = o.join(r.delimiter), d = r.addQueryPrefix === !0 ? "?" : "";
|
|
199
200
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? d += "utf8=%26%2310003%3B&" : d += "utf8=%E2%9C%93&"), u.length > 0 ? d + u : "";
|
|
200
201
|
}
|
|
201
202
|
//#endregion
|
|
202
203
|
//#region packages/api-services/src/api/interceptors/request/updateToken.interceptor.ts
|
|
203
|
-
var
|
|
204
|
+
var H = [(e) => (e.headers["X-Webitel-Access"] = localStorage.getItem("access-token") || "", e), (e) => Promise.reject(e)], U = [(e) => e, (e) => {
|
|
204
205
|
if (e.response && e.response.status === 401) {
|
|
205
206
|
let e = encodeURIComponent(window.location.href);
|
|
206
207
|
window.location.href = `undefined?redirectTo=${e}`;
|
|
207
208
|
}
|
|
208
209
|
return Promise.reject(e);
|
|
209
|
-
}],
|
|
210
|
+
}], W = () => {
|
|
210
211
|
let e = { arrayFormat: "repeat" };
|
|
211
212
|
return a({
|
|
212
213
|
interceptors: {
|
|
213
|
-
request: [
|
|
214
|
-
response: [
|
|
214
|
+
request: [H],
|
|
215
|
+
response: [U]
|
|
215
216
|
},
|
|
216
217
|
baseURL: "/api",
|
|
217
|
-
paramsSerializer: (t) =>
|
|
218
|
+
paramsSerializer: (t) => V(t, e)
|
|
218
219
|
});
|
|
219
|
-
}
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region packages/api-services/node_modules/tslib/tslib.es6.js
|
|
222
|
-
n();
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region node_modules/url/node_modules/punycode/punycode.js
|
|
225
|
-
var te = /* @__PURE__ */ t(((e, t) => {
|
|
220
|
+
}, te = /* @__PURE__ */ t(((e, t) => {
|
|
226
221
|
(function(n) {
|
|
227
222
|
var i = typeof e == "object" && e && !e.nodeType && e, a = typeof t == "object" && t && !t.nodeType && t, o = typeof r == "object" && r;
|
|
228
223
|
(o.global === o || o.window === o || o.self === o) && (n = o);
|
|
@@ -914,8 +909,8 @@ var te = /* @__PURE__ */ t(((e, t) => {
|
|
|
914
909
|
H !== -1 && (this.hash = y.substr(H), y = y.slice(0, H));
|
|
915
910
|
var U = y.indexOf("?");
|
|
916
911
|
if (U === -1 ? n && (this.search = "", this.query = {}) : (this.search = y.substr(U), this.query = y.substr(U + 1), n && (this.query = h.parse(this.query)), y = y.slice(0, U)), y && (this.pathname = y), m[S] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
917
|
-
var z = this.pathname || "",
|
|
918
|
-
this.path = z +
|
|
912
|
+
var z = this.pathname || "", W = this.search || "";
|
|
913
|
+
this.path = z + W;
|
|
919
914
|
}
|
|
920
915
|
return this.href = this.format(), this;
|
|
921
916
|
};
|
|
@@ -994,15 +989,17 @@ var te = /* @__PURE__ */ t(((e, t) => {
|
|
|
994
989
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
995
990
|
}, e.parse = g, e.format = _;
|
|
996
991
|
})))(), "https://dev.webitel.com/api".replace(/\/+$/, "");
|
|
992
|
+
//#endregion
|
|
993
|
+
//#region node_modules/url/node_modules/punycode/punycode.js
|
|
997
994
|
var se = class {
|
|
998
995
|
constructor(e = {}) {
|
|
999
996
|
this.apiKey = e.apiKey, this.username = e.username, this.password = e.password, this.accessToken = e.accessToken, this.basePath = e.basePath, this.baseOptions = e.baseOptions;
|
|
1000
997
|
}
|
|
1001
|
-
},
|
|
998
|
+
}, G = () => new se({
|
|
1002
999
|
basePath: "/api",
|
|
1003
1000
|
apiKey: localStorage.getItem("access-key") || "",
|
|
1004
1001
|
accessToken: localStorage.getItem("access-key") || ""
|
|
1005
|
-
}),
|
|
1002
|
+
}), K = (e, t, { debug: n = !1, withContext: r = null } = {}) => t.reduce((e, t, i) => (n && console.info(`applyTransform debug on step ${i}`, e), r ? t(e, r) : t(e)), e), q = (e = []) => (t) => s(t, e), ce = (e) => (t) => `${e}?${V(t, {
|
|
1006
1003
|
skipEmptyString: !0,
|
|
1007
1004
|
skipNull: !0,
|
|
1008
1005
|
arrayFormat: "repeat"
|
|
@@ -1074,10 +1071,10 @@ var se = class {
|
|
|
1074
1071
|
return g(e, n, t);
|
|
1075
1072
|
}, {});
|
|
1076
1073
|
}, t.exports = g;
|
|
1077
|
-
})))(), 1),
|
|
1074
|
+
})))(), 1), J = (...e) => (t) => le.default.all([...e, t]), ue = (...e) => (t) => t.map((t) => le.default.all([...e, t])), de = {
|
|
1078
1075
|
eventBus: null,
|
|
1079
1076
|
i18n: null
|
|
1080
|
-
},
|
|
1077
|
+
}, Y = (e) => {
|
|
1081
1078
|
if (typeof e == "function") {
|
|
1082
1079
|
let t = ({ type: e, text: t }) => de.eventBus.$emit("notification", {
|
|
1083
1080
|
type: e,
|
|
@@ -1093,7 +1090,7 @@ var se = class {
|
|
|
1093
1090
|
});
|
|
1094
1091
|
}
|
|
1095
1092
|
return e;
|
|
1096
|
-
},
|
|
1093
|
+
}, X = (e) => (t) => Object.keys(t).reduce((n, r) => (e.indexOf(r) === -1 || (n[r] = t[r]), n), {}), Z = (e = []) => (t) => o(t, e), fe = /* @__PURE__ */ e(u(), 1), Q = (e = "search") => (t) => {
|
|
1097
1094
|
let n = (0, fe.default)(t), r = d(n, e);
|
|
1098
1095
|
return !r || r.slice(-1) === "*" ? n : f(n, e, `${r}*`);
|
|
1099
1096
|
}, pe = "acl", me = (e) => e.map((e) => ({
|
|
@@ -1117,7 +1114,7 @@ var se = class {
|
|
|
1117
1114
|
}
|
|
1118
1115
|
}
|
|
1119
1116
|
})), he = (e) => {
|
|
1120
|
-
let t =
|
|
1117
|
+
let t = W();
|
|
1121
1118
|
return {
|
|
1122
1119
|
getPermissionsList: async ({ parentId: n, ...r }) => {
|
|
1123
1120
|
let i = [
|
|
@@ -1127,33 +1124,33 @@ var se = class {
|
|
|
1127
1124
|
"sort",
|
|
1128
1125
|
"fields",
|
|
1129
1126
|
"id"
|
|
1130
|
-
], a = { user: !1 }, o =
|
|
1131
|
-
|
|
1132
|
-
|
|
1127
|
+
], a = { user: !1 }, o = K(r, [
|
|
1128
|
+
J(_()),
|
|
1129
|
+
Q("search"),
|
|
1133
1130
|
(e) => ({
|
|
1134
1131
|
...e,
|
|
1135
1132
|
q: e.search
|
|
1136
1133
|
}),
|
|
1137
|
-
|
|
1138
|
-
|
|
1134
|
+
X(i),
|
|
1135
|
+
q(),
|
|
1139
1136
|
ce(`${e}/${n}/${pe}`)
|
|
1140
1137
|
]);
|
|
1141
1138
|
try {
|
|
1142
|
-
let { items: e, next: n } =
|
|
1139
|
+
let { items: e, next: n } = K((await t.get(o)).data, [Z(), J(g())]);
|
|
1143
1140
|
return {
|
|
1144
|
-
items:
|
|
1141
|
+
items: K(e, [ue(a), me]),
|
|
1145
1142
|
next: n
|
|
1146
1143
|
};
|
|
1147
1144
|
} catch (e) {
|
|
1148
|
-
throw
|
|
1145
|
+
throw K(e, [Y]);
|
|
1149
1146
|
}
|
|
1150
1147
|
},
|
|
1151
1148
|
patchPermissions: async ({ changes: n, id: r }) => {
|
|
1152
|
-
let i =
|
|
1149
|
+
let i = K(n, [q()]), a = `${e}/${r}/${pe}`;
|
|
1153
1150
|
try {
|
|
1154
|
-
return
|
|
1151
|
+
return K((await t.patch(a, i)).data, [Z()]);
|
|
1155
1152
|
} catch (e) {
|
|
1156
|
-
throw
|
|
1153
|
+
throw K(e, [Y]);
|
|
1157
1154
|
}
|
|
1158
1155
|
}
|
|
1159
1156
|
};
|
|
@@ -1751,7 +1748,7 @@ m.array(ge), m.object({
|
|
|
1751
1748
|
});
|
|
1752
1749
|
//#endregion
|
|
1753
1750
|
//#region packages/api-services/src/gen/agent-service/agent-service.ts
|
|
1754
|
-
var
|
|
1751
|
+
var $ = (e = p) => ({
|
|
1755
1752
|
searchAgent: (t, n) => e.get("/call_center/agents", {
|
|
1756
1753
|
...n,
|
|
1757
1754
|
params: {
|
|
@@ -24103,7 +24100,8 @@ m.object({
|
|
|
24103
24100
|
})).optional(),
|
|
24104
24101
|
next: m.boolean().optional(),
|
|
24105
24102
|
page: m.number().optional()
|
|
24106
|
-
})
|
|
24103
|
+
});
|
|
24104
|
+
var Me = m.object({
|
|
24107
24105
|
authUrl: m.string().optional(),
|
|
24108
24106
|
claims: m.array(m.object({
|
|
24109
24107
|
type: m.string().optional(),
|
|
@@ -24135,7 +24133,8 @@ m.object({
|
|
|
24135
24133
|
name: m.string().optional()
|
|
24136
24134
|
}).optional(),
|
|
24137
24135
|
userinfoUrl: m.string().optional()
|
|
24138
|
-
})
|
|
24136
|
+
});
|
|
24137
|
+
m.object({
|
|
24139
24138
|
authUrl: m.string().optional(),
|
|
24140
24139
|
claims: m.array(m.object({
|
|
24141
24140
|
type: m.string().optional(),
|
|
@@ -25225,7 +25224,7 @@ m.object({
|
|
|
25225
25224
|
next: m.boolean().optional(),
|
|
25226
25225
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
25227
25226
|
}).describe("PhoneNumber dataset."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25228
|
-
var
|
|
25227
|
+
var Ne = m.object({
|
|
25229
25228
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
25230
25229
|
number: m.string().describe("The phone number."),
|
|
25231
25230
|
primary: m.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -25236,7 +25235,7 @@ var Me = m.object({
|
|
|
25236
25235
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
25237
25236
|
verified: m.boolean().optional()
|
|
25238
25237
|
}).describe("Input of the contact phone number.");
|
|
25239
|
-
m.array(
|
|
25238
|
+
m.array(Ne), m.object({
|
|
25240
25239
|
data: m.array(m.object({
|
|
25241
25240
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
25242
25241
|
createdBy: m.object({
|
|
@@ -25265,7 +25264,7 @@ m.array(Me), m.object({
|
|
|
25265
25264
|
next: m.boolean().optional(),
|
|
25266
25265
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
25267
25266
|
}).describe("PhoneNumber dataset."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25268
|
-
var
|
|
25267
|
+
var Pe = m.object({
|
|
25269
25268
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
25270
25269
|
number: m.string().describe("The phone number."),
|
|
25271
25270
|
primary: m.boolean().optional().describe("Indicates whether this phone number is default within other channels of the same type(phone)."),
|
|
@@ -25276,7 +25275,7 @@ var Ne = m.object({
|
|
|
25276
25275
|
}).optional().describe("Lookup reference information.\nSimplified search filter to uniquely identify related object."),
|
|
25277
25276
|
verified: m.boolean().optional()
|
|
25278
25277
|
}).describe("Input of the contact phone number.");
|
|
25279
|
-
m.array(
|
|
25278
|
+
m.array(Pe), m.object({
|
|
25280
25279
|
data: m.array(m.object({
|
|
25281
25280
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
25282
25281
|
createdBy: m.object({
|
|
@@ -25496,13 +25495,13 @@ m.array(Ne), m.object({
|
|
|
25496
25495
|
next: m.boolean().optional(),
|
|
25497
25496
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
25498
25497
|
}).describe("Photo dataset."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25499
|
-
var
|
|
25498
|
+
var Fe = m.object({
|
|
25500
25499
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing association."),
|
|
25501
25500
|
photoId: m.string().optional(),
|
|
25502
25501
|
photoUrl: m.string().optional(),
|
|
25503
25502
|
primary: m.boolean().optional().describe("True if the photo is a default photo; false if the photo is a user-provided photo.")
|
|
25504
25503
|
}).describe("Input of the photo.");
|
|
25505
|
-
m.array(
|
|
25504
|
+
m.array(Fe), m.object({
|
|
25506
25505
|
data: m.array(m.object({
|
|
25507
25506
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
25508
25507
|
createdBy: m.object({
|
|
@@ -25526,13 +25525,13 @@ m.array(Pe), m.object({
|
|
|
25526
25525
|
next: m.boolean().optional(),
|
|
25527
25526
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
25528
25527
|
}).describe("Photo dataset."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
25529
|
-
var
|
|
25528
|
+
var Ie = m.object({
|
|
25530
25529
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing association."),
|
|
25531
25530
|
photoId: m.string().optional(),
|
|
25532
25531
|
photoUrl: m.string().optional(),
|
|
25533
25532
|
primary: m.boolean().optional().describe("True if the photo is a default photo; false if the photo is a user-provided photo.")
|
|
25534
25533
|
}).describe("Input of the photo.");
|
|
25535
|
-
m.array(
|
|
25534
|
+
m.array(Ie), m.object({
|
|
25536
25535
|
data: m.array(m.object({
|
|
25537
25536
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
25538
25537
|
createdBy: m.object({
|
|
@@ -29963,13 +29962,13 @@ m.array(Fe), m.object({
|
|
|
29963
29962
|
next: m.boolean().optional(),
|
|
29964
29963
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
29965
29964
|
}), m.object({ fields: m.array(m.string()).optional().describe("Source Fields to return into result.") });
|
|
29966
|
-
var
|
|
29965
|
+
var Le = m.object({
|
|
29967
29966
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
29968
29967
|
homePage: m.string().optional().describe("BIO. Short description about the space.\nOPTIONAL. Multi-lined text."),
|
|
29969
29968
|
name: m.string().optional().describe("Represents the name of the knowledge base space."),
|
|
29970
29969
|
state: m.boolean().optional().describe("The state of the space.")
|
|
29971
29970
|
}).describe("The Space principal input.");
|
|
29972
|
-
m.array(
|
|
29971
|
+
m.array(Le), m.object({
|
|
29973
29972
|
createdAt: m.string().optional().describe("The timestamp when the space was created (in Unix time)."),
|
|
29974
29973
|
createdBy: m.object({
|
|
29975
29974
|
id: m.string().optional().describe("Reference Object unique ID."),
|
|
@@ -30795,7 +30794,7 @@ m.array(Ie), m.object({
|
|
|
30795
30794
|
next: m.boolean().optional(),
|
|
30796
30795
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
30797
30796
|
}).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
30798
|
-
var
|
|
30797
|
+
var Re = m.object({
|
|
30799
30798
|
etag: m.string().describe("Unique ID of the latest version of an existing resource."),
|
|
30800
30799
|
primary: m.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
30801
30800
|
timezone: m.object({
|
|
@@ -30804,7 +30803,7 @@ var Le = m.object({
|
|
|
30804
30803
|
type: m.string().optional().describe("Reference Object well-known type.")
|
|
30805
30804
|
}).optional().describe("Timezone dictionary reference value associated.")
|
|
30806
30805
|
}).describe("An input of the Contact's timezones.");
|
|
30807
|
-
m.array(
|
|
30806
|
+
m.array(Re), m.object({
|
|
30808
30807
|
data: m.array(m.object({
|
|
30809
30808
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
30810
30809
|
createdBy: m.object({
|
|
@@ -30831,7 +30830,7 @@ m.array(Le), m.object({
|
|
|
30831
30830
|
next: m.boolean().optional(),
|
|
30832
30831
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
30833
30832
|
}).describe("Timezone dataset.\nNOTE: Edge represents connection between two nodes.\nSo this ContactTimezones.data are always subordinate to some contact.id."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
30834
|
-
var
|
|
30833
|
+
var ze = m.object({
|
|
30835
30834
|
etag: m.string().describe("Unique ID of the latest version of an existing resource."),
|
|
30836
30835
|
primary: m.boolean().optional().describe("Indicates whether this association must be default among others."),
|
|
30837
30836
|
timezone: m.object({
|
|
@@ -30840,7 +30839,7 @@ var Re = m.object({
|
|
|
30840
30839
|
type: m.string().optional().describe("Reference Object well-known type.")
|
|
30841
30840
|
}).optional().describe("Timezone dictionary reference value associated.")
|
|
30842
30841
|
}).describe("An input of the Contact's timezones.");
|
|
30843
|
-
m.array(
|
|
30842
|
+
m.array(ze), m.object({
|
|
30844
30843
|
data: m.array(m.object({
|
|
30845
30844
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
30846
30845
|
createdBy: m.object({
|
|
@@ -32059,8 +32058,8 @@ m.array(Re), m.object({
|
|
|
32059
32058
|
id: m.string().optional().describe("ONE /users/{id}"),
|
|
32060
32059
|
permanent: m.boolean().optional()
|
|
32061
32060
|
});
|
|
32062
|
-
var
|
|
32063
|
-
m.array(
|
|
32061
|
+
var Be = m.string();
|
|
32062
|
+
m.array(Be), m.object({ deleted: m.array(m.object({
|
|
32064
32063
|
chatName: m.string().optional().describe("The \"chat_name\" field is used to store the name displayed externally on the platform.\nFor example, \"chat_name\" is shown when an agent connects to chats with clients."),
|
|
32065
32064
|
contact: m.object({
|
|
32066
32065
|
id: m.string().optional(),
|
|
@@ -32943,12 +32942,12 @@ m.array(ze), m.object({ deleted: m.array(m.object({
|
|
|
32943
32942
|
next: m.boolean().optional(),
|
|
32944
32943
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
32945
32944
|
}).describe("Variable dataset."), m.object({ contact_id: m.string().describe("Link contact ID.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved as a result.") });
|
|
32946
|
-
var
|
|
32945
|
+
var Ve = m.object({
|
|
32947
32946
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
32948
32947
|
key: m.string().regex(/^\w+$/).describe("NEW Key."),
|
|
32949
32948
|
value: m.unknown().optional().describe("NEW Value.")
|
|
32950
32949
|
}).describe("Input of the Contact's variable.");
|
|
32951
|
-
m.array(
|
|
32950
|
+
m.array(Ve), m.object({
|
|
32952
32951
|
data: m.array(m.object({
|
|
32953
32952
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
32954
32953
|
createdBy: m.object({
|
|
@@ -32971,12 +32970,12 @@ m.array(Be), m.object({
|
|
|
32971
32970
|
next: m.boolean().optional(),
|
|
32972
32971
|
page: m.number().optional().describe("The page number of the partial result.")
|
|
32973
32972
|
}).describe("Variable dataset."), m.object({ contact_id: m.string().describe("Contact ID associated with.") }), m.object({ fields: m.array(m.string()).optional().describe("Fields to be retrieved into result of changes.") });
|
|
32974
|
-
var
|
|
32973
|
+
var He = m.object({
|
|
32975
32974
|
etag: m.string().optional().describe("Unique ID of the latest version of an existing resorce."),
|
|
32976
32975
|
key: m.string().regex(/^\w+$/).describe("NEW Key."),
|
|
32977
32976
|
value: m.unknown().optional().describe("NEW Value.")
|
|
32978
32977
|
}).describe("Input of the Contact's variable.");
|
|
32979
|
-
m.array(
|
|
32978
|
+
m.array(He), m.object({
|
|
32980
32979
|
data: m.array(m.object({
|
|
32981
32980
|
createdAt: m.string().optional().describe("The user who created this Field."),
|
|
32982
32981
|
createdBy: m.object({
|
|
@@ -36465,22 +36464,22 @@ m.array(Ve), m.object({
|
|
|
36465
36464
|
}).optional() });
|
|
36466
36465
|
//#endregion
|
|
36467
36466
|
//#region packages/api-services/src/scripts/convertDuration/convertDuration.ts
|
|
36468
|
-
var
|
|
36467
|
+
var Ue = (e) => {
|
|
36469
36468
|
if (!e) return "00:00:00";
|
|
36470
36469
|
let t = `${Math.floor(e / 3600)}`, n = `${Math.floor(e % 3600 / 60)}`, r = `${Math.floor(e % 3600 % 60)}`;
|
|
36471
36470
|
return t.length === 1 && (t = `0${t}`), n.length === 1 && (n = `0${n}`), r.length === 1 && (r = `0${r}`), `${t}:${n}:${r}`;
|
|
36472
|
-
},
|
|
36471
|
+
}, We = (e) => e > 3600 * 24 ? ">24:00:00" : Ue(e), Ge = async (e) => {
|
|
36473
36472
|
let t = (e) => e.map((e) => ({
|
|
36474
36473
|
...e,
|
|
36475
|
-
statusDuration:
|
|
36476
|
-
})), n =
|
|
36477
|
-
|
|
36478
|
-
|
|
36474
|
+
statusDuration: We(e.statusDuration)
|
|
36475
|
+
})), n = K(e, [
|
|
36476
|
+
q(),
|
|
36477
|
+
J(g()),
|
|
36479
36478
|
(e) => ({
|
|
36480
36479
|
...e,
|
|
36481
36480
|
q: e.search
|
|
36482
36481
|
}),
|
|
36483
|
-
|
|
36482
|
+
X([
|
|
36484
36483
|
"page",
|
|
36485
36484
|
"size",
|
|
36486
36485
|
"q",
|
|
@@ -36503,15 +36502,15 @@ var He = (e) => {
|
|
|
36503
36502
|
])
|
|
36504
36503
|
]);
|
|
36505
36504
|
try {
|
|
36506
|
-
let { items: e, next: r } =
|
|
36505
|
+
let { items: e, next: r } = K((await $().searchAgent(n)).data, [Z(), J(g())]);
|
|
36507
36506
|
return {
|
|
36508
|
-
items:
|
|
36507
|
+
items: K(e, [t]),
|
|
36509
36508
|
next: r
|
|
36510
36509
|
};
|
|
36511
36510
|
} catch (e) {
|
|
36512
|
-
throw
|
|
36511
|
+
throw K(e, [Y]);
|
|
36513
36512
|
}
|
|
36514
|
-
},
|
|
36513
|
+
}, Ke = async ({ itemId: e }) => {
|
|
36515
36514
|
let t = {
|
|
36516
36515
|
user: {},
|
|
36517
36516
|
team: {},
|
|
@@ -36526,11 +36525,11 @@ var He = (e) => {
|
|
|
36526
36525
|
greetingMedia: {}
|
|
36527
36526
|
};
|
|
36528
36527
|
try {
|
|
36529
|
-
return
|
|
36528
|
+
return K((await $().readAgent(e)).data, [Z(), J(t)]);
|
|
36530
36529
|
} catch (e) {
|
|
36531
|
-
throw
|
|
36530
|
+
throw K(e, [Y]);
|
|
36532
36531
|
}
|
|
36533
|
-
},
|
|
36532
|
+
}, qe = [
|
|
36534
36533
|
"user",
|
|
36535
36534
|
"team",
|
|
36536
36535
|
"supervisor",
|
|
@@ -36541,97 +36540,97 @@ var He = (e) => {
|
|
|
36541
36540
|
"chatCount",
|
|
36542
36541
|
"taskCount",
|
|
36543
36542
|
"isSupervisor"
|
|
36544
|
-
],
|
|
36545
|
-
getList:
|
|
36546
|
-
get:
|
|
36543
|
+
], Je = {
|
|
36544
|
+
getList: Ge,
|
|
36545
|
+
get: Ke,
|
|
36547
36546
|
add: async ({ itemInstance: e }) => {
|
|
36548
|
-
let t =
|
|
36547
|
+
let t = K(e, [X(qe), q()]);
|
|
36549
36548
|
try {
|
|
36550
|
-
return
|
|
36549
|
+
return K((await $().createAgent(t)).data, [Z()]);
|
|
36551
36550
|
} catch (e) {
|
|
36552
|
-
throw
|
|
36551
|
+
throw K(e, [Y]);
|
|
36553
36552
|
}
|
|
36554
36553
|
},
|
|
36555
36554
|
patch: async ({ changes: e, id: t }) => {
|
|
36556
|
-
let n =
|
|
36555
|
+
let n = K(e, [X(qe), q()]);
|
|
36557
36556
|
try {
|
|
36558
|
-
return
|
|
36557
|
+
return K((await $().patchAgent(t, n)).data, [Z()]);
|
|
36559
36558
|
} catch (e) {
|
|
36560
|
-
throw
|
|
36559
|
+
throw K(e, [Y]);
|
|
36561
36560
|
}
|
|
36562
36561
|
},
|
|
36563
36562
|
update: async ({ itemInstance: e, itemId: t }) => {
|
|
36564
|
-
let n =
|
|
36563
|
+
let n = K(e, [X(qe), q()]);
|
|
36565
36564
|
try {
|
|
36566
|
-
return
|
|
36565
|
+
return K((await $().updateAgent(t, n)).data, [Z()]);
|
|
36567
36566
|
} catch (e) {
|
|
36568
|
-
throw
|
|
36567
|
+
throw K(e, [Y]);
|
|
36569
36568
|
}
|
|
36570
36569
|
},
|
|
36571
36570
|
delete: async ({ id: e }) => {
|
|
36572
36571
|
try {
|
|
36573
|
-
return
|
|
36572
|
+
return K((await $().deleteAgent(e)).data, []);
|
|
36574
36573
|
} catch (e) {
|
|
36575
|
-
throw
|
|
36574
|
+
throw K(e, [Y]);
|
|
36576
36575
|
}
|
|
36577
36576
|
},
|
|
36578
|
-
getLookup: (e) =>
|
|
36577
|
+
getLookup: (e) => Ge({
|
|
36579
36578
|
...e,
|
|
36580
36579
|
fields: e.fields || ["id", "name"]
|
|
36581
36580
|
}),
|
|
36582
36581
|
getAgentHistory: async (e) => {
|
|
36583
|
-
let { parentId: t, from: n, to: r, page: i, size: a, sort: o = "-joined_at" } =
|
|
36582
|
+
let { parentId: t, from: n, to: r, page: i, size: a, sort: o = "-joined_at" } = K(e, [J(_()), Q("search")]);
|
|
36584
36583
|
try {
|
|
36585
|
-
let { items: e, next: s } =
|
|
36584
|
+
let { items: e, next: s } = K((await $().searchAgentStateHistory({
|
|
36586
36585
|
page: i,
|
|
36587
36586
|
size: a,
|
|
36588
36587
|
from: n,
|
|
36589
36588
|
to: r,
|
|
36590
36589
|
parentId: t,
|
|
36591
36590
|
sort: o
|
|
36592
|
-
})).data, [
|
|
36591
|
+
})).data, [Z(), J(g())]);
|
|
36593
36592
|
return {
|
|
36594
36593
|
items: e,
|
|
36595
36594
|
next: s
|
|
36596
36595
|
};
|
|
36597
36596
|
} catch (e) {
|
|
36598
|
-
throw
|
|
36597
|
+
throw K(e, [Y]);
|
|
36599
36598
|
}
|
|
36600
36599
|
},
|
|
36601
|
-
getRegularAgentsOptions: async (e) =>
|
|
36600
|
+
getRegularAgentsOptions: async (e) => Ge({
|
|
36602
36601
|
...e,
|
|
36603
36602
|
isNotSupervisor: !0
|
|
36604
36603
|
}),
|
|
36605
36604
|
getAgentUsersOptions: async (e) => {
|
|
36606
|
-
let { page: t, size: n, search: r, sort: i, fields: a, id: o } =
|
|
36605
|
+
let { page: t, size: n, search: r, sort: i, fields: a, id: o } = K(e, [J(_()), Q("search")]);
|
|
36607
36606
|
try {
|
|
36608
|
-
let { items: e, next: i } =
|
|
36607
|
+
let { items: e, next: i } = K((await $().searchLookupUsersAgentNotExists({
|
|
36609
36608
|
page: t,
|
|
36610
36609
|
size: n,
|
|
36611
36610
|
q: r
|
|
36612
|
-
})).data, [
|
|
36611
|
+
})).data, [Z(), J(g())]);
|
|
36613
36612
|
return {
|
|
36614
36613
|
items: e,
|
|
36615
36614
|
next: i
|
|
36616
36615
|
};
|
|
36617
36616
|
} catch (e) {
|
|
36618
|
-
throw
|
|
36617
|
+
throw K(e, [Y]);
|
|
36619
36618
|
}
|
|
36620
36619
|
},
|
|
36621
|
-
getSupervisorOptions: async (e) =>
|
|
36620
|
+
getSupervisorOptions: async (e) => Ge({
|
|
36622
36621
|
...e,
|
|
36623
36622
|
isSupervisor: !0
|
|
36624
36623
|
}),
|
|
36625
36624
|
getUsersStatus: async (e) => {
|
|
36626
|
-
let t =
|
|
36627
|
-
|
|
36628
|
-
|
|
36629
|
-
|
|
36625
|
+
let t = K(e, [
|
|
36626
|
+
q(),
|
|
36627
|
+
J(_()),
|
|
36628
|
+
Q("search"),
|
|
36630
36629
|
(e) => ({
|
|
36631
36630
|
...e,
|
|
36632
36631
|
q: e.search
|
|
36633
36632
|
}),
|
|
36634
|
-
|
|
36633
|
+
X([
|
|
36635
36634
|
"page",
|
|
36636
36635
|
"size",
|
|
36637
36636
|
"q",
|
|
@@ -36641,53 +36640,53 @@ var He = (e) => {
|
|
|
36641
36640
|
])
|
|
36642
36641
|
]);
|
|
36643
36642
|
try {
|
|
36644
|
-
let { items: e, next: n } =
|
|
36643
|
+
let { items: e, next: n } = K((await $().searchUserStatus(t)).data, [Z(), J(g())]);
|
|
36645
36644
|
return {
|
|
36646
36645
|
items: e,
|
|
36647
36646
|
next: n
|
|
36648
36647
|
};
|
|
36649
36648
|
} catch (e) {
|
|
36650
|
-
throw
|
|
36649
|
+
throw K(e, [Y]);
|
|
36651
36650
|
}
|
|
36652
36651
|
}
|
|
36653
36652
|
};
|
|
36654
|
-
|
|
36653
|
+
W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), Object.freeze({
|
|
36655
36654
|
VIBER: "viber",
|
|
36656
36655
|
WHATSAPP: "whatsapp",
|
|
36657
36656
|
TELEGRAM: "telegram",
|
|
36658
36657
|
MESSENGER: "messenger",
|
|
36659
36658
|
EMAIL: "email"
|
|
36660
|
-
}),
|
|
36661
|
-
var
|
|
36659
|
+
}), W(), W(), G(), W(), G(), W(), G(), { ...he("/contacts/groups") }, W(), G(), W(), W(), G(), W(), G(), W(), G(), W(), G(), localStorage.getItem("access-token"), i.create({ headers: { "content-type": "multipart/form-data" } });
|
|
36660
|
+
var Ye = {
|
|
36662
36661
|
patch: async (e) => {
|
|
36663
|
-
let t =
|
|
36662
|
+
let t = K(e, [q()]);
|
|
36664
36663
|
try {
|
|
36665
|
-
return
|
|
36664
|
+
return K((await je().messagesServiceBroadcastMessage(t)).data, [Z()]);
|
|
36666
36665
|
} catch (e) {
|
|
36667
|
-
throw
|
|
36666
|
+
throw K(e, [Y]);
|
|
36668
36667
|
}
|
|
36669
36668
|
},
|
|
36670
36669
|
getChatHistory: async ({ chatId: e, ...t }) => {
|
|
36671
|
-
let n =
|
|
36670
|
+
let n = K(t, [J(_()), q()]);
|
|
36672
36671
|
try {
|
|
36673
|
-
let { messages: t, peers: r, next: i } =
|
|
36672
|
+
let { messages: t, peers: r, next: i } = K((await je().catalogGetHistory(e, n)).data, [Z(), J(g())]);
|
|
36674
36673
|
return {
|
|
36675
36674
|
messages: t,
|
|
36676
36675
|
peers: r,
|
|
36677
36676
|
next: i
|
|
36678
36677
|
};
|
|
36679
36678
|
} catch (e) {
|
|
36680
|
-
throw
|
|
36679
|
+
throw K(e, [Y]);
|
|
36681
36680
|
}
|
|
36682
36681
|
}
|
|
36683
36682
|
};
|
|
36684
|
-
|
|
36683
|
+
h(Me), { ...he("/oauth") }, W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), G(), W(), { ...he("/users") };
|
|
36685
36684
|
//#endregion
|
|
36686
36685
|
//#region packages/api-services/src/api/clients/wtTypes/sysTypes/sysTypes.ts
|
|
36687
|
-
var
|
|
36688
|
-
let i =
|
|
36689
|
-
|
|
36690
|
-
|
|
36686
|
+
var Xe = W(), Ze = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
36687
|
+
let i = K(r, [
|
|
36688
|
+
J(_()),
|
|
36689
|
+
Q("search"),
|
|
36691
36690
|
(e) => ({
|
|
36692
36691
|
...e,
|
|
36693
36692
|
q: e.search
|
|
@@ -36696,7 +36695,7 @@ var Je = U(), Ye = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
|
36696
36695
|
...e,
|
|
36697
36696
|
ids: e.id
|
|
36698
36697
|
}),
|
|
36699
|
-
|
|
36698
|
+
X([
|
|
36700
36699
|
"page",
|
|
36701
36700
|
"size",
|
|
36702
36701
|
"q",
|
|
@@ -36705,31 +36704,31 @@ var Je = U(), Ye = async ({ path: e, display: t, primary: n, ...r }) => {
|
|
|
36705
36704
|
"id",
|
|
36706
36705
|
"ids"
|
|
36707
36706
|
]),
|
|
36708
|
-
|
|
36707
|
+
q(),
|
|
36709
36708
|
ce(e)
|
|
36710
36709
|
]);
|
|
36711
36710
|
try {
|
|
36712
|
-
let { data: e, items: t, next: n } =
|
|
36711
|
+
let { data: e, items: t, next: n } = K((await Xe.get(i)).data, [J(g())]);
|
|
36713
36712
|
return {
|
|
36714
|
-
items:
|
|
36713
|
+
items: K(e || t, []) ?? [],
|
|
36715
36714
|
next: n
|
|
36716
36715
|
};
|
|
36717
36716
|
} catch (e) {
|
|
36718
|
-
throw
|
|
36717
|
+
throw K(e, [Y]);
|
|
36719
36718
|
}
|
|
36720
|
-
},
|
|
36721
|
-
getList:
|
|
36722
|
-
getLookup: (e) =>
|
|
36719
|
+
}, Qe = {
|
|
36720
|
+
getList: Ze,
|
|
36721
|
+
getLookup: (e) => Ze({
|
|
36723
36722
|
...e,
|
|
36724
36723
|
fields: e.fields || ["id", "name"]
|
|
36725
36724
|
})
|
|
36726
36725
|
};
|
|
36727
|
-
|
|
36726
|
+
W(), G(), W(), G(), Object.freeze({
|
|
36728
36727
|
NAME: "name",
|
|
36729
36728
|
LABELS: "labels",
|
|
36730
36729
|
ABOUT: "about",
|
|
36731
36730
|
VARIABLES: "variables",
|
|
36732
36731
|
DESTINATION: "destination"
|
|
36733
|
-
}),
|
|
36732
|
+
}), W(), G(), { ...he("/contacts") };
|
|
36734
36733
|
//#endregion
|
|
36735
|
-
export {
|
|
36734
|
+
export { Ye as n, Je as r, Qe as t };
|