@dscord/daemon 0.1.35 → 0.1.37
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 +1990 -1955
- package/dist/index.js +9211 -9435
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,2325 +1,2360 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
1
|
+
const _0x404ee2 = _0x5d14;
|
|
2
|
+
(function (_0x267f5d, _0x55c83e) {
|
|
3
|
+
const _0x5b548b = {
|
|
4
|
+
_0x111c7d: 0x23e,
|
|
5
|
+
_0xbdd3bf: 0x14f,
|
|
6
|
+
_0x1e7b4a: 0x24a
|
|
7
|
+
}, _0x21aee4 = _0x5d14, _0x1238d6 = _0x267f5d();
|
|
8
8
|
while (!![]) {
|
|
9
9
|
try {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
10
|
+
const _0x1a5117 = parseInt(_0x21aee4(0x296)) / 0x1 * (parseInt(_0x21aee4(0x16f)) / 0x2) + parseInt(_0x21aee4(0x2b7)) / 0x3 + -parseInt(_0x21aee4(0x2a1)) / 0x4 * (-parseInt(_0x21aee4(0x206)) / 0x5) + -parseInt(_0x21aee4(0x24d)) / 0x6 * (-parseInt(_0x21aee4(0x1d8)) / 0x7) + parseInt(_0x21aee4(0x2aa)) / 0x8 * (-parseInt(_0x21aee4(0x1b8)) / 0x9) + -parseInt(_0x21aee4(_0x5b548b._0x111c7d)) / 0xa * (parseInt(_0x21aee4(0x19f)) / 0xb) + -parseInt(_0x21aee4(_0x5b548b._0xbdd3bf)) / 0xc * (parseInt(_0x21aee4(_0x5b548b._0x1e7b4a)) / 0xd);
|
|
11
|
+
if (_0x1a5117 === _0x55c83e)
|
|
12
12
|
break;
|
|
13
13
|
else
|
|
14
|
-
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
14
|
+
_0x1238d6['push'](_0x1238d6['shift']());
|
|
15
|
+
} catch (_0x506fc2) {
|
|
16
|
+
_0x1238d6['push'](_0x1238d6['shift']());
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
}(
|
|
19
|
+
}(_0x2d0d, 0x4aaa3));
|
|
20
20
|
import { pathToFileURL } from 'node:url';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'.jpeg': _0x5d5218(0x261),
|
|
34
|
-
'.jpg': _0x5d5218(0x261),
|
|
35
|
-
'.json': _0x5d5218(0x209),
|
|
36
|
-
'.md': _0x5d5218(0x315),
|
|
37
|
-
'.pdf': _0x5d5218(0x2f0),
|
|
38
|
-
'.png': _0x5d5218(0x26d),
|
|
39
|
-
'.svg': _0x5d5218(0x320),
|
|
40
|
-
'.txt': _0x5d5218(0x34e),
|
|
41
|
-
'.webp': _0x5d5218(0x2b3),
|
|
42
|
-
'.xml': _0x5d5218(0x2b5),
|
|
43
|
-
'.zip': 'application/zip'
|
|
44
|
-
};
|
|
45
|
-
function guessContentType(_0x4552d2) {
|
|
46
|
-
const _0x5e0bf4 = {
|
|
47
|
-
_0x587a13: 0x1ed,
|
|
48
|
-
_0x25c12b: 0x284
|
|
49
|
-
}, _0x2c388b = _0x5d5218;
|
|
50
|
-
return MIME_BY_EXTENSION[_0x29f647[_0x2c388b(_0x5e0bf4._0x587a13)](_0x4552d2)[_0x2c388b(_0x5e0bf4._0x25c12b)]()] ?? _0x2c388b(0x1f9);
|
|
51
|
-
}
|
|
52
|
-
function safeFilename(_0x53fc48) {
|
|
53
|
-
return _0x53fc48['replace'](/[\\/]/g, '-');
|
|
54
|
-
}
|
|
55
|
-
function extensionFor(_0x196d73) {
|
|
56
|
-
const _0x3b3c8c = { _0xeda88c: 0x33a }, _0x3a2102 = _0x5d5218, _0x59d0f8 = Object['entries'](MIME_BY_EXTENSION)['find'](([, _0x14f862]) => _0x14f862 === _0x196d73);
|
|
57
|
-
return _0x59d0f8?.[0x0] ?? _0x3a2102(_0x3b3c8c._0xeda88c);
|
|
58
|
-
}
|
|
59
|
-
async function prepareUploadFile(_0x5256b3, _0x380bf4 = {}) {
|
|
60
|
-
const _0x101df3 = {
|
|
61
|
-
_0x471384: 0x246,
|
|
62
|
-
_0x4e9ab7: 0x2c1,
|
|
63
|
-
_0x4f9a3d: 0x2c0,
|
|
64
|
-
_0x36863d: 0x316,
|
|
65
|
-
_0x1271a4: 0x28b,
|
|
66
|
-
_0x1e22f7: 0x2d1
|
|
67
|
-
}, _0x251d16 = _0x5d5218;
|
|
68
|
-
if (!_0x29f647['isAbsolute'](_0x5256b3))
|
|
69
|
-
throw new Error(_0x251d16(0x357));
|
|
70
|
-
const _0x502b65 = await stat(_0x5256b3)[_0x251d16(_0x101df3._0x471384)](() => null);
|
|
71
|
-
if (!_0x502b65 || !_0x502b65[_0x251d16(_0x101df3._0x4e9ab7)]())
|
|
72
|
-
throw new Error(_0x251d16(0x249) + _0x5256b3);
|
|
73
|
-
const _0x26c7c5 = _0x380bf4[_0x251d16(0x335)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
74
|
-
if (_0x502b65[_0x251d16(_0x101df3._0x4f9a3d)] > _0x26c7c5)
|
|
75
|
-
throw new Error(_0x251d16(_0x101df3._0x36863d) + _0x502b65['size']);
|
|
76
|
-
const _0x148656 = await readFile(_0x5256b3), _0x7e8c23 = _0x29f647[_0x251d16(_0x101df3._0x1271a4)](_0x5256b3);
|
|
77
|
-
return {
|
|
78
|
-
'contentBase64': _0x148656[_0x251d16(0x240)](_0x251d16(_0x101df3._0x1e22f7)),
|
|
79
|
-
'contentType': guessContentType(_0x7e8c23),
|
|
80
|
-
'filename': _0x7e8c23,
|
|
81
|
-
'sizeBytes': _0x502b65[_0x251d16(0x2c0)]
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function createAttachmentCache(_0x35e3d4 = {}) {
|
|
85
|
-
const _0x57600d = {
|
|
86
|
-
_0x22c15c: 0x30d,
|
|
87
|
-
_0x381b2a: 0x1e1
|
|
88
|
-
}, _0x24ea9b = {
|
|
89
|
-
_0x354ead: 0x28a,
|
|
90
|
-
_0x46315f: 0x23b,
|
|
91
|
-
_0x4f7c85: 0x2c5
|
|
92
|
-
}, _0x1e800 = _0x5d5218, _0x41ae7f = _0x35e3d4[_0x1e800(_0x57600d._0x22c15c)] ?? _0x29f647[_0x1e800(_0x57600d._0x381b2a)](homedir(), '.slock', _0x1e800(0x1e2));
|
|
93
|
-
return {
|
|
94
|
-
'cacheDir': _0x41ae7f,
|
|
95
|
-
async 'findCachedPath'(_0x598dc1) {
|
|
96
|
-
const _0x4a060a = _0x1e800;
|
|
97
|
-
await mkdir(_0x41ae7f, { 'recursive': !![] });
|
|
98
|
-
const _0x290d1f = await readdir(_0x41ae7f), _0x11a02c = _0x290d1f[_0x4a060a(0x2da)](_0x1a9b04 => _0x1a9b04[_0x4a060a(0x2fd)](_0x598dc1 + '-') || _0x1a9b04[_0x4a060a(0x2fd)](_0x598dc1));
|
|
99
|
-
return _0x11a02c ? _0x29f647[_0x4a060a(0x1e1)](_0x41ae7f, _0x11a02c) : null;
|
|
100
|
-
},
|
|
101
|
-
async 'save'(_0x40a9cf) {
|
|
102
|
-
const _0x4cfff9 = _0x1e800;
|
|
103
|
-
await mkdir(_0x41ae7f, { 'recursive': !![] });
|
|
104
|
-
const _0x4b93a0 = _0x40a9cf['originalFilename']?.[_0x4cfff9(0x2fc)]() ? safeFilename(_0x40a9cf['originalFilename']) : '' + _0x40a9cf['attachmentId'] + extensionFor(_0x40a9cf[_0x4cfff9(_0x24ea9b._0x354ead)]), _0xcd4166 = _0x29f647['join'](_0x41ae7f, _0x40a9cf[_0x4cfff9(_0x24ea9b._0x46315f)] + '-' + _0x4b93a0);
|
|
105
|
-
return await writeFile(_0xcd4166, _0x40a9cf[_0x4cfff9(_0x24ea9b._0x4f7c85)]), _0xcd4166;
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
import {
|
|
110
|
-
createHash,
|
|
111
|
-
randomUUID
|
|
112
|
-
} from 'node:crypto';
|
|
113
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x5d5218(0x2c9);
|
|
114
|
-
function ensureSegment(_0x2e03cc) {
|
|
115
|
-
const _0x3d2fb0 = _0x5d5218, _0x314514 = _0x2e03cc[_0x3d2fb0(0x2fc)]();
|
|
116
|
-
if (!_0x314514 || _0x314514[_0x3d2fb0(0x236)](':'))
|
|
117
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
118
|
-
return _0x314514;
|
|
119
|
-
}
|
|
120
|
-
function parseThreadParts(_0x3b68d0) {
|
|
121
|
-
const _0x1fd2c1 = { _0x2f2cc9: 0x218 }, _0x3841f5 = _0x5d5218, _0x4bae40 = _0x3b68d0['split'](':');
|
|
122
|
-
if (_0x4bae40[_0x3841f5(_0x1fd2c1._0x2f2cc9)] < 0x1 || _0x4bae40[_0x3841f5(0x218)] > 0x2)
|
|
123
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
124
|
-
return {
|
|
125
|
-
'channelName': ensureSegment(_0x4bae40[0x0] ?? ''),
|
|
126
|
-
'threadShortId': _0x4bae40[0x1] ? ensureSegment(_0x4bae40[0x1]) : null
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
function parseTarget(_0x84523d) {
|
|
130
|
-
const _0x3aee7b = {
|
|
131
|
-
_0x5ec9eb: 0x2fc,
|
|
132
|
-
_0x4949da: 0x317,
|
|
133
|
-
_0x48d037: 0x20d,
|
|
134
|
-
_0x317bad: 0x220,
|
|
135
|
-
_0x455ced: 0x2fd,
|
|
136
|
-
_0x55c7ad: 0x292,
|
|
137
|
-
_0x236714: 0x2c7,
|
|
138
|
-
_0x5da300: 0x2ef
|
|
139
|
-
}, _0x528924 = _0x5d5218, _0x65ba3e = _0x84523d[_0x528924(_0x3aee7b._0x5ec9eb)]();
|
|
140
|
-
if (!_0x65ba3e)
|
|
141
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
142
|
-
if (_0x65ba3e[_0x528924(0x2fd)]('#')) {
|
|
143
|
-
const _0x42f8f0 = parseThreadParts(_0x65ba3e[_0x528924(_0x3aee7b._0x4949da)](0x1)), _0x5d1562 = '#' + _0x42f8f0[_0x528924(0x220)];
|
|
144
|
-
if (!_0x42f8f0[_0x528924(0x222)])
|
|
145
|
-
return {
|
|
146
|
-
'channelName': _0x42f8f0['channelName'],
|
|
147
|
-
'channelTarget': _0x5d1562,
|
|
148
|
-
'kind': _0x528924(_0x3aee7b._0x48d037),
|
|
149
|
-
'target': _0x5d1562
|
|
150
|
-
};
|
|
151
|
-
return {
|
|
152
|
-
'channelName': _0x42f8f0[_0x528924(0x220)],
|
|
153
|
-
'channelTarget': _0x5d1562,
|
|
154
|
-
'kind': _0x528924(0x2ef),
|
|
155
|
-
'target': _0x5d1562 + ':' + _0x42f8f0['threadShortId'],
|
|
156
|
-
'threadShortId': _0x42f8f0[_0x528924(0x222)]
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
if (_0x65ba3e[_0x528924(0x2fd)](_0x528924(0x2c7))) {
|
|
160
|
-
const _0x2d0f77 = parseThreadParts(_0x65ba3e['slice'](0x3));
|
|
161
|
-
if (!_0x2d0f77[_0x528924(_0x3aee7b._0x317bad)][_0x528924(_0x3aee7b._0x455ced)](_0x528924(_0x3aee7b._0x55c7ad)))
|
|
162
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
163
|
-
const _0x33e24c = _0x528924(_0x3aee7b._0x236714) + _0x2d0f77[_0x528924(_0x3aee7b._0x317bad)];
|
|
164
|
-
if (!_0x2d0f77['threadShortId'])
|
|
165
|
-
return {
|
|
166
|
-
'channelName': _0x2d0f77[_0x528924(0x220)],
|
|
167
|
-
'channelTarget': _0x33e24c,
|
|
168
|
-
'kind': _0x528924(0x20d),
|
|
169
|
-
'target': _0x33e24c
|
|
170
|
-
};
|
|
171
|
-
return {
|
|
172
|
-
'channelName': _0x2d0f77[_0x528924(0x220)],
|
|
173
|
-
'channelTarget': _0x33e24c,
|
|
174
|
-
'kind': _0x528924(_0x3aee7b._0x5da300),
|
|
175
|
-
'target': _0x33e24c + ':' + _0x2d0f77['threadShortId'],
|
|
176
|
-
'threadShortId': _0x2d0f77[_0x528924(0x222)]
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
180
|
-
}
|
|
181
|
-
function asErrorMessage(_0x250d80, _0x301d46) {
|
|
182
|
-
const _0x20e95b = { _0x4cc945: 0x2fc }, _0x5cc80a = _0x5d5218;
|
|
183
|
-
if (typeof _0x250d80 === 'string' && _0x250d80[_0x5cc80a(_0x20e95b._0x4cc945)]())
|
|
184
|
-
return _0x250d80;
|
|
185
|
-
return _0x301d46;
|
|
186
|
-
}
|
|
187
|
-
function asRecord(_0x5113a3) {
|
|
188
|
-
const _0x2f4032 = { _0x410b1d: 0x1d7 }, _0x5456f0 = _0x5d5218;
|
|
189
|
-
return typeof _0x5113a3 === _0x5456f0(_0x2f4032._0x410b1d) && _0x5113a3 !== null ? _0x5113a3 : {};
|
|
190
|
-
}
|
|
191
|
-
function _0x345b() {
|
|
192
|
-
const _0x44e434 = [
|
|
193
|
-
'iYmJieH1BwfUCW',
|
|
194
|
-
'lsba',
|
|
195
|
-
'C2vUzgvYvhLWzq',
|
|
21
|
+
function _0x2d0d() {
|
|
22
|
+
const _0x24037e = [
|
|
23
|
+
'igf0DgfJAg1LBNq',
|
|
24
|
+
'AgfZ',
|
|
25
|
+
'yxr0ywnOBwvUDeLK',
|
|
26
|
+
'nti5nJi2Cwn1zNv5',
|
|
27
|
+
'zw51Bq',
|
|
28
|
+
'zxH0BMfTzq',
|
|
29
|
+
'vgfZAZOG',
|
|
30
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
31
|
+
'DMLZAwjPBgL0Eq',
|
|
32
|
+
'zMfSC2u',
|
|
196
33
|
'Dw5RBM93BG',
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
203
|
-
'Aw1Hz2uVD2vICa',
|
|
204
|
-
'Aw5FCMv2Awv3',
|
|
205
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
206
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
207
|
-
'iokaLca',
|
|
208
|
-
'CNvUswq',
|
|
209
|
-
'y2XHAw1uyxnRCW',
|
|
210
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
211
|
-
'y3vYC29Y',
|
|
34
|
+
'Ahr0CdO',
|
|
35
|
+
'kg5VBMuP',
|
|
36
|
+
'C2vYDMvYtMfTzq',
|
|
37
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
38
|
+
'C3rVCe1HAw4',
|
|
212
39
|
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
'
|
|
230
|
-
'
|
|
231
|
-
'
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
235
|
-
'Dgv4Da',
|
|
236
|
-
'vgfZAYa',
|
|
237
|
-
'CMvZDwX0',
|
|
238
|
-
'AxnbCNjHEq',
|
|
239
|
-
'D29YA2vYsgfUzg9MzG',
|
|
240
|
-
'zgLNzxn0',
|
|
241
|
-
'ChjVDg9JB2W',
|
|
242
|
-
'zMLUza',
|
|
243
|
-
'yxjNDG',
|
|
244
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
245
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
246
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
247
|
-
'yxnPzgu',
|
|
248
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
249
|
-
'y29UDgvUDa',
|
|
250
|
-
'DhLWzq',
|
|
251
|
-
'D29YA19RzxK',
|
|
252
|
-
'ls1Zzxj2zxiTDxjS',
|
|
253
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
254
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
255
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
256
|
-
'DgfYz2v0zwruyxnR',
|
|
257
|
-
'C2v0',
|
|
258
|
-
'yM9KEu1HCMTKB3DU',
|
|
259
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
260
|
-
'D3nZoG',
|
|
261
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
262
|
-
'Cgf5Bg9HzePZB24',
|
|
263
|
-
'DgHYzwfK',
|
|
264
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
40
|
+
'y2HHDa',
|
|
41
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
42
|
+
'BwLU',
|
|
43
|
+
'B3bLBL9PC3n1zxm',
|
|
44
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
45
|
+
'iYmJienOyw5UzwXZ',
|
|
46
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
47
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
48
|
+
'DgfZA3m',
|
|
49
|
+
'DxbKyxrL',
|
|
50
|
+
'y29UDgvUDejHC2u2na',
|
|
51
|
+
'AxnbyNnVBhv0zq',
|
|
52
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
53
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
54
|
+
'iYmJieH1BwfUCW',
|
|
55
|
+
'Bg93',
|
|
56
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
57
|
+
'l3jLy2vPDMu',
|
|
58
|
+
'DMfSDwvZ',
|
|
59
|
+
'BwvTyMvYCW',
|
|
60
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
265
61
|
'ChvZAa',
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'l3nLCNzLCG',
|
|
271
|
-
'BNvTyMvY',
|
|
272
|
-
'zMLSDgvY',
|
|
273
|
-
'CMvHzf9OAxn0B3j5',
|
|
274
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
275
|
-
'DgfZA0LK',
|
|
276
|
-
'DhjPBq',
|
|
277
|
-
'C3rHCNrZv2L0Aa',
|
|
278
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
279
|
-
'CMvWBgfJzq',
|
|
280
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
281
|
-
'l3rHC2TZl2nSywLT',
|
|
282
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
283
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
284
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
285
|
-
'DMLZAwjPBgL0Eq',
|
|
286
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
287
|
-
'mtC4odmXntjcwevwvxu',
|
|
288
|
-
'v29YA2vYici',
|
|
289
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
62
|
+
'AM9PBG',
|
|
63
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
64
|
+
'ywz0zxi',
|
|
65
|
+
'zgvZDhjVEwvK',
|
|
290
66
|
'z2v0rNvSBfLLyxi',
|
|
291
|
-
'lsaJ',
|
|
292
|
-
'z2v0',
|
|
293
|
-
'y2fJAgveAxi',
|
|
294
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
295
|
-
'nJGYodGYmfDvAvDbyG',
|
|
296
|
-
'BgLZDf9Zzxj2zxi',
|
|
297
|
-
'z2v0twLUDxrLCW',
|
|
298
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
299
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
300
|
-
'Dg9KBW',
|
|
301
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
302
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
303
|
-
'C2XPy2u',
|
|
304
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
305
|
-
'D3m6',
|
|
306
|
-
'Ahr0Chm6',
|
|
307
67
|
'B3b0Aw9UywW',
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'
|
|
68
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
69
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
70
|
+
'mZyWuhDbzLnw',
|
|
71
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
72
|
+
'yxjYyxLcDwzMzxi',
|
|
73
|
+
'C3rHCNrLza',
|
|
74
|
+
'DgHYzwfKtNvTyMvY',
|
|
75
|
+
'DgHYzwfKu2HVCNrjza',
|
|
76
|
+
'zgLZCg9ZAxrPB24',
|
|
77
|
+
'ls1Hz2vUDc1Pza',
|
|
312
78
|
'Aw1Hz2uVC3zNk3HTBa',
|
|
313
|
-
'
|
|
314
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
315
|
-
'ig1LC3nHz2u9',
|
|
316
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
317
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
318
|
-
'y2XHAw1FDgfZA3m',
|
|
319
|
-
'l3nLBMq',
|
|
320
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
79
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
321
80
|
'ywz0zxjtzxe',
|
|
81
|
+
'BMv4Den1CNnVCG',
|
|
82
|
+
'w3rHCMDLDd0',
|
|
83
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
84
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
85
|
+
'Dg9mB3DLCKnHC2u',
|
|
86
|
+
'zMLSzxnFy2HHBMDLza',
|
|
87
|
+
'ywrK',
|
|
88
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
89
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
90
|
+
'z2v0sg91CNm',
|
|
91
|
+
'CMvZDwX0sNnVBG',
|
|
92
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
93
|
+
'C3bSAxq',
|
|
94
|
+
'C2vZC2LVBKLK',
|
|
95
|
+
'lsba',
|
|
96
|
+
'zMfPBgvK',
|
|
97
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
322
98
|
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
99
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
100
|
+
'CNvUswq',
|
|
101
|
+
'BgLZDfrHC2TZ',
|
|
102
|
+
'mLnSCLjesG',
|
|
103
|
+
'Dg9gAxHLza',
|
|
104
|
+
'v29YA2vYici',
|
|
105
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
106
|
+
'C2nOzwr1BgvKrM9Y',
|
|
107
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
108
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
109
|
+
'BgLZDf9Zzxj2zxi',
|
|
110
|
+
'C3rHCNrZv2L0Aa',
|
|
111
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
112
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
113
|
+
'ig1LC3nHz2u9',
|
|
114
|
+
'Dg9ju09tDhjPBMC',
|
|
115
|
+
'lNnSB2nR',
|
|
116
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
117
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
118
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
119
|
+
'zgfLBw9UqxbPs2v5',
|
|
327
120
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
328
|
-
'zgvJAxnPB25Z',
|
|
329
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
330
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
331
|
-
'C2vUzf9TzxnZywDL',
|
|
332
|
-
'A2LUza',
|
|
333
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
334
|
-
'DxbSB2fKx2zPBgu',
|
|
335
|
-
'ls1Hz2vUDc1Pza',
|
|
336
|
-
'yMXVy2TLza',
|
|
337
|
-
'Aw1Hz2uVz2LM',
|
|
338
|
-
'lMjPBG',
|
|
339
|
-
'AhjLzG',
|
|
340
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
341
|
-
'yxjYyxLcDwzMzxi',
|
|
342
|
-
'l2nVBNrLBNq',
|
|
343
|
-
'BwvZC2fNzxm',
|
|
344
|
-
'mte5mtm2m3LAAMnesW',
|
|
345
|
-
'Aw5FChjVz3jLC3m',
|
|
346
|
-
'mJy3mtqYne54y0jWwG',
|
|
347
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
348
|
-
'y2HLy2TnzxnZywDLCW',
|
|
349
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
350
|
-
'C2vUzgvYtMfTzq',
|
|
351
|
-
'CMvXDwvZDfvYBa',
|
|
352
121
|
'D29YA2vYtw9Kzq',
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
368
|
-
'AgLNAa',
|
|
369
|
-
'kg5VBMuP',
|
|
370
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
371
|
-
'igLUia',
|
|
372
|
-
'khvUA25VD24P',
|
|
373
|
-
'CgfKu3rHCNq',
|
|
374
|
-
'ywDLBNrjza',
|
|
375
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
376
|
-
'B2jQzwn0',
|
|
377
|
-
'D29YA2vY',
|
|
378
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
379
|
-
'DgfZA051BwjLCG',
|
|
380
|
-
'zgfLBw9UqxbPs2v5',
|
|
381
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
382
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
122
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
123
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
124
|
+
'zgvJAxnPB25Z',
|
|
125
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
126
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
127
|
+
'zw50CMLLCW',
|
|
128
|
+
'DgHYzwfK',
|
|
129
|
+
'zNjVBq',
|
|
130
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
131
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
132
|
+
'Aw1Hz2uVD2vICa',
|
|
133
|
+
'CMvZCg9UC2u',
|
|
134
|
+
'BgLTAxq',
|
|
135
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
383
136
|
'DxbSB2fKrMLSzq',
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
137
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
138
|
+
'C2L6zq',
|
|
139
|
+
'Bg9JywXLq29TCgfYzq',
|
|
140
|
+
'DgHYzwfKswq',
|
|
141
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
142
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
387
143
|
'yxr0ywnOBwvUDhm',
|
|
388
|
-
'
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
144
|
+
'igzHAwXLzdOG',
|
|
145
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
146
|
+
'D3m6',
|
|
147
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
148
|
+
'D29YA19RzxK',
|
|
149
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
150
|
+
'ntu4mZG4nMfLBMz6sq',
|
|
151
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
152
|
+
'C3rYAw5NAwz5',
|
|
153
|
+
'z2v0tw9UDgG',
|
|
154
|
+
'Aw1Hz2uVANbLzW',
|
|
155
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
156
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
157
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
158
|
+
'C2vX',
|
|
159
|
+
'C3vTBwfYEq',
|
|
160
|
+
'ywDLBNq',
|
|
161
|
+
'lcbWCMv2Awv3pq',
|
|
162
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
403
163
|
'yMvMB3jL',
|
|
404
|
-
'
|
|
405
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
406
|
-
'y3jLyxrLzef0',
|
|
407
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
408
|
-
'l3jLy2vPDMu',
|
|
409
|
-
'Dw5JBgfPBvrHC2S',
|
|
410
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
411
|
-
'vgfZAZOG',
|
|
412
|
-
'C2LNBMfS',
|
|
413
|
-
'C2nOzwr1BgvKrM9Y',
|
|
414
|
-
'C29Tzq',
|
|
415
|
-
'ywDNCMvNyxrLswrZ',
|
|
416
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
417
|
-
'ChvIBgLJ',
|
|
418
|
-
'ywXS',
|
|
419
|
-
'igf0DgfJAg1LBNq',
|
|
420
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
421
|
-
'y3jLyxrLvgfZA3m',
|
|
422
|
-
'DgHYzwfKswq',
|
|
423
|
-
'y29UDgvUDc10ExbL',
|
|
164
|
+
'Dg9KBW',
|
|
424
165
|
'y2HHBM5LBfrHCMDLDa',
|
|
425
|
-
'
|
|
426
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
427
|
-
'iYmJiefNzw50CW',
|
|
428
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
429
|
-
'DgfYz2v0zwq',
|
|
430
|
-
'y2HHBM5LBa',
|
|
431
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
432
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
433
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
434
|
-
'zMLSzxnFy2HHBMDLza',
|
|
435
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
436
|
-
'BgLZDfrHC2TZ',
|
|
437
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
438
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
439
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
440
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
166
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
441
167
|
'BgvUz3rO',
|
|
442
|
-
'
|
|
443
|
-
'DgfZA3m',
|
|
444
|
-
'zw51Bq',
|
|
445
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
446
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
447
|
-
'mZyYnZKYn3fWweL2Dq',
|
|
448
|
-
'DxnLCG',
|
|
168
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
449
169
|
'y2HHBM5LBe5HBwu',
|
|
450
|
-
'
|
|
451
|
-
'
|
|
452
|
-
'
|
|
453
|
-
'
|
|
454
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
455
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
456
|
-
'DgHYzwfKvgfYz2v0',
|
|
457
|
-
'zxHWAxjLC0f0',
|
|
458
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
170
|
+
'C2HHmJu2',
|
|
171
|
+
'l2zPBMLZAa',
|
|
172
|
+
'AhvTyw4',
|
|
173
|
+
'BwvTyMvY',
|
|
459
174
|
'C2vUze1LC3nHz2u',
|
|
460
|
-
'
|
|
461
|
-
'
|
|
462
|
-
'
|
|
463
|
-
'
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'
|
|
471
|
-
'
|
|
472
|
-
'
|
|
473
|
-
'
|
|
474
|
-
'C2vX',
|
|
475
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
476
|
-
'yxr0ywnOBwvUDeLK',
|
|
477
|
-
'zMLSzw5HBwu',
|
|
478
|
-
'BMfTzq',
|
|
175
|
+
'ovnWt3rJyq',
|
|
176
|
+
'iYmGu2vYDMvYoIa',
|
|
177
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
178
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
179
|
+
'Dw5JBgfPBv90yxnR',
|
|
180
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
181
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
182
|
+
'C3rYAw5N',
|
|
183
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
184
|
+
'DgfYz2v0',
|
|
185
|
+
'CgfKu3rHCNq',
|
|
186
|
+
'CgfYC2vjBNq',
|
|
187
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
188
|
+
'C2v0',
|
|
479
189
|
'zxjYB3i',
|
|
480
|
-
'
|
|
481
|
-
'
|
|
482
|
-
'
|
|
190
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
191
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
192
|
+
'DMLLD19MAwXL',
|
|
483
193
|
'zgvZy3jPChrPB24',
|
|
484
|
-
'
|
|
485
|
-
'
|
|
486
|
-
'
|
|
487
|
-
'
|
|
488
|
-
'
|
|
489
|
-
'
|
|
490
|
-
'
|
|
491
|
-
'
|
|
492
|
-
'
|
|
493
|
-
'
|
|
494
|
-
'
|
|
495
|
-
'
|
|
496
|
-
'
|
|
497
|
-
'
|
|
498
|
-
'
|
|
499
|
-
'
|
|
194
|
+
'y2HHBM5LBa',
|
|
195
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
196
|
+
'yMXVy2TLza',
|
|
197
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
198
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
199
|
+
'Aw5JBhvKzxm',
|
|
200
|
+
'D2fPDgLUz19PBNb1Da',
|
|
201
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
202
|
+
'DxrMoa',
|
|
203
|
+
'Bwf4',
|
|
204
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
205
|
+
'Dgv4Dc9JC3y',
|
|
206
|
+
'zMLSDgvY',
|
|
207
|
+
'mta1nZDur1DkAfG',
|
|
208
|
+
'iJOGC3rHDhvZpq',
|
|
209
|
+
'zMLUza',
|
|
210
|
+
'igLUia',
|
|
211
|
+
'ywjVCNrLza',
|
|
212
|
+
'Axnoyu4',
|
|
213
|
+
'ywDNCMvNyxrLswq',
|
|
214
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
215
|
+
'Dg9VBa',
|
|
216
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
217
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
218
|
+
'C2XPy2u',
|
|
219
|
+
'y2XHAw1uyxnRCW',
|
|
220
|
+
'AwrSzq',
|
|
221
|
+
'zMLSzw5HBwu',
|
|
222
|
+
'l3rHC2TZ',
|
|
500
223
|
'y29TCgXLDgvK',
|
|
501
|
-
'
|
|
502
|
-
'
|
|
503
|
-
'
|
|
504
|
-
'
|
|
224
|
+
'l3nLBMq',
|
|
225
|
+
'lMjPBG',
|
|
226
|
+
'ywDLBNrjza',
|
|
227
|
+
'BwvZC2fNzq',
|
|
228
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
229
|
+
'C29Tzq',
|
|
230
|
+
'B2jQzwn0',
|
|
231
|
+
'ls1ZzxnZAw9UlwLK',
|
|
232
|
+
'Aw5KzxHpzG',
|
|
233
|
+
'CgfYDgLJAxbHBNrjza',
|
|
234
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
235
|
+
'Bwv0yq',
|
|
236
|
+
'Dw5JBgfPBvrHC2S',
|
|
237
|
+
'xsba',
|
|
238
|
+
'zgf0yq',
|
|
239
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
240
|
+
'mc4WlJa',
|
|
241
|
+
'y29UDgvUDfr5Cgu',
|
|
242
|
+
'DgfZA051BwjLCG',
|
|
243
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
244
|
+
'AhjLzG',
|
|
245
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
246
|
+
'zxHWAxjLC0f0',
|
|
247
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
248
|
+
'DgL0Bgu',
|
|
249
|
+
'y2XHAw0GzMfPBgvK',
|
|
250
|
+
'Dg9tDhjPBMC',
|
|
251
|
+
'yMfZzty0',
|
|
252
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
253
|
+
'ndiWmZm1yxbXshbz',
|
|
254
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
255
|
+
'ywjVCNq',
|
|
256
|
+
'Dgv4Dc9WBgfPBG',
|
|
257
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
258
|
+
'DgfYz2v0zwruyxnR',
|
|
259
|
+
'Aw1Hz2uVz2LM',
|
|
260
|
+
'y2f0y2G',
|
|
261
|
+
'CMvZDwX0CW',
|
|
262
|
+
'zgvZy3jPyMu',
|
|
263
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
264
|
+
'l3rHC2TZpW',
|
|
265
|
+
'y2XHAw1FDgfZA3m',
|
|
266
|
+
'AgvHzgvYCW',
|
|
267
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
505
268
|
'CM9VDe1LC3nHz2vjza',
|
|
506
|
-
'
|
|
507
|
-
'
|
|
508
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
509
|
-
'ihr5Cgu9ywDLBNq',
|
|
510
|
-
'Bwv0yq',
|
|
511
|
-
'AgfZtw9Yzq',
|
|
512
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
513
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
514
|
-
'Aw1Hz2uVANbLzW',
|
|
515
|
-
'DxjNzw50',
|
|
516
|
-
'l3rHC2TZ',
|
|
517
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
269
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
270
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
518
271
|
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
519
|
-
'
|
|
520
|
-
'
|
|
521
|
-
'
|
|
272
|
+
'lsaJ',
|
|
273
|
+
'Aw1Hz2uVCg5N',
|
|
274
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
275
|
+
'y2fJAgveAxi',
|
|
276
|
+
'z2v0twLUDxrLCW',
|
|
277
|
+
'CMvHzeHPC3rVCNK',
|
|
278
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
279
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
280
|
+
'ywDLBNrZ',
|
|
281
|
+
'pgvTChr5pG',
|
|
282
|
+
'yxjNDG',
|
|
283
|
+
'CMvHC29U',
|
|
284
|
+
'C2L6zuj5DgvZ',
|
|
285
|
+
'y3vYC29Y',
|
|
286
|
+
'kgXLz2fJEsK',
|
|
287
|
+
'z2v0',
|
|
288
|
+
'BMfTzq',
|
|
289
|
+
'y29UDgvUDa',
|
|
290
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
291
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
522
292
|
'ihrPBwu9',
|
|
523
|
-
'
|
|
524
|
-
'
|
|
293
|
+
'ig1LC3nHz2vZkqOk',
|
|
294
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
295
|
+
'EM9K',
|
|
296
|
+
'CMvXDwvZDfvYBa',
|
|
297
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
298
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
299
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
300
|
+
'C3vJy2vZCW',
|
|
301
|
+
'yxjYyxK',
|
|
302
|
+
'C2vYDMvY',
|
|
303
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
304
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
305
|
+
'iokaLca',
|
|
525
306
|
'yM9KEvrLEhq',
|
|
526
|
-
'
|
|
527
|
-
'
|
|
528
|
-
'
|
|
529
|
-
'
|
|
530
|
-
'
|
|
531
|
-
'
|
|
532
|
-
'
|
|
533
|
-
'
|
|
534
|
-
'
|
|
307
|
+
'ChjVDg9JB2W',
|
|
308
|
+
'y3jLyxrLvgfZA3m',
|
|
309
|
+
'mtbsA1jAuvu',
|
|
310
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
311
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
312
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
313
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
314
|
+
'Bwf0y2Hoyw1L',
|
|
315
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
316
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
317
|
+
'iYmJiefNzw50CW',
|
|
535
318
|
'CgfYC2u',
|
|
536
|
-
'
|
|
537
|
-
'
|
|
319
|
+
'C29YDa',
|
|
320
|
+
'zg9Uzq',
|
|
321
|
+
'mtC1mdq1rNntsw1S',
|
|
322
|
+
'ANnVBG',
|
|
323
|
+
'ignSywLTzwq',
|
|
324
|
+
'mty1nNLRzKHZrq',
|
|
325
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
326
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
327
|
+
'D3nZoG',
|
|
328
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
329
|
+
'y3jLyxrLzef0',
|
|
330
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
331
|
+
'l3n0yxj0',
|
|
332
|
+
'ywXS',
|
|
333
|
+
'uefuq0G',
|
|
334
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
335
|
+
'y2HHBM5LBeLK',
|
|
336
|
+
'DgfZA0LK',
|
|
337
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
338
|
+
'w3nLCt0',
|
|
339
|
+
'icHPzdO',
|
|
340
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
341
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
342
|
+
'BNvTyMvY',
|
|
343
|
+
'BgLZDf90yxnRCW',
|
|
344
|
+
'ihr5Cgu9ywDLBNq',
|
|
345
|
+
'ihn0yxr1CZ0',
|
|
346
|
+
'y29UDgvUDc10ExbL',
|
|
347
|
+
'Aw5FCMv2Awv3',
|
|
348
|
+
'D29YA2vYCW',
|
|
349
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
350
|
+
'AxngAw5PDgu',
|
|
351
|
+
'zMv0y2HjBxbS',
|
|
538
352
|
'DgvZDa',
|
|
539
|
-
'
|
|
540
|
-
'
|
|
541
|
-
'
|
|
542
|
-
'
|
|
543
|
-
'
|
|
544
|
-
'
|
|
353
|
+
'l2HPC3rVCNK/',
|
|
354
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
355
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
356
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
357
|
+
'zgvSzxrL',
|
|
358
|
+
'zM9Yy2vszwzYzxnO',
|
|
359
|
+
'AxnjBNrLz2vY',
|
|
360
|
+
'ig1ZzZ0',
|
|
361
|
+
'C2LNBMfS',
|
|
362
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
363
|
+
'y3jLyxrLx3rHC2TZ',
|
|
364
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
365
|
+
'z2v0vgLTzq',
|
|
366
|
+
'A2LUza',
|
|
367
|
+
'D29YA2vYsgfUzg9MzG',
|
|
368
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
369
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
370
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
371
|
+
'CMvWBgfJzq',
|
|
372
|
+
'C2vUzgvYtMfTzq',
|
|
373
|
+
'zg06',
|
|
374
|
+
'DgfZAY0',
|
|
375
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
376
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
377
|
+
'DgHYzwfKvgfYz2v0',
|
|
378
|
+
'v29YA2vYia',
|
|
545
379
|
'AhvTyw5Z',
|
|
546
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
547
|
-
'B3bLBL9PC3n1zxm',
|
|
548
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
549
|
-
'Dg9mB3DLCKnHC2u',
|
|
550
|
-
'DgfZA19Pza',
|
|
551
380
|
'yxv0BZO',
|
|
552
|
-
'
|
|
553
|
-
'
|
|
554
|
-
'
|
|
555
|
-
'
|
|
381
|
+
'CMvZDwX0',
|
|
382
|
+
'CNvUBMLUzW',
|
|
383
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
384
|
+
'BwvKAxvT',
|
|
556
385
|
'yMfZzw5HBwu',
|
|
557
|
-
'
|
|
386
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
387
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
388
|
+
'yM9KEu1HCMTKB3DU',
|
|
389
|
+
'BwvZC2fNzxm',
|
|
390
|
+
'CxvLDwvK',
|
|
391
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
392
|
+
'C2vUzgvYvhLWzq',
|
|
393
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
394
|
+
'C3rHDhvZ',
|
|
395
|
+
'y2HHBM5LBhm',
|
|
396
|
+
'CMvHzf9OAxn0B3j5',
|
|
397
|
+
'mJe0oti1v0PPC0f0',
|
|
398
|
+
'DxbSB2fKx2zPBgu',
|
|
399
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
400
|
+
'Cgf5Bg9HzePZB24',
|
|
401
|
+
'AxnbCNjHEq',
|
|
402
|
+
'BwvZC2fNzuLK',
|
|
403
|
+
'r0vu',
|
|
404
|
+
'C2vUzf9TzxnZywDL',
|
|
405
|
+
'D29YA2vY',
|
|
406
|
+
'DxnLCG',
|
|
407
|
+
'z2v0rgf0zq',
|
|
408
|
+
'mJbszu91t0u',
|
|
409
|
+
'DgfZA19Pza',
|
|
410
|
+
'BM93',
|
|
558
411
|
'6k+35Rgcia',
|
|
412
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
413
|
+
'DhLWzq',
|
|
414
|
+
'BgLZDfnLCNzLCG',
|
|
415
|
+
'DhjPBq',
|
|
416
|
+
'CgfYDgLJAxbHBNq',
|
|
417
|
+
'ote0odbpB0vszgK',
|
|
559
418
|
'y2XPzw50',
|
|
560
|
-
'
|
|
561
|
-
'
|
|
562
|
-
'
|
|
563
|
-
'
|
|
564
|
-
'
|
|
565
|
-
'
|
|
566
|
-
'
|
|
567
|
-
'
|
|
568
|
-
'z2v0sg91CNm',
|
|
569
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
570
|
-
'kgXLz2fJEsK',
|
|
571
|
-
'D2fPDgLUz19PBNb1Da',
|
|
572
|
-
'zw50CMLLCW',
|
|
573
|
-
'ignSywLTzwq',
|
|
574
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
575
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
576
|
-
'zgvSzxrL',
|
|
577
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
578
|
-
'y2HHBM5LBeLK',
|
|
579
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
580
|
-
'iYmJienOyw5UzwXZ',
|
|
581
|
-
'ywjVCNq',
|
|
582
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
583
|
-
'BwvKAxvT',
|
|
584
|
-
'Bg93',
|
|
585
|
-
'C3vTBwfYEq'
|
|
419
|
+
'l3rHC2TZl2nSywLT',
|
|
420
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
421
|
+
'BwfW',
|
|
422
|
+
'BMv4Df9ZDgvWCW',
|
|
423
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
424
|
+
'ue9tva',
|
|
425
|
+
'DgfZAW',
|
|
426
|
+
'C2vYDMvYvxjS'
|
|
586
427
|
];
|
|
587
|
-
|
|
588
|
-
return
|
|
428
|
+
_0x2d0d = function () {
|
|
429
|
+
return _0x24037e;
|
|
430
|
+
};
|
|
431
|
+
return _0x2d0d();
|
|
432
|
+
}
|
|
433
|
+
import {
|
|
434
|
+
mkdir,
|
|
435
|
+
readFile,
|
|
436
|
+
readdir,
|
|
437
|
+
stat,
|
|
438
|
+
writeFile
|
|
439
|
+
} from 'node:fs/promises';
|
|
440
|
+
import { homedir } from 'node:os';
|
|
441
|
+
import _0x6a8220 from 'node:path';
|
|
442
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
443
|
+
'.csv': _0x404ee2(0x1d6),
|
|
444
|
+
'.gif': _0x404ee2(0x20c),
|
|
445
|
+
'.jpeg': 'image/jpeg',
|
|
446
|
+
'.jpg': _0x404ee2(0x1a3),
|
|
447
|
+
'.json': 'application/json',
|
|
448
|
+
'.md': 'text/markdown',
|
|
449
|
+
'.pdf': _0x404ee2(0x15c),
|
|
450
|
+
'.png': _0x404ee2(0x21a),
|
|
451
|
+
'.svg': _0x404ee2(0x157),
|
|
452
|
+
'.txt': _0x404ee2(0x209),
|
|
453
|
+
'.webp': _0x404ee2(0x18d),
|
|
454
|
+
'.xml': 'application/xml',
|
|
455
|
+
'.zip': _0x404ee2(0x1e1)
|
|
456
|
+
};
|
|
457
|
+
function guessContentType(_0x50e420) {
|
|
458
|
+
const _0x301ff6 = {
|
|
459
|
+
_0x10942d: 0x125,
|
|
460
|
+
_0x24c8a4: 0x127
|
|
461
|
+
}, _0x527b6e = _0x404ee2;
|
|
462
|
+
return MIME_BY_EXTENSION[_0x6a8220[_0x527b6e(_0x301ff6._0x10942d)](_0x50e420)[_0x527b6e(0x15e)]()] ?? _0x527b6e(_0x301ff6._0x24c8a4);
|
|
463
|
+
}
|
|
464
|
+
function safeFilename(_0x11696b) {
|
|
465
|
+
return _0x11696b['replace'](/[\\/]/g, '-');
|
|
466
|
+
}
|
|
467
|
+
function extensionFor(_0x44864d) {
|
|
468
|
+
const _0x27427d = { _0x52d2a2: 0x1ea }, _0x4f3a1c = _0x404ee2, _0x335a7b = Object[_0x4f3a1c(0x188)](MIME_BY_EXTENSION)['find'](([, _0x14b0e1]) => _0x14b0e1 === _0x44864d);
|
|
469
|
+
return _0x335a7b?.[0x0] ?? _0x4f3a1c(_0x27427d._0x52d2a2);
|
|
470
|
+
}
|
|
471
|
+
async function prepareUploadFile(_0x25d18a, _0x3b2bff = {}) {
|
|
472
|
+
const _0x1dd9df = {
|
|
473
|
+
_0x3aa02e: 0x20d,
|
|
474
|
+
_0x240eae: 0x141,
|
|
475
|
+
_0x5d4f29: 0x193
|
|
476
|
+
}, _0x335c0a = _0x404ee2;
|
|
477
|
+
if (!_0x6a8220[_0x335c0a(0x13c)](_0x25d18a))
|
|
478
|
+
throw new Error(_0x335c0a(0x239));
|
|
479
|
+
const _0x29e680 = await stat(_0x25d18a)[_0x335c0a(_0x1dd9df._0x3aa02e)](() => null);
|
|
480
|
+
if (!_0x29e680 || !_0x29e680['isFile']())
|
|
481
|
+
throw new Error(_0x335c0a(_0x1dd9df._0x240eae) + _0x25d18a);
|
|
482
|
+
const _0x4237e6 = _0x3b2bff[_0x335c0a(0x1ed)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
483
|
+
if (_0x29e680[_0x335c0a(0x193)] > _0x4237e6)
|
|
484
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x29e680[_0x335c0a(_0x1dd9df._0x5d4f29)]);
|
|
485
|
+
const _0x258d52 = await readFile(_0x25d18a), _0xea983 = _0x6a8220[_0x335c0a(0x28a)](_0x25d18a);
|
|
486
|
+
return {
|
|
487
|
+
'contentBase64': _0x258d52['toString'](_0x335c0a(0x204)),
|
|
488
|
+
'contentType': guessContentType(_0xea983),
|
|
489
|
+
'filename': _0xea983,
|
|
490
|
+
'sizeBytes': _0x29e680[_0x335c0a(0x193)]
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
function createAttachmentCache(_0xaaf292 = {}) {
|
|
494
|
+
const _0x259387 = {
|
|
495
|
+
_0x2fa5be: 0x21c,
|
|
496
|
+
_0x2ffe56: 0x147
|
|
497
|
+
}, _0x598d0d = {
|
|
498
|
+
_0x3c438b: 0x1fa,
|
|
499
|
+
_0x45192e: 0x2b6,
|
|
500
|
+
_0x12bb61: 0x1f7
|
|
501
|
+
}, _0xcfe665 = { _0xaff5f: 0x1da }, _0x56ea5f = _0x404ee2, _0xa418b = _0xaaf292[_0x56ea5f(_0x259387._0x2fa5be)] ?? _0x6a8220[_0x56ea5f(_0x259387._0x2ffe56)](homedir(), _0x56ea5f(0x17c), _0x56ea5f(0x198));
|
|
502
|
+
return {
|
|
503
|
+
'cacheDir': _0xa418b,
|
|
504
|
+
async 'findCachedPath'(_0x486f44) {
|
|
505
|
+
const _0x4956d2 = _0x56ea5f;
|
|
506
|
+
await mkdir(_0xa418b, { 'recursive': !![] });
|
|
507
|
+
const _0x1a22a9 = await readdir(_0xa418b), _0x45024b = _0x1a22a9[_0x4956d2(_0xcfe665._0xaff5f)](_0x2d68d0 => _0x2d68d0['startsWith'](_0x486f44 + '-') || _0x2d68d0[_0x4956d2(0x177)](_0x486f44));
|
|
508
|
+
return _0x45024b ? _0x6a8220['join'](_0xa418b, _0x45024b) : null;
|
|
509
|
+
},
|
|
510
|
+
async 'save'(_0x199a8d) {
|
|
511
|
+
const _0x45d735 = _0x56ea5f;
|
|
512
|
+
await mkdir(_0xa418b, { 'recursive': !![] });
|
|
513
|
+
const _0x35b67e = _0x199a8d[_0x45d735(0x1bb)]?.[_0x45d735(0x2a8)]() ? safeFilename(_0x199a8d[_0x45d735(0x1bb)]) : '' + _0x199a8d[_0x45d735(0x2b6)] + extensionFor(_0x199a8d[_0x45d735(_0x598d0d._0x3c438b)]), _0x300360 = _0x6a8220['join'](_0xa418b, _0x199a8d[_0x45d735(_0x598d0d._0x45192e)] + '-' + _0x35b67e);
|
|
514
|
+
return await writeFile(_0x300360, _0x199a8d[_0x45d735(_0x598d0d._0x12bb61)]), _0x300360;
|
|
515
|
+
}
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
import {
|
|
519
|
+
createHash,
|
|
520
|
+
randomUUID
|
|
521
|
+
} from 'node:crypto';
|
|
522
|
+
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
523
|
+
function ensureSegment(_0x5c0f3d) {
|
|
524
|
+
const _0x27e7e2 = _0x404ee2, _0x12e7af = _0x5c0f3d['trim']();
|
|
525
|
+
if (!_0x12e7af || _0x12e7af[_0x27e7e2(0x1d0)](':'))
|
|
526
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
+
return _0x12e7af;
|
|
528
|
+
}
|
|
529
|
+
function parseThreadParts(_0x155986) {
|
|
530
|
+
const _0x221a90 = { _0x403918: 0x1b0 }, _0xe0bcb0 = _0x404ee2, _0x3740b6 = _0x155986[_0xe0bcb0(0x166)](':');
|
|
531
|
+
if (_0x3740b6[_0xe0bcb0(_0x221a90._0x403918)] < 0x1 || _0x3740b6[_0xe0bcb0(0x1b0)] > 0x2)
|
|
532
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
533
|
+
return {
|
|
534
|
+
'channelName': ensureSegment(_0x3740b6[0x0] ?? ''),
|
|
535
|
+
'threadShortId': _0x3740b6[0x1] ? ensureSegment(_0x3740b6[0x1]) : null
|
|
589
536
|
};
|
|
590
|
-
return _0x345b();
|
|
591
537
|
}
|
|
592
|
-
function
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
538
|
+
function parseTarget(_0x143722) {
|
|
539
|
+
const _0x1c0b88 = {
|
|
540
|
+
_0x2c52d4: 0x1b2,
|
|
541
|
+
_0x477c23: 0x1cb,
|
|
542
|
+
_0x39e6d9: 0x189,
|
|
543
|
+
_0x4b1613: 0x177,
|
|
544
|
+
_0x5e900e: 0x1b2,
|
|
545
|
+
_0x4f5f23: 0x1cb,
|
|
546
|
+
_0x1ae844: 0x189
|
|
547
|
+
}, _0x3a10f0 = _0x404ee2, _0x8c4043 = _0x143722['trim']();
|
|
548
|
+
if (!_0x8c4043)
|
|
549
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
550
|
+
if (_0x8c4043[_0x3a10f0(0x177)]('#')) {
|
|
551
|
+
const _0x3b9d43 = parseThreadParts(_0x8c4043[_0x3a10f0(0x1e3)](0x1)), _0x51cccc = '#' + _0x3b9d43[_0x3a10f0(_0x1c0b88._0x2c52d4)];
|
|
552
|
+
if (!_0x3b9d43[_0x3a10f0(0x154)])
|
|
553
|
+
return {
|
|
554
|
+
'channelName': _0x3b9d43['channelName'],
|
|
555
|
+
'channelTarget': _0x51cccc,
|
|
556
|
+
'kind': _0x3a10f0(_0x1c0b88._0x477c23),
|
|
557
|
+
'target': _0x51cccc
|
|
558
|
+
};
|
|
559
|
+
return {
|
|
560
|
+
'channelName': _0x3b9d43['channelName'],
|
|
561
|
+
'channelTarget': _0x51cccc,
|
|
562
|
+
'kind': _0x3a10f0(_0x1c0b88._0x39e6d9),
|
|
563
|
+
'target': _0x51cccc + ':' + _0x3b9d43['threadShortId'],
|
|
564
|
+
'threadShortId': _0x3b9d43['threadShortId']
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
if (_0x8c4043[_0x3a10f0(_0x1c0b88._0x4b1613)](_0x3a10f0(0x27e))) {
|
|
568
|
+
const _0x1be02f = parseThreadParts(_0x8c4043[_0x3a10f0(0x1e3)](0x3));
|
|
569
|
+
if (!_0x1be02f[_0x3a10f0(0x1b2)]['startsWith']('dm-'))
|
|
570
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
571
|
+
const _0x93bb56 = 'dm:' + _0x1be02f[_0x3a10f0(0x1b2)];
|
|
572
|
+
if (!_0x1be02f['threadShortId'])
|
|
573
|
+
return {
|
|
574
|
+
'channelName': _0x1be02f[_0x3a10f0(_0x1c0b88._0x5e900e)],
|
|
575
|
+
'channelTarget': _0x93bb56,
|
|
576
|
+
'kind': _0x3a10f0(_0x1c0b88._0x4f5f23),
|
|
577
|
+
'target': _0x93bb56
|
|
578
|
+
};
|
|
579
|
+
return {
|
|
580
|
+
'channelName': _0x1be02f[_0x3a10f0(0x1b2)],
|
|
581
|
+
'channelTarget': _0x93bb56,
|
|
582
|
+
'kind': _0x3a10f0(_0x1c0b88._0x1ae844),
|
|
583
|
+
'target': _0x93bb56 + ':' + _0x1be02f['threadShortId'],
|
|
584
|
+
'threadShortId': _0x1be02f[_0x3a10f0(0x154)]
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
588
|
+
}
|
|
589
|
+
function asErrorMessage(_0xba5ad5, _0x592d14) {
|
|
590
|
+
const _0x4bb557 = {
|
|
591
|
+
_0x4ae4b1: 0x1bf,
|
|
592
|
+
_0x27fb9b: 0x2a8
|
|
593
|
+
}, _0x4e4e31 = _0x404ee2;
|
|
594
|
+
if (typeof _0xba5ad5 === _0x4e4e31(_0x4bb557._0x4ae4b1) && _0xba5ad5[_0x4e4e31(_0x4bb557._0x27fb9b)]())
|
|
595
|
+
return _0xba5ad5;
|
|
596
|
+
return _0x592d14;
|
|
597
|
+
}
|
|
598
|
+
function asRecord(_0x37afd7) {
|
|
599
|
+
return typeof _0x37afd7 === 'object' && _0x37afd7 !== null ? _0x37afd7 : {};
|
|
600
|
+
}
|
|
601
|
+
function stableStringify(_0x28b9f3) {
|
|
602
|
+
const _0x2c1720 = {
|
|
603
|
+
_0x46ac2f: 0x1ef,
|
|
604
|
+
_0x3510a1: 0x29a,
|
|
605
|
+
_0x4db77b: 0x147,
|
|
606
|
+
_0x5683e6: 0x188,
|
|
607
|
+
_0x17dcf2: 0x1d7,
|
|
608
|
+
_0x72c15a: 0x2ae
|
|
609
|
+
}, _0x296212 = _0x404ee2;
|
|
610
|
+
if (_0x28b9f3 === null || typeof _0x28b9f3 !== _0x296212(_0x2c1720._0x46ac2f))
|
|
611
|
+
return JSON[_0x296212(0x1a1)](_0x28b9f3);
|
|
612
|
+
if (Array[_0x296212(_0x2c1720._0x3510a1)](_0x28b9f3))
|
|
613
|
+
return '[' + _0x28b9f3[_0x296212(0x2ae)](_0x4e8034 => stableStringify(_0x4e8034))[_0x296212(_0x2c1720._0x4db77b)](',') + ']';
|
|
614
|
+
const _0x1b3dab = Object[_0x296212(_0x2c1720._0x5683e6)](_0x28b9f3)[_0x296212(_0x2c1720._0x17dcf2)](([, _0xb7b42]) => _0xb7b42 !== void 0x0)['sort'](([_0x4de402], [_0x1ab900]) => _0x4de402[_0x296212(0x194)](_0x1ab900))[_0x296212(_0x2c1720._0x72c15a)](([_0x142d91, _0x4e3939]) => JSON[_0x296212(0x1a1)](_0x142d91) + ':' + stableStringify(_0x4e3939));
|
|
615
|
+
return '{' + _0x1b3dab['join'](',') + '}';
|
|
605
616
|
}
|
|
606
|
-
function createHeaders(
|
|
607
|
-
const
|
|
617
|
+
function createHeaders(_0x47c322) {
|
|
618
|
+
const _0x3c38ae = _0x404ee2;
|
|
608
619
|
return {
|
|
609
|
-
'Content-Type':
|
|
610
|
-
'x-daemon-api-key':
|
|
620
|
+
'Content-Type': _0x3c38ae(0x174),
|
|
621
|
+
'x-daemon-api-key': _0x47c322
|
|
611
622
|
};
|
|
612
623
|
}
|
|
613
|
-
function toHttpBaseUrl(
|
|
614
|
-
const
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
_0x323ef4[_0x576396(_0x58baad._0x39cd84)] = _0x576396(0x231);
|
|
624
|
+
function toHttpBaseUrl(_0x237746) {
|
|
625
|
+
const _0x3d2189 = {
|
|
626
|
+
_0x1d569d: 0x23c,
|
|
627
|
+
_0x41fa3e: 0x12b,
|
|
628
|
+
_0x1cfa1e: 0x203,
|
|
629
|
+
_0x22694d: 0x27c
|
|
630
|
+
}, _0x3aff42 = _0x404ee2, _0x329060 = new URL(_0x237746);
|
|
631
|
+
if (_0x329060[_0x3aff42(_0x3d2189._0x1d569d)] === _0x3aff42(0x19b))
|
|
632
|
+
_0x329060['protocol'] = _0x3aff42(_0x3d2189._0x41fa3e);
|
|
623
633
|
else
|
|
624
|
-
|
|
625
|
-
return
|
|
634
|
+
_0x329060['protocol'] === _0x3aff42(0x250) && (_0x329060['protocol'] = 'https:');
|
|
635
|
+
return _0x329060[_0x3aff42(_0x3d2189._0x1cfa1e)]()[_0x3aff42(_0x3d2189._0x22694d)](/\/$/, '');
|
|
626
636
|
}
|
|
627
|
-
function isMentionBoundary(
|
|
628
|
-
|
|
637
|
+
function isMentionBoundary(_0x850835) {
|
|
638
|
+
const _0x44617c = { _0x2b2c72: 0x269 }, _0x435394 = _0x404ee2;
|
|
639
|
+
return !_0x850835 || /\s|[([{'",。!?、:;]/[_0x435394(_0x44617c._0x2b2c72)](_0x850835);
|
|
629
640
|
}
|
|
630
|
-
function isMentionTerminal(
|
|
631
|
-
|
|
632
|
-
return !_0x297647 || /\s|[)\]}'",。!?、:;,.!?]/[_0x367310(_0x3c6881._0x6a929d)](_0x297647);
|
|
641
|
+
function isMentionTerminal(_0x1ab5e9) {
|
|
642
|
+
return !_0x1ab5e9 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x1ab5e9);
|
|
633
643
|
}
|
|
634
|
-
function buildMatchableEntries(
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
+
function buildMatchableEntries(_0x2678bc) {
|
|
645
|
+
const _0x37c710 = {
|
|
646
|
+
_0x3a5dba: 0x221,
|
|
647
|
+
_0x63a9ce: 0x284,
|
|
648
|
+
_0x40e9e4: 0x229,
|
|
649
|
+
_0xf79220: 0x229,
|
|
650
|
+
_0x37f358: 0x146,
|
|
651
|
+
_0x70533f: 0x16c
|
|
652
|
+
}, _0x524be6 = _0x404ee2, _0x4a607f = [];
|
|
653
|
+
for (const _0x46e522 of [
|
|
654
|
+
..._0x2678bc[_0x524be6(_0x37c710._0x3a5dba)],
|
|
655
|
+
..._0x2678bc[_0x524be6(_0x37c710._0x63a9ce)]
|
|
644
656
|
]) {
|
|
645
|
-
|
|
646
|
-
'matchName':
|
|
647
|
-
'matchNameLower':
|
|
648
|
-
'participantId':
|
|
649
|
-
}),
|
|
650
|
-
'matchName':
|
|
651
|
-
'matchNameLower':
|
|
652
|
-
'participantId':
|
|
657
|
+
_0x4a607f[_0x524be6(0x146)]({
|
|
658
|
+
'matchName': _0x46e522[_0x524be6(_0x37c710._0x40e9e4)],
|
|
659
|
+
'matchNameLower': _0x46e522['name'][_0x524be6(0x16c)](),
|
|
660
|
+
'participantId': _0x46e522['id']
|
|
661
|
+
}), _0x46e522['id'] !== _0x46e522[_0x524be6(_0x37c710._0xf79220)] && _0x4a607f[_0x524be6(_0x37c710._0x37f358)]({
|
|
662
|
+
'matchName': _0x46e522['id'],
|
|
663
|
+
'matchNameLower': _0x46e522['id'][_0x524be6(_0x37c710._0x70533f)](),
|
|
664
|
+
'participantId': _0x46e522['id']
|
|
653
665
|
});
|
|
654
666
|
}
|
|
655
|
-
return
|
|
667
|
+
return _0x4a607f;
|
|
656
668
|
}
|
|
657
|
-
function extractMentionedParticipantIds(
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
669
|
+
function extractMentionedParticipantIds(_0x287760, _0x469b5f) {
|
|
670
|
+
const _0x44789c = {
|
|
671
|
+
_0x11b34b: 0x248,
|
|
672
|
+
_0x21e28f: 0x1b0,
|
|
673
|
+
_0x3ef28c: 0x1e3,
|
|
674
|
+
_0x4cd2ee: 0x160,
|
|
675
|
+
_0x2c5bb5: 0x1f2,
|
|
676
|
+
_0x5af884: 0x146,
|
|
677
|
+
_0x121879: 0x243
|
|
678
|
+
}, _0x44379c = {
|
|
679
|
+
_0x15b917: 0x177,
|
|
680
|
+
_0x51d606: 0x22b,
|
|
681
|
+
_0x5b0871: 0x1b0
|
|
682
|
+
}, _0x5dbc56 = _0x404ee2, _0x4805cd = buildMatchableEntries(_0x469b5f)[_0x5dbc56(_0x44789c._0x11b34b)]((_0x31a075, _0x5f3a1e) => _0x5f3a1e['matchName'][_0x5dbc56(0x1b0)] - _0x31a075[_0x5dbc56(0x243)][_0x5dbc56(0x1b0)]), _0x2fd9fc = [], _0x5c3a14 = new Set();
|
|
683
|
+
for (let _0x4035bf = 0x0; _0x4035bf < _0x287760[_0x5dbc56(_0x44789c._0x21e28f)]; _0x4035bf += 0x1) {
|
|
684
|
+
if (_0x287760[_0x4035bf] !== '@' || !isMentionBoundary(_0x287760[_0x4035bf - 0x1]))
|
|
671
685
|
continue;
|
|
672
|
-
const
|
|
673
|
-
const
|
|
674
|
-
if (!
|
|
686
|
+
const _0x4c2478 = _0x287760[_0x5dbc56(_0x44789c._0x3ef28c)](_0x4035bf + 0x1), _0x1562a7 = _0x4c2478[_0x5dbc56(0x16c)](), _0x31f689 = _0x4805cd[_0x5dbc56(0x1da)](_0xd9ccc9 => {
|
|
687
|
+
const _0x42eace = _0x5dbc56;
|
|
688
|
+
if (!_0x1562a7[_0x42eace(_0x44379c._0x15b917)](_0xd9ccc9[_0x42eace(_0x44379c._0x51d606)]))
|
|
675
689
|
return ![];
|
|
676
|
-
return isMentionTerminal(
|
|
690
|
+
return isMentionTerminal(_0x4c2478[_0xd9ccc9['matchName'][_0x42eace(_0x44379c._0x5b0871)]]);
|
|
677
691
|
});
|
|
678
|
-
if (!
|
|
692
|
+
if (!_0x31f689 || _0x5c3a14['has'](_0x31f689['participantId']))
|
|
679
693
|
continue;
|
|
680
|
-
|
|
694
|
+
_0x5c3a14[_0x5dbc56(_0x44789c._0x4cd2ee)](_0x31f689[_0x5dbc56(_0x44789c._0x2c5bb5)]), _0x2fd9fc[_0x5dbc56(_0x44789c._0x5af884)](_0x31f689['participantId']), _0x4035bf += _0x31f689[_0x5dbc56(_0x44789c._0x121879)][_0x5dbc56(0x1b0)];
|
|
681
695
|
}
|
|
682
|
-
return
|
|
696
|
+
return _0x2fd9fc;
|
|
683
697
|
}
|
|
684
698
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
685
|
-
function anySignal(...
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
699
|
+
function anySignal(..._0x57c510) {
|
|
700
|
+
const _0x565a54 = {
|
|
701
|
+
_0x27da12: 0x224,
|
|
702
|
+
_0x260322: 0x272,
|
|
703
|
+
_0x3a077a: 0x208,
|
|
704
|
+
_0x5c4fb3: 0x272
|
|
705
|
+
}, _0x4fdf38 = _0x404ee2, _0x1d9b9a = new AbortController();
|
|
706
|
+
for (const _0x43d95d of _0x57c510) {
|
|
707
|
+
if (_0x43d95d[_0x4fdf38(0x1dc)])
|
|
708
|
+
return _0x1d9b9a[_0x4fdf38(0x208)](_0x43d95d[_0x4fdf38(_0x565a54._0x27da12)]), _0x1d9b9a[_0x4fdf38(_0x565a54._0x260322)];
|
|
709
|
+
_0x43d95d[_0x4fdf38(0x218)](_0x4fdf38(_0x565a54._0x3a077a), () => _0x1d9b9a[_0x4fdf38(0x208)](_0x43d95d[_0x4fdf38(0x224)]), {
|
|
694
710
|
'once': !![],
|
|
695
|
-
'signal':
|
|
711
|
+
'signal': _0x1d9b9a[_0x4fdf38(_0x565a54._0x5c4fb3)]
|
|
696
712
|
});
|
|
697
713
|
}
|
|
698
|
-
return
|
|
714
|
+
return _0x1d9b9a[_0x4fdf38(0x272)];
|
|
699
715
|
}
|
|
700
|
-
function createInternalAgentClient(
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
},
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
},
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
},
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
},
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
716
|
+
function createInternalAgentClient(_0x31b80b) {
|
|
717
|
+
const _0x568249 = {
|
|
718
|
+
_0xa0a9ee: 0x268,
|
|
719
|
+
_0x307e07: 0x233,
|
|
720
|
+
_0x517556: 0x2a8,
|
|
721
|
+
_0xc4ba9f: 0x167,
|
|
722
|
+
_0x1cf49b: 0x2a8
|
|
723
|
+
}, _0x339e77 = {
|
|
724
|
+
_0x1f1da6: 0x1c5,
|
|
725
|
+
_0x8b30e6: 0x203,
|
|
726
|
+
_0x2a79c1: 0x28c,
|
|
727
|
+
_0x7ae645: 0x258,
|
|
728
|
+
_0x465f51: 0x195,
|
|
729
|
+
_0x141a7c: 0x195,
|
|
730
|
+
_0x596ed0: 0x1bf,
|
|
731
|
+
_0x226cb9: 0x215,
|
|
732
|
+
_0x1e9be4: 0x25f,
|
|
733
|
+
_0x5a1932: 0x270,
|
|
734
|
+
_0x1c60fe: 0x1de,
|
|
735
|
+
_0x30dd48: 0x228,
|
|
736
|
+
_0x317525: 0x153,
|
|
737
|
+
_0x28a09d: 0x153,
|
|
738
|
+
_0x5bbfb1: 0x299,
|
|
739
|
+
_0x1c1b9c: 0x228,
|
|
740
|
+
_0x25ed59: 0x27e,
|
|
741
|
+
_0x3962e2: 0x2ae,
|
|
742
|
+
_0x321a82: 0x165,
|
|
743
|
+
_0x3234df: 0x146,
|
|
744
|
+
_0x4a1b38: 0x22a,
|
|
745
|
+
_0x58ee06: 0x252,
|
|
746
|
+
_0x4f01cd: 0x27d,
|
|
747
|
+
_0x43e644: 0x27b,
|
|
748
|
+
_0xf00063: 0x1bf
|
|
749
|
+
}, _0x9e0b9c = {
|
|
750
|
+
_0x3088c6: 0x1cb,
|
|
751
|
+
_0x368948: 0x149,
|
|
752
|
+
_0x360a2d: 0x1ac,
|
|
753
|
+
_0x840063: 0x18f,
|
|
754
|
+
_0x3ccf2b: 0x195
|
|
755
|
+
}, _0x160919 = {
|
|
756
|
+
_0x10e404: 0x1ba,
|
|
757
|
+
_0x45b676: 0x29c,
|
|
758
|
+
_0x409321: 0x1f7,
|
|
759
|
+
_0x487edb: 0x213,
|
|
760
|
+
_0x50f4f2: 0x263,
|
|
761
|
+
_0x2ad7a1: 0x127,
|
|
762
|
+
_0x142b74: 0x18a,
|
|
763
|
+
_0x24fa38: 0x1f7
|
|
764
|
+
}, _0x5a536f = {
|
|
765
|
+
_0x590872: 0x1cb,
|
|
766
|
+
_0x49992a: 0x28c,
|
|
767
|
+
_0x33b5a8: 0x1c1,
|
|
768
|
+
_0xfb2e6: 0x13b,
|
|
769
|
+
_0x305a26: 0x2b1,
|
|
770
|
+
_0x302443: 0x1bb
|
|
771
|
+
}, _0x4bf8e0 = { _0x47da24: 0x1d5 }, _0x53c54b = {
|
|
772
|
+
_0xf4eb8d: 0x28c,
|
|
773
|
+
_0x284e81: 0x1bc,
|
|
774
|
+
_0x5a1875: 0x2b1
|
|
775
|
+
}, _0x232fa2 = {
|
|
776
|
+
_0x4f8d63: 0x28c,
|
|
777
|
+
_0x32b3bf: 0x2ac,
|
|
778
|
+
_0x53229c: 0x2b1
|
|
779
|
+
}, _0x4d5877 = {
|
|
780
|
+
_0x328864: 0x1a1,
|
|
781
|
+
_0x40104c: 0x2b1
|
|
782
|
+
}, _0x23ca0b = {
|
|
783
|
+
_0x5daca1: 0x1cb,
|
|
784
|
+
_0x5d878e: 0x293,
|
|
785
|
+
_0x3476b4: 0x211
|
|
786
|
+
}, _0x23f913 = {
|
|
787
|
+
_0x24aac4: 0x16d,
|
|
788
|
+
_0x42bfcd: 0x1b4,
|
|
789
|
+
_0x4dc7a4: 0x1c6,
|
|
790
|
+
_0x315da7: 0x164
|
|
791
|
+
}, _0x29977e = {
|
|
792
|
+
_0x58a2e2: 0x1a1,
|
|
793
|
+
_0x13aafe: 0x2b1,
|
|
794
|
+
_0x32323f: 0x287
|
|
795
|
+
}, _0x1b6560 = {
|
|
796
|
+
_0x48d24c: 0x1a1,
|
|
797
|
+
_0x547993: 0x173
|
|
798
|
+
}, _0x49027f = {
|
|
799
|
+
_0x1ba8be: 0x220,
|
|
800
|
+
_0x1cfd82: 0x1f7
|
|
801
|
+
}, _0x2105a7 = {
|
|
802
|
+
_0x24a1c7: 0x1c1,
|
|
803
|
+
_0x1987f0: 0x22a,
|
|
804
|
+
_0x3e20bf: 0x1eb,
|
|
805
|
+
_0x3d6783: 0x1a1,
|
|
806
|
+
_0x2f30a7: 0x1a5,
|
|
807
|
+
_0x590637: 0x128,
|
|
808
|
+
_0x3bf988: 0x2b1,
|
|
809
|
+
_0x45315f: 0x1f7
|
|
810
|
+
}, _0x1ac081 = {
|
|
811
|
+
_0x14ccde: 0x133,
|
|
812
|
+
_0x40e7c7: 0x18f,
|
|
813
|
+
_0xc92c44: 0x1c5,
|
|
814
|
+
_0x3c7d32: 0x195,
|
|
815
|
+
_0x5c6679: 0x258,
|
|
816
|
+
_0x596d72: 0x1c5,
|
|
817
|
+
_0x3df4b8: 0x28c,
|
|
818
|
+
_0x2acf34: 0x1f7
|
|
819
|
+
}, _0xa7c811 = { _0x2598a3: 0x229 }, _0x290f0a = {
|
|
820
|
+
_0x5116b0: 0x1b6,
|
|
821
|
+
_0x5b8730: 0x1f2
|
|
822
|
+
}, _0x40944e = {
|
|
823
|
+
_0x1bf874: 0x277,
|
|
824
|
+
_0x29e80f: 0x1ae,
|
|
825
|
+
_0x567d64: 0x153,
|
|
826
|
+
_0x3728dd: 0x215,
|
|
827
|
+
_0x37f8e2: 0x177,
|
|
828
|
+
_0x18a585: 0x195,
|
|
829
|
+
_0x97b04d: 0x177
|
|
830
|
+
}, _0x78ce87 = {
|
|
831
|
+
_0x1fc41a: 0x153,
|
|
832
|
+
_0x44b018: 0x215,
|
|
833
|
+
_0x264885: 0x195
|
|
834
|
+
}, _0x14dce5 = { _0x22e2d0: 0x1b5 }, _0xe402a7 = {
|
|
835
|
+
_0x5a5146: 0x26f,
|
|
836
|
+
_0x5beeac: 0x20d
|
|
837
|
+
}, _0x5080b8 = {
|
|
838
|
+
_0x3c5527: 0x28c,
|
|
839
|
+
_0x3ad126: 0x1d7,
|
|
840
|
+
_0x3d0ff8: 0x2ae,
|
|
841
|
+
_0x54f27c: 0x1d7,
|
|
842
|
+
_0x136f7d: 0x1f7,
|
|
843
|
+
_0x33cc18: 0x237
|
|
844
|
+
}, _0x18375d = {
|
|
845
|
+
_0xd2850f: 0x28c,
|
|
846
|
+
_0x487fe1: 0x1eb,
|
|
847
|
+
_0x11b032: 0x214,
|
|
848
|
+
_0x27b52b: 0x1a1,
|
|
849
|
+
_0x454c0f: 0x1c1,
|
|
850
|
+
_0x421738: 0x2b1,
|
|
851
|
+
_0x4800f2: 0x258,
|
|
852
|
+
_0x391b6e: 0x2b2,
|
|
853
|
+
_0x55c235: 0x195,
|
|
854
|
+
_0x1c1e05: 0x1f7
|
|
855
|
+
}, _0x3dd5e2 = {
|
|
856
|
+
_0x30b084: 0x1af,
|
|
857
|
+
_0xde3934: 0x2b1
|
|
858
|
+
}, _0x4fa73d = {
|
|
859
|
+
_0x452990: 0x273,
|
|
860
|
+
_0x5f2083: 0x1a1,
|
|
861
|
+
_0x2904f5: 0x256
|
|
862
|
+
}, _0x400123 = {
|
|
863
|
+
_0x2959b7: 0x272,
|
|
864
|
+
_0x16515c: 0x272,
|
|
865
|
+
_0x5f2c8f: 0x272
|
|
866
|
+
}, _0x7b3dd9 = {
|
|
867
|
+
_0x2bcd4b: 0x2a3,
|
|
868
|
+
_0x160db2: 0x1ff,
|
|
869
|
+
_0x11592f: 0x26e,
|
|
870
|
+
_0x261c9f: 0x13a,
|
|
871
|
+
_0x1bb85e: 0x228,
|
|
872
|
+
_0x205388: 0x1c5
|
|
873
|
+
}, _0x3a55b8 = {
|
|
874
|
+
_0xccf4be: 0x151,
|
|
875
|
+
_0x207e7b: 0x1d3,
|
|
876
|
+
_0x3b386f: 0x2a8,
|
|
877
|
+
_0x199206: 0x247
|
|
878
|
+
}, _0x46e59f = {
|
|
879
|
+
_0x9d43a6: 0x18e,
|
|
880
|
+
_0x304857: 0x263,
|
|
881
|
+
_0x155690: 0x27c,
|
|
882
|
+
_0x9734f3: 0x222,
|
|
883
|
+
_0x19f25d: 0x2a4,
|
|
884
|
+
_0x58c8d9: 0x1ce,
|
|
885
|
+
_0x52770c: 0x1aa
|
|
886
|
+
}, _0x1b1d28 = _0x404ee2, _0x3f8ab2 = _0x31b80b[_0x1b1d28(_0x568249._0xa0a9ee)] ?? fetch, _0x5ef790 = _0x31b80b['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2e1706 = typeof _0x31b80b[_0x1b1d28(_0x568249._0x307e07)] === _0x1b1d28(0x25f) && _0x31b80b[_0x1b1d28(0x233)] > 0x0 ? _0x31b80b['initialLastSeenSeq'] : 0x0, _0x25d0bb = _0x31b80b[_0x1b1d28(0x14e)]?.[_0x1b1d28(_0x568249._0x517556)]() || void 0x0, _0x1ad9fb = _0x31b80b[_0x1b1d28(_0x568249._0xc4ba9f)]?.['trim']() || void 0x0, _0x548bee = _0x31b80b[_0x1b1d28(0x158)] === !![], _0x3749a8 = _0x31b80b[_0x1b1d28(0x26d)]?.[_0x1b1d28(0x2a8)]() || void 0x0, _0x125477 = _0x31b80b[_0x1b1d28(0x1a4)]?.[_0x1b1d28(_0x568249._0x1cf49b)]() || void 0x0, _0x3b3190 = createHeaders(_0x31b80b[_0x1b1d28(0x180)]), _0x100ae2 = toHttpBaseUrl(_0x31b80b[_0x1b1d28(0x2b3)]);
|
|
887
|
+
let _0x3b48a7 = null;
|
|
888
|
+
const _0x2397f3 = new Map();
|
|
889
|
+
let _0x31990d = _0x2e1706, _0x5e1c46 = _0x2e1706;
|
|
890
|
+
function _0x311365(_0x5afa51) {
|
|
891
|
+
const _0x2f3e74 = _0x1b1d28, _0x2b8af8 = _0x5afa51[_0x2f3e74(_0x46e59f._0x9d43a6)][_0x2f3e74(0x213)][_0x2f3e74(0x228)](_0x2f3e74(_0x46e59f._0x304857)) ?? 'unknown', _0x56bed6 = _0x5afa51[_0x2f3e74(0x23b)][_0x2f3e74(0x2a8)]()[_0x2f3e74(_0x46e59f._0x155690)](/\s+/g, '\x20')[_0x2f3e74(0x1e3)](0x0, 0x78) || _0x2f3e74(_0x46e59f._0x9734f3);
|
|
892
|
+
return _0x2f3e74(_0x46e59f._0x19f25d) + _0x5afa51[_0x2f3e74(0x231)] + _0x2f3e74(_0x46e59f._0x58c8d9) + _0x5afa51[_0x2f3e74(0x18e)]['status'] + _0x2f3e74(0x26b) + _0x2b8af8 + _0x2f3e74(_0x46e59f._0x52770c) + _0x56bed6 + _0x2f3e74(0x1fe);
|
|
861
893
|
}
|
|
862
|
-
async function
|
|
863
|
-
const
|
|
864
|
-
if (!
|
|
894
|
+
async function _0x1fc2cd(_0x1863c9, _0x67ed07) {
|
|
895
|
+
const _0x3d318d = _0x1b1d28, _0x3d6665 = Buffer[_0x3d318d(0x18a)](await _0x67ed07[_0x3d318d(_0x3a55b8._0xccf4be)]())[_0x3d318d(0x203)](_0x3d318d(_0x3a55b8._0x207e7b));
|
|
896
|
+
if (!_0x3d6665[_0x3d318d(_0x3a55b8._0x3b386f)]())
|
|
865
897
|
return {};
|
|
866
898
|
try {
|
|
867
|
-
return JSON[
|
|
899
|
+
return JSON[_0x3d318d(_0x3a55b8._0x199206)](_0x3d6665);
|
|
868
900
|
} catch {
|
|
869
|
-
throw new Error(
|
|
870
|
-
'bodyText':
|
|
871
|
-
'requestUrl':
|
|
872
|
-
'response':
|
|
901
|
+
throw new Error(_0x311365({
|
|
902
|
+
'bodyText': _0x3d6665,
|
|
903
|
+
'requestUrl': _0x1863c9,
|
|
904
|
+
'response': _0x67ed07
|
|
873
905
|
}));
|
|
874
906
|
}
|
|
875
907
|
}
|
|
876
|
-
function
|
|
877
|
-
const
|
|
878
|
-
if (
|
|
879
|
-
return
|
|
880
|
-
const
|
|
881
|
-
for (const [
|
|
882
|
-
|
|
908
|
+
function _0x4fe766(_0x13cdf8, _0x47b1cd) {
|
|
909
|
+
const _0x468d89 = _0x1b1d28, _0x7858c8 = typeof _0x47b1cd[_0x468d89(0x1df)] === _0x468d89(0x1bf) ? _0x47b1cd[_0x468d89(0x1df)]['trim']() : '';
|
|
910
|
+
if (_0x7858c8)
|
|
911
|
+
return _0x7858c8;
|
|
912
|
+
const _0x4c1bb9 = Date[_0x468d89(_0x7b3dd9._0x2bcd4b)]();
|
|
913
|
+
for (const [_0x3e6558, _0x30db68] of _0x2397f3) {
|
|
914
|
+
_0x30db68[_0x468d89(_0x7b3dd9._0x160db2)] <= _0x4c1bb9 && _0x2397f3[_0x468d89(_0x7b3dd9._0x11592f)](_0x3e6558);
|
|
883
915
|
}
|
|
884
|
-
const
|
|
885
|
-
...
|
|
916
|
+
const _0x821dc6 = {
|
|
917
|
+
..._0x47b1cd,
|
|
886
918
|
'idempotency_key': void 0x0
|
|
887
|
-
},
|
|
888
|
-
if (
|
|
889
|
-
return
|
|
890
|
-
const
|
|
891
|
-
return
|
|
892
|
-
'expiresAt':
|
|
893
|
-
'value':
|
|
894
|
-
}),
|
|
919
|
+
}, _0x5b6fc3 = createHash(_0x468d89(0x1b3))[_0x468d89(_0x7b3dd9._0x261c9f)](_0x13cdf8 + ':' + stableStringify(_0x821dc6))['digest']('hex'), _0x488304 = _0x13cdf8 + ':' + _0x5b6fc3, _0x21f499 = _0x2397f3[_0x468d89(_0x7b3dd9._0x1bb85e)](_0x488304);
|
|
920
|
+
if (_0x21f499)
|
|
921
|
+
return _0x21f499['value'];
|
|
922
|
+
const _0x1eb55f = _0x468d89(0x285) + _0x13cdf8 + ':' + randomUUID();
|
|
923
|
+
return _0x2397f3[_0x468d89(_0x7b3dd9._0x205388)](_0x488304, {
|
|
924
|
+
'expiresAt': _0x4c1bb9 + 0x5 * 0x3c * 0x3e8,
|
|
925
|
+
'value': _0x1eb55f
|
|
926
|
+
}), _0x1eb55f;
|
|
895
927
|
}
|
|
896
|
-
async function
|
|
897
|
-
const
|
|
928
|
+
async function _0x1b036b(_0x2747e0, _0x29e45f) {
|
|
929
|
+
const _0x274b23 = _0x1b1d28, _0x27e4b6 = new AbortController(), _0x153e76 = setTimeout(() => _0x27e4b6[_0x274b23(0x208)](), _0x5ef790), _0x4f9d75 = _0x29e45f?.['signal'] ? anySignal(_0x29e45f[_0x274b23(_0x400123._0x2959b7)], _0x27e4b6[_0x274b23(_0x400123._0x16515c)]) : _0x27e4b6[_0x274b23(_0x400123._0x5f2c8f)], _0x4380d9 = '' + _0x100ae2 + _0x2747e0;
|
|
898
930
|
try {
|
|
899
|
-
const
|
|
900
|
-
...
|
|
901
|
-
'signal':
|
|
902
|
-
}),
|
|
903
|
-
if (!
|
|
904
|
-
throw new Error(asErrorMessage(
|
|
905
|
-
return
|
|
931
|
+
const _0x4d7cf7 = await _0x3f8ab2(_0x4380d9, {
|
|
932
|
+
..._0x29e45f,
|
|
933
|
+
'signal': _0x4f9d75
|
|
934
|
+
}), _0x3e3162 = await _0x1fc2cd(_0x4380d9, _0x4d7cf7);
|
|
935
|
+
if (!_0x4d7cf7['ok'] || _0x3e3162[_0x274b23(0x235)] === ![])
|
|
936
|
+
throw new Error(asErrorMessage(_0x3e3162[_0x274b23(0x1c6)], 'HTTP\x20' + _0x4d7cf7[_0x274b23(0x293)]));
|
|
937
|
+
return _0x3e3162;
|
|
906
938
|
} finally {
|
|
907
|
-
clearTimeout(
|
|
939
|
+
clearTimeout(_0x153e76);
|
|
908
940
|
}
|
|
909
941
|
}
|
|
910
|
-
async function
|
|
911
|
-
const
|
|
942
|
+
async function _0x44dbbb(_0x3d94fa, _0x683df1) {
|
|
943
|
+
const _0x58d18b = _0x1b1d28, _0x1569bf = new AbortController(), _0x46e6b0 = setTimeout(() => _0x1569bf[_0x58d18b(0x208)](), _0x5ef790), _0x3df60f = _0x683df1?.[_0x58d18b(0x272)] ? anySignal(_0x683df1[_0x58d18b(0x272)], _0x1569bf[_0x58d18b(0x272)]) : _0x1569bf[_0x58d18b(0x272)], _0x200ebe = '' + _0x100ae2 + _0x3d94fa;
|
|
912
944
|
try {
|
|
913
|
-
const
|
|
914
|
-
...
|
|
915
|
-
'signal':
|
|
916
|
-
}),
|
|
917
|
-
if (!
|
|
918
|
-
throw new Error(asErrorMessage(
|
|
919
|
-
return
|
|
945
|
+
const _0x4c7299 = await _0x3f8ab2(_0x200ebe, {
|
|
946
|
+
..._0x683df1,
|
|
947
|
+
'signal': _0x3df60f
|
|
948
|
+
}), _0x2cba22 = await _0x1fc2cd(_0x200ebe, _0x4c7299);
|
|
949
|
+
if (!_0x4c7299['ok'])
|
|
950
|
+
throw new Error(asErrorMessage(_0x2cba22[_0x58d18b(0x1c6)], 'HTTP\x20' + _0x4c7299['status']));
|
|
951
|
+
return _0x2cba22;
|
|
920
952
|
} finally {
|
|
921
|
-
clearTimeout(
|
|
953
|
+
clearTimeout(_0x46e6b0);
|
|
922
954
|
}
|
|
923
955
|
}
|
|
924
|
-
async function
|
|
925
|
-
const
|
|
926
|
-
if (!
|
|
956
|
+
async function _0x4fca2a(_0x4ba1d0) {
|
|
957
|
+
const _0xe53276 = _0x1b1d28;
|
|
958
|
+
if (!_0x1ad9fb || _0x4ba1d0 <= _0x5e1c46)
|
|
927
959
|
return;
|
|
928
|
-
await
|
|
929
|
-
'body': JSON[
|
|
930
|
-
'headers':
|
|
931
|
-
'method':
|
|
932
|
-
}),
|
|
960
|
+
await _0x1b036b(_0xe53276(0x242) + encodeURIComponent(_0x1ad9fb) + _0xe53276(_0x4fa73d._0x452990), {
|
|
961
|
+
'body': JSON[_0xe53276(_0x4fa73d._0x5f2083)]({ 'lastSeenSeq': _0x4ba1d0 }),
|
|
962
|
+
'headers': _0x3b3190,
|
|
963
|
+
'method': _0xe53276(_0x4fa73d._0x2904f5)
|
|
964
|
+
}), _0x5e1c46 = _0x4ba1d0;
|
|
933
965
|
}
|
|
934
|
-
async function
|
|
935
|
-
const
|
|
936
|
-
if (!
|
|
966
|
+
async function _0x26f45c(_0x37c312) {
|
|
967
|
+
const _0x4c00ec = _0x1b1d28;
|
|
968
|
+
if (!_0x25d0bb || !_0x3749a8 || _0x37c312 <= _0x5e1c46)
|
|
937
969
|
return;
|
|
938
|
-
const
|
|
939
|
-
'body': JSON[
|
|
940
|
-
'last_seen_seq':
|
|
941
|
-
'worker_session_id':
|
|
970
|
+
const _0x3a0a58 = await _0x3f8ab2(_0x25d0bb + _0x4c00ec(_0x3dd5e2._0x30b084), {
|
|
971
|
+
'body': JSON[_0x4c00ec(0x1a1)]({
|
|
972
|
+
'last_seen_seq': _0x37c312,
|
|
973
|
+
'worker_session_id': _0x3749a8
|
|
942
974
|
}),
|
|
943
|
-
'headers': { 'Content-Type':
|
|
944
|
-
'method':
|
|
975
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
976
|
+
'method': _0x4c00ec(_0x3dd5e2._0xde3934)
|
|
945
977
|
});
|
|
946
|
-
if (!
|
|
947
|
-
throw new Error(
|
|
948
|
-
|
|
978
|
+
if (!_0x3a0a58['ok'])
|
|
979
|
+
throw new Error('HTTP\x20' + _0x3a0a58['status']);
|
|
980
|
+
_0x5e1c46 = _0x37c312;
|
|
949
981
|
}
|
|
950
|
-
async function
|
|
951
|
-
const
|
|
952
|
-
'body': JSON[
|
|
953
|
-
'headers':
|
|
954
|
-
'method':
|
|
982
|
+
async function _0x2784e7(_0x3afbd4) {
|
|
983
|
+
const _0x2fffa2 = _0x1b1d28, _0x2b22d9 = parseTarget(_0x3afbd4), _0xe79f54 = await _0x1b036b(_0x2fffa2(_0x18375d._0xd2850f) + _0x31b80b[_0x2fffa2(_0x18375d._0x487fe1)] + _0x2fffa2(_0x18375d._0x11b032), {
|
|
984
|
+
'body': JSON[_0x2fffa2(_0x18375d._0x27b52b)]({ 'target': _0x2b22d9[_0x2fffa2(_0x18375d._0x454c0f)] }),
|
|
985
|
+
'headers': _0x3b3190,
|
|
986
|
+
'method': _0x2fffa2(_0x18375d._0x421738)
|
|
955
987
|
});
|
|
956
988
|
return {
|
|
957
|
-
'channelId':
|
|
958
|
-
'target':
|
|
959
|
-
'task':
|
|
960
|
-
'threadId':
|
|
961
|
-
'threadNumber':
|
|
989
|
+
'channelId': _0xe79f54[_0x2fffa2(0x1f7)]?.[_0x2fffa2(_0x18375d._0x4800f2)] ?? '',
|
|
990
|
+
'target': _0x2b22d9[_0x2fffa2(0x1ae)],
|
|
991
|
+
'task': _0xe79f54['data']?.[_0x2fffa2(_0x18375d._0x391b6e)],
|
|
992
|
+
'threadId': _0xe79f54['data']?.[_0x2fffa2(_0x18375d._0x55c235)],
|
|
993
|
+
'threadNumber': _0xe79f54[_0x2fffa2(_0x18375d._0x1c1e05)]?.[_0x2fffa2(0x153)]
|
|
962
994
|
};
|
|
963
995
|
}
|
|
964
|
-
async function
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
'
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
'
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
'
|
|
977
|
-
|
|
996
|
+
async function _0x5702ac(_0x44833d = {}) {
|
|
997
|
+
const _0x294ce3 = _0x1b1d28;
|
|
998
|
+
if (!_0x44833d[_0x294ce3(_0xe402a7._0x5a5146)] && _0x3b48a7)
|
|
999
|
+
return _0x3b48a7;
|
|
1000
|
+
return _0x3b48a7 = (async () => {
|
|
1001
|
+
const _0x40f82e = _0x294ce3, _0x355d81 = await _0x1b036b(_0x40f82e(_0x5080b8._0x3c5527) + _0x31b80b[_0x40f82e(0x1eb)] + '/server', {
|
|
1002
|
+
'headers': _0x3b3190,
|
|
1003
|
+
'method': _0x40f82e(0x29c)
|
|
1004
|
+
}), _0x2f9957 = _0x355d81[_0x40f82e(0x1f7)]?.[_0x40f82e(0x144)] ?? [], _0x553ae7 = _0x2f9957[_0x40f82e(_0x5080b8._0x3ad126)](_0x479d04 => _0x479d04[_0x40f82e(0x2a9)]?.[_0x40f82e(0x2a6)] === _0x40f82e(0x1a9))[_0x40f82e(0x2ae)](_0xf244ca => ({
|
|
1005
|
+
'id': _0x36833c(_0xf244ca),
|
|
1006
|
+
'name': _0x2c860c(_0xf244ca)
|
|
1007
|
+
}))[_0x40f82e(_0x5080b8._0x3ad126)](_0x132d98 => _0x132d98['id']), _0x5d40dd = _0x2f9957[_0x40f82e(_0x5080b8._0x3ad126)](_0x207e70 => _0x207e70[_0x40f82e(0x2a9)]?.[_0x40f82e(0x2a6)] !== _0x40f82e(0x1a9))[_0x40f82e(_0x5080b8._0x3d0ff8)](_0x3aa1a4 => ({
|
|
1008
|
+
'id': _0x36833c(_0x3aa1a4),
|
|
1009
|
+
'name': _0x2c860c(_0x3aa1a4)
|
|
1010
|
+
}))[_0x40f82e(_0x5080b8._0x54f27c)](_0x300db8 => _0x300db8['id']), _0x2f16a5 = _0x355d81[_0x40f82e(_0x5080b8._0x136f7d)]?.[_0x40f82e(0x237)]['id'] ?? '';
|
|
978
1011
|
return {
|
|
979
|
-
'agents':
|
|
980
|
-
'channels':
|
|
981
|
-
'humans':
|
|
982
|
-
'serverId':
|
|
983
|
-
'serverName':
|
|
1012
|
+
'agents': _0x553ae7,
|
|
1013
|
+
'channels': _0x355d81[_0x40f82e(_0x5080b8._0x136f7d)]?.[_0x40f82e(0x294)] ?? [],
|
|
1014
|
+
'humans': _0x5d40dd,
|
|
1015
|
+
'serverId': _0x2f16a5,
|
|
1016
|
+
'serverName': _0x355d81[_0x40f82e(_0x5080b8._0x136f7d)]?.[_0x40f82e(_0x5080b8._0x33cc18)]['name'] ?? _0x2f16a5
|
|
984
1017
|
};
|
|
985
|
-
})()[
|
|
986
|
-
|
|
987
|
-
throw
|
|
988
|
-
}),
|
|
1018
|
+
})()[_0x294ce3(_0xe402a7._0x5beeac)](_0x30a1b8 => {
|
|
1019
|
+
_0x3b48a7 = null;
|
|
1020
|
+
throw _0x30a1b8;
|
|
1021
|
+
}), _0x3b48a7;
|
|
989
1022
|
}
|
|
990
|
-
function
|
|
991
|
-
const
|
|
992
|
-
return
|
|
1023
|
+
function _0x1f670f(_0x5dca7c, _0x5417d2) {
|
|
1024
|
+
const _0x4ff76d = _0x1b1d28;
|
|
1025
|
+
return _0x5417d2['agents'][_0x4ff76d(0x1ee)](_0xbe4949 => _0xbe4949['id'] === _0x5dca7c || _0xbe4949[_0x4ff76d(0x229)] === _0x5dca7c) ? _0x4ff76d(0x1a9) : _0x4ff76d(_0x14dce5._0x22e2d0);
|
|
993
1026
|
}
|
|
994
|
-
function
|
|
995
|
-
const
|
|
996
|
-
if (
|
|
997
|
-
return
|
|
998
|
-
if (
|
|
999
|
-
return
|
|
1000
|
-
if (
|
|
1001
|
-
return
|
|
1002
|
-
return
|
|
1027
|
+
function _0x1c59a8(_0x268fb0) {
|
|
1028
|
+
const _0x5a5a93 = _0x1b1d28;
|
|
1029
|
+
if (_0x268fb0['threadNumber'] != null)
|
|
1030
|
+
return _0x268fb0[_0x5a5a93(0x1ae)] + ':t' + _0x268fb0[_0x5a5a93(_0x78ce87._0x1fc41a)];
|
|
1031
|
+
if (_0x268fb0[_0x5a5a93(_0x78ce87._0x44b018)])
|
|
1032
|
+
return _0x268fb0[_0x5a5a93(0x1ae)] + ':' + _0x268fb0[_0x5a5a93(0x215)];
|
|
1033
|
+
if (_0x268fb0[_0x5a5a93(_0x78ce87._0x264885)])
|
|
1034
|
+
return _0x268fb0[_0x5a5a93(0x1ae)] + ':' + _0x268fb0[_0x5a5a93(0x195)][_0x5a5a93(0x1e3)](0x0, 0x8);
|
|
1035
|
+
return _0x268fb0['channelTarget'];
|
|
1003
1036
|
}
|
|
1004
|
-
function
|
|
1005
|
-
const
|
|
1037
|
+
function _0x32dc93(_0x367d4d, _0x5306a6) {
|
|
1038
|
+
const _0x397ff8 = _0x1b1d28;
|
|
1006
1039
|
try {
|
|
1007
|
-
const
|
|
1008
|
-
if (
|
|
1040
|
+
const _0x343b89 = parseTarget(_0x367d4d);
|
|
1041
|
+
if (_0x343b89[_0x397ff8(_0x40944e._0x1bf874)] !== _0x397ff8(0x189) || _0x343b89[_0x397ff8(_0x40944e._0x29e80f)] !== _0x5306a6['channelTarget'])
|
|
1009
1042
|
return ![];
|
|
1010
|
-
if (
|
|
1043
|
+
if (_0x5306a6[_0x397ff8(0x153)] != null && _0x343b89['threadShortId'] === 't' + _0x5306a6[_0x397ff8(_0x40944e._0x567d64)])
|
|
1011
1044
|
return !![];
|
|
1012
|
-
if (
|
|
1013
|
-
return
|
|
1014
|
-
if (
|
|
1015
|
-
return
|
|
1045
|
+
if (_0x5306a6[_0x397ff8(0x215)])
|
|
1046
|
+
return _0x343b89['threadShortId'] === _0x5306a6[_0x397ff8(_0x40944e._0x3728dd)] || _0x5306a6[_0x397ff8(0x215)][_0x397ff8(_0x40944e._0x37f8e2)](_0x343b89[_0x397ff8(0x154)]);
|
|
1047
|
+
if (_0x5306a6['threadId'])
|
|
1048
|
+
return _0x343b89[_0x397ff8(0x154)] === _0x5306a6[_0x397ff8(_0x40944e._0x18a585)] || _0x5306a6[_0x397ff8(_0x40944e._0x18a585)][_0x397ff8(_0x40944e._0x97b04d)](_0x343b89[_0x397ff8(0x154)]);
|
|
1016
1049
|
return ![];
|
|
1017
1050
|
} catch {
|
|
1018
1051
|
return ![];
|
|
1019
1052
|
}
|
|
1020
1053
|
}
|
|
1021
|
-
function
|
|
1022
|
-
const
|
|
1023
|
-
return
|
|
1054
|
+
function _0x36833c(_0x54967a) {
|
|
1055
|
+
const _0x1d029d = _0x1b1d28;
|
|
1056
|
+
return _0x54967a[_0x1d029d(_0x290f0a._0x5116b0)]?.[_0x1d029d(0x1f2)] ?? _0x54967a[_0x1d029d(0x2a9)]?.['id'] ?? _0x54967a[_0x1d029d(_0x290f0a._0x5b8730)] ?? '';
|
|
1024
1057
|
}
|
|
1025
|
-
function
|
|
1026
|
-
const
|
|
1027
|
-
return
|
|
1058
|
+
function _0x2c860c(_0x4156ef) {
|
|
1059
|
+
const _0x18a034 = _0x1b1d28;
|
|
1060
|
+
return _0x4156ef['participant']?.[_0x18a034(_0xa7c811._0x2598a3)] ?? _0x36833c(_0x4156ef);
|
|
1028
1061
|
}
|
|
1029
|
-
async function
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
const
|
|
1036
|
-
'headers':
|
|
1037
|
-
'method':
|
|
1038
|
-
}),
|
|
1039
|
-
'attachments': (
|
|
1040
|
-
'filename':
|
|
1041
|
-
'id':
|
|
1062
|
+
async function _0x334063(_0x13dd88) {
|
|
1063
|
+
const _0x8e3243 = _0x1b1d28, _0x222310 = Math[_0x8e3243(_0x1ac081._0x14ccde)](_0x13dd88[_0x8e3243(_0x1ac081._0x40e7c7)] ?? 0x32, 0x64), _0x123bfa = await _0x5702ac(), _0x26e030 = new URLSearchParams();
|
|
1064
|
+
_0x26e030[_0x8e3243(_0x1ac081._0xc92c44)](_0x8e3243(0x18f), String(_0x222310));
|
|
1065
|
+
_0x13dd88[_0x8e3243(_0x1ac081._0x3c7d32)] ? (_0x26e030[_0x8e3243(0x1c5)](_0x8e3243(0x195), _0x13dd88[_0x8e3243(_0x1ac081._0x3c7d32)]), _0x26e030[_0x8e3243(_0x1ac081._0xc92c44)](_0x8e3243(_0x1ac081._0x5c6679), _0x13dd88['channelId'])) : _0x26e030[_0x8e3243(0x1c5)](_0x8e3243(_0x1ac081._0x5c6679), _0x13dd88['channelId']);
|
|
1066
|
+
_0x13dd88[_0x8e3243(0x1ac)] && _0x26e030['set'](_0x8e3243(0x226), String(_0x13dd88[_0x8e3243(0x1ac)]));
|
|
1067
|
+
_0x13dd88['after'] !== void 0x0 && _0x26e030[_0x8e3243(_0x1ac081._0x596d72)](_0x8e3243(0x149), String(_0x13dd88[_0x8e3243(0x149)]));
|
|
1068
|
+
const _0x528bc1 = await _0x1b036b(_0x8e3243(_0x1ac081._0x3df4b8) + _0x31b80b['agentId'] + _0x8e3243(0x26a) + _0x26e030[_0x8e3243(0x203)](), {
|
|
1069
|
+
'headers': _0x3b3190,
|
|
1070
|
+
'method': 'GET'
|
|
1071
|
+
}), _0x4de3c8 = (_0x528bc1[_0x8e3243(_0x1ac081._0x2acf34)] ?? [])['map'](_0x234586 => ({
|
|
1072
|
+
'attachments': (_0x234586[_0x8e3243(0x198)] ?? [])[_0x8e3243(0x2ae)](_0x196fd9 => ({
|
|
1073
|
+
'filename': _0x196fd9[_0x8e3243(0x1e6)] ?? _0x196fd9['id'],
|
|
1074
|
+
'id': _0x196fd9['id']
|
|
1042
1075
|
})),
|
|
1043
|
-
'content':
|
|
1044
|
-
'createdAt':
|
|
1045
|
-
'messageId':
|
|
1046
|
-
'senderName':
|
|
1047
|
-
'senderType':
|
|
1048
|
-
'seq':
|
|
1076
|
+
'content': _0x234586[_0x8e3243(0x28d)] ?? '',
|
|
1077
|
+
'createdAt': _0x234586[_0x8e3243(0x252)],
|
|
1078
|
+
'messageId': _0x234586['id'],
|
|
1079
|
+
'senderName': _0x234586[_0x8e3243(0x27b)],
|
|
1080
|
+
'senderType': _0x1f670f(_0x234586[_0x8e3243(0x27b)], _0x123bfa),
|
|
1081
|
+
'seq': _0x234586['eventSeq'] ?? 0x0
|
|
1049
1082
|
}));
|
|
1050
1083
|
return {
|
|
1051
|
-
'channel':
|
|
1052
|
-
'hasMore':
|
|
1053
|
-
'messages':
|
|
1054
|
-
'nextCursor':
|
|
1084
|
+
'channel': _0x13dd88['channelTarget'],
|
|
1085
|
+
'hasMore': _0x528bc1[_0x8e3243(0x1f4)]?.['hasMore'] ?? ![],
|
|
1086
|
+
'messages': _0x4de3c8,
|
|
1087
|
+
'nextCursor': _0x528bc1[_0x8e3243(0x1f4)]?.['cursor']
|
|
1055
1088
|
};
|
|
1056
1089
|
}
|
|
1057
1090
|
return {
|
|
1058
|
-
async 'sendMessage'(
|
|
1059
|
-
const
|
|
1060
|
-
'body': JSON[
|
|
1061
|
-
'attachment_ids':
|
|
1062
|
-
'bodyMarkdown':
|
|
1063
|
-
'channelId':
|
|
1064
|
-
...
|
|
1065
|
-
'threadId':
|
|
1066
|
-
...
|
|
1091
|
+
async 'sendMessage'(_0x5a1e87) {
|
|
1092
|
+
const _0x6818d8 = _0x1b1d28, _0x5eb832 = await _0x2784e7(_0x5a1e87[_0x6818d8(_0x2105a7._0x24a1c7)]), _0x357f29 = _0x5a1e87[_0x6818d8(_0x2105a7._0x1987f0)]['includes']('@') ? extractMentionedParticipantIds(_0x5a1e87['content'], await _0x5702ac()) : [], _0x482e4a = await _0x1b036b('/internal/agent/' + _0x31b80b[_0x6818d8(_0x2105a7._0x3e20bf)] + _0x6818d8(0x1e9), {
|
|
1093
|
+
'body': JSON[_0x6818d8(_0x2105a7._0x3d6783)]({
|
|
1094
|
+
'attachment_ids': _0x5a1e87[_0x6818d8(_0x2105a7._0x2f30a7)],
|
|
1095
|
+
'bodyMarkdown': _0x5a1e87[_0x6818d8(0x22a)],
|
|
1096
|
+
'channelId': _0x5eb832[_0x6818d8(0x258)],
|
|
1097
|
+
..._0x357f29[_0x6818d8(0x1b0)] > 0x0 ? { 'mentionedParticipantIds': _0x357f29 } : {},
|
|
1098
|
+
'threadId': _0x5eb832[_0x6818d8(0x195)],
|
|
1099
|
+
..._0x5a1e87[_0x6818d8(0x128)] ? { 'visibility': _0x5a1e87[_0x6818d8(_0x2105a7._0x590637)] } : {}
|
|
1067
1100
|
}),
|
|
1068
|
-
'headers':
|
|
1069
|
-
'method':
|
|
1101
|
+
'headers': _0x3b3190,
|
|
1102
|
+
'method': _0x6818d8(_0x2105a7._0x3bf988)
|
|
1070
1103
|
});
|
|
1071
|
-
return { 'messageId':
|
|
1104
|
+
return { 'messageId': _0x482e4a[_0x6818d8(_0x2105a7._0x45315f)]?.['id'] ?? '' };
|
|
1072
1105
|
},
|
|
1073
1106
|
async 'listSchedules'() {
|
|
1074
|
-
const
|
|
1075
|
-
'headers':
|
|
1076
|
-
'method':
|
|
1107
|
+
const _0x278aaf = _0x1b1d28, _0x111a3e = await _0x1b036b(_0x278aaf(_0x49027f._0x1ba8be), {
|
|
1108
|
+
'headers': _0x3b3190,
|
|
1109
|
+
'method': _0x278aaf(0x29c)
|
|
1077
1110
|
});
|
|
1078
|
-
return
|
|
1111
|
+
return _0x111a3e[_0x278aaf(_0x49027f._0x1cfd82)] ?? [];
|
|
1079
1112
|
},
|
|
1080
|
-
async 'claimScheduleRun'(
|
|
1081
|
-
const
|
|
1082
|
-
'body': JSON[
|
|
1083
|
-
'headers':
|
|
1084
|
-
'method':
|
|
1113
|
+
async 'claimScheduleRun'(_0x54d1e4) {
|
|
1114
|
+
const _0x1f71d3 = _0x1b1d28, _0x103595 = await _0x1b036b('/api/internal/schedules/claim', {
|
|
1115
|
+
'body': JSON[_0x1f71d3(_0x1b6560._0x48d24c)](_0x54d1e4),
|
|
1116
|
+
'headers': _0x3b3190,
|
|
1117
|
+
'method': 'POST'
|
|
1085
1118
|
});
|
|
1086
|
-
return
|
|
1119
|
+
return _0x103595[_0x1f71d3(0x1f7)] ?? {
|
|
1087
1120
|
'granted': ![],
|
|
1088
1121
|
'runId': null,
|
|
1089
1122
|
'schedule': null,
|
|
1090
|
-
'scheduledFor':
|
|
1123
|
+
'scheduledFor': _0x54d1e4[_0x1f71d3(_0x1b6560._0x547993)]
|
|
1091
1124
|
};
|
|
1092
1125
|
},
|
|
1093
|
-
async 'startScheduleRun'(
|
|
1094
|
-
const
|
|
1095
|
-
'body': JSON[
|
|
1096
|
-
'headers':
|
|
1097
|
-
'method':
|
|
1126
|
+
async 'startScheduleRun'(_0x2479c0) {
|
|
1127
|
+
const _0x1ce4d2 = _0x1b1d28, _0x460a67 = await _0x1b036b(_0x1ce4d2(0x13e) + encodeURIComponent(_0x2479c0[_0x1ce4d2(0x16d)]) + _0x1ce4d2(0x254), {
|
|
1128
|
+
'body': JSON[_0x1ce4d2(_0x29977e._0x58a2e2)]({}),
|
|
1129
|
+
'headers': _0x3b3190,
|
|
1130
|
+
'method': _0x1ce4d2(_0x29977e._0x13aafe)
|
|
1098
1131
|
});
|
|
1099
|
-
return
|
|
1132
|
+
return _0x460a67[_0x1ce4d2(0x1f7)] ?? {
|
|
1100
1133
|
'claimedByDaemonId': '',
|
|
1101
|
-
'id':
|
|
1134
|
+
'id': _0x2479c0['runId'],
|
|
1102
1135
|
'scheduleId': '',
|
|
1103
|
-
'status':
|
|
1136
|
+
'status': _0x1ce4d2(_0x29977e._0x32323f)
|
|
1104
1137
|
};
|
|
1105
1138
|
},
|
|
1106
|
-
async 'finishScheduleRun'(
|
|
1107
|
-
const
|
|
1139
|
+
async 'finishScheduleRun'(_0x3c0e37) {
|
|
1140
|
+
const _0x168a70 = _0x1b1d28, _0xfaf660 = await _0x1b036b('/api/internal/schedules/' + encodeURIComponent(_0x3c0e37[_0x168a70(_0x23f913._0x24aac4)]) + _0x168a70(_0x23f913._0x42bfcd), {
|
|
1108
1141
|
'body': JSON['stringify']({
|
|
1109
|
-
'error':
|
|
1110
|
-
'resultJson':
|
|
1111
|
-
'status':
|
|
1142
|
+
'error': _0x3c0e37[_0x168a70(_0x23f913._0x4dc7a4)],
|
|
1143
|
+
'resultJson': _0x3c0e37[_0x168a70(_0x23f913._0x315da7)],
|
|
1144
|
+
'status': _0x3c0e37[_0x168a70(0x293)]
|
|
1112
1145
|
}),
|
|
1113
|
-
'headers':
|
|
1114
|
-
'method':
|
|
1146
|
+
'headers': _0x3b3190,
|
|
1147
|
+
'method': _0x168a70(0x2b1)
|
|
1115
1148
|
});
|
|
1116
|
-
return
|
|
1149
|
+
return _0xfaf660[_0x168a70(0x1f7)] ?? {
|
|
1117
1150
|
'nextRunAt': null,
|
|
1118
1151
|
'run': {
|
|
1119
1152
|
'claimedByDaemonId': '',
|
|
1120
|
-
'id':
|
|
1153
|
+
'id': _0x3c0e37[_0x168a70(_0x23f913._0x24aac4)],
|
|
1121
1154
|
'scheduleId': '',
|
|
1122
|
-
'status':
|
|
1155
|
+
'status': _0x3c0e37[_0x168a70(0x293)]
|
|
1123
1156
|
}
|
|
1124
1157
|
};
|
|
1125
1158
|
},
|
|
1126
|
-
async 'listTasks'(
|
|
1127
|
-
const
|
|
1128
|
-
return
|
|
1129
|
-
'headers':
|
|
1130
|
-
'method':
|
|
1159
|
+
async 'listTasks'(_0x2383ed) {
|
|
1160
|
+
const _0xf95bae = _0x1b1d28, _0x16415d = new URLSearchParams();
|
|
1161
|
+
return _0x16415d[_0xf95bae(0x1c5)](_0xf95bae(_0x23ca0b._0x5daca1), _0x2383ed['channel']), _0x2383ed['status'] && _0x16415d[_0xf95bae(0x1c5)](_0xf95bae(_0x23ca0b._0x5d878e), _0x2383ed[_0xf95bae(0x293)]), _0x44dbbb('/internal/agent/' + _0x31b80b[_0xf95bae(0x1eb)] + _0xf95bae(_0x23ca0b._0x3476b4) + _0x16415d[_0xf95bae(0x203)](), {
|
|
1162
|
+
'headers': _0x3b3190,
|
|
1163
|
+
'method': 'GET'
|
|
1131
1164
|
});
|
|
1132
1165
|
},
|
|
1133
|
-
async 'createTasks'(
|
|
1134
|
-
const
|
|
1135
|
-
return
|
|
1136
|
-
'body': JSON[
|
|
1137
|
-
...
|
|
1138
|
-
'idempotency_key':
|
|
1166
|
+
async 'createTasks'(_0x54825e) {
|
|
1167
|
+
const _0x1f4a14 = _0x1b1d28;
|
|
1168
|
+
return _0x44dbbb(_0x1f4a14(0x28c) + _0x31b80b['agentId'] + _0x1f4a14(0x1e7), {
|
|
1169
|
+
'body': JSON[_0x1f4a14(_0x4d5877._0x328864)]({
|
|
1170
|
+
..._0x54825e,
|
|
1171
|
+
'idempotency_key': _0x4fe766(_0x1f4a14(0x274), _0x54825e)
|
|
1139
1172
|
}),
|
|
1140
|
-
'headers':
|
|
1141
|
-
'method':
|
|
1173
|
+
'headers': _0x3b3190,
|
|
1174
|
+
'method': _0x1f4a14(_0x4d5877._0x40104c)
|
|
1142
1175
|
});
|
|
1143
1176
|
},
|
|
1144
|
-
async 'claimTasks'(
|
|
1145
|
-
const
|
|
1146
|
-
return
|
|
1147
|
-
'body': JSON[
|
|
1148
|
-
...
|
|
1149
|
-
'idempotency_key':
|
|
1177
|
+
async 'claimTasks'(_0x3e35a7) {
|
|
1178
|
+
const _0x262b65 = _0x1b1d28;
|
|
1179
|
+
return _0x44dbbb(_0x262b65(_0x232fa2._0x4f8d63) + _0x31b80b[_0x262b65(0x1eb)] + _0x262b65(_0x232fa2._0x32b3bf), {
|
|
1180
|
+
'body': JSON[_0x262b65(0x1a1)]({
|
|
1181
|
+
..._0x3e35a7,
|
|
1182
|
+
'idempotency_key': _0x4fe766(_0x262b65(0x212), _0x3e35a7)
|
|
1150
1183
|
}),
|
|
1151
|
-
'headers':
|
|
1152
|
-
'method':
|
|
1184
|
+
'headers': _0x3b3190,
|
|
1185
|
+
'method': _0x262b65(_0x232fa2._0x53229c)
|
|
1153
1186
|
});
|
|
1154
1187
|
},
|
|
1155
|
-
async 'unclaimTask'(
|
|
1156
|
-
const
|
|
1157
|
-
return
|
|
1158
|
-
'body': JSON[
|
|
1159
|
-
...
|
|
1160
|
-
'idempotency_key':
|
|
1188
|
+
async 'unclaimTask'(_0x1f5b98) {
|
|
1189
|
+
const _0x4e38b3 = _0x1b1d28;
|
|
1190
|
+
return _0x44dbbb(_0x4e38b3(_0x53c54b._0xf4eb8d) + _0x31b80b['agentId'] + _0x4e38b3(0x138), {
|
|
1191
|
+
'body': JSON[_0x4e38b3(0x1a1)]({
|
|
1192
|
+
..._0x1f5b98,
|
|
1193
|
+
'idempotency_key': _0x4fe766(_0x4e38b3(_0x53c54b._0x284e81), _0x1f5b98)
|
|
1161
1194
|
}),
|
|
1162
|
-
'headers':
|
|
1163
|
-
'method':
|
|
1195
|
+
'headers': _0x3b3190,
|
|
1196
|
+
'method': _0x4e38b3(_0x53c54b._0x5a1875)
|
|
1164
1197
|
});
|
|
1165
1198
|
},
|
|
1166
|
-
async 'updateTaskStatus'(
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
1169
|
-
'body': JSON[
|
|
1170
|
-
...
|
|
1171
|
-
'idempotency_key':
|
|
1199
|
+
async 'updateTaskStatus'(_0x2dc4d3) {
|
|
1200
|
+
const _0x26d8e5 = _0x1b1d28;
|
|
1201
|
+
return _0x44dbbb('/internal/agent/' + _0x31b80b['agentId'] + _0x26d8e5(_0x4bf8e0._0x47da24), {
|
|
1202
|
+
'body': JSON['stringify']({
|
|
1203
|
+
..._0x2dc4d3,
|
|
1204
|
+
'idempotency_key': _0x4fe766('update_task_status', _0x2dc4d3)
|
|
1172
1205
|
}),
|
|
1173
|
-
'headers':
|
|
1174
|
-
'method':
|
|
1206
|
+
'headers': _0x3b3190,
|
|
1207
|
+
'method': _0x26d8e5(0x2b1)
|
|
1175
1208
|
});
|
|
1176
1209
|
},
|
|
1177
|
-
async 'uploadFile'(
|
|
1178
|
-
const
|
|
1179
|
-
if (
|
|
1180
|
-
throw new Error(
|
|
1181
|
-
const
|
|
1182
|
-
'body': JSON[
|
|
1183
|
-
'channel':
|
|
1184
|
-
'contentBase64':
|
|
1185
|
-
'contentType':
|
|
1186
|
-
'originalFilename':
|
|
1210
|
+
async 'uploadFile'(_0x156bb3) {
|
|
1211
|
+
const _0xd05e54 = _0x1b1d28, _0x16f6dc = await _0x2784e7(_0x156bb3[_0xd05e54(_0x5a536f._0x590872)]);
|
|
1212
|
+
if (_0x16f6dc[_0xd05e54(0x195)])
|
|
1213
|
+
throw new Error(_0xd05e54(0x279));
|
|
1214
|
+
const _0x26df75 = await _0x1b036b(_0xd05e54(_0x5a536f._0x49992a) + _0x31b80b['agentId'] + '/upload', {
|
|
1215
|
+
'body': JSON[_0xd05e54(0x1a1)]({
|
|
1216
|
+
'channel': _0x16f6dc[_0xd05e54(_0x5a536f._0x33b5a8)],
|
|
1217
|
+
'contentBase64': _0x156bb3[_0xd05e54(_0x5a536f._0xfb2e6)],
|
|
1218
|
+
'contentType': _0x156bb3[_0xd05e54(0x1fa)],
|
|
1219
|
+
'originalFilename': _0x156bb3[_0xd05e54(0x1e6)]
|
|
1187
1220
|
}),
|
|
1188
|
-
'headers':
|
|
1189
|
-
'method':
|
|
1221
|
+
'headers': _0x3b3190,
|
|
1222
|
+
'method': _0xd05e54(_0x5a536f._0x305a26)
|
|
1190
1223
|
});
|
|
1191
1224
|
return {
|
|
1192
|
-
'attachmentId':
|
|
1193
|
-
'filename':
|
|
1194
|
-
'sizeBytes':
|
|
1225
|
+
'attachmentId': _0x26df75['data']?.['id'] ?? '',
|
|
1226
|
+
'filename': _0x26df75['data']?.[_0xd05e54(_0x5a536f._0x302443)] ?? _0x156bb3[_0xd05e54(0x1e6)],
|
|
1227
|
+
'sizeBytes': _0x26df75[_0xd05e54(0x1f7)]?.['sizeBytes'] ?? 0x0
|
|
1195
1228
|
};
|
|
1196
1229
|
},
|
|
1197
|
-
async 'downloadAttachment'(
|
|
1198
|
-
const
|
|
1199
|
-
'headers':
|
|
1200
|
-
'method':
|
|
1201
|
-
}),
|
|
1230
|
+
async 'downloadAttachment'(_0x2ed6bd) {
|
|
1231
|
+
const _0x225ab4 = _0x1b1d28, _0x5900bc = await _0x1b036b(_0x225ab4(_0x160919._0x10e404) + _0x2ed6bd, {
|
|
1232
|
+
'headers': _0x3b3190,
|
|
1233
|
+
'method': _0x225ab4(_0x160919._0x45b676)
|
|
1234
|
+
}), _0x1b3dc2 = new AbortController(), _0xdda266 = setTimeout(() => _0x1b3dc2[_0x225ab4(0x208)](), _0x5ef790);
|
|
1202
1235
|
try {
|
|
1203
|
-
const
|
|
1204
|
-
'headers':
|
|
1205
|
-
'method':
|
|
1206
|
-
'signal':
|
|
1236
|
+
const _0x4d6fbd = await _0x3f8ab2(_0x100ae2 + _0x225ab4(0x1ba) + _0x2ed6bd + '/content', {
|
|
1237
|
+
'headers': _0x3b3190,
|
|
1238
|
+
'method': _0x225ab4(0x29c),
|
|
1239
|
+
'signal': _0x1b3dc2[_0x225ab4(0x272)]
|
|
1207
1240
|
});
|
|
1208
|
-
if (!
|
|
1209
|
-
throw new Error(
|
|
1241
|
+
if (!_0x4d6fbd['ok'])
|
|
1242
|
+
throw new Error('HTTP\x20' + _0x4d6fbd[_0x225ab4(0x293)]);
|
|
1210
1243
|
return {
|
|
1211
|
-
'contentType':
|
|
1212
|
-
'data': Buffer[
|
|
1213
|
-
'originalFilename':
|
|
1244
|
+
'contentType': _0x5900bc[_0x225ab4(_0x160919._0x409321)]?.[_0x225ab4(0x1fa)] ?? _0x4d6fbd[_0x225ab4(_0x160919._0x487edb)]['get'](_0x225ab4(_0x160919._0x50f4f2)) ?? _0x225ab4(_0x160919._0x2ad7a1),
|
|
1245
|
+
'data': Buffer[_0x225ab4(_0x160919._0x142b74)](await _0x4d6fbd['arrayBuffer']()),
|
|
1246
|
+
'originalFilename': _0x5900bc[_0x225ab4(_0x160919._0x24fa38)]?.[_0x225ab4(0x1bb)]
|
|
1214
1247
|
};
|
|
1215
1248
|
} finally {
|
|
1216
|
-
clearTimeout(
|
|
1249
|
+
clearTimeout(_0xdda266);
|
|
1217
1250
|
}
|
|
1218
1251
|
},
|
|
1219
1252
|
async 'listServer'() {
|
|
1220
|
-
return
|
|
1253
|
+
return _0x5702ac({ 'forceRefresh': !![] });
|
|
1221
1254
|
},
|
|
1222
|
-
async 'readHistory'(
|
|
1223
|
-
const
|
|
1224
|
-
return
|
|
1225
|
-
'after':
|
|
1226
|
-
'before':
|
|
1227
|
-
'channelId':
|
|
1228
|
-
'channelTarget':
|
|
1229
|
-
'limit':
|
|
1230
|
-
'threadId':
|
|
1255
|
+
async 'readHistory'(_0x126d8d) {
|
|
1256
|
+
const _0x1011f8 = _0x1b1d28, _0x1cee8b = await _0x2784e7(_0x126d8d[_0x1011f8(_0x9e0b9c._0x3088c6)]);
|
|
1257
|
+
return _0x334063({
|
|
1258
|
+
'after': _0x126d8d[_0x1011f8(_0x9e0b9c._0x368948)],
|
|
1259
|
+
'before': _0x126d8d[_0x1011f8(_0x9e0b9c._0x360a2d)],
|
|
1260
|
+
'channelId': _0x1cee8b[_0x1011f8(0x258)],
|
|
1261
|
+
'channelTarget': _0x1cee8b[_0x1011f8(0x1c1)],
|
|
1262
|
+
'limit': _0x126d8d[_0x1011f8(_0x9e0b9c._0x840063)],
|
|
1263
|
+
'threadId': _0x1cee8b[_0x1011f8(_0x9e0b9c._0x3ccf2b)]
|
|
1231
1264
|
});
|
|
1232
1265
|
},
|
|
1233
|
-
'resolveTarget':
|
|
1266
|
+
'resolveTarget': _0x2784e7,
|
|
1234
1267
|
async 'checkMessages'() {
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1268
|
+
const _0x506ddc = {
|
|
1269
|
+
_0x148af0: 0x1bf,
|
|
1270
|
+
_0x3d1855: 0x2b5
|
|
1271
|
+
}, _0x4984e4 = _0x1b1d28, _0x33e6bc = new URLSearchParams();
|
|
1272
|
+
_0x33e6bc[_0x4984e4(_0x339e77._0x1f1da6)](_0x4984e4(0x159), String(_0x31990d));
|
|
1273
|
+
const _0x507094 = _0x33e6bc[_0x4984e4(_0x339e77._0x8b30e6)](), _0x5e5c0c = await _0x1b036b(_0x4984e4(_0x339e77._0x2a79c1) + _0x31b80b[_0x4984e4(0x1eb)] + _0x4984e4(0x142) + (_0x507094 ? '?' + _0x507094 : ''), {
|
|
1274
|
+
'headers': _0x3b3190,
|
|
1275
|
+
'method': 'GET'
|
|
1276
|
+
}), _0x57d41b = _0x5e5c0c[_0x4984e4(0x1f7)] ?? [], _0x4da184 = _0x5e5c0c[_0x4984e4(0x1f4)]?.[_0x4984e4(0x226)], _0x5c65b4 = _0x4da184 !== void 0x0 ? Math[_0x4984e4(0x1d4)](_0x31990d, _0x4da184) : _0x57d41b['length'] > 0x0 ? Math[_0x4984e4(0x1d4)](_0x31990d, _0x57d41b[_0x57d41b[_0x4984e4(0x1b0)] - 0x1][_0x4984e4(0x1a7)]) : _0x31990d, _0x24b964 = _0x57d41b[_0x4984e4(0x1d7)](_0x26ee53 => _0x26ee53['aggregateType'] === _0x4984e4(0x1ec)), _0x38a683 = _0x125477 === void 0x0 && _0x548bee;
|
|
1277
|
+
let _0x4458a9 = await _0x5702ac(), _0x346e34 = new Map(_0x4458a9[_0x4984e4(0x294)]['map'](_0x590868 => [
|
|
1278
|
+
_0x590868['id'],
|
|
1279
|
+
_0x590868
|
|
1244
1280
|
]));
|
|
1245
|
-
const
|
|
1246
|
-
const
|
|
1247
|
-
return Boolean(
|
|
1281
|
+
const _0xb4548b = _0x24b964[_0x4984e4(0x1ee)](_0x4ca13e => {
|
|
1282
|
+
const _0x158892 = _0x4984e4, _0x450c29 = asRecord(_0x4ca13e['payloadJson']), _0x39313b = typeof _0x450c29?.['channelId'] === _0x158892(_0x506ddc._0x148af0) ? _0x450c29[_0x158892(0x258)] : '';
|
|
1283
|
+
return Boolean(_0x39313b) && !_0x346e34[_0x158892(_0x506ddc._0x3d1855)](_0x39313b);
|
|
1248
1284
|
});
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1285
|
+
_0xb4548b && (_0x4458a9 = await _0x5702ac({ 'forceRefresh': !![] }), _0x346e34 = new Map(_0x4458a9[_0x4984e4(0x294)][_0x4984e4(0x2ae)](_0x49da48 => [
|
|
1286
|
+
_0x49da48['id'],
|
|
1287
|
+
_0x49da48
|
|
1252
1288
|
])));
|
|
1253
|
-
const
|
|
1254
|
-
for (const
|
|
1255
|
-
const
|
|
1256
|
-
if (!
|
|
1289
|
+
const _0x2c9113 = new Map();
|
|
1290
|
+
for (const _0x310b81 of _0x24b964) {
|
|
1291
|
+
const _0x44d55f = asRecord(_0x310b81[_0x4984e4(0x299)]), _0x5213cd = typeof _0x44d55f[_0x4984e4(_0x339e77._0x7ae645)] === _0x4984e4(0x1bf) ? _0x44d55f['channelId'] : '';
|
|
1292
|
+
if (!_0x5213cd)
|
|
1257
1293
|
continue;
|
|
1258
|
-
const
|
|
1294
|
+
const _0xce069c = typeof _0x44d55f[_0x4984e4(_0x339e77._0x465f51)] === 'string' ? _0x44d55f[_0x4984e4(_0x339e77._0x141a7c)] : void 0x0, _0x3836a7 = typeof _0x44d55f['rootMessageId'] === _0x4984e4(_0x339e77._0x596ed0) ? _0x44d55f[_0x4984e4(_0x339e77._0x226cb9)] : void 0x0, _0x13cc12 = typeof _0x44d55f['threadNumber'] === _0x4984e4(_0x339e77._0x1e9be4) && Number[_0x4984e4(_0x339e77._0x5a1932)](_0x44d55f[_0x4984e4(0x153)]) ? _0x44d55f[_0x4984e4(0x153)] : void 0x0, _0x1c8018 = Boolean(_0xce069c && (!_0x3836a7 || _0x310b81[_0x4984e4(_0x339e77._0x1c60fe)] !== _0x3836a7)), _0x496693 = _0x1c8018 ? _0x5213cd + ':' + _0xce069c : _0x5213cd, _0x19e965 = _0x2c9113[_0x4984e4(_0x339e77._0x30dd48)](_0x496693) ?? {
|
|
1259
1295
|
'aggregateIds': [],
|
|
1260
|
-
'channelId':
|
|
1296
|
+
'channelId': _0x5213cd,
|
|
1261
1297
|
'entries': new Map(),
|
|
1262
|
-
'isThreadReply':
|
|
1263
|
-
'rootMessageId':
|
|
1264
|
-
'threadNumber':
|
|
1265
|
-
'threadId':
|
|
1298
|
+
'isThreadReply': _0x1c8018,
|
|
1299
|
+
'rootMessageId': _0x3836a7,
|
|
1300
|
+
'threadNumber': _0x13cc12,
|
|
1301
|
+
'threadId': _0x1c8018 ? _0xce069c : void 0x0
|
|
1266
1302
|
};
|
|
1267
|
-
|
|
1268
|
-
'payloadJson':
|
|
1269
|
-
'seq':
|
|
1270
|
-
}),
|
|
1303
|
+
_0x19e965[_0x4984e4(_0x339e77._0x317525)] == null && _0x13cc12 != null && (_0x19e965[_0x4984e4(_0x339e77._0x28a09d)] = _0x13cc12), !_0x19e965[_0x4984e4(0x215)] && _0x3836a7 && (_0x19e965[_0x4984e4(0x215)] = _0x3836a7), _0x19e965['aggregateIds'][_0x4984e4(0x146)](_0x310b81[_0x4984e4(0x1de)]), _0x19e965[_0x4984e4(0x188)][_0x4984e4(_0x339e77._0x1f1da6)](_0x310b81['aggregateId'], {
|
|
1304
|
+
'payloadJson': _0x310b81[_0x4984e4(_0x339e77._0x5bbfb1)],
|
|
1305
|
+
'seq': _0x310b81[_0x4984e4(0x1a7)]
|
|
1306
|
+
}), _0x2c9113[_0x4984e4(_0x339e77._0x1f1da6)](_0x496693, _0x19e965);
|
|
1271
1307
|
}
|
|
1272
|
-
const
|
|
1273
|
-
for (const
|
|
1308
|
+
const _0xac0e9e = [];
|
|
1309
|
+
for (const _0x2593a6 of _0x2c9113[_0x4984e4(0x143)]()) {
|
|
1274
1310
|
const {
|
|
1275
|
-
channelId:
|
|
1276
|
-
threadId:
|
|
1277
|
-
rootMessageId:
|
|
1278
|
-
threadNumber:
|
|
1279
|
-
aggregateIds:
|
|
1280
|
-
isThreadReply:
|
|
1281
|
-
entries:
|
|
1282
|
-
} =
|
|
1283
|
-
'channelTarget':
|
|
1284
|
-
'rootMessageId':
|
|
1285
|
-
'threadId':
|
|
1286
|
-
'threadNumber':
|
|
1287
|
-
},
|
|
1288
|
-
'channelId':
|
|
1289
|
-
'channelTarget':
|
|
1290
|
-
'limit': Math[
|
|
1291
|
-
'threadId':
|
|
1292
|
-
}),
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
])),
|
|
1296
|
-
for (const
|
|
1297
|
-
if (!
|
|
1311
|
+
channelId: _0x1e4580,
|
|
1312
|
+
threadId: _0x30f4bf,
|
|
1313
|
+
rootMessageId: _0x2484f1,
|
|
1314
|
+
threadNumber: _0x327980,
|
|
1315
|
+
aggregateIds: _0x407a79,
|
|
1316
|
+
isThreadReply: _0x2affd3,
|
|
1317
|
+
entries: _0x2f465f
|
|
1318
|
+
} = _0x2593a6, _0x4e6c20 = _0x346e34[_0x4984e4(_0x339e77._0x1c1b9c)](_0x1e4580), _0x1f8468 = _0x4e6c20?.[_0x4984e4(0x229)] ?? _0x1e4580, _0x34fb33 = _0x4e6c20?.[_0x4984e4(0x277)] === 'dm' ? _0x4984e4(_0x339e77._0x25ed59) + _0x1f8468 : '#' + _0x1f8468, _0x37b565 = {
|
|
1319
|
+
'channelTarget': _0x34fb33,
|
|
1320
|
+
'rootMessageId': _0x2484f1,
|
|
1321
|
+
'threadId': _0x30f4bf,
|
|
1322
|
+
'threadNumber': _0x327980
|
|
1323
|
+
}, _0x1dc0c0 = await _0x334063({
|
|
1324
|
+
'channelId': _0x1e4580,
|
|
1325
|
+
'channelTarget': _0x34fb33,
|
|
1326
|
+
'limit': Math['max'](_0x407a79['length'], 0x32),
|
|
1327
|
+
'threadId': _0x30f4bf
|
|
1328
|
+
}), _0x533efa = new Map(_0x1dc0c0[_0x4984e4(0x28e)][_0x4984e4(_0x339e77._0x3962e2)](_0x5bfbbe => [
|
|
1329
|
+
_0x5bfbbe[_0x4984e4(0x29b)],
|
|
1330
|
+
_0x5bfbbe
|
|
1331
|
+
])), _0x504371 = _0x30f4bf ? _0x1c59a8(_0x37b565) : _0x34fb33, _0x293dbe = _0x125477 ? _0x2affd3 && _0x32dc93(_0x125477, _0x37b565) : !![], _0x4d1dd8 = _0x2affd3 ? _0x293dbe && _0x125477 ? _0x125477 : _0x504371 : _0x34fb33;
|
|
1332
|
+
for (const _0x33ed37 of _0x407a79) {
|
|
1333
|
+
if (!_0x293dbe)
|
|
1298
1334
|
continue;
|
|
1299
|
-
const
|
|
1300
|
-
if (
|
|
1335
|
+
const _0x5f17af = _0x2f465f['get'](_0x33ed37), _0x9130a5 = _0x5f17af ? asRecord(_0x5f17af[_0x4984e4(0x299)]) : void 0x0, _0x231501 = _0x9130a5?.[_0x4984e4(_0x339e77._0x321a82)] === 'targeted';
|
|
1336
|
+
if (_0x38a683 && _0x231501)
|
|
1301
1337
|
continue;
|
|
1302
|
-
const
|
|
1303
|
-
if (
|
|
1304
|
-
|
|
1305
|
-
'attachments':
|
|
1306
|
-
'content':
|
|
1307
|
-
'createdAt':
|
|
1308
|
-
'messageId':
|
|
1309
|
-
'senderName':
|
|
1310
|
-
'senderType':
|
|
1311
|
-
'target':
|
|
1312
|
-
...
|
|
1338
|
+
const _0x529863 = _0x533efa[_0x4984e4(0x228)](_0x33ed37);
|
|
1339
|
+
if (_0x529863) {
|
|
1340
|
+
_0xac0e9e[_0x4984e4(_0x339e77._0x3234df)]({
|
|
1341
|
+
'attachments': _0x529863[_0x4984e4(0x198)],
|
|
1342
|
+
'content': _0x529863[_0x4984e4(_0x339e77._0x4a1b38)],
|
|
1343
|
+
'createdAt': _0x529863[_0x4984e4(_0x339e77._0x58ee06)],
|
|
1344
|
+
'messageId': _0x529863[_0x4984e4(0x29b)],
|
|
1345
|
+
'senderName': _0x529863[_0x4984e4(_0x339e77._0x4f01cd)],
|
|
1346
|
+
'senderType': _0x529863[_0x4984e4(0x291)],
|
|
1347
|
+
'target': _0x4d1dd8,
|
|
1348
|
+
..._0x231501 ? { 'targetedTask': !![] } : {}
|
|
1313
1349
|
});
|
|
1314
1350
|
continue;
|
|
1315
1351
|
}
|
|
1316
|
-
if (
|
|
1317
|
-
const
|
|
1318
|
-
|
|
1352
|
+
if (_0x5f17af) {
|
|
1353
|
+
const _0x1370b0 = typeof _0x9130a5?.[_0x4984e4(_0x339e77._0x43e644)] === _0x4984e4(0x1bf) ? _0x9130a5[_0x4984e4(0x27b)] : '', _0x282de2 = typeof _0x9130a5?.['bodyMarkdown'] === _0x4984e4(_0x339e77._0xf00063) ? _0x9130a5['bodyMarkdown'] : '';
|
|
1354
|
+
_0x1370b0 && _0x282de2 && _0xac0e9e['push']({
|
|
1319
1355
|
'attachments': [],
|
|
1320
|
-
'content':
|
|
1321
|
-
'createdAt': new Date()[
|
|
1322
|
-
'messageId':
|
|
1323
|
-
'senderName':
|
|
1324
|
-
'senderType':
|
|
1325
|
-
'target':
|
|
1326
|
-
...
|
|
1356
|
+
'content': _0x282de2,
|
|
1357
|
+
'createdAt': new Date()[_0x4984e4(0x17b)](),
|
|
1358
|
+
'messageId': _0x33ed37,
|
|
1359
|
+
'senderName': _0x1370b0,
|
|
1360
|
+
'senderType': _0x1f670f(_0x1370b0, _0x4458a9),
|
|
1361
|
+
'target': _0x4d1dd8,
|
|
1362
|
+
..._0x231501 ? { 'targetedTask': !![] } : {}
|
|
1327
1363
|
});
|
|
1328
1364
|
}
|
|
1329
1365
|
}
|
|
1330
1366
|
}
|
|
1331
|
-
if (
|
|
1332
|
-
if (
|
|
1333
|
-
await
|
|
1367
|
+
if (_0x5c65b4 > 0x0) {
|
|
1368
|
+
if (_0x1ad9fb)
|
|
1369
|
+
await _0x4fca2a(_0x5c65b4);
|
|
1334
1370
|
else
|
|
1335
|
-
|
|
1371
|
+
_0x3749a8 && await _0x26f45c(_0x5c65b4);
|
|
1336
1372
|
}
|
|
1337
|
-
return
|
|
1373
|
+
return _0x5c65b4 > _0x31990d && (_0x31990d = _0x5c65b4), { 'messages': _0x125477 ? _0xac0e9e : _0x38a683 ? _0xac0e9e['filter'](_0x3ec820 => _0x3ec820[_0x4984e4(0x20b)] !== !![]) : _0xac0e9e };
|
|
1338
1374
|
}
|
|
1339
1375
|
};
|
|
1340
1376
|
}
|
|
1341
|
-
function
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
for (let _0x5256b3 = 0x0, _0x380bf4 = _0x29f647['length']; _0x5256b3 < _0x380bf4; _0x5256b3++) {
|
|
1353
|
-
_0x4552d2 += '%' + ('00' + _0x29f647['charCodeAt'](_0x5256b3)['toString'](0x10))['slice'](-0x2);
|
|
1354
|
-
}
|
|
1355
|
-
return decodeURIComponent(_0x4552d2);
|
|
1356
|
-
};
|
|
1357
|
-
_0x19bc['CPAXKx'] = _0x2cd425, _0x19bc['vmWduP'] = {}, _0x19bc['UAXPEG'] = !![];
|
|
1358
|
-
}
|
|
1359
|
-
const _0x2f6ace = _0x345b7f[0x0], _0x15b4f1 = _0x4be14d + _0x2f6ace, _0x3c557d = _0x19bc['vmWduP'][_0x15b4f1];
|
|
1360
|
-
return !_0x3c557d ? (_0x19bc23 = _0x19bc['CPAXKx'](_0x19bc23), _0x19bc['vmWduP'][_0x15b4f1] = _0x19bc23) : _0x19bc23 = _0x3c557d, _0x19bc23;
|
|
1361
|
-
}
|
|
1362
|
-
function toLocalTime(_0xd6e0b6) {
|
|
1363
|
-
const _0xf68bb4 = {
|
|
1364
|
-
_0x4715ec: 0x34d,
|
|
1365
|
-
_0x2eb294: 0x2cc
|
|
1366
|
-
}, _0x159040 = _0x5d5218, _0x5c1a79 = new Date(_0xd6e0b6);
|
|
1367
|
-
if (Number[_0x159040(0x224)](_0x5c1a79['getTime']()))
|
|
1368
|
-
return _0xd6e0b6;
|
|
1369
|
-
const _0x4015e9 = _0x53046e => String(_0x53046e)[_0x159040(0x1d4)](0x2, '0');
|
|
1370
|
-
return _0x5c1a79[_0x159040(0x30a)]() + '-' + _0x4015e9(_0x5c1a79[_0x159040(0x32e)]() + 0x1) + '-' + _0x4015e9(_0x5c1a79[_0x159040(_0xf68bb4._0x4715ec)]()) + '\x20' + _0x4015e9(_0x5c1a79[_0x159040(0x297)]()) + ':' + _0x4015e9(_0x5c1a79[_0x159040(0x311)]()) + ':' + _0x4015e9(_0x5c1a79[_0x159040(_0xf68bb4._0x2eb294)]());
|
|
1377
|
+
function toLocalTime(_0x43f3a0) {
|
|
1378
|
+
const _0xddca8e = {
|
|
1379
|
+
_0x5583b7: 0x1dd,
|
|
1380
|
+
_0x587b5e: 0x2a0,
|
|
1381
|
+
_0x273e08: 0x163,
|
|
1382
|
+
_0x2f547d: 0x21d
|
|
1383
|
+
}, _0x2a8e8b = _0x404ee2, _0x23e3cd = new Date(_0x43f3a0);
|
|
1384
|
+
if (Number[_0x2a8e8b(_0xddca8e._0x5583b7)](_0x23e3cd[_0x2a8e8b(0x276)]()))
|
|
1385
|
+
return _0x43f3a0;
|
|
1386
|
+
const _0x4f6027 = _0x4854b7 => String(_0x4854b7)[_0x2a8e8b(0x1c2)](0x2, '0');
|
|
1387
|
+
return _0x23e3cd[_0x2a8e8b(0x14b)]() + '-' + _0x4f6027(_0x23e3cd[_0x2a8e8b(0x1a2)]() + 0x1) + '-' + _0x4f6027(_0x23e3cd[_0x2a8e8b(_0xddca8e._0x587b5e)]()) + '\x20' + _0x4f6027(_0x23e3cd[_0x2a8e8b(_0xddca8e._0x273e08)]()) + ':' + _0x4f6027(_0x23e3cd[_0x2a8e8b(_0xddca8e._0x2f547d)]()) + ':' + _0x4f6027(_0x23e3cd['getSeconds']());
|
|
1371
1388
|
}
|
|
1372
|
-
function formatAttachmentSuffix(
|
|
1373
|
-
const
|
|
1374
|
-
|
|
1375
|
-
_0x4e8d19: 0x218,
|
|
1376
|
-
_0xab3d77: 0x214
|
|
1377
|
-
}, _0x2cb643 = _0x5d5218;
|
|
1378
|
-
if (!_0x4cf1c6 || _0x4cf1c6['length'] === 0x0)
|
|
1389
|
+
function formatAttachmentSuffix(_0x5cde35) {
|
|
1390
|
+
const _0x11c57b = _0x404ee2;
|
|
1391
|
+
if (!_0x5cde35 || _0x5cde35[_0x11c57b(0x1b0)] === 0x0)
|
|
1379
1392
|
return '';
|
|
1380
|
-
return '\x20[' +
|
|
1393
|
+
return '\x20[' + _0x5cde35[_0x11c57b(0x1b0)] + _0x11c57b(0x2b4) + (_0x5cde35[_0x11c57b(0x1b0)] > 0x1 ? 's' : '') + ':\x20' + _0x5cde35['map'](_0x13da04 => _0x13da04[_0x11c57b(0x1e6)] + _0x11c57b(0x25c) + _0x13da04['id'] + ')')['join'](',\x20') + _0x11c57b(0x298);
|
|
1381
1394
|
}
|
|
1382
|
-
function formatCheckMessages(
|
|
1383
|
-
const
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
+
function formatCheckMessages(_0x4cd237) {
|
|
1396
|
+
const _0x39ccb7 = {
|
|
1397
|
+
_0x45d0e7: 0x1b0,
|
|
1398
|
+
_0x388c06: 0x21b,
|
|
1399
|
+
_0x48f4c0: 0x2ae
|
|
1400
|
+
}, _0x1934db = {
|
|
1401
|
+
_0x4a68a0: 0x29b,
|
|
1402
|
+
_0x16a4cb: 0x1e3,
|
|
1403
|
+
_0x3a0c3e: 0x22d,
|
|
1404
|
+
_0x2785c9: 0x252,
|
|
1405
|
+
_0x35a70a: 0x198
|
|
1406
|
+
}, _0x55f5f0 = _0x404ee2;
|
|
1407
|
+
if (_0x4cd237[_0x55f5f0(_0x39ccb7._0x45d0e7)] === 0x0)
|
|
1408
|
+
return _0x55f5f0(_0x39ccb7._0x388c06);
|
|
1409
|
+
return _0x4cd237[_0x55f5f0(_0x39ccb7._0x48f4c0)](_0x322a0f => {
|
|
1410
|
+
const _0x2e3994 = _0x55f5f0, _0x7b3e52 = _0x322a0f[_0x2e3994(0x291)] === 'agent' ? '\x20type=agent' : '';
|
|
1411
|
+
return '[target=' + _0x322a0f[_0x2e3994(0x1c1)] + '\x20msg=' + _0x322a0f[_0x2e3994(_0x1934db._0x4a68a0)][_0x2e3994(_0x1934db._0x16a4cb)](0x0, 0x8) + _0x2e3994(_0x1934db._0x3a0c3e) + toLocalTime(_0x322a0f[_0x2e3994(_0x1934db._0x2785c9)]) + _0x7b3e52 + _0x2e3994(0x1f6) + _0x322a0f[_0x2e3994(0x27d)] + ':\x20' + _0x322a0f['content'] + formatAttachmentSuffix(_0x322a0f[_0x2e3994(_0x1934db._0x35a70a)]);
|
|
1412
|
+
})[_0x55f5f0(0x147)]('\x0a');
|
|
1395
1413
|
}
|
|
1396
|
-
function formatHistory(
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
if (_0x2f0b88[_0x1ea7ce(_0x15da78._0x568881)][_0x1ea7ce(_0x15da78._0x26fe2b)] === 0x0)
|
|
1416
|
-
return '##\x20Message\x20History\x20for\x20' + _0x2f0b88[_0x1ea7ce(_0x15da78._0x53ece0)] + _0x1ea7ce(_0x15da78._0x1431d4);
|
|
1417
|
-
const _0x44ec25 = _0x2f0b88['messages'][_0x1ea7ce(0x1e9)](_0x851f0 => {
|
|
1418
|
-
const _0x26013e = _0x1ea7ce, _0x42439b = _0x851f0[_0x26013e(0x2ab)] === _0x26013e(0x2c6) ? _0x26013e(_0x172c17._0x502a50) : '';
|
|
1419
|
-
return _0x26013e(0x219) + _0x851f0[_0x26013e(_0x172c17._0x5e9972)] + _0x26013e(0x1e0) + _0x851f0[_0x26013e(_0x172c17._0x1aa223)] + _0x26013e(_0x172c17._0x59559b) + toLocalTime(_0x851f0[_0x26013e(_0x172c17._0x31d627)]) + _0x42439b + _0x26013e(_0x172c17._0x3cd0a9) + _0x851f0[_0x26013e(0x346)] + ':\x20' + _0x851f0[_0x26013e(_0x172c17._0x2f0b35)] + formatAttachmentSuffix(_0x851f0['attachments']);
|
|
1420
|
-
})[_0x1ea7ce(0x1e1)]('\x0a'), _0x348753 = _0x2f0b88[_0x1ea7ce(_0x15da78._0x2718c0)] && _0x2f0b88[_0x1ea7ce(0x257)] ? _0x1ea7ce(_0x15da78._0x242e27) + _0x2f0b88[_0x1ea7ce(0x33f)]['length'] + '\x20messages\x20shown.\x20Use\x20before=' + _0x2f0b88[_0x1ea7ce(_0x15da78._0x4edb21)] + _0x1ea7ce(_0x15da78._0x39e3c6) : '';
|
|
1421
|
-
return _0x1ea7ce(0x2a5) + _0x2f0b88[_0x1ea7ce(_0x15da78._0x53ece0)] + '\x20(' + _0x2f0b88[_0x1ea7ce(_0x15da78._0x568881)][_0x1ea7ce(_0x15da78._0x26fe2b)] + '\x20messages)\x0a\x0a' + _0x44ec25 + _0x348753;
|
|
1414
|
+
function formatHistory(_0x405db8) {
|
|
1415
|
+
const _0x3745bb = {
|
|
1416
|
+
_0x12a85a: 0x162,
|
|
1417
|
+
_0x1113f9: 0x28e,
|
|
1418
|
+
_0x10a4b2: 0x25d,
|
|
1419
|
+
_0x2f4638: 0x1b0
|
|
1420
|
+
}, _0x8ec1c9 = {
|
|
1421
|
+
_0x2c7452: 0x25b,
|
|
1422
|
+
_0xb58e35: 0x1a7,
|
|
1423
|
+
_0x2d1fc6: 0x252,
|
|
1424
|
+
_0x53cf3c: 0x1f6
|
|
1425
|
+
}, _0x49f3c4 = _0x404ee2;
|
|
1426
|
+
if (_0x405db8['messages']['length'] === 0x0)
|
|
1427
|
+
return _0x49f3c4(_0x3745bb._0x12a85a) + _0x405db8[_0x49f3c4(0x1cb)] + _0x49f3c4(0x26c);
|
|
1428
|
+
const _0x273519 = _0x405db8['messages'][_0x49f3c4(0x2ae)](_0x4ff315 => {
|
|
1429
|
+
const _0x115f21 = _0x49f3c4, _0x246323 = _0x4ff315[_0x115f21(0x291)] === 'agent' ? _0x115f21(0x261) : '';
|
|
1430
|
+
return _0x115f21(_0x8ec1c9._0x2c7452) + _0x4ff315[_0x115f21(_0x8ec1c9._0xb58e35)] + _0x115f21(0x271) + _0x4ff315[_0x115f21(0x29b)] + _0x115f21(0x22d) + toLocalTime(_0x4ff315[_0x115f21(_0x8ec1c9._0x2d1fc6)]) + _0x246323 + _0x115f21(_0x8ec1c9._0x53cf3c) + _0x4ff315[_0x115f21(0x27d)] + ':\x20' + _0x4ff315['content'] + formatAttachmentSuffix(_0x4ff315[_0x115f21(0x198)]);
|
|
1431
|
+
})[_0x49f3c4(0x147)]('\x0a'), _0x820ac2 = _0x405db8['hasMore'] && _0x405db8['nextCursor'] ? '\x0a\x0a---\x20' + _0x405db8[_0x49f3c4(_0x3745bb._0x1113f9)]['length'] + '\x20messages\x20shown.\x20Use\x20before=' + _0x405db8[_0x49f3c4(0x15a)] + _0x49f3c4(_0x3745bb._0x10a4b2) : '';
|
|
1432
|
+
return _0x49f3c4(_0x3745bb._0x12a85a) + _0x405db8[_0x49f3c4(0x1cb)] + '\x20(' + _0x405db8[_0x49f3c4(0x28e)][_0x49f3c4(_0x3745bb._0x2f4638)] + _0x49f3c4(0x22e) + _0x273519 + _0x820ac2;
|
|
1422
1433
|
}
|
|
1423
|
-
function formatServerDirectory(
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1434
|
+
function formatServerDirectory(_0x353ff5) {
|
|
1435
|
+
const _0x465546 = {
|
|
1436
|
+
_0x56985b: 0x294,
|
|
1437
|
+
_0x221351: 0x294,
|
|
1438
|
+
_0x4b8632: 0x2ae,
|
|
1439
|
+
_0x52257f: 0x221,
|
|
1440
|
+
_0x52c8f9: 0x2ae,
|
|
1441
|
+
_0x44e83f: 0x147,
|
|
1442
|
+
_0x620493: 0x12c,
|
|
1443
|
+
_0xb88ac8: 0x13f
|
|
1444
|
+
}, _0x425d7c = _0x404ee2, _0x20a3a4 = _0x353ff5[_0x425d7c(_0x465546._0x56985b)]['length'] > 0x0 ? _0x353ff5[_0x425d7c(_0x465546._0x221351)][_0x425d7c(_0x465546._0x4b8632)](_0x3647d0 => _0x3647d0[_0x425d7c(0x1ca)] ? '-\x20#' + _0x3647d0[_0x425d7c(0x229)] + _0x425d7c(0x23a) + _0x3647d0[_0x425d7c(0x1ca)] : _0x425d7c(0x219) + _0x3647d0[_0x425d7c(0x229)])[_0x425d7c(0x147)]('\x0a') : _0x425d7c(0x12c), _0x266f47 = _0x353ff5['agents']['length'] > 0x0 ? _0x353ff5[_0x425d7c(_0x465546._0x52257f)][_0x425d7c(_0x465546._0x52c8f9)](_0x374ef8 => '-\x20@' + _0x374ef8['name'])[_0x425d7c(0x147)]('\x0a') : _0x425d7c(0x12c), _0x22f731 = _0x353ff5['humans'][_0x425d7c(0x1b0)] > 0x0 ? _0x353ff5[_0x425d7c(0x284)]['map'](_0x221b3b => _0x425d7c(0x168) + _0x221b3b['name'])[_0x425d7c(_0x465546._0x44e83f)]('\x0a') : _0x425d7c(_0x465546._0x620493);
|
|
1433
1445
|
return [
|
|
1434
|
-
|
|
1446
|
+
_0x425d7c(0x1b9) + _0x353ff5[_0x425d7c(0x12d)],
|
|
1435
1447
|
'',
|
|
1436
|
-
|
|
1437
|
-
|
|
1448
|
+
_0x425d7c(0x136),
|
|
1449
|
+
_0x20a3a4,
|
|
1438
1450
|
'',
|
|
1439
|
-
|
|
1440
|
-
|
|
1451
|
+
_0x425d7c(0x246),
|
|
1452
|
+
_0x266f47,
|
|
1441
1453
|
'',
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
][
|
|
1454
|
+
_0x425d7c(_0x465546._0xb88ac8),
|
|
1455
|
+
_0x22f731
|
|
1456
|
+
][_0x425d7c(0x147)]('\x0a');
|
|
1457
|
+
}
|
|
1458
|
+
function _0x5d14(_0x506560, _0x41a0cd) {
|
|
1459
|
+
_0x506560 = _0x506560 - 0x125;
|
|
1460
|
+
const _0x2d0dd6 = _0x2d0d();
|
|
1461
|
+
let _0x5d146c = _0x2d0dd6[_0x506560];
|
|
1462
|
+
if (_0x5d14['XTzmBH'] === undefined) {
|
|
1463
|
+
var _0x45cedb = function (_0x2a72e9) {
|
|
1464
|
+
const _0x5bb643 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1465
|
+
let _0x6a8220 = '', _0x50e420 = '';
|
|
1466
|
+
for (let _0x11696b = 0x0, _0x44864d, _0x335a7b, _0x14b0e1 = 0x0; _0x335a7b = _0x2a72e9['charAt'](_0x14b0e1++); ~_0x335a7b && (_0x44864d = _0x11696b % 0x4 ? _0x44864d * 0x40 + _0x335a7b : _0x335a7b, _0x11696b++ % 0x4) ? _0x6a8220 += String['fromCharCode'](0xff & _0x44864d >> (-0x2 * _0x11696b & 0x6)) : 0x0) {
|
|
1467
|
+
_0x335a7b = _0x5bb643['indexOf'](_0x335a7b);
|
|
1468
|
+
}
|
|
1469
|
+
for (let _0x25d18a = 0x0, _0x3b2bff = _0x6a8220['length']; _0x25d18a < _0x3b2bff; _0x25d18a++) {
|
|
1470
|
+
_0x50e420 += '%' + ('00' + _0x6a8220['charCodeAt'](_0x25d18a)['toString'](0x10))['slice'](-0x2);
|
|
1471
|
+
}
|
|
1472
|
+
return decodeURIComponent(_0x50e420);
|
|
1473
|
+
};
|
|
1474
|
+
_0x5d14['fudoLc'] = _0x45cedb, _0x5d14['FieVcr'] = {}, _0x5d14['XTzmBH'] = !![];
|
|
1475
|
+
}
|
|
1476
|
+
const _0x3428a6 = _0x2d0dd6[0x0], _0x2bf538 = _0x506560 + _0x3428a6, _0x24d716 = _0x5d14['FieVcr'][_0x2bf538];
|
|
1477
|
+
return !_0x24d716 ? (_0x5d146c = _0x5d14['fudoLc'](_0x5d146c), _0x5d14['FieVcr'][_0x2bf538] = _0x5d146c) : _0x5d146c = _0x24d716, _0x5d146c;
|
|
1445
1478
|
}
|
|
1446
|
-
function formatUploadResult(
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1479
|
+
function formatUploadResult(_0x1e4334) {
|
|
1480
|
+
const _0x135812 = {
|
|
1481
|
+
_0x2b8ab4: 0x225,
|
|
1482
|
+
_0x1f519f: 0x187
|
|
1483
|
+
}, _0x3fb8ee = _0x404ee2;
|
|
1484
|
+
return _0x3fb8ee(0x18c) + _0x1e4334[_0x3fb8ee(0x1e6)] + '\x20(' + (_0x1e4334[_0x3fb8ee(_0x135812._0x2b8ab4)] / 0x400)[_0x3fb8ee(0x170)](0x1) + _0x3fb8ee(0x216) + _0x1e4334[_0x3fb8ee(0x2b6)] + _0x3fb8ee(_0x135812._0x1f519f);
|
|
1449
1485
|
}
|
|
1450
|
-
function formatViewFileResult(
|
|
1451
|
-
const
|
|
1452
|
-
return
|
|
1486
|
+
function formatViewFileResult(_0x372bb2, _0x41a105) {
|
|
1487
|
+
const _0x246595 = _0x404ee2;
|
|
1488
|
+
return _0x41a105 ? _0x246595(0x186) + _0x372bb2 : _0x246595(0x25a) + _0x372bb2;
|
|
1453
1489
|
}
|
|
1454
|
-
function formatTaskList(
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
return
|
|
1465
|
-
|
|
1490
|
+
function formatTaskList(_0x53bb3f, _0x1bf8d4) {
|
|
1491
|
+
const _0x468656 = { _0x270c22: 0x17f }, _0xe36db1 = {
|
|
1492
|
+
_0x13af6d: 0x1fb,
|
|
1493
|
+
_0xf77e13: 0x17a,
|
|
1494
|
+
_0x41772e: 0x29b,
|
|
1495
|
+
_0x27036d: 0x1fb,
|
|
1496
|
+
_0x1d0111: 0x293,
|
|
1497
|
+
_0x702e2: 0x201
|
|
1498
|
+
}, _0x3c6bea = _0x404ee2;
|
|
1499
|
+
if (_0x53bb3f['length'] === 0x0)
|
|
1500
|
+
return _0x3c6bea(_0x468656._0x270c22);
|
|
1501
|
+
return _0x53bb3f['map'](_0x3908c4 => {
|
|
1502
|
+
const _0x5a750c = _0x3c6bea, _0x4efd97 = _0x3908c4[_0x5a750c(_0xe36db1._0x13af6d)] == null ? '(legacy)' : '#' + _0x3908c4[_0x5a750c(0x1fb)], _0x3dcb28 = _0x3908c4[_0x5a750c(0x29b)] ? _0x5a750c(_0xe36db1._0xf77e13) + _0x3908c4[_0x5a750c(_0xe36db1._0x41772e)] : '', _0x40359f = _0x1bf8d4 && _0x3908c4[_0x5a750c(0x1fb)] != null && _0x1bf8d4[_0x5a750c(0x2b5)](_0x3908c4[_0x5a750c(_0xe36db1._0x27036d)]) ? _0x5a750c(0x241) : '';
|
|
1503
|
+
return _0x4efd97 + '\x20[' + _0x3908c4[_0x5a750c(_0xe36db1._0x1d0111)] + ']\x20' + _0x3908c4[_0x5a750c(_0xe36db1._0x702e2)] + _0x3dcb28 + _0x40359f;
|
|
1504
|
+
})['join']('\x0a');
|
|
1466
1505
|
}
|
|
1467
|
-
function formatCreatedTasks(
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
},
|
|
1472
|
-
if (
|
|
1473
|
-
return
|
|
1474
|
-
return
|
|
1475
|
-
const
|
|
1476
|
-
return
|
|
1477
|
-
})[
|
|
1506
|
+
function formatCreatedTasks(_0x5c6eaf) {
|
|
1507
|
+
const _0xdaa74c = { _0x379e1a: 0x2ae }, _0x19f1de = {
|
|
1508
|
+
_0x113311: 0x201,
|
|
1509
|
+
_0x3eab62: 0x29b
|
|
1510
|
+
}, _0x4e6fba = _0x404ee2;
|
|
1511
|
+
if (_0x5c6eaf['length'] === 0x0)
|
|
1512
|
+
return 'No\x20tasks\x20created.';
|
|
1513
|
+
return _0x5c6eaf[_0x4e6fba(_0xdaa74c._0x379e1a)](_0x22720a => {
|
|
1514
|
+
const _0x1b875a = _0x4e6fba, _0x57c032 = _0x22720a['taskNumber'] == null ? _0x1b875a(0x227) : '#' + _0x22720a['taskNumber'];
|
|
1515
|
+
return _0x57c032 + '\x20' + _0x22720a[_0x1b875a(_0x19f1de._0x113311)] + _0x1b875a(0x17a) + _0x22720a[_0x1b875a(_0x19f1de._0x3eab62)];
|
|
1516
|
+
})[_0x4e6fba(0x147)]('\x0a');
|
|
1478
1517
|
}
|
|
1479
|
-
function formatClaimTaskResults(
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
const _0x51cb7d = _0x226382[_0x5284a6(_0x43263e._0x3846ed)] == null ? _0x5284a6(0x299) : '#' + _0x226382['taskNumber'], _0x20878a = _0x226382['messageId'] ? _0x5284a6(0x323) + _0x226382[_0x5284a6(0x237)] : '';
|
|
1505
|
-
if (_0x226382[_0x5284a6(_0x43263e._0x552a38)]) {
|
|
1506
|
-
const _0x4efdd6 = [
|
|
1507
|
-
_0x5284a6(0x331),
|
|
1508
|
-
_0x226382['stopMain'] ? _0x5284a6(_0x43263e._0x263413) : null,
|
|
1509
|
-
_0x226382[_0x5284a6(0x210)] ? _0x5284a6(_0x43263e._0xc82918) + _0x226382[_0x5284a6(_0x43263e._0x110a76)] : null,
|
|
1510
|
-
_0x226382[_0x5284a6(_0x43263e._0x4a68d3)] ? _0x5284a6(0x234) + _0x226382[_0x5284a6(0x227)] : null,
|
|
1511
|
-
_0x226382[_0x5284a6(_0x43263e._0x328b42)] ? _0x5284a6(_0x43263e._0x2c438e) + _0x226382[_0x5284a6(_0x43263e._0x1abab6)] : null
|
|
1512
|
-
][_0x5284a6(_0x43263e._0x35e96c)](Boolean)[_0x5284a6(0x1e1)]('\x20');
|
|
1513
|
-
return _0x51cb7d + _0x5284a6(0x29c) + _0x20878a + '\x20' + _0x4efdd6 + _0x5284a6(0x238);
|
|
1518
|
+
function formatClaimTaskResults(_0x516004) {
|
|
1519
|
+
const _0x1612d4 = { _0xb5fa16: 0x1b0 }, _0x4c5cc1 = {
|
|
1520
|
+
_0x12a441: 0x1fb,
|
|
1521
|
+
_0x2d2d9d: 0x29b,
|
|
1522
|
+
_0x42f9c1: 0x232,
|
|
1523
|
+
_0x378716: 0x282,
|
|
1524
|
+
_0xc62470: 0x1bd,
|
|
1525
|
+
_0xe125bd: 0x29b,
|
|
1526
|
+
_0x4b6edc: 0x199
|
|
1527
|
+
}, _0x36b362 = _0x404ee2;
|
|
1528
|
+
if (_0x516004[_0x36b362(_0x1612d4._0xb5fa16)] === 0x0)
|
|
1529
|
+
return _0x36b362(0x16b);
|
|
1530
|
+
return _0x516004['map'](_0x380d53 => {
|
|
1531
|
+
const _0x53bc2c = _0x36b362;
|
|
1532
|
+
if (_0x380d53[_0x53bc2c(0x235)]) {
|
|
1533
|
+
const _0x5c8435 = _0x380d53[_0x53bc2c(_0x4c5cc1._0x12a441)] == null ? '(legacy)' : '#' + _0x380d53[_0x53bc2c(0x1fb)], _0x233bec = _0x380d53[_0x53bc2c(_0x4c5cc1._0x2d2d9d)] ? _0x53bc2c(0x17a) + _0x380d53['messageId'] : '';
|
|
1534
|
+
if (_0x380d53[_0x53bc2c(0x278)]) {
|
|
1535
|
+
const _0x76c503 = [
|
|
1536
|
+
'workerHandoff=true',
|
|
1537
|
+
_0x380d53[_0x53bc2c(0x12f)] ? _0x53bc2c(0x1c4) : null,
|
|
1538
|
+
_0x380d53['executionMode'] ? _0x53bc2c(0x1c8) + _0x380d53[_0x53bc2c(_0x4c5cc1._0x42f9c1)] : null,
|
|
1539
|
+
_0x380d53[_0x53bc2c(_0x4c5cc1._0x378716)] ? 'threadTarget=' + _0x380d53[_0x53bc2c(0x282)] : null,
|
|
1540
|
+
_0x380d53[_0x53bc2c(0x19c)] ? _0x53bc2c(0x2a5) + _0x380d53[_0x53bc2c(0x19c)] : null
|
|
1541
|
+
][_0x53bc2c(0x1d7)](Boolean)[_0x53bc2c(0x147)]('\x20');
|
|
1542
|
+
return _0x5c8435 + _0x53bc2c(0x24c) + _0x233bec + '\x20' + _0x76c503 + _0x53bc2c(0x288);
|
|
1514
1543
|
}
|
|
1515
|
-
const
|
|
1516
|
-
return
|
|
1544
|
+
const _0x4976fd = _0x380d53[_0x53bc2c(0x175)] ? _0x53bc2c(_0x4c5cc1._0xc62470) + _0x380d53['workerHandoffError'] : '';
|
|
1545
|
+
return _0x5c8435 + _0x53bc2c(0x24c) + _0x233bec + _0x4976fd;
|
|
1517
1546
|
}
|
|
1518
|
-
const
|
|
1519
|
-
return
|
|
1520
|
-
})[
|
|
1547
|
+
const _0x1115a9 = _0x380d53[_0x53bc2c(0x1fb)] == null ? _0x380d53[_0x53bc2c(_0x4c5cc1._0xe125bd)] ?? '(unknown)' : '#' + _0x380d53[_0x53bc2c(_0x4c5cc1._0x12a441)];
|
|
1548
|
+
return _0x1115a9 + _0x53bc2c(_0x4c5cc1._0x4b6edc) + (_0x380d53['reason'] ?? _0x53bc2c(0x202));
|
|
1549
|
+
})[_0x36b362(0x147)]('\x0a');
|
|
1521
1550
|
}
|
|
1522
|
-
function formatUnclaimTaskResult(
|
|
1523
|
-
const
|
|
1524
|
-
return
|
|
1551
|
+
function formatUnclaimTaskResult(_0xcaae00) {
|
|
1552
|
+
const _0x386793 = _0x404ee2, _0x29998 = _0xcaae00[_0x386793(0x1fb)] == null ? _0x386793(0x227) : '#' + _0xcaae00[_0x386793(0x1fb)];
|
|
1553
|
+
return _0x29998 + _0x386793(0x262) + _0xcaae00[_0x386793(0x293)];
|
|
1525
1554
|
}
|
|
1526
|
-
function formatUpdateTaskStatusResult(
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1555
|
+
function formatUpdateTaskStatusResult(_0x5be745) {
|
|
1556
|
+
const _0xc5cdb4 = {
|
|
1557
|
+
_0x26635a: 0x1fb,
|
|
1558
|
+
_0xc209f9: 0x227,
|
|
1559
|
+
_0x1d1b49: 0x1fb,
|
|
1560
|
+
_0x5435ba: 0x262,
|
|
1561
|
+
_0x36ba54: 0x293
|
|
1562
|
+
}, _0x37cb77 = _0x404ee2, _0x1403c9 = _0x5be745[_0x37cb77(_0xc5cdb4._0x26635a)] == null ? _0x37cb77(_0xc5cdb4._0xc209f9) : '#' + _0x5be745[_0x37cb77(_0xc5cdb4._0x1d1b49)];
|
|
1563
|
+
return _0x1403c9 + _0x37cb77(_0xc5cdb4._0x5435ba) + _0x5be745[_0x37cb77(_0xc5cdb4._0x36ba54)];
|
|
1534
1564
|
}
|
|
1535
1565
|
function getChatBridgeToolDefinitions() {
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1566
|
+
const _0x3ff26a = {
|
|
1567
|
+
_0x533b03: 0x29d,
|
|
1568
|
+
_0x187f2f: 0x295,
|
|
1569
|
+
_0x5ae804: 0x297,
|
|
1570
|
+
_0x34de78: 0x1c9,
|
|
1571
|
+
_0x49dcaf: 0x260,
|
|
1572
|
+
_0x289f0c: 0x1bc,
|
|
1573
|
+
_0x400804: 0x24e,
|
|
1574
|
+
_0x44b242: 0x183
|
|
1575
|
+
}, _0x13900c = _0x404ee2;
|
|
1543
1576
|
return [
|
|
1544
|
-
{ 'name':
|
|
1577
|
+
{ 'name': _0x13900c(_0x3ff26a._0x533b03) },
|
|
1545
1578
|
{ 'name': 'check_messages' },
|
|
1546
|
-
{ 'name':
|
|
1547
|
-
{ 'name':
|
|
1548
|
-
{ 'name':
|
|
1549
|
-
{ 'name':
|
|
1550
|
-
{ 'name':
|
|
1551
|
-
{ 'name':
|
|
1552
|
-
{ 'name':
|
|
1553
|
-
{ 'name':
|
|
1554
|
-
{ 'name':
|
|
1555
|
-
{ 'name':
|
|
1556
|
-
{ 'name':
|
|
1557
|
-
{ 'name':
|
|
1579
|
+
{ 'name': _0x13900c(_0x3ff26a._0x187f2f) },
|
|
1580
|
+
{ 'name': _0x13900c(0x176) },
|
|
1581
|
+
{ 'name': _0x13900c(_0x3ff26a._0x5ae804) },
|
|
1582
|
+
{ 'name': _0x13900c(_0x3ff26a._0x34de78) },
|
|
1583
|
+
{ 'name': _0x13900c(_0x3ff26a._0x49dcaf) },
|
|
1584
|
+
{ 'name': _0x13900c(0x274) },
|
|
1585
|
+
{ 'name': _0x13900c(0x212) },
|
|
1586
|
+
{ 'name': _0x13900c(_0x3ff26a._0x289f0c) },
|
|
1587
|
+
{ 'name': _0x13900c(_0x3ff26a._0x400804) },
|
|
1588
|
+
{ 'name': _0x13900c(0x19a) },
|
|
1589
|
+
{ 'name': _0x13900c(0x17e) },
|
|
1590
|
+
{ 'name': _0x13900c(_0x3ff26a._0x44b242) },
|
|
1558
1591
|
{ 'name': 'escalate_to_main' },
|
|
1559
|
-
{ 'name':
|
|
1592
|
+
{ 'name': _0x13900c(0x275) }
|
|
1560
1593
|
];
|
|
1561
1594
|
}
|
|
1562
|
-
function createChatBridgeHandlers(
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
},
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
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
|
-
_0x47a40d: 0x317,
|
|
1684
|
-
_0x284178: 0x269,
|
|
1685
|
-
_0x38303b: 0x26a,
|
|
1686
|
-
_0x3f379b: 0x1e1,
|
|
1687
|
-
_0x67dc44: 0x209,
|
|
1688
|
-
_0x3dc2a7: 0x1d5,
|
|
1689
|
-
_0x40016c: 0x2fb,
|
|
1690
|
-
_0x28afa0: 0x1da,
|
|
1691
|
-
_0x505d26: 0x1ea,
|
|
1692
|
-
_0x1e54cd: 0x1da,
|
|
1693
|
-
_0x47c0a9: 0x267,
|
|
1694
|
-
_0x47ed7f: 0x1f3,
|
|
1695
|
-
_0xcae394: 0x244,
|
|
1696
|
-
_0x5ac4db: 0x255
|
|
1697
|
-
}, _0x1222d2 = _0x5d5218;
|
|
1698
|
-
async function _0x1b5b96(_0x30fdd7) {
|
|
1699
|
-
const _0xf92a7 = _0x19bc;
|
|
1700
|
-
if (!_0x29cb8e[_0xf92a7(0x215)] || !_0x29cb8e['agentId'] || _0x29cb8e['workerMode'] || _0x29cb8e[_0xf92a7(0x26f)] !== !![])
|
|
1595
|
+
function createChatBridgeHandlers(_0x1bf818) {
|
|
1596
|
+
const _0x1c9e5a = {
|
|
1597
|
+
_0x81368e: 0x287,
|
|
1598
|
+
_0x407a0b: 0x1e5,
|
|
1599
|
+
_0x59cd04: 0x1d1
|
|
1600
|
+
}, _0x17efea = {
|
|
1601
|
+
_0x5ec2ac: 0x14e,
|
|
1602
|
+
_0x482c35: 0x181,
|
|
1603
|
+
_0x6e3603: 0x14e,
|
|
1604
|
+
_0xba9563: 0x2b1,
|
|
1605
|
+
_0x1bf812: 0x174,
|
|
1606
|
+
_0x341a0b: 0x1a1,
|
|
1607
|
+
_0x9c9afd: 0x1c6
|
|
1608
|
+
}, _0x164a04 = {
|
|
1609
|
+
_0x5bf945: 0x1eb,
|
|
1610
|
+
_0x245d7c: 0x2ad,
|
|
1611
|
+
_0x569eb5: 0x174,
|
|
1612
|
+
_0x5a215d: 0x1c6
|
|
1613
|
+
}, _0xc6462c = {
|
|
1614
|
+
_0x5267d5: 0x14e,
|
|
1615
|
+
_0x568978: 0x1a1,
|
|
1616
|
+
_0x572b1d: 0x15f,
|
|
1617
|
+
_0x40339b: 0x134,
|
|
1618
|
+
_0x22385c: 0x24b,
|
|
1619
|
+
_0x4bf244: 0x1ab,
|
|
1620
|
+
_0x530778: 0x24f
|
|
1621
|
+
}, _0x3fde99 = {
|
|
1622
|
+
_0x2afb1e: 0x19d,
|
|
1623
|
+
_0x189a61: 0x22f,
|
|
1624
|
+
_0x4efc37: 0x19d,
|
|
1625
|
+
_0x3882ed: 0x207
|
|
1626
|
+
}, _0x2c89d7 = {
|
|
1627
|
+
_0x10bd1c: 0x181,
|
|
1628
|
+
_0x21202a: 0x19d,
|
|
1629
|
+
_0xbe3467: 0x171,
|
|
1630
|
+
_0x36a4df: 0x19d,
|
|
1631
|
+
_0x3539aa: 0x1d9
|
|
1632
|
+
}, _0x4fb0d3 = {
|
|
1633
|
+
_0x55ecd3: 0x290,
|
|
1634
|
+
_0x4a6d67: 0x1bb
|
|
1635
|
+
}, _0x187402 = {
|
|
1636
|
+
_0x5ecf4c: 0x2ab,
|
|
1637
|
+
_0x2b58d3: 0x1cb
|
|
1638
|
+
}, _0x434eb2 = { _0xb26038: 0x2ab }, _0x370f31 = {
|
|
1639
|
+
_0x397a7b: 0x1e4,
|
|
1640
|
+
_0xb8758b: 0x255
|
|
1641
|
+
}, _0x382fe7 = { _0x3f6f2e: 0x259 }, _0x82320d = {
|
|
1642
|
+
_0x3ed305: 0x265,
|
|
1643
|
+
_0x282ce7: 0x1b0,
|
|
1644
|
+
_0x52aa3b: 0x160,
|
|
1645
|
+
_0x563c61: 0x1fb,
|
|
1646
|
+
_0x4e8080: 0x139,
|
|
1647
|
+
_0xd7c5fa: 0x1da
|
|
1648
|
+
}, _0x4ecd93 = {
|
|
1649
|
+
_0x267cb7: 0x2ab,
|
|
1650
|
+
_0x33cfff: 0x2a7
|
|
1651
|
+
}, _0x1a22ee = { _0x2707ec: 0x2ab }, _0x28a82c = {
|
|
1652
|
+
_0x2fa279: 0x2ab,
|
|
1653
|
+
_0x2bed5a: 0x28e,
|
|
1654
|
+
_0x4959f9: 0x1d7
|
|
1655
|
+
}, _0x3b1f1e = {
|
|
1656
|
+
_0x591a35: 0x182,
|
|
1657
|
+
_0x43781c: 0x14e,
|
|
1658
|
+
_0x446405: 0x2b2,
|
|
1659
|
+
_0x115c13: 0x1fb,
|
|
1660
|
+
_0x40ad9d: 0x153,
|
|
1661
|
+
_0x5ef9bf: 0x1db,
|
|
1662
|
+
_0x34161a: 0x1d2,
|
|
1663
|
+
_0x38bd49: 0x17b,
|
|
1664
|
+
_0x481120: 0x22a,
|
|
1665
|
+
_0x49b1ba: 0x196,
|
|
1666
|
+
_0x3724eb: 0x1a6,
|
|
1667
|
+
_0x12740a: 0x24b,
|
|
1668
|
+
_0x355f48: 0x1c6,
|
|
1669
|
+
_0x385323: 0x283,
|
|
1670
|
+
_0xd3ea71: 0x155,
|
|
1671
|
+
_0x1beca8: 0x28f,
|
|
1672
|
+
_0x1e75fd: 0x152,
|
|
1673
|
+
_0x215966: 0x190,
|
|
1674
|
+
_0x178032: 0x147,
|
|
1675
|
+
_0x5ee08f: 0x1b7,
|
|
1676
|
+
_0x2fcfcd: 0x234,
|
|
1677
|
+
_0x4855d3: 0x1c1
|
|
1678
|
+
}, _0x22aa19 = {
|
|
1679
|
+
_0x4b5850: 0x12e,
|
|
1680
|
+
_0x5ce663: 0x1eb,
|
|
1681
|
+
_0x49adc5: 0x22c,
|
|
1682
|
+
_0x433f4e: 0x160,
|
|
1683
|
+
_0x55f6d5: 0x193
|
|
1684
|
+
}, _0x342aca = {
|
|
1685
|
+
_0x40160b: 0x1eb,
|
|
1686
|
+
_0x985281: 0x265,
|
|
1687
|
+
_0xcbc054: 0x22c
|
|
1688
|
+
}, _0x5f060a = {
|
|
1689
|
+
_0x1e56f5: 0x14e,
|
|
1690
|
+
_0x50f894: 0x1eb,
|
|
1691
|
+
_0x1d83ea: 0x277,
|
|
1692
|
+
_0x303a9c: 0x1cb,
|
|
1693
|
+
_0xc6c7bb: 0x153,
|
|
1694
|
+
_0x23666d: 0x1ae,
|
|
1695
|
+
_0x46a35f: 0x2ab,
|
|
1696
|
+
_0x45af36: 0x28e,
|
|
1697
|
+
_0x4a3063: 0x1fb,
|
|
1698
|
+
_0x19bbc7: 0x227,
|
|
1699
|
+
_0x3ad745: 0x17b,
|
|
1700
|
+
_0x27e263: 0x200,
|
|
1701
|
+
_0x204d90: 0x257,
|
|
1702
|
+
_0x53c9f1: 0x22a,
|
|
1703
|
+
_0x1be877: 0x147,
|
|
1704
|
+
_0x27b65b: 0x1a6,
|
|
1705
|
+
_0x3a68a5: 0x1a1,
|
|
1706
|
+
_0x258f98: 0x27f,
|
|
1707
|
+
_0x54dcd7: 0x29f,
|
|
1708
|
+
_0x3aef69: 0x24b,
|
|
1709
|
+
_0x267181: 0x1a0,
|
|
1710
|
+
_0x37f367: 0x184,
|
|
1711
|
+
_0x5b42c: 0x29e
|
|
1712
|
+
}, _0x32743c = _0x404ee2;
|
|
1713
|
+
async function _0x3ffad2(_0x13dadd) {
|
|
1714
|
+
const _0x37c645 = _0x5d14;
|
|
1715
|
+
if (!_0x1bf818[_0x37c645(_0x5f060a._0x1e56f5)] || !_0x1bf818[_0x37c645(_0x5f060a._0x50f894)] || _0x1bf818[_0x37c645(0x182)] || _0x1bf818['workerModeEnabled'] !== !![])
|
|
1701
1716
|
return null;
|
|
1702
|
-
const
|
|
1703
|
-
if (
|
|
1717
|
+
const _0x199661 = parseTarget(_0x13dadd['channel']);
|
|
1718
|
+
if (_0x199661[_0x37c645(_0x5f060a._0x1d83ea)] !== _0x37c645(_0x5f060a._0x303a9c))
|
|
1704
1719
|
return null;
|
|
1705
|
-
const
|
|
1706
|
-
let
|
|
1720
|
+
const _0xce8818 = _0x13dadd[_0x37c645(_0x5f060a._0xc6c7bb)] != null ? _0x199661[_0x37c645(_0x5f060a._0x23666d)] + ':t' + _0x13dadd[_0x37c645(0x153)] : _0x199661[_0x37c645(0x1ae)] + ':' + _0x13dadd[_0x37c645(0x29b)];
|
|
1721
|
+
let _0x1f20a0;
|
|
1707
1722
|
try {
|
|
1708
|
-
const
|
|
1709
|
-
'channel':
|
|
1723
|
+
const _0xfcd2b8 = await _0x1bf818[_0x37c645(_0x5f060a._0x46a35f)][_0x37c645(0x21e)]({
|
|
1724
|
+
'channel': _0xce8818,
|
|
1710
1725
|
'limit': 0x14
|
|
1711
1726
|
});
|
|
1712
|
-
|
|
1727
|
+
_0x1f20a0 = _0xfcd2b8[_0x37c645(_0x5f060a._0x45af36)][_0x37c645(0x1da)](_0x206216 => _0x206216['messageId'] === _0x13dadd['messageId']);
|
|
1713
1728
|
} catch {
|
|
1714
|
-
|
|
1729
|
+
_0x1f20a0 = void 0x0;
|
|
1715
1730
|
}
|
|
1716
|
-
const
|
|
1717
|
-
|
|
1731
|
+
const _0x104449 = _0x13dadd[_0x37c645(_0x5f060a._0x4a3063)] == null ? _0x37c645(_0x5f060a._0x19bbc7) : '#' + _0x13dadd[_0x37c645(0x1fb)], _0x5686bd = [
|
|
1732
|
+
'[target=' + _0xce8818 + '\x20msg=' + _0x13dadd[_0x37c645(0x29b)][_0x37c645(0x1e3)](0x0, 0x8) + _0x37c645(0x22d) + new Date()[_0x37c645(_0x5f060a._0x3ad745)]() + _0x37c645(_0x5f060a._0x27e263) + _0x104449 + _0x37c645(_0x5f060a._0x204d90),
|
|
1718
1733
|
'',
|
|
1719
|
-
|
|
1734
|
+
_0x1f20a0 ? 'Root\x20task\x20message:\x0a' + _0x1f20a0[_0x37c645(_0x5f060a._0x53c9f1)] : _0x37c645(0x19e) + _0x13dadd[_0x37c645(0x29b)],
|
|
1720
1735
|
'',
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
][
|
|
1724
|
-
'method':
|
|
1725
|
-
'headers': { 'Content-Type':
|
|
1726
|
-
'body': JSON[
|
|
1727
|
-
'agent_id':
|
|
1728
|
-
'thread_target':
|
|
1736
|
+
_0x37c645(0x196) + _0xce8818,
|
|
1737
|
+
_0x37c645(0x210)
|
|
1738
|
+
][_0x37c645(_0x5f060a._0x1be877)]('\x0a'), _0x3b8dc9 = await fetch(_0x1bf818[_0x37c645(_0x5f060a._0x1e56f5)] + _0x37c645(_0x5f060a._0x27b65b), {
|
|
1739
|
+
'method': _0x37c645(0x2b1),
|
|
1740
|
+
'headers': { 'Content-Type': _0x37c645(0x174) },
|
|
1741
|
+
'body': JSON[_0x37c645(_0x5f060a._0x3a68a5)]({
|
|
1742
|
+
'agent_id': _0x1bf818[_0x37c645(_0x5f060a._0x50f894)],
|
|
1743
|
+
'thread_target': _0xce8818,
|
|
1729
1744
|
'spawn_packet': {
|
|
1730
|
-
'replyTarget':
|
|
1731
|
-
...
|
|
1745
|
+
'replyTarget': _0xce8818,
|
|
1746
|
+
..._0x13dadd['taskId'] ? { 'taskId': _0x13dadd['taskId'] } : _0x13dadd[_0x37c645(0x1fb)] != null ? { 'taskId': _0x37c645(_0x5f060a._0x258f98) + _0x13dadd['taskNumber'] } : {}
|
|
1732
1747
|
},
|
|
1733
1748
|
'payload': {
|
|
1734
|
-
'mode':
|
|
1735
|
-
'text':
|
|
1749
|
+
'mode': _0x37c645(_0x5f060a._0x54dcd7),
|
|
1750
|
+
'text': _0x5686bd
|
|
1736
1751
|
}
|
|
1737
1752
|
})
|
|
1738
|
-
}),
|
|
1739
|
-
if (!
|
|
1740
|
-
throw new Error(
|
|
1753
|
+
}), _0x576169 = await _0x3b8dc9[_0x37c645(_0x5f060a._0x3aef69)]();
|
|
1754
|
+
if (!_0x576169['ok'])
|
|
1755
|
+
throw new Error(_0x576169[_0x37c645(0x1c6)] ?? _0x37c645(_0x5f060a._0x267181));
|
|
1741
1756
|
return {
|
|
1742
1757
|
'stopMain': !![],
|
|
1743
|
-
'threadTarget':
|
|
1744
|
-
'workerDisposition':
|
|
1758
|
+
'threadTarget': _0xce8818,
|
|
1759
|
+
'workerDisposition': _0x576169['disposition'] === _0x37c645(0x28f) ? _0x37c645(0x28f) : _0x37c645(0x152),
|
|
1745
1760
|
'workerHandoff': !![],
|
|
1746
|
-
'workerSessionId':
|
|
1747
|
-
'executionMode':
|
|
1761
|
+
'workerSessionId': _0x576169[_0x37c645(_0x5f060a._0x37f367)] ?? '',
|
|
1762
|
+
'executionMode': _0x37c645(_0x5f060a._0x5b42c)
|
|
1748
1763
|
};
|
|
1749
1764
|
}
|
|
1750
|
-
async function
|
|
1751
|
-
const
|
|
1752
|
-
if (!
|
|
1765
|
+
async function _0x4e20e4() {
|
|
1766
|
+
const _0x2c0197 = _0x5d14;
|
|
1767
|
+
if (!_0x1bf818['daemonLocalUrl'] || !_0x1bf818[_0x2c0197(_0x342aca._0x40160b)] || _0x1bf818['workerMode'])
|
|
1753
1768
|
return null;
|
|
1754
1769
|
try {
|
|
1755
|
-
const
|
|
1756
|
-
if (!
|
|
1770
|
+
const _0x1164d4 = await fetch(_0x1bf818['daemonLocalUrl'] + _0x2c0197(0x12e) + encodeURIComponent(_0x1bf818['agentId'])), _0x3acab0 = await _0x1164d4['json']();
|
|
1771
|
+
if (!_0x3acab0['ok'])
|
|
1757
1772
|
return null;
|
|
1758
|
-
const
|
|
1759
|
-
for (const
|
|
1760
|
-
|
|
1773
|
+
const _0xc87d2d = new Set();
|
|
1774
|
+
for (const _0x1a32b1 of _0x3acab0[_0x2c0197(_0x342aca._0x985281)]) {
|
|
1775
|
+
_0x1a32b1['status'] !== _0x2c0197(0x14a) && _0x1a32b1[_0x2c0197(_0x342aca._0xcbc054)] && _0xc87d2d[_0x2c0197(0x160)](_0x1a32b1[_0x2c0197(0x22c)]);
|
|
1761
1776
|
}
|
|
1762
|
-
return
|
|
1777
|
+
return _0xc87d2d[_0x2c0197(0x193)] > 0x0 ? _0xc87d2d : null;
|
|
1763
1778
|
} catch {
|
|
1764
1779
|
return null;
|
|
1765
1780
|
}
|
|
1766
1781
|
}
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1782
|
+
const _0x23ab12 = new Set([
|
|
1783
|
+
_0x32743c(_0x1c9e5a._0x81368e),
|
|
1784
|
+
_0x32743c(_0x1c9e5a._0x407a0b),
|
|
1785
|
+
_0x32743c(_0x1c9e5a._0x59cd04)
|
|
1771
1786
|
]);
|
|
1772
|
-
async function
|
|
1773
|
-
const
|
|
1774
|
-
if (!
|
|
1787
|
+
async function _0x9339a9() {
|
|
1788
|
+
const _0x57acbe = _0x32743c;
|
|
1789
|
+
if (!_0x1bf818['daemonLocalUrl'] || !_0x1bf818['agentId'] || _0x1bf818['workerMode'])
|
|
1775
1790
|
return null;
|
|
1776
1791
|
try {
|
|
1777
|
-
const
|
|
1778
|
-
if (!
|
|
1792
|
+
const _0x383759 = await fetch(_0x1bf818[_0x57acbe(0x14e)] + _0x57acbe(_0x22aa19._0x4b5850) + encodeURIComponent(_0x1bf818[_0x57acbe(_0x22aa19._0x5ce663)])), _0x5b03d4 = await _0x383759[_0x57acbe(0x24b)]();
|
|
1793
|
+
if (!_0x5b03d4['ok'])
|
|
1779
1794
|
return null;
|
|
1780
|
-
const
|
|
1781
|
-
for (const
|
|
1782
|
-
|
|
1795
|
+
const _0xe79a1a = new Set();
|
|
1796
|
+
for (const _0x61c53a of _0x5b03d4['workers']) {
|
|
1797
|
+
_0x23ab12['has'](_0x61c53a[_0x57acbe(0x293)]) && _0x61c53a[_0x57acbe(_0x22aa19._0x49adc5)] && _0xe79a1a[_0x57acbe(_0x22aa19._0x433f4e)](_0x61c53a[_0x57acbe(0x22c)]);
|
|
1783
1798
|
}
|
|
1784
|
-
return
|
|
1799
|
+
return _0xe79a1a[_0x57acbe(_0x22aa19._0x55f6d5)] > 0x0 ? _0xe79a1a : null;
|
|
1785
1800
|
} catch {
|
|
1786
1801
|
return null;
|
|
1787
1802
|
}
|
|
1788
1803
|
}
|
|
1789
1804
|
return {
|
|
1790
|
-
async 'send_message'(
|
|
1791
|
-
const
|
|
1792
|
-
if (!
|
|
1793
|
-
const
|
|
1794
|
-
if (
|
|
1795
|
-
const
|
|
1796
|
-
if (
|
|
1805
|
+
async 'send_message'(_0x4c3c67) {
|
|
1806
|
+
const _0x53904b = _0x32743c;
|
|
1807
|
+
if (!_0x1bf818[_0x53904b(_0x3b1f1e._0x591a35)] && _0x1bf818[_0x53904b(0x158)] && _0x1bf818[_0x53904b(_0x3b1f1e._0x43781c)] && _0x1bf818[_0x53904b(0x1eb)]) {
|
|
1808
|
+
const _0x5f0f54 = await _0x1bf818[_0x53904b(0x2ab)][_0x53904b(0x27a)](_0x4c3c67[_0x53904b(0x1c1)]);
|
|
1809
|
+
if (_0x5f0f54[_0x53904b(0x2b2)] && _0x5f0f54[_0x53904b(0x195)]) {
|
|
1810
|
+
const _0x577e76 = _0x5f0f54[_0x53904b(_0x3b1f1e._0x446405)][_0x53904b(_0x3b1f1e._0x115c13)] != null ? '#' + _0x5f0f54[_0x53904b(0x2b2)][_0x53904b(_0x3b1f1e._0x115c13)] : _0x53904b(0x227), _0x2aa135 = _0x5f0f54[_0x53904b(0x153)] != null ? _0x5f0f54['target'] + ':t' + _0x5f0f54[_0x53904b(_0x3b1f1e._0x40ad9d)] : _0x5f0f54['target'] + ':' + _0x5f0f54['threadId'][_0x53904b(0x1e3)](0x0, 0x8), _0x500bc9 = await _0x9339a9();
|
|
1811
|
+
if (_0x500bc9?.[_0x53904b(0x2b5)](_0x2aa135))
|
|
1797
1812
|
return [
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
][
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1813
|
+
'Task\x20' + _0x577e76 + _0x53904b(_0x3b1f1e._0x5ef9bf) + _0x2aa135 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1814
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1815
|
+
]['join']('\x0a');
|
|
1816
|
+
const _0x5eb8cc = [
|
|
1817
|
+
_0x53904b(0x15b) + _0x2aa135 + _0x53904b(_0x3b1f1e._0x34161a) + new Date()[_0x53904b(_0x3b1f1e._0x38bd49)]() + _0x53904b(0x1f3),
|
|
1803
1818
|
'',
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
][
|
|
1809
|
-
'method':
|
|
1810
|
-
'headers': { 'Content-Type':
|
|
1811
|
-
'body': JSON[
|
|
1812
|
-
'agent_id':
|
|
1813
|
-
'thread_target':
|
|
1819
|
+
_0x53904b(0x1c0) + _0x4c3c67[_0x53904b(_0x3b1f1e._0x481120)],
|
|
1820
|
+
_0x53904b(0x126) + _0x577e76 + '\x20(' + _0x5f0f54[_0x53904b(0x2b2)][_0x53904b(0x259)] + ')',
|
|
1821
|
+
_0x53904b(_0x3b1f1e._0x49b1ba) + _0x2aa135,
|
|
1822
|
+
'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
|
|
1823
|
+
][_0x53904b(0x147)]('\x0a'), _0x40290c = await fetch(_0x1bf818[_0x53904b(0x14e)] + _0x53904b(_0x3b1f1e._0x3724eb), {
|
|
1824
|
+
'method': _0x53904b(0x2b1),
|
|
1825
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1826
|
+
'body': JSON['stringify']({
|
|
1827
|
+
'agent_id': _0x1bf818['agentId'],
|
|
1828
|
+
'thread_target': _0x2aa135,
|
|
1814
1829
|
'spawn_packet': {
|
|
1815
|
-
'replyTarget':
|
|
1816
|
-
'taskId':
|
|
1830
|
+
'replyTarget': _0x2aa135,
|
|
1831
|
+
'taskId': _0x5f0f54['task'][_0x53904b(0x259)]
|
|
1817
1832
|
},
|
|
1818
1833
|
'payload': {
|
|
1819
|
-
'mode':
|
|
1820
|
-
'text':
|
|
1834
|
+
'mode': _0x53904b(0x29f),
|
|
1835
|
+
'text': _0x5eb8cc
|
|
1821
1836
|
}
|
|
1822
1837
|
})
|
|
1823
|
-
}),
|
|
1824
|
-
if (!
|
|
1825
|
-
throw new Error(
|
|
1838
|
+
}), _0x58c173 = await _0x40290c[_0x53904b(_0x3b1f1e._0x12740a)]();
|
|
1839
|
+
if (!_0x58c173['ok'])
|
|
1840
|
+
throw new Error(_0x58c173[_0x53904b(_0x3b1f1e._0x355f48)] ?? 'enter-handoff\x20failed');
|
|
1826
1841
|
return [
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
][
|
|
1842
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x577e76 + _0x53904b(0x1db) + _0x2aa135 + _0x53904b(0x23f),
|
|
1843
|
+
_0x53904b(_0x3b1f1e._0x385323) + (_0x58c173[_0x53904b(_0x3b1f1e._0xd3ea71)] === _0x53904b(_0x3b1f1e._0x1beca8) ? _0x53904b(0x28f) : _0x53904b(_0x3b1f1e._0x1e75fd)) + '.',
|
|
1844
|
+
_0x53904b(_0x3b1f1e._0x215966)
|
|
1845
|
+
][_0x53904b(_0x3b1f1e._0x178032)]('\x0a');
|
|
1831
1846
|
}
|
|
1832
1847
|
}
|
|
1833
|
-
const
|
|
1834
|
-
'attachmentIds':
|
|
1835
|
-
'content':
|
|
1836
|
-
'target':
|
|
1837
|
-
'visibility':
|
|
1848
|
+
const _0x499a82 = await _0x1bf818[_0x53904b(0x2ab)][_0x53904b(_0x3b1f1e._0x5ee08f)]({
|
|
1849
|
+
'attachmentIds': _0x4c3c67[_0x53904b(_0x3b1f1e._0x2fcfcd)],
|
|
1850
|
+
'content': _0x4c3c67[_0x53904b(_0x3b1f1e._0x481120)],
|
|
1851
|
+
'target': _0x4c3c67[_0x53904b(0x1c1)],
|
|
1852
|
+
'visibility': _0x4c3c67[_0x53904b(0x128)]
|
|
1838
1853
|
});
|
|
1839
|
-
return
|
|
1854
|
+
return _0x53904b(0x178) + _0x4c3c67[_0x53904b(_0x3b1f1e._0x4855d3)] + '.\x20Message\x20ID:\x20' + _0x499a82[_0x53904b(0x29b)];
|
|
1840
1855
|
},
|
|
1841
1856
|
async 'check_messages'() {
|
|
1842
|
-
const
|
|
1843
|
-
if (!
|
|
1844
|
-
const
|
|
1845
|
-
if (
|
|
1846
|
-
return formatCheckMessages(
|
|
1857
|
+
const _0x4b204a = _0x32743c, _0x432dcd = await _0x1bf818[_0x4b204a(_0x28a82c._0x2fa279)]['checkMessages']();
|
|
1858
|
+
if (!_0x1bf818[_0x4b204a(0x182)]) {
|
|
1859
|
+
const _0x1eac8b = await _0x4e20e4();
|
|
1860
|
+
if (_0x1eac8b)
|
|
1861
|
+
return formatCheckMessages(_0x432dcd[_0x4b204a(_0x28a82c._0x2bed5a)][_0x4b204a(_0x28a82c._0x4959f9)](_0x202c3a => !_0x1eac8b[_0x4b204a(0x2b5)](_0x202c3a[_0x4b204a(0x1c1)])));
|
|
1847
1862
|
}
|
|
1848
|
-
return formatCheckMessages(
|
|
1863
|
+
return formatCheckMessages(_0x432dcd[_0x4b204a(0x28e)]);
|
|
1849
1864
|
},
|
|
1850
|
-
async 'read_history'(
|
|
1851
|
-
const
|
|
1852
|
-
return formatHistory(
|
|
1865
|
+
async 'read_history'(_0x29d6fc) {
|
|
1866
|
+
const _0x2b13d9 = _0x32743c, _0x24a22e = await _0x1bf818[_0x2b13d9(_0x1a22ee._0x2707ec)]['readHistory'](_0x29d6fc);
|
|
1867
|
+
return formatHistory(_0x24a22e);
|
|
1853
1868
|
},
|
|
1854
1869
|
async 'list_server'() {
|
|
1855
|
-
const
|
|
1856
|
-
return formatServerDirectory(
|
|
1870
|
+
const _0x4c6078 = _0x32743c, _0x1de1cd = await _0x1bf818[_0x4c6078(_0x4ecd93._0x267cb7)][_0x4c6078(_0x4ecd93._0x33cfff)]();
|
|
1871
|
+
return formatServerDirectory(_0x1de1cd);
|
|
1857
1872
|
},
|
|
1858
|
-
async 'list_tasks'(
|
|
1859
|
-
const
|
|
1860
|
-
let
|
|
1861
|
-
if (
|
|
1873
|
+
async 'list_tasks'(_0x6febce) {
|
|
1874
|
+
const _0x4789d6 = _0x32743c, _0x2189d9 = await _0x1bf818[_0x4789d6(0x2ab)][_0x4789d6(0x16e)](_0x6febce);
|
|
1875
|
+
let _0x58ce3d;
|
|
1876
|
+
if (_0x1bf818[_0x4789d6(0x14e)] && _0x1bf818['agentId'])
|
|
1862
1877
|
try {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1867
|
-
for (const
|
|
1868
|
-
if (
|
|
1878
|
+
const _0x533c86 = await fetch(_0x1bf818['daemonLocalUrl'] + _0x4789d6(0x12e) + encodeURIComponent(_0x1bf818[_0x4789d6(0x1eb)])), _0x4b4336 = await _0x533c86['json']();
|
|
1879
|
+
if (_0x4b4336['ok']) {
|
|
1880
|
+
const _0x50043b = _0x6febce['channel'] + ':';
|
|
1881
|
+
_0x58ce3d = new Set();
|
|
1882
|
+
for (const _0x4ceecf of _0x4b4336[_0x4789d6(_0x82320d._0x3ed305)]) {
|
|
1883
|
+
if (_0x4ceecf[_0x4789d6(0x293)] === _0x4789d6(0x14a))
|
|
1869
1884
|
continue;
|
|
1870
|
-
if (
|
|
1871
|
-
const
|
|
1872
|
-
if (
|
|
1873
|
-
|
|
1885
|
+
if (_0x4ceecf[_0x4789d6(0x22c)]?.['startsWith'](_0x50043b)) {
|
|
1886
|
+
const _0x3cd0da = _0x4ceecf['thread_target'][_0x4789d6(0x1e3)](_0x50043b[_0x4789d6(_0x82320d._0x282ce7)]), _0x235e5f = _0x2189d9[_0x4789d6(0x139)][_0x4789d6(0x1da)](_0x3ff788 => _0x3ff788[_0x4789d6(0x29b)]?.[_0x4789d6(0x177)](_0x3cd0da) === !![]);
|
|
1887
|
+
if (_0x235e5f?.[_0x4789d6(0x1fb)] != null) {
|
|
1888
|
+
_0x58ce3d[_0x4789d6(_0x82320d._0x52aa3b)](_0x235e5f[_0x4789d6(_0x82320d._0x563c61)]);
|
|
1874
1889
|
continue;
|
|
1875
1890
|
}
|
|
1876
1891
|
}
|
|
1877
|
-
if (
|
|
1878
|
-
const
|
|
1879
|
-
|
|
1892
|
+
if (_0x4ceecf['task_id']) {
|
|
1893
|
+
const _0xf51339 = _0x2189d9[_0x4789d6(_0x82320d._0x4e8080)][_0x4789d6(_0x82320d._0xd7c5fa)](_0x8418e7 => _0x8418e7[_0x4789d6(0x259)] === _0x4ceecf[_0x4789d6(0x2a2)]);
|
|
1894
|
+
_0xf51339?.['taskNumber'] != null && _0x58ce3d[_0x4789d6(0x160)](_0xf51339[_0x4789d6(0x1fb)]);
|
|
1880
1895
|
}
|
|
1881
1896
|
}
|
|
1882
1897
|
}
|
|
1883
1898
|
} catch {
|
|
1884
1899
|
}
|
|
1885
|
-
return formatTaskList(
|
|
1900
|
+
return formatTaskList(_0x2189d9[_0x4789d6(0x139)], _0x58ce3d);
|
|
1886
1901
|
},
|
|
1887
|
-
async 'create_tasks'(
|
|
1888
|
-
const
|
|
1889
|
-
return formatCreatedTasks(
|
|
1902
|
+
async 'create_tasks'(_0xd9aaa8) {
|
|
1903
|
+
const _0x3f4297 = _0x32743c, _0x4c1f87 = await _0x1bf818[_0x3f4297(0x2ab)][_0x3f4297(0x23d)](_0xd9aaa8);
|
|
1904
|
+
return formatCreatedTasks(_0x4c1f87[_0x3f4297(0x139)]);
|
|
1890
1905
|
},
|
|
1891
|
-
async 'claim_tasks'(
|
|
1892
|
-
const
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
const _0x8cd6db = _0x55d749;
|
|
1897
|
-
if (!_0x2184e2[_0x8cd6db(_0x501da4._0x3f93c7)] || !_0x2184e2[_0x8cd6db(_0x501da4._0x4b6c17)])
|
|
1898
|
-
return _0x2184e2;
|
|
1906
|
+
async 'claim_tasks'(_0xa46da6) {
|
|
1907
|
+
const _0x40587e = _0x32743c, _0x1a6744 = await _0x1bf818[_0x40587e(0x2ab)][_0x40587e(_0x370f31._0x397a7b)](_0xa46da6), _0x26a8d6 = await Promise[_0x40587e(_0x370f31._0xb8758b)](_0x1a6744[_0x40587e(0x20e)]['map'](async _0x30d365 => {
|
|
1908
|
+
const _0x146b34 = _0x40587e;
|
|
1909
|
+
if (!_0x30d365['success'] || !_0x30d365['messageId'])
|
|
1910
|
+
return _0x30d365;
|
|
1899
1911
|
try {
|
|
1900
|
-
const
|
|
1901
|
-
'channel':
|
|
1902
|
-
'messageId':
|
|
1903
|
-
'taskId':
|
|
1904
|
-
'taskNumber':
|
|
1905
|
-
'threadNumber':
|
|
1912
|
+
const _0xcfaca2 = await _0x3ffad2({
|
|
1913
|
+
'channel': _0xa46da6['channel'],
|
|
1914
|
+
'messageId': _0x30d365[_0x146b34(0x29b)],
|
|
1915
|
+
'taskId': _0x30d365[_0x146b34(_0x382fe7._0x3f6f2e)],
|
|
1916
|
+
'taskNumber': _0x30d365[_0x146b34(0x1fb)],
|
|
1917
|
+
'threadNumber': _0x30d365[_0x146b34(0x153)]
|
|
1906
1918
|
});
|
|
1907
|
-
return
|
|
1908
|
-
...
|
|
1909
|
-
...
|
|
1910
|
-
} :
|
|
1911
|
-
} catch (
|
|
1919
|
+
return _0xcfaca2 ? {
|
|
1920
|
+
..._0x30d365,
|
|
1921
|
+
..._0xcfaca2
|
|
1922
|
+
} : _0x30d365;
|
|
1923
|
+
} catch (_0x481f40) {
|
|
1912
1924
|
return {
|
|
1913
|
-
...
|
|
1914
|
-
'workerHandoffError':
|
|
1925
|
+
..._0x30d365,
|
|
1926
|
+
'workerHandoffError': _0x481f40 instanceof Error ? _0x481f40[_0x146b34(0x1ec)] : 'worker\x20handoff\x20failed'
|
|
1915
1927
|
};
|
|
1916
1928
|
}
|
|
1917
1929
|
}));
|
|
1918
|
-
return formatClaimTaskResults(
|
|
1930
|
+
return formatClaimTaskResults(_0x26a8d6);
|
|
1919
1931
|
},
|
|
1920
|
-
async 'unclaim_task'(
|
|
1921
|
-
const
|
|
1922
|
-
return formatUnclaimTaskResult(
|
|
1932
|
+
async 'unclaim_task'(_0x2a4322) {
|
|
1933
|
+
const _0x42104a = _0x32743c, _0x1f971b = await _0x1bf818[_0x42104a(0x2ab)][_0x42104a(0x1f5)](_0x2a4322);
|
|
1934
|
+
return formatUnclaimTaskResult(_0x1f971b);
|
|
1923
1935
|
},
|
|
1924
|
-
async 'update_task_status'(
|
|
1925
|
-
const
|
|
1926
|
-
return formatUpdateTaskStatusResult(
|
|
1936
|
+
async 'update_task_status'(_0x89772d) {
|
|
1937
|
+
const _0x3820f0 = _0x32743c, _0xc2278 = await _0x1bf818[_0x3820f0(_0x434eb2._0xb26038)]['updateTaskStatus'](_0x89772d);
|
|
1938
|
+
return formatUpdateTaskStatusResult(_0xc2278);
|
|
1927
1939
|
},
|
|
1928
|
-
async 'upload_file'(
|
|
1929
|
-
const
|
|
1930
|
-
sizeBytes:
|
|
1931
|
-
...
|
|
1932
|
-
} =
|
|
1933
|
-
'channel':
|
|
1934
|
-
...
|
|
1940
|
+
async 'upload_file'(_0x585120) {
|
|
1941
|
+
const _0x565565 = _0x32743c, _0x31fdee = await _0x1bf818[_0x565565(0x20a)](_0x585120['file_path']), {
|
|
1942
|
+
sizeBytes: _0x31c7f5,
|
|
1943
|
+
..._0x3a1924
|
|
1944
|
+
} = _0x31fdee, _0x47cd30 = await _0x1bf818[_0x565565(_0x187402._0x5ecf4c)][_0x565565(0x191)]({
|
|
1945
|
+
'channel': _0x585120[_0x565565(_0x187402._0x2b58d3)],
|
|
1946
|
+
..._0x3a1924
|
|
1935
1947
|
});
|
|
1936
|
-
return formatUploadResult(
|
|
1948
|
+
return formatUploadResult(_0x47cd30);
|
|
1937
1949
|
},
|
|
1938
|
-
async 'view_file'(
|
|
1939
|
-
const
|
|
1940
|
-
if (
|
|
1941
|
-
return formatViewFileResult(
|
|
1942
|
-
const
|
|
1943
|
-
'attachmentId':
|
|
1944
|
-
'contentType':
|
|
1945
|
-
'data':
|
|
1946
|
-
'originalFilename':
|
|
1950
|
+
async 'view_file'(_0x48e2f3) {
|
|
1951
|
+
const _0x42c152 = _0x32743c, _0x32c69b = await _0x1bf818[_0x42c152(0x281)][_0x42c152(0x18b)](_0x48e2f3[_0x42c152(_0x4fb0d3._0x55ecd3)]);
|
|
1952
|
+
if (_0x32c69b)
|
|
1953
|
+
return formatViewFileResult(_0x32c69b, !![]);
|
|
1954
|
+
const _0x17e0fc = await _0x1bf818[_0x42c152(0x2ab)]['downloadAttachment'](_0x48e2f3['attachment_id']), _0x24b156 = await _0x1bf818['attachmentCache']['save']({
|
|
1955
|
+
'attachmentId': _0x48e2f3[_0x42c152(0x290)],
|
|
1956
|
+
'contentType': _0x17e0fc[_0x42c152(0x1fa)],
|
|
1957
|
+
'data': _0x17e0fc[_0x42c152(0x1f7)],
|
|
1958
|
+
'originalFilename': _0x17e0fc[_0x42c152(_0x4fb0d3._0x4a6d67)]
|
|
1947
1959
|
});
|
|
1948
|
-
return formatViewFileResult(
|
|
1960
|
+
return formatViewFileResult(_0x24b156, ![]);
|
|
1949
1961
|
},
|
|
1950
|
-
async 'get_worker_status'(
|
|
1951
|
-
const
|
|
1952
|
-
if (!
|
|
1953
|
-
return
|
|
1954
|
-
const
|
|
1955
|
-
if (!
|
|
1956
|
-
return
|
|
1957
|
-
return
|
|
1962
|
+
async 'get_worker_status'(_0x3d8382) {
|
|
1963
|
+
const _0x10f154 = _0x32743c;
|
|
1964
|
+
if (!_0x1bf818[_0x10f154(0x14e)])
|
|
1965
|
+
return _0x10f154(_0x2c89d7._0x10bd1c);
|
|
1966
|
+
const _0x41e180 = await fetch(_0x1bf818['daemonLocalUrl'] + '/workers/status?work_key=' + encodeURIComponent(_0x3d8382[_0x10f154(_0x2c89d7._0x21202a)])), _0x25d095 = await _0x41e180[_0x10f154(0x24b)]();
|
|
1967
|
+
if (!_0x25d095['ok'])
|
|
1968
|
+
return _0x10f154(_0x2c89d7._0xbe3467) + _0x3d8382[_0x10f154(_0x2c89d7._0x36a4df)] + '\x22\x20not\x20found';
|
|
1969
|
+
return 'Worker\x20\x22' + _0x3d8382['work_key'] + _0x10f154(_0x2c89d7._0x3539aa) + _0x25d095[_0x10f154(0x293)];
|
|
1958
1970
|
},
|
|
1959
|
-
async 'get_worker_result'(
|
|
1960
|
-
const
|
|
1961
|
-
if (!
|
|
1962
|
-
return
|
|
1963
|
-
const
|
|
1964
|
-
if (!
|
|
1965
|
-
return
|
|
1966
|
-
return JSON[
|
|
1971
|
+
async 'get_worker_result'(_0x5ad5c4) {
|
|
1972
|
+
const _0x4f728f = _0x32743c;
|
|
1973
|
+
if (!_0x1bf818[_0x4f728f(0x14e)])
|
|
1974
|
+
return _0x4f728f(0x181);
|
|
1975
|
+
const _0x53080f = await fetch(_0x1bf818['daemonLocalUrl'] + '/workers/result?work_key=' + encodeURIComponent(_0x5ad5c4[_0x4f728f(_0x3fde99._0x2afb1e)])), _0x3caa50 = await _0x53080f['json']();
|
|
1976
|
+
if (!_0x3caa50[_0x4f728f(0x207)])
|
|
1977
|
+
return _0x4f728f(_0x3fde99._0x189a61) + _0x5ad5c4[_0x4f728f(_0x3fde99._0x4efc37)] + '\x22';
|
|
1978
|
+
return JSON['stringify'](_0x3caa50[_0x4f728f(_0x3fde99._0x3882ed)], null, 0x2);
|
|
1967
1979
|
},
|
|
1968
|
-
async 'finish_worker'(
|
|
1969
|
-
const
|
|
1970
|
-
if (!
|
|
1971
|
-
return
|
|
1972
|
-
const
|
|
1980
|
+
async 'finish_worker'(_0x2ee318) {
|
|
1981
|
+
const _0x124748 = _0x32743c;
|
|
1982
|
+
if (!_0x1bf818['daemonLocalUrl'])
|
|
1983
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1984
|
+
const _0x27680d = await fetch(_0x1bf818[_0x124748(_0xc6462c._0x5267d5)] + _0x124748(0x17d), {
|
|
1973
1985
|
'method': 'POST',
|
|
1974
|
-
'headers': { 'Content-Type':
|
|
1975
|
-
'body': JSON[
|
|
1976
|
-
'work_key':
|
|
1986
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1987
|
+
'body': JSON[_0x124748(_0xc6462c._0x568978)]({
|
|
1988
|
+
'work_key': _0x2ee318[_0x124748(0x19d)],
|
|
1977
1989
|
'resume_packet': {
|
|
1978
1990
|
'objective': '',
|
|
1979
|
-
'result':
|
|
1980
|
-
'summary':
|
|
1981
|
-
'decisions':
|
|
1982
|
-
'filesChanged':
|
|
1983
|
-
'openIssues':
|
|
1984
|
-
'nextSteps':
|
|
1991
|
+
'result': _0x2ee318['result'],
|
|
1992
|
+
'summary': _0x2ee318[_0x124748(0x1a8)],
|
|
1993
|
+
'decisions': _0x2ee318[_0x124748(0x185)] ?? [],
|
|
1994
|
+
'filesChanged': _0x2ee318[_0x124748(_0xc6462c._0x572b1d)] ?? [],
|
|
1995
|
+
'openIssues': _0x2ee318[_0x124748(_0xc6462c._0x40339b)] ?? [],
|
|
1996
|
+
'nextSteps': _0x2ee318[_0x124748(0x2af)] ?? []
|
|
1985
1997
|
}
|
|
1986
1998
|
})
|
|
1987
|
-
}),
|
|
1988
|
-
if (!
|
|
1989
|
-
throw new Error(
|
|
1990
|
-
return
|
|
1999
|
+
}), _0x212454 = await _0x27680d[_0x124748(_0xc6462c._0x22385c)]();
|
|
2000
|
+
if (!_0x212454['ok'])
|
|
2001
|
+
throw new Error(_0x212454[_0x124748(0x1c6)] ?? _0x124748(_0xc6462c._0x4bf244));
|
|
2002
|
+
return _0x124748(0x171) + _0x2ee318[_0x124748(0x19d)] + _0x124748(_0xc6462c._0x530778) + _0x2ee318[_0x124748(0x286)];
|
|
1991
2003
|
},
|
|
1992
|
-
async 'mark_waiting_input'(
|
|
1993
|
-
const
|
|
1994
|
-
if (!
|
|
1995
|
-
return
|
|
1996
|
-
const
|
|
1997
|
-
'method':
|
|
1998
|
-
'headers': { 'Content-Type':
|
|
1999
|
-
'body': JSON[
|
|
2000
|
-
'work_key':
|
|
2001
|
-
'agent_id':
|
|
2004
|
+
async 'mark_waiting_input'(_0x5bf2ed) {
|
|
2005
|
+
const _0x135423 = _0x32743c;
|
|
2006
|
+
if (!_0x1bf818[_0x135423(0x14e)] || !_0x1bf818[_0x135423(_0x164a04._0x5bf945)])
|
|
2007
|
+
return _0x135423(0x280);
|
|
2008
|
+
const _0x528fa5 = await fetch(_0x1bf818['daemonLocalUrl'] + _0x135423(_0x164a04._0x245d7c), {
|
|
2009
|
+
'method': _0x135423(0x2b1),
|
|
2010
|
+
'headers': { 'Content-Type': _0x135423(_0x164a04._0x569eb5) },
|
|
2011
|
+
'body': JSON[_0x135423(0x1a1)]({
|
|
2012
|
+
'work_key': _0x5bf2ed[_0x135423(0x19d)],
|
|
2013
|
+
'agent_id': _0x1bf818[_0x135423(0x1eb)]
|
|
2002
2014
|
})
|
|
2003
|
-
}),
|
|
2004
|
-
if (!
|
|
2005
|
-
throw new Error(
|
|
2006
|
-
return
|
|
2015
|
+
}), _0x4317ae = await _0x528fa5['json']();
|
|
2016
|
+
if (!_0x4317ae['ok'])
|
|
2017
|
+
throw new Error(_0x4317ae[_0x135423(_0x164a04._0x5a215d)] ?? 'mark_waiting_input\x20failed');
|
|
2018
|
+
return 'Worker\x20\x22' + _0x5bf2ed[_0x135423(0x19d)] + _0x135423(0x1e2);
|
|
2007
2019
|
},
|
|
2008
|
-
async 'escalate_to_main'(
|
|
2009
|
-
const
|
|
2010
|
-
if (!
|
|
2011
|
-
return
|
|
2012
|
-
const
|
|
2013
|
-
'method':
|
|
2014
|
-
'headers': { 'Content-Type':
|
|
2015
|
-
'body': JSON[
|
|
2016
|
-
'work_key':
|
|
2017
|
-
'reason':
|
|
2020
|
+
async 'escalate_to_main'(_0x320c66) {
|
|
2021
|
+
const _0x450e7a = _0x32743c;
|
|
2022
|
+
if (!_0x1bf818[_0x450e7a(_0x17efea._0x5ec2ac)])
|
|
2023
|
+
return _0x450e7a(_0x17efea._0x482c35);
|
|
2024
|
+
const _0x82d130 = await fetch(_0x1bf818[_0x450e7a(_0x17efea._0x6e3603)] + _0x450e7a(0x251), {
|
|
2025
|
+
'method': _0x450e7a(_0x17efea._0xba9563),
|
|
2026
|
+
'headers': { 'Content-Type': _0x450e7a(_0x17efea._0x1bf812) },
|
|
2027
|
+
'body': JSON[_0x450e7a(_0x17efea._0x341a0b)]({
|
|
2028
|
+
'work_key': _0x320c66['work_key'],
|
|
2029
|
+
'reason': _0x320c66[_0x450e7a(0x224)]
|
|
2018
2030
|
})
|
|
2019
|
-
}),
|
|
2020
|
-
if (!
|
|
2021
|
-
throw new Error(
|
|
2022
|
-
return
|
|
2031
|
+
}), _0x363619 = await _0x82d130[_0x450e7a(0x24b)]();
|
|
2032
|
+
if (!_0x363619['ok'])
|
|
2033
|
+
throw new Error(_0x363619[_0x450e7a(_0x17efea._0x9c9afd)] ?? 'escalate_to_main\x20failed');
|
|
2034
|
+
return _0x450e7a(0x150) + _0x320c66['reason'];
|
|
2023
2035
|
}
|
|
2024
2036
|
};
|
|
2025
2037
|
}
|
|
2026
|
-
function textResult(
|
|
2027
|
-
const _0x302d50 = { _0x103422: 0x2d3 }, _0x1767ec = _0x5d5218;
|
|
2038
|
+
function textResult(_0x1b835d, _0x1de018 = ![]) {
|
|
2028
2039
|
return {
|
|
2029
2040
|
'content': [{
|
|
2030
|
-
'type':
|
|
2031
|
-
'text':
|
|
2041
|
+
'type': 'text',
|
|
2042
|
+
'text': _0x1b835d
|
|
2032
2043
|
}],
|
|
2033
|
-
...
|
|
2044
|
+
..._0x1de018 ? { 'isError': !![] } : {}
|
|
2034
2045
|
};
|
|
2035
2046
|
}
|
|
2036
|
-
async function registerChatBridgeTools(
|
|
2037
|
-
const
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2047
|
+
async function registerChatBridgeTools(_0x277dae, _0x5dfbbe, _0x5865e0) {
|
|
2048
|
+
const _0x334be6 = {
|
|
2049
|
+
_0x26089c: 0x230,
|
|
2050
|
+
_0x2ff33a: 0x1e0,
|
|
2051
|
+
_0x20d565: 0x1bf,
|
|
2052
|
+
_0x16bf37: 0x1bf,
|
|
2053
|
+
_0x237d84: 0x2b8,
|
|
2054
|
+
_0x27a5f9: 0x1e0,
|
|
2055
|
+
_0x3744b7: 0x25e,
|
|
2056
|
+
_0x3d2917: 0x295,
|
|
2057
|
+
_0x4deba4: 0x25f,
|
|
2058
|
+
_0x515ee0: 0x14c,
|
|
2059
|
+
_0x51ef12: 0x25f,
|
|
2060
|
+
_0x231cca: 0x14c,
|
|
2061
|
+
_0x52db4e: 0x260,
|
|
2062
|
+
_0x5eb1c0: 0x1e0,
|
|
2063
|
+
_0xf70c6d: 0x274,
|
|
2064
|
+
_0x3b55e2: 0x1cf,
|
|
2065
|
+
_0x38ec5e: 0x236,
|
|
2066
|
+
_0xdbf214: 0x1ef,
|
|
2067
|
+
_0x933225: 0x14c,
|
|
2068
|
+
_0x45557b: 0x289,
|
|
2069
|
+
_0xd3c9a: 0x212,
|
|
2070
|
+
_0x206b27: 0x236,
|
|
2071
|
+
_0x2b6b4c: 0x25f,
|
|
2072
|
+
_0x3a4fe5: 0x1bc,
|
|
2073
|
+
_0x4f1efd: 0x1fc,
|
|
2074
|
+
_0x50a034: 0x1bf,
|
|
2075
|
+
_0x54a579: 0x14c,
|
|
2076
|
+
_0x164ea4: 0x1bf,
|
|
2077
|
+
_0x3295e7: 0x25f,
|
|
2078
|
+
_0x3787c8: 0x1bf,
|
|
2079
|
+
_0x26e7a4: 0x14c,
|
|
2080
|
+
_0x1acc64: 0x1e0,
|
|
2081
|
+
_0x4b0ea3: 0x297,
|
|
2082
|
+
_0x22c75a: 0x253,
|
|
2083
|
+
_0x541c4a: 0x244,
|
|
2084
|
+
_0x2abfa4: 0x169,
|
|
2085
|
+
_0x172f4b: 0x1bf,
|
|
2086
|
+
_0xcec370: 0x14c,
|
|
2087
|
+
_0x296ac0: 0x240
|
|
2088
|
+
}, _0x4208cc = {
|
|
2089
|
+
_0xc6480a: 0x1ec,
|
|
2090
|
+
_0x40061b: 0x245
|
|
2091
|
+
}, _0x49fa25 = {
|
|
2092
|
+
_0x151025: 0x16a,
|
|
2093
|
+
_0x2a9f9b: 0x1ec
|
|
2094
|
+
}, _0x59da05 = { _0x14e291: 0x183 }, _0x431f73 = {
|
|
2095
|
+
_0x24a21c: 0x1ec,
|
|
2096
|
+
_0x1e7cb3: 0x137
|
|
2097
|
+
}, _0x5efdac = { _0x4b9a94: 0x205 }, _0x54e77e = {
|
|
2098
|
+
_0x760bfa: 0x297,
|
|
2099
|
+
_0x5036be: 0x1ec,
|
|
2100
|
+
_0x45c794: 0x1f8
|
|
2101
|
+
}, _0x59d815 = { _0x50b89a: 0x1cc }, _0x884256 = { _0x32dd0c: 0x1ec }, _0x32964b = {
|
|
2102
|
+
_0x40dbc2: 0x212,
|
|
2103
|
+
_0x56f0d5: 0x1ec,
|
|
2104
|
+
_0x44d690: 0x179
|
|
2105
|
+
}, _0x355209 = { _0x3b7c57: 0x217 }, _0x745127 = {
|
|
2106
|
+
_0x1620c5: 0x176,
|
|
2107
|
+
_0x2f064b: 0x1ec,
|
|
2108
|
+
_0x4fac48: 0x192
|
|
2109
|
+
}, _0x23416e = { _0x5438e7: 0x1ec }, _0x3a8396 = { _0x49d633: 0x29d }, _0x10ccff = _0x404ee2, {z: _0x3b56ab} = await import(_0x10ccff(_0x334be6._0x26089c));
|
|
2110
|
+
_0x277dae[_0x10ccff(_0x334be6._0x2ff33a)](_0x10ccff(0x29d), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2111
|
+
'target': _0x3b56ab[_0x10ccff(0x1bf)](),
|
|
2112
|
+
'content': _0x3b56ab[_0x10ccff(_0x334be6._0x20d565)](),
|
|
2113
|
+
'attachment_ids': _0x3b56ab['array'](_0x3b56ab[_0x10ccff(_0x334be6._0x16bf37)]())[_0x10ccff(0x14c)](),
|
|
2114
|
+
'visibility': _0x3b56ab[_0x10ccff(_0x334be6._0x237d84)]([
|
|
2115
|
+
'public',
|
|
2116
|
+
'aside'
|
|
2117
|
+
])[_0x10ccff(0x14c)]()[_0x10ccff(0x20f)](_0x10ccff(0x266))
|
|
2118
|
+
}, async _0x2daacb => {
|
|
2119
|
+
const _0x1c77f7 = _0x10ccff;
|
|
2087
2120
|
try {
|
|
2088
|
-
return textResult(await
|
|
2089
|
-
} catch (
|
|
2090
|
-
return textResult(
|
|
2121
|
+
return textResult(await _0x5dfbbe[_0x1c77f7(_0x3a8396._0x49d633)](_0x2daacb));
|
|
2122
|
+
} catch (_0xa845dc) {
|
|
2123
|
+
return textResult(_0xa845dc instanceof Error ? _0xa845dc[_0x1c77f7(0x1ec)] : _0x1c77f7(0x13d), !![]);
|
|
2091
2124
|
}
|
|
2092
|
-
}),
|
|
2093
|
-
const
|
|
2125
|
+
}), _0x277dae[_0x10ccff(_0x334be6._0x27a5f9)](_0x10ccff(_0x334be6._0x3744b7), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2126
|
+
const _0x4b8a97 = _0x10ccff;
|
|
2094
2127
|
try {
|
|
2095
|
-
return textResult(await
|
|
2096
|
-
} catch (
|
|
2097
|
-
return textResult(
|
|
2128
|
+
return textResult(await _0x5dfbbe[_0x4b8a97(0x25e)]());
|
|
2129
|
+
} catch (_0x5d5277) {
|
|
2130
|
+
return textResult(_0x5d5277 instanceof Error ? _0x5d5277['message'] : 'check_messages\x20failed', !![]);
|
|
2098
2131
|
}
|
|
2099
|
-
}),
|
|
2100
|
-
'channel':
|
|
2101
|
-
'limit':
|
|
2102
|
-
'before':
|
|
2103
|
-
'after':
|
|
2104
|
-
}, async
|
|
2105
|
-
const
|
|
2132
|
+
}), _0x277dae['tool'](_0x10ccff(_0x334be6._0x3d2917), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2133
|
+
'channel': _0x3b56ab[_0x10ccff(0x1bf)](),
|
|
2134
|
+
'limit': _0x3b56ab[_0x10ccff(_0x334be6._0x4deba4)]()['optional'](),
|
|
2135
|
+
'before': _0x3b56ab[_0x10ccff(0x25f)]()[_0x10ccff(_0x334be6._0x515ee0)](),
|
|
2136
|
+
'after': _0x3b56ab[_0x10ccff(_0x334be6._0x51ef12)]()[_0x10ccff(_0x334be6._0x231cca)]()
|
|
2137
|
+
}, async _0x40161d => {
|
|
2138
|
+
const _0x18137f = _0x10ccff;
|
|
2106
2139
|
try {
|
|
2107
|
-
return textResult(await
|
|
2108
|
-
} catch (
|
|
2109
|
-
return textResult(
|
|
2140
|
+
return textResult(await _0x5dfbbe[_0x18137f(0x295)](_0x40161d));
|
|
2141
|
+
} catch (_0x5ae9da) {
|
|
2142
|
+
return textResult(_0x5ae9da instanceof Error ? _0x5ae9da[_0x18137f(_0x23416e._0x5438e7)] : 'read_history\x20failed', !![]);
|
|
2110
2143
|
}
|
|
2111
|
-
}),
|
|
2112
|
-
const
|
|
2144
|
+
}), _0x277dae['tool']('list_server', _0x10ccff(0x161), {}, async () => {
|
|
2145
|
+
const _0x149438 = _0x10ccff;
|
|
2113
2146
|
try {
|
|
2114
|
-
return textResult(await
|
|
2115
|
-
} catch (
|
|
2116
|
-
return textResult(
|
|
2147
|
+
return textResult(await _0x5dfbbe[_0x149438(_0x745127._0x1620c5)]());
|
|
2148
|
+
} catch (_0xe0132) {
|
|
2149
|
+
return textResult(_0xe0132 instanceof Error ? _0xe0132[_0x149438(_0x745127._0x2f064b)] : _0x149438(_0x745127._0x4fac48), !![]);
|
|
2117
2150
|
}
|
|
2118
|
-
}),
|
|
2119
|
-
'channel':
|
|
2120
|
-
'status':
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
])[
|
|
2126
|
-
}, async
|
|
2127
|
-
const
|
|
2151
|
+
}), _0x277dae[_0x10ccff(0x1e0)](_0x10ccff(_0x334be6._0x52db4e), _0x10ccff(0x135), {
|
|
2152
|
+
'channel': _0x3b56ab[_0x10ccff(0x1bf)](),
|
|
2153
|
+
'status': _0x3b56ab[_0x10ccff(0x2b8)]([
|
|
2154
|
+
'todo',
|
|
2155
|
+
'in_progress',
|
|
2156
|
+
_0x10ccff(0x264),
|
|
2157
|
+
_0x10ccff(0x249)
|
|
2158
|
+
])[_0x10ccff(_0x334be6._0x231cca)]()
|
|
2159
|
+
}, async _0x119073 => {
|
|
2160
|
+
const _0x3216ae = _0x10ccff;
|
|
2128
2161
|
try {
|
|
2129
|
-
return textResult(await
|
|
2130
|
-
} catch (
|
|
2131
|
-
return textResult(
|
|
2162
|
+
return textResult(await _0x5dfbbe[_0x3216ae(0x260)](_0x119073));
|
|
2163
|
+
} catch (_0x3145b4) {
|
|
2164
|
+
return textResult(_0x3145b4 instanceof Error ? _0x3145b4[_0x3216ae(0x1ec)] : 'list_tasks\x20failed', !![]);
|
|
2132
2165
|
}
|
|
2133
|
-
}),
|
|
2134
|
-
'channel':
|
|
2135
|
-
'idempotency_key':
|
|
2136
|
-
'tasks':
|
|
2137
|
-
'title':
|
|
2138
|
-
'description':
|
|
2139
|
-
'priority':
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2166
|
+
}), _0x277dae[_0x10ccff(_0x334be6._0x5eb1c0)](_0x10ccff(_0x334be6._0xf70c6d), _0x10ccff(_0x334be6._0x3b55e2), {
|
|
2167
|
+
'channel': _0x3b56ab[_0x10ccff(0x1bf)](),
|
|
2168
|
+
'idempotency_key': _0x3b56ab[_0x10ccff(0x1bf)]()[_0x10ccff(_0x334be6._0x231cca)](),
|
|
2169
|
+
'tasks': _0x3b56ab[_0x10ccff(_0x334be6._0x38ec5e)](_0x3b56ab[_0x10ccff(_0x334be6._0xdbf214)]({
|
|
2170
|
+
'title': _0x3b56ab[_0x10ccff(0x1bf)](),
|
|
2171
|
+
'description': _0x3b56ab['string']()[_0x10ccff(_0x334be6._0x933225)](),
|
|
2172
|
+
'priority': _0x3b56ab['enum']([
|
|
2173
|
+
_0x10ccff(0x140),
|
|
2174
|
+
_0x10ccff(_0x334be6._0x45557b),
|
|
2175
|
+
'high',
|
|
2176
|
+
'urgent'
|
|
2144
2177
|
])['optional']()
|
|
2145
2178
|
}))
|
|
2146
|
-
}, async
|
|
2147
|
-
const
|
|
2179
|
+
}, async _0x17bb0c => {
|
|
2180
|
+
const _0x5a1b56 = _0x10ccff;
|
|
2148
2181
|
try {
|
|
2149
|
-
return textResult(await
|
|
2150
|
-
} catch (
|
|
2151
|
-
return textResult(
|
|
2182
|
+
return textResult(await _0x5dfbbe['create_tasks'](_0x17bb0c));
|
|
2183
|
+
} catch (_0x2460b0) {
|
|
2184
|
+
return textResult(_0x2460b0 instanceof Error ? _0x2460b0[_0x5a1b56(0x1ec)] : _0x5a1b56(_0x355209._0x3b7c57), !![]);
|
|
2152
2185
|
}
|
|
2153
|
-
}),
|
|
2154
|
-
'channel':
|
|
2155
|
-
'task_numbers':
|
|
2156
|
-
'message_ids':
|
|
2157
|
-
'evidence':
|
|
2158
|
-
'create_thread':
|
|
2159
|
-
'create_task':
|
|
2160
|
-
}))[
|
|
2161
|
-
'idempotency_key':
|
|
2162
|
-
}, async
|
|
2163
|
-
const
|
|
2186
|
+
}), _0x277dae[_0x10ccff(0x1e0)](_0x10ccff(_0x334be6._0xd3c9a), _0x10ccff(0x172), {
|
|
2187
|
+
'channel': _0x3b56ab['string'](),
|
|
2188
|
+
'task_numbers': _0x3b56ab[_0x10ccff(_0x334be6._0x206b27)](_0x3b56ab[_0x10ccff(_0x334be6._0x2b6b4c)]())[_0x10ccff(0x14c)](),
|
|
2189
|
+
'message_ids': _0x3b56ab['array'](_0x3b56ab['string']())['optional'](),
|
|
2190
|
+
'evidence': _0x3b56ab['record'](_0x3b56ab[_0x10ccff(_0x334be6._0x16bf37)](), _0x3b56ab[_0x10ccff(0x1ef)]({
|
|
2191
|
+
'create_thread': _0x3b56ab['unknown']()[_0x10ccff(0x14c)](),
|
|
2192
|
+
'create_task': _0x3b56ab[_0x10ccff(0x12a)]()[_0x10ccff(0x14c)]()
|
|
2193
|
+
}))['optional'](),
|
|
2194
|
+
'idempotency_key': _0x3b56ab[_0x10ccff(_0x334be6._0x20d565)]()[_0x10ccff(_0x334be6._0x515ee0)]()
|
|
2195
|
+
}, async _0x57bc91 => {
|
|
2196
|
+
const _0x51c535 = _0x10ccff;
|
|
2164
2197
|
try {
|
|
2165
|
-
return textResult(await
|
|
2166
|
-
} catch (
|
|
2167
|
-
return textResult(
|
|
2198
|
+
return textResult(await _0x5dfbbe[_0x51c535(_0x32964b._0x40dbc2)](_0x57bc91));
|
|
2199
|
+
} catch (_0x5a8e0e) {
|
|
2200
|
+
return textResult(_0x5a8e0e instanceof Error ? _0x5a8e0e[_0x51c535(_0x32964b._0x56f0d5)] : _0x51c535(_0x32964b._0x44d690), !![]);
|
|
2168
2201
|
}
|
|
2169
|
-
}),
|
|
2170
|
-
'channel':
|
|
2171
|
-
'task_number':
|
|
2172
|
-
'idempotency_key':
|
|
2173
|
-
}, async
|
|
2174
|
-
const
|
|
2202
|
+
}), _0x277dae[_0x10ccff(0x1e0)](_0x10ccff(_0x334be6._0x3a4fe5), _0x10ccff(_0x334be6._0x4f1efd), {
|
|
2203
|
+
'channel': _0x3b56ab[_0x10ccff(_0x334be6._0x16bf37)](),
|
|
2204
|
+
'task_number': _0x3b56ab[_0x10ccff(0x25f)](),
|
|
2205
|
+
'idempotency_key': _0x3b56ab[_0x10ccff(_0x334be6._0x50a034)]()[_0x10ccff(_0x334be6._0x54a579)]()
|
|
2206
|
+
}, async _0x293421 => {
|
|
2207
|
+
const _0xb37ddb = _0x10ccff;
|
|
2175
2208
|
try {
|
|
2176
|
-
return textResult(await
|
|
2177
|
-
} catch (
|
|
2178
|
-
return textResult(
|
|
2209
|
+
return textResult(await _0x5dfbbe[_0xb37ddb(0x1bc)](_0x293421));
|
|
2210
|
+
} catch (_0x11c93f) {
|
|
2211
|
+
return textResult(_0x11c93f instanceof Error ? _0x11c93f[_0xb37ddb(_0x884256._0x32dd0c)] : _0xb37ddb(0x28b), !![]);
|
|
2179
2212
|
}
|
|
2180
|
-
}),
|
|
2181
|
-
'channel':
|
|
2182
|
-
'task_number':
|
|
2183
|
-
'status':
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2213
|
+
}), _0x277dae[_0x10ccff(0x1e0)]('update_task_status', 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2214
|
+
'channel': _0x3b56ab[_0x10ccff(_0x334be6._0x164ea4)](),
|
|
2215
|
+
'task_number': _0x3b56ab[_0x10ccff(_0x334be6._0x3295e7)](),
|
|
2216
|
+
'status': _0x3b56ab['enum']([
|
|
2217
|
+
_0x10ccff(0x1ad),
|
|
2218
|
+
'in_progress',
|
|
2219
|
+
_0x10ccff(0x264),
|
|
2220
|
+
_0x10ccff(0x249)
|
|
2188
2221
|
]),
|
|
2189
|
-
'idempotency_key':
|
|
2190
|
-
}, async
|
|
2191
|
-
const
|
|
2222
|
+
'idempotency_key': _0x3b56ab[_0x10ccff(_0x334be6._0x3787c8)]()[_0x10ccff(_0x334be6._0x26e7a4)]()
|
|
2223
|
+
}, async _0x1ee00 => {
|
|
2224
|
+
const _0x52423f = _0x10ccff;
|
|
2192
2225
|
try {
|
|
2193
|
-
return textResult(await
|
|
2194
|
-
} catch (
|
|
2195
|
-
return textResult(
|
|
2226
|
+
return textResult(await _0x5dfbbe['update_task_status'](_0x1ee00));
|
|
2227
|
+
} catch (_0x497958) {
|
|
2228
|
+
return textResult(_0x497958 instanceof Error ? _0x497958[_0x52423f(0x1ec)] : _0x52423f(_0x59d815._0x50b89a), !![]);
|
|
2196
2229
|
}
|
|
2197
|
-
}),
|
|
2198
|
-
'channel':
|
|
2199
|
-
'file_path':
|
|
2200
|
-
}, async
|
|
2201
|
-
const
|
|
2230
|
+
}), _0x277dae[_0x10ccff(_0x334be6._0x1acc64)](_0x10ccff(_0x334be6._0x4b0ea3), _0x10ccff(0x15d), {
|
|
2231
|
+
'channel': _0x3b56ab[_0x10ccff(0x1bf)](),
|
|
2232
|
+
'file_path': _0x3b56ab['string']()
|
|
2233
|
+
}, async _0x181cc2 => {
|
|
2234
|
+
const _0x2ac8a0 = _0x10ccff;
|
|
2202
2235
|
try {
|
|
2203
|
-
return textResult(await
|
|
2204
|
-
} catch (
|
|
2205
|
-
return textResult(
|
|
2236
|
+
return textResult(await _0x5dfbbe[_0x2ac8a0(_0x54e77e._0x760bfa)](_0x181cc2));
|
|
2237
|
+
} catch (_0x2f2444) {
|
|
2238
|
+
return textResult(_0x2f2444 instanceof Error ? _0x2f2444[_0x2ac8a0(_0x54e77e._0x5036be)] : _0x2ac8a0(_0x54e77e._0x45c794), !![]);
|
|
2206
2239
|
}
|
|
2207
|
-
}),
|
|
2208
|
-
const
|
|
2240
|
+
}), _0x277dae['tool'](_0x10ccff(0x1c9), _0x10ccff(_0x334be6._0x22c75a), { 'attachment_id': _0x3b56ab['string']() }, async _0x50134c => {
|
|
2241
|
+
const _0x549793 = _0x10ccff;
|
|
2209
2242
|
try {
|
|
2210
|
-
return textResult(await
|
|
2211
|
-
} catch (
|
|
2212
|
-
return textResult(
|
|
2243
|
+
return textResult(await _0x5dfbbe[_0x549793(0x1c9)](_0x50134c));
|
|
2244
|
+
} catch (_0x55f83b) {
|
|
2245
|
+
return textResult(_0x55f83b instanceof Error ? _0x55f83b['message'] : _0x549793(_0x5efdac._0x4b9a94), !![]);
|
|
2213
2246
|
}
|
|
2214
|
-
}),
|
|
2215
|
-
const
|
|
2247
|
+
}), _0x277dae[_0x10ccff(_0x334be6._0x27a5f9)](_0x10ccff(0x19a), _0x10ccff(_0x334be6._0x541c4a), { 'work_key': _0x3b56ab[_0x10ccff(0x1bf)]() }, async _0x4e9e82 => {
|
|
2248
|
+
const _0x1880c2 = _0x10ccff;
|
|
2216
2249
|
try {
|
|
2217
|
-
return textResult(await
|
|
2218
|
-
} catch (
|
|
2219
|
-
return textResult(
|
|
2250
|
+
return textResult(await _0x5dfbbe['get_worker_status'](_0x4e9e82));
|
|
2251
|
+
} catch (_0x3a5d35) {
|
|
2252
|
+
return textResult(_0x3a5d35 instanceof Error ? _0x3a5d35[_0x1880c2(_0x431f73._0x24a21c)] : _0x1880c2(_0x431f73._0x1e7cb3), !![]);
|
|
2220
2253
|
}
|
|
2221
|
-
}),
|
|
2222
|
-
const
|
|
2254
|
+
}), _0x277dae[_0x10ccff(_0x334be6._0x5eb1c0)](_0x10ccff(0x17e), _0x10ccff(0x14d), { 'work_key': _0x3b56ab['string']() }, async _0x21698a => {
|
|
2255
|
+
const _0x587f8d = _0x10ccff;
|
|
2223
2256
|
try {
|
|
2224
|
-
return textResult(await
|
|
2225
|
-
} catch (
|
|
2226
|
-
return textResult(
|
|
2257
|
+
return textResult(await _0x5dfbbe[_0x587f8d(0x17e)](_0x21698a));
|
|
2258
|
+
} catch (_0x462080) {
|
|
2259
|
+
return textResult(_0x462080 instanceof Error ? _0x462080[_0x587f8d(0x1ec)] : _0x587f8d(0x130), !![]);
|
|
2227
2260
|
}
|
|
2228
|
-
}),
|
|
2229
|
-
'work_key':
|
|
2230
|
-
'result':
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2261
|
+
}), _0x277dae[_0x10ccff(0x1e0)](_0x10ccff(0x183), _0x10ccff(0x1c7), {
|
|
2262
|
+
'work_key': _0x3b56ab['string'](),
|
|
2263
|
+
'result': _0x3b56ab[_0x10ccff(0x2b8)]([
|
|
2264
|
+
_0x10ccff(0x1e8),
|
|
2265
|
+
_0x10ccff(0x1cd),
|
|
2266
|
+
_0x10ccff(_0x334be6._0x2abfa4)
|
|
2234
2267
|
]),
|
|
2235
|
-
'summary':
|
|
2236
|
-
'decisions':
|
|
2237
|
-
'files_changed':
|
|
2238
|
-
'open_issues':
|
|
2239
|
-
'next_steps':
|
|
2240
|
-
}, async
|
|
2241
|
-
const
|
|
2268
|
+
'summary': _0x3b56ab[_0x10ccff(_0x334be6._0x3787c8)](),
|
|
2269
|
+
'decisions': _0x3b56ab['array'](_0x3b56ab[_0x10ccff(_0x334be6._0x172f4b)]())[_0x10ccff(0x14c)](),
|
|
2270
|
+
'files_changed': _0x3b56ab['array'](_0x3b56ab['string']())['optional'](),
|
|
2271
|
+
'open_issues': _0x3b56ab['array'](_0x3b56ab['string']())[_0x10ccff(0x14c)](),
|
|
2272
|
+
'next_steps': _0x3b56ab['array'](_0x3b56ab['string']())[_0x10ccff(_0x334be6._0xcec370)]()
|
|
2273
|
+
}, async _0x2d72ed => {
|
|
2274
|
+
const _0x46fa2b = _0x10ccff;
|
|
2242
2275
|
try {
|
|
2243
|
-
return textResult(await
|
|
2244
|
-
} catch (
|
|
2245
|
-
return textResult(
|
|
2276
|
+
return textResult(await _0x5dfbbe[_0x46fa2b(_0x59da05._0x14e291)](_0x2d72ed));
|
|
2277
|
+
} catch (_0x284c9a) {
|
|
2278
|
+
return textResult(_0x284c9a instanceof Error ? _0x284c9a['message'] : _0x46fa2b(0x1ab), !![]);
|
|
2246
2279
|
}
|
|
2247
|
-
}),
|
|
2248
|
-
'work_key':
|
|
2249
|
-
'reason':
|
|
2250
|
-
}, async
|
|
2251
|
-
const
|
|
2280
|
+
}), _0x277dae[_0x10ccff(0x1e0)](_0x10ccff(0x16a), _0x10ccff(_0x334be6._0x296ac0), {
|
|
2281
|
+
'work_key': _0x3b56ab['string'](),
|
|
2282
|
+
'reason': _0x3b56ab[_0x10ccff(0x1bf)]()
|
|
2283
|
+
}, async _0xb2aa78 => {
|
|
2284
|
+
const _0x55d457 = _0x10ccff;
|
|
2252
2285
|
try {
|
|
2253
|
-
return textResult(await
|
|
2254
|
-
} catch (
|
|
2255
|
-
return textResult(
|
|
2286
|
+
return textResult(await _0x5dfbbe[_0x55d457(_0x49fa25._0x151025)](_0xb2aa78));
|
|
2287
|
+
} catch (_0xd85c99) {
|
|
2288
|
+
return textResult(_0xd85c99 instanceof Error ? _0xd85c99[_0x55d457(_0x49fa25._0x2a9f9b)] : _0x55d457(0x148), !![]);
|
|
2256
2289
|
}
|
|
2257
|
-
}),
|
|
2258
|
-
const
|
|
2290
|
+
}), _0x5865e0?.[_0x10ccff(0x182)] && _0x277dae[_0x10ccff(_0x334be6._0x2ff33a)](_0x10ccff(0x275), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x3b56ab[_0x10ccff(_0x334be6._0x16bf37)]() }, async _0x1af7e7 => {
|
|
2291
|
+
const _0x5c4ec2 = _0x10ccff;
|
|
2259
2292
|
try {
|
|
2260
|
-
return textResult(await
|
|
2261
|
-
} catch (
|
|
2262
|
-
return textResult(
|
|
2293
|
+
return textResult(await _0x5dfbbe['mark_waiting_input'](_0x1af7e7));
|
|
2294
|
+
} catch (_0x600302) {
|
|
2295
|
+
return textResult(_0x600302 instanceof Error ? _0x600302[_0x5c4ec2(_0x4208cc._0xc6480a)] : _0x5c4ec2(_0x4208cc._0x40061b), !![]);
|
|
2263
2296
|
}
|
|
2264
2297
|
});
|
|
2265
2298
|
}
|
|
2266
|
-
async function createChatBridgeServer(
|
|
2267
|
-
const
|
|
2268
|
-
'name':
|
|
2269
|
-
'version':
|
|
2270
|
-
}),
|
|
2271
|
-
return await registerChatBridgeTools(
|
|
2272
|
-
'handlers':
|
|
2273
|
-
'server':
|
|
2299
|
+
async function createChatBridgeServer(_0x28ed5b) {
|
|
2300
|
+
const _0x5714ff = { _0xe282d0: 0x238 }, _0xfe96ce = _0x404ee2, {McpServer: _0x3d570b} = await import(_0xfe96ce(_0x5714ff._0xe282d0)), _0x5c9cf3 = new _0x3d570b({
|
|
2301
|
+
'name': _0xfe96ce(0x131),
|
|
2302
|
+
'version': _0xfe96ce(0x1f9)
|
|
2303
|
+
}), _0x819ead = createChatBridgeHandlers(_0x28ed5b);
|
|
2304
|
+
return await registerChatBridgeTools(_0x5c9cf3, _0x819ead, { 'workerMode': _0x28ed5b[_0xfe96ce(0x182)] }), {
|
|
2305
|
+
'handlers': _0x819ead,
|
|
2306
|
+
'server': _0x5c9cf3
|
|
2274
2307
|
};
|
|
2275
2308
|
}
|
|
2276
|
-
function readFlag(
|
|
2277
|
-
const
|
|
2278
|
-
if (
|
|
2309
|
+
function readFlag(_0x1c595b, _0xaa6edf) {
|
|
2310
|
+
const _0x466c75 = _0x404ee2, _0x1835d4 = _0x1c595b[_0x466c75(0x1f1)](_0xaa6edf);
|
|
2311
|
+
if (_0x1835d4 === -0x1)
|
|
2279
2312
|
return void 0x0;
|
|
2280
|
-
return
|
|
2313
|
+
return _0x1c595b[_0x1835d4 + 0x1];
|
|
2281
2314
|
}
|
|
2282
|
-
function parseChatBridgeArgs(
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
throw new Error(_0x3f1026(_0x1f374b._0x394737));
|
|
2315
|
+
function parseChatBridgeArgs(_0x23077f) {
|
|
2316
|
+
const _0x2b2768 = {
|
|
2317
|
+
_0x5e492f: 0x1be,
|
|
2318
|
+
_0x296e67: 0x292,
|
|
2319
|
+
_0x3a3e24: 0x1d0,
|
|
2320
|
+
_0x411a51: 0x21f
|
|
2321
|
+
}, _0x5957fe = _0x404ee2, _0x4b921b = readFlag(_0x23077f, _0x5957fe(0x156)), _0x402e4f = readFlag(_0x23077f, _0x5957fe(0x1b1)), _0x58d938 = readFlag(_0x23077f, '--initial-last-seen-seq'), _0x408435 = readFlag(_0x23077f, '--server-url') ?? _0x5957fe(0x145), _0x1e54f4 = readFlag(_0x23077f, _0x5957fe(_0x2b2768._0x5e492f)), _0x50663d = readFlag(_0x23077f, _0x5957fe(0x1f0)), _0x12b6f5 = readFlag(_0x23077f, _0x5957fe(_0x2b2768._0x296e67)), _0x2d972e = readFlag(_0x23077f, '--worker-session-id'), _0x4cb2ea = readFlag(_0x23077f, _0x5957fe(0x197)), _0x162bcf = _0x23077f[_0x5957fe(_0x2b2768._0x3a3e24)](_0x5957fe(_0x2b2768._0x411a51)), _0x40de91 = _0x58d938 === void 0x0 ? void 0x0 : Number[_0x5957fe(0x1c3)](_0x58d938, 0xa);
|
|
2322
|
+
if (!_0x4b921b)
|
|
2323
|
+
throw new Error(_0x5957fe(0x132));
|
|
2324
|
+
if (!_0x402e4f)
|
|
2325
|
+
throw new Error('Missing\x20--daemon-api-key');
|
|
2326
|
+
if (_0x58d938 !== void 0x0 && (_0x40de91 === void 0x0 || !Number[_0x5957fe(0x267)](_0x40de91) || _0x40de91 < 0x0))
|
|
2327
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2296
2328
|
return {
|
|
2297
|
-
'agentId':
|
|
2298
|
-
'daemonApiKey':
|
|
2299
|
-
'daemonLocalUrl':
|
|
2300
|
-
'initialLastSeenSeq':
|
|
2301
|
-
'sessionId':
|
|
2302
|
-
'serverUrl':
|
|
2303
|
-
'workerModeEnabled':
|
|
2304
|
-
'workerSessionId':
|
|
2305
|
-
'workerThreadTarget':
|
|
2306
|
-
'workerMode':
|
|
2329
|
+
'agentId': _0x4b921b,
|
|
2330
|
+
'daemonApiKey': _0x402e4f,
|
|
2331
|
+
'daemonLocalUrl': _0x1e54f4,
|
|
2332
|
+
'initialLastSeenSeq': _0x40de91,
|
|
2333
|
+
'sessionId': _0x50663d,
|
|
2334
|
+
'serverUrl': _0x408435,
|
|
2335
|
+
'workerModeEnabled': _0x12b6f5 === void 0x0 ? void 0x0 : _0x12b6f5 !== _0x5957fe(0x129),
|
|
2336
|
+
'workerSessionId': _0x2d972e,
|
|
2337
|
+
'workerThreadTarget': _0x4cb2ea,
|
|
2338
|
+
'workerMode': _0x162bcf
|
|
2307
2339
|
};
|
|
2308
2340
|
}
|
|
2309
|
-
async function runChatBridgeCli(
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
'
|
|
2341
|
+
async function runChatBridgeCli(_0x8ee8f3) {
|
|
2342
|
+
const _0x5d945b = {
|
|
2343
|
+
_0x40a91f: 0x158,
|
|
2344
|
+
_0x5be811: 0x237
|
|
2345
|
+
}, _0x464b1a = _0x404ee2, _0x32866d = parseChatBridgeArgs(_0x8ee8f3), {StdioServerTransport: _0x1828c0} = await import(_0x464b1a(0x2b0)), _0x40a066 = createInternalAgentClient(_0x32866d), _0x2699d8 = createAttachmentCache(), _0x3d4ed7 = await createChatBridgeServer({
|
|
2346
|
+
'agentId': _0x32866d['agentId'],
|
|
2347
|
+
'attachmentCache': _0x2699d8,
|
|
2348
|
+
'client': _0x40a066,
|
|
2349
|
+
'daemonLocalUrl': _0x32866d[_0x464b1a(0x14e)],
|
|
2315
2350
|
'uploadPreparer': prepareUploadFile,
|
|
2316
|
-
'workerModeEnabled':
|
|
2317
|
-
'workerMode':
|
|
2351
|
+
'workerModeEnabled': _0x32866d[_0x464b1a(_0x5d945b._0x40a91f)],
|
|
2352
|
+
'workerMode': _0x32866d[_0x464b1a(0x182)]
|
|
2318
2353
|
});
|
|
2319
|
-
await
|
|
2354
|
+
await _0x3d4ed7[_0x464b1a(_0x5d945b._0x5be811)]['connect'](new _0x1828c0());
|
|
2320
2355
|
}
|
|
2321
|
-
var executedAsEntry = process[
|
|
2322
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2356
|
+
var executedAsEntry = process[_0x404ee2(0x223)][0x1] ? import.meta.url === pathToFileURL(process[_0x404ee2(0x223)][0x1])[_0x404ee2(0x1fd)] : ![];
|
|
2357
|
+
executedAsEntry && await runChatBridgeCli(process[_0x404ee2(0x223)]['slice'](0x2));
|
|
2323
2358
|
export {
|
|
2324
2359
|
createChatBridgeHandlers,
|
|
2325
2360
|
createChatBridgeServer,
|