@dscord/daemon 0.1.11 → 0.1.13
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 +2009 -1903
- package/dist/index.js +7333 -7138
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,2090 +1,2196 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
const _0x4ab0ed = _0xaeca;
|
|
2
|
+
function _0xaeca(_0x5cddca, _0x420183) {
|
|
3
|
+
_0x5cddca = _0x5cddca - 0x157;
|
|
4
|
+
const _0x4879f3 = _0x4879();
|
|
5
|
+
let _0xaeca36 = _0x4879f3[_0x5cddca];
|
|
6
|
+
if (_0xaeca['PhxcOF'] === undefined) {
|
|
7
|
+
var _0x23269f = function (_0x409622) {
|
|
8
|
+
const _0x28b3a7 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
9
|
+
let _0x1aa3f5 = '', _0x2f9eee = '';
|
|
10
|
+
for (let _0x37d6a2 = 0x0, _0x545a9b, _0x3034d8, _0x325b78 = 0x0; _0x3034d8 = _0x409622['charAt'](_0x325b78++); ~_0x3034d8 && (_0x545a9b = _0x37d6a2 % 0x4 ? _0x545a9b * 0x40 + _0x3034d8 : _0x3034d8, _0x37d6a2++ % 0x4) ? _0x1aa3f5 += String['fromCharCode'](0xff & _0x545a9b >> (-0x2 * _0x37d6a2 & 0x6)) : 0x0) {
|
|
11
|
+
_0x3034d8 = _0x28b3a7['indexOf'](_0x3034d8);
|
|
12
|
+
}
|
|
13
|
+
for (let _0x272e79 = 0x0, _0x220405 = _0x1aa3f5['length']; _0x272e79 < _0x220405; _0x272e79++) {
|
|
14
|
+
_0x2f9eee += '%' + ('00' + _0x1aa3f5['charCodeAt'](_0x272e79)['toString'](0x10))['slice'](-0x2);
|
|
15
|
+
}
|
|
16
|
+
return decodeURIComponent(_0x2f9eee);
|
|
17
|
+
};
|
|
18
|
+
_0xaeca['JTwscp'] = _0x23269f, _0xaeca['QgTNeu'] = {}, _0xaeca['PhxcOF'] = !![];
|
|
19
|
+
}
|
|
20
|
+
const _0x5b6d94 = _0x4879f3[0x0], _0x29c565 = _0x5cddca + _0x5b6d94, _0x34b829 = _0xaeca['QgTNeu'][_0x29c565];
|
|
21
|
+
return !_0x34b829 ? (_0xaeca36 = _0xaeca['JTwscp'](_0xaeca36), _0xaeca['QgTNeu'][_0x29c565] = _0xaeca36) : _0xaeca36 = _0x34b829, _0xaeca36;
|
|
22
|
+
}
|
|
23
|
+
(function (_0x522cfc, _0x2565c4) {
|
|
24
|
+
const _0x45cb3c = {
|
|
25
|
+
_0x14479b: 0x28e,
|
|
26
|
+
_0x1d2a74: 0x205,
|
|
27
|
+
_0x246dc9: 0x24a,
|
|
28
|
+
_0x23d28c: 0x238,
|
|
29
|
+
_0x530fb4: 0x17e,
|
|
30
|
+
_0x1a1a6e: 0x1df
|
|
31
|
+
}, _0x3f76a0 = _0xaeca, _0x2fa24a = _0x522cfc();
|
|
32
|
+
while (!![]) {
|
|
33
|
+
try {
|
|
34
|
+
const _0x152822 = parseInt(_0x3f76a0(_0x45cb3c._0x14479b)) / 0x1 + parseInt(_0x3f76a0(0x180)) / 0x2 * (parseInt(_0x3f76a0(_0x45cb3c._0x1d2a74)) / 0x3) + -parseInt(_0x3f76a0(_0x45cb3c._0x246dc9)) / 0x4 + parseInt(_0x3f76a0(0x29e)) / 0x5 + -parseInt(_0x3f76a0(_0x45cb3c._0x23d28c)) / 0x6 * (parseInt(_0x3f76a0(_0x45cb3c._0x530fb4)) / 0x7) + -parseInt(_0x3f76a0(0x207)) / 0x8 + -parseInt(_0x3f76a0(_0x45cb3c._0x1a1a6e)) / 0x9 * (-parseInt(_0x3f76a0(0x22d)) / 0xa);
|
|
35
|
+
if (_0x152822 === _0x2565c4)
|
|
36
|
+
break;
|
|
37
|
+
else
|
|
38
|
+
_0x2fa24a['push'](_0x2fa24a['shift']());
|
|
39
|
+
} catch (_0x58b20c) {
|
|
40
|
+
_0x2fa24a['push'](_0x2fa24a['shift']());
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}(_0x4879, 0xa8d7b));
|
|
44
|
+
import { pathToFileURL } from 'node:url';
|
|
45
|
+
import {
|
|
46
|
+
mkdir,
|
|
47
|
+
readFile,
|
|
48
|
+
readdir,
|
|
49
|
+
stat,
|
|
50
|
+
writeFile
|
|
51
|
+
} from 'node:fs/promises';
|
|
52
|
+
import { homedir } from 'node:os';
|
|
53
|
+
import _0x1aa3f5 from 'node:path';
|
|
54
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
55
|
+
'.csv': _0x4ab0ed(0x1b5),
|
|
56
|
+
'.gif': 'image/gif',
|
|
57
|
+
'.jpeg': _0x4ab0ed(0x22c),
|
|
58
|
+
'.jpg': _0x4ab0ed(0x22c),
|
|
59
|
+
'.json': _0x4ab0ed(0x260),
|
|
60
|
+
'.md': _0x4ab0ed(0x288),
|
|
61
|
+
'.pdf': _0x4ab0ed(0x254),
|
|
62
|
+
'.png': _0x4ab0ed(0x2a4),
|
|
63
|
+
'.svg': 'image/svg+xml',
|
|
64
|
+
'.txt': _0x4ab0ed(0x162),
|
|
65
|
+
'.webp': _0x4ab0ed(0x2b1),
|
|
66
|
+
'.xml': _0x4ab0ed(0x1f8),
|
|
67
|
+
'.zip': _0x4ab0ed(0x211)
|
|
68
|
+
};
|
|
69
|
+
function guessContentType(_0x2f9eee) {
|
|
70
|
+
const _0x24157e = _0x4ab0ed;
|
|
71
|
+
return MIME_BY_EXTENSION[_0x1aa3f5['extname'](_0x2f9eee)['toLowerCase']()] ?? _0x24157e(0x182);
|
|
72
|
+
}
|
|
73
|
+
function safeFilename(_0x37d6a2) {
|
|
74
|
+
const _0xb00865 = { _0x4fe990: 0x1d5 }, _0x4504b1 = _0x4ab0ed;
|
|
75
|
+
return _0x37d6a2[_0x4504b1(_0xb00865._0x4fe990)](/[\\/]/g, '-');
|
|
76
|
+
}
|
|
77
|
+
function extensionFor(_0x545a9b) {
|
|
78
|
+
const _0x282f03 = { _0x5c0bb2: 0x1ba }, _0xa50aa2 = _0x4ab0ed, _0x3034d8 = Object[_0xa50aa2(_0x282f03._0x5c0bb2)](MIME_BY_EXTENSION)[_0xa50aa2(0x21e)](([, _0x325b78]) => _0x325b78 === _0x545a9b);
|
|
79
|
+
return _0x3034d8?.[0x0] ?? _0xa50aa2(0x244);
|
|
80
|
+
}
|
|
81
|
+
async function prepareUploadFile(_0x272e79, _0x220405 = {}) {
|
|
82
|
+
const _0x2e2024 = {
|
|
83
|
+
_0x2ca49f: 0x1b1,
|
|
84
|
+
_0x11b9ba: 0x2ab,
|
|
85
|
+
_0x2c7658: 0x2aa,
|
|
86
|
+
_0x141e74: 0x27e,
|
|
87
|
+
_0x1e22a9: 0x22a,
|
|
88
|
+
_0x42273c: 0x173
|
|
89
|
+
}, _0x2428db = _0x4ab0ed;
|
|
90
|
+
if (!_0x1aa3f5['isAbsolute'](_0x272e79))
|
|
91
|
+
throw new Error(_0x2428db(_0x2e2024._0x2ca49f));
|
|
92
|
+
const _0x5389a0 = await stat(_0x272e79)[_0x2428db(0x161)](() => null);
|
|
93
|
+
if (!_0x5389a0 || !_0x5389a0[_0x2428db(_0x2e2024._0x11b9ba)]())
|
|
94
|
+
throw new Error(_0x2428db(_0x2e2024._0x2c7658) + _0x272e79);
|
|
95
|
+
const _0x79d0 = _0x220405[_0x2428db(_0x2e2024._0x141e74)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
96
|
+
if (_0x5389a0[_0x2428db(_0x2e2024._0x1e22a9)] > _0x79d0)
|
|
97
|
+
throw new Error(_0x2428db(0x242) + _0x5389a0[_0x2428db(0x22a)]);
|
|
98
|
+
const _0x4ab644 = await readFile(_0x272e79), _0x1152a7 = _0x1aa3f5[_0x2428db(0x19b)](_0x272e79);
|
|
99
|
+
return {
|
|
100
|
+
'contentBase64': _0x4ab644[_0x2428db(_0x2e2024._0x42273c)]('base64'),
|
|
101
|
+
'contentType': guessContentType(_0x1152a7),
|
|
102
|
+
'filename': _0x1152a7,
|
|
103
|
+
'sizeBytes': _0x5389a0[_0x2428db(0x22a)]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function createAttachmentCache(_0x225fc9 = {}) {
|
|
107
|
+
const _0x565bcb = { _0x17f233: 0x1ad }, _0x5f0b5d = { _0x59775a: 0x2a5 }, _0x269160 = _0x4ab0ed, _0x473ee7 = _0x225fc9[_0x269160(0x1e1)] ?? _0x1aa3f5['join'](homedir(), _0x269160(0x200), 'attachments');
|
|
108
|
+
return {
|
|
109
|
+
'cacheDir': _0x473ee7,
|
|
110
|
+
async 'findCachedPath'(_0x15b1cd) {
|
|
111
|
+
const _0x18c2ee = _0x269160;
|
|
112
|
+
await mkdir(_0x473ee7, { 'recursive': !![] });
|
|
113
|
+
const _0x4bc178 = await readdir(_0x473ee7), _0x216cb9 = _0x4bc178[_0x18c2ee(0x21e)](_0x22285d => _0x22285d[_0x18c2ee(0x2af)](_0x15b1cd + '-') || _0x22285d['startsWith'](_0x15b1cd));
|
|
114
|
+
return _0x216cb9 ? _0x1aa3f5[_0x18c2ee(_0x5f0b5d._0x59775a)](_0x473ee7, _0x216cb9) : null;
|
|
115
|
+
},
|
|
116
|
+
async 'save'(_0x437e83) {
|
|
117
|
+
const _0x95ed0d = _0x269160;
|
|
118
|
+
await mkdir(_0x473ee7, { 'recursive': !![] });
|
|
119
|
+
const _0x11175b = _0x437e83[_0x95ed0d(0x1ad)]?.['trim']() ? safeFilename(_0x437e83[_0x95ed0d(_0x565bcb._0x17f233)]) : '' + _0x437e83['attachmentId'] + extensionFor(_0x437e83['contentType']), _0x45e109 = _0x1aa3f5[_0x95ed0d(0x2a5)](_0x473ee7, _0x437e83['attachmentId'] + '-' + _0x11175b);
|
|
120
|
+
return await writeFile(_0x45e109, _0x437e83[_0x95ed0d(0x229)]), _0x45e109;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
import {
|
|
125
|
+
createHash,
|
|
126
|
+
randomUUID
|
|
127
|
+
} from 'node:crypto';
|
|
128
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x4ab0ed(0x1cb);
|
|
129
|
+
function ensureSegment(_0x5a0f9f) {
|
|
130
|
+
const _0x4738b6 = _0x4ab0ed, _0x4d7515 = _0x5a0f9f['trim']();
|
|
131
|
+
if (!_0x4d7515 || _0x4d7515[_0x4738b6(0x285)](':'))
|
|
132
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
133
|
+
return _0x4d7515;
|
|
134
|
+
}
|
|
135
|
+
function parseThreadParts(_0x12aacb) {
|
|
136
|
+
const _0x136c20 = {
|
|
137
|
+
_0x57e6bf: 0x1e3,
|
|
138
|
+
_0xe75f97: 0x1e3
|
|
139
|
+
}, _0x3cb8af = _0x4ab0ed, _0x3fedfb = _0x12aacb[_0x3cb8af(0x1ca)](':');
|
|
140
|
+
if (_0x3fedfb[_0x3cb8af(_0x136c20._0x57e6bf)] < 0x1 || _0x3fedfb[_0x3cb8af(_0x136c20._0xe75f97)] > 0x2)
|
|
141
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
142
|
+
return {
|
|
143
|
+
'channelName': ensureSegment(_0x3fedfb[0x0] ?? ''),
|
|
144
|
+
'threadShortId': _0x3fedfb[0x1] ? ensureSegment(_0x3fedfb[0x1]) : null
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function parseTarget(_0x2a5b0e) {
|
|
148
|
+
const _0xc0eaf1 = {
|
|
149
|
+
_0x5f450b: 0x1e4,
|
|
150
|
+
_0x26d97d: 0x27a,
|
|
151
|
+
_0x412a9a: 0x26e,
|
|
152
|
+
_0x1e6f08: 0x26e,
|
|
153
|
+
_0x175778: 0x1ae,
|
|
154
|
+
_0xa6d2fd: 0x18d,
|
|
155
|
+
_0x5db652: 0x2af,
|
|
156
|
+
_0x23f1ca: 0x18d
|
|
157
|
+
}, _0x49e9ea = _0x4ab0ed, _0x3283f6 = _0x2a5b0e[_0x49e9ea(_0xc0eaf1._0x5f450b)]();
|
|
158
|
+
if (!_0x3283f6)
|
|
159
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
+
if (_0x3283f6['startsWith']('#')) {
|
|
161
|
+
const _0x3a6818 = parseThreadParts(_0x3283f6[_0x49e9ea(_0xc0eaf1._0x26d97d)](0x1)), _0x407bf8 = '#' + _0x3a6818[_0x49e9ea(_0xc0eaf1._0x412a9a)];
|
|
162
|
+
if (!_0x3a6818[_0x49e9ea(0x18d)])
|
|
163
|
+
return {
|
|
164
|
+
'channelName': _0x3a6818['channelName'],
|
|
165
|
+
'channelTarget': _0x407bf8,
|
|
166
|
+
'kind': 'channel',
|
|
167
|
+
'target': _0x407bf8
|
|
168
|
+
};
|
|
169
|
+
return {
|
|
170
|
+
'channelName': _0x3a6818[_0x49e9ea(_0xc0eaf1._0x1e6f08)],
|
|
171
|
+
'channelTarget': _0x407bf8,
|
|
172
|
+
'kind': _0x49e9ea(_0xc0eaf1._0x175778),
|
|
173
|
+
'target': _0x407bf8 + ':' + _0x3a6818[_0x49e9ea(_0xc0eaf1._0xa6d2fd)],
|
|
174
|
+
'threadShortId': _0x3a6818[_0x49e9ea(0x18d)]
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
if (_0x3283f6[_0x49e9ea(_0xc0eaf1._0x5db652)](_0x49e9ea(0x18b))) {
|
|
178
|
+
const _0xd5854d = parseThreadParts(_0x3283f6['slice'](0x3));
|
|
179
|
+
if (!_0xd5854d[_0x49e9ea(0x26e)][_0x49e9ea(0x2af)]('dm-'))
|
|
180
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
181
|
+
const _0x3bf617 = _0x49e9ea(0x18b) + _0xd5854d['channelName'];
|
|
182
|
+
if (!_0xd5854d[_0x49e9ea(0x18d)])
|
|
183
|
+
return {
|
|
184
|
+
'channelName': _0xd5854d[_0x49e9ea(0x26e)],
|
|
185
|
+
'channelTarget': _0x3bf617,
|
|
186
|
+
'kind': 'channel',
|
|
187
|
+
'target': _0x3bf617
|
|
188
|
+
};
|
|
189
|
+
return {
|
|
190
|
+
'channelName': _0xd5854d[_0x49e9ea(0x26e)],
|
|
191
|
+
'channelTarget': _0x3bf617,
|
|
192
|
+
'kind': _0x49e9ea(_0xc0eaf1._0x175778),
|
|
193
|
+
'target': _0x3bf617 + ':' + _0xd5854d['threadShortId'],
|
|
194
|
+
'threadShortId': _0xd5854d[_0x49e9ea(_0xc0eaf1._0x23f1ca)]
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
198
|
+
}
|
|
199
|
+
function asErrorMessage(_0x321510, _0x1dfc66) {
|
|
200
|
+
if (typeof _0x321510 === 'string' && _0x321510['trim']())
|
|
201
|
+
return _0x321510;
|
|
202
|
+
return _0x1dfc66;
|
|
203
|
+
}
|
|
204
|
+
function asRecord(_0x2623d7) {
|
|
205
|
+
const _0x4e769e = _0x4ab0ed;
|
|
206
|
+
return typeof _0x2623d7 === _0x4e769e(0x16f) && _0x2623d7 !== null ? _0x2623d7 : {};
|
|
207
|
+
}
|
|
208
|
+
function stableStringify(_0xaecf8a) {
|
|
209
|
+
const _0x31e2e4 = {
|
|
210
|
+
_0x2c617f: 0x2a5,
|
|
211
|
+
_0x575c12: 0x1ba,
|
|
212
|
+
_0x36151d: 0x1d9,
|
|
213
|
+
_0x7dbd31: 0x1cd,
|
|
214
|
+
_0xca35e6: 0x243
|
|
215
|
+
}, _0x5098aa = _0x4ab0ed;
|
|
216
|
+
if (_0xaecf8a === null || typeof _0xaecf8a !== _0x5098aa(0x16f))
|
|
217
|
+
return JSON[_0x5098aa(0x203)](_0xaecf8a);
|
|
218
|
+
if (Array[_0x5098aa(0x290)](_0xaecf8a))
|
|
219
|
+
return '[' + _0xaecf8a['map'](_0x19906c => stableStringify(_0x19906c))[_0x5098aa(_0x31e2e4._0x2c617f)](',') + ']';
|
|
220
|
+
const _0x4dc4da = Object[_0x5098aa(_0x31e2e4._0x575c12)](_0xaecf8a)[_0x5098aa(_0x31e2e4._0x36151d)](([, _0x55290a]) => _0x55290a !== void 0x0)[_0x5098aa(_0x31e2e4._0x7dbd31)](([_0x1353dc], [_0x5c0619]) => _0x1353dc[_0x5098aa(0x1db)](_0x5c0619))[_0x5098aa(_0x31e2e4._0xca35e6)](([_0x1f18d9, _0x5cd1f3]) => JSON[_0x5098aa(0x203)](_0x1f18d9) + ':' + stableStringify(_0x5cd1f3));
|
|
221
|
+
return '{' + _0x4dc4da['join'](',') + '}';
|
|
222
|
+
}
|
|
223
|
+
function createHeaders(_0x263213) {
|
|
224
|
+
return {
|
|
225
|
+
'Content-Type': 'application/json',
|
|
226
|
+
'x-daemon-api-key': _0x263213
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function toHttpBaseUrl(_0x5ae23a) {
|
|
230
|
+
const _0x1ab542 = {
|
|
231
|
+
_0x89b192: 0x25f,
|
|
232
|
+
_0x97f5d: 0x1b3,
|
|
233
|
+
_0x383b4b: 0x1e0,
|
|
234
|
+
_0x143239: 0x25f,
|
|
235
|
+
_0x4e5965: 0x28b
|
|
236
|
+
}, _0x376e4d = _0x4ab0ed, _0x2b27c2 = new URL(_0x5ae23a);
|
|
237
|
+
if (_0x2b27c2[_0x376e4d(_0x1ab542._0x89b192)] === _0x376e4d(0x167))
|
|
238
|
+
_0x2b27c2[_0x376e4d(0x25f)] = _0x376e4d(_0x1ab542._0x97f5d);
|
|
239
|
+
else
|
|
240
|
+
_0x2b27c2[_0x376e4d(0x25f)] === _0x376e4d(_0x1ab542._0x383b4b) && (_0x2b27c2[_0x376e4d(_0x1ab542._0x143239)] = _0x376e4d(_0x1ab542._0x4e5965));
|
|
241
|
+
return _0x2b27c2[_0x376e4d(0x173)]()['replace'](/\/$/, '');
|
|
242
|
+
}
|
|
243
|
+
function isMentionBoundary(_0x27a71c) {
|
|
244
|
+
return !_0x27a71c || /\s|[([{'",。!?、:;]/['test'](_0x27a71c);
|
|
245
|
+
}
|
|
246
|
+
function isMentionTerminal(_0x1e264d) {
|
|
247
|
+
return !_0x1e264d || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x1e264d);
|
|
248
|
+
}
|
|
249
|
+
function buildMatchableEntries(_0x382f12) {
|
|
250
|
+
const _0x22320c = {
|
|
251
|
+
_0x2df15c: 0x228,
|
|
252
|
+
_0x2e8d4f: 0x209,
|
|
253
|
+
_0x165643: 0x24b
|
|
254
|
+
}, _0x52d2b6 = _0x4ab0ed, _0x53df42 = [];
|
|
255
|
+
for (const _0x3b9a04 of [
|
|
256
|
+
..._0x382f12['agents'],
|
|
257
|
+
..._0x382f12['humans']
|
|
258
|
+
]) {
|
|
259
|
+
_0x53df42['push']({
|
|
260
|
+
'matchName': _0x3b9a04[_0x52d2b6(0x228)],
|
|
261
|
+
'matchNameLower': _0x3b9a04[_0x52d2b6(_0x22320c._0x2df15c)][_0x52d2b6(0x24b)](),
|
|
262
|
+
'participantId': _0x3b9a04['id']
|
|
263
|
+
}), _0x3b9a04['id'] !== _0x3b9a04[_0x52d2b6(0x228)] && _0x53df42[_0x52d2b6(_0x22320c._0x2e8d4f)]({
|
|
264
|
+
'matchName': _0x3b9a04['id'],
|
|
265
|
+
'matchNameLower': _0x3b9a04['id'][_0x52d2b6(_0x22320c._0x165643)](),
|
|
266
|
+
'participantId': _0x3b9a04['id']
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
return _0x53df42;
|
|
270
|
+
}
|
|
271
|
+
function extractMentionedParticipantIds(_0x59528d, _0x579bca) {
|
|
272
|
+
const _0x586792 = {
|
|
273
|
+
_0x3709a2: 0x1e3,
|
|
274
|
+
_0x211698: 0x297,
|
|
275
|
+
_0x345afe: 0x1a6,
|
|
276
|
+
_0xbcf5a9: 0x209
|
|
277
|
+
}, _0x11335b = { _0x14db98: 0x1e3 }, _0x4a46ee = _0x4ab0ed, _0x3dd6d1 = buildMatchableEntries(_0x579bca)[_0x4a46ee(0x1cd)]((_0x4fa280, _0x1be579) => _0x1be579[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)] - _0x4fa280[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)]), _0x20c3bb = [], _0x1e047f = new Set();
|
|
278
|
+
for (let _0x19ada9 = 0x0; _0x19ada9 < _0x59528d[_0x4a46ee(_0x586792._0x3709a2)]; _0x19ada9 += 0x1) {
|
|
279
|
+
if (_0x59528d[_0x19ada9] !== '@' || !isMentionBoundary(_0x59528d[_0x19ada9 - 0x1]))
|
|
280
|
+
continue;
|
|
281
|
+
const _0x525869 = _0x59528d[_0x4a46ee(0x27a)](_0x19ada9 + 0x1), _0x121649 = _0x525869[_0x4a46ee(0x24b)](), _0x2da6e9 = _0x3dd6d1[_0x4a46ee(0x21e)](_0x2eab04 => {
|
|
282
|
+
const _0x1efa5f = _0x4a46ee;
|
|
283
|
+
if (!_0x121649[_0x1efa5f(0x2af)](_0x2eab04['matchNameLower']))
|
|
284
|
+
return ![];
|
|
285
|
+
return isMentionTerminal(_0x525869[_0x2eab04[_0x1efa5f(0x19f)][_0x1efa5f(_0x11335b._0x14db98)]]);
|
|
286
|
+
});
|
|
287
|
+
if (!_0x2da6e9 || _0x1e047f[_0x4a46ee(_0x586792._0x211698)](_0x2da6e9[_0x4a46ee(_0x586792._0x345afe)]))
|
|
288
|
+
continue;
|
|
289
|
+
_0x1e047f[_0x4a46ee(0x2b9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x20c3bb[_0x4a46ee(_0x586792._0xbcf5a9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x19ada9 += _0x2da6e9[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)];
|
|
290
|
+
}
|
|
291
|
+
return _0x20c3bb;
|
|
292
|
+
}
|
|
293
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
294
|
+
function anySignal(..._0x1c42ea) {
|
|
295
|
+
const _0x2abd7c = {
|
|
296
|
+
_0x1a8c7d: 0x206,
|
|
297
|
+
_0x4b4179: 0x1d6
|
|
298
|
+
}, _0x2eaa42 = _0x4ab0ed, _0x2d5c86 = new AbortController();
|
|
299
|
+
for (const _0x3a4cae of _0x1c42ea) {
|
|
300
|
+
if (_0x3a4cae[_0x2eaa42(0x1ff)])
|
|
301
|
+
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x1a8c7d)](_0x3a4cae['reason']), _0x2d5c86['signal'];
|
|
302
|
+
_0x3a4cae['addEventListener'](_0x2eaa42(0x206), () => _0x2d5c86['abort'](_0x3a4cae['reason']), {
|
|
303
|
+
'once': !![],
|
|
304
|
+
'signal': _0x2d5c86['signal']
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x4b4179)];
|
|
308
|
+
}
|
|
309
|
+
function createInternalAgentClient(_0x58f74a) {
|
|
310
|
+
const _0x4fe2f7 = {
|
|
311
|
+
_0x50385c: 0x1a2,
|
|
312
|
+
_0x24ceb0: 0x16d,
|
|
313
|
+
_0x84e7a5: 0x17c
|
|
314
|
+
}, _0x1c7d90 = {
|
|
315
|
+
_0x22a04d: 0x179,
|
|
316
|
+
_0x1e5c31: 0x1ce,
|
|
317
|
+
_0xda23c1: 0x187,
|
|
318
|
+
_0x381049: 0x229,
|
|
319
|
+
_0x2baff7: 0x1a3,
|
|
320
|
+
_0x38afca: 0x294,
|
|
321
|
+
_0x4b0698: 0x1ac,
|
|
322
|
+
_0x302280: 0x291,
|
|
323
|
+
_0x5c3133: 0x1bc,
|
|
324
|
+
_0x4d8357: 0x16d,
|
|
325
|
+
_0x2405e4: 0x1bc,
|
|
326
|
+
_0x3e062a: 0x293,
|
|
327
|
+
_0x194972: 0x293,
|
|
328
|
+
_0x30404c: 0x212,
|
|
329
|
+
_0x29f60b: 0x1fa,
|
|
330
|
+
_0x36b08c: 0x234,
|
|
331
|
+
_0x2b8279: 0x1e3,
|
|
332
|
+
_0x3aeab6: 0x243,
|
|
333
|
+
_0x1228f7: 0x15a,
|
|
334
|
+
_0x1178cd: 0x2b5,
|
|
335
|
+
_0x47cf60: 0x25e,
|
|
336
|
+
_0x42151a: 0x160,
|
|
337
|
+
_0x79ddba: 0x268,
|
|
338
|
+
_0x27649e: 0x1fd
|
|
339
|
+
}, _0x1a7f0b = {
|
|
340
|
+
_0x44b3f4: 0x1a4,
|
|
341
|
+
_0x309fbc: 0x286,
|
|
342
|
+
_0x581fa6: 0x294,
|
|
343
|
+
_0x2621aa: 0x2b7,
|
|
344
|
+
_0x26de95: 0x1ac
|
|
345
|
+
}, _0x55ce3c = {
|
|
346
|
+
_0x5e5b35: 0x1d6,
|
|
347
|
+
_0x589e3a: 0x23c,
|
|
348
|
+
_0x20f358: 0x165,
|
|
349
|
+
_0x4f6993: 0x15d
|
|
350
|
+
}, _0x275824 = {
|
|
351
|
+
_0x3ef129: 0x1a4,
|
|
352
|
+
_0x1df1af: 0x2c0,
|
|
353
|
+
_0x2f970d: 0x25c,
|
|
354
|
+
_0x23e6eb: 0x227
|
|
355
|
+
}, _0x5164c6 = {
|
|
356
|
+
_0x2eb1fc: 0x179,
|
|
357
|
+
_0x11c292: 0x1ce,
|
|
358
|
+
_0x2cf270: 0x203,
|
|
359
|
+
_0xadb360: 0x272
|
|
360
|
+
}, _0x1d729d = { _0x3324c1: 0x2a0 }, _0x4bf035 = {
|
|
361
|
+
_0x207b60: 0x1b6,
|
|
362
|
+
_0x3eb81e: 0x203,
|
|
363
|
+
_0x1fc250: 0x2a0
|
|
364
|
+
}, _0x203839 = {
|
|
365
|
+
_0x5d1bf4: 0x203,
|
|
366
|
+
_0x1085bd: 0x253,
|
|
367
|
+
_0x4030c2: 0x2a0
|
|
368
|
+
}, _0x26df12 = {
|
|
369
|
+
_0x5969db: 0x1c0,
|
|
370
|
+
_0x2c0a25: 0x21d,
|
|
371
|
+
_0x24059a: 0x1c0
|
|
372
|
+
}, _0x22f4c4 = {
|
|
373
|
+
_0x9a4e10: 0x16b,
|
|
374
|
+
_0x95b5bc: 0x263,
|
|
375
|
+
_0x505049: 0x259,
|
|
376
|
+
_0x2bf9c6: 0x1c0
|
|
377
|
+
}, _0x726f5f = {
|
|
378
|
+
_0x5b58cc: 0x183,
|
|
379
|
+
_0x4ed5d8: 0x225,
|
|
380
|
+
_0x402775: 0x2a0
|
|
381
|
+
}, _0x428f84 = {
|
|
382
|
+
_0x4913e7: 0x1b4,
|
|
383
|
+
_0x527c61: 0x181
|
|
384
|
+
}, _0x18e6db = {
|
|
385
|
+
_0x2f0ea2: 0x289,
|
|
386
|
+
_0x207485: 0x229
|
|
387
|
+
}, _0x58f306 = {
|
|
388
|
+
_0x287272: 0x2ae,
|
|
389
|
+
_0x3bdb3c: 0x2b5,
|
|
390
|
+
_0x46d39c: 0x285,
|
|
391
|
+
_0x18c597: 0x179,
|
|
392
|
+
_0x2b8fec: 0x203,
|
|
393
|
+
_0x1a2d90: 0x2b5,
|
|
394
|
+
_0x49f776: 0x1e3,
|
|
395
|
+
_0x59c457: 0x2a0
|
|
396
|
+
}, _0x4f85a3 = {
|
|
397
|
+
_0x451429: 0x21d,
|
|
398
|
+
_0x408cef: 0x1ac,
|
|
399
|
+
_0x122b1a: 0x294,
|
|
400
|
+
_0x38ad31: 0x21d,
|
|
401
|
+
_0xf7a33b: 0x20b,
|
|
402
|
+
_0x56c9e6: 0x1fb,
|
|
403
|
+
_0x5e62be: 0x173,
|
|
404
|
+
_0x139529: 0x20a,
|
|
405
|
+
_0x46971e: 0x243,
|
|
406
|
+
_0x219071: 0x1d2,
|
|
407
|
+
_0x3ba3ea: 0x1d2
|
|
408
|
+
}, _0x362512 = { _0x545348: 0x197 }, _0x35bba9 = {
|
|
409
|
+
_0x18be69: 0x18d,
|
|
410
|
+
_0x189b8f: 0x293,
|
|
411
|
+
_0x7e6ebc: 0x1ac,
|
|
412
|
+
_0x260b5e: 0x2af
|
|
413
|
+
}, _0x136866 = {
|
|
414
|
+
_0x23ef8a: 0x1bc,
|
|
415
|
+
_0x33e270: 0x258,
|
|
416
|
+
_0x2c9cb7: 0x27a
|
|
417
|
+
}, _0x18727f = { _0x43ec5c: 0x2bb }, _0x2c4ca4 = {
|
|
418
|
+
_0x51db5e: 0x179,
|
|
419
|
+
_0x4ee713: 0x248,
|
|
420
|
+
_0x166170: 0x26d,
|
|
421
|
+
_0x22b4ec: 0x229,
|
|
422
|
+
_0xc6123b: 0x243,
|
|
423
|
+
_0x59adc5: 0x243,
|
|
424
|
+
_0x279e96: 0x229,
|
|
425
|
+
_0x4b19f0: 0x24c,
|
|
426
|
+
_0x1d5568: 0x1d9,
|
|
427
|
+
_0xf3dc19: 0x229,
|
|
428
|
+
_0x3262b2: 0x296,
|
|
429
|
+
_0x39fd04: 0x228
|
|
430
|
+
}, _0x2788cf = {
|
|
431
|
+
_0x294b84: 0x179,
|
|
432
|
+
_0x11c0d2: 0x2ae
|
|
433
|
+
}, _0x8ebe99 = {
|
|
434
|
+
_0x2537a2: 0x188,
|
|
435
|
+
_0x5ac886: 0x246
|
|
436
|
+
}, _0x307d2a = {
|
|
437
|
+
_0x360a04: 0x1d6,
|
|
438
|
+
_0x3fbefb: 0x1d6
|
|
439
|
+
}, _0x522317 = { _0x45be27: 0x263 }, _0x153730 = {
|
|
440
|
+
_0x463b17: 0x291,
|
|
441
|
+
_0x5e9a46: 0x2be,
|
|
442
|
+
_0x23254d: 0x1e4,
|
|
443
|
+
_0x424393: 0x1c4,
|
|
444
|
+
_0x17dfbd: 0x251,
|
|
445
|
+
_0x961526: 0x268
|
|
446
|
+
}, _0x8681bc = {
|
|
447
|
+
_0x5524bb: 0x1c3,
|
|
448
|
+
_0x1bd8a1: 0x1e4
|
|
449
|
+
}, _0x9ca63f = {
|
|
450
|
+
_0x3ec642: 0x2ac,
|
|
451
|
+
_0x37fa4a: 0x268,
|
|
452
|
+
_0x3c4a19: 0x21b,
|
|
453
|
+
_0x4e4370: 0x1c0,
|
|
454
|
+
_0xe6a7d9: 0x1e9
|
|
455
|
+
}, _0x4403d0 = _0x4ab0ed, _0x96fd5d = _0x58f74a['fetchImpl'] ?? fetch, _0x1785a2 = _0x58f74a[_0x4403d0(0x193)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4dacbc = typeof _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] === _0x4403d0(_0x4fe2f7._0x24ceb0) && _0x58f74a[_0x4403d0(0x1a2)] > 0x0 ? _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] : 0x0, _0x73b33 = _0x58f74a[_0x4403d0(_0x4fe2f7._0x84e7a5)]?.['trim']() || void 0x0, _0x4570c9 = _0x58f74a['workerThreadTarget']?.['trim']() || void 0x0, _0x529f0c = createHeaders(_0x58f74a[_0x4403d0(0x1f4)]), _0xb724a0 = toHttpBaseUrl(_0x58f74a['serverUrl']);
|
|
456
|
+
let _0x33de00 = null;
|
|
457
|
+
const _0x2ad9bb = new Map();
|
|
458
|
+
let _0x5ee29d = _0x4dacbc, _0x1d7d06 = _0x4dacbc;
|
|
459
|
+
function _0x4dfd71(_0x481bb8) {
|
|
460
|
+
const _0x47a481 = _0x4403d0, _0x2587c5 = _0x481bb8[_0x47a481(_0x9ca63f._0x3ec642)]['headers'][_0x47a481(_0x9ca63f._0x37fa4a)](_0x47a481(_0x9ca63f._0x3c4a19)) ?? 'unknown', _0x40f0a6 = _0x481bb8[_0x47a481(0x1c9)][_0x47a481(0x1e4)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
461
|
+
return '请求\x20' + _0x481bb8['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x481bb8[_0x47a481(0x2ac)][_0x47a481(_0x9ca63f._0x4e4370)] + _0x47a481(0x1b7) + _0x2587c5 + _0x47a481(0x2ba) + _0x40f0a6 + _0x47a481(_0x9ca63f._0xe6a7d9);
|
|
462
|
+
}
|
|
463
|
+
async function _0x52f5fe(_0x2d7dec, _0x42b7aa) {
|
|
464
|
+
const _0x1bfab7 = _0x4403d0, _0x44a6f8 = Buffer[_0x1bfab7(_0x8681bc._0x5524bb)](await _0x42b7aa[_0x1bfab7(0x278)]())['toString'](_0x1bfab7(0x178));
|
|
465
|
+
if (!_0x44a6f8[_0x1bfab7(_0x8681bc._0x1bd8a1)]())
|
|
466
|
+
return {};
|
|
467
|
+
try {
|
|
468
|
+
return JSON[_0x1bfab7(0x1a5)](_0x44a6f8);
|
|
469
|
+
} catch {
|
|
470
|
+
throw new Error(_0x4dfd71({
|
|
471
|
+
'bodyText': _0x44a6f8,
|
|
472
|
+
'requestUrl': _0x2d7dec,
|
|
473
|
+
'response': _0x42b7aa
|
|
474
|
+
}));
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
function _0x1ed405(_0x4b713b, _0x341f5a) {
|
|
478
|
+
const _0x128c6c = _0x4403d0, _0x505f32 = typeof _0x341f5a['idempotency_key'] === _0x128c6c(_0x153730._0x463b17) ? _0x341f5a[_0x128c6c(_0x153730._0x5e9a46)][_0x128c6c(_0x153730._0x23254d)]() : '';
|
|
479
|
+
if (_0x505f32)
|
|
480
|
+
return _0x505f32;
|
|
481
|
+
const _0x392861 = Date['now']();
|
|
482
|
+
for (const [_0x328131, _0x390dbc] of _0x2ad9bb) {
|
|
483
|
+
_0x390dbc[_0x128c6c(_0x153730._0x424393)] <= _0x392861 && _0x2ad9bb['delete'](_0x328131);
|
|
484
|
+
}
|
|
485
|
+
const _0x17080a = {
|
|
486
|
+
..._0x341f5a,
|
|
487
|
+
'idempotency_key': void 0x0
|
|
488
|
+
}, _0x21b690 = createHash(_0x128c6c(_0x153730._0x17dfbd))[_0x128c6c(0x1cf)](_0x4b713b + ':' + stableStringify(_0x17080a))[_0x128c6c(0x270)](_0x128c6c(0x27d)), _0x38cb72 = _0x4b713b + ':' + _0x21b690, _0xe37198 = _0x2ad9bb[_0x128c6c(_0x153730._0x961526)](_0x38cb72);
|
|
489
|
+
if (_0xe37198)
|
|
490
|
+
return _0xe37198['value'];
|
|
491
|
+
const _0x14fb27 = 'auto:' + _0x4b713b + ':' + randomUUID();
|
|
492
|
+
return _0x2ad9bb[_0x128c6c(0x21d)](_0x38cb72, {
|
|
493
|
+
'expiresAt': _0x392861 + 0x5 * 0x3c * 0x3e8,
|
|
494
|
+
'value': _0x14fb27
|
|
495
|
+
}), _0x14fb27;
|
|
496
|
+
}
|
|
497
|
+
async function _0x2f42f1(_0x388910, _0x4440a4) {
|
|
498
|
+
const _0x403a96 = _0x4403d0, _0x34d808 = new AbortController(), _0x10f06e = setTimeout(() => _0x34d808[_0x403a96(0x206)](), _0x1785a2), _0x1b410e = _0x4440a4?.['signal'] ? anySignal(_0x4440a4['signal'], _0x34d808[_0x403a96(0x1d6)]) : _0x34d808[_0x403a96(0x1d6)], _0x2c3185 = '' + _0xb724a0 + _0x388910;
|
|
499
|
+
try {
|
|
500
|
+
const _0x14ded4 = await _0x96fd5d(_0x2c3185, {
|
|
501
|
+
..._0x4440a4,
|
|
502
|
+
'signal': _0x1b410e
|
|
503
|
+
}), _0x245f07 = await _0x52f5fe(_0x2c3185, _0x14ded4);
|
|
504
|
+
if (!_0x14ded4['ok'] || _0x245f07['success'] === ![])
|
|
505
|
+
throw new Error(asErrorMessage(_0x245f07[_0x403a96(_0x522317._0x45be27)], _0x403a96(0x23c) + _0x14ded4['status']));
|
|
506
|
+
return _0x245f07;
|
|
507
|
+
} finally {
|
|
508
|
+
clearTimeout(_0x10f06e);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
async function _0xdd71cc(_0xa966a7, _0x17934b) {
|
|
512
|
+
const _0x10a81a = _0x4403d0, _0x2ed743 = new AbortController(), _0x2bcdbf = setTimeout(() => _0x2ed743[_0x10a81a(0x206)](), _0x1785a2), _0xf6389c = _0x17934b?.[_0x10a81a(_0x307d2a._0x360a04)] ? anySignal(_0x17934b[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2ed743['signal']) : _0x2ed743[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2f9a78 = '' + _0xb724a0 + _0xa966a7;
|
|
513
|
+
try {
|
|
514
|
+
const _0x53fe7f = await _0x96fd5d(_0x2f9a78, {
|
|
515
|
+
..._0x17934b,
|
|
516
|
+
'signal': _0xf6389c
|
|
517
|
+
}), _0x915570 = await _0x52f5fe(_0x2f9a78, _0x53fe7f);
|
|
518
|
+
if (!_0x53fe7f['ok'])
|
|
519
|
+
throw new Error(asErrorMessage(_0x915570[_0x10a81a(0x263)], 'HTTP\x20' + _0x53fe7f[_0x10a81a(0x1c0)]));
|
|
520
|
+
return _0x915570;
|
|
521
|
+
} finally {
|
|
522
|
+
clearTimeout(_0x2bcdbf);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
async function _0x4108fe(_0x553eea) {
|
|
526
|
+
const _0x2ff434 = _0x4403d0;
|
|
527
|
+
if (!_0x73b33 || _0x553eea <= _0x1d7d06)
|
|
528
|
+
return;
|
|
529
|
+
await _0x2f42f1(_0x2ff434(_0x8ebe99._0x2537a2) + encodeURIComponent(_0x73b33) + _0x2ff434(_0x8ebe99._0x5ac886), {
|
|
530
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x553eea }),
|
|
531
|
+
'headers': _0x529f0c,
|
|
532
|
+
'method': 'PATCH'
|
|
533
|
+
}), _0x1d7d06 = _0x553eea;
|
|
534
|
+
}
|
|
535
|
+
async function _0x2de7a6(_0x2c673b) {
|
|
536
|
+
const _0x1df71c = _0x4403d0, _0xf7d405 = parseTarget(_0x2c673b), _0x24ac11 = await _0x2f42f1(_0x1df71c(_0x2788cf._0x294b84) + _0x58f74a[_0x1df71c(0x1ce)] + '/resolve-channel', {
|
|
537
|
+
'body': JSON[_0x1df71c(0x203)]({ 'target': _0xf7d405[_0x1df71c(_0x2788cf._0x11c0d2)] }),
|
|
538
|
+
'headers': _0x529f0c,
|
|
539
|
+
'method': 'POST'
|
|
540
|
+
});
|
|
541
|
+
return {
|
|
542
|
+
'channelId': _0x24ac11[_0x1df71c(0x229)]?.[_0x1df71c(0x294)] ?? '',
|
|
543
|
+
'target': _0xf7d405['channelTarget'],
|
|
544
|
+
'threadId': _0x24ac11['data']?.[_0x1df71c(0x1ac)]
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
async function _0x4c5559() {
|
|
548
|
+
return !_0x33de00 && (_0x33de00 = (async () => {
|
|
549
|
+
const _0x1302a5 = _0xaeca, _0x602e0c = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x51db5e) + _0x58f74a['agentId'] + _0x1302a5(_0x2c4ca4._0x4ee713), {
|
|
550
|
+
'headers': _0x529f0c,
|
|
551
|
+
'method': _0x1302a5(0x20a)
|
|
552
|
+
}), _0x1f4000 = _0x602e0c['data']?.[_0x1302a5(0x296)]['id'] ?? '';
|
|
553
|
+
let _0x2d6e94 = [];
|
|
554
|
+
try {
|
|
555
|
+
const _0xb18b5a = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x166170) + encodeURIComponent(_0x1f4000), {
|
|
556
|
+
'headers': _0x529f0c,
|
|
557
|
+
'method': _0x1302a5(0x20a)
|
|
558
|
+
});
|
|
559
|
+
_0x2d6e94 = _0xb18b5a[_0x1302a5(_0x2c4ca4._0x22b4ec)] ?? [];
|
|
560
|
+
} catch {
|
|
561
|
+
_0x2d6e94 = [];
|
|
562
|
+
}
|
|
563
|
+
const _0x4c702b = _0x2d6e94[_0x1302a5(_0x2c4ca4._0xc6123b)](_0x4b37b5 => ({
|
|
564
|
+
'id': _0x4b37b5[_0x1302a5(0x21f)]?.['id'] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? '',
|
|
565
|
+
'name': _0x4b37b5[_0x1302a5(0x21f)]?.[_0x1302a5(0x228)] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? ''
|
|
566
|
+
}))['filter'](_0x15bd5b => _0x15bd5b['id']), _0x12fdfe = new Set(_0x4c702b[_0x1302a5(_0x2c4ca4._0x59adc5)](_0x2dfb58 => _0x2dfb58['id'])), _0x2260c2 = (_0x602e0c[_0x1302a5(_0x2c4ca4._0x279e96)]?.[_0x1302a5(_0x2c4ca4._0x4b19f0)] ?? [])[_0x1302a5(_0x2c4ca4._0x1d5568)](_0x12e90b => !_0x12fdfe['has'](_0xe7e545(_0x12e90b)))['map'](_0xf4d18b => ({
|
|
567
|
+
'id': _0xe7e545(_0xf4d18b),
|
|
568
|
+
'name': _0x56442e(_0xf4d18b)
|
|
569
|
+
}))[_0x1302a5(0x1d9)](_0x13161b => _0x13161b['id']);
|
|
570
|
+
return {
|
|
571
|
+
'agents': _0x4c702b,
|
|
572
|
+
'channels': _0x602e0c[_0x1302a5(_0x2c4ca4._0x22b4ec)]?.[_0x1302a5(0x231)] ?? [],
|
|
573
|
+
'humans': _0x2260c2,
|
|
574
|
+
'serverId': _0x1f4000,
|
|
575
|
+
'serverName': _0x602e0c[_0x1302a5(_0x2c4ca4._0xf3dc19)]?.[_0x1302a5(_0x2c4ca4._0x3262b2)][_0x1302a5(_0x2c4ca4._0x39fd04)] ?? _0x1f4000
|
|
576
|
+
};
|
|
577
|
+
})()['catch'](_0x432536 => {
|
|
578
|
+
_0x33de00 = null;
|
|
579
|
+
throw _0x432536;
|
|
580
|
+
})), _0x33de00;
|
|
581
|
+
}
|
|
582
|
+
function _0xfeef44(_0x29a54f, _0x2ae16f) {
|
|
583
|
+
const _0x7a8045 = _0x4403d0;
|
|
584
|
+
return _0x2ae16f[_0x7a8045(0x23e)][_0x7a8045(0x23d)](_0x2d772c => _0x2d772c['id'] === _0x29a54f || _0x2d772c[_0x7a8045(0x228)] === _0x29a54f) ? _0x7a8045(0x1e8) : _0x7a8045(_0x18727f._0x43ec5c);
|
|
585
|
+
}
|
|
586
|
+
function _0x86ee5(_0x345b26) {
|
|
587
|
+
const _0x42c6f2 = _0x4403d0;
|
|
588
|
+
if (_0x345b26[_0x42c6f2(_0x136866._0x23ef8a)] != null)
|
|
589
|
+
return _0x345b26['channelTarget'] + ':t' + _0x345b26[_0x42c6f2(0x1bc)];
|
|
590
|
+
if (_0x345b26[_0x42c6f2(0x293)])
|
|
591
|
+
return _0x345b26['channelTarget'] + ':' + _0x345b26[_0x42c6f2(0x293)];
|
|
592
|
+
if (_0x345b26[_0x42c6f2(0x1ac)])
|
|
593
|
+
return _0x345b26[_0x42c6f2(_0x136866._0x33e270)] + ':' + _0x345b26[_0x42c6f2(0x1ac)][_0x42c6f2(_0x136866._0x2c9cb7)](0x0, 0x8);
|
|
594
|
+
return _0x345b26['channelTarget'];
|
|
595
|
+
}
|
|
596
|
+
function _0x4a54c2(_0x465751, _0x3e47de) {
|
|
597
|
+
const _0x16cc28 = _0x4403d0;
|
|
598
|
+
try {
|
|
599
|
+
const _0x41d47b = parseTarget(_0x465751);
|
|
600
|
+
if (_0x41d47b[_0x16cc28(0x1aa)] !== 'thread' || _0x41d47b[_0x16cc28(0x258)] !== _0x3e47de[_0x16cc28(0x258)])
|
|
601
|
+
return ![];
|
|
602
|
+
if (_0x3e47de[_0x16cc28(0x1bc)] != null && _0x41d47b[_0x16cc28(_0x35bba9._0x18be69)] === 't' + _0x3e47de[_0x16cc28(0x1bc)])
|
|
603
|
+
return !![];
|
|
604
|
+
if (_0x3e47de[_0x16cc28(_0x35bba9._0x189b8f)])
|
|
605
|
+
return _0x41d47b['threadShortId'] === _0x3e47de['rootMessageId'] || _0x3e47de['rootMessageId'][_0x16cc28(0x2af)](_0x41d47b[_0x16cc28(_0x35bba9._0x18be69)]);
|
|
606
|
+
if (_0x3e47de[_0x16cc28(_0x35bba9._0x7e6ebc)])
|
|
607
|
+
return _0x41d47b[_0x16cc28(0x18d)] === _0x3e47de['threadId'] || _0x3e47de[_0x16cc28(0x1ac)][_0x16cc28(_0x35bba9._0x260b5e)](_0x41d47b['threadShortId']);
|
|
608
|
+
return ![];
|
|
609
|
+
} catch {
|
|
610
|
+
return ![];
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
function _0xe7e545(_0x4b1165) {
|
|
614
|
+
const _0x566bd8 = _0x4403d0;
|
|
615
|
+
return _0x4b1165['member']?.['participantId'] ?? _0x4b1165[_0x566bd8(0x197)]?.['id'] ?? _0x4b1165[_0x566bd8(0x1a6)] ?? '';
|
|
616
|
+
}
|
|
617
|
+
function _0x56442e(_0x26cacf) {
|
|
618
|
+
const _0x317eee = _0x4403d0;
|
|
619
|
+
return _0x26cacf[_0x317eee(_0x362512._0x545348)]?.['name'] ?? _0xe7e545(_0x26cacf);
|
|
620
|
+
}
|
|
621
|
+
async function _0x4a8bb3(_0x468d00) {
|
|
622
|
+
const _0x255163 = _0x4403d0, _0xeff874 = Math[_0x255163(0x282)](_0x468d00['limit'] ?? 0x32, 0x64), _0x45d8ef = await _0x4c5559(), _0x31337e = new URLSearchParams();
|
|
623
|
+
_0x31337e['set'](_0x255163(0x2b7), String(_0xeff874));
|
|
624
|
+
_0x468d00[_0x255163(0x1ac)] ? (_0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x408cef), _0x468d00['threadId']), _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00[_0x255163(_0x4f85a3._0x122b1a)])) : _0x31337e[_0x255163(0x21d)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00['channelId']);
|
|
625
|
+
_0x468d00['before'] && _0x31337e[_0x255163(_0x4f85a3._0x38ad31)](_0x255163(_0x4f85a3._0xf7a33b), String(_0x468d00[_0x255163(0x286)]));
|
|
626
|
+
_0x468d00['after'] !== void 0x0 && _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x56c9e6), String(_0x468d00[_0x255163(0x1fb)]));
|
|
627
|
+
const _0x4c2cd2 = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + '/history?' + _0x31337e[_0x255163(_0x4f85a3._0x5e62be)](), {
|
|
628
|
+
'headers': _0x529f0c,
|
|
629
|
+
'method': _0x255163(_0x4f85a3._0x139529)
|
|
630
|
+
}), _0x3b52de = (_0x4c2cd2[_0x255163(0x229)] ?? [])[_0x255163(_0x4f85a3._0x46971e)](_0xe96b33 => ({
|
|
631
|
+
'attachments': (_0xe96b33[_0x255163(0x15a)] ?? [])[_0x255163(0x243)](_0x580f85 => ({
|
|
632
|
+
'filename': _0x580f85[_0x255163(0x25c)] ?? _0x580f85['id'],
|
|
633
|
+
'id': _0x580f85['id']
|
|
634
|
+
})),
|
|
635
|
+
'content': _0xe96b33[_0x255163(0x28d)] ?? '',
|
|
636
|
+
'createdAt': _0xe96b33['createdAt'],
|
|
637
|
+
'messageId': _0xe96b33['id'],
|
|
638
|
+
'senderName': _0xe96b33[_0x255163(0x1fd)],
|
|
639
|
+
'senderType': _0xfeef44(_0xe96b33['senderParticipantId'], _0x45d8ef),
|
|
640
|
+
'seq': _0xe96b33['eventSeq'] ?? 0x0
|
|
641
|
+
}));
|
|
642
|
+
return {
|
|
643
|
+
'channel': _0x468d00[_0x255163(0x258)],
|
|
644
|
+
'hasMore': _0x4c2cd2[_0x255163(_0x4f85a3._0x219071)]?.[_0x255163(0x204)] ?? ![],
|
|
645
|
+
'messages': _0x3b52de,
|
|
646
|
+
'nextCursor': _0x4c2cd2[_0x255163(_0x4f85a3._0x3ba3ea)]?.[_0x255163(_0x4f85a3._0xf7a33b)]
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
return {
|
|
650
|
+
async 'sendMessage'(_0xeed77) {
|
|
651
|
+
const _0x21f04c = _0x4403d0, _0x31c8ad = await _0x2de7a6(_0xeed77[_0x21f04c(_0x58f306._0x287272)]), _0x1e3f86 = _0xeed77[_0x21f04c(_0x58f306._0x3bdb3c)][_0x21f04c(_0x58f306._0x46d39c)]('@') ? extractMentionedParticipantIds(_0xeed77[_0x21f04c(0x2b5)], await _0x4c5559()) : [], _0x3ff680 = await _0x2f42f1(_0x21f04c(_0x58f306._0x18c597) + _0x58f74a[_0x21f04c(0x1ce)] + '/send', {
|
|
652
|
+
'body': JSON[_0x21f04c(_0x58f306._0x2b8fec)]({
|
|
653
|
+
'attachment_ids': _0xeed77[_0x21f04c(0x29f)],
|
|
654
|
+
'bodyMarkdown': _0xeed77[_0x21f04c(_0x58f306._0x1a2d90)],
|
|
655
|
+
'channelId': _0x31c8ad[_0x21f04c(0x294)],
|
|
656
|
+
..._0x1e3f86[_0x21f04c(_0x58f306._0x49f776)] > 0x0 ? { 'mentionedParticipantIds': _0x1e3f86 } : {},
|
|
657
|
+
'threadId': _0x31c8ad[_0x21f04c(0x1ac)]
|
|
658
|
+
}),
|
|
659
|
+
'headers': _0x529f0c,
|
|
660
|
+
'method': _0x21f04c(_0x58f306._0x59c457)
|
|
661
|
+
});
|
|
662
|
+
return { 'messageId': _0x3ff680['data']?.['id'] ?? '' };
|
|
663
|
+
},
|
|
664
|
+
async 'listSchedules'() {
|
|
665
|
+
const _0x44e0ca = _0x4403d0, _0x1b4401 = await _0x2f42f1(_0x44e0ca(_0x18e6db._0x2f0ea2), {
|
|
666
|
+
'headers': _0x529f0c,
|
|
667
|
+
'method': _0x44e0ca(0x20a)
|
|
668
|
+
});
|
|
669
|
+
return _0x1b4401[_0x44e0ca(_0x18e6db._0x207485)] ?? [];
|
|
670
|
+
},
|
|
671
|
+
async 'claimScheduleRun'(_0xd8b4f0) {
|
|
672
|
+
const _0x2ba834 = _0x4403d0, _0x3928f5 = await _0x2f42f1(_0x2ba834(_0x428f84._0x4913e7), {
|
|
673
|
+
'body': JSON['stringify'](_0xd8b4f0),
|
|
674
|
+
'headers': _0x529f0c,
|
|
675
|
+
'method': 'POST'
|
|
676
|
+
});
|
|
677
|
+
return _0x3928f5[_0x2ba834(0x229)] ?? {
|
|
678
|
+
'granted': ![],
|
|
679
|
+
'runId': null,
|
|
680
|
+
'schedule': null,
|
|
681
|
+
'scheduledFor': _0xd8b4f0[_0x2ba834(_0x428f84._0x527c61)]
|
|
682
|
+
};
|
|
683
|
+
},
|
|
684
|
+
async 'startScheduleRun'(_0xfa03a9) {
|
|
685
|
+
const _0x4e86dd = _0x4403d0, _0x263c9e = await _0x2f42f1(_0x4e86dd(_0x726f5f._0x5b58cc) + encodeURIComponent(_0xfa03a9[_0x4e86dd(0x29d)]) + _0x4e86dd(_0x726f5f._0x4ed5d8), {
|
|
686
|
+
'body': JSON[_0x4e86dd(0x203)]({}),
|
|
687
|
+
'headers': _0x529f0c,
|
|
688
|
+
'method': _0x4e86dd(_0x726f5f._0x402775)
|
|
689
|
+
});
|
|
690
|
+
return _0x263c9e[_0x4e86dd(0x229)] ?? {
|
|
691
|
+
'claimedByDaemonId': '',
|
|
692
|
+
'id': _0xfa03a9['runId'],
|
|
693
|
+
'scheduleId': '',
|
|
694
|
+
'status': 'running'
|
|
695
|
+
};
|
|
696
|
+
},
|
|
697
|
+
async 'finishScheduleRun'(_0x40f712) {
|
|
698
|
+
const _0x264a62 = _0x4403d0, _0x201d20 = await _0x2f42f1(_0x264a62(0x183) + encodeURIComponent(_0x40f712['runId']) + _0x264a62(_0x22f4c4._0x9a4e10), {
|
|
699
|
+
'body': JSON[_0x264a62(0x203)]({
|
|
700
|
+
'error': _0x40f712[_0x264a62(_0x22f4c4._0x95b5bc)],
|
|
701
|
+
'resultJson': _0x40f712[_0x264a62(_0x22f4c4._0x505049)],
|
|
702
|
+
'status': _0x40f712[_0x264a62(_0x22f4c4._0x2bf9c6)]
|
|
703
|
+
}),
|
|
704
|
+
'headers': _0x529f0c,
|
|
705
|
+
'method': 'POST'
|
|
706
|
+
});
|
|
707
|
+
return _0x201d20['data'] ?? {
|
|
708
|
+
'nextRunAt': null,
|
|
709
|
+
'run': {
|
|
710
|
+
'claimedByDaemonId': '',
|
|
711
|
+
'id': _0x40f712[_0x264a62(0x29d)],
|
|
712
|
+
'scheduleId': '',
|
|
713
|
+
'status': _0x40f712['status']
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
},
|
|
717
|
+
async 'listTasks'(_0xd5e6ee) {
|
|
718
|
+
const _0xe76bb = _0x4403d0, _0x112c01 = new URLSearchParams();
|
|
719
|
+
return _0x112c01['set']('channel', _0xd5e6ee['channel']), _0xd5e6ee[_0xe76bb(_0x26df12._0x5969db)] && _0x112c01[_0xe76bb(_0x26df12._0x2c0a25)](_0xe76bb(_0x26df12._0x5969db), _0xd5e6ee[_0xe76bb(_0x26df12._0x24059a)]), _0xdd71cc(_0xe76bb(0x179) + _0x58f74a[_0xe76bb(0x1ce)] + _0xe76bb(0x28a) + _0x112c01[_0xe76bb(0x173)](), {
|
|
720
|
+
'headers': _0x529f0c,
|
|
721
|
+
'method': 'GET'
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
async 'createTasks'(_0x4ff2ba) {
|
|
725
|
+
const _0x5627f7 = _0x4403d0;
|
|
726
|
+
return _0xdd71cc(_0x5627f7(0x179) + _0x58f74a[_0x5627f7(0x1ce)] + '/tasks', {
|
|
727
|
+
'body': JSON[_0x5627f7(_0x203839._0x5d1bf4)]({
|
|
728
|
+
..._0x4ff2ba,
|
|
729
|
+
'idempotency_key': _0x1ed405(_0x5627f7(_0x203839._0x1085bd), _0x4ff2ba)
|
|
730
|
+
}),
|
|
731
|
+
'headers': _0x529f0c,
|
|
732
|
+
'method': _0x5627f7(_0x203839._0x4030c2)
|
|
733
|
+
});
|
|
734
|
+
},
|
|
735
|
+
async 'claimTasks'(_0x554b7b) {
|
|
736
|
+
const _0x3d4570 = _0x4403d0;
|
|
737
|
+
return _0xdd71cc(_0x3d4570(0x179) + _0x58f74a[_0x3d4570(0x1ce)] + _0x3d4570(_0x4bf035._0x207b60), {
|
|
738
|
+
'body': JSON[_0x3d4570(_0x4bf035._0x3eb81e)]({
|
|
739
|
+
..._0x554b7b,
|
|
740
|
+
'idempotency_key': _0x1ed405(_0x3d4570(0x166), _0x554b7b)
|
|
741
|
+
}),
|
|
742
|
+
'headers': _0x529f0c,
|
|
743
|
+
'method': _0x3d4570(_0x4bf035._0x1fc250)
|
|
744
|
+
});
|
|
745
|
+
},
|
|
746
|
+
async 'unclaimTask'(_0x2ce56d) {
|
|
747
|
+
const _0x4b2326 = _0x4403d0;
|
|
748
|
+
return _0xdd71cc('/internal/agent/' + _0x58f74a['agentId'] + '/tasks/unclaim', {
|
|
749
|
+
'body': JSON[_0x4b2326(0x203)]({
|
|
750
|
+
..._0x2ce56d,
|
|
751
|
+
'idempotency_key': _0x1ed405(_0x4b2326(0x2bd), _0x2ce56d)
|
|
752
|
+
}),
|
|
753
|
+
'headers': _0x529f0c,
|
|
754
|
+
'method': _0x4b2326(_0x1d729d._0x3324c1)
|
|
755
|
+
});
|
|
756
|
+
},
|
|
757
|
+
async 'updateTaskStatus'(_0x4bf836) {
|
|
758
|
+
const _0x3cac92 = _0x4403d0;
|
|
759
|
+
return _0xdd71cc(_0x3cac92(_0x5164c6._0x2eb1fc) + _0x58f74a[_0x3cac92(_0x5164c6._0x11c292)] + '/tasks/update-status', {
|
|
760
|
+
'body': JSON[_0x3cac92(_0x5164c6._0x2cf270)]({
|
|
761
|
+
..._0x4bf836,
|
|
762
|
+
'idempotency_key': _0x1ed405(_0x3cac92(_0x5164c6._0xadb360), _0x4bf836)
|
|
763
|
+
}),
|
|
764
|
+
'headers': _0x529f0c,
|
|
765
|
+
'method': _0x3cac92(0x2a0)
|
|
766
|
+
});
|
|
767
|
+
},
|
|
768
|
+
async 'uploadFile'(_0x438191) {
|
|
769
|
+
const _0x34f0f6 = _0x4403d0, _0x525ae1 = await _0x2de7a6(_0x438191[_0x34f0f6(_0x275824._0x3ef129)]);
|
|
770
|
+
if (_0x525ae1[_0x34f0f6(0x1ac)])
|
|
771
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
772
|
+
const _0x5ffbca = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + _0x34f0f6(0x237), {
|
|
773
|
+
'body': JSON[_0x34f0f6(0x203)]({
|
|
774
|
+
'channel': _0x525ae1['target'],
|
|
775
|
+
'contentBase64': _0x438191[_0x34f0f6(_0x275824._0x1df1af)],
|
|
776
|
+
'contentType': _0x438191[_0x34f0f6(0x165)],
|
|
777
|
+
'originalFilename': _0x438191[_0x34f0f6(_0x275824._0x2f970d)]
|
|
778
|
+
}),
|
|
779
|
+
'headers': _0x529f0c,
|
|
780
|
+
'method': _0x34f0f6(0x2a0)
|
|
781
|
+
});
|
|
782
|
+
return {
|
|
783
|
+
'attachmentId': _0x5ffbca[_0x34f0f6(0x229)]?.['id'] ?? '',
|
|
784
|
+
'filename': _0x5ffbca[_0x34f0f6(0x229)]?.['originalFilename'] ?? _0x438191[_0x34f0f6(0x25c)],
|
|
785
|
+
'sizeBytes': _0x5ffbca['data']?.[_0x34f0f6(_0x275824._0x23e6eb)] ?? 0x0
|
|
786
|
+
};
|
|
787
|
+
},
|
|
788
|
+
async 'downloadAttachment'(_0x369bb1) {
|
|
789
|
+
const _0x5558b8 = _0x4403d0, _0x2bb11c = await _0x2f42f1('/api/attachments/' + _0x369bb1, {
|
|
790
|
+
'headers': _0x529f0c,
|
|
791
|
+
'method': 'GET'
|
|
792
|
+
}), _0x108e51 = new AbortController(), _0x4ff8a6 = setTimeout(() => _0x108e51[_0x5558b8(0x206)](), _0x1785a2);
|
|
793
|
+
try {
|
|
794
|
+
const _0x301054 = await _0x96fd5d(_0xb724a0 + '/api/attachments/' + _0x369bb1 + _0x5558b8(0x1d3), {
|
|
795
|
+
'headers': _0x529f0c,
|
|
796
|
+
'method': _0x5558b8(0x20a),
|
|
797
|
+
'signal': _0x108e51[_0x5558b8(_0x55ce3c._0x5e5b35)]
|
|
798
|
+
});
|
|
799
|
+
if (!_0x301054['ok'])
|
|
800
|
+
throw new Error(_0x5558b8(_0x55ce3c._0x589e3a) + _0x301054[_0x5558b8(0x1c0)]);
|
|
801
|
+
return {
|
|
802
|
+
'contentType': _0x2bb11c['data']?.[_0x5558b8(_0x55ce3c._0x20f358)] ?? _0x301054[_0x5558b8(_0x55ce3c._0x4f6993)]['get']('content-type') ?? 'application/octet-stream',
|
|
803
|
+
'data': Buffer[_0x5558b8(0x1c3)](await _0x301054['arrayBuffer']()),
|
|
804
|
+
'originalFilename': _0x2bb11c['data']?.[_0x5558b8(0x1ad)]
|
|
805
|
+
};
|
|
806
|
+
} finally {
|
|
807
|
+
clearTimeout(_0x4ff8a6);
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
async 'listServer'() {
|
|
811
|
+
return _0x4c5559();
|
|
812
|
+
},
|
|
813
|
+
async 'readHistory'(_0x2fd275) {
|
|
814
|
+
const _0x173a65 = _0x4403d0, _0x31a8f5 = await _0x2de7a6(_0x2fd275[_0x173a65(_0x1a7f0b._0x44b3f4)]);
|
|
815
|
+
return _0x4a8bb3({
|
|
816
|
+
'after': _0x2fd275[_0x173a65(0x1fb)],
|
|
817
|
+
'before': _0x2fd275[_0x173a65(_0x1a7f0b._0x309fbc)],
|
|
818
|
+
'channelId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x581fa6)],
|
|
819
|
+
'channelTarget': _0x31a8f5['target'],
|
|
820
|
+
'limit': _0x2fd275[_0x173a65(_0x1a7f0b._0x2621aa)],
|
|
821
|
+
'threadId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x26de95)]
|
|
822
|
+
});
|
|
823
|
+
},
|
|
824
|
+
async 'checkMessages'() {
|
|
825
|
+
const _0x2fbecb = _0x4403d0, _0xe99583 = new URLSearchParams();
|
|
826
|
+
_0xe99583[_0x2fbecb(0x21d)](_0x2fbecb(0x284), String(_0x5ee29d));
|
|
827
|
+
const _0x56ce68 = _0xe99583[_0x2fbecb(0x173)](), _0x5524e2 = await _0x2f42f1(_0x2fbecb(_0x1c7d90._0x22a04d) + _0x58f74a[_0x2fbecb(_0x1c7d90._0x1e5c31)] + _0x2fbecb(_0x1c7d90._0xda23c1) + (_0x56ce68 ? '?' + _0x56ce68 : ''), {
|
|
828
|
+
'headers': _0x529f0c,
|
|
829
|
+
'method': 'GET'
|
|
830
|
+
}), _0x14383a = _0x5524e2[_0x2fbecb(_0x1c7d90._0x381049)] ?? [], _0x4ab14d = _0x5524e2[_0x2fbecb(0x1d2)]?.[_0x2fbecb(0x20b)], _0x2c9f15 = _0x4ab14d !== void 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x4ab14d) : _0x14383a['length'] > 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x14383a[_0x14383a[_0x2fbecb(0x1e3)] - 0x1][_0x2fbecb(0x1fa)]) : _0x5ee29d, _0x2cca88 = await _0x4c5559(), _0x125b2c = new Map(_0x2cca88[_0x2fbecb(0x231)][_0x2fbecb(0x243)](_0x4c8926 => [
|
|
831
|
+
_0x4c8926['id'],
|
|
832
|
+
_0x4c8926
|
|
833
|
+
])), _0x44f94b = _0x14383a['filter'](_0x59b395 => _0x59b395[_0x2fbecb(0x196)] === _0x2fbecb(0x256)), _0x3f3688 = new Map();
|
|
834
|
+
for (const _0x27222a of _0x44f94b) {
|
|
835
|
+
const _0x114909 = asRecord(_0x27222a[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x3453f6 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x38afca)] === _0x2fbecb(0x291) ? _0x114909['channelId'] : '';
|
|
836
|
+
if (!_0x3453f6)
|
|
837
|
+
continue;
|
|
838
|
+
const _0x4a1fd8 = typeof _0x114909[_0x2fbecb(0x1ac)] === 'string' ? _0x114909[_0x2fbecb(_0x1c7d90._0x4b0698)] : void 0x0, _0x2be9d3 = typeof _0x114909[_0x2fbecb(0x293)] === _0x2fbecb(_0x1c7d90._0x302280) ? _0x114909[_0x2fbecb(0x293)] : void 0x0, _0xebf534 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)] === _0x2fbecb(_0x1c7d90._0x4d8357) && Number[_0x2fbecb(0x2a6)](_0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)]) ? _0x114909[_0x2fbecb(0x1bc)] : void 0x0, _0x4add42 = Boolean(_0x4a1fd8 && (!_0x2be9d3 || _0x27222a['aggregateId'] !== _0x2be9d3)), _0x39de24 = _0x4add42 ? _0x3453f6 + ':' + _0x4a1fd8 : _0x3453f6, _0x3c66f5 = _0x3f3688[_0x2fbecb(0x268)](_0x39de24) ?? {
|
|
839
|
+
'aggregateIds': [],
|
|
840
|
+
'channelId': _0x3453f6,
|
|
841
|
+
'entries': new Map(),
|
|
842
|
+
'isThreadReply': _0x4add42,
|
|
843
|
+
'rootMessageId': _0x2be9d3,
|
|
844
|
+
'threadNumber': _0xebf534,
|
|
845
|
+
'threadId': _0x4add42 ? _0x4a1fd8 : void 0x0
|
|
846
|
+
};
|
|
847
|
+
_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] == null && _0xebf534 != null && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] = _0xebf534), !_0x3c66f5[_0x2fbecb(_0x1c7d90._0x3e062a)] && _0x2be9d3 && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x194972)] = _0x2be9d3), _0x3c66f5[_0x2fbecb(_0x1c7d90._0x30404c)][_0x2fbecb(0x209)](_0x27222a[_0x2fbecb(0x19d)]), _0x3c66f5[_0x2fbecb(0x1ba)]['set'](_0x27222a[_0x2fbecb(0x19d)], {
|
|
848
|
+
'payloadJson': _0x27222a[_0x2fbecb(0x1a3)],
|
|
849
|
+
'seq': _0x27222a[_0x2fbecb(_0x1c7d90._0x29f60b)]
|
|
850
|
+
}), _0x3f3688[_0x2fbecb(0x21d)](_0x39de24, _0x3c66f5);
|
|
851
|
+
}
|
|
852
|
+
const _0x1eaaa8 = [];
|
|
853
|
+
for (const _0x269be1 of _0x3f3688[_0x2fbecb(_0x1c7d90._0x36b08c)]()) {
|
|
854
|
+
const {
|
|
855
|
+
channelId: _0x546a4e,
|
|
856
|
+
threadId: _0x579065,
|
|
857
|
+
rootMessageId: _0x1b738f,
|
|
858
|
+
threadNumber: _0x1edaea,
|
|
859
|
+
aggregateIds: _0x4c45cf,
|
|
860
|
+
isThreadReply: _0x2942ec,
|
|
861
|
+
entries: _0x3d7e3c
|
|
862
|
+
} = _0x269be1, _0x4926ed = _0x125b2c[_0x2fbecb(0x268)](_0x546a4e), _0x55d225 = _0x4926ed?.[_0x2fbecb(0x228)] ?? _0x546a4e, _0x2a64b5 = _0x4926ed?.[_0x2fbecb(0x1aa)] === 'dm' ? _0x2fbecb(0x18b) + _0x55d225 : '#' + _0x55d225, _0x10a5c4 = {
|
|
863
|
+
'channelTarget': _0x2a64b5,
|
|
864
|
+
'rootMessageId': _0x1b738f,
|
|
865
|
+
'threadId': _0x579065,
|
|
866
|
+
'threadNumber': _0x1edaea
|
|
867
|
+
}, _0x10210e = await _0x4a8bb3({
|
|
868
|
+
'channelId': _0x546a4e,
|
|
869
|
+
'channelTarget': _0x2a64b5,
|
|
870
|
+
'limit': Math[_0x2fbecb(0x185)](_0x4c45cf[_0x2fbecb(_0x1c7d90._0x2b8279)], 0x32),
|
|
871
|
+
'threadId': _0x579065
|
|
872
|
+
}), _0x3f95c2 = new Map(_0x10210e['messages'][_0x2fbecb(_0x1c7d90._0x3aeab6)](_0xf7f0a0 => [
|
|
873
|
+
_0xf7f0a0[_0x2fbecb(0x160)],
|
|
874
|
+
_0xf7f0a0
|
|
875
|
+
])), _0x10eded = _0x579065 ? _0x86ee5(_0x10a5c4) : _0x2a64b5, _0x1e3634 = _0x4570c9 ? _0x2942ec && _0x4a54c2(_0x4570c9, _0x10a5c4) : !![], _0x4689d8 = _0x2942ec ? _0x1e3634 && _0x4570c9 ? _0x4570c9 : _0x10eded : _0x2a64b5;
|
|
876
|
+
for (const _0x2184db of _0x4c45cf) {
|
|
877
|
+
if (!_0x1e3634)
|
|
878
|
+
continue;
|
|
879
|
+
const _0x1599c3 = _0x3f95c2[_0x2fbecb(0x268)](_0x2184db);
|
|
880
|
+
if (_0x1599c3) {
|
|
881
|
+
_0x1eaaa8[_0x2fbecb(0x209)]({
|
|
882
|
+
'attachments': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1228f7)],
|
|
883
|
+
'content': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1178cd)],
|
|
884
|
+
'createdAt': _0x1599c3[_0x2fbecb(_0x1c7d90._0x47cf60)],
|
|
885
|
+
'messageId': _0x1599c3[_0x2fbecb(_0x1c7d90._0x42151a)],
|
|
886
|
+
'senderName': _0x1599c3[_0x2fbecb(0x15c)],
|
|
887
|
+
'senderType': _0x1599c3[_0x2fbecb(0x28c)],
|
|
888
|
+
'target': _0x4689d8
|
|
889
|
+
});
|
|
890
|
+
continue;
|
|
891
|
+
}
|
|
892
|
+
const _0x220569 = _0x3d7e3c[_0x2fbecb(_0x1c7d90._0x79ddba)](_0x2184db);
|
|
893
|
+
if (_0x220569) {
|
|
894
|
+
const _0x823c7 = asRecord(_0x220569[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x33ced0 = typeof _0x823c7[_0x2fbecb(_0x1c7d90._0x27649e)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x1fd)] : '', _0x24cff2 = typeof _0x823c7[_0x2fbecb(0x28d)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x28d)] : '';
|
|
895
|
+
_0x33ced0 && _0x24cff2 && _0x1eaaa8[_0x2fbecb(0x209)]({
|
|
896
|
+
'attachments': [],
|
|
897
|
+
'content': _0x24cff2,
|
|
898
|
+
'createdAt': new Date()[_0x2fbecb(0x1a9)](),
|
|
899
|
+
'messageId': _0x2184db,
|
|
900
|
+
'senderName': _0x33ced0,
|
|
901
|
+
'senderType': _0xfeef44(_0x33ced0, _0x2cca88),
|
|
902
|
+
'target': _0x4689d8
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
return _0x2c9f15 > 0x0 && await _0x4108fe(_0x2c9f15), _0x2c9f15 > _0x5ee29d && (_0x5ee29d = _0x2c9f15), { 'messages': _0x1eaaa8 };
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
function toLocalTime(_0x38c0f2) {
|
|
912
|
+
const _0x2950b1 = {
|
|
913
|
+
_0x40dfa9: 0x2a7,
|
|
914
|
+
_0x399ca6: 0x25a,
|
|
915
|
+
_0x87e06b: 0x279
|
|
916
|
+
}, _0x438cf1 = _0x4ab0ed, _0x446f76 = new Date(_0x38c0f2);
|
|
917
|
+
if (Number[_0x438cf1(_0x2950b1._0x40dfa9)](_0x446f76[_0x438cf1(0x1e6)]()))
|
|
918
|
+
return _0x38c0f2;
|
|
919
|
+
const _0xec39f7 = _0x2b0f11 => String(_0x2b0f11)[_0x438cf1(0x1eb)](0x2, '0');
|
|
920
|
+
return _0x446f76[_0x438cf1(0x1c8)]() + '-' + _0xec39f7(_0x446f76[_0x438cf1(0x20e)]() + 0x1) + '-' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x399ca6)]()) + '\x20' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x87e06b)]()) + ':' + _0xec39f7(_0x446f76['getMinutes']()) + ':' + _0xec39f7(_0x446f76[_0x438cf1(0x195)]());
|
|
921
|
+
}
|
|
922
|
+
function formatAttachmentSuffix(_0x12e982) {
|
|
923
|
+
const _0x41a2f5 = {
|
|
924
|
+
_0x3ab293: 0x1e3,
|
|
925
|
+
_0x5b3131: 0x2a5
|
|
926
|
+
}, _0x268b31 = _0x4ab0ed;
|
|
927
|
+
if (!_0x12e982 || _0x12e982['length'] === 0x0)
|
|
928
|
+
return '';
|
|
929
|
+
return '\x20[' + _0x12e982[_0x268b31(0x1e3)] + _0x268b31(0x170) + (_0x12e982[_0x268b31(_0x41a2f5._0x3ab293)] > 0x1 ? 's' : '') + ':\x20' + _0x12e982['map'](_0x712bc0 => _0x712bc0[_0x268b31(0x25c)] + _0x268b31(0x249) + _0x712bc0['id'] + ')')[_0x268b31(_0x41a2f5._0x5b3131)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
930
|
+
}
|
|
931
|
+
function _0x4879() {
|
|
932
|
+
const _0x2257c8 = [
|
|
933
|
+
'lIbnzxnZywDLieLeoIa',
|
|
934
|
+
'ihn0yxr1CZ0',
|
|
935
|
+
'zMLSDgvY',
|
|
936
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
937
|
+
'Bg9JywXLq29TCgfYzq',
|
|
938
|
+
'y29UBMvJDa',
|
|
939
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
940
|
+
'BgLZDf90yxnRCW',
|
|
941
|
+
'nZG0ntnuvMP0vKW',
|
|
942
|
+
'D3nZoG',
|
|
943
|
+
'y2fJAgveAxi',
|
|
944
|
+
'v29YA2vYici',
|
|
945
|
+
'BgvUz3rO',
|
|
946
|
+
'DhjPBq',
|
|
947
|
+
'D29YA2vYtw9Kzq',
|
|
948
|
+
'z2v0vgLTzq',
|
|
949
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
950
|
+
'ywDLBNq',
|
|
951
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
952
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
953
|
+
'CgfKu3rHCNq',
|
|
954
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
955
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
956
|
+
'DgL0Bgu',
|
|
957
|
+
'igzHAwXLzdOG',
|
|
958
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
959
|
+
'zw51Bq',
|
|
960
|
+
'Aw5FCMv2Awv3',
|
|
961
|
+
'DgfZAY0',
|
|
962
|
+
'zgfLBw9UqxbPs2v5',
|
|
963
|
+
'C3bHD25Lza',
|
|
964
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
965
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
966
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
967
|
+
'kg5VBMuP',
|
|
968
|
+
'C2vX',
|
|
969
|
+
'ywz0zxi',
|
|
970
|
+
'DxbSB2fKx2zPBgu',
|
|
971
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
972
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
973
|
+
'ywjVCNrLza',
|
|
974
|
+
'lNnSB2nR',
|
|
975
|
+
'D29YA2vYCW',
|
|
976
|
+
'BgLZDfrHC2TZ',
|
|
977
|
+
'C3rYAw5NAwz5',
|
|
978
|
+
'AgfZtw9Yzq',
|
|
979
|
+
'mJyXnZa0neLrr2zIta',
|
|
980
|
+
'ywjVCNq',
|
|
981
|
+
'mtG5mZCYoenIq2DKvq',
|
|
982
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
983
|
+
'ChvZAa',
|
|
4
984
|
'r0vu',
|
|
5
|
-
'
|
|
985
|
+
'y3vYC29Y',
|
|
986
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
987
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
988
|
+
'z2v0tw9UDgG',
|
|
6
989
|
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
7
|
-
'
|
|
8
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
990
|
+
'C3bHD25FD29YA2vY',
|
|
9
991
|
'yxbWBgLJyxrPB24VEMLW',
|
|
10
|
-
'
|
|
11
|
-
'
|
|
12
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
13
|
-
'lIbtzxnZAw9UieLeoIa',
|
|
14
|
-
'BwvZC2fNzuLK',
|
|
15
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
16
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
17
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
18
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
19
|
-
'l3vWBg9Hza',
|
|
20
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
21
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
22
|
-
'Dgv4Dc9JC3y',
|
|
23
|
-
'y2f0y2G',
|
|
24
|
-
'zMfPBgvK',
|
|
25
|
-
'uefuq0G',
|
|
26
|
-
'y29UDgvUDejHC2u2na',
|
|
27
|
-
'C29YDa',
|
|
28
|
-
'lsaJ',
|
|
29
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
992
|
+
'ywDNCMvNyxrLswrZ',
|
|
993
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
30
994
|
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
31
|
-
'Aw5FChjVz3jLC3m',
|
|
32
995
|
'w3nLCt0',
|
|
33
|
-
'DgfZA19Pza',
|
|
34
|
-
'zMLSzv9WyxrO',
|
|
35
|
-
'C2vYDMvYvxjS',
|
|
36
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
37
|
-
'z2v0',
|
|
38
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
39
|
-
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
40
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
41
|
-
'CMvWBgfJzq',
|
|
42
|
-
'BMv4Den1CNnVCG',
|
|
43
|
-
'yxjNDG',
|
|
44
|
-
'iYmJieH1BwfUCW',
|
|
45
|
-
'lsba',
|
|
46
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
47
|
-
'ywDNCMvNyxrLswq',
|
|
48
|
-
'iokaLca',
|
|
49
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
50
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
51
|
-
'DgHYzwfKswq',
|
|
52
|
-
'Bwf4',
|
|
53
|
-
'AgfZtw9Yzq',
|
|
54
|
-
'C2L6zuj5DgvZ',
|
|
55
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
56
|
-
'z2v0twLUDxrLCW',
|
|
57
|
-
'zgf0yq',
|
|
58
|
-
'ihr5Cgu9ywDLBNq',
|
|
59
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
60
|
-
'ig1LC3nHz2u9',
|
|
61
|
-
'zgLNzxn0',
|
|
62
|
-
'mti0mdm5mLnHsvvhsa',
|
|
63
|
-
'y2XPzw50',
|
|
64
|
-
'y2XHAw1FDgfZA3m',
|
|
65
|
-
'kg5VBMuP',
|
|
66
|
-
'y3jLyxrLx3rHC2TZ',
|
|
67
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
68
|
-
'Dw5RBM93BG',
|
|
69
|
-
'icHPzdO',
|
|
70
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
71
|
-
'l2zPBMLZAa',
|
|
72
|
-
'Aw1Hz2uVANbLzW',
|
|
73
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
74
|
-
'zgLZCgXHEu5HBwu',
|
|
75
|
-
'ihn0yxr1CZ0',
|
|
76
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
77
|
-
'y3jLyxrLzef0',
|
|
78
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
79
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
80
|
-
'yMvMB3jL',
|
|
81
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
82
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
83
|
-
'C2vUzgvYtMfTzq',
|
|
84
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
85
|
-
'zMLSzw5HBwu',
|
|
86
|
-
'C2XPy2u',
|
|
87
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
88
|
-
'sfruuca',
|
|
89
|
-
'ntyZmdvcEMTus1K',
|
|
90
|
-
'ywXS',
|
|
91
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
92
|
-
'CMvHzf9OAxn0B3j5',
|
|
93
996
|
'CMvHC29U',
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'D29YA2vYtw9Kzq',
|
|
99
|
-
'y2HLy2TnzxnZywDLCW',
|
|
100
|
-
'mteZmti3m0HVtwLcDW',
|
|
101
|
-
'DgL0Bgu',
|
|
102
|
-
'zNjVBq',
|
|
103
|
-
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
104
|
-
'B3b0Aw9UywW',
|
|
105
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
106
|
-
'Dgv4Dc9WBgfPBG',
|
|
107
|
-
'ANnVBG',
|
|
108
|
-
'ls1ZzxnZAw9UlwLK',
|
|
109
|
-
'DxbSB2fKx2zPBgu',
|
|
110
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
111
|
-
'zxjYB3i',
|
|
112
|
-
'mJi5mti4oxLxtfnZwq',
|
|
113
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
114
|
-
'BwvZC2fNzq',
|
|
115
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
116
|
-
'v29YA2vYici',
|
|
117
|
-
'Bg9JywXLq29TCgfYzq',
|
|
118
|
-
'zgfLBw9UqxbPs2v5',
|
|
119
|
-
'DhjPBq',
|
|
120
|
-
'BgLZDfnLCNzLCG',
|
|
121
|
-
'BgLZDf90yxnRCW',
|
|
122
|
-
'AxnbyNnVBhv0zq',
|
|
123
|
-
'CMvZDwX0',
|
|
124
|
-
'ihrPBwu9',
|
|
125
|
-
'y2HHBM5LBe5HBwu',
|
|
126
|
-
'BwvTyMvYCW',
|
|
127
|
-
'ywDLBNrjza',
|
|
128
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
129
|
-
'CMvHzeHPC3rVCNK',
|
|
130
|
-
'BgLZDf9Zzxj2zxi',
|
|
131
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
132
|
-
'yxr0ywnOBwvUDhm',
|
|
133
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
134
|
-
'C2vYDMvYx21LBwjLCNm',
|
|
135
|
-
'cGOTls0G',
|
|
136
|
-
'yMfZzty0',
|
|
137
|
-
'CgfYDgLJAxbHBNrjza',
|
|
138
|
-
'ywDLBNq',
|
|
139
|
-
'D3nZoG',
|
|
140
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
141
|
-
'z2v0vgLTzq',
|
|
142
|
-
'zxH0BMfTzq',
|
|
143
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
997
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
998
|
+
'lIbtzxnZAw9UieLeoIa',
|
|
999
|
+
'lsaJ',
|
|
1000
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
144
1001
|
'y29UDgvUDc10ExbL',
|
|
145
|
-
'BM93',
|
|
146
|
-
'BwvTyMvY',
|
|
147
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
148
|
-
'y2XHAw1uyxnRCW',
|
|
149
1002
|
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
1003
|
+
'C2v0',
|
|
1004
|
+
'zMLUza',
|
|
1005
|
+
'CgfYDgLJAxbHBNrZ',
|
|
1006
|
+
'zgvZDhjVEwvK',
|
|
1007
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1008
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1009
|
+
'zMfPBgvK',
|
|
1010
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1011
|
+
'l3n0yxj0',
|
|
1012
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1013
|
+
'C2L6zuj5DgvZ',
|
|
1014
|
+
'BMfTzq',
|
|
1015
|
+
'zgf0yq',
|
|
153
1016
|
'C2L6zq',
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
1017
|
+
'y3jLyxrLvgfZA3m',
|
|
1018
|
+
'Aw1Hz2uVANbLzW',
|
|
1019
|
+
'nJyWDKz1Dvfg',
|
|
1020
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1021
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1022
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1023
|
+
'y2HHBM5LBhm',
|
|
1024
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1025
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
1026
|
+
'DMfSDwvZ',
|
|
1027
|
+
'CMvZDwX0',
|
|
1028
|
+
'ls1Hz2vUDc1Pza',
|
|
1029
|
+
'l3vWBg9Hza',
|
|
1030
|
+
'nNvuvu9WzG',
|
|
1031
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1032
|
+
'iIbUB3qGzM91BMq',
|
|
1033
|
+
'ig1LC3nHz2vZkqOk',
|
|
1034
|
+
'sfruuca',
|
|
166
1035
|
'C29Tzq',
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
1036
|
+
'ywDLBNrZ',
|
|
1037
|
+
'C2vUzf9TzxnZywDL',
|
|
1038
|
+
'y2XPzw50',
|
|
1039
|
+
'v29YA2vYia',
|
|
1040
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1041
|
+
'BwfW',
|
|
1042
|
+
'lMjPBG',
|
|
1043
|
+
'DgHYzwfKvgfYz2v0',
|
|
1044
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1045
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1046
|
+
'l3nLCNzLCG',
|
|
1047
|
+
'icHPzdO',
|
|
1048
|
+
'ndKZmtC0oevkEefUwq',
|
|
1049
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1050
|
+
'BwvTyMvYCW',
|
|
1051
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1052
|
+
'iJOGC3rHDhvZpq',
|
|
1053
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
178
1054
|
'B3bLBL9PC3n1zxm',
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
1055
|
+
'C2HHmJu2',
|
|
1056
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1057
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1058
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1059
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1060
|
+
'BwvZC2fNzq',
|
|
1061
|
+
'y2XHAw1uyxnRCW',
|
|
1062
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1063
|
+
'CMvZDwX0sNnVBG',
|
|
1064
|
+
'z2v0rgf0zq',
|
|
1065
|
+
'D29YA19RzxK',
|
|
1066
|
+
'zMLSzw5HBwu',
|
|
1067
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1068
|
+
'y3jLyxrLzef0',
|
|
1069
|
+
'ChjVDg9JB2W',
|
|
187
1070
|
'yxbWBgLJyxrPB24VANnVBG',
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'y3vYC29Y',
|
|
206
|
-
'y2HHBM5LBhm',
|
|
1071
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1072
|
+
'zgvZy3jPChrPB24',
|
|
1073
|
+
'zxjYB3i',
|
|
1074
|
+
'lsba',
|
|
1075
|
+
'C2vUze1LC3nHz2u',
|
|
1076
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1077
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1078
|
+
'z2v0',
|
|
1079
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1080
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1081
|
+
'C3rHCNrLza',
|
|
1082
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1083
|
+
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
1084
|
+
'y2HHBM5LBe5HBwu',
|
|
1085
|
+
'iYmJieH1BwfUCW',
|
|
1086
|
+
'zgLNzxn0',
|
|
1087
|
+
'cGOTls0G',
|
|
207
1088
|
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
208
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
209
|
-
'CM9VDe1LC3nHz2vjza',
|
|
210
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
211
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
212
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
213
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
214
|
-
'zMLSDgvY',
|
|
215
|
-
'lcb3B3jRx2TLEtOG',
|
|
216
|
-
'zw51Bq',
|
|
217
|
-
'khvUA25VD24P',
|
|
218
|
-
'y2HHDa',
|
|
219
|
-
'y2HHBM5LBa',
|
|
220
|
-
'A2LUza',
|
|
221
1089
|
'AhvTyw5Z',
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'BwvKAxvT',
|
|
226
|
-
'l3jLy2vPDMu',
|
|
227
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
228
|
-
'l3rHC2TZpW',
|
|
229
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
230
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
231
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
232
|
-
'ChvZAa',
|
|
233
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
234
|
-
'Aw5FCMv2Awv3',
|
|
235
|
-
'C2vYDMvY',
|
|
236
|
-
'xsba',
|
|
1090
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1091
|
+
'ig1ZzZ0',
|
|
1092
|
+
'CMvJB3jK',
|
|
237
1093
|
'Dgv4Da',
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'
|
|
1094
|
+
'yxjYyxLcDwzMzxi',
|
|
1095
|
+
'z2v0sg91CNm',
|
|
1096
|
+
'C2XPy2u',
|
|
1097
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGBM90ignVBMzPz3vYzwqP',
|
|
1098
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1099
|
+
'Agv4',
|
|
1100
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1101
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1102
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1103
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1104
|
+
'BwLU',
|
|
1105
|
+
'kgXLz2fJEsK',
|
|
1106
|
+
'ywz0zxjtzxe',
|
|
1107
|
+
'Aw5JBhvKzxm',
|
|
1108
|
+
'yMvMB3jL',
|
|
1109
|
+
'DMLLD19MAwXL',
|
|
1110
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1111
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1112
|
+
'l3rHC2TZpW',
|
|
1113
|
+
'Ahr0Chm6',
|
|
1114
|
+
'C2vUzgvYvhLWzq',
|
|
1115
|
+
'yM9KEu1HCMTKB3DU',
|
|
1116
|
+
'mtm3mJeWEfv4qxjQ',
|
|
1117
|
+
'B3b0Aw9UywW',
|
|
1118
|
+
'AxnbCNjHEq',
|
|
241
1119
|
'C3rYAw5N',
|
|
1120
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1121
|
+
'CM9VDe1LC3nHz2vjza',
|
|
242
1122
|
'y2HHBM5LBeLK',
|
|
243
|
-
'
|
|
1123
|
+
'zMLSzxnFy2HHBMDLza',
|
|
1124
|
+
'C2vYDMvY',
|
|
1125
|
+
'AgfZ',
|
|
1126
|
+
'C2f2zq',
|
|
1127
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1128
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1129
|
+
'C3vJy2vZCW',
|
|
1130
|
+
'AhjLzG',
|
|
1131
|
+
'CNvUswq',
|
|
1132
|
+
'nJeZmdyXnursyKroCa',
|
|
1133
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1134
|
+
'ue9tva',
|
|
1135
|
+
'zMLSzv9WyxrO',
|
|
1136
|
+
'BwvZC2fNzxm',
|
|
1137
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1138
|
+
'Aw1Hz2uVCg5N',
|
|
1139
|
+
'AM9PBG',
|
|
1140
|
+
'AxnjBNrLz2vY',
|
|
1141
|
+
'Axnoyu4',
|
|
1142
|
+
'CxvLDwvK',
|
|
1143
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1144
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1145
|
+
'AxngAwXL',
|
|
1146
|
+
'CMvZCg9UC2u',
|
|
1147
|
+
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
1148
|
+
'DgfYz2v0',
|
|
1149
|
+
'C3rHCNrZv2L0Aa',
|
|
1150
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1151
|
+
'Aw1Hz2uVD2vICa',
|
|
1152
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1153
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1154
|
+
'ignSywLTzwq',
|
|
1155
|
+
'y29UDgvUDa',
|
|
244
1156
|
'C3rVCe1HAw4',
|
|
245
|
-
'
|
|
246
|
-
'
|
|
247
|
-
'yxv0BZO',
|
|
248
|
-
'yxjYyxK',
|
|
249
|
-
'Dg9VBa',
|
|
250
|
-
'mtm4EenQt0fm',
|
|
251
|
-
'Dg9KBW',
|
|
1157
|
+
'BgLTAxq',
|
|
1158
|
+
'y2HLy2TnzxnZywDLCW',
|
|
252
1159
|
'ywrK',
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
1160
|
+
'lcbWCMv2Awv3pq',
|
|
1161
|
+
'AhvTyw4',
|
|
1162
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1163
|
+
'Dw5JBgfPBv90yxnR',
|
|
1164
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1165
|
+
'mc4WlJa',
|
|
1166
|
+
'y29UDgvUDejHC2u2na',
|
|
1167
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1168
|
+
'C2vYDMvYtMfTzq',
|
|
1169
|
+
'CMvHzf9OAxn0B3j5',
|
|
1170
|
+
'C2vYDMvYx21LBwjLCNm',
|
|
1171
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1172
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1173
|
+
'y29TCgXLDgvK',
|
|
1174
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1175
|
+
'yxr0ywnOBwvUDhm',
|
|
1176
|
+
'DxjNzw50',
|
|
1177
|
+
'C2vUzgvYtMfTzq',
|
|
1178
|
+
'AgvHzgvYCW',
|
|
1179
|
+
'BwvKAxvT',
|
|
1180
|
+
'DgfZA19Pza',
|
|
1181
|
+
'BwvZC2fNzuLK',
|
|
1182
|
+
'y2f0y2G',
|
|
1183
|
+
'Dgv4Dc9WBgfPBG',
|
|
1184
|
+
'yxjYyxK',
|
|
1185
|
+
'DxnLCG',
|
|
1186
|
+
'y29UDgvUDfr5Cgu',
|
|
1187
|
+
'y2XHAw1FDgfZA3m',
|
|
1188
|
+
'D3m6',
|
|
1189
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1190
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1191
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1192
|
+
'l2zPBMLZAa',
|
|
1193
|
+
'Dw5JBgfPBvrHC2S',
|
|
1194
|
+
'BNvTyMvY',
|
|
1195
|
+
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
1196
|
+
'B2jQzwn0',
|
|
1197
|
+
'igf0DgfJAg1LBNq',
|
|
265
1198
|
'DxbSB2fKrMLSzq',
|
|
266
1199
|
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'
|
|
1200
|
+
'Dg9tDhjPBMC',
|
|
1201
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1202
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1203
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1204
|
+
'xsba',
|
|
1205
|
+
'DxrMoa',
|
|
1206
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1207
|
+
'CMvWBhLFDgfYz2v0',
|
|
1208
|
+
'Dg9gAxHLza',
|
|
1209
|
+
'C2vZC2LVBKLK',
|
|
1210
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
1211
|
+
'ndu0odm5n1bYC1rduW',
|
|
1212
|
+
'l3DVCMTLCNmVC3bHD24',
|
|
1213
|
+
'mMnetfbytG',
|
|
1214
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1215
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1216
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1217
|
+
'BgLZDf9Zzxj2zxi',
|
|
1218
|
+
'Bwf4',
|
|
1219
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1220
|
+
'l3jLy2vPDMu',
|
|
1221
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1222
|
+
'BMv4Den1CNnVCG',
|
|
1223
|
+
'Bg93',
|
|
1224
|
+
'zg06',
|
|
1225
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1226
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1227
|
+
'ANnVBG',
|
|
1228
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1229
|
+
'CMvHzeHPC3rVCNK',
|
|
1230
|
+
'ihrPBwu9',
|
|
1231
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1232
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
294
1233
|
'C3vTBwfYEq',
|
|
295
|
-
'
|
|
1234
|
+
'z2v0u2vJB25KCW',
|
|
1235
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1236
|
+
'CgfYDgLJAxbHBNq',
|
|
1237
|
+
'Dw5RBM93BG',
|
|
1238
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1239
|
+
'zgvJAxnPB25Z',
|
|
1240
|
+
'yMfZzw5HBwu',
|
|
1241
|
+
'Dg9VBa',
|
|
1242
|
+
'ywDNCMvNyxrLswq',
|
|
1243
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1244
|
+
'Bwf0y2Hoyw1L',
|
|
1245
|
+
'Aw5FChjVz3jLC3m',
|
|
1246
|
+
'DgfZA0LK',
|
|
1247
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
296
1248
|
'Cgf5Bg9HzePZB24',
|
|
1249
|
+
'y2HHBM5LBa',
|
|
1250
|
+
'CgfYC2u',
|
|
1251
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1252
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1253
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1254
|
+
'Dg9ju09tDhjPBMC',
|
|
1255
|
+
'A2LUza',
|
|
297
1256
|
'zg9Uzq',
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'D29YA19RzxK',
|
|
301
|
-
'C2vYDMvYtMfTzq',
|
|
302
|
-
'iYmJiefNzw50CW',
|
|
303
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
304
|
-
'BwfW',
|
|
305
|
-
'BMfTzq',
|
|
306
|
-
'Dw5JBgfPBv90yxnR',
|
|
307
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
308
|
-
'l2nVBNrLBNq',
|
|
309
|
-
'yMfZzw5HBwu',
|
|
310
|
-
'C2HHmJu2',
|
|
311
|
-
'Dg9gAxHLza',
|
|
312
|
-
'DMLLD19MAwXL',
|
|
313
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1257
|
+
'DgHYzwfKswq',
|
|
1258
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
314
1259
|
'DgHYzwfK',
|
|
315
|
-
'
|
|
1260
|
+
'iYmJiefNzw50CW',
|
|
1261
|
+
'iYmJienOyw5UzwXZ',
|
|
1262
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1263
|
+
'D29YA2vY',
|
|
1264
|
+
'Ahr0CdO',
|
|
1265
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1266
|
+
'Dgv4Dc9JC3y',
|
|
1267
|
+
'l3rHC2TZl2nSywLT',
|
|
1268
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1269
|
+
'Dg9KBW',
|
|
1270
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1271
|
+
'zw50CMLLCW',
|
|
1272
|
+
'y2XHAw0GzMfPBgvK',
|
|
1273
|
+
'DgHYzwfKtNvTyMvY',
|
|
316
1274
|
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'l3nLCNzLCG',
|
|
322
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
323
|
-
'BgLZDfrHC2TZ',
|
|
1275
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1276
|
+
'ihr5Cgu9ywDLBNq',
|
|
1277
|
+
'C3rHDhvZ',
|
|
1278
|
+
'ig1LC3nHz2u9',
|
|
324
1279
|
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
325
|
-
'
|
|
326
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
327
|
-
'D3m6',
|
|
328
|
-
'C2vUzf9TzxnZywDL',
|
|
329
|
-
'lMjPBG',
|
|
330
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
331
|
-
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
332
|
-
'Bwv0yq',
|
|
333
|
-
'C3vJy2vZCW',
|
|
334
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
335
|
-
'AxnbCNjHEq',
|
|
336
|
-
'zgvJAxnPB25Z',
|
|
337
|
-
'yMXVy2TLza',
|
|
338
|
-
'yM9KEu1HCMTKB3DU',
|
|
339
|
-
'kgXLz2fJEsK',
|
|
340
|
-
'z2v0u2vJB25KCW',
|
|
341
|
-
'DxbKyxrL',
|
|
342
|
-
'AxngAw5PDgu',
|
|
343
|
-
'C2f2zq',
|
|
344
|
-
'lIbnzxnZywDLieLeoIa',
|
|
345
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1280
|
+
'zNjVBq',
|
|
346
1281
|
'zxHWAxjLC0f0',
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
1282
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1283
|
+
'zgLZCg9ZAxrPB24',
|
|
1284
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1285
|
+
'z2v0rNvSBfLLyxi',
|
|
1286
|
+
'yM9KEvrLEhq',
|
|
1287
|
+
'C3bSAxq',
|
|
1288
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1289
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1290
|
+
'C29YDa',
|
|
1291
|
+
'ywDLBNrjza',
|
|
1292
|
+
'DxbKyxrL',
|
|
1293
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1294
|
+
'yxjNDG',
|
|
1295
|
+
'Bwv0yq',
|
|
1296
|
+
'l2nVBNrLBNq',
|
|
1297
|
+
'DgfZA051BwjLCG',
|
|
1298
|
+
'CMvWBgfJzq',
|
|
1299
|
+
'C2LNBMfS'
|
|
361
1300
|
];
|
|
362
|
-
|
|
363
|
-
return
|
|
364
|
-
};
|
|
365
|
-
return _0x4815();
|
|
366
|
-
}
|
|
367
|
-
(function (_0x10c2ef, _0x520f64) {
|
|
368
|
-
const _0x20511d = {
|
|
369
|
-
_0x2fe541: 0x2e9,
|
|
370
|
-
_0x302b0b: 0x27e,
|
|
371
|
-
_0x5b1ca9: 0x299
|
|
372
|
-
}, _0x2693d4 = _0x57a3, _0x480998 = _0x10c2ef();
|
|
373
|
-
while (!![]) {
|
|
374
|
-
try {
|
|
375
|
-
const _0x2d2126 = -parseInt(_0x2693d4(_0x20511d._0x2fe541)) / 0x1 + -parseInt(_0x2693d4(0x1ce)) / 0x2 + -parseInt(_0x2693d4(0x2a4)) / 0x3 + parseInt(_0x2693d4(_0x20511d._0x302b0b)) / 0x4 + parseInt(_0x2693d4(_0x20511d._0x5b1ca9)) / 0x5 * (-parseInt(_0x2693d4(0x1d5)) / 0x6) + parseInt(_0x2693d4(0x2b0)) / 0x7 + parseInt(_0x2693d4(0x1e9)) / 0x8;
|
|
376
|
-
if (_0x2d2126 === _0x520f64)
|
|
377
|
-
break;
|
|
378
|
-
else
|
|
379
|
-
_0x480998['push'](_0x480998['shift']());
|
|
380
|
-
} catch (_0x326136) {
|
|
381
|
-
_0x480998['push'](_0x480998['shift']());
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}(_0x4815, 0x2e1f3));
|
|
385
|
-
import { pathToFileURL } from 'node:url';
|
|
386
|
-
import {
|
|
387
|
-
mkdir,
|
|
388
|
-
readFile,
|
|
389
|
-
readdir,
|
|
390
|
-
stat,
|
|
391
|
-
writeFile
|
|
392
|
-
} from 'node:fs/promises';
|
|
393
|
-
import { homedir } from 'node:os';
|
|
394
|
-
import _0x137735 from 'node:path';
|
|
395
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
396
|
-
'.csv': _0xa1982e(0x256),
|
|
397
|
-
'.gif': 'image/gif',
|
|
398
|
-
'.jpeg': _0xa1982e(0x288),
|
|
399
|
-
'.jpg': 'image/jpeg',
|
|
400
|
-
'.json': _0xa1982e(0x2fb),
|
|
401
|
-
'.md': _0xa1982e(0x266),
|
|
402
|
-
'.pdf': _0xa1982e(0x1fa),
|
|
403
|
-
'.png': _0xa1982e(0x200),
|
|
404
|
-
'.svg': _0xa1982e(0x313),
|
|
405
|
-
'.txt': _0xa1982e(0x2aa),
|
|
406
|
-
'.webp': 'image/webp',
|
|
407
|
-
'.xml': _0xa1982e(0x229),
|
|
408
|
-
'.zip': _0xa1982e(0x249)
|
|
409
|
-
};
|
|
410
|
-
function guessContentType(_0x95a16a) {
|
|
411
|
-
const _0x5b4a25 = { _0x39a355: 0x2ce }, _0x36e5a1 = _0xa1982e;
|
|
412
|
-
return MIME_BY_EXTENSION[_0x137735[_0x36e5a1(_0x5b4a25._0x39a355)](_0x95a16a)['toLowerCase']()] ?? _0x36e5a1(0x2ae);
|
|
413
|
-
}
|
|
414
|
-
function safeFilename(_0x1dd6f5) {
|
|
415
|
-
const _0xd123c6 = _0xa1982e;
|
|
416
|
-
return _0x1dd6f5[_0xd123c6(0x269)](/[\\/]/g, '-');
|
|
417
|
-
}
|
|
418
|
-
function extensionFor(_0x1226ad) {
|
|
419
|
-
const _0x388af7 = { _0x35f709: 0x224 }, _0x1bf0fc = _0xa1982e, _0x28a60c = Object['entries'](MIME_BY_EXTENSION)[_0x1bf0fc(0x2fa)](([, _0x2a272d]) => _0x2a272d === _0x1226ad);
|
|
420
|
-
return _0x28a60c?.[0x0] ?? _0x1bf0fc(_0x388af7._0x35f709);
|
|
421
|
-
}
|
|
422
|
-
async function prepareUploadFile(_0x466ad2, _0x2fb13e = {}) {
|
|
423
|
-
const _0x5a12da = {
|
|
424
|
-
_0x1996ff: 0x2ba,
|
|
425
|
-
_0x53e522: 0x257,
|
|
426
|
-
_0x317932: 0x2f0,
|
|
427
|
-
_0x5c16a3: 0x2cf,
|
|
428
|
-
_0x3fde96: 0x1ec
|
|
429
|
-
}, _0x5c7b8f = _0xa1982e;
|
|
430
|
-
if (!_0x137735[_0x5c7b8f(_0x5a12da._0x1996ff)](_0x466ad2))
|
|
431
|
-
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
432
|
-
const _0x501f66 = await stat(_0x466ad2)[_0x5c7b8f(_0x5a12da._0x53e522)](() => null);
|
|
433
|
-
if (!_0x501f66 || !_0x501f66[_0x5c7b8f(_0x5a12da._0x317932)]())
|
|
434
|
-
throw new Error(_0x5c7b8f(_0x5a12da._0x5c16a3) + _0x466ad2);
|
|
435
|
-
const _0x2d7a66 = _0x2fb13e[_0x5c7b8f(_0x5a12da._0x3fde96)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
436
|
-
if (_0x501f66['size'] > _0x2d7a66)
|
|
437
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x501f66[_0x5c7b8f(0x2d9)]);
|
|
438
|
-
const _0x51aec2 = await readFile(_0x466ad2), _0xc3864a = _0x137735[_0x5c7b8f(0x210)](_0x466ad2);
|
|
439
|
-
return {
|
|
440
|
-
'contentBase64': _0x51aec2['toString'](_0x5c7b8f(0x2c8)),
|
|
441
|
-
'contentType': guessContentType(_0xc3864a),
|
|
442
|
-
'filename': _0xc3864a,
|
|
443
|
-
'sizeBytes': _0x501f66[_0x5c7b8f(0x2d9)]
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function createAttachmentCache(_0x593d8e = {}) {
|
|
447
|
-
const _0x356287 = {
|
|
448
|
-
_0x31fa12: 0x2b7,
|
|
449
|
-
_0x23b7c4: 0x277,
|
|
450
|
-
_0x1ecb02: 0x2da,
|
|
451
|
-
_0x55fd34: 0x279
|
|
452
|
-
}, _0x870174 = _0xa1982e, _0x5b6bff = _0x593d8e[_0x870174(0x23e)] ?? _0x137735[_0x870174(0x1c9)](homedir(), '.slock', _0x870174(0x2c4));
|
|
453
|
-
return {
|
|
454
|
-
'cacheDir': _0x5b6bff,
|
|
455
|
-
async 'findCachedPath'(_0x59ed37) {
|
|
456
|
-
const _0x269aad = _0x870174;
|
|
457
|
-
await mkdir(_0x5b6bff, { 'recursive': !![] });
|
|
458
|
-
const _0x3a97d8 = await readdir(_0x5b6bff), _0x2c183f = _0x3a97d8['find'](_0x1c22fe => _0x1c22fe['startsWith'](_0x59ed37 + '-') || _0x1c22fe[_0x269aad(0x1eb)](_0x59ed37));
|
|
459
|
-
return _0x2c183f ? _0x137735['join'](_0x5b6bff, _0x2c183f) : null;
|
|
460
|
-
},
|
|
461
|
-
async 'save'(_0x22051d) {
|
|
462
|
-
const _0x339168 = _0x870174;
|
|
463
|
-
await mkdir(_0x5b6bff, { 'recursive': !![] });
|
|
464
|
-
const _0x321e8f = _0x22051d[_0x339168(0x277)]?.[_0x339168(_0x356287._0x31fa12)]() ? safeFilename(_0x22051d[_0x339168(_0x356287._0x23b7c4)]) : '' + _0x22051d['attachmentId'] + extensionFor(_0x22051d['contentType']), _0x523b4f = _0x137735['join'](_0x5b6bff, _0x22051d[_0x339168(_0x356287._0x1ecb02)] + '-' + _0x321e8f);
|
|
465
|
-
return await writeFile(_0x523b4f, _0x22051d[_0x339168(_0x356287._0x55fd34)]), _0x523b4f;
|
|
466
|
-
}
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
import {
|
|
470
|
-
createHash,
|
|
471
|
-
randomUUID
|
|
472
|
-
} from 'node:crypto';
|
|
473
|
-
function _0x57a3(_0x57a3d5, _0x1bd24b) {
|
|
474
|
-
_0x57a3d5 = _0x57a3d5 - 0x1be;
|
|
475
|
-
const _0x4815d3 = _0x4815();
|
|
476
|
-
let _0x57a33f = _0x4815d3[_0x57a3d5];
|
|
477
|
-
if (_0x57a3['kpWwml'] === undefined) {
|
|
478
|
-
var _0x4d4548 = function (_0x41e9fd) {
|
|
479
|
-
const _0x274f24 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
480
|
-
let _0x137735 = '', _0x95a16a = '';
|
|
481
|
-
for (let _0x1dd6f5 = 0x0, _0x1226ad, _0x28a60c, _0x2a272d = 0x0; _0x28a60c = _0x41e9fd['charAt'](_0x2a272d++); ~_0x28a60c && (_0x1226ad = _0x1dd6f5 % 0x4 ? _0x1226ad * 0x40 + _0x28a60c : _0x28a60c, _0x1dd6f5++ % 0x4) ? _0x137735 += String['fromCharCode'](0xff & _0x1226ad >> (-0x2 * _0x1dd6f5 & 0x6)) : 0x0) {
|
|
482
|
-
_0x28a60c = _0x274f24['indexOf'](_0x28a60c);
|
|
483
|
-
}
|
|
484
|
-
for (let _0x466ad2 = 0x0, _0x2fb13e = _0x137735['length']; _0x466ad2 < _0x2fb13e; _0x466ad2++) {
|
|
485
|
-
_0x95a16a += '%' + ('00' + _0x137735['charCodeAt'](_0x466ad2)['toString'](0x10))['slice'](-0x2);
|
|
486
|
-
}
|
|
487
|
-
return decodeURIComponent(_0x95a16a);
|
|
488
|
-
};
|
|
489
|
-
_0x57a3['XrSkUE'] = _0x4d4548, _0x57a3['RsGOze'] = {}, _0x57a3['kpWwml'] = !![];
|
|
490
|
-
}
|
|
491
|
-
const _0x95b873 = _0x4815d3[0x0], _0x5858ba = _0x57a3d5 + _0x95b873, _0x45c4ef = _0x57a3['RsGOze'][_0x5858ba];
|
|
492
|
-
return !_0x45c4ef ? (_0x57a33f = _0x57a3['XrSkUE'](_0x57a33f), _0x57a3['RsGOze'][_0x5858ba] = _0x57a33f) : _0x57a33f = _0x45c4ef, _0x57a33f;
|
|
493
|
-
}
|
|
494
|
-
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
495
|
-
function ensureSegment(_0x4247af) {
|
|
496
|
-
const _0xf6fd95 = _0xa1982e, _0x3d08ea = _0x4247af[_0xf6fd95(0x2b7)]();
|
|
497
|
-
if (!_0x3d08ea || _0x3d08ea['includes'](':'))
|
|
498
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
499
|
-
return _0x3d08ea;
|
|
500
|
-
}
|
|
501
|
-
function parseThreadParts(_0x25ecf2) {
|
|
502
|
-
const _0x46281d = { _0x69d9f7: 0x24a }, _0x25a38f = _0xa1982e, _0x2115bc = _0x25ecf2[_0x25a38f(_0x46281d._0x69d9f7)](':');
|
|
503
|
-
if (_0x2115bc['length'] < 0x1 || _0x2115bc['length'] > 0x2)
|
|
504
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
505
|
-
return {
|
|
506
|
-
'channelName': ensureSegment(_0x2115bc[0x0] ?? ''),
|
|
507
|
-
'threadShortId': _0x2115bc[0x1] ? ensureSegment(_0x2115bc[0x1]) : null
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
function parseTarget(_0x50db9c) {
|
|
511
|
-
const _0x448e1c = {
|
|
512
|
-
_0x3600f5: 0x296,
|
|
513
|
-
_0x309b23: 0x2bd,
|
|
514
|
-
_0x5964be: 0x31b,
|
|
515
|
-
_0x4afbd9: 0x2ee,
|
|
516
|
-
_0x2e8301: 0x2ee,
|
|
517
|
-
_0x4ac01c: 0x1eb,
|
|
518
|
-
_0x2afe24: 0x216,
|
|
519
|
-
_0xa42421: 0x2bd,
|
|
520
|
-
_0x4d1ff2: 0x216,
|
|
521
|
-
_0xdd8fa9: 0x2bd,
|
|
522
|
-
_0x309e75: 0x31b,
|
|
523
|
-
_0x312d98: 0x215
|
|
524
|
-
}, _0x1fe1ff = _0xa1982e, _0x148ec3 = _0x50db9c[_0x1fe1ff(0x2b7)]();
|
|
525
|
-
if (!_0x148ec3)
|
|
526
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
-
if (_0x148ec3[_0x1fe1ff(0x1eb)]('#')) {
|
|
528
|
-
const _0x436970 = parseThreadParts(_0x148ec3[_0x1fe1ff(_0x448e1c._0x3600f5)](0x1)), _0xb6d59c = '#' + _0x436970[_0x1fe1ff(_0x448e1c._0x309b23)];
|
|
529
|
-
if (!_0x436970['threadShortId'])
|
|
530
|
-
return {
|
|
531
|
-
'channelName': _0x436970[_0x1fe1ff(0x2bd)],
|
|
532
|
-
'channelTarget': _0xb6d59c,
|
|
533
|
-
'kind': _0x1fe1ff(_0x448e1c._0x5964be),
|
|
534
|
-
'target': _0xb6d59c
|
|
535
|
-
};
|
|
536
|
-
return {
|
|
537
|
-
'channelName': _0x436970['channelName'],
|
|
538
|
-
'channelTarget': _0xb6d59c,
|
|
539
|
-
'kind': _0x1fe1ff(0x215),
|
|
540
|
-
'target': _0xb6d59c + ':' + _0x436970[_0x1fe1ff(_0x448e1c._0x4afbd9)],
|
|
541
|
-
'threadShortId': _0x436970[_0x1fe1ff(_0x448e1c._0x2e8301)]
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
if (_0x148ec3[_0x1fe1ff(_0x448e1c._0x4ac01c)](_0x1fe1ff(_0x448e1c._0x2afe24))) {
|
|
545
|
-
const _0x31b9eb = parseThreadParts(_0x148ec3[_0x1fe1ff(_0x448e1c._0x3600f5)](0x3));
|
|
546
|
-
if (!_0x31b9eb[_0x1fe1ff(_0x448e1c._0xa42421)][_0x1fe1ff(0x1eb)]('dm-'))
|
|
547
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
-
const _0x42321f = _0x1fe1ff(_0x448e1c._0x4d1ff2) + _0x31b9eb[_0x1fe1ff(0x2bd)];
|
|
549
|
-
if (!_0x31b9eb['threadShortId'])
|
|
550
|
-
return {
|
|
551
|
-
'channelName': _0x31b9eb[_0x1fe1ff(_0x448e1c._0xdd8fa9)],
|
|
552
|
-
'channelTarget': _0x42321f,
|
|
553
|
-
'kind': _0x1fe1ff(_0x448e1c._0x309e75),
|
|
554
|
-
'target': _0x42321f
|
|
555
|
-
};
|
|
556
|
-
return {
|
|
557
|
-
'channelName': _0x31b9eb[_0x1fe1ff(0x2bd)],
|
|
558
|
-
'channelTarget': _0x42321f,
|
|
559
|
-
'kind': _0x1fe1ff(_0x448e1c._0x312d98),
|
|
560
|
-
'target': _0x42321f + ':' + _0x31b9eb[_0x1fe1ff(_0x448e1c._0x2e8301)],
|
|
561
|
-
'threadShortId': _0x31b9eb['threadShortId']
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
565
|
-
}
|
|
566
|
-
function asErrorMessage(_0x42ad6c, _0x4f2dba) {
|
|
567
|
-
const _0x24b338 = { _0x32a78c: 0x1cc }, _0x3b7c6b = _0xa1982e;
|
|
568
|
-
if (typeof _0x42ad6c === _0x3b7c6b(_0x24b338._0x32a78c) && _0x42ad6c[_0x3b7c6b(0x2b7)]())
|
|
569
|
-
return _0x42ad6c;
|
|
570
|
-
return _0x4f2dba;
|
|
571
|
-
}
|
|
572
|
-
function asRecord(_0x474105) {
|
|
573
|
-
const _0x59c6a6 = _0xa1982e;
|
|
574
|
-
return typeof _0x474105 === _0x59c6a6(0x206) && _0x474105 !== null ? _0x474105 : {};
|
|
575
|
-
}
|
|
576
|
-
function stableStringify(_0x55385f) {
|
|
577
|
-
const _0x3d345e = {
|
|
578
|
-
_0x464b11: 0x206,
|
|
579
|
-
_0x1e2324: 0x2a0,
|
|
580
|
-
_0x109f4f: 0x22a,
|
|
581
|
-
_0x78ead8: 0x20b,
|
|
582
|
-
_0x2dd490: 0x1c9,
|
|
583
|
-
_0x43ad15: 0x1c9
|
|
584
|
-
}, _0x208ace = _0xa1982e;
|
|
585
|
-
if (_0x55385f === null || typeof _0x55385f !== _0x208ace(_0x3d345e._0x464b11))
|
|
586
|
-
return JSON[_0x208ace(_0x3d345e._0x1e2324)](_0x55385f);
|
|
587
|
-
if (Array[_0x208ace(_0x3d345e._0x109f4f)](_0x55385f))
|
|
588
|
-
return '[' + _0x55385f[_0x208ace(_0x3d345e._0x78ead8)](_0x2e51be => stableStringify(_0x2e51be))[_0x208ace(_0x3d345e._0x2dd490)](',') + ']';
|
|
589
|
-
const _0x218007 = Object[_0x208ace(0x1db)](_0x55385f)['filter'](([, _0x30818c]) => _0x30818c !== void 0x0)['sort'](([_0x4dcbeb], [_0x5ade02]) => _0x4dcbeb[_0x208ace(0x2b5)](_0x5ade02))[_0x208ace(_0x3d345e._0x78ead8)](([_0x3f608a, _0x26968c]) => JSON['stringify'](_0x3f608a) + ':' + stableStringify(_0x26968c));
|
|
590
|
-
return '{' + _0x218007[_0x208ace(_0x3d345e._0x43ad15)](',') + '}';
|
|
591
|
-
}
|
|
592
|
-
function createHeaders(_0x40eaab) {
|
|
593
|
-
return {
|
|
594
|
-
'Content-Type': 'application/json',
|
|
595
|
-
'x-daemon-api-key': _0x40eaab
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
function toHttpBaseUrl(_0x42a2a4) {
|
|
599
|
-
const _0x4da750 = {
|
|
600
|
-
_0x40b2b1: 0x1f9,
|
|
601
|
-
_0x126bdc: 0x222,
|
|
602
|
-
_0x51891c: 0x1f9,
|
|
603
|
-
_0x4f5269: 0x269
|
|
604
|
-
}, _0x5ed3e6 = _0xa1982e, _0x4bdddb = new URL(_0x42a2a4);
|
|
605
|
-
if (_0x4bdddb[_0x5ed3e6(_0x4da750._0x40b2b1)] === _0x5ed3e6(_0x4da750._0x126bdc))
|
|
606
|
-
_0x4bdddb[_0x5ed3e6(_0x4da750._0x40b2b1)] = 'http:';
|
|
607
|
-
else
|
|
608
|
-
_0x4bdddb[_0x5ed3e6(0x1f9)] === _0x5ed3e6(0x2cb) && (_0x4bdddb[_0x5ed3e6(_0x4da750._0x51891c)] = 'https:');
|
|
609
|
-
return _0x4bdddb[_0x5ed3e6(0x2e1)]()[_0x5ed3e6(_0x4da750._0x4f5269)](/\/$/, '');
|
|
610
|
-
}
|
|
611
|
-
function isMentionBoundary(_0xf01f61) {
|
|
612
|
-
const _0x141777 = { _0x73ad0: 0x21a }, _0x42fca3 = _0xa1982e;
|
|
613
|
-
return !_0xf01f61 || /\s|[([{'",。!?、:;]/[_0x42fca3(_0x141777._0x73ad0)](_0xf01f61);
|
|
614
|
-
}
|
|
615
|
-
function isMentionTerminal(_0x59115c) {
|
|
616
|
-
return !_0x59115c || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x59115c);
|
|
617
|
-
}
|
|
618
|
-
function extractMentionedParticipantIds(_0x2cd2fd, _0x426b9c) {
|
|
619
|
-
const _0x14a9f2 = {
|
|
620
|
-
_0x55ab4e: 0x20b,
|
|
621
|
-
_0x55931e: 0x25b,
|
|
622
|
-
_0x41c8da: 0x296,
|
|
623
|
-
_0x1a746c: 0x2fa,
|
|
624
|
-
_0xe1635f: 0x2c9,
|
|
625
|
-
_0x57307e: 0x1d7,
|
|
626
|
-
_0x47067c: 0x238
|
|
627
|
-
}, _0x2ad9ff = {
|
|
628
|
-
_0x5b5d27: 0x1eb,
|
|
629
|
-
_0x58576f: 0x238
|
|
630
|
-
}, _0x40cf9d = _0xa1982e, _0x5a835c = [
|
|
631
|
-
..._0x426b9c[_0x40cf9d(0x2e2)],
|
|
632
|
-
..._0x426b9c[_0x40cf9d(0x31d)]
|
|
633
|
-
][_0x40cf9d(_0x14a9f2._0x55ab4e)](_0x352216 => ({
|
|
634
|
-
'displayName': _0x352216[_0x40cf9d(0x20c)],
|
|
635
|
-
'displayNameLower': _0x352216[_0x40cf9d(0x20c)][_0x40cf9d(0x252)](),
|
|
636
|
-
'participantId': _0x352216['id']
|
|
637
|
-
}))[_0x40cf9d(_0x14a9f2._0x55931e)]((_0x2a82d5, _0x45ebe2) => _0x45ebe2[_0x40cf9d(0x28a)][_0x40cf9d(0x238)] - _0x2a82d5['displayName']['length']), _0x30714f = [], _0x5bb9f8 = new Set();
|
|
638
|
-
for (let _0x141386 = 0x0; _0x141386 < _0x2cd2fd['length']; _0x141386 += 0x1) {
|
|
639
|
-
if (_0x2cd2fd[_0x141386] !== '@' || !isMentionBoundary(_0x2cd2fd[_0x141386 - 0x1]))
|
|
640
|
-
continue;
|
|
641
|
-
const _0x1ee031 = _0x2cd2fd[_0x40cf9d(_0x14a9f2._0x41c8da)](_0x141386 + 0x1), _0x218d22 = _0x1ee031[_0x40cf9d(0x252)](), _0x22b8e5 = _0x5a835c[_0x40cf9d(_0x14a9f2._0x1a746c)](_0x3ba0e5 => {
|
|
642
|
-
const _0x380ce8 = _0x40cf9d;
|
|
643
|
-
if (!_0x218d22[_0x380ce8(_0x2ad9ff._0x5b5d27)](_0x3ba0e5[_0x380ce8(0x2f9)]))
|
|
644
|
-
return ![];
|
|
645
|
-
return isMentionTerminal(_0x1ee031[_0x3ba0e5[_0x380ce8(0x28a)][_0x380ce8(_0x2ad9ff._0x58576f)]]);
|
|
646
|
-
});
|
|
647
|
-
if (!_0x22b8e5 || _0x5bb9f8['has'](_0x22b8e5[_0x40cf9d(_0x14a9f2._0xe1635f)]))
|
|
648
|
-
continue;
|
|
649
|
-
_0x5bb9f8[_0x40cf9d(_0x14a9f2._0x57307e)](_0x22b8e5[_0x40cf9d(0x2c9)]), _0x30714f['push'](_0x22b8e5['participantId']), _0x141386 += _0x22b8e5['displayName'][_0x40cf9d(_0x14a9f2._0x47067c)];
|
|
650
|
-
}
|
|
651
|
-
return _0x30714f;
|
|
652
|
-
}
|
|
653
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
654
|
-
function anySignal(..._0x125af1) {
|
|
655
|
-
const _0x56af6b = {
|
|
656
|
-
_0x3db92b: 0x234,
|
|
657
|
-
_0x42b2e0: 0x242,
|
|
658
|
-
_0x46bd32: 0x1de
|
|
659
|
-
}, _0x26637a = _0xa1982e, _0x279c70 = new AbortController();
|
|
660
|
-
for (const _0x53f921 of _0x125af1) {
|
|
661
|
-
if (_0x53f921['aborted'])
|
|
662
|
-
return _0x279c70[_0x26637a(0x242)](_0x53f921['reason']), _0x279c70[_0x26637a(0x1de)];
|
|
663
|
-
_0x53f921[_0x26637a(_0x56af6b._0x3db92b)](_0x26637a(_0x56af6b._0x42b2e0), () => _0x279c70[_0x26637a(0x242)](_0x53f921[_0x26637a(0x29d)]), {
|
|
664
|
-
'once': !![],
|
|
665
|
-
'signal': _0x279c70['signal']
|
|
666
|
-
});
|
|
667
|
-
}
|
|
668
|
-
return _0x279c70[_0x26637a(_0x56af6b._0x46bd32)];
|
|
669
|
-
}
|
|
670
|
-
function createInternalAgentClient(_0x48d01c) {
|
|
671
|
-
const _0x41b01a = {
|
|
672
|
-
_0x331bfd: 0x1ea,
|
|
673
|
-
_0x45ee9b: 0x300,
|
|
674
|
-
_0x2ca69b: 0x30b,
|
|
675
|
-
_0x26e155: 0x1df,
|
|
676
|
-
_0x232c91: 0x2b7
|
|
677
|
-
}, _0x4fdeb8 = {
|
|
678
|
-
_0x5c21e4: 0x322,
|
|
679
|
-
_0x2e278e: 0x244,
|
|
680
|
-
_0x1c8a1a: 0x227,
|
|
681
|
-
_0x4172f6: 0x30d,
|
|
682
|
-
_0x5da7c7: 0x238,
|
|
683
|
-
_0x32b290: 0x30e,
|
|
684
|
-
_0x4846a0: 0x203,
|
|
685
|
-
_0x47e2fe: 0x1cd,
|
|
686
|
-
_0x59e634: 0x1cc,
|
|
687
|
-
_0x2e43e8: 0x311,
|
|
688
|
-
_0xd31d58: 0x26f,
|
|
689
|
-
_0x5cc2c0: 0x26f,
|
|
690
|
-
_0x4d1337: 0x23d,
|
|
691
|
-
_0x8cbafd: 0x320,
|
|
692
|
-
_0x47a519: 0x20c,
|
|
693
|
-
_0x43d006: 0x31c,
|
|
694
|
-
_0x4ee1c0: 0x274,
|
|
695
|
-
_0x531a6e: 0x245,
|
|
696
|
-
_0x44c275: 0x20b,
|
|
697
|
-
_0x43d2b4: 0x296,
|
|
698
|
-
_0x46d1a7: 0x22d,
|
|
699
|
-
_0x5c2d1d: 0x22d
|
|
700
|
-
}, _0x4ebe25 = {
|
|
701
|
-
_0x1af564: 0x1cd,
|
|
702
|
-
_0x36dbcb: 0x273
|
|
703
|
-
}, _0x3299c8 = {
|
|
704
|
-
_0x596d44: 0x248,
|
|
705
|
-
_0xe20e61: 0x20f,
|
|
706
|
-
_0x56addd: 0x244,
|
|
707
|
-
_0x71274c: 0x2e3,
|
|
708
|
-
_0x5113e4: 0x29e,
|
|
709
|
-
_0x16fa37: 0x279
|
|
710
|
-
}, _0x130485 = {
|
|
711
|
-
_0x52864a: 0x31b,
|
|
712
|
-
_0x397a62: 0x273,
|
|
713
|
-
_0x40b114: 0x2f3,
|
|
714
|
-
_0x11aeb4: 0x2bf,
|
|
715
|
-
_0x463b35: 0x1ef,
|
|
716
|
-
_0xb4250: 0x2f7,
|
|
717
|
-
_0x386c8a: 0x277,
|
|
718
|
-
_0x554edc: 0x276
|
|
719
|
-
}, _0x2df658 = {
|
|
720
|
-
_0x30539c: 0x2eb,
|
|
721
|
-
_0x55b3af: 0x30f
|
|
722
|
-
}, _0x53781f = {
|
|
723
|
-
_0x4ae82a: 0x2eb,
|
|
724
|
-
_0x57c45c: 0x20d,
|
|
725
|
-
_0x40902b: 0x2f7
|
|
726
|
-
}, _0x4dee4b = {
|
|
727
|
-
_0x2a6e10: 0x2eb,
|
|
728
|
-
_0xe67538: 0x2bf,
|
|
729
|
-
_0x271fe1: 0x2a0
|
|
730
|
-
}, _0x5104fa = {
|
|
731
|
-
_0x17e05c: 0x31b,
|
|
732
|
-
_0x4a4f2c: 0x2e3,
|
|
733
|
-
_0x50e3e7: 0x2bf,
|
|
734
|
-
_0x584e2e: 0x2e1
|
|
735
|
-
}, _0x10f529 = {
|
|
736
|
-
_0x352b33: 0x287,
|
|
737
|
-
_0x2483ab: 0x2a0,
|
|
738
|
-
_0x42d016: 0x2af,
|
|
739
|
-
_0x334676: 0x2e3,
|
|
740
|
-
_0x243413: 0x2f7,
|
|
741
|
-
_0x30ca06: 0x2f6
|
|
742
|
-
}, _0x56101c = {
|
|
743
|
-
_0x30b9a2: 0x2a0,
|
|
744
|
-
_0x36acfb: 0x2f7
|
|
745
|
-
}, _0x349ca0 = {
|
|
746
|
-
_0x2848db: 0x2a0,
|
|
747
|
-
_0x1886c5: 0x2f7
|
|
748
|
-
}, _0x15442d = { _0x5b017e: 0x2de }, _0x2008a7 = {
|
|
749
|
-
_0xc88af5: 0x1ef,
|
|
750
|
-
_0x3dda98: 0x2e8,
|
|
751
|
-
_0x50ad1b: 0x1cd,
|
|
752
|
-
_0x25607d: 0x238,
|
|
753
|
-
_0x29ce68: 0x2f7
|
|
754
|
-
}, _0x1a6711 = {
|
|
755
|
-
_0x377081: 0x273,
|
|
756
|
-
_0x446069: 0x1cd,
|
|
757
|
-
_0x38546e: 0x290,
|
|
758
|
-
_0x3abfd4: 0x320,
|
|
759
|
-
_0xe37d0a: 0x30d,
|
|
760
|
-
_0x2d7545: 0x302,
|
|
761
|
-
_0x421fb3: 0x2bf,
|
|
762
|
-
_0x528afc: 0x279
|
|
763
|
-
}, _0x10886b = {
|
|
764
|
-
_0x634597: 0x1f6,
|
|
765
|
-
_0x3abc20: 0x2c9
|
|
766
|
-
}, _0x10cc0a = {
|
|
767
|
-
_0x379064: 0x2e2,
|
|
768
|
-
_0x4f695d: 0x2e6,
|
|
769
|
-
_0x441f3e: 0x243
|
|
770
|
-
}, _0x5163f7 = {
|
|
771
|
-
_0x5e3354: 0x2eb,
|
|
772
|
-
_0x3d1728: 0x21c,
|
|
773
|
-
_0x44d403: 0x279,
|
|
774
|
-
_0x5c8da1: 0x1c6,
|
|
775
|
-
_0x2b50e4: 0x24b,
|
|
776
|
-
_0x44f03e: 0x279,
|
|
777
|
-
_0x1213e6: 0x20b,
|
|
778
|
-
_0x3750d1: 0x279,
|
|
779
|
-
_0x264093: 0x316
|
|
780
|
-
}, _0x567ce7 = {
|
|
781
|
-
_0x51d0fb: 0x2eb,
|
|
782
|
-
_0x2d6404: 0x2f7,
|
|
783
|
-
_0x5b61d4: 0x2ec,
|
|
784
|
-
_0x54f749: 0x279
|
|
785
|
-
}, _0x23857c = {
|
|
786
|
-
_0x4d6293: 0x2a9,
|
|
787
|
-
_0x5baff4: 0x297,
|
|
788
|
-
_0x282b23: 0x259
|
|
789
|
-
}, _0x26798d = {
|
|
790
|
-
_0x334b6c: 0x1de,
|
|
791
|
-
_0x4b0032: 0x1de,
|
|
792
|
-
_0x5a7b2f: 0x298
|
|
793
|
-
}, _0x48992a = { _0x4b489a: 0x2e3 }, _0x1202cd = {
|
|
794
|
-
_0x30435b: 0x1f0,
|
|
795
|
-
_0x1b6b4a: 0x235,
|
|
796
|
-
_0x19b28d: 0x237,
|
|
797
|
-
_0x495031: 0x211,
|
|
798
|
-
_0x56c9ca: 0x265
|
|
799
|
-
}, _0x582796 = { _0x270d6e: 0x307 }, _0x5aeed7 = _0xa1982e, _0x2e3eb = _0x48d01c[_0x5aeed7(_0x41b01a._0x331bfd)] ?? fetch, _0x114edf = _0x48d01c['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x21fa28 = typeof _0x48d01c[_0x5aeed7(0x30b)] === _0x5aeed7(_0x41b01a._0x45ee9b) && _0x48d01c[_0x5aeed7(0x30b)] > 0x0 ? _0x48d01c[_0x5aeed7(_0x41b01a._0x2ca69b)] : 0x0, _0x46a493 = _0x48d01c[_0x5aeed7(_0x41b01a._0x26e155)]?.['trim']() || void 0x0, _0x5022e1 = _0x48d01c['workerThreadTarget']?.[_0x5aeed7(_0x41b01a._0x232c91)]() || void 0x0, _0x58c7f8 = createHeaders(_0x48d01c[_0x5aeed7(0x2b6)]), _0x5543be = toHttpBaseUrl(_0x48d01c[_0x5aeed7(0x263)]);
|
|
800
|
-
let _0x31355e = null;
|
|
801
|
-
const _0x302c89 = new Map();
|
|
802
|
-
let _0x6f7c94 = _0x21fa28, _0x14ef19 = _0x21fa28;
|
|
803
|
-
async function _0x51e1f8(_0x5db4f5) {
|
|
804
|
-
const _0x4a0950 = _0x5aeed7, _0x382608 = Buffer[_0x4a0950(0x2a6)](await _0x5db4f5[_0x4a0950(0x29e)]())[_0x4a0950(0x2e1)](_0x4a0950(0x2db));
|
|
805
|
-
if (!_0x382608[_0x4a0950(0x2b7)]())
|
|
806
|
-
return {};
|
|
807
|
-
return JSON[_0x4a0950(_0x582796._0x270d6e)](_0x382608);
|
|
808
|
-
}
|
|
809
|
-
function _0x5bf87a(_0x27ce21, _0x5cab76) {
|
|
810
|
-
const _0x2f59a3 = _0x5aeed7, _0xf145df = typeof _0x5cab76[_0x2f59a3(_0x1202cd._0x30435b)] === _0x2f59a3(0x1cc) ? _0x5cab76[_0x2f59a3(0x1f0)][_0x2f59a3(0x2b7)]() : '';
|
|
811
|
-
if (_0xf145df)
|
|
812
|
-
return _0xf145df;
|
|
813
|
-
const _0x120db7 = Date[_0x2f59a3(0x2d1)]();
|
|
814
|
-
for (const [_0xb3a536, _0x28288a] of _0x302c89) {
|
|
815
|
-
_0x28288a[_0x2f59a3(_0x1202cd._0x1b6b4a)] <= _0x120db7 && _0x302c89[_0x2f59a3(_0x1202cd._0x19b28d)](_0xb3a536);
|
|
816
|
-
}
|
|
817
|
-
const _0x1c74a0 = {
|
|
818
|
-
..._0x5cab76,
|
|
819
|
-
'idempotency_key': void 0x0
|
|
820
|
-
}, _0x2caa80 = createHash(_0x2f59a3(_0x1202cd._0x495031))[_0x2f59a3(0x230)](_0x27ce21 + ':' + stableStringify(_0x1c74a0))[_0x2f59a3(0x27d)]('hex'), _0x8dab6b = _0x27ce21 + ':' + _0x2caa80, _0xd2a5ec = _0x302c89[_0x2f59a3(_0x1202cd._0x56c9ca)](_0x8dab6b);
|
|
821
|
-
if (_0xd2a5ec)
|
|
822
|
-
return _0xd2a5ec[_0x2f59a3(0x205)];
|
|
823
|
-
const _0x245f60 = _0x2f59a3(0x1d2) + _0x27ce21 + ':' + randomUUID();
|
|
824
|
-
return _0x302c89[_0x2f59a3(0x320)](_0x8dab6b, {
|
|
825
|
-
'expiresAt': _0x120db7 + 0x5 * 0x3c * 0x3e8,
|
|
826
|
-
'value': _0x245f60
|
|
827
|
-
}), _0x245f60;
|
|
828
|
-
}
|
|
829
|
-
async function _0x252124(_0xb36abc, _0x552a8b) {
|
|
830
|
-
const _0x5a0b4c = _0x5aeed7, _0x40280c = new AbortController(), _0xc44a37 = setTimeout(() => _0x40280c[_0x5a0b4c(0x242)](), _0x114edf), _0x271970 = _0x552a8b?.[_0x5a0b4c(0x1de)] ? anySignal(_0x552a8b[_0x5a0b4c(0x1de)], _0x40280c[_0x5a0b4c(0x1de)]) : _0x40280c[_0x5a0b4c(0x1de)];
|
|
831
|
-
try {
|
|
832
|
-
const _0x3394b8 = await _0x2e3eb('' + _0x5543be + _0xb36abc, {
|
|
833
|
-
..._0x552a8b,
|
|
834
|
-
'signal': _0x271970
|
|
835
|
-
}), _0x4846d9 = await _0x51e1f8(_0x3394b8);
|
|
836
|
-
if (!_0x3394b8['ok'] || _0x4846d9[_0x5a0b4c(0x228)] === ![])
|
|
837
|
-
throw new Error(asErrorMessage(_0x4846d9['error'], _0x5a0b4c(0x298) + _0x3394b8[_0x5a0b4c(_0x48992a._0x4b489a)]));
|
|
838
|
-
return _0x4846d9;
|
|
839
|
-
} finally {
|
|
840
|
-
clearTimeout(_0xc44a37);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
async function _0x37fad3(_0x58c014, _0x1b23fa) {
|
|
844
|
-
const _0x524466 = _0x5aeed7, _0x4a536a = new AbortController(), _0x186298 = setTimeout(() => _0x4a536a[_0x524466(0x242)](), _0x114edf), _0x3cd848 = _0x1b23fa?.[_0x524466(_0x26798d._0x334b6c)] ? anySignal(_0x1b23fa[_0x524466(_0x26798d._0x4b0032)], _0x4a536a[_0x524466(0x1de)]) : _0x4a536a[_0x524466(_0x26798d._0x334b6c)];
|
|
845
|
-
try {
|
|
846
|
-
const _0xc34471 = await _0x2e3eb('' + _0x5543be + _0x58c014, {
|
|
847
|
-
..._0x1b23fa,
|
|
848
|
-
'signal': _0x3cd848
|
|
849
|
-
}), _0x5411fb = await _0x51e1f8(_0xc34471);
|
|
850
|
-
if (!_0xc34471['ok'])
|
|
851
|
-
throw new Error(asErrorMessage(_0x5411fb['error'], _0x524466(_0x26798d._0x5a7b2f) + _0xc34471[_0x524466(0x2e3)]));
|
|
852
|
-
return _0x5411fb;
|
|
853
|
-
} finally {
|
|
854
|
-
clearTimeout(_0x186298);
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
async function _0x576cdb(_0x4b4266) {
|
|
858
|
-
const _0x11f7af = _0x5aeed7;
|
|
859
|
-
if (!_0x46a493 || _0x4b4266 <= _0x14ef19)
|
|
860
|
-
return;
|
|
861
|
-
await _0x252124(_0x11f7af(_0x23857c._0x4d6293) + encodeURIComponent(_0x46a493) + _0x11f7af(_0x23857c._0x5baff4), {
|
|
862
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x4b4266 }),
|
|
863
|
-
'headers': _0x58c7f8,
|
|
864
|
-
'method': _0x11f7af(_0x23857c._0x282b23)
|
|
865
|
-
}), _0x14ef19 = _0x4b4266;
|
|
866
|
-
}
|
|
867
|
-
async function _0x5e656b(_0x4c208c) {
|
|
868
|
-
const _0x2d4225 = _0x5aeed7, _0x5afc4f = parseTarget(_0x4c208c), _0xfc3664 = await _0x252124(_0x2d4225(_0x567ce7._0x51d0fb) + _0x48d01c[_0x2d4225(0x2bf)] + _0x2d4225(0x1c0), {
|
|
869
|
-
'body': JSON[_0x2d4225(0x2a0)]({ 'target': _0x5afc4f['target'] }),
|
|
870
|
-
'headers': _0x58c7f8,
|
|
871
|
-
'method': _0x2d4225(_0x567ce7._0x2d6404)
|
|
872
|
-
});
|
|
873
|
-
return {
|
|
874
|
-
'channelId': _0xfc3664[_0x2d4225(0x279)]?.[_0x2d4225(0x1cd)] ?? '',
|
|
875
|
-
'target': _0x5afc4f[_0x2d4225(_0x567ce7._0x5b61d4)],
|
|
876
|
-
'threadId': _0xfc3664[_0x2d4225(_0x567ce7._0x54f749)]?.[_0x2d4225(0x273)]
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
async function _0x2be809() {
|
|
880
|
-
return !_0x31355e && (_0x31355e = (async () => {
|
|
881
|
-
const _0x3dabb4 = _0x57a3, _0x10c346 = await _0x252124(_0x3dabb4(_0x5163f7._0x5e3354) + _0x48d01c[_0x3dabb4(0x2bf)] + _0x3dabb4(_0x5163f7._0x3d1728), {
|
|
882
|
-
'headers': _0x58c7f8,
|
|
883
|
-
'method': _0x3dabb4(0x244)
|
|
884
|
-
}), _0x1daf87 = _0x10c346[_0x3dabb4(_0x5163f7._0x44d403)]?.[_0x3dabb4(_0x5163f7._0x5c8da1)]['id'] ?? '';
|
|
885
|
-
let _0x180b4e = [];
|
|
886
|
-
try {
|
|
887
|
-
const _0x5d5b40 = await _0x252124(_0x3dabb4(_0x5163f7._0x2b50e4) + encodeURIComponent(_0x1daf87), {
|
|
888
|
-
'headers': _0x58c7f8,
|
|
889
|
-
'method': _0x3dabb4(0x244)
|
|
890
|
-
});
|
|
891
|
-
_0x180b4e = _0x5d5b40[_0x3dabb4(_0x5163f7._0x44f03e)] ?? [];
|
|
892
|
-
} catch {
|
|
893
|
-
_0x180b4e = [];
|
|
894
|
-
}
|
|
895
|
-
const _0xdb0c37 = _0x180b4e[_0x3dabb4(_0x5163f7._0x1213e6)](_0x20c4b5 => ({
|
|
896
|
-
'id': _0x20c4b5[_0x3dabb4(0x308)]?.['id'] ?? _0x20c4b5['server_members']?.[_0x3dabb4(0x2c9)] ?? '',
|
|
897
|
-
'name': _0x20c4b5['participants']?.[_0x3dabb4(0x20c)] ?? _0x20c4b5[_0x3dabb4(0x2c6)]?.[_0x3dabb4(0x2c9)] ?? ''
|
|
898
|
-
}))[_0x3dabb4(0x316)](_0x4faf18 => _0x4faf18['id']), _0x11b959 = new Set(_0xdb0c37[_0x3dabb4(0x20b)](_0x4bfcdf => _0x4bfcdf['id'])), _0x3ec610 = (_0x10c346[_0x3dabb4(_0x5163f7._0x3750d1)]?.[_0x3dabb4(0x2be)] ?? [])[_0x3dabb4(_0x5163f7._0x264093)](_0x534d3e => !_0x11b959[_0x3dabb4(0x304)](_0x5deb09(_0x534d3e)))[_0x3dabb4(_0x5163f7._0x1213e6)](_0x1048ea => ({
|
|
899
|
-
'id': _0x5deb09(_0x1048ea),
|
|
900
|
-
'name': _0x405948(_0x1048ea)
|
|
901
|
-
}))['filter'](_0x11084d => _0x11084d['id']);
|
|
902
|
-
return {
|
|
903
|
-
'agents': _0xdb0c37,
|
|
904
|
-
'channels': _0x10c346[_0x3dabb4(0x279)]?.[_0x3dabb4(0x30e)] ?? [],
|
|
905
|
-
'humans': _0x3ec610,
|
|
906
|
-
'serverId': _0x1daf87,
|
|
907
|
-
'serverName': _0x10c346[_0x3dabb4(0x279)]?.['server'][_0x3dabb4(0x20c)] ?? _0x1daf87
|
|
908
|
-
};
|
|
909
|
-
})()['catch'](_0x511229 => {
|
|
910
|
-
_0x31355e = null;
|
|
911
|
-
throw _0x511229;
|
|
912
|
-
})), _0x31355e;
|
|
913
|
-
}
|
|
914
|
-
function _0x4f063d(_0x4ed476, _0x118e35) {
|
|
915
|
-
const _0x20de53 = _0x5aeed7;
|
|
916
|
-
return _0x118e35[_0x20de53(_0x10cc0a._0x379064)][_0x20de53(_0x10cc0a._0x4f695d)](_0x43ce6f => _0x43ce6f['id'] === _0x4ed476 || _0x43ce6f[_0x20de53(0x20c)] === _0x4ed476) ? 'agent' : _0x20de53(_0x10cc0a._0x441f3e);
|
|
917
|
-
}
|
|
918
|
-
function _0x5deb09(_0x556659) {
|
|
919
|
-
const _0x6e39a0 = _0x5aeed7;
|
|
920
|
-
return _0x556659[_0x6e39a0(0x2d2)]?.[_0x6e39a0(0x2c9)] ?? _0x556659[_0x6e39a0(_0x10886b._0x634597)]?.['id'] ?? _0x556659[_0x6e39a0(_0x10886b._0x3abc20)] ?? '';
|
|
921
|
-
}
|
|
922
|
-
function _0x405948(_0x22c6cf) {
|
|
923
|
-
const _0x1d50a1 = _0x5aeed7;
|
|
924
|
-
return _0x22c6cf[_0x1d50a1(0x1f6)]?.['name'] ?? _0x5deb09(_0x22c6cf);
|
|
925
|
-
}
|
|
926
|
-
async function _0x464958(_0xef9e5c) {
|
|
927
|
-
const _0x367bdb = _0x5aeed7, _0x5b9949 = Math['min'](_0xef9e5c['limit'] ?? 0x32, 0x64), _0x481ef = await _0x2be809(), _0x4c813f = new URLSearchParams();
|
|
928
|
-
_0x4c813f['set']('limit', String(_0x5b9949));
|
|
929
|
-
_0xef9e5c[_0x367bdb(_0x1a6711._0x377081)] ? (_0x4c813f[_0x367bdb(0x320)](_0x367bdb(_0x1a6711._0x377081), _0xef9e5c['threadId']), _0x4c813f[_0x367bdb(0x320)]('channelId', _0xef9e5c[_0x367bdb(0x1cd)])) : _0x4c813f['set']('channelId', _0xef9e5c[_0x367bdb(_0x1a6711._0x446069)]);
|
|
930
|
-
_0xef9e5c[_0x367bdb(_0x1a6711._0x38546e)] && _0x4c813f[_0x367bdb(_0x1a6711._0x3abfd4)](_0x367bdb(_0x1a6711._0xe37d0a), String(_0xef9e5c['before']));
|
|
931
|
-
_0xef9e5c[_0x367bdb(_0x1a6711._0x2d7545)] !== void 0x0 && _0x4c813f['set']('after', String(_0xef9e5c[_0x367bdb(_0x1a6711._0x2d7545)]));
|
|
932
|
-
const _0x295348 = await _0x252124('/internal/agent/' + _0x48d01c[_0x367bdb(_0x1a6711._0x421fb3)] + '/history?' + _0x4c813f['toString'](), {
|
|
933
|
-
'headers': _0x58c7f8,
|
|
934
|
-
'method': _0x367bdb(0x244)
|
|
935
|
-
}), _0x17e6cd = (_0x295348[_0x367bdb(_0x1a6711._0x528afc)] ?? [])[_0x367bdb(0x20b)](_0xa2058 => ({
|
|
936
|
-
'attachments': (_0xa2058['attachments'] ?? [])[_0x367bdb(0x20b)](_0x479f96 => ({
|
|
937
|
-
'filename': _0x479f96['filename'] ?? _0x479f96['id'],
|
|
938
|
-
'id': _0x479f96['id']
|
|
939
|
-
})),
|
|
940
|
-
'content': _0xa2058[_0x367bdb(0x22d)] ?? '',
|
|
941
|
-
'createdAt': _0xa2058[_0x367bdb(0x28d)],
|
|
942
|
-
'messageId': _0xa2058['id'],
|
|
943
|
-
'senderName': _0xa2058[_0x367bdb(0x1c1)],
|
|
944
|
-
'senderType': _0x4f063d(_0xa2058['senderParticipantId'], _0x481ef),
|
|
945
|
-
'seq': _0xa2058[_0x367bdb(0x2e5)] ?? 0x0
|
|
946
|
-
}));
|
|
947
|
-
return {
|
|
948
|
-
'channel': _0xef9e5c[_0x367bdb(0x2ec)],
|
|
949
|
-
'hasMore': _0x295348[_0x367bdb(0x227)]?.[_0x367bdb(0x275)] ?? ![],
|
|
950
|
-
'messages': _0x17e6cd,
|
|
951
|
-
'nextCursor': _0x295348['meta']?.[_0x367bdb(_0x1a6711._0xe37d0a)]
|
|
952
|
-
};
|
|
953
|
-
}
|
|
954
|
-
return {
|
|
955
|
-
async 'sendMessage'(_0x1a56e1) {
|
|
956
|
-
const _0x328c69 = _0x5aeed7, _0x576713 = await _0x5e656b(_0x1a56e1[_0x328c69(_0x2008a7._0xc88af5)]), _0x61c2db = _0x1a56e1[_0x328c69(0x2e8)][_0x328c69(0x1d8)]('@') ? extractMentionedParticipantIds(_0x1a56e1[_0x328c69(_0x2008a7._0x3dda98)], await _0x2be809()) : [], _0x55197d = await _0x252124(_0x328c69(0x2eb) + _0x48d01c[_0x328c69(0x2bf)] + _0x328c69(0x1ff), {
|
|
957
|
-
'body': JSON[_0x328c69(0x2a0)]({
|
|
958
|
-
'attachment_ids': _0x1a56e1['attachmentIds'],
|
|
959
|
-
'bodyMarkdown': _0x1a56e1[_0x328c69(_0x2008a7._0x3dda98)],
|
|
960
|
-
'channelId': _0x576713[_0x328c69(_0x2008a7._0x50ad1b)],
|
|
961
|
-
..._0x61c2db[_0x328c69(_0x2008a7._0x25607d)] > 0x0 ? { 'mentionedParticipantIds': _0x61c2db } : {},
|
|
962
|
-
'threadId': _0x576713[_0x328c69(0x273)]
|
|
963
|
-
}),
|
|
964
|
-
'headers': _0x58c7f8,
|
|
965
|
-
'method': _0x328c69(_0x2008a7._0x29ce68)
|
|
966
|
-
});
|
|
967
|
-
return { 'messageId': _0x55197d['data']?.['id'] ?? '' };
|
|
968
|
-
},
|
|
969
|
-
async 'listSchedules'() {
|
|
970
|
-
const _0x1169ce = _0x5aeed7, _0x2991d5 = await _0x252124(_0x1169ce(_0x15442d._0x5b017e), {
|
|
971
|
-
'headers': _0x58c7f8,
|
|
972
|
-
'method': _0x1169ce(0x244)
|
|
973
|
-
});
|
|
974
|
-
return _0x2991d5[_0x1169ce(0x279)] ?? [];
|
|
975
|
-
},
|
|
976
|
-
async 'claimScheduleRun'(_0x53aad2) {
|
|
977
|
-
const _0x5b314 = _0x5aeed7, _0x21228f = await _0x252124('/api/internal/schedules/claim', {
|
|
978
|
-
'body': JSON[_0x5b314(_0x349ca0._0x2848db)](_0x53aad2),
|
|
979
|
-
'headers': _0x58c7f8,
|
|
980
|
-
'method': _0x5b314(_0x349ca0._0x1886c5)
|
|
981
|
-
});
|
|
982
|
-
return _0x21228f['data'] ?? {
|
|
983
|
-
'granted': ![],
|
|
984
|
-
'runId': null,
|
|
985
|
-
'schedule': null,
|
|
986
|
-
'scheduledFor': _0x53aad2[_0x5b314(0x1e1)]
|
|
987
|
-
};
|
|
988
|
-
},
|
|
989
|
-
async 'startScheduleRun'(_0x2d0acd) {
|
|
990
|
-
const _0x30997c = _0x5aeed7, _0x3d8486 = await _0x252124('/api/internal/schedules/' + encodeURIComponent(_0x2d0acd[_0x30997c(0x2f6)]) + _0x30997c(0x2fd), {
|
|
991
|
-
'body': JSON[_0x30997c(_0x56101c._0x30b9a2)]({}),
|
|
992
|
-
'headers': _0x58c7f8,
|
|
993
|
-
'method': _0x30997c(_0x56101c._0x36acfb)
|
|
994
|
-
});
|
|
995
|
-
return _0x3d8486[_0x30997c(0x279)] ?? {
|
|
996
|
-
'claimedByDaemonId': '',
|
|
997
|
-
'id': _0x2d0acd['runId'],
|
|
998
|
-
'scheduleId': '',
|
|
999
|
-
'status': _0x30997c(0x2f4)
|
|
1000
|
-
};
|
|
1001
|
-
},
|
|
1002
|
-
async 'finishScheduleRun'(_0xc173cd) {
|
|
1003
|
-
const _0x128e6c = _0x5aeed7, _0x5d3567 = await _0x252124(_0x128e6c(0x28f) + encodeURIComponent(_0xc173cd[_0x128e6c(0x2f6)]) + _0x128e6c(_0x10f529._0x352b33), {
|
|
1004
|
-
'body': JSON[_0x128e6c(_0x10f529._0x2483ab)]({
|
|
1005
|
-
'error': _0xc173cd[_0x128e6c(_0x10f529._0x42d016)],
|
|
1006
|
-
'resultJson': _0xc173cd['resultJson'],
|
|
1007
|
-
'status': _0xc173cd[_0x128e6c(_0x10f529._0x334676)]
|
|
1008
|
-
}),
|
|
1009
|
-
'headers': _0x58c7f8,
|
|
1010
|
-
'method': _0x128e6c(_0x10f529._0x243413)
|
|
1011
|
-
});
|
|
1012
|
-
return _0x5d3567['data'] ?? {
|
|
1013
|
-
'nextRunAt': null,
|
|
1014
|
-
'run': {
|
|
1015
|
-
'claimedByDaemonId': '',
|
|
1016
|
-
'id': _0xc173cd[_0x128e6c(_0x10f529._0x30ca06)],
|
|
1017
|
-
'scheduleId': '',
|
|
1018
|
-
'status': _0xc173cd[_0x128e6c(0x2e3)]
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
},
|
|
1022
|
-
async 'listTasks'(_0x290026) {
|
|
1023
|
-
const _0x3ccd89 = _0x5aeed7, _0x18bd62 = new URLSearchParams();
|
|
1024
|
-
return _0x18bd62[_0x3ccd89(0x320)](_0x3ccd89(_0x5104fa._0x17e05c), _0x290026[_0x3ccd89(_0x5104fa._0x17e05c)]), _0x290026[_0x3ccd89(_0x5104fa._0x4a4f2c)] && _0x18bd62[_0x3ccd89(0x320)](_0x3ccd89(_0x5104fa._0x4a4f2c), _0x290026[_0x3ccd89(_0x5104fa._0x4a4f2c)]), _0x37fad3('/internal/agent/' + _0x48d01c[_0x3ccd89(_0x5104fa._0x50e3e7)] + _0x3ccd89(0x1bf) + _0x18bd62[_0x3ccd89(_0x5104fa._0x584e2e)](), {
|
|
1025
|
-
'headers': _0x58c7f8,
|
|
1026
|
-
'method': _0x3ccd89(0x244)
|
|
1027
|
-
});
|
|
1028
|
-
},
|
|
1029
|
-
async 'createTasks'(_0x456f3c) {
|
|
1030
|
-
const _0x577272 = _0x5aeed7;
|
|
1031
|
-
return _0x37fad3(_0x577272(0x2eb) + _0x48d01c['agentId'] + '/tasks', {
|
|
1032
|
-
'body': JSON[_0x577272(0x2a0)]({
|
|
1033
|
-
..._0x456f3c,
|
|
1034
|
-
'idempotency_key': _0x5bf87a('create_tasks', _0x456f3c)
|
|
1035
|
-
}),
|
|
1036
|
-
'headers': _0x58c7f8,
|
|
1037
|
-
'method': 'POST'
|
|
1038
|
-
});
|
|
1039
|
-
},
|
|
1040
|
-
async 'claimTasks'(_0xd9948e) {
|
|
1041
|
-
const _0x437934 = _0x5aeed7;
|
|
1042
|
-
return _0x37fad3(_0x437934(_0x4dee4b._0x2a6e10) + _0x48d01c[_0x437934(_0x4dee4b._0xe67538)] + '/tasks/claim', {
|
|
1043
|
-
'body': JSON[_0x437934(_0x4dee4b._0x271fe1)]({
|
|
1044
|
-
..._0xd9948e,
|
|
1045
|
-
'idempotency_key': _0x5bf87a(_0x437934(0x280), _0xd9948e)
|
|
1046
|
-
}),
|
|
1047
|
-
'headers': _0x58c7f8,
|
|
1048
|
-
'method': 'POST'
|
|
1049
|
-
});
|
|
1050
|
-
},
|
|
1051
|
-
async 'unclaimTask'(_0x15fd82) {
|
|
1052
|
-
const _0x157903 = _0x5aeed7;
|
|
1053
|
-
return _0x37fad3(_0x157903(_0x53781f._0x4ae82a) + _0x48d01c[_0x157903(0x2bf)] + _0x157903(0x268), {
|
|
1054
|
-
'body': JSON[_0x157903(0x2a0)]({
|
|
1055
|
-
..._0x15fd82,
|
|
1056
|
-
'idempotency_key': _0x5bf87a(_0x157903(_0x53781f._0x57c45c), _0x15fd82)
|
|
1057
|
-
}),
|
|
1058
|
-
'headers': _0x58c7f8,
|
|
1059
|
-
'method': _0x157903(_0x53781f._0x40902b)
|
|
1060
|
-
});
|
|
1061
|
-
},
|
|
1062
|
-
async 'updateTaskStatus'(_0x98126) {
|
|
1063
|
-
const _0x2183b5 = _0x5aeed7;
|
|
1064
|
-
return _0x37fad3(_0x2183b5(_0x2df658._0x30539c) + _0x48d01c['agentId'] + '/tasks/update-status', {
|
|
1065
|
-
'body': JSON[_0x2183b5(0x2a0)]({
|
|
1066
|
-
..._0x98126,
|
|
1067
|
-
'idempotency_key': _0x5bf87a(_0x2183b5(_0x2df658._0x55b3af), _0x98126)
|
|
1068
|
-
}),
|
|
1069
|
-
'headers': _0x58c7f8,
|
|
1070
|
-
'method': _0x2183b5(0x2f7)
|
|
1071
|
-
});
|
|
1072
|
-
},
|
|
1073
|
-
async 'uploadFile'(_0x52073e) {
|
|
1074
|
-
const _0x1e324f = _0x5aeed7, _0x28fd34 = await _0x5e656b(_0x52073e[_0x1e324f(_0x130485._0x52864a)]);
|
|
1075
|
-
if (_0x28fd34[_0x1e324f(_0x130485._0x397a62)])
|
|
1076
|
-
throw new Error(_0x1e324f(_0x130485._0x40b114));
|
|
1077
|
-
const _0x437b6b = await _0x252124('/internal/agent/' + _0x48d01c[_0x1e324f(_0x130485._0x11aeb4)] + _0x1e324f(0x253), {
|
|
1078
|
-
'body': JSON[_0x1e324f(0x2a0)]({
|
|
1079
|
-
'channel': _0x28fd34[_0x1e324f(_0x130485._0x463b35)],
|
|
1080
|
-
'contentBase64': _0x52073e[_0x1e324f(0x25a)],
|
|
1081
|
-
'contentType': _0x52073e['contentType'],
|
|
1082
|
-
'originalFilename': _0x52073e[_0x1e324f(0x295)]
|
|
1083
|
-
}),
|
|
1084
|
-
'headers': _0x58c7f8,
|
|
1085
|
-
'method': _0x1e324f(_0x130485._0xb4250)
|
|
1086
|
-
});
|
|
1087
|
-
return {
|
|
1088
|
-
'attachmentId': _0x437b6b['data']?.['id'] ?? '',
|
|
1089
|
-
'filename': _0x437b6b[_0x1e324f(0x279)]?.[_0x1e324f(_0x130485._0x386c8a)] ?? _0x52073e[_0x1e324f(0x295)],
|
|
1090
|
-
'sizeBytes': _0x437b6b['data']?.[_0x1e324f(_0x130485._0x554edc)] ?? 0x0
|
|
1091
|
-
};
|
|
1092
|
-
},
|
|
1093
|
-
async 'downloadAttachment'(_0x1d1ef6) {
|
|
1094
|
-
const _0x27e33b = _0x5aeed7, _0x12556e = await _0x252124(_0x27e33b(0x248) + _0x1d1ef6, {
|
|
1095
|
-
'headers': _0x58c7f8,
|
|
1096
|
-
'method': 'GET'
|
|
1097
|
-
}), _0x4e28bc = new AbortController(), _0xddf85a = setTimeout(() => _0x4e28bc[_0x27e33b(0x242)](), _0x114edf);
|
|
1098
|
-
try {
|
|
1099
|
-
const _0x24135d = await _0x2e3eb(_0x5543be + _0x27e33b(_0x3299c8._0x596d44) + _0x1d1ef6 + _0x27e33b(_0x3299c8._0xe20e61), {
|
|
1100
|
-
'headers': _0x58c7f8,
|
|
1101
|
-
'method': _0x27e33b(_0x3299c8._0x56addd),
|
|
1102
|
-
'signal': _0x4e28bc['signal']
|
|
1103
|
-
});
|
|
1104
|
-
if (!_0x24135d['ok'])
|
|
1105
|
-
throw new Error(_0x27e33b(0x298) + _0x24135d[_0x27e33b(_0x3299c8._0x71274c)]);
|
|
1106
|
-
return {
|
|
1107
|
-
'contentType': _0x12556e[_0x27e33b(0x279)]?.['contentType'] ?? _0x24135d['headers']['get'](_0x27e33b(0x2d0)) ?? _0x27e33b(0x2ae),
|
|
1108
|
-
'data': Buffer[_0x27e33b(0x2a6)](await _0x24135d[_0x27e33b(_0x3299c8._0x5113e4)]()),
|
|
1109
|
-
'originalFilename': _0x12556e[_0x27e33b(_0x3299c8._0x16fa37)]?.[_0x27e33b(0x277)]
|
|
1110
|
-
};
|
|
1111
|
-
} finally {
|
|
1112
|
-
clearTimeout(_0xddf85a);
|
|
1113
|
-
}
|
|
1114
|
-
},
|
|
1115
|
-
async 'listServer'() {
|
|
1116
|
-
return _0x2be809();
|
|
1117
|
-
},
|
|
1118
|
-
async 'readHistory'(_0x19a051) {
|
|
1119
|
-
const _0xc76aa5 = _0x5aeed7, _0xd51e06 = await _0x5e656b(_0x19a051[_0xc76aa5(0x31b)]);
|
|
1120
|
-
return _0x464958({
|
|
1121
|
-
'after': _0x19a051[_0xc76aa5(0x302)],
|
|
1122
|
-
'before': _0x19a051['before'],
|
|
1123
|
-
'channelId': _0xd51e06[_0xc76aa5(_0x4ebe25._0x1af564)],
|
|
1124
|
-
'channelTarget': _0xd51e06[_0xc76aa5(0x1ef)],
|
|
1125
|
-
'limit': _0x19a051[_0xc76aa5(0x2d8)],
|
|
1126
|
-
'threadId': _0xd51e06[_0xc76aa5(_0x4ebe25._0x36dbcb)]
|
|
1127
|
-
});
|
|
1128
|
-
},
|
|
1129
|
-
async 'checkMessages'() {
|
|
1130
|
-
const _0x1f3db1 = _0x5aeed7, _0x3e5b2c = new URLSearchParams();
|
|
1131
|
-
_0x3e5b2c[_0x1f3db1(0x320)](_0x1f3db1(0x2d6), String(_0x6f7c94));
|
|
1132
|
-
const _0x1991ad = _0x3e5b2c[_0x1f3db1(0x2e1)](), _0x35f995 = await _0x252124(_0x1f3db1(0x2eb) + _0x48d01c[_0x1f3db1(0x2bf)] + _0x1f3db1(_0x4fdeb8._0x5c21e4) + (_0x1991ad ? '?' + _0x1991ad : ''), {
|
|
1133
|
-
'headers': _0x58c7f8,
|
|
1134
|
-
'method': _0x1f3db1(_0x4fdeb8._0x2e278e)
|
|
1135
|
-
}), _0xdd575b = _0x35f995[_0x1f3db1(0x279)] ?? [], _0x759c60 = _0x35f995[_0x1f3db1(_0x4fdeb8._0x1c8a1a)]?.[_0x1f3db1(_0x4fdeb8._0x4172f6)], _0x55d81c = _0x759c60 !== void 0x0 ? Math[_0x1f3db1(0x274)](_0x6f7c94, _0x759c60) : _0xdd575b['length'] > 0x0 ? Math[_0x1f3db1(0x274)](_0x6f7c94, _0xdd575b[_0xdd575b[_0x1f3db1(_0x4fdeb8._0x5da7c7)] - 0x1]['seq']) : _0x6f7c94, _0x1a7070 = await _0x2be809(), _0x15f9c3 = new Map(_0x1a7070[_0x1f3db1(_0x4fdeb8._0x32b290)]['map'](_0x1f3710 => [
|
|
1136
|
-
_0x1f3710['id'],
|
|
1137
|
-
_0x1f3710
|
|
1138
|
-
])), _0x1b6f08 = _0xdd575b['filter'](_0x1ba940 => _0x1ba940['aggregateType'] === _0x1f3db1(0x2b2)), _0x419fa2 = new Map();
|
|
1139
|
-
for (const _0x41a6b7 of _0x1b6f08) {
|
|
1140
|
-
const _0x50689f = asRecord(_0x41a6b7[_0x1f3db1(_0x4fdeb8._0x4846a0)]), _0x1c3ac3 = typeof _0x50689f[_0x1f3db1(_0x4fdeb8._0x47e2fe)] === _0x1f3db1(0x1cc) ? _0x50689f['channelId'] : '';
|
|
1141
|
-
if (!_0x1c3ac3)
|
|
1142
|
-
continue;
|
|
1143
|
-
const _0x3193e2 = typeof _0x50689f[_0x1f3db1(0x273)] === _0x1f3db1(_0x4fdeb8._0x59e634) ? _0x50689f['threadId'] : void 0x0, _0x3cd7a8 = typeof _0x50689f[_0x1f3db1(0x311)] === _0x1f3db1(_0x4fdeb8._0x59e634) ? _0x50689f[_0x1f3db1(_0x4fdeb8._0x2e43e8)] : void 0x0, _0x19aaf4 = Boolean(_0x3193e2 && (!_0x3cd7a8 || _0x41a6b7[_0x1f3db1(_0x4fdeb8._0xd31d58)] !== _0x3cd7a8)), _0x2c7cdd = _0x19aaf4 ? _0x1c3ac3 + ':' + _0x3193e2 : _0x1c3ac3, _0x3df5f0 = _0x419fa2['get'](_0x2c7cdd) ?? {
|
|
1144
|
-
'aggregateIds': [],
|
|
1145
|
-
'channelId': _0x1c3ac3,
|
|
1146
|
-
'entries': new Map(),
|
|
1147
|
-
'isThreadReply': _0x19aaf4,
|
|
1148
|
-
'rootMessageId': _0x3cd7a8,
|
|
1149
|
-
'threadId': _0x19aaf4 ? _0x3193e2 : void 0x0
|
|
1150
|
-
};
|
|
1151
|
-
_0x3df5f0['aggregateIds'][_0x1f3db1(0x1c3)](_0x41a6b7[_0x1f3db1(0x26f)]), _0x3df5f0['entries'][_0x1f3db1(0x320)](_0x41a6b7[_0x1f3db1(_0x4fdeb8._0x5cc2c0)], {
|
|
1152
|
-
'payloadJson': _0x41a6b7[_0x1f3db1(_0x4fdeb8._0x4846a0)],
|
|
1153
|
-
'seq': _0x41a6b7[_0x1f3db1(_0x4fdeb8._0x4d1337)]
|
|
1154
|
-
}), _0x419fa2[_0x1f3db1(_0x4fdeb8._0x8cbafd)](_0x2c7cdd, _0x3df5f0);
|
|
1155
|
-
}
|
|
1156
|
-
const _0x5738e7 = [];
|
|
1157
|
-
for (const _0x13c7f1 of _0x419fa2['values']()) {
|
|
1158
|
-
const {
|
|
1159
|
-
channelId: _0x49b7f2,
|
|
1160
|
-
threadId: _0x1d2f97,
|
|
1161
|
-
rootMessageId: _0x7a3460,
|
|
1162
|
-
aggregateIds: _0x5b243b,
|
|
1163
|
-
isThreadReply: _0x173c1c,
|
|
1164
|
-
entries: _0x438934
|
|
1165
|
-
} = _0x13c7f1, _0x30bca8 = _0x15f9c3['get'](_0x49b7f2), _0x511016 = _0x30bca8?.[_0x1f3db1(_0x4fdeb8._0x47a519)] ?? _0x49b7f2, _0x3dce22 = _0x30bca8?.[_0x1f3db1(_0x4fdeb8._0x43d006)] === 'dm' ? _0x1f3db1(0x216) + _0x511016 : '#' + _0x511016, _0x5a2e35 = await _0x464958({
|
|
1166
|
-
'channelId': _0x49b7f2,
|
|
1167
|
-
'channelTarget': _0x3dce22,
|
|
1168
|
-
'limit': Math[_0x1f3db1(_0x4fdeb8._0x4ee1c0)](_0x5b243b[_0x1f3db1(0x238)], 0x32),
|
|
1169
|
-
'threadId': _0x1d2f97
|
|
1170
|
-
}), _0x24f6da = new Map(_0x5a2e35[_0x1f3db1(_0x4fdeb8._0x531a6e)][_0x1f3db1(_0x4fdeb8._0x44c275)](_0x14f5fc => [
|
|
1171
|
-
_0x14f5fc[_0x1f3db1(0x24e)],
|
|
1172
|
-
_0x14f5fc
|
|
1173
|
-
])), _0x473a96 = _0x1d2f97 ? _0x3dce22 + ':' + (_0x7a3460?.[_0x1f3db1(_0x4fdeb8._0x43d2b4)](0x0, 0x8) ?? _0x1d2f97['slice'](0x0, 0x8)) : _0x3dce22, _0x125f60 = _0x173c1c ? _0x473a96 : _0x3dce22;
|
|
1174
|
-
for (const _0x5b1f06 of _0x5b243b) {
|
|
1175
|
-
const _0x3bc9ef = _0x24f6da[_0x1f3db1(0x265)](_0x5b1f06);
|
|
1176
|
-
if (_0x3bc9ef) {
|
|
1177
|
-
_0x5738e7['push']({
|
|
1178
|
-
'attachments': _0x3bc9ef[_0x1f3db1(0x2c4)],
|
|
1179
|
-
'content': _0x3bc9ef[_0x1f3db1(0x2e8)],
|
|
1180
|
-
'createdAt': _0x3bc9ef['createdAt'],
|
|
1181
|
-
'messageId': _0x3bc9ef[_0x1f3db1(0x24e)],
|
|
1182
|
-
'senderName': _0x3bc9ef['senderName'],
|
|
1183
|
-
'senderType': _0x3bc9ef['senderType'],
|
|
1184
|
-
'target': _0x125f60
|
|
1185
|
-
});
|
|
1186
|
-
continue;
|
|
1187
|
-
}
|
|
1188
|
-
const _0x4a78c7 = _0x438934[_0x1f3db1(0x265)](_0x5b1f06);
|
|
1189
|
-
if (_0x4a78c7) {
|
|
1190
|
-
const _0x321259 = asRecord(_0x4a78c7['payloadJson']), _0x249318 = typeof _0x321259[_0x1f3db1(0x1c1)] === _0x1f3db1(0x1cc) ? _0x321259[_0x1f3db1(0x1c1)] : '', _0x222a16 = typeof _0x321259[_0x1f3db1(_0x4fdeb8._0x46d1a7)] === _0x1f3db1(0x1cc) ? _0x321259[_0x1f3db1(_0x4fdeb8._0x5c2d1d)] : '';
|
|
1191
|
-
_0x249318 && _0x222a16 && _0x5738e7[_0x1f3db1(0x1c3)]({
|
|
1192
|
-
'attachments': [],
|
|
1193
|
-
'content': _0x222a16,
|
|
1194
|
-
'createdAt': new Date()[_0x1f3db1(0x218)](),
|
|
1195
|
-
'messageId': _0x5b1f06,
|
|
1196
|
-
'senderName': _0x249318,
|
|
1197
|
-
'senderType': _0x4f063d(_0x249318, _0x1a7070),
|
|
1198
|
-
'target': _0x125f60
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
const _0x448f72 = _0x5022e1 ? _0x5738e7[_0x1f3db1(0x316)](_0x567e13 => _0x567e13[_0x1f3db1(0x1ef)] === _0x5022e1) : _0x5738e7;
|
|
1204
|
-
return _0x55d81c > 0x0 && await _0x576cdb(_0x55d81c), _0x55d81c > _0x6f7c94 && (_0x6f7c94 = _0x55d81c), { 'messages': _0x448f72 };
|
|
1205
|
-
}
|
|
1301
|
+
_0x4879 = function () {
|
|
1302
|
+
return _0x2257c8;
|
|
1206
1303
|
};
|
|
1304
|
+
return _0x4879();
|
|
1207
1305
|
}
|
|
1208
|
-
function
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
},
|
|
1215
|
-
if (
|
|
1216
|
-
return
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
function formatAttachmentSuffix(_0x48030b) {
|
|
1221
|
-
const _0xbec5ce = {
|
|
1222
|
-
_0x22f442: 0x238,
|
|
1223
|
-
_0x588f70: 0x238,
|
|
1224
|
-
_0x27397d: 0x28e
|
|
1225
|
-
}, _0x117aa6 = _0xa1982e;
|
|
1226
|
-
if (!_0x48030b || _0x48030b[_0x117aa6(_0xbec5ce._0x22f442)] === 0x0)
|
|
1227
|
-
return '';
|
|
1228
|
-
return '\x20[' + _0x48030b[_0x117aa6(_0xbec5ce._0x22f442)] + _0x117aa6(0x2e7) + (_0x48030b[_0x117aa6(_0xbec5ce._0x588f70)] > 0x1 ? 's' : '') + ':\x20' + _0x48030b['map'](_0x3122d0 => _0x3122d0[_0x117aa6(0x295)] + _0x117aa6(0x285) + _0x3122d0['id'] + ')')[_0x117aa6(0x1c9)](',\x20') + _0x117aa6(_0xbec5ce._0x27397d);
|
|
1229
|
-
}
|
|
1230
|
-
function formatCheckMessages(_0x1addc4) {
|
|
1231
|
-
const _0x50ca63 = {
|
|
1232
|
-
_0x24cc61: 0x303,
|
|
1233
|
-
_0x22a313: 0x27a,
|
|
1234
|
-
_0x3efa41: 0x2bc,
|
|
1235
|
-
_0x377578: 0x1c7,
|
|
1236
|
-
_0x45b162: 0x2c4
|
|
1237
|
-
}, _0x252c13 = _0xa1982e;
|
|
1238
|
-
if (_0x1addc4[_0x252c13(0x238)] === 0x0)
|
|
1239
|
-
return _0x252c13(0x2ea);
|
|
1240
|
-
return _0x1addc4[_0x252c13(0x20b)](_0x5b28b1 => {
|
|
1241
|
-
const _0x1aa418 = _0x252c13, _0x139a6c = _0x5b28b1[_0x1aa418(_0x50ca63._0x24cc61)] === _0x1aa418(0x2ca) ? _0x1aa418(_0x50ca63._0x22a313) : '';
|
|
1242
|
-
return _0x1aa418(0x31e) + _0x5b28b1[_0x1aa418(0x1ef)] + _0x1aa418(0x239) + _0x5b28b1[_0x1aa418(0x24e)][_0x1aa418(0x296)](0x0, 0x8) + _0x1aa418(_0x50ca63._0x3efa41) + toLocalTime(_0x5b28b1['createdAt']) + _0x139a6c + _0x1aa418(_0x50ca63._0x377578) + _0x5b28b1[_0x1aa418(0x293)] + ':\x20' + _0x5b28b1['content'] + formatAttachmentSuffix(_0x5b28b1[_0x1aa418(_0x50ca63._0x45b162)]);
|
|
1306
|
+
function formatCheckMessages(_0xa9f7a) {
|
|
1307
|
+
const _0x153ee5 = { _0x492926: 0x243 }, _0x3f4c88 = {
|
|
1308
|
+
_0x498614: 0x1bf,
|
|
1309
|
+
_0x438fd9: 0x2ae,
|
|
1310
|
+
_0x52c6c0: 0x160,
|
|
1311
|
+
_0x3c77c2: 0x25e
|
|
1312
|
+
}, _0x3f2a58 = _0x4ab0ed;
|
|
1313
|
+
if (_0xa9f7a['length'] === 0x0)
|
|
1314
|
+
return 'No\x20new\x20messages.';
|
|
1315
|
+
return _0xa9f7a[_0x3f2a58(_0x153ee5._0x492926)](_0x48dead => {
|
|
1316
|
+
const _0x529470 = _0x3f2a58, _0x4e0ee6 = _0x48dead[_0x529470(0x28c)] === 'agent' ? _0x529470(_0x3f4c88._0x498614) : '';
|
|
1317
|
+
return '[target=' + _0x48dead[_0x529470(_0x3f4c88._0x438fd9)] + _0x529470(0x275) + _0x48dead[_0x529470(_0x3f4c88._0x52c6c0)][_0x529470(0x27a)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x48dead[_0x529470(_0x3f4c88._0x3c77c2)]) + _0x4e0ee6 + _0x529470(0x177) + _0x48dead[_0x529470(0x15c)] + ':\x20' + _0x48dead[_0x529470(0x2b5)] + formatAttachmentSuffix(_0x48dead['attachments']);
|
|
1243
1318
|
})['join']('\x0a');
|
|
1244
1319
|
}
|
|
1245
|
-
function formatHistory(
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1320
|
+
function formatHistory(_0x44ec37) {
|
|
1321
|
+
const _0x2978d0 = {
|
|
1322
|
+
_0xbaa984: 0x2a2,
|
|
1323
|
+
_0x3cdb49: 0x1e3,
|
|
1324
|
+
_0x48addb: 0x243,
|
|
1325
|
+
_0x438f9a: 0x2a5,
|
|
1326
|
+
_0x1b66a9: 0x271,
|
|
1327
|
+
_0x3fb63f: 0x189,
|
|
1328
|
+
_0x431297: 0x1e3,
|
|
1329
|
+
_0x36ca67: 0x23b
|
|
1330
|
+
}, _0x4785b1 = {
|
|
1331
|
+
_0xf4e7c7: 0x1e8,
|
|
1332
|
+
_0x1d620e: 0x1bf,
|
|
1333
|
+
_0x5a0eb1: 0x215,
|
|
1334
|
+
_0x4b5ed8: 0x1fa,
|
|
1335
|
+
_0x81219c: 0x160,
|
|
1336
|
+
_0x2770d4: 0x177
|
|
1337
|
+
}, _0x392e85 = _0x4ab0ed;
|
|
1338
|
+
if (_0x44ec37[_0x392e85(_0x2978d0._0xbaa984)][_0x392e85(_0x2978d0._0x3cdb49)] === 0x0)
|
|
1339
|
+
return '##\x20Message\x20History\x20for\x20' + _0x44ec37['channel'] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1340
|
+
const _0x3e7b2b = _0x44ec37['messages'][_0x392e85(_0x2978d0._0x48addb)](_0x56e744 => {
|
|
1341
|
+
const _0xe6bb6 = _0x392e85, _0x5a6473 = _0x56e744['senderType'] === _0xe6bb6(_0x4785b1._0xf4e7c7) ? _0xe6bb6(_0x4785b1._0x1d620e) : '';
|
|
1342
|
+
return _0xe6bb6(_0x4785b1._0x5a0eb1) + _0x56e744[_0xe6bb6(_0x4785b1._0x4b5ed8)] + _0xe6bb6(0x275) + _0x56e744[_0xe6bb6(_0x4785b1._0x81219c)] + _0xe6bb6(0x191) + toLocalTime(_0x56e744['createdAt']) + _0x5a6473 + _0xe6bb6(_0x4785b1._0x2770d4) + _0x56e744[_0xe6bb6(0x15c)] + ':\x20' + _0x56e744[_0xe6bb6(0x2b5)] + formatAttachmentSuffix(_0x56e744[_0xe6bb6(0x15a)]);
|
|
1343
|
+
})[_0x392e85(_0x2978d0._0x438f9a)]('\x0a'), _0x896441 = _0x44ec37['hasMore'] && _0x44ec37['nextCursor'] ? _0x392e85(_0x2978d0._0x1b66a9) + _0x44ec37[_0x392e85(_0x2978d0._0xbaa984)][_0x392e85(0x1e3)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x44ec37[_0x392e85(_0x2978d0._0x3fb63f)] + _0x392e85(0x252) : '';
|
|
1344
|
+
return '##\x20Message\x20History\x20for\x20' + _0x44ec37[_0x392e85(0x1a4)] + '\x20(' + _0x44ec37[_0x392e85(0x2a2)][_0x392e85(_0x2978d0._0x431297)] + _0x392e85(_0x2978d0._0x36ca67) + _0x3e7b2b + _0x896441;
|
|
1265
1345
|
}
|
|
1266
|
-
function formatServerDirectory(
|
|
1267
|
-
const
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1346
|
+
function formatServerDirectory(_0x5dba44) {
|
|
1347
|
+
const _0x46ec37 = {
|
|
1348
|
+
_0xc03f8b: 0x231,
|
|
1349
|
+
_0x1afd66: 0x2a5,
|
|
1350
|
+
_0x491c85: 0x23e,
|
|
1351
|
+
_0x855944: 0x243,
|
|
1352
|
+
_0x294c9b: 0x1f9,
|
|
1353
|
+
_0x4d88d5: 0x243,
|
|
1354
|
+
_0x1f551c: 0x2c2,
|
|
1355
|
+
_0x2999de: 0x1b0
|
|
1356
|
+
}, _0x420fbe = _0x4ab0ed, _0x2a8159 = _0x5dba44[_0x420fbe(_0x46ec37._0xc03f8b)]['length'] > 0x0 ? _0x5dba44[_0x420fbe(0x231)][_0x420fbe(0x243)](_0x9e3af7 => _0x9e3af7[_0x420fbe(0x262)] ? _0x420fbe(0x219) + _0x9e3af7[_0x420fbe(0x228)] + '\x20—\x20' + _0x9e3af7[_0x420fbe(0x262)] : _0x420fbe(0x219) + _0x9e3af7[_0x420fbe(0x228)])[_0x420fbe(_0x46ec37._0x1afd66)]('\x0a') : _0x420fbe(0x1f9), _0x16aed1 = _0x5dba44[_0x420fbe(0x23e)][_0x420fbe(0x1e3)] > 0x0 ? _0x5dba44[_0x420fbe(_0x46ec37._0x491c85)][_0x420fbe(_0x46ec37._0x855944)](_0x153ca6 => _0x420fbe(0x264) + _0x153ca6[_0x420fbe(0x228)])['join']('\x0a') : _0x420fbe(_0x46ec37._0x294c9b), _0x388ab1 = _0x5dba44[_0x420fbe(0x273)]['length'] > 0x0 ? _0x5dba44[_0x420fbe(0x273)][_0x420fbe(_0x46ec37._0x4d88d5)](_0x556f5a => _0x420fbe(0x264) + _0x556f5a[_0x420fbe(0x228)])[_0x420fbe(0x2a5)]('\x0a') : _0x420fbe(0x1f9);
|
|
1275
1357
|
return [
|
|
1276
|
-
|
|
1358
|
+
'##\x20Server:\x20' + _0x5dba44[_0x420fbe(_0x46ec37._0x1f551c)],
|
|
1277
1359
|
'',
|
|
1278
|
-
|
|
1279
|
-
|
|
1360
|
+
_0x420fbe(_0x46ec37._0x2999de),
|
|
1361
|
+
_0x2a8159,
|
|
1280
1362
|
'',
|
|
1281
|
-
|
|
1282
|
-
|
|
1363
|
+
_0x420fbe(0x1af),
|
|
1364
|
+
_0x16aed1,
|
|
1283
1365
|
'',
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
][
|
|
1366
|
+
_0x420fbe(0x26f),
|
|
1367
|
+
_0x388ab1
|
|
1368
|
+
][_0x420fbe(_0x46ec37._0x1afd66)]('\x0a');
|
|
1287
1369
|
}
|
|
1288
|
-
function formatUploadResult(
|
|
1289
|
-
const
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
},
|
|
1294
|
-
return
|
|
1370
|
+
function formatUploadResult(_0x579791) {
|
|
1371
|
+
const _0x5df97c = {
|
|
1372
|
+
_0x5b9096: 0x25c,
|
|
1373
|
+
_0x1daa90: 0x17b,
|
|
1374
|
+
_0x17aa7c: 0x213
|
|
1375
|
+
}, _0x3a19e0 = _0x4ab0ed;
|
|
1376
|
+
return _0x3a19e0(0x224) + _0x579791[_0x3a19e0(_0x5df97c._0x5b9096)] + '\x20(' + (_0x579791['sizeBytes'] / 0x400)[_0x3a19e0(_0x5df97c._0x1daa90)](0x1) + _0x3a19e0(_0x5df97c._0x17aa7c) + _0x579791['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1295
1377
|
}
|
|
1296
|
-
function formatViewFileResult(
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1378
|
+
function formatViewFileResult(_0x4bff56, _0x1b8dc0) {
|
|
1379
|
+
const _0x497a5e = { _0x55dc54: 0x22f }, _0x47f9bd = _0x4ab0ed;
|
|
1380
|
+
return _0x1b8dc0 ? _0x47f9bd(_0x497a5e._0x55dc54) + _0x4bff56 : 'Downloaded\x20to:\x20' + _0x4bff56;
|
|
1299
1381
|
}
|
|
1300
|
-
function formatTaskList(
|
|
1301
|
-
const
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
},
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
return
|
|
1315
|
-
|
|
1316
|
-
const _0x468ac0 = _0x289929, _0x158098 = _0x3d3eed[_0x468ac0(0x1e3)] == null ? _0x468ac0(_0x1cf1f5._0x121f3f) : '#' + _0x3d3eed[_0x468ac0(_0x1cf1f5._0x10644b)], _0x3e7324 = _0x3d3eed[_0x468ac0(0x24e)] ? _0x468ac0(_0x1cf1f5._0x297b7a) + _0x3d3eed[_0x468ac0(_0x1cf1f5._0x3c7741)] : '', _0x14e10c = _0x841761 && _0x3d3eed[_0x468ac0(0x1e3)] != null && _0x841761[_0x468ac0(_0x1cf1f5._0x3b6972)](_0x3d3eed[_0x468ac0(0x1e3)]) ? _0x468ac0(_0x1cf1f5._0x39bdb2) : '';
|
|
1317
|
-
return _0x158098 + '\x20[' + _0x3d3eed[_0x468ac0(0x2e3)] + ']\x20' + _0x3d3eed[_0x468ac0(_0x1cf1f5._0x103ea7)] + _0x3e7324 + _0x14e10c;
|
|
1318
|
-
})[_0x289929(_0x50e3cb._0x105f11)]('\x0a');
|
|
1382
|
+
function formatTaskList(_0x249b7c, _0x5e7c93) {
|
|
1383
|
+
const _0x1cbaa2 = {
|
|
1384
|
+
_0x52fbdc: 0x1e3,
|
|
1385
|
+
_0x49a8f9: 0x243
|
|
1386
|
+
}, _0x511190 = {
|
|
1387
|
+
_0x56a927: 0x1d4,
|
|
1388
|
+
_0x3a96e7: 0x160,
|
|
1389
|
+
_0x4dd4f1: 0x1d4,
|
|
1390
|
+
_0x3e71c9: 0x1ee
|
|
1391
|
+
}, _0x16d397 = _0x4ab0ed;
|
|
1392
|
+
if (_0x249b7c[_0x16d397(_0x1cbaa2._0x52fbdc)] === 0x0)
|
|
1393
|
+
return _0x16d397(0x266);
|
|
1394
|
+
return _0x249b7c[_0x16d397(_0x1cbaa2._0x49a8f9)](_0x55e24a => {
|
|
1395
|
+
const _0x2a9673 = _0x16d397, _0x5b4810 = _0x55e24a[_0x2a9673(_0x511190._0x56a927)] == null ? _0x2a9673(0x283) : '#' + _0x55e24a[_0x2a9673(_0x511190._0x56a927)], _0x187a2d = _0x55e24a[_0x2a9673(0x160)] ? _0x2a9673(0x1c1) + _0x55e24a[_0x2a9673(_0x511190._0x3a96e7)] : '', _0x1d2d1a = _0x5e7c93 && _0x55e24a[_0x2a9673(0x1d4)] != null && _0x5e7c93[_0x2a9673(0x297)](_0x55e24a[_0x2a9673(_0x511190._0x4dd4f1)]) ? _0x2a9673(0x2c1) : '';
|
|
1396
|
+
return _0x5b4810 + '\x20[' + _0x55e24a['status'] + ']\x20' + _0x55e24a[_0x2a9673(_0x511190._0x3e71c9)] + _0x187a2d + _0x1d2d1a;
|
|
1397
|
+
})['join']('\x0a');
|
|
1319
1398
|
}
|
|
1320
|
-
function formatCreatedTasks(
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1399
|
+
function formatCreatedTasks(_0x22be42) {
|
|
1400
|
+
const _0xc636ea = {
|
|
1401
|
+
_0x45bbef: 0x1e3,
|
|
1402
|
+
_0x2f89c4: 0x217,
|
|
1403
|
+
_0xfb5961: 0x243
|
|
1404
|
+
}, _0x1d2846 = _0x4ab0ed;
|
|
1405
|
+
if (_0x22be42[_0x1d2846(_0xc636ea._0x45bbef)] === 0x0)
|
|
1406
|
+
return _0x1d2846(_0xc636ea._0x2f89c4);
|
|
1407
|
+
return _0x22be42[_0x1d2846(_0xc636ea._0xfb5961)](_0x4acdea => {
|
|
1408
|
+
const _0x2a1dfd = _0x1d2846, _0x4bd928 = _0x4acdea[_0x2a1dfd(0x1d4)] == null ? '(legacy)' : '#' + _0x4acdea[_0x2a1dfd(0x1d4)];
|
|
1409
|
+
return _0x4bd928 + '\x20' + _0x4acdea[_0x2a1dfd(0x1ee)] + _0x2a1dfd(0x1c1) + _0x4acdea[_0x2a1dfd(0x160)];
|
|
1410
|
+
})['join']('\x0a');
|
|
1328
1411
|
}
|
|
1329
|
-
function formatClaimTaskResults(
|
|
1330
|
-
const
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1412
|
+
function formatClaimTaskResults(_0x4856fb) {
|
|
1413
|
+
const _0x5b032e = {
|
|
1414
|
+
_0x221f0a: 0x1e3,
|
|
1415
|
+
_0x53b259: 0x175,
|
|
1416
|
+
_0x3a9572: 0x2a5
|
|
1417
|
+
}, _0x193bdb = {
|
|
1418
|
+
_0x3bce1b: 0x1c1,
|
|
1419
|
+
_0x32db6f: 0x2b6,
|
|
1420
|
+
_0x1e06a3: 0x261,
|
|
1421
|
+
_0x4d723a: 0x2bc,
|
|
1422
|
+
_0x220cf9: 0x21c,
|
|
1423
|
+
_0x4e413f: 0x20c,
|
|
1424
|
+
_0x3348ab: 0x1d9,
|
|
1425
|
+
_0x53557f: 0x226,
|
|
1426
|
+
_0x29bf14: 0x2b4,
|
|
1427
|
+
_0x48920d: 0x160,
|
|
1428
|
+
_0x255799: 0x1bb
|
|
1429
|
+
}, _0x15043f = _0x4ab0ed;
|
|
1430
|
+
if (_0x4856fb[_0x15043f(_0x5b032e._0x221f0a)] === 0x0)
|
|
1431
|
+
return _0x15043f(_0x5b032e._0x53b259);
|
|
1432
|
+
return _0x4856fb[_0x15043f(0x243)](_0x63e7f9 => {
|
|
1433
|
+
const _0x47f690 = _0x15043f;
|
|
1434
|
+
if (_0x63e7f9['success']) {
|
|
1435
|
+
const _0x2d33b7 = _0x63e7f9[_0x47f690(0x1d4)] == null ? '(legacy)' : '#' + _0x63e7f9[_0x47f690(0x1d4)], _0x20c845 = _0x63e7f9[_0x47f690(0x160)] ? _0x47f690(_0x193bdb._0x3bce1b) + _0x63e7f9[_0x47f690(0x160)] : '', _0x22ac38 = _0x63e7f9['workerHandoff'] ? [
|
|
1436
|
+
_0x47f690(0x1bd),
|
|
1437
|
+
_0x63e7f9[_0x47f690(_0x193bdb._0x32db6f)] ? _0x47f690(_0x193bdb._0x1e06a3) : null,
|
|
1438
|
+
_0x63e7f9[_0x47f690(0x2bc)] ? 'executionMode=' + _0x63e7f9[_0x47f690(_0x193bdb._0x4d723a)] : null,
|
|
1439
|
+
_0x63e7f9['threadTarget'] ? _0x47f690(0x280) + _0x63e7f9[_0x47f690(0x245)] : null,
|
|
1440
|
+
_0x63e7f9[_0x47f690(0x20c)] ? _0x47f690(_0x193bdb._0x220cf9) + _0x63e7f9[_0x47f690(_0x193bdb._0x4e413f)] : null
|
|
1441
|
+
][_0x47f690(_0x193bdb._0x3348ab)](Boolean)[_0x47f690(0x2a5)]('\x20') : _0x63e7f9[_0x47f690(_0x193bdb._0x53557f)] ? _0x47f690(0x233) + _0x63e7f9[_0x47f690(0x226)] : '';
|
|
1353
1442
|
return [
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
][
|
|
1443
|
+
_0x2d33b7 + _0x47f690(_0x193bdb._0x29bf14) + _0x20c845,
|
|
1444
|
+
_0x22ac38
|
|
1445
|
+
][_0x47f690(_0x193bdb._0x3348ab)](Boolean)[_0x47f690(0x2a5)]('\x20');
|
|
1357
1446
|
}
|
|
1358
|
-
const
|
|
1359
|
-
return
|
|
1360
|
-
})[
|
|
1447
|
+
const _0x36232a = _0x63e7f9[_0x47f690(0x1d4)] == null ? _0x63e7f9[_0x47f690(_0x193bdb._0x48920d)] ?? '(unknown)' : '#' + _0x63e7f9['taskNumber'];
|
|
1448
|
+
return _0x36232a + _0x47f690(0x1ef) + (_0x63e7f9['reason'] ?? _0x47f690(_0x193bdb._0x255799));
|
|
1449
|
+
})[_0x15043f(_0x5b032e._0x3a9572)]('\x0a');
|
|
1361
1450
|
}
|
|
1362
|
-
function formatUnclaimTaskResult(
|
|
1363
|
-
const
|
|
1364
|
-
return
|
|
1451
|
+
function formatUnclaimTaskResult(_0x375477) {
|
|
1452
|
+
const _0xc0d0ae = { _0x526d9e: 0x1d4 }, _0x1e4df4 = _0x4ab0ed, _0x3982fa = _0x375477[_0x1e4df4(_0xc0d0ae._0x526d9e)] == null ? _0x1e4df4(0x283) : '#' + _0x375477[_0x1e4df4(0x1d4)];
|
|
1453
|
+
return _0x3982fa + _0x1e4df4(0x1d8) + _0x375477['status'];
|
|
1365
1454
|
}
|
|
1366
|
-
function formatUpdateTaskStatusResult(
|
|
1367
|
-
const
|
|
1368
|
-
|
|
1369
|
-
_0x522071: 0x28b
|
|
1370
|
-
}, _0x38d219 = _0xa1982e, _0x37cf43 = _0x1fce83[_0x38d219(_0xb05ea8._0xbdc681)] == null ? '(legacy)' : '#' + _0x1fce83['taskNumber'];
|
|
1371
|
-
return _0x37cf43 + _0x38d219(_0xb05ea8._0x522071) + _0x1fce83['status'];
|
|
1455
|
+
function formatUpdateTaskStatusResult(_0x6919cb) {
|
|
1456
|
+
const _0x15db32 = { _0x536f68: 0x1d4 }, _0x2db57d = _0x4ab0ed, _0x2cfb65 = _0x6919cb[_0x2db57d(0x1d4)] == null ? '(legacy)' : '#' + _0x6919cb[_0x2db57d(_0x15db32._0x536f68)];
|
|
1457
|
+
return _0x2cfb65 + '\x20status=' + _0x6919cb[_0x2db57d(0x1c0)];
|
|
1372
1458
|
}
|
|
1373
1459
|
function getChatBridgeToolDefinitions() {
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}, _0x364d0b = _0xa1982e;
|
|
1460
|
+
const _0x3724cd = {
|
|
1461
|
+
_0x44aacc: 0x1f0,
|
|
1462
|
+
_0x6ab1bc: 0x1fc,
|
|
1463
|
+
_0x37f739: 0x287,
|
|
1464
|
+
_0x2843d6: 0x166,
|
|
1465
|
+
_0x303f56: 0x1a8,
|
|
1466
|
+
_0x4564b0: 0x2a3
|
|
1467
|
+
}, _0x475a08 = _0x4ab0ed;
|
|
1383
1468
|
return [
|
|
1384
|
-
{ 'name':
|
|
1385
|
-
{ 'name':
|
|
1386
|
-
{ 'name':
|
|
1387
|
-
{ 'name':
|
|
1388
|
-
{ 'name':
|
|
1389
|
-
{ 'name':
|
|
1390
|
-
{ 'name':
|
|
1391
|
-
{ 'name':
|
|
1392
|
-
{ 'name':
|
|
1393
|
-
{ 'name':
|
|
1394
|
-
{ 'name':
|
|
1395
|
-
{ 'name':
|
|
1396
|
-
{ 'name':
|
|
1397
|
-
{ 'name':
|
|
1398
|
-
{ 'name':
|
|
1399
|
-
{ 'name':
|
|
1400
|
-
{ 'name':
|
|
1469
|
+
{ 'name': _0x475a08(0x23f) },
|
|
1470
|
+
{ 'name': _0x475a08(_0x3724cd._0x44aacc) },
|
|
1471
|
+
{ 'name': _0x475a08(0x2c3) },
|
|
1472
|
+
{ 'name': _0x475a08(0x184) },
|
|
1473
|
+
{ 'name': _0x475a08(_0x3724cd._0x6ab1bc) },
|
|
1474
|
+
{ 'name': _0x475a08(_0x3724cd._0x37f739) },
|
|
1475
|
+
{ 'name': 'list_tasks' },
|
|
1476
|
+
{ 'name': 'create_tasks' },
|
|
1477
|
+
{ 'name': _0x475a08(_0x3724cd._0x2843d6) },
|
|
1478
|
+
{ 'name': 'unclaim_task' },
|
|
1479
|
+
{ 'name': _0x475a08(0x272) },
|
|
1480
|
+
{ 'name': _0x475a08(0x210) },
|
|
1481
|
+
{ 'name': _0x475a08(0x157) },
|
|
1482
|
+
{ 'name': _0x475a08(_0x3724cd._0x303f56) },
|
|
1483
|
+
{ 'name': _0x475a08(_0x3724cd._0x4564b0) },
|
|
1484
|
+
{ 'name': _0x475a08(0x186) },
|
|
1485
|
+
{ 'name': 'mark_waiting_input' }
|
|
1401
1486
|
];
|
|
1402
1487
|
}
|
|
1403
|
-
function createChatBridgeHandlers(
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
},
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
},
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
},
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
},
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
_0x46c5b4: 0x1c9,
|
|
1489
|
-
_0x21b2f5: 0x2a0,
|
|
1490
|
-
_0x58fdc6: 0x1e2,
|
|
1491
|
-
_0x57d692: 0x1e3,
|
|
1492
|
-
_0x54bebf: 0x2f5,
|
|
1493
|
-
_0x49dc86: 0x2ab,
|
|
1494
|
-
_0x42097e: 0x2ff
|
|
1488
|
+
function createChatBridgeHandlers(_0x38edde) {
|
|
1489
|
+
const _0x109611 = {
|
|
1490
|
+
_0x544988: 0x267,
|
|
1491
|
+
_0x28c6c6: 0x216,
|
|
1492
|
+
_0x1564f8: 0x18e,
|
|
1493
|
+
_0xf82af0: 0x168
|
|
1494
|
+
}, _0x222e3b = {
|
|
1495
|
+
_0x546401: 0x2a0,
|
|
1496
|
+
_0x4a879a: 0x203,
|
|
1497
|
+
_0x4c1c19: 0x25b,
|
|
1498
|
+
_0x31f44a: 0x1ce,
|
|
1499
|
+
_0x420097: 0x214,
|
|
1500
|
+
_0xc81ee6: 0x1c2
|
|
1501
|
+
}, _0x2ebb57 = {
|
|
1502
|
+
_0x1d507b: 0x267,
|
|
1503
|
+
_0x26a4a3: 0x192,
|
|
1504
|
+
_0xb4c0: 0x19a,
|
|
1505
|
+
_0x3366d: 0x295,
|
|
1506
|
+
_0x379274: 0x250,
|
|
1507
|
+
_0x40317e: 0x18e,
|
|
1508
|
+
_0x30c266: 0x1e2,
|
|
1509
|
+
_0xcf6191: 0x25b,
|
|
1510
|
+
_0x4d031a: 0x1c7
|
|
1511
|
+
}, _0x4f62d5 = {
|
|
1512
|
+
_0x21f533: 0x267,
|
|
1513
|
+
_0x5dc9d1: 0x281,
|
|
1514
|
+
_0x5edc9d: 0x199,
|
|
1515
|
+
_0x22af6f: 0x1ec,
|
|
1516
|
+
_0x69d102: 0x27c,
|
|
1517
|
+
_0x4085f0: 0x25b
|
|
1518
|
+
}, _0x302647 = {
|
|
1519
|
+
_0x4a8c85: 0x267,
|
|
1520
|
+
_0x4add36: 0x267,
|
|
1521
|
+
_0x4a65c1: 0x1c5,
|
|
1522
|
+
_0x513712: 0x18e
|
|
1523
|
+
}, _0x445bf1 = {
|
|
1524
|
+
_0x5b5547: 0x1ce,
|
|
1525
|
+
_0x3d263e: 0x27b,
|
|
1526
|
+
_0x466ff2: 0x267,
|
|
1527
|
+
_0x5bd23f: 0x17f,
|
|
1528
|
+
_0xdafd1a: 0x203,
|
|
1529
|
+
_0x1f3e2e: 0x25b,
|
|
1530
|
+
_0x1858b4: 0x1f5
|
|
1531
|
+
}, _0x41dd08 = {
|
|
1532
|
+
_0xf43c58: 0x26c,
|
|
1533
|
+
_0x1e09cc: 0x298,
|
|
1534
|
+
_0x372e0e: 0x165,
|
|
1535
|
+
_0x27990c: 0x1ad
|
|
1536
|
+
}, _0x2ce1b6 = {
|
|
1537
|
+
_0x4a02b7: 0x221,
|
|
1538
|
+
_0x21b541: 0x2a1,
|
|
1539
|
+
_0x33f55a: 0x240
|
|
1540
|
+
}, _0x2779b1 = { _0x547638: 0x240 }, _0xa98df3 = { _0x260e3c: 0x22b }, _0x1239fd = {
|
|
1541
|
+
_0x696e1e: 0x267,
|
|
1542
|
+
_0x14d6d5: 0x27a,
|
|
1543
|
+
_0x2d465e: 0x21e,
|
|
1544
|
+
_0x3acd4e: 0x2b9
|
|
1545
|
+
}, _0x349482 = { _0x49c21b: 0x240 }, _0x39d128 = { _0x2f6011: 0x240 }, _0x188bef = { _0x14e3c6: 0x1e5 }, _0x4762d6 = {
|
|
1546
|
+
_0x4bf372: 0x265,
|
|
1547
|
+
_0x30d3a8: 0x2ae,
|
|
1548
|
+
_0x4a6f19: 0x1d7,
|
|
1549
|
+
_0x4d341f: 0x160
|
|
1550
|
+
}, _0x318730 = {
|
|
1551
|
+
_0x41aa83: 0x267,
|
|
1552
|
+
_0x52b760: 0x18e,
|
|
1553
|
+
_0x2308f5: 0x201,
|
|
1554
|
+
_0x17b623: 0x220,
|
|
1555
|
+
_0x583599: 0x24f
|
|
1556
|
+
}, _0x1a0984 = {
|
|
1557
|
+
_0x18d2c5: 0x1ce,
|
|
1558
|
+
_0x183dd8: 0x258,
|
|
1559
|
+
_0x18d231: 0x190,
|
|
1560
|
+
_0x1bbd6f: 0x2a2,
|
|
1561
|
+
_0x1792ae: 0x191,
|
|
1562
|
+
_0x46952b: 0x29a,
|
|
1563
|
+
_0x2bb206: 0x2a5,
|
|
1564
|
+
_0x4b9f6d: 0x260,
|
|
1565
|
+
_0x1b0afe: 0x1ce,
|
|
1566
|
+
_0x3e2022: 0x1a1,
|
|
1567
|
+
_0xea5e2b: 0x164,
|
|
1568
|
+
_0x556280: 0x18e,
|
|
1569
|
+
_0x553b58: 0x263,
|
|
1570
|
+
_0x48f8ee: 0x22e,
|
|
1571
|
+
_0x1d3eef: 0x26b,
|
|
1572
|
+
_0x3557da: 0x1b2
|
|
1495
1573
|
};
|
|
1496
|
-
async function
|
|
1497
|
-
const
|
|
1498
|
-
if (!
|
|
1574
|
+
async function _0x2be5f0(_0x16aee8) {
|
|
1575
|
+
const _0x5a115b = _0xaeca;
|
|
1576
|
+
if (!_0x38edde[_0x5a115b(0x267)] || !_0x38edde[_0x5a115b(_0x1a0984._0x18d2c5)] || _0x38edde[_0x5a115b(0x1e5)] || _0x38edde[_0x5a115b(0x16a)] !== !![])
|
|
1499
1577
|
return null;
|
|
1500
|
-
const
|
|
1501
|
-
if (
|
|
1578
|
+
const _0x1ae0ea = parseTarget(_0x16aee8[_0x5a115b(0x1a4)]);
|
|
1579
|
+
if (_0x1ae0ea[_0x5a115b(0x1aa)] !== _0x5a115b(0x1a4))
|
|
1502
1580
|
return null;
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1581
|
+
const _0x4a9887 = _0x16aee8[_0x5a115b(0x1bc)] != null ? _0x1ae0ea[_0x5a115b(_0x1a0984._0x183dd8)] + ':t' + _0x16aee8[_0x5a115b(0x1bc)] : _0x1ae0ea[_0x5a115b(0x258)] + ':' + _0x16aee8[_0x5a115b(0x160)];
|
|
1582
|
+
let _0x5e6863;
|
|
1583
|
+
try {
|
|
1584
|
+
const _0x48ea38 = await _0x38edde[_0x5a115b(0x240)][_0x5a115b(_0x1a0984._0x18d231)]({
|
|
1585
|
+
'channel': _0x4a9887,
|
|
1505
1586
|
'limit': 0x14
|
|
1506
|
-
})
|
|
1507
|
-
|
|
1587
|
+
});
|
|
1588
|
+
_0x5e6863 = _0x48ea38[_0x5a115b(_0x1a0984._0x1bbd6f)]['find'](_0x549d56 => _0x549d56['messageId'] === _0x16aee8[_0x5a115b(0x160)]);
|
|
1589
|
+
} catch {
|
|
1590
|
+
_0x5e6863 = void 0x0;
|
|
1591
|
+
}
|
|
1592
|
+
const _0x425578 = _0x16aee8[_0x5a115b(0x1d4)] == null ? '(legacy)' : '#' + _0x16aee8['taskNumber'], _0x4bdc1f = [
|
|
1593
|
+
'[target=' + _0x4a9887 + _0x5a115b(0x275) + _0x16aee8[_0x5a115b(0x160)]['slice'](0x0, 0x8) + _0x5a115b(_0x1a0984._0x1792ae) + new Date()[_0x5a115b(0x1a9)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x425578 + '\x20已切换到\x20worker\x20执行',
|
|
1508
1594
|
'',
|
|
1509
|
-
|
|
1595
|
+
_0x5e6863 ? _0x5a115b(_0x1a0984._0x46952b) + _0x5e6863[_0x5a115b(0x2b5)] : _0x5a115b(0x1f7) + _0x16aee8['messageId'],
|
|
1510
1596
|
'',
|
|
1511
|
-
'Thread\x20target:\x20' +
|
|
1512
|
-
|
|
1513
|
-
][
|
|
1514
|
-
'method':
|
|
1515
|
-
'headers': { 'Content-Type':
|
|
1516
|
-
'body': JSON[
|
|
1517
|
-
'agent_id':
|
|
1518
|
-
'thread_target':
|
|
1597
|
+
'Thread\x20target:\x20' + _0x4a9887,
|
|
1598
|
+
_0x5a115b(0x1ed)
|
|
1599
|
+
][_0x5a115b(_0x1a0984._0x2bb206)]('\x0a'), _0x2435d3 = await fetch(_0x38edde['daemonLocalUrl'] + '/workers/deliver', {
|
|
1600
|
+
'method': _0x5a115b(0x2a0),
|
|
1601
|
+
'headers': { 'Content-Type': _0x5a115b(_0x1a0984._0x4b9f6d) },
|
|
1602
|
+
'body': JSON[_0x5a115b(0x203)]({
|
|
1603
|
+
'agent_id': _0x38edde[_0x5a115b(_0x1a0984._0x1b0afe)],
|
|
1604
|
+
'thread_target': _0x4a9887,
|
|
1519
1605
|
'spawn_packet': {
|
|
1520
|
-
'replyTarget':
|
|
1521
|
-
...
|
|
1606
|
+
'replyTarget': _0x4a9887,
|
|
1607
|
+
..._0x16aee8[_0x5a115b(_0x1a0984._0x3e2022)] ? { 'taskId': _0x16aee8['taskId'] } : _0x16aee8['taskNumber'] != null ? { 'taskId': _0x5a115b(0x1f3) + _0x16aee8['taskNumber'] } : {}
|
|
1522
1608
|
},
|
|
1523
1609
|
'payload': {
|
|
1524
|
-
'mode':
|
|
1525
|
-
'text':
|
|
1610
|
+
'mode': _0x5a115b(_0x1a0984._0xea5e2b),
|
|
1611
|
+
'text': _0x4bdc1f
|
|
1526
1612
|
}
|
|
1527
1613
|
})
|
|
1528
|
-
}),
|
|
1529
|
-
if (!
|
|
1530
|
-
throw new Error(
|
|
1614
|
+
}), _0x2dbeb8 = await _0x2435d3[_0x5a115b(_0x1a0984._0x556280)]();
|
|
1615
|
+
if (!_0x2dbeb8['ok'])
|
|
1616
|
+
throw new Error(_0x2dbeb8[_0x5a115b(_0x1a0984._0x553b58)] ?? _0x5a115b(_0x1a0984._0x48f8ee));
|
|
1531
1617
|
return {
|
|
1532
1618
|
'stopMain': !![],
|
|
1533
|
-
'threadTarget':
|
|
1534
|
-
'workerDisposition':
|
|
1619
|
+
'threadTarget': _0x4a9887,
|
|
1620
|
+
'workerDisposition': _0x2dbeb8[_0x5a115b(0x1c6)] === _0x5a115b(0x2a8) ? 'queued' : _0x5a115b(_0x1a0984._0x1d3eef),
|
|
1535
1621
|
'workerHandoff': !![],
|
|
1536
|
-
'workerSessionId':
|
|
1537
|
-
'executionMode':
|
|
1622
|
+
'workerSessionId': _0x2dbeb8[_0x5a115b(0x232)] ?? '',
|
|
1623
|
+
'executionMode': _0x5a115b(_0x1a0984._0x3557da)
|
|
1538
1624
|
};
|
|
1539
1625
|
}
|
|
1540
|
-
async function
|
|
1541
|
-
const
|
|
1542
|
-
if (!
|
|
1626
|
+
async function _0x2777e3() {
|
|
1627
|
+
const _0xfc0bfc = _0xaeca;
|
|
1628
|
+
if (!_0x38edde[_0xfc0bfc(0x267)] || !_0x38edde[_0xfc0bfc(0x1ce)] || _0x38edde[_0xfc0bfc(0x1e5)])
|
|
1543
1629
|
return null;
|
|
1544
1630
|
try {
|
|
1545
|
-
const
|
|
1546
|
-
if (!
|
|
1631
|
+
const _0x273aaa = await fetch(_0x38edde[_0xfc0bfc(_0x318730._0x41aa83)] + '/workers/list?agent_id=' + encodeURIComponent(_0x38edde['agentId'])), _0x3a6837 = await _0x273aaa[_0xfc0bfc(_0x318730._0x52b760)]();
|
|
1632
|
+
if (!_0x3a6837['ok'])
|
|
1547
1633
|
return null;
|
|
1548
|
-
const
|
|
1549
|
-
for (const
|
|
1550
|
-
|
|
1634
|
+
const _0x20c5be = new Set();
|
|
1635
|
+
for (const _0x4216ee of _0x3a6837[_0xfc0bfc(_0x318730._0x2308f5)]) {
|
|
1636
|
+
_0x4216ee['status'] !== _0xfc0bfc(_0x318730._0x17b623) && _0x4216ee[_0xfc0bfc(_0x318730._0x583599)] && _0x20c5be[_0xfc0bfc(0x2b9)](_0x4216ee['thread_target']);
|
|
1551
1637
|
}
|
|
1552
|
-
return
|
|
1638
|
+
return _0x20c5be['size'] > 0x0 ? _0x20c5be : null;
|
|
1553
1639
|
} catch {
|
|
1554
1640
|
return null;
|
|
1555
1641
|
}
|
|
1556
1642
|
}
|
|
1557
1643
|
return {
|
|
1558
|
-
async 'send_message'(
|
|
1559
|
-
const
|
|
1560
|
-
'attachmentIds':
|
|
1561
|
-
'content':
|
|
1562
|
-
'target':
|
|
1644
|
+
async 'send_message'(_0x121a48) {
|
|
1645
|
+
const _0xb05d62 = _0xaeca, _0x183f97 = await _0x38edde[_0xb05d62(0x240)][_0xb05d62(_0x4762d6._0x4bf372)]({
|
|
1646
|
+
'attachmentIds': _0x121a48['attachment_ids'],
|
|
1647
|
+
'content': _0x121a48[_0xb05d62(0x2b5)],
|
|
1648
|
+
'target': _0x121a48[_0xb05d62(_0x4762d6._0x30d3a8)]
|
|
1563
1649
|
});
|
|
1564
|
-
return
|
|
1650
|
+
return _0xb05d62(0x159) + _0x121a48['target'] + _0xb05d62(_0x4762d6._0x4a6f19) + _0x183f97[_0xb05d62(_0x4762d6._0x4d341f)];
|
|
1565
1651
|
},
|
|
1566
1652
|
async 'check_messages'() {
|
|
1567
|
-
const
|
|
1568
|
-
if (!
|
|
1569
|
-
const
|
|
1570
|
-
if (
|
|
1571
|
-
return formatCheckMessages(
|
|
1653
|
+
const _0x455d6c = _0xaeca, _0x2d018e = await _0x38edde['client'][_0x455d6c(0x2b8)]();
|
|
1654
|
+
if (!_0x38edde[_0x455d6c(_0x188bef._0x14e3c6)]) {
|
|
1655
|
+
const _0x4698cb = await _0x2777e3();
|
|
1656
|
+
if (_0x4698cb)
|
|
1657
|
+
return formatCheckMessages(_0x2d018e[_0x455d6c(0x2a2)]['filter'](_0x2d2303 => !_0x4698cb[_0x455d6c(0x297)](_0x2d2303['target'])));
|
|
1572
1658
|
}
|
|
1573
|
-
return formatCheckMessages(
|
|
1659
|
+
return formatCheckMessages(_0x2d018e[_0x455d6c(0x2a2)]);
|
|
1574
1660
|
},
|
|
1575
|
-
async 'read_history'(
|
|
1576
|
-
const
|
|
1577
|
-
return formatHistory(
|
|
1661
|
+
async 'read_history'(_0x2ed10a) {
|
|
1662
|
+
const _0x435140 = _0xaeca, _0x27c182 = await _0x38edde[_0x435140(_0x39d128._0x2f6011)]['readHistory'](_0x2ed10a);
|
|
1663
|
+
return formatHistory(_0x27c182);
|
|
1578
1664
|
},
|
|
1579
1665
|
async 'list_server'() {
|
|
1580
|
-
const
|
|
1581
|
-
return formatServerDirectory(
|
|
1666
|
+
const _0x58f7fb = _0xaeca, _0x3284c8 = await _0x38edde[_0x58f7fb(_0x349482._0x49c21b)]['listServer']();
|
|
1667
|
+
return formatServerDirectory(_0x3284c8);
|
|
1582
1668
|
},
|
|
1583
|
-
async 'list_tasks'(
|
|
1584
|
-
const
|
|
1585
|
-
let
|
|
1586
|
-
if (
|
|
1669
|
+
async 'list_tasks'(_0x585ffa) {
|
|
1670
|
+
const _0x4681a3 = _0xaeca, _0x1bfe2d = await _0x38edde['client'][_0x4681a3(0x202)](_0x585ffa);
|
|
1671
|
+
let _0x45e0e7;
|
|
1672
|
+
if (_0x38edde[_0x4681a3(0x267)] && _0x38edde[_0x4681a3(0x1ce)])
|
|
1587
1673
|
try {
|
|
1588
|
-
const
|
|
1589
|
-
if (
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1592
|
-
for (const
|
|
1593
|
-
if (
|
|
1674
|
+
const _0x3d092c = await fetch(_0x38edde[_0x4681a3(_0x1239fd._0x696e1e)] + _0x4681a3(0x25d) + encodeURIComponent(_0x38edde['agentId'])), _0x34b105 = await _0x3d092c[_0x4681a3(0x18e)]();
|
|
1675
|
+
if (_0x34b105['ok']) {
|
|
1676
|
+
const _0x56f998 = _0x585ffa['channel'] + ':';
|
|
1677
|
+
_0x45e0e7 = new Set();
|
|
1678
|
+
for (const _0x3c665a of _0x34b105[_0x4681a3(0x201)]) {
|
|
1679
|
+
if (_0x3c665a[_0x4681a3(0x1c0)] === _0x4681a3(0x220))
|
|
1594
1680
|
continue;
|
|
1595
|
-
if (
|
|
1596
|
-
const
|
|
1597
|
-
if (
|
|
1598
|
-
|
|
1681
|
+
if (_0x3c665a['thread_target']?.[_0x4681a3(0x2af)](_0x56f998)) {
|
|
1682
|
+
const _0x3d7748 = _0x3c665a['thread_target'][_0x4681a3(_0x1239fd._0x14d6d5)](_0x56f998['length']), _0xcaa030 = _0x1bfe2d['tasks'][_0x4681a3(_0x1239fd._0x2d465e)](_0x5a6fc5 => _0x5a6fc5[_0x4681a3(0x160)]?.[_0x4681a3(0x2af)](_0x3d7748) === !![]);
|
|
1683
|
+
if (_0xcaa030?.[_0x4681a3(0x1d4)] != null) {
|
|
1684
|
+
_0x45e0e7[_0x4681a3(0x2b9)](_0xcaa030[_0x4681a3(0x1d4)]);
|
|
1599
1685
|
continue;
|
|
1600
1686
|
}
|
|
1601
1687
|
}
|
|
1602
|
-
if (
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1688
|
+
if (_0x3c665a[_0x4681a3(0x15f)]) {
|
|
1689
|
+
const _0x1410b6 = _0x1bfe2d['tasks']['find'](_0x285863 => _0x285863['taskId'] === _0x3c665a[_0x4681a3(0x15f)]);
|
|
1690
|
+
_0x1410b6?.['taskNumber'] != null && _0x45e0e7[_0x4681a3(_0x1239fd._0x3acd4e)](_0x1410b6[_0x4681a3(0x1d4)]);
|
|
1605
1691
|
}
|
|
1606
1692
|
}
|
|
1607
1693
|
}
|
|
1608
1694
|
} catch {
|
|
1609
1695
|
}
|
|
1610
|
-
return formatTaskList(
|
|
1696
|
+
return formatTaskList(_0x1bfe2d['tasks'], _0x45e0e7);
|
|
1611
1697
|
},
|
|
1612
|
-
async 'create_tasks'(
|
|
1613
|
-
const
|
|
1614
|
-
return formatCreatedTasks(
|
|
1698
|
+
async 'create_tasks'(_0x3653b5) {
|
|
1699
|
+
const _0x44bb47 = _0xaeca, _0xac3c80 = await _0x38edde['client'][_0x44bb47(_0xa98df3._0x260e3c)](_0x3653b5);
|
|
1700
|
+
return formatCreatedTasks(_0xac3c80['tasks']);
|
|
1615
1701
|
},
|
|
1616
|
-
async 'claim_tasks'(
|
|
1617
|
-
const
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1702
|
+
async 'claim_tasks'(_0x1b8164) {
|
|
1703
|
+
const _0x55f9d2 = {
|
|
1704
|
+
_0x385c2f: 0x29b,
|
|
1705
|
+
_0x1b6b12: 0x1a1,
|
|
1706
|
+
_0x7d5f0b: 0x1d4,
|
|
1707
|
+
_0x85eb89: 0x22e
|
|
1708
|
+
}, _0x3f661c = _0xaeca, _0x181777 = await _0x38edde['client'][_0x3f661c(0x257)](_0x1b8164), _0x433dc2 = await Promise['all'](_0x181777['results'][_0x3f661c(0x243)](async _0x215fb8 => {
|
|
1709
|
+
const _0x292835 = _0x3f661c;
|
|
1710
|
+
if (!_0x215fb8[_0x292835(_0x55f9d2._0x385c2f)] || !_0x215fb8[_0x292835(0x160)])
|
|
1711
|
+
return _0x215fb8;
|
|
1621
1712
|
try {
|
|
1622
|
-
const
|
|
1623
|
-
'channel':
|
|
1624
|
-
'messageId':
|
|
1625
|
-
'taskId':
|
|
1626
|
-
'taskNumber':
|
|
1713
|
+
const _0x44a77f = await _0x2be5f0({
|
|
1714
|
+
'channel': _0x1b8164[_0x292835(0x1a4)],
|
|
1715
|
+
'messageId': _0x215fb8[_0x292835(0x160)],
|
|
1716
|
+
'taskId': _0x215fb8[_0x292835(_0x55f9d2._0x1b6b12)],
|
|
1717
|
+
'taskNumber': _0x215fb8[_0x292835(_0x55f9d2._0x7d5f0b)],
|
|
1718
|
+
'threadNumber': _0x215fb8[_0x292835(0x1bc)]
|
|
1627
1719
|
});
|
|
1628
|
-
return
|
|
1629
|
-
...
|
|
1630
|
-
...
|
|
1631
|
-
} :
|
|
1632
|
-
} catch (
|
|
1720
|
+
return _0x44a77f ? {
|
|
1721
|
+
..._0x215fb8,
|
|
1722
|
+
..._0x44a77f
|
|
1723
|
+
} : _0x215fb8;
|
|
1724
|
+
} catch (_0x569943) {
|
|
1633
1725
|
return {
|
|
1634
|
-
...
|
|
1635
|
-
'workerHandoffError':
|
|
1726
|
+
..._0x215fb8,
|
|
1727
|
+
'workerHandoffError': _0x569943 instanceof Error ? _0x569943[_0x292835(0x256)] : _0x292835(_0x55f9d2._0x85eb89)
|
|
1636
1728
|
};
|
|
1637
1729
|
}
|
|
1638
1730
|
}));
|
|
1639
|
-
return formatClaimTaskResults(
|
|
1731
|
+
return formatClaimTaskResults(_0x433dc2);
|
|
1640
1732
|
},
|
|
1641
|
-
async 'unclaim_task'(
|
|
1642
|
-
const
|
|
1643
|
-
return formatUnclaimTaskResult(
|
|
1733
|
+
async 'unclaim_task'(_0x2f965b) {
|
|
1734
|
+
const _0x24e0bd = _0xaeca, _0x4a5e5c = await _0x38edde[_0x24e0bd(_0x2779b1._0x547638)][_0x24e0bd(0x16c)](_0x2f965b);
|
|
1735
|
+
return formatUnclaimTaskResult(_0x4a5e5c);
|
|
1644
1736
|
},
|
|
1645
|
-
async 'update_task_status'(
|
|
1646
|
-
const
|
|
1647
|
-
return formatUpdateTaskStatusResult(
|
|
1737
|
+
async 'update_task_status'(_0x2a6f69) {
|
|
1738
|
+
const _0x4d7207 = await _0x38edde['client']['updateTaskStatus'](_0x2a6f69);
|
|
1739
|
+
return formatUpdateTaskStatusResult(_0x4d7207);
|
|
1648
1740
|
},
|
|
1649
|
-
async 'upload_file'(
|
|
1650
|
-
const
|
|
1651
|
-
sizeBytes:
|
|
1652
|
-
...
|
|
1653
|
-
} =
|
|
1654
|
-
'channel':
|
|
1655
|
-
...
|
|
1741
|
+
async 'upload_file'(_0x1b7732) {
|
|
1742
|
+
const _0x49d127 = _0xaeca, _0x59754a = await _0x38edde[_0x49d127(_0x2ce1b6._0x4a02b7)](_0x1b7732[_0x49d127(_0x2ce1b6._0x21b541)]), {
|
|
1743
|
+
sizeBytes: _0x3182d4,
|
|
1744
|
+
..._0xe23702
|
|
1745
|
+
} = _0x59754a, _0x482cbc = await _0x38edde[_0x49d127(_0x2ce1b6._0x33f55a)][_0x49d127(0x171)]({
|
|
1746
|
+
'channel': _0x1b7732['channel'],
|
|
1747
|
+
..._0xe23702
|
|
1656
1748
|
});
|
|
1657
|
-
return formatUploadResult(
|
|
1749
|
+
return formatUploadResult(_0x482cbc);
|
|
1658
1750
|
},
|
|
1659
|
-
async 'view_file'(
|
|
1660
|
-
const
|
|
1661
|
-
if (
|
|
1662
|
-
return formatViewFileResult(
|
|
1663
|
-
const
|
|
1664
|
-
'attachmentId':
|
|
1665
|
-
'contentType':
|
|
1666
|
-
'data':
|
|
1667
|
-
'originalFilename':
|
|
1751
|
+
async 'view_file'(_0x2d8118) {
|
|
1752
|
+
const _0x10a922 = _0xaeca, _0x67baf6 = await _0x38edde['attachmentCache'][_0x10a922(0x1da)](_0x2d8118['attachment_id']);
|
|
1753
|
+
if (_0x67baf6)
|
|
1754
|
+
return formatViewFileResult(_0x67baf6, !![]);
|
|
1755
|
+
const _0x4b50f8 = await _0x38edde[_0x10a922(0x240)][_0x10a922(_0x41dd08._0xf43c58)](_0x2d8118[_0x10a922(0x1e7)]), _0x45bab1 = await _0x38edde['attachmentCache'][_0x10a922(_0x41dd08._0x1e09cc)]({
|
|
1756
|
+
'attachmentId': _0x2d8118['attachment_id'],
|
|
1757
|
+
'contentType': _0x4b50f8[_0x10a922(_0x41dd08._0x372e0e)],
|
|
1758
|
+
'data': _0x4b50f8[_0x10a922(0x229)],
|
|
1759
|
+
'originalFilename': _0x4b50f8[_0x10a922(_0x41dd08._0x27990c)]
|
|
1668
1760
|
});
|
|
1669
|
-
return formatViewFileResult(
|
|
1761
|
+
return formatViewFileResult(_0x45bab1, ![]);
|
|
1670
1762
|
},
|
|
1671
|
-
async 'spawn_worker'(
|
|
1672
|
-
const
|
|
1673
|
-
if (!
|
|
1674
|
-
return
|
|
1675
|
-
const
|
|
1676
|
-
'method':
|
|
1677
|
-
'headers': { 'Content-Type':
|
|
1678
|
-
'body': JSON[
|
|
1679
|
-
'agent_id':
|
|
1680
|
-
'work_key':
|
|
1681
|
-
'thread_target':
|
|
1763
|
+
async 'spawn_worker'(_0x518a2c) {
|
|
1764
|
+
const _0x52b095 = _0xaeca;
|
|
1765
|
+
if (!_0x38edde['daemonLocalUrl'] || !_0x38edde[_0x52b095(_0x445bf1._0x5b5547)])
|
|
1766
|
+
return _0x52b095(_0x445bf1._0x3d263e);
|
|
1767
|
+
const _0x20f765 = await fetch(_0x38edde[_0x52b095(_0x445bf1._0x466ff2)] + _0x52b095(_0x445bf1._0x5bd23f), {
|
|
1768
|
+
'method': _0x52b095(0x2a0),
|
|
1769
|
+
'headers': { 'Content-Type': _0x52b095(0x260) },
|
|
1770
|
+
'body': JSON[_0x52b095(_0x445bf1._0xdafd1a)]({
|
|
1771
|
+
'agent_id': _0x38edde[_0x52b095(_0x445bf1._0x5b5547)],
|
|
1772
|
+
'work_key': _0x518a2c[_0x52b095(_0x445bf1._0x1f3e2e)],
|
|
1773
|
+
'thread_target': _0x518a2c[_0x52b095(0x24f)],
|
|
1682
1774
|
'spawn_packet': {
|
|
1683
|
-
'replyTarget':
|
|
1684
|
-
'taskId':
|
|
1775
|
+
'replyTarget': _0x518a2c[_0x52b095(0x17a)],
|
|
1776
|
+
'taskId': _0x518a2c[_0x52b095(0x15f)]
|
|
1685
1777
|
}
|
|
1686
1778
|
})
|
|
1687
|
-
}),
|
|
1688
|
-
if (!
|
|
1689
|
-
throw new Error(
|
|
1690
|
-
const
|
|
1691
|
-
return
|
|
1779
|
+
}), _0x226383 = await _0x20f765['json']();
|
|
1780
|
+
if (!_0x226383['ok'])
|
|
1781
|
+
throw new Error(_0x226383[_0x52b095(0x263)] ?? 'spawn_worker\x20failed');
|
|
1782
|
+
const _0x503974 = _0x226383[_0x52b095(0x1c6)] === _0x52b095(0x2a8) ? _0x52b095(0x2a8) : _0x52b095(_0x445bf1._0x1858b4);
|
|
1783
|
+
return _0x52b095(0x241) + _0x503974 + _0x52b095(0x218) + _0x226383[_0x52b095(0x232)] + ',\x20work_key:\x20' + _0x518a2c[_0x52b095(0x25b)];
|
|
1692
1784
|
},
|
|
1693
|
-
async 'get_worker_status'(
|
|
1694
|
-
const
|
|
1695
|
-
if (!
|
|
1696
|
-
return
|
|
1697
|
-
const
|
|
1698
|
-
if (!
|
|
1699
|
-
return 'Worker\x20\x22' +
|
|
1700
|
-
return
|
|
1785
|
+
async 'get_worker_status'(_0x43ea16) {
|
|
1786
|
+
const _0x37bf0e = _0xaeca;
|
|
1787
|
+
if (!_0x38edde[_0x37bf0e(_0x302647._0x4a8c85)])
|
|
1788
|
+
return _0x37bf0e(0x281);
|
|
1789
|
+
const _0x7c08b = await fetch(_0x38edde[_0x37bf0e(_0x302647._0x4add36)] + _0x37bf0e(_0x302647._0x4a65c1) + encodeURIComponent(_0x43ea16[_0x37bf0e(0x25b)])), _0x2f6270 = await _0x7c08b[_0x37bf0e(_0x302647._0x513712)]();
|
|
1790
|
+
if (!_0x2f6270['ok'])
|
|
1791
|
+
return 'Worker\x20\x22' + _0x43ea16['work_key'] + _0x37bf0e(0x23a);
|
|
1792
|
+
return 'Worker\x20\x22' + _0x43ea16[_0x37bf0e(0x25b)] + _0x37bf0e(0x24e) + _0x2f6270['status'];
|
|
1701
1793
|
},
|
|
1702
|
-
async 'get_worker_result'(
|
|
1703
|
-
const
|
|
1704
|
-
if (!
|
|
1705
|
-
return
|
|
1706
|
-
const
|
|
1707
|
-
if (!
|
|
1708
|
-
return
|
|
1709
|
-
return JSON[
|
|
1794
|
+
async 'get_worker_result'(_0x368740) {
|
|
1795
|
+
const _0x3b2689 = _0xaeca;
|
|
1796
|
+
if (!_0x38edde[_0x3b2689(_0x4f62d5._0x21f533)])
|
|
1797
|
+
return _0x3b2689(_0x4f62d5._0x5dc9d1);
|
|
1798
|
+
const _0x3630ca = await fetch(_0x38edde[_0x3b2689(0x267)] + _0x3b2689(_0x4f62d5._0x5edc9d) + encodeURIComponent(_0x368740[_0x3b2689(0x25b)])), _0x5f441c = await _0x3630ca[_0x3b2689(0x18e)]();
|
|
1799
|
+
if (!_0x5f441c[_0x3b2689(_0x4f62d5._0x22af6f)])
|
|
1800
|
+
return _0x3b2689(_0x4f62d5._0x69d102) + _0x368740[_0x3b2689(_0x4f62d5._0x4085f0)] + '\x22';
|
|
1801
|
+
return JSON[_0x3b2689(0x203)](_0x5f441c['resume_packet'], null, 0x2);
|
|
1710
1802
|
},
|
|
1711
|
-
async 'finish_worker'(
|
|
1712
|
-
const
|
|
1713
|
-
if (!
|
|
1714
|
-
return
|
|
1715
|
-
const
|
|
1716
|
-
'method':
|
|
1717
|
-
'headers': { 'Content-Type':
|
|
1718
|
-
'body': JSON[
|
|
1719
|
-
'work_key':
|
|
1803
|
+
async 'finish_worker'(_0x525326) {
|
|
1804
|
+
const _0x428b77 = _0xaeca;
|
|
1805
|
+
if (!_0x38edde['daemonLocalUrl'])
|
|
1806
|
+
return _0x428b77(0x281);
|
|
1807
|
+
const _0x286681 = await fetch(_0x38edde[_0x428b77(_0x2ebb57._0x1d507b)] + _0x428b77(_0x2ebb57._0x26a4a3), {
|
|
1808
|
+
'method': _0x428b77(0x2a0),
|
|
1809
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1810
|
+
'body': JSON[_0x428b77(0x203)]({
|
|
1811
|
+
'work_key': _0x525326[_0x428b77(0x25b)],
|
|
1720
1812
|
'resume_packet': {
|
|
1721
1813
|
'objective': '',
|
|
1722
|
-
'result':
|
|
1723
|
-
'summary':
|
|
1724
|
-
'decisions':
|
|
1725
|
-
'filesChanged':
|
|
1726
|
-
'openIssues':
|
|
1727
|
-
'nextSteps':
|
|
1814
|
+
'result': _0x525326[_0x428b77(0x235)],
|
|
1815
|
+
'summary': _0x525326[_0x428b77(0x194)],
|
|
1816
|
+
'decisions': _0x525326[_0x428b77(_0x2ebb57._0xb4c0)] ?? [],
|
|
1817
|
+
'filesChanged': _0x525326[_0x428b77(_0x2ebb57._0x3366d)] ?? [],
|
|
1818
|
+
'openIssues': _0x525326[_0x428b77(_0x2ebb57._0x379274)] ?? [],
|
|
1819
|
+
'nextSteps': _0x525326['next_steps'] ?? []
|
|
1728
1820
|
}
|
|
1729
1821
|
})
|
|
1730
|
-
}),
|
|
1731
|
-
if (!
|
|
1732
|
-
throw new Error(
|
|
1733
|
-
return
|
|
1822
|
+
}), _0x2a1df6 = await _0x286681[_0x428b77(_0x2ebb57._0x40317e)]();
|
|
1823
|
+
if (!_0x2a1df6['ok'])
|
|
1824
|
+
throw new Error(_0x2a1df6['error'] ?? _0x428b77(0x26a));
|
|
1825
|
+
return _0x428b77(_0x2ebb57._0x30c266) + _0x525326[_0x428b77(_0x2ebb57._0xcf6191)] + _0x428b77(_0x2ebb57._0x4d031a) + _0x525326['result'];
|
|
1734
1826
|
},
|
|
1735
|
-
async 'mark_waiting_input'(
|
|
1736
|
-
const
|
|
1737
|
-
if (!
|
|
1738
|
-
return
|
|
1739
|
-
const
|
|
1740
|
-
'method':
|
|
1741
|
-
'headers': { 'Content-Type':
|
|
1742
|
-
'body': JSON[
|
|
1743
|
-
'work_key':
|
|
1744
|
-
'agent_id':
|
|
1827
|
+
async 'mark_waiting_input'(_0x183110) {
|
|
1828
|
+
const _0x4ffe6b = _0xaeca;
|
|
1829
|
+
if (!_0x38edde[_0x4ffe6b(0x267)] || !_0x38edde[_0x4ffe6b(0x1ce)])
|
|
1830
|
+
return _0x4ffe6b(0x269);
|
|
1831
|
+
const _0x3faf95 = await fetch(_0x38edde[_0x4ffe6b(0x267)] + '/workers/waiting_input', {
|
|
1832
|
+
'method': _0x4ffe6b(_0x222e3b._0x546401),
|
|
1833
|
+
'headers': { 'Content-Type': _0x4ffe6b(0x260) },
|
|
1834
|
+
'body': JSON[_0x4ffe6b(_0x222e3b._0x4a879a)]({
|
|
1835
|
+
'work_key': _0x183110[_0x4ffe6b(_0x222e3b._0x4c1c19)],
|
|
1836
|
+
'agent_id': _0x38edde[_0x4ffe6b(_0x222e3b._0x31f44a)]
|
|
1745
1837
|
})
|
|
1746
|
-
}),
|
|
1747
|
-
if (!
|
|
1748
|
-
throw new Error(
|
|
1749
|
-
return
|
|
1838
|
+
}), _0x3f04eb = await _0x3faf95[_0x4ffe6b(0x18e)]();
|
|
1839
|
+
if (!_0x3f04eb['ok'])
|
|
1840
|
+
throw new Error(_0x3f04eb['error'] ?? _0x4ffe6b(_0x222e3b._0x420097));
|
|
1841
|
+
return 'Worker\x20\x22' + _0x183110[_0x4ffe6b(0x25b)] + _0x4ffe6b(_0x222e3b._0xc81ee6);
|
|
1750
1842
|
},
|
|
1751
|
-
async 'escalate_to_main'(
|
|
1752
|
-
const
|
|
1753
|
-
if (!
|
|
1754
|
-
return
|
|
1755
|
-
const
|
|
1756
|
-
'method':
|
|
1757
|
-
'headers': { 'Content-Type':
|
|
1758
|
-
'body': JSON[
|
|
1759
|
-
'work_key':
|
|
1760
|
-
'reason':
|
|
1843
|
+
async 'escalate_to_main'(_0x13f2e1) {
|
|
1844
|
+
const _0x1e1407 = _0xaeca;
|
|
1845
|
+
if (!_0x38edde[_0x1e1407(0x267)])
|
|
1846
|
+
return _0x1e1407(0x281);
|
|
1847
|
+
const _0x2c08b3 = await fetch(_0x38edde[_0x1e1407(_0x109611._0x544988)] + _0x1e1407(0x239), {
|
|
1848
|
+
'method': _0x1e1407(0x2a0),
|
|
1849
|
+
'headers': { 'Content-Type': _0x1e1407(0x260) },
|
|
1850
|
+
'body': JSON[_0x1e1407(0x203)]({
|
|
1851
|
+
'work_key': _0x13f2e1[_0x1e1407(0x25b)],
|
|
1852
|
+
'reason': _0x13f2e1[_0x1e1407(_0x109611._0x28c6c6)]
|
|
1761
1853
|
})
|
|
1762
|
-
}),
|
|
1763
|
-
if (!
|
|
1764
|
-
throw new Error(
|
|
1765
|
-
return
|
|
1854
|
+
}), _0x5ede09 = await _0x2c08b3[_0x1e1407(_0x109611._0x1564f8)]();
|
|
1855
|
+
if (!_0x5ede09['ok'])
|
|
1856
|
+
throw new Error(_0x5ede09[_0x1e1407(0x263)] ?? _0x1e1407(_0x109611._0xf82af0));
|
|
1857
|
+
return _0x1e1407(0x169) + _0x13f2e1['reason'];
|
|
1766
1858
|
}
|
|
1767
1859
|
};
|
|
1768
1860
|
}
|
|
1769
|
-
function textResult(
|
|
1770
|
-
const
|
|
1861
|
+
function textResult(_0x1ff1c0, _0x509a4c = ![]) {
|
|
1862
|
+
const _0x2e78fc = _0x4ab0ed;
|
|
1771
1863
|
return {
|
|
1772
1864
|
'content': [{
|
|
1773
|
-
'type':
|
|
1774
|
-
'text':
|
|
1865
|
+
'type': _0x2e78fc(0x277),
|
|
1866
|
+
'text': _0x1ff1c0
|
|
1775
1867
|
}],
|
|
1776
|
-
...
|
|
1868
|
+
..._0x509a4c ? { 'isError': !![] } : {}
|
|
1777
1869
|
};
|
|
1778
1870
|
}
|
|
1779
|
-
async function registerChatBridgeTools(
|
|
1780
|
-
const
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1871
|
+
async function registerChatBridgeTools(_0x56dd02, _0x10cf2e, _0xdca9cc) {
|
|
1872
|
+
const _0x4eb70f = {
|
|
1873
|
+
_0xaad434: 0x19c,
|
|
1874
|
+
_0x37b6f6: 0x23f,
|
|
1875
|
+
_0x2983e3: 0x291,
|
|
1876
|
+
_0x2fabfa: 0x28f,
|
|
1877
|
+
_0xfdbb2f: 0x1f0,
|
|
1878
|
+
_0x9f9e62: 0x2c3,
|
|
1879
|
+
_0xcb3ed2: 0x291,
|
|
1880
|
+
_0x438361: 0x274,
|
|
1881
|
+
_0x26647f: 0x1b8,
|
|
1882
|
+
_0x2d3cd7: 0x1f2,
|
|
1883
|
+
_0xe2f670: 0x28f,
|
|
1884
|
+
_0x424b13: 0x163,
|
|
1885
|
+
_0x5602fb: 0x16f,
|
|
1886
|
+
_0x1a9f6b: 0x1f1,
|
|
1887
|
+
_0x5f20b8: 0x19c,
|
|
1888
|
+
_0x176592: 0x166,
|
|
1889
|
+
_0x5e180b: 0x163,
|
|
1890
|
+
_0x4b14b7: 0x291,
|
|
1891
|
+
_0x267cf6: 0x291,
|
|
1892
|
+
_0xc0343: 0x16f,
|
|
1893
|
+
_0x1a516c: 0x28f,
|
|
1894
|
+
_0x3c1057: 0x19c,
|
|
1895
|
+
_0x4d2fa9: 0x2bd,
|
|
1896
|
+
_0x3d2fbe: 0x1dd,
|
|
1897
|
+
_0x4752e8: 0x19c,
|
|
1898
|
+
_0x2f5dc1: 0x272,
|
|
1899
|
+
_0x541d43: 0x1f2,
|
|
1900
|
+
_0x526f83: 0x1ab,
|
|
1901
|
+
_0x401bd7: 0x2b0,
|
|
1902
|
+
_0x211faf: 0x19c,
|
|
1903
|
+
_0x6e5765: 0x1cc,
|
|
1904
|
+
_0x5ed01d: 0x19c,
|
|
1905
|
+
_0xf0aecf: 0x210,
|
|
1906
|
+
_0x293df3: 0x291,
|
|
1907
|
+
_0xbb6a1d: 0x291,
|
|
1908
|
+
_0x1b7f33: 0x291,
|
|
1909
|
+
_0x46eb43: 0x19c,
|
|
1910
|
+
_0x123509: 0x157,
|
|
1911
|
+
_0xde4a58: 0x208,
|
|
1912
|
+
_0x1e7dda: 0x299,
|
|
1913
|
+
_0x34bc91: 0x1be,
|
|
1914
|
+
_0x310855: 0x163,
|
|
1915
|
+
_0x187ea0: 0x163,
|
|
1916
|
+
_0x2c6f27: 0x20f
|
|
1917
|
+
}, _0x3e2ee9 = {
|
|
1918
|
+
_0x3dc5aa: 0x186,
|
|
1919
|
+
_0x472837: 0x256,
|
|
1920
|
+
_0x5016c8: 0x168
|
|
1921
|
+
}, _0x558b2e = {
|
|
1922
|
+
_0x568679: 0x2a3,
|
|
1923
|
+
_0xcfef8d: 0x256
|
|
1924
|
+
}, _0x2e665c = { _0x91909e: 0x1a8 }, _0x3a75a6 = { _0x27e9c6: 0x1ea }, _0x3e9244 = { _0x43e3b2: 0x210 }, _0xa6f0d9 = {
|
|
1925
|
+
_0x43563e: 0x256,
|
|
1926
|
+
_0x37fe1e: 0x1a7
|
|
1927
|
+
}, _0x52c3eb = { _0x4e2fab: 0x1f6 }, _0x30dfa3 = { _0x5925fb: 0x272 }, _0x3206bc = {
|
|
1928
|
+
_0x34c0b8: 0x2bd,
|
|
1929
|
+
_0x53ff00: 0x256
|
|
1930
|
+
}, _0x179610 = {
|
|
1931
|
+
_0x215bbd: 0x253,
|
|
1932
|
+
_0x3f3e14: 0x256
|
|
1933
|
+
}, _0x3c41d7 = {
|
|
1934
|
+
_0x4bc6a7: 0x256,
|
|
1935
|
+
_0x84f694: 0x1fe
|
|
1936
|
+
}, _0x2c4708 = { _0x542f96: 0x2b3 }, _0x4345f8 = _0x4ab0ed, {z: _0x114985} = await import('zod');
|
|
1937
|
+
_0x56dd02[_0x4345f8(_0x4eb70f._0xaad434)](_0x4345f8(_0x4eb70f._0x37b6f6), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
1938
|
+
'target': _0x114985[_0x4345f8(_0x4eb70f._0x2983e3)](),
|
|
1939
|
+
'content': _0x114985[_0x4345f8(0x291)](),
|
|
1940
|
+
'attachment_ids': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(_0x4eb70f._0x2fabfa)]()
|
|
1941
|
+
}, async _0x3619c2 => {
|
|
1942
|
+
const _0xe2614f = _0x4345f8;
|
|
1834
1943
|
try {
|
|
1835
|
-
return textResult(await
|
|
1836
|
-
} catch (
|
|
1837
|
-
return textResult(
|
|
1944
|
+
return textResult(await _0x10cf2e[_0xe2614f(0x23f)](_0x3619c2));
|
|
1945
|
+
} catch (_0x247f36) {
|
|
1946
|
+
return textResult(_0x247f36 instanceof Error ? _0x247f36[_0xe2614f(0x256)] : 'send_message\x20failed', !![]);
|
|
1838
1947
|
}
|
|
1839
|
-
}),
|
|
1840
|
-
const
|
|
1948
|
+
}), _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(_0x4eb70f._0xfdbb2f), _0x4345f8(0x24d), {}, async () => {
|
|
1949
|
+
const _0x3b1477 = _0x4345f8;
|
|
1841
1950
|
try {
|
|
1842
|
-
return textResult(await
|
|
1843
|
-
} catch (
|
|
1844
|
-
return textResult(
|
|
1951
|
+
return textResult(await _0x10cf2e[_0x3b1477(0x1f0)]());
|
|
1952
|
+
} catch (_0x4e4a5f) {
|
|
1953
|
+
return textResult(_0x4e4a5f instanceof Error ? _0x4e4a5f['message'] : _0x3b1477(_0x2c4708._0x542f96), !![]);
|
|
1845
1954
|
}
|
|
1846
|
-
}),
|
|
1847
|
-
'channel':
|
|
1848
|
-
'limit':
|
|
1849
|
-
'before':
|
|
1850
|
-
'after':
|
|
1851
|
-
}, async
|
|
1852
|
-
const
|
|
1955
|
+
}), _0x56dd02['tool'](_0x4345f8(_0x4eb70f._0x9f9e62), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
1956
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
1957
|
+
'limit': _0x114985[_0x4345f8(0x16d)]()[_0x4345f8(0x28f)](),
|
|
1958
|
+
'before': _0x114985[_0x4345f8(0x16d)]()['optional'](),
|
|
1959
|
+
'after': _0x114985['number']()['optional']()
|
|
1960
|
+
}, async _0x3bcfbf => {
|
|
1961
|
+
const _0x3b3605 = _0x4345f8;
|
|
1853
1962
|
try {
|
|
1854
|
-
return textResult(await
|
|
1855
|
-
} catch (
|
|
1856
|
-
return textResult(
|
|
1963
|
+
return textResult(await _0x10cf2e[_0x3b3605(0x2c3)](_0x3bcfbf));
|
|
1964
|
+
} catch (_0x4086cb) {
|
|
1965
|
+
return textResult(_0x4086cb instanceof Error ? _0x4086cb['message'] : _0x3b3605(0x172), !![]);
|
|
1857
1966
|
}
|
|
1858
|
-
}),
|
|
1859
|
-
const
|
|
1967
|
+
}), _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(0x184), _0x4345f8(_0x4eb70f._0x438361), {}, async () => {
|
|
1968
|
+
const _0x5a3764 = _0x4345f8;
|
|
1860
1969
|
try {
|
|
1861
|
-
return textResult(await
|
|
1862
|
-
} catch (
|
|
1863
|
-
return textResult(
|
|
1970
|
+
return textResult(await _0x10cf2e['list_server']());
|
|
1971
|
+
} catch (_0x385827) {
|
|
1972
|
+
return textResult(_0x385827 instanceof Error ? _0x385827[_0x5a3764(0x256)] : _0x5a3764(0x1b9), !![]);
|
|
1864
1973
|
}
|
|
1865
|
-
}),
|
|
1866
|
-
'channel':
|
|
1867
|
-
'status':
|
|
1868
|
-
|
|
1974
|
+
}), _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(0x1de), 'List\x20tasks\x20in\x20a\x20channel.', {
|
|
1975
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
1976
|
+
'status': _0x114985[_0x4345f8(0x1f1)]([
|
|
1977
|
+
_0x4345f8(_0x4eb70f._0x26647f),
|
|
1869
1978
|
'in_progress',
|
|
1870
|
-
|
|
1979
|
+
_0x4345f8(_0x4eb70f._0x2d3cd7),
|
|
1871
1980
|
'done'
|
|
1872
|
-
])[
|
|
1873
|
-
}, async
|
|
1874
|
-
const
|
|
1981
|
+
])[_0x4345f8(_0x4eb70f._0xe2f670)]()
|
|
1982
|
+
}, async _0x9b8295 => {
|
|
1983
|
+
const _0x5f4a3e = _0x4345f8;
|
|
1875
1984
|
try {
|
|
1876
|
-
return textResult(await
|
|
1877
|
-
} catch (
|
|
1878
|
-
return textResult(
|
|
1985
|
+
return textResult(await _0x10cf2e['list_tasks'](_0x9b8295));
|
|
1986
|
+
} catch (_0x5c4694) {
|
|
1987
|
+
return textResult(_0x5c4694 instanceof Error ? _0x5c4694[_0x5f4a3e(_0x3c41d7._0x4bc6a7)] : _0x5f4a3e(_0x3c41d7._0x84f694), !![]);
|
|
1879
1988
|
}
|
|
1880
|
-
}),
|
|
1881
|
-
'channel':
|
|
1882
|
-
'idempotency_key':
|
|
1883
|
-
'tasks':
|
|
1884
|
-
'title':
|
|
1885
|
-
'description':
|
|
1886
|
-
'priority':
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
])[
|
|
1989
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0xaad434)]('create_tasks', _0x4345f8(0x17d), {
|
|
1990
|
+
'channel': _0x114985['string'](),
|
|
1991
|
+
'idempotency_key': _0x114985[_0x4345f8(0x291)]()['optional'](),
|
|
1992
|
+
'tasks': _0x114985[_0x4345f8(_0x4eb70f._0x424b13)](_0x114985[_0x4345f8(_0x4eb70f._0x5602fb)]({
|
|
1993
|
+
'title': _0x114985[_0x4345f8(0x291)](),
|
|
1994
|
+
'description': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)]()[_0x4345f8(0x28f)](),
|
|
1995
|
+
'priority': _0x114985[_0x4345f8(_0x4eb70f._0x1a9f6b)]([
|
|
1996
|
+
_0x4345f8(0x18a),
|
|
1997
|
+
_0x4345f8(0x15e),
|
|
1998
|
+
'high',
|
|
1999
|
+
_0x4345f8(0x15b)
|
|
2000
|
+
])['optional']()
|
|
1892
2001
|
}))
|
|
1893
|
-
}, async
|
|
1894
|
-
const
|
|
2002
|
+
}, async _0x4fa82b => {
|
|
2003
|
+
const _0x1bb72e = _0x4345f8;
|
|
1895
2004
|
try {
|
|
1896
|
-
return textResult(await
|
|
1897
|
-
} catch (
|
|
1898
|
-
return textResult(
|
|
2005
|
+
return textResult(await _0x10cf2e[_0x1bb72e(_0x179610._0x215bbd)](_0x4fa82b));
|
|
2006
|
+
} catch (_0x330ae4) {
|
|
2007
|
+
return textResult(_0x330ae4 instanceof Error ? _0x330ae4[_0x1bb72e(_0x179610._0x3f3e14)] : _0x1bb72e(0x230), !![]);
|
|
1899
2008
|
}
|
|
1900
|
-
}),
|
|
1901
|
-
'channel':
|
|
1902
|
-
'task_numbers':
|
|
1903
|
-
'message_ids':
|
|
1904
|
-
'evidence':
|
|
1905
|
-
'create_thread':
|
|
1906
|
-
'create_task':
|
|
1907
|
-
}))[
|
|
1908
|
-
'idempotency_key':
|
|
1909
|
-
}, async
|
|
1910
|
-
const
|
|
2009
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5f20b8)](_0x4345f8(_0x4eb70f._0x176592), _0x4345f8(0x176), {
|
|
2010
|
+
'channel': _0x114985[_0x4345f8(0x291)](),
|
|
2011
|
+
'task_numbers': _0x114985[_0x4345f8(0x163)](_0x114985[_0x4345f8(0x16d)]())['optional'](),
|
|
2012
|
+
'message_ids': _0x114985[_0x4345f8(_0x4eb70f._0x5e180b)](_0x114985[_0x4345f8(_0x4eb70f._0x4b14b7)]())[_0x4345f8(0x28f)](),
|
|
2013
|
+
'evidence': _0x114985[_0x4345f8(0x276)](_0x114985[_0x4345f8(_0x4eb70f._0x267cf6)](), _0x114985[_0x4345f8(_0x4eb70f._0xc0343)]({
|
|
2014
|
+
'create_thread': _0x114985['unknown']()[_0x4345f8(0x28f)](),
|
|
2015
|
+
'create_task': _0x114985[_0x4345f8(0x198)]()[_0x4345f8(0x28f)]()
|
|
2016
|
+
}))[_0x4345f8(0x28f)](),
|
|
2017
|
+
'idempotency_key': _0x114985['string']()[_0x4345f8(_0x4eb70f._0x1a516c)]()
|
|
2018
|
+
}, async _0x45c9dd => {
|
|
2019
|
+
const _0x42942d = _0x4345f8;
|
|
1911
2020
|
try {
|
|
1912
|
-
return textResult(await
|
|
1913
|
-
} catch (
|
|
1914
|
-
return textResult(
|
|
2021
|
+
return textResult(await _0x10cf2e[_0x42942d(0x166)](_0x45c9dd));
|
|
2022
|
+
} catch (_0x101c8c) {
|
|
2023
|
+
return textResult(_0x101c8c instanceof Error ? _0x101c8c['message'] : _0x42942d(0x27f), !![]);
|
|
1915
2024
|
}
|
|
1916
|
-
}),
|
|
1917
|
-
'channel':
|
|
1918
|
-
'task_number':
|
|
1919
|
-
'idempotency_key':
|
|
1920
|
-
}, async
|
|
1921
|
-
const
|
|
2025
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x3c1057)](_0x4345f8(_0x4eb70f._0x4d2fa9), _0x4345f8(_0x4eb70f._0x3d2fbe), {
|
|
2026
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0x4b14b7)](),
|
|
2027
|
+
'task_number': _0x114985['number'](),
|
|
2028
|
+
'idempotency_key': _0x114985[_0x4345f8(0x291)]()['optional']()
|
|
2029
|
+
}, async _0x3cce50 => {
|
|
2030
|
+
const _0x34a659 = _0x4345f8;
|
|
1922
2031
|
try {
|
|
1923
|
-
return textResult(await
|
|
1924
|
-
} catch (
|
|
1925
|
-
return textResult(
|
|
2032
|
+
return textResult(await _0x10cf2e[_0x34a659(_0x3206bc._0x34c0b8)](_0x3cce50));
|
|
2033
|
+
} catch (_0x5222fd) {
|
|
2034
|
+
return textResult(_0x5222fd instanceof Error ? _0x5222fd[_0x34a659(_0x3206bc._0x53ff00)] : 'unclaim_task\x20failed', !![]);
|
|
1926
2035
|
}
|
|
1927
|
-
}),
|
|
1928
|
-
'channel':
|
|
1929
|
-
'task_number':
|
|
1930
|
-
'status':
|
|
2036
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x4752e8)](_0x4345f8(_0x4eb70f._0x2f5dc1), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2037
|
+
'channel': _0x114985['string'](),
|
|
2038
|
+
'task_number': _0x114985[_0x4345f8(0x16d)](),
|
|
2039
|
+
'status': _0x114985[_0x4345f8(0x1f1)]([
|
|
1931
2040
|
'todo',
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
2041
|
+
_0x4345f8(0x1a0),
|
|
2042
|
+
_0x4345f8(_0x4eb70f._0x541d43),
|
|
2043
|
+
_0x4345f8(_0x4eb70f._0x526f83)
|
|
1935
2044
|
]),
|
|
1936
|
-
'idempotency_key':
|
|
1937
|
-
}, async
|
|
1938
|
-
const
|
|
2045
|
+
'idempotency_key': _0x114985[_0x4345f8(_0x4eb70f._0x2983e3)]()['optional']()
|
|
2046
|
+
}, async _0x2665a6 => {
|
|
2047
|
+
const _0x219f5e = _0x4345f8;
|
|
1939
2048
|
try {
|
|
1940
|
-
return textResult(await
|
|
1941
|
-
} catch (
|
|
1942
|
-
return textResult(
|
|
2049
|
+
return textResult(await _0x10cf2e[_0x219f5e(_0x30dfa3._0x5925fb)](_0x2665a6));
|
|
2050
|
+
} catch (_0x6c00dd) {
|
|
2051
|
+
return textResult(_0x6c00dd instanceof Error ? _0x6c00dd[_0x219f5e(0x256)] : _0x219f5e(0x247), !![]);
|
|
1943
2052
|
}
|
|
1944
|
-
}),
|
|
1945
|
-
'channel':
|
|
1946
|
-
'file_path':
|
|
1947
|
-
}, async
|
|
1948
|
-
const
|
|
2053
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5f20b8)](_0x4345f8(0x1fc), _0x4345f8(_0x4eb70f._0x401bd7), {
|
|
2054
|
+
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
2055
|
+
'file_path': _0x114985[_0x4345f8(_0x4eb70f._0x267cf6)]()
|
|
2056
|
+
}, async _0x57d4fe => {
|
|
2057
|
+
const _0x438a5a = _0x4345f8;
|
|
1949
2058
|
try {
|
|
1950
|
-
return textResult(await
|
|
1951
|
-
} catch (
|
|
1952
|
-
return textResult(
|
|
2059
|
+
return textResult(await _0x10cf2e[_0x438a5a(0x1fc)](_0x57d4fe));
|
|
2060
|
+
} catch (_0x4ad2b9) {
|
|
2061
|
+
return textResult(_0x4ad2b9 instanceof Error ? _0x4ad2b9['message'] : _0x438a5a(_0x52c3eb._0x4e2fab), !![]);
|
|
1953
2062
|
}
|
|
1954
|
-
}),
|
|
1955
|
-
const
|
|
2063
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x211faf)]('view_file', _0x4345f8(_0x4eb70f._0x6e5765), { 'attachment_id': _0x114985[_0x4345f8(0x291)]() }, async _0x31e0e1 => {
|
|
2064
|
+
const _0x1ac9b0 = _0x4345f8;
|
|
1956
2065
|
try {
|
|
1957
|
-
return textResult(await
|
|
1958
|
-
} catch (
|
|
1959
|
-
return textResult(
|
|
2066
|
+
return textResult(await _0x10cf2e[_0x1ac9b0(0x287)](_0x31e0e1));
|
|
2067
|
+
} catch (_0x493663) {
|
|
2068
|
+
return textResult(_0x493663 instanceof Error ? _0x493663[_0x1ac9b0(_0xa6f0d9._0x43563e)] : _0x1ac9b0(_0xa6f0d9._0x37fe1e), !![]);
|
|
1960
2069
|
}
|
|
1961
|
-
}),
|
|
1962
|
-
'work_key':
|
|
1963
|
-
'thread_target':
|
|
1964
|
-
'objective':
|
|
1965
|
-
'conclusions':
|
|
1966
|
-
'relevant_files':
|
|
1967
|
-
'open_questions':
|
|
1968
|
-
'reply_target':
|
|
1969
|
-
'task_id':
|
|
1970
|
-
}, async
|
|
1971
|
-
const
|
|
2070
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5ed01d)](_0x4345f8(_0x4eb70f._0xf0aecf), _0x4345f8(0x16e), {
|
|
2071
|
+
'work_key': _0x114985[_0x4345f8(0x291)](),
|
|
2072
|
+
'thread_target': _0x114985[_0x4345f8(_0x4eb70f._0x293df3)](),
|
|
2073
|
+
'objective': _0x114985['string'](),
|
|
2074
|
+
'conclusions': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(0x28f)](),
|
|
2075
|
+
'relevant_files': _0x114985[_0x4345f8(_0x4eb70f._0x424b13)](_0x114985[_0x4345f8(_0x4eb70f._0xbb6a1d)]())[_0x4345f8(_0x4eb70f._0xe2f670)](),
|
|
2076
|
+
'open_questions': _0x114985['array'](_0x114985[_0x4345f8(_0x4eb70f._0x267cf6)]())[_0x4345f8(0x28f)](),
|
|
2077
|
+
'reply_target': _0x114985[_0x4345f8(0x291)](),
|
|
2078
|
+
'task_id': _0x114985[_0x4345f8(_0x4eb70f._0x1b7f33)]()[_0x4345f8(_0x4eb70f._0x2fabfa)]()
|
|
2079
|
+
}, async _0x182921 => {
|
|
2080
|
+
const _0x25c888 = _0x4345f8;
|
|
1972
2081
|
try {
|
|
1973
|
-
return textResult(await
|
|
1974
|
-
} catch (
|
|
1975
|
-
return textResult(
|
|
2082
|
+
return textResult(await _0x10cf2e[_0x25c888(_0x3e9244._0x43e3b2)](_0x182921));
|
|
2083
|
+
} catch (_0x3dc737) {
|
|
2084
|
+
return textResult(_0x3dc737 instanceof Error ? _0x3dc737['message'] : _0x25c888(0x2ad), !![]);
|
|
1976
2085
|
}
|
|
1977
|
-
}),
|
|
1978
|
-
const
|
|
2086
|
+
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x46eb43)](_0x4345f8(_0x4eb70f._0x123509), _0x4345f8(_0x4eb70f._0xde4a58), { 'work_key': _0x114985[_0x4345f8(0x291)]() }, async _0x3e3227 => {
|
|
2087
|
+
const _0x199ef3 = _0x4345f8;
|
|
1979
2088
|
try {
|
|
1980
|
-
return textResult(await
|
|
1981
|
-
} catch (
|
|
1982
|
-
return textResult(
|
|
2089
|
+
return textResult(await _0x10cf2e['get_worker_status'](_0x3e3227));
|
|
2090
|
+
} catch (_0x48d4b5) {
|
|
2091
|
+
return textResult(_0x48d4b5 instanceof Error ? _0x48d4b5[_0x199ef3(0x256)] : _0x199ef3(_0x3a75a6._0x27e9c6), !![]);
|
|
1983
2092
|
}
|
|
1984
|
-
}),
|
|
1985
|
-
const
|
|
2093
|
+
}), _0x56dd02['tool'](_0x4345f8(0x1a8), _0x4345f8(_0x4eb70f._0x1e7dda), { 'work_key': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)]() }, async _0x5b5428 => {
|
|
2094
|
+
const _0x4d7eaf = _0x4345f8;
|
|
1986
2095
|
try {
|
|
1987
|
-
return textResult(await
|
|
1988
|
-
} catch (
|
|
1989
|
-
return textResult(
|
|
2096
|
+
return textResult(await _0x10cf2e[_0x4d7eaf(_0x2e665c._0x91909e)](_0x5b5428));
|
|
2097
|
+
} catch (_0x10eabf) {
|
|
2098
|
+
return textResult(_0x10eabf instanceof Error ? _0x10eabf[_0x4d7eaf(0x256)] : _0x4d7eaf(0x19e), !![]);
|
|
1990
2099
|
}
|
|
1991
|
-
}),
|
|
1992
|
-
'work_key':
|
|
1993
|
-
'result':
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2100
|
+
}), _0x56dd02['tool']('finish_worker', _0x4345f8(_0x4eb70f._0x34bc91), {
|
|
2101
|
+
'work_key': _0x114985['string'](),
|
|
2102
|
+
'result': _0x114985[_0x4345f8(_0x4eb70f._0x1a9f6b)]([
|
|
2103
|
+
_0x4345f8(0x158),
|
|
2104
|
+
'blocked',
|
|
2105
|
+
_0x4345f8(0x223)
|
|
1997
2106
|
]),
|
|
1998
|
-
'summary':
|
|
1999
|
-
'decisions':
|
|
2000
|
-
'files_changed':
|
|
2001
|
-
'open_issues':
|
|
2002
|
-
'next_steps':
|
|
2003
|
-
}, async
|
|
2004
|
-
const
|
|
2107
|
+
'summary': _0x114985[_0x4345f8(_0x4eb70f._0x2983e3)](),
|
|
2108
|
+
'decisions': _0x114985[_0x4345f8(_0x4eb70f._0x310855)](_0x114985['string']())[_0x4345f8(0x28f)](),
|
|
2109
|
+
'files_changed': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(_0x4eb70f._0xe2f670)](),
|
|
2110
|
+
'open_issues': _0x114985[_0x4345f8(_0x4eb70f._0x187ea0)](_0x114985['string']())['optional'](),
|
|
2111
|
+
'next_steps': _0x114985[_0x4345f8(0x163)](_0x114985['string']())['optional']()
|
|
2112
|
+
}, async _0x44f4bd => {
|
|
2113
|
+
const _0x3ac16b = _0x4345f8;
|
|
2005
2114
|
try {
|
|
2006
|
-
return textResult(await
|
|
2007
|
-
} catch (
|
|
2008
|
-
return textResult(
|
|
2115
|
+
return textResult(await _0x10cf2e[_0x3ac16b(_0x558b2e._0x568679)](_0x44f4bd));
|
|
2116
|
+
} catch (_0x360244) {
|
|
2117
|
+
return textResult(_0x360244 instanceof Error ? _0x360244[_0x3ac16b(_0x558b2e._0xcfef8d)] : _0x3ac16b(0x26a), !![]);
|
|
2009
2118
|
}
|
|
2010
|
-
}),
|
|
2011
|
-
'work_key':
|
|
2012
|
-
'reason':
|
|
2013
|
-
}, async
|
|
2014
|
-
const
|
|
2119
|
+
}), _0x56dd02['tool'](_0x4345f8(0x186), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2120
|
+
'work_key': _0x114985['string'](),
|
|
2121
|
+
'reason': _0x114985[_0x4345f8(0x291)]()
|
|
2122
|
+
}, async _0x24834a => {
|
|
2123
|
+
const _0x1c0d8c = _0x4345f8;
|
|
2015
2124
|
try {
|
|
2016
|
-
return textResult(await
|
|
2017
|
-
} catch (
|
|
2018
|
-
return textResult(
|
|
2125
|
+
return textResult(await _0x10cf2e[_0x1c0d8c(_0x3e2ee9._0x3dc5aa)](_0x24834a));
|
|
2126
|
+
} catch (_0x11d3ec) {
|
|
2127
|
+
return textResult(_0x11d3ec instanceof Error ? _0x11d3ec[_0x1c0d8c(_0x3e2ee9._0x472837)] : _0x1c0d8c(_0x3e2ee9._0x5016c8), !![]);
|
|
2019
2128
|
}
|
|
2020
|
-
}),
|
|
2021
|
-
const
|
|
2129
|
+
}), _0xdca9cc?.['workerMode'] && _0x56dd02[_0x4345f8(0x19c)](_0x4345f8(_0x4eb70f._0x2c6f27), _0x4345f8(0x222), { 'work_key': _0x114985[_0x4345f8(0x291)]() }, async _0x275c22 => {
|
|
2130
|
+
const _0x38927b = _0x4345f8;
|
|
2022
2131
|
try {
|
|
2023
|
-
return textResult(await
|
|
2024
|
-
} catch (
|
|
2025
|
-
return textResult(
|
|
2132
|
+
return textResult(await _0x10cf2e['mark_waiting_input'](_0x275c22));
|
|
2133
|
+
} catch (_0x1a4ee9) {
|
|
2134
|
+
return textResult(_0x1a4ee9 instanceof Error ? _0x1a4ee9['message'] : _0x38927b(0x214), !![]);
|
|
2026
2135
|
}
|
|
2027
2136
|
});
|
|
2028
2137
|
}
|
|
2029
|
-
async function createChatBridgeServer(
|
|
2030
|
-
const
|
|
2031
|
-
'name':
|
|
2032
|
-
'version':
|
|
2033
|
-
}),
|
|
2034
|
-
return await registerChatBridgeTools(
|
|
2035
|
-
'handlers':
|
|
2036
|
-
'server':
|
|
2138
|
+
async function createChatBridgeServer(_0x51f387) {
|
|
2139
|
+
const _0x273648 = _0x4ab0ed, {McpServer: _0x205ba9} = await import(_0x273648(0x2c5)), _0x449afc = new _0x205ba9({
|
|
2140
|
+
'name': 'chat',
|
|
2141
|
+
'version': _0x273648(0x2bf)
|
|
2142
|
+
}), _0x56e24c = createChatBridgeHandlers(_0x51f387);
|
|
2143
|
+
return await registerChatBridgeTools(_0x449afc, _0x56e24c, { 'workerMode': _0x51f387[_0x273648(0x1e5)] }), {
|
|
2144
|
+
'handlers': _0x56e24c,
|
|
2145
|
+
'server': _0x449afc
|
|
2037
2146
|
};
|
|
2038
2147
|
}
|
|
2039
|
-
function readFlag(
|
|
2040
|
-
const
|
|
2041
|
-
if (
|
|
2148
|
+
function readFlag(_0x551332, _0x3b5fb0) {
|
|
2149
|
+
const _0x20e68b = _0x551332['indexOf'](_0x3b5fb0);
|
|
2150
|
+
if (_0x20e68b === -0x1)
|
|
2042
2151
|
return void 0x0;
|
|
2043
|
-
return
|
|
2152
|
+
return _0x551332[_0x20e68b + 0x1];
|
|
2044
2153
|
}
|
|
2045
|
-
function parseChatBridgeArgs(
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
throw new Error('Missing\x20--daemon-api-key');
|
|
2057
|
-
if (_0x2312f6 !== void 0x0 && (_0x3fb4f3 === void 0x0 || !Number[_0x61b56b(_0x47cc65._0x1c12f3)](_0x3fb4f3) || _0x3fb4f3 < 0x0))
|
|
2058
|
-
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2154
|
+
function parseChatBridgeArgs(_0x4db6c7) {
|
|
2155
|
+
const _0x5aa5a1 = {
|
|
2156
|
+
_0x731ce9: 0x20d,
|
|
2157
|
+
_0x271c48: 0x255
|
|
2158
|
+
}, _0xefa0ef = _0x4ab0ed, _0x1039c7 = readFlag(_0x4db6c7, _0xefa0ef(0x236)), _0xd6176d = readFlag(_0x4db6c7, _0xefa0ef(_0x5aa5a1._0x731ce9)), _0x1df697 = readFlag(_0x4db6c7, _0xefa0ef(0x2a9)), _0x733cb9 = readFlag(_0x4db6c7, '--server-url') ?? 'http://localhost:8121', _0x1a23d0 = readFlag(_0x4db6c7, _0xefa0ef(0x18f)), _0x8474bf = readFlag(_0x4db6c7, _0xefa0ef(0x2b2)), _0x2122e5 = readFlag(_0x4db6c7, _0xefa0ef(0x18c)), _0x39c097 = readFlag(_0x4db6c7, '--worker-thread-target'), _0x40ea5f = _0x4db6c7['includes'](_0xefa0ef(0x174)), _0x4a9dfd = _0x1df697 === void 0x0 ? void 0x0 : Number['parseInt'](_0x1df697, 0xa);
|
|
2159
|
+
if (!_0x1039c7)
|
|
2160
|
+
throw new Error(_0xefa0ef(0x292));
|
|
2161
|
+
if (!_0xd6176d)
|
|
2162
|
+
throw new Error(_0xefa0ef(_0x5aa5a1._0x271c48));
|
|
2163
|
+
if (_0x1df697 !== void 0x0 && (_0x4a9dfd === void 0x0 || !Number['isFinite'](_0x4a9dfd) || _0x4a9dfd < 0x0))
|
|
2164
|
+
throw new Error(_0xefa0ef(0x21a));
|
|
2059
2165
|
return {
|
|
2060
|
-
'agentId':
|
|
2061
|
-
'daemonApiKey':
|
|
2062
|
-
'daemonLocalUrl':
|
|
2063
|
-
'initialLastSeenSeq':
|
|
2064
|
-
'sessionId':
|
|
2065
|
-
'serverUrl':
|
|
2066
|
-
'workerModeEnabled':
|
|
2067
|
-
'workerThreadTarget':
|
|
2068
|
-
'workerMode':
|
|
2166
|
+
'agentId': _0x1039c7,
|
|
2167
|
+
'daemonApiKey': _0xd6176d,
|
|
2168
|
+
'daemonLocalUrl': _0x1a23d0,
|
|
2169
|
+
'initialLastSeenSeq': _0x4a9dfd,
|
|
2170
|
+
'sessionId': _0x8474bf,
|
|
2171
|
+
'serverUrl': _0x733cb9,
|
|
2172
|
+
'workerModeEnabled': _0x2122e5 === void 0x0 ? void 0x0 : _0x2122e5 !== 'false',
|
|
2173
|
+
'workerThreadTarget': _0x39c097,
|
|
2174
|
+
'workerMode': _0x40ea5f
|
|
2069
2175
|
};
|
|
2070
2176
|
}
|
|
2071
|
-
async function runChatBridgeCli(
|
|
2072
|
-
const
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
},
|
|
2076
|
-
'agentId':
|
|
2077
|
-
'attachmentCache':
|
|
2078
|
-
'client':
|
|
2079
|
-
'daemonLocalUrl':
|
|
2177
|
+
async function runChatBridgeCli(_0xc25b64) {
|
|
2178
|
+
const _0x5e5d72 = {
|
|
2179
|
+
_0x9fd3c8: 0x1d0,
|
|
2180
|
+
_0x2991c3: 0x1dc
|
|
2181
|
+
}, _0x1773cd = _0x4ab0ed, _0x175d04 = parseChatBridgeArgs(_0xc25b64), {StdioServerTransport: _0x23c675} = await import(_0x1773cd(_0x5e5d72._0x9fd3c8)), _0x10a746 = createInternalAgentClient(_0x175d04), _0x4464fd = createAttachmentCache(), _0x36d7ee = await createChatBridgeServer({
|
|
2182
|
+
'agentId': _0x175d04[_0x1773cd(0x1ce)],
|
|
2183
|
+
'attachmentCache': _0x4464fd,
|
|
2184
|
+
'client': _0x10a746,
|
|
2185
|
+
'daemonLocalUrl': _0x175d04[_0x1773cd(0x267)],
|
|
2080
2186
|
'uploadPreparer': prepareUploadFile,
|
|
2081
|
-
'workerModeEnabled':
|
|
2082
|
-
'workerMode':
|
|
2187
|
+
'workerModeEnabled': _0x175d04[_0x1773cd(0x16a)],
|
|
2188
|
+
'workerMode': _0x175d04['workerMode']
|
|
2083
2189
|
});
|
|
2084
|
-
await
|
|
2190
|
+
await _0x36d7ee[_0x1773cd(0x296)][_0x1773cd(_0x5e5d72._0x2991c3)](new _0x23c675());
|
|
2085
2191
|
}
|
|
2086
|
-
var executedAsEntry = process[
|
|
2087
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2192
|
+
var executedAsEntry = process[_0x4ab0ed(0x1d1)][0x1] ? import.meta.url === pathToFileURL(process[_0x4ab0ed(0x1d1)][0x1])[_0x4ab0ed(0x29c)] : ![];
|
|
2193
|
+
executedAsEntry && await runChatBridgeCli(process[_0x4ab0ed(0x1d1)][_0x4ab0ed(0x27a)](0x2));
|
|
2088
2194
|
export {
|
|
2089
2195
|
createChatBridgeHandlers,
|
|
2090
2196
|
createChatBridgeServer,
|