@dscord/daemon 0.1.36 → 0.1.38
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 +2001 -1977
- package/dist/index.js +9485 -9551
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
1
|
+
const _0x42cca9 = _0x4b08;
|
|
2
|
+
(function (_0x2cd469, _0x260076) {
|
|
3
|
+
const _0x2c09c3 = {
|
|
4
|
+
_0x338195: 0x1bb,
|
|
5
|
+
_0xff2017: 0x15c,
|
|
6
|
+
_0x39971b: 0xf7,
|
|
7
|
+
_0xa4bab1: 0x233,
|
|
8
|
+
_0x3c0fda: 0x250,
|
|
9
|
+
_0x34291e: 0x26d,
|
|
10
|
+
_0x5d3dd4: 0x1a3
|
|
11
|
+
}, _0x439ea4 = _0x4b08, _0x27db22 = _0x2cd469();
|
|
12
12
|
while (!![]) {
|
|
13
13
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
14
|
+
const _0x4e155d = -parseInt(_0x439ea4(0x124)) / 0x1 * (-parseInt(_0x439ea4(_0x2c09c3._0x338195)) / 0x2) + -parseInt(_0x439ea4(_0x2c09c3._0xff2017)) / 0x3 * (parseInt(_0x439ea4(_0x2c09c3._0x39971b)) / 0x4) + -parseInt(_0x439ea4(_0x2c09c3._0xa4bab1)) / 0x5 + parseInt(_0x439ea4(0x11a)) / 0x6 * (-parseInt(_0x439ea4(0x19c)) / 0x7) + parseInt(_0x439ea4(_0x2c09c3._0x3c0fda)) / 0x8 + -parseInt(_0x439ea4(_0x2c09c3._0x34291e)) / 0x9 * (-parseInt(_0x439ea4(0x25c)) / 0xa) + -parseInt(_0x439ea4(_0x2c09c3._0x5d3dd4)) / 0xb;
|
|
15
|
+
if (_0x4e155d === _0x260076)
|
|
16
16
|
break;
|
|
17
17
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
18
|
+
_0x27db22['push'](_0x27db22['shift']());
|
|
19
|
+
} catch (_0x1e253e) {
|
|
20
|
+
_0x27db22['push'](_0x27db22['shift']());
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
}(
|
|
23
|
+
}(_0x4d0c, 0xd786e));
|
|
24
24
|
import { pathToFileURL } from 'node:url';
|
|
25
25
|
import {
|
|
26
26
|
mkdir,
|
|
@@ -30,2306 +30,2330 @@ import {
|
|
|
30
30
|
writeFile
|
|
31
31
|
} from 'node:fs/promises';
|
|
32
32
|
import { homedir } from 'node:os';
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
_0x253c99 += '%' + ('00' + _0x334407['charCodeAt'](_0x48b1d6)['toString'](0x10))['slice'](-0x2);
|
|
47
|
-
}
|
|
48
|
-
return decodeURIComponent(_0x253c99);
|
|
49
|
-
};
|
|
50
|
-
_0x59d3['rLIQdU'] = _0xbbbbff, _0x59d3['OafruL'] = {}, _0x59d3['WyTkiT'] = !![];
|
|
51
|
-
}
|
|
52
|
-
const _0x112b65 = _0xbf9ab4[0x0], _0x1b5637 = _0x2e948a + _0x112b65, _0x12409c = _0x59d3['OafruL'][_0x1b5637];
|
|
53
|
-
return !_0x12409c ? (_0x59d315 = _0x59d3['rLIQdU'](_0x59d315), _0x59d3['OafruL'][_0x1b5637] = _0x59d315) : _0x59d315 = _0x12409c, _0x59d315;
|
|
54
|
-
}
|
|
55
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
56
|
-
'.csv': _0x566b69(0x2e8),
|
|
57
|
-
'.gif': _0x566b69(0x1ac),
|
|
58
|
-
'.jpeg': _0x566b69(0x1cd),
|
|
59
|
-
'.jpg': _0x566b69(0x1cd),
|
|
60
|
-
'.json': _0x566b69(0x197),
|
|
61
|
-
'.md': _0x566b69(0x177),
|
|
62
|
-
'.pdf': _0x566b69(0x29f),
|
|
63
|
-
'.png': _0x566b69(0x261),
|
|
64
|
-
'.svg': _0x566b69(0x214),
|
|
65
|
-
'.txt': 'text/plain',
|
|
66
|
-
'.webp': _0x566b69(0x1a2),
|
|
67
|
-
'.xml': _0x566b69(0x2ac),
|
|
68
|
-
'.zip': _0x566b69(0x25c)
|
|
69
|
-
};
|
|
70
|
-
function guessContentType(_0x253c99) {
|
|
71
|
-
const _0x40131f = {
|
|
72
|
-
_0x52c46a: 0x172,
|
|
73
|
-
_0x3bdbcf: 0x1de
|
|
74
|
-
}, _0x1ec037 = _0x566b69;
|
|
75
|
-
return MIME_BY_EXTENSION[_0x334407[_0x1ec037(_0x40131f._0x52c46a)](_0x253c99)[_0x1ec037(_0x40131f._0x3bdbcf)]()] ?? _0x1ec037(0x1df);
|
|
76
|
-
}
|
|
77
|
-
function safeFilename(_0x5a216c) {
|
|
78
|
-
const _0x1a3b7e = _0x566b69;
|
|
79
|
-
return _0x5a216c[_0x1a3b7e(0x1a4)](/[\\/]/g, '-');
|
|
80
|
-
}
|
|
81
|
-
function extensionFor(_0x4657ac) {
|
|
82
|
-
const _0x45a2f9 = { _0x49893a: 0x18b }, _0x1bbdf3 = _0x566b69, _0xaaa056 = Object[_0x1bbdf3(_0x45a2f9._0x49893a)](MIME_BY_EXTENSION)[_0x1bbdf3(0x1ee)](([, _0xe18300]) => _0xe18300 === _0x4657ac);
|
|
83
|
-
return _0xaaa056?.[0x0] ?? '.bin';
|
|
84
|
-
}
|
|
85
|
-
async function prepareUploadFile(_0x48b1d6, _0x14ef3e = {}) {
|
|
86
|
-
const _0x1edf92 = {
|
|
87
|
-
_0x3bbc41: 0x268,
|
|
88
|
-
_0x3a0a98: 0x1f6,
|
|
89
|
-
_0x4765ad: 0x2cb,
|
|
90
|
-
_0x4cd3f7: 0x2d1
|
|
91
|
-
}, _0x11a7c0 = _0x566b69;
|
|
92
|
-
if (!_0x334407['isAbsolute'](_0x48b1d6))
|
|
93
|
-
throw new Error(_0x11a7c0(0x285));
|
|
94
|
-
const _0x24de88 = await stat(_0x48b1d6)['catch'](() => null);
|
|
95
|
-
if (!_0x24de88 || !_0x24de88[_0x11a7c0(0x193)]())
|
|
96
|
-
throw new Error(_0x11a7c0(0x24c) + _0x48b1d6);
|
|
97
|
-
const _0x2c8f1d = _0x14ef3e['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
98
|
-
if (_0x24de88[_0x11a7c0(0x2d1)] > _0x2c8f1d)
|
|
99
|
-
throw new Error(_0x11a7c0(_0x1edf92._0x3bbc41) + _0x24de88[_0x11a7c0(0x2d1)]);
|
|
100
|
-
const _0xae65c8 = await readFile(_0x48b1d6), _0x5b4597 = _0x334407['basename'](_0x48b1d6);
|
|
101
|
-
return {
|
|
102
|
-
'contentBase64': _0xae65c8[_0x11a7c0(_0x1edf92._0x3a0a98)](_0x11a7c0(_0x1edf92._0x4765ad)),
|
|
103
|
-
'contentType': guessContentType(_0x5b4597),
|
|
104
|
-
'filename': _0x5b4597,
|
|
105
|
-
'sizeBytes': _0x24de88[_0x11a7c0(_0x1edf92._0x4cd3f7)]
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function createAttachmentCache(_0x3dfad5 = {}) {
|
|
109
|
-
const _0x23805a = {
|
|
110
|
-
_0x45e3b8: 0x1f5,
|
|
111
|
-
_0x49f353: 0x1d4
|
|
112
|
-
}, _0x148640 = {
|
|
113
|
-
_0x2cc327: 0x220,
|
|
114
|
-
_0x4a484f: 0x1d4
|
|
115
|
-
}, _0x52e228 = { _0x190adc: 0x1d4 }, _0x4cc958 = _0x566b69, _0x21d479 = _0x3dfad5[_0x4cc958(_0x23805a._0x45e3b8)] ?? _0x334407[_0x4cc958(_0x23805a._0x49f353)](homedir(), _0x4cc958(0x237), 'attachments');
|
|
116
|
-
return {
|
|
117
|
-
'cacheDir': _0x21d479,
|
|
118
|
-
async 'findCachedPath'(_0x16b251) {
|
|
119
|
-
const _0x3c87f7 = _0x4cc958;
|
|
120
|
-
await mkdir(_0x21d479, { 'recursive': !![] });
|
|
121
|
-
const _0x1718d8 = await readdir(_0x21d479), _0x22f78d = _0x1718d8['find'](_0x2b2417 => _0x2b2417['startsWith'](_0x16b251 + '-') || _0x2b2417[_0x3c87f7(0x286)](_0x16b251));
|
|
122
|
-
return _0x22f78d ? _0x334407[_0x3c87f7(_0x52e228._0x190adc)](_0x21d479, _0x22f78d) : null;
|
|
123
|
-
},
|
|
124
|
-
async 'save'(_0x267264) {
|
|
125
|
-
const _0x4d3e2b = _0x4cc958;
|
|
126
|
-
await mkdir(_0x21d479, { 'recursive': !![] });
|
|
127
|
-
const _0x337f47 = _0x267264[_0x4d3e2b(0x220)]?.[_0x4d3e2b(0x1b4)]() ? safeFilename(_0x267264[_0x4d3e2b(_0x148640._0x2cc327)]) : '' + _0x267264[_0x4d3e2b(0x2a2)] + extensionFor(_0x267264['contentType']), _0x527e91 = _0x334407[_0x4d3e2b(_0x148640._0x4a484f)](_0x21d479, _0x267264[_0x4d3e2b(0x2a2)] + '-' + _0x337f47);
|
|
128
|
-
return await writeFile(_0x527e91, _0x267264[_0x4d3e2b(0x1fe)]), _0x527e91;
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
import {
|
|
133
|
-
createHash,
|
|
134
|
-
randomUUID
|
|
135
|
-
} from 'node:crypto';
|
|
136
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x566b69(0x1a8);
|
|
137
|
-
function ensureSegment(_0x5e5944) {
|
|
138
|
-
const _0x47cac8 = _0x566b69, _0x4bce8c = _0x5e5944['trim']();
|
|
139
|
-
if (!_0x4bce8c || _0x4bce8c[_0x47cac8(0x25f)](':'))
|
|
140
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
141
|
-
return _0x4bce8c;
|
|
142
|
-
}
|
|
143
|
-
function parseThreadParts(_0xf9e216) {
|
|
144
|
-
const _0x254b79 = { _0x29e232: 0x2df }, _0x551fdc = _0x566b69, _0x29c888 = _0xf9e216[_0x551fdc(_0x254b79._0x29e232)](':');
|
|
145
|
-
if (_0x29c888['length'] < 0x1 || _0x29c888[_0x551fdc(0x1ba)] > 0x2)
|
|
146
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
147
|
-
return {
|
|
148
|
-
'channelName': ensureSegment(_0x29c888[0x0] ?? ''),
|
|
149
|
-
'threadShortId': _0x29c888[0x1] ? ensureSegment(_0x29c888[0x1]) : null
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
function parseTarget(_0x4cf734) {
|
|
153
|
-
const _0x6547b9 = {
|
|
154
|
-
_0x84693b: 0x278,
|
|
155
|
-
_0x35e8ff: 0x262,
|
|
156
|
-
_0x3b858b: 0x2a0,
|
|
157
|
-
_0x277ff7: 0x180,
|
|
158
|
-
_0x5413ec: 0x286,
|
|
159
|
-
_0xec0476: 0x278,
|
|
160
|
-
_0x349165: 0x1c1,
|
|
161
|
-
_0xaa849c: 0x180,
|
|
162
|
-
_0x2d3ab7: 0x1b0,
|
|
163
|
-
_0x29c504: 0x262,
|
|
164
|
-
_0x498952: 0x2a0
|
|
165
|
-
}, _0x52bdf1 = _0x566b69, _0x2325b9 = _0x4cf734[_0x52bdf1(0x1b4)]();
|
|
166
|
-
if (!_0x2325b9)
|
|
167
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
168
|
-
if (_0x2325b9[_0x52bdf1(0x286)]('#')) {
|
|
169
|
-
const _0x377c87 = parseThreadParts(_0x2325b9[_0x52bdf1(_0x6547b9._0x84693b)](0x1)), _0x310b10 = '#' + _0x377c87['channelName'];
|
|
170
|
-
if (!_0x377c87['threadShortId'])
|
|
171
|
-
return {
|
|
172
|
-
'channelName': _0x377c87[_0x52bdf1(_0x6547b9._0x35e8ff)],
|
|
173
|
-
'channelTarget': _0x310b10,
|
|
174
|
-
'kind': _0x52bdf1(0x1b0),
|
|
175
|
-
'target': _0x310b10
|
|
176
|
-
};
|
|
177
|
-
return {
|
|
178
|
-
'channelName': _0x377c87['channelName'],
|
|
179
|
-
'channelTarget': _0x310b10,
|
|
180
|
-
'kind': _0x52bdf1(_0x6547b9._0x3b858b),
|
|
181
|
-
'target': _0x310b10 + ':' + _0x377c87[_0x52bdf1(_0x6547b9._0x277ff7)],
|
|
182
|
-
'threadShortId': _0x377c87[_0x52bdf1(_0x6547b9._0x277ff7)]
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
if (_0x2325b9[_0x52bdf1(_0x6547b9._0x5413ec)](_0x52bdf1(0x21d))) {
|
|
186
|
-
const _0x50a4db = parseThreadParts(_0x2325b9[_0x52bdf1(_0x6547b9._0xec0476)](0x3));
|
|
187
|
-
if (!_0x50a4db[_0x52bdf1(0x262)][_0x52bdf1(0x286)](_0x52bdf1(_0x6547b9._0x349165)))
|
|
188
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
189
|
-
const _0x3e0431 = 'dm:' + _0x50a4db[_0x52bdf1(0x262)];
|
|
190
|
-
if (!_0x50a4db[_0x52bdf1(_0x6547b9._0xaa849c)])
|
|
191
|
-
return {
|
|
192
|
-
'channelName': _0x50a4db[_0x52bdf1(0x262)],
|
|
193
|
-
'channelTarget': _0x3e0431,
|
|
194
|
-
'kind': _0x52bdf1(_0x6547b9._0x2d3ab7),
|
|
195
|
-
'target': _0x3e0431
|
|
196
|
-
};
|
|
197
|
-
return {
|
|
198
|
-
'channelName': _0x50a4db[_0x52bdf1(_0x6547b9._0x29c504)],
|
|
199
|
-
'channelTarget': _0x3e0431,
|
|
200
|
-
'kind': _0x52bdf1(_0x6547b9._0x498952),
|
|
201
|
-
'target': _0x3e0431 + ':' + _0x50a4db[_0x52bdf1(0x180)],
|
|
202
|
-
'threadShortId': _0x50a4db[_0x52bdf1(0x180)]
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
206
|
-
}
|
|
207
|
-
function asErrorMessage(_0x5a83aa, _0x3a7bd1) {
|
|
208
|
-
const _0x269aa8 = { _0xd0e964: 0x230 }, _0x4b804b = _0x566b69;
|
|
209
|
-
if (typeof _0x5a83aa === _0x4b804b(_0x269aa8._0xd0e964) && _0x5a83aa[_0x4b804b(0x1b4)]())
|
|
210
|
-
return _0x5a83aa;
|
|
211
|
-
return _0x3a7bd1;
|
|
212
|
-
}
|
|
213
|
-
function asRecord(_0x237075) {
|
|
214
|
-
return typeof _0x237075 === 'object' && _0x237075 !== null ? _0x237075 : {};
|
|
215
|
-
}
|
|
216
|
-
function stableStringify(_0x2d85dc) {
|
|
217
|
-
const _0x314cec = {
|
|
218
|
-
_0x5d2d64: 0x206,
|
|
219
|
-
_0x42fc4c: 0x29b,
|
|
220
|
-
_0x276981: 0x29b
|
|
221
|
-
}, _0x4d1d69 = _0x566b69;
|
|
222
|
-
if (_0x2d85dc === null || typeof _0x2d85dc !== _0x4d1d69(0x23b))
|
|
223
|
-
return JSON[_0x4d1d69(_0x314cec._0x5d2d64)](_0x2d85dc);
|
|
224
|
-
if (Array['isArray'](_0x2d85dc))
|
|
225
|
-
return '[' + _0x2d85dc[_0x4d1d69(_0x314cec._0x42fc4c)](_0x4b376c => stableStringify(_0x4b376c))[_0x4d1d69(0x1d4)](',') + ']';
|
|
226
|
-
const _0x1fabc2 = Object[_0x4d1d69(0x18b)](_0x2d85dc)[_0x4d1d69(0x277)](([, _0x4f2e19]) => _0x4f2e19 !== void 0x0)[_0x4d1d69(0x2b2)](([_0x4dfcb9], [_0x2ce062]) => _0x4dfcb9[_0x4d1d69(0x170)](_0x2ce062))[_0x4d1d69(_0x314cec._0x276981)](([_0x486951, _0x36fa6d]) => JSON[_0x4d1d69(0x206)](_0x486951) + ':' + stableStringify(_0x36fa6d));
|
|
227
|
-
return '{' + _0x1fabc2[_0x4d1d69(0x1d4)](',') + '}';
|
|
228
|
-
}
|
|
229
|
-
function createHeaders(_0x5b43e5) {
|
|
230
|
-
return {
|
|
231
|
-
'Content-Type': 'application/json',
|
|
232
|
-
'x-daemon-api-key': _0x5b43e5
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
function toHttpBaseUrl(_0x59931c) {
|
|
236
|
-
const _0x55b198 = {
|
|
237
|
-
_0x31a350: 0x1b8,
|
|
238
|
-
_0x50ab1b: 0x1b8,
|
|
239
|
-
_0x22181a: 0x19c
|
|
240
|
-
}, _0x4c7518 = _0x566b69, _0x2fdb85 = new URL(_0x59931c);
|
|
241
|
-
if (_0x2fdb85[_0x4c7518(_0x55b198._0x31a350)] === _0x4c7518(0x233))
|
|
242
|
-
_0x2fdb85[_0x4c7518(_0x55b198._0x50ab1b)] = _0x4c7518(_0x55b198._0x22181a);
|
|
243
|
-
else
|
|
244
|
-
_0x2fdb85[_0x4c7518(0x1b8)] === _0x4c7518(0x196) && (_0x2fdb85['protocol'] = _0x4c7518(0x238));
|
|
245
|
-
return _0x2fdb85[_0x4c7518(0x1f6)]()[_0x4c7518(0x1a4)](/\/$/, '');
|
|
246
|
-
}
|
|
247
|
-
function isMentionBoundary(_0x2702a7) {
|
|
248
|
-
return !_0x2702a7 || /\s|[([{'",。!?、:;]/['test'](_0x2702a7);
|
|
249
|
-
}
|
|
250
|
-
function isMentionTerminal(_0x195de3) {
|
|
251
|
-
const _0xd382a5 = { _0x194b0e: 0x29a }, _0xf13141 = _0x566b69;
|
|
252
|
-
return !_0x195de3 || /\s|[)\]}'",。!?、:;,.!?]/[_0xf13141(_0xd382a5._0x194b0e)](_0x195de3);
|
|
253
|
-
}
|
|
254
|
-
function buildMatchableEntries(_0x350f07) {
|
|
255
|
-
const _0x55165a = {
|
|
256
|
-
_0x4bb8b8: 0x201,
|
|
257
|
-
_0x24cd7b: 0x21a,
|
|
258
|
-
_0x377835: 0x289,
|
|
259
|
-
_0x5b8c53: 0x289,
|
|
260
|
-
_0x293a2e: 0x27a
|
|
261
|
-
}, _0x16a3a3 = _0x566b69, _0x3f7ba4 = [];
|
|
262
|
-
for (const _0x11c1b6 of [
|
|
263
|
-
..._0x350f07[_0x16a3a3(_0x55165a._0x4bb8b8)],
|
|
264
|
-
..._0x350f07[_0x16a3a3(_0x55165a._0x24cd7b)]
|
|
265
|
-
]) {
|
|
266
|
-
_0x3f7ba4[_0x16a3a3(_0x55165a._0x377835)]({
|
|
267
|
-
'matchName': _0x11c1b6[_0x16a3a3(0x22d)],
|
|
268
|
-
'matchNameLower': _0x11c1b6[_0x16a3a3(0x22d)][_0x16a3a3(0x27a)](),
|
|
269
|
-
'participantId': _0x11c1b6['id']
|
|
270
|
-
}), _0x11c1b6['id'] !== _0x11c1b6[_0x16a3a3(0x22d)] && _0x3f7ba4[_0x16a3a3(_0x55165a._0x5b8c53)]({
|
|
271
|
-
'matchName': _0x11c1b6['id'],
|
|
272
|
-
'matchNameLower': _0x11c1b6['id'][_0x16a3a3(_0x55165a._0x293a2e)](),
|
|
273
|
-
'participantId': _0x11c1b6['id']
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
return _0x3f7ba4;
|
|
277
|
-
}
|
|
278
|
-
function extractMentionedParticipantIds(_0x21d7ae, _0x1c9d90) {
|
|
279
|
-
const _0x29dd4a = {
|
|
280
|
-
_0x5405d5: 0x1ba,
|
|
281
|
-
_0x51ea4a: 0x1f9
|
|
282
|
-
}, _0x301793 = {
|
|
283
|
-
_0x4037cd: 0x286,
|
|
284
|
-
_0x2d248d: 0x1f9,
|
|
285
|
-
_0x22359c: 0x1ba
|
|
286
|
-
}, _0x302b31 = _0x566b69, _0x16402b = buildMatchableEntries(_0x1c9d90)[_0x302b31(0x2b2)]((_0x301357, _0x8197bc) => _0x8197bc[_0x302b31(0x1f9)]['length'] - _0x301357[_0x302b31(0x1f9)]['length']), _0x5ca2b9 = [], _0x170c96 = new Set();
|
|
287
|
-
for (let _0x1e2deb = 0x0; _0x1e2deb < _0x21d7ae[_0x302b31(_0x29dd4a._0x5405d5)]; _0x1e2deb += 0x1) {
|
|
288
|
-
if (_0x21d7ae[_0x1e2deb] !== '@' || !isMentionBoundary(_0x21d7ae[_0x1e2deb - 0x1]))
|
|
289
|
-
continue;
|
|
290
|
-
const _0x2f6476 = _0x21d7ae['slice'](_0x1e2deb + 0x1), _0x2c4a33 = _0x2f6476[_0x302b31(0x27a)](), _0x27f012 = _0x16402b[_0x302b31(0x1ee)](_0x3ad153 => {
|
|
291
|
-
const _0x4b1198 = _0x302b31;
|
|
292
|
-
if (!_0x2c4a33[_0x4b1198(_0x301793._0x4037cd)](_0x3ad153[_0x4b1198(0x2fb)]))
|
|
293
|
-
return ![];
|
|
294
|
-
return isMentionTerminal(_0x2f6476[_0x3ad153[_0x4b1198(_0x301793._0x2d248d)][_0x4b1198(_0x301793._0x22359c)]]);
|
|
295
|
-
});
|
|
296
|
-
if (!_0x27f012 || _0x170c96[_0x302b31(0x2bd)](_0x27f012['participantId']))
|
|
297
|
-
continue;
|
|
298
|
-
_0x170c96['add'](_0x27f012[_0x302b31(0x2a5)]), _0x5ca2b9['push'](_0x27f012['participantId']), _0x1e2deb += _0x27f012[_0x302b31(_0x29dd4a._0x51ea4a)][_0x302b31(_0x29dd4a._0x5405d5)];
|
|
299
|
-
}
|
|
300
|
-
return _0x5ca2b9;
|
|
301
|
-
}
|
|
302
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
303
|
-
function _0xbf9a() {
|
|
304
|
-
const _0x3b4d98 = [
|
|
305
|
-
'DgfYz2v0zwruyxnR',
|
|
306
|
-
'CMvHzeHPC3rVCNK',
|
|
307
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
308
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
309
|
-
'ywXS',
|
|
310
|
-
'C3rHCNrLza',
|
|
311
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
312
|
-
'ihr5Cgu9ywDLBNq',
|
|
313
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
314
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
315
|
-
'C2vUzf9TzxnZywDL',
|
|
316
|
-
'DgL0Bgu',
|
|
317
|
-
'm0HNqM1YuW',
|
|
318
|
-
'CM9VDe1LC3nHz2vjza',
|
|
319
|
-
'DgfZA051BwjLCG',
|
|
320
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
321
|
-
'w3rHCMDLDd0',
|
|
322
|
-
'D29YA2vY',
|
|
323
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
324
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
325
|
-
'zMLSzv9WyxrO',
|
|
326
|
-
'Aw5JBhvKzxm',
|
|
327
|
-
'C2vX',
|
|
328
|
-
'Aw1Hz2uVCg5N',
|
|
329
|
-
'y2HHBM5LBe5HBwu',
|
|
330
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
331
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
332
|
-
'y29UDgvUDejHC2u2na',
|
|
333
|
-
'y29UDgvUDfr5Cgu',
|
|
334
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
335
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
336
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
337
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
338
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
339
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
340
|
-
'ywDLBNq',
|
|
341
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
342
|
-
'zgLNzxn0',
|
|
343
|
-
'ywDNCMvNyxrLswrZ',
|
|
344
|
-
'igzHAwXLzdOG',
|
|
345
|
-
'zgvZDhjVEwvK',
|
|
346
|
-
'CMvHC29U',
|
|
347
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
348
|
-
'lsaJ',
|
|
349
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
350
|
-
'zMLSDgvY',
|
|
351
|
-
'C2XPy2u',
|
|
352
|
-
'iYmGu2vYDMvYoIa',
|
|
353
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
354
|
-
'zMv0y2HjBxbS',
|
|
355
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
356
|
-
'z2v0twLUDxrLCW',
|
|
357
|
-
'Dw5RBM93BG',
|
|
358
|
-
'ig1LC3nHz2u9',
|
|
359
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
360
|
-
'l2nVBNrLBNq',
|
|
361
|
-
'D29YA2vYsgfUzg9MzG',
|
|
362
|
-
'pgvTChr5pG',
|
|
363
|
-
'y2HHBM5LBhm',
|
|
364
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
365
|
-
'C3rHCNrZv2L0Aa',
|
|
366
|
-
'CgfYDgLJAxbHBNq',
|
|
367
|
-
'DMfSDwu',
|
|
368
|
-
'ChvZAa',
|
|
369
|
-
'z2v0rNvSBfLLyxi',
|
|
370
|
-
'BgLZDf90yxnRCW',
|
|
371
|
-
'zMLSzxnFy2HHBMDLza',
|
|
372
|
-
'zgvZy3jPChrPB24',
|
|
33
|
+
function _0x4d0c() {
|
|
34
|
+
const _0x2aeaeb = [
|
|
35
|
+
'zMLSzw5HBwu',
|
|
36
|
+
'uefuq0G',
|
|
37
|
+
'Bwv0yq',
|
|
38
|
+
'C3bSAxq',
|
|
39
|
+
'z2v0',
|
|
40
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
41
|
+
'Dw5JBgfPBvrHC2S',
|
|
42
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
43
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
44
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
45
|
+
'l3nLCNzLCG',
|
|
373
46
|
'iIbUB3qGzM91BMq',
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
379
|
-
'y29UDgvUDc10ExbL',
|
|
380
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
47
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
48
|
+
'CMvHC29U',
|
|
49
|
+
'CMvZDwX0',
|
|
50
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
381
51
|
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
52
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
53
|
+
'y2HHBM5LBa',
|
|
54
|
+
'z2v0tw9UDgG',
|
|
55
|
+
'CMvXDwvZDfvYBa',
|
|
56
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
57
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
58
|
+
'C29Tzq',
|
|
59
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
60
|
+
'zgvZy3jPyMu',
|
|
61
|
+
'C2vYDMvYvxjS',
|
|
382
62
|
'zxjYB3i',
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'
|
|
389
|
-
'
|
|
390
|
-
'
|
|
63
|
+
'DgHYzwfKu2HVCNrjza',
|
|
64
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
65
|
+
'DgfYz2v0',
|
|
66
|
+
'C2LNBMfS',
|
|
67
|
+
'DgfZAW',
|
|
68
|
+
'CgfYC2vjBNq',
|
|
69
|
+
'y3jLyxrLx3rHC2TZ',
|
|
70
|
+
'y29UDgvUDc10ExbL',
|
|
71
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
72
|
+
'DgfZA3m',
|
|
391
73
|
'DgHYzwfK',
|
|
74
|
+
'yxjYyxK',
|
|
75
|
+
'BM93',
|
|
76
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
77
|
+
'DgHYzwfKvgfYz2v0',
|
|
78
|
+
'BwvZC2fNzuLK',
|
|
79
|
+
'B3b0Aw9UywW',
|
|
80
|
+
'zxzLBNrtzxe',
|
|
81
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
82
|
+
'BgLTAxq',
|
|
83
|
+
'ihn0yxr1CZ0',
|
|
84
|
+
'BgLZDfrHC2TZ',
|
|
85
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
86
|
+
'D29YA19RzxK',
|
|
87
|
+
'nZvwC1HUywC',
|
|
88
|
+
'C3rHCNrLza',
|
|
89
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
90
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
91
|
+
'DgfYz2v0zwruyxnR',
|
|
92
|
+
'ANnVBG',
|
|
93
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
94
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
95
|
+
'kg5VBMuP',
|
|
392
96
|
'ue9tva',
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
97
|
+
'AgfZtw9Yzq',
|
|
98
|
+
'y2HHBM5LBhm',
|
|
99
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
100
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
101
|
+
'r0vu',
|
|
102
|
+
'CgfYDgLJAxbHBNq',
|
|
103
|
+
'Bwf0y2Hoyw1L',
|
|
104
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
105
|
+
'Dg9gAxHLza',
|
|
106
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
107
|
+
'l3nLBMq',
|
|
108
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
109
|
+
'lcbWCMv2Awv3pq',
|
|
110
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
111
|
+
'DxnLCG',
|
|
112
|
+
'Aw1Hz2uVCg5N',
|
|
113
|
+
'l2nVBNrLBNq',
|
|
114
|
+
'CNvUBMLUzW',
|
|
115
|
+
'ig1ZzZ0',
|
|
116
|
+
'yMfZzty0',
|
|
117
|
+
'v29YA2vYia',
|
|
118
|
+
'z2v0rgf0zq',
|
|
119
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
120
|
+
'zgf0yq',
|
|
121
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
122
|
+
'Aw1Hz2uVD2vICa',
|
|
123
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
124
|
+
'zgvJAxnPB25Z',
|
|
125
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
126
|
+
'w3nLCt0',
|
|
127
|
+
'C2L6zq',
|
|
128
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
129
|
+
'z2v0twLUDxrLCW',
|
|
130
|
+
'igLUia',
|
|
131
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
132
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
133
|
+
'Dw5JBgfPBv90yxnR',
|
|
134
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
396
135
|
'CgfYDgLJAxbHBNrjza',
|
|
397
|
-
'
|
|
136
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
137
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
138
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
139
|
+
'ChvZAa',
|
|
140
|
+
'zxH0BMfTzq',
|
|
141
|
+
'Bwf4',
|
|
398
142
|
'DxjNzw50',
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
414
|
-
'
|
|
143
|
+
'iJOGC3rHDhvZpq',
|
|
144
|
+
'iokaLca',
|
|
145
|
+
'zw51Bq',
|
|
146
|
+
'C2HHmJu2',
|
|
147
|
+
'C2vUze1LC3nHz2u',
|
|
148
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
149
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
150
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
151
|
+
'n01nt0HVBW',
|
|
152
|
+
'Dg9ju09tDhjPBMC',
|
|
153
|
+
'AgvHzgvYCW',
|
|
154
|
+
'y2f0y2G',
|
|
155
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
156
|
+
'AxnjBNrLz2vY',
|
|
157
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
158
|
+
'mtq3mZC0mZDmy3PHEMO',
|
|
159
|
+
'AgfZ',
|
|
160
|
+
'CgfKu3rHCNq',
|
|
161
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
162
|
+
'Cgf5Bg9HzePZB24',
|
|
163
|
+
'C2f2zq',
|
|
164
|
+
'ywDLBNrjza',
|
|
165
|
+
'AgLNAa',
|
|
166
|
+
'CxvLDwvK',
|
|
167
|
+
'C3rYAw5NAwz5',
|
|
168
|
+
'zMv0y2HjBxbS',
|
|
169
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
170
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
171
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
172
|
+
'yMXVy2TLza',
|
|
173
|
+
'l3rHC2TZ',
|
|
174
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
175
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
176
|
+
'lsba',
|
|
177
|
+
'DgfYz2v0zwq',
|
|
178
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
179
|
+
'D29YA2vYsgfUzg9MzG',
|
|
415
180
|
'yxr0ywnOBwvUDf9Pzhm',
|
|
416
|
-
'
|
|
417
|
-
'
|
|
418
|
-
'
|
|
181
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
182
|
+
'mJuXmZuYnfLmqxrIzq',
|
|
183
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
184
|
+
'ywDLBNq',
|
|
185
|
+
'CMvHzf9OAxn0B3j5',
|
|
186
|
+
'ig1LC3nHz2u9',
|
|
187
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
188
|
+
'C3rHDhvZ',
|
|
189
|
+
'BwfW',
|
|
190
|
+
'B3bLBL9PC3n1zxm',
|
|
191
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
192
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
193
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
194
|
+
'yxr0ywnOBwvUDeLK',
|
|
195
|
+
'C3rVCe1HAw4',
|
|
196
|
+
'AxngAw5PDgu',
|
|
197
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
198
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
199
|
+
'yxnPzgu',
|
|
419
200
|
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'
|
|
201
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
202
|
+
'vgfZAYa',
|
|
203
|
+
'BwvTyMvYCW',
|
|
204
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
205
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
206
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
207
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
208
|
+
'C2vZC2LVBKLK',
|
|
209
|
+
'sfruuca',
|
|
210
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
211
|
+
'AxngAwXL',
|
|
212
|
+
'DgfZA0LK',
|
|
213
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
214
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
215
|
+
'C2v0',
|
|
216
|
+
'ywz0zxjtzxe',
|
|
217
|
+
'y2XHAw1FDgfZA3m',
|
|
218
|
+
'AxnbCNjHEq',
|
|
219
|
+
'ywXS',
|
|
220
|
+
'ywjVCNq',
|
|
221
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
222
|
+
'Dg9KBW',
|
|
223
|
+
'B2jQzwn0',
|
|
224
|
+
'DhjPBq',
|
|
225
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
226
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
425
227
|
'C2vUzgvYtMfTzq',
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'
|
|
435
|
-
'
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
228
|
+
'CNvUswq',
|
|
229
|
+
'iYmGu2vYDMvYoIa',
|
|
230
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
231
|
+
'z2v0sg91CNm',
|
|
232
|
+
'zw50CMLLCW',
|
|
233
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
234
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
235
|
+
'y2HLy2TnzxnZywDLCW',
|
|
236
|
+
'yxjNDG',
|
|
237
|
+
'DMLZAwjPBgL0Eq',
|
|
238
|
+
'CMvWBgfJzq',
|
|
239
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
240
|
+
'BgLZDf9Zzxj2zxi',
|
|
241
|
+
'ywjVCNrLza',
|
|
242
|
+
'C3vTBwfYEq',
|
|
243
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
244
|
+
'C3rYAw5N',
|
|
245
|
+
'zgvZy3jPChrPB24',
|
|
246
|
+
'xsba',
|
|
439
247
|
'ig1LC3nHz2vZkqOk',
|
|
440
|
-
'C2L6zq',
|
|
441
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
442
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
443
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
444
|
-
'CMvJB3jK',
|
|
445
|
-
'DMfSDwvZ',
|
|
446
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
447
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
448
|
-
'yMXVy2TLza',
|
|
449
248
|
'Aw5FChjVz3jLC3m',
|
|
450
|
-
'
|
|
451
|
-
'
|
|
452
|
-
'
|
|
453
|
-
'
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
'
|
|
458
|
-
'
|
|
459
|
-
'
|
|
249
|
+
'ChjVDg9JB2W',
|
|
250
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
251
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
252
|
+
'AM9PBG',
|
|
253
|
+
'BMfTzq',
|
|
254
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
255
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
256
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
257
|
+
'zgvZDhjVEwvK',
|
|
258
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
259
|
+
'y2HHBM5LBeLK',
|
|
260
|
+
'A2LUza',
|
|
261
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
262
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
263
|
+
'icHPzdO',
|
|
264
|
+
'l2zPBMLZAa',
|
|
265
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
266
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
267
|
+
'AwrSzq',
|
|
268
|
+
'zg06',
|
|
269
|
+
'C2vYDMvYtMfTzq',
|
|
270
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
271
|
+
'ignSywLTzwq',
|
|
272
|
+
'y3jLyxrLvgfZA3m',
|
|
460
273
|
'y3vYC29Y',
|
|
461
|
-
'
|
|
462
|
-
'
|
|
463
|
-
'
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
468
|
-
'
|
|
274
|
+
'Aw5FCMv2Awv3',
|
|
275
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
276
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
277
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
278
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
279
|
+
'C3vJy2vZCW',
|
|
280
|
+
'pgvTChr5pG',
|
|
281
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
282
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
283
|
+
'AhvTyw5Z',
|
|
284
|
+
'C2vX',
|
|
285
|
+
'DgfZA051BwjLCG',
|
|
469
286
|
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
470
|
-
'
|
|
471
|
-
'
|
|
472
|
-
'
|
|
473
|
-
'
|
|
474
|
-
'
|
|
287
|
+
'igf0DgfJAg1LBNq',
|
|
288
|
+
'v29YA2vYici',
|
|
289
|
+
'Agv4',
|
|
290
|
+
'DgvZDa',
|
|
291
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
475
292
|
'BwvZC2fNzxm',
|
|
476
|
-
'
|
|
477
|
-
'
|
|
478
|
-
'Dg9gAxHLza',
|
|
479
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
480
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
481
|
-
'EM9K',
|
|
482
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
483
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
484
|
-
'ywz0zxjtzxe',
|
|
485
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
486
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
487
|
-
'Bg9JywXLq29TCgfYzq',
|
|
488
|
-
'ChvIBgLJ',
|
|
489
|
-
'zxH0BMfTzq',
|
|
490
|
-
'DxbKyxrL',
|
|
491
|
-
'z2v0',
|
|
492
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
493
|
-
'mtK0u2rWALrp',
|
|
293
|
+
'lIbnzxnZywDLieLeoIa',
|
|
294
|
+
'Dgv4Da',
|
|
494
295
|
'Dgv4Dc9TyxjRzg93BG',
|
|
495
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
496
|
-
'cGOTls0G',
|
|
497
296
|
'ywrK',
|
|
498
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
499
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
500
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
501
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
502
|
-
'DgfZA3m',
|
|
503
|
-
'DgHYzwfKu2HVCNrjza',
|
|
504
297
|
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
505
|
-
'
|
|
506
|
-
'
|
|
507
|
-
'
|
|
508
|
-
'
|
|
509
|
-
'
|
|
510
|
-
'
|
|
511
|
-
'
|
|
512
|
-
'
|
|
513
|
-
'Aw5KzxHpzG',
|
|
514
|
-
'zw50CMLLCW',
|
|
515
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
516
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
517
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
518
|
-
'lsba',
|
|
519
|
-
'Aw5FCMv2Awv3',
|
|
520
|
-
'CMvHzf9OAxn0B3j5',
|
|
521
|
-
'y29UDgvUDa',
|
|
522
|
-
'AxngAwXL',
|
|
298
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
299
|
+
'zMLUza',
|
|
300
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
301
|
+
'ywDNCMvNyxrLswrZ',
|
|
302
|
+
'mtKYodm3mg5TtwDMrq',
|
|
303
|
+
'Bg93',
|
|
304
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
305
|
+
'ihr5Cgu9ywDLBNq',
|
|
523
306
|
'ywDNCMvNyxrLswq',
|
|
524
|
-
'
|
|
525
|
-
'
|
|
526
|
-
'
|
|
527
|
-
'
|
|
528
|
-
'
|
|
529
|
-
'
|
|
530
|
-
'
|
|
531
|
-
'
|
|
532
|
-
'
|
|
533
|
-
'
|
|
534
|
-
'
|
|
307
|
+
'DgfZAY0',
|
|
308
|
+
'BMv4Den1CNnVCG',
|
|
309
|
+
'iYmJiefNzw50CW',
|
|
310
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
311
|
+
'yxv0BZO',
|
|
312
|
+
'y29UDgvUDa',
|
|
313
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
314
|
+
'y29UBMvJDa',
|
|
315
|
+
'l3vWBg9Hza',
|
|
316
|
+
'ywDLBNrZ',
|
|
317
|
+
'C2XPy2u',
|
|
318
|
+
'ChvIBgLJ',
|
|
319
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
320
|
+
'l3jLy2vPDMu',
|
|
321
|
+
'lNnSB2nR',
|
|
322
|
+
'iYmJienOyw5UzwXZ',
|
|
323
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
324
|
+
'y2HHBM5LBe5HBwu',
|
|
325
|
+
'Aw5JBhvKzxm',
|
|
326
|
+
'D29YA2vYCW',
|
|
327
|
+
'D29YA2vYtw9Kzq',
|
|
328
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
329
|
+
'C2vYDMvY',
|
|
330
|
+
'DgL0Bgu',
|
|
331
|
+
'mte4mdKXnJHhvuDUtgC',
|
|
332
|
+
'y2XPzw50',
|
|
333
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
334
|
+
'DgfZA19Pza',
|
|
335
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
336
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
337
|
+
'l3rHC2TZl2nSywLT',
|
|
338
|
+
'BwvTyMvY',
|
|
339
|
+
'zMLSDgvY',
|
|
340
|
+
'zgLZCg9ZAxrPB24',
|
|
341
|
+
'C2vUzf9TzxnZywDL',
|
|
342
|
+
'w3rHCMDLDd0',
|
|
343
|
+
'mtbjD2jPyu8',
|
|
344
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
345
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
346
|
+
'ywz0zxi',
|
|
347
|
+
'DgHYzwfKtNvTyMvY',
|
|
348
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
535
349
|
'C2L6zuj5DgvZ',
|
|
536
|
-
'
|
|
537
|
-
'
|
|
538
|
-
'
|
|
539
|
-
'
|
|
540
|
-
'
|
|
541
|
-
'
|
|
542
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
543
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
544
|
-
'CMvZDwX0sNnVBG',
|
|
545
|
-
'y3jLyxrLx3rHC2TZ',
|
|
546
|
-
'l2HPC3rVCNK/',
|
|
547
|
-
'Aw1Hz2uVz2LM',
|
|
548
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
549
|
-
'mta1nJbtyuvNsMu',
|
|
550
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
551
|
-
'y2HHBM5LBa',
|
|
552
|
-
'AgvHzgvYCW',
|
|
553
|
-
'z2v0rgf0zq',
|
|
554
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
555
|
-
'DhjPBq',
|
|
556
|
-
'C3rVCe1HAw4',
|
|
557
|
-
'BNvTyMvY',
|
|
558
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
559
|
-
'ChjVDg9JB2W',
|
|
560
|
-
'Agv4',
|
|
350
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
351
|
+
'AhjLzG',
|
|
352
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
353
|
+
'ls1Hz2vUDc1Pza',
|
|
354
|
+
'DxbSB2fKx2zPBgu',
|
|
355
|
+
'Dg9VBa',
|
|
561
356
|
'BgvUz3rO',
|
|
357
|
+
'vgfZAZOG',
|
|
358
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
359
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
360
|
+
'mtaXmZq5mtHIAgzpveG',
|
|
361
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
362
|
+
'DhLWzq',
|
|
363
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
364
|
+
'l2HPC3rVCNK/',
|
|
365
|
+
'D2fPDgLUz19PBNb1Da',
|
|
366
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
367
|
+
'ihrPBwu9',
|
|
368
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
562
369
|
'kgXLz2fJEsK',
|
|
563
|
-
'
|
|
564
|
-
'
|
|
565
|
-
'
|
|
566
|
-
'
|
|
567
|
-
'
|
|
568
|
-
'
|
|
569
|
-
'
|
|
570
|
-
'
|
|
571
|
-
'
|
|
572
|
-
'
|
|
573
|
-
'
|
|
574
|
-
'
|
|
575
|
-
'
|
|
576
|
-
'
|
|
577
|
-
'
|
|
578
|
-
'
|
|
579
|
-
'
|
|
370
|
+
'yxjYyxLcDwzMzxi',
|
|
371
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
372
|
+
'mJG5ndHlBKr3C1O',
|
|
373
|
+
'y29UDgvUDfr5Cgu',
|
|
374
|
+
'l3n0yxj0',
|
|
375
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
376
|
+
'yMfZzw5HBwu',
|
|
377
|
+
'BwLU',
|
|
378
|
+
'y29TCgXLDgvK',
|
|
379
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
380
|
+
'BgLZDf90yxnRCW',
|
|
381
|
+
'yM9KEu1HCMTKB3DU',
|
|
382
|
+
'yxr0ywnOBwvUDhm',
|
|
383
|
+
'Dw5RBM93BG',
|
|
384
|
+
'z2v0u2vJB25KCW',
|
|
385
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
386
|
+
'igzHAwXLzdOG',
|
|
387
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
388
|
+
'AxnbyNnVBhv0zq',
|
|
389
|
+
'D3m6',
|
|
390
|
+
'DgHYzwfKswq',
|
|
391
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
392
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
393
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
580
394
|
'Aw1Hz2uVANbLzW',
|
|
581
|
-
'
|
|
582
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
583
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
584
|
-
'B3b0Aw9UywW',
|
|
585
|
-
'BMv4Den1CNnVCG',
|
|
586
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
587
|
-
'AM9PBG',
|
|
588
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
589
|
-
'iYmJienOyw5UzwXZ',
|
|
590
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
591
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
592
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
593
|
-
'BwvTyMvY',
|
|
594
|
-
'zgvSzxrL',
|
|
595
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
596
|
-
'zgvZy3jPyMu',
|
|
597
|
-
'Dg9mB3DLCKnHC2u',
|
|
598
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
395
|
+
'y3jLyxrLzef0',
|
|
599
396
|
'BwvZC2fNzq',
|
|
600
|
-
'
|
|
601
|
-
'
|
|
602
|
-
'zg9Uzq',
|
|
397
|
+
'CM9VDe1LC3nHz2vjza',
|
|
398
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
603
399
|
'khvUA25VD24P',
|
|
604
|
-
'
|
|
605
|
-
'
|
|
606
|
-
'
|
|
607
|
-
'
|
|
608
|
-
'
|
|
609
|
-
'
|
|
610
|
-
'
|
|
611
|
-
'
|
|
612
|
-
'6k+35Rgcia',
|
|
613
|
-
'zMLUza',
|
|
614
|
-
'mJeYodDnuMreAM4',
|
|
615
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
616
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
617
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
618
|
-
'C2vYDMvYtMfTzq',
|
|
619
|
-
'kg5VBMuP',
|
|
620
|
-
'y2fJAgveAxi',
|
|
400
|
+
'yMvMB3jL',
|
|
401
|
+
'lsaJ',
|
|
402
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
403
|
+
'zNjVBq',
|
|
404
|
+
'C3rHCNrZv2L0Aa',
|
|
405
|
+
'C2vUzgvYvhLWzq',
|
|
406
|
+
'BNvTyMvY',
|
|
407
|
+
'nJqXota3nLHttMrusq',
|
|
621
408
|
'Dg9tDhjPBMC',
|
|
622
|
-
'
|
|
623
|
-
'
|
|
624
|
-
'
|
|
625
|
-
'
|
|
626
|
-
'C3rHDhvZ',
|
|
627
|
-
'ywjVCNrLza',
|
|
628
|
-
'DgfZA19Pza',
|
|
629
|
-
'zgf0yq',
|
|
630
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
631
|
-
'A2LUza',
|
|
632
|
-
'ywDLBNrZ',
|
|
633
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
634
|
-
'zgvJAxnPB25Z',
|
|
635
|
-
'DxrMoa',
|
|
636
|
-
'mtu5mKrqDxjPqq',
|
|
637
|
-
'C3rYAw5NAwz5',
|
|
638
|
-
'mtCWodyWte1oBuHQ',
|
|
639
|
-
'ig1ZzZ0',
|
|
640
|
-
'lcbWCMv2Awv3pq',
|
|
641
|
-
'zw51Bq',
|
|
642
|
-
'z2v0sg91CNm',
|
|
643
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
409
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
410
|
+
'CgfYC2u',
|
|
411
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
412
|
+
'ls1ZzxnZAw9UlwLK',
|
|
644
413
|
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
645
|
-
'
|
|
646
|
-
'
|
|
647
|
-
'
|
|
648
|
-
'
|
|
649
|
-
'sfruuca',
|
|
650
|
-
'zM9Yy2vszwzYzxnO',
|
|
651
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
652
|
-
'C2HHmJu2',
|
|
653
|
-
'BgLZDf9Zzxj2zxi',
|
|
654
|
-
'C2vYDMvY',
|
|
655
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
656
|
-
'yMvMB3jL',
|
|
657
|
-
'AhvTyw5Z',
|
|
658
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
659
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
660
|
-
'zg06',
|
|
661
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
662
|
-
'DxbSB2fKx2zPBgu',
|
|
663
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
664
|
-
'mZy4mdmZnwTUy2XoCa',
|
|
665
|
-
'mtqZntK2uujMsuz2',
|
|
666
|
-
'BMv4Df9ZDgvWCW',
|
|
667
|
-
'l3rHC2TZ',
|
|
668
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
669
|
-
'l3vWBg9Hza',
|
|
670
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
671
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
672
|
-
'zMfSC2u',
|
|
673
|
-
'igLUia',
|
|
674
|
-
'yxr0ywnOBwvUDhm',
|
|
675
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
676
|
-
'BMfTzq',
|
|
677
|
-
'BgLZDfnLCNzLCG',
|
|
678
|
-
'Dg9ju09tDhjPBMC',
|
|
679
|
-
'C3rYAw5N',
|
|
414
|
+
'ls1Zzxj2zxiTDxjS',
|
|
415
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
416
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
417
|
+
'muzZEe1dCG',
|
|
680
418
|
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
681
|
-
'
|
|
682
|
-
'
|
|
683
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
684
|
-
'BwvKAxvT',
|
|
685
|
-
'CNvUswq',
|
|
686
|
-
'lNnSB2nR',
|
|
687
|
-
'Ahr0Chm6',
|
|
688
|
-
'yxv0BZO',
|
|
689
|
-
'z2v0u2vJB25KCW',
|
|
690
|
-
'B2jQzwn0',
|
|
691
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
692
|
-
'l3nLCNzLCG',
|
|
693
|
-
'y2HHBM5LBeLK',
|
|
694
|
-
'C2vUzgvYvhLWzq',
|
|
695
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
696
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
697
|
-
'Dw5JBgfPBv90yxnR',
|
|
698
|
-
'CxvLDwvK',
|
|
699
|
-
'BM93',
|
|
700
|
-
'Cgf5Bg9HzePZB24',
|
|
701
|
-
'z2v0tw9UDgG',
|
|
702
|
-
'AxnjBNrLz2vY',
|
|
703
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
704
|
-
'y2XHAw1FDgfZA3m'
|
|
419
|
+
'DMLLD19MAwXL',
|
|
420
|
+
'C29YDa'
|
|
705
421
|
];
|
|
706
|
-
|
|
707
|
-
return
|
|
422
|
+
_0x4d0c = function () {
|
|
423
|
+
return _0x2aeaeb;
|
|
424
|
+
};
|
|
425
|
+
return _0x4d0c();
|
|
426
|
+
}
|
|
427
|
+
import _0x3ec660 from 'node:path';
|
|
428
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
429
|
+
'.csv': 'text/csv',
|
|
430
|
+
'.gif': 'image/gif',
|
|
431
|
+
'.jpeg': _0x42cca9(0x10d),
|
|
432
|
+
'.jpg': _0x42cca9(0x10d),
|
|
433
|
+
'.json': _0x42cca9(0x182),
|
|
434
|
+
'.md': _0x42cca9(0x22c),
|
|
435
|
+
'.pdf': _0x42cca9(0x1ba),
|
|
436
|
+
'.png': _0x42cca9(0x175),
|
|
437
|
+
'.svg': 'image/svg+xml',
|
|
438
|
+
'.txt': 'text/plain',
|
|
439
|
+
'.webp': _0x42cca9(0x17f),
|
|
440
|
+
'.xml': 'application/xml',
|
|
441
|
+
'.zip': _0x42cca9(0xf3)
|
|
442
|
+
};
|
|
443
|
+
function guessContentType(_0x122329) {
|
|
444
|
+
const _0x10ca19 = { _0x52fdbf: 0x191 }, _0x25492d = _0x42cca9;
|
|
445
|
+
return MIME_BY_EXTENSION[_0x3ec660[_0x25492d(_0x10ca19._0x52fdbf)](_0x122329)['toLowerCase']()] ?? _0x25492d(0x231);
|
|
446
|
+
}
|
|
447
|
+
function safeFilename(_0x490595) {
|
|
448
|
+
return _0x490595['replace'](/[\\/]/g, '-');
|
|
449
|
+
}
|
|
450
|
+
function extensionFor(_0x2ee2a5) {
|
|
451
|
+
const _0x2befbb = { _0x38670d: 0x1ed }, _0x26f75f = _0x42cca9, _0x1cf2d8 = Object[_0x26f75f(_0x2befbb._0x38670d)](MIME_BY_EXTENSION)['find'](([, _0x4aed3a]) => _0x4aed3a === _0x2ee2a5);
|
|
452
|
+
return _0x1cf2d8?.[0x0] ?? '.bin';
|
|
453
|
+
}
|
|
454
|
+
async function prepareUploadFile(_0x469d99, _0x29ff7a = {}) {
|
|
455
|
+
const _0x3284b9 = {
|
|
456
|
+
_0x57b4e1: 0x107,
|
|
457
|
+
_0x2811b2: 0x184,
|
|
458
|
+
_0x12e706: 0xfb
|
|
459
|
+
}, _0x213bc2 = _0x42cca9;
|
|
460
|
+
if (!_0x3ec660[_0x213bc2(_0x3284b9._0x57b4e1)](_0x469d99))
|
|
461
|
+
throw new Error(_0x213bc2(0x163));
|
|
462
|
+
const _0x3ee5da = await stat(_0x469d99)[_0x213bc2(0x19f)](() => null);
|
|
463
|
+
if (!_0x3ee5da || !_0x3ee5da[_0x213bc2(0x1d8)]())
|
|
464
|
+
throw new Error(_0x213bc2(0x1c6) + _0x469d99);
|
|
465
|
+
const _0x45bfc4 = _0x29ff7a[_0x213bc2(0x19b)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
466
|
+
if (_0x3ee5da[_0x213bc2(_0x3284b9._0x2811b2)] > _0x45bfc4)
|
|
467
|
+
throw new Error(_0x213bc2(0x200) + _0x3ee5da[_0x213bc2(0x184)]);
|
|
468
|
+
const _0x513303 = await readFile(_0x469d99), _0x18b9ea = _0x3ec660[_0x213bc2(_0x3284b9._0x12e706)](_0x469d99);
|
|
469
|
+
return {
|
|
470
|
+
'contentBase64': _0x513303[_0x213bc2(0x11b)](_0x213bc2(0x179)),
|
|
471
|
+
'contentType': guessContentType(_0x18b9ea),
|
|
472
|
+
'filename': _0x18b9ea,
|
|
473
|
+
'sizeBytes': _0x3ee5da['size']
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
function createAttachmentCache(_0x2598c7 = {}) {
|
|
477
|
+
const _0x17cdaf = {
|
|
478
|
+
_0x5140c9: 0x1ef,
|
|
479
|
+
_0x53c4e3: 0x1e5,
|
|
480
|
+
_0x45fa1c: 0x1ef,
|
|
481
|
+
_0xb0449c: 0x1c7
|
|
482
|
+
}, _0x3879a1 = _0x42cca9, _0x2105b6 = _0x2598c7['cacheDir'] ?? _0x3ec660[_0x3879a1(0x201)](homedir(), _0x3879a1(0x246), 'attachments');
|
|
483
|
+
return {
|
|
484
|
+
'cacheDir': _0x2105b6,
|
|
485
|
+
async 'findCachedPath'(_0x20647e) {
|
|
486
|
+
const _0x55379e = _0x3879a1;
|
|
487
|
+
await mkdir(_0x2105b6, { 'recursive': !![] });
|
|
488
|
+
const _0x36452c = await readdir(_0x2105b6), _0x5900ed = _0x36452c[_0x55379e(0x230)](_0x1bb5f7 => _0x1bb5f7[_0x55379e(0x117)](_0x20647e + '-') || _0x1bb5f7[_0x55379e(0x117)](_0x20647e));
|
|
489
|
+
return _0x5900ed ? _0x3ec660[_0x55379e(0x201)](_0x2105b6, _0x5900ed) : null;
|
|
490
|
+
},
|
|
491
|
+
async 'save'(_0x370b63) {
|
|
492
|
+
const _0x410f56 = _0x3879a1;
|
|
493
|
+
await mkdir(_0x2105b6, { 'recursive': !![] });
|
|
494
|
+
const _0x2353f4 = _0x370b63[_0x410f56(_0x17cdaf._0x5140c9)]?.[_0x410f56(_0x17cdaf._0x53c4e3)]() ? safeFilename(_0x370b63[_0x410f56(_0x17cdaf._0x45fa1c)]) : '' + _0x370b63[_0x410f56(0x1c7)] + extensionFor(_0x370b63[_0x410f56(0xf8)]), _0x349b47 = _0x3ec660[_0x410f56(0x201)](_0x2105b6, _0x370b63[_0x410f56(_0x17cdaf._0xb0449c)] + '-' + _0x2353f4);
|
|
495
|
+
return await writeFile(_0x349b47, _0x370b63[_0x410f56(0x17d)]), _0x349b47;
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
import {
|
|
500
|
+
createHash,
|
|
501
|
+
randomUUID
|
|
502
|
+
} from 'node:crypto';
|
|
503
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x42cca9(0x1eb);
|
|
504
|
+
function ensureSegment(_0x553087) {
|
|
505
|
+
const _0x364c22 = { _0x3b9500: 0x24a }, _0x41f81d = _0x42cca9, _0x48fe6a = _0x553087[_0x41f81d(0x1e5)]();
|
|
506
|
+
if (!_0x48fe6a || _0x48fe6a[_0x41f81d(_0x364c22._0x3b9500)](':'))
|
|
507
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
508
|
+
return _0x48fe6a;
|
|
509
|
+
}
|
|
510
|
+
function parseThreadParts(_0x2e965f) {
|
|
511
|
+
const _0x477d6b = _0x42cca9, _0x5c07c7 = _0x2e965f[_0x477d6b(0x12b)](':');
|
|
512
|
+
if (_0x5c07c7['length'] < 0x1 || _0x5c07c7['length'] > 0x2)
|
|
513
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
514
|
+
return {
|
|
515
|
+
'channelName': ensureSegment(_0x5c07c7[0x0] ?? ''),
|
|
516
|
+
'threadShortId': _0x5c07c7[0x1] ? ensureSegment(_0x5c07c7[0x1]) : null
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
function parseTarget(_0x10ca27) {
|
|
520
|
+
const _0x2f7904 = {
|
|
521
|
+
_0x53cb55: 0x117,
|
|
522
|
+
_0xf40ee9: 0x242,
|
|
523
|
+
_0x3b5b45: 0x144,
|
|
524
|
+
_0x575df1: 0x13a,
|
|
525
|
+
_0x524ab7: 0x144,
|
|
526
|
+
_0x2ed592: 0x211,
|
|
527
|
+
_0x2cbc8e: 0x14e,
|
|
528
|
+
_0x449953: 0x144
|
|
529
|
+
}, _0x5dce52 = _0x42cca9, _0x50cc1a = _0x10ca27[_0x5dce52(0x1e5)]();
|
|
530
|
+
if (!_0x50cc1a)
|
|
531
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
532
|
+
if (_0x50cc1a[_0x5dce52(_0x2f7904._0x53cb55)]('#')) {
|
|
533
|
+
const _0x152946 = parseThreadParts(_0x50cc1a[_0x5dce52(_0x2f7904._0xf40ee9)](0x1)), _0x21b2a8 = '#' + _0x152946[_0x5dce52(0x249)];
|
|
534
|
+
if (!_0x152946[_0x5dce52(_0x2f7904._0x3b5b45)])
|
|
535
|
+
return {
|
|
536
|
+
'channelName': _0x152946['channelName'],
|
|
537
|
+
'channelTarget': _0x21b2a8,
|
|
538
|
+
'kind': _0x5dce52(_0x2f7904._0x575df1),
|
|
539
|
+
'target': _0x21b2a8
|
|
540
|
+
};
|
|
541
|
+
return {
|
|
542
|
+
'channelName': _0x152946['channelName'],
|
|
543
|
+
'channelTarget': _0x21b2a8,
|
|
544
|
+
'kind': 'thread',
|
|
545
|
+
'target': _0x21b2a8 + ':' + _0x152946[_0x5dce52(0x144)],
|
|
546
|
+
'threadShortId': _0x152946[_0x5dce52(_0x2f7904._0x524ab7)]
|
|
547
|
+
};
|
|
548
|
+
}
|
|
549
|
+
if (_0x50cc1a[_0x5dce52(0x117)]('dm:')) {
|
|
550
|
+
const _0x1af84c = parseThreadParts(_0x50cc1a[_0x5dce52(_0x2f7904._0xf40ee9)](0x3));
|
|
551
|
+
if (!_0x1af84c[_0x5dce52(0x249)][_0x5dce52(_0x2f7904._0x53cb55)]('dm-'))
|
|
552
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
553
|
+
const _0x3e4e69 = _0x5dce52(_0x2f7904._0x2ed592) + _0x1af84c['channelName'];
|
|
554
|
+
if (!_0x1af84c[_0x5dce52(0x144)])
|
|
555
|
+
return {
|
|
556
|
+
'channelName': _0x1af84c[_0x5dce52(0x249)],
|
|
557
|
+
'channelTarget': _0x3e4e69,
|
|
558
|
+
'kind': 'channel',
|
|
559
|
+
'target': _0x3e4e69
|
|
560
|
+
};
|
|
561
|
+
return {
|
|
562
|
+
'channelName': _0x1af84c['channelName'],
|
|
563
|
+
'channelTarget': _0x3e4e69,
|
|
564
|
+
'kind': _0x5dce52(_0x2f7904._0x2cbc8e),
|
|
565
|
+
'target': _0x3e4e69 + ':' + _0x1af84c[_0x5dce52(_0x2f7904._0x449953)],
|
|
566
|
+
'threadShortId': _0x1af84c['threadShortId']
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
570
|
+
}
|
|
571
|
+
function asErrorMessage(_0xe0cb47, _0x4874d9) {
|
|
572
|
+
const _0x12f013 = { _0x4571fe: 0x1f9 }, _0x3c1c3e = _0x42cca9;
|
|
573
|
+
if (typeof _0xe0cb47 === _0x3c1c3e(_0x12f013._0x4571fe) && _0xe0cb47[_0x3c1c3e(0x1e5)]())
|
|
574
|
+
return _0xe0cb47;
|
|
575
|
+
return _0x4874d9;
|
|
576
|
+
}
|
|
577
|
+
function asRecord(_0x708e5b) {
|
|
578
|
+
const _0x26c107 = { _0x485874: 0x1e4 }, _0x5a33d0 = _0x42cca9;
|
|
579
|
+
return typeof _0x708e5b === _0x5a33d0(_0x26c107._0x485874) && _0x708e5b !== null ? _0x708e5b : {};
|
|
580
|
+
}
|
|
581
|
+
function stableStringify(_0x56043f) {
|
|
582
|
+
const _0x5844ed = {
|
|
583
|
+
_0x1512af: 0x1e4,
|
|
584
|
+
_0x1bcfe3: 0x1ac,
|
|
585
|
+
_0x5208f4: 0x1df,
|
|
586
|
+
_0x366c5e: 0x1ed,
|
|
587
|
+
_0x2084a6: 0x258,
|
|
588
|
+
_0x42c0fb: 0x1c2,
|
|
589
|
+
_0x38321e: 0x201
|
|
590
|
+
}, _0x31efef = _0x42cca9;
|
|
591
|
+
if (_0x56043f === null || typeof _0x56043f !== _0x31efef(_0x5844ed._0x1512af))
|
|
592
|
+
return JSON[_0x31efef(_0x5844ed._0x1bcfe3)](_0x56043f);
|
|
593
|
+
if (Array[_0x31efef(_0x5844ed._0x5208f4)](_0x56043f))
|
|
594
|
+
return '[' + _0x56043f['map'](_0x54b08a => stableStringify(_0x54b08a))[_0x31efef(0x201)](',') + ']';
|
|
595
|
+
const _0x7b529 = Object[_0x31efef(_0x5844ed._0x366c5e)](_0x56043f)[_0x31efef(_0x5844ed._0x2084a6)](([, _0x177a6f]) => _0x177a6f !== void 0x0)['sort'](([_0x58eba0], [_0x20d57a]) => _0x58eba0['localeCompare'](_0x20d57a))[_0x31efef(_0x5844ed._0x42c0fb)](([_0x4dbba3, _0x1d6f4a]) => JSON[_0x31efef(0x1ac)](_0x4dbba3) + ':' + stableStringify(_0x1d6f4a));
|
|
596
|
+
return '{' + _0x7b529[_0x31efef(_0x5844ed._0x38321e)](',') + '}';
|
|
597
|
+
}
|
|
598
|
+
function createHeaders(_0x344eda) {
|
|
599
|
+
return {
|
|
600
|
+
'Content-Type': 'application/json',
|
|
601
|
+
'x-daemon-api-key': _0x344eda
|
|
708
602
|
};
|
|
709
|
-
return _0xbf9a();
|
|
710
603
|
}
|
|
711
|
-
function
|
|
712
|
-
const
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
604
|
+
function toHttpBaseUrl(_0x21ea57) {
|
|
605
|
+
const _0x5baa80 = {
|
|
606
|
+
_0x14a934: 0x1fe,
|
|
607
|
+
_0x1e9add: 0x108,
|
|
608
|
+
_0x29fca5: 0x1fe,
|
|
609
|
+
_0x3e83a3: 0x1fe
|
|
610
|
+
}, _0x1c53c9 = _0x42cca9, _0x4c9259 = new URL(_0x21ea57);
|
|
611
|
+
if (_0x4c9259[_0x1c53c9(_0x5baa80._0x14a934)] === _0x1c53c9(_0x5baa80._0x1e9add))
|
|
612
|
+
_0x4c9259[_0x1c53c9(_0x5baa80._0x29fca5)] = 'http:';
|
|
613
|
+
else
|
|
614
|
+
_0x4c9259[_0x1c53c9(_0x5baa80._0x3e83a3)] === 'wss:' && (_0x4c9259[_0x1c53c9(_0x5baa80._0x29fca5)] = 'https:');
|
|
615
|
+
return _0x4c9259[_0x1c53c9(0x11b)]()[_0x1c53c9(0x1f3)](/\/$/, '');
|
|
616
|
+
}
|
|
617
|
+
function isMentionBoundary(_0x2844e1) {
|
|
618
|
+
const _0x1a5282 = { _0x3ebe7c: 0x227 }, _0xb2decf = _0x42cca9;
|
|
619
|
+
return !_0x2844e1 || /\s|[([{'",。!?、:;]/[_0xb2decf(_0x1a5282._0x3ebe7c)](_0x2844e1);
|
|
620
|
+
}
|
|
621
|
+
function isMentionTerminal(_0xa91344) {
|
|
622
|
+
const _0x2068e6 = _0x42cca9;
|
|
623
|
+
return !_0xa91344 || /\s|[)\]}'",。!?、:;,.!?]/[_0x2068e6(0x227)](_0xa91344);
|
|
624
|
+
}
|
|
625
|
+
function buildMatchableEntries(_0x3a093c) {
|
|
626
|
+
const _0x500989 = {
|
|
627
|
+
_0x5be687: 0x190,
|
|
628
|
+
_0x11d93c: 0x202
|
|
629
|
+
}, _0x42bf02 = _0x42cca9, _0x2bafca = [];
|
|
630
|
+
for (const _0x118f98 of [
|
|
631
|
+
..._0x3a093c['agents'],
|
|
632
|
+
..._0x3a093c[_0x42bf02(0x220)]
|
|
633
|
+
]) {
|
|
634
|
+
_0x2bafca[_0x42bf02(_0x500989._0x5be687)]({
|
|
635
|
+
'matchName': _0x118f98[_0x42bf02(0x202)],
|
|
636
|
+
'matchNameLower': _0x118f98[_0x42bf02(0x202)][_0x42bf02(0x23e)](),
|
|
637
|
+
'participantId': _0x118f98['id']
|
|
638
|
+
}), _0x118f98['id'] !== _0x118f98[_0x42bf02(_0x500989._0x11d93c)] && _0x2bafca[_0x42bf02(_0x500989._0x5be687)]({
|
|
639
|
+
'matchName': _0x118f98['id'],
|
|
640
|
+
'matchNameLower': _0x118f98['id'][_0x42bf02(0x23e)](),
|
|
641
|
+
'participantId': _0x118f98['id']
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
return _0x2bafca;
|
|
645
|
+
}
|
|
646
|
+
function extractMentionedParticipantIds(_0x43267d, _0x358382) {
|
|
647
|
+
const _0x26207e = {
|
|
648
|
+
_0x20b662: 0x127,
|
|
649
|
+
_0x4719ee: 0x269,
|
|
650
|
+
_0x59c6e5: 0x22d,
|
|
651
|
+
_0x145c94: 0x18c,
|
|
652
|
+
_0x4b93e4: 0x18c,
|
|
653
|
+
_0x19da3c: 0x16c
|
|
654
|
+
}, _0x3280f9 = {
|
|
655
|
+
_0x64830a: 0x1ca,
|
|
656
|
+
_0x2f2788: 0x16c,
|
|
657
|
+
_0x129094: 0x269
|
|
658
|
+
}, _0x58ea88 = _0x42cca9, _0x116f02 = buildMatchableEntries(_0x358382)[_0x58ea88(_0x26207e._0x20b662)]((_0x3284f2, _0x139841) => _0x139841[_0x58ea88(0x16c)][_0x58ea88(0x269)] - _0x3284f2['matchName'][_0x58ea88(0x269)]), _0x439b26 = [], _0x103089 = new Set();
|
|
659
|
+
for (let _0x5c5488 = 0x0; _0x5c5488 < _0x43267d[_0x58ea88(_0x26207e._0x4719ee)]; _0x5c5488 += 0x1) {
|
|
660
|
+
if (_0x43267d[_0x5c5488] !== '@' || !isMentionBoundary(_0x43267d[_0x5c5488 - 0x1]))
|
|
661
|
+
continue;
|
|
662
|
+
const _0x476a8d = _0x43267d[_0x58ea88(0x242)](_0x5c5488 + 0x1), _0x9509e7 = _0x476a8d[_0x58ea88(0x23e)](), _0x56c5e9 = _0x116f02['find'](_0x5127b9 => {
|
|
663
|
+
const _0xe0d722 = _0x58ea88;
|
|
664
|
+
if (!_0x9509e7[_0xe0d722(0x117)](_0x5127b9[_0xe0d722(_0x3280f9._0x64830a)]))
|
|
665
|
+
return ![];
|
|
666
|
+
return isMentionTerminal(_0x476a8d[_0x5127b9[_0xe0d722(_0x3280f9._0x2f2788)][_0xe0d722(_0x3280f9._0x129094)]]);
|
|
667
|
+
});
|
|
668
|
+
if (!_0x56c5e9 || _0x103089['has'](_0x56c5e9['participantId']))
|
|
669
|
+
continue;
|
|
670
|
+
_0x103089[_0x58ea88(_0x26207e._0x59c6e5)](_0x56c5e9[_0x58ea88(_0x26207e._0x145c94)]), _0x439b26['push'](_0x56c5e9[_0x58ea88(_0x26207e._0x4b93e4)]), _0x5c5488 += _0x56c5e9[_0x58ea88(_0x26207e._0x19da3c)][_0x58ea88(0x269)];
|
|
671
|
+
}
|
|
672
|
+
return _0x439b26;
|
|
673
|
+
}
|
|
674
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
675
|
+
function anySignal(..._0x4c61bc) {
|
|
676
|
+
const _0x4e009b = {
|
|
677
|
+
_0x4420c7: 0x135,
|
|
678
|
+
_0x5dce8c: 0x1ce,
|
|
679
|
+
_0x1f0b3d: 0x1e1
|
|
680
|
+
}, _0x7507f2 = _0x42cca9, _0x3274ec = new AbortController();
|
|
681
|
+
for (const _0x84d3fc of _0x4c61bc) {
|
|
682
|
+
if (_0x84d3fc[_0x7507f2(0x1f6)])
|
|
683
|
+
return _0x3274ec['abort'](_0x84d3fc[_0x7507f2(_0x4e009b._0x4420c7)]), _0x3274ec['signal'];
|
|
684
|
+
_0x84d3fc[_0x7507f2(_0x4e009b._0x5dce8c)](_0x7507f2(_0x4e009b._0x1f0b3d), () => _0x3274ec[_0x7507f2(0x1e1)](_0x84d3fc[_0x7507f2(0x135)]), {
|
|
721
685
|
'once': !![],
|
|
722
|
-
'signal':
|
|
686
|
+
'signal': _0x3274ec[_0x7507f2(0x147)]
|
|
723
687
|
});
|
|
724
688
|
}
|
|
725
|
-
return
|
|
689
|
+
return _0x3274ec[_0x7507f2(0x147)];
|
|
726
690
|
}
|
|
727
|
-
function createInternalAgentClient(
|
|
728
|
-
const
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
},
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
},
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
},
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
},
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
},
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
},
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
691
|
+
function createInternalAgentClient(_0x31806f) {
|
|
692
|
+
const _0x9c271f = {
|
|
693
|
+
_0x5012b4: 0x261,
|
|
694
|
+
_0x448a33: 0x20f,
|
|
695
|
+
_0x57e244: 0x20f,
|
|
696
|
+
_0x589e32: 0x189,
|
|
697
|
+
_0x34d6f8: 0x1e5,
|
|
698
|
+
_0x2a08af: 0x151,
|
|
699
|
+
_0x2bd2e0: 0x1b3,
|
|
700
|
+
_0x13d86b: 0x142
|
|
701
|
+
}, _0x5522b0 = {
|
|
702
|
+
_0x2eca02: 0x1dc,
|
|
703
|
+
_0x3a7878: 0x1dd,
|
|
704
|
+
_0xf6d12f: 0x130,
|
|
705
|
+
_0x33c947: 0x16a,
|
|
706
|
+
_0x221363: 0x269,
|
|
707
|
+
_0x42de9d: 0x269,
|
|
708
|
+
_0x42207c: 0x221,
|
|
709
|
+
_0x1f03f5: 0x258,
|
|
710
|
+
_0x2cd811: 0x167,
|
|
711
|
+
_0x219ff9: 0x13f,
|
|
712
|
+
_0x37a3db: 0x1a7,
|
|
713
|
+
_0x47eda9: 0x1f9,
|
|
714
|
+
_0x1eb5e1: 0x110,
|
|
715
|
+
_0x1e03dc: 0x260,
|
|
716
|
+
_0x2899e6: 0x260,
|
|
717
|
+
_0xa4baed: 0x237,
|
|
718
|
+
_0x42e30c: 0x12c,
|
|
719
|
+
_0x1fe829: 0x110,
|
|
720
|
+
_0x58474b: 0x190,
|
|
721
|
+
_0x554bcf: 0x1ed,
|
|
722
|
+
_0x4caca6: 0x1a7,
|
|
723
|
+
_0x334e98: 0x1dc,
|
|
724
|
+
_0xf5790f: 0x12c,
|
|
725
|
+
_0x1f5a07: 0x209,
|
|
726
|
+
_0x21b1e4: 0x1a7,
|
|
727
|
+
_0x3364d8: 0x1c5,
|
|
728
|
+
_0x293785: 0x1b6,
|
|
729
|
+
_0xb068e0: 0x12c,
|
|
730
|
+
_0x5c718c: 0x101,
|
|
731
|
+
_0x2c8b2a: 0x118,
|
|
732
|
+
_0x4cc3a1: 0x120,
|
|
733
|
+
_0x21af7c: 0x100
|
|
734
|
+
}, _0xeca43f = {
|
|
735
|
+
_0x459a39: 0x1a7,
|
|
736
|
+
_0xced9ff: 0x208
|
|
737
|
+
}, _0x5b94e7 = {
|
|
738
|
+
_0x2d93cb: 0x208,
|
|
739
|
+
_0x56272f: 0x146,
|
|
740
|
+
_0xdf47e3: 0x109
|
|
741
|
+
}, _0x122bad = {
|
|
742
|
+
_0xe78404: 0x16a,
|
|
743
|
+
_0x2398b4: 0x176,
|
|
744
|
+
_0x417d26: 0x1d6,
|
|
745
|
+
_0x4f3413: 0xf8,
|
|
746
|
+
_0x1ad091: 0x12c,
|
|
747
|
+
_0x1c9586: 0x231,
|
|
748
|
+
_0x243322: 0xf5,
|
|
749
|
+
_0x229a20: 0x17d,
|
|
750
|
+
_0x3104d2: 0x1ef
|
|
751
|
+
}, _0xbcd288 = {
|
|
752
|
+
_0x1ddf29: 0x15e,
|
|
753
|
+
_0x2ed0b1: 0x240,
|
|
754
|
+
_0x4aa808: 0x165,
|
|
755
|
+
_0x12ca98: 0x17d,
|
|
756
|
+
_0x87968e: 0x128,
|
|
757
|
+
_0xa6ee1: 0x262
|
|
758
|
+
}, _0x2d3947 = {
|
|
759
|
+
_0x513f02: 0x130,
|
|
760
|
+
_0x21654a: 0x1ff,
|
|
761
|
+
_0x457ba9: 0x1ac,
|
|
762
|
+
_0x295a65: 0x165
|
|
763
|
+
}, _0x512fe3 = {
|
|
764
|
+
_0x944bbd: 0x1ac,
|
|
765
|
+
_0x3de8be: 0x165
|
|
766
|
+
}, _0x76962e = {
|
|
767
|
+
_0x35fe78: 0x256,
|
|
768
|
+
_0x1a0c1c: 0x1ac,
|
|
769
|
+
_0x296047: 0x1de
|
|
770
|
+
}, _0x5d710f = { _0x49e217: 0x1ac }, _0x10771a = {
|
|
771
|
+
_0x292e6b: 0x1dc,
|
|
772
|
+
_0x86563e: 0x13a,
|
|
773
|
+
_0x4d4a4f: 0x13a,
|
|
774
|
+
_0x5461e7: 0x1c1,
|
|
775
|
+
_0x43c011: 0x130,
|
|
776
|
+
_0xd3d573: 0x1a9,
|
|
777
|
+
_0x41f87f: 0x16a
|
|
778
|
+
}, _0x4553bb = {
|
|
779
|
+
_0x3a4e47: 0x1e9,
|
|
780
|
+
_0x4e2c46: 0x1ac,
|
|
781
|
+
_0x330120: 0x1c1,
|
|
782
|
+
_0x8fd9f4: 0x17d
|
|
783
|
+
}, _0x23f2e5 = {
|
|
784
|
+
_0x2e3594: 0x1e9,
|
|
785
|
+
_0x1f826f: 0x1ac
|
|
786
|
+
}, _0x325636 = { _0x241aa2: 0x123 }, _0x59c851 = { _0x1ac6a9: 0x207 }, _0x5560fa = {
|
|
787
|
+
_0x4994cc: 0x23d,
|
|
788
|
+
_0x1fa6eb: 0x130,
|
|
789
|
+
_0x49f0b3: 0x1a9,
|
|
790
|
+
_0x305337: 0x170,
|
|
791
|
+
_0x47bd76: 0x26b,
|
|
792
|
+
_0x3bf43f: 0x269,
|
|
793
|
+
_0x57f41a: 0x1f2,
|
|
794
|
+
_0x3af19f: 0x1f2,
|
|
795
|
+
_0x685b57: 0x165
|
|
796
|
+
}, _0x4f4306 = {
|
|
797
|
+
_0x51e5ca: 0x157,
|
|
798
|
+
_0x48c831: 0x109,
|
|
799
|
+
_0x890685: 0x208,
|
|
800
|
+
_0x4eb9bd: 0x208,
|
|
801
|
+
_0xa25509: 0x208,
|
|
802
|
+
_0x414d87: 0x113,
|
|
803
|
+
_0x1ae6be: 0x216,
|
|
804
|
+
_0x423003: 0x130,
|
|
805
|
+
_0x474ed7: 0x11b,
|
|
806
|
+
_0x236613: 0x16a,
|
|
807
|
+
_0x4c87b4: 0x18d,
|
|
808
|
+
_0x4b13ea: 0x166
|
|
809
|
+
}, _0x4310d9 = { _0x5ddf99: 0x16b }, _0x37d0d0 = { _0x25896c: 0x18c }, _0x400fc0 = {
|
|
810
|
+
_0x2b0e4a: 0x14e,
|
|
811
|
+
_0x4c3015: 0x260,
|
|
812
|
+
_0x53b476: 0x144,
|
|
813
|
+
_0x2f5428: 0x260,
|
|
814
|
+
_0x90f87c: 0x117
|
|
815
|
+
}, _0x3c2b0d = {
|
|
816
|
+
_0x5e913c: 0x18d,
|
|
817
|
+
_0x47b1fe: 0x110,
|
|
818
|
+
_0x10bd53: 0x109
|
|
819
|
+
}, _0x3ccd7e = {
|
|
820
|
+
_0x3d144c: 0x241,
|
|
821
|
+
_0x38e502: 0x13f,
|
|
822
|
+
_0x2f1ce8: 0x1bd
|
|
823
|
+
}, _0x4a6528 = { _0x151fab: 0x19f }, _0x1e7703 = {
|
|
824
|
+
_0x319b0a: 0x1a9,
|
|
825
|
+
_0x147f37: 0x16a,
|
|
826
|
+
_0x2d269f: 0x1d0,
|
|
827
|
+
_0x449400: 0x258,
|
|
828
|
+
_0x241ab4: 0x1c2,
|
|
829
|
+
_0x287423: 0x17d,
|
|
830
|
+
_0x531aa8: 0x17d,
|
|
831
|
+
_0x37c0aa: 0x24e,
|
|
832
|
+
_0x7c116f: 0x202
|
|
833
|
+
}, _0x481dc5 = {
|
|
834
|
+
_0x15bba4: 0x130,
|
|
835
|
+
_0x523e94: 0x1a9,
|
|
836
|
+
_0x194bc3: 0x1ac,
|
|
837
|
+
_0x1474b9: 0x146,
|
|
838
|
+
_0x1820fa: 0x148,
|
|
839
|
+
_0x148043: 0x109,
|
|
840
|
+
_0x17bedc: 0x17d
|
|
841
|
+
}, _0x31eedb = {
|
|
842
|
+
_0x32677d: 0x1ac,
|
|
843
|
+
_0x4e71c1: 0x182,
|
|
844
|
+
_0x37bc7a: 0x1c1
|
|
845
|
+
}, _0x4dff7f = {
|
|
846
|
+
_0x2f69aa: 0x1e7,
|
|
847
|
+
_0x5c8c84: 0x129
|
|
848
|
+
}, _0x1fef12 = { _0x61394f: 0x147 }, _0x244267 = {
|
|
849
|
+
_0x44a272: 0x147,
|
|
850
|
+
_0x5e8b02: 0x143,
|
|
851
|
+
_0xf91597: 0x1d6
|
|
852
|
+
}, _0x541aa5 = {
|
|
853
|
+
_0x7d508a: 0x1e5,
|
|
854
|
+
_0x25c176: 0x150,
|
|
855
|
+
_0x687b2b: 0x197,
|
|
856
|
+
_0x1a6663: 0x226
|
|
857
|
+
}, _0x573f49 = { _0x129fc5: 0x11b }, _0x136958 = {
|
|
858
|
+
_0x4c90ad: 0x19e,
|
|
859
|
+
_0x136b66: 0x12c,
|
|
860
|
+
_0xd2a836: 0x102,
|
|
861
|
+
_0x5c6c79: 0x21d,
|
|
862
|
+
_0x49ccc8: 0x13c,
|
|
863
|
+
_0x4d17c2: 0x265,
|
|
864
|
+
_0x37cc6f: 0x16f,
|
|
865
|
+
_0x178179: 0x172
|
|
866
|
+
}, _0x6faa56 = _0x42cca9, _0x4d0c5c = _0x31806f[_0x6faa56(0x1ad)] ?? fetch, _0xcabae5 = _0x31806f[_0x6faa56(_0x9c271f._0x5012b4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x322f9f = typeof _0x31806f[_0x6faa56(0x20f)] === 'number' && _0x31806f[_0x6faa56(_0x9c271f._0x448a33)] > 0x0 ? _0x31806f[_0x6faa56(_0x9c271f._0x57e244)] : 0x0, _0x350dbd = _0x31806f[_0x6faa56(_0x9c271f._0x589e32)]?.['trim']() || void 0x0, _0x464874 = _0x31806f[_0x6faa56(0x1d5)]?.[_0x6faa56(_0x9c271f._0x34d6f8)]() || void 0x0, _0x4cd8bb = _0x31806f[_0x6faa56(_0x9c271f._0x2a08af)] === !![], _0x4e61a9 = _0x31806f[_0x6faa56(0x11c)]?.[_0x6faa56(_0x9c271f._0x34d6f8)]() || void 0x0, _0xa6d88a = _0x31806f[_0x6faa56(_0x9c271f._0x2bd2e0)]?.['trim']() || void 0x0, _0x530bff = createHeaders(_0x31806f['daemonApiKey']), _0x152c84 = toHttpBaseUrl(_0x31806f[_0x6faa56(_0x9c271f._0x13d86b)]);
|
|
867
|
+
let _0x3abd69 = null;
|
|
868
|
+
const _0x4ec81a = new Map();
|
|
869
|
+
let _0xc2a303 = _0x322f9f, _0x566d45 = _0x322f9f;
|
|
870
|
+
function _0x273ee3(_0x596284) {
|
|
871
|
+
const _0x523e63 = _0x6faa56, _0x31b442 = _0x596284['response'][_0x523e63(_0x136958._0x4c90ad)][_0x523e63(_0x136958._0x136b66)]('content-type') ?? _0x523e63(_0x136958._0xd2a836), _0x1f6eda = _0x596284['bodyText']['trim']()[_0x523e63(0x1f3)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x523e63(_0x136958._0x5c6c79);
|
|
872
|
+
return '请求\x20' + _0x596284[_0x523e63(_0x136958._0x49ccc8)] + _0x523e63(_0x136958._0x4d17c2) + _0x596284['response']['status'] + _0x523e63(_0x136958._0x37cc6f) + _0x31b442 + _0x523e63(_0x136958._0x178179) + _0x1f6eda + _0x523e63(0x1c0);
|
|
876
873
|
}
|
|
877
|
-
async function
|
|
878
|
-
const
|
|
879
|
-
if (!
|
|
874
|
+
async function _0x170194(_0x118909, _0x2b1224) {
|
|
875
|
+
const _0x5a27c1 = _0x6faa56, _0x29686a = Buffer[_0x5a27c1(0x116)](await _0x2b1224['arrayBuffer']())[_0x5a27c1(_0x573f49._0x129fc5)]('utf8');
|
|
876
|
+
if (!_0x29686a[_0x5a27c1(0x1e5)]())
|
|
880
877
|
return {};
|
|
881
878
|
try {
|
|
882
|
-
return JSON[
|
|
879
|
+
return JSON[_0x5a27c1(0x11d)](_0x29686a);
|
|
883
880
|
} catch {
|
|
884
|
-
throw new Error(
|
|
885
|
-
'bodyText':
|
|
886
|
-
'requestUrl':
|
|
887
|
-
'response':
|
|
881
|
+
throw new Error(_0x273ee3({
|
|
882
|
+
'bodyText': _0x29686a,
|
|
883
|
+
'requestUrl': _0x118909,
|
|
884
|
+
'response': _0x2b1224
|
|
888
885
|
}));
|
|
889
886
|
}
|
|
890
887
|
}
|
|
891
|
-
function
|
|
892
|
-
const
|
|
893
|
-
if (
|
|
894
|
-
return
|
|
895
|
-
const
|
|
896
|
-
for (const [
|
|
897
|
-
|
|
888
|
+
function _0x1dedfb(_0x58b71f, _0x47ddae) {
|
|
889
|
+
const _0x2a0dc5 = _0x6faa56, _0xaca02f = typeof _0x47ddae['idempotency_key'] === 'string' ? _0x47ddae['idempotency_key'][_0x2a0dc5(_0x541aa5._0x7d508a)]() : '';
|
|
890
|
+
if (_0xaca02f)
|
|
891
|
+
return _0xaca02f;
|
|
892
|
+
const _0x439eb1 = Date[_0x2a0dc5(_0x541aa5._0x25c176)]();
|
|
893
|
+
for (const [_0x5d378e, _0x11edc3] of _0x4ec81a) {
|
|
894
|
+
_0x11edc3['expiresAt'] <= _0x439eb1 && _0x4ec81a['delete'](_0x5d378e);
|
|
898
895
|
}
|
|
899
|
-
const
|
|
900
|
-
...
|
|
896
|
+
const _0x1f21ac = {
|
|
897
|
+
..._0x47ddae,
|
|
901
898
|
'idempotency_key': void 0x0
|
|
902
|
-
},
|
|
903
|
-
if (
|
|
904
|
-
return
|
|
905
|
-
const
|
|
906
|
-
return
|
|
907
|
-
'expiresAt':
|
|
908
|
-
'value':
|
|
909
|
-
}),
|
|
899
|
+
}, _0x2ad73c = createHash(_0x2a0dc5(_0x541aa5._0x687b2b))['update'](_0x58b71f + ':' + stableStringify(_0x1f21ac))['digest'](_0x2a0dc5(_0x541aa5._0x1a6663)), _0x28eb2b = _0x58b71f + ':' + _0x2ad73c, _0x24e742 = _0x4ec81a['get'](_0x28eb2b);
|
|
900
|
+
if (_0x24e742)
|
|
901
|
+
return _0x24e742['value'];
|
|
902
|
+
const _0x23466e = _0x2a0dc5(0x23c) + _0x58b71f + ':' + randomUUID();
|
|
903
|
+
return _0x4ec81a[_0x2a0dc5(0x1dc)](_0x28eb2b, {
|
|
904
|
+
'expiresAt': _0x439eb1 + 0x5 * 0x3c * 0x3e8,
|
|
905
|
+
'value': _0x23466e
|
|
906
|
+
}), _0x23466e;
|
|
910
907
|
}
|
|
911
|
-
async function
|
|
912
|
-
const
|
|
908
|
+
async function _0x26f398(_0x1af50b, _0x98fbbd) {
|
|
909
|
+
const _0x981e6c = _0x6faa56, _0x503a12 = new AbortController(), _0x3f47f0 = setTimeout(() => _0x503a12[_0x981e6c(0x1e1)](), _0xcabae5), _0x28e488 = _0x98fbbd?.[_0x981e6c(_0x244267._0x44a272)] ? anySignal(_0x98fbbd[_0x981e6c(0x147)], _0x503a12['signal']) : _0x503a12['signal'], _0x3836b1 = '' + _0x152c84 + _0x1af50b;
|
|
913
910
|
try {
|
|
914
|
-
const
|
|
915
|
-
...
|
|
916
|
-
'signal':
|
|
917
|
-
}),
|
|
918
|
-
if (!
|
|
919
|
-
throw new Error(asErrorMessage(
|
|
920
|
-
return
|
|
911
|
+
const _0x4fa587 = await _0x4d0c5c(_0x3836b1, {
|
|
912
|
+
..._0x98fbbd,
|
|
913
|
+
'signal': _0x28e488
|
|
914
|
+
}), _0x529b65 = await _0x170194(_0x3836b1, _0x4fa587);
|
|
915
|
+
if (!_0x4fa587['ok'] || _0x529b65['success'] === ![])
|
|
916
|
+
throw new Error(asErrorMessage(_0x529b65[_0x981e6c(_0x244267._0x5e8b02)], _0x981e6c(_0x244267._0xf91597) + _0x4fa587[_0x981e6c(0x1c1)]));
|
|
917
|
+
return _0x529b65;
|
|
921
918
|
} finally {
|
|
922
|
-
clearTimeout(
|
|
919
|
+
clearTimeout(_0x3f47f0);
|
|
923
920
|
}
|
|
924
921
|
}
|
|
925
|
-
async function
|
|
926
|
-
const
|
|
922
|
+
async function _0x3e8f67(_0x49645b, _0x5548c5) {
|
|
923
|
+
const _0xc3f19f = _0x6faa56, _0x18cabd = new AbortController(), _0x2b6fc1 = setTimeout(() => _0x18cabd['abort'](), _0xcabae5), _0x5dd188 = _0x5548c5?.['signal'] ? anySignal(_0x5548c5[_0xc3f19f(_0x1fef12._0x61394f)], _0x18cabd[_0xc3f19f(0x147)]) : _0x18cabd['signal'], _0x1ec0a6 = '' + _0x152c84 + _0x49645b;
|
|
927
924
|
try {
|
|
928
|
-
const
|
|
929
|
-
...
|
|
930
|
-
'signal':
|
|
931
|
-
}),
|
|
932
|
-
if (!
|
|
933
|
-
throw new Error(asErrorMessage(
|
|
934
|
-
return
|
|
925
|
+
const _0x266555 = await _0x4d0c5c(_0x1ec0a6, {
|
|
926
|
+
..._0x5548c5,
|
|
927
|
+
'signal': _0x5dd188
|
|
928
|
+
}), _0x3301db = await _0x170194(_0x1ec0a6, _0x266555);
|
|
929
|
+
if (!_0x266555['ok'])
|
|
930
|
+
throw new Error(asErrorMessage(_0x3301db[_0xc3f19f(0x143)], _0xc3f19f(0x1d6) + _0x266555['status']));
|
|
931
|
+
return _0x3301db;
|
|
935
932
|
} finally {
|
|
936
|
-
clearTimeout(
|
|
933
|
+
clearTimeout(_0x2b6fc1);
|
|
937
934
|
}
|
|
938
935
|
}
|
|
939
|
-
async function
|
|
940
|
-
const
|
|
941
|
-
if (!
|
|
936
|
+
async function _0x18d6c1(_0x1f670d) {
|
|
937
|
+
const _0x3f6843 = _0x6faa56;
|
|
938
|
+
if (!_0x464874 || _0x1f670d <= _0x566d45)
|
|
942
939
|
return;
|
|
943
|
-
await
|
|
944
|
-
'body': JSON[
|
|
945
|
-
'headers':
|
|
946
|
-
'method':
|
|
947
|
-
}),
|
|
940
|
+
await _0x26f398(_0x3f6843(_0x4dff7f._0x2f69aa) + encodeURIComponent(_0x464874) + _0x3f6843(0x16d), {
|
|
941
|
+
'body': JSON[_0x3f6843(0x1ac)]({ 'lastSeenSeq': _0x1f670d }),
|
|
942
|
+
'headers': _0x530bff,
|
|
943
|
+
'method': _0x3f6843(_0x4dff7f._0x5c8c84)
|
|
944
|
+
}), _0x566d45 = _0x1f670d;
|
|
948
945
|
}
|
|
949
|
-
async function
|
|
950
|
-
const
|
|
951
|
-
if (!
|
|
946
|
+
async function _0x26fbc6(_0x32eeb0) {
|
|
947
|
+
const _0x5526c5 = _0x6faa56;
|
|
948
|
+
if (!_0x350dbd || !_0x4e61a9 || _0x32eeb0 <= _0x566d45)
|
|
952
949
|
return;
|
|
953
|
-
const
|
|
954
|
-
'body': JSON[
|
|
955
|
-
'last_seen_seq':
|
|
956
|
-
'worker_session_id':
|
|
950
|
+
const _0x5633fd = await _0x4d0c5c(_0x350dbd + _0x5526c5(0x1b0), {
|
|
951
|
+
'body': JSON[_0x5526c5(_0x31eedb._0x32677d)]({
|
|
952
|
+
'last_seen_seq': _0x32eeb0,
|
|
953
|
+
'worker_session_id': _0x4e61a9
|
|
957
954
|
}),
|
|
958
|
-
'headers': { 'Content-Type':
|
|
959
|
-
'method':
|
|
955
|
+
'headers': { 'Content-Type': _0x5526c5(_0x31eedb._0x4e71c1) },
|
|
956
|
+
'method': _0x5526c5(0x165)
|
|
960
957
|
});
|
|
961
|
-
if (!
|
|
962
|
-
throw new Error(
|
|
963
|
-
|
|
958
|
+
if (!_0x5633fd['ok'])
|
|
959
|
+
throw new Error('HTTP\x20' + _0x5633fd[_0x5526c5(_0x31eedb._0x37bc7a)]);
|
|
960
|
+
_0x566d45 = _0x32eeb0;
|
|
964
961
|
}
|
|
965
|
-
async function
|
|
966
|
-
const
|
|
967
|
-
'body': JSON[
|
|
968
|
-
'headers':
|
|
969
|
-
'method':
|
|
962
|
+
async function _0x324cab(_0x1368fe) {
|
|
963
|
+
const _0x5edc02 = _0x6faa56, _0x3f8c9f = parseTarget(_0x1368fe), _0x5753f5 = await _0x26f398(_0x5edc02(_0x481dc5._0x15bba4) + _0x31806f[_0x5edc02(_0x481dc5._0x523e94)] + '/resolve-channel', {
|
|
964
|
+
'body': JSON[_0x5edc02(_0x481dc5._0x194bc3)]({ 'target': _0x3f8c9f[_0x5edc02(_0x481dc5._0x1474b9)] }),
|
|
965
|
+
'headers': _0x530bff,
|
|
966
|
+
'method': 'POST'
|
|
970
967
|
});
|
|
971
968
|
return {
|
|
972
|
-
'channelId':
|
|
973
|
-
'target':
|
|
974
|
-
'task':
|
|
975
|
-
'threadId':
|
|
976
|
-
'threadNumber':
|
|
969
|
+
'channelId': _0x5753f5[_0x5edc02(0x17d)]?.[_0x5edc02(0x208)] ?? '',
|
|
970
|
+
'target': _0x3f8c9f[_0x5edc02(0x18d)],
|
|
971
|
+
'task': _0x5753f5[_0x5edc02(0x17d)]?.[_0x5edc02(_0x481dc5._0x1820fa)],
|
|
972
|
+
'threadId': _0x5753f5[_0x5edc02(0x17d)]?.[_0x5edc02(_0x481dc5._0x148043)],
|
|
973
|
+
'threadNumber': _0x5753f5[_0x5edc02(_0x481dc5._0x17bedc)]?.[_0x5edc02(0x260)]
|
|
977
974
|
};
|
|
978
975
|
}
|
|
979
|
-
async function
|
|
980
|
-
const
|
|
981
|
-
if (!
|
|
982
|
-
return
|
|
983
|
-
return
|
|
984
|
-
const
|
|
985
|
-
'headers':
|
|
986
|
-
'method':
|
|
987
|
-
}),
|
|
988
|
-
'id':
|
|
989
|
-
'name':
|
|
990
|
-
}))[
|
|
991
|
-
'id':
|
|
992
|
-
'name':
|
|
993
|
-
}))[
|
|
976
|
+
async function _0x5a77d7(_0x5d1e50 = {}) {
|
|
977
|
+
const _0x270218 = _0x6faa56;
|
|
978
|
+
if (!_0x5d1e50['forceRefresh'] && _0x3abd69)
|
|
979
|
+
return _0x3abd69;
|
|
980
|
+
return _0x3abd69 = (async () => {
|
|
981
|
+
const _0x580538 = _0x4b08, _0x14f42c = await _0x26f398('/internal/agent/' + _0x31806f[_0x580538(_0x1e7703._0x319b0a)] + _0x580538(0x132), {
|
|
982
|
+
'headers': _0x530bff,
|
|
983
|
+
'method': _0x580538(_0x1e7703._0x147f37)
|
|
984
|
+
}), _0x425185 = _0x14f42c[_0x580538(0x17d)]?.[_0x580538(_0x1e7703._0x2d269f)] ?? [], _0x1df08f = _0x425185['filter'](_0x4c68cf => _0x4c68cf[_0x580538(0x16b)]?.[_0x580538(0x26f)] === _0x580538(0x1bd))[_0x580538(0x1c2)](_0x3b0eb2 => ({
|
|
985
|
+
'id': _0x42a7ac(_0x3b0eb2),
|
|
986
|
+
'name': _0x2d866e(_0x3b0eb2)
|
|
987
|
+
}))[_0x580538(0x258)](_0x35a67c => _0x35a67c['id']), _0x44ccc3 = _0x425185[_0x580538(_0x1e7703._0x449400)](_0x16d4b9 => _0x16d4b9[_0x580538(0x16b)]?.[_0x580538(0x26f)] !== _0x580538(0x1bd))[_0x580538(_0x1e7703._0x241ab4)](_0xcdfa0d => ({
|
|
988
|
+
'id': _0x42a7ac(_0xcdfa0d),
|
|
989
|
+
'name': _0x2d866e(_0xcdfa0d)
|
|
990
|
+
}))[_0x580538(_0x1e7703._0x449400)](_0x2fbf3f => _0x2fbf3f['id']), _0x4d73f1 = _0x14f42c[_0x580538(_0x1e7703._0x287423)]?.[_0x580538(0x24e)]['id'] ?? '';
|
|
994
991
|
return {
|
|
995
|
-
'agents':
|
|
996
|
-
'channels':
|
|
997
|
-
'humans':
|
|
998
|
-
'serverId':
|
|
999
|
-
'serverName':
|
|
992
|
+
'agents': _0x1df08f,
|
|
993
|
+
'channels': _0x14f42c[_0x580538(_0x1e7703._0x531aa8)]?.[_0x580538(0x167)] ?? [],
|
|
994
|
+
'humans': _0x44ccc3,
|
|
995
|
+
'serverId': _0x4d73f1,
|
|
996
|
+
'serverName': _0x14f42c[_0x580538(0x17d)]?.[_0x580538(_0x1e7703._0x37c0aa)][_0x580538(_0x1e7703._0x7c116f)] ?? _0x4d73f1
|
|
1000
997
|
};
|
|
1001
|
-
})()[
|
|
1002
|
-
|
|
1003
|
-
throw
|
|
1004
|
-
}),
|
|
998
|
+
})()[_0x270218(_0x4a6528._0x151fab)](_0x4c1e1b => {
|
|
999
|
+
_0x3abd69 = null;
|
|
1000
|
+
throw _0x4c1e1b;
|
|
1001
|
+
}), _0x3abd69;
|
|
1005
1002
|
}
|
|
1006
|
-
function
|
|
1007
|
-
const
|
|
1008
|
-
return
|
|
1003
|
+
function _0x6baad(_0x5844d1, _0x173d95) {
|
|
1004
|
+
const _0x26bea1 = _0x6faa56;
|
|
1005
|
+
return _0x173d95[_0x26bea1(_0x3ccd7e._0x3d144c)][_0x26bea1(_0x3ccd7e._0x38e502)](_0x576af3 => _0x576af3['id'] === _0x5844d1 || _0x576af3[_0x26bea1(0x202)] === _0x5844d1) ? _0x26bea1(_0x3ccd7e._0x2f1ce8) : 'human';
|
|
1009
1006
|
}
|
|
1010
|
-
function
|
|
1011
|
-
const
|
|
1012
|
-
if (
|
|
1013
|
-
return
|
|
1014
|
-
if (
|
|
1015
|
-
return
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
1018
|
-
return
|
|
1007
|
+
function _0x4a1836(_0x4d084b) {
|
|
1008
|
+
const _0x40ea16 = _0x6faa56;
|
|
1009
|
+
if (_0x4d084b[_0x40ea16(0x260)] != null)
|
|
1010
|
+
return _0x4d084b[_0x40ea16(_0x3c2b0d._0x5e913c)] + ':t' + _0x4d084b['threadNumber'];
|
|
1011
|
+
if (_0x4d084b[_0x40ea16(_0x3c2b0d._0x47b1fe)])
|
|
1012
|
+
return _0x4d084b['channelTarget'] + ':' + _0x4d084b[_0x40ea16(0x110)];
|
|
1013
|
+
if (_0x4d084b[_0x40ea16(_0x3c2b0d._0x10bd53)])
|
|
1014
|
+
return _0x4d084b[_0x40ea16(0x18d)] + ':' + _0x4d084b[_0x40ea16(_0x3c2b0d._0x10bd53)][_0x40ea16(0x242)](0x0, 0x8);
|
|
1015
|
+
return _0x4d084b['channelTarget'];
|
|
1019
1016
|
}
|
|
1020
|
-
function
|
|
1021
|
-
const
|
|
1017
|
+
function _0x5083ee(_0x26b7c1, _0x29c96c) {
|
|
1018
|
+
const _0x4e7f00 = _0x6faa56;
|
|
1022
1019
|
try {
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1020
|
+
const _0x30307f = parseTarget(_0x26b7c1);
|
|
1021
|
+
if (_0x30307f['kind'] !== _0x4e7f00(_0x400fc0._0x2b0e4a) || _0x30307f['channelTarget'] !== _0x29c96c[_0x4e7f00(0x18d)])
|
|
1025
1022
|
return ![];
|
|
1026
|
-
if (
|
|
1023
|
+
if (_0x29c96c[_0x4e7f00(_0x400fc0._0x4c3015)] != null && _0x30307f[_0x4e7f00(_0x400fc0._0x53b476)] === 't' + _0x29c96c[_0x4e7f00(_0x400fc0._0x2f5428)])
|
|
1027
1024
|
return !![];
|
|
1028
|
-
if (
|
|
1029
|
-
return
|
|
1030
|
-
if (
|
|
1031
|
-
return
|
|
1025
|
+
if (_0x29c96c[_0x4e7f00(0x110)])
|
|
1026
|
+
return _0x30307f['threadShortId'] === _0x29c96c[_0x4e7f00(0x110)] || _0x29c96c[_0x4e7f00(0x110)][_0x4e7f00(0x117)](_0x30307f['threadShortId']);
|
|
1027
|
+
if (_0x29c96c['threadId'])
|
|
1028
|
+
return _0x30307f[_0x4e7f00(0x144)] === _0x29c96c['threadId'] || _0x29c96c['threadId'][_0x4e7f00(_0x400fc0._0x90f87c)](_0x30307f[_0x4e7f00(0x144)]);
|
|
1032
1029
|
return ![];
|
|
1033
1030
|
} catch {
|
|
1034
1031
|
return ![];
|
|
1035
1032
|
}
|
|
1036
1033
|
}
|
|
1037
|
-
function
|
|
1038
|
-
const
|
|
1039
|
-
return
|
|
1034
|
+
function _0x42a7ac(_0x593d5b) {
|
|
1035
|
+
const _0x43a7b9 = _0x6faa56;
|
|
1036
|
+
return _0x593d5b[_0x43a7b9(0x257)]?.[_0x43a7b9(_0x37d0d0._0x25896c)] ?? _0x593d5b[_0x43a7b9(0x16b)]?.['id'] ?? _0x593d5b[_0x43a7b9(0x18c)] ?? '';
|
|
1040
1037
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const
|
|
1043
|
-
return
|
|
1038
|
+
function _0x2d866e(_0x38b4fb) {
|
|
1039
|
+
const _0xf3e980 = _0x6faa56;
|
|
1040
|
+
return _0x38b4fb[_0xf3e980(_0x4310d9._0x5ddf99)]?.[_0xf3e980(0x202)] ?? _0x42a7ac(_0x38b4fb);
|
|
1044
1041
|
}
|
|
1045
|
-
async function
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
const
|
|
1052
|
-
'headers':
|
|
1053
|
-
'method':
|
|
1054
|
-
}),
|
|
1055
|
-
'attachments': (
|
|
1056
|
-
'filename':
|
|
1057
|
-
'id':
|
|
1042
|
+
async function _0x4256a0(_0x2c6d34) {
|
|
1043
|
+
const _0x2df7fa = _0x6faa56, _0x598a1f = Math[_0x2df7fa(0xfc)](_0x2c6d34['limit'] ?? 0x32, 0x64), _0x8ce7c8 = await _0x5a77d7(), _0x5a3bf2 = new URLSearchParams();
|
|
1044
|
+
_0x5a3bf2[_0x2df7fa(0x1dc)](_0x2df7fa(_0x4f4306._0x51e5ca), String(_0x598a1f));
|
|
1045
|
+
_0x2c6d34[_0x2df7fa(_0x4f4306._0x48c831)] ? (_0x5a3bf2[_0x2df7fa(0x1dc)](_0x2df7fa(0x109), _0x2c6d34[_0x2df7fa(0x109)]), _0x5a3bf2[_0x2df7fa(0x1dc)](_0x2df7fa(_0x4f4306._0x890685), _0x2c6d34[_0x2df7fa(_0x4f4306._0x4eb9bd)])) : _0x5a3bf2[_0x2df7fa(0x1dc)](_0x2df7fa(_0x4f4306._0xa25509), _0x2c6d34[_0x2df7fa(0x208)]);
|
|
1046
|
+
_0x2c6d34[_0x2df7fa(_0x4f4306._0x414d87)] && _0x5a3bf2['set'](_0x2df7fa(_0x4f4306._0x1ae6be), String(_0x2c6d34['before']));
|
|
1047
|
+
_0x2c6d34[_0x2df7fa(0x25f)] !== void 0x0 && _0x5a3bf2[_0x2df7fa(0x1dc)]('after', String(_0x2c6d34[_0x2df7fa(0x25f)]));
|
|
1048
|
+
const _0x27de22 = await _0x26f398(_0x2df7fa(_0x4f4306._0x423003) + _0x31806f['agentId'] + _0x2df7fa(0x271) + _0x5a3bf2[_0x2df7fa(_0x4f4306._0x474ed7)](), {
|
|
1049
|
+
'headers': _0x530bff,
|
|
1050
|
+
'method': _0x2df7fa(_0x4f4306._0x236613)
|
|
1051
|
+
}), _0x2aa601 = (_0x27de22[_0x2df7fa(0x17d)] ?? [])[_0x2df7fa(0x1c2)](_0x522748 => ({
|
|
1052
|
+
'attachments': (_0x522748[_0x2df7fa(0x101)] ?? [])['map'](_0x564979 => ({
|
|
1053
|
+
'filename': _0x564979[_0x2df7fa(0x128)] ?? _0x564979['id'],
|
|
1054
|
+
'id': _0x564979['id']
|
|
1058
1055
|
})),
|
|
1059
|
-
'content':
|
|
1060
|
-
'createdAt':
|
|
1061
|
-
'messageId':
|
|
1062
|
-
'senderName':
|
|
1063
|
-
'senderType':
|
|
1064
|
-
'seq':
|
|
1056
|
+
'content': _0x522748[_0x2df7fa(0x100)] ?? '',
|
|
1057
|
+
'createdAt': _0x522748['createdAt'],
|
|
1058
|
+
'messageId': _0x522748['id'],
|
|
1059
|
+
'senderName': _0x522748[_0x2df7fa(0x120)],
|
|
1060
|
+
'senderType': _0x6baad(_0x522748[_0x2df7fa(0x120)], _0x8ce7c8),
|
|
1061
|
+
'seq': _0x522748[_0x2df7fa(0x155)] ?? 0x0
|
|
1065
1062
|
}));
|
|
1066
1063
|
return {
|
|
1067
|
-
'channel':
|
|
1068
|
-
'hasMore':
|
|
1069
|
-
'messages':
|
|
1070
|
-
'nextCursor':
|
|
1064
|
+
'channel': _0x2c6d34[_0x2df7fa(_0x4f4306._0x4c87b4)],
|
|
1065
|
+
'hasMore': _0x27de22[_0x2df7fa(0x12a)]?.[_0x2df7fa(_0x4f4306._0x4b13ea)] ?? ![],
|
|
1066
|
+
'messages': _0x2aa601,
|
|
1067
|
+
'nextCursor': _0x27de22['meta']?.['cursor']
|
|
1071
1068
|
};
|
|
1072
1069
|
}
|
|
1073
1070
|
return {
|
|
1074
|
-
async 'sendMessage'(
|
|
1075
|
-
const
|
|
1071
|
+
async 'sendMessage'(_0x427e04) {
|
|
1072
|
+
const _0x3517bc = _0x6faa56, _0x4011d2 = await _0x324cab(_0x427e04[_0x3517bc(0x146)]), _0x449548 = _0x427e04['content']['includes']('@') ? extractMentionedParticipantIds(_0x427e04[_0x3517bc(_0x5560fa._0x4994cc)], await _0x5a77d7()) : [], _0x1aa22e = await _0x26f398(_0x3517bc(_0x5560fa._0x1fa6eb) + _0x31806f[_0x3517bc(_0x5560fa._0x49f0b3)] + _0x3517bc(_0x5560fa._0x305337), {
|
|
1076
1073
|
'body': JSON['stringify']({
|
|
1077
|
-
'attachment_ids':
|
|
1078
|
-
'bodyMarkdown':
|
|
1079
|
-
'channelId':
|
|
1080
|
-
...
|
|
1081
|
-
'threadId':
|
|
1082
|
-
...
|
|
1074
|
+
'attachment_ids': _0x427e04[_0x3517bc(_0x5560fa._0x47bd76)],
|
|
1075
|
+
'bodyMarkdown': _0x427e04['content'],
|
|
1076
|
+
'channelId': _0x4011d2[_0x3517bc(0x208)],
|
|
1077
|
+
..._0x449548[_0x3517bc(_0x5560fa._0x3bf43f)] > 0x0 ? { 'mentionedParticipantIds': _0x449548 } : {},
|
|
1078
|
+
'threadId': _0x4011d2[_0x3517bc(0x109)],
|
|
1079
|
+
..._0x427e04[_0x3517bc(_0x5560fa._0x57f41a)] ? { 'visibility': _0x427e04[_0x3517bc(_0x5560fa._0x3af19f)] } : {}
|
|
1083
1080
|
}),
|
|
1084
|
-
'headers':
|
|
1085
|
-
'method':
|
|
1081
|
+
'headers': _0x530bff,
|
|
1082
|
+
'method': _0x3517bc(_0x5560fa._0x685b57)
|
|
1086
1083
|
});
|
|
1087
|
-
return { 'messageId':
|
|
1084
|
+
return { 'messageId': _0x1aa22e['data']?.['id'] ?? '' };
|
|
1088
1085
|
},
|
|
1089
1086
|
async 'listSchedules'() {
|
|
1090
|
-
const
|
|
1091
|
-
'headers':
|
|
1092
|
-
'method':
|
|
1087
|
+
const _0x543601 = _0x6faa56, _0x59a807 = await _0x26f398(_0x543601(_0x59c851._0x1ac6a9), {
|
|
1088
|
+
'headers': _0x530bff,
|
|
1089
|
+
'method': _0x543601(0x16a)
|
|
1093
1090
|
});
|
|
1094
|
-
return
|
|
1091
|
+
return _0x59a807['data'] ?? [];
|
|
1095
1092
|
},
|
|
1096
|
-
async 'claimScheduleRun'(
|
|
1097
|
-
const
|
|
1098
|
-
'body': JSON[
|
|
1099
|
-
'headers':
|
|
1100
|
-
'method':
|
|
1093
|
+
async 'claimScheduleRun'(_0x2924b0) {
|
|
1094
|
+
const _0x426850 = _0x6faa56, _0x21feb2 = await _0x26f398(_0x426850(_0x325636._0x241aa2), {
|
|
1095
|
+
'body': JSON[_0x426850(0x1ac)](_0x2924b0),
|
|
1096
|
+
'headers': _0x530bff,
|
|
1097
|
+
'method': _0x426850(0x165)
|
|
1101
1098
|
});
|
|
1102
|
-
return
|
|
1099
|
+
return _0x21feb2[_0x426850(0x17d)] ?? {
|
|
1103
1100
|
'granted': ![],
|
|
1104
1101
|
'runId': null,
|
|
1105
1102
|
'schedule': null,
|
|
1106
|
-
'scheduledFor':
|
|
1103
|
+
'scheduledFor': _0x2924b0['scheduledFor']
|
|
1107
1104
|
};
|
|
1108
1105
|
},
|
|
1109
|
-
async 'startScheduleRun'(
|
|
1110
|
-
const
|
|
1111
|
-
'body': JSON[
|
|
1112
|
-
'headers':
|
|
1113
|
-
'method':
|
|
1106
|
+
async 'startScheduleRun'(_0x1c2f74) {
|
|
1107
|
+
const _0x3ec183 = _0x6faa56, _0x421437 = await _0x26f398('/api/internal/schedules/' + encodeURIComponent(_0x1c2f74[_0x3ec183(_0x23f2e5._0x2e3594)]) + _0x3ec183(0xf9), {
|
|
1108
|
+
'body': JSON[_0x3ec183(_0x23f2e5._0x1f826f)]({}),
|
|
1109
|
+
'headers': _0x530bff,
|
|
1110
|
+
'method': _0x3ec183(0x165)
|
|
1114
1111
|
});
|
|
1115
|
-
return
|
|
1112
|
+
return _0x421437[_0x3ec183(0x17d)] ?? {
|
|
1116
1113
|
'claimedByDaemonId': '',
|
|
1117
|
-
'id':
|
|
1114
|
+
'id': _0x1c2f74[_0x3ec183(0x1e9)],
|
|
1118
1115
|
'scheduleId': '',
|
|
1119
|
-
'status':
|
|
1116
|
+
'status': _0x3ec183(0x177)
|
|
1120
1117
|
};
|
|
1121
1118
|
},
|
|
1122
|
-
async 'finishScheduleRun'(
|
|
1123
|
-
const
|
|
1124
|
-
'body': JSON[
|
|
1125
|
-
'error':
|
|
1126
|
-
'resultJson':
|
|
1127
|
-
'status':
|
|
1119
|
+
async 'finishScheduleRun'(_0x51826e) {
|
|
1120
|
+
const _0x3970fb = _0x6faa56, _0x159290 = await _0x26f398(_0x3970fb(0x13e) + encodeURIComponent(_0x51826e[_0x3970fb(_0x4553bb._0x3a4e47)]) + _0x3970fb(0x20d), {
|
|
1121
|
+
'body': JSON[_0x3970fb(_0x4553bb._0x4e2c46)]({
|
|
1122
|
+
'error': _0x51826e['error'],
|
|
1123
|
+
'resultJson': _0x51826e['resultJson'],
|
|
1124
|
+
'status': _0x51826e[_0x3970fb(_0x4553bb._0x330120)]
|
|
1128
1125
|
}),
|
|
1129
|
-
'headers':
|
|
1130
|
-
'method':
|
|
1126
|
+
'headers': _0x530bff,
|
|
1127
|
+
'method': _0x3970fb(0x165)
|
|
1131
1128
|
});
|
|
1132
|
-
return
|
|
1129
|
+
return _0x159290[_0x3970fb(_0x4553bb._0x8fd9f4)] ?? {
|
|
1133
1130
|
'nextRunAt': null,
|
|
1134
1131
|
'run': {
|
|
1135
1132
|
'claimedByDaemonId': '',
|
|
1136
|
-
'id':
|
|
1133
|
+
'id': _0x51826e[_0x3970fb(0x1e9)],
|
|
1137
1134
|
'scheduleId': '',
|
|
1138
|
-
'status':
|
|
1135
|
+
'status': _0x51826e[_0x3970fb(_0x4553bb._0x330120)]
|
|
1139
1136
|
}
|
|
1140
1137
|
};
|
|
1141
1138
|
},
|
|
1142
|
-
async 'listTasks'(
|
|
1143
|
-
const
|
|
1144
|
-
return
|
|
1145
|
-
'headers':
|
|
1146
|
-
'method':
|
|
1139
|
+
async 'listTasks'(_0x2dede6) {
|
|
1140
|
+
const _0x105fef = _0x6faa56, _0xd2a724 = new URLSearchParams();
|
|
1141
|
+
return _0xd2a724[_0x105fef(_0x10771a._0x292e6b)](_0x105fef(_0x10771a._0x86563e), _0x2dede6[_0x105fef(_0x10771a._0x4d4a4f)]), _0x2dede6[_0x105fef(_0x10771a._0x5461e7)] && _0xd2a724[_0x105fef(0x1dc)]('status', _0x2dede6[_0x105fef(0x1c1)]), _0x3e8f67(_0x105fef(_0x10771a._0x43c011) + _0x31806f[_0x105fef(_0x10771a._0xd3d573)] + '/tasks?' + _0xd2a724[_0x105fef(0x11b)](), {
|
|
1142
|
+
'headers': _0x530bff,
|
|
1143
|
+
'method': _0x105fef(_0x10771a._0x41f87f)
|
|
1147
1144
|
});
|
|
1148
1145
|
},
|
|
1149
|
-
async 'createTasks'(
|
|
1150
|
-
const
|
|
1151
|
-
return
|
|
1152
|
-
'body': JSON[
|
|
1153
|
-
...
|
|
1154
|
-
'idempotency_key':
|
|
1146
|
+
async 'createTasks'(_0x3f6834) {
|
|
1147
|
+
const _0x53b81f = _0x6faa56;
|
|
1148
|
+
return _0x3e8f67('/internal/agent/' + _0x31806f[_0x53b81f(0x1a9)] + _0x53b81f(0x1b2), {
|
|
1149
|
+
'body': JSON[_0x53b81f(_0x5d710f._0x49e217)]({
|
|
1150
|
+
..._0x3f6834,
|
|
1151
|
+
'idempotency_key': _0x1dedfb(_0x53b81f(0x14a), _0x3f6834)
|
|
1155
1152
|
}),
|
|
1156
|
-
'headers':
|
|
1157
|
-
'method':
|
|
1153
|
+
'headers': _0x530bff,
|
|
1154
|
+
'method': _0x53b81f(0x165)
|
|
1158
1155
|
});
|
|
1159
1156
|
},
|
|
1160
|
-
async 'claimTasks'(
|
|
1161
|
-
const
|
|
1162
|
-
return
|
|
1163
|
-
'body': JSON[
|
|
1164
|
-
...
|
|
1165
|
-
'idempotency_key':
|
|
1157
|
+
async 'claimTasks'(_0x3e459a) {
|
|
1158
|
+
const _0x556ef5 = _0x6faa56;
|
|
1159
|
+
return _0x3e8f67(_0x556ef5(0x130) + _0x31806f[_0x556ef5(0x1a9)] + _0x556ef5(_0x76962e._0x35fe78), {
|
|
1160
|
+
'body': JSON[_0x556ef5(_0x76962e._0x1a0c1c)]({
|
|
1161
|
+
..._0x3e459a,
|
|
1162
|
+
'idempotency_key': _0x1dedfb(_0x556ef5(_0x76962e._0x296047), _0x3e459a)
|
|
1166
1163
|
}),
|
|
1167
|
-
'headers':
|
|
1168
|
-
'method':
|
|
1164
|
+
'headers': _0x530bff,
|
|
1165
|
+
'method': _0x556ef5(0x165)
|
|
1169
1166
|
});
|
|
1170
1167
|
},
|
|
1171
|
-
async 'unclaimTask'(
|
|
1172
|
-
const
|
|
1173
|
-
return
|
|
1174
|
-
'body': JSON[
|
|
1175
|
-
...
|
|
1176
|
-
'idempotency_key':
|
|
1168
|
+
async 'unclaimTask'(_0x1adb6f) {
|
|
1169
|
+
const _0x4ae2ad = _0x6faa56;
|
|
1170
|
+
return _0x3e8f67(_0x4ae2ad(0x130) + _0x31806f[_0x4ae2ad(0x1a9)] + _0x4ae2ad(0x1cb), {
|
|
1171
|
+
'body': JSON[_0x4ae2ad(_0x512fe3._0x944bbd)]({
|
|
1172
|
+
..._0x1adb6f,
|
|
1173
|
+
'idempotency_key': _0x1dedfb('unclaim_task', _0x1adb6f)
|
|
1177
1174
|
}),
|
|
1178
|
-
'headers':
|
|
1179
|
-
'method':
|
|
1175
|
+
'headers': _0x530bff,
|
|
1176
|
+
'method': _0x4ae2ad(_0x512fe3._0x3de8be)
|
|
1180
1177
|
});
|
|
1181
1178
|
},
|
|
1182
|
-
async 'updateTaskStatus'(
|
|
1183
|
-
const
|
|
1184
|
-
return
|
|
1185
|
-
'body': JSON[
|
|
1186
|
-
...
|
|
1187
|
-
'idempotency_key':
|
|
1179
|
+
async 'updateTaskStatus'(_0x6b9f2) {
|
|
1180
|
+
const _0x1cf2a7 = _0x6faa56;
|
|
1181
|
+
return _0x3e8f67(_0x1cf2a7(_0x2d3947._0x513f02) + _0x31806f[_0x1cf2a7(0x1a9)] + _0x1cf2a7(_0x2d3947._0x21654a), {
|
|
1182
|
+
'body': JSON[_0x1cf2a7(_0x2d3947._0x457ba9)]({
|
|
1183
|
+
..._0x6b9f2,
|
|
1184
|
+
'idempotency_key': _0x1dedfb(_0x1cf2a7(0x1db), _0x6b9f2)
|
|
1188
1185
|
}),
|
|
1189
|
-
'headers':
|
|
1190
|
-
'method':
|
|
1186
|
+
'headers': _0x530bff,
|
|
1187
|
+
'method': _0x1cf2a7(_0x2d3947._0x295a65)
|
|
1191
1188
|
});
|
|
1192
1189
|
},
|
|
1193
|
-
async 'uploadFile'(
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
throw new Error(
|
|
1197
|
-
const
|
|
1198
|
-
'body': JSON[
|
|
1199
|
-
'channel':
|
|
1200
|
-
'contentBase64':
|
|
1201
|
-
'contentType':
|
|
1202
|
-
'originalFilename':
|
|
1190
|
+
async 'uploadFile'(_0x5c21ef) {
|
|
1191
|
+
const _0x2e57af = _0x6faa56, _0x54b481 = await _0x324cab(_0x5c21ef['channel']);
|
|
1192
|
+
if (_0x54b481[_0x2e57af(0x109)])
|
|
1193
|
+
throw new Error(_0x2e57af(_0xbcd288._0x1ddf29));
|
|
1194
|
+
const _0x1ac495 = await _0x26f398(_0x2e57af(0x130) + _0x31806f[_0x2e57af(0x1a9)] + _0x2e57af(_0xbcd288._0x2ed0b1), {
|
|
1195
|
+
'body': JSON[_0x2e57af(0x1ac)]({
|
|
1196
|
+
'channel': _0x54b481[_0x2e57af(0x146)],
|
|
1197
|
+
'contentBase64': _0x5c21ef['contentBase64'],
|
|
1198
|
+
'contentType': _0x5c21ef[_0x2e57af(0xf8)],
|
|
1199
|
+
'originalFilename': _0x5c21ef[_0x2e57af(0x128)]
|
|
1203
1200
|
}),
|
|
1204
|
-
'headers':
|
|
1205
|
-
'method':
|
|
1201
|
+
'headers': _0x530bff,
|
|
1202
|
+
'method': _0x2e57af(_0xbcd288._0x4aa808)
|
|
1206
1203
|
});
|
|
1207
1204
|
return {
|
|
1208
|
-
'attachmentId':
|
|
1209
|
-
'filename':
|
|
1210
|
-
'sizeBytes':
|
|
1205
|
+
'attachmentId': _0x1ac495['data']?.['id'] ?? '',
|
|
1206
|
+
'filename': _0x1ac495[_0x2e57af(_0xbcd288._0x12ca98)]?.[_0x2e57af(0x1ef)] ?? _0x5c21ef[_0x2e57af(_0xbcd288._0x87968e)],
|
|
1207
|
+
'sizeBytes': _0x1ac495[_0x2e57af(_0xbcd288._0x12ca98)]?.[_0x2e57af(_0xbcd288._0xa6ee1)] ?? 0x0
|
|
1211
1208
|
};
|
|
1212
1209
|
},
|
|
1213
|
-
async 'downloadAttachment'(
|
|
1214
|
-
const
|
|
1215
|
-
'headers':
|
|
1216
|
-
'method':
|
|
1217
|
-
}),
|
|
1210
|
+
async 'downloadAttachment'(_0x48070) {
|
|
1211
|
+
const _0x15220d = _0x6faa56, _0x218eab = await _0x26f398(_0x15220d(0x22e) + _0x48070, {
|
|
1212
|
+
'headers': _0x530bff,
|
|
1213
|
+
'method': _0x15220d(_0x122bad._0xe78404)
|
|
1214
|
+
}), _0x30c5bb = new AbortController(), _0x6532c9 = setTimeout(() => _0x30c5bb[_0x15220d(0x1e1)](), _0xcabae5);
|
|
1218
1215
|
try {
|
|
1219
|
-
const
|
|
1220
|
-
'headers':
|
|
1221
|
-
'method':
|
|
1222
|
-
'signal':
|
|
1216
|
+
const _0x2df6d4 = await _0x4d0c5c(_0x152c84 + _0x15220d(0x22e) + _0x48070 + _0x15220d(_0x122bad._0x2398b4), {
|
|
1217
|
+
'headers': _0x530bff,
|
|
1218
|
+
'method': 'GET',
|
|
1219
|
+
'signal': _0x30c5bb[_0x15220d(0x147)]
|
|
1223
1220
|
});
|
|
1224
|
-
if (!
|
|
1225
|
-
throw new Error(
|
|
1221
|
+
if (!_0x2df6d4['ok'])
|
|
1222
|
+
throw new Error(_0x15220d(_0x122bad._0x417d26) + _0x2df6d4[_0x15220d(0x1c1)]);
|
|
1226
1223
|
return {
|
|
1227
|
-
'contentType':
|
|
1228
|
-
'data': Buffer[
|
|
1229
|
-
'originalFilename':
|
|
1224
|
+
'contentType': _0x218eab[_0x15220d(0x17d)]?.[_0x15220d(_0x122bad._0x4f3413)] ?? _0x2df6d4[_0x15220d(0x19e)][_0x15220d(_0x122bad._0x1ad091)](_0x15220d(0x14b)) ?? _0x15220d(_0x122bad._0x1c9586),
|
|
1225
|
+
'data': Buffer[_0x15220d(0x116)](await _0x2df6d4[_0x15220d(_0x122bad._0x243322)]()),
|
|
1226
|
+
'originalFilename': _0x218eab[_0x15220d(_0x122bad._0x229a20)]?.[_0x15220d(_0x122bad._0x3104d2)]
|
|
1230
1227
|
};
|
|
1231
1228
|
} finally {
|
|
1232
|
-
clearTimeout(
|
|
1229
|
+
clearTimeout(_0x6532c9);
|
|
1233
1230
|
}
|
|
1234
1231
|
},
|
|
1235
1232
|
async 'listServer'() {
|
|
1236
|
-
return
|
|
1233
|
+
return _0x5a77d7({ 'forceRefresh': !![] });
|
|
1237
1234
|
},
|
|
1238
|
-
async 'readHistory'(
|
|
1239
|
-
const
|
|
1240
|
-
return
|
|
1241
|
-
'after':
|
|
1242
|
-
'before':
|
|
1243
|
-
'channelId':
|
|
1244
|
-
'channelTarget':
|
|
1245
|
-
'limit':
|
|
1246
|
-
'threadId':
|
|
1235
|
+
async 'readHistory'(_0x2aa046) {
|
|
1236
|
+
const _0x488f4b = _0x6faa56, _0x41d272 = await _0x324cab(_0x2aa046[_0x488f4b(0x13a)]);
|
|
1237
|
+
return _0x4256a0({
|
|
1238
|
+
'after': _0x2aa046['after'],
|
|
1239
|
+
'before': _0x2aa046['before'],
|
|
1240
|
+
'channelId': _0x41d272[_0x488f4b(_0x5b94e7._0x2d93cb)],
|
|
1241
|
+
'channelTarget': _0x41d272[_0x488f4b(_0x5b94e7._0x56272f)],
|
|
1242
|
+
'limit': _0x2aa046[_0x488f4b(0x157)],
|
|
1243
|
+
'threadId': _0x41d272[_0x488f4b(_0x5b94e7._0xdf47e3)]
|
|
1247
1244
|
});
|
|
1248
1245
|
},
|
|
1249
|
-
'resolveTarget':
|
|
1246
|
+
'resolveTarget': _0x324cab,
|
|
1250
1247
|
async 'checkMessages'() {
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
'
|
|
1259
|
-
|
|
1260
|
-
let _0x1e62f8 = await _0xc2c070(), _0x4c6ba5 = new Map(_0x1e62f8[_0x4d8251(_0x53bfd5._0x27ab23)][_0x4d8251(_0x53bfd5._0x3ce842)](_0x41eaaf => [
|
|
1261
|
-
_0x41eaaf['id'],
|
|
1262
|
-
_0x41eaaf
|
|
1248
|
+
const _0x10617b = _0x6faa56, _0x4c180f = new URLSearchParams();
|
|
1249
|
+
_0x4c180f[_0x10617b(_0x5522b0._0x2eca02)](_0x10617b(_0x5522b0._0x3a7878), String(_0xc2a303));
|
|
1250
|
+
const _0x38156d = _0x4c180f['toString'](), _0x1554fb = await _0x26f398(_0x10617b(_0x5522b0._0xf6d12f) + _0x31806f['agentId'] + _0x10617b(0x245) + (_0x38156d ? '?' + _0x38156d : ''), {
|
|
1251
|
+
'headers': _0x530bff,
|
|
1252
|
+
'method': _0x10617b(_0x5522b0._0x33c947)
|
|
1253
|
+
}), _0x5f192c = _0x1554fb['data'] ?? [], _0x42120b = _0x1554fb['meta']?.[_0x10617b(0x216)], _0x1ddb84 = _0x42120b !== void 0x0 ? Math[_0x10617b(0x192)](_0xc2a303, _0x42120b) : _0x5f192c[_0x10617b(_0x5522b0._0x221363)] > 0x0 ? Math[_0x10617b(0x192)](_0xc2a303, _0x5f192c[_0x5f192c[_0x10617b(_0x5522b0._0x42de9d)] - 0x1][_0x10617b(_0x5522b0._0x42207c)]) : _0xc2a303, _0x4cafd1 = _0x5f192c[_0x10617b(_0x5522b0._0x1f03f5)](_0x49211e => _0x49211e[_0x10617b(0x1e2)] === _0x10617b(0x10f)), _0x5b9cd9 = _0xa6d88a === void 0x0 && _0x4cd8bb;
|
|
1254
|
+
let _0x34b803 = await _0x5a77d7(), _0x213f17 = new Map(_0x34b803[_0x10617b(_0x5522b0._0x2cd811)][_0x10617b(0x1c2)](_0xc21265 => [
|
|
1255
|
+
_0xc21265['id'],
|
|
1256
|
+
_0xc21265
|
|
1263
1257
|
]));
|
|
1264
|
-
const
|
|
1265
|
-
const
|
|
1266
|
-
return Boolean(
|
|
1258
|
+
const _0xbd7a04 = _0x4cafd1[_0x10617b(_0x5522b0._0x219ff9)](_0x351160 => {
|
|
1259
|
+
const _0x5c29bf = _0x10617b, _0x14b3c5 = asRecord(_0x351160[_0x5c29bf(_0xeca43f._0x459a39)]), _0x12db9b = typeof _0x14b3c5?.[_0x5c29bf(_0xeca43f._0xced9ff)] === 'string' ? _0x14b3c5[_0x5c29bf(0x208)] : '';
|
|
1260
|
+
return Boolean(_0x12db9b) && !_0x213f17[_0x5c29bf(0x1a4)](_0x12db9b);
|
|
1267
1261
|
});
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1262
|
+
_0xbd7a04 && (_0x34b803 = await _0x5a77d7({ 'forceRefresh': !![] }), _0x213f17 = new Map(_0x34b803[_0x10617b(0x167)][_0x10617b(0x1c2)](_0x36a72b => [
|
|
1263
|
+
_0x36a72b['id'],
|
|
1264
|
+
_0x36a72b
|
|
1271
1265
|
])));
|
|
1272
|
-
const
|
|
1273
|
-
for (const
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1266
|
+
const _0x411d93 = new Map();
|
|
1267
|
+
for (const _0x2979d0 of _0x4cafd1) {
|
|
1268
|
+
const _0x37674d = asRecord(_0x2979d0[_0x10617b(_0x5522b0._0x37a3db)]), _0x2e7667 = typeof _0x37674d[_0x10617b(0x208)] === 'string' ? _0x37674d[_0x10617b(0x208)] : '';
|
|
1269
|
+
if (!_0x2e7667)
|
|
1276
1270
|
continue;
|
|
1277
|
-
const
|
|
1271
|
+
const _0x48822c = typeof _0x37674d['threadId'] === _0x10617b(_0x5522b0._0x47eda9) ? _0x37674d[_0x10617b(0x109)] : void 0x0, _0x4d1aa6 = typeof _0x37674d[_0x10617b(_0x5522b0._0x1eb5e1)] === _0x10617b(0x1f9) ? _0x37674d[_0x10617b(0x110)] : void 0x0, _0x4b16c9 = typeof _0x37674d[_0x10617b(_0x5522b0._0x1e03dc)] === _0x10617b(0x119) && Number[_0x10617b(0x1a1)](_0x37674d[_0x10617b(_0x5522b0._0x1e03dc)]) ? _0x37674d[_0x10617b(_0x5522b0._0x2899e6)] : void 0x0, _0x24ccc9 = Boolean(_0x48822c && (!_0x4d1aa6 || _0x2979d0[_0x10617b(_0x5522b0._0xa4baed)] !== _0x4d1aa6)), _0x207432 = _0x24ccc9 ? _0x2e7667 + ':' + _0x48822c : _0x2e7667, _0x4145c6 = _0x411d93[_0x10617b(_0x5522b0._0x42e30c)](_0x207432) ?? {
|
|
1278
1272
|
'aggregateIds': [],
|
|
1279
|
-
'channelId':
|
|
1273
|
+
'channelId': _0x2e7667,
|
|
1280
1274
|
'entries': new Map(),
|
|
1281
|
-
'isThreadReply':
|
|
1282
|
-
'rootMessageId':
|
|
1283
|
-
'threadNumber':
|
|
1284
|
-
'threadId':
|
|
1275
|
+
'isThreadReply': _0x24ccc9,
|
|
1276
|
+
'rootMessageId': _0x4d1aa6,
|
|
1277
|
+
'threadNumber': _0x4b16c9,
|
|
1278
|
+
'threadId': _0x24ccc9 ? _0x48822c : void 0x0
|
|
1285
1279
|
};
|
|
1286
|
-
|
|
1287
|
-
'payloadJson':
|
|
1288
|
-
'seq':
|
|
1289
|
-
}),
|
|
1280
|
+
_0x4145c6[_0x10617b(0x260)] == null && _0x4b16c9 != null && (_0x4145c6[_0x10617b(0x260)] = _0x4b16c9), !_0x4145c6[_0x10617b(_0x5522b0._0x1fe829)] && _0x4d1aa6 && (_0x4145c6[_0x10617b(0x110)] = _0x4d1aa6), _0x4145c6[_0x10617b(0x232)][_0x10617b(_0x5522b0._0x58474b)](_0x2979d0[_0x10617b(0x237)]), _0x4145c6[_0x10617b(_0x5522b0._0x554bcf)][_0x10617b(0x1dc)](_0x2979d0[_0x10617b(0x237)], {
|
|
1281
|
+
'payloadJson': _0x2979d0[_0x10617b(_0x5522b0._0x4caca6)],
|
|
1282
|
+
'seq': _0x2979d0[_0x10617b(0x221)]
|
|
1283
|
+
}), _0x411d93[_0x10617b(_0x5522b0._0x334e98)](_0x207432, _0x4145c6);
|
|
1290
1284
|
}
|
|
1291
|
-
const
|
|
1292
|
-
for (const
|
|
1285
|
+
const _0x50394a = [];
|
|
1286
|
+
for (const _0x87a91a of _0x411d93['values']()) {
|
|
1293
1287
|
const {
|
|
1294
|
-
channelId:
|
|
1295
|
-
threadId:
|
|
1296
|
-
rootMessageId:
|
|
1297
|
-
threadNumber:
|
|
1298
|
-
aggregateIds:
|
|
1299
|
-
isThreadReply:
|
|
1300
|
-
entries:
|
|
1301
|
-
} =
|
|
1302
|
-
'channelTarget':
|
|
1303
|
-
'rootMessageId':
|
|
1304
|
-
'threadId':
|
|
1305
|
-
'threadNumber':
|
|
1306
|
-
},
|
|
1307
|
-
'channelId':
|
|
1308
|
-
'channelTarget':
|
|
1309
|
-
'limit': Math[
|
|
1310
|
-
'threadId':
|
|
1311
|
-
}),
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
])),
|
|
1315
|
-
for (const
|
|
1316
|
-
if (!
|
|
1288
|
+
channelId: _0x4b9bab,
|
|
1289
|
+
threadId: _0x18b710,
|
|
1290
|
+
rootMessageId: _0x5c4101,
|
|
1291
|
+
threadNumber: _0x30766c,
|
|
1292
|
+
aggregateIds: _0x485d37,
|
|
1293
|
+
isThreadReply: _0x27d804,
|
|
1294
|
+
entries: _0x3d16cc
|
|
1295
|
+
} = _0x87a91a, _0x4668b2 = _0x213f17[_0x10617b(_0x5522b0._0xf5790f)](_0x4b9bab), _0x4325bd = _0x4668b2?.[_0x10617b(0x202)] ?? _0x4b9bab, _0x5ac6b2 = _0x4668b2?.[_0x10617b(_0x5522b0._0x1f5a07)] === 'dm' ? _0x10617b(0x211) + _0x4325bd : '#' + _0x4325bd, _0x467b1d = {
|
|
1296
|
+
'channelTarget': _0x5ac6b2,
|
|
1297
|
+
'rootMessageId': _0x5c4101,
|
|
1298
|
+
'threadId': _0x18b710,
|
|
1299
|
+
'threadNumber': _0x30766c
|
|
1300
|
+
}, _0x11e6e9 = await _0x4256a0({
|
|
1301
|
+
'channelId': _0x4b9bab,
|
|
1302
|
+
'channelTarget': _0x5ac6b2,
|
|
1303
|
+
'limit': Math['max'](_0x485d37[_0x10617b(_0x5522b0._0x221363)], 0x32),
|
|
1304
|
+
'threadId': _0x18b710
|
|
1305
|
+
}), _0x5e0711 = new Map(_0x11e6e9[_0x10617b(0x229)]['map'](_0x2eee6e => [
|
|
1306
|
+
_0x2eee6e['messageId'],
|
|
1307
|
+
_0x2eee6e
|
|
1308
|
+
])), _0x227eeb = _0x18b710 ? _0x4a1836(_0x467b1d) : _0x5ac6b2, _0x7e3868 = _0xa6d88a ? _0x27d804 && _0x5083ee(_0xa6d88a, _0x467b1d) : !![], _0x3e0c1d = _0x27d804 ? _0x7e3868 && _0xa6d88a ? _0xa6d88a : _0x227eeb : _0x5ac6b2;
|
|
1309
|
+
for (const _0x1958af of _0x485d37) {
|
|
1310
|
+
if (!_0x7e3868)
|
|
1317
1311
|
continue;
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1312
|
+
const _0x32878d = _0x3d16cc[_0x10617b(0x12c)](_0x1958af), _0x3f4045 = _0x32878d ? asRecord(_0x32878d[_0x10617b(_0x5522b0._0x21b1e4)]) : void 0x0, _0x48a3b6 = _0x3f4045?.[_0x10617b(_0x5522b0._0x3364d8)] === _0x10617b(_0x5522b0._0x293785);
|
|
1313
|
+
if (_0x5b9cd9 && _0x48a3b6)
|
|
1320
1314
|
continue;
|
|
1321
|
-
const
|
|
1322
|
-
if (
|
|
1323
|
-
|
|
1324
|
-
'attachments':
|
|
1325
|
-
'content':
|
|
1326
|
-
'createdAt':
|
|
1327
|
-
'messageId':
|
|
1328
|
-
'senderName':
|
|
1329
|
-
'senderType':
|
|
1330
|
-
'target':
|
|
1331
|
-
...
|
|
1315
|
+
const _0x340064 = _0x5e0711[_0x10617b(_0x5522b0._0xb068e0)](_0x1958af);
|
|
1316
|
+
if (_0x340064) {
|
|
1317
|
+
_0x50394a[_0x10617b(0x190)]({
|
|
1318
|
+
'attachments': _0x340064[_0x10617b(_0x5522b0._0x5c718c)],
|
|
1319
|
+
'content': _0x340064[_0x10617b(0x23d)],
|
|
1320
|
+
'createdAt': _0x340064[_0x10617b(0x10e)],
|
|
1321
|
+
'messageId': _0x340064[_0x10617b(0x153)],
|
|
1322
|
+
'senderName': _0x340064['senderName'],
|
|
1323
|
+
'senderType': _0x340064[_0x10617b(_0x5522b0._0x2c8b2a)],
|
|
1324
|
+
'target': _0x3e0c1d,
|
|
1325
|
+
..._0x48a3b6 ? { 'targetedTask': !![] } : {}
|
|
1332
1326
|
});
|
|
1333
1327
|
continue;
|
|
1334
1328
|
}
|
|
1335
|
-
if (
|
|
1336
|
-
const
|
|
1337
|
-
|
|
1329
|
+
if (_0x32878d) {
|
|
1330
|
+
const _0x1bab74 = typeof _0x3f4045?.[_0x10617b(_0x5522b0._0x4cc3a1)] === 'string' ? _0x3f4045[_0x10617b(0x120)] : '', _0x180d07 = typeof _0x3f4045?.[_0x10617b(_0x5522b0._0x21af7c)] === 'string' ? _0x3f4045['bodyMarkdown'] : '';
|
|
1331
|
+
_0x1bab74 && _0x180d07 && _0x50394a[_0x10617b(0x190)]({
|
|
1338
1332
|
'attachments': [],
|
|
1339
|
-
'content':
|
|
1340
|
-
'createdAt': new Date()[
|
|
1341
|
-
'messageId':
|
|
1342
|
-
'senderName':
|
|
1343
|
-
'senderType':
|
|
1344
|
-
'target':
|
|
1345
|
-
...
|
|
1333
|
+
'content': _0x180d07,
|
|
1334
|
+
'createdAt': new Date()[_0x10617b(0x19d)](),
|
|
1335
|
+
'messageId': _0x1958af,
|
|
1336
|
+
'senderName': _0x1bab74,
|
|
1337
|
+
'senderType': _0x6baad(_0x1bab74, _0x34b803),
|
|
1338
|
+
'target': _0x3e0c1d,
|
|
1339
|
+
..._0x48a3b6 ? { 'targetedTask': !![] } : {}
|
|
1346
1340
|
});
|
|
1347
1341
|
}
|
|
1348
1342
|
}
|
|
1349
1343
|
}
|
|
1350
|
-
if (
|
|
1351
|
-
if (
|
|
1352
|
-
await
|
|
1344
|
+
if (_0x1ddb84 > 0x0) {
|
|
1345
|
+
if (_0x464874)
|
|
1346
|
+
await _0x18d6c1(_0x1ddb84);
|
|
1353
1347
|
else
|
|
1354
|
-
|
|
1348
|
+
_0x4e61a9 && await _0x26fbc6(_0x1ddb84);
|
|
1355
1349
|
}
|
|
1356
|
-
return
|
|
1350
|
+
return _0x1ddb84 > _0xc2a303 && (_0xc2a303 = _0x1ddb84), { 'messages': _0xa6d88a ? _0x50394a : _0x5b9cd9 ? _0x50394a['filter'](_0x1d1647 => _0x1d1647[_0x10617b(0x160)] !== !![]) : _0x50394a };
|
|
1357
1351
|
}
|
|
1358
1352
|
};
|
|
1359
1353
|
}
|
|
1360
|
-
function
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1354
|
+
function _0x4b08(_0x33b726, _0x401384) {
|
|
1355
|
+
_0x33b726 = _0x33b726 - 0xf1;
|
|
1356
|
+
const _0x4d0c94 = _0x4d0c();
|
|
1357
|
+
let _0x4b0847 = _0x4d0c94[_0x33b726];
|
|
1358
|
+
if (_0x4b08['sMthJs'] === undefined) {
|
|
1359
|
+
var _0x2f7ca9 = function (_0x234232) {
|
|
1360
|
+
const _0x13022f = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1361
|
+
let _0x3ec660 = '', _0x122329 = '';
|
|
1362
|
+
for (let _0x490595 = 0x0, _0x2ee2a5, _0x1cf2d8, _0x4aed3a = 0x0; _0x1cf2d8 = _0x234232['charAt'](_0x4aed3a++); ~_0x1cf2d8 && (_0x2ee2a5 = _0x490595 % 0x4 ? _0x2ee2a5 * 0x40 + _0x1cf2d8 : _0x1cf2d8, _0x490595++ % 0x4) ? _0x3ec660 += String['fromCharCode'](0xff & _0x2ee2a5 >> (-0x2 * _0x490595 & 0x6)) : 0x0) {
|
|
1363
|
+
_0x1cf2d8 = _0x13022f['indexOf'](_0x1cf2d8);
|
|
1364
|
+
}
|
|
1365
|
+
for (let _0x469d99 = 0x0, _0x29ff7a = _0x3ec660['length']; _0x469d99 < _0x29ff7a; _0x469d99++) {
|
|
1366
|
+
_0x122329 += '%' + ('00' + _0x3ec660['charCodeAt'](_0x469d99)['toString'](0x10))['slice'](-0x2);
|
|
1367
|
+
}
|
|
1368
|
+
return decodeURIComponent(_0x122329);
|
|
1369
|
+
};
|
|
1370
|
+
_0x4b08['iqEhYS'] = _0x2f7ca9, _0x4b08['DHIjiy'] = {}, _0x4b08['sMthJs'] = !![];
|
|
1371
|
+
}
|
|
1372
|
+
const _0x5aa2eb = _0x4d0c94[0x0], _0x35b899 = _0x33b726 + _0x5aa2eb, _0x1399c3 = _0x4b08['DHIjiy'][_0x35b899];
|
|
1373
|
+
return !_0x1399c3 ? (_0x4b0847 = _0x4b08['iqEhYS'](_0x4b0847), _0x4b08['DHIjiy'][_0x35b899] = _0x4b0847) : _0x4b0847 = _0x1399c3, _0x4b0847;
|
|
1374
|
+
}
|
|
1375
|
+
function toLocalTime(_0x38b8a4) {
|
|
1376
|
+
const _0x3e7266 = {
|
|
1377
|
+
_0x5a5862: 0x17b,
|
|
1378
|
+
_0x5bf7fc: 0x1ec,
|
|
1379
|
+
_0x7f32b: 0x186
|
|
1380
|
+
}, _0x56e538 = _0x42cca9, _0x574ad7 = new Date(_0x38b8a4);
|
|
1381
|
+
if (Number['isNaN'](_0x574ad7['getTime']()))
|
|
1382
|
+
return _0x38b8a4;
|
|
1383
|
+
const _0x5353c0 = _0x2f8f4f => String(_0x2f8f4f)[_0x56e538(0x1a5)](0x2, '0');
|
|
1384
|
+
return _0x574ad7['getFullYear']() + '-' + _0x5353c0(_0x574ad7[_0x56e538(0x13b)]() + 0x1) + '-' + _0x5353c0(_0x574ad7[_0x56e538(_0x3e7266._0x5a5862)]()) + '\x20' + _0x5353c0(_0x574ad7[_0x56e538(_0x3e7266._0x5bf7fc)]()) + ':' + _0x5353c0(_0x574ad7[_0x56e538(_0x3e7266._0x7f32b)]()) + ':' + _0x5353c0(_0x574ad7[_0x56e538(0x103)]());
|
|
1370
1385
|
}
|
|
1371
|
-
function formatAttachmentSuffix(
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1386
|
+
function formatAttachmentSuffix(_0x1c306f) {
|
|
1387
|
+
const _0x4e89d0 = {
|
|
1388
|
+
_0x35fe25: 0x269,
|
|
1389
|
+
_0x100c9a: 0x269,
|
|
1390
|
+
_0x290fc5: 0x201
|
|
1391
|
+
}, _0x4c43c1 = _0x42cca9;
|
|
1392
|
+
if (!_0x1c306f || _0x1c306f[_0x4c43c1(_0x4e89d0._0x35fe25)] === 0x0)
|
|
1377
1393
|
return '';
|
|
1378
|
-
return '\x20[' +
|
|
1394
|
+
return '\x20[' + _0x1c306f[_0x4c43c1(_0x4e89d0._0x100c9a)] + _0x4c43c1(0x224) + (_0x1c306f[_0x4c43c1(_0x4e89d0._0x35fe25)] > 0x1 ? 's' : '') + ':\x20' + _0x1c306f[_0x4c43c1(0x1c2)](_0x28a220 => _0x28a220[_0x4c43c1(0x128)] + _0x4c43c1(0x20c) + _0x28a220['id'] + ')')[_0x4c43c1(_0x4e89d0._0x290fc5)](',\x20') + _0x4c43c1(0x171);
|
|
1379
1395
|
}
|
|
1380
|
-
function formatCheckMessages(
|
|
1381
|
-
const
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1396
|
+
function formatCheckMessages(_0x269c2c) {
|
|
1397
|
+
const _0x56dd5f = {
|
|
1398
|
+
_0x3b0b31: 0x223,
|
|
1399
|
+
_0x1bd140: 0x201
|
|
1400
|
+
}, _0x4c7cce = {
|
|
1401
|
+
_0x2d2711: 0x118,
|
|
1402
|
+
_0x10fe6d: 0x1bd,
|
|
1403
|
+
_0x26e455: 0x236,
|
|
1404
|
+
_0x21f476: 0x178,
|
|
1405
|
+
_0x310e4a: 0x153,
|
|
1406
|
+
_0x4cfc12: 0x242,
|
|
1407
|
+
_0x314131: 0xf2,
|
|
1408
|
+
_0x1c5b48: 0x10e,
|
|
1409
|
+
_0x13e2c4: 0x1fb,
|
|
1410
|
+
_0x475f5b: 0x1e8
|
|
1411
|
+
}, _0x3fa6bb = _0x42cca9;
|
|
1412
|
+
if (_0x269c2c[_0x3fa6bb(0x269)] === 0x0)
|
|
1413
|
+
return _0x3fa6bb(_0x56dd5f._0x3b0b31);
|
|
1414
|
+
return _0x269c2c[_0x3fa6bb(0x1c2)](_0x3593f2 => {
|
|
1415
|
+
const _0x44a9f2 = _0x3fa6bb, _0x5278f7 = _0x3593f2[_0x44a9f2(_0x4c7cce._0x2d2711)] === _0x44a9f2(_0x4c7cce._0x10fe6d) ? _0x44a9f2(_0x4c7cce._0x26e455) : '';
|
|
1416
|
+
return _0x44a9f2(0x25b) + _0x3593f2[_0x44a9f2(0x146)] + _0x44a9f2(_0x4c7cce._0x21f476) + _0x3593f2[_0x44a9f2(_0x4c7cce._0x310e4a)][_0x44a9f2(_0x4c7cce._0x4cfc12)](0x0, 0x8) + _0x44a9f2(_0x4c7cce._0x314131) + toLocalTime(_0x3593f2[_0x44a9f2(_0x4c7cce._0x1c5b48)]) + _0x5278f7 + _0x44a9f2(_0x4c7cce._0x13e2c4) + _0x3593f2[_0x44a9f2(_0x4c7cce._0x475f5b)] + ':\x20' + _0x3593f2[_0x44a9f2(0x23d)] + formatAttachmentSuffix(_0x3593f2[_0x44a9f2(0x101)]);
|
|
1417
|
+
})[_0x3fa6bb(_0x56dd5f._0x1bd140)]('\x0a');
|
|
1398
1418
|
}
|
|
1399
|
-
function formatHistory(
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
const _0x588923 = _0x33e664, _0x23799d = _0x57a858[_0x588923(_0x527ce2._0x13230c)] === _0x588923(_0x527ce2._0x226955) ? _0x588923(_0x527ce2._0x29d480) : '';
|
|
1423
|
-
return '[seq=' + _0x57a858['seq'] + '\x20msg=' + _0x57a858[_0x588923(_0x527ce2._0xeca6ea)] + _0x588923(0x2ef) + toLocalTime(_0x57a858[_0x588923(_0x527ce2._0x2cc226)]) + _0x23799d + _0x588923(_0x527ce2._0x40fbb7) + _0x57a858[_0x588923(_0x527ce2._0x5f22a6)] + ':\x20' + _0x57a858[_0x588923(_0x527ce2._0x116fb6)] + formatAttachmentSuffix(_0x57a858[_0x588923(0x22b)]);
|
|
1424
|
-
})[_0x33e664(0x1d4)]('\x0a'), _0x33cff5 = _0x312e84[_0x33e664(_0x380f42._0x5335f1)] && _0x312e84[_0x33e664(_0x380f42._0x2413c0)] ? _0x33e664(_0x380f42._0x593242) + _0x312e84[_0x33e664(_0x380f42._0x160bed)][_0x33e664(_0x380f42._0x2c0e4b)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x312e84[_0x33e664(0x1d2)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1425
|
-
return _0x33e664(0x276) + _0x312e84[_0x33e664(_0x380f42._0x4775b2)] + '\x20(' + _0x312e84['messages'][_0x33e664(0x1ba)] + _0x33e664(_0x380f42._0x2d85a3) + _0x5a2146 + _0x33cff5;
|
|
1419
|
+
function formatHistory(_0x39df84) {
|
|
1420
|
+
const _0x5178ca = {
|
|
1421
|
+
_0x2de4a3: 0x269,
|
|
1422
|
+
_0x3e55c8: 0x201,
|
|
1423
|
+
_0x212d47: 0x166,
|
|
1424
|
+
_0x34b669: 0x239,
|
|
1425
|
+
_0xb4b72: 0x219,
|
|
1426
|
+
_0x392c6a: 0x1fc
|
|
1427
|
+
}, _0x1e7f7a = {
|
|
1428
|
+
_0x665dbf: 0x1bd,
|
|
1429
|
+
_0x3bf995: 0x236,
|
|
1430
|
+
_0x3a5215: 0x221,
|
|
1431
|
+
_0x1d293c: 0x153,
|
|
1432
|
+
_0x1b46cf: 0x10e,
|
|
1433
|
+
_0x28a136: 0x1fb
|
|
1434
|
+
}, _0x289d5b = _0x42cca9;
|
|
1435
|
+
if (_0x39df84['messages'][_0x289d5b(_0x5178ca._0x2de4a3)] === 0x0)
|
|
1436
|
+
return '##\x20Message\x20History\x20for\x20' + _0x39df84[_0x289d5b(0x13a)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1437
|
+
const _0x3aab35 = _0x39df84[_0x289d5b(0x229)][_0x289d5b(0x1c2)](_0x46c707 => {
|
|
1438
|
+
const _0x5e7d98 = _0x289d5b, _0x1fd62b = _0x46c707[_0x5e7d98(0x118)] === _0x5e7d98(_0x1e7f7a._0x665dbf) ? _0x5e7d98(_0x1e7f7a._0x3bf995) : '';
|
|
1439
|
+
return _0x5e7d98(0x183) + _0x46c707[_0x5e7d98(_0x1e7f7a._0x3a5215)] + '\x20msg=' + _0x46c707[_0x5e7d98(_0x1e7f7a._0x1d293c)] + '\x20time=' + toLocalTime(_0x46c707[_0x5e7d98(_0x1e7f7a._0x1b46cf)]) + _0x1fd62b + _0x5e7d98(_0x1e7f7a._0x28a136) + _0x46c707['senderName'] + ':\x20' + _0x46c707['content'] + formatAttachmentSuffix(_0x46c707[_0x5e7d98(0x101)]);
|
|
1440
|
+
})[_0x289d5b(_0x5178ca._0x3e55c8)]('\x0a'), _0x59f89b = _0x39df84[_0x289d5b(_0x5178ca._0x212d47)] && _0x39df84[_0x289d5b(_0x5178ca._0x34b669)] ? '\x0a\x0a---\x20' + _0x39df84['messages'][_0x289d5b(_0x5178ca._0x2de4a3)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x39df84['nextCursor'] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1441
|
+
return _0x289d5b(_0x5178ca._0xb4b72) + _0x39df84[_0x289d5b(0x13a)] + '\x20(' + _0x39df84['messages']['length'] + _0x289d5b(_0x5178ca._0x392c6a) + _0x3aab35 + _0x59f89b;
|
|
1426
1442
|
}
|
|
1427
|
-
function formatServerDirectory(
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1443
|
+
function formatServerDirectory(_0x5f2d5f) {
|
|
1444
|
+
const _0x38ae63 = {
|
|
1445
|
+
_0x40263c: 0x167,
|
|
1446
|
+
_0x4a8b89: 0x1c2,
|
|
1447
|
+
_0x2c1730: 0x164,
|
|
1448
|
+
_0x37d9f8: 0x241,
|
|
1449
|
+
_0x5b4fbb: 0x201,
|
|
1450
|
+
_0x25f95e: 0x164,
|
|
1451
|
+
_0x41c43c: 0x220,
|
|
1452
|
+
_0x27bc0f: 0x269,
|
|
1453
|
+
_0x4c1a35: 0x247,
|
|
1454
|
+
_0x54d1b5: 0x23a
|
|
1455
|
+
}, _0x150ec7 = _0x42cca9, _0x39b4ce = _0x5f2d5f[_0x150ec7(_0x38ae63._0x40263c)]['length'] > 0x0 ? _0x5f2d5f[_0x150ec7(0x167)][_0x150ec7(_0x38ae63._0x4a8b89)](_0x31cbe1 => _0x31cbe1[_0x150ec7(0x1fa)] ? '-\x20#' + _0x31cbe1[_0x150ec7(0x202)] + _0x150ec7(0x195) + _0x31cbe1[_0x150ec7(0x1fa)] : _0x150ec7(0x114) + _0x31cbe1[_0x150ec7(0x202)])['join']('\x0a') : _0x150ec7(_0x38ae63._0x2c1730), _0x207e06 = _0x5f2d5f[_0x150ec7(0x241)][_0x150ec7(0x269)] > 0x0 ? _0x5f2d5f[_0x150ec7(_0x38ae63._0x37d9f8)][_0x150ec7(0x1c2)](_0x19ef0a => '-\x20@' + _0x19ef0a['name'])[_0x150ec7(_0x38ae63._0x5b4fbb)]('\x0a') : _0x150ec7(_0x38ae63._0x25f95e), _0x6602db = _0x5f2d5f[_0x150ec7(_0x38ae63._0x41c43c)][_0x150ec7(_0x38ae63._0x27bc0f)] > 0x0 ? _0x5f2d5f[_0x150ec7(0x220)]['map'](_0x45e425 => _0x150ec7(0x1b5) + _0x45e425[_0x150ec7(0x202)])[_0x150ec7(0x201)]('\x0a') : _0x150ec7(0x164);
|
|
1435
1456
|
return [
|
|
1436
|
-
|
|
1457
|
+
_0x150ec7(0x1ea) + _0x5f2d5f[_0x150ec7(0x212)],
|
|
1437
1458
|
'',
|
|
1438
|
-
|
|
1439
|
-
|
|
1459
|
+
_0x150ec7(_0x38ae63._0x4c1a35),
|
|
1460
|
+
_0x39b4ce,
|
|
1440
1461
|
'',
|
|
1441
|
-
|
|
1442
|
-
|
|
1462
|
+
_0x150ec7(_0x38ae63._0x54d1b5),
|
|
1463
|
+
_0x207e06,
|
|
1443
1464
|
'',
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
][
|
|
1465
|
+
'###\x20Humans',
|
|
1466
|
+
_0x6602db
|
|
1467
|
+
][_0x150ec7(_0x38ae63._0x5b4fbb)]('\x0a');
|
|
1447
1468
|
}
|
|
1448
|
-
function formatUploadResult(
|
|
1449
|
-
const
|
|
1450
|
-
|
|
1451
|
-
_0xa989ef: 0x1a0,
|
|
1452
|
-
_0x107d6e: 0x183
|
|
1453
|
-
}, _0x3021cb = _0x566b69;
|
|
1454
|
-
return 'File\x20uploaded:\x20' + _0xb8e8dd[_0x3021cb(_0x7f3fa9._0xed751b)] + '\x20(' + (_0xb8e8dd[_0x3021cb(_0x7f3fa9._0xa989ef)] / 0x400)[_0x3021cb(0x2f7)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0xb8e8dd[_0x3021cb(0x2a2)] + _0x3021cb(_0x7f3fa9._0x107d6e);
|
|
1469
|
+
function formatUploadResult(_0x5ec74f) {
|
|
1470
|
+
const _0x462db1 = { _0x577fa1: 0x128 }, _0x2ff26b = _0x42cca9;
|
|
1471
|
+
return 'File\x20uploaded:\x20' + _0x5ec74f[_0x2ff26b(_0x462db1._0x577fa1)] + '\x20(' + (_0x5ec74f[_0x2ff26b(0x262)] / 0x400)[_0x2ff26b(0x16e)](0x1) + _0x2ff26b(0x111) + _0x5ec74f[_0x2ff26b(0x1c7)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1455
1472
|
}
|
|
1456
|
-
function formatViewFileResult(
|
|
1457
|
-
const
|
|
1458
|
-
return
|
|
1473
|
+
function formatViewFileResult(_0x12f1fa, _0x4fefdd) {
|
|
1474
|
+
const _0x2d6980 = { _0x37335a: 0x18e }, _0x5875b5 = _0x42cca9;
|
|
1475
|
+
return _0x4fefdd ? _0x5875b5(0x228) + _0x12f1fa : _0x5875b5(_0x2d6980._0x37335a) + _0x12f1fa;
|
|
1459
1476
|
}
|
|
1460
|
-
function formatTaskList(
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1477
|
+
function formatTaskList(_0x3201c2, _0x481827) {
|
|
1478
|
+
const _0x43922e = {
|
|
1479
|
+
_0x428e0c: 0x18f,
|
|
1480
|
+
_0x2ce945: 0x201
|
|
1481
|
+
}, _0x304da3 = {
|
|
1482
|
+
_0x48f2da: 0x222,
|
|
1483
|
+
_0x464403: 0x153,
|
|
1484
|
+
_0x358455: 0x222,
|
|
1485
|
+
_0x50be87: 0x254,
|
|
1486
|
+
_0x4b63e8: 0x1c1
|
|
1487
|
+
}, _0x975fee = _0x42cca9;
|
|
1488
|
+
if (_0x3201c2['length'] === 0x0)
|
|
1489
|
+
return _0x975fee(_0x43922e._0x428e0c);
|
|
1490
|
+
return _0x3201c2[_0x975fee(0x1c2)](_0x4d0d86 => {
|
|
1491
|
+
const _0x56a360 = _0x975fee, _0x13cefa = _0x4d0d86[_0x56a360(_0x304da3._0x48f2da)] == null ? _0x56a360(0xf4) : '#' + _0x4d0d86[_0x56a360(_0x304da3._0x48f2da)], _0x35f8ec = _0x4d0d86[_0x56a360(0x153)] ? _0x56a360(0x1bf) + _0x4d0d86[_0x56a360(_0x304da3._0x464403)] : '', _0x28039d = _0x481827 && _0x4d0d86[_0x56a360(_0x304da3._0x48f2da)] != null && _0x481827['has'](_0x4d0d86[_0x56a360(_0x304da3._0x358455)]) ? _0x56a360(_0x304da3._0x50be87) : '';
|
|
1492
|
+
return _0x13cefa + '\x20[' + _0x4d0d86[_0x56a360(_0x304da3._0x4b63e8)] + ']\x20' + _0x4d0d86[_0x56a360(0x24f)] + _0x35f8ec + _0x28039d;
|
|
1493
|
+
})[_0x975fee(_0x43922e._0x2ce945)]('\x0a');
|
|
1475
1494
|
}
|
|
1476
|
-
function formatCreatedTasks(
|
|
1477
|
-
const
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
},
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1495
|
+
function formatCreatedTasks(_0x1b8195) {
|
|
1496
|
+
const _0x5e6a5d = {
|
|
1497
|
+
_0x4493e3: 0x269,
|
|
1498
|
+
_0x1f5112: 0x201
|
|
1499
|
+
}, _0x5cb067 = {
|
|
1500
|
+
_0x165027: 0x24f,
|
|
1501
|
+
_0x24c980: 0x1bf,
|
|
1502
|
+
_0x1e871c: 0x153
|
|
1503
|
+
}, _0x4fed98 = _0x42cca9;
|
|
1504
|
+
if (_0x1b8195[_0x4fed98(_0x5e6a5d._0x4493e3)] === 0x0)
|
|
1505
|
+
return 'No\x20tasks\x20created.';
|
|
1506
|
+
return _0x1b8195['map'](_0x1f718a => {
|
|
1507
|
+
const _0x63d820 = _0x4fed98, _0x555dd3 = _0x1f718a[_0x63d820(0x222)] == null ? '(legacy)' : '#' + _0x1f718a['taskNumber'];
|
|
1508
|
+
return _0x555dd3 + '\x20' + _0x1f718a[_0x63d820(_0x5cb067._0x165027)] + _0x63d820(_0x5cb067._0x24c980) + _0x1f718a[_0x63d820(_0x5cb067._0x1e871c)];
|
|
1509
|
+
})[_0x4fed98(_0x5e6a5d._0x1f5112)]('\x0a');
|
|
1490
1510
|
}
|
|
1491
|
-
function formatClaimTaskResults(
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1511
|
+
function formatClaimTaskResults(_0x33d434) {
|
|
1512
|
+
const _0x1efa16 = {
|
|
1513
|
+
_0x390902: 0x269,
|
|
1514
|
+
_0x5b6722: 0x1c2
|
|
1515
|
+
}, _0x1cbd8f = {
|
|
1516
|
+
_0x507441: 0x222,
|
|
1517
|
+
_0x15a4d9: 0x153,
|
|
1518
|
+
_0x2d3f3b: 0x153,
|
|
1519
|
+
_0x214a67: 0x1af,
|
|
1520
|
+
_0x1e2f74: 0x18b,
|
|
1521
|
+
_0x32376d: 0x24d,
|
|
1522
|
+
_0x2c802e: 0x1f8,
|
|
1523
|
+
_0x548e68: 0x152,
|
|
1524
|
+
_0x5a4fd0: 0xfe,
|
|
1525
|
+
_0x232972: 0x19a,
|
|
1526
|
+
_0x2bfbe6: 0x201,
|
|
1527
|
+
_0x588d65: 0x1a6,
|
|
1528
|
+
_0xcb7f3e: 0x112,
|
|
1529
|
+
_0x32f5c6: 0x135
|
|
1530
|
+
}, _0x1800df = _0x42cca9;
|
|
1531
|
+
if (_0x33d434[_0x1800df(_0x1efa16._0x390902)] === 0x0)
|
|
1532
|
+
return _0x1800df(0x248);
|
|
1533
|
+
return _0x33d434[_0x1800df(_0x1efa16._0x5b6722)](_0xc210d5 => {
|
|
1534
|
+
const _0x3b29a8 = _0x1800df;
|
|
1535
|
+
if (_0xc210d5[_0x3b29a8(0x21c)]) {
|
|
1536
|
+
const _0x15936e = _0xc210d5[_0x3b29a8(0x222)] == null ? _0x3b29a8(0xf4) : '#' + _0xc210d5[_0x3b29a8(_0x1cbd8f._0x507441)], _0x55c385 = _0xc210d5[_0x3b29a8(_0x1cbd8f._0x15a4d9)] ? '\x20message=' + _0xc210d5[_0x3b29a8(_0x1cbd8f._0x2d3f3b)] : '';
|
|
1537
|
+
if (_0xc210d5[_0x3b29a8(0x1b8)]) {
|
|
1538
|
+
const _0x50300d = [
|
|
1539
|
+
_0x3b29a8(_0x1cbd8f._0x214a67),
|
|
1540
|
+
_0xc210d5[_0x3b29a8(0x1c8)] ? _0x3b29a8(_0x1cbd8f._0x1e2f74) : null,
|
|
1541
|
+
_0xc210d5[_0x3b29a8(0x204)] ? _0x3b29a8(_0x1cbd8f._0x32376d) + _0xc210d5[_0x3b29a8(0x204)] : null,
|
|
1542
|
+
_0xc210d5[_0x3b29a8(0x152)] ? _0x3b29a8(_0x1cbd8f._0x2c802e) + _0xc210d5[_0x3b29a8(_0x1cbd8f._0x548e68)] : null,
|
|
1543
|
+
_0xc210d5[_0x3b29a8(_0x1cbd8f._0x5a4fd0)] ? _0x3b29a8(_0x1cbd8f._0x232972) + _0xc210d5[_0x3b29a8(0xfe)] : null
|
|
1544
|
+
][_0x3b29a8(0x258)](Boolean)[_0x3b29a8(_0x1cbd8f._0x2bfbe6)]('\x20');
|
|
1545
|
+
return _0x15936e + _0x3b29a8(0x214) + _0x55c385 + '\x20' + _0x50300d + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
|
|
1522
1546
|
}
|
|
1523
|
-
const
|
|
1524
|
-
return
|
|
1547
|
+
const _0x21e384 = _0xc210d5[_0x3b29a8(_0x1cbd8f._0x588d65)] ? '\x20workerHandoff=false\x20error=' + _0xc210d5[_0x3b29a8(0x1a6)] : '';
|
|
1548
|
+
return _0x15936e + _0x3b29a8(0x214) + _0x55c385 + _0x21e384;
|
|
1525
1549
|
}
|
|
1526
|
-
const
|
|
1527
|
-
return
|
|
1528
|
-
})[
|
|
1550
|
+
const _0x5425bd = _0xc210d5[_0x3b29a8(_0x1cbd8f._0x507441)] == null ? _0xc210d5['messageId'] ?? _0x3b29a8(_0x1cbd8f._0xcb7f3e) : '#' + _0xc210d5['taskNumber'];
|
|
1551
|
+
return _0x5425bd + _0x3b29a8(0x105) + (_0xc210d5[_0x3b29a8(_0x1cbd8f._0x32f5c6)] ?? 'claim\x20failed');
|
|
1552
|
+
})[_0x1800df(0x201)]('\x0a');
|
|
1529
1553
|
}
|
|
1530
|
-
function formatUnclaimTaskResult(
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
return _0x31bab4 + _0x3f662c(_0xc30523._0x3f8b45) + _0x1bbfc2['status'];
|
|
1554
|
+
function formatUnclaimTaskResult(_0x4acfc1) {
|
|
1555
|
+
const _0x4e3e6d = {
|
|
1556
|
+
_0x1ff004: 0x158,
|
|
1557
|
+
_0x150109: 0x1c1
|
|
1558
|
+
}, _0x2e14b1 = _0x42cca9, _0x4fa92d = _0x4acfc1['taskNumber'] == null ? '(legacy)' : '#' + _0x4acfc1[_0x2e14b1(0x222)];
|
|
1559
|
+
return _0x4fa92d + _0x2e14b1(_0x4e3e6d._0x1ff004) + _0x4acfc1[_0x2e14b1(_0x4e3e6d._0x150109)];
|
|
1537
1560
|
}
|
|
1538
|
-
function formatUpdateTaskStatusResult(
|
|
1539
|
-
const
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
},
|
|
1543
|
-
return
|
|
1561
|
+
function formatUpdateTaskStatusResult(_0x3250c5) {
|
|
1562
|
+
const _0x2c99a9 = {
|
|
1563
|
+
_0x2f27e7: 0xf4,
|
|
1564
|
+
_0x28c49e: 0x158
|
|
1565
|
+
}, _0x54434a = _0x42cca9, _0x32d580 = _0x3250c5['taskNumber'] == null ? _0x54434a(_0x2c99a9._0x2f27e7) : '#' + _0x3250c5[_0x54434a(0x222)];
|
|
1566
|
+
return _0x32d580 + _0x54434a(_0x2c99a9._0x28c49e) + _0x3250c5[_0x54434a(0x1c1)];
|
|
1544
1567
|
}
|
|
1545
1568
|
function getChatBridgeToolDefinitions() {
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1569
|
+
const _0x3877aa = {
|
|
1570
|
+
_0x1a4073: 0x25a,
|
|
1571
|
+
_0x58caad: 0x267,
|
|
1572
|
+
_0x133382: 0x126,
|
|
1573
|
+
_0x4e0f12: 0xff,
|
|
1574
|
+
_0x57d550: 0x1de,
|
|
1575
|
+
_0x5c98f7: 0x1f4
|
|
1576
|
+
}, _0x6224a2 = _0x42cca9;
|
|
1554
1577
|
return [
|
|
1555
|
-
{ 'name':
|
|
1556
|
-
{ 'name':
|
|
1578
|
+
{ 'name': _0x6224a2(_0x3877aa._0x1a4073) },
|
|
1579
|
+
{ 'name': 'check_messages' },
|
|
1557
1580
|
{ 'name': 'read_history' },
|
|
1558
1581
|
{ 'name': 'list_server' },
|
|
1559
|
-
{ 'name':
|
|
1560
|
-
{ 'name':
|
|
1561
|
-
{ 'name':
|
|
1562
|
-
{ 'name':
|
|
1563
|
-
{ 'name':
|
|
1564
|
-
{ 'name':
|
|
1565
|
-
{ 'name':
|
|
1566
|
-
{ 'name':
|
|
1567
|
-
{ 'name':
|
|
1568
|
-
{ 'name':
|
|
1569
|
-
{ 'name':
|
|
1570
|
-
{ 'name':
|
|
1582
|
+
{ 'name': _0x6224a2(_0x3877aa._0x58caad) },
|
|
1583
|
+
{ 'name': _0x6224a2(_0x3877aa._0x133382) },
|
|
1584
|
+
{ 'name': _0x6224a2(_0x3877aa._0x4e0f12) },
|
|
1585
|
+
{ 'name': _0x6224a2(0x14a) },
|
|
1586
|
+
{ 'name': _0x6224a2(_0x3877aa._0x57d550) },
|
|
1587
|
+
{ 'name': 'unclaim_task' },
|
|
1588
|
+
{ 'name': 'update_task_status' },
|
|
1589
|
+
{ 'name': _0x6224a2(0x1ee) },
|
|
1590
|
+
{ 'name': _0x6224a2(_0x3877aa._0x5c98f7) },
|
|
1591
|
+
{ 'name': _0x6224a2(0x188) },
|
|
1592
|
+
{ 'name': 'escalate_to_main' },
|
|
1593
|
+
{ 'name': _0x6224a2(0x17e) }
|
|
1571
1594
|
];
|
|
1572
1595
|
}
|
|
1573
|
-
function createChatBridgeHandlers(
|
|
1574
|
-
const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
},
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
},
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
_0x54fb79: 0x1ea,
|
|
1687
|
-
_0x510564: 0x297,
|
|
1688
|
-
_0x3667cb: 0x20f
|
|
1689
|
-
}, _0xbae48 = _0x566b69;
|
|
1690
|
-
async function _0x1a0f73(_0x847f85) {
|
|
1691
|
-
const _0x1797df = _0x59d3;
|
|
1692
|
-
if (!_0x563b41['daemonLocalUrl'] || !_0x563b41[_0x1797df(_0x4b6fef._0x14d9ff)] || _0x563b41[_0x1797df(0x2b7)] || _0x563b41[_0x1797df(0x2fc)] !== !![])
|
|
1596
|
+
function createChatBridgeHandlers(_0x1090e4) {
|
|
1597
|
+
const _0x113eeb = { _0x49af2c: 0x177 }, _0x4355ac = {
|
|
1598
|
+
_0x41ee43: 0x1ac,
|
|
1599
|
+
_0x10ef13: 0x15b,
|
|
1600
|
+
_0x14e854: 0x135,
|
|
1601
|
+
_0x4d5b34: 0x161,
|
|
1602
|
+
_0xc6ee43: 0x143,
|
|
1603
|
+
_0x55a316: 0x15a,
|
|
1604
|
+
_0x44534d: 0x10c
|
|
1605
|
+
}, _0x212542 = {
|
|
1606
|
+
_0x12e5eb: 0x189,
|
|
1607
|
+
_0x5d690a: 0x263,
|
|
1608
|
+
_0x5605f9: 0x165,
|
|
1609
|
+
_0x3c18f1: 0x15b,
|
|
1610
|
+
_0x41d838: 0x143,
|
|
1611
|
+
_0x4a793a: 0x15b
|
|
1612
|
+
}, _0x4700f8 = {
|
|
1613
|
+
_0x1e58f4: 0x189,
|
|
1614
|
+
_0x53d3fe: 0x137,
|
|
1615
|
+
_0x1dde71: 0x165,
|
|
1616
|
+
_0x94d0ad: 0x136,
|
|
1617
|
+
_0x2023be: 0x161,
|
|
1618
|
+
_0x551abd: 0x143,
|
|
1619
|
+
_0x2f68eb: 0x17c,
|
|
1620
|
+
_0x2925ec: 0x156
|
|
1621
|
+
}, _0x251533 = { _0x26fedd: 0x15b }, _0x43e96d = {
|
|
1622
|
+
_0x467130: 0x225,
|
|
1623
|
+
_0x28798a: 0x225,
|
|
1624
|
+
_0x2eb11e: 0x15b
|
|
1625
|
+
}, _0x581463 = {
|
|
1626
|
+
_0x3eeec0: 0x168,
|
|
1627
|
+
_0x34323d: 0x251,
|
|
1628
|
+
_0x3251c1: 0x1bc,
|
|
1629
|
+
_0x152b9a: 0x1a8
|
|
1630
|
+
}, _0x4624ee = { _0x2d0c96: 0x13a }, _0x434db9 = { _0x31fd0f: 0x205 }, _0x3b7275 = { _0x2241c6: 0x12e }, _0xc1400f = { _0x2eed48: 0x1c2 }, _0x19f3b9 = {
|
|
1631
|
+
_0x2744c6: 0x1a9,
|
|
1632
|
+
_0x2960ee: 0x14c,
|
|
1633
|
+
_0x13e78e: 0x161,
|
|
1634
|
+
_0xf23ca: 0x24b,
|
|
1635
|
+
_0x234499: 0x206,
|
|
1636
|
+
_0x2ed77b: 0x242,
|
|
1637
|
+
_0x202ce5: 0x269,
|
|
1638
|
+
_0x5ea41a: 0x14d,
|
|
1639
|
+
_0x1d2a0a: 0x22d,
|
|
1640
|
+
_0x6630d7: 0x253,
|
|
1641
|
+
_0x572545: 0x222
|
|
1642
|
+
}, _0x1eb7aa = { _0x162c21: 0x251 }, _0x48d3d4 = {
|
|
1643
|
+
_0x571381: 0x1f0,
|
|
1644
|
+
_0x3c13da: 0x24c
|
|
1645
|
+
}, _0x278e9f = {
|
|
1646
|
+
_0x302067: 0x151,
|
|
1647
|
+
_0x496be0: 0x189,
|
|
1648
|
+
_0x13196b: 0x251,
|
|
1649
|
+
_0x1a7eae: 0x134,
|
|
1650
|
+
_0x5bc2fd: 0x148,
|
|
1651
|
+
_0x4d1936: 0x148,
|
|
1652
|
+
_0x4f68f2: 0x260,
|
|
1653
|
+
_0x19afaf: 0x146,
|
|
1654
|
+
_0x2f900a: 0x109,
|
|
1655
|
+
_0x27170c: 0x10b,
|
|
1656
|
+
_0x5d5880: 0x201,
|
|
1657
|
+
_0x3f8201: 0x25b,
|
|
1658
|
+
_0x16973c: 0x23d,
|
|
1659
|
+
_0x501b3: 0x26a,
|
|
1660
|
+
_0x1eda9d: 0x252,
|
|
1661
|
+
_0x7ce370: 0xfa,
|
|
1662
|
+
_0x3a2fbb: 0x182,
|
|
1663
|
+
_0x587551: 0x1ac,
|
|
1664
|
+
_0x7e1ced: 0x13d,
|
|
1665
|
+
_0x4a2be3: 0x17a,
|
|
1666
|
+
_0x306199: 0x1ab,
|
|
1667
|
+
_0x5ff2b8: 0x198,
|
|
1668
|
+
_0x50e244: 0x1b9,
|
|
1669
|
+
_0x96a4bc: 0x23d,
|
|
1670
|
+
_0x32c62b: 0x146,
|
|
1671
|
+
_0x12fe54: 0x1f2,
|
|
1672
|
+
_0x5afca3: 0x22a
|
|
1673
|
+
}, _0x38b919 = {
|
|
1674
|
+
_0x3f39fd: 0x189,
|
|
1675
|
+
_0x4c5c84: 0x24c,
|
|
1676
|
+
_0x25d1a0: 0x189,
|
|
1677
|
+
_0x33fdbe: 0x14c,
|
|
1678
|
+
_0x5b9329: 0x1a4,
|
|
1679
|
+
_0x405cba: 0x22d
|
|
1680
|
+
}, _0x4ba564 = {
|
|
1681
|
+
_0x213bd0: 0x189,
|
|
1682
|
+
_0x22bc3b: 0x206,
|
|
1683
|
+
_0x4ddafb: 0x22d,
|
|
1684
|
+
_0x42cff9: 0x10a
|
|
1685
|
+
}, _0x463427 = {
|
|
1686
|
+
_0x1c2508: 0x1a9,
|
|
1687
|
+
_0x16701e: 0x18d,
|
|
1688
|
+
_0x5d7b36: 0x251,
|
|
1689
|
+
_0x1ccd7e: 0xf4,
|
|
1690
|
+
_0x29ed24: 0x222,
|
|
1691
|
+
_0x22daf9: 0x25b,
|
|
1692
|
+
_0x30d3e9: 0x178,
|
|
1693
|
+
_0x592bf8: 0x153,
|
|
1694
|
+
_0x4b164d: 0xf2,
|
|
1695
|
+
_0xf0f746: 0x19d,
|
|
1696
|
+
_0x46be75: 0x22f,
|
|
1697
|
+
_0x195d86: 0x23d,
|
|
1698
|
+
_0x172037: 0x1e6,
|
|
1699
|
+
_0x334a46: 0x201,
|
|
1700
|
+
_0x1938c2: 0x189,
|
|
1701
|
+
_0x208da6: 0x1ac,
|
|
1702
|
+
_0x31f064: 0x1a9,
|
|
1703
|
+
_0x56e8b2: 0x143,
|
|
1704
|
+
_0x256fc4: 0x259
|
|
1705
|
+
}, _0x2e3f85 = _0x42cca9;
|
|
1706
|
+
async function _0x7fa5fb(_0x597388) {
|
|
1707
|
+
const _0x4f31ab = _0x4b08;
|
|
1708
|
+
if (!_0x1090e4[_0x4f31ab(0x189)] || !_0x1090e4[_0x4f31ab(_0x463427._0x1c2508)] || _0x1090e4[_0x4f31ab(0x24c)] || _0x1090e4[_0x4f31ab(0x151)] !== !![])
|
|
1693
1709
|
return null;
|
|
1694
|
-
const
|
|
1695
|
-
if (
|
|
1710
|
+
const _0x12323f = parseTarget(_0x597388['channel']);
|
|
1711
|
+
if (_0x12323f['kind'] !== _0x4f31ab(0x13a))
|
|
1696
1712
|
return null;
|
|
1697
|
-
const
|
|
1698
|
-
let
|
|
1713
|
+
const _0x2cb85e = _0x597388[_0x4f31ab(0x260)] != null ? _0x12323f[_0x4f31ab(_0x463427._0x16701e)] + ':t' + _0x597388[_0x4f31ab(0x260)] : _0x12323f[_0x4f31ab(_0x463427._0x16701e)] + ':' + _0x597388[_0x4f31ab(0x153)];
|
|
1714
|
+
let _0x389757;
|
|
1699
1715
|
try {
|
|
1700
|
-
const
|
|
1701
|
-
'channel':
|
|
1716
|
+
const _0x12054f = await _0x1090e4[_0x4f31ab(_0x463427._0x5d7b36)]['readHistory']({
|
|
1717
|
+
'channel': _0x2cb85e,
|
|
1702
1718
|
'limit': 0x14
|
|
1703
1719
|
});
|
|
1704
|
-
|
|
1720
|
+
_0x389757 = _0x12054f['messages'][_0x4f31ab(0x230)](_0x253129 => _0x253129['messageId'] === _0x597388[_0x4f31ab(0x153)]);
|
|
1705
1721
|
} catch {
|
|
1706
|
-
|
|
1722
|
+
_0x389757 = void 0x0;
|
|
1707
1723
|
}
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1724
|
+
const _0x509734 = _0x597388[_0x4f31ab(0x222)] == null ? _0x4f31ab(_0x463427._0x1ccd7e) : '#' + _0x597388[_0x4f31ab(_0x463427._0x29ed24)], _0x239294 = [
|
|
1725
|
+
_0x4f31ab(_0x463427._0x22daf9) + _0x2cb85e + _0x4f31ab(_0x463427._0x30d3e9) + _0x597388[_0x4f31ab(_0x463427._0x592bf8)][_0x4f31ab(0x242)](0x0, 0x8) + _0x4f31ab(_0x463427._0x4b164d) + new Date()[_0x4f31ab(_0x463427._0xf0f746)]() + _0x4f31ab(_0x463427._0x46be75) + _0x509734 + _0x4f31ab(0x131),
|
|
1710
1726
|
'',
|
|
1711
|
-
|
|
1727
|
+
_0x389757 ? _0x4f31ab(0x185) + _0x389757[_0x4f31ab(_0x463427._0x195d86)] : 'Root\x20task\x20message\x20id:\x20' + _0x597388[_0x4f31ab(_0x463427._0x592bf8)],
|
|
1712
1728
|
'',
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
][
|
|
1716
|
-
'method':
|
|
1717
|
-
'headers': { 'Content-Type':
|
|
1718
|
-
'body': JSON[
|
|
1719
|
-
'agent_id':
|
|
1720
|
-
'thread_target':
|
|
1729
|
+
'Thread\x20target:\x20' + _0x2cb85e,
|
|
1730
|
+
_0x4f31ab(_0x463427._0x172037)
|
|
1731
|
+
][_0x4f31ab(_0x463427._0x334a46)]('\x0a'), _0xfc5052 = await fetch(_0x1090e4[_0x4f31ab(_0x463427._0x1938c2)] + '/workers/deliver', {
|
|
1732
|
+
'method': 'POST',
|
|
1733
|
+
'headers': { 'Content-Type': _0x4f31ab(0x182) },
|
|
1734
|
+
'body': JSON[_0x4f31ab(_0x463427._0x208da6)]({
|
|
1735
|
+
'agent_id': _0x1090e4[_0x4f31ab(_0x463427._0x31f064)],
|
|
1736
|
+
'thread_target': _0x2cb85e,
|
|
1721
1737
|
'spawn_packet': {
|
|
1722
|
-
'replyTarget':
|
|
1723
|
-
...
|
|
1738
|
+
'replyTarget': _0x2cb85e,
|
|
1739
|
+
..._0x597388[_0x4f31ab(0x1d9)] ? { 'taskId': _0x597388[_0x4f31ab(0x1d9)] } : _0x597388[_0x4f31ab(0x222)] != null ? { 'taskId': _0x4f31ab(0x238) + _0x597388['taskNumber'] } : {}
|
|
1724
1740
|
},
|
|
1725
1741
|
'payload': {
|
|
1726
|
-
'mode':
|
|
1727
|
-
'text':
|
|
1742
|
+
'mode': _0x4f31ab(0x174),
|
|
1743
|
+
'text': _0x239294
|
|
1728
1744
|
}
|
|
1729
1745
|
})
|
|
1730
|
-
}),
|
|
1731
|
-
if (!
|
|
1732
|
-
throw new Error(
|
|
1746
|
+
}), _0x14f31c = await _0xfc5052[_0x4f31ab(0x161)]();
|
|
1747
|
+
if (!_0x14f31c['ok'])
|
|
1748
|
+
throw new Error(_0x14f31c[_0x4f31ab(_0x463427._0x56e8b2)] ?? _0x4f31ab(0x106));
|
|
1733
1749
|
return {
|
|
1734
1750
|
'stopMain': !![],
|
|
1735
|
-
'threadTarget':
|
|
1736
|
-
'workerDisposition':
|
|
1751
|
+
'threadTarget': _0x2cb85e,
|
|
1752
|
+
'workerDisposition': _0x14f31c[_0x4f31ab(_0x463427._0x256fc4)] === _0x4f31ab(0x1ab) ? 'queued' : _0x4f31ab(0x15d),
|
|
1737
1753
|
'workerHandoff': !![],
|
|
1738
|
-
'workerSessionId':
|
|
1739
|
-
'executionMode':
|
|
1754
|
+
'workerSessionId': _0x14f31c['worker_session_id'] ?? '',
|
|
1755
|
+
'executionMode': 'worker'
|
|
1740
1756
|
};
|
|
1741
1757
|
}
|
|
1742
|
-
async function
|
|
1743
|
-
const
|
|
1744
|
-
if (!
|
|
1758
|
+
async function _0x25c7cc() {
|
|
1759
|
+
const _0x37303e = _0x4b08;
|
|
1760
|
+
if (!_0x1090e4[_0x37303e(_0x4ba564._0x213bd0)] || !_0x1090e4[_0x37303e(0x1a9)] || _0x1090e4[_0x37303e(0x24c)])
|
|
1745
1761
|
return null;
|
|
1746
1762
|
try {
|
|
1747
|
-
const
|
|
1748
|
-
if (!
|
|
1763
|
+
const _0x831406 = await fetch(_0x1090e4['daemonLocalUrl'] + _0x37303e(0x14c) + encodeURIComponent(_0x1090e4[_0x37303e(0x1a9)])), _0x2bd1e0 = await _0x831406['json']();
|
|
1764
|
+
if (!_0x2bd1e0['ok'])
|
|
1749
1765
|
return null;
|
|
1750
|
-
const
|
|
1751
|
-
for (const
|
|
1752
|
-
|
|
1766
|
+
const _0x4df21c = new Set();
|
|
1767
|
+
for (const _0xf50d3b of _0x2bd1e0[_0x37303e(0x24b)]) {
|
|
1768
|
+
_0xf50d3b['status'] !== _0x37303e(_0x4ba564._0x22bc3b) && _0xf50d3b[_0x37303e(0x10a)] && _0x4df21c[_0x37303e(_0x4ba564._0x4ddafb)](_0xf50d3b[_0x37303e(_0x4ba564._0x42cff9)]);
|
|
1753
1769
|
}
|
|
1754
|
-
return
|
|
1770
|
+
return _0x4df21c[_0x37303e(0x184)] > 0x0 ? _0x4df21c : null;
|
|
1755
1771
|
} catch {
|
|
1756
1772
|
return null;
|
|
1757
1773
|
}
|
|
1758
1774
|
}
|
|
1759
|
-
const
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1775
|
+
const _0x3d312e = new Set([
|
|
1776
|
+
_0x2e3f85(_0x113eeb._0x49af2c),
|
|
1777
|
+
_0x2e3f85(0x210),
|
|
1778
|
+
_0x2e3f85(0x272)
|
|
1763
1779
|
]);
|
|
1764
|
-
async function
|
|
1765
|
-
const
|
|
1766
|
-
if (!
|
|
1780
|
+
async function _0x2ef207() {
|
|
1781
|
+
const _0xf9fddb = _0x2e3f85;
|
|
1782
|
+
if (!_0x1090e4[_0xf9fddb(_0x38b919._0x3f39fd)] || !_0x1090e4['agentId'] || _0x1090e4[_0xf9fddb(_0x38b919._0x4c5c84)])
|
|
1767
1783
|
return null;
|
|
1768
1784
|
try {
|
|
1769
|
-
const
|
|
1770
|
-
if (!
|
|
1785
|
+
const _0x1b266c = await fetch(_0x1090e4[_0xf9fddb(_0x38b919._0x25d1a0)] + _0xf9fddb(_0x38b919._0x33fdbe) + encodeURIComponent(_0x1090e4[_0xf9fddb(0x1a9)])), _0x305de2 = await _0x1b266c['json']();
|
|
1786
|
+
if (!_0x305de2['ok'])
|
|
1771
1787
|
return null;
|
|
1772
|
-
const
|
|
1773
|
-
for (const
|
|
1774
|
-
|
|
1788
|
+
const _0x54ee36 = new Set();
|
|
1789
|
+
for (const _0x1df6af of _0x305de2[_0xf9fddb(0x24b)]) {
|
|
1790
|
+
_0x3d312e[_0xf9fddb(_0x38b919._0x5b9329)](_0x1df6af['status']) && _0x1df6af[_0xf9fddb(0x10a)] && _0x54ee36[_0xf9fddb(_0x38b919._0x405cba)](_0x1df6af[_0xf9fddb(0x10a)]);
|
|
1775
1791
|
}
|
|
1776
|
-
return
|
|
1792
|
+
return _0x54ee36[_0xf9fddb(0x184)] > 0x0 ? _0x54ee36 : null;
|
|
1777
1793
|
} catch {
|
|
1778
1794
|
return null;
|
|
1779
1795
|
}
|
|
1780
1796
|
}
|
|
1781
1797
|
return {
|
|
1782
|
-
async 'send_message'(
|
|
1783
|
-
const
|
|
1784
|
-
if (!
|
|
1785
|
-
const
|
|
1786
|
-
if (
|
|
1787
|
-
const
|
|
1788
|
-
if (
|
|
1798
|
+
async 'send_message'(_0x10fa5c) {
|
|
1799
|
+
const _0x3ff19a = _0x2e3f85;
|
|
1800
|
+
if (!_0x1090e4['workerMode'] && _0x1090e4[_0x3ff19a(_0x278e9f._0x302067)] && _0x1090e4[_0x3ff19a(_0x278e9f._0x496be0)] && _0x1090e4[_0x3ff19a(0x1a9)]) {
|
|
1801
|
+
const _0x18a05c = await _0x1090e4[_0x3ff19a(_0x278e9f._0x13196b)][_0x3ff19a(_0x278e9f._0x1a7eae)](_0x10fa5c[_0x3ff19a(0x146)]);
|
|
1802
|
+
if (_0x18a05c['task'] && _0x18a05c[_0x3ff19a(0x109)]) {
|
|
1803
|
+
const _0x31bb1f = _0x18a05c[_0x3ff19a(_0x278e9f._0x5bc2fd)]['taskNumber'] != null ? '#' + _0x18a05c[_0x3ff19a(_0x278e9f._0x4d1936)][_0x3ff19a(0x222)] : _0x3ff19a(0xf4), _0x4db4b2 = _0x18a05c['threadNumber'] != null ? _0x18a05c['target'] + ':t' + _0x18a05c[_0x3ff19a(_0x278e9f._0x4f68f2)] : _0x18a05c[_0x3ff19a(_0x278e9f._0x19afaf)] + ':' + _0x18a05c[_0x3ff19a(_0x278e9f._0x2f900a)]['slice'](0x0, 0x8), _0x2a28b0 = await _0x2ef207();
|
|
1804
|
+
if (_0x2a28b0?.[_0x3ff19a(0x1a4)](_0x4db4b2))
|
|
1789
1805
|
return [
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
][
|
|
1793
|
-
const
|
|
1794
|
-
|
|
1806
|
+
_0x3ff19a(0x1cf) + _0x31bb1f + _0x3ff19a(0x187) + _0x4db4b2 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1807
|
+
_0x3ff19a(_0x278e9f._0x27170c)
|
|
1808
|
+
][_0x3ff19a(_0x278e9f._0x5d5880)]('\x0a');
|
|
1809
|
+
const _0x55babd = [
|
|
1810
|
+
_0x3ff19a(_0x278e9f._0x3f8201) + _0x4db4b2 + _0x3ff19a(0x1d2) + new Date()[_0x3ff19a(0x19d)]() + _0x3ff19a(0x270),
|
|
1795
1811
|
'',
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
][
|
|
1801
|
-
'method':
|
|
1802
|
-
'headers': { 'Content-Type':
|
|
1803
|
-
'body': JSON[
|
|
1804
|
-
'agent_id':
|
|
1805
|
-
'thread_target':
|
|
1812
|
+
_0x3ff19a(0x169) + _0x10fa5c[_0x3ff19a(_0x278e9f._0x16973c)],
|
|
1813
|
+
_0x3ff19a(_0x278e9f._0x501b3) + _0x31bb1f + '\x20(' + _0x18a05c[_0x3ff19a(0x148)]['taskId'] + ')',
|
|
1814
|
+
_0x3ff19a(_0x278e9f._0x1eda9d) + _0x4db4b2,
|
|
1815
|
+
_0x3ff19a(_0x278e9f._0x7ce370)
|
|
1816
|
+
][_0x3ff19a(0x201)]('\x0a'), _0x542509 = await fetch(_0x1090e4[_0x3ff19a(0x189)] + _0x3ff19a(0x1da), {
|
|
1817
|
+
'method': _0x3ff19a(0x165),
|
|
1818
|
+
'headers': { 'Content-Type': _0x3ff19a(_0x278e9f._0x3a2fbb) },
|
|
1819
|
+
'body': JSON[_0x3ff19a(_0x278e9f._0x587551)]({
|
|
1820
|
+
'agent_id': _0x1090e4['agentId'],
|
|
1821
|
+
'thread_target': _0x4db4b2,
|
|
1806
1822
|
'spawn_packet': {
|
|
1807
|
-
'replyTarget':
|
|
1808
|
-
'taskId':
|
|
1823
|
+
'replyTarget': _0x4db4b2,
|
|
1824
|
+
'taskId': _0x18a05c['task']['taskId']
|
|
1809
1825
|
},
|
|
1810
1826
|
'payload': {
|
|
1811
|
-
'mode':
|
|
1812
|
-
'text':
|
|
1827
|
+
'mode': _0x3ff19a(0x174),
|
|
1828
|
+
'text': _0x55babd
|
|
1813
1829
|
}
|
|
1814
1830
|
})
|
|
1815
|
-
}),
|
|
1816
|
-
if (!
|
|
1817
|
-
throw new Error(
|
|
1831
|
+
}), _0x5bbbc4 = await _0x542509['json']();
|
|
1832
|
+
if (!_0x5bbbc4['ok'])
|
|
1833
|
+
throw new Error(_0x5bbbc4[_0x3ff19a(0x143)] ?? _0x3ff19a(0x1a2));
|
|
1818
1834
|
return [
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1835
|
+
_0x3ff19a(_0x278e9f._0x7e1ced) + _0x31bb1f + _0x3ff19a(0x187) + _0x4db4b2 + _0x3ff19a(0x213),
|
|
1836
|
+
_0x3ff19a(_0x278e9f._0x4a2be3) + (_0x5bbbc4['disposition'] === _0x3ff19a(_0x278e9f._0x306199) ? _0x3ff19a(0x1ab) : _0x3ff19a(0x15d)) + '.',
|
|
1837
|
+
_0x3ff19a(0x26e)
|
|
1822
1838
|
]['join']('\x0a');
|
|
1823
1839
|
}
|
|
1824
1840
|
}
|
|
1825
|
-
const
|
|
1826
|
-
'attachmentIds':
|
|
1827
|
-
'content':
|
|
1828
|
-
'target':
|
|
1829
|
-
'visibility':
|
|
1841
|
+
const _0x3ecefe = await _0x1090e4[_0x3ff19a(0x251)][_0x3ff19a(_0x278e9f._0x5ff2b8)]({
|
|
1842
|
+
'attachmentIds': _0x10fa5c[_0x3ff19a(_0x278e9f._0x50e244)],
|
|
1843
|
+
'content': _0x10fa5c[_0x3ff19a(_0x278e9f._0x96a4bc)],
|
|
1844
|
+
'target': _0x10fa5c[_0x3ff19a(_0x278e9f._0x32c62b)],
|
|
1845
|
+
'visibility': _0x10fa5c[_0x3ff19a(_0x278e9f._0x12fe54)]
|
|
1830
1846
|
});
|
|
1831
|
-
return
|
|
1847
|
+
return 'Message\x20sent\x20to\x20' + _0x10fa5c[_0x3ff19a(_0x278e9f._0x32c62b)] + _0x3ff19a(_0x278e9f._0x5afca3) + _0x3ecefe['messageId'];
|
|
1832
1848
|
},
|
|
1833
1849
|
async 'check_messages'() {
|
|
1834
|
-
const
|
|
1835
|
-
if (!
|
|
1836
|
-
const
|
|
1837
|
-
if (
|
|
1838
|
-
return formatCheckMessages(
|
|
1850
|
+
const _0x45d4fe = _0x2e3f85, _0x353d38 = await _0x1090e4['client'][_0x45d4fe(_0x48d3d4._0x571381)]();
|
|
1851
|
+
if (!_0x1090e4[_0x45d4fe(_0x48d3d4._0x3c13da)]) {
|
|
1852
|
+
const _0x4d5a50 = await _0x25c7cc();
|
|
1853
|
+
if (_0x4d5a50)
|
|
1854
|
+
return formatCheckMessages(_0x353d38[_0x45d4fe(0x229)]['filter'](_0x4010cb => !_0x4d5a50[_0x45d4fe(0x1a4)](_0x4010cb[_0x45d4fe(0x146)])));
|
|
1839
1855
|
}
|
|
1840
|
-
return formatCheckMessages(
|
|
1856
|
+
return formatCheckMessages(_0x353d38[_0x45d4fe(0x229)]);
|
|
1841
1857
|
},
|
|
1842
|
-
async 'read_history'(
|
|
1843
|
-
const
|
|
1844
|
-
return formatHistory(
|
|
1858
|
+
async 'read_history'(_0x44956b) {
|
|
1859
|
+
const _0x41b8ff = _0x2e3f85, _0x1317a9 = await _0x1090e4[_0x41b8ff(_0x1eb7aa._0x162c21)]['readHistory'](_0x44956b);
|
|
1860
|
+
return formatHistory(_0x1317a9);
|
|
1845
1861
|
},
|
|
1846
1862
|
async 'list_server'() {
|
|
1847
|
-
const
|
|
1848
|
-
return formatServerDirectory(
|
|
1863
|
+
const _0x443cc1 = await _0x1090e4['client']['listServer']();
|
|
1864
|
+
return formatServerDirectory(_0x443cc1);
|
|
1849
1865
|
},
|
|
1850
|
-
async 'list_tasks'(
|
|
1851
|
-
const
|
|
1852
|
-
let
|
|
1853
|
-
if (
|
|
1866
|
+
async 'list_tasks'(_0x519c6b) {
|
|
1867
|
+
const _0x3768c7 = _0x2e3f85, _0x2532b4 = await _0x1090e4[_0x3768c7(0x251)][_0x3768c7(0x159)](_0x519c6b);
|
|
1868
|
+
let _0x3128ed;
|
|
1869
|
+
if (_0x1090e4[_0x3768c7(0x189)] && _0x1090e4[_0x3768c7(_0x19f3b9._0x2744c6)])
|
|
1854
1870
|
try {
|
|
1855
|
-
const
|
|
1856
|
-
if (
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1859
|
-
for (const
|
|
1860
|
-
if (
|
|
1871
|
+
const _0x21613b = await fetch(_0x1090e4[_0x3768c7(0x189)] + _0x3768c7(_0x19f3b9._0x2960ee) + encodeURIComponent(_0x1090e4[_0x3768c7(0x1a9)])), _0x35512a = await _0x21613b[_0x3768c7(_0x19f3b9._0x13e78e)]();
|
|
1872
|
+
if (_0x35512a['ok']) {
|
|
1873
|
+
const _0x2a7a48 = _0x519c6b['channel'] + ':';
|
|
1874
|
+
_0x3128ed = new Set();
|
|
1875
|
+
for (const _0x2e18f4 of _0x35512a[_0x3768c7(_0x19f3b9._0xf23ca)]) {
|
|
1876
|
+
if (_0x2e18f4[_0x3768c7(0x1c1)] === _0x3768c7(_0x19f3b9._0x234499))
|
|
1861
1877
|
continue;
|
|
1862
|
-
if (
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
|
|
1878
|
+
if (_0x2e18f4[_0x3768c7(0x10a)]?.[_0x3768c7(0x117)](_0x2a7a48)) {
|
|
1879
|
+
const _0x2536c3 = _0x2e18f4['thread_target'][_0x3768c7(_0x19f3b9._0x2ed77b)](_0x2a7a48[_0x3768c7(_0x19f3b9._0x202ce5)]), _0x23e591 = _0x2532b4[_0x3768c7(_0x19f3b9._0x5ea41a)]['find'](_0x14862b => _0x14862b[_0x3768c7(0x153)]?.[_0x3768c7(0x117)](_0x2536c3) === !![]);
|
|
1880
|
+
if (_0x23e591?.['taskNumber'] != null) {
|
|
1881
|
+
_0x3128ed[_0x3768c7(_0x19f3b9._0x1d2a0a)](_0x23e591[_0x3768c7(0x222)]);
|
|
1866
1882
|
continue;
|
|
1867
1883
|
}
|
|
1868
1884
|
}
|
|
1869
|
-
if (
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1885
|
+
if (_0x2e18f4[_0x3768c7(_0x19f3b9._0x6630d7)]) {
|
|
1886
|
+
const _0x387103 = _0x2532b4[_0x3768c7(_0x19f3b9._0x5ea41a)]['find'](_0x36d619 => _0x36d619[_0x3768c7(0x1d9)] === _0x2e18f4['task_id']);
|
|
1887
|
+
_0x387103?.[_0x3768c7(_0x19f3b9._0x572545)] != null && _0x3128ed['add'](_0x387103['taskNumber']);
|
|
1872
1888
|
}
|
|
1873
1889
|
}
|
|
1874
1890
|
}
|
|
1875
1891
|
} catch {
|
|
1876
1892
|
}
|
|
1877
|
-
return formatTaskList(
|
|
1893
|
+
return formatTaskList(_0x2532b4['tasks'], _0x3128ed);
|
|
1878
1894
|
},
|
|
1879
|
-
async 'create_tasks'(
|
|
1880
|
-
const
|
|
1881
|
-
return formatCreatedTasks(
|
|
1895
|
+
async 'create_tasks'(_0x3dd250) {
|
|
1896
|
+
const _0x467905 = _0x2e3f85, _0x285589 = await _0x1090e4[_0x467905(0x251)][_0x467905(0x215)](_0x3dd250);
|
|
1897
|
+
return formatCreatedTasks(_0x285589[_0x467905(0x14d)]);
|
|
1882
1898
|
},
|
|
1883
|
-
async 'claim_tasks'(
|
|
1884
|
-
const
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
_0x2af5ef: 0x1c2,
|
|
1889
|
-
_0x3081c4: 0x20f
|
|
1890
|
-
}, _0x45e523 = _0xbae48, _0x20a279 = await _0x563b41[_0x45e523(0x199)]['claimTasks'](_0x45a50b), _0x3e1b9e = await Promise[_0x45e523(_0x37a6c8._0x512a89)](_0x20a279['results'][_0x45e523(0x29b)](async _0x2217f8 => {
|
|
1891
|
-
const _0x24240e = _0x45e523;
|
|
1892
|
-
if (!_0x2217f8[_0x24240e(_0x407ee5._0x4b7551)] || !_0x2217f8['messageId'])
|
|
1893
|
-
return _0x2217f8;
|
|
1899
|
+
async 'claim_tasks'(_0x187995) {
|
|
1900
|
+
const _0x6e57b7 = { _0x427bb4: 0x13a }, _0xc6d76b = _0x2e3f85, _0x29ac87 = await _0x1090e4['client']['claimTasks'](_0x187995), _0x2a2129 = await Promise[_0xc6d76b(0x1e0)](_0x29ac87['results'][_0xc6d76b(_0xc1400f._0x2eed48)](async _0x406946 => {
|
|
1901
|
+
const _0x2097a8 = _0xc6d76b;
|
|
1902
|
+
if (!_0x406946['success'] || !_0x406946[_0x2097a8(0x153)])
|
|
1903
|
+
return _0x406946;
|
|
1894
1904
|
try {
|
|
1895
|
-
const
|
|
1896
|
-
'channel':
|
|
1897
|
-
'messageId':
|
|
1898
|
-
'taskId':
|
|
1899
|
-
'taskNumber':
|
|
1900
|
-
'threadNumber':
|
|
1905
|
+
const _0x391b7c = await _0x7fa5fb({
|
|
1906
|
+
'channel': _0x187995[_0x2097a8(_0x6e57b7._0x427bb4)],
|
|
1907
|
+
'messageId': _0x406946['messageId'],
|
|
1908
|
+
'taskId': _0x406946[_0x2097a8(0x1d9)],
|
|
1909
|
+
'taskNumber': _0x406946[_0x2097a8(0x222)],
|
|
1910
|
+
'threadNumber': _0x406946['threadNumber']
|
|
1901
1911
|
});
|
|
1902
|
-
return
|
|
1903
|
-
...
|
|
1904
|
-
...
|
|
1905
|
-
} :
|
|
1906
|
-
} catch (
|
|
1912
|
+
return _0x391b7c ? {
|
|
1913
|
+
..._0x406946,
|
|
1914
|
+
..._0x391b7c
|
|
1915
|
+
} : _0x406946;
|
|
1916
|
+
} catch (_0x3f6b66) {
|
|
1907
1917
|
return {
|
|
1908
|
-
...
|
|
1909
|
-
'workerHandoffError':
|
|
1918
|
+
..._0x406946,
|
|
1919
|
+
'workerHandoffError': _0x3f6b66 instanceof Error ? _0x3f6b66[_0x2097a8(0x10f)] : 'worker\x20handoff\x20failed'
|
|
1910
1920
|
};
|
|
1911
1921
|
}
|
|
1912
1922
|
}));
|
|
1913
|
-
return formatClaimTaskResults(
|
|
1923
|
+
return formatClaimTaskResults(_0x2a2129);
|
|
1914
1924
|
},
|
|
1915
|
-
async 'unclaim_task'(
|
|
1916
|
-
const
|
|
1917
|
-
return formatUnclaimTaskResult(
|
|
1925
|
+
async 'unclaim_task'(_0x54a0b8) {
|
|
1926
|
+
const _0x16a39d = _0x2e3f85, _0x1bab2b = await _0x1090e4[_0x16a39d(0x251)][_0x16a39d(_0x3b7275._0x2241c6)](_0x54a0b8);
|
|
1927
|
+
return formatUnclaimTaskResult(_0x1bab2b);
|
|
1918
1928
|
},
|
|
1919
|
-
async 'update_task_status'(
|
|
1920
|
-
const
|
|
1921
|
-
return formatUpdateTaskStatusResult(
|
|
1929
|
+
async 'update_task_status'(_0x28a67e) {
|
|
1930
|
+
const _0x3fcb39 = _0x2e3f85, _0xca5c71 = await _0x1090e4[_0x3fcb39(0x251)][_0x3fcb39(_0x434db9._0x31fd0f)](_0x28a67e);
|
|
1931
|
+
return formatUpdateTaskStatusResult(_0xca5c71);
|
|
1922
1932
|
},
|
|
1923
|
-
async 'upload_file'(
|
|
1924
|
-
const
|
|
1925
|
-
sizeBytes:
|
|
1926
|
-
...
|
|
1927
|
-
} =
|
|
1928
|
-
'channel':
|
|
1929
|
-
...
|
|
1933
|
+
async 'upload_file'(_0x1cc5f1) {
|
|
1934
|
+
const _0x22741d = _0x2e3f85, _0x4de75e = await _0x1090e4[_0x22741d(0x1d4)](_0x1cc5f1['file_path']), {
|
|
1935
|
+
sizeBytes: _0x5468dc,
|
|
1936
|
+
..._0x4326b6
|
|
1937
|
+
} = _0x4de75e, _0x181783 = await _0x1090e4['client']['uploadFile']({
|
|
1938
|
+
'channel': _0x1cc5f1[_0x22741d(_0x4624ee._0x2d0c96)],
|
|
1939
|
+
..._0x4326b6
|
|
1930
1940
|
});
|
|
1931
|
-
return formatUploadResult(
|
|
1941
|
+
return formatUploadResult(_0x181783);
|
|
1932
1942
|
},
|
|
1933
|
-
async 'view_file'(
|
|
1934
|
-
const
|
|
1935
|
-
if (
|
|
1936
|
-
return formatViewFileResult(
|
|
1937
|
-
const
|
|
1938
|
-
'attachmentId':
|
|
1939
|
-
'contentType':
|
|
1940
|
-
'data':
|
|
1941
|
-
'originalFilename':
|
|
1943
|
+
async 'view_file'(_0x5530b3) {
|
|
1944
|
+
const _0x10262a = _0x2e3f85, _0x5b06ea = await _0x1090e4[_0x10262a(0x1bc)][_0x10262a(0x21a)](_0x5530b3[_0x10262a(_0x581463._0x3eeec0)]);
|
|
1945
|
+
if (_0x5b06ea)
|
|
1946
|
+
return formatViewFileResult(_0x5b06ea, !![]);
|
|
1947
|
+
const _0x3b9504 = await _0x1090e4[_0x10262a(_0x581463._0x34323d)][_0x10262a(0x20b)](_0x5530b3[_0x10262a(0x168)]), _0x4a7a32 = await _0x1090e4[_0x10262a(_0x581463._0x3251c1)][_0x10262a(_0x581463._0x152b9a)]({
|
|
1948
|
+
'attachmentId': _0x5530b3[_0x10262a(0x168)],
|
|
1949
|
+
'contentType': _0x3b9504[_0x10262a(0xf8)],
|
|
1950
|
+
'data': _0x3b9504[_0x10262a(0x17d)],
|
|
1951
|
+
'originalFilename': _0x3b9504['originalFilename']
|
|
1942
1952
|
});
|
|
1943
|
-
return formatViewFileResult(
|
|
1953
|
+
return formatViewFileResult(_0x4a7a32, ![]);
|
|
1944
1954
|
},
|
|
1945
|
-
async 'get_worker_status'(
|
|
1946
|
-
const
|
|
1947
|
-
if (!
|
|
1948
|
-
return
|
|
1949
|
-
const
|
|
1950
|
-
if (!
|
|
1951
|
-
return
|
|
1952
|
-
return
|
|
1955
|
+
async 'get_worker_status'(_0x904b37) {
|
|
1956
|
+
const _0x393659 = _0x2e3f85;
|
|
1957
|
+
if (!_0x1090e4[_0x393659(0x189)])
|
|
1958
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1959
|
+
const _0x387209 = await fetch(_0x1090e4[_0x393659(0x189)] + _0x393659(0x20e) + encodeURIComponent(_0x904b37[_0x393659(0x15b)])), _0x4fd361 = await _0x387209['json']();
|
|
1960
|
+
if (!_0x4fd361['ok'])
|
|
1961
|
+
return _0x393659(_0x43e96d._0x467130) + _0x904b37[_0x393659(0x15b)] + _0x393659(0x133);
|
|
1962
|
+
return _0x393659(_0x43e96d._0x28798a) + _0x904b37[_0x393659(_0x43e96d._0x2eb11e)] + _0x393659(0x194) + _0x4fd361['status'];
|
|
1953
1963
|
},
|
|
1954
|
-
async 'get_worker_result'(
|
|
1955
|
-
const
|
|
1956
|
-
if (!
|
|
1957
|
-
return
|
|
1958
|
-
const
|
|
1959
|
-
if (!
|
|
1960
|
-
return
|
|
1961
|
-
return JSON[
|
|
1964
|
+
async 'get_worker_result'(_0x497837) {
|
|
1965
|
+
const _0x4fcb4d = _0x2e3f85;
|
|
1966
|
+
if (!_0x1090e4['daemonLocalUrl'])
|
|
1967
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1968
|
+
const _0x48aa14 = await fetch(_0x1090e4[_0x4fcb4d(0x189)] + _0x4fcb4d(0x21f) + encodeURIComponent(_0x497837[_0x4fcb4d(0x15b)])), _0x3d03b7 = await _0x48aa14[_0x4fcb4d(0x161)]();
|
|
1969
|
+
if (!_0x3d03b7['resume_packet'])
|
|
1970
|
+
return _0x4fcb4d(0x1cd) + _0x497837[_0x4fcb4d(_0x251533._0x26fedd)] + '\x22';
|
|
1971
|
+
return JSON['stringify'](_0x3d03b7[_0x4fcb4d(0x1a0)], null, 0x2);
|
|
1962
1972
|
},
|
|
1963
|
-
async 'finish_worker'(
|
|
1964
|
-
const
|
|
1965
|
-
if (!
|
|
1966
|
-
return
|
|
1967
|
-
const
|
|
1968
|
-
'method':
|
|
1969
|
-
'headers': { 'Content-Type':
|
|
1970
|
-
'body': JSON[
|
|
1971
|
-
'work_key':
|
|
1973
|
+
async 'finish_worker'(_0x8cd561) {
|
|
1974
|
+
const _0x5e0fc7 = _0x2e3f85;
|
|
1975
|
+
if (!_0x1090e4[_0x5e0fc7(_0x4700f8._0x1e58f4)])
|
|
1976
|
+
return _0x5e0fc7(0x1ae);
|
|
1977
|
+
const _0x387369 = await fetch(_0x1090e4[_0x5e0fc7(0x189)] + _0x5e0fc7(_0x4700f8._0x53d3fe), {
|
|
1978
|
+
'method': _0x5e0fc7(_0x4700f8._0x1dde71),
|
|
1979
|
+
'headers': { 'Content-Type': _0x5e0fc7(0x182) },
|
|
1980
|
+
'body': JSON[_0x5e0fc7(0x1ac)]({
|
|
1981
|
+
'work_key': _0x8cd561[_0x5e0fc7(0x15b)],
|
|
1972
1982
|
'resume_packet': {
|
|
1973
1983
|
'objective': '',
|
|
1974
|
-
'result':
|
|
1975
|
-
'summary':
|
|
1976
|
-
'decisions':
|
|
1977
|
-
'filesChanged':
|
|
1978
|
-
'openIssues':
|
|
1979
|
-
'nextSteps':
|
|
1984
|
+
'result': _0x8cd561[_0x5e0fc7(_0x4700f8._0x94d0ad)],
|
|
1985
|
+
'summary': _0x8cd561[_0x5e0fc7(0x1f7)],
|
|
1986
|
+
'decisions': _0x8cd561[_0x5e0fc7(0x181)] ?? [],
|
|
1987
|
+
'filesChanged': _0x8cd561['files_changed'] ?? [],
|
|
1988
|
+
'openIssues': _0x8cd561[_0x5e0fc7(0x1c3)] ?? [],
|
|
1989
|
+
'nextSteps': _0x8cd561['next_steps'] ?? []
|
|
1980
1990
|
}
|
|
1981
1991
|
})
|
|
1982
|
-
}),
|
|
1983
|
-
if (!
|
|
1984
|
-
throw new Error(
|
|
1985
|
-
return
|
|
1992
|
+
}), _0x36e4af = await _0x387369[_0x5e0fc7(_0x4700f8._0x2023be)]();
|
|
1993
|
+
if (!_0x36e4af['ok'])
|
|
1994
|
+
throw new Error(_0x36e4af[_0x5e0fc7(_0x4700f8._0x551abd)] ?? _0x5e0fc7(_0x4700f8._0x2f68eb));
|
|
1995
|
+
return _0x5e0fc7(0x225) + _0x8cd561[_0x5e0fc7(0x15b)] + _0x5e0fc7(_0x4700f8._0x2925ec) + _0x8cd561['result'];
|
|
1986
1996
|
},
|
|
1987
|
-
async 'mark_waiting_input'(
|
|
1988
|
-
const
|
|
1989
|
-
if (!
|
|
1990
|
-
return
|
|
1991
|
-
const
|
|
1992
|
-
'method':
|
|
1993
|
-
'headers': { 'Content-Type':
|
|
1997
|
+
async 'mark_waiting_input'(_0x245fcc) {
|
|
1998
|
+
const _0x64631e = _0x2e3f85;
|
|
1999
|
+
if (!_0x1090e4[_0x64631e(_0x212542._0x12e5eb)] || !_0x1090e4['agentId'])
|
|
2000
|
+
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
2001
|
+
const _0xabc72d = await fetch(_0x1090e4[_0x64631e(_0x212542._0x12e5eb)] + _0x64631e(_0x212542._0x5d690a), {
|
|
2002
|
+
'method': _0x64631e(_0x212542._0x5605f9),
|
|
2003
|
+
'headers': { 'Content-Type': _0x64631e(0x182) },
|
|
1994
2004
|
'body': JSON['stringify']({
|
|
1995
|
-
'work_key':
|
|
1996
|
-
'agent_id':
|
|
2005
|
+
'work_key': _0x245fcc[_0x64631e(_0x212542._0x3c18f1)],
|
|
2006
|
+
'agent_id': _0x1090e4['agentId']
|
|
1997
2007
|
})
|
|
1998
|
-
}),
|
|
1999
|
-
if (!
|
|
2000
|
-
throw new Error(
|
|
2001
|
-
return
|
|
2008
|
+
}), _0x36abc5 = await _0xabc72d[_0x64631e(0x161)]();
|
|
2009
|
+
if (!_0x36abc5['ok'])
|
|
2010
|
+
throw new Error(_0x36abc5[_0x64631e(_0x212542._0x41d838)] ?? 'mark_waiting_input\x20failed');
|
|
2011
|
+
return _0x64631e(0x225) + _0x245fcc[_0x64631e(_0x212542._0x4a793a)] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
2002
2012
|
},
|
|
2003
|
-
async 'escalate_to_main'(
|
|
2004
|
-
const
|
|
2005
|
-
if (!
|
|
2006
|
-
return
|
|
2007
|
-
const
|
|
2008
|
-
'method':
|
|
2009
|
-
'headers': { 'Content-Type':
|
|
2010
|
-
'body': JSON[
|
|
2011
|
-
'work_key':
|
|
2012
|
-
'reason':
|
|
2013
|
+
async 'escalate_to_main'(_0x1d49d2) {
|
|
2014
|
+
const _0x3defd6 = _0x2e3f85;
|
|
2015
|
+
if (!_0x1090e4[_0x3defd6(0x189)])
|
|
2016
|
+
return _0x3defd6(0x1ae);
|
|
2017
|
+
const _0x5c65a8 = await fetch(_0x1090e4[_0x3defd6(0x189)] + _0x3defd6(0x25d), {
|
|
2018
|
+
'method': 'POST',
|
|
2019
|
+
'headers': { 'Content-Type': _0x3defd6(0x182) },
|
|
2020
|
+
'body': JSON[_0x3defd6(_0x4355ac._0x41ee43)]({
|
|
2021
|
+
'work_key': _0x1d49d2[_0x3defd6(_0x4355ac._0x10ef13)],
|
|
2022
|
+
'reason': _0x1d49d2[_0x3defd6(_0x4355ac._0x14e854)]
|
|
2013
2023
|
})
|
|
2014
|
-
}),
|
|
2015
|
-
if (!
|
|
2016
|
-
throw new Error(
|
|
2017
|
-
return
|
|
2024
|
+
}), _0xc6e854 = await _0x5c65a8[_0x3defd6(_0x4355ac._0x4d5b34)]();
|
|
2025
|
+
if (!_0xc6e854['ok'])
|
|
2026
|
+
throw new Error(_0xc6e854[_0x3defd6(_0x4355ac._0xc6ee43)] ?? _0x3defd6(_0x4355ac._0x55a316));
|
|
2027
|
+
return _0x3defd6(_0x4355ac._0x44534d) + _0x1d49d2[_0x3defd6(_0x4355ac._0x14e854)];
|
|
2018
2028
|
}
|
|
2019
2029
|
};
|
|
2020
2030
|
}
|
|
2021
|
-
function textResult(
|
|
2022
|
-
const
|
|
2031
|
+
function textResult(_0x1ccf29, _0x57ca81 = ![]) {
|
|
2032
|
+
const _0xbd0f15 = _0x42cca9;
|
|
2023
2033
|
return {
|
|
2024
2034
|
'content': [{
|
|
2025
|
-
'type':
|
|
2026
|
-
'text':
|
|
2035
|
+
'type': _0xbd0f15(0x22b),
|
|
2036
|
+
'text': _0x1ccf29
|
|
2027
2037
|
}],
|
|
2028
|
-
...
|
|
2038
|
+
..._0x57ca81 ? { 'isError': !![] } : {}
|
|
2029
2039
|
};
|
|
2030
2040
|
}
|
|
2031
|
-
async function registerChatBridgeTools(
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2041
|
+
async function registerChatBridgeTools(_0x3fdf8f, _0x15684e, _0x5767e1) {
|
|
2042
|
+
const _0x21a81b = {
|
|
2043
|
+
_0x3ca703: 0x1b4,
|
|
2044
|
+
_0x243e25: 0x1f9,
|
|
2045
|
+
_0xd004ee: 0x154,
|
|
2046
|
+
_0x58478d: 0x1cc,
|
|
2047
|
+
_0x3c1802: 0x21e,
|
|
2048
|
+
_0x102f23: 0x1f9,
|
|
2049
|
+
_0x2d5a58: 0x119,
|
|
2050
|
+
_0x437ff5: 0x1f5,
|
|
2051
|
+
_0x2d0565: 0x1f9,
|
|
2052
|
+
_0x432fa3: 0x1e3,
|
|
2053
|
+
_0x26f9b7: 0x1fd,
|
|
2054
|
+
_0x4e6b42: 0x14a,
|
|
2055
|
+
_0x4f823f: 0x1f9,
|
|
2056
|
+
_0x431cc6: 0x1f9,
|
|
2057
|
+
_0x2ebc39: 0x154,
|
|
2058
|
+
_0x280004: 0x234,
|
|
2059
|
+
_0x4ffd82: 0x193,
|
|
2060
|
+
_0x3bfbef: 0x1de,
|
|
2061
|
+
_0xac41a1: 0x119,
|
|
2062
|
+
_0x8e5834: 0x1f9,
|
|
2063
|
+
_0x3044a9: 0x1e4,
|
|
2064
|
+
_0x4c4b24: 0x102,
|
|
2065
|
+
_0xa67fa4: 0x268,
|
|
2066
|
+
_0xb3d99d: 0x173,
|
|
2067
|
+
_0x4920f2: 0x268,
|
|
2068
|
+
_0x3fa7f2: 0x119,
|
|
2069
|
+
_0x4af857: 0x1e3,
|
|
2070
|
+
_0x2948bd: 0x1f9,
|
|
2071
|
+
_0x2be32f: 0x122,
|
|
2072
|
+
_0x7b9a0d: 0x1f9,
|
|
2073
|
+
_0x1e1afc: 0x1b7,
|
|
2074
|
+
_0xa1556b: 0x1f4,
|
|
2075
|
+
_0x146313: 0x188,
|
|
2076
|
+
_0x2bffb7: 0x196,
|
|
2077
|
+
_0xc18370: 0x1b1,
|
|
2078
|
+
_0x202702: 0x14f,
|
|
2079
|
+
_0x4f98d2: 0x154,
|
|
2080
|
+
_0x41090f: 0x14f,
|
|
2081
|
+
_0x30a248: 0x1f9,
|
|
2082
|
+
_0x2dfc15: 0x24c,
|
|
2083
|
+
_0x2d0440: 0x17e
|
|
2084
|
+
}, _0x2a2df2 = {
|
|
2085
|
+
_0x4ede1c: 0x10f,
|
|
2086
|
+
_0x5072e8: 0xf1
|
|
2087
|
+
}, _0x20b254 = {
|
|
2088
|
+
_0x56f138: 0x188,
|
|
2089
|
+
_0x3694a1: 0x10f
|
|
2090
|
+
}, _0x50713b = {
|
|
2091
|
+
_0x1c7be6: 0x10f,
|
|
2092
|
+
_0x382c5d: 0x125
|
|
2093
|
+
}, _0x3efd0c = {
|
|
2094
|
+
_0xfad0be: 0x10f,
|
|
2095
|
+
_0x5f1719: 0xf6
|
|
2096
|
+
}, _0x588aa7 = { _0x119774: 0x138 }, _0x2331d0 = { _0x25a889: 0x18a }, _0x3bc5e5 = { _0xbdee20: 0x10f }, _0x26361c = {
|
|
2097
|
+
_0x14568d: 0x1f5,
|
|
2098
|
+
_0x44b817: 0x10f,
|
|
2099
|
+
_0x3f783b: 0x15f
|
|
2100
|
+
}, _0x53d3a6 = {
|
|
2101
|
+
_0x3768a3: 0x1be,
|
|
2102
|
+
_0x4a2bfa: 0x10f,
|
|
2103
|
+
_0x16a517: 0x115
|
|
2104
|
+
}, _0x58846c = { _0xf3de66: 0x10f }, _0x68f7f5 = { _0x2c3234: 0x10f }, _0x42d6e8 = _0x42cca9, {z: _0x1fd4e9} = await import('zod');
|
|
2105
|
+
_0x3fdf8f['tool'](_0x42d6e8(0x25a), _0x42d6e8(_0x21a81b._0x3ca703), {
|
|
2106
|
+
'target': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x243e25)](),
|
|
2107
|
+
'content': _0x1fd4e9['string'](),
|
|
2108
|
+
'attachment_ids': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x243e25)]())[_0x42d6e8(_0x21a81b._0xd004ee)](),
|
|
2109
|
+
'visibility': _0x1fd4e9['enum']([
|
|
2110
|
+
_0x42d6e8(0x243),
|
|
2111
|
+
_0x42d6e8(_0x21a81b._0x58478d)
|
|
2112
|
+
])[_0x42d6e8(0x154)]()[_0x42d6e8(0x141)](_0x42d6e8(0x244))
|
|
2113
|
+
}, async _0x4a6544 => {
|
|
2114
|
+
const _0x204642 = _0x42d6e8;
|
|
2096
2115
|
try {
|
|
2097
|
-
return textResult(await
|
|
2098
|
-
} catch (
|
|
2099
|
-
return textResult(
|
|
2116
|
+
return textResult(await _0x15684e[_0x204642(0x25a)](_0x4a6544));
|
|
2117
|
+
} catch (_0x686b18) {
|
|
2118
|
+
return textResult(_0x686b18 instanceof Error ? _0x686b18[_0x204642(_0x68f7f5._0x2c3234)] : _0x204642(0x104), !![]);
|
|
2100
2119
|
}
|
|
2101
|
-
}),
|
|
2102
|
-
const
|
|
2120
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0x203), _0x42d6e8(0x140), {}, async () => {
|
|
2121
|
+
const _0x193d75 = _0x42d6e8;
|
|
2103
2122
|
try {
|
|
2104
|
-
return textResult(await
|
|
2105
|
-
} catch (
|
|
2106
|
-
return textResult(
|
|
2123
|
+
return textResult(await _0x15684e[_0x193d75(0x203)]());
|
|
2124
|
+
} catch (_0x29d56f) {
|
|
2125
|
+
return textResult(_0x29d56f instanceof Error ? _0x29d56f[_0x193d75(_0x58846c._0xf3de66)] : _0x193d75(0x20a), !![]);
|
|
2107
2126
|
}
|
|
2108
|
-
}),
|
|
2109
|
-
'channel':
|
|
2110
|
-
'limit':
|
|
2111
|
-
'before':
|
|
2112
|
-
'after':
|
|
2113
|
-
}, async
|
|
2114
|
-
const
|
|
2127
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0x1be), _0x42d6e8(_0x21a81b._0x3c1802), {
|
|
2128
|
+
'channel': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x102f23)](),
|
|
2129
|
+
'limit': _0x1fd4e9[_0x42d6e8(0x119)]()[_0x42d6e8(_0x21a81b._0xd004ee)](),
|
|
2130
|
+
'before': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d5a58)]()[_0x42d6e8(0x154)](),
|
|
2131
|
+
'after': _0x1fd4e9[_0x42d6e8(0x119)]()[_0x42d6e8(_0x21a81b._0xd004ee)]()
|
|
2132
|
+
}, async _0x7bb373 => {
|
|
2133
|
+
const _0x3b0228 = _0x42d6e8;
|
|
2115
2134
|
try {
|
|
2116
|
-
return textResult(await
|
|
2117
|
-
} catch (
|
|
2118
|
-
return textResult(
|
|
2135
|
+
return textResult(await _0x15684e[_0x3b0228(_0x53d3a6._0x3768a3)](_0x7bb373));
|
|
2136
|
+
} catch (_0x4f7d7f) {
|
|
2137
|
+
return textResult(_0x4f7d7f instanceof Error ? _0x4f7d7f[_0x3b0228(_0x53d3a6._0x4a2bfa)] : _0x3b0228(_0x53d3a6._0x16a517), !![]);
|
|
2119
2138
|
}
|
|
2120
|
-
}),
|
|
2121
|
-
const
|
|
2139
|
+
}), _0x3fdf8f['tool'](_0x42d6e8(_0x21a81b._0x437ff5), _0x42d6e8(0x180), {}, async () => {
|
|
2140
|
+
const _0x5812f0 = _0x42d6e8;
|
|
2122
2141
|
try {
|
|
2123
|
-
return textResult(await
|
|
2124
|
-
} catch (
|
|
2125
|
-
return textResult(
|
|
2142
|
+
return textResult(await _0x15684e[_0x5812f0(_0x26361c._0x14568d)]());
|
|
2143
|
+
} catch (_0x362ecc) {
|
|
2144
|
+
return textResult(_0x362ecc instanceof Error ? _0x362ecc[_0x5812f0(_0x26361c._0x44b817)] : _0x5812f0(_0x26361c._0x3f783b), !![]);
|
|
2126
2145
|
}
|
|
2127
|
-
}),
|
|
2128
|
-
'channel':
|
|
2129
|
-
'status':
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
])[
|
|
2135
|
-
}, async
|
|
2136
|
-
const _0x1bda22 = _0xda1343;
|
|
2146
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0xff), _0x42d6e8(0x218), {
|
|
2147
|
+
'channel': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d0565)](),
|
|
2148
|
+
'status': _0x1fd4e9[_0x42d6e8(0x196)]([
|
|
2149
|
+
_0x42d6e8(_0x21a81b._0x432fa3),
|
|
2150
|
+
_0x42d6e8(_0x21a81b._0x26f9b7),
|
|
2151
|
+
_0x42d6e8(0x217),
|
|
2152
|
+
'done'
|
|
2153
|
+
])['optional']()
|
|
2154
|
+
}, async _0x5f32b2 => {
|
|
2137
2155
|
try {
|
|
2138
|
-
return textResult(await
|
|
2139
|
-
} catch (
|
|
2140
|
-
return textResult(
|
|
2156
|
+
return textResult(await _0x15684e['list_tasks'](_0x5f32b2));
|
|
2157
|
+
} catch (_0xe7ed88) {
|
|
2158
|
+
return textResult(_0xe7ed88 instanceof Error ? _0xe7ed88['message'] : 'list_tasks\x20failed', !![]);
|
|
2141
2159
|
}
|
|
2142
|
-
}),
|
|
2143
|
-
'channel':
|
|
2144
|
-
'idempotency_key':
|
|
2145
|
-
'tasks':
|
|
2146
|
-
'title':
|
|
2147
|
-
'description':
|
|
2148
|
-
'priority':
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
])[
|
|
2160
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(_0x21a81b._0x4e6b42), _0x42d6e8(0x1d7), {
|
|
2161
|
+
'channel': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x4f823f)](),
|
|
2162
|
+
'idempotency_key': _0x1fd4e9['string']()[_0x42d6e8(0x154)](),
|
|
2163
|
+
'tasks': _0x1fd4e9['array'](_0x1fd4e9[_0x42d6e8(0x1e4)]({
|
|
2164
|
+
'title': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x102f23)](),
|
|
2165
|
+
'description': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x431cc6)]()[_0x42d6e8(_0x21a81b._0x2ebc39)](),
|
|
2166
|
+
'priority': _0x1fd4e9[_0x42d6e8(0x196)]([
|
|
2167
|
+
_0x42d6e8(_0x21a81b._0x280004),
|
|
2168
|
+
'medium',
|
|
2169
|
+
_0x42d6e8(0x1aa),
|
|
2170
|
+
_0x42d6e8(_0x21a81b._0x4ffd82)
|
|
2171
|
+
])[_0x42d6e8(_0x21a81b._0x2ebc39)]()
|
|
2154
2172
|
}))
|
|
2155
|
-
}, async
|
|
2173
|
+
}, async _0x516a62 => {
|
|
2174
|
+
const _0x38a251 = _0x42d6e8;
|
|
2156
2175
|
try {
|
|
2157
|
-
return textResult(await
|
|
2158
|
-
} catch (
|
|
2159
|
-
return textResult(
|
|
2176
|
+
return textResult(await _0x15684e[_0x38a251(0x14a)](_0x516a62));
|
|
2177
|
+
} catch (_0x1caaec) {
|
|
2178
|
+
return textResult(_0x1caaec instanceof Error ? _0x1caaec[_0x38a251(_0x3bc5e5._0xbdee20)] : 'create_tasks\x20failed', !![]);
|
|
2160
2179
|
}
|
|
2161
|
-
}),
|
|
2162
|
-
'channel':
|
|
2163
|
-
'task_numbers':
|
|
2164
|
-
'message_ids':
|
|
2165
|
-
'evidence':
|
|
2166
|
-
'create_thread':
|
|
2167
|
-
'create_task':
|
|
2168
|
-
}))[
|
|
2169
|
-
'idempotency_key':
|
|
2170
|
-
}, async
|
|
2171
|
-
const
|
|
2180
|
+
}), _0x3fdf8f['tool'](_0x42d6e8(_0x21a81b._0x3bfbef), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.', {
|
|
2181
|
+
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2182
|
+
'task_numbers': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0xac41a1)]())[_0x42d6e8(0x154)](),
|
|
2183
|
+
'message_ids': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9['string']())['optional'](),
|
|
2184
|
+
'evidence': _0x1fd4e9['record'](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x8e5834)](), _0x1fd4e9[_0x42d6e8(_0x21a81b._0x3044a9)]({
|
|
2185
|
+
'create_thread': _0x1fd4e9[_0x42d6e8(0x102)]()[_0x42d6e8(_0x21a81b._0xd004ee)](),
|
|
2186
|
+
'create_task': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x4c4b24)]()[_0x42d6e8(_0x21a81b._0xd004ee)]()
|
|
2187
|
+
}))['optional'](),
|
|
2188
|
+
'idempotency_key': _0x1fd4e9[_0x42d6e8(0x1f9)]()[_0x42d6e8(0x154)]()
|
|
2189
|
+
}, async _0x44b134 => {
|
|
2190
|
+
const _0x11386d = _0x42d6e8;
|
|
2172
2191
|
try {
|
|
2173
|
-
return textResult(await
|
|
2174
|
-
} catch (
|
|
2175
|
-
return textResult(
|
|
2192
|
+
return textResult(await _0x15684e[_0x11386d(0x1de)](_0x44b134));
|
|
2193
|
+
} catch (_0x523666) {
|
|
2194
|
+
return textResult(_0x523666 instanceof Error ? _0x523666[_0x11386d(0x10f)] : _0x11386d(0x23b), !![]);
|
|
2176
2195
|
}
|
|
2177
|
-
}),
|
|
2178
|
-
'channel':
|
|
2179
|
-
'task_number':
|
|
2180
|
-
'idempotency_key':
|
|
2181
|
-
}, async
|
|
2182
|
-
const
|
|
2196
|
+
}), _0x3fdf8f[_0x42d6e8(_0x21a81b._0xa67fa4)](_0x42d6e8(0x18a), _0x42d6e8(_0x21a81b._0xb3d99d), {
|
|
2197
|
+
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2198
|
+
'task_number': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d5a58)](),
|
|
2199
|
+
'idempotency_key': _0x1fd4e9[_0x42d6e8(0x1f9)]()['optional']()
|
|
2200
|
+
}, async _0x57007e => {
|
|
2201
|
+
const _0x4734f4 = _0x42d6e8;
|
|
2183
2202
|
try {
|
|
2184
|
-
return textResult(await
|
|
2185
|
-
} catch (
|
|
2186
|
-
return textResult(
|
|
2203
|
+
return textResult(await _0x15684e[_0x4734f4(_0x2331d0._0x25a889)](_0x57007e));
|
|
2204
|
+
} catch (_0x17c2e5) {
|
|
2205
|
+
return textResult(_0x17c2e5 instanceof Error ? _0x17c2e5['message'] : _0x4734f4(0x25e), !![]);
|
|
2187
2206
|
}
|
|
2188
|
-
}),
|
|
2189
|
-
'channel':
|
|
2190
|
-
'task_number':
|
|
2191
|
-
'status':
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2207
|
+
}), _0x3fdf8f[_0x42d6e8(_0x21a81b._0x4920f2)](_0x42d6e8(0x1db), _0x42d6e8(0x199), {
|
|
2208
|
+
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2209
|
+
'task_number': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x3fa7f2)](),
|
|
2210
|
+
'status': _0x1fd4e9[_0x42d6e8(0x196)]([
|
|
2211
|
+
_0x42d6e8(_0x21a81b._0x4af857),
|
|
2212
|
+
_0x42d6e8(0x1fd),
|
|
2213
|
+
'in_review',
|
|
2214
|
+
'done'
|
|
2196
2215
|
]),
|
|
2197
|
-
'idempotency_key':
|
|
2198
|
-
}, async
|
|
2199
|
-
const
|
|
2216
|
+
'idempotency_key': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2948bd)]()[_0x42d6e8(0x154)]()
|
|
2217
|
+
}, async _0x3ee6a6 => {
|
|
2218
|
+
const _0x1fd929 = _0x42d6e8;
|
|
2200
2219
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2220
|
+
return textResult(await _0x15684e[_0x1fd929(0x1db)](_0x3ee6a6));
|
|
2221
|
+
} catch (_0x2b58c1) {
|
|
2222
|
+
return textResult(_0x2b58c1 instanceof Error ? _0x2b58c1[_0x1fd929(0x10f)] : 'update_task_status\x20failed', !![]);
|
|
2204
2223
|
}
|
|
2205
|
-
}),
|
|
2206
|
-
'channel':
|
|
2207
|
-
'file_path':
|
|
2208
|
-
}, async
|
|
2209
|
-
const
|
|
2224
|
+
}), _0x3fdf8f['tool']('upload_file', _0x42d6e8(_0x21a81b._0x2be32f), {
|
|
2225
|
+
'channel': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2226
|
+
'file_path': _0x1fd4e9['string']()
|
|
2227
|
+
}, async _0x285286 => {
|
|
2228
|
+
const _0x122775 = _0x42d6e8;
|
|
2210
2229
|
try {
|
|
2211
|
-
return textResult(await
|
|
2212
|
-
} catch (
|
|
2213
|
-
return textResult(
|
|
2230
|
+
return textResult(await _0x15684e[_0x122775(0x267)](_0x285286));
|
|
2231
|
+
} catch (_0x3fa313) {
|
|
2232
|
+
return textResult(_0x3fa313 instanceof Error ? _0x3fa313[_0x122775(0x10f)] : _0x122775(_0x588aa7._0x119774), !![]);
|
|
2214
2233
|
}
|
|
2215
|
-
}),
|
|
2216
|
-
const
|
|
2234
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)]('view_file', 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x7b9a0d)]() }, async _0x1c59e4 => {
|
|
2235
|
+
const _0x8ac4f9 = _0x42d6e8;
|
|
2217
2236
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2237
|
+
return textResult(await _0x15684e['view_file'](_0x1c59e4));
|
|
2238
|
+
} catch (_0x481a49) {
|
|
2239
|
+
return textResult(_0x481a49 instanceof Error ? _0x481a49[_0x8ac4f9(_0x3efd0c._0xfad0be)] : _0x8ac4f9(_0x3efd0c._0x5f1719), !![]);
|
|
2221
2240
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
const
|
|
2241
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)]('get_worker_status', _0x42d6e8(_0x21a81b._0x1e1afc), { 'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)]() }, async _0xef7902 => {
|
|
2242
|
+
const _0xed2a53 = _0x42d6e8;
|
|
2224
2243
|
try {
|
|
2225
|
-
return textResult(await
|
|
2226
|
-
} catch (
|
|
2227
|
-
return textResult(
|
|
2244
|
+
return textResult(await _0x15684e[_0xed2a53(0x1ee)](_0xef7902));
|
|
2245
|
+
} catch (_0x57f35b) {
|
|
2246
|
+
return textResult(_0x57f35b instanceof Error ? _0x57f35b[_0xed2a53(_0x50713b._0x1c7be6)] : _0xed2a53(_0x50713b._0x382c5d), !![]);
|
|
2228
2247
|
}
|
|
2229
|
-
}),
|
|
2230
|
-
const
|
|
2248
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(_0x21a81b._0xa1556b), _0x42d6e8(0x1d1), { 'work_key': _0x1fd4e9['string']() }, async _0x577f04 => {
|
|
2249
|
+
const _0x3465d2 = _0x42d6e8;
|
|
2231
2250
|
try {
|
|
2232
|
-
return textResult(await
|
|
2233
|
-
} catch (
|
|
2234
|
-
return textResult(
|
|
2251
|
+
return textResult(await _0x15684e['get_worker_result'](_0x577f04));
|
|
2252
|
+
} catch (_0x8d7810) {
|
|
2253
|
+
return textResult(_0x8d7810 instanceof Error ? _0x8d7810[_0x3465d2(0x10f)] : _0x3465d2(0x162), !![]);
|
|
2235
2254
|
}
|
|
2236
|
-
}),
|
|
2237
|
-
'work_key':
|
|
2238
|
-
'result':
|
|
2239
|
-
|
|
2240
|
-
|
|
2255
|
+
}), _0x3fdf8f[_0x42d6e8(_0x21a81b._0x4920f2)](_0x42d6e8(_0x21a81b._0x146313), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
2256
|
+
'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2257
|
+
'result': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x2bffb7)]([
|
|
2258
|
+
_0x42d6e8(0xfd),
|
|
2259
|
+
_0x42d6e8(_0x21a81b._0xc18370),
|
|
2241
2260
|
'failed'
|
|
2242
2261
|
]),
|
|
2243
|
-
'summary':
|
|
2244
|
-
'decisions':
|
|
2245
|
-
'files_changed':
|
|
2246
|
-
'open_issues':
|
|
2247
|
-
'next_steps':
|
|
2248
|
-
}, async
|
|
2249
|
-
const
|
|
2262
|
+
'summary': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x8e5834)](),
|
|
2263
|
+
'decisions': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9['string']())['optional'](),
|
|
2264
|
+
'files_changed': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x202702)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x2d0565)]())[_0x42d6e8(_0x21a81b._0x4f98d2)](),
|
|
2265
|
+
'open_issues': _0x1fd4e9[_0x42d6e8(_0x21a81b._0x41090f)](_0x1fd4e9['string']())[_0x42d6e8(0x154)](),
|
|
2266
|
+
'next_steps': _0x1fd4e9[_0x42d6e8(0x14f)](_0x1fd4e9[_0x42d6e8(_0x21a81b._0x30a248)]())['optional']()
|
|
2267
|
+
}, async _0x3775a0 => {
|
|
2268
|
+
const _0x68347 = _0x42d6e8;
|
|
2250
2269
|
try {
|
|
2251
|
-
return textResult(await
|
|
2252
|
-
} catch (
|
|
2253
|
-
return textResult(
|
|
2270
|
+
return textResult(await _0x15684e[_0x68347(_0x20b254._0x56f138)](_0x3775a0));
|
|
2271
|
+
} catch (_0x2e87b6) {
|
|
2272
|
+
return textResult(_0x2e87b6 instanceof Error ? _0x2e87b6[_0x68347(_0x20b254._0x3694a1)] : 'finish_worker\x20failed', !![]);
|
|
2254
2273
|
}
|
|
2255
|
-
}),
|
|
2256
|
-
'work_key':
|
|
2257
|
-
'reason':
|
|
2258
|
-
}, async
|
|
2259
|
-
const
|
|
2274
|
+
}), _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(0x26c), _0x42d6e8(0x21b), {
|
|
2275
|
+
'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)](),
|
|
2276
|
+
'reason': _0x1fd4e9['string']()
|
|
2277
|
+
}, async _0x2b54f2 => {
|
|
2278
|
+
const _0x5b7be9 = _0x42d6e8;
|
|
2260
2279
|
try {
|
|
2261
|
-
return textResult(await
|
|
2262
|
-
} catch (
|
|
2263
|
-
return textResult(
|
|
2280
|
+
return textResult(await _0x15684e['escalate_to_main'](_0x2b54f2));
|
|
2281
|
+
} catch (_0x507520) {
|
|
2282
|
+
return textResult(_0x507520 instanceof Error ? _0x507520['message'] : _0x5b7be9(0x15a), !![]);
|
|
2264
2283
|
}
|
|
2265
|
-
}),
|
|
2266
|
-
const
|
|
2284
|
+
}), _0x5767e1?.[_0x42d6e8(_0x21a81b._0x2dfc15)] && _0x3fdf8f[_0x42d6e8(0x268)](_0x42d6e8(_0x21a81b._0x2d0440), _0x42d6e8(0x145), { 'work_key': _0x1fd4e9[_0x42d6e8(0x1f9)]() }, async _0x5ec21f => {
|
|
2285
|
+
const _0x37f678 = _0x42d6e8;
|
|
2267
2286
|
try {
|
|
2268
|
-
return textResult(await
|
|
2269
|
-
} catch (
|
|
2270
|
-
return textResult(
|
|
2287
|
+
return textResult(await _0x15684e['mark_waiting_input'](_0x5ec21f));
|
|
2288
|
+
} catch (_0x577373) {
|
|
2289
|
+
return textResult(_0x577373 instanceof Error ? _0x577373[_0x37f678(_0x2a2df2._0x4ede1c)] : _0x37f678(_0x2a2df2._0x5072e8), !![]);
|
|
2271
2290
|
}
|
|
2272
2291
|
});
|
|
2273
2292
|
}
|
|
2274
|
-
async function createChatBridgeServer(
|
|
2275
|
-
const
|
|
2276
|
-
'name':
|
|
2277
|
-
'version':
|
|
2278
|
-
}),
|
|
2279
|
-
return await registerChatBridgeTools(
|
|
2280
|
-
'handlers':
|
|
2281
|
-
'server':
|
|
2293
|
+
async function createChatBridgeServer(_0x5ebfd3) {
|
|
2294
|
+
const _0x2577f2 = { _0x5e2163: 0x255 }, _0x58d8f6 = _0x42cca9, {McpServer: _0x1eb665} = await import(_0x58d8f6(_0x2577f2._0x5e2163)), _0x88ca52 = new _0x1eb665({
|
|
2295
|
+
'name': 'chat',
|
|
2296
|
+
'version': '0.0.0'
|
|
2297
|
+
}), _0x2ebe67 = createChatBridgeHandlers(_0x5ebfd3);
|
|
2298
|
+
return await registerChatBridgeTools(_0x88ca52, _0x2ebe67, { 'workerMode': _0x5ebfd3[_0x58d8f6(0x24c)] }), {
|
|
2299
|
+
'handlers': _0x2ebe67,
|
|
2300
|
+
'server': _0x88ca52
|
|
2282
2301
|
};
|
|
2283
2302
|
}
|
|
2284
|
-
function readFlag(
|
|
2285
|
-
const
|
|
2286
|
-
if (
|
|
2303
|
+
function readFlag(_0x506a8d, _0x1dad0e) {
|
|
2304
|
+
const _0x74f5ed = _0x506a8d['indexOf'](_0x1dad0e);
|
|
2305
|
+
if (_0x74f5ed === -0x1)
|
|
2287
2306
|
return void 0x0;
|
|
2288
|
-
return
|
|
2307
|
+
return _0x506a8d[_0x74f5ed + 0x1];
|
|
2289
2308
|
}
|
|
2290
|
-
function parseChatBridgeArgs(
|
|
2291
|
-
const
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2309
|
+
function parseChatBridgeArgs(_0x411880) {
|
|
2310
|
+
const _0x3482fc = {
|
|
2311
|
+
_0xdffc5: 0x1d3,
|
|
2312
|
+
_0x42edf1: 0x121,
|
|
2313
|
+
_0x497eac: 0x139,
|
|
2314
|
+
_0x30dcdd: 0x11f,
|
|
2315
|
+
_0x139a64: 0x1c4,
|
|
2316
|
+
_0x386776: 0x24a,
|
|
2317
|
+
_0x46cd80: 0x149,
|
|
2318
|
+
_0x1f373b: 0x1c9
|
|
2319
|
+
}, _0x3c1af5 = _0x42cca9, _0x387042 = readFlag(_0x411880, _0x3c1af5(0x266)), _0x5e5a82 = readFlag(_0x411880, '--daemon-api-key'), _0x1b97e3 = readFlag(_0x411880, _0x3c1af5(_0x3482fc._0xdffc5)), _0x2563ed = readFlag(_0x411880, _0x3c1af5(_0x3482fc._0x42edf1)) ?? _0x3c1af5(_0x3482fc._0x497eac), _0x11b6d0 = readFlag(_0x411880, '--daemon-local-url'), _0x112e1b = readFlag(_0x411880, _0x3c1af5(_0x3482fc._0x30dcdd)), _0x5076d6 = readFlag(_0x411880, '--worker-mode-enabled'), _0x8db0f7 = readFlag(_0x411880, '--worker-session-id'), _0x53d3f9 = readFlag(_0x411880, _0x3c1af5(_0x3482fc._0x139a64)), _0x283ad2 = _0x411880[_0x3c1af5(_0x3482fc._0x386776)](_0x3c1af5(0x235)), _0x3ab46a = _0x1b97e3 === void 0x0 ? void 0x0 : Number[_0x3c1af5(_0x3482fc._0x46cd80)](_0x1b97e3, 0xa);
|
|
2320
|
+
if (!_0x387042)
|
|
2321
|
+
throw new Error(_0x3c1af5(0x12f));
|
|
2322
|
+
if (!_0x5e5a82)
|
|
2300
2323
|
throw new Error('Missing\x20--daemon-api-key');
|
|
2301
|
-
if (
|
|
2302
|
-
throw new Error(
|
|
2324
|
+
if (_0x1b97e3 !== void 0x0 && (_0x3ab46a === void 0x0 || !Number[_0x3c1af5(_0x3482fc._0x1f373b)](_0x3ab46a) || _0x3ab46a < 0x0))
|
|
2325
|
+
throw new Error(_0x3c1af5(0x12d));
|
|
2303
2326
|
return {
|
|
2304
|
-
'agentId':
|
|
2305
|
-
'daemonApiKey':
|
|
2306
|
-
'daemonLocalUrl':
|
|
2307
|
-
'initialLastSeenSeq':
|
|
2308
|
-
'sessionId':
|
|
2309
|
-
'serverUrl':
|
|
2310
|
-
'workerModeEnabled':
|
|
2311
|
-
'workerSessionId':
|
|
2312
|
-
'workerThreadTarget':
|
|
2313
|
-
'workerMode':
|
|
2327
|
+
'agentId': _0x387042,
|
|
2328
|
+
'daemonApiKey': _0x5e5a82,
|
|
2329
|
+
'daemonLocalUrl': _0x11b6d0,
|
|
2330
|
+
'initialLastSeenSeq': _0x3ab46a,
|
|
2331
|
+
'sessionId': _0x112e1b,
|
|
2332
|
+
'serverUrl': _0x2563ed,
|
|
2333
|
+
'workerModeEnabled': _0x5076d6 === void 0x0 ? void 0x0 : _0x5076d6 !== 'false',
|
|
2334
|
+
'workerSessionId': _0x8db0f7,
|
|
2335
|
+
'workerThreadTarget': _0x53d3f9,
|
|
2336
|
+
'workerMode': _0x283ad2
|
|
2314
2337
|
};
|
|
2315
2338
|
}
|
|
2316
|
-
async function runChatBridgeCli(
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
'
|
|
2323
|
-
'
|
|
2324
|
-
'
|
|
2339
|
+
async function runChatBridgeCli(_0x28f38c) {
|
|
2340
|
+
const _0x492c69 = {
|
|
2341
|
+
_0x54a489: 0x151,
|
|
2342
|
+
_0xeccf1c: 0x24c,
|
|
2343
|
+
_0x3fecf6: 0x23f
|
|
2344
|
+
}, _0x2e61c1 = _0x42cca9, _0x1f6327 = parseChatBridgeArgs(_0x28f38c), {StdioServerTransport: _0x112c84} = await import(_0x2e61c1(0x11e)), _0x4d294e = createInternalAgentClient(_0x1f6327), _0x4cd0df = createAttachmentCache(), _0x48bfc0 = await createChatBridgeServer({
|
|
2345
|
+
'agentId': _0x1f6327[_0x2e61c1(0x1a9)],
|
|
2346
|
+
'attachmentCache': _0x4cd0df,
|
|
2347
|
+
'client': _0x4d294e,
|
|
2348
|
+
'daemonLocalUrl': _0x1f6327[_0x2e61c1(0x189)],
|
|
2325
2349
|
'uploadPreparer': prepareUploadFile,
|
|
2326
|
-
'workerModeEnabled':
|
|
2327
|
-
'workerMode':
|
|
2350
|
+
'workerModeEnabled': _0x1f6327[_0x2e61c1(_0x492c69._0x54a489)],
|
|
2351
|
+
'workerMode': _0x1f6327[_0x2e61c1(_0x492c69._0xeccf1c)]
|
|
2328
2352
|
});
|
|
2329
|
-
await
|
|
2353
|
+
await _0x48bfc0[_0x2e61c1(0x24e)][_0x2e61c1(_0x492c69._0x3fecf6)](new _0x112c84());
|
|
2330
2354
|
}
|
|
2331
|
-
var executedAsEntry = process[
|
|
2332
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2355
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x42cca9(0x1f1)][0x1])[_0x42cca9(0x264)] : ![];
|
|
2356
|
+
executedAsEntry && await runChatBridgeCli(process[_0x42cca9(0x1f1)][_0x42cca9(0x242)](0x2));
|
|
2333
2357
|
export {
|
|
2334
2358
|
createChatBridgeHandlers,
|
|
2335
2359
|
createChatBridgeServer,
|