@dscord/daemon 0.1.60 → 0.1.61
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 +2177 -2145
- package/dist/index.js +10240 -10302
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
1
|
+
const _0x28aee3 = _0x41c3;
|
|
2
|
+
(function (_0xacd2a3, _0xb873aa) {
|
|
3
|
+
const _0x12acd0 = {
|
|
4
|
+
_0x263696: 0x1d4,
|
|
5
|
+
_0x396063: 0x1e4,
|
|
6
|
+
_0x2813bc: 0x1f9,
|
|
7
|
+
_0x1114d0: 0x164,
|
|
8
|
+
_0x34722e: 0x224,
|
|
9
|
+
_0x35bc8b: 0x2e1,
|
|
10
|
+
_0x409d5b: 0x1f2
|
|
11
|
+
}, _0x5c3c54 = _0x41c3, _0x25f892 = _0xacd2a3();
|
|
12
12
|
while (!![]) {
|
|
13
13
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
14
|
+
const _0x3c3c5c = -parseInt(_0x5c3c54(_0x12acd0._0x263696)) / 0x1 * (parseInt(_0x5c3c54(_0x12acd0._0x396063)) / 0x2) + -parseInt(_0x5c3c54(_0x12acd0._0x2813bc)) / 0x3 + -parseInt(_0x5c3c54(0x1af)) / 0x4 + -parseInt(_0x5c3c54(0x191)) / 0x5 + parseInt(_0x5c3c54(0x261)) / 0x6 + -parseInt(_0x5c3c54(_0x12acd0._0x1114d0)) / 0x7 * (parseInt(_0x5c3c54(_0x12acd0._0x34722e)) / 0x8) + parseInt(_0x5c3c54(_0x12acd0._0x35bc8b)) / 0x9 * (parseInt(_0x5c3c54(_0x12acd0._0x409d5b)) / 0xa);
|
|
15
|
+
if (_0x3c3c5c === _0xb873aa)
|
|
16
16
|
break;
|
|
17
17
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
18
|
+
_0x25f892['push'](_0x25f892['shift']());
|
|
19
|
+
} catch (_0x14dc2b) {
|
|
20
|
+
_0x25f892['push'](_0x25f892['shift']());
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
}(
|
|
23
|
+
}(_0x2e92, 0x8f73a));
|
|
24
24
|
import { pathToFileURL } from 'node:url';
|
|
25
25
|
import {
|
|
26
26
|
mkdir,
|
|
@@ -30,2345 +30,2377 @@ import {
|
|
|
30
30
|
writeFile
|
|
31
31
|
} from 'node:fs/promises';
|
|
32
32
|
import { homedir } from 'node:os';
|
|
33
|
-
import
|
|
33
|
+
import _0x35e736 from 'node:path';
|
|
34
34
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
35
|
-
'.csv':
|
|
36
|
-
'.gif':
|
|
37
|
-
'.jpeg':
|
|
38
|
-
'.jpg':
|
|
39
|
-
'.json':
|
|
40
|
-
'.md':
|
|
41
|
-
'.pdf':
|
|
42
|
-
'.png':
|
|
35
|
+
'.csv': _0x28aee3(0x25a),
|
|
36
|
+
'.gif': 'image/gif',
|
|
37
|
+
'.jpeg': _0x28aee3(0x2c0),
|
|
38
|
+
'.jpg': _0x28aee3(0x2c0),
|
|
39
|
+
'.json': _0x28aee3(0x287),
|
|
40
|
+
'.md': _0x28aee3(0x2e5),
|
|
41
|
+
'.pdf': _0x28aee3(0x271),
|
|
42
|
+
'.png': _0x28aee3(0x185),
|
|
43
43
|
'.svg': 'image/svg+xml',
|
|
44
|
-
'.txt':
|
|
45
|
-
'.webp':
|
|
46
|
-
'.xml':
|
|
47
|
-
'.zip':
|
|
44
|
+
'.txt': 'text/plain',
|
|
45
|
+
'.webp': _0x28aee3(0x2c7),
|
|
46
|
+
'.xml': _0x28aee3(0x26f),
|
|
47
|
+
'.zip': _0x28aee3(0x212)
|
|
48
48
|
};
|
|
49
|
-
function guessContentType(
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
_0xa0371d: 0x139
|
|
53
|
-
}, _0x3a0844 = _0x2858e8;
|
|
54
|
-
return MIME_BY_EXTENSION[_0x51d1ec[_0x3a0844(_0x382c44._0x29d5a3)](_0x40ba2e)[_0x3a0844(_0x382c44._0xa0371d)]()] ?? 'application/octet-stream';
|
|
49
|
+
function guessContentType(_0x1c7992) {
|
|
50
|
+
const _0x28a0d6 = { _0x529095: 0x19e }, _0x3846fd = _0x28aee3;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x35e736[_0x3846fd(_0x28a0d6._0x529095)](_0x1c7992)[_0x3846fd(0x179)]()] ?? _0x3846fd(0x26c);
|
|
55
52
|
}
|
|
56
|
-
function safeFilename(
|
|
57
|
-
|
|
58
|
-
return _0xf77313[_0x44903a(0x1ec)](/[\\/]/g, '-');
|
|
53
|
+
function safeFilename(_0x1c495b) {
|
|
54
|
+
return _0x1c495b['replace'](/[\\/]/g, '-');
|
|
59
55
|
}
|
|
60
|
-
function extensionFor(
|
|
61
|
-
const
|
|
62
|
-
|
|
56
|
+
function extensionFor(_0x328e7b) {
|
|
57
|
+
const _0x4c99da = {
|
|
58
|
+
_0x2775c8: 0x25e,
|
|
59
|
+
_0x48f1e4: 0x18f
|
|
60
|
+
}, _0x4868e8 = _0x28aee3, _0x29663a = Object[_0x4868e8(_0x4c99da._0x2775c8)](MIME_BY_EXTENSION)[_0x4868e8(0x274)](([, _0x2a02f8]) => _0x2a02f8 === _0x328e7b);
|
|
61
|
+
return _0x29663a?.[0x0] ?? _0x4868e8(_0x4c99da._0x48f1e4);
|
|
63
62
|
}
|
|
64
|
-
async function prepareUploadFile(
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
63
|
+
async function prepareUploadFile(_0x14ee6e, _0x12546d = {}) {
|
|
64
|
+
const _0x15d198 = {
|
|
65
|
+
_0x1f3315: 0x25c,
|
|
66
|
+
_0x33594d: 0x1a8,
|
|
67
|
+
_0x51b5c5: 0x1cf,
|
|
68
|
+
_0xd58696: 0x2b1
|
|
69
|
+
}, _0x44cd39 = _0x28aee3;
|
|
70
|
+
if (!_0x35e736[_0x44cd39(_0x15d198._0x1f3315)](_0x14ee6e))
|
|
71
|
+
throw new Error(_0x44cd39(_0x15d198._0x33594d));
|
|
72
|
+
const _0x247ca4 = await stat(_0x14ee6e)[_0x44cd39(0x289)](() => null);
|
|
73
|
+
if (!_0x247ca4 || !_0x247ca4[_0x44cd39(0x23a)]())
|
|
74
|
+
throw new Error('File\x20not\x20found:\x20' + _0x14ee6e);
|
|
75
|
+
const _0x10a1c1 = _0x12546d['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
76
|
+
if (_0x247ca4[_0x44cd39(_0x15d198._0x51b5c5)] > _0x10a1c1)
|
|
77
|
+
throw new Error(_0x44cd39(_0x15d198._0xd58696) + _0x247ca4['size']);
|
|
78
|
+
const _0x4556d0 = await readFile(_0x14ee6e), _0x3abaa8 = _0x35e736['basename'](_0x14ee6e);
|
|
79
79
|
return {
|
|
80
|
-
'contentBase64':
|
|
81
|
-
'contentType': guessContentType(
|
|
82
|
-
'filename':
|
|
83
|
-
'sizeBytes':
|
|
80
|
+
'contentBase64': _0x4556d0['toString']('base64'),
|
|
81
|
+
'contentType': guessContentType(_0x3abaa8),
|
|
82
|
+
'filename': _0x3abaa8,
|
|
83
|
+
'sizeBytes': _0x247ca4[_0x44cd39(0x1cf)]
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function createAttachmentCache(
|
|
87
|
-
const
|
|
88
|
-
_0x583b5f: 0x196,
|
|
89
|
-
_0x1e9060: 0x129
|
|
90
|
-
}, _0x24b36b = { _0x1cb60b: 0x6f }, _0x1c3195 = _0x2858e8, _0x3fc6cd = _0x4b0873[_0x1c3195(0x19e)] ?? _0x51d1ec[_0x1c3195(_0x1ed4cc._0x3b15be)](homedir(), _0x1c3195(0xf7), _0x1c3195(0x120));
|
|
86
|
+
function createAttachmentCache(_0x2770fe = {}) {
|
|
87
|
+
const _0x42664d = { _0x3b90d2: 0x27f }, _0x2a082f = { _0x3f5266: 0x1dd }, _0x1b168e = _0x28aee3, _0x2d43c4 = _0x2770fe['cacheDir'] ?? _0x35e736['join'](homedir(), _0x1b168e(0x223), 'attachments');
|
|
91
88
|
return {
|
|
92
|
-
'cacheDir':
|
|
93
|
-
async 'findCachedPath'(
|
|
94
|
-
const
|
|
95
|
-
await mkdir(
|
|
96
|
-
const
|
|
97
|
-
return
|
|
89
|
+
'cacheDir': _0x2d43c4,
|
|
90
|
+
async 'findCachedPath'(_0x514d67) {
|
|
91
|
+
const _0x592267 = _0x1b168e;
|
|
92
|
+
await mkdir(_0x2d43c4, { 'recursive': !![] });
|
|
93
|
+
const _0x339240 = await readdir(_0x2d43c4), _0x511f2f = _0x339240[_0x592267(0x274)](_0x194c07 => _0x194c07[_0x592267(0x20f)](_0x514d67 + '-') || _0x194c07['startsWith'](_0x514d67));
|
|
94
|
+
return _0x511f2f ? _0x35e736[_0x592267(_0x2a082f._0x3f5266)](_0x2d43c4, _0x511f2f) : null;
|
|
98
95
|
},
|
|
99
|
-
async 'save'(
|
|
100
|
-
const
|
|
101
|
-
await mkdir(
|
|
102
|
-
const
|
|
103
|
-
return await writeFile(
|
|
96
|
+
async 'save'(_0x5b1aaf) {
|
|
97
|
+
const _0x1ba3a8 = _0x1b168e;
|
|
98
|
+
await mkdir(_0x2d43c4, { 'recursive': !![] });
|
|
99
|
+
const _0x40a70f = _0x5b1aaf['originalFilename']?.[_0x1ba3a8(0x1f6)]() ? safeFilename(_0x5b1aaf[_0x1ba3a8(_0x42664d._0x3b90d2)]) : '' + _0x5b1aaf['attachmentId'] + extensionFor(_0x5b1aaf['contentType']), _0x37ae84 = _0x35e736[_0x1ba3a8(0x1dd)](_0x2d43c4, _0x5b1aaf[_0x1ba3a8(0x285)] + '-' + _0x40a70f);
|
|
100
|
+
return await writeFile(_0x37ae84, _0x5b1aaf[_0x1ba3a8(0x264)]), _0x37ae84;
|
|
104
101
|
}
|
|
105
102
|
};
|
|
106
103
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
} from 'node:crypto';
|
|
111
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x2858e8(0xc1);
|
|
112
|
-
function ensureSegment(_0x319551) {
|
|
113
|
-
const _0x2a08c8 = _0x2858e8, _0x29a89b = _0x319551[_0x2a08c8(0x126)]();
|
|
114
|
-
if (!_0x29a89b || _0x29a89b['includes'](':'))
|
|
115
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
116
|
-
return _0x29a89b;
|
|
117
|
-
}
|
|
118
|
-
function parseThreadParts(_0x2d752b) {
|
|
119
|
-
const _0x522959 = { _0x3aaad5: 0xa9 }, _0x52b642 = _0x2858e8, _0x3a7803 = _0x2d752b['split'](':');
|
|
120
|
-
if (_0x3a7803[_0x52b642(0xa9)] < 0x1 || _0x3a7803[_0x52b642(_0x522959._0x3aaad5)] > 0x2)
|
|
121
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
122
|
-
return {
|
|
123
|
-
'channelName': ensureSegment(_0x3a7803[0x0] ?? ''),
|
|
124
|
-
'threadShortId': _0x3a7803[0x1] ? ensureSegment(_0x3a7803[0x1]) : null
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function parseTarget(_0x143683) {
|
|
128
|
-
const _0x4c44b2 = {
|
|
129
|
-
_0x133d93: 0x126,
|
|
130
|
-
_0x15cd8d: 0x77,
|
|
131
|
-
_0x752e04: 0xd4,
|
|
132
|
-
_0x3133bf: 0x13d,
|
|
133
|
-
_0x36f889: 0x17e,
|
|
134
|
-
_0x3761cf: 0x1a9,
|
|
135
|
-
_0x25a024: 0xce
|
|
136
|
-
}, _0x322a71 = _0x2858e8, _0x3701da = _0x143683[_0x322a71(_0x4c44b2._0x133d93)]();
|
|
137
|
-
if (!_0x3701da)
|
|
138
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
139
|
-
if (_0x3701da[_0x322a71(0x17e)]('#')) {
|
|
140
|
-
const _0x284c1f = parseThreadParts(_0x3701da[_0x322a71(0x1a9)](0x1)), _0x1746a2 = '#' + _0x284c1f[_0x322a71(_0x4c44b2._0x15cd8d)];
|
|
141
|
-
if (!_0x284c1f['threadShortId'])
|
|
142
|
-
return {
|
|
143
|
-
'channelName': _0x284c1f[_0x322a71(0x77)],
|
|
144
|
-
'channelTarget': _0x1746a2,
|
|
145
|
-
'kind': _0x322a71(0x11f),
|
|
146
|
-
'target': _0x1746a2
|
|
147
|
-
};
|
|
148
|
-
return {
|
|
149
|
-
'channelName': _0x284c1f[_0x322a71(0x77)],
|
|
150
|
-
'channelTarget': _0x1746a2,
|
|
151
|
-
'kind': _0x322a71(_0x4c44b2._0x752e04),
|
|
152
|
-
'target': _0x1746a2 + ':' + _0x284c1f[_0x322a71(_0x4c44b2._0x3133bf)],
|
|
153
|
-
'threadShortId': _0x284c1f['threadShortId']
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if (_0x3701da[_0x322a71(_0x4c44b2._0x36f889)]('dm:')) {
|
|
157
|
-
const _0x11d741 = parseThreadParts(_0x3701da[_0x322a71(_0x4c44b2._0x3761cf)](0x3));
|
|
158
|
-
if (!_0x11d741[_0x322a71(0x77)][_0x322a71(0x17e)](_0x322a71(_0x4c44b2._0x25a024)))
|
|
159
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
-
const _0x8b35a = 'dm:' + _0x11d741[_0x322a71(0x77)];
|
|
161
|
-
if (!_0x11d741['threadShortId'])
|
|
162
|
-
return {
|
|
163
|
-
'channelName': _0x11d741[_0x322a71(_0x4c44b2._0x15cd8d)],
|
|
164
|
-
'channelTarget': _0x8b35a,
|
|
165
|
-
'kind': 'channel',
|
|
166
|
-
'target': _0x8b35a
|
|
167
|
-
};
|
|
168
|
-
return {
|
|
169
|
-
'channelName': _0x11d741[_0x322a71(_0x4c44b2._0x15cd8d)],
|
|
170
|
-
'channelTarget': _0x8b35a,
|
|
171
|
-
'kind': _0x322a71(_0x4c44b2._0x752e04),
|
|
172
|
-
'target': _0x8b35a + ':' + _0x11d741[_0x322a71(0x13d)],
|
|
173
|
-
'threadShortId': _0x11d741[_0x322a71(0x13d)]
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
177
|
-
}
|
|
178
|
-
function asErrorMessage(_0x197d84, _0x21c126) {
|
|
179
|
-
const _0x175f4e = { _0x488259: 0x126 }, _0x51573d = _0x2858e8;
|
|
180
|
-
if (typeof _0x197d84 === 'string' && _0x197d84[_0x51573d(_0x175f4e._0x488259)]())
|
|
181
|
-
return _0x197d84;
|
|
182
|
-
return _0x21c126;
|
|
183
|
-
}
|
|
184
|
-
function asRecord(_0x35fcd4) {
|
|
185
|
-
const _0x2ad37f = _0x2858e8;
|
|
186
|
-
return typeof _0x35fcd4 === _0x2ad37f(0xca) && _0x35fcd4 !== null ? _0x35fcd4 : {};
|
|
187
|
-
}
|
|
188
|
-
function stableStringify(_0x4537ae) {
|
|
189
|
-
const _0x547cee = {
|
|
190
|
-
_0x5c017d: 0x158,
|
|
191
|
-
_0x4c8759: 0x14c
|
|
192
|
-
}, _0x21d175 = _0x2858e8;
|
|
193
|
-
if (_0x4537ae === null || typeof _0x4537ae !== 'object')
|
|
194
|
-
return JSON[_0x21d175(0x9c)](_0x4537ae);
|
|
195
|
-
if (Array[_0x21d175(0xae)](_0x4537ae))
|
|
196
|
-
return '[' + _0x4537ae[_0x21d175(_0x547cee._0x5c017d)](_0x6eb7f4 => stableStringify(_0x6eb7f4))['join'](',') + ']';
|
|
197
|
-
const _0x487f78 = Object[_0x21d175(0x17b)](_0x4537ae)[_0x21d175(_0x547cee._0x4c8759)](([, _0x1bd228]) => _0x1bd228 !== void 0x0)['sort'](([_0xc520fc], [_0x19d4a9]) => _0xc520fc[_0x21d175(0x11c)](_0x19d4a9))[_0x21d175(0x158)](([_0x3c818b, _0x1481ae]) => JSON[_0x21d175(0x9c)](_0x3c818b) + ':' + stableStringify(_0x1481ae));
|
|
198
|
-
return '{' + _0x487f78['join'](',') + '}';
|
|
199
|
-
}
|
|
200
|
-
function createHeaders(_0x1f8ab2) {
|
|
201
|
-
const _0x2ebd5a = _0x2858e8;
|
|
202
|
-
return {
|
|
203
|
-
'Content-Type': _0x2ebd5a(0xd7),
|
|
204
|
-
'x-daemon-api-key': _0x1f8ab2
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
function toHttpBaseUrl(_0x3ab5ce) {
|
|
208
|
-
const _0x3b2d6d = {
|
|
209
|
-
_0xa547fc: 0x17d,
|
|
210
|
-
_0x1b3732: 0x13c,
|
|
211
|
-
_0x51bc5f: 0x1b7
|
|
212
|
-
}, _0x42b1f0 = _0x2858e8, _0x3b37cf = new URL(_0x3ab5ce);
|
|
213
|
-
if (_0x3b37cf['protocol'] === _0x42b1f0(_0x3b2d6d._0xa547fc))
|
|
214
|
-
_0x3b37cf[_0x42b1f0(_0x3b2d6d._0x1b3732)] = 'http:';
|
|
215
|
-
else
|
|
216
|
-
_0x3b37cf['protocol'] === _0x42b1f0(0x1c5) && (_0x3b37cf[_0x42b1f0(0x13c)] = 'https:');
|
|
217
|
-
return _0x3b37cf[_0x42b1f0(_0x3b2d6d._0x51bc5f)]()[_0x42b1f0(0x1ec)](/\/$/, '');
|
|
218
|
-
}
|
|
219
|
-
function isMentionBoundary(_0x3dff40) {
|
|
220
|
-
return !_0x3dff40 || /\s|[([{'",。!?、:;]/['test'](_0x3dff40);
|
|
221
|
-
}
|
|
222
|
-
function isMentionTerminal(_0x2b75c5) {
|
|
223
|
-
return !_0x2b75c5 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x2b75c5);
|
|
224
|
-
}
|
|
225
|
-
function buildMatchableEntries(_0x38c7c5) {
|
|
226
|
-
const _0xbb846b = {
|
|
227
|
-
_0x39333a: 0x81,
|
|
228
|
-
_0x5619b8: 0xe9,
|
|
229
|
-
_0x4e54ed: 0x1e1
|
|
230
|
-
}, _0x453f06 = _0x2858e8, _0x214728 = [];
|
|
231
|
-
for (const _0x43911f of [
|
|
232
|
-
..._0x38c7c5[_0x453f06(0x96)],
|
|
233
|
-
..._0x38c7c5['humans']
|
|
234
|
-
]) {
|
|
235
|
-
_0x214728[_0x453f06(0xe9)]({
|
|
236
|
-
'matchName': _0x43911f[_0x453f06(0x81)],
|
|
237
|
-
'matchNameLower': _0x43911f[_0x453f06(_0xbb846b._0x39333a)]['toLocaleLowerCase'](),
|
|
238
|
-
'participantId': _0x43911f['id']
|
|
239
|
-
}), _0x43911f['id'] !== _0x43911f[_0x453f06(_0xbb846b._0x39333a)] && _0x214728[_0x453f06(_0xbb846b._0x5619b8)]({
|
|
240
|
-
'matchName': _0x43911f['id'],
|
|
241
|
-
'matchNameLower': _0x43911f['id'][_0x453f06(_0xbb846b._0x4e54ed)](),
|
|
242
|
-
'participantId': _0x43911f['id']
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
return _0x214728;
|
|
246
|
-
}
|
|
247
|
-
function extractMentionedParticipantIds(_0x5c0a2c, _0xb46c7d) {
|
|
248
|
-
const _0x18fccc = {
|
|
249
|
-
_0x50f5a5: 0x83,
|
|
250
|
-
_0x5cab7c: 0xa9,
|
|
251
|
-
_0x2f3cbc: 0x1e9
|
|
252
|
-
}, _0x8c66b6 = { _0xf523df: 0xa9 }, _0x41b481 = _0x2858e8, _0xd6d3fc = buildMatchableEntries(_0xb46c7d)[_0x41b481(_0x18fccc._0x50f5a5)]((_0x120997, _0x37450d) => _0x37450d[_0x41b481(0xa6)][_0x41b481(0xa9)] - _0x120997[_0x41b481(0xa6)][_0x41b481(0xa9)]), _0xd40ba5 = [], _0x1b1a2a = new Set();
|
|
253
|
-
for (let _0x4fbc43 = 0x0; _0x4fbc43 < _0x5c0a2c[_0x41b481(_0x18fccc._0x5cab7c)]; _0x4fbc43 += 0x1) {
|
|
254
|
-
if (_0x5c0a2c[_0x4fbc43] !== '@' || !isMentionBoundary(_0x5c0a2c[_0x4fbc43 - 0x1]))
|
|
255
|
-
continue;
|
|
256
|
-
const _0x4f1b0e = _0x5c0a2c['slice'](_0x4fbc43 + 0x1), _0x151dfe = _0x4f1b0e[_0x41b481(0x1e1)](), _0x571a0d = _0xd6d3fc['find'](_0x413681 => {
|
|
257
|
-
const _0x47bf14 = _0x41b481;
|
|
258
|
-
if (!_0x151dfe[_0x47bf14(0x17e)](_0x413681['matchNameLower']))
|
|
259
|
-
return ![];
|
|
260
|
-
return isMentionTerminal(_0x4f1b0e[_0x413681['matchName'][_0x47bf14(_0x8c66b6._0xf523df)]]);
|
|
261
|
-
});
|
|
262
|
-
if (!_0x571a0d || _0x1b1a2a['has'](_0x571a0d[_0x41b481(0x1c3)]))
|
|
263
|
-
continue;
|
|
264
|
-
_0x1b1a2a[_0x41b481(_0x18fccc._0x2f3cbc)](_0x571a0d[_0x41b481(0x1c3)]), _0xd40ba5[_0x41b481(0xe9)](_0x571a0d[_0x41b481(0x1c3)]), _0x4fbc43 += _0x571a0d['matchName'][_0x41b481(0xa9)];
|
|
265
|
-
}
|
|
266
|
-
return _0xd40ba5;
|
|
267
|
-
}
|
|
268
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
269
|
-
function anySignal(..._0xb2de81) {
|
|
270
|
-
const _0x10abe1 = {
|
|
271
|
-
_0x59e4ef: 0x93,
|
|
272
|
-
_0x23513b: 0x149
|
|
273
|
-
}, _0x15669c = _0x2858e8, _0x1001bc = new AbortController();
|
|
274
|
-
for (const _0xaeb175 of _0xb2de81) {
|
|
275
|
-
if (_0xaeb175['aborted'])
|
|
276
|
-
return _0x1001bc['abort'](_0xaeb175[_0x15669c(_0x10abe1._0x59e4ef)]), _0x1001bc[_0x15669c(0x13e)];
|
|
277
|
-
_0xaeb175['addEventListener'](_0x15669c(_0x10abe1._0x23513b), () => _0x1001bc['abort'](_0xaeb175[_0x15669c(0x93)]), {
|
|
278
|
-
'once': !![],
|
|
279
|
-
'signal': _0x1001bc['signal']
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
return _0x1001bc['signal'];
|
|
283
|
-
}
|
|
284
|
-
function createInternalAgentClient(_0x366518) {
|
|
285
|
-
const _0x39ffe5 = {
|
|
286
|
-
_0x168fb2: 0x12d,
|
|
287
|
-
_0xca015c: 0x163,
|
|
288
|
-
_0xc8675d: 0xcd,
|
|
289
|
-
_0x5f57db: 0x183,
|
|
290
|
-
_0x5d14b8: 0x126,
|
|
291
|
-
_0x5f5678: 0x199,
|
|
292
|
-
_0x31f457: 0x1e0
|
|
293
|
-
}, _0x39ef99 = {
|
|
294
|
-
_0x2bface: 0x69,
|
|
295
|
-
_0x42f232: 0x166,
|
|
296
|
-
_0xc1736: 0xeb,
|
|
297
|
-
_0x46fd09: 0xc0,
|
|
298
|
-
_0x2a4121: 0x1b3,
|
|
299
|
-
_0x226644: 0x10e,
|
|
300
|
-
_0x2fbc68: 0x179,
|
|
301
|
-
_0xeb994: 0xa9,
|
|
302
|
-
_0x3dc1bd: 0x9e,
|
|
303
|
-
_0x103603: 0xa9,
|
|
304
|
-
_0x251852: 0x84,
|
|
305
|
-
_0xedc3a3: 0x158,
|
|
306
|
-
_0x448ea8: 0xb3,
|
|
307
|
-
_0x621218: 0x1e3,
|
|
308
|
-
_0x58c252: 0x12d,
|
|
309
|
-
_0x5507ec: 0x99,
|
|
310
|
-
_0x504051: 0x118,
|
|
311
|
-
_0x47da5b: 0x1e3,
|
|
312
|
-
_0xff3424: 0x16e,
|
|
313
|
-
_0x368f05: 0x17b,
|
|
314
|
-
_0x3d3480: 0x9e,
|
|
315
|
-
_0x25f40e: 0xcf,
|
|
316
|
-
_0x2bc2c5: 0x12c,
|
|
317
|
-
_0x42809a: 0x120,
|
|
318
|
-
_0x54a49a: 0x127,
|
|
319
|
-
_0x4da177: 0x95,
|
|
320
|
-
_0x174c82: 0xd8,
|
|
321
|
-
_0x5dbf71: 0xb2,
|
|
322
|
-
_0x2d370c: 0x1d3,
|
|
323
|
-
_0x501fdc: 0xe2,
|
|
324
|
-
_0x499294: 0xd6
|
|
325
|
-
}, _0x2caf26 = { _0x33e0a9: 0x18b }, _0x5424ff = {
|
|
326
|
-
_0x4948b0: 0x1c4,
|
|
327
|
-
_0x1772ec: 0x70,
|
|
328
|
-
_0x5362d8: 0x157,
|
|
329
|
-
_0x5ae6f6: 0xc6,
|
|
330
|
-
_0x49de3e: 0xe1,
|
|
331
|
-
_0x34eceb: 0x18a
|
|
332
|
-
}, _0x2255f3 = {
|
|
333
|
-
_0x2f8d46: 0x6b,
|
|
334
|
-
_0x1ce6db: 0x7c,
|
|
335
|
-
_0x568a71: 0xeb,
|
|
336
|
-
_0x3eac24: 0x1bb,
|
|
337
|
-
_0x406f20: 0x9c,
|
|
338
|
-
_0x189d93: 0x18b,
|
|
339
|
-
_0x5c7ed3: 0x9f,
|
|
340
|
-
_0x21ea07: 0x196,
|
|
341
|
-
_0x506a6f: 0x1ed,
|
|
342
|
-
_0x32c34b: 0x171
|
|
343
|
-
}, _0x2660e7 = {
|
|
344
|
-
_0x20d3b7: 0xc0,
|
|
345
|
-
_0x4a5300: 0x9c,
|
|
346
|
-
_0x55a2f1: 0x1ed
|
|
347
|
-
}, _0x2be65d = { _0x295ff7: 0x9c }, _0x288844 = {
|
|
348
|
-
_0x51b1fc: 0x1ba,
|
|
349
|
-
_0x399aeb: 0x1ed
|
|
350
|
-
}, _0x3fd4f7 = {
|
|
351
|
-
_0x48fe08: 0x11f,
|
|
352
|
-
_0x2d16d1: 0x69,
|
|
353
|
-
_0x793169: 0xbf,
|
|
354
|
-
_0x5dd1d0: 0xeb,
|
|
355
|
-
_0x1b9554: 0x1a1,
|
|
356
|
-
_0x48d0d2: 0x1b7,
|
|
357
|
-
_0x5d5aa8: 0x87
|
|
358
|
-
}, _0x1b1624 = {
|
|
359
|
-
_0x195ac4: 0xb8,
|
|
360
|
-
_0x42fc51: 0x1ed,
|
|
361
|
-
_0x5a6788: 0xbf
|
|
362
|
-
}, _0x3815fc = {
|
|
363
|
-
_0x243419: 0xa1,
|
|
364
|
-
_0x4d477a: 0x1dc,
|
|
365
|
-
_0x5e622b: 0x11b,
|
|
366
|
-
_0x125cab: 0x157,
|
|
367
|
-
_0x1687f1: 0x85
|
|
368
|
-
}, _0x4ef9fb = {
|
|
369
|
-
_0x3e5c03: 0x9c,
|
|
370
|
-
_0x3a8266: 0x1ed,
|
|
371
|
-
_0x281bf2: 0x116
|
|
372
|
-
}, _0x554857 = { _0x62db34: 0x157 }, _0x518374 = {
|
|
373
|
-
_0x4a0b71: 0x127,
|
|
374
|
-
_0x4895c9: 0xeb,
|
|
375
|
-
_0x3fbc2d: 0x6b,
|
|
376
|
-
_0xd9eaf5: 0xdc,
|
|
377
|
-
_0x1c28a8: 0x1ed
|
|
378
|
-
}, _0x9d0944 = {
|
|
379
|
-
_0x55cb49: 0xa7,
|
|
380
|
-
_0x152c02: 0x1b9,
|
|
381
|
-
_0x34147f: 0x6b,
|
|
382
|
-
_0x3d9526: 0x69,
|
|
383
|
-
_0x279411: 0x69,
|
|
384
|
-
_0x1720d7: 0x10e,
|
|
385
|
-
_0x2bc8e2: 0x1d6,
|
|
386
|
-
_0xa3ae2d: 0xeb,
|
|
387
|
-
_0x5e2667: 0xc0,
|
|
388
|
-
_0x4f3034: 0x19d,
|
|
389
|
-
_0x50f830: 0x87,
|
|
390
|
-
_0x136125: 0xe3
|
|
391
|
-
}, _0x16bf5b = {
|
|
392
|
-
_0x151983: 0xfc,
|
|
393
|
-
_0x1ad925: 0x81
|
|
394
|
-
}, _0x74bc30 = {
|
|
395
|
-
_0x2480c8: 0x1d5,
|
|
396
|
-
_0x472e64: 0xfc
|
|
397
|
-
}, _0x14df48 = {
|
|
398
|
-
_0x42afc0: 0x1d3,
|
|
399
|
-
_0xd9d128: 0x99,
|
|
400
|
-
_0x47b12b: 0x12d,
|
|
401
|
-
_0x8f2022: 0x13d,
|
|
402
|
-
_0xe8313: 0x1e3,
|
|
403
|
-
_0x28f0d5: 0x6b,
|
|
404
|
-
_0xd5a568: 0x17e,
|
|
405
|
-
_0x3e9f29: 0x13d
|
|
406
|
-
}, _0x485a41 = {
|
|
407
|
-
_0x343165: 0x1d3,
|
|
408
|
-
_0x432f1c: 0xd4,
|
|
409
|
-
_0x29f14c: 0x1d8,
|
|
410
|
-
_0x266361: 0x6b,
|
|
411
|
-
_0x55dec8: 0x13d
|
|
412
|
-
}, _0x23e8a2 = {
|
|
413
|
-
_0x1650aa: 0x1d8,
|
|
414
|
-
_0x729d41: 0x99,
|
|
415
|
-
_0x22c7a1: 0x1e3,
|
|
416
|
-
_0x2ae24e: 0x6b,
|
|
417
|
-
_0x2668b3: 0x1d8,
|
|
418
|
-
_0x160127: 0x6b
|
|
419
|
-
}, _0xf6601e = {
|
|
420
|
-
_0x3a62ed: 0x144,
|
|
421
|
-
_0x1e8978: 0x189
|
|
422
|
-
}, _0x203c98 = {
|
|
423
|
-
_0x3669fe: 0x146,
|
|
424
|
-
_0x3988bc: 0xc9
|
|
425
|
-
}, _0x140a62 = {
|
|
426
|
-
_0x434c16: 0x14c,
|
|
427
|
-
_0x54ddb2: 0x158,
|
|
428
|
-
_0xdb1c56: 0x14c
|
|
429
|
-
}, _0x437f14 = {
|
|
430
|
-
_0x287ef8: 0x18b,
|
|
431
|
-
_0x4f43c5: 0xb3,
|
|
432
|
-
_0x5b5e78: 0x157
|
|
433
|
-
}, _0x53c0f9 = {
|
|
434
|
-
_0x3bf8f0: 0x167,
|
|
435
|
-
_0x456d84: 0xcb,
|
|
436
|
-
_0x5c2ef2: 0xbf
|
|
437
|
-
}, _0x54f921 = { _0x2c10a3: 0x80 }, _0xe2d055 = {
|
|
438
|
-
_0x52c09d: 0x13e,
|
|
439
|
-
_0x2c5046: 0x1bc,
|
|
440
|
-
_0x429acb: 0xcb
|
|
441
|
-
}, _0x4ffb55 = {
|
|
442
|
-
_0xe49df0: 0x13e,
|
|
443
|
-
_0x1881c7: 0x186
|
|
444
|
-
}, _0x422259 = {
|
|
445
|
-
_0xf09381: 0x126,
|
|
446
|
-
_0x358532: 0xf4,
|
|
447
|
-
_0x4df953: 0xc8,
|
|
448
|
-
_0x2d4d61: 0xab,
|
|
449
|
-
_0x3aed4f: 0x15b
|
|
450
|
-
}, _0x15988f = {
|
|
451
|
-
_0x38978e: 0x178,
|
|
452
|
-
_0x25fcd7: 0x126
|
|
453
|
-
}, _0x38b725 = {
|
|
454
|
-
_0x4c71a7: 0x176,
|
|
455
|
-
_0x37d502: 0x1ca,
|
|
456
|
-
_0x12385e: 0xbf,
|
|
457
|
-
_0x1c2105: 0x11a
|
|
458
|
-
}, _0x190d97 = _0x2858e8, _0x40b951 = _0x366518[_0x190d97(0x91)] ?? fetch, _0x2bc69a = _0x366518[_0x190d97(0xc7)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2daeb6 = typeof _0x366518[_0x190d97(0x163)] === _0x190d97(_0x39ffe5._0x168fb2) && _0x366518[_0x190d97(0x163)] > 0x0 ? _0x366518[_0x190d97(_0x39ffe5._0xca015c)] : 0x0, _0xae2df4 = _0x366518[_0x190d97(_0x39ffe5._0xc8675d)]?.[_0x190d97(0x126)]() || void 0x0, _0x858803 = _0x366518['sessionId']?.['trim']() || void 0x0, _0x354a86 = _0x366518[_0x190d97(_0x39ffe5._0x5f57db)] === !![], _0x3a00fa = _0x366518['workerSessionId']?.[_0x190d97(_0x39ffe5._0x5d14b8)]() || void 0x0, _0x4ada69 = _0x366518[_0x190d97(0xd0)]?.[_0x190d97(0x126)]() || void 0x0, _0x458e0d = createHeaders(_0x366518[_0x190d97(_0x39ffe5._0x5f5678)]), _0x552299 = toHttpBaseUrl(_0x366518[_0x190d97(_0x39ffe5._0x31f457)]);
|
|
459
|
-
let _0x266f4c = null;
|
|
460
|
-
const _0x335506 = new Map();
|
|
461
|
-
let _0x13278e = _0x2daeb6, _0x558f39 = _0x2daeb6;
|
|
462
|
-
function _0x50752f(_0x5db62d) {
|
|
463
|
-
const _0x4b916c = _0x190d97, _0xf27e15 = _0x5db62d[_0x4b916c(0x1cf)][_0x4b916c(_0x38b725._0x4c71a7)]['get'](_0x4b916c(0xc6)) ?? 'unknown', _0x1c1da7 = _0x5db62d[_0x4b916c(0xc4)][_0x4b916c(0x126)]()[_0x4b916c(0x1ec)](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
464
|
-
return _0x4b916c(_0x38b725._0x37d502) + _0x5db62d['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x5db62d[_0x4b916c(0x1cf)][_0x4b916c(_0x38b725._0x12385e)] + ',\x20content-type=' + _0xf27e15 + _0x4b916c(0x98) + _0x1c1da7 + _0x4b916c(_0x38b725._0x1c2105);
|
|
465
|
-
}
|
|
466
|
-
async function _0xfd2a8a(_0x31e34e, _0x5d4886) {
|
|
467
|
-
const _0xeeeaae = _0x190d97, _0x2aa187 = Buffer[_0xeeeaae(_0x15988f._0x38978e)](await _0x5d4886['arrayBuffer']())[_0xeeeaae(0x1b7)](_0xeeeaae(0x1eb));
|
|
468
|
-
if (!_0x2aa187[_0xeeeaae(_0x15988f._0x25fcd7)]())
|
|
469
|
-
return {};
|
|
470
|
-
try {
|
|
471
|
-
return JSON['parse'](_0x2aa187);
|
|
472
|
-
} catch {
|
|
473
|
-
throw new Error(_0x50752f({
|
|
474
|
-
'bodyText': _0x2aa187,
|
|
475
|
-
'requestUrl': _0x31e34e,
|
|
476
|
-
'response': _0x5d4886
|
|
477
|
-
}));
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
function _0x58c93a(_0x43ab3b, _0x394545) {
|
|
481
|
-
const _0x263f18 = _0x190d97, _0x242e3d = typeof _0x394545[_0x263f18(0x14a)] === 'string' ? _0x394545['idempotency_key'][_0x263f18(_0x422259._0xf09381)]() : '';
|
|
482
|
-
if (_0x242e3d)
|
|
483
|
-
return _0x242e3d;
|
|
484
|
-
const _0x37d261 = Date[_0x263f18(_0x422259._0x358532)]();
|
|
485
|
-
for (const [_0x45a3d4, _0x1960da] of _0x335506) {
|
|
486
|
-
_0x1960da[_0x263f18(_0x422259._0x4df953)] <= _0x37d261 && _0x335506[_0x263f18(0x8c)](_0x45a3d4);
|
|
487
|
-
}
|
|
488
|
-
const _0x184494 = {
|
|
489
|
-
..._0x394545,
|
|
490
|
-
'idempotency_key': void 0x0
|
|
491
|
-
}, _0x5d9f15 = createHash(_0x263f18(0xfa))[_0x263f18(_0x422259._0x2d4d61)](_0x43ab3b + ':' + stableStringify(_0x184494))['digest'](_0x263f18(0x132)), _0x1ef9b6 = _0x43ab3b + ':' + _0x5d9f15, _0x37c162 = _0x335506[_0x263f18(_0x422259._0x3aed4f)](_0x1ef9b6);
|
|
492
|
-
if (_0x37c162)
|
|
493
|
-
return _0x37c162['value'];
|
|
494
|
-
const _0x30f494 = _0x263f18(0x7d) + _0x43ab3b + ':' + randomUUID();
|
|
495
|
-
return _0x335506[_0x263f18(0x69)](_0x1ef9b6, {
|
|
496
|
-
'expiresAt': _0x37d261 + 0x5 * 0x3c * 0x3e8,
|
|
497
|
-
'value': _0x30f494
|
|
498
|
-
}), _0x30f494;
|
|
499
|
-
}
|
|
500
|
-
async function _0x2a0a60(_0x47e372, _0x1c3603) {
|
|
501
|
-
const _0x511108 = _0x190d97, _0x3bb1f9 = new AbortController(), _0x3074a7 = setTimeout(() => _0x3bb1f9[_0x511108(0x149)](), _0x2bc69a), _0xcb34fb = _0x1c3603?.[_0x511108(0x13e)] ? anySignal(_0x1c3603['signal'], _0x3bb1f9['signal']) : _0x3bb1f9[_0x511108(_0x4ffb55._0xe49df0)], _0x7942e5 = '' + _0x552299 + _0x47e372;
|
|
502
|
-
try {
|
|
503
|
-
const _0x510eec = await _0x40b951(_0x7942e5, {
|
|
504
|
-
..._0x1c3603,
|
|
505
|
-
'signal': _0xcb34fb
|
|
506
|
-
}), _0x21999e = await _0xfd2a8a(_0x7942e5, _0x510eec);
|
|
507
|
-
if (!_0x510eec['ok'] || _0x21999e[_0x511108(_0x4ffb55._0x1881c7)] === ![])
|
|
508
|
-
throw new Error(asErrorMessage(_0x21999e['error'], _0x511108(0xcb) + _0x510eec[_0x511108(0xbf)]));
|
|
509
|
-
return _0x21999e;
|
|
510
|
-
} finally {
|
|
511
|
-
clearTimeout(_0x3074a7);
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
async function _0x114798(_0x5b64e6, _0x99630c) {
|
|
515
|
-
const _0x33a8d6 = _0x190d97, _0x3e4dd8 = new AbortController(), _0x1d3512 = setTimeout(() => _0x3e4dd8[_0x33a8d6(0x149)](), _0x2bc69a), _0x2fbe34 = _0x99630c?.[_0x33a8d6(0x13e)] ? anySignal(_0x99630c['signal'], _0x3e4dd8[_0x33a8d6(_0xe2d055._0x52c09d)]) : _0x3e4dd8[_0x33a8d6(0x13e)], _0x31a803 = '' + _0x552299 + _0x5b64e6;
|
|
516
|
-
try {
|
|
517
|
-
const _0x7688bf = await _0x40b951(_0x31a803, {
|
|
518
|
-
..._0x99630c,
|
|
519
|
-
'signal': _0x2fbe34
|
|
520
|
-
}), _0x45794b = await _0xfd2a8a(_0x31a803, _0x7688bf);
|
|
521
|
-
if (!_0x7688bf['ok'])
|
|
522
|
-
throw new Error(asErrorMessage(_0x45794b[_0x33a8d6(_0xe2d055._0x2c5046)], _0x33a8d6(_0xe2d055._0x429acb) + _0x7688bf[_0x33a8d6(0xbf)]));
|
|
523
|
-
return _0x45794b;
|
|
524
|
-
} finally {
|
|
525
|
-
clearTimeout(_0x1d3512);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
async function _0x23801c(_0x3bae3b) {
|
|
529
|
-
const _0x17aac2 = _0x190d97;
|
|
530
|
-
if (!_0x858803 || _0x3bae3b <= _0x558f39)
|
|
531
|
-
return;
|
|
532
|
-
await _0x2a0a60(_0x17aac2(0xe5) + encodeURIComponent(_0x858803) + _0x17aac2(_0x54f921._0x2c10a3), {
|
|
533
|
-
'body': JSON[_0x17aac2(0x9c)]({ 'lastSeenSeq': _0x3bae3b }),
|
|
534
|
-
'headers': _0x458e0d,
|
|
535
|
-
'method': 'PATCH'
|
|
536
|
-
}), _0x558f39 = _0x3bae3b;
|
|
537
|
-
}
|
|
538
|
-
async function _0x147c5b(_0x5aa855) {
|
|
539
|
-
const _0x1d4121 = _0x190d97;
|
|
540
|
-
if (!_0xae2df4 || !_0x3a00fa || _0x5aa855 <= _0x558f39)
|
|
541
|
-
return;
|
|
542
|
-
const _0x2c2a5f = await _0x40b951(_0xae2df4 + _0x1d4121(_0x53c0f9._0x3bf8f0), {
|
|
543
|
-
'body': JSON[_0x1d4121(0x9c)]({
|
|
544
|
-
'last_seen_seq': _0x5aa855,
|
|
545
|
-
'worker_session_id': _0x3a00fa
|
|
546
|
-
}),
|
|
547
|
-
'headers': { 'Content-Type': _0x1d4121(0xd7) },
|
|
548
|
-
'method': _0x1d4121(0x1ed)
|
|
549
|
-
});
|
|
550
|
-
if (!_0x2c2a5f['ok'])
|
|
551
|
-
throw new Error(_0x1d4121(_0x53c0f9._0x456d84) + _0x2c2a5f[_0x1d4121(_0x53c0f9._0x5c2ef2)]);
|
|
552
|
-
_0x558f39 = _0x5aa855;
|
|
553
|
-
}
|
|
554
|
-
async function _0x495064(_0x522cb2) {
|
|
555
|
-
const _0x4672b6 = _0x190d97, _0x1ea4a = parseTarget(_0x522cb2), _0x28f6e4 = await _0x2a0a60(_0x4672b6(0xeb) + _0x366518['agentId'] + '/resolve-channel', {
|
|
556
|
-
'body': JSON[_0x4672b6(0x9c)]({ 'target': _0x1ea4a[_0x4672b6(_0x437f14._0x287ef8)] }),
|
|
557
|
-
'headers': _0x458e0d,
|
|
558
|
-
'method': 'POST'
|
|
559
|
-
});
|
|
560
|
-
return {
|
|
561
|
-
'channelId': _0x28f6e4[_0x4672b6(0x157)]?.[_0x4672b6(_0x437f14._0x4f43c5)] ?? '',
|
|
562
|
-
'target': _0x1ea4a[_0x4672b6(0x1d8)],
|
|
563
|
-
'task': _0x28f6e4[_0x4672b6(_0x437f14._0x5b5e78)]?.[_0x4672b6(0x8b)],
|
|
564
|
-
'threadId': _0x28f6e4['data']?.[_0x4672b6(0x6b)],
|
|
565
|
-
'threadNumber': _0x28f6e4[_0x4672b6(_0x437f14._0x5b5e78)]?.['threadNumber']
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
async function _0x2bf943(_0x42391b = {}) {
|
|
569
|
-
const _0x167678 = _0x190d97;
|
|
570
|
-
if (!_0x42391b[_0x167678(_0x203c98._0x3669fe)] && _0x266f4c)
|
|
571
|
-
return _0x266f4c;
|
|
572
|
-
return _0x266f4c = (async () => {
|
|
573
|
-
const _0xc6ff1c = _0x167678, _0x29c98a = await _0x2a0a60(_0xc6ff1c(0xeb) + _0x366518[_0xc6ff1c(0xc0)] + '/server', {
|
|
574
|
-
'headers': _0x458e0d,
|
|
575
|
-
'method': 'GET'
|
|
576
|
-
}), _0x479a76 = _0x29c98a[_0xc6ff1c(0x157)]?.[_0xc6ff1c(0x1d4)] ?? [], _0x416688 = _0x479a76[_0xc6ff1c(_0x140a62._0x434c16)](_0x275d20 => _0x275d20['participant']?.[_0xc6ff1c(0x1e7)] === _0xc6ff1c(0x82))[_0xc6ff1c(_0x140a62._0x54ddb2)](_0x5e7ccc => ({
|
|
577
|
-
'id': _0x123a28(_0x5e7ccc),
|
|
578
|
-
'name': _0x947a6(_0x5e7ccc)
|
|
579
|
-
}))[_0xc6ff1c(_0x140a62._0xdb1c56)](_0x320dea => _0x320dea['id']), _0xc28d67 = _0x479a76[_0xc6ff1c(0x14c)](_0x5e6568 => _0x5e6568[_0xc6ff1c(0xfc)]?.[_0xc6ff1c(0x1e7)] !== _0xc6ff1c(0x82))[_0xc6ff1c(0x158)](_0xbc5881 => ({
|
|
580
|
-
'id': _0x123a28(_0xbc5881),
|
|
581
|
-
'name': _0x947a6(_0xbc5881)
|
|
582
|
-
}))[_0xc6ff1c(_0x140a62._0xdb1c56)](_0x24a35f => _0x24a35f['id']), _0x3955b6 = _0x29c98a[_0xc6ff1c(0x157)]?.[_0xc6ff1c(0x106)]['id'] ?? '';
|
|
583
|
-
return {
|
|
584
|
-
'agents': _0x416688,
|
|
585
|
-
'channels': _0x29c98a['data']?.['channels'] ?? [],
|
|
586
|
-
'humans': _0xc28d67,
|
|
587
|
-
'serverId': _0x3955b6,
|
|
588
|
-
'serverName': _0x29c98a['data']?.[_0xc6ff1c(0x106)][_0xc6ff1c(0x81)] ?? _0x3955b6
|
|
589
|
-
};
|
|
590
|
-
})()[_0x167678(_0x203c98._0x3988bc)](_0x54bae2 => {
|
|
591
|
-
_0x266f4c = null;
|
|
592
|
-
throw _0x54bae2;
|
|
593
|
-
}), _0x266f4c;
|
|
594
|
-
}
|
|
595
|
-
function _0x5cf907(_0x470d73, _0x3940ff) {
|
|
596
|
-
const _0x3dcdd2 = _0x190d97;
|
|
597
|
-
return _0x3940ff['agents'][_0x3dcdd2(_0xf6601e._0x3a62ed)](_0x570977 => _0x570977['id'] === _0x470d73 || _0x570977['name'] === _0x470d73) ? _0x3dcdd2(0x82) : _0x3dcdd2(_0xf6601e._0x1e8978);
|
|
598
|
-
}
|
|
599
|
-
function _0x36295a(_0xf6fa22) {
|
|
600
|
-
const _0x434f40 = _0x190d97;
|
|
601
|
-
if (_0xf6fa22['threadNumber'] != null)
|
|
602
|
-
return _0xf6fa22[_0x434f40(_0x23e8a2._0x1650aa)] + ':t' + _0xf6fa22[_0x434f40(_0x23e8a2._0x729d41)];
|
|
603
|
-
if (_0xf6fa22['rootMessageId'])
|
|
604
|
-
return _0xf6fa22['channelTarget'] + ':' + _0xf6fa22[_0x434f40(_0x23e8a2._0x22c7a1)];
|
|
605
|
-
if (_0xf6fa22[_0x434f40(_0x23e8a2._0x2ae24e)])
|
|
606
|
-
return _0xf6fa22[_0x434f40(_0x23e8a2._0x2668b3)] + ':' + _0xf6fa22[_0x434f40(_0x23e8a2._0x160127)][_0x434f40(0x1a9)](0x0, 0x8);
|
|
607
|
-
return _0xf6fa22[_0x434f40(_0x23e8a2._0x2668b3)];
|
|
608
|
-
}
|
|
609
|
-
function _0x497aa6(_0x6df002, _0x403a97) {
|
|
610
|
-
const _0x1fad73 = _0x190d97;
|
|
611
|
-
try {
|
|
612
|
-
const _0x42b35d = parseTarget(_0x6df002);
|
|
613
|
-
if (_0x42b35d[_0x1fad73(_0x485a41._0x343165)] !== _0x1fad73(_0x485a41._0x432f1c) || _0x42b35d[_0x1fad73(0x1d8)] !== _0x403a97[_0x1fad73(_0x485a41._0x29f14c)])
|
|
614
|
-
return ![];
|
|
615
|
-
if (_0x403a97[_0x1fad73(0x99)] != null && _0x42b35d[_0x1fad73(0x13d)] === 't' + _0x403a97['threadNumber'])
|
|
616
|
-
return !![];
|
|
617
|
-
if (_0x403a97[_0x1fad73(0x1e3)])
|
|
618
|
-
return _0x42b35d['threadShortId'] === _0x403a97['rootMessageId'] || _0x403a97['rootMessageId']['startsWith'](_0x42b35d[_0x1fad73(0x13d)]);
|
|
619
|
-
if (_0x403a97[_0x1fad73(_0x485a41._0x266361)])
|
|
620
|
-
return _0x42b35d[_0x1fad73(_0x485a41._0x55dec8)] === _0x403a97[_0x1fad73(0x6b)] || _0x403a97[_0x1fad73(0x6b)]['startsWith'](_0x42b35d[_0x1fad73(_0x485a41._0x55dec8)]);
|
|
621
|
-
return ![];
|
|
622
|
-
} catch {
|
|
623
|
-
return ![];
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
function _0x1f3b9(_0xf36ec4, _0x511007) {
|
|
627
|
-
const _0x361b93 = _0x190d97;
|
|
628
|
-
try {
|
|
629
|
-
const _0x2c9931 = parseTarget(_0xf36ec4);
|
|
630
|
-
if (_0x2c9931[_0x361b93(_0x14df48._0x42afc0)] !== _0x361b93(0xd4))
|
|
631
|
-
return ![];
|
|
632
|
-
const _0x59842a = typeof _0x511007[_0x361b93(_0x14df48._0xd9d128)] === _0x361b93(_0x14df48._0x47b12b) && Number[_0x361b93(0xf9)](_0x511007[_0x361b93(0x99)]) ? _0x511007[_0x361b93(_0x14df48._0xd9d128)] : void 0x0;
|
|
633
|
-
if (_0x59842a != null && _0x2c9931[_0x361b93(_0x14df48._0x8f2022)] === 't' + _0x59842a)
|
|
634
|
-
return !![];
|
|
635
|
-
const _0x453abe = typeof _0x511007[_0x361b93(_0x14df48._0xe8313)] === _0x361b93(0xe2) ? _0x511007[_0x361b93(0x1e3)] : void 0x0;
|
|
636
|
-
if (_0x453abe)
|
|
637
|
-
return _0x2c9931[_0x361b93(0x13d)] === _0x453abe || _0x453abe['startsWith'](_0x2c9931[_0x361b93(_0x14df48._0x8f2022)]);
|
|
638
|
-
const _0x5c9d67 = typeof _0x511007[_0x361b93(0x6b)] === _0x361b93(0xe2) ? _0x511007[_0x361b93(_0x14df48._0x28f0d5)] : void 0x0;
|
|
639
|
-
return Boolean(_0x5c9d67) && (_0x2c9931['threadShortId'] === _0x5c9d67 || _0x5c9d67[_0x361b93(_0x14df48._0xd5a568)](_0x2c9931[_0x361b93(_0x14df48._0x3e9f29)]));
|
|
640
|
-
} catch {
|
|
641
|
-
return ![];
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
function _0x123a28(_0x12f42f) {
|
|
645
|
-
const _0x1b3c7d = _0x190d97;
|
|
646
|
-
return _0x12f42f[_0x1b3c7d(_0x74bc30._0x2480c8)]?.['participantId'] ?? _0x12f42f[_0x1b3c7d(_0x74bc30._0x472e64)]?.['id'] ?? _0x12f42f['participantId'] ?? '';
|
|
647
|
-
}
|
|
648
|
-
function _0x947a6(_0x163a88) {
|
|
649
|
-
const _0x451e20 = _0x190d97;
|
|
650
|
-
return _0x163a88[_0x451e20(_0x16bf5b._0x151983)]?.[_0x451e20(_0x16bf5b._0x1ad925)] ?? _0x123a28(_0x163a88);
|
|
651
|
-
}
|
|
652
|
-
async function _0x5770e4(_0x11aa5b) {
|
|
653
|
-
const _0x429a5b = _0x190d97, _0x534bf2 = Math[_0x429a5b(_0x9d0944._0x55cb49)](_0x11aa5b['limit'] ?? 0x32, 0x64), _0x47fa8d = await _0x2bf943(), _0x2595cc = new URLSearchParams();
|
|
654
|
-
_0x2595cc[_0x429a5b(0x69)](_0x429a5b(_0x9d0944._0x152c02), String(_0x534bf2));
|
|
655
|
-
_0x11aa5b['threadId'] ? (_0x2595cc[_0x429a5b(0x69)](_0x429a5b(0x6b), _0x11aa5b[_0x429a5b(_0x9d0944._0x34147f)]), _0x2595cc[_0x429a5b(_0x9d0944._0x3d9526)](_0x429a5b(0xb3), _0x11aa5b[_0x429a5b(0xb3)])) : _0x2595cc[_0x429a5b(_0x9d0944._0x279411)](_0x429a5b(0xb3), _0x11aa5b[_0x429a5b(0xb3)]);
|
|
656
|
-
_0x11aa5b[_0x429a5b(0x1ef)] && _0x2595cc[_0x429a5b(_0x9d0944._0x279411)](_0x429a5b(_0x9d0944._0x1720d7), String(_0x11aa5b[_0x429a5b(0x1ef)]));
|
|
657
|
-
_0x11aa5b['after'] !== void 0x0 && _0x2595cc[_0x429a5b(0x69)](_0x429a5b(0x1d6), String(_0x11aa5b[_0x429a5b(_0x9d0944._0x2bc8e2)]));
|
|
658
|
-
const _0x338882 = await _0x2a0a60(_0x429a5b(_0x9d0944._0xa3ae2d) + _0x366518[_0x429a5b(_0x9d0944._0x5e2667)] + _0x429a5b(_0x9d0944._0x4f3034) + _0x2595cc['toString'](), {
|
|
659
|
-
'headers': _0x458e0d,
|
|
660
|
-
'method': _0x429a5b(_0x9d0944._0x50f830)
|
|
661
|
-
}), _0x2d1f93 = (_0x338882['data'] ?? [])['map'](_0x4ff6c6 => ({
|
|
662
|
-
'attachments': (_0x4ff6c6['attachments'] ?? [])[_0x429a5b(0x158)](_0x5495de => ({
|
|
663
|
-
'filename': _0x5495de[_0x429a5b(0x171)] ?? _0x5495de['id'],
|
|
664
|
-
'id': _0x5495de['id']
|
|
665
|
-
})),
|
|
666
|
-
'content': _0x4ff6c6[_0x429a5b(0xb2)] ?? '',
|
|
667
|
-
'createdAt': _0x4ff6c6[_0x429a5b(0x181)],
|
|
668
|
-
..._0x4ff6c6['kind'] && _0x4ff6c6[_0x429a5b(0x1d3)] !== _0x429a5b(0xd6) ? { 'kind': _0x4ff6c6[_0x429a5b(0x1d3)] } : {},
|
|
669
|
-
'messageId': _0x4ff6c6['id'],
|
|
670
|
-
'senderName': _0x4ff6c6['senderParticipantId'],
|
|
671
|
-
'senderType': _0x5cf907(_0x4ff6c6[_0x429a5b(0xd8)], _0x47fa8d),
|
|
672
|
-
'seq': _0x4ff6c6['eventSeq'] ?? 0x0
|
|
673
|
-
}));
|
|
674
|
-
return {
|
|
675
|
-
'channel': _0x11aa5b['channelTarget'],
|
|
676
|
-
'hasMore': _0x338882[_0x429a5b(_0x9d0944._0x136125)]?.[_0x429a5b(0x152)] ?? ![],
|
|
677
|
-
'messages': _0x2d1f93,
|
|
678
|
-
'nextCursor': _0x338882['meta']?.[_0x429a5b(0x10e)]
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
return {
|
|
682
|
-
async 'sendMessage'(_0x507cc5) {
|
|
683
|
-
const _0x27fbad = _0x190d97, _0x331f88 = await _0x495064(_0x507cc5[_0x27fbad(0x18b)]), _0xf0c73f = _0x507cc5['content'][_0x27fbad(0x105)]('@') ? extractMentionedParticipantIds(_0x507cc5[_0x27fbad(_0x518374._0x4a0b71)], await _0x2bf943()) : [], _0x5dc26b = await _0x2a0a60(_0x27fbad(_0x518374._0x4895c9) + _0x366518[_0x27fbad(0xc0)] + _0x27fbad(0x10a), {
|
|
684
|
-
'body': JSON['stringify']({
|
|
685
|
-
'attachment_ids': _0x507cc5['attachmentIds'],
|
|
686
|
-
'bodyMarkdown': _0x507cc5['content'],
|
|
687
|
-
'channelId': _0x331f88[_0x27fbad(0xb3)],
|
|
688
|
-
..._0xf0c73f['length'] > 0x0 ? { 'mentionedParticipantIds': _0xf0c73f } : {},
|
|
689
|
-
'threadId': _0x331f88[_0x27fbad(_0x518374._0x3fbc2d)],
|
|
690
|
-
..._0x507cc5[_0x27fbad(_0x518374._0xd9eaf5)] ? { 'visibility': _0x507cc5[_0x27fbad(_0x518374._0xd9eaf5)] } : {}
|
|
691
|
-
}),
|
|
692
|
-
'headers': _0x458e0d,
|
|
693
|
-
'method': _0x27fbad(_0x518374._0x1c28a8)
|
|
694
|
-
});
|
|
695
|
-
return { 'messageId': _0x5dc26b[_0x27fbad(0x157)]?.['id'] ?? '' };
|
|
696
|
-
},
|
|
697
|
-
async 'listSchedules'() {
|
|
698
|
-
const _0x3e9554 = _0x190d97, _0x2a13b2 = await _0x2a0a60(_0x3e9554(0xed), {
|
|
699
|
-
'headers': _0x458e0d,
|
|
700
|
-
'method': _0x3e9554(0x87)
|
|
701
|
-
});
|
|
702
|
-
return _0x2a13b2[_0x3e9554(_0x554857._0x62db34)] ?? [];
|
|
703
|
-
},
|
|
704
|
-
async 'claimScheduleRun'(_0x550413) {
|
|
705
|
-
const _0x6f04c1 = _0x190d97, _0x1d3311 = await _0x2a0a60(_0x6f04c1(0xa3), {
|
|
706
|
-
'body': JSON[_0x6f04c1(_0x4ef9fb._0x3e5c03)](_0x550413),
|
|
707
|
-
'headers': _0x458e0d,
|
|
708
|
-
'method': _0x6f04c1(_0x4ef9fb._0x3a8266)
|
|
709
|
-
});
|
|
710
|
-
return _0x1d3311[_0x6f04c1(0x157)] ?? {
|
|
711
|
-
'granted': ![],
|
|
712
|
-
'runId': null,
|
|
713
|
-
'schedule': null,
|
|
714
|
-
'scheduledFor': _0x550413[_0x6f04c1(_0x4ef9fb._0x281bf2)]
|
|
715
|
-
};
|
|
716
|
-
},
|
|
717
|
-
async 'startScheduleRun'(_0x332d24) {
|
|
718
|
-
const _0x5333d0 = _0x190d97, _0x125b97 = await _0x2a0a60(_0x5333d0(_0x3815fc._0x243419) + encodeURIComponent(_0x332d24[_0x5333d0(_0x3815fc._0x4d477a)]) + _0x5333d0(_0x3815fc._0x5e622b), {
|
|
719
|
-
'body': JSON[_0x5333d0(0x9c)]({}),
|
|
720
|
-
'headers': _0x458e0d,
|
|
721
|
-
'method': _0x5333d0(0x1ed)
|
|
722
|
-
});
|
|
723
|
-
return _0x125b97[_0x5333d0(_0x3815fc._0x125cab)] ?? {
|
|
724
|
-
'claimedByDaemonId': '',
|
|
725
|
-
'id': _0x332d24[_0x5333d0(0x1dc)],
|
|
726
|
-
'scheduleId': '',
|
|
727
|
-
'status': _0x5333d0(_0x3815fc._0x1687f1)
|
|
728
|
-
};
|
|
729
|
-
},
|
|
730
|
-
async 'finishScheduleRun'(_0x47176d) {
|
|
731
|
-
const _0x4eefb7 = _0x190d97, _0x2f22d7 = await _0x2a0a60('/api/internal/schedules/' + encodeURIComponent(_0x47176d['runId']) + _0x4eefb7(0xb0), {
|
|
732
|
-
'body': JSON[_0x4eefb7(0x9c)]({
|
|
733
|
-
'error': _0x47176d['error'],
|
|
734
|
-
'resultJson': _0x47176d[_0x4eefb7(_0x1b1624._0x195ac4)],
|
|
735
|
-
'status': _0x47176d[_0x4eefb7(0xbf)]
|
|
736
|
-
}),
|
|
737
|
-
'headers': _0x458e0d,
|
|
738
|
-
'method': _0x4eefb7(_0x1b1624._0x42fc51)
|
|
739
|
-
});
|
|
740
|
-
return _0x2f22d7['data'] ?? {
|
|
741
|
-
'nextRunAt': null,
|
|
742
|
-
'run': {
|
|
743
|
-
'claimedByDaemonId': '',
|
|
744
|
-
'id': _0x47176d[_0x4eefb7(0x1dc)],
|
|
745
|
-
'scheduleId': '',
|
|
746
|
-
'status': _0x47176d[_0x4eefb7(_0x1b1624._0x5a6788)]
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
},
|
|
750
|
-
async 'listTasks'(_0x17d51d) {
|
|
751
|
-
const _0x3b5ed1 = _0x190d97, _0x1d8a53 = new URLSearchParams();
|
|
752
|
-
return _0x1d8a53[_0x3b5ed1(0x69)](_0x3b5ed1(_0x3fd4f7._0x48fe08), _0x17d51d[_0x3b5ed1(0x11f)]), _0x17d51d[_0x3b5ed1(0xbf)] && _0x1d8a53[_0x3b5ed1(_0x3fd4f7._0x2d16d1)]('status', _0x17d51d[_0x3b5ed1(_0x3fd4f7._0x793169)]), _0x114798(_0x3b5ed1(_0x3fd4f7._0x5dd1d0) + _0x366518['agentId'] + _0x3b5ed1(_0x3fd4f7._0x1b9554) + _0x1d8a53[_0x3b5ed1(_0x3fd4f7._0x48d0d2)](), {
|
|
753
|
-
'headers': _0x458e0d,
|
|
754
|
-
'method': _0x3b5ed1(_0x3fd4f7._0x5d5aa8)
|
|
755
|
-
});
|
|
756
|
-
},
|
|
757
|
-
async 'createTasks'(_0x5be814) {
|
|
758
|
-
const _0x1e59dc = _0x190d97;
|
|
759
|
-
return _0x114798('/internal/agent/' + _0x366518['agentId'] + _0x1e59dc(_0x288844._0x51b1fc), {
|
|
760
|
-
'body': JSON['stringify']({
|
|
761
|
-
..._0x5be814,
|
|
762
|
-
'idempotency_key': _0x58c93a(_0x1e59dc(0x12b), _0x5be814)
|
|
763
|
-
}),
|
|
764
|
-
'headers': _0x458e0d,
|
|
765
|
-
'method': _0x1e59dc(_0x288844._0x399aeb)
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
async 'claimTasks'(_0x1af82b) {
|
|
769
|
-
const _0x42ebdd = _0x190d97;
|
|
770
|
-
return _0x114798(_0x42ebdd(0xeb) + _0x366518[_0x42ebdd(0xc0)] + '/tasks/claim', {
|
|
771
|
-
'body': JSON[_0x42ebdd(0x9c)]({
|
|
772
|
-
..._0x1af82b,
|
|
773
|
-
'idempotency_key': _0x58c93a('claim_tasks', _0x1af82b)
|
|
774
|
-
}),
|
|
775
|
-
'headers': _0x458e0d,
|
|
776
|
-
'method': _0x42ebdd(0x1ed)
|
|
777
|
-
});
|
|
778
|
-
},
|
|
779
|
-
async 'unclaimTask'(_0x523e36) {
|
|
780
|
-
const _0x116ce6 = _0x190d97;
|
|
781
|
-
return _0x114798(_0x116ce6(0xeb) + _0x366518[_0x116ce6(0xc0)] + '/tasks/unclaim', {
|
|
782
|
-
'body': JSON[_0x116ce6(_0x2be65d._0x295ff7)]({
|
|
783
|
-
..._0x523e36,
|
|
784
|
-
'idempotency_key': _0x58c93a('unclaim_task', _0x523e36)
|
|
785
|
-
}),
|
|
786
|
-
'headers': _0x458e0d,
|
|
787
|
-
'method': 'POST'
|
|
788
|
-
});
|
|
789
|
-
},
|
|
790
|
-
async 'updateTaskStatus'(_0x18f2b6) {
|
|
791
|
-
const _0x5f1276 = _0x190d97;
|
|
792
|
-
return _0x114798('/internal/agent/' + _0x366518[_0x5f1276(_0x2660e7._0x20d3b7)] + _0x5f1276(0x162), {
|
|
793
|
-
'body': JSON[_0x5f1276(_0x2660e7._0x4a5300)]({
|
|
794
|
-
..._0x18f2b6,
|
|
795
|
-
'idempotency_key': _0x58c93a(_0x5f1276(0x17a), _0x18f2b6)
|
|
796
|
-
}),
|
|
797
|
-
'headers': _0x458e0d,
|
|
798
|
-
'method': _0x5f1276(_0x2660e7._0x55a2f1)
|
|
799
|
-
});
|
|
800
|
-
},
|
|
801
|
-
async 'uploadFile'(_0x16a86b) {
|
|
802
|
-
const _0x5ed8a6 = _0x190d97, _0x1fe69f = await _0x495064(_0x16a86b[_0x5ed8a6(0x11f)]);
|
|
803
|
-
if (_0x1fe69f[_0x5ed8a6(_0x2255f3._0x2f8d46)])
|
|
804
|
-
throw new Error(_0x5ed8a6(_0x2255f3._0x1ce6db));
|
|
805
|
-
const _0x5a2393 = await _0x2a0a60(_0x5ed8a6(_0x2255f3._0x568a71) + _0x366518['agentId'] + _0x5ed8a6(_0x2255f3._0x3eac24), {
|
|
806
|
-
'body': JSON[_0x5ed8a6(_0x2255f3._0x406f20)]({
|
|
807
|
-
'channel': _0x1fe69f[_0x5ed8a6(_0x2255f3._0x189d93)],
|
|
808
|
-
'contentBase64': _0x16a86b[_0x5ed8a6(_0x2255f3._0x5c7ed3)],
|
|
809
|
-
'contentType': _0x16a86b[_0x5ed8a6(_0x2255f3._0x21ea07)],
|
|
810
|
-
'originalFilename': _0x16a86b[_0x5ed8a6(0x171)]
|
|
811
|
-
}),
|
|
812
|
-
'headers': _0x458e0d,
|
|
813
|
-
'method': _0x5ed8a6(_0x2255f3._0x506a6f)
|
|
814
|
-
});
|
|
815
|
-
return {
|
|
816
|
-
'attachmentId': _0x5a2393['data']?.['id'] ?? '',
|
|
817
|
-
'filename': _0x5a2393[_0x5ed8a6(0x157)]?.['originalFilename'] ?? _0x16a86b[_0x5ed8a6(_0x2255f3._0x32c34b)],
|
|
818
|
-
'sizeBytes': _0x5a2393['data']?.[_0x5ed8a6(0x1a5)] ?? 0x0
|
|
819
|
-
};
|
|
820
|
-
},
|
|
821
|
-
async 'downloadAttachment'(_0x24d0bc) {
|
|
822
|
-
const _0x4a1061 = _0x190d97, _0x564f0c = await _0x2a0a60(_0x4a1061(0x1c4) + _0x24d0bc, {
|
|
823
|
-
'headers': _0x458e0d,
|
|
824
|
-
'method': _0x4a1061(0x87)
|
|
825
|
-
}), _0x3c7ace = new AbortController(), _0x3b6830 = setTimeout(() => _0x3c7ace['abort'](), _0x2bc69a);
|
|
826
|
-
try {
|
|
827
|
-
const _0x579bc9 = await _0x40b951(_0x552299 + _0x4a1061(_0x5424ff._0x4948b0) + _0x24d0bc + _0x4a1061(_0x5424ff._0x1772ec), {
|
|
828
|
-
'headers': _0x458e0d,
|
|
829
|
-
'method': _0x4a1061(0x87),
|
|
830
|
-
'signal': _0x3c7ace[_0x4a1061(0x13e)]
|
|
831
|
-
});
|
|
832
|
-
if (!_0x579bc9['ok'])
|
|
833
|
-
throw new Error('HTTP\x20' + _0x579bc9['status']);
|
|
834
|
-
return {
|
|
835
|
-
'contentType': _0x564f0c[_0x4a1061(_0x5424ff._0x5362d8)]?.['contentType'] ?? _0x579bc9['headers'][_0x4a1061(0x15b)](_0x4a1061(_0x5424ff._0x5ae6f6)) ?? _0x4a1061(_0x5424ff._0x49de3e),
|
|
836
|
-
'data': Buffer[_0x4a1061(0x178)](await _0x579bc9[_0x4a1061(_0x5424ff._0x34eceb)]()),
|
|
837
|
-
'originalFilename': _0x564f0c['data']?.[_0x4a1061(0x6e)]
|
|
838
|
-
};
|
|
839
|
-
} finally {
|
|
840
|
-
clearTimeout(_0x3b6830);
|
|
841
|
-
}
|
|
842
|
-
},
|
|
843
|
-
async 'listServer'() {
|
|
844
|
-
return _0x2bf943({ 'forceRefresh': !![] });
|
|
845
|
-
},
|
|
846
|
-
async 'readHistory'(_0x329f4c) {
|
|
847
|
-
const _0x13bc51 = _0x190d97, _0xc59a22 = await _0x495064(_0x329f4c[_0x13bc51(0x11f)]);
|
|
848
|
-
return _0x5770e4({
|
|
849
|
-
'after': _0x329f4c[_0x13bc51(0x1d6)],
|
|
850
|
-
'before': _0x329f4c[_0x13bc51(0x1ef)],
|
|
851
|
-
'channelId': _0xc59a22['channelId'],
|
|
852
|
-
'channelTarget': _0xc59a22[_0x13bc51(_0x2caf26._0x33e0a9)],
|
|
853
|
-
'limit': _0x329f4c[_0x13bc51(0x1b9)],
|
|
854
|
-
'threadId': _0xc59a22['threadId']
|
|
855
|
-
});
|
|
856
|
-
},
|
|
857
|
-
'resolveTarget': _0x495064,
|
|
858
|
-
async 'checkMessages'() {
|
|
859
|
-
const _0x27e043 = { _0x2b3a3f: 0xb3 }, _0x1546e1 = {
|
|
860
|
-
_0x2a2184: 0x140,
|
|
861
|
-
_0x439f13: 0x191
|
|
862
|
-
}, _0x48ba5 = _0x190d97, _0x5d08dd = new URLSearchParams();
|
|
863
|
-
_0x5d08dd[_0x48ba5(_0x39ef99._0x2bface)](_0x48ba5(_0x39ef99._0x42f232), String(_0x13278e));
|
|
864
|
-
const _0x145c8b = _0x5d08dd['toString'](), _0xa185fa = await _0x2a0a60(_0x48ba5(_0x39ef99._0xc1736) + _0x366518[_0x48ba5(_0x39ef99._0x46fd09)] + _0x48ba5(_0x39ef99._0x2a4121) + (_0x145c8b ? '?' + _0x145c8b : ''), {
|
|
865
|
-
'headers': _0x458e0d,
|
|
866
|
-
'method': _0x48ba5(0x87)
|
|
867
|
-
}), _0x4426ed = _0xa185fa[_0x48ba5(0x157)] ?? [], _0x1d71a3 = _0xa185fa[_0x48ba5(0xe3)]?.[_0x48ba5(_0x39ef99._0x226644)], _0x383a79 = _0x4ada69 ? _0x4426ed['filter'](_0x3b289a => {
|
|
868
|
-
const _0x4ad0a3 = _0x48ba5;
|
|
869
|
-
if (_0x3b289a[_0x4ad0a3(0x1cc)] !== _0x4ad0a3(_0x1546e1._0x2a2184))
|
|
870
|
-
return ![];
|
|
871
|
-
return _0x1f3b9(_0x4ada69, asRecord(_0x3b289a[_0x4ad0a3(_0x1546e1._0x439f13)]));
|
|
872
|
-
}) : _0x4426ed, _0x4a3e80 = _0x1d71a3 !== void 0x0 ? _0x4ada69 ? Math[_0x48ba5(_0x39ef99._0x2fbc68)](_0x13278e, _0x383a79[_0x48ba5(_0x39ef99._0xeb994)] > 0x0 ? _0x383a79[_0x383a79[_0x48ba5(0xa9)] - 0x1][_0x48ba5(_0x39ef99._0x3dc1bd)] : _0x13278e) : Math['max'](_0x13278e, _0x1d71a3) : _0x383a79[_0x48ba5(0xa9)] > 0x0 ? Math['max'](_0x13278e, _0x383a79[_0x383a79[_0x48ba5(_0x39ef99._0x103603)] - 0x1][_0x48ba5(_0x39ef99._0x3dc1bd)]) : _0x13278e, _0x2bd783 = _0x4426ed['filter'](_0x676bd8 => _0x676bd8[_0x48ba5(0x1cc)] === _0x48ba5(0x140)), _0x277b3c = _0x4ada69 === void 0x0 && _0x354a86;
|
|
873
|
-
let _0xb3f0fa = await _0x2bf943(), _0x11433a = new Map(_0xb3f0fa[_0x48ba5(_0x39ef99._0x251852)][_0x48ba5(_0x39ef99._0xedc3a3)](_0x517c1f => [
|
|
874
|
-
_0x517c1f['id'],
|
|
875
|
-
_0x517c1f
|
|
876
|
-
]));
|
|
877
|
-
const _0x14d74c = _0x2bd783[_0x48ba5(0x144)](_0x2161b7 => {
|
|
878
|
-
const _0x5140c8 = _0x48ba5, _0xea99b8 = asRecord(_0x2161b7['payloadJson']), _0x35dd71 = typeof _0xea99b8?.[_0x5140c8(_0x27e043._0x2b3a3f)] === _0x5140c8(0xe2) ? _0xea99b8[_0x5140c8(0xb3)] : '';
|
|
879
|
-
return Boolean(_0x35dd71) && !_0x11433a[_0x5140c8(0x1d9)](_0x35dd71);
|
|
880
|
-
});
|
|
881
|
-
_0x14d74c && (_0xb3f0fa = await _0x2bf943({ 'forceRefresh': !![] }), _0x11433a = new Map(_0xb3f0fa['channels'][_0x48ba5(0x158)](_0x3c3dc8 => [
|
|
882
|
-
_0x3c3dc8['id'],
|
|
883
|
-
_0x3c3dc8
|
|
884
|
-
])));
|
|
885
|
-
const _0x106383 = new Map();
|
|
886
|
-
for (const _0x514177 of _0x2bd783) {
|
|
887
|
-
const _0x52a2ed = asRecord(_0x514177['payloadJson']), _0x55f806 = typeof _0x52a2ed[_0x48ba5(_0x39ef99._0x448ea8)] === _0x48ba5(0xe2) ? _0x52a2ed[_0x48ba5(0xb3)] : '';
|
|
888
|
-
if (!_0x55f806)
|
|
889
|
-
continue;
|
|
890
|
-
const _0x57e9f5 = typeof _0x52a2ed[_0x48ba5(0x6b)] === 'string' ? _0x52a2ed['threadId'] : void 0x0, _0x3fb0eb = typeof _0x52a2ed['rootMessageId'] === _0x48ba5(0xe2) ? _0x52a2ed[_0x48ba5(_0x39ef99._0x621218)] : void 0x0, _0x402bfc = typeof _0x52a2ed[_0x48ba5(0x99)] === _0x48ba5(_0x39ef99._0x58c252) && Number[_0x48ba5(0xf9)](_0x52a2ed['threadNumber']) ? _0x52a2ed[_0x48ba5(_0x39ef99._0x5507ec)] : void 0x0, _0x3e0681 = Boolean(_0x57e9f5 && (!_0x3fb0eb || _0x514177[_0x48ba5(_0x39ef99._0x504051)] !== _0x3fb0eb)), _0x35623d = _0x3e0681 ? _0x55f806 + ':' + _0x57e9f5 : _0x55f806, _0x13a1d1 = _0x106383['get'](_0x35623d) ?? {
|
|
891
|
-
'aggregateIds': [],
|
|
892
|
-
'channelId': _0x55f806,
|
|
893
|
-
'entries': new Map(),
|
|
894
|
-
'isThreadReply': _0x3e0681,
|
|
895
|
-
'rootMessageId': _0x3fb0eb,
|
|
896
|
-
'threadNumber': _0x402bfc,
|
|
897
|
-
'threadId': _0x3e0681 ? _0x57e9f5 : void 0x0
|
|
898
|
-
};
|
|
899
|
-
_0x13a1d1[_0x48ba5(_0x39ef99._0x5507ec)] == null && _0x402bfc != null && (_0x13a1d1[_0x48ba5(0x99)] = _0x402bfc), !_0x13a1d1['rootMessageId'] && _0x3fb0eb && (_0x13a1d1[_0x48ba5(_0x39ef99._0x47da5b)] = _0x3fb0eb), _0x13a1d1[_0x48ba5(_0x39ef99._0xff3424)]['push'](_0x514177[_0x48ba5(0x118)]), _0x13a1d1[_0x48ba5(_0x39ef99._0x368f05)]['set'](_0x514177[_0x48ba5(0x118)], {
|
|
900
|
-
'payloadJson': _0x514177[_0x48ba5(0x191)],
|
|
901
|
-
'seq': _0x514177[_0x48ba5(_0x39ef99._0x3d3480)]
|
|
902
|
-
}), _0x106383[_0x48ba5(0x69)](_0x35623d, _0x13a1d1);
|
|
903
|
-
}
|
|
904
|
-
const _0x17a017 = [];
|
|
905
|
-
for (const _0x4a7c34 of _0x106383['values']()) {
|
|
906
|
-
const {
|
|
907
|
-
channelId: _0x5d30c5,
|
|
908
|
-
threadId: _0x2ec457,
|
|
909
|
-
rootMessageId: _0x3086f6,
|
|
910
|
-
threadNumber: _0x2053e3,
|
|
911
|
-
aggregateIds: _0x361433,
|
|
912
|
-
isThreadReply: _0x4c4c3d,
|
|
913
|
-
entries: _0xd2b6da
|
|
914
|
-
} = _0x4a7c34, _0x442753 = _0x11433a[_0x48ba5(0x15b)](_0x5d30c5), _0xb9925a = _0x442753?.[_0x48ba5(0x81)] ?? _0x5d30c5, _0x272836 = _0x442753?.[_0x48ba5(0x1d3)] === 'dm' ? _0x48ba5(0x1ab) + _0xb9925a : '#' + _0xb9925a, _0x1f307d = {
|
|
915
|
-
'channelTarget': _0x272836,
|
|
916
|
-
'rootMessageId': _0x3086f6,
|
|
917
|
-
'threadId': _0x2ec457,
|
|
918
|
-
'threadNumber': _0x2053e3
|
|
919
|
-
}, _0x12f687 = await _0x5770e4({
|
|
920
|
-
'channelId': _0x5d30c5,
|
|
921
|
-
'channelTarget': _0x272836,
|
|
922
|
-
'limit': Math[_0x48ba5(0x179)](_0x361433[_0x48ba5(0xa9)], 0x32),
|
|
923
|
-
'threadId': _0x2ec457
|
|
924
|
-
}), _0xad9c49 = new Map(_0x12f687[_0x48ba5(_0x39ef99._0x25f40e)]['map'](_0x2a88b7 => [
|
|
925
|
-
_0x2a88b7['messageId'],
|
|
926
|
-
_0x2a88b7
|
|
927
|
-
])), _0x1a2107 = _0x2ec457 ? _0x36295a(_0x1f307d) : _0x272836, _0x4c2fe4 = _0x4ada69 ? _0x4c4c3d && _0x497aa6(_0x4ada69, _0x1f307d) : !![], _0x45995e = _0x4c4c3d ? _0x4c2fe4 && _0x4ada69 ? _0x4ada69 : _0x1a2107 : _0x272836;
|
|
928
|
-
for (const _0x3c1f87 of _0x361433) {
|
|
929
|
-
if (!_0x4c2fe4)
|
|
930
|
-
continue;
|
|
931
|
-
const _0x52534c = _0xd2b6da['get'](_0x3c1f87), _0x6a96b5 = _0x52534c ? asRecord(_0x52534c[_0x48ba5(0x191)]) : void 0x0, _0x4a0605 = _0x6a96b5?.[_0x48ba5(0xbe)] === _0x48ba5(_0x39ef99._0x2bc2c5);
|
|
932
|
-
if (_0x277b3c && _0x4a0605)
|
|
933
|
-
continue;
|
|
934
|
-
const _0x32ac10 = _0xad9c49['get'](_0x3c1f87);
|
|
935
|
-
if (_0x32ac10) {
|
|
936
|
-
_0x17a017['push']({
|
|
937
|
-
'attachments': _0x32ac10[_0x48ba5(_0x39ef99._0x42809a)],
|
|
938
|
-
'content': _0x32ac10[_0x48ba5(_0x39ef99._0x54a49a)],
|
|
939
|
-
'createdAt': _0x32ac10[_0x48ba5(0x181)],
|
|
940
|
-
..._0x32ac10[_0x48ba5(0x1d3)] ? { 'kind': _0x32ac10['kind'] } : {},
|
|
941
|
-
'messageId': _0x32ac10[_0x48ba5(0xff)],
|
|
942
|
-
'senderName': _0x32ac10[_0x48ba5(_0x39ef99._0x4da177)],
|
|
943
|
-
'senderType': _0x32ac10['senderType'],
|
|
944
|
-
'target': _0x45995e,
|
|
945
|
-
..._0x4a0605 ? { 'targetedTask': !![] } : {}
|
|
946
|
-
});
|
|
947
|
-
continue;
|
|
948
|
-
}
|
|
949
|
-
if (_0x52534c) {
|
|
950
|
-
const _0x243141 = typeof _0x6a96b5?.[_0x48ba5(0xd8)] === _0x48ba5(0xe2) ? _0x6a96b5[_0x48ba5(_0x39ef99._0x174c82)] : '', _0xe39194 = typeof _0x6a96b5?.[_0x48ba5(_0x39ef99._0x5dbf71)] === _0x48ba5(0xe2) ? _0x6a96b5['bodyMarkdown'] : '', _0x549dbc = typeof _0x6a96b5?.[_0x48ba5(_0x39ef99._0x2d370c)] === _0x48ba5(_0x39ef99._0x501fdc) && _0x6a96b5[_0x48ba5(_0x39ef99._0x2d370c)] !== _0x48ba5(_0x39ef99._0x499294) ? _0x6a96b5['kind'] : void 0x0;
|
|
951
|
-
_0x243141 && _0xe39194 && _0x17a017[_0x48ba5(0xe9)]({
|
|
952
|
-
'attachments': [],
|
|
953
|
-
'content': _0xe39194,
|
|
954
|
-
'createdAt': new Date()[_0x48ba5(0x175)](),
|
|
955
|
-
..._0x549dbc ? { 'kind': _0x549dbc } : {},
|
|
956
|
-
'messageId': _0x3c1f87,
|
|
957
|
-
'senderName': _0x243141,
|
|
958
|
-
'senderType': _0x5cf907(_0x243141, _0xb3f0fa),
|
|
959
|
-
'target': _0x45995e,
|
|
960
|
-
..._0x4a0605 ? { 'targetedTask': !![] } : {}
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
if (_0x4a3e80 > 0x0) {
|
|
966
|
-
if (_0x858803)
|
|
967
|
-
await _0x23801c(_0x4a3e80);
|
|
968
|
-
else
|
|
969
|
-
_0x3a00fa && await _0x147c5b(_0x4a3e80);
|
|
970
|
-
}
|
|
971
|
-
return _0x4a3e80 > _0x13278e && (_0x13278e = _0x4a3e80), { 'messages': _0x4ada69 ? _0x17a017 : _0x277b3c ? _0x17a017['filter'](_0x31888b => _0x31888b['targetedTask'] !== !![]) : _0x17a017 };
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
}
|
|
975
|
-
function toLocalTime(_0x179042) {
|
|
976
|
-
const _0x1d8a75 = {
|
|
977
|
-
_0x27fe41: 0x195,
|
|
978
|
-
_0x8385ae: 0x128
|
|
979
|
-
}, _0x3e2d0a = _0x2858e8, _0x8a0480 = new Date(_0x179042);
|
|
980
|
-
if (Number[_0x3e2d0a(_0x1d8a75._0x27fe41)](_0x8a0480['getTime']()))
|
|
981
|
-
return _0x179042;
|
|
982
|
-
const _0x509af9 = _0x1e032b => String(_0x1e032b)['padStart'](0x2, '0');
|
|
983
|
-
return _0x8a0480[_0x3e2d0a(_0x1d8a75._0x8385ae)]() + '-' + _0x509af9(_0x8a0480[_0x3e2d0a(0x1c7)]() + 0x1) + '-' + _0x509af9(_0x8a0480[_0x3e2d0a(0x7e)]()) + '\x20' + _0x509af9(_0x8a0480['getHours']()) + ':' + _0x509af9(_0x8a0480[_0x3e2d0a(0x168)]()) + ':' + _0x509af9(_0x8a0480[_0x3e2d0a(0x185)]());
|
|
984
|
-
}
|
|
985
|
-
function formatAttachmentSuffix(_0x3fc591) {
|
|
986
|
-
const _0x43cc73 = { _0x585034: 0xa9 }, _0x1f1095 = _0x2858e8;
|
|
987
|
-
if (!_0x3fc591 || _0x3fc591['length'] === 0x0)
|
|
988
|
-
return '';
|
|
989
|
-
return '\x20[' + _0x3fc591['length'] + _0x1f1095(0x17c) + (_0x3fc591[_0x1f1095(_0x43cc73._0x585034)] > 0x1 ? 's' : '') + ':\x20' + _0x3fc591[_0x1f1095(0x158)](_0x1f8701 => _0x1f8701[_0x1f1095(0x171)] + _0x1f1095(0x14f) + _0x1f8701['id'] + ')')[_0x1f1095(0x6f)](',\x20') + _0x1f1095(0xd2);
|
|
990
|
-
}
|
|
991
|
-
function formatCheckMessages(_0x36ea79) {
|
|
992
|
-
const _0x5c6c17 = {
|
|
993
|
-
_0x4d29b3: 0xa9,
|
|
994
|
-
_0x2c3b0f: 0x6f
|
|
995
|
-
}, _0xd6e940 = {
|
|
996
|
-
_0x2e8645: 0x82,
|
|
997
|
-
_0x19f960: 0x1c2,
|
|
998
|
-
_0x7d2a0e: 0x1d3,
|
|
999
|
-
_0x255348: 0xb9,
|
|
1000
|
-
_0x55a0f6: 0x1c1,
|
|
1001
|
-
_0x293ca0: 0x181,
|
|
1002
|
-
_0x3e384: 0x1dd,
|
|
1003
|
-
_0x25c86a: 0x95,
|
|
1004
|
-
_0xc55d8c: 0x120
|
|
1005
|
-
}, _0x34ba93 = _0x2858e8;
|
|
1006
|
-
if (_0x36ea79[_0x34ba93(_0x5c6c17._0x4d29b3)] === 0x0)
|
|
1007
|
-
return 'No\x20new\x20messages.';
|
|
1008
|
-
return _0x36ea79['map'](_0x5b51e4 => {
|
|
1009
|
-
const _0xa577a3 = _0x34ba93, _0x417721 = _0x5b51e4[_0xa577a3(0x122)] === _0xa577a3(_0xd6e940._0x2e8645) ? _0xa577a3(_0xd6e940._0x19f960) : '', _0x3924b0 = _0x5b51e4[_0xa577a3(0x1d3)] && _0x5b51e4[_0xa577a3(_0xd6e940._0x7d2a0e)] !== _0xa577a3(0xd6) ? '\x20kind=' + _0x5b51e4[_0xa577a3(0x1d3)] : '';
|
|
1010
|
-
return _0xa577a3(_0xd6e940._0x255348) + _0x5b51e4['target'] + _0xa577a3(_0xd6e940._0x55a0f6) + _0x5b51e4['messageId'][_0xa577a3(0x1a9)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x5b51e4[_0xa577a3(_0xd6e940._0x293ca0)]) + _0x417721 + _0x3924b0 + _0xa577a3(_0xd6e940._0x3e384) + _0x5b51e4[_0xa577a3(_0xd6e940._0x25c86a)] + ':\x20' + _0x5b51e4[_0xa577a3(0x127)] + formatAttachmentSuffix(_0x5b51e4[_0xa577a3(_0xd6e940._0xc55d8c)]);
|
|
1011
|
-
})[_0x34ba93(_0x5c6c17._0x2c3b0f)]('\x0a');
|
|
1012
|
-
}
|
|
1013
|
-
function formatHistory(_0x54f334) {
|
|
1014
|
-
const _0x1907f2 = {
|
|
1015
|
-
_0x16ab74: 0xcf,
|
|
1016
|
-
_0x246fd1: 0x12a,
|
|
1017
|
-
_0x5a9761: 0x15f,
|
|
1018
|
-
_0x16279d: 0x158,
|
|
1019
|
-
_0x4bb7cf: 0xe4,
|
|
1020
|
-
_0x954e9c: 0x71,
|
|
1021
|
-
_0x5e5daf: 0xa9,
|
|
1022
|
-
_0x56ab20: 0x1a2,
|
|
1023
|
-
_0x50cfd5: 0x11f,
|
|
1024
|
-
_0x2975e6: 0xcf
|
|
1025
|
-
}, _0x2b719c = {
|
|
1026
|
-
_0x29ee26: 0x1c2,
|
|
1027
|
-
_0x323b8: 0x1e2,
|
|
1028
|
-
_0x4e8bf3: 0x177,
|
|
1029
|
-
_0x1b8d80: 0x1a4,
|
|
1030
|
-
_0x399b32: 0x1dd,
|
|
1031
|
-
_0x4d9048: 0x120
|
|
1032
|
-
}, _0x4ad508 = _0x2858e8;
|
|
1033
|
-
if (_0x54f334[_0x4ad508(_0x1907f2._0x16ab74)]['length'] === 0x0)
|
|
1034
|
-
return _0x4ad508(_0x1907f2._0x246fd1) + _0x54f334['channel'] + _0x4ad508(_0x1907f2._0x5a9761);
|
|
1035
|
-
const _0x3dafd2 = _0x54f334[_0x4ad508(0xcf)][_0x4ad508(_0x1907f2._0x16279d)](_0x518e34 => {
|
|
1036
|
-
const _0x4558c1 = _0x4ad508, _0x4cf0e0 = _0x518e34['senderType'] === 'agent' ? _0x4558c1(_0x2b719c._0x29ee26) : '', _0x57cc98 = _0x518e34[_0x4558c1(0x1d3)] && _0x518e34['kind'] !== _0x4558c1(0xd6) ? _0x4558c1(_0x2b719c._0x323b8) + _0x518e34[_0x4558c1(0x1d3)] : '';
|
|
1037
|
-
return _0x4558c1(_0x2b719c._0x4e8bf3) + _0x518e34[_0x4558c1(0x9e)] + '\x20msg=' + _0x518e34[_0x4558c1(0xff)] + _0x4558c1(_0x2b719c._0x1b8d80) + toLocalTime(_0x518e34[_0x4558c1(0x181)]) + _0x4cf0e0 + _0x57cc98 + _0x4558c1(_0x2b719c._0x399b32) + _0x518e34['senderName'] + ':\x20' + _0x518e34[_0x4558c1(0x127)] + formatAttachmentSuffix(_0x518e34[_0x4558c1(_0x2b719c._0x4d9048)]);
|
|
1038
|
-
})[_0x4ad508(0x6f)]('\x0a'), _0x58d7df = _0x54f334[_0x4ad508(0x152)] && _0x54f334[_0x4ad508(_0x1907f2._0x4bb7cf)] ? _0x4ad508(_0x1907f2._0x954e9c) + _0x54f334['messages'][_0x4ad508(_0x1907f2._0x5e5daf)] + _0x4ad508(0x86) + _0x54f334[_0x4ad508(0xe4)] + _0x4ad508(_0x1907f2._0x56ab20) : '';
|
|
1039
|
-
return _0x4ad508(_0x1907f2._0x246fd1) + _0x54f334[_0x4ad508(_0x1907f2._0x50cfd5)] + '\x20(' + _0x54f334[_0x4ad508(_0x1907f2._0x2975e6)]['length'] + '\x20messages)\x0a\x0a' + _0x3dafd2 + _0x58d7df;
|
|
1040
|
-
}
|
|
1041
|
-
function formatServerDirectory(_0x48d991) {
|
|
1042
|
-
const _0x1c5626 = {
|
|
1043
|
-
_0x4a16d0: 0xa9,
|
|
1044
|
-
_0x13952a: 0x6f,
|
|
1045
|
-
_0x5626b2: 0x79,
|
|
1046
|
-
_0x4a886a: 0x158,
|
|
1047
|
-
_0x2ab1b3: 0x188,
|
|
1048
|
-
_0x4460d6: 0x158,
|
|
1049
|
-
_0x2fda99: 0xba,
|
|
1050
|
-
_0x191813: 0xaf
|
|
1051
|
-
}, _0x24e68b = _0x2858e8, _0x3b9922 = _0x48d991['channels'][_0x24e68b(_0x1c5626._0x4a16d0)] > 0x0 ? _0x48d991['channels'][_0x24e68b(0x158)](_0x10aa0c => _0x10aa0c['description'] ? _0x24e68b(0x1c9) + _0x10aa0c[_0x24e68b(0x81)] + _0x24e68b(0x75) + _0x10aa0c[_0x24e68b(0x110)] : _0x24e68b(0x1c9) + _0x10aa0c[_0x24e68b(0x81)])[_0x24e68b(_0x1c5626._0x13952a)]('\x0a') : _0x24e68b(_0x1c5626._0x5626b2), _0x5be60 = _0x48d991['agents'][_0x24e68b(0xa9)] > 0x0 ? _0x48d991['agents'][_0x24e68b(_0x1c5626._0x4a886a)](_0x5c3a1d => _0x24e68b(0x13a) + _0x5c3a1d[_0x24e68b(0x81)])[_0x24e68b(0x6f)]('\x0a') : '(none)', _0x27c836 = _0x48d991[_0x24e68b(0x188)][_0x24e68b(0xa9)] > 0x0 ? _0x48d991[_0x24e68b(_0x1c5626._0x2ab1b3)][_0x24e68b(_0x1c5626._0x4460d6)](_0x594ad8 => _0x24e68b(0x13a) + _0x594ad8[_0x24e68b(0x81)])['join']('\x0a') : '(none)';
|
|
1052
|
-
return [
|
|
1053
|
-
_0x24e68b(_0x1c5626._0x2fda99) + _0x48d991[_0x24e68b(0x16b)],
|
|
1054
|
-
'',
|
|
1055
|
-
'###\x20Channels',
|
|
1056
|
-
_0x3b9922,
|
|
1057
|
-
'',
|
|
1058
|
-
_0x24e68b(_0x1c5626._0x191813),
|
|
1059
|
-
_0x5be60,
|
|
1060
|
-
'',
|
|
1061
|
-
_0x24e68b(0x180),
|
|
1062
|
-
_0x27c836
|
|
1063
|
-
][_0x24e68b(0x6f)]('\x0a');
|
|
1064
|
-
}
|
|
1065
|
-
function formatUploadResult(_0x34daa2) {
|
|
1066
|
-
const _0x3cd397 = { _0x3c2f34: 0x171 }, _0x525ac0 = _0x2858e8;
|
|
1067
|
-
return _0x525ac0(0x88) + _0x34daa2[_0x525ac0(_0x3cd397._0x3c2f34)] + '\x20(' + (_0x34daa2['sizeBytes'] / 0x400)[_0x525ac0(0x16d)](0x1) + _0x525ac0(0x159) + _0x34daa2['attachmentId'] + _0x525ac0(0x198);
|
|
1068
|
-
}
|
|
1069
|
-
function _0x184f() {
|
|
1070
|
-
const _0x2c9e82 = [
|
|
1071
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
1072
|
-
'BgLZDf90yxnRCW',
|
|
1073
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
104
|
+
function _0x2e92() {
|
|
105
|
+
const _0x2fb423 = [
|
|
106
|
+
'C2vUzgvYtMfTzq',
|
|
1074
107
|
'ANnVBG',
|
|
1075
|
-
'
|
|
1076
|
-
'
|
|
1077
|
-
'
|
|
1078
|
-
'
|
|
1079
|
-
'
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
1082
|
-
'
|
|
1083
|
-
'zgfLBw9UqxbPs2v5',
|
|
1084
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1085
|
-
'zMfSC2u',
|
|
1086
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
1087
|
-
'l2HPC3rVCNK/',
|
|
1088
|
-
'y2fJAgveAxi',
|
|
1089
|
-
'kgXLz2fJEsK',
|
|
1090
|
-
'yMfZzty0',
|
|
1091
|
-
'l3rHC2TZpW',
|
|
1092
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1093
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1094
|
-
'ihrPBwu9',
|
|
1095
|
-
'C2L6zuj5DgvZ',
|
|
1096
|
-
'Bg93',
|
|
1097
|
-
'DMLLD19MAwXL',
|
|
1098
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1099
|
-
'C2XPy2u',
|
|
1100
|
-
'CMvZDwX0CW',
|
|
1101
|
-
'zg06',
|
|
1102
|
-
'y2XPzw50',
|
|
1103
|
-
'y2XHAw1uyxnRCW',
|
|
1104
|
-
'DgHYzwfKvgfYz2v0',
|
|
1105
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1106
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1107
|
-
'C2vUzf9TzxnZywDL',
|
|
1108
|
-
'vgfZAZOG',
|
|
1109
|
-
'l3jLy2vPDMu',
|
|
1110
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
1111
|
-
'DxbSB2fKx2zPBgu',
|
|
1112
|
-
'DgfZA0LK',
|
|
1113
|
-
'Dg9tDhjPBMC',
|
|
1114
|
-
'nhzeyxv5BW',
|
|
108
|
+
'AxnbCNjHEq',
|
|
109
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
110
|
+
'yxjYyxLcDwzMzxi',
|
|
111
|
+
'w3rHCMDLDd0',
|
|
112
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
113
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
114
|
+
'Dw5RBM93BG',
|
|
115
|
+
'D29YA2vYtw9Kzq',
|
|
1115
116
|
'BgLTAxq',
|
|
1116
|
-
'
|
|
1117
|
-
'l3vWBg9Hza',
|
|
1118
|
-
'zxjYB3i',
|
|
1119
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1120
|
-
'CgfYA193B3jRzxi',
|
|
1121
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
117
|
+
'DgHYzwfK',
|
|
1122
118
|
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1123
|
-
'
|
|
1124
|
-
'
|
|
1125
|
-
'
|
|
1126
|
-
'
|
|
1127
|
-
'
|
|
1128
|
-
'
|
|
1129
|
-
'
|
|
1130
|
-
'
|
|
1131
|
-
'
|
|
1132
|
-
'
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
119
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
120
|
+
'mJKWodq1mLvKrMvVva',
|
|
121
|
+
'C3rHDhvZ',
|
|
122
|
+
'DMfSDwvZ',
|
|
123
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
124
|
+
'CMvHC29U',
|
|
125
|
+
'AgfZtw9Yzq',
|
|
126
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
127
|
+
'C2LNBMfS',
|
|
128
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
129
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
130
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
131
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1136
132
|
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1137
|
-
'
|
|
1138
|
-
'
|
|
1139
|
-
'
|
|
133
|
+
'ls1Zzxj2zxiTDxjS',
|
|
134
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
135
|
+
'Dg9KBW',
|
|
136
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
137
|
+
'iYmJienOyw5UzwXZ',
|
|
1140
138
|
'CMvHzeHPC3rVCNK',
|
|
1141
|
-
'
|
|
1142
|
-
'
|
|
1143
|
-
'
|
|
1144
|
-
'
|
|
1145
|
-
'
|
|
1146
|
-
'
|
|
1147
|
-
'
|
|
1148
|
-
'
|
|
1149
|
-
'
|
|
1150
|
-
'
|
|
1151
|
-
'
|
|
1152
|
-
'
|
|
1153
|
-
'
|
|
1154
|
-
'
|
|
1155
|
-
'
|
|
1156
|
-
'
|
|
1157
|
-
'
|
|
1158
|
-
'
|
|
1159
|
-
'
|
|
1160
|
-
'mtuYnduYAfPnDhrm',
|
|
1161
|
-
'DhLWzq',
|
|
1162
|
-
'yMfZzw5HBwu',
|
|
1163
|
-
'ywrK',
|
|
1164
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
139
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
140
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
141
|
+
'DgvZDa',
|
|
142
|
+
'ig1LC3nHz2u9',
|
|
143
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
144
|
+
'Bg9JywXLq29TCgfYzq',
|
|
145
|
+
'zxzLBNrtzxe',
|
|
146
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
147
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
148
|
+
'BgLZDf90yxnRCW',
|
|
149
|
+
'C2vX',
|
|
150
|
+
'DgfZA19Pza',
|
|
151
|
+
'zxHWAxjLC0f0',
|
|
152
|
+
'C2L6zq',
|
|
153
|
+
'ChjVDg9JB2W',
|
|
154
|
+
'D29YA2vY',
|
|
155
|
+
'DgfZA3m',
|
|
156
|
+
'y2HHBM5LBhm',
|
|
157
|
+
'mu51BgD3BG',
|
|
1165
158
|
'DxrMoa',
|
|
1166
|
-
'
|
|
1167
|
-
'
|
|
1168
|
-
'
|
|
1169
|
-
'
|
|
1170
|
-
'
|
|
1171
|
-
'
|
|
1172
|
-
'
|
|
1173
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1174
|
-
'khvUA25VD24P',
|
|
1175
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
159
|
+
'C2vUzgvYvhLWzq',
|
|
160
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
161
|
+
'ywDNCMvNyxrLswq',
|
|
162
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
163
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
164
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
165
|
+
'BM93',
|
|
1176
166
|
'AM9PBG',
|
|
1177
|
-
'
|
|
1178
|
-
'
|
|
1179
|
-
'
|
|
1180
|
-
'
|
|
1181
|
-
'
|
|
1182
|
-
'iokaLca',
|
|
1183
|
-
'C3rVCe1HAw4',
|
|
1184
|
-
'y2HHBM5LBe5HBwu',
|
|
1185
|
-
'ls1Hz2vUDc1Pza',
|
|
1186
|
-
'kg5VBMuP',
|
|
1187
|
-
'BwvZC2fNzv9Pzhm',
|
|
1188
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1189
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1190
|
-
'yxv0BZO',
|
|
1191
|
-
'z2v0rgf0zq',
|
|
1192
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
167
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
168
|
+
'DgfYz2v0zwruyxnR',
|
|
169
|
+
'BwvKAxvT',
|
|
170
|
+
'y2HLy2TnzxnZywDLCW',
|
|
171
|
+
'DgHYzwfKvgfYz2v0',
|
|
1193
172
|
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
173
|
+
'ndm3ntu4BKX3uwTJ',
|
|
1194
174
|
'BMfTzq',
|
|
175
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
176
|
+
'xsba',
|
|
177
|
+
'y3jLyxrLx3rHC2TZ',
|
|
178
|
+
'zM9Yy2vszwzYzxnO',
|
|
179
|
+
'Ahr0Chm6',
|
|
180
|
+
'C2nOzwr1BgvKrM9Y',
|
|
181
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1195
182
|
'ywDLBNq',
|
|
1196
|
-
'
|
|
1197
|
-
'
|
|
1198
|
-
'
|
|
1199
|
-
'
|
|
1200
|
-
'
|
|
1201
|
-
'
|
|
1202
|
-
'
|
|
1203
|
-
'
|
|
1204
|
-
'
|
|
1205
|
-
'
|
|
1206
|
-
'
|
|
1207
|
-
'
|
|
1208
|
-
'
|
|
1209
|
-
'
|
|
1210
|
-
'
|
|
1211
|
-
'
|
|
1212
|
-
'
|
|
1213
|
-
'
|
|
1214
|
-
'
|
|
1215
|
-
'
|
|
1216
|
-
'
|
|
1217
|
-
'
|
|
1218
|
-
'DgHYzwfKtNvTyMvY',
|
|
1219
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1220
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1221
|
-
'C3rYAw5NAwz5',
|
|
1222
|
-
'yxjNDG',
|
|
1223
|
-
'C2vX',
|
|
1224
|
-
'y29UDgvUDejHC2u2na',
|
|
1225
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1226
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1227
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1228
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1229
|
-
'zw51Bq',
|
|
1230
|
-
'DxbSB2fKrMLSzq',
|
|
183
|
+
'ktSGz290ignOyw5UzwW9',
|
|
184
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
185
|
+
'iIbUB3qGzM91BMq',
|
|
186
|
+
'yxv0BZO',
|
|
187
|
+
'mJbStML4rLe',
|
|
188
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
189
|
+
'BgLZDf9Zzxj2zxi',
|
|
190
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
191
|
+
'DhjPBq',
|
|
192
|
+
'Dg9VBa',
|
|
193
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
194
|
+
'ndK1ntm0BMrRseTf',
|
|
195
|
+
'igLUia',
|
|
196
|
+
'y2HHBM5LBe5HBwu',
|
|
197
|
+
'yM9KEvrLEhq',
|
|
198
|
+
'AhvTyw4',
|
|
199
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
200
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
201
|
+
'Aw5KzxHpzG',
|
|
202
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
203
|
+
'y3vYC29Y',
|
|
204
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1231
205
|
'Bwf0y2Hoyw1L',
|
|
1232
|
-
'
|
|
1233
|
-
'
|
|
1234
|
-
'
|
|
1235
|
-
'
|
|
1236
|
-
'
|
|
1237
|
-
'
|
|
1238
|
-
'
|
|
1239
|
-
'
|
|
1240
|
-
'
|
|
1241
|
-
'
|
|
1242
|
-
'
|
|
206
|
+
'zgvZDhjVEwvK',
|
|
207
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
208
|
+
'zNjVBq',
|
|
209
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
210
|
+
'vgfZAYa',
|
|
211
|
+
'Dw5JBgfPBvrHC2S',
|
|
212
|
+
'BwvZC2fNzxm',
|
|
213
|
+
'C3rYAw5N',
|
|
214
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
215
|
+
'l3vWBg9Hza',
|
|
216
|
+
'C3rHCNrZv2L0Aa',
|
|
217
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
218
|
+
'sfruuca',
|
|
219
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
220
|
+
'ignSywLTzwq',
|
|
221
|
+
'BwvTyMvYCW',
|
|
222
|
+
'CgfYDgLJAxbHBNrjza',
|
|
223
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
224
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1243
225
|
'yM9KEu1HCMTKB3DU',
|
|
226
|
+
'DxbSB2fKx2zPBgu',
|
|
227
|
+
'y2HHDa',
|
|
228
|
+
'yMvMB3jL',
|
|
229
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
230
|
+
'ChvIBgLJ',
|
|
231
|
+
'DgHYzwfKu2HVCNrjza',
|
|
232
|
+
'ihr5Cgu9ywDLBNq',
|
|
233
|
+
'6k+35Rgcia',
|
|
234
|
+
'AxngAw5PDgu',
|
|
235
|
+
'y2XHAw1uyxnRCW',
|
|
236
|
+
'lMrZy29Yza',
|
|
237
|
+
'mZGZmZm2yMfcu2T5',
|
|
238
|
+
'Bwf4',
|
|
239
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
240
|
+
'CgfKu3rHCNq',
|
|
241
|
+
'C29YDa',
|
|
242
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
243
|
+
'cGOTls0G',
|
|
244
|
+
'CxvLDwvK',
|
|
245
|
+
'C2vYDMvY',
|
|
246
|
+
'l3nLCNzLCG',
|
|
247
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
248
|
+
'DxbKyxrL',
|
|
249
|
+
'ls1ZzxnZAw9UlwLK',
|
|
250
|
+
'y29UDgvUDc10ExbL',
|
|
1244
251
|
'y2HHBM5LBeLK',
|
|
1245
|
-
'
|
|
1246
|
-
'
|
|
1247
|
-
'
|
|
1248
|
-
'
|
|
1249
|
-
'
|
|
1250
|
-
'
|
|
1251
|
-
'
|
|
1252
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
252
|
+
'C2HHmJu2',
|
|
253
|
+
'D3m6',
|
|
254
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
255
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
256
|
+
'zMfSC2u',
|
|
257
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
258
|
+
'zg06',
|
|
1253
259
|
'AxngAwXL',
|
|
1254
|
-
'
|
|
1255
|
-
'
|
|
1256
|
-
'
|
|
1257
|
-
'
|
|
1258
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1259
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1260
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1261
|
-
'yM9KEvrLEhq',
|
|
1262
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1263
|
-
'y29UDgvUDc10ExbL',
|
|
260
|
+
'AwrSzq',
|
|
261
|
+
'CMvZCg9UC2u',
|
|
262
|
+
'C3rVCe1HAw4',
|
|
263
|
+
'zMLSDgvY',
|
|
1264
264
|
'zMv0y2HuAw1LB3v0txm',
|
|
1265
|
-
'
|
|
1266
|
-
'
|
|
1267
|
-
'
|
|
1268
|
-
'
|
|
1269
|
-
'
|
|
1270
|
-
'
|
|
1271
|
-
'
|
|
1272
|
-
'
|
|
1273
|
-
'
|
|
1274
|
-
'
|
|
1275
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1276
|
-
'zxH0BMfTzq',
|
|
1277
|
-
'DgHYzwfK',
|
|
1278
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1279
|
-
'y2HHDa',
|
|
1280
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
1281
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1282
|
-
'y2XHAw1FDgfZA3m',
|
|
1283
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1284
|
-
'Aw5FChjVz3jLC3m',
|
|
1285
|
-
'DMLZAwjPBgL0Eq',
|
|
1286
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
1287
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1288
|
-
'EM9K',
|
|
1289
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1290
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1291
|
-
'C3rYAw5N',
|
|
1292
|
-
'Bwv0yq',
|
|
1293
|
-
'BMv4Den1CNnVCG',
|
|
265
|
+
'C2XPy2u',
|
|
266
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
267
|
+
'ywDNCMvNyxrLswrZ',
|
|
268
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
269
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
270
|
+
'Dg9ju09tDhjPBMC',
|
|
271
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
272
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
273
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
274
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1294
275
|
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'
|
|
1300
|
-
'
|
|
1301
|
-
'
|
|
1302
|
-
'
|
|
1303
|
-
'
|
|
276
|
+
'C2L6zuj5DgvZ',
|
|
277
|
+
'ihn0yxr1CZ0',
|
|
278
|
+
'DhLWzq',
|
|
279
|
+
'yxnPzgu',
|
|
280
|
+
'l3jLy2vPDMu',
|
|
281
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
282
|
+
'Dgv4Da',
|
|
283
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
284
|
+
'y3jLyxrLvgfZA3m',
|
|
285
|
+
'C2vUzf9TzxnZywDL',
|
|
286
|
+
'kgXLz2fJEsK',
|
|
287
|
+
'B3b0Aw9UywW',
|
|
288
|
+
'DxnLCG',
|
|
289
|
+
'C3vJy2vZCW',
|
|
290
|
+
'CNvUBMLUzW',
|
|
291
|
+
'Dgv4Dc9JC3y',
|
|
292
|
+
'igTPBMq9',
|
|
293
|
+
'AxnbyNnVBhv0zq',
|
|
294
|
+
'v29YA2vYici',
|
|
295
|
+
'zw50CMLLCW',
|
|
1304
296
|
'y2HLy2TFBwvZC2fNzxm',
|
|
297
|
+
'CgfYA193B3jRzxi',
|
|
298
|
+
'mZq5nti2neDpuK9NDq',
|
|
299
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
300
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
301
|
+
'zgf0yq',
|
|
302
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
303
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
304
|
+
'z2v0rNvSBfLLyxi',
|
|
305
|
+
'AhvTyw5Z',
|
|
306
|
+
'CM9VDe1LC3nHz2vjza',
|
|
307
|
+
'iYmGu2vYDMvYoIa',
|
|
308
|
+
'zMLSzv9WyxrO',
|
|
309
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
310
|
+
'zxjYB3i',
|
|
311
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
312
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
313
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
314
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
315
|
+
'BwfW',
|
|
316
|
+
'C2v0',
|
|
317
|
+
'zMLUza',
|
|
318
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
319
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
320
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
321
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
322
|
+
'AgvHzgvYCW',
|
|
323
|
+
'l3rHC2TZl2nSywLT',
|
|
324
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
325
|
+
'pgvTChr5pG',
|
|
326
|
+
'C2vUze1LC3nHz2u',
|
|
327
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
328
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
329
|
+
'y2HPBgrYzw5eB25L',
|
|
330
|
+
'AxnjBNrLz2vY',
|
|
1305
331
|
'Dw5JBgfPBv90yxnR',
|
|
332
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
333
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
334
|
+
'yxr0ywnOBwvUDeLK',
|
|
335
|
+
'z2v0',
|
|
336
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
337
|
+
'r0vu',
|
|
338
|
+
'y2f0y2G',
|
|
339
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
340
|
+
'zgLZCg9ZAxrPB24',
|
|
341
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
342
|
+
'iJOGC3rHDhvZpq',
|
|
343
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
344
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
345
|
+
'C3rHCNrLza',
|
|
346
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
347
|
+
'kg5VBMuP',
|
|
348
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
349
|
+
'C2vYDMvYvxjS',
|
|
350
|
+
'ywjVCNq',
|
|
351
|
+
'ywz0zxi',
|
|
352
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
353
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
354
|
+
'l3n0yxj0',
|
|
355
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1306
356
|
'CMvZB2X2zvrHCMDLDa',
|
|
1307
|
-
'
|
|
1308
|
-
'
|
|
1309
|
-
'
|
|
1310
|
-
'
|
|
1311
|
-
'
|
|
1312
|
-
'
|
|
1313
|
-
'
|
|
1314
|
-
'
|
|
1315
|
-
'C2HHmJu2',
|
|
1316
|
-
'BgLZDfnLCNzLCG',
|
|
1317
|
-
'CgfYDgLJAxbHBNq',
|
|
1318
|
-
'D29YA2vYsgfUzg9MzG',
|
|
1319
|
-
'zg9Uzq',
|
|
1320
|
-
'BwvZC2fNzuLK',
|
|
1321
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
357
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
358
|
+
'Dg9gAxHLza',
|
|
359
|
+
'DgHYzwfKtNvTyMvY',
|
|
360
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
361
|
+
'zMLSzw5HBwu',
|
|
362
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
363
|
+
'l3rHC2TZpW',
|
|
364
|
+
'ig1LC3nHz2vZkqOk',
|
|
1322
365
|
'igrVBMuP',
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
366
|
+
'zg9Uzq',
|
|
367
|
+
'C2f2zq',
|
|
368
|
+
'Cgf5Bg9HzePZB24',
|
|
369
|
+
'Aw5FCMv2Awv3',
|
|
370
|
+
'lsba',
|
|
371
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
372
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
373
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
374
|
+
'y29UBMvJDa',
|
|
375
|
+
'zgvZy3jPyMu',
|
|
376
|
+
'Bwv0yq',
|
|
377
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
378
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
379
|
+
'CMvHzf9OAxn0B3j5',
|
|
380
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
381
|
+
'BMv4Den1CNnVCG',
|
|
382
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1325
383
|
'DgfZA051BwjLCG',
|
|
384
|
+
'Ahr0CdO',
|
|
385
|
+
'lsaJ',
|
|
1326
386
|
'Aw5JBhvKzxm',
|
|
1327
|
-
'
|
|
1328
|
-
'
|
|
1329
|
-
'
|
|
1330
|
-
'
|
|
1331
|
-
'
|
|
1332
|
-
'
|
|
1333
|
-
'
|
|
1334
|
-
'
|
|
1335
|
-
'
|
|
1336
|
-
'
|
|
1337
|
-
'
|
|
1338
|
-
'
|
|
1339
|
-
'
|
|
1340
|
-
'
|
|
1341
|
-
'
|
|
1342
|
-
'
|
|
1343
|
-
'
|
|
387
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
388
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
389
|
+
'lIbnzxnZywDLieLeoIa',
|
|
390
|
+
'CNvUswq',
|
|
391
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
392
|
+
'z2v0rgf0zq',
|
|
393
|
+
'Aw1Hz2uVANbLzW',
|
|
394
|
+
'DgL0Bgu',
|
|
395
|
+
'y3jLyxrLzef0',
|
|
396
|
+
'zMv0y2HjBxbS',
|
|
397
|
+
'ywXS',
|
|
398
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
399
|
+
'CMvZDwX0sNnVBG',
|
|
400
|
+
'Aw1Hz2uVD2vICa',
|
|
401
|
+
'ywz0zxjtzxe',
|
|
402
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
403
|
+
'vgfZAZOG',
|
|
404
|
+
'iokaLca',
|
|
405
|
+
'l3rHC2TZ',
|
|
406
|
+
'BwvTyMvY',
|
|
1344
407
|
'DxjNzw50',
|
|
1345
|
-
'
|
|
1346
|
-
'
|
|
1347
|
-
'
|
|
1348
|
-
'
|
|
1349
|
-
'
|
|
1350
|
-
'
|
|
1351
|
-
'
|
|
1352
|
-
'
|
|
1353
|
-
'yxr0ywnOBwvUDhm',
|
|
1354
|
-
'CMvHzf9OAxn0B3j5',
|
|
1355
|
-
'C2vUzgvYvhLWzq',
|
|
1356
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1357
|
-
'BgLZDf9Zzxj2zxi',
|
|
1358
|
-
'C2L6zq',
|
|
1359
|
-
'DhjPBq',
|
|
1360
|
-
'y29UDgvUDa',
|
|
1361
|
-
'z2v0rNvSBfLLyxi',
|
|
1362
|
-
'yxr0ywnOBwvUDeLK',
|
|
1363
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1364
|
-
'y3jLyxrLx3rHC2TZ',
|
|
408
|
+
'ihrPBwu9',
|
|
409
|
+
'CgfYC2u',
|
|
410
|
+
'DMLLD19MAwXL',
|
|
411
|
+
'CMvWBgfJzq',
|
|
412
|
+
'igzHAwXLzdOG',
|
|
413
|
+
'v29YA2vYia',
|
|
414
|
+
'DgfZA0LK',
|
|
415
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1365
416
|
'DgfYz2v0zwq',
|
|
417
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
418
|
+
'Dg9tDhjPBMC',
|
|
419
|
+
'zgvSzxrL',
|
|
420
|
+
'ig1ZzZ0',
|
|
421
|
+
'Aw5FChjVz3jLC3m',
|
|
422
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
423
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1366
424
|
'BNvTyMvY',
|
|
1367
|
-
'
|
|
1368
|
-
'
|
|
1369
|
-
'
|
|
425
|
+
'CMvZDwX0CW',
|
|
426
|
+
'mte3otG5mtLtEMzgugq',
|
|
427
|
+
'ywrK',
|
|
1370
428
|
'C3vIDgfZA051BwjLCG',
|
|
1371
|
-
'
|
|
1372
|
-
'
|
|
1373
|
-
'
|
|
1374
|
-
'
|
|
1375
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1376
|
-
'Dw5RBM93BG',
|
|
1377
|
-
'CMvJB3jK',
|
|
1378
|
-
'Dg9mB3DLCKnHC2u',
|
|
1379
|
-
'lsba',
|
|
1380
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1381
|
-
'ChjVDg9JB2W',
|
|
1382
|
-
'DgHYzwfKu2HVCNrjza',
|
|
1383
|
-
'C2LNBMfS',
|
|
1384
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
429
|
+
'A2LUza',
|
|
430
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
431
|
+
'z2v0tw9UDgG',
|
|
432
|
+
'Bg93',
|
|
1385
433
|
'BwvZC2fNzq',
|
|
1386
|
-
'
|
|
1387
|
-
'
|
|
1388
|
-
'
|
|
1389
|
-
'
|
|
1390
|
-
'
|
|
1391
|
-
'zM9Yy2vszwzYzxnO',
|
|
1392
|
-
'Dg9KBW',
|
|
1393
|
-
'C2f2zq',
|
|
1394
|
-
'ywjVCNq',
|
|
1395
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
1396
|
-
'Dgv4Da',
|
|
1397
|
-
'zMLSDgvY',
|
|
1398
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
434
|
+
'ChvZAa',
|
|
435
|
+
'zgvZy3jPChrPB24',
|
|
436
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
437
|
+
'C3rYAw5NAwz5',
|
|
438
|
+
'y29UDgvUDa',
|
|
1399
439
|
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1400
|
-
'
|
|
1401
|
-
'
|
|
1402
|
-
'
|
|
1403
|
-
'AgfZtw9Yzq',
|
|
1404
|
-
'vgfZAYa',
|
|
1405
|
-
'CxvLDwvK',
|
|
1406
|
-
'Aw5FCMv2Awv3',
|
|
1407
|
-
'mtqWnJnHq2fcq3a',
|
|
1408
|
-
'zgf0yq',
|
|
1409
|
-
'BwfW',
|
|
1410
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1411
|
-
'igzHAwXLzdOG',
|
|
1412
|
-
'z2v0',
|
|
1413
|
-
'Aw1Hz2uVz2LM',
|
|
1414
|
-
'ywXS',
|
|
1415
|
-
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
440
|
+
'mteYtK9krvjn',
|
|
441
|
+
'DgfZAW',
|
|
442
|
+
'zw51Bq',
|
|
1416
443
|
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1417
|
-
'
|
|
1418
|
-
'
|
|
1419
|
-
'
|
|
1420
|
-
'
|
|
1421
|
-
'
|
|
1422
|
-
'
|
|
1423
|
-
'
|
|
1424
|
-
'
|
|
1425
|
-
'
|
|
1426
|
-
'
|
|
1427
|
-
'
|
|
1428
|
-
'
|
|
1429
|
-
'
|
|
1430
|
-
'
|
|
1431
|
-
'
|
|
1432
|
-
'
|
|
1433
|
-
'
|
|
1434
|
-
'
|
|
1435
|
-
'
|
|
1436
|
-
'
|
|
1437
|
-
'
|
|
1438
|
-
'
|
|
1439
|
-
'
|
|
1440
|
-
'
|
|
1441
|
-
'
|
|
1442
|
-
'
|
|
1443
|
-
'
|
|
1444
|
-
'
|
|
1445
|
-
'igf0DgfJAg1LBNq',
|
|
1446
|
-
'D3m6',
|
|
1447
|
-
'C3rHCNrZv2L0Aa',
|
|
1448
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
444
|
+
'y29UDgvUDejHC2u2na',
|
|
445
|
+
'CMvJB3jK',
|
|
446
|
+
'zgfLBw9UqxbPs2v5',
|
|
447
|
+
'yxr0ywnOBwvUDhm',
|
|
448
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
449
|
+
'BwvZC2fNzv9Pzhm',
|
|
450
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
451
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
452
|
+
'C3bSAxq',
|
|
453
|
+
'yxjYyxK',
|
|
454
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
455
|
+
'B2jQzwn0',
|
|
456
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
457
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
458
|
+
'ywDLBNrjza',
|
|
459
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
460
|
+
'D29YA2vYCW',
|
|
461
|
+
'Dg9mB3DLCKnHC2u',
|
|
462
|
+
'yxjNDG',
|
|
463
|
+
'AgfZ',
|
|
464
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
465
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
466
|
+
'l2zPBMLZAa',
|
|
467
|
+
'AhjLzG',
|
|
468
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
469
|
+
'z2v0sg91CNm',
|
|
470
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
471
|
+
'y2XHAw1FDgfZA3m',
|
|
1449
472
|
'iYmJieH1BwfUCW',
|
|
1450
|
-
'
|
|
1451
|
-
'
|
|
1452
|
-
'
|
|
1453
|
-
'
|
|
1454
|
-
'
|
|
1455
|
-
'
|
|
1456
|
-
'
|
|
1457
|
-
'AhvTyw5Z',
|
|
1458
|
-
'AhvTyw4',
|
|
1459
|
-
'yxjYyxLcDwzMzxi',
|
|
473
|
+
'Aw1Hz2uVCg5N',
|
|
474
|
+
'khvUA25VD24P',
|
|
475
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
476
|
+
'C29Tzq',
|
|
477
|
+
'z2v0twLUDxrLCW',
|
|
478
|
+
'CMvXDwvZDfvYBa',
|
|
479
|
+
'CgfYDgLJAxbHBNq',
|
|
1460
480
|
'DgfYz2v0',
|
|
1461
|
-
'
|
|
481
|
+
'BwvZC2fNzuLK',
|
|
482
|
+
'DMLZAwjPBgL0Eq',
|
|
483
|
+
'lMjPBG',
|
|
484
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
485
|
+
'mZy5nJaZmefgBxfcsq',
|
|
486
|
+
'D29YA19RzxK',
|
|
487
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
488
|
+
'DgfZAY0',
|
|
489
|
+
'zg0T',
|
|
490
|
+
'y2XPzw50',
|
|
491
|
+
'z2v0vgLTzq',
|
|
492
|
+
'y2HHBM5LBa',
|
|
493
|
+
'ue9tva',
|
|
494
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
495
|
+
'BgvUz3rO',
|
|
496
|
+
'ywDLBNrZ',
|
|
497
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
498
|
+
'zxH0BMfTzq',
|
|
499
|
+
'y29UDgvUDfr5Cgu',
|
|
500
|
+
'DgHYzwfKswq'
|
|
1462
501
|
];
|
|
1463
|
-
|
|
1464
|
-
return
|
|
502
|
+
_0x2e92 = function () {
|
|
503
|
+
return _0x2fb423;
|
|
504
|
+
};
|
|
505
|
+
return _0x2e92();
|
|
506
|
+
}
|
|
507
|
+
import {
|
|
508
|
+
createHash,
|
|
509
|
+
randomUUID
|
|
510
|
+
} from 'node:crypto';
|
|
511
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x28aee3(0x201);
|
|
512
|
+
function ensureSegment(_0x2861f1) {
|
|
513
|
+
const _0x23d0d5 = {
|
|
514
|
+
_0x5d236e: 0x1f6,
|
|
515
|
+
_0x519b17: 0x2b9
|
|
516
|
+
}, _0x25f3ee = _0x28aee3, _0x499e94 = _0x2861f1[_0x25f3ee(_0x23d0d5._0x5d236e)]();
|
|
517
|
+
if (!_0x499e94 || _0x499e94[_0x25f3ee(_0x23d0d5._0x519b17)](':'))
|
|
518
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
519
|
+
return _0x499e94;
|
|
520
|
+
}
|
|
521
|
+
function parseThreadParts(_0x2621af) {
|
|
522
|
+
const _0x2115d0 = { _0x4ae61a: 0x19b }, _0x2ec236 = _0x28aee3, _0x1317e7 = _0x2621af[_0x2ec236(0x170)](':');
|
|
523
|
+
if (_0x1317e7[_0x2ec236(0x19b)] < 0x1 || _0x1317e7[_0x2ec236(_0x2115d0._0x4ae61a)] > 0x2)
|
|
524
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
525
|
+
return {
|
|
526
|
+
'channelName': ensureSegment(_0x1317e7[0x0] ?? ''),
|
|
527
|
+
'threadShortId': _0x1317e7[0x1] ? ensureSegment(_0x1317e7[0x1]) : null
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
function parseTarget(_0x3e4a37) {
|
|
531
|
+
const _0x585aac = {
|
|
532
|
+
_0x51f732: 0x1f6,
|
|
533
|
+
_0x10b930: 0x1fb,
|
|
534
|
+
_0x4e3b79: 0x21e,
|
|
535
|
+
_0x26f7cd: 0x20f,
|
|
536
|
+
_0x53e037: 0x239,
|
|
537
|
+
_0x449779: 0x240,
|
|
538
|
+
_0x8e27cb: 0x1fb,
|
|
539
|
+
_0x351962: 0x195
|
|
540
|
+
}, _0x5d13bc = _0x28aee3, _0x17533a = _0x3e4a37[_0x5d13bc(_0x585aac._0x51f732)]();
|
|
541
|
+
if (!_0x17533a)
|
|
542
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
543
|
+
if (_0x17533a[_0x5d13bc(0x20f)]('#')) {
|
|
544
|
+
const _0x499d87 = parseThreadParts(_0x17533a[_0x5d13bc(0x240)](0x1)), _0x29ae25 = '#' + _0x499d87[_0x5d13bc(0x1fb)];
|
|
545
|
+
if (!_0x499d87['threadShortId'])
|
|
546
|
+
return {
|
|
547
|
+
'channelName': _0x499d87[_0x5d13bc(_0x585aac._0x10b930)],
|
|
548
|
+
'channelTarget': _0x29ae25,
|
|
549
|
+
'kind': 'channel',
|
|
550
|
+
'target': _0x29ae25
|
|
551
|
+
};
|
|
552
|
+
return {
|
|
553
|
+
'channelName': _0x499d87[_0x5d13bc(0x1fb)],
|
|
554
|
+
'channelTarget': _0x29ae25,
|
|
555
|
+
'kind': 'thread',
|
|
556
|
+
'target': _0x29ae25 + ':' + _0x499d87[_0x5d13bc(_0x585aac._0x4e3b79)],
|
|
557
|
+
'threadShortId': _0x499d87[_0x5d13bc(_0x585aac._0x4e3b79)]
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
if (_0x17533a[_0x5d13bc(_0x585aac._0x26f7cd)](_0x5d13bc(_0x585aac._0x53e037))) {
|
|
561
|
+
const _0x2144cd = parseThreadParts(_0x17533a[_0x5d13bc(_0x585aac._0x449779)](0x3));
|
|
562
|
+
if (!_0x2144cd[_0x5d13bc(_0x585aac._0x8e27cb)]['startsWith'](_0x5d13bc(_0x585aac._0x351962)))
|
|
563
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
564
|
+
const _0x697faf = _0x5d13bc(_0x585aac._0x53e037) + _0x2144cd['channelName'];
|
|
565
|
+
if (!_0x2144cd[_0x5d13bc(_0x585aac._0x4e3b79)])
|
|
566
|
+
return {
|
|
567
|
+
'channelName': _0x2144cd[_0x5d13bc(0x1fb)],
|
|
568
|
+
'channelTarget': _0x697faf,
|
|
569
|
+
'kind': _0x5d13bc(0x198),
|
|
570
|
+
'target': _0x697faf
|
|
571
|
+
};
|
|
572
|
+
return {
|
|
573
|
+
'channelName': _0x2144cd[_0x5d13bc(0x1fb)],
|
|
574
|
+
'channelTarget': _0x697faf,
|
|
575
|
+
'kind': 'thread',
|
|
576
|
+
'target': _0x697faf + ':' + _0x2144cd['threadShortId'],
|
|
577
|
+
'threadShortId': _0x2144cd[_0x5d13bc(0x21e)]
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
581
|
+
}
|
|
582
|
+
function asErrorMessage(_0x3e5918, _0x194d21) {
|
|
583
|
+
const _0x1aaf04 = _0x28aee3;
|
|
584
|
+
if (typeof _0x3e5918 === _0x1aaf04(0x20c) && _0x3e5918[_0x1aaf04(0x1f6)]())
|
|
585
|
+
return _0x3e5918;
|
|
586
|
+
return _0x194d21;
|
|
587
|
+
}
|
|
588
|
+
function asRecord(_0x13108c) {
|
|
589
|
+
return typeof _0x13108c === 'object' && _0x13108c !== null ? _0x13108c : {};
|
|
590
|
+
}
|
|
591
|
+
function stableStringify(_0x25d8e2) {
|
|
592
|
+
const _0xd5146d = {
|
|
593
|
+
_0x4661c2: 0x173,
|
|
594
|
+
_0x17077b: 0x272
|
|
595
|
+
}, _0x3b1e77 = _0x28aee3;
|
|
596
|
+
if (_0x25d8e2 === null || typeof _0x25d8e2 !== _0x3b1e77(_0xd5146d._0x4661c2))
|
|
597
|
+
return JSON['stringify'](_0x25d8e2);
|
|
598
|
+
if (Array[_0x3b1e77(0x1a3)](_0x25d8e2))
|
|
599
|
+
return '[' + _0x25d8e2[_0x3b1e77(0x272)](_0x510c3e => stableStringify(_0x510c3e))[_0x3b1e77(0x1dd)](',') + ']';
|
|
600
|
+
const _0x4781c3 = Object['entries'](_0x25d8e2)[_0x3b1e77(0x23e)](([, _0x507674]) => _0x507674 !== void 0x0)['sort'](([_0x2bdc30], [_0x57b0d1]) => _0x2bdc30[_0x3b1e77(0x1c7)](_0x57b0d1))[_0x3b1e77(_0xd5146d._0x17077b)](([_0x428ba9, _0x34345d]) => JSON[_0x3b1e77(0x161)](_0x428ba9) + ':' + stableStringify(_0x34345d));
|
|
601
|
+
return '{' + _0x4781c3[_0x3b1e77(0x1dd)](',') + '}';
|
|
602
|
+
}
|
|
603
|
+
function createHeaders(_0x47378d) {
|
|
604
|
+
const _0x2561db = { _0x41e9d7: 0x287 }, _0x3917c1 = _0x28aee3;
|
|
605
|
+
return {
|
|
606
|
+
'Content-Type': _0x3917c1(_0x2561db._0x41e9d7),
|
|
607
|
+
'x-daemon-api-key': _0x47378d
|
|
608
|
+
};
|
|
609
|
+
}
|
|
610
|
+
function toHttpBaseUrl(_0x5e6861) {
|
|
611
|
+
const _0x2c2568 = {
|
|
612
|
+
_0x1f5c11: 0x234,
|
|
613
|
+
_0x35edf4: 0x1d0,
|
|
614
|
+
_0x12a139: 0x2b7
|
|
615
|
+
}, _0x1e5caa = _0x28aee3, _0xe76f12 = new URL(_0x5e6861);
|
|
616
|
+
if (_0xe76f12['protocol'] === _0x1e5caa(_0x2c2568._0x1f5c11))
|
|
617
|
+
_0xe76f12[_0x1e5caa(_0x2c2568._0x35edf4)] = _0x1e5caa(_0x2c2568._0x12a139);
|
|
618
|
+
else
|
|
619
|
+
_0xe76f12['protocol'] === 'wss:' && (_0xe76f12['protocol'] = _0x1e5caa(0x1ea));
|
|
620
|
+
return _0xe76f12['toString']()['replace'](/\/$/, '');
|
|
621
|
+
}
|
|
622
|
+
function isMentionBoundary(_0x21dc05) {
|
|
623
|
+
const _0x58cc2a = _0x28aee3;
|
|
624
|
+
return !_0x21dc05 || /\s|[([{'",。!?、:;]/[_0x58cc2a(0x1c4)](_0x21dc05);
|
|
625
|
+
}
|
|
626
|
+
function isMentionTerminal(_0x114fdc) {
|
|
627
|
+
return !_0x114fdc || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x114fdc);
|
|
628
|
+
}
|
|
629
|
+
function buildMatchableEntries(_0x58817a) {
|
|
630
|
+
const _0xa338d9 = {
|
|
631
|
+
_0x3450b7: 0x268,
|
|
632
|
+
_0x94bfbe: 0x2e9
|
|
633
|
+
}, _0x326f42 = _0x28aee3, _0x48db61 = [];
|
|
634
|
+
for (const _0x546dc6 of [
|
|
635
|
+
..._0x58817a[_0x326f42(0x19c)],
|
|
636
|
+
..._0x58817a[_0x326f42(_0xa338d9._0x3450b7)]
|
|
637
|
+
]) {
|
|
638
|
+
_0x48db61[_0x326f42(_0xa338d9._0x94bfbe)]({
|
|
639
|
+
'matchName': _0x546dc6['name'],
|
|
640
|
+
'matchNameLower': _0x546dc6['name'][_0x326f42(0x277)](),
|
|
641
|
+
'participantId': _0x546dc6['id']
|
|
642
|
+
}), _0x546dc6['id'] !== _0x546dc6[_0x326f42(0x1e5)] && _0x48db61[_0x326f42(0x2e9)]({
|
|
643
|
+
'matchName': _0x546dc6['id'],
|
|
644
|
+
'matchNameLower': _0x546dc6['id']['toLocaleLowerCase'](),
|
|
645
|
+
'participantId': _0x546dc6['id']
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
return _0x48db61;
|
|
649
|
+
}
|
|
650
|
+
function extractMentionedParticipantIds(_0x40c32c, _0x12537f) {
|
|
651
|
+
const _0x1e529 = {
|
|
652
|
+
_0x399f6b: 0x19b,
|
|
653
|
+
_0x4a5bdf: 0x240,
|
|
654
|
+
_0xc0f08f: 0x215,
|
|
655
|
+
_0x4d373c: 0x2e9,
|
|
656
|
+
_0x24b4cb: 0x204
|
|
657
|
+
}, _0x4d1ded = {
|
|
658
|
+
_0x96c884: 0x20f,
|
|
659
|
+
_0x52cd6d: 0x190,
|
|
660
|
+
_0x218b9e: 0x19b
|
|
661
|
+
}, _0x17d671 = _0x28aee3, _0xc3158e = buildMatchableEntries(_0x12537f)[_0x17d671(0x228)]((_0x22a904, _0x23532f) => _0x23532f[_0x17d671(0x204)]['length'] - _0x22a904[_0x17d671(0x204)][_0x17d671(0x19b)]), _0x49304c = [], _0x568277 = new Set();
|
|
662
|
+
for (let _0x236e7a = 0x0; _0x236e7a < _0x40c32c[_0x17d671(_0x1e529._0x399f6b)]; _0x236e7a += 0x1) {
|
|
663
|
+
if (_0x40c32c[_0x236e7a] !== '@' || !isMentionBoundary(_0x40c32c[_0x236e7a - 0x1]))
|
|
664
|
+
continue;
|
|
665
|
+
const _0x46db40 = _0x40c32c[_0x17d671(_0x1e529._0x4a5bdf)](_0x236e7a + 0x1), _0x260d11 = _0x46db40['toLocaleLowerCase'](), _0x228f3d = _0xc3158e['find'](_0x941ddc => {
|
|
666
|
+
const _0x352699 = _0x17d671;
|
|
667
|
+
if (!_0x260d11[_0x352699(_0x4d1ded._0x96c884)](_0x941ddc[_0x352699(_0x4d1ded._0x52cd6d)]))
|
|
668
|
+
return ![];
|
|
669
|
+
return isMentionTerminal(_0x46db40[_0x941ddc[_0x352699(0x204)][_0x352699(_0x4d1ded._0x218b9e)]]);
|
|
670
|
+
});
|
|
671
|
+
if (!_0x228f3d || _0x568277[_0x17d671(0x17b)](_0x228f3d[_0x17d671(_0x1e529._0xc0f08f)]))
|
|
672
|
+
continue;
|
|
673
|
+
_0x568277['add'](_0x228f3d['participantId']), _0x49304c[_0x17d671(_0x1e529._0x4d373c)](_0x228f3d['participantId']), _0x236e7a += _0x228f3d[_0x17d671(_0x1e529._0x24b4cb)]['length'];
|
|
674
|
+
}
|
|
675
|
+
return _0x49304c;
|
|
676
|
+
}
|
|
677
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
678
|
+
function anySignal(..._0xfad2b0) {
|
|
679
|
+
const _0x36f0a2 = {
|
|
680
|
+
_0x4e5dd3: 0x295,
|
|
681
|
+
_0x7d9b13: 0x1b6,
|
|
682
|
+
_0x3083d4: 0x295
|
|
683
|
+
}, _0x303577 = _0x28aee3, _0x22f076 = new AbortController();
|
|
684
|
+
for (const _0x5205a1 of _0xfad2b0) {
|
|
685
|
+
if (_0x5205a1['aborted'])
|
|
686
|
+
return _0x22f076[_0x303577(_0x36f0a2._0x4e5dd3)](_0x5205a1[_0x303577(0x1b3)]), _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
687
|
+
_0x5205a1['addEventListener'](_0x303577(_0x36f0a2._0x3083d4), () => _0x22f076[_0x303577(0x295)](_0x5205a1[_0x303577(0x1b3)]), {
|
|
688
|
+
'once': !![],
|
|
689
|
+
'signal': _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)]
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
return _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
693
|
+
}
|
|
694
|
+
function createInternalAgentClient(_0x3bb6b7) {
|
|
695
|
+
const _0x14054b = {
|
|
696
|
+
_0x2662d4: 0x23f,
|
|
697
|
+
_0x44bb1e: 0x2df,
|
|
698
|
+
_0x15217e: 0x172,
|
|
699
|
+
_0x17ffea: 0x1f6,
|
|
700
|
+
_0x28fdc5: 0x16a,
|
|
701
|
+
_0x3194ac: 0x294
|
|
702
|
+
}, _0x1c0289 = {
|
|
703
|
+
_0x48ce1a: 0x19d,
|
|
704
|
+
_0x451525: 0x176,
|
|
705
|
+
_0xe426c5: 0x288,
|
|
706
|
+
_0x2f4597: 0x2af,
|
|
707
|
+
_0x2cbe33: 0x202,
|
|
708
|
+
_0x266778: 0x225,
|
|
709
|
+
_0x22a6ca: 0x19b,
|
|
710
|
+
_0x2e059d: 0x19b,
|
|
711
|
+
_0x5a9b60: 0x23e,
|
|
712
|
+
_0x15b654: 0x1d3,
|
|
713
|
+
_0x22b91a: 0x188,
|
|
714
|
+
_0x5b04b3: 0x20c,
|
|
715
|
+
_0x46e7df: 0x232,
|
|
716
|
+
_0xf1d99a: 0x1a0,
|
|
717
|
+
_0x2f7f46: 0x20c,
|
|
718
|
+
_0x271bb9: 0x269,
|
|
719
|
+
_0x3194a2: 0x20c,
|
|
720
|
+
_0x5aaad6: 0x29e,
|
|
721
|
+
_0x5bedd8: 0x281,
|
|
722
|
+
_0x6ba06a: 0x29e,
|
|
723
|
+
_0x4078ae: 0x1d8,
|
|
724
|
+
_0x383e10: 0x29e,
|
|
725
|
+
_0x444bac: 0x269,
|
|
726
|
+
_0xdc1113: 0x269,
|
|
727
|
+
_0x586d41: 0x2e9,
|
|
728
|
+
_0x5c04f3: 0x25e,
|
|
729
|
+
_0x44eac3: 0x239,
|
|
730
|
+
_0x12954c: 0x272,
|
|
731
|
+
_0x744452: 0x286,
|
|
732
|
+
_0x5ee732: 0x203,
|
|
733
|
+
_0x1710bf: 0x2d7,
|
|
734
|
+
_0x544c3: 0x162,
|
|
735
|
+
_0x540203: 0x2e4,
|
|
736
|
+
_0x213e9a: 0x1c2,
|
|
737
|
+
_0x39bbf3: 0x218,
|
|
738
|
+
_0x595d7c: 0x21a
|
|
739
|
+
}, _0x1d69b1 = {
|
|
740
|
+
_0x36ef6d: 0x2a7,
|
|
741
|
+
_0x31e886: 0x232,
|
|
742
|
+
_0x1699b6: 0x20c
|
|
743
|
+
}, _0x63a30c = {
|
|
744
|
+
_0x5db128: 0x296,
|
|
745
|
+
_0x3deb5d: 0x21b
|
|
746
|
+
}, _0x6a3ff5 = {
|
|
747
|
+
_0x254fd0: 0x1ec,
|
|
748
|
+
_0x5f3711: 0x288,
|
|
749
|
+
_0x6dfcc6: 0x1b6,
|
|
750
|
+
_0x209772: 0x19f,
|
|
751
|
+
_0x1460ec: 0x279,
|
|
752
|
+
_0x100ac6: 0x286,
|
|
753
|
+
_0x6b5069: 0x231,
|
|
754
|
+
_0x573126: 0x1a5
|
|
755
|
+
}, _0x2c5794 = {
|
|
756
|
+
_0xa85bf2: 0x176,
|
|
757
|
+
_0x15b995: 0x20e,
|
|
758
|
+
_0x23a462: 0x161,
|
|
759
|
+
_0xaf3664: 0x19f,
|
|
760
|
+
_0xf5083b: 0x2a0,
|
|
761
|
+
_0xe09642: 0x264,
|
|
762
|
+
_0x7f2658: 0x24b
|
|
763
|
+
}, _0x200b23 = { _0x31b56f: 0x1d7 }, _0x9a1578 = {
|
|
764
|
+
_0x3c041f: 0x161,
|
|
765
|
+
_0x293887: 0x282,
|
|
766
|
+
_0xbc75fe: 0x199
|
|
767
|
+
}, _0x50dace = { _0x34f27e: 0x19d }, _0x2916ed = {
|
|
768
|
+
_0xbe4c7d: 0x176,
|
|
769
|
+
_0x21540b: 0x161
|
|
770
|
+
}, _0xf46048 = {
|
|
771
|
+
_0x5f45ca: 0x273,
|
|
772
|
+
_0x520316: 0x1b0,
|
|
773
|
+
_0x614c6: 0x2a2
|
|
774
|
+
}, _0x1b448d = {
|
|
775
|
+
_0x1d6b78: 0x1b7,
|
|
776
|
+
_0x4a4bcf: 0x17e,
|
|
777
|
+
_0x143645: 0x26d,
|
|
778
|
+
_0x182c4d: 0x2c6,
|
|
779
|
+
_0x49211a: 0x1b0,
|
|
780
|
+
_0x4d0d00: 0x264
|
|
781
|
+
}, _0x1939d0 = { _0xb11cb8: 0x264 }, _0x1a75a5 = {
|
|
782
|
+
_0x456695: 0x252,
|
|
783
|
+
_0x335977: 0x161
|
|
784
|
+
}, _0x4859a0 = {
|
|
785
|
+
_0x4cb8f4: 0x18c,
|
|
786
|
+
_0x48b217: 0x2b9,
|
|
787
|
+
_0x3322d0: 0x176,
|
|
788
|
+
_0x8af1c2: 0x161,
|
|
789
|
+
_0x378aef: 0x1ef,
|
|
790
|
+
_0x2782d3: 0x1a0,
|
|
791
|
+
_0x44582d: 0x18e,
|
|
792
|
+
_0x3bb155: 0x199
|
|
793
|
+
}, _0x5178d6 = {
|
|
794
|
+
_0x1fb818: 0x1ab,
|
|
795
|
+
_0x3b41f1: 0x273,
|
|
796
|
+
_0x3153ff: 0x273,
|
|
797
|
+
_0x336b5f: 0x232,
|
|
798
|
+
_0x1c9450: 0x21b,
|
|
799
|
+
_0x338fb7: 0x19d,
|
|
800
|
+
_0x2ca19f: 0x2d9,
|
|
801
|
+
_0x4a339f: 0x272,
|
|
802
|
+
_0x18db34: 0x236,
|
|
803
|
+
_0x4a8030: 0x2af,
|
|
804
|
+
_0x5169dc: 0x1b4
|
|
805
|
+
}, _0x56af25 = { _0x41e4c8: 0x215 }, _0x1c6706 = {
|
|
806
|
+
_0x32488c: 0x29e,
|
|
807
|
+
_0x495178: 0x2df,
|
|
808
|
+
_0x581a5c: 0x281,
|
|
809
|
+
_0x28bf38: 0x21e,
|
|
810
|
+
_0x3a3a00: 0x269,
|
|
811
|
+
_0x5172cd: 0x20f
|
|
812
|
+
}, _0x52be5b = {
|
|
813
|
+
_0x4024e4: 0x1ac,
|
|
814
|
+
_0x3c6d2c: 0x236,
|
|
815
|
+
_0x3cc838: 0x21e,
|
|
816
|
+
_0x65f2f6: 0x269,
|
|
817
|
+
_0x4733cd: 0x21e,
|
|
818
|
+
_0x534f20: 0x1a0,
|
|
819
|
+
_0x5009ab: 0x21e
|
|
820
|
+
}, _0x55c115 = {
|
|
821
|
+
_0x565a75: 0x236,
|
|
822
|
+
_0x1a8110: 0x269,
|
|
823
|
+
_0x559375: 0x1a0
|
|
824
|
+
}, _0x126249 = { _0xca8dd0: 0x1fd }, _0x13a869 = { _0x1d43ad: 0x289 }, _0xd93e9c = {
|
|
825
|
+
_0x1b287e: 0x176,
|
|
826
|
+
_0x40a931: 0x214,
|
|
827
|
+
_0x17b9c7: 0x272,
|
|
828
|
+
_0x4abaa5: 0x23e,
|
|
829
|
+
_0x1675f5: 0x22c,
|
|
830
|
+
_0x321d3f: 0x264
|
|
831
|
+
}, _0x3d1f2b = {
|
|
832
|
+
_0x22c476: 0x2bb,
|
|
833
|
+
_0x14a5f6: 0x199,
|
|
834
|
+
_0x436be6: 0x264,
|
|
835
|
+
_0x354239: 0x232,
|
|
836
|
+
_0xeafba7: 0x236,
|
|
837
|
+
_0x5de5d0: 0x29e
|
|
838
|
+
}, _0x2c3c50 = {
|
|
839
|
+
_0x298837: 0x24a,
|
|
840
|
+
_0x2c41aa: 0x1e3
|
|
841
|
+
}, _0xaed242 = {
|
|
842
|
+
_0x1acb1f: 0x1b6,
|
|
843
|
+
_0x25fa2a: 0x26d,
|
|
844
|
+
_0x2e42c5: 0x211
|
|
845
|
+
}, _0x22c7d5 = { _0x49941b: 0x26d }, _0x50cd80 = {
|
|
846
|
+
_0x3b302f: 0x19a,
|
|
847
|
+
_0x1a13de: 0x20c,
|
|
848
|
+
_0xb92ae9: 0x1dc,
|
|
849
|
+
_0x49173a: 0x1ce,
|
|
850
|
+
_0x11b043: 0x22f,
|
|
851
|
+
_0xd6aa8d: 0x1f1
|
|
852
|
+
}, _0x10b8bb = {
|
|
853
|
+
_0x5e4a3e: 0x207,
|
|
854
|
+
_0x47c1c4: 0x1a5,
|
|
855
|
+
_0x118390: 0x1d5,
|
|
856
|
+
_0xe38d43: 0x2d0
|
|
857
|
+
}, _0xd59838 = {
|
|
858
|
+
_0x1e28eb: 0x279,
|
|
859
|
+
_0x50d234: 0x286,
|
|
860
|
+
_0x4c503e: 0x1a9,
|
|
861
|
+
_0x9e1e64: 0x1f6,
|
|
862
|
+
_0x5431f8: 0x220,
|
|
863
|
+
_0x2a88b4: 0x18a,
|
|
864
|
+
_0x7be67d: 0x283,
|
|
865
|
+
_0x49e564: 0x23c
|
|
866
|
+
}, _0x48f325 = _0x28aee3, _0x230d44 = _0x3bb6b7[_0x48f325(0x2c3)] ?? fetch, _0x48c043 = _0x3bb6b7[_0x48f325(_0x14054b._0x2662d4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x439287 = typeof _0x3bb6b7['initialLastSeenSeq'] === _0x48f325(_0x14054b._0x44bb1e) && _0x3bb6b7['initialLastSeenSeq'] > 0x0 ? _0x3bb6b7[_0x48f325(0x241)] : 0x0, _0x18f974 = _0x3bb6b7[_0x48f325(0x248)]?.['trim']() || void 0x0, _0x35c865 = _0x3bb6b7['sessionId']?.['trim']() || void 0x0, _0x207f3c = _0x3bb6b7['workerModeEnabled'] === !![], _0x5e99c6 = _0x3bb6b7[_0x48f325(_0x14054b._0x15217e)]?.[_0x48f325(_0x14054b._0x17ffea)]() || void 0x0, _0x2bd29b = _0x3bb6b7['workerThreadTarget']?.[_0x48f325(0x1f6)]() || void 0x0, _0xc87eec = createHeaders(_0x3bb6b7[_0x48f325(_0x14054b._0x28fdc5)]), _0x4cea4c = toHttpBaseUrl(_0x3bb6b7[_0x48f325(_0x14054b._0x3194ac)]);
|
|
867
|
+
let _0xb4cf24 = null;
|
|
868
|
+
const _0xe7adc6 = new Map();
|
|
869
|
+
let _0x15451c = _0x439287, _0x35c778 = _0x439287;
|
|
870
|
+
function _0x3508ab(_0x2b7bf9) {
|
|
871
|
+
const _0x5d41c9 = _0x48f325, _0x3ef710 = _0x2b7bf9[_0x5d41c9(0x23c)][_0x5d41c9(_0xd59838._0x1e28eb)][_0x5d41c9(_0xd59838._0x50d234)](_0x5d41c9(0x231)) ?? _0x5d41c9(_0xd59838._0x4c503e), _0x2fe82c = _0x2b7bf9[_0x5d41c9(0x1fc)][_0x5d41c9(_0xd59838._0x9e1e64)]()[_0x5d41c9(0x2d2)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5d41c9(0x27c);
|
|
872
|
+
return _0x5d41c9(_0xd59838._0x5431f8) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x2a88b4)] + _0x5d41c9(_0xd59838._0x7be67d) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x49e564)][_0x5d41c9(0x1b0)] + ',\x20content-type=' + _0x3ef710 + ',\x20preview=' + _0x2fe82c + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
873
|
+
}
|
|
874
|
+
async function _0x1da27c(_0x43f4fb, _0x1463bd) {
|
|
875
|
+
const _0x51c0c1 = _0x48f325, _0x208eee = Buffer[_0x51c0c1(_0x10b8bb._0x5e4a3e)](await _0x1463bd[_0x51c0c1(_0x10b8bb._0x47c1c4)]())['toString'](_0x51c0c1(_0x10b8bb._0x118390));
|
|
876
|
+
if (!_0x208eee[_0x51c0c1(0x1f6)]())
|
|
877
|
+
return {};
|
|
878
|
+
try {
|
|
879
|
+
return JSON[_0x51c0c1(_0x10b8bb._0xe38d43)](_0x208eee);
|
|
880
|
+
} catch {
|
|
881
|
+
throw new Error(_0x3508ab({
|
|
882
|
+
'bodyText': _0x208eee,
|
|
883
|
+
'requestUrl': _0x43f4fb,
|
|
884
|
+
'response': _0x1463bd
|
|
885
|
+
}));
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function _0x102300(_0x2fe772, _0x54ca7c) {
|
|
889
|
+
const _0x297c83 = _0x48f325, _0xb7cbda = typeof _0x54ca7c[_0x297c83(_0x50cd80._0x3b302f)] === _0x297c83(_0x50cd80._0x1a13de) ? _0x54ca7c[_0x297c83(0x19a)]['trim']() : '';
|
|
890
|
+
if (_0xb7cbda)
|
|
891
|
+
return _0xb7cbda;
|
|
892
|
+
const _0xe8b2d3 = Date[_0x297c83(_0x50cd80._0xb92ae9)]();
|
|
893
|
+
for (const [_0x281b1a, _0x4ddae9] of _0xe7adc6) {
|
|
894
|
+
_0x4ddae9[_0x297c83(_0x50cd80._0x49173a)] <= _0xe8b2d3 && _0xe7adc6[_0x297c83(0x2da)](_0x281b1a);
|
|
895
|
+
}
|
|
896
|
+
const _0x46b5df = {
|
|
897
|
+
..._0x54ca7c,
|
|
898
|
+
'idempotency_key': void 0x0
|
|
899
|
+
}, _0x43523a = createHash(_0x297c83(0x233))[_0x297c83(_0x50cd80._0x11b043)](_0x2fe772 + ':' + stableStringify(_0x46b5df))['digest']('hex'), _0x33b741 = _0x2fe772 + ':' + _0x43523a, _0x5466d4 = _0xe7adc6[_0x297c83(0x286)](_0x33b741);
|
|
900
|
+
if (_0x5466d4)
|
|
901
|
+
return _0x5466d4['value'];
|
|
902
|
+
const _0x39fdb7 = _0x297c83(_0x50cd80._0xd6aa8d) + _0x2fe772 + ':' + randomUUID();
|
|
903
|
+
return _0xe7adc6[_0x297c83(0x273)](_0x33b741, {
|
|
904
|
+
'expiresAt': _0xe8b2d3 + 0x5 * 0x3c * 0x3e8,
|
|
905
|
+
'value': _0x39fdb7
|
|
906
|
+
}), _0x39fdb7;
|
|
907
|
+
}
|
|
908
|
+
async function _0x2827a2(_0x4902d7, _0x297d6d) {
|
|
909
|
+
const _0x29f21 = _0x48f325, _0x584b12 = new AbortController(), _0x29b0f7 = setTimeout(() => _0x584b12[_0x29f21(0x295)](), _0x48c043), _0x5569cc = _0x297d6d?.[_0x29f21(0x1b6)] ? anySignal(_0x297d6d['signal'], _0x584b12[_0x29f21(0x1b6)]) : _0x584b12[_0x29f21(0x1b6)], _0x3fc3eb = '' + _0x4cea4c + _0x4902d7;
|
|
910
|
+
try {
|
|
911
|
+
const _0x26a4f8 = await _0x230d44(_0x3fc3eb, {
|
|
912
|
+
..._0x297d6d,
|
|
913
|
+
'signal': _0x5569cc
|
|
914
|
+
}), _0x45d6fa = await _0x1da27c(_0x3fc3eb, _0x26a4f8);
|
|
915
|
+
if (!_0x26a4f8['ok'] || _0x45d6fa['success'] === ![])
|
|
916
|
+
throw new Error(asErrorMessage(_0x45d6fa[_0x29f21(_0x22c7d5._0x49941b)], _0x29f21(0x211) + _0x26a4f8['status']));
|
|
917
|
+
return _0x45d6fa;
|
|
918
|
+
} finally {
|
|
919
|
+
clearTimeout(_0x29b0f7);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
async function _0x316b90(_0x5829da, _0x2c1e10) {
|
|
923
|
+
const _0x1378bc = _0x48f325, _0x45457f = new AbortController(), _0x44f1dc = setTimeout(() => _0x45457f[_0x1378bc(0x295)](), _0x48c043), _0x301abc = _0x2c1e10?.[_0x1378bc(_0xaed242._0x1acb1f)] ? anySignal(_0x2c1e10['signal'], _0x45457f['signal']) : _0x45457f[_0x1378bc(0x1b6)], _0x1909eb = '' + _0x4cea4c + _0x5829da;
|
|
924
|
+
try {
|
|
925
|
+
const _0x106dff = await _0x230d44(_0x1909eb, {
|
|
926
|
+
..._0x2c1e10,
|
|
927
|
+
'signal': _0x301abc
|
|
928
|
+
}), _0x2a45a7 = await _0x1da27c(_0x1909eb, _0x106dff);
|
|
929
|
+
if (!_0x106dff['ok'])
|
|
930
|
+
throw new Error(asErrorMessage(_0x2a45a7[_0x1378bc(_0xaed242._0x25fa2a)], _0x1378bc(_0xaed242._0x2e42c5) + _0x106dff[_0x1378bc(0x1b0)]));
|
|
931
|
+
return _0x2a45a7;
|
|
932
|
+
} finally {
|
|
933
|
+
clearTimeout(_0x44f1dc);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
async function _0x2d0964(_0x30073a) {
|
|
937
|
+
const _0x200e32 = _0x48f325;
|
|
938
|
+
if (!_0x35c865 || _0x30073a <= _0x35c778)
|
|
939
|
+
return;
|
|
940
|
+
await _0x2827a2(_0x200e32(_0x2c3c50._0x298837) + encodeURIComponent(_0x35c865) + _0x200e32(_0x2c3c50._0x2c41aa), {
|
|
941
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x30073a }),
|
|
942
|
+
'headers': _0xc87eec,
|
|
943
|
+
'method': 'PATCH'
|
|
944
|
+
}), _0x35c778 = _0x30073a;
|
|
945
|
+
}
|
|
946
|
+
async function _0x5add0b(_0x5ed6ba) {
|
|
947
|
+
const _0x3930cd = _0x48f325;
|
|
948
|
+
if (!_0x18f974 || !_0x5e99c6 || _0x5ed6ba <= _0x35c778)
|
|
949
|
+
return;
|
|
950
|
+
const _0x4cea64 = await _0x230d44(_0x18f974 + '/workers/context-metrics', {
|
|
951
|
+
'body': JSON[_0x3930cd(0x161)]({
|
|
952
|
+
'last_seen_seq': _0x5ed6ba,
|
|
953
|
+
'worker_session_id': _0x5e99c6
|
|
954
|
+
}),
|
|
955
|
+
'headers': { 'Content-Type': _0x3930cd(0x287) },
|
|
956
|
+
'method': 'POST'
|
|
957
|
+
});
|
|
958
|
+
if (!_0x4cea64['ok'])
|
|
959
|
+
throw new Error('HTTP\x20' + _0x4cea64['status']);
|
|
960
|
+
_0x35c778 = _0x5ed6ba;
|
|
961
|
+
}
|
|
962
|
+
async function _0x110dfc(_0x36469e) {
|
|
963
|
+
const _0x5d41be = _0x48f325, _0x2c507f = parseTarget(_0x36469e), _0x247014 = await _0x2827a2(_0x5d41be(0x19d) + _0x3bb6b7[_0x5d41be(0x176)] + _0x5d41be(_0x3d1f2b._0x22c476), {
|
|
964
|
+
'body': JSON[_0x5d41be(0x161)]({ 'target': _0x2c507f[_0x5d41be(0x18c)] }),
|
|
965
|
+
'headers': _0xc87eec,
|
|
966
|
+
'method': _0x5d41be(_0x3d1f2b._0x14a5f6)
|
|
967
|
+
});
|
|
968
|
+
return {
|
|
969
|
+
'channelId': _0x247014[_0x5d41be(_0x3d1f2b._0x436be6)]?.[_0x5d41be(_0x3d1f2b._0x354239)] ?? '',
|
|
970
|
+
'target': _0x2c507f[_0x5d41be(_0x3d1f2b._0xeafba7)],
|
|
971
|
+
'task': _0x247014[_0x5d41be(0x264)]?.[_0x5d41be(0x165)],
|
|
972
|
+
'threadId': _0x247014[_0x5d41be(0x264)]?.['threadId'],
|
|
973
|
+
'threadNumber': _0x247014[_0x5d41be(_0x3d1f2b._0x436be6)]?.[_0x5d41be(_0x3d1f2b._0x5de5d0)]
|
|
974
|
+
};
|
|
975
|
+
}
|
|
976
|
+
async function _0x11949c(_0x51f51d = {}) {
|
|
977
|
+
const _0x6639ae = _0x48f325;
|
|
978
|
+
if (!_0x51f51d[_0x6639ae(0x1e9)] && _0xb4cf24)
|
|
979
|
+
return _0xb4cf24;
|
|
980
|
+
return _0xb4cf24 = (async () => {
|
|
981
|
+
const _0x5abf3b = _0x6639ae, _0x5e0bb0 = await _0x2827a2('/internal/agent/' + _0x3bb6b7[_0x5abf3b(_0xd93e9c._0x1b287e)] + _0x5abf3b(0x22d), {
|
|
982
|
+
'headers': _0xc87eec,
|
|
983
|
+
'method': _0x5abf3b(0x288)
|
|
984
|
+
}), _0x4f1eb1 = _0x5e0bb0[_0x5abf3b(0x264)]?.[_0x5abf3b(_0xd93e9c._0x40a931)] ?? [], _0x3d618e = _0x4f1eb1['filter'](_0x4378b3 => _0x4378b3[_0x5abf3b(0x18b)]?.[_0x5abf3b(0x24d)] === _0x5abf3b(0x1ed))[_0x5abf3b(_0xd93e9c._0x17b9c7)](_0x70db70 => ({
|
|
985
|
+
'id': _0x21bcad(_0x70db70),
|
|
986
|
+
'name': _0x4f4593(_0x70db70)
|
|
987
|
+
}))[_0x5abf3b(_0xd93e9c._0x4abaa5)](_0x3b13d2 => _0x3b13d2['id']), _0x37e3a5 = _0x4f1eb1[_0x5abf3b(0x23e)](_0x43289d => _0x43289d['participant']?.[_0x5abf3b(0x24d)] !== 'agent')['map'](_0x19b8bb => ({
|
|
988
|
+
'id': _0x21bcad(_0x19b8bb),
|
|
989
|
+
'name': _0x4f4593(_0x19b8bb)
|
|
990
|
+
}))[_0x5abf3b(_0xd93e9c._0x4abaa5)](_0x5ec985 => _0x5ec985['id']), _0x54ee8f = _0x5e0bb0[_0x5abf3b(0x264)]?.[_0x5abf3b(_0xd93e9c._0x1675f5)]['id'] ?? '';
|
|
991
|
+
return {
|
|
992
|
+
'agents': _0x3d618e,
|
|
993
|
+
'channels': _0x5e0bb0['data']?.['channels'] ?? [],
|
|
994
|
+
'humans': _0x37e3a5,
|
|
995
|
+
'serverId': _0x54ee8f,
|
|
996
|
+
'serverName': _0x5e0bb0[_0x5abf3b(_0xd93e9c._0x321d3f)]?.[_0x5abf3b(0x22c)]['name'] ?? _0x54ee8f
|
|
997
|
+
};
|
|
998
|
+
})()[_0x6639ae(_0x13a869._0x1d43ad)](_0x43971b => {
|
|
999
|
+
_0xb4cf24 = null;
|
|
1000
|
+
throw _0x43971b;
|
|
1001
|
+
}), _0xb4cf24;
|
|
1002
|
+
}
|
|
1003
|
+
function _0x517ef7(_0x229f72, _0x29724e) {
|
|
1004
|
+
const _0x423c53 = _0x48f325;
|
|
1005
|
+
return _0x29724e[_0x423c53(0x19c)]['some'](_0x3c581b => _0x3c581b['id'] === _0x229f72 || _0x3c581b[_0x423c53(0x1e5)] === _0x229f72) ? _0x423c53(0x1ed) : _0x423c53(_0x126249._0xca8dd0);
|
|
1006
|
+
}
|
|
1007
|
+
function _0x1a9f4f(_0x19d899) {
|
|
1008
|
+
const _0x638d86 = _0x48f325;
|
|
1009
|
+
if (_0x19d899['threadNumber'] != null)
|
|
1010
|
+
return _0x19d899[_0x638d86(_0x55c115._0x565a75)] + ':t' + _0x19d899['threadNumber'];
|
|
1011
|
+
if (_0x19d899[_0x638d86(_0x55c115._0x1a8110)])
|
|
1012
|
+
return _0x19d899['channelTarget'] + ':' + _0x19d899['rootMessageId'];
|
|
1013
|
+
if (_0x19d899[_0x638d86(0x1a0)])
|
|
1014
|
+
return _0x19d899['channelTarget'] + ':' + _0x19d899[_0x638d86(_0x55c115._0x559375)][_0x638d86(0x240)](0x0, 0x8);
|
|
1015
|
+
return _0x19d899['channelTarget'];
|
|
1016
|
+
}
|
|
1017
|
+
function _0x377524(_0x51cb00, _0x4abed6) {
|
|
1018
|
+
const _0x2328b3 = _0x48f325;
|
|
1019
|
+
try {
|
|
1020
|
+
const _0x4b91ed = parseTarget(_0x51cb00);
|
|
1021
|
+
if (_0x4b91ed['kind'] !== _0x2328b3(_0x52be5b._0x4024e4) || _0x4b91ed[_0x2328b3(0x236)] !== _0x4abed6[_0x2328b3(_0x52be5b._0x3c6d2c)])
|
|
1022
|
+
return ![];
|
|
1023
|
+
if (_0x4abed6[_0x2328b3(0x29e)] != null && _0x4b91ed['threadShortId'] === 't' + _0x4abed6['threadNumber'])
|
|
1024
|
+
return !![];
|
|
1025
|
+
if (_0x4abed6['rootMessageId'])
|
|
1026
|
+
return _0x4b91ed[_0x2328b3(_0x52be5b._0x3cc838)] === _0x4abed6['rootMessageId'] || _0x4abed6[_0x2328b3(_0x52be5b._0x65f2f6)][_0x2328b3(0x20f)](_0x4b91ed[_0x2328b3(_0x52be5b._0x4733cd)]);
|
|
1027
|
+
if (_0x4abed6[_0x2328b3(_0x52be5b._0x534f20)])
|
|
1028
|
+
return _0x4b91ed[_0x2328b3(_0x52be5b._0x5009ab)] === _0x4abed6[_0x2328b3(0x1a0)] || _0x4abed6['threadId'][_0x2328b3(0x20f)](_0x4b91ed[_0x2328b3(0x21e)]);
|
|
1029
|
+
return ![];
|
|
1030
|
+
} catch {
|
|
1031
|
+
return ![];
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
function _0x222741(_0x518fa3, _0x16d43c) {
|
|
1035
|
+
const _0x7a4cf0 = _0x48f325;
|
|
1036
|
+
try {
|
|
1037
|
+
const _0x363bd4 = parseTarget(_0x518fa3);
|
|
1038
|
+
if (_0x363bd4[_0x7a4cf0(0x2e4)] !== 'thread')
|
|
1039
|
+
return ![];
|
|
1040
|
+
const _0x29dd9e = typeof _0x16d43c[_0x7a4cf0(_0x1c6706._0x32488c)] === _0x7a4cf0(_0x1c6706._0x495178) && Number[_0x7a4cf0(_0x1c6706._0x581a5c)](_0x16d43c['threadNumber']) ? _0x16d43c['threadNumber'] : void 0x0;
|
|
1041
|
+
if (_0x29dd9e != null && _0x363bd4[_0x7a4cf0(_0x1c6706._0x28bf38)] === 't' + _0x29dd9e)
|
|
1042
|
+
return !![];
|
|
1043
|
+
const _0x9630a0 = typeof _0x16d43c[_0x7a4cf0(_0x1c6706._0x3a3a00)] === _0x7a4cf0(0x20c) ? _0x16d43c[_0x7a4cf0(0x269)] : void 0x0;
|
|
1044
|
+
if (_0x9630a0)
|
|
1045
|
+
return _0x363bd4[_0x7a4cf0(0x21e)] === _0x9630a0 || _0x9630a0[_0x7a4cf0(_0x1c6706._0x5172cd)](_0x363bd4['threadShortId']);
|
|
1046
|
+
const _0x197c69 = typeof _0x16d43c[_0x7a4cf0(0x1a0)] === _0x7a4cf0(0x20c) ? _0x16d43c['threadId'] : void 0x0;
|
|
1047
|
+
return Boolean(_0x197c69) && (_0x363bd4[_0x7a4cf0(_0x1c6706._0x28bf38)] === _0x197c69 || _0x197c69[_0x7a4cf0(0x20f)](_0x363bd4[_0x7a4cf0(0x21e)]));
|
|
1048
|
+
} catch {
|
|
1049
|
+
return ![];
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
function _0x21bcad(_0x29afed) {
|
|
1053
|
+
const _0x35a13e = _0x48f325;
|
|
1054
|
+
return _0x29afed[_0x35a13e(0x2cd)]?.[_0x35a13e(0x215)] ?? _0x29afed[_0x35a13e(0x18b)]?.['id'] ?? _0x29afed[_0x35a13e(_0x56af25._0x41e4c8)] ?? '';
|
|
1055
|
+
}
|
|
1056
|
+
function _0x4f4593(_0x2a3f31) {
|
|
1057
|
+
const _0x4c2f12 = _0x48f325;
|
|
1058
|
+
return _0x2a3f31[_0x4c2f12(0x18b)]?.[_0x4c2f12(0x1e5)] ?? _0x21bcad(_0x2a3f31);
|
|
1059
|
+
}
|
|
1060
|
+
async function _0x5ec010(_0xbe6a15) {
|
|
1061
|
+
const _0x5b6a91 = _0x48f325, _0x13bc88 = Math['min'](_0xbe6a15[_0x5b6a91(0x1ab)] ?? 0x32, 0x64), _0x416fa6 = await _0x11949c(), _0x51e0be = new URLSearchParams();
|
|
1062
|
+
_0x51e0be['set'](_0x5b6a91(_0x5178d6._0x1fb818), String(_0x13bc88));
|
|
1063
|
+
_0xbe6a15['threadId'] ? (_0x51e0be[_0x5b6a91(_0x5178d6._0x3b41f1)]('threadId', _0xbe6a15[_0x5b6a91(0x1a0)]), _0x51e0be[_0x5b6a91(_0x5178d6._0x3b41f1)](_0x5b6a91(0x232), _0xbe6a15[_0x5b6a91(0x232)])) : _0x51e0be[_0x5b6a91(_0x5178d6._0x3153ff)](_0x5b6a91(0x232), _0xbe6a15[_0x5b6a91(_0x5178d6._0x336b5f)]);
|
|
1064
|
+
_0xbe6a15[_0x5b6a91(0x21b)] && _0x51e0be[_0x5b6a91(0x273)](_0x5b6a91(0x202), String(_0xbe6a15[_0x5b6a91(_0x5178d6._0x1c9450)]));
|
|
1065
|
+
_0xbe6a15[_0x5b6a91(0x296)] !== void 0x0 && _0x51e0be['set'](_0x5b6a91(0x296), String(_0xbe6a15[_0x5b6a91(0x296)]));
|
|
1066
|
+
const _0x4dc5a8 = await _0x2827a2(_0x5b6a91(_0x5178d6._0x338fb7) + _0x3bb6b7[_0x5b6a91(0x176)] + '/history?' + _0x51e0be[_0x5b6a91(_0x5178d6._0x2ca19f)](), {
|
|
1067
|
+
'headers': _0xc87eec,
|
|
1068
|
+
'method': _0x5b6a91(0x288)
|
|
1069
|
+
}), _0x42b8d4 = (_0x4dc5a8['data'] ?? [])[_0x5b6a91(_0x5178d6._0x4a339f)](_0x57f9a4 => ({
|
|
1070
|
+
'attachments': (_0x57f9a4[_0x5b6a91(0x16b)] ?? [])[_0x5b6a91(0x272)](_0xa08c73 => ({
|
|
1071
|
+
'filename': _0xa08c73[_0x5b6a91(0x2a0)] ?? _0xa08c73['id'],
|
|
1072
|
+
'id': _0xa08c73['id']
|
|
1073
|
+
})),
|
|
1074
|
+
'content': _0x57f9a4['bodyMarkdown'] ?? '',
|
|
1075
|
+
'createdAt': _0x57f9a4['createdAt'],
|
|
1076
|
+
..._0x57f9a4['kind'] && _0x57f9a4[_0x5b6a91(0x2e4)] !== _0x5b6a91(0x21a) ? { 'kind': _0x57f9a4[_0x5b6a91(0x2e4)] } : {},
|
|
1077
|
+
'messageId': _0x57f9a4['id'],
|
|
1078
|
+
'senderName': _0x57f9a4[_0x5b6a91(0x1c2)],
|
|
1079
|
+
'senderType': _0x517ef7(_0x57f9a4[_0x5b6a91(0x1c2)], _0x416fa6),
|
|
1080
|
+
'seq': _0x57f9a4[_0x5b6a91(0x1c8)] ?? 0x0
|
|
1081
|
+
}));
|
|
1082
|
+
return {
|
|
1083
|
+
'channel': _0xbe6a15[_0x5b6a91(_0x5178d6._0x18db34)],
|
|
1084
|
+
'hasMore': _0x4dc5a8[_0x5b6a91(_0x5178d6._0x4a8030)]?.[_0x5b6a91(_0x5178d6._0x5169dc)] ?? ![],
|
|
1085
|
+
'messages': _0x42b8d4,
|
|
1086
|
+
'nextCursor': _0x4dc5a8['meta']?.[_0x5b6a91(0x202)]
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
return {
|
|
1090
|
+
async 'sendMessage'(_0x5a235b) {
|
|
1091
|
+
const _0x47ab3c = _0x48f325, _0x54596e = await _0x110dfc(_0x5a235b[_0x47ab3c(_0x4859a0._0x4cb8f4)]), _0x5ebc31 = _0x5a235b[_0x47ab3c(0x162)][_0x47ab3c(_0x4859a0._0x48b217)]('@') ? extractMentionedParticipantIds(_0x5a235b['content'], await _0x11949c()) : [], _0x3a854b = await _0x2827a2('/internal/agent/' + _0x3bb6b7[_0x47ab3c(_0x4859a0._0x3322d0)] + '/send', {
|
|
1092
|
+
'body': JSON[_0x47ab3c(_0x4859a0._0x8af1c2)]({
|
|
1093
|
+
'attachment_ids': _0x5a235b[_0x47ab3c(_0x4859a0._0x378aef)],
|
|
1094
|
+
'bodyMarkdown': _0x5a235b[_0x47ab3c(0x162)],
|
|
1095
|
+
'channelId': _0x54596e[_0x47ab3c(0x232)],
|
|
1096
|
+
..._0x5ebc31[_0x47ab3c(0x19b)] > 0x0 ? { 'mentionedParticipantIds': _0x5ebc31 } : {},
|
|
1097
|
+
'threadId': _0x54596e[_0x47ab3c(_0x4859a0._0x2782d3)],
|
|
1098
|
+
..._0x5a235b[_0x47ab3c(0x18e)] ? { 'visibility': _0x5a235b[_0x47ab3c(_0x4859a0._0x44582d)] } : {}
|
|
1099
|
+
}),
|
|
1100
|
+
'headers': _0xc87eec,
|
|
1101
|
+
'method': _0x47ab3c(_0x4859a0._0x3bb155)
|
|
1102
|
+
});
|
|
1103
|
+
return { 'messageId': _0x3a854b['data']?.['id'] ?? '' };
|
|
1104
|
+
},
|
|
1105
|
+
async 'listSchedules'() {
|
|
1106
|
+
const _0x1bb3b1 = _0x48f325, _0x44493c = await _0x2827a2(_0x1bb3b1(0x16f), {
|
|
1107
|
+
'headers': _0xc87eec,
|
|
1108
|
+
'method': _0x1bb3b1(0x288)
|
|
1109
|
+
});
|
|
1110
|
+
return _0x44493c['data'] ?? [];
|
|
1111
|
+
},
|
|
1112
|
+
async 'claimScheduleRun'(_0x2cf883) {
|
|
1113
|
+
const _0x135e35 = _0x48f325, _0x9545d5 = await _0x2827a2(_0x135e35(_0x1a75a5._0x456695), {
|
|
1114
|
+
'body': JSON[_0x135e35(_0x1a75a5._0x335977)](_0x2cf883),
|
|
1115
|
+
'headers': _0xc87eec,
|
|
1116
|
+
'method': _0x135e35(0x199)
|
|
1117
|
+
});
|
|
1118
|
+
return _0x9545d5[_0x135e35(0x264)] ?? {
|
|
1119
|
+
'granted': ![],
|
|
1120
|
+
'runId': null,
|
|
1121
|
+
'schedule': null,
|
|
1122
|
+
'scheduledFor': _0x2cf883[_0x135e35(0x1eb)]
|
|
1123
|
+
};
|
|
1124
|
+
},
|
|
1125
|
+
async 'startScheduleRun'(_0xc782aa) {
|
|
1126
|
+
const _0x1df7a8 = _0x48f325, _0x3104d2 = await _0x2827a2(_0x1df7a8(0x1b7) + encodeURIComponent(_0xc782aa[_0x1df7a8(0x2bd)]) + _0x1df7a8(0x299), {
|
|
1127
|
+
'body': JSON[_0x1df7a8(0x161)]({}),
|
|
1128
|
+
'headers': _0xc87eec,
|
|
1129
|
+
'method': _0x1df7a8(0x199)
|
|
1130
|
+
});
|
|
1131
|
+
return _0x3104d2[_0x1df7a8(_0x1939d0._0xb11cb8)] ?? {
|
|
1132
|
+
'claimedByDaemonId': '',
|
|
1133
|
+
'id': _0xc782aa[_0x1df7a8(0x2bd)],
|
|
1134
|
+
'scheduleId': '',
|
|
1135
|
+
'status': _0x1df7a8(0x259)
|
|
1136
|
+
};
|
|
1137
|
+
},
|
|
1138
|
+
async 'finishScheduleRun'(_0xf43cef) {
|
|
1139
|
+
const _0xf8f16c = _0x48f325, _0x2179cb = await _0x2827a2(_0xf8f16c(_0x1b448d._0x1d6b78) + encodeURIComponent(_0xf43cef[_0xf8f16c(0x2bd)]) + _0xf8f16c(_0x1b448d._0x4a4bcf), {
|
|
1140
|
+
'body': JSON['stringify']({
|
|
1141
|
+
'error': _0xf43cef[_0xf8f16c(_0x1b448d._0x143645)],
|
|
1142
|
+
'resultJson': _0xf43cef[_0xf8f16c(_0x1b448d._0x182c4d)],
|
|
1143
|
+
'status': _0xf43cef[_0xf8f16c(_0x1b448d._0x49211a)]
|
|
1144
|
+
}),
|
|
1145
|
+
'headers': _0xc87eec,
|
|
1146
|
+
'method': _0xf8f16c(0x199)
|
|
1147
|
+
});
|
|
1148
|
+
return _0x2179cb[_0xf8f16c(_0x1b448d._0x4d0d00)] ?? {
|
|
1149
|
+
'nextRunAt': null,
|
|
1150
|
+
'run': {
|
|
1151
|
+
'claimedByDaemonId': '',
|
|
1152
|
+
'id': _0xf43cef[_0xf8f16c(0x2bd)],
|
|
1153
|
+
'scheduleId': '',
|
|
1154
|
+
'status': _0xf43cef[_0xf8f16c(0x1b0)]
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
},
|
|
1158
|
+
async 'listTasks'(_0x20722d) {
|
|
1159
|
+
const _0x1830d3 = _0x48f325, _0x2afdbc = new URLSearchParams();
|
|
1160
|
+
return _0x2afdbc[_0x1830d3(0x273)]('channel', _0x20722d[_0x1830d3(0x198)]), _0x20722d['status'] && _0x2afdbc[_0x1830d3(_0xf46048._0x5f45ca)]('status', _0x20722d[_0x1830d3(_0xf46048._0x520316)]), _0x316b90(_0x1830d3(0x19d) + _0x3bb6b7['agentId'] + _0x1830d3(_0xf46048._0x614c6) + _0x2afdbc[_0x1830d3(0x2d9)](), {
|
|
1161
|
+
'headers': _0xc87eec,
|
|
1162
|
+
'method': 'GET'
|
|
1163
|
+
});
|
|
1164
|
+
},
|
|
1165
|
+
async 'createTasks'(_0x32a205) {
|
|
1166
|
+
const _0xa261a2 = _0x48f325;
|
|
1167
|
+
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0xa261a2(_0x2916ed._0xbe4c7d)] + _0xa261a2(0x2cc), {
|
|
1168
|
+
'body': JSON[_0xa261a2(_0x2916ed._0x21540b)]({
|
|
1169
|
+
..._0x32a205,
|
|
1170
|
+
'idempotency_key': _0x102300('create_tasks', _0x32a205)
|
|
1171
|
+
}),
|
|
1172
|
+
'headers': _0xc87eec,
|
|
1173
|
+
'method': 'POST'
|
|
1174
|
+
});
|
|
1175
|
+
},
|
|
1176
|
+
async 'claimTasks'(_0x4bb18d) {
|
|
1177
|
+
const _0x239398 = _0x48f325;
|
|
1178
|
+
return _0x316b90(_0x239398(_0x50dace._0x34f27e) + _0x3bb6b7['agentId'] + _0x239398(0x27a), {
|
|
1179
|
+
'body': JSON[_0x239398(0x161)]({
|
|
1180
|
+
..._0x4bb18d,
|
|
1181
|
+
'idempotency_key': _0x102300('claim_tasks', _0x4bb18d)
|
|
1182
|
+
}),
|
|
1183
|
+
'headers': _0xc87eec,
|
|
1184
|
+
'method': _0x239398(0x199)
|
|
1185
|
+
});
|
|
1186
|
+
},
|
|
1187
|
+
async 'unclaimTask'(_0x173089) {
|
|
1188
|
+
const _0x5ea04f = _0x48f325;
|
|
1189
|
+
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0x5ea04f(0x176)] + _0x5ea04f(0x160), {
|
|
1190
|
+
'body': JSON[_0x5ea04f(_0x9a1578._0x3c041f)]({
|
|
1191
|
+
..._0x173089,
|
|
1192
|
+
'idempotency_key': _0x102300(_0x5ea04f(_0x9a1578._0x293887), _0x173089)
|
|
1193
|
+
}),
|
|
1194
|
+
'headers': _0xc87eec,
|
|
1195
|
+
'method': _0x5ea04f(_0x9a1578._0xbc75fe)
|
|
1196
|
+
});
|
|
1197
|
+
},
|
|
1198
|
+
async 'updateTaskStatus'(_0x3c9423) {
|
|
1199
|
+
const _0x40004a = _0x48f325;
|
|
1200
|
+
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0x40004a(0x176)] + _0x40004a(_0x200b23._0x31b56f), {
|
|
1201
|
+
'body': JSON['stringify']({
|
|
1202
|
+
..._0x3c9423,
|
|
1203
|
+
'idempotency_key': _0x102300(_0x40004a(0x1f8), _0x3c9423)
|
|
1204
|
+
}),
|
|
1205
|
+
'headers': _0xc87eec,
|
|
1206
|
+
'method': _0x40004a(0x199)
|
|
1207
|
+
});
|
|
1208
|
+
},
|
|
1209
|
+
async 'uploadFile'(_0x213157) {
|
|
1210
|
+
const _0x372205 = _0x48f325, _0x416c69 = await _0x110dfc(_0x213157[_0x372205(0x198)]);
|
|
1211
|
+
if (_0x416c69[_0x372205(0x1a0)])
|
|
1212
|
+
throw new Error(_0x372205(0x17c));
|
|
1213
|
+
const _0x45a4cf = await _0x2827a2(_0x372205(0x19d) + _0x3bb6b7[_0x372205(_0x2c5794._0xa85bf2)] + _0x372205(_0x2c5794._0x15b995), {
|
|
1214
|
+
'body': JSON[_0x372205(_0x2c5794._0x23a462)]({
|
|
1215
|
+
'channel': _0x416c69['target'],
|
|
1216
|
+
'contentBase64': _0x213157[_0x372205(0x168)],
|
|
1217
|
+
'contentType': _0x213157[_0x372205(_0x2c5794._0xaf3664)],
|
|
1218
|
+
'originalFilename': _0x213157[_0x372205(_0x2c5794._0xf5083b)]
|
|
1219
|
+
}),
|
|
1220
|
+
'headers': _0xc87eec,
|
|
1221
|
+
'method': _0x372205(0x199)
|
|
1222
|
+
});
|
|
1223
|
+
return {
|
|
1224
|
+
'attachmentId': _0x45a4cf[_0x372205(0x264)]?.['id'] ?? '',
|
|
1225
|
+
'filename': _0x45a4cf[_0x372205(_0x2c5794._0xe09642)]?.['originalFilename'] ?? _0x213157[_0x372205(0x2a0)],
|
|
1226
|
+
'sizeBytes': _0x45a4cf['data']?.[_0x372205(_0x2c5794._0x7f2658)] ?? 0x0
|
|
1227
|
+
};
|
|
1228
|
+
},
|
|
1229
|
+
async 'downloadAttachment'(_0x43f0ad) {
|
|
1230
|
+
const _0x4e4c67 = _0x48f325, _0x56d8d7 = await _0x2827a2(_0x4e4c67(_0x6a3ff5._0x254fd0) + _0x43f0ad, {
|
|
1231
|
+
'headers': _0xc87eec,
|
|
1232
|
+
'method': _0x4e4c67(_0x6a3ff5._0x5f3711)
|
|
1233
|
+
}), _0x42cccd = new AbortController(), _0x30b6c4 = setTimeout(() => _0x42cccd[_0x4e4c67(0x295)](), _0x48c043);
|
|
1234
|
+
try {
|
|
1235
|
+
const _0x4c5a30 = await _0x230d44(_0x4cea4c + '/api/attachments/' + _0x43f0ad + '/content', {
|
|
1236
|
+
'headers': _0xc87eec,
|
|
1237
|
+
'method': 'GET',
|
|
1238
|
+
'signal': _0x42cccd[_0x4e4c67(_0x6a3ff5._0x6dfcc6)]
|
|
1239
|
+
});
|
|
1240
|
+
if (!_0x4c5a30['ok'])
|
|
1241
|
+
throw new Error(_0x4e4c67(0x211) + _0x4c5a30[_0x4e4c67(0x1b0)]);
|
|
1242
|
+
return {
|
|
1243
|
+
'contentType': _0x56d8d7[_0x4e4c67(0x264)]?.[_0x4e4c67(_0x6a3ff5._0x209772)] ?? _0x4c5a30[_0x4e4c67(_0x6a3ff5._0x1460ec)][_0x4e4c67(_0x6a3ff5._0x100ac6)](_0x4e4c67(_0x6a3ff5._0x6b5069)) ?? _0x4e4c67(0x26c),
|
|
1244
|
+
'data': Buffer[_0x4e4c67(0x207)](await _0x4c5a30[_0x4e4c67(_0x6a3ff5._0x573126)]()),
|
|
1245
|
+
'originalFilename': _0x56d8d7[_0x4e4c67(0x264)]?.[_0x4e4c67(0x27f)]
|
|
1246
|
+
};
|
|
1247
|
+
} finally {
|
|
1248
|
+
clearTimeout(_0x30b6c4);
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
async 'listServer'() {
|
|
1252
|
+
return _0x11949c({ 'forceRefresh': !![] });
|
|
1253
|
+
},
|
|
1254
|
+
async 'readHistory'(_0x2323f6) {
|
|
1255
|
+
const _0x4161ed = _0x48f325, _0x1a4cb5 = await _0x110dfc(_0x2323f6['channel']);
|
|
1256
|
+
return _0x5ec010({
|
|
1257
|
+
'after': _0x2323f6[_0x4161ed(_0x63a30c._0x5db128)],
|
|
1258
|
+
'before': _0x2323f6[_0x4161ed(_0x63a30c._0x3deb5d)],
|
|
1259
|
+
'channelId': _0x1a4cb5['channelId'],
|
|
1260
|
+
'channelTarget': _0x1a4cb5[_0x4161ed(0x18c)],
|
|
1261
|
+
'limit': _0x2323f6[_0x4161ed(0x1ab)],
|
|
1262
|
+
'threadId': _0x1a4cb5[_0x4161ed(0x1a0)]
|
|
1263
|
+
});
|
|
1264
|
+
},
|
|
1265
|
+
'resolveTarget': _0x110dfc,
|
|
1266
|
+
async 'checkMessages'() {
|
|
1267
|
+
const _0x58443c = {
|
|
1268
|
+
_0x53d111: 0x278,
|
|
1269
|
+
_0x28e730: 0x2a7
|
|
1270
|
+
}, _0xe2b955 = _0x48f325, _0xe1fc3a = new URLSearchParams();
|
|
1271
|
+
_0xe1fc3a[_0xe2b955(0x273)](_0xe2b955(0x2c8), String(_0x15451c));
|
|
1272
|
+
const _0x260e71 = _0xe1fc3a['toString'](), _0x4f8498 = await _0x2827a2(_0xe2b955(_0x1c0289._0x48ce1a) + _0x3bb6b7[_0xe2b955(_0x1c0289._0x451525)] + _0xe2b955(0x24f) + (_0x260e71 ? '?' + _0x260e71 : ''), {
|
|
1273
|
+
'headers': _0xc87eec,
|
|
1274
|
+
'method': _0xe2b955(_0x1c0289._0xe426c5)
|
|
1275
|
+
}), _0x42c094 = _0x4f8498[_0xe2b955(0x264)] ?? [], _0x1a8817 = _0x4f8498[_0xe2b955(_0x1c0289._0x2f4597)]?.[_0xe2b955(_0x1c0289._0x2cbe33)], _0x23e081 = _0x2bd29b ? _0x42c094['filter'](_0x117964 => {
|
|
1276
|
+
const _0x42b80a = _0xe2b955;
|
|
1277
|
+
if (_0x117964[_0x42b80a(_0x58443c._0x53d111)] !== 'message')
|
|
1278
|
+
return ![];
|
|
1279
|
+
return _0x222741(_0x2bd29b, asRecord(_0x117964[_0x42b80a(_0x58443c._0x28e730)]));
|
|
1280
|
+
}) : _0x42c094, _0x1565e8 = _0x1a8817 !== void 0x0 ? _0x2bd29b ? Math[_0xe2b955(_0x1c0289._0x266778)](_0x15451c, _0x23e081[_0xe2b955(0x19b)] > 0x0 ? _0x23e081[_0x23e081[_0xe2b955(_0x1c0289._0x22a6ca)] - 0x1][_0xe2b955(0x1cc)] : _0x15451c) : Math['max'](_0x15451c, _0x1a8817) : _0x23e081[_0xe2b955(_0x1c0289._0x2e059d)] > 0x0 ? Math[_0xe2b955(0x225)](_0x15451c, _0x23e081[_0x23e081[_0xe2b955(0x19b)] - 0x1]['seq']) : _0x15451c, _0x53d822 = _0x42c094[_0xe2b955(_0x1c0289._0x5a9b60)](_0x36703f => _0x36703f[_0xe2b955(0x278)] === _0xe2b955(0x2e8)), _0x1b7358 = _0x2bd29b === void 0x0 && _0x207f3c;
|
|
1281
|
+
let _0x48430a = await _0x11949c(), _0x2542bc = new Map(_0x48430a[_0xe2b955(_0x1c0289._0x15b654)]['map'](_0xc97f01 => [
|
|
1282
|
+
_0xc97f01['id'],
|
|
1283
|
+
_0xc97f01
|
|
1284
|
+
]));
|
|
1285
|
+
const _0x457934 = _0x53d822[_0xe2b955(_0x1c0289._0x22b91a)](_0x80e8ec => {
|
|
1286
|
+
const _0x1abf8d = _0xe2b955, _0x54d8fa = asRecord(_0x80e8ec[_0x1abf8d(_0x1d69b1._0x36ef6d)]), _0x3fb2fc = typeof _0x54d8fa?.[_0x1abf8d(_0x1d69b1._0x31e886)] === _0x1abf8d(_0x1d69b1._0x1699b6) ? _0x54d8fa[_0x1abf8d(0x232)] : '';
|
|
1287
|
+
return Boolean(_0x3fb2fc) && !_0x2542bc['has'](_0x3fb2fc);
|
|
1288
|
+
});
|
|
1289
|
+
_0x457934 && (_0x48430a = await _0x11949c({ 'forceRefresh': !![] }), _0x2542bc = new Map(_0x48430a[_0xe2b955(_0x1c0289._0x15b654)][_0xe2b955(0x272)](_0x45516a => [
|
|
1290
|
+
_0x45516a['id'],
|
|
1291
|
+
_0x45516a
|
|
1292
|
+
])));
|
|
1293
|
+
const _0x50f22c = new Map();
|
|
1294
|
+
for (const _0x252c00 of _0x53d822) {
|
|
1295
|
+
const _0x159dcb = asRecord(_0x252c00[_0xe2b955(0x2a7)]), _0x44c53a = typeof _0x159dcb[_0xe2b955(0x232)] === _0xe2b955(_0x1c0289._0x5b04b3) ? _0x159dcb[_0xe2b955(_0x1c0289._0x46e7df)] : '';
|
|
1296
|
+
if (!_0x44c53a)
|
|
1297
|
+
continue;
|
|
1298
|
+
const _0x27597a = typeof _0x159dcb[_0xe2b955(_0x1c0289._0xf1d99a)] === _0xe2b955(_0x1c0289._0x2f7f46) ? _0x159dcb[_0xe2b955(0x1a0)] : void 0x0, _0x4543c7 = typeof _0x159dcb[_0xe2b955(_0x1c0289._0x271bb9)] === _0xe2b955(_0x1c0289._0x3194a2) ? _0x159dcb[_0xe2b955(0x269)] : void 0x0, _0x27765c = typeof _0x159dcb[_0xe2b955(_0x1c0289._0x5aaad6)] === 'number' && Number[_0xe2b955(_0x1c0289._0x5bedd8)](_0x159dcb[_0xe2b955(_0x1c0289._0x5aaad6)]) ? _0x159dcb[_0xe2b955(_0x1c0289._0x6ba06a)] : void 0x0, _0x3be78c = Boolean(_0x27597a && (!_0x4543c7 || _0x252c00[_0xe2b955(_0x1c0289._0x4078ae)] !== _0x4543c7)), _0x5c4728 = _0x3be78c ? _0x44c53a + ':' + _0x27597a : _0x44c53a, _0x142dd9 = _0x50f22c['get'](_0x5c4728) ?? {
|
|
1299
|
+
'aggregateIds': [],
|
|
1300
|
+
'channelId': _0x44c53a,
|
|
1301
|
+
'entries': new Map(),
|
|
1302
|
+
'isThreadReply': _0x3be78c,
|
|
1303
|
+
'rootMessageId': _0x4543c7,
|
|
1304
|
+
'threadNumber': _0x27765c,
|
|
1305
|
+
'threadId': _0x3be78c ? _0x27597a : void 0x0
|
|
1306
|
+
};
|
|
1307
|
+
_0x142dd9[_0xe2b955(_0x1c0289._0x383e10)] == null && _0x27765c != null && (_0x142dd9[_0xe2b955(0x29e)] = _0x27765c), !_0x142dd9[_0xe2b955(_0x1c0289._0x444bac)] && _0x4543c7 && (_0x142dd9[_0xe2b955(_0x1c0289._0xdc1113)] = _0x4543c7), _0x142dd9[_0xe2b955(0x242)][_0xe2b955(_0x1c0289._0x586d41)](_0x252c00['aggregateId']), _0x142dd9[_0xe2b955(_0x1c0289._0x5c04f3)][_0xe2b955(0x273)](_0x252c00[_0xe2b955(0x1d8)], {
|
|
1308
|
+
'payloadJson': _0x252c00[_0xe2b955(0x2a7)],
|
|
1309
|
+
'seq': _0x252c00['seq']
|
|
1310
|
+
}), _0x50f22c[_0xe2b955(0x273)](_0x5c4728, _0x142dd9);
|
|
1311
|
+
}
|
|
1312
|
+
const _0x3843d3 = [];
|
|
1313
|
+
for (const _0x555b88 of _0x50f22c[_0xe2b955(0x1b1)]()) {
|
|
1314
|
+
const {
|
|
1315
|
+
channelId: _0xe367ec,
|
|
1316
|
+
threadId: _0x58e011,
|
|
1317
|
+
rootMessageId: _0x20fb15,
|
|
1318
|
+
threadNumber: _0x2f3fe7,
|
|
1319
|
+
aggregateIds: _0x4cbb95,
|
|
1320
|
+
isThreadReply: _0x4430a1,
|
|
1321
|
+
entries: _0x1e2983
|
|
1322
|
+
} = _0x555b88, _0x3ca988 = _0x2542bc[_0xe2b955(0x286)](_0xe367ec), _0x4e8f8a = _0x3ca988?.[_0xe2b955(0x1e5)] ?? _0xe367ec, _0x1dce52 = _0x3ca988?.[_0xe2b955(0x2e4)] === 'dm' ? _0xe2b955(_0x1c0289._0x44eac3) + _0x4e8f8a : '#' + _0x4e8f8a, _0x316f7f = {
|
|
1323
|
+
'channelTarget': _0x1dce52,
|
|
1324
|
+
'rootMessageId': _0x20fb15,
|
|
1325
|
+
'threadId': _0x58e011,
|
|
1326
|
+
'threadNumber': _0x2f3fe7
|
|
1327
|
+
}, _0xb61251 = await _0x5ec010({
|
|
1328
|
+
'channelId': _0xe367ec,
|
|
1329
|
+
'channelTarget': _0x1dce52,
|
|
1330
|
+
'limit': Math['max'](_0x4cbb95['length'], 0x32),
|
|
1331
|
+
'threadId': _0x58e011
|
|
1332
|
+
}), _0xd6c793 = new Map(_0xb61251[_0xe2b955(0x20b)][_0xe2b955(_0x1c0289._0x12954c)](_0x30636e => [
|
|
1333
|
+
_0x30636e[_0xe2b955(0x18d)],
|
|
1334
|
+
_0x30636e
|
|
1335
|
+
])), _0x23104d = _0x58e011 ? _0x1a9f4f(_0x316f7f) : _0x1dce52, _0xfee26a = _0x2bd29b ? _0x4430a1 && _0x377524(_0x2bd29b, _0x316f7f) : !![], _0x5b0ef6 = _0x4430a1 ? _0xfee26a && _0x2bd29b ? _0x2bd29b : _0x23104d : _0x1dce52;
|
|
1336
|
+
for (const _0x47fcf8 of _0x4cbb95) {
|
|
1337
|
+
if (!_0xfee26a)
|
|
1338
|
+
continue;
|
|
1339
|
+
const _0x492736 = _0x1e2983[_0xe2b955(_0x1c0289._0x744452)](_0x47fcf8), _0x145d7a = _0x492736 ? asRecord(_0x492736['payloadJson']) : void 0x0, _0x199f00 = _0x145d7a?.[_0xe2b955(_0x1c0289._0x5ee732)] === _0xe2b955(_0x1c0289._0x1710bf);
|
|
1340
|
+
if (_0x1b7358 && _0x199f00)
|
|
1341
|
+
continue;
|
|
1342
|
+
const _0x378f1a = _0xd6c793[_0xe2b955(0x286)](_0x47fcf8);
|
|
1343
|
+
if (_0x378f1a) {
|
|
1344
|
+
_0x3843d3[_0xe2b955(0x2e9)]({
|
|
1345
|
+
'attachments': _0x378f1a[_0xe2b955(0x16b)],
|
|
1346
|
+
'content': _0x378f1a[_0xe2b955(_0x1c0289._0x544c3)],
|
|
1347
|
+
'createdAt': _0x378f1a['createdAt'],
|
|
1348
|
+
..._0x378f1a['kind'] ? { 'kind': _0x378f1a[_0xe2b955(_0x1c0289._0x540203)] } : {},
|
|
1349
|
+
'messageId': _0x378f1a['messageId'],
|
|
1350
|
+
'senderName': _0x378f1a[_0xe2b955(0x1a1)],
|
|
1351
|
+
'senderType': _0x378f1a[_0xe2b955(0x1d6)],
|
|
1352
|
+
'target': _0x5b0ef6,
|
|
1353
|
+
..._0x199f00 ? { 'targetedTask': !![] } : {}
|
|
1354
|
+
});
|
|
1355
|
+
continue;
|
|
1356
|
+
}
|
|
1357
|
+
if (_0x492736) {
|
|
1358
|
+
const _0x2c6f79 = typeof _0x145d7a?.[_0xe2b955(_0x1c0289._0x213e9a)] === _0xe2b955(0x20c) ? _0x145d7a[_0xe2b955(_0x1c0289._0x213e9a)] : '', _0x5dacba = typeof _0x145d7a?.[_0xe2b955(0x218)] === _0xe2b955(0x20c) ? _0x145d7a[_0xe2b955(_0x1c0289._0x39bbf3)] : '', _0xf51d6b = typeof _0x145d7a?.[_0xe2b955(_0x1c0289._0x540203)] === _0xe2b955(0x20c) && _0x145d7a[_0xe2b955(0x2e4)] !== _0xe2b955(_0x1c0289._0x595d7c) ? _0x145d7a[_0xe2b955(0x2e4)] : void 0x0;
|
|
1359
|
+
_0x2c6f79 && _0x5dacba && _0x3843d3[_0xe2b955(_0x1c0289._0x586d41)]({
|
|
1360
|
+
'attachments': [],
|
|
1361
|
+
'content': _0x5dacba,
|
|
1362
|
+
'createdAt': new Date()[_0xe2b955(0x245)](),
|
|
1363
|
+
..._0xf51d6b ? { 'kind': _0xf51d6b } : {},
|
|
1364
|
+
'messageId': _0x47fcf8,
|
|
1365
|
+
'senderName': _0x2c6f79,
|
|
1366
|
+
'senderType': _0x517ef7(_0x2c6f79, _0x48430a),
|
|
1367
|
+
'target': _0x5b0ef6,
|
|
1368
|
+
..._0x199f00 ? { 'targetedTask': !![] } : {}
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
if (_0x1565e8 > 0x0) {
|
|
1374
|
+
if (_0x35c865)
|
|
1375
|
+
await _0x2d0964(_0x1565e8);
|
|
1376
|
+
else
|
|
1377
|
+
_0x5e99c6 && await _0x5add0b(_0x1565e8);
|
|
1378
|
+
}
|
|
1379
|
+
return _0x1565e8 > _0x15451c && (_0x15451c = _0x1565e8), { 'messages': _0x2bd29b ? _0x3843d3 : _0x1b7358 ? _0x3843d3[_0xe2b955(0x23e)](_0xff35f8 => _0xff35f8[_0xe2b955(0x1df)] !== !![]) : _0x3843d3 };
|
|
1380
|
+
}
|
|
1465
1381
|
};
|
|
1466
|
-
return _0x184f();
|
|
1467
1382
|
}
|
|
1468
|
-
function
|
|
1469
|
-
|
|
1383
|
+
function toLocalTime(_0x1cc4e1) {
|
|
1384
|
+
const _0xd6adb1 = {
|
|
1385
|
+
_0x4da6a0: 0x197,
|
|
1386
|
+
_0x4e1f38: 0x267,
|
|
1387
|
+
_0x1aa32f: 0x189
|
|
1388
|
+
}, _0x22b6cd = _0x28aee3, _0x2245fb = new Date(_0x1cc4e1);
|
|
1389
|
+
if (Number['isNaN'](_0x2245fb[_0x22b6cd(_0xd6adb1._0x4da6a0)]()))
|
|
1390
|
+
return _0x1cc4e1;
|
|
1391
|
+
const _0x2dc4d8 = _0x24dd30 => String(_0x24dd30)[_0x22b6cd(0x227)](0x2, '0');
|
|
1392
|
+
return _0x2245fb[_0x22b6cd(_0xd6adb1._0x4e1f38)]() + '-' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x2e6)]() + 0x1) + '-' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x2bf)]()) + '\x20' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x181)]()) + ':' + _0x2dc4d8(_0x2245fb[_0x22b6cd(_0xd6adb1._0x1aa32f)]()) + ':' + _0x2dc4d8(_0x2245fb['getSeconds']());
|
|
1393
|
+
}
|
|
1394
|
+
function formatAttachmentSuffix(_0x2daf26) {
|
|
1395
|
+
const _0x100bda = {
|
|
1396
|
+
_0x214ed9: 0x19b,
|
|
1397
|
+
_0x5abd23: 0x272,
|
|
1398
|
+
_0x479f15: 0x1ca
|
|
1399
|
+
}, _0x3bb45b = _0x28aee3;
|
|
1400
|
+
if (!_0x2daf26 || _0x2daf26['length'] === 0x0)
|
|
1401
|
+
return '';
|
|
1402
|
+
return '\x20[' + _0x2daf26[_0x3bb45b(0x19b)] + '\x20attachment' + (_0x2daf26[_0x3bb45b(_0x100bda._0x214ed9)] > 0x1 ? 's' : '') + ':\x20' + _0x2daf26[_0x3bb45b(_0x100bda._0x5abd23)](_0x3366ab => _0x3366ab[_0x3bb45b(0x2a0)] + '\x20(id:' + _0x3366ab['id'] + ')')[_0x3bb45b(0x1dd)](',\x20') + _0x3bb45b(_0x100bda._0x479f15);
|
|
1403
|
+
}
|
|
1404
|
+
function formatCheckMessages(_0x1f3f9c) {
|
|
1405
|
+
const _0x3fdbcd = {
|
|
1406
|
+
_0x246907: 0x2db,
|
|
1407
|
+
_0x31cbba: 0x162,
|
|
1408
|
+
_0x3968de: 0x16b
|
|
1409
|
+
}, _0x180a57 = _0x28aee3;
|
|
1410
|
+
if (_0x1f3f9c[_0x180a57(0x19b)] === 0x0)
|
|
1411
|
+
return _0x180a57(0x244);
|
|
1412
|
+
return _0x1f3f9c['map'](_0x20ddf3 => {
|
|
1413
|
+
const _0x4c957a = _0x180a57, _0x14c1a7 = _0x20ddf3['senderType'] === _0x4c957a(0x1ed) ? _0x4c957a(0x21f) : '', _0x3fdb2b = _0x20ddf3[_0x4c957a(0x2e4)] && _0x20ddf3['kind'] !== _0x4c957a(0x21a) ? _0x4c957a(0x25b) + _0x20ddf3[_0x4c957a(0x2e4)] : '';
|
|
1414
|
+
return _0x4c957a(0x1a6) + _0x20ddf3[_0x4c957a(0x18c)] + _0x4c957a(_0x3fdbcd._0x246907) + _0x20ddf3[_0x4c957a(0x18d)]['slice'](0x0, 0x8) + _0x4c957a(0x2cf) + toLocalTime(_0x20ddf3[_0x4c957a(0x2c2)]) + _0x14c1a7 + _0x3fdb2b + _0x4c957a(0x1e7) + _0x20ddf3[_0x4c957a(0x1a1)] + ':\x20' + _0x20ddf3[_0x4c957a(_0x3fdbcd._0x31cbba)] + formatAttachmentSuffix(_0x20ddf3[_0x4c957a(_0x3fdbcd._0x3968de)]);
|
|
1415
|
+
})[_0x180a57(0x1dd)]('\x0a');
|
|
1416
|
+
}
|
|
1417
|
+
function formatHistory(_0x47cccf) {
|
|
1418
|
+
const _0xd1e2c2 = {
|
|
1419
|
+
_0x35fd47: 0x20b,
|
|
1420
|
+
_0x21c240: 0x19b,
|
|
1421
|
+
_0x446c9b: 0x28e,
|
|
1422
|
+
_0xf4bac0: 0x1b4,
|
|
1423
|
+
_0xe0562c: 0x2b4,
|
|
1424
|
+
_0x54b3a7: 0x263,
|
|
1425
|
+
_0x4a3982: 0x19b,
|
|
1426
|
+
_0xd47706: 0x2a3
|
|
1427
|
+
}, _0x219e4e = {
|
|
1428
|
+
_0x52c70c: 0x1d6,
|
|
1429
|
+
_0x485306: 0x1ed,
|
|
1430
|
+
_0x2b69f6: 0x2e4,
|
|
1431
|
+
_0x405411: 0x21a,
|
|
1432
|
+
_0x429916: 0x25b,
|
|
1433
|
+
_0x205e81: 0x2e4,
|
|
1434
|
+
_0x302a94: 0x18d,
|
|
1435
|
+
_0x88bde3: 0x162,
|
|
1436
|
+
_0x1d14f4: 0x16b
|
|
1437
|
+
}, _0x51eb1a = _0x28aee3;
|
|
1438
|
+
if (_0x47cccf[_0x51eb1a(_0xd1e2c2._0x35fd47)][_0x51eb1a(_0xd1e2c2._0x21c240)] === 0x0)
|
|
1439
|
+
return _0x51eb1a(_0xd1e2c2._0x446c9b) + _0x47cccf['channel'] + _0x51eb1a(0x167);
|
|
1440
|
+
const _0x413c57 = _0x47cccf[_0x51eb1a(0x20b)]['map'](_0x31f1c5 => {
|
|
1441
|
+
const _0x36c59c = _0x51eb1a, _0x373dfd = _0x31f1c5[_0x36c59c(_0x219e4e._0x52c70c)] === _0x36c59c(_0x219e4e._0x485306) ? _0x36c59c(0x21f) : '', _0x744a58 = _0x31f1c5[_0x36c59c(_0x219e4e._0x2b69f6)] && _0x31f1c5[_0x36c59c(0x2e4)] !== _0x36c59c(_0x219e4e._0x405411) ? _0x36c59c(_0x219e4e._0x429916) + _0x31f1c5[_0x36c59c(_0x219e4e._0x205e81)] : '';
|
|
1442
|
+
return '[seq=' + _0x31f1c5[_0x36c59c(0x1cc)] + _0x36c59c(0x2db) + _0x31f1c5[_0x36c59c(_0x219e4e._0x302a94)] + _0x36c59c(0x2cf) + toLocalTime(_0x31f1c5['createdAt']) + _0x373dfd + _0x744a58 + _0x36c59c(0x1e7) + _0x31f1c5[_0x36c59c(0x1a1)] + ':\x20' + _0x31f1c5[_0x36c59c(_0x219e4e._0x88bde3)] + formatAttachmentSuffix(_0x31f1c5[_0x36c59c(_0x219e4e._0x1d14f4)]);
|
|
1443
|
+
})[_0x51eb1a(0x1dd)]('\x0a'), _0x3a2531 = _0x47cccf[_0x51eb1a(_0xd1e2c2._0xf4bac0)] && _0x47cccf[_0x51eb1a(_0xd1e2c2._0xe0562c)] ? _0x51eb1a(0x22a) + _0x47cccf['messages'][_0x51eb1a(0x19b)] + _0x51eb1a(0x2b0) + _0x47cccf[_0x51eb1a(0x2b4)] + _0x51eb1a(_0xd1e2c2._0x54b3a7) : '';
|
|
1444
|
+
return _0x51eb1a(_0xd1e2c2._0x446c9b) + _0x47cccf[_0x51eb1a(0x198)] + '\x20(' + _0x47cccf['messages'][_0x51eb1a(_0xd1e2c2._0x4a3982)] + _0x51eb1a(_0xd1e2c2._0xd47706) + _0x413c57 + _0x3a2531;
|
|
1445
|
+
}
|
|
1446
|
+
function formatServerDirectory(_0x1c532b) {
|
|
1447
|
+
const _0x10be98 = {
|
|
1448
|
+
_0x92d4d1: 0x1d3,
|
|
1449
|
+
_0x2797d2: 0x272,
|
|
1450
|
+
_0x3555dc: 0x19c,
|
|
1451
|
+
_0x58d163: 0x19b,
|
|
1452
|
+
_0x5643fc: 0x1dd,
|
|
1453
|
+
_0x402e8c: 0x292,
|
|
1454
|
+
_0x1161a8: 0x19b,
|
|
1455
|
+
_0x102db9: 0x1c0,
|
|
1456
|
+
_0x262af8: 0x184
|
|
1457
|
+
}, _0x3f236c = _0x28aee3, _0x548bd5 = _0x1c532b['channels']['length'] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x92d4d1)][_0x3f236c(_0x10be98._0x2797d2)](_0x2a7cb7 => _0x2a7cb7[_0x3f236c(0x2ea)] ? _0x3f236c(0x2b8) + _0x2a7cb7['name'] + _0x3f236c(0x2cb) + _0x2a7cb7['description'] : '-\x20#' + _0x2a7cb7[_0x3f236c(0x1e5)])['join']('\x0a') : _0x3f236c(0x292), _0x310292 = _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(_0x10be98._0x58d163)] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(0x272)](_0x43f38f => '-\x20@' + _0x43f38f[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : _0x3f236c(_0x10be98._0x402e8c), _0x16ad94 = _0x1c532b['humans'][_0x3f236c(_0x10be98._0x1161a8)] > 0x0 ? _0x1c532b['humans']['map'](_0x57c717 => _0x3f236c(0x2a9) + _0x57c717[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : '(none)';
|
|
1458
|
+
return [
|
|
1459
|
+
_0x3f236c(0x26a) + _0x1c532b['serverName'],
|
|
1460
|
+
'',
|
|
1461
|
+
_0x3f236c(_0x10be98._0x102db9),
|
|
1462
|
+
_0x548bd5,
|
|
1463
|
+
'',
|
|
1464
|
+
'###\x20Agents',
|
|
1465
|
+
_0x310292,
|
|
1466
|
+
'',
|
|
1467
|
+
_0x3f236c(_0x10be98._0x262af8),
|
|
1468
|
+
_0x16ad94
|
|
1469
|
+
][_0x3f236c(_0x10be98._0x5643fc)]('\x0a');
|
|
1470
|
+
}
|
|
1471
|
+
function formatUploadResult(_0x197b77) {
|
|
1472
|
+
const _0x44e965 = {
|
|
1473
|
+
_0xce7480: 0x24b,
|
|
1474
|
+
_0x2f7780: 0x29d,
|
|
1475
|
+
_0xd79903: 0x1b9
|
|
1476
|
+
}, _0x2ad0ec = _0x28aee3;
|
|
1477
|
+
return 'File\x20uploaded:\x20' + _0x197b77[_0x2ad0ec(0x2a0)] + '\x20(' + (_0x197b77[_0x2ad0ec(_0x44e965._0xce7480)] / 0x400)[_0x2ad0ec(_0x44e965._0x2f7780)](0x1) + _0x2ad0ec(0x27e) + _0x197b77[_0x2ad0ec(0x285)] + _0x2ad0ec(_0x44e965._0xd79903);
|
|
1470
1478
|
}
|
|
1471
|
-
function
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1474
|
-
_0xa4f968: 0x10c
|
|
1475
|
-
}, _0x25fa1f = {
|
|
1476
|
-
_0x4f8515: 0x104,
|
|
1477
|
-
_0x2d3e00: 0x104,
|
|
1478
|
-
_0x198c17: 0x1b0,
|
|
1479
|
-
_0x47f872: 0x16c,
|
|
1480
|
-
_0x5f102a: 0x10b,
|
|
1481
|
-
_0x31f575: 0x101,
|
|
1482
|
-
_0x1b90c0: 0xbf
|
|
1483
|
-
}, _0x340337 = _0x2858e8;
|
|
1484
|
-
if (_0x50a743[_0x340337(_0x3881ea._0x237287)] === 0x0)
|
|
1485
|
-
return _0x340337(_0x3881ea._0xa4f968);
|
|
1486
|
-
return _0x50a743[_0x340337(0x158)](_0x514c4a => {
|
|
1487
|
-
const _0x1ea215 = _0x340337, _0x1ed378 = _0x514c4a['taskNumber'] == null ? '(legacy)' : _0x514c4a[_0x1ea215(0x131)] != null ? '#' + _0x514c4a[_0x1ea215(_0x25fa1f._0x4f8515)] + '.' + _0x514c4a['subtaskNumber'] : '#' + _0x514c4a[_0x1ea215(_0x25fa1f._0x2d3e00)], _0x5078ea = _0x514c4a[_0x1ea215(0xff)] ? '\x20message=' + _0x514c4a['messageId'] : '', _0x55c88d = _0xb6065b && _0x514c4a['taskNumber'] != null && !_0x514c4a[_0x1ea215(0x131)] && _0xb6065b[_0x1ea215(0x1d9)](_0x514c4a[_0x1ea215(_0x25fa1f._0x2d3e00)]) ? _0x1ea215(_0x25fa1f._0x198c17) : '', _0x469a1e = _0x514c4a[_0x1ea215(_0x25fa1f._0x47f872)] != null && _0x514c4a[_0x1ea215(_0x25fa1f._0x47f872)] > 0x0 ? '\x20(' + (_0x514c4a[_0x1ea215(_0x25fa1f._0x5f102a)] ?? 0x0) + '/' + _0x514c4a[_0x1ea215(0x16c)] + _0x1ea215(_0x25fa1f._0x31f575) : '';
|
|
1488
|
-
return _0x1ed378 + '\x20[' + _0x514c4a[_0x1ea215(_0x25fa1f._0x1b90c0)] + ']\x20' + _0x514c4a[_0x1ea215(0x192)] + _0x469a1e + _0x5078ea + _0x55c88d;
|
|
1489
|
-
})[_0x340337(0x6f)]('\x0a');
|
|
1479
|
+
function formatViewFileResult(_0x5bf0e8, _0x464ac5) {
|
|
1480
|
+
const _0x56709c = _0x28aee3;
|
|
1481
|
+
return _0x464ac5 ? _0x56709c(0x2ab) + _0x5bf0e8 : 'Downloaded\x20to:\x20' + _0x5bf0e8;
|
|
1490
1482
|
}
|
|
1491
|
-
function
|
|
1492
|
-
const
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1483
|
+
function formatTaskList(_0x3d7ccd, _0x183f4b) {
|
|
1484
|
+
const _0x54ca27 = {
|
|
1485
|
+
_0x469792: 0x249,
|
|
1486
|
+
_0x1db50b: 0x1dd
|
|
1487
|
+
}, _0x1d5caf = {
|
|
1488
|
+
_0x36e333: 0x2b6,
|
|
1489
|
+
_0x12a0dd: 0x18d,
|
|
1490
|
+
_0x43d2cd: 0x17b,
|
|
1491
|
+
_0x296541: 0x2b6,
|
|
1492
|
+
_0x466e86: 0x29f,
|
|
1493
|
+
_0x1ca451: 0x2a4,
|
|
1494
|
+
_0x5b825f: 0x2c1
|
|
1495
|
+
}, _0x576f38 = _0x28aee3;
|
|
1496
|
+
if (_0x3d7ccd[_0x576f38(0x19b)] === 0x0)
|
|
1497
|
+
return _0x576f38(_0x54ca27._0x469792);
|
|
1498
|
+
return _0x3d7ccd[_0x576f38(0x272)](_0xb16d87 => {
|
|
1499
|
+
const _0x46a938 = _0x576f38, _0xdef65c = _0xb16d87[_0x46a938(0x2b6)] == null ? _0x46a938(0x255) : _0xb16d87[_0x46a938(0x2e3)] != null ? '#' + _0xb16d87[_0x46a938(_0x1d5caf._0x36e333)] + '.' + _0xb16d87[_0x46a938(0x2e3)] : '#' + _0xb16d87[_0x46a938(_0x1d5caf._0x36e333)], _0x4c4eb8 = _0xb16d87[_0x46a938(0x18d)] ? _0x46a938(0x1c5) + _0xb16d87[_0x46a938(_0x1d5caf._0x12a0dd)] : '', _0x1f8864 = _0x183f4b && _0xb16d87[_0x46a938(0x2b6)] != null && !_0xb16d87[_0x46a938(0x2e3)] && _0x183f4b[_0x46a938(_0x1d5caf._0x43d2cd)](_0xb16d87[_0x46a938(_0x1d5caf._0x296541)]) ? '\x20executionMode=worker' : '', _0x4ed56d = _0xb16d87[_0x46a938(0x29f)] != null && _0xb16d87[_0x46a938(_0x1d5caf._0x466e86)] > 0x0 ? '\x20(' + (_0xb16d87[_0x46a938(0x280)] ?? 0x0) + '/' + _0xb16d87[_0x46a938(_0x1d5caf._0x466e86)] + _0x46a938(_0x1d5caf._0x1ca451) : '';
|
|
1500
|
+
return _0xdef65c + '\x20[' + _0xb16d87[_0x46a938(0x1b0)] + ']\x20' + _0xb16d87[_0x46a938(_0x1d5caf._0x5b825f)] + _0x4ed56d + _0x4c4eb8 + _0x1f8864;
|
|
1501
|
+
})[_0x576f38(_0x54ca27._0x1db50b)]('\x0a');
|
|
1504
1502
|
}
|
|
1505
|
-
function
|
|
1506
|
-
|
|
1507
|
-
const
|
|
1508
|
-
let
|
|
1509
|
-
if (
|
|
1510
|
-
var
|
|
1511
|
-
const
|
|
1512
|
-
let
|
|
1513
|
-
for (let
|
|
1514
|
-
|
|
1503
|
+
function _0x41c3(_0x3e36fe, _0x3f1235) {
|
|
1504
|
+
_0x3e36fe = _0x3e36fe - 0x160;
|
|
1505
|
+
const _0x2e92a6 = _0x2e92();
|
|
1506
|
+
let _0x41c3e3 = _0x2e92a6[_0x3e36fe];
|
|
1507
|
+
if (_0x41c3['GnMGDk'] === undefined) {
|
|
1508
|
+
var _0x10add8 = function (_0x4b27b9) {
|
|
1509
|
+
const _0x3b683e = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1510
|
+
let _0x35e736 = '', _0x1c7992 = '';
|
|
1511
|
+
for (let _0x1c495b = 0x0, _0x328e7b, _0x29663a, _0x2a02f8 = 0x0; _0x29663a = _0x4b27b9['charAt'](_0x2a02f8++); ~_0x29663a && (_0x328e7b = _0x1c495b % 0x4 ? _0x328e7b * 0x40 + _0x29663a : _0x29663a, _0x1c495b++ % 0x4) ? _0x35e736 += String['fromCharCode'](0xff & _0x328e7b >> (-0x2 * _0x1c495b & 0x6)) : 0x0) {
|
|
1512
|
+
_0x29663a = _0x3b683e['indexOf'](_0x29663a);
|
|
1515
1513
|
}
|
|
1516
|
-
for (let
|
|
1517
|
-
|
|
1514
|
+
for (let _0x14ee6e = 0x0, _0x12546d = _0x35e736['length']; _0x14ee6e < _0x12546d; _0x14ee6e++) {
|
|
1515
|
+
_0x1c7992 += '%' + ('00' + _0x35e736['charCodeAt'](_0x14ee6e)['toString'](0x10))['slice'](-0x2);
|
|
1518
1516
|
}
|
|
1519
|
-
return decodeURIComponent(
|
|
1517
|
+
return decodeURIComponent(_0x1c7992);
|
|
1520
1518
|
};
|
|
1521
|
-
|
|
1519
|
+
_0x41c3['FWxGIC'] = _0x10add8, _0x41c3['OyedTw'] = {}, _0x41c3['GnMGDk'] = !![];
|
|
1522
1520
|
}
|
|
1523
|
-
const
|
|
1524
|
-
return !
|
|
1521
|
+
const _0x8d698e = _0x2e92a6[0x0], _0x5420ec = _0x3e36fe + _0x8d698e, _0x27b8b7 = _0x41c3['OyedTw'][_0x5420ec];
|
|
1522
|
+
return !_0x27b8b7 ? (_0x41c3e3 = _0x41c3['FWxGIC'](_0x41c3e3), _0x41c3['OyedTw'][_0x5420ec] = _0x41c3e3) : _0x41c3e3 = _0x27b8b7, _0x41c3e3;
|
|
1525
1523
|
}
|
|
1526
|
-
function
|
|
1527
|
-
const
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
},
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1524
|
+
function formatCreatedTasks(_0x2ca879) {
|
|
1525
|
+
const _0x3e4462 = {
|
|
1526
|
+
_0x4edde0: 0x19b,
|
|
1527
|
+
_0x661628: 0x272
|
|
1528
|
+
}, _0x10d1fb = {
|
|
1529
|
+
_0x12764c: 0x1c5,
|
|
1530
|
+
_0x1b4f8a: 0x2c1
|
|
1531
|
+
}, _0x2c6db9 = _0x28aee3;
|
|
1532
|
+
if (_0x2ca879[_0x2c6db9(_0x3e4462._0x4edde0)] === 0x0)
|
|
1533
|
+
return _0x2c6db9(0x28c);
|
|
1534
|
+
return _0x2ca879[_0x2c6db9(_0x3e4462._0x661628)](_0x2ee3db => {
|
|
1535
|
+
const _0x32617 = _0x2c6db9, _0xc376a5 = _0x2ee3db['taskNumber'] == null ? '(legacy)' : _0x2ee3db['subtaskNumber'] != null ? '#' + _0x2ee3db['taskNumber'] + '.' + _0x2ee3db['subtaskNumber'] : '#' + _0x2ee3db[_0x32617(0x2b6)], _0x275476 = _0x2ee3db[_0x32617(0x18d)] ? _0x32617(_0x10d1fb._0x12764c) + _0x2ee3db[_0x32617(0x18d)] : '';
|
|
1536
|
+
return _0xc376a5 + '\x20' + _0x2ee3db[_0x32617(_0x10d1fb._0x1b4f8a)] + _0x275476;
|
|
1537
|
+
})[_0x2c6db9(0x1dd)]('\x0a');
|
|
1538
|
+
}
|
|
1539
|
+
function formatClaimTaskLabel(_0x21e71a, _0x2561ca) {
|
|
1540
|
+
if (_0x21e71a == null)
|
|
1541
|
+
return '(legacy)';
|
|
1542
|
+
return _0x2561ca != null ? '#' + _0x21e71a + '.' + _0x2561ca : '#' + _0x21e71a;
|
|
1543
|
+
}
|
|
1544
|
+
function formatClaimTaskResults(_0x230983) {
|
|
1545
|
+
const _0x1b57a4 = { _0xe0ce59: 0x28f }, _0x38c796 = {
|
|
1546
|
+
_0x25693b: 0x258,
|
|
1547
|
+
_0x117488: 0x2b6,
|
|
1548
|
+
_0xb1f565: 0x2e3,
|
|
1549
|
+
_0x37533b: 0x2be,
|
|
1550
|
+
_0x3dad44: 0x23d,
|
|
1551
|
+
_0x51a247: 0x208,
|
|
1552
|
+
_0x51ff4c: 0x2a1,
|
|
1553
|
+
_0x553c77: 0x1e2,
|
|
1554
|
+
_0x3669ba: 0x22e,
|
|
1555
|
+
_0x5d4531: 0x1b5,
|
|
1556
|
+
_0x2330d0: 0x23e,
|
|
1557
|
+
_0xa8a259: 0x1dd,
|
|
1558
|
+
_0x3484d8: 0x180,
|
|
1559
|
+
_0x41777f: 0x265,
|
|
1560
|
+
_0x1275d3: 0x163
|
|
1561
|
+
}, _0x1ed6dc = _0x28aee3;
|
|
1562
|
+
if (_0x230983[_0x1ed6dc(0x19b)] === 0x0)
|
|
1563
|
+
return _0x1ed6dc(_0x1b57a4._0xe0ce59);
|
|
1564
|
+
return _0x230983[_0x1ed6dc(0x272)](_0x5a3fa4 => {
|
|
1565
|
+
const _0x160cfe = _0x1ed6dc;
|
|
1566
|
+
if (_0x5a3fa4[_0x160cfe(_0x38c796._0x25693b)]) {
|
|
1567
|
+
const _0x110105 = formatClaimTaskLabel(_0x5a3fa4[_0x160cfe(_0x38c796._0x117488)], _0x5a3fa4[_0x160cfe(_0x38c796._0xb1f565)]), _0x6e7b1c = _0x5a3fa4['messageId'] ? '\x20message=' + _0x5a3fa4['messageId'] : '';
|
|
1568
|
+
if (_0x5a3fa4['workerHandoff']) {
|
|
1569
|
+
const _0x580c8f = [
|
|
1570
|
+
_0x160cfe(_0x38c796._0x37533b),
|
|
1571
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x3dad44)] ? _0x160cfe(_0x38c796._0x51a247) : null,
|
|
1572
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x51ff4c)] ? 'executionMode=' + _0x5a3fa4[_0x160cfe(_0x38c796._0x51ff4c)] : null,
|
|
1573
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x553c77)] ? 'threadTarget=' + _0x5a3fa4['threadTarget'] : null,
|
|
1574
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x3669ba)] ? _0x160cfe(_0x38c796._0x5d4531) + _0x5a3fa4[_0x160cfe(0x22e)] : null
|
|
1575
|
+
][_0x160cfe(_0x38c796._0x2330d0)](Boolean)[_0x160cfe(_0x38c796._0xa8a259)]('\x20');
|
|
1576
|
+
return _0x110105 + _0x160cfe(0x213) + _0x6e7b1c + '\x20' + _0x580c8f + _0x160cfe(_0x38c796._0x3484d8);
|
|
1560
1577
|
}
|
|
1561
|
-
const
|
|
1562
|
-
return
|
|
1578
|
+
const _0x56a588 = _0x5a3fa4[_0x160cfe(_0x38c796._0x41777f)] ? _0x160cfe(_0x38c796._0x1275d3) + _0x5a3fa4['workerHandoffError'] : '';
|
|
1579
|
+
return _0x110105 + _0x160cfe(0x213) + _0x6e7b1c + _0x56a588;
|
|
1563
1580
|
}
|
|
1564
|
-
const
|
|
1565
|
-
return
|
|
1566
|
-
})[
|
|
1581
|
+
const _0x1bca68 = _0x5a3fa4[_0x160cfe(_0x38c796._0x117488)] == null ? _0x5a3fa4['messageId'] ?? _0x160cfe(0x186) : formatClaimTaskLabel(_0x5a3fa4['taskNumber'], _0x5a3fa4[_0x160cfe(_0x38c796._0xb1f565)]);
|
|
1582
|
+
return _0x1bca68 + _0x160cfe(0x2d3) + (_0x5a3fa4['reason'] ?? 'claim\x20failed');
|
|
1583
|
+
})[_0x1ed6dc(0x1dd)]('\x0a');
|
|
1567
1584
|
}
|
|
1568
|
-
function formatUnclaimTaskResult(
|
|
1569
|
-
const
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
}, _0x13ebfb = _0x2858e8, _0x40435d = _0x5b51ae[_0x13ebfb(0x104)] == null ? _0x13ebfb(_0x240de0._0x582998) : _0x5b51ae['subtaskNumber'] != null ? '#' + _0x5b51ae[_0x13ebfb(_0x240de0._0x256b15)] + '.' + _0x5b51ae[_0x13ebfb(_0x240de0._0xaa089d)] : '#' + _0x5b51ae[_0x13ebfb(_0x240de0._0x199c85)];
|
|
1575
|
-
return _0x40435d + _0x13ebfb(0x169) + _0x5b51ae[_0x13ebfb(0xbf)];
|
|
1585
|
+
function formatUnclaimTaskResult(_0x254eb7) {
|
|
1586
|
+
const _0x5560a8 = {
|
|
1587
|
+
_0x5ed9e1: 0x2e3,
|
|
1588
|
+
_0x19a1d8: 0x2b6
|
|
1589
|
+
}, _0x9fb755 = _0x28aee3, _0x56ab52 = _0x254eb7[_0x9fb755(0x2b6)] == null ? _0x9fb755(0x255) : _0x254eb7[_0x9fb755(0x2e3)] != null ? '#' + _0x254eb7['taskNumber'] + '.' + _0x254eb7[_0x9fb755(_0x5560a8._0x5ed9e1)] : '#' + _0x254eb7[_0x9fb755(_0x5560a8._0x19a1d8)];
|
|
1590
|
+
return _0x56ab52 + '\x20status=' + _0x254eb7[_0x9fb755(0x1b0)];
|
|
1576
1591
|
}
|
|
1577
|
-
function formatUpdateTaskStatusResult(
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1592
|
+
function formatUpdateTaskStatusResult(_0x28523c) {
|
|
1593
|
+
const _0x2ceda7 = {
|
|
1594
|
+
_0x1d8732: 0x255,
|
|
1595
|
+
_0x549c6f: 0x2b6,
|
|
1596
|
+
_0x2f4472: 0x2e3,
|
|
1597
|
+
_0xbef678: 0x24c
|
|
1598
|
+
}, _0x10d4d8 = _0x28aee3, _0x5e157b = _0x28523c['taskNumber'] == null ? _0x10d4d8(_0x2ceda7._0x1d8732) : _0x28523c[_0x10d4d8(0x2e3)] != null ? '#' + _0x28523c[_0x10d4d8(_0x2ceda7._0x549c6f)] + '.' + _0x28523c[_0x10d4d8(_0x2ceda7._0x2f4472)] : '#' + _0x28523c['taskNumber'];
|
|
1599
|
+
return _0x5e157b + _0x10d4d8(_0x2ceda7._0xbef678) + _0x28523c[_0x10d4d8(0x1b0)];
|
|
1583
1600
|
}
|
|
1584
1601
|
function getChatBridgeToolDefinitions() {
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1602
|
+
const _0x523c64 = {
|
|
1603
|
+
_0x110ebf: 0x254,
|
|
1604
|
+
_0x9660f9: 0x2b2,
|
|
1605
|
+
_0x25ec4a: 0x1f4,
|
|
1606
|
+
_0x1162ad: 0x2d1,
|
|
1607
|
+
_0x4917b9: 0x282,
|
|
1608
|
+
_0x465d80: 0x260
|
|
1609
|
+
}, _0x3bfe22 = _0x28aee3;
|
|
1591
1610
|
return [
|
|
1592
|
-
{ 'name':
|
|
1593
|
-
{ 'name':
|
|
1594
|
-
{ 'name':
|
|
1595
|
-
{ 'name':
|
|
1596
|
-
{ 'name':
|
|
1597
|
-
{ 'name':
|
|
1598
|
-
{ 'name':
|
|
1599
|
-
{ 'name':
|
|
1600
|
-
{ 'name':
|
|
1601
|
-
{ 'name':
|
|
1602
|
-
{ 'name':
|
|
1611
|
+
{ 'name': _0x3bfe22(_0x523c64._0x110ebf) },
|
|
1612
|
+
{ 'name': 'check_messages' },
|
|
1613
|
+
{ 'name': _0x3bfe22(_0x523c64._0x9660f9) },
|
|
1614
|
+
{ 'name': _0x3bfe22(_0x523c64._0x25ec4a) },
|
|
1615
|
+
{ 'name': 'upload_file' },
|
|
1616
|
+
{ 'name': _0x3bfe22(_0x523c64._0x1162ad) },
|
|
1617
|
+
{ 'name': _0x3bfe22(0x1cb) },
|
|
1618
|
+
{ 'name': _0x3bfe22(0x1e8) },
|
|
1619
|
+
{ 'name': _0x3bfe22(0x183) },
|
|
1620
|
+
{ 'name': _0x3bfe22(_0x523c64._0x4917b9) },
|
|
1621
|
+
{ 'name': _0x3bfe22(0x1f8) },
|
|
1603
1622
|
{ 'name': 'get_worker_status' },
|
|
1604
|
-
{ 'name':
|
|
1605
|
-
{ 'name':
|
|
1606
|
-
{ 'name':
|
|
1623
|
+
{ 'name': _0x3bfe22(_0x523c64._0x465d80) },
|
|
1624
|
+
{ 'name': 'escalate_to_main' },
|
|
1625
|
+
{ 'name': _0x3bfe22(0x174) }
|
|
1607
1626
|
];
|
|
1608
1627
|
}
|
|
1609
|
-
function createChatBridgeHandlers(
|
|
1610
|
-
const
|
|
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
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1628
|
+
function createChatBridgeHandlers(_0x274237) {
|
|
1629
|
+
const _0x48ab59 = {
|
|
1630
|
+
_0xfd6cc3: 0x247,
|
|
1631
|
+
_0x46f70e: 0x161,
|
|
1632
|
+
_0x2caa7d: 0x192,
|
|
1633
|
+
_0x2e0a65: 0x235,
|
|
1634
|
+
_0x455ec2: 0x1b3
|
|
1635
|
+
}, _0x3dbfb8 = {
|
|
1636
|
+
_0x3075bf: 0x248,
|
|
1637
|
+
_0x534c56: 0x176,
|
|
1638
|
+
_0xe1fa6: 0x2dd,
|
|
1639
|
+
_0x9a80c8: 0x176,
|
|
1640
|
+
_0x1e863b: 0x1a2,
|
|
1641
|
+
_0x5f36d1: 0x26d,
|
|
1642
|
+
_0x5f4174: 0x16e
|
|
1643
|
+
}, _0x3d6e5f = {
|
|
1644
|
+
_0x37a09b: 0x246,
|
|
1645
|
+
_0xcb99cf: 0x2ac,
|
|
1646
|
+
_0x20bab2: 0x161,
|
|
1647
|
+
_0x2599e3: 0x192,
|
|
1648
|
+
_0x2757a1: 0x26d
|
|
1649
|
+
}, _0x96f90b = {
|
|
1650
|
+
_0x1310ba: 0x248,
|
|
1651
|
+
_0xa703e2: 0x182,
|
|
1652
|
+
_0x1586f5: 0x192,
|
|
1653
|
+
_0x22014a: 0x25d,
|
|
1654
|
+
_0x1854c3: 0x192,
|
|
1655
|
+
_0xd4631a: 0x28d,
|
|
1656
|
+
_0x1f11d7: 0x1b0
|
|
1657
|
+
}, _0x39f9ce = {
|
|
1658
|
+
_0x2a6353: 0x196,
|
|
1659
|
+
_0x515f1d: 0x229,
|
|
1660
|
+
_0x571b67: 0x19f,
|
|
1661
|
+
_0x23f25d: 0x264
|
|
1662
|
+
}, _0x56a6f5 = {
|
|
1663
|
+
_0x149393: 0x26b,
|
|
1664
|
+
_0x25b28d: 0x198
|
|
1665
|
+
}, _0x13d98e = {
|
|
1666
|
+
_0x4005ac: 0x1f8,
|
|
1667
|
+
_0x519417: 0x198
|
|
1668
|
+
}, _0x101946 = {
|
|
1669
|
+
_0x171b18: 0x282,
|
|
1670
|
+
_0x555bb7: 0x2b3,
|
|
1671
|
+
_0x4a5af3: 0x196,
|
|
1672
|
+
_0x579fc5: 0x20a
|
|
1673
|
+
}, _0x26766d = {
|
|
1674
|
+
_0x1825d8: 0x1aa,
|
|
1675
|
+
_0x5255b9: 0x198,
|
|
1676
|
+
_0x1514aa: 0x16d,
|
|
1677
|
+
_0x56ca94: 0x270,
|
|
1678
|
+
_0x5c0202: 0x270,
|
|
1679
|
+
_0x2b8010: 0x222,
|
|
1680
|
+
_0x133d26: 0x2c4,
|
|
1681
|
+
_0x22a37a: 0x272
|
|
1682
|
+
}, _0xb4b5e2 = {
|
|
1683
|
+
_0x2ffe85: 0x18d,
|
|
1684
|
+
_0x4232d5: 0x198
|
|
1685
|
+
}, _0xea2267 = {
|
|
1686
|
+
_0x2e4276: 0x1e8,
|
|
1687
|
+
_0x3cd830: 0x253,
|
|
1688
|
+
_0x7138f6: 0x1d2
|
|
1689
|
+
}, _0x398240 = {
|
|
1690
|
+
_0x35e1ca: 0x196,
|
|
1691
|
+
_0xb34388: 0x248,
|
|
1692
|
+
_0x25021d: 0x248,
|
|
1693
|
+
_0x4bfa7b: 0x176,
|
|
1694
|
+
_0x10f605: 0x198,
|
|
1695
|
+
_0x1c0106: 0x291,
|
|
1696
|
+
_0x3e475e: 0x240,
|
|
1697
|
+
_0x44b764: 0x274,
|
|
1698
|
+
_0x340b2c: 0x1d2
|
|
1699
|
+
}, _0x4e4c14 = { _0x247b8a: 0x1c1 }, _0x2f3946 = { _0x3ec314: 0x196 }, _0xe68f8a = {
|
|
1700
|
+
_0x152a08: 0x1aa,
|
|
1701
|
+
_0x5b57db: 0x248,
|
|
1702
|
+
_0x13732e: 0x196,
|
|
1703
|
+
_0xc45b79: 0x18c,
|
|
1704
|
+
_0x6540e9: 0x1a0,
|
|
1705
|
+
_0x5f3200: 0x2b6,
|
|
1706
|
+
_0x4c624b: 0x255,
|
|
1707
|
+
_0x29d787: 0x1a0,
|
|
1708
|
+
_0x31cae1: 0x209,
|
|
1709
|
+
_0x38c54c: 0x1fa,
|
|
1710
|
+
_0x4efdfe: 0x162,
|
|
1711
|
+
_0x36453d: 0x165,
|
|
1712
|
+
_0xdaedf2: 0x2d5,
|
|
1713
|
+
_0xfcb71e: 0x199,
|
|
1714
|
+
_0x2ba279: 0x161,
|
|
1715
|
+
_0x356598: 0x2d5,
|
|
1716
|
+
_0x2c11ce: 0x1a2,
|
|
1717
|
+
_0xd3e24c: 0x28b,
|
|
1718
|
+
_0x5cbdd7: 0x22b,
|
|
1719
|
+
_0x16d611: 0x290,
|
|
1720
|
+
_0xe4b00: 0x1dd,
|
|
1721
|
+
_0x3e42d6: 0x27d,
|
|
1722
|
+
_0x597007: 0x2bc
|
|
1723
|
+
}, _0x2d28c4 = {
|
|
1724
|
+
_0x58369c: 0x248,
|
|
1725
|
+
_0x38c28f: 0x297,
|
|
1726
|
+
_0x359f0f: 0x176,
|
|
1727
|
+
_0x4eee7f: 0x1a2,
|
|
1728
|
+
_0x40dc14: 0x178,
|
|
1729
|
+
_0xcb022f: 0x1cf
|
|
1730
|
+
}, _0x5c461d = {
|
|
1731
|
+
_0x22fb02: 0x176,
|
|
1732
|
+
_0x224cf2: 0x205,
|
|
1733
|
+
_0x328a54: 0x291
|
|
1734
|
+
}, _0x33b5e8 = {
|
|
1735
|
+
_0x2625ee: 0x1aa,
|
|
1736
|
+
_0x33522a: 0x1d9,
|
|
1737
|
+
_0x45e909: 0x198,
|
|
1738
|
+
_0x12ace6: 0x236,
|
|
1739
|
+
_0x115e3d: 0x29e,
|
|
1740
|
+
_0x12a26a: 0x20b,
|
|
1741
|
+
_0xa5d903: 0x274,
|
|
1742
|
+
_0x59746c: 0x2b6,
|
|
1743
|
+
_0x49d284: 0x2cf,
|
|
1744
|
+
_0x456d34: 0x245,
|
|
1745
|
+
_0x5a8a27: 0x162,
|
|
1746
|
+
_0x2c5926: 0x18d,
|
|
1747
|
+
_0x5e2dba: 0x1dd,
|
|
1748
|
+
_0xaa0c70: 0x199,
|
|
1749
|
+
_0x42c54b: 0x161,
|
|
1750
|
+
_0x3033ae: 0x176,
|
|
1751
|
+
_0x59ea9a: 0x2d5,
|
|
1752
|
+
_0x286c26: 0x194,
|
|
1753
|
+
_0x1fadda: 0x257,
|
|
1754
|
+
_0x3fefa5: 0x1a2,
|
|
1755
|
+
_0x3c29d0: 0x26d,
|
|
1756
|
+
_0x42f989: 0x2d6,
|
|
1757
|
+
_0x14a1c8: 0x22b,
|
|
1758
|
+
_0x5428ab: 0x1ae
|
|
1759
|
+
}, _0x266de6 = {
|
|
1760
|
+
_0x179109: 0x1a7,
|
|
1761
|
+
_0x17bb39: 0x210,
|
|
1762
|
+
_0x5ab406: 0x1ee
|
|
1763
|
+
}, _0x4fefa1 = _0x28aee3;
|
|
1764
|
+
function _0x30ed5d(_0x508404, _0x869e64) {
|
|
1765
|
+
const _0x59e54d = _0x41c3;
|
|
1766
|
+
if (!_0x274237[_0x59e54d(0x1aa)])
|
|
1728
1767
|
return;
|
|
1729
|
-
if (!
|
|
1730
|
-
throw new Error(
|
|
1731
|
-
if (
|
|
1732
|
-
throw new Error(
|
|
1768
|
+
if (!_0x274237[_0x59e54d(_0x266de6._0x179109)])
|
|
1769
|
+
throw new Error(_0x508404 + _0x59e54d(_0x266de6._0x17bb39));
|
|
1770
|
+
if (_0x869e64 !== _0x274237['workerThreadTarget'])
|
|
1771
|
+
throw new Error(_0x508404 + _0x59e54d(0x2d8) + _0x274237[_0x59e54d(_0x266de6._0x179109)] + _0x59e54d(_0x266de6._0x5ab406) + _0x869e64);
|
|
1733
1772
|
}
|
|
1734
|
-
async function
|
|
1735
|
-
const
|
|
1736
|
-
if (!
|
|
1773
|
+
async function _0x38245e(_0xd7ced4) {
|
|
1774
|
+
const _0x11f141 = _0x41c3;
|
|
1775
|
+
if (!_0x274237['daemonLocalUrl'] || !_0x274237[_0x11f141(0x176)] || _0x274237[_0x11f141(_0x33b5e8._0x2625ee)] || _0x274237[_0x11f141(_0x33b5e8._0x33522a)] !== !![])
|
|
1737
1776
|
return null;
|
|
1738
|
-
const
|
|
1739
|
-
if (
|
|
1777
|
+
const _0x4289e0 = parseTarget(_0xd7ced4[_0x11f141(_0x33b5e8._0x45e909)]);
|
|
1778
|
+
if (_0x4289e0[_0x11f141(0x2e4)] !== _0x11f141(0x198))
|
|
1740
1779
|
return null;
|
|
1741
|
-
const
|
|
1742
|
-
let
|
|
1780
|
+
const _0xc6554 = _0xd7ced4[_0x11f141(0x29e)] != null ? _0x4289e0[_0x11f141(_0x33b5e8._0x12ace6)] + ':t' + _0xd7ced4[_0x11f141(_0x33b5e8._0x115e3d)] : _0x4289e0[_0x11f141(0x236)] + ':' + _0xd7ced4[_0x11f141(0x18d)];
|
|
1781
|
+
let _0x374d15;
|
|
1743
1782
|
try {
|
|
1744
|
-
const
|
|
1745
|
-
'channel':
|
|
1783
|
+
const _0x2f88c6 = await _0x274237['client'][_0x11f141(0x1c1)]({
|
|
1784
|
+
'channel': _0xc6554,
|
|
1746
1785
|
'limit': 0x14
|
|
1747
1786
|
});
|
|
1748
|
-
|
|
1787
|
+
_0x374d15 = _0x2f88c6[_0x11f141(_0x33b5e8._0x12a26a)][_0x11f141(_0x33b5e8._0xa5d903)](_0x1121ac => _0x1121ac[_0x11f141(0x18d)] === _0xd7ced4['messageId']);
|
|
1749
1788
|
} catch {
|
|
1750
|
-
|
|
1789
|
+
_0x374d15 = void 0x0;
|
|
1751
1790
|
}
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1791
|
+
const _0x3facb7 = _0xd7ced4[_0x11f141(0x2b6)] == null ? '(legacy)' : '#' + _0xd7ced4[_0x11f141(_0x33b5e8._0x59746c)], _0x46ec4d = [
|
|
1792
|
+
'[target=' + _0xc6554 + '\x20msg=' + _0xd7ced4[_0x11f141(0x18d)][_0x11f141(0x240)](0x0, 0x8) + _0x11f141(_0x33b5e8._0x49d284) + new Date()[_0x11f141(_0x33b5e8._0x456d34)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x3facb7 + _0x11f141(0x29a),
|
|
1754
1793
|
'',
|
|
1755
|
-
|
|
1794
|
+
_0x374d15 ? _0x11f141(0x262) + _0x374d15[_0x11f141(_0x33b5e8._0x5a8a27)] : _0x11f141(0x21c) + _0xd7ced4[_0x11f141(_0x33b5e8._0x2c5926)],
|
|
1756
1795
|
'',
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
][
|
|
1760
|
-
'method':
|
|
1761
|
-
'headers': { 'Content-Type':
|
|
1762
|
-
'body': JSON[
|
|
1763
|
-
'agent_id':
|
|
1764
|
-
'thread_target':
|
|
1796
|
+
_0x11f141(0x28a) + _0xc6554,
|
|
1797
|
+
_0x11f141(0x276)
|
|
1798
|
+
][_0x11f141(_0x33b5e8._0x5e2dba)]('\x0a'), _0x4c0c0a = await fetch(_0x274237[_0x11f141(0x248)] + '/workers/deliver', {
|
|
1799
|
+
'method': _0x11f141(_0x33b5e8._0xaa0c70),
|
|
1800
|
+
'headers': { 'Content-Type': _0x11f141(0x287) },
|
|
1801
|
+
'body': JSON[_0x11f141(_0x33b5e8._0x42c54b)]({
|
|
1802
|
+
'agent_id': _0x274237[_0x11f141(_0x33b5e8._0x3033ae)],
|
|
1803
|
+
'thread_target': _0xc6554,
|
|
1765
1804
|
'spawn_packet': {
|
|
1766
|
-
'replyTarget':
|
|
1767
|
-
...
|
|
1805
|
+
'replyTarget': _0xc6554,
|
|
1806
|
+
..._0xd7ced4['taskId'] ? { 'taskId': _0xd7ced4[_0x11f141(_0x33b5e8._0x59ea9a)] } : _0xd7ced4[_0x11f141(_0x33b5e8._0x59746c)] != null ? { 'taskId': _0x11f141(_0x33b5e8._0x286c26) + _0xd7ced4[_0x11f141(_0x33b5e8._0x59746c)] } : {}
|
|
1768
1807
|
},
|
|
1769
1808
|
'payload': {
|
|
1770
|
-
'mode':
|
|
1771
|
-
'text':
|
|
1809
|
+
'mode': _0x11f141(_0x33b5e8._0x1fadda),
|
|
1810
|
+
'text': _0x46ec4d
|
|
1772
1811
|
}
|
|
1773
1812
|
})
|
|
1774
|
-
}),
|
|
1775
|
-
if (!
|
|
1776
|
-
throw new Error(
|
|
1813
|
+
}), _0x133ddd = await _0x4c0c0a[_0x11f141(_0x33b5e8._0x3fefa5)]();
|
|
1814
|
+
if (!_0x133ddd['ok'])
|
|
1815
|
+
throw new Error(_0x133ddd[_0x11f141(_0x33b5e8._0x3c29d0)] ?? _0x11f141(_0x33b5e8._0x42f989));
|
|
1777
1816
|
return {
|
|
1778
1817
|
'stopMain': !![],
|
|
1779
|
-
'threadTarget':
|
|
1780
|
-
'workerDisposition':
|
|
1818
|
+
'threadTarget': _0xc6554,
|
|
1819
|
+
'workerDisposition': _0x133ddd['disposition'] === 'queued' ? _0x11f141(_0x33b5e8._0x14a1c8) : _0x11f141(0x290),
|
|
1781
1820
|
'workerHandoff': !![],
|
|
1782
|
-
'workerSessionId':
|
|
1783
|
-
'executionMode':
|
|
1821
|
+
'workerSessionId': _0x133ddd[_0x11f141(_0x33b5e8._0x5428ab)] ?? '',
|
|
1822
|
+
'executionMode': _0x11f141(0x1d1)
|
|
1784
1823
|
};
|
|
1785
1824
|
}
|
|
1786
|
-
async function
|
|
1787
|
-
const
|
|
1788
|
-
if (!
|
|
1825
|
+
async function _0x2ccf0d() {
|
|
1826
|
+
const _0x151764 = _0x41c3;
|
|
1827
|
+
if (!_0x274237['daemonLocalUrl'] || !_0x274237['agentId'] || _0x274237[_0x151764(0x1aa)])
|
|
1789
1828
|
return null;
|
|
1790
1829
|
try {
|
|
1791
|
-
const
|
|
1792
|
-
if (!
|
|
1830
|
+
const _0x23950f = await fetch(_0x274237[_0x151764(0x248)] + _0x151764(0x297) + encodeURIComponent(_0x274237[_0x151764(_0x5c461d._0x22fb02)])), _0x1a02f6 = await _0x23950f[_0x151764(0x1a2)]();
|
|
1831
|
+
if (!_0x1a02f6['ok'])
|
|
1793
1832
|
return null;
|
|
1794
|
-
const
|
|
1795
|
-
for (const
|
|
1796
|
-
|
|
1833
|
+
const _0x2f13f9 = new Set();
|
|
1834
|
+
for (const _0x4dcbd8 of _0x1a02f6['workers']) {
|
|
1835
|
+
_0x4dcbd8['status'] !== _0x151764(_0x5c461d._0x224cf2) && _0x4dcbd8['thread_target'] && _0x2f13f9['add'](_0x4dcbd8[_0x151764(_0x5c461d._0x328a54)]);
|
|
1797
1836
|
}
|
|
1798
|
-
return
|
|
1837
|
+
return _0x2f13f9['size'] > 0x0 ? _0x2f13f9 : null;
|
|
1799
1838
|
} catch {
|
|
1800
1839
|
return null;
|
|
1801
1840
|
}
|
|
1802
1841
|
}
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1842
|
+
const _0x33e217 = new Set([
|
|
1843
|
+
_0x4fefa1(0x259),
|
|
1844
|
+
_0x4fefa1(0x23b),
|
|
1845
|
+
'waiting_input'
|
|
1807
1846
|
]);
|
|
1808
|
-
async function
|
|
1809
|
-
const
|
|
1810
|
-
if (!
|
|
1847
|
+
async function _0x15ea3b() {
|
|
1848
|
+
const _0x5f4930 = _0x4fefa1;
|
|
1849
|
+
if (!_0x274237[_0x5f4930(0x248)] || !_0x274237[_0x5f4930(0x176)] || _0x274237['workerMode'])
|
|
1811
1850
|
return null;
|
|
1812
1851
|
try {
|
|
1813
|
-
const
|
|
1814
|
-
if (!
|
|
1852
|
+
const _0x260700 = await fetch(_0x274237[_0x5f4930(_0x2d28c4._0x58369c)] + _0x5f4930(_0x2d28c4._0x38c28f) + encodeURIComponent(_0x274237[_0x5f4930(_0x2d28c4._0x359f0f)])), _0x5c2d37 = await _0x260700[_0x5f4930(_0x2d28c4._0x4eee7f)]();
|
|
1853
|
+
if (!_0x5c2d37['ok'])
|
|
1815
1854
|
return null;
|
|
1816
|
-
const
|
|
1817
|
-
for (const
|
|
1818
|
-
|
|
1855
|
+
const _0x33a2ee = new Set();
|
|
1856
|
+
for (const _0x3a02f6 of _0x5c2d37[_0x5f4930(_0x2d28c4._0x40dc14)]) {
|
|
1857
|
+
_0x33e217['has'](_0x3a02f6[_0x5f4930(0x1b0)]) && _0x3a02f6[_0x5f4930(0x291)] && _0x33a2ee[_0x5f4930(0x2e2)](_0x3a02f6[_0x5f4930(0x291)]);
|
|
1819
1858
|
}
|
|
1820
|
-
return
|
|
1859
|
+
return _0x33a2ee[_0x5f4930(_0x2d28c4._0xcb022f)] > 0x0 ? _0x33a2ee : null;
|
|
1821
1860
|
} catch {
|
|
1822
1861
|
return null;
|
|
1823
1862
|
}
|
|
1824
1863
|
}
|
|
1825
1864
|
return {
|
|
1826
|
-
async 'send_message'(
|
|
1827
|
-
const
|
|
1828
|
-
if (!
|
|
1829
|
-
const
|
|
1830
|
-
if (
|
|
1831
|
-
const
|
|
1832
|
-
if (
|
|
1865
|
+
async 'send_message'(_0x56f3bb) {
|
|
1866
|
+
const _0x2e0018 = _0x4fefa1;
|
|
1867
|
+
if (!_0x274237[_0x2e0018(_0xe68f8a._0x152a08)] && _0x274237[_0x2e0018(0x1d9)] && _0x274237[_0x2e0018(_0xe68f8a._0x5b57db)] && _0x274237['agentId']) {
|
|
1868
|
+
const _0x42ea8e = await _0x274237[_0x2e0018(_0xe68f8a._0x13732e)][_0x2e0018(0x29b)](_0x56f3bb[_0x2e0018(_0xe68f8a._0xc45b79)]);
|
|
1869
|
+
if (_0x42ea8e[_0x2e0018(0x165)] && _0x42ea8e[_0x2e0018(_0xe68f8a._0x6540e9)]) {
|
|
1870
|
+
const _0x272185 = _0x42ea8e['task'][_0x2e0018(0x2b6)] != null ? '#' + _0x42ea8e['task'][_0x2e0018(_0xe68f8a._0x5f3200)] : _0x2e0018(_0xe68f8a._0x4c624b), _0x12b95a = _0x42ea8e[_0x2e0018(0x29e)] != null ? _0x42ea8e[_0x2e0018(0x18c)] + ':t' + _0x42ea8e['threadNumber'] : _0x42ea8e[_0x2e0018(_0xe68f8a._0xc45b79)] + ':' + _0x42ea8e[_0x2e0018(_0xe68f8a._0x29d787)]['slice'](0x0, 0x8), _0x20e78d = await _0x15ea3b();
|
|
1871
|
+
if (_0x20e78d?.[_0x2e0018(0x17b)](_0x12b95a))
|
|
1833
1872
|
return [
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
][
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1873
|
+
_0x2e0018(_0xe68f8a._0x31cae1) + _0x272185 + _0x2e0018(_0xe68f8a._0x38c54c) + _0x12b95a + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1874
|
+
_0x2e0018(0x293)
|
|
1875
|
+
][_0x2e0018(0x1dd)]('\x0a');
|
|
1876
|
+
const _0x92683f = [
|
|
1877
|
+
_0x2e0018(0x1a6) + _0x12b95a + _0x2e0018(0x2ba) + new Date()[_0x2e0018(0x245)]() + _0x2e0018(0x16c),
|
|
1839
1878
|
'',
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
][
|
|
1845
|
-
'method':
|
|
1879
|
+
_0x2e0018(0x1ba) + _0x56f3bb[_0x2e0018(_0xe68f8a._0x4efdfe)],
|
|
1880
|
+
_0x2e0018(0x2ca) + _0x272185 + '\x20(' + _0x42ea8e[_0x2e0018(_0xe68f8a._0x36453d)][_0x2e0018(_0xe68f8a._0xdaedf2)] + ')',
|
|
1881
|
+
_0x2e0018(0x28a) + _0x12b95a,
|
|
1882
|
+
_0x2e0018(0x29c)
|
|
1883
|
+
][_0x2e0018(0x1dd)]('\x0a'), _0x1c07eb = await fetch(_0x274237['daemonLocalUrl'] + '/workers/deliver', {
|
|
1884
|
+
'method': _0x2e0018(_0xe68f8a._0xfcb71e),
|
|
1846
1885
|
'headers': { 'Content-Type': 'application/json' },
|
|
1847
|
-
'body': JSON[
|
|
1848
|
-
'agent_id':
|
|
1849
|
-
'thread_target':
|
|
1886
|
+
'body': JSON[_0x2e0018(_0xe68f8a._0x2ba279)]({
|
|
1887
|
+
'agent_id': _0x274237['agentId'],
|
|
1888
|
+
'thread_target': _0x12b95a,
|
|
1850
1889
|
'spawn_packet': {
|
|
1851
|
-
'replyTarget':
|
|
1852
|
-
'taskId':
|
|
1890
|
+
'replyTarget': _0x12b95a,
|
|
1891
|
+
'taskId': _0x42ea8e[_0x2e0018(_0xe68f8a._0x36453d)][_0x2e0018(_0xe68f8a._0x356598)]
|
|
1853
1892
|
},
|
|
1854
1893
|
'payload': {
|
|
1855
|
-
'mode':
|
|
1856
|
-
'text':
|
|
1894
|
+
'mode': _0x2e0018(0x257),
|
|
1895
|
+
'text': _0x92683f
|
|
1857
1896
|
}
|
|
1858
1897
|
})
|
|
1859
|
-
}),
|
|
1860
|
-
if (!
|
|
1861
|
-
throw new Error(
|
|
1898
|
+
}), _0x3b4eab = await _0x1c07eb[_0x2e0018(_0xe68f8a._0x2c11ce)]();
|
|
1899
|
+
if (!_0x3b4eab['ok'])
|
|
1900
|
+
throw new Error(_0x3b4eab[_0x2e0018(0x26d)] ?? _0x2e0018(0x175));
|
|
1862
1901
|
return [
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
][
|
|
1902
|
+
_0x2e0018(0x27b) + _0x272185 + _0x2e0018(_0xe68f8a._0x38c54c) + _0x12b95a + _0x2e0018(0x2c9),
|
|
1903
|
+
_0x2e0018(0x2d4) + (_0x3b4eab[_0x2e0018(_0xe68f8a._0xd3e24c)] === _0x2e0018(_0xe68f8a._0x5cbdd7) ? 'queued' : _0x2e0018(_0xe68f8a._0x16d611)) + '.',
|
|
1904
|
+
_0x2e0018(0x1a4)
|
|
1905
|
+
][_0x2e0018(_0xe68f8a._0xe4b00)]('\x0a');
|
|
1867
1906
|
}
|
|
1868
1907
|
}
|
|
1869
|
-
const
|
|
1870
|
-
'attachmentIds':
|
|
1871
|
-
'content':
|
|
1872
|
-
'target':
|
|
1873
|
-
'visibility':
|
|
1908
|
+
const _0x2d3065 = await _0x274237[_0x2e0018(0x196)][_0x2e0018(_0xe68f8a._0x3e42d6)]({
|
|
1909
|
+
'attachmentIds': _0x56f3bb['attachment_ids'],
|
|
1910
|
+
'content': _0x56f3bb[_0x2e0018(0x162)],
|
|
1911
|
+
'target': _0x56f3bb['target'],
|
|
1912
|
+
'visibility': _0x56f3bb['visibility']
|
|
1874
1913
|
});
|
|
1875
|
-
return
|
|
1914
|
+
return _0x2e0018(0x298) + _0x56f3bb['target'] + _0x2e0018(_0xe68f8a._0x597007) + _0x2d3065['messageId'];
|
|
1876
1915
|
},
|
|
1877
1916
|
async 'check_messages'() {
|
|
1878
|
-
const
|
|
1879
|
-
if (!
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1882
|
-
return formatCheckMessages(
|
|
1917
|
+
const _0x5dfead = _0x4fefa1, _0x5c6d4d = await _0x274237[_0x5dfead(_0x2f3946._0x3ec314)][_0x5dfead(0x1e1)]();
|
|
1918
|
+
if (!_0x274237[_0x5dfead(0x1aa)]) {
|
|
1919
|
+
const _0x3d6d16 = await _0x2ccf0d();
|
|
1920
|
+
if (_0x3d6d16)
|
|
1921
|
+
return formatCheckMessages(_0x5c6d4d[_0x5dfead(0x20b)]['filter'](_0xce50c => !_0x3d6d16[_0x5dfead(0x17b)](_0xce50c[_0x5dfead(0x18c)])));
|
|
1883
1922
|
}
|
|
1884
|
-
return formatCheckMessages(
|
|
1923
|
+
return formatCheckMessages(_0x5c6d4d[_0x5dfead(0x20b)]);
|
|
1885
1924
|
},
|
|
1886
|
-
async 'read_history'(
|
|
1887
|
-
const
|
|
1888
|
-
return formatHistory(
|
|
1925
|
+
async 'read_history'(_0x2811c2) {
|
|
1926
|
+
const _0x1bfea9 = _0x4fefa1, _0x197a7e = await _0x274237[_0x1bfea9(0x196)][_0x1bfea9(_0x4e4c14._0x247b8a)](_0x2811c2);
|
|
1927
|
+
return formatHistory(_0x197a7e);
|
|
1889
1928
|
},
|
|
1890
1929
|
async 'list_server'() {
|
|
1891
|
-
const
|
|
1892
|
-
return formatServerDirectory(
|
|
1930
|
+
const _0x9f49cd = _0x4fefa1, _0x3e29b6 = await _0x274237[_0x9f49cd(0x196)]['listServer']();
|
|
1931
|
+
return formatServerDirectory(_0x3e29b6);
|
|
1893
1932
|
},
|
|
1894
|
-
async 'list_tasks'(
|
|
1895
|
-
const
|
|
1896
|
-
let
|
|
1897
|
-
if (
|
|
1933
|
+
async 'list_tasks'(_0x40e95a) {
|
|
1934
|
+
const _0x240805 = _0x4fefa1, _0x34f5be = await _0x274237[_0x240805(_0x398240._0x35e1ca)]['listTasks'](_0x40e95a);
|
|
1935
|
+
let _0x3c94af;
|
|
1936
|
+
if (_0x274237[_0x240805(_0x398240._0xb34388)] && _0x274237['agentId'])
|
|
1898
1937
|
try {
|
|
1899
|
-
const
|
|
1900
|
-
if (
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1903
|
-
for (const
|
|
1904
|
-
if (
|
|
1938
|
+
const _0x3f0d0b = await fetch(_0x274237[_0x240805(_0x398240._0x25021d)] + '/workers/list?agent_id=' + encodeURIComponent(_0x274237[_0x240805(_0x398240._0x4bfa7b)])), _0x6d349f = await _0x3f0d0b[_0x240805(0x1a2)]();
|
|
1939
|
+
if (_0x6d349f['ok']) {
|
|
1940
|
+
const _0x18b7c6 = _0x40e95a[_0x240805(_0x398240._0x10f605)] + ':';
|
|
1941
|
+
_0x3c94af = new Set();
|
|
1942
|
+
for (const _0x1e02ad of _0x6d349f['workers']) {
|
|
1943
|
+
if (_0x1e02ad[_0x240805(0x1b0)] === _0x240805(0x205))
|
|
1905
1944
|
continue;
|
|
1906
|
-
if (
|
|
1907
|
-
const
|
|
1908
|
-
if (
|
|
1909
|
-
|
|
1945
|
+
if (_0x1e02ad[_0x240805(_0x398240._0x1c0106)]?.['startsWith'](_0x18b7c6)) {
|
|
1946
|
+
const _0xa8b8b8 = _0x1e02ad['thread_target'][_0x240805(_0x398240._0x3e475e)](_0x18b7c6['length']), _0x2b1b87 = _0x34f5be[_0x240805(0x1d2)][_0x240805(_0x398240._0x44b764)](_0xc2bd27 => _0xc2bd27[_0x240805(0x18d)]?.[_0x240805(0x20f)](_0xa8b8b8) === !![]);
|
|
1947
|
+
if (_0x2b1b87?.['taskNumber'] != null) {
|
|
1948
|
+
_0x3c94af[_0x240805(0x2e2)](_0x2b1b87['taskNumber']);
|
|
1910
1949
|
continue;
|
|
1911
1950
|
}
|
|
1912
1951
|
}
|
|
1913
|
-
if (
|
|
1914
|
-
const
|
|
1915
|
-
|
|
1952
|
+
if (_0x1e02ad[_0x240805(0x1cd)]) {
|
|
1953
|
+
const _0x18d0fa = _0x34f5be['tasks']['find'](_0x5cc107 => _0x5cc107[_0x240805(0x2d5)] === _0x1e02ad[_0x240805(0x1cd)]);
|
|
1954
|
+
_0x18d0fa?.['taskNumber'] != null && _0x3c94af['add'](_0x18d0fa['taskNumber']);
|
|
1916
1955
|
}
|
|
1917
1956
|
}
|
|
1918
1957
|
}
|
|
1919
1958
|
} catch {
|
|
1920
1959
|
}
|
|
1921
|
-
return formatTaskList(
|
|
1960
|
+
return formatTaskList(_0x34f5be[_0x240805(_0x398240._0x340b2c)], _0x3c94af);
|
|
1922
1961
|
},
|
|
1923
|
-
async 'create_tasks'(
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1926
|
-
const
|
|
1927
|
-
return formatCreatedTasks(
|
|
1962
|
+
async 'create_tasks'(_0x82b263) {
|
|
1963
|
+
const _0x49c924 = _0x4fefa1;
|
|
1964
|
+
_0x30ed5d(_0x49c924(_0xea2267._0x2e4276), _0x82b263[_0x49c924(0x198)]);
|
|
1965
|
+
const _0x2a5333 = await _0x274237[_0x49c924(0x196)][_0x49c924(_0xea2267._0x3cd830)](_0x82b263);
|
|
1966
|
+
return formatCreatedTasks(_0x2a5333[_0x49c924(_0xea2267._0x7138f6)]);
|
|
1928
1967
|
},
|
|
1929
|
-
async 'claim_tasks'(
|
|
1930
|
-
const
|
|
1931
|
-
if (
|
|
1932
|
-
|
|
1933
|
-
if (
|
|
1968
|
+
async 'claim_tasks'(_0x35ce85) {
|
|
1969
|
+
const _0x29445f = _0x4fefa1;
|
|
1970
|
+
if (_0x274237[_0x29445f(_0x26766d._0x1825d8)]) {
|
|
1971
|
+
_0x30ed5d('claim_tasks', _0x35ce85[_0x29445f(_0x26766d._0x5255b9)]);
|
|
1972
|
+
if (_0x35ce85[_0x29445f(_0x26766d._0x1514aa)] && _0x35ce85[_0x29445f(0x16d)][_0x29445f(0x19b)] > 0x0)
|
|
1934
1973
|
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
1935
|
-
if (!
|
|
1936
|
-
throw new Error(
|
|
1974
|
+
if (!_0x35ce85[_0x29445f(_0x26766d._0x56ca94)] || _0x35ce85[_0x29445f(_0x26766d._0x5c0202)][_0x29445f(0x19b)] === 0x0)
|
|
1975
|
+
throw new Error(_0x29445f(0x1fe));
|
|
1937
1976
|
}
|
|
1938
|
-
const
|
|
1939
|
-
const
|
|
1940
|
-
if (!
|
|
1941
|
-
return
|
|
1977
|
+
const _0x123dfe = await _0x274237[_0x29445f(0x196)][_0x29445f(_0x26766d._0x2b8010)](_0x35ce85), _0x377b61 = await Promise[_0x29445f(_0x26766d._0x133d26)](_0x123dfe[_0x29445f(0x2e0)][_0x29445f(_0x26766d._0x22a37a)](async _0x114eb1 => {
|
|
1978
|
+
const _0xd43281 = _0x29445f;
|
|
1979
|
+
if (!_0x114eb1['success'] || !_0x114eb1[_0xd43281(_0xb4b5e2._0x2ffe85)])
|
|
1980
|
+
return _0x114eb1;
|
|
1942
1981
|
try {
|
|
1943
|
-
const
|
|
1944
|
-
'channel':
|
|
1945
|
-
'messageId':
|
|
1946
|
-
'taskId':
|
|
1947
|
-
'taskNumber':
|
|
1948
|
-
'threadNumber':
|
|
1982
|
+
const _0x114536 = await _0x38245e({
|
|
1983
|
+
'channel': _0x35ce85[_0xd43281(_0xb4b5e2._0x4232d5)],
|
|
1984
|
+
'messageId': _0x114eb1[_0xd43281(0x18d)],
|
|
1985
|
+
'taskId': _0x114eb1[_0xd43281(0x2d5)],
|
|
1986
|
+
'taskNumber': _0x114eb1[_0xd43281(0x2b6)],
|
|
1987
|
+
'threadNumber': _0x114eb1['threadNumber']
|
|
1949
1988
|
});
|
|
1950
|
-
return
|
|
1951
|
-
...
|
|
1952
|
-
...
|
|
1953
|
-
} :
|
|
1954
|
-
} catch (
|
|
1989
|
+
return _0x114536 ? {
|
|
1990
|
+
..._0x114eb1,
|
|
1991
|
+
..._0x114536
|
|
1992
|
+
} : _0x114eb1;
|
|
1993
|
+
} catch (_0x412eee) {
|
|
1955
1994
|
return {
|
|
1956
|
-
...
|
|
1957
|
-
'workerHandoffError':
|
|
1995
|
+
..._0x114eb1,
|
|
1996
|
+
'workerHandoffError': _0x412eee instanceof Error ? _0x412eee[_0xd43281(0x2e8)] : 'worker\x20handoff\x20failed'
|
|
1958
1997
|
};
|
|
1959
1998
|
}
|
|
1960
1999
|
}));
|
|
1961
|
-
return formatClaimTaskResults(
|
|
2000
|
+
return formatClaimTaskResults(_0x377b61);
|
|
1962
2001
|
},
|
|
1963
|
-
async 'unclaim_task'(
|
|
1964
|
-
const
|
|
1965
|
-
if (
|
|
1966
|
-
|
|
1967
|
-
if (
|
|
1968
|
-
throw new Error(
|
|
2002
|
+
async 'unclaim_task'(_0x529237) {
|
|
2003
|
+
const _0x4fd227 = _0x4fefa1;
|
|
2004
|
+
if (_0x274237[_0x4fd227(0x1aa)]) {
|
|
2005
|
+
_0x30ed5d(_0x4fd227(_0x101946._0x171b18), _0x529237[_0x4fd227(0x198)]);
|
|
2006
|
+
if (_0x529237[_0x4fd227(0x1f3)] == null)
|
|
2007
|
+
throw new Error(_0x4fd227(_0x101946._0x555bb7));
|
|
1969
2008
|
}
|
|
1970
|
-
const
|
|
1971
|
-
return formatUnclaimTaskResult(
|
|
2009
|
+
const _0x1ab68e = await _0x274237[_0x4fd227(_0x101946._0x4a5af3)][_0x4fd227(_0x101946._0x579fc5)](_0x529237);
|
|
2010
|
+
return formatUnclaimTaskResult(_0x1ab68e);
|
|
1972
2011
|
},
|
|
1973
|
-
async 'update_task_status'(
|
|
1974
|
-
const
|
|
1975
|
-
|
|
1976
|
-
const
|
|
1977
|
-
return formatUpdateTaskStatusResult(
|
|
2012
|
+
async 'update_task_status'(_0x2f7380) {
|
|
2013
|
+
const _0x2e85dc = _0x4fefa1;
|
|
2014
|
+
_0x30ed5d(_0x2e85dc(_0x13d98e._0x4005ac), _0x2f7380[_0x2e85dc(_0x13d98e._0x519417)]);
|
|
2015
|
+
const _0x164086 = await _0x274237['client'][_0x2e85dc(0x1da)](_0x2f7380);
|
|
2016
|
+
return formatUpdateTaskStatusResult(_0x164086);
|
|
1978
2017
|
},
|
|
1979
|
-
async 'upload_file'(
|
|
1980
|
-
const
|
|
1981
|
-
sizeBytes:
|
|
1982
|
-
...
|
|
1983
|
-
} =
|
|
1984
|
-
'channel':
|
|
1985
|
-
...
|
|
2018
|
+
async 'upload_file'(_0x10915b) {
|
|
2019
|
+
const _0x5c5609 = _0x4fefa1, _0x28218a = await _0x274237[_0x5c5609(0x2de)](_0x10915b[_0x5c5609(_0x56a6f5._0x149393)]), {
|
|
2020
|
+
sizeBytes: _0x5dd5fb,
|
|
2021
|
+
..._0x2070f1
|
|
2022
|
+
} = _0x28218a, _0x39a765 = await _0x274237[_0x5c5609(0x196)]['uploadFile']({
|
|
2023
|
+
'channel': _0x10915b[_0x5c5609(_0x56a6f5._0x25b28d)],
|
|
2024
|
+
..._0x2070f1
|
|
1986
2025
|
});
|
|
1987
|
-
return formatUploadResult(
|
|
2026
|
+
return formatUploadResult(_0x39a765);
|
|
1988
2027
|
},
|
|
1989
|
-
async 'view_file'(
|
|
1990
|
-
const
|
|
1991
|
-
if (
|
|
1992
|
-
return formatViewFileResult(
|
|
1993
|
-
const
|
|
1994
|
-
'attachmentId':
|
|
1995
|
-
'contentType':
|
|
1996
|
-
'data':
|
|
1997
|
-
'originalFilename':
|
|
2028
|
+
async 'view_file'(_0x4cd572) {
|
|
2029
|
+
const _0x4b9ede = _0x4fefa1, _0x38ae75 = await _0x274237[_0x4b9ede(0x229)]['findCachedPath'](_0x4cd572['attachment_id']);
|
|
2030
|
+
if (_0x38ae75)
|
|
2031
|
+
return formatViewFileResult(_0x38ae75, !![]);
|
|
2032
|
+
const _0x2f9a7c = await _0x274237[_0x4b9ede(_0x39f9ce._0x2a6353)]['downloadAttachment'](_0x4cd572[_0x4b9ede(0x2c5)]), _0x8cb1cf = await _0x274237[_0x4b9ede(_0x39f9ce._0x515f1d)][_0x4b9ede(0x2a6)]({
|
|
2033
|
+
'attachmentId': _0x4cd572['attachment_id'],
|
|
2034
|
+
'contentType': _0x2f9a7c[_0x4b9ede(_0x39f9ce._0x571b67)],
|
|
2035
|
+
'data': _0x2f9a7c[_0x4b9ede(_0x39f9ce._0x23f25d)],
|
|
2036
|
+
'originalFilename': _0x2f9a7c['originalFilename']
|
|
1998
2037
|
});
|
|
1999
|
-
return formatViewFileResult(
|
|
2038
|
+
return formatViewFileResult(_0x8cb1cf, ![]);
|
|
2000
2039
|
},
|
|
2001
|
-
async 'get_worker_status'(
|
|
2002
|
-
const
|
|
2003
|
-
if (!
|
|
2004
|
-
return
|
|
2005
|
-
const
|
|
2006
|
-
if (!
|
|
2007
|
-
return
|
|
2008
|
-
return
|
|
2040
|
+
async 'get_worker_status'(_0x31eec6) {
|
|
2041
|
+
const _0x5cd903 = _0x4fefa1;
|
|
2042
|
+
if (!_0x274237[_0x5cd903(_0x96f90b._0x1310ba)])
|
|
2043
|
+
return _0x5cd903(0x246);
|
|
2044
|
+
const _0x39f151 = await fetch(_0x274237[_0x5cd903(0x248)] + _0x5cd903(_0x96f90b._0xa703e2) + encodeURIComponent(_0x31eec6[_0x5cd903(_0x96f90b._0x1586f5)])), _0x3f1fcd = await _0x39f151['json']();
|
|
2045
|
+
if (!_0x3f1fcd['ok'])
|
|
2046
|
+
return _0x5cd903(_0x96f90b._0x22014a) + _0x31eec6[_0x5cd903(_0x96f90b._0x1586f5)] + _0x5cd903(0x1f0);
|
|
2047
|
+
return _0x5cd903(0x25d) + _0x31eec6[_0x5cd903(_0x96f90b._0x1854c3)] + _0x5cd903(_0x96f90b._0xd4631a) + _0x3f1fcd[_0x5cd903(_0x96f90b._0x1f11d7)];
|
|
2009
2048
|
},
|
|
2010
|
-
async 'park_worker'(
|
|
2011
|
-
const
|
|
2012
|
-
if (!
|
|
2013
|
-
return
|
|
2014
|
-
const
|
|
2015
|
-
'method':
|
|
2016
|
-
'headers': { 'Content-Type':
|
|
2017
|
-
'body': JSON[
|
|
2018
|
-
}),
|
|
2019
|
-
if (!
|
|
2020
|
-
throw new Error(
|
|
2021
|
-
return
|
|
2049
|
+
async 'park_worker'(_0x2d3af2) {
|
|
2050
|
+
const _0x110e64 = _0x4fefa1;
|
|
2051
|
+
if (!_0x274237[_0x110e64(0x248)])
|
|
2052
|
+
return _0x110e64(_0x3d6e5f._0x37a09b);
|
|
2053
|
+
const _0x21c2bc = await fetch(_0x274237['daemonLocalUrl'] + _0x110e64(_0x3d6e5f._0xcb99cf), {
|
|
2054
|
+
'method': _0x110e64(0x199),
|
|
2055
|
+
'headers': { 'Content-Type': _0x110e64(0x287) },
|
|
2056
|
+
'body': JSON[_0x110e64(_0x3d6e5f._0x20bab2)]({ 'work_key': _0x2d3af2[_0x110e64(_0x3d6e5f._0x2599e3)] })
|
|
2057
|
+
}), _0x41c299 = await _0x21c2bc[_0x110e64(0x1a2)]();
|
|
2058
|
+
if (!_0x41c299['ok'])
|
|
2059
|
+
throw new Error(_0x41c299[_0x110e64(_0x3d6e5f._0x2757a1)] ?? _0x110e64(0x1bd));
|
|
2060
|
+
return _0x110e64(0x25d) + _0x2d3af2['work_key'] + '\x22\x20parked.\x20Same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.';
|
|
2022
2061
|
},
|
|
2023
|
-
async 'mark_waiting_input'(
|
|
2024
|
-
const
|
|
2025
|
-
if (!
|
|
2026
|
-
return
|
|
2027
|
-
const
|
|
2028
|
-
'method':
|
|
2029
|
-
'headers': { 'Content-Type':
|
|
2030
|
-
'body': JSON[
|
|
2031
|
-
'work_key':
|
|
2032
|
-
'agent_id':
|
|
2062
|
+
async 'mark_waiting_input'(_0x5a036d) {
|
|
2063
|
+
const _0x2f5776 = _0x4fefa1;
|
|
2064
|
+
if (!_0x274237[_0x2f5776(_0x3dbfb8._0x3075bf)] || !_0x274237[_0x2f5776(_0x3dbfb8._0x534c56)])
|
|
2065
|
+
return _0x2f5776(_0x3dbfb8._0xe1fa6);
|
|
2066
|
+
const _0x5e1b78 = await fetch(_0x274237[_0x2f5776(0x248)] + _0x2f5776(0x1ad), {
|
|
2067
|
+
'method': _0x2f5776(0x199),
|
|
2068
|
+
'headers': { 'Content-Type': _0x2f5776(0x287) },
|
|
2069
|
+
'body': JSON[_0x2f5776(0x161)]({
|
|
2070
|
+
'work_key': _0x5a036d[_0x2f5776(0x192)],
|
|
2071
|
+
'agent_id': _0x274237[_0x2f5776(_0x3dbfb8._0x9a80c8)]
|
|
2033
2072
|
})
|
|
2034
|
-
}),
|
|
2035
|
-
if (!
|
|
2036
|
-
throw new Error(
|
|
2037
|
-
return
|
|
2073
|
+
}), _0x17a7d4 = await _0x5e1b78[_0x2f5776(_0x3dbfb8._0x1e863b)]();
|
|
2074
|
+
if (!_0x17a7d4['ok'])
|
|
2075
|
+
throw new Error(_0x17a7d4[_0x2f5776(_0x3dbfb8._0x5f36d1)] ?? _0x2f5776(_0x3dbfb8._0x5f4174));
|
|
2076
|
+
return _0x2f5776(0x25d) + _0x5a036d[_0x2f5776(0x192)] + _0x2f5776(0x1c3);
|
|
2038
2077
|
},
|
|
2039
|
-
async 'escalate_to_main'(
|
|
2040
|
-
const
|
|
2041
|
-
if (!
|
|
2042
|
-
return
|
|
2043
|
-
const
|
|
2044
|
-
'method':
|
|
2045
|
-
'headers': { 'Content-Type':
|
|
2046
|
-
'body': JSON[
|
|
2047
|
-
'work_key':
|
|
2048
|
-
'reason':
|
|
2078
|
+
async 'escalate_to_main'(_0x299707) {
|
|
2079
|
+
const _0x4c5146 = _0x4fefa1;
|
|
2080
|
+
if (!_0x274237[_0x4c5146(0x248)])
|
|
2081
|
+
return _0x4c5146(0x246);
|
|
2082
|
+
const _0x14e54f = await fetch(_0x274237[_0x4c5146(0x248)] + _0x4c5146(_0x48ab59._0xfd6cc3), {
|
|
2083
|
+
'method': 'POST',
|
|
2084
|
+
'headers': { 'Content-Type': _0x4c5146(0x287) },
|
|
2085
|
+
'body': JSON[_0x4c5146(_0x48ab59._0x46f70e)]({
|
|
2086
|
+
'work_key': _0x299707[_0x4c5146(_0x48ab59._0x2caa7d)],
|
|
2087
|
+
'reason': _0x299707['reason']
|
|
2049
2088
|
})
|
|
2050
|
-
}),
|
|
2051
|
-
if (!
|
|
2052
|
-
throw new Error(
|
|
2053
|
-
return
|
|
2089
|
+
}), _0x539a6b = await _0x14e54f['json']();
|
|
2090
|
+
if (!_0x539a6b['ok'])
|
|
2091
|
+
throw new Error(_0x539a6b[_0x4c5146(0x26d)] ?? _0x4c5146(_0x48ab59._0x2e0a65));
|
|
2092
|
+
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x299707[_0x4c5146(_0x48ab59._0x455ec2)];
|
|
2054
2093
|
}
|
|
2055
2094
|
};
|
|
2056
2095
|
}
|
|
2057
|
-
function textResult(
|
|
2058
|
-
const
|
|
2096
|
+
function textResult(_0x3a6756, _0x5919a6 = ![]) {
|
|
2097
|
+
const _0x1d6336 = _0x28aee3;
|
|
2059
2098
|
return {
|
|
2060
2099
|
'content': [{
|
|
2061
|
-
'type':
|
|
2062
|
-
'text':
|
|
2100
|
+
'type': _0x1d6336(0x251),
|
|
2101
|
+
'text': _0x3a6756
|
|
2063
2102
|
}],
|
|
2064
|
-
...
|
|
2103
|
+
..._0x5919a6 ? { 'isError': !![] } : {}
|
|
2065
2104
|
};
|
|
2066
2105
|
}
|
|
2067
|
-
async function registerChatBridgeTools(
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
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
|
-
}, async _0x5c72ec => {
|
|
2138
|
-
const _0x4ad038 = _0x2abf41;
|
|
2106
|
+
async function registerChatBridgeTools(_0x4e1a95, _0x23f596, _0x322f9a) {
|
|
2107
|
+
const _0x26be3b = {
|
|
2108
|
+
_0x150520: 0x1f7,
|
|
2109
|
+
_0x1410fe: 0x20c,
|
|
2110
|
+
_0x3238e7: 0x256,
|
|
2111
|
+
_0x3a2ddb: 0x24e,
|
|
2112
|
+
_0x18b3e1: 0x2ae,
|
|
2113
|
+
_0x1e7fec: 0x1f7,
|
|
2114
|
+
_0x25109a: 0x2b2,
|
|
2115
|
+
_0x1d661c: 0x256,
|
|
2116
|
+
_0x461590: 0x2df,
|
|
2117
|
+
_0x4db75e: 0x256,
|
|
2118
|
+
_0x28fb21: 0x226,
|
|
2119
|
+
_0x43117a: 0x2dc,
|
|
2120
|
+
_0x33b78e: 0x256,
|
|
2121
|
+
_0x4dd362: 0x1f7,
|
|
2122
|
+
_0x4ddfdc: 0x17d,
|
|
2123
|
+
_0x643813: 0x20c,
|
|
2124
|
+
_0x565d8b: 0x20c,
|
|
2125
|
+
_0x4de763: 0x256,
|
|
2126
|
+
_0x18e12e: 0x171,
|
|
2127
|
+
_0x69b17e: 0x20c,
|
|
2128
|
+
_0x74cf3e: 0x20c,
|
|
2129
|
+
_0xa17b7: 0x166,
|
|
2130
|
+
_0x219644: 0x2e7,
|
|
2131
|
+
_0x524b78: 0x1e0,
|
|
2132
|
+
_0x536ee7: 0x1a9,
|
|
2133
|
+
_0x2abe80: 0x256,
|
|
2134
|
+
_0x576686: 0x284,
|
|
2135
|
+
_0x319627: 0x166,
|
|
2136
|
+
_0x25fc00: 0x2dc,
|
|
2137
|
+
_0x273600: 0x1f7,
|
|
2138
|
+
_0x356fc1: 0x216,
|
|
2139
|
+
_0x16cb2a: 0x2d1,
|
|
2140
|
+
_0xf1d1fc: 0x1f7,
|
|
2141
|
+
_0x11a66d: 0x250,
|
|
2142
|
+
_0x54e83a: 0x1b2,
|
|
2143
|
+
_0x4ee977: 0x20c,
|
|
2144
|
+
_0x28296f: 0x26e,
|
|
2145
|
+
_0x431522: 0x1f7,
|
|
2146
|
+
_0xd8da3e: 0x20c
|
|
2147
|
+
}, _0x258f87 = {
|
|
2148
|
+
_0x2190f1: 0x174,
|
|
2149
|
+
_0x4cd8d5: 0x2e8
|
|
2150
|
+
}, _0x97d8c2 = { _0x447bff: 0x177 }, _0x8ad8a3 = {
|
|
2151
|
+
_0x31b263: 0x250,
|
|
2152
|
+
_0x490df4: 0x2e8
|
|
2153
|
+
}, _0x3f88cf = { _0x33a6b3: 0x1f5 }, _0x314115 = {
|
|
2154
|
+
_0x4796c7: 0x2e8,
|
|
2155
|
+
_0x5cae0b: 0x1db
|
|
2156
|
+
}, _0x2b0fe2 = {
|
|
2157
|
+
_0x1f1548: 0x1f8,
|
|
2158
|
+
_0x255cac: 0x2e8
|
|
2159
|
+
}, _0x5d89bd = { _0x859d96: 0x1b8 }, _0x361ec4 = { _0x5ca815: 0x1c9 }, _0x5c5da2 = { _0x370c1a: 0x1e8 }, _0x959d = {
|
|
2160
|
+
_0x163744: 0x1f4,
|
|
2161
|
+
_0x116ed7: 0x238
|
|
2162
|
+
}, _0x5bd39e = { _0x241350: 0x2e8 }, _0x17b7ad = { _0x12d299: 0x25f }, _0x3ae8d3 = {
|
|
2163
|
+
_0x176079: 0x2e8,
|
|
2164
|
+
_0x2403ee: 0x1ff
|
|
2165
|
+
}, _0x386885 = _0x28aee3, {z: _0x526ec6} = await import('zod');
|
|
2166
|
+
_0x4e1a95[_0x386885(_0x26be3b._0x150520)](_0x386885(0x254), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2167
|
+
'target': _0x526ec6['string'](),
|
|
2168
|
+
'content': _0x526ec6[_0x386885(_0x26be3b._0x1410fe)](),
|
|
2169
|
+
'attachment_ids': _0x526ec6[_0x386885(0x171)](_0x526ec6[_0x386885(_0x26be3b._0x1410fe)]())[_0x386885(_0x26be3b._0x3238e7)](),
|
|
2170
|
+
'visibility': _0x526ec6['enum']([
|
|
2171
|
+
_0x386885(0x21d),
|
|
2172
|
+
_0x386885(_0x26be3b._0x3a2ddb)
|
|
2173
|
+
])[_0x386885(0x256)]()[_0x386885(_0x26be3b._0x18b3e1)]('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.')
|
|
2174
|
+
}, async _0x67e6c9 => {
|
|
2175
|
+
const _0x48eff2 = _0x386885;
|
|
2139
2176
|
try {
|
|
2140
|
-
return textResult(await
|
|
2141
|
-
} catch (
|
|
2142
|
-
return textResult(
|
|
2177
|
+
return textResult(await _0x23f596[_0x48eff2(0x254)](_0x67e6c9));
|
|
2178
|
+
} catch (_0x22bf43) {
|
|
2179
|
+
return textResult(_0x22bf43 instanceof Error ? _0x22bf43[_0x48eff2(_0x3ae8d3._0x176079)] : _0x48eff2(_0x3ae8d3._0x2403ee), !![]);
|
|
2143
2180
|
}
|
|
2144
|
-
}),
|
|
2145
|
-
const
|
|
2181
|
+
}), _0x4e1a95[_0x386885(0x1f7)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2182
|
+
const _0x552714 = _0x386885;
|
|
2146
2183
|
try {
|
|
2147
|
-
return textResult(await
|
|
2148
|
-
} catch (
|
|
2149
|
-
return textResult(
|
|
2184
|
+
return textResult(await _0x23f596[_0x552714(_0x17b7ad._0x12d299)]());
|
|
2185
|
+
} catch (_0x4afd1b) {
|
|
2186
|
+
return textResult(_0x4afd1b instanceof Error ? _0x4afd1b[_0x552714(0x2e8)] : 'check_messages\x20failed', !![]);
|
|
2150
2187
|
}
|
|
2151
|
-
}),
|
|
2152
|
-
'channel':
|
|
2153
|
-
'limit':
|
|
2154
|
-
'before':
|
|
2155
|
-
'after':
|
|
2156
|
-
}, async
|
|
2157
|
-
const
|
|
2188
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x1e7fec)](_0x386885(_0x26be3b._0x25109a), _0x386885(0x1c6), {
|
|
2189
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x1410fe)](),
|
|
2190
|
+
'limit': _0x526ec6['number']()[_0x386885(_0x26be3b._0x1d661c)](),
|
|
2191
|
+
'before': _0x526ec6[_0x386885(_0x26be3b._0x461590)]()[_0x386885(0x256)](),
|
|
2192
|
+
'after': _0x526ec6[_0x386885(0x2df)]()[_0x386885(_0x26be3b._0x4db75e)]()
|
|
2193
|
+
}, async _0x38f852 => {
|
|
2194
|
+
const _0x2330dc = _0x386885;
|
|
2158
2195
|
try {
|
|
2159
|
-
return textResult(await
|
|
2160
|
-
} catch (
|
|
2161
|
-
return textResult(
|
|
2196
|
+
return textResult(await _0x23f596[_0x2330dc(0x2b2)](_0x38f852));
|
|
2197
|
+
} catch (_0x49088b) {
|
|
2198
|
+
return textResult(_0x49088b instanceof Error ? _0x49088b[_0x2330dc(_0x5bd39e._0x241350)] : 'read_history\x20failed', !![]);
|
|
2162
2199
|
}
|
|
2163
|
-
}),
|
|
2164
|
-
const
|
|
2200
|
+
}), _0x4e1a95['tool']('list_server', _0x386885(_0x26be3b._0x28fb21), {}, async () => {
|
|
2201
|
+
const _0x59ebf8 = _0x386885;
|
|
2165
2202
|
try {
|
|
2166
|
-
return textResult(await
|
|
2167
|
-
} catch (
|
|
2168
|
-
return textResult(
|
|
2203
|
+
return textResult(await _0x23f596[_0x59ebf8(_0x959d._0x163744)]());
|
|
2204
|
+
} catch (_0x3a1db1) {
|
|
2205
|
+
return textResult(_0x3a1db1 instanceof Error ? _0x3a1db1['message'] : _0x59ebf8(_0x959d._0x116ed7), !![]);
|
|
2169
2206
|
}
|
|
2170
|
-
}),
|
|
2171
|
-
'channel':
|
|
2172
|
-
'status':
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
])[
|
|
2178
|
-
}, async
|
|
2179
|
-
const
|
|
2207
|
+
}), _0x4e1a95[_0x386885(0x1f7)]('list_tasks', '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).', {
|
|
2208
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x1410fe)](),
|
|
2209
|
+
'status': _0x526ec6[_0x386885(0x166)]([
|
|
2210
|
+
'todo',
|
|
2211
|
+
_0x386885(_0x26be3b._0x43117a),
|
|
2212
|
+
_0x386885(0x2a8),
|
|
2213
|
+
_0x386885(0x2a5)
|
|
2214
|
+
])[_0x386885(_0x26be3b._0x33b78e)]()
|
|
2215
|
+
}, async _0x65c213 => {
|
|
2216
|
+
const _0x1311aa = _0x386885;
|
|
2180
2217
|
try {
|
|
2181
|
-
return textResult(await
|
|
2182
|
-
} catch (
|
|
2183
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x23f596['list_tasks'](_0x65c213));
|
|
2219
|
+
} catch (_0x39859a) {
|
|
2220
|
+
return textResult(_0x39859a instanceof Error ? _0x39859a[_0x1311aa(0x2e8)] : _0x1311aa(0x193), !![]);
|
|
2184
2221
|
}
|
|
2185
|
-
}),
|
|
2186
|
-
'channel':
|
|
2187
|
-
'idempotency_key':
|
|
2188
|
-
'tasks':
|
|
2189
|
-
'title':
|
|
2190
|
-
'description':
|
|
2191
|
-
'priority':
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2222
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x4dd362)]('create_tasks', _0x386885(_0x26be3b._0x4ddfdc), {
|
|
2223
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x643813)](),
|
|
2224
|
+
'idempotency_key': _0x526ec6[_0x386885(_0x26be3b._0x565d8b)]()[_0x386885(_0x26be3b._0x4de763)](),
|
|
2225
|
+
'tasks': _0x526ec6[_0x386885(_0x26be3b._0x18e12e)](_0x526ec6[_0x386885(0x173)]({
|
|
2226
|
+
'title': _0x526ec6[_0x386885(_0x26be3b._0x69b17e)](),
|
|
2227
|
+
'description': _0x526ec6[_0x386885(_0x26be3b._0x74cf3e)]()[_0x386885(0x256)](),
|
|
2228
|
+
'priority': _0x526ec6[_0x386885(_0x26be3b._0xa17b7)]([
|
|
2229
|
+
_0x386885(_0x26be3b._0x219644),
|
|
2230
|
+
_0x386885(_0x26be3b._0x524b78),
|
|
2231
|
+
'high',
|
|
2232
|
+
_0x386885(0x2ce)
|
|
2196
2233
|
])['optional']()
|
|
2197
2234
|
}))
|
|
2198
|
-
}, async
|
|
2199
|
-
const
|
|
2235
|
+
}, async _0x49916e => {
|
|
2236
|
+
const _0x1cff77 = _0x386885;
|
|
2200
2237
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2238
|
+
return textResult(await _0x23f596[_0x1cff77(_0x5c5da2._0x370c1a)](_0x49916e));
|
|
2239
|
+
} catch (_0x5e0243) {
|
|
2240
|
+
return textResult(_0x5e0243 instanceof Error ? _0x5e0243['message'] : 'create_tasks\x20failed', !![]);
|
|
2204
2241
|
}
|
|
2205
|
-
}),
|
|
2206
|
-
'channel':
|
|
2207
|
-
'task_numbers':
|
|
2208
|
-
'subtask_numbers':
|
|
2209
|
-
'message_ids':
|
|
2210
|
-
'evidence':
|
|
2211
|
-
'create_thread':
|
|
2212
|
-
'create_task':
|
|
2213
|
-
}))[
|
|
2214
|
-
'idempotency_key':
|
|
2215
|
-
}, async
|
|
2216
|
-
const
|
|
2242
|
+
}), _0x4e1a95['tool'](_0x386885(0x183), _0x386885(0x2b5), {
|
|
2243
|
+
'channel': _0x526ec6['string'](),
|
|
2244
|
+
'task_numbers': _0x526ec6['array'](_0x526ec6[_0x386885(0x2df)]())['optional'](),
|
|
2245
|
+
'subtask_numbers': _0x526ec6['array'](_0x526ec6[_0x386885(_0x26be3b._0x461590)]())[_0x386885(_0x26be3b._0x1d661c)](),
|
|
2246
|
+
'message_ids': _0x526ec6['array'](_0x526ec6[_0x386885(0x20c)]())[_0x386885(0x256)](),
|
|
2247
|
+
'evidence': _0x526ec6[_0x386885(0x169)](_0x526ec6[_0x386885(0x20c)](), _0x526ec6['object']({
|
|
2248
|
+
'create_thread': _0x526ec6[_0x386885(_0x26be3b._0x536ee7)]()[_0x386885(_0x26be3b._0x3238e7)](),
|
|
2249
|
+
'create_task': _0x526ec6[_0x386885(_0x26be3b._0x536ee7)]()[_0x386885(_0x26be3b._0x1d661c)]()
|
|
2250
|
+
}))[_0x386885(_0x26be3b._0x2abe80)](),
|
|
2251
|
+
'idempotency_key': _0x526ec6[_0x386885(0x20c)]()[_0x386885(0x256)]()
|
|
2252
|
+
}, async _0x5a0a4f => {
|
|
2253
|
+
const _0x4e8f6f = _0x386885;
|
|
2217
2254
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2255
|
+
return textResult(await _0x23f596[_0x4e8f6f(0x183)](_0x5a0a4f));
|
|
2256
|
+
} catch (_0x5679ef) {
|
|
2257
|
+
return textResult(_0x5679ef instanceof Error ? _0x5679ef[_0x4e8f6f(0x2e8)] : _0x4e8f6f(_0x361ec4._0x5ca815), !![]);
|
|
2221
2258
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
'channel':
|
|
2224
|
-
'task_number':
|
|
2225
|
-
'subtask_number':
|
|
2226
|
-
'idempotency_key':
|
|
2227
|
-
}, async
|
|
2228
|
-
const
|
|
2259
|
+
}), _0x4e1a95[_0x386885(0x1f7)](_0x386885(0x282), _0x386885(_0x26be3b._0x576686), {
|
|
2260
|
+
'channel': _0x526ec6['string'](),
|
|
2261
|
+
'task_number': _0x526ec6[_0x386885(_0x26be3b._0x461590)](),
|
|
2262
|
+
'subtask_number': _0x526ec6[_0x386885(0x2df)]()[_0x386885(0x256)](),
|
|
2263
|
+
'idempotency_key': _0x526ec6[_0x386885(_0x26be3b._0x565d8b)]()[_0x386885(_0x26be3b._0x4de763)]()
|
|
2264
|
+
}, async _0x3e8919 => {
|
|
2265
|
+
const _0x83c5cd = _0x386885;
|
|
2229
2266
|
try {
|
|
2230
|
-
return textResult(await
|
|
2231
|
-
} catch (
|
|
2232
|
-
return textResult(
|
|
2267
|
+
return textResult(await _0x23f596['unclaim_task'](_0x3e8919));
|
|
2268
|
+
} catch (_0x5e5149) {
|
|
2269
|
+
return textResult(_0x5e5149 instanceof Error ? _0x5e5149[_0x83c5cd(0x2e8)] : _0x83c5cd(_0x5d89bd._0x859d96), !![]);
|
|
2233
2270
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
'channel':
|
|
2236
|
-
'task_number':
|
|
2237
|
-
'subtask_number':
|
|
2238
|
-
'status':
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2271
|
+
}), _0x4e1a95[_0x386885(0x1f7)]('update_task_status', 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2272
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x74cf3e)](),
|
|
2273
|
+
'task_number': _0x526ec6[_0x386885(_0x26be3b._0x461590)](),
|
|
2274
|
+
'subtask_number': _0x526ec6[_0x386885(0x2df)]()[_0x386885(0x256)](),
|
|
2275
|
+
'status': _0x526ec6[_0x386885(_0x26be3b._0x319627)]([
|
|
2276
|
+
_0x386885(0x1be),
|
|
2277
|
+
_0x386885(_0x26be3b._0x25fc00),
|
|
2278
|
+
'in_review',
|
|
2279
|
+
_0x386885(0x2a5)
|
|
2243
2280
|
]),
|
|
2244
|
-
'idempotency_key':
|
|
2245
|
-
}, async
|
|
2246
|
-
const
|
|
2281
|
+
'idempotency_key': _0x526ec6[_0x386885(_0x26be3b._0x643813)]()[_0x386885(0x256)]()
|
|
2282
|
+
}, async _0x220f3a => {
|
|
2283
|
+
const _0xbb1ccf = _0x386885;
|
|
2247
2284
|
try {
|
|
2248
|
-
return textResult(await
|
|
2249
|
-
} catch (
|
|
2250
|
-
return textResult(
|
|
2285
|
+
return textResult(await _0x23f596[_0xbb1ccf(_0x2b0fe2._0x1f1548)](_0x220f3a));
|
|
2286
|
+
} catch (_0x3c892c) {
|
|
2287
|
+
return textResult(_0x3c892c instanceof Error ? _0x3c892c[_0xbb1ccf(_0x2b0fe2._0x255cac)] : _0xbb1ccf(0x1bb), !![]);
|
|
2251
2288
|
}
|
|
2252
|
-
}),
|
|
2253
|
-
'channel':
|
|
2254
|
-
'file_path':
|
|
2255
|
-
}, async
|
|
2256
|
-
const
|
|
2289
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x273600)](_0x386885(0x219), _0x386885(_0x26be3b._0x356fc1), {
|
|
2290
|
+
'channel': _0x526ec6[_0x386885(0x20c)](),
|
|
2291
|
+
'file_path': _0x526ec6[_0x386885(0x20c)]()
|
|
2292
|
+
}, async _0x116c7f => {
|
|
2293
|
+
const _0x48b7f6 = _0x386885;
|
|
2257
2294
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2295
|
+
return textResult(await _0x23f596[_0x48b7f6(0x219)](_0x116c7f));
|
|
2296
|
+
} catch (_0x1b2e04) {
|
|
2297
|
+
return textResult(_0x1b2e04 instanceof Error ? _0x1b2e04[_0x48b7f6(_0x314115._0x4796c7)] : _0x48b7f6(_0x314115._0x5cae0b), !![]);
|
|
2261
2298
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
const
|
|
2299
|
+
}), _0x4e1a95[_0x386885(0x1f7)](_0x386885(_0x26be3b._0x16cb2a), _0x386885(0x266), { 'attachment_id': _0x526ec6[_0x386885(0x20c)]() }, async _0x195dd0 => {
|
|
2300
|
+
const _0x54ef8d = _0x386885;
|
|
2264
2301
|
try {
|
|
2265
|
-
return textResult(await
|
|
2266
|
-
} catch (
|
|
2267
|
-
return textResult(
|
|
2302
|
+
return textResult(await _0x23f596[_0x54ef8d(0x2d1)](_0x195dd0));
|
|
2303
|
+
} catch (_0x2d05bb) {
|
|
2304
|
+
return textResult(_0x2d05bb instanceof Error ? _0x2d05bb['message'] : _0x54ef8d(_0x3f88cf._0x33a6b3), !![]);
|
|
2268
2305
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
const
|
|
2306
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0xf1d1fc)](_0x386885(_0x26be3b._0x11a66d), _0x386885(_0x26be3b._0x54e83a), { 'work_key': _0x526ec6[_0x386885(_0x26be3b._0x4ee977)]() }, async _0x338796 => {
|
|
2307
|
+
const _0x337957 = _0x386885;
|
|
2271
2308
|
try {
|
|
2272
|
-
return textResult(await
|
|
2273
|
-
} catch (
|
|
2274
|
-
return textResult(
|
|
2309
|
+
return textResult(await _0x23f596[_0x337957(_0x8ad8a3._0x31b263)](_0x338796));
|
|
2310
|
+
} catch (_0x227dd2) {
|
|
2311
|
+
return textResult(_0x227dd2 instanceof Error ? _0x227dd2[_0x337957(_0x8ad8a3._0x490df4)] : 'get_worker_status\x20failed', !![]);
|
|
2275
2312
|
}
|
|
2276
|
-
}),
|
|
2313
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x4dd362)]('park_worker', _0x386885(_0x26be3b._0x28296f), { 'work_key': _0x526ec6['string']() }, async _0x136ad7 => {
|
|
2314
|
+
const _0x24dd0a = _0x386885;
|
|
2277
2315
|
try {
|
|
2278
|
-
return textResult(await
|
|
2279
|
-
} catch (
|
|
2280
|
-
return textResult(
|
|
2316
|
+
return textResult(await _0x23f596[_0x24dd0a(0x260)](_0x136ad7));
|
|
2317
|
+
} catch (_0x1adc5e) {
|
|
2318
|
+
return textResult(_0x1adc5e instanceof Error ? _0x1adc5e[_0x24dd0a(0x2e8)] : _0x24dd0a(0x1bd), !![]);
|
|
2281
2319
|
}
|
|
2282
|
-
}),
|
|
2283
|
-
'work_key':
|
|
2284
|
-
'reason':
|
|
2285
|
-
}, async
|
|
2286
|
-
const
|
|
2320
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x431522)](_0x386885(0x177), _0x386885(0x1de), {
|
|
2321
|
+
'work_key': _0x526ec6[_0x386885(0x20c)](),
|
|
2322
|
+
'reason': _0x526ec6[_0x386885(0x20c)]()
|
|
2323
|
+
}, async _0x5ed233 => {
|
|
2324
|
+
const _0x2d1fb3 = _0x386885;
|
|
2287
2325
|
try {
|
|
2288
|
-
return textResult(await
|
|
2289
|
-
} catch (
|
|
2290
|
-
return textResult(
|
|
2326
|
+
return textResult(await _0x23f596[_0x2d1fb3(_0x97d8c2._0x447bff)](_0x5ed233));
|
|
2327
|
+
} catch (_0xc05950) {
|
|
2328
|
+
return textResult(_0xc05950 instanceof Error ? _0xc05950['message'] : _0x2d1fb3(0x235), !![]);
|
|
2291
2329
|
}
|
|
2292
|
-
}),
|
|
2293
|
-
const
|
|
2330
|
+
}), _0x322f9a?.[_0x386885(0x1aa)] && _0x4e1a95[_0x386885(0x1f7)](_0x386885(0x174), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x526ec6[_0x386885(_0x26be3b._0xd8da3e)]() }, async _0x1b3ac7 => {
|
|
2331
|
+
const _0x5d165d = _0x386885;
|
|
2294
2332
|
try {
|
|
2295
|
-
return textResult(await
|
|
2296
|
-
} catch (
|
|
2297
|
-
return textResult(
|
|
2333
|
+
return textResult(await _0x23f596[_0x5d165d(_0x258f87._0x2190f1)](_0x1b3ac7));
|
|
2334
|
+
} catch (_0x60e240) {
|
|
2335
|
+
return textResult(_0x60e240 instanceof Error ? _0x60e240[_0x5d165d(_0x258f87._0x4cd8d5)] : _0x5d165d(0x16e), !![]);
|
|
2298
2336
|
}
|
|
2299
2337
|
});
|
|
2300
2338
|
}
|
|
2301
|
-
async function createChatBridgeServer(
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2304
|
-
_0x2b47b8: 0xd6,
|
|
2305
|
-
_0x15453d: 0xb6
|
|
2306
|
-
}, _0x314c8c = _0x2858e8, {McpServer: _0x4c604c} = await import(_0x314c8c(_0x484a9c._0x3bdbe1)), _0x5cc8db = new _0x4c604c({
|
|
2307
|
-
'name': _0x314c8c(_0x484a9c._0x2b47b8),
|
|
2339
|
+
async function createChatBridgeServer(_0x3095ef) {
|
|
2340
|
+
const _0x1c29a8 = { _0x9dd383: 0x21a }, _0x565abe = _0x28aee3, {McpServer: _0x1a419a} = await import(_0x565abe(0x20d)), _0x24149c = new _0x1a419a({
|
|
2341
|
+
'name': _0x565abe(_0x1c29a8._0x9dd383),
|
|
2308
2342
|
'version': '0.0.0'
|
|
2309
|
-
}),
|
|
2310
|
-
return await registerChatBridgeTools(
|
|
2311
|
-
'handlers':
|
|
2312
|
-
'server':
|
|
2343
|
+
}), _0x3bf602 = createChatBridgeHandlers(_0x3095ef);
|
|
2344
|
+
return await registerChatBridgeTools(_0x24149c, _0x3bf602, { 'workerMode': _0x3095ef[_0x565abe(0x1aa)] }), {
|
|
2345
|
+
'handlers': _0x3bf602,
|
|
2346
|
+
'server': _0x24149c
|
|
2313
2347
|
};
|
|
2314
2348
|
}
|
|
2315
|
-
function readFlag(
|
|
2316
|
-
const
|
|
2317
|
-
if (
|
|
2349
|
+
function readFlag(_0x15d3f7, _0x15b93d) {
|
|
2350
|
+
const _0x7b33da = { _0x18eb9b: 0x200 }, _0x4b8558 = _0x28aee3, _0x39f7eb = _0x15d3f7[_0x4b8558(_0x7b33da._0x18eb9b)](_0x15b93d);
|
|
2351
|
+
if (_0x39f7eb === -0x1)
|
|
2318
2352
|
return void 0x0;
|
|
2319
|
-
return
|
|
2353
|
+
return _0x15d3f7[_0x39f7eb + 0x1];
|
|
2320
2354
|
}
|
|
2321
|
-
function parseChatBridgeArgs(
|
|
2322
|
-
const
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2355
|
+
function parseChatBridgeArgs(_0x1051d0) {
|
|
2356
|
+
const _0x30c605 = {
|
|
2357
|
+
_0x509a0f: 0x187,
|
|
2358
|
+
_0x5c78ef: 0x206,
|
|
2359
|
+
_0x7add9e: 0x230,
|
|
2360
|
+
_0x1e9a38: 0x2aa,
|
|
2361
|
+
_0x3abc0e: 0x2b9,
|
|
2362
|
+
_0x3193e1: 0x275,
|
|
2363
|
+
_0x594b8f: 0x217,
|
|
2364
|
+
_0x4764c3: 0x237
|
|
2365
|
+
}, _0x560e11 = _0x28aee3, _0x1e4849 = readFlag(_0x1051d0, '--agent-id'), _0x5920f2 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x509a0f)), _0x3ae280 = readFlag(_0x1051d0, '--daemon-api-key'), _0x573c43 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x5c78ef)), _0x29dbb0 = readFlag(_0x1051d0, _0x560e11(0x1bc)) ?? 'http://localhost:8121', _0xb25b70 = readFlag(_0x1051d0, _0x560e11(0x1bf)), _0x3520f6 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x7add9e)), _0x381308 = readFlag(_0x1051d0, '--worker-mode-enabled'), _0x157680 = readFlag(_0x1051d0, '--worker-session-id'), _0x1d19fe = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x1e9a38)), _0x13664f = _0x1051d0[_0x560e11(_0x30c605._0x3abc0e)](_0x560e11(_0x30c605._0x3193e1)), _0x48911b = _0x573c43 === void 0x0 ? void 0x0 : Number['parseInt'](_0x573c43, 0xa);
|
|
2366
|
+
if (!_0x1e4849)
|
|
2367
|
+
throw new Error('Missing\x20--agent-id');
|
|
2368
|
+
if (!_0x3ae280)
|
|
2369
|
+
throw new Error(_0x560e11(0x1e6));
|
|
2370
|
+
if (_0x573c43 !== void 0x0 && (_0x48911b === void 0x0 || !Number[_0x560e11(0x221)](_0x48911b) || _0x48911b < 0x0))
|
|
2371
|
+
throw new Error(_0x560e11(_0x30c605._0x594b8f));
|
|
2337
2372
|
return {
|
|
2338
|
-
'agentId':
|
|
2339
|
-
'attachmentCacheDir':
|
|
2340
|
-
'daemonApiKey':
|
|
2341
|
-
'daemonLocalUrl':
|
|
2342
|
-
'initialLastSeenSeq':
|
|
2343
|
-
'sessionId':
|
|
2344
|
-
'serverUrl':
|
|
2345
|
-
'workerModeEnabled':
|
|
2346
|
-
'workerSessionId':
|
|
2347
|
-
'workerThreadTarget':
|
|
2348
|
-
'workerMode':
|
|
2373
|
+
'agentId': _0x1e4849,
|
|
2374
|
+
'attachmentCacheDir': _0x5920f2,
|
|
2375
|
+
'daemonApiKey': _0x3ae280,
|
|
2376
|
+
'daemonLocalUrl': _0xb25b70,
|
|
2377
|
+
'initialLastSeenSeq': _0x48911b,
|
|
2378
|
+
'sessionId': _0x3520f6,
|
|
2379
|
+
'serverUrl': _0x29dbb0,
|
|
2380
|
+
'workerModeEnabled': _0x381308 === void 0x0 ? void 0x0 : _0x381308 !== _0x560e11(_0x30c605._0x4764c3),
|
|
2381
|
+
'workerSessionId': _0x157680,
|
|
2382
|
+
'workerThreadTarget': _0x1d19fe,
|
|
2383
|
+
'workerMode': _0x13664f
|
|
2349
2384
|
};
|
|
2350
2385
|
}
|
|
2351
|
-
async function runChatBridgeCli(
|
|
2352
|
-
const
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
'
|
|
2360
|
-
'attachmentCache': _0x1ea16d,
|
|
2361
|
-
'client': _0x734533,
|
|
2362
|
-
'daemonLocalUrl': _0x2e4876[_0x42bce3(_0x4c9ad9._0x500206)],
|
|
2386
|
+
async function runChatBridgeCli(_0x522c0a) {
|
|
2387
|
+
const _0x2b3864 = {
|
|
2388
|
+
_0x551a30: 0x1d9,
|
|
2389
|
+
_0x13e799: 0x2ad
|
|
2390
|
+
}, _0x201dd6 = _0x28aee3, _0x4e6870 = parseChatBridgeArgs(_0x522c0a), {StdioServerTransport: _0x28c997} = await import(_0x201dd6(0x243)), _0x2f6ceb = createInternalAgentClient(_0x4e6870), _0x35dd66 = createAttachmentCache({ 'cacheDir': _0x4e6870['attachmentCacheDir'] }), _0x25426f = await createChatBridgeServer({
|
|
2391
|
+
'agentId': _0x4e6870[_0x201dd6(0x176)],
|
|
2392
|
+
'attachmentCache': _0x35dd66,
|
|
2393
|
+
'client': _0x2f6ceb,
|
|
2394
|
+
'daemonLocalUrl': _0x4e6870[_0x201dd6(0x248)],
|
|
2363
2395
|
'uploadPreparer': prepareUploadFile,
|
|
2364
|
-
'workerModeEnabled':
|
|
2365
|
-
'workerMode':
|
|
2366
|
-
'workerThreadTarget':
|
|
2396
|
+
'workerModeEnabled': _0x4e6870[_0x201dd6(_0x2b3864._0x551a30)],
|
|
2397
|
+
'workerMode': _0x4e6870['workerMode'],
|
|
2398
|
+
'workerThreadTarget': _0x4e6870[_0x201dd6(0x1a7)]
|
|
2367
2399
|
});
|
|
2368
|
-
await
|
|
2400
|
+
await _0x25426f[_0x201dd6(0x22c)][_0x201dd6(_0x2b3864._0x13e799)](new _0x28c997());
|
|
2369
2401
|
}
|
|
2370
|
-
var executedAsEntry = process[
|
|
2371
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2402
|
+
var executedAsEntry = process[_0x28aee3(0x17a)][0x1] ? import.meta.url === pathToFileURL(process[_0x28aee3(0x17a)][0x1])[_0x28aee3(0x17f)] : ![];
|
|
2403
|
+
executedAsEntry && await runChatBridgeCli(process[_0x28aee3(0x17a)][_0x28aee3(0x240)](0x2));
|
|
2372
2404
|
export {
|
|
2373
2405
|
createChatBridgeHandlers,
|
|
2374
2406
|
createChatBridgeServer,
|