@webitel/ui-sdk 26.6.33 → 26.6.35
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/AgentStatus.enum-C3IGHtvR.js +9 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/caseConverters-DXegZoCt.js +27 -0
- package/dist/chunk-CY3AvKd6.js +20 -0
- package/dist/clients-A6MHYfOX.js +36118 -0
- package/dist/components-B4aAS7wB.js +5391 -0
- package/dist/composables-DnDH-KUv.js +263 -0
- package/dist/convertDuration-1K7fuEpO.js +8 -0
- package/dist/debounce-DrmECuJ2.js +128 -0
- package/dist/deep-copy-CQw5yeEH.js +41 -0
- package/dist/displayText-CtaxzaBz.js +3 -0
- package/dist/dist-05Bf47Wg.js +87 -0
- package/dist/dist-BYiYpK00.js +7 -0
- package/dist/dist-Dz55hlwp.js +1371 -0
- package/dist/engineCallFileType-D7QVFOac.js +11 -0
- package/dist/enums-pbYAJNeb.js +158 -0
- package/dist/errors-SUXKojVW.js +69 -0
- package/dist/floating-ui.dom-n2j9PKCB.js +842 -0
- package/dist/generateInstance-ppTIeLX4.js +2582 -0
- package/dist/isObject-Dgs_L5xI.js +11 -0
- package/dist/logger-hl3ueNok.js +47 -0
- package/dist/prod-Cp0BjuxI.js +775 -0
- package/dist/prod-DSuxcp5t.js +2 -0
- package/dist/side-channel-Cyte-MzW.js +833 -0
- package/dist/sortQueryAdapters-CyYXvnDN.js +14 -0
- package/dist/srt-parser-DdH5U08c.js +21 -0
- package/dist/ssa-parser-Bjs7yDD1.js +184 -0
- package/dist/ui-sdk.css +2 -1
- package/dist/ui-sdk.js +34541 -4
- package/dist/ui-sdk.umd.cjs +7740 -7606
- package/dist/useExpansion-DVdIpoOn.js +24 -0
- package/dist/useValidation-DG0tifBv.js +37 -0
- package/dist/useVidstackSrc-DfNrFbOO.js +155 -0
- package/dist/useWtTable-tqmVOvve.js +12 -0
- package/dist/vidstack-B01xzxC4-DeYSgDZy.js +7 -0
- package/dist/vidstack-BGSTndAW-CyKM_CM4.js +957 -0
- package/dist/vidstack-BQlOPwOu-ChhdffAJ.js +43 -0
- package/dist/vidstack-Bq6c3Bam-3dCf_D36.js +398 -0
- package/dist/vidstack-C2US-gSO-DeIgENrW.js +127 -0
- package/dist/vidstack-C9vIqaYT-C1EgPq17.js +9 -0
- package/dist/vidstack-CTojmhKq-D7sZJxgm.js +30 -0
- package/dist/vidstack-ChQTHmIQ-nTO94M6P.js +51 -0
- package/dist/vidstack-Ci54COQW-CAAXpwzv.js +208 -0
- package/dist/vidstack-D2pY00kU-DoW028io.js +70 -0
- package/dist/vidstack-D5EzK014-DOe01V3H.js +14 -0
- package/dist/vidstack-DDXt6fpN-Don_e6LS.js +42 -0
- package/dist/vidstack-D_-9AA6_-Dq3APB0-.js +19 -0
- package/dist/vidstack-Dihypf8P-ibWMCHK-.js +12 -0
- package/dist/vidstack-Dm1xEU9Q-VlefmrP8.js +31 -0
- package/dist/vidstack-DqAw8m9J-Dk1GT3Oe.js +22 -0
- package/dist/vidstack-audio-B58bvsna.js +23 -0
- package/dist/vidstack-dash-CX-LTHx3.js +332 -0
- package/dist/vidstack-google-cast-Co5Q_rfL.js +361 -0
- package/dist/vidstack-hls-CLzdTFu6.js +269 -0
- package/dist/vidstack-krOAtKMi-DN1WZC3p.js +30 -0
- package/dist/vidstack-video-XtP8iTBc.js +151 -0
- package/dist/vidstack-vimeo-EzzPpggD.js +386 -0
- package/dist/vidstack-youtube-C1_NAfWa.js +205 -0
- package/dist/vue-i18n-B8Px6VcD.js +2201 -0
- package/dist/wt-action-bar-Ba1ZJjE_.js +85 -0
- package/dist/wt-button-DENbrKdy.js +785 -0
- package/dist/wt-button-select-BnRHgJ4i.js +80 -0
- package/dist/wt-call-media-action-Bkyppnsm.js +42 -0
- package/dist/wt-chat-emoji-wdBt1XzD.js +2208 -0
- package/dist/wt-confirm-dialog-DCUitG2v.js +70 -0
- package/dist/wt-context-menu-yW52oF-2.js +89 -0
- package/dist/wt-copy-action-d9gVzAsB.js +38 -0
- package/dist/wt-datepicker-Cnbarx_j.js +5774 -0
- package/dist/wt-display-chip-items-CvMM8WMk.js +34 -0
- package/dist/wt-dual-panel-DAhTYFS_.js +49 -0
- package/dist/wt-dummy-CLjhRWZ6.js +59 -0
- package/dist/wt-error-page-vhu4lIyF.js +62 -0
- package/dist/wt-expand-transition-C2p9bR4j.js +39 -0
- package/dist/wt-expansion-card-qsxvbtZm.js +47 -0
- package/dist/wt-expansion-panel-C_EXvx1d.js +40 -0
- package/dist/wt-filters-panel-wrapper-Cc9b3aci.js +51 -0
- package/dist/wt-galleria-CWXKuZTD.js +224 -0
- package/dist/wt-icon-action-CQlZHMDB.js +100 -0
- package/dist/wt-icon-btn-CjjI4cgE.js +107 -0
- package/dist/wt-icon-pxO7IjwV.js +1026 -0
- package/dist/wt-inline-add-panel-B0E4Vk2l.js +43 -0
- package/dist/wt-navigation-menu-CenQi_-T.js +126 -0
- package/dist/wt-notifications-bar-Ep1QuFZi.js +52 -0
- package/dist/wt-page-header-CDbd4aOh.js +59 -0
- package/dist/wt-pagination-BA_PZPIE.js +94 -0
- package/dist/wt-player-uidPXSTe.js +287 -0
- package/dist/wt-popover-CJZH3wMl.js +98 -0
- package/dist/wt-screen-recordings-action-Dg7Ts2Jt.js +37 -0
- package/dist/wt-search-bar-CWZdvAOf.js +123 -0
- package/dist/wt-selection-popup-B77UY7Yu.js +79 -0
- package/dist/wt-send-message-popup-D0GJMGni.js +77 -0
- package/dist/wt-slider-BS3SoGht.js +68 -0
- package/dist/wt-start-page-eN1PEokc.js +86 -0
- package/dist/wt-status-select-A5t6Vjm4.js +101 -0
- package/dist/wt-stepper-B6zpd1Uh.js +41 -0
- package/dist/wt-table-D0FynxIE.js +364 -0
- package/dist/wt-table-actions-4-peSVkc.js +63 -0
- package/dist/wt-table-column-select-DFF6z3a3.js +100 -0
- package/dist/wt-tabs-DuOgj-lZ.js +60 -0
- package/dist/wt-time-input-CO2cop3y.js +62 -0
- package/dist/wt-timepicker-BltFF1QD.js +145 -0
- package/dist/wt-tree-ZyoPrNOl.js +1206 -0
- package/dist/wt-tree-table-MLET4gIv.js +221 -0
- package/dist/wt-type-extension-value-input-fnNxJLsq.js +104 -0
- package/dist/wt-vidstack-player-DLTA9mBK.js +7440 -0
- package/package.json +5 -5
- package/src/components/wt-table-column-select/__tests__/WtTableColumnSelect.spec.js +3 -3
- package/src/components/wt-vidstack-player/wt-vidstack-player.vue +2 -2
- package/dist/contacts-C-FnP7wP.js +0 -49654
- package/dist/displayText-Cbh4IOfM.js +0 -5
- package/dist/engineCallFileType-yaadA7-2.js +0 -8
- package/dist/errors-CTL-RV3B.js +0 -70
- package/dist/index-BBLSS-t1.js +0 -50
- package/dist/install-DOSuNFtE.js +0 -53489
- package/dist/isObject-CMQJaQIp.js +0 -28
- package/dist/prod-BoQuiIB3.js +0 -973
- package/dist/srt-parser-CsN7bp5E.js +0 -26
- package/dist/ssa-parser-BJOOPeQF.js +0 -200
- package/dist/useExpansion-BrQ40HiR.js +0 -24
- package/dist/useVidstackSrc-MfWBq7Ef.js +0 -1341
- package/dist/vidstack-Bq6c3Bam-C_T8PkmG.js +0 -426
- package/dist/vidstack-D2pY00kU-CphVKcJq.js +0 -136
- package/dist/vidstack-DDXt6fpN-2lNfj8Ca.js +0 -51
- package/dist/vidstack-D_-9AA6_-Cyl8HzDm.js +0 -21
- package/dist/vidstack-Dm1xEU9Q-CXHNvShT.js +0 -30
- package/dist/vidstack-DqAw8m9J-C2p9K7Db.js +0 -22
- package/dist/vidstack-audio-BL-Sa_Ap.js +0 -28
- package/dist/vidstack-dash-mKhgfurw.js +0 -393
- package/dist/vidstack-google-cast-BGqSw2iP.js +0 -383
- package/dist/vidstack-hls-U5fTV3hj.js +0 -310
- package/dist/vidstack-krOAtKMi-C50BTxmn.js +0 -28
- package/dist/vidstack-video-Bxf7KDne.js +0 -164
- package/dist/vidstack-vimeo-MngSXtDR.js +0 -452
- package/dist/vidstack-youtube-Ctg91VeX.js +0 -233
- package/dist/wt-action-bar-DaDcqA4n.js +0 -102
- package/dist/wt-button-select-q_BITVhH.js +0 -105
- package/dist/wt-call-media-action-BkBcZN17.js +0 -60
- package/dist/wt-chat-emoji-BGuSgYi3.js +0 -2909
- package/dist/wt-confirm-dialog-C7-74ROm.js +0 -92
- package/dist/wt-context-menu-CzAHMaOj.js +0 -104
- package/dist/wt-copy-action-BpckAObd.js +0 -60
- package/dist/wt-datepicker-DauMnf2r.js +0 -5660
- package/dist/wt-display-chip-items-zcqxH89_.js +0 -47
- package/dist/wt-dual-panel-Cj79kJpk.js +0 -66
- package/dist/wt-dummy-BUHYAcsk.js +0 -104
- package/dist/wt-error-page-CNSqDA-o.js +0 -89
- package/dist/wt-expansion-card-CtcuXg6f.js +0 -56
- package/dist/wt-expansion-panel-BU2Hb-N2.js +0 -54
- package/dist/wt-filters-panel-wrapper-BlLlAixc.js +0 -75
- package/dist/wt-galleria-BQzGD6-3.js +0 -323
- package/dist/wt-inline-add-panel-fG58a6T3.js +0 -49
- package/dist/wt-navigation-menu-2ggfyrM_.js +0 -159
- package/dist/wt-notifications-bar-Epn_SA_R.js +0 -79
- package/dist/wt-page-header-DdsnoLgd.js +0 -115
- package/dist/wt-pagination-Byg79HfY.js +0 -144
- package/dist/wt-player-kjdJYVi3.js +0 -291
- package/dist/wt-popover-Di-7_rDL.js +0 -4
- package/dist/wt-popover.vue_vue_type_style_index_0_lang-DMDTlCgv.js +0 -81
- package/dist/wt-screen-recordings-action-Z3x-gI0n.js +0 -54
- package/dist/wt-search-bar-CxwSi-Xo.js +0 -144
- package/dist/wt-selection-popup-MdCfrgcd.js +0 -109
- package/dist/wt-send-message-popup-DklTgoGj.js +0 -579
- package/dist/wt-slider-BEkw4KGp.js +0 -4
- package/dist/wt-slider.vue_vue_type_script_setup_true_lang-DlaRDHxo.js +0 -55
- package/dist/wt-start-page-B59KbWqX.js +0 -99
- package/dist/wt-status-select-hOAr_xBg.js +0 -138
- package/dist/wt-stepper-CMeW3d6N.js +0 -65
- package/dist/wt-table-C5CLtnK5.js +0 -426
- package/dist/wt-table-actions-DgAfy-dd.js +0 -79
- package/dist/wt-table-column-select-BK5rozpI.js +0 -128
- package/dist/wt-tabs-Bn6rSg0s.js +0 -74
- package/dist/wt-time-input-DYiW0ijt.js +0 -42
- package/dist/wt-timepicker-CkjoLwXC.js +0 -118
- package/dist/wt-tree-CCvr4TTF.js +0 -2777
- package/dist/wt-tree-table-BWmGF3rE.js +0 -285
- package/dist/wt-type-extension-value-input-q5286OSO.js +0 -121
- package/dist/wt-vidstack-player-CTWna35Q.js +0 -9093
|
@@ -1,579 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, inject as E, ref as z, onMounted as I, resolveComponent as M, createBlock as O, openBlock as Q, mergeProps as R, withCtx as b, createVNode as k, unref as G, createTextVNode as V, toDisplayString as F } from "vue";
|
|
2
|
-
import { a as o, c as S, m, s as v, g as w, b as h, n as d, d as H, e as $ } from "./contacts-C-FnP7wP.js";
|
|
3
|
-
import "./index-BBLSS-t1.js";
|
|
4
|
-
import "lodash-es";
|
|
5
|
-
import U from "@aliasedDeps/api-services/axios";
|
|
6
|
-
import { B as W, ad as J } from "./install-DOSuNFtE.js";
|
|
7
|
-
const _ = (
|
|
8
|
-
// --- title end
|
|
9
|
-
((e = U) => ({
|
|
10
|
-
searchAgent: (s, t) => e.get("/call_center/agents", {
|
|
11
|
-
...t,
|
|
12
|
-
params: {
|
|
13
|
-
...s,
|
|
14
|
-
...t?.params
|
|
15
|
-
}
|
|
16
|
-
}),
|
|
17
|
-
createAgent: (s, t) => e.post(
|
|
18
|
-
"/call_center/agents",
|
|
19
|
-
s,
|
|
20
|
-
t
|
|
21
|
-
),
|
|
22
|
-
searchAgentCallStatistics: (s, t) => e.get("/call_center/agents/reports/call", {
|
|
23
|
-
...t,
|
|
24
|
-
params: {
|
|
25
|
-
...s,
|
|
26
|
-
...t?.params
|
|
27
|
-
}
|
|
28
|
-
}),
|
|
29
|
-
searchAgentStatusStatistic: (s, t) => e.get("/call_center/agents/reports/status", {
|
|
30
|
-
...t,
|
|
31
|
-
params: {
|
|
32
|
-
...s,
|
|
33
|
-
...t?.params
|
|
34
|
-
}
|
|
35
|
-
}),
|
|
36
|
-
searchAgentStatusStatisticItem: (s, t, c) => e.get(
|
|
37
|
-
`/call_center/agents/reports/status/${s}`,
|
|
38
|
-
{
|
|
39
|
-
...c,
|
|
40
|
-
params: {
|
|
41
|
-
...t,
|
|
42
|
-
...c?.params
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
),
|
|
46
|
-
searchAgentStateHistory: (s, t) => e.get("/call_center/agents/states/history", {
|
|
47
|
-
...t,
|
|
48
|
-
params: {
|
|
49
|
-
...s,
|
|
50
|
-
...t?.params
|
|
51
|
-
}
|
|
52
|
-
}),
|
|
53
|
-
searchPauseCauseForAgent: (s, t, c) => e.get(
|
|
54
|
-
`/call_center/agents/${s}/pause_causes`,
|
|
55
|
-
{
|
|
56
|
-
...c,
|
|
57
|
-
params: {
|
|
58
|
-
...t,
|
|
59
|
-
...c?.params
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
agentStateHistory: (s, t, c) => e.get(
|
|
64
|
-
`/call_center/agents/${s}/states/history`,
|
|
65
|
-
{
|
|
66
|
-
...c,
|
|
67
|
-
params: {
|
|
68
|
-
...t,
|
|
69
|
-
...c?.params
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
),
|
|
73
|
-
agentSetState: (s, t, c) => e.patch(
|
|
74
|
-
`/call_center/agents/${s}/states/waiting`,
|
|
75
|
-
t,
|
|
76
|
-
c
|
|
77
|
-
),
|
|
78
|
-
searchAgentInQueueStatistics: (s, t, c) => e.get(
|
|
79
|
-
`/call_center/agents/${s}/statistics/queues`,
|
|
80
|
-
{
|
|
81
|
-
...c,
|
|
82
|
-
params: {
|
|
83
|
-
...t,
|
|
84
|
-
...c?.params
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
),
|
|
88
|
-
agentTodayStatistics: (s, t, c) => e.get(
|
|
89
|
-
`/call_center/agents/${s}/statistics/today`,
|
|
90
|
-
{
|
|
91
|
-
...c,
|
|
92
|
-
params: {
|
|
93
|
-
...t,
|
|
94
|
-
...c?.params
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
deleteAgent: (s, t, c) => e.delete(`/call_center/agents/${s}`, {
|
|
99
|
-
...c,
|
|
100
|
-
params: {
|
|
101
|
-
...t,
|
|
102
|
-
...c?.params
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
105
|
-
readAgent: (s, t, c) => e.get(`/call_center/agents/${s}`, {
|
|
106
|
-
...c,
|
|
107
|
-
params: {
|
|
108
|
-
...t,
|
|
109
|
-
...c?.params
|
|
110
|
-
}
|
|
111
|
-
}),
|
|
112
|
-
patchAgent: (s, t, c) => e.patch(
|
|
113
|
-
`/call_center/agents/${s}`,
|
|
114
|
-
t,
|
|
115
|
-
c
|
|
116
|
-
),
|
|
117
|
-
updateAgent: (s, t, c) => e.put(
|
|
118
|
-
`/call_center/agents/${s}`,
|
|
119
|
-
t,
|
|
120
|
-
c
|
|
121
|
-
),
|
|
122
|
-
searchAgentInQueue: (s, t, c) => e.get(`/call_center/agents/${s}/queues`, {
|
|
123
|
-
...c,
|
|
124
|
-
params: {
|
|
125
|
-
...t,
|
|
126
|
-
...c?.params
|
|
127
|
-
}
|
|
128
|
-
}),
|
|
129
|
-
updateAgentStatus: (s, t, c) => e.patch(
|
|
130
|
-
`/call_center/agents/${s}/status`,
|
|
131
|
-
t,
|
|
132
|
-
c
|
|
133
|
-
),
|
|
134
|
-
searchAgentInTeam: (s, t, c) => e.get(`/call_center/agents/${s}/teams`, {
|
|
135
|
-
...c,
|
|
136
|
-
params: {
|
|
137
|
-
...t,
|
|
138
|
-
...c?.params
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
141
|
-
searchLookupUsersAgentNotExists: (s, t) => e.get("/call_center/lookups/agents/users", {
|
|
142
|
-
...t,
|
|
143
|
-
params: {
|
|
144
|
-
...s,
|
|
145
|
-
...t?.params
|
|
146
|
-
}
|
|
147
|
-
}),
|
|
148
|
-
searchUserStatus: (s, t) => e.get("/call_center/users", {
|
|
149
|
-
...t,
|
|
150
|
-
params: {
|
|
151
|
-
...s,
|
|
152
|
-
...t?.params
|
|
153
|
-
}
|
|
154
|
-
})
|
|
155
|
-
}))
|
|
156
|
-
), j = (
|
|
157
|
-
// --- title end
|
|
158
|
-
((e = U) => ({
|
|
159
|
-
messagesServiceBroadcastMessage: (g, u) => e.post(
|
|
160
|
-
"/chat/broadcast",
|
|
161
|
-
g,
|
|
162
|
-
u
|
|
163
|
-
),
|
|
164
|
-
catalogGetCustomers: (g, u) => e.get("/chat/customers", {
|
|
165
|
-
...u,
|
|
166
|
-
params: {
|
|
167
|
-
...g,
|
|
168
|
-
...u?.params
|
|
169
|
-
}
|
|
170
|
-
}),
|
|
171
|
-
catalogGetDialogs: (g, u) => e.get("/chat/dialogs", {
|
|
172
|
-
...u,
|
|
173
|
-
params: {
|
|
174
|
-
...g,
|
|
175
|
-
...u?.params
|
|
176
|
-
}
|
|
177
|
-
}),
|
|
178
|
-
catalogGetMembers: (g, u, p) => e.get(`/chat/dialogs/${g}/members`, {
|
|
179
|
-
...p,
|
|
180
|
-
params: {
|
|
181
|
-
...u,
|
|
182
|
-
...p?.params
|
|
183
|
-
}
|
|
184
|
-
}),
|
|
185
|
-
catalogGetHistory: (g, u, p) => e.get(`/chat/dialogs/${g}/messages`, {
|
|
186
|
-
...p,
|
|
187
|
-
params: {
|
|
188
|
-
...u,
|
|
189
|
-
...p?.params
|
|
190
|
-
}
|
|
191
|
-
}),
|
|
192
|
-
catalogGetHistory2: (g, u) => e.get("/chat/peer.type}/peer.id}/messages", {
|
|
193
|
-
...u,
|
|
194
|
-
params: {
|
|
195
|
-
...g,
|
|
196
|
-
...u?.params
|
|
197
|
-
}
|
|
198
|
-
})
|
|
199
|
-
}))
|
|
200
|
-
), K = (e) => {
|
|
201
|
-
if (!e) return "00:00:00";
|
|
202
|
-
let r = `${Math.floor(e / 3600)}`, a = `${Math.floor(e % 3600 / 60)}`, n = `${Math.floor(e % 3600 % 60)}`;
|
|
203
|
-
return r.length === 1 && (r = `0${r}`), a.length === 1 && (a = `0${a}`), n.length === 1 && (n = `0${n}`), `${r}:${a}:${n}`;
|
|
204
|
-
}, X = (e) => e > 3600 * 24 ? ">24:00:00" : K(e), C = async (e) => {
|
|
205
|
-
const r = (i) => i.map((l) => ({
|
|
206
|
-
...l,
|
|
207
|
-
statusDuration: X(l.statusDuration)
|
|
208
|
-
})), a = [
|
|
209
|
-
"page",
|
|
210
|
-
"size",
|
|
211
|
-
"q",
|
|
212
|
-
"sort",
|
|
213
|
-
"fields",
|
|
214
|
-
"id",
|
|
215
|
-
"allow_channels",
|
|
216
|
-
"team",
|
|
217
|
-
"region_id",
|
|
218
|
-
"auditor_id",
|
|
219
|
-
"skill",
|
|
220
|
-
"queue_id",
|
|
221
|
-
"is_supervisor",
|
|
222
|
-
"is_not_Supervisor",
|
|
223
|
-
"user_id",
|
|
224
|
-
"not_team_id",
|
|
225
|
-
"supervisor_id",
|
|
226
|
-
"not_skill_id",
|
|
227
|
-
"not_user_id"
|
|
228
|
-
], n = o(e, [
|
|
229
|
-
S(),
|
|
230
|
-
m(w()),
|
|
231
|
-
(i) => ({
|
|
232
|
-
...i,
|
|
233
|
-
q: i.search
|
|
234
|
-
}),
|
|
235
|
-
v(a)
|
|
236
|
-
]);
|
|
237
|
-
try {
|
|
238
|
-
const i = await _().searchAgent(n), { items: l, next: y } = o(i.data, [
|
|
239
|
-
h(),
|
|
240
|
-
m(w())
|
|
241
|
-
]);
|
|
242
|
-
return {
|
|
243
|
-
items: o(l, [
|
|
244
|
-
r
|
|
245
|
-
]),
|
|
246
|
-
next: y
|
|
247
|
-
};
|
|
248
|
-
} catch (i) {
|
|
249
|
-
throw o(i, [
|
|
250
|
-
d
|
|
251
|
-
]);
|
|
252
|
-
}
|
|
253
|
-
}, Y = async ({ itemId: e }) => {
|
|
254
|
-
const r = {
|
|
255
|
-
user: {},
|
|
256
|
-
team: {},
|
|
257
|
-
supervisor: [],
|
|
258
|
-
auditor: [],
|
|
259
|
-
region: {},
|
|
260
|
-
progressiveCount: 0,
|
|
261
|
-
chatCount: 0,
|
|
262
|
-
taskCount: 0,
|
|
263
|
-
isSupervisor: !1,
|
|
264
|
-
description: "",
|
|
265
|
-
greetingMedia: {}
|
|
266
|
-
};
|
|
267
|
-
try {
|
|
268
|
-
const a = await _().readAgent(e);
|
|
269
|
-
return o(a.data, [
|
|
270
|
-
h(),
|
|
271
|
-
m(r)
|
|
272
|
-
]);
|
|
273
|
-
} catch (a) {
|
|
274
|
-
throw o(a, [
|
|
275
|
-
d
|
|
276
|
-
]);
|
|
277
|
-
}
|
|
278
|
-
}, q = [
|
|
279
|
-
"user",
|
|
280
|
-
"team",
|
|
281
|
-
"supervisor",
|
|
282
|
-
"auditor",
|
|
283
|
-
"region",
|
|
284
|
-
"greetingMedia",
|
|
285
|
-
"progressiveCount",
|
|
286
|
-
"chatCount",
|
|
287
|
-
"taskCount",
|
|
288
|
-
"isSupervisor"
|
|
289
|
-
], Z = async ({ itemInstance: e }) => {
|
|
290
|
-
const r = o(e, [
|
|
291
|
-
v(q),
|
|
292
|
-
S()
|
|
293
|
-
]);
|
|
294
|
-
try {
|
|
295
|
-
const a = await _().createAgent(r);
|
|
296
|
-
return o(a.data, [
|
|
297
|
-
h()
|
|
298
|
-
]);
|
|
299
|
-
} catch (a) {
|
|
300
|
-
throw o(a, [
|
|
301
|
-
d
|
|
302
|
-
]);
|
|
303
|
-
}
|
|
304
|
-
}, x = async ({ changes: e, id: r }) => {
|
|
305
|
-
const a = o(e, [
|
|
306
|
-
v(q),
|
|
307
|
-
S()
|
|
308
|
-
]);
|
|
309
|
-
try {
|
|
310
|
-
const n = await _().patchAgent(r, a);
|
|
311
|
-
return o(n.data, [
|
|
312
|
-
h()
|
|
313
|
-
]);
|
|
314
|
-
} catch (n) {
|
|
315
|
-
throw o(n, [
|
|
316
|
-
d
|
|
317
|
-
]);
|
|
318
|
-
}
|
|
319
|
-
}, ee = async ({ itemInstance: e, itemId: r }) => {
|
|
320
|
-
const a = o(e, [
|
|
321
|
-
v(q),
|
|
322
|
-
S()
|
|
323
|
-
]);
|
|
324
|
-
try {
|
|
325
|
-
const n = await _().updateAgent(r, a);
|
|
326
|
-
return o(n.data, [
|
|
327
|
-
h()
|
|
328
|
-
]);
|
|
329
|
-
} catch (n) {
|
|
330
|
-
throw o(n, [
|
|
331
|
-
d
|
|
332
|
-
]);
|
|
333
|
-
}
|
|
334
|
-
}, te = async ({ id: e }) => {
|
|
335
|
-
try {
|
|
336
|
-
const r = await _().deleteAgent(e);
|
|
337
|
-
return o(r.data, []);
|
|
338
|
-
} catch (r) {
|
|
339
|
-
throw o(r, [
|
|
340
|
-
d
|
|
341
|
-
]);
|
|
342
|
-
}
|
|
343
|
-
}, se = (e) => C({
|
|
344
|
-
...e,
|
|
345
|
-
fields: e.fields || [
|
|
346
|
-
"id",
|
|
347
|
-
"name"
|
|
348
|
-
]
|
|
349
|
-
}), ae = async (e) => {
|
|
350
|
-
const {
|
|
351
|
-
parentId: r,
|
|
352
|
-
from: a,
|
|
353
|
-
to: n,
|
|
354
|
-
page: i,
|
|
355
|
-
size: l,
|
|
356
|
-
sort: y = "-joined_at"
|
|
357
|
-
} = o(e, [
|
|
358
|
-
m($()),
|
|
359
|
-
H("search")
|
|
360
|
-
]);
|
|
361
|
-
try {
|
|
362
|
-
const g = await _().searchAgentStateHistory({
|
|
363
|
-
page: i,
|
|
364
|
-
size: l,
|
|
365
|
-
from: a,
|
|
366
|
-
to: n,
|
|
367
|
-
parentId: r,
|
|
368
|
-
sort: y
|
|
369
|
-
}), { items: u, next: p } = o(g.data, [
|
|
370
|
-
h(),
|
|
371
|
-
m(w())
|
|
372
|
-
]);
|
|
373
|
-
return {
|
|
374
|
-
items: u,
|
|
375
|
-
next: p
|
|
376
|
-
};
|
|
377
|
-
} catch (g) {
|
|
378
|
-
throw o(g, [
|
|
379
|
-
d
|
|
380
|
-
]);
|
|
381
|
-
}
|
|
382
|
-
}, re = async (e) => {
|
|
383
|
-
const { page: r, size: a, search: n, sort: i, fields: l, id: y } = o(e, [
|
|
384
|
-
m($()),
|
|
385
|
-
H("search")
|
|
386
|
-
]);
|
|
387
|
-
try {
|
|
388
|
-
const g = await _().searchLookupUsersAgentNotExists({
|
|
389
|
-
page: r,
|
|
390
|
-
size: a,
|
|
391
|
-
q: n
|
|
392
|
-
}), { items: u, next: p } = o(g.data, [
|
|
393
|
-
h(),
|
|
394
|
-
m(w())
|
|
395
|
-
]);
|
|
396
|
-
return {
|
|
397
|
-
items: u,
|
|
398
|
-
next: p
|
|
399
|
-
};
|
|
400
|
-
} catch (g) {
|
|
401
|
-
throw o(g, [
|
|
402
|
-
d
|
|
403
|
-
]);
|
|
404
|
-
}
|
|
405
|
-
}, ne = async (e) => {
|
|
406
|
-
const r = [
|
|
407
|
-
"page",
|
|
408
|
-
"size",
|
|
409
|
-
"q",
|
|
410
|
-
"sort",
|
|
411
|
-
"fields",
|
|
412
|
-
"not_user_id"
|
|
413
|
-
], a = o(e, [
|
|
414
|
-
S(),
|
|
415
|
-
m($()),
|
|
416
|
-
H("search"),
|
|
417
|
-
(n) => ({
|
|
418
|
-
...n,
|
|
419
|
-
q: n.search
|
|
420
|
-
}),
|
|
421
|
-
v(r)
|
|
422
|
-
]);
|
|
423
|
-
try {
|
|
424
|
-
const n = await _().searchUserStatus(a), { items: i, next: l } = o(n.data, [
|
|
425
|
-
h(),
|
|
426
|
-
m(w())
|
|
427
|
-
]);
|
|
428
|
-
return {
|
|
429
|
-
items: i,
|
|
430
|
-
next: l
|
|
431
|
-
};
|
|
432
|
-
} catch (n) {
|
|
433
|
-
throw o(n, [
|
|
434
|
-
d
|
|
435
|
-
]);
|
|
436
|
-
}
|
|
437
|
-
}, ce = async (e) => C({
|
|
438
|
-
...e,
|
|
439
|
-
isSupervisor: !0
|
|
440
|
-
}), oe = async (e) => C({
|
|
441
|
-
...e,
|
|
442
|
-
isNotSupervisor: !0
|
|
443
|
-
}), ge = {
|
|
444
|
-
getList: C,
|
|
445
|
-
get: Y,
|
|
446
|
-
add: Z,
|
|
447
|
-
patch: x,
|
|
448
|
-
update: ee,
|
|
449
|
-
delete: te,
|
|
450
|
-
getLookup: se,
|
|
451
|
-
getAgentHistory: ae,
|
|
452
|
-
getRegularAgentsOptions: oe,
|
|
453
|
-
getAgentUsersOptions: re,
|
|
454
|
-
getSupervisorOptions: ce,
|
|
455
|
-
getUsersStatus: ne
|
|
456
|
-
}, ue = async (e) => {
|
|
457
|
-
const r = o(e, [
|
|
458
|
-
S()
|
|
459
|
-
]);
|
|
460
|
-
try {
|
|
461
|
-
const a = await j().messagesServiceBroadcastMessage(r);
|
|
462
|
-
return o(a.data, [
|
|
463
|
-
h()
|
|
464
|
-
]);
|
|
465
|
-
} catch (a) {
|
|
466
|
-
throw o(a, [
|
|
467
|
-
d
|
|
468
|
-
]);
|
|
469
|
-
}
|
|
470
|
-
}, ie = async ({ chatId: e, ...r }) => {
|
|
471
|
-
const a = o(r, [
|
|
472
|
-
m($()),
|
|
473
|
-
S()
|
|
474
|
-
]);
|
|
475
|
-
try {
|
|
476
|
-
const n = await j().catalogGetHistory(e, a), { messages: i, peers: l, next: y } = o(n.data, [
|
|
477
|
-
h(),
|
|
478
|
-
m(w())
|
|
479
|
-
]);
|
|
480
|
-
return {
|
|
481
|
-
messages: i,
|
|
482
|
-
peers: l,
|
|
483
|
-
next: y
|
|
484
|
-
};
|
|
485
|
-
} catch (n) {
|
|
486
|
-
throw o(n, [
|
|
487
|
-
d
|
|
488
|
-
]);
|
|
489
|
-
}
|
|
490
|
-
}, le = {
|
|
491
|
-
patch: ue,
|
|
492
|
-
getChatHistory: ie
|
|
493
|
-
}, ve = /* @__PURE__ */ B({
|
|
494
|
-
__name: "wt-send-message-popup",
|
|
495
|
-
props: {
|
|
496
|
-
chatItem: {},
|
|
497
|
-
userId: {}
|
|
498
|
-
},
|
|
499
|
-
emits: [
|
|
500
|
-
"close"
|
|
501
|
-
],
|
|
502
|
-
setup(e, { emit: r }) {
|
|
503
|
-
const a = e, n = r, i = E("$eventBus"), { t: l } = W(), g = z({
|
|
504
|
-
gateway: a.chatItem?.app || {},
|
|
505
|
-
provider: a.chatItem?.protocol || "",
|
|
506
|
-
message: "",
|
|
507
|
-
agentId: null
|
|
508
|
-
});
|
|
509
|
-
async function u(A) {
|
|
510
|
-
const { items: f } = await ge.getList({
|
|
511
|
-
...A,
|
|
512
|
-
userId: a.userId
|
|
513
|
-
});
|
|
514
|
-
g.value.agentId = f[0]?.id;
|
|
515
|
-
}
|
|
516
|
-
const p = async () => {
|
|
517
|
-
const A = await le.patch({
|
|
518
|
-
peers: [
|
|
519
|
-
{
|
|
520
|
-
via: g.value.gateway.id,
|
|
521
|
-
id: a.chatItem?.externalId,
|
|
522
|
-
type: g.value.provider
|
|
523
|
-
}
|
|
524
|
-
],
|
|
525
|
-
variables: {
|
|
526
|
-
agentId: g.value.agentId
|
|
527
|
-
},
|
|
528
|
-
message: {
|
|
529
|
-
text: g.value.message
|
|
530
|
-
}
|
|
531
|
-
});
|
|
532
|
-
A.failure && i.$emit("notification", {
|
|
533
|
-
type: "error",
|
|
534
|
-
text: A.failure[0].error.message
|
|
535
|
-
}), n("close");
|
|
536
|
-
}, D = (A) => {
|
|
537
|
-
g.value.message += A, document.querySelector("textarea").focus();
|
|
538
|
-
};
|
|
539
|
-
return I(async () => await u()), (A, f) => {
|
|
540
|
-
const P = M("wt-textarea"), L = M("wt-button"), N = M("wt-popup");
|
|
541
|
-
return Q(), O(N, R(A.$attrs, {
|
|
542
|
-
class: "wt-send-message-popup",
|
|
543
|
-
overflow: "",
|
|
544
|
-
onClose: f[1] || (f[1] = (T) => n("close"))
|
|
545
|
-
}), {
|
|
546
|
-
header: b(() => [
|
|
547
|
-
V(F(G(l)("reusable.sendMessage")), 1)
|
|
548
|
-
]),
|
|
549
|
-
main: b(() => [
|
|
550
|
-
k(P, {
|
|
551
|
-
"model-value": g.value.message,
|
|
552
|
-
"onUpdate:modelValue": f[0] || (f[0] = (T) => g.value.message = T),
|
|
553
|
-
placeholder: G(l)("objects.chat.draftPlaceholder"),
|
|
554
|
-
onEnter: p
|
|
555
|
-
}, null, 8, ["model-value", "placeholder"])
|
|
556
|
-
]),
|
|
557
|
-
actions: b(() => [
|
|
558
|
-
k(G(J), {
|
|
559
|
-
filled: "",
|
|
560
|
-
rounded: !1,
|
|
561
|
-
class: "wt-send-message-popup__emoji",
|
|
562
|
-
onInsertEmoji: D
|
|
563
|
-
}),
|
|
564
|
-
k(L, {
|
|
565
|
-
icon: "chat-send",
|
|
566
|
-
color: "secondary",
|
|
567
|
-
disabled: !g.value.message,
|
|
568
|
-
wide: "",
|
|
569
|
-
onClick: p
|
|
570
|
-
}, null, 8, ["disabled"])
|
|
571
|
-
]),
|
|
572
|
-
_: 1
|
|
573
|
-
}, 16);
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
export {
|
|
578
|
-
ve as default
|
|
579
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { defineComponent as n, mergeModels as m, useModel as u, computed as r, resolveComponent as s, createBlock as c, openBlock as f, normalizeStyle as v } from "vue";
|
|
2
|
-
const y = /* @__PURE__ */ n({
|
|
3
|
-
__name: "wt-slider",
|
|
4
|
-
props: /* @__PURE__ */ m({
|
|
5
|
-
disabled: { type: Boolean, default: !1 },
|
|
6
|
-
vertical: { type: Boolean, default: !1 },
|
|
7
|
-
min: { default: 0 },
|
|
8
|
-
max: { default: 100 },
|
|
9
|
-
step: { default: 1 },
|
|
10
|
-
height: { default: 100 },
|
|
11
|
-
width: { default: void 0 },
|
|
12
|
-
modelValue: {},
|
|
13
|
-
defaultValue: {},
|
|
14
|
-
name: {},
|
|
15
|
-
orientation: {},
|
|
16
|
-
range: { type: Boolean },
|
|
17
|
-
invalid: { type: Boolean },
|
|
18
|
-
tabindex: {},
|
|
19
|
-
ariaLabelledby: {},
|
|
20
|
-
ariaLabel: {},
|
|
21
|
-
formControl: {},
|
|
22
|
-
dt: {},
|
|
23
|
-
pt: {},
|
|
24
|
-
ptOptions: {},
|
|
25
|
-
unstyled: { type: Boolean }
|
|
26
|
-
}, {
|
|
27
|
-
modelValue: {},
|
|
28
|
-
modelModifiers: {}
|
|
29
|
-
}),
|
|
30
|
-
emits: ["update:modelValue"],
|
|
31
|
-
setup(e) {
|
|
32
|
-
const a = e, t = u(e, "modelValue"), o = r(
|
|
33
|
-
() => a.vertical ? "vertical" : "horizontal"
|
|
34
|
-
);
|
|
35
|
-
return (h, l) => {
|
|
36
|
-
const i = s("p-slider");
|
|
37
|
-
return f(), c(i, {
|
|
38
|
-
modelValue: t.value,
|
|
39
|
-
"onUpdate:modelValue": l[0] || (l[0] = (d) => t.value = d),
|
|
40
|
-
disabled: e.disabled,
|
|
41
|
-
max: e.max,
|
|
42
|
-
min: e.min,
|
|
43
|
-
step: e.step,
|
|
44
|
-
orientation: o.value,
|
|
45
|
-
style: v({
|
|
46
|
-
height: e.vertical ? `${e.height}px` : "",
|
|
47
|
-
width: !e.vertical && e.width ? `${e.width}px` : ""
|
|
48
|
-
})
|
|
49
|
-
}, null, 8, ["modelValue", "disabled", "max", "min", "step", "orientation", "style"]);
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
export {
|
|
54
|
-
y as _
|
|
55
|
-
};
|