@webitel/ui-sdk 26.8.68 → 26.8.70
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-BLoUCVC8.js +39334 -0
- package/dist/{components-BoODKBgN.js → components-DBVFjVK_.js} +3 -3
- package/dist/{genClient-C_5VsLM9.js → genClient-BqTmfnDx.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +2 -2
- package/dist/ui-sdk.umd.cjs +657 -732
- package/dist/{wt-chat-emoji-DMSSNCSp.js → wt-chat-emoji-CveWfqBS.js} +1 -1
- package/dist/{wt-display-chip-items-BaL81KbX.js → wt-display-chip-items-BmRyOpv7.js} +1 -1
- package/dist/{wt-send-message-popup-Cz3tLMAW.js → wt-send-message-popup-Ci3b-7uX.js} +2 -2
- package/dist/wt-table-actions-D7harVHK.js +63 -0
- package/dist/wt-tree-CfvNlw7N.js +2042 -0
- package/dist/{wt-type-extension-value-input-D7eK5MwZ.js → wt-type-extension-value-input-BGb_JCgp.js} +2 -2
- package/dist/{wt-vidstack-player-CPk5Y-1M.js → wt-vidstack-player-luoZqZ5-.js} +1 -1
- package/package.json +1 -1
- package/src/api/clients/index.js +5 -66
- package/src/components/wt-table-actions/wt-table-actions.vue +1 -1
- package/src/modules/AgentStatusSelect/api/agent-status.ts +44 -0
- package/src/modules/AgentStatusSelect/api/pause-cause.ts +54 -0
- package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -10
- package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +2 -6
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/index.d.ts +1 -33
- package/types/modules/AgentStatusSelect/api/agent-status.d.ts +4 -12
- package/types/modules/AgentStatusSelect/api/pause-cause.d.ts +7 -9
- package/dist/clients-CjmnMcur.js +0 -40042
- package/dist/side-channel-M3LABDql.js +0 -833
- package/dist/wt-table-actions-4-peSVkc.js +0 -63
- package/dist/wt-tree-DKSphRxr.js +0 -1216
- package/src/api/clients/agents/agentChats.js +0 -79
- package/src/api/clients/agents/agents.js +0 -300
- package/src/api/clients/buckets/buckets.js +0 -134
- package/src/api/clients/calendars/calendars.js +0 -239
- package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.js +0 -161
- package/src/api/clients/caseCloseReasons/caseCloseReasons.js +0 -165
- package/src/api/clients/casePriorities/casePriorities.js +0 -166
- package/src/api/clients/caseServiceCatalogs/serviceCatalogs.js +0 -231
- package/src/api/clients/caseServices/services.js +0 -221
- package/src/api/clients/caseSources/caseSources.ts +0 -2
- package/src/api/clients/caseStatusConditions/caseStatusConditions.js +0 -207
- package/src/api/clients/caseStatuses/caseStatuses.js +0 -152
- package/src/api/clients/catalog/catalog.js +0 -63
- package/src/api/clients/chatGateways/chatGateways.js +0 -338
- package/src/api/clients/chatGateways/defaults/defaultChatGateway.js +0 -18
- package/src/api/clients/chatGateways/defaults/webChatGateway.js +0 -72
- package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.js +0 -14
- package/src/api/clients/chatGateways/scripts/generateUri.js +0 -9
- package/src/api/clients/communications/communications.js +0 -172
- package/src/api/clients/configurations/configurations.js +0 -168
- package/src/api/clients/contactGroups/contactGroups.js +0 -221
- package/src/api/clients/flows/flow.js +0 -252
- package/src/api/clients/gateways/defaults/defaultGateway.js +0 -9
- package/src/api/clients/gateways/defaults/registerGateway.js +0 -12
- package/src/api/clients/gateways/defaults/trunkingGateway.js +0 -16
- package/src/api/clients/gateways/gateways.js +0 -221
- package/src/api/clients/labels/labels.js +0 -69
- package/src/api/clients/lists/blacklists.js +0 -142
- package/src/api/clients/media/media.js +0 -136
- package/src/api/clients/object/object.js +0 -138
- package/src/api/clients/queues/queues.js +0 -263
- package/src/api/clients/quickReplies/quickReplies.ts +0 -2
- package/src/api/clients/skills/skills.js +0 -134
- package/src/api/clients/slaConditions/slaConditions.js +0 -190
- package/src/api/clients/slas/slas.js +0 -148
- package/src/api/clients/teams/teams.js +0 -161
- package/src/api/clients/users/__tests__/users.spec.js +0 -282
- package/src/api/clients/users/users.js +0 -334
- package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +0 -38
- package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +0 -92
- package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +0 -156
- package/src/api/clients//321/201ontacts/contactChatMessagesHistory.js +0 -119
- package/src/api/clients//321/201ontacts/contacts.js +0 -449
- package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.js +0 -9
- package/src/api/clients//321/201ontacts/index.js +0 -5
- package/src/modules/AgentStatusSelect/api/agent-status.js +0 -30
- package/src/modules/AgentStatusSelect/api/pause-cause.js +0 -49
- package/types/api/clients/agents/agentChats.d.ts +0 -10
- package/types/api/clients/agents/agents.d.ts +0 -55
- package/types/api/clients/buckets/buckets.d.ts +0 -30
- package/types/api/clients/calendars/calendars.d.ts +0 -35
- package/types/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.d.ts +0 -30
- package/types/api/clients/caseCloseReasons/caseCloseReasons.d.ts +0 -36
- package/types/api/clients/casePriorities/casePriorities.d.ts +0 -30
- package/types/api/clients/caseServiceCatalogs/serviceCatalogs.d.ts +0 -30
- package/types/api/clients/caseServices/services.d.ts +0 -42
- package/types/api/clients/caseSources/caseSources.d.ts +0 -1
- package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +0 -43
- package/types/api/clients/caseStatuses/caseStatuses.d.ts +0 -30
- package/types/api/clients/catalog/catalog.d.ts +0 -13
- package/types/api/clients/chatGateways/chatGateways.d.ts +0 -35
- package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +0 -15
- package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +0 -64
- package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +0 -8
- package/types/api/clients/chatGateways/scripts/generateUri.d.ts +0 -2
- package/types/api/clients/communications/communications.d.ts +0 -35
- package/types/api/clients/configurations/configurations.d.ts +0 -35
- package/types/api/clients/contactGroups/contactGroups.d.ts +0 -47
- package/types/api/clients/flows/flow.d.ts +0 -35
- package/types/api/clients/gateways/defaults/defaultGateway.d.ts +0 -8
- package/types/api/clients/gateways/defaults/registerGateway.d.ts +0 -13
- package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +0 -11
- package/types/api/clients/gateways/gateways.d.ts +0 -35
- package/types/api/clients/labels/labels.d.ts +0 -13
- package/types/api/clients/lists/blacklists.d.ts +0 -30
- package/types/api/clients/media/media.d.ts +0 -24
- package/types/api/clients/object/object.d.ts +0 -13
- package/types/api/clients/queues/queues.d.ts +0 -40
- package/types/api/clients/quickReplies/quickReplies.d.ts +0 -1
- package/types/api/clients/skills/skills.d.ts +0 -30
- package/types/api/clients/slaConditions/slaConditions.d.ts +0 -36
- package/types/api/clients/slas/slas.d.ts +0 -30
- package/types/api/clients/teams/teams.d.ts +0 -30
- package/types/api/clients/users/__tests__/users.spec.d.ts +0 -1
- package/types/api/clients/users/users.d.ts +0 -46
- package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +0 -2
- package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +0 -29
- package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +0 -33
- package/types/api/clients//321/201ontacts/contactChatMessagesHistory.d.ts +0 -16
- package/types/api/clients//321/201ontacts/contacts.d.ts +0 -29
- package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +0 -8
- package/types/api/clients//321/201ontacts/index.d.ts +0 -4
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
getDefaultGetListResponse,
|
|
3
|
-
getDefaultGetParams,
|
|
4
|
-
getDefaultInstance,
|
|
5
|
-
} from '../../../defaults';
|
|
6
|
-
import applyTransform, {
|
|
7
|
-
camelToSnake,
|
|
8
|
-
generateUrl,
|
|
9
|
-
merge,
|
|
10
|
-
notify,
|
|
11
|
-
sanitize,
|
|
12
|
-
starToSearch,
|
|
13
|
-
} from '../../../transformers';
|
|
14
|
-
import type { ApiParams } from '../../_shared/types';
|
|
15
|
-
|
|
16
|
-
const instance = getDefaultInstance();
|
|
17
|
-
|
|
18
|
-
const getSysTypeRecordsList = async ({
|
|
19
|
-
path,
|
|
20
|
-
display,
|
|
21
|
-
primary,
|
|
22
|
-
...params
|
|
23
|
-
}: {
|
|
24
|
-
path: string;
|
|
25
|
-
display: string;
|
|
26
|
-
primary: string;
|
|
27
|
-
} & ApiParams) => {
|
|
28
|
-
const fieldsToSend = [
|
|
29
|
-
'page',
|
|
30
|
-
'size',
|
|
31
|
-
'q',
|
|
32
|
-
'sort',
|
|
33
|
-
'fields',
|
|
34
|
-
'id',
|
|
35
|
-
'ids',
|
|
36
|
-
];
|
|
37
|
-
|
|
38
|
-
const url = applyTransform(params, [
|
|
39
|
-
merge(getDefaultGetParams()),
|
|
40
|
-
starToSearch('search'),
|
|
41
|
-
(params: ApiParams) => ({
|
|
42
|
-
...params,
|
|
43
|
-
q: params.search,
|
|
44
|
-
}),
|
|
45
|
-
(params: ApiParams) => ({
|
|
46
|
-
...params,
|
|
47
|
-
ids: params.id /* https://webitel.atlassian.net/browse/WTEL-6788 */,
|
|
48
|
-
}),
|
|
49
|
-
sanitize(fieldsToSend),
|
|
50
|
-
camelToSnake(),
|
|
51
|
-
generateUrl(path),
|
|
52
|
-
]);
|
|
53
|
-
try {
|
|
54
|
-
const response = await instance.get(url);
|
|
55
|
-
const { data, items, next } = applyTransform(response.data, [
|
|
56
|
-
merge(getDefaultGetListResponse()),
|
|
57
|
-
]);
|
|
58
|
-
|
|
59
|
-
return {
|
|
60
|
-
// Some endpoints return data, some return items so we need to check for both of them
|
|
61
|
-
items:
|
|
62
|
-
applyTransform(data || items, [
|
|
63
|
-
// transformItemsForSelect({ display, primary }),
|
|
64
|
-
]) ?? [],
|
|
65
|
-
next,
|
|
66
|
-
};
|
|
67
|
-
} catch (err) {
|
|
68
|
-
throw applyTransform(err, [
|
|
69
|
-
notify,
|
|
70
|
-
]);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
const getSysTypeRecordsLookup = (
|
|
75
|
-
params: Parameters<typeof getSysTypeRecordsList>[0],
|
|
76
|
-
) =>
|
|
77
|
-
getSysTypeRecordsList({
|
|
78
|
-
...params,
|
|
79
|
-
fields: params.fields || [
|
|
80
|
-
'id',
|
|
81
|
-
'name',
|
|
82
|
-
],
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
const SysTypesApi = {
|
|
86
|
-
getList: getSysTypeRecordsList,
|
|
87
|
-
getLookup: getSysTypeRecordsLookup,
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
export { getSysTypeRecordsList, getSysTypeRecordsLookup };
|
|
91
|
-
|
|
92
|
-
export default SysTypesApi;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { ExtensionsApiFactory, type WebitelProtoDataStruct } from 'webitel-sdk';
|
|
2
|
-
import { getDefaultInstance, getDefaultOpenAPIConfig } from '../../../defaults';
|
|
3
|
-
import applyTransform, {
|
|
4
|
-
camelToSnake,
|
|
5
|
-
notify,
|
|
6
|
-
sanitize,
|
|
7
|
-
snakeToCamel,
|
|
8
|
-
} from '../../../transformers';
|
|
9
|
-
import type { ApiParams } from '../../_shared/types';
|
|
10
|
-
import { sortDynamicFields } from '../_shared/utils/sortDynamicFields';
|
|
11
|
-
|
|
12
|
-
const instance = getDefaultInstance();
|
|
13
|
-
const configuration = getDefaultOpenAPIConfig();
|
|
14
|
-
|
|
15
|
-
const typeExtensionsService = ExtensionsApiFactory(configuration, '', instance);
|
|
16
|
-
|
|
17
|
-
const fieldsToSend = [
|
|
18
|
-
'fields',
|
|
19
|
-
'repo',
|
|
20
|
-
'path',
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
const generateIdsFromRepos = (item: WebitelProtoDataStruct) => ({
|
|
24
|
-
...item,
|
|
25
|
-
id: item.repo,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const getTypeExtension = async ({ itemId: typeRepo }: { itemId: string }) => {
|
|
29
|
-
const createPositionGenerator = () => {
|
|
30
|
-
let position = 1;
|
|
31
|
-
return (item: ApiParams) => (item.readonly ? null : position++);
|
|
32
|
-
};
|
|
33
|
-
const getPosition = createPositionGenerator();
|
|
34
|
-
|
|
35
|
-
const itemResponseHandler = (item: ApiParams) => ({
|
|
36
|
-
...item,
|
|
37
|
-
fields: item.fields.map((field: ApiParams) => ({
|
|
38
|
-
...field,
|
|
39
|
-
position: getPosition(field),
|
|
40
|
-
})),
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
try {
|
|
44
|
-
const response = await typeExtensionsService.locateType(typeRepo);
|
|
45
|
-
|
|
46
|
-
return applyTransform(response.data, [
|
|
47
|
-
snakeToCamel(),
|
|
48
|
-
generateIdsFromRepos,
|
|
49
|
-
itemResponseHandler,
|
|
50
|
-
]);
|
|
51
|
-
} catch {
|
|
52
|
-
return {
|
|
53
|
-
id: typeRepo,
|
|
54
|
-
fields: [],
|
|
55
|
-
isNew: true,
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const addTypeExtension = async ({
|
|
61
|
-
itemInstance,
|
|
62
|
-
itemId: typeRepo,
|
|
63
|
-
}: {
|
|
64
|
-
itemInstance: ApiParams;
|
|
65
|
-
itemId: string;
|
|
66
|
-
}) => {
|
|
67
|
-
const item = applyTransform(itemInstance, [
|
|
68
|
-
sortDynamicFields,
|
|
69
|
-
camelToSnake(),
|
|
70
|
-
sanitize(fieldsToSend),
|
|
71
|
-
]);
|
|
72
|
-
try {
|
|
73
|
-
const response = await typeExtensionsService.createType(typeRepo, item);
|
|
74
|
-
return applyTransform(response.data, [
|
|
75
|
-
snakeToCamel(),
|
|
76
|
-
generateIdsFromRepos,
|
|
77
|
-
]);
|
|
78
|
-
} catch (err) {
|
|
79
|
-
throw applyTransform(err, [
|
|
80
|
-
notify,
|
|
81
|
-
]);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
const deleteTypeExtension = async ({
|
|
86
|
-
itemId: typeRepo,
|
|
87
|
-
}: {
|
|
88
|
-
itemId: string;
|
|
89
|
-
}) => {
|
|
90
|
-
try {
|
|
91
|
-
await typeExtensionsService.deleteType([
|
|
92
|
-
typeRepo,
|
|
93
|
-
]);
|
|
94
|
-
} catch (err) {
|
|
95
|
-
throw applyTransform(err, [
|
|
96
|
-
notify,
|
|
97
|
-
]);
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
const updateTypeExtension = async ({
|
|
102
|
-
itemInstance,
|
|
103
|
-
itemId: typeRepo,
|
|
104
|
-
}: {
|
|
105
|
-
itemInstance: ApiParams;
|
|
106
|
-
itemId: string;
|
|
107
|
-
}) => {
|
|
108
|
-
if (!itemInstance.fields.length && itemInstance.isNew) {
|
|
109
|
-
return itemInstance;
|
|
110
|
-
}
|
|
111
|
-
if (itemInstance.isNew) {
|
|
112
|
-
return addTypeExtension({
|
|
113
|
-
itemInstance,
|
|
114
|
-
itemId: typeRepo,
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
if (!itemInstance.fields.length && !itemInstance.isNew) {
|
|
119
|
-
return deleteTypeExtension({
|
|
120
|
-
itemId: typeRepo,
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
const item = applyTransform(itemInstance, [
|
|
125
|
-
sortDynamicFields,
|
|
126
|
-
camelToSnake(),
|
|
127
|
-
sanitize(fieldsToSend),
|
|
128
|
-
]);
|
|
129
|
-
try {
|
|
130
|
-
const response = await typeExtensionsService.updateType(typeRepo, item);
|
|
131
|
-
return applyTransform(response.data, [
|
|
132
|
-
snakeToCamel(),
|
|
133
|
-
generateIdsFromRepos,
|
|
134
|
-
]);
|
|
135
|
-
} catch (err) {
|
|
136
|
-
throw applyTransform(err, [
|
|
137
|
-
notify,
|
|
138
|
-
]);
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
const WtTypeExtensionApi = {
|
|
143
|
-
getList: getTypeExtension,
|
|
144
|
-
add: addTypeExtension,
|
|
145
|
-
update: updateTypeExtension,
|
|
146
|
-
delete: deleteTypeExtension,
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export {
|
|
150
|
-
addTypeExtension,
|
|
151
|
-
deleteTypeExtension,
|
|
152
|
-
getTypeExtension,
|
|
153
|
-
updateTypeExtension,
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export default WtTypeExtensionApi;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { ContactsChatCatalogApiFactory } from 'webitel-sdk';
|
|
2
|
-
|
|
3
|
-
import i18n from '../../../locale/i18n.js';
|
|
4
|
-
import {
|
|
5
|
-
getDefaultGetListResponse,
|
|
6
|
-
getDefaultInstance,
|
|
7
|
-
getDefaultOpenAPIConfig,
|
|
8
|
-
} from '../../defaults/index.js';
|
|
9
|
-
import applyTransform, {
|
|
10
|
-
merge,
|
|
11
|
-
notify,
|
|
12
|
-
snakeToCamel,
|
|
13
|
-
} from '../../transformers/index.js';
|
|
14
|
-
|
|
15
|
-
const { t } = i18n.global;
|
|
16
|
-
|
|
17
|
-
const instance = getDefaultInstance();
|
|
18
|
-
const configuration = getDefaultOpenAPIConfig();
|
|
19
|
-
|
|
20
|
-
const contactChatService = new ContactsChatCatalogApiFactory(
|
|
21
|
-
configuration,
|
|
22
|
-
'',
|
|
23
|
-
instance,
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
const getChat = async ({ contactId, chatId }) => {
|
|
27
|
-
const mergeChatMessagesData = ({ messages, peers }) => {
|
|
28
|
-
if (!messages) return [];
|
|
29
|
-
return messages.map(({ from, ...message }) => {
|
|
30
|
-
return {
|
|
31
|
-
...message,
|
|
32
|
-
peer: peers[from.id - 1],
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
try {
|
|
38
|
-
const response = await contactChatService.getContactChatHistory(
|
|
39
|
-
contactId,
|
|
40
|
-
chatId,
|
|
41
|
-
);
|
|
42
|
-
const { messages, peers } = applyTransform(response.data, [
|
|
43
|
-
snakeToCamel(),
|
|
44
|
-
]);
|
|
45
|
-
return {
|
|
46
|
-
items: applyTransform(
|
|
47
|
-
{
|
|
48
|
-
messages,
|
|
49
|
-
peers,
|
|
50
|
-
},
|
|
51
|
-
[
|
|
52
|
-
mergeChatMessagesData,
|
|
53
|
-
],
|
|
54
|
-
),
|
|
55
|
-
peers,
|
|
56
|
-
};
|
|
57
|
-
} catch (err) {
|
|
58
|
-
throw applyTransform(err, [
|
|
59
|
-
notify,
|
|
60
|
-
]);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
// all messages from all contacts chats
|
|
65
|
-
const getAllMessages = async (params) => {
|
|
66
|
-
const mergeMessagesData = ({ messages, peers, chats }) => {
|
|
67
|
-
if (!messages) return [];
|
|
68
|
-
return messages.map(({ from, chat, ...message }) => {
|
|
69
|
-
return {
|
|
70
|
-
...message,
|
|
71
|
-
peer: peers[from.id - 1],
|
|
72
|
-
chat: chats[chat.id - 1],
|
|
73
|
-
};
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const { contactId, page, size } = params;
|
|
78
|
-
|
|
79
|
-
try {
|
|
80
|
-
const response = await contactChatService.getContactChatHistory2(
|
|
81
|
-
contactId,
|
|
82
|
-
undefined,
|
|
83
|
-
undefined,
|
|
84
|
-
size,
|
|
85
|
-
`${page || 1}`,
|
|
86
|
-
);
|
|
87
|
-
const { messages, peers, chats, next } = applyTransform(response.data, [
|
|
88
|
-
snakeToCamel(),
|
|
89
|
-
merge(getDefaultGetListResponse()),
|
|
90
|
-
]);
|
|
91
|
-
return {
|
|
92
|
-
items: applyTransform(
|
|
93
|
-
{
|
|
94
|
-
messages,
|
|
95
|
-
peers,
|
|
96
|
-
chats,
|
|
97
|
-
},
|
|
98
|
-
[
|
|
99
|
-
mergeMessagesData,
|
|
100
|
-
],
|
|
101
|
-
),
|
|
102
|
-
next,
|
|
103
|
-
};
|
|
104
|
-
} catch (err) {
|
|
105
|
-
throw applyTransform(err, [
|
|
106
|
-
notify(({ callback }) =>
|
|
107
|
-
callback({
|
|
108
|
-
type: 'error',
|
|
109
|
-
text: t('errorNotifications.chatHistoryApi'),
|
|
110
|
-
}),
|
|
111
|
-
),
|
|
112
|
-
]);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export default {
|
|
117
|
-
getChat,
|
|
118
|
-
getAllMessages,
|
|
119
|
-
};
|