@dscord/daemon 0.1.60 → 0.1.62
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/chat-bridge.js +2181 -2156
- package/dist/index.js +9958 -9722
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_0x1b9f41: 0x194
|
|
11
|
-
}, _0x495c15 = _0x2672, _0x1d68f1 = _0x16ad99();
|
|
1
|
+
const _0x3cf5af = _0x7e16;
|
|
2
|
+
(function (_0x564876, _0x24a886) {
|
|
3
|
+
const _0x58bfd7 = {
|
|
4
|
+
_0x40633f: 0x23b,
|
|
5
|
+
_0x37f6f8: 0x1e5,
|
|
6
|
+
_0x5c3e53: 0x1c7,
|
|
7
|
+
_0x145c95: 0x249,
|
|
8
|
+
_0x4b56f7: 0x115
|
|
9
|
+
}, _0x1adfbf = _0x7e16, _0x2e829e = _0x564876();
|
|
12
10
|
while (!![]) {
|
|
13
11
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
12
|
+
const _0x34c839 = parseInt(_0x1adfbf(_0x58bfd7._0x40633f)) / 0x1 + -parseInt(_0x1adfbf(_0x58bfd7._0x37f6f8)) / 0x2 * (-parseInt(_0x1adfbf(0x18a)) / 0x3) + parseInt(_0x1adfbf(0x203)) / 0x4 + -parseInt(_0x1adfbf(_0x58bfd7._0x5c3e53)) / 0x5 + -parseInt(_0x1adfbf(_0x58bfd7._0x145c95)) / 0x6 + parseInt(_0x1adfbf(_0x58bfd7._0x4b56f7)) / 0x7 * (-parseInt(_0x1adfbf(0x141)) / 0x8) + -parseInt(_0x1adfbf(0x164)) / 0x9;
|
|
13
|
+
if (_0x34c839 === _0x24a886)
|
|
16
14
|
break;
|
|
17
15
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
16
|
+
_0x2e829e['push'](_0x2e829e['shift']());
|
|
17
|
+
} catch (_0x122b3e) {
|
|
18
|
+
_0x2e829e['push'](_0x2e829e['shift']());
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
|
-
}(
|
|
21
|
+
}(_0x42c5, 0xd7d76));
|
|
24
22
|
import { pathToFileURL } from 'node:url';
|
|
25
23
|
import {
|
|
26
24
|
mkdir,
|
|
@@ -30,2345 +28,2372 @@ import {
|
|
|
30
28
|
writeFile
|
|
31
29
|
} from 'node:fs/promises';
|
|
32
30
|
import { homedir } from 'node:os';
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
return MIME_BY_EXTENSION[_0x51d1ec[_0x3a0844(_0x382c44._0x29d5a3)](_0x40ba2e)[_0x3a0844(_0x382c44._0xa0371d)]()] ?? 'application/octet-stream';
|
|
55
|
-
}
|
|
56
|
-
function safeFilename(_0xf77313) {
|
|
57
|
-
const _0x44903a = _0x2858e8;
|
|
58
|
-
return _0xf77313[_0x44903a(0x1ec)](/[\\/]/g, '-');
|
|
59
|
-
}
|
|
60
|
-
function extensionFor(_0x49d460) {
|
|
61
|
-
const _0x86bf4d = _0x2858e8, _0x2c3f4d = Object[_0x86bf4d(0x17b)](MIME_BY_EXTENSION)[_0x86bf4d(0x10d)](([, _0x333177]) => _0x333177 === _0x49d460);
|
|
62
|
-
return _0x2c3f4d?.[0x0] ?? '.bin';
|
|
63
|
-
}
|
|
64
|
-
async function prepareUploadFile(_0x3a393b, _0x33b61f = {}) {
|
|
65
|
-
const _0x5f31f8 = {
|
|
66
|
-
_0x3f5e0a: 0x6c,
|
|
67
|
-
_0x530469: 0x125,
|
|
68
|
-
_0x4ca9e4: 0x1e8
|
|
69
|
-
}, _0x167547 = _0x2858e8;
|
|
70
|
-
if (!_0x51d1ec[_0x167547(0x165)](_0x3a393b))
|
|
71
|
-
throw new Error(_0x167547(_0x5f31f8._0x3f5e0a));
|
|
72
|
-
const _0x4b530d = await stat(_0x3a393b)[_0x167547(0xc9)](() => null);
|
|
73
|
-
if (!_0x4b530d || !_0x4b530d[_0x167547(0xbc)]())
|
|
74
|
-
throw new Error('File\x20not\x20found:\x20' + _0x3a393b);
|
|
75
|
-
const _0x9a22bd = _0x33b61f[_0x167547(0x1af)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
76
|
-
if (_0x4b530d[_0x167547(0x125)] > _0x9a22bd)
|
|
77
|
-
throw new Error(_0x167547(0x123) + _0x4b530d[_0x167547(_0x5f31f8._0x530469)]);
|
|
78
|
-
const _0x42b152 = await readFile(_0x3a393b), _0x2f89ac = _0x51d1ec[_0x167547(_0x5f31f8._0x4ca9e4)](_0x3a393b);
|
|
79
|
-
return {
|
|
80
|
-
'contentBase64': _0x42b152['toString'](_0x167547(0x1a0)),
|
|
81
|
-
'contentType': guessContentType(_0x2f89ac),
|
|
82
|
-
'filename': _0x2f89ac,
|
|
83
|
-
'sizeBytes': _0x4b530d[_0x167547(0x125)]
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function createAttachmentCache(_0x4b0873 = {}) {
|
|
87
|
-
const _0x1ed4cc = { _0x3b15be: 0x6f }, _0x5c075e = {
|
|
88
|
-
_0x583b5f: 0x196,
|
|
89
|
-
_0x1e9060: 0x129
|
|
90
|
-
}, _0x24b36b = { _0x1cb60b: 0x6f }, _0x1c3195 = _0x2858e8, _0x3fc6cd = _0x4b0873[_0x1c3195(0x19e)] ?? _0x51d1ec[_0x1c3195(_0x1ed4cc._0x3b15be)](homedir(), _0x1c3195(0xf7), _0x1c3195(0x120));
|
|
91
|
-
return {
|
|
92
|
-
'cacheDir': _0x3fc6cd,
|
|
93
|
-
async 'findCachedPath'(_0x8b5e1c) {
|
|
94
|
-
const _0x4ba2ec = _0x1c3195;
|
|
95
|
-
await mkdir(_0x3fc6cd, { 'recursive': !![] });
|
|
96
|
-
const _0x53c147 = await readdir(_0x3fc6cd), _0x4e2a2a = _0x53c147[_0x4ba2ec(0x10d)](_0x13eab0 => _0x13eab0[_0x4ba2ec(0x17e)](_0x8b5e1c + '-') || _0x13eab0[_0x4ba2ec(0x17e)](_0x8b5e1c));
|
|
97
|
-
return _0x4e2a2a ? _0x51d1ec[_0x4ba2ec(_0x24b36b._0x1cb60b)](_0x3fc6cd, _0x4e2a2a) : null;
|
|
98
|
-
},
|
|
99
|
-
async 'save'(_0x573119) {
|
|
100
|
-
const _0x295778 = _0x1c3195;
|
|
101
|
-
await mkdir(_0x3fc6cd, { 'recursive': !![] });
|
|
102
|
-
const _0x282dd0 = _0x573119['originalFilename']?.[_0x295778(0x126)]() ? safeFilename(_0x573119['originalFilename']) : '' + _0x573119[_0x295778(0x129)] + extensionFor(_0x573119[_0x295778(_0x5c075e._0x583b5f)]), _0x53f7c7 = _0x51d1ec[_0x295778(0x6f)](_0x3fc6cd, _0x573119[_0x295778(_0x5c075e._0x1e9060)] + '-' + _0x282dd0);
|
|
103
|
-
return await writeFile(_0x53f7c7, _0x573119[_0x295778(0x157)]), _0x53f7c7;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
import {
|
|
108
|
-
createHash,
|
|
109
|
-
randomUUID
|
|
110
|
-
} from 'node:crypto';
|
|
111
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x2858e8(0xc1);
|
|
112
|
-
function ensureSegment(_0x319551) {
|
|
113
|
-
const _0x2a08c8 = _0x2858e8, _0x29a89b = _0x319551[_0x2a08c8(0x126)]();
|
|
114
|
-
if (!_0x29a89b || _0x29a89b['includes'](':'))
|
|
115
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
116
|
-
return _0x29a89b;
|
|
117
|
-
}
|
|
118
|
-
function parseThreadParts(_0x2d752b) {
|
|
119
|
-
const _0x522959 = { _0x3aaad5: 0xa9 }, _0x52b642 = _0x2858e8, _0x3a7803 = _0x2d752b['split'](':');
|
|
120
|
-
if (_0x3a7803[_0x52b642(0xa9)] < 0x1 || _0x3a7803[_0x52b642(_0x522959._0x3aaad5)] > 0x2)
|
|
121
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
122
|
-
return {
|
|
123
|
-
'channelName': ensureSegment(_0x3a7803[0x0] ?? ''),
|
|
124
|
-
'threadShortId': _0x3a7803[0x1] ? ensureSegment(_0x3a7803[0x1]) : null
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function parseTarget(_0x143683) {
|
|
128
|
-
const _0x4c44b2 = {
|
|
129
|
-
_0x133d93: 0x126,
|
|
130
|
-
_0x15cd8d: 0x77,
|
|
131
|
-
_0x752e04: 0xd4,
|
|
132
|
-
_0x3133bf: 0x13d,
|
|
133
|
-
_0x36f889: 0x17e,
|
|
134
|
-
_0x3761cf: 0x1a9,
|
|
135
|
-
_0x25a024: 0xce
|
|
136
|
-
}, _0x322a71 = _0x2858e8, _0x3701da = _0x143683[_0x322a71(_0x4c44b2._0x133d93)]();
|
|
137
|
-
if (!_0x3701da)
|
|
138
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
139
|
-
if (_0x3701da[_0x322a71(0x17e)]('#')) {
|
|
140
|
-
const _0x284c1f = parseThreadParts(_0x3701da[_0x322a71(0x1a9)](0x1)), _0x1746a2 = '#' + _0x284c1f[_0x322a71(_0x4c44b2._0x15cd8d)];
|
|
141
|
-
if (!_0x284c1f['threadShortId'])
|
|
142
|
-
return {
|
|
143
|
-
'channelName': _0x284c1f[_0x322a71(0x77)],
|
|
144
|
-
'channelTarget': _0x1746a2,
|
|
145
|
-
'kind': _0x322a71(0x11f),
|
|
146
|
-
'target': _0x1746a2
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
'channelName': _0x284c1f[_0x322a71(0x77)],
|
|
150
|
-
'channelTarget': _0x1746a2,
|
|
151
|
-
'kind': _0x322a71(_0x4c44b2._0x752e04),
|
|
152
|
-
'target': _0x1746a2 + ':' + _0x284c1f[_0x322a71(_0x4c44b2._0x3133bf)],
|
|
153
|
-
'threadShortId': _0x284c1f['threadShortId']
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if (_0x3701da[_0x322a71(_0x4c44b2._0x36f889)]('dm:')) {
|
|
157
|
-
const _0x11d741 = parseThreadParts(_0x3701da[_0x322a71(_0x4c44b2._0x3761cf)](0x3));
|
|
158
|
-
if (!_0x11d741[_0x322a71(0x77)][_0x322a71(0x17e)](_0x322a71(_0x4c44b2._0x25a024)))
|
|
159
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
-
const _0x8b35a = 'dm:' + _0x11d741[_0x322a71(0x77)];
|
|
161
|
-
if (!_0x11d741['threadShortId'])
|
|
162
|
-
return {
|
|
163
|
-
'channelName': _0x11d741[_0x322a71(_0x4c44b2._0x15cd8d)],
|
|
164
|
-
'channelTarget': _0x8b35a,
|
|
165
|
-
'kind': 'channel',
|
|
166
|
-
'target': _0x8b35a
|
|
167
|
-
};
|
|
168
|
-
return {
|
|
169
|
-
'channelName': _0x11d741[_0x322a71(_0x4c44b2._0x15cd8d)],
|
|
170
|
-
'channelTarget': _0x8b35a,
|
|
171
|
-
'kind': _0x322a71(_0x4c44b2._0x752e04),
|
|
172
|
-
'target': _0x8b35a + ':' + _0x11d741[_0x322a71(0x13d)],
|
|
173
|
-
'threadShortId': _0x11d741[_0x322a71(0x13d)]
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
177
|
-
}
|
|
178
|
-
function asErrorMessage(_0x197d84, _0x21c126) {
|
|
179
|
-
const _0x175f4e = { _0x488259: 0x126 }, _0x51573d = _0x2858e8;
|
|
180
|
-
if (typeof _0x197d84 === 'string' && _0x197d84[_0x51573d(_0x175f4e._0x488259)]())
|
|
181
|
-
return _0x197d84;
|
|
182
|
-
return _0x21c126;
|
|
183
|
-
}
|
|
184
|
-
function asRecord(_0x35fcd4) {
|
|
185
|
-
const _0x2ad37f = _0x2858e8;
|
|
186
|
-
return typeof _0x35fcd4 === _0x2ad37f(0xca) && _0x35fcd4 !== null ? _0x35fcd4 : {};
|
|
187
|
-
}
|
|
188
|
-
function stableStringify(_0x4537ae) {
|
|
189
|
-
const _0x547cee = {
|
|
190
|
-
_0x5c017d: 0x158,
|
|
191
|
-
_0x4c8759: 0x14c
|
|
192
|
-
}, _0x21d175 = _0x2858e8;
|
|
193
|
-
if (_0x4537ae === null || typeof _0x4537ae !== 'object')
|
|
194
|
-
return JSON[_0x21d175(0x9c)](_0x4537ae);
|
|
195
|
-
if (Array[_0x21d175(0xae)](_0x4537ae))
|
|
196
|
-
return '[' + _0x4537ae[_0x21d175(_0x547cee._0x5c017d)](_0x6eb7f4 => stableStringify(_0x6eb7f4))['join'](',') + ']';
|
|
197
|
-
const _0x487f78 = Object[_0x21d175(0x17b)](_0x4537ae)[_0x21d175(_0x547cee._0x4c8759)](([, _0x1bd228]) => _0x1bd228 !== void 0x0)['sort'](([_0xc520fc], [_0x19d4a9]) => _0xc520fc[_0x21d175(0x11c)](_0x19d4a9))[_0x21d175(0x158)](([_0x3c818b, _0x1481ae]) => JSON[_0x21d175(0x9c)](_0x3c818b) + ':' + stableStringify(_0x1481ae));
|
|
198
|
-
return '{' + _0x487f78['join'](',') + '}';
|
|
199
|
-
}
|
|
200
|
-
function createHeaders(_0x1f8ab2) {
|
|
201
|
-
const _0x2ebd5a = _0x2858e8;
|
|
202
|
-
return {
|
|
203
|
-
'Content-Type': _0x2ebd5a(0xd7),
|
|
204
|
-
'x-daemon-api-key': _0x1f8ab2
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
function toHttpBaseUrl(_0x3ab5ce) {
|
|
208
|
-
const _0x3b2d6d = {
|
|
209
|
-
_0xa547fc: 0x17d,
|
|
210
|
-
_0x1b3732: 0x13c,
|
|
211
|
-
_0x51bc5f: 0x1b7
|
|
212
|
-
}, _0x42b1f0 = _0x2858e8, _0x3b37cf = new URL(_0x3ab5ce);
|
|
213
|
-
if (_0x3b37cf['protocol'] === _0x42b1f0(_0x3b2d6d._0xa547fc))
|
|
214
|
-
_0x3b37cf[_0x42b1f0(_0x3b2d6d._0x1b3732)] = 'http:';
|
|
215
|
-
else
|
|
216
|
-
_0x3b37cf['protocol'] === _0x42b1f0(0x1c5) && (_0x3b37cf[_0x42b1f0(0x13c)] = 'https:');
|
|
217
|
-
return _0x3b37cf[_0x42b1f0(_0x3b2d6d._0x51bc5f)]()[_0x42b1f0(0x1ec)](/\/$/, '');
|
|
218
|
-
}
|
|
219
|
-
function isMentionBoundary(_0x3dff40) {
|
|
220
|
-
return !_0x3dff40 || /\s|[([{'",。!?、:;]/['test'](_0x3dff40);
|
|
221
|
-
}
|
|
222
|
-
function isMentionTerminal(_0x2b75c5) {
|
|
223
|
-
return !_0x2b75c5 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x2b75c5);
|
|
224
|
-
}
|
|
225
|
-
function buildMatchableEntries(_0x38c7c5) {
|
|
226
|
-
const _0xbb846b = {
|
|
227
|
-
_0x39333a: 0x81,
|
|
228
|
-
_0x5619b8: 0xe9,
|
|
229
|
-
_0x4e54ed: 0x1e1
|
|
230
|
-
}, _0x453f06 = _0x2858e8, _0x214728 = [];
|
|
231
|
-
for (const _0x43911f of [
|
|
232
|
-
..._0x38c7c5[_0x453f06(0x96)],
|
|
233
|
-
..._0x38c7c5['humans']
|
|
234
|
-
]) {
|
|
235
|
-
_0x214728[_0x453f06(0xe9)]({
|
|
236
|
-
'matchName': _0x43911f[_0x453f06(0x81)],
|
|
237
|
-
'matchNameLower': _0x43911f[_0x453f06(_0xbb846b._0x39333a)]['toLocaleLowerCase'](),
|
|
238
|
-
'participantId': _0x43911f['id']
|
|
239
|
-
}), _0x43911f['id'] !== _0x43911f[_0x453f06(_0xbb846b._0x39333a)] && _0x214728[_0x453f06(_0xbb846b._0x5619b8)]({
|
|
240
|
-
'matchName': _0x43911f['id'],
|
|
241
|
-
'matchNameLower': _0x43911f['id'][_0x453f06(_0xbb846b._0x4e54ed)](),
|
|
242
|
-
'participantId': _0x43911f['id']
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
return _0x214728;
|
|
246
|
-
}
|
|
247
|
-
function extractMentionedParticipantIds(_0x5c0a2c, _0xb46c7d) {
|
|
248
|
-
const _0x18fccc = {
|
|
249
|
-
_0x50f5a5: 0x83,
|
|
250
|
-
_0x5cab7c: 0xa9,
|
|
251
|
-
_0x2f3cbc: 0x1e9
|
|
252
|
-
}, _0x8c66b6 = { _0xf523df: 0xa9 }, _0x41b481 = _0x2858e8, _0xd6d3fc = buildMatchableEntries(_0xb46c7d)[_0x41b481(_0x18fccc._0x50f5a5)]((_0x120997, _0x37450d) => _0x37450d[_0x41b481(0xa6)][_0x41b481(0xa9)] - _0x120997[_0x41b481(0xa6)][_0x41b481(0xa9)]), _0xd40ba5 = [], _0x1b1a2a = new Set();
|
|
253
|
-
for (let _0x4fbc43 = 0x0; _0x4fbc43 < _0x5c0a2c[_0x41b481(_0x18fccc._0x5cab7c)]; _0x4fbc43 += 0x1) {
|
|
254
|
-
if (_0x5c0a2c[_0x4fbc43] !== '@' || !isMentionBoundary(_0x5c0a2c[_0x4fbc43 - 0x1]))
|
|
255
|
-
continue;
|
|
256
|
-
const _0x4f1b0e = _0x5c0a2c['slice'](_0x4fbc43 + 0x1), _0x151dfe = _0x4f1b0e[_0x41b481(0x1e1)](), _0x571a0d = _0xd6d3fc['find'](_0x413681 => {
|
|
257
|
-
const _0x47bf14 = _0x41b481;
|
|
258
|
-
if (!_0x151dfe[_0x47bf14(0x17e)](_0x413681['matchNameLower']))
|
|
259
|
-
return ![];
|
|
260
|
-
return isMentionTerminal(_0x4f1b0e[_0x413681['matchName'][_0x47bf14(_0x8c66b6._0xf523df)]]);
|
|
261
|
-
});
|
|
262
|
-
if (!_0x571a0d || _0x1b1a2a['has'](_0x571a0d[_0x41b481(0x1c3)]))
|
|
263
|
-
continue;
|
|
264
|
-
_0x1b1a2a[_0x41b481(_0x18fccc._0x2f3cbc)](_0x571a0d[_0x41b481(0x1c3)]), _0xd40ba5[_0x41b481(0xe9)](_0x571a0d[_0x41b481(0x1c3)]), _0x4fbc43 += _0x571a0d['matchName'][_0x41b481(0xa9)];
|
|
265
|
-
}
|
|
266
|
-
return _0xd40ba5;
|
|
267
|
-
}
|
|
268
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
269
|
-
function anySignal(..._0xb2de81) {
|
|
270
|
-
const _0x10abe1 = {
|
|
271
|
-
_0x59e4ef: 0x93,
|
|
272
|
-
_0x23513b: 0x149
|
|
273
|
-
}, _0x15669c = _0x2858e8, _0x1001bc = new AbortController();
|
|
274
|
-
for (const _0xaeb175 of _0xb2de81) {
|
|
275
|
-
if (_0xaeb175['aborted'])
|
|
276
|
-
return _0x1001bc['abort'](_0xaeb175[_0x15669c(_0x10abe1._0x59e4ef)]), _0x1001bc[_0x15669c(0x13e)];
|
|
277
|
-
_0xaeb175['addEventListener'](_0x15669c(_0x10abe1._0x23513b), () => _0x1001bc['abort'](_0xaeb175[_0x15669c(0x93)]), {
|
|
278
|
-
'once': !![],
|
|
279
|
-
'signal': _0x1001bc['signal']
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
return _0x1001bc['signal'];
|
|
283
|
-
}
|
|
284
|
-
function createInternalAgentClient(_0x366518) {
|
|
285
|
-
const _0x39ffe5 = {
|
|
286
|
-
_0x168fb2: 0x12d,
|
|
287
|
-
_0xca015c: 0x163,
|
|
288
|
-
_0xc8675d: 0xcd,
|
|
289
|
-
_0x5f57db: 0x183,
|
|
290
|
-
_0x5d14b8: 0x126,
|
|
291
|
-
_0x5f5678: 0x199,
|
|
292
|
-
_0x31f457: 0x1e0
|
|
293
|
-
}, _0x39ef99 = {
|
|
294
|
-
_0x2bface: 0x69,
|
|
295
|
-
_0x42f232: 0x166,
|
|
296
|
-
_0xc1736: 0xeb,
|
|
297
|
-
_0x46fd09: 0xc0,
|
|
298
|
-
_0x2a4121: 0x1b3,
|
|
299
|
-
_0x226644: 0x10e,
|
|
300
|
-
_0x2fbc68: 0x179,
|
|
301
|
-
_0xeb994: 0xa9,
|
|
302
|
-
_0x3dc1bd: 0x9e,
|
|
303
|
-
_0x103603: 0xa9,
|
|
304
|
-
_0x251852: 0x84,
|
|
305
|
-
_0xedc3a3: 0x158,
|
|
306
|
-
_0x448ea8: 0xb3,
|
|
307
|
-
_0x621218: 0x1e3,
|
|
308
|
-
_0x58c252: 0x12d,
|
|
309
|
-
_0x5507ec: 0x99,
|
|
310
|
-
_0x504051: 0x118,
|
|
311
|
-
_0x47da5b: 0x1e3,
|
|
312
|
-
_0xff3424: 0x16e,
|
|
313
|
-
_0x368f05: 0x17b,
|
|
314
|
-
_0x3d3480: 0x9e,
|
|
315
|
-
_0x25f40e: 0xcf,
|
|
316
|
-
_0x2bc2c5: 0x12c,
|
|
317
|
-
_0x42809a: 0x120,
|
|
318
|
-
_0x54a49a: 0x127,
|
|
319
|
-
_0x4da177: 0x95,
|
|
320
|
-
_0x174c82: 0xd8,
|
|
321
|
-
_0x5dbf71: 0xb2,
|
|
322
|
-
_0x2d370c: 0x1d3,
|
|
323
|
-
_0x501fdc: 0xe2,
|
|
324
|
-
_0x499294: 0xd6
|
|
325
|
-
}, _0x2caf26 = { _0x33e0a9: 0x18b }, _0x5424ff = {
|
|
326
|
-
_0x4948b0: 0x1c4,
|
|
327
|
-
_0x1772ec: 0x70,
|
|
328
|
-
_0x5362d8: 0x157,
|
|
329
|
-
_0x5ae6f6: 0xc6,
|
|
330
|
-
_0x49de3e: 0xe1,
|
|
331
|
-
_0x34eceb: 0x18a
|
|
332
|
-
}, _0x2255f3 = {
|
|
333
|
-
_0x2f8d46: 0x6b,
|
|
334
|
-
_0x1ce6db: 0x7c,
|
|
335
|
-
_0x568a71: 0xeb,
|
|
336
|
-
_0x3eac24: 0x1bb,
|
|
337
|
-
_0x406f20: 0x9c,
|
|
338
|
-
_0x189d93: 0x18b,
|
|
339
|
-
_0x5c7ed3: 0x9f,
|
|
340
|
-
_0x21ea07: 0x196,
|
|
341
|
-
_0x506a6f: 0x1ed,
|
|
342
|
-
_0x32c34b: 0x171
|
|
343
|
-
}, _0x2660e7 = {
|
|
344
|
-
_0x20d3b7: 0xc0,
|
|
345
|
-
_0x4a5300: 0x9c,
|
|
346
|
-
_0x55a2f1: 0x1ed
|
|
347
|
-
}, _0x2be65d = { _0x295ff7: 0x9c }, _0x288844 = {
|
|
348
|
-
_0x51b1fc: 0x1ba,
|
|
349
|
-
_0x399aeb: 0x1ed
|
|
350
|
-
}, _0x3fd4f7 = {
|
|
351
|
-
_0x48fe08: 0x11f,
|
|
352
|
-
_0x2d16d1: 0x69,
|
|
353
|
-
_0x793169: 0xbf,
|
|
354
|
-
_0x5dd1d0: 0xeb,
|
|
355
|
-
_0x1b9554: 0x1a1,
|
|
356
|
-
_0x48d0d2: 0x1b7,
|
|
357
|
-
_0x5d5aa8: 0x87
|
|
358
|
-
}, _0x1b1624 = {
|
|
359
|
-
_0x195ac4: 0xb8,
|
|
360
|
-
_0x42fc51: 0x1ed,
|
|
361
|
-
_0x5a6788: 0xbf
|
|
362
|
-
}, _0x3815fc = {
|
|
363
|
-
_0x243419: 0xa1,
|
|
364
|
-
_0x4d477a: 0x1dc,
|
|
365
|
-
_0x5e622b: 0x11b,
|
|
366
|
-
_0x125cab: 0x157,
|
|
367
|
-
_0x1687f1: 0x85
|
|
368
|
-
}, _0x4ef9fb = {
|
|
369
|
-
_0x3e5c03: 0x9c,
|
|
370
|
-
_0x3a8266: 0x1ed,
|
|
371
|
-
_0x281bf2: 0x116
|
|
372
|
-
}, _0x554857 = { _0x62db34: 0x157 }, _0x518374 = {
|
|
373
|
-
_0x4a0b71: 0x127,
|
|
374
|
-
_0x4895c9: 0xeb,
|
|
375
|
-
_0x3fbc2d: 0x6b,
|
|
376
|
-
_0xd9eaf5: 0xdc,
|
|
377
|
-
_0x1c28a8: 0x1ed
|
|
378
|
-
}, _0x9d0944 = {
|
|
379
|
-
_0x55cb49: 0xa7,
|
|
380
|
-
_0x152c02: 0x1b9,
|
|
381
|
-
_0x34147f: 0x6b,
|
|
382
|
-
_0x3d9526: 0x69,
|
|
383
|
-
_0x279411: 0x69,
|
|
384
|
-
_0x1720d7: 0x10e,
|
|
385
|
-
_0x2bc8e2: 0x1d6,
|
|
386
|
-
_0xa3ae2d: 0xeb,
|
|
387
|
-
_0x5e2667: 0xc0,
|
|
388
|
-
_0x4f3034: 0x19d,
|
|
389
|
-
_0x50f830: 0x87,
|
|
390
|
-
_0x136125: 0xe3
|
|
391
|
-
}, _0x16bf5b = {
|
|
392
|
-
_0x151983: 0xfc,
|
|
393
|
-
_0x1ad925: 0x81
|
|
394
|
-
}, _0x74bc30 = {
|
|
395
|
-
_0x2480c8: 0x1d5,
|
|
396
|
-
_0x472e64: 0xfc
|
|
397
|
-
}, _0x14df48 = {
|
|
398
|
-
_0x42afc0: 0x1d3,
|
|
399
|
-
_0xd9d128: 0x99,
|
|
400
|
-
_0x47b12b: 0x12d,
|
|
401
|
-
_0x8f2022: 0x13d,
|
|
402
|
-
_0xe8313: 0x1e3,
|
|
403
|
-
_0x28f0d5: 0x6b,
|
|
404
|
-
_0xd5a568: 0x17e,
|
|
405
|
-
_0x3e9f29: 0x13d
|
|
406
|
-
}, _0x485a41 = {
|
|
407
|
-
_0x343165: 0x1d3,
|
|
408
|
-
_0x432f1c: 0xd4,
|
|
409
|
-
_0x29f14c: 0x1d8,
|
|
410
|
-
_0x266361: 0x6b,
|
|
411
|
-
_0x55dec8: 0x13d
|
|
412
|
-
}, _0x23e8a2 = {
|
|
413
|
-
_0x1650aa: 0x1d8,
|
|
414
|
-
_0x729d41: 0x99,
|
|
415
|
-
_0x22c7a1: 0x1e3,
|
|
416
|
-
_0x2ae24e: 0x6b,
|
|
417
|
-
_0x2668b3: 0x1d8,
|
|
418
|
-
_0x160127: 0x6b
|
|
419
|
-
}, _0xf6601e = {
|
|
420
|
-
_0x3a62ed: 0x144,
|
|
421
|
-
_0x1e8978: 0x189
|
|
422
|
-
}, _0x203c98 = {
|
|
423
|
-
_0x3669fe: 0x146,
|
|
424
|
-
_0x3988bc: 0xc9
|
|
425
|
-
}, _0x140a62 = {
|
|
426
|
-
_0x434c16: 0x14c,
|
|
427
|
-
_0x54ddb2: 0x158,
|
|
428
|
-
_0xdb1c56: 0x14c
|
|
429
|
-
}, _0x437f14 = {
|
|
430
|
-
_0x287ef8: 0x18b,
|
|
431
|
-
_0x4f43c5: 0xb3,
|
|
432
|
-
_0x5b5e78: 0x157
|
|
433
|
-
}, _0x53c0f9 = {
|
|
434
|
-
_0x3bf8f0: 0x167,
|
|
435
|
-
_0x456d84: 0xcb,
|
|
436
|
-
_0x5c2ef2: 0xbf
|
|
437
|
-
}, _0x54f921 = { _0x2c10a3: 0x80 }, _0xe2d055 = {
|
|
438
|
-
_0x52c09d: 0x13e,
|
|
439
|
-
_0x2c5046: 0x1bc,
|
|
440
|
-
_0x429acb: 0xcb
|
|
441
|
-
}, _0x4ffb55 = {
|
|
442
|
-
_0xe49df0: 0x13e,
|
|
443
|
-
_0x1881c7: 0x186
|
|
444
|
-
}, _0x422259 = {
|
|
445
|
-
_0xf09381: 0x126,
|
|
446
|
-
_0x358532: 0xf4,
|
|
447
|
-
_0x4df953: 0xc8,
|
|
448
|
-
_0x2d4d61: 0xab,
|
|
449
|
-
_0x3aed4f: 0x15b
|
|
450
|
-
}, _0x15988f = {
|
|
451
|
-
_0x38978e: 0x178,
|
|
452
|
-
_0x25fcd7: 0x126
|
|
453
|
-
}, _0x38b725 = {
|
|
454
|
-
_0x4c71a7: 0x176,
|
|
455
|
-
_0x37d502: 0x1ca,
|
|
456
|
-
_0x12385e: 0xbf,
|
|
457
|
-
_0x1c2105: 0x11a
|
|
458
|
-
}, _0x190d97 = _0x2858e8, _0x40b951 = _0x366518[_0x190d97(0x91)] ?? fetch, _0x2bc69a = _0x366518[_0x190d97(0xc7)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2daeb6 = typeof _0x366518[_0x190d97(0x163)] === _0x190d97(_0x39ffe5._0x168fb2) && _0x366518[_0x190d97(0x163)] > 0x0 ? _0x366518[_0x190d97(_0x39ffe5._0xca015c)] : 0x0, _0xae2df4 = _0x366518[_0x190d97(_0x39ffe5._0xc8675d)]?.[_0x190d97(0x126)]() || void 0x0, _0x858803 = _0x366518['sessionId']?.['trim']() || void 0x0, _0x354a86 = _0x366518[_0x190d97(_0x39ffe5._0x5f57db)] === !![], _0x3a00fa = _0x366518['workerSessionId']?.[_0x190d97(_0x39ffe5._0x5d14b8)]() || void 0x0, _0x4ada69 = _0x366518[_0x190d97(0xd0)]?.[_0x190d97(0x126)]() || void 0x0, _0x458e0d = createHeaders(_0x366518[_0x190d97(_0x39ffe5._0x5f5678)]), _0x552299 = toHttpBaseUrl(_0x366518[_0x190d97(_0x39ffe5._0x31f457)]);
|
|
459
|
-
let _0x266f4c = null;
|
|
460
|
-
const _0x335506 = new Map();
|
|
461
|
-
let _0x13278e = _0x2daeb6, _0x558f39 = _0x2daeb6;
|
|
462
|
-
function _0x50752f(_0x5db62d) {
|
|
463
|
-
const _0x4b916c = _0x190d97, _0xf27e15 = _0x5db62d[_0x4b916c(0x1cf)][_0x4b916c(_0x38b725._0x4c71a7)]['get'](_0x4b916c(0xc6)) ?? 'unknown', _0x1c1da7 = _0x5db62d[_0x4b916c(0xc4)][_0x4b916c(0x126)]()[_0x4b916c(0x1ec)](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
464
|
-
return _0x4b916c(_0x38b725._0x37d502) + _0x5db62d['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x5db62d[_0x4b916c(0x1cf)][_0x4b916c(_0x38b725._0x12385e)] + ',\x20content-type=' + _0xf27e15 + _0x4b916c(0x98) + _0x1c1da7 + _0x4b916c(_0x38b725._0x1c2105);
|
|
465
|
-
}
|
|
466
|
-
async function _0xfd2a8a(_0x31e34e, _0x5d4886) {
|
|
467
|
-
const _0xeeeaae = _0x190d97, _0x2aa187 = Buffer[_0xeeeaae(_0x15988f._0x38978e)](await _0x5d4886['arrayBuffer']())[_0xeeeaae(0x1b7)](_0xeeeaae(0x1eb));
|
|
468
|
-
if (!_0x2aa187[_0xeeeaae(_0x15988f._0x25fcd7)]())
|
|
469
|
-
return {};
|
|
470
|
-
try {
|
|
471
|
-
return JSON['parse'](_0x2aa187);
|
|
472
|
-
} catch {
|
|
473
|
-
throw new Error(_0x50752f({
|
|
474
|
-
'bodyText': _0x2aa187,
|
|
475
|
-
'requestUrl': _0x31e34e,
|
|
476
|
-
'response': _0x5d4886
|
|
477
|
-
}));
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
function _0x58c93a(_0x43ab3b, _0x394545) {
|
|
481
|
-
const _0x263f18 = _0x190d97, _0x242e3d = typeof _0x394545[_0x263f18(0x14a)] === 'string' ? _0x394545['idempotency_key'][_0x263f18(_0x422259._0xf09381)]() : '';
|
|
482
|
-
if (_0x242e3d)
|
|
483
|
-
return _0x242e3d;
|
|
484
|
-
const _0x37d261 = Date[_0x263f18(_0x422259._0x358532)]();
|
|
485
|
-
for (const [_0x45a3d4, _0x1960da] of _0x335506) {
|
|
486
|
-
_0x1960da[_0x263f18(_0x422259._0x4df953)] <= _0x37d261 && _0x335506[_0x263f18(0x8c)](_0x45a3d4);
|
|
487
|
-
}
|
|
488
|
-
const _0x184494 = {
|
|
489
|
-
..._0x394545,
|
|
490
|
-
'idempotency_key': void 0x0
|
|
491
|
-
}, _0x5d9f15 = createHash(_0x263f18(0xfa))[_0x263f18(_0x422259._0x2d4d61)](_0x43ab3b + ':' + stableStringify(_0x184494))['digest'](_0x263f18(0x132)), _0x1ef9b6 = _0x43ab3b + ':' + _0x5d9f15, _0x37c162 = _0x335506[_0x263f18(_0x422259._0x3aed4f)](_0x1ef9b6);
|
|
492
|
-
if (_0x37c162)
|
|
493
|
-
return _0x37c162['value'];
|
|
494
|
-
const _0x30f494 = _0x263f18(0x7d) + _0x43ab3b + ':' + randomUUID();
|
|
495
|
-
return _0x335506[_0x263f18(0x69)](_0x1ef9b6, {
|
|
496
|
-
'expiresAt': _0x37d261 + 0x5 * 0x3c * 0x3e8,
|
|
497
|
-
'value': _0x30f494
|
|
498
|
-
}), _0x30f494;
|
|
499
|
-
}
|
|
500
|
-
async function _0x2a0a60(_0x47e372, _0x1c3603) {
|
|
501
|
-
const _0x511108 = _0x190d97, _0x3bb1f9 = new AbortController(), _0x3074a7 = setTimeout(() => _0x3bb1f9[_0x511108(0x149)](), _0x2bc69a), _0xcb34fb = _0x1c3603?.[_0x511108(0x13e)] ? anySignal(_0x1c3603['signal'], _0x3bb1f9['signal']) : _0x3bb1f9[_0x511108(_0x4ffb55._0xe49df0)], _0x7942e5 = '' + _0x552299 + _0x47e372;
|
|
502
|
-
try {
|
|
503
|
-
const _0x510eec = await _0x40b951(_0x7942e5, {
|
|
504
|
-
..._0x1c3603,
|
|
505
|
-
'signal': _0xcb34fb
|
|
506
|
-
}), _0x21999e = await _0xfd2a8a(_0x7942e5, _0x510eec);
|
|
507
|
-
if (!_0x510eec['ok'] || _0x21999e[_0x511108(_0x4ffb55._0x1881c7)] === ![])
|
|
508
|
-
throw new Error(asErrorMessage(_0x21999e['error'], _0x511108(0xcb) + _0x510eec[_0x511108(0xbf)]));
|
|
509
|
-
return _0x21999e;
|
|
510
|
-
} finally {
|
|
511
|
-
clearTimeout(_0x3074a7);
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
async function _0x114798(_0x5b64e6, _0x99630c) {
|
|
515
|
-
const _0x33a8d6 = _0x190d97, _0x3e4dd8 = new AbortController(), _0x1d3512 = setTimeout(() => _0x3e4dd8[_0x33a8d6(0x149)](), _0x2bc69a), _0x2fbe34 = _0x99630c?.[_0x33a8d6(0x13e)] ? anySignal(_0x99630c['signal'], _0x3e4dd8[_0x33a8d6(_0xe2d055._0x52c09d)]) : _0x3e4dd8[_0x33a8d6(0x13e)], _0x31a803 = '' + _0x552299 + _0x5b64e6;
|
|
516
|
-
try {
|
|
517
|
-
const _0x7688bf = await _0x40b951(_0x31a803, {
|
|
518
|
-
..._0x99630c,
|
|
519
|
-
'signal': _0x2fbe34
|
|
520
|
-
}), _0x45794b = await _0xfd2a8a(_0x31a803, _0x7688bf);
|
|
521
|
-
if (!_0x7688bf['ok'])
|
|
522
|
-
throw new Error(asErrorMessage(_0x45794b[_0x33a8d6(_0xe2d055._0x2c5046)], _0x33a8d6(_0xe2d055._0x429acb) + _0x7688bf[_0x33a8d6(0xbf)]));
|
|
523
|
-
return _0x45794b;
|
|
524
|
-
} finally {
|
|
525
|
-
clearTimeout(_0x1d3512);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
async function _0x23801c(_0x3bae3b) {
|
|
529
|
-
const _0x17aac2 = _0x190d97;
|
|
530
|
-
if (!_0x858803 || _0x3bae3b <= _0x558f39)
|
|
531
|
-
return;
|
|
532
|
-
await _0x2a0a60(_0x17aac2(0xe5) + encodeURIComponent(_0x858803) + _0x17aac2(_0x54f921._0x2c10a3), {
|
|
533
|
-
'body': JSON[_0x17aac2(0x9c)]({ 'lastSeenSeq': _0x3bae3b }),
|
|
534
|
-
'headers': _0x458e0d,
|
|
535
|
-
'method': 'PATCH'
|
|
536
|
-
}), _0x558f39 = _0x3bae3b;
|
|
537
|
-
}
|
|
538
|
-
async function _0x147c5b(_0x5aa855) {
|
|
539
|
-
const _0x1d4121 = _0x190d97;
|
|
540
|
-
if (!_0xae2df4 || !_0x3a00fa || _0x5aa855 <= _0x558f39)
|
|
541
|
-
return;
|
|
542
|
-
const _0x2c2a5f = await _0x40b951(_0xae2df4 + _0x1d4121(_0x53c0f9._0x3bf8f0), {
|
|
543
|
-
'body': JSON[_0x1d4121(0x9c)]({
|
|
544
|
-
'last_seen_seq': _0x5aa855,
|
|
545
|
-
'worker_session_id': _0x3a00fa
|
|
546
|
-
}),
|
|
547
|
-
'headers': { 'Content-Type': _0x1d4121(0xd7) },
|
|
548
|
-
'method': _0x1d4121(0x1ed)
|
|
549
|
-
});
|
|
550
|
-
if (!_0x2c2a5f['ok'])
|
|
551
|
-
throw new Error(_0x1d4121(_0x53c0f9._0x456d84) + _0x2c2a5f[_0x1d4121(_0x53c0f9._0x5c2ef2)]);
|
|
552
|
-
_0x558f39 = _0x5aa855;
|
|
553
|
-
}
|
|
554
|
-
async function _0x495064(_0x522cb2) {
|
|
555
|
-
const _0x4672b6 = _0x190d97, _0x1ea4a = parseTarget(_0x522cb2), _0x28f6e4 = await _0x2a0a60(_0x4672b6(0xeb) + _0x366518['agentId'] + '/resolve-channel', {
|
|
556
|
-
'body': JSON[_0x4672b6(0x9c)]({ 'target': _0x1ea4a[_0x4672b6(_0x437f14._0x287ef8)] }),
|
|
557
|
-
'headers': _0x458e0d,
|
|
558
|
-
'method': 'POST'
|
|
559
|
-
});
|
|
560
|
-
return {
|
|
561
|
-
'channelId': _0x28f6e4[_0x4672b6(0x157)]?.[_0x4672b6(_0x437f14._0x4f43c5)] ?? '',
|
|
562
|
-
'target': _0x1ea4a[_0x4672b6(0x1d8)],
|
|
563
|
-
'task': _0x28f6e4[_0x4672b6(_0x437f14._0x5b5e78)]?.[_0x4672b6(0x8b)],
|
|
564
|
-
'threadId': _0x28f6e4['data']?.[_0x4672b6(0x6b)],
|
|
565
|
-
'threadNumber': _0x28f6e4[_0x4672b6(_0x437f14._0x5b5e78)]?.['threadNumber']
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
async function _0x2bf943(_0x42391b = {}) {
|
|
569
|
-
const _0x167678 = _0x190d97;
|
|
570
|
-
if (!_0x42391b[_0x167678(_0x203c98._0x3669fe)] && _0x266f4c)
|
|
571
|
-
return _0x266f4c;
|
|
572
|
-
return _0x266f4c = (async () => {
|
|
573
|
-
const _0xc6ff1c = _0x167678, _0x29c98a = await _0x2a0a60(_0xc6ff1c(0xeb) + _0x366518[_0xc6ff1c(0xc0)] + '/server', {
|
|
574
|
-
'headers': _0x458e0d,
|
|
575
|
-
'method': 'GET'
|
|
576
|
-
}), _0x479a76 = _0x29c98a[_0xc6ff1c(0x157)]?.[_0xc6ff1c(0x1d4)] ?? [], _0x416688 = _0x479a76[_0xc6ff1c(_0x140a62._0x434c16)](_0x275d20 => _0x275d20['participant']?.[_0xc6ff1c(0x1e7)] === _0xc6ff1c(0x82))[_0xc6ff1c(_0x140a62._0x54ddb2)](_0x5e7ccc => ({
|
|
577
|
-
'id': _0x123a28(_0x5e7ccc),
|
|
578
|
-
'name': _0x947a6(_0x5e7ccc)
|
|
579
|
-
}))[_0xc6ff1c(_0x140a62._0xdb1c56)](_0x320dea => _0x320dea['id']), _0xc28d67 = _0x479a76[_0xc6ff1c(0x14c)](_0x5e6568 => _0x5e6568[_0xc6ff1c(0xfc)]?.[_0xc6ff1c(0x1e7)] !== _0xc6ff1c(0x82))[_0xc6ff1c(0x158)](_0xbc5881 => ({
|
|
580
|
-
'id': _0x123a28(_0xbc5881),
|
|
581
|
-
'name': _0x947a6(_0xbc5881)
|
|
582
|
-
}))[_0xc6ff1c(_0x140a62._0xdb1c56)](_0x24a35f => _0x24a35f['id']), _0x3955b6 = _0x29c98a[_0xc6ff1c(0x157)]?.[_0xc6ff1c(0x106)]['id'] ?? '';
|
|
583
|
-
return {
|
|
584
|
-
'agents': _0x416688,
|
|
585
|
-
'channels': _0x29c98a['data']?.['channels'] ?? [],
|
|
586
|
-
'humans': _0xc28d67,
|
|
587
|
-
'serverId': _0x3955b6,
|
|
588
|
-
'serverName': _0x29c98a['data']?.[_0xc6ff1c(0x106)][_0xc6ff1c(0x81)] ?? _0x3955b6
|
|
589
|
-
};
|
|
590
|
-
})()[_0x167678(_0x203c98._0x3988bc)](_0x54bae2 => {
|
|
591
|
-
_0x266f4c = null;
|
|
592
|
-
throw _0x54bae2;
|
|
593
|
-
}), _0x266f4c;
|
|
594
|
-
}
|
|
595
|
-
function _0x5cf907(_0x470d73, _0x3940ff) {
|
|
596
|
-
const _0x3dcdd2 = _0x190d97;
|
|
597
|
-
return _0x3940ff['agents'][_0x3dcdd2(_0xf6601e._0x3a62ed)](_0x570977 => _0x570977['id'] === _0x470d73 || _0x570977['name'] === _0x470d73) ? _0x3dcdd2(0x82) : _0x3dcdd2(_0xf6601e._0x1e8978);
|
|
598
|
-
}
|
|
599
|
-
function _0x36295a(_0xf6fa22) {
|
|
600
|
-
const _0x434f40 = _0x190d97;
|
|
601
|
-
if (_0xf6fa22['threadNumber'] != null)
|
|
602
|
-
return _0xf6fa22[_0x434f40(_0x23e8a2._0x1650aa)] + ':t' + _0xf6fa22[_0x434f40(_0x23e8a2._0x729d41)];
|
|
603
|
-
if (_0xf6fa22['rootMessageId'])
|
|
604
|
-
return _0xf6fa22['channelTarget'] + ':' + _0xf6fa22[_0x434f40(_0x23e8a2._0x22c7a1)];
|
|
605
|
-
if (_0xf6fa22[_0x434f40(_0x23e8a2._0x2ae24e)])
|
|
606
|
-
return _0xf6fa22[_0x434f40(_0x23e8a2._0x2668b3)] + ':' + _0xf6fa22[_0x434f40(_0x23e8a2._0x160127)][_0x434f40(0x1a9)](0x0, 0x8);
|
|
607
|
-
return _0xf6fa22[_0x434f40(_0x23e8a2._0x2668b3)];
|
|
608
|
-
}
|
|
609
|
-
function _0x497aa6(_0x6df002, _0x403a97) {
|
|
610
|
-
const _0x1fad73 = _0x190d97;
|
|
611
|
-
try {
|
|
612
|
-
const _0x42b35d = parseTarget(_0x6df002);
|
|
613
|
-
if (_0x42b35d[_0x1fad73(_0x485a41._0x343165)] !== _0x1fad73(_0x485a41._0x432f1c) || _0x42b35d[_0x1fad73(0x1d8)] !== _0x403a97[_0x1fad73(_0x485a41._0x29f14c)])
|
|
614
|
-
return ![];
|
|
615
|
-
if (_0x403a97[_0x1fad73(0x99)] != null && _0x42b35d[_0x1fad73(0x13d)] === 't' + _0x403a97['threadNumber'])
|
|
616
|
-
return !![];
|
|
617
|
-
if (_0x403a97[_0x1fad73(0x1e3)])
|
|
618
|
-
return _0x42b35d['threadShortId'] === _0x403a97['rootMessageId'] || _0x403a97['rootMessageId']['startsWith'](_0x42b35d[_0x1fad73(0x13d)]);
|
|
619
|
-
if (_0x403a97[_0x1fad73(_0x485a41._0x266361)])
|
|
620
|
-
return _0x42b35d[_0x1fad73(_0x485a41._0x55dec8)] === _0x403a97[_0x1fad73(0x6b)] || _0x403a97[_0x1fad73(0x6b)]['startsWith'](_0x42b35d[_0x1fad73(_0x485a41._0x55dec8)]);
|
|
621
|
-
return ![];
|
|
622
|
-
} catch {
|
|
623
|
-
return ![];
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
function _0x1f3b9(_0xf36ec4, _0x511007) {
|
|
627
|
-
const _0x361b93 = _0x190d97;
|
|
628
|
-
try {
|
|
629
|
-
const _0x2c9931 = parseTarget(_0xf36ec4);
|
|
630
|
-
if (_0x2c9931[_0x361b93(_0x14df48._0x42afc0)] !== _0x361b93(0xd4))
|
|
631
|
-
return ![];
|
|
632
|
-
const _0x59842a = typeof _0x511007[_0x361b93(_0x14df48._0xd9d128)] === _0x361b93(_0x14df48._0x47b12b) && Number[_0x361b93(0xf9)](_0x511007[_0x361b93(0x99)]) ? _0x511007[_0x361b93(_0x14df48._0xd9d128)] : void 0x0;
|
|
633
|
-
if (_0x59842a != null && _0x2c9931[_0x361b93(_0x14df48._0x8f2022)] === 't' + _0x59842a)
|
|
634
|
-
return !![];
|
|
635
|
-
const _0x453abe = typeof _0x511007[_0x361b93(_0x14df48._0xe8313)] === _0x361b93(0xe2) ? _0x511007[_0x361b93(0x1e3)] : void 0x0;
|
|
636
|
-
if (_0x453abe)
|
|
637
|
-
return _0x2c9931[_0x361b93(0x13d)] === _0x453abe || _0x453abe['startsWith'](_0x2c9931[_0x361b93(_0x14df48._0x8f2022)]);
|
|
638
|
-
const _0x5c9d67 = typeof _0x511007[_0x361b93(0x6b)] === _0x361b93(0xe2) ? _0x511007[_0x361b93(_0x14df48._0x28f0d5)] : void 0x0;
|
|
639
|
-
return Boolean(_0x5c9d67) && (_0x2c9931['threadShortId'] === _0x5c9d67 || _0x5c9d67[_0x361b93(_0x14df48._0xd5a568)](_0x2c9931[_0x361b93(_0x14df48._0x3e9f29)]));
|
|
640
|
-
} catch {
|
|
641
|
-
return ![];
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
function _0x123a28(_0x12f42f) {
|
|
645
|
-
const _0x1b3c7d = _0x190d97;
|
|
646
|
-
return _0x12f42f[_0x1b3c7d(_0x74bc30._0x2480c8)]?.['participantId'] ?? _0x12f42f[_0x1b3c7d(_0x74bc30._0x472e64)]?.['id'] ?? _0x12f42f['participantId'] ?? '';
|
|
647
|
-
}
|
|
648
|
-
function _0x947a6(_0x163a88) {
|
|
649
|
-
const _0x451e20 = _0x190d97;
|
|
650
|
-
return _0x163a88[_0x451e20(_0x16bf5b._0x151983)]?.[_0x451e20(_0x16bf5b._0x1ad925)] ?? _0x123a28(_0x163a88);
|
|
651
|
-
}
|
|
652
|
-
async function _0x5770e4(_0x11aa5b) {
|
|
653
|
-
const _0x429a5b = _0x190d97, _0x534bf2 = Math[_0x429a5b(_0x9d0944._0x55cb49)](_0x11aa5b['limit'] ?? 0x32, 0x64), _0x47fa8d = await _0x2bf943(), _0x2595cc = new URLSearchParams();
|
|
654
|
-
_0x2595cc[_0x429a5b(0x69)](_0x429a5b(_0x9d0944._0x152c02), String(_0x534bf2));
|
|
655
|
-
_0x11aa5b['threadId'] ? (_0x2595cc[_0x429a5b(0x69)](_0x429a5b(0x6b), _0x11aa5b[_0x429a5b(_0x9d0944._0x34147f)]), _0x2595cc[_0x429a5b(_0x9d0944._0x3d9526)](_0x429a5b(0xb3), _0x11aa5b[_0x429a5b(0xb3)])) : _0x2595cc[_0x429a5b(_0x9d0944._0x279411)](_0x429a5b(0xb3), _0x11aa5b[_0x429a5b(0xb3)]);
|
|
656
|
-
_0x11aa5b[_0x429a5b(0x1ef)] && _0x2595cc[_0x429a5b(_0x9d0944._0x279411)](_0x429a5b(_0x9d0944._0x1720d7), String(_0x11aa5b[_0x429a5b(0x1ef)]));
|
|
657
|
-
_0x11aa5b['after'] !== void 0x0 && _0x2595cc[_0x429a5b(0x69)](_0x429a5b(0x1d6), String(_0x11aa5b[_0x429a5b(_0x9d0944._0x2bc8e2)]));
|
|
658
|
-
const _0x338882 = await _0x2a0a60(_0x429a5b(_0x9d0944._0xa3ae2d) + _0x366518[_0x429a5b(_0x9d0944._0x5e2667)] + _0x429a5b(_0x9d0944._0x4f3034) + _0x2595cc['toString'](), {
|
|
659
|
-
'headers': _0x458e0d,
|
|
660
|
-
'method': _0x429a5b(_0x9d0944._0x50f830)
|
|
661
|
-
}), _0x2d1f93 = (_0x338882['data'] ?? [])['map'](_0x4ff6c6 => ({
|
|
662
|
-
'attachments': (_0x4ff6c6['attachments'] ?? [])[_0x429a5b(0x158)](_0x5495de => ({
|
|
663
|
-
'filename': _0x5495de[_0x429a5b(0x171)] ?? _0x5495de['id'],
|
|
664
|
-
'id': _0x5495de['id']
|
|
665
|
-
})),
|
|
666
|
-
'content': _0x4ff6c6[_0x429a5b(0xb2)] ?? '',
|
|
667
|
-
'createdAt': _0x4ff6c6[_0x429a5b(0x181)],
|
|
668
|
-
..._0x4ff6c6['kind'] && _0x4ff6c6[_0x429a5b(0x1d3)] !== _0x429a5b(0xd6) ? { 'kind': _0x4ff6c6[_0x429a5b(0x1d3)] } : {},
|
|
669
|
-
'messageId': _0x4ff6c6['id'],
|
|
670
|
-
'senderName': _0x4ff6c6['senderParticipantId'],
|
|
671
|
-
'senderType': _0x5cf907(_0x4ff6c6[_0x429a5b(0xd8)], _0x47fa8d),
|
|
672
|
-
'seq': _0x4ff6c6['eventSeq'] ?? 0x0
|
|
673
|
-
}));
|
|
674
|
-
return {
|
|
675
|
-
'channel': _0x11aa5b['channelTarget'],
|
|
676
|
-
'hasMore': _0x338882[_0x429a5b(_0x9d0944._0x136125)]?.[_0x429a5b(0x152)] ?? ![],
|
|
677
|
-
'messages': _0x2d1f93,
|
|
678
|
-
'nextCursor': _0x338882['meta']?.[_0x429a5b(0x10e)]
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
return {
|
|
682
|
-
async 'sendMessage'(_0x507cc5) {
|
|
683
|
-
const _0x27fbad = _0x190d97, _0x331f88 = await _0x495064(_0x507cc5[_0x27fbad(0x18b)]), _0xf0c73f = _0x507cc5['content'][_0x27fbad(0x105)]('@') ? extractMentionedParticipantIds(_0x507cc5[_0x27fbad(_0x518374._0x4a0b71)], await _0x2bf943()) : [], _0x5dc26b = await _0x2a0a60(_0x27fbad(_0x518374._0x4895c9) + _0x366518[_0x27fbad(0xc0)] + _0x27fbad(0x10a), {
|
|
684
|
-
'body': JSON['stringify']({
|
|
685
|
-
'attachment_ids': _0x507cc5['attachmentIds'],
|
|
686
|
-
'bodyMarkdown': _0x507cc5['content'],
|
|
687
|
-
'channelId': _0x331f88[_0x27fbad(0xb3)],
|
|
688
|
-
..._0xf0c73f['length'] > 0x0 ? { 'mentionedParticipantIds': _0xf0c73f } : {},
|
|
689
|
-
'threadId': _0x331f88[_0x27fbad(_0x518374._0x3fbc2d)],
|
|
690
|
-
..._0x507cc5[_0x27fbad(_0x518374._0xd9eaf5)] ? { 'visibility': _0x507cc5[_0x27fbad(_0x518374._0xd9eaf5)] } : {}
|
|
691
|
-
}),
|
|
692
|
-
'headers': _0x458e0d,
|
|
693
|
-
'method': _0x27fbad(_0x518374._0x1c28a8)
|
|
694
|
-
});
|
|
695
|
-
return { 'messageId': _0x5dc26b[_0x27fbad(0x157)]?.['id'] ?? '' };
|
|
696
|
-
},
|
|
697
|
-
async 'listSchedules'() {
|
|
698
|
-
const _0x3e9554 = _0x190d97, _0x2a13b2 = await _0x2a0a60(_0x3e9554(0xed), {
|
|
699
|
-
'headers': _0x458e0d,
|
|
700
|
-
'method': _0x3e9554(0x87)
|
|
701
|
-
});
|
|
702
|
-
return _0x2a13b2[_0x3e9554(_0x554857._0x62db34)] ?? [];
|
|
703
|
-
},
|
|
704
|
-
async 'claimScheduleRun'(_0x550413) {
|
|
705
|
-
const _0x6f04c1 = _0x190d97, _0x1d3311 = await _0x2a0a60(_0x6f04c1(0xa3), {
|
|
706
|
-
'body': JSON[_0x6f04c1(_0x4ef9fb._0x3e5c03)](_0x550413),
|
|
707
|
-
'headers': _0x458e0d,
|
|
708
|
-
'method': _0x6f04c1(_0x4ef9fb._0x3a8266)
|
|
709
|
-
});
|
|
710
|
-
return _0x1d3311[_0x6f04c1(0x157)] ?? {
|
|
711
|
-
'granted': ![],
|
|
712
|
-
'runId': null,
|
|
713
|
-
'schedule': null,
|
|
714
|
-
'scheduledFor': _0x550413[_0x6f04c1(_0x4ef9fb._0x281bf2)]
|
|
715
|
-
};
|
|
716
|
-
},
|
|
717
|
-
async 'startScheduleRun'(_0x332d24) {
|
|
718
|
-
const _0x5333d0 = _0x190d97, _0x125b97 = await _0x2a0a60(_0x5333d0(_0x3815fc._0x243419) + encodeURIComponent(_0x332d24[_0x5333d0(_0x3815fc._0x4d477a)]) + _0x5333d0(_0x3815fc._0x5e622b), {
|
|
719
|
-
'body': JSON[_0x5333d0(0x9c)]({}),
|
|
720
|
-
'headers': _0x458e0d,
|
|
721
|
-
'method': _0x5333d0(0x1ed)
|
|
722
|
-
});
|
|
723
|
-
return _0x125b97[_0x5333d0(_0x3815fc._0x125cab)] ?? {
|
|
724
|
-
'claimedByDaemonId': '',
|
|
725
|
-
'id': _0x332d24[_0x5333d0(0x1dc)],
|
|
726
|
-
'scheduleId': '',
|
|
727
|
-
'status': _0x5333d0(_0x3815fc._0x1687f1)
|
|
728
|
-
};
|
|
729
|
-
},
|
|
730
|
-
async 'finishScheduleRun'(_0x47176d) {
|
|
731
|
-
const _0x4eefb7 = _0x190d97, _0x2f22d7 = await _0x2a0a60('/api/internal/schedules/' + encodeURIComponent(_0x47176d['runId']) + _0x4eefb7(0xb0), {
|
|
732
|
-
'body': JSON[_0x4eefb7(0x9c)]({
|
|
733
|
-
'error': _0x47176d['error'],
|
|
734
|
-
'resultJson': _0x47176d[_0x4eefb7(_0x1b1624._0x195ac4)],
|
|
735
|
-
'status': _0x47176d[_0x4eefb7(0xbf)]
|
|
736
|
-
}),
|
|
737
|
-
'headers': _0x458e0d,
|
|
738
|
-
'method': _0x4eefb7(_0x1b1624._0x42fc51)
|
|
739
|
-
});
|
|
740
|
-
return _0x2f22d7['data'] ?? {
|
|
741
|
-
'nextRunAt': null,
|
|
742
|
-
'run': {
|
|
743
|
-
'claimedByDaemonId': '',
|
|
744
|
-
'id': _0x47176d[_0x4eefb7(0x1dc)],
|
|
745
|
-
'scheduleId': '',
|
|
746
|
-
'status': _0x47176d[_0x4eefb7(_0x1b1624._0x5a6788)]
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
},
|
|
750
|
-
async 'listTasks'(_0x17d51d) {
|
|
751
|
-
const _0x3b5ed1 = _0x190d97, _0x1d8a53 = new URLSearchParams();
|
|
752
|
-
return _0x1d8a53[_0x3b5ed1(0x69)](_0x3b5ed1(_0x3fd4f7._0x48fe08), _0x17d51d[_0x3b5ed1(0x11f)]), _0x17d51d[_0x3b5ed1(0xbf)] && _0x1d8a53[_0x3b5ed1(_0x3fd4f7._0x2d16d1)]('status', _0x17d51d[_0x3b5ed1(_0x3fd4f7._0x793169)]), _0x114798(_0x3b5ed1(_0x3fd4f7._0x5dd1d0) + _0x366518['agentId'] + _0x3b5ed1(_0x3fd4f7._0x1b9554) + _0x1d8a53[_0x3b5ed1(_0x3fd4f7._0x48d0d2)](), {
|
|
753
|
-
'headers': _0x458e0d,
|
|
754
|
-
'method': _0x3b5ed1(_0x3fd4f7._0x5d5aa8)
|
|
755
|
-
});
|
|
756
|
-
},
|
|
757
|
-
async 'createTasks'(_0x5be814) {
|
|
758
|
-
const _0x1e59dc = _0x190d97;
|
|
759
|
-
return _0x114798('/internal/agent/' + _0x366518['agentId'] + _0x1e59dc(_0x288844._0x51b1fc), {
|
|
760
|
-
'body': JSON['stringify']({
|
|
761
|
-
..._0x5be814,
|
|
762
|
-
'idempotency_key': _0x58c93a(_0x1e59dc(0x12b), _0x5be814)
|
|
763
|
-
}),
|
|
764
|
-
'headers': _0x458e0d,
|
|
765
|
-
'method': _0x1e59dc(_0x288844._0x399aeb)
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
async 'claimTasks'(_0x1af82b) {
|
|
769
|
-
const _0x42ebdd = _0x190d97;
|
|
770
|
-
return _0x114798(_0x42ebdd(0xeb) + _0x366518[_0x42ebdd(0xc0)] + '/tasks/claim', {
|
|
771
|
-
'body': JSON[_0x42ebdd(0x9c)]({
|
|
772
|
-
..._0x1af82b,
|
|
773
|
-
'idempotency_key': _0x58c93a('claim_tasks', _0x1af82b)
|
|
774
|
-
}),
|
|
775
|
-
'headers': _0x458e0d,
|
|
776
|
-
'method': _0x42ebdd(0x1ed)
|
|
777
|
-
});
|
|
778
|
-
},
|
|
779
|
-
async 'unclaimTask'(_0x523e36) {
|
|
780
|
-
const _0x116ce6 = _0x190d97;
|
|
781
|
-
return _0x114798(_0x116ce6(0xeb) + _0x366518[_0x116ce6(0xc0)] + '/tasks/unclaim', {
|
|
782
|
-
'body': JSON[_0x116ce6(_0x2be65d._0x295ff7)]({
|
|
783
|
-
..._0x523e36,
|
|
784
|
-
'idempotency_key': _0x58c93a('unclaim_task', _0x523e36)
|
|
785
|
-
}),
|
|
786
|
-
'headers': _0x458e0d,
|
|
787
|
-
'method': 'POST'
|
|
788
|
-
});
|
|
789
|
-
},
|
|
790
|
-
async 'updateTaskStatus'(_0x18f2b6) {
|
|
791
|
-
const _0x5f1276 = _0x190d97;
|
|
792
|
-
return _0x114798('/internal/agent/' + _0x366518[_0x5f1276(_0x2660e7._0x20d3b7)] + _0x5f1276(0x162), {
|
|
793
|
-
'body': JSON[_0x5f1276(_0x2660e7._0x4a5300)]({
|
|
794
|
-
..._0x18f2b6,
|
|
795
|
-
'idempotency_key': _0x58c93a(_0x5f1276(0x17a), _0x18f2b6)
|
|
796
|
-
}),
|
|
797
|
-
'headers': _0x458e0d,
|
|
798
|
-
'method': _0x5f1276(_0x2660e7._0x55a2f1)
|
|
799
|
-
});
|
|
800
|
-
},
|
|
801
|
-
async 'uploadFile'(_0x16a86b) {
|
|
802
|
-
const _0x5ed8a6 = _0x190d97, _0x1fe69f = await _0x495064(_0x16a86b[_0x5ed8a6(0x11f)]);
|
|
803
|
-
if (_0x1fe69f[_0x5ed8a6(_0x2255f3._0x2f8d46)])
|
|
804
|
-
throw new Error(_0x5ed8a6(_0x2255f3._0x1ce6db));
|
|
805
|
-
const _0x5a2393 = await _0x2a0a60(_0x5ed8a6(_0x2255f3._0x568a71) + _0x366518['agentId'] + _0x5ed8a6(_0x2255f3._0x3eac24), {
|
|
806
|
-
'body': JSON[_0x5ed8a6(_0x2255f3._0x406f20)]({
|
|
807
|
-
'channel': _0x1fe69f[_0x5ed8a6(_0x2255f3._0x189d93)],
|
|
808
|
-
'contentBase64': _0x16a86b[_0x5ed8a6(_0x2255f3._0x5c7ed3)],
|
|
809
|
-
'contentType': _0x16a86b[_0x5ed8a6(_0x2255f3._0x21ea07)],
|
|
810
|
-
'originalFilename': _0x16a86b[_0x5ed8a6(0x171)]
|
|
811
|
-
}),
|
|
812
|
-
'headers': _0x458e0d,
|
|
813
|
-
'method': _0x5ed8a6(_0x2255f3._0x506a6f)
|
|
814
|
-
});
|
|
815
|
-
return {
|
|
816
|
-
'attachmentId': _0x5a2393['data']?.['id'] ?? '',
|
|
817
|
-
'filename': _0x5a2393[_0x5ed8a6(0x157)]?.['originalFilename'] ?? _0x16a86b[_0x5ed8a6(_0x2255f3._0x32c34b)],
|
|
818
|
-
'sizeBytes': _0x5a2393['data']?.[_0x5ed8a6(0x1a5)] ?? 0x0
|
|
819
|
-
};
|
|
820
|
-
},
|
|
821
|
-
async 'downloadAttachment'(_0x24d0bc) {
|
|
822
|
-
const _0x4a1061 = _0x190d97, _0x564f0c = await _0x2a0a60(_0x4a1061(0x1c4) + _0x24d0bc, {
|
|
823
|
-
'headers': _0x458e0d,
|
|
824
|
-
'method': _0x4a1061(0x87)
|
|
825
|
-
}), _0x3c7ace = new AbortController(), _0x3b6830 = setTimeout(() => _0x3c7ace['abort'](), _0x2bc69a);
|
|
826
|
-
try {
|
|
827
|
-
const _0x579bc9 = await _0x40b951(_0x552299 + _0x4a1061(_0x5424ff._0x4948b0) + _0x24d0bc + _0x4a1061(_0x5424ff._0x1772ec), {
|
|
828
|
-
'headers': _0x458e0d,
|
|
829
|
-
'method': _0x4a1061(0x87),
|
|
830
|
-
'signal': _0x3c7ace[_0x4a1061(0x13e)]
|
|
831
|
-
});
|
|
832
|
-
if (!_0x579bc9['ok'])
|
|
833
|
-
throw new Error('HTTP\x20' + _0x579bc9['status']);
|
|
834
|
-
return {
|
|
835
|
-
'contentType': _0x564f0c[_0x4a1061(_0x5424ff._0x5362d8)]?.['contentType'] ?? _0x579bc9['headers'][_0x4a1061(0x15b)](_0x4a1061(_0x5424ff._0x5ae6f6)) ?? _0x4a1061(_0x5424ff._0x49de3e),
|
|
836
|
-
'data': Buffer[_0x4a1061(0x178)](await _0x579bc9[_0x4a1061(_0x5424ff._0x34eceb)]()),
|
|
837
|
-
'originalFilename': _0x564f0c['data']?.[_0x4a1061(0x6e)]
|
|
838
|
-
};
|
|
839
|
-
} finally {
|
|
840
|
-
clearTimeout(_0x3b6830);
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
async 'listServer'() {
|
|
844
|
-
return _0x2bf943({ 'forceRefresh': !![] });
|
|
845
|
-
},
|
|
846
|
-
async 'readHistory'(_0x329f4c) {
|
|
847
|
-
const _0x13bc51 = _0x190d97, _0xc59a22 = await _0x495064(_0x329f4c[_0x13bc51(0x11f)]);
|
|
848
|
-
return _0x5770e4({
|
|
849
|
-
'after': _0x329f4c[_0x13bc51(0x1d6)],
|
|
850
|
-
'before': _0x329f4c[_0x13bc51(0x1ef)],
|
|
851
|
-
'channelId': _0xc59a22['channelId'],
|
|
852
|
-
'channelTarget': _0xc59a22[_0x13bc51(_0x2caf26._0x33e0a9)],
|
|
853
|
-
'limit': _0x329f4c[_0x13bc51(0x1b9)],
|
|
854
|
-
'threadId': _0xc59a22['threadId']
|
|
855
|
-
});
|
|
856
|
-
},
|
|
857
|
-
'resolveTarget': _0x495064,
|
|
858
|
-
async 'checkMessages'() {
|
|
859
|
-
const _0x27e043 = { _0x2b3a3f: 0xb3 }, _0x1546e1 = {
|
|
860
|
-
_0x2a2184: 0x140,
|
|
861
|
-
_0x439f13: 0x191
|
|
862
|
-
}, _0x48ba5 = _0x190d97, _0x5d08dd = new URLSearchParams();
|
|
863
|
-
_0x5d08dd[_0x48ba5(_0x39ef99._0x2bface)](_0x48ba5(_0x39ef99._0x42f232), String(_0x13278e));
|
|
864
|
-
const _0x145c8b = _0x5d08dd['toString'](), _0xa185fa = await _0x2a0a60(_0x48ba5(_0x39ef99._0xc1736) + _0x366518[_0x48ba5(_0x39ef99._0x46fd09)] + _0x48ba5(_0x39ef99._0x2a4121) + (_0x145c8b ? '?' + _0x145c8b : ''), {
|
|
865
|
-
'headers': _0x458e0d,
|
|
866
|
-
'method': _0x48ba5(0x87)
|
|
867
|
-
}), _0x4426ed = _0xa185fa[_0x48ba5(0x157)] ?? [], _0x1d71a3 = _0xa185fa[_0x48ba5(0xe3)]?.[_0x48ba5(_0x39ef99._0x226644)], _0x383a79 = _0x4ada69 ? _0x4426ed['filter'](_0x3b289a => {
|
|
868
|
-
const _0x4ad0a3 = _0x48ba5;
|
|
869
|
-
if (_0x3b289a[_0x4ad0a3(0x1cc)] !== _0x4ad0a3(_0x1546e1._0x2a2184))
|
|
870
|
-
return ![];
|
|
871
|
-
return _0x1f3b9(_0x4ada69, asRecord(_0x3b289a[_0x4ad0a3(_0x1546e1._0x439f13)]));
|
|
872
|
-
}) : _0x4426ed, _0x4a3e80 = _0x1d71a3 !== void 0x0 ? _0x4ada69 ? Math[_0x48ba5(_0x39ef99._0x2fbc68)](_0x13278e, _0x383a79[_0x48ba5(_0x39ef99._0xeb994)] > 0x0 ? _0x383a79[_0x383a79[_0x48ba5(0xa9)] - 0x1][_0x48ba5(_0x39ef99._0x3dc1bd)] : _0x13278e) : Math['max'](_0x13278e, _0x1d71a3) : _0x383a79[_0x48ba5(0xa9)] > 0x0 ? Math['max'](_0x13278e, _0x383a79[_0x383a79[_0x48ba5(_0x39ef99._0x103603)] - 0x1][_0x48ba5(_0x39ef99._0x3dc1bd)]) : _0x13278e, _0x2bd783 = _0x4426ed['filter'](_0x676bd8 => _0x676bd8[_0x48ba5(0x1cc)] === _0x48ba5(0x140)), _0x277b3c = _0x4ada69 === void 0x0 && _0x354a86;
|
|
873
|
-
let _0xb3f0fa = await _0x2bf943(), _0x11433a = new Map(_0xb3f0fa[_0x48ba5(_0x39ef99._0x251852)][_0x48ba5(_0x39ef99._0xedc3a3)](_0x517c1f => [
|
|
874
|
-
_0x517c1f['id'],
|
|
875
|
-
_0x517c1f
|
|
876
|
-
]));
|
|
877
|
-
const _0x14d74c = _0x2bd783[_0x48ba5(0x144)](_0x2161b7 => {
|
|
878
|
-
const _0x5140c8 = _0x48ba5, _0xea99b8 = asRecord(_0x2161b7['payloadJson']), _0x35dd71 = typeof _0xea99b8?.[_0x5140c8(_0x27e043._0x2b3a3f)] === _0x5140c8(0xe2) ? _0xea99b8[_0x5140c8(0xb3)] : '';
|
|
879
|
-
return Boolean(_0x35dd71) && !_0x11433a[_0x5140c8(0x1d9)](_0x35dd71);
|
|
880
|
-
});
|
|
881
|
-
_0x14d74c && (_0xb3f0fa = await _0x2bf943({ 'forceRefresh': !![] }), _0x11433a = new Map(_0xb3f0fa['channels'][_0x48ba5(0x158)](_0x3c3dc8 => [
|
|
882
|
-
_0x3c3dc8['id'],
|
|
883
|
-
_0x3c3dc8
|
|
884
|
-
])));
|
|
885
|
-
const _0x106383 = new Map();
|
|
886
|
-
for (const _0x514177 of _0x2bd783) {
|
|
887
|
-
const _0x52a2ed = asRecord(_0x514177['payloadJson']), _0x55f806 = typeof _0x52a2ed[_0x48ba5(_0x39ef99._0x448ea8)] === _0x48ba5(0xe2) ? _0x52a2ed[_0x48ba5(0xb3)] : '';
|
|
888
|
-
if (!_0x55f806)
|
|
889
|
-
continue;
|
|
890
|
-
const _0x57e9f5 = typeof _0x52a2ed[_0x48ba5(0x6b)] === 'string' ? _0x52a2ed['threadId'] : void 0x0, _0x3fb0eb = typeof _0x52a2ed['rootMessageId'] === _0x48ba5(0xe2) ? _0x52a2ed[_0x48ba5(_0x39ef99._0x621218)] : void 0x0, _0x402bfc = typeof _0x52a2ed[_0x48ba5(0x99)] === _0x48ba5(_0x39ef99._0x58c252) && Number[_0x48ba5(0xf9)](_0x52a2ed['threadNumber']) ? _0x52a2ed[_0x48ba5(_0x39ef99._0x5507ec)] : void 0x0, _0x3e0681 = Boolean(_0x57e9f5 && (!_0x3fb0eb || _0x514177[_0x48ba5(_0x39ef99._0x504051)] !== _0x3fb0eb)), _0x35623d = _0x3e0681 ? _0x55f806 + ':' + _0x57e9f5 : _0x55f806, _0x13a1d1 = _0x106383['get'](_0x35623d) ?? {
|
|
891
|
-
'aggregateIds': [],
|
|
892
|
-
'channelId': _0x55f806,
|
|
893
|
-
'entries': new Map(),
|
|
894
|
-
'isThreadReply': _0x3e0681,
|
|
895
|
-
'rootMessageId': _0x3fb0eb,
|
|
896
|
-
'threadNumber': _0x402bfc,
|
|
897
|
-
'threadId': _0x3e0681 ? _0x57e9f5 : void 0x0
|
|
898
|
-
};
|
|
899
|
-
_0x13a1d1[_0x48ba5(_0x39ef99._0x5507ec)] == null && _0x402bfc != null && (_0x13a1d1[_0x48ba5(0x99)] = _0x402bfc), !_0x13a1d1['rootMessageId'] && _0x3fb0eb && (_0x13a1d1[_0x48ba5(_0x39ef99._0x47da5b)] = _0x3fb0eb), _0x13a1d1[_0x48ba5(_0x39ef99._0xff3424)]['push'](_0x514177[_0x48ba5(0x118)]), _0x13a1d1[_0x48ba5(_0x39ef99._0x368f05)]['set'](_0x514177[_0x48ba5(0x118)], {
|
|
900
|
-
'payloadJson': _0x514177[_0x48ba5(0x191)],
|
|
901
|
-
'seq': _0x514177[_0x48ba5(_0x39ef99._0x3d3480)]
|
|
902
|
-
}), _0x106383[_0x48ba5(0x69)](_0x35623d, _0x13a1d1);
|
|
903
|
-
}
|
|
904
|
-
const _0x17a017 = [];
|
|
905
|
-
for (const _0x4a7c34 of _0x106383['values']()) {
|
|
906
|
-
const {
|
|
907
|
-
channelId: _0x5d30c5,
|
|
908
|
-
threadId: _0x2ec457,
|
|
909
|
-
rootMessageId: _0x3086f6,
|
|
910
|
-
threadNumber: _0x2053e3,
|
|
911
|
-
aggregateIds: _0x361433,
|
|
912
|
-
isThreadReply: _0x4c4c3d,
|
|
913
|
-
entries: _0xd2b6da
|
|
914
|
-
} = _0x4a7c34, _0x442753 = _0x11433a[_0x48ba5(0x15b)](_0x5d30c5), _0xb9925a = _0x442753?.[_0x48ba5(0x81)] ?? _0x5d30c5, _0x272836 = _0x442753?.[_0x48ba5(0x1d3)] === 'dm' ? _0x48ba5(0x1ab) + _0xb9925a : '#' + _0xb9925a, _0x1f307d = {
|
|
915
|
-
'channelTarget': _0x272836,
|
|
916
|
-
'rootMessageId': _0x3086f6,
|
|
917
|
-
'threadId': _0x2ec457,
|
|
918
|
-
'threadNumber': _0x2053e3
|
|
919
|
-
}, _0x12f687 = await _0x5770e4({
|
|
920
|
-
'channelId': _0x5d30c5,
|
|
921
|
-
'channelTarget': _0x272836,
|
|
922
|
-
'limit': Math[_0x48ba5(0x179)](_0x361433[_0x48ba5(0xa9)], 0x32),
|
|
923
|
-
'threadId': _0x2ec457
|
|
924
|
-
}), _0xad9c49 = new Map(_0x12f687[_0x48ba5(_0x39ef99._0x25f40e)]['map'](_0x2a88b7 => [
|
|
925
|
-
_0x2a88b7['messageId'],
|
|
926
|
-
_0x2a88b7
|
|
927
|
-
])), _0x1a2107 = _0x2ec457 ? _0x36295a(_0x1f307d) : _0x272836, _0x4c2fe4 = _0x4ada69 ? _0x4c4c3d && _0x497aa6(_0x4ada69, _0x1f307d) : !![], _0x45995e = _0x4c4c3d ? _0x4c2fe4 && _0x4ada69 ? _0x4ada69 : _0x1a2107 : _0x272836;
|
|
928
|
-
for (const _0x3c1f87 of _0x361433) {
|
|
929
|
-
if (!_0x4c2fe4)
|
|
930
|
-
continue;
|
|
931
|
-
const _0x52534c = _0xd2b6da['get'](_0x3c1f87), _0x6a96b5 = _0x52534c ? asRecord(_0x52534c[_0x48ba5(0x191)]) : void 0x0, _0x4a0605 = _0x6a96b5?.[_0x48ba5(0xbe)] === _0x48ba5(_0x39ef99._0x2bc2c5);
|
|
932
|
-
if (_0x277b3c && _0x4a0605)
|
|
933
|
-
continue;
|
|
934
|
-
const _0x32ac10 = _0xad9c49['get'](_0x3c1f87);
|
|
935
|
-
if (_0x32ac10) {
|
|
936
|
-
_0x17a017['push']({
|
|
937
|
-
'attachments': _0x32ac10[_0x48ba5(_0x39ef99._0x42809a)],
|
|
938
|
-
'content': _0x32ac10[_0x48ba5(_0x39ef99._0x54a49a)],
|
|
939
|
-
'createdAt': _0x32ac10[_0x48ba5(0x181)],
|
|
940
|
-
..._0x32ac10[_0x48ba5(0x1d3)] ? { 'kind': _0x32ac10['kind'] } : {},
|
|
941
|
-
'messageId': _0x32ac10[_0x48ba5(0xff)],
|
|
942
|
-
'senderName': _0x32ac10[_0x48ba5(_0x39ef99._0x4da177)],
|
|
943
|
-
'senderType': _0x32ac10['senderType'],
|
|
944
|
-
'target': _0x45995e,
|
|
945
|
-
..._0x4a0605 ? { 'targetedTask': !![] } : {}
|
|
946
|
-
});
|
|
947
|
-
continue;
|
|
948
|
-
}
|
|
949
|
-
if (_0x52534c) {
|
|
950
|
-
const _0x243141 = typeof _0x6a96b5?.[_0x48ba5(0xd8)] === _0x48ba5(0xe2) ? _0x6a96b5[_0x48ba5(_0x39ef99._0x174c82)] : '', _0xe39194 = typeof _0x6a96b5?.[_0x48ba5(_0x39ef99._0x5dbf71)] === _0x48ba5(0xe2) ? _0x6a96b5['bodyMarkdown'] : '', _0x549dbc = typeof _0x6a96b5?.[_0x48ba5(_0x39ef99._0x2d370c)] === _0x48ba5(_0x39ef99._0x501fdc) && _0x6a96b5[_0x48ba5(_0x39ef99._0x2d370c)] !== _0x48ba5(_0x39ef99._0x499294) ? _0x6a96b5['kind'] : void 0x0;
|
|
951
|
-
_0x243141 && _0xe39194 && _0x17a017[_0x48ba5(0xe9)]({
|
|
952
|
-
'attachments': [],
|
|
953
|
-
'content': _0xe39194,
|
|
954
|
-
'createdAt': new Date()[_0x48ba5(0x175)](),
|
|
955
|
-
..._0x549dbc ? { 'kind': _0x549dbc } : {},
|
|
956
|
-
'messageId': _0x3c1f87,
|
|
957
|
-
'senderName': _0x243141,
|
|
958
|
-
'senderType': _0x5cf907(_0x243141, _0xb3f0fa),
|
|
959
|
-
'target': _0x45995e,
|
|
960
|
-
..._0x4a0605 ? { 'targetedTask': !![] } : {}
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
if (_0x4a3e80 > 0x0) {
|
|
966
|
-
if (_0x858803)
|
|
967
|
-
await _0x23801c(_0x4a3e80);
|
|
968
|
-
else
|
|
969
|
-
_0x3a00fa && await _0x147c5b(_0x4a3e80);
|
|
970
|
-
}
|
|
971
|
-
return _0x4a3e80 > _0x13278e && (_0x13278e = _0x4a3e80), { 'messages': _0x4ada69 ? _0x17a017 : _0x277b3c ? _0x17a017['filter'](_0x31888b => _0x31888b['targetedTask'] !== !![]) : _0x17a017 };
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
}
|
|
975
|
-
function toLocalTime(_0x179042) {
|
|
976
|
-
const _0x1d8a75 = {
|
|
977
|
-
_0x27fe41: 0x195,
|
|
978
|
-
_0x8385ae: 0x128
|
|
979
|
-
}, _0x3e2d0a = _0x2858e8, _0x8a0480 = new Date(_0x179042);
|
|
980
|
-
if (Number[_0x3e2d0a(_0x1d8a75._0x27fe41)](_0x8a0480['getTime']()))
|
|
981
|
-
return _0x179042;
|
|
982
|
-
const _0x509af9 = _0x1e032b => String(_0x1e032b)['padStart'](0x2, '0');
|
|
983
|
-
return _0x8a0480[_0x3e2d0a(_0x1d8a75._0x8385ae)]() + '-' + _0x509af9(_0x8a0480[_0x3e2d0a(0x1c7)]() + 0x1) + '-' + _0x509af9(_0x8a0480[_0x3e2d0a(0x7e)]()) + '\x20' + _0x509af9(_0x8a0480['getHours']()) + ':' + _0x509af9(_0x8a0480[_0x3e2d0a(0x168)]()) + ':' + _0x509af9(_0x8a0480[_0x3e2d0a(0x185)]());
|
|
984
|
-
}
|
|
985
|
-
function formatAttachmentSuffix(_0x3fc591) {
|
|
986
|
-
const _0x43cc73 = { _0x585034: 0xa9 }, _0x1f1095 = _0x2858e8;
|
|
987
|
-
if (!_0x3fc591 || _0x3fc591['length'] === 0x0)
|
|
988
|
-
return '';
|
|
989
|
-
return '\x20[' + _0x3fc591['length'] + _0x1f1095(0x17c) + (_0x3fc591[_0x1f1095(_0x43cc73._0x585034)] > 0x1 ? 's' : '') + ':\x20' + _0x3fc591[_0x1f1095(0x158)](_0x1f8701 => _0x1f8701[_0x1f1095(0x171)] + _0x1f1095(0x14f) + _0x1f8701['id'] + ')')[_0x1f1095(0x6f)](',\x20') + _0x1f1095(0xd2);
|
|
990
|
-
}
|
|
991
|
-
function formatCheckMessages(_0x36ea79) {
|
|
992
|
-
const _0x5c6c17 = {
|
|
993
|
-
_0x4d29b3: 0xa9,
|
|
994
|
-
_0x2c3b0f: 0x6f
|
|
995
|
-
}, _0xd6e940 = {
|
|
996
|
-
_0x2e8645: 0x82,
|
|
997
|
-
_0x19f960: 0x1c2,
|
|
998
|
-
_0x7d2a0e: 0x1d3,
|
|
999
|
-
_0x255348: 0xb9,
|
|
1000
|
-
_0x55a0f6: 0x1c1,
|
|
1001
|
-
_0x293ca0: 0x181,
|
|
1002
|
-
_0x3e384: 0x1dd,
|
|
1003
|
-
_0x25c86a: 0x95,
|
|
1004
|
-
_0xc55d8c: 0x120
|
|
1005
|
-
}, _0x34ba93 = _0x2858e8;
|
|
1006
|
-
if (_0x36ea79[_0x34ba93(_0x5c6c17._0x4d29b3)] === 0x0)
|
|
1007
|
-
return 'No\x20new\x20messages.';
|
|
1008
|
-
return _0x36ea79['map'](_0x5b51e4 => {
|
|
1009
|
-
const _0xa577a3 = _0x34ba93, _0x417721 = _0x5b51e4[_0xa577a3(0x122)] === _0xa577a3(_0xd6e940._0x2e8645) ? _0xa577a3(_0xd6e940._0x19f960) : '', _0x3924b0 = _0x5b51e4[_0xa577a3(0x1d3)] && _0x5b51e4[_0xa577a3(_0xd6e940._0x7d2a0e)] !== _0xa577a3(0xd6) ? '\x20kind=' + _0x5b51e4[_0xa577a3(0x1d3)] : '';
|
|
1010
|
-
return _0xa577a3(_0xd6e940._0x255348) + _0x5b51e4['target'] + _0xa577a3(_0xd6e940._0x55a0f6) + _0x5b51e4['messageId'][_0xa577a3(0x1a9)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x5b51e4[_0xa577a3(_0xd6e940._0x293ca0)]) + _0x417721 + _0x3924b0 + _0xa577a3(_0xd6e940._0x3e384) + _0x5b51e4[_0xa577a3(_0xd6e940._0x25c86a)] + ':\x20' + _0x5b51e4[_0xa577a3(0x127)] + formatAttachmentSuffix(_0x5b51e4[_0xa577a3(_0xd6e940._0xc55d8c)]);
|
|
1011
|
-
})[_0x34ba93(_0x5c6c17._0x2c3b0f)]('\x0a');
|
|
1012
|
-
}
|
|
1013
|
-
function formatHistory(_0x54f334) {
|
|
1014
|
-
const _0x1907f2 = {
|
|
1015
|
-
_0x16ab74: 0xcf,
|
|
1016
|
-
_0x246fd1: 0x12a,
|
|
1017
|
-
_0x5a9761: 0x15f,
|
|
1018
|
-
_0x16279d: 0x158,
|
|
1019
|
-
_0x4bb7cf: 0xe4,
|
|
1020
|
-
_0x954e9c: 0x71,
|
|
1021
|
-
_0x5e5daf: 0xa9,
|
|
1022
|
-
_0x56ab20: 0x1a2,
|
|
1023
|
-
_0x50cfd5: 0x11f,
|
|
1024
|
-
_0x2975e6: 0xcf
|
|
1025
|
-
}, _0x2b719c = {
|
|
1026
|
-
_0x29ee26: 0x1c2,
|
|
1027
|
-
_0x323b8: 0x1e2,
|
|
1028
|
-
_0x4e8bf3: 0x177,
|
|
1029
|
-
_0x1b8d80: 0x1a4,
|
|
1030
|
-
_0x399b32: 0x1dd,
|
|
1031
|
-
_0x4d9048: 0x120
|
|
1032
|
-
}, _0x4ad508 = _0x2858e8;
|
|
1033
|
-
if (_0x54f334[_0x4ad508(_0x1907f2._0x16ab74)]['length'] === 0x0)
|
|
1034
|
-
return _0x4ad508(_0x1907f2._0x246fd1) + _0x54f334['channel'] + _0x4ad508(_0x1907f2._0x5a9761);
|
|
1035
|
-
const _0x3dafd2 = _0x54f334[_0x4ad508(0xcf)][_0x4ad508(_0x1907f2._0x16279d)](_0x518e34 => {
|
|
1036
|
-
const _0x4558c1 = _0x4ad508, _0x4cf0e0 = _0x518e34['senderType'] === 'agent' ? _0x4558c1(_0x2b719c._0x29ee26) : '', _0x57cc98 = _0x518e34[_0x4558c1(0x1d3)] && _0x518e34['kind'] !== _0x4558c1(0xd6) ? _0x4558c1(_0x2b719c._0x323b8) + _0x518e34[_0x4558c1(0x1d3)] : '';
|
|
1037
|
-
return _0x4558c1(_0x2b719c._0x4e8bf3) + _0x518e34[_0x4558c1(0x9e)] + '\x20msg=' + _0x518e34[_0x4558c1(0xff)] + _0x4558c1(_0x2b719c._0x1b8d80) + toLocalTime(_0x518e34[_0x4558c1(0x181)]) + _0x4cf0e0 + _0x57cc98 + _0x4558c1(_0x2b719c._0x399b32) + _0x518e34['senderName'] + ':\x20' + _0x518e34[_0x4558c1(0x127)] + formatAttachmentSuffix(_0x518e34[_0x4558c1(_0x2b719c._0x4d9048)]);
|
|
1038
|
-
})[_0x4ad508(0x6f)]('\x0a'), _0x58d7df = _0x54f334[_0x4ad508(0x152)] && _0x54f334[_0x4ad508(_0x1907f2._0x4bb7cf)] ? _0x4ad508(_0x1907f2._0x954e9c) + _0x54f334['messages'][_0x4ad508(_0x1907f2._0x5e5daf)] + _0x4ad508(0x86) + _0x54f334[_0x4ad508(0xe4)] + _0x4ad508(_0x1907f2._0x56ab20) : '';
|
|
1039
|
-
return _0x4ad508(_0x1907f2._0x246fd1) + _0x54f334[_0x4ad508(_0x1907f2._0x50cfd5)] + '\x20(' + _0x54f334[_0x4ad508(_0x1907f2._0x2975e6)]['length'] + '\x20messages)\x0a\x0a' + _0x3dafd2 + _0x58d7df;
|
|
1040
|
-
}
|
|
1041
|
-
function formatServerDirectory(_0x48d991) {
|
|
1042
|
-
const _0x1c5626 = {
|
|
1043
|
-
_0x4a16d0: 0xa9,
|
|
1044
|
-
_0x13952a: 0x6f,
|
|
1045
|
-
_0x5626b2: 0x79,
|
|
1046
|
-
_0x4a886a: 0x158,
|
|
1047
|
-
_0x2ab1b3: 0x188,
|
|
1048
|
-
_0x4460d6: 0x158,
|
|
1049
|
-
_0x2fda99: 0xba,
|
|
1050
|
-
_0x191813: 0xaf
|
|
1051
|
-
}, _0x24e68b = _0x2858e8, _0x3b9922 = _0x48d991['channels'][_0x24e68b(_0x1c5626._0x4a16d0)] > 0x0 ? _0x48d991['channels'][_0x24e68b(0x158)](_0x10aa0c => _0x10aa0c['description'] ? _0x24e68b(0x1c9) + _0x10aa0c[_0x24e68b(0x81)] + _0x24e68b(0x75) + _0x10aa0c[_0x24e68b(0x110)] : _0x24e68b(0x1c9) + _0x10aa0c[_0x24e68b(0x81)])[_0x24e68b(_0x1c5626._0x13952a)]('\x0a') : _0x24e68b(_0x1c5626._0x5626b2), _0x5be60 = _0x48d991['agents'][_0x24e68b(0xa9)] > 0x0 ? _0x48d991['agents'][_0x24e68b(_0x1c5626._0x4a886a)](_0x5c3a1d => _0x24e68b(0x13a) + _0x5c3a1d[_0x24e68b(0x81)])[_0x24e68b(0x6f)]('\x0a') : '(none)', _0x27c836 = _0x48d991[_0x24e68b(0x188)][_0x24e68b(0xa9)] > 0x0 ? _0x48d991[_0x24e68b(_0x1c5626._0x2ab1b3)][_0x24e68b(_0x1c5626._0x4460d6)](_0x594ad8 => _0x24e68b(0x13a) + _0x594ad8[_0x24e68b(0x81)])['join']('\x0a') : '(none)';
|
|
1052
|
-
return [
|
|
1053
|
-
_0x24e68b(_0x1c5626._0x2fda99) + _0x48d991[_0x24e68b(0x16b)],
|
|
1054
|
-
'',
|
|
1055
|
-
'###\x20Channels',
|
|
1056
|
-
_0x3b9922,
|
|
1057
|
-
'',
|
|
1058
|
-
_0x24e68b(_0x1c5626._0x191813),
|
|
1059
|
-
_0x5be60,
|
|
1060
|
-
'',
|
|
1061
|
-
_0x24e68b(0x180),
|
|
1062
|
-
_0x27c836
|
|
1063
|
-
][_0x24e68b(0x6f)]('\x0a');
|
|
1064
|
-
}
|
|
1065
|
-
function formatUploadResult(_0x34daa2) {
|
|
1066
|
-
const _0x3cd397 = { _0x3c2f34: 0x171 }, _0x525ac0 = _0x2858e8;
|
|
1067
|
-
return _0x525ac0(0x88) + _0x34daa2[_0x525ac0(_0x3cd397._0x3c2f34)] + '\x20(' + (_0x34daa2['sizeBytes'] / 0x400)[_0x525ac0(0x16d)](0x1) + _0x525ac0(0x159) + _0x34daa2['attachmentId'] + _0x525ac0(0x198);
|
|
1068
|
-
}
|
|
1069
|
-
function _0x184f() {
|
|
1070
|
-
const _0x2c9e82 = [
|
|
1071
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
1072
|
-
'BgLZDf90yxnRCW',
|
|
1073
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
1074
|
-
'ANnVBG',
|
|
1075
|
-
'Cgf5Bg9HzePZB24',
|
|
1076
|
-
'DgL0Bgu',
|
|
1077
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1078
|
-
'mtCWmZbSCfLNrhq',
|
|
1079
|
-
'Axnoyu4',
|
|
1080
|
-
'y29UDgvUDfr5Cgu',
|
|
31
|
+
import _0x24ec42 from 'node:path';
|
|
32
|
+
function _0x42c5() {
|
|
33
|
+
const _0x1f564b = [
|
|
34
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
35
|
+
'zMLSzw5HBwu',
|
|
36
|
+
'ig1ZzZ0',
|
|
37
|
+
'AhvTyw5Z',
|
|
38
|
+
'C3rYAw5NAwz5',
|
|
39
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
40
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
41
|
+
'DxrMoa',
|
|
42
|
+
'CgfYDgLJAxbHBNq',
|
|
43
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
44
|
+
'y2HLy2TnzxnZywDLCW',
|
|
45
|
+
'lsba',
|
|
46
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
47
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
48
|
+
'ChjVDg9JB2W',
|
|
49
|
+
'BwvZC2fNzv9Pzhm',
|
|
50
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
51
|
+
'y2HHBM5LBhm',
|
|
1081
52
|
'y29UBMvJDa',
|
|
1082
|
-
'
|
|
53
|
+
'w3nLCt0',
|
|
1083
54
|
'zgfLBw9UqxbPs2v5',
|
|
1084
|
-
'
|
|
1085
|
-
'
|
|
1086
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
55
|
+
'ywDLBNrjza',
|
|
56
|
+
'CMvHzeHPC3rVCNK',
|
|
1087
57
|
'l2HPC3rVCNK/',
|
|
1088
|
-
'
|
|
1089
|
-
'
|
|
1090
|
-
'
|
|
58
|
+
'iYmJienOyw5UzwXZ',
|
|
59
|
+
'DMLZAwjPBgL0Eq',
|
|
60
|
+
'Aw5JBhvKzxm',
|
|
61
|
+
'ywDLBNq',
|
|
62
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
63
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
64
|
+
'C3rHDhvZ',
|
|
65
|
+
'lMrZy29Yza',
|
|
1091
66
|
'l3rHC2TZpW',
|
|
1092
|
-
'
|
|
1093
|
-
'
|
|
1094
|
-
'
|
|
1095
|
-
'
|
|
1096
|
-
'
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'
|
|
1102
|
-
'
|
|
1103
|
-
'
|
|
1104
|
-
'
|
|
1105
|
-
'
|
|
1106
|
-
'
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'
|
|
1111
|
-
'
|
|
1112
|
-
'
|
|
1113
|
-
'
|
|
1114
|
-
'
|
|
1115
|
-
'
|
|
1116
|
-
'
|
|
1117
|
-
'l3vWBg9Hza',
|
|
1118
|
-
'zxjYB3i',
|
|
1119
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1120
|
-
'CgfYA193B3jRzxi',
|
|
1121
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1122
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1123
|
-
'ig1ZzZ0',
|
|
1124
|
-
'ihr5Cgu9ywDLBNq',
|
|
1125
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1126
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
67
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
68
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
69
|
+
'z2v0rgf0zq',
|
|
70
|
+
'C2vX',
|
|
71
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
72
|
+
'CNvUswq',
|
|
73
|
+
'z2v0sg91CNm',
|
|
74
|
+
'y29UDgvUDfr5Cgu',
|
|
75
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
76
|
+
'ywz0zxi',
|
|
77
|
+
'BgLZDf9Zzxj2zxi',
|
|
78
|
+
'yxjYyxK',
|
|
79
|
+
'zgLNzxn0',
|
|
80
|
+
'AhvTyw4',
|
|
81
|
+
'vgfZAYa',
|
|
82
|
+
'Dw5JBgfPBv90yxnR',
|
|
83
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
84
|
+
'ndi3wNnwC3zn',
|
|
85
|
+
'zMLSzv9WyxrO',
|
|
86
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
87
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
88
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
89
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
90
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
91
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1127
92
|
'D3nZoG',
|
|
1128
|
-
'
|
|
1129
|
-
'
|
|
1130
|
-
'
|
|
1131
|
-
'
|
|
1132
|
-
'
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
1136
|
-
'
|
|
1137
|
-
'
|
|
93
|
+
'AwrSzq',
|
|
94
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
95
|
+
'iYmJieH1BwfUCW',
|
|
96
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
97
|
+
'DgL0Bgu',
|
|
98
|
+
'DMLLD19MAwXL',
|
|
99
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
100
|
+
'B3b0Aw9UywW',
|
|
101
|
+
'iYmGu2vYDMvYoIa',
|
|
102
|
+
'DgfZA3m',
|
|
103
|
+
'DhjPBq',
|
|
104
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
105
|
+
'z2v0twLUDxrLCW',
|
|
106
|
+
'z2v0rNvSBfLLyxi',
|
|
107
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1138
108
|
'C3vIDgfZA19UDw1Izxi',
|
|
1139
|
-
'
|
|
1140
|
-
'
|
|
1141
|
-
'A2LUza',
|
|
1142
|
-
'BwvTyMvYCW',
|
|
1143
|
-
'BwvTyMvY',
|
|
1144
|
-
'ywz0zxi',
|
|
1145
|
-
'mtmYmeXRqM95rq',
|
|
1146
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1147
|
-
'AgfZ',
|
|
1148
|
-
'Aw1Hz2uVANbLzW',
|
|
1149
|
-
'zgvZDhjVEwvK',
|
|
1150
|
-
'CNvUswq',
|
|
1151
|
-
'xsba',
|
|
1152
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1153
|
-
'iJOGC3rHDhvZpq',
|
|
1154
|
-
'C2vYDMvYvxjS',
|
|
1155
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1156
|
-
'igTPBMq9',
|
|
1157
|
-
'CM9VDe1LC3nHz2vjza',
|
|
1158
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1159
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
1160
|
-
'mtuYnduYAfPnDhrm',
|
|
1161
|
-
'DhLWzq',
|
|
1162
|
-
'yMfZzw5HBwu',
|
|
1163
|
-
'ywrK',
|
|
1164
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1165
|
-
'DxrMoa',
|
|
1166
|
-
'CMvWBgfJzq',
|
|
1167
|
-
'ue9tva',
|
|
109
|
+
'AgfZtw9Yzq',
|
|
110
|
+
'C3vIDgfZA051BwjLCG',
|
|
1168
111
|
'zxHLy3v0Aw9Utw9Kzq',
|
|
1169
|
-
'
|
|
1170
|
-
'
|
|
1171
|
-
'
|
|
1172
|
-
'
|
|
1173
|
-
'
|
|
1174
|
-
'
|
|
1175
|
-
'
|
|
112
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
113
|
+
'l3jLy2vPDMu',
|
|
114
|
+
'ig1LC3nHz2vZkqOk',
|
|
115
|
+
'AxngAw5PDgu',
|
|
116
|
+
'CMvXDwvZDfvYBa',
|
|
117
|
+
'y2HHBM5LBe5HBwu',
|
|
118
|
+
'lsaJ',
|
|
119
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
120
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
121
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
122
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
123
|
+
'ChvZAa',
|
|
124
|
+
'DgfZAY0',
|
|
125
|
+
'zgvZy3jPChrPB24',
|
|
126
|
+
'v29YA2vYici',
|
|
127
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
128
|
+
'mtCYodHrAxPtDNe',
|
|
129
|
+
'C2LNBMfS',
|
|
130
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
131
|
+
'zM9Yy2vszwzYzxnO',
|
|
132
|
+
'DMfSDwu',
|
|
1176
133
|
'AM9PBG',
|
|
1177
|
-
'
|
|
1178
|
-
'
|
|
1179
|
-
'
|
|
1180
|
-
'
|
|
134
|
+
'DgHYzwfKtNvTyMvY',
|
|
135
|
+
'zxH0BMfTzq',
|
|
136
|
+
'Dgv4Dc9JC3y',
|
|
137
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
138
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
139
|
+
'C2vYDMvYvxjS',
|
|
140
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
141
|
+
'ihr5Cgu9ywDLBNq',
|
|
1181
142
|
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1182
|
-
'
|
|
1183
|
-
'C3rVCe1HAw4',
|
|
1184
|
-
'y2HHBM5LBe5HBwu',
|
|
1185
|
-
'ls1Hz2vUDc1Pza',
|
|
1186
|
-
'kg5VBMuP',
|
|
1187
|
-
'BwvZC2fNzv9Pzhm',
|
|
1188
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1189
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1190
|
-
'yxv0BZO',
|
|
1191
|
-
'z2v0rgf0zq',
|
|
1192
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
143
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1193
144
|
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1194
|
-
'BMfTzq',
|
|
1195
|
-
'ywDLBNq',
|
|
1196
|
-
'C29YDa',
|
|
1197
|
-
'y2HHBM5LBhm',
|
|
1198
|
-
'CNvUBMLUzW',
|
|
1199
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1200
|
-
'r0vu',
|
|
1201
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1202
|
-
'D29YA2vYCW',
|
|
1203
|
-
'DgfZA3m',
|
|
1204
|
-
'DgfZAW',
|
|
1205
145
|
'zgvSzxrL',
|
|
1206
|
-
'
|
|
1207
|
-
'ls1Zzxj2zxiTDxjS',
|
|
1208
|
-
'C2vUze1LC3nHz2u',
|
|
1209
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1210
|
-
'zMv0y2HjBxbS',
|
|
1211
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
146
|
+
'C2vZC2LVBKLK',
|
|
1212
147
|
'CMvHC29U',
|
|
1213
|
-
'mtCWodnvA29wDKS',
|
|
1214
|
-
'C2vUzgvYtMfTzq',
|
|
1215
|
-
'ywDLBNrZ',
|
|
1216
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
1217
|
-
'lcbWCMv2Awv3pq',
|
|
1218
|
-
'DgHYzwfKtNvTyMvY',
|
|
1219
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1220
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1221
|
-
'C3rYAw5NAwz5',
|
|
1222
|
-
'yxjNDG',
|
|
1223
|
-
'C2vX',
|
|
1224
|
-
'y29UDgvUDejHC2u2na',
|
|
1225
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1226
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1227
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1228
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1229
|
-
'zw51Bq',
|
|
1230
|
-
'DxbSB2fKrMLSzq',
|
|
1231
|
-
'Bwf0y2Hoyw1L',
|
|
1232
|
-
'BwLU',
|
|
1233
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
1234
|
-
'BgvUz3rO',
|
|
1235
|
-
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
1236
|
-
'DxbKyxrL',
|
|
1237
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1238
|
-
'mta5mK54ru1NDG',
|
|
1239
|
-
'AxnbCNjHEq',
|
|
1240
|
-
'iYmJiefNzw50CW',
|
|
1241
|
-
'l2zPBMLZAa',
|
|
1242
|
-
'y3jLyxrLvgfZA3m',
|
|
1243
|
-
'yM9KEu1HCMTKB3DU',
|
|
1244
|
-
'y2HHBM5LBeLK',
|
|
1245
|
-
'lIbnzxnZywDLieLeoIa',
|
|
1246
|
-
'Aw5KzxHpzG',
|
|
1247
|
-
'D29YA2vYtw9Kzq',
|
|
1248
|
-
'Dgv4Dc9WBgfPBG',
|
|
1249
|
-
'CMvZDwX0sNnVBG',
|
|
1250
|
-
'w3rHCMDLDd0',
|
|
1251
|
-
'iYmGu2vYDMvYoIa',
|
|
1252
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
1253
|
-
'AxngAwXL',
|
|
1254
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1255
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1256
|
-
'C3rHDhvZ',
|
|
1257
|
-
'ywDLBNrjza',
|
|
1258
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1259
148
|
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1260
|
-
'
|
|
1261
|
-
'
|
|
1262
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1263
|
-
'y29UDgvUDc10ExbL',
|
|
1264
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
1265
|
-
'zxHWAxjLC0f0',
|
|
1266
|
-
'y2f0y2G',
|
|
1267
|
-
'B2jQzwn0',
|
|
1268
|
-
'sfruuca',
|
|
1269
|
-
'DgfZAY0',
|
|
1270
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
1271
|
-
'zg0T',
|
|
1272
|
-
'BwvZC2fNzxm',
|
|
1273
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1274
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1275
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1276
|
-
'zxH0BMfTzq',
|
|
1277
|
-
'DgHYzwfK',
|
|
1278
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1279
|
-
'y2HHDa',
|
|
1280
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
1281
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1282
|
-
'y2XHAw1FDgfZA3m',
|
|
1283
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1284
|
-
'Aw5FChjVz3jLC3m',
|
|
1285
|
-
'DMLZAwjPBgL0Eq',
|
|
149
|
+
'y2XPzw50',
|
|
150
|
+
'C29Tzq',
|
|
1286
151
|
'yxbWBgLJyxrPB24VEMLW',
|
|
1287
|
-
'
|
|
1288
|
-
'
|
|
1289
|
-
'
|
|
1290
|
-
'
|
|
1291
|
-
'
|
|
1292
|
-
'
|
|
1293
|
-
'BMv4Den1CNnVCG',
|
|
1294
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1295
|
-
'igLUia',
|
|
1296
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
1297
|
-
'mtuWotzgzuTyCuK',
|
|
1298
|
-
'ChvZAa',
|
|
1299
|
-
'DgfZA19Pza',
|
|
1300
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1301
|
-
'D2fPDgLUz19PBNb1Da',
|
|
1302
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1303
|
-
'D29YA19RzxK',
|
|
1304
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1305
|
-
'Dw5JBgfPBv90yxnR',
|
|
1306
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
1307
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1308
|
-
'AgLNAa',
|
|
1309
|
-
'BM93',
|
|
1310
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1311
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1312
|
-
'lMrZy29Yza',
|
|
1313
|
-
'mJq5nti0mhHXq2ncEG',
|
|
152
|
+
'l3rHC2TZl2nSywLT',
|
|
153
|
+
'CgfYDgLJAxbHBNrjza',
|
|
154
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
155
|
+
'Dw5RBM93BG',
|
|
156
|
+
'C3bSAxq',
|
|
157
|
+
'mc4WlJa',
|
|
1314
158
|
'AxnjBNrLz2vY',
|
|
1315
|
-
'
|
|
1316
|
-
'BgLZDfnLCNzLCG',
|
|
1317
|
-
'CgfYDgLJAxbHBNq',
|
|
1318
|
-
'D29YA2vYsgfUzg9MzG',
|
|
1319
|
-
'zg9Uzq',
|
|
159
|
+
'Ahr0CdO',
|
|
1320
160
|
'BwvZC2fNzuLK',
|
|
1321
|
-
'
|
|
1322
|
-
'
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1325
|
-
'
|
|
1326
|
-
'Aw5JBhvKzxm',
|
|
1327
|
-
'C2vYDMvY',
|
|
1328
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1329
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1330
|
-
'BwvKAxvT',
|
|
1331
|
-
'l3nLBMq',
|
|
1332
|
-
'y2HPBgrYzw5eB25L',
|
|
1333
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1334
|
-
'zMLUza',
|
|
161
|
+
'Dw5JBgfPBvrHC2S',
|
|
162
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
163
|
+
'mJKWmdi1AvjwwhfT',
|
|
164
|
+
'zgvZDhjVEwvK',
|
|
165
|
+
'Aw1Hz2uVz2LM',
|
|
1335
166
|
'y3vYC29Y',
|
|
1336
|
-
'
|
|
1337
|
-
'
|
|
1338
|
-
'
|
|
1339
|
-
'
|
|
1340
|
-
'
|
|
1341
|
-
'
|
|
167
|
+
'DgHYzwfK',
|
|
168
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
169
|
+
'Bwf4',
|
|
170
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
171
|
+
'zgvZy3jPyMu',
|
|
172
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
173
|
+
'ANnVBG',
|
|
174
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
175
|
+
'DxbSB2fKx2zPBgu',
|
|
176
|
+
'z2v0',
|
|
177
|
+
'C29YDa',
|
|
178
|
+
'BMfTzq',
|
|
179
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1342
180
|
'ignSywLTzwq',
|
|
1343
|
-
'
|
|
1344
|
-
'
|
|
1345
|
-
'
|
|
1346
|
-
'
|
|
1347
|
-
'
|
|
181
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
182
|
+
'Cgf5Bg9HzePZB24',
|
|
183
|
+
'CMvZDwX0sNnVBG',
|
|
184
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
185
|
+
'BNvTyMvY',
|
|
186
|
+
'CM9VDe1LC3nHz2vjza',
|
|
187
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
188
|
+
'yxv0BZO',
|
|
1348
189
|
'l3n0yxj0',
|
|
1349
|
-
'
|
|
190
|
+
'l2nVBNrLBNq',
|
|
191
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
192
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
193
|
+
'kgXLz2fJEsK',
|
|
194
|
+
'igzHAwXLzdOG',
|
|
1350
195
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1351
|
-
'
|
|
1352
|
-
'y2HHBM5LBa',
|
|
196
|
+
'Aw1Hz2uVCg5N',
|
|
1353
197
|
'yxr0ywnOBwvUDhm',
|
|
1354
|
-
'
|
|
1355
|
-
'
|
|
1356
|
-
'
|
|
1357
|
-
'
|
|
1358
|
-
'
|
|
1359
|
-
'
|
|
1360
|
-
'
|
|
1361
|
-
'
|
|
1362
|
-
'
|
|
198
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
199
|
+
'BM93',
|
|
200
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
201
|
+
'mtGXofLXtgzprG',
|
|
202
|
+
'AxnbyNnVBhv0zq',
|
|
203
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
204
|
+
'BgvUz3rO',
|
|
205
|
+
'C3rHCNrZv2L0Aa',
|
|
206
|
+
'zxzLBNrtzxe',
|
|
207
|
+
'C2v0',
|
|
208
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
209
|
+
'C2vUzf9TzxnZywDL',
|
|
210
|
+
'igrVBMuP',
|
|
211
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
212
|
+
'lcbWCMv2Awv3pq',
|
|
213
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
214
|
+
'Aw5FCMv2Awv3',
|
|
215
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
216
|
+
'yxjYyxLcDwzMzxi',
|
|
217
|
+
'BwvTyMvY',
|
|
218
|
+
'sfruuca',
|
|
219
|
+
'C2vUzgvYtMfTzq',
|
|
220
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
221
|
+
'z2v0vgLTzq',
|
|
222
|
+
'zMv0y2HjBxbS',
|
|
223
|
+
'CMvWBgfJzq',
|
|
224
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
225
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
226
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1363
227
|
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1364
|
-
'
|
|
1365
|
-
'
|
|
1366
|
-
'
|
|
1367
|
-
'
|
|
1368
|
-
'
|
|
1369
|
-
'Aw1Hz2uVD2vICa',
|
|
1370
|
-
'C3vIDgfZA051BwjLCG',
|
|
1371
|
-
'Agv4',
|
|
228
|
+
'y2XHAw0GzMfPBgvK',
|
|
229
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
230
|
+
'yMvMB3jL',
|
|
231
|
+
'y2HPBgrYzw5eB25L',
|
|
232
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1372
233
|
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1373
|
-
'
|
|
1374
|
-
'
|
|
1375
|
-
'
|
|
1376
|
-
'
|
|
1377
|
-
'CMvJB3jK',
|
|
1378
|
-
'Dg9mB3DLCKnHC2u',
|
|
1379
|
-
'lsba',
|
|
1380
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1381
|
-
'ChjVDg9JB2W',
|
|
234
|
+
'Dgv4Da',
|
|
235
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
236
|
+
'Dgv4Dc9WBgfPBG',
|
|
237
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1382
238
|
'DgHYzwfKu2HVCNrjza',
|
|
1383
|
-
'
|
|
1384
|
-
'
|
|
1385
|
-
'
|
|
1386
|
-
'
|
|
239
|
+
'ktSGz290ignOyw5UzwW9',
|
|
240
|
+
'EM9K',
|
|
241
|
+
'D29YA2vYtw9Kzq',
|
|
242
|
+
'ywz0zxjtzxe',
|
|
243
|
+
'DgfZAW',
|
|
1387
244
|
'CgfYC2vjBNq',
|
|
1388
|
-
'
|
|
1389
|
-
'
|
|
1390
|
-
'
|
|
1391
|
-
'
|
|
1392
|
-
'
|
|
1393
|
-
'
|
|
245
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
246
|
+
'C3rHCNrLza',
|
|
247
|
+
'C3rYAw5N',
|
|
248
|
+
'DgfZA051BwjLCG',
|
|
249
|
+
'igTPBMq9',
|
|
250
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
251
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
252
|
+
'C3vJy2vZCW',
|
|
253
|
+
'D3m6',
|
|
254
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
255
|
+
'AxngAwXL',
|
|
256
|
+
'zMfSC2u',
|
|
1394
257
|
'ywjVCNq',
|
|
1395
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
1396
|
-
'Dgv4Da',
|
|
1397
|
-
'zMLSDgvY',
|
|
1398
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
1399
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1400
258
|
'icHPzdO',
|
|
1401
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1402
|
-
'otLrwwXVu08',
|
|
1403
|
-
'AgfZtw9Yzq',
|
|
1404
|
-
'vgfZAYa',
|
|
1405
259
|
'CxvLDwvK',
|
|
1406
|
-
'
|
|
1407
|
-
'
|
|
1408
|
-
'
|
|
1409
|
-
'
|
|
1410
|
-
'
|
|
1411
|
-
'
|
|
1412
|
-
'
|
|
1413
|
-
'
|
|
1414
|
-
'
|
|
1415
|
-
'
|
|
1416
|
-
'
|
|
1417
|
-
'
|
|
1418
|
-
'
|
|
1419
|
-
'
|
|
260
|
+
'iIbUB3qGzM91BMq',
|
|
261
|
+
'A2LUza',
|
|
262
|
+
'nJm3nJy1vwnXAfrf',
|
|
263
|
+
'zNjVBq',
|
|
264
|
+
'BgLZDf90yxnRCW',
|
|
265
|
+
'y2HHBM5LBeLK',
|
|
266
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
267
|
+
'DhLWzq',
|
|
268
|
+
'cGOTls0G',
|
|
269
|
+
'zg9Uzq',
|
|
270
|
+
'DxjNzw50',
|
|
271
|
+
'y3jLyxrLzef0',
|
|
272
|
+
'AhjLzG',
|
|
273
|
+
'kg5VBMuP',
|
|
274
|
+
'DgfYz2v0zwruyxnR',
|
|
275
|
+
'C2L6zq',
|
|
276
|
+
'zgLZCg9ZAxrPB24',
|
|
277
|
+
'Axnoyu4',
|
|
278
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
279
|
+
'Aw5FChjVz3jLC3m',
|
|
280
|
+
'ls1Zzxj2zxiTDxjS',
|
|
281
|
+
'y2HHDa',
|
|
282
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
283
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
284
|
+
'y2XHAw1uyxnRCW',
|
|
285
|
+
'C2vYDMvY',
|
|
286
|
+
'DgfZA19Pza',
|
|
287
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
288
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
289
|
+
'zg06',
|
|
1420
290
|
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1421
|
-
'
|
|
1422
|
-
'
|
|
1423
|
-
'
|
|
1424
|
-
'
|
|
1425
|
-
'
|
|
1426
|
-
'
|
|
1427
|
-
'
|
|
291
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
292
|
+
'mZGXnM94uKPsDq',
|
|
293
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
294
|
+
'y29UDgvUDc10ExbL',
|
|
295
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
296
|
+
'DgvZDa',
|
|
297
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
298
|
+
'6k+35Rgcia',
|
|
299
|
+
'zgf0yq',
|
|
300
|
+
'ihrPBwu9',
|
|
301
|
+
'CMvHzf9OAxn0B3j5',
|
|
302
|
+
'Aw1Hz2uVANbLzW',
|
|
303
|
+
'khvUA25VD24P',
|
|
304
|
+
'ls1Hz2vUDc1Pza',
|
|
305
|
+
'B2jQzwn0',
|
|
306
|
+
'l2zPBMLZAa',
|
|
307
|
+
'y2HHBM5LBa',
|
|
308
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
309
|
+
'DMfSDwvZ',
|
|
310
|
+
'yM9KEvrLEhq',
|
|
311
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
312
|
+
'y3jLyxrLx3rHC2TZ',
|
|
313
|
+
'Aw5KzxHpzG',
|
|
314
|
+
'zw51Bq',
|
|
315
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
316
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
317
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
318
|
+
'zg0T',
|
|
319
|
+
'Dg9KBW',
|
|
320
|
+
'BwLU',
|
|
321
|
+
'yM9KEu1HCMTKB3DU',
|
|
322
|
+
'mJi0nda1nKDgvKTzAG',
|
|
323
|
+
'ue9tva',
|
|
324
|
+
'D29YA2vYsgfUzg9MzG',
|
|
325
|
+
'DgfZA0LK',
|
|
326
|
+
'zxHWAxjLC0f0',
|
|
327
|
+
'r0vu',
|
|
328
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
329
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
330
|
+
'yMfZzty0',
|
|
331
|
+
'BgLTAxq',
|
|
332
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1428
333
|
'C2vYDMvYtMfTzq',
|
|
1429
|
-
'
|
|
334
|
+
'zMLSDgvY',
|
|
335
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
336
|
+
'C2vUze1LC3nHz2u',
|
|
337
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
338
|
+
'Dg9tDhjPBMC',
|
|
339
|
+
'uefuq0G',
|
|
340
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
341
|
+
'xsba',
|
|
342
|
+
'Dg9VBa',
|
|
343
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
344
|
+
'BwvZC2fNzq',
|
|
345
|
+
'igLUia',
|
|
346
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
347
|
+
'BwfW',
|
|
348
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
349
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
350
|
+
'BgLZDfrHC2TZ',
|
|
1430
351
|
'Dg9gAxHLza',
|
|
1431
|
-
'
|
|
1432
|
-
'
|
|
1433
|
-
'
|
|
1434
|
-
'
|
|
1435
|
-
'
|
|
1436
|
-
'
|
|
1437
|
-
'
|
|
1438
|
-
'
|
|
352
|
+
'Bwv0yq',
|
|
353
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
354
|
+
'zMLUza',
|
|
355
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
356
|
+
'yxr0ywnOBwvUDeLK',
|
|
357
|
+
'DgfYz2v0',
|
|
358
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
359
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
360
|
+
'C3rVCe1HAw4',
|
|
361
|
+
'y2XHAw1FDgfZA3m',
|
|
1439
362
|
'AgvHzgvYCW',
|
|
1440
|
-
'
|
|
1441
|
-
'
|
|
1442
|
-
'
|
|
1443
|
-
'
|
|
363
|
+
'w3rHCMDLDd0',
|
|
364
|
+
'C2L6zuj5DgvZ',
|
|
365
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
366
|
+
'ywjVCNrLza',
|
|
367
|
+
'y2f0y2G',
|
|
368
|
+
'ywrK',
|
|
1444
369
|
'zw50CMLLCW',
|
|
1445
|
-
'
|
|
1446
|
-
'
|
|
1447
|
-
'
|
|
1448
|
-
'
|
|
1449
|
-
'iYmJieH1BwfUCW',
|
|
1450
|
-
'y3jLyxrLzef0',
|
|
1451
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1452
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1453
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1454
|
-
'z2v0u2vJB25KCW',
|
|
1455
|
-
'C3vJy2vZCW',
|
|
370
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
371
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
372
|
+
'ls1ZzxnZAw9UlwLK',
|
|
373
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1456
374
|
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1457
|
-
'
|
|
1458
|
-
'
|
|
1459
|
-
'
|
|
1460
|
-
'
|
|
1461
|
-
'
|
|
375
|
+
'CMvZCg9UC2u',
|
|
376
|
+
'DxbSB2fKrMLSzq',
|
|
377
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
378
|
+
'nJK1ntmWAKzgBgPm',
|
|
379
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
380
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
381
|
+
'Bwf0y2Hoyw1L',
|
|
382
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
383
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
384
|
+
'BgLZDfnLCNzLCG',
|
|
385
|
+
'CgfYA193B3jRzxi',
|
|
386
|
+
'D29YA2vYCW',
|
|
387
|
+
'ig1LC3nHz2u9',
|
|
388
|
+
'ywDLBNrZ',
|
|
389
|
+
'Bg9JywXLq29TCgfYzq',
|
|
390
|
+
'C2HHmJu2',
|
|
391
|
+
'Dg9ju09tDhjPBMC',
|
|
392
|
+
'nZqYmJC2mNblBwzPBq',
|
|
393
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
394
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
395
|
+
'ihn0yxr1CZ0',
|
|
396
|
+
'zxjYB3i',
|
|
397
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
398
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
399
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
400
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
401
|
+
'BwvTyMvYCW',
|
|
402
|
+
'D29YA2vY',
|
|
403
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
404
|
+
'yxjNDG',
|
|
405
|
+
'BwvZC2fNzxm',
|
|
406
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
407
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
408
|
+
'DgHYzwfKswq',
|
|
409
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
410
|
+
'BMv4Den1CNnVCG',
|
|
411
|
+
'AgfZ',
|
|
412
|
+
'DgHYzwfKvgfYz2v0',
|
|
413
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
414
|
+
'l3vWBg9Hza',
|
|
415
|
+
'C2vUzgvYvhLWzq',
|
|
416
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
417
|
+
'v29YA2vYia',
|
|
418
|
+
'D29YA19RzxK',
|
|
419
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
420
|
+
'lMjPBG',
|
|
421
|
+
'CgfYC2u',
|
|
422
|
+
'y2fJAgveAxi',
|
|
423
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
424
|
+
'BwvKAxvT',
|
|
425
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
426
|
+
'Dg9mB3DLCKnHC2u',
|
|
427
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
428
|
+
'C2XPy2u',
|
|
429
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
430
|
+
'y29UDgvUDa',
|
|
431
|
+
'ChvIBgLJ',
|
|
432
|
+
'Agv4',
|
|
433
|
+
'l3nLCNzLCG'
|
|
1462
434
|
];
|
|
1463
|
-
|
|
1464
|
-
return
|
|
435
|
+
_0x42c5 = function () {
|
|
436
|
+
return _0x1f564b;
|
|
437
|
+
};
|
|
438
|
+
return _0x42c5();
|
|
439
|
+
}
|
|
440
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
441
|
+
'.csv': _0x3cf5af(0x149),
|
|
442
|
+
'.gif': _0x3cf5af(0x166),
|
|
443
|
+
'.jpeg': _0x3cf5af(0x1ef),
|
|
444
|
+
'.jpg': 'image/jpeg',
|
|
445
|
+
'.json': _0x3cf5af(0x14a),
|
|
446
|
+
'.md': 'text/markdown',
|
|
447
|
+
'.pdf': 'application/pdf',
|
|
448
|
+
'.png': _0x3cf5af(0x185),
|
|
449
|
+
'.svg': _0x3cf5af(0x234),
|
|
450
|
+
'.txt': _0x3cf5af(0x1ad),
|
|
451
|
+
'.webp': 'image/webp',
|
|
452
|
+
'.xml': _0x3cf5af(0x212),
|
|
453
|
+
'.zip': _0x3cf5af(0x158)
|
|
1465
454
|
};
|
|
1466
|
-
|
|
455
|
+
function guessContentType(_0x3e8c3e) {
|
|
456
|
+
const _0x3783a3 = {
|
|
457
|
+
_0x1685f6: 0x26b,
|
|
458
|
+
_0x9ad01d: 0x16d
|
|
459
|
+
}, _0x5c456b = _0x3cf5af;
|
|
460
|
+
return MIME_BY_EXTENSION[_0x24ec42[_0x5c456b(0x148)](_0x3e8c3e)[_0x5c456b(_0x3783a3._0x1685f6)]()] ?? _0x5c456b(_0x3783a3._0x9ad01d);
|
|
461
|
+
}
|
|
462
|
+
function safeFilename(_0x365ad1) {
|
|
463
|
+
return _0x365ad1['replace'](/[\\/]/g, '-');
|
|
1467
464
|
}
|
|
1468
|
-
function
|
|
1469
|
-
|
|
465
|
+
function extensionFor(_0x50ccce) {
|
|
466
|
+
const _0x16f56e = { _0x574ec2: 0x232 }, _0x401824 = _0x3cf5af, _0x3ca6be = Object[_0x401824(_0x16f56e._0x574ec2)](MIME_BY_EXTENSION)[_0x401824(0x223)](([, _0x11213b]) => _0x11213b === _0x50ccce);
|
|
467
|
+
return _0x3ca6be?.[0x0] ?? _0x401824(0x265);
|
|
1470
468
|
}
|
|
1471
|
-
function
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
469
|
+
async function prepareUploadFile(_0x3ab3c7, _0x55cecd = {}) {
|
|
470
|
+
const _0x35e743 = {
|
|
471
|
+
_0x35683c: 0x18b,
|
|
472
|
+
_0x29f98e: 0x230,
|
|
473
|
+
_0x1cc4c5: 0x1ae,
|
|
474
|
+
_0x201818: 0x1d4,
|
|
475
|
+
_0x10e790: 0x20b
|
|
476
|
+
}, _0x4b8a1a = _0x3cf5af;
|
|
477
|
+
if (!_0x24ec42[_0x4b8a1a(_0x35e743._0x35683c)](_0x3ab3c7))
|
|
478
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
479
|
+
const _0x3afd7a = await stat(_0x3ab3c7)[_0x4b8a1a(_0x35e743._0x29f98e)](() => null);
|
|
480
|
+
if (!_0x3afd7a || !_0x3afd7a[_0x4b8a1a(0x1c0)]())
|
|
481
|
+
throw new Error(_0x4b8a1a(_0x35e743._0x1cc4c5) + _0x3ab3c7);
|
|
482
|
+
const _0x127092 = _0x55cecd[_0x4b8a1a(0x23c)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
483
|
+
if (_0x3afd7a[_0x4b8a1a(_0x35e743._0x201818)] > _0x127092)
|
|
484
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x3afd7a['size']);
|
|
485
|
+
const _0x1c184d = await readFile(_0x3ab3c7), _0x20b12c = _0x24ec42['basename'](_0x3ab3c7);
|
|
486
|
+
return {
|
|
487
|
+
'contentBase64': _0x1c184d['toString'](_0x4b8a1a(_0x35e743._0x10e790)),
|
|
488
|
+
'contentType': guessContentType(_0x20b12c),
|
|
489
|
+
'filename': _0x20b12c,
|
|
490
|
+
'sizeBytes': _0x3afd7a[_0x4b8a1a(_0x35e743._0x201818)]
|
|
491
|
+
};
|
|
1490
492
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
493
|
+
function createAttachmentCache(_0x191a9b = {}) {
|
|
494
|
+
const _0x5b9be5 = {
|
|
495
|
+
_0x1ad078: 0x267,
|
|
496
|
+
_0x2a7b52: 0x292,
|
|
497
|
+
_0x5a7320: 0x186
|
|
498
|
+
}, _0x4a7b3e = {
|
|
499
|
+
_0x5d2ca0: 0x108,
|
|
500
|
+
_0x2fd37f: 0x128,
|
|
501
|
+
_0x1a3b20: 0x108
|
|
502
|
+
}, _0x1a2ed3 = { _0x4faa71: 0x146 }, _0x2461d6 = _0x3cf5af, _0x33ea2f = _0x191a9b[_0x2461d6(_0x5b9be5._0x1ad078)] ?? _0x24ec42[_0x2461d6(0x146)](homedir(), _0x2461d6(_0x5b9be5._0x2a7b52), _0x2461d6(_0x5b9be5._0x5a7320));
|
|
503
|
+
return {
|
|
504
|
+
'cacheDir': _0x33ea2f,
|
|
505
|
+
async 'findCachedPath'(_0x58efca) {
|
|
506
|
+
const _0x15859f = _0x2461d6;
|
|
507
|
+
await mkdir(_0x33ea2f, { 'recursive': !![] });
|
|
508
|
+
const _0x565bd5 = await readdir(_0x33ea2f), _0x6f630c = _0x565bd5[_0x15859f(0x223)](_0x57a1db => _0x57a1db[_0x15859f(0x18e)](_0x58efca + '-') || _0x57a1db[_0x15859f(0x18e)](_0x58efca));
|
|
509
|
+
return _0x6f630c ? _0x24ec42[_0x15859f(_0x1a2ed3._0x4faa71)](_0x33ea2f, _0x6f630c) : null;
|
|
510
|
+
},
|
|
511
|
+
async 'save'(_0x2ff6b7) {
|
|
512
|
+
const _0xb494aa = _0x2461d6;
|
|
513
|
+
await mkdir(_0x33ea2f, { 'recursive': !![] });
|
|
514
|
+
const _0x35bef9 = _0x2ff6b7[_0xb494aa(_0x4a7b3e._0x5d2ca0)]?.[_0xb494aa(_0x4a7b3e._0x2fd37f)]() ? safeFilename(_0x2ff6b7[_0xb494aa(_0x4a7b3e._0x1a3b20)]) : '' + _0x2ff6b7[_0xb494aa(0x225)] + extensionFor(_0x2ff6b7[_0xb494aa(0x10b)]), _0x3bcb14 = _0x24ec42[_0xb494aa(0x146)](_0x33ea2f, _0x2ff6b7[_0xb494aa(0x225)] + '-' + _0x35bef9);
|
|
515
|
+
return await writeFile(_0x3bcb14, _0x2ff6b7[_0xb494aa(0x1ec)]), _0x3bcb14;
|
|
516
|
+
}
|
|
517
|
+
};
|
|
1504
518
|
}
|
|
1505
|
-
function
|
|
1506
|
-
|
|
1507
|
-
const
|
|
1508
|
-
let
|
|
1509
|
-
if (
|
|
1510
|
-
var
|
|
1511
|
-
const
|
|
1512
|
-
let
|
|
1513
|
-
for (let
|
|
1514
|
-
|
|
519
|
+
function _0x7e16(_0x2defe2, _0x2f2cf2) {
|
|
520
|
+
_0x2defe2 = _0x2defe2 - 0x106;
|
|
521
|
+
const _0x42c546 = _0x42c5();
|
|
522
|
+
let _0x7e1602 = _0x42c546[_0x2defe2];
|
|
523
|
+
if (_0x7e16['dMudok'] === undefined) {
|
|
524
|
+
var _0x3a16fe = function (_0x1982cc) {
|
|
525
|
+
const _0x20ce97 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
526
|
+
let _0x24ec42 = '', _0x3e8c3e = '';
|
|
527
|
+
for (let _0x365ad1 = 0x0, _0x50ccce, _0x3ca6be, _0x11213b = 0x0; _0x3ca6be = _0x1982cc['charAt'](_0x11213b++); ~_0x3ca6be && (_0x50ccce = _0x365ad1 % 0x4 ? _0x50ccce * 0x40 + _0x3ca6be : _0x3ca6be, _0x365ad1++ % 0x4) ? _0x24ec42 += String['fromCharCode'](0xff & _0x50ccce >> (-0x2 * _0x365ad1 & 0x6)) : 0x0) {
|
|
528
|
+
_0x3ca6be = _0x20ce97['indexOf'](_0x3ca6be);
|
|
1515
529
|
}
|
|
1516
|
-
for (let
|
|
1517
|
-
|
|
530
|
+
for (let _0x3ab3c7 = 0x0, _0x55cecd = _0x24ec42['length']; _0x3ab3c7 < _0x55cecd; _0x3ab3c7++) {
|
|
531
|
+
_0x3e8c3e += '%' + ('00' + _0x24ec42['charCodeAt'](_0x3ab3c7)['toString'](0x10))['slice'](-0x2);
|
|
1518
532
|
}
|
|
1519
|
-
return decodeURIComponent(
|
|
533
|
+
return decodeURIComponent(_0x3e8c3e);
|
|
534
|
+
};
|
|
535
|
+
_0x7e16['YfdngP'] = _0x3a16fe, _0x7e16['JPTxrN'] = {}, _0x7e16['dMudok'] = !![];
|
|
536
|
+
}
|
|
537
|
+
const _0x417066 = _0x42c546[0x0], _0x3f7716 = _0x2defe2 + _0x417066, _0x128511 = _0x7e16['JPTxrN'][_0x3f7716];
|
|
538
|
+
return !_0x128511 ? (_0x7e1602 = _0x7e16['YfdngP'](_0x7e1602), _0x7e16['JPTxrN'][_0x3f7716] = _0x7e1602) : _0x7e1602 = _0x128511, _0x7e1602;
|
|
539
|
+
}
|
|
540
|
+
import {
|
|
541
|
+
createHash,
|
|
542
|
+
randomUUID
|
|
543
|
+
} from 'node:crypto';
|
|
544
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x3cf5af(0x143);
|
|
545
|
+
function ensureSegment(_0x4beff1) {
|
|
546
|
+
const _0x4f9ab6 = { _0x6c27f8: 0x128 }, _0x37dbe4 = _0x3cf5af, _0x175cc6 = _0x4beff1[_0x37dbe4(_0x4f9ab6._0x6c27f8)]();
|
|
547
|
+
if (!_0x175cc6 || _0x175cc6[_0x37dbe4(0x28d)](':'))
|
|
548
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
549
|
+
return _0x175cc6;
|
|
550
|
+
}
|
|
551
|
+
function parseThreadParts(_0x12c378) {
|
|
552
|
+
const _0x1982d8 = {
|
|
553
|
+
_0x4cbe00: 0x15d,
|
|
554
|
+
_0x3a50d3: 0x18d
|
|
555
|
+
}, _0x512f50 = _0x3cf5af, _0x116a44 = _0x12c378[_0x512f50(_0x1982d8._0x4cbe00)](':');
|
|
556
|
+
if (_0x116a44[_0x512f50(_0x1982d8._0x3a50d3)] < 0x1 || _0x116a44['length'] > 0x2)
|
|
557
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
558
|
+
return {
|
|
559
|
+
'channelName': ensureSegment(_0x116a44[0x0] ?? ''),
|
|
560
|
+
'threadShortId': _0x116a44[0x1] ? ensureSegment(_0x116a44[0x1]) : null
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function parseTarget(_0x1a378f) {
|
|
564
|
+
const _0x113455 = {
|
|
565
|
+
_0x2cf7eb: 0x128,
|
|
566
|
+
_0x7c427: 0x18e,
|
|
567
|
+
_0x447998: 0x1af,
|
|
568
|
+
_0x4fbf72: 0x1f4,
|
|
569
|
+
_0xa269f2: 0x136,
|
|
570
|
+
_0x406f87: 0x168,
|
|
571
|
+
_0x103007: 0x1e2,
|
|
572
|
+
_0x22cfba: 0x1ff,
|
|
573
|
+
_0x4d83ac: 0x136,
|
|
574
|
+
_0x31382c: 0x136
|
|
575
|
+
}, _0x4ec9da = _0x3cf5af, _0x213f7f = _0x1a378f[_0x4ec9da(_0x113455._0x2cf7eb)]();
|
|
576
|
+
if (!_0x213f7f)
|
|
577
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
578
|
+
if (_0x213f7f[_0x4ec9da(_0x113455._0x7c427)]('#')) {
|
|
579
|
+
const _0x49e4a3 = parseThreadParts(_0x213f7f['slice'](0x1)), _0x4771c5 = '#' + _0x49e4a3[_0x4ec9da(0x136)];
|
|
580
|
+
if (!_0x49e4a3[_0x4ec9da(_0x113455._0x447998)])
|
|
581
|
+
return {
|
|
582
|
+
'channelName': _0x49e4a3[_0x4ec9da(0x136)],
|
|
583
|
+
'channelTarget': _0x4771c5,
|
|
584
|
+
'kind': _0x4ec9da(_0x113455._0x4fbf72),
|
|
585
|
+
'target': _0x4771c5
|
|
586
|
+
};
|
|
587
|
+
return {
|
|
588
|
+
'channelName': _0x49e4a3[_0x4ec9da(_0x113455._0xa269f2)],
|
|
589
|
+
'channelTarget': _0x4771c5,
|
|
590
|
+
'kind': _0x4ec9da(_0x113455._0x406f87),
|
|
591
|
+
'target': _0x4771c5 + ':' + _0x49e4a3[_0x4ec9da(0x1af)],
|
|
592
|
+
'threadShortId': _0x49e4a3[_0x4ec9da(0x1af)]
|
|
593
|
+
};
|
|
594
|
+
}
|
|
595
|
+
if (_0x213f7f['startsWith'](_0x4ec9da(_0x113455._0x103007))) {
|
|
596
|
+
const _0x5e01b0 = parseThreadParts(_0x213f7f[_0x4ec9da(0x26d)](0x3));
|
|
597
|
+
if (!_0x5e01b0['channelName'][_0x4ec9da(0x18e)](_0x4ec9da(_0x113455._0x22cfba)))
|
|
598
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
599
|
+
const _0x5aaa06 = _0x4ec9da(_0x113455._0x103007) + _0x5e01b0[_0x4ec9da(_0x113455._0xa269f2)];
|
|
600
|
+
if (!_0x5e01b0['threadShortId'])
|
|
601
|
+
return {
|
|
602
|
+
'channelName': _0x5e01b0[_0x4ec9da(_0x113455._0x4d83ac)],
|
|
603
|
+
'channelTarget': _0x5aaa06,
|
|
604
|
+
'kind': _0x4ec9da(_0x113455._0x4fbf72),
|
|
605
|
+
'target': _0x5aaa06
|
|
606
|
+
};
|
|
607
|
+
return {
|
|
608
|
+
'channelName': _0x5e01b0[_0x4ec9da(_0x113455._0x31382c)],
|
|
609
|
+
'channelTarget': _0x5aaa06,
|
|
610
|
+
'kind': 'thread',
|
|
611
|
+
'target': _0x5aaa06 + ':' + _0x5e01b0[_0x4ec9da(_0x113455._0x447998)],
|
|
612
|
+
'threadShortId': _0x5e01b0[_0x4ec9da(0x1af)]
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
616
|
+
}
|
|
617
|
+
function asErrorMessage(_0xc6bdf8, _0x3fee3b) {
|
|
618
|
+
const _0x2351b2 = { _0x12806e: 0x128 }, _0x2767e5 = _0x3cf5af;
|
|
619
|
+
if (typeof _0xc6bdf8 === _0x2767e5(0x1b8) && _0xc6bdf8[_0x2767e5(_0x2351b2._0x12806e)]())
|
|
620
|
+
return _0xc6bdf8;
|
|
621
|
+
return _0x3fee3b;
|
|
622
|
+
}
|
|
623
|
+
function asRecord(_0x2dfd11) {
|
|
624
|
+
const _0x443978 = _0x3cf5af;
|
|
625
|
+
return typeof _0x2dfd11 === _0x443978(0x1f2) && _0x2dfd11 !== null ? _0x2dfd11 : {};
|
|
626
|
+
}
|
|
627
|
+
function stableStringify(_0x51e55a) {
|
|
628
|
+
const _0x78e015 = {
|
|
629
|
+
_0x367efd: 0x232,
|
|
630
|
+
_0x1d99eb: 0x20f,
|
|
631
|
+
_0x55f69e: 0x172,
|
|
632
|
+
_0x167f8e: 0x146
|
|
633
|
+
}, _0x2c6b33 = _0x3cf5af;
|
|
634
|
+
if (_0x51e55a === null || typeof _0x51e55a !== _0x2c6b33(0x1f2))
|
|
635
|
+
return JSON[_0x2c6b33(0x277)](_0x51e55a);
|
|
636
|
+
if (Array['isArray'](_0x51e55a))
|
|
637
|
+
return '[' + _0x51e55a['map'](_0x412a0c => stableStringify(_0x412a0c))['join'](',') + ']';
|
|
638
|
+
const _0x3d83a6 = Object[_0x2c6b33(_0x78e015._0x367efd)](_0x51e55a)[_0x2c6b33(_0x78e015._0x1d99eb)](([, _0x5e3317]) => _0x5e3317 !== void 0x0)[_0x2c6b33(_0x78e015._0x55f69e)](([_0x16ca27], [_0x953643]) => _0x16ca27[_0x2c6b33(0x246)](_0x953643))['map'](([_0x156b09, _0xf840f0]) => JSON[_0x2c6b33(0x277)](_0x156b09) + ':' + stableStringify(_0xf840f0));
|
|
639
|
+
return '{' + _0x3d83a6[_0x2c6b33(_0x78e015._0x167f8e)](',') + '}';
|
|
640
|
+
}
|
|
641
|
+
function createHeaders(_0x51d93d) {
|
|
642
|
+
const _0x1c4662 = _0x3cf5af;
|
|
643
|
+
return {
|
|
644
|
+
'Content-Type': _0x1c4662(0x14a),
|
|
645
|
+
'x-daemon-api-key': _0x51d93d
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
function toHttpBaseUrl(_0x5c7df9) {
|
|
649
|
+
const _0x3f5c80 = {
|
|
650
|
+
_0x421328: 0x1be,
|
|
651
|
+
_0x6c1457: 0x281,
|
|
652
|
+
_0x594bb2: 0x11d
|
|
653
|
+
}, _0x5931ae = _0x3cf5af, _0xab3725 = new URL(_0x5c7df9);
|
|
654
|
+
if (_0xab3725[_0x5931ae(0x281)] === _0x5931ae(_0x3f5c80._0x421328))
|
|
655
|
+
_0xab3725[_0x5931ae(_0x3f5c80._0x6c1457)] = _0x5931ae(0x160);
|
|
656
|
+
else
|
|
657
|
+
_0xab3725[_0x5931ae(_0x3f5c80._0x6c1457)] === _0x5931ae(_0x3f5c80._0x594bb2) && (_0xab3725['protocol'] = 'https:');
|
|
658
|
+
return _0xab3725['toString']()[_0x5931ae(0x1a0)](/\/$/, '');
|
|
659
|
+
}
|
|
660
|
+
function isMentionBoundary(_0x2f0c01) {
|
|
661
|
+
return !_0x2f0c01 || /\s|[([{'",。!?、:;]/['test'](_0x2f0c01);
|
|
662
|
+
}
|
|
663
|
+
function isMentionTerminal(_0x319925) {
|
|
664
|
+
const _0x55914f = _0x3cf5af;
|
|
665
|
+
return !_0x319925 || /\s|[)\]}'",。!?、:;,.!?]/[_0x55914f(0x1e9)](_0x319925);
|
|
666
|
+
}
|
|
667
|
+
function buildMatchableEntries(_0x22dfe6) {
|
|
668
|
+
const _0x3975ff = {
|
|
669
|
+
_0x3bb23d: 0x13c,
|
|
670
|
+
_0x4afffa: 0x173,
|
|
671
|
+
_0xfeef4d: 0x13c,
|
|
672
|
+
_0x2ca369: 0x240
|
|
673
|
+
}, _0x35b30d = _0x3cf5af, _0x343d93 = [];
|
|
674
|
+
for (const _0x18ae4a of [
|
|
675
|
+
..._0x22dfe6[_0x35b30d(0x245)],
|
|
676
|
+
..._0x22dfe6['humans']
|
|
677
|
+
]) {
|
|
678
|
+
_0x343d93[_0x35b30d(_0x3975ff._0x3bb23d)]({
|
|
679
|
+
'matchName': _0x18ae4a[_0x35b30d(0x173)],
|
|
680
|
+
'matchNameLower': _0x18ae4a[_0x35b30d(_0x3975ff._0x4afffa)][_0x35b30d(0x240)](),
|
|
681
|
+
'participantId': _0x18ae4a['id']
|
|
682
|
+
}), _0x18ae4a['id'] !== _0x18ae4a['name'] && _0x343d93[_0x35b30d(_0x3975ff._0xfeef4d)]({
|
|
683
|
+
'matchName': _0x18ae4a['id'],
|
|
684
|
+
'matchNameLower': _0x18ae4a['id'][_0x35b30d(_0x3975ff._0x2ca369)](),
|
|
685
|
+
'participantId': _0x18ae4a['id']
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
return _0x343d93;
|
|
689
|
+
}
|
|
690
|
+
function extractMentionedParticipantIds(_0x4497e5, _0x2f09ab) {
|
|
691
|
+
const _0x395232 = {
|
|
692
|
+
_0x106a88: 0x172,
|
|
693
|
+
_0x5f05a2: 0x26d,
|
|
694
|
+
_0x513df7: 0x223,
|
|
695
|
+
_0xd89c2: 0x15a,
|
|
696
|
+
_0xd6dd06: 0x231,
|
|
697
|
+
_0x41d525: 0x15a,
|
|
698
|
+
_0x15adf2: 0x18d
|
|
699
|
+
}, _0x28bcd3 = {
|
|
700
|
+
_0x421444: 0x138,
|
|
701
|
+
_0x39f49f: 0x18d
|
|
702
|
+
}, _0x15574b = _0x3cf5af, _0x178cca = buildMatchableEntries(_0x2f09ab)[_0x15574b(_0x395232._0x106a88)]((_0x49636f, _0x2d4c91) => _0x2d4c91['matchName'][_0x15574b(0x18d)] - _0x49636f[_0x15574b(0x23e)][_0x15574b(0x18d)]), _0x5b662b = [], _0x2a2529 = new Set();
|
|
703
|
+
for (let _0x3f5351 = 0x0; _0x3f5351 < _0x4497e5[_0x15574b(0x18d)]; _0x3f5351 += 0x1) {
|
|
704
|
+
if (_0x4497e5[_0x3f5351] !== '@' || !isMentionBoundary(_0x4497e5[_0x3f5351 - 0x1]))
|
|
705
|
+
continue;
|
|
706
|
+
const _0x3c16c2 = _0x4497e5[_0x15574b(_0x395232._0x5f05a2)](_0x3f5351 + 0x1), _0x551eee = _0x3c16c2['toLocaleLowerCase'](), _0x3dd61d = _0x178cca[_0x15574b(_0x395232._0x513df7)](_0x55375c => {
|
|
707
|
+
const _0x34613c = _0x15574b;
|
|
708
|
+
if (!_0x551eee[_0x34613c(0x18e)](_0x55375c[_0x34613c(_0x28bcd3._0x421444)]))
|
|
709
|
+
return ![];
|
|
710
|
+
return isMentionTerminal(_0x3c16c2[_0x55375c['matchName'][_0x34613c(_0x28bcd3._0x39f49f)]]);
|
|
711
|
+
});
|
|
712
|
+
if (!_0x3dd61d || _0x2a2529[_0x15574b(0x25c)](_0x3dd61d[_0x15574b(_0x395232._0xd89c2)]))
|
|
713
|
+
continue;
|
|
714
|
+
_0x2a2529[_0x15574b(_0x395232._0xd6dd06)](_0x3dd61d[_0x15574b(0x15a)]), _0x5b662b[_0x15574b(0x13c)](_0x3dd61d[_0x15574b(_0x395232._0x41d525)]), _0x3f5351 += _0x3dd61d[_0x15574b(0x23e)][_0x15574b(_0x395232._0x15adf2)];
|
|
715
|
+
}
|
|
716
|
+
return _0x5b662b;
|
|
717
|
+
}
|
|
718
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
719
|
+
function anySignal(..._0x583eb7) {
|
|
720
|
+
const _0x3779ac = { _0x43eadd: 0x1c2 }, _0x11dc2d = _0x3cf5af, _0x1ae520 = new AbortController();
|
|
721
|
+
for (const _0x48c288 of _0x583eb7) {
|
|
722
|
+
if (_0x48c288[_0x11dc2d(0x22f)])
|
|
723
|
+
return _0x1ae520[_0x11dc2d(_0x3779ac._0x43eadd)](_0x48c288[_0x11dc2d(0x154)]), _0x1ae520['signal'];
|
|
724
|
+
_0x48c288['addEventListener']('abort', () => _0x1ae520[_0x11dc2d(0x1c2)](_0x48c288['reason']), {
|
|
725
|
+
'once': !![],
|
|
726
|
+
'signal': _0x1ae520[_0x11dc2d(0x142)]
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
return _0x1ae520['signal'];
|
|
730
|
+
}
|
|
731
|
+
function createInternalAgentClient(_0x378182) {
|
|
732
|
+
const _0x389af4 = {
|
|
733
|
+
_0x370fa0: 0x26c,
|
|
734
|
+
_0x551da3: 0x17a,
|
|
735
|
+
_0x2b488a: 0x1e3,
|
|
736
|
+
_0x42fbb6: 0x128,
|
|
737
|
+
_0x28f89c: 0x153,
|
|
738
|
+
_0x279441: 0x128,
|
|
739
|
+
_0x5df096: 0x1b6,
|
|
740
|
+
_0x3977bd: 0x1dc,
|
|
741
|
+
_0x58750d: 0x129,
|
|
742
|
+
_0x228d2d: 0x128,
|
|
743
|
+
_0x5a2db9: 0x14c
|
|
744
|
+
}, _0x2d1927 = {
|
|
745
|
+
_0x4d21cd: 0x190,
|
|
746
|
+
_0x83e488: 0x288,
|
|
747
|
+
_0x52a0fa: 0x107,
|
|
748
|
+
_0x19e27d: 0x20f,
|
|
749
|
+
_0x435e45: 0x284,
|
|
750
|
+
_0x4f2e20: 0x1ca,
|
|
751
|
+
_0xfb7054: 0x17b,
|
|
752
|
+
_0x4ee86c: 0x147,
|
|
753
|
+
_0x9e8ef3: 0x171,
|
|
754
|
+
_0x13c76e: 0x232,
|
|
755
|
+
_0x9e4912: 0x16a,
|
|
756
|
+
_0x2a59ab: 0x18d,
|
|
757
|
+
_0x1741c5: 0x256,
|
|
758
|
+
_0x4713f5: 0x26f,
|
|
759
|
+
_0x1e41a7: 0x1c6,
|
|
760
|
+
_0x517379: 0x260,
|
|
761
|
+
_0x26e3e1: 0x202,
|
|
762
|
+
_0x5eeca6: 0x1b8,
|
|
763
|
+
_0x42e902: 0x13c,
|
|
764
|
+
_0x359c47: 0x248
|
|
765
|
+
}, _0x433d67 = {
|
|
766
|
+
_0xcd1b84: 0x1ca,
|
|
767
|
+
_0x445004: 0x20c
|
|
768
|
+
}, _0x5afa7e = {
|
|
769
|
+
_0x484ef9: 0x22e,
|
|
770
|
+
_0x47dc05: 0x208,
|
|
771
|
+
_0x12ee1a: 0x22e,
|
|
772
|
+
_0xffa40: 0x142,
|
|
773
|
+
_0x409ccb: 0x10b,
|
|
774
|
+
_0x1bbb14: 0x22b,
|
|
775
|
+
_0x3f0ca5: 0x171,
|
|
776
|
+
_0x449243: 0x108
|
|
777
|
+
}, _0x2e0c40 = {
|
|
778
|
+
_0x218a76: 0x1f4,
|
|
779
|
+
_0x4ad477: 0x259,
|
|
780
|
+
_0xe54975: 0x295,
|
|
781
|
+
_0x5af325: 0x288,
|
|
782
|
+
_0x384a55: 0x25f,
|
|
783
|
+
_0x4ebf94: 0x226,
|
|
784
|
+
_0x58a4be: 0x10b,
|
|
785
|
+
_0x102d81: 0x1ec
|
|
786
|
+
}, _0x551db2 = {
|
|
787
|
+
_0x10f987: 0x23d,
|
|
788
|
+
_0x81e9fb: 0x204
|
|
789
|
+
}, _0x3b4247 = {
|
|
790
|
+
_0x59a1cc: 0x10c,
|
|
791
|
+
_0x506714: 0x288,
|
|
792
|
+
_0x7f0428: 0x1a1,
|
|
793
|
+
_0x18dc88: 0x277,
|
|
794
|
+
_0x23d91c: 0x113
|
|
795
|
+
}, _0x25f0b3 = { _0x3e14c5: 0x277 }, _0x423577 = {
|
|
796
|
+
_0x525a29: 0x1f4,
|
|
797
|
+
_0x1d4a8b: 0x190,
|
|
798
|
+
_0x3a486d: 0x291
|
|
799
|
+
}, _0x9789d8 = {
|
|
800
|
+
_0x2f9bbf: 0x109,
|
|
801
|
+
_0x4cce09: 0x277,
|
|
802
|
+
_0x3a6290: 0x109
|
|
803
|
+
}, _0x2fd1f7 = {
|
|
804
|
+
_0x1db28f: 0x1a3,
|
|
805
|
+
_0x30a826: 0x17e,
|
|
806
|
+
_0x18d29e: 0x1ec
|
|
807
|
+
}, _0x34ed25 = {
|
|
808
|
+
_0xdfc7c4: 0x1db,
|
|
809
|
+
_0x38b7ae: 0x277,
|
|
810
|
+
_0x233688: 0x204
|
|
811
|
+
}, _0x12f092 = { _0x120e86: 0x208 }, _0x18b573 = {
|
|
812
|
+
_0x470b4f: 0x226,
|
|
813
|
+
_0x4ef096: 0x288,
|
|
814
|
+
_0x1c9cb4: 0x28c
|
|
815
|
+
}, _0x1cd4a9 = {
|
|
816
|
+
_0x12b53a: 0x201,
|
|
817
|
+
_0x1776e5: 0x20c,
|
|
818
|
+
_0x44d79c: 0x1ca,
|
|
819
|
+
_0x89ab59: 0x167,
|
|
820
|
+
_0x5206ca: 0x10d,
|
|
821
|
+
_0x563b58: 0x10c,
|
|
822
|
+
_0x1fd374: 0x288,
|
|
823
|
+
_0x38737d: 0x208,
|
|
824
|
+
_0x32363a: 0x1ec,
|
|
825
|
+
_0x15abcf: 0x215,
|
|
826
|
+
_0x507362: 0x221,
|
|
827
|
+
_0x351f1f: 0x12e
|
|
828
|
+
}, _0x51a651 = { _0x7e39c3: 0x27b }, _0x3a3764 = { _0x161eb7: 0x15a }, _0x352c1d = {
|
|
829
|
+
_0x105b63: 0x168,
|
|
830
|
+
_0x169c65: 0x147,
|
|
831
|
+
_0x59cca7: 0x1af,
|
|
832
|
+
_0x5315fa: 0x18e,
|
|
833
|
+
_0x2955cd: 0x259
|
|
834
|
+
}, _0x32dd32 = {
|
|
835
|
+
_0x52900c: 0x215,
|
|
836
|
+
_0x54cccb: 0x147,
|
|
837
|
+
_0x5dc1cf: 0x1af,
|
|
838
|
+
_0x582d9e: 0x17b,
|
|
839
|
+
_0x1e1979: 0x18e,
|
|
840
|
+
_0x2263b4: 0x259
|
|
841
|
+
}, _0x5af2af = {
|
|
842
|
+
_0x1c24f3: 0x215,
|
|
843
|
+
_0xde7ab9: 0x17b,
|
|
844
|
+
_0x1395bf: 0x17b,
|
|
845
|
+
_0x1b372e: 0x259,
|
|
846
|
+
_0x2bea5b: 0x259
|
|
847
|
+
}, _0x29dfc6 = {
|
|
848
|
+
_0x133a55: 0x245,
|
|
849
|
+
_0x48cd94: 0x157
|
|
850
|
+
}, _0x477be2 = {
|
|
851
|
+
_0x477405: 0x288,
|
|
852
|
+
_0x3db9e1: 0x20d,
|
|
853
|
+
_0x5386de: 0x226,
|
|
854
|
+
_0x3e2abd: 0x1ca,
|
|
855
|
+
_0x4a68df: 0x215,
|
|
856
|
+
_0x13ae28: 0x1ec
|
|
857
|
+
}, _0x759e19 = {
|
|
858
|
+
_0x1867d6: 0x264,
|
|
859
|
+
_0x350e28: 0x277,
|
|
860
|
+
_0x285087: 0x19b
|
|
861
|
+
}, _0x2cf1d6 = { _0x35c750: 0x277 }, _0x2ebd2c = {
|
|
862
|
+
_0x212902: 0x142,
|
|
863
|
+
_0x48946d: 0x19b,
|
|
864
|
+
_0x9022b: 0x291
|
|
865
|
+
}, _0x4732f0 = {
|
|
866
|
+
_0x21a3ed: 0x142,
|
|
867
|
+
_0x45547f: 0x142,
|
|
868
|
+
_0x5acd46: 0x1bd,
|
|
869
|
+
_0x1ba173: 0x24d,
|
|
870
|
+
_0x320d44: 0x291
|
|
871
|
+
}, _0x36411c = {
|
|
872
|
+
_0x571902: 0x228,
|
|
873
|
+
_0x6212f2: 0x228,
|
|
874
|
+
_0x41b303: 0x128,
|
|
875
|
+
_0x364f49: 0x188,
|
|
876
|
+
_0x4f3410: 0x152,
|
|
877
|
+
_0x3c31ab: 0x110,
|
|
878
|
+
_0x14e10a: 0x271,
|
|
879
|
+
_0x5d8883: 0x171,
|
|
880
|
+
_0x24d044: 0x145,
|
|
881
|
+
_0x53a392: 0x17d
|
|
882
|
+
}, _0x4f3d71 = { _0x3122b7: 0x213 }, _0x46852e = {
|
|
883
|
+
_0x29987d: 0x238,
|
|
884
|
+
_0x55a4dc: 0x1e7,
|
|
885
|
+
_0x2bba84: 0x128,
|
|
886
|
+
_0x2bbf4c: 0x135,
|
|
887
|
+
_0x235162: 0x169,
|
|
888
|
+
_0x23df55: 0x291,
|
|
889
|
+
_0x53154d: 0x24a
|
|
890
|
+
}, _0x14f5b3 = _0x3cf5af, _0x3d26df = _0x378182[_0x14f5b3(0x19f)] ?? fetch, _0x4d11d4 = _0x378182[_0x14f5b3(_0x389af4._0x370fa0)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3bbe76 = typeof _0x378182['initialLastSeenSeq'] === _0x14f5b3(_0x389af4._0x551da3) && _0x378182[_0x14f5b3(0x1e3)] > 0x0 ? _0x378182[_0x14f5b3(_0x389af4._0x2b488a)] : 0x0, _0x543d13 = _0x378182['daemonLocalUrl']?.[_0x14f5b3(_0x389af4._0x42fbb6)]() || void 0x0, _0x329f69 = _0x378182[_0x14f5b3(_0x389af4._0x28f89c)]?.[_0x14f5b3(_0x389af4._0x279441)]() || void 0x0, _0x3a9c60 = _0x378182[_0x14f5b3(_0x389af4._0x5df096)] === !![], _0x5b02cc = _0x378182[_0x14f5b3(_0x389af4._0x3977bd)]?.[_0x14f5b3(0x128)]() || void 0x0, _0x36b777 = _0x378182[_0x14f5b3(_0x389af4._0x58750d)]?.[_0x14f5b3(_0x389af4._0x228d2d)]() || void 0x0, _0x17ed33 = createHeaders(_0x378182[_0x14f5b3(0x287)]), _0xa0a276 = toHttpBaseUrl(_0x378182[_0x14f5b3(_0x389af4._0x5a2db9)]);
|
|
891
|
+
let _0x53ba02 = null;
|
|
892
|
+
const _0x5464db = new Map();
|
|
893
|
+
let _0x27020f = _0x3bbe76, _0x541be7 = _0x3bbe76;
|
|
894
|
+
function _0x435828(_0x482e04) {
|
|
895
|
+
const _0x52b0e8 = _0x14f5b3, _0x2a724e = _0x482e04[_0x52b0e8(_0x46852e._0x29987d)][_0x52b0e8(0x22b)][_0x52b0e8(0x171)](_0x52b0e8(_0x46852e._0x55a4dc)) ?? 'unknown', _0xaab1b5 = _0x482e04[_0x52b0e8(0x1f7)][_0x52b0e8(_0x46852e._0x2bba84)]()[_0x52b0e8(0x1a0)](/\s+/g, '\x20')[_0x52b0e8(0x26d)](0x0, 0x78) || '<empty>';
|
|
896
|
+
return _0x52b0e8(0x1eb) + _0x482e04[_0x52b0e8(_0x46852e._0x2bbf4c)] + _0x52b0e8(_0x46852e._0x235162) + _0x482e04['response'][_0x52b0e8(_0x46852e._0x23df55)] + _0x52b0e8(_0x46852e._0x53154d) + _0x2a724e + _0x52b0e8(0x195) + _0xaab1b5 + _0x52b0e8(0x13a);
|
|
897
|
+
}
|
|
898
|
+
async function _0x474918(_0x3a295a, _0x3a1cbb) {
|
|
899
|
+
const _0x5e5836 = _0x14f5b3, _0x24d986 = Buffer[_0x5e5836(0x1c8)](await _0x3a1cbb[_0x5e5836(0x199)]())[_0x5e5836(_0x4f3d71._0x3122b7)](_0x5e5836(0x27a));
|
|
900
|
+
if (!_0x24d986[_0x5e5836(0x128)]())
|
|
901
|
+
return {};
|
|
902
|
+
try {
|
|
903
|
+
return JSON[_0x5e5836(0x266)](_0x24d986);
|
|
904
|
+
} catch {
|
|
905
|
+
throw new Error(_0x435828({
|
|
906
|
+
'bodyText': _0x24d986,
|
|
907
|
+
'requestUrl': _0x3a295a,
|
|
908
|
+
'response': _0x3a1cbb
|
|
909
|
+
}));
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
function _0x5682ba(_0x17dc56, _0x57850c) {
|
|
913
|
+
const _0x18d9b3 = _0x14f5b3, _0x3b2dbd = typeof _0x57850c[_0x18d9b3(_0x36411c._0x571902)] === 'string' ? _0x57850c[_0x18d9b3(_0x36411c._0x6212f2)][_0x18d9b3(_0x36411c._0x41b303)]() : '';
|
|
914
|
+
if (_0x3b2dbd)
|
|
915
|
+
return _0x3b2dbd;
|
|
916
|
+
const _0x7bfb38 = Date[_0x18d9b3(_0x36411c._0x364f49)]();
|
|
917
|
+
for (const [_0x58a3bb, _0x263d2a] of _0x5464db) {
|
|
918
|
+
_0x263d2a[_0x18d9b3(0x207)] <= _0x7bfb38 && _0x5464db[_0x18d9b3(_0x36411c._0x4f3410)](_0x58a3bb);
|
|
919
|
+
}
|
|
920
|
+
const _0x411b32 = {
|
|
921
|
+
..._0x57850c,
|
|
922
|
+
'idempotency_key': void 0x0
|
|
923
|
+
}, _0x5b61f8 = createHash(_0x18d9b3(0x247))['update'](_0x17dc56 + ':' + stableStringify(_0x411b32))[_0x18d9b3(_0x36411c._0x3c31ab)](_0x18d9b3(_0x36411c._0x14e10a)), _0x4b1b8e = _0x17dc56 + ':' + _0x5b61f8, _0x13da4f = _0x5464db[_0x18d9b3(_0x36411c._0x5d8883)](_0x4b1b8e);
|
|
924
|
+
if (_0x13da4f)
|
|
925
|
+
return _0x13da4f[_0x18d9b3(_0x36411c._0x24d044)];
|
|
926
|
+
const _0x3619df = _0x18d9b3(_0x36411c._0x53a392) + _0x17dc56 + ':' + randomUUID();
|
|
927
|
+
return _0x5464db[_0x18d9b3(0x190)](_0x4b1b8e, {
|
|
928
|
+
'expiresAt': _0x7bfb38 + 0x5 * 0x3c * 0x3e8,
|
|
929
|
+
'value': _0x3619df
|
|
930
|
+
}), _0x3619df;
|
|
931
|
+
}
|
|
932
|
+
async function _0x252eb3(_0x58bccc, _0x5c297f) {
|
|
933
|
+
const _0x2b8186 = _0x14f5b3, _0x4047df = new AbortController(), _0x258498 = setTimeout(() => _0x4047df[_0x2b8186(0x1c2)](), _0x4d11d4), _0x5cebd2 = _0x5c297f?.[_0x2b8186(_0x4732f0._0x21a3ed)] ? anySignal(_0x5c297f['signal'], _0x4047df[_0x2b8186(_0x4732f0._0x45547f)]) : _0x4047df[_0x2b8186(0x142)], _0x2d146c = '' + _0xa0a276 + _0x58bccc;
|
|
934
|
+
try {
|
|
935
|
+
const _0x35e692 = await _0x3d26df(_0x2d146c, {
|
|
936
|
+
..._0x5c297f,
|
|
937
|
+
'signal': _0x5cebd2
|
|
938
|
+
}), _0x5d4cfd = await _0x474918(_0x2d146c, _0x35e692);
|
|
939
|
+
if (!_0x35e692['ok'] || _0x5d4cfd[_0x2b8186(_0x4732f0._0x5acd46)] === ![])
|
|
940
|
+
throw new Error(asErrorMessage(_0x5d4cfd[_0x2b8186(_0x4732f0._0x1ba173)], 'HTTP\x20' + _0x35e692[_0x2b8186(_0x4732f0._0x320d44)]));
|
|
941
|
+
return _0x5d4cfd;
|
|
942
|
+
} finally {
|
|
943
|
+
clearTimeout(_0x258498);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
async function _0x539991(_0x26ace5, _0x1296d1) {
|
|
947
|
+
const _0x1a6a3a = _0x14f5b3, _0x2e1d99 = new AbortController(), _0x321898 = setTimeout(() => _0x2e1d99[_0x1a6a3a(0x1c2)](), _0x4d11d4), _0x33314c = _0x1296d1?.[_0x1a6a3a(0x142)] ? anySignal(_0x1296d1['signal'], _0x2e1d99[_0x1a6a3a(_0x2ebd2c._0x212902)]) : _0x2e1d99[_0x1a6a3a(0x142)], _0x436715 = '' + _0xa0a276 + _0x26ace5;
|
|
948
|
+
try {
|
|
949
|
+
const _0x307367 = await _0x3d26df(_0x436715, {
|
|
950
|
+
..._0x1296d1,
|
|
951
|
+
'signal': _0x33314c
|
|
952
|
+
}), _0x498c89 = await _0x474918(_0x436715, _0x307367);
|
|
953
|
+
if (!_0x307367['ok'])
|
|
954
|
+
throw new Error(asErrorMessage(_0x498c89[_0x1a6a3a(0x24d)], _0x1a6a3a(_0x2ebd2c._0x48946d) + _0x307367[_0x1a6a3a(_0x2ebd2c._0x9022b)]));
|
|
955
|
+
return _0x498c89;
|
|
956
|
+
} finally {
|
|
957
|
+
clearTimeout(_0x321898);
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
async function _0x3b3a19(_0x435bdb) {
|
|
961
|
+
const _0x4594e5 = _0x14f5b3;
|
|
962
|
+
if (!_0x329f69 || _0x435bdb <= _0x541be7)
|
|
963
|
+
return;
|
|
964
|
+
await _0x252eb3('/api/agent-sessions/' + encodeURIComponent(_0x329f69) + _0x4594e5(0x151), {
|
|
965
|
+
'body': JSON[_0x4594e5(_0x2cf1d6._0x35c750)]({ 'lastSeenSeq': _0x435bdb }),
|
|
966
|
+
'headers': _0x17ed33,
|
|
967
|
+
'method': _0x4594e5(0x214)
|
|
968
|
+
}), _0x541be7 = _0x435bdb;
|
|
969
|
+
}
|
|
970
|
+
async function _0x152b64(_0x331fe5) {
|
|
971
|
+
const _0x134cc5 = _0x14f5b3;
|
|
972
|
+
if (!_0x543d13 || !_0x5b02cc || _0x331fe5 <= _0x541be7)
|
|
973
|
+
return;
|
|
974
|
+
const _0x5af68c = await _0x3d26df(_0x543d13 + _0x134cc5(_0x759e19._0x1867d6), {
|
|
975
|
+
'body': JSON[_0x134cc5(_0x759e19._0x350e28)]({
|
|
976
|
+
'last_seen_seq': _0x331fe5,
|
|
977
|
+
'worker_session_id': _0x5b02cc
|
|
978
|
+
}),
|
|
979
|
+
'headers': { 'Content-Type': _0x134cc5(0x14a) },
|
|
980
|
+
'method': 'POST'
|
|
981
|
+
});
|
|
982
|
+
if (!_0x5af68c['ok'])
|
|
983
|
+
throw new Error(_0x134cc5(_0x759e19._0x285087) + _0x5af68c['status']);
|
|
984
|
+
_0x541be7 = _0x331fe5;
|
|
985
|
+
}
|
|
986
|
+
async function _0x2ab924(_0x4dd308) {
|
|
987
|
+
const _0x230f82 = _0x14f5b3, _0x255d46 = parseTarget(_0x4dd308), _0x55e32a = await _0x252eb3('/internal/agent/' + _0x378182[_0x230f82(_0x477be2._0x477405)] + _0x230f82(_0x477be2._0x3db9e1), {
|
|
988
|
+
'body': JSON[_0x230f82(0x277)]({ 'target': _0x255d46[_0x230f82(_0x477be2._0x5386de)] }),
|
|
989
|
+
'headers': _0x17ed33,
|
|
990
|
+
'method': 'POST'
|
|
991
|
+
});
|
|
992
|
+
return {
|
|
993
|
+
'channelId': _0x55e32a[_0x230f82(0x1ec)]?.[_0x230f82(_0x477be2._0x3e2abd)] ?? '',
|
|
994
|
+
'target': _0x255d46[_0x230f82(_0x477be2._0x4a68df)],
|
|
995
|
+
'task': _0x55e32a[_0x230f82(0x1ec)]?.[_0x230f82(0x1b4)],
|
|
996
|
+
'threadId': _0x55e32a['data']?.['threadId'],
|
|
997
|
+
'threadNumber': _0x55e32a[_0x230f82(_0x477be2._0x13ae28)]?.['threadNumber']
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
async function _0x589a42(_0x1c2372 = {}) {
|
|
1001
|
+
const _0x3479e3 = {
|
|
1002
|
+
_0x1cc032: 0x1ec,
|
|
1003
|
+
_0x1db692: 0x20f,
|
|
1004
|
+
_0x117ae3: 0x1de
|
|
1005
|
+
}, _0x3e8ade = _0x14f5b3;
|
|
1006
|
+
if (!_0x1c2372[_0x3e8ade(0x144)] && _0x53ba02)
|
|
1007
|
+
return _0x53ba02;
|
|
1008
|
+
return _0x53ba02 = (async () => {
|
|
1009
|
+
const _0x499757 = _0x3e8ade, _0xbb280 = await _0x252eb3(_0x499757(0x10c) + _0x378182[_0x499757(0x288)] + _0x499757(0x272), {
|
|
1010
|
+
'headers': _0x17ed33,
|
|
1011
|
+
'method': _0x499757(0x208)
|
|
1012
|
+
}), _0x363358 = _0xbb280[_0x499757(_0x3479e3._0x1cc032)]?.[_0x499757(0x252)] ?? [], _0x47df4b = _0x363358[_0x499757(_0x3479e3._0x1db692)](_0x3043cc => _0x3043cc[_0x499757(0x27b)]?.['type'] === _0x499757(0x28e))[_0x499757(0x21c)](_0x2d89fe => ({
|
|
1013
|
+
'id': _0x3c7770(_0x2d89fe),
|
|
1014
|
+
'name': _0x456c5e(_0x2d89fe)
|
|
1015
|
+
}))['filter'](_0x364a29 => _0x364a29['id']), _0x42f2b1 = _0x363358[_0x499757(0x20f)](_0x24583d => _0x24583d[_0x499757(0x27b)]?.[_0x499757(0x1cc)] !== 'agent')[_0x499757(0x21c)](_0x449352 => ({
|
|
1016
|
+
'id': _0x3c7770(_0x449352),
|
|
1017
|
+
'name': _0x456c5e(_0x449352)
|
|
1018
|
+
}))[_0x499757(0x20f)](_0x8c5ca2 => _0x8c5ca2['id']), _0xc5fbaf = _0xbb280[_0x499757(0x1ec)]?.['server']['id'] ?? '';
|
|
1019
|
+
return {
|
|
1020
|
+
'agents': _0x47df4b,
|
|
1021
|
+
'channels': _0xbb280[_0x499757(_0x3479e3._0x1cc032)]?.[_0x499757(0x284)] ?? [],
|
|
1022
|
+
'humans': _0x42f2b1,
|
|
1023
|
+
'serverId': _0xc5fbaf,
|
|
1024
|
+
'serverName': _0xbb280['data']?.[_0x499757(_0x3479e3._0x117ae3)]['name'] ?? _0xc5fbaf
|
|
1025
|
+
};
|
|
1026
|
+
})()[_0x3e8ade(0x230)](_0x8763eb => {
|
|
1027
|
+
_0x53ba02 = null;
|
|
1028
|
+
throw _0x8763eb;
|
|
1029
|
+
}), _0x53ba02;
|
|
1030
|
+
}
|
|
1031
|
+
function _0x189ec4(_0x123108, _0x3e976) {
|
|
1032
|
+
const _0x40ecd8 = _0x14f5b3;
|
|
1033
|
+
return _0x3e976[_0x40ecd8(_0x29dfc6._0x133a55)][_0x40ecd8(_0x29dfc6._0x48cd94)](_0x2530b1 => _0x2530b1['id'] === _0x123108 || _0x2530b1[_0x40ecd8(0x173)] === _0x123108) ? _0x40ecd8(0x28e) : _0x40ecd8(0x111);
|
|
1034
|
+
}
|
|
1035
|
+
function _0xb2570f(_0x1e7713) {
|
|
1036
|
+
const _0x34d8fe = _0x14f5b3;
|
|
1037
|
+
if (_0x1e7713[_0x34d8fe(0x147)] != null)
|
|
1038
|
+
return _0x1e7713[_0x34d8fe(_0x5af2af._0x1c24f3)] + ':t' + _0x1e7713[_0x34d8fe(0x147)];
|
|
1039
|
+
if (_0x1e7713[_0x34d8fe(_0x5af2af._0xde7ab9)])
|
|
1040
|
+
return _0x1e7713['channelTarget'] + ':' + _0x1e7713[_0x34d8fe(_0x5af2af._0x1395bf)];
|
|
1041
|
+
if (_0x1e7713[_0x34d8fe(_0x5af2af._0x1b372e)])
|
|
1042
|
+
return _0x1e7713[_0x34d8fe(0x215)] + ':' + _0x1e7713[_0x34d8fe(_0x5af2af._0x2bea5b)][_0x34d8fe(0x26d)](0x0, 0x8);
|
|
1043
|
+
return _0x1e7713[_0x34d8fe(0x215)];
|
|
1044
|
+
}
|
|
1045
|
+
function _0x1b6776(_0x4b0456, _0x4a68ad) {
|
|
1046
|
+
const _0x303aa4 = _0x14f5b3;
|
|
1047
|
+
try {
|
|
1048
|
+
const _0x556b53 = parseTarget(_0x4b0456);
|
|
1049
|
+
if (_0x556b53[_0x303aa4(0x1c6)] !== 'thread' || _0x556b53['channelTarget'] !== _0x4a68ad[_0x303aa4(_0x32dd32._0x52900c)])
|
|
1050
|
+
return ![];
|
|
1051
|
+
if (_0x4a68ad[_0x303aa4(_0x32dd32._0x54cccb)] != null && _0x556b53['threadShortId'] === 't' + _0x4a68ad[_0x303aa4(_0x32dd32._0x54cccb)])
|
|
1052
|
+
return !![];
|
|
1053
|
+
if (_0x4a68ad['rootMessageId'])
|
|
1054
|
+
return _0x556b53[_0x303aa4(_0x32dd32._0x5dc1cf)] === _0x4a68ad['rootMessageId'] || _0x4a68ad[_0x303aa4(_0x32dd32._0x582d9e)][_0x303aa4(_0x32dd32._0x1e1979)](_0x556b53[_0x303aa4(_0x32dd32._0x5dc1cf)]);
|
|
1055
|
+
if (_0x4a68ad[_0x303aa4(_0x32dd32._0x2263b4)])
|
|
1056
|
+
return _0x556b53['threadShortId'] === _0x4a68ad['threadId'] || _0x4a68ad['threadId']['startsWith'](_0x556b53[_0x303aa4(0x1af)]);
|
|
1057
|
+
return ![];
|
|
1058
|
+
} catch {
|
|
1059
|
+
return ![];
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
function _0x437520(_0x9d1267, _0x4d40ab) {
|
|
1063
|
+
const _0x58cf18 = _0x14f5b3;
|
|
1064
|
+
try {
|
|
1065
|
+
const _0xbe1bab = parseTarget(_0x9d1267);
|
|
1066
|
+
if (_0xbe1bab['kind'] !== _0x58cf18(_0x352c1d._0x105b63))
|
|
1067
|
+
return ![];
|
|
1068
|
+
const _0x3cec03 = typeof _0x4d40ab[_0x58cf18(_0x352c1d._0x169c65)] === _0x58cf18(0x17a) && Number['isInteger'](_0x4d40ab[_0x58cf18(_0x352c1d._0x169c65)]) ? _0x4d40ab[_0x58cf18(0x147)] : void 0x0;
|
|
1069
|
+
if (_0x3cec03 != null && _0xbe1bab[_0x58cf18(_0x352c1d._0x59cca7)] === 't' + _0x3cec03)
|
|
1070
|
+
return !![];
|
|
1071
|
+
const _0x4c5361 = typeof _0x4d40ab[_0x58cf18(0x17b)] === 'string' ? _0x4d40ab[_0x58cf18(0x17b)] : void 0x0;
|
|
1072
|
+
if (_0x4c5361)
|
|
1073
|
+
return _0xbe1bab['threadShortId'] === _0x4c5361 || _0x4c5361[_0x58cf18(_0x352c1d._0x5315fa)](_0xbe1bab['threadShortId']);
|
|
1074
|
+
const _0x141e1d = typeof _0x4d40ab[_0x58cf18(_0x352c1d._0x2955cd)] === 'string' ? _0x4d40ab['threadId'] : void 0x0;
|
|
1075
|
+
return Boolean(_0x141e1d) && (_0xbe1bab['threadShortId'] === _0x141e1d || _0x141e1d[_0x58cf18(_0x352c1d._0x5315fa)](_0xbe1bab['threadShortId']));
|
|
1076
|
+
} catch {
|
|
1077
|
+
return ![];
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
function _0x3c7770(_0x1f695b) {
|
|
1081
|
+
const _0x152a6e = _0x14f5b3;
|
|
1082
|
+
return _0x1f695b[_0x152a6e(0x19a)]?.[_0x152a6e(_0x3a3764._0x161eb7)] ?? _0x1f695b[_0x152a6e(0x27b)]?.['id'] ?? _0x1f695b['participantId'] ?? '';
|
|
1083
|
+
}
|
|
1084
|
+
function _0x456c5e(_0x306860) {
|
|
1085
|
+
const _0x393728 = _0x14f5b3;
|
|
1086
|
+
return _0x306860[_0x393728(_0x51a651._0x7e39c3)]?.[_0x393728(0x173)] ?? _0x3c7770(_0x306860);
|
|
1087
|
+
}
|
|
1088
|
+
async function _0x276c3f(_0x1fc4eb) {
|
|
1089
|
+
const _0x5a5d8e = _0x14f5b3, _0x24b2d2 = Math[_0x5a5d8e(_0x1cd4a9._0x12b53a)](_0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x1776e5)] ?? 0x32, 0x64), _0xf55dc3 = await _0x589a42(), _0x58ef8c = new URLSearchParams();
|
|
1090
|
+
_0x58ef8c['set'](_0x5a5d8e(0x20c), String(_0x24b2d2));
|
|
1091
|
+
_0x1fc4eb[_0x5a5d8e(0x259)] ? (_0x58ef8c[_0x5a5d8e(0x190)](_0x5a5d8e(0x259), _0x1fc4eb[_0x5a5d8e(0x259)]), _0x58ef8c[_0x5a5d8e(0x190)](_0x5a5d8e(_0x1cd4a9._0x44d79c), _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x44d79c)])) : _0x58ef8c[_0x5a5d8e(0x190)]('channelId', _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x44d79c)]);
|
|
1092
|
+
_0x1fc4eb[_0x5a5d8e(0x1a7)] && _0x58ef8c['set'](_0x5a5d8e(_0x1cd4a9._0x89ab59), String(_0x1fc4eb[_0x5a5d8e(0x1a7)]));
|
|
1093
|
+
_0x1fc4eb[_0x5a5d8e(0x10d)] !== void 0x0 && _0x58ef8c['set'](_0x5a5d8e(_0x1cd4a9._0x5206ca), String(_0x1fc4eb['after']));
|
|
1094
|
+
const _0x5766bf = await _0x252eb3(_0x5a5d8e(_0x1cd4a9._0x563b58) + _0x378182[_0x5a5d8e(_0x1cd4a9._0x1fd374)] + _0x5a5d8e(0x28a) + _0x58ef8c['toString'](), {
|
|
1095
|
+
'headers': _0x17ed33,
|
|
1096
|
+
'method': _0x5a5d8e(_0x1cd4a9._0x38737d)
|
|
1097
|
+
}), _0x4a6a0c = (_0x5766bf[_0x5a5d8e(_0x1cd4a9._0x32363a)] ?? [])['map'](_0x54721d => ({
|
|
1098
|
+
'attachments': (_0x54721d[_0x5a5d8e(0x186)] ?? [])['map'](_0x2e7dbc => ({
|
|
1099
|
+
'filename': _0x2e7dbc['filename'] ?? _0x2e7dbc['id'],
|
|
1100
|
+
'id': _0x2e7dbc['id']
|
|
1101
|
+
})),
|
|
1102
|
+
'content': _0x54721d['bodyMarkdown'] ?? '',
|
|
1103
|
+
'createdAt': _0x54721d[_0x5a5d8e(0x1d0)],
|
|
1104
|
+
..._0x54721d[_0x5a5d8e(0x1c6)] && _0x54721d['kind'] !== _0x5a5d8e(0x1da) ? { 'kind': _0x54721d[_0x5a5d8e(0x1c6)] } : {},
|
|
1105
|
+
'messageId': _0x54721d['id'],
|
|
1106
|
+
'senderName': _0x54721d[_0x5a5d8e(0x191)],
|
|
1107
|
+
'senderType': _0x189ec4(_0x54721d['senderParticipantId'], _0xf55dc3),
|
|
1108
|
+
'seq': _0x54721d[_0x5a5d8e(0x18f)] ?? 0x0
|
|
1109
|
+
}));
|
|
1110
|
+
return {
|
|
1111
|
+
'channel': _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x15abcf)],
|
|
1112
|
+
'hasMore': _0x5766bf[_0x5a5d8e(_0x1cd4a9._0x507362)]?.[_0x5a5d8e(_0x1cd4a9._0x351f1f)] ?? ![],
|
|
1113
|
+
'messages': _0x4a6a0c,
|
|
1114
|
+
'nextCursor': _0x5766bf['meta']?.[_0x5a5d8e(_0x1cd4a9._0x89ab59)]
|
|
1520
1115
|
};
|
|
1521
|
-
_0x2672['bXsaiU'] = _0x3fdf9e, _0x2672['sendRT'] = {}, _0x2672['BlGswy'] = !![];
|
|
1522
1116
|
}
|
|
1523
|
-
|
|
1524
|
-
|
|
1117
|
+
return {
|
|
1118
|
+
async 'sendMessage'(_0xe2db25) {
|
|
1119
|
+
const _0x91aa27 = _0x14f5b3, _0x1819ee = await _0x2ab924(_0xe2db25[_0x91aa27(_0x18b573._0x470b4f)]), _0x370c6e = _0xe2db25[_0x91aa27(0x26f)]['includes']('@') ? extractMentionedParticipantIds(_0xe2db25['content'], await _0x589a42()) : [], _0x362f24 = await _0x252eb3('/internal/agent/' + _0x378182[_0x91aa27(_0x18b573._0x4ef096)] + '/send', {
|
|
1120
|
+
'body': JSON['stringify']({
|
|
1121
|
+
'attachment_ids': _0xe2db25[_0x91aa27(0x1fc)],
|
|
1122
|
+
'bodyMarkdown': _0xe2db25['content'],
|
|
1123
|
+
'channelId': _0x1819ee['channelId'],
|
|
1124
|
+
..._0x370c6e[_0x91aa27(0x18d)] > 0x0 ? { 'mentionedParticipantIds': _0x370c6e } : {},
|
|
1125
|
+
'threadId': _0x1819ee[_0x91aa27(0x259)],
|
|
1126
|
+
..._0xe2db25[_0x91aa27(_0x18b573._0x1c9cb4)] ? { 'visibility': _0xe2db25['visibility'] } : {}
|
|
1127
|
+
}),
|
|
1128
|
+
'headers': _0x17ed33,
|
|
1129
|
+
'method': 'POST'
|
|
1130
|
+
});
|
|
1131
|
+
return { 'messageId': _0x362f24[_0x91aa27(0x1ec)]?.['id'] ?? '' };
|
|
1132
|
+
},
|
|
1133
|
+
async 'listSchedules'() {
|
|
1134
|
+
const _0x50cce8 = _0x14f5b3, _0x17ec9a = await _0x252eb3(_0x50cce8(0x1bb), {
|
|
1135
|
+
'headers': _0x17ed33,
|
|
1136
|
+
'method': _0x50cce8(_0x12f092._0x120e86)
|
|
1137
|
+
});
|
|
1138
|
+
return _0x17ec9a['data'] ?? [];
|
|
1139
|
+
},
|
|
1140
|
+
async 'claimScheduleRun'(_0x3ab6a7) {
|
|
1141
|
+
const _0x3f6c56 = _0x14f5b3, _0x7fe926 = await _0x252eb3(_0x3f6c56(_0x34ed25._0xdfc7c4), {
|
|
1142
|
+
'body': JSON[_0x3f6c56(_0x34ed25._0x38b7ae)](_0x3ab6a7),
|
|
1143
|
+
'headers': _0x17ed33,
|
|
1144
|
+
'method': _0x3f6c56(_0x34ed25._0x233688)
|
|
1145
|
+
});
|
|
1146
|
+
return _0x7fe926[_0x3f6c56(0x1ec)] ?? {
|
|
1147
|
+
'granted': ![],
|
|
1148
|
+
'runId': null,
|
|
1149
|
+
'schedule': null,
|
|
1150
|
+
'scheduledFor': _0x3ab6a7['scheduledFor']
|
|
1151
|
+
};
|
|
1152
|
+
},
|
|
1153
|
+
async 'startScheduleRun'(_0x491c42) {
|
|
1154
|
+
const _0x5c4bdb = _0x14f5b3, _0x33fcf8 = await _0x252eb3(_0x5c4bdb(_0x2fd1f7._0x1db28f) + encodeURIComponent(_0x491c42[_0x5c4bdb(0x109)]) + _0x5c4bdb(_0x2fd1f7._0x30a826), {
|
|
1155
|
+
'body': JSON[_0x5c4bdb(0x277)]({}),
|
|
1156
|
+
'headers': _0x17ed33,
|
|
1157
|
+
'method': _0x5c4bdb(0x204)
|
|
1158
|
+
});
|
|
1159
|
+
return _0x33fcf8[_0x5c4bdb(_0x2fd1f7._0x18d29e)] ?? {
|
|
1160
|
+
'claimedByDaemonId': '',
|
|
1161
|
+
'id': _0x491c42[_0x5c4bdb(0x109)],
|
|
1162
|
+
'scheduleId': '',
|
|
1163
|
+
'status': 'running'
|
|
1164
|
+
};
|
|
1165
|
+
},
|
|
1166
|
+
async 'finishScheduleRun'(_0x5ebec7) {
|
|
1167
|
+
const _0x175034 = _0x14f5b3, _0x57aba2 = await _0x252eb3(_0x175034(0x1a3) + encodeURIComponent(_0x5ebec7[_0x175034(_0x9789d8._0x2f9bbf)]) + _0x175034(0x1f3), {
|
|
1168
|
+
'body': JSON[_0x175034(_0x9789d8._0x4cce09)]({
|
|
1169
|
+
'error': _0x5ebec7[_0x175034(0x24d)],
|
|
1170
|
+
'resultJson': _0x5ebec7[_0x175034(0x178)],
|
|
1171
|
+
'status': _0x5ebec7[_0x175034(0x291)]
|
|
1172
|
+
}),
|
|
1173
|
+
'headers': _0x17ed33,
|
|
1174
|
+
'method': _0x175034(0x204)
|
|
1175
|
+
});
|
|
1176
|
+
return _0x57aba2['data'] ?? {
|
|
1177
|
+
'nextRunAt': null,
|
|
1178
|
+
'run': {
|
|
1179
|
+
'claimedByDaemonId': '',
|
|
1180
|
+
'id': _0x5ebec7[_0x175034(_0x9789d8._0x3a6290)],
|
|
1181
|
+
'scheduleId': '',
|
|
1182
|
+
'status': _0x5ebec7[_0x175034(0x291)]
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
},
|
|
1186
|
+
async 'listTasks'(_0x4ec697) {
|
|
1187
|
+
const _0x2fd955 = _0x14f5b3, _0x360c34 = new URLSearchParams();
|
|
1188
|
+
return _0x360c34[_0x2fd955(0x190)](_0x2fd955(_0x423577._0x525a29), _0x4ec697[_0x2fd955(0x1f4)]), _0x4ec697[_0x2fd955(0x291)] && _0x360c34[_0x2fd955(_0x423577._0x1d4a8b)]('status', _0x4ec697[_0x2fd955(_0x423577._0x3a486d)]), _0x539991('/internal/agent/' + _0x378182['agentId'] + _0x2fd955(0x293) + _0x360c34['toString'](), {
|
|
1189
|
+
'headers': _0x17ed33,
|
|
1190
|
+
'method': _0x2fd955(0x208)
|
|
1191
|
+
});
|
|
1192
|
+
},
|
|
1193
|
+
async 'createTasks'(_0x262d37) {
|
|
1194
|
+
const _0x19745e = _0x14f5b3;
|
|
1195
|
+
return _0x539991('/internal/agent/' + _0x378182['agentId'] + '/tasks', {
|
|
1196
|
+
'body': JSON[_0x19745e(_0x25f0b3._0x3e14c5)]({
|
|
1197
|
+
..._0x262d37,
|
|
1198
|
+
'idempotency_key': _0x5682ba('create_tasks', _0x262d37)
|
|
1199
|
+
}),
|
|
1200
|
+
'headers': _0x17ed33,
|
|
1201
|
+
'method': 'POST'
|
|
1202
|
+
});
|
|
1203
|
+
},
|
|
1204
|
+
async 'claimTasks'(_0x27433e) {
|
|
1205
|
+
const _0x183f36 = _0x14f5b3;
|
|
1206
|
+
return _0x539991('/internal/agent/' + _0x378182['agentId'] + _0x183f36(0x159), {
|
|
1207
|
+
'body': JSON[_0x183f36(0x277)]({
|
|
1208
|
+
..._0x27433e,
|
|
1209
|
+
'idempotency_key': _0x5682ba('claim_tasks', _0x27433e)
|
|
1210
|
+
}),
|
|
1211
|
+
'headers': _0x17ed33,
|
|
1212
|
+
'method': _0x183f36(0x204)
|
|
1213
|
+
});
|
|
1214
|
+
},
|
|
1215
|
+
async 'unclaimTask'(_0x536e54) {
|
|
1216
|
+
const _0x13f166 = _0x14f5b3;
|
|
1217
|
+
return _0x539991(_0x13f166(_0x3b4247._0x59a1cc) + _0x378182[_0x13f166(_0x3b4247._0x506714)] + _0x13f166(_0x3b4247._0x7f0428), {
|
|
1218
|
+
'body': JSON[_0x13f166(_0x3b4247._0x18dc88)]({
|
|
1219
|
+
..._0x536e54,
|
|
1220
|
+
'idempotency_key': _0x5682ba(_0x13f166(_0x3b4247._0x23d91c), _0x536e54)
|
|
1221
|
+
}),
|
|
1222
|
+
'headers': _0x17ed33,
|
|
1223
|
+
'method': _0x13f166(0x204)
|
|
1224
|
+
});
|
|
1225
|
+
},
|
|
1226
|
+
async 'updateTaskStatus'(_0x5626c1) {
|
|
1227
|
+
const _0xbdcc37 = _0x14f5b3;
|
|
1228
|
+
return _0x539991('/internal/agent/' + _0x378182['agentId'] + _0xbdcc37(_0x551db2._0x10f987), {
|
|
1229
|
+
'body': JSON[_0xbdcc37(0x277)]({
|
|
1230
|
+
..._0x5626c1,
|
|
1231
|
+
'idempotency_key': _0x5682ba(_0xbdcc37(0x1e8), _0x5626c1)
|
|
1232
|
+
}),
|
|
1233
|
+
'headers': _0x17ed33,
|
|
1234
|
+
'method': _0xbdcc37(_0x551db2._0x81e9fb)
|
|
1235
|
+
});
|
|
1236
|
+
},
|
|
1237
|
+
async 'uploadFile'(_0x536108) {
|
|
1238
|
+
const _0x253051 = _0x14f5b3, _0x40a82f = await _0x2ab924(_0x536108[_0x253051(_0x2e0c40._0x218a76)]);
|
|
1239
|
+
if (_0x40a82f[_0x253051(_0x2e0c40._0x4ad477)])
|
|
1240
|
+
throw new Error(_0x253051(_0x2e0c40._0xe54975));
|
|
1241
|
+
const _0x422047 = await _0x252eb3('/internal/agent/' + _0x378182[_0x253051(_0x2e0c40._0x5af325)] + _0x253051(_0x2e0c40._0x384a55), {
|
|
1242
|
+
'body': JSON[_0x253051(0x277)]({
|
|
1243
|
+
'channel': _0x40a82f[_0x253051(_0x2e0c40._0x4ebf94)],
|
|
1244
|
+
'contentBase64': _0x536108['contentBase64'],
|
|
1245
|
+
'contentType': _0x536108[_0x253051(_0x2e0c40._0x58a4be)],
|
|
1246
|
+
'originalFilename': _0x536108[_0x253051(0x274)]
|
|
1247
|
+
}),
|
|
1248
|
+
'headers': _0x17ed33,
|
|
1249
|
+
'method': _0x253051(0x204)
|
|
1250
|
+
});
|
|
1251
|
+
return {
|
|
1252
|
+
'attachmentId': _0x422047[_0x253051(_0x2e0c40._0x102d81)]?.['id'] ?? '',
|
|
1253
|
+
'filename': _0x422047[_0x253051(_0x2e0c40._0x102d81)]?.[_0x253051(0x108)] ?? _0x536108['filename'],
|
|
1254
|
+
'sizeBytes': _0x422047[_0x253051(0x1ec)]?.[_0x253051(0x22d)] ?? 0x0
|
|
1255
|
+
};
|
|
1256
|
+
},
|
|
1257
|
+
async 'downloadAttachment'(_0x178b78) {
|
|
1258
|
+
const _0x77cba6 = _0x14f5b3, _0xe2ff58 = await _0x252eb3(_0x77cba6(_0x5afa7e._0x484ef9) + _0x178b78, {
|
|
1259
|
+
'headers': _0x17ed33,
|
|
1260
|
+
'method': _0x77cba6(_0x5afa7e._0x47dc05)
|
|
1261
|
+
}), _0x5672dd = new AbortController(), _0x1aedb3 = setTimeout(() => _0x5672dd[_0x77cba6(0x1c2)](), _0x4d11d4);
|
|
1262
|
+
try {
|
|
1263
|
+
const _0x5b3cae = await _0x3d26df(_0xa0a276 + _0x77cba6(_0x5afa7e._0x12ee1a) + _0x178b78 + _0x77cba6(0x17f), {
|
|
1264
|
+
'headers': _0x17ed33,
|
|
1265
|
+
'method': _0x77cba6(_0x5afa7e._0x47dc05),
|
|
1266
|
+
'signal': _0x5672dd[_0x77cba6(_0x5afa7e._0xffa40)]
|
|
1267
|
+
});
|
|
1268
|
+
if (!_0x5b3cae['ok'])
|
|
1269
|
+
throw new Error(_0x77cba6(0x19b) + _0x5b3cae['status']);
|
|
1270
|
+
return {
|
|
1271
|
+
'contentType': _0xe2ff58[_0x77cba6(0x1ec)]?.[_0x77cba6(_0x5afa7e._0x409ccb)] ?? _0x5b3cae[_0x77cba6(_0x5afa7e._0x1bbb14)][_0x77cba6(_0x5afa7e._0x3f0ca5)](_0x77cba6(0x1e7)) ?? _0x77cba6(0x16d),
|
|
1272
|
+
'data': Buffer[_0x77cba6(0x1c8)](await _0x5b3cae['arrayBuffer']()),
|
|
1273
|
+
'originalFilename': _0xe2ff58[_0x77cba6(0x1ec)]?.[_0x77cba6(_0x5afa7e._0x449243)]
|
|
1274
|
+
};
|
|
1275
|
+
} finally {
|
|
1276
|
+
clearTimeout(_0x1aedb3);
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
async 'listServer'() {
|
|
1280
|
+
return _0x589a42({ 'forceRefresh': !![] });
|
|
1281
|
+
},
|
|
1282
|
+
async 'readHistory'(_0x33a5ef) {
|
|
1283
|
+
const _0x37ddb1 = _0x14f5b3, _0x5e856b = await _0x2ab924(_0x33a5ef[_0x37ddb1(0x1f4)]);
|
|
1284
|
+
return _0x276c3f({
|
|
1285
|
+
'after': _0x33a5ef[_0x37ddb1(0x10d)],
|
|
1286
|
+
'before': _0x33a5ef['before'],
|
|
1287
|
+
'channelId': _0x5e856b[_0x37ddb1(_0x433d67._0xcd1b84)],
|
|
1288
|
+
'channelTarget': _0x5e856b[_0x37ddb1(0x226)],
|
|
1289
|
+
'limit': _0x33a5ef[_0x37ddb1(_0x433d67._0x445004)],
|
|
1290
|
+
'threadId': _0x5e856b[_0x37ddb1(0x259)]
|
|
1291
|
+
});
|
|
1292
|
+
},
|
|
1293
|
+
'resolveTarget': _0x2ab924,
|
|
1294
|
+
async 'checkMessages'() {
|
|
1295
|
+
const _0x2ae633 = {
|
|
1296
|
+
_0xde1052: 0x177,
|
|
1297
|
+
_0x29b8fe: 0x1b8,
|
|
1298
|
+
_0x4e2d63: 0x1ca
|
|
1299
|
+
}, _0x14ebee = { _0x4f3474: 0x21d }, _0x39ea38 = _0x14f5b3, _0x352494 = new URLSearchParams();
|
|
1300
|
+
_0x352494[_0x39ea38(_0x2d1927._0x4d21cd)](_0x39ea38(0x1b3), String(_0x27020f));
|
|
1301
|
+
const _0x1ff6e6 = _0x352494[_0x39ea38(0x213)](), _0x379b8b = await _0x252eb3('/internal/agent/' + _0x378182[_0x39ea38(_0x2d1927._0x83e488)] + _0x39ea38(0x132) + (_0x1ff6e6 ? '?' + _0x1ff6e6 : ''), {
|
|
1302
|
+
'headers': _0x17ed33,
|
|
1303
|
+
'method': 'GET'
|
|
1304
|
+
}), _0x9c09e9 = _0x379b8b[_0x39ea38(0x1ec)] ?? [], _0x1bf5e1 = _0x379b8b[_0x39ea38(0x221)]?.[_0x39ea38(0x167)], _0x43f76d = _0x36b777 ? _0x9c09e9['filter'](_0x3fb05b => {
|
|
1305
|
+
const _0x2c462 = _0x39ea38;
|
|
1306
|
+
if (_0x3fb05b[_0x2c462(_0x14ebee._0x4f3474)] !== _0x2c462(0x219))
|
|
1307
|
+
return ![];
|
|
1308
|
+
return _0x437520(_0x36b777, asRecord(_0x3fb05b['payloadJson']));
|
|
1309
|
+
}) : _0x9c09e9, _0x43a4ba = _0x1bf5e1 !== void 0x0 ? _0x36b777 ? Math['max'](_0x27020f, _0x43f76d[_0x39ea38(0x18d)] > 0x0 ? _0x43f76d[_0x43f76d['length'] - 0x1][_0x39ea38(_0x2d1927._0x52a0fa)] : _0x27020f) : Math[_0x39ea38(0x16a)](_0x27020f, _0x1bf5e1) : _0x43f76d[_0x39ea38(0x18d)] > 0x0 ? Math['max'](_0x27020f, _0x43f76d[_0x43f76d[_0x39ea38(0x18d)] - 0x1]['seq']) : _0x27020f, _0xb61644 = _0x9c09e9[_0x39ea38(_0x2d1927._0x19e27d)](_0x1cfa66 => _0x1cfa66['aggregateType'] === _0x39ea38(0x219)), _0x207005 = _0x36b777 === void 0x0 && _0x3a9c60;
|
|
1310
|
+
let _0x5a9ec8 = await _0x589a42(), _0x1002d2 = new Map(_0x5a9ec8['channels'][_0x39ea38(0x21c)](_0x3d28d6 => [
|
|
1311
|
+
_0x3d28d6['id'],
|
|
1312
|
+
_0x3d28d6
|
|
1313
|
+
]));
|
|
1314
|
+
const _0x3a573b = _0xb61644[_0x39ea38(0x157)](_0x1f8f5c => {
|
|
1315
|
+
const _0x33f983 = _0x39ea38, _0x4dc56e = asRecord(_0x1f8f5c[_0x33f983(_0x2ae633._0xde1052)]), _0x3433c4 = typeof _0x4dc56e?.[_0x33f983(0x1ca)] === _0x33f983(_0x2ae633._0x29b8fe) ? _0x4dc56e[_0x33f983(_0x2ae633._0x4e2d63)] : '';
|
|
1316
|
+
return Boolean(_0x3433c4) && !_0x1002d2['has'](_0x3433c4);
|
|
1317
|
+
});
|
|
1318
|
+
_0x3a573b && (_0x5a9ec8 = await _0x589a42({ 'forceRefresh': !![] }), _0x1002d2 = new Map(_0x5a9ec8[_0x39ea38(_0x2d1927._0x435e45)]['map'](_0x40ec9f => [
|
|
1319
|
+
_0x40ec9f['id'],
|
|
1320
|
+
_0x40ec9f
|
|
1321
|
+
])));
|
|
1322
|
+
const _0x4d2ccb = new Map();
|
|
1323
|
+
for (const _0x4c92e3 of _0xb61644) {
|
|
1324
|
+
const _0x109b31 = asRecord(_0x4c92e3['payloadJson']), _0x589b27 = typeof _0x109b31[_0x39ea38(_0x2d1927._0x4f2e20)] === _0x39ea38(0x1b8) ? _0x109b31[_0x39ea38(0x1ca)] : '';
|
|
1325
|
+
if (!_0x589b27)
|
|
1326
|
+
continue;
|
|
1327
|
+
const _0x449b09 = typeof _0x109b31['threadId'] === _0x39ea38(0x1b8) ? _0x109b31[_0x39ea38(0x259)] : void 0x0, _0x1db4a0 = typeof _0x109b31[_0x39ea38(0x17b)] === 'string' ? _0x109b31[_0x39ea38(_0x2d1927._0xfb7054)] : void 0x0, _0x44a7af = typeof _0x109b31[_0x39ea38(_0x2d1927._0x4ee86c)] === _0x39ea38(0x17a) && Number[_0x39ea38(0x15f)](_0x109b31[_0x39ea38(0x147)]) ? _0x109b31['threadNumber'] : void 0x0, _0xb3e995 = Boolean(_0x449b09 && (!_0x1db4a0 || _0x4c92e3['aggregateId'] !== _0x1db4a0)), _0x2ab979 = _0xb3e995 ? _0x589b27 + ':' + _0x449b09 : _0x589b27, _0x1990ac = _0x4d2ccb[_0x39ea38(_0x2d1927._0x9e8ef3)](_0x2ab979) ?? {
|
|
1328
|
+
'aggregateIds': [],
|
|
1329
|
+
'channelId': _0x589b27,
|
|
1330
|
+
'entries': new Map(),
|
|
1331
|
+
'isThreadReply': _0xb3e995,
|
|
1332
|
+
'rootMessageId': _0x1db4a0,
|
|
1333
|
+
'threadNumber': _0x44a7af,
|
|
1334
|
+
'threadId': _0xb3e995 ? _0x449b09 : void 0x0
|
|
1335
|
+
};
|
|
1336
|
+
_0x1990ac[_0x39ea38(0x147)] == null && _0x44a7af != null && (_0x1990ac['threadNumber'] = _0x44a7af), !_0x1990ac[_0x39ea38(0x17b)] && _0x1db4a0 && (_0x1990ac[_0x39ea38(0x17b)] = _0x1db4a0), _0x1990ac['aggregateIds'][_0x39ea38(0x13c)](_0x4c92e3['aggregateId']), _0x1990ac[_0x39ea38(_0x2d1927._0x13c76e)]['set'](_0x4c92e3['aggregateId'], {
|
|
1337
|
+
'payloadJson': _0x4c92e3[_0x39ea38(0x177)],
|
|
1338
|
+
'seq': _0x4c92e3[_0x39ea38(0x107)]
|
|
1339
|
+
}), _0x4d2ccb[_0x39ea38(0x190)](_0x2ab979, _0x1990ac);
|
|
1340
|
+
}
|
|
1341
|
+
const _0x1a2f7f = [];
|
|
1342
|
+
for (const _0x969a30 of _0x4d2ccb[_0x39ea38(0x1f6)]()) {
|
|
1343
|
+
const {
|
|
1344
|
+
channelId: _0x3dcb9b,
|
|
1345
|
+
threadId: _0x52968f,
|
|
1346
|
+
rootMessageId: _0x3708a9,
|
|
1347
|
+
threadNumber: _0x4ed0ce,
|
|
1348
|
+
aggregateIds: _0x25f0fd,
|
|
1349
|
+
isThreadReply: _0x3507f1,
|
|
1350
|
+
entries: _0x2df93c
|
|
1351
|
+
} = _0x969a30, _0x16c365 = _0x1002d2['get'](_0x3dcb9b), _0x5652a3 = _0x16c365?.[_0x39ea38(0x173)] ?? _0x3dcb9b, _0x22e8c6 = _0x16c365?.['kind'] === 'dm' ? _0x39ea38(0x1e2) + _0x5652a3 : '#' + _0x5652a3, _0x22497b = {
|
|
1352
|
+
'channelTarget': _0x22e8c6,
|
|
1353
|
+
'rootMessageId': _0x3708a9,
|
|
1354
|
+
'threadId': _0x52968f,
|
|
1355
|
+
'threadNumber': _0x4ed0ce
|
|
1356
|
+
}, _0x37cd25 = await _0x276c3f({
|
|
1357
|
+
'channelId': _0x3dcb9b,
|
|
1358
|
+
'channelTarget': _0x22e8c6,
|
|
1359
|
+
'limit': Math[_0x39ea38(_0x2d1927._0x9e4912)](_0x25f0fd[_0x39ea38(_0x2d1927._0x2a59ab)], 0x32),
|
|
1360
|
+
'threadId': _0x52968f
|
|
1361
|
+
}), _0x3fc3ab = new Map(_0x37cd25[_0x39ea38(_0x2d1927._0x1741c5)]['map'](_0x23ca70 => [
|
|
1362
|
+
_0x23ca70[_0x39ea38(0x161)],
|
|
1363
|
+
_0x23ca70
|
|
1364
|
+
])), _0x5a5516 = _0x52968f ? _0xb2570f(_0x22497b) : _0x22e8c6, _0x2ed4f3 = _0x36b777 ? _0x3507f1 && _0x1b6776(_0x36b777, _0x22497b) : !![], _0x46dcf9 = _0x3507f1 ? _0x2ed4f3 && _0x36b777 ? _0x36b777 : _0x5a5516 : _0x22e8c6;
|
|
1365
|
+
for (const _0x231145 of _0x25f0fd) {
|
|
1366
|
+
if (!_0x2ed4f3)
|
|
1367
|
+
continue;
|
|
1368
|
+
const _0x3402fc = _0x2df93c[_0x39ea38(0x171)](_0x231145), _0x342eb6 = _0x3402fc ? asRecord(_0x3402fc['payloadJson']) : void 0x0, _0x3dd364 = _0x342eb6?.['taskDeliveryMode'] === 'targeted';
|
|
1369
|
+
if (_0x207005 && _0x3dd364)
|
|
1370
|
+
continue;
|
|
1371
|
+
const _0x3df688 = _0x3fc3ab[_0x39ea38(0x171)](_0x231145);
|
|
1372
|
+
if (_0x3df688) {
|
|
1373
|
+
_0x1a2f7f['push']({
|
|
1374
|
+
'attachments': _0x3df688[_0x39ea38(0x186)],
|
|
1375
|
+
'content': _0x3df688[_0x39ea38(_0x2d1927._0x4713f5)],
|
|
1376
|
+
'createdAt': _0x3df688[_0x39ea38(0x1d0)],
|
|
1377
|
+
..._0x3df688[_0x39ea38(_0x2d1927._0x1e41a7)] ? { 'kind': _0x3df688[_0x39ea38(0x1c6)] } : {},
|
|
1378
|
+
'messageId': _0x3df688['messageId'],
|
|
1379
|
+
'senderName': _0x3df688[_0x39ea38(0x19c)],
|
|
1380
|
+
'senderType': _0x3df688[_0x39ea38(_0x2d1927._0x517379)],
|
|
1381
|
+
'target': _0x46dcf9,
|
|
1382
|
+
..._0x3dd364 ? { 'targetedTask': !![] } : {}
|
|
1383
|
+
});
|
|
1384
|
+
continue;
|
|
1385
|
+
}
|
|
1386
|
+
if (_0x3402fc) {
|
|
1387
|
+
const _0x18ab34 = typeof _0x342eb6?.['senderParticipantId'] === _0x39ea38(0x1b8) ? _0x342eb6[_0x39ea38(0x191)] : '', _0x1f6f84 = typeof _0x342eb6?.['bodyMarkdown'] === 'string' ? _0x342eb6[_0x39ea38(_0x2d1927._0x26e3e1)] : '', _0x4b96b1 = typeof _0x342eb6?.[_0x39ea38(0x1c6)] === _0x39ea38(_0x2d1927._0x5eeca6) && _0x342eb6[_0x39ea38(0x1c6)] !== _0x39ea38(0x1da) ? _0x342eb6['kind'] : void 0x0;
|
|
1388
|
+
_0x18ab34 && _0x1f6f84 && _0x1a2f7f[_0x39ea38(_0x2d1927._0x42e902)]({
|
|
1389
|
+
'attachments': [],
|
|
1390
|
+
'content': _0x1f6f84,
|
|
1391
|
+
'createdAt': new Date()[_0x39ea38(_0x2d1927._0x359c47)](),
|
|
1392
|
+
..._0x4b96b1 ? { 'kind': _0x4b96b1 } : {},
|
|
1393
|
+
'messageId': _0x231145,
|
|
1394
|
+
'senderName': _0x18ab34,
|
|
1395
|
+
'senderType': _0x189ec4(_0x18ab34, _0x5a9ec8),
|
|
1396
|
+
'target': _0x46dcf9,
|
|
1397
|
+
..._0x3dd364 ? { 'targetedTask': !![] } : {}
|
|
1398
|
+
});
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
if (_0x43a4ba > 0x0) {
|
|
1403
|
+
if (_0x329f69)
|
|
1404
|
+
await _0x3b3a19(_0x43a4ba);
|
|
1405
|
+
else
|
|
1406
|
+
_0x5b02cc && await _0x152b64(_0x43a4ba);
|
|
1407
|
+
}
|
|
1408
|
+
return _0x43a4ba > _0x27020f && (_0x27020f = _0x43a4ba), { 'messages': _0x36b777 ? _0x1a2f7f : _0x207005 ? _0x1a2f7f[_0x39ea38(0x20f)](_0x2cbab1 => _0x2cbab1[_0x39ea38(0x1d3)] !== !![]) : _0x1a2f7f };
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
function toLocalTime(_0x57466f) {
|
|
1413
|
+
const _0x3d861f = {
|
|
1414
|
+
_0x27b3f5: 0x12b,
|
|
1415
|
+
_0x442446: 0x12a
|
|
1416
|
+
}, _0x4fd368 = _0x3cf5af, _0x3452a6 = new Date(_0x57466f);
|
|
1417
|
+
if (Number[_0x4fd368(0x1d6)](_0x3452a6[_0x4fd368(0x19e)]()))
|
|
1418
|
+
return _0x57466f;
|
|
1419
|
+
const _0x333f1d = _0x384f59 => String(_0x384f59)['padStart'](0x2, '0');
|
|
1420
|
+
return _0x3452a6[_0x4fd368(_0x3d861f._0x27b3f5)]() + '-' + _0x333f1d(_0x3452a6['getMonth']() + 0x1) + '-' + _0x333f1d(_0x3452a6[_0x4fd368(0x106)]()) + '\x20' + _0x333f1d(_0x3452a6[_0x4fd368(0x10a)]()) + ':' + _0x333f1d(_0x3452a6[_0x4fd368(_0x3d861f._0x442446)]()) + ':' + _0x333f1d(_0x3452a6['getSeconds']());
|
|
1525
1421
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1422
|
+
function formatAttachmentSuffix(_0xeabbfc) {
|
|
1423
|
+
const _0x1cd8b6 = { _0x190a57: 0x146 }, _0x468454 = _0x3cf5af;
|
|
1424
|
+
if (!_0xeabbfc || _0xeabbfc[_0x468454(0x18d)] === 0x0)
|
|
1425
|
+
return '';
|
|
1426
|
+
return '\x20[' + _0xeabbfc[_0x468454(0x18d)] + '\x20attachment' + (_0xeabbfc['length'] > 0x1 ? 's' : '') + ':\x20' + _0xeabbfc[_0x468454(0x21c)](_0x549148 => _0x549148[_0x468454(0x274)] + _0x468454(0x1c3) + _0x549148['id'] + ')')[_0x468454(_0x1cd8b6._0x190a57)](',\x20') + _0x468454(0x131);
|
|
1427
|
+
}
|
|
1428
|
+
function formatCheckMessages(_0x5cc297) {
|
|
1429
|
+
const _0x5a74dd = {
|
|
1430
|
+
_0x31e22d: 0x27c,
|
|
1431
|
+
_0xbc75ec: 0x21c
|
|
1432
|
+
}, _0x7c29cf = {
|
|
1433
|
+
_0xc61287: 0x14e,
|
|
1434
|
+
_0x1e5983: 0x1c6,
|
|
1435
|
+
_0x31a021: 0x275,
|
|
1436
|
+
_0x58cb91: 0x161,
|
|
1437
|
+
_0x401655: 0x1d0,
|
|
1438
|
+
_0x960047: 0x19c
|
|
1439
|
+
}, _0x3ca9fe = _0x3cf5af;
|
|
1440
|
+
if (_0x5cc297['length'] === 0x0)
|
|
1441
|
+
return _0x3ca9fe(_0x5a74dd._0x31e22d);
|
|
1442
|
+
return _0x5cc297[_0x3ca9fe(_0x5a74dd._0xbc75ec)](_0x147295 => {
|
|
1443
|
+
const _0x547f9c = _0x3ca9fe, _0x3b04db = _0x147295['senderType'] === 'agent' ? _0x547f9c(_0x7c29cf._0xc61287) : '', _0x313767 = _0x147295[_0x547f9c(_0x7c29cf._0x1e5983)] && _0x147295['kind'] !== _0x547f9c(0x1da) ? _0x547f9c(0x1ba) + _0x147295['kind'] : '';
|
|
1444
|
+
return '[target=' + _0x147295[_0x547f9c(0x226)] + _0x547f9c(_0x7c29cf._0x31a021) + _0x147295[_0x547f9c(_0x7c29cf._0x58cb91)][_0x547f9c(0x26d)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x147295[_0x547f9c(_0x7c29cf._0x401655)]) + _0x3b04db + _0x313767 + _0x547f9c(0x216) + _0x147295[_0x547f9c(_0x7c29cf._0x960047)] + ':\x20' + _0x147295[_0x547f9c(0x26f)] + formatAttachmentSuffix(_0x147295['attachments']);
|
|
1445
|
+
})[_0x3ca9fe(0x146)]('\x0a');
|
|
1446
|
+
}
|
|
1447
|
+
function formatHistory(_0xc4863) {
|
|
1448
|
+
const _0x498fea = {
|
|
1449
|
+
_0x50848f: 0x1a4,
|
|
1450
|
+
_0x371955: 0x21c,
|
|
1451
|
+
_0x37125f: 0x146,
|
|
1452
|
+
_0x55c64d: 0x1cd,
|
|
1453
|
+
_0x4bf02a: 0x256,
|
|
1454
|
+
_0x27bdcb: 0x1a6,
|
|
1455
|
+
_0x378c78: 0x25b,
|
|
1456
|
+
_0x4e480a: 0x1f4
|
|
1457
|
+
}, _0x700955 = {
|
|
1458
|
+
_0x1949f3: 0x260,
|
|
1459
|
+
_0x498696: 0x14e,
|
|
1460
|
+
_0x10cffd: 0x1c6,
|
|
1461
|
+
_0x2d0592: 0x1ba,
|
|
1462
|
+
_0x134021: 0x286,
|
|
1463
|
+
_0x4fde1c: 0x107,
|
|
1464
|
+
_0x28ddc4: 0x161,
|
|
1465
|
+
_0x5e1baf: 0x216,
|
|
1466
|
+
_0x46b4f6: 0x19c,
|
|
1467
|
+
_0x12dab7: 0x186
|
|
1468
|
+
}, _0x5588c1 = _0x3cf5af;
|
|
1469
|
+
if (_0xc4863[_0x5588c1(0x256)]['length'] === 0x0)
|
|
1470
|
+
return _0x5588c1(_0x498fea._0x50848f) + _0xc4863[_0x5588c1(0x1f4)] + _0x5588c1(0x227);
|
|
1471
|
+
const _0x510902 = _0xc4863[_0x5588c1(0x256)][_0x5588c1(_0x498fea._0x371955)](_0x4c83e6 => {
|
|
1472
|
+
const _0x35cca2 = _0x5588c1, _0x422477 = _0x4c83e6[_0x35cca2(_0x700955._0x1949f3)] === _0x35cca2(0x28e) ? _0x35cca2(_0x700955._0x498696) : '', _0x8d5477 = _0x4c83e6[_0x35cca2(_0x700955._0x10cffd)] && _0x4c83e6['kind'] !== _0x35cca2(0x1da) ? _0x35cca2(_0x700955._0x2d0592) + _0x4c83e6['kind'] : '';
|
|
1473
|
+
return _0x35cca2(_0x700955._0x134021) + _0x4c83e6[_0x35cca2(_0x700955._0x4fde1c)] + _0x35cca2(0x275) + _0x4c83e6[_0x35cca2(_0x700955._0x28ddc4)] + '\x20time=' + toLocalTime(_0x4c83e6[_0x35cca2(0x1d0)]) + _0x422477 + _0x8d5477 + _0x35cca2(_0x700955._0x5e1baf) + _0x4c83e6[_0x35cca2(_0x700955._0x46b4f6)] + ':\x20' + _0x4c83e6[_0x35cca2(0x26f)] + formatAttachmentSuffix(_0x4c83e6[_0x35cca2(_0x700955._0x12dab7)]);
|
|
1474
|
+
})[_0x5588c1(_0x498fea._0x37125f)]('\x0a'), _0x80e10f = _0xc4863[_0x5588c1(0x12e)] && _0xc4863[_0x5588c1(0x25b)] ? _0x5588c1(_0x498fea._0x55c64d) + _0xc4863[_0x5588c1(_0x498fea._0x4bf02a)][_0x5588c1(0x18d)] + _0x5588c1(_0x498fea._0x27bdcb) + _0xc4863[_0x5588c1(_0x498fea._0x378c78)] + _0x5588c1(0x198) : '';
|
|
1475
|
+
return _0x5588c1(0x1a4) + _0xc4863[_0x5588c1(_0x498fea._0x4e480a)] + '\x20(' + _0xc4863[_0x5588c1(0x256)]['length'] + _0x5588c1(0x133) + _0x510902 + _0x80e10f;
|
|
1476
|
+
}
|
|
1477
|
+
function formatServerDirectory(_0x39d7ca) {
|
|
1478
|
+
const _0x2fba02 = {
|
|
1479
|
+
_0x3964b7: 0x284,
|
|
1480
|
+
_0x3ac035: 0x21c,
|
|
1481
|
+
_0x5cd3a4: 0x1d2,
|
|
1482
|
+
_0x1077f6: 0x245,
|
|
1483
|
+
_0x30e0ed: 0x245,
|
|
1484
|
+
_0x41c041: 0x18d,
|
|
1485
|
+
_0x3a7f17: 0x20e
|
|
1486
|
+
}, _0x5b98ab = _0x3cf5af, _0xb73205 = _0x39d7ca['channels']['length'] > 0x0 ? _0x39d7ca[_0x5b98ab(_0x2fba02._0x3964b7)][_0x5b98ab(_0x2fba02._0x3ac035)](_0x300cb1 => _0x300cb1[_0x5b98ab(0x13e)] ? _0x5b98ab(0x137) + _0x300cb1['name'] + '\x20—\x20' + _0x300cb1[_0x5b98ab(0x13e)] : _0x5b98ab(0x137) + _0x300cb1[_0x5b98ab(0x173)])['join']('\x0a') : _0x5b98ab(_0x2fba02._0x5cd3a4), _0x2be49f = _0x39d7ca[_0x5b98ab(_0x2fba02._0x1077f6)][_0x5b98ab(0x18d)] > 0x0 ? _0x39d7ca[_0x5b98ab(_0x2fba02._0x30e0ed)]['map'](_0x2b9229 => _0x5b98ab(0x27e) + _0x2b9229[_0x5b98ab(0x173)])[_0x5b98ab(0x146)]('\x0a') : _0x5b98ab(0x1d2), _0x585bb6 = _0x39d7ca[_0x5b98ab(0x276)][_0x5b98ab(_0x2fba02._0x41c041)] > 0x0 ? _0x39d7ca['humans'][_0x5b98ab(_0x2fba02._0x3ac035)](_0x58e992 => '-\x20@' + _0x58e992['name'])[_0x5b98ab(0x146)]('\x0a') : '(none)';
|
|
1487
|
+
return [
|
|
1488
|
+
_0x5b98ab(0x126) + _0x39d7ca[_0x5b98ab(_0x2fba02._0x3a7f17)],
|
|
1489
|
+
'',
|
|
1490
|
+
_0x5b98ab(0x28b),
|
|
1491
|
+
_0xb73205,
|
|
1492
|
+
'',
|
|
1493
|
+
'###\x20Agents',
|
|
1494
|
+
_0x2be49f,
|
|
1495
|
+
'',
|
|
1496
|
+
_0x5b98ab(0x120),
|
|
1497
|
+
_0x585bb6
|
|
1498
|
+
][_0x5b98ab(0x146)]('\x0a');
|
|
1499
|
+
}
|
|
1500
|
+
function formatUploadResult(_0x5607b6) {
|
|
1501
|
+
const _0x362f42 = {
|
|
1502
|
+
_0x5b7bc6: 0x274,
|
|
1503
|
+
_0x295564: 0x220
|
|
1504
|
+
}, _0x538f67 = _0x3cf5af;
|
|
1505
|
+
return 'File\x20uploaded:\x20' + _0x5607b6[_0x538f67(_0x362f42._0x5b7bc6)] + '\x20(' + (_0x5607b6[_0x538f67(0x22d)] / 0x400)[_0x538f67(_0x362f42._0x295564)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x5607b6[_0x538f67(0x225)] + _0x538f67(0x139);
|
|
1506
|
+
}
|
|
1507
|
+
function formatViewFileResult(_0x1c00f4, _0x539a66) {
|
|
1508
|
+
const _0x5ace29 = { _0x4530e4: 0x20a }, _0x71503e = _0x3cf5af;
|
|
1509
|
+
return _0x539a66 ? _0x71503e(_0x5ace29._0x4530e4) + _0x1c00f4 : _0x71503e(0x181) + _0x1c00f4;
|
|
1510
|
+
}
|
|
1511
|
+
function formatTaskList(_0x2101bd, _0x2e0ac8) {
|
|
1512
|
+
const _0x25ebb7 = { _0x2c2879: 0x16f }, _0x35cb77 = {
|
|
1513
|
+
_0x5d584a: 0x1b9,
|
|
1514
|
+
_0x3ea58e: 0x12f,
|
|
1515
|
+
_0x12f9f0: 0x1b9,
|
|
1516
|
+
_0x2f3f9c: 0x12f,
|
|
1517
|
+
_0x20b4b0: 0x1b9,
|
|
1518
|
+
_0x53f7c4: 0x161,
|
|
1519
|
+
_0x4e10c8: 0x12f,
|
|
1520
|
+
_0x21d376: 0x25c,
|
|
1521
|
+
_0x2caa2b: 0x174,
|
|
1522
|
+
_0xaad358: 0x1a8,
|
|
1523
|
+
_0x56d10c: 0x193,
|
|
1524
|
+
_0x21251a: 0x291,
|
|
1525
|
+
_0x1e082b: 0x122
|
|
1526
|
+
}, _0x15d448 = _0x3cf5af;
|
|
1527
|
+
if (_0x2101bd[_0x15d448(0x18d)] === 0x0)
|
|
1528
|
+
return _0x15d448(_0x25ebb7._0x2c2879);
|
|
1529
|
+
return _0x2101bd[_0x15d448(0x21c)](_0x523776 => {
|
|
1530
|
+
const _0x582655 = _0x15d448, _0x44e56f = _0x523776[_0x582655(_0x35cb77._0x5d584a)] == null ? _0x582655(0x182) : _0x523776[_0x582655(_0x35cb77._0x3ea58e)] != null ? '#' + _0x523776[_0x582655(_0x35cb77._0x12f9f0)] + '.' + _0x523776[_0x582655(_0x35cb77._0x2f3f9c)] : '#' + _0x523776[_0x582655(_0x35cb77._0x20b4b0)], _0x220a7e = _0x523776['messageId'] ? _0x582655(0x244) + _0x523776[_0x582655(_0x35cb77._0x53f7c4)] : '', _0x4b1060 = _0x2e0ac8 && _0x523776[_0x582655(0x1b9)] != null && !_0x523776[_0x582655(_0x35cb77._0x4e10c8)] && _0x2e0ac8[_0x582655(_0x35cb77._0x21d376)](_0x523776[_0x582655(0x1b9)]) ? _0x582655(_0x35cb77._0x2caa2b) : '', _0x1288d0 = _0x523776[_0x582655(0x17c)] != null && _0x523776[_0x582655(0x17c)] > 0x0 ? '\x20(' + (_0x523776[_0x582655(_0x35cb77._0xaad358)] ?? 0x0) + '/' + _0x523776['childrenTotal'] + _0x582655(_0x35cb77._0x56d10c) : '';
|
|
1531
|
+
return _0x44e56f + '\x20[' + _0x523776[_0x582655(_0x35cb77._0x21251a)] + ']\x20' + _0x523776[_0x582655(_0x35cb77._0x1e082b)] + _0x1288d0 + _0x220a7e + _0x4b1060;
|
|
1532
|
+
})[_0x15d448(0x146)]('\x0a');
|
|
1533
|
+
}
|
|
1534
|
+
function formatCreatedTasks(_0x5148cf) {
|
|
1535
|
+
const _0x543f7b = {
|
|
1536
|
+
_0x401d6e: 0x18d,
|
|
1537
|
+
_0x199d43: 0x21c
|
|
1538
|
+
}, _0x3e3551 = {
|
|
1539
|
+
_0x2ae782: 0x1b9,
|
|
1540
|
+
_0x5d7ed5: 0x182,
|
|
1541
|
+
_0x559dc3: 0x12f,
|
|
1542
|
+
_0x4ca73b: 0x12f,
|
|
1543
|
+
_0x17269d: 0x244,
|
|
1544
|
+
_0x3c68a7: 0x161
|
|
1545
|
+
}, _0x2d6567 = _0x3cf5af;
|
|
1546
|
+
if (_0x5148cf[_0x2d6567(_0x543f7b._0x401d6e)] === 0x0)
|
|
1547
|
+
return _0x2d6567(0x119);
|
|
1548
|
+
return _0x5148cf[_0x2d6567(_0x543f7b._0x199d43)](_0x583330 => {
|
|
1549
|
+
const _0xe92ddc = _0x2d6567, _0x114ce5 = _0x583330[_0xe92ddc(_0x3e3551._0x2ae782)] == null ? _0xe92ddc(_0x3e3551._0x5d7ed5) : _0x583330[_0xe92ddc(_0x3e3551._0x559dc3)] != null ? '#' + _0x583330[_0xe92ddc(0x1b9)] + '.' + _0x583330[_0xe92ddc(_0x3e3551._0x4ca73b)] : '#' + _0x583330['taskNumber'], _0xea5cb = _0x583330['messageId'] ? _0xe92ddc(_0x3e3551._0x17269d) + _0x583330[_0xe92ddc(_0x3e3551._0x3c68a7)] : '';
|
|
1550
|
+
return _0x114ce5 + '\x20' + _0x583330['title'] + _0xea5cb;
|
|
1551
|
+
})['join']('\x0a');
|
|
1552
|
+
}
|
|
1553
|
+
function formatClaimTaskLabel(_0x298aad, _0x1195f5) {
|
|
1554
|
+
if (_0x298aad == null)
|
|
1555
|
+
return '(legacy)';
|
|
1556
|
+
return _0x1195f5 != null ? '#' + _0x298aad + '.' + _0x1195f5 : '#' + _0x298aad;
|
|
1557
|
+
}
|
|
1558
|
+
function formatClaimTaskResults(_0x4512a3) {
|
|
1559
|
+
const _0x38e1ec = { _0x46de32: 0x18d }, _0x38bf2d = {
|
|
1560
|
+
_0x3e2dbe: 0x1b9,
|
|
1561
|
+
_0x19a44f: 0x161,
|
|
1562
|
+
_0x550ed0: 0x14d,
|
|
1563
|
+
_0x41ad27: 0x21e,
|
|
1564
|
+
_0x230538: 0x130,
|
|
1565
|
+
_0x175b84: 0x140,
|
|
1566
|
+
_0x23d64f: 0x20f,
|
|
1567
|
+
_0x5ea942: 0x146,
|
|
1568
|
+
_0x547b98: 0x175,
|
|
1569
|
+
_0x15a05d: 0x1f0,
|
|
1570
|
+
_0x52532b: 0x1a5
|
|
1571
|
+
}, _0x3b6e5d = _0x3cf5af;
|
|
1572
|
+
if (_0x4512a3[_0x3b6e5d(_0x38e1ec._0x46de32)] === 0x0)
|
|
1573
|
+
return _0x3b6e5d(0x11a);
|
|
1574
|
+
return _0x4512a3[_0x3b6e5d(0x21c)](_0x1f82e8 => {
|
|
1575
|
+
const _0x3a7f22 = _0x3b6e5d;
|
|
1576
|
+
if (_0x1f82e8['success']) {
|
|
1577
|
+
const _0x2eea0e = formatClaimTaskLabel(_0x1f82e8[_0x3a7f22(_0x38bf2d._0x3e2dbe)], _0x1f82e8['subtaskNumber']), _0x74c534 = _0x1f82e8[_0x3a7f22(0x161)] ? _0x3a7f22(0x244) + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x19a44f)] : '';
|
|
1578
|
+
if (_0x1f82e8[_0x3a7f22(0x205)]) {
|
|
1579
|
+
const _0xef63da = [
|
|
1580
|
+
_0x3a7f22(_0x38bf2d._0x550ed0),
|
|
1581
|
+
_0x1f82e8[_0x3a7f22(0x229)] ? _0x3a7f22(_0x38bf2d._0x41ad27) : null,
|
|
1582
|
+
_0x1f82e8['executionMode'] ? _0x3a7f22(0x196) + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x230538)] : null,
|
|
1583
|
+
_0x1f82e8[_0x3a7f22(0x25d)] ? 'threadTarget=' + _0x1f82e8[_0x3a7f22(0x25d)] : null,
|
|
1584
|
+
_0x1f82e8[_0x3a7f22(0x140)] ? 'workerDisposition=' + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x175b84)] : null
|
|
1585
|
+
][_0x3a7f22(_0x38bf2d._0x23d64f)](Boolean)[_0x3a7f22(_0x38bf2d._0x5ea942)]('\x20');
|
|
1586
|
+
return _0x2eea0e + '\x20claimed' + _0x74c534 + '\x20' + _0xef63da + _0x3a7f22(0x26e);
|
|
1560
1587
|
}
|
|
1561
|
-
const
|
|
1562
|
-
return
|
|
1588
|
+
const _0x16f366 = _0x1f82e8[_0x3a7f22(0x117)] ? '\x20workerHandoff=false\x20error=' + _0x1f82e8[_0x3a7f22(0x117)] : '';
|
|
1589
|
+
return _0x2eea0e + _0x3a7f22(_0x38bf2d._0x547b98) + _0x74c534 + _0x16f366;
|
|
1563
1590
|
}
|
|
1564
|
-
const
|
|
1565
|
-
return
|
|
1566
|
-
})[
|
|
1591
|
+
const _0x2d4ba2 = _0x1f82e8[_0x3a7f22(_0x38bf2d._0x3e2dbe)] == null ? _0x1f82e8[_0x3a7f22(0x161)] ?? _0x3a7f22(_0x38bf2d._0x15a05d) : formatClaimTaskLabel(_0x1f82e8[_0x3a7f22(0x1b9)], _0x1f82e8[_0x3a7f22(0x12f)]);
|
|
1592
|
+
return _0x2d4ba2 + _0x3a7f22(0x183) + (_0x1f82e8[_0x3a7f22(0x154)] ?? _0x3a7f22(_0x38bf2d._0x52532b));
|
|
1593
|
+
})['join']('\x0a');
|
|
1567
1594
|
}
|
|
1568
|
-
function formatUnclaimTaskResult(
|
|
1569
|
-
const
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
return _0x40435d + _0x13ebfb(0x169) + _0x5b51ae[_0x13ebfb(0xbf)];
|
|
1595
|
+
function formatUnclaimTaskResult(_0x2f0a0b) {
|
|
1596
|
+
const _0x20b84a = {
|
|
1597
|
+
_0x3bed9d: 0x12f,
|
|
1598
|
+
_0x583590: 0x1b9,
|
|
1599
|
+
_0x2c8f35: 0x291
|
|
1600
|
+
}, _0xaa5057 = _0x3cf5af, _0xf32162 = _0x2f0a0b[_0xaa5057(0x1b9)] == null ? _0xaa5057(0x182) : _0x2f0a0b[_0xaa5057(_0x20b84a._0x3bed9d)] != null ? '#' + _0x2f0a0b[_0xaa5057(_0x20b84a._0x583590)] + '.' + _0x2f0a0b[_0xaa5057(0x12f)] : '#' + _0x2f0a0b['taskNumber'];
|
|
1601
|
+
return _0xf32162 + _0xaa5057(0x24c) + _0x2f0a0b[_0xaa5057(_0x20b84a._0x2c8f35)];
|
|
1576
1602
|
}
|
|
1577
|
-
function formatUpdateTaskStatusResult(
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1603
|
+
function formatUpdateTaskStatusResult(_0x19b694) {
|
|
1604
|
+
const _0x1be3d1 = {
|
|
1605
|
+
_0x280a00: 0x12f,
|
|
1606
|
+
_0x395dac: 0x12f,
|
|
1607
|
+
_0x3f641e: 0x1b9,
|
|
1608
|
+
_0x6645a4: 0x24c,
|
|
1609
|
+
_0x42fba3: 0x291
|
|
1610
|
+
}, _0x5b2084 = _0x3cf5af, _0x49c6c3 = _0x19b694[_0x5b2084(0x1b9)] == null ? _0x5b2084(0x182) : _0x19b694[_0x5b2084(_0x1be3d1._0x280a00)] != null ? '#' + _0x19b694[_0x5b2084(0x1b9)] + '.' + _0x19b694[_0x5b2084(_0x1be3d1._0x395dac)] : '#' + _0x19b694[_0x5b2084(_0x1be3d1._0x3f641e)];
|
|
1611
|
+
return _0x49c6c3 + _0x5b2084(_0x1be3d1._0x6645a4) + _0x19b694[_0x5b2084(_0x1be3d1._0x42fba3)];
|
|
1583
1612
|
}
|
|
1584
1613
|
function getChatBridgeToolDefinitions() {
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
},
|
|
1614
|
+
const _0x57e939 = {
|
|
1615
|
+
_0xbfbd8f: 0x170,
|
|
1616
|
+
_0x5be841: 0x1e8,
|
|
1617
|
+
_0x3feb9a: 0x254,
|
|
1618
|
+
_0x237c11: 0x11f
|
|
1619
|
+
}, _0x33eef6 = _0x3cf5af;
|
|
1591
1620
|
return [
|
|
1592
|
-
{ 'name':
|
|
1593
|
-
{ 'name':
|
|
1594
|
-
{ 'name':
|
|
1595
|
-
{ 'name':
|
|
1596
|
-
{ 'name':
|
|
1597
|
-
{ 'name':
|
|
1598
|
-
{ 'name':
|
|
1599
|
-
{ 'name':
|
|
1600
|
-
{ 'name':
|
|
1601
|
-
{ 'name':
|
|
1602
|
-
{ 'name':
|
|
1603
|
-
{ 'name':
|
|
1604
|
-
{ 'name':
|
|
1605
|
-
{ 'name':
|
|
1606
|
-
{ 'name':
|
|
1621
|
+
{ 'name': _0x33eef6(0x192) },
|
|
1622
|
+
{ 'name': _0x33eef6(0x187) },
|
|
1623
|
+
{ 'name': 'read_history' },
|
|
1624
|
+
{ 'name': _0x33eef6(0x10e) },
|
|
1625
|
+
{ 'name': _0x33eef6(_0x57e939._0xbfbd8f) },
|
|
1626
|
+
{ 'name': _0x33eef6(0x123) },
|
|
1627
|
+
{ 'name': _0x33eef6(0x1c9) },
|
|
1628
|
+
{ 'name': _0x33eef6(0x1f9) },
|
|
1629
|
+
{ 'name': _0x33eef6(0x22a) },
|
|
1630
|
+
{ 'name': _0x33eef6(0x113) },
|
|
1631
|
+
{ 'name': _0x33eef6(_0x57e939._0x5be841) },
|
|
1632
|
+
{ 'name': _0x33eef6(_0x57e939._0x3feb9a) },
|
|
1633
|
+
{ 'name': _0x33eef6(0x242) },
|
|
1634
|
+
{ 'name': _0x33eef6(0x27f) },
|
|
1635
|
+
{ 'name': _0x33eef6(_0x57e939._0x237c11) }
|
|
1607
1636
|
];
|
|
1608
1637
|
}
|
|
1609
|
-
function createChatBridgeHandlers(
|
|
1610
|
-
const
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
},
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
},
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1638
|
+
function createChatBridgeHandlers(_0x2e8461) {
|
|
1639
|
+
const _0x2975c9 = { _0x55a68a: 0x11e }, _0x282eae = {
|
|
1640
|
+
_0xf66c00: 0x24b,
|
|
1641
|
+
_0x180735: 0x24e,
|
|
1642
|
+
_0x77ad32: 0x204,
|
|
1643
|
+
_0x2ff689: 0x16e,
|
|
1644
|
+
_0x33b29b: 0x24d,
|
|
1645
|
+
_0x4fa388: 0x257,
|
|
1646
|
+
_0x1f2e61: 0x154
|
|
1647
|
+
}, _0x586745 = {
|
|
1648
|
+
_0x54352d: 0x24b,
|
|
1649
|
+
_0x4491f0: 0x288,
|
|
1650
|
+
_0x547063: 0x277,
|
|
1651
|
+
_0x56e095: 0x184
|
|
1652
|
+
}, _0x537c74 = {
|
|
1653
|
+
_0x50c379: 0x11b,
|
|
1654
|
+
_0x475ea8: 0x204,
|
|
1655
|
+
_0x2fe766: 0x277,
|
|
1656
|
+
_0x5405c0: 0x16e,
|
|
1657
|
+
_0xa153ac: 0x19d,
|
|
1658
|
+
_0x402e7a: 0x1ea
|
|
1659
|
+
}, _0x329130 = {
|
|
1660
|
+
_0xceb81d: 0x11b,
|
|
1661
|
+
_0x2dd372: 0x23f,
|
|
1662
|
+
_0x5894d0: 0x263,
|
|
1663
|
+
_0x228965: 0x13f
|
|
1664
|
+
}, _0x114cce = { _0x5645a0: 0x118 }, _0x471d31 = { _0x1e985b: 0x224 }, _0x3e4aa0 = {
|
|
1665
|
+
_0x17530e: 0x1f4,
|
|
1666
|
+
_0x3d0474: 0x1fd
|
|
1667
|
+
}, _0x4ba317 = {
|
|
1668
|
+
_0x59f518: 0x12d,
|
|
1669
|
+
_0x2821cb: 0x162
|
|
1670
|
+
}, _0x34b43c = {
|
|
1671
|
+
_0x3421de: 0x1f4,
|
|
1672
|
+
_0x4d2fe7: 0x282,
|
|
1673
|
+
_0x10c045: 0x18d,
|
|
1674
|
+
_0x1b6c20: 0x163,
|
|
1675
|
+
_0x30de7c: 0x156,
|
|
1676
|
+
_0x32b9e5: 0x1dd
|
|
1677
|
+
}, _0x20e5f7 = {
|
|
1678
|
+
_0x18c491: 0x1bd,
|
|
1679
|
+
_0x35a2ce: 0x161,
|
|
1680
|
+
_0xea5da2: 0x219,
|
|
1681
|
+
_0x5cbd15: 0x290
|
|
1682
|
+
}, _0x4711c7 = { _0x2817bb: 0x1f4 }, _0x4e4f25 = {
|
|
1683
|
+
_0x1ac099: 0x21f,
|
|
1684
|
+
_0x5135be: 0x288,
|
|
1685
|
+
_0x4c51d0: 0x24b,
|
|
1686
|
+
_0x485d97: 0x1aa,
|
|
1687
|
+
_0x569d77: 0x288,
|
|
1688
|
+
_0x963983: 0x16e,
|
|
1689
|
+
_0x54dd33: 0x1f4,
|
|
1690
|
+
_0xdb6e13: 0x218,
|
|
1691
|
+
_0x1f7a0d: 0x127,
|
|
1692
|
+
_0x4e6089: 0x1b9,
|
|
1693
|
+
_0x61a18f: 0x231,
|
|
1694
|
+
_0x265b95: 0x1df,
|
|
1695
|
+
_0x2e3f36: 0x127
|
|
1696
|
+
}, _0xa62eb9 = {
|
|
1697
|
+
_0xda92a2: 0x156,
|
|
1698
|
+
_0x53f121: 0x241
|
|
1699
|
+
}, _0x2096ee = { _0x351e7f: 0x156 }, _0x3690fc = {
|
|
1700
|
+
_0x50d4f2: 0x27d,
|
|
1701
|
+
_0x5167c5: 0x1b2
|
|
1702
|
+
}, _0x50b1f3 = {
|
|
1703
|
+
_0x580a4c: 0x156,
|
|
1704
|
+
_0x69b344: 0x283,
|
|
1705
|
+
_0x45d286: 0x147,
|
|
1706
|
+
_0x20995d: 0x22c,
|
|
1707
|
+
_0x1a62f0: 0x1e4,
|
|
1708
|
+
_0x293ed4: 0x155,
|
|
1709
|
+
_0x33507c: 0x26f,
|
|
1710
|
+
_0x46a988: 0x204,
|
|
1711
|
+
_0x3cc4c4: 0x277,
|
|
1712
|
+
_0x444306: 0x288,
|
|
1713
|
+
_0xa90868: 0x1b4,
|
|
1714
|
+
_0x351ab1: 0x206,
|
|
1715
|
+
_0x211c4e: 0x24d,
|
|
1716
|
+
_0x3378fa: 0x261,
|
|
1717
|
+
_0x1057f4: 0x262,
|
|
1718
|
+
_0x3175cb: 0x114,
|
|
1719
|
+
_0x465dd0: 0x26f,
|
|
1720
|
+
_0x45336c: 0x268,
|
|
1721
|
+
_0x12a352: 0x226,
|
|
1722
|
+
_0x2b0a25: 0x161
|
|
1723
|
+
}, _0x486463 = {
|
|
1724
|
+
_0x3cdfa0: 0x24b,
|
|
1725
|
+
_0x3beb01: 0x24b,
|
|
1726
|
+
_0x2d637e: 0x288,
|
|
1727
|
+
_0x48e3b9: 0x25c,
|
|
1728
|
+
_0x47a2ea: 0x291,
|
|
1729
|
+
_0x469a49: 0x231,
|
|
1730
|
+
_0x4a60a8: 0x218
|
|
1731
|
+
}, _0x428295 = {
|
|
1732
|
+
_0x451aca: 0x24b,
|
|
1733
|
+
_0x467a35: 0x1aa,
|
|
1734
|
+
_0x22918f: 0x291,
|
|
1735
|
+
_0x218fd0: 0x165
|
|
1736
|
+
}, _0x58d386 = {
|
|
1737
|
+
_0x575120: 0x24b,
|
|
1738
|
+
_0x2d2f75: 0x288,
|
|
1739
|
+
_0x3a3d0d: 0x1b2,
|
|
1740
|
+
_0x25664e: 0x1b6,
|
|
1741
|
+
_0x144cd5: 0x161,
|
|
1742
|
+
_0x54e622: 0x156,
|
|
1743
|
+
_0x260b11: 0x223,
|
|
1744
|
+
_0x384f9a: 0x275,
|
|
1745
|
+
_0x22740e: 0x26d,
|
|
1746
|
+
_0x41c670: 0x1ed,
|
|
1747
|
+
_0x13933a: 0x28f,
|
|
1748
|
+
_0x1fc60b: 0x23a,
|
|
1749
|
+
_0x31a128: 0x14a,
|
|
1750
|
+
_0x280d3d: 0x1b9,
|
|
1751
|
+
_0x53f772: 0x16e,
|
|
1752
|
+
_0x35b130: 0x24d,
|
|
1753
|
+
_0x31e920: 0x290,
|
|
1754
|
+
_0x3276a1: 0x1d5,
|
|
1755
|
+
_0x453b2b: 0x1c4
|
|
1756
|
+
}, _0x4b47ef = {
|
|
1757
|
+
_0x5bfb1c: 0x129,
|
|
1758
|
+
_0x12196a: 0x237
|
|
1759
|
+
}, _0x5a52c6 = _0x3cf5af;
|
|
1760
|
+
function _0x5b15c1(_0x43574a, _0x1ad18e) {
|
|
1761
|
+
const _0x448917 = _0x7e16;
|
|
1762
|
+
if (!_0x2e8461[_0x448917(0x1b2)])
|
|
1728
1763
|
return;
|
|
1729
|
-
if (!
|
|
1730
|
-
throw new Error(
|
|
1731
|
-
if (
|
|
1732
|
-
throw new Error(
|
|
1764
|
+
if (!_0x2e8461[_0x448917(_0x4b47ef._0x5bfb1c)])
|
|
1765
|
+
throw new Error(_0x43574a + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
|
|
1766
|
+
if (_0x1ad18e !== _0x2e8461[_0x448917(0x129)])
|
|
1767
|
+
throw new Error(_0x43574a + _0x448917(_0x4b47ef._0x12196a) + _0x2e8461['workerThreadTarget'] + _0x448917(0x1b0) + _0x1ad18e);
|
|
1733
1768
|
}
|
|
1734
|
-
async function
|
|
1735
|
-
const
|
|
1736
|
-
if (!
|
|
1769
|
+
async function _0x2731d8(_0x1687e3) {
|
|
1770
|
+
const _0x598bf9 = _0x7e16;
|
|
1771
|
+
if (!_0x2e8461[_0x598bf9(_0x58d386._0x575120)] || !_0x2e8461[_0x598bf9(_0x58d386._0x2d2f75)] || _0x2e8461[_0x598bf9(_0x58d386._0x3a3d0d)] || _0x2e8461[_0x598bf9(_0x58d386._0x25664e)] !== !![])
|
|
1737
1772
|
return null;
|
|
1738
|
-
const
|
|
1739
|
-
if (
|
|
1773
|
+
const _0x22e964 = parseTarget(_0x1687e3[_0x598bf9(0x1f4)]);
|
|
1774
|
+
if (_0x22e964[_0x598bf9(0x1c6)] !== 'channel')
|
|
1740
1775
|
return null;
|
|
1741
|
-
const
|
|
1742
|
-
let
|
|
1776
|
+
const _0x14bd79 = _0x1687e3['threadNumber'] != null ? _0x22e964['channelTarget'] + ':t' + _0x1687e3[_0x598bf9(0x147)] : _0x22e964[_0x598bf9(0x215)] + ':' + _0x1687e3[_0x598bf9(_0x58d386._0x144cd5)];
|
|
1777
|
+
let _0x1ee01f;
|
|
1743
1778
|
try {
|
|
1744
|
-
const
|
|
1745
|
-
'channel':
|
|
1779
|
+
const _0x5aedd9 = await _0x2e8461[_0x598bf9(_0x58d386._0x54e622)]['readHistory']({
|
|
1780
|
+
'channel': _0x14bd79,
|
|
1746
1781
|
'limit': 0x14
|
|
1747
1782
|
});
|
|
1748
|
-
|
|
1783
|
+
_0x1ee01f = _0x5aedd9[_0x598bf9(0x256)][_0x598bf9(_0x58d386._0x260b11)](_0x37a2a0 => _0x37a2a0[_0x598bf9(0x161)] === _0x1687e3['messageId']);
|
|
1749
1784
|
} catch {
|
|
1750
|
-
|
|
1785
|
+
_0x1ee01f = void 0x0;
|
|
1751
1786
|
}
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1787
|
+
const _0x4b0360 = _0x1687e3[_0x598bf9(0x1b9)] == null ? _0x598bf9(0x182) : '#' + _0x1687e3['taskNumber'], _0x489b32 = [
|
|
1788
|
+
_0x598bf9(0x22c) + _0x14bd79 + _0x598bf9(_0x58d386._0x384f9a) + _0x1687e3[_0x598bf9(0x161)][_0x598bf9(_0x58d386._0x22740e)](0x0, 0x8) + _0x598bf9(_0x58d386._0x41c670) + new Date()['toISOString']() + _0x598bf9(_0x58d386._0x13933a) + _0x4b0360 + _0x598bf9(_0x58d386._0x1fc60b),
|
|
1754
1789
|
'',
|
|
1755
|
-
|
|
1790
|
+
_0x1ee01f ? _0x598bf9(0x250) + _0x1ee01f[_0x598bf9(0x26f)] : 'Root\x20task\x20message\x20id:\x20' + _0x1687e3[_0x598bf9(0x161)],
|
|
1756
1791
|
'',
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
][
|
|
1760
|
-
'method':
|
|
1761
|
-
'headers': { 'Content-Type':
|
|
1762
|
-
'body': JSON[
|
|
1763
|
-
'agent_id':
|
|
1764
|
-
'thread_target':
|
|
1792
|
+
_0x598bf9(0x1e1) + _0x14bd79,
|
|
1793
|
+
_0x598bf9(0x150)
|
|
1794
|
+
][_0x598bf9(0x146)]('\x0a'), _0x381690 = await fetch(_0x2e8461[_0x598bf9(0x24b)] + _0x598bf9(0x14f), {
|
|
1795
|
+
'method': _0x598bf9(0x204),
|
|
1796
|
+
'headers': { 'Content-Type': _0x598bf9(_0x58d386._0x31a128) },
|
|
1797
|
+
'body': JSON['stringify']({
|
|
1798
|
+
'agent_id': _0x2e8461[_0x598bf9(0x288)],
|
|
1799
|
+
'thread_target': _0x14bd79,
|
|
1765
1800
|
'spawn_packet': {
|
|
1766
|
-
'replyTarget':
|
|
1767
|
-
...
|
|
1801
|
+
'replyTarget': _0x14bd79,
|
|
1802
|
+
..._0x1687e3[_0x598bf9(0x206)] ? { 'taskId': _0x1687e3['taskId'] } : _0x1687e3[_0x598bf9(0x1b9)] != null ? { 'taskId': _0x598bf9(0x13d) + _0x1687e3[_0x598bf9(_0x58d386._0x280d3d)] } : {}
|
|
1768
1803
|
},
|
|
1769
1804
|
'payload': {
|
|
1770
1805
|
'mode': 'user',
|
|
1771
|
-
'text':
|
|
1806
|
+
'text': _0x489b32
|
|
1772
1807
|
}
|
|
1773
1808
|
})
|
|
1774
|
-
}),
|
|
1775
|
-
if (!
|
|
1776
|
-
throw new Error(
|
|
1809
|
+
}), _0x2b6b62 = await _0x381690[_0x598bf9(_0x58d386._0x53f772)]();
|
|
1810
|
+
if (!_0x2b6b62['ok'])
|
|
1811
|
+
throw new Error(_0x2b6b62[_0x598bf9(_0x58d386._0x35b130)] ?? _0x598bf9(_0x58d386._0x31e920));
|
|
1777
1812
|
return {
|
|
1778
1813
|
'stopMain': !![],
|
|
1779
|
-
'threadTarget':
|
|
1780
|
-
'workerDisposition':
|
|
1814
|
+
'threadTarget': _0x14bd79,
|
|
1815
|
+
'workerDisposition': _0x2b6b62[_0x598bf9(_0x58d386._0x3276a1)] === _0x598bf9(_0x58d386._0x453b2b) ? _0x598bf9(0x1c4) : _0x598bf9(0x1b7),
|
|
1781
1816
|
'workerHandoff': !![],
|
|
1782
|
-
'workerSessionId':
|
|
1783
|
-
'executionMode':
|
|
1817
|
+
'workerSessionId': _0x2b6b62['worker_session_id'] ?? '',
|
|
1818
|
+
'executionMode': _0x598bf9(0x253)
|
|
1784
1819
|
};
|
|
1785
1820
|
}
|
|
1786
|
-
async function
|
|
1787
|
-
const
|
|
1788
|
-
if (!
|
|
1821
|
+
async function _0x35af48() {
|
|
1822
|
+
const _0xb25b95 = _0x7e16;
|
|
1823
|
+
if (!_0x2e8461[_0xb25b95(_0x428295._0x451aca)] || !_0x2e8461['agentId'] || _0x2e8461[_0xb25b95(0x1b2)])
|
|
1789
1824
|
return null;
|
|
1790
1825
|
try {
|
|
1791
|
-
const
|
|
1792
|
-
if (!
|
|
1826
|
+
const _0x25592a = await fetch(_0x2e8461[_0xb25b95(_0x428295._0x451aca)] + _0xb25b95(_0x428295._0x467a35) + encodeURIComponent(_0x2e8461[_0xb25b95(0x288)])), _0x4b0e14 = await _0x25592a['json']();
|
|
1827
|
+
if (!_0x4b0e14['ok'])
|
|
1793
1828
|
return null;
|
|
1794
|
-
const
|
|
1795
|
-
for (const
|
|
1796
|
-
|
|
1829
|
+
const _0x16cd57 = new Set();
|
|
1830
|
+
for (const _0x22be7c of _0x4b0e14[_0xb25b95(0x243)]) {
|
|
1831
|
+
_0x22be7c[_0xb25b95(_0x428295._0x22918f)] !== _0xb25b95(_0x428295._0x218fd0) && _0x22be7c[_0xb25b95(0x218)] && _0x16cd57['add'](_0x22be7c['thread_target']);
|
|
1797
1832
|
}
|
|
1798
|
-
return
|
|
1833
|
+
return _0x16cd57[_0xb25b95(0x1d4)] > 0x0 ? _0x16cd57 : null;
|
|
1799
1834
|
} catch {
|
|
1800
1835
|
return null;
|
|
1801
1836
|
}
|
|
1802
1837
|
}
|
|
1803
|
-
const
|
|
1838
|
+
const _0x16b4db = new Set([
|
|
1804
1839
|
'running',
|
|
1805
|
-
|
|
1806
|
-
|
|
1840
|
+
_0x5a52c6(_0x2975c9._0x55a68a),
|
|
1841
|
+
'waiting_input'
|
|
1807
1842
|
]);
|
|
1808
|
-
async function
|
|
1809
|
-
const
|
|
1810
|
-
if (!
|
|
1843
|
+
async function _0x271086() {
|
|
1844
|
+
const _0x3ae411 = _0x5a52c6;
|
|
1845
|
+
if (!_0x2e8461[_0x3ae411(_0x486463._0x3cdfa0)] || !_0x2e8461[_0x3ae411(0x288)] || _0x2e8461['workerMode'])
|
|
1811
1846
|
return null;
|
|
1812
1847
|
try {
|
|
1813
|
-
const
|
|
1814
|
-
if (!
|
|
1848
|
+
const _0x42c657 = await fetch(_0x2e8461[_0x3ae411(_0x486463._0x3beb01)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2e8461[_0x3ae411(_0x486463._0x2d637e)])), _0x260f55 = await _0x42c657[_0x3ae411(0x16e)]();
|
|
1849
|
+
if (!_0x260f55['ok'])
|
|
1815
1850
|
return null;
|
|
1816
|
-
const
|
|
1817
|
-
for (const
|
|
1818
|
-
|
|
1851
|
+
const _0x307053 = new Set();
|
|
1852
|
+
for (const _0x318422 of _0x260f55[_0x3ae411(0x243)]) {
|
|
1853
|
+
_0x16b4db[_0x3ae411(_0x486463._0x48e3b9)](_0x318422[_0x3ae411(_0x486463._0x47a2ea)]) && _0x318422[_0x3ae411(0x218)] && _0x307053[_0x3ae411(_0x486463._0x469a49)](_0x318422[_0x3ae411(_0x486463._0x4a60a8)]);
|
|
1819
1854
|
}
|
|
1820
|
-
return
|
|
1855
|
+
return _0x307053['size'] > 0x0 ? _0x307053 : null;
|
|
1821
1856
|
} catch {
|
|
1822
1857
|
return null;
|
|
1823
1858
|
}
|
|
1824
1859
|
}
|
|
1825
1860
|
return {
|
|
1826
|
-
async 'send_message'(
|
|
1827
|
-
const
|
|
1828
|
-
if (!
|
|
1829
|
-
const
|
|
1830
|
-
if (
|
|
1831
|
-
const
|
|
1832
|
-
if (
|
|
1861
|
+
async 'send_message'(_0x47e02f) {
|
|
1862
|
+
const _0x1e2e9b = _0x5a52c6;
|
|
1863
|
+
if (!_0x2e8461['workerMode'] && _0x2e8461['workerModeEnabled'] && _0x2e8461[_0x1e2e9b(0x24b)] && _0x2e8461[_0x1e2e9b(0x288)]) {
|
|
1864
|
+
const _0x21cd00 = await _0x2e8461[_0x1e2e9b(_0x50b1f3._0x580a4c)][_0x1e2e9b(_0x50b1f3._0x69b344)](_0x47e02f[_0x1e2e9b(0x226)]);
|
|
1865
|
+
if (_0x21cd00[_0x1e2e9b(0x1b4)] && _0x21cd00['threadId']) {
|
|
1866
|
+
const _0x3ebcc6 = _0x21cd00[_0x1e2e9b(0x1b4)]['taskNumber'] != null ? '#' + _0x21cd00['task'][_0x1e2e9b(0x1b9)] : '(legacy)', _0x545307 = _0x21cd00[_0x1e2e9b(0x147)] != null ? _0x21cd00['target'] + ':t' + _0x21cd00[_0x1e2e9b(_0x50b1f3._0x45d286)] : _0x21cd00['target'] + ':' + _0x21cd00['threadId']['slice'](0x0, 0x8), _0x2f4176 = await _0x271086();
|
|
1867
|
+
if (_0x2f4176?.['has'](_0x545307))
|
|
1833
1868
|
return [
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
][
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1869
|
+
_0x1e2e9b(0x112) + _0x3ebcc6 + '\x20in\x20' + _0x545307 + _0x1e2e9b(0x210),
|
|
1870
|
+
_0x1e2e9b(0x236)
|
|
1871
|
+
][_0x1e2e9b(0x146)]('\x0a');
|
|
1872
|
+
const _0x381cf8 = [
|
|
1873
|
+
_0x1e2e9b(_0x50b1f3._0x20995d) + _0x545307 + _0x1e2e9b(_0x50b1f3._0x1a62f0) + new Date()['toISOString']() + _0x1e2e9b(_0x50b1f3._0x293ed4),
|
|
1839
1874
|
'',
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
][
|
|
1845
|
-
'method':
|
|
1846
|
-
'headers': { 'Content-Type':
|
|
1847
|
-
'body': JSON[
|
|
1848
|
-
'agent_id':
|
|
1849
|
-
'thread_target':
|
|
1875
|
+
'Original\x20message:\x20' + _0x47e02f[_0x1e2e9b(_0x50b1f3._0x33507c)],
|
|
1876
|
+
'Task:\x20' + _0x3ebcc6 + '\x20(' + _0x21cd00['task']['taskId'] + ')',
|
|
1877
|
+
_0x1e2e9b(0x1e1) + _0x545307,
|
|
1878
|
+
_0x1e2e9b(0x11c)
|
|
1879
|
+
]['join']('\x0a'), _0xbcff25 = await fetch(_0x2e8461[_0x1e2e9b(0x24b)] + '/workers/deliver', {
|
|
1880
|
+
'method': _0x1e2e9b(_0x50b1f3._0x46a988),
|
|
1881
|
+
'headers': { 'Content-Type': _0x1e2e9b(0x14a) },
|
|
1882
|
+
'body': JSON[_0x1e2e9b(_0x50b1f3._0x3cc4c4)]({
|
|
1883
|
+
'agent_id': _0x2e8461[_0x1e2e9b(_0x50b1f3._0x444306)],
|
|
1884
|
+
'thread_target': _0x545307,
|
|
1850
1885
|
'spawn_packet': {
|
|
1851
|
-
'replyTarget':
|
|
1852
|
-
'taskId':
|
|
1886
|
+
'replyTarget': _0x545307,
|
|
1887
|
+
'taskId': _0x21cd00[_0x1e2e9b(_0x50b1f3._0xa90868)][_0x1e2e9b(_0x50b1f3._0x351ab1)]
|
|
1853
1888
|
},
|
|
1854
1889
|
'payload': {
|
|
1855
1890
|
'mode': 'user',
|
|
1856
|
-
'text':
|
|
1891
|
+
'text': _0x381cf8
|
|
1857
1892
|
}
|
|
1858
1893
|
})
|
|
1859
|
-
}),
|
|
1860
|
-
if (!
|
|
1861
|
-
throw new Error(
|
|
1894
|
+
}), _0x1a7f07 = await _0xbcff25['json']();
|
|
1895
|
+
if (!_0x1a7f07['ok'])
|
|
1896
|
+
throw new Error(_0x1a7f07[_0x1e2e9b(_0x50b1f3._0x211c4e)] ?? _0x1e2e9b(0x1fe));
|
|
1862
1897
|
return [
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
][
|
|
1898
|
+
_0x1e2e9b(_0x50b1f3._0x3378fa) + _0x3ebcc6 + _0x1e2e9b(0x21a) + _0x545307 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1899
|
+
_0x1e2e9b(_0x50b1f3._0x1057f4) + (_0x1a7f07['disposition'] === _0x1e2e9b(0x1c4) ? 'queued' : _0x1e2e9b(0x1b7)) + '.',
|
|
1900
|
+
_0x1e2e9b(0x13b)
|
|
1901
|
+
][_0x1e2e9b(0x146)]('\x0a');
|
|
1867
1902
|
}
|
|
1868
1903
|
}
|
|
1869
|
-
const
|
|
1870
|
-
'attachmentIds':
|
|
1871
|
-
'content':
|
|
1872
|
-
'target':
|
|
1873
|
-
'visibility':
|
|
1904
|
+
const _0x11a4cc = await _0x2e8461['client'][_0x1e2e9b(0x211)]({
|
|
1905
|
+
'attachmentIds': _0x47e02f[_0x1e2e9b(_0x50b1f3._0x3175cb)],
|
|
1906
|
+
'content': _0x47e02f[_0x1e2e9b(_0x50b1f3._0x465dd0)],
|
|
1907
|
+
'target': _0x47e02f['target'],
|
|
1908
|
+
'visibility': _0x47e02f[_0x1e2e9b(0x28c)]
|
|
1874
1909
|
});
|
|
1875
|
-
return
|
|
1910
|
+
return _0x1e2e9b(_0x50b1f3._0x45336c) + _0x47e02f[_0x1e2e9b(_0x50b1f3._0x12a352)] + '.\x20Message\x20ID:\x20' + _0x11a4cc[_0x1e2e9b(_0x50b1f3._0x2b0a25)];
|
|
1876
1911
|
},
|
|
1877
1912
|
async 'check_messages'() {
|
|
1878
|
-
const
|
|
1879
|
-
if (!
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1882
|
-
return formatCheckMessages(
|
|
1913
|
+
const _0xbcfedd = _0x5a52c6, _0x573190 = await _0x2e8461[_0xbcfedd(0x156)][_0xbcfedd(_0x3690fc._0x50d4f2)]();
|
|
1914
|
+
if (!_0x2e8461[_0xbcfedd(_0x3690fc._0x5167c5)]) {
|
|
1915
|
+
const _0x121102 = await _0x35af48();
|
|
1916
|
+
if (_0x121102)
|
|
1917
|
+
return formatCheckMessages(_0x573190[_0xbcfedd(0x256)][_0xbcfedd(0x20f)](_0x861df4 => !_0x121102[_0xbcfedd(0x25c)](_0x861df4[_0xbcfedd(0x226)])));
|
|
1883
1918
|
}
|
|
1884
|
-
return formatCheckMessages(
|
|
1919
|
+
return formatCheckMessages(_0x573190[_0xbcfedd(0x256)]);
|
|
1885
1920
|
},
|
|
1886
|
-
async 'read_history'(
|
|
1887
|
-
const
|
|
1888
|
-
return formatHistory(
|
|
1921
|
+
async 'read_history'(_0x12ac94) {
|
|
1922
|
+
const _0x30ad27 = _0x5a52c6, _0x197aed = await _0x2e8461[_0x30ad27(_0x2096ee._0x351e7f)][_0x30ad27(0x289)](_0x12ac94);
|
|
1923
|
+
return formatHistory(_0x197aed);
|
|
1889
1924
|
},
|
|
1890
1925
|
async 'list_server'() {
|
|
1891
|
-
const
|
|
1892
|
-
return formatServerDirectory(
|
|
1926
|
+
const _0x295ebb = _0x5a52c6, _0x2a2154 = await _0x2e8461[_0x295ebb(_0xa62eb9._0xda92a2)][_0x295ebb(_0xa62eb9._0x53f121)]();
|
|
1927
|
+
return formatServerDirectory(_0x2a2154);
|
|
1893
1928
|
},
|
|
1894
|
-
async 'list_tasks'(
|
|
1895
|
-
const
|
|
1896
|
-
let
|
|
1897
|
-
if (
|
|
1929
|
+
async 'list_tasks'(_0x355c4a) {
|
|
1930
|
+
const _0x42cc08 = _0x5a52c6, _0x3a0d25 = await _0x2e8461[_0x42cc08(0x156)][_0x42cc08(_0x4e4f25._0x1ac099)](_0x355c4a);
|
|
1931
|
+
let _0x5b1959;
|
|
1932
|
+
if (_0x2e8461[_0x42cc08(0x24b)] && _0x2e8461[_0x42cc08(_0x4e4f25._0x5135be)])
|
|
1898
1933
|
try {
|
|
1899
|
-
const
|
|
1900
|
-
if (
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1903
|
-
for (const
|
|
1904
|
-
if (
|
|
1934
|
+
const _0x1fd310 = await fetch(_0x2e8461[_0x42cc08(_0x4e4f25._0x4c51d0)] + _0x42cc08(_0x4e4f25._0x485d97) + encodeURIComponent(_0x2e8461[_0x42cc08(_0x4e4f25._0x569d77)])), _0x2adc5d = await _0x1fd310[_0x42cc08(_0x4e4f25._0x963983)]();
|
|
1935
|
+
if (_0x2adc5d['ok']) {
|
|
1936
|
+
const _0x308cdf = _0x355c4a[_0x42cc08(_0x4e4f25._0x54dd33)] + ':';
|
|
1937
|
+
_0x5b1959 = new Set();
|
|
1938
|
+
for (const _0x240193 of _0x2adc5d['workers']) {
|
|
1939
|
+
if (_0x240193[_0x42cc08(0x291)] === _0x42cc08(0x165))
|
|
1905
1940
|
continue;
|
|
1906
|
-
if (
|
|
1907
|
-
const
|
|
1908
|
-
if (
|
|
1909
|
-
|
|
1941
|
+
if (_0x240193[_0x42cc08(0x218)]?.[_0x42cc08(0x18e)](_0x308cdf)) {
|
|
1942
|
+
const _0x2dbd68 = _0x240193[_0x42cc08(_0x4e4f25._0xdb6e13)][_0x42cc08(0x26d)](_0x308cdf['length']), _0x98a499 = _0x3a0d25[_0x42cc08(_0x4e4f25._0x1f7a0d)][_0x42cc08(0x223)](_0x23b00b => _0x23b00b[_0x42cc08(0x161)]?.[_0x42cc08(0x18e)](_0x2dbd68) === !![]);
|
|
1943
|
+
if (_0x98a499?.[_0x42cc08(_0x4e4f25._0x4e6089)] != null) {
|
|
1944
|
+
_0x5b1959[_0x42cc08(_0x4e4f25._0x61a18f)](_0x98a499[_0x42cc08(0x1b9)]);
|
|
1910
1945
|
continue;
|
|
1911
1946
|
}
|
|
1912
1947
|
}
|
|
1913
|
-
if (
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1948
|
+
if (_0x240193[_0x42cc08(_0x4e4f25._0x265b95)]) {
|
|
1949
|
+
const _0xbc986f = _0x3a0d25[_0x42cc08(_0x4e4f25._0x2e3f36)][_0x42cc08(0x223)](_0x2c5b47 => _0x2c5b47['taskId'] === _0x240193[_0x42cc08(0x1df)]);
|
|
1950
|
+
_0xbc986f?.[_0x42cc08(_0x4e4f25._0x4e6089)] != null && _0x5b1959[_0x42cc08(0x231)](_0xbc986f[_0x42cc08(_0x4e4f25._0x4e6089)]);
|
|
1916
1951
|
}
|
|
1917
1952
|
}
|
|
1918
1953
|
}
|
|
1919
1954
|
} catch {
|
|
1920
1955
|
}
|
|
1921
|
-
return formatTaskList(
|
|
1956
|
+
return formatTaskList(_0x3a0d25[_0x42cc08(0x127)], _0x5b1959);
|
|
1922
1957
|
},
|
|
1923
|
-
async 'create_tasks'(
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1926
|
-
const
|
|
1927
|
-
return formatCreatedTasks(
|
|
1958
|
+
async 'create_tasks'(_0x264886) {
|
|
1959
|
+
const _0x361dfb = _0x5a52c6;
|
|
1960
|
+
_0x5b15c1(_0x361dfb(0x1f9), _0x264886[_0x361dfb(_0x4711c7._0x2817bb)]);
|
|
1961
|
+
const _0x450c51 = await _0x2e8461[_0x361dfb(0x156)]['createTasks'](_0x264886);
|
|
1962
|
+
return formatCreatedTasks(_0x450c51['tasks']);
|
|
1928
1963
|
},
|
|
1929
|
-
async 'claim_tasks'(
|
|
1930
|
-
const
|
|
1931
|
-
if (
|
|
1932
|
-
|
|
1933
|
-
if (
|
|
1934
|
-
throw new Error(
|
|
1935
|
-
if (!
|
|
1936
|
-
throw new Error(
|
|
1964
|
+
async 'claim_tasks'(_0x1b5ad8) {
|
|
1965
|
+
const _0x325dd9 = _0x5a52c6;
|
|
1966
|
+
if (_0x2e8461[_0x325dd9(0x1b2)]) {
|
|
1967
|
+
_0x5b15c1('claim_tasks', _0x1b5ad8[_0x325dd9(_0x34b43c._0x3421de)]);
|
|
1968
|
+
if (_0x1b5ad8[_0x325dd9(0x282)] && _0x1b5ad8[_0x325dd9(_0x34b43c._0x4d2fe7)][_0x325dd9(_0x34b43c._0x10c045)] > 0x0)
|
|
1969
|
+
throw new Error(_0x325dd9(0x26a));
|
|
1970
|
+
if (!_0x1b5ad8[_0x325dd9(_0x34b43c._0x1b6c20)] || _0x1b5ad8[_0x325dd9(0x163)]['length'] === 0x0)
|
|
1971
|
+
throw new Error(_0x325dd9(0x176));
|
|
1937
1972
|
}
|
|
1938
|
-
const
|
|
1939
|
-
const
|
|
1940
|
-
if (!
|
|
1941
|
-
return
|
|
1973
|
+
const _0x241d82 = await _0x2e8461[_0x325dd9(_0x34b43c._0x30de7c)][_0x325dd9(_0x34b43c._0x32b9e5)](_0x1b5ad8), _0x2da543 = await Promise['all'](_0x241d82['results']['map'](async _0x23934a => {
|
|
1974
|
+
const _0x4b77cb = _0x325dd9;
|
|
1975
|
+
if (!_0x23934a[_0x4b77cb(_0x20e5f7._0x18c491)] || !_0x23934a[_0x4b77cb(0x161)])
|
|
1976
|
+
return _0x23934a;
|
|
1942
1977
|
try {
|
|
1943
|
-
const
|
|
1944
|
-
'channel':
|
|
1945
|
-
'messageId':
|
|
1946
|
-
'taskId':
|
|
1947
|
-
'taskNumber':
|
|
1948
|
-
'threadNumber':
|
|
1978
|
+
const _0x4c1e90 = await _0x2731d8({
|
|
1979
|
+
'channel': _0x1b5ad8[_0x4b77cb(0x1f4)],
|
|
1980
|
+
'messageId': _0x23934a[_0x4b77cb(_0x20e5f7._0x35a2ce)],
|
|
1981
|
+
'taskId': _0x23934a[_0x4b77cb(0x206)],
|
|
1982
|
+
'taskNumber': _0x23934a[_0x4b77cb(0x1b9)],
|
|
1983
|
+
'threadNumber': _0x23934a['threadNumber']
|
|
1949
1984
|
});
|
|
1950
|
-
return
|
|
1951
|
-
...
|
|
1952
|
-
...
|
|
1953
|
-
} :
|
|
1954
|
-
} catch (
|
|
1985
|
+
return _0x4c1e90 ? {
|
|
1986
|
+
..._0x23934a,
|
|
1987
|
+
..._0x4c1e90
|
|
1988
|
+
} : _0x23934a;
|
|
1989
|
+
} catch (_0x44bada) {
|
|
1955
1990
|
return {
|
|
1956
|
-
...
|
|
1957
|
-
'workerHandoffError':
|
|
1991
|
+
..._0x23934a,
|
|
1992
|
+
'workerHandoffError': _0x44bada instanceof Error ? _0x44bada[_0x4b77cb(_0x20e5f7._0xea5da2)] : _0x4b77cb(_0x20e5f7._0x5cbd15)
|
|
1958
1993
|
};
|
|
1959
1994
|
}
|
|
1960
1995
|
}));
|
|
1961
|
-
return formatClaimTaskResults(
|
|
1996
|
+
return formatClaimTaskResults(_0x2da543);
|
|
1962
1997
|
},
|
|
1963
|
-
async 'unclaim_task'(
|
|
1964
|
-
const
|
|
1965
|
-
if (
|
|
1966
|
-
|
|
1967
|
-
if (
|
|
1968
|
-
throw new Error(
|
|
1998
|
+
async 'unclaim_task'(_0x5d829f) {
|
|
1999
|
+
const _0x885887 = _0x5a52c6;
|
|
2000
|
+
if (_0x2e8461['workerMode']) {
|
|
2001
|
+
_0x5b15c1(_0x885887(0x113), _0x5d829f['channel']);
|
|
2002
|
+
if (_0x5d829f[_0x885887(_0x4ba317._0x59f518)] == null)
|
|
2003
|
+
throw new Error(_0x885887(0x279));
|
|
1969
2004
|
}
|
|
1970
|
-
const
|
|
1971
|
-
return formatUnclaimTaskResult(
|
|
2005
|
+
const _0x417368 = await _0x2e8461['client'][_0x885887(_0x4ba317._0x2821cb)](_0x5d829f);
|
|
2006
|
+
return formatUnclaimTaskResult(_0x417368);
|
|
1972
2007
|
},
|
|
1973
|
-
async 'update_task_status'(
|
|
1974
|
-
const
|
|
1975
|
-
|
|
1976
|
-
const
|
|
1977
|
-
return formatUpdateTaskStatusResult(
|
|
2008
|
+
async 'update_task_status'(_0x10b88f) {
|
|
2009
|
+
const _0x45f9c0 = _0x5a52c6;
|
|
2010
|
+
_0x5b15c1('update_task_status', _0x10b88f[_0x45f9c0(_0x3e4aa0._0x17530e)]);
|
|
2011
|
+
const _0x1ca2c8 = await _0x2e8461[_0x45f9c0(0x156)][_0x45f9c0(_0x3e4aa0._0x3d0474)](_0x10b88f);
|
|
2012
|
+
return formatUpdateTaskStatusResult(_0x1ca2c8);
|
|
1978
2013
|
},
|
|
1979
|
-
async 'upload_file'(
|
|
1980
|
-
const
|
|
1981
|
-
sizeBytes:
|
|
1982
|
-
...
|
|
1983
|
-
} =
|
|
1984
|
-
'channel':
|
|
1985
|
-
...
|
|
2014
|
+
async 'upload_file'(_0x38e953) {
|
|
2015
|
+
const _0xc80620 = _0x5a52c6, _0x409b99 = await _0x2e8461[_0xc80620(_0x471d31._0x1e985b)](_0x38e953[_0xc80620(0x116)]), {
|
|
2016
|
+
sizeBytes: _0x5bdb81,
|
|
2017
|
+
..._0x131162
|
|
2018
|
+
} = _0x409b99, _0x2456f8 = await _0x2e8461[_0xc80620(0x156)][_0xc80620(0x239)]({
|
|
2019
|
+
'channel': _0x38e953['channel'],
|
|
2020
|
+
..._0x131162
|
|
1986
2021
|
});
|
|
1987
|
-
return formatUploadResult(
|
|
2022
|
+
return formatUploadResult(_0x2456f8);
|
|
1988
2023
|
},
|
|
1989
|
-
async 'view_file'(
|
|
1990
|
-
const
|
|
1991
|
-
if (
|
|
1992
|
-
return formatViewFileResult(
|
|
1993
|
-
const
|
|
1994
|
-
'attachmentId':
|
|
1995
|
-
'contentType':
|
|
1996
|
-
'data':
|
|
1997
|
-
'originalFilename':
|
|
2024
|
+
async 'view_file'(_0x4f2367) {
|
|
2025
|
+
const _0x13d176 = _0x5a52c6, _0x51973c = await _0x2e8461[_0x13d176(0x1f5)]['findCachedPath'](_0x4f2367[_0x13d176(_0x114cce._0x5645a0)]);
|
|
2026
|
+
if (_0x51973c)
|
|
2027
|
+
return formatViewFileResult(_0x51973c, !![]);
|
|
2028
|
+
const _0x251575 = await _0x2e8461['client']['downloadAttachment'](_0x4f2367['attachment_id']), _0x3284ea = await _0x2e8461[_0x13d176(0x1f5)]['save']({
|
|
2029
|
+
'attachmentId': _0x4f2367[_0x13d176(_0x114cce._0x5645a0)],
|
|
2030
|
+
'contentType': _0x251575['contentType'],
|
|
2031
|
+
'data': _0x251575['data'],
|
|
2032
|
+
'originalFilename': _0x251575[_0x13d176(0x108)]
|
|
1998
2033
|
});
|
|
1999
|
-
return formatViewFileResult(
|
|
2034
|
+
return formatViewFileResult(_0x3284ea, ![]);
|
|
2000
2035
|
},
|
|
2001
|
-
async 'get_worker_status'(
|
|
2002
|
-
const
|
|
2003
|
-
if (!
|
|
2004
|
-
return
|
|
2005
|
-
const
|
|
2006
|
-
if (!
|
|
2007
|
-
return
|
|
2008
|
-
return 'Worker\x20\x22' +
|
|
2036
|
+
async 'get_worker_status'(_0x4611b1) {
|
|
2037
|
+
const _0x2fabae = _0x5a52c6;
|
|
2038
|
+
if (!_0x2e8461[_0x2fabae(0x24b)])
|
|
2039
|
+
return _0x2fabae(_0x329130._0xceb81d);
|
|
2040
|
+
const _0x4abb55 = await fetch(_0x2e8461[_0x2fabae(0x24b)] + _0x2fabae(_0x329130._0x2dd372) + encodeURIComponent(_0x4611b1[_0x2fabae(_0x329130._0x5894d0)])), _0x17cdfb = await _0x4abb55[_0x2fabae(0x16e)]();
|
|
2041
|
+
if (!_0x17cdfb['ok'])
|
|
2042
|
+
return _0x2fabae(_0x329130._0x228965) + _0x4611b1[_0x2fabae(0x263)] + _0x2fabae(0x1c5);
|
|
2043
|
+
return 'Worker\x20\x22' + _0x4611b1[_0x2fabae(0x263)] + '\x22:\x20status=' + _0x17cdfb[_0x2fabae(0x291)];
|
|
2009
2044
|
},
|
|
2010
|
-
async 'park_worker'(
|
|
2011
|
-
const
|
|
2012
|
-
if (!
|
|
2013
|
-
return
|
|
2014
|
-
const
|
|
2015
|
-
'method':
|
|
2045
|
+
async 'park_worker'(_0x381ef7) {
|
|
2046
|
+
const _0x27af8 = _0x5a52c6;
|
|
2047
|
+
if (!_0x2e8461[_0x27af8(0x24b)])
|
|
2048
|
+
return _0x27af8(_0x537c74._0x50c379);
|
|
2049
|
+
const _0x4359da = await fetch(_0x2e8461[_0x27af8(0x24b)] + _0x27af8(0x1e6), {
|
|
2050
|
+
'method': _0x27af8(_0x537c74._0x475ea8),
|
|
2016
2051
|
'headers': { 'Content-Type': 'application/json' },
|
|
2017
|
-
'body': JSON[
|
|
2018
|
-
}),
|
|
2019
|
-
if (!
|
|
2020
|
-
throw new Error(
|
|
2021
|
-
return
|
|
2052
|
+
'body': JSON[_0x27af8(_0x537c74._0x2fe766)]({ 'work_key': _0x381ef7['work_key'] })
|
|
2053
|
+
}), _0x412490 = await _0x4359da[_0x27af8(_0x537c74._0x5405c0)]();
|
|
2054
|
+
if (!_0x412490['ok'])
|
|
2055
|
+
throw new Error(_0x412490['error'] ?? _0x27af8(_0x537c74._0xa153ac));
|
|
2056
|
+
return 'Worker\x20\x22' + _0x381ef7['work_key'] + _0x27af8(_0x537c74._0x402e7a);
|
|
2022
2057
|
},
|
|
2023
|
-
async 'mark_waiting_input'(
|
|
2024
|
-
const
|
|
2025
|
-
if (!
|
|
2026
|
-
return
|
|
2027
|
-
const
|
|
2028
|
-
'method':
|
|
2029
|
-
'headers': { 'Content-Type':
|
|
2030
|
-
'body': JSON[
|
|
2031
|
-
'work_key':
|
|
2032
|
-
'agent_id':
|
|
2058
|
+
async 'mark_waiting_input'(_0x2ef8be) {
|
|
2059
|
+
const _0xd426e1 = _0x5a52c6;
|
|
2060
|
+
if (!_0x2e8461[_0xd426e1(_0x586745._0x54352d)] || !_0x2e8461[_0xd426e1(_0x586745._0x4491f0)])
|
|
2061
|
+
return _0xd426e1(0x14b);
|
|
2062
|
+
const _0x302b43 = await fetch(_0x2e8461['daemonLocalUrl'] + _0xd426e1(0x258), {
|
|
2063
|
+
'method': _0xd426e1(0x204),
|
|
2064
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2065
|
+
'body': JSON[_0xd426e1(_0x586745._0x547063)]({
|
|
2066
|
+
'work_key': _0x2ef8be[_0xd426e1(0x263)],
|
|
2067
|
+
'agent_id': _0x2e8461[_0xd426e1(_0x586745._0x4491f0)]
|
|
2033
2068
|
})
|
|
2034
|
-
}),
|
|
2035
|
-
if (!
|
|
2036
|
-
throw new Error(
|
|
2037
|
-
return
|
|
2069
|
+
}), _0x3a3b41 = await _0x302b43['json']();
|
|
2070
|
+
if (!_0x3a3b41['ok'])
|
|
2071
|
+
throw new Error(_0x3a3b41['error'] ?? _0xd426e1(0x1bf));
|
|
2072
|
+
return 'Worker\x20\x22' + _0x2ef8be['work_key'] + _0xd426e1(_0x586745._0x56e095);
|
|
2038
2073
|
},
|
|
2039
|
-
async 'escalate_to_main'(
|
|
2040
|
-
const
|
|
2041
|
-
if (!
|
|
2042
|
-
return
|
|
2043
|
-
const
|
|
2044
|
-
'method':
|
|
2045
|
-
'headers': { 'Content-Type':
|
|
2046
|
-
'body': JSON[
|
|
2047
|
-
'work_key':
|
|
2048
|
-
'reason':
|
|
2074
|
+
async 'escalate_to_main'(_0xfa3511) {
|
|
2075
|
+
const _0x96bb88 = _0x5a52c6;
|
|
2076
|
+
if (!_0x2e8461[_0x96bb88(0x24b)])
|
|
2077
|
+
return _0x96bb88(0x11b);
|
|
2078
|
+
const _0x1b043f = await fetch(_0x2e8461[_0x96bb88(_0x282eae._0xf66c00)] + _0x96bb88(_0x282eae._0x180735), {
|
|
2079
|
+
'method': _0x96bb88(_0x282eae._0x77ad32),
|
|
2080
|
+
'headers': { 'Content-Type': _0x96bb88(0x14a) },
|
|
2081
|
+
'body': JSON[_0x96bb88(0x277)]({
|
|
2082
|
+
'work_key': _0xfa3511[_0x96bb88(0x263)],
|
|
2083
|
+
'reason': _0xfa3511[_0x96bb88(0x154)]
|
|
2049
2084
|
})
|
|
2050
|
-
}),
|
|
2051
|
-
if (!
|
|
2052
|
-
throw new Error(
|
|
2053
|
-
return
|
|
2085
|
+
}), _0x3dbf46 = await _0x1b043f[_0x96bb88(_0x282eae._0x2ff689)]();
|
|
2086
|
+
if (!_0x3dbf46['ok'])
|
|
2087
|
+
throw new Error(_0x3dbf46[_0x96bb88(_0x282eae._0x33b29b)] ?? _0x96bb88(0x180));
|
|
2088
|
+
return _0x96bb88(_0x282eae._0x4fa388) + _0xfa3511[_0x96bb88(_0x282eae._0x1f2e61)];
|
|
2054
2089
|
}
|
|
2055
2090
|
};
|
|
2056
2091
|
}
|
|
2057
|
-
function textResult(
|
|
2058
|
-
const
|
|
2092
|
+
function textResult(_0x1f6943, _0x595906 = ![]) {
|
|
2093
|
+
const _0x5b18fe = { _0x163d23: 0x1ab }, _0x30d51d = _0x3cf5af;
|
|
2059
2094
|
return {
|
|
2060
2095
|
'content': [{
|
|
2061
|
-
'type':
|
|
2062
|
-
'text':
|
|
2096
|
+
'type': _0x30d51d(_0x5b18fe._0x163d23),
|
|
2097
|
+
'text': _0x1f6943
|
|
2063
2098
|
}],
|
|
2064
|
-
...
|
|
2099
|
+
..._0x595906 ? { 'isError': !![] } : {}
|
|
2065
2100
|
};
|
|
2066
2101
|
}
|
|
2067
|
-
async function registerChatBridgeTools(
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
},
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
},
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
'target': _0xe1456[_0x2abf41(_0x38ae7a._0xd2228f)](),
|
|
2131
|
-
'content': _0xe1456['string'](),
|
|
2132
|
-
'attachment_ids': _0xe1456[_0x2abf41(_0x38ae7a._0x53c855)](_0xe1456[_0x2abf41(0xe2)]())[_0x2abf41(0x164)](),
|
|
2133
|
-
'visibility': _0xe1456[_0x2abf41(_0x38ae7a._0x5d21b1)]([
|
|
2134
|
-
'public',
|
|
2135
|
-
_0x2abf41(_0x38ae7a._0x2ffed8)
|
|
2136
|
-
])[_0x2abf41(_0x38ae7a._0x2cdff7)]()['describe']('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2137
|
-
}, async _0x5c72ec => {
|
|
2138
|
-
const _0x4ad038 = _0x2abf41;
|
|
2102
|
+
async function registerChatBridgeTools(_0x44eb63, _0x4c3cb7, _0x13a82c) {
|
|
2103
|
+
const _0x33ece0 = {
|
|
2104
|
+
_0x467046: 0x1b1,
|
|
2105
|
+
_0x32899f: 0x217,
|
|
2106
|
+
_0x404cfd: 0x222,
|
|
2107
|
+
_0x2bd263: 0x1fb,
|
|
2108
|
+
_0x277dd0: 0x125,
|
|
2109
|
+
_0xd0806c: 0x16c,
|
|
2110
|
+
_0x12794e: 0x10e,
|
|
2111
|
+
_0x376b6e: 0x189,
|
|
2112
|
+
_0x196432: 0x1ce,
|
|
2113
|
+
_0x5c8cf6: 0x217,
|
|
2114
|
+
_0x48e5b7: 0x121,
|
|
2115
|
+
_0x2c49f7: 0x10f,
|
|
2116
|
+
_0xd32d54: 0x1b8,
|
|
2117
|
+
_0x5209a8: 0x125,
|
|
2118
|
+
_0x1043d1: 0x269,
|
|
2119
|
+
_0x1241e0: 0x1cf,
|
|
2120
|
+
_0x2e4bb8: 0x22a,
|
|
2121
|
+
_0x38c33a: 0x1f8,
|
|
2122
|
+
_0x46c8c3: 0x10f,
|
|
2123
|
+
_0x242a7d: 0x17a,
|
|
2124
|
+
_0x4ea63a: 0x125,
|
|
2125
|
+
_0x3407ea: 0x15c,
|
|
2126
|
+
_0x205283: 0x125,
|
|
2127
|
+
_0x189da4: 0x1b8,
|
|
2128
|
+
_0x4339d5: 0x125,
|
|
2129
|
+
_0x5d9432: 0x125,
|
|
2130
|
+
_0xa456bf: 0x1e8,
|
|
2131
|
+
_0xa696f4: 0x251,
|
|
2132
|
+
_0x27673f: 0x1b8,
|
|
2133
|
+
_0x5f4f9e: 0x200,
|
|
2134
|
+
_0x4e90f3: 0x1d8,
|
|
2135
|
+
_0x20a030: 0x170,
|
|
2136
|
+
_0x3b9729: 0x1a2,
|
|
2137
|
+
_0x1dc7e4: 0x217,
|
|
2138
|
+
_0x5a0c61: 0x1bc,
|
|
2139
|
+
_0x2f517f: 0x242,
|
|
2140
|
+
_0x5eeb63: 0x1b2
|
|
2141
|
+
}, _0x507fdc = { _0x321326: 0x1bf }, _0x1a49ed = { _0x4c755f: 0x180 }, _0x512873 = { _0x5ce64a: 0x1d7 }, _0x5ca61f = { _0x1855e2: 0x123 }, _0x4b0d9c = { _0xb9bc90: 0x21b }, _0x4a60a5 = { _0x4440a4: 0x1e8 }, _0x39da06 = {
|
|
2142
|
+
_0xb35ea9: 0x113,
|
|
2143
|
+
_0x539974: 0x219,
|
|
2144
|
+
_0x843fe5: 0x15b
|
|
2145
|
+
}, _0x29b51d = {
|
|
2146
|
+
_0x2734d8: 0x22a,
|
|
2147
|
+
_0x51bce7: 0x280
|
|
2148
|
+
}, _0x540676 = { _0x52b66c: 0x219 }, _0x22439f = { _0x21c29c: 0x209 }, _0x5503a4 = { _0x4b6893: 0x12c }, _0xaa3c5c = {
|
|
2149
|
+
_0x3a4a6d: 0x219,
|
|
2150
|
+
_0x15d56c: 0x273
|
|
2151
|
+
}, _0x177786 = {
|
|
2152
|
+
_0x3bc314: 0x187,
|
|
2153
|
+
_0x58bc06: 0x219
|
|
2154
|
+
}, _0xe9628e = { _0x4710e3: 0x194 }, _0x36dfaf = _0x3cf5af, {z: _0x290fb4} = await import(_0x36dfaf(_0x33ece0._0x467046));
|
|
2155
|
+
_0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(0x192), _0x36dfaf(_0x33ece0._0x404cfd), {
|
|
2156
|
+
'target': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2157
|
+
'content': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2158
|
+
'attachment_ids': _0x290fb4['array'](_0x290fb4[_0x36dfaf(0x1b8)]())[_0x36dfaf(0x125)](),
|
|
2159
|
+
'visibility': _0x290fb4[_0x36dfaf(_0x33ece0._0x2bd263)]([
|
|
2160
|
+
_0x36dfaf(0x270),
|
|
2161
|
+
'aside'
|
|
2162
|
+
])[_0x36dfaf(_0x33ece0._0x277dd0)]()[_0x36dfaf(_0x33ece0._0xd0806c)](_0x36dfaf(0x16b))
|
|
2163
|
+
}, async _0x2713a8 => {
|
|
2164
|
+
const _0x1be985 = _0x36dfaf;
|
|
2139
2165
|
try {
|
|
2140
|
-
return textResult(await
|
|
2141
|
-
} catch (
|
|
2142
|
-
return textResult(
|
|
2166
|
+
return textResult(await _0x4c3cb7[_0x1be985(0x192)](_0x2713a8));
|
|
2167
|
+
} catch (_0x16e30c) {
|
|
2168
|
+
return textResult(_0x16e30c instanceof Error ? _0x16e30c[_0x1be985(0x219)] : _0x1be985(_0xe9628e._0x4710e3), !![]);
|
|
2143
2169
|
}
|
|
2144
|
-
}),
|
|
2145
|
-
const
|
|
2170
|
+
}), _0x44eb63[_0x36dfaf(0x217)](_0x36dfaf(0x187), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2171
|
+
const _0x5e83ea = _0x36dfaf;
|
|
2146
2172
|
try {
|
|
2147
|
-
return textResult(await
|
|
2148
|
-
} catch (
|
|
2149
|
-
return textResult(
|
|
2173
|
+
return textResult(await _0x4c3cb7[_0x5e83ea(_0x177786._0x3bc314)]());
|
|
2174
|
+
} catch (_0xcd7698) {
|
|
2175
|
+
return textResult(_0xcd7698 instanceof Error ? _0xcd7698[_0x5e83ea(_0x177786._0x58bc06)] : 'check_messages\x20failed', !![]);
|
|
2150
2176
|
}
|
|
2151
|
-
}),
|
|
2152
|
-
'channel':
|
|
2153
|
-
'limit':
|
|
2154
|
-
'before':
|
|
2155
|
-
'after':
|
|
2156
|
-
}, async
|
|
2157
|
-
const
|
|
2177
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(0x1ee), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2178
|
+
'channel': _0x290fb4['string'](),
|
|
2179
|
+
'limit': _0x290fb4['number']()[_0x36dfaf(_0x33ece0._0x277dd0)](),
|
|
2180
|
+
'before': _0x290fb4[_0x36dfaf(0x17a)]()[_0x36dfaf(0x125)](),
|
|
2181
|
+
'after': _0x290fb4['number']()[_0x36dfaf(0x125)]()
|
|
2182
|
+
}, async _0x1d6128 => {
|
|
2183
|
+
const _0x2a26c3 = _0x36dfaf;
|
|
2158
2184
|
try {
|
|
2159
|
-
return textResult(await
|
|
2160
|
-
} catch (
|
|
2161
|
-
return textResult(
|
|
2185
|
+
return textResult(await _0x4c3cb7[_0x2a26c3(0x1ee)](_0x1d6128));
|
|
2186
|
+
} catch (_0x247456) {
|
|
2187
|
+
return textResult(_0x247456 instanceof Error ? _0x247456[_0x2a26c3(_0xaa3c5c._0x3a4a6d)] : _0x2a26c3(_0xaa3c5c._0x15d56c), !![]);
|
|
2162
2188
|
}
|
|
2163
|
-
}),
|
|
2164
|
-
const
|
|
2189
|
+
}), _0x44eb63['tool'](_0x36dfaf(_0x33ece0._0x12794e), _0x36dfaf(0x124), {}, async () => {
|
|
2190
|
+
const _0x241d22 = _0x36dfaf;
|
|
2165
2191
|
try {
|
|
2166
|
-
return textResult(await
|
|
2167
|
-
} catch (
|
|
2168
|
-
return textResult(
|
|
2192
|
+
return textResult(await _0x4c3cb7[_0x241d22(0x10e)]());
|
|
2193
|
+
} catch (_0x4b789d) {
|
|
2194
|
+
return textResult(_0x4b789d instanceof Error ? _0x4b789d[_0x241d22(0x219)] : _0x241d22(_0x5503a4._0x4b6893), !![]);
|
|
2169
2195
|
}
|
|
2170
|
-
}),
|
|
2171
|
-
'channel':
|
|
2172
|
-
'status':
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
])[
|
|
2178
|
-
}, async
|
|
2179
|
-
const
|
|
2196
|
+
}), _0x44eb63['tool']('list_tasks', _0x36dfaf(_0x33ece0._0x376b6e), {
|
|
2197
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2198
|
+
'status': _0x290fb4[_0x36dfaf(_0x33ece0._0x2bd263)]([
|
|
2199
|
+
'todo',
|
|
2200
|
+
_0x36dfaf(0x1d8),
|
|
2201
|
+
'in_review',
|
|
2202
|
+
_0x36dfaf(_0x33ece0._0x196432)
|
|
2203
|
+
])[_0x36dfaf(0x125)]()
|
|
2204
|
+
}, async _0x115c43 => {
|
|
2205
|
+
const _0x3269e9 = _0x36dfaf;
|
|
2180
2206
|
try {
|
|
2181
|
-
return textResult(await
|
|
2182
|
-
} catch (
|
|
2183
|
-
return textResult(
|
|
2207
|
+
return textResult(await _0x4c3cb7[_0x3269e9(0x1c9)](_0x115c43));
|
|
2208
|
+
} catch (_0x3f4dd3) {
|
|
2209
|
+
return textResult(_0x3f4dd3 instanceof Error ? _0x3f4dd3['message'] : _0x3269e9(_0x22439f._0x21c29c), !![]);
|
|
2184
2210
|
}
|
|
2185
|
-
}),
|
|
2186
|
-
'channel':
|
|
2187
|
-
'idempotency_key':
|
|
2188
|
-
'tasks':
|
|
2189
|
-
'title':
|
|
2190
|
-
'description':
|
|
2191
|
-
'priority':
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
])[
|
|
2211
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x5c8cf6)](_0x36dfaf(0x1f9), _0x36dfaf(_0x33ece0._0x48e5b7), {
|
|
2212
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2213
|
+
'idempotency_key': _0x290fb4['string']()['optional'](),
|
|
2214
|
+
'tasks': _0x290fb4[_0x36dfaf(_0x33ece0._0x2c49f7)](_0x290fb4['object']({
|
|
2215
|
+
'title': _0x290fb4['string'](),
|
|
2216
|
+
'description': _0x290fb4[_0x36dfaf(_0x33ece0._0xd32d54)]()[_0x36dfaf(_0x33ece0._0x5209a8)](),
|
|
2217
|
+
'priority': _0x290fb4['enum']([
|
|
2218
|
+
'low',
|
|
2219
|
+
_0x36dfaf(_0x33ece0._0x1043d1),
|
|
2220
|
+
'high',
|
|
2221
|
+
_0x36dfaf(_0x33ece0._0x1241e0)
|
|
2222
|
+
])[_0x36dfaf(0x125)]()
|
|
2197
2223
|
}))
|
|
2198
|
-
}, async
|
|
2199
|
-
const
|
|
2224
|
+
}, async _0x802e14 => {
|
|
2225
|
+
const _0x4ca0bb = _0x36dfaf;
|
|
2200
2226
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2227
|
+
return textResult(await _0x4c3cb7[_0x4ca0bb(0x1f9)](_0x802e14));
|
|
2228
|
+
} catch (_0x1c8a96) {
|
|
2229
|
+
return textResult(_0x1c8a96 instanceof Error ? _0x1c8a96[_0x4ca0bb(_0x540676._0x52b66c)] : 'create_tasks\x20failed', !![]);
|
|
2204
2230
|
}
|
|
2205
|
-
}),
|
|
2206
|
-
'channel':
|
|
2207
|
-
'task_numbers':
|
|
2208
|
-
'subtask_numbers':
|
|
2209
|
-
'message_ids':
|
|
2210
|
-
'evidence':
|
|
2211
|
-
'create_thread':
|
|
2212
|
-
'create_task':
|
|
2213
|
-
}))[
|
|
2214
|
-
'idempotency_key':
|
|
2215
|
-
}, async
|
|
2216
|
-
const
|
|
2231
|
+
}), _0x44eb63['tool'](_0x36dfaf(_0x33ece0._0x2e4bb8), _0x36dfaf(_0x33ece0._0x38c33a), {
|
|
2232
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2233
|
+
'task_numbers': _0x290fb4[_0x36dfaf(_0x33ece0._0x46c8c3)](_0x290fb4[_0x36dfaf(0x17a)]())[_0x36dfaf(0x125)](),
|
|
2234
|
+
'subtask_numbers': _0x290fb4[_0x36dfaf(0x10f)](_0x290fb4[_0x36dfaf(_0x33ece0._0x242a7d)]())[_0x36dfaf(0x125)](),
|
|
2235
|
+
'message_ids': _0x290fb4['array'](_0x290fb4[_0x36dfaf(0x1b8)]())[_0x36dfaf(_0x33ece0._0x4ea63a)](),
|
|
2236
|
+
'evidence': _0x290fb4['record'](_0x290fb4['string'](), _0x290fb4['object']({
|
|
2237
|
+
'create_thread': _0x290fb4[_0x36dfaf(_0x33ece0._0x3407ea)]()['optional'](),
|
|
2238
|
+
'create_task': _0x290fb4['unknown']()[_0x36dfaf(_0x33ece0._0x4ea63a)]()
|
|
2239
|
+
}))[_0x36dfaf(_0x33ece0._0x205283)](),
|
|
2240
|
+
'idempotency_key': _0x290fb4[_0x36dfaf(_0x33ece0._0x189da4)]()[_0x36dfaf(_0x33ece0._0x4339d5)]()
|
|
2241
|
+
}, async _0x38c397 => {
|
|
2242
|
+
const _0x405411 = _0x36dfaf;
|
|
2217
2243
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2244
|
+
return textResult(await _0x4c3cb7[_0x405411(_0x29b51d._0x2734d8)](_0x38c397));
|
|
2245
|
+
} catch (_0x3a9283) {
|
|
2246
|
+
return textResult(_0x3a9283 instanceof Error ? _0x3a9283[_0x405411(0x219)] : _0x405411(_0x29b51d._0x51bce7), !![]);
|
|
2221
2247
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
'channel':
|
|
2224
|
-
'task_number':
|
|
2225
|
-
'subtask_number':
|
|
2226
|
-
'idempotency_key':
|
|
2227
|
-
}, async
|
|
2228
|
-
const
|
|
2248
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x5c8cf6)](_0x36dfaf(0x113), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2249
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2250
|
+
'task_number': _0x290fb4['number'](),
|
|
2251
|
+
'subtask_number': _0x290fb4[_0x36dfaf(_0x33ece0._0x242a7d)]()[_0x36dfaf(_0x33ece0._0x5d9432)](),
|
|
2252
|
+
'idempotency_key': _0x290fb4[_0x36dfaf(0x1b8)]()[_0x36dfaf(0x125)]()
|
|
2253
|
+
}, async _0xa0dcc5 => {
|
|
2254
|
+
const _0x3af48f = _0x36dfaf;
|
|
2229
2255
|
try {
|
|
2230
|
-
return textResult(await
|
|
2231
|
-
} catch (
|
|
2232
|
-
return textResult(
|
|
2256
|
+
return textResult(await _0x4c3cb7[_0x3af48f(_0x39da06._0xb35ea9)](_0xa0dcc5));
|
|
2257
|
+
} catch (_0x2f0065) {
|
|
2258
|
+
return textResult(_0x2f0065 instanceof Error ? _0x2f0065[_0x3af48f(_0x39da06._0x539974)] : _0x3af48f(_0x39da06._0x843fe5), !![]);
|
|
2233
2259
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
'channel':
|
|
2236
|
-
'task_number':
|
|
2237
|
-
'subtask_number':
|
|
2238
|
-
'status':
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2260
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(_0x33ece0._0xa456bf), _0x36dfaf(_0x33ece0._0xa696f4), {
|
|
2261
|
+
'channel': _0x290fb4[_0x36dfaf(_0x33ece0._0x27673f)](),
|
|
2262
|
+
'task_number': _0x290fb4['number'](),
|
|
2263
|
+
'subtask_number': _0x290fb4[_0x36dfaf(0x17a)]()['optional'](),
|
|
2264
|
+
'status': _0x290fb4[_0x36dfaf(0x1fb)]([
|
|
2265
|
+
_0x36dfaf(_0x33ece0._0x5f4f9e),
|
|
2266
|
+
_0x36dfaf(_0x33ece0._0x4e90f3),
|
|
2267
|
+
_0x36dfaf(0x197),
|
|
2268
|
+
'done'
|
|
2243
2269
|
]),
|
|
2244
|
-
'idempotency_key':
|
|
2245
|
-
}, async
|
|
2246
|
-
const
|
|
2270
|
+
'idempotency_key': _0x290fb4[_0x36dfaf(0x1b8)]()[_0x36dfaf(0x125)]()
|
|
2271
|
+
}, async _0x54ed93 => {
|
|
2272
|
+
const _0x5bbb76 = _0x36dfaf;
|
|
2247
2273
|
try {
|
|
2248
|
-
return textResult(await
|
|
2249
|
-
} catch (
|
|
2250
|
-
return textResult(
|
|
2274
|
+
return textResult(await _0x4c3cb7[_0x5bbb76(_0x4a60a5._0x4440a4)](_0x54ed93));
|
|
2275
|
+
} catch (_0x3963ae) {
|
|
2276
|
+
return textResult(_0x3963ae instanceof Error ? _0x3963ae['message'] : _0x5bbb76(0x233), !![]);
|
|
2251
2277
|
}
|
|
2252
|
-
}),
|
|
2253
|
-
'channel':
|
|
2254
|
-
'file_path':
|
|
2255
|
-
}, async
|
|
2256
|
-
const
|
|
2278
|
+
}), _0x44eb63['tool'](_0x36dfaf(_0x33ece0._0x20a030), _0x36dfaf(_0x33ece0._0x3b9729), {
|
|
2279
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2280
|
+
'file_path': _0x290fb4['string']()
|
|
2281
|
+
}, async _0xdeb994 => {
|
|
2282
|
+
const _0x4d3dfc = _0x36dfaf;
|
|
2257
2283
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2284
|
+
return textResult(await _0x4c3cb7['upload_file'](_0xdeb994));
|
|
2285
|
+
} catch (_0x28c1d7) {
|
|
2286
|
+
return textResult(_0x28c1d7 instanceof Error ? _0x28c1d7['message'] : _0x4d3dfc(_0x4b0d9c._0xb9bc90), !![]);
|
|
2261
2287
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
const
|
|
2288
|
+
}), _0x44eb63[_0x36dfaf(0x217)]('view_file', _0x36dfaf(0x179), { 'attachment_id': _0x290fb4['string']() }, async _0xfcc26c => {
|
|
2289
|
+
const _0x58a7fa = _0x36dfaf;
|
|
2264
2290
|
try {
|
|
2265
|
-
return textResult(await
|
|
2266
|
-
} catch (
|
|
2267
|
-
return textResult(
|
|
2291
|
+
return textResult(await _0x4c3cb7[_0x58a7fa(_0x5ca61f._0x1855e2)](_0xfcc26c));
|
|
2292
|
+
} catch (_0x27df19) {
|
|
2293
|
+
return textResult(_0x27df19 instanceof Error ? _0x27df19['message'] : 'view_file\x20failed', !![]);
|
|
2268
2294
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
const
|
|
2295
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x1dc7e4)]('get_worker_status', _0x36dfaf(_0x33ece0._0x5a0c61), { 'work_key': _0x290fb4[_0x36dfaf(0x1b8)]() }, async _0x469017 => {
|
|
2296
|
+
const _0x233d25 = _0x36dfaf;
|
|
2271
2297
|
try {
|
|
2272
|
-
return textResult(await
|
|
2273
|
-
} catch (
|
|
2274
|
-
return textResult(
|
|
2298
|
+
return textResult(await _0x4c3cb7['get_worker_status'](_0x469017));
|
|
2299
|
+
} catch (_0xb7426d) {
|
|
2300
|
+
return textResult(_0xb7426d instanceof Error ? _0xb7426d[_0x233d25(0x219)] : _0x233d25(_0x512873._0x5ce64a), !![]);
|
|
2275
2301
|
}
|
|
2276
|
-
}),
|
|
2302
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(_0x33ece0._0x2f517f), _0x36dfaf(0x1e0), { 'work_key': _0x290fb4[_0x36dfaf(0x1b8)]() }, async _0x1153a1 => {
|
|
2303
|
+
const _0x560856 = _0x36dfaf;
|
|
2277
2304
|
try {
|
|
2278
|
-
return textResult(await
|
|
2279
|
-
} catch (
|
|
2280
|
-
return textResult(
|
|
2305
|
+
return textResult(await _0x4c3cb7['park_worker'](_0x1153a1));
|
|
2306
|
+
} catch (_0x436430) {
|
|
2307
|
+
return textResult(_0x436430 instanceof Error ? _0x436430[_0x560856(0x219)] : _0x560856(0x19d), !![]);
|
|
2281
2308
|
}
|
|
2282
|
-
}),
|
|
2283
|
-
'work_key':
|
|
2284
|
-
'reason':
|
|
2285
|
-
}, async
|
|
2286
|
-
const
|
|
2309
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x1dc7e4)]('escalate_to_main', _0x36dfaf(0x24f), {
|
|
2310
|
+
'work_key': _0x290fb4[_0x36dfaf(_0x33ece0._0xd32d54)](),
|
|
2311
|
+
'reason': _0x290fb4['string']()
|
|
2312
|
+
}, async _0x3a9864 => {
|
|
2313
|
+
const _0xd913e1 = _0x36dfaf;
|
|
2287
2314
|
try {
|
|
2288
|
-
return textResult(await
|
|
2289
|
-
} catch (
|
|
2290
|
-
return textResult(
|
|
2315
|
+
return textResult(await _0x4c3cb7['escalate_to_main'](_0x3a9864));
|
|
2316
|
+
} catch (_0xf1355e) {
|
|
2317
|
+
return textResult(_0xf1355e instanceof Error ? _0xf1355e['message'] : _0xd913e1(_0x1a49ed._0x4c755f), !![]);
|
|
2291
2318
|
}
|
|
2292
|
-
}),
|
|
2293
|
-
const
|
|
2319
|
+
}), _0x13a82c?.[_0x36dfaf(_0x33ece0._0x5eeb63)] && _0x44eb63[_0x36dfaf(_0x33ece0._0x1dc7e4)](_0x36dfaf(0x11f), _0x36dfaf(0x25e), { 'work_key': _0x290fb4[_0x36dfaf(0x1b8)]() }, async _0x488780 => {
|
|
2320
|
+
const _0x4928c4 = _0x36dfaf;
|
|
2294
2321
|
try {
|
|
2295
|
-
return textResult(await
|
|
2296
|
-
} catch (
|
|
2297
|
-
return textResult(
|
|
2322
|
+
return textResult(await _0x4c3cb7['mark_waiting_input'](_0x488780));
|
|
2323
|
+
} catch (_0x59b8f9) {
|
|
2324
|
+
return textResult(_0x59b8f9 instanceof Error ? _0x59b8f9[_0x4928c4(0x219)] : _0x4928c4(_0x507fdc._0x321326), !![]);
|
|
2298
2325
|
}
|
|
2299
2326
|
});
|
|
2300
2327
|
}
|
|
2301
|
-
async function createChatBridgeServer(
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
'
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
'
|
|
2312
|
-
'server': _0x5cc8db
|
|
2328
|
+
async function createChatBridgeServer(_0x90c9d1) {
|
|
2329
|
+
const _0x3ced2a = {
|
|
2330
|
+
_0x518439: 0x1da,
|
|
2331
|
+
_0x3500de: 0x1b2
|
|
2332
|
+
}, _0x4ef364 = _0x3cf5af, {McpServer: _0x1c0bc9} = await import(_0x4ef364(0x278)), _0x3ed466 = new _0x1c0bc9({
|
|
2333
|
+
'name': _0x4ef364(_0x3ced2a._0x518439),
|
|
2334
|
+
'version': _0x4ef364(0x15e)
|
|
2335
|
+
}), _0x194b38 = createChatBridgeHandlers(_0x90c9d1);
|
|
2336
|
+
return await registerChatBridgeTools(_0x3ed466, _0x194b38, { 'workerMode': _0x90c9d1[_0x4ef364(_0x3ced2a._0x3500de)] }), {
|
|
2337
|
+
'handlers': _0x194b38,
|
|
2338
|
+
'server': _0x3ed466
|
|
2313
2339
|
};
|
|
2314
2340
|
}
|
|
2315
|
-
function readFlag(
|
|
2316
|
-
const
|
|
2317
|
-
if (
|
|
2341
|
+
function readFlag(_0x4b396a, _0x4ff310) {
|
|
2342
|
+
const _0x62faef = _0x3cf5af, _0x28a257 = _0x4b396a[_0x62faef(0x1fa)](_0x4ff310);
|
|
2343
|
+
if (_0x28a257 === -0x1)
|
|
2318
2344
|
return void 0x0;
|
|
2319
|
-
return
|
|
2345
|
+
return _0x4b396a[_0x28a257 + 0x1];
|
|
2320
2346
|
}
|
|
2321
|
-
function parseChatBridgeArgs(
|
|
2322
|
-
const
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
if (_0x40e916 !== void 0x0 && (_0x1af36a === void 0x0 || !Number['isFinite'](_0x1af36a) || _0x1af36a < 0x0))
|
|
2347
|
+
function parseChatBridgeArgs(_0x32cd20) {
|
|
2348
|
+
const _0x34da4b = {
|
|
2349
|
+
_0x218f05: 0x1d9,
|
|
2350
|
+
_0x43eae9: 0x1ac,
|
|
2351
|
+
_0x28492d: 0x235,
|
|
2352
|
+
_0xbff7f3: 0x28d,
|
|
2353
|
+
_0xc39d86: 0x1b5,
|
|
2354
|
+
_0x253614: 0x134
|
|
2355
|
+
}, _0x4a3291 = _0x3cf5af, _0x1261b3 = readFlag(_0x32cd20, _0x4a3291(0x1f1)), _0x2d8d8d = readFlag(_0x32cd20, '--attachment-cache-dir'), _0x28c984 = readFlag(_0x32cd20, _0x4a3291(0x1cb)), _0x1327af = readFlag(_0x32cd20, '--initial-last-seen-seq'), _0x1157db = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x218f05)) ?? 'http://localhost:8121', _0x404416 = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x43eae9)), _0x19cda7 = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x28492d)), _0x339943 = readFlag(_0x32cd20, '--worker-mode-enabled'), _0xb07ab0 = readFlag(_0x32cd20, _0x4a3291(0x294)), _0x3fa05f = readFlag(_0x32cd20, _0x4a3291(0x1a9)), _0x4707a5 = _0x32cd20[_0x4a3291(_0x34da4b._0xbff7f3)]('--worker-mode'), _0x38fbc6 = _0x1327af === void 0x0 ? void 0x0 : Number[_0x4a3291(_0x34da4b._0xc39d86)](_0x1327af, 0xa);
|
|
2356
|
+
if (!_0x1261b3)
|
|
2357
|
+
throw new Error('Missing\x20--agent-id');
|
|
2358
|
+
if (!_0x28c984)
|
|
2359
|
+
throw new Error(_0x4a3291(0x25a));
|
|
2360
|
+
if (_0x1327af !== void 0x0 && (_0x38fbc6 === void 0x0 || !Number[_0x4a3291(_0x34da4b._0x253614)](_0x38fbc6) || _0x38fbc6 < 0x0))
|
|
2336
2361
|
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2337
2362
|
return {
|
|
2338
|
-
'agentId':
|
|
2339
|
-
'attachmentCacheDir':
|
|
2340
|
-
'daemonApiKey':
|
|
2341
|
-
'daemonLocalUrl':
|
|
2342
|
-
'initialLastSeenSeq':
|
|
2343
|
-
'sessionId':
|
|
2344
|
-
'serverUrl':
|
|
2345
|
-
'workerModeEnabled':
|
|
2346
|
-
'workerSessionId':
|
|
2347
|
-
'workerThreadTarget':
|
|
2348
|
-
'workerMode':
|
|
2363
|
+
'agentId': _0x1261b3,
|
|
2364
|
+
'attachmentCacheDir': _0x2d8d8d,
|
|
2365
|
+
'daemonApiKey': _0x28c984,
|
|
2366
|
+
'daemonLocalUrl': _0x404416,
|
|
2367
|
+
'initialLastSeenSeq': _0x38fbc6,
|
|
2368
|
+
'sessionId': _0x19cda7,
|
|
2369
|
+
'serverUrl': _0x1157db,
|
|
2370
|
+
'workerModeEnabled': _0x339943 === void 0x0 ? void 0x0 : _0x339943 !== _0x4a3291(0x1c1),
|
|
2371
|
+
'workerSessionId': _0xb07ab0,
|
|
2372
|
+
'workerThreadTarget': _0x3fa05f,
|
|
2373
|
+
'workerMode': _0x4707a5
|
|
2349
2374
|
};
|
|
2350
2375
|
}
|
|
2351
|
-
async function runChatBridgeCli(
|
|
2352
|
-
const
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
},
|
|
2359
|
-
'agentId':
|
|
2360
|
-
'attachmentCache':
|
|
2361
|
-
'client':
|
|
2362
|
-
'daemonLocalUrl':
|
|
2376
|
+
async function runChatBridgeCli(_0x4dd00) {
|
|
2377
|
+
const _0x34165d = {
|
|
2378
|
+
_0xf54ab0: 0x288,
|
|
2379
|
+
_0x207923: 0x24b,
|
|
2380
|
+
_0x4834da: 0x1b2,
|
|
2381
|
+
_0x38a9e9: 0x129,
|
|
2382
|
+
_0x4cc10a: 0x285
|
|
2383
|
+
}, _0x24627d = _0x3cf5af, _0x3c36b9 = parseChatBridgeArgs(_0x4dd00), {StdioServerTransport: _0x4e2631} = await import(_0x24627d(0x18c)), _0x25017b = createInternalAgentClient(_0x3c36b9), _0x45d204 = createAttachmentCache({ 'cacheDir': _0x3c36b9['attachmentCacheDir'] }), _0x18f396 = await createChatBridgeServer({
|
|
2384
|
+
'agentId': _0x3c36b9[_0x24627d(_0x34165d._0xf54ab0)],
|
|
2385
|
+
'attachmentCache': _0x45d204,
|
|
2386
|
+
'client': _0x25017b,
|
|
2387
|
+
'daemonLocalUrl': _0x3c36b9[_0x24627d(_0x34165d._0x207923)],
|
|
2363
2388
|
'uploadPreparer': prepareUploadFile,
|
|
2364
|
-
'workerModeEnabled':
|
|
2365
|
-
'workerMode':
|
|
2366
|
-
'workerThreadTarget':
|
|
2389
|
+
'workerModeEnabled': _0x3c36b9['workerModeEnabled'],
|
|
2390
|
+
'workerMode': _0x3c36b9[_0x24627d(_0x34165d._0x4834da)],
|
|
2391
|
+
'workerThreadTarget': _0x3c36b9[_0x24627d(_0x34165d._0x38a9e9)]
|
|
2367
2392
|
});
|
|
2368
|
-
await
|
|
2393
|
+
await _0x18f396[_0x24627d(0x1de)][_0x24627d(_0x34165d._0x4cc10a)](new _0x4e2631());
|
|
2369
2394
|
}
|
|
2370
|
-
var executedAsEntry = process[
|
|
2371
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2395
|
+
var executedAsEntry = process[_0x3cf5af(0x255)][0x1] ? import.meta.url === pathToFileURL(process[_0x3cf5af(0x255)][0x1])[_0x3cf5af(0x1d1)] : ![];
|
|
2396
|
+
executedAsEntry && await runChatBridgeCli(process[_0x3cf5af(0x255)][_0x3cf5af(0x26d)](0x2));
|
|
2372
2397
|
export {
|
|
2373
2398
|
createChatBridgeHandlers,
|
|
2374
2399
|
createChatBridgeServer,
|