@dscord/daemon 0.1.51 → 0.1.52
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 +2106 -2159
- package/dist/index.js +9693 -9679
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const _0x39cf13 = _0x2500;
|
|
2
|
+
(function (_0x4a7586, _0x3d28c0) {
|
|
3
|
+
const _0x519bf9 = {
|
|
4
|
+
_0x332ba: 0xf1,
|
|
5
|
+
_0x3368ff: 0x1bf,
|
|
6
|
+
_0x346a39: 0x119,
|
|
7
|
+
_0xd55be2: 0xab,
|
|
8
|
+
_0x44eeb3: 0x145,
|
|
9
|
+
_0x4d4399: 0x15c
|
|
10
|
+
}, _0xbe16cb = _0x2500, _0x4bfeb9 = _0x4a7586();
|
|
9
11
|
while (!![]) {
|
|
10
12
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
+
const _0x1092cf = parseInt(_0xbe16cb(_0x519bf9._0x332ba)) / 0x1 * (parseInt(_0xbe16cb(_0x519bf9._0x3368ff)) / 0x2) + -parseInt(_0xbe16cb(0x1a9)) / 0x3 * (parseInt(_0xbe16cb(_0x519bf9._0x346a39)) / 0x4) + parseInt(_0xbe16cb(_0x519bf9._0xd55be2)) / 0x5 + -parseInt(_0xbe16cb(0xbe)) / 0x6 * (-parseInt(_0xbe16cb(0x120)) / 0x7) + -parseInt(_0xbe16cb(_0x519bf9._0x44eeb3)) / 0x8 + -parseInt(_0xbe16cb(0xcd)) / 0x9 + parseInt(_0xbe16cb(_0x519bf9._0x4d4399)) / 0xa;
|
|
14
|
+
if (_0x1092cf === _0x3d28c0)
|
|
13
15
|
break;
|
|
14
16
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
17
|
+
_0x4bfeb9['push'](_0x4bfeb9['shift']());
|
|
18
|
+
} catch (_0x38296a) {
|
|
19
|
+
_0x4bfeb9['push'](_0x4bfeb9['shift']());
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
}(
|
|
22
|
+
}(_0x16d5, 0xa6999));
|
|
21
23
|
import { pathToFileURL } from 'node:url';
|
|
22
24
|
import {
|
|
23
25
|
mkdir,
|
|
@@ -27,2350 +29,2295 @@ import {
|
|
|
27
29
|
writeFile
|
|
28
30
|
} from 'node:fs/promises';
|
|
29
31
|
import { homedir } from 'node:os';
|
|
30
|
-
import
|
|
32
|
+
import _0x58419c from 'node:path';
|
|
31
33
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
32
|
-
'.csv':
|
|
33
|
-
'.gif':
|
|
34
|
-
'.jpeg':
|
|
35
|
-
'.jpg':
|
|
36
|
-
'.json':
|
|
37
|
-
'.md':
|
|
38
|
-
'.pdf':
|
|
39
|
-
'.png':
|
|
40
|
-
'.svg':
|
|
41
|
-
'.txt':
|
|
42
|
-
'.webp':
|
|
43
|
-
'.xml':
|
|
44
|
-
'.zip':
|
|
34
|
+
'.csv': _0x39cf13(0x19a),
|
|
35
|
+
'.gif': _0x39cf13(0xed),
|
|
36
|
+
'.jpeg': _0x39cf13(0x171),
|
|
37
|
+
'.jpg': 'image/jpeg',
|
|
38
|
+
'.json': _0x39cf13(0x1ed),
|
|
39
|
+
'.md': _0x39cf13(0xa5),
|
|
40
|
+
'.pdf': _0x39cf13(0xa0),
|
|
41
|
+
'.png': _0x39cf13(0x1ac),
|
|
42
|
+
'.svg': _0x39cf13(0x15f),
|
|
43
|
+
'.txt': _0x39cf13(0x18e),
|
|
44
|
+
'.webp': _0x39cf13(0x1d8),
|
|
45
|
+
'.xml': _0x39cf13(0x1c4),
|
|
46
|
+
'.zip': _0x39cf13(0x142)
|
|
45
47
|
};
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
'
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
'
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
48
|
+
function guessContentType(_0x391eb6) {
|
|
49
|
+
const _0x1e0f75 = {
|
|
50
|
+
_0xff5826: 0xbb,
|
|
51
|
+
_0x19c1dc: 0x8b
|
|
52
|
+
}, _0x8a21cb = _0x39cf13;
|
|
53
|
+
return MIME_BY_EXTENSION[_0x58419c[_0x8a21cb(0x1dc)](_0x391eb6)[_0x8a21cb(_0x1e0f75._0xff5826)]()] ?? _0x8a21cb(_0x1e0f75._0x19c1dc);
|
|
54
|
+
}
|
|
55
|
+
function safeFilename(_0x35b986) {
|
|
56
|
+
const _0x146c6b = _0x39cf13;
|
|
57
|
+
return _0x35b986[_0x146c6b(0x191)](/[\\/]/g, '-');
|
|
58
|
+
}
|
|
59
|
+
function extensionFor(_0x11cdea) {
|
|
60
|
+
const _0x51820e = { _0x23107e: 0x9c }, _0x485633 = _0x39cf13, _0x43047b = Object[_0x485633(_0x51820e._0x23107e)](MIME_BY_EXTENSION)['find'](([, _0x31a9fb]) => _0x31a9fb === _0x11cdea);
|
|
61
|
+
return _0x43047b?.[0x0] ?? '.bin';
|
|
62
|
+
}
|
|
63
|
+
async function prepareUploadFile(_0x4cb6a8, _0x519093 = {}) {
|
|
64
|
+
const _0x141d84 = { _0x4729bd: 0xc5 }, _0x4ce528 = _0x39cf13;
|
|
65
|
+
if (!_0x58419c[_0x4ce528(0x9d)](_0x4cb6a8))
|
|
66
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
67
|
+
const _0x5d6a9f = await stat(_0x4cb6a8)['catch'](() => null);
|
|
68
|
+
if (!_0x5d6a9f || !_0x5d6a9f['isFile']())
|
|
69
|
+
throw new Error(_0x4ce528(0x16d) + _0x4cb6a8);
|
|
70
|
+
const _0x365bfa = _0x519093[_0x4ce528(0x14c)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
71
|
+
if (_0x5d6a9f[_0x4ce528(0x8e)] > _0x365bfa)
|
|
72
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x5d6a9f[_0x4ce528(0x8e)]);
|
|
73
|
+
const _0x518714 = await readFile(_0x4cb6a8), _0x143078 = _0x58419c[_0x4ce528(0x143)](_0x4cb6a8);
|
|
74
|
+
return {
|
|
75
|
+
'contentBase64': _0x518714[_0x4ce528(0x151)](_0x4ce528(_0x141d84._0x4729bd)),
|
|
76
|
+
'contentType': guessContentType(_0x143078),
|
|
77
|
+
'filename': _0x143078,
|
|
78
|
+
'sizeBytes': _0x5d6a9f[_0x4ce528(0x8e)]
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function createAttachmentCache(_0x29f8d1 = {}) {
|
|
82
|
+
const _0x1155ab = {
|
|
83
|
+
_0x5894ed: 0x126,
|
|
84
|
+
_0x30d6db: 0x186
|
|
85
|
+
}, _0x25824d = _0x39cf13, _0xcf67e1 = _0x29f8d1[_0x25824d(0x175)] ?? _0x58419c[_0x25824d(0x1e3)](homedir(), _0x25824d(0x1b8), _0x25824d(0x206));
|
|
86
|
+
return {
|
|
87
|
+
'cacheDir': _0xcf67e1,
|
|
88
|
+
async 'findCachedPath'(_0x28682b) {
|
|
89
|
+
const _0x4fc89a = _0x25824d;
|
|
90
|
+
await mkdir(_0xcf67e1, { 'recursive': !![] });
|
|
91
|
+
const _0x2ba62b = await readdir(_0xcf67e1), _0x2d4655 = _0x2ba62b[_0x4fc89a(0x1c1)](_0x4deea7 => _0x4deea7[_0x4fc89a(0x13d)](_0x28682b + '-') || _0x4deea7[_0x4fc89a(0x13d)](_0x28682b));
|
|
92
|
+
return _0x2d4655 ? _0x58419c[_0x4fc89a(0x1e3)](_0xcf67e1, _0x2d4655) : null;
|
|
93
|
+
},
|
|
94
|
+
async 'save'(_0x3500a) {
|
|
95
|
+
const _0x66dacc = _0x25824d;
|
|
96
|
+
await mkdir(_0xcf67e1, { 'recursive': !![] });
|
|
97
|
+
const _0x5a2a08 = _0x3500a[_0x66dacc(0x126)]?.[_0x66dacc(0x1eb)]() ? safeFilename(_0x3500a[_0x66dacc(_0x1155ab._0x5894ed)]) : '' + _0x3500a['attachmentId'] + extensionFor(_0x3500a[_0x66dacc(_0x1155ab._0x30d6db)]), _0x17b15a = _0x58419c['join'](_0xcf67e1, _0x3500a[_0x66dacc(0x122)] + '-' + _0x5a2a08);
|
|
98
|
+
return await writeFile(_0x17b15a, _0x3500a['data']), _0x17b15a;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
import {
|
|
103
|
+
createHash,
|
|
104
|
+
randomUUID
|
|
105
|
+
} from 'node:crypto';
|
|
106
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x39cf13(0xd5);
|
|
107
|
+
function ensureSegment(_0x4690d6) {
|
|
108
|
+
const _0x484405 = { _0x1f5186: 0x157 }, _0x2f188b = _0x39cf13, _0x42aa90 = _0x4690d6['trim']();
|
|
109
|
+
if (!_0x42aa90 || _0x42aa90[_0x2f188b(_0x484405._0x1f5186)](':'))
|
|
110
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
111
|
+
return _0x42aa90;
|
|
112
|
+
}
|
|
113
|
+
function parseThreadParts(_0x2b7795) {
|
|
114
|
+
const _0x541eae = _0x39cf13, _0x5b16d7 = _0x2b7795[_0x541eae(0xa9)](':');
|
|
115
|
+
if (_0x5b16d7['length'] < 0x1 || _0x5b16d7[_0x541eae(0xf2)] > 0x2)
|
|
116
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
117
|
+
return {
|
|
118
|
+
'channelName': ensureSegment(_0x5b16d7[0x0] ?? ''),
|
|
119
|
+
'threadShortId': _0x5b16d7[0x1] ? ensureSegment(_0x5b16d7[0x1]) : null
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function parseTarget(_0x4e8807) {
|
|
123
|
+
const _0x14c6c6 = {
|
|
124
|
+
_0x566b75: 0x199,
|
|
125
|
+
_0x28726c: 0x94,
|
|
126
|
+
_0x46c513: 0x199,
|
|
127
|
+
_0x2d0c54: 0x1f5
|
|
128
|
+
}, _0x1f5f92 = _0x39cf13, _0x2c7773 = _0x4e8807[_0x1f5f92(0x1eb)]();
|
|
129
|
+
if (!_0x2c7773)
|
|
130
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
131
|
+
if (_0x2c7773[_0x1f5f92(0x13d)]('#')) {
|
|
132
|
+
const _0x5b7686 = parseThreadParts(_0x2c7773['slice'](0x1)), _0x2f77a9 = '#' + _0x5b7686['channelName'];
|
|
133
|
+
if (!_0x5b7686['threadShortId'])
|
|
134
|
+
return {
|
|
135
|
+
'channelName': _0x5b7686[_0x1f5f92(0x199)],
|
|
136
|
+
'channelTarget': _0x2f77a9,
|
|
137
|
+
'kind': _0x1f5f92(0xb6),
|
|
138
|
+
'target': _0x2f77a9
|
|
139
|
+
};
|
|
140
|
+
return {
|
|
141
|
+
'channelName': _0x5b7686[_0x1f5f92(0x199)],
|
|
142
|
+
'channelTarget': _0x2f77a9,
|
|
143
|
+
'kind': _0x1f5f92(0x1f5),
|
|
144
|
+
'target': _0x2f77a9 + ':' + _0x5b7686['threadShortId'],
|
|
145
|
+
'threadShortId': _0x5b7686[_0x1f5f92(0x94)]
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
if (_0x2c7773['startsWith']('dm:')) {
|
|
149
|
+
const _0x563268 = parseThreadParts(_0x2c7773['slice'](0x3));
|
|
150
|
+
if (!_0x563268[_0x1f5f92(_0x14c6c6._0x566b75)][_0x1f5f92(0x13d)](_0x1f5f92(0x1fb)))
|
|
151
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
152
|
+
const _0xbe4925 = _0x1f5f92(0x1ba) + _0x563268[_0x1f5f92(0x199)];
|
|
153
|
+
if (!_0x563268[_0x1f5f92(_0x14c6c6._0x28726c)])
|
|
154
|
+
return {
|
|
155
|
+
'channelName': _0x563268[_0x1f5f92(_0x14c6c6._0x46c513)],
|
|
156
|
+
'channelTarget': _0xbe4925,
|
|
157
|
+
'kind': 'channel',
|
|
158
|
+
'target': _0xbe4925
|
|
159
|
+
};
|
|
160
|
+
return {
|
|
161
|
+
'channelName': _0x563268[_0x1f5f92(_0x14c6c6._0x566b75)],
|
|
162
|
+
'channelTarget': _0xbe4925,
|
|
163
|
+
'kind': _0x1f5f92(_0x14c6c6._0x2d0c54),
|
|
164
|
+
'target': _0xbe4925 + ':' + _0x563268[_0x1f5f92(0x94)],
|
|
165
|
+
'threadShortId': _0x563268[_0x1f5f92(0x94)]
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
169
|
+
}
|
|
170
|
+
function asErrorMessage(_0x2d8392, _0x396fc9) {
|
|
171
|
+
const _0x5c8a48 = _0x39cf13;
|
|
172
|
+
if (typeof _0x2d8392 === _0x5c8a48(0x1f7) && _0x2d8392['trim']())
|
|
173
|
+
return _0x2d8392;
|
|
174
|
+
return _0x396fc9;
|
|
175
|
+
}
|
|
176
|
+
function asRecord(_0xd59316) {
|
|
177
|
+
return typeof _0xd59316 === 'object' && _0xd59316 !== null ? _0xd59316 : {};
|
|
178
|
+
}
|
|
179
|
+
function stableStringify(_0x171b0c) {
|
|
180
|
+
const _0x590e34 = {
|
|
181
|
+
_0x42749a: 0x127,
|
|
182
|
+
_0x136428: 0x1e3,
|
|
183
|
+
_0x460318: 0x9c,
|
|
184
|
+
_0x16a47b: 0xda,
|
|
185
|
+
_0x4b397e: 0x138,
|
|
186
|
+
_0x381784: 0x127
|
|
187
|
+
}, _0x2fa113 = _0x39cf13;
|
|
188
|
+
if (_0x171b0c === null || typeof _0x171b0c !== _0x2fa113(0x155))
|
|
189
|
+
return JSON['stringify'](_0x171b0c);
|
|
190
|
+
if (Array[_0x2fa113(0x1a0)](_0x171b0c))
|
|
191
|
+
return '[' + _0x171b0c[_0x2fa113(_0x590e34._0x42749a)](_0x19d7a7 => stableStringify(_0x19d7a7))[_0x2fa113(_0x590e34._0x136428)](',') + ']';
|
|
192
|
+
const _0x17c87f = Object[_0x2fa113(_0x590e34._0x460318)](_0x171b0c)[_0x2fa113(_0x590e34._0x16a47b)](([, _0xb5ccc7]) => _0xb5ccc7 !== void 0x0)[_0x2fa113(_0x590e34._0x4b397e)](([_0x527720], [_0xc9cd78]) => _0x527720['localeCompare'](_0xc9cd78))[_0x2fa113(_0x590e34._0x381784)](([_0x2df369, _0x92a021]) => JSON[_0x2fa113(0x13e)](_0x2df369) + ':' + stableStringify(_0x92a021));
|
|
193
|
+
return '{' + _0x17c87f[_0x2fa113(_0x590e34._0x136428)](',') + '}';
|
|
194
|
+
}
|
|
195
|
+
function createHeaders(_0x4b02c0) {
|
|
196
|
+
const _0x86b223 = { _0x355fad: 0x1ed }, _0x3aa53f = _0x39cf13;
|
|
197
|
+
return {
|
|
198
|
+
'Content-Type': _0x3aa53f(_0x86b223._0x355fad),
|
|
199
|
+
'x-daemon-api-key': _0x4b02c0
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function toHttpBaseUrl(_0x3835b2) {
|
|
203
|
+
const _0x4de644 = {
|
|
204
|
+
_0x3bcc62: 0x10c,
|
|
205
|
+
_0x5b6a35: 0x103,
|
|
206
|
+
_0x10298b: 0xfc,
|
|
207
|
+
_0x3a2842: 0x205,
|
|
208
|
+
_0x482bd3: 0x151
|
|
209
|
+
}, _0x13b874 = _0x39cf13, _0x31cb39 = new URL(_0x3835b2);
|
|
210
|
+
if (_0x31cb39[_0x13b874(0x103)] === _0x13b874(_0x4de644._0x3bcc62))
|
|
211
|
+
_0x31cb39[_0x13b874(0x103)] = _0x13b874(0xeb);
|
|
212
|
+
else
|
|
213
|
+
_0x31cb39[_0x13b874(_0x4de644._0x5b6a35)] === _0x13b874(_0x4de644._0x10298b) && (_0x31cb39[_0x13b874(0x103)] = _0x13b874(_0x4de644._0x3a2842));
|
|
214
|
+
return _0x31cb39[_0x13b874(_0x4de644._0x482bd3)]()['replace'](/\/$/, '');
|
|
215
|
+
}
|
|
216
|
+
function isMentionBoundary(_0x4d20d2) {
|
|
217
|
+
return !_0x4d20d2 || /\s|[([{'",。!?、:;]/['test'](_0x4d20d2);
|
|
218
|
+
}
|
|
219
|
+
function isMentionTerminal(_0x19d029) {
|
|
220
|
+
const _0x4a2c10 = _0x39cf13;
|
|
221
|
+
return !_0x19d029 || /\s|[)\]}'",。!?、:;,.!?]/[_0x4a2c10(0x168)](_0x19d029);
|
|
222
|
+
}
|
|
223
|
+
function buildMatchableEntries(_0x589ec6) {
|
|
224
|
+
const _0x11cb37 = {
|
|
225
|
+
_0x16d34e: 0x110,
|
|
226
|
+
_0x37cf17: 0x188,
|
|
227
|
+
_0x18cb1e: 0xc3,
|
|
228
|
+
_0x2e0dd9: 0xc3
|
|
229
|
+
}, _0x362183 = _0x39cf13, _0x5aec99 = [];
|
|
230
|
+
for (const _0x4022e5 of [
|
|
231
|
+
..._0x589ec6[_0x362183(_0x11cb37._0x16d34e)],
|
|
232
|
+
..._0x589ec6[_0x362183(0x124)]
|
|
233
|
+
]) {
|
|
234
|
+
_0x5aec99[_0x362183(_0x11cb37._0x37cf17)]({
|
|
235
|
+
'matchName': _0x4022e5[_0x362183(0x197)],
|
|
236
|
+
'matchNameLower': _0x4022e5['name'][_0x362183(_0x11cb37._0x18cb1e)](),
|
|
237
|
+
'participantId': _0x4022e5['id']
|
|
238
|
+
}), _0x4022e5['id'] !== _0x4022e5['name'] && _0x5aec99['push']({
|
|
239
|
+
'matchName': _0x4022e5['id'],
|
|
240
|
+
'matchNameLower': _0x4022e5['id'][_0x362183(_0x11cb37._0x2e0dd9)](),
|
|
241
|
+
'participantId': _0x4022e5['id']
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
return _0x5aec99;
|
|
245
|
+
}
|
|
246
|
+
function extractMentionedParticipantIds(_0x7499cd, _0x4b7c2a) {
|
|
247
|
+
const _0x14dc53 = {
|
|
248
|
+
_0x5ce57c: 0x138,
|
|
249
|
+
_0x4e5d52: 0x1cb,
|
|
250
|
+
_0x5db0dd: 0xc3,
|
|
251
|
+
_0x3874a6: 0x1d0,
|
|
252
|
+
_0x3ef103: 0x90,
|
|
253
|
+
_0x5c496a: 0xf2
|
|
254
|
+
}, _0x9d99e9 = { _0x5b5678: 0xf2 }, _0x266558 = _0x39cf13, _0x2cd88b = buildMatchableEntries(_0x4b7c2a)[_0x266558(_0x14dc53._0x5ce57c)]((_0x5a41b7, _0x3cad4e) => _0x3cad4e['matchName'][_0x266558(0xf2)] - _0x5a41b7[_0x266558(0xb1)][_0x266558(0xf2)]), _0x944e67 = [], _0x1524bf = new Set();
|
|
255
|
+
for (let _0x35cbe6 = 0x0; _0x35cbe6 < _0x7499cd[_0x266558(0xf2)]; _0x35cbe6 += 0x1) {
|
|
256
|
+
if (_0x7499cd[_0x35cbe6] !== '@' || !isMentionBoundary(_0x7499cd[_0x35cbe6 - 0x1]))
|
|
257
|
+
continue;
|
|
258
|
+
const _0x560b8a = _0x7499cd[_0x266558(_0x14dc53._0x4e5d52)](_0x35cbe6 + 0x1), _0x5f5111 = _0x560b8a[_0x266558(_0x14dc53._0x5db0dd)](), _0x488cfd = _0x2cd88b[_0x266558(0x1c1)](_0x101d52 => {
|
|
259
|
+
const _0x1e3138 = _0x266558;
|
|
260
|
+
if (!_0x5f5111[_0x1e3138(0x13d)](_0x101d52['matchNameLower']))
|
|
261
|
+
return ![];
|
|
262
|
+
return isMentionTerminal(_0x560b8a[_0x101d52[_0x1e3138(0xb1)][_0x1e3138(_0x9d99e9._0x5b5678)]]);
|
|
263
|
+
});
|
|
264
|
+
if (!_0x488cfd || _0x1524bf['has'](_0x488cfd[_0x266558(0x90)]))
|
|
265
|
+
continue;
|
|
266
|
+
_0x1524bf[_0x266558(_0x14dc53._0x3874a6)](_0x488cfd[_0x266558(_0x14dc53._0x3ef103)]), _0x944e67[_0x266558(0x188)](_0x488cfd[_0x266558(_0x14dc53._0x3ef103)]), _0x35cbe6 += _0x488cfd['matchName'][_0x266558(_0x14dc53._0x5c496a)];
|
|
267
|
+
}
|
|
268
|
+
return _0x944e67;
|
|
269
|
+
}
|
|
270
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
271
|
+
function anySignal(..._0x16221d) {
|
|
272
|
+
const _0x50402b = {
|
|
273
|
+
_0x3205c7: 0xb4,
|
|
274
|
+
_0x2d8547: 0x92
|
|
275
|
+
}, _0x3160df = _0x39cf13, _0x321f3b = new AbortController();
|
|
276
|
+
for (const _0x208bb4 of _0x16221d) {
|
|
277
|
+
if (_0x208bb4[_0x3160df(_0x50402b._0x3205c7)])
|
|
278
|
+
return _0x321f3b[_0x3160df(0x10a)](_0x208bb4['reason']), _0x321f3b['signal'];
|
|
279
|
+
_0x208bb4[_0x3160df(0x1db)]('abort', () => _0x321f3b['abort'](_0x208bb4['reason']), {
|
|
280
|
+
'once': !![],
|
|
281
|
+
'signal': _0x321f3b['signal']
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
return _0x321f3b[_0x3160df(_0x50402b._0x2d8547)];
|
|
285
|
+
}
|
|
286
|
+
function createInternalAgentClient(_0x14b42c) {
|
|
287
|
+
const _0x18928c = {
|
|
288
|
+
_0x37cc9a: 0xbf,
|
|
289
|
+
_0x2ef9de: 0x180,
|
|
290
|
+
_0x2fafe7: 0x162,
|
|
291
|
+
_0x36397f: 0x1eb,
|
|
292
|
+
_0x19ec76: 0x164,
|
|
293
|
+
_0x51d081: 0x1f8,
|
|
294
|
+
_0x1bf309: 0x11e
|
|
295
|
+
}, _0x3e8dae = {
|
|
296
|
+
_0xcadf1e: 0x151,
|
|
297
|
+
_0x27b4ba: 0x200,
|
|
298
|
+
_0x2de6df: 0x16c,
|
|
299
|
+
_0x417f0f: 0x179,
|
|
300
|
+
_0x3144db: 0x1c5,
|
|
301
|
+
_0x61be00: 0x1f3,
|
|
302
|
+
_0x4a61f5: 0xf4,
|
|
303
|
+
_0x3ef41a: 0x109,
|
|
304
|
+
_0x48dc62: 0x109,
|
|
305
|
+
_0x4a0d71: 0x13f,
|
|
306
|
+
_0xbc3638: 0x162,
|
|
307
|
+
_0x5d89a8: 0x95,
|
|
308
|
+
_0x1a4d80: 0x173,
|
|
309
|
+
_0x8022ce: 0x95,
|
|
310
|
+
_0x435ec0: 0x188,
|
|
311
|
+
_0x4adc8a: 0x1f4,
|
|
312
|
+
_0x37d33e: 0x173,
|
|
313
|
+
_0x376a1d: 0x11f,
|
|
314
|
+
_0x2ced86: 0x97,
|
|
315
|
+
_0x20c1fd: 0x1ba,
|
|
316
|
+
_0x440647: 0x127,
|
|
317
|
+
_0x10e2c1: 0x1ca,
|
|
318
|
+
_0x393e6b: 0x117,
|
|
319
|
+
_0xcf5bb2: 0x1f6,
|
|
320
|
+
_0x586d46: 0x97,
|
|
321
|
+
_0x292bd5: 0x193,
|
|
322
|
+
_0x260fef: 0x1f7
|
|
323
|
+
}, _0x318d96 = { _0x5f23d3: 0x16e }, _0x2c8cb1 = {
|
|
324
|
+
_0x2210f4: 0xb6,
|
|
325
|
+
_0x356e30: 0x91,
|
|
326
|
+
_0x377995: 0x109
|
|
327
|
+
}, _0x3a5a18 = {
|
|
328
|
+
_0x25c6da: 0x1b6,
|
|
329
|
+
_0x5c3c85: 0x200,
|
|
330
|
+
_0x441831: 0x117,
|
|
331
|
+
_0x514c81: 0x1d7,
|
|
332
|
+
_0x5d03f0: 0x126
|
|
333
|
+
}, _0x424b11 = {
|
|
334
|
+
_0x29adc5: 0xb6,
|
|
335
|
+
_0x4acf28: 0x109,
|
|
336
|
+
_0x2d9fa7: 0x1a8,
|
|
337
|
+
_0x489e32: 0x98,
|
|
338
|
+
_0x515a79: 0xe0,
|
|
339
|
+
_0x179f4e: 0x152
|
|
340
|
+
}, _0x3c46f8 = {
|
|
341
|
+
_0x21eea5: 0xb6,
|
|
342
|
+
_0x42c8b3: 0x8a,
|
|
343
|
+
_0x39b475: 0x1d2,
|
|
344
|
+
_0x3d9c71: 0x130,
|
|
345
|
+
_0x277a23: 0x200
|
|
346
|
+
}, _0x2e4f88 = {
|
|
347
|
+
_0x284126: 0x10e,
|
|
348
|
+
_0x4d3993: 0x152,
|
|
349
|
+
_0x4b89ee: 0x101,
|
|
350
|
+
_0x5e4e63: 0x8a
|
|
351
|
+
}, _0xed79dc = {
|
|
352
|
+
_0x5982cd: 0x133,
|
|
353
|
+
_0x12a383: 0x13e,
|
|
354
|
+
_0x2c97c7: 0x16c,
|
|
355
|
+
_0x570a96: 0x101
|
|
356
|
+
}, _0x49156f = {
|
|
357
|
+
_0x6e0810: 0x13e,
|
|
358
|
+
_0x3a5ecc: 0xdd
|
|
359
|
+
}, _0x32ef49 = {
|
|
360
|
+
_0x2ef421: 0x157,
|
|
361
|
+
_0x5143a3: 0x1d2,
|
|
362
|
+
_0x25c25f: 0x160,
|
|
363
|
+
_0x1d632b: 0x13e,
|
|
364
|
+
_0x5e9bc9: 0xc6,
|
|
365
|
+
_0x1ed1ca: 0x1f6,
|
|
366
|
+
_0x56fcdc: 0xf4,
|
|
367
|
+
_0x5a04d4: 0xc9,
|
|
368
|
+
_0x1636e0: 0x152
|
|
369
|
+
}, _0x5852ab = {
|
|
370
|
+
_0x5ab254: 0x91,
|
|
371
|
+
_0x12bdd4: 0x109,
|
|
372
|
+
_0x59e87f: 0x1f4,
|
|
373
|
+
_0x27cf99: 0xf4,
|
|
374
|
+
_0x568a20: 0x1f4,
|
|
375
|
+
_0x15dfcb: 0xca,
|
|
376
|
+
_0x116e3a: 0x123,
|
|
377
|
+
_0x274197: 0x1a7,
|
|
378
|
+
_0x1845fd: 0x179
|
|
379
|
+
}, _0x18b9ad = { _0x2e5665: 0xd0 }, _0xf8ce68 = {
|
|
380
|
+
_0xff2d17: 0xd3,
|
|
381
|
+
_0x58bdd9: 0x90
|
|
382
|
+
}, _0xb8abd8 = {
|
|
383
|
+
_0x52d900: 0x1f5,
|
|
384
|
+
_0x3cdac3: 0x95,
|
|
385
|
+
_0xce832a: 0x13f,
|
|
386
|
+
_0x5b8a23: 0x94,
|
|
387
|
+
_0x7e2e38: 0x109,
|
|
388
|
+
_0x5b6d5c: 0x13d
|
|
389
|
+
}, _0x21eb59 = {
|
|
390
|
+
_0x54f5f0: 0x95,
|
|
391
|
+
_0x24a729: 0x95,
|
|
392
|
+
_0x3f43ed: 0x13f,
|
|
393
|
+
_0x1e590a: 0x1c9
|
|
394
|
+
}, _0x572f72 = {
|
|
395
|
+
_0x4cc6c7: 0x1e0,
|
|
396
|
+
_0x34d798: 0x198
|
|
397
|
+
}, _0x576c8d = {
|
|
398
|
+
_0x3021e2: 0x1d2,
|
|
399
|
+
_0x5246f7: 0x123,
|
|
400
|
+
_0x59a60d: 0x184,
|
|
401
|
+
_0x22f272: 0x127,
|
|
402
|
+
_0x2c7684: 0xda,
|
|
403
|
+
_0x3f8d73: 0x203,
|
|
404
|
+
_0x198dcf: 0x197
|
|
405
|
+
}, _0x1fd5c0 = {
|
|
406
|
+
_0x5c1ca8: 0x1d2,
|
|
407
|
+
_0x1a7b0d: 0x98,
|
|
408
|
+
_0x522ff0: 0x152,
|
|
409
|
+
_0x1a8aeb: 0x16c,
|
|
410
|
+
_0x14048a: 0xf4,
|
|
411
|
+
_0x4dd7a2: 0x1c2,
|
|
412
|
+
_0x529a0d: 0x109,
|
|
413
|
+
_0x5ad1a: 0x95
|
|
414
|
+
}, _0x127c06 = { _0x4ab137: 0x1ed }, _0x9d076b = {
|
|
415
|
+
_0x352db3: 0x178,
|
|
416
|
+
_0x1b4f09: 0x13e
|
|
417
|
+
}, _0x46c6fe = {
|
|
418
|
+
_0x1d5e6b: 0x92,
|
|
419
|
+
_0x189607: 0x92,
|
|
420
|
+
_0x5a80ae: 0xe5
|
|
421
|
+
}, _0xa95410 = { _0x2e034a: 0x92 }, _0x3f4fdc = {
|
|
422
|
+
_0x45ca5a: 0x136,
|
|
423
|
+
_0x3d88e3: 0x1eb,
|
|
424
|
+
_0x3dc88b: 0x1be,
|
|
425
|
+
_0x3058e4: 0x10f,
|
|
426
|
+
_0x313f0c: 0x1f4
|
|
427
|
+
}, _0x1e134 = {
|
|
428
|
+
_0x2cd392: 0xe3,
|
|
429
|
+
_0x532f3e: 0x12d
|
|
430
|
+
}, _0x37a1a6 = {
|
|
431
|
+
_0x475dc0: 0x135,
|
|
432
|
+
_0x16c6be: 0x1b7,
|
|
433
|
+
_0x36d302: 0x192,
|
|
434
|
+
_0x4a16c3: 0x191,
|
|
435
|
+
_0x23241c: 0xd4,
|
|
436
|
+
_0x2cf7f2: 0x135,
|
|
437
|
+
_0x18fc7d: 0xf7
|
|
438
|
+
}, _0x3e8efa = _0x39cf13, _0x58106a = _0x14b42c['fetchImpl'] ?? fetch, _0x286701 = _0x14b42c[_0x3e8efa(_0x18928c._0x37cc9a)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3e5e07 = typeof _0x14b42c[_0x3e8efa(_0x18928c._0x2ef9de)] === _0x3e8efa(_0x18928c._0x2fafe7) && _0x14b42c['initialLastSeenSeq'] > 0x0 ? _0x14b42c[_0x3e8efa(0x180)] : 0x0, _0x16f970 = _0x14b42c['daemonLocalUrl']?.[_0x3e8efa(0x1eb)]() || void 0x0, _0x59ed0e = _0x14b42c[_0x3e8efa(0xac)]?.[_0x3e8efa(_0x18928c._0x36397f)]() || void 0x0, _0x51144d = _0x14b42c[_0x3e8efa(0x12b)] === !![], _0x3e643 = _0x14b42c[_0x3e8efa(_0x18928c._0x19ec76)]?.[_0x3e8efa(_0x18928c._0x36397f)]() || void 0x0, _0x38e665 = _0x14b42c[_0x3e8efa(_0x18928c._0x51d081)]?.[_0x3e8efa(_0x18928c._0x36397f)]() || void 0x0, _0x570565 = createHeaders(_0x14b42c[_0x3e8efa(0x9e)]), _0x362b22 = toHttpBaseUrl(_0x14b42c[_0x3e8efa(_0x18928c._0x1bf309)]);
|
|
439
|
+
let _0x4d70a9 = null;
|
|
440
|
+
const _0x3a51db = new Map();
|
|
441
|
+
let _0x19bed3 = _0x3e5e07, _0x14196b = _0x3e5e07;
|
|
442
|
+
function _0x15e62b(_0x12d284) {
|
|
443
|
+
const _0x45b68f = _0x3e8efa, _0xc80dd6 = _0x12d284[_0x45b68f(_0x37a1a6._0x475dc0)][_0x45b68f(_0x37a1a6._0x16c6be)][_0x45b68f(0x117)]('content-type') ?? _0x45b68f(_0x37a1a6._0x36d302), _0x50c6f7 = _0x12d284[_0x45b68f(0x1d1)][_0x45b68f(0x1eb)]()[_0x45b68f(_0x37a1a6._0x4a16c3)](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
444
|
+
return '请求\x20' + _0x12d284['requestUrl'] + _0x45b68f(_0x37a1a6._0x23241c) + _0x12d284[_0x45b68f(_0x37a1a6._0x2cf7f2)]['status'] + _0x45b68f(_0x37a1a6._0x18fc7d) + _0xc80dd6 + ',\x20preview=' + _0x50c6f7 + _0x45b68f(0x1e1);
|
|
445
|
+
}
|
|
446
|
+
async function _0x45ad6e(_0x25d694, _0x487e2e) {
|
|
447
|
+
const _0x15f778 = _0x3e8efa, _0xb70ca9 = Buffer[_0x15f778(_0x1e134._0x2cd392)](await _0x487e2e[_0x15f778(0xb9)]())[_0x15f778(0x151)](_0x15f778(_0x1e134._0x532f3e));
|
|
448
|
+
if (!_0xb70ca9[_0x15f778(0x1eb)]())
|
|
449
|
+
return {};
|
|
450
|
+
try {
|
|
451
|
+
return JSON[_0x15f778(0xae)](_0xb70ca9);
|
|
452
|
+
} catch {
|
|
453
|
+
throw new Error(_0x15e62b({
|
|
454
|
+
'bodyText': _0xb70ca9,
|
|
455
|
+
'requestUrl': _0x25d694,
|
|
456
|
+
'response': _0x487e2e
|
|
457
|
+
}));
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
function _0x12f98f(_0x4f98e0, _0x26550f) {
|
|
461
|
+
const _0x23f4e4 = _0x3e8efa, _0x5a7ad3 = typeof _0x26550f[_0x23f4e4(_0x3f4fdc._0x45ca5a)] === _0x23f4e4(0x1f7) ? _0x26550f[_0x23f4e4(_0x3f4fdc._0x45ca5a)][_0x23f4e4(_0x3f4fdc._0x3d88e3)]() : '';
|
|
462
|
+
if (_0x5a7ad3)
|
|
463
|
+
return _0x5a7ad3;
|
|
464
|
+
const _0xc2d691 = Date['now']();
|
|
465
|
+
for (const [_0x2a80c4, _0x5aa8c4] of _0x3a51db) {
|
|
466
|
+
_0x5aa8c4[_0x23f4e4(0xfb)] <= _0xc2d691 && _0x3a51db[_0x23f4e4(0x158)](_0x2a80c4);
|
|
467
|
+
}
|
|
468
|
+
const _0x281b3b = {
|
|
469
|
+
..._0x26550f,
|
|
470
|
+
'idempotency_key': void 0x0
|
|
471
|
+
}, _0x3f6daf = createHash(_0x23f4e4(_0x3f4fdc._0x3dc88b))[_0x23f4e4(_0x3f4fdc._0x3058e4)](_0x4f98e0 + ':' + stableStringify(_0x281b3b))['digest']('hex'), _0x5dbeaf = _0x4f98e0 + ':' + _0x3f6daf, _0x525240 = _0x3a51db['get'](_0x5dbeaf);
|
|
472
|
+
if (_0x525240)
|
|
473
|
+
return _0x525240[_0x23f4e4(0x1c6)];
|
|
474
|
+
const _0x1bb70a = 'auto:' + _0x4f98e0 + ':' + randomUUID();
|
|
475
|
+
return _0x3a51db[_0x23f4e4(_0x3f4fdc._0x313f0c)](_0x5dbeaf, {
|
|
476
|
+
'expiresAt': _0xc2d691 + 0x5 * 0x3c * 0x3e8,
|
|
477
|
+
'value': _0x1bb70a
|
|
478
|
+
}), _0x1bb70a;
|
|
479
|
+
}
|
|
480
|
+
async function _0x4619ed(_0x18d715, _0x1d1961) {
|
|
481
|
+
const _0x26b0ca = _0x3e8efa, _0x4eec52 = new AbortController(), _0x3b1d97 = setTimeout(() => _0x4eec52[_0x26b0ca(0x10a)](), _0x286701), _0x9d2792 = _0x1d1961?.[_0x26b0ca(_0xa95410._0x2e034a)] ? anySignal(_0x1d1961[_0x26b0ca(0x92)], _0x4eec52['signal']) : _0x4eec52['signal'], _0x4124d6 = '' + _0x362b22 + _0x18d715;
|
|
482
|
+
try {
|
|
483
|
+
const _0xe3cdca = await _0x58106a(_0x4124d6, {
|
|
484
|
+
..._0x1d1961,
|
|
485
|
+
'signal': _0x9d2792
|
|
486
|
+
}), _0x560b79 = await _0x45ad6e(_0x4124d6, _0xe3cdca);
|
|
487
|
+
if (!_0xe3cdca['ok'] || _0x560b79[_0x26b0ca(0x1b0)] === ![])
|
|
488
|
+
throw new Error(asErrorMessage(_0x560b79[_0x26b0ca(0xa1)], 'HTTP\x20' + _0xe3cdca[_0x26b0ca(0x8a)]));
|
|
489
|
+
return _0x560b79;
|
|
490
|
+
} finally {
|
|
491
|
+
clearTimeout(_0x3b1d97);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
async function _0x55c367(_0x1e467f, _0x42d3c4) {
|
|
495
|
+
const _0x3de127 = _0x3e8efa, _0x584663 = new AbortController(), _0x40f528 = setTimeout(() => _0x584663[_0x3de127(0x10a)](), _0x286701), _0x59c626 = _0x42d3c4?.[_0x3de127(_0x46c6fe._0x1d5e6b)] ? anySignal(_0x42d3c4[_0x3de127(_0x46c6fe._0x189607)], _0x584663[_0x3de127(0x92)]) : _0x584663[_0x3de127(_0x46c6fe._0x189607)], _0x5e7ef4 = '' + _0x362b22 + _0x1e467f;
|
|
496
|
+
try {
|
|
497
|
+
const _0x93f5ef = await _0x58106a(_0x5e7ef4, {
|
|
498
|
+
..._0x42d3c4,
|
|
499
|
+
'signal': _0x59c626
|
|
500
|
+
}), _0x29b021 = await _0x45ad6e(_0x5e7ef4, _0x93f5ef);
|
|
501
|
+
if (!_0x93f5ef['ok'])
|
|
502
|
+
throw new Error(asErrorMessage(_0x29b021[_0x3de127(0xa1)], _0x3de127(_0x46c6fe._0x5a80ae) + _0x93f5ef['status']));
|
|
503
|
+
return _0x29b021;
|
|
504
|
+
} finally {
|
|
505
|
+
clearTimeout(_0x40f528);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
async function _0x208b1c(_0x2e53e6) {
|
|
509
|
+
const _0xb89816 = _0x3e8efa;
|
|
510
|
+
if (!_0x59ed0e || _0x2e53e6 <= _0x14196b)
|
|
511
|
+
return;
|
|
512
|
+
await _0x4619ed(_0xb89816(_0x9d076b._0x352db3) + encodeURIComponent(_0x59ed0e) + '/context-metrics', {
|
|
513
|
+
'body': JSON[_0xb89816(_0x9d076b._0x1b4f09)]({ 'lastSeenSeq': _0x2e53e6 }),
|
|
514
|
+
'headers': _0x570565,
|
|
515
|
+
'method': _0xb89816(0x1ab)
|
|
516
|
+
}), _0x14196b = _0x2e53e6;
|
|
517
|
+
}
|
|
518
|
+
async function _0x1d5199(_0x7c0a4d) {
|
|
519
|
+
const _0x1e26ad = _0x3e8efa;
|
|
520
|
+
if (!_0x16f970 || !_0x3e643 || _0x7c0a4d <= _0x14196b)
|
|
521
|
+
return;
|
|
522
|
+
const _0x48beaa = await _0x58106a(_0x16f970 + _0x1e26ad(0xf6), {
|
|
523
|
+
'body': JSON[_0x1e26ad(0x13e)]({
|
|
524
|
+
'last_seen_seq': _0x7c0a4d,
|
|
525
|
+
'worker_session_id': _0x3e643
|
|
526
|
+
}),
|
|
527
|
+
'headers': { 'Content-Type': _0x1e26ad(_0x127c06._0x4ab137) },
|
|
528
|
+
'method': _0x1e26ad(0x152)
|
|
529
|
+
});
|
|
530
|
+
if (!_0x48beaa['ok'])
|
|
531
|
+
throw new Error('HTTP\x20' + _0x48beaa[_0x1e26ad(0x8a)]);
|
|
532
|
+
_0x14196b = _0x7c0a4d;
|
|
533
|
+
}
|
|
534
|
+
async function _0x1ddb7f(_0x4f619e) {
|
|
535
|
+
const _0x234f96 = _0x3e8efa, _0x3ade02 = parseTarget(_0x4f619e), _0x300e90 = await _0x4619ed(_0x234f96(_0x1fd5c0._0x5c1ca8) + _0x14b42c['agentId'] + _0x234f96(0x131), {
|
|
536
|
+
'body': JSON[_0x234f96(0x13e)]({ 'target': _0x3ade02[_0x234f96(_0x1fd5c0._0x1a7b0d)] }),
|
|
537
|
+
'headers': _0x570565,
|
|
538
|
+
'method': _0x234f96(_0x1fd5c0._0x522ff0)
|
|
539
|
+
});
|
|
540
|
+
return {
|
|
541
|
+
'channelId': _0x300e90[_0x234f96(_0x1fd5c0._0x1a8aeb)]?.[_0x234f96(_0x1fd5c0._0x14048a)] ?? '',
|
|
542
|
+
'target': _0x3ade02['channelTarget'],
|
|
543
|
+
'task': _0x300e90[_0x234f96(0x16c)]?.[_0x234f96(_0x1fd5c0._0x4dd7a2)],
|
|
544
|
+
'threadId': _0x300e90[_0x234f96(0x16c)]?.[_0x234f96(_0x1fd5c0._0x529a0d)],
|
|
545
|
+
'threadNumber': _0x300e90[_0x234f96(0x16c)]?.[_0x234f96(_0x1fd5c0._0x5ad1a)]
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
async function _0x57faab(_0x2eb0f4 = {}) {
|
|
549
|
+
const _0x9ad3d2 = _0x3e8efa;
|
|
550
|
+
if (!_0x2eb0f4['forceRefresh'] && _0x4d70a9)
|
|
551
|
+
return _0x4d70a9;
|
|
552
|
+
return _0x4d70a9 = (async () => {
|
|
553
|
+
const _0x1ae1f8 = _0x2500, _0x5a24db = await _0x4619ed(_0x1ae1f8(_0x576c8d._0x3021e2) + _0x14b42c[_0x1ae1f8(_0x576c8d._0x5246f7)] + _0x1ae1f8(0x139), {
|
|
554
|
+
'headers': _0x570565,
|
|
555
|
+
'method': 'GET'
|
|
556
|
+
}), _0x3a7ead = _0x5a24db['data']?.[_0x1ae1f8(_0x576c8d._0x59a60d)] ?? [], _0x33e60c = _0x3a7ead['filter'](_0x3f617f => _0x3f617f[_0x1ae1f8(0xd0)]?.[_0x1ae1f8(0x166)] === _0x1ae1f8(0x18c))[_0x1ae1f8(_0x576c8d._0x22f272)](_0x5c9f34 => ({
|
|
557
|
+
'id': _0x348fd2(_0x5c9f34),
|
|
558
|
+
'name': _0x1e5be8(_0x5c9f34)
|
|
559
|
+
}))[_0x1ae1f8(_0x576c8d._0x2c7684)](_0x1f55a1 => _0x1f55a1['id']), _0x2a61c7 = _0x3a7ead[_0x1ae1f8(0xda)](_0x605a3b => _0x605a3b[_0x1ae1f8(0xd0)]?.[_0x1ae1f8(0x166)] !== _0x1ae1f8(0x18c))[_0x1ae1f8(0x127)](_0x173957 => ({
|
|
560
|
+
'id': _0x348fd2(_0x173957),
|
|
561
|
+
'name': _0x1e5be8(_0x173957)
|
|
562
|
+
}))['filter'](_0x3a5f45 => _0x3a5f45['id']), _0xe5672b = _0x5a24db[_0x1ae1f8(0x16c)]?.['server']['id'] ?? '';
|
|
563
|
+
return {
|
|
564
|
+
'agents': _0x33e60c,
|
|
565
|
+
'channels': _0x5a24db[_0x1ae1f8(0x16c)]?.['channels'] ?? [],
|
|
566
|
+
'humans': _0x2a61c7,
|
|
567
|
+
'serverId': _0xe5672b,
|
|
568
|
+
'serverName': _0x5a24db['data']?.[_0x1ae1f8(_0x576c8d._0x3f8d73)][_0x1ae1f8(_0x576c8d._0x198dcf)] ?? _0xe5672b
|
|
569
|
+
};
|
|
570
|
+
})()[_0x9ad3d2(0x18b)](_0x5b0acf => {
|
|
571
|
+
_0x4d70a9 = null;
|
|
572
|
+
throw _0x5b0acf;
|
|
573
|
+
}), _0x4d70a9;
|
|
574
|
+
}
|
|
575
|
+
function _0x3023d7(_0x45b630, _0x98e8f8) {
|
|
576
|
+
const _0x1f2061 = _0x3e8efa;
|
|
577
|
+
return _0x98e8f8['agents'][_0x1f2061(_0x572f72._0x4cc6c7)](_0x10f305 => _0x10f305['id'] === _0x45b630 || _0x10f305[_0x1f2061(0x197)] === _0x45b630) ? _0x1f2061(0x18c) : _0x1f2061(_0x572f72._0x34d798);
|
|
578
|
+
}
|
|
579
|
+
function _0x2b710b(_0x48547c) {
|
|
580
|
+
const _0x185b22 = _0x3e8efa;
|
|
581
|
+
if (_0x48547c[_0x185b22(_0x21eb59._0x54f5f0)] != null)
|
|
582
|
+
return _0x48547c['channelTarget'] + ':t' + _0x48547c[_0x185b22(_0x21eb59._0x24a729)];
|
|
583
|
+
if (_0x48547c[_0x185b22(_0x21eb59._0x3f43ed)])
|
|
584
|
+
return _0x48547c['channelTarget'] + ':' + _0x48547c[_0x185b22(0x13f)];
|
|
585
|
+
if (_0x48547c[_0x185b22(0x109)])
|
|
586
|
+
return _0x48547c['channelTarget'] + ':' + _0x48547c[_0x185b22(0x109)]['slice'](0x0, 0x8);
|
|
587
|
+
return _0x48547c[_0x185b22(_0x21eb59._0x1e590a)];
|
|
588
|
+
}
|
|
589
|
+
function _0x3ad755(_0x23f3ca, _0x224d13) {
|
|
590
|
+
const _0x12ffbc = _0x3e8efa;
|
|
591
|
+
try {
|
|
592
|
+
const _0x5a360f = parseTarget(_0x23f3ca);
|
|
593
|
+
if (_0x5a360f[_0x12ffbc(0x97)] !== _0x12ffbc(_0xb8abd8._0x52d900) || _0x5a360f['channelTarget'] !== _0x224d13['channelTarget'])
|
|
594
|
+
return ![];
|
|
595
|
+
if (_0x224d13[_0x12ffbc(0x95)] != null && _0x5a360f[_0x12ffbc(0x94)] === 't' + _0x224d13[_0x12ffbc(_0xb8abd8._0x3cdac3)])
|
|
596
|
+
return !![];
|
|
597
|
+
if (_0x224d13[_0x12ffbc(0x13f)])
|
|
598
|
+
return _0x5a360f[_0x12ffbc(0x94)] === _0x224d13['rootMessageId'] || _0x224d13[_0x12ffbc(_0xb8abd8._0xce832a)][_0x12ffbc(0x13d)](_0x5a360f[_0x12ffbc(_0xb8abd8._0x5b8a23)]);
|
|
599
|
+
if (_0x224d13[_0x12ffbc(0x109)])
|
|
600
|
+
return _0x5a360f[_0x12ffbc(_0xb8abd8._0x5b8a23)] === _0x224d13[_0x12ffbc(_0xb8abd8._0x7e2e38)] || _0x224d13[_0x12ffbc(_0xb8abd8._0x7e2e38)][_0x12ffbc(_0xb8abd8._0x5b6d5c)](_0x5a360f[_0x12ffbc(0x94)]);
|
|
601
|
+
return ![];
|
|
602
|
+
} catch {
|
|
603
|
+
return ![];
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
function _0x348fd2(_0x1cf9a0) {
|
|
607
|
+
const _0x2a386f = _0x3e8efa;
|
|
608
|
+
return _0x1cf9a0[_0x2a386f(_0xf8ce68._0xff2d17)]?.[_0x2a386f(_0xf8ce68._0x58bdd9)] ?? _0x1cf9a0[_0x2a386f(0xd0)]?.['id'] ?? _0x1cf9a0['participantId'] ?? '';
|
|
609
|
+
}
|
|
610
|
+
function _0x1e5be8(_0x5e01d9) {
|
|
611
|
+
const _0x571372 = _0x3e8efa;
|
|
612
|
+
return _0x5e01d9[_0x571372(_0x18b9ad._0x2e5665)]?.['name'] ?? _0x348fd2(_0x5e01d9);
|
|
613
|
+
}
|
|
614
|
+
async function _0x5be9b3(_0x4f7cba) {
|
|
615
|
+
const _0x170035 = _0x3e8efa, _0x318bdc = Math['min'](_0x4f7cba[_0x170035(0x91)] ?? 0x32, 0x64), _0x40ee52 = await _0x57faab(), _0x13741e = new URLSearchParams();
|
|
616
|
+
_0x13741e[_0x170035(0x1f4)](_0x170035(_0x5852ab._0x5ab254), String(_0x318bdc));
|
|
617
|
+
_0x4f7cba['threadId'] ? (_0x13741e[_0x170035(0x1f4)](_0x170035(_0x5852ab._0x12bdd4), _0x4f7cba['threadId']), _0x13741e[_0x170035(_0x5852ab._0x59e87f)](_0x170035(0xf4), _0x4f7cba['channelId'])) : _0x13741e['set'](_0x170035(0xf4), _0x4f7cba[_0x170035(_0x5852ab._0x27cf99)]);
|
|
618
|
+
_0x4f7cba[_0x170035(0xad)] && _0x13741e[_0x170035(_0x5852ab._0x568a20)]('cursor', String(_0x4f7cba[_0x170035(0xad)]));
|
|
619
|
+
_0x4f7cba[_0x170035(0xca)] !== void 0x0 && _0x13741e['set'](_0x170035(0xca), String(_0x4f7cba[_0x170035(_0x5852ab._0x15dfcb)]));
|
|
620
|
+
const _0x31952f = await _0x4619ed(_0x170035(0x1d2) + _0x14b42c[_0x170035(_0x5852ab._0x116e3a)] + _0x170035(0x17f) + _0x13741e[_0x170035(0x151)](), {
|
|
621
|
+
'headers': _0x570565,
|
|
622
|
+
'method': 'GET'
|
|
623
|
+
}), _0x2f3f22 = (_0x31952f[_0x170035(0x16c)] ?? [])[_0x170035(0x127)](_0x4b9dd3 => ({
|
|
624
|
+
'attachments': (_0x4b9dd3['attachments'] ?? [])['map'](_0x1de753 => ({
|
|
625
|
+
'filename': _0x1de753['filename'] ?? _0x1de753['id'],
|
|
626
|
+
'id': _0x1de753['id']
|
|
627
|
+
})),
|
|
628
|
+
'content': _0x4b9dd3['bodyMarkdown'] ?? '',
|
|
629
|
+
'createdAt': _0x4b9dd3[_0x170035(0x1b1)],
|
|
630
|
+
..._0x4b9dd3[_0x170035(0x97)] && _0x4b9dd3[_0x170035(0x97)] !== _0x170035(0x1fe) ? { 'kind': _0x4b9dd3[_0x170035(0x97)] } : {},
|
|
631
|
+
'messageId': _0x4b9dd3['id'],
|
|
632
|
+
'senderName': _0x4b9dd3[_0x170035(0x146)],
|
|
633
|
+
'senderType': _0x3023d7(_0x4b9dd3[_0x170035(0x146)], _0x40ee52),
|
|
634
|
+
'seq': _0x4b9dd3[_0x170035(0x15b)] ?? 0x0
|
|
635
|
+
}));
|
|
636
|
+
return {
|
|
637
|
+
'channel': _0x4f7cba['channelTarget'],
|
|
638
|
+
'hasMore': _0x31952f[_0x170035(0x179)]?.[_0x170035(_0x5852ab._0x274197)] ?? ![],
|
|
639
|
+
'messages': _0x2f3f22,
|
|
640
|
+
'nextCursor': _0x31952f[_0x170035(_0x5852ab._0x1845fd)]?.[_0x170035(0x149)]
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
return {
|
|
644
|
+
async 'sendMessage'(_0x2a246c) {
|
|
645
|
+
const _0x5b1dea = _0x3e8efa, _0xca8ce5 = await _0x1ddb7f(_0x2a246c[_0x5b1dea(0x98)]), _0x56f6af = _0x2a246c['content'][_0x5b1dea(_0x32ef49._0x2ef421)]('@') ? extractMentionedParticipantIds(_0x2a246c['content'], await _0x57faab()) : [], _0x34f1ca = await _0x4619ed(_0x5b1dea(_0x32ef49._0x5143a3) + _0x14b42c['agentId'] + _0x5b1dea(_0x32ef49._0x25c25f), {
|
|
646
|
+
'body': JSON[_0x5b1dea(_0x32ef49._0x1d632b)]({
|
|
647
|
+
'attachment_ids': _0x2a246c[_0x5b1dea(_0x32ef49._0x5e9bc9)],
|
|
648
|
+
'bodyMarkdown': _0x2a246c[_0x5b1dea(_0x32ef49._0x1ed1ca)],
|
|
649
|
+
'channelId': _0xca8ce5[_0x5b1dea(_0x32ef49._0x56fcdc)],
|
|
650
|
+
..._0x56f6af['length'] > 0x0 ? { 'mentionedParticipantIds': _0x56f6af } : {},
|
|
651
|
+
'threadId': _0xca8ce5['threadId'],
|
|
652
|
+
..._0x2a246c[_0x5b1dea(_0x32ef49._0x5a04d4)] ? { 'visibility': _0x2a246c[_0x5b1dea(0xc9)] } : {}
|
|
653
|
+
}),
|
|
654
|
+
'headers': _0x570565,
|
|
655
|
+
'method': _0x5b1dea(_0x32ef49._0x1636e0)
|
|
656
|
+
});
|
|
657
|
+
return { 'messageId': _0x34f1ca[_0x5b1dea(0x16c)]?.['id'] ?? '' };
|
|
658
|
+
},
|
|
659
|
+
async 'listSchedules'() {
|
|
660
|
+
const _0x3c8157 = _0x3e8efa, _0x286d94 = await _0x4619ed(_0x3c8157(0x93), {
|
|
661
|
+
'headers': _0x570565,
|
|
662
|
+
'method': _0x3c8157(0x200)
|
|
663
|
+
});
|
|
664
|
+
return _0x286d94['data'] ?? [];
|
|
665
|
+
},
|
|
666
|
+
async 'claimScheduleRun'(_0x46430d) {
|
|
667
|
+
const _0x3e3445 = _0x3e8efa, _0x1c2d51 = await _0x4619ed(_0x3e3445(0x113), {
|
|
668
|
+
'body': JSON[_0x3e3445(_0x49156f._0x6e0810)](_0x46430d),
|
|
669
|
+
'headers': _0x570565,
|
|
670
|
+
'method': _0x3e3445(0x152)
|
|
671
|
+
});
|
|
672
|
+
return _0x1c2d51[_0x3e3445(0x16c)] ?? {
|
|
673
|
+
'granted': ![],
|
|
674
|
+
'runId': null,
|
|
675
|
+
'schedule': null,
|
|
676
|
+
'scheduledFor': _0x46430d[_0x3e3445(_0x49156f._0x3a5ecc)]
|
|
677
|
+
};
|
|
678
|
+
},
|
|
679
|
+
async 'startScheduleRun'(_0x2df0fe) {
|
|
680
|
+
const _0x11c640 = _0x3e8efa, _0x53357f = await _0x4619ed(_0x11c640(_0xed79dc._0x5982cd) + encodeURIComponent(_0x2df0fe['runId']) + _0x11c640(0x18d), {
|
|
681
|
+
'body': JSON[_0x11c640(_0xed79dc._0x12a383)]({}),
|
|
682
|
+
'headers': _0x570565,
|
|
683
|
+
'method': _0x11c640(0x152)
|
|
684
|
+
});
|
|
685
|
+
return _0x53357f[_0x11c640(_0xed79dc._0x2c97c7)] ?? {
|
|
686
|
+
'claimedByDaemonId': '',
|
|
687
|
+
'id': _0x2df0fe[_0x11c640(_0xed79dc._0x570a96)],
|
|
688
|
+
'scheduleId': '',
|
|
689
|
+
'status': _0x11c640(0x1fa)
|
|
690
|
+
};
|
|
691
|
+
},
|
|
692
|
+
async 'finishScheduleRun'(_0x50df21) {
|
|
693
|
+
const _0x4b264b = _0x3e8efa, _0x5879f8 = await _0x4619ed(_0x4b264b(0x133) + encodeURIComponent(_0x50df21['runId']) + _0x4b264b(_0x2e4f88._0x284126), {
|
|
694
|
+
'body': JSON['stringify']({
|
|
695
|
+
'error': _0x50df21[_0x4b264b(0xa1)],
|
|
696
|
+
'resultJson': _0x50df21[_0x4b264b(0x1a4)],
|
|
697
|
+
'status': _0x50df21[_0x4b264b(0x8a)]
|
|
698
|
+
}),
|
|
699
|
+
'headers': _0x570565,
|
|
700
|
+
'method': _0x4b264b(_0x2e4f88._0x4d3993)
|
|
701
|
+
});
|
|
702
|
+
return _0x5879f8['data'] ?? {
|
|
703
|
+
'nextRunAt': null,
|
|
704
|
+
'run': {
|
|
705
|
+
'claimedByDaemonId': '',
|
|
706
|
+
'id': _0x50df21[_0x4b264b(_0x2e4f88._0x4b89ee)],
|
|
707
|
+
'scheduleId': '',
|
|
708
|
+
'status': _0x50df21[_0x4b264b(_0x2e4f88._0x5e4e63)]
|
|
709
|
+
}
|
|
710
|
+
};
|
|
711
|
+
},
|
|
712
|
+
async 'listTasks'(_0x8a35ab) {
|
|
713
|
+
const _0x173d8d = _0x3e8efa, _0x52faae = new URLSearchParams();
|
|
714
|
+
return _0x52faae[_0x173d8d(0x1f4)](_0x173d8d(0xb6), _0x8a35ab[_0x173d8d(_0x3c46f8._0x21eea5)]), _0x8a35ab[_0x173d8d(_0x3c46f8._0x42c8b3)] && _0x52faae['set']('status', _0x8a35ab[_0x173d8d(0x8a)]), _0x55c367(_0x173d8d(_0x3c46f8._0x39b475) + _0x14b42c['agentId'] + _0x173d8d(_0x3c46f8._0x3d9c71) + _0x52faae[_0x173d8d(0x151)](), {
|
|
715
|
+
'headers': _0x570565,
|
|
716
|
+
'method': _0x173d8d(_0x3c46f8._0x277a23)
|
|
717
|
+
});
|
|
718
|
+
},
|
|
719
|
+
async 'createTasks'(_0x53c9af) {
|
|
720
|
+
const _0x337235 = _0x3e8efa;
|
|
721
|
+
return _0x55c367(_0x337235(0x1d2) + _0x14b42c['agentId'] + '/tasks', {
|
|
722
|
+
'body': JSON[_0x337235(0x13e)]({
|
|
723
|
+
..._0x53c9af,
|
|
724
|
+
'idempotency_key': _0x12f98f(_0x337235(0x1e4), _0x53c9af)
|
|
725
|
+
}),
|
|
726
|
+
'headers': _0x570565,
|
|
727
|
+
'method': 'POST'
|
|
728
|
+
});
|
|
729
|
+
},
|
|
730
|
+
async 'claimTasks'(_0x5a021e) {
|
|
731
|
+
const _0x3d6309 = _0x3e8efa;
|
|
732
|
+
return _0x55c367('/internal/agent/' + _0x14b42c[_0x3d6309(0x123)] + _0x3d6309(0x1cd), {
|
|
733
|
+
'body': JSON[_0x3d6309(0x13e)]({
|
|
734
|
+
..._0x5a021e,
|
|
735
|
+
'idempotency_key': _0x12f98f(_0x3d6309(0xb8), _0x5a021e)
|
|
736
|
+
}),
|
|
737
|
+
'headers': _0x570565,
|
|
738
|
+
'method': _0x3d6309(0x152)
|
|
739
|
+
});
|
|
740
|
+
},
|
|
741
|
+
async 'unclaimTask'(_0x54e7da) {
|
|
742
|
+
const _0x330824 = _0x3e8efa;
|
|
743
|
+
return _0x55c367(_0x330824(0x1d2) + _0x14b42c['agentId'] + _0x330824(0x1e6), {
|
|
744
|
+
'body': JSON[_0x330824(0x13e)]({
|
|
745
|
+
..._0x54e7da,
|
|
746
|
+
'idempotency_key': _0x12f98f(_0x330824(0x10d), _0x54e7da)
|
|
747
|
+
}),
|
|
748
|
+
'headers': _0x570565,
|
|
749
|
+
'method': _0x330824(0x152)
|
|
750
|
+
});
|
|
751
|
+
},
|
|
752
|
+
async 'updateTaskStatus'(_0x39790f) {
|
|
753
|
+
const _0x539292 = _0x3e8efa;
|
|
754
|
+
return _0x55c367('/internal/agent/' + _0x14b42c['agentId'] + _0x539292(0x1ea), {
|
|
755
|
+
'body': JSON['stringify']({
|
|
756
|
+
..._0x39790f,
|
|
757
|
+
'idempotency_key': _0x12f98f(_0x539292(0x176), _0x39790f)
|
|
758
|
+
}),
|
|
759
|
+
'headers': _0x570565,
|
|
760
|
+
'method': 'POST'
|
|
761
|
+
});
|
|
762
|
+
},
|
|
763
|
+
async 'uploadFile'(_0x2c44fe) {
|
|
764
|
+
const _0x368d96 = _0x3e8efa, _0x19974c = await _0x1ddb7f(_0x2c44fe[_0x368d96(_0x424b11._0x29adc5)]);
|
|
765
|
+
if (_0x19974c[_0x368d96(_0x424b11._0x4acf28)])
|
|
766
|
+
throw new Error(_0x368d96(_0x424b11._0x2d9fa7));
|
|
767
|
+
const _0x3411e1 = await _0x4619ed(_0x368d96(0x1d2) + _0x14b42c['agentId'] + '/upload', {
|
|
768
|
+
'body': JSON[_0x368d96(0x13e)]({
|
|
769
|
+
'channel': _0x19974c[_0x368d96(_0x424b11._0x489e32)],
|
|
770
|
+
'contentBase64': _0x2c44fe['contentBase64'],
|
|
771
|
+
'contentType': _0x2c44fe[_0x368d96(0x186)],
|
|
772
|
+
'originalFilename': _0x2c44fe[_0x368d96(_0x424b11._0x515a79)]
|
|
773
|
+
}),
|
|
774
|
+
'headers': _0x570565,
|
|
775
|
+
'method': _0x368d96(_0x424b11._0x179f4e)
|
|
776
|
+
});
|
|
777
|
+
return {
|
|
778
|
+
'attachmentId': _0x3411e1[_0x368d96(0x16c)]?.['id'] ?? '',
|
|
779
|
+
'filename': _0x3411e1['data']?.[_0x368d96(0x126)] ?? _0x2c44fe[_0x368d96(_0x424b11._0x515a79)],
|
|
780
|
+
'sizeBytes': _0x3411e1['data']?.['sizeBytes'] ?? 0x0
|
|
781
|
+
};
|
|
782
|
+
},
|
|
783
|
+
async 'downloadAttachment'(_0x1306ed) {
|
|
784
|
+
const _0x20ca01 = _0x3e8efa, _0x207dcd = await _0x4619ed(_0x20ca01(_0x3a5a18._0x25c6da) + _0x1306ed, {
|
|
785
|
+
'headers': _0x570565,
|
|
786
|
+
'method': _0x20ca01(_0x3a5a18._0x5c3c85)
|
|
787
|
+
}), _0x4abe6f = new AbortController(), _0xac756b = setTimeout(() => _0x4abe6f[_0x20ca01(0x10a)](), _0x286701);
|
|
788
|
+
try {
|
|
789
|
+
const _0xab9903 = await _0x58106a(_0x362b22 + _0x20ca01(0x1b6) + _0x1306ed + '/content', {
|
|
790
|
+
'headers': _0x570565,
|
|
791
|
+
'method': _0x20ca01(_0x3a5a18._0x5c3c85),
|
|
792
|
+
'signal': _0x4abe6f[_0x20ca01(0x92)]
|
|
793
|
+
});
|
|
794
|
+
if (!_0xab9903['ok'])
|
|
795
|
+
throw new Error(_0x20ca01(0xe5) + _0xab9903[_0x20ca01(0x8a)]);
|
|
796
|
+
return {
|
|
797
|
+
'contentType': _0x207dcd['data']?.[_0x20ca01(0x186)] ?? _0xab9903[_0x20ca01(0x1b7)][_0x20ca01(_0x3a5a18._0x441831)](_0x20ca01(_0x3a5a18._0x514c81)) ?? 'application/octet-stream',
|
|
798
|
+
'data': Buffer['from'](await _0xab9903[_0x20ca01(0xb9)]()),
|
|
799
|
+
'originalFilename': _0x207dcd[_0x20ca01(0x16c)]?.[_0x20ca01(_0x3a5a18._0x5d03f0)]
|
|
800
|
+
};
|
|
801
|
+
} finally {
|
|
802
|
+
clearTimeout(_0xac756b);
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
async 'listServer'() {
|
|
806
|
+
return _0x57faab({ 'forceRefresh': !![] });
|
|
807
|
+
},
|
|
808
|
+
async 'readHistory'(_0x6bf789) {
|
|
809
|
+
const _0x2c2dac = _0x3e8efa, _0x153c4d = await _0x1ddb7f(_0x6bf789[_0x2c2dac(_0x2c8cb1._0x2210f4)]);
|
|
810
|
+
return _0x5be9b3({
|
|
811
|
+
'after': _0x6bf789[_0x2c2dac(0xca)],
|
|
812
|
+
'before': _0x6bf789[_0x2c2dac(0xad)],
|
|
813
|
+
'channelId': _0x153c4d['channelId'],
|
|
814
|
+
'channelTarget': _0x153c4d[_0x2c2dac(0x98)],
|
|
815
|
+
'limit': _0x6bf789[_0x2c2dac(_0x2c8cb1._0x356e30)],
|
|
816
|
+
'threadId': _0x153c4d[_0x2c2dac(_0x2c8cb1._0x377995)]
|
|
817
|
+
});
|
|
818
|
+
},
|
|
819
|
+
'resolveTarget': _0x1ddb7f,
|
|
820
|
+
async 'checkMessages'() {
|
|
821
|
+
const _0x47c9df = _0x3e8efa, _0x3a8d20 = new URLSearchParams();
|
|
822
|
+
_0x3a8d20[_0x47c9df(0x1f4)]('afterSeq', String(_0x19bed3));
|
|
823
|
+
const _0x44b108 = _0x3a8d20[_0x47c9df(_0x3e8dae._0xcadf1e)](), _0x45abc7 = await _0x4619ed(_0x47c9df(0x1d2) + _0x14b42c['agentId'] + _0x47c9df(0xf8) + (_0x44b108 ? '?' + _0x44b108 : ''), {
|
|
824
|
+
'headers': _0x570565,
|
|
825
|
+
'method': _0x47c9df(_0x3e8dae._0x27b4ba)
|
|
826
|
+
}), _0x15c8bb = _0x45abc7[_0x47c9df(_0x3e8dae._0x2de6df)] ?? [], _0x2a1369 = _0x45abc7[_0x47c9df(_0x3e8dae._0x417f0f)]?.['cursor'], _0x190fe3 = _0x2a1369 !== void 0x0 ? Math[_0x47c9df(0x1c5)](_0x19bed3, _0x2a1369) : _0x15c8bb['length'] > 0x0 ? Math[_0x47c9df(_0x3e8dae._0x3144db)](_0x19bed3, _0x15c8bb[_0x15c8bb['length'] - 0x1][_0x47c9df(0x11f)]) : _0x19bed3, _0x4cb13d = _0x15c8bb[_0x47c9df(0xda)](_0x415804 => _0x415804[_0x47c9df(0x1fc)] === 'message'), _0x2afe25 = _0x38e665 === void 0x0 && _0x51144d;
|
|
827
|
+
let _0x41e81f = await _0x57faab(), _0x27a48b = new Map(_0x41e81f[_0x47c9df(0xd7)]['map'](_0x339c02 => [
|
|
828
|
+
_0x339c02['id'],
|
|
829
|
+
_0x339c02
|
|
830
|
+
]));
|
|
831
|
+
const _0x27d841 = _0x4cb13d[_0x47c9df(0x1e0)](_0x468592 => {
|
|
832
|
+
const _0x51c7d6 = _0x47c9df, _0x580dff = asRecord(_0x468592['payloadJson']), _0x4a2f5e = typeof _0x580dff?.[_0x51c7d6(0xf4)] === _0x51c7d6(0x1f7) ? _0x580dff['channelId'] : '';
|
|
833
|
+
return Boolean(_0x4a2f5e) && !_0x27a48b[_0x51c7d6(_0x318d96._0x5f23d3)](_0x4a2f5e);
|
|
834
|
+
});
|
|
835
|
+
_0x27d841 && (_0x41e81f = await _0x57faab({ 'forceRefresh': !![] }), _0x27a48b = new Map(_0x41e81f['channels'][_0x47c9df(0x127)](_0x394b70 => [
|
|
836
|
+
_0x394b70['id'],
|
|
837
|
+
_0x394b70
|
|
838
|
+
])));
|
|
839
|
+
const _0x1b57a4 = new Map();
|
|
840
|
+
for (const _0x367ca7 of _0x4cb13d) {
|
|
841
|
+
const _0x1dac91 = asRecord(_0x367ca7[_0x47c9df(_0x3e8dae._0x61be00)]), _0x1626c1 = typeof _0x1dac91['channelId'] === _0x47c9df(0x1f7) ? _0x1dac91[_0x47c9df(_0x3e8dae._0x4a61f5)] : '';
|
|
842
|
+
if (!_0x1626c1)
|
|
843
|
+
continue;
|
|
844
|
+
const _0x4fa8b1 = typeof _0x1dac91[_0x47c9df(_0x3e8dae._0x3ef41a)] === 'string' ? _0x1dac91[_0x47c9df(_0x3e8dae._0x48dc62)] : void 0x0, _0x130716 = typeof _0x1dac91[_0x47c9df(_0x3e8dae._0x4a0d71)] === 'string' ? _0x1dac91['rootMessageId'] : void 0x0, _0x288cb4 = typeof _0x1dac91[_0x47c9df(0x95)] === _0x47c9df(_0x3e8dae._0xbc3638) && Number['isInteger'](_0x1dac91[_0x47c9df(_0x3e8dae._0x5d89a8)]) ? _0x1dac91[_0x47c9df(0x95)] : void 0x0, _0x2fd113 = Boolean(_0x4fa8b1 && (!_0x130716 || _0x367ca7[_0x47c9df(_0x3e8dae._0x1a4d80)] !== _0x130716)), _0x516e95 = _0x2fd113 ? _0x1626c1 + ':' + _0x4fa8b1 : _0x1626c1, _0x506cd3 = _0x1b57a4['get'](_0x516e95) ?? {
|
|
845
|
+
'aggregateIds': [],
|
|
846
|
+
'channelId': _0x1626c1,
|
|
847
|
+
'entries': new Map(),
|
|
848
|
+
'isThreadReply': _0x2fd113,
|
|
849
|
+
'rootMessageId': _0x130716,
|
|
850
|
+
'threadNumber': _0x288cb4,
|
|
851
|
+
'threadId': _0x2fd113 ? _0x4fa8b1 : void 0x0
|
|
852
|
+
};
|
|
853
|
+
_0x506cd3[_0x47c9df(0x95)] == null && _0x288cb4 != null && (_0x506cd3[_0x47c9df(_0x3e8dae._0x8022ce)] = _0x288cb4), !_0x506cd3[_0x47c9df(_0x3e8dae._0x4a0d71)] && _0x130716 && (_0x506cd3[_0x47c9df(0x13f)] = _0x130716), _0x506cd3['aggregateIds'][_0x47c9df(_0x3e8dae._0x435ec0)](_0x367ca7[_0x47c9df(0x173)]), _0x506cd3[_0x47c9df(0x9c)][_0x47c9df(_0x3e8dae._0x4adc8a)](_0x367ca7[_0x47c9df(_0x3e8dae._0x37d33e)], {
|
|
854
|
+
'payloadJson': _0x367ca7[_0x47c9df(_0x3e8dae._0x61be00)],
|
|
855
|
+
'seq': _0x367ca7[_0x47c9df(_0x3e8dae._0x376a1d)]
|
|
856
|
+
}), _0x1b57a4['set'](_0x516e95, _0x506cd3);
|
|
857
|
+
}
|
|
858
|
+
const _0x5973a9 = [];
|
|
859
|
+
for (const _0x2503ee of _0x1b57a4[_0x47c9df(0x16b)]()) {
|
|
860
|
+
const {
|
|
861
|
+
channelId: _0x39bbe7,
|
|
862
|
+
threadId: _0x4b438d,
|
|
863
|
+
rootMessageId: _0x263166,
|
|
864
|
+
threadNumber: _0x3c924e,
|
|
865
|
+
aggregateIds: _0x3642eb,
|
|
866
|
+
isThreadReply: _0x43ddbd,
|
|
867
|
+
entries: _0x30e7c0
|
|
868
|
+
} = _0x2503ee, _0x39b82a = _0x27a48b['get'](_0x39bbe7), _0xc1fa71 = _0x39b82a?.[_0x47c9df(0x197)] ?? _0x39bbe7, _0x46517d = _0x39b82a?.[_0x47c9df(_0x3e8dae._0x2ced86)] === 'dm' ? _0x47c9df(_0x3e8dae._0x20c1fd) + _0xc1fa71 : '#' + _0xc1fa71, _0x192ecf = {
|
|
869
|
+
'channelTarget': _0x46517d,
|
|
870
|
+
'rootMessageId': _0x263166,
|
|
871
|
+
'threadId': _0x4b438d,
|
|
872
|
+
'threadNumber': _0x3c924e
|
|
873
|
+
}, _0x53458c = await _0x5be9b3({
|
|
874
|
+
'channelId': _0x39bbe7,
|
|
875
|
+
'channelTarget': _0x46517d,
|
|
876
|
+
'limit': Math['max'](_0x3642eb[_0x47c9df(0xf2)], 0x32),
|
|
877
|
+
'threadId': _0x4b438d
|
|
878
|
+
}), _0x1dc88b = new Map(_0x53458c[_0x47c9df(0x10b)][_0x47c9df(_0x3e8dae._0x440647)](_0x1b3db2 => [
|
|
879
|
+
_0x1b3db2[_0x47c9df(0x141)],
|
|
880
|
+
_0x1b3db2
|
|
881
|
+
])), _0x492f6b = _0x4b438d ? _0x2b710b(_0x192ecf) : _0x46517d, _0x1d49a4 = _0x38e665 ? _0x43ddbd && _0x3ad755(_0x38e665, _0x192ecf) : !![], _0x2c3fb3 = _0x43ddbd ? _0x1d49a4 && _0x38e665 ? _0x38e665 : _0x492f6b : _0x46517d;
|
|
882
|
+
for (const _0x1a613b of _0x3642eb) {
|
|
883
|
+
if (!_0x1d49a4)
|
|
884
|
+
continue;
|
|
885
|
+
const _0x5eea42 = _0x30e7c0['get'](_0x1a613b), _0x394821 = _0x5eea42 ? asRecord(_0x5eea42[_0x47c9df(_0x3e8dae._0x61be00)]) : void 0x0, _0x208dab = _0x394821?.['taskDeliveryMode'] === _0x47c9df(_0x3e8dae._0x10e2c1);
|
|
886
|
+
if (_0x2afe25 && _0x208dab)
|
|
887
|
+
continue;
|
|
888
|
+
const _0x58b274 = _0x1dc88b[_0x47c9df(_0x3e8dae._0x393e6b)](_0x1a613b);
|
|
889
|
+
if (_0x58b274) {
|
|
890
|
+
_0x5973a9[_0x47c9df(_0x3e8dae._0x435ec0)]({
|
|
891
|
+
'attachments': _0x58b274['attachments'],
|
|
892
|
+
'content': _0x58b274[_0x47c9df(_0x3e8dae._0xcf5bb2)],
|
|
893
|
+
'createdAt': _0x58b274[_0x47c9df(0x1b1)],
|
|
894
|
+
..._0x58b274[_0x47c9df(0x97)] ? { 'kind': _0x58b274[_0x47c9df(_0x3e8dae._0x586d46)] } : {},
|
|
895
|
+
'messageId': _0x58b274['messageId'],
|
|
896
|
+
'senderName': _0x58b274[_0x47c9df(_0x3e8dae._0x292bd5)],
|
|
897
|
+
'senderType': _0x58b274[_0x47c9df(0x118)],
|
|
898
|
+
'target': _0x2c3fb3,
|
|
899
|
+
..._0x208dab ? { 'targetedTask': !![] } : {}
|
|
900
|
+
});
|
|
901
|
+
continue;
|
|
902
|
+
}
|
|
903
|
+
if (_0x5eea42) {
|
|
904
|
+
const _0x3080c3 = typeof _0x394821?.['senderParticipantId'] === _0x47c9df(_0x3e8dae._0x260fef) ? _0x394821['senderParticipantId'] : '', _0xdb1b71 = typeof _0x394821?.['bodyMarkdown'] === _0x47c9df(0x1f7) ? _0x394821['bodyMarkdown'] : '', _0x5d8fc6 = typeof _0x394821?.['kind'] === _0x47c9df(0x1f7) && _0x394821[_0x47c9df(0x97)] !== 'chat' ? _0x394821[_0x47c9df(0x97)] : void 0x0;
|
|
905
|
+
_0x3080c3 && _0xdb1b71 && _0x5973a9['push']({
|
|
906
|
+
'attachments': [],
|
|
907
|
+
'content': _0xdb1b71,
|
|
908
|
+
'createdAt': new Date()[_0x47c9df(0x106)](),
|
|
909
|
+
..._0x5d8fc6 ? { 'kind': _0x5d8fc6 } : {},
|
|
910
|
+
'messageId': _0x1a613b,
|
|
911
|
+
'senderName': _0x3080c3,
|
|
912
|
+
'senderType': _0x3023d7(_0x3080c3, _0x41e81f),
|
|
913
|
+
'target': _0x2c3fb3,
|
|
914
|
+
..._0x208dab ? { 'targetedTask': !![] } : {}
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
if (_0x190fe3 > 0x0) {
|
|
920
|
+
if (_0x59ed0e)
|
|
921
|
+
await _0x208b1c(_0x190fe3);
|
|
922
|
+
else
|
|
923
|
+
_0x3e643 && await _0x1d5199(_0x190fe3);
|
|
924
|
+
}
|
|
925
|
+
return _0x190fe3 > _0x19bed3 && (_0x19bed3 = _0x190fe3), { 'messages': _0x38e665 ? _0x5973a9 : _0x2afe25 ? _0x5973a9[_0x47c9df(0xda)](_0x5dbe88 => _0x5dbe88[_0x47c9df(0x183)] !== !![]) : _0x5973a9 };
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
function toLocalTime(_0x4cf0f6) {
|
|
930
|
+
const _0x1d1fb6 = {
|
|
931
|
+
_0x374148: 0xd8,
|
|
932
|
+
_0x375aee: 0x148,
|
|
933
|
+
_0x4fbeac: 0x11d,
|
|
934
|
+
_0x1a592e: 0xa3,
|
|
935
|
+
_0x33a7fc: 0x8f
|
|
936
|
+
}, _0x5a601f = _0x39cf13, _0x85c405 = new Date(_0x4cf0f6);
|
|
937
|
+
if (Number[_0x5a601f(_0x1d1fb6._0x374148)](_0x85c405[_0x5a601f(0xc2)]()))
|
|
938
|
+
return _0x4cf0f6;
|
|
939
|
+
const _0x4f3c81 = _0x59e16a => String(_0x59e16a)[_0x5a601f(0xe7)](0x2, '0');
|
|
940
|
+
return _0x85c405[_0x5a601f(_0x1d1fb6._0x375aee)]() + '-' + _0x4f3c81(_0x85c405[_0x5a601f(_0x1d1fb6._0x4fbeac)]() + 0x1) + '-' + _0x4f3c81(_0x85c405[_0x5a601f(_0x1d1fb6._0x1a592e)]()) + '\x20' + _0x4f3c81(_0x85c405['getHours']()) + ':' + _0x4f3c81(_0x85c405['getMinutes']()) + ':' + _0x4f3c81(_0x85c405[_0x5a601f(_0x1d1fb6._0x33a7fc)]());
|
|
941
|
+
}
|
|
942
|
+
function formatAttachmentSuffix(_0x585a8a) {
|
|
943
|
+
const _0x4c80d3 = {
|
|
944
|
+
_0xade16f: 0xf2,
|
|
945
|
+
_0x4ac60a: 0x127
|
|
946
|
+
}, _0x241245 = _0x39cf13;
|
|
947
|
+
if (!_0x585a8a || _0x585a8a['length'] === 0x0)
|
|
948
|
+
return '';
|
|
949
|
+
return '\x20[' + _0x585a8a[_0x241245(_0x4c80d3._0xade16f)] + '\x20attachment' + (_0x585a8a['length'] > 0x1 ? 's' : '') + ':\x20' + _0x585a8a[_0x241245(_0x4c80d3._0x4ac60a)](_0x516dd8 => _0x516dd8[_0x241245(0xe0)] + _0x241245(0xc8) + _0x516dd8['id'] + ')')[_0x241245(0x1e3)](',\x20') + _0x241245(0x185);
|
|
950
|
+
}
|
|
951
|
+
function _0x2500(_0x453dc5, _0x229e44) {
|
|
952
|
+
_0x453dc5 = _0x453dc5 - 0x84;
|
|
953
|
+
const _0x16d5a9 = _0x16d5();
|
|
954
|
+
let _0x250013 = _0x16d5a9[_0x453dc5];
|
|
955
|
+
if (_0x2500['pgoIjc'] === undefined) {
|
|
956
|
+
var _0x446e53 = function (_0x36137a) {
|
|
957
|
+
const _0x4c5f9e = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
958
|
+
let _0x58419c = '', _0x391eb6 = '';
|
|
959
|
+
for (let _0x35b986 = 0x0, _0x11cdea, _0x43047b, _0x31a9fb = 0x0; _0x43047b = _0x36137a['charAt'](_0x31a9fb++); ~_0x43047b && (_0x11cdea = _0x35b986 % 0x4 ? _0x11cdea * 0x40 + _0x43047b : _0x43047b, _0x35b986++ % 0x4) ? _0x58419c += String['fromCharCode'](0xff & _0x11cdea >> (-0x2 * _0x35b986 & 0x6)) : 0x0) {
|
|
960
|
+
_0x43047b = _0x4c5f9e['indexOf'](_0x43047b);
|
|
961
|
+
}
|
|
962
|
+
for (let _0x4cb6a8 = 0x0, _0x519093 = _0x58419c['length']; _0x4cb6a8 < _0x519093; _0x4cb6a8++) {
|
|
963
|
+
_0x391eb6 += '%' + ('00' + _0x58419c['charCodeAt'](_0x4cb6a8)['toString'](0x10))['slice'](-0x2);
|
|
964
|
+
}
|
|
965
|
+
return decodeURIComponent(_0x391eb6);
|
|
966
|
+
};
|
|
967
|
+
_0x2500['btalUN'] = _0x446e53, _0x2500['nwKmsR'] = {}, _0x2500['pgoIjc'] = !![];
|
|
968
|
+
}
|
|
969
|
+
const _0x1b2b68 = _0x16d5a9[0x0], _0x4c5207 = _0x453dc5 + _0x1b2b68, _0x349154 = _0x2500['nwKmsR'][_0x4c5207];
|
|
970
|
+
return !_0x349154 ? (_0x250013 = _0x2500['btalUN'](_0x250013), _0x2500['nwKmsR'][_0x4c5207] = _0x250013) : _0x250013 = _0x349154, _0x250013;
|
|
971
|
+
}
|
|
972
|
+
function formatCheckMessages(_0x15fbb2) {
|
|
973
|
+
const _0x1fc1c6 = { _0x42c2b2: 0x17b }, _0xce969f = {
|
|
974
|
+
_0x4e0329: 0x1fe,
|
|
975
|
+
_0x4debd2: 0x97,
|
|
976
|
+
_0x401fea: 0x107,
|
|
977
|
+
_0x5bc83d: 0x98,
|
|
978
|
+
_0x45734f: 0xf3,
|
|
979
|
+
_0x37ca6f: 0x141,
|
|
980
|
+
_0x110789: 0x14d,
|
|
981
|
+
_0x510525: 0x11b
|
|
982
|
+
}, _0x4f0bd5 = _0x39cf13;
|
|
983
|
+
if (_0x15fbb2[_0x4f0bd5(0xf2)] === 0x0)
|
|
984
|
+
return _0x4f0bd5(_0x1fc1c6._0x42c2b2);
|
|
985
|
+
return _0x15fbb2['map'](_0xffe0a8 => {
|
|
986
|
+
const _0x2b2a44 = _0x4f0bd5, _0x2102d7 = _0xffe0a8[_0x2b2a44(0x118)] === _0x2b2a44(0x18c) ? _0x2b2a44(0x1d3) : '', _0x26d7e4 = _0xffe0a8['kind'] && _0xffe0a8['kind'] !== _0x2b2a44(_0xce969f._0x4e0329) ? '\x20kind=' + _0xffe0a8[_0x2b2a44(_0xce969f._0x4debd2)] : '';
|
|
987
|
+
return _0x2b2a44(_0xce969f._0x401fea) + _0xffe0a8[_0x2b2a44(_0xce969f._0x5bc83d)] + _0x2b2a44(_0xce969f._0x45734f) + _0xffe0a8[_0x2b2a44(_0xce969f._0x37ca6f)]['slice'](0x0, 0x8) + _0x2b2a44(_0xce969f._0x110789) + toLocalTime(_0xffe0a8['createdAt']) + _0x2102d7 + _0x26d7e4 + _0x2b2a44(_0xce969f._0x510525) + _0xffe0a8['senderName'] + ':\x20' + _0xffe0a8[_0x2b2a44(0x1f6)] + formatAttachmentSuffix(_0xffe0a8[_0x2b2a44(0x206)]);
|
|
988
|
+
})['join']('\x0a');
|
|
989
|
+
}
|
|
990
|
+
function formatHistory(_0x41d51d) {
|
|
991
|
+
const _0x263a11 = {
|
|
992
|
+
_0x269dc2: 0x10b,
|
|
993
|
+
_0x510ca9: 0x1ad,
|
|
994
|
+
_0x3a0591: 0x1a7,
|
|
995
|
+
_0x500541: 0x18a,
|
|
996
|
+
_0x47d580: 0x1ef,
|
|
997
|
+
_0x144fde: 0xf2
|
|
998
|
+
}, _0x3a367a = {
|
|
999
|
+
_0x236871: 0x18c,
|
|
1000
|
+
_0x213534: 0x1d3,
|
|
1001
|
+
_0x17cb2d: 0x97,
|
|
1002
|
+
_0xcbbd59: 0xf3,
|
|
1003
|
+
_0x4d2b01: 0x14d,
|
|
1004
|
+
_0x2ea376: 0x11b,
|
|
1005
|
+
_0x1db00b: 0x1f6
|
|
1006
|
+
}, _0x473484 = _0x39cf13;
|
|
1007
|
+
if (_0x41d51d[_0x473484(_0x263a11._0x269dc2)][_0x473484(0xf2)] === 0x0)
|
|
1008
|
+
return _0x473484(_0x263a11._0x510ca9) + _0x41d51d['channel'] + _0x473484(0xc1);
|
|
1009
|
+
const _0x38ed11 = _0x41d51d[_0x473484(0x10b)][_0x473484(0x127)](_0x5ec4d1 => {
|
|
1010
|
+
const _0x2548bf = _0x473484, _0x6534b4 = _0x5ec4d1[_0x2548bf(0x118)] === _0x2548bf(_0x3a367a._0x236871) ? _0x2548bf(_0x3a367a._0x213534) : '', _0xee8556 = _0x5ec4d1[_0x2548bf(0x97)] && _0x5ec4d1[_0x2548bf(_0x3a367a._0x17cb2d)] !== 'chat' ? _0x2548bf(0x144) + _0x5ec4d1[_0x2548bf(_0x3a367a._0x17cb2d)] : '';
|
|
1011
|
+
return _0x2548bf(0x16f) + _0x5ec4d1[_0x2548bf(0x11f)] + _0x2548bf(_0x3a367a._0xcbbd59) + _0x5ec4d1[_0x2548bf(0x141)] + _0x2548bf(_0x3a367a._0x4d2b01) + toLocalTime(_0x5ec4d1[_0x2548bf(0x1b1)]) + _0x6534b4 + _0xee8556 + _0x2548bf(_0x3a367a._0x2ea376) + _0x5ec4d1[_0x2548bf(0x193)] + ':\x20' + _0x5ec4d1[_0x2548bf(_0x3a367a._0x1db00b)] + formatAttachmentSuffix(_0x5ec4d1[_0x2548bf(0x206)]);
|
|
1012
|
+
})['join']('\x0a'), _0x5f062b = _0x41d51d[_0x473484(_0x263a11._0x3a0591)] && _0x41d51d[_0x473484(_0x263a11._0x500541)] ? '\x0a\x0a---\x20' + _0x41d51d[_0x473484(0x10b)][_0x473484(0xf2)] + _0x473484(_0x263a11._0x47d580) + _0x41d51d[_0x473484(0x18a)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1013
|
+
return _0x473484(0x1ad) + _0x41d51d[_0x473484(0xb6)] + '\x20(' + _0x41d51d['messages'][_0x473484(_0x263a11._0x144fde)] + '\x20messages)\x0a\x0a' + _0x38ed11 + _0x5f062b;
|
|
1014
|
+
}
|
|
1015
|
+
function _0x16d5() {
|
|
1016
|
+
const _0x15c88c = [
|
|
115
1017
|
'iYmJiefNzw50CW',
|
|
116
|
-
'
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
122
|
-
'ANnVBG',
|
|
123
|
-
'BwfW',
|
|
124
|
-
'Dg9mB3DLCKnHC2u',
|
|
125
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
126
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
127
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
128
|
-
'DxbSB2fKrMLSzq',
|
|
129
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
130
|
-
'CMvHzf9OAxn0B3j5',
|
|
1018
|
+
'mtjLwxzrBwS',
|
|
1019
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1020
|
+
'DxjNzw50',
|
|
1021
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1022
|
+
'z2v0vgLTzq',
|
|
131
1023
|
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'C3rYAw5NAwz5',
|
|
138
|
-
'D2fPDgLUz19PBNb1Da',
|
|
139
|
-
'CMvJB3jK',
|
|
140
|
-
'y2HHDa',
|
|
141
|
-
'y2fJAgveAxi',
|
|
142
|
-
'ihn0yxr1CZ0',
|
|
143
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
144
|
-
'B3b0Aw9UywW',
|
|
1024
|
+
'y2XPzw50',
|
|
1025
|
+
'yMfZzty0',
|
|
1026
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1027
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1028
|
+
'icHPzdO',
|
|
145
1029
|
'DMLZAwjPBgL0Eq',
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
154
|
-
'l2HPC3rVCNK/',
|
|
155
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
156
|
-
'zxHWAxjLC0f0',
|
|
157
|
-
'Dw5RBM93BG',
|
|
158
|
-
'DMLLD19MAwXL',
|
|
159
|
-
'C2L6zq',
|
|
160
|
-
'BM93',
|
|
161
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
162
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
1030
|
+
'ywz0zxi',
|
|
1031
|
+
'zgvZy3jPChrPB24',
|
|
1032
|
+
'zgLZCg9ZAxrPB24',
|
|
1033
|
+
'mJm2ndi4mMLsy2HNvG',
|
|
1034
|
+
'igLUia',
|
|
1035
|
+
'D29YA2vYCW',
|
|
1036
|
+
'CgfYDgLJAxbHBNq',
|
|
163
1037
|
'iYmJienOyw5UzwXZ',
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
168
|
-
'icHPzdO',
|
|
169
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1038
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
1039
|
+
'BwvTyMvY',
|
|
1040
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
170
1041
|
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'DgHYzwfKu2HVCNrjza',
|
|
178
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
179
|
-
'zw50CMLLCW',
|
|
180
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
181
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
182
|
-
'yxjYyxK',
|
|
183
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
184
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1042
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1043
|
+
'y2HHBM5LBhm',
|
|
1044
|
+
'Axnoyu4',
|
|
1045
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1046
|
+
'zMLSDgvY',
|
|
1047
|
+
'BwvZC2fNzq',
|
|
185
1048
|
'y2HPBgrYzw5uB3rHBa',
|
|
1049
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1050
|
+
'ChvIBgLJ',
|
|
1051
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1052
|
+
'zMLSzw5HBwu',
|
|
1053
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1054
|
+
'Aw5FChjVz3jLC3m',
|
|
1055
|
+
'zNjVBq',
|
|
1056
|
+
'DMLLD19MAwXL',
|
|
1057
|
+
'sfruuca',
|
|
1058
|
+
'y2XHAw0GzMfPBgvK',
|
|
1059
|
+
'CgfKu3rHCNq',
|
|
1060
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1061
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1062
|
+
'ig1LC3nHz2u9',
|
|
186
1063
|
'Ahr0CdO',
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
1064
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
1065
|
+
'Aw1Hz2uVz2LM',
|
|
1066
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1067
|
+
'Dg9VBa',
|
|
1068
|
+
'CMvHzf9OAxn0B3j5',
|
|
1069
|
+
'mu1MqKLNDW',
|
|
1070
|
+
'BgvUz3rO',
|
|
1071
|
+
'ig1ZzZ0',
|
|
1072
|
+
'y2HHBM5LBeLK',
|
|
195
1073
|
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
1074
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1075
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1076
|
+
'l3jLy2vPDMu',
|
|
1077
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
200
1078
|
'CMvHzeHPC3rVCNK',
|
|
201
|
-
'
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
'
|
|
1079
|
+
'zxHWAxjLC0f0',
|
|
1080
|
+
'D3nZoG',
|
|
1081
|
+
'v29YA2vYici',
|
|
1082
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1083
|
+
'C3vIDgfZA051BwjLCG',
|
|
1084
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
1085
|
+
'CNvUswq',
|
|
1086
|
+
'v29YA2vYia',
|
|
1087
|
+
'ChjVDg9JB2W',
|
|
1088
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1089
|
+
'mc4WlJa',
|
|
1090
|
+
'Dg9ju09tDhjPBMC',
|
|
1091
|
+
'w3rHCMDLDd0',
|
|
1092
|
+
'kg5VBMuP',
|
|
1093
|
+
'DgHYzwfKswq',
|
|
1094
|
+
'ywjVCNq',
|
|
1095
|
+
'BwvZC2fNzxm',
|
|
1096
|
+
'D3m6',
|
|
207
1097
|
'Dw5JBgfPBv90yxnR',
|
|
1098
|
+
'l2zPBMLZAa',
|
|
1099
|
+
'DxbKyxrL',
|
|
1100
|
+
'ywDLBNrZ',
|
|
1101
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1102
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1103
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1104
|
+
'iokaLca',
|
|
1105
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1106
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
208
1107
|
'z2v0',
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
1108
|
+
'C2vUzgvYvhLWzq',
|
|
1109
|
+
'ndaXnJq0zLDNu1v6',
|
|
1110
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1111
|
+
'xsba',
|
|
1112
|
+
'vgfZAYa',
|
|
1113
|
+
'z2v0tw9UDgG',
|
|
1114
|
+
'C2vYDMvYvxjS',
|
|
1115
|
+
'C2vX',
|
|
1116
|
+
'mtK1ntG5mvH0ExPMtG',
|
|
1117
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1118
|
+
'yxr0ywnOBwvUDeLK',
|
|
1119
|
+
'ywDLBNrjza',
|
|
1120
|
+
'AhvTyw5Z',
|
|
1121
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1122
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1123
|
+
'BwfW',
|
|
1124
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
1125
|
+
'iYmJieH1BwfUCW',
|
|
1126
|
+
'AwrSzq',
|
|
1127
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1128
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1129
|
+
'DxrMoa',
|
|
1130
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
212
1131
|
'lsba',
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'ls1Hz2vUDc1Pza',
|
|
222
|
-
'AxnbyNnVBhv0zq',
|
|
223
|
-
'nZm2nZi4yxHsDLnA',
|
|
1132
|
+
'l3rHC2TZpW',
|
|
1133
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1134
|
+
'Aw5KzxHpzG',
|
|
1135
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1136
|
+
'CgfYA193B3jRzxi',
|
|
1137
|
+
'CMvZCg9UC2u',
|
|
1138
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1139
|
+
'DgfZA0LK',
|
|
224
1140
|
'C29YDa',
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
'
|
|
230
|
-
'
|
|
231
|
-
'
|
|
232
|
-
'
|
|
233
|
-
'D29YA2vY',
|
|
234
|
-
'w3rHCMDLDd0',
|
|
235
|
-
'C2HHmJu2',
|
|
236
|
-
'AxnjBNrLz2vY',
|
|
237
|
-
'AgfZtw9Yzq',
|
|
238
|
-
'DgHYzwfKtNvTyMvY',
|
|
239
|
-
'y3vYC29Y',
|
|
240
|
-
'iokaLca',
|
|
241
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
242
|
-
'igrVBMuP',
|
|
243
|
-
'lMjPBG',
|
|
244
|
-
'z2v0rgf0zq',
|
|
245
|
-
'zMLSDgvY',
|
|
246
|
-
'C2vYDMvY',
|
|
247
|
-
'l2zPBMLZAa',
|
|
248
|
-
'l3rHC2TZl2nSywLT',
|
|
249
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
250
|
-
'ls1Zzxj2zxiTDxjS',
|
|
251
|
-
'Dgv4Dc9JC3y',
|
|
252
|
-
'mc4WlJa',
|
|
253
|
-
'zgLZCg9ZAxrPB24',
|
|
254
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
255
|
-
'ignSywLTzwq',
|
|
256
|
-
'DxjNzw50',
|
|
257
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
258
|
-
'zw51Bq',
|
|
259
|
-
'zMv0y2HjBxbS',
|
|
260
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
261
|
-
'y3jLyxrLzef0',
|
|
262
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
263
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1141
|
+
'l3nLCNzLCG',
|
|
1142
|
+
'D29YA2vYtw9Kzq',
|
|
1143
|
+
'C2vYDMvYtMfTzq',
|
|
1144
|
+
'DgfZAY0',
|
|
1145
|
+
'C3rHCNrZv2L0Aa',
|
|
1146
|
+
'C3rYAw5NAwz5',
|
|
1147
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1148
|
+
'y2XHAw1uyxnRCW',
|
|
264
1149
|
'BwvZC2fNzuLK',
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'C2vUze1LC3nHz2u',
|
|
281
|
-
'zgvZDhjVEwvK',
|
|
282
|
-
'CgfYDgLJAxbHBNq',
|
|
283
|
-
'BwvZC2fNzq',
|
|
1150
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1151
|
+
'yMfZzw5HBwu',
|
|
1152
|
+
'igTPBMq9',
|
|
1153
|
+
'nJq5ntq3mMfJCwrTDG',
|
|
1154
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1155
|
+
'lsaJ',
|
|
1156
|
+
'z2v0rNvSBfLLyxi',
|
|
1157
|
+
'y3vYC29Y',
|
|
1158
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1159
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1160
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1161
|
+
'ihrPBwu9',
|
|
1162
|
+
'BgLZDf9Zzxj2zxi',
|
|
1163
|
+
'CMvHC29U',
|
|
1164
|
+
'Dw5JBgfPBvrHC2S',
|
|
284
1165
|
'Dg9tDhjPBMC',
|
|
285
|
-
'
|
|
286
|
-
'
|
|
1166
|
+
'ue9tva',
|
|
1167
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1168
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1169
|
+
'B2jQzwn0',
|
|
1170
|
+
'yxjNDG',
|
|
1171
|
+
'Aw5JBhvKzxm',
|
|
1172
|
+
'zgvSzxrL',
|
|
1173
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
1174
|
+
'zgvZDhjVEwvK',
|
|
1175
|
+
'zxzLBNrtzxe',
|
|
1176
|
+
'mZG3mteXmg1fwfLirW',
|
|
1177
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1178
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1179
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1180
|
+
'l3nLBMq',
|
|
1181
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1182
|
+
'BNvTyMvY',
|
|
1183
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
1184
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1185
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1186
|
+
'DhLWzq',
|
|
1187
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
287
1188
|
'DgvZDa',
|
|
288
|
-
'C2LNBMfS',
|
|
289
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
290
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
291
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
292
|
-
'Bwf0y2Hoyw1L',
|
|
293
|
-
'y2HHBM5LBa',
|
|
294
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
295
1189
|
'BgLZDfrHC2TZ',
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
299
|
-
'C2L6zuj5DgvZ',
|
|
300
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
301
|
-
'C3rHDhvZ',
|
|
302
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
303
|
-
'iYmGu2vYDMvYoIa',
|
|
304
|
-
'D29YA19RzxK',
|
|
305
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
306
|
-
'l3n0yxj0',
|
|
307
|
-
'Dw5JBgfPBvrHC2S',
|
|
308
|
-
'DxnLCG',
|
|
309
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
310
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
311
|
-
'DgfZA051BwjLCG',
|
|
312
|
-
'y2XPzw50',
|
|
313
|
-
'C3vIDgfZA051BwjLCG',
|
|
314
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
315
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
316
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
317
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
318
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
319
|
-
'ywDLBNrZ',
|
|
320
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
321
|
-
'l3jLy2vPDMu',
|
|
322
|
-
'ChvIBgLJ',
|
|
323
|
-
'r0vu',
|
|
324
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
325
|
-
'ChvZAa',
|
|
326
|
-
'zgLNzxn0',
|
|
327
|
-
'DhLWzq',
|
|
328
|
-
'Bwf4',
|
|
329
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
330
|
-
'odqZm1jeDfnisW',
|
|
331
|
-
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
332
|
-
'Aw1Hz2uVCg5N',
|
|
1190
|
+
'AgLNAa',
|
|
1191
|
+
'DMfSDwvZ',
|
|
333
1192
|
'zgf0yq',
|
|
334
|
-
'
|
|
335
|
-
'l2nVBNrLBNq',
|
|
336
|
-
'DhjPBq',
|
|
337
|
-
'CMvZCg9UC2u',
|
|
338
|
-
'C2vYDMvYtMfTzq',
|
|
339
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
340
|
-
'zMLSzv9WyxrO',
|
|
341
|
-
'zMfSC2u',
|
|
342
|
-
'CNvUBMLUzW',
|
|
343
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
344
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
345
|
-
'mJvir3vKCuG',
|
|
346
|
-
'ywXS',
|
|
347
|
-
'igTPBMq9',
|
|
348
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1193
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
349
1194
|
'AgfZ',
|
|
350
|
-
'
|
|
1195
|
+
'w3nLCt0',
|
|
1196
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1197
|
+
'Aw1Hz2uVANbLzW',
|
|
1198
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
351
1199
|
'ywDNCMvNyxrLswq',
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
1200
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1201
|
+
'y2fJAgveAxi',
|
|
1202
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1203
|
+
'CgfYC2vjBNq',
|
|
1204
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1205
|
+
'Bwv0yq',
|
|
1206
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1207
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1208
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1209
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1210
|
+
'DgfZA3m',
|
|
1211
|
+
'l2HPC3rVCNK/',
|
|
1212
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1213
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1214
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1215
|
+
'DgfYz2v0zwruyxnR',
|
|
1216
|
+
'BwvTyMvYCW',
|
|
1217
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1218
|
+
'y29UDgvUDfr5Cgu',
|
|
1219
|
+
'iYmGu2vYDMvYoIa',
|
|
1220
|
+
'ChvZAa',
|
|
1221
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1222
|
+
'BMv4Den1CNnVCG',
|
|
1223
|
+
'y2f0y2G',
|
|
1224
|
+
'ywDLBNq',
|
|
1225
|
+
'l3n0yxj0',
|
|
1226
|
+
'Dgv4Dc9WBgfPBG',
|
|
1227
|
+
'khvUA25VD24P',
|
|
1228
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1229
|
+
'CMvWBgfJzq',
|
|
1230
|
+
'Dw5RBM93BG',
|
|
1231
|
+
'C2vUzgvYtMfTzq',
|
|
1232
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1233
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1234
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1235
|
+
'BMfTzq',
|
|
1236
|
+
'AhvTyw4',
|
|
1237
|
+
'y2HHBM5LBe5HBwu',
|
|
1238
|
+
'Dgv4Dc9JC3y',
|
|
1239
|
+
'Aw5FCMv2Awv3',
|
|
1240
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1241
|
+
'ignSywLTzwq',
|
|
1242
|
+
'Bg93',
|
|
1243
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1244
|
+
'AxnbCNjHEq',
|
|
1245
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
358
1246
|
'iIbUB3qGzM91BMq',
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
1247
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1248
|
+
'CMvZDwX0sNnVBG',
|
|
1249
|
+
'y2HPBgrYzw5eB25L',
|
|
1250
|
+
'ANnVBG',
|
|
1251
|
+
'AgfZtw9Yzq',
|
|
1252
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1253
|
+
'mJrbu0fIyuO',
|
|
1254
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1255
|
+
'uefuq0G',
|
|
1256
|
+
'Aw1Hz2uVCg5N',
|
|
365
1257
|
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
1258
|
+
'D29YA19RzxK',
|
|
1259
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1260
|
+
'C3vJy2vZCW',
|
|
1261
|
+
'y3jLyxrLzef0',
|
|
1262
|
+
'DxbSB2fKx2zPBgu',
|
|
1263
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1264
|
+
'DgHYzwfKvgfYz2v0',
|
|
1265
|
+
'ls1Hz2vUDc1Pza',
|
|
1266
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1267
|
+
'AgvHzgvYCW',
|
|
1268
|
+
'lNnSB2nR',
|
|
1269
|
+
'ihn0yxr1CZ0',
|
|
1270
|
+
'zg06',
|
|
369
1271
|
'C2vUzf9TzxnZywDL',
|
|
370
|
-
'
|
|
371
|
-
'
|
|
372
|
-
'
|
|
1272
|
+
'C2L6zuj5DgvZ',
|
|
1273
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1274
|
+
'C2HHmJu2',
|
|
1275
|
+
'mJeZndKXoeDquvDltW',
|
|
1276
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1277
|
+
'zMLUza',
|
|
1278
|
+
'DgfZAW',
|
|
1279
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1280
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1281
|
+
'Bwf4',
|
|
1282
|
+
'DMfSDwu',
|
|
1283
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1284
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1285
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1286
|
+
'DgfYz2v0zwq',
|
|
1287
|
+
'C2XPy2u',
|
|
1288
|
+
'yxjYyxK',
|
|
1289
|
+
'l3rHC2TZl2nSywLT',
|
|
1290
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1291
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1292
|
+
'ywrK',
|
|
1293
|
+
'yM9KEvrLEhq',
|
|
1294
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
373
1295
|
'ihr5Cgu9ywDLBNq',
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
1296
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1297
|
+
'AhjLzG',
|
|
1298
|
+
'C2f2zq',
|
|
1299
|
+
'y29UDgvUDc10ExbL',
|
|
1300
|
+
'Aw1Hz2uVD2vICa',
|
|
378
1301
|
'CxvLDwvK',
|
|
379
|
-
'
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
388
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
389
|
-
'l3rHC2TZpW',
|
|
390
|
-
'BgvUz3rO',
|
|
391
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
392
|
-
'BwvZC2fNzxm',
|
|
393
|
-
'C3rYAw5N',
|
|
394
|
-
'zMLUza',
|
|
1302
|
+
'BgLZDf90yxnRCW',
|
|
1303
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1304
|
+
'zxH0BMfTzq',
|
|
1305
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1306
|
+
'zMLSzv9WyxrO',
|
|
1307
|
+
'iJOGC3rHDhvZpq',
|
|
1308
|
+
'C29Tzq',
|
|
1309
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
395
1310
|
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
396
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
397
|
-
'CMvHC29U',
|
|
398
|
-
'AxngAwXL',
|
|
399
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
400
|
-
'C2nOzwr1BgvKrM9Y',
|
|
401
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
402
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
403
|
-
'ywrK',
|
|
404
|
-
'Axnoyu4',
|
|
405
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
406
|
-
'AwrSzq',
|
|
407
|
-
'y29UDgvUDejHC2u2na',
|
|
408
|
-
'lsaJ',
|
|
409
|
-
'C2vZC2LVBKLK',
|
|
410
|
-
'BwvTyMvY',
|
|
411
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
412
|
-
'ig1LC3nHz2vZkqOk',
|
|
413
|
-
'Agv4',
|
|
414
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
415
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
416
|
-
'AxngAw5PDgu',
|
|
417
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
418
1311
|
'AM9PBG',
|
|
419
|
-
'
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'
|
|
435
|
-
'
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
439
|
-
'
|
|
1312
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1313
|
+
'kgXLz2fJEsK',
|
|
1314
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1315
|
+
'Dgv4Da',
|
|
1316
|
+
'DgfZA051BwjLCG',
|
|
1317
|
+
'CMvZDwX0CW',
|
|
1318
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1319
|
+
'DhjPBq',
|
|
1320
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1321
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1322
|
+
'igrVBMuP',
|
|
1323
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1324
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1325
|
+
'igzHAwXLzdOG',
|
|
1326
|
+
'Dg9KBW',
|
|
1327
|
+
'Cgf5Bg9HzePZB24',
|
|
1328
|
+
'C2v0',
|
|
1329
|
+
'DgHYzwfK',
|
|
1330
|
+
'y29UDgvUDa',
|
|
1331
|
+
'C3rYAw5N',
|
|
1332
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1333
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1334
|
+
'CNvUBMLUzW',
|
|
1335
|
+
'zg0T',
|
|
1336
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1337
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1338
|
+
'y2HHDa',
|
|
1339
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1340
|
+
'r0vu',
|
|
1341
|
+
'zw51Bq',
|
|
1342
|
+
'AxngAw5PDgu',
|
|
1343
|
+
'C2vYDMvY',
|
|
1344
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1345
|
+
'Ahr0Chm6',
|
|
1346
|
+
'yxr0ywnOBwvUDhm',
|
|
1347
|
+
'CMvJB3jK',
|
|
1348
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1349
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1350
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
1351
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1352
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
440
1353
|
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1354
|
+
'BgLZDfnLCNzLCG',
|
|
1355
|
+
'C3rHDhvZ',
|
|
1356
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1357
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1358
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
1359
|
+
'C2L6zq',
|
|
1360
|
+
'z2v0u2vJB25KCW',
|
|
1361
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1362
|
+
'BgLTAxq',
|
|
1363
|
+
'C2LNBMfS',
|
|
1364
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1365
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1366
|
+
'DgHYzwfKtNvTyMvY',
|
|
1367
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1368
|
+
'A2LUza',
|
|
1369
|
+
'DgfYz2v0',
|
|
1370
|
+
'Dg9gAxHLza',
|
|
1371
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
441
1372
|
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'
|
|
1373
|
+
'zw50CMLLCW',
|
|
1374
|
+
'AxnbyNnVBhv0zq',
|
|
1375
|
+
'zgfLBw9UqxbPs2v5',
|
|
1376
|
+
'B3b0Aw9UywW',
|
|
1377
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1378
|
+
'zxjYB3i',
|
|
1379
|
+
'zgvZy3jPyMu',
|
|
1380
|
+
'z2v0rgf0zq',
|
|
1381
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1382
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1383
|
+
'BwvZC2fNzv9Pzhm',
|
|
1384
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1385
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1386
|
+
'C3bSAxq',
|
|
1387
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1388
|
+
'mJCZndu4nvjsDvHKCG',
|
|
1389
|
+
'C2vZC2LVBKLK',
|
|
449
1390
|
'yMvMB3jL',
|
|
450
|
-
'
|
|
451
|
-
'
|
|
1391
|
+
'CgfYC2u',
|
|
1392
|
+
'C2vUze1LC3nHz2u',
|
|
1393
|
+
'DgfZA19Pza',
|
|
1394
|
+
'Bwf0y2Hoyw1L',
|
|
1395
|
+
'vgfZAZOG',
|
|
1396
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1397
|
+
'ywjVCNrLza',
|
|
1398
|
+
'DxnLCG',
|
|
1399
|
+
'y2HHBM5LBa',
|
|
1400
|
+
'zg9Uzq',
|
|
1401
|
+
'y2XHAw1FDgfZA3m',
|
|
1402
|
+
'yxjYyxLcDwzMzxi',
|
|
1403
|
+
'DxbSB2fKrMLSzq',
|
|
1404
|
+
'Dg9mB3DLCKnHC2u',
|
|
1405
|
+
'ywXS'
|
|
452
1406
|
];
|
|
453
|
-
|
|
454
|
-
return
|
|
455
|
-
};
|
|
456
|
-
return _0x281a();
|
|
457
|
-
}
|
|
458
|
-
function guessContentType(_0x3c3c81) {
|
|
459
|
-
const _0x140e38 = { _0x1ea248: 0x1bf }, _0x4825f7 = _0x1b8c9f;
|
|
460
|
-
return MIME_BY_EXTENSION[_0x31ca99[_0x4825f7(0x119)](_0x3c3c81)[_0x4825f7(_0x140e38._0x1ea248)]()] ?? _0x4825f7(0x260);
|
|
461
|
-
}
|
|
462
|
-
function safeFilename(_0x402af2) {
|
|
463
|
-
const _0x477dba = { _0x584bec: 0x125 }, _0x383064 = _0x1b8c9f;
|
|
464
|
-
return _0x402af2[_0x383064(_0x477dba._0x584bec)](/[\\/]/g, '-');
|
|
465
|
-
}
|
|
466
|
-
function extensionFor(_0x333f91) {
|
|
467
|
-
const _0x39b676 = _0x1b8c9f, _0x40239d = Object[_0x39b676(0x1f6)](MIME_BY_EXTENSION)[_0x39b676(0x139)](([, _0x495f01]) => _0x495f01 === _0x333f91);
|
|
468
|
-
return _0x40239d?.[0x0] ?? _0x39b676(0x236);
|
|
469
|
-
}
|
|
470
|
-
async function prepareUploadFile(_0x167820, _0x1c3a75 = {}) {
|
|
471
|
-
const _0x3d5f14 = {
|
|
472
|
-
_0x1fd979: 0x221,
|
|
473
|
-
_0x5e6926: 0x13d,
|
|
474
|
-
_0x3a4462: 0x1e4,
|
|
475
|
-
_0x5f3a86: 0x1e2,
|
|
476
|
-
_0x37e1d7: 0x171
|
|
477
|
-
}, _0x38d1fa = _0x1b8c9f;
|
|
478
|
-
if (!_0x31ca99[_0x38d1fa(_0x3d5f14._0x1fd979)](_0x167820))
|
|
479
|
-
throw new Error(_0x38d1fa(0x141));
|
|
480
|
-
const _0x28ef67 = await stat(_0x167820)[_0x38d1fa(0x211)](() => null);
|
|
481
|
-
if (!_0x28ef67 || !_0x28ef67[_0x38d1fa(_0x3d5f14._0x5e6926)]())
|
|
482
|
-
throw new Error(_0x38d1fa(0x1c0) + _0x167820);
|
|
483
|
-
const _0x153c19 = _0x1c3a75[_0x38d1fa(_0x3d5f14._0x3a4462)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
484
|
-
if (_0x28ef67[_0x38d1fa(_0x3d5f14._0x5f3a86)] > _0x153c19)
|
|
485
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x28ef67[_0x38d1fa(0x1e2)]);
|
|
486
|
-
const _0x2a6af2 = await readFile(_0x167820), _0x1830ab = _0x31ca99[_0x38d1fa(_0x3d5f14._0x37e1d7)](_0x167820);
|
|
487
|
-
return {
|
|
488
|
-
'contentBase64': _0x2a6af2[_0x38d1fa(0x25f)]('base64'),
|
|
489
|
-
'contentType': guessContentType(_0x1830ab),
|
|
490
|
-
'filename': _0x1830ab,
|
|
491
|
-
'sizeBytes': _0x28ef67[_0x38d1fa(_0x3d5f14._0x5f3a86)]
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
function createAttachmentCache(_0x1f5af6 = {}) {
|
|
495
|
-
const _0x393ba5 = { _0x52b8f5: 0x1d0 }, _0x229d81 = {
|
|
496
|
-
_0x4b7234: 0x151,
|
|
497
|
-
_0x2abbfa: 0x160
|
|
498
|
-
}, _0x437e37 = _0x1b8c9f, _0x56f27d = _0x1f5af6[_0x437e37(_0x393ba5._0x52b8f5)] ?? _0x31ca99[_0x437e37(0x151)](homedir(), _0x437e37(0x184), _0x437e37(0x1bb));
|
|
499
|
-
return {
|
|
500
|
-
'cacheDir': _0x56f27d,
|
|
501
|
-
async 'findCachedPath'(_0x102a07) {
|
|
502
|
-
const _0x266f24 = _0x437e37;
|
|
503
|
-
await mkdir(_0x56f27d, { 'recursive': !![] });
|
|
504
|
-
const _0x46c6cf = await readdir(_0x56f27d), _0x531e71 = _0x46c6cf[_0x266f24(0x139)](_0x19c1cf => _0x19c1cf[_0x266f24(0x165)](_0x102a07 + '-') || _0x19c1cf[_0x266f24(0x165)](_0x102a07));
|
|
505
|
-
return _0x531e71 ? _0x31ca99['join'](_0x56f27d, _0x531e71) : null;
|
|
506
|
-
},
|
|
507
|
-
async 'save'(_0x3a6acd) {
|
|
508
|
-
const _0x21f664 = _0x437e37;
|
|
509
|
-
await mkdir(_0x56f27d, { 'recursive': !![] });
|
|
510
|
-
const _0x5207b1 = _0x3a6acd['originalFilename']?.[_0x21f664(0x293)]() ? safeFilename(_0x3a6acd[_0x21f664(0x193)]) : '' + _0x3a6acd['attachmentId'] + extensionFor(_0x3a6acd[_0x21f664(0x1ee)]), _0x469ae2 = _0x31ca99[_0x21f664(_0x229d81._0x4b7234)](_0x56f27d, _0x3a6acd[_0x21f664(_0x229d81._0x2abbfa)] + '-' + _0x5207b1);
|
|
511
|
-
return await writeFile(_0x469ae2, _0x3a6acd['data']), _0x469ae2;
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
import {
|
|
516
|
-
createHash,
|
|
517
|
-
randomUUID
|
|
518
|
-
} from 'node:crypto';
|
|
519
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x1b8c9f(0x1ed);
|
|
520
|
-
function ensureSegment(_0x1bf4bb) {
|
|
521
|
-
const _0xbcc793 = {
|
|
522
|
-
_0x3fdfe5: 0x293,
|
|
523
|
-
_0x97d610: 0x12e
|
|
524
|
-
}, _0x4eb96a = _0x1b8c9f, _0x1df6ab = _0x1bf4bb[_0x4eb96a(_0xbcc793._0x3fdfe5)]();
|
|
525
|
-
if (!_0x1df6ab || _0x1df6ab[_0x4eb96a(_0xbcc793._0x97d610)](':'))
|
|
526
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
-
return _0x1df6ab;
|
|
528
|
-
}
|
|
529
|
-
function parseThreadParts(_0x308189) {
|
|
530
|
-
const _0x5ee37d = {
|
|
531
|
-
_0x3d831b: 0x250,
|
|
532
|
-
_0x5ec6cd: 0x135,
|
|
533
|
-
_0x5dd18b: 0x135
|
|
534
|
-
}, _0x31cc31 = _0x1b8c9f, _0x2aec83 = _0x308189[_0x31cc31(_0x5ee37d._0x3d831b)](':');
|
|
535
|
-
if (_0x2aec83[_0x31cc31(_0x5ee37d._0x5ec6cd)] < 0x1 || _0x2aec83[_0x31cc31(_0x5ee37d._0x5dd18b)] > 0x2)
|
|
536
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
537
|
-
return {
|
|
538
|
-
'channelName': ensureSegment(_0x2aec83[0x0] ?? ''),
|
|
539
|
-
'threadShortId': _0x2aec83[0x1] ? ensureSegment(_0x2aec83[0x1]) : null
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
function parseTarget(_0x389b5b) {
|
|
543
|
-
const _0xa0ff28 = {
|
|
544
|
-
_0x357d26: 0x293,
|
|
545
|
-
_0xa4a1cd: 0x174,
|
|
546
|
-
_0x5c8e14: 0x1f4,
|
|
547
|
-
_0x1b8f18: 0x268,
|
|
548
|
-
_0x2f4026: 0x174,
|
|
549
|
-
_0x2645c3: 0x1f4,
|
|
550
|
-
_0x1ed5fc: 0x165,
|
|
551
|
-
_0x2d89b1: 0x1a2,
|
|
552
|
-
_0x135a42: 0x1f4
|
|
553
|
-
}, _0x4f2e46 = _0x1b8c9f, _0x101416 = _0x389b5b[_0x4f2e46(_0xa0ff28._0x357d26)]();
|
|
554
|
-
if (!_0x101416)
|
|
555
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
556
|
-
if (_0x101416[_0x4f2e46(0x165)]('#')) {
|
|
557
|
-
const _0x3030a5 = parseThreadParts(_0x101416['slice'](0x1)), _0xffaef2 = '#' + _0x3030a5[_0x4f2e46(_0xa0ff28._0xa4a1cd)];
|
|
558
|
-
if (!_0x3030a5[_0x4f2e46(_0xa0ff28._0x5c8e14)])
|
|
559
|
-
return {
|
|
560
|
-
'channelName': _0x3030a5['channelName'],
|
|
561
|
-
'channelTarget': _0xffaef2,
|
|
562
|
-
'kind': _0x4f2e46(_0xa0ff28._0x1b8f18),
|
|
563
|
-
'target': _0xffaef2
|
|
564
|
-
};
|
|
565
|
-
return {
|
|
566
|
-
'channelName': _0x3030a5[_0x4f2e46(_0xa0ff28._0x2f4026)],
|
|
567
|
-
'channelTarget': _0xffaef2,
|
|
568
|
-
'kind': _0x4f2e46(0x1b4),
|
|
569
|
-
'target': _0xffaef2 + ':' + _0x3030a5[_0x4f2e46(0x1f4)],
|
|
570
|
-
'threadShortId': _0x3030a5[_0x4f2e46(_0xa0ff28._0x2645c3)]
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
if (_0x101416[_0x4f2e46(_0xa0ff28._0x1ed5fc)](_0x4f2e46(_0xa0ff28._0x2d89b1))) {
|
|
574
|
-
const _0x5785d1 = parseThreadParts(_0x101416[_0x4f2e46(0x16e)](0x3));
|
|
575
|
-
if (!_0x5785d1[_0x4f2e46(_0xa0ff28._0xa4a1cd)]['startsWith']('dm-'))
|
|
576
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
577
|
-
const _0x5317db = _0x4f2e46(0x1a2) + _0x5785d1[_0x4f2e46(_0xa0ff28._0x2f4026)];
|
|
578
|
-
if (!_0x5785d1[_0x4f2e46(_0xa0ff28._0x135a42)])
|
|
579
|
-
return {
|
|
580
|
-
'channelName': _0x5785d1[_0x4f2e46(_0xa0ff28._0x2f4026)],
|
|
581
|
-
'channelTarget': _0x5317db,
|
|
582
|
-
'kind': _0x4f2e46(_0xa0ff28._0x1b8f18),
|
|
583
|
-
'target': _0x5317db
|
|
584
|
-
};
|
|
585
|
-
return {
|
|
586
|
-
'channelName': _0x5785d1[_0x4f2e46(0x174)],
|
|
587
|
-
'channelTarget': _0x5317db,
|
|
588
|
-
'kind': _0x4f2e46(0x1b4),
|
|
589
|
-
'target': _0x5317db + ':' + _0x5785d1[_0x4f2e46(0x1f4)],
|
|
590
|
-
'threadShortId': _0x5785d1[_0x4f2e46(0x1f4)]
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
594
|
-
}
|
|
595
|
-
function asErrorMessage(_0x31c138, _0x1920bb) {
|
|
596
|
-
const _0x2775f4 = { _0x447b7d: 0x293 }, _0x2b61ab = _0x1b8c9f;
|
|
597
|
-
if (typeof _0x31c138 === 'string' && _0x31c138[_0x2b61ab(_0x2775f4._0x447b7d)]())
|
|
598
|
-
return _0x31c138;
|
|
599
|
-
return _0x1920bb;
|
|
600
|
-
}
|
|
601
|
-
function asRecord(_0x184ba9) {
|
|
602
|
-
const _0x279d9a = { _0x278bc1: 0x1d9 }, _0x4d6fb1 = _0x1b8c9f;
|
|
603
|
-
return typeof _0x184ba9 === _0x4d6fb1(_0x279d9a._0x278bc1) && _0x184ba9 !== null ? _0x184ba9 : {};
|
|
604
|
-
}
|
|
605
|
-
function stableStringify(_0x41b8b6) {
|
|
606
|
-
const _0x592a1f = {
|
|
607
|
-
_0xe22049: 0x20f,
|
|
608
|
-
_0x4506ab: 0x238,
|
|
609
|
-
_0x2d7d32: 0x151
|
|
610
|
-
}, _0x393373 = _0x1b8c9f;
|
|
611
|
-
if (_0x41b8b6 === null || typeof _0x41b8b6 !== _0x393373(0x1d9))
|
|
612
|
-
return JSON['stringify'](_0x41b8b6);
|
|
613
|
-
if (Array[_0x393373(_0x592a1f._0xe22049)](_0x41b8b6))
|
|
614
|
-
return '[' + _0x41b8b6[_0x393373(0x1be)](_0x385c87 => stableStringify(_0x385c87))[_0x393373(0x151)](',') + ']';
|
|
615
|
-
const _0x3aba32 = Object[_0x393373(0x1f6)](_0x41b8b6)[_0x393373(_0x592a1f._0x4506ab)](([, _0xe648e4]) => _0xe648e4 !== void 0x0)['sort'](([_0x4ea308], [_0x2ab922]) => _0x4ea308[_0x393373(0x26c)](_0x2ab922))[_0x393373(0x1be)](([_0x450ac9, _0x535360]) => JSON['stringify'](_0x450ac9) + ':' + stableStringify(_0x535360));
|
|
616
|
-
return '{' + _0x3aba32[_0x393373(_0x592a1f._0x2d7d32)](',') + '}';
|
|
617
|
-
}
|
|
618
|
-
function createHeaders(_0xc98de8) {
|
|
619
|
-
return {
|
|
620
|
-
'Content-Type': 'application/json',
|
|
621
|
-
'x-daemon-api-key': _0xc98de8
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
function toHttpBaseUrl(_0x5b342a) {
|
|
625
|
-
const _0x557057 = {
|
|
626
|
-
_0x13a9de: 0x1b7,
|
|
627
|
-
_0x544b53: 0x187,
|
|
628
|
-
_0x5da655: 0x190,
|
|
629
|
-
_0x57c782: 0x16c
|
|
630
|
-
}, _0x2291fe = _0x1b8c9f, _0x2b4942 = new URL(_0x5b342a);
|
|
631
|
-
if (_0x2b4942['protocol'] === _0x2291fe(_0x557057._0x13a9de))
|
|
632
|
-
_0x2b4942[_0x2291fe(0x187)] = _0x2291fe(0x1fd);
|
|
633
|
-
else
|
|
634
|
-
_0x2b4942[_0x2291fe(_0x557057._0x544b53)] === _0x2291fe(_0x557057._0x5da655) && (_0x2b4942[_0x2291fe(0x187)] = _0x2291fe(_0x557057._0x57c782));
|
|
635
|
-
return _0x2b4942[_0x2291fe(0x25f)]()[_0x2291fe(0x125)](/\/$/, '');
|
|
636
|
-
}
|
|
637
|
-
function isMentionBoundary(_0x4f0aa5) {
|
|
638
|
-
const _0x2217ba = _0x1b8c9f;
|
|
639
|
-
return !_0x4f0aa5 || /\s|[([{'",。!?、:;]/[_0x2217ba(0x262)](_0x4f0aa5);
|
|
640
|
-
}
|
|
641
|
-
function isMentionTerminal(_0x5b9641) {
|
|
642
|
-
const _0x4af8c2 = _0x1b8c9f;
|
|
643
|
-
return !_0x5b9641 || /\s|[)\]}'",。!?、:;,.!?]/[_0x4af8c2(0x262)](_0x5b9641);
|
|
644
|
-
}
|
|
645
|
-
function buildMatchableEntries(_0x5375ab) {
|
|
646
|
-
const _0x566120 = {
|
|
647
|
-
_0x56c6b7: 0x282,
|
|
648
|
-
_0x3f46e7: 0x1c8,
|
|
649
|
-
_0x536431: 0x1ba,
|
|
650
|
-
_0x2cfc02: 0x1c6
|
|
651
|
-
}, _0xe1b1dd = _0x1b8c9f, _0x3cc9ab = [];
|
|
652
|
-
for (const _0x423a86 of [
|
|
653
|
-
..._0x5375ab[_0xe1b1dd(_0x566120._0x56c6b7)],
|
|
654
|
-
..._0x5375ab[_0xe1b1dd(_0x566120._0x3f46e7)]
|
|
655
|
-
]) {
|
|
656
|
-
_0x3cc9ab[_0xe1b1dd(0x288)]({
|
|
657
|
-
'matchName': _0x423a86[_0xe1b1dd(0x1ba)],
|
|
658
|
-
'matchNameLower': _0x423a86[_0xe1b1dd(0x1ba)][_0xe1b1dd(0x1c6)](),
|
|
659
|
-
'participantId': _0x423a86['id']
|
|
660
|
-
}), _0x423a86['id'] !== _0x423a86[_0xe1b1dd(_0x566120._0x536431)] && _0x3cc9ab[_0xe1b1dd(0x288)]({
|
|
661
|
-
'matchName': _0x423a86['id'],
|
|
662
|
-
'matchNameLower': _0x423a86['id'][_0xe1b1dd(_0x566120._0x2cfc02)](),
|
|
663
|
-
'participantId': _0x423a86['id']
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
return _0x3cc9ab;
|
|
667
|
-
}
|
|
668
|
-
function extractMentionedParticipantIds(_0x26ca65, _0x349679) {
|
|
669
|
-
const _0x4b5916 = {
|
|
670
|
-
_0x24009e: 0x16e,
|
|
671
|
-
_0x215dec: 0x1c6,
|
|
672
|
-
_0x22f569: 0x139,
|
|
673
|
-
_0x3c23a1: 0x2a0,
|
|
674
|
-
_0x1d85e9: 0x288,
|
|
675
|
-
_0x1dae42: 0x267
|
|
676
|
-
}, _0x2b9add = _0x1b8c9f, _0x3018a4 = buildMatchableEntries(_0x349679)[_0x2b9add(0x223)]((_0x46a691, _0x5dd500) => _0x5dd500[_0x2b9add(0x267)][_0x2b9add(0x135)] - _0x46a691[_0x2b9add(0x267)][_0x2b9add(0x135)]), _0x740247 = [], _0x2daf4e = new Set();
|
|
677
|
-
for (let _0x16d23c = 0x0; _0x16d23c < _0x26ca65[_0x2b9add(0x135)]; _0x16d23c += 0x1) {
|
|
678
|
-
if (_0x26ca65[_0x16d23c] !== '@' || !isMentionBoundary(_0x26ca65[_0x16d23c - 0x1]))
|
|
679
|
-
continue;
|
|
680
|
-
const _0x1e9dbf = _0x26ca65[_0x2b9add(_0x4b5916._0x24009e)](_0x16d23c + 0x1), _0x44194b = _0x1e9dbf[_0x2b9add(_0x4b5916._0x215dec)](), _0x43fc43 = _0x3018a4[_0x2b9add(_0x4b5916._0x22f569)](_0x3c8965 => {
|
|
681
|
-
const _0x37a5f2 = _0x2b9add;
|
|
682
|
-
if (!_0x44194b[_0x37a5f2(0x165)](_0x3c8965[_0x37a5f2(0x158)]))
|
|
683
|
-
return ![];
|
|
684
|
-
return isMentionTerminal(_0x1e9dbf[_0x3c8965['matchName'][_0x37a5f2(0x135)]]);
|
|
685
|
-
});
|
|
686
|
-
if (!_0x43fc43 || _0x2daf4e[_0x2b9add(_0x4b5916._0x3c23a1)](_0x43fc43[_0x2b9add(0x216)]))
|
|
687
|
-
continue;
|
|
688
|
-
_0x2daf4e[_0x2b9add(0x142)](_0x43fc43[_0x2b9add(0x216)]), _0x740247[_0x2b9add(_0x4b5916._0x1d85e9)](_0x43fc43['participantId']), _0x16d23c += _0x43fc43[_0x2b9add(_0x4b5916._0x1dae42)][_0x2b9add(0x135)];
|
|
689
|
-
}
|
|
690
|
-
return _0x740247;
|
|
691
|
-
}
|
|
692
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
693
|
-
function anySignal(..._0x22d9d6) {
|
|
694
|
-
const _0x594ab7 = {
|
|
695
|
-
_0x4b614b: 0x263,
|
|
696
|
-
_0x89659c: 0x1ef,
|
|
697
|
-
_0x4b21f1: 0x15d
|
|
698
|
-
}, _0x10db74 = _0x1b8c9f, _0x167a3d = new AbortController();
|
|
699
|
-
for (const _0x29b3a5 of _0x22d9d6) {
|
|
700
|
-
if (_0x29b3a5[_0x10db74(0x291)])
|
|
701
|
-
return _0x167a3d['abort'](_0x29b3a5['reason']), _0x167a3d[_0x10db74(_0x594ab7._0x4b614b)];
|
|
702
|
-
_0x29b3a5[_0x10db74(_0x594ab7._0x89659c)](_0x10db74(_0x594ab7._0x4b21f1), () => _0x167a3d[_0x10db74(0x15d)](_0x29b3a5[_0x10db74(0x13c)]), {
|
|
703
|
-
'once': !![],
|
|
704
|
-
'signal': _0x167a3d[_0x10db74(0x263)]
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
return _0x167a3d['signal'];
|
|
708
|
-
}
|
|
709
|
-
function createInternalAgentClient(_0x5df74d) {
|
|
710
|
-
const _0x4011f5 = {
|
|
711
|
-
_0x4ee8c3: 0x246,
|
|
712
|
-
_0x1d6546: 0x191,
|
|
713
|
-
_0xb606ce: 0x1f7,
|
|
714
|
-
_0x288ea5: 0x293,
|
|
715
|
-
_0x299397: 0x148,
|
|
716
|
-
_0x37c85d: 0x172,
|
|
717
|
-
_0x1e62ca: 0x199
|
|
718
|
-
}, _0x4543a0 = {
|
|
719
|
-
_0x21c467: 0x286,
|
|
720
|
-
_0x2808dc: 0x180,
|
|
721
|
-
_0x4a965e: 0x135,
|
|
722
|
-
_0xbd3860: 0x183,
|
|
723
|
-
_0x202adb: 0x121,
|
|
724
|
-
_0x126e13: 0x196,
|
|
725
|
-
_0x2e0500: 0x1a7,
|
|
726
|
-
_0x5a748a: 0x24c,
|
|
727
|
-
_0x2cdf69: 0x231,
|
|
728
|
-
_0x454581: 0x191,
|
|
729
|
-
_0x8ba5ab: 0x22f,
|
|
730
|
-
_0x204e73: 0x213,
|
|
731
|
-
_0x485fcf: 0x1f0,
|
|
732
|
-
_0x8c1fb9: 0x131,
|
|
733
|
-
_0x5d052a: 0x2a2,
|
|
734
|
-
_0xd9a5: 0x257,
|
|
735
|
-
_0x4678c5: 0x196,
|
|
736
|
-
_0x20fd16: 0x1ba,
|
|
737
|
-
_0x2c0556: 0x258,
|
|
738
|
-
_0x272297: 0x213,
|
|
739
|
-
_0x11eb20: 0x17a,
|
|
740
|
-
_0x40d1d0: 0x228,
|
|
741
|
-
_0x4f3d73: 0x213,
|
|
742
|
-
_0x433f03: 0x288,
|
|
743
|
-
_0x5a5aa7: 0x20e,
|
|
744
|
-
_0x4916f8: 0x138,
|
|
745
|
-
_0x56fcfd: 0x1cf,
|
|
746
|
-
_0x54ccd7: 0x258
|
|
747
|
-
}, _0x26e747 = {
|
|
748
|
-
_0x1a490b: 0x170,
|
|
749
|
-
_0x515c39: 0x24c
|
|
750
|
-
}, _0x1ae5ec = {
|
|
751
|
-
_0x1fa5ba: 0x292,
|
|
752
|
-
_0x3fa537: 0x290
|
|
753
|
-
}, _0x3e2e85 = {
|
|
754
|
-
_0x51a6ac: 0x18c,
|
|
755
|
-
_0x13ac2c: 0x11a,
|
|
756
|
-
_0xe44f6b: 0x207,
|
|
757
|
-
_0x21b24e: 0x166,
|
|
758
|
-
_0x56a105: 0x146,
|
|
759
|
-
_0x19cd2f: 0x1ee,
|
|
760
|
-
_0x26569: 0x193
|
|
761
|
-
}, _0x21bb76 = {
|
|
762
|
-
_0x5dbe01: 0x11a,
|
|
763
|
-
_0x1ae730: 0x192,
|
|
764
|
-
_0x4e5f84: 0x1cc,
|
|
765
|
-
_0x5f155f: 0x212
|
|
766
|
-
}, _0x377b53 = {
|
|
767
|
-
_0x458747: 0x11a,
|
|
768
|
-
_0x40b572: 0x23b,
|
|
769
|
-
_0x19b3b0: 0x227
|
|
770
|
-
}, _0x48b349 = { _0x7eaf4e: 0x11a }, _0x3286be = {
|
|
771
|
-
_0x5712ac: 0x268,
|
|
772
|
-
_0x21cd07: 0x270,
|
|
773
|
-
_0x289d52: 0x270,
|
|
774
|
-
_0x44ed91: 0x274,
|
|
775
|
-
_0x127088: 0x11a,
|
|
776
|
-
_0x28d1bc: 0x134
|
|
777
|
-
}, _0x1bd002 = {
|
|
778
|
-
_0x5679ba: 0x17d,
|
|
779
|
-
_0x4d2768: 0x18a,
|
|
780
|
-
_0x133498: 0x1a4,
|
|
781
|
-
_0x4bae78: 0x270
|
|
782
|
-
}, _0x49a9ff = {
|
|
783
|
-
_0x355c58: 0x275,
|
|
784
|
-
_0x4d9546: 0x1cc
|
|
785
|
-
}, _0x56b65f = {
|
|
786
|
-
_0x143d50: 0x27d,
|
|
787
|
-
_0xc43261: 0x1cc,
|
|
788
|
-
_0x2f7bcd: 0x290
|
|
789
|
-
}, _0x1e7fb8 = {
|
|
790
|
-
_0x47f3ad: 0x19c,
|
|
791
|
-
_0x5a58c6: 0x24c,
|
|
792
|
-
_0x451f14: 0x1d4
|
|
793
|
-
}, _0x8d5f6b = {
|
|
794
|
-
_0x1d759c: 0x257,
|
|
795
|
-
_0x4a9637: 0x24c,
|
|
796
|
-
_0x1c1e2a: 0x257,
|
|
797
|
-
_0x383fc7: 0x1a7,
|
|
798
|
-
_0x56c632: 0x21d,
|
|
799
|
-
_0x5cab96: 0x21d,
|
|
800
|
-
_0x2997d7: 0x274,
|
|
801
|
-
_0x141325: 0x11a,
|
|
802
|
-
_0x3fa425: 0x1dd,
|
|
803
|
-
_0x44e398: 0x266,
|
|
804
|
-
_0x495bf8: 0x230,
|
|
805
|
-
_0x4e9d54: 0x180
|
|
806
|
-
}, _0x4fe121 = {
|
|
807
|
-
_0x1b7d8d: 0x25d,
|
|
808
|
-
_0x2d0eb5: 0x1ba
|
|
809
|
-
}, _0x24b49a = { _0x508f6b: 0x216 }, _0x3891ec = {
|
|
810
|
-
_0x155ab2: 0x1b4,
|
|
811
|
-
_0x3ddb0b: 0x266,
|
|
812
|
-
_0x53bd4f: 0x231,
|
|
813
|
-
_0x3956bd: 0x1f0,
|
|
814
|
-
_0x58191d: 0x165,
|
|
815
|
-
_0x244373: 0x24c
|
|
816
|
-
}, _0x2f5bb1 = {
|
|
817
|
-
_0x5288d7: 0x231,
|
|
818
|
-
_0x320763: 0x24c
|
|
819
|
-
}, _0x20ee86 = {
|
|
820
|
-
_0x2db5bc: 0x282,
|
|
821
|
-
_0x56a916: 0x2a1,
|
|
822
|
-
_0x196b7f: 0x1a9
|
|
823
|
-
}, _0x14d545 = { _0x3fbb5d: 0x211 }, _0x1387db = {
|
|
824
|
-
_0xd1bd89: 0x274,
|
|
825
|
-
_0x1bb9d6: 0x118,
|
|
826
|
-
_0x10a996: 0x286,
|
|
827
|
-
_0x58f55e: 0x238,
|
|
828
|
-
_0x2e78fa: 0x239,
|
|
829
|
-
_0x2eecf7: 0x1ba
|
|
830
|
-
}, _0x4643d0 = {
|
|
831
|
-
_0x4ba066: 0x266,
|
|
832
|
-
_0x4b17d4: 0x290,
|
|
833
|
-
_0x371389: 0x24c,
|
|
834
|
-
_0x4af8c8: 0x290
|
|
835
|
-
}, _0x8929f8 = {
|
|
836
|
-
_0x3a9ae3: 0x189,
|
|
837
|
-
_0xf40b7a: 0x1cc,
|
|
838
|
-
_0x1eb94b: 0x123
|
|
839
|
-
}, _0x6d2dd = { _0x1c427f: 0x130 }, _0x3e978a = {
|
|
840
|
-
_0x6f99d9: 0x263,
|
|
841
|
-
_0x5ec268: 0x263,
|
|
842
|
-
_0x5b5093: 0x263,
|
|
843
|
-
_0x245605: 0x1a4,
|
|
844
|
-
_0x54c4c7: 0x123,
|
|
845
|
-
_0x32fa7b: 0x270
|
|
846
|
-
}, _0x479e26 = {
|
|
847
|
-
_0x550958: 0x263,
|
|
848
|
-
_0x3f8072: 0x195,
|
|
849
|
-
_0x4496ec: 0x1a4
|
|
850
|
-
}, _0x1cc249 = {
|
|
851
|
-
_0x42d099: 0x1b9,
|
|
852
|
-
_0x17e838: 0x1e3,
|
|
853
|
-
_0xac17cf: 0x1df,
|
|
854
|
-
_0x3fd6e1: 0x14c,
|
|
855
|
-
_0x5ca3c5: 0x213
|
|
856
|
-
}, _0xadd605 = {
|
|
857
|
-
_0x3a65f6: 0x1a3,
|
|
858
|
-
_0x42dd19: 0x229
|
|
859
|
-
}, _0x366fb8 = {
|
|
860
|
-
_0x5532f2: 0x294,
|
|
861
|
-
_0x11c6b8: 0x12a,
|
|
862
|
-
_0x305a4a: 0x1af,
|
|
863
|
-
_0x29a82a: 0x270,
|
|
864
|
-
_0x1906ef: 0x188,
|
|
865
|
-
_0x547a08: 0x17c,
|
|
866
|
-
_0x25fd10: 0x26b
|
|
867
|
-
}, _0x392684 = _0x1b8c9f, _0x26d1b4 = _0x5df74d[_0x392684(_0x4011f5._0x4ee8c3)] ?? fetch, _0x15d960 = _0x5df74d[_0x392684(0x159)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x56bfe6 = typeof _0x5df74d[_0x392684(0x1f7)] === _0x392684(_0x4011f5._0x1d6546) && _0x5df74d[_0x392684(0x1f7)] > 0x0 ? _0x5df74d[_0x392684(_0x4011f5._0xb606ce)] : 0x0, _0x4947c5 = _0x5df74d['daemonLocalUrl']?.[_0x392684(_0x4011f5._0x288ea5)]() || void 0x0, _0x5d991b = _0x5df74d[_0x392684(_0x4011f5._0x299397)]?.['trim']() || void 0x0, _0x228b85 = _0x5df74d[_0x392684(0x1ea)] === !![], _0xfa4e0 = _0x5df74d['workerSessionId']?.['trim']() || void 0x0, _0x2a0de9 = _0x5df74d[_0x392684(_0x4011f5._0x37c85d)]?.[_0x392684(0x293)]() || void 0x0, _0x316d86 = createHeaders(_0x5df74d['daemonApiKey']), _0x1ae1e6 = toHttpBaseUrl(_0x5df74d[_0x392684(_0x4011f5._0x1e62ca)]);
|
|
868
|
-
let _0x7654c5 = null;
|
|
869
|
-
const _0x49a99b = new Map();
|
|
870
|
-
let _0x1a9c8d = _0x56bfe6, _0x81647f = _0x56bfe6;
|
|
871
|
-
function _0x48f0e6(_0x341c5e) {
|
|
872
|
-
const _0x5479ed = _0x392684, _0x48b4db = _0x341c5e[_0x5479ed(_0x366fb8._0x5532f2)][_0x5479ed(_0x366fb8._0x11c6b8)][_0x5479ed(0x213)]('content-type') ?? _0x5479ed(0x1e0), _0x59689f = _0x341c5e['bodyText']['trim']()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5479ed(0x163);
|
|
873
|
-
return _0x5479ed(0x21b) + _0x341c5e[_0x5479ed(_0x366fb8._0x305a4a)] + _0x5479ed(0x162) + _0x341c5e[_0x5479ed(0x294)][_0x5479ed(_0x366fb8._0x29a82a)] + _0x5479ed(_0x366fb8._0x1906ef) + _0x48b4db + _0x5479ed(_0x366fb8._0x547a08) + _0x59689f + _0x5479ed(_0x366fb8._0x25fd10);
|
|
874
|
-
}
|
|
875
|
-
async function _0x41683e(_0x29662b, _0x8b7d88) {
|
|
876
|
-
const _0x1faffc = _0x392684, _0x3f6cf4 = Buffer[_0x1faffc(_0xadd605._0x3a65f6)](await _0x8b7d88[_0x1faffc(_0xadd605._0x42dd19)]())['toString']('utf8');
|
|
877
|
-
if (!_0x3f6cf4[_0x1faffc(0x293)]())
|
|
878
|
-
return {};
|
|
879
|
-
try {
|
|
880
|
-
return JSON[_0x1faffc(0x169)](_0x3f6cf4);
|
|
881
|
-
} catch {
|
|
882
|
-
throw new Error(_0x48f0e6({
|
|
883
|
-
'bodyText': _0x3f6cf4,
|
|
884
|
-
'requestUrl': _0x29662b,
|
|
885
|
-
'response': _0x8b7d88
|
|
886
|
-
}));
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
function _0x4852c(_0xfb15a8, _0x3c5fab) {
|
|
890
|
-
const _0x3067c7 = _0x392684, _0x370a15 = typeof _0x3c5fab['idempotency_key'] === 'string' ? _0x3c5fab[_0x3067c7(_0x1cc249._0x42d099)]['trim']() : '';
|
|
891
|
-
if (_0x370a15)
|
|
892
|
-
return _0x370a15;
|
|
893
|
-
const _0x801bdc = Date[_0x3067c7(_0x1cc249._0x17e838)]();
|
|
894
|
-
for (const [_0x27843c, _0xbe36e3] of _0x49a99b) {
|
|
895
|
-
_0xbe36e3[_0x3067c7(_0x1cc249._0xac17cf)] <= _0x801bdc && _0x49a99b[_0x3067c7(0x182)](_0x27843c);
|
|
896
|
-
}
|
|
897
|
-
const _0x4a9fe4 = {
|
|
898
|
-
..._0x3c5fab,
|
|
899
|
-
'idempotency_key': void 0x0
|
|
900
|
-
}, _0x2d9004 = createHash(_0x3067c7(0x22e))[_0x3067c7(0x18e)](_0xfb15a8 + ':' + stableStringify(_0x4a9fe4))[_0x3067c7(0x289)](_0x3067c7(_0x1cc249._0x3fd6e1)), _0x36756a = _0xfb15a8 + ':' + _0x2d9004, _0x28b0d2 = _0x49a99b[_0x3067c7(_0x1cc249._0x5ca3c5)](_0x36756a);
|
|
901
|
-
if (_0x28b0d2)
|
|
902
|
-
return _0x28b0d2['value'];
|
|
903
|
-
const _0x34f6aa = _0x3067c7(0x173) + _0xfb15a8 + ':' + randomUUID();
|
|
904
|
-
return _0x49a99b[_0x3067c7(0x257)](_0x36756a, {
|
|
905
|
-
'expiresAt': _0x801bdc + 0x5 * 0x3c * 0x3e8,
|
|
906
|
-
'value': _0x34f6aa
|
|
907
|
-
}), _0x34f6aa;
|
|
908
|
-
}
|
|
909
|
-
async function _0x5f00a9(_0x410dbd, _0x49e517) {
|
|
910
|
-
const _0x43e92b = _0x392684, _0x187d43 = new AbortController(), _0x310cdf = setTimeout(() => _0x187d43[_0x43e92b(0x15d)](), _0x15d960), _0x214a3b = _0x49e517?.['signal'] ? anySignal(_0x49e517[_0x43e92b(_0x479e26._0x550958)], _0x187d43['signal']) : _0x187d43[_0x43e92b(0x263)], _0x39848e = '' + _0x1ae1e6 + _0x410dbd;
|
|
911
|
-
try {
|
|
912
|
-
const _0x43ef59 = await _0x26d1b4(_0x39848e, {
|
|
913
|
-
..._0x49e517,
|
|
914
|
-
'signal': _0x214a3b
|
|
915
|
-
}), _0x43d5d4 = await _0x41683e(_0x39848e, _0x43ef59);
|
|
916
|
-
if (!_0x43ef59['ok'] || _0x43d5d4[_0x43e92b(_0x479e26._0x3f8072)] === ![])
|
|
917
|
-
throw new Error(asErrorMessage(_0x43d5d4[_0x43e92b(_0x479e26._0x4496ec)], _0x43e92b(0x123) + _0x43ef59[_0x43e92b(0x270)]));
|
|
918
|
-
return _0x43d5d4;
|
|
919
|
-
} finally {
|
|
920
|
-
clearTimeout(_0x310cdf);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
async function _0x1ce2dd(_0x330be3, _0x1f8578) {
|
|
924
|
-
const _0xcbb989 = _0x392684, _0x288b37 = new AbortController(), _0x44e964 = setTimeout(() => _0x288b37[_0xcbb989(0x15d)](), _0x15d960), _0x8c19d4 = _0x1f8578?.[_0xcbb989(0x263)] ? anySignal(_0x1f8578[_0xcbb989(_0x3e978a._0x6f99d9)], _0x288b37[_0xcbb989(_0x3e978a._0x5ec268)]) : _0x288b37[_0xcbb989(_0x3e978a._0x5b5093)], _0x3789a4 = '' + _0x1ae1e6 + _0x330be3;
|
|
925
|
-
try {
|
|
926
|
-
const _0x37bae6 = await _0x26d1b4(_0x3789a4, {
|
|
927
|
-
..._0x1f8578,
|
|
928
|
-
'signal': _0x8c19d4
|
|
929
|
-
}), _0x47c52a = await _0x41683e(_0x3789a4, _0x37bae6);
|
|
930
|
-
if (!_0x37bae6['ok'])
|
|
931
|
-
throw new Error(asErrorMessage(_0x47c52a[_0xcbb989(_0x3e978a._0x245605)], _0xcbb989(_0x3e978a._0x54c4c7) + _0x37bae6[_0xcbb989(_0x3e978a._0x32fa7b)]));
|
|
932
|
-
return _0x47c52a;
|
|
933
|
-
} finally {
|
|
934
|
-
clearTimeout(_0x44e964);
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
async function _0x531ff0(_0x32bf5d) {
|
|
938
|
-
const _0x2f4bd3 = _0x392684;
|
|
939
|
-
if (!_0x5d991b || _0x32bf5d <= _0x81647f)
|
|
940
|
-
return;
|
|
941
|
-
await _0x5f00a9('/api/agent-sessions/' + encodeURIComponent(_0x5d991b) + _0x2f4bd3(_0x6d2dd._0x1c427f), {
|
|
942
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x32bf5d }),
|
|
943
|
-
'headers': _0x316d86,
|
|
944
|
-
'method': _0x2f4bd3(0x24d)
|
|
945
|
-
}), _0x81647f = _0x32bf5d;
|
|
946
|
-
}
|
|
947
|
-
async function _0x361051(_0x49361c) {
|
|
948
|
-
const _0x2f8124 = _0x392684;
|
|
949
|
-
if (!_0x4947c5 || !_0xfa4e0 || _0x49361c <= _0x81647f)
|
|
950
|
-
return;
|
|
951
|
-
const _0x14693a = await _0x26d1b4(_0x4947c5 + _0x2f8124(_0x8929f8._0x3a9ae3), {
|
|
952
|
-
'body': JSON[_0x2f8124(_0x8929f8._0xf40b7a)]({
|
|
953
|
-
'last_seen_seq': _0x49361c,
|
|
954
|
-
'worker_session_id': _0xfa4e0
|
|
955
|
-
}),
|
|
956
|
-
'headers': { 'Content-Type': _0x2f8124(0x200) },
|
|
957
|
-
'method': _0x2f8124(0x227)
|
|
958
|
-
});
|
|
959
|
-
if (!_0x14693a['ok'])
|
|
960
|
-
throw new Error(_0x2f8124(_0x8929f8._0x1eb94b) + _0x14693a['status']);
|
|
961
|
-
_0x81647f = _0x49361c;
|
|
962
|
-
}
|
|
963
|
-
async function _0x1f76d7(_0x11b702) {
|
|
964
|
-
const _0x49fc7f = _0x392684, _0x175c86 = parseTarget(_0x11b702), _0xc75acb = await _0x5f00a9('/internal/agent/' + _0x5df74d[_0x49fc7f(0x11a)] + _0x49fc7f(0x269), {
|
|
965
|
-
'body': JSON[_0x49fc7f(0x1cc)]({ 'target': _0x175c86['target'] }),
|
|
966
|
-
'headers': _0x316d86,
|
|
967
|
-
'method': _0x49fc7f(0x227)
|
|
968
|
-
});
|
|
969
|
-
return {
|
|
970
|
-
'channelId': _0xc75acb['data']?.[_0x49fc7f(0x1a7)] ?? '',
|
|
971
|
-
'target': _0x175c86[_0x49fc7f(_0x4643d0._0x4ba066)],
|
|
972
|
-
'task': _0xc75acb[_0x49fc7f(0x290)]?.[_0x49fc7f(0x15f)],
|
|
973
|
-
'threadId': _0xc75acb[_0x49fc7f(_0x4643d0._0x4b17d4)]?.[_0x49fc7f(_0x4643d0._0x371389)],
|
|
974
|
-
'threadNumber': _0xc75acb[_0x49fc7f(_0x4643d0._0x4af8c8)]?.[_0x49fc7f(0x231)]
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
async function _0x315294(_0x3f55ac = {}) {
|
|
978
|
-
const _0x517337 = _0x392684;
|
|
979
|
-
if (!_0x3f55ac[_0x517337(0x19b)] && _0x7654c5)
|
|
980
|
-
return _0x7654c5;
|
|
981
|
-
return _0x7654c5 = (async () => {
|
|
982
|
-
const _0x3ccdcd = _0x517337, _0x121d88 = await _0x5f00a9(_0x3ccdcd(_0x1387db._0xd1bd89) + _0x5df74d['agentId'] + _0x3ccdcd(_0x1387db._0x1bb9d6), {
|
|
983
|
-
'headers': _0x316d86,
|
|
984
|
-
'method': _0x3ccdcd(_0x1387db._0x10a996)
|
|
985
|
-
}), _0x14add1 = _0x121d88[_0x3ccdcd(0x290)]?.['members'] ?? [], _0x26d57f = _0x14add1[_0x3ccdcd(_0x1387db._0x58f55e)](_0x321b88 => _0x321b88[_0x3ccdcd(0x25d)]?.[_0x3ccdcd(0x28a)] === _0x3ccdcd(0x2a1))['map'](_0x2769e4 => ({
|
|
986
|
-
'id': _0x21d6b8(_0x2769e4),
|
|
987
|
-
'name': _0x4969ed(_0x2769e4)
|
|
988
|
-
}))[_0x3ccdcd(_0x1387db._0x58f55e)](_0x94f2d8 => _0x94f2d8['id']), _0x5a9991 = _0x14add1['filter'](_0x79d8a7 => _0x79d8a7[_0x3ccdcd(0x25d)]?.['type'] !== 'agent')[_0x3ccdcd(0x1be)](_0x21d1e8 => ({
|
|
989
|
-
'id': _0x21d6b8(_0x21d1e8),
|
|
990
|
-
'name': _0x4969ed(_0x21d1e8)
|
|
991
|
-
}))['filter'](_0x168099 => _0x168099['id']), _0x5e80c3 = _0x121d88[_0x3ccdcd(0x290)]?.[_0x3ccdcd(_0x1387db._0x2e78fa)]['id'] ?? '';
|
|
992
|
-
return {
|
|
993
|
-
'agents': _0x26d57f,
|
|
994
|
-
'channels': _0x121d88['data']?.[_0x3ccdcd(0x1a8)] ?? [],
|
|
995
|
-
'humans': _0x5a9991,
|
|
996
|
-
'serverId': _0x5e80c3,
|
|
997
|
-
'serverName': _0x121d88[_0x3ccdcd(0x290)]?.[_0x3ccdcd(0x239)][_0x3ccdcd(_0x1387db._0x2eecf7)] ?? _0x5e80c3
|
|
998
|
-
};
|
|
999
|
-
})()[_0x517337(_0x14d545._0x3fbb5d)](_0x411d9d => {
|
|
1000
|
-
_0x7654c5 = null;
|
|
1001
|
-
throw _0x411d9d;
|
|
1002
|
-
}), _0x7654c5;
|
|
1003
|
-
}
|
|
1004
|
-
function _0x3d804e(_0x2edcf2, _0x4f0af9) {
|
|
1005
|
-
const _0x2e18ed = _0x392684;
|
|
1006
|
-
return _0x4f0af9[_0x2e18ed(_0x20ee86._0x2db5bc)]['some'](_0x220bed => _0x220bed['id'] === _0x2edcf2 || _0x220bed[_0x2e18ed(0x1ba)] === _0x2edcf2) ? _0x2e18ed(_0x20ee86._0x56a916) : _0x2e18ed(_0x20ee86._0x196b7f);
|
|
1007
|
-
}
|
|
1008
|
-
function _0x118dc5(_0x24bab2) {
|
|
1009
|
-
const _0xe91c2e = _0x392684;
|
|
1010
|
-
if (_0x24bab2['threadNumber'] != null)
|
|
1011
|
-
return _0x24bab2[_0xe91c2e(0x266)] + ':t' + _0x24bab2[_0xe91c2e(_0x2f5bb1._0x5288d7)];
|
|
1012
|
-
if (_0x24bab2[_0xe91c2e(0x1f0)])
|
|
1013
|
-
return _0x24bab2[_0xe91c2e(0x266)] + ':' + _0x24bab2[_0xe91c2e(0x1f0)];
|
|
1014
|
-
if (_0x24bab2[_0xe91c2e(_0x2f5bb1._0x320763)])
|
|
1015
|
-
return _0x24bab2[_0xe91c2e(0x266)] + ':' + _0x24bab2[_0xe91c2e(0x24c)][_0xe91c2e(0x16e)](0x0, 0x8);
|
|
1016
|
-
return _0x24bab2['channelTarget'];
|
|
1017
|
-
}
|
|
1018
|
-
function _0x53854f(_0x42d52c, _0x33e0e2) {
|
|
1019
|
-
const _0x299dd0 = _0x392684;
|
|
1020
|
-
try {
|
|
1021
|
-
const _0x2afb67 = parseTarget(_0x42d52c);
|
|
1022
|
-
if (_0x2afb67[_0x299dd0(0x258)] !== _0x299dd0(_0x3891ec._0x155ab2) || _0x2afb67[_0x299dd0(_0x3891ec._0x3ddb0b)] !== _0x33e0e2['channelTarget'])
|
|
1023
|
-
return ![];
|
|
1024
|
-
if (_0x33e0e2[_0x299dd0(_0x3891ec._0x53bd4f)] != null && _0x2afb67['threadShortId'] === 't' + _0x33e0e2['threadNumber'])
|
|
1025
|
-
return !![];
|
|
1026
|
-
if (_0x33e0e2[_0x299dd0(_0x3891ec._0x3956bd)])
|
|
1027
|
-
return _0x2afb67[_0x299dd0(0x1f4)] === _0x33e0e2['rootMessageId'] || _0x33e0e2[_0x299dd0(_0x3891ec._0x3956bd)][_0x299dd0(_0x3891ec._0x58191d)](_0x2afb67[_0x299dd0(0x1f4)]);
|
|
1028
|
-
if (_0x33e0e2[_0x299dd0(_0x3891ec._0x244373)])
|
|
1029
|
-
return _0x2afb67[_0x299dd0(0x1f4)] === _0x33e0e2[_0x299dd0(_0x3891ec._0x244373)] || _0x33e0e2[_0x299dd0(0x24c)]['startsWith'](_0x2afb67['threadShortId']);
|
|
1030
|
-
return ![];
|
|
1031
|
-
} catch {
|
|
1032
|
-
return ![];
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
function _0x21d6b8(_0x58730f) {
|
|
1036
|
-
const _0x5210a6 = _0x392684;
|
|
1037
|
-
return _0x58730f[_0x5210a6(0x149)]?.['participantId'] ?? _0x58730f['participant']?.['id'] ?? _0x58730f[_0x5210a6(_0x24b49a._0x508f6b)] ?? '';
|
|
1038
|
-
}
|
|
1039
|
-
function _0x4969ed(_0x23d62) {
|
|
1040
|
-
const _0x2f700a = _0x392684;
|
|
1041
|
-
return _0x23d62[_0x2f700a(_0x4fe121._0x1b7d8d)]?.[_0x2f700a(_0x4fe121._0x2d0eb5)] ?? _0x21d6b8(_0x23d62);
|
|
1042
|
-
}
|
|
1043
|
-
async function _0x55dcd3(_0x378b79) {
|
|
1044
|
-
const _0x5805e4 = _0x392684, _0x2ef290 = Math[_0x5805e4(0x21f)](_0x378b79['limit'] ?? 0x32, 0x64), _0x5c3f28 = await _0x315294(), _0x4cc35e = new URLSearchParams();
|
|
1045
|
-
_0x4cc35e[_0x5805e4(_0x8d5f6b._0x1d759c)]('limit', String(_0x2ef290));
|
|
1046
|
-
_0x378b79[_0x5805e4(_0x8d5f6b._0x4a9637)] ? (_0x4cc35e[_0x5805e4(0x257)](_0x5805e4(0x24c), _0x378b79['threadId']), _0x4cc35e[_0x5805e4(_0x8d5f6b._0x1c1e2a)]('channelId', _0x378b79['channelId'])) : _0x4cc35e[_0x5805e4(0x257)](_0x5805e4(0x1a7), _0x378b79[_0x5805e4(_0x8d5f6b._0x383fc7)]);
|
|
1047
|
-
_0x378b79[_0x5805e4(0x170)] && _0x4cc35e[_0x5805e4(_0x8d5f6b._0x1d759c)](_0x5805e4(0x232), String(_0x378b79['before']));
|
|
1048
|
-
_0x378b79[_0x5805e4(0x21d)] !== void 0x0 && _0x4cc35e[_0x5805e4(0x257)](_0x5805e4(_0x8d5f6b._0x56c632), String(_0x378b79[_0x5805e4(_0x8d5f6b._0x5cab96)]));
|
|
1049
|
-
const _0x227286 = await _0x5f00a9(_0x5805e4(_0x8d5f6b._0x2997d7) + _0x5df74d[_0x5805e4(_0x8d5f6b._0x141325)] + _0x5805e4(_0x8d5f6b._0x3fa425) + _0x4cc35e['toString'](), {
|
|
1050
|
-
'headers': _0x316d86,
|
|
1051
|
-
'method': _0x5805e4(0x286)
|
|
1052
|
-
}), _0xe78ec2 = (_0x227286[_0x5805e4(0x290)] ?? [])['map'](_0x207752 => ({
|
|
1053
|
-
'attachments': (_0x207752[_0x5805e4(0x1bb)] ?? [])[_0x5805e4(0x1be)](_0x59e6b3 => ({
|
|
1054
|
-
'filename': _0x59e6b3[_0x5805e4(0x12f)] ?? _0x59e6b3['id'],
|
|
1055
|
-
'id': _0x59e6b3['id']
|
|
1056
|
-
})),
|
|
1057
|
-
'content': _0x207752['bodyMarkdown'] ?? '',
|
|
1058
|
-
'createdAt': _0x207752[_0x5805e4(0x248)],
|
|
1059
|
-
..._0x207752['kind'] && _0x207752[_0x5805e4(0x258)] !== _0x5805e4(0x1cf) ? { 'kind': _0x207752[_0x5805e4(0x258)] } : {},
|
|
1060
|
-
'messageId': _0x207752['id'],
|
|
1061
|
-
'senderName': _0x207752[_0x5805e4(0x18d)],
|
|
1062
|
-
'senderType': _0x3d804e(_0x207752[_0x5805e4(0x18d)], _0x5c3f28),
|
|
1063
|
-
'seq': _0x207752[_0x5805e4(0x152)] ?? 0x0
|
|
1064
|
-
}));
|
|
1065
|
-
return {
|
|
1066
|
-
'channel': _0x378b79[_0x5805e4(_0x8d5f6b._0x44e398)],
|
|
1067
|
-
'hasMore': _0x227286[_0x5805e4(0x180)]?.[_0x5805e4(_0x8d5f6b._0x495bf8)] ?? ![],
|
|
1068
|
-
'messages': _0xe78ec2,
|
|
1069
|
-
'nextCursor': _0x227286[_0x5805e4(_0x8d5f6b._0x4e9d54)]?.[_0x5805e4(0x232)]
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
return {
|
|
1073
|
-
async 'sendMessage'(_0x58f8d2) {
|
|
1074
|
-
const _0x202b5f = _0x392684, _0xeb6572 = await _0x1f76d7(_0x58f8d2[_0x202b5f(0x166)]), _0x55a7ec = _0x58f8d2['content'][_0x202b5f(0x12e)]('@') ? extractMentionedParticipantIds(_0x58f8d2[_0x202b5f(_0x1e7fb8._0x47f3ad)], await _0x315294()) : [], _0x39471c = await _0x5f00a9(_0x202b5f(0x274) + _0x5df74d['agentId'] + '/send', {
|
|
1075
|
-
'body': JSON[_0x202b5f(0x1cc)]({
|
|
1076
|
-
'attachment_ids': _0x58f8d2[_0x202b5f(0x155)],
|
|
1077
|
-
'bodyMarkdown': _0x58f8d2['content'],
|
|
1078
|
-
'channelId': _0xeb6572[_0x202b5f(0x1a7)],
|
|
1079
|
-
..._0x55a7ec['length'] > 0x0 ? { 'mentionedParticipantIds': _0x55a7ec } : {},
|
|
1080
|
-
'threadId': _0xeb6572[_0x202b5f(_0x1e7fb8._0x5a58c6)],
|
|
1081
|
-
..._0x58f8d2[_0x202b5f(_0x1e7fb8._0x451f14)] ? { 'visibility': _0x58f8d2[_0x202b5f(0x1d4)] } : {}
|
|
1082
|
-
}),
|
|
1083
|
-
'headers': _0x316d86,
|
|
1084
|
-
'method': 'POST'
|
|
1085
|
-
});
|
|
1086
|
-
return { 'messageId': _0x39471c['data']?.['id'] ?? '' };
|
|
1087
|
-
},
|
|
1088
|
-
async 'listSchedules'() {
|
|
1089
|
-
const _0x22e90f = _0x392684, _0x33b2e0 = await _0x5f00a9('/api/internal/schedules', {
|
|
1090
|
-
'headers': _0x316d86,
|
|
1091
|
-
'method': _0x22e90f(0x286)
|
|
1092
|
-
});
|
|
1093
|
-
return _0x33b2e0['data'] ?? [];
|
|
1094
|
-
},
|
|
1095
|
-
async 'claimScheduleRun'(_0x1165d9) {
|
|
1096
|
-
const _0x2ac8ac = _0x392684, _0x5b7fae = await _0x5f00a9(_0x2ac8ac(_0x56b65f._0x143d50), {
|
|
1097
|
-
'body': JSON[_0x2ac8ac(_0x56b65f._0xc43261)](_0x1165d9),
|
|
1098
|
-
'headers': _0x316d86,
|
|
1099
|
-
'method': _0x2ac8ac(0x227)
|
|
1100
|
-
});
|
|
1101
|
-
return _0x5b7fae[_0x2ac8ac(_0x56b65f._0x2f7bcd)] ?? {
|
|
1102
|
-
'granted': ![],
|
|
1103
|
-
'runId': null,
|
|
1104
|
-
'schedule': null,
|
|
1105
|
-
'scheduledFor': _0x1165d9[_0x2ac8ac(0x13f)]
|
|
1106
|
-
};
|
|
1107
|
-
},
|
|
1108
|
-
async 'startScheduleRun'(_0x8dfaf3) {
|
|
1109
|
-
const _0x52350a = _0x392684, _0x1d817b = await _0x5f00a9(_0x52350a(0x17d) + encodeURIComponent(_0x8dfaf3['runId']) + _0x52350a(_0x49a9ff._0x355c58), {
|
|
1110
|
-
'body': JSON[_0x52350a(_0x49a9ff._0x4d9546)]({}),
|
|
1111
|
-
'headers': _0x316d86,
|
|
1112
|
-
'method': _0x52350a(0x227)
|
|
1113
|
-
});
|
|
1114
|
-
return _0x1d817b[_0x52350a(0x290)] ?? {
|
|
1115
|
-
'claimedByDaemonId': '',
|
|
1116
|
-
'id': _0x8dfaf3[_0x52350a(0x18a)],
|
|
1117
|
-
'scheduleId': '',
|
|
1118
|
-
'status': _0x52350a(0x299)
|
|
1119
|
-
};
|
|
1120
|
-
},
|
|
1121
|
-
async 'finishScheduleRun'(_0x3de021) {
|
|
1122
|
-
const _0x559952 = _0x392684, _0x561c12 = await _0x5f00a9(_0x559952(_0x1bd002._0x5679ba) + encodeURIComponent(_0x3de021[_0x559952(_0x1bd002._0x4d2768)]) + _0x559952(0x23a), {
|
|
1123
|
-
'body': JSON[_0x559952(0x1cc)]({
|
|
1124
|
-
'error': _0x3de021[_0x559952(_0x1bd002._0x133498)],
|
|
1125
|
-
'resultJson': _0x3de021['resultJson'],
|
|
1126
|
-
'status': _0x3de021[_0x559952(_0x1bd002._0x4bae78)]
|
|
1127
|
-
}),
|
|
1128
|
-
'headers': _0x316d86,
|
|
1129
|
-
'method': 'POST'
|
|
1130
|
-
});
|
|
1131
|
-
return _0x561c12[_0x559952(0x290)] ?? {
|
|
1132
|
-
'nextRunAt': null,
|
|
1133
|
-
'run': {
|
|
1134
|
-
'claimedByDaemonId': '',
|
|
1135
|
-
'id': _0x3de021[_0x559952(0x18a)],
|
|
1136
|
-
'scheduleId': '',
|
|
1137
|
-
'status': _0x3de021['status']
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
},
|
|
1141
|
-
async 'listTasks'(_0x50eddf) {
|
|
1142
|
-
const _0x52aa47 = _0x392684, _0xea606b = new URLSearchParams();
|
|
1143
|
-
return _0xea606b['set']('channel', _0x50eddf[_0x52aa47(_0x3286be._0x5712ac)]), _0x50eddf['status'] && _0xea606b[_0x52aa47(0x257)](_0x52aa47(_0x3286be._0x21cd07), _0x50eddf[_0x52aa47(_0x3286be._0x289d52)]), _0x1ce2dd(_0x52aa47(_0x3286be._0x44ed91) + _0x5df74d[_0x52aa47(_0x3286be._0x127088)] + _0x52aa47(_0x3286be._0x28d1bc) + _0xea606b['toString'](), {
|
|
1144
|
-
'headers': _0x316d86,
|
|
1145
|
-
'method': 'GET'
|
|
1146
|
-
});
|
|
1147
|
-
},
|
|
1148
|
-
async 'createTasks'(_0xdc982d) {
|
|
1149
|
-
const _0x2deeb1 = _0x392684;
|
|
1150
|
-
return _0x1ce2dd('/internal/agent/' + _0x5df74d[_0x2deeb1(_0x48b349._0x7eaf4e)] + _0x2deeb1(0x18f), {
|
|
1151
|
-
'body': JSON['stringify']({
|
|
1152
|
-
..._0xdc982d,
|
|
1153
|
-
'idempotency_key': _0x4852c('create_tasks', _0xdc982d)
|
|
1154
|
-
}),
|
|
1155
|
-
'headers': _0x316d86,
|
|
1156
|
-
'method': _0x2deeb1(0x227)
|
|
1157
|
-
});
|
|
1158
|
-
},
|
|
1159
|
-
async 'claimTasks'(_0xa32897) {
|
|
1160
|
-
const _0x570a85 = _0x392684;
|
|
1161
|
-
return _0x1ce2dd('/internal/agent/' + _0x5df74d[_0x570a85(_0x377b53._0x458747)] + _0x570a85(_0x377b53._0x40b572), {
|
|
1162
|
-
'body': JSON[_0x570a85(0x1cc)]({
|
|
1163
|
-
..._0xa32897,
|
|
1164
|
-
'idempotency_key': _0x4852c(_0x570a85(0x153), _0xa32897)
|
|
1165
|
-
}),
|
|
1166
|
-
'headers': _0x316d86,
|
|
1167
|
-
'method': _0x570a85(_0x377b53._0x19b3b0)
|
|
1168
|
-
});
|
|
1169
|
-
},
|
|
1170
|
-
async 'unclaimTask'(_0x3110eb) {
|
|
1171
|
-
const _0x17fc3e = _0x392684;
|
|
1172
|
-
return _0x1ce2dd(_0x17fc3e(0x274) + _0x5df74d[_0x17fc3e(_0x21bb76._0x5dbe01)] + _0x17fc3e(_0x21bb76._0x1ae730), {
|
|
1173
|
-
'body': JSON[_0x17fc3e(_0x21bb76._0x4e5f84)]({
|
|
1174
|
-
..._0x3110eb,
|
|
1175
|
-
'idempotency_key': _0x4852c(_0x17fc3e(_0x21bb76._0x5f155f), _0x3110eb)
|
|
1176
|
-
}),
|
|
1177
|
-
'headers': _0x316d86,
|
|
1178
|
-
'method': _0x17fc3e(0x227)
|
|
1179
|
-
});
|
|
1180
|
-
},
|
|
1181
|
-
async 'updateTaskStatus'(_0x503345) {
|
|
1182
|
-
const _0x37aedb = _0x392684;
|
|
1183
|
-
return _0x1ce2dd('/internal/agent/' + _0x5df74d[_0x37aedb(0x11a)] + '/tasks/update-status', {
|
|
1184
|
-
'body': JSON['stringify']({
|
|
1185
|
-
..._0x503345,
|
|
1186
|
-
'idempotency_key': _0x4852c(_0x37aedb(0x179), _0x503345)
|
|
1187
|
-
}),
|
|
1188
|
-
'headers': _0x316d86,
|
|
1189
|
-
'method': _0x37aedb(0x227)
|
|
1190
|
-
});
|
|
1191
|
-
},
|
|
1192
|
-
async 'uploadFile'(_0x535657) {
|
|
1193
|
-
const _0x137f37 = _0x392684, _0x5ec616 = await _0x1f76d7(_0x535657[_0x137f37(0x268)]);
|
|
1194
|
-
if (_0x5ec616[_0x137f37(0x24c)])
|
|
1195
|
-
throw new Error(_0x137f37(_0x3e2e85._0x51a6ac));
|
|
1196
|
-
const _0x52f7e9 = await _0x5f00a9('/internal/agent/' + _0x5df74d[_0x137f37(_0x3e2e85._0x13ac2c)] + _0x137f37(_0x3e2e85._0xe44f6b), {
|
|
1197
|
-
'body': JSON['stringify']({
|
|
1198
|
-
'channel': _0x5ec616[_0x137f37(_0x3e2e85._0x21b24e)],
|
|
1199
|
-
'contentBase64': _0x535657[_0x137f37(_0x3e2e85._0x56a105)],
|
|
1200
|
-
'contentType': _0x535657[_0x137f37(_0x3e2e85._0x19cd2f)],
|
|
1201
|
-
'originalFilename': _0x535657[_0x137f37(0x12f)]
|
|
1202
|
-
}),
|
|
1203
|
-
'headers': _0x316d86,
|
|
1204
|
-
'method': 'POST'
|
|
1205
|
-
});
|
|
1206
|
-
return {
|
|
1207
|
-
'attachmentId': _0x52f7e9[_0x137f37(0x290)]?.['id'] ?? '',
|
|
1208
|
-
'filename': _0x52f7e9[_0x137f37(0x290)]?.[_0x137f37(_0x3e2e85._0x26569)] ?? _0x535657['filename'],
|
|
1209
|
-
'sizeBytes': _0x52f7e9[_0x137f37(0x290)]?.[_0x137f37(0x26e)] ?? 0x0
|
|
1210
|
-
};
|
|
1211
|
-
},
|
|
1212
|
-
async 'downloadAttachment'(_0x90cff9) {
|
|
1213
|
-
const _0xc2443b = _0x392684, _0x4de95f = await _0x5f00a9(_0xc2443b(0x296) + _0x90cff9, {
|
|
1214
|
-
'headers': _0x316d86,
|
|
1215
|
-
'method': _0xc2443b(0x286)
|
|
1216
|
-
}), _0x114f51 = new AbortController(), _0x31fd69 = setTimeout(() => _0x114f51['abort'](), _0x15d960);
|
|
1217
|
-
try {
|
|
1218
|
-
const _0x5801f1 = await _0x26d1b4(_0x1ae1e6 + _0xc2443b(0x296) + _0x90cff9 + _0xc2443b(_0x1ae5ec._0x1fa5ba), {
|
|
1219
|
-
'headers': _0x316d86,
|
|
1220
|
-
'method': _0xc2443b(0x286),
|
|
1221
|
-
'signal': _0x114f51[_0xc2443b(0x263)]
|
|
1222
|
-
});
|
|
1223
|
-
if (!_0x5801f1['ok'])
|
|
1224
|
-
throw new Error(_0xc2443b(0x123) + _0x5801f1[_0xc2443b(0x270)]);
|
|
1225
|
-
return {
|
|
1226
|
-
'contentType': _0x4de95f[_0xc2443b(_0x1ae5ec._0x3fa537)]?.[_0xc2443b(0x1ee)] ?? _0x5801f1[_0xc2443b(0x12a)]['get']('content-type') ?? _0xc2443b(0x260),
|
|
1227
|
-
'data': Buffer['from'](await _0x5801f1['arrayBuffer']()),
|
|
1228
|
-
'originalFilename': _0x4de95f[_0xc2443b(_0x1ae5ec._0x3fa537)]?.['originalFilename']
|
|
1229
|
-
};
|
|
1230
|
-
} finally {
|
|
1231
|
-
clearTimeout(_0x31fd69);
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
async 'listServer'() {
|
|
1235
|
-
return _0x315294({ 'forceRefresh': !![] });
|
|
1236
|
-
},
|
|
1237
|
-
async 'readHistory'(_0x53e645) {
|
|
1238
|
-
const _0x31929f = _0x392684, _0x4560f1 = await _0x1f76d7(_0x53e645['channel']);
|
|
1239
|
-
return _0x55dcd3({
|
|
1240
|
-
'after': _0x53e645[_0x31929f(0x21d)],
|
|
1241
|
-
'before': _0x53e645[_0x31929f(_0x26e747._0x1a490b)],
|
|
1242
|
-
'channelId': _0x4560f1[_0x31929f(0x1a7)],
|
|
1243
|
-
'channelTarget': _0x4560f1[_0x31929f(0x166)],
|
|
1244
|
-
'limit': _0x53e645['limit'],
|
|
1245
|
-
'threadId': _0x4560f1[_0x31929f(_0x26e747._0x515c39)]
|
|
1246
|
-
});
|
|
1247
|
-
},
|
|
1248
|
-
'resolveTarget': _0x1f76d7,
|
|
1249
|
-
async 'checkMessages'() {
|
|
1250
|
-
const _0x3c5e77 = {
|
|
1251
|
-
_0xb43ed: 0x1a7,
|
|
1252
|
-
_0x3774b3: 0x138
|
|
1253
|
-
}, _0x16abbc = _0x392684, _0x3d11e9 = new URLSearchParams();
|
|
1254
|
-
_0x3d11e9[_0x16abbc(0x257)](_0x16abbc(0x15b), String(_0x1a9c8d));
|
|
1255
|
-
const _0x460f94 = _0x3d11e9['toString'](), _0x21ddbb = await _0x5f00a9(_0x16abbc(0x274) + _0x5df74d['agentId'] + _0x16abbc(0x284) + (_0x460f94 ? '?' + _0x460f94 : ''), {
|
|
1256
|
-
'headers': _0x316d86,
|
|
1257
|
-
'method': _0x16abbc(_0x4543a0._0x21c467)
|
|
1258
|
-
}), _0x4ee05c = _0x21ddbb['data'] ?? [], _0x5e5697 = _0x21ddbb[_0x16abbc(_0x4543a0._0x2808dc)]?.[_0x16abbc(0x232)], _0x30adf5 = _0x5e5697 !== void 0x0 ? Math[_0x16abbc(0x28b)](_0x1a9c8d, _0x5e5697) : _0x4ee05c[_0x16abbc(_0x4543a0._0x4a965e)] > 0x0 ? Math[_0x16abbc(0x28b)](_0x1a9c8d, _0x4ee05c[_0x4ee05c[_0x16abbc(0x135)] - 0x1][_0x16abbc(_0x4543a0._0xbd3860)]) : _0x1a9c8d, _0x5ea15a = _0x4ee05c[_0x16abbc(0x238)](_0x3430ed => _0x3430ed[_0x16abbc(0x287)] === _0x16abbc(0x25e)), _0x2948af = _0x2a0de9 === void 0x0 && _0x228b85;
|
|
1259
|
-
let _0x5da524 = await _0x315294(), _0x4f6b8a = new Map(_0x5da524[_0x16abbc(0x1a8)]['map'](_0x78d5d8 => [
|
|
1260
|
-
_0x78d5d8['id'],
|
|
1261
|
-
_0x78d5d8
|
|
1262
|
-
]));
|
|
1263
|
-
const _0x456a54 = _0x5ea15a[_0x16abbc(_0x4543a0._0x202adb)](_0x5a9e5e => {
|
|
1264
|
-
const _0x4ded13 = _0x16abbc, _0x420041 = asRecord(_0x5a9e5e['payloadJson']), _0x473e05 = typeof _0x420041?.[_0x4ded13(_0x3c5e77._0xb43ed)] === _0x4ded13(_0x3c5e77._0x3774b3) ? _0x420041[_0x4ded13(0x1a7)] : '';
|
|
1265
|
-
return Boolean(_0x473e05) && !_0x4f6b8a[_0x4ded13(0x2a0)](_0x473e05);
|
|
1266
|
-
});
|
|
1267
|
-
_0x456a54 && (_0x5da524 = await _0x315294({ 'forceRefresh': !![] }), _0x4f6b8a = new Map(_0x5da524[_0x16abbc(0x1a8)][_0x16abbc(0x1be)](_0x535585 => [
|
|
1268
|
-
_0x535585['id'],
|
|
1269
|
-
_0x535585
|
|
1270
|
-
])));
|
|
1271
|
-
const _0xb90023 = new Map();
|
|
1272
|
-
for (const _0x446aae of _0x5ea15a) {
|
|
1273
|
-
const _0x3b870b = asRecord(_0x446aae[_0x16abbc(_0x4543a0._0x126e13)]), _0x698362 = typeof _0x3b870b[_0x16abbc(0x1a7)] === _0x16abbc(0x138) ? _0x3b870b[_0x16abbc(_0x4543a0._0x2e0500)] : '';
|
|
1274
|
-
if (!_0x698362)
|
|
1275
|
-
continue;
|
|
1276
|
-
const _0x1c449c = typeof _0x3b870b[_0x16abbc(0x24c)] === 'string' ? _0x3b870b[_0x16abbc(_0x4543a0._0x5a748a)] : void 0x0, _0x2cffc3 = typeof _0x3b870b[_0x16abbc(0x1f0)] === _0x16abbc(0x138) ? _0x3b870b['rootMessageId'] : void 0x0, _0x59c0b3 = typeof _0x3b870b[_0x16abbc(_0x4543a0._0x2cdf69)] === _0x16abbc(_0x4543a0._0x454581) && Number[_0x16abbc(_0x4543a0._0x8ba5ab)](_0x3b870b['threadNumber']) ? _0x3b870b['threadNumber'] : void 0x0, _0x9b3229 = Boolean(_0x1c449c && (!_0x2cffc3 || _0x446aae['aggregateId'] !== _0x2cffc3)), _0x447ab0 = _0x9b3229 ? _0x698362 + ':' + _0x1c449c : _0x698362, _0x40f487 = _0xb90023[_0x16abbc(_0x4543a0._0x204e73)](_0x447ab0) ?? {
|
|
1277
|
-
'aggregateIds': [],
|
|
1278
|
-
'channelId': _0x698362,
|
|
1279
|
-
'entries': new Map(),
|
|
1280
|
-
'isThreadReply': _0x9b3229,
|
|
1281
|
-
'rootMessageId': _0x2cffc3,
|
|
1282
|
-
'threadNumber': _0x59c0b3,
|
|
1283
|
-
'threadId': _0x9b3229 ? _0x1c449c : void 0x0
|
|
1284
|
-
};
|
|
1285
|
-
_0x40f487[_0x16abbc(_0x4543a0._0x2cdf69)] == null && _0x59c0b3 != null && (_0x40f487[_0x16abbc(0x231)] = _0x59c0b3), !_0x40f487[_0x16abbc(_0x4543a0._0x485fcf)] && _0x2cffc3 && (_0x40f487[_0x16abbc(0x1f0)] = _0x2cffc3), _0x40f487[_0x16abbc(_0x4543a0._0x8c1fb9)][_0x16abbc(0x288)](_0x446aae[_0x16abbc(_0x4543a0._0x5d052a)]), _0x40f487[_0x16abbc(0x1f6)][_0x16abbc(_0x4543a0._0xd9a5)](_0x446aae[_0x16abbc(0x2a2)], {
|
|
1286
|
-
'payloadJson': _0x446aae[_0x16abbc(_0x4543a0._0x4678c5)],
|
|
1287
|
-
'seq': _0x446aae[_0x16abbc(0x183)]
|
|
1288
|
-
}), _0xb90023[_0x16abbc(0x257)](_0x447ab0, _0x40f487);
|
|
1289
|
-
}
|
|
1290
|
-
const _0x342e8d = [];
|
|
1291
|
-
for (const _0x25c705 of _0xb90023['values']()) {
|
|
1292
|
-
const {
|
|
1293
|
-
channelId: _0x3dbdac,
|
|
1294
|
-
threadId: _0x473ad9,
|
|
1295
|
-
rootMessageId: _0x1d8a36,
|
|
1296
|
-
threadNumber: _0x160f78,
|
|
1297
|
-
aggregateIds: _0x1cd3fc,
|
|
1298
|
-
isThreadReply: _0x5b2d0e,
|
|
1299
|
-
entries: _0x394c30
|
|
1300
|
-
} = _0x25c705, _0x3bdc34 = _0x4f6b8a[_0x16abbc(0x213)](_0x3dbdac), _0x71babf = _0x3bdc34?.[_0x16abbc(_0x4543a0._0x20fd16)] ?? _0x3dbdac, _0x1f5123 = _0x3bdc34?.[_0x16abbc(_0x4543a0._0x2c0556)] === 'dm' ? 'dm:' + _0x71babf : '#' + _0x71babf, _0x56bf40 = {
|
|
1301
|
-
'channelTarget': _0x1f5123,
|
|
1302
|
-
'rootMessageId': _0x1d8a36,
|
|
1303
|
-
'threadId': _0x473ad9,
|
|
1304
|
-
'threadNumber': _0x160f78
|
|
1305
|
-
}, _0x4c1de8 = await _0x55dcd3({
|
|
1306
|
-
'channelId': _0x3dbdac,
|
|
1307
|
-
'channelTarget': _0x1f5123,
|
|
1308
|
-
'limit': Math[_0x16abbc(0x28b)](_0x1cd3fc[_0x16abbc(0x135)], 0x32),
|
|
1309
|
-
'threadId': _0x473ad9
|
|
1310
|
-
}), _0x2599aa = new Map(_0x4c1de8[_0x16abbc(0x137)]['map'](_0x4eeb3a => [
|
|
1311
|
-
_0x4eeb3a[_0x16abbc(0x24b)],
|
|
1312
|
-
_0x4eeb3a
|
|
1313
|
-
])), _0x1b4b52 = _0x473ad9 ? _0x118dc5(_0x56bf40) : _0x1f5123, _0x58126a = _0x2a0de9 ? _0x5b2d0e && _0x53854f(_0x2a0de9, _0x56bf40) : !![], _0x4e8bd9 = _0x5b2d0e ? _0x58126a && _0x2a0de9 ? _0x2a0de9 : _0x1b4b52 : _0x1f5123;
|
|
1314
|
-
for (const _0x320068 of _0x1cd3fc) {
|
|
1315
|
-
if (!_0x58126a)
|
|
1316
|
-
continue;
|
|
1317
|
-
const _0x518582 = _0x394c30[_0x16abbc(_0x4543a0._0x272297)](_0x320068), _0x481a7a = _0x518582 ? asRecord(_0x518582['payloadJson']) : void 0x0, _0x1d87de = _0x481a7a?.[_0x16abbc(_0x4543a0._0x11eb20)] === _0x16abbc(_0x4543a0._0x40d1d0);
|
|
1318
|
-
if (_0x2948af && _0x1d87de)
|
|
1319
|
-
continue;
|
|
1320
|
-
const _0x131186 = _0x2599aa[_0x16abbc(_0x4543a0._0x4f3d73)](_0x320068);
|
|
1321
|
-
if (_0x131186) {
|
|
1322
|
-
_0x342e8d[_0x16abbc(_0x4543a0._0x433f03)]({
|
|
1323
|
-
'attachments': _0x131186['attachments'],
|
|
1324
|
-
'content': _0x131186['content'],
|
|
1325
|
-
'createdAt': _0x131186[_0x16abbc(0x248)],
|
|
1326
|
-
..._0x131186[_0x16abbc(_0x4543a0._0x2c0556)] ? { 'kind': _0x131186[_0x16abbc(_0x4543a0._0x2c0556)] } : {},
|
|
1327
|
-
'messageId': _0x131186['messageId'],
|
|
1328
|
-
'senderName': _0x131186['senderName'],
|
|
1329
|
-
'senderType': _0x131186[_0x16abbc(_0x4543a0._0x5a5aa7)],
|
|
1330
|
-
'target': _0x4e8bd9,
|
|
1331
|
-
..._0x1d87de ? { 'targetedTask': !![] } : {}
|
|
1332
|
-
});
|
|
1333
|
-
continue;
|
|
1334
|
-
}
|
|
1335
|
-
if (_0x518582) {
|
|
1336
|
-
const _0x1c39c4 = typeof _0x481a7a?.[_0x16abbc(0x18d)] === _0x16abbc(_0x4543a0._0x4916f8) ? _0x481a7a['senderParticipantId'] : '', _0x2cd93b = typeof _0x481a7a?.['bodyMarkdown'] === _0x16abbc(0x138) ? _0x481a7a[_0x16abbc(0x12c)] : '', _0x488007 = typeof _0x481a7a?.['kind'] === _0x16abbc(_0x4543a0._0x4916f8) && _0x481a7a[_0x16abbc(_0x4543a0._0x2c0556)] !== _0x16abbc(_0x4543a0._0x56fcfd) ? _0x481a7a[_0x16abbc(_0x4543a0._0x54ccd7)] : void 0x0;
|
|
1337
|
-
_0x1c39c4 && _0x2cd93b && _0x342e8d[_0x16abbc(0x288)]({
|
|
1338
|
-
'attachments': [],
|
|
1339
|
-
'content': _0x2cd93b,
|
|
1340
|
-
'createdAt': new Date()['toISOString'](),
|
|
1341
|
-
..._0x488007 ? { 'kind': _0x488007 } : {},
|
|
1342
|
-
'messageId': _0x320068,
|
|
1343
|
-
'senderName': _0x1c39c4,
|
|
1344
|
-
'senderType': _0x3d804e(_0x1c39c4, _0x5da524),
|
|
1345
|
-
'target': _0x4e8bd9,
|
|
1346
|
-
..._0x1d87de ? { 'targetedTask': !![] } : {}
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
if (_0x30adf5 > 0x0) {
|
|
1352
|
-
if (_0x5d991b)
|
|
1353
|
-
await _0x531ff0(_0x30adf5);
|
|
1354
|
-
else
|
|
1355
|
-
_0xfa4e0 && await _0x361051(_0x30adf5);
|
|
1356
|
-
}
|
|
1357
|
-
return _0x30adf5 > _0x1a9c8d && (_0x1a9c8d = _0x30adf5), { 'messages': _0x2a0de9 ? _0x342e8d : _0x2948af ? _0x342e8d[_0x16abbc(0x238)](_0x44c962 => _0x44c962[_0x16abbc(0x1ad)] !== !![]) : _0x342e8d };
|
|
1358
|
-
}
|
|
1407
|
+
_0x16d5 = function () {
|
|
1408
|
+
return _0x15c88c;
|
|
1359
1409
|
};
|
|
1410
|
+
return _0x16d5();
|
|
1360
1411
|
}
|
|
1361
|
-
function
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
},
|
|
1369
|
-
if (Number[_0x2dc7bd(_0x14fbf6._0x51262a)](_0xd20182['getTime']()))
|
|
1370
|
-
return _0x495063;
|
|
1371
|
-
const _0xae3079 = _0x2dbdbd => String(_0x2dbdbd)[_0x2dc7bd(0x1aa)](0x2, '0');
|
|
1372
|
-
return _0xd20182[_0x2dc7bd(_0x14fbf6._0x26eb1c)]() + '-' + _0xae3079(_0xd20182[_0x2dc7bd(0x253)]() + 0x1) + '-' + _0xae3079(_0xd20182[_0x2dc7bd(0x237)]()) + '\x20' + _0xae3079(_0xd20182[_0x2dc7bd(_0x14fbf6._0x1f08a2)]()) + ':' + _0xae3079(_0xd20182[_0x2dc7bd(_0x14fbf6._0x3d4d61)]()) + ':' + _0xae3079(_0xd20182[_0x2dc7bd(_0x14fbf6._0x11a95a)]());
|
|
1373
|
-
}
|
|
1374
|
-
function formatAttachmentSuffix(_0x258480) {
|
|
1375
|
-
const _0x3ee26c = {
|
|
1376
|
-
_0x453816: 0x135,
|
|
1377
|
-
_0x542b1b: 0x1f5
|
|
1378
|
-
}, _0x4f6617 = _0x1b8c9f;
|
|
1379
|
-
if (!_0x258480 || _0x258480[_0x4f6617(0x135)] === 0x0)
|
|
1380
|
-
return '';
|
|
1381
|
-
return '\x20[' + _0x258480[_0x4f6617(_0x3ee26c._0x453816)] + _0x4f6617(0x127) + (_0x258480[_0x4f6617(0x135)] > 0x1 ? 's' : '') + ':\x20' + _0x258480['map'](_0xa6a953 => _0xa6a953[_0x4f6617(0x12f)] + _0x4f6617(0x1eb) + _0xa6a953['id'] + ')')['join'](',\x20') + _0x4f6617(_0x3ee26c._0x542b1b);
|
|
1382
|
-
}
|
|
1383
|
-
function formatCheckMessages(_0x5cde27) {
|
|
1384
|
-
const _0xcd3c16 = {
|
|
1385
|
-
_0x489aec: 0x135,
|
|
1386
|
-
_0xeda9ea: 0x1be,
|
|
1387
|
-
_0xac7e96: 0x151
|
|
1388
|
-
}, _0xf2d6d4 = {
|
|
1389
|
-
_0x5f5664: 0x124,
|
|
1390
|
-
_0x225d0b: 0x29e,
|
|
1391
|
-
_0x5aa20f: 0x258,
|
|
1392
|
-
_0x335820: 0x24b,
|
|
1393
|
-
_0xb98014: 0x24e,
|
|
1394
|
-
_0x2ba474: 0x1bb
|
|
1395
|
-
}, _0x265d0c = _0x1b8c9f;
|
|
1396
|
-
if (_0x5cde27[_0x265d0c(_0xcd3c16._0x489aec)] === 0x0)
|
|
1397
|
-
return 'No\x20new\x20messages.';
|
|
1398
|
-
return _0x5cde27[_0x265d0c(_0xcd3c16._0xeda9ea)](_0x1ef561 => {
|
|
1399
|
-
const _0x4084ab = _0x265d0c, _0x41326a = _0x1ef561['senderType'] === _0x4084ab(0x2a1) ? _0x4084ab(_0xf2d6d4._0x5f5664) : '', _0x579840 = _0x1ef561[_0x4084ab(0x258)] && _0x1ef561[_0x4084ab(0x258)] !== _0x4084ab(0x1cf) ? _0x4084ab(_0xf2d6d4._0x225d0b) + _0x1ef561[_0x4084ab(_0xf2d6d4._0x5aa20f)] : '';
|
|
1400
|
-
return '[target=' + _0x1ef561[_0x4084ab(0x166)] + _0x4084ab(0x2a4) + _0x1ef561[_0x4084ab(_0xf2d6d4._0x335820)][_0x4084ab(0x16e)](0x0, 0x8) + _0x4084ab(_0xf2d6d4._0xb98014) + toLocalTime(_0x1ef561[_0x4084ab(0x248)]) + _0x41326a + _0x579840 + ']\x20@' + _0x1ef561[_0x4084ab(0x1d6)] + ':\x20' + _0x1ef561[_0x4084ab(0x19c)] + formatAttachmentSuffix(_0x1ef561[_0x4084ab(_0xf2d6d4._0x2ba474)]);
|
|
1401
|
-
})[_0x265d0c(_0xcd3c16._0xac7e96)]('\x0a');
|
|
1402
|
-
}
|
|
1403
|
-
function formatHistory(_0x3130bf) {
|
|
1404
|
-
const _0x5c1f23 = {
|
|
1405
|
-
_0x4d0701: 0x268,
|
|
1406
|
-
_0x2605c3: 0x13b,
|
|
1407
|
-
_0x3e8939: 0x135
|
|
1408
|
-
}, _0x51151a = {
|
|
1409
|
-
_0xee84a5: 0x20e,
|
|
1410
|
-
_0x389ff5: 0x2a1,
|
|
1411
|
-
_0x157577: 0x124,
|
|
1412
|
-
_0xd99e33: 0x258,
|
|
1413
|
-
_0x2235b1: 0x19a,
|
|
1414
|
-
_0x16a87a: 0x2a4,
|
|
1415
|
-
_0x1699ae: 0x248
|
|
1416
|
-
}, _0x3d4cbc = _0x1b8c9f;
|
|
1417
|
-
if (_0x3130bf[_0x3d4cbc(0x137)][_0x3d4cbc(0x135)] === 0x0)
|
|
1418
|
-
return _0x3d4cbc(0x11c) + _0x3130bf[_0x3d4cbc(_0x5c1f23._0x4d0701)] + _0x3d4cbc(_0x5c1f23._0x2605c3);
|
|
1419
|
-
const _0x5c978d = _0x3130bf[_0x3d4cbc(0x137)][_0x3d4cbc(0x1be)](_0x133490 => {
|
|
1420
|
-
const _0x7ad5a7 = _0x3d4cbc, _0xfd456a = _0x133490[_0x7ad5a7(_0x51151a._0xee84a5)] === _0x7ad5a7(_0x51151a._0x389ff5) ? _0x7ad5a7(_0x51151a._0x157577) : '', _0x2f3b06 = _0x133490[_0x7ad5a7(_0x51151a._0xd99e33)] && _0x133490[_0x7ad5a7(0x258)] !== 'chat' ? '\x20kind=' + _0x133490[_0x7ad5a7(_0x51151a._0xd99e33)] : '';
|
|
1421
|
-
return _0x7ad5a7(_0x51151a._0x2235b1) + _0x133490['seq'] + _0x7ad5a7(_0x51151a._0x16a87a) + _0x133490['messageId'] + _0x7ad5a7(0x24e) + toLocalTime(_0x133490[_0x7ad5a7(_0x51151a._0x1699ae)]) + _0xfd456a + _0x2f3b06 + _0x7ad5a7(0x1b1) + _0x133490['senderName'] + ':\x20' + _0x133490[_0x7ad5a7(0x19c)] + formatAttachmentSuffix(_0x133490[_0x7ad5a7(0x1bb)]);
|
|
1422
|
-
})['join']('\x0a'), _0x5d305f = _0x3130bf['hasMore'] && _0x3130bf[_0x3d4cbc(0x1ab)] ? _0x3d4cbc(0x1a5) + _0x3130bf[_0x3d4cbc(0x137)][_0x3d4cbc(_0x5c1f23._0x3e8939)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x3130bf[_0x3d4cbc(0x1ab)] + _0x3d4cbc(0x249) : '';
|
|
1423
|
-
return _0x3d4cbc(0x11c) + _0x3130bf['channel'] + '\x20(' + _0x3130bf[_0x3d4cbc(0x137)]['length'] + _0x3d4cbc(0x14b) + _0x5c978d + _0x5d305f;
|
|
1424
|
-
}
|
|
1425
|
-
function formatServerDirectory(_0x31f067) {
|
|
1426
|
-
const _0x3b2af3 = {
|
|
1427
|
-
_0x19a8dc: 0x135,
|
|
1428
|
-
_0x34dee3: 0x1be,
|
|
1429
|
-
_0x5650ef: 0x151,
|
|
1430
|
-
_0x553052: 0x135,
|
|
1431
|
-
_0x191dd7: 0x151,
|
|
1432
|
-
_0x2742a5: 0x272,
|
|
1433
|
-
_0x391959: 0x295,
|
|
1434
|
-
_0x2d98ce: 0x1e6,
|
|
1435
|
-
_0x193acc: 0x1b6
|
|
1436
|
-
}, _0x59d1e5 = _0x1b8c9f, _0xcf3539 = _0x31f067['channels'][_0x59d1e5(_0x3b2af3._0x19a8dc)] > 0x0 ? _0x31f067['channels'][_0x59d1e5(_0x3b2af3._0x34dee3)](_0x20560c => _0x20560c['description'] ? '-\x20#' + _0x20560c[_0x59d1e5(0x1ba)] + _0x59d1e5(0x233) + _0x20560c[_0x59d1e5(0x16a)] : _0x59d1e5(0x147) + _0x20560c[_0x59d1e5(0x1ba)])['join']('\x0a') : _0x59d1e5(0x1b3), _0x5553b5 = _0x31f067[_0x59d1e5(0x282)]['length'] > 0x0 ? _0x31f067['agents'][_0x59d1e5(_0x3b2af3._0x34dee3)](_0x28ba76 => _0x59d1e5(0x217) + _0x28ba76[_0x59d1e5(0x1ba)])[_0x59d1e5(_0x3b2af3._0x5650ef)]('\x0a') : _0x59d1e5(0x1b3), _0xe15145 = _0x31f067[_0x59d1e5(0x1c8)][_0x59d1e5(_0x3b2af3._0x553052)] > 0x0 ? _0x31f067[_0x59d1e5(0x1c8)][_0x59d1e5(0x1be)](_0x287a8b => _0x59d1e5(0x217) + _0x287a8b[_0x59d1e5(0x1ba)])[_0x59d1e5(_0x3b2af3._0x191dd7)]('\x0a') : '(none)';
|
|
1412
|
+
function formatServerDirectory(_0x46a763) {
|
|
1413
|
+
const _0x14e246 = {
|
|
1414
|
+
_0x3e1b98: 0xf2,
|
|
1415
|
+
_0x79e257: 0x127,
|
|
1416
|
+
_0x4a8a46: 0x110,
|
|
1417
|
+
_0x482aa0: 0xbd,
|
|
1418
|
+
_0x4e1ae3: 0x129
|
|
1419
|
+
}, _0xad65ac = _0x39cf13, _0x5bf048 = _0x46a763[_0xad65ac(0xd7)][_0xad65ac(_0x14e246._0x3e1b98)] > 0x0 ? _0x46a763[_0xad65ac(0xd7)][_0xad65ac(_0x14e246._0x79e257)](_0x3eb4e0 => _0x3eb4e0[_0xad65ac(0xcb)] ? _0xad65ac(0x147) + _0x3eb4e0[_0xad65ac(0x197)] + _0xad65ac(0x114) + _0x3eb4e0[_0xad65ac(0xcb)] : _0xad65ac(0x147) + _0x3eb4e0[_0xad65ac(0x197)])[_0xad65ac(0x1e3)]('\x0a') : '(none)', _0x171458 = _0x46a763[_0xad65ac(_0x14e246._0x4a8a46)][_0xad65ac(0xf2)] > 0x0 ? _0x46a763[_0xad65ac(_0x14e246._0x4a8a46)][_0xad65ac(_0x14e246._0x79e257)](_0x3f9786 => '-\x20@' + _0x3f9786[_0xad65ac(0x197)])[_0xad65ac(0x1e3)]('\x0a') : _0xad65ac(0x108), _0x262414 = _0x46a763[_0xad65ac(0x124)][_0xad65ac(_0x14e246._0x3e1b98)] > 0x0 ? _0x46a763[_0xad65ac(0x124)][_0xad65ac(0x127)](_0x556a73 => _0xad65ac(0x12f) + _0x556a73[_0xad65ac(0x197)])[_0xad65ac(0x1e3)]('\x0a') : '(none)';
|
|
1437
1420
|
return [
|
|
1438
|
-
|
|
1421
|
+
_0xad65ac(0x187) + _0x46a763[_0xad65ac(0x13b)],
|
|
1439
1422
|
'',
|
|
1440
|
-
|
|
1441
|
-
|
|
1423
|
+
_0xad65ac(0xd1),
|
|
1424
|
+
_0x5bf048,
|
|
1442
1425
|
'',
|
|
1443
|
-
|
|
1444
|
-
|
|
1426
|
+
_0xad65ac(_0x14e246._0x482aa0),
|
|
1427
|
+
_0x171458,
|
|
1445
1428
|
'',
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
][
|
|
1429
|
+
_0xad65ac(_0x14e246._0x4e1ae3),
|
|
1430
|
+
_0x262414
|
|
1431
|
+
][_0xad65ac(0x1e3)]('\x0a');
|
|
1449
1432
|
}
|
|
1450
|
-
function formatUploadResult(
|
|
1451
|
-
const
|
|
1452
|
-
return
|
|
1433
|
+
function formatUploadResult(_0x468441) {
|
|
1434
|
+
const _0x3a57eb = _0x39cf13;
|
|
1435
|
+
return _0x3a57eb(0xa4) + _0x468441['filename'] + '\x20(' + (_0x468441[_0x3a57eb(0x1bc)] / 0x400)[_0x3a57eb(0x99)](0x1) + _0x3a57eb(0x1b3) + _0x468441[_0x3a57eb(0x122)] + _0x3a57eb(0x14a);
|
|
1453
1436
|
}
|
|
1454
|
-
function formatViewFileResult(
|
|
1455
|
-
const
|
|
1456
|
-
return
|
|
1437
|
+
function formatViewFileResult(_0x116950, _0x25e12e) {
|
|
1438
|
+
const _0x38070a = { _0x2f761a: 0xd9 }, _0x52fd7d = _0x39cf13;
|
|
1439
|
+
return _0x25e12e ? _0x52fd7d(_0x38070a._0x2f761a) + _0x116950 : _0x52fd7d(0xd2) + _0x116950;
|
|
1457
1440
|
}
|
|
1458
|
-
function formatTaskList(
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
if (_0x2e7d3e[_0x3676e1(0x135)] === 0x0)
|
|
1473
|
-
return _0x3676e1(_0x1514c9._0x3c60e2);
|
|
1474
|
-
return _0x2e7d3e[_0x3676e1(0x1be)](_0x14dd7b => {
|
|
1475
|
-
const _0x6e7de7 = _0x3676e1, _0x75f03 = _0x14dd7b[_0x6e7de7(_0x5eaebe._0x23bc21)] == null ? _0x6e7de7(_0x5eaebe._0x2029c1) : _0x14dd7b[_0x6e7de7(_0x5eaebe._0x586560)] != null ? '#' + _0x14dd7b[_0x6e7de7(_0x5eaebe._0x23bc21)] + '.' + _0x14dd7b[_0x6e7de7(_0x5eaebe._0x586560)] : '#' + _0x14dd7b[_0x6e7de7(0x27a)], _0x481ca1 = _0x14dd7b['messageId'] ? _0x6e7de7(_0x5eaebe._0x56c11a) + _0x14dd7b['messageId'] : '', _0x24ce38 = _0x205c99 && _0x14dd7b['taskNumber'] != null && !_0x14dd7b[_0x6e7de7(_0x5eaebe._0x5aeb17)] && _0x205c99[_0x6e7de7(0x2a0)](_0x14dd7b[_0x6e7de7(_0x5eaebe._0x23bc21)]) ? _0x6e7de7(0x168) : '', _0x57f085 = _0x14dd7b['childrenTotal'] != null && _0x14dd7b[_0x6e7de7(_0x5eaebe._0x580fd5)] > 0x0 ? '\x20(' + (_0x14dd7b['childrenDone'] ?? 0x0) + '/' + _0x14dd7b[_0x6e7de7(_0x5eaebe._0x20f2ff)] + _0x6e7de7(_0x5eaebe._0x1d7adf) : '';
|
|
1476
|
-
return _0x75f03 + '\x20[' + _0x14dd7b['status'] + ']\x20' + _0x14dd7b['title'] + _0x57f085 + _0x481ca1 + _0x24ce38;
|
|
1477
|
-
})[_0x3676e1(_0x1514c9._0x43317c)]('\x0a');
|
|
1441
|
+
function formatTaskList(_0x1f8bc8, _0x485afc) {
|
|
1442
|
+
const _0x14fdee = { _0x2de323: 0x127 }, _0x11d731 = {
|
|
1443
|
+
_0x5d60a2: 0xff,
|
|
1444
|
+
_0x46f6d9: 0x1e8,
|
|
1445
|
+
_0x5919ef: 0x141,
|
|
1446
|
+
_0x326507: 0xea,
|
|
1447
|
+
_0x302389: 0x1ee
|
|
1448
|
+
}, _0x12c85d = _0x39cf13;
|
|
1449
|
+
if (_0x1f8bc8['length'] === 0x0)
|
|
1450
|
+
return _0x12c85d(0x111);
|
|
1451
|
+
return _0x1f8bc8[_0x12c85d(_0x14fdee._0x2de323)](_0x14ccc1 => {
|
|
1452
|
+
const _0x416e90 = _0x12c85d, _0x4332ec = _0x14ccc1[_0x416e90(0x1e8)] == null ? _0x416e90(0x1e5) : _0x14ccc1[_0x416e90(_0x11d731._0x5d60a2)] != null ? '#' + _0x14ccc1['taskNumber'] + '.' + _0x14ccc1[_0x416e90(0xff)] : '#' + _0x14ccc1[_0x416e90(_0x11d731._0x46f6d9)], _0x452c3c = _0x14ccc1[_0x416e90(_0x11d731._0x5919ef)] ? _0x416e90(_0x11d731._0x326507) + _0x14ccc1['messageId'] : '', _0x44a3bf = _0x485afc && _0x14ccc1[_0x416e90(0x1e8)] != null && !_0x14ccc1['subtaskNumber'] && _0x485afc[_0x416e90(0x16e)](_0x14ccc1['taskNumber']) ? _0x416e90(0x9b) : '', _0x442eb9 = _0x14ccc1['childrenTotal'] != null && _0x14ccc1['childrenTotal'] > 0x0 ? '\x20(' + (_0x14ccc1[_0x416e90(0x1a5)] ?? 0x0) + '/' + _0x14ccc1[_0x416e90(0xdc)] + _0x416e90(_0x11d731._0x302389) : '';
|
|
1453
|
+
return _0x4332ec + '\x20[' + _0x14ccc1['status'] + ']\x20' + _0x14ccc1['title'] + _0x442eb9 + _0x452c3c + _0x44a3bf;
|
|
1454
|
+
})[_0x12c85d(0x1e3)]('\x0a');
|
|
1478
1455
|
}
|
|
1479
|
-
function formatCreatedTasks(
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1456
|
+
function formatCreatedTasks(_0x40d83e) {
|
|
1457
|
+
const _0x45b116 = {
|
|
1458
|
+
_0x3521ef: 0xf2,
|
|
1459
|
+
_0x50a28a: 0x1e3
|
|
1460
|
+
}, _0x3ce87f = {
|
|
1461
|
+
_0x3006b2: 0x1e5,
|
|
1462
|
+
_0x3cfa29: 0xff,
|
|
1463
|
+
_0x107442: 0x1e8,
|
|
1464
|
+
_0x387a0b: 0x141,
|
|
1465
|
+
_0x11d5f1: 0xea
|
|
1466
|
+
}, _0x3dd757 = _0x39cf13;
|
|
1467
|
+
if (_0x40d83e[_0x3dd757(_0x45b116._0x3521ef)] === 0x0)
|
|
1468
|
+
return 'No\x20tasks\x20created.';
|
|
1469
|
+
return _0x40d83e['map'](_0xb9057b => {
|
|
1470
|
+
const _0x2adf2f = _0x3dd757, _0x312086 = _0xb9057b[_0x2adf2f(0x1e8)] == null ? _0x2adf2f(_0x3ce87f._0x3006b2) : _0xb9057b['subtaskNumber'] != null ? '#' + _0xb9057b[_0x2adf2f(0x1e8)] + '.' + _0xb9057b[_0x2adf2f(_0x3ce87f._0x3cfa29)] : '#' + _0xb9057b[_0x2adf2f(_0x3ce87f._0x107442)], _0x36d503 = _0xb9057b[_0x2adf2f(_0x3ce87f._0x387a0b)] ? _0x2adf2f(_0x3ce87f._0x11d5f1) + _0xb9057b[_0x2adf2f(0x141)] : '';
|
|
1471
|
+
return _0x312086 + '\x20' + _0xb9057b['title'] + _0x36d503;
|
|
1472
|
+
})[_0x3dd757(_0x45b116._0x50a28a)]('\x0a');
|
|
1495
1473
|
}
|
|
1496
|
-
function formatClaimTaskResults(
|
|
1497
|
-
const
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
]['filter'](Boolean)['join']('\x20');
|
|
1527
|
-
return _0x2cea07 + '\x20claimed' + _0x592e5c + '\x20' + _0x4b0d4e + _0x13e001(0x136);
|
|
1474
|
+
function formatClaimTaskResults(_0x178eb5) {
|
|
1475
|
+
const _0x15e075 = { _0x26485e: 0xf2 }, _0x36a87b = {
|
|
1476
|
+
_0x187f13: 0x1b0,
|
|
1477
|
+
_0x2a04bf: 0xff,
|
|
1478
|
+
_0x2f49bb: 0x1e8,
|
|
1479
|
+
_0x1b70a4: 0xea,
|
|
1480
|
+
_0x5bcd1b: 0x17a,
|
|
1481
|
+
_0x29042c: 0x208,
|
|
1482
|
+
_0x31a170: 0x112,
|
|
1483
|
+
_0x48eae7: 0x1bd,
|
|
1484
|
+
_0x6f139f: 0xda,
|
|
1485
|
+
_0x21e60f: 0x1ce,
|
|
1486
|
+
_0x32f9ce: 0x18f,
|
|
1487
|
+
_0x3b51dd: 0xe6
|
|
1488
|
+
}, _0x310edc = _0x39cf13;
|
|
1489
|
+
if (_0x178eb5[_0x310edc(_0x15e075._0x26485e)] === 0x0)
|
|
1490
|
+
return _0x310edc(0x9a);
|
|
1491
|
+
return _0x178eb5[_0x310edc(0x127)](_0x298a82 => {
|
|
1492
|
+
const _0x5332a4 = _0x310edc;
|
|
1493
|
+
if (_0x298a82[_0x5332a4(_0x36a87b._0x187f13)]) {
|
|
1494
|
+
const _0x52e6a2 = _0x298a82[_0x5332a4(0x1e8)] == null ? _0x5332a4(0x1e5) : _0x298a82[_0x5332a4(_0x36a87b._0x2a04bf)] != null ? '#' + _0x298a82[_0x5332a4(_0x36a87b._0x2f49bb)] + '.' + _0x298a82[_0x5332a4(0xff)] : '#' + _0x298a82[_0x5332a4(_0x36a87b._0x2f49bb)], _0x2bc242 = _0x298a82[_0x5332a4(0x141)] ? _0x5332a4(_0x36a87b._0x1b70a4) + _0x298a82[_0x5332a4(0x141)] : '';
|
|
1495
|
+
if (_0x298a82['workerHandoff']) {
|
|
1496
|
+
const _0x5c27ef = [
|
|
1497
|
+
_0x5332a4(_0x36a87b._0x5bcd1b),
|
|
1498
|
+
_0x298a82['stopMain'] ? _0x5332a4(_0x36a87b._0x29042c) : null,
|
|
1499
|
+
_0x298a82[_0x5332a4(0x104)] ? _0x5332a4(_0x36a87b._0x31a170) + _0x298a82[_0x5332a4(0x104)] : null,
|
|
1500
|
+
_0x298a82[_0x5332a4(0x1b4)] ? 'threadTarget=' + _0x298a82[_0x5332a4(0x1b4)] : null,
|
|
1501
|
+
_0x298a82[_0x5332a4(0x1bd)] ? 'workerDisposition=' + _0x298a82[_0x5332a4(_0x36a87b._0x48eae7)] : null
|
|
1502
|
+
][_0x5332a4(_0x36a87b._0x6f139f)](Boolean)[_0x5332a4(0x1e3)]('\x20');
|
|
1503
|
+
return _0x52e6a2 + '\x20claimed' + _0x2bc242 + '\x20' + _0x5c27ef + _0x5332a4(_0x36a87b._0x21e60f);
|
|
1528
1504
|
}
|
|
1529
|
-
const
|
|
1530
|
-
return
|
|
1505
|
+
const _0x5c4cbc = _0x298a82[_0x5332a4(0x8c)] ? '\x20workerHandoff=false\x20error=' + _0x298a82[_0x5332a4(0x8c)] : '';
|
|
1506
|
+
return _0x52e6a2 + _0x5332a4(0x19d) + _0x2bc242 + _0x5c4cbc;
|
|
1531
1507
|
}
|
|
1532
|
-
const
|
|
1533
|
-
return
|
|
1534
|
-
})[
|
|
1508
|
+
const _0xf2443 = _0x298a82['taskNumber'] == null ? _0x298a82[_0x5332a4(0x141)] ?? _0x5332a4(_0x36a87b._0x32f9ce) : '#' + _0x298a82['taskNumber'];
|
|
1509
|
+
return _0xf2443 + _0x5332a4(0x1f1) + (_0x298a82[_0x5332a4(0x14f)] ?? _0x5332a4(_0x36a87b._0x3b51dd));
|
|
1510
|
+
})['join']('\x0a');
|
|
1535
1511
|
}
|
|
1536
|
-
function formatUnclaimTaskResult(
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
_0x36b5af: 0x270
|
|
1543
|
-
}, _0x285db0 = _0x1b8c9f, _0x9ca1be = _0x1c7d92[_0x285db0(_0x4e9914._0xe31706)] == null ? _0x285db0(_0x4e9914._0x1396f8) : _0x1c7d92[_0x285db0(0x27c)] != null ? '#' + _0x1c7d92[_0x285db0(0x27a)] + '.' + _0x1c7d92[_0x285db0(_0x4e9914._0x2cf413)] : '#' + _0x1c7d92[_0x285db0(0x27a)];
|
|
1544
|
-
return _0x9ca1be + _0x285db0(_0x4e9914._0x3c9b2e) + _0x1c7d92[_0x285db0(_0x4e9914._0x36b5af)];
|
|
1512
|
+
function formatUnclaimTaskResult(_0x39dedd) {
|
|
1513
|
+
const _0x310a43 = {
|
|
1514
|
+
_0x3788c5: 0x1e8,
|
|
1515
|
+
_0x26211e: 0xff
|
|
1516
|
+
}, _0x34dc00 = _0x39cf13, _0x4c5dd7 = _0x39dedd[_0x34dc00(_0x310a43._0x3788c5)] == null ? _0x34dc00(0x1e5) : _0x39dedd[_0x34dc00(0xff)] != null ? '#' + _0x39dedd['taskNumber'] + '.' + _0x39dedd[_0x34dc00(_0x310a43._0x26211e)] : '#' + _0x39dedd[_0x34dc00(0x1e8)];
|
|
1517
|
+
return _0x4c5dd7 + '\x20status=' + _0x39dedd[_0x34dc00(0x8a)];
|
|
1545
1518
|
}
|
|
1546
|
-
function formatUpdateTaskStatusResult(
|
|
1547
|
-
const
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
},
|
|
1552
|
-
return
|
|
1519
|
+
function formatUpdateTaskStatusResult(_0x3c9680) {
|
|
1520
|
+
const _0x26634b = {
|
|
1521
|
+
_0x527060: 0x1e5,
|
|
1522
|
+
_0x4692d2: 0xff,
|
|
1523
|
+
_0x8a0ea5: 0x1e8
|
|
1524
|
+
}, _0xdfc566 = _0x39cf13, _0x59831a = _0x3c9680['taskNumber'] == null ? _0xdfc566(_0x26634b._0x527060) : _0x3c9680[_0xdfc566(_0x26634b._0x4692d2)] != null ? '#' + _0x3c9680[_0xdfc566(_0x26634b._0x8a0ea5)] + '.' + _0x3c9680[_0xdfc566(0xff)] : '#' + _0x3c9680[_0xdfc566(_0x26634b._0x8a0ea5)];
|
|
1525
|
+
return _0x59831a + _0xdfc566(0x1b9) + _0x3c9680[_0xdfc566(0x8a)];
|
|
1553
1526
|
}
|
|
1554
1527
|
function getChatBridgeToolDefinitions() {
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1528
|
+
const _0x4e084b = {
|
|
1529
|
+
_0x5361ae: 0x1f9,
|
|
1530
|
+
_0x60839c: 0xf0,
|
|
1531
|
+
_0x20d40b: 0x1da,
|
|
1532
|
+
_0x127550: 0xb8,
|
|
1533
|
+
_0x58d66d: 0x176,
|
|
1534
|
+
_0x526408: 0xaa
|
|
1535
|
+
}, _0x4a3a51 = _0x39cf13;
|
|
1562
1536
|
return [
|
|
1563
|
-
{ 'name':
|
|
1564
|
-
{ 'name':
|
|
1565
|
-
{ 'name':
|
|
1566
|
-
{ 'name':
|
|
1567
|
-
{ 'name':
|
|
1568
|
-
{ 'name':
|
|
1569
|
-
{ 'name':
|
|
1570
|
-
{ 'name':
|
|
1571
|
-
{ 'name':
|
|
1572
|
-
{ 'name':
|
|
1573
|
-
{ 'name':
|
|
1574
|
-
{ 'name':
|
|
1575
|
-
{ 'name':
|
|
1576
|
-
{ 'name':
|
|
1577
|
-
{ 'name':
|
|
1537
|
+
{ 'name': _0x4a3a51(0x1bb) },
|
|
1538
|
+
{ 'name': _0x4a3a51(_0x4e084b._0x5361ae) },
|
|
1539
|
+
{ 'name': _0x4a3a51(_0x4e084b._0x60839c) },
|
|
1540
|
+
{ 'name': _0x4a3a51(0x14e) },
|
|
1541
|
+
{ 'name': _0x4a3a51(0x1b2) },
|
|
1542
|
+
{ 'name': 'view_file' },
|
|
1543
|
+
{ 'name': _0x4a3a51(_0x4e084b._0x20d40b) },
|
|
1544
|
+
{ 'name': _0x4a3a51(0x1e4) },
|
|
1545
|
+
{ 'name': _0x4a3a51(_0x4e084b._0x127550) },
|
|
1546
|
+
{ 'name': _0x4a3a51(0x10d) },
|
|
1547
|
+
{ 'name': _0x4a3a51(_0x4e084b._0x58d66d) },
|
|
1548
|
+
{ 'name': _0x4a3a51(0x1c8) },
|
|
1549
|
+
{ 'name': _0x4a3a51(0x134) },
|
|
1550
|
+
{ 'name': 'escalate_to_main' },
|
|
1551
|
+
{ 'name': _0x4a3a51(_0x4e084b._0x526408) }
|
|
1578
1552
|
];
|
|
1579
1553
|
}
|
|
1580
|
-
function
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
},
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
_0x595844: 0x19c
|
|
1693
|
-
}, _0x1742ba = {
|
|
1694
|
-
_0x7e4a99: 0x283,
|
|
1695
|
-
_0x8e713d: 0x20d,
|
|
1696
|
-
_0x3f0f95: 0x278,
|
|
1697
|
-
_0xfa802d: 0x1a0,
|
|
1698
|
-
_0x579d60: 0x270,
|
|
1699
|
-
_0x7ecb37: 0x142
|
|
1700
|
-
}, _0x442334 = {
|
|
1701
|
-
_0x1bfd64: 0x11a,
|
|
1702
|
-
_0x437ba3: 0x20d,
|
|
1703
|
-
_0x8c06a0: 0x278,
|
|
1704
|
-
_0x4afeac: 0x1a0,
|
|
1705
|
-
_0x33608d: 0x270,
|
|
1706
|
-
_0x1d0785: 0x1fe,
|
|
1707
|
-
_0x8ecc53: 0x1e2
|
|
1708
|
-
}, _0x896b8d = {
|
|
1709
|
-
_0x3061d5: 0x11a,
|
|
1710
|
-
_0x250ae8: 0x20d,
|
|
1711
|
-
_0x4d2f48: 0x1ea,
|
|
1712
|
-
_0x4ad548: 0x268,
|
|
1713
|
-
_0x21fcff: 0x258,
|
|
1714
|
-
_0x1736b9: 0x231,
|
|
1715
|
-
_0x1adfea: 0x27b,
|
|
1716
|
-
_0x2a1f7b: 0x27a,
|
|
1717
|
-
_0x4bc2d1: 0x22d,
|
|
1718
|
-
_0x3869e5: 0x24b,
|
|
1719
|
-
_0x3bdee0: 0x24e,
|
|
1720
|
-
_0x4163c6: 0x1dc,
|
|
1721
|
-
_0x5b891d: 0x205,
|
|
1722
|
-
_0x2a47a6: 0x13a,
|
|
1723
|
-
_0x1451fd: 0x151,
|
|
1724
|
-
_0x3138ea: 0x227,
|
|
1725
|
-
_0x1a513b: 0x11a,
|
|
1726
|
-
_0x336805: 0x19f,
|
|
1727
|
-
_0x1cd975: 0x240,
|
|
1728
|
-
_0x4eee57: 0x16f,
|
|
1729
|
-
_0x3c6b76: 0x1ac,
|
|
1730
|
-
_0xaa614f: 0x22c
|
|
1731
|
-
}, _0x376695 = {
|
|
1732
|
-
_0x4937b9: 0x172,
|
|
1733
|
-
_0x3f05ad: 0x172
|
|
1734
|
-
}, _0x30473e = _0x1b8c9f;
|
|
1735
|
-
function _0x4af718(_0x29b7c2, _0x1053e6) {
|
|
1736
|
-
const _0x3f5095 = _0x3671;
|
|
1737
|
-
if (!_0x41a796[_0x3f5095(0x20d)])
|
|
1554
|
+
function createChatBridgeHandlers(_0xe800b8) {
|
|
1555
|
+
const _0x583367 = {
|
|
1556
|
+
_0x21c4c8: 0x1ed,
|
|
1557
|
+
_0x50d88e: 0x13e,
|
|
1558
|
+
_0x493fe6: 0x1ae,
|
|
1559
|
+
_0x46f5dd: 0x1a6,
|
|
1560
|
+
_0x58623c: 0xa1,
|
|
1561
|
+
_0x1ea5a3: 0x19c
|
|
1562
|
+
}, _0x7326b8 = {
|
|
1563
|
+
_0x214283: 0xd6,
|
|
1564
|
+
_0x442d40: 0xd6,
|
|
1565
|
+
_0x32235: 0x152,
|
|
1566
|
+
_0x327812: 0x123,
|
|
1567
|
+
_0xf46295: 0x196
|
|
1568
|
+
}, _0xe36600 = {
|
|
1569
|
+
_0x2582bd: 0xd6,
|
|
1570
|
+
_0x4b5c6b: 0x153,
|
|
1571
|
+
_0x619726: 0x152,
|
|
1572
|
+
_0x26a715: 0x85
|
|
1573
|
+
}, _0x557daa = {
|
|
1574
|
+
_0x1e9b78: 0x153,
|
|
1575
|
+
_0x5405ae: 0xd6,
|
|
1576
|
+
_0x2c454f: 0x1a2,
|
|
1577
|
+
_0x3e95d7: 0xfd,
|
|
1578
|
+
_0x2b68b2: 0x1ae
|
|
1579
|
+
}, _0x1cac89 = {
|
|
1580
|
+
_0x414aa0: 0x12e,
|
|
1581
|
+
_0x2d86e4: 0x121,
|
|
1582
|
+
_0x19d351: 0x1ec,
|
|
1583
|
+
_0x3c6663: 0x87,
|
|
1584
|
+
_0x6f2799: 0x1d6,
|
|
1585
|
+
_0x26a8df: 0x126
|
|
1586
|
+
}, _0x1ac473 = { _0x51b54e: 0xb6 }, _0x325be9 = { _0x30aa73: 0x116 }, _0x2d730d = {
|
|
1587
|
+
_0x1ccc27: 0x13a,
|
|
1588
|
+
_0x1814d0: 0xb6,
|
|
1589
|
+
_0x382397: 0x150
|
|
1590
|
+
}, _0x114d83 = {
|
|
1591
|
+
_0xa307fe: 0xa6,
|
|
1592
|
+
_0x25d33e: 0xf2,
|
|
1593
|
+
_0x33fd24: 0xec
|
|
1594
|
+
}, _0x53d99f = {
|
|
1595
|
+
_0x2058c4: 0xc4,
|
|
1596
|
+
_0x31fe27: 0x17e
|
|
1597
|
+
}, _0xa344c7 = {
|
|
1598
|
+
_0xfa0d9d: 0xd6,
|
|
1599
|
+
_0x18f49f: 0x167,
|
|
1600
|
+
_0x1b5cac: 0x15a,
|
|
1601
|
+
_0x72b51c: 0x17c,
|
|
1602
|
+
_0x3c7945: 0x1e8,
|
|
1603
|
+
_0x22fcff: 0x1e8,
|
|
1604
|
+
_0x3a1a53: 0x17e
|
|
1605
|
+
}, _0x45614d = { _0x5e43c2: 0xc4 }, _0x484a1a = {
|
|
1606
|
+
_0x3e6d9d: 0xc4,
|
|
1607
|
+
_0x2a63c2: 0x13a,
|
|
1608
|
+
_0x302a36: 0x10b,
|
|
1609
|
+
_0x569057: 0xda
|
|
1610
|
+
}, _0x1bf4d5 = {
|
|
1611
|
+
_0x5820d8: 0x123,
|
|
1612
|
+
_0x216dcb: 0x172,
|
|
1613
|
+
_0x1cad9c: 0x98,
|
|
1614
|
+
_0x57d6cc: 0x1e8,
|
|
1615
|
+
_0x5a420d: 0x1e8,
|
|
1616
|
+
_0x50b645: 0x98,
|
|
1617
|
+
_0x4c25ad: 0x98,
|
|
1618
|
+
_0x47009e: 0x11c,
|
|
1619
|
+
_0x54d1d6: 0x1c3,
|
|
1620
|
+
_0x238826: 0x1c2,
|
|
1621
|
+
_0x5e42fe: 0x1ed,
|
|
1622
|
+
_0x2df4aa: 0x137,
|
|
1623
|
+
_0x1cc5d9: 0xb5,
|
|
1624
|
+
_0x9577a6: 0x1a6,
|
|
1625
|
+
_0x31dad9: 0x1c7,
|
|
1626
|
+
_0xfcaa6: 0xce,
|
|
1627
|
+
_0x3e814a: 0xcc,
|
|
1628
|
+
_0x1b2a58: 0x1d9,
|
|
1629
|
+
_0x96da8b: 0xe9,
|
|
1630
|
+
_0x6e8ab9: 0x1e3,
|
|
1631
|
+
_0x7ba598: 0xc4,
|
|
1632
|
+
_0xcc0d5e: 0x98,
|
|
1633
|
+
_0x54fc1e: 0x1a3,
|
|
1634
|
+
_0x3bd2f4: 0x141
|
|
1635
|
+
}, _0x1bc5f4 = {
|
|
1636
|
+
_0x21b783: 0x16e,
|
|
1637
|
+
_0x31f35c: 0x17c,
|
|
1638
|
+
_0x358f9d: 0x8e
|
|
1639
|
+
}, _0x53cad7 = {
|
|
1640
|
+
_0x46cbc2: 0xd6,
|
|
1641
|
+
_0x2301ad: 0x1a6,
|
|
1642
|
+
_0x48efe1: 0xcf,
|
|
1643
|
+
_0x46e99d: 0x1d0
|
|
1644
|
+
}, _0x56effb = {
|
|
1645
|
+
_0x42bb04: 0x97,
|
|
1646
|
+
_0x2d7f17: 0x141,
|
|
1647
|
+
_0x1dba2c: 0x10b,
|
|
1648
|
+
_0x3721d5: 0x1e5,
|
|
1649
|
+
_0x3905a1: 0x1e8,
|
|
1650
|
+
_0x322bf3: 0xf3,
|
|
1651
|
+
_0x4fadcf: 0x1e3,
|
|
1652
|
+
_0x27ee08: 0xd6,
|
|
1653
|
+
_0x265778: 0x165,
|
|
1654
|
+
_0x4d9fc2: 0x152,
|
|
1655
|
+
_0x3e09e9: 0x13e,
|
|
1656
|
+
_0x1b9509: 0x123,
|
|
1657
|
+
_0x40e15c: 0x137,
|
|
1658
|
+
_0x2a1137: 0x137,
|
|
1659
|
+
_0x817d44: 0x1a6,
|
|
1660
|
+
_0x598fad: 0xa1,
|
|
1661
|
+
_0x285a9b: 0x1d9
|
|
1662
|
+
}, _0x3731ec = _0x39cf13;
|
|
1663
|
+
function _0x3619db(_0x12f670, _0xf41fc5) {
|
|
1664
|
+
const _0x28c3e4 = _0x2500;
|
|
1665
|
+
if (!_0xe800b8[_0x28c3e4(0x13a)])
|
|
1738
1666
|
return;
|
|
1739
|
-
if (!
|
|
1740
|
-
throw new Error(
|
|
1741
|
-
if (
|
|
1742
|
-
throw new Error(
|
|
1667
|
+
if (!_0xe800b8[_0x28c3e4(0x1f8)])
|
|
1668
|
+
throw new Error(_0x12f670 + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
|
|
1669
|
+
if (_0xf41fc5 !== _0xe800b8['workerThreadTarget'])
|
|
1670
|
+
throw new Error(_0x12f670 + _0x28c3e4(0x1aa) + _0xe800b8[_0x28c3e4(0x1f8)] + ');\x20got\x20channel=' + _0xf41fc5);
|
|
1743
1671
|
}
|
|
1744
|
-
async function
|
|
1745
|
-
const
|
|
1746
|
-
if (!
|
|
1672
|
+
async function _0x16f543(_0x973421) {
|
|
1673
|
+
const _0x47f140 = _0x2500;
|
|
1674
|
+
if (!_0xe800b8['daemonLocalUrl'] || !_0xe800b8['agentId'] || _0xe800b8[_0x47f140(0x13a)] || _0xe800b8[_0x47f140(0x12b)] !== !![])
|
|
1747
1675
|
return null;
|
|
1748
|
-
const
|
|
1749
|
-
if (
|
|
1676
|
+
const _0x91797f = parseTarget(_0x973421[_0x47f140(0xb6)]);
|
|
1677
|
+
if (_0x91797f[_0x47f140(_0x56effb._0x42bb04)] !== 'channel')
|
|
1750
1678
|
return null;
|
|
1751
|
-
const
|
|
1752
|
-
let
|
|
1679
|
+
const _0x3a33bf = _0x973421['threadNumber'] != null ? _0x91797f['channelTarget'] + ':t' + _0x973421[_0x47f140(0x95)] : _0x91797f['channelTarget'] + ':' + _0x973421[_0x47f140(_0x56effb._0x2d7f17)];
|
|
1680
|
+
let _0x5aae56;
|
|
1753
1681
|
try {
|
|
1754
|
-
const
|
|
1755
|
-
'channel':
|
|
1682
|
+
const _0x979374 = await _0xe800b8['client'][_0x47f140(0xfa)]({
|
|
1683
|
+
'channel': _0x3a33bf,
|
|
1756
1684
|
'limit': 0x14
|
|
1757
1685
|
});
|
|
1758
|
-
|
|
1686
|
+
_0x5aae56 = _0x979374[_0x47f140(_0x56effb._0x1dba2c)][_0x47f140(0x1c1)](_0x2f91b1 => _0x2f91b1[_0x47f140(0x141)] === _0x973421[_0x47f140(0x141)]);
|
|
1759
1687
|
} catch {
|
|
1760
|
-
|
|
1688
|
+
_0x5aae56 = void 0x0;
|
|
1761
1689
|
}
|
|
1762
|
-
const
|
|
1763
|
-
|
|
1690
|
+
const _0x274f22 = _0x973421['taskNumber'] == null ? _0x47f140(_0x56effb._0x3721d5) : '#' + _0x973421[_0x47f140(_0x56effb._0x3905a1)], _0x1a5c91 = [
|
|
1691
|
+
'[target=' + _0x3a33bf + _0x47f140(_0x56effb._0x322bf3) + _0x973421[_0x47f140(_0x56effb._0x2d7f17)]['slice'](0x0, 0x8) + _0x47f140(0x14d) + new Date()[_0x47f140(0x106)]() + _0x47f140(0x1c0) + _0x274f22 + '\x20已切换到\x20worker\x20执行',
|
|
1764
1692
|
'',
|
|
1765
|
-
|
|
1693
|
+
_0x5aae56 ? _0x47f140(0x15d) + _0x5aae56[_0x47f140(0x1f6)] : _0x47f140(0x1e2) + _0x973421[_0x47f140(0x141)],
|
|
1766
1694
|
'',
|
|
1767
|
-
'Thread\x20target:\x20' +
|
|
1695
|
+
'Thread\x20target:\x20' + _0x3a33bf,
|
|
1768
1696
|
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1769
|
-
][
|
|
1770
|
-
'method':
|
|
1697
|
+
][_0x47f140(_0x56effb._0x4fadcf)]('\x0a'), _0x28640d = await fetch(_0xe800b8[_0x47f140(_0x56effb._0x27ee08)] + _0x47f140(_0x56effb._0x265778), {
|
|
1698
|
+
'method': _0x47f140(_0x56effb._0x4d9fc2),
|
|
1771
1699
|
'headers': { 'Content-Type': 'application/json' },
|
|
1772
|
-
'body': JSON[
|
|
1773
|
-
'agent_id':
|
|
1774
|
-
'thread_target':
|
|
1700
|
+
'body': JSON[_0x47f140(_0x56effb._0x3e09e9)]({
|
|
1701
|
+
'agent_id': _0xe800b8[_0x47f140(_0x56effb._0x1b9509)],
|
|
1702
|
+
'thread_target': _0x3a33bf,
|
|
1775
1703
|
'spawn_packet': {
|
|
1776
|
-
'replyTarget':
|
|
1777
|
-
...
|
|
1704
|
+
'replyTarget': _0x3a33bf,
|
|
1705
|
+
..._0x973421[_0x47f140(_0x56effb._0x40e15c)] ? { 'taskId': _0x973421[_0x47f140(_0x56effb._0x2a1137)] } : _0x973421[_0x47f140(0x1e8)] != null ? { 'taskId': _0x47f140(0x13c) + _0x973421[_0x47f140(0x1e8)] } : {}
|
|
1778
1706
|
},
|
|
1779
1707
|
'payload': {
|
|
1780
|
-
'mode':
|
|
1781
|
-
'text':
|
|
1708
|
+
'mode': _0x47f140(0xb5),
|
|
1709
|
+
'text': _0x1a5c91
|
|
1782
1710
|
}
|
|
1783
1711
|
})
|
|
1784
|
-
}),
|
|
1785
|
-
if (!
|
|
1786
|
-
throw new Error(
|
|
1712
|
+
}), _0x552d19 = await _0x28640d[_0x47f140(_0x56effb._0x817d44)]();
|
|
1713
|
+
if (!_0x552d19['ok'])
|
|
1714
|
+
throw new Error(_0x552d19[_0x47f140(_0x56effb._0x598fad)] ?? _0x47f140(0x115));
|
|
1787
1715
|
return {
|
|
1788
1716
|
'stopMain': !![],
|
|
1789
|
-
'threadTarget':
|
|
1790
|
-
'workerDisposition':
|
|
1717
|
+
'threadTarget': _0x3a33bf,
|
|
1718
|
+
'workerDisposition': _0x552d19[_0x47f140(0xcc)] === 'queued' ? _0x47f140(_0x56effb._0x285a9b) : 'started',
|
|
1791
1719
|
'workerHandoff': !![],
|
|
1792
|
-
'workerSessionId':
|
|
1793
|
-
'executionMode':
|
|
1720
|
+
'workerSessionId': _0x552d19[_0x47f140(0x195)] ?? '',
|
|
1721
|
+
'executionMode': 'worker'
|
|
1794
1722
|
};
|
|
1795
1723
|
}
|
|
1796
|
-
async function
|
|
1797
|
-
const
|
|
1798
|
-
if (!
|
|
1724
|
+
async function _0x1494b0() {
|
|
1725
|
+
const _0xc611c1 = _0x2500;
|
|
1726
|
+
if (!_0xe800b8['daemonLocalUrl'] || !_0xe800b8[_0xc611c1(0x123)] || _0xe800b8['workerMode'])
|
|
1799
1727
|
return null;
|
|
1800
1728
|
try {
|
|
1801
|
-
const
|
|
1802
|
-
if (!
|
|
1729
|
+
const _0x54a86b = await fetch(_0xe800b8[_0xc611c1(_0x53cad7._0x46cbc2)] + '/workers/list?agent_id=' + encodeURIComponent(_0xe800b8['agentId'])), _0x5c7f7e = await _0x54a86b[_0xc611c1(_0x53cad7._0x2301ad)]();
|
|
1730
|
+
if (!_0x5c7f7e['ok'])
|
|
1803
1731
|
return null;
|
|
1804
|
-
const
|
|
1805
|
-
for (const
|
|
1806
|
-
|
|
1732
|
+
const _0x55930f = new Set();
|
|
1733
|
+
for (const _0x20081e of _0x5c7f7e[_0xc611c1(_0x53cad7._0x48efe1)]) {
|
|
1734
|
+
_0x20081e[_0xc611c1(0x8a)] !== _0xc611c1(0x15a) && _0x20081e['thread_target'] && _0x55930f[_0xc611c1(_0x53cad7._0x46e99d)](_0x20081e[_0xc611c1(0x17c)]);
|
|
1807
1735
|
}
|
|
1808
|
-
return
|
|
1736
|
+
return _0x55930f[_0xc611c1(0x8e)] > 0x0 ? _0x55930f : null;
|
|
1809
1737
|
} catch {
|
|
1810
1738
|
return null;
|
|
1811
1739
|
}
|
|
1812
1740
|
}
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1741
|
+
const _0x55b591 = new Set([
|
|
1742
|
+
'running',
|
|
1743
|
+
_0x3731ec(0x12a),
|
|
1744
|
+
_0x3731ec(0xfe)
|
|
1817
1745
|
]);
|
|
1818
|
-
async function
|
|
1819
|
-
const
|
|
1820
|
-
if (!
|
|
1746
|
+
async function _0x4a288b() {
|
|
1747
|
+
const _0x27121a = _0x3731ec;
|
|
1748
|
+
if (!_0xe800b8['daemonLocalUrl'] || !_0xe800b8[_0x27121a(0x123)] || _0xe800b8[_0x27121a(0x13a)])
|
|
1821
1749
|
return null;
|
|
1822
1750
|
try {
|
|
1823
|
-
const
|
|
1824
|
-
if (!
|
|
1751
|
+
const _0x17b442 = await fetch(_0xe800b8[_0x27121a(0xd6)] + '/workers/list?agent_id=' + encodeURIComponent(_0xe800b8[_0x27121a(0x123)])), _0x258094 = await _0x17b442[_0x27121a(0x1a6)]();
|
|
1752
|
+
if (!_0x258094['ok'])
|
|
1825
1753
|
return null;
|
|
1826
|
-
const
|
|
1827
|
-
for (const
|
|
1828
|
-
|
|
1754
|
+
const _0x120a2d = new Set();
|
|
1755
|
+
for (const _0x529911 of _0x258094[_0x27121a(0xcf)]) {
|
|
1756
|
+
_0x55b591[_0x27121a(_0x1bc5f4._0x21b783)](_0x529911[_0x27121a(0x8a)]) && _0x529911[_0x27121a(0x17c)] && _0x120a2d['add'](_0x529911[_0x27121a(_0x1bc5f4._0x31f35c)]);
|
|
1829
1757
|
}
|
|
1830
|
-
return
|
|
1758
|
+
return _0x120a2d[_0x27121a(_0x1bc5f4._0x358f9d)] > 0x0 ? _0x120a2d : null;
|
|
1831
1759
|
} catch {
|
|
1832
1760
|
return null;
|
|
1833
1761
|
}
|
|
1834
1762
|
}
|
|
1835
1763
|
return {
|
|
1836
|
-
async 'send_message'(
|
|
1837
|
-
const
|
|
1838
|
-
if (!
|
|
1839
|
-
const
|
|
1840
|
-
if (
|
|
1841
|
-
const
|
|
1842
|
-
if (
|
|
1764
|
+
async 'send_message'(_0x325caa) {
|
|
1765
|
+
const _0x5a0620 = _0x3731ec;
|
|
1766
|
+
if (!_0xe800b8[_0x5a0620(0x13a)] && _0xe800b8[_0x5a0620(0x12b)] && _0xe800b8['daemonLocalUrl'] && _0xe800b8[_0x5a0620(_0x1bf4d5._0x5820d8)]) {
|
|
1767
|
+
const _0xebe8a7 = await _0xe800b8['client'][_0x5a0620(_0x1bf4d5._0x216dcb)](_0x325caa[_0x5a0620(_0x1bf4d5._0x1cad9c)]);
|
|
1768
|
+
if (_0xebe8a7['task'] && _0xebe8a7[_0x5a0620(0x109)]) {
|
|
1769
|
+
const _0x5854c4 = _0xebe8a7['task'][_0x5a0620(_0x1bf4d5._0x57d6cc)] != null ? '#' + _0xebe8a7[_0x5a0620(0x1c2)][_0x5a0620(_0x1bf4d5._0x5a420d)] : _0x5a0620(0x1e5), _0xf5caf = _0xebe8a7[_0x5a0620(0x95)] != null ? _0xebe8a7[_0x5a0620(_0x1bf4d5._0x50b645)] + ':t' + _0xebe8a7[_0x5a0620(0x95)] : _0xebe8a7[_0x5a0620(_0x1bf4d5._0x4c25ad)] + ':' + _0xebe8a7[_0x5a0620(0x109)]['slice'](0x0, 0x8), _0x32b2bb = await _0x4a288b();
|
|
1770
|
+
if (_0x32b2bb?.['has'](_0xf5caf))
|
|
1843
1771
|
return [
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
][
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1772
|
+
_0x5a0620(_0x1bf4d5._0x47009e) + _0x5854c4 + _0x5a0620(0xce) + _0xf5caf + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1773
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1774
|
+
]['join']('\x0a');
|
|
1775
|
+
const _0x2f3058 = [
|
|
1776
|
+
'[target=' + _0xf5caf + '\x20msg=handoff\x20time=' + new Date()['toISOString']() + _0x5a0620(0x1af),
|
|
1849
1777
|
'',
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
][
|
|
1855
|
-
'method':
|
|
1856
|
-
'headers': { 'Content-Type':
|
|
1857
|
-
'body': JSON[
|
|
1858
|
-
'agent_id':
|
|
1859
|
-
'thread_target':
|
|
1778
|
+
_0x5a0620(_0x1bf4d5._0x54d1d6) + _0x325caa[_0x5a0620(0x1f6)],
|
|
1779
|
+
_0x5a0620(0xb2) + _0x5854c4 + '\x20(' + _0xebe8a7[_0x5a0620(_0x1bf4d5._0x238826)]['taskId'] + ')',
|
|
1780
|
+
'Thread\x20target:\x20' + _0xf5caf,
|
|
1781
|
+
_0x5a0620(0xf9)
|
|
1782
|
+
][_0x5a0620(0x1e3)]('\x0a'), _0x2efeed = await fetch(_0xe800b8[_0x5a0620(0xd6)] + _0x5a0620(0x165), {
|
|
1783
|
+
'method': 'POST',
|
|
1784
|
+
'headers': { 'Content-Type': _0x5a0620(_0x1bf4d5._0x5e42fe) },
|
|
1785
|
+
'body': JSON[_0x5a0620(0x13e)]({
|
|
1786
|
+
'agent_id': _0xe800b8['agentId'],
|
|
1787
|
+
'thread_target': _0xf5caf,
|
|
1860
1788
|
'spawn_packet': {
|
|
1861
|
-
'replyTarget':
|
|
1862
|
-
'taskId':
|
|
1789
|
+
'replyTarget': _0xf5caf,
|
|
1790
|
+
'taskId': _0xebe8a7['task'][_0x5a0620(_0x1bf4d5._0x2df4aa)]
|
|
1863
1791
|
},
|
|
1864
1792
|
'payload': {
|
|
1865
|
-
'mode':
|
|
1866
|
-
'text':
|
|
1793
|
+
'mode': _0x5a0620(_0x1bf4d5._0x1cc5d9),
|
|
1794
|
+
'text': _0x2f3058
|
|
1867
1795
|
}
|
|
1868
1796
|
})
|
|
1869
|
-
}),
|
|
1870
|
-
if (!
|
|
1871
|
-
throw new Error(
|
|
1797
|
+
}), _0x68dc12 = await _0x2efeed[_0x5a0620(_0x1bf4d5._0x9577a6)]();
|
|
1798
|
+
if (!_0x68dc12['ok'])
|
|
1799
|
+
throw new Error(_0x68dc12[_0x5a0620(0xa1)] ?? _0x5a0620(_0x1bf4d5._0x31dad9));
|
|
1872
1800
|
return [
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
][
|
|
1801
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x5854c4 + _0x5a0620(_0x1bf4d5._0xfcaa6) + _0xf5caf + _0x5a0620(0x86),
|
|
1802
|
+
_0x5a0620(0x102) + (_0x68dc12[_0x5a0620(_0x1bf4d5._0x3e814a)] === 'queued' ? _0x5a0620(_0x1bf4d5._0x1b2a58) : 'started') + '.',
|
|
1803
|
+
_0x5a0620(_0x1bf4d5._0x96da8b)
|
|
1804
|
+
][_0x5a0620(_0x1bf4d5._0x6e8ab9)]('\x0a');
|
|
1877
1805
|
}
|
|
1878
1806
|
}
|
|
1879
|
-
const
|
|
1880
|
-
'attachmentIds':
|
|
1881
|
-
'content':
|
|
1882
|
-
'target':
|
|
1883
|
-
'visibility':
|
|
1807
|
+
const _0x302c2b = await _0xe800b8[_0x5a0620(_0x1bf4d5._0x7ba598)][_0x5a0620(0xaf)]({
|
|
1808
|
+
'attachmentIds': _0x325caa['attachment_ids'],
|
|
1809
|
+
'content': _0x325caa['content'],
|
|
1810
|
+
'target': _0x325caa[_0x5a0620(_0x1bf4d5._0xcc0d5e)],
|
|
1811
|
+
'visibility': _0x325caa['visibility']
|
|
1884
1812
|
});
|
|
1885
|
-
return
|
|
1813
|
+
return 'Message\x20sent\x20to\x20' + _0x325caa[_0x5a0620(0x98)] + _0x5a0620(_0x1bf4d5._0x54fc1e) + _0x302c2b[_0x5a0620(_0x1bf4d5._0x3bd2f4)];
|
|
1886
1814
|
},
|
|
1887
1815
|
async 'check_messages'() {
|
|
1888
|
-
const
|
|
1889
|
-
if (!
|
|
1890
|
-
const
|
|
1891
|
-
if (
|
|
1892
|
-
return formatCheckMessages(
|
|
1816
|
+
const _0x1a5b54 = _0x3731ec, _0xd27dc0 = await _0xe800b8[_0x1a5b54(_0x484a1a._0x3e6d9d)]['checkMessages']();
|
|
1817
|
+
if (!_0xe800b8[_0x1a5b54(_0x484a1a._0x2a63c2)]) {
|
|
1818
|
+
const _0x266e09 = await _0x1494b0();
|
|
1819
|
+
if (_0x266e09)
|
|
1820
|
+
return formatCheckMessages(_0xd27dc0[_0x1a5b54(_0x484a1a._0x302a36)][_0x1a5b54(_0x484a1a._0x569057)](_0x389784 => !_0x266e09[_0x1a5b54(0x16e)](_0x389784['target'])));
|
|
1893
1821
|
}
|
|
1894
|
-
return formatCheckMessages(
|
|
1822
|
+
return formatCheckMessages(_0xd27dc0[_0x1a5b54(0x10b)]);
|
|
1895
1823
|
},
|
|
1896
|
-
async 'read_history'(
|
|
1897
|
-
const
|
|
1898
|
-
return formatHistory(
|
|
1824
|
+
async 'read_history'(_0x2fe0bc) {
|
|
1825
|
+
const _0x23be45 = _0x3731ec, _0x277c0b = await _0xe800b8[_0x23be45(_0x45614d._0x5e43c2)][_0x23be45(0xfa)](_0x2fe0bc);
|
|
1826
|
+
return formatHistory(_0x277c0b);
|
|
1899
1827
|
},
|
|
1900
1828
|
async 'list_server'() {
|
|
1901
|
-
const
|
|
1902
|
-
return formatServerDirectory(
|
|
1829
|
+
const _0x25ac43 = _0x3731ec, _0x1ca4b5 = await _0xe800b8[_0x25ac43(0xc4)][_0x25ac43(0x89)]();
|
|
1830
|
+
return formatServerDirectory(_0x1ca4b5);
|
|
1903
1831
|
},
|
|
1904
|
-
async 'list_tasks'(
|
|
1905
|
-
const
|
|
1906
|
-
let
|
|
1907
|
-
if (
|
|
1832
|
+
async 'list_tasks'(_0x3ed87b) {
|
|
1833
|
+
const _0x34b8e1 = _0x3731ec, _0x498e09 = await _0xe800b8[_0x34b8e1(0xc4)][_0x34b8e1(0x169)](_0x3ed87b);
|
|
1834
|
+
let _0x9aeaf0;
|
|
1835
|
+
if (_0xe800b8[_0x34b8e1(0xd6)] && _0xe800b8[_0x34b8e1(0x123)])
|
|
1908
1836
|
try {
|
|
1909
|
-
const
|
|
1910
|
-
if (
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1913
|
-
for (const
|
|
1914
|
-
if (
|
|
1837
|
+
const _0x2c73dc = await fetch(_0xe800b8[_0x34b8e1(_0xa344c7._0xfa0d9d)] + _0x34b8e1(_0xa344c7._0x18f49f) + encodeURIComponent(_0xe800b8[_0x34b8e1(0x123)])), _0x1f910a = await _0x2c73dc[_0x34b8e1(0x1a6)]();
|
|
1838
|
+
if (_0x1f910a['ok']) {
|
|
1839
|
+
const _0x127f8c = _0x3ed87b[_0x34b8e1(0xb6)] + ':';
|
|
1840
|
+
_0x9aeaf0 = new Set();
|
|
1841
|
+
for (const _0x3d946d of _0x1f910a['workers']) {
|
|
1842
|
+
if (_0x3d946d['status'] === _0x34b8e1(_0xa344c7._0x1b5cac))
|
|
1915
1843
|
continue;
|
|
1916
|
-
if (
|
|
1917
|
-
const
|
|
1918
|
-
if (
|
|
1919
|
-
|
|
1844
|
+
if (_0x3d946d['thread_target']?.[_0x34b8e1(0x13d)](_0x127f8c)) {
|
|
1845
|
+
const _0x15c656 = _0x3d946d[_0x34b8e1(_0xa344c7._0x72b51c)]['slice'](_0x127f8c['length']), _0x466123 = _0x498e09[_0x34b8e1(0x17e)][_0x34b8e1(0x1c1)](_0x5e7e1d => _0x5e7e1d[_0x34b8e1(0x141)]?.[_0x34b8e1(0x13d)](_0x15c656) === !![]);
|
|
1846
|
+
if (_0x466123?.['taskNumber'] != null) {
|
|
1847
|
+
_0x9aeaf0[_0x34b8e1(0x1d0)](_0x466123[_0x34b8e1(0x1e8)]);
|
|
1920
1848
|
continue;
|
|
1921
1849
|
}
|
|
1922
1850
|
}
|
|
1923
|
-
if (
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1851
|
+
if (_0x3d946d[_0x34b8e1(0xb0)]) {
|
|
1852
|
+
const _0x571ac6 = _0x498e09['tasks']['find'](_0x476d4f => _0x476d4f[_0x34b8e1(0x137)] === _0x3d946d[_0x34b8e1(0xb0)]);
|
|
1853
|
+
_0x571ac6?.[_0x34b8e1(_0xa344c7._0x3c7945)] != null && _0x9aeaf0[_0x34b8e1(0x1d0)](_0x571ac6[_0x34b8e1(_0xa344c7._0x22fcff)]);
|
|
1926
1854
|
}
|
|
1927
1855
|
}
|
|
1928
1856
|
}
|
|
1929
1857
|
} catch {
|
|
1930
1858
|
}
|
|
1931
|
-
return formatTaskList(
|
|
1859
|
+
return formatTaskList(_0x498e09[_0x34b8e1(_0xa344c7._0x3a1a53)], _0x9aeaf0);
|
|
1932
1860
|
},
|
|
1933
|
-
async 'create_tasks'(
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
const
|
|
1937
|
-
return formatCreatedTasks(
|
|
1861
|
+
async 'create_tasks'(_0x59dad4) {
|
|
1862
|
+
const _0x1d497d = _0x3731ec;
|
|
1863
|
+
_0x3619db(_0x1d497d(0x1e4), _0x59dad4['channel']);
|
|
1864
|
+
const _0x3906e0 = await _0xe800b8[_0x1d497d(_0x53d99f._0x2058c4)]['createTasks'](_0x59dad4);
|
|
1865
|
+
return formatCreatedTasks(_0x3906e0[_0x1d497d(_0x53d99f._0x31fe27)]);
|
|
1938
1866
|
},
|
|
1939
|
-
async 'claim_tasks'(
|
|
1940
|
-
const
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1867
|
+
async 'claim_tasks'(_0x551d9a) {
|
|
1868
|
+
const _0x42ee57 = {
|
|
1869
|
+
_0x3b610f: 0x1b0,
|
|
1870
|
+
_0x2bc17d: 0x141,
|
|
1871
|
+
_0xcc8388: 0xdb,
|
|
1872
|
+
_0xf9907: 0x115
|
|
1873
|
+
}, _0x101c84 = _0x3731ec;
|
|
1874
|
+
if (_0xe800b8[_0x101c84(0x13a)]) {
|
|
1875
|
+
_0x3619db('claim_tasks', _0x551d9a[_0x101c84(0xb6)]);
|
|
1876
|
+
if (_0x551d9a[_0x101c84(_0x114d83._0xa307fe)] && _0x551d9a[_0x101c84(0xa6)][_0x101c84(_0x114d83._0x25d33e)] > 0x0)
|
|
1877
|
+
throw new Error(_0x101c84(0x1a1));
|
|
1878
|
+
if (!_0x551d9a[_0x101c84(0x163)] || _0x551d9a[_0x101c84(0x163)][_0x101c84(_0x114d83._0x25d33e)] === 0x0)
|
|
1879
|
+
throw new Error(_0x101c84(_0x114d83._0x33fd24));
|
|
1947
1880
|
}
|
|
1948
|
-
const
|
|
1949
|
-
const
|
|
1950
|
-
if (!
|
|
1951
|
-
return
|
|
1881
|
+
const _0x17f9e8 = await _0xe800b8['client'][_0x101c84(0x140)](_0x551d9a), _0x1428a9 = await Promise[_0x101c84(0xbc)](_0x17f9e8[_0x101c84(0x1e9)][_0x101c84(0x127)](async _0x4a712d => {
|
|
1882
|
+
const _0x13789a = _0x101c84;
|
|
1883
|
+
if (!_0x4a712d[_0x13789a(_0x42ee57._0x3b610f)] || !_0x4a712d[_0x13789a(_0x42ee57._0x2bc17d)])
|
|
1884
|
+
return _0x4a712d;
|
|
1952
1885
|
try {
|
|
1953
|
-
const
|
|
1954
|
-
'channel':
|
|
1955
|
-
'messageId':
|
|
1956
|
-
'taskId':
|
|
1957
|
-
'taskNumber':
|
|
1958
|
-
'threadNumber':
|
|
1886
|
+
const _0x47eecf = await _0x16f543({
|
|
1887
|
+
'channel': _0x551d9a[_0x13789a(0xb6)],
|
|
1888
|
+
'messageId': _0x4a712d['messageId'],
|
|
1889
|
+
'taskId': _0x4a712d[_0x13789a(0x137)],
|
|
1890
|
+
'taskNumber': _0x4a712d[_0x13789a(0x1e8)],
|
|
1891
|
+
'threadNumber': _0x4a712d['threadNumber']
|
|
1959
1892
|
});
|
|
1960
|
-
return
|
|
1961
|
-
...
|
|
1962
|
-
...
|
|
1963
|
-
} :
|
|
1964
|
-
} catch (
|
|
1893
|
+
return _0x47eecf ? {
|
|
1894
|
+
..._0x4a712d,
|
|
1895
|
+
..._0x47eecf
|
|
1896
|
+
} : _0x4a712d;
|
|
1897
|
+
} catch (_0xedb31c) {
|
|
1965
1898
|
return {
|
|
1966
|
-
...
|
|
1967
|
-
'workerHandoffError':
|
|
1899
|
+
..._0x4a712d,
|
|
1900
|
+
'workerHandoffError': _0xedb31c instanceof Error ? _0xedb31c[_0x13789a(_0x42ee57._0xcc8388)] : _0x13789a(_0x42ee57._0xf9907)
|
|
1968
1901
|
};
|
|
1969
1902
|
}
|
|
1970
1903
|
}));
|
|
1971
|
-
return formatClaimTaskResults(
|
|
1904
|
+
return formatClaimTaskResults(_0x1428a9);
|
|
1972
1905
|
},
|
|
1973
|
-
async 'unclaim_task'(
|
|
1974
|
-
const
|
|
1975
|
-
if (
|
|
1976
|
-
|
|
1977
|
-
if (
|
|
1978
|
-
throw new Error(
|
|
1906
|
+
async 'unclaim_task'(_0x47c7ad) {
|
|
1907
|
+
const _0x499db5 = _0x3731ec;
|
|
1908
|
+
if (_0xe800b8[_0x499db5(_0x2d730d._0x1ccc27)]) {
|
|
1909
|
+
_0x3619db(_0x499db5(0x10d), _0x47c7ad[_0x499db5(_0x2d730d._0x1814d0)]);
|
|
1910
|
+
if (_0x47c7ad[_0x499db5(0x100)] == null)
|
|
1911
|
+
throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
|
|
1979
1912
|
}
|
|
1980
|
-
const
|
|
1981
|
-
return formatUnclaimTaskResult(
|
|
1913
|
+
const _0x557946 = await _0xe800b8['client'][_0x499db5(_0x2d730d._0x382397)](_0x47c7ad);
|
|
1914
|
+
return formatUnclaimTaskResult(_0x557946);
|
|
1982
1915
|
},
|
|
1983
|
-
async 'update_task_status'(
|
|
1984
|
-
const
|
|
1985
|
-
|
|
1986
|
-
const
|
|
1987
|
-
return formatUpdateTaskStatusResult(
|
|
1916
|
+
async 'update_task_status'(_0x6be141) {
|
|
1917
|
+
const _0x3e60a2 = _0x3731ec;
|
|
1918
|
+
_0x3619db('update_task_status', _0x6be141['channel']);
|
|
1919
|
+
const _0x2edc44 = await _0xe800b8['client'][_0x3e60a2(_0x325be9._0x30aa73)](_0x6be141);
|
|
1920
|
+
return formatUpdateTaskStatusResult(_0x2edc44);
|
|
1988
1921
|
},
|
|
1989
|
-
async 'upload_file'(
|
|
1990
|
-
const
|
|
1991
|
-
sizeBytes:
|
|
1992
|
-
...
|
|
1993
|
-
} =
|
|
1994
|
-
'channel':
|
|
1995
|
-
...
|
|
1922
|
+
async 'upload_file'(_0x40c61e) {
|
|
1923
|
+
const _0x4053ac = _0x3731ec, _0x435c4a = await _0xe800b8['uploadPreparer'](_0x40c61e[_0x4053ac(0x1de)]), {
|
|
1924
|
+
sizeBytes: _0x5f1f7d,
|
|
1925
|
+
..._0xe09f34
|
|
1926
|
+
} = _0x435c4a, _0x1adec3 = await _0xe800b8[_0x4053ac(0xc4)][_0x4053ac(0xba)]({
|
|
1927
|
+
'channel': _0x40c61e[_0x4053ac(_0x1ac473._0x51b54e)],
|
|
1928
|
+
..._0xe09f34
|
|
1996
1929
|
});
|
|
1997
|
-
return formatUploadResult(
|
|
1930
|
+
return formatUploadResult(_0x1adec3);
|
|
1998
1931
|
},
|
|
1999
|
-
async 'view_file'(
|
|
2000
|
-
const
|
|
2001
|
-
if (
|
|
2002
|
-
return formatViewFileResult(
|
|
2003
|
-
const
|
|
2004
|
-
'attachmentId':
|
|
2005
|
-
'contentType':
|
|
2006
|
-
'data':
|
|
2007
|
-
'originalFilename':
|
|
1932
|
+
async 'view_file'(_0x850910) {
|
|
1933
|
+
const _0x5cad46 = _0x3731ec, _0x1af2ac = await _0xe800b8[_0x5cad46(_0x1cac89._0x414aa0)][_0x5cad46(_0x1cac89._0x2d86e4)](_0x850910['attachment_id']);
|
|
1934
|
+
if (_0x1af2ac)
|
|
1935
|
+
return formatViewFileResult(_0x1af2ac, !![]);
|
|
1936
|
+
const _0x3b8299 = await _0xe800b8[_0x5cad46(0xc4)][_0x5cad46(_0x1cac89._0x19d351)](_0x850910[_0x5cad46(_0x1cac89._0x3c6663)]), _0x27cee5 = await _0xe800b8[_0x5cad46(0x12e)][_0x5cad46(_0x1cac89._0x6f2799)]({
|
|
1937
|
+
'attachmentId': _0x850910[_0x5cad46(0x87)],
|
|
1938
|
+
'contentType': _0x3b8299['contentType'],
|
|
1939
|
+
'data': _0x3b8299[_0x5cad46(0x16c)],
|
|
1940
|
+
'originalFilename': _0x3b8299[_0x5cad46(_0x1cac89._0x26a8df)]
|
|
2008
1941
|
});
|
|
2009
|
-
return formatViewFileResult(
|
|
1942
|
+
return formatViewFileResult(_0x27cee5, ![]);
|
|
2010
1943
|
},
|
|
2011
|
-
async 'get_worker_status'(
|
|
2012
|
-
const
|
|
2013
|
-
if (!
|
|
2014
|
-
return
|
|
2015
|
-
const
|
|
2016
|
-
if (!
|
|
2017
|
-
return
|
|
2018
|
-
return
|
|
1944
|
+
async 'get_worker_status'(_0x32e1db) {
|
|
1945
|
+
const _0x56e50b = _0x3731ec;
|
|
1946
|
+
if (!_0xe800b8[_0x56e50b(0xd6)])
|
|
1947
|
+
return _0x56e50b(_0x557daa._0x1e9b78);
|
|
1948
|
+
const _0x41ce0d = await fetch(_0xe800b8[_0x56e50b(_0x557daa._0x5405ae)] + '/workers/status?work_key=' + encodeURIComponent(_0x32e1db[_0x56e50b(0x1ae)])), _0x3d7bfe = await _0x41ce0d['json']();
|
|
1949
|
+
if (!_0x3d7bfe['ok'])
|
|
1950
|
+
return 'Worker\x20\x22' + _0x32e1db['work_key'] + _0x56e50b(_0x557daa._0x2c454f);
|
|
1951
|
+
return _0x56e50b(_0x557daa._0x3e95d7) + _0x32e1db[_0x56e50b(_0x557daa._0x2b68b2)] + _0x56e50b(0x1df) + _0x3d7bfe['status'];
|
|
2019
1952
|
},
|
|
2020
|
-
async 'park_worker'(
|
|
2021
|
-
const
|
|
2022
|
-
if (!
|
|
2023
|
-
return
|
|
2024
|
-
const
|
|
2025
|
-
'method':
|
|
2026
|
-
'headers': { 'Content-Type':
|
|
2027
|
-
'body': JSON[
|
|
2028
|
-
}),
|
|
2029
|
-
if (!
|
|
2030
|
-
throw new Error(
|
|
2031
|
-
return 'Worker\x20\x22' +
|
|
1953
|
+
async 'park_worker'(_0x2a7505) {
|
|
1954
|
+
const _0x5a150e = _0x3731ec;
|
|
1955
|
+
if (!_0xe800b8[_0x5a150e(_0xe36600._0x2582bd)])
|
|
1956
|
+
return _0x5a150e(_0xe36600._0x4b5c6b);
|
|
1957
|
+
const _0xcf4529 = await fetch(_0xe800b8[_0x5a150e(_0xe36600._0x2582bd)] + _0x5a150e(0x8d), {
|
|
1958
|
+
'method': _0x5a150e(_0xe36600._0x619726),
|
|
1959
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1960
|
+
'body': JSON[_0x5a150e(0x13e)]({ 'work_key': _0x2a7505['work_key'] })
|
|
1961
|
+
}), _0x48c0d6 = await _0xcf4529[_0x5a150e(0x1a6)]();
|
|
1962
|
+
if (!_0x48c0d6['ok'])
|
|
1963
|
+
throw new Error(_0x48c0d6['error'] ?? _0x5a150e(0x84));
|
|
1964
|
+
return 'Worker\x20\x22' + _0x2a7505[_0x5a150e(0x1ae)] + _0x5a150e(_0xe36600._0x26a715);
|
|
2032
1965
|
},
|
|
2033
|
-
async 'mark_waiting_input'(
|
|
2034
|
-
const
|
|
2035
|
-
if (!
|
|
2036
|
-
return
|
|
2037
|
-
const
|
|
2038
|
-
'method':
|
|
1966
|
+
async 'mark_waiting_input'(_0x3d2de2) {
|
|
1967
|
+
const _0x33149c = _0x3731ec;
|
|
1968
|
+
if (!_0xe800b8[_0x33149c(_0x7326b8._0x214283)] || !_0xe800b8[_0x33149c(0x123)])
|
|
1969
|
+
return _0x33149c(0x17d);
|
|
1970
|
+
const _0x2449ac = await fetch(_0xe800b8[_0x33149c(_0x7326b8._0x442d40)] + '/workers/waiting_input', {
|
|
1971
|
+
'method': _0x33149c(_0x7326b8._0x32235),
|
|
2039
1972
|
'headers': { 'Content-Type': 'application/json' },
|
|
2040
|
-
'body': JSON[
|
|
2041
|
-
'work_key':
|
|
2042
|
-
'agent_id':
|
|
1973
|
+
'body': JSON[_0x33149c(0x13e)]({
|
|
1974
|
+
'work_key': _0x3d2de2['work_key'],
|
|
1975
|
+
'agent_id': _0xe800b8[_0x33149c(_0x7326b8._0x327812)]
|
|
2043
1976
|
})
|
|
2044
|
-
}),
|
|
2045
|
-
if (!
|
|
2046
|
-
throw new Error(
|
|
2047
|
-
return 'Worker\x20\x22' +
|
|
1977
|
+
}), _0x1e8085 = await _0x2449ac[_0x33149c(0x1a6)]();
|
|
1978
|
+
if (!_0x1e8085['ok'])
|
|
1979
|
+
throw new Error(_0x1e8085['error'] ?? _0x33149c(_0x7326b8._0xf46295));
|
|
1980
|
+
return 'Worker\x20\x22' + _0x3d2de2[_0x33149c(0x1ae)] + _0x33149c(0x1fd);
|
|
2048
1981
|
},
|
|
2049
|
-
async 'escalate_to_main'(
|
|
2050
|
-
const
|
|
2051
|
-
if (!
|
|
2052
|
-
return
|
|
2053
|
-
const
|
|
1982
|
+
async 'escalate_to_main'(_0x3a47e0) {
|
|
1983
|
+
const _0x2c7c03 = _0x3731ec;
|
|
1984
|
+
if (!_0xe800b8[_0x2c7c03(0xd6)])
|
|
1985
|
+
return _0x2c7c03(0x153);
|
|
1986
|
+
const _0x4a1fb3 = await fetch(_0xe800b8[_0x2c7c03(0xd6)] + '/workers/escalate', {
|
|
2054
1987
|
'method': 'POST',
|
|
2055
|
-
'headers': { 'Content-Type':
|
|
2056
|
-
'body': JSON[
|
|
2057
|
-
'work_key':
|
|
2058
|
-
'reason':
|
|
1988
|
+
'headers': { 'Content-Type': _0x2c7c03(_0x583367._0x21c4c8) },
|
|
1989
|
+
'body': JSON[_0x2c7c03(_0x583367._0x50d88e)]({
|
|
1990
|
+
'work_key': _0x3a47e0[_0x2c7c03(_0x583367._0x493fe6)],
|
|
1991
|
+
'reason': _0x3a47e0['reason']
|
|
2059
1992
|
})
|
|
2060
|
-
}),
|
|
2061
|
-
if (!
|
|
2062
|
-
throw new Error(
|
|
2063
|
-
return
|
|
1993
|
+
}), _0x2e5192 = await _0x4a1fb3[_0x2c7c03(_0x583367._0x46f5dd)]();
|
|
1994
|
+
if (!_0x2e5192['ok'])
|
|
1995
|
+
throw new Error(_0x2e5192[_0x2c7c03(_0x583367._0x58623c)] ?? _0x2c7c03(_0x583367._0x1ea5a3));
|
|
1996
|
+
return _0x2c7c03(0x154) + _0x3a47e0['reason'];
|
|
2064
1997
|
}
|
|
2065
1998
|
};
|
|
2066
1999
|
}
|
|
2067
|
-
function textResult(
|
|
2068
|
-
const
|
|
2000
|
+
function textResult(_0x1da801, _0x3c36e7 = ![]) {
|
|
2001
|
+
const _0x62203c = _0x39cf13;
|
|
2069
2002
|
return {
|
|
2070
2003
|
'content': [{
|
|
2071
|
-
'type':
|
|
2072
|
-
'text':
|
|
2004
|
+
'type': _0x62203c(0x1e7),
|
|
2005
|
+
'text': _0x1da801
|
|
2073
2006
|
}],
|
|
2074
|
-
...
|
|
2007
|
+
..._0x3c36e7 ? { 'isError': !![] } : {}
|
|
2075
2008
|
};
|
|
2076
2009
|
}
|
|
2077
|
-
async function registerChatBridgeTools(
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2010
|
+
async function registerChatBridgeTools(_0x1e1e6c, _0x53e3ba, _0x3d549f) {
|
|
2011
|
+
const _0x566b17 = {
|
|
2012
|
+
_0x30f858: 0xef,
|
|
2013
|
+
_0x35abea: 0x1bb,
|
|
2014
|
+
_0x1e4573: 0x1cf,
|
|
2015
|
+
_0x3f78a3: 0x1f7,
|
|
2016
|
+
_0x30a91d: 0x1cc,
|
|
2017
|
+
_0xbf9d2: 0x9f,
|
|
2018
|
+
_0x3a3ba4: 0xa2,
|
|
2019
|
+
_0x1ffa9e: 0x181,
|
|
2020
|
+
_0x22f255: 0xef,
|
|
2021
|
+
_0x5440f9: 0xf0,
|
|
2022
|
+
_0x197e52: 0xf5,
|
|
2023
|
+
_0x27d02c: 0x9f,
|
|
2024
|
+
_0xe1bbfb: 0x162,
|
|
2025
|
+
_0x1200ea: 0x9f,
|
|
2026
|
+
_0x2b5884: 0xef,
|
|
2027
|
+
_0x5bb683: 0xef,
|
|
2028
|
+
_0x2591c4: 0x1f2,
|
|
2029
|
+
_0x428141: 0xb3,
|
|
2030
|
+
_0x443f5f: 0x1f7,
|
|
2031
|
+
_0x2eafa1: 0x1f7,
|
|
2032
|
+
_0x5d2783: 0x201,
|
|
2033
|
+
_0xfd01bf: 0x19e,
|
|
2034
|
+
_0x1662b5: 0xc0,
|
|
2035
|
+
_0x5aef38: 0x9f,
|
|
2036
|
+
_0x266f76: 0x1f7,
|
|
2037
|
+
_0x2c540e: 0x162,
|
|
2038
|
+
_0x1aefb0: 0x155,
|
|
2039
|
+
_0x407a9b: 0x1f7,
|
|
2040
|
+
_0xa181aa: 0xdf,
|
|
2041
|
+
_0xa0e0cc: 0x162,
|
|
2042
|
+
_0x3274db: 0xe2,
|
|
2043
|
+
_0x213b72: 0xb7,
|
|
2044
|
+
_0xb3a69f: 0x1b2,
|
|
2045
|
+
_0x768890: 0xe4,
|
|
2046
|
+
_0x4d89fc: 0x1f7,
|
|
2047
|
+
_0x4567b3: 0x1c8,
|
|
2048
|
+
_0x5275e1: 0x11a,
|
|
2049
|
+
_0x4cdedf: 0x182,
|
|
2050
|
+
_0x2b7ff3: 0x1f7,
|
|
2051
|
+
_0x5c8813: 0x19f,
|
|
2052
|
+
_0x12fcd1: 0x1f7
|
|
2053
|
+
}, _0x46cf2b = { _0x31b415: 0xdb }, _0x408883 = {
|
|
2054
|
+
_0xd89753: 0xdb,
|
|
2055
|
+
_0x58145e: 0x84
|
|
2056
|
+
}, _0x17fa47 = {
|
|
2057
|
+
_0x5374e8: 0xdb,
|
|
2058
|
+
_0x5f5282: 0xee
|
|
2059
|
+
}, _0x20cb2d = {
|
|
2060
|
+
_0x40a408: 0xe4,
|
|
2061
|
+
_0x484787: 0xdb
|
|
2062
|
+
}, _0x436d58 = { _0x4b1777: 0x1b2 }, _0x2fffe2 = {
|
|
2063
|
+
_0x144dc7: 0xdb,
|
|
2064
|
+
_0x103ff2: 0x125
|
|
2065
|
+
}, _0x1561ee = {
|
|
2066
|
+
_0x2b33e7: 0x1e4,
|
|
2067
|
+
_0x40c584: 0xdb
|
|
2068
|
+
}, _0x4d3c73 = {
|
|
2069
|
+
_0x2279a1: 0x1da,
|
|
2070
|
+
_0x1a125e: 0x88
|
|
2071
|
+
}, _0x5e8ec5 = {
|
|
2072
|
+
_0xb50c6e: 0x14e,
|
|
2073
|
+
_0x3ca14f: 0x1dd
|
|
2074
|
+
}, _0x54e668 = { _0x472e4d: 0x1ff }, _0x30a8e1 = {
|
|
2075
|
+
_0x5bea7c: 0xdb,
|
|
2076
|
+
_0x4b8f8f: 0x1f0
|
|
2077
|
+
}, _0x51086c = _0x39cf13, {z: _0x28c5af} = await import('zod');
|
|
2078
|
+
_0x1e1e6c[_0x51086c(_0x566b17._0x30f858)](_0x51086c(_0x566b17._0x35abea), _0x51086c(_0x566b17._0x1e4573), {
|
|
2079
|
+
'target': _0x28c5af[_0x51086c(_0x566b17._0x3f78a3)](),
|
|
2080
|
+
'content': _0x28c5af['string'](),
|
|
2081
|
+
'attachment_ids': _0x28c5af[_0x51086c(_0x566b17._0x30a91d)](_0x28c5af[_0x51086c(0x1f7)]())[_0x51086c(_0x566b17._0xbf9d2)](),
|
|
2082
|
+
'visibility': _0x28c5af[_0x51086c(0x201)]([
|
|
2083
|
+
_0x51086c(0xde),
|
|
2084
|
+
'aside'
|
|
2085
|
+
])[_0x51086c(0x9f)]()[_0x51086c(_0x566b17._0x3a3ba4)]('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2086
|
+
}, async _0x2d3071 => {
|
|
2087
|
+
const _0x2eddf7 = _0x51086c;
|
|
2145
2088
|
try {
|
|
2146
|
-
return textResult(await
|
|
2147
|
-
} catch (
|
|
2148
|
-
return textResult(
|
|
2089
|
+
return textResult(await _0x53e3ba[_0x2eddf7(0x1bb)](_0x2d3071));
|
|
2090
|
+
} catch (_0x344e0c) {
|
|
2091
|
+
return textResult(_0x344e0c instanceof Error ? _0x344e0c[_0x2eddf7(_0x30a8e1._0x5bea7c)] : _0x2eddf7(_0x30a8e1._0x4b8f8f), !![]);
|
|
2149
2092
|
}
|
|
2150
|
-
}),
|
|
2151
|
-
const
|
|
2093
|
+
}), _0x1e1e6c[_0x51086c(_0x566b17._0x30f858)](_0x51086c(0x1f9), _0x51086c(_0x566b17._0x1ffa9e), {}, async () => {
|
|
2094
|
+
const _0x5a09de = _0x51086c;
|
|
2152
2095
|
try {
|
|
2153
|
-
return textResult(await
|
|
2154
|
-
} catch (
|
|
2155
|
-
return textResult(
|
|
2096
|
+
return textResult(await _0x53e3ba[_0x5a09de(0x1f9)]());
|
|
2097
|
+
} catch (_0x58ac5b) {
|
|
2098
|
+
return textResult(_0x58ac5b instanceof Error ? _0x58ac5b['message'] : _0x5a09de(_0x54e668._0x472e4d), !![]);
|
|
2156
2099
|
}
|
|
2157
|
-
}),
|
|
2158
|
-
'channel':
|
|
2159
|
-
'limit':
|
|
2160
|
-
'before':
|
|
2161
|
-
'after':
|
|
2162
|
-
}, async
|
|
2163
|
-
const
|
|
2100
|
+
}), _0x1e1e6c[_0x51086c(_0x566b17._0x22f255)](_0x51086c(_0x566b17._0x5440f9), _0x51086c(_0x566b17._0x197e52), {
|
|
2101
|
+
'channel': _0x28c5af[_0x51086c(0x1f7)](),
|
|
2102
|
+
'limit': _0x28c5af[_0x51086c(0x162)]()['optional'](),
|
|
2103
|
+
'before': _0x28c5af['number']()[_0x51086c(_0x566b17._0x27d02c)](),
|
|
2104
|
+
'after': _0x28c5af[_0x51086c(_0x566b17._0xe1bbfb)]()[_0x51086c(_0x566b17._0x1200ea)]()
|
|
2105
|
+
}, async _0x2e076c => {
|
|
2106
|
+
const _0x2a22ac = _0x51086c;
|
|
2164
2107
|
try {
|
|
2165
|
-
return textResult(await
|
|
2166
|
-
} catch (
|
|
2167
|
-
return textResult(
|
|
2108
|
+
return textResult(await _0x53e3ba[_0x2a22ac(0xf0)](_0x2e076c));
|
|
2109
|
+
} catch (_0x3c1eea) {
|
|
2110
|
+
return textResult(_0x3c1eea instanceof Error ? _0x3c1eea['message'] : _0x2a22ac(0xe8), !![]);
|
|
2168
2111
|
}
|
|
2169
|
-
}),
|
|
2170
|
-
const
|
|
2112
|
+
}), _0x1e1e6c[_0x51086c(_0x566b17._0x2b5884)](_0x51086c(0x14e), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2113
|
+
const _0x2c45a6 = _0x51086c;
|
|
2171
2114
|
try {
|
|
2172
|
-
return textResult(await
|
|
2173
|
-
} catch (
|
|
2174
|
-
return textResult(
|
|
2115
|
+
return textResult(await _0x53e3ba[_0x2c45a6(_0x5e8ec5._0xb50c6e)]());
|
|
2116
|
+
} catch (_0x34ca8d) {
|
|
2117
|
+
return textResult(_0x34ca8d instanceof Error ? _0x34ca8d[_0x2c45a6(0xdb)] : _0x2c45a6(_0x5e8ec5._0x3ca14f), !![]);
|
|
2175
2118
|
}
|
|
2176
|
-
}),
|
|
2177
|
-
'channel':
|
|
2178
|
-
'status':
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
])[
|
|
2184
|
-
}, async
|
|
2185
|
-
const
|
|
2119
|
+
}), _0x1e1e6c[_0x51086c(_0x566b17._0x5bb683)](_0x51086c(0x1da), 'List\x20tasks\x20in\x20a\x20channel\x20or\x20thread.\x20Thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22)\x20returns\x20the\x20parent\x20task\x20plus\x20its\x20subtasks\x20with\x20aggregation\x20fields\x20(childrenTotal,\x20childrenDone,\x20childrenInProgress).\x20Channel\x20target\x20returns\x20only\x20parent\x20tasks\x20(no\x20subtasks).', {
|
|
2120
|
+
'channel': _0x28c5af[_0x51086c(0x1f7)](),
|
|
2121
|
+
'status': _0x28c5af[_0x51086c(0x201)]([
|
|
2122
|
+
_0x51086c(_0x566b17._0x2591c4),
|
|
2123
|
+
_0x51086c(0xe2),
|
|
2124
|
+
_0x51086c(0x19b),
|
|
2125
|
+
_0x51086c(0xb7)
|
|
2126
|
+
])[_0x51086c(_0x566b17._0x1200ea)]()
|
|
2127
|
+
}, async _0x5eb548 => {
|
|
2128
|
+
const _0x5d7c7a = _0x51086c;
|
|
2186
2129
|
try {
|
|
2187
|
-
return textResult(await
|
|
2188
|
-
} catch (
|
|
2189
|
-
return textResult(
|
|
2130
|
+
return textResult(await _0x53e3ba[_0x5d7c7a(_0x4d3c73._0x2279a1)](_0x5eb548));
|
|
2131
|
+
} catch (_0x428bc3) {
|
|
2132
|
+
return textResult(_0x428bc3 instanceof Error ? _0x428bc3['message'] : _0x5d7c7a(_0x4d3c73._0x1a125e), !![]);
|
|
2190
2133
|
}
|
|
2191
|
-
}),
|
|
2192
|
-
'channel':
|
|
2193
|
-
'idempotency_key':
|
|
2194
|
-
'tasks':
|
|
2195
|
-
'title':
|
|
2196
|
-
'description':
|
|
2197
|
-
'priority':
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
])[
|
|
2134
|
+
}), _0x1e1e6c[_0x51086c(_0x566b17._0x2b5884)](_0x51086c(0x1e4), _0x51086c(_0x566b17._0x428141), {
|
|
2135
|
+
'channel': _0x28c5af[_0x51086c(0x1f7)](),
|
|
2136
|
+
'idempotency_key': _0x28c5af[_0x51086c(0x1f7)]()[_0x51086c(_0x566b17._0xbf9d2)](),
|
|
2137
|
+
'tasks': _0x28c5af['array'](_0x28c5af['object']({
|
|
2138
|
+
'title': _0x28c5af[_0x51086c(_0x566b17._0x443f5f)](),
|
|
2139
|
+
'description': _0x28c5af[_0x51086c(_0x566b17._0x2eafa1)]()[_0x51086c(_0x566b17._0x1200ea)](),
|
|
2140
|
+
'priority': _0x28c5af[_0x51086c(_0x566b17._0x5d2783)]([
|
|
2141
|
+
_0x51086c(_0x566b17._0xfd01bf),
|
|
2142
|
+
'medium',
|
|
2143
|
+
_0x51086c(0x16a),
|
|
2144
|
+
_0x51086c(_0x566b17._0x1662b5)
|
|
2145
|
+
])[_0x51086c(_0x566b17._0x5aef38)]()
|
|
2203
2146
|
}))
|
|
2204
|
-
}, async
|
|
2205
|
-
const
|
|
2147
|
+
}, async _0x2ba237 => {
|
|
2148
|
+
const _0x130c91 = _0x51086c;
|
|
2206
2149
|
try {
|
|
2207
|
-
return textResult(await
|
|
2208
|
-
} catch (
|
|
2209
|
-
return textResult(
|
|
2150
|
+
return textResult(await _0x53e3ba[_0x130c91(_0x1561ee._0x2b33e7)](_0x2ba237));
|
|
2151
|
+
} catch (_0x901adb) {
|
|
2152
|
+
return textResult(_0x901adb instanceof Error ? _0x901adb[_0x130c91(_0x1561ee._0x40c584)] : _0x130c91(0x204), !![]);
|
|
2210
2153
|
}
|
|
2211
|
-
}),
|
|
2212
|
-
'channel':
|
|
2213
|
-
'task_numbers':
|
|
2214
|
-
'subtask_numbers':
|
|
2215
|
-
'message_ids':
|
|
2216
|
-
'evidence':
|
|
2217
|
-
'create_thread':
|
|
2218
|
-
'create_task':
|
|
2219
|
-
}))[
|
|
2220
|
-
'idempotency_key':
|
|
2221
|
-
}, async
|
|
2222
|
-
const
|
|
2154
|
+
}), _0x1e1e6c[_0x51086c(0xef)](_0x51086c(0xb8), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
|
|
2155
|
+
'channel': _0x28c5af[_0x51086c(_0x566b17._0x266f76)](),
|
|
2156
|
+
'task_numbers': _0x28c5af[_0x51086c(_0x566b17._0x30a91d)](_0x28c5af[_0x51086c(_0x566b17._0x2c540e)]())[_0x51086c(0x9f)](),
|
|
2157
|
+
'subtask_numbers': _0x28c5af[_0x51086c(_0x566b17._0x30a91d)](_0x28c5af[_0x51086c(0x162)]())[_0x51086c(0x9f)](),
|
|
2158
|
+
'message_ids': _0x28c5af[_0x51086c(_0x566b17._0x30a91d)](_0x28c5af[_0x51086c(0x1f7)]())[_0x51086c(0x9f)](),
|
|
2159
|
+
'evidence': _0x28c5af[_0x51086c(0x207)](_0x28c5af[_0x51086c(0x1f7)](), _0x28c5af[_0x51086c(_0x566b17._0x1aefb0)]({
|
|
2160
|
+
'create_thread': _0x28c5af['unknown']()[_0x51086c(_0x566b17._0xbf9d2)](),
|
|
2161
|
+
'create_task': _0x28c5af[_0x51086c(0x192)]()[_0x51086c(_0x566b17._0xbf9d2)]()
|
|
2162
|
+
}))['optional'](),
|
|
2163
|
+
'idempotency_key': _0x28c5af[_0x51086c(_0x566b17._0x407a9b)]()[_0x51086c(0x9f)]()
|
|
2164
|
+
}, async _0x5702dd => {
|
|
2165
|
+
const _0x43d2d6 = _0x51086c;
|
|
2223
2166
|
try {
|
|
2224
|
-
return textResult(await
|
|
2225
|
-
} catch (
|
|
2226
|
-
return textResult(
|
|
2167
|
+
return textResult(await _0x53e3ba[_0x43d2d6(0xb8)](_0x5702dd));
|
|
2168
|
+
} catch (_0x1a2f71) {
|
|
2169
|
+
return textResult(_0x1a2f71 instanceof Error ? _0x1a2f71['message'] : _0x43d2d6(0x170), !![]);
|
|
2227
2170
|
}
|
|
2228
|
-
}),
|
|
2229
|
-
'channel':
|
|
2230
|
-
'task_number':
|
|
2231
|
-
'subtask_number':
|
|
2232
|
-
'idempotency_key':
|
|
2233
|
-
}, async
|
|
2234
|
-
const
|
|
2171
|
+
}), _0x1e1e6c[_0x51086c(0xef)](_0x51086c(0x10d), _0x51086c(_0x566b17._0xa181aa), {
|
|
2172
|
+
'channel': _0x28c5af[_0x51086c(_0x566b17._0x407a9b)](),
|
|
2173
|
+
'task_number': _0x28c5af['number'](),
|
|
2174
|
+
'subtask_number': _0x28c5af[_0x51086c(0x162)]()[_0x51086c(0x9f)](),
|
|
2175
|
+
'idempotency_key': _0x28c5af[_0x51086c(0x1f7)]()[_0x51086c(0x9f)]()
|
|
2176
|
+
}, async _0x5c3673 => {
|
|
2177
|
+
const _0xb45694 = _0x51086c;
|
|
2235
2178
|
try {
|
|
2236
|
-
return textResult(await
|
|
2237
|
-
} catch (
|
|
2238
|
-
return textResult(
|
|
2179
|
+
return textResult(await _0x53e3ba['unclaim_task'](_0x5c3673));
|
|
2180
|
+
} catch (_0x577bec) {
|
|
2181
|
+
return textResult(_0x577bec instanceof Error ? _0x577bec[_0xb45694(_0x2fffe2._0x144dc7)] : _0xb45694(_0x2fffe2._0x103ff2), !![]);
|
|
2239
2182
|
}
|
|
2240
|
-
}),
|
|
2241
|
-
'channel':
|
|
2242
|
-
'task_number':
|
|
2243
|
-
'subtask_number':
|
|
2244
|
-
'status':
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2183
|
+
}), _0x1e1e6c[_0x51086c(0xef)](_0x51086c(0x176), _0x51086c(0x128), {
|
|
2184
|
+
'channel': _0x28c5af[_0x51086c(0x1f7)](),
|
|
2185
|
+
'task_number': _0x28c5af[_0x51086c(_0x566b17._0xa0e0cc)](),
|
|
2186
|
+
'subtask_number': _0x28c5af[_0x51086c(0x162)]()['optional'](),
|
|
2187
|
+
'status': _0x28c5af[_0x51086c(0x201)]([
|
|
2188
|
+
_0x51086c(0x1f2),
|
|
2189
|
+
_0x51086c(_0x566b17._0x3274db),
|
|
2190
|
+
_0x51086c(0x19b),
|
|
2191
|
+
_0x51086c(_0x566b17._0x213b72)
|
|
2249
2192
|
]),
|
|
2250
|
-
'idempotency_key':
|
|
2251
|
-
}, async
|
|
2252
|
-
const
|
|
2193
|
+
'idempotency_key': _0x28c5af[_0x51086c(_0x566b17._0x443f5f)]()[_0x51086c(0x9f)]()
|
|
2194
|
+
}, async _0x9045aa => {
|
|
2195
|
+
const _0x210259 = _0x51086c;
|
|
2253
2196
|
try {
|
|
2254
|
-
return textResult(await
|
|
2255
|
-
} catch (
|
|
2256
|
-
return textResult(
|
|
2197
|
+
return textResult(await _0x53e3ba[_0x210259(0x176)](_0x9045aa));
|
|
2198
|
+
} catch (_0x1bb9a3) {
|
|
2199
|
+
return textResult(_0x1bb9a3 instanceof Error ? _0x1bb9a3[_0x210259(0xdb)] : _0x210259(0x189), !![]);
|
|
2257
2200
|
}
|
|
2258
|
-
}),
|
|
2259
|
-
'channel':
|
|
2260
|
-
'file_path':
|
|
2261
|
-
}, async
|
|
2262
|
-
const
|
|
2201
|
+
}), _0x1e1e6c[_0x51086c(0xef)](_0x51086c(_0x566b17._0xb3a69f), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2202
|
+
'channel': _0x28c5af['string'](),
|
|
2203
|
+
'file_path': _0x28c5af[_0x51086c(0x1f7)]()
|
|
2204
|
+
}, async _0x5c2530 => {
|
|
2205
|
+
const _0x3687f3 = _0x51086c;
|
|
2263
2206
|
try {
|
|
2264
|
-
return textResult(await
|
|
2265
|
-
} catch (
|
|
2266
|
-
return textResult(
|
|
2207
|
+
return textResult(await _0x53e3ba[_0x3687f3(_0x436d58._0x4b1777)](_0x5c2530));
|
|
2208
|
+
} catch (_0x3b0c8c) {
|
|
2209
|
+
return textResult(_0x3b0c8c instanceof Error ? _0x3b0c8c[_0x3687f3(0xdb)] : _0x3687f3(0xc7), !![]);
|
|
2267
2210
|
}
|
|
2268
|
-
}),
|
|
2269
|
-
const
|
|
2211
|
+
}), _0x1e1e6c[_0x51086c(0xef)](_0x51086c(_0x566b17._0x768890), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x28c5af[_0x51086c(_0x566b17._0x4d89fc)]() }, async _0x103e76 => {
|
|
2212
|
+
const _0x4f1700 = _0x51086c;
|
|
2270
2213
|
try {
|
|
2271
|
-
return textResult(await
|
|
2272
|
-
} catch (
|
|
2273
|
-
return textResult(
|
|
2214
|
+
return textResult(await _0x53e3ba[_0x4f1700(_0x20cb2d._0x40a408)](_0x103e76));
|
|
2215
|
+
} catch (_0x264769) {
|
|
2216
|
+
return textResult(_0x264769 instanceof Error ? _0x264769[_0x4f1700(_0x20cb2d._0x484787)] : _0x4f1700(0x15e), !![]);
|
|
2274
2217
|
}
|
|
2275
|
-
}),
|
|
2276
|
-
const
|
|
2218
|
+
}), _0x1e1e6c['tool'](_0x51086c(_0x566b17._0x4567b3), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x28c5af[_0x51086c(0x1f7)]() }, async _0x2d59f4 => {
|
|
2219
|
+
const _0x391634 = _0x51086c;
|
|
2277
2220
|
try {
|
|
2278
|
-
return textResult(await
|
|
2279
|
-
} catch (
|
|
2280
|
-
return textResult(
|
|
2221
|
+
return textResult(await _0x53e3ba[_0x391634(0x1c8)](_0x2d59f4));
|
|
2222
|
+
} catch (_0x54f7c5) {
|
|
2223
|
+
return textResult(_0x54f7c5 instanceof Error ? _0x54f7c5[_0x391634(_0x17fa47._0x5374e8)] : _0x391634(_0x17fa47._0x5f5282), !![]);
|
|
2281
2224
|
}
|
|
2282
|
-
}),
|
|
2283
|
-
const
|
|
2225
|
+
}), _0x1e1e6c[_0x51086c(_0x566b17._0x5bb683)](_0x51086c(0x134), _0x51086c(0x159), { 'work_key': _0x28c5af[_0x51086c(_0x566b17._0x443f5f)]() }, async _0x2ab16a => {
|
|
2226
|
+
const _0x450586 = _0x51086c;
|
|
2284
2227
|
try {
|
|
2285
|
-
return textResult(await
|
|
2286
|
-
} catch (
|
|
2287
|
-
return textResult(
|
|
2228
|
+
return textResult(await _0x53e3ba[_0x450586(0x134)](_0x2ab16a));
|
|
2229
|
+
} catch (_0x3d5a4d) {
|
|
2230
|
+
return textResult(_0x3d5a4d instanceof Error ? _0x3d5a4d[_0x450586(_0x408883._0xd89753)] : _0x450586(_0x408883._0x58145e), !![]);
|
|
2288
2231
|
}
|
|
2289
|
-
}),
|
|
2290
|
-
'work_key':
|
|
2291
|
-
'reason':
|
|
2292
|
-
}, async
|
|
2293
|
-
const
|
|
2232
|
+
}), _0x1e1e6c[_0x51086c(0xef)](_0x51086c(_0x566b17._0x5275e1), _0x51086c(_0x566b17._0x4cdedf), {
|
|
2233
|
+
'work_key': _0x28c5af[_0x51086c(_0x566b17._0x2b7ff3)](),
|
|
2234
|
+
'reason': _0x28c5af[_0x51086c(0x1f7)]()
|
|
2235
|
+
}, async _0x245291 => {
|
|
2236
|
+
const _0x1fb4bc = _0x51086c;
|
|
2294
2237
|
try {
|
|
2295
|
-
return textResult(await
|
|
2296
|
-
} catch (
|
|
2297
|
-
return textResult(
|
|
2238
|
+
return textResult(await _0x53e3ba['escalate_to_main'](_0x245291));
|
|
2239
|
+
} catch (_0x43a88b) {
|
|
2240
|
+
return textResult(_0x43a88b instanceof Error ? _0x43a88b['message'] : _0x1fb4bc(0x19c), !![]);
|
|
2298
2241
|
}
|
|
2299
|
-
}),
|
|
2300
|
-
const
|
|
2242
|
+
}), _0x3d549f?.[_0x51086c(0x13a)] && _0x1e1e6c[_0x51086c(0xef)]('mark_waiting_input', _0x51086c(_0x566b17._0x5c8813), { 'work_key': _0x28c5af[_0x51086c(_0x566b17._0x12fcd1)]() }, async _0x92bcb9 => {
|
|
2243
|
+
const _0x21270c = _0x51086c;
|
|
2301
2244
|
try {
|
|
2302
|
-
return textResult(await
|
|
2303
|
-
} catch (
|
|
2304
|
-
return textResult(
|
|
2245
|
+
return textResult(await _0x53e3ba['mark_waiting_input'](_0x92bcb9));
|
|
2246
|
+
} catch (_0x4b5a24) {
|
|
2247
|
+
return textResult(_0x4b5a24 instanceof Error ? _0x4b5a24[_0x21270c(_0x46cf2b._0x31b415)] : 'mark_waiting_input\x20failed', !![]);
|
|
2305
2248
|
}
|
|
2306
2249
|
});
|
|
2307
2250
|
}
|
|
2308
|
-
async function createChatBridgeServer(
|
|
2309
|
-
const
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
'
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
'
|
|
2251
|
+
async function createChatBridgeServer(_0x2f81e4) {
|
|
2252
|
+
const _0x1e8f2d = {
|
|
2253
|
+
_0x37c7f6: 0x174,
|
|
2254
|
+
_0x58f1c1: 0x1fe,
|
|
2255
|
+
_0xedd876: 0x13a
|
|
2256
|
+
}, _0x20a823 = _0x39cf13, {McpServer: _0x6e8152} = await import(_0x20a823(_0x1e8f2d._0x37c7f6)), _0x19994c = new _0x6e8152({
|
|
2257
|
+
'name': _0x20a823(_0x1e8f2d._0x58f1c1),
|
|
2258
|
+
'version': _0x20a823(0x105)
|
|
2259
|
+
}), _0x2345ed = createChatBridgeHandlers(_0x2f81e4);
|
|
2260
|
+
return await registerChatBridgeTools(_0x19994c, _0x2345ed, { 'workerMode': _0x2f81e4[_0x20a823(_0x1e8f2d._0xedd876)] }), {
|
|
2261
|
+
'handlers': _0x2345ed,
|
|
2262
|
+
'server': _0x19994c
|
|
2319
2263
|
};
|
|
2320
2264
|
}
|
|
2321
|
-
function readFlag(
|
|
2322
|
-
const
|
|
2323
|
-
if (
|
|
2265
|
+
function readFlag(_0xb3710e, _0x54e1b3) {
|
|
2266
|
+
const _0x1f9a3b = { _0x344eec: 0x132 }, _0x126087 = _0x39cf13, _0x2ce128 = _0xb3710e[_0x126087(_0x1f9a3b._0x344eec)](_0x54e1b3);
|
|
2267
|
+
if (_0x2ce128 === -0x1)
|
|
2324
2268
|
return void 0x0;
|
|
2325
|
-
return
|
|
2269
|
+
return _0xb3710e[_0x2ce128 + 0x1];
|
|
2326
2270
|
}
|
|
2327
|
-
function parseChatBridgeArgs(
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2271
|
+
function parseChatBridgeArgs(_0x2c210d) {
|
|
2272
|
+
const _0x513f9c = {
|
|
2273
|
+
_0x1fc9b7: 0x1b5,
|
|
2274
|
+
_0x3f5c16: 0x96,
|
|
2275
|
+
_0x6222c: 0xa8,
|
|
2276
|
+
_0x435d58: 0x190,
|
|
2277
|
+
_0x345ef7: 0x12c,
|
|
2278
|
+
_0x463c18: 0x1d4,
|
|
2279
|
+
_0x4e330b: 0x177,
|
|
2280
|
+
_0xbf21bf: 0x202,
|
|
2281
|
+
_0x2674ee: 0x194
|
|
2282
|
+
}, _0x282ed7 = _0x39cf13, _0x1db9b3 = readFlag(_0x2c210d, _0x282ed7(_0x513f9c._0x1fc9b7)), _0x2d5ec8 = readFlag(_0x2c210d, _0x282ed7(0x14b)), _0x29c4f8 = readFlag(_0x2c210d, _0x282ed7(_0x513f9c._0x3f5c16)), _0x5716d3 = readFlag(_0x2c210d, '--server-url') ?? 'http://localhost:8121', _0x500d7e = readFlag(_0x2c210d, _0x282ed7(0xe1)), _0x32c9c3 = readFlag(_0x2c210d, _0x282ed7(_0x513f9c._0x6222c)), _0x2a5266 = readFlag(_0x2c210d, _0x282ed7(_0x513f9c._0x435d58)), _0x5b2390 = readFlag(_0x2c210d, _0x282ed7(_0x513f9c._0x345ef7)), _0x2a5369 = readFlag(_0x2c210d, _0x282ed7(_0x513f9c._0x463c18)), _0xe4cf6e = _0x2c210d['includes']('--worker-mode'), _0x5e95e1 = _0x29c4f8 === void 0x0 ? void 0x0 : Number[_0x282ed7(_0x513f9c._0x4e330b)](_0x29c4f8, 0xa);
|
|
2283
|
+
if (!_0x1db9b3)
|
|
2284
|
+
throw new Error(_0x282ed7(0x161));
|
|
2285
|
+
if (!_0x2d5ec8)
|
|
2338
2286
|
throw new Error('Missing\x20--daemon-api-key');
|
|
2339
|
-
if (
|
|
2340
|
-
throw new Error(
|
|
2287
|
+
if (_0x29c4f8 !== void 0x0 && (_0x5e95e1 === void 0x0 || !Number[_0x282ed7(_0x513f9c._0xbf21bf)](_0x5e95e1) || _0x5e95e1 < 0x0))
|
|
2288
|
+
throw new Error(_0x282ed7(_0x513f9c._0x2674ee));
|
|
2341
2289
|
return {
|
|
2342
|
-
'agentId':
|
|
2343
|
-
'daemonApiKey':
|
|
2344
|
-
'daemonLocalUrl':
|
|
2345
|
-
'initialLastSeenSeq':
|
|
2346
|
-
'sessionId':
|
|
2347
|
-
'serverUrl':
|
|
2348
|
-
'workerModeEnabled':
|
|
2349
|
-
'workerSessionId':
|
|
2350
|
-
'workerThreadTarget':
|
|
2351
|
-
'workerMode':
|
|
2290
|
+
'agentId': _0x1db9b3,
|
|
2291
|
+
'daemonApiKey': _0x2d5ec8,
|
|
2292
|
+
'daemonLocalUrl': _0x500d7e,
|
|
2293
|
+
'initialLastSeenSeq': _0x5e95e1,
|
|
2294
|
+
'sessionId': _0x32c9c3,
|
|
2295
|
+
'serverUrl': _0x5716d3,
|
|
2296
|
+
'workerModeEnabled': _0x2a5266 === void 0x0 ? void 0x0 : _0x2a5266 !== 'false',
|
|
2297
|
+
'workerSessionId': _0x5b2390,
|
|
2298
|
+
'workerThreadTarget': _0x2a5369,
|
|
2299
|
+
'workerMode': _0xe4cf6e
|
|
2352
2300
|
};
|
|
2353
2301
|
}
|
|
2354
|
-
async function runChatBridgeCli(
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
'
|
|
2362
|
-
'
|
|
2363
|
-
'
|
|
2364
|
-
'daemonLocalUrl': _0x970ace[_0x479963(0x283)],
|
|
2302
|
+
async function runChatBridgeCli(_0x147298) {
|
|
2303
|
+
const _0x5cce3d = {
|
|
2304
|
+
_0x26309a: 0xa7,
|
|
2305
|
+
_0x540403: 0x1f8,
|
|
2306
|
+
_0x327a25: 0x203
|
|
2307
|
+
}, _0x2e296f = _0x39cf13, _0x3789f5 = parseChatBridgeArgs(_0x147298), {StdioServerTransport: _0x57468d} = await import(_0x2e296f(_0x5cce3d._0x26309a)), _0x1f3055 = createInternalAgentClient(_0x3789f5), _0x4c8b1e = createAttachmentCache(), _0x59c646 = await createChatBridgeServer({
|
|
2308
|
+
'agentId': _0x3789f5[_0x2e296f(0x123)],
|
|
2309
|
+
'attachmentCache': _0x4c8b1e,
|
|
2310
|
+
'client': _0x1f3055,
|
|
2311
|
+
'daemonLocalUrl': _0x3789f5['daemonLocalUrl'],
|
|
2365
2312
|
'uploadPreparer': prepareUploadFile,
|
|
2366
|
-
'workerModeEnabled':
|
|
2367
|
-
'workerMode':
|
|
2368
|
-
'workerThreadTarget':
|
|
2313
|
+
'workerModeEnabled': _0x3789f5['workerModeEnabled'],
|
|
2314
|
+
'workerMode': _0x3789f5[_0x2e296f(0x13a)],
|
|
2315
|
+
'workerThreadTarget': _0x3789f5[_0x2e296f(_0x5cce3d._0x540403)]
|
|
2369
2316
|
});
|
|
2370
|
-
await
|
|
2317
|
+
await _0x59c646[_0x2e296f(_0x5cce3d._0x327a25)]['connect'](new _0x57468d());
|
|
2371
2318
|
}
|
|
2372
|
-
var executedAsEntry = process[
|
|
2373
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2319
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x39cf13(0x1d5)] : ![];
|
|
2320
|
+
executedAsEntry && await runChatBridgeCli(process[_0x39cf13(0x156)]['slice'](0x2));
|
|
2374
2321
|
export {
|
|
2375
2322
|
createChatBridgeHandlers,
|
|
2376
2323
|
createChatBridgeServer,
|