@dscord/daemon 0.1.59 → 0.1.60
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 +2176 -2177
- package/dist/index.js +9638 -9653
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,2375 +1,2374 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
1
|
+
const _0x2858e8 = _0x2672;
|
|
2
|
+
(function (_0x16ad99, _0x5dcde5) {
|
|
3
|
+
const _0x370b6c = {
|
|
4
|
+
_0x391759: 0x72,
|
|
5
|
+
_0x58b7a3: 0x1e6,
|
|
6
|
+
_0xe7ba1a: 0x156,
|
|
7
|
+
_0xcac138: 0x1d7,
|
|
8
|
+
_0x4d150f: 0x94,
|
|
9
|
+
_0x1f9c75: 0xe8,
|
|
10
|
+
_0x1b9f41: 0x194
|
|
11
|
+
}, _0x495c15 = _0x2672, _0x1d68f1 = _0x16ad99();
|
|
12
|
+
while (!![]) {
|
|
13
|
+
try {
|
|
14
|
+
const _0x3c6e51 = -parseInt(_0x495c15(0x8d)) / 0x1 * (-parseInt(_0x495c15(0x1b8)) / 0x2) + -parseInt(_0x495c15(_0x370b6c._0x391759)) / 0x3 * (-parseInt(_0x495c15(_0x370b6c._0x58b7a3)) / 0x4) + parseInt(_0x495c15(0xf8)) / 0x5 + -parseInt(_0x495c15(0xad)) / 0x6 * (-parseInt(_0x495c15(_0x370b6c._0xe7ba1a)) / 0x7) + parseInt(_0x495c15(0x161)) / 0x8 * (parseInt(_0x495c15(0x151)) / 0x9) + -parseInt(_0x495c15(_0x370b6c._0xcac138)) / 0xa * (parseInt(_0x495c15(_0x370b6c._0x4d150f)) / 0xb) + parseInt(_0x495c15(_0x370b6c._0x1f9c75)) / 0xc * (-parseInt(_0x495c15(_0x370b6c._0x1b9f41)) / 0xd);
|
|
15
|
+
if (_0x3c6e51 === _0x5dcde5)
|
|
16
|
+
break;
|
|
17
|
+
else
|
|
18
|
+
_0x1d68f1['push'](_0x1d68f1['shift']());
|
|
19
|
+
} catch (_0x24d902) {
|
|
20
|
+
_0x1d68f1['push'](_0x1d68f1['shift']());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}(_0x184f, 0x5387e));
|
|
24
|
+
import { pathToFileURL } from 'node:url';
|
|
25
|
+
import {
|
|
26
|
+
mkdir,
|
|
27
|
+
readFile,
|
|
28
|
+
readdir,
|
|
29
|
+
stat,
|
|
30
|
+
writeFile
|
|
31
|
+
} from 'node:fs/promises';
|
|
32
|
+
import { homedir } from 'node:os';
|
|
33
|
+
import _0x51d1ec from 'node:path';
|
|
34
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
35
|
+
'.csv': 'text/csv',
|
|
36
|
+
'.gif': _0x2858e8(0x15c),
|
|
37
|
+
'.jpeg': _0x2858e8(0x1da),
|
|
38
|
+
'.jpg': _0x2858e8(0x1da),
|
|
39
|
+
'.json': _0x2858e8(0xd7),
|
|
40
|
+
'.md': _0x2858e8(0x97),
|
|
41
|
+
'.pdf': 'application/pdf',
|
|
42
|
+
'.png': _0x2858e8(0x113),
|
|
43
|
+
'.svg': 'image/svg+xml',
|
|
44
|
+
'.txt': _0x2858e8(0xb7),
|
|
45
|
+
'.webp': _0x2858e8(0x130),
|
|
46
|
+
'.xml': _0x2858e8(0xe7),
|
|
47
|
+
'.zip': _0x2858e8(0xdd)
|
|
48
|
+
};
|
|
49
|
+
function guessContentType(_0x40ba2e) {
|
|
50
|
+
const _0x382c44 = {
|
|
51
|
+
_0x29d5a3: 0xd3,
|
|
52
|
+
_0xa0371d: 0x139
|
|
53
|
+
}, _0x3a0844 = _0x2858e8;
|
|
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',
|
|
78
1080
|
'y29UDgvUDfr5Cgu',
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'v29YA2vYia',
|
|
82
|
-
'C3rYAw5N',
|
|
83
|
-
'ig1LC3nHz2vZkqOk',
|
|
84
|
-
'ChvZAa',
|
|
85
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
86
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
87
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
88
|
-
'6k+35Rgcia',
|
|
89
|
-
'B3b0Aw9UywW',
|
|
90
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
91
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
92
|
-
'mZbIsxziCva',
|
|
93
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
94
|
-
'y2XHAw0GzMfPBgvK',
|
|
95
|
-
'AgfZ',
|
|
96
|
-
'y3jLyxrLvgfZA3m',
|
|
97
|
-
'D29YA2vY',
|
|
1081
|
+
'y29UBMvJDa',
|
|
1082
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
98
1083
|
'zgfLBw9UqxbPs2v5',
|
|
99
|
-
'
|
|
1084
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1085
|
+
'zMfSC2u',
|
|
1086
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1087
|
+
'l2HPC3rVCNK/',
|
|
1088
|
+
'y2fJAgveAxi',
|
|
1089
|
+
'kgXLz2fJEsK',
|
|
1090
|
+
'yMfZzty0',
|
|
1091
|
+
'l3rHC2TZpW',
|
|
1092
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1093
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1094
|
+
'ihrPBwu9',
|
|
1095
|
+
'C2L6zuj5DgvZ',
|
|
1096
|
+
'Bg93',
|
|
1097
|
+
'DMLLD19MAwXL',
|
|
1098
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1099
|
+
'C2XPy2u',
|
|
1100
|
+
'CMvZDwX0CW',
|
|
1101
|
+
'zg06',
|
|
1102
|
+
'y2XPzw50',
|
|
1103
|
+
'y2XHAw1uyxnRCW',
|
|
1104
|
+
'DgHYzwfKvgfYz2v0',
|
|
100
1105
|
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
1106
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1107
|
+
'C2vUzf9TzxnZywDL',
|
|
1108
|
+
'vgfZAZOG',
|
|
1109
|
+
'l3jLy2vPDMu',
|
|
1110
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1111
|
+
'DxbSB2fKx2zPBgu',
|
|
1112
|
+
'DgfZA0LK',
|
|
1113
|
+
'Dg9tDhjPBMC',
|
|
1114
|
+
'nhzeyxv5BW',
|
|
104
1115
|
'BgLTAxq',
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'l3rHC2TZl2nSywLT',
|
|
110
|
-
'iJOGC3rHDhvZpq',
|
|
111
|
-
'Cgf5Bg9HzePZB24',
|
|
112
|
-
'yxnPzgu',
|
|
113
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
114
|
-
'BgLZDfnLCNzLCG',
|
|
115
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
116
|
-
'zg0T',
|
|
117
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
118
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
119
|
-
'BwvZC2fNzv9Pzhm',
|
|
120
|
-
'zNjVBq',
|
|
121
|
-
'CxvLDwvK',
|
|
122
|
-
'ywDNCMvNyxrLswrZ',
|
|
123
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
124
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
125
|
-
'C2vZC2LVBKLK',
|
|
126
|
-
'ig1ZzZ0',
|
|
1116
|
+
'l3rHC2TZ',
|
|
1117
|
+
'l3vWBg9Hza',
|
|
1118
|
+
'zxjYB3i',
|
|
1119
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
127
1120
|
'CgfYA193B3jRzxi',
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'CMvZDwX0CW',
|
|
1121
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1122
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1123
|
+
'ig1ZzZ0',
|
|
1124
|
+
'ihr5Cgu9ywDLBNq',
|
|
133
1125
|
'CgfYDgLJAxbHBNrjza',
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'y29UDgvUDa',
|
|
138
|
-
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
139
|
-
'DgfZAW',
|
|
140
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
141
|
-
'C2vUzgvYtMfTzq',
|
|
142
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
143
|
-
'AgfZtw9Yzq',
|
|
144
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
145
|
-
'ntKYodvKtxjxAKC',
|
|
146
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
147
|
-
'DxbKyxrL',
|
|
148
|
-
'otu3nJKWmhfVvNjNrq',
|
|
149
|
-
'D2fPDgLUz19PBNb1Da',
|
|
150
|
-
'Aw5KzxHpzG',
|
|
151
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
152
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
153
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
154
|
-
'C2f2zq',
|
|
155
|
-
'DxbSB2fKrMLSzq',
|
|
156
|
-
'yMfZzty0',
|
|
157
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
158
|
-
'BwvKAxvT',
|
|
1126
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1127
|
+
'D3nZoG',
|
|
1128
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
159
1129
|
'z2v0tw9UDgG',
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'CgfKu3rHCNq',
|
|
174
|
-
'B2jQzwn0',
|
|
175
|
-
'C2LNBMfS',
|
|
176
|
-
'DgHYzwfKswq',
|
|
177
|
-
'Dgv4Dc9JC3y',
|
|
178
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
179
|
-
'AhvTyw5Z',
|
|
180
|
-
'Dg9VBa',
|
|
1130
|
+
'yxnPzgu',
|
|
1131
|
+
'lsaJ',
|
|
1132
|
+
'6k+35Rgcia',
|
|
1133
|
+
'y2XHAw0GzMfPBgvK',
|
|
1134
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1135
|
+
'AhjLzG',
|
|
1136
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1137
|
+
'CMvZCg9UC2u',
|
|
1138
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
1139
|
+
'C3rHCNrLza',
|
|
1140
|
+
'CMvHzeHPC3rVCNK',
|
|
1141
|
+
'A2LUza',
|
|
1142
|
+
'BwvTyMvYCW',
|
|
181
1143
|
'BwvTyMvY',
|
|
182
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
183
|
-
'zMLUza',
|
|
184
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
185
1144
|
'ywz0zxi',
|
|
186
|
-
'
|
|
187
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
188
|
-
'AhvTyw4',
|
|
189
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
190
|
-
'yxjNDG',
|
|
191
|
-
'DhjPBq',
|
|
192
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
193
|
-
'BwvTyMvYCW',
|
|
194
|
-
'DMfSDwvZ',
|
|
195
|
-
'DxnLCG',
|
|
196
|
-
'C2XPy2u',
|
|
197
|
-
'Bwv0yq',
|
|
198
|
-
'kgXLz2fJEsK',
|
|
199
|
-
'ywXS',
|
|
1145
|
+
'mtmYmeXRqM95rq',
|
|
200
1146
|
'y2HHBM5LBfrHCMDLDa',
|
|
201
|
-
'
|
|
1147
|
+
'AgfZ',
|
|
1148
|
+
'Aw1Hz2uVANbLzW',
|
|
1149
|
+
'zgvZDhjVEwvK',
|
|
1150
|
+
'CNvUswq',
|
|
202
1151
|
'xsba',
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'zMLSzw5HBwu',
|
|
218
|
-
'lMjPBG',
|
|
219
|
-
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
220
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
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',
|
|
221
1166
|
'CMvWBgfJzq',
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
'
|
|
230
|
-
'
|
|
231
|
-
'
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
1167
|
+
'ue9tva',
|
|
1168
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1169
|
+
'yMvMB3jL',
|
|
1170
|
+
'C2v0',
|
|
1171
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1172
|
+
'DgHYzwfKswq',
|
|
1173
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1174
|
+
'khvUA25VD24P',
|
|
1175
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1176
|
+
'AM9PBG',
|
|
1177
|
+
'l2nVBNrLBNq',
|
|
1178
|
+
'cGOTls0G',
|
|
1179
|
+
'm056te9NtW',
|
|
1180
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1181
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1182
|
+
'iokaLca',
|
|
1183
|
+
'C3rVCe1HAw4',
|
|
1184
|
+
'y2HHBM5LBe5HBwu',
|
|
1185
|
+
'ls1Hz2vUDc1Pza',
|
|
1186
|
+
'kg5VBMuP',
|
|
1187
|
+
'BwvZC2fNzv9Pzhm',
|
|
1188
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1189
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1190
|
+
'yxv0BZO',
|
|
1191
|
+
'z2v0rgf0zq',
|
|
1192
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1193
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1194
|
+
'BMfTzq',
|
|
1195
|
+
'ywDLBNq',
|
|
1196
|
+
'C29YDa',
|
|
1197
|
+
'y2HHBM5LBhm',
|
|
1198
|
+
'CNvUBMLUzW',
|
|
1199
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1200
|
+
'r0vu',
|
|
1201
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1202
|
+
'D29YA2vYCW',
|
|
1203
|
+
'DgfZA3m',
|
|
1204
|
+
'DgfZAW',
|
|
1205
|
+
'zgvSzxrL',
|
|
1206
|
+
'mZe5mdKXrNbvvKf6',
|
|
1207
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1208
|
+
'C2vUze1LC3nHz2u',
|
|
1209
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1210
|
+
'zMv0y2HjBxbS',
|
|
1211
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1212
|
+
'CMvHC29U',
|
|
1213
|
+
'mtCWodnvA29wDKS',
|
|
1214
|
+
'C2vUzgvYtMfTzq',
|
|
1215
|
+
'ywDLBNrZ',
|
|
1216
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1217
|
+
'lcbWCMv2Awv3pq',
|
|
1218
|
+
'DgHYzwfKtNvTyMvY',
|
|
1219
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1220
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1221
|
+
'C3rYAw5NAwz5',
|
|
1222
|
+
'yxjNDG',
|
|
1223
|
+
'C2vX',
|
|
237
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
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
238
1260
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
239
|
-
'
|
|
240
|
-
'
|
|
1261
|
+
'yM9KEvrLEhq',
|
|
1262
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1263
|
+
'y29UDgvUDc10ExbL',
|
|
241
1264
|
'zMv0y2HuAw1LB3v0txm',
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
246
|
-
'AxnbyNnVBhv0zq',
|
|
247
|
-
'kg5VBMuP',
|
|
248
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
249
|
-
'ywDNCMvNyxrLswq',
|
|
250
|
-
'igzHAwXLzdOG',
|
|
251
|
-
'zgf0yq',
|
|
252
|
-
'DgHYzwfKvgfYz2v0',
|
|
253
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
254
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
255
|
-
'yxv0BZO',
|
|
256
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
257
|
-
'AxnbCNjHEq',
|
|
258
|
-
'zw50CMLLCW',
|
|
259
|
-
'DgfZA3m',
|
|
260
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1265
|
+
'zxHWAxjLC0f0',
|
|
1266
|
+
'y2f0y2G',
|
|
1267
|
+
'B2jQzwn0',
|
|
1268
|
+
'sfruuca',
|
|
261
1269
|
'DgfZAY0',
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'ue9tva',
|
|
267
|
-
'EM9K',
|
|
268
|
-
'ywz0zxjtzxe',
|
|
269
|
-
'BwfW',
|
|
270
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
271
|
-
'ihrPBwu9',
|
|
272
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
273
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
274
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
275
|
-
'C2vUze1LC3nHz2u',
|
|
276
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
277
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
278
|
-
'zg06',
|
|
279
|
-
'y3vYC29Y',
|
|
280
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
281
|
-
'z2v0vgLTzq',
|
|
282
|
-
'zgLZCg9ZAxrPB24',
|
|
283
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
284
|
-
'mti0nZm1mw5cBMLorW',
|
|
285
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
286
|
-
'mty4zKD2C3rf',
|
|
287
|
-
'lsaJ',
|
|
288
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
289
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
290
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
291
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
292
|
-
'iYmJiefNzw50CW',
|
|
1270
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1271
|
+
'zg0T',
|
|
1272
|
+
'BwvZC2fNzxm',
|
|
1273
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
293
1274
|
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
294
|
-
'
|
|
1275
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1276
|
+
'zxH0BMfTzq',
|
|
1277
|
+
'DgHYzwfK',
|
|
1278
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1279
|
+
'y2HHDa',
|
|
1280
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1281
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1282
|
+
'y2XHAw1FDgfZA3m',
|
|
1283
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1284
|
+
'Aw5FChjVz3jLC3m',
|
|
295
1285
|
'DMLZAwjPBgL0Eq',
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
1286
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1287
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1288
|
+
'EM9K',
|
|
1289
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1290
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1291
|
+
'C3rYAw5N',
|
|
1292
|
+
'Bwv0yq',
|
|
1293
|
+
'BMv4Den1CNnVCG',
|
|
1294
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1295
|
+
'igLUia',
|
|
1296
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1297
|
+
'mtuWotzgzuTyCuK',
|
|
1298
|
+
'ChvZAa',
|
|
306
1299
|
'DgfZA19Pza',
|
|
307
|
-
'
|
|
1300
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1301
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1302
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
308
1303
|
'D29YA19RzxK',
|
|
309
|
-
'
|
|
310
|
-
'
|
|
1304
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1305
|
+
'Dw5JBgfPBv90yxnR',
|
|
1306
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1307
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1308
|
+
'AgLNAa',
|
|
1309
|
+
'BM93',
|
|
1310
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1311
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1312
|
+
'lMrZy29Yza',
|
|
1313
|
+
'mJq5nti0mhHXq2ncEG',
|
|
1314
|
+
'AxnjBNrLz2vY',
|
|
1315
|
+
'C2HHmJu2',
|
|
1316
|
+
'BgLZDfnLCNzLCG',
|
|
1317
|
+
'CgfYDgLJAxbHBNq',
|
|
311
1318
|
'D29YA2vYsgfUzg9MzG',
|
|
312
|
-
'iIbUB3qGzM91BMq',
|
|
313
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
314
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
315
|
-
'C2L6zuj5DgvZ',
|
|
316
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
317
|
-
'Bg93',
|
|
318
|
-
'CM9VDe1LC3nHz2vjza',
|
|
319
|
-
'C2vYDMvYvxjS',
|
|
320
|
-
'z2v0sg91CNm',
|
|
321
|
-
'DgfZA0LK',
|
|
322
|
-
'DgL0Bgu',
|
|
323
|
-
'ChvIBgLJ',
|
|
324
|
-
'C3rHDhvZ',
|
|
325
|
-
'nJC4ndKWC25OAwvv',
|
|
326
1319
|
'zg9Uzq',
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'
|
|
333
|
-
'
|
|
334
|
-
'
|
|
1320
|
+
'BwvZC2fNzuLK',
|
|
1321
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
1322
|
+
'igrVBMuP',
|
|
1323
|
+
'yxjYyxK',
|
|
1324
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1325
|
+
'DgfZA051BwjLCG',
|
|
1326
|
+
'Aw5JBhvKzxm',
|
|
1327
|
+
'C2vYDMvY',
|
|
1328
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1329
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1330
|
+
'BwvKAxvT',
|
|
1331
|
+
'l3nLBMq',
|
|
1332
|
+
'y2HPBgrYzw5eB25L',
|
|
1333
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1334
|
+
'zMLUza',
|
|
1335
|
+
'y3vYC29Y',
|
|
1336
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1337
|
+
'zgvZy3jPChrPB24',
|
|
1338
|
+
'zMLSzv9WyxrO',
|
|
335
1339
|
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
1340
|
+
'Aw1Hz2uVCg5N',
|
|
1341
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1342
|
+
'ignSywLTzwq',
|
|
1343
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1344
|
+
'DxjNzw50',
|
|
1345
|
+
'ywDNCMvNyxrLswq',
|
|
1346
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
1347
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1348
|
+
'l3n0yxj0',
|
|
1349
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1350
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1351
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1352
|
+
'y2HHBM5LBa',
|
|
1353
|
+
'yxr0ywnOBwvUDhm',
|
|
1354
|
+
'CMvHzf9OAxn0B3j5',
|
|
1355
|
+
'C2vUzgvYvhLWzq',
|
|
1356
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1357
|
+
'BgLZDf9Zzxj2zxi',
|
|
1358
|
+
'C2L6zq',
|
|
1359
|
+
'DhjPBq',
|
|
1360
|
+
'y29UDgvUDa',
|
|
1361
|
+
'z2v0rNvSBfLLyxi',
|
|
351
1362
|
'yxr0ywnOBwvUDeLK',
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
1363
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1364
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1365
|
+
'DgfYz2v0zwq',
|
|
1366
|
+
'BNvTyMvY',
|
|
356
1367
|
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'y2HHDa',
|
|
360
|
-
'CNvUswq',
|
|
361
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
362
|
-
'l3n0yxj0',
|
|
363
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
1368
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1369
|
+
'Aw1Hz2uVD2vICa',
|
|
364
1370
|
'C3vIDgfZA051BwjLCG',
|
|
365
|
-
'
|
|
366
|
-
'
|
|
1371
|
+
'Agv4',
|
|
1372
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1373
|
+
'Dg9VBa',
|
|
1374
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1375
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1376
|
+
'Dw5RBM93BG',
|
|
1377
|
+
'CMvJB3jK',
|
|
367
1378
|
'Dg9mB3DLCKnHC2u',
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
371
|
-
'
|
|
372
|
-
'
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'Bwf0y2Hoyw1L',
|
|
379
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
380
|
-
'lIbnzxnZywDLieLeoIa',
|
|
381
|
-
'y2XPzw50',
|
|
382
|
-
'CNvUBMLUzW',
|
|
383
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
384
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
385
|
-
'mZmWmti2BKr2yLvf',
|
|
386
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
387
|
-
'ndj3ufjxteC',
|
|
388
|
-
'BwvZC2fNzxm',
|
|
389
|
-
'C2v0',
|
|
390
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
391
|
-
'zgvSzxrL',
|
|
392
|
-
'AM9PBG',
|
|
393
|
-
'Aw1Hz2uVANbLzW',
|
|
394
|
-
'ls1Zzxj2zxiTDxjS',
|
|
395
|
-
'l3rHC2TZpW',
|
|
1379
|
+
'lsba',
|
|
1380
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1381
|
+
'ChjVDg9JB2W',
|
|
1382
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1383
|
+
'C2LNBMfS',
|
|
1384
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1385
|
+
'BwvZC2fNzq',
|
|
1386
|
+
'ig1LC3nHz2u9',
|
|
1387
|
+
'CgfYC2vjBNq',
|
|
1388
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
396
1389
|
'C29Tzq',
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
1390
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1391
|
+
'zM9Yy2vszwzYzxnO',
|
|
1392
|
+
'Dg9KBW',
|
|
1393
|
+
'C2f2zq',
|
|
1394
|
+
'ywjVCNq',
|
|
1395
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1396
|
+
'Dgv4Da',
|
|
1397
|
+
'zMLSDgvY',
|
|
1398
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
1399
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1400
|
+
'icHPzdO',
|
|
1401
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1402
|
+
'otLrwwXVu08',
|
|
1403
|
+
'AgfZtw9Yzq',
|
|
1404
|
+
'vgfZAYa',
|
|
1405
|
+
'CxvLDwvK',
|
|
1406
|
+
'Aw5FCMv2Awv3',
|
|
1407
|
+
'mtqWnJnHq2fcq3a',
|
|
1408
|
+
'zgf0yq',
|
|
1409
|
+
'BwfW',
|
|
1410
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1411
|
+
'igzHAwXLzdOG',
|
|
1412
|
+
'z2v0',
|
|
1413
|
+
'Aw1Hz2uVz2LM',
|
|
1414
|
+
'ywXS',
|
|
1415
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
1416
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1417
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1418
|
+
'ndC1nZm2sfPQve1d',
|
|
1419
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1420
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1421
|
+
'B3b0Aw9UywW',
|
|
1422
|
+
'AxnbyNnVBhv0zq',
|
|
1423
|
+
'ywz0zxjtzxe',
|
|
1424
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1425
|
+
'z2v0twLUDxrLCW',
|
|
1426
|
+
'ihn0yxr1CZ0',
|
|
1427
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1428
|
+
'C2vYDMvYtMfTzq',
|
|
1429
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1430
|
+
'Dg9gAxHLza',
|
|
1431
|
+
'ywDNCMvNyxrLswrZ',
|
|
1432
|
+
'v29YA2vYici',
|
|
1433
|
+
'D29YA2vY',
|
|
1434
|
+
'zMLSzw5HBwu',
|
|
1435
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1436
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1437
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1438
|
+
'Dg9ju09tDhjPBMC',
|
|
1439
|
+
'AgvHzgvYCW',
|
|
1440
|
+
'w3nLCt0',
|
|
1441
|
+
'zNjVBq',
|
|
1442
|
+
'Bwf4',
|
|
1443
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1444
|
+
'zw50CMLLCW',
|
|
1445
|
+
'igf0DgfJAg1LBNq',
|
|
1446
|
+
'D3m6',
|
|
1447
|
+
'C3rHCNrZv2L0Aa',
|
|
1448
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1449
|
+
'iYmJieH1BwfUCW',
|
|
1450
|
+
'y3jLyxrLzef0',
|
|
1451
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1452
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1453
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1454
|
+
'z2v0u2vJB25KCW',
|
|
1455
|
+
'C3vJy2vZCW',
|
|
1456
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1457
|
+
'AhvTyw5Z',
|
|
1458
|
+
'AhvTyw4',
|
|
1459
|
+
'yxjYyxLcDwzMzxi',
|
|
1460
|
+
'DgfYz2v0',
|
|
1461
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX'
|
|
402
1462
|
];
|
|
403
|
-
|
|
404
|
-
return
|
|
405
|
-
};
|
|
406
|
-
return _0x5b92();
|
|
407
|
-
}
|
|
408
|
-
const _0x77ce4b = _0x4210;
|
|
409
|
-
(function (_0x44f5a5, _0xc7f535) {
|
|
410
|
-
const _0x1f5cae = {
|
|
411
|
-
_0x3fc08c: 0x16b,
|
|
412
|
-
_0x5cfb8f: 0x12f,
|
|
413
|
-
_0x3bfd52: 0x147,
|
|
414
|
-
_0x594efe: 0x16d,
|
|
415
|
-
_0x341798: 0x20d
|
|
416
|
-
}, _0x10548d = _0x4210, _0x269c42 = _0x44f5a5();
|
|
417
|
-
while (!![]) {
|
|
418
|
-
try {
|
|
419
|
-
const _0x36c4fc = -parseInt(_0x10548d(_0x1f5cae._0x3fc08c)) / 0x1 + parseInt(_0x10548d(_0x1f5cae._0x5cfb8f)) / 0x2 + parseInt(_0x10548d(0x1d5)) / 0x3 * (-parseInt(_0x10548d(_0x1f5cae._0x3bfd52)) / 0x4) + -parseInt(_0x10548d(0x20a)) / 0x5 * (parseInt(_0x10548d(_0x1f5cae._0x594efe)) / 0x6) + parseInt(_0x10548d(0x106)) / 0x7 + -parseInt(_0x10548d(0x108)) / 0x8 * (-parseInt(_0x10548d(0x160)) / 0x9) + parseInt(_0x10548d(_0x1f5cae._0x341798)) / 0xa;
|
|
420
|
-
if (_0x36c4fc === _0xc7f535)
|
|
421
|
-
break;
|
|
422
|
-
else
|
|
423
|
-
_0x269c42['push'](_0x269c42['shift']());
|
|
424
|
-
} catch (_0x36d0c3) {
|
|
425
|
-
_0x269c42['push'](_0x269c42['shift']());
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}(_0x5b92, 0x87302));
|
|
429
|
-
import { pathToFileURL } from 'node:url';
|
|
430
|
-
import {
|
|
431
|
-
mkdir,
|
|
432
|
-
readFile,
|
|
433
|
-
readdir,
|
|
434
|
-
stat,
|
|
435
|
-
writeFile
|
|
436
|
-
} from 'node:fs/promises';
|
|
437
|
-
import { homedir } from 'node:os';
|
|
438
|
-
import _0x3bc217 from 'node:path';
|
|
439
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
440
|
-
'.csv': _0x77ce4b(0x22a),
|
|
441
|
-
'.gif': _0x77ce4b(0x21f),
|
|
442
|
-
'.jpeg': _0x77ce4b(0x173),
|
|
443
|
-
'.jpg': _0x77ce4b(0x173),
|
|
444
|
-
'.json': _0x77ce4b(0xdc),
|
|
445
|
-
'.md': _0x77ce4b(0x22b),
|
|
446
|
-
'.pdf': _0x77ce4b(0xc2),
|
|
447
|
-
'.png': _0x77ce4b(0x11d),
|
|
448
|
-
'.svg': _0x77ce4b(0x14c),
|
|
449
|
-
'.txt': _0x77ce4b(0x13f),
|
|
450
|
-
'.webp': 'image/webp',
|
|
451
|
-
'.xml': _0x77ce4b(0xe2),
|
|
452
|
-
'.zip': _0x77ce4b(0x1ee)
|
|
453
|
-
};
|
|
454
|
-
function guessContentType(_0xe73669) {
|
|
455
|
-
const _0x4c310e = { _0x191e12: 0x1c4 }, _0x40ba56 = _0x77ce4b;
|
|
456
|
-
return MIME_BY_EXTENSION[_0x3bc217[_0x40ba56(_0x4c310e._0x191e12)](_0xe73669)[_0x40ba56(0x159)]()] ?? _0x40ba56(0x170);
|
|
457
|
-
}
|
|
458
|
-
function safeFilename(_0x3b24f5) {
|
|
459
|
-
return _0x3b24f5['replace'](/[\\/]/g, '-');
|
|
460
|
-
}
|
|
461
|
-
function extensionFor(_0x1c7017) {
|
|
462
|
-
const _0x5c0d53 = {
|
|
463
|
-
_0x44fb4c: 0xec,
|
|
464
|
-
_0x3314e3: 0xc4
|
|
465
|
-
}, _0x185b39 = _0x77ce4b, _0xb948bf = Object[_0x185b39(_0x5c0d53._0x44fb4c)](MIME_BY_EXTENSION)['find'](([, _0x4d18b5]) => _0x4d18b5 === _0x1c7017);
|
|
466
|
-
return _0xb948bf?.[0x0] ?? _0x185b39(_0x5c0d53._0x3314e3);
|
|
467
|
-
}
|
|
468
|
-
async function prepareUploadFile(_0x49c4a4, _0x1c7c61 = {}) {
|
|
469
|
-
const _0x3b2f42 = {
|
|
470
|
-
_0x4746b7: 0x1dd,
|
|
471
|
-
_0xfa8a96: 0x1c9,
|
|
472
|
-
_0x5bbe2e: 0x187,
|
|
473
|
-
_0x1d6619: 0x215
|
|
474
|
-
}, _0x2117bf = _0x77ce4b;
|
|
475
|
-
if (!_0x3bc217[_0x2117bf(0xe0)](_0x49c4a4))
|
|
476
|
-
throw new Error(_0x2117bf(0x11f));
|
|
477
|
-
const _0x519531 = await stat(_0x49c4a4)['catch'](() => null);
|
|
478
|
-
if (!_0x519531 || !_0x519531['isFile']())
|
|
479
|
-
throw new Error('File\x20not\x20found:\x20' + _0x49c4a4);
|
|
480
|
-
const _0xae7671 = _0x1c7c61[_0x2117bf(_0x3b2f42._0x4746b7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
481
|
-
if (_0x519531['size'] > _0xae7671)
|
|
482
|
-
throw new Error(_0x2117bf(_0x3b2f42._0xfa8a96) + _0x519531[_0x2117bf(_0x3b2f42._0x5bbe2e)]);
|
|
483
|
-
const _0x22c89a = await readFile(_0x49c4a4), _0x18942e = _0x3bc217['basename'](_0x49c4a4);
|
|
484
|
-
return {
|
|
485
|
-
'contentBase64': _0x22c89a[_0x2117bf(0x14f)](_0x2117bf(_0x3b2f42._0x1d6619)),
|
|
486
|
-
'contentType': guessContentType(_0x18942e),
|
|
487
|
-
'filename': _0x18942e,
|
|
488
|
-
'sizeBytes': _0x519531[_0x2117bf(0x187)]
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
function createAttachmentCache(_0xbd544 = {}) {
|
|
492
|
-
const _0x211b68 = { _0x5572b1: 0x1de }, _0x119f69 = {
|
|
493
|
-
_0x2f2ab2: 0x18c,
|
|
494
|
-
_0x5275a3: 0xe5
|
|
495
|
-
}, _0x2c6b81 = {
|
|
496
|
-
_0x23e3e9: 0x230,
|
|
497
|
-
_0x2f76dc: 0x172
|
|
498
|
-
}, _0x8918c6 = _0x77ce4b, _0x358dad = _0xbd544['cacheDir'] ?? _0x3bc217[_0x8918c6(0x172)](homedir(), '.dscord', _0x8918c6(_0x211b68._0x5572b1));
|
|
499
|
-
return {
|
|
500
|
-
'cacheDir': _0x358dad,
|
|
501
|
-
async 'findCachedPath'(_0xb141a6) {
|
|
502
|
-
const _0x54c0d4 = _0x8918c6;
|
|
503
|
-
await mkdir(_0x358dad, { 'recursive': !![] });
|
|
504
|
-
const _0x1130c9 = await readdir(_0x358dad), _0x4a922f = _0x1130c9[_0x54c0d4(_0x2c6b81._0x23e3e9)](_0x202b18 => _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6 + '-') || _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6));
|
|
505
|
-
return _0x4a922f ? _0x3bc217[_0x54c0d4(_0x2c6b81._0x2f76dc)](_0x358dad, _0x4a922f) : null;
|
|
506
|
-
},
|
|
507
|
-
async 'save'(_0x5ae7ef) {
|
|
508
|
-
const _0x2cbd63 = _0x8918c6;
|
|
509
|
-
await mkdir(_0x358dad, { 'recursive': !![] });
|
|
510
|
-
const _0x361841 = _0x5ae7ef['originalFilename']?.['trim']() ? safeFilename(_0x5ae7ef[_0x2cbd63(_0x119f69._0x2f2ab2)]) : '' + _0x5ae7ef['attachmentId'] + extensionFor(_0x5ae7ef[_0x2cbd63(0x1c7)]), _0x1ad2c9 = _0x3bc217['join'](_0x358dad, _0x5ae7ef[_0x2cbd63(0x149)] + '-' + _0x361841);
|
|
511
|
-
return await writeFile(_0x1ad2c9, _0x5ae7ef[_0x2cbd63(_0x119f69._0x5275a3)]), _0x1ad2c9;
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
import {
|
|
516
|
-
createHash,
|
|
517
|
-
randomUUID
|
|
518
|
-
} from 'node:crypto';
|
|
519
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x77ce4b(0x1fc);
|
|
520
|
-
function ensureSegment(_0x97dcee) {
|
|
521
|
-
const _0x5438af = { _0x1be54b: 0x1fb }, _0x1b142a = _0x77ce4b, _0x10772c = _0x97dcee['trim']();
|
|
522
|
-
if (!_0x10772c || _0x10772c[_0x1b142a(_0x5438af._0x1be54b)](':'))
|
|
523
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
524
|
-
return _0x10772c;
|
|
525
|
-
}
|
|
526
|
-
function parseThreadParts(_0x2676f6) {
|
|
527
|
-
const _0x55693b = { _0x80e6e: 0x146 }, _0x5e33c1 = _0x77ce4b, _0xf49f9f = _0x2676f6[_0x5e33c1(0xc9)](':');
|
|
528
|
-
if (_0xf49f9f['length'] < 0x1 || _0xf49f9f[_0x5e33c1(_0x55693b._0x80e6e)] > 0x2)
|
|
529
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
530
|
-
return {
|
|
531
|
-
'channelName': ensureSegment(_0xf49f9f[0x0] ?? ''),
|
|
532
|
-
'threadShortId': _0xf49f9f[0x1] ? ensureSegment(_0xf49f9f[0x1]) : null
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
function parseTarget(_0x23cf35) {
|
|
536
|
-
const _0x1f8521 = {
|
|
537
|
-
_0x201415: 0x238,
|
|
538
|
-
_0x127c40: 0x1e3,
|
|
539
|
-
_0x40f1c8: 0x17c,
|
|
540
|
-
_0x304860: 0x1c1,
|
|
541
|
-
_0x3d905c: 0x100,
|
|
542
|
-
_0x348342: 0x223,
|
|
543
|
-
_0xf9a60f: 0x1ed,
|
|
544
|
-
_0xe52e81: 0x1e3
|
|
545
|
-
}, _0x1c7d57 = _0x77ce4b, _0x540b43 = _0x23cf35[_0x1c7d57(_0x1f8521._0x201415)]();
|
|
546
|
-
if (!_0x540b43)
|
|
547
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
-
if (_0x540b43[_0x1c7d57(0x1c1)]('#')) {
|
|
549
|
-
const _0x2a72ac = parseThreadParts(_0x540b43[_0x1c7d57(0x23d)](0x1)), _0x4cd7a1 = '#' + _0x2a72ac[_0x1c7d57(0x223)];
|
|
550
|
-
if (!_0x2a72ac[_0x1c7d57(_0x1f8521._0x127c40)])
|
|
551
|
-
return {
|
|
552
|
-
'channelName': _0x2a72ac['channelName'],
|
|
553
|
-
'channelTarget': _0x4cd7a1,
|
|
554
|
-
'kind': _0x1c7d57(0xba),
|
|
555
|
-
'target': _0x4cd7a1
|
|
556
|
-
};
|
|
557
|
-
return {
|
|
558
|
-
'channelName': _0x2a72ac[_0x1c7d57(0x223)],
|
|
559
|
-
'channelTarget': _0x4cd7a1,
|
|
560
|
-
'kind': _0x1c7d57(_0x1f8521._0x40f1c8),
|
|
561
|
-
'target': _0x4cd7a1 + ':' + _0x2a72ac[_0x1c7d57(0x1e3)],
|
|
562
|
-
'threadShortId': _0x2a72ac['threadShortId']
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
if (_0x540b43[_0x1c7d57(_0x1f8521._0x304860)](_0x1c7d57(_0x1f8521._0x3d905c))) {
|
|
566
|
-
const _0x5a751e = parseThreadParts(_0x540b43[_0x1c7d57(0x23d)](0x3));
|
|
567
|
-
if (!_0x5a751e[_0x1c7d57(_0x1f8521._0x348342)][_0x1c7d57(0x1c1)](_0x1c7d57(_0x1f8521._0xf9a60f)))
|
|
568
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
569
|
-
const _0x4c42b5 = 'dm:' + _0x5a751e[_0x1c7d57(0x223)];
|
|
570
|
-
if (!_0x5a751e['threadShortId'])
|
|
571
|
-
return {
|
|
572
|
-
'channelName': _0x5a751e['channelName'],
|
|
573
|
-
'channelTarget': _0x4c42b5,
|
|
574
|
-
'kind': 'channel',
|
|
575
|
-
'target': _0x4c42b5
|
|
576
|
-
};
|
|
577
|
-
return {
|
|
578
|
-
'channelName': _0x5a751e[_0x1c7d57(0x223)],
|
|
579
|
-
'channelTarget': _0x4c42b5,
|
|
580
|
-
'kind': _0x1c7d57(_0x1f8521._0x40f1c8),
|
|
581
|
-
'target': _0x4c42b5 + ':' + _0x5a751e['threadShortId'],
|
|
582
|
-
'threadShortId': _0x5a751e[_0x1c7d57(_0x1f8521._0xe52e81)]
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
586
|
-
}
|
|
587
|
-
function asErrorMessage(_0x31d18c, _0x18fba7) {
|
|
588
|
-
const _0x54b348 = _0x77ce4b;
|
|
589
|
-
if (typeof _0x31d18c === 'string' && _0x31d18c[_0x54b348(0x238)]())
|
|
590
|
-
return _0x31d18c;
|
|
591
|
-
return _0x18fba7;
|
|
592
|
-
}
|
|
593
|
-
function asRecord(_0x37d8cd) {
|
|
594
|
-
return typeof _0x37d8cd === 'object' && _0x37d8cd !== null ? _0x37d8cd : {};
|
|
595
|
-
}
|
|
596
|
-
function stableStringify(_0x8c2560) {
|
|
597
|
-
const _0x4cd153 = {
|
|
598
|
-
_0x1e11e1: 0xf7,
|
|
599
|
-
_0x551551: 0x11a
|
|
600
|
-
}, _0x5e06b2 = _0x77ce4b;
|
|
601
|
-
if (_0x8c2560 === null || typeof _0x8c2560 !== 'object')
|
|
602
|
-
return JSON[_0x5e06b2(0x112)](_0x8c2560);
|
|
603
|
-
if (Array[_0x5e06b2(0xeb)](_0x8c2560))
|
|
604
|
-
return '[' + _0x8c2560[_0x5e06b2(_0x4cd153._0x1e11e1)](_0xdebb11 => stableStringify(_0xdebb11))[_0x5e06b2(0x172)](',') + ']';
|
|
605
|
-
const _0x49bcf3 = Object[_0x5e06b2(0xec)](_0x8c2560)['filter'](([, _0x20c879]) => _0x20c879 !== void 0x0)[_0x5e06b2(_0x4cd153._0x551551)](([_0xd72224], [_0x3d7a88]) => _0xd72224[_0x5e06b2(0xf1)](_0x3d7a88))['map'](([_0x4ee06f, _0x3aba3e]) => JSON[_0x5e06b2(0x112)](_0x4ee06f) + ':' + stableStringify(_0x3aba3e));
|
|
606
|
-
return '{' + _0x49bcf3['join'](',') + '}';
|
|
607
|
-
}
|
|
608
|
-
function createHeaders(_0x3917d6) {
|
|
609
|
-
const _0x290a29 = _0x77ce4b;
|
|
610
|
-
return {
|
|
611
|
-
'Content-Type': _0x290a29(0xdc),
|
|
612
|
-
'x-daemon-api-key': _0x3917d6
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
function toHttpBaseUrl(_0x3a855e) {
|
|
616
|
-
const _0x13b186 = {
|
|
617
|
-
_0x59814c: 0x1ae,
|
|
618
|
-
_0x1830a7: 0x1b1,
|
|
619
|
-
_0x2b792a: 0x233,
|
|
620
|
-
_0x34fd16: 0x14f,
|
|
621
|
-
_0x45aaf3: 0xc7
|
|
622
|
-
}, _0x5c9b36 = _0x77ce4b, _0x22e2aa = new URL(_0x3a855e);
|
|
623
|
-
if (_0x22e2aa['protocol'] === _0x5c9b36(_0x13b186._0x59814c))
|
|
624
|
-
_0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = _0x5c9b36(_0x13b186._0x2b792a);
|
|
625
|
-
else
|
|
626
|
-
_0x22e2aa[_0x5c9b36(0x1b1)] === 'wss:' && (_0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = 'https:');
|
|
627
|
-
return _0x22e2aa[_0x5c9b36(_0x13b186._0x34fd16)]()[_0x5c9b36(_0x13b186._0x45aaf3)](/\/$/, '');
|
|
628
|
-
}
|
|
629
|
-
function isMentionBoundary(_0x543e04) {
|
|
630
|
-
return !_0x543e04 || /\s|[([{'",。!?、:;]/['test'](_0x543e04);
|
|
631
|
-
}
|
|
632
|
-
function isMentionTerminal(_0x2aee97) {
|
|
633
|
-
return !_0x2aee97 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x2aee97);
|
|
634
|
-
}
|
|
635
|
-
function buildMatchableEntries(_0x5a51bc) {
|
|
636
|
-
const _0x4ea667 = {
|
|
637
|
-
_0x7397d8: 0x1b3,
|
|
638
|
-
_0x134fa0: 0x1cd,
|
|
639
|
-
_0x3abb81: 0x169
|
|
640
|
-
}, _0x29012f = _0x77ce4b, _0x3aa7d7 = [];
|
|
641
|
-
for (const _0x55adb1 of [
|
|
642
|
-
..._0x5a51bc[_0x29012f(_0x4ea667._0x7397d8)],
|
|
643
|
-
..._0x5a51bc[_0x29012f(0x22c)]
|
|
644
|
-
]) {
|
|
645
|
-
_0x3aa7d7[_0x29012f(0x1cd)]({
|
|
646
|
-
'matchName': _0x55adb1[_0x29012f(0x145)],
|
|
647
|
-
'matchNameLower': _0x55adb1[_0x29012f(0x145)][_0x29012f(0x169)](),
|
|
648
|
-
'participantId': _0x55adb1['id']
|
|
649
|
-
}), _0x55adb1['id'] !== _0x55adb1[_0x29012f(0x145)] && _0x3aa7d7[_0x29012f(_0x4ea667._0x134fa0)]({
|
|
650
|
-
'matchName': _0x55adb1['id'],
|
|
651
|
-
'matchNameLower': _0x55adb1['id'][_0x29012f(_0x4ea667._0x3abb81)](),
|
|
652
|
-
'participantId': _0x55adb1['id']
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
return _0x3aa7d7;
|
|
656
|
-
}
|
|
657
|
-
function extractMentionedParticipantIds(_0x48469f, _0x15eb36) {
|
|
658
|
-
const _0x15ed40 = {
|
|
659
|
-
_0x3af4f5: 0x146,
|
|
660
|
-
_0x326e10: 0x23d,
|
|
661
|
-
_0x4a7139: 0x1d8,
|
|
662
|
-
_0x19dab3: 0x13c,
|
|
663
|
-
_0x34ec5e: 0x1cd
|
|
664
|
-
}, _0x593cbe = {
|
|
665
|
-
_0x3dcd21: 0x164,
|
|
666
|
-
_0x3c6e55: 0x146
|
|
667
|
-
}, _0x32f41d = _0x77ce4b, _0x436497 = buildMatchableEntries(_0x15eb36)[_0x32f41d(0x11a)]((_0x114a80, _0xe6b260) => _0xe6b260[_0x32f41d(0x164)]['length'] - _0x114a80['matchName']['length']), _0x4d8fe9 = [], _0x47a6c8 = new Set();
|
|
668
|
-
for (let _0x47cae6 = 0x0; _0x47cae6 < _0x48469f[_0x32f41d(_0x15ed40._0x3af4f5)]; _0x47cae6 += 0x1) {
|
|
669
|
-
if (_0x48469f[_0x47cae6] !== '@' || !isMentionBoundary(_0x48469f[_0x47cae6 - 0x1]))
|
|
670
|
-
continue;
|
|
671
|
-
const _0x5cfe4b = _0x48469f[_0x32f41d(_0x15ed40._0x326e10)](_0x47cae6 + 0x1), _0xa5d2e1 = _0x5cfe4b[_0x32f41d(0x169)](), _0x7d2580 = _0x436497[_0x32f41d(0x230)](_0x5dec6d => {
|
|
672
|
-
const _0x4f2dbf = _0x32f41d;
|
|
673
|
-
if (!_0xa5d2e1[_0x4f2dbf(0x1c1)](_0x5dec6d[_0x4f2dbf(0xfe)]))
|
|
674
|
-
return ![];
|
|
675
|
-
return isMentionTerminal(_0x5cfe4b[_0x5dec6d[_0x4f2dbf(_0x593cbe._0x3dcd21)][_0x4f2dbf(_0x593cbe._0x3c6e55)]]);
|
|
676
|
-
});
|
|
677
|
-
if (!_0x7d2580 || _0x47a6c8[_0x32f41d(_0x15ed40._0x4a7139)](_0x7d2580[_0x32f41d(0x1fe)]))
|
|
678
|
-
continue;
|
|
679
|
-
_0x47a6c8[_0x32f41d(_0x15ed40._0x19dab3)](_0x7d2580['participantId']), _0x4d8fe9[_0x32f41d(_0x15ed40._0x34ec5e)](_0x7d2580[_0x32f41d(0x1fe)]), _0x47cae6 += _0x7d2580[_0x32f41d(0x164)][_0x32f41d(0x146)];
|
|
680
|
-
}
|
|
681
|
-
return _0x4d8fe9;
|
|
682
|
-
}
|
|
683
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
684
|
-
function anySignal(..._0x4b6c3f) {
|
|
685
|
-
const _0x4692c5 = {
|
|
686
|
-
_0x2c984b: 0x1aa,
|
|
687
|
-
_0x508e8d: 0x17b,
|
|
688
|
-
_0x52b6d4: 0x228,
|
|
689
|
-
_0x3ca165: 0x228
|
|
690
|
-
}, _0x5abb1b = _0x77ce4b, _0x36ee4e = new AbortController();
|
|
691
|
-
for (const _0x44ca63 of _0x4b6c3f) {
|
|
692
|
-
if (_0x44ca63[_0x5abb1b(0x195)])
|
|
693
|
-
return _0x36ee4e['abort'](_0x44ca63[_0x5abb1b(_0x4692c5._0x2c984b)]), _0x36ee4e[_0x5abb1b(0x228)];
|
|
694
|
-
_0x44ca63[_0x5abb1b(_0x4692c5._0x508e8d)](_0x5abb1b(0x1be), () => _0x36ee4e[_0x5abb1b(0x1be)](_0x44ca63['reason']), {
|
|
695
|
-
'once': !![],
|
|
696
|
-
'signal': _0x36ee4e[_0x5abb1b(_0x4692c5._0x52b6d4)]
|
|
697
|
-
});
|
|
698
|
-
}
|
|
699
|
-
return _0x36ee4e[_0x5abb1b(_0x4692c5._0x3ca165)];
|
|
700
|
-
}
|
|
701
|
-
function createInternalAgentClient(_0x17262b) {
|
|
702
|
-
const _0x4cccbb = {
|
|
703
|
-
_0x49999b: 0x244,
|
|
704
|
-
_0x107fb2: 0x1bc,
|
|
705
|
-
_0x6b6218: 0x238,
|
|
706
|
-
_0x485086: 0x1f6,
|
|
707
|
-
_0x1cedb1: 0x238,
|
|
708
|
-
_0x34b6c5: 0x1db,
|
|
709
|
-
_0x36f012: 0x129
|
|
710
|
-
}, _0x5eb86d = {
|
|
711
|
-
_0x5211aa: 0xf6,
|
|
712
|
-
_0x5c99df: 0x14f,
|
|
713
|
-
_0x10cbf9: 0x201,
|
|
714
|
-
_0x5036b3: 0xe5,
|
|
715
|
-
_0x9c83a5: 0x23e,
|
|
716
|
-
_0x2dcf9d: 0x146,
|
|
717
|
-
_0x1b2e6f: 0xbc,
|
|
718
|
-
_0x1ab9ee: 0xf7,
|
|
719
|
-
_0xba0cf2: 0x1e8,
|
|
720
|
-
_0x1fc159: 0x1cb,
|
|
721
|
-
_0x4dc78b: 0x229,
|
|
722
|
-
_0x5c65d1: 0x128,
|
|
723
|
-
_0x6b6ebb: 0x1ac,
|
|
724
|
-
_0x2616dd: 0xe3,
|
|
725
|
-
_0x195701: 0x1ac,
|
|
726
|
-
_0x5ca5a2: 0x1f3,
|
|
727
|
-
_0x1c8f2d: 0xe3,
|
|
728
|
-
_0x35a1ee: 0x141,
|
|
729
|
-
_0x405f28: 0x16f,
|
|
730
|
-
_0x64deb5: 0x23b,
|
|
731
|
-
_0x248a3f: 0x145,
|
|
732
|
-
_0x331458: 0x15f,
|
|
733
|
-
_0x50df31: 0x1e8,
|
|
734
|
-
_0x3e7ad3: 0x1de,
|
|
735
|
-
_0x4a4596: 0x18e,
|
|
736
|
-
_0x39d06a: 0x18e,
|
|
737
|
-
_0x5469f2: 0x11b,
|
|
738
|
-
_0x8d02ed: 0x11b
|
|
739
|
-
}, _0x37d62d = {
|
|
740
|
-
_0x31e0ff: 0x232,
|
|
741
|
-
_0x421439: 0x229
|
|
742
|
-
}, _0x79709b = {
|
|
743
|
-
_0xec87a1: 0x179,
|
|
744
|
-
_0x47cd7a: 0x15b,
|
|
745
|
-
_0x264bcd: 0x186,
|
|
746
|
-
_0x5ad6ca: 0x162,
|
|
747
|
-
_0x592170: 0x161,
|
|
748
|
-
_0x48f7d5: 0x170,
|
|
749
|
-
_0x42a5f7: 0x1f1,
|
|
750
|
-
_0x3330: 0xe5
|
|
751
|
-
}, _0x59c219 = {
|
|
752
|
-
_0x2ef705: 0xba,
|
|
753
|
-
_0xeb7af1: 0x229,
|
|
754
|
-
_0x10894e: 0x1f9,
|
|
755
|
-
_0x3b43f8: 0x201,
|
|
756
|
-
_0x4b9117: 0x112,
|
|
757
|
-
_0x5cbe6e: 0xd7,
|
|
758
|
-
_0xb8ff69: 0x1c7,
|
|
759
|
-
_0xe8cb0b: 0xf4,
|
|
760
|
-
_0x5d2ddd: 0xe5
|
|
761
|
-
}, _0x1e3217 = { _0x2b975f: 0x201 }, _0x1c41eb = {
|
|
762
|
-
_0x98c01e: 0x201,
|
|
763
|
-
_0x1b0c3e: 0x112,
|
|
764
|
-
_0x4636e4: 0xf4
|
|
765
|
-
}, _0x1ee795 = {
|
|
766
|
-
_0x38044b: 0xcf,
|
|
767
|
-
_0xf9120b: 0x1e6,
|
|
768
|
-
_0x525d95: 0xf4
|
|
769
|
-
}, _0x1f62fd = {
|
|
770
|
-
_0xa88028: 0xcf,
|
|
771
|
-
_0x4dc32e: 0x112
|
|
772
|
-
}, _0x19ff08 = {
|
|
773
|
-
_0x50c22c: 0x12e,
|
|
774
|
-
_0xebf989: 0x186
|
|
775
|
-
}, _0x4732ae = {
|
|
776
|
-
_0x1bcd45: 0x12e,
|
|
777
|
-
_0x43e7c4: 0xf4,
|
|
778
|
-
_0x5c2126: 0xe5,
|
|
779
|
-
_0x1ea312: 0x152
|
|
780
|
-
}, _0x334940 = { _0x29cba5: 0x168 }, _0x12f6eb = {
|
|
781
|
-
_0x4d193e: 0x112,
|
|
782
|
-
_0x5e874b: 0xf4
|
|
783
|
-
}, _0x1d8d90 = { _0x39cbd8: 0x186 }, _0x1a5601 = {
|
|
784
|
-
_0x96342b: 0x1b9,
|
|
785
|
-
_0x20175a: 0x202,
|
|
786
|
-
_0x4e45ee: 0xcf,
|
|
787
|
-
_0x566a05: 0x112,
|
|
788
|
-
_0x4a85b1: 0x229,
|
|
789
|
-
_0x181916: 0x111,
|
|
790
|
-
_0x428acc: 0xe5
|
|
791
|
-
}, _0xbdddf3 = {
|
|
792
|
-
_0x351cbe: 0x1e1,
|
|
793
|
-
_0x37a14f: 0x1e1,
|
|
794
|
-
_0x37d0bc: 0x16f,
|
|
795
|
-
_0xd0ea38: 0x181,
|
|
796
|
-
_0x5b401e: 0x17a,
|
|
797
|
-
_0x473ba5: 0x232,
|
|
798
|
-
_0x3de3db: 0xcf,
|
|
799
|
-
_0x5ec29d: 0x14f,
|
|
800
|
-
_0x5f5860: 0x186,
|
|
801
|
-
_0x3945d1: 0xf7,
|
|
802
|
-
_0x1660e5: 0x241,
|
|
803
|
-
_0x58a87: 0x208
|
|
804
|
-
}, _0x86e614 = { _0x433040: 0x145 }, _0x1fef53 = {
|
|
805
|
-
_0x33af9d: 0x22e,
|
|
806
|
-
_0x4d52dd: 0x1fe
|
|
807
|
-
}, _0x475d86 = {
|
|
808
|
-
_0x110104: 0x241,
|
|
809
|
-
_0x104bb6: 0x241,
|
|
810
|
-
_0x2ca3c3: 0x128,
|
|
811
|
-
_0x2bc81b: 0x1c1,
|
|
812
|
-
_0x26e801: 0x1e3,
|
|
813
|
-
_0x3583ee: 0x229,
|
|
814
|
-
_0x5ba51d: 0x229
|
|
815
|
-
}, _0x565212 = {
|
|
816
|
-
_0x32b250: 0x1ac,
|
|
817
|
-
_0x57264e: 0x1ac,
|
|
818
|
-
_0x3afbd3: 0x128,
|
|
819
|
-
_0x4e8d8a: 0x229,
|
|
820
|
-
_0x420f5a: 0x241
|
|
821
|
-
}, _0x1ba010 = {
|
|
822
|
-
_0x484a56: 0x1b3,
|
|
823
|
-
_0x4d251b: 0x235
|
|
824
|
-
}, _0x460f5d = {
|
|
825
|
-
_0xa58413: 0x201,
|
|
826
|
-
_0x2eaede: 0x10a,
|
|
827
|
-
_0x365299: 0xe5,
|
|
828
|
-
_0x3f2b0e: 0xe5,
|
|
829
|
-
_0x57ab94: 0x229,
|
|
830
|
-
_0x434c45: 0x1ac
|
|
831
|
-
}, _0x1116b3 = {
|
|
832
|
-
_0x12e2ca: 0xdf,
|
|
833
|
-
_0x49a26b: 0xdc
|
|
834
|
-
}, _0x1c9961 = {
|
|
835
|
-
_0x134a2b: 0x158,
|
|
836
|
-
_0x34cd20: 0x114
|
|
837
|
-
}, _0x1665e5 = {
|
|
838
|
-
_0x3a92b5: 0x228,
|
|
839
|
-
_0x4a7092: 0x228,
|
|
840
|
-
_0x3bb7d2: 0x228,
|
|
841
|
-
_0x5270bc: 0xbb
|
|
842
|
-
}, _0x45358f = {
|
|
843
|
-
_0x53fc06: 0x228,
|
|
844
|
-
_0x492b44: 0x228,
|
|
845
|
-
_0x2d8e52: 0x21b,
|
|
846
|
-
_0x58358c: 0xbb,
|
|
847
|
-
_0x41a709: 0x12e
|
|
848
|
-
}, _0x324c4b = {
|
|
849
|
-
_0x9cd001: 0x1cb,
|
|
850
|
-
_0x4c3d34: 0xd1,
|
|
851
|
-
_0x485492: 0x183,
|
|
852
|
-
_0x5e1e99: 0x171,
|
|
853
|
-
_0x3af37f: 0x20c
|
|
854
|
-
}, _0x4bd8da = {
|
|
855
|
-
_0x6d6384: 0x1f1,
|
|
856
|
-
_0x52486f: 0x14f,
|
|
857
|
-
_0x27b7fd: 0x238
|
|
858
|
-
}, _0x38143e = {
|
|
859
|
-
_0x4c4252: 0x1a2,
|
|
860
|
-
_0x3e924d: 0x161,
|
|
861
|
-
_0x1a84d0: 0xce,
|
|
862
|
-
_0x2e3dc3: 0x238,
|
|
863
|
-
_0x32fb11: 0xc7,
|
|
864
|
-
_0x48d641: 0x1e2
|
|
865
|
-
}, _0x51700c = _0x77ce4b, _0x56c41b = _0x17262b[_0x51700c(_0x4cccbb._0x49999b)] ?? fetch, _0x44146a = _0x17262b[_0x51700c(0xdb)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x35dec7 = typeof _0x17262b['initialLastSeenSeq'] === _0x51700c(0xbe) && _0x17262b[_0x51700c(_0x4cccbb._0x107fb2)] > 0x0 ? _0x17262b[_0x51700c(_0x4cccbb._0x107fb2)] : 0x0, _0x190988 = _0x17262b[_0x51700c(0x1f4)]?.[_0x51700c(_0x4cccbb._0x6b6218)]() || void 0x0, _0x2dd09a = _0x17262b[_0x51700c(_0x4cccbb._0x485086)]?.[_0x51700c(0x238)]() || void 0x0, _0x5a3c40 = _0x17262b[_0x51700c(0x211)] === !![], _0x4d1720 = _0x17262b[_0x51700c(0x222)]?.[_0x51700c(_0x4cccbb._0x1cedb1)]() || void 0x0, _0x1f9804 = _0x17262b['workerThreadTarget']?.[_0x51700c(_0x4cccbb._0x1cedb1)]() || void 0x0, _0x597408 = createHeaders(_0x17262b[_0x51700c(_0x4cccbb._0x34b6c5)]), _0x558388 = toHttpBaseUrl(_0x17262b[_0x51700c(_0x4cccbb._0x36f012)]);
|
|
866
|
-
let _0x382a40 = null;
|
|
867
|
-
const _0x30575d = new Map();
|
|
868
|
-
let _0xdfb599 = _0x35dec7, _0x443b7c = _0x35dec7;
|
|
869
|
-
function _0x5123c0(_0x390e0c) {
|
|
870
|
-
const _0x4cc795 = _0x51700c, _0x370df0 = _0x390e0c[_0x4cc795(_0x38143e._0x4c4252)][_0x4cc795(0x162)][_0x4cc795(_0x38143e._0x3e924d)]('content-type') ?? 'unknown', _0x2b818c = _0x390e0c[_0x4cc795(_0x38143e._0x1a84d0)][_0x4cc795(_0x38143e._0x2e3dc3)]()[_0x4cc795(_0x38143e._0x32fb11)](/\s+/g, '\x20')[_0x4cc795(0x23d)](0x0, 0x78) || _0x4cc795(_0x38143e._0x48d641);
|
|
871
|
-
return _0x4cc795(0x1d1) + _0x390e0c[_0x4cc795(0x224)] + _0x4cc795(0x16c) + _0x390e0c[_0x4cc795(0x1a2)]['status'] + _0x4cc795(0x107) + _0x370df0 + ',\x20preview=' + _0x2b818c + _0x4cc795(0x1e5);
|
|
872
|
-
}
|
|
873
|
-
async function _0x458481(_0x315432, _0x15a37b) {
|
|
874
|
-
const _0xa62eea = _0x51700c, _0x2c2596 = Buffer[_0xa62eea(_0x4bd8da._0x6d6384)](await _0x15a37b['arrayBuffer']())[_0xa62eea(_0x4bd8da._0x52486f)]('utf8');
|
|
875
|
-
if (!_0x2c2596[_0xa62eea(_0x4bd8da._0x27b7fd)]())
|
|
876
|
-
return {};
|
|
877
|
-
try {
|
|
878
|
-
return JSON[_0xa62eea(0x192)](_0x2c2596);
|
|
879
|
-
} catch {
|
|
880
|
-
throw new Error(_0x5123c0({
|
|
881
|
-
'bodyText': _0x2c2596,
|
|
882
|
-
'requestUrl': _0x315432,
|
|
883
|
-
'response': _0x15a37b
|
|
884
|
-
}));
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
function _0x390ff5(_0xdedfbd, _0x21443c) {
|
|
888
|
-
const _0x367d93 = _0x51700c, _0x1d05fa = typeof _0x21443c['idempotency_key'] === _0x367d93(_0x324c4b._0x9cd001) ? _0x21443c[_0x367d93(_0x324c4b._0x4c3d34)]['trim']() : '';
|
|
889
|
-
if (_0x1d05fa)
|
|
890
|
-
return _0x1d05fa;
|
|
891
|
-
const _0x3ea6ec = Date[_0x367d93(0xc8)]();
|
|
892
|
-
for (const [_0x5849df, _0x5c1f4c] of _0x30575d) {
|
|
893
|
-
_0x5c1f4c[_0x367d93(_0x324c4b._0x485492)] <= _0x3ea6ec && _0x30575d[_0x367d93(_0x324c4b._0x5e1e99)](_0x5849df);
|
|
894
|
-
}
|
|
895
|
-
const _0x2586a8 = {
|
|
896
|
-
..._0x21443c,
|
|
897
|
-
'idempotency_key': void 0x0
|
|
898
|
-
}, _0x223fac = createHash('sha256')[_0x367d93(_0x324c4b._0x3af37f)](_0xdedfbd + ':' + stableStringify(_0x2586a8))['digest'](_0x367d93(0x140)), _0x2b6baa = _0xdedfbd + ':' + _0x223fac, _0x3bad23 = _0x30575d['get'](_0x2b6baa);
|
|
899
|
-
if (_0x3bad23)
|
|
900
|
-
return _0x3bad23[_0x367d93(0xcc)];
|
|
901
|
-
const _0x5f241c = _0x367d93(0xe9) + _0xdedfbd + ':' + randomUUID();
|
|
902
|
-
return _0x30575d[_0x367d93(0x16f)](_0x2b6baa, {
|
|
903
|
-
'expiresAt': _0x3ea6ec + 0x5 * 0x3c * 0x3e8,
|
|
904
|
-
'value': _0x5f241c
|
|
905
|
-
}), _0x5f241c;
|
|
906
|
-
}
|
|
907
|
-
async function _0x236761(_0x5b0687, _0x606404) {
|
|
908
|
-
const _0x521a31 = _0x51700c, _0x422026 = new AbortController(), _0x1eb447 = setTimeout(() => _0x422026['abort'](), _0x44146a), _0x3c0347 = _0x606404?.[_0x521a31(_0x45358f._0x53fc06)] ? anySignal(_0x606404[_0x521a31(_0x45358f._0x492b44)], _0x422026[_0x521a31(0x228)]) : _0x422026[_0x521a31(_0x45358f._0x53fc06)], _0x197e51 = '' + _0x558388 + _0x5b0687;
|
|
909
|
-
try {
|
|
910
|
-
const _0x21c541 = await _0x56c41b(_0x197e51, {
|
|
911
|
-
..._0x606404,
|
|
912
|
-
'signal': _0x3c0347
|
|
913
|
-
}), _0x3bf181 = await _0x458481(_0x197e51, _0x21c541);
|
|
914
|
-
if (!_0x21c541['ok'] || _0x3bf181[_0x521a31(_0x45358f._0x2d8e52)] === ![])
|
|
915
|
-
throw new Error(asErrorMessage(_0x3bf181['error'], _0x521a31(_0x45358f._0x58358c) + _0x21c541[_0x521a31(_0x45358f._0x41a709)]));
|
|
916
|
-
return _0x3bf181;
|
|
917
|
-
} finally {
|
|
918
|
-
clearTimeout(_0x1eb447);
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
async function _0x4e5101(_0xe41b8b, _0x13fb25) {
|
|
922
|
-
const _0x42c733 = _0x51700c, _0x1cb598 = new AbortController(), _0xa21c8e = setTimeout(() => _0x1cb598[_0x42c733(0x1be)](), _0x44146a), _0x4b50ce = _0x13fb25?.[_0x42c733(_0x1665e5._0x3a92b5)] ? anySignal(_0x13fb25[_0x42c733(_0x1665e5._0x4a7092)], _0x1cb598[_0x42c733(_0x1665e5._0x3bb7d2)]) : _0x1cb598[_0x42c733(0x228)], _0x5b5143 = '' + _0x558388 + _0xe41b8b;
|
|
923
|
-
try {
|
|
924
|
-
const _0x4e68cd = await _0x56c41b(_0x5b5143, {
|
|
925
|
-
..._0x13fb25,
|
|
926
|
-
'signal': _0x4b50ce
|
|
927
|
-
}), _0x1472c0 = await _0x458481(_0x5b5143, _0x4e68cd);
|
|
928
|
-
if (!_0x4e68cd['ok'])
|
|
929
|
-
throw new Error(asErrorMessage(_0x1472c0[_0x42c733(0x14d)], _0x42c733(_0x1665e5._0x5270bc) + _0x4e68cd['status']));
|
|
930
|
-
return _0x1472c0;
|
|
931
|
-
} finally {
|
|
932
|
-
clearTimeout(_0xa21c8e);
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
async function _0x455686(_0x1a0120) {
|
|
936
|
-
const _0xb79838 = _0x51700c;
|
|
937
|
-
if (!_0x2dd09a || _0x1a0120 <= _0x443b7c)
|
|
938
|
-
return;
|
|
939
|
-
await _0x236761(_0xb79838(_0x1c9961._0x134a2b) + encodeURIComponent(_0x2dd09a) + _0xb79838(_0x1c9961._0x34cd20), {
|
|
940
|
-
'body': JSON[_0xb79838(0x112)]({ 'lastSeenSeq': _0x1a0120 }),
|
|
941
|
-
'headers': _0x597408,
|
|
942
|
-
'method': 'PATCH'
|
|
943
|
-
}), _0x443b7c = _0x1a0120;
|
|
944
|
-
}
|
|
945
|
-
async function _0x61fc0e(_0x44bebc) {
|
|
946
|
-
const _0x486af4 = _0x51700c;
|
|
947
|
-
if (!_0x190988 || !_0x4d1720 || _0x44bebc <= _0x443b7c)
|
|
948
|
-
return;
|
|
949
|
-
const _0x31f820 = await _0x56c41b(_0x190988 + _0x486af4(_0x1116b3._0x12e2ca), {
|
|
950
|
-
'body': JSON[_0x486af4(0x112)]({
|
|
951
|
-
'last_seen_seq': _0x44bebc,
|
|
952
|
-
'worker_session_id': _0x4d1720
|
|
953
|
-
}),
|
|
954
|
-
'headers': { 'Content-Type': _0x486af4(_0x1116b3._0x49a26b) },
|
|
955
|
-
'method': 'POST'
|
|
956
|
-
});
|
|
957
|
-
if (!_0x31f820['ok'])
|
|
958
|
-
throw new Error(_0x486af4(0xbb) + _0x31f820['status']);
|
|
959
|
-
_0x443b7c = _0x44bebc;
|
|
960
|
-
}
|
|
961
|
-
async function _0x5322c7(_0x28b5fd) {
|
|
962
|
-
const _0x198d3 = _0x51700c, _0x1102fa = parseTarget(_0x28b5fd), _0x757c5 = await _0x236761('/internal/agent/' + _0x17262b[_0x198d3(_0x460f5d._0xa58413)] + _0x198d3(_0x460f5d._0x2eaede), {
|
|
963
|
-
'body': JSON['stringify']({ 'target': _0x1102fa[_0x198d3(0x1b9)] }),
|
|
964
|
-
'headers': _0x597408,
|
|
965
|
-
'method': 'POST'
|
|
966
|
-
});
|
|
967
|
-
return {
|
|
968
|
-
'channelId': _0x757c5['data']?.[_0x198d3(0x181)] ?? '',
|
|
969
|
-
'target': _0x1102fa['channelTarget'],
|
|
970
|
-
'task': _0x757c5[_0x198d3(_0x460f5d._0x365299)]?.['task'],
|
|
971
|
-
'threadId': _0x757c5[_0x198d3(_0x460f5d._0x3f2b0e)]?.[_0x198d3(_0x460f5d._0x57ab94)],
|
|
972
|
-
'threadNumber': _0x757c5[_0x198d3(0xe5)]?.[_0x198d3(_0x460f5d._0x434c45)]
|
|
973
|
-
};
|
|
974
|
-
}
|
|
975
|
-
async function _0x3307fb(_0x3a5314 = {}) {
|
|
976
|
-
const _0x7b5865 = {
|
|
977
|
-
_0x46b924: 0x186,
|
|
978
|
-
_0x2a225e: 0x1bd,
|
|
979
|
-
_0x5b2f17: 0x1bd,
|
|
980
|
-
_0x3e3ad6: 0x200,
|
|
981
|
-
_0x4a3269: 0x200
|
|
982
|
-
};
|
|
983
|
-
if (!_0x3a5314['forceRefresh'] && _0x382a40)
|
|
984
|
-
return _0x382a40;
|
|
985
|
-
return _0x382a40 = (async () => {
|
|
986
|
-
const _0x392985 = _0x4210, _0x3f40f0 = await _0x236761(_0x392985(0xcf) + _0x17262b['agentId'] + _0x392985(0x1b6), {
|
|
987
|
-
'headers': _0x597408,
|
|
988
|
-
'method': _0x392985(_0x7b5865._0x46b924)
|
|
989
|
-
}), _0x33cd32 = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(0x23a)] ?? [], _0x7a425d = _0x33cd32['filter'](_0x2f6a70 => _0x2f6a70['participant']?.[_0x392985(0x197)] === _0x392985(0x1c0))['map'](_0x2f3b8e => ({
|
|
990
|
-
'id': _0x5bbe81(_0x2f3b8e),
|
|
991
|
-
'name': _0x3b4522(_0x2f3b8e)
|
|
992
|
-
}))[_0x392985(_0x7b5865._0x2a225e)](_0x4e5480 => _0x4e5480['id']), _0x31536d = _0x33cd32[_0x392985(_0x7b5865._0x5b2f17)](_0x5497cf => _0x5497cf['participant']?.[_0x392985(0x197)] !== _0x392985(0x1c0))[_0x392985(0xf7)](_0x52feda => ({
|
|
993
|
-
'id': _0x5bbe81(_0x52feda),
|
|
994
|
-
'name': _0x3b4522(_0x52feda)
|
|
995
|
-
}))[_0x392985(0x1bd)](_0x17892b => _0x17892b['id']), _0x4c5acc = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(_0x7b5865._0x3e3ad6)]['id'] ?? '';
|
|
996
|
-
return {
|
|
997
|
-
'agents': _0x7a425d,
|
|
998
|
-
'channels': _0x3f40f0[_0x392985(0xe5)]?.['channels'] ?? [],
|
|
999
|
-
'humans': _0x31536d,
|
|
1000
|
-
'serverId': _0x4c5acc,
|
|
1001
|
-
'serverName': _0x3f40f0['data']?.[_0x392985(_0x7b5865._0x4a3269)][_0x392985(0x145)] ?? _0x4c5acc
|
|
1002
|
-
};
|
|
1003
|
-
})()['catch'](_0x592546 => {
|
|
1004
|
-
_0x382a40 = null;
|
|
1005
|
-
throw _0x592546;
|
|
1006
|
-
}), _0x382a40;
|
|
1007
|
-
}
|
|
1008
|
-
function _0x4c91ee(_0x586cf4, _0x3b5010) {
|
|
1009
|
-
const _0x486681 = _0x51700c;
|
|
1010
|
-
return _0x3b5010[_0x486681(_0x1ba010._0x484a56)][_0x486681(0x176)](_0x4753c7 => _0x4753c7['id'] === _0x586cf4 || _0x4753c7[_0x486681(0x145)] === _0x586cf4) ? 'agent' : _0x486681(_0x1ba010._0x4d251b);
|
|
1011
|
-
}
|
|
1012
|
-
function _0x2e978f(_0x52b938) {
|
|
1013
|
-
const _0x1c3d58 = _0x51700c;
|
|
1014
|
-
if (_0x52b938[_0x1c3d58(_0x565212._0x32b250)] != null)
|
|
1015
|
-
return _0x52b938[_0x1c3d58(0x241)] + ':t' + _0x52b938[_0x1c3d58(_0x565212._0x57264e)];
|
|
1016
|
-
if (_0x52b938[_0x1c3d58(0x128)])
|
|
1017
|
-
return _0x52b938[_0x1c3d58(0x241)] + ':' + _0x52b938[_0x1c3d58(_0x565212._0x3afbd3)];
|
|
1018
|
-
if (_0x52b938[_0x1c3d58(_0x565212._0x4e8d8a)])
|
|
1019
|
-
return _0x52b938['channelTarget'] + ':' + _0x52b938[_0x1c3d58(_0x565212._0x4e8d8a)][_0x1c3d58(0x23d)](0x0, 0x8);
|
|
1020
|
-
return _0x52b938[_0x1c3d58(_0x565212._0x420f5a)];
|
|
1021
|
-
}
|
|
1022
|
-
function _0x4d7892(_0x2552e3, _0x1fa855) {
|
|
1023
|
-
const _0x3de046 = _0x51700c;
|
|
1024
|
-
try {
|
|
1025
|
-
const _0x5c2974 = parseTarget(_0x2552e3);
|
|
1026
|
-
if (_0x5c2974[_0x3de046(0x15f)] !== _0x3de046(0x17c) || _0x5c2974[_0x3de046(_0x475d86._0x110104)] !== _0x1fa855[_0x3de046(_0x475d86._0x104bb6)])
|
|
1027
|
-
return ![];
|
|
1028
|
-
if (_0x1fa855[_0x3de046(0x1ac)] != null && _0x5c2974[_0x3de046(0x1e3)] === 't' + _0x1fa855[_0x3de046(0x1ac)])
|
|
1029
|
-
return !![];
|
|
1030
|
-
if (_0x1fa855[_0x3de046(0x128)])
|
|
1031
|
-
return _0x5c2974['threadShortId'] === _0x1fa855[_0x3de046(_0x475d86._0x2ca3c3)] || _0x1fa855[_0x3de046(0x128)][_0x3de046(_0x475d86._0x2bc81b)](_0x5c2974[_0x3de046(_0x475d86._0x26e801)]);
|
|
1032
|
-
if (_0x1fa855[_0x3de046(_0x475d86._0x3583ee)])
|
|
1033
|
-
return _0x5c2974[_0x3de046(0x1e3)] === _0x1fa855[_0x3de046(_0x475d86._0x5ba51d)] || _0x1fa855[_0x3de046(0x229)][_0x3de046(0x1c1)](_0x5c2974['threadShortId']);
|
|
1034
|
-
return ![];
|
|
1035
|
-
} catch {
|
|
1036
|
-
return ![];
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
function _0x5bbe81(_0x40941a) {
|
|
1040
|
-
const _0x20927d = _0x51700c;
|
|
1041
|
-
return _0x40941a[_0x20927d(_0x1fef53._0x33af9d)]?.['participantId'] ?? _0x40941a[_0x20927d(0x15c)]?.['id'] ?? _0x40941a[_0x20927d(_0x1fef53._0x4d52dd)] ?? '';
|
|
1042
|
-
}
|
|
1043
|
-
function _0x3b4522(_0x368670) {
|
|
1044
|
-
const _0x3974be = _0x51700c;
|
|
1045
|
-
return _0x368670[_0x3974be(0x15c)]?.[_0x3974be(_0x86e614._0x433040)] ?? _0x5bbe81(_0x368670);
|
|
1046
|
-
}
|
|
1047
|
-
async function _0x3af4b2(_0x401cdb) {
|
|
1048
|
-
const _0x322ed3 = _0x51700c, _0x1a5d1f = Math['min'](_0x401cdb[_0x322ed3(_0xbdddf3._0x351cbe)] ?? 0x32, 0x64), _0x474d75 = await _0x3307fb(), _0x5bbea2 = new URLSearchParams();
|
|
1049
|
-
_0x5bbea2[_0x322ed3(0x16f)](_0x322ed3(_0xbdddf3._0x37a14f), String(_0x1a5d1f));
|
|
1050
|
-
_0x401cdb[_0x322ed3(0x229)] ? (_0x5bbea2[_0x322ed3(_0xbdddf3._0x37d0bc)](_0x322ed3(0x229), _0x401cdb[_0x322ed3(0x229)]), _0x5bbea2[_0x322ed3(0x16f)]('channelId', _0x401cdb[_0x322ed3(0x181)])) : _0x5bbea2['set'](_0x322ed3(_0xbdddf3._0xd0ea38), _0x401cdb[_0x322ed3(_0xbdddf3._0xd0ea38)]);
|
|
1051
|
-
_0x401cdb[_0x322ed3(_0xbdddf3._0x5b401e)] && _0x5bbea2[_0x322ed3(_0xbdddf3._0x37d0bc)](_0x322ed3(0x101), String(_0x401cdb['before']));
|
|
1052
|
-
_0x401cdb[_0x322ed3(0x232)] !== void 0x0 && _0x5bbea2['set'](_0x322ed3(_0xbdddf3._0x473ba5), String(_0x401cdb[_0x322ed3(_0xbdddf3._0x473ba5)]));
|
|
1053
|
-
const _0x21c61f = await _0x236761(_0x322ed3(_0xbdddf3._0x3de3db) + _0x17262b[_0x322ed3(0x201)] + _0x322ed3(0x1ad) + _0x5bbea2[_0x322ed3(_0xbdddf3._0x5ec29d)](), {
|
|
1054
|
-
'headers': _0x597408,
|
|
1055
|
-
'method': _0x322ed3(_0xbdddf3._0x5f5860)
|
|
1056
|
-
}), _0x4e5cfe = (_0x21c61f[_0x322ed3(0xe5)] ?? [])[_0x322ed3(_0xbdddf3._0x3945d1)](_0x91d02c => ({
|
|
1057
|
-
'attachments': (_0x91d02c['attachments'] ?? [])[_0x322ed3(0xf7)](_0x360864 => ({
|
|
1058
|
-
'filename': _0x360864[_0x322ed3(0xc3)] ?? _0x360864['id'],
|
|
1059
|
-
'id': _0x360864['id']
|
|
1060
|
-
})),
|
|
1061
|
-
'content': _0x91d02c[_0x322ed3(0x11b)] ?? '',
|
|
1062
|
-
'createdAt': _0x91d02c[_0x322ed3(0x190)],
|
|
1063
|
-
..._0x91d02c['kind'] && _0x91d02c['kind'] !== _0x322ed3(0x151) ? { 'kind': _0x91d02c[_0x322ed3(0x15f)] } : {},
|
|
1064
|
-
'messageId': _0x91d02c['id'],
|
|
1065
|
-
'senderName': _0x91d02c['senderParticipantId'],
|
|
1066
|
-
'senderType': _0x4c91ee(_0x91d02c[_0x322ed3(0x18e)], _0x474d75),
|
|
1067
|
-
'seq': _0x91d02c['eventSeq'] ?? 0x0
|
|
1068
|
-
}));
|
|
1069
|
-
return {
|
|
1070
|
-
'channel': _0x401cdb[_0x322ed3(_0xbdddf3._0x1660e5)],
|
|
1071
|
-
'hasMore': _0x21c61f[_0x322ed3(0x23e)]?.[_0x322ed3(_0xbdddf3._0x58a87)] ?? ![],
|
|
1072
|
-
'messages': _0x4e5cfe,
|
|
1073
|
-
'nextCursor': _0x21c61f[_0x322ed3(0x23e)]?.[_0x322ed3(0x101)]
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
return {
|
|
1077
|
-
async 'sendMessage'(_0x50cfb7) {
|
|
1078
|
-
const _0x37a5a9 = _0x51700c, _0x257706 = await _0x5322c7(_0x50cfb7[_0x37a5a9(_0x1a5601._0x96342b)]), _0x5ae3c9 = _0x50cfb7[_0x37a5a9(0x202)][_0x37a5a9(0x1fb)]('@') ? extractMentionedParticipantIds(_0x50cfb7[_0x37a5a9(_0x1a5601._0x20175a)], await _0x3307fb()) : [], _0x3e6d41 = await _0x236761(_0x37a5a9(_0x1a5601._0x4e45ee) + _0x17262b[_0x37a5a9(0x201)] + '/send', {
|
|
1079
|
-
'body': JSON[_0x37a5a9(_0x1a5601._0x566a05)]({
|
|
1080
|
-
'attachment_ids': _0x50cfb7['attachmentIds'],
|
|
1081
|
-
'bodyMarkdown': _0x50cfb7['content'],
|
|
1082
|
-
'channelId': _0x257706[_0x37a5a9(0x181)],
|
|
1083
|
-
..._0x5ae3c9[_0x37a5a9(0x146)] > 0x0 ? { 'mentionedParticipantIds': _0x5ae3c9 } : {},
|
|
1084
|
-
'threadId': _0x257706[_0x37a5a9(_0x1a5601._0x4a85b1)],
|
|
1085
|
-
..._0x50cfb7['visibility'] ? { 'visibility': _0x50cfb7[_0x37a5a9(_0x1a5601._0x181916)] } : {}
|
|
1086
|
-
}),
|
|
1087
|
-
'headers': _0x597408,
|
|
1088
|
-
'method': _0x37a5a9(0xf4)
|
|
1089
|
-
});
|
|
1090
|
-
return { 'messageId': _0x3e6d41[_0x37a5a9(_0x1a5601._0x428acc)]?.['id'] ?? '' };
|
|
1091
|
-
},
|
|
1092
|
-
async 'listSchedules'() {
|
|
1093
|
-
const _0x168381 = _0x51700c, _0x844dbb = await _0x236761(_0x168381(0x1e0), {
|
|
1094
|
-
'headers': _0x597408,
|
|
1095
|
-
'method': _0x168381(_0x1d8d90._0x39cbd8)
|
|
1096
|
-
});
|
|
1097
|
-
return _0x844dbb[_0x168381(0xe5)] ?? [];
|
|
1098
|
-
},
|
|
1099
|
-
async 'claimScheduleRun'(_0xa17036) {
|
|
1100
|
-
const _0x35ae17 = _0x51700c, _0x3be6b5 = await _0x236761('/api/internal/schedules/claim', {
|
|
1101
|
-
'body': JSON[_0x35ae17(_0x12f6eb._0x4d193e)](_0xa17036),
|
|
1102
|
-
'headers': _0x597408,
|
|
1103
|
-
'method': _0x35ae17(_0x12f6eb._0x5e874b)
|
|
1104
|
-
});
|
|
1105
|
-
return _0x3be6b5['data'] ?? {
|
|
1106
|
-
'granted': ![],
|
|
1107
|
-
'runId': null,
|
|
1108
|
-
'schedule': null,
|
|
1109
|
-
'scheduledFor': _0xa17036[_0x35ae17(0x19f)]
|
|
1110
|
-
};
|
|
1111
|
-
},
|
|
1112
|
-
async 'startScheduleRun'(_0x5cb60a) {
|
|
1113
|
-
const _0x5b76db = _0x51700c, _0x38c95d = await _0x236761(_0x5b76db(0x1b0) + encodeURIComponent(_0x5cb60a[_0x5b76db(0x152)]) + _0x5b76db(0x154), {
|
|
1114
|
-
'body': JSON[_0x5b76db(0x112)]({}),
|
|
1115
|
-
'headers': _0x597408,
|
|
1116
|
-
'method': _0x5b76db(0xf4)
|
|
1117
|
-
});
|
|
1118
|
-
return _0x38c95d['data'] ?? {
|
|
1119
|
-
'claimedByDaemonId': '',
|
|
1120
|
-
'id': _0x5cb60a['runId'],
|
|
1121
|
-
'scheduleId': '',
|
|
1122
|
-
'status': _0x5b76db(_0x334940._0x29cba5)
|
|
1123
|
-
};
|
|
1124
|
-
},
|
|
1125
|
-
async 'finishScheduleRun'(_0x57b832) {
|
|
1126
|
-
const _0x226397 = _0x51700c, _0x43d825 = await _0x236761('/api/internal/schedules/' + encodeURIComponent(_0x57b832[_0x226397(0x152)]) + '/finish', {
|
|
1127
|
-
'body': JSON['stringify']({
|
|
1128
|
-
'error': _0x57b832[_0x226397(0x14d)],
|
|
1129
|
-
'resultJson': _0x57b832['resultJson'],
|
|
1130
|
-
'status': _0x57b832[_0x226397(_0x4732ae._0x1bcd45)]
|
|
1131
|
-
}),
|
|
1132
|
-
'headers': _0x597408,
|
|
1133
|
-
'method': _0x226397(_0x4732ae._0x43e7c4)
|
|
1134
|
-
});
|
|
1135
|
-
return _0x43d825[_0x226397(_0x4732ae._0x5c2126)] ?? {
|
|
1136
|
-
'nextRunAt': null,
|
|
1137
|
-
'run': {
|
|
1138
|
-
'claimedByDaemonId': '',
|
|
1139
|
-
'id': _0x57b832[_0x226397(_0x4732ae._0x1ea312)],
|
|
1140
|
-
'scheduleId': '',
|
|
1141
|
-
'status': _0x57b832[_0x226397(0x12e)]
|
|
1142
|
-
}
|
|
1143
|
-
};
|
|
1144
|
-
},
|
|
1145
|
-
async 'listTasks'(_0x1a25c4) {
|
|
1146
|
-
const _0x2e0dd4 = _0x51700c, _0x31f29f = new URLSearchParams();
|
|
1147
|
-
return _0x31f29f['set'](_0x2e0dd4(0xba), _0x1a25c4['channel']), _0x1a25c4[_0x2e0dd4(_0x19ff08._0x50c22c)] && _0x31f29f[_0x2e0dd4(0x16f)](_0x2e0dd4(0x12e), _0x1a25c4[_0x2e0dd4(_0x19ff08._0x50c22c)]), _0x4e5101('/internal/agent/' + _0x17262b['agentId'] + _0x2e0dd4(0x175) + _0x31f29f['toString'](), {
|
|
1148
|
-
'headers': _0x597408,
|
|
1149
|
-
'method': _0x2e0dd4(_0x19ff08._0xebf989)
|
|
1150
|
-
});
|
|
1151
|
-
},
|
|
1152
|
-
async 'createTasks'(_0x36209d) {
|
|
1153
|
-
const _0x61776e = _0x51700c;
|
|
1154
|
-
return _0x4e5101(_0x61776e(_0x1f62fd._0xa88028) + _0x17262b[_0x61776e(0x201)] + '/tasks', {
|
|
1155
|
-
'body': JSON[_0x61776e(_0x1f62fd._0x4dc32e)]({
|
|
1156
|
-
..._0x36209d,
|
|
1157
|
-
'idempotency_key': _0x390ff5(_0x61776e(0x163), _0x36209d)
|
|
1158
|
-
}),
|
|
1159
|
-
'headers': _0x597408,
|
|
1160
|
-
'method': 'POST'
|
|
1161
|
-
});
|
|
1162
|
-
},
|
|
1163
|
-
async 'claimTasks'(_0x4944a5) {
|
|
1164
|
-
const _0x2b59a6 = _0x51700c;
|
|
1165
|
-
return _0x4e5101(_0x2b59a6(_0x1ee795._0x38044b) + _0x17262b[_0x2b59a6(0x201)] + _0x2b59a6(_0x1ee795._0xf9120b), {
|
|
1166
|
-
'body': JSON['stringify']({
|
|
1167
|
-
..._0x4944a5,
|
|
1168
|
-
'idempotency_key': _0x390ff5(_0x2b59a6(0x21c), _0x4944a5)
|
|
1169
|
-
}),
|
|
1170
|
-
'headers': _0x597408,
|
|
1171
|
-
'method': _0x2b59a6(_0x1ee795._0x525d95)
|
|
1172
|
-
});
|
|
1173
|
-
},
|
|
1174
|
-
async 'unclaimTask'(_0x40fe53) {
|
|
1175
|
-
const _0x3b9459 = _0x51700c;
|
|
1176
|
-
return _0x4e5101(_0x3b9459(0xcf) + _0x17262b[_0x3b9459(_0x1c41eb._0x98c01e)] + _0x3b9459(0x10b), {
|
|
1177
|
-
'body': JSON[_0x3b9459(_0x1c41eb._0x1b0c3e)]({
|
|
1178
|
-
..._0x40fe53,
|
|
1179
|
-
'idempotency_key': _0x390ff5(_0x3b9459(0x148), _0x40fe53)
|
|
1180
|
-
}),
|
|
1181
|
-
'headers': _0x597408,
|
|
1182
|
-
'method': _0x3b9459(_0x1c41eb._0x4636e4)
|
|
1183
|
-
});
|
|
1184
|
-
},
|
|
1185
|
-
async 'updateTaskStatus'(_0x133ef4) {
|
|
1186
|
-
const _0x25b0e3 = _0x51700c;
|
|
1187
|
-
return _0x4e5101(_0x25b0e3(0xcf) + _0x17262b[_0x25b0e3(_0x1e3217._0x2b975f)] + _0x25b0e3(0x132), {
|
|
1188
|
-
'body': JSON[_0x25b0e3(0x112)]({
|
|
1189
|
-
..._0x133ef4,
|
|
1190
|
-
'idempotency_key': _0x390ff5(_0x25b0e3(0x1d4), _0x133ef4)
|
|
1191
|
-
}),
|
|
1192
|
-
'headers': _0x597408,
|
|
1193
|
-
'method': _0x25b0e3(0xf4)
|
|
1194
|
-
});
|
|
1195
|
-
},
|
|
1196
|
-
async 'uploadFile'(_0x52122c) {
|
|
1197
|
-
const _0x5bede0 = _0x51700c, _0x3c4059 = await _0x5322c7(_0x52122c[_0x5bede0(_0x59c219._0x2ef705)]);
|
|
1198
|
-
if (_0x3c4059[_0x5bede0(_0x59c219._0xeb7af1)])
|
|
1199
|
-
throw new Error(_0x5bede0(_0x59c219._0x10894e));
|
|
1200
|
-
const _0x410a4f = await _0x236761(_0x5bede0(0xcf) + _0x17262b[_0x5bede0(_0x59c219._0x3b43f8)] + _0x5bede0(0x1b7), {
|
|
1201
|
-
'body': JSON[_0x5bede0(_0x59c219._0x4b9117)]({
|
|
1202
|
-
'channel': _0x3c4059['target'],
|
|
1203
|
-
'contentBase64': _0x52122c[_0x5bede0(_0x59c219._0x5cbe6e)],
|
|
1204
|
-
'contentType': _0x52122c[_0x5bede0(_0x59c219._0xb8ff69)],
|
|
1205
|
-
'originalFilename': _0x52122c['filename']
|
|
1206
|
-
}),
|
|
1207
|
-
'headers': _0x597408,
|
|
1208
|
-
'method': _0x5bede0(_0x59c219._0xe8cb0b)
|
|
1209
|
-
});
|
|
1210
|
-
return {
|
|
1211
|
-
'attachmentId': _0x410a4f[_0x5bede0(_0x59c219._0x5d2ddd)]?.['id'] ?? '',
|
|
1212
|
-
'filename': _0x410a4f['data']?.[_0x5bede0(0x18c)] ?? _0x52122c[_0x5bede0(0xc3)],
|
|
1213
|
-
'sizeBytes': _0x410a4f[_0x5bede0(_0x59c219._0x5d2ddd)]?.[_0x5bede0(0x125)] ?? 0x0
|
|
1214
|
-
};
|
|
1215
|
-
},
|
|
1216
|
-
async 'downloadAttachment'(_0x15e0f4) {
|
|
1217
|
-
const _0xa82a43 = _0x51700c, _0x4a9e80 = await _0x236761(_0xa82a43(_0x79709b._0xec87a1) + _0x15e0f4, {
|
|
1218
|
-
'headers': _0x597408,
|
|
1219
|
-
'method': _0xa82a43(0x186)
|
|
1220
|
-
}), _0x18636f = new AbortController(), _0x48e02e = setTimeout(() => _0x18636f[_0xa82a43(0x1be)](), _0x44146a);
|
|
1221
|
-
try {
|
|
1222
|
-
const _0x59421a = await _0x56c41b(_0x558388 + _0xa82a43(0x179) + _0x15e0f4 + _0xa82a43(_0x79709b._0x47cd7a), {
|
|
1223
|
-
'headers': _0x597408,
|
|
1224
|
-
'method': _0xa82a43(_0x79709b._0x264bcd),
|
|
1225
|
-
'signal': _0x18636f['signal']
|
|
1226
|
-
});
|
|
1227
|
-
if (!_0x59421a['ok'])
|
|
1228
|
-
throw new Error(_0xa82a43(0xbb) + _0x59421a['status']);
|
|
1229
|
-
return {
|
|
1230
|
-
'contentType': _0x4a9e80['data']?.['contentType'] ?? _0x59421a[_0xa82a43(_0x79709b._0x5ad6ca)][_0xa82a43(_0x79709b._0x592170)]('content-type') ?? _0xa82a43(_0x79709b._0x48f7d5),
|
|
1231
|
-
'data': Buffer[_0xa82a43(_0x79709b._0x42a5f7)](await _0x59421a['arrayBuffer']()),
|
|
1232
|
-
'originalFilename': _0x4a9e80[_0xa82a43(_0x79709b._0x3330)]?.[_0xa82a43(0x18c)]
|
|
1233
|
-
};
|
|
1234
|
-
} finally {
|
|
1235
|
-
clearTimeout(_0x48e02e);
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
async 'listServer'() {
|
|
1239
|
-
return _0x3307fb({ 'forceRefresh': !![] });
|
|
1240
|
-
},
|
|
1241
|
-
async 'readHistory'(_0x287452) {
|
|
1242
|
-
const _0x24141b = _0x51700c, _0x25e009 = await _0x5322c7(_0x287452[_0x24141b(0xba)]);
|
|
1243
|
-
return _0x3af4b2({
|
|
1244
|
-
'after': _0x287452[_0x24141b(_0x37d62d._0x31e0ff)],
|
|
1245
|
-
'before': _0x287452[_0x24141b(0x17a)],
|
|
1246
|
-
'channelId': _0x25e009[_0x24141b(0x181)],
|
|
1247
|
-
'channelTarget': _0x25e009['target'],
|
|
1248
|
-
'limit': _0x287452[_0x24141b(0x1e1)],
|
|
1249
|
-
'threadId': _0x25e009[_0x24141b(_0x37d62d._0x421439)]
|
|
1250
|
-
});
|
|
1251
|
-
},
|
|
1252
|
-
'resolveTarget': _0x5322c7,
|
|
1253
|
-
async 'checkMessages'() {
|
|
1254
|
-
const _0x4291d9 = { _0x2ae815: 0x1e8 }, _0x3cda68 = _0x51700c, _0x4082eb = new URLSearchParams();
|
|
1255
|
-
_0x4082eb['set'](_0x3cda68(_0x5eb86d._0x5211aa), String(_0xdfb599));
|
|
1256
|
-
const _0x516920 = _0x4082eb[_0x3cda68(_0x5eb86d._0x5c99df)](), _0x555e65 = await _0x236761(_0x3cda68(0xcf) + _0x17262b[_0x3cda68(_0x5eb86d._0x10cbf9)] + '/receive' + (_0x516920 ? '?' + _0x516920 : ''), {
|
|
1257
|
-
'headers': _0x597408,
|
|
1258
|
-
'method': _0x3cda68(0x186)
|
|
1259
|
-
}), _0xd77f2d = _0x555e65[_0x3cda68(_0x5eb86d._0x5036b3)] ?? [], _0x1a7890 = _0x555e65[_0x3cda68(_0x5eb86d._0x9c83a5)]?.[_0x3cda68(0x101)], _0x922da4 = _0x1a7890 !== void 0x0 ? Math['max'](_0xdfb599, _0x1a7890) : _0xd77f2d[_0x3cda68(_0x5eb86d._0x2dcf9d)] > 0x0 ? Math[_0x3cda68(0xd2)](_0xdfb599, _0xd77f2d[_0xd77f2d[_0x3cda68(_0x5eb86d._0x2dcf9d)] - 0x1]['seq']) : _0xdfb599, _0x593e45 = _0xd77f2d[_0x3cda68(0x1bd)](_0x5e006b => _0x5e006b[_0x3cda68(0x14b)] === 'message'), _0xe69790 = _0x1f9804 === void 0x0 && _0x5a3c40;
|
|
1260
|
-
let _0x128078 = await _0x3307fb(), _0x4434a9 = new Map(_0x128078[_0x3cda68(_0x5eb86d._0x1b2e6f)][_0x3cda68(_0x5eb86d._0x1ab9ee)](_0x5c066e => [
|
|
1261
|
-
_0x5c066e['id'],
|
|
1262
|
-
_0x5c066e
|
|
1263
|
-
]));
|
|
1264
|
-
const _0x312f0b = _0x593e45['some'](_0x1fe5f4 => {
|
|
1265
|
-
const _0x2d3711 = _0x3cda68, _0x20b60c = asRecord(_0x1fe5f4[_0x2d3711(_0x4291d9._0x2ae815)]), _0x52c678 = typeof _0x20b60c?.['channelId'] === _0x2d3711(0x1cb) ? _0x20b60c[_0x2d3711(0x181)] : '';
|
|
1266
|
-
return Boolean(_0x52c678) && !_0x4434a9['has'](_0x52c678);
|
|
1267
|
-
});
|
|
1268
|
-
_0x312f0b && (_0x128078 = await _0x3307fb({ 'forceRefresh': !![] }), _0x4434a9 = new Map(_0x128078[_0x3cda68(0xbc)][_0x3cda68(0xf7)](_0x595838 => [
|
|
1269
|
-
_0x595838['id'],
|
|
1270
|
-
_0x595838
|
|
1271
|
-
])));
|
|
1272
|
-
const _0x882ad9 = new Map();
|
|
1273
|
-
for (const _0x327196 of _0x593e45) {
|
|
1274
|
-
const _0x1c2c93 = asRecord(_0x327196[_0x3cda68(_0x5eb86d._0xba0cf2)]), _0x3b1401 = typeof _0x1c2c93[_0x3cda68(0x181)] === _0x3cda68(_0x5eb86d._0x1fc159) ? _0x1c2c93['channelId'] : '';
|
|
1275
|
-
if (!_0x3b1401)
|
|
1276
|
-
continue;
|
|
1277
|
-
const _0x89d110 = typeof _0x1c2c93[_0x3cda68(0x229)] === 'string' ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x4dc78b)] : void 0x0, _0x482c55 = typeof _0x1c2c93['rootMessageId'] === _0x3cda68(0x1cb) ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x5c65d1)] : void 0x0, _0x6e5080 = typeof _0x1c2c93[_0x3cda68(0x1ac)] === _0x3cda68(0xbe) && Number[_0x3cda68(0xca)](_0x1c2c93[_0x3cda68(0x1ac)]) ? _0x1c2c93[_0x3cda68(_0x5eb86d._0x6b6ebb)] : void 0x0, _0x576c36 = Boolean(_0x89d110 && (!_0x482c55 || _0x327196[_0x3cda68(_0x5eb86d._0x2616dd)] !== _0x482c55)), _0x35bfe3 = _0x576c36 ? _0x3b1401 + ':' + _0x89d110 : _0x3b1401, _0x1b8cb0 = _0x882ad9[_0x3cda68(0x161)](_0x35bfe3) ?? {
|
|
1278
|
-
'aggregateIds': [],
|
|
1279
|
-
'channelId': _0x3b1401,
|
|
1280
|
-
'entries': new Map(),
|
|
1281
|
-
'isThreadReply': _0x576c36,
|
|
1282
|
-
'rootMessageId': _0x482c55,
|
|
1283
|
-
'threadNumber': _0x6e5080,
|
|
1284
|
-
'threadId': _0x576c36 ? _0x89d110 : void 0x0
|
|
1285
|
-
};
|
|
1286
|
-
_0x1b8cb0[_0x3cda68(_0x5eb86d._0x195701)] == null && _0x6e5080 != null && (_0x1b8cb0['threadNumber'] = _0x6e5080), !_0x1b8cb0[_0x3cda68(0x128)] && _0x482c55 && (_0x1b8cb0['rootMessageId'] = _0x482c55), _0x1b8cb0[_0x3cda68(_0x5eb86d._0x5ca5a2)][_0x3cda68(0x1cd)](_0x327196[_0x3cda68(_0x5eb86d._0x1c8f2d)]), _0x1b8cb0[_0x3cda68(0xec)]['set'](_0x327196[_0x3cda68(_0x5eb86d._0x1c8f2d)], {
|
|
1287
|
-
'payloadJson': _0x327196[_0x3cda68(0x1e8)],
|
|
1288
|
-
'seq': _0x327196[_0x3cda68(_0x5eb86d._0x35a1ee)]
|
|
1289
|
-
}), _0x882ad9[_0x3cda68(_0x5eb86d._0x405f28)](_0x35bfe3, _0x1b8cb0);
|
|
1290
|
-
}
|
|
1291
|
-
const _0x1deb9b = [];
|
|
1292
|
-
for (const _0x4c7636 of _0x882ad9[_0x3cda68(_0x5eb86d._0x64deb5)]()) {
|
|
1293
|
-
const {
|
|
1294
|
-
channelId: _0x4f9650,
|
|
1295
|
-
threadId: _0x19cc33,
|
|
1296
|
-
rootMessageId: _0x485965,
|
|
1297
|
-
threadNumber: _0x3bc4ab,
|
|
1298
|
-
aggregateIds: _0x37bb6c,
|
|
1299
|
-
isThreadReply: _0x56ab18,
|
|
1300
|
-
entries: _0x453026
|
|
1301
|
-
} = _0x4c7636, _0x43ccc7 = _0x4434a9[_0x3cda68(0x161)](_0x4f9650), _0x428f4c = _0x43ccc7?.[_0x3cda68(_0x5eb86d._0x248a3f)] ?? _0x4f9650, _0x3aaaf1 = _0x43ccc7?.[_0x3cda68(_0x5eb86d._0x331458)] === 'dm' ? _0x3cda68(0x100) + _0x428f4c : '#' + _0x428f4c, _0x52cefd = {
|
|
1302
|
-
'channelTarget': _0x3aaaf1,
|
|
1303
|
-
'rootMessageId': _0x485965,
|
|
1304
|
-
'threadId': _0x19cc33,
|
|
1305
|
-
'threadNumber': _0x3bc4ab
|
|
1306
|
-
}, _0x5a163d = await _0x3af4b2({
|
|
1307
|
-
'channelId': _0x4f9650,
|
|
1308
|
-
'channelTarget': _0x3aaaf1,
|
|
1309
|
-
'limit': Math[_0x3cda68(0xd2)](_0x37bb6c[_0x3cda68(0x146)], 0x32),
|
|
1310
|
-
'threadId': _0x19cc33
|
|
1311
|
-
}), _0x28ec32 = new Map(_0x5a163d['messages'][_0x3cda68(_0x5eb86d._0x1ab9ee)](_0x464a56 => [
|
|
1312
|
-
_0x464a56[_0x3cda68(0x15e)],
|
|
1313
|
-
_0x464a56
|
|
1314
|
-
])), _0x339d9e = _0x19cc33 ? _0x2e978f(_0x52cefd) : _0x3aaaf1, _0x2f7408 = _0x1f9804 ? _0x56ab18 && _0x4d7892(_0x1f9804, _0x52cefd) : !![], _0xd80891 = _0x56ab18 ? _0x2f7408 && _0x1f9804 ? _0x1f9804 : _0x339d9e : _0x3aaaf1;
|
|
1315
|
-
for (const _0x2811fa of _0x37bb6c) {
|
|
1316
|
-
if (!_0x2f7408)
|
|
1317
|
-
continue;
|
|
1318
|
-
const _0x37bc26 = _0x453026[_0x3cda68(0x161)](_0x2811fa), _0x4643b6 = _0x37bc26 ? asRecord(_0x37bc26[_0x3cda68(_0x5eb86d._0x50df31)]) : void 0x0, _0x1ed7d9 = _0x4643b6?.[_0x3cda68(0x126)] === 'targeted';
|
|
1319
|
-
if (_0xe69790 && _0x1ed7d9)
|
|
1320
|
-
continue;
|
|
1321
|
-
const _0x49b982 = _0x28ec32[_0x3cda68(0x161)](_0x2811fa);
|
|
1322
|
-
if (_0x49b982) {
|
|
1323
|
-
_0x1deb9b['push']({
|
|
1324
|
-
'attachments': _0x49b982[_0x3cda68(_0x5eb86d._0x3e7ad3)],
|
|
1325
|
-
'content': _0x49b982['content'],
|
|
1326
|
-
'createdAt': _0x49b982[_0x3cda68(0x190)],
|
|
1327
|
-
..._0x49b982[_0x3cda68(0x15f)] ? { 'kind': _0x49b982[_0x3cda68(_0x5eb86d._0x331458)] } : {},
|
|
1328
|
-
'messageId': _0x49b982['messageId'],
|
|
1329
|
-
'senderName': _0x49b982['senderName'],
|
|
1330
|
-
'senderType': _0x49b982[_0x3cda68(0x18d)],
|
|
1331
|
-
'target': _0xd80891,
|
|
1332
|
-
..._0x1ed7d9 ? { 'targetedTask': !![] } : {}
|
|
1333
|
-
});
|
|
1334
|
-
continue;
|
|
1335
|
-
}
|
|
1336
|
-
if (_0x37bc26) {
|
|
1337
|
-
const _0x3d9f05 = typeof _0x4643b6?.[_0x3cda68(_0x5eb86d._0x4a4596)] === _0x3cda68(0x1cb) ? _0x4643b6[_0x3cda68(_0x5eb86d._0x39d06a)] : '', _0x5f1f28 = typeof _0x4643b6?.[_0x3cda68(_0x5eb86d._0x5469f2)] === _0x3cda68(_0x5eb86d._0x1fc159) ? _0x4643b6[_0x3cda68(_0x5eb86d._0x8d02ed)] : '', _0x2b442e = typeof _0x4643b6?.[_0x3cda68(0x15f)] === 'string' && _0x4643b6[_0x3cda68(0x15f)] !== 'chat' ? _0x4643b6[_0x3cda68(_0x5eb86d._0x331458)] : void 0x0;
|
|
1338
|
-
_0x3d9f05 && _0x5f1f28 && _0x1deb9b['push']({
|
|
1339
|
-
'attachments': [],
|
|
1340
|
-
'content': _0x5f1f28,
|
|
1341
|
-
'createdAt': new Date()['toISOString'](),
|
|
1342
|
-
..._0x2b442e ? { 'kind': _0x2b442e } : {},
|
|
1343
|
-
'messageId': _0x2811fa,
|
|
1344
|
-
'senderName': _0x3d9f05,
|
|
1345
|
-
'senderType': _0x4c91ee(_0x3d9f05, _0x128078),
|
|
1346
|
-
'target': _0xd80891,
|
|
1347
|
-
..._0x1ed7d9 ? { 'targetedTask': !![] } : {}
|
|
1348
|
-
});
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
if (_0x922da4 > 0x0) {
|
|
1353
|
-
if (_0x2dd09a)
|
|
1354
|
-
await _0x455686(_0x922da4);
|
|
1355
|
-
else
|
|
1356
|
-
_0x4d1720 && await _0x61fc0e(_0x922da4);
|
|
1357
|
-
}
|
|
1358
|
-
return _0x922da4 > _0xdfb599 && (_0xdfb599 = _0x922da4), { 'messages': _0x1f9804 ? _0x1deb9b : _0xe69790 ? _0x1deb9b[_0x3cda68(0x1bd)](_0x306cbe => _0x306cbe['targetedTask'] !== !![]) : _0x1deb9b };
|
|
1359
|
-
}
|
|
1463
|
+
_0x184f = function () {
|
|
1464
|
+
return _0x2c9e82;
|
|
1360
1465
|
};
|
|
1466
|
+
return _0x184f();
|
|
1361
1467
|
}
|
|
1362
|
-
function
|
|
1363
|
-
|
|
1364
|
-
_0x11b363: 0x21e,
|
|
1365
|
-
_0x371214: 0x103,
|
|
1366
|
-
_0xa14129: 0x12a,
|
|
1367
|
-
_0x178524: 0x1c2,
|
|
1368
|
-
_0x4291cf: 0x1c3
|
|
1369
|
-
}, _0xa58538 = _0x77ce4b, _0x9c3873 = new Date(_0x18c512);
|
|
1370
|
-
if (Number[_0xa58538(_0x688624._0x11b363)](_0x9c3873[_0xa58538(_0x688624._0x371214)]()))
|
|
1371
|
-
return _0x18c512;
|
|
1372
|
-
const _0x42da82 = _0x463b9e => String(_0x463b9e)[_0xa58538(0x226)](0x2, '0');
|
|
1373
|
-
return _0x9c3873['getFullYear']() + '-' + _0x42da82(_0x9c3873[_0xa58538(0x218)]() + 0x1) + '-' + _0x42da82(_0x9c3873['getDate']()) + '\x20' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0xa14129)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x178524)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x4291cf)]());
|
|
1374
|
-
}
|
|
1375
|
-
function formatAttachmentSuffix(_0x1cc08e) {
|
|
1376
|
-
const _0x16bf13 = _0x77ce4b;
|
|
1377
|
-
if (!_0x1cc08e || _0x1cc08e[_0x16bf13(0x146)] === 0x0)
|
|
1378
|
-
return '';
|
|
1379
|
-
return '\x20[' + _0x1cc08e[_0x16bf13(0x146)] + '\x20attachment' + (_0x1cc08e[_0x16bf13(0x146)] > 0x1 ? 's' : '') + ':\x20' + _0x1cc08e[_0x16bf13(0xf7)](_0x45e1f0 => _0x45e1f0['filename'] + _0x16bf13(0x18a) + _0x45e1f0['id'] + ')')['join'](',\x20') + _0x16bf13(0x188);
|
|
1380
|
-
}
|
|
1381
|
-
function formatCheckMessages(_0x1e2190) {
|
|
1382
|
-
const _0x49e9a3 = { _0x414d8e: 0x146 }, _0x27b6e7 = {
|
|
1383
|
-
_0x12d667: 0x1af,
|
|
1384
|
-
_0xdeacd8: 0x15f,
|
|
1385
|
-
_0x5b3fdb: 0x1b5,
|
|
1386
|
-
_0x429b89: 0x135,
|
|
1387
|
-
_0x2242f1: 0xf9,
|
|
1388
|
-
_0x2af270: 0x190,
|
|
1389
|
-
_0x16d7e8: 0x202
|
|
1390
|
-
}, _0x4c0ef5 = _0x77ce4b;
|
|
1391
|
-
if (_0x1e2190[_0x4c0ef5(_0x49e9a3._0x414d8e)] === 0x0)
|
|
1392
|
-
return _0x4c0ef5(0xfc);
|
|
1393
|
-
return _0x1e2190['map'](_0x262962 => {
|
|
1394
|
-
const _0xf02aad = _0x4c0ef5, _0x12231a = _0x262962['senderType'] === _0xf02aad(0x1c0) ? _0xf02aad(_0x27b6e7._0x12d667) : '', _0x3b869f = _0x262962[_0xf02aad(0x15f)] && _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] !== 'chat' ? _0xf02aad(_0x27b6e7._0x5b3fdb) + _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] : '';
|
|
1395
|
-
return _0xf02aad(_0x27b6e7._0x429b89) + _0x262962[_0xf02aad(0x1b9)] + _0xf02aad(0x1f7) + _0x262962['messageId'][_0xf02aad(0x23d)](0x0, 0x8) + _0xf02aad(_0x27b6e7._0x2242f1) + toLocalTime(_0x262962[_0xf02aad(_0x27b6e7._0x2af270)]) + _0x12231a + _0x3b869f + _0xf02aad(0x243) + _0x262962[_0xf02aad(0x206)] + ':\x20' + _0x262962[_0xf02aad(_0x27b6e7._0x16d7e8)] + formatAttachmentSuffix(_0x262962[_0xf02aad(0x1de)]);
|
|
1396
|
-
})[_0x4c0ef5(0x172)]('\x0a');
|
|
1397
|
-
}
|
|
1398
|
-
function formatHistory(_0x21b53f) {
|
|
1399
|
-
const _0x5b10fb = {
|
|
1400
|
-
_0x1710bc: 0x16e,
|
|
1401
|
-
_0x19050c: 0x207,
|
|
1402
|
-
_0x31567e: 0x172,
|
|
1403
|
-
_0x6b0cb8: 0x150,
|
|
1404
|
-
_0x5c999b: 0x184,
|
|
1405
|
-
_0x18b78d: 0x146
|
|
1406
|
-
}, _0x48083e = {
|
|
1407
|
-
_0x5ed52a: 0x18d,
|
|
1408
|
-
_0x527bd8: 0x1af,
|
|
1409
|
-
_0x366f34: 0x15f,
|
|
1410
|
-
_0x53490a: 0x15f,
|
|
1411
|
-
_0xca3a36: 0x15e,
|
|
1412
|
-
_0x3ca5d9: 0xf9,
|
|
1413
|
-
_0x487b77: 0x202,
|
|
1414
|
-
_0x435689: 0x1de
|
|
1415
|
-
}, _0x349759 = _0x77ce4b;
|
|
1416
|
-
if (_0x21b53f[_0x349759(_0x5b10fb._0x1710bc)][_0x349759(0x146)] === 0x0)
|
|
1417
|
-
return _0x349759(0xd3) + _0x21b53f['channel'] + _0x349759(_0x5b10fb._0x19050c);
|
|
1418
|
-
const _0x58d6bc = _0x21b53f['messages']['map'](_0x451878 => {
|
|
1419
|
-
const _0x52dc38 = _0x349759, _0x107f4e = _0x451878[_0x52dc38(_0x48083e._0x5ed52a)] === _0x52dc38(0x1c0) ? _0x52dc38(_0x48083e._0x527bd8) : '', _0x30f245 = _0x451878[_0x52dc38(_0x48083e._0x366f34)] && _0x451878[_0x52dc38(_0x48083e._0x53490a)] !== _0x52dc38(0x151) ? _0x52dc38(0x1b5) + _0x451878['kind'] : '';
|
|
1420
|
-
return _0x52dc38(0x1c8) + _0x451878['seq'] + _0x52dc38(0x1f7) + _0x451878[_0x52dc38(_0x48083e._0xca3a36)] + _0x52dc38(_0x48083e._0x3ca5d9) + toLocalTime(_0x451878['createdAt']) + _0x107f4e + _0x30f245 + _0x52dc38(0x243) + _0x451878['senderName'] + ':\x20' + _0x451878[_0x52dc38(_0x48083e._0x487b77)] + formatAttachmentSuffix(_0x451878[_0x52dc38(_0x48083e._0x435689)]);
|
|
1421
|
-
})[_0x349759(_0x5b10fb._0x31567e)]('\x0a'), _0x50f3c3 = _0x21b53f[_0x349759(0x208)] && _0x21b53f[_0x349759(_0x5b10fb._0x6b0cb8)] ? _0x349759(_0x5b10fb._0x5c999b) + _0x21b53f[_0x349759(0x16e)][_0x349759(0x146)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x21b53f[_0x349759(_0x5b10fb._0x6b0cb8)] + _0x349759(0x21d) : '';
|
|
1422
|
-
return _0x349759(0xd3) + _0x21b53f['channel'] + '\x20(' + _0x21b53f[_0x349759(0x16e)][_0x349759(_0x5b10fb._0x18b78d)] + _0x349759(0x1cc) + _0x58d6bc + _0x50f3c3;
|
|
1423
|
-
}
|
|
1424
|
-
function formatServerDirectory(_0x588a54) {
|
|
1425
|
-
const _0x15992f = {
|
|
1426
|
-
_0x343599: 0x146,
|
|
1427
|
-
_0x3e6632: 0x1b3,
|
|
1428
|
-
_0x2ddec2: 0xf7,
|
|
1429
|
-
_0x56325c: 0x146,
|
|
1430
|
-
_0x575f7b: 0x22c,
|
|
1431
|
-
_0x44b21e: 0xe1,
|
|
1432
|
-
_0x76e0ba: 0x142,
|
|
1433
|
-
_0x47addc: 0x10e,
|
|
1434
|
-
_0x3780da: 0x172
|
|
1435
|
-
}, _0x546416 = _0x77ce4b, _0x2c4b09 = _0x588a54['channels'][_0x546416(_0x15992f._0x343599)] > 0x0 ? _0x588a54[_0x546416(0xbc)]['map'](_0x4d703c => _0x4d703c['description'] ? _0x546416(0x109) + _0x4d703c['name'] + '\x20—\x20' + _0x4d703c['description'] : '-\x20#' + _0x4d703c[_0x546416(0x145)])[_0x546416(0x172)]('\x0a') : '(none)', _0x2604c8 = _0x588a54[_0x546416(0x1b3)][_0x546416(_0x15992f._0x343599)] > 0x0 ? _0x588a54[_0x546416(_0x15992f._0x3e6632)][_0x546416(_0x15992f._0x2ddec2)](_0x309e4b => _0x546416(0x220) + _0x309e4b['name'])[_0x546416(0x172)]('\x0a') : _0x546416(0xe1), _0x24290e = _0x588a54[_0x546416(0x22c)][_0x546416(_0x15992f._0x56325c)] > 0x0 ? _0x588a54[_0x546416(_0x15992f._0x575f7b)][_0x546416(0xf7)](_0x2e08ea => '-\x20@' + _0x2e08ea[_0x546416(0x145)])[_0x546416(0x172)]('\x0a') : _0x546416(_0x15992f._0x44b21e);
|
|
1436
|
-
return [
|
|
1437
|
-
'##\x20Server:\x20' + _0x588a54[_0x546416(0x18f)],
|
|
1438
|
-
'',
|
|
1439
|
-
_0x546416(_0x15992f._0x76e0ba),
|
|
1440
|
-
_0x2c4b09,
|
|
1441
|
-
'',
|
|
1442
|
-
_0x546416(_0x15992f._0x47addc),
|
|
1443
|
-
_0x2604c8,
|
|
1444
|
-
'',
|
|
1445
|
-
_0x546416(0x219),
|
|
1446
|
-
_0x24290e
|
|
1447
|
-
][_0x546416(_0x15992f._0x3780da)]('\x0a');
|
|
1468
|
+
function formatViewFileResult(_0x25412c, _0x3c4d58) {
|
|
1469
|
+
return _0x3c4d58 ? 'File\x20already\x20cached\x20at:\x20' + _0x25412c : 'Downloaded\x20to:\x20' + _0x25412c;
|
|
1448
1470
|
}
|
|
1449
|
-
function
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1471
|
+
function formatTaskList(_0x50a743, _0xb6065b) {
|
|
1472
|
+
const _0x3881ea = {
|
|
1473
|
+
_0x237287: 0xa9,
|
|
1474
|
+
_0xa4f968: 0x10c
|
|
1475
|
+
}, _0x25fa1f = {
|
|
1476
|
+
_0x4f8515: 0x104,
|
|
1477
|
+
_0x2d3e00: 0x104,
|
|
1478
|
+
_0x198c17: 0x1b0,
|
|
1479
|
+
_0x47f872: 0x16c,
|
|
1480
|
+
_0x5f102a: 0x10b,
|
|
1481
|
+
_0x31f575: 0x101,
|
|
1482
|
+
_0x1b90c0: 0xbf
|
|
1483
|
+
}, _0x340337 = _0x2858e8;
|
|
1484
|
+
if (_0x50a743[_0x340337(_0x3881ea._0x237287)] === 0x0)
|
|
1485
|
+
return _0x340337(_0x3881ea._0xa4f968);
|
|
1486
|
+
return _0x50a743[_0x340337(0x158)](_0x514c4a => {
|
|
1487
|
+
const _0x1ea215 = _0x340337, _0x1ed378 = _0x514c4a['taskNumber'] == null ? '(legacy)' : _0x514c4a[_0x1ea215(0x131)] != null ? '#' + _0x514c4a[_0x1ea215(_0x25fa1f._0x4f8515)] + '.' + _0x514c4a['subtaskNumber'] : '#' + _0x514c4a[_0x1ea215(_0x25fa1f._0x2d3e00)], _0x5078ea = _0x514c4a[_0x1ea215(0xff)] ? '\x20message=' + _0x514c4a['messageId'] : '', _0x55c88d = _0xb6065b && _0x514c4a['taskNumber'] != null && !_0x514c4a[_0x1ea215(0x131)] && _0xb6065b[_0x1ea215(0x1d9)](_0x514c4a[_0x1ea215(_0x25fa1f._0x2d3e00)]) ? _0x1ea215(_0x25fa1f._0x198c17) : '', _0x469a1e = _0x514c4a[_0x1ea215(_0x25fa1f._0x47f872)] != null && _0x514c4a[_0x1ea215(_0x25fa1f._0x47f872)] > 0x0 ? '\x20(' + (_0x514c4a[_0x1ea215(_0x25fa1f._0x5f102a)] ?? 0x0) + '/' + _0x514c4a[_0x1ea215(0x16c)] + _0x1ea215(_0x25fa1f._0x31f575) : '';
|
|
1488
|
+
return _0x1ed378 + '\x20[' + _0x514c4a[_0x1ea215(_0x25fa1f._0x1b90c0)] + ']\x20' + _0x514c4a[_0x1ea215(0x192)] + _0x469a1e + _0x5078ea + _0x55c88d;
|
|
1489
|
+
})[_0x340337(0x6f)]('\x0a');
|
|
1458
1490
|
}
|
|
1459
|
-
function
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1491
|
+
function formatCreatedTasks(_0x35f0d9) {
|
|
1492
|
+
const _0x29bb33 = {
|
|
1493
|
+
_0x505c3a: 0x104,
|
|
1494
|
+
_0x40e7a4: 0x19f,
|
|
1495
|
+
_0x2a8df1: 0x104,
|
|
1496
|
+
_0x54cbc8: 0xff
|
|
1497
|
+
}, _0x19d987 = _0x2858e8;
|
|
1498
|
+
if (_0x35f0d9['length'] === 0x0)
|
|
1499
|
+
return _0x19d987(0x12f);
|
|
1500
|
+
return _0x35f0d9['map'](_0x3a179b => {
|
|
1501
|
+
const _0x3802db = _0x19d987, _0x3bee6b = _0x3a179b[_0x3802db(_0x29bb33._0x505c3a)] == null ? _0x3802db(_0x29bb33._0x40e7a4) : _0x3a179b[_0x3802db(0x131)] != null ? '#' + _0x3a179b[_0x3802db(_0x29bb33._0x2a8df1)] + '.' + _0x3a179b['subtaskNumber'] : '#' + _0x3a179b[_0x3802db(_0x29bb33._0x2a8df1)], _0x504d24 = _0x3a179b[_0x3802db(_0x29bb33._0x54cbc8)] ? '\x20message=' + _0x3a179b[_0x3802db(0xff)] : '';
|
|
1502
|
+
return _0x3bee6b + '\x20' + _0x3a179b['title'] + _0x504d24;
|
|
1503
|
+
})[_0x19d987(0x6f)]('\x0a');
|
|
1462
1504
|
}
|
|
1463
|
-
function
|
|
1464
|
-
|
|
1465
|
-
const
|
|
1466
|
-
let
|
|
1467
|
-
if (
|
|
1468
|
-
var
|
|
1469
|
-
const
|
|
1470
|
-
let
|
|
1471
|
-
for (let
|
|
1472
|
-
|
|
1505
|
+
function _0x2672(_0x35318c, _0x59ae4d) {
|
|
1506
|
+
_0x35318c = _0x35318c - 0x69;
|
|
1507
|
+
const _0x184fc4 = _0x184f();
|
|
1508
|
+
let _0x267270 = _0x184fc4[_0x35318c];
|
|
1509
|
+
if (_0x2672['BlGswy'] === undefined) {
|
|
1510
|
+
var _0x3fdf9e = function (_0x29d129) {
|
|
1511
|
+
const _0x17a733 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1512
|
+
let _0x51d1ec = '', _0x40ba2e = '';
|
|
1513
|
+
for (let _0xf77313 = 0x0, _0x49d460, _0x2c3f4d, _0x333177 = 0x0; _0x2c3f4d = _0x29d129['charAt'](_0x333177++); ~_0x2c3f4d && (_0x49d460 = _0xf77313 % 0x4 ? _0x49d460 * 0x40 + _0x2c3f4d : _0x2c3f4d, _0xf77313++ % 0x4) ? _0x51d1ec += String['fromCharCode'](0xff & _0x49d460 >> (-0x2 * _0xf77313 & 0x6)) : 0x0) {
|
|
1514
|
+
_0x2c3f4d = _0x17a733['indexOf'](_0x2c3f4d);
|
|
1473
1515
|
}
|
|
1474
|
-
for (let
|
|
1475
|
-
|
|
1516
|
+
for (let _0x3a393b = 0x0, _0x33b61f = _0x51d1ec['length']; _0x3a393b < _0x33b61f; _0x3a393b++) {
|
|
1517
|
+
_0x40ba2e += '%' + ('00' + _0x51d1ec['charCodeAt'](_0x3a393b)['toString'](0x10))['slice'](-0x2);
|
|
1476
1518
|
}
|
|
1477
|
-
return decodeURIComponent(
|
|
1519
|
+
return decodeURIComponent(_0x40ba2e);
|
|
1478
1520
|
};
|
|
1479
|
-
|
|
1521
|
+
_0x2672['bXsaiU'] = _0x3fdf9e, _0x2672['sendRT'] = {}, _0x2672['BlGswy'] = !![];
|
|
1480
1522
|
}
|
|
1481
|
-
const
|
|
1482
|
-
return !
|
|
1523
|
+
const _0x3cd41b = _0x184fc4[0x0], _0x8975ce = _0x35318c + _0x3cd41b, _0xf9e0bf = _0x2672['sendRT'][_0x8975ce];
|
|
1524
|
+
return !_0xf9e0bf ? (_0x267270 = _0x2672['bXsaiU'](_0x267270), _0x2672['sendRT'][_0x8975ce] = _0x267270) : _0x267270 = _0xf9e0bf, _0x267270;
|
|
1483
1525
|
}
|
|
1484
|
-
function
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
})[_0x241e1b(_0x2af328._0x2fe035)]('\x0a');
|
|
1505
|
-
}
|
|
1506
|
-
function formatClaimTaskResults(_0xf98e3b) {
|
|
1507
|
-
const _0x56e7e2 = {
|
|
1508
|
-
_0x668dc6: 0x146,
|
|
1509
|
-
_0x17a08e: 0x172
|
|
1510
|
-
}, _0x338681 = {
|
|
1511
|
-
_0x2c7a6e: 0x21b,
|
|
1512
|
-
_0x3d9a1e: 0x156,
|
|
1513
|
-
_0x1560bd: 0xda,
|
|
1514
|
-
_0x5d1546: 0x15e,
|
|
1515
|
-
_0x484a9e: 0x121,
|
|
1516
|
-
_0x2b6876: 0x136,
|
|
1517
|
-
_0x2b874f: 0x1ab,
|
|
1518
|
-
_0x1369d1: 0x246,
|
|
1519
|
-
_0x2f4274: 0xe6,
|
|
1520
|
-
_0x17990c: 0x144,
|
|
1521
|
-
_0x209746: 0x1ce,
|
|
1522
|
-
_0x3358ae: 0x17f,
|
|
1523
|
-
_0xa47efb: 0xbd,
|
|
1524
|
-
_0x81ba70: 0x1d7
|
|
1525
|
-
}, _0x5980d6 = _0x77ce4b;
|
|
1526
|
-
if (_0xf98e3b[_0x5980d6(_0x56e7e2._0x668dc6)] === 0x0)
|
|
1526
|
+
function formatClaimTaskResults(_0x171888) {
|
|
1527
|
+
const _0x40211a = {
|
|
1528
|
+
_0x443a1a: 0xa9,
|
|
1529
|
+
_0x2c290b: 0x158
|
|
1530
|
+
}, _0x5dd231 = {
|
|
1531
|
+
_0x365c6e: 0x186,
|
|
1532
|
+
_0x5d532c: 0x104,
|
|
1533
|
+
_0x1b5636: 0xff,
|
|
1534
|
+
_0x29d564: 0xfd,
|
|
1535
|
+
_0x4d5c22: 0x1de,
|
|
1536
|
+
_0x16d988: 0x76,
|
|
1537
|
+
_0x75608: 0x18d,
|
|
1538
|
+
_0x2eafff: 0x1ee,
|
|
1539
|
+
_0x50f5ef: 0x14c,
|
|
1540
|
+
_0x152274: 0x193,
|
|
1541
|
+
_0x38e61e: 0x14e,
|
|
1542
|
+
_0x598bab: 0x104,
|
|
1543
|
+
_0xf25386: 0x1cb
|
|
1544
|
+
}, _0x4e7f78 = _0x2858e8;
|
|
1545
|
+
if (_0x171888[_0x4e7f78(_0x40211a._0x443a1a)] === 0x0)
|
|
1527
1546
|
return 'No\x20tasks\x20claimed.';
|
|
1528
|
-
return
|
|
1529
|
-
const
|
|
1530
|
-
if (
|
|
1531
|
-
const
|
|
1532
|
-
if (
|
|
1533
|
-
const
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
][
|
|
1540
|
-
return
|
|
1547
|
+
return _0x171888[_0x4e7f78(_0x40211a._0x2c290b)](_0x192584 => {
|
|
1548
|
+
const _0x2d19ed = _0x4e7f78;
|
|
1549
|
+
if (_0x192584[_0x2d19ed(_0x5dd231._0x365c6e)]) {
|
|
1550
|
+
const _0x3a18d3 = _0x192584['taskNumber'] == null ? _0x2d19ed(0x19f) : _0x192584[_0x2d19ed(0x131)] != null ? '#' + _0x192584[_0x2d19ed(_0x5dd231._0x5d532c)] + '.' + _0x192584['subtaskNumber'] : '#' + _0x192584[_0x2d19ed(0x104)], _0x462927 = _0x192584[_0x2d19ed(_0x5dd231._0x1b5636)] ? _0x2d19ed(0x141) + _0x192584[_0x2d19ed(_0x5dd231._0x1b5636)] : '';
|
|
1551
|
+
if (_0x192584[_0x2d19ed(_0x5dd231._0x29d564)]) {
|
|
1552
|
+
const _0x41e64f = [
|
|
1553
|
+
_0x2d19ed(_0x5dd231._0x4d5c22),
|
|
1554
|
+
_0x192584[_0x2d19ed(_0x5dd231._0x16d988)] ? _0x2d19ed(_0x5dd231._0x75608) : null,
|
|
1555
|
+
_0x192584[_0x2d19ed(_0x5dd231._0x2eafff)] ? 'executionMode=' + _0x192584[_0x2d19ed(0x1ee)] : null,
|
|
1556
|
+
_0x192584[_0x2d19ed(0x1ae)] ? 'threadTarget=' + _0x192584[_0x2d19ed(0x1ae)] : null,
|
|
1557
|
+
_0x192584[_0x2d19ed(0x16a)] ? 'workerDisposition=' + _0x192584['workerDisposition'] : null
|
|
1558
|
+
][_0x2d19ed(_0x5dd231._0x50f5ef)](Boolean)[_0x2d19ed(0x6f)]('\x20');
|
|
1559
|
+
return _0x3a18d3 + _0x2d19ed(0x115) + _0x462927 + '\x20' + _0x41e64f + _0x2d19ed(_0x5dd231._0x152274);
|
|
1541
1560
|
}
|
|
1542
|
-
const
|
|
1543
|
-
return
|
|
1561
|
+
const _0x476217 = _0x192584['workerHandoffError'] ? _0x2d19ed(_0x5dd231._0x38e61e) + _0x192584['workerHandoffError'] : '';
|
|
1562
|
+
return _0x3a18d3 + _0x2d19ed(0x115) + _0x462927 + _0x476217;
|
|
1544
1563
|
}
|
|
1545
|
-
const
|
|
1546
|
-
return
|
|
1547
|
-
})[
|
|
1564
|
+
const _0x51d3a9 = _0x192584['taskNumber'] == null ? _0x192584['messageId'] ?? _0x2d19ed(0x6d) : '#' + _0x192584[_0x2d19ed(_0x5dd231._0x598bab)];
|
|
1565
|
+
return _0x51d3a9 + _0x2d19ed(0x15a) + (_0x192584[_0x2d19ed(0x93)] ?? _0x2d19ed(_0x5dd231._0xf25386));
|
|
1566
|
+
})[_0x4e7f78(0x6f)]('\x0a');
|
|
1548
1567
|
}
|
|
1549
|
-
function formatUnclaimTaskResult(
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1568
|
+
function formatUnclaimTaskResult(_0x5b51ae) {
|
|
1569
|
+
const _0x240de0 = {
|
|
1570
|
+
_0x582998: 0x19f,
|
|
1571
|
+
_0x256b15: 0x104,
|
|
1572
|
+
_0xaa089d: 0x131,
|
|
1573
|
+
_0x199c85: 0x104
|
|
1574
|
+
}, _0x13ebfb = _0x2858e8, _0x40435d = _0x5b51ae[_0x13ebfb(0x104)] == null ? _0x13ebfb(_0x240de0._0x582998) : _0x5b51ae['subtaskNumber'] != null ? '#' + _0x5b51ae[_0x13ebfb(_0x240de0._0x256b15)] + '.' + _0x5b51ae[_0x13ebfb(_0x240de0._0xaa089d)] : '#' + _0x5b51ae[_0x13ebfb(_0x240de0._0x199c85)];
|
|
1575
|
+
return _0x40435d + _0x13ebfb(0x169) + _0x5b51ae[_0x13ebfb(0xbf)];
|
|
1555
1576
|
}
|
|
1556
|
-
function formatUpdateTaskStatusResult(
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
return _0x224e74 + '\x20status=' + _0x2c672b['status'];
|
|
1577
|
+
function formatUpdateTaskStatusResult(_0x18014a) {
|
|
1578
|
+
const _0x31f01f = {
|
|
1579
|
+
_0x5ac162: 0x104,
|
|
1580
|
+
_0x49ac2f: 0x169
|
|
1581
|
+
}, _0x2c4009 = _0x2858e8, _0x352deb = _0x18014a[_0x2c4009(_0x31f01f._0x5ac162)] == null ? _0x2c4009(0x19f) : _0x18014a[_0x2c4009(0x131)] != null ? '#' + _0x18014a[_0x2c4009(_0x31f01f._0x5ac162)] + '.' + _0x18014a[_0x2c4009(0x131)] : '#' + _0x18014a[_0x2c4009(0x104)];
|
|
1582
|
+
return _0x352deb + _0x2c4009(_0x31f01f._0x49ac2f) + _0x18014a[_0x2c4009(0xbf)];
|
|
1563
1583
|
}
|
|
1564
1584
|
function getChatBridgeToolDefinitions() {
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
_0x2b52e9: 0x1d0
|
|
1572
|
-
}, _0x344d5d = _0x77ce4b;
|
|
1585
|
+
const _0x19610e = {
|
|
1586
|
+
_0x43f86f: 0x121,
|
|
1587
|
+
_0x577990: 0x12b,
|
|
1588
|
+
_0x2bdc25: 0xf0,
|
|
1589
|
+
_0x5a8e15: 0x114
|
|
1590
|
+
}, _0x15e746 = _0x2858e8;
|
|
1573
1591
|
return [
|
|
1574
|
-
{ 'name':
|
|
1575
|
-
{ 'name':
|
|
1576
|
-
{ 'name':
|
|
1577
|
-
{ 'name':
|
|
1578
|
-
{ 'name':
|
|
1579
|
-
{ 'name':
|
|
1592
|
+
{ 'name': 'send_message' },
|
|
1593
|
+
{ 'name': _0x15e746(0xef) },
|
|
1594
|
+
{ 'name': _0x15e746(_0x19610e._0x43f86f) },
|
|
1595
|
+
{ 'name': 'list_server' },
|
|
1596
|
+
{ 'name': _0x15e746(0x1b5) },
|
|
1597
|
+
{ 'name': _0x15e746(0x1a7) },
|
|
1580
1598
|
{ 'name': 'list_tasks' },
|
|
1581
|
-
{ 'name':
|
|
1582
|
-
{ 'name':
|
|
1583
|
-
{ 'name':
|
|
1599
|
+
{ 'name': _0x15e746(_0x19610e._0x577990) },
|
|
1600
|
+
{ 'name': _0x15e746(0xd9) },
|
|
1601
|
+
{ 'name': _0x15e746(_0x19610e._0x2bdc25) },
|
|
1584
1602
|
{ 'name': 'update_task_status' },
|
|
1585
|
-
{ 'name':
|
|
1586
|
-
{ 'name':
|
|
1587
|
-
{ 'name':
|
|
1588
|
-
{ 'name':
|
|
1603
|
+
{ 'name': 'get_worker_status' },
|
|
1604
|
+
{ 'name': _0x15e746(0x1be) },
|
|
1605
|
+
{ 'name': _0x15e746(0xa0) },
|
|
1606
|
+
{ 'name': _0x15e746(_0x19610e._0x5a8e15) }
|
|
1589
1607
|
];
|
|
1590
1608
|
}
|
|
1591
|
-
function createChatBridgeHandlers(
|
|
1592
|
-
const
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
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
|
-
_0x248270: 0x201,
|
|
1711
|
-
_0x2f20cb: 0x12b,
|
|
1712
|
-
_0x2be5d3: 0xef,
|
|
1713
|
-
_0x3b4e8f: 0x19e,
|
|
1714
|
-
_0x31e2ec: 0x14d,
|
|
1715
|
-
_0x4b11a2: 0x104,
|
|
1716
|
-
_0x14228a: 0x1f2,
|
|
1717
|
-
_0x435d06: 0x115
|
|
1718
|
-
}, _0x5acba3 = {
|
|
1719
|
-
_0xbdb81a: 0x178,
|
|
1720
|
-
_0x292681: 0x15a
|
|
1721
|
-
}, _0x3727a4 = _0x77ce4b;
|
|
1722
|
-
function _0x5af70d(_0x29f296, _0x7fe21b) {
|
|
1723
|
-
const _0x119c97 = _0x4210;
|
|
1724
|
-
if (!_0x1423f4[_0x119c97(0x14a)])
|
|
1609
|
+
function createChatBridgeHandlers(_0xb1d75b) {
|
|
1610
|
+
const _0x2b3d9b = { _0x226568: 0xec }, _0x159937 = {
|
|
1611
|
+
_0x2f6b42: 0x93,
|
|
1612
|
+
_0x1dc7d7: 0x173,
|
|
1613
|
+
_0x34a68e: 0xf5
|
|
1614
|
+
}, _0x210fcc = {
|
|
1615
|
+
_0x23f45f: 0xc0,
|
|
1616
|
+
_0x1d7207: 0x1c0,
|
|
1617
|
+
_0xcdea1e: 0xd7,
|
|
1618
|
+
_0x44a69d: 0xee,
|
|
1619
|
+
_0x168797: 0x1bc,
|
|
1620
|
+
_0x44f0be: 0x16f,
|
|
1621
|
+
_0x6836cc: 0x11d
|
|
1622
|
+
}, _0x3b6e68 = {
|
|
1623
|
+
_0x465402: 0xcd,
|
|
1624
|
+
_0x16d1c7: 0x14d,
|
|
1625
|
+
_0x4bb120: 0xee,
|
|
1626
|
+
_0x4e984f: 0x136,
|
|
1627
|
+
_0x3430c0: 0x16f,
|
|
1628
|
+
_0x509b7c: 0xaa
|
|
1629
|
+
}, _0x3dc9c8 = {
|
|
1630
|
+
_0x5d68b3: 0xcd,
|
|
1631
|
+
_0x1fe1e6: 0xcd,
|
|
1632
|
+
_0x5eb0be: 0xa2,
|
|
1633
|
+
_0x1968b3: 0xee,
|
|
1634
|
+
_0x46ed8d: 0xbf
|
|
1635
|
+
}, _0x2592cb = {
|
|
1636
|
+
_0x50ce9c: 0x19c,
|
|
1637
|
+
_0x25de60: 0x196,
|
|
1638
|
+
_0x1642e0: 0x157,
|
|
1639
|
+
_0xd78a68: 0x6e
|
|
1640
|
+
}, _0x348b74 = {
|
|
1641
|
+
_0x28588d: 0x111,
|
|
1642
|
+
_0x40d870: 0xa5
|
|
1643
|
+
}, _0x727c9c = {
|
|
1644
|
+
_0x156d90: 0xb6,
|
|
1645
|
+
_0x4635c2: 0x11f
|
|
1646
|
+
}, _0x25dbfa = {
|
|
1647
|
+
_0x24ae81: 0xd9,
|
|
1648
|
+
_0x1b7ff0: 0x11f,
|
|
1649
|
+
_0x2c375e: 0x7a,
|
|
1650
|
+
_0x42f346: 0x18f,
|
|
1651
|
+
_0x3fadff: 0xa9,
|
|
1652
|
+
_0x5dc92a: 0x1aa,
|
|
1653
|
+
_0x33abc8: 0x158
|
|
1654
|
+
}, _0x110cda = {
|
|
1655
|
+
_0x1cd347: 0xff,
|
|
1656
|
+
_0x5a1c88: 0x140
|
|
1657
|
+
}, _0x13a4ff = { _0x5c9c7b: 0xb1 }, _0x3a702e = {
|
|
1658
|
+
_0x26f3f7: 0x11f,
|
|
1659
|
+
_0x25b11d: 0x89,
|
|
1660
|
+
_0x4c3617: 0x17f,
|
|
1661
|
+
_0x42a641: 0x10d,
|
|
1662
|
+
_0x465c55: 0x1e9,
|
|
1663
|
+
_0x248a66: 0x104,
|
|
1664
|
+
_0x272075: 0xea,
|
|
1665
|
+
_0x347baf: 0x1e9
|
|
1666
|
+
}, _0x3306a9 = { _0x2311af: 0x1d2 }, _0x4f5b50 = {
|
|
1667
|
+
_0x8fbeef: 0x1ac,
|
|
1668
|
+
_0x365cd5: 0x135,
|
|
1669
|
+
_0x2251f4: 0xb6,
|
|
1670
|
+
_0x274bc5: 0xcf
|
|
1671
|
+
}, _0x332005 = {
|
|
1672
|
+
_0x5913b3: 0x183,
|
|
1673
|
+
_0xbb9f37: 0xcd,
|
|
1674
|
+
_0x447c31: 0x1ac,
|
|
1675
|
+
_0x4a05ec: 0x18b,
|
|
1676
|
+
_0x32f1c1: 0x6b,
|
|
1677
|
+
_0x1ae7a5: 0x99,
|
|
1678
|
+
_0x1067c5: 0x1a9,
|
|
1679
|
+
_0x43482d: 0x1bf,
|
|
1680
|
+
_0x23e11c: 0x175,
|
|
1681
|
+
_0x8e9c35: 0xc2,
|
|
1682
|
+
_0x4718e5: 0x11e,
|
|
1683
|
+
_0x3409cc: 0x1b2,
|
|
1684
|
+
_0x1d0e2f: 0x8b,
|
|
1685
|
+
_0xbc464a: 0x6f,
|
|
1686
|
+
_0x4ae041: 0x1ed,
|
|
1687
|
+
_0x456e68: 0x9c,
|
|
1688
|
+
_0x2dbcac: 0x1b6,
|
|
1689
|
+
_0x879e6b: 0xe6,
|
|
1690
|
+
_0x407cd3: 0x90,
|
|
1691
|
+
_0x5365d1: 0x154,
|
|
1692
|
+
_0x2d93b2: 0x1d1,
|
|
1693
|
+
_0x242e61: 0x127,
|
|
1694
|
+
_0x5aa738: 0x145,
|
|
1695
|
+
_0x784038: 0xff
|
|
1696
|
+
}, _0x2e7427 = {
|
|
1697
|
+
_0x2e9431: 0xb6,
|
|
1698
|
+
_0x343819: 0xcd,
|
|
1699
|
+
_0x279585: 0xc0,
|
|
1700
|
+
_0x276eb0: 0x17f
|
|
1701
|
+
}, _0x3db104 = {
|
|
1702
|
+
_0x37da76: 0xb6,
|
|
1703
|
+
_0x202488: 0x133,
|
|
1704
|
+
_0x14bbdc: 0x89,
|
|
1705
|
+
_0x2be1e9: 0x1db,
|
|
1706
|
+
_0x584f9f: 0x125
|
|
1707
|
+
}, _0x255eed = {
|
|
1708
|
+
_0x20d4a1: 0x11f,
|
|
1709
|
+
_0x45100d: 0x99,
|
|
1710
|
+
_0x2ada74: 0x1ac,
|
|
1711
|
+
_0x27ef88: 0x10d,
|
|
1712
|
+
_0x4f8b20: 0x104,
|
|
1713
|
+
_0x23432f: 0xff,
|
|
1714
|
+
_0x56c9f0: 0x6f,
|
|
1715
|
+
_0x3e5479: 0xcd,
|
|
1716
|
+
_0x3c082c: 0xd7,
|
|
1717
|
+
_0x2ffe17: 0x190,
|
|
1718
|
+
_0x3c4281: 0x154,
|
|
1719
|
+
_0x56d441: 0x13b
|
|
1720
|
+
}, _0x151e7b = {
|
|
1721
|
+
_0x36a790: 0xb6,
|
|
1722
|
+
_0x17f279: 0x187,
|
|
1723
|
+
_0x542364: 0xd0
|
|
1724
|
+
}, _0x431546 = _0x2858e8;
|
|
1725
|
+
function _0x1d5eca(_0x48f67a, _0x1852b5) {
|
|
1726
|
+
const _0x5a5b1f = _0x2672;
|
|
1727
|
+
if (!_0xb1d75b[_0x5a5b1f(_0x151e7b._0x36a790)])
|
|
1725
1728
|
return;
|
|
1726
|
-
if (!
|
|
1727
|
-
throw new Error(
|
|
1728
|
-
if (
|
|
1729
|
-
throw new Error(
|
|
1729
|
+
if (!_0xb1d75b[_0x5a5b1f(0xd0)])
|
|
1730
|
+
throw new Error(_0x48f67a + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
|
|
1731
|
+
if (_0x1852b5 !== _0xb1d75b[_0x5a5b1f(0xd0)])
|
|
1732
|
+
throw new Error(_0x48f67a + _0x5a5b1f(_0x151e7b._0x17f279) + _0xb1d75b[_0x5a5b1f(_0x151e7b._0x542364)] + ');\x20got\x20channel=' + _0x1852b5);
|
|
1730
1733
|
}
|
|
1731
|
-
async function
|
|
1732
|
-
const
|
|
1733
|
-
if (!
|
|
1734
|
+
async function _0x53aea(_0x4b7880) {
|
|
1735
|
+
const _0x5b2b8c = _0x2672;
|
|
1736
|
+
if (!_0xb1d75b['daemonLocalUrl'] || !_0xb1d75b[_0x5b2b8c(0xc0)] || _0xb1d75b[_0x5b2b8c(0xb6)] || _0xb1d75b['workerModeEnabled'] !== !![])
|
|
1734
1737
|
return null;
|
|
1735
|
-
const
|
|
1736
|
-
if (
|
|
1738
|
+
const _0x17e320 = parseTarget(_0x4b7880[_0x5b2b8c(_0x255eed._0x20d4a1)]);
|
|
1739
|
+
if (_0x17e320[_0x5b2b8c(0x1d3)] !== _0x5b2b8c(_0x255eed._0x20d4a1))
|
|
1737
1740
|
return null;
|
|
1738
|
-
const
|
|
1739
|
-
let
|
|
1741
|
+
const _0x548a4d = _0x4b7880[_0x5b2b8c(_0x255eed._0x45100d)] != null ? _0x17e320[_0x5b2b8c(0x1d8)] + ':t' + _0x4b7880[_0x5b2b8c(_0x255eed._0x45100d)] : _0x17e320[_0x5b2b8c(0x1d8)] + ':' + _0x4b7880['messageId'];
|
|
1742
|
+
let _0x3a8625;
|
|
1740
1743
|
try {
|
|
1741
|
-
const
|
|
1742
|
-
'channel':
|
|
1744
|
+
const _0x3e227f = await _0xb1d75b[_0x5b2b8c(_0x255eed._0x2ada74)]['readHistory']({
|
|
1745
|
+
'channel': _0x548a4d,
|
|
1743
1746
|
'limit': 0x14
|
|
1744
1747
|
});
|
|
1745
|
-
|
|
1748
|
+
_0x3a8625 = _0x3e227f['messages'][_0x5b2b8c(_0x255eed._0x27ef88)](_0x18041a => _0x18041a[_0x5b2b8c(0xff)] === _0x4b7880[_0x5b2b8c(0xff)]);
|
|
1746
1749
|
} catch {
|
|
1747
|
-
|
|
1750
|
+
_0x3a8625 = void 0x0;
|
|
1748
1751
|
}
|
|
1749
|
-
const
|
|
1750
|
-
|
|
1752
|
+
const _0x4bcb4f = _0x4b7880[_0x5b2b8c(_0x255eed._0x4f8b20)] == null ? _0x5b2b8c(0x19f) : '#' + _0x4b7880[_0x5b2b8c(_0x255eed._0x4f8b20)], _0x2b70f6 = [
|
|
1753
|
+
_0x5b2b8c(0xb9) + _0x548a4d + _0x5b2b8c(0x1c1) + _0x4b7880[_0x5b2b8c(_0x255eed._0x23432f)]['slice'](0x0, 0x8) + _0x5b2b8c(0x1a4) + new Date()['toISOString']() + _0x5b2b8c(0xda) + _0x4bcb4f + '\x20已切换到\x20worker\x20执行',
|
|
1751
1754
|
'',
|
|
1752
|
-
|
|
1755
|
+
_0x3a8625 ? _0x5b2b8c(0x9b) + _0x3a8625['content'] : 'Root\x20task\x20message\x20id:\x20' + _0x4b7880[_0x5b2b8c(0xff)],
|
|
1753
1756
|
'',
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
][
|
|
1757
|
-
'method':
|
|
1758
|
-
'headers': { 'Content-Type':
|
|
1759
|
-
'body': JSON[
|
|
1760
|
-
'agent_id':
|
|
1761
|
-
'thread_target':
|
|
1757
|
+
'Thread\x20target:\x20' + _0x548a4d,
|
|
1758
|
+
_0x5b2b8c(0x1ea)
|
|
1759
|
+
][_0x5b2b8c(_0x255eed._0x56c9f0)]('\x0a'), _0x4cf9c4 = await fetch(_0xb1d75b[_0x5b2b8c(_0x255eed._0x3e5479)] + '/workers/deliver', {
|
|
1760
|
+
'method': 'POST',
|
|
1761
|
+
'headers': { 'Content-Type': _0x5b2b8c(_0x255eed._0x3c082c) },
|
|
1762
|
+
'body': JSON[_0x5b2b8c(0x9c)]({
|
|
1763
|
+
'agent_id': _0xb1d75b['agentId'],
|
|
1764
|
+
'thread_target': _0x548a4d,
|
|
1762
1765
|
'spawn_packet': {
|
|
1763
|
-
'replyTarget':
|
|
1764
|
-
...
|
|
1766
|
+
'replyTarget': _0x548a4d,
|
|
1767
|
+
..._0x4b7880[_0x5b2b8c(0x1b6)] ? { 'taskId': _0x4b7880[_0x5b2b8c(0x1b6)] } : _0x4b7880[_0x5b2b8c(0x104)] != null ? { 'taskId': _0x5b2b8c(0xcc) + _0x4b7880[_0x5b2b8c(0x104)] } : {}
|
|
1765
1768
|
},
|
|
1766
1769
|
'payload': {
|
|
1767
|
-
'mode':
|
|
1768
|
-
'text':
|
|
1770
|
+
'mode': 'user',
|
|
1771
|
+
'text': _0x2b70f6
|
|
1769
1772
|
}
|
|
1770
1773
|
})
|
|
1771
|
-
}),
|
|
1772
|
-
if (!
|
|
1773
|
-
throw new Error(
|
|
1774
|
+
}), _0x2ea3d2 = await _0x4cf9c4[_0x5b2b8c(_0x255eed._0x2ffe17)]();
|
|
1775
|
+
if (!_0x2ea3d2['ok'])
|
|
1776
|
+
throw new Error(_0x2ea3d2[_0x5b2b8c(0x1bc)] ?? _0x5b2b8c(0xd1));
|
|
1774
1777
|
return {
|
|
1775
1778
|
'stopMain': !![],
|
|
1776
|
-
'threadTarget':
|
|
1777
|
-
'workerDisposition':
|
|
1779
|
+
'threadTarget': _0x548a4d,
|
|
1780
|
+
'workerDisposition': _0x2ea3d2['disposition'] === _0x5b2b8c(_0x255eed._0x3c4281) ? 'queued' : _0x5b2b8c(0x1d1),
|
|
1778
1781
|
'workerHandoff': !![],
|
|
1779
|
-
'workerSessionId':
|
|
1780
|
-
'executionMode':
|
|
1782
|
+
'workerSessionId': _0x2ea3d2[_0x5b2b8c(_0x255eed._0x56d441)] ?? '',
|
|
1783
|
+
'executionMode': _0x5b2b8c(0x170)
|
|
1781
1784
|
};
|
|
1782
1785
|
}
|
|
1783
|
-
async function
|
|
1784
|
-
const
|
|
1785
|
-
if (!
|
|
1786
|
+
async function _0x94baa8() {
|
|
1787
|
+
const _0x3849a0 = _0x2672;
|
|
1788
|
+
if (!_0xb1d75b[_0x3849a0(0xcd)] || !_0xb1d75b[_0x3849a0(0xc0)] || _0xb1d75b[_0x3849a0(_0x3db104._0x37da76)])
|
|
1786
1789
|
return null;
|
|
1787
1790
|
try {
|
|
1788
|
-
const
|
|
1789
|
-
if (!
|
|
1791
|
+
const _0x107292 = await fetch(_0xb1d75b['daemonLocalUrl'] + _0x3849a0(_0x3db104._0x202488) + encodeURIComponent(_0xb1d75b[_0x3849a0(0xc0)])), _0x4cec78 = await _0x107292['json']();
|
|
1792
|
+
if (!_0x4cec78['ok'])
|
|
1790
1793
|
return null;
|
|
1791
|
-
const
|
|
1792
|
-
for (const
|
|
1793
|
-
|
|
1794
|
+
const _0x3f660c = new Set();
|
|
1795
|
+
for (const _0x100493 of _0x4cec78[_0x3849a0(_0x3db104._0x14bbdc)]) {
|
|
1796
|
+
_0x100493['status'] !== _0x3849a0(_0x3db104._0x2be1e9) && _0x100493['thread_target'] && _0x3f660c['add'](_0x100493[_0x3849a0(0x17f)]);
|
|
1794
1797
|
}
|
|
1795
|
-
return
|
|
1798
|
+
return _0x3f660c[_0x3849a0(_0x3db104._0x584f9f)] > 0x0 ? _0x3f660c : null;
|
|
1796
1799
|
} catch {
|
|
1797
1800
|
return null;
|
|
1798
1801
|
}
|
|
1799
1802
|
}
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1803
|
+
const _0x48f426 = new Set([
|
|
1804
|
+
'running',
|
|
1802
1805
|
'idle',
|
|
1803
|
-
|
|
1806
|
+
_0x431546(_0x2b3d9b._0x226568)
|
|
1804
1807
|
]);
|
|
1805
|
-
async function
|
|
1806
|
-
const
|
|
1807
|
-
if (!
|
|
1808
|
+
async function _0x5ecc3b() {
|
|
1809
|
+
const _0x572626 = _0x431546;
|
|
1810
|
+
if (!_0xb1d75b['daemonLocalUrl'] || !_0xb1d75b[_0x572626(0xc0)] || _0xb1d75b[_0x572626(_0x2e7427._0x2e9431)])
|
|
1808
1811
|
return null;
|
|
1809
1812
|
try {
|
|
1810
|
-
const
|
|
1811
|
-
if (!
|
|
1813
|
+
const _0x1d0152 = await fetch(_0xb1d75b[_0x572626(_0x2e7427._0x343819)] + _0x572626(0x133) + encodeURIComponent(_0xb1d75b[_0x572626(_0x2e7427._0x279585)])), _0x3ba2e8 = await _0x1d0152['json']();
|
|
1814
|
+
if (!_0x3ba2e8['ok'])
|
|
1812
1815
|
return null;
|
|
1813
|
-
const
|
|
1814
|
-
for (const
|
|
1815
|
-
|
|
1816
|
+
const _0x3cbe28 = new Set();
|
|
1817
|
+
for (const _0x414697 of _0x3ba2e8['workers']) {
|
|
1818
|
+
_0x48f426[_0x572626(0x1d9)](_0x414697[_0x572626(0xbf)]) && _0x414697[_0x572626(0x17f)] && _0x3cbe28[_0x572626(0x1e9)](_0x414697[_0x572626(_0x2e7427._0x276eb0)]);
|
|
1816
1819
|
}
|
|
1817
|
-
return
|
|
1820
|
+
return _0x3cbe28[_0x572626(0x125)] > 0x0 ? _0x3cbe28 : null;
|
|
1818
1821
|
} catch {
|
|
1819
1822
|
return null;
|
|
1820
1823
|
}
|
|
1821
1824
|
}
|
|
1822
1825
|
return {
|
|
1823
|
-
async 'send_message'(
|
|
1824
|
-
const
|
|
1825
|
-
if (!
|
|
1826
|
-
const
|
|
1827
|
-
if (
|
|
1828
|
-
const
|
|
1829
|
-
if (
|
|
1826
|
+
async 'send_message'(_0x4736ac) {
|
|
1827
|
+
const _0x39be66 = _0x431546;
|
|
1828
|
+
if (!_0xb1d75b['workerMode'] && _0xb1d75b[_0x39be66(_0x332005._0x5913b3)] && _0xb1d75b[_0x39be66(_0x332005._0xbb9f37)] && _0xb1d75b[_0x39be66(0xc0)]) {
|
|
1829
|
+
const _0x20c3d7 = await _0xb1d75b[_0x39be66(_0x332005._0x447c31)][_0x39be66(0xf1)](_0x4736ac[_0x39be66(_0x332005._0x4a05ec)]);
|
|
1830
|
+
if (_0x20c3d7['task'] && _0x20c3d7[_0x39be66(_0x332005._0x32f1c1)]) {
|
|
1831
|
+
const _0x7b0893 = _0x20c3d7['task']['taskNumber'] != null ? '#' + _0x20c3d7[_0x39be66(0x8b)][_0x39be66(0x104)] : _0x39be66(0x19f), _0x1f5aa8 = _0x20c3d7[_0x39be66(_0x332005._0x1ae7a5)] != null ? _0x20c3d7[_0x39be66(0x18b)] + ':t' + _0x20c3d7['threadNumber'] : _0x20c3d7[_0x39be66(_0x332005._0x4a05ec)] + ':' + _0x20c3d7[_0x39be66(0x6b)][_0x39be66(_0x332005._0x1067c5)](0x0, 0x8), _0x117dc8 = await _0x5ecc3b();
|
|
1832
|
+
if (_0x117dc8?.['has'](_0x1f5aa8))
|
|
1830
1833
|
return [
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
][
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1834
|
+
_0x39be66(0x153) + _0x7b0893 + _0x39be66(0xe6) + _0x1f5aa8 + _0x39be66(0x160),
|
|
1835
|
+
_0x39be66(0x92)
|
|
1836
|
+
]['join']('\x0a');
|
|
1837
|
+
const _0x2afae5 = [
|
|
1838
|
+
_0x39be66(0xb9) + _0x1f5aa8 + _0x39be66(_0x332005._0x43482d) + new Date()[_0x39be66(_0x332005._0x23e11c)]() + _0x39be66(_0x332005._0x8e9c35),
|
|
1836
1839
|
'',
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
][
|
|
1842
|
-
'method':
|
|
1840
|
+
_0x39be66(_0x332005._0x4718e5) + _0x4736ac[_0x39be66(0x127)],
|
|
1841
|
+
_0x39be66(_0x332005._0x3409cc) + _0x7b0893 + '\x20(' + _0x20c3d7[_0x39be66(_0x332005._0x1d0e2f)][_0x39be66(0x1b6)] + ')',
|
|
1842
|
+
_0x39be66(0x13f) + _0x1f5aa8,
|
|
1843
|
+
_0x39be66(0xde)
|
|
1844
|
+
][_0x39be66(_0x332005._0xbc464a)]('\x0a'), _0x3639a6 = await fetch(_0xb1d75b[_0x39be66(0xcd)] + _0x39be66(0x74), {
|
|
1845
|
+
'method': _0x39be66(_0x332005._0x4ae041),
|
|
1843
1846
|
'headers': { 'Content-Type': 'application/json' },
|
|
1844
|
-
'body': JSON[
|
|
1845
|
-
'agent_id':
|
|
1846
|
-
'thread_target':
|
|
1847
|
+
'body': JSON[_0x39be66(_0x332005._0x456e68)]({
|
|
1848
|
+
'agent_id': _0xb1d75b[_0x39be66(0xc0)],
|
|
1849
|
+
'thread_target': _0x1f5aa8,
|
|
1847
1850
|
'spawn_packet': {
|
|
1848
|
-
'replyTarget':
|
|
1849
|
-
'taskId':
|
|
1851
|
+
'replyTarget': _0x1f5aa8,
|
|
1852
|
+
'taskId': _0x20c3d7[_0x39be66(_0x332005._0x1d0e2f)][_0x39be66(_0x332005._0x2dbcac)]
|
|
1850
1853
|
},
|
|
1851
1854
|
'payload': {
|
|
1852
|
-
'mode':
|
|
1853
|
-
'text':
|
|
1855
|
+
'mode': 'user',
|
|
1856
|
+
'text': _0x2afae5
|
|
1854
1857
|
}
|
|
1855
1858
|
})
|
|
1856
|
-
}),
|
|
1857
|
-
if (!
|
|
1858
|
-
throw new Error(
|
|
1859
|
+
}), _0x57de80 = await _0x3639a6[_0x39be66(0x190)]();
|
|
1860
|
+
if (!_0x57de80['ok'])
|
|
1861
|
+
throw new Error(_0x57de80['error'] ?? _0x39be66(0xac));
|
|
1859
1862
|
return [
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
][
|
|
1863
|
+
_0x39be66(0xc5) + _0x7b0893 + _0x39be66(_0x332005._0x879e6b) + _0x1f5aa8 + _0x39be66(_0x332005._0x407cd3),
|
|
1864
|
+
'Worker\x20' + (_0x57de80['disposition'] === _0x39be66(0x154) ? _0x39be66(_0x332005._0x5365d1) : _0x39be66(_0x332005._0x2d93b2)) + '.',
|
|
1865
|
+
_0x39be66(0x172)
|
|
1866
|
+
][_0x39be66(0x6f)]('\x0a');
|
|
1864
1867
|
}
|
|
1865
1868
|
}
|
|
1866
|
-
const
|
|
1867
|
-
'attachmentIds':
|
|
1868
|
-
'content':
|
|
1869
|
-
'target':
|
|
1870
|
-
'visibility':
|
|
1869
|
+
const _0x56f4f0 = await _0xb1d75b[_0x39be66(_0x332005._0x447c31)][_0x39be66(0x8f)]({
|
|
1870
|
+
'attachmentIds': _0x4736ac['attachment_ids'],
|
|
1871
|
+
'content': _0x4736ac[_0x39be66(_0x332005._0x242e61)],
|
|
1872
|
+
'target': _0x4736ac[_0x39be66(0x18b)],
|
|
1873
|
+
'visibility': _0x4736ac[_0x39be66(0xdc)]
|
|
1871
1874
|
});
|
|
1872
|
-
return
|
|
1875
|
+
return _0x39be66(_0x332005._0x5aa738) + _0x4736ac[_0x39be66(0x18b)] + _0x39be66(0xb4) + _0x56f4f0[_0x39be66(_0x332005._0x784038)];
|
|
1873
1876
|
},
|
|
1874
1877
|
async 'check_messages'() {
|
|
1875
|
-
const
|
|
1876
|
-
if (!
|
|
1877
|
-
const
|
|
1878
|
-
if (
|
|
1879
|
-
return formatCheckMessages(
|
|
1878
|
+
const _0x2de903 = _0x431546, _0x312bbb = await _0xb1d75b[_0x2de903(_0x4f5b50._0x8fbeef)][_0x2de903(_0x4f5b50._0x365cd5)]();
|
|
1879
|
+
if (!_0xb1d75b[_0x2de903(_0x4f5b50._0x2251f4)]) {
|
|
1880
|
+
const _0x38a249 = await _0x94baa8();
|
|
1881
|
+
if (_0x38a249)
|
|
1882
|
+
return formatCheckMessages(_0x312bbb[_0x2de903(_0x4f5b50._0x274bc5)][_0x2de903(0x14c)](_0x965bdc => !_0x38a249[_0x2de903(0x1d9)](_0x965bdc[_0x2de903(0x18b)])));
|
|
1880
1883
|
}
|
|
1881
|
-
return formatCheckMessages(
|
|
1884
|
+
return formatCheckMessages(_0x312bbb[_0x2de903(_0x4f5b50._0x274bc5)]);
|
|
1882
1885
|
},
|
|
1883
|
-
async 'read_history'(
|
|
1884
|
-
const
|
|
1885
|
-
return formatHistory(
|
|
1886
|
+
async 'read_history'(_0x147f38) {
|
|
1887
|
+
const _0x40ff1e = _0x431546, _0x5e2dec = await _0xb1d75b['client'][_0x40ff1e(_0x3306a9._0x2311af)](_0x147f38);
|
|
1888
|
+
return formatHistory(_0x5e2dec);
|
|
1886
1889
|
},
|
|
1887
1890
|
async 'list_server'() {
|
|
1888
|
-
const
|
|
1889
|
-
return formatServerDirectory(
|
|
1891
|
+
const _0x538211 = _0x431546, _0x18ebcb = await _0xb1d75b[_0x538211(0x1ac)][_0x538211(0xfb)]();
|
|
1892
|
+
return formatServerDirectory(_0x18ebcb);
|
|
1890
1893
|
},
|
|
1891
|
-
async 'list_tasks'(
|
|
1892
|
-
const
|
|
1893
|
-
let
|
|
1894
|
-
if (
|
|
1894
|
+
async 'list_tasks'(_0x4c3321) {
|
|
1895
|
+
const _0x5a5128 = _0x431546, _0x3fd216 = await _0xb1d75b['client']['listTasks'](_0x4c3321);
|
|
1896
|
+
let _0x31bdbc;
|
|
1897
|
+
if (_0xb1d75b[_0x5a5128(0xcd)] && _0xb1d75b['agentId'])
|
|
1895
1898
|
try {
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1898
|
-
const
|
|
1899
|
-
|
|
1900
|
-
for (const
|
|
1901
|
-
if (
|
|
1899
|
+
const _0x255bce = await fetch(_0xb1d75b['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0xb1d75b[_0x5a5128(0xc0)])), _0xd2c81 = await _0x255bce[_0x5a5128(0x190)]();
|
|
1900
|
+
if (_0xd2c81['ok']) {
|
|
1901
|
+
const _0x4385aa = _0x4c3321[_0x5a5128(_0x3a702e._0x26f3f7)] + ':';
|
|
1902
|
+
_0x31bdbc = new Set();
|
|
1903
|
+
for (const _0xec6407 of _0xd2c81[_0x5a5128(_0x3a702e._0x25b11d)]) {
|
|
1904
|
+
if (_0xec6407[_0x5a5128(0xbf)] === _0x5a5128(0x1db))
|
|
1902
1905
|
continue;
|
|
1903
|
-
if (
|
|
1904
|
-
const
|
|
1905
|
-
if (
|
|
1906
|
-
|
|
1906
|
+
if (_0xec6407[_0x5a5128(0x17f)]?.[_0x5a5128(0x17e)](_0x4385aa)) {
|
|
1907
|
+
const _0x5d1bed = _0xec6407[_0x5a5128(_0x3a702e._0x4c3617)][_0x5a5128(0x1a9)](_0x4385aa['length']), _0x1649f1 = _0x3fd216['tasks'][_0x5a5128(_0x3a702e._0x42a641)](_0x3ecf67 => _0x3ecf67['messageId']?.['startsWith'](_0x5d1bed) === !![]);
|
|
1908
|
+
if (_0x1649f1?.['taskNumber'] != null) {
|
|
1909
|
+
_0x31bdbc[_0x5a5128(_0x3a702e._0x465c55)](_0x1649f1[_0x5a5128(_0x3a702e._0x248a66)]);
|
|
1907
1910
|
continue;
|
|
1908
1911
|
}
|
|
1909
1912
|
}
|
|
1910
|
-
if (
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1913
|
+
if (_0xec6407[_0x5a5128(_0x3a702e._0x272075)]) {
|
|
1914
|
+
const _0x3a2769 = _0x3fd216['tasks'][_0x5a5128(0x10d)](_0xcc350b => _0xcc350b[_0x5a5128(0x1b6)] === _0xec6407[_0x5a5128(0xea)]);
|
|
1915
|
+
_0x3a2769?.[_0x5a5128(0x104)] != null && _0x31bdbc[_0x5a5128(_0x3a702e._0x347baf)](_0x3a2769[_0x5a5128(0x104)]);
|
|
1913
1916
|
}
|
|
1914
1917
|
}
|
|
1915
1918
|
}
|
|
1916
1919
|
} catch {
|
|
1917
1920
|
}
|
|
1918
|
-
return formatTaskList(
|
|
1921
|
+
return formatTaskList(_0x3fd216[_0x5a5128(0x8a)], _0x31bdbc);
|
|
1919
1922
|
},
|
|
1920
|
-
async 'create_tasks'(
|
|
1921
|
-
const
|
|
1922
|
-
|
|
1923
|
-
const
|
|
1924
|
-
return formatCreatedTasks(
|
|
1923
|
+
async 'create_tasks'(_0x283bd8) {
|
|
1924
|
+
const _0x381467 = _0x431546;
|
|
1925
|
+
_0x1d5eca('create_tasks', _0x283bd8[_0x381467(0x11f)]);
|
|
1926
|
+
const _0x1adbf6 = await _0xb1d75b['client'][_0x381467(_0x13a4ff._0x5c9c7b)](_0x283bd8);
|
|
1927
|
+
return formatCreatedTasks(_0x1adbf6[_0x381467(0x8a)]);
|
|
1925
1928
|
},
|
|
1926
|
-
async 'claim_tasks'(
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
_0x5af70d(_0x40ad70(0x21c), _0x3e35cc['channel']);
|
|
1935
|
-
if (_0x3e35cc[_0x40ad70(0x1f0)] && _0x3e35cc[_0x40ad70(0x1f0)][_0x40ad70(_0x17001a._0x114449)] > 0x0)
|
|
1936
|
-
throw new Error(_0x40ad70(0x1a5));
|
|
1937
|
-
if (!_0x3e35cc['subtask_numbers'] || _0x3e35cc[_0x40ad70(_0x17001a._0x87ebca)]['length'] === 0x0)
|
|
1938
|
-
throw new Error(_0x40ad70(_0x17001a._0x54ce4d));
|
|
1929
|
+
async 'claim_tasks'(_0x106556) {
|
|
1930
|
+
const _0x32753d = _0x431546;
|
|
1931
|
+
if (_0xb1d75b[_0x32753d(0xb6)]) {
|
|
1932
|
+
_0x1d5eca(_0x32753d(_0x25dbfa._0x24ae81), _0x106556[_0x32753d(_0x25dbfa._0x1b7ff0)]);
|
|
1933
|
+
if (_0x106556[_0x32753d(0x7a)] && _0x106556[_0x32753d(_0x25dbfa._0x2c375e)]['length'] > 0x0)
|
|
1934
|
+
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
1935
|
+
if (!_0x106556[_0x32753d(0x18f)] || _0x106556[_0x32753d(_0x25dbfa._0x42f346)][_0x32753d(_0x25dbfa._0x3fadff)] === 0x0)
|
|
1936
|
+
throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
|
|
1939
1937
|
}
|
|
1940
|
-
const
|
|
1941
|
-
const
|
|
1942
|
-
if (!
|
|
1943
|
-
return
|
|
1938
|
+
const _0x4faeeb = await _0xb1d75b[_0x32753d(0x1ac)][_0x32753d(0x1ad)](_0x106556), _0x19c3dc = await Promise[_0x32753d(0x15d)](_0x4faeeb[_0x32753d(_0x25dbfa._0x5dc92a)][_0x32753d(_0x25dbfa._0x33abc8)](async _0x3e5171 => {
|
|
1939
|
+
const _0x543db4 = _0x32753d;
|
|
1940
|
+
if (!_0x3e5171['success'] || !_0x3e5171[_0x543db4(_0x110cda._0x1cd347)])
|
|
1941
|
+
return _0x3e5171;
|
|
1944
1942
|
try {
|
|
1945
|
-
const
|
|
1946
|
-
'channel':
|
|
1947
|
-
'messageId':
|
|
1948
|
-
'taskId':
|
|
1949
|
-
'taskNumber':
|
|
1950
|
-
'threadNumber':
|
|
1943
|
+
const _0x30a3ac = await _0x53aea({
|
|
1944
|
+
'channel': _0x106556[_0x543db4(0x11f)],
|
|
1945
|
+
'messageId': _0x3e5171[_0x543db4(_0x110cda._0x1cd347)],
|
|
1946
|
+
'taskId': _0x3e5171[_0x543db4(0x1b6)],
|
|
1947
|
+
'taskNumber': _0x3e5171[_0x543db4(0x104)],
|
|
1948
|
+
'threadNumber': _0x3e5171[_0x543db4(0x99)]
|
|
1951
1949
|
});
|
|
1952
|
-
return
|
|
1953
|
-
...
|
|
1954
|
-
...
|
|
1955
|
-
} :
|
|
1956
|
-
} catch (
|
|
1950
|
+
return _0x30a3ac ? {
|
|
1951
|
+
..._0x3e5171,
|
|
1952
|
+
..._0x30a3ac
|
|
1953
|
+
} : _0x3e5171;
|
|
1954
|
+
} catch (_0x511dce) {
|
|
1957
1955
|
return {
|
|
1958
|
-
...
|
|
1959
|
-
'workerHandoffError':
|
|
1956
|
+
..._0x3e5171,
|
|
1957
|
+
'workerHandoffError': _0x511dce instanceof Error ? _0x511dce[_0x543db4(_0x110cda._0x5a1c88)] : _0x543db4(0xd1)
|
|
1960
1958
|
};
|
|
1961
1959
|
}
|
|
1962
1960
|
}));
|
|
1963
|
-
return formatClaimTaskResults(
|
|
1961
|
+
return formatClaimTaskResults(_0x19c3dc);
|
|
1964
1962
|
},
|
|
1965
|
-
async 'unclaim_task'(
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
|
|
1969
|
-
if (
|
|
1970
|
-
throw new Error(
|
|
1963
|
+
async 'unclaim_task'(_0x1a29d2) {
|
|
1964
|
+
const _0x10c48d = _0x431546;
|
|
1965
|
+
if (_0xb1d75b[_0x10c48d(_0x727c9c._0x156d90)]) {
|
|
1966
|
+
_0x1d5eca(_0x10c48d(0xf0), _0x1a29d2[_0x10c48d(_0x727c9c._0x4635c2)]);
|
|
1967
|
+
if (_0x1a29d2[_0x10c48d(0x1d0)] == null)
|
|
1968
|
+
throw new Error(_0x10c48d(0x15e));
|
|
1971
1969
|
}
|
|
1972
|
-
const
|
|
1973
|
-
return formatUnclaimTaskResult(
|
|
1970
|
+
const _0x5c3820 = await _0xb1d75b['client']['unclaimTask'](_0x1a29d2);
|
|
1971
|
+
return formatUnclaimTaskResult(_0x5c3820);
|
|
1974
1972
|
},
|
|
1975
|
-
async 'update_task_status'(
|
|
1976
|
-
const
|
|
1977
|
-
|
|
1978
|
-
const
|
|
1979
|
-
return formatUpdateTaskStatusResult(
|
|
1973
|
+
async 'update_task_status'(_0x2718fd) {
|
|
1974
|
+
const _0xd664c2 = _0x431546;
|
|
1975
|
+
_0x1d5eca(_0xd664c2(0x17a), _0x2718fd['channel']);
|
|
1976
|
+
const _0x512a47 = await _0xb1d75b[_0xd664c2(0x1ac)]['updateTaskStatus'](_0x2718fd);
|
|
1977
|
+
return formatUpdateTaskStatusResult(_0x512a47);
|
|
1980
1978
|
},
|
|
1981
|
-
async 'upload_file'(
|
|
1982
|
-
const
|
|
1983
|
-
sizeBytes:
|
|
1984
|
-
...
|
|
1985
|
-
} =
|
|
1986
|
-
'channel':
|
|
1987
|
-
...
|
|
1979
|
+
async 'upload_file'(_0x1e1643) {
|
|
1980
|
+
const _0x1d8b6e = _0x431546, _0x38a2ab = await _0xb1d75b['uploadPreparer'](_0x1e1643[_0x1d8b6e(_0x348b74._0x28588d)]), {
|
|
1981
|
+
sizeBytes: _0xb5b890,
|
|
1982
|
+
..._0x2a98bd
|
|
1983
|
+
} = _0x38a2ab, _0x11377f = await _0xb1d75b['client'][_0x1d8b6e(_0x348b74._0x40d870)]({
|
|
1984
|
+
'channel': _0x1e1643['channel'],
|
|
1985
|
+
..._0x2a98bd
|
|
1988
1986
|
});
|
|
1989
|
-
return formatUploadResult(
|
|
1987
|
+
return formatUploadResult(_0x11377f);
|
|
1990
1988
|
},
|
|
1991
|
-
async 'view_file'(
|
|
1992
|
-
const
|
|
1993
|
-
if (
|
|
1994
|
-
return formatViewFileResult(
|
|
1995
|
-
const
|
|
1996
|
-
'attachmentId':
|
|
1997
|
-
'contentType':
|
|
1998
|
-
'data':
|
|
1999
|
-
'originalFilename':
|
|
1989
|
+
async 'view_file'(_0x163176) {
|
|
1990
|
+
const _0xffc074 = _0x431546, _0x4a5d63 = await _0xb1d75b[_0xffc074(0x1b4)]['findCachedPath'](_0x163176[_0xffc074(_0x2592cb._0x50ce9c)]);
|
|
1991
|
+
if (_0x4a5d63)
|
|
1992
|
+
return formatViewFileResult(_0x4a5d63, !![]);
|
|
1993
|
+
const _0x1501b3 = await _0xb1d75b['client'][_0xffc074(0x182)](_0x163176[_0xffc074(_0x2592cb._0x50ce9c)]), _0x37537e = await _0xb1d75b[_0xffc074(0x1b4)][_0xffc074(0x148)]({
|
|
1994
|
+
'attachmentId': _0x163176[_0xffc074(0x19c)],
|
|
1995
|
+
'contentType': _0x1501b3[_0xffc074(_0x2592cb._0x25de60)],
|
|
1996
|
+
'data': _0x1501b3[_0xffc074(_0x2592cb._0x1642e0)],
|
|
1997
|
+
'originalFilename': _0x1501b3[_0xffc074(_0x2592cb._0xd78a68)]
|
|
2000
1998
|
});
|
|
2001
|
-
return formatViewFileResult(
|
|
1999
|
+
return formatViewFileResult(_0x37537e, ![]);
|
|
2002
2000
|
},
|
|
2003
|
-
async 'get_worker_status'(
|
|
2004
|
-
const
|
|
2005
|
-
if (!
|
|
2006
|
-
return
|
|
2007
|
-
const
|
|
2008
|
-
if (!
|
|
2009
|
-
return
|
|
2010
|
-
return
|
|
2001
|
+
async 'get_worker_status'(_0x29f6ca) {
|
|
2002
|
+
const _0x56470f = _0x431546;
|
|
2003
|
+
if (!_0xb1d75b[_0x56470f(_0x3dc9c8._0x5d68b3)])
|
|
2004
|
+
return _0x56470f(0xc3);
|
|
2005
|
+
const _0x2d2bdf = await fetch(_0xb1d75b[_0x56470f(_0x3dc9c8._0x1fe1e6)] + _0x56470f(_0x3dc9c8._0x5eb0be) + encodeURIComponent(_0x29f6ca[_0x56470f(0xee)])), _0x23d5f5 = await _0x2d2bdf['json']();
|
|
2006
|
+
if (!_0x23d5f5['ok'])
|
|
2007
|
+
return _0x56470f(0x16f) + _0x29f6ca[_0x56470f(_0x3dc9c8._0x1968b3)] + '\x22\x20not\x20found';
|
|
2008
|
+
return 'Worker\x20\x22' + _0x29f6ca[_0x56470f(0xee)] + _0x56470f(0x1df) + _0x23d5f5[_0x56470f(_0x3dc9c8._0x46ed8d)];
|
|
2011
2009
|
},
|
|
2012
|
-
async 'park_worker'(
|
|
2013
|
-
const
|
|
2014
|
-
if (!
|
|
2015
|
-
return
|
|
2016
|
-
const
|
|
2017
|
-
'method': _0x3d758e(0xf4),
|
|
2018
|
-
'headers': { 'Content-Type': _0x3d758e(_0x4313a3._0x26f4ee) },
|
|
2019
|
-
'body': JSON['stringify']({ 'work_key': _0x1543cf[_0x3d758e(0x11e)] })
|
|
2020
|
-
}), _0x17ec14 = await _0x2aea52[_0x3d758e(0x19e)]();
|
|
2021
|
-
if (!_0x17ec14['ok'])
|
|
2022
|
-
throw new Error(_0x17ec14[_0x3d758e(0x14d)] ?? 'park_worker\x20failed');
|
|
2023
|
-
return _0x3d758e(_0x4313a3._0x3ad986) + _0x1543cf[_0x3d758e(_0x4313a3._0x3c13ae)] + _0x3d758e(_0x4313a3._0x282fa5);
|
|
2024
|
-
},
|
|
2025
|
-
async 'mark_waiting_input'(_0xa6987e) {
|
|
2026
|
-
const _0x16b204 = _0x3727a4;
|
|
2027
|
-
if (!_0x1423f4[_0x16b204(_0x1d03c._0x33f496)] || !_0x1423f4[_0x16b204(0x201)])
|
|
2028
|
-
return _0x16b204(_0x1d03c._0x594420);
|
|
2029
|
-
const _0xf7b9fa = await fetch(_0x1423f4[_0x16b204(0x1f4)] + _0x16b204(0x13b), {
|
|
2010
|
+
async 'park_worker'(_0x25f37e) {
|
|
2011
|
+
const _0x1ec42d = _0x431546;
|
|
2012
|
+
if (!_0xb1d75b[_0x1ec42d(_0x3b6e68._0x465402)])
|
|
2013
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2014
|
+
const _0x27dc9a = await fetch(_0xb1d75b[_0x1ec42d(0xcd)] + _0x1ec42d(_0x3b6e68._0x16d1c7), {
|
|
2030
2015
|
'method': 'POST',
|
|
2031
|
-
'headers': { 'Content-Type':
|
|
2032
|
-
'body': JSON[
|
|
2033
|
-
|
|
2034
|
-
|
|
2016
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2017
|
+
'body': JSON[_0x1ec42d(0x9c)]({ 'work_key': _0x25f37e[_0x1ec42d(_0x3b6e68._0x4bb120)] })
|
|
2018
|
+
}), _0x3c75a5 = await _0x27dc9a['json']();
|
|
2019
|
+
if (!_0x3c75a5['ok'])
|
|
2020
|
+
throw new Error(_0x3c75a5[_0x1ec42d(0x1bc)] ?? _0x1ec42d(_0x3b6e68._0x4e984f));
|
|
2021
|
+
return _0x1ec42d(_0x3b6e68._0x3430c0) + _0x25f37e['work_key'] + _0x1ec42d(_0x3b6e68._0x509b7c);
|
|
2022
|
+
},
|
|
2023
|
+
async 'mark_waiting_input'(_0x395f6c) {
|
|
2024
|
+
const _0x6d53a6 = _0x431546;
|
|
2025
|
+
if (!_0xb1d75b['daemonLocalUrl'] || !_0xb1d75b[_0x6d53a6(_0x210fcc._0x23f45f)])
|
|
2026
|
+
return _0x6d53a6(0xbd);
|
|
2027
|
+
const _0x2bb642 = await fetch(_0xb1d75b[_0x6d53a6(0xcd)] + _0x6d53a6(_0x210fcc._0x1d7207), {
|
|
2028
|
+
'method': _0x6d53a6(0x1ed),
|
|
2029
|
+
'headers': { 'Content-Type': _0x6d53a6(_0x210fcc._0xcdea1e) },
|
|
2030
|
+
'body': JSON[_0x6d53a6(0x9c)]({
|
|
2031
|
+
'work_key': _0x395f6c[_0x6d53a6(_0x210fcc._0x44a69d)],
|
|
2032
|
+
'agent_id': _0xb1d75b[_0x6d53a6(_0x210fcc._0x23f45f)]
|
|
2035
2033
|
})
|
|
2036
|
-
}),
|
|
2037
|
-
if (!
|
|
2038
|
-
throw new Error(
|
|
2039
|
-
return
|
|
2034
|
+
}), _0x3faa61 = await _0x2bb642[_0x6d53a6(0x190)]();
|
|
2035
|
+
if (!_0x3faa61['ok'])
|
|
2036
|
+
throw new Error(_0x3faa61[_0x6d53a6(_0x210fcc._0x168797)] ?? 'mark_waiting_input\x20failed');
|
|
2037
|
+
return _0x6d53a6(_0x210fcc._0x44f0be) + _0x395f6c[_0x6d53a6(0xee)] + _0x6d53a6(_0x210fcc._0x6836cc);
|
|
2040
2038
|
},
|
|
2041
|
-
async 'escalate_to_main'(
|
|
2042
|
-
const
|
|
2043
|
-
if (!
|
|
2044
|
-
return
|
|
2045
|
-
const
|
|
2046
|
-
'method':
|
|
2047
|
-
'headers': { 'Content-Type':
|
|
2048
|
-
'body': JSON[
|
|
2049
|
-
'work_key':
|
|
2050
|
-
'reason':
|
|
2039
|
+
async 'escalate_to_main'(_0x41d7d9) {
|
|
2040
|
+
const _0x3828ed = _0x431546;
|
|
2041
|
+
if (!_0xb1d75b['daemonLocalUrl'])
|
|
2042
|
+
return _0x3828ed(0xc3);
|
|
2043
|
+
const _0x3d22c0 = await fetch(_0xb1d75b[_0x3828ed(0xcd)] + _0x3828ed(0x103), {
|
|
2044
|
+
'method': _0x3828ed(0x1ed),
|
|
2045
|
+
'headers': { 'Content-Type': _0x3828ed(0xd7) },
|
|
2046
|
+
'body': JSON[_0x3828ed(0x9c)]({
|
|
2047
|
+
'work_key': _0x41d7d9[_0x3828ed(0xee)],
|
|
2048
|
+
'reason': _0x41d7d9[_0x3828ed(_0x159937._0x2f6b42)]
|
|
2051
2049
|
})
|
|
2052
|
-
}),
|
|
2053
|
-
if (!
|
|
2054
|
-
throw new Error(
|
|
2055
|
-
return
|
|
2050
|
+
}), _0x7482eb = await _0x3d22c0['json']();
|
|
2051
|
+
if (!_0x7482eb['ok'])
|
|
2052
|
+
throw new Error(_0x7482eb['error'] ?? _0x3828ed(_0x159937._0x1dc7d7));
|
|
2053
|
+
return _0x3828ed(_0x159937._0x34a68e) + _0x41d7d9[_0x3828ed(0x93)];
|
|
2056
2054
|
}
|
|
2057
2055
|
};
|
|
2058
2056
|
}
|
|
2059
|
-
function textResult(
|
|
2060
|
-
const
|
|
2057
|
+
function textResult(_0x2e2e7b, _0x27a37f = ![]) {
|
|
2058
|
+
const _0x245e28 = _0x2858e8;
|
|
2061
2059
|
return {
|
|
2062
2060
|
'content': [{
|
|
2063
|
-
'type':
|
|
2064
|
-
'text':
|
|
2061
|
+
'type': _0x245e28(0x14b),
|
|
2062
|
+
'text': _0x2e2e7b
|
|
2065
2063
|
}],
|
|
2066
|
-
...
|
|
2064
|
+
..._0x27a37f ? { 'isError': !![] } : {}
|
|
2067
2065
|
};
|
|
2068
2066
|
}
|
|
2069
|
-
async function registerChatBridgeTools(
|
|
2070
|
-
const
|
|
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
|
-
|
|
2131
|
-
|
|
2132
|
-
'
|
|
2133
|
-
'
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2067
|
+
async function registerChatBridgeTools(_0x29402a, _0x1012bd, _0x2fbbbd) {
|
|
2068
|
+
const _0x38ae7a = {
|
|
2069
|
+
_0x472cc6: 0xdf,
|
|
2070
|
+
_0x4fdfd0: 0xf6,
|
|
2071
|
+
_0xd2228f: 0xe2,
|
|
2072
|
+
_0x53c855: 0x102,
|
|
2073
|
+
_0x5d21b1: 0xa4,
|
|
2074
|
+
_0x2ffed8: 0x1c8,
|
|
2075
|
+
_0x2cdff7: 0x164,
|
|
2076
|
+
_0x493f7c: 0xef,
|
|
2077
|
+
_0x5d5dd6: 0x134,
|
|
2078
|
+
_0x35eafb: 0xf2,
|
|
2079
|
+
_0x2cd96b: 0x12d,
|
|
2080
|
+
_0x1f2c22: 0x12d,
|
|
2081
|
+
_0x482bb5: 0x119,
|
|
2082
|
+
_0x5d4133: 0xa4,
|
|
2083
|
+
_0x14e22c: 0x147,
|
|
2084
|
+
_0xcded34: 0x164,
|
|
2085
|
+
_0x395df1: 0x164,
|
|
2086
|
+
_0x3e008c: 0xe2,
|
|
2087
|
+
_0x42dbae: 0xa4,
|
|
2088
|
+
_0x6e003f: 0x1a6,
|
|
2089
|
+
_0x4152a5: 0xf3,
|
|
2090
|
+
_0x5cfc86: 0x117,
|
|
2091
|
+
_0x6e2a14: 0xd9,
|
|
2092
|
+
_0x3c6c63: 0xe2,
|
|
2093
|
+
_0x4edae9: 0x164,
|
|
2094
|
+
_0x409ad6: 0x102,
|
|
2095
|
+
_0x37726b: 0x137,
|
|
2096
|
+
_0x3bd435: 0xf0,
|
|
2097
|
+
_0x511e02: 0x12d,
|
|
2098
|
+
_0x213cad: 0x164,
|
|
2099
|
+
_0x54e972: 0x12d,
|
|
2100
|
+
_0x47b563: 0xdb,
|
|
2101
|
+
_0x4231ef: 0xfe,
|
|
2102
|
+
_0x579dcc: 0x174,
|
|
2103
|
+
_0x576f3e: 0x134,
|
|
2104
|
+
_0x583e6d: 0x1a8,
|
|
2105
|
+
_0x1830b3: 0xe2,
|
|
2106
|
+
_0x15b88d: 0xe2,
|
|
2107
|
+
_0x1dea06: 0xb6,
|
|
2108
|
+
_0x1e9809: 0xe2
|
|
2109
|
+
}, _0x2fc6db = {
|
|
2110
|
+
_0x2e8d2d: 0x114,
|
|
2111
|
+
_0x3d59eb: 0x140,
|
|
2112
|
+
_0x250d0d: 0x6a
|
|
2113
|
+
}, _0x22dfb0 = { _0x5b749c: 0x140 }, _0x3ceb34 = { _0x5b3295: 0x1e4 }, _0x18b730 = {
|
|
2114
|
+
_0x535e38: 0x140,
|
|
2115
|
+
_0x2afce1: 0x1c6
|
|
2116
|
+
}, _0x2d3a88 = {
|
|
2117
|
+
_0x43b744: 0x140,
|
|
2118
|
+
_0x1410db: 0x12e
|
|
2119
|
+
}, _0x274ac2 = { _0x540ad4: 0x1ce }, _0x26bad3 = { _0x164a38: 0x140 }, _0x242724 = {
|
|
2120
|
+
_0x3b7cc5: 0x12b,
|
|
2121
|
+
_0x8568f9: 0x7b
|
|
2122
|
+
}, _0x505f00 = { _0x15dc60: 0xd5 }, _0x595ab3 = { _0x81f4b3: 0x143 }, _0x52e3f8 = {
|
|
2123
|
+
_0x12c899: 0x140,
|
|
2124
|
+
_0x2e19bd: 0x1a3
|
|
2125
|
+
}, _0x17ae36 = {
|
|
2126
|
+
_0x105b7e: 0x140,
|
|
2127
|
+
_0x54820a: 0x112
|
|
2128
|
+
}, _0x31609d = { _0x2fe360: 0x1b1 }, _0x2abf41 = _0x2858e8, {z: _0xe1456} = await import(_0x2abf41(_0x38ae7a._0x472cc6));
|
|
2129
|
+
_0x29402a[_0x2abf41(0x134)](_0x2abf41(0x1b1), _0x2abf41(_0x38ae7a._0x4fdfd0), {
|
|
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;
|
|
2139
2139
|
try {
|
|
2140
|
-
return textResult(await
|
|
2141
|
-
} catch (
|
|
2142
|
-
return textResult(
|
|
2140
|
+
return textResult(await _0x1012bd[_0x4ad038(_0x31609d._0x2fe360)](_0x5c72ec));
|
|
2141
|
+
} catch (_0x5cf255) {
|
|
2142
|
+
return textResult(_0x5cf255 instanceof Error ? _0x5cf255[_0x4ad038(0x140)] : _0x4ad038(0x184), !![]);
|
|
2143
2143
|
}
|
|
2144
|
-
}),
|
|
2145
|
-
const
|
|
2144
|
+
}), _0x29402a['tool'](_0x2abf41(_0x38ae7a._0x493f7c), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2145
|
+
const _0x1ce9b0 = _0x2abf41;
|
|
2146
2146
|
try {
|
|
2147
|
-
return textResult(await
|
|
2148
|
-
} catch (
|
|
2149
|
-
return textResult(
|
|
2147
|
+
return textResult(await _0x1012bd['check_messages']());
|
|
2148
|
+
} catch (_0x3861cb) {
|
|
2149
|
+
return textResult(_0x3861cb instanceof Error ? _0x3861cb[_0x1ce9b0(_0x17ae36._0x105b7e)] : _0x1ce9b0(_0x17ae36._0x54820a), !![]);
|
|
2150
2150
|
}
|
|
2151
|
-
}),
|
|
2152
|
-
'channel':
|
|
2153
|
-
'limit':
|
|
2154
|
-
'before':
|
|
2155
|
-
'after':
|
|
2156
|
-
}, async
|
|
2157
|
-
const
|
|
2151
|
+
}), _0x29402a[_0x2abf41(_0x38ae7a._0x5d5dd6)]('read_history', _0x2abf41(_0x38ae7a._0x35eafb), {
|
|
2152
|
+
'channel': _0xe1456[_0x2abf41(0xe2)](),
|
|
2153
|
+
'limit': _0xe1456[_0x2abf41(_0x38ae7a._0x2cd96b)]()[_0x2abf41(0x164)](),
|
|
2154
|
+
'before': _0xe1456[_0x2abf41(0x12d)]()[_0x2abf41(0x164)](),
|
|
2155
|
+
'after': _0xe1456[_0x2abf41(_0x38ae7a._0x1f2c22)]()[_0x2abf41(0x164)]()
|
|
2156
|
+
}, async _0x4739e7 => {
|
|
2157
|
+
const _0x2e582e = _0x2abf41;
|
|
2158
2158
|
try {
|
|
2159
|
-
return textResult(await
|
|
2160
|
-
} catch (
|
|
2161
|
-
return textResult(
|
|
2159
|
+
return textResult(await _0x1012bd['read_history'](_0x4739e7));
|
|
2160
|
+
} catch (_0x2617d4) {
|
|
2161
|
+
return textResult(_0x2617d4 instanceof Error ? _0x2617d4[_0x2e582e(_0x52e3f8._0x12c899)] : _0x2e582e(_0x52e3f8._0x2e19bd), !![]);
|
|
2162
2162
|
}
|
|
2163
|
-
}),
|
|
2164
|
-
const
|
|
2163
|
+
}), _0x29402a['tool'](_0x2abf41(0x124), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2164
|
+
const _0x358c72 = _0x2abf41;
|
|
2165
2165
|
try {
|
|
2166
|
-
return textResult(await
|
|
2167
|
-
} catch (
|
|
2168
|
-
return textResult(
|
|
2166
|
+
return textResult(await _0x1012bd[_0x358c72(0x124)]());
|
|
2167
|
+
} catch (_0x304d3f) {
|
|
2168
|
+
return textResult(_0x304d3f instanceof Error ? _0x304d3f[_0x358c72(0x140)] : _0x358c72(_0x595ab3._0x81f4b3), !![]);
|
|
2169
2169
|
}
|
|
2170
|
-
}),
|
|
2171
|
-
'channel':
|
|
2172
|
-
'status':
|
|
2173
|
-
|
|
2170
|
+
}), _0x29402a[_0x2abf41(0x134)]('list_tasks', _0x2abf41(_0x38ae7a._0x482bb5), {
|
|
2171
|
+
'channel': _0xe1456[_0x2abf41(0xe2)](),
|
|
2172
|
+
'status': _0xe1456[_0x2abf41(_0x38ae7a._0x5d4133)]([
|
|
2173
|
+
_0x2abf41(_0x38ae7a._0x14e22c),
|
|
2174
2174
|
'in_progress',
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
])[
|
|
2178
|
-
}, async
|
|
2179
|
-
const
|
|
2175
|
+
_0x2abf41(0x155),
|
|
2176
|
+
_0x2abf41(0xfe)
|
|
2177
|
+
])[_0x2abf41(_0x38ae7a._0xcded34)]()
|
|
2178
|
+
}, async _0x276d60 => {
|
|
2179
|
+
const _0x899dcc = _0x2abf41;
|
|
2180
2180
|
try {
|
|
2181
|
-
return textResult(await
|
|
2182
|
-
} catch (
|
|
2183
|
-
return textResult(
|
|
2181
|
+
return textResult(await _0x1012bd[_0x899dcc(0x18e)](_0x276d60));
|
|
2182
|
+
} catch (_0x57fb9e) {
|
|
2183
|
+
return textResult(_0x57fb9e instanceof Error ? _0x57fb9e['message'] : _0x899dcc(_0x505f00._0x15dc60), !![]);
|
|
2184
2184
|
}
|
|
2185
|
-
}),
|
|
2186
|
-
'channel':
|
|
2187
|
-
'idempotency_key':
|
|
2188
|
-
'tasks':
|
|
2189
|
-
'title':
|
|
2190
|
-
'description':
|
|
2191
|
-
'priority':
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
])[
|
|
2185
|
+
}), _0x29402a['tool'](_0x2abf41(0x12b), _0x2abf41(0x107), {
|
|
2186
|
+
'channel': _0xe1456['string'](),
|
|
2187
|
+
'idempotency_key': _0xe1456[_0x2abf41(_0x38ae7a._0xd2228f)]()[_0x2abf41(_0x38ae7a._0x395df1)](),
|
|
2188
|
+
'tasks': _0xe1456['array'](_0xe1456['object']({
|
|
2189
|
+
'title': _0xe1456[_0x2abf41(_0x38ae7a._0xd2228f)](),
|
|
2190
|
+
'description': _0xe1456[_0x2abf41(_0x38ae7a._0x3e008c)]()['optional'](),
|
|
2191
|
+
'priority': _0xe1456[_0x2abf41(_0x38ae7a._0x42dbae)]([
|
|
2192
|
+
_0x2abf41(_0x38ae7a._0x6e003f),
|
|
2193
|
+
_0x2abf41(0x109),
|
|
2194
|
+
_0x2abf41(_0x38ae7a._0x4152a5),
|
|
2195
|
+
_0x2abf41(_0x38ae7a._0x5cfc86)
|
|
2196
|
+
])['optional']()
|
|
2197
2197
|
}))
|
|
2198
|
-
}, async
|
|
2199
|
-
const
|
|
2198
|
+
}, async _0x1eb8b6 => {
|
|
2199
|
+
const _0x4530a3 = _0x2abf41;
|
|
2200
2200
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2201
|
+
return textResult(await _0x1012bd[_0x4530a3(_0x242724._0x3b7cc5)](_0x1eb8b6));
|
|
2202
|
+
} catch (_0x47b9ea) {
|
|
2203
|
+
return textResult(_0x47b9ea instanceof Error ? _0x47b9ea[_0x4530a3(0x140)] : _0x4530a3(_0x242724._0x8568f9), !![]);
|
|
2204
2204
|
}
|
|
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
|
|
2205
|
+
}), _0x29402a['tool'](_0x2abf41(_0x38ae7a._0x6e2a14), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
|
|
2206
|
+
'channel': _0xe1456[_0x2abf41(_0x38ae7a._0x3c6c63)](),
|
|
2207
|
+
'task_numbers': _0xe1456[_0x2abf41(_0x38ae7a._0x53c855)](_0xe1456[_0x2abf41(0x12d)]())[_0x2abf41(0x164)](),
|
|
2208
|
+
'subtask_numbers': _0xe1456[_0x2abf41(0x102)](_0xe1456[_0x2abf41(_0x38ae7a._0x1f2c22)]())[_0x2abf41(_0x38ae7a._0x4edae9)](),
|
|
2209
|
+
'message_ids': _0xe1456[_0x2abf41(_0x38ae7a._0x409ad6)](_0xe1456[_0x2abf41(0xe2)]())[_0x2abf41(_0x38ae7a._0x4edae9)](),
|
|
2210
|
+
'evidence': _0xe1456[_0x2abf41(0x138)](_0xe1456[_0x2abf41(0xe2)](), _0xe1456[_0x2abf41(0xca)]({
|
|
2211
|
+
'create_thread': _0xe1456['unknown']()[_0x2abf41(0x164)](),
|
|
2212
|
+
'create_task': _0xe1456[_0x2abf41(_0x38ae7a._0x37726b)]()['optional']()
|
|
2213
|
+
}))[_0x2abf41(0x164)](),
|
|
2214
|
+
'idempotency_key': _0xe1456[_0x2abf41(0xe2)]()['optional']()
|
|
2215
|
+
}, async _0x52383e => {
|
|
2216
|
+
const _0x1b2176 = _0x2abf41;
|
|
2217
2217
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x1012bd[_0x1b2176(0xd9)](_0x52383e));
|
|
2219
|
+
} catch (_0x35f296) {
|
|
2220
|
+
return textResult(_0x35f296 instanceof Error ? _0x35f296[_0x1b2176(_0x26bad3._0x164a38)] : 'claim_tasks\x20failed', !![]);
|
|
2221
2221
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
'channel':
|
|
2224
|
-
'task_number':
|
|
2225
|
-
'subtask_number':
|
|
2226
|
-
'idempotency_key':
|
|
2227
|
-
}, async
|
|
2228
|
-
const
|
|
2222
|
+
}), _0x29402a[_0x2abf41(0x134)](_0x2abf41(_0x38ae7a._0x3bd435), _0x2abf41(0x9a), {
|
|
2223
|
+
'channel': _0xe1456['string'](),
|
|
2224
|
+
'task_number': _0xe1456['number'](),
|
|
2225
|
+
'subtask_number': _0xe1456[_0x2abf41(_0x38ae7a._0x511e02)]()[_0x2abf41(_0x38ae7a._0x213cad)](),
|
|
2226
|
+
'idempotency_key': _0xe1456[_0x2abf41(0xe2)]()['optional']()
|
|
2227
|
+
}, async _0x3c12e4 => {
|
|
2228
|
+
const _0x593dff = _0x2abf41;
|
|
2229
2229
|
try {
|
|
2230
|
-
return textResult(await
|
|
2231
|
-
} catch (
|
|
2232
|
-
return textResult(
|
|
2230
|
+
return textResult(await _0x1012bd['unclaim_task'](_0x3c12e4));
|
|
2231
|
+
} catch (_0x2cc702) {
|
|
2232
|
+
return textResult(_0x2cc702 instanceof Error ? _0x2cc702[_0x593dff(0x140)] : 'unclaim_task\x20failed', !![]);
|
|
2233
2233
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
'channel':
|
|
2236
|
-
'task_number':
|
|
2237
|
-
'subtask_number':
|
|
2238
|
-
'status':
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2234
|
+
}), _0x29402a[_0x2abf41(0x134)]('update_task_status', _0x2abf41(0x100), {
|
|
2235
|
+
'channel': _0xe1456[_0x2abf41(0xe2)](),
|
|
2236
|
+
'task_number': _0xe1456[_0x2abf41(_0x38ae7a._0x54e972)](),
|
|
2237
|
+
'subtask_number': _0xe1456[_0x2abf41(_0x38ae7a._0x54e972)]()[_0x2abf41(0x164)](),
|
|
2238
|
+
'status': _0xe1456[_0x2abf41(0xa4)]([
|
|
2239
|
+
_0x2abf41(0x147),
|
|
2240
|
+
_0x2abf41(_0x38ae7a._0x47b563),
|
|
2241
|
+
_0x2abf41(0x155),
|
|
2242
|
+
_0x2abf41(_0x38ae7a._0x4231ef)
|
|
2243
2243
|
]),
|
|
2244
|
-
'idempotency_key':
|
|
2245
|
-
}, async
|
|
2246
|
-
const
|
|
2244
|
+
'idempotency_key': _0xe1456['string']()[_0x2abf41(_0x38ae7a._0xcded34)]()
|
|
2245
|
+
}, async _0x1b9dae => {
|
|
2246
|
+
const _0x206b8f = _0x2abf41;
|
|
2247
2247
|
try {
|
|
2248
|
-
return textResult(await
|
|
2249
|
-
} catch (
|
|
2250
|
-
return textResult(
|
|
2248
|
+
return textResult(await _0x1012bd[_0x206b8f(0x17a)](_0x1b9dae));
|
|
2249
|
+
} catch (_0x532224) {
|
|
2250
|
+
return textResult(_0x532224 instanceof Error ? _0x532224[_0x206b8f(0x140)] : _0x206b8f(_0x274ac2._0x540ad4), !![]);
|
|
2251
2251
|
}
|
|
2252
|
-
}),
|
|
2253
|
-
'channel':
|
|
2254
|
-
'file_path':
|
|
2255
|
-
}, async
|
|
2256
|
-
const
|
|
2252
|
+
}), _0x29402a[_0x2abf41(_0x38ae7a._0x5d5dd6)](_0x2abf41(0x1b5), _0x2abf41(0x7f), {
|
|
2253
|
+
'channel': _0xe1456[_0x2abf41(_0x38ae7a._0x3e008c)](),
|
|
2254
|
+
'file_path': _0xe1456['string']()
|
|
2255
|
+
}, async _0x3c8498 => {
|
|
2256
|
+
const _0x1b6cd0 = _0x2abf41;
|
|
2257
2257
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2258
|
+
return textResult(await _0x1012bd[_0x1b6cd0(0x1b5)](_0x3c8498));
|
|
2259
|
+
} catch (_0xad06bb) {
|
|
2260
|
+
return textResult(_0xad06bb instanceof Error ? _0xad06bb[_0x1b6cd0(_0x2d3a88._0x43b744)] : _0x1b6cd0(_0x2d3a88._0x1410db), !![]);
|
|
2261
2261
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
const
|
|
2262
|
+
}), _0x29402a[_0x2abf41(0x134)](_0x2abf41(0x1a7), _0x2abf41(_0x38ae7a._0x579dcc), { 'attachment_id': _0xe1456['string']() }, async _0x16b7c9 => {
|
|
2263
|
+
const _0x28aceb = _0x2abf41;
|
|
2264
2264
|
try {
|
|
2265
|
-
return textResult(await
|
|
2266
|
-
} catch (
|
|
2267
|
-
return textResult(
|
|
2265
|
+
return textResult(await _0x1012bd['view_file'](_0x16b7c9));
|
|
2266
|
+
} catch (_0x53bd84) {
|
|
2267
|
+
return textResult(_0x53bd84 instanceof Error ? _0x53bd84[_0x28aceb(_0x18b730._0x535e38)] : _0x28aceb(_0x18b730._0x2afce1), !![]);
|
|
2268
2268
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
const
|
|
2269
|
+
}), _0x29402a[_0x2abf41(_0x38ae7a._0x576f3e)](_0x2abf41(_0x38ae7a._0x583e6d), _0x2abf41(0x150), { 'work_key': _0xe1456[_0x2abf41(_0x38ae7a._0x1830b3)]() }, async _0x3b63d5 => {
|
|
2270
|
+
const _0x423e23 = _0x2abf41;
|
|
2271
2271
|
try {
|
|
2272
|
-
return textResult(await
|
|
2273
|
-
} catch (
|
|
2274
|
-
return textResult(
|
|
2272
|
+
return textResult(await _0x1012bd[_0x423e23(0x1a8)](_0x3b63d5));
|
|
2273
|
+
} catch (_0x28f493) {
|
|
2274
|
+
return textResult(_0x28f493 instanceof Error ? _0x28f493[_0x423e23(0x140)] : _0x423e23(_0x3ceb34._0x5b3295), !![]);
|
|
2275
2275
|
}
|
|
2276
|
-
}),
|
|
2277
|
-
const _0x14cd5b = _0x1bea5f;
|
|
2276
|
+
}), _0x29402a[_0x2abf41(0x134)](_0x2abf41(0x1be), 'Worker-only.\x20Park\x20the\x20current\x20worker\x20lane\x20after\x20you\x20have\x20already\x20reported\x20results\x20in\x20this\x20thread.\x20This\x20does\x20not\x20end\x20the\x20session;\x20same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.', { 'work_key': _0xe1456[_0x2abf41(0xe2)]() }, async _0x48b63d => {
|
|
2278
2277
|
try {
|
|
2279
|
-
return textResult(await
|
|
2280
|
-
} catch (
|
|
2281
|
-
return textResult(
|
|
2278
|
+
return textResult(await _0x1012bd['park_worker'](_0x48b63d));
|
|
2279
|
+
} catch (_0x361547) {
|
|
2280
|
+
return textResult(_0x361547 instanceof Error ? _0x361547['message'] : 'park_worker\x20failed', !![]);
|
|
2282
2281
|
}
|
|
2283
|
-
}),
|
|
2284
|
-
'work_key':
|
|
2285
|
-
'reason':
|
|
2286
|
-
}, async
|
|
2287
|
-
const
|
|
2282
|
+
}), _0x29402a['tool']('escalate_to_main', _0x2abf41(0xe0), {
|
|
2283
|
+
'work_key': _0xe1456[_0x2abf41(_0x38ae7a._0x15b88d)](),
|
|
2284
|
+
'reason': _0xe1456[_0x2abf41(_0x38ae7a._0xd2228f)]()
|
|
2285
|
+
}, async _0x413a06 => {
|
|
2286
|
+
const _0x4db03f = _0x2abf41;
|
|
2288
2287
|
try {
|
|
2289
|
-
return textResult(await
|
|
2290
|
-
} catch (
|
|
2291
|
-
return textResult(
|
|
2288
|
+
return textResult(await _0x1012bd['escalate_to_main'](_0x413a06));
|
|
2289
|
+
} catch (_0x6f6dc7) {
|
|
2290
|
+
return textResult(_0x6f6dc7 instanceof Error ? _0x6f6dc7[_0x4db03f(_0x22dfb0._0x5b749c)] : _0x4db03f(0x173), !![]);
|
|
2292
2291
|
}
|
|
2293
|
-
}),
|
|
2294
|
-
const
|
|
2292
|
+
}), _0x2fbbbd?.[_0x2abf41(_0x38ae7a._0x1dea06)] && _0x29402a[_0x2abf41(0x134)]('mark_waiting_input', 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0xe1456[_0x2abf41(_0x38ae7a._0x1e9809)]() }, async _0x518c90 => {
|
|
2293
|
+
const _0x577dc6 = _0x2abf41;
|
|
2295
2294
|
try {
|
|
2296
|
-
return textResult(await
|
|
2297
|
-
} catch (
|
|
2298
|
-
return textResult(
|
|
2295
|
+
return textResult(await _0x1012bd[_0x577dc6(_0x2fc6db._0x2e8d2d)](_0x518c90));
|
|
2296
|
+
} catch (_0x3fbb38) {
|
|
2297
|
+
return textResult(_0x3fbb38 instanceof Error ? _0x3fbb38[_0x577dc6(_0x2fc6db._0x3d59eb)] : _0x577dc6(_0x2fc6db._0x250d0d), !![]);
|
|
2299
2298
|
}
|
|
2300
2299
|
});
|
|
2301
2300
|
}
|
|
2302
|
-
async function createChatBridgeServer(
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
},
|
|
2308
|
-
'name':
|
|
2309
|
-
'version':
|
|
2310
|
-
}),
|
|
2311
|
-
return await registerChatBridgeTools(
|
|
2312
|
-
'handlers':
|
|
2313
|
-
'server':
|
|
2301
|
+
async function createChatBridgeServer(_0x4a163a) {
|
|
2302
|
+
const _0x484a9c = {
|
|
2303
|
+
_0x3bdbe1: 0x73,
|
|
2304
|
+
_0x2b47b8: 0xd6,
|
|
2305
|
+
_0x15453d: 0xb6
|
|
2306
|
+
}, _0x314c8c = _0x2858e8, {McpServer: _0x4c604c} = await import(_0x314c8c(_0x484a9c._0x3bdbe1)), _0x5cc8db = new _0x4c604c({
|
|
2307
|
+
'name': _0x314c8c(_0x484a9c._0x2b47b8),
|
|
2308
|
+
'version': '0.0.0'
|
|
2309
|
+
}), _0x1cd4be = createChatBridgeHandlers(_0x4a163a);
|
|
2310
|
+
return await registerChatBridgeTools(_0x5cc8db, _0x1cd4be, { 'workerMode': _0x4a163a[_0x314c8c(_0x484a9c._0x15453d)] }), {
|
|
2311
|
+
'handlers': _0x1cd4be,
|
|
2312
|
+
'server': _0x5cc8db
|
|
2314
2313
|
};
|
|
2315
2314
|
}
|
|
2316
|
-
function readFlag(
|
|
2317
|
-
const
|
|
2318
|
-
if (
|
|
2315
|
+
function readFlag(_0x346af4, _0x57bf73) {
|
|
2316
|
+
const _0x833b68 = { _0x3c1c0b: 0xb5 }, _0x2dadda = _0x2858e8, _0x493629 = _0x346af4[_0x2dadda(_0x833b68._0x3c1c0b)](_0x57bf73);
|
|
2317
|
+
if (_0x493629 === -0x1)
|
|
2319
2318
|
return void 0x0;
|
|
2320
|
-
return
|
|
2319
|
+
return _0x346af4[_0x493629 + 0x1];
|
|
2321
2320
|
}
|
|
2322
|
-
function parseChatBridgeArgs(
|
|
2323
|
-
const
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
throw new Error(_0x5b9163(_0x2ee99d._0x1db49e));
|
|
2321
|
+
function parseChatBridgeArgs(_0x50e8db) {
|
|
2322
|
+
const _0x2ebcfd = {
|
|
2323
|
+
_0x2ce278: 0x1e5,
|
|
2324
|
+
_0x13a273: 0x8e,
|
|
2325
|
+
_0x2c3fc3: 0x18c,
|
|
2326
|
+
_0xb5aac: 0x19a,
|
|
2327
|
+
_0x2ef6f1: 0x105,
|
|
2328
|
+
_0x1c51ba: 0x142,
|
|
2329
|
+
_0x5e153e: 0x1bd
|
|
2330
|
+
}, _0x47cde3 = _0x2858e8, _0x1aa4d2 = readFlag(_0x50e8db, _0x47cde3(0x78)), _0x1d53ed = readFlag(_0x50e8db, _0x47cde3(0xbb)), _0x2df94c = readFlag(_0x50e8db, _0x47cde3(_0x2ebcfd._0x2ce278)), _0x40e916 = readFlag(_0x50e8db, '--initial-last-seen-seq'), _0x4dcdbb = readFlag(_0x50e8db, _0x47cde3(_0x2ebcfd._0x13a273)) ?? _0x47cde3(_0x2ebcfd._0x2c3fc3), _0x5635ff = readFlag(_0x50e8db, _0x47cde3(0x10f)), _0x5b378e = readFlag(_0x50e8db, '--session-id'), _0x3e8bee = readFlag(_0x50e8db, '--worker-mode-enabled'), _0x8b0ccd = readFlag(_0x50e8db, _0x47cde3(_0x2ebcfd._0xb5aac)), _0x546409 = readFlag(_0x50e8db, '--worker-thread-target'), _0x214c0a = _0x50e8db[_0x47cde3(_0x2ebcfd._0x2ef6f1)](_0x47cde3(0xa8)), _0x1af36a = _0x40e916 === void 0x0 ? void 0x0 : Number[_0x47cde3(_0x2ebcfd._0x1c51ba)](_0x40e916, 0xa);
|
|
2331
|
+
if (!_0x1aa4d2)
|
|
2332
|
+
throw new Error(_0x47cde3(0x108));
|
|
2333
|
+
if (!_0x2df94c)
|
|
2334
|
+
throw new Error(_0x47cde3(_0x2ebcfd._0x5e153e));
|
|
2335
|
+
if (_0x40e916 !== void 0x0 && (_0x1af36a === void 0x0 || !Number['isFinite'](_0x1af36a) || _0x1af36a < 0x0))
|
|
2336
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2339
2337
|
return {
|
|
2340
|
-
'agentId':
|
|
2341
|
-
'attachmentCacheDir':
|
|
2342
|
-
'daemonApiKey':
|
|
2343
|
-
'daemonLocalUrl':
|
|
2344
|
-
'initialLastSeenSeq':
|
|
2345
|
-
'sessionId':
|
|
2346
|
-
'serverUrl':
|
|
2347
|
-
'workerModeEnabled':
|
|
2348
|
-
'workerSessionId':
|
|
2349
|
-
'workerThreadTarget':
|
|
2350
|
-
'workerMode':
|
|
2338
|
+
'agentId': _0x1aa4d2,
|
|
2339
|
+
'attachmentCacheDir': _0x1d53ed,
|
|
2340
|
+
'daemonApiKey': _0x2df94c,
|
|
2341
|
+
'daemonLocalUrl': _0x5635ff,
|
|
2342
|
+
'initialLastSeenSeq': _0x1af36a,
|
|
2343
|
+
'sessionId': _0x5b378e,
|
|
2344
|
+
'serverUrl': _0x4dcdbb,
|
|
2345
|
+
'workerModeEnabled': _0x3e8bee === void 0x0 ? void 0x0 : _0x3e8bee !== _0x47cde3(0x19b),
|
|
2346
|
+
'workerSessionId': _0x8b0ccd,
|
|
2347
|
+
'workerThreadTarget': _0x546409,
|
|
2348
|
+
'workerMode': _0x214c0a
|
|
2351
2349
|
};
|
|
2352
2350
|
}
|
|
2353
|
-
async function runChatBridgeCli(
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
'
|
|
2362
|
-
'
|
|
2363
|
-
'
|
|
2351
|
+
async function runChatBridgeCli(_0x3906a5) {
|
|
2352
|
+
const _0x4c9ad9 = {
|
|
2353
|
+
_0x5e2e06: 0xc0,
|
|
2354
|
+
_0x500206: 0xcd,
|
|
2355
|
+
_0x43b3ce: 0xb6,
|
|
2356
|
+
_0x4ee566: 0xd0,
|
|
2357
|
+
_0x3b9c18: 0x197
|
|
2358
|
+
}, _0x42bce3 = _0x2858e8, _0x2e4876 = parseChatBridgeArgs(_0x3906a5), {StdioServerTransport: _0x155a75} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x734533 = createInternalAgentClient(_0x2e4876), _0x1ea16d = createAttachmentCache({ 'cacheDir': _0x2e4876['attachmentCacheDir'] }), _0x193121 = await createChatBridgeServer({
|
|
2359
|
+
'agentId': _0x2e4876[_0x42bce3(_0x4c9ad9._0x5e2e06)],
|
|
2360
|
+
'attachmentCache': _0x1ea16d,
|
|
2361
|
+
'client': _0x734533,
|
|
2362
|
+
'daemonLocalUrl': _0x2e4876[_0x42bce3(_0x4c9ad9._0x500206)],
|
|
2364
2363
|
'uploadPreparer': prepareUploadFile,
|
|
2365
|
-
'workerModeEnabled':
|
|
2366
|
-
'workerMode':
|
|
2367
|
-
'workerThreadTarget':
|
|
2364
|
+
'workerModeEnabled': _0x2e4876[_0x42bce3(0x183)],
|
|
2365
|
+
'workerMode': _0x2e4876[_0x42bce3(_0x4c9ad9._0x43b3ce)],
|
|
2366
|
+
'workerThreadTarget': _0x2e4876[_0x42bce3(_0x4c9ad9._0x4ee566)]
|
|
2368
2367
|
});
|
|
2369
|
-
await
|
|
2368
|
+
await _0x193121[_0x42bce3(0x106)][_0x42bce3(_0x4c9ad9._0x3b9c18)](new _0x155a75());
|
|
2370
2369
|
}
|
|
2371
|
-
var executedAsEntry = process[
|
|
2372
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2370
|
+
var executedAsEntry = process[_0x2858e8(0x9d)][0x1] ? import.meta.url === pathToFileURL(process[_0x2858e8(0x9d)][0x1])[_0x2858e8(0x1cd)] : ![];
|
|
2371
|
+
executedAsEntry && await runChatBridgeCli(process[_0x2858e8(0x9d)][_0x2858e8(0x1a9)](0x2));
|
|
2373
2372
|
export {
|
|
2374
2373
|
createChatBridgeHandlers,
|
|
2375
2374
|
createChatBridgeServer,
|