@dscord/daemon 0.1.65 → 0.1.67
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 +2208 -2188
- package/dist/index.js +10785 -10631
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
1
|
+
const _0x456b7e = _0x15bc;
|
|
2
|
+
(function (_0x38f0f4, _0xd24551) {
|
|
3
|
+
const _0xe84234 = {
|
|
4
|
+
_0x3933c7: 0x242,
|
|
5
|
+
_0x2c6732: 0x1a2,
|
|
6
|
+
_0x5da7be: 0x1c7,
|
|
7
|
+
_0x4f42dc: 0x1b0
|
|
8
|
+
}, _0x4e8fee = _0x15bc, _0xc64f0c = _0x38f0f4();
|
|
9
9
|
while (!![]) {
|
|
10
10
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const _0x441b81 = parseInt(_0x4e8fee(0xe8)) / 0x1 + parseInt(_0x4e8fee(_0xe84234._0x3933c7)) / 0x2 + parseInt(_0x4e8fee(_0xe84234._0x2c6732)) / 0x3 * (parseInt(_0x4e8fee(0x208)) / 0x4) + -parseInt(_0x4e8fee(0x24e)) / 0x5 + parseInt(_0x4e8fee(0x14a)) / 0x6 + -parseInt(_0x4e8fee(_0xe84234._0x5da7be)) / 0x7 * (-parseInt(_0x4e8fee(0x24b)) / 0x8) + -parseInt(_0x4e8fee(0x126)) / 0x9 * (parseInt(_0x4e8fee(_0xe84234._0x4f42dc)) / 0xa);
|
|
12
|
+
if (_0x441b81 === _0xd24551)
|
|
13
13
|
break;
|
|
14
14
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
15
|
+
_0xc64f0c['push'](_0xc64f0c['shift']());
|
|
16
|
+
} catch (_0x122f67) {
|
|
17
|
+
_0xc64f0c['push'](_0xc64f0c['shift']());
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
}(
|
|
20
|
+
}(_0x35b4, 0x9b881));
|
|
21
21
|
import { pathToFileURL } from 'node:url';
|
|
22
22
|
import {
|
|
23
23
|
mkdir,
|
|
@@ -26,2384 +26,2404 @@ import {
|
|
|
26
26
|
stat,
|
|
27
27
|
writeFile
|
|
28
28
|
} from 'node:fs/promises';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
if (!_0xb0331c[_0x56a0e2(_0x1dfffe._0x4b6b43)](_0x409283))
|
|
70
|
-
throw new Error(_0x56a0e2(0x1c7));
|
|
71
|
-
const _0x172e64 = await stat(_0x409283)[_0x56a0e2(0x24c)](() => null);
|
|
72
|
-
if (!_0x172e64 || !_0x172e64['isFile']())
|
|
73
|
-
throw new Error(_0x56a0e2(_0x1dfffe._0x19bcb6) + _0x409283);
|
|
74
|
-
const _0x2c9337 = _0x2f063d[_0x56a0e2(_0x1dfffe._0x99b2e4)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
75
|
-
if (_0x172e64[_0x56a0e2(0x199)] > _0x2c9337)
|
|
76
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x172e64[_0x56a0e2(_0x1dfffe._0x1c437f)]);
|
|
77
|
-
const _0x4742c0 = await readFile(_0x409283), _0x5997fe = _0xb0331c[_0x56a0e2(0x2db)](_0x409283);
|
|
78
|
-
return {
|
|
79
|
-
'contentBase64': _0x4742c0[_0x56a0e2(0x159)](_0x56a0e2(_0x1dfffe._0x2672d6)),
|
|
80
|
-
'contentType': guessContentType(_0x5997fe),
|
|
81
|
-
'filename': _0x5997fe,
|
|
82
|
-
'sizeBytes': _0x172e64[_0x56a0e2(_0x1dfffe._0x1c437f)]
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function createAttachmentCache(_0x47e25f = {}) {
|
|
86
|
-
const _0xaf8977 = {
|
|
87
|
-
_0xd61785: 0x156,
|
|
88
|
-
_0x4b2621: 0x156,
|
|
89
|
-
_0x5ad15a: 0x224,
|
|
90
|
-
_0x97271f: 0x1c4
|
|
91
|
-
}, _0x57f0aa = _0x36c0a2, _0xfbcc3d = _0x47e25f['cacheDir'] ?? _0xb0331c[_0x57f0aa(0x2a2)](homedir(), _0x57f0aa(0x2b2), _0x57f0aa(0x25c));
|
|
92
|
-
return {
|
|
93
|
-
'cacheDir': _0xfbcc3d,
|
|
94
|
-
async 'findCachedPath'(_0x50cffd) {
|
|
95
|
-
const _0x4ba2b1 = _0x57f0aa;
|
|
96
|
-
await mkdir(_0xfbcc3d, { 'recursive': !![] });
|
|
97
|
-
const _0x48db8f = await readdir(_0xfbcc3d), _0x5c4542 = _0x48db8f[_0x4ba2b1(0x208)](_0x738bc9 => _0x738bc9[_0x4ba2b1(0x260)](_0x50cffd + '-') || _0x738bc9[_0x4ba2b1(0x260)](_0x50cffd));
|
|
98
|
-
return _0x5c4542 ? _0xb0331c[_0x4ba2b1(0x2a2)](_0xfbcc3d, _0x5c4542) : null;
|
|
99
|
-
},
|
|
100
|
-
async 'save'(_0x215958) {
|
|
101
|
-
const _0x3b715c = _0x57f0aa;
|
|
102
|
-
await mkdir(_0xfbcc3d, { 'recursive': !![] });
|
|
103
|
-
const _0x1da97b = _0x215958[_0x3b715c(_0xaf8977._0xd61785)]?.['trim']() ? safeFilename(_0x215958[_0x3b715c(_0xaf8977._0x4b2621)]) : '' + _0x215958[_0x3b715c(0x227)] + extensionFor(_0x215958[_0x3b715c(_0xaf8977._0x5ad15a)]), _0x27b982 = _0xb0331c['join'](_0xfbcc3d, _0x215958['attachmentId'] + '-' + _0x1da97b);
|
|
104
|
-
return await writeFile(_0x27b982, _0x215958[_0x3b715c(_0xaf8977._0x97271f)]), _0x27b982;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
import {
|
|
109
|
-
createHash,
|
|
110
|
-
randomUUID
|
|
111
|
-
} from 'node:crypto';
|
|
112
|
-
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
113
|
-
function ensureSegment(_0x30071d) {
|
|
114
|
-
const _0x1375c8 = _0x30071d['trim']();
|
|
115
|
-
if (!_0x1375c8 || _0x1375c8['includes'](':'))
|
|
116
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
117
|
-
return _0x1375c8;
|
|
118
|
-
}
|
|
119
|
-
function parseThreadParts(_0x12998c) {
|
|
120
|
-
const _0x4b3e1e = { _0x36d81a: 0x2a9 }, _0x2b5703 = _0x36c0a2, _0x3d9074 = _0x12998c[_0x2b5703(0x2d6)](':');
|
|
121
|
-
if (_0x3d9074[_0x2b5703(0x2a9)] < 0x1 || _0x3d9074[_0x2b5703(_0x4b3e1e._0x36d81a)] > 0x2)
|
|
122
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
123
|
-
return {
|
|
124
|
-
'channelName': ensureSegment(_0x3d9074[0x0] ?? ''),
|
|
125
|
-
'threadShortId': _0x3d9074[0x1] ? ensureSegment(_0x3d9074[0x1]) : null
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function parseTarget(_0x10542e) {
|
|
129
|
-
const _0x1bb7d8 = {
|
|
130
|
-
_0x47ba21: 0x260,
|
|
131
|
-
_0x428c46: 0x2e3,
|
|
132
|
-
_0x44901c: 0x2e0,
|
|
133
|
-
_0x5263c8: 0x251,
|
|
134
|
-
_0x5512eb: 0x1b2,
|
|
135
|
-
_0x5886b1: 0x181
|
|
136
|
-
}, _0x3925dc = _0x36c0a2, _0x15bf2a = _0x10542e[_0x3925dc(0x255)]();
|
|
137
|
-
if (!_0x15bf2a)
|
|
138
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
139
|
-
if (_0x15bf2a[_0x3925dc(_0x1bb7d8._0x47ba21)]('#')) {
|
|
140
|
-
const _0x2c2701 = parseThreadParts(_0x15bf2a[_0x3925dc(0x189)](0x1)), _0x59de6c = '#' + _0x2c2701[_0x3925dc(_0x1bb7d8._0x428c46)];
|
|
141
|
-
if (!_0x2c2701[_0x3925dc(0x214)])
|
|
142
|
-
return {
|
|
143
|
-
'channelName': _0x2c2701[_0x3925dc(0x2e3)],
|
|
144
|
-
'channelTarget': _0x59de6c,
|
|
145
|
-
'kind': _0x3925dc(_0x1bb7d8._0x44901c),
|
|
146
|
-
'target': _0x59de6c
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
'channelName': _0x2c2701['channelName'],
|
|
150
|
-
'channelTarget': _0x59de6c,
|
|
151
|
-
'kind': _0x3925dc(0x181),
|
|
152
|
-
'target': _0x59de6c + ':' + _0x2c2701[_0x3925dc(0x214)],
|
|
153
|
-
'threadShortId': _0x2c2701[_0x3925dc(0x214)]
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if (_0x15bf2a[_0x3925dc(0x260)](_0x3925dc(_0x1bb7d8._0x5263c8))) {
|
|
157
|
-
const _0x5d0f30 = parseThreadParts(_0x15bf2a[_0x3925dc(0x189)](0x3));
|
|
158
|
-
if (!_0x5d0f30[_0x3925dc(0x2e3)][_0x3925dc(_0x1bb7d8._0x47ba21)](_0x3925dc(_0x1bb7d8._0x5512eb)))
|
|
159
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
-
const _0x46e27c = 'dm:' + _0x5d0f30[_0x3925dc(0x2e3)];
|
|
161
|
-
if (!_0x5d0f30['threadShortId'])
|
|
162
|
-
return {
|
|
163
|
-
'channelName': _0x5d0f30[_0x3925dc(_0x1bb7d8._0x428c46)],
|
|
164
|
-
'channelTarget': _0x46e27c,
|
|
165
|
-
'kind': _0x3925dc(0x2e0),
|
|
166
|
-
'target': _0x46e27c
|
|
167
|
-
};
|
|
168
|
-
return {
|
|
169
|
-
'channelName': _0x5d0f30['channelName'],
|
|
170
|
-
'channelTarget': _0x46e27c,
|
|
171
|
-
'kind': _0x3925dc(_0x1bb7d8._0x5886b1),
|
|
172
|
-
'target': _0x46e27c + ':' + _0x5d0f30['threadShortId'],
|
|
173
|
-
'threadShortId': _0x5d0f30[_0x3925dc(0x214)]
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
177
|
-
}
|
|
178
|
-
function asErrorMessage(_0x3db6c9, _0x546081) {
|
|
179
|
-
if (typeof _0x3db6c9 === 'string' && _0x3db6c9['trim']())
|
|
180
|
-
return _0x3db6c9;
|
|
181
|
-
return _0x546081;
|
|
182
|
-
}
|
|
183
|
-
function asRecord(_0x3fd8e9) {
|
|
184
|
-
return typeof _0x3fd8e9 === 'object' && _0x3fd8e9 !== null ? _0x3fd8e9 : {};
|
|
185
|
-
}
|
|
186
|
-
function stableStringify(_0x3ed13b) {
|
|
187
|
-
const _0xf0570e = {
|
|
188
|
-
_0x1a2add: 0x2be,
|
|
189
|
-
_0x8b5b: 0x174,
|
|
190
|
-
_0x14a091: 0x266
|
|
191
|
-
}, _0x3a989d = _0x36c0a2;
|
|
192
|
-
if (_0x3ed13b === null || typeof _0x3ed13b !== _0x3a989d(_0xf0570e._0x1a2add))
|
|
193
|
-
return JSON['stringify'](_0x3ed13b);
|
|
194
|
-
if (Array[_0x3a989d(0x16d)](_0x3ed13b))
|
|
195
|
-
return '[' + _0x3ed13b['map'](_0x3fc8b3 => stableStringify(_0x3fc8b3))[_0x3a989d(0x2a2)](',') + ']';
|
|
196
|
-
const _0x220982 = Object[_0x3a989d(0x233)](_0x3ed13b)[_0x3a989d(_0xf0570e._0x8b5b)](([, _0x66a98a]) => _0x66a98a !== void 0x0)[_0x3a989d(_0xf0570e._0x14a091)](([_0x3c65a1], [_0x1265c8]) => _0x3c65a1[_0x3a989d(0x1d1)](_0x1265c8))['map'](([_0x34d8d2, _0x167498]) => JSON[_0x3a989d(0x29e)](_0x34d8d2) + ':' + stableStringify(_0x167498));
|
|
197
|
-
return '{' + _0x220982['join'](',') + '}';
|
|
198
|
-
}
|
|
199
|
-
function createHeaders(_0x1f0290) {
|
|
200
|
-
const _0x400fe7 = { _0x318655: 0x2b1 }, _0x3dbd1f = _0x36c0a2;
|
|
201
|
-
return {
|
|
202
|
-
'Content-Type': _0x3dbd1f(_0x400fe7._0x318655),
|
|
203
|
-
'x-daemon-api-key': _0x1f0290
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
function toHttpBaseUrl(_0x147599) {
|
|
207
|
-
const _0x594447 = { _0x5b151c: 0x2ac }, _0x851f37 = _0x36c0a2, _0x2cc5ff = new URL(_0x147599);
|
|
208
|
-
if (_0x2cc5ff['protocol'] === _0x851f37(0x277))
|
|
209
|
-
_0x2cc5ff[_0x851f37(0x2af)] = _0x851f37(0x23b);
|
|
210
|
-
else
|
|
211
|
-
_0x2cc5ff[_0x851f37(0x2af)] === 'wss:' && (_0x2cc5ff[_0x851f37(0x2af)] = 'https:');
|
|
212
|
-
return _0x2cc5ff['toString']()[_0x851f37(_0x594447._0x5b151c)](/\/$/, '');
|
|
213
|
-
}
|
|
214
|
-
function isMentionBoundary(_0x2ba377) {
|
|
215
|
-
const _0x4f62dd = _0x36c0a2;
|
|
216
|
-
return !_0x2ba377 || /\s|[([{'",。!?、:;]/[_0x4f62dd(0x23a)](_0x2ba377);
|
|
217
|
-
}
|
|
218
|
-
function isMentionTerminal(_0x35d21b) {
|
|
219
|
-
const _0x4781d6 = { _0x3a9dbd: 0x23a }, _0x4b98d2 = _0x36c0a2;
|
|
220
|
-
return !_0x35d21b || /\s|[)\]}'",。!?、:;,.!?]/[_0x4b98d2(_0x4781d6._0x3a9dbd)](_0x35d21b);
|
|
221
|
-
}
|
|
222
|
-
function buildMatchableEntries(_0x571aac) {
|
|
223
|
-
const _0x2f7403 = {
|
|
224
|
-
_0x31584c: 0x2a4,
|
|
225
|
-
_0x1d7446: 0x195,
|
|
226
|
-
_0x3bb2dc: 0x195,
|
|
227
|
-
_0x34626e: 0x191
|
|
228
|
-
}, _0x3086b1 = _0x36c0a2, _0x4b6938 = [];
|
|
229
|
-
for (const _0x19f9c0 of [
|
|
230
|
-
..._0x571aac[_0x3086b1(_0x2f7403._0x31584c)],
|
|
231
|
-
..._0x571aac[_0x3086b1(0x240)]
|
|
232
|
-
]) {
|
|
233
|
-
_0x4b6938[_0x3086b1(0x191)]({
|
|
234
|
-
'matchName': _0x19f9c0[_0x3086b1(_0x2f7403._0x1d7446)],
|
|
235
|
-
'matchNameLower': _0x19f9c0[_0x3086b1(0x195)]['toLocaleLowerCase'](),
|
|
236
|
-
'participantId': _0x19f9c0['id']
|
|
237
|
-
}), _0x19f9c0['id'] !== _0x19f9c0[_0x3086b1(_0x2f7403._0x3bb2dc)] && _0x4b6938[_0x3086b1(_0x2f7403._0x34626e)]({
|
|
238
|
-
'matchName': _0x19f9c0['id'],
|
|
239
|
-
'matchNameLower': _0x19f9c0['id'][_0x3086b1(0x25a)](),
|
|
240
|
-
'participantId': _0x19f9c0['id']
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
return _0x4b6938;
|
|
244
|
-
}
|
|
245
|
-
function extractMentionedParticipantIds(_0x534f6c, _0x494ed3) {
|
|
246
|
-
const _0x1f528c = {
|
|
247
|
-
_0x28f92c: 0x189,
|
|
248
|
-
_0x26946b: 0x1f8,
|
|
249
|
-
_0x93582c: 0x15b,
|
|
250
|
-
_0x243e9f: 0x18c
|
|
251
|
-
}, _0x15011b = {
|
|
252
|
-
_0xb1f598: 0x293,
|
|
253
|
-
_0x592767: 0x18c,
|
|
254
|
-
_0x1a80fe: 0x2a9
|
|
255
|
-
}, _0x1d03a6 = _0x36c0a2, _0x3d3c81 = buildMatchableEntries(_0x494ed3)['sort']((_0x311522, _0xc7853d) => _0xc7853d['matchName'][_0x1d03a6(0x2a9)] - _0x311522['matchName'][_0x1d03a6(0x2a9)]), _0x22658c = [], _0x74515f = new Set();
|
|
256
|
-
for (let _0x2c92cb = 0x0; _0x2c92cb < _0x534f6c['length']; _0x2c92cb += 0x1) {
|
|
257
|
-
if (_0x534f6c[_0x2c92cb] !== '@' || !isMentionBoundary(_0x534f6c[_0x2c92cb - 0x1]))
|
|
258
|
-
continue;
|
|
259
|
-
const _0x5d2b80 = _0x534f6c[_0x1d03a6(_0x1f528c._0x28f92c)](_0x2c92cb + 0x1), _0x543ae6 = _0x5d2b80[_0x1d03a6(0x25a)](), _0x4527ce = _0x3d3c81[_0x1d03a6(0x208)](_0x2977fb => {
|
|
260
|
-
const _0xe32126 = _0x1d03a6;
|
|
261
|
-
if (!_0x543ae6['startsWith'](_0x2977fb[_0xe32126(_0x15011b._0xb1f598)]))
|
|
262
|
-
return ![];
|
|
263
|
-
return isMentionTerminal(_0x5d2b80[_0x2977fb[_0xe32126(_0x15011b._0x592767)][_0xe32126(_0x15011b._0x1a80fe)]]);
|
|
264
|
-
});
|
|
265
|
-
if (!_0x4527ce || _0x74515f[_0x1d03a6(0x192)](_0x4527ce['participantId']))
|
|
266
|
-
continue;
|
|
267
|
-
_0x74515f[_0x1d03a6(_0x1f528c._0x26946b)](_0x4527ce[_0x1d03a6(_0x1f528c._0x93582c)]), _0x22658c[_0x1d03a6(0x191)](_0x4527ce['participantId']), _0x2c92cb += _0x4527ce[_0x1d03a6(_0x1f528c._0x243e9f)][_0x1d03a6(0x2a9)];
|
|
268
|
-
}
|
|
269
|
-
return _0x22658c;
|
|
270
|
-
}
|
|
271
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
272
|
-
function anySignal(..._0x57c5fa) {
|
|
273
|
-
const _0x324f21 = {
|
|
274
|
-
_0x2bb47c: 0x1db,
|
|
275
|
-
_0x23926d: 0x1ed,
|
|
276
|
-
_0xc6152c: 0x28c
|
|
277
|
-
}, _0x3868de = _0x36c0a2, _0x4057c6 = new AbortController();
|
|
278
|
-
for (const _0x140dc1 of _0x57c5fa) {
|
|
279
|
-
if (_0x140dc1[_0x3868de(0x17e)])
|
|
280
|
-
return _0x4057c6[_0x3868de(0x28c)](_0x140dc1[_0x3868de(0x245)]), _0x4057c6[_0x3868de(_0x324f21._0x2bb47c)];
|
|
281
|
-
_0x140dc1[_0x3868de(_0x324f21._0x23926d)](_0x3868de(_0x324f21._0xc6152c), () => _0x4057c6[_0x3868de(0x28c)](_0x140dc1[_0x3868de(0x245)]), {
|
|
282
|
-
'once': !![],
|
|
283
|
-
'signal': _0x4057c6['signal']
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
return _0x4057c6['signal'];
|
|
287
|
-
}
|
|
288
|
-
function createInternalAgentClient(_0x5346d1) {
|
|
289
|
-
const _0xaaed02 = {
|
|
290
|
-
_0x28d5af: 0x204,
|
|
291
|
-
_0x567802: 0x193,
|
|
292
|
-
_0x15d58a: 0x255,
|
|
293
|
-
_0x37e302: 0x255,
|
|
294
|
-
_0x55a91d: 0x21f
|
|
295
|
-
}, _0x1bd5b3 = {
|
|
296
|
-
_0x32a070: 0x171,
|
|
297
|
-
_0x569194: 0x213,
|
|
298
|
-
_0x40f217: 0x159,
|
|
299
|
-
_0x1b07a9: 0x1f7,
|
|
300
|
-
_0x197c55: 0x2ab,
|
|
301
|
-
_0xa7a14f: 0x282,
|
|
302
|
-
_0x375681: 0x1c4,
|
|
303
|
-
_0x435f7d: 0x177,
|
|
304
|
-
_0x263864: 0x2a9,
|
|
305
|
-
_0x2de142: 0x207,
|
|
306
|
-
_0xaa166e: 0x174,
|
|
307
|
-
_0x3d7fe8: 0x212,
|
|
308
|
-
_0x3cc107: 0x2e2,
|
|
309
|
-
_0x170e9d: 0x2e2,
|
|
310
|
-
_0x2c1448: 0x178,
|
|
311
|
-
_0x16a872: 0x2e2,
|
|
312
|
-
_0xc3064b: 0x1f6,
|
|
313
|
-
_0x165121: 0x1d9,
|
|
314
|
-
_0x46fdc0: 0x2dc,
|
|
315
|
-
_0x1ef366: 0x191,
|
|
316
|
-
_0x1b5c27: 0x1d9,
|
|
317
|
-
_0x445af9: 0x171,
|
|
318
|
-
_0x35e833: 0x230,
|
|
319
|
-
_0x3bb87f: 0x251,
|
|
320
|
-
_0x1b8996: 0x243,
|
|
321
|
-
_0x5e07c9: 0x230,
|
|
322
|
-
_0x300735: 0x1cf,
|
|
323
|
-
_0x4352b2: 0x243,
|
|
324
|
-
_0x59c9f6: 0x25f,
|
|
325
|
-
_0x5d5efd: 0x253,
|
|
326
|
-
_0x79ab15: 0x257,
|
|
327
|
-
_0xfabc53: 0x176,
|
|
328
|
-
_0x1c7a5d: 0x1fa,
|
|
329
|
-
_0x4161f7: 0x2d1,
|
|
330
|
-
_0x45d21b: 0x2d1,
|
|
331
|
-
_0x5edaf8: 0x270,
|
|
332
|
-
_0x3ac43a: 0x270,
|
|
333
|
-
_0x5546d0: 0x257,
|
|
334
|
-
_0x5b4c6f: 0x160,
|
|
335
|
-
_0x39172a: 0x257,
|
|
336
|
-
_0x473127: 0x27e,
|
|
337
|
-
_0x49ef6b: 0x174
|
|
338
|
-
}, _0x313a15 = { _0x2940e1: 0x230 }, _0x3b5768 = {
|
|
339
|
-
_0x1b5485: 0x1c3,
|
|
340
|
-
_0x387386: 0x169,
|
|
341
|
-
_0x535ba8: 0x29a
|
|
342
|
-
}, _0x508a0 = {
|
|
343
|
-
_0xb988ad: 0x171,
|
|
344
|
-
_0x7620b7: 0x177,
|
|
345
|
-
_0x5b929f: 0x2a6
|
|
346
|
-
}, _0x1fafec = {
|
|
347
|
-
_0x33626b: 0x278,
|
|
348
|
-
_0x847581: 0x278,
|
|
349
|
-
_0xe76054: 0x1db,
|
|
350
|
-
_0x383358: 0x1d3,
|
|
351
|
-
_0x207a24: 0x2e4,
|
|
352
|
-
_0x40356a: 0x156
|
|
353
|
-
}, _0x82d29c = {
|
|
354
|
-
_0x165403: 0x1c4,
|
|
355
|
-
_0x5b728a: 0x1dd
|
|
356
|
-
}, _0xe4893f = {
|
|
357
|
-
_0x46d485: 0x2b6,
|
|
358
|
-
_0x42285e: 0x2a0
|
|
359
|
-
}, _0x479a21 = {
|
|
360
|
-
_0x2f9b43: 0x1a7,
|
|
361
|
-
_0x550bc5: 0x2c9,
|
|
362
|
-
_0x487851: 0x2a0
|
|
363
|
-
}, _0x291f16 = {
|
|
364
|
-
_0x5d046a: 0x29e,
|
|
365
|
-
_0x2fe737: 0x2a0
|
|
366
|
-
}, _0x450a91 = { _0x492e1d: 0x1f7 }, _0x55fe7c = {
|
|
367
|
-
_0xbf8142: 0x171,
|
|
368
|
-
_0x424b4e: 0x2b0
|
|
369
|
-
}, _0x539e03 = {
|
|
370
|
-
_0x3ea7e4: 0x173,
|
|
371
|
-
_0x350958: 0x2d4,
|
|
372
|
-
_0x273667: 0x2b0,
|
|
373
|
-
_0x1686f5: 0x1c4
|
|
374
|
-
}, _0x2bef0f = {
|
|
375
|
-
_0x40bf27: 0x1a0,
|
|
376
|
-
_0x321eb0: 0x259,
|
|
377
|
-
_0x4ac118: 0x1a0,
|
|
378
|
-
_0x541fa7: 0x1fd
|
|
379
|
-
}, _0x44965f = {
|
|
380
|
-
_0x279ccf: 0x20b,
|
|
381
|
-
_0xba4b3f: 0x183
|
|
382
|
-
}, _0x4ff413 = {
|
|
383
|
-
_0x13d3bf: 0x25f,
|
|
384
|
-
_0x424ecf: 0x1a7,
|
|
385
|
-
_0x194000: 0x1f7,
|
|
386
|
-
_0x57d296: 0x212,
|
|
387
|
-
_0x3eef56: 0x2a9,
|
|
388
|
-
_0x3d7eca: 0x288,
|
|
389
|
-
_0x4e984f: 0x288,
|
|
390
|
-
_0x4db353: 0x2a0
|
|
391
|
-
}, _0x332b0d = {
|
|
392
|
-
_0x52f7d0: 0x17f,
|
|
393
|
-
_0x30c137: 0x171,
|
|
394
|
-
_0xaada83: 0x212,
|
|
395
|
-
_0x541df5: 0x212,
|
|
396
|
-
_0x115965: 0x1c4,
|
|
397
|
-
_0x338299: 0x29b,
|
|
398
|
-
_0x2ab4be: 0x177,
|
|
399
|
-
_0xafc3c0: 0x294
|
|
400
|
-
}, _0x1e3ab4 = {
|
|
401
|
-
_0x2c8f01: 0x1f6,
|
|
402
|
-
_0x40197e: 0x2a6,
|
|
403
|
-
_0x1dd96d: 0x214,
|
|
404
|
-
_0x48122a: 0x2e2,
|
|
405
|
-
_0x2ebbd6: 0x214,
|
|
406
|
-
_0x4caf7a: 0x260,
|
|
407
|
-
_0x163e1e: 0x29a,
|
|
408
|
-
_0x18c8ca: 0x214,
|
|
409
|
-
_0x57d427: 0x260
|
|
410
|
-
}, _0x148118 = {
|
|
411
|
-
_0x5eee3e: 0x181,
|
|
412
|
-
_0x37cf04: 0x1f6,
|
|
413
|
-
_0x26612a: 0x214,
|
|
414
|
-
_0x7f8bae: 0x178,
|
|
415
|
-
_0x791088: 0x178,
|
|
416
|
-
_0x48d78d: 0x260
|
|
417
|
-
}, _0x48873a = {
|
|
418
|
-
_0x38165e: 0x1f6,
|
|
419
|
-
_0x5223ea: 0x26d,
|
|
420
|
-
_0x4c2fba: 0x29a
|
|
421
|
-
}, _0x32bcf1 = {
|
|
422
|
-
_0x183caf: 0x240,
|
|
423
|
-
_0x2e2a34: 0x208
|
|
424
|
-
}, _0x4bd80c = { _0xafe741: 0x20c }, _0x592e39 = { _0x2031f0: 0x17d }, _0x32c940 = {
|
|
425
|
-
_0x40af52: 0x1c6,
|
|
426
|
-
_0x302d87: 0x29e,
|
|
427
|
-
_0x3c1b9e: 0x169,
|
|
428
|
-
_0x4cdab2: 0x1c4,
|
|
429
|
-
_0x446b2b: 0x26d,
|
|
430
|
-
_0x5e82a0: 0x1f6
|
|
431
|
-
}, _0x41cfc8 = { _0x2b5a6d: 0x216 }, _0x2c165f = { _0xfaa68e: 0x1dc }, _0x44e1f0 = {
|
|
432
|
-
_0x6a17d2: 0x1db,
|
|
433
|
-
_0x5953eb: 0x2d4,
|
|
434
|
-
_0x4560cd: 0x1cc
|
|
435
|
-
}, _0xae2a55 = {
|
|
436
|
-
_0x4fa9b8: 0x1db,
|
|
437
|
-
_0x504e51: 0x1cc,
|
|
438
|
-
_0x290a97: 0x2b0
|
|
439
|
-
}, _0x240fae = {
|
|
440
|
-
_0x2b1938: 0x215,
|
|
441
|
-
_0x1ed9a1: 0x280,
|
|
442
|
-
_0x3fa865: 0x279,
|
|
443
|
-
_0x52a9a1: 0x2d2
|
|
444
|
-
}, _0x56fd75 = {
|
|
445
|
-
_0x1a2155: 0x2e4,
|
|
446
|
-
_0x288444: 0x255
|
|
447
|
-
}, _0x2aa3eb = {
|
|
448
|
-
_0x9c8dca: 0x2ac,
|
|
449
|
-
_0x5869c3: 0x182,
|
|
450
|
-
_0x566ab0: 0x219,
|
|
451
|
-
_0x291b1c: 0x225,
|
|
452
|
-
_0x2fbdde: 0x2ad
|
|
453
|
-
}, _0x452847 = _0x36c0a2, _0x2d31a6 = _0x5346d1[_0x452847(0x16b)] ?? fetch, _0x17af24 = _0x5346d1['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x541614 = typeof _0x5346d1[_0x452847(0x1eb)] === 'number' && _0x5346d1[_0x452847(0x1eb)] > 0x0 ? _0x5346d1[_0x452847(0x1eb)] : 0x0, _0x1bf6fb = _0x5346d1['daemonLocalUrl']?.['trim']() || void 0x0, _0x10d26d = _0x5346d1[_0x452847(_0xaaed02._0x28d5af)]?.['trim']() || void 0x0, _0xd14797 = _0x5346d1['workerModeEnabled'] === !![], _0x5c3fb4 = _0x5346d1[_0x452847(_0xaaed02._0x567802)]?.[_0x452847(_0xaaed02._0x15d58a)]() || void 0x0, _0x1d17f8 = _0x5346d1[_0x452847(0x23e)]?.[_0x452847(_0xaaed02._0x37e302)]() || void 0x0, _0x132ecd = createHeaders(_0x5346d1[_0x452847(_0xaaed02._0x55a91d)]), _0x2e77b9 = toHttpBaseUrl(_0x5346d1[_0x452847(0x2d7)]);
|
|
454
|
-
let _0x48499c = null;
|
|
455
|
-
const _0x3b37f3 = new Map();
|
|
456
|
-
let _0x42d217 = _0x541614, _0x2d2f75 = _0x541614;
|
|
457
|
-
function _0x17be70(_0x2086e4) {
|
|
458
|
-
const _0x2ba0dc = _0x452847, _0x5e3692 = _0x2086e4[_0x2ba0dc(0x2cd)][_0x2ba0dc(0x2cb)][_0x2ba0dc(0x243)]('content-type') ?? _0x2ba0dc(0x1a8), _0x1bc470 = _0x2086e4[_0x2ba0dc(0x232)][_0x2ba0dc(0x255)]()[_0x2ba0dc(_0x2aa3eb._0x9c8dca)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x2ba0dc(_0x2aa3eb._0x5869c3);
|
|
459
|
-
return _0x2ba0dc(_0x2aa3eb._0x566ab0) + _0x2086e4['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x2086e4['response']['status'] + _0x2ba0dc(_0x2aa3eb._0x291b1c) + _0x5e3692 + _0x2ba0dc(_0x2aa3eb._0x2fbdde) + _0x1bc470 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
460
|
-
}
|
|
461
|
-
async function _0x41fd2e(_0x11193a, _0xb6bcdf) {
|
|
462
|
-
const _0x225644 = _0x452847, _0x409e4f = Buffer[_0x225644(0x1d3)](await _0xb6bcdf[_0x225644(_0x56fd75._0x1a2155)]())['toString'](_0x225644(0x2c4));
|
|
463
|
-
if (!_0x409e4f[_0x225644(_0x56fd75._0x288444)]())
|
|
464
|
-
return {};
|
|
465
|
-
try {
|
|
466
|
-
return JSON[_0x225644(0x26c)](_0x409e4f);
|
|
467
|
-
} catch {
|
|
468
|
-
throw new Error(_0x17be70({
|
|
469
|
-
'bodyText': _0x409e4f,
|
|
470
|
-
'requestUrl': _0x11193a,
|
|
471
|
-
'response': _0xb6bcdf
|
|
472
|
-
}));
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
function _0x43ab40(_0x3b2974, _0x279cd6) {
|
|
476
|
-
const _0x47fe1e = _0x452847, _0x1ba39e = typeof _0x279cd6[_0x47fe1e(_0x240fae._0x2b1938)] === _0x47fe1e(0x2e2) ? _0x279cd6['idempotency_key'][_0x47fe1e(0x255)]() : '';
|
|
477
|
-
if (_0x1ba39e)
|
|
478
|
-
return _0x1ba39e;
|
|
479
|
-
const _0x4f5a60 = Date[_0x47fe1e(0x1fb)]();
|
|
480
|
-
for (const [_0xf4b4dc, _0x4209fe] of _0x3b37f3) {
|
|
481
|
-
_0x4209fe[_0x47fe1e(_0x240fae._0x1ed9a1)] <= _0x4f5a60 && _0x3b37f3[_0x47fe1e(_0x240fae._0x3fa865)](_0xf4b4dc);
|
|
482
|
-
}
|
|
483
|
-
const _0x58d6af = {
|
|
484
|
-
..._0x279cd6,
|
|
485
|
-
'idempotency_key': void 0x0
|
|
486
|
-
}, _0x282018 = createHash(_0x47fe1e(0x241))['update'](_0x3b2974 + ':' + stableStringify(_0x58d6af))['digest'](_0x47fe1e(0x2aa)), _0x33c4d8 = _0x3b2974 + ':' + _0x282018, _0x3abae0 = _0x3b37f3[_0x47fe1e(0x243)](_0x33c4d8);
|
|
487
|
-
if (_0x3abae0)
|
|
488
|
-
return _0x3abae0[_0x47fe1e(0x28e)];
|
|
489
|
-
const _0x29ec24 = _0x47fe1e(_0x240fae._0x52a9a1) + _0x3b2974 + ':' + randomUUID();
|
|
490
|
-
return _0x3b37f3[_0x47fe1e(0x171)](_0x33c4d8, {
|
|
491
|
-
'expiresAt': _0x4f5a60 + 0x5 * 0x3c * 0x3e8,
|
|
492
|
-
'value': _0x29ec24
|
|
493
|
-
}), _0x29ec24;
|
|
494
|
-
}
|
|
495
|
-
async function _0x1e2419(_0x26f9c3, _0x2862c7) {
|
|
496
|
-
const _0x9aeb67 = _0x452847, _0x1786b0 = new AbortController(), _0x157a0e = setTimeout(() => _0x1786b0[_0x9aeb67(0x28c)](), _0x17af24), _0x1ce8f2 = _0x2862c7?.[_0x9aeb67(0x1db)] ? anySignal(_0x2862c7[_0x9aeb67(0x1db)], _0x1786b0[_0x9aeb67(0x1db)]) : _0x1786b0[_0x9aeb67(_0xae2a55._0x4fa9b8)], _0x548562 = '' + _0x2e77b9 + _0x26f9c3;
|
|
497
|
-
try {
|
|
498
|
-
const _0x1ea7e7 = await _0x2d31a6(_0x548562, {
|
|
499
|
-
..._0x2862c7,
|
|
500
|
-
'signal': _0x1ce8f2
|
|
501
|
-
}), _0x429fb3 = await _0x41fd2e(_0x548562, _0x1ea7e7);
|
|
502
|
-
if (!_0x1ea7e7['ok'] || _0x429fb3[_0x9aeb67(0x1c9)] === ![])
|
|
503
|
-
throw new Error(asErrorMessage(_0x429fb3['error'], _0x9aeb67(_0xae2a55._0x504e51) + _0x1ea7e7[_0x9aeb67(_0xae2a55._0x290a97)]));
|
|
504
|
-
return _0x429fb3;
|
|
505
|
-
} finally {
|
|
506
|
-
clearTimeout(_0x157a0e);
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
async function _0x29aa9c(_0x375dc8, _0x452856) {
|
|
510
|
-
const _0x357df5 = _0x452847, _0x299ea9 = new AbortController(), _0x59663e = setTimeout(() => _0x299ea9[_0x357df5(0x28c)](), _0x17af24), _0xb9abcd = _0x452856?.['signal'] ? anySignal(_0x452856[_0x357df5(_0x44e1f0._0x6a17d2)], _0x299ea9[_0x357df5(0x1db)]) : _0x299ea9['signal'], _0x26e2d2 = '' + _0x2e77b9 + _0x375dc8;
|
|
511
|
-
try {
|
|
512
|
-
const _0x315519 = await _0x2d31a6(_0x26e2d2, {
|
|
513
|
-
..._0x452856,
|
|
514
|
-
'signal': _0xb9abcd
|
|
515
|
-
}), _0x384212 = await _0x41fd2e(_0x26e2d2, _0x315519);
|
|
516
|
-
if (!_0x315519['ok'])
|
|
517
|
-
throw new Error(asErrorMessage(_0x384212[_0x357df5(_0x44e1f0._0x5953eb)], _0x357df5(_0x44e1f0._0x4560cd) + _0x315519['status']));
|
|
518
|
-
return _0x384212;
|
|
519
|
-
} finally {
|
|
520
|
-
clearTimeout(_0x59663e);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
async function _0x537eb7(_0x655f13) {
|
|
524
|
-
const _0x1a8bc4 = _0x452847;
|
|
525
|
-
if (!_0x10d26d || _0x655f13 <= _0x2d2f75)
|
|
526
|
-
return;
|
|
527
|
-
await _0x1e2419(_0x1a8bc4(0x2c2) + encodeURIComponent(_0x10d26d) + _0x1a8bc4(_0x2c165f._0xfaa68e), {
|
|
528
|
-
'body': JSON[_0x1a8bc4(0x29e)]({ 'lastSeenSeq': _0x655f13 }),
|
|
529
|
-
'headers': _0x132ecd,
|
|
530
|
-
'method': _0x1a8bc4(0x21e)
|
|
531
|
-
}), _0x2d2f75 = _0x655f13;
|
|
532
|
-
}
|
|
533
|
-
async function _0x382984(_0x1d1283) {
|
|
534
|
-
const _0x46de29 = _0x452847;
|
|
535
|
-
if (!_0x1bf6fb || !_0x5c3fb4 || _0x1d1283 <= _0x2d2f75)
|
|
536
|
-
return;
|
|
537
|
-
const _0x461e04 = await _0x2d31a6(_0x1bf6fb + _0x46de29(_0x41cfc8._0x2b5a6d), {
|
|
538
|
-
'body': JSON['stringify']({
|
|
539
|
-
'last_seen_seq': _0x1d1283,
|
|
540
|
-
'worker_session_id': _0x5c3fb4
|
|
541
|
-
}),
|
|
542
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
543
|
-
'method': _0x46de29(0x2a0)
|
|
544
|
-
});
|
|
545
|
-
if (!_0x461e04['ok'])
|
|
546
|
-
throw new Error(_0x46de29(0x1cc) + _0x461e04[_0x46de29(0x2b0)]);
|
|
547
|
-
_0x2d2f75 = _0x1d1283;
|
|
548
|
-
}
|
|
549
|
-
async function _0x8ac170(_0x509d1e) {
|
|
550
|
-
const _0x40455b = _0x452847, _0x377bc0 = parseTarget(_0x509d1e), _0x1a0642 = await _0x1e2419(_0x40455b(0x1a7) + _0x5346d1['agentId'] + _0x40455b(_0x32c940._0x40af52), {
|
|
551
|
-
'body': JSON[_0x40455b(_0x32c940._0x302d87)]({ 'target': _0x377bc0[_0x40455b(_0x32c940._0x3c1b9e)] }),
|
|
552
|
-
'headers': _0x132ecd,
|
|
553
|
-
'method': 'POST'
|
|
554
|
-
});
|
|
555
|
-
return {
|
|
556
|
-
'channelId': _0x1a0642[_0x40455b(_0x32c940._0x4cdab2)]?.[_0x40455b(0x212)] ?? '',
|
|
557
|
-
'target': _0x377bc0[_0x40455b(_0x32c940._0x446b2b)],
|
|
558
|
-
'task': _0x1a0642[_0x40455b(0x1c4)]?.['task'],
|
|
559
|
-
'threadId': _0x1a0642['data']?.[_0x40455b(0x29a)],
|
|
560
|
-
'threadNumber': _0x1a0642[_0x40455b(0x1c4)]?.[_0x40455b(_0x32c940._0x5e82a0)]
|
|
561
|
-
};
|
|
562
|
-
}
|
|
563
|
-
async function _0x518709(_0x4be89e = {}) {
|
|
564
|
-
const _0x6322f = {
|
|
565
|
-
_0x2f8acf: 0x1a7,
|
|
566
|
-
_0xdb5794: 0x1c4,
|
|
567
|
-
_0x53a32d: 0x209,
|
|
568
|
-
_0x4cecaf: 0x29b,
|
|
569
|
-
_0x38eac7: 0x174,
|
|
570
|
-
_0x5bc9a8: 0x174,
|
|
571
|
-
_0x40da9a: 0x2a8,
|
|
572
|
-
_0x1f7186: 0x197,
|
|
573
|
-
_0x164c28: 0x195
|
|
574
|
-
}, _0x569449 = _0x452847;
|
|
575
|
-
if (!_0x4be89e[_0x569449(_0x592e39._0x2031f0)] && _0x48499c)
|
|
576
|
-
return _0x48499c;
|
|
577
|
-
return _0x48499c = (async () => {
|
|
578
|
-
const _0x1bc0f5 = _0x569449, _0x4e0703 = await _0x1e2419(_0x1bc0f5(_0x6322f._0x2f8acf) + _0x5346d1[_0x1bc0f5(0x1f7)] + _0x1bc0f5(0x18b), {
|
|
579
|
-
'headers': _0x132ecd,
|
|
580
|
-
'method': _0x1bc0f5(0x282)
|
|
581
|
-
}), _0xcdddf5 = _0x4e0703[_0x1bc0f5(_0x6322f._0xdb5794)]?.[_0x1bc0f5(_0x6322f._0x53a32d)] ?? [], _0x50e27a = _0xcdddf5['filter'](_0x489de5 => _0x489de5['participant']?.[_0x1bc0f5(0x286)] === 'agent')[_0x1bc0f5(_0x6322f._0x4cecaf)](_0x1948c0 => ({
|
|
582
|
-
'id': _0x5a4cd0(_0x1948c0),
|
|
583
|
-
'name': _0x37afd0(_0x1948c0)
|
|
584
|
-
}))[_0x1bc0f5(_0x6322f._0x38eac7)](_0x35b3ea => _0x35b3ea['id']), _0x4e9e05 = _0xcdddf5[_0x1bc0f5(0x174)](_0x5ef7d0 => _0x5ef7d0[_0x1bc0f5(0x1fe)]?.['type'] !== _0x1bc0f5(0x20c))[_0x1bc0f5(0x29b)](_0x1a2865 => ({
|
|
585
|
-
'id': _0x5a4cd0(_0x1a2865),
|
|
586
|
-
'name': _0x37afd0(_0x1a2865)
|
|
587
|
-
}))[_0x1bc0f5(_0x6322f._0x5bc9a8)](_0x656f => _0x656f['id']), _0x4cbeaa = _0x4e0703[_0x1bc0f5(0x1c4)]?.[_0x1bc0f5(_0x6322f._0x40da9a)]['id'] ?? '';
|
|
588
|
-
return {
|
|
589
|
-
'agents': _0x50e27a,
|
|
590
|
-
'channels': _0x4e0703[_0x1bc0f5(_0x6322f._0xdb5794)]?.[_0x1bc0f5(_0x6322f._0x1f7186)] ?? [],
|
|
591
|
-
'humans': _0x4e9e05,
|
|
592
|
-
'serverId': _0x4cbeaa,
|
|
593
|
-
'serverName': _0x4e0703[_0x1bc0f5(0x1c4)]?.[_0x1bc0f5(0x2a8)][_0x1bc0f5(_0x6322f._0x164c28)] ?? _0x4cbeaa
|
|
594
|
-
};
|
|
595
|
-
})()[_0x569449(0x24c)](_0x18654c => {
|
|
596
|
-
_0x48499c = null;
|
|
597
|
-
throw _0x18654c;
|
|
598
|
-
}), _0x48499c;
|
|
599
|
-
}
|
|
600
|
-
function _0x41e9fa(_0x3c9b4c, _0xa0aeac) {
|
|
601
|
-
const _0x2f203b = _0x452847;
|
|
602
|
-
return _0xa0aeac[_0x2f203b(0x2a4)]['some'](_0x533180 => _0x533180['id'] === _0x3c9b4c || _0x533180['name'] === _0x3c9b4c) ? _0x2f203b(_0x4bd80c._0xafe741) : _0x2f203b(0x1d6);
|
|
603
|
-
}
|
|
604
|
-
function _0x564900(_0x3857ea, _0x5aa594) {
|
|
605
|
-
const _0x26e89c = _0x452847, _0x3976e9 = [
|
|
606
|
-
..._0x5aa594['agents'],
|
|
607
|
-
..._0x5aa594[_0x26e89c(_0x32bcf1._0x183caf)]
|
|
608
|
-
][_0x26e89c(_0x32bcf1._0x2e2a34)](_0x443c4c => _0x443c4c['id'] === _0x3857ea);
|
|
609
|
-
return _0x3976e9?.['name'] ?? _0x3857ea;
|
|
610
|
-
}
|
|
611
|
-
function _0x2b8b48(_0x3fe31f) {
|
|
612
|
-
const _0x56e54d = _0x452847;
|
|
613
|
-
if (_0x3fe31f[_0x56e54d(0x1f6)] != null)
|
|
614
|
-
return _0x3fe31f[_0x56e54d(0x26d)] + ':t' + _0x3fe31f[_0x56e54d(_0x48873a._0x38165e)];
|
|
615
|
-
if (_0x3fe31f[_0x56e54d(0x178)])
|
|
616
|
-
return _0x3fe31f[_0x56e54d(_0x48873a._0x5223ea)] + ':' + _0x3fe31f['rootMessageId'];
|
|
617
|
-
if (_0x3fe31f[_0x56e54d(_0x48873a._0x4c2fba)])
|
|
618
|
-
return _0x3fe31f['channelTarget'] + ':' + _0x3fe31f[_0x56e54d(_0x48873a._0x4c2fba)][_0x56e54d(0x189)](0x0, 0x8);
|
|
619
|
-
return _0x3fe31f['channelTarget'];
|
|
620
|
-
}
|
|
621
|
-
function _0x14f5a3(_0x3b7a68, _0x48ce60) {
|
|
622
|
-
const _0x3fcb69 = _0x452847;
|
|
623
|
-
try {
|
|
624
|
-
const _0x42cd66 = parseTarget(_0x3b7a68);
|
|
625
|
-
if (_0x42cd66[_0x3fcb69(0x257)] !== _0x3fcb69(_0x148118._0x5eee3e) || _0x42cd66['channelTarget'] !== _0x48ce60[_0x3fcb69(0x26d)])
|
|
626
|
-
return ![];
|
|
627
|
-
if (_0x48ce60[_0x3fcb69(_0x148118._0x37cf04)] != null && _0x42cd66['threadShortId'] === 't' + _0x48ce60['threadNumber'])
|
|
628
|
-
return !![];
|
|
629
|
-
if (_0x48ce60[_0x3fcb69(0x178)])
|
|
630
|
-
return _0x42cd66[_0x3fcb69(_0x148118._0x26612a)] === _0x48ce60[_0x3fcb69(_0x148118._0x7f8bae)] || _0x48ce60[_0x3fcb69(_0x148118._0x791088)][_0x3fcb69(_0x148118._0x48d78d)](_0x42cd66[_0x3fcb69(0x214)]);
|
|
631
|
-
if (_0x48ce60['threadId'])
|
|
632
|
-
return _0x42cd66[_0x3fcb69(0x214)] === _0x48ce60['threadId'] || _0x48ce60[_0x3fcb69(0x29a)][_0x3fcb69(0x260)](_0x42cd66[_0x3fcb69(0x214)]);
|
|
633
|
-
return ![];
|
|
634
|
-
} catch {
|
|
635
|
-
return ![];
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
function _0x5405d3(_0x279bac, _0x310574) {
|
|
639
|
-
const _0x58dce2 = _0x452847;
|
|
640
|
-
try {
|
|
641
|
-
const _0x573265 = parseTarget(_0x279bac);
|
|
642
|
-
if (_0x573265[_0x58dce2(0x257)] !== 'thread')
|
|
643
|
-
return ![];
|
|
644
|
-
const _0x439047 = typeof _0x310574[_0x58dce2(_0x1e3ab4._0x2c8f01)] === _0x58dce2(_0x1e3ab4._0x40197e) && Number['isInteger'](_0x310574[_0x58dce2(_0x1e3ab4._0x2c8f01)]) ? _0x310574[_0x58dce2(_0x1e3ab4._0x2c8f01)] : void 0x0;
|
|
645
|
-
if (_0x439047 != null && _0x573265[_0x58dce2(_0x1e3ab4._0x1dd96d)] === 't' + _0x439047)
|
|
646
|
-
return !![];
|
|
647
|
-
const _0x27e249 = typeof _0x310574[_0x58dce2(0x178)] === _0x58dce2(_0x1e3ab4._0x48122a) ? _0x310574['rootMessageId'] : void 0x0;
|
|
648
|
-
if (_0x27e249)
|
|
649
|
-
return _0x573265[_0x58dce2(_0x1e3ab4._0x2ebbd6)] === _0x27e249 || _0x27e249[_0x58dce2(_0x1e3ab4._0x4caf7a)](_0x573265[_0x58dce2(0x214)]);
|
|
650
|
-
const _0x102677 = typeof _0x310574['threadId'] === _0x58dce2(0x2e2) ? _0x310574[_0x58dce2(_0x1e3ab4._0x163e1e)] : void 0x0;
|
|
651
|
-
return Boolean(_0x102677) && (_0x573265[_0x58dce2(_0x1e3ab4._0x18c8ca)] === _0x102677 || _0x102677[_0x58dce2(_0x1e3ab4._0x57d427)](_0x573265[_0x58dce2(_0x1e3ab4._0x1dd96d)]));
|
|
652
|
-
} catch {
|
|
653
|
-
return ![];
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
function _0x5a4cd0(_0x4874ed) {
|
|
657
|
-
const _0x16f944 = _0x452847;
|
|
658
|
-
return _0x4874ed[_0x16f944(0x2d9)]?.[_0x16f944(0x15b)] ?? _0x4874ed['participant']?.['id'] ?? _0x4874ed[_0x16f944(0x15b)] ?? '';
|
|
659
|
-
}
|
|
660
|
-
function _0x37afd0(_0x34eb6b) {
|
|
661
|
-
const _0x32ad4a = _0x452847;
|
|
662
|
-
return _0x34eb6b[_0x32ad4a(0x1fe)]?.['name'] ?? _0x5a4cd0(_0x34eb6b);
|
|
663
|
-
}
|
|
664
|
-
async function _0x25f684(_0xac1ac3) {
|
|
665
|
-
const _0x100515 = _0x452847, _0x5b1e84 = Math[_0x100515(0x19f)](_0xac1ac3[_0x100515(_0x332b0d._0x52f7d0)] ?? 0x32, 0x64), _0x588306 = await _0x518709(), _0x48a080 = new URLSearchParams();
|
|
666
|
-
_0x48a080[_0x100515(_0x332b0d._0x30c137)]('limit', String(_0x5b1e84));
|
|
667
|
-
_0xac1ac3['threadId'] ? (_0x48a080['set']('threadId', _0xac1ac3[_0x100515(0x29a)]), _0x48a080['set']('channelId', _0xac1ac3[_0x100515(0x212)])) : _0x48a080['set'](_0x100515(_0x332b0d._0xaada83), _0xac1ac3[_0x100515(_0x332b0d._0x541df5)]);
|
|
668
|
-
_0xac1ac3[_0x100515(0x1c3)] && _0x48a080[_0x100515(0x171)]('cursor', String(_0xac1ac3[_0x100515(0x1c3)]));
|
|
669
|
-
_0xac1ac3[_0x100515(0x20e)] !== void 0x0 && _0x48a080[_0x100515(0x171)](_0x100515(0x20e), String(_0xac1ac3[_0x100515(0x20e)]));
|
|
670
|
-
const _0x4351c6 = await _0x1e2419('/internal/agent/' + _0x5346d1[_0x100515(0x1f7)] + '/history?' + _0x48a080[_0x100515(0x159)](), {
|
|
671
|
-
'headers': _0x132ecd,
|
|
672
|
-
'method': _0x100515(0x282)
|
|
673
|
-
}), _0xbe03c4 = (_0x4351c6[_0x100515(_0x332b0d._0x115965)] ?? [])[_0x100515(_0x332b0d._0x338299)](_0x3ded1d => ({
|
|
674
|
-
'attachments': (_0x3ded1d['attachments'] ?? [])['map'](_0x1051a0 => ({
|
|
675
|
-
'filename': _0x1051a0[_0x100515(0x1dd)] ?? _0x1051a0['id'],
|
|
676
|
-
'id': _0x1051a0['id']
|
|
677
|
-
})),
|
|
678
|
-
'content': _0x3ded1d[_0x100515(0x270)] ?? '',
|
|
679
|
-
'createdAt': _0x3ded1d[_0x100515(0x253)],
|
|
680
|
-
..._0x3ded1d['kind'] && _0x3ded1d[_0x100515(0x257)] !== _0x100515(0x160) ? { 'kind': _0x3ded1d[_0x100515(0x257)] } : {},
|
|
681
|
-
'messageId': _0x3ded1d['id'],
|
|
682
|
-
'senderName': _0x564900(_0x3ded1d[_0x100515(0x2d1)], _0x588306),
|
|
683
|
-
'senderType': _0x41e9fa(_0x3ded1d[_0x100515(0x2d1)], _0x588306),
|
|
684
|
-
'seq': _0x3ded1d[_0x100515(0x1ea)] ?? 0x0
|
|
685
|
-
}));
|
|
686
|
-
return {
|
|
687
|
-
'channel': _0xac1ac3[_0x100515(0x26d)],
|
|
688
|
-
'hasMore': _0x4351c6[_0x100515(_0x332b0d._0x2ab4be)]?.['hasMore'] ?? ![],
|
|
689
|
-
'messages': _0xbe03c4,
|
|
690
|
-
'nextCursor': _0x4351c6[_0x100515(_0x332b0d._0x2ab4be)]?.[_0x100515(_0x332b0d._0xafc3c0)]
|
|
691
|
-
};
|
|
692
|
-
}
|
|
693
|
-
return {
|
|
694
|
-
async 'sendMessage'(_0x3f7302) {
|
|
695
|
-
const _0x3c6623 = _0x452847, _0x63d401 = await _0x8ac170(_0x3f7302['target']), _0x42e14c = _0x3f7302[_0x3c6623(0x25f)][_0x3c6623(0x18a)]('@') ? extractMentionedParticipantIds(_0x3f7302[_0x3c6623(_0x4ff413._0x13d3bf)], await _0x518709()) : [], _0x1c9035 = await _0x1e2419(_0x3c6623(_0x4ff413._0x424ecf) + _0x5346d1[_0x3c6623(_0x4ff413._0x194000)] + _0x3c6623(0x2c6), {
|
|
696
|
-
'body': JSON[_0x3c6623(0x29e)]({
|
|
697
|
-
'attachment_ids': _0x3f7302[_0x3c6623(0x28b)],
|
|
698
|
-
'bodyMarkdown': _0x3f7302['content'],
|
|
699
|
-
'channelId': _0x63d401[_0x3c6623(_0x4ff413._0x57d296)],
|
|
700
|
-
..._0x42e14c[_0x3c6623(_0x4ff413._0x3eef56)] > 0x0 ? { 'mentionedParticipantIds': _0x42e14c } : {},
|
|
701
|
-
'threadId': _0x63d401[_0x3c6623(0x29a)],
|
|
702
|
-
..._0x3f7302[_0x3c6623(_0x4ff413._0x3d7eca)] ? { 'visibility': _0x3f7302[_0x3c6623(_0x4ff413._0x4e984f)] } : {}
|
|
703
|
-
}),
|
|
704
|
-
'headers': _0x132ecd,
|
|
705
|
-
'method': _0x3c6623(_0x4ff413._0x4db353)
|
|
706
|
-
});
|
|
707
|
-
return { 'messageId': _0x1c9035['data']?.['id'] ?? '' };
|
|
708
|
-
},
|
|
709
|
-
async 'listSchedules'() {
|
|
710
|
-
const _0x30a07d = _0x452847, _0x216702 = await _0x1e2419(_0x30a07d(0x297), {
|
|
711
|
-
'headers': _0x132ecd,
|
|
712
|
-
'method': 'GET'
|
|
713
|
-
});
|
|
714
|
-
return _0x216702['data'] ?? [];
|
|
715
|
-
},
|
|
716
|
-
async 'claimScheduleRun'(_0xcb32a7) {
|
|
717
|
-
const _0x4ac040 = _0x452847, _0x2063c9 = await _0x1e2419(_0x4ac040(_0x44965f._0x279ccf), {
|
|
718
|
-
'body': JSON['stringify'](_0xcb32a7),
|
|
719
|
-
'headers': _0x132ecd,
|
|
720
|
-
'method': 'POST'
|
|
721
|
-
});
|
|
722
|
-
return _0x2063c9[_0x4ac040(0x1c4)] ?? {
|
|
723
|
-
'granted': ![],
|
|
724
|
-
'runId': null,
|
|
725
|
-
'schedule': null,
|
|
726
|
-
'scheduledFor': _0xcb32a7[_0x4ac040(_0x44965f._0xba4b3f)]
|
|
727
|
-
};
|
|
728
|
-
},
|
|
729
|
-
async 'startScheduleRun'(_0x42172d) {
|
|
730
|
-
const _0x157611 = _0x452847, _0x5a02b8 = await _0x1e2419(_0x157611(0x223) + encodeURIComponent(_0x42172d[_0x157611(_0x2bef0f._0x40bf27)]) + _0x157611(_0x2bef0f._0x321eb0), {
|
|
731
|
-
'body': JSON[_0x157611(0x29e)]({}),
|
|
732
|
-
'headers': _0x132ecd,
|
|
733
|
-
'method': 'POST'
|
|
734
|
-
});
|
|
735
|
-
return _0x5a02b8['data'] ?? {
|
|
736
|
-
'claimedByDaemonId': '',
|
|
737
|
-
'id': _0x42172d[_0x157611(_0x2bef0f._0x4ac118)],
|
|
738
|
-
'scheduleId': '',
|
|
739
|
-
'status': _0x157611(_0x2bef0f._0x541fa7)
|
|
740
|
-
};
|
|
741
|
-
},
|
|
742
|
-
async 'finishScheduleRun'(_0x54451e) {
|
|
743
|
-
const _0x52b989 = _0x452847, _0x465ca4 = await _0x1e2419(_0x52b989(0x223) + encodeURIComponent(_0x54451e[_0x52b989(0x1a0)]) + _0x52b989(_0x539e03._0x3ea7e4), {
|
|
744
|
-
'body': JSON['stringify']({
|
|
745
|
-
'error': _0x54451e[_0x52b989(_0x539e03._0x350958)],
|
|
746
|
-
'resultJson': _0x54451e['resultJson'],
|
|
747
|
-
'status': _0x54451e[_0x52b989(_0x539e03._0x273667)]
|
|
748
|
-
}),
|
|
749
|
-
'headers': _0x132ecd,
|
|
750
|
-
'method': _0x52b989(0x2a0)
|
|
751
|
-
});
|
|
752
|
-
return _0x465ca4[_0x52b989(_0x539e03._0x1686f5)] ?? {
|
|
753
|
-
'nextRunAt': null,
|
|
754
|
-
'run': {
|
|
755
|
-
'claimedByDaemonId': '',
|
|
756
|
-
'id': _0x54451e[_0x52b989(0x1a0)],
|
|
757
|
-
'scheduleId': '',
|
|
758
|
-
'status': _0x54451e['status']
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
},
|
|
762
|
-
async 'listTasks'(_0x4c51dc) {
|
|
763
|
-
const _0x2dff35 = _0x452847, _0x23540f = new URLSearchParams();
|
|
764
|
-
return _0x23540f[_0x2dff35(_0x55fe7c._0xbf8142)](_0x2dff35(0x2e0), _0x4c51dc['channel']), _0x4c51dc[_0x2dff35(_0x55fe7c._0x424b4e)] && _0x23540f['set'](_0x2dff35(0x2b0), _0x4c51dc[_0x2dff35(0x2b0)]), _0x29aa9c('/internal/agent/' + _0x5346d1[_0x2dff35(0x1f7)] + _0x2dff35(0x2ba) + _0x23540f['toString'](), {
|
|
765
|
-
'headers': _0x132ecd,
|
|
766
|
-
'method': 'GET'
|
|
767
|
-
});
|
|
768
|
-
},
|
|
769
|
-
async 'createTasks'(_0x598dbe) {
|
|
770
|
-
const _0x4e3b9b = _0x452847;
|
|
771
|
-
return _0x29aa9c(_0x4e3b9b(0x1a7) + _0x5346d1[_0x4e3b9b(_0x450a91._0x492e1d)] + _0x4e3b9b(0x20d), {
|
|
772
|
-
'body': JSON['stringify']({
|
|
773
|
-
..._0x598dbe,
|
|
774
|
-
'idempotency_key': _0x43ab40(_0x4e3b9b(0x16e), _0x598dbe)
|
|
775
|
-
}),
|
|
776
|
-
'headers': _0x132ecd,
|
|
777
|
-
'method': 'POST'
|
|
778
|
-
});
|
|
779
|
-
},
|
|
780
|
-
async 'claimTasks'(_0xcd5cdf) {
|
|
781
|
-
const _0x592f9d = _0x452847;
|
|
782
|
-
return _0x29aa9c(_0x592f9d(0x1a7) + _0x5346d1[_0x592f9d(0x1f7)] + '/tasks/claim', {
|
|
783
|
-
'body': JSON[_0x592f9d(_0x291f16._0x5d046a)]({
|
|
784
|
-
..._0xcd5cdf,
|
|
785
|
-
'idempotency_key': _0x43ab40(_0x592f9d(0x263), _0xcd5cdf)
|
|
786
|
-
}),
|
|
787
|
-
'headers': _0x132ecd,
|
|
788
|
-
'method': _0x592f9d(_0x291f16._0x2fe737)
|
|
789
|
-
});
|
|
790
|
-
},
|
|
791
|
-
async 'unclaimTask'(_0x26dd48) {
|
|
792
|
-
const _0x52cc13 = _0x452847;
|
|
793
|
-
return _0x29aa9c(_0x52cc13(_0x479a21._0x2f9b43) + _0x5346d1[_0x52cc13(0x1f7)] + _0x52cc13(0x271), {
|
|
794
|
-
'body': JSON[_0x52cc13(0x29e)]({
|
|
795
|
-
..._0x26dd48,
|
|
796
|
-
'idempotency_key': _0x43ab40(_0x52cc13(_0x479a21._0x550bc5), _0x26dd48)
|
|
797
|
-
}),
|
|
798
|
-
'headers': _0x132ecd,
|
|
799
|
-
'method': _0x52cc13(_0x479a21._0x487851)
|
|
800
|
-
});
|
|
801
|
-
},
|
|
802
|
-
async 'updateTaskStatus'(_0x208e62) {
|
|
803
|
-
const _0x4cdfaf = _0x452847;
|
|
804
|
-
return _0x29aa9c('/internal/agent/' + _0x5346d1['agentId'] + _0x4cdfaf(0x291), {
|
|
805
|
-
'body': JSON[_0x4cdfaf(0x29e)]({
|
|
806
|
-
..._0x208e62,
|
|
807
|
-
'idempotency_key': _0x43ab40(_0x4cdfaf(_0xe4893f._0x46d485), _0x208e62)
|
|
808
|
-
}),
|
|
809
|
-
'headers': _0x132ecd,
|
|
810
|
-
'method': _0x4cdfaf(_0xe4893f._0x42285e)
|
|
811
|
-
});
|
|
812
|
-
},
|
|
813
|
-
async 'uploadFile'(_0x223ba5) {
|
|
814
|
-
const _0x3979a7 = _0x452847, _0x4a7503 = await _0x8ac170(_0x223ba5[_0x3979a7(0x2e0)]);
|
|
815
|
-
if (_0x4a7503['threadId'])
|
|
816
|
-
throw new Error(_0x3979a7(0x2ca));
|
|
817
|
-
const _0x2e128b = await _0x1e2419('/internal/agent/' + _0x5346d1[_0x3979a7(0x1f7)] + _0x3979a7(0x1df), {
|
|
818
|
-
'body': JSON['stringify']({
|
|
819
|
-
'channel': _0x4a7503[_0x3979a7(0x169)],
|
|
820
|
-
'contentBase64': _0x223ba5[_0x3979a7(0x1c8)],
|
|
821
|
-
'contentType': _0x223ba5['contentType'],
|
|
822
|
-
'originalFilename': _0x223ba5['filename']
|
|
823
|
-
}),
|
|
824
|
-
'headers': _0x132ecd,
|
|
825
|
-
'method': _0x3979a7(0x2a0)
|
|
826
|
-
});
|
|
827
|
-
return {
|
|
828
|
-
'attachmentId': _0x2e128b[_0x3979a7(0x1c4)]?.['id'] ?? '',
|
|
829
|
-
'filename': _0x2e128b[_0x3979a7(_0x82d29c._0x165403)]?.[_0x3979a7(0x156)] ?? _0x223ba5[_0x3979a7(_0x82d29c._0x5b728a)],
|
|
830
|
-
'sizeBytes': _0x2e128b[_0x3979a7(_0x82d29c._0x165403)]?.['sizeBytes'] ?? 0x0
|
|
831
|
-
};
|
|
832
|
-
},
|
|
833
|
-
async 'downloadAttachment'(_0x5a0ab2) {
|
|
834
|
-
const _0x2d200e = _0x452847, _0x2f56b8 = await _0x1e2419(_0x2d200e(_0x1fafec._0x33626b) + _0x5a0ab2, {
|
|
835
|
-
'headers': _0x132ecd,
|
|
836
|
-
'method': 'GET'
|
|
837
|
-
}), _0x17a8e8 = new AbortController(), _0x5ead63 = setTimeout(() => _0x17a8e8[_0x2d200e(0x28c)](), _0x17af24);
|
|
838
|
-
try {
|
|
839
|
-
const _0x44e703 = await _0x2d31a6(_0x2e77b9 + _0x2d200e(_0x1fafec._0x847581) + _0x5a0ab2 + _0x2d200e(0x295), {
|
|
840
|
-
'headers': _0x132ecd,
|
|
841
|
-
'method': 'GET',
|
|
842
|
-
'signal': _0x17a8e8[_0x2d200e(_0x1fafec._0xe76054)]
|
|
843
|
-
});
|
|
844
|
-
if (!_0x44e703['ok'])
|
|
845
|
-
throw new Error(_0x2d200e(0x1cc) + _0x44e703[_0x2d200e(0x2b0)]);
|
|
846
|
-
return {
|
|
847
|
-
'contentType': _0x2f56b8[_0x2d200e(0x1c4)]?.[_0x2d200e(0x224)] ?? _0x44e703['headers']['get'](_0x2d200e(0x21d)) ?? _0x2d200e(0x27b),
|
|
848
|
-
'data': Buffer[_0x2d200e(_0x1fafec._0x383358)](await _0x44e703[_0x2d200e(_0x1fafec._0x207a24)]()),
|
|
849
|
-
'originalFilename': _0x2f56b8['data']?.[_0x2d200e(_0x1fafec._0x40356a)]
|
|
850
|
-
};
|
|
851
|
-
} finally {
|
|
852
|
-
clearTimeout(_0x5ead63);
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
async 'listServer'() {
|
|
856
|
-
return _0x518709({ 'forceRefresh': !![] });
|
|
857
|
-
},
|
|
858
|
-
async 'getLatestEventSeq'() {
|
|
859
|
-
const _0x402930 = _0x452847, _0x4e9cc0 = new URLSearchParams();
|
|
860
|
-
_0x4e9cc0[_0x402930(0x171)](_0x402930(0x213), '0'), _0x4e9cc0[_0x402930(_0x508a0._0xb988ad)](_0x402930(0x17f), '1');
|
|
861
|
-
const _0x260667 = await _0x1e2419('/internal/agent/' + _0x5346d1['agentId'] + _0x402930(0x1d2) + _0x4e9cc0['toString'](), {
|
|
862
|
-
'headers': _0x132ecd,
|
|
863
|
-
'method': _0x402930(0x282)
|
|
864
|
-
}), _0x4d490c = _0x260667[_0x402930(_0x508a0._0x7620b7)]?.[_0x402930(0x275)];
|
|
865
|
-
return typeof _0x4d490c === _0x402930(_0x508a0._0x5b929f) && _0x4d490c > 0x0 ? _0x4d490c : 0x0;
|
|
866
|
-
},
|
|
867
|
-
async 'readHistory'(_0x2030f5) {
|
|
868
|
-
const _0xb2f3f6 = _0x452847, _0x281296 = await _0x8ac170(_0x2030f5[_0xb2f3f6(0x2e0)]);
|
|
869
|
-
return _0x25f684({
|
|
870
|
-
'after': _0x2030f5[_0xb2f3f6(0x20e)],
|
|
871
|
-
'before': _0x2030f5[_0xb2f3f6(_0x3b5768._0x1b5485)],
|
|
872
|
-
'channelId': _0x281296['channelId'],
|
|
873
|
-
'channelTarget': _0x281296[_0xb2f3f6(_0x3b5768._0x387386)],
|
|
874
|
-
'limit': _0x2030f5[_0xb2f3f6(0x17f)],
|
|
875
|
-
'threadId': _0x281296[_0xb2f3f6(_0x3b5768._0x535ba8)]
|
|
876
|
-
});
|
|
877
|
-
},
|
|
878
|
-
'resolveTarget': _0x8ac170,
|
|
879
|
-
async 'checkMessages'() {
|
|
880
|
-
const _0x1115a7 = _0x452847, _0x33953e = new URLSearchParams();
|
|
881
|
-
_0x33953e[_0x1115a7(_0x1bd5b3._0x32a070)](_0x1115a7(_0x1bd5b3._0x569194), String(_0x42d217));
|
|
882
|
-
const _0x51be72 = _0x33953e[_0x1115a7(_0x1bd5b3._0x40f217)](), _0x26a887 = await _0x1e2419(_0x1115a7(0x1a7) + _0x5346d1[_0x1115a7(_0x1bd5b3._0x1b07a9)] + _0x1115a7(_0x1bd5b3._0x197c55) + (_0x51be72 ? '?' + _0x51be72 : ''), {
|
|
883
|
-
'headers': _0x132ecd,
|
|
884
|
-
'method': _0x1115a7(_0x1bd5b3._0xa7a14f)
|
|
885
|
-
}), _0x4bab9c = _0x26a887[_0x1115a7(_0x1bd5b3._0x375681)] ?? [], _0x26494e = _0x26a887[_0x1115a7(_0x1bd5b3._0x435f7d)]?.[_0x1115a7(0x294)], _0x2bdcec = _0x1d17f8 ? _0x4bab9c[_0x1115a7(0x174)](_0x26833b => {
|
|
886
|
-
const _0x5211b2 = _0x1115a7;
|
|
887
|
-
if (_0x26833b[_0x5211b2(0x2b5)] !== _0x5211b2(0x1d7))
|
|
888
|
-
return ![];
|
|
889
|
-
return _0x5405d3(_0x1d17f8, asRecord(_0x26833b['payloadJson']));
|
|
890
|
-
}) : _0x4bab9c, _0x502c27 = _0x26494e !== void 0x0 ? _0x1d17f8 ? Math[_0x1115a7(0x207)](_0x42d217, _0x2bdcec['length'] > 0x0 ? _0x2bdcec[_0x2bdcec['length'] - 0x1][_0x1115a7(0x1c2)] : _0x42d217) : Math['max'](_0x42d217, _0x26494e) : _0x2bdcec[_0x1115a7(_0x1bd5b3._0x263864)] > 0x0 ? Math[_0x1115a7(_0x1bd5b3._0x2de142)](_0x42d217, _0x2bdcec[_0x2bdcec[_0x1115a7(0x2a9)] - 0x1][_0x1115a7(0x1c2)]) : _0x42d217, _0x43ae1d = (_0x1d17f8 ? _0x2bdcec : _0x4bab9c)[_0x1115a7(_0x1bd5b3._0xaa166e)](_0x259183 => _0x259183[_0x1115a7(0x2b5)] === _0x1115a7(0x1d7)), _0x1678e6 = _0x1d17f8 === void 0x0 && _0xd14797;
|
|
891
|
-
let _0x28835b = await _0x518709(), _0x4c10a0 = new Map(_0x28835b[_0x1115a7(0x197)]['map'](_0x1a8c20 => [
|
|
892
|
-
_0x1a8c20['id'],
|
|
893
|
-
_0x1a8c20
|
|
894
|
-
]));
|
|
895
|
-
const _0x489fd6 = _0x43ae1d[_0x1115a7(0x2d3)](_0x570aba => {
|
|
896
|
-
const _0x19b664 = _0x1115a7, _0x588f61 = asRecord(_0x570aba[_0x19b664(_0x313a15._0x2940e1)]), _0x356bcb = typeof _0x588f61?.[_0x19b664(0x212)] === 'string' ? _0x588f61[_0x19b664(0x212)] : '';
|
|
897
|
-
return Boolean(_0x356bcb) && !_0x4c10a0[_0x19b664(0x192)](_0x356bcb);
|
|
898
|
-
});
|
|
899
|
-
_0x489fd6 && (_0x28835b = await _0x518709({ 'forceRefresh': !![] }), _0x4c10a0 = new Map(_0x28835b[_0x1115a7(0x197)][_0x1115a7(0x29b)](_0xee3d15 => [
|
|
900
|
-
_0xee3d15['id'],
|
|
901
|
-
_0xee3d15
|
|
902
|
-
])));
|
|
903
|
-
const _0x3228b8 = new Map();
|
|
904
|
-
for (const _0x551f61 of _0x43ae1d) {
|
|
905
|
-
const _0x3c95e5 = asRecord(_0x551f61[_0x1115a7(0x230)]), _0x3eeb2e = typeof _0x3c95e5[_0x1115a7(_0x1bd5b3._0x3d7fe8)] === _0x1115a7(_0x1bd5b3._0x3cc107) ? _0x3c95e5[_0x1115a7(0x212)] : '';
|
|
906
|
-
if (!_0x3eeb2e)
|
|
907
|
-
continue;
|
|
908
|
-
const _0x5503bd = typeof _0x3c95e5[_0x1115a7(0x29a)] === _0x1115a7(_0x1bd5b3._0x170e9d) ? _0x3c95e5[_0x1115a7(0x29a)] : void 0x0, _0x3be8c5 = typeof _0x3c95e5[_0x1115a7(_0x1bd5b3._0x2c1448)] === _0x1115a7(_0x1bd5b3._0x16a872) ? _0x3c95e5[_0x1115a7(0x178)] : void 0x0, _0xfd9aa = typeof _0x3c95e5[_0x1115a7(_0x1bd5b3._0xc3064b)] === _0x1115a7(0x2a6) && Number['isInteger'](_0x3c95e5[_0x1115a7(_0x1bd5b3._0xc3064b)]) ? _0x3c95e5['threadNumber'] : void 0x0, _0x29c605 = Boolean(_0x5503bd && (!_0x3be8c5 || _0x551f61[_0x1115a7(_0x1bd5b3._0x165121)] !== _0x3be8c5)), _0xbaea36 = _0x29c605 ? _0x3eeb2e + ':' + _0x5503bd : _0x3eeb2e, _0x371230 = _0x3228b8[_0x1115a7(0x243)](_0xbaea36) ?? {
|
|
909
|
-
'aggregateIds': [],
|
|
910
|
-
'channelId': _0x3eeb2e,
|
|
911
|
-
'entries': new Map(),
|
|
912
|
-
'isThreadReply': _0x29c605,
|
|
913
|
-
'rootMessageId': _0x3be8c5,
|
|
914
|
-
'threadNumber': _0xfd9aa,
|
|
915
|
-
'threadId': _0x29c605 ? _0x5503bd : void 0x0
|
|
916
|
-
};
|
|
917
|
-
_0x371230[_0x1115a7(_0x1bd5b3._0xc3064b)] == null && _0xfd9aa != null && (_0x371230[_0x1115a7(0x1f6)] = _0xfd9aa), !_0x371230['rootMessageId'] && _0x3be8c5 && (_0x371230['rootMessageId'] = _0x3be8c5), _0x371230[_0x1115a7(_0x1bd5b3._0x46fdc0)][_0x1115a7(_0x1bd5b3._0x1ef366)](_0x551f61[_0x1115a7(_0x1bd5b3._0x1b5c27)]), _0x371230[_0x1115a7(0x233)][_0x1115a7(_0x1bd5b3._0x445af9)](_0x551f61['aggregateId'], {
|
|
918
|
-
'payloadJson': _0x551f61[_0x1115a7(_0x1bd5b3._0x35e833)],
|
|
919
|
-
'seq': _0x551f61['seq']
|
|
920
|
-
}), _0x3228b8[_0x1115a7(0x171)](_0xbaea36, _0x371230);
|
|
921
|
-
}
|
|
922
|
-
const _0x47f703 = [];
|
|
923
|
-
for (const _0x39397a of _0x3228b8[_0x1115a7(0x2d0)]()) {
|
|
924
|
-
const {
|
|
925
|
-
channelId: _0x3641a8,
|
|
926
|
-
threadId: _0x1cc421,
|
|
927
|
-
rootMessageId: _0x40d9c1,
|
|
928
|
-
threadNumber: _0x25b68c,
|
|
929
|
-
aggregateIds: _0x45948f,
|
|
930
|
-
isThreadReply: _0x127407,
|
|
931
|
-
entries: _0x46b47a
|
|
932
|
-
} = _0x39397a, _0x5616ad = _0x4c10a0[_0x1115a7(0x243)](_0x3641a8), _0x3acb8e = _0x5616ad?.[_0x1115a7(0x195)] ?? _0x3641a8, _0x3d9d22 = _0x5616ad?.['kind'] === 'dm' ? _0x1115a7(_0x1bd5b3._0x3bb87f) + _0x3acb8e : '#' + _0x3acb8e, _0x8422c1 = {
|
|
933
|
-
'channelTarget': _0x3d9d22,
|
|
934
|
-
'rootMessageId': _0x40d9c1,
|
|
935
|
-
'threadId': _0x1cc421,
|
|
936
|
-
'threadNumber': _0x25b68c
|
|
937
|
-
}, _0xd9b9e = await _0x25f684({
|
|
938
|
-
'channelId': _0x3641a8,
|
|
939
|
-
'channelTarget': _0x3d9d22,
|
|
940
|
-
'limit': Math['max'](_0x45948f[_0x1115a7(0x2a9)], 0x32),
|
|
941
|
-
'threadId': _0x1cc421
|
|
942
|
-
}), _0x1227d = new Map(_0xd9b9e[_0x1115a7(0x170)][_0x1115a7(0x29b)](_0x1d7fdc => [
|
|
943
|
-
_0x1d7fdc[_0x1115a7(0x176)],
|
|
944
|
-
_0x1d7fdc
|
|
945
|
-
])), _0x483075 = _0x1cc421 ? _0x2b8b48(_0x8422c1) : _0x3d9d22, _0x4d7acb = _0x1d17f8 ? _0x127407 && _0x14f5a3(_0x1d17f8, _0x8422c1) : !![], _0x13a974 = _0x127407 ? _0x4d7acb && _0x1d17f8 ? _0x1d17f8 : _0x483075 : _0x3d9d22;
|
|
946
|
-
for (const _0x157d99 of _0x45948f) {
|
|
947
|
-
if (!_0x4d7acb)
|
|
948
|
-
continue;
|
|
949
|
-
const _0x48919b = _0x46b47a[_0x1115a7(_0x1bd5b3._0x1b8996)](_0x157d99), _0x4d970b = _0x48919b ? asRecord(_0x48919b[_0x1115a7(_0x1bd5b3._0x5e07c9)]) : void 0x0, _0x47c0e7 = _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x300735)] === 'targeted';
|
|
950
|
-
if (_0x1678e6 && _0x47c0e7)
|
|
951
|
-
continue;
|
|
952
|
-
const _0x254f8c = _0x1227d[_0x1115a7(_0x1bd5b3._0x4352b2)](_0x157d99);
|
|
953
|
-
if (_0x254f8c) {
|
|
954
|
-
_0x47f703['push']({
|
|
955
|
-
'attachments': _0x254f8c['attachments'],
|
|
956
|
-
'content': _0x254f8c[_0x1115a7(_0x1bd5b3._0x59c9f6)],
|
|
957
|
-
'createdAt': _0x254f8c[_0x1115a7(_0x1bd5b3._0x5d5efd)],
|
|
958
|
-
..._0x254f8c[_0x1115a7(_0x1bd5b3._0x79ab15)] ? { 'kind': _0x254f8c[_0x1115a7(0x257)] } : {},
|
|
959
|
-
'messageId': _0x254f8c[_0x1115a7(_0x1bd5b3._0xfabc53)],
|
|
960
|
-
'senderName': _0x254f8c[_0x1115a7(_0x1bd5b3._0x1c7a5d)],
|
|
961
|
-
'senderType': _0x254f8c[_0x1115a7(0x231)],
|
|
962
|
-
'target': _0x13a974,
|
|
963
|
-
..._0x47c0e7 ? { 'targetedTask': !![] } : {}
|
|
964
|
-
});
|
|
965
|
-
continue;
|
|
966
|
-
}
|
|
967
|
-
if (_0x48919b) {
|
|
968
|
-
const _0x5781e1 = typeof _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x4161f7)] === _0x1115a7(_0x1bd5b3._0x170e9d) ? _0x4d970b[_0x1115a7(_0x1bd5b3._0x45d21b)] : '', _0x57fab1 = typeof _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x5edaf8)] === _0x1115a7(0x2e2) ? _0x4d970b[_0x1115a7(_0x1bd5b3._0x3ac43a)] : '', _0x186b46 = typeof _0x4d970b?.[_0x1115a7(_0x1bd5b3._0x5546d0)] === _0x1115a7(_0x1bd5b3._0x3cc107) && _0x4d970b[_0x1115a7(0x257)] !== _0x1115a7(_0x1bd5b3._0x5b4c6f) ? _0x4d970b[_0x1115a7(_0x1bd5b3._0x39172a)] : void 0x0;
|
|
969
|
-
_0x5781e1 && _0x57fab1 && _0x47f703[_0x1115a7(0x191)]({
|
|
970
|
-
'attachments': [],
|
|
971
|
-
'content': _0x57fab1,
|
|
972
|
-
'createdAt': new Date()[_0x1115a7(_0x1bd5b3._0x473127)](),
|
|
973
|
-
..._0x186b46 ? { 'kind': _0x186b46 } : {},
|
|
974
|
-
'messageId': _0x157d99,
|
|
975
|
-
'senderName': _0x564900(_0x5781e1, _0x28835b),
|
|
976
|
-
'senderType': _0x41e9fa(_0x5781e1, _0x28835b),
|
|
977
|
-
'target': _0x13a974,
|
|
978
|
-
..._0x47c0e7 ? { 'targetedTask': !![] } : {}
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
if (_0x502c27 > 0x0) {
|
|
984
|
-
if (_0x10d26d)
|
|
985
|
-
await _0x537eb7(_0x502c27);
|
|
986
|
-
else
|
|
987
|
-
_0x5c3fb4 && await _0x382984(_0x502c27);
|
|
988
|
-
}
|
|
989
|
-
return _0x502c27 > _0x42d217 && (_0x42d217 = _0x502c27), { 'messages': _0x1d17f8 ? _0x47f703 : _0x1678e6 ? _0x47f703[_0x1115a7(_0x1bd5b3._0x49ef6b)](_0x529bb5 => _0x529bb5['targetedTask'] !== !![]) : _0x47f703 };
|
|
990
|
-
}
|
|
991
|
-
};
|
|
992
|
-
}
|
|
993
|
-
function _0x7a96() {
|
|
994
|
-
const _0x9c9c9e = [
|
|
995
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
996
|
-
'BgLZDfrHC2TZ',
|
|
997
|
-
'DxrMoa',
|
|
998
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
999
|
-
'l3nLBMq',
|
|
1000
|
-
'AxnbyNnVBhv0zq',
|
|
1001
|
-
'xsba',
|
|
1002
|
-
'Dw5JBgfPBv90yxnR',
|
|
1003
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1004
|
-
'AgvHzgvYCW',
|
|
1005
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
1006
|
-
'CMvZCg9UC2u',
|
|
1007
|
-
'w3nLCt0',
|
|
1008
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1009
|
-
'DMfSDwvZ',
|
|
1010
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1011
|
-
'yxv0BZO',
|
|
1012
|
-
'C29Tzq',
|
|
1013
|
-
'zxjYB3i',
|
|
1014
|
-
'zgvZDhjVEwvK',
|
|
1015
|
-
'C3bSAxq',
|
|
1016
|
-
'C2vYDMvYvxjS',
|
|
1017
|
-
'ls1Hz2vUDc1Pza',
|
|
1018
|
-
'BwvTyMvY',
|
|
1019
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1020
|
-
'yMfZzw5HBwu',
|
|
1021
|
-
'ywDNCMvNyxrLswrZ',
|
|
1022
|
-
'DgL0Bgu',
|
|
1023
|
-
'Dg9gAxHLza',
|
|
1024
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1025
|
-
'y2HHBM5LBa',
|
|
1026
|
-
'DgfZAY0',
|
|
1027
|
-
'C3rYAw5N',
|
|
1028
|
-
'y2HHBM5LBe5HBwu',
|
|
1029
|
-
'yxjYyxLcDwzMzxi',
|
|
1030
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1031
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
1032
|
-
'DgfZA0LK',
|
|
1033
|
-
'Dg9tDhjPBMC',
|
|
1034
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1035
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1036
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1037
|
-
'BwvZC2fNzv9Pzhm',
|
|
1038
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1039
|
-
'ig1ZzZ0',
|
|
1040
|
-
'y2HHDa',
|
|
1041
|
-
'DgHYzwfKvgfYz2v0',
|
|
1042
|
-
'BwvKAxvT',
|
|
1043
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1044
|
-
'BgLZDf9Zzxj2zxi',
|
|
1045
|
-
'y2XPzw50',
|
|
1046
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1047
|
-
'zw51Bq',
|
|
1048
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1049
|
-
'DgfYz2v0',
|
|
1050
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1051
|
-
'zMv0y2HjBxbS',
|
|
1052
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1053
|
-
'AxnbCNjHEq',
|
|
1054
|
-
'y3jLyxrLx3rHC2TZ',
|
|
1055
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1056
|
-
'BwvZC2fNzxm',
|
|
1057
|
-
'C2v0',
|
|
1058
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1059
|
-
'l2zPBMLZAa',
|
|
1060
|
-
'zMLSDgvY',
|
|
1061
|
-
'mty4mJaXmfzIAuzJCq',
|
|
1062
|
-
'BwvZC2fNzuLK',
|
|
1063
|
-
'Bwv0yq',
|
|
1064
|
-
'CM9VDe1LC3nHz2vjza',
|
|
1065
|
-
'D29YA2vYCW',
|
|
1066
|
-
'iokaLca',
|
|
1067
|
-
'BgLZDfnLCNzLCG',
|
|
1068
|
-
'CMvJB3jK',
|
|
1069
|
-
'zM9Yy2vszwzYzxnO',
|
|
1070
|
-
'ywjVCNrLza',
|
|
1071
|
-
'BgLTAxq',
|
|
1072
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1073
|
-
'DgHYzwfK',
|
|
1074
|
-
'pgvTChr5pG',
|
|
1075
|
-
'C2nOzwr1BgvKrM9Y',
|
|
1076
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
1077
|
-
'zMLSzv9WyxrO',
|
|
1078
|
-
'Dw5JBgfPBvrHC2S',
|
|
1079
|
-
'CxvLDwvK',
|
|
1080
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
1081
|
-
'C2XPy2u',
|
|
1082
|
-
'Aw5JBhvKzxm',
|
|
1083
|
-
'l3nLCNzLCG',
|
|
1084
|
-
'Bwf0y2Hoyw1L',
|
|
1085
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
1086
|
-
'otm1mdKYrKfbBxbw',
|
|
1087
|
-
'y2XHAw1uyxnRCW',
|
|
1088
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1089
|
-
'ChvZAa',
|
|
1090
|
-
'AgfZ',
|
|
1091
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
1092
|
-
'lsaJ',
|
|
1093
|
-
'BMfTzq',
|
|
1094
|
-
'iYmJiefNzw50CW',
|
|
1095
|
-
'y2HHBM5LBhm',
|
|
1096
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1097
|
-
'C2L6zq',
|
|
1098
|
-
'z2v0rgf0zq',
|
|
1099
|
-
'C2vUze1LC3nHz2u',
|
|
1100
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1101
|
-
'DxbSB2fKx2zPBgu',
|
|
1102
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1103
|
-
'BwLU',
|
|
1104
|
-
'CNvUswq',
|
|
1105
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
1106
|
-
'igTPBMq9',
|
|
1107
|
-
'Dg9KBW',
|
|
1108
|
-
'iYmJieH1BwfUCW',
|
|
1109
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
29
|
+
function _0x15bc(_0x1e83db, _0x2c0e93) {
|
|
30
|
+
_0x1e83db = _0x1e83db - 0xcd;
|
|
31
|
+
const _0x35b4a5 = _0x35b4();
|
|
32
|
+
let _0x15bcca = _0x35b4a5[_0x1e83db];
|
|
33
|
+
if (_0x15bc['stCDYS'] === undefined) {
|
|
34
|
+
var _0x552ba8 = function (_0x297ec3) {
|
|
35
|
+
const _0x67793d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
36
|
+
let _0x5e0a8c = '', _0x542689 = '';
|
|
37
|
+
for (let _0x2ca78f = 0x0, _0x3cd8d1, _0x4b281f, _0x20fcd1 = 0x0; _0x4b281f = _0x297ec3['charAt'](_0x20fcd1++); ~_0x4b281f && (_0x3cd8d1 = _0x2ca78f % 0x4 ? _0x3cd8d1 * 0x40 + _0x4b281f : _0x4b281f, _0x2ca78f++ % 0x4) ? _0x5e0a8c += String['fromCharCode'](0xff & _0x3cd8d1 >> (-0x2 * _0x2ca78f & 0x6)) : 0x0) {
|
|
38
|
+
_0x4b281f = _0x67793d['indexOf'](_0x4b281f);
|
|
39
|
+
}
|
|
40
|
+
for (let _0x4649be = 0x0, _0x770610 = _0x5e0a8c['length']; _0x4649be < _0x770610; _0x4649be++) {
|
|
41
|
+
_0x542689 += '%' + ('00' + _0x5e0a8c['charCodeAt'](_0x4649be)['toString'](0x10))['slice'](-0x2);
|
|
42
|
+
}
|
|
43
|
+
return decodeURIComponent(_0x542689);
|
|
44
|
+
};
|
|
45
|
+
_0x15bc['hNMqKD'] = _0x552ba8, _0x15bc['vrCkLW'] = {}, _0x15bc['stCDYS'] = !![];
|
|
46
|
+
}
|
|
47
|
+
const _0x15cdc1 = _0x35b4a5[0x0], _0x39acb8 = _0x1e83db + _0x15cdc1, _0xa8524f = _0x15bc['vrCkLW'][_0x39acb8];
|
|
48
|
+
return !_0xa8524f ? (_0x15bcca = _0x15bc['hNMqKD'](_0x15bcca), _0x15bc['vrCkLW'][_0x39acb8] = _0x15bcca) : _0x15bcca = _0xa8524f, _0x15bcca;
|
|
49
|
+
}
|
|
50
|
+
import { homedir } from 'node:os';
|
|
51
|
+
import _0x5e0a8c from 'node:path';
|
|
52
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
53
|
+
'.csv': _0x456b7e(0x1f3),
|
|
54
|
+
'.gif': 'image/gif',
|
|
55
|
+
'.jpeg': _0x456b7e(0x20c),
|
|
56
|
+
'.jpg': _0x456b7e(0x20c),
|
|
57
|
+
'.json': _0x456b7e(0xf7),
|
|
58
|
+
'.md': _0x456b7e(0x121),
|
|
59
|
+
'.pdf': 'application/pdf',
|
|
60
|
+
'.png': 'image/png',
|
|
61
|
+
'.svg': _0x456b7e(0x14c),
|
|
62
|
+
'.txt': _0x456b7e(0x1b9),
|
|
63
|
+
'.webp': _0x456b7e(0x1ba),
|
|
64
|
+
'.xml': _0x456b7e(0x211),
|
|
65
|
+
'.zip': _0x456b7e(0x100)
|
|
66
|
+
};
|
|
67
|
+
function _0x35b4() {
|
|
68
|
+
const _0x3ad530 = [
|
|
1110
69
|
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1111
|
-
'
|
|
1112
|
-
'
|
|
1113
|
-
'
|
|
1114
|
-
'
|
|
1115
|
-
'
|
|
1116
|
-
'
|
|
1117
|
-
'
|
|
1118
|
-
'
|
|
1119
|
-
'
|
|
1120
|
-
'
|
|
1121
|
-
'
|
|
1122
|
-
'
|
|
1123
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
1124
|
-
'CMvHzf9OAxn0B3j5',
|
|
1125
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
70
|
+
'zMLSzw5HBwu',
|
|
71
|
+
'iokaLca',
|
|
72
|
+
'CNvUswq',
|
|
73
|
+
'AhjLzG',
|
|
74
|
+
'z2v0tw9UDgG',
|
|
75
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
76
|
+
'l3jLy2vPDMu/',
|
|
77
|
+
'yM9KEvrLEhq',
|
|
78
|
+
'DgfZA19Pza',
|
|
79
|
+
'y29UBMvJDa',
|
|
80
|
+
'BwfW',
|
|
81
|
+
'mtC3mJK2nhn3EK50yq',
|
|
1126
82
|
'ignSywLTzwq',
|
|
1127
|
-
'
|
|
1128
|
-
'
|
|
1129
|
-
'
|
|
83
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
84
|
+
'BM93',
|
|
85
|
+
'C3rYAw5NAwz5',
|
|
86
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
87
|
+
'ywz0zxi',
|
|
88
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
89
|
+
'DMLLD19MAwXL',
|
|
90
|
+
'ntyXmtuYCuDeCLLR',
|
|
91
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
92
|
+
'ChjVDg9JB2W',
|
|
93
|
+
'ndiZmdGWuMnxrhfY',
|
|
94
|
+
'Bwf4',
|
|
1130
95
|
'rg93BMXVywrLzcb0BZOG',
|
|
1131
|
-
'
|
|
1132
|
-
'
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
1136
|
-
'
|
|
1137
|
-
'
|
|
1138
|
-
'
|
|
1139
|
-
'
|
|
1140
|
-
'
|
|
1141
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1142
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1143
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1144
|
-
'y29UDgvUDejHC2u2na',
|
|
1145
|
-
'C3vJy2vZCW',
|
|
1146
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1147
|
-
'oevuyxDhDG',
|
|
1148
|
-
'sfruuca',
|
|
1149
|
-
'Dgv4Dc9JC3y',
|
|
1150
|
-
'CMvZDwX0CW',
|
|
1151
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1152
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
1153
|
-
'Bg9JywXLq29TCgfYzq',
|
|
1154
|
-
'l3jLy2vPDMu/',
|
|
1155
|
-
'zNjVBq',
|
|
1156
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1157
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1158
|
-
'AhvTyw4',
|
|
96
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
97
|
+
'BwLU',
|
|
98
|
+
'CgfYC2vjBNq',
|
|
99
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
100
|
+
'AhvTyw5Z',
|
|
101
|
+
'Bwf0y2Hoyw1L',
|
|
102
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
103
|
+
'BwvZC2fNzxm',
|
|
104
|
+
'DgfZAYa',
|
|
105
|
+
'lMrZy29Yza',
|
|
1159
106
|
'BwvZC2fNzq',
|
|
1160
|
-
'
|
|
1161
|
-
'
|
|
107
|
+
'ywDLBNrZ',
|
|
108
|
+
'iIbUB3qGzM91BMq',
|
|
1162
109
|
'Aw5FChjVz3jLC3m',
|
|
1163
|
-
'
|
|
1164
|
-
'
|
|
1165
|
-
'
|
|
110
|
+
'AxnjBNrLz2vY',
|
|
111
|
+
'y2XPzw50',
|
|
112
|
+
'v29YA2vYia',
|
|
113
|
+
'C2vUzgvYvhLWzq',
|
|
114
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
115
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
116
|
+
'z2v0twLUDxrLCW',
|
|
117
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
118
|
+
'C2vUzf9TzxnZywDL',
|
|
119
|
+
'C29Tzq',
|
|
120
|
+
'ihn0yxr1CZ0',
|
|
121
|
+
'y29UDgvUDc10ExbL',
|
|
122
|
+
'zg06',
|
|
123
|
+
'l3rHC2TZ',
|
|
124
|
+
'ihrPBwu9',
|
|
125
|
+
'igf0DgfJAg1LBNq',
|
|
126
|
+
'AxngAwXL',
|
|
1166
127
|
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1167
|
-
'
|
|
1168
|
-
'
|
|
1169
|
-
'
|
|
1170
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
1171
|
-
'w3rHCMDLDd0',
|
|
1172
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1173
|
-
'Bg93',
|
|
1174
|
-
'DgfZA3m',
|
|
1175
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1176
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1177
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
1178
|
-
'zxzLBNrtzxe',
|
|
1179
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1180
|
-
'Aw1Hz2uVD2vICa',
|
|
1181
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1182
|
-
'CgfYA193B3jRzxi',
|
|
1183
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1184
|
-
'D29YA2vY',
|
|
1185
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1186
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
1187
|
-
'mty5nti5mefICfDTuW',
|
|
1188
|
-
'odKWnJe0zNrTugvd',
|
|
1189
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1190
|
-
'DgHYzwfKtNvTyMvY',
|
|
1191
|
-
'ywDLBNrjza',
|
|
1192
|
-
'ywrK',
|
|
1193
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
1194
|
-
'C2vUzgvYtMfTzq',
|
|
1195
|
-
'BM93',
|
|
1196
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1197
|
-
'CNvUBMLUzW',
|
|
1198
|
-
'CgfYDgLJAxbHBNq',
|
|
1199
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1200
|
-
'C3rHCNrLza',
|
|
1201
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1202
|
-
'Aw1Hz2uVz2LM',
|
|
1203
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1204
|
-
'C2vZC2LVBKLK',
|
|
1205
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1206
|
-
'CMvHzeHPC3rVCNK',
|
|
1207
|
-
'Bwf4',
|
|
1208
|
-
'zMLUza',
|
|
1209
|
-
'BwvTyMvYCW',
|
|
1210
|
-
'BMv4Den1CNnVCG',
|
|
1211
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
128
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
129
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
130
|
+
'y2f0y2G',
|
|
1212
131
|
'ywDLBNq',
|
|
1213
|
-
'
|
|
1214
|
-
'
|
|
1215
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1216
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
1217
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1218
|
-
'y2HHBM5LBeLK',
|
|
1219
|
-
'ywz0zxjtzxe',
|
|
1220
|
-
'DgHYzwfKu2HVCNrjza',
|
|
1221
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
1222
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1223
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1224
|
-
'ihr5Cgu9ywDLBNq',
|
|
1225
|
-
'6k+35Rgcia',
|
|
1226
|
-
'y29UBMvJDa',
|
|
1227
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1228
|
-
'zxH0BMfTzq',
|
|
1229
|
-
'y29UDgvUDc10ExbL',
|
|
1230
|
-
'uefuq0G',
|
|
1231
|
-
'zgfLBw9UqxbPs2v5',
|
|
1232
|
-
'lsba',
|
|
1233
|
-
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
1234
|
-
'yxnPzgu',
|
|
1235
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1236
|
-
'y29UDgvUDfr5Cgu',
|
|
132
|
+
'BwfPBG',
|
|
133
|
+
'ywDNCMvNyxrLswq',
|
|
1237
134
|
'lcbJB250zw50lxr5Cgu9',
|
|
1238
|
-
'
|
|
1239
|
-
'
|
|
1240
|
-
'
|
|
1241
|
-
'
|
|
1242
|
-
'
|
|
1243
|
-
'
|
|
1244
|
-
'
|
|
1245
|
-
'
|
|
1246
|
-
'
|
|
1247
|
-
'
|
|
1248
|
-
'
|
|
1249
|
-
'
|
|
1250
|
-
'
|
|
135
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
136
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
137
|
+
'w3nLCt0',
|
|
138
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
139
|
+
'y3vYC29Y',
|
|
140
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
141
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
142
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
143
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
144
|
+
'Dg9KBW',
|
|
145
|
+
'C2f2zq',
|
|
146
|
+
'mtiYmda2mKjqrMzhqq',
|
|
147
|
+
'ywrK',
|
|
1251
148
|
'zw50CMLLCW',
|
|
1252
|
-
'
|
|
1253
|
-
'
|
|
1254
|
-
'
|
|
1255
|
-
'
|
|
1256
|
-
'
|
|
149
|
+
'l3vWBg9Hza',
|
|
150
|
+
'C2LNBMfS',
|
|
151
|
+
'zxzLBNrtzxe',
|
|
152
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
153
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
154
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1257
155
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1258
|
-
'
|
|
1259
|
-
'
|
|
1260
|
-
'
|
|
1261
|
-
'
|
|
1262
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1263
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1264
|
-
'AhvTyw5Z',
|
|
1265
|
-
'C2HHmJu2',
|
|
1266
|
-
'ChvIBgLJ',
|
|
1267
|
-
'z2v0',
|
|
1268
|
-
'zMfSC2u',
|
|
1269
|
-
'CMvHC29U',
|
|
1270
|
-
'z2v0sg91CNm',
|
|
1271
|
-
'D29YA2vYsgfUzg9MzG',
|
|
1272
|
-
'DxbSB2fKrMLSzq',
|
|
1273
|
-
'yMfZzty0',
|
|
1274
|
-
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1275
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1276
|
-
'y2f0y2G',
|
|
1277
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
156
|
+
'ig1LC3nHz2u9',
|
|
157
|
+
'C2L6zuj5DgvZ',
|
|
158
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
159
|
+
'CMvJB3jK',
|
|
1278
160
|
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
161
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1279
162
|
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1280
|
-
'
|
|
1281
|
-
'
|
|
1282
|
-
'
|
|
1283
|
-
'
|
|
1284
|
-
'
|
|
163
|
+
'Dw5JBgfPBvrHC2S',
|
|
164
|
+
'y29UDgvUDa',
|
|
165
|
+
'A2LUza',
|
|
166
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
167
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
168
|
+
'CgfYC2u',
|
|
169
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
170
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
171
|
+
'C3rHCNrZv2L0Aa',
|
|
172
|
+
'Dg9ju09tDhjPBMC',
|
|
173
|
+
'iYmGu2vYDMvYoIa',
|
|
174
|
+
'iYmJiefNzw50CW',
|
|
175
|
+
'zNjVBq',
|
|
176
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
177
|
+
'C3rYAw5N',
|
|
178
|
+
'khvUA25VD24P',
|
|
179
|
+
'ChvIBgLJ',
|
|
180
|
+
'CgfKu3rHCNq',
|
|
181
|
+
'BwvZC2fNzuLK',
|
|
182
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
183
|
+
'y29UDgvUDejHC2u2na',
|
|
184
|
+
'zgLZCg9ZAxrPB24',
|
|
185
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
186
|
+
'DgHYzwfKtNvTyMvY',
|
|
187
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1285
188
|
'DhjPBq',
|
|
189
|
+
'yxr0ywnOBwvUDeLK',
|
|
190
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
191
|
+
'DxnLCG',
|
|
192
|
+
'C2nOzwr1BgvKrM9Y',
|
|
193
|
+
'C2vUzgvYtMfTzq',
|
|
194
|
+
'v29YA2vYici',
|
|
195
|
+
'Dg9tDhjPBMC',
|
|
196
|
+
'C3rVCe1HAw4',
|
|
197
|
+
'DgfZA0LK',
|
|
198
|
+
'D29YA19RzxK',
|
|
199
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
200
|
+
'C3vIDgfZA051BwjLCG',
|
|
1286
201
|
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1287
|
-
'
|
|
1288
|
-
'
|
|
1289
|
-
'
|
|
1290
|
-
'
|
|
1291
|
-
'
|
|
202
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
203
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
204
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
205
|
+
'kgXLz2fJEsK',
|
|
206
|
+
'C3bSAxq',
|
|
207
|
+
'B3b0Aw9UywW',
|
|
208
|
+
'nJu3ndC3q0DuBMHQ',
|
|
209
|
+
'AgfZ',
|
|
210
|
+
'AwrSzq',
|
|
211
|
+
'DxbSB2fKx2zPBgu',
|
|
212
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
213
|
+
'Aw5KzxHpzG',
|
|
214
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
215
|
+
'ywjVCNq',
|
|
216
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
217
|
+
'z2v0u2vJB25KCW',
|
|
218
|
+
'ANnVBG',
|
|
219
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
220
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1292
221
|
'yxr0ywnOBwvUDhm',
|
|
1293
|
-
'
|
|
222
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
223
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
224
|
+
'CgfYDgLJAxbHBNq',
|
|
225
|
+
'ywz0zxjtzxe',
|
|
226
|
+
'BNvTyMvY',
|
|
227
|
+
'DgvZDa',
|
|
228
|
+
'BMv4Den1CNnVCG',
|
|
229
|
+
'C2v0',
|
|
1294
230
|
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'y2XHAw0GzMfPBgvK',
|
|
1299
|
-
'y2XHAw1FDgfZA3m',
|
|
1300
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1301
|
-
'yxjYyxK',
|
|
1302
|
-
'C29YDa',
|
|
1303
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
1304
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1305
|
-
'C2vUzf9TzxnZywDL',
|
|
1306
|
-
'zgvZy3jPChrPB24',
|
|
1307
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1308
|
-
'CgfYC2u',
|
|
1309
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1310
|
-
'igrVBMuP',
|
|
1311
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
231
|
+
'ihr5Cgu9ywDLBNq',
|
|
232
|
+
'Dw5RBM93BG',
|
|
233
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1312
234
|
'yM9KEu1HCMTKB3DU',
|
|
1313
|
-
'
|
|
235
|
+
'zxjYB3i',
|
|
236
|
+
'C3vJy2vZCW',
|
|
237
|
+
'lcbWCMv2Awv3pq',
|
|
238
|
+
'l3rHC2TZl2nSywLT',
|
|
239
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
240
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
241
|
+
'zMLUza',
|
|
242
|
+
'zg0T',
|
|
243
|
+
'zxH0BMfTzq',
|
|
244
|
+
'mJq1mta2nMHOD21OAa',
|
|
245
|
+
'Bg9JywXLq29TCgfYzq',
|
|
246
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
247
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
248
|
+
'BgvUz3rO',
|
|
1314
249
|
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1315
|
-
'
|
|
1316
|
-
'
|
|
1317
|
-
'
|
|
1318
|
-
'
|
|
1319
|
-
'
|
|
1320
|
-
'
|
|
250
|
+
'zMfSC2u',
|
|
251
|
+
'DgHYzwfK',
|
|
252
|
+
'Dw5JBgfPBv90yxnR',
|
|
253
|
+
'Bwv0yq',
|
|
254
|
+
'yMvMB3jL',
|
|
255
|
+
'y29UDgvUDfr5Cgu',
|
|
256
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
257
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
258
|
+
'C2vYDMvY',
|
|
259
|
+
'Agv4',
|
|
260
|
+
'l3nLCNzLCG',
|
|
261
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
1321
262
|
'zgvSzxrL',
|
|
1322
|
-
'
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1325
|
-
'
|
|
1326
|
-
'
|
|
1327
|
-
'
|
|
1328
|
-
'
|
|
1329
|
-
'
|
|
1330
|
-
'
|
|
1331
|
-
'
|
|
1332
|
-
'
|
|
1333
|
-
'
|
|
1334
|
-
'
|
|
1335
|
-
'igzHAwXLzdOG',
|
|
263
|
+
'y3jLyxrLx3rHC2TZ',
|
|
264
|
+
'zMLSzv9WyxrO',
|
|
265
|
+
'y3jLyxrLzef0',
|
|
266
|
+
'ywXS',
|
|
267
|
+
'Dg9VBa',
|
|
268
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
269
|
+
'C2vYDMvYvxjS',
|
|
270
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
271
|
+
'D3nZoG',
|
|
272
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
273
|
+
'y2XHAw1FDgfZA3m',
|
|
274
|
+
'AxngAw5PDgu',
|
|
275
|
+
'l3rHC2TZpW',
|
|
1336
276
|
'DMLZAwjPBgL0Eq',
|
|
1337
|
-
'
|
|
1338
|
-
'
|
|
1339
|
-
'
|
|
1340
|
-
'
|
|
1341
|
-
'
|
|
277
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
278
|
+
'DgHYzwfKu2HVCNrjza',
|
|
279
|
+
'igrVBMuP',
|
|
280
|
+
'DMfSDwvZ',
|
|
281
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
282
|
+
'AM9PBG',
|
|
283
|
+
'yxv0BZO',
|
|
284
|
+
'DgL0Bgu',
|
|
285
|
+
'zgfLBw9UqxbPs2v5',
|
|
286
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
287
|
+
'zg9Uzq',
|
|
288
|
+
'xsba',
|
|
289
|
+
'BgLZDfnLCNzLCG',
|
|
290
|
+
'iJOGC3rHDhvZpq',
|
|
291
|
+
'zM9Yy2vszwzYzxnO',
|
|
292
|
+
'Aw5JBhvKzxm',
|
|
293
|
+
'igTPBMq9',
|
|
294
|
+
'ywDLBNrjza',
|
|
295
|
+
'y2HHBM5LBeLK',
|
|
296
|
+
'vgfZAYa',
|
|
297
|
+
'CMvZCg9UC2u',
|
|
298
|
+
'w3rHCMDLDd0',
|
|
299
|
+
'DxrMoa',
|
|
300
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
301
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
302
|
+
'D29YA2vY',
|
|
303
|
+
'AgvHzgvYCW',
|
|
1342
304
|
'DMfSDwu',
|
|
1343
|
-
'
|
|
1344
|
-
'
|
|
1345
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1346
|
-
'z2v0u2vJB25KCW',
|
|
1347
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1348
|
-
'y3vYC29Y',
|
|
1349
|
-
'l2nVBNrLBNq',
|
|
305
|
+
'l3n0yxj0',
|
|
306
|
+
'l2zPBMLZAa',
|
|
1350
307
|
'iYmJienOyw5UzwXZ',
|
|
1351
|
-
'
|
|
1352
|
-
'
|
|
1353
|
-
'
|
|
308
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
309
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
310
|
+
'y2HHDa',
|
|
311
|
+
'C2L6zq',
|
|
312
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
313
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
314
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
315
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
316
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
317
|
+
'z2v0rgf0zq',
|
|
318
|
+
'zgf0yq',
|
|
319
|
+
'DxbSB2fKrMLSzq',
|
|
320
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
321
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
322
|
+
'C3rHCNrLza',
|
|
323
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
324
|
+
'CMvZDwX0CW',
|
|
325
|
+
'DgfYz2v0zwruyxnR',
|
|
326
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
327
|
+
'DgfZA3m',
|
|
1354
328
|
'DgHYzwfKswq',
|
|
1355
|
-
'
|
|
1356
|
-
'
|
|
329
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
330
|
+
'BgLTAxq',
|
|
331
|
+
'DgfZAY0',
|
|
332
|
+
'nZKXmJe0qxfstuzL',
|
|
333
|
+
'zMv0y2HjBxbS',
|
|
334
|
+
'BgLZDf90yxnRCW',
|
|
335
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
336
|
+
'Aw5FCMv2Awv3',
|
|
337
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
338
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1357
339
|
'DgfZAW',
|
|
1358
|
-
'
|
|
1359
|
-
'
|
|
1360
|
-
'
|
|
340
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
341
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
342
|
+
'ls1Zzxj2zxiTDxjS',
|
|
343
|
+
'y2HHBM5LBa',
|
|
344
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
345
|
+
'yxjYyxK',
|
|
346
|
+
'mZiWyKnKuffI',
|
|
347
|
+
'C2vUze1LC3nHz2u',
|
|
348
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
349
|
+
'C3rHDhvZ',
|
|
1361
350
|
'kg5VBMuP',
|
|
1362
|
-
'
|
|
1363
|
-
'
|
|
1364
|
-
'
|
|
351
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
352
|
+
'l3jLy2vPDMu',
|
|
353
|
+
'CMvZDwX0sNnVBG',
|
|
354
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
355
|
+
'Dgv4Dc9WBgfPBG',
|
|
356
|
+
'Aw1Hz2uVD2vICa',
|
|
357
|
+
'ig1LC3nHz2vZkqOk',
|
|
358
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
359
|
+
'AxnbyNnVBhv0zq',
|
|
360
|
+
'zw51Bq',
|
|
361
|
+
'y2HHBM5LBe5HBwu',
|
|
1365
362
|
'icHPzdO',
|
|
1366
|
-
'
|
|
363
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
364
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
365
|
+
'lsba',
|
|
366
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
367
|
+
'CxvLDwvK',
|
|
368
|
+
'ig1ZzZ0',
|
|
369
|
+
'mJHgwLzLEeO',
|
|
370
|
+
'BgLZDf9Zzxj2zxi',
|
|
371
|
+
'D29YA2vYtw9Kzq',
|
|
372
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1367
373
|
'DgfZA051BwjLCG',
|
|
1368
|
-
'
|
|
1369
|
-
'
|
|
1370
|
-
'
|
|
1371
|
-
'
|
|
1372
|
-
'CMvWBgfJzq',
|
|
1373
|
-
'lcbWCMv2Awv3pq',
|
|
374
|
+
'mc4WlJa',
|
|
375
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
376
|
+
'z2v0vgLTzq',
|
|
377
|
+
'l3nLBMq',
|
|
1374
378
|
'AgfZtw9Yzq',
|
|
1375
|
-
'
|
|
1376
|
-
'
|
|
1377
|
-
'
|
|
1378
|
-
'
|
|
1379
|
-
'
|
|
379
|
+
'D29YA2vYsgfUzg9MzG',
|
|
380
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
381
|
+
'zgvZDhjVEwvK',
|
|
382
|
+
'zgvZy3jPyMu',
|
|
383
|
+
'CMvWBgfJzq',
|
|
384
|
+
'CMvHzeHPC3rVCNK',
|
|
385
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
386
|
+
'BwvKAxvT',
|
|
387
|
+
'ChvZAa',
|
|
388
|
+
'yxjNDG',
|
|
389
|
+
'lIbnzxnZywDLieLeoIa',
|
|
390
|
+
'CgfYDgLJAxbHBNrjza',
|
|
391
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
392
|
+
'B2jQzwn0',
|
|
393
|
+
'BMfTzq',
|
|
394
|
+
'l2nVBNrLBNq',
|
|
395
|
+
'DgHYzwfKvgfYz2v0',
|
|
396
|
+
'pgvTChr5pG',
|
|
397
|
+
'lMjPBG',
|
|
398
|
+
'Cgf5Bg9HzePZB24',
|
|
399
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
400
|
+
'sfruuca',
|
|
401
|
+
'BgLZDfrHC2TZ',
|
|
402
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
403
|
+
'vgfZAZOG',
|
|
404
|
+
'zgvZy3jPChrPB24',
|
|
405
|
+
'DgfYz2v0',
|
|
406
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
407
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
408
|
+
'BwvTyMvY',
|
|
409
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
410
|
+
'ue9tva',
|
|
411
|
+
'yMfZzw5HBwu',
|
|
412
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
413
|
+
'Dgv4Dc9JC3y',
|
|
414
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
415
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
416
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
417
|
+
'igLUia',
|
|
418
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
419
|
+
'6k+35Rgcia',
|
|
420
|
+
'D3m6',
|
|
421
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
422
|
+
'yxnPzgu',
|
|
423
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
424
|
+
'D29YA2vYCW',
|
|
425
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
426
|
+
'ls1Hz2vUDc1Pza',
|
|
427
|
+
'yxjYyxLcDwzMzxi',
|
|
428
|
+
'zxHWAxjLC0f0',
|
|
429
|
+
'CNvUBMLUzW',
|
|
430
|
+
'r0vu',
|
|
431
|
+
'C2XPy2u',
|
|
432
|
+
'Bg93',
|
|
433
|
+
'ywDNCMvNyxrLswrZ',
|
|
434
|
+
'ngffAuPsyG',
|
|
435
|
+
'z2v0',
|
|
436
|
+
'z2v0rNvSBfLLyxi',
|
|
437
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
438
|
+
'Aw1Hz2uVANbLzW',
|
|
439
|
+
'y2XHAw0GzMfPBgvK',
|
|
440
|
+
'Dg9gAxHLza',
|
|
441
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
442
|
+
'C2vX',
|
|
443
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
444
|
+
'z2v0sg91CNm',
|
|
445
|
+
'y2HPBgrYzw5eB25L',
|
|
446
|
+
'yMfZzty0',
|
|
447
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
448
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
449
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1380
450
|
'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
|
|
1381
|
-
'
|
|
1382
|
-
'
|
|
1383
|
-
'
|
|
1384
|
-
'
|
|
1385
|
-
'
|
|
1386
|
-
'
|
|
1387
|
-
'
|
|
1388
|
-
'
|
|
451
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
452
|
+
'igzHAwXLzdOG',
|
|
453
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
454
|
+
'CMvHzf9OAxn0B3j5',
|
|
455
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
456
|
+
'zgLNzxn0',
|
|
457
|
+
'CMvHC29U',
|
|
458
|
+
'CgfYA193B3jRzxi',
|
|
459
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
460
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
461
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1389
462
|
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1390
|
-
'
|
|
1391
|
-
'
|
|
1392
|
-
'
|
|
1393
|
-
'
|
|
463
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
464
|
+
'Ahr0Chm6',
|
|
465
|
+
'C29YDa',
|
|
466
|
+
'lsaJ',
|
|
467
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
468
|
+
'CM9VDe1LC3nHz2vjza',
|
|
469
|
+
'D2fPDgLUz19PBNb1Da',
|
|
470
|
+
'BwvZC2fNzv9Pzhm',
|
|
471
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
472
|
+
'Ahr0CdO',
|
|
473
|
+
'CMvXDwvZDfvYBa',
|
|
474
|
+
'zMLSDgvY',
|
|
475
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
476
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
477
|
+
'y2HLy2TnzxnZywDLCW',
|
|
478
|
+
'y2HHBM5LBhm',
|
|
479
|
+
'D29YA2vYu2vZC2LVBKLK'
|
|
1394
480
|
];
|
|
1395
|
-
|
|
1396
|
-
return
|
|
481
|
+
_0x35b4 = function () {
|
|
482
|
+
return _0x3ad530;
|
|
483
|
+
};
|
|
484
|
+
return _0x35b4();
|
|
485
|
+
}
|
|
486
|
+
function guessContentType(_0x542689) {
|
|
487
|
+
const _0x53f800 = {
|
|
488
|
+
_0x28c39c: 0x149,
|
|
489
|
+
_0x30fa29: 0x1f8
|
|
490
|
+
}, _0x3f8852 = _0x456b7e;
|
|
491
|
+
return MIME_BY_EXTENSION[_0x5e0a8c[_0x3f8852(_0x53f800._0x28c39c)](_0x542689)['toLowerCase']()] ?? _0x3f8852(_0x53f800._0x30fa29);
|
|
492
|
+
}
|
|
493
|
+
function safeFilename(_0x2ca78f) {
|
|
494
|
+
const _0x50b341 = _0x456b7e;
|
|
495
|
+
return _0x2ca78f[_0x50b341(0x1d5)](/[\\/]/g, '-');
|
|
496
|
+
}
|
|
497
|
+
function extensionFor(_0x3cd8d1) {
|
|
498
|
+
const _0x3aac73 = { _0x22b553: 0xea }, _0x1982b9 = _0x456b7e, _0x4b281f = Object[_0x1982b9(_0x3aac73._0x22b553)](MIME_BY_EXTENSION)[_0x1982b9(0x147)](([, _0x20fcd1]) => _0x20fcd1 === _0x3cd8d1);
|
|
499
|
+
return _0x4b281f?.[0x0] ?? _0x1982b9(0x1e3);
|
|
500
|
+
}
|
|
501
|
+
async function prepareUploadFile(_0x4649be, _0x770610 = {}) {
|
|
502
|
+
const _0x22fe88 = {
|
|
503
|
+
_0x1cd692: 0x1bd,
|
|
504
|
+
_0x2de30c: 0x1b2,
|
|
505
|
+
_0x579e7a: 0x162,
|
|
506
|
+
_0x21a15b: 0x214
|
|
507
|
+
}, _0x6f7011 = _0x456b7e;
|
|
508
|
+
if (!_0x5e0a8c[_0x6f7011(_0x22fe88._0x1cd692)](_0x4649be))
|
|
509
|
+
throw new Error(_0x6f7011(_0x22fe88._0x2de30c));
|
|
510
|
+
const _0x509e53 = await stat(_0x4649be)['catch'](() => null);
|
|
511
|
+
if (!_0x509e53 || !_0x509e53[_0x6f7011(0xd4)]())
|
|
512
|
+
throw new Error('File\x20not\x20found:\x20' + _0x4649be);
|
|
513
|
+
const _0x4bcc62 = _0x770610['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
514
|
+
if (_0x509e53['size'] > _0x4bcc62)
|
|
515
|
+
throw new Error(_0x6f7011(_0x22fe88._0x579e7a) + _0x509e53[_0x6f7011(0x18d)]);
|
|
516
|
+
const _0x575a15 = await readFile(_0x4649be), _0x40021c = _0x5e0a8c[_0x6f7011(0x1f1)](_0x4649be);
|
|
517
|
+
return {
|
|
518
|
+
'contentBase64': _0x575a15[_0x6f7011(0x119)](_0x6f7011(_0x22fe88._0x21a15b)),
|
|
519
|
+
'contentType': guessContentType(_0x40021c),
|
|
520
|
+
'filename': _0x40021c,
|
|
521
|
+
'sizeBytes': _0x509e53['size']
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
function createAttachmentCache(_0x410eff = {}) {
|
|
525
|
+
const _0x2dbad2 = { _0x472676: 0x25a }, _0x3af1ad = {
|
|
526
|
+
_0x96dd98: 0x112,
|
|
527
|
+
_0x556c6d: 0x1aa,
|
|
528
|
+
_0x7ab7aa: 0x155,
|
|
529
|
+
_0x44e783: 0x170,
|
|
530
|
+
_0x5e4815: 0x194
|
|
531
|
+
}, _0x3b27f8 = _0x456b7e, _0x2a0b95 = _0x410eff['cacheDir'] ?? _0x5e0a8c['join'](homedir(), _0x3b27f8(_0x2dbad2._0x472676), 'attachments');
|
|
532
|
+
return {
|
|
533
|
+
'cacheDir': _0x2a0b95,
|
|
534
|
+
async 'findCachedPath'(_0x1e0d3b) {
|
|
535
|
+
const _0x1bd7c9 = _0x3b27f8;
|
|
536
|
+
await mkdir(_0x2a0b95, { 'recursive': !![] });
|
|
537
|
+
const _0x1a1eab = await readdir(_0x2a0b95), _0x3cdc8c = _0x1a1eab[_0x1bd7c9(0x147)](_0x540eb9 => _0x540eb9[_0x1bd7c9(0x101)](_0x1e0d3b + '-') || _0x540eb9[_0x1bd7c9(0x101)](_0x1e0d3b));
|
|
538
|
+
return _0x3cdc8c ? _0x5e0a8c[_0x1bd7c9(0x170)](_0x2a0b95, _0x3cdc8c) : null;
|
|
539
|
+
},
|
|
540
|
+
async 'save'(_0x353f30) {
|
|
541
|
+
const _0x24a213 = _0x3b27f8;
|
|
542
|
+
await mkdir(_0x2a0b95, { 'recursive': !![] });
|
|
543
|
+
const _0x3f7f29 = _0x353f30['originalFilename']?.[_0x24a213(_0x3af1ad._0x96dd98)]() ? safeFilename(_0x353f30[_0x24a213(_0x3af1ad._0x556c6d)]) : '' + _0x353f30[_0x24a213(0x113)] + extensionFor(_0x353f30[_0x24a213(_0x3af1ad._0x7ab7aa)]), _0x400198 = _0x5e0a8c[_0x24a213(_0x3af1ad._0x44e783)](_0x2a0b95, _0x353f30[_0x24a213(0x113)] + '-' + _0x3f7f29);
|
|
544
|
+
return await writeFile(_0x400198, _0x353f30[_0x24a213(_0x3af1ad._0x5e4815)]), _0x400198;
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
import {
|
|
549
|
+
createHash,
|
|
550
|
+
randomUUID
|
|
551
|
+
} from 'node:crypto';
|
|
552
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x456b7e(0x1f6);
|
|
553
|
+
function ensureSegment(_0x2508a5) {
|
|
554
|
+
const _0x2be46e = _0x2508a5['trim']();
|
|
555
|
+
if (!_0x2be46e || _0x2be46e['includes'](':'))
|
|
556
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
557
|
+
return _0x2be46e;
|
|
558
|
+
}
|
|
559
|
+
function parseThreadParts(_0x3947c9) {
|
|
560
|
+
const _0x223613 = { _0x4e03dc: 0x124 }, _0x1649ca = _0x456b7e, _0x31bd94 = _0x3947c9[_0x1649ca(_0x223613._0x4e03dc)](':');
|
|
561
|
+
if (_0x31bd94[_0x1649ca(0x14e)] < 0x1 || _0x31bd94['length'] > 0x2)
|
|
562
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
563
|
+
return {
|
|
564
|
+
'channelName': ensureSegment(_0x31bd94[0x0] ?? ''),
|
|
565
|
+
'threadShortId': _0x31bd94[0x1] ? ensureSegment(_0x31bd94[0x1]) : null
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
function parseTarget(_0x12756e) {
|
|
569
|
+
const _0x972455 = {
|
|
570
|
+
_0x343e82: 0x112,
|
|
571
|
+
_0x19e501: 0x205,
|
|
572
|
+
_0x3c2520: 0x1bf,
|
|
573
|
+
_0x63164b: 0x1bf,
|
|
574
|
+
_0x5a18f8: 0x205,
|
|
575
|
+
_0x441f3d: 0xd0,
|
|
576
|
+
_0xc94f7c: 0x16c
|
|
577
|
+
}, _0x480b36 = _0x456b7e, _0x2ae23e = _0x12756e[_0x480b36(_0x972455._0x343e82)]();
|
|
578
|
+
if (!_0x2ae23e)
|
|
579
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
580
|
+
if (_0x2ae23e['startsWith']('#')) {
|
|
581
|
+
const _0x4bfb23 = parseThreadParts(_0x2ae23e[_0x480b36(_0x972455._0x19e501)](0x1)), _0x37b6d8 = '#' + _0x4bfb23[_0x480b36(_0x972455._0x3c2520)];
|
|
582
|
+
if (!_0x4bfb23['threadShortId'])
|
|
583
|
+
return {
|
|
584
|
+
'channelName': _0x4bfb23[_0x480b36(0x1bf)],
|
|
585
|
+
'channelTarget': _0x37b6d8,
|
|
586
|
+
'kind': _0x480b36(0x1ad),
|
|
587
|
+
'target': _0x37b6d8
|
|
588
|
+
};
|
|
589
|
+
return {
|
|
590
|
+
'channelName': _0x4bfb23[_0x480b36(_0x972455._0x63164b)],
|
|
591
|
+
'channelTarget': _0x37b6d8,
|
|
592
|
+
'kind': 'thread',
|
|
593
|
+
'target': _0x37b6d8 + ':' + _0x4bfb23[_0x480b36(0x16c)],
|
|
594
|
+
'threadShortId': _0x4bfb23[_0x480b36(0x16c)]
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
if (_0x2ae23e[_0x480b36(0x101)]('dm:')) {
|
|
598
|
+
const _0x477d71 = parseThreadParts(_0x2ae23e[_0x480b36(_0x972455._0x5a18f8)](0x3));
|
|
599
|
+
if (!_0x477d71[_0x480b36(0x1bf)]['startsWith'](_0x480b36(0x148)))
|
|
600
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
601
|
+
const _0x56336d = _0x480b36(_0x972455._0x441f3d) + _0x477d71['channelName'];
|
|
602
|
+
if (!_0x477d71[_0x480b36(_0x972455._0xc94f7c)])
|
|
603
|
+
return {
|
|
604
|
+
'channelName': _0x477d71[_0x480b36(_0x972455._0x3c2520)],
|
|
605
|
+
'channelTarget': _0x56336d,
|
|
606
|
+
'kind': 'channel',
|
|
607
|
+
'target': _0x56336d
|
|
608
|
+
};
|
|
609
|
+
return {
|
|
610
|
+
'channelName': _0x477d71[_0x480b36(_0x972455._0x3c2520)],
|
|
611
|
+
'channelTarget': _0x56336d,
|
|
612
|
+
'kind': _0x480b36(0x151),
|
|
613
|
+
'target': _0x56336d + ':' + _0x477d71[_0x480b36(0x16c)],
|
|
614
|
+
'threadShortId': _0x477d71[_0x480b36(0x16c)]
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
618
|
+
}
|
|
619
|
+
function asErrorMessage(_0x25a1f2, _0x44f9b5) {
|
|
620
|
+
const _0x2f1c8c = _0x456b7e;
|
|
621
|
+
if (typeof _0x25a1f2 === _0x2f1c8c(0x107) && _0x25a1f2[_0x2f1c8c(0x112)]())
|
|
622
|
+
return _0x25a1f2;
|
|
623
|
+
return _0x44f9b5;
|
|
624
|
+
}
|
|
625
|
+
function asRecord(_0x1f7d12) {
|
|
626
|
+
return typeof _0x1f7d12 === 'object' && _0x1f7d12 !== null ? _0x1f7d12 : {};
|
|
627
|
+
}
|
|
628
|
+
function stableStringify(_0x50e3c2) {
|
|
629
|
+
const _0x56fe94 = {
|
|
630
|
+
_0x367391: 0x241,
|
|
631
|
+
_0x3a5c42: 0x170,
|
|
632
|
+
_0x2b1ac8: 0xea,
|
|
633
|
+
_0x4f885c: 0x230,
|
|
634
|
+
_0x2623ac: 0x227
|
|
635
|
+
}, _0x17285d = _0x456b7e;
|
|
636
|
+
if (_0x50e3c2 === null || typeof _0x50e3c2 !== _0x17285d(0x1de))
|
|
637
|
+
return JSON[_0x17285d(0x246)](_0x50e3c2);
|
|
638
|
+
if (Array['isArray'](_0x50e3c2))
|
|
639
|
+
return '[' + _0x50e3c2[_0x17285d(_0x56fe94._0x367391)](_0x453534 => stableStringify(_0x453534))[_0x17285d(_0x56fe94._0x3a5c42)](',') + ']';
|
|
640
|
+
const _0x4bd426 = Object[_0x17285d(_0x56fe94._0x2b1ac8)](_0x50e3c2)[_0x17285d(_0x56fe94._0x4f885c)](([, _0x62ee06]) => _0x62ee06 !== void 0x0)[_0x17285d(_0x56fe94._0x2623ac)](([_0x5eb0a3], [_0x3cd959]) => _0x5eb0a3[_0x17285d(0x14b)](_0x3cd959))['map'](([_0x2ae78e, _0x42fea9]) => JSON[_0x17285d(0x246)](_0x2ae78e) + ':' + stableStringify(_0x42fea9));
|
|
641
|
+
return '{' + _0x4bd426['join'](',') + '}';
|
|
642
|
+
}
|
|
643
|
+
function createHeaders(_0x3c36c8) {
|
|
644
|
+
return {
|
|
645
|
+
'Content-Type': 'application/json',
|
|
646
|
+
'x-daemon-api-key': _0x3c36c8
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
function toHttpBaseUrl(_0x3c51ca) {
|
|
650
|
+
const _0x45e84e = {
|
|
651
|
+
_0x2a98bc: 0x1fa,
|
|
652
|
+
_0x28fbf0: 0x165,
|
|
653
|
+
_0x185a89: 0x226
|
|
654
|
+
}, _0x3c9eb6 = _0x456b7e, _0x1ae353 = new URL(_0x3c51ca);
|
|
655
|
+
if (_0x1ae353[_0x3c9eb6(0x24d)] === _0x3c9eb6(_0x45e84e._0x2a98bc))
|
|
656
|
+
_0x1ae353[_0x3c9eb6(0x24d)] = _0x3c9eb6(0x22e);
|
|
657
|
+
else
|
|
658
|
+
_0x1ae353[_0x3c9eb6(0x24d)] === _0x3c9eb6(_0x45e84e._0x28fbf0) && (_0x1ae353[_0x3c9eb6(0x24d)] = _0x3c9eb6(_0x45e84e._0x185a89));
|
|
659
|
+
return _0x1ae353['toString']()[_0x3c9eb6(0x1d5)](/\/$/, '');
|
|
660
|
+
}
|
|
661
|
+
function isMentionBoundary(_0xfacc0) {
|
|
662
|
+
const _0x3004d9 = { _0x5bd2f1: 0x139 }, _0x3f6d9e = _0x456b7e;
|
|
663
|
+
return !_0xfacc0 || /\s|[([{'",。!?、:;]/[_0x3f6d9e(_0x3004d9._0x5bd2f1)](_0xfacc0);
|
|
664
|
+
}
|
|
665
|
+
function isMentionTerminal(_0x29aaaa) {
|
|
666
|
+
const _0x5cda7e = _0x456b7e;
|
|
667
|
+
return !_0x29aaaa || /\s|[)\]}'",。!?、:;,.!?]/[_0x5cda7e(0x139)](_0x29aaaa);
|
|
668
|
+
}
|
|
669
|
+
function buildMatchableEntries(_0x349454) {
|
|
670
|
+
const _0xa6afbb = {
|
|
671
|
+
_0xc07333: 0x25c,
|
|
672
|
+
_0x4dd5f6: 0x255,
|
|
673
|
+
_0x462c68: 0x1df,
|
|
674
|
+
_0x4fc327: 0x1d9,
|
|
675
|
+
_0xb653b8: 0x1f4
|
|
676
|
+
}, _0x33c08f = _0x456b7e, _0x5e1a73 = [];
|
|
677
|
+
for (const _0x5b2500 of [
|
|
678
|
+
..._0x349454[_0x33c08f(_0xa6afbb._0xc07333)],
|
|
679
|
+
..._0x349454[_0x33c08f(_0xa6afbb._0x4dd5f6)]
|
|
680
|
+
]) {
|
|
681
|
+
_0x5e1a73['push']({
|
|
682
|
+
'matchName': _0x5b2500[_0x33c08f(0x1df)],
|
|
683
|
+
'matchNameLower': _0x5b2500[_0x33c08f(0x1df)][_0x33c08f(0x1f4)](),
|
|
684
|
+
'participantId': _0x5b2500['id']
|
|
685
|
+
}), _0x5b2500['id'] !== _0x5b2500[_0x33c08f(_0xa6afbb._0x462c68)] && _0x5e1a73[_0x33c08f(_0xa6afbb._0x4fc327)]({
|
|
686
|
+
'matchName': _0x5b2500['id'],
|
|
687
|
+
'matchNameLower': _0x5b2500['id'][_0x33c08f(_0xa6afbb._0xb653b8)](),
|
|
688
|
+
'participantId': _0x5b2500['id']
|
|
689
|
+
});
|
|
690
|
+
}
|
|
691
|
+
return _0x5e1a73;
|
|
692
|
+
}
|
|
693
|
+
function extractMentionedParticipantIds(_0x7b59fa, _0x4cd596) {
|
|
694
|
+
const _0x3b13b7 = {
|
|
695
|
+
_0x3ef6aa: 0x147,
|
|
696
|
+
_0x390614: 0xe9,
|
|
697
|
+
_0x413a1b: 0x1d9,
|
|
698
|
+
_0x296e70: 0x14e
|
|
699
|
+
}, _0x198080 = { _0x46b23d: 0x14e }, _0x4eb0a8 = _0x456b7e, _0x4f3575 = buildMatchableEntries(_0x4cd596)['sort']((_0x3fd28d, _0x498af4) => _0x498af4[_0x4eb0a8(0x256)]['length'] - _0x3fd28d['matchName'][_0x4eb0a8(0x14e)]), _0x517f70 = [], _0x438c51 = new Set();
|
|
700
|
+
for (let _0x2d2efb = 0x0; _0x2d2efb < _0x7b59fa['length']; _0x2d2efb += 0x1) {
|
|
701
|
+
if (_0x7b59fa[_0x2d2efb] !== '@' || !isMentionBoundary(_0x7b59fa[_0x2d2efb - 0x1]))
|
|
702
|
+
continue;
|
|
703
|
+
const _0x3a7fc6 = _0x7b59fa[_0x4eb0a8(0x205)](_0x2d2efb + 0x1), _0xaca8d0 = _0x3a7fc6['toLocaleLowerCase'](), _0x14ff56 = _0x4f3575[_0x4eb0a8(_0x3b13b7._0x3ef6aa)](_0x1dbc52 => {
|
|
704
|
+
const _0x1e2ded = _0x4eb0a8;
|
|
705
|
+
if (!_0xaca8d0['startsWith'](_0x1dbc52['matchNameLower']))
|
|
706
|
+
return ![];
|
|
707
|
+
return isMentionTerminal(_0x3a7fc6[_0x1dbc52[_0x1e2ded(0x256)][_0x1e2ded(_0x198080._0x46b23d)]]);
|
|
708
|
+
});
|
|
709
|
+
if (!_0x14ff56 || _0x438c51[_0x4eb0a8(0x127)](_0x14ff56[_0x4eb0a8(0x1dc)]))
|
|
710
|
+
continue;
|
|
711
|
+
_0x438c51[_0x4eb0a8(_0x3b13b7._0x390614)](_0x14ff56[_0x4eb0a8(0x1dc)]), _0x517f70[_0x4eb0a8(_0x3b13b7._0x413a1b)](_0x14ff56[_0x4eb0a8(0x1dc)]), _0x2d2efb += _0x14ff56['matchName'][_0x4eb0a8(_0x3b13b7._0x296e70)];
|
|
712
|
+
}
|
|
713
|
+
return _0x517f70;
|
|
714
|
+
}
|
|
715
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
716
|
+
function anySignal(..._0x954f57) {
|
|
717
|
+
const _0x19e352 = {
|
|
718
|
+
_0x69003d: 0x21f,
|
|
719
|
+
_0x47326e: 0x12d
|
|
720
|
+
}, _0x124d11 = _0x456b7e, _0x3eb3d4 = new AbortController();
|
|
721
|
+
for (const _0x320c7c of _0x954f57) {
|
|
722
|
+
if (_0x320c7c['aborted'])
|
|
723
|
+
return _0x3eb3d4['abort'](_0x320c7c[_0x124d11(_0x19e352._0x69003d)]), _0x3eb3d4[_0x124d11(0xec)];
|
|
724
|
+
_0x320c7c[_0x124d11(0xe2)](_0x124d11(_0x19e352._0x47326e), () => _0x3eb3d4['abort'](_0x320c7c[_0x124d11(0x21f)]), {
|
|
725
|
+
'once': !![],
|
|
726
|
+
'signal': _0x3eb3d4[_0x124d11(0xec)]
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
return _0x3eb3d4[_0x124d11(0xec)];
|
|
730
|
+
}
|
|
731
|
+
function createInternalAgentClient(_0x22da77) {
|
|
732
|
+
const _0x48cf49 = {
|
|
733
|
+
_0x18c1ce: 0x1a3,
|
|
734
|
+
_0x1fa8c2: 0x1f2,
|
|
735
|
+
_0x5bd7f: 0x1dd,
|
|
736
|
+
_0x13ad1b: 0x138,
|
|
737
|
+
_0xa0510: 0x1dd,
|
|
738
|
+
_0x138bab: 0x112,
|
|
739
|
+
_0x14b673: 0x112,
|
|
740
|
+
_0x1bc126: 0x235
|
|
741
|
+
}, _0x1a2549 = {
|
|
742
|
+
_0x4d9789: 0x13b,
|
|
743
|
+
_0x4eebe5: 0x119,
|
|
744
|
+
_0x1f03ce: 0x194,
|
|
745
|
+
_0xc9df62: 0x14e,
|
|
746
|
+
_0x3d6a58: 0x210,
|
|
747
|
+
_0x398127: 0x14e,
|
|
748
|
+
_0x22285a: 0x210,
|
|
749
|
+
_0x1837b0: 0x241,
|
|
750
|
+
_0x3021a4: 0x19e,
|
|
751
|
+
_0x7ce193: 0x107,
|
|
752
|
+
_0x16bed0: 0x22a,
|
|
753
|
+
_0x3bfad3: 0x110,
|
|
754
|
+
_0x39042c: 0x138,
|
|
755
|
+
_0x5b9177: 0xdb,
|
|
756
|
+
_0x481b29: 0xea,
|
|
757
|
+
_0x3ca445: 0x16e,
|
|
758
|
+
_0xc2696b: 0x14e,
|
|
759
|
+
_0x1b5992: 0x133,
|
|
760
|
+
_0x5d806e: 0x15f,
|
|
761
|
+
_0x16f984: 0xfb,
|
|
762
|
+
_0x3ec109: 0x10b,
|
|
763
|
+
_0x34e36e: 0x1d7,
|
|
764
|
+
_0x3b8322: 0x107,
|
|
765
|
+
_0x2a32b0: 0x140,
|
|
766
|
+
_0x1112b1: 0xfb,
|
|
767
|
+
_0x2318cd: 0x18c,
|
|
768
|
+
_0x58eb92: 0x230
|
|
769
|
+
}, _0x12c760 = { _0x271fe3: 0xfc }, _0x1580fe = { _0x457f3d: 0x248 }, _0x232ef2 = { _0x474d32: 0x17c }, _0x1d8447 = {
|
|
770
|
+
_0x15049d: 0x204,
|
|
771
|
+
_0x1acfa6: 0xec,
|
|
772
|
+
_0x24a279: 0x155,
|
|
773
|
+
_0x482f7e: 0x185,
|
|
774
|
+
_0xd1b77f: 0x209,
|
|
775
|
+
_0x191628: 0xcf,
|
|
776
|
+
_0x77befc: 0x105,
|
|
777
|
+
_0x182958: 0x201,
|
|
778
|
+
_0x264b1d: 0x194,
|
|
779
|
+
_0x6de49b: 0x1aa
|
|
780
|
+
}, _0x4967e2 = {
|
|
781
|
+
_0x29cd00: 0x1ad,
|
|
782
|
+
_0x4713d9: 0x19e,
|
|
783
|
+
_0x30d7c1: 0x17c,
|
|
784
|
+
_0x1f836c: 0xeb,
|
|
785
|
+
_0x5cd57f: 0x246,
|
|
786
|
+
_0x4fc942: 0x10d,
|
|
787
|
+
_0x4c11ca: 0x1f0,
|
|
788
|
+
_0x5bb9fd: 0x194
|
|
789
|
+
}, _0x2e860b = {
|
|
790
|
+
_0x496462: 0x17c,
|
|
791
|
+
_0x1bb94c: 0x135
|
|
792
|
+
}, _0x3e5d58 = { _0x291fc2: 0x1f0 }, _0x19fd52 = { _0x18317a: 0xe3 }, _0x3e9ffe = {
|
|
793
|
+
_0x1b2ece: 0xe3,
|
|
794
|
+
_0x16152b: 0x246
|
|
795
|
+
}, _0x49f58d = {
|
|
796
|
+
_0x82cb80: 0x13b,
|
|
797
|
+
_0x4d826f: 0x1ad,
|
|
798
|
+
_0x5c97d9: 0xe3,
|
|
799
|
+
_0x3324eb: 0x17c,
|
|
800
|
+
_0x3ec6f8: 0x169
|
|
801
|
+
}, _0x494c4a = { _0x482e09: 0x188 }, _0x488671 = {
|
|
802
|
+
_0x3e0deb: 0x187,
|
|
803
|
+
_0x1436d1: 0x1f0
|
|
804
|
+
}, _0x453fdc = {
|
|
805
|
+
_0x335bbd: 0x246,
|
|
806
|
+
_0x358f32: 0x1f0
|
|
807
|
+
}, _0x35376a = { _0x23122d: 0x204 }, _0x4a3eb5 = {
|
|
808
|
+
_0x2a59c3: 0x1e8,
|
|
809
|
+
_0x9d8f0d: 0xfa,
|
|
810
|
+
_0x28b368: 0x16a,
|
|
811
|
+
_0x3fab6d: 0x194
|
|
812
|
+
}, _0x54d3dd = {
|
|
813
|
+
_0x1dbee7: 0x13b,
|
|
814
|
+
_0x54bea5: 0x19e,
|
|
815
|
+
_0x40f490: 0x13b,
|
|
816
|
+
_0x487c5d: 0x17d,
|
|
817
|
+
_0x3a94b3: 0x154,
|
|
818
|
+
_0x22296d: 0x248,
|
|
819
|
+
_0x38964b: 0xe3,
|
|
820
|
+
_0x313cf1: 0x241
|
|
821
|
+
}, _0x34bd91 = { _0x1f9ead: 0x136 }, _0x4c71b3 = {
|
|
822
|
+
_0xf57b6c: 0x1ee,
|
|
823
|
+
_0x45b5f7: 0x1dc,
|
|
824
|
+
_0xf14484: 0x136
|
|
825
|
+
}, _0x57c898 = {
|
|
826
|
+
_0x5727c2: 0xfb,
|
|
827
|
+
_0x46fb7e: 0x110,
|
|
828
|
+
_0x22ae58: 0x138,
|
|
829
|
+
_0x9bee94: 0x107,
|
|
830
|
+
_0x3376c4: 0x22a,
|
|
831
|
+
_0xa7cf45: 0x16c,
|
|
832
|
+
_0x51ef82: 0x16c,
|
|
833
|
+
_0x4b2e9b: 0x16c
|
|
834
|
+
}, _0x2e3021 = {
|
|
835
|
+
_0x57a099: 0x151,
|
|
836
|
+
_0x50b944: 0xf4,
|
|
837
|
+
_0x4562c4: 0x110,
|
|
838
|
+
_0x71dd1: 0x22a,
|
|
839
|
+
_0x3483cf: 0x101,
|
|
840
|
+
_0xacd7d8: 0x19e
|
|
841
|
+
}, _0x20f63b = {
|
|
842
|
+
_0x21ad8e: 0x110,
|
|
843
|
+
_0x2ae565: 0xf4,
|
|
844
|
+
_0x6297bf: 0x110,
|
|
845
|
+
_0xd80f27: 0xf4,
|
|
846
|
+
_0x40015d: 0x22a
|
|
847
|
+
}, _0x2a5557 = { _0x44dbc1: 0x1df }, _0x12f8aa = { _0x4def0e: 0xd9 }, _0x5f2f29 = { _0x54ded0: 0xd8 }, _0x265767 = {
|
|
848
|
+
_0x129138: 0xe3,
|
|
849
|
+
_0x170c57: 0x19c,
|
|
850
|
+
_0x479107: 0x194,
|
|
851
|
+
_0x44855c: 0x1a9,
|
|
852
|
+
_0x4a56c9: 0x110
|
|
853
|
+
}, _0x34f57f = {
|
|
854
|
+
_0x2c8453: 0x12e,
|
|
855
|
+
_0x13f475: 0x246,
|
|
856
|
+
_0x34692c: 0xf7,
|
|
857
|
+
_0x20218d: 0x1e6
|
|
858
|
+
}, _0x4201c0 = {
|
|
859
|
+
_0x6df4ea: 0x199,
|
|
860
|
+
_0x169c48: 0x246
|
|
861
|
+
}, _0x48c845 = { _0x3568e5: 0xec }, _0x16aa2b = {
|
|
862
|
+
_0xdd9171: 0xec,
|
|
863
|
+
_0x2a7a8c: 0x141,
|
|
864
|
+
_0x5d8056: 0x1e6
|
|
865
|
+
}, _0x1eae32 = {
|
|
866
|
+
_0x1330ac: 0x15c,
|
|
867
|
+
_0x37f91b: 0x21e,
|
|
868
|
+
_0x229dc2: 0x186,
|
|
869
|
+
_0x38ac0e: 0x171,
|
|
870
|
+
_0x79dcee: 0x13b
|
|
871
|
+
}, _0x374fa = {
|
|
872
|
+
_0x1765a5: 0x105,
|
|
873
|
+
_0x55ee33: 0x201,
|
|
874
|
+
_0x1c691b: 0x119
|
|
875
|
+
}, _0x5a9137 = {
|
|
876
|
+
_0x141560: 0x17f,
|
|
877
|
+
_0x279cf5: 0x13e,
|
|
878
|
+
_0x408c27: 0x23e,
|
|
879
|
+
_0x4ef87e: 0x205,
|
|
880
|
+
_0x4bb7c4: 0x22f,
|
|
881
|
+
_0x55dbec: 0xee,
|
|
882
|
+
_0x57b197: 0x1ed
|
|
883
|
+
}, _0x405dcc = _0x456b7e, _0x6fd199 = _0x22da77[_0x405dcc(_0x48cf49._0x18c1ce)] ?? fetch, _0x5cd833 = _0x22da77[_0x405dcc(_0x48cf49._0x1fa8c2)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x14a5ea = typeof _0x22da77[_0x405dcc(_0x48cf49._0x5bd7f)] === _0x405dcc(_0x48cf49._0x13ad1b) && _0x22da77[_0x405dcc(_0x48cf49._0x5bd7f)] > 0x0 ? _0x22da77[_0x405dcc(_0x48cf49._0xa0510)] : 0x0, _0xdc2cf4 = _0x22da77['daemonLocalUrl']?.[_0x405dcc(_0x48cf49._0x138bab)]() || void 0x0, _0x20a56a = _0x22da77['sessionId']?.[_0x405dcc(_0x48cf49._0x14b673)]() || void 0x0, _0x3ce451 = _0x22da77['workerModeEnabled'] === !![], _0x6cd872 = _0x22da77[_0x405dcc(_0x48cf49._0x1bc126)]?.[_0x405dcc(0x112)]() || void 0x0, _0x43077e = _0x22da77['workerThreadTarget']?.[_0x405dcc(0x112)]() || void 0x0, _0x8e7adf = createHeaders(_0x22da77[_0x405dcc(0x173)]), _0x2ce03a = toHttpBaseUrl(_0x22da77[_0x405dcc(0x163)]);
|
|
884
|
+
let _0x38c2b9 = null;
|
|
885
|
+
const _0x51569e = new Map();
|
|
886
|
+
let _0x47f847 = _0x14a5ea, _0x3eeaec = _0x14a5ea;
|
|
887
|
+
function _0x5bba8b(_0x2e5c7a) {
|
|
888
|
+
const _0x44ae97 = _0x405dcc, _0x9f9d4 = _0x2e5c7a[_0x44ae97(_0x5a9137._0x141560)][_0x44ae97(0x185)]['get']('content-type') ?? _0x44ae97(_0x5a9137._0x279cf5), _0x33dc48 = _0x2e5c7a[_0x44ae97(_0x5a9137._0x408c27)]['trim']()[_0x44ae97(0x1d5)](/\s+/g, '\x20')[_0x44ae97(_0x5a9137._0x4ef87e)](0x0, 0x78) || _0x44ae97(0x1e2);
|
|
889
|
+
return _0x44ae97(0x1f9) + _0x2e5c7a[_0x44ae97(_0x5a9137._0x4bb7c4)] + _0x44ae97(_0x5a9137._0x55dbec) + _0x2e5c7a['response']['status'] + _0x44ae97(0xdc) + _0x9f9d4 + _0x44ae97(0x143) + _0x33dc48 + _0x44ae97(_0x5a9137._0x57b197);
|
|
890
|
+
}
|
|
891
|
+
async function _0x4001ba(_0x2b5285, _0x88bb18) {
|
|
892
|
+
const _0x5dde2d = _0x405dcc, _0x4fd659 = Buffer[_0x5dde2d(_0x374fa._0x1765a5)](await _0x88bb18[_0x5dde2d(_0x374fa._0x55ee33)]())[_0x5dde2d(_0x374fa._0x1c691b)](_0x5dde2d(0x181));
|
|
893
|
+
if (!_0x4fd659['trim']())
|
|
894
|
+
return {};
|
|
895
|
+
try {
|
|
896
|
+
return JSON[_0x5dde2d(0xfe)](_0x4fd659);
|
|
897
|
+
} catch {
|
|
898
|
+
throw new Error(_0x5bba8b({
|
|
899
|
+
'bodyText': _0x4fd659,
|
|
900
|
+
'requestUrl': _0x2b5285,
|
|
901
|
+
'response': _0x88bb18
|
|
902
|
+
}));
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
function _0x22349d(_0x31e821, _0x5ef47d) {
|
|
906
|
+
const _0x4e21c0 = _0x405dcc, _0xdcca7c = typeof _0x5ef47d[_0x4e21c0(0x1a7)] === _0x4e21c0(0x107) ? _0x5ef47d[_0x4e21c0(0x1a7)][_0x4e21c0(0x112)]() : '';
|
|
907
|
+
if (_0xdcca7c)
|
|
908
|
+
return _0xdcca7c;
|
|
909
|
+
const _0x471772 = Date[_0x4e21c0(0x245)]();
|
|
910
|
+
for (const [_0x5959af, _0x441a1b] of _0x51569e) {
|
|
911
|
+
_0x441a1b[_0x4e21c0(0x202)] <= _0x471772 && _0x51569e[_0x4e21c0(_0x1eae32._0x1330ac)](_0x5959af);
|
|
912
|
+
}
|
|
913
|
+
const _0x1fe8d5 = {
|
|
914
|
+
..._0x5ef47d,
|
|
915
|
+
'idempotency_key': void 0x0
|
|
916
|
+
}, _0x469af7 = createHash('sha256')['update'](_0x31e821 + ':' + stableStringify(_0x1fe8d5))[_0x4e21c0(_0x1eae32._0x37f91b)](_0x4e21c0(0x159)), _0x318880 = _0x31e821 + ':' + _0x469af7, _0x203072 = _0x51569e[_0x4e21c0(0x209)](_0x318880);
|
|
917
|
+
if (_0x203072)
|
|
918
|
+
return _0x203072[_0x4e21c0(_0x1eae32._0x229dc2)];
|
|
919
|
+
const _0x376a48 = _0x4e21c0(_0x1eae32._0x38ac0e) + _0x31e821 + ':' + randomUUID();
|
|
920
|
+
return _0x51569e[_0x4e21c0(_0x1eae32._0x79dcee)](_0x318880, {
|
|
921
|
+
'expiresAt': _0x471772 + 0x5 * 0x3c * 0x3e8,
|
|
922
|
+
'value': _0x376a48
|
|
923
|
+
}), _0x376a48;
|
|
924
|
+
}
|
|
925
|
+
async function _0x1ea43(_0x14bec2, _0x23ffa5) {
|
|
926
|
+
const _0x12ac70 = _0x405dcc, _0x3e56df = new AbortController(), _0x3b24cf = setTimeout(() => _0x3e56df[_0x12ac70(0x12d)](), _0x5cd833), _0x22d5ae = _0x23ffa5?.['signal'] ? anySignal(_0x23ffa5[_0x12ac70(_0x16aa2b._0xdd9171)], _0x3e56df[_0x12ac70(0xec)]) : _0x3e56df[_0x12ac70(_0x16aa2b._0xdd9171)], _0x6b5264 = '' + _0x2ce03a + _0x14bec2;
|
|
927
|
+
try {
|
|
928
|
+
const _0x1d0a68 = await _0x6fd199(_0x6b5264, {
|
|
929
|
+
..._0x23ffa5,
|
|
930
|
+
'signal': _0x22d5ae
|
|
931
|
+
}), _0x24a4ca = await _0x4001ba(_0x6b5264, _0x1d0a68);
|
|
932
|
+
if (!_0x1d0a68['ok'] || _0x24a4ca[_0x12ac70(0x142)] === ![])
|
|
933
|
+
throw new Error(asErrorMessage(_0x24a4ca[_0x12ac70(_0x16aa2b._0x2a7a8c)], _0x12ac70(_0x16aa2b._0x5d8056) + _0x1d0a68[_0x12ac70(0x1b3)]));
|
|
934
|
+
return _0x24a4ca;
|
|
935
|
+
} finally {
|
|
936
|
+
clearTimeout(_0x3b24cf);
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
async function _0x6634a8(_0x917a2c, _0x40dfd2) {
|
|
940
|
+
const _0x526adc = _0x405dcc, _0x102334 = new AbortController(), _0x505023 = setTimeout(() => _0x102334['abort'](), _0x5cd833), _0x1df4ca = _0x40dfd2?.['signal'] ? anySignal(_0x40dfd2['signal'], _0x102334[_0x526adc(0xec)]) : _0x102334[_0x526adc(_0x48c845._0x3568e5)], _0x2afa99 = '' + _0x2ce03a + _0x917a2c;
|
|
941
|
+
try {
|
|
942
|
+
const _0x513668 = await _0x6fd199(_0x2afa99, {
|
|
943
|
+
..._0x40dfd2,
|
|
944
|
+
'signal': _0x1df4ca
|
|
945
|
+
}), _0x3740dd = await _0x4001ba(_0x2afa99, _0x513668);
|
|
946
|
+
if (!_0x513668['ok'])
|
|
947
|
+
throw new Error(asErrorMessage(_0x3740dd['error'], _0x526adc(0x1e6) + _0x513668[_0x526adc(0x1b3)]));
|
|
948
|
+
return _0x3740dd;
|
|
949
|
+
} finally {
|
|
950
|
+
clearTimeout(_0x505023);
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
async function _0x822bee(_0x5446bc) {
|
|
954
|
+
const _0x5509ab = _0x405dcc;
|
|
955
|
+
if (!_0x20a56a || _0x5446bc <= _0x3eeaec)
|
|
956
|
+
return;
|
|
957
|
+
await _0x1ea43(_0x5509ab(_0x4201c0._0x6df4ea) + encodeURIComponent(_0x20a56a) + _0x5509ab(0x1f5), {
|
|
958
|
+
'body': JSON[_0x5509ab(_0x4201c0._0x169c48)]({ 'lastSeenSeq': _0x5446bc }),
|
|
959
|
+
'headers': _0x8e7adf,
|
|
960
|
+
'method': 'PATCH'
|
|
961
|
+
}), _0x3eeaec = _0x5446bc;
|
|
962
|
+
}
|
|
963
|
+
async function _0x2a383c(_0x2f4b91) {
|
|
964
|
+
const _0x31511b = _0x405dcc;
|
|
965
|
+
if (!_0xdc2cf4 || !_0x6cd872 || _0x2f4b91 <= _0x3eeaec)
|
|
966
|
+
return;
|
|
967
|
+
const _0x13b6d4 = await _0x6fd199(_0xdc2cf4 + _0x31511b(_0x34f57f._0x2c8453), {
|
|
968
|
+
'body': JSON[_0x31511b(_0x34f57f._0x13f475)]({
|
|
969
|
+
'last_seen_seq': _0x2f4b91,
|
|
970
|
+
'worker_session_id': _0x6cd872
|
|
971
|
+
}),
|
|
972
|
+
'headers': { 'Content-Type': _0x31511b(_0x34f57f._0x34692c) },
|
|
973
|
+
'method': 'POST'
|
|
974
|
+
});
|
|
975
|
+
if (!_0x13b6d4['ok'])
|
|
976
|
+
throw new Error(_0x31511b(_0x34f57f._0x20218d) + _0x13b6d4[_0x31511b(0x1b3)]);
|
|
977
|
+
_0x3eeaec = _0x2f4b91;
|
|
978
|
+
}
|
|
979
|
+
async function _0x4272c9(_0x118b7f) {
|
|
980
|
+
const _0x4bf3ba = _0x405dcc, _0x190279 = parseTarget(_0x118b7f), _0x3aaa67 = await _0x1ea43(_0x4bf3ba(_0x265767._0x129138) + _0x22da77[_0x4bf3ba(0x17c)] + _0x4bf3ba(_0x265767._0x170c57), {
|
|
981
|
+
'body': JSON[_0x4bf3ba(0x246)]({ 'target': _0x190279[_0x4bf3ba(0x1eb)] }),
|
|
982
|
+
'headers': _0x8e7adf,
|
|
983
|
+
'method': 'POST'
|
|
984
|
+
});
|
|
985
|
+
return {
|
|
986
|
+
'channelId': _0x3aaa67['data']?.['channelId'] ?? '',
|
|
987
|
+
'target': _0x190279['channelTarget'],
|
|
988
|
+
'task': _0x3aaa67[_0x4bf3ba(_0x265767._0x479107)]?.[_0x4bf3ba(_0x265767._0x44855c)],
|
|
989
|
+
'threadId': _0x3aaa67['data']?.[_0x4bf3ba(0x19e)],
|
|
990
|
+
'threadNumber': _0x3aaa67[_0x4bf3ba(_0x265767._0x479107)]?.[_0x4bf3ba(_0x265767._0x4a56c9)]
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
async function _0x1e92cf(_0xd8a05b = {}) {
|
|
994
|
+
const _0x4d9239 = {
|
|
995
|
+
_0x1d0f61: 0x17c,
|
|
996
|
+
_0x4473b5: 0x204,
|
|
997
|
+
_0x593cb1: 0x230,
|
|
998
|
+
_0x1cf596: 0x241,
|
|
999
|
+
_0x189094: 0x194,
|
|
1000
|
+
_0x2a6b6d: 0x158,
|
|
1001
|
+
_0x520699: 0x234,
|
|
1002
|
+
_0x36dfa6: 0x1df
|
|
1003
|
+
}, _0x130a50 = _0x405dcc;
|
|
1004
|
+
if (!_0xd8a05b[_0x130a50(0x179)] && _0x38c2b9)
|
|
1005
|
+
return _0x38c2b9;
|
|
1006
|
+
return _0x38c2b9 = (async () => {
|
|
1007
|
+
const _0x8f3ae1 = _0x130a50, _0x276559 = await _0x1ea43(_0x8f3ae1(0xe3) + _0x22da77[_0x8f3ae1(_0x4d9239._0x1d0f61)] + _0x8f3ae1(0x15a), {
|
|
1008
|
+
'headers': _0x8e7adf,
|
|
1009
|
+
'method': _0x8f3ae1(_0x4d9239._0x4473b5)
|
|
1010
|
+
}), _0x596c56 = _0x276559[_0x8f3ae1(0x194)]?.['members'] ?? [], _0x1e1723 = _0x596c56[_0x8f3ae1(_0x4d9239._0x593cb1)](_0x5303de => _0x5303de[_0x8f3ae1(0x136)]?.['type'] === 'agent')['map'](_0x30e9e5 => ({
|
|
1011
|
+
'id': _0x163d38(_0x30e9e5),
|
|
1012
|
+
'name': _0x5e3c84(_0x30e9e5)
|
|
1013
|
+
}))['filter'](_0x26884a => _0x26884a['id']), _0x14adaa = _0x596c56[_0x8f3ae1(_0x4d9239._0x593cb1)](_0x4a3e48 => _0x4a3e48[_0x8f3ae1(0x136)]?.['type'] !== _0x8f3ae1(0xd9))[_0x8f3ae1(_0x4d9239._0x1cf596)](_0x2345c2 => ({
|
|
1014
|
+
'id': _0x163d38(_0x2345c2),
|
|
1015
|
+
'name': _0x5e3c84(_0x2345c2)
|
|
1016
|
+
}))['filter'](_0x1fb43a => _0x1fb43a['id']), _0xdf3a2 = _0x276559[_0x8f3ae1(_0x4d9239._0x189094)]?.[_0x8f3ae1(_0x4d9239._0x2a6b6d)]['id'] ?? '';
|
|
1017
|
+
return {
|
|
1018
|
+
'agents': _0x1e1723,
|
|
1019
|
+
'channels': _0x276559[_0x8f3ae1(_0x4d9239._0x189094)]?.[_0x8f3ae1(_0x4d9239._0x520699)] ?? [],
|
|
1020
|
+
'humans': _0x14adaa,
|
|
1021
|
+
'serverId': _0xdf3a2,
|
|
1022
|
+
'serverName': _0x276559['data']?.[_0x8f3ae1(_0x4d9239._0x2a6b6d)][_0x8f3ae1(_0x4d9239._0x36dfa6)] ?? _0xdf3a2
|
|
1023
|
+
};
|
|
1024
|
+
})()[_0x130a50(_0x5f2f29._0x54ded0)](_0xa46707 => {
|
|
1025
|
+
_0x38c2b9 = null;
|
|
1026
|
+
throw _0xa46707;
|
|
1027
|
+
}), _0x38c2b9;
|
|
1028
|
+
}
|
|
1029
|
+
function _0x1a336a(_0x42d0fd, _0x5bcefb) {
|
|
1030
|
+
const _0x102630 = _0x405dcc;
|
|
1031
|
+
return _0x5bcefb[_0x102630(0x25c)][_0x102630(0xcd)](_0x48fa49 => _0x48fa49['id'] === _0x42d0fd || _0x48fa49['name'] === _0x42d0fd) ? _0x102630(_0x12f8aa._0x4def0e) : 'human';
|
|
1032
|
+
}
|
|
1033
|
+
function _0x1d6384(_0x2807df, _0x5b628a) {
|
|
1034
|
+
const _0x2ff8f0 = _0x405dcc, _0x5a7f52 = [
|
|
1035
|
+
..._0x5b628a[_0x2ff8f0(0x25c)],
|
|
1036
|
+
..._0x5b628a['humans']
|
|
1037
|
+
][_0x2ff8f0(0x147)](_0x22b9d9 => _0x22b9d9['id'] === _0x2807df);
|
|
1038
|
+
return _0x5a7f52?.[_0x2ff8f0(_0x2a5557._0x44dbc1)] ?? _0x2807df;
|
|
1039
|
+
}
|
|
1040
|
+
function _0x239605(_0x552493) {
|
|
1041
|
+
const _0x1da94b = _0x405dcc;
|
|
1042
|
+
if (_0x552493[_0x1da94b(_0x20f63b._0x21ad8e)] != null)
|
|
1043
|
+
return _0x552493[_0x1da94b(_0x20f63b._0x2ae565)] + ':t' + _0x552493[_0x1da94b(_0x20f63b._0x6297bf)];
|
|
1044
|
+
if (_0x552493[_0x1da94b(0x22a)])
|
|
1045
|
+
return _0x552493[_0x1da94b(_0x20f63b._0xd80f27)] + ':' + _0x552493[_0x1da94b(_0x20f63b._0x40015d)];
|
|
1046
|
+
if (_0x552493[_0x1da94b(0x19e)])
|
|
1047
|
+
return _0x552493['channelTarget'] + ':' + _0x552493[_0x1da94b(0x19e)]['slice'](0x0, 0x8);
|
|
1048
|
+
return _0x552493[_0x1da94b(0xf4)];
|
|
1049
|
+
}
|
|
1050
|
+
function _0x8d570(_0x2b0b3f, _0x4d0e40) {
|
|
1051
|
+
const _0x319cd6 = _0x405dcc;
|
|
1052
|
+
try {
|
|
1053
|
+
const _0x1c67a8 = parseTarget(_0x2b0b3f);
|
|
1054
|
+
if (_0x1c67a8[_0x319cd6(0xfb)] !== _0x319cd6(_0x2e3021._0x57a099) || _0x1c67a8[_0x319cd6(_0x2e3021._0x50b944)] !== _0x4d0e40['channelTarget'])
|
|
1055
|
+
return ![];
|
|
1056
|
+
if (_0x4d0e40[_0x319cd6(0x110)] != null && _0x1c67a8['threadShortId'] === 't' + _0x4d0e40[_0x319cd6(_0x2e3021._0x4562c4)])
|
|
1057
|
+
return !![];
|
|
1058
|
+
if (_0x4d0e40[_0x319cd6(0x22a)])
|
|
1059
|
+
return _0x1c67a8[_0x319cd6(0x16c)] === _0x4d0e40[_0x319cd6(_0x2e3021._0x71dd1)] || _0x4d0e40[_0x319cd6(0x22a)][_0x319cd6(_0x2e3021._0x3483cf)](_0x1c67a8[_0x319cd6(0x16c)]);
|
|
1060
|
+
if (_0x4d0e40[_0x319cd6(_0x2e3021._0xacd7d8)])
|
|
1061
|
+
return _0x1c67a8[_0x319cd6(0x16c)] === _0x4d0e40['threadId'] || _0x4d0e40[_0x319cd6(0x19e)][_0x319cd6(_0x2e3021._0x3483cf)](_0x1c67a8[_0x319cd6(0x16c)]);
|
|
1062
|
+
return ![];
|
|
1063
|
+
} catch {
|
|
1064
|
+
return ![];
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
function _0x824966(_0x364340, _0x16f326) {
|
|
1068
|
+
const _0x3b4e69 = _0x405dcc;
|
|
1069
|
+
try {
|
|
1070
|
+
const _0x3c1046 = parseTarget(_0x364340);
|
|
1071
|
+
if (_0x3c1046[_0x3b4e69(_0x57c898._0x5727c2)] !== 'thread')
|
|
1072
|
+
return ![];
|
|
1073
|
+
const _0x3ff9d1 = typeof _0x16f326[_0x3b4e69(_0x57c898._0x46fb7e)] === _0x3b4e69(_0x57c898._0x22ae58) && Number[_0x3b4e69(0x25f)](_0x16f326[_0x3b4e69(0x110)]) ? _0x16f326[_0x3b4e69(0x110)] : void 0x0;
|
|
1074
|
+
if (_0x3ff9d1 != null && _0x3c1046[_0x3b4e69(0x16c)] === 't' + _0x3ff9d1)
|
|
1075
|
+
return !![];
|
|
1076
|
+
const _0x568715 = typeof _0x16f326[_0x3b4e69(0x22a)] === _0x3b4e69(_0x57c898._0x9bee94) ? _0x16f326[_0x3b4e69(_0x57c898._0x3376c4)] : void 0x0;
|
|
1077
|
+
if (_0x568715)
|
|
1078
|
+
return _0x3c1046[_0x3b4e69(_0x57c898._0xa7cf45)] === _0x568715 || _0x568715['startsWith'](_0x3c1046[_0x3b4e69(_0x57c898._0x51ef82)]);
|
|
1079
|
+
const _0x73f9f0 = typeof _0x16f326[_0x3b4e69(0x19e)] === 'string' ? _0x16f326['threadId'] : void 0x0;
|
|
1080
|
+
return Boolean(_0x73f9f0) && (_0x3c1046[_0x3b4e69(_0x57c898._0x4b2e9b)] === _0x73f9f0 || _0x73f9f0[_0x3b4e69(0x101)](_0x3c1046[_0x3b4e69(_0x57c898._0x51ef82)]));
|
|
1081
|
+
} catch {
|
|
1082
|
+
return ![];
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
function _0x163d38(_0x317bf3) {
|
|
1086
|
+
const _0x20894e = _0x405dcc;
|
|
1087
|
+
return _0x317bf3[_0x20894e(_0x4c71b3._0xf57b6c)]?.[_0x20894e(_0x4c71b3._0x45b5f7)] ?? _0x317bf3[_0x20894e(_0x4c71b3._0xf14484)]?.['id'] ?? _0x317bf3[_0x20894e(0x1dc)] ?? '';
|
|
1088
|
+
}
|
|
1089
|
+
function _0x5e3c84(_0x2d80d1) {
|
|
1090
|
+
const _0x19abfe = _0x405dcc;
|
|
1091
|
+
return _0x2d80d1[_0x19abfe(_0x34bd91._0x1f9ead)]?.['name'] ?? _0x163d38(_0x2d80d1);
|
|
1092
|
+
}
|
|
1093
|
+
async function _0x23e564(_0x575ec0) {
|
|
1094
|
+
const _0x1c4913 = _0x405dcc, _0x2068ab = Math[_0x1c4913(0x252)](_0x575ec0['limit'] ?? 0x32, 0x64), _0xdf2a2b = await _0x1e92cf(), _0x30dcf7 = new URLSearchParams();
|
|
1095
|
+
_0x30dcf7['set'](_0x1c4913(0x1a0), String(_0x2068ab));
|
|
1096
|
+
_0x575ec0[_0x1c4913(0x19e)] ? (_0x30dcf7[_0x1c4913(_0x54d3dd._0x1dbee7)](_0x1c4913(_0x54d3dd._0x54bea5), _0x575ec0[_0x1c4913(0x19e)]), _0x30dcf7[_0x1c4913(_0x54d3dd._0x40f490)](_0x1c4913(0x17d), _0x575ec0[_0x1c4913(_0x54d3dd._0x487c5d)])) : _0x30dcf7['set'](_0x1c4913(0x17d), _0x575ec0['channelId']);
|
|
1097
|
+
_0x575ec0[_0x1c4913(_0x54d3dd._0x3a94b3)] && _0x30dcf7[_0x1c4913(_0x54d3dd._0x40f490)](_0x1c4913(0xe1), String(_0x575ec0[_0x1c4913(_0x54d3dd._0x3a94b3)]));
|
|
1098
|
+
_0x575ec0[_0x1c4913(0x248)] !== void 0x0 && _0x30dcf7[_0x1c4913(0x13b)](_0x1c4913(_0x54d3dd._0x22296d), String(_0x575ec0[_0x1c4913(0x248)]));
|
|
1099
|
+
const _0x533af8 = await _0x1ea43(_0x1c4913(_0x54d3dd._0x38964b) + _0x22da77[_0x1c4913(0x17c)] + '/history?' + _0x30dcf7[_0x1c4913(0x119)](), {
|
|
1100
|
+
'headers': _0x8e7adf,
|
|
1101
|
+
'method': _0x1c4913(0x204)
|
|
1102
|
+
}), _0xa3845f = (_0x533af8['data'] ?? [])[_0x1c4913(_0x54d3dd._0x313cf1)](_0x430f9d => ({
|
|
1103
|
+
'attachments': (_0x430f9d['attachments'] ?? [])[_0x1c4913(0x241)](_0x3e5aec => ({
|
|
1104
|
+
'filename': _0x3e5aec[_0x1c4913(0x237)] ?? _0x3e5aec['id'],
|
|
1105
|
+
'id': _0x3e5aec['id']
|
|
1106
|
+
})),
|
|
1107
|
+
'content': _0x430f9d['bodyMarkdown'] ?? '',
|
|
1108
|
+
'createdAt': _0x430f9d['createdAt'],
|
|
1109
|
+
..._0x430f9d[_0x1c4913(0xfb)] && _0x430f9d['kind'] !== _0x1c4913(0x18c) ? { 'kind': _0x430f9d['kind'] } : {},
|
|
1110
|
+
'messageId': _0x430f9d['id'],
|
|
1111
|
+
'senderName': _0x1d6384(_0x430f9d['senderParticipantId'], _0xdf2a2b),
|
|
1112
|
+
'senderType': _0x1a336a(_0x430f9d['senderParticipantId'], _0xdf2a2b),
|
|
1113
|
+
'seq': _0x430f9d[_0x1c4913(0xed)] ?? 0x0
|
|
1114
|
+
}));
|
|
1115
|
+
return {
|
|
1116
|
+
'channel': _0x575ec0['channelTarget'],
|
|
1117
|
+
'hasMore': _0x533af8[_0x1c4913(0x153)]?.[_0x1c4913(0x1d0)] ?? ![],
|
|
1118
|
+
'messages': _0xa3845f,
|
|
1119
|
+
'nextCursor': _0x533af8[_0x1c4913(0x153)]?.['cursor']
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
return {
|
|
1123
|
+
async 'sendMessage'(_0x5c403a) {
|
|
1124
|
+
const _0x2a6e26 = _0x405dcc, _0x59a830 = await _0x4272c9(_0x5c403a[_0x2a6e26(0x1eb)]), _0x1b1323 = _0x5c403a[_0x2a6e26(0xfa)][_0x2a6e26(0x17a)]('@') ? extractMentionedParticipantIds(_0x5c403a['content'], await _0x1e92cf()) : [], _0x3a2391 = await _0x1ea43(_0x2a6e26(0xe3) + _0x22da77['agentId'] + _0x2a6e26(0x1cf), {
|
|
1125
|
+
'body': JSON[_0x2a6e26(0x246)]({
|
|
1126
|
+
'attachment_ids': _0x5c403a[_0x2a6e26(_0x4a3eb5._0x2a59c3)],
|
|
1127
|
+
'bodyMarkdown': _0x5c403a[_0x2a6e26(_0x4a3eb5._0x9d8f0d)],
|
|
1128
|
+
'channelId': _0x59a830[_0x2a6e26(0x17d)],
|
|
1129
|
+
..._0x1b1323[_0x2a6e26(0x14e)] > 0x0 ? { 'mentionedParticipantIds': _0x1b1323 } : {},
|
|
1130
|
+
'threadId': _0x59a830[_0x2a6e26(0x19e)],
|
|
1131
|
+
..._0x5c403a[_0x2a6e26(_0x4a3eb5._0x28b368)] ? { 'visibility': _0x5c403a[_0x2a6e26(0x16a)] } : {}
|
|
1132
|
+
}),
|
|
1133
|
+
'headers': _0x8e7adf,
|
|
1134
|
+
'method': _0x2a6e26(0x1f0)
|
|
1135
|
+
});
|
|
1136
|
+
return { 'messageId': _0x3a2391[_0x2a6e26(_0x4a3eb5._0x3fab6d)]?.['id'] ?? '' };
|
|
1137
|
+
},
|
|
1138
|
+
async 'listSchedules'() {
|
|
1139
|
+
const _0x38cdc6 = _0x405dcc, _0x14ceaf = await _0x1ea43('/api/internal/schedules', {
|
|
1140
|
+
'headers': _0x8e7adf,
|
|
1141
|
+
'method': _0x38cdc6(_0x35376a._0x23122d)
|
|
1142
|
+
});
|
|
1143
|
+
return _0x14ceaf['data'] ?? [];
|
|
1144
|
+
},
|
|
1145
|
+
async 'claimScheduleRun'(_0x4c8263) {
|
|
1146
|
+
const _0x1ad544 = _0x405dcc, _0x5372b3 = await _0x1ea43(_0x1ad544(0x1ec), {
|
|
1147
|
+
'body': JSON[_0x1ad544(_0x453fdc._0x335bbd)](_0x4c8263),
|
|
1148
|
+
'headers': _0x8e7adf,
|
|
1149
|
+
'method': _0x1ad544(_0x453fdc._0x358f32)
|
|
1150
|
+
});
|
|
1151
|
+
return _0x5372b3['data'] ?? {
|
|
1152
|
+
'granted': ![],
|
|
1153
|
+
'runId': null,
|
|
1154
|
+
'schedule': null,
|
|
1155
|
+
'scheduledFor': _0x4c8263[_0x1ad544(0x116)]
|
|
1156
|
+
};
|
|
1157
|
+
},
|
|
1158
|
+
async 'startScheduleRun'(_0x28df7d) {
|
|
1159
|
+
const _0x20db30 = _0x405dcc, _0x4425e1 = await _0x1ea43(_0x20db30(0x24c) + encodeURIComponent(_0x28df7d['runId']) + _0x20db30(_0x488671._0x3e0deb), {
|
|
1160
|
+
'body': JSON['stringify']({}),
|
|
1161
|
+
'headers': _0x8e7adf,
|
|
1162
|
+
'method': _0x20db30(_0x488671._0x1436d1)
|
|
1163
|
+
});
|
|
1164
|
+
return _0x4425e1[_0x20db30(0x194)] ?? {
|
|
1165
|
+
'claimedByDaemonId': '',
|
|
1166
|
+
'id': _0x28df7d[_0x20db30(0x239)],
|
|
1167
|
+
'scheduleId': '',
|
|
1168
|
+
'status': _0x20db30(0x203)
|
|
1169
|
+
};
|
|
1170
|
+
},
|
|
1171
|
+
async 'finishScheduleRun'(_0x1a22f1) {
|
|
1172
|
+
const _0x18a51e = _0x405dcc, _0x379b8c = await _0x1ea43('/api/internal/schedules/' + encodeURIComponent(_0x1a22f1['runId']) + _0x18a51e(_0x494c4a._0x482e09), {
|
|
1173
|
+
'body': JSON['stringify']({
|
|
1174
|
+
'error': _0x1a22f1['error'],
|
|
1175
|
+
'resultJson': _0x1a22f1[_0x18a51e(0x1b7)],
|
|
1176
|
+
'status': _0x1a22f1[_0x18a51e(0x1b3)]
|
|
1177
|
+
}),
|
|
1178
|
+
'headers': _0x8e7adf,
|
|
1179
|
+
'method': _0x18a51e(0x1f0)
|
|
1180
|
+
});
|
|
1181
|
+
return _0x379b8c['data'] ?? {
|
|
1182
|
+
'nextRunAt': null,
|
|
1183
|
+
'run': {
|
|
1184
|
+
'claimedByDaemonId': '',
|
|
1185
|
+
'id': _0x1a22f1[_0x18a51e(0x239)],
|
|
1186
|
+
'scheduleId': '',
|
|
1187
|
+
'status': _0x1a22f1[_0x18a51e(0x1b3)]
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
},
|
|
1191
|
+
async 'listTasks'(_0x2c6dc8) {
|
|
1192
|
+
const _0x5bcaa0 = _0x405dcc, _0x3df847 = new URLSearchParams();
|
|
1193
|
+
return _0x3df847[_0x5bcaa0(_0x49f58d._0x82cb80)](_0x5bcaa0(_0x49f58d._0x4d826f), _0x2c6dc8[_0x5bcaa0(_0x49f58d._0x4d826f)]), _0x2c6dc8[_0x5bcaa0(0x1b3)] && _0x3df847[_0x5bcaa0(0x13b)](_0x5bcaa0(0x1b3), _0x2c6dc8[_0x5bcaa0(0x1b3)]), _0x6634a8(_0x5bcaa0(_0x49f58d._0x5c97d9) + _0x22da77[_0x5bcaa0(_0x49f58d._0x3324eb)] + _0x5bcaa0(_0x49f58d._0x3ec6f8) + _0x3df847[_0x5bcaa0(0x119)](), {
|
|
1194
|
+
'headers': _0x8e7adf,
|
|
1195
|
+
'method': _0x5bcaa0(0x204)
|
|
1196
|
+
});
|
|
1197
|
+
},
|
|
1198
|
+
async 'createTasks'(_0x25d081) {
|
|
1199
|
+
const _0x26f3c1 = _0x405dcc;
|
|
1200
|
+
return _0x6634a8(_0x26f3c1(_0x3e9ffe._0x1b2ece) + _0x22da77[_0x26f3c1(0x17c)] + _0x26f3c1(0xd1), {
|
|
1201
|
+
'body': JSON[_0x26f3c1(_0x3e9ffe._0x16152b)]({
|
|
1202
|
+
..._0x25d081,
|
|
1203
|
+
'idempotency_key': _0x22349d('create_tasks', _0x25d081)
|
|
1204
|
+
}),
|
|
1205
|
+
'headers': _0x8e7adf,
|
|
1206
|
+
'method': _0x26f3c1(0x1f0)
|
|
1207
|
+
});
|
|
1208
|
+
},
|
|
1209
|
+
async 'claimTasks'(_0x55a1a5) {
|
|
1210
|
+
const _0x4ba9ab = _0x405dcc;
|
|
1211
|
+
return _0x6634a8(_0x4ba9ab(_0x19fd52._0x18317a) + _0x22da77[_0x4ba9ab(0x17c)] + _0x4ba9ab(0x144), {
|
|
1212
|
+
'body': JSON['stringify']({
|
|
1213
|
+
..._0x55a1a5,
|
|
1214
|
+
'idempotency_key': _0x22349d(_0x4ba9ab(0x167), _0x55a1a5)
|
|
1215
|
+
}),
|
|
1216
|
+
'headers': _0x8e7adf,
|
|
1217
|
+
'method': _0x4ba9ab(0x1f0)
|
|
1218
|
+
});
|
|
1219
|
+
},
|
|
1220
|
+
async 'unclaimTask'(_0x592848) {
|
|
1221
|
+
const _0x1c0ece = _0x405dcc;
|
|
1222
|
+
return _0x6634a8('/internal/agent/' + _0x22da77[_0x1c0ece(0x17c)] + '/tasks/unclaim', {
|
|
1223
|
+
'body': JSON[_0x1c0ece(0x246)]({
|
|
1224
|
+
..._0x592848,
|
|
1225
|
+
'idempotency_key': _0x22349d(_0x1c0ece(0x152), _0x592848)
|
|
1226
|
+
}),
|
|
1227
|
+
'headers': _0x8e7adf,
|
|
1228
|
+
'method': _0x1c0ece(_0x3e5d58._0x291fc2)
|
|
1229
|
+
});
|
|
1230
|
+
},
|
|
1231
|
+
async 'updateTaskStatus'(_0x282caf) {
|
|
1232
|
+
const _0x265417 = _0x405dcc;
|
|
1233
|
+
return _0x6634a8('/internal/agent/' + _0x22da77[_0x265417(_0x2e860b._0x496462)] + _0x265417(0x22d), {
|
|
1234
|
+
'body': JSON['stringify']({
|
|
1235
|
+
..._0x282caf,
|
|
1236
|
+
'idempotency_key': _0x22349d(_0x265417(_0x2e860b._0x1bb94c), _0x282caf)
|
|
1237
|
+
}),
|
|
1238
|
+
'headers': _0x8e7adf,
|
|
1239
|
+
'method': _0x265417(0x1f0)
|
|
1240
|
+
});
|
|
1241
|
+
},
|
|
1242
|
+
async 'uploadFile'(_0x3c947c) {
|
|
1243
|
+
const _0x493ce8 = _0x405dcc, _0x3ab663 = await _0x4272c9(_0x3c947c[_0x493ce8(_0x4967e2._0x29cd00)]);
|
|
1244
|
+
if (_0x3ab663[_0x493ce8(_0x4967e2._0x4713d9)])
|
|
1245
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1246
|
+
const _0x2495e3 = await _0x1ea43('/internal/agent/' + _0x22da77[_0x493ce8(_0x4967e2._0x30d7c1)] + _0x493ce8(_0x4967e2._0x1f836c), {
|
|
1247
|
+
'body': JSON[_0x493ce8(_0x4967e2._0x5cd57f)]({
|
|
1248
|
+
'channel': _0x3ab663[_0x493ce8(0x1eb)],
|
|
1249
|
+
'contentBase64': _0x3c947c[_0x493ce8(_0x4967e2._0x4fc942)],
|
|
1250
|
+
'contentType': _0x3c947c[_0x493ce8(0x155)],
|
|
1251
|
+
'originalFilename': _0x3c947c[_0x493ce8(0x237)]
|
|
1252
|
+
}),
|
|
1253
|
+
'headers': _0x8e7adf,
|
|
1254
|
+
'method': _0x493ce8(_0x4967e2._0x4c11ca)
|
|
1255
|
+
});
|
|
1256
|
+
return {
|
|
1257
|
+
'attachmentId': _0x2495e3[_0x493ce8(_0x4967e2._0x5bb9fd)]?.['id'] ?? '',
|
|
1258
|
+
'filename': _0x2495e3[_0x493ce8(0x194)]?.[_0x493ce8(0x1aa)] ?? _0x3c947c[_0x493ce8(0x237)],
|
|
1259
|
+
'sizeBytes': _0x2495e3['data']?.['sizeBytes'] ?? 0x0
|
|
1260
|
+
};
|
|
1261
|
+
},
|
|
1262
|
+
async 'downloadAttachment'(_0x429b04) {
|
|
1263
|
+
const _0x312a2e = _0x405dcc, _0x50d00c = await _0x1ea43('/api/attachments/' + _0x429b04, {
|
|
1264
|
+
'headers': _0x8e7adf,
|
|
1265
|
+
'method': _0x312a2e(_0x1d8447._0x15049d)
|
|
1266
|
+
}), _0x42cc34 = new AbortController(), _0x16b490 = setTimeout(() => _0x42cc34[_0x312a2e(0x12d)](), _0x5cd833);
|
|
1267
|
+
try {
|
|
1268
|
+
const _0x218613 = await _0x6fd199(_0x2ce03a + _0x312a2e(0x219) + _0x429b04 + _0x312a2e(0x1e0), {
|
|
1269
|
+
'headers': _0x8e7adf,
|
|
1270
|
+
'method': _0x312a2e(0x204),
|
|
1271
|
+
'signal': _0x42cc34[_0x312a2e(_0x1d8447._0x1acfa6)]
|
|
1272
|
+
});
|
|
1273
|
+
if (!_0x218613['ok'])
|
|
1274
|
+
throw new Error(_0x312a2e(0x1e6) + _0x218613[_0x312a2e(0x1b3)]);
|
|
1275
|
+
return {
|
|
1276
|
+
'contentType': _0x50d00c[_0x312a2e(0x194)]?.[_0x312a2e(_0x1d8447._0x24a279)] ?? _0x218613[_0x312a2e(_0x1d8447._0x482f7e)][_0x312a2e(_0x1d8447._0xd1b77f)](_0x312a2e(_0x1d8447._0x191628)) ?? _0x312a2e(0x1f8),
|
|
1277
|
+
'data': Buffer[_0x312a2e(_0x1d8447._0x77befc)](await _0x218613[_0x312a2e(_0x1d8447._0x182958)]()),
|
|
1278
|
+
'originalFilename': _0x50d00c[_0x312a2e(_0x1d8447._0x264b1d)]?.[_0x312a2e(_0x1d8447._0x6de49b)]
|
|
1279
|
+
};
|
|
1280
|
+
} finally {
|
|
1281
|
+
clearTimeout(_0x16b490);
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
async 'listServer'() {
|
|
1285
|
+
return _0x1e92cf({ 'forceRefresh': !![] });
|
|
1286
|
+
},
|
|
1287
|
+
async 'getLatestEventSeq'() {
|
|
1288
|
+
const _0x136b63 = _0x405dcc, _0x5c0943 = new URLSearchParams();
|
|
1289
|
+
_0x5c0943['set'](_0x136b63(0x137), '0'), _0x5c0943[_0x136b63(0x13b)]('limit', '1');
|
|
1290
|
+
const _0x1a9483 = await _0x1ea43('/internal/agent/' + _0x22da77[_0x136b63(_0x232ef2._0x474d32)] + _0x136b63(0x23d) + _0x5c0943['toString'](), {
|
|
1291
|
+
'headers': _0x8e7adf,
|
|
1292
|
+
'method': _0x136b63(0x204)
|
|
1293
|
+
}), _0x3ef4a7 = _0x1a9483[_0x136b63(0x153)]?.['latestSeq'];
|
|
1294
|
+
return typeof _0x3ef4a7 === 'number' && _0x3ef4a7 > 0x0 ? _0x3ef4a7 : 0x0;
|
|
1295
|
+
},
|
|
1296
|
+
async 'readHistory'(_0x3e9e3a) {
|
|
1297
|
+
const _0xcc727e = _0x405dcc, _0x1f8d11 = await _0x4272c9(_0x3e9e3a['channel']);
|
|
1298
|
+
return _0x23e564({
|
|
1299
|
+
'after': _0x3e9e3a[_0xcc727e(_0x1580fe._0x457f3d)],
|
|
1300
|
+
'before': _0x3e9e3a['before'],
|
|
1301
|
+
'channelId': _0x1f8d11[_0xcc727e(0x17d)],
|
|
1302
|
+
'channelTarget': _0x1f8d11['target'],
|
|
1303
|
+
'limit': _0x3e9e3a[_0xcc727e(0x1a0)],
|
|
1304
|
+
'threadId': _0x1f8d11['threadId']
|
|
1305
|
+
});
|
|
1306
|
+
},
|
|
1307
|
+
'resolveTarget': _0x4272c9,
|
|
1308
|
+
async 'checkMessages'() {
|
|
1309
|
+
const _0x19d985 = {
|
|
1310
|
+
_0x2161d3: 0x107,
|
|
1311
|
+
_0x618d3b: 0x17d
|
|
1312
|
+
}, _0x284221 = _0x405dcc, _0x3ffc7b = new URLSearchParams();
|
|
1313
|
+
_0x3ffc7b[_0x284221(_0x1a2549._0x4d9789)]('afterSeq', String(_0x47f847));
|
|
1314
|
+
const _0x1bd82a = _0x3ffc7b[_0x284221(_0x1a2549._0x4eebe5)](), _0x1ada48 = await _0x1ea43(_0x284221(0xe3) + _0x22da77['agentId'] + _0x284221(0x1b6) + (_0x1bd82a ? '?' + _0x1bd82a : ''), {
|
|
1315
|
+
'headers': _0x8e7adf,
|
|
1316
|
+
'method': _0x284221(0x204)
|
|
1317
|
+
}), _0x4153ad = _0x1ada48[_0x284221(_0x1a2549._0x1f03ce)] ?? [], _0x17f078 = _0x1ada48[_0x284221(0x153)]?.[_0x284221(0xe1)], _0x5a9435 = _0x43077e ? _0x4153ad['filter'](_0x2b1503 => {
|
|
1318
|
+
const _0x17baba = _0x284221;
|
|
1319
|
+
if (_0x2b1503[_0x17baba(_0x12c760._0x271fe3)] !== _0x17baba(0x25b))
|
|
1320
|
+
return ![];
|
|
1321
|
+
return _0x824966(_0x43077e, asRecord(_0x2b1503['payloadJson']));
|
|
1322
|
+
}) : _0x4153ad, _0x1347d2 = _0x17f078 !== void 0x0 ? _0x43077e ? Math[_0x284221(0x24f)](_0x47f847, _0x5a9435[_0x284221(_0x1a2549._0xc9df62)] > 0x0 ? _0x5a9435[_0x5a9435[_0x284221(_0x1a2549._0xc9df62)] - 0x1][_0x284221(_0x1a2549._0x3d6a58)] : _0x47f847) : Math[_0x284221(0x24f)](_0x47f847, _0x17f078) : _0x5a9435[_0x284221(_0x1a2549._0x398127)] > 0x0 ? Math[_0x284221(0x24f)](_0x47f847, _0x5a9435[_0x5a9435[_0x284221(0x14e)] - 0x1][_0x284221(_0x1a2549._0x22285a)]) : _0x47f847, _0xa12327 = (_0x43077e ? _0x5a9435 : _0x4153ad)['filter'](_0x3c1e5a => _0x3c1e5a[_0x284221(0xfc)] === _0x284221(0x25b)), _0x328c74 = _0x43077e === void 0x0 && _0x3ce451;
|
|
1323
|
+
let _0x3ac101 = await _0x1e92cf(), _0x452437 = new Map(_0x3ac101['channels']['map'](_0xbe37fb => [
|
|
1324
|
+
_0xbe37fb['id'],
|
|
1325
|
+
_0xbe37fb
|
|
1326
|
+
]));
|
|
1327
|
+
const _0x4782e7 = _0xa12327['some'](_0x13fe52 => {
|
|
1328
|
+
const _0x34ab70 = _0x284221, _0x13e5c3 = asRecord(_0x13fe52[_0x34ab70(0x1e4)]), _0x4bc625 = typeof _0x13e5c3?.[_0x34ab70(0x17d)] === _0x34ab70(_0x19d985._0x2161d3) ? _0x13e5c3[_0x34ab70(_0x19d985._0x618d3b)] : '';
|
|
1329
|
+
return Boolean(_0x4bc625) && !_0x452437['has'](_0x4bc625);
|
|
1330
|
+
});
|
|
1331
|
+
_0x4782e7 && (_0x3ac101 = await _0x1e92cf({ 'forceRefresh': !![] }), _0x452437 = new Map(_0x3ac101[_0x284221(0x234)][_0x284221(_0x1a2549._0x1837b0)](_0x50272e => [
|
|
1332
|
+
_0x50272e['id'],
|
|
1333
|
+
_0x50272e
|
|
1334
|
+
])));
|
|
1335
|
+
const _0x2fb572 = new Map();
|
|
1336
|
+
for (const _0x262bf3 of _0xa12327) {
|
|
1337
|
+
const _0x21cae3 = asRecord(_0x262bf3['payloadJson']), _0x16429a = typeof _0x21cae3['channelId'] === _0x284221(0x107) ? _0x21cae3['channelId'] : '';
|
|
1338
|
+
if (!_0x16429a)
|
|
1339
|
+
continue;
|
|
1340
|
+
const _0x913499 = typeof _0x21cae3[_0x284221(_0x1a2549._0x3021a4)] === _0x284221(0x107) ? _0x21cae3[_0x284221(0x19e)] : void 0x0, _0xd4428b = typeof _0x21cae3['rootMessageId'] === _0x284221(_0x1a2549._0x7ce193) ? _0x21cae3[_0x284221(_0x1a2549._0x16bed0)] : void 0x0, _0x1fe4a3 = typeof _0x21cae3[_0x284221(_0x1a2549._0x3bfad3)] === _0x284221(_0x1a2549._0x39042c) && Number[_0x284221(0x25f)](_0x21cae3['threadNumber']) ? _0x21cae3[_0x284221(0x110)] : void 0x0, _0x57ee33 = Boolean(_0x913499 && (!_0xd4428b || _0x262bf3[_0x284221(_0x1a2549._0x5b9177)] !== _0xd4428b)), _0x54fa21 = _0x57ee33 ? _0x16429a + ':' + _0x913499 : _0x16429a, _0x27b12d = _0x2fb572[_0x284221(0x209)](_0x54fa21) ?? {
|
|
1341
|
+
'aggregateIds': [],
|
|
1342
|
+
'channelId': _0x16429a,
|
|
1343
|
+
'entries': new Map(),
|
|
1344
|
+
'isThreadReply': _0x57ee33,
|
|
1345
|
+
'rootMessageId': _0xd4428b,
|
|
1346
|
+
'threadNumber': _0x1fe4a3,
|
|
1347
|
+
'threadId': _0x57ee33 ? _0x913499 : void 0x0
|
|
1348
|
+
};
|
|
1349
|
+
_0x27b12d[_0x284221(_0x1a2549._0x3bfad3)] == null && _0x1fe4a3 != null && (_0x27b12d[_0x284221(0x110)] = _0x1fe4a3), !_0x27b12d['rootMessageId'] && _0xd4428b && (_0x27b12d[_0x284221(_0x1a2549._0x16bed0)] = _0xd4428b), _0x27b12d[_0x284221(0x207)]['push'](_0x262bf3['aggregateId']), _0x27b12d[_0x284221(_0x1a2549._0x481b29)]['set'](_0x262bf3[_0x284221(_0x1a2549._0x5b9177)], {
|
|
1350
|
+
'payloadJson': _0x262bf3['payloadJson'],
|
|
1351
|
+
'seq': _0x262bf3[_0x284221(0x210)]
|
|
1352
|
+
}), _0x2fb572[_0x284221(0x13b)](_0x54fa21, _0x27b12d);
|
|
1353
|
+
}
|
|
1354
|
+
const _0x16b6a0 = [];
|
|
1355
|
+
for (const _0x5f58fc of _0x2fb572[_0x284221(_0x1a2549._0x3ca445)]()) {
|
|
1356
|
+
const {
|
|
1357
|
+
channelId: _0x274e4c,
|
|
1358
|
+
threadId: _0x2c72a9,
|
|
1359
|
+
rootMessageId: _0x464e5a,
|
|
1360
|
+
threadNumber: _0xb96587,
|
|
1361
|
+
aggregateIds: _0x23be47,
|
|
1362
|
+
isThreadReply: _0x4e89cd,
|
|
1363
|
+
entries: _0x53ad03
|
|
1364
|
+
} = _0x5f58fc, _0x765a48 = _0x452437[_0x284221(0x209)](_0x274e4c), _0x30c0f3 = _0x765a48?.[_0x284221(0x1df)] ?? _0x274e4c, _0x2bee01 = _0x765a48?.[_0x284221(0xfb)] === 'dm' ? 'dm:' + _0x30c0f3 : '#' + _0x30c0f3, _0x3c1b50 = {
|
|
1365
|
+
'channelTarget': _0x2bee01,
|
|
1366
|
+
'rootMessageId': _0x464e5a,
|
|
1367
|
+
'threadId': _0x2c72a9,
|
|
1368
|
+
'threadNumber': _0xb96587
|
|
1369
|
+
}, _0x3cf6ef = await _0x23e564({
|
|
1370
|
+
'channelId': _0x274e4c,
|
|
1371
|
+
'channelTarget': _0x2bee01,
|
|
1372
|
+
'limit': Math[_0x284221(0x24f)](_0x23be47[_0x284221(_0x1a2549._0xc2696b)], 0x32),
|
|
1373
|
+
'threadId': _0x2c72a9
|
|
1374
|
+
}), _0x5b2f31 = new Map(_0x3cf6ef[_0x284221(0x258)][_0x284221(0x241)](_0x322b02 => [
|
|
1375
|
+
_0x322b02[_0x284221(0x10b)],
|
|
1376
|
+
_0x322b02
|
|
1377
|
+
])), _0x523d17 = _0x2c72a9 ? _0x239605(_0x3c1b50) : _0x2bee01, _0x369bb0 = _0x43077e ? _0x4e89cd && _0x8d570(_0x43077e, _0x3c1b50) : !![], _0x1c8d62 = _0x4e89cd ? _0x369bb0 && _0x43077e ? _0x43077e : _0x523d17 : _0x2bee01;
|
|
1378
|
+
for (const _0x478856 of _0x23be47) {
|
|
1379
|
+
if (!_0x369bb0)
|
|
1380
|
+
continue;
|
|
1381
|
+
const _0xe30246 = _0x53ad03['get'](_0x478856), _0x2b3664 = _0xe30246 ? asRecord(_0xe30246[_0x284221(0x1e4)]) : void 0x0, _0xe49c0e = _0x2b3664?.['taskDeliveryMode'] === 'targeted';
|
|
1382
|
+
if (_0x328c74 && _0xe49c0e)
|
|
1383
|
+
continue;
|
|
1384
|
+
const _0xee5108 = _0x5b2f31['get'](_0x478856);
|
|
1385
|
+
if (_0xee5108) {
|
|
1386
|
+
_0x16b6a0['push']({
|
|
1387
|
+
'attachments': _0xee5108[_0x284221(_0x1a2549._0x1b5992)],
|
|
1388
|
+
'content': _0xee5108[_0x284221(0xfa)],
|
|
1389
|
+
'createdAt': _0xee5108[_0x284221(_0x1a2549._0x5d806e)],
|
|
1390
|
+
..._0xee5108[_0x284221(_0x1a2549._0x16f984)] ? { 'kind': _0xee5108['kind'] } : {},
|
|
1391
|
+
'messageId': _0xee5108[_0x284221(_0x1a2549._0x3ec109)],
|
|
1392
|
+
'senderName': _0xee5108[_0x284221(0x117)],
|
|
1393
|
+
'senderType': _0xee5108['senderType'],
|
|
1394
|
+
'target': _0x1c8d62,
|
|
1395
|
+
..._0xe49c0e ? { 'targetedTask': !![] } : {}
|
|
1396
|
+
});
|
|
1397
|
+
continue;
|
|
1398
|
+
}
|
|
1399
|
+
if (_0xe30246) {
|
|
1400
|
+
const _0x14346d = typeof _0x2b3664?.[_0x284221(_0x1a2549._0x34e36e)] === 'string' ? _0x2b3664[_0x284221(_0x1a2549._0x34e36e)] : '', _0x1015b7 = typeof _0x2b3664?.['bodyMarkdown'] === _0x284221(_0x1a2549._0x3b8322) ? _0x2b3664[_0x284221(_0x1a2549._0x2a32b0)] : '', _0x220f16 = typeof _0x2b3664?.[_0x284221(0xfb)] === _0x284221(0x107) && _0x2b3664[_0x284221(_0x1a2549._0x1112b1)] !== _0x284221(_0x1a2549._0x2318cd) ? _0x2b3664['kind'] : void 0x0;
|
|
1401
|
+
_0x14346d && _0x1015b7 && _0x16b6a0['push']({
|
|
1402
|
+
'attachments': [],
|
|
1403
|
+
'content': _0x1015b7,
|
|
1404
|
+
'createdAt': new Date()[_0x284221(0x102)](),
|
|
1405
|
+
..._0x220f16 ? { 'kind': _0x220f16 } : {},
|
|
1406
|
+
'messageId': _0x478856,
|
|
1407
|
+
'senderName': _0x1d6384(_0x14346d, _0x3ac101),
|
|
1408
|
+
'senderType': _0x1a336a(_0x14346d, _0x3ac101),
|
|
1409
|
+
'target': _0x1c8d62,
|
|
1410
|
+
..._0xe49c0e ? { 'targetedTask': !![] } : {}
|
|
1411
|
+
});
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
if (_0x1347d2 > 0x0) {
|
|
1416
|
+
if (_0x20a56a)
|
|
1417
|
+
await _0x822bee(_0x1347d2);
|
|
1418
|
+
else
|
|
1419
|
+
_0x6cd872 && await _0x2a383c(_0x1347d2);
|
|
1420
|
+
}
|
|
1421
|
+
return _0x1347d2 > _0x47f847 && (_0x47f847 = _0x1347d2), { 'messages': _0x43077e ? _0x16b6a0 : _0x328c74 ? _0x16b6a0[_0x284221(_0x1a2549._0x58eb92)](_0x159e0a => _0x159e0a[_0x284221(0x19b)] !== !![]) : _0x16b6a0 };
|
|
1422
|
+
}
|
|
1397
1423
|
};
|
|
1398
|
-
return _0x7a96();
|
|
1399
1424
|
}
|
|
1400
|
-
function toLocalTime(
|
|
1401
|
-
const
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
},
|
|
1408
|
-
if (Number[
|
|
1409
|
-
return
|
|
1410
|
-
const
|
|
1411
|
-
return
|
|
1425
|
+
function toLocalTime(_0x2f8128) {
|
|
1426
|
+
const _0x58485c = {
|
|
1427
|
+
_0x4bd8f4: 0x1ce,
|
|
1428
|
+
_0x4c4e85: 0x20a,
|
|
1429
|
+
_0xf93b29: 0x23b,
|
|
1430
|
+
_0x37eb23: 0x212,
|
|
1431
|
+
_0x1c8e42: 0x265
|
|
1432
|
+
}, _0x10df06 = _0x456b7e, _0x364982 = new Date(_0x2f8128);
|
|
1433
|
+
if (Number['isNaN'](_0x364982[_0x10df06(_0x58485c._0x4bd8f4)]()))
|
|
1434
|
+
return _0x2f8128;
|
|
1435
|
+
const _0x460f20 = _0x4d16be => String(_0x4d16be)[_0x10df06(0x10a)](0x2, '0');
|
|
1436
|
+
return _0x364982[_0x10df06(_0x58485c._0x4c4e85)]() + '-' + _0x460f20(_0x364982[_0x10df06(_0x58485c._0xf93b29)]() + 0x1) + '-' + _0x460f20(_0x364982[_0x10df06(0x193)]()) + '\x20' + _0x460f20(_0x364982[_0x10df06(_0x58485c._0x37eb23)]()) + ':' + _0x460f20(_0x364982[_0x10df06(_0x58485c._0x1c8e42)]()) + ':' + _0x460f20(_0x364982[_0x10df06(0x12f)]());
|
|
1412
1437
|
}
|
|
1413
|
-
function formatAttachmentSuffix(
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
},
|
|
1418
|
-
if (!
|
|
1438
|
+
function formatAttachmentSuffix(_0xec0047) {
|
|
1439
|
+
const _0x34e306 = {
|
|
1440
|
+
_0x31fecf: 0x14e,
|
|
1441
|
+
_0x548a76: 0x170
|
|
1442
|
+
}, _0x449602 = _0x456b7e;
|
|
1443
|
+
if (!_0xec0047 || _0xec0047[_0x449602(0x14e)] === 0x0)
|
|
1419
1444
|
return '';
|
|
1420
|
-
return '\x20[' +
|
|
1445
|
+
return '\x20[' + _0xec0047[_0x449602(0x14e)] + _0x449602(0xd3) + (_0xec0047[_0x449602(_0x34e306._0x31fecf)] > 0x1 ? 's' : '') + ':\x20' + _0xec0047[_0x449602(0x241)](_0x1441d0 => _0x1441d0[_0x449602(0x237)] + _0x449602(0x1c0) + _0x1441d0['id'] + ')')[_0x449602(_0x34e306._0x548a76)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1421
1446
|
}
|
|
1422
|
-
function formatCheckMessages(
|
|
1423
|
-
const
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1447
|
+
function formatCheckMessages(_0x1549f5) {
|
|
1448
|
+
const _0xe26622 = { _0x370caa: 0x170 }, _0x5491bc = {
|
|
1449
|
+
_0x46d575: 0x262,
|
|
1450
|
+
_0x177fc2: 0x13d,
|
|
1451
|
+
_0x31ec40: 0xfb,
|
|
1452
|
+
_0x5b9738: 0x18c,
|
|
1453
|
+
_0xec3dc2: 0xfb,
|
|
1454
|
+
_0x4b4720: 0x180,
|
|
1455
|
+
_0x3270e5: 0x1c6,
|
|
1456
|
+
_0x2d787d: 0x205,
|
|
1457
|
+
_0x5a9608: 0x15f,
|
|
1458
|
+
_0x1baf11: 0x176
|
|
1459
|
+
}, _0x1607e0 = _0x456b7e;
|
|
1460
|
+
if (_0x1549f5['length'] === 0x0)
|
|
1461
|
+
return 'No\x20new\x20messages.';
|
|
1462
|
+
return _0x1549f5[_0x1607e0(0x241)](_0x280abe => {
|
|
1463
|
+
const _0xf1c751 = _0x1607e0, _0x4aa870 = _0x280abe[_0xf1c751(_0x5491bc._0x46d575)] === 'agent' ? _0xf1c751(_0x5491bc._0x177fc2) : '', _0x57c782 = _0x280abe[_0xf1c751(_0x5491bc._0x31ec40)] && _0x280abe[_0xf1c751(0xfb)] !== _0xf1c751(_0x5491bc._0x5b9738) ? '\x20kind=' + _0x280abe[_0xf1c751(_0x5491bc._0xec3dc2)] : '';
|
|
1464
|
+
return _0xf1c751(_0x5491bc._0x4b4720) + _0x280abe[_0xf1c751(0x1eb)] + _0xf1c751(_0x5491bc._0x3270e5) + _0x280abe['messageId'][_0xf1c751(_0x5491bc._0x2d787d)](0x0, 0x8) + _0xf1c751(0xd2) + toLocalTime(_0x280abe[_0xf1c751(_0x5491bc._0x5a9608)]) + _0x4aa870 + _0x57c782 + _0xf1c751(_0x5491bc._0x1baf11) + _0x280abe[_0xf1c751(0x117)] + ':\x20' + _0x280abe['content'] + formatAttachmentSuffix(_0x280abe[_0xf1c751(0x133)]);
|
|
1465
|
+
})[_0x1607e0(_0xe26622._0x370caa)]('\x0a');
|
|
1437
1466
|
}
|
|
1438
|
-
function formatHistory(
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1467
|
+
function formatHistory(_0x6ed19e) {
|
|
1468
|
+
const _0x41a176 = {
|
|
1469
|
+
_0x5005c0: 0x258,
|
|
1470
|
+
_0x1e0c15: 0x1a8,
|
|
1471
|
+
_0x2e244b: 0x241,
|
|
1472
|
+
_0x3461a0: 0x14e,
|
|
1473
|
+
_0x236973: 0x247,
|
|
1474
|
+
_0x52f1db: 0x13a,
|
|
1475
|
+
_0x26c058: 0x1ca,
|
|
1476
|
+
_0x20c9d8: 0xe5,
|
|
1477
|
+
_0x1d0053: 0x1bb
|
|
1478
|
+
}, _0x41a10f = {
|
|
1479
|
+
_0x48e1b3: 0xd9,
|
|
1480
|
+
_0x4a564b: 0xfb,
|
|
1481
|
+
_0x111fbe: 0x18c,
|
|
1482
|
+
_0x23da33: 0xdf,
|
|
1483
|
+
_0x222237: 0x210,
|
|
1484
|
+
_0x536c30: 0x10b,
|
|
1485
|
+
_0x28f765: 0x15f,
|
|
1486
|
+
_0x63876c: 0x176,
|
|
1487
|
+
_0x4441ad: 0x117
|
|
1488
|
+
}, _0x55f204 = _0x456b7e;
|
|
1489
|
+
if (_0x6ed19e[_0x55f204(_0x41a176._0x5005c0)]['length'] === 0x0)
|
|
1490
|
+
return '##\x20Message\x20History\x20for\x20' + _0x6ed19e['channel'] + _0x55f204(_0x41a176._0x1e0c15);
|
|
1491
|
+
const _0x7329ea = _0x6ed19e[_0x55f204(_0x41a176._0x5005c0)][_0x55f204(_0x41a176._0x2e244b)](_0x17550 => {
|
|
1492
|
+
const _0x3ffae8 = _0x55f204, _0x6e43df = _0x17550[_0x3ffae8(0x262)] === _0x3ffae8(_0x41a10f._0x48e1b3) ? _0x3ffae8(0x13d) : '', _0x4a0a74 = _0x17550[_0x3ffae8(0xfb)] && _0x17550[_0x3ffae8(_0x41a10f._0x4a564b)] !== _0x3ffae8(_0x41a10f._0x111fbe) ? _0x3ffae8(0x17b) + _0x17550[_0x3ffae8(0xfb)] : '';
|
|
1493
|
+
return _0x3ffae8(_0x41a10f._0x23da33) + _0x17550[_0x3ffae8(_0x41a10f._0x222237)] + _0x3ffae8(0x1c6) + _0x17550[_0x3ffae8(_0x41a10f._0x536c30)] + '\x20time=' + toLocalTime(_0x17550[_0x3ffae8(_0x41a10f._0x28f765)]) + _0x6e43df + _0x4a0a74 + _0x3ffae8(_0x41a10f._0x63876c) + _0x17550[_0x3ffae8(_0x41a10f._0x4441ad)] + ':\x20' + _0x17550['content'] + formatAttachmentSuffix(_0x17550[_0x3ffae8(0x133)]);
|
|
1494
|
+
})['join']('\x0a'), _0x53b222 = _0x6ed19e[_0x55f204(0x1d0)] && _0x6ed19e[_0x55f204(0x13a)] ? '\x0a\x0a---\x20' + _0x6ed19e[_0x55f204(_0x41a176._0x5005c0)][_0x55f204(_0x41a176._0x3461a0)] + _0x55f204(_0x41a176._0x236973) + _0x6ed19e[_0x55f204(_0x41a176._0x52f1db)] + _0x55f204(_0x41a176._0x26c058) : '';
|
|
1495
|
+
return _0x55f204(_0x41a176._0x20c9d8) + _0x6ed19e[_0x55f204(0x1ad)] + '\x20(' + _0x6ed19e[_0x55f204(0x258)]['length'] + _0x55f204(_0x41a176._0x1d0053) + _0x7329ea + _0x53b222;
|
|
1462
1496
|
}
|
|
1463
|
-
function formatServerDirectory(
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1497
|
+
function formatServerDirectory(_0x115f2b) {
|
|
1498
|
+
const _0x19a9af = {
|
|
1499
|
+
_0x43a8a9: 0x234,
|
|
1500
|
+
_0x519302: 0x170,
|
|
1501
|
+
_0x232eb5: 0x241,
|
|
1502
|
+
_0x12719a: 0x255,
|
|
1503
|
+
_0x2f33d3: 0x14e,
|
|
1504
|
+
_0x1d2405: 0x255,
|
|
1505
|
+
_0x4a5b04: 0x170,
|
|
1506
|
+
_0x4d9308: 0x1b4,
|
|
1507
|
+
_0x18f7ba: 0x170
|
|
1508
|
+
}, _0x557bb4 = _0x456b7e, _0x251f43 = _0x115f2b['channels'][_0x557bb4(0x14e)] > 0x0 ? _0x115f2b[_0x557bb4(_0x19a9af._0x43a8a9)][_0x557bb4(0x241)](_0x51a0e0 => _0x51a0e0[_0x557bb4(0x1ea)] ? _0x557bb4(0x228) + _0x51a0e0[_0x557bb4(0x1df)] + _0x557bb4(0x238) + _0x51a0e0[_0x557bb4(0x1ea)] : _0x557bb4(0x228) + _0x51a0e0['name'])[_0x557bb4(_0x19a9af._0x519302)]('\x0a') : '(none)', _0x5c7951 = _0x115f2b['agents'][_0x557bb4(0x14e)] > 0x0 ? _0x115f2b['agents'][_0x557bb4(_0x19a9af._0x232eb5)](_0x187633 => _0x557bb4(0x1c3) + _0x187633['name'])['join']('\x0a') : '(none)', _0x314a4f = _0x115f2b[_0x557bb4(_0x19a9af._0x12719a)][_0x557bb4(_0x19a9af._0x2f33d3)] > 0x0 ? _0x115f2b[_0x557bb4(_0x19a9af._0x1d2405)][_0x557bb4(_0x19a9af._0x232eb5)](_0x4c2ff9 => _0x557bb4(0x1c3) + _0x4c2ff9[_0x557bb4(0x1df)])[_0x557bb4(_0x19a9af._0x4a5b04)]('\x0a') : _0x557bb4(_0x19a9af._0x4d9308);
|
|
1472
1509
|
return [
|
|
1473
|
-
|
|
1510
|
+
_0x557bb4(0x103) + _0x115f2b['serverName'],
|
|
1474
1511
|
'',
|
|
1475
|
-
|
|
1476
|
-
|
|
1512
|
+
_0x557bb4(0x189),
|
|
1513
|
+
_0x251f43,
|
|
1477
1514
|
'',
|
|
1478
|
-
|
|
1479
|
-
|
|
1515
|
+
_0x557bb4(0x104),
|
|
1516
|
+
_0x5c7951,
|
|
1480
1517
|
'',
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
][
|
|
1518
|
+
'###\x20Humans',
|
|
1519
|
+
_0x314a4f
|
|
1520
|
+
][_0x557bb4(_0x19a9af._0x18f7ba)]('\x0a');
|
|
1484
1521
|
}
|
|
1485
|
-
function formatUploadResult(
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
_0x359777: 0x23f
|
|
1489
|
-
}, _0x352909 = _0x36c0a2;
|
|
1490
|
-
return _0x352909(0x1ef) + _0x2bc29d[_0x352909(0x1dd)] + '\x20(' + (_0x2bc29d['sizeBytes'] / 0x400)[_0x352909(_0x46a5d8._0x3c9594)](0x1) + _0x352909(_0x46a5d8._0x359777) + _0x2bc29d[_0x352909(0x227)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1522
|
+
function formatUploadResult(_0x939172) {
|
|
1523
|
+
const _0x1f5603 = { _0x426da3: 0x20e }, _0x43b291 = _0x456b7e;
|
|
1524
|
+
return _0x43b291(0x106) + _0x939172[_0x43b291(0x237)] + '\x20(' + (_0x939172[_0x43b291(0xf3)] / 0x400)[_0x43b291(_0x1f5603._0x426da3)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x939172['attachmentId'] + _0x43b291(0x190);
|
|
1491
1525
|
}
|
|
1492
|
-
function formatViewFileResult(
|
|
1493
|
-
const
|
|
1494
|
-
return
|
|
1526
|
+
function formatViewFileResult(_0x36a64b, _0x5aae9e) {
|
|
1527
|
+
const _0x1b0684 = _0x456b7e;
|
|
1528
|
+
return _0x5aae9e ? _0x1b0684(0x231) + _0x36a64b : _0x1b0684(0x250) + _0x36a64b;
|
|
1495
1529
|
}
|
|
1496
|
-
function formatTaskList(
|
|
1497
|
-
const
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1530
|
+
function formatTaskList(_0x1c15a4, _0xdc9103) {
|
|
1531
|
+
const _0x3c8909 = { _0x26fe38: 0x170 }, _0x549182 = {
|
|
1532
|
+
_0x48dde6: 0x1cb,
|
|
1533
|
+
_0x5b9d7f: 0x11e,
|
|
1534
|
+
_0x158924: 0x11e,
|
|
1535
|
+
_0x4973b7: 0x10b,
|
|
1536
|
+
_0x4d420c: 0x225,
|
|
1537
|
+
_0x2b74d1: 0x213,
|
|
1538
|
+
_0x4368d3: 0x16d
|
|
1539
|
+
}, _0x4b5fe6 = _0x456b7e;
|
|
1540
|
+
if (_0x1c15a4[_0x4b5fe6(0x14e)] === 0x0)
|
|
1541
|
+
return 'No\x20tasks\x20found.';
|
|
1542
|
+
return _0x1c15a4['map'](_0x33f461 => {
|
|
1543
|
+
const _0x110ed8 = _0x4b5fe6, _0x205cd7 = _0x33f461[_0x110ed8(_0x549182._0x48dde6)] == null ? _0x110ed8(0x123) : _0x33f461[_0x110ed8(_0x549182._0x5b9d7f)] != null ? '#' + _0x33f461[_0x110ed8(0x1cb)] + '.' + _0x33f461[_0x110ed8(_0x549182._0x158924)] : '#' + _0x33f461['taskNumber'], _0x44f149 = _0x33f461[_0x110ed8(0x10b)] ? '\x20message=' + _0x33f461[_0x110ed8(_0x549182._0x4973b7)] : '', _0x18d554 = _0xdc9103 && _0x33f461[_0x110ed8(0x1cb)] != null && !_0x33f461[_0x110ed8(_0x549182._0x5b9d7f)] && _0xdc9103[_0x110ed8(0x127)](_0x33f461[_0x110ed8(0x1cb)]) ? _0x110ed8(_0x549182._0x4d420c) : '', _0x292294 = _0x33f461[_0x110ed8(0x257)] != null && _0x33f461['childrenTotal'] > 0x0 ? '\x20(' + (_0x33f461[_0x110ed8(_0x549182._0x2b74d1)] ?? 0x0) + '/' + _0x33f461[_0x110ed8(0x257)] + _0x110ed8(_0x549182._0x4368d3) : '';
|
|
1544
|
+
return _0x205cd7 + '\x20[' + _0x33f461['status'] + ']\x20' + _0x33f461['title'] + _0x292294 + _0x44f149 + _0x18d554;
|
|
1545
|
+
})[_0x4b5fe6(_0x3c8909._0x26fe38)]('\x0a');
|
|
1511
1546
|
}
|
|
1512
|
-
function formatCreatedTasks(
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
return
|
|
1523
|
-
|
|
1524
|
-
const _0x2f2d61 = _0x103fa3, _0x1b63a0 = _0x106075[_0x2f2d61(_0x2de174._0xfc76f9)] == null ? _0x2f2d61(_0x2de174._0x5c48ee) : _0x106075[_0x2f2d61(_0x2de174._0x57251c)] != null ? '#' + _0x106075[_0x2f2d61(_0x2de174._0xfc76f9)] + '.' + _0x106075[_0x2f2d61(_0x2de174._0x1daec0)] : '#' + _0x106075['taskNumber'], _0xe2d484 = _0x106075[_0x2f2d61(0x176)] ? _0x2f2d61(_0x2de174._0x5cf5b5) + _0x106075[_0x2f2d61(0x176)] : '';
|
|
1525
|
-
return _0x1b63a0 + '\x20' + _0x106075[_0x2f2d61(_0x2de174._0x1538e3)] + _0xe2d484;
|
|
1526
|
-
})[_0x103fa3(0x2a2)]('\x0a');
|
|
1547
|
+
function formatCreatedTasks(_0x5e3c9) {
|
|
1548
|
+
const _0x4aa175 = { _0x2504e8: 0x170 }, _0xf7e31a = {
|
|
1549
|
+
_0x2ba28c: 0x11e,
|
|
1550
|
+
_0x418a72: 0x1cb,
|
|
1551
|
+
_0x321374: 0x10b
|
|
1552
|
+
}, _0xae380f = _0x456b7e;
|
|
1553
|
+
if (_0x5e3c9[_0xae380f(0x14e)] === 0x0)
|
|
1554
|
+
return 'No\x20tasks\x20created.';
|
|
1555
|
+
return _0x5e3c9['map'](_0x5d9271 => {
|
|
1556
|
+
const _0x5bf95e = _0xae380f, _0x16cf8c = _0x5d9271['taskNumber'] == null ? _0x5bf95e(0x123) : _0x5d9271[_0x5bf95e(_0xf7e31a._0x2ba28c)] != null ? '#' + _0x5d9271[_0x5bf95e(_0xf7e31a._0x418a72)] + '.' + _0x5d9271[_0x5bf95e(0x11e)] : '#' + _0x5d9271['taskNumber'], _0x1395c7 = _0x5d9271[_0x5bf95e(_0xf7e31a._0x321374)] ? _0x5bf95e(0xf2) + _0x5d9271['messageId'] : '';
|
|
1557
|
+
return _0x16cf8c + '\x20' + _0x5d9271[_0x5bf95e(0x172)] + _0x1395c7;
|
|
1558
|
+
})[_0xae380f(_0x4aa175._0x2504e8)]('\x0a');
|
|
1527
1559
|
}
|
|
1528
|
-
function formatClaimTaskLabel(
|
|
1529
|
-
const
|
|
1530
|
-
if (
|
|
1531
|
-
return
|
|
1532
|
-
return
|
|
1533
|
-
}
|
|
1534
|
-
function _0x2192(_0x43e2d4, _0x13a01d) {
|
|
1535
|
-
_0x43e2d4 = _0x43e2d4 - 0x156;
|
|
1536
|
-
const _0x7a964d = _0x7a96();
|
|
1537
|
-
let _0x219279 = _0x7a964d[_0x43e2d4];
|
|
1538
|
-
if (_0x2192['WvPoqJ'] === undefined) {
|
|
1539
|
-
var _0xa43de1 = function (_0x48d15f) {
|
|
1540
|
-
const _0x1b1146 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1541
|
-
let _0xb0331c = '', _0x1b00e6 = '';
|
|
1542
|
-
for (let _0xc44fd5 = 0x0, _0x36d0ab, _0x160a57, _0x1b79b0 = 0x0; _0x160a57 = _0x48d15f['charAt'](_0x1b79b0++); ~_0x160a57 && (_0x36d0ab = _0xc44fd5 % 0x4 ? _0x36d0ab * 0x40 + _0x160a57 : _0x160a57, _0xc44fd5++ % 0x4) ? _0xb0331c += String['fromCharCode'](0xff & _0x36d0ab >> (-0x2 * _0xc44fd5 & 0x6)) : 0x0) {
|
|
1543
|
-
_0x160a57 = _0x1b1146['indexOf'](_0x160a57);
|
|
1544
|
-
}
|
|
1545
|
-
for (let _0x409283 = 0x0, _0x2f063d = _0xb0331c['length']; _0x409283 < _0x2f063d; _0x409283++) {
|
|
1546
|
-
_0x1b00e6 += '%' + ('00' + _0xb0331c['charCodeAt'](_0x409283)['toString'](0x10))['slice'](-0x2);
|
|
1547
|
-
}
|
|
1548
|
-
return decodeURIComponent(_0x1b00e6);
|
|
1549
|
-
};
|
|
1550
|
-
_0x2192['EohBxX'] = _0xa43de1, _0x2192['HfamjE'] = {}, _0x2192['WvPoqJ'] = !![];
|
|
1551
|
-
}
|
|
1552
|
-
const _0x476e8d = _0x7a964d[0x0], _0x1e2f4f = _0x43e2d4 + _0x476e8d, _0x607028 = _0x2192['HfamjE'][_0x1e2f4f];
|
|
1553
|
-
return !_0x607028 ? (_0x219279 = _0x2192['EohBxX'](_0x219279), _0x2192['HfamjE'][_0x1e2f4f] = _0x219279) : _0x219279 = _0x607028, _0x219279;
|
|
1560
|
+
function formatClaimTaskLabel(_0x12853d, _0x246673) {
|
|
1561
|
+
const _0x1cbe98 = _0x456b7e;
|
|
1562
|
+
if (_0x12853d == null)
|
|
1563
|
+
return _0x1cbe98(0x123);
|
|
1564
|
+
return _0x246673 != null ? '#' + _0x12853d + '.' + _0x246673 : '#' + _0x12853d;
|
|
1554
1565
|
}
|
|
1555
|
-
function formatClaimTaskResults(
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
},
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
if (_0x47d56d[_0x40e43a(0x1c9)]) {
|
|
1576
|
-
const _0x540bbf = formatClaimTaskLabel(_0x47d56d[_0x40e43a(0x2a7)], _0x47d56d['subtaskNumber']), _0xa5c581 = _0x47d56d['messageId'] ? _0x40e43a(_0x2a7346._0x25d15d) + _0x47d56d[_0x40e43a(0x176)] : '';
|
|
1577
|
-
if (_0x47d56d[_0x40e43a(0x247)]) {
|
|
1578
|
-
const _0x475657 = [
|
|
1566
|
+
function formatClaimTaskResults(_0x78e3d9) {
|
|
1567
|
+
const _0x5f10f3 = {
|
|
1568
|
+
_0x2b9f3b: 0x14e,
|
|
1569
|
+
_0x50ebc0: 0x170
|
|
1570
|
+
}, _0x1673ae = {
|
|
1571
|
+
_0x2e7631: 0x1cb,
|
|
1572
|
+
_0x56c505: 0x11e,
|
|
1573
|
+
_0x181574: 0x1d1,
|
|
1574
|
+
_0x10cf4e: 0x11a,
|
|
1575
|
+
_0x977bc3: 0x18b,
|
|
1576
|
+
_0x3f837c: 0x166
|
|
1577
|
+
}, _0x1107dd = _0x456b7e;
|
|
1578
|
+
if (_0x78e3d9[_0x1107dd(_0x5f10f3._0x2b9f3b)] === 0x0)
|
|
1579
|
+
return _0x1107dd(0x11d);
|
|
1580
|
+
return _0x78e3d9[_0x1107dd(0x241)](_0x39782d => {
|
|
1581
|
+
const _0x3cb16f = _0x1107dd;
|
|
1582
|
+
if (_0x39782d['success']) {
|
|
1583
|
+
const _0x4655d1 = formatClaimTaskLabel(_0x39782d[_0x3cb16f(_0x1673ae._0x2e7631)], _0x39782d[_0x3cb16f(_0x1673ae._0x56c505)]), _0x584eb9 = _0x39782d[_0x3cb16f(0x10b)] ? _0x3cb16f(0xf2) + _0x39782d['messageId'] : '';
|
|
1584
|
+
if (_0x39782d[_0x3cb16f(_0x1673ae._0x181574)]) {
|
|
1585
|
+
const _0x226348 = [
|
|
1579
1586
|
'workerHandoff=true',
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
][
|
|
1585
|
-
return
|
|
1587
|
+
_0x39782d[_0x3cb16f(_0x1673ae._0x10cf4e)] ? _0x3cb16f(0x156) : null,
|
|
1588
|
+
_0x39782d[_0x3cb16f(_0x1673ae._0x977bc3)] ? _0x3cb16f(0x236) + _0x39782d[_0x3cb16f(0x18b)] : null,
|
|
1589
|
+
_0x39782d[_0x3cb16f(0x1e1)] ? _0x3cb16f(0xfd) + _0x39782d[_0x3cb16f(0x1e1)] : null,
|
|
1590
|
+
_0x39782d[_0x3cb16f(0x215)] ? _0x3cb16f(_0x1673ae._0x3f837c) + _0x39782d[_0x3cb16f(0x215)] : null
|
|
1591
|
+
][_0x3cb16f(0x230)](Boolean)[_0x3cb16f(0x170)]('\x20');
|
|
1592
|
+
return _0x4655d1 + '\x20claimed' + _0x584eb9 + '\x20' + _0x226348 + _0x3cb16f(0x21d);
|
|
1586
1593
|
}
|
|
1587
|
-
|
|
1588
|
-
|
|
1594
|
+
if (_0x39782d[_0x3cb16f(_0x1673ae._0x977bc3)] === _0x3cb16f(0xda))
|
|
1595
|
+
return _0x4655d1 + _0x3cb16f(0x243) + _0x584eb9 + '\x20workerHandoff=false\x20executionMode=main\x0aStay\x20in\x20main\x20session:\x20read\x20the\x20referenced\x20plan/document\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20(or\x20otherwise\x20advance\x20the\x20task\x20in\x20main\x20without\x20handing\x20off\x20to\x20a\x20worker).';
|
|
1596
|
+
const _0x573466 = _0x39782d['workerHandoffError'] ? '\x20workerHandoff=false\x20error=' + _0x39782d['workerHandoffError'] : '';
|
|
1597
|
+
return _0x4655d1 + _0x3cb16f(0x243) + _0x584eb9 + _0x573466;
|
|
1589
1598
|
}
|
|
1590
|
-
const
|
|
1591
|
-
return
|
|
1592
|
-
})[
|
|
1599
|
+
const _0x504e34 = _0x39782d[_0x3cb16f(_0x1673ae._0x2e7631)] == null ? _0x39782d[_0x3cb16f(0x10b)] ?? _0x3cb16f(0x108) : formatClaimTaskLabel(_0x39782d[_0x3cb16f(_0x1673ae._0x2e7631)], _0x39782d['subtaskNumber']);
|
|
1600
|
+
return _0x504e34 + _0x3cb16f(0x21a) + (_0x39782d['reason'] ?? _0x3cb16f(0x20d));
|
|
1601
|
+
})[_0x1107dd(_0x5f10f3._0x50ebc0)]('\x0a');
|
|
1593
1602
|
}
|
|
1594
|
-
function formatUnclaimTaskResult(
|
|
1595
|
-
const
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1603
|
+
function formatUnclaimTaskResult(_0x2d7554) {
|
|
1604
|
+
const _0x18cf46 = {
|
|
1605
|
+
_0x4c4398: 0x123,
|
|
1606
|
+
_0x59b675: 0x1cb,
|
|
1607
|
+
_0x5d5b5e: 0xce,
|
|
1608
|
+
_0x475e26: 0x1b3
|
|
1609
|
+
}, _0x35ab71 = _0x456b7e, _0x3c2c60 = _0x2d7554[_0x35ab71(0x1cb)] == null ? _0x35ab71(_0x18cf46._0x4c4398) : _0x2d7554['subtaskNumber'] != null ? '#' + _0x2d7554[_0x35ab71(0x1cb)] + '.' + _0x2d7554[_0x35ab71(0x11e)] : '#' + _0x2d7554[_0x35ab71(_0x18cf46._0x59b675)];
|
|
1610
|
+
return _0x3c2c60 + _0x35ab71(_0x18cf46._0x5d5b5e) + _0x2d7554[_0x35ab71(_0x18cf46._0x475e26)];
|
|
1600
1611
|
}
|
|
1601
|
-
function formatUpdateTaskStatusResult(
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
_0x36d746: 0x250,
|
|
1607
|
-
_0x5444a5: 0x2b4
|
|
1608
|
-
}, _0x2c57de = _0x36c0a2, _0x4bfd64 = _0x3e9418[_0x2c57de(0x2a7)] == null ? _0x2c57de(_0x303877._0x38517d) : _0x3e9418[_0x2c57de(_0x303877._0x21913a)] != null ? '#' + _0x3e9418['taskNumber'] + '.' + _0x3e9418[_0x2c57de(0x2b3)] : '#' + _0x3e9418[_0x2c57de(0x2a7)], _0x2a6418 = _0x4bfd64 + _0x2c57de(0x2b7) + _0x3e9418[_0x2c57de(_0x303877._0x2538b7)];
|
|
1609
|
-
if (_0x3e9418[_0x2c57de(0x2b0)] !== _0x2c57de(_0x303877._0x36d746))
|
|
1610
|
-
return _0x2a6418;
|
|
1611
|
-
return _0x2a6418 + _0x2c57de(_0x303877._0x5444a5);
|
|
1612
|
+
function formatUpdateTaskStatusResult(_0x2385e6) {
|
|
1613
|
+
const _0x5d60ff = { _0x15d018: 0x218 }, _0x97156f = _0x456b7e, _0x36b860 = _0x2385e6['taskNumber'] == null ? '(legacy)' : _0x2385e6['subtaskNumber'] != null ? '#' + _0x2385e6[_0x97156f(0x1cb)] + '.' + _0x2385e6['subtaskNumber'] : '#' + _0x2385e6['taskNumber'], _0xa5afb7 = _0x36b860 + _0x97156f(0xce) + _0x2385e6[_0x97156f(0x1b3)];
|
|
1614
|
+
if (_0x2385e6[_0x97156f(0x1b3)] !== 'in_review')
|
|
1615
|
+
return _0xa5afb7;
|
|
1616
|
+
return _0xa5afb7 + _0x97156f(_0x5d60ff._0x15d018);
|
|
1612
1617
|
}
|
|
1613
1618
|
function getChatBridgeToolDefinitions() {
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
_0x6448b7: 0x272
|
|
1623
|
-
}, _0x5ceb9e = _0x36c0a2;
|
|
1619
|
+
const _0x285873 = {
|
|
1620
|
+
_0x5a9291: 0x267,
|
|
1621
|
+
_0x4fc75c: 0x1c8,
|
|
1622
|
+
_0x20cd82: 0x24a,
|
|
1623
|
+
_0x1b103e: 0x220,
|
|
1624
|
+
_0x584e7d: 0x244,
|
|
1625
|
+
_0x23fd2e: 0x14f
|
|
1626
|
+
}, _0x51ffbe = _0x456b7e;
|
|
1624
1627
|
return [
|
|
1625
|
-
{ 'name':
|
|
1626
|
-
{ 'name':
|
|
1627
|
-
{ 'name':
|
|
1628
|
-
{ 'name':
|
|
1629
|
-
{ 'name':
|
|
1630
|
-
{ 'name':
|
|
1631
|
-
{ 'name':
|
|
1632
|
-
{ 'name':
|
|
1628
|
+
{ 'name': _0x51ffbe(_0x285873._0x5a9291) },
|
|
1629
|
+
{ 'name': _0x51ffbe(0x1b5) },
|
|
1630
|
+
{ 'name': _0x51ffbe(0x21c) },
|
|
1631
|
+
{ 'name': _0x51ffbe(_0x285873._0x4fc75c) },
|
|
1632
|
+
{ 'name': 'upload_file' },
|
|
1633
|
+
{ 'name': _0x51ffbe(_0x285873._0x20cd82) },
|
|
1634
|
+
{ 'name': _0x51ffbe(0x1a4) },
|
|
1635
|
+
{ 'name': _0x51ffbe(0x15d) },
|
|
1633
1636
|
{ 'name': 'claim_tasks' },
|
|
1634
|
-
{ 'name':
|
|
1635
|
-
{ 'name':
|
|
1636
|
-
{ 'name':
|
|
1637
|
-
{ 'name':
|
|
1638
|
-
{ 'name':
|
|
1639
|
-
{ 'name':
|
|
1637
|
+
{ 'name': _0x51ffbe(0x152) },
|
|
1638
|
+
{ 'name': _0x51ffbe(0x135) },
|
|
1639
|
+
{ 'name': 'get_worker_status' },
|
|
1640
|
+
{ 'name': _0x51ffbe(_0x285873._0x1b103e) },
|
|
1641
|
+
{ 'name': _0x51ffbe(_0x285873._0x584e7d) },
|
|
1642
|
+
{ 'name': _0x51ffbe(_0x285873._0x23fd2e) }
|
|
1640
1643
|
];
|
|
1641
1644
|
}
|
|
1642
|
-
function createChatBridgeHandlers(
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
},
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
},
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
},
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
},
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
},
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
},
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
},
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
},
|
|
1776
|
-
function
|
|
1777
|
-
const
|
|
1778
|
-
if (!
|
|
1645
|
+
function createChatBridgeHandlers(_0x426032) {
|
|
1646
|
+
const _0x54f868 = {
|
|
1647
|
+
_0x221227: 0x203,
|
|
1648
|
+
_0x52d917: 0x22b
|
|
1649
|
+
}, _0x315d8f = {
|
|
1650
|
+
_0x56e4e5: 0xf0,
|
|
1651
|
+
_0x4b6c33: 0x1c1,
|
|
1652
|
+
_0x4c5eb3: 0x1f0,
|
|
1653
|
+
_0x1f3988: 0x11c,
|
|
1654
|
+
_0x316549: 0x19f
|
|
1655
|
+
}, _0x593e2b = {
|
|
1656
|
+
_0x1b19db: 0x1cd,
|
|
1657
|
+
_0x57ad0f: 0x1cd,
|
|
1658
|
+
_0x2940da: 0x1bc,
|
|
1659
|
+
_0x261320: 0x246,
|
|
1660
|
+
_0x13f8af: 0x17c,
|
|
1661
|
+
_0x36e777: 0x11c,
|
|
1662
|
+
_0x43abb3: 0xf1
|
|
1663
|
+
}, _0x1ac5bd = {
|
|
1664
|
+
_0x59ddbe: 0xf0,
|
|
1665
|
+
_0x25eaaa: 0xf7,
|
|
1666
|
+
_0x2e1ec1: 0x118,
|
|
1667
|
+
_0x232ae3: 0x11c
|
|
1668
|
+
}, _0x18820b = {
|
|
1669
|
+
_0x366400: 0xf0,
|
|
1670
|
+
_0x4e8d9f: 0x1cd,
|
|
1671
|
+
_0x417989: 0xdd,
|
|
1672
|
+
_0x5eb744: 0x11c,
|
|
1673
|
+
_0xc42dc4: 0x178
|
|
1674
|
+
}, _0x35f6b3 = {
|
|
1675
|
+
_0x1441bc: 0x20f,
|
|
1676
|
+
_0x3cdc29: 0xe7,
|
|
1677
|
+
_0x4d47b6: 0x20f,
|
|
1678
|
+
_0x4a3d27: 0x155,
|
|
1679
|
+
_0x237df3: 0x194
|
|
1680
|
+
}, _0x58dbea = {
|
|
1681
|
+
_0x2c8c89: 0x1ad,
|
|
1682
|
+
_0x4ea3fa: 0x260
|
|
1683
|
+
}, _0x3b3f48 = {
|
|
1684
|
+
_0x1a26ce: 0x1c9,
|
|
1685
|
+
_0x3cb50b: 0x1ad
|
|
1686
|
+
}, _0x35b78f = {
|
|
1687
|
+
_0x502628: 0x1c9,
|
|
1688
|
+
_0x2072d1: 0x146,
|
|
1689
|
+
_0x328e84: 0x157,
|
|
1690
|
+
_0x5979fb: 0x19a
|
|
1691
|
+
}, _0x5ebfee = {
|
|
1692
|
+
_0x115c84: 0x11b,
|
|
1693
|
+
_0x1e3c97: 0x114
|
|
1694
|
+
}, _0x1b1923 = {
|
|
1695
|
+
_0x49e3a2: 0x15d,
|
|
1696
|
+
_0x2548b5: 0x260
|
|
1697
|
+
}, _0x19e8a8 = {
|
|
1698
|
+
_0x277298: 0xe4,
|
|
1699
|
+
_0x374740: 0x1ad,
|
|
1700
|
+
_0xabe07a: 0x1fe,
|
|
1701
|
+
_0x281a34: 0x1b3,
|
|
1702
|
+
_0x3ad6ad: 0x1d3,
|
|
1703
|
+
_0x8b1d80: 0x101,
|
|
1704
|
+
_0x184ec9: 0x1cb,
|
|
1705
|
+
_0x5e8168: 0xe9
|
|
1706
|
+
}, _0x25bc1b = { _0x389cc2: 0x177 }, _0x177ec9 = {
|
|
1707
|
+
_0x3dea28: 0x260,
|
|
1708
|
+
_0x2720c7: 0x233,
|
|
1709
|
+
_0x5bdc6e: 0x1c9,
|
|
1710
|
+
_0x2a231e: 0x258
|
|
1711
|
+
}, _0x56df03 = {
|
|
1712
|
+
_0x22f5ec: 0x1c9,
|
|
1713
|
+
_0x498eb6: 0x19e,
|
|
1714
|
+
_0x2ad7df: 0x1a9,
|
|
1715
|
+
_0x34f556: 0x123,
|
|
1716
|
+
_0x5f2094: 0x17e,
|
|
1717
|
+
_0x298e57: 0x1f7,
|
|
1718
|
+
_0x2f806c: 0x170,
|
|
1719
|
+
_0x50a197: 0x254,
|
|
1720
|
+
_0x46e85e: 0x224,
|
|
1721
|
+
_0x4b74dc: 0xd6,
|
|
1722
|
+
_0x4fb762: 0xfa,
|
|
1723
|
+
_0x36e084: 0x1e9,
|
|
1724
|
+
_0x1856bb: 0x1a9,
|
|
1725
|
+
_0x1565e1: 0x192,
|
|
1726
|
+
_0x553d3a: 0x131,
|
|
1727
|
+
_0x4741e5: 0x1cd,
|
|
1728
|
+
_0x590593: 0x1a5,
|
|
1729
|
+
_0x4a1f2d: 0x261,
|
|
1730
|
+
_0x5cd840: 0x1c5,
|
|
1731
|
+
_0x4981a8: 0x1c5,
|
|
1732
|
+
_0x44186d: 0x1b1,
|
|
1733
|
+
_0x558fdf: 0xfa,
|
|
1734
|
+
_0x3631ab: 0x1eb,
|
|
1735
|
+
_0x5783bc: 0x132,
|
|
1736
|
+
_0x2bd631: 0x1eb,
|
|
1737
|
+
_0xe3c43e: 0x1db,
|
|
1738
|
+
_0x164c88: 0x10b
|
|
1739
|
+
}, _0x40318a = {
|
|
1740
|
+
_0x2fd00c: 0x1cd,
|
|
1741
|
+
_0x5ca30f: 0x1fe,
|
|
1742
|
+
_0x4e15d1: 0x127,
|
|
1743
|
+
_0x42669d: 0x18d
|
|
1744
|
+
}, _0x1981a3 = {
|
|
1745
|
+
_0x31cd0b: 0x1cd,
|
|
1746
|
+
_0x161fe1: 0x17c,
|
|
1747
|
+
_0x1f1032: 0x17c,
|
|
1748
|
+
_0x405080: 0x1fe,
|
|
1749
|
+
_0x59002b: 0x1b3,
|
|
1750
|
+
_0x20070e: 0x266
|
|
1751
|
+
}, _0x11881a = {
|
|
1752
|
+
_0x3ce41b: 0x1ad,
|
|
1753
|
+
_0x38fc6e: 0x1cb,
|
|
1754
|
+
_0x39fbda: 0x110,
|
|
1755
|
+
_0x5e9cb6: 0xf4,
|
|
1756
|
+
_0x1741cd: 0x260,
|
|
1757
|
+
_0x11b85: 0x1d6,
|
|
1758
|
+
_0x4eb5b2: 0x123,
|
|
1759
|
+
_0x50f30b: 0x1cb,
|
|
1760
|
+
_0x28ad12: 0x1c6,
|
|
1761
|
+
_0x1436fc: 0x102,
|
|
1762
|
+
_0x2a7e80: 0x1ab,
|
|
1763
|
+
_0x1060de: 0x11f,
|
|
1764
|
+
_0x1f5b49: 0x1cd,
|
|
1765
|
+
_0x5ad3de: 0x1f0,
|
|
1766
|
+
_0x1bd4c4: 0xf7,
|
|
1767
|
+
_0x54a90c: 0x246,
|
|
1768
|
+
_0x2def80: 0x1a1,
|
|
1769
|
+
_0x1e7c69: 0x130,
|
|
1770
|
+
_0xf9a06: 0x141,
|
|
1771
|
+
_0x225bfe: 0x114,
|
|
1772
|
+
_0xf8a61f: 0x1c5,
|
|
1773
|
+
_0x2c6fd9: 0x216,
|
|
1774
|
+
_0x2e7c89: 0x184
|
|
1775
|
+
}, _0xfe80da = {
|
|
1776
|
+
_0x103708: 0x16b,
|
|
1777
|
+
_0x5212ab: 0xd7
|
|
1778
|
+
}, _0x4a2133 = _0x456b7e;
|
|
1779
|
+
function _0x23b41b(_0x3abe93, _0x5bbd32) {
|
|
1780
|
+
const _0x5fec40 = _0x15bc;
|
|
1781
|
+
if (!_0x426032[_0x5fec40(0x1c9)])
|
|
1779
1782
|
return;
|
|
1780
|
-
if (!
|
|
1781
|
-
throw new Error(
|
|
1782
|
-
if (
|
|
1783
|
-
throw new Error(
|
|
1783
|
+
if (!_0x426032[_0x5fec40(0xd7)])
|
|
1784
|
+
throw new Error(_0x3abe93 + _0x5fec40(_0xfe80da._0x103708));
|
|
1785
|
+
if (_0x5bbd32 !== _0x426032[_0x5fec40(_0xfe80da._0x5212ab)])
|
|
1786
|
+
throw new Error(_0x3abe93 + _0x5fec40(0x145) + _0x426032[_0x5fec40(0xd7)] + ');\x20got\x20channel=' + _0x5bbd32);
|
|
1784
1787
|
}
|
|
1785
|
-
async function
|
|
1786
|
-
const
|
|
1787
|
-
if (!
|
|
1788
|
+
async function _0x5ad0af(_0x1f2e44) {
|
|
1789
|
+
const _0x7da62a = _0x15bc;
|
|
1790
|
+
if (!_0x426032[_0x7da62a(0x1cd)] || !_0x426032[_0x7da62a(0x17c)] || _0x426032[_0x7da62a(0x1c9)] || _0x426032['workerModeEnabled'] !== !![])
|
|
1788
1791
|
return null;
|
|
1789
|
-
const
|
|
1790
|
-
if (
|
|
1792
|
+
const _0x29e32f = parseTarget(_0x1f2e44[_0x7da62a(_0x11881a._0x3ce41b)]);
|
|
1793
|
+
if (_0x29e32f[_0x7da62a(0xfb)] !== _0x7da62a(_0x11881a._0x3ce41b))
|
|
1791
1794
|
return null;
|
|
1792
|
-
|
|
1793
|
-
|
|
1795
|
+
if (_0x1f2e44[_0x7da62a(0x18b)] === 'main') {
|
|
1796
|
+
const _0x2a5919 = _0x1f2e44[_0x7da62a(_0x11881a._0x38fc6e)] == null ? _0x7da62a(0x123) : '#' + _0x1f2e44[_0x7da62a(0x1cb)];
|
|
1797
|
+
return {
|
|
1798
|
+
'executionMode': _0x7da62a(0xda),
|
|
1799
|
+
'stopMain': ![],
|
|
1800
|
+
'workerHandoff': ![],
|
|
1801
|
+
'workerHandoffError': _0x7da62a(0x259) + _0x2a5919 + '\x20stays\x20in\x20main\x20session\x20(executionMode=main);\x20remain\x20here,\x20read\x20the\x20referenced\x20plan/document,\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20if\x20that\x20is\x20the\x20intent.'
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
const _0x2027d3 = _0x1f2e44['threadNumber'] != null ? _0x29e32f[_0x7da62a(0xf4)] + ':t' + _0x1f2e44[_0x7da62a(_0x11881a._0x39fbda)] : _0x29e32f[_0x7da62a(_0x11881a._0x5e9cb6)] + ':' + _0x1f2e44[_0x7da62a(0x10b)];
|
|
1805
|
+
let _0x1f0f7a;
|
|
1794
1806
|
try {
|
|
1795
|
-
const
|
|
1796
|
-
'channel':
|
|
1807
|
+
const _0x5e1575 = await _0x426032[_0x7da62a(_0x11881a._0x1741cd)][_0x7da62a(_0x11881a._0x11b85)]({
|
|
1808
|
+
'channel': _0x2027d3,
|
|
1797
1809
|
'limit': 0x14
|
|
1798
1810
|
});
|
|
1799
|
-
|
|
1811
|
+
_0x1f0f7a = _0x5e1575[_0x7da62a(0x258)]['find'](_0x52d761 => _0x52d761[_0x7da62a(0x10b)] === _0x1f2e44[_0x7da62a(0x10b)]);
|
|
1800
1812
|
} catch {
|
|
1801
|
-
|
|
1813
|
+
_0x1f0f7a = void 0x0;
|
|
1802
1814
|
}
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1815
|
+
const _0x19cc43 = _0x1f2e44[_0x7da62a(0x1cb)] == null ? _0x7da62a(_0x11881a._0x4eb5b2) : '#' + _0x1f2e44[_0x7da62a(_0x11881a._0x50f30b)], _0x18d6b7 = [
|
|
1816
|
+
_0x7da62a(0x180) + _0x2027d3 + _0x7da62a(_0x11881a._0x28ad12) + _0x1f2e44['messageId'][_0x7da62a(0x205)](0x0, 0x8) + '\x20time=' + new Date()[_0x7da62a(_0x11881a._0x1436fc)]() + _0x7da62a(_0x11881a._0x2a7e80) + _0x19cc43 + _0x7da62a(0xf6),
|
|
1805
1817
|
'',
|
|
1806
|
-
|
|
1818
|
+
_0x1f0f7a ? 'Root\x20task\x20message:\x0a' + _0x1f0f7a[_0x7da62a(0xfa)] : _0x7da62a(_0x11881a._0x1060de) + _0x1f2e44[_0x7da62a(0x10b)],
|
|
1807
1819
|
'',
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
][
|
|
1811
|
-
'method':
|
|
1812
|
-
'headers': { 'Content-Type':
|
|
1813
|
-
'body': JSON[
|
|
1814
|
-
'agent_id':
|
|
1815
|
-
'thread_target':
|
|
1820
|
+
_0x7da62a(0x192) + _0x2027d3,
|
|
1821
|
+
_0x7da62a(0x264)
|
|
1822
|
+
]['join']('\x0a'), _0xcea726 = await fetch(_0x426032[_0x7da62a(_0x11881a._0x1f5b49)] + '/workers/deliver', {
|
|
1823
|
+
'method': _0x7da62a(_0x11881a._0x5ad3de),
|
|
1824
|
+
'headers': { 'Content-Type': _0x7da62a(_0x11881a._0x1bd4c4) },
|
|
1825
|
+
'body': JSON[_0x7da62a(_0x11881a._0x54a90c)]({
|
|
1826
|
+
'agent_id': _0x426032['agentId'],
|
|
1827
|
+
'thread_target': _0x2027d3,
|
|
1816
1828
|
'spawn_packet': {
|
|
1817
|
-
'replyTarget':
|
|
1818
|
-
...
|
|
1829
|
+
'replyTarget': _0x2027d3,
|
|
1830
|
+
..._0x1f2e44['taskId'] ? { 'taskId': _0x1f2e44[_0x7da62a(0x11b)] } : _0x1f2e44[_0x7da62a(_0x11881a._0x50f30b)] != null ? { 'taskId': _0x7da62a(_0x11881a._0x2def80) + _0x1f2e44[_0x7da62a(_0x11881a._0x38fc6e)] } : {}
|
|
1819
1831
|
},
|
|
1820
1832
|
'payload': {
|
|
1821
|
-
'mode':
|
|
1822
|
-
'text':
|
|
1833
|
+
'mode': 'user',
|
|
1834
|
+
'text': _0x18d6b7
|
|
1823
1835
|
}
|
|
1824
1836
|
})
|
|
1825
|
-
}),
|
|
1826
|
-
if (!
|
|
1827
|
-
throw new Error(
|
|
1837
|
+
}), _0x186178 = await _0xcea726[_0x7da62a(_0x11881a._0x1e7c69)]();
|
|
1838
|
+
if (!_0x186178['ok'])
|
|
1839
|
+
throw new Error(_0x186178[_0x7da62a(_0x11881a._0xf9a06)] ?? _0x7da62a(_0x11881a._0x225bfe));
|
|
1828
1840
|
return {
|
|
1829
1841
|
'stopMain': !![],
|
|
1830
|
-
'threadTarget':
|
|
1831
|
-
'workerDisposition':
|
|
1842
|
+
'threadTarget': _0x2027d3,
|
|
1843
|
+
'workerDisposition': _0x186178[_0x7da62a(0x10e)] === _0x7da62a(_0x11881a._0xf8a61f) ? _0x7da62a(_0x11881a._0xf8a61f) : _0x7da62a(0x198),
|
|
1832
1844
|
'workerHandoff': !![],
|
|
1833
|
-
'workerSessionId':
|
|
1834
|
-
'executionMode':
|
|
1845
|
+
'workerSessionId': _0x186178[_0x7da62a(_0x11881a._0x2c6fd9)] ?? '',
|
|
1846
|
+
'executionMode': _0x7da62a(_0x11881a._0x2e7c89)
|
|
1835
1847
|
};
|
|
1836
1848
|
}
|
|
1837
|
-
async function
|
|
1838
|
-
const
|
|
1839
|
-
if (!
|
|
1849
|
+
async function _0x5c22dd() {
|
|
1850
|
+
const _0x440c9c = _0x15bc;
|
|
1851
|
+
if (!_0x426032[_0x440c9c(_0x1981a3._0x31cd0b)] || !_0x426032[_0x440c9c(_0x1981a3._0x161fe1)] || _0x426032['workerMode'])
|
|
1840
1852
|
return null;
|
|
1841
1853
|
try {
|
|
1842
|
-
const
|
|
1843
|
-
if (!
|
|
1854
|
+
const _0xe48c40 = await fetch(_0x426032[_0x440c9c(0x1cd)] + '/workers/list?agent_id=' + encodeURIComponent(_0x426032[_0x440c9c(_0x1981a3._0x1f1032)])), _0x230a9c = await _0xe48c40[_0x440c9c(0x130)]();
|
|
1855
|
+
if (!_0x230a9c['ok'])
|
|
1844
1856
|
return null;
|
|
1845
|
-
const
|
|
1846
|
-
for (const
|
|
1847
|
-
|
|
1857
|
+
const _0x352ebb = new Set();
|
|
1858
|
+
for (const _0x59225a of _0x230a9c[_0x440c9c(_0x1981a3._0x405080)]) {
|
|
1859
|
+
_0x59225a[_0x440c9c(_0x1981a3._0x59002b)] !== _0x440c9c(0x1d3) && _0x59225a[_0x440c9c(_0x1981a3._0x20070e)] && _0x352ebb['add'](_0x59225a[_0x440c9c(0x266)]);
|
|
1848
1860
|
}
|
|
1849
|
-
return
|
|
1861
|
+
return _0x352ebb['size'] > 0x0 ? _0x352ebb : null;
|
|
1850
1862
|
} catch {
|
|
1851
1863
|
return null;
|
|
1852
1864
|
}
|
|
1853
1865
|
}
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1866
|
+
const _0x5d1d09 = new Set([
|
|
1867
|
+
_0x4a2133(_0x54f868._0x221227),
|
|
1868
|
+
_0x4a2133(0x128),
|
|
1869
|
+
_0x4a2133(_0x54f868._0x52d917)
|
|
1858
1870
|
]);
|
|
1859
|
-
async function
|
|
1860
|
-
const
|
|
1861
|
-
if (!
|
|
1871
|
+
async function _0x48e866() {
|
|
1872
|
+
const _0x577ac5 = _0x4a2133;
|
|
1873
|
+
if (!_0x426032[_0x577ac5(_0x40318a._0x2fd00c)] || !_0x426032['agentId'] || _0x426032[_0x577ac5(0x1c9)])
|
|
1862
1874
|
return null;
|
|
1863
1875
|
try {
|
|
1864
|
-
const
|
|
1865
|
-
if (!
|
|
1876
|
+
const _0x495c65 = await fetch(_0x426032[_0x577ac5(_0x40318a._0x2fd00c)] + '/workers/list?agent_id=' + encodeURIComponent(_0x426032['agentId'])), _0x1ee54f = await _0x495c65['json']();
|
|
1877
|
+
if (!_0x1ee54f['ok'])
|
|
1866
1878
|
return null;
|
|
1867
|
-
const
|
|
1868
|
-
for (const
|
|
1869
|
-
|
|
1879
|
+
const _0x15ca1a = new Set();
|
|
1880
|
+
for (const _0x48cdbd of _0x1ee54f[_0x577ac5(_0x40318a._0x5ca30f)]) {
|
|
1881
|
+
_0x5d1d09[_0x577ac5(_0x40318a._0x4e15d1)](_0x48cdbd['status']) && _0x48cdbd[_0x577ac5(0x266)] && _0x15ca1a['add'](_0x48cdbd[_0x577ac5(0x266)]);
|
|
1870
1882
|
}
|
|
1871
|
-
return
|
|
1883
|
+
return _0x15ca1a[_0x577ac5(_0x40318a._0x42669d)] > 0x0 ? _0x15ca1a : null;
|
|
1872
1884
|
} catch {
|
|
1873
1885
|
return null;
|
|
1874
1886
|
}
|
|
1875
1887
|
}
|
|
1876
1888
|
return {
|
|
1877
|
-
async 'send_message'(
|
|
1878
|
-
const
|
|
1879
|
-
if (!
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1882
|
-
const
|
|
1883
|
-
if (
|
|
1889
|
+
async 'send_message'(_0x205b9a) {
|
|
1890
|
+
const _0x857d8d = _0x4a2133;
|
|
1891
|
+
if (!_0x426032[_0x857d8d(_0x56df03._0x22f5ec)] && _0x426032[_0x857d8d(0x12a)] && _0x426032['daemonLocalUrl'] && _0x426032['agentId']) {
|
|
1892
|
+
const _0xd01cd7 = await _0x426032[_0x857d8d(0x260)][_0x857d8d(0x229)](_0x205b9a['target']);
|
|
1893
|
+
if (_0xd01cd7['task'] && _0xd01cd7[_0x857d8d(_0x56df03._0x498eb6)]) {
|
|
1894
|
+
const _0x5d1757 = _0xd01cd7[_0x857d8d(_0x56df03._0x2ad7df)][_0x857d8d(0x1cb)] != null ? '#' + _0xd01cd7[_0x857d8d(0x1a9)]['taskNumber'] : _0x857d8d(_0x56df03._0x34f556), _0x2f75b3 = _0xd01cd7[_0x857d8d(0x110)] != null ? _0xd01cd7[_0x857d8d(0x1eb)] + ':t' + _0xd01cd7[_0x857d8d(0x110)] : _0xd01cd7['target'] + ':' + _0xd01cd7[_0x857d8d(0x19e)][_0x857d8d(0x205)](0x0, 0x8), _0x3809c1 = await _0x48e866();
|
|
1895
|
+
if (_0x3809c1?.['has'](_0x2f75b3))
|
|
1884
1896
|
return [
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
][
|
|
1888
|
-
const
|
|
1889
|
-
'[target=' +
|
|
1897
|
+
_0x857d8d(_0x56df03._0x5f2094) + _0x5d1757 + _0x857d8d(_0x56df03._0x298e57) + _0x2f75b3 + _0x857d8d(0x1e5),
|
|
1898
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1899
|
+
][_0x857d8d(_0x56df03._0x2f806c)]('\x0a');
|
|
1900
|
+
const _0x28cfea = [
|
|
1901
|
+
'[target=' + _0x2f75b3 + _0x857d8d(_0x56df03._0x50a197) + new Date()[_0x857d8d(0x102)]() + _0x857d8d(_0x56df03._0x46e85e),
|
|
1890
1902
|
'',
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
][
|
|
1896
|
-
'method':
|
|
1897
|
-
'headers': { 'Content-Type':
|
|
1898
|
-
'body': JSON[
|
|
1899
|
-
'agent_id':
|
|
1900
|
-
'thread_target':
|
|
1903
|
+
_0x857d8d(_0x56df03._0x4b74dc) + _0x205b9a[_0x857d8d(_0x56df03._0x4fb762)],
|
|
1904
|
+
_0x857d8d(_0x56df03._0x36e084) + _0x5d1757 + '\x20(' + _0xd01cd7[_0x857d8d(_0x56df03._0x1856bb)]['taskId'] + ')',
|
|
1905
|
+
_0x857d8d(_0x56df03._0x1565e1) + _0x2f75b3,
|
|
1906
|
+
_0x857d8d(_0x56df03._0x553d3a)
|
|
1907
|
+
][_0x857d8d(0x170)]('\x0a'), _0x2c2ea8 = await fetch(_0x426032[_0x857d8d(_0x56df03._0x4741e5)] + _0x857d8d(0x111), {
|
|
1908
|
+
'method': 'POST',
|
|
1909
|
+
'headers': { 'Content-Type': _0x857d8d(0xf7) },
|
|
1910
|
+
'body': JSON['stringify']({
|
|
1911
|
+
'agent_id': _0x426032[_0x857d8d(0x17c)],
|
|
1912
|
+
'thread_target': _0x2f75b3,
|
|
1901
1913
|
'spawn_packet': {
|
|
1902
|
-
'replyTarget':
|
|
1903
|
-
'taskId':
|
|
1914
|
+
'replyTarget': _0x2f75b3,
|
|
1915
|
+
'taskId': _0xd01cd7['task'][_0x857d8d(0x11b)]
|
|
1904
1916
|
},
|
|
1905
1917
|
'payload': {
|
|
1906
|
-
'mode':
|
|
1907
|
-
'text':
|
|
1918
|
+
'mode': _0x857d8d(0x115),
|
|
1919
|
+
'text': _0x28cfea
|
|
1908
1920
|
}
|
|
1909
1921
|
})
|
|
1910
|
-
}),
|
|
1911
|
-
if (!
|
|
1912
|
-
throw new Error(
|
|
1922
|
+
}), _0x27f886 = await _0x2c2ea8[_0x857d8d(0x130)]();
|
|
1923
|
+
if (!_0x27f886['ok'])
|
|
1924
|
+
throw new Error(_0x27f886['error'] ?? _0x857d8d(_0x56df03._0x590593));
|
|
1913
1925
|
return [
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
][
|
|
1926
|
+
_0x857d8d(0xff) + _0x5d1757 + '\x20in\x20' + _0x2f75b3 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1927
|
+
_0x857d8d(_0x56df03._0x4a1f2d) + (_0x27f886['disposition'] === _0x857d8d(_0x56df03._0x5cd840) ? _0x857d8d(_0x56df03._0x4981a8) : 'started') + '.',
|
|
1928
|
+
_0x857d8d(0x13c)
|
|
1929
|
+
][_0x857d8d(0x170)]('\x0a');
|
|
1918
1930
|
}
|
|
1919
1931
|
}
|
|
1920
|
-
const
|
|
1921
|
-
'attachmentIds':
|
|
1922
|
-
'content':
|
|
1923
|
-
'target':
|
|
1924
|
-
'visibility':
|
|
1932
|
+
const _0x907006 = await _0x426032[_0x857d8d(0x260)][_0x857d8d(_0x56df03._0x44186d)]({
|
|
1933
|
+
'attachmentIds': _0x205b9a[_0x857d8d(0x174)],
|
|
1934
|
+
'content': _0x205b9a[_0x857d8d(_0x56df03._0x558fdf)],
|
|
1935
|
+
'target': _0x205b9a[_0x857d8d(_0x56df03._0x3631ab)],
|
|
1936
|
+
'visibility': _0x205b9a[_0x857d8d(0x16a)]
|
|
1925
1937
|
});
|
|
1926
|
-
return
|
|
1938
|
+
return _0x857d8d(_0x56df03._0x5783bc) + _0x205b9a[_0x857d8d(_0x56df03._0x2bd631)] + _0x857d8d(_0x56df03._0xe3c43e) + _0x907006[_0x857d8d(_0x56df03._0x164c88)];
|
|
1927
1939
|
},
|
|
1928
1940
|
async 'check_messages'() {
|
|
1929
|
-
const
|
|
1930
|
-
if (!
|
|
1931
|
-
const
|
|
1932
|
-
if (
|
|
1933
|
-
return formatCheckMessages(
|
|
1941
|
+
const _0x3d9569 = _0x4a2133, _0x415f29 = await _0x426032[_0x3d9569(_0x177ec9._0x3dea28)][_0x3d9569(_0x177ec9._0x2720c7)]();
|
|
1942
|
+
if (!_0x426032[_0x3d9569(_0x177ec9._0x5bdc6e)]) {
|
|
1943
|
+
const _0x14bd0d = await _0x5c22dd();
|
|
1944
|
+
if (_0x14bd0d)
|
|
1945
|
+
return formatCheckMessages(_0x415f29[_0x3d9569(_0x177ec9._0x2a231e)]['filter'](_0x59240 => !_0x14bd0d[_0x3d9569(0x127)](_0x59240[_0x3d9569(0x1eb)])));
|
|
1934
1946
|
}
|
|
1935
|
-
return formatCheckMessages(
|
|
1947
|
+
return formatCheckMessages(_0x415f29['messages']);
|
|
1936
1948
|
},
|
|
1937
|
-
async 'read_history'(
|
|
1938
|
-
const
|
|
1939
|
-
return formatHistory(
|
|
1949
|
+
async 'read_history'(_0x3831fb) {
|
|
1950
|
+
const _0x17023c = _0x4a2133, _0x343e09 = await _0x426032[_0x17023c(0x260)]['readHistory'](_0x3831fb);
|
|
1951
|
+
return formatHistory(_0x343e09);
|
|
1940
1952
|
},
|
|
1941
1953
|
async 'list_server'() {
|
|
1942
|
-
const
|
|
1943
|
-
return formatServerDirectory(
|
|
1954
|
+
const _0x1dcee8 = _0x4a2133, _0x32f958 = await _0x426032[_0x1dcee8(0x260)][_0x1dcee8(_0x25bc1b._0x389cc2)]();
|
|
1955
|
+
return formatServerDirectory(_0x32f958);
|
|
1944
1956
|
},
|
|
1945
|
-
async 'list_tasks'(
|
|
1946
|
-
const
|
|
1947
|
-
let
|
|
1948
|
-
if (
|
|
1957
|
+
async 'list_tasks'(_0x44a80a) {
|
|
1958
|
+
const _0x3842e7 = _0x4a2133, _0x2a0759 = await _0x426032['client'][_0x3842e7(0x1e7)](_0x44a80a);
|
|
1959
|
+
let _0x45b1c4;
|
|
1960
|
+
if (_0x426032[_0x3842e7(0x1cd)] && _0x426032[_0x3842e7(0x17c)])
|
|
1949
1961
|
try {
|
|
1950
|
-
const
|
|
1951
|
-
if (
|
|
1952
|
-
const
|
|
1953
|
-
|
|
1954
|
-
for (const
|
|
1955
|
-
if (
|
|
1962
|
+
const _0x2d4c75 = await fetch(_0x426032['daemonLocalUrl'] + _0x3842e7(_0x19e8a8._0x277298) + encodeURIComponent(_0x426032['agentId'])), _0x239d48 = await _0x2d4c75['json']();
|
|
1963
|
+
if (_0x239d48['ok']) {
|
|
1964
|
+
const _0x2feecf = _0x44a80a[_0x3842e7(_0x19e8a8._0x374740)] + ':';
|
|
1965
|
+
_0x45b1c4 = new Set();
|
|
1966
|
+
for (const _0xc20656 of _0x239d48[_0x3842e7(_0x19e8a8._0xabe07a)]) {
|
|
1967
|
+
if (_0xc20656[_0x3842e7(_0x19e8a8._0x281a34)] === _0x3842e7(_0x19e8a8._0x3ad6ad))
|
|
1956
1968
|
continue;
|
|
1957
|
-
if (
|
|
1958
|
-
const
|
|
1959
|
-
if (
|
|
1960
|
-
|
|
1969
|
+
if (_0xc20656[_0x3842e7(0x266)]?.[_0x3842e7(_0x19e8a8._0x8b1d80)](_0x2feecf)) {
|
|
1970
|
+
const _0x441810 = _0xc20656[_0x3842e7(0x266)][_0x3842e7(0x205)](_0x2feecf['length']), _0x5c301f = _0x2a0759[_0x3842e7(0x19d)][_0x3842e7(0x147)](_0x326f3c => _0x326f3c[_0x3842e7(0x10b)]?.[_0x3842e7(0x101)](_0x441810) === !![]);
|
|
1971
|
+
if (_0x5c301f?.[_0x3842e7(0x1cb)] != null) {
|
|
1972
|
+
_0x45b1c4[_0x3842e7(0xe9)](_0x5c301f[_0x3842e7(0x1cb)]);
|
|
1961
1973
|
continue;
|
|
1962
1974
|
}
|
|
1963
1975
|
}
|
|
1964
|
-
if (
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1976
|
+
if (_0xc20656[_0x3842e7(0x23f)]) {
|
|
1977
|
+
const _0x573957 = _0x2a0759[_0x3842e7(0x19d)]['find'](_0x11881f => _0x11881f[_0x3842e7(0x11b)] === _0xc20656['task_id']);
|
|
1978
|
+
_0x573957?.[_0x3842e7(_0x19e8a8._0x184ec9)] != null && _0x45b1c4[_0x3842e7(_0x19e8a8._0x5e8168)](_0x573957[_0x3842e7(0x1cb)]);
|
|
1967
1979
|
}
|
|
1968
1980
|
}
|
|
1969
1981
|
}
|
|
1970
1982
|
} catch {
|
|
1971
1983
|
}
|
|
1972
|
-
return formatTaskList(
|
|
1984
|
+
return formatTaskList(_0x2a0759[_0x3842e7(0x19d)], _0x45b1c4);
|
|
1973
1985
|
},
|
|
1974
|
-
async 'create_tasks'(
|
|
1975
|
-
const
|
|
1976
|
-
|
|
1977
|
-
const
|
|
1978
|
-
return formatCreatedTasks(
|
|
1986
|
+
async 'create_tasks'(_0x348823) {
|
|
1987
|
+
const _0x377c3d = _0x4a2133;
|
|
1988
|
+
_0x23b41b(_0x377c3d(_0x1b1923._0x49e3a2), _0x348823['channel']);
|
|
1989
|
+
const _0x20eda0 = await _0x426032[_0x377c3d(_0x1b1923._0x2548b5)]['createTasks'](_0x348823);
|
|
1990
|
+
return formatCreatedTasks(_0x20eda0['tasks']);
|
|
1979
1991
|
},
|
|
1980
|
-
async 'claim_tasks'(
|
|
1981
|
-
const
|
|
1982
|
-
if (
|
|
1983
|
-
|
|
1984
|
-
if (
|
|
1985
|
-
throw new Error(
|
|
1986
|
-
if (!
|
|
1987
|
-
throw new Error(
|
|
1992
|
+
async 'claim_tasks'(_0x38b74a) {
|
|
1993
|
+
const _0x17ed51 = _0x4a2133;
|
|
1994
|
+
if (_0x426032[_0x17ed51(_0x35b78f._0x502628)]) {
|
|
1995
|
+
_0x23b41b(_0x17ed51(0x167), _0x38b74a[_0x17ed51(0x1ad)]);
|
|
1996
|
+
if (_0x38b74a[_0x17ed51(0x22c)] && _0x38b74a[_0x17ed51(0x22c)]['length'] > 0x0)
|
|
1997
|
+
throw new Error(_0x17ed51(_0x35b78f._0x2072d1));
|
|
1998
|
+
if (!_0x38b74a['subtask_numbers'] || _0x38b74a[_0x17ed51(0x182)]['length'] === 0x0)
|
|
1999
|
+
throw new Error(_0x17ed51(_0x35b78f._0x328e84));
|
|
1988
2000
|
}
|
|
1989
|
-
const
|
|
1990
|
-
const
|
|
1991
|
-
if (!
|
|
1992
|
-
return
|
|
2001
|
+
const _0x1d70e9 = await _0x426032[_0x17ed51(0x260)]['claimTasks'](_0x38b74a), _0x9c6bc6 = await Promise[_0x17ed51(0x160)](_0x1d70e9[_0x17ed51(_0x35b78f._0x5979fb)][_0x17ed51(0x241)](async _0x47663d => {
|
|
2002
|
+
const _0x9a8159 = _0x17ed51;
|
|
2003
|
+
if (!_0x47663d[_0x9a8159(0x142)] || !_0x47663d[_0x9a8159(0x10b)])
|
|
2004
|
+
return _0x47663d;
|
|
1993
2005
|
try {
|
|
1994
|
-
const
|
|
1995
|
-
'channel':
|
|
1996
|
-
'
|
|
1997
|
-
'
|
|
1998
|
-
'
|
|
1999
|
-
'
|
|
2006
|
+
const _0xeabde1 = await _0x5ad0af({
|
|
2007
|
+
'channel': _0x38b74a[_0x9a8159(0x1ad)],
|
|
2008
|
+
'executionMode': _0x47663d['executionMode'],
|
|
2009
|
+
'messageId': _0x47663d['messageId'],
|
|
2010
|
+
'taskId': _0x47663d[_0x9a8159(_0x5ebfee._0x115c84)],
|
|
2011
|
+
'taskNumber': _0x47663d[_0x9a8159(0x1cb)],
|
|
2012
|
+
'threadNumber': _0x47663d[_0x9a8159(0x110)]
|
|
2000
2013
|
});
|
|
2001
|
-
return
|
|
2002
|
-
...
|
|
2003
|
-
...
|
|
2004
|
-
} :
|
|
2005
|
-
} catch (
|
|
2014
|
+
return _0xeabde1 ? {
|
|
2015
|
+
..._0x47663d,
|
|
2016
|
+
..._0xeabde1
|
|
2017
|
+
} : _0x47663d;
|
|
2018
|
+
} catch (_0x16b0f4) {
|
|
2006
2019
|
return {
|
|
2007
|
-
...
|
|
2008
|
-
'workerHandoffError':
|
|
2020
|
+
..._0x47663d,
|
|
2021
|
+
'workerHandoffError': _0x16b0f4 instanceof Error ? _0x16b0f4[_0x9a8159(0x25b)] : _0x9a8159(_0x5ebfee._0x1e3c97)
|
|
2009
2022
|
};
|
|
2010
2023
|
}
|
|
2011
2024
|
}));
|
|
2012
|
-
return formatClaimTaskResults(
|
|
2025
|
+
return formatClaimTaskResults(_0x9c6bc6);
|
|
2013
2026
|
},
|
|
2014
|
-
async 'unclaim_task'(
|
|
2015
|
-
const
|
|
2016
|
-
if (
|
|
2017
|
-
|
|
2018
|
-
if (
|
|
2019
|
-
throw new Error(
|
|
2027
|
+
async 'unclaim_task'(_0x14ab95) {
|
|
2028
|
+
const _0xdcd8b6 = _0x4a2133;
|
|
2029
|
+
if (_0x426032[_0xdcd8b6(_0x3b3f48._0x1a26ce)]) {
|
|
2030
|
+
_0x23b41b(_0xdcd8b6(0x152), _0x14ab95[_0xdcd8b6(_0x3b3f48._0x3cb50b)]);
|
|
2031
|
+
if (_0x14ab95['subtask_number'] == null)
|
|
2032
|
+
throw new Error(_0xdcd8b6(0x10c));
|
|
2020
2033
|
}
|
|
2021
|
-
const
|
|
2022
|
-
return formatUnclaimTaskResult(
|
|
2034
|
+
const _0x11a416 = await _0x426032[_0xdcd8b6(0x260)][_0xdcd8b6(0xf9)](_0x14ab95);
|
|
2035
|
+
return formatUnclaimTaskResult(_0x11a416);
|
|
2023
2036
|
},
|
|
2024
|
-
async 'update_task_status'(
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
-
const
|
|
2028
|
-
return formatUpdateTaskStatusResult(
|
|
2037
|
+
async 'update_task_status'(_0x4f0ade) {
|
|
2038
|
+
const _0x4b10ef = _0x4a2133;
|
|
2039
|
+
_0x23b41b('update_task_status', _0x4f0ade[_0x4b10ef(_0x58dbea._0x2c8c89)]);
|
|
2040
|
+
const _0x2c9c54 = await _0x426032[_0x4b10ef(_0x58dbea._0x4ea3fa)]['updateTaskStatus'](_0x4f0ade);
|
|
2041
|
+
return formatUpdateTaskStatusResult(_0x2c9c54);
|
|
2029
2042
|
},
|
|
2030
|
-
async 'upload_file'(
|
|
2031
|
-
const
|
|
2032
|
-
sizeBytes:
|
|
2033
|
-
...
|
|
2034
|
-
} =
|
|
2035
|
-
'channel':
|
|
2036
|
-
...
|
|
2043
|
+
async 'upload_file'(_0x4de419) {
|
|
2044
|
+
const _0x184706 = _0x4a2133, _0x26b8eb = await _0x426032['uploadPreparer'](_0x4de419[_0x184706(0x15e)]), {
|
|
2045
|
+
sizeBytes: _0x9ea2f7,
|
|
2046
|
+
..._0x538a03
|
|
2047
|
+
} = _0x26b8eb, _0x2b73d4 = await _0x426032['client'][_0x184706(0x195)]({
|
|
2048
|
+
'channel': _0x4de419['channel'],
|
|
2049
|
+
..._0x538a03
|
|
2037
2050
|
});
|
|
2038
|
-
return formatUploadResult(
|
|
2051
|
+
return formatUploadResult(_0x2b73d4);
|
|
2039
2052
|
},
|
|
2040
|
-
async 'view_file'(
|
|
2041
|
-
const
|
|
2042
|
-
if (
|
|
2043
|
-
return formatViewFileResult(
|
|
2044
|
-
const
|
|
2045
|
-
'attachmentId':
|
|
2046
|
-
'contentType':
|
|
2047
|
-
'data':
|
|
2048
|
-
'originalFilename':
|
|
2053
|
+
async 'view_file'(_0x58d616) {
|
|
2054
|
+
const _0x1394c0 = _0x4a2133, _0x3a43bb = await _0x426032[_0x1394c0(0x1d2)]['findCachedPath'](_0x58d616[_0x1394c0(_0x35f6b3._0x1441bc)]);
|
|
2055
|
+
if (_0x3a43bb)
|
|
2056
|
+
return formatViewFileResult(_0x3a43bb, !![]);
|
|
2057
|
+
const _0x59b8c7 = await _0x426032[_0x1394c0(0x260)][_0x1394c0(0xd5)](_0x58d616[_0x1394c0(_0x35f6b3._0x1441bc)]), _0x33e6b4 = await _0x426032[_0x1394c0(0x1d2)][_0x1394c0(_0x35f6b3._0x3cdc29)]({
|
|
2058
|
+
'attachmentId': _0x58d616[_0x1394c0(_0x35f6b3._0x4d47b6)],
|
|
2059
|
+
'contentType': _0x59b8c7[_0x1394c0(_0x35f6b3._0x4a3d27)],
|
|
2060
|
+
'data': _0x59b8c7[_0x1394c0(_0x35f6b3._0x237df3)],
|
|
2061
|
+
'originalFilename': _0x59b8c7[_0x1394c0(0x1aa)]
|
|
2049
2062
|
});
|
|
2050
|
-
return formatViewFileResult(
|
|
2063
|
+
return formatViewFileResult(_0x33e6b4, ![]);
|
|
2051
2064
|
},
|
|
2052
|
-
async 'get_worker_status'(
|
|
2053
|
-
const
|
|
2054
|
-
if (!
|
|
2055
|
-
return
|
|
2056
|
-
const
|
|
2057
|
-
if (!
|
|
2058
|
-
return
|
|
2059
|
-
return
|
|
2065
|
+
async 'get_worker_status'(_0x1d33bb) {
|
|
2066
|
+
const _0x8d7f01 = _0x4a2133;
|
|
2067
|
+
if (!_0x426032['daemonLocalUrl'])
|
|
2068
|
+
return _0x8d7f01(_0x18820b._0x366400);
|
|
2069
|
+
const _0x3dc587 = await fetch(_0x426032[_0x8d7f01(_0x18820b._0x4e8d9f)] + _0x8d7f01(_0x18820b._0x417989) + encodeURIComponent(_0x1d33bb[_0x8d7f01(0x11c)])), _0xd4876e = await _0x3dc587[_0x8d7f01(0x130)]();
|
|
2070
|
+
if (!_0xd4876e['ok'])
|
|
2071
|
+
return _0x8d7f01(0x118) + _0x1d33bb[_0x8d7f01(_0x18820b._0x5eb744)] + _0x8d7f01(0x25d);
|
|
2072
|
+
return _0x8d7f01(0x118) + _0x1d33bb[_0x8d7f01(_0x18820b._0x5eb744)] + _0x8d7f01(_0x18820b._0xc42dc4) + _0xd4876e[_0x8d7f01(0x1b3)];
|
|
2060
2073
|
},
|
|
2061
|
-
async 'park_worker'(
|
|
2062
|
-
const
|
|
2063
|
-
if (!
|
|
2064
|
-
return
|
|
2065
|
-
const
|
|
2066
|
-
'method':
|
|
2067
|
-
'headers': { 'Content-Type':
|
|
2068
|
-
'body': JSON[
|
|
2069
|
-
}),
|
|
2070
|
-
if (!
|
|
2071
|
-
throw new Error(
|
|
2072
|
-
return
|
|
2074
|
+
async 'park_worker'(_0x171ea0) {
|
|
2075
|
+
const _0x2e6ee7 = _0x4a2133;
|
|
2076
|
+
if (!_0x426032[_0x2e6ee7(0x1cd)])
|
|
2077
|
+
return _0x2e6ee7(_0x1ac5bd._0x59ddbe);
|
|
2078
|
+
const _0x5cef7b = await fetch(_0x426032['daemonLocalUrl'] + _0x2e6ee7(0x1b8), {
|
|
2079
|
+
'method': _0x2e6ee7(0x1f0),
|
|
2080
|
+
'headers': { 'Content-Type': _0x2e6ee7(_0x1ac5bd._0x25eaaa) },
|
|
2081
|
+
'body': JSON['stringify']({ 'work_key': _0x171ea0['work_key'] })
|
|
2082
|
+
}), _0x5a1d97 = await _0x5cef7b['json']();
|
|
2083
|
+
if (!_0x5a1d97['ok'])
|
|
2084
|
+
throw new Error(_0x5a1d97[_0x2e6ee7(0x141)] ?? _0x2e6ee7(0xde));
|
|
2085
|
+
return _0x2e6ee7(_0x1ac5bd._0x2e1ec1) + _0x171ea0[_0x2e6ee7(_0x1ac5bd._0x232ae3)] + '\x22\x20parked.\x20Same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.';
|
|
2073
2086
|
},
|
|
2074
|
-
async 'mark_waiting_input'(
|
|
2075
|
-
const
|
|
2076
|
-
if (!
|
|
2077
|
-
return
|
|
2078
|
-
const
|
|
2087
|
+
async 'mark_waiting_input'(_0x1c9409) {
|
|
2088
|
+
const _0x104e5e = _0x4a2133;
|
|
2089
|
+
if (!_0x426032[_0x104e5e(_0x593e2b._0x1b19db)] || !_0x426032[_0x104e5e(0x17c)])
|
|
2090
|
+
return _0x104e5e(0x1ae);
|
|
2091
|
+
const _0x4db76e = await fetch(_0x426032[_0x104e5e(_0x593e2b._0x57ad0f)] + _0x104e5e(_0x593e2b._0x2940da), {
|
|
2079
2092
|
'method': 'POST',
|
|
2080
|
-
'headers': { 'Content-Type':
|
|
2081
|
-
'body': JSON[
|
|
2082
|
-
'work_key':
|
|
2083
|
-
'agent_id':
|
|
2093
|
+
'headers': { 'Content-Type': _0x104e5e(0xf7) },
|
|
2094
|
+
'body': JSON[_0x104e5e(_0x593e2b._0x261320)]({
|
|
2095
|
+
'work_key': _0x1c9409['work_key'],
|
|
2096
|
+
'agent_id': _0x426032[_0x104e5e(_0x593e2b._0x13f8af)]
|
|
2084
2097
|
})
|
|
2085
|
-
}),
|
|
2086
|
-
if (!
|
|
2087
|
-
throw new Error(
|
|
2088
|
-
return
|
|
2098
|
+
}), _0x257ac4 = await _0x4db76e[_0x104e5e(0x130)]();
|
|
2099
|
+
if (!_0x257ac4['ok'])
|
|
2100
|
+
throw new Error(_0x257ac4[_0x104e5e(0x141)] ?? 'mark_waiting_input\x20failed');
|
|
2101
|
+
return _0x104e5e(0x118) + _0x1c9409[_0x104e5e(_0x593e2b._0x36e777)] + _0x104e5e(_0x593e2b._0x43abb3);
|
|
2089
2102
|
},
|
|
2090
|
-
async 'escalate_to_main'(
|
|
2091
|
-
const
|
|
2092
|
-
if (!
|
|
2093
|
-
return
|
|
2094
|
-
const
|
|
2095
|
-
'method':
|
|
2096
|
-
'headers': { 'Content-Type':
|
|
2097
|
-
'body': JSON[
|
|
2098
|
-
'work_key':
|
|
2099
|
-
'reason':
|
|
2103
|
+
async 'escalate_to_main'(_0x274a23) {
|
|
2104
|
+
const _0x5d291a = _0x4a2133;
|
|
2105
|
+
if (!_0x426032[_0x5d291a(0x1cd)])
|
|
2106
|
+
return _0x5d291a(_0x315d8f._0x56e4e5);
|
|
2107
|
+
const _0x31f645 = await fetch(_0x426032[_0x5d291a(0x1cd)] + _0x5d291a(_0x315d8f._0x4b6c33), {
|
|
2108
|
+
'method': _0x5d291a(_0x315d8f._0x4c5eb3),
|
|
2109
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2110
|
+
'body': JSON[_0x5d291a(0x246)]({
|
|
2111
|
+
'work_key': _0x274a23[_0x5d291a(_0x315d8f._0x1f3988)],
|
|
2112
|
+
'reason': _0x274a23[_0x5d291a(0x21f)]
|
|
2100
2113
|
})
|
|
2101
|
-
}),
|
|
2102
|
-
if (!
|
|
2103
|
-
throw new Error(
|
|
2104
|
-
return
|
|
2114
|
+
}), _0x59b38a = await _0x31f645['json']();
|
|
2115
|
+
if (!_0x59b38a['ok'])
|
|
2116
|
+
throw new Error(_0x59b38a['error'] ?? 'escalate_to_main\x20failed');
|
|
2117
|
+
return _0x5d291a(_0x315d8f._0x316549) + _0x274a23[_0x5d291a(0x21f)];
|
|
2105
2118
|
}
|
|
2106
2119
|
};
|
|
2107
2120
|
}
|
|
2108
|
-
function textResult(
|
|
2109
|
-
const _0x55994f = { _0x177145: 0x285 }, _0x2be2d3 = _0x36c0a2;
|
|
2121
|
+
function textResult(_0x18db96, _0x458e60 = ![]) {
|
|
2110
2122
|
return {
|
|
2111
2123
|
'content': [{
|
|
2112
|
-
'type':
|
|
2113
|
-
'text':
|
|
2124
|
+
'type': 'text',
|
|
2125
|
+
'text': _0x18db96
|
|
2114
2126
|
}],
|
|
2115
|
-
...
|
|
2127
|
+
..._0x458e60 ? { 'isError': !![] } : {}
|
|
2116
2128
|
};
|
|
2117
2129
|
}
|
|
2118
|
-
async function registerChatBridgeTools(
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2130
|
+
async function registerChatBridgeTools(_0x11a904, _0x59c9ce, _0x48fdc7) {
|
|
2131
|
+
const _0x25d1a1 = {
|
|
2132
|
+
_0x3f1d75: 0x161,
|
|
2133
|
+
_0x2a8ee1: 0x107,
|
|
2134
|
+
_0x48490: 0x107,
|
|
2135
|
+
_0x36e123: 0x1af,
|
|
2136
|
+
_0x430036: 0x109,
|
|
2137
|
+
_0x2f6149: 0x161,
|
|
2138
|
+
_0x1861f0: 0x1b5,
|
|
2139
|
+
_0x32edd6: 0x232,
|
|
2140
|
+
_0x2b2d74: 0x161,
|
|
2141
|
+
_0x3e15d6: 0xf8,
|
|
2142
|
+
_0xb125ab: 0x138,
|
|
2143
|
+
_0x528883: 0x125,
|
|
2144
|
+
_0x3f37e7: 0x251,
|
|
2145
|
+
_0x2b6449: 0x175,
|
|
2146
|
+
_0x4e0bef: 0x125,
|
|
2147
|
+
_0x28f184: 0x1be,
|
|
2148
|
+
_0x434d5e: 0x206,
|
|
2149
|
+
_0x3fd104: 0x12c,
|
|
2150
|
+
_0x271a24: 0x125,
|
|
2151
|
+
_0x2558d2: 0x1af,
|
|
2152
|
+
_0x109d9e: 0x107,
|
|
2153
|
+
_0x72d6a8: 0xf5,
|
|
2154
|
+
_0x154f01: 0x1de,
|
|
2155
|
+
_0x16c032: 0x13e,
|
|
2156
|
+
_0x24eea4: 0x152,
|
|
2157
|
+
_0x255773: 0x21b,
|
|
2158
|
+
_0x39a87d: 0x138,
|
|
2159
|
+
_0x577cb6: 0x125,
|
|
2160
|
+
_0x5b1cab: 0x107,
|
|
2161
|
+
_0x4355c8: 0x125,
|
|
2162
|
+
_0x59e0e0: 0x135,
|
|
2163
|
+
_0x52af29: 0x125,
|
|
2164
|
+
_0x1596af: 0x1be,
|
|
2165
|
+
_0xf4ee0: 0xe6,
|
|
2166
|
+
_0x44df13: 0x25e,
|
|
2167
|
+
_0xa611b1: 0x129,
|
|
2168
|
+
_0x2bf2b4: 0x24a,
|
|
2169
|
+
_0x497c1d: 0x164,
|
|
2170
|
+
_0x4b53e0: 0x18f,
|
|
2171
|
+
_0x4494ba: 0x15b,
|
|
2172
|
+
_0x1d9820: 0x107,
|
|
2173
|
+
_0x452177: 0x1c9,
|
|
2174
|
+
_0x32367f: 0x1fb,
|
|
2175
|
+
_0xf385a: 0x107
|
|
2176
|
+
}, _0x2ae2ca = { _0x26543a: 0x25b }, _0x1bbb18 = { _0x56a03f: 0x14d }, _0x12bd70 = {
|
|
2177
|
+
_0x49c81b: 0x220,
|
|
2178
|
+
_0x4f721f: 0xde
|
|
2179
|
+
}, _0x567b3c = {
|
|
2180
|
+
_0x1373bd: 0x18f,
|
|
2181
|
+
_0x20c87c: 0x223
|
|
2182
|
+
}, _0x133b85 = { _0x27090c: 0x24a }, _0x3657b5 = {
|
|
2183
|
+
_0x39c49f: 0x135,
|
|
2184
|
+
_0x2c829f: 0x25b,
|
|
2185
|
+
_0x402506: 0x222
|
|
2186
|
+
}, _0x5912db = { _0x4c5378: 0x152 }, _0x3b4535 = {
|
|
2187
|
+
_0x2cb54b: 0x167,
|
|
2188
|
+
_0xa1c981: 0x196
|
|
2189
|
+
}, _0x31e54e = { _0xd74b3c: 0x25b }, _0x5df704 = { _0x524094: 0x18a }, _0x2bfc1a = { _0x21fbea: 0x1c8 }, _0x582f5a = { _0x55ea77: 0x21c }, _0x338da7 = { _0x4884d2: 0x25b }, _0x36283c = { _0x5aff83: 0x25b }, _0x5708de = _0x456b7e, {z: _0x55a6fe} = await import('zod');
|
|
2190
|
+
_0x11a904[_0x5708de(_0x25d1a1._0x3f1d75)](_0x5708de(0x267), _0x5708de(0x18e), {
|
|
2191
|
+
'target': _0x55a6fe[_0x5708de(_0x25d1a1._0x2a8ee1)](),
|
|
2192
|
+
'content': _0x55a6fe[_0x5708de(_0x25d1a1._0x48490)](),
|
|
2193
|
+
'attachment_ids': _0x55a6fe[_0x5708de(_0x25d1a1._0x36e123)](_0x55a6fe[_0x5708de(_0x25d1a1._0x2a8ee1)]())['optional'](),
|
|
2194
|
+
'visibility': _0x55a6fe['enum']([
|
|
2195
|
+
_0x5708de(_0x25d1a1._0x430036),
|
|
2196
|
+
_0x5708de(0x1fc)
|
|
2197
|
+
])['optional']()[_0x5708de(0x1d4)](_0x5708de(0x249))
|
|
2198
|
+
}, async _0x222d78 => {
|
|
2199
|
+
const _0x3d3186 = _0x5708de;
|
|
2174
2200
|
try {
|
|
2175
|
-
return textResult(await
|
|
2176
|
-
} catch (
|
|
2177
|
-
return textResult(
|
|
2201
|
+
return textResult(await _0x59c9ce[_0x3d3186(0x267)](_0x222d78));
|
|
2202
|
+
} catch (_0x47fb1e) {
|
|
2203
|
+
return textResult(_0x47fb1e instanceof Error ? _0x47fb1e[_0x3d3186(_0x36283c._0x5aff83)] : _0x3d3186(0x263), !![]);
|
|
2178
2204
|
}
|
|
2179
|
-
}),
|
|
2180
|
-
const
|
|
2205
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2f6149)](_0x5708de(_0x25d1a1._0x1861f0), _0x5708de(_0x25d1a1._0x32edd6), {}, async () => {
|
|
2206
|
+
const _0x1e148e = _0x5708de;
|
|
2181
2207
|
try {
|
|
2182
|
-
return textResult(await
|
|
2183
|
-
} catch (
|
|
2184
|
-
return textResult(
|
|
2208
|
+
return textResult(await _0x59c9ce[_0x1e148e(0x1b5)]());
|
|
2209
|
+
} catch (_0x282ab7) {
|
|
2210
|
+
return textResult(_0x282ab7 instanceof Error ? _0x282ab7[_0x1e148e(_0x338da7._0x4884d2)] : 'check_messages\x20failed', !![]);
|
|
2185
2211
|
}
|
|
2186
|
-
}),
|
|
2187
|
-
'channel':
|
|
2188
|
-
'limit':
|
|
2189
|
-
'before':
|
|
2190
|
-
'after':
|
|
2191
|
-
}, async
|
|
2192
|
-
const
|
|
2212
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2b2d74)](_0x5708de(0x21c), _0x5708de(_0x25d1a1._0x3e15d6), {
|
|
2213
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2214
|
+
'limit': _0x55a6fe[_0x5708de(_0x25d1a1._0xb125ab)]()['optional'](),
|
|
2215
|
+
'before': _0x55a6fe[_0x5708de(_0x25d1a1._0xb125ab)]()[_0x5708de(_0x25d1a1._0x528883)](),
|
|
2216
|
+
'after': _0x55a6fe[_0x5708de(0x138)]()['optional']()
|
|
2217
|
+
}, async _0x48add5 => {
|
|
2218
|
+
const _0x492adc = _0x5708de;
|
|
2193
2219
|
try {
|
|
2194
|
-
return textResult(await
|
|
2195
|
-
} catch (
|
|
2196
|
-
return textResult(
|
|
2220
|
+
return textResult(await _0x59c9ce[_0x492adc(_0x582f5a._0x55ea77)](_0x48add5));
|
|
2221
|
+
} catch (_0x29f40e) {
|
|
2222
|
+
return textResult(_0x29f40e instanceof Error ? _0x29f40e[_0x492adc(0x25b)] : 'read_history\x20failed', !![]);
|
|
2197
2223
|
}
|
|
2198
|
-
}),
|
|
2199
|
-
const
|
|
2224
|
+
}), _0x11a904['tool'](_0x5708de(0x1c8), _0x5708de(_0x25d1a1._0x3f37e7), {}, async () => {
|
|
2225
|
+
const _0x42da6e = _0x5708de;
|
|
2200
2226
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2227
|
+
return textResult(await _0x59c9ce[_0x42da6e(_0x2bfc1a._0x21fbea)]());
|
|
2228
|
+
} catch (_0x4961c2) {
|
|
2229
|
+
return textResult(_0x4961c2 instanceof Error ? _0x4961c2[_0x42da6e(0x25b)] : _0x42da6e(0x10f), !![]);
|
|
2204
2230
|
}
|
|
2205
|
-
}),
|
|
2206
|
-
'channel':
|
|
2207
|
-
'status':
|
|
2208
|
-
|
|
2231
|
+
}), _0x11a904[_0x5708de(0x161)](_0x5708de(0x1a4), 'List\x20tasks\x20in\x20a\x20channel\x20or\x20thread.\x20Thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22)\x20returns\x20the\x20parent\x20task\x20plus\x20its\x20subtasks\x20with\x20aggregation\x20fields\x20(childrenTotal,\x20childrenDone,\x20childrenInProgress).\x20Channel\x20target\x20returns\x20only\x20parent\x20tasks\x20(no\x20subtasks).', {
|
|
2232
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2233
|
+
'status': _0x55a6fe[_0x5708de(0x1be)]([
|
|
2234
|
+
'todo',
|
|
2209
2235
|
'in_progress',
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
])[
|
|
2213
|
-
}, async
|
|
2214
|
-
const
|
|
2236
|
+
_0x5708de(0x1a6),
|
|
2237
|
+
_0x5708de(_0x25d1a1._0x2b6449)
|
|
2238
|
+
])[_0x5708de(0x125)]()
|
|
2239
|
+
}, async _0x1bfd5f => {
|
|
2240
|
+
const _0x2e01f3 = _0x5708de;
|
|
2215
2241
|
try {
|
|
2216
|
-
return textResult(await
|
|
2217
|
-
} catch (
|
|
2218
|
-
return textResult(
|
|
2242
|
+
return textResult(await _0x59c9ce['list_tasks'](_0x1bfd5f));
|
|
2243
|
+
} catch (_0x364613) {
|
|
2244
|
+
return textResult(_0x364613 instanceof Error ? _0x364613[_0x2e01f3(0x25b)] : _0x2e01f3(_0x5df704._0x524094), !![]);
|
|
2219
2245
|
}
|
|
2220
|
-
}),
|
|
2221
|
-
'channel':
|
|
2222
|
-
'idempotency_key':
|
|
2223
|
-
'tasks':
|
|
2224
|
-
'title':
|
|
2225
|
-
'description':
|
|
2226
|
-
'priority':
|
|
2227
|
-
|
|
2228
|
-
|
|
2246
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x3f1d75)]('create_tasks', _0x5708de(0x13f), {
|
|
2247
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2248
|
+
'idempotency_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x48490)]()[_0x5708de(0x125)](),
|
|
2249
|
+
'tasks': _0x55a6fe['array'](_0x55a6fe['object']({
|
|
2250
|
+
'title': _0x55a6fe[_0x5708de(0x107)](),
|
|
2251
|
+
'description': _0x55a6fe[_0x5708de(0x107)]()[_0x5708de(_0x25d1a1._0x4e0bef)](),
|
|
2252
|
+
'priority': _0x55a6fe[_0x5708de(_0x25d1a1._0x28f184)]([
|
|
2253
|
+
_0x5708de(_0x25d1a1._0x434d5e),
|
|
2254
|
+
_0x5708de(0x1d8),
|
|
2229
2255
|
'high',
|
|
2230
2256
|
'urgent'
|
|
2231
|
-
])[
|
|
2257
|
+
])[_0x5708de(0x125)]()
|
|
2232
2258
|
}))
|
|
2233
|
-
}, async
|
|
2234
|
-
const
|
|
2259
|
+
}, async _0x4d1df5 => {
|
|
2260
|
+
const _0x5ee2c4 = _0x5708de;
|
|
2235
2261
|
try {
|
|
2236
|
-
return textResult(await
|
|
2237
|
-
} catch (
|
|
2238
|
-
return textResult(
|
|
2262
|
+
return textResult(await _0x59c9ce[_0x5ee2c4(0x15d)](_0x4d1df5));
|
|
2263
|
+
} catch (_0x37835a) {
|
|
2264
|
+
return textResult(_0x37835a instanceof Error ? _0x37835a[_0x5ee2c4(_0x31e54e._0xd74b3c)] : 'create_tasks\x20failed', !![]);
|
|
2239
2265
|
}
|
|
2240
|
-
}),
|
|
2241
|
-
'channel':
|
|
2242
|
-
'task_numbers':
|
|
2243
|
-
'subtask_numbers':
|
|
2244
|
-
'message_ids':
|
|
2245
|
-
'evidence':
|
|
2246
|
-
'create_thread':
|
|
2247
|
-
'create_task':
|
|
2248
|
-
}))[
|
|
2249
|
-
'idempotency_key':
|
|
2250
|
-
}, async
|
|
2251
|
-
const
|
|
2266
|
+
}), _0x11a904[_0x5708de(0x161)]('claim_tasks', _0x5708de(_0x25d1a1._0x3fd104), {
|
|
2267
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2268
|
+
'task_numbers': _0x55a6fe['array'](_0x55a6fe['number']())['optional'](),
|
|
2269
|
+
'subtask_numbers': _0x55a6fe[_0x5708de(0x1af)](_0x55a6fe['number']())[_0x5708de(_0x25d1a1._0x271a24)](),
|
|
2270
|
+
'message_ids': _0x55a6fe[_0x5708de(_0x25d1a1._0x2558d2)](_0x55a6fe[_0x5708de(_0x25d1a1._0x109d9e)]())['optional'](),
|
|
2271
|
+
'evidence': _0x55a6fe[_0x5708de(_0x25d1a1._0x72d6a8)](_0x55a6fe[_0x5708de(0x107)](), _0x55a6fe[_0x5708de(_0x25d1a1._0x154f01)]({
|
|
2272
|
+
'create_thread': _0x55a6fe[_0x5708de(0x13e)]()[_0x5708de(_0x25d1a1._0x528883)](),
|
|
2273
|
+
'create_task': _0x55a6fe[_0x5708de(_0x25d1a1._0x16c032)]()[_0x5708de(0x125)]()
|
|
2274
|
+
}))[_0x5708de(0x125)](),
|
|
2275
|
+
'idempotency_key': _0x55a6fe['string']()[_0x5708de(0x125)]()
|
|
2276
|
+
}, async _0x3c5b8e => {
|
|
2277
|
+
const _0x28d3ef = _0x5708de;
|
|
2252
2278
|
try {
|
|
2253
|
-
return textResult(await
|
|
2254
|
-
} catch (
|
|
2255
|
-
return textResult(
|
|
2279
|
+
return textResult(await _0x59c9ce[_0x28d3ef(_0x3b4535._0x2cb54b)](_0x3c5b8e));
|
|
2280
|
+
} catch (_0x45b4ba) {
|
|
2281
|
+
return textResult(_0x45b4ba instanceof Error ? _0x45b4ba[_0x28d3ef(0x25b)] : _0x28d3ef(_0x3b4535._0xa1c981), !![]);
|
|
2256
2282
|
}
|
|
2257
|
-
}),
|
|
2258
|
-
'channel':
|
|
2259
|
-
'task_number':
|
|
2260
|
-
'subtask_number':
|
|
2261
|
-
'idempotency_key':
|
|
2262
|
-
}, async
|
|
2263
|
-
const
|
|
2283
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2b2d74)](_0x5708de(_0x25d1a1._0x24eea4), _0x5708de(_0x25d1a1._0x255773), {
|
|
2284
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2285
|
+
'task_number': _0x55a6fe[_0x5708de(0x138)](),
|
|
2286
|
+
'subtask_number': _0x55a6fe[_0x5708de(_0x25d1a1._0x39a87d)]()[_0x5708de(_0x25d1a1._0x577cb6)](),
|
|
2287
|
+
'idempotency_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x5b1cab)]()[_0x5708de(_0x25d1a1._0x4355c8)]()
|
|
2288
|
+
}, async _0x471d3a => {
|
|
2289
|
+
const _0x5e917b = _0x5708de;
|
|
2264
2290
|
try {
|
|
2265
|
-
return textResult(await
|
|
2266
|
-
} catch (
|
|
2267
|
-
return textResult(
|
|
2291
|
+
return textResult(await _0x59c9ce[_0x5e917b(_0x5912db._0x4c5378)](_0x471d3a));
|
|
2292
|
+
} catch (_0x2a191c) {
|
|
2293
|
+
return textResult(_0x2a191c instanceof Error ? _0x2a191c['message'] : 'unclaim_task\x20failed', !![]);
|
|
2268
2294
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
'channel':
|
|
2271
|
-
'task_number':
|
|
2272
|
-
'subtask_number':
|
|
2273
|
-
'status':
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2295
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2f6149)](_0x5708de(_0x25d1a1._0x59e0e0), _0x5708de(0x1ff), {
|
|
2296
|
+
'channel': _0x55a6fe[_0x5708de(_0x25d1a1._0x48490)](),
|
|
2297
|
+
'task_number': _0x55a6fe['number'](),
|
|
2298
|
+
'subtask_number': _0x55a6fe[_0x5708de(_0x25d1a1._0x39a87d)]()[_0x5708de(_0x25d1a1._0x52af29)](),
|
|
2299
|
+
'status': _0x55a6fe[_0x5708de(_0x25d1a1._0x1596af)]([
|
|
2300
|
+
_0x5708de(_0x25d1a1._0xf4ee0),
|
|
2301
|
+
_0x5708de(_0x25d1a1._0x44df13),
|
|
2302
|
+
'in_review',
|
|
2303
|
+
_0x5708de(0x175)
|
|
2278
2304
|
]),
|
|
2279
|
-
'idempotency_key':
|
|
2280
|
-
}, async
|
|
2281
|
-
const
|
|
2305
|
+
'idempotency_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x5b1cab)]()[_0x5708de(_0x25d1a1._0x528883)]()
|
|
2306
|
+
}, async _0x179111 => {
|
|
2307
|
+
const _0x159330 = _0x5708de;
|
|
2282
2308
|
try {
|
|
2283
|
-
return textResult(await
|
|
2284
|
-
} catch (
|
|
2285
|
-
return textResult(
|
|
2309
|
+
return textResult(await _0x59c9ce[_0x159330(_0x3657b5._0x39c49f)](_0x179111));
|
|
2310
|
+
} catch (_0x3e8ae9) {
|
|
2311
|
+
return textResult(_0x3e8ae9 instanceof Error ? _0x3e8ae9[_0x159330(_0x3657b5._0x2c829f)] : _0x159330(_0x3657b5._0x402506), !![]);
|
|
2286
2312
|
}
|
|
2287
|
-
}),
|
|
2288
|
-
'channel':
|
|
2289
|
-
'file_path':
|
|
2290
|
-
}, async
|
|
2291
|
-
const
|
|
2313
|
+
}), _0x11a904[_0x5708de(0x161)](_0x5708de(_0x25d1a1._0xa611b1), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2314
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2315
|
+
'file_path': _0x55a6fe['string']()
|
|
2316
|
+
}, async _0x43a0d7 => {
|
|
2317
|
+
const _0x348343 = _0x5708de;
|
|
2292
2318
|
try {
|
|
2293
|
-
return textResult(await
|
|
2294
|
-
} catch (
|
|
2295
|
-
return textResult(
|
|
2319
|
+
return textResult(await _0x59c9ce['upload_file'](_0x43a0d7));
|
|
2320
|
+
} catch (_0x3a8d8c) {
|
|
2321
|
+
return textResult(_0x3a8d8c instanceof Error ? _0x3a8d8c[_0x348343(0x25b)] : _0x348343(0x197), !![]);
|
|
2296
2322
|
}
|
|
2297
|
-
}),
|
|
2298
|
-
const
|
|
2323
|
+
}), _0x11a904['tool'](_0x5708de(_0x25d1a1._0x2bf2b4), _0x5708de(_0x25d1a1._0x497c1d), { 'attachment_id': _0x55a6fe[_0x5708de(0x107)]() }, async _0x49402d => {
|
|
2324
|
+
const _0x2c3b34 = _0x5708de;
|
|
2299
2325
|
try {
|
|
2300
|
-
return textResult(await
|
|
2301
|
-
} catch (
|
|
2302
|
-
return textResult(
|
|
2326
|
+
return textResult(await _0x59c9ce[_0x2c3b34(_0x133b85._0x27090c)](_0x49402d));
|
|
2327
|
+
} catch (_0x38c6a7) {
|
|
2328
|
+
return textResult(_0x38c6a7 instanceof Error ? _0x38c6a7[_0x2c3b34(0x25b)] : _0x2c3b34(0x120), !![]);
|
|
2303
2329
|
}
|
|
2304
|
-
}),
|
|
2305
|
-
const
|
|
2330
|
+
}), _0x11a904[_0x5708de(0x161)](_0x5708de(_0x25d1a1._0x4b53e0), _0x5708de(0x1fd), { 'work_key': _0x55a6fe['string']() }, async _0x55412e => {
|
|
2331
|
+
const _0x546ec7 = _0x5708de;
|
|
2306
2332
|
try {
|
|
2307
|
-
return textResult(await
|
|
2308
|
-
} catch (
|
|
2309
|
-
return textResult(
|
|
2333
|
+
return textResult(await _0x59c9ce[_0x546ec7(_0x567b3c._0x1373bd)](_0x55412e));
|
|
2334
|
+
} catch (_0x5d0224) {
|
|
2335
|
+
return textResult(_0x5d0224 instanceof Error ? _0x5d0224['message'] : _0x546ec7(_0x567b3c._0x20c87c), !![]);
|
|
2310
2336
|
}
|
|
2311
|
-
}),
|
|
2312
|
-
const
|
|
2337
|
+
}), _0x11a904['tool']('park_worker', _0x5708de(_0x25d1a1._0x4494ba), { 'work_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x1d9820)]() }, async _0x46f1eb => {
|
|
2338
|
+
const _0x2d1810 = _0x5708de;
|
|
2313
2339
|
try {
|
|
2314
|
-
return textResult(await
|
|
2315
|
-
} catch (
|
|
2316
|
-
return textResult(
|
|
2340
|
+
return textResult(await _0x59c9ce[_0x2d1810(_0x12bd70._0x49c81b)](_0x46f1eb));
|
|
2341
|
+
} catch (_0x55f737) {
|
|
2342
|
+
return textResult(_0x55f737 instanceof Error ? _0x55f737[_0x2d1810(0x25b)] : _0x2d1810(_0x12bd70._0x4f721f), !![]);
|
|
2317
2343
|
}
|
|
2318
|
-
}),
|
|
2319
|
-
'work_key':
|
|
2320
|
-
'reason':
|
|
2321
|
-
}, async
|
|
2322
|
-
const
|
|
2344
|
+
}), !_0x48fdc7?.[_0x5708de(_0x25d1a1._0x452177)] && _0x11a904[_0x5708de(0x161)](_0x5708de(0x244), _0x5708de(_0x25d1a1._0x32367f), {
|
|
2345
|
+
'work_key': _0x55a6fe['string'](),
|
|
2346
|
+
'reason': _0x55a6fe[_0x5708de(_0x25d1a1._0xf385a)]()
|
|
2347
|
+
}, async _0x3a843c => {
|
|
2348
|
+
const _0x520bb2 = _0x5708de;
|
|
2323
2349
|
try {
|
|
2324
|
-
return textResult(await
|
|
2325
|
-
} catch (
|
|
2326
|
-
return textResult(
|
|
2350
|
+
return textResult(await _0x59c9ce['escalate_to_main'](_0x3a843c));
|
|
2351
|
+
} catch (_0x2a9baa) {
|
|
2352
|
+
return textResult(_0x2a9baa instanceof Error ? _0x2a9baa[_0x520bb2(0x25b)] : _0x520bb2(_0x1bbb18._0x56a03f), !![]);
|
|
2327
2353
|
}
|
|
2328
|
-
}),
|
|
2329
|
-
const
|
|
2354
|
+
}), _0x48fdc7?.[_0x5708de(0x1c9)] && _0x11a904[_0x5708de(0x161)]('mark_waiting_input', _0x5708de(0x23c), { 'work_key': _0x55a6fe['string']() }, async _0x2b1ec7 => {
|
|
2355
|
+
const _0xeccc82 = _0x5708de;
|
|
2330
2356
|
try {
|
|
2331
|
-
return textResult(await
|
|
2332
|
-
} catch (
|
|
2333
|
-
return textResult(
|
|
2357
|
+
return textResult(await _0x59c9ce['mark_waiting_input'](_0x2b1ec7));
|
|
2358
|
+
} catch (_0x4c6170) {
|
|
2359
|
+
return textResult(_0x4c6170 instanceof Error ? _0x4c6170[_0xeccc82(_0x2ae2ca._0x26543a)] : 'mark_waiting_input\x20failed', !![]);
|
|
2334
2360
|
}
|
|
2335
2361
|
});
|
|
2336
2362
|
}
|
|
2337
|
-
async function createChatBridgeServer(
|
|
2338
|
-
const
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
},
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
return await registerChatBridgeTools(_0x316684, _0x12f0a3, { 'workerMode': _0x556114[_0x9f8ea2(_0x9bd8a._0x267eb1)] }), {
|
|
2346
|
-
'handlers': _0x12f0a3,
|
|
2347
|
-
'server': _0x316684
|
|
2363
|
+
async function createChatBridgeServer(_0x51bba8) {
|
|
2364
|
+
const _0x536f09 = { _0x59a56f: 0x1c9 }, _0x3ef75b = _0x456b7e, {McpServer: _0x4481e3} = await import(_0x3ef75b(0x1c2)), _0x1a27e6 = new _0x4481e3({
|
|
2365
|
+
'name': _0x3ef75b(0x18c),
|
|
2366
|
+
'version': _0x3ef75b(0x1cc)
|
|
2367
|
+
}), _0x513a20 = createChatBridgeHandlers(_0x51bba8);
|
|
2368
|
+
return await registerChatBridgeTools(_0x1a27e6, _0x513a20, { 'workerMode': _0x51bba8[_0x3ef75b(_0x536f09._0x59a56f)] }), {
|
|
2369
|
+
'handlers': _0x513a20,
|
|
2370
|
+
'server': _0x1a27e6
|
|
2348
2371
|
};
|
|
2349
2372
|
}
|
|
2350
|
-
function readFlag(
|
|
2351
|
-
const
|
|
2352
|
-
if (
|
|
2373
|
+
function readFlag(_0x142de8, _0x46b4e0) {
|
|
2374
|
+
const _0x479258 = { _0x547ff3: 0x12b }, _0x315f2b = _0x456b7e, _0x185cd5 = _0x142de8[_0x315f2b(_0x479258._0x547ff3)](_0x46b4e0);
|
|
2375
|
+
if (_0x185cd5 === -0x1)
|
|
2353
2376
|
return void 0x0;
|
|
2354
|
-
return
|
|
2377
|
+
return _0x142de8[_0x185cd5 + 0x1];
|
|
2355
2378
|
}
|
|
2356
|
-
function parseChatBridgeArgs(
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2379
|
+
function parseChatBridgeArgs(_0xc31314) {
|
|
2380
|
+
const _0x2185e3 = {
|
|
2381
|
+
_0x416ebc: 0x200,
|
|
2382
|
+
_0x3ac3c4: 0x221,
|
|
2383
|
+
_0x4c1153: 0x191,
|
|
2384
|
+
_0x1baf88: 0x1ac,
|
|
2385
|
+
_0x40e90f: 0x183,
|
|
2386
|
+
_0x2a7246: 0x20b,
|
|
2387
|
+
_0x432a92: 0x134,
|
|
2388
|
+
_0x3556f0: 0x253,
|
|
2389
|
+
_0x57143e: 0xe0,
|
|
2390
|
+
_0xda47ff: 0x150
|
|
2391
|
+
}, _0x4ca3bc = _0x456b7e, _0x3ed37c = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x416ebc)), _0x2e97cc = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x3ac3c4)), _0x372221 = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x4c1153)), _0x28308a = readFlag(_0xc31314, _0x4ca3bc(0x16f)), _0x4de272 = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x1baf88)) ?? _0x4ca3bc(_0x2185e3._0x40e90f), _0x45a1b0 = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x2a7246)), _0x1d160f = readFlag(_0xc31314, _0x4ca3bc(0x217)), _0x17e54d = readFlag(_0xc31314, '--worker-mode-enabled'), _0x190b00 = readFlag(_0xc31314, _0x4ca3bc(0x1ef)), _0x3b2432 = readFlag(_0xc31314, _0x4ca3bc(0xef)), _0x3ecf24 = _0xc31314[_0x4ca3bc(0x17a)](_0x4ca3bc(_0x2185e3._0x432a92)), _0x10eaea = _0x28308a === void 0x0 ? void 0x0 : Number[_0x4ca3bc(_0x2185e3._0x3556f0)](_0x28308a, 0xa);
|
|
2392
|
+
if (!_0x3ed37c)
|
|
2393
|
+
throw new Error(_0x4ca3bc(0x122));
|
|
2394
|
+
if (!_0x372221)
|
|
2395
|
+
throw new Error(_0x4ca3bc(_0x2185e3._0x57143e));
|
|
2396
|
+
if (_0x28308a !== void 0x0 && (_0x10eaea === void 0x0 || !Number[_0x4ca3bc(0x168)](_0x10eaea) || _0x10eaea < 0x0))
|
|
2397
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2374
2398
|
return {
|
|
2375
|
-
'agentId':
|
|
2376
|
-
'attachmentCacheDir':
|
|
2377
|
-
'daemonApiKey':
|
|
2378
|
-
'daemonLocalUrl':
|
|
2379
|
-
'initialLastSeenSeq':
|
|
2380
|
-
'sessionId':
|
|
2381
|
-
'serverUrl':
|
|
2382
|
-
'workerModeEnabled':
|
|
2383
|
-
'workerSessionId':
|
|
2384
|
-
'workerThreadTarget':
|
|
2385
|
-
'workerMode':
|
|
2399
|
+
'agentId': _0x3ed37c,
|
|
2400
|
+
'attachmentCacheDir': _0x2e97cc,
|
|
2401
|
+
'daemonApiKey': _0x372221,
|
|
2402
|
+
'daemonLocalUrl': _0x45a1b0,
|
|
2403
|
+
'initialLastSeenSeq': _0x10eaea,
|
|
2404
|
+
'sessionId': _0x1d160f,
|
|
2405
|
+
'serverUrl': _0x4de272,
|
|
2406
|
+
'workerModeEnabled': _0x17e54d === void 0x0 ? void 0x0 : _0x17e54d !== _0x4ca3bc(_0x2185e3._0xda47ff),
|
|
2407
|
+
'workerSessionId': _0x190b00,
|
|
2408
|
+
'workerThreadTarget': _0x3b2432,
|
|
2409
|
+
'workerMode': _0x3ecf24
|
|
2386
2410
|
};
|
|
2387
2411
|
}
|
|
2388
|
-
async function runChatBridgeCli(
|
|
2389
|
-
const
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
'agentId': _0xb5ecd6[_0x2ac883(_0x25aa3b._0x4c73cb)],
|
|
2395
|
-
'attachmentCache': _0x3253f5,
|
|
2396
|
-
'client': _0x553389,
|
|
2397
|
-
'daemonLocalUrl': _0xb5ecd6[_0x2ac883(0x2cc)],
|
|
2412
|
+
async function runChatBridgeCli(_0x2f7642) {
|
|
2413
|
+
const _0x571d71 = { _0xe02fcc: 0xd7 }, _0x35e0ce = _0x456b7e, _0x5aa63d = parseChatBridgeArgs(_0x2f7642), {StdioServerTransport: _0x1f7dac} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x4359b1 = createInternalAgentClient(_0x5aa63d), _0x3b8fa6 = createAttachmentCache({ 'cacheDir': _0x5aa63d[_0x35e0ce(0x1c4)] }), _0x5caa20 = await createChatBridgeServer({
|
|
2414
|
+
'agentId': _0x5aa63d[_0x35e0ce(0x17c)],
|
|
2415
|
+
'attachmentCache': _0x3b8fa6,
|
|
2416
|
+
'client': _0x4359b1,
|
|
2417
|
+
'daemonLocalUrl': _0x5aa63d['daemonLocalUrl'],
|
|
2398
2418
|
'uploadPreparer': prepareUploadFile,
|
|
2399
|
-
'workerModeEnabled':
|
|
2400
|
-
'workerMode':
|
|
2401
|
-
'workerThreadTarget':
|
|
2419
|
+
'workerModeEnabled': _0x5aa63d['workerModeEnabled'],
|
|
2420
|
+
'workerMode': _0x5aa63d[_0x35e0ce(0x1c9)],
|
|
2421
|
+
'workerThreadTarget': _0x5aa63d[_0x35e0ce(_0x571d71._0xe02fcc)]
|
|
2402
2422
|
});
|
|
2403
|
-
await
|
|
2423
|
+
await _0x5caa20['server'][_0x35e0ce(0x240)](new _0x1f7dac());
|
|
2404
2424
|
}
|
|
2405
|
-
var executedAsEntry = process[
|
|
2406
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2425
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x456b7e(0x1da)][0x1])[_0x456b7e(0x23a)] : ![];
|
|
2426
|
+
executedAsEntry && await runChatBridgeCli(process[_0x456b7e(0x1da)][_0x456b7e(0x205)](0x2));
|
|
2407
2427
|
export {
|
|
2408
2428
|
createChatBridgeHandlers,
|
|
2409
2429
|
createChatBridgeServer,
|