@dscord/daemon 0.1.29 → 0.1.32
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 +2088 -2068
- package/dist/index.js +8553 -8467
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const _0x5c3349 = _0x4b05;
|
|
2
|
+
(function (_0x52557d, _0x22b76c) {
|
|
3
|
+
const _0x1a7cee = {
|
|
4
|
+
_0x172f69: 0x2e3,
|
|
5
|
+
_0x481fa5: 0x1b5,
|
|
6
|
+
_0x454774: 0x288,
|
|
7
|
+
_0x596b80: 0x1c3,
|
|
8
|
+
_0x246581: 0x26e,
|
|
9
|
+
_0x46bf42: 0x329,
|
|
10
|
+
_0x5269e3: 0x318
|
|
11
|
+
}, _0x489eb6 = _0x4b05, _0x489e0c = _0x52557d();
|
|
10
12
|
while (!![]) {
|
|
11
13
|
try {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
+
const _0x51dd27 = -parseInt(_0x489eb6(_0x1a7cee._0x172f69)) / 0x1 * (parseInt(_0x489eb6(_0x1a7cee._0x481fa5)) / 0x2) + parseInt(_0x489eb6(_0x1a7cee._0x454774)) / 0x3 + parseInt(_0x489eb6(0x2b6)) / 0x4 + parseInt(_0x489eb6(0x1f6)) / 0x5 + parseInt(_0x489eb6(_0x1a7cee._0x596b80)) / 0x6 * (parseInt(_0x489eb6(0x2f4)) / 0x7) + -parseInt(_0x489eb6(_0x1a7cee._0x246581)) / 0x8 * (parseInt(_0x489eb6(_0x1a7cee._0x46bf42)) / 0x9) + -parseInt(_0x489eb6(_0x1a7cee._0x5269e3)) / 0xa;
|
|
15
|
+
if (_0x51dd27 === _0x22b76c)
|
|
14
16
|
break;
|
|
15
17
|
else
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
18
|
+
_0x489e0c['push'](_0x489e0c['shift']());
|
|
19
|
+
} catch (_0x48e981) {
|
|
20
|
+
_0x489e0c['push'](_0x489e0c['shift']());
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
}(
|
|
23
|
+
}(_0x4219, 0x69d8b));
|
|
22
24
|
import { pathToFileURL } from 'node:url';
|
|
23
25
|
import {
|
|
24
26
|
mkdir,
|
|
@@ -28,78 +30,77 @@ import {
|
|
|
28
30
|
writeFile
|
|
29
31
|
} from 'node:fs/promises';
|
|
30
32
|
import { homedir } from 'node:os';
|
|
31
|
-
import
|
|
33
|
+
import _0x3bda91 from 'node:path';
|
|
32
34
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
33
|
-
'.csv':
|
|
34
|
-
'.gif':
|
|
35
|
-
'.jpeg':
|
|
36
|
-
'.jpg':
|
|
37
|
-
'.json':
|
|
38
|
-
'.md':
|
|
39
|
-
'.pdf':
|
|
40
|
-
'.png':
|
|
41
|
-
'.svg':
|
|
42
|
-
'.txt':
|
|
43
|
-
'.webp':
|
|
44
|
-
'.xml':
|
|
45
|
-
'.zip':
|
|
35
|
+
'.csv': _0x5c3349(0x25f),
|
|
36
|
+
'.gif': 'image/gif',
|
|
37
|
+
'.jpeg': _0x5c3349(0x2eb),
|
|
38
|
+
'.jpg': 'image/jpeg',
|
|
39
|
+
'.json': _0x5c3349(0x2be),
|
|
40
|
+
'.md': _0x5c3349(0x1e5),
|
|
41
|
+
'.pdf': _0x5c3349(0x1c4),
|
|
42
|
+
'.png': _0x5c3349(0x307),
|
|
43
|
+
'.svg': _0x5c3349(0x1bf),
|
|
44
|
+
'.txt': _0x5c3349(0x1a5),
|
|
45
|
+
'.webp': _0x5c3349(0x22f),
|
|
46
|
+
'.xml': _0x5c3349(0x19f),
|
|
47
|
+
'.zip': _0x5c3349(0x297)
|
|
46
48
|
};
|
|
47
|
-
function guessContentType(
|
|
48
|
-
const
|
|
49
|
-
return MIME_BY_EXTENSION[
|
|
49
|
+
function guessContentType(_0x3a281c) {
|
|
50
|
+
const _0x6c7dc5 = { _0x16512f: 0x310 }, _0x3b6c73 = _0x5c3349;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x3bda91[_0x3b6c73(_0x6c7dc5._0x16512f)](_0x3a281c)[_0x3b6c73(0x1fb)]()] ?? 'application/octet-stream';
|
|
50
52
|
}
|
|
51
|
-
function safeFilename(
|
|
52
|
-
const
|
|
53
|
-
return
|
|
53
|
+
function safeFilename(_0x2e01d0) {
|
|
54
|
+
const _0x546de2 = { _0x1b3b25: 0x28b }, _0xefe93d = _0x5c3349;
|
|
55
|
+
return _0x2e01d0[_0xefe93d(_0x546de2._0x1b3b25)](/[\\/]/g, '-');
|
|
54
56
|
}
|
|
55
|
-
function extensionFor(
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
_0x3bff95: 0xdb
|
|
59
|
-
}, _0x42e208 = _0x1bf962, _0x114aea = Object['entries'](MIME_BY_EXTENSION)[_0x42e208(_0x142182._0x13a7ba)](([, _0x4e2ba1]) => _0x4e2ba1 === _0x191e5b);
|
|
60
|
-
return _0x114aea?.[0x0] ?? _0x42e208(_0x142182._0x3bff95);
|
|
57
|
+
function extensionFor(_0x5cf71d) {
|
|
58
|
+
const _0x779aac = { _0x3a1267: 0x2a7 }, _0xa469ce = _0x5c3349, _0xe7afb2 = Object[_0xa469ce(_0x779aac._0x3a1267)](MIME_BY_EXTENSION)['find'](([, _0x13596c]) => _0x13596c === _0x5cf71d);
|
|
59
|
+
return _0xe7afb2?.[0x0] ?? _0xa469ce(0x2ec);
|
|
61
60
|
}
|
|
62
|
-
async function prepareUploadFile(
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
61
|
+
async function prepareUploadFile(_0x5f81ee, _0x405c28 = {}) {
|
|
62
|
+
const _0x5097cb = {
|
|
63
|
+
_0x24e49f: 0x1fd,
|
|
64
|
+
_0x5070b6: 0x32b,
|
|
65
|
+
_0x2c313a: 0x1a4,
|
|
66
|
+
_0x1cc54a: 0x2c7,
|
|
67
|
+
_0xf146a8: 0x32b
|
|
68
|
+
}, _0x5571ea = _0x5c3349;
|
|
69
|
+
if (!_0x3bda91[_0x5571ea(0x2c9)](_0x5f81ee))
|
|
70
|
+
throw new Error(_0x5571ea(0x278));
|
|
71
|
+
const _0x28ce3c = await stat(_0x5f81ee)[_0x5571ea(0x1a7)](() => null);
|
|
72
|
+
if (!_0x28ce3c || !_0x28ce3c[_0x5571ea(_0x5097cb._0x24e49f)]())
|
|
73
|
+
throw new Error(_0x5571ea(0x2e7) + _0x5f81ee);
|
|
74
|
+
const _0x1bd920 = _0x405c28['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
75
|
+
if (_0x28ce3c[_0x5571ea(_0x5097cb._0x5070b6)] > _0x1bd920)
|
|
76
|
+
throw new Error(_0x5571ea(0x25e) + _0x28ce3c['size']);
|
|
77
|
+
const _0x49ac66 = await readFile(_0x5f81ee), _0x11a1cf = _0x3bda91['basename'](_0x5f81ee);
|
|
78
78
|
return {
|
|
79
|
-
'contentBase64':
|
|
80
|
-
'contentType': guessContentType(
|
|
81
|
-
'filename':
|
|
82
|
-
'sizeBytes':
|
|
79
|
+
'contentBase64': _0x49ac66[_0x5571ea(_0x5097cb._0x2c313a)](_0x5571ea(_0x5097cb._0x1cc54a)),
|
|
80
|
+
'contentType': guessContentType(_0x11a1cf),
|
|
81
|
+
'filename': _0x11a1cf,
|
|
82
|
+
'sizeBytes': _0x28ce3c[_0x5571ea(_0x5097cb._0xf146a8)]
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
function createAttachmentCache(
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
85
|
+
function createAttachmentCache(_0x449ea5 = {}) {
|
|
86
|
+
const _0x19cff4 = {
|
|
87
|
+
_0x214b4d: 0x28d,
|
|
88
|
+
_0x225360: 0x1d5,
|
|
89
|
+
_0x511932: 0x1af
|
|
90
|
+
}, _0x11c35f = _0x5c3349, _0x101ddb = _0x449ea5['cacheDir'] ?? _0x3bda91[_0x11c35f(0x28d)](homedir(), _0x11c35f(0x247), _0x11c35f(0x22b));
|
|
90
91
|
return {
|
|
91
|
-
'cacheDir':
|
|
92
|
-
async 'findCachedPath'(
|
|
93
|
-
const
|
|
94
|
-
await mkdir(
|
|
95
|
-
const
|
|
96
|
-
return
|
|
92
|
+
'cacheDir': _0x101ddb,
|
|
93
|
+
async 'findCachedPath'(_0x21fc75) {
|
|
94
|
+
const _0x1b3ece = _0x11c35f;
|
|
95
|
+
await mkdir(_0x101ddb, { 'recursive': !![] });
|
|
96
|
+
const _0x2d01f4 = await readdir(_0x101ddb), _0x1d842a = _0x2d01f4['find'](_0x3eb5ea => _0x3eb5ea[_0x1b3ece(0x24f)](_0x21fc75 + '-') || _0x3eb5ea['startsWith'](_0x21fc75));
|
|
97
|
+
return _0x1d842a ? _0x3bda91[_0x1b3ece(0x28d)](_0x101ddb, _0x1d842a) : null;
|
|
97
98
|
},
|
|
98
|
-
async 'save'(
|
|
99
|
-
const
|
|
100
|
-
await mkdir(
|
|
101
|
-
const
|
|
102
|
-
return await writeFile(
|
|
99
|
+
async 'save'(_0x5efd8a) {
|
|
100
|
+
const _0x3ceb0b = _0x11c35f;
|
|
101
|
+
await mkdir(_0x101ddb, { 'recursive': !![] });
|
|
102
|
+
const _0x2b239e = _0x5efd8a['originalFilename']?.[_0x3ceb0b(0x211)]() ? safeFilename(_0x5efd8a['originalFilename']) : '' + _0x5efd8a['attachmentId'] + extensionFor(_0x5efd8a['contentType']), _0x592348 = _0x3bda91[_0x3ceb0b(_0x19cff4._0x214b4d)](_0x101ddb, _0x5efd8a[_0x3ceb0b(_0x19cff4._0x225360)] + '-' + _0x2b239e);
|
|
103
|
+
return await writeFile(_0x592348, _0x5efd8a[_0x3ceb0b(_0x19cff4._0x511932)]), _0x592348;
|
|
103
104
|
}
|
|
104
105
|
};
|
|
105
106
|
}
|
|
@@ -107,2204 +108,2223 @@ import {
|
|
|
107
108
|
createHash,
|
|
108
109
|
randomUUID
|
|
109
110
|
} from 'node:crypto';
|
|
110
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
111
|
-
function ensureSegment(
|
|
112
|
-
const
|
|
113
|
-
if (!
|
|
111
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x5c3349(0x280);
|
|
112
|
+
function ensureSegment(_0x116842) {
|
|
113
|
+
const _0x2592eb = _0x5c3349, _0x3b02b4 = _0x116842[_0x2592eb(0x211)]();
|
|
114
|
+
if (!_0x3b02b4 || _0x3b02b4['includes'](':'))
|
|
114
115
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
115
|
-
return
|
|
116
|
+
return _0x3b02b4;
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
function parseThreadParts(_0x3cc019) {
|
|
119
|
+
const _0xcb928f = { _0x3349b1: 0x29d }, _0x2d6214 = _0x5c3349, _0x4d16bb = _0x3cc019[_0x2d6214(0x1ae)](':');
|
|
120
|
+
if (_0x4d16bb[_0x2d6214(_0xcb928f._0x3349b1)] < 0x1 || _0x4d16bb[_0x2d6214(0x29d)] > 0x2)
|
|
121
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
122
|
+
return {
|
|
123
|
+
'channelName': ensureSegment(_0x4d16bb[0x0] ?? ''),
|
|
124
|
+
'threadShortId': _0x4d16bb[0x1] ? ensureSegment(_0x4d16bb[0x1]) : null
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function parseTarget(_0x5a8d50) {
|
|
128
|
+
const _0x46aa59 = {
|
|
129
|
+
_0x2bdb6d: 0x211,
|
|
130
|
+
_0x220dfa: 0x27e,
|
|
131
|
+
_0x42ab52: 0x1db,
|
|
132
|
+
_0x475de6: 0x292,
|
|
133
|
+
_0x5defc5: 0x2e1,
|
|
134
|
+
_0x358054: 0x2e1
|
|
135
|
+
}, _0xbfd228 = _0x5c3349, _0x116ba1 = _0x5a8d50[_0xbfd228(_0x46aa59._0x2bdb6d)]();
|
|
136
|
+
if (!_0x116ba1)
|
|
137
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
138
|
+
if (_0x116ba1[_0xbfd228(0x24f)]('#')) {
|
|
139
|
+
const _0x55a2f0 = parseThreadParts(_0x116ba1[_0xbfd228(0x27e)](0x1)), _0x39a365 = '#' + _0x55a2f0[_0xbfd228(0x1db)];
|
|
140
|
+
if (!_0x55a2f0[_0xbfd228(0x2e1)])
|
|
141
|
+
return {
|
|
142
|
+
'channelName': _0x55a2f0['channelName'],
|
|
143
|
+
'channelTarget': _0x39a365,
|
|
144
|
+
'kind': 'channel',
|
|
145
|
+
'target': _0x39a365
|
|
146
|
+
};
|
|
147
|
+
return {
|
|
148
|
+
'channelName': _0x55a2f0[_0xbfd228(0x1db)],
|
|
149
|
+
'channelTarget': _0x39a365,
|
|
150
|
+
'kind': 'thread',
|
|
151
|
+
'target': _0x39a365 + ':' + _0x55a2f0['threadShortId'],
|
|
152
|
+
'threadShortId': _0x55a2f0['threadShortId']
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
if (_0x116ba1[_0xbfd228(0x24f)]('dm:')) {
|
|
156
|
+
const _0x521642 = parseThreadParts(_0x116ba1[_0xbfd228(_0x46aa59._0x220dfa)](0x3));
|
|
157
|
+
if (!_0x521642[_0xbfd228(_0x46aa59._0x42ab52)][_0xbfd228(0x24f)]('dm-'))
|
|
158
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
159
|
+
const _0x26f5d8 = _0xbfd228(0x277) + _0x521642[_0xbfd228(0x1db)];
|
|
160
|
+
if (!_0x521642[_0xbfd228(0x2e1)])
|
|
161
|
+
return {
|
|
162
|
+
'channelName': _0x521642['channelName'],
|
|
163
|
+
'channelTarget': _0x26f5d8,
|
|
164
|
+
'kind': 'channel',
|
|
165
|
+
'target': _0x26f5d8
|
|
166
|
+
};
|
|
167
|
+
return {
|
|
168
|
+
'channelName': _0x521642[_0xbfd228(0x1db)],
|
|
169
|
+
'channelTarget': _0x26f5d8,
|
|
170
|
+
'kind': _0xbfd228(_0x46aa59._0x475de6),
|
|
171
|
+
'target': _0x26f5d8 + ':' + _0x521642[_0xbfd228(_0x46aa59._0x5defc5)],
|
|
172
|
+
'threadShortId': _0x521642[_0xbfd228(_0x46aa59._0x358054)]
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
176
|
+
}
|
|
177
|
+
function asErrorMessage(_0x5281dc, _0x5891e2) {
|
|
178
|
+
const _0xb11a88 = _0x5c3349;
|
|
179
|
+
if (typeof _0x5281dc === _0xb11a88(0x23f) && _0x5281dc[_0xb11a88(0x211)]())
|
|
180
|
+
return _0x5281dc;
|
|
181
|
+
return _0x5891e2;
|
|
182
|
+
}
|
|
183
|
+
function asRecord(_0x381c1f) {
|
|
184
|
+
const _0x4a6d55 = { _0x178779: 0x214 }, _0xe03e39 = _0x5c3349;
|
|
185
|
+
return typeof _0x381c1f === _0xe03e39(_0x4a6d55._0x178779) && _0x381c1f !== null ? _0x381c1f : {};
|
|
186
|
+
}
|
|
187
|
+
function stableStringify(_0x50f318) {
|
|
188
|
+
const _0x1c44a9 = {
|
|
189
|
+
_0x1bf4c0: 0x214,
|
|
190
|
+
_0x1c071f: 0x296,
|
|
191
|
+
_0x21dfc2: 0x2a7,
|
|
192
|
+
_0x9efc8: 0x276
|
|
193
|
+
}, _0x405d03 = _0x5c3349;
|
|
194
|
+
if (_0x50f318 === null || typeof _0x50f318 !== _0x405d03(_0x1c44a9._0x1bf4c0))
|
|
195
|
+
return JSON[_0x405d03(0x2d0)](_0x50f318);
|
|
196
|
+
if (Array[_0x405d03(_0x1c44a9._0x1c071f)](_0x50f318))
|
|
197
|
+
return '[' + _0x50f318[_0x405d03(0x221)](_0x45b4d3 => stableStringify(_0x45b4d3))[_0x405d03(0x28d)](',') + ']';
|
|
198
|
+
const _0x32867b = Object[_0x405d03(_0x1c44a9._0x21dfc2)](_0x50f318)[_0x405d03(0x31e)](([, _0x51f1b4]) => _0x51f1b4 !== void 0x0)[_0x405d03(_0x1c44a9._0x9efc8)](([_0x3917ff], [_0x371c0c]) => _0x3917ff[_0x405d03(0x2ca)](_0x371c0c))[_0x405d03(0x221)](([_0x34175d, _0x5b042a]) => JSON[_0x405d03(0x2d0)](_0x34175d) + ':' + stableStringify(_0x5b042a));
|
|
199
|
+
return '{' + _0x32867b['join'](',') + '}';
|
|
200
|
+
}
|
|
201
|
+
function createHeaders(_0x4c8d6b) {
|
|
202
|
+
return {
|
|
203
|
+
'Content-Type': 'application/json',
|
|
204
|
+
'x-daemon-api-key': _0x4c8d6b
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function toHttpBaseUrl(_0xcb9d94) {
|
|
208
|
+
const _0x2debac = {
|
|
209
|
+
_0x20add5: 0x1df,
|
|
210
|
+
_0x3d6d0a: 0x1c6,
|
|
211
|
+
_0x4df3dd: 0x1c5,
|
|
212
|
+
_0x52d6e3: 0x23d,
|
|
213
|
+
_0xf1e6e: 0x1a4
|
|
214
|
+
}, _0x533e0e = _0x5c3349, _0x12f581 = new URL(_0xcb9d94);
|
|
215
|
+
if (_0x12f581[_0x533e0e(0x1c5)] === _0x533e0e(_0x2debac._0x20add5))
|
|
216
|
+
_0x12f581[_0x533e0e(0x1c5)] = _0x533e0e(_0x2debac._0x3d6d0a);
|
|
217
|
+
else
|
|
218
|
+
_0x12f581[_0x533e0e(_0x2debac._0x4df3dd)] === _0x533e0e(_0x2debac._0x52d6e3) && (_0x12f581[_0x533e0e(0x1c5)] = 'https:');
|
|
219
|
+
return _0x12f581[_0x533e0e(_0x2debac._0xf1e6e)]()[_0x533e0e(0x28b)](/\/$/, '');
|
|
220
|
+
}
|
|
221
|
+
function isMentionBoundary(_0x2d37ef) {
|
|
222
|
+
return !_0x2d37ef || /\s|[([{'",。!?、:;]/['test'](_0x2d37ef);
|
|
223
|
+
}
|
|
224
|
+
function isMentionTerminal(_0x3cf5f5) {
|
|
225
|
+
const _0x49a4e8 = { _0x10e033: 0x220 }, _0x15c303 = _0x5c3349;
|
|
226
|
+
return !_0x3cf5f5 || /\s|[)\]}'",。!?、:;,.!?]/[_0x15c303(_0x49a4e8._0x10e033)](_0x3cf5f5);
|
|
227
|
+
}
|
|
228
|
+
function buildMatchableEntries(_0x532f8f) {
|
|
229
|
+
const _0xcd3494 = {
|
|
230
|
+
_0x22b3cf: 0x25c,
|
|
231
|
+
_0x12f2f6: 0x2c2,
|
|
232
|
+
_0x2e47ea: 0x262,
|
|
233
|
+
_0x36b6ce: 0x262
|
|
234
|
+
}, _0x477b6f = _0x5c3349, _0x7e801f = [];
|
|
235
|
+
for (const _0x550520 of [
|
|
236
|
+
..._0x532f8f['agents'],
|
|
237
|
+
..._0x532f8f[_0x477b6f(_0xcd3494._0x22b3cf)]
|
|
238
|
+
]) {
|
|
239
|
+
_0x7e801f[_0x477b6f(_0xcd3494._0x12f2f6)]({
|
|
240
|
+
'matchName': _0x550520['name'],
|
|
241
|
+
'matchNameLower': _0x550520['name'][_0x477b6f(_0xcd3494._0x2e47ea)](),
|
|
242
|
+
'participantId': _0x550520['id']
|
|
243
|
+
}), _0x550520['id'] !== _0x550520[_0x477b6f(0x2ee)] && _0x7e801f[_0x477b6f(_0xcd3494._0x12f2f6)]({
|
|
244
|
+
'matchName': _0x550520['id'],
|
|
245
|
+
'matchNameLower': _0x550520['id'][_0x477b6f(_0xcd3494._0x36b6ce)](),
|
|
246
|
+
'participantId': _0x550520['id']
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return _0x7e801f;
|
|
250
|
+
}
|
|
251
|
+
function extractMentionedParticipantIds(_0x38aebf, _0x292cdd) {
|
|
252
|
+
const _0x591b24 = {
|
|
253
|
+
_0x13ff19: 0x264,
|
|
254
|
+
_0x11785f: 0x30b,
|
|
255
|
+
_0x3cfcf0: 0x2c2,
|
|
256
|
+
_0x4ba56a: 0x1d2
|
|
257
|
+
}, _0x5bc59a = {
|
|
258
|
+
_0x2e3e42: 0x24f,
|
|
259
|
+
_0x521a46: 0x29d
|
|
260
|
+
}, _0x4fdaf7 = _0x5c3349, _0x4f2e43 = buildMatchableEntries(_0x292cdd)[_0x4fdaf7(0x276)]((_0x4c752d, _0x39c400) => _0x39c400[_0x4fdaf7(0x1d2)][_0x4fdaf7(0x29d)] - _0x4c752d[_0x4fdaf7(0x1d2)][_0x4fdaf7(0x29d)]), _0x13322a = [], _0x543b04 = new Set();
|
|
261
|
+
for (let _0x154933 = 0x0; _0x154933 < _0x38aebf[_0x4fdaf7(0x29d)]; _0x154933 += 0x1) {
|
|
262
|
+
if (_0x38aebf[_0x154933] !== '@' || !isMentionBoundary(_0x38aebf[_0x154933 - 0x1]))
|
|
263
|
+
continue;
|
|
264
|
+
const _0x4ec7d7 = _0x38aebf['slice'](_0x154933 + 0x1), _0x566c2d = _0x4ec7d7['toLocaleLowerCase'](), _0x1bed66 = _0x4f2e43['find'](_0x440256 => {
|
|
265
|
+
const _0x7c492 = _0x4fdaf7;
|
|
266
|
+
if (!_0x566c2d[_0x7c492(_0x5bc59a._0x2e3e42)](_0x440256[_0x7c492(0x28e)]))
|
|
267
|
+
return ![];
|
|
268
|
+
return isMentionTerminal(_0x4ec7d7[_0x440256[_0x7c492(0x1d2)][_0x7c492(_0x5bc59a._0x521a46)]]);
|
|
269
|
+
});
|
|
270
|
+
if (!_0x1bed66 || _0x543b04[_0x4fdaf7(0x218)](_0x1bed66[_0x4fdaf7(0x30b)]))
|
|
271
|
+
continue;
|
|
272
|
+
_0x543b04[_0x4fdaf7(_0x591b24._0x13ff19)](_0x1bed66[_0x4fdaf7(_0x591b24._0x11785f)]), _0x13322a[_0x4fdaf7(_0x591b24._0x3cfcf0)](_0x1bed66['participantId']), _0x154933 += _0x1bed66[_0x4fdaf7(_0x591b24._0x4ba56a)][_0x4fdaf7(0x29d)];
|
|
273
|
+
}
|
|
274
|
+
return _0x13322a;
|
|
275
|
+
}
|
|
276
|
+
function _0x4b05(_0x4e05fc, _0x5d36cb) {
|
|
277
|
+
_0x4e05fc = _0x4e05fc - 0x19e;
|
|
278
|
+
const _0x4219f7 = _0x4219();
|
|
279
|
+
let _0x4b051e = _0x4219f7[_0x4e05fc];
|
|
280
|
+
if (_0x4b05['RcRXoC'] === undefined) {
|
|
281
|
+
var _0x4ccf8e = function (_0x21c876) {
|
|
282
|
+
const _0x173506 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
283
|
+
let _0x3bda91 = '', _0x3a281c = '';
|
|
284
|
+
for (let _0x2e01d0 = 0x0, _0x5cf71d, _0xe7afb2, _0x13596c = 0x0; _0xe7afb2 = _0x21c876['charAt'](_0x13596c++); ~_0xe7afb2 && (_0x5cf71d = _0x2e01d0 % 0x4 ? _0x5cf71d * 0x40 + _0xe7afb2 : _0xe7afb2, _0x2e01d0++ % 0x4) ? _0x3bda91 += String['fromCharCode'](0xff & _0x5cf71d >> (-0x2 * _0x2e01d0 & 0x6)) : 0x0) {
|
|
285
|
+
_0xe7afb2 = _0x173506['indexOf'](_0xe7afb2);
|
|
286
|
+
}
|
|
287
|
+
for (let _0x5f81ee = 0x0, _0x405c28 = _0x3bda91['length']; _0x5f81ee < _0x405c28; _0x5f81ee++) {
|
|
288
|
+
_0x3a281c += '%' + ('00' + _0x3bda91['charCodeAt'](_0x5f81ee)['toString'](0x10))['slice'](-0x2);
|
|
289
|
+
}
|
|
290
|
+
return decodeURIComponent(_0x3a281c);
|
|
291
|
+
};
|
|
292
|
+
_0x4b05['JiglHC'] = _0x4ccf8e, _0x4b05['vTnDLA'] = {}, _0x4b05['RcRXoC'] = !![];
|
|
293
|
+
}
|
|
294
|
+
const _0x4b8383 = _0x4219f7[0x0], _0x2d8a02 = _0x4e05fc + _0x4b8383, _0x2afe13 = _0x4b05['vTnDLA'][_0x2d8a02];
|
|
295
|
+
return !_0x2afe13 ? (_0x4b051e = _0x4b05['JiglHC'](_0x4b051e), _0x4b05['vTnDLA'][_0x2d8a02] = _0x4b051e) : _0x4b051e = _0x2afe13, _0x4b051e;
|
|
296
|
+
}
|
|
297
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
298
|
+
function anySignal(..._0x109ed4) {
|
|
299
|
+
const _0x3c81af = { _0x1440d9: 0x2f1 }, _0x21ea2b = _0x5c3349, _0x3c0497 = new AbortController();
|
|
300
|
+
for (const _0x24f009 of _0x109ed4) {
|
|
301
|
+
if (_0x24f009[_0x21ea2b(0x266)])
|
|
302
|
+
return _0x3c0497[_0x21ea2b(0x1c2)](_0x24f009[_0x21ea2b(0x237)]), _0x3c0497[_0x21ea2b(_0x3c81af._0x1440d9)];
|
|
303
|
+
_0x24f009['addEventListener']('abort', () => _0x3c0497['abort'](_0x24f009['reason']), {
|
|
304
|
+
'once': !![],
|
|
305
|
+
'signal': _0x3c0497[_0x21ea2b(_0x3c81af._0x1440d9)]
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
return _0x3c0497[_0x21ea2b(0x2f1)];
|
|
309
|
+
}
|
|
310
|
+
function createInternalAgentClient(_0x4add09) {
|
|
311
|
+
const _0x455104 = {
|
|
312
|
+
_0x1ebc75: 0x2fa,
|
|
313
|
+
_0x4701f0: 0x211,
|
|
314
|
+
_0xaf47c9: 0x259
|
|
315
|
+
}, _0x55f86b = {
|
|
316
|
+
_0x1a8df2: 0x2dd,
|
|
317
|
+
_0x25516a: 0x254,
|
|
318
|
+
_0x143e07: 0x1e0,
|
|
319
|
+
_0x23fd70: 0x200,
|
|
320
|
+
_0x542821: 0x29d,
|
|
321
|
+
_0x47bed3: 0x200,
|
|
322
|
+
_0x17fdb3: 0x221,
|
|
323
|
+
_0x3dd177: 0x250,
|
|
324
|
+
_0x1e802b: 0x270,
|
|
325
|
+
_0x5029f1: 0x289,
|
|
326
|
+
_0x45cc41: 0x23f,
|
|
327
|
+
_0x400b12: 0x2b3,
|
|
328
|
+
_0x389bd9: 0x23f,
|
|
329
|
+
_0x5ed549: 0x299,
|
|
330
|
+
_0x17f9b4: 0x2fa,
|
|
331
|
+
_0x374105: 0x273,
|
|
332
|
+
_0x36585f: 0x2b2,
|
|
333
|
+
_0xeed909: 0x2fe,
|
|
334
|
+
_0x6371b0: 0x2b2,
|
|
335
|
+
_0x4c82c8: 0x313,
|
|
336
|
+
_0x1045ba: 0x1ba,
|
|
337
|
+
_0x93d1bb: 0x2e2,
|
|
338
|
+
_0x3d6420: 0x1e3,
|
|
339
|
+
_0x5d5de1: 0x2df,
|
|
340
|
+
_0xaafd2c: 0x31e
|
|
341
|
+
}, _0x26819e = {
|
|
342
|
+
_0x1f1f22: 0x267,
|
|
343
|
+
_0xdfec25: 0x2b3
|
|
344
|
+
}, _0x33ed32 = {
|
|
345
|
+
_0xa07d0a: 0x2dc,
|
|
346
|
+
_0x175389: 0x1e0,
|
|
347
|
+
_0x51450a: 0x1b0,
|
|
348
|
+
_0x244f61: 0x1c9,
|
|
349
|
+
_0x9982c: 0x2fe,
|
|
350
|
+
_0x3eef85: 0x265,
|
|
351
|
+
_0x43cd68: 0x252
|
|
352
|
+
}, _0x120f5f = {
|
|
353
|
+
_0x445045: 0x2dd,
|
|
354
|
+
_0x4499fe: 0x1bd,
|
|
355
|
+
_0x4bd013: 0x30c,
|
|
356
|
+
_0x15a589: 0x2c6,
|
|
357
|
+
_0x34640b: 0x2ac,
|
|
358
|
+
_0x5c0f55: 0x1af,
|
|
359
|
+
_0x4ae8e6: 0x1af,
|
|
360
|
+
_0xdeb69f: 0x1e1,
|
|
361
|
+
_0x539e64: 0x1af
|
|
362
|
+
}, _0x57ad71 = {
|
|
363
|
+
_0x5e2b79: 0x293,
|
|
364
|
+
_0x1f0157: 0x2dd,
|
|
365
|
+
_0x23f30b: 0x24c,
|
|
366
|
+
_0x91dfa: 0x2d0,
|
|
367
|
+
_0x1f0977: 0x2ac
|
|
368
|
+
}, _0x23c56b = { _0x501971: 0x2d0 }, _0x338d37 = {
|
|
369
|
+
_0x26df0b: 0x293,
|
|
370
|
+
_0x1914f1: 0x2d0,
|
|
371
|
+
_0x46a01b: 0x2ac
|
|
372
|
+
}, _0x36fb69 = {
|
|
373
|
+
_0x42eae1: 0x2dd,
|
|
374
|
+
_0x5a1275: 0x2c1,
|
|
375
|
+
_0x2b2586: 0x2d0
|
|
376
|
+
}, _0x1587b9 = {
|
|
377
|
+
_0x118d72: 0x272,
|
|
378
|
+
_0x4815c3: 0x1d0,
|
|
379
|
+
_0x5809d8: 0x293,
|
|
380
|
+
_0x3dd105: 0x2dd,
|
|
381
|
+
_0x1550d9: 0x263,
|
|
382
|
+
_0x2ad820: 0x1a4,
|
|
383
|
+
_0x184894: 0x1e0
|
|
384
|
+
}, _0x4005d2 = {
|
|
385
|
+
_0x3c37df: 0x257,
|
|
386
|
+
_0x108f5c: 0x212
|
|
387
|
+
}, _0x5c0665 = { _0x3d24c3: 0x2d0 }, _0x17a48b = { _0x2a4aef: 0x1e0 }, _0x3e9529 = {
|
|
388
|
+
_0x5d6f53: 0x309,
|
|
389
|
+
_0x3df21d: 0x213
|
|
390
|
+
}, _0x376aab = {
|
|
391
|
+
_0x5a5330: 0x242,
|
|
392
|
+
_0x167a7a: 0x24b,
|
|
393
|
+
_0x805408: 0x2b3,
|
|
394
|
+
_0x2229cc: 0x267,
|
|
395
|
+
_0x5a7f1a: 0x272,
|
|
396
|
+
_0x579ee5: 0x1cb,
|
|
397
|
+
_0x345b38: 0x2dd,
|
|
398
|
+
_0x930f8d: 0x1a4,
|
|
399
|
+
_0x2c88bd: 0x298,
|
|
400
|
+
_0x13eb58: 0x1f1
|
|
401
|
+
}, _0x3cb21e = {
|
|
402
|
+
_0x5140a0: 0x320,
|
|
403
|
+
_0x52fade: 0x287,
|
|
404
|
+
_0x359c35: 0x30b
|
|
405
|
+
}, _0x9d6090 = {
|
|
406
|
+
_0x5331b9: 0x1f3,
|
|
407
|
+
_0x3b8507: 0x292,
|
|
408
|
+
_0x17ac94: 0x1b6,
|
|
409
|
+
_0x53bd91: 0x2e1,
|
|
410
|
+
_0x25750f: 0x299,
|
|
411
|
+
_0x47c57a: 0x24f,
|
|
412
|
+
_0x1df6db: 0x2b3,
|
|
413
|
+
_0x4dc46b: 0x2e1,
|
|
414
|
+
_0x41eb51: 0x2b3,
|
|
415
|
+
_0x1bbe66: 0x24f
|
|
416
|
+
}, _0x2c76c1 = {
|
|
417
|
+
_0x40103d: 0x2b2,
|
|
418
|
+
_0x3c1ac2: 0x2b3
|
|
419
|
+
}, _0x1c5d32 = {
|
|
420
|
+
_0x5e87f0: 0x260,
|
|
421
|
+
_0x4f1a82: 0x2e8
|
|
422
|
+
}, _0x582c00 = {
|
|
423
|
+
_0x37d7a0: 0x28c,
|
|
424
|
+
_0x109efe: 0x1a7
|
|
425
|
+
}, _0x118186 = {
|
|
426
|
+
_0x4ebf4c: 0x1af,
|
|
427
|
+
_0x1a545c: 0x2b1,
|
|
428
|
+
_0x53d985: 0x31e,
|
|
429
|
+
_0x4fed9d: 0x221,
|
|
430
|
+
_0x508ce0: 0x1af,
|
|
431
|
+
_0x389156: 0x250,
|
|
432
|
+
_0x6490fc: 0x1af,
|
|
433
|
+
_0x1821be: 0x2ee
|
|
434
|
+
}, _0x5bbb19 = {
|
|
435
|
+
_0x3aa147: 0x215,
|
|
436
|
+
_0x29df8e: 0x2d0,
|
|
437
|
+
_0x22635b: 0x1af,
|
|
438
|
+
_0x24148d: 0x289,
|
|
439
|
+
_0x23e9f3: 0x2b2
|
|
440
|
+
}, _0x8475f8 = {
|
|
441
|
+
_0x546402: 0x2d0,
|
|
442
|
+
_0x1c4d57: 0x2be,
|
|
443
|
+
_0x18846c: 0x2ac
|
|
444
|
+
}, _0x2fb0a3 = { _0x365533: 0x239 }, _0x1a6ab9 = {
|
|
445
|
+
_0x14e338: 0x2f1,
|
|
446
|
+
_0xb6bcce: 0x2f1
|
|
447
|
+
}, _0x20192c = {
|
|
448
|
+
_0x650eb2: 0x2f1,
|
|
449
|
+
_0x42d587: 0x232,
|
|
450
|
+
_0x4fc263: 0x212
|
|
451
|
+
}, _0x4d3256 = {
|
|
452
|
+
_0x520f5e: 0x261,
|
|
453
|
+
_0x10950a: 0x1cf,
|
|
454
|
+
_0x305942: 0x29e,
|
|
455
|
+
_0x26b99d: 0x20c,
|
|
456
|
+
_0x27c91e: 0x2fe,
|
|
457
|
+
_0x5f1c20: 0x2fc
|
|
458
|
+
}, _0x5433c6 = {
|
|
459
|
+
_0x299d38: 0x300,
|
|
460
|
+
_0x46e986: 0x1be,
|
|
461
|
+
_0xfd91b5: 0x275
|
|
462
|
+
}, _0x3d1cfe = {
|
|
463
|
+
_0x55015e: 0x328,
|
|
464
|
+
_0x44dc72: 0x2fe,
|
|
465
|
+
_0x2cde6d: 0x2cb,
|
|
466
|
+
_0x19945c: 0x223,
|
|
467
|
+
_0x23513d: 0x26a,
|
|
468
|
+
_0x558ead: 0x2e9
|
|
469
|
+
}, _0x14a091 = _0x5c3349, _0x4d2d69 = _0x4add09[_0x14a091(0x26f)] ?? fetch, _0x364052 = _0x4add09[_0x14a091(0x1e2)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4f35c6 = typeof _0x4add09[_0x14a091(0x1d9)] === _0x14a091(_0x455104._0x1ebc75) && _0x4add09[_0x14a091(0x1d9)] > 0x0 ? _0x4add09['initialLastSeenSeq'] : 0x0, _0x571f2a = _0x4add09[_0x14a091(0x2a3)]?.['trim']() || void 0x0, _0x507646 = _0x4add09[_0x14a091(0x2f8)]?.[_0x14a091(_0x455104._0x4701f0)]() || void 0x0, _0x59b537 = _0x4add09[_0x14a091(_0x455104._0xaf47c9)] === !![], _0x5cfb51 = _0x4add09['workerSessionId']?.[_0x14a091(0x211)]() || void 0x0, _0xed8809 = _0x4add09['workerThreadTarget']?.['trim']() || void 0x0, _0x4b4929 = createHeaders(_0x4add09[_0x14a091(0x32a)]), _0x474c2b = toHttpBaseUrl(_0x4add09[_0x14a091(0x1f2)]);
|
|
470
|
+
let _0x1779a7 = null;
|
|
471
|
+
const _0x3fb884 = new Map();
|
|
472
|
+
let _0x479a0f = _0x4f35c6, _0x3bcb72 = _0x4f35c6;
|
|
473
|
+
function _0x3be81f(_0x177f67) {
|
|
474
|
+
const _0xc066d1 = _0x14a091, _0x2b7a24 = _0x177f67[_0xc066d1(0x229)][_0xc066d1(_0x3d1cfe._0x55015e)][_0xc066d1(_0x3d1cfe._0x44dc72)](_0xc066d1(0x24e)) ?? 'unknown', _0x332320 = _0x177f67['bodyText']['trim']()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0xc066d1(_0x3d1cfe._0x2cde6d);
|
|
475
|
+
return _0xc066d1(_0x3d1cfe._0x19945c) + _0x177f67[_0xc066d1(_0x3d1cfe._0x23513d)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x177f67['response'][_0xc066d1(0x212)] + _0xc066d1(_0x3d1cfe._0x558ead) + _0x2b7a24 + ',\x20preview=' + _0x332320 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
476
|
+
}
|
|
477
|
+
async function _0x51bbfc(_0x241a4d, _0x462be3) {
|
|
478
|
+
const _0x485fd7 = _0x14a091, _0x58143a = Buffer[_0x485fd7(_0x5433c6._0x299d38)](await _0x462be3['arrayBuffer']())[_0x485fd7(0x1a4)](_0x485fd7(_0x5433c6._0x46e986));
|
|
479
|
+
if (!_0x58143a[_0x485fd7(0x211)]())
|
|
480
|
+
return {};
|
|
481
|
+
try {
|
|
482
|
+
return JSON[_0x485fd7(_0x5433c6._0xfd91b5)](_0x58143a);
|
|
483
|
+
} catch {
|
|
484
|
+
throw new Error(_0x3be81f({
|
|
485
|
+
'bodyText': _0x58143a,
|
|
486
|
+
'requestUrl': _0x241a4d,
|
|
487
|
+
'response': _0x462be3
|
|
488
|
+
}));
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
function _0x106453(_0x7eb9c0, _0x57ac9c) {
|
|
492
|
+
const _0x467080 = _0x14a091, _0x271002 = typeof _0x57ac9c['idempotency_key'] === 'string' ? _0x57ac9c[_0x467080(_0x4d3256._0x520f5e)][_0x467080(0x211)]() : '';
|
|
493
|
+
if (_0x271002)
|
|
494
|
+
return _0x271002;
|
|
495
|
+
const _0x2572c7 = Date[_0x467080(_0x4d3256._0x10950a)]();
|
|
496
|
+
for (const [_0x7b591c, _0x51cac8] of _0x3fb884) {
|
|
497
|
+
_0x51cac8[_0x467080(0x28f)] <= _0x2572c7 && _0x3fb884[_0x467080(0x240)](_0x7b591c);
|
|
498
|
+
}
|
|
499
|
+
const _0x307260 = {
|
|
500
|
+
..._0x57ac9c,
|
|
501
|
+
'idempotency_key': void 0x0
|
|
502
|
+
}, _0x48f98b = createHash(_0x467080(_0x4d3256._0x305942))['update'](_0x7eb9c0 + ':' + stableStringify(_0x307260))[_0x467080(0x2e4)](_0x467080(_0x4d3256._0x26b99d)), _0x2150ed = _0x7eb9c0 + ':' + _0x48f98b, _0x2fc074 = _0x3fb884[_0x467080(_0x4d3256._0x27c91e)](_0x2150ed);
|
|
503
|
+
if (_0x2fc074)
|
|
504
|
+
return _0x2fc074[_0x467080(0x1e8)];
|
|
505
|
+
const _0x2ad1a2 = _0x467080(_0x4d3256._0x5f1c20) + _0x7eb9c0 + ':' + randomUUID();
|
|
506
|
+
return _0x3fb884[_0x467080(0x272)](_0x2150ed, {
|
|
507
|
+
'expiresAt': _0x2572c7 + 0x5 * 0x3c * 0x3e8,
|
|
508
|
+
'value': _0x2ad1a2
|
|
509
|
+
}), _0x2ad1a2;
|
|
510
|
+
}
|
|
511
|
+
async function _0x40edad(_0x30c507, _0x1957b5) {
|
|
512
|
+
const _0x251f65 = _0x14a091, _0x1731ed = new AbortController(), _0x261553 = setTimeout(() => _0x1731ed[_0x251f65(0x1c2)](), _0x364052), _0x572a34 = _0x1957b5?.[_0x251f65(_0x20192c._0x650eb2)] ? anySignal(_0x1957b5[_0x251f65(0x2f1)], _0x1731ed['signal']) : _0x1731ed[_0x251f65(0x2f1)], _0x32904e = '' + _0x474c2b + _0x30c507;
|
|
513
|
+
try {
|
|
514
|
+
const _0x57b326 = await _0x4d2d69(_0x32904e, {
|
|
515
|
+
..._0x1957b5,
|
|
516
|
+
'signal': _0x572a34
|
|
517
|
+
}), _0xb3c6d9 = await _0x51bbfc(_0x32904e, _0x57b326);
|
|
518
|
+
if (!_0x57b326['ok'] || _0xb3c6d9['success'] === ![])
|
|
519
|
+
throw new Error(asErrorMessage(_0xb3c6d9[_0x251f65(_0x20192c._0x42d587)], _0x251f65(0x1b0) + _0x57b326[_0x251f65(_0x20192c._0x4fc263)]));
|
|
520
|
+
return _0xb3c6d9;
|
|
521
|
+
} finally {
|
|
522
|
+
clearTimeout(_0x261553);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
async function _0x1d9ea3(_0x2550a4, _0x4e0200) {
|
|
526
|
+
const _0x272926 = _0x14a091, _0x98b912 = new AbortController(), _0x2fafe4 = setTimeout(() => _0x98b912['abort'](), _0x364052), _0x330534 = _0x4e0200?.['signal'] ? anySignal(_0x4e0200[_0x272926(_0x1a6ab9._0x14e338)], _0x98b912[_0x272926(_0x1a6ab9._0xb6bcce)]) : _0x98b912['signal'], _0x47d016 = '' + _0x474c2b + _0x2550a4;
|
|
527
|
+
try {
|
|
528
|
+
const _0xdacc62 = await _0x4d2d69(_0x47d016, {
|
|
529
|
+
..._0x4e0200,
|
|
530
|
+
'signal': _0x330534
|
|
531
|
+
}), _0x82cef6 = await _0x51bbfc(_0x47d016, _0xdacc62);
|
|
532
|
+
if (!_0xdacc62['ok'])
|
|
533
|
+
throw new Error(asErrorMessage(_0x82cef6[_0x272926(0x232)], _0x272926(0x1b0) + _0xdacc62[_0x272926(0x212)]));
|
|
534
|
+
return _0x82cef6;
|
|
535
|
+
} finally {
|
|
536
|
+
clearTimeout(_0x2fafe4);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
async function _0x580d8a(_0x3cf96c) {
|
|
540
|
+
const _0x105a7a = _0x14a091;
|
|
541
|
+
if (!_0x507646 || _0x3cf96c <= _0x3bcb72)
|
|
542
|
+
return;
|
|
543
|
+
await _0x40edad('/api/agent-sessions/' + encodeURIComponent(_0x507646) + _0x105a7a(_0x2fb0a3._0x365533), {
|
|
544
|
+
'body': JSON[_0x105a7a(0x2d0)]({ 'lastSeenSeq': _0x3cf96c }),
|
|
545
|
+
'headers': _0x4b4929,
|
|
546
|
+
'method': 'PATCH'
|
|
547
|
+
}), _0x3bcb72 = _0x3cf96c;
|
|
548
|
+
}
|
|
549
|
+
async function _0x506300(_0x356113) {
|
|
550
|
+
const _0x2f939d = _0x14a091;
|
|
551
|
+
if (!_0x571f2a || !_0x5cfb51 || _0x356113 <= _0x3bcb72)
|
|
552
|
+
return;
|
|
553
|
+
const _0x3dc78a = await _0x4d2d69(_0x571f2a + '/workers/context-metrics', {
|
|
554
|
+
'body': JSON[_0x2f939d(_0x8475f8._0x546402)]({
|
|
555
|
+
'last_seen_seq': _0x356113,
|
|
556
|
+
'worker_session_id': _0x5cfb51
|
|
557
|
+
}),
|
|
558
|
+
'headers': { 'Content-Type': _0x2f939d(_0x8475f8._0x1c4d57) },
|
|
559
|
+
'method': _0x2f939d(_0x8475f8._0x18846c)
|
|
560
|
+
});
|
|
561
|
+
if (!_0x3dc78a['ok'])
|
|
562
|
+
throw new Error(_0x2f939d(0x1b0) + _0x3dc78a[_0x2f939d(0x212)]);
|
|
563
|
+
_0x3bcb72 = _0x356113;
|
|
564
|
+
}
|
|
565
|
+
async function _0x95f829(_0x180c13) {
|
|
566
|
+
const _0x385009 = _0x14a091, _0x5c7f6b = parseTarget(_0x180c13), _0x20b540 = await _0x40edad(_0x385009(0x293) + _0x4add09[_0x385009(0x2dd)] + _0x385009(_0x5bbb19._0x3aa147), {
|
|
567
|
+
'body': JSON[_0x385009(_0x5bbb19._0x29df8e)]({ 'target': _0x5c7f6b[_0x385009(0x30c)] }),
|
|
568
|
+
'headers': _0x4b4929,
|
|
569
|
+
'method': 'POST'
|
|
570
|
+
});
|
|
571
|
+
return {
|
|
572
|
+
'channelId': _0x20b540[_0x385009(_0x5bbb19._0x22635b)]?.[_0x385009(_0x5bbb19._0x24148d)] ?? '',
|
|
573
|
+
'target': _0x5c7f6b['channelTarget'],
|
|
574
|
+
'task': _0x20b540[_0x385009(0x1af)]?.['task'],
|
|
575
|
+
'threadId': _0x20b540[_0x385009(0x1af)]?.[_0x385009(0x2b3)],
|
|
576
|
+
'threadNumber': _0x20b540[_0x385009(_0x5bbb19._0x22635b)]?.[_0x385009(_0x5bbb19._0x23e9f3)]
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
async function _0x251297(_0x5117e4 = {}) {
|
|
580
|
+
const _0xf0ab42 = _0x14a091;
|
|
581
|
+
if (!_0x5117e4[_0xf0ab42(_0x582c00._0x37d7a0)] && _0x1779a7)
|
|
582
|
+
return _0x1779a7;
|
|
583
|
+
return _0x1779a7 = (async () => {
|
|
584
|
+
const _0x10190c = _0xf0ab42, _0x1d04ba = await _0x40edad(_0x10190c(0x293) + _0x4add09[_0x10190c(0x2dd)] + '/server', {
|
|
585
|
+
'headers': _0x4b4929,
|
|
586
|
+
'method': 'GET'
|
|
587
|
+
}), _0x3b127 = _0x1d04ba[_0x10190c(_0x118186._0x4ebf4c)]?.[_0x10190c(_0x118186._0x1a545c)] ?? [], _0x29f29b = _0x3b127[_0x10190c(_0x118186._0x53d985)](_0xf64974 => _0xf64974[_0x10190c(0x287)]?.[_0x10190c(0x2f6)] === _0x10190c(0x2e8))[_0x10190c(0x221)](_0xed5962 => ({
|
|
588
|
+
'id': _0x2510c8(_0xed5962),
|
|
589
|
+
'name': _0x2e30ec(_0xed5962)
|
|
590
|
+
}))[_0x10190c(0x31e)](_0x330720 => _0x330720['id']), _0x2f970b = _0x3b127[_0x10190c(0x31e)](_0x22432e => _0x22432e[_0x10190c(0x287)]?.[_0x10190c(0x2f6)] !== _0x10190c(0x2e8))[_0x10190c(_0x118186._0x4fed9d)](_0xe271d7 => ({
|
|
591
|
+
'id': _0x2510c8(_0xe271d7),
|
|
592
|
+
'name': _0x2e30ec(_0xe271d7)
|
|
593
|
+
}))[_0x10190c(_0x118186._0x53d985)](_0x522425 => _0x522425['id']), _0x2b7127 = _0x1d04ba[_0x10190c(_0x118186._0x508ce0)]?.['server']['id'] ?? '';
|
|
594
|
+
return {
|
|
595
|
+
'agents': _0x29f29b,
|
|
596
|
+
'channels': _0x1d04ba[_0x10190c(0x1af)]?.[_0x10190c(_0x118186._0x389156)] ?? [],
|
|
597
|
+
'humans': _0x2f970b,
|
|
598
|
+
'serverId': _0x2b7127,
|
|
599
|
+
'serverName': _0x1d04ba[_0x10190c(_0x118186._0x6490fc)]?.[_0x10190c(0x312)][_0x10190c(_0x118186._0x1821be)] ?? _0x2b7127
|
|
600
|
+
};
|
|
601
|
+
})()[_0xf0ab42(_0x582c00._0x109efe)](_0x5a774c => {
|
|
602
|
+
_0x1779a7 = null;
|
|
603
|
+
throw _0x5a774c;
|
|
604
|
+
}), _0x1779a7;
|
|
605
|
+
}
|
|
606
|
+
function _0x6073f6(_0x352227, _0x51aed2) {
|
|
607
|
+
const _0x3e6bc9 = _0x14a091;
|
|
608
|
+
return _0x51aed2[_0x3e6bc9(0x2d7)][_0x3e6bc9(_0x1c5d32._0x5e87f0)](_0x5647cd => _0x5647cd['id'] === _0x352227 || _0x5647cd['name'] === _0x352227) ? _0x3e6bc9(_0x1c5d32._0x4f1a82) : 'human';
|
|
609
|
+
}
|
|
610
|
+
function _0x42ee7c(_0x55cd6c) {
|
|
611
|
+
const _0x4b7acc = _0x14a091;
|
|
612
|
+
if (_0x55cd6c['threadNumber'] != null)
|
|
613
|
+
return _0x55cd6c['channelTarget'] + ':t' + _0x55cd6c[_0x4b7acc(_0x2c76c1._0x40103d)];
|
|
614
|
+
if (_0x55cd6c[_0x4b7acc(0x299)])
|
|
615
|
+
return _0x55cd6c[_0x4b7acc(0x1b6)] + ':' + _0x55cd6c['rootMessageId'];
|
|
616
|
+
if (_0x55cd6c['threadId'])
|
|
617
|
+
return _0x55cd6c[_0x4b7acc(0x1b6)] + ':' + _0x55cd6c[_0x4b7acc(_0x2c76c1._0x3c1ac2)][_0x4b7acc(0x27e)](0x0, 0x8);
|
|
618
|
+
return _0x55cd6c['channelTarget'];
|
|
619
|
+
}
|
|
620
|
+
function _0x15310a(_0x2400ab, _0x3406f0) {
|
|
621
|
+
const _0x9376c5 = _0x14a091;
|
|
622
|
+
try {
|
|
623
|
+
const _0x154f0c = parseTarget(_0x2400ab);
|
|
624
|
+
if (_0x154f0c[_0x9376c5(_0x9d6090._0x5331b9)] !== _0x9376c5(_0x9d6090._0x3b8507) || _0x154f0c[_0x9376c5(_0x9d6090._0x17ac94)] !== _0x3406f0[_0x9376c5(0x1b6)])
|
|
625
|
+
return ![];
|
|
626
|
+
if (_0x3406f0[_0x9376c5(0x2b2)] != null && _0x154f0c[_0x9376c5(_0x9d6090._0x53bd91)] === 't' + _0x3406f0['threadNumber'])
|
|
627
|
+
return !![];
|
|
628
|
+
if (_0x3406f0[_0x9376c5(0x299)])
|
|
629
|
+
return _0x154f0c[_0x9376c5(0x2e1)] === _0x3406f0[_0x9376c5(0x299)] || _0x3406f0[_0x9376c5(_0x9d6090._0x25750f)][_0x9376c5(_0x9d6090._0x47c57a)](_0x154f0c[_0x9376c5(_0x9d6090._0x53bd91)]);
|
|
630
|
+
if (_0x3406f0[_0x9376c5(_0x9d6090._0x1df6db)])
|
|
631
|
+
return _0x154f0c[_0x9376c5(_0x9d6090._0x4dc46b)] === _0x3406f0[_0x9376c5(0x2b3)] || _0x3406f0[_0x9376c5(_0x9d6090._0x41eb51)][_0x9376c5(_0x9d6090._0x1bbe66)](_0x154f0c[_0x9376c5(0x2e1)]);
|
|
632
|
+
return ![];
|
|
633
|
+
} catch {
|
|
634
|
+
return ![];
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
function _0x2510c8(_0x582e81) {
|
|
638
|
+
const _0x1ea55a = _0x14a091;
|
|
639
|
+
return _0x582e81[_0x1ea55a(_0x3cb21e._0x5140a0)]?.['participantId'] ?? _0x582e81[_0x1ea55a(_0x3cb21e._0x52fade)]?.['id'] ?? _0x582e81[_0x1ea55a(_0x3cb21e._0x359c35)] ?? '';
|
|
640
|
+
}
|
|
641
|
+
function _0x2e30ec(_0x2af5b9) {
|
|
642
|
+
const _0x47f2db = _0x14a091;
|
|
643
|
+
return _0x2af5b9[_0x47f2db(0x287)]?.[_0x47f2db(0x2ee)] ?? _0x2510c8(_0x2af5b9);
|
|
644
|
+
}
|
|
645
|
+
async function _0x4e3095(_0x1f9813) {
|
|
646
|
+
const _0x22cf46 = _0x14a091, _0x47f59e = Math[_0x22cf46(_0x376aab._0x5a5330)](_0x1f9813[_0x22cf46(_0x376aab._0x167a7a)] ?? 0x32, 0x64), _0xc64ad7 = await _0x251297(), _0x2cc004 = new URLSearchParams();
|
|
647
|
+
_0x2cc004[_0x22cf46(0x272)](_0x22cf46(0x24b), String(_0x47f59e));
|
|
648
|
+
_0x1f9813[_0x22cf46(_0x376aab._0x805408)] ? (_0x2cc004[_0x22cf46(0x272)](_0x22cf46(0x2b3), _0x1f9813[_0x22cf46(0x2b3)]), _0x2cc004[_0x22cf46(0x272)](_0x22cf46(0x289), _0x1f9813['channelId'])) : _0x2cc004[_0x22cf46(0x272)](_0x22cf46(0x289), _0x1f9813['channelId']);
|
|
649
|
+
_0x1f9813[_0x22cf46(_0x376aab._0x2229cc)] && _0x2cc004[_0x22cf46(_0x376aab._0x5a7f1a)](_0x22cf46(_0x376aab._0x579ee5), String(_0x1f9813[_0x22cf46(0x267)]));
|
|
650
|
+
_0x1f9813['after'] !== void 0x0 && _0x2cc004[_0x22cf46(_0x376aab._0x5a7f1a)](_0x22cf46(0x20f), String(_0x1f9813['after']));
|
|
651
|
+
const _0x280188 = await _0x40edad(_0x22cf46(0x293) + _0x4add09[_0x22cf46(_0x376aab._0x345b38)] + '/history?' + _0x2cc004[_0x22cf46(_0x376aab._0x930f8d)](), {
|
|
652
|
+
'headers': _0x4b4929,
|
|
653
|
+
'method': 'GET'
|
|
654
|
+
}), _0xaa1bd0 = (_0x280188[_0x22cf46(0x1af)] ?? [])[_0x22cf46(0x221)](_0x14118f => ({
|
|
655
|
+
'attachments': (_0x14118f[_0x22cf46(0x22b)] ?? [])[_0x22cf46(0x221)](_0x5222f5 => ({
|
|
656
|
+
'filename': _0x5222f5[_0x22cf46(0x1e1)] ?? _0x5222f5['id'],
|
|
657
|
+
'id': _0x5222f5['id']
|
|
658
|
+
})),
|
|
659
|
+
'content': _0x14118f[_0x22cf46(0x1e3)] ?? '',
|
|
660
|
+
'createdAt': _0x14118f[_0x22cf46(0x1ba)],
|
|
661
|
+
'messageId': _0x14118f['id'],
|
|
662
|
+
'senderName': _0x14118f[_0x22cf46(0x2e2)],
|
|
663
|
+
'senderType': _0x6073f6(_0x14118f[_0x22cf46(0x2e2)], _0xc64ad7),
|
|
664
|
+
'seq': _0x14118f[_0x22cf46(0x2e5)] ?? 0x0
|
|
665
|
+
}));
|
|
666
|
+
return {
|
|
667
|
+
'channel': _0x1f9813['channelTarget'],
|
|
668
|
+
'hasMore': _0x280188['meta']?.[_0x22cf46(_0x376aab._0x2c88bd)] ?? ![],
|
|
669
|
+
'messages': _0xaa1bd0,
|
|
670
|
+
'nextCursor': _0x280188[_0x22cf46(_0x376aab._0x13eb58)]?.[_0x22cf46(0x1cb)]
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
return {
|
|
674
|
+
async 'sendMessage'(_0xf2f20f) {
|
|
675
|
+
const _0x40880e = _0x14a091, _0x1fece1 = await _0x95f829(_0xf2f20f[_0x40880e(0x30c)]), _0x273b89 = _0xf2f20f['content']['includes']('@') ? extractMentionedParticipantIds(_0xf2f20f['content'], await _0x251297()) : [], _0x22f3cd = await _0x40edad('/internal/agent/' + _0x4add09[_0x40880e(0x2dd)] + _0x40880e(0x305), {
|
|
676
|
+
'body': JSON['stringify']({
|
|
677
|
+
'attachment_ids': _0xf2f20f['attachmentIds'],
|
|
678
|
+
'bodyMarkdown': _0xf2f20f[_0x40880e(_0x3e9529._0x5d6f53)],
|
|
679
|
+
'channelId': _0x1fece1['channelId'],
|
|
680
|
+
..._0x273b89[_0x40880e(0x29d)] > 0x0 ? { 'mentionedParticipantIds': _0x273b89 } : {},
|
|
681
|
+
'threadId': _0x1fece1[_0x40880e(0x2b3)],
|
|
682
|
+
..._0xf2f20f[_0x40880e(_0x3e9529._0x3df21d)] ? { 'visibility': _0xf2f20f[_0x40880e(0x213)] } : {}
|
|
683
|
+
}),
|
|
684
|
+
'headers': _0x4b4929,
|
|
685
|
+
'method': _0x40880e(0x2ac)
|
|
686
|
+
});
|
|
687
|
+
return { 'messageId': _0x22f3cd[_0x40880e(0x1af)]?.['id'] ?? '' };
|
|
688
|
+
},
|
|
689
|
+
async 'listSchedules'() {
|
|
690
|
+
const _0x2c0ffb = _0x14a091, _0x5d6d34 = await _0x40edad(_0x2c0ffb(0x1da), {
|
|
691
|
+
'headers': _0x4b4929,
|
|
692
|
+
'method': _0x2c0ffb(_0x17a48b._0x2a4aef)
|
|
693
|
+
});
|
|
694
|
+
return _0x5d6d34['data'] ?? [];
|
|
695
|
+
},
|
|
696
|
+
async 'claimScheduleRun'(_0x655763) {
|
|
697
|
+
const _0x2e7109 = _0x14a091, _0x2d2097 = await _0x40edad(_0x2e7109(0x31b), {
|
|
698
|
+
'body': JSON['stringify'](_0x655763),
|
|
699
|
+
'headers': _0x4b4929,
|
|
700
|
+
'method': 'POST'
|
|
701
|
+
});
|
|
702
|
+
return _0x2d2097['data'] ?? {
|
|
703
|
+
'granted': ![],
|
|
704
|
+
'runId': null,
|
|
705
|
+
'schedule': null,
|
|
706
|
+
'scheduledFor': _0x655763[_0x2e7109(0x2a9)]
|
|
707
|
+
};
|
|
708
|
+
},
|
|
709
|
+
async 'startScheduleRun'(_0x2d949c) {
|
|
710
|
+
const _0x1775e5 = _0x14a091, _0x367492 = await _0x40edad(_0x1775e5(0x227) + encodeURIComponent(_0x2d949c[_0x1775e5(0x257)]) + _0x1775e5(0x1b7), {
|
|
711
|
+
'body': JSON[_0x1775e5(_0x5c0665._0x3d24c3)]({}),
|
|
712
|
+
'headers': _0x4b4929,
|
|
713
|
+
'method': _0x1775e5(0x2ac)
|
|
714
|
+
});
|
|
715
|
+
return _0x367492['data'] ?? {
|
|
716
|
+
'claimedByDaemonId': '',
|
|
717
|
+
'id': _0x2d949c[_0x1775e5(0x257)],
|
|
718
|
+
'scheduleId': '',
|
|
719
|
+
'status': _0x1775e5(0x23b)
|
|
720
|
+
};
|
|
721
|
+
},
|
|
722
|
+
async 'finishScheduleRun'(_0x2a14b8) {
|
|
723
|
+
const _0x555337 = _0x14a091, _0x2a03d7 = await _0x40edad(_0x555337(0x227) + encodeURIComponent(_0x2a14b8[_0x555337(_0x4005d2._0x3c37df)]) + _0x555337(0x1e7), {
|
|
724
|
+
'body': JSON['stringify']({
|
|
725
|
+
'error': _0x2a14b8[_0x555337(0x232)],
|
|
726
|
+
'resultJson': _0x2a14b8[_0x555337(0x303)],
|
|
727
|
+
'status': _0x2a14b8[_0x555337(0x212)]
|
|
728
|
+
}),
|
|
729
|
+
'headers': _0x4b4929,
|
|
730
|
+
'method': 'POST'
|
|
731
|
+
});
|
|
732
|
+
return _0x2a03d7[_0x555337(0x1af)] ?? {
|
|
733
|
+
'nextRunAt': null,
|
|
734
|
+
'run': {
|
|
735
|
+
'claimedByDaemonId': '',
|
|
736
|
+
'id': _0x2a14b8['runId'],
|
|
737
|
+
'scheduleId': '',
|
|
738
|
+
'status': _0x2a14b8[_0x555337(_0x4005d2._0x108f5c)]
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
},
|
|
742
|
+
async 'listTasks'(_0x38132e) {
|
|
743
|
+
const _0x34c6b3 = _0x14a091, _0x6db5cf = new URLSearchParams();
|
|
744
|
+
return _0x6db5cf[_0x34c6b3(_0x1587b9._0x118d72)](_0x34c6b3(_0x1587b9._0x4815c3), _0x38132e[_0x34c6b3(0x1d0)]), _0x38132e[_0x34c6b3(0x212)] && _0x6db5cf[_0x34c6b3(0x272)](_0x34c6b3(0x212), _0x38132e['status']), _0x1d9ea3(_0x34c6b3(_0x1587b9._0x5809d8) + _0x4add09[_0x34c6b3(_0x1587b9._0x3dd105)] + _0x34c6b3(_0x1587b9._0x1550d9) + _0x6db5cf[_0x34c6b3(_0x1587b9._0x2ad820)](), {
|
|
745
|
+
'headers': _0x4b4929,
|
|
746
|
+
'method': _0x34c6b3(_0x1587b9._0x184894)
|
|
747
|
+
});
|
|
748
|
+
},
|
|
749
|
+
async 'createTasks'(_0xf9a3be) {
|
|
750
|
+
const _0x23b4d0 = _0x14a091;
|
|
751
|
+
return _0x1d9ea3(_0x23b4d0(0x293) + _0x4add09[_0x23b4d0(_0x36fb69._0x42eae1)] + _0x23b4d0(_0x36fb69._0x5a1275), {
|
|
752
|
+
'body': JSON[_0x23b4d0(_0x36fb69._0x2b2586)]({
|
|
753
|
+
..._0xf9a3be,
|
|
754
|
+
'idempotency_key': _0x106453(_0x23b4d0(0x1b3), _0xf9a3be)
|
|
755
|
+
}),
|
|
756
|
+
'headers': _0x4b4929,
|
|
757
|
+
'method': _0x23b4d0(0x2ac)
|
|
758
|
+
});
|
|
759
|
+
},
|
|
760
|
+
async 'claimTasks'(_0x17440a) {
|
|
761
|
+
const _0x24c37a = _0x14a091;
|
|
762
|
+
return _0x1d9ea3(_0x24c37a(_0x338d37._0x26df0b) + _0x4add09[_0x24c37a(0x2dd)] + _0x24c37a(0x2db), {
|
|
763
|
+
'body': JSON[_0x24c37a(_0x338d37._0x1914f1)]({
|
|
764
|
+
..._0x17440a,
|
|
765
|
+
'idempotency_key': _0x106453(_0x24c37a(0x1e6), _0x17440a)
|
|
766
|
+
}),
|
|
767
|
+
'headers': _0x4b4929,
|
|
768
|
+
'method': _0x24c37a(_0x338d37._0x46a01b)
|
|
769
|
+
});
|
|
770
|
+
},
|
|
771
|
+
async 'unclaimTask'(_0x1a2a87) {
|
|
772
|
+
const _0x5c112e = _0x14a091;
|
|
773
|
+
return _0x1d9ea3(_0x5c112e(0x293) + _0x4add09['agentId'] + _0x5c112e(0x28a), {
|
|
774
|
+
'body': JSON[_0x5c112e(_0x23c56b._0x501971)]({
|
|
775
|
+
..._0x1a2a87,
|
|
776
|
+
'idempotency_key': _0x106453(_0x5c112e(0x2a6), _0x1a2a87)
|
|
777
|
+
}),
|
|
778
|
+
'headers': _0x4b4929,
|
|
779
|
+
'method': _0x5c112e(0x2ac)
|
|
780
|
+
});
|
|
781
|
+
},
|
|
782
|
+
async 'updateTaskStatus'(_0x59174f) {
|
|
783
|
+
const _0x591142 = _0x14a091;
|
|
784
|
+
return _0x1d9ea3(_0x591142(_0x57ad71._0x5e2b79) + _0x4add09[_0x591142(_0x57ad71._0x1f0157)] + _0x591142(_0x57ad71._0x23f30b), {
|
|
785
|
+
'body': JSON[_0x591142(_0x57ad71._0x91dfa)]({
|
|
786
|
+
..._0x59174f,
|
|
787
|
+
'idempotency_key': _0x106453('update_task_status', _0x59174f)
|
|
788
|
+
}),
|
|
789
|
+
'headers': _0x4b4929,
|
|
790
|
+
'method': _0x591142(_0x57ad71._0x1f0977)
|
|
791
|
+
});
|
|
792
|
+
},
|
|
793
|
+
async 'uploadFile'(_0x550e67) {
|
|
794
|
+
const _0x1da552 = _0x14a091, _0xd3899f = await _0x95f829(_0x550e67[_0x1da552(0x1d0)]);
|
|
795
|
+
if (_0xd3899f['threadId'])
|
|
796
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
797
|
+
const _0x1bb6f3 = await _0x40edad(_0x1da552(0x293) + _0x4add09[_0x1da552(_0x120f5f._0x445045)] + _0x1da552(_0x120f5f._0x4499fe), {
|
|
798
|
+
'body': JSON[_0x1da552(0x2d0)]({
|
|
799
|
+
'channel': _0xd3899f[_0x1da552(_0x120f5f._0x4bd013)],
|
|
800
|
+
'contentBase64': _0x550e67[_0x1da552(_0x120f5f._0x15a589)],
|
|
801
|
+
'contentType': _0x550e67['contentType'],
|
|
802
|
+
'originalFilename': _0x550e67[_0x1da552(0x1e1)]
|
|
803
|
+
}),
|
|
804
|
+
'headers': _0x4b4929,
|
|
805
|
+
'method': _0x1da552(_0x120f5f._0x34640b)
|
|
806
|
+
});
|
|
807
|
+
return {
|
|
808
|
+
'attachmentId': _0x1bb6f3[_0x1da552(_0x120f5f._0x5c0f55)]?.['id'] ?? '',
|
|
809
|
+
'filename': _0x1bb6f3[_0x1da552(_0x120f5f._0x4ae8e6)]?.['originalFilename'] ?? _0x550e67[_0x1da552(_0x120f5f._0xdeb69f)],
|
|
810
|
+
'sizeBytes': _0x1bb6f3[_0x1da552(_0x120f5f._0x539e64)]?.['sizeBytes'] ?? 0x0
|
|
811
|
+
};
|
|
812
|
+
},
|
|
813
|
+
async 'downloadAttachment'(_0x27b811) {
|
|
814
|
+
const _0x3bab90 = _0x14a091, _0x2a1473 = await _0x40edad(_0x3bab90(_0x33ed32._0xa07d0a) + _0x27b811, {
|
|
815
|
+
'headers': _0x4b4929,
|
|
816
|
+
'method': _0x3bab90(_0x33ed32._0x175389)
|
|
817
|
+
}), _0x2e4706 = new AbortController(), _0x2f7226 = setTimeout(() => _0x2e4706['abort'](), _0x364052);
|
|
818
|
+
try {
|
|
819
|
+
const _0x48edc3 = await _0x4d2d69(_0x474c2b + _0x3bab90(_0x33ed32._0xa07d0a) + _0x27b811 + '/content', {
|
|
820
|
+
'headers': _0x4b4929,
|
|
821
|
+
'method': _0x3bab90(0x1e0),
|
|
822
|
+
'signal': _0x2e4706['signal']
|
|
823
|
+
});
|
|
824
|
+
if (!_0x48edc3['ok'])
|
|
825
|
+
throw new Error(_0x3bab90(_0x33ed32._0x51450a) + _0x48edc3[_0x3bab90(0x212)]);
|
|
826
|
+
return {
|
|
827
|
+
'contentType': _0x2a1473['data']?.[_0x3bab90(_0x33ed32._0x244f61)] ?? _0x48edc3['headers'][_0x3bab90(_0x33ed32._0x9982c)](_0x3bab90(0x24e)) ?? _0x3bab90(0x216),
|
|
828
|
+
'data': Buffer[_0x3bab90(0x300)](await _0x48edc3[_0x3bab90(_0x33ed32._0x3eef85)]()),
|
|
829
|
+
'originalFilename': _0x2a1473[_0x3bab90(0x1af)]?.[_0x3bab90(_0x33ed32._0x43cd68)]
|
|
830
|
+
};
|
|
831
|
+
} finally {
|
|
832
|
+
clearTimeout(_0x2f7226);
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
async 'listServer'() {
|
|
836
|
+
return _0x251297({ 'forceRefresh': !![] });
|
|
837
|
+
},
|
|
838
|
+
async 'readHistory'(_0x1a887a) {
|
|
839
|
+
const _0x570e60 = _0x14a091, _0x22eb21 = await _0x95f829(_0x1a887a['channel']);
|
|
840
|
+
return _0x4e3095({
|
|
841
|
+
'after': _0x1a887a[_0x570e60(0x20f)],
|
|
842
|
+
'before': _0x1a887a[_0x570e60(_0x26819e._0x1f1f22)],
|
|
843
|
+
'channelId': _0x22eb21[_0x570e60(0x289)],
|
|
844
|
+
'channelTarget': _0x22eb21['target'],
|
|
845
|
+
'limit': _0x1a887a[_0x570e60(0x24b)],
|
|
846
|
+
'threadId': _0x22eb21[_0x570e60(_0x26819e._0xdfec25)]
|
|
847
|
+
});
|
|
848
|
+
},
|
|
849
|
+
'resolveTarget': _0x95f829,
|
|
850
|
+
async 'checkMessages'() {
|
|
851
|
+
const _0x3aa756 = { _0x43d343: 0x218 }, _0x2b801a = _0x14a091, _0x52d92a = new URLSearchParams();
|
|
852
|
+
_0x52d92a['set'](_0x2b801a(0x1f9), String(_0x479a0f));
|
|
853
|
+
const _0x620d2f = _0x52d92a[_0x2b801a(0x1a4)](), _0x38ee34 = await _0x40edad('/internal/agent/' + _0x4add09[_0x2b801a(_0x55f86b._0x1a8df2)] + _0x2b801a(_0x55f86b._0x25516a) + (_0x620d2f ? '?' + _0x620d2f : ''), {
|
|
854
|
+
'headers': _0x4b4929,
|
|
855
|
+
'method': _0x2b801a(_0x55f86b._0x143e07)
|
|
856
|
+
}), _0x13b8b5 = _0x38ee34['data'] ?? [], _0x4740b = _0x38ee34['meta']?.['cursor'], _0x2916a8 = _0x4740b !== void 0x0 ? Math[_0x2b801a(_0x55f86b._0x23fd70)](_0x479a0f, _0x4740b) : _0x13b8b5[_0x2b801a(_0x55f86b._0x542821)] > 0x0 ? Math[_0x2b801a(_0x55f86b._0x47bed3)](_0x479a0f, _0x13b8b5[_0x13b8b5[_0x2b801a(_0x55f86b._0x542821)] - 0x1]['seq']) : _0x479a0f, _0xab2393 = _0x13b8b5[_0x2b801a(0x31e)](_0x389577 => _0x389577[_0x2b801a(0x21f)] === _0x2b801a(0x22d)), _0x2a1992 = _0xed8809 === void 0x0 && _0x59b537;
|
|
857
|
+
let _0x18ba6c = await _0x251297(), _0x17f3cf = new Map(_0x18ba6c[_0x2b801a(0x250)][_0x2b801a(_0x55f86b._0x17fdb3)](_0x531595 => [
|
|
858
|
+
_0x531595['id'],
|
|
859
|
+
_0x531595
|
|
860
|
+
]));
|
|
861
|
+
const _0x458bfb = _0xab2393['some'](_0x3f0f5d => {
|
|
862
|
+
const _0x4597dc = _0x2b801a, _0x139547 = asRecord(_0x3f0f5d[_0x4597dc(0x270)]), _0x568fed = typeof _0x139547?.['channelId'] === _0x4597dc(0x23f) ? _0x139547['channelId'] : '';
|
|
863
|
+
return Boolean(_0x568fed) && !_0x17f3cf[_0x4597dc(_0x3aa756._0x43d343)](_0x568fed);
|
|
864
|
+
});
|
|
865
|
+
_0x458bfb && (_0x18ba6c = await _0x251297({ 'forceRefresh': !![] }), _0x17f3cf = new Map(_0x18ba6c[_0x2b801a(_0x55f86b._0x3dd177)][_0x2b801a(0x221)](_0x12e584 => [
|
|
866
|
+
_0x12e584['id'],
|
|
867
|
+
_0x12e584
|
|
868
|
+
])));
|
|
869
|
+
const _0x255757 = new Map();
|
|
870
|
+
for (const _0x374d0c of _0xab2393) {
|
|
871
|
+
const _0x3f0a5e = asRecord(_0x374d0c[_0x2b801a(_0x55f86b._0x1e802b)]), _0x5b69c7 = typeof _0x3f0a5e[_0x2b801a(_0x55f86b._0x5029f1)] === _0x2b801a(_0x55f86b._0x45cc41) ? _0x3f0a5e['channelId'] : '';
|
|
872
|
+
if (!_0x5b69c7)
|
|
873
|
+
continue;
|
|
874
|
+
const _0x4ef255 = typeof _0x3f0a5e[_0x2b801a(_0x55f86b._0x400b12)] === _0x2b801a(_0x55f86b._0x389bd9) ? _0x3f0a5e[_0x2b801a(_0x55f86b._0x400b12)] : void 0x0, _0x2f5d72 = typeof _0x3f0a5e[_0x2b801a(_0x55f86b._0x5ed549)] === _0x2b801a(0x23f) ? _0x3f0a5e[_0x2b801a(0x299)] : void 0x0, _0x4d80b2 = typeof _0x3f0a5e[_0x2b801a(0x2b2)] === _0x2b801a(_0x55f86b._0x17f9b4) && Number[_0x2b801a(_0x55f86b._0x374105)](_0x3f0a5e[_0x2b801a(_0x55f86b._0x36585f)]) ? _0x3f0a5e['threadNumber'] : void 0x0, _0x3af938 = Boolean(_0x4ef255 && (!_0x2f5d72 || _0x374d0c[_0x2b801a(0x313)] !== _0x2f5d72)), _0x9f417e = _0x3af938 ? _0x5b69c7 + ':' + _0x4ef255 : _0x5b69c7, _0x94f4e4 = _0x255757[_0x2b801a(_0x55f86b._0xeed909)](_0x9f417e) ?? {
|
|
875
|
+
'aggregateIds': [],
|
|
876
|
+
'channelId': _0x5b69c7,
|
|
877
|
+
'entries': new Map(),
|
|
878
|
+
'isThreadReply': _0x3af938,
|
|
879
|
+
'rootMessageId': _0x2f5d72,
|
|
880
|
+
'threadNumber': _0x4d80b2,
|
|
881
|
+
'threadId': _0x3af938 ? _0x4ef255 : void 0x0
|
|
882
|
+
};
|
|
883
|
+
_0x94f4e4[_0x2b801a(_0x55f86b._0x36585f)] == null && _0x4d80b2 != null && (_0x94f4e4[_0x2b801a(_0x55f86b._0x6371b0)] = _0x4d80b2), !_0x94f4e4[_0x2b801a(0x299)] && _0x2f5d72 && (_0x94f4e4[_0x2b801a(_0x55f86b._0x5ed549)] = _0x2f5d72), _0x94f4e4[_0x2b801a(0x21d)]['push'](_0x374d0c[_0x2b801a(_0x55f86b._0x4c82c8)]), _0x94f4e4['entries'][_0x2b801a(0x272)](_0x374d0c['aggregateId'], {
|
|
884
|
+
'payloadJson': _0x374d0c[_0x2b801a(0x270)],
|
|
885
|
+
'seq': _0x374d0c[_0x2b801a(0x238)]
|
|
886
|
+
}), _0x255757['set'](_0x9f417e, _0x94f4e4);
|
|
887
|
+
}
|
|
888
|
+
const _0x452727 = [];
|
|
889
|
+
for (const _0x1976aa of _0x255757[_0x2b801a(0x1d8)]()) {
|
|
890
|
+
const {
|
|
891
|
+
channelId: _0x13c66d,
|
|
892
|
+
threadId: _0x58cf0d,
|
|
893
|
+
rootMessageId: _0x25883e,
|
|
894
|
+
threadNumber: _0x471028,
|
|
895
|
+
aggregateIds: _0x3830d4,
|
|
896
|
+
isThreadReply: _0x5b8b28,
|
|
897
|
+
entries: _0x58c1be
|
|
898
|
+
} = _0x1976aa, _0x271dcf = _0x17f3cf['get'](_0x13c66d), _0xe5c8e5 = _0x271dcf?.[_0x2b801a(0x2ee)] ?? _0x13c66d, _0x2ec859 = _0x271dcf?.['kind'] === 'dm' ? 'dm:' + _0xe5c8e5 : '#' + _0xe5c8e5, _0x5e6724 = {
|
|
899
|
+
'channelTarget': _0x2ec859,
|
|
900
|
+
'rootMessageId': _0x25883e,
|
|
901
|
+
'threadId': _0x58cf0d,
|
|
902
|
+
'threadNumber': _0x471028
|
|
903
|
+
}, _0x591ee0 = await _0x4e3095({
|
|
904
|
+
'channelId': _0x13c66d,
|
|
905
|
+
'channelTarget': _0x2ec859,
|
|
906
|
+
'limit': Math[_0x2b801a(_0x55f86b._0x23fd70)](_0x3830d4[_0x2b801a(0x29d)], 0x32),
|
|
907
|
+
'threadId': _0x58cf0d
|
|
908
|
+
}), _0x1d4636 = new Map(_0x591ee0[_0x2b801a(0x209)][_0x2b801a(0x221)](_0x3569a1 => [
|
|
909
|
+
_0x3569a1[_0x2b801a(0x314)],
|
|
910
|
+
_0x3569a1
|
|
911
|
+
])), _0x3be8b0 = _0x58cf0d ? _0x42ee7c(_0x5e6724) : _0x2ec859, _0x56b2a1 = _0xed8809 ? _0x5b8b28 && _0x15310a(_0xed8809, _0x5e6724) : !![], _0x4dac43 = _0x5b8b28 ? _0x56b2a1 && _0xed8809 ? _0xed8809 : _0x3be8b0 : _0x2ec859;
|
|
912
|
+
for (const _0x48f8fe of _0x3830d4) {
|
|
913
|
+
if (!_0x56b2a1)
|
|
914
|
+
continue;
|
|
915
|
+
const _0x34d4ce = _0x58c1be[_0x2b801a(0x2fe)](_0x48f8fe), _0x205e02 = _0x34d4ce ? asRecord(_0x34d4ce['payloadJson']) : void 0x0, _0x1a3031 = _0x205e02?.['taskDeliveryMode'] === _0x2b801a(0x2a1);
|
|
916
|
+
if (_0x2a1992 && _0x1a3031)
|
|
917
|
+
continue;
|
|
918
|
+
const _0x5df64a = _0x1d4636['get'](_0x48f8fe);
|
|
919
|
+
if (_0x5df64a) {
|
|
920
|
+
_0x452727[_0x2b801a(0x2c2)]({
|
|
921
|
+
'attachments': _0x5df64a[_0x2b801a(0x22b)],
|
|
922
|
+
'content': _0x5df64a[_0x2b801a(0x309)],
|
|
923
|
+
'createdAt': _0x5df64a[_0x2b801a(_0x55f86b._0x1045ba)],
|
|
924
|
+
'messageId': _0x5df64a[_0x2b801a(0x314)],
|
|
925
|
+
'senderName': _0x5df64a['senderName'],
|
|
926
|
+
'senderType': _0x5df64a[_0x2b801a(0x1cc)],
|
|
927
|
+
'target': _0x4dac43,
|
|
928
|
+
..._0x1a3031 ? { 'targetedTask': !![] } : {}
|
|
929
|
+
});
|
|
930
|
+
continue;
|
|
931
|
+
}
|
|
932
|
+
if (_0x34d4ce) {
|
|
933
|
+
const _0x4bd8f5 = typeof _0x205e02?.['senderParticipantId'] === _0x2b801a(0x23f) ? _0x205e02[_0x2b801a(_0x55f86b._0x93d1bb)] : '', _0x5364e3 = typeof _0x205e02?.[_0x2b801a(_0x55f86b._0x3d6420)] === _0x2b801a(0x23f) ? _0x205e02[_0x2b801a(0x1e3)] : '';
|
|
934
|
+
_0x4bd8f5 && _0x5364e3 && _0x452727['push']({
|
|
935
|
+
'attachments': [],
|
|
936
|
+
'content': _0x5364e3,
|
|
937
|
+
'createdAt': new Date()[_0x2b801a(_0x55f86b._0x5d5de1)](),
|
|
938
|
+
'messageId': _0x48f8fe,
|
|
939
|
+
'senderName': _0x4bd8f5,
|
|
940
|
+
'senderType': _0x6073f6(_0x4bd8f5, _0x18ba6c),
|
|
941
|
+
'target': _0x4dac43,
|
|
942
|
+
..._0x1a3031 ? { 'targetedTask': !![] } : {}
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
if (_0x2916a8 > 0x0) {
|
|
948
|
+
if (_0x507646)
|
|
949
|
+
await _0x580d8a(_0x2916a8);
|
|
950
|
+
else
|
|
951
|
+
_0x5cfb51 && await _0x506300(_0x2916a8);
|
|
952
|
+
}
|
|
953
|
+
return _0x2916a8 > _0x479a0f && (_0x479a0f = _0x2916a8), { 'messages': _0xed8809 ? _0x452727 : _0x2a1992 ? _0x452727[_0x2b801a(_0x55f86b._0xaafd2c)](_0x30eb81 => _0x30eb81[_0x2b801a(0x325)] !== !![]) : _0x452727 };
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
function toLocalTime(_0x10569c) {
|
|
958
|
+
const _0x430654 = {
|
|
959
|
+
_0x180c43: 0x2bd,
|
|
960
|
+
_0x5e6604: 0x326,
|
|
961
|
+
_0x5f1ff4: 0x1b9,
|
|
962
|
+
_0x5acd56: 0x22c
|
|
963
|
+
}, _0x946142 = _0x5c3349, _0x43c83d = new Date(_0x10569c);
|
|
964
|
+
if (Number[_0x946142(_0x430654._0x180c43)](_0x43c83d[_0x946142(_0x430654._0x5e6604)]()))
|
|
965
|
+
return _0x10569c;
|
|
966
|
+
const _0x5ee57a = _0x457ef6 => String(_0x457ef6)[_0x946142(0x1a2)](0x2, '0');
|
|
967
|
+
return _0x43c83d[_0x946142(0x1ab)]() + '-' + _0x5ee57a(_0x43c83d[_0x946142(_0x430654._0x5f1ff4)]() + 0x1) + '-' + _0x5ee57a(_0x43c83d[_0x946142(0x1b1)]()) + '\x20' + _0x5ee57a(_0x43c83d[_0x946142(_0x430654._0x5acd56)]()) + ':' + _0x5ee57a(_0x43c83d['getMinutes']()) + ':' + _0x5ee57a(_0x43c83d[_0x946142(0x206)]());
|
|
968
|
+
}
|
|
969
|
+
function _0x4219() {
|
|
970
|
+
const _0x556068 = [
|
|
127
971
|
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
972
|
+
'y29TCgXLDgvK',
|
|
973
|
+
'ywz0zxjtzxe',
|
|
974
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
975
|
+
'Dg9mB3DLCKnHC2u',
|
|
976
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
977
|
+
'AxngAwXL',
|
|
978
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
979
|
+
'ls1ZzxnZAw9UlwLK',
|
|
133
980
|
'Bwf4',
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'
|
|
139
|
-
'DMLLD19MAwXL',
|
|
140
|
-
'y2HLy2TnzxnZywDLCW',
|
|
141
|
-
'ig1LC3nHz2vZkqOk',
|
|
142
|
-
'mtaZndzbCgjWrha',
|
|
143
|
-
'ls1Hz2vUDc1Pza',
|
|
144
|
-
'AxngAw5PDgu',
|
|
145
|
-
'r0vu',
|
|
146
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
981
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
982
|
+
'iYmGu2vYDMvYoIa',
|
|
983
|
+
'DxbSB2fKrMLSzq',
|
|
984
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
985
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
147
986
|
'z2v0u2vJB25KCW',
|
|
148
|
-
'
|
|
987
|
+
'BgLZDfrHC2TZ',
|
|
988
|
+
'ig1LC3nHz2vZkqOk',
|
|
989
|
+
'BwvZC2fNzxm',
|
|
149
990
|
'ignSywLTzwq',
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'y3jLyxrLx3rHC2TZ',
|
|
170
|
-
'D29YA2vYtw9Kzq',
|
|
171
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
172
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
173
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
174
|
-
'Aw5FChjVz3jLC3m',
|
|
175
|
-
'iYmJienOyw5UzwXZ',
|
|
176
|
-
'BNvTyMvY',
|
|
177
|
-
'Dgv4Dc9WBgfPBG',
|
|
178
|
-
'Dw5RBM93BG',
|
|
179
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
180
|
-
'zgvSzxrL',
|
|
181
|
-
'C3rYAw5NAwz5',
|
|
182
|
-
'C2vYDMvY',
|
|
183
|
-
'C3bSAxq',
|
|
184
|
-
'zxH0BMfTzq',
|
|
185
|
-
'y2HHDa',
|
|
991
|
+
'CMvJB3jK',
|
|
992
|
+
'Agv4',
|
|
993
|
+
'Dg9VBa',
|
|
994
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
995
|
+
'ywz0zxi',
|
|
996
|
+
'D29YA2vY',
|
|
997
|
+
'DhjPBq',
|
|
998
|
+
'C3rHDhvZ',
|
|
999
|
+
'DMLZAwjPBgL0Eq',
|
|
1000
|
+
'B2jQzwn0',
|
|
1001
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1002
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1003
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1004
|
+
'AgfZ',
|
|
1005
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1006
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1007
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1008
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1009
|
+
'ywDNCMvNyxrLswrZ',
|
|
186
1010
|
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
1011
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1012
|
+
'DgvZDa',
|
|
1013
|
+
'BwfW',
|
|
1014
|
+
'y3jLyxrLvgfZA3m',
|
|
1015
|
+
'6k+35Rgcia',
|
|
1016
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1017
|
+
'iYmJiefNzw50CW',
|
|
1018
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
190
1019
|
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
191
|
-
'
|
|
1020
|
+
'BgLZDfnLCNzLCG',
|
|
1021
|
+
'CMvZCg9UC2u',
|
|
1022
|
+
'v29YA2vYia',
|
|
1023
|
+
'yxr0ywnOBwvUDhm',
|
|
1024
|
+
'z2v0sg91CNm',
|
|
1025
|
+
'BwvZC2fNzq',
|
|
1026
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1027
|
+
'Aw1Hz2uVD2vICa',
|
|
1028
|
+
'C2f2zq',
|
|
1029
|
+
'iIbUB3qGzM91BMq',
|
|
1030
|
+
'zxjYB3i',
|
|
1031
|
+
'D29YA2vYtw9Kzq',
|
|
1032
|
+
'Aw5JBhvKzxm',
|
|
1033
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1034
|
+
'zMLSzv9WyxrO',
|
|
192
1035
|
'CMvHC29U',
|
|
193
|
-
'
|
|
194
|
-
'
|
|
1036
|
+
'C2vX',
|
|
1037
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1038
|
+
'zMfPBgvK',
|
|
1039
|
+
'CNvUBMLUzW',
|
|
1040
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1041
|
+
'D3nZoG',
|
|
1042
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1043
|
+
'C3rYAw5N',
|
|
1044
|
+
'zgvSzxrL',
|
|
195
1045
|
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
1046
|
+
'BwLU',
|
|
1047
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1048
|
+
'DgfZA051BwjLCG',
|
|
199
1049
|
'Aw5FCMv2Awv3',
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'C3rHCNrZv2L0Aa',
|
|
203
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
204
|
-
'yM9KEu1HCMTKB3DU',
|
|
205
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
206
|
-
'l3rHC2TZl2nSywLT',
|
|
207
|
-
'BwvKAxvT',
|
|
208
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
209
|
-
'Aw1Hz2uVANbLzW',
|
|
210
|
-
'AhvTyw5Z',
|
|
211
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
212
|
-
'zgLNzxn0',
|
|
213
|
-
'ywz0zxi',
|
|
214
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
215
|
-
'DgL0Bgu',
|
|
216
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
217
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
218
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
219
|
-
'yxv0BZO',
|
|
220
|
-
'BwvZC2fNzq',
|
|
221
|
-
'BMv4Df9ZDgvWCW',
|
|
222
|
-
'ywz0zxjtzxe',
|
|
223
|
-
'BgLZDf90yxnRCW',
|
|
224
|
-
'ihr5Cgu9ywDLBNq',
|
|
225
|
-
'yMfZzty0',
|
|
226
|
-
'AgfZ',
|
|
227
|
-
'C2vYDMvYtMfTzq',
|
|
228
|
-
'y2XHAw1uyxnRCW',
|
|
229
|
-
'B3bLBL9PC3n1zxm',
|
|
1050
|
+
'D29YA2vYCW',
|
|
1051
|
+
'lNnSB2nR',
|
|
230
1052
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
231
|
-
'
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
246
|
-
'
|
|
247
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
248
|
-
'Bg9JywXLq29TCgfYzq',
|
|
249
|
-
'CMvWBgfJzq',
|
|
250
|
-
'AxngAwXL',
|
|
251
|
-
'ig1ZzZ0',
|
|
252
|
-
'D3nZoG',
|
|
253
|
-
'Bwf0y2Hoyw1L',
|
|
254
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
255
|
-
'ChjVDg9JB2W',
|
|
256
|
-
'l2HPC3rVCNK/',
|
|
257
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
258
|
-
'z2v0tw9UDgG',
|
|
259
|
-
'ndC2nZe3nwDWBKzjtW',
|
|
260
|
-
'BgvUz3rO',
|
|
261
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1053
|
+
'BMv4Den1CNnVCG',
|
|
1054
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1055
|
+
'BgLTAxq',
|
|
1056
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1057
|
+
'zg9Uzq',
|
|
1058
|
+
'y29UDgvUDc10ExbL',
|
|
1059
|
+
'C3rHCNrZv2L0Aa',
|
|
1060
|
+
'y2HHBM5LBhm',
|
|
1061
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1062
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1063
|
+
'zw51Bq',
|
|
1064
|
+
'l3jLy2vPDMu',
|
|
1065
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1066
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1067
|
+
'CNvUswq',
|
|
1068
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
262
1069
|
'D29YA2vYtw9KzuvUywjSzwq',
|
|
263
|
-
'
|
|
264
|
-
'DgHYzwfKu2HVCNrjza',
|
|
265
|
-
'iIbUB3qGzM91BMq',
|
|
266
|
-
'yxjYyxLcDwzMzxi',
|
|
267
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
268
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
269
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
270
|
-
'Dg9VBa',
|
|
271
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1070
|
+
'vgfZAYa',
|
|
272
1071
|
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'y2f0y2G',
|
|
282
|
-
'igf0DgfJAg1LBNq',
|
|
283
|
-
'y29UDgvUDc10ExbL',
|
|
284
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
285
|
-
'C2vUze1LC3nHz2u',
|
|
1072
|
+
'AhvTyw5Z',
|
|
1073
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1074
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1075
|
+
'Dgv4Dc9JC3y',
|
|
1076
|
+
'C29Tzq',
|
|
1077
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1078
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1079
|
+
'l3rHC2TZpW',
|
|
286
1080
|
'ywrK',
|
|
287
|
-
'
|
|
288
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
289
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
290
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
291
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
292
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
293
|
-
'DMfSDwvZ',
|
|
294
|
-
'l3nLCNzLCG',
|
|
295
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
296
|
-
'BgLZDfrHC2TZ',
|
|
297
|
-
'y2XHAw0GzMfPBgvK',
|
|
298
|
-
'DgfZA051BwjLCG',
|
|
299
|
-
'sfruuca',
|
|
300
|
-
'CgfYDgLJAxbHBNq',
|
|
301
|
-
'C2f2zq',
|
|
302
|
-
'DxbSB2fKx2zPBgu',
|
|
303
|
-
'y29UDgvUDejHC2u2na',
|
|
304
|
-
'w3rHCMDLDd0',
|
|
305
|
-
'CgfYDgLJAxbHBNrjza',
|
|
306
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
307
|
-
'C2vX',
|
|
308
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
1081
|
+
'yxjYyxLcDwzMzxi',
|
|
309
1082
|
'ywjVCNrLza',
|
|
310
|
-
'
|
|
311
|
-
'
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
1083
|
+
'yMvMB3jL',
|
|
1084
|
+
'DgfZAW',
|
|
1085
|
+
'zMLSzxnFy2HHBMDLza',
|
|
1086
|
+
'CMvXDwvZDfvYBa',
|
|
1087
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1088
|
+
'y2XHAw0GzMfPBgvK',
|
|
1089
|
+
'BMv4Df9ZDgvWCW',
|
|
1090
|
+
'mtm0otq0Ce9gq2fZ',
|
|
1091
|
+
'zMv0y2HjBxbS',
|
|
1092
|
+
'Cgf5Bg9HzePZB24',
|
|
1093
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1094
|
+
'C2v0',
|
|
1095
|
+
'AxnjBNrLz2vY',
|
|
1096
|
+
'xsba',
|
|
1097
|
+
'CgfYC2u',
|
|
1098
|
+
'C29YDa',
|
|
1099
|
+
'zg06',
|
|
1100
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1101
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
322
1102
|
'yxjNDG',
|
|
323
|
-
'
|
|
1103
|
+
'zgvZy3jPyMu',
|
|
324
1104
|
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'
|
|
333
|
-
'
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'6k+35Rgcia',
|
|
343
|
-
'y2HHBM5LBhm',
|
|
344
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
345
|
-
'mtKWntq0mgDtqwzoAq',
|
|
346
|
-
'BMfTzq',
|
|
347
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
348
|
-
'Aw5JBhvKzxm',
|
|
349
|
-
'yxr0ywnOBwvUDeLK',
|
|
1105
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1106
|
+
'C2XPy2u',
|
|
1107
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1108
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1109
|
+
'C2vUzgvYtMfTzq',
|
|
1110
|
+
'zgvJAxnPB25Z',
|
|
1111
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1112
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1113
|
+
'BgLZDf9Zzxj2zxi',
|
|
1114
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1115
|
+
'CgfYDgLJAxbHBNq',
|
|
1116
|
+
'mJu5nta2m3Lis0r4rG',
|
|
1117
|
+
'y2HHBM5LBeLK',
|
|
1118
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1119
|
+
'CMvWBgfJzq',
|
|
1120
|
+
'zM9Yy2vszwzYzxnO',
|
|
1121
|
+
'AM9PBG',
|
|
350
1122
|
'Bwf0y2Hoyw1Ltg93zxi',
|
|
351
|
-
'
|
|
352
|
-
'zg06',
|
|
353
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1123
|
+
'zxHWAxjLC0f0',
|
|
354
1124
|
'kg5VBMuP',
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
1125
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1126
|
+
'DgHYzwfK',
|
|
1127
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1128
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1129
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1130
|
+
'AxnbCNjHEq',
|
|
1131
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1132
|
+
'AgfZtw9Yzq',
|
|
1133
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1134
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1135
|
+
'Dg9KBW',
|
|
1136
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1137
|
+
'BgvUz3rO',
|
|
1138
|
+
'C2HHmJu2',
|
|
1139
|
+
'ig1LC3nHz2u9',
|
|
1140
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1141
|
+
'DgfYz2v0zwq',
|
|
1142
|
+
'Bg93',
|
|
1143
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1144
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1145
|
+
'BgLZDf90yxnRCW',
|
|
1146
|
+
'Dw5JBgfPBv90yxnR',
|
|
1147
|
+
'zw50CMLLCW',
|
|
1148
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1149
|
+
'C2nOzwr1BgvKrM9Y',
|
|
358
1150
|
'DgfZA0LK',
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'
|
|
1151
|
+
'igf0DgfJAg1LBNq',
|
|
1152
|
+
'ue9tva',
|
|
1153
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1154
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1155
|
+
'C3rVCe1HAw4',
|
|
1156
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1157
|
+
'BwvTyMvYCW',
|
|
1158
|
+
'DgHYzwfKtNvTyMvY',
|
|
363
1159
|
'DgHYzwfKswq',
|
|
364
|
-
'Bg93',
|
|
365
1160
|
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
371
|
-
'
|
|
372
|
-
'
|
|
1161
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1162
|
+
'mZaYnJK0ogTvCwPdtW',
|
|
1163
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1164
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1165
|
+
'B3b0Aw9UywW',
|
|
1166
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1167
|
+
'lsba',
|
|
1168
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1169
|
+
'Axnoyu4',
|
|
373
1170
|
'yxbWBgLJyxrPB24VANnVBG',
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
379
|
-
'
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
1171
|
+
'ihrPBwu9',
|
|
1172
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1173
|
+
'l3rHC2TZ',
|
|
1174
|
+
'ChvZAa',
|
|
1175
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1176
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1177
|
+
'zgLZCg9ZAxrPB24',
|
|
1178
|
+
'y29UDgvUDejHC2u2na',
|
|
1179
|
+
'yMfZzty0',
|
|
1180
|
+
'mc4WlJa',
|
|
1181
|
+
'AxnbyNnVBhv0zq',
|
|
1182
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1183
|
+
'pgvTChr5pG',
|
|
1184
|
+
'CMvZDwX0CW',
|
|
1185
|
+
'Dgv4Da',
|
|
1186
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1187
|
+
'DgfZA3m',
|
|
1188
|
+
'C3rYAw5NAwz5',
|
|
1189
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1190
|
+
'C2vUzf9TzxnZywDL',
|
|
1191
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1192
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1193
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
384
1194
|
'iJOGC3rHDhvZpq',
|
|
385
|
-
'
|
|
386
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
387
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
388
|
-
'zMLSDgvY',
|
|
389
|
-
'C2vUzgvYvhLWzq',
|
|
390
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
391
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
392
|
-
'Ahr0CdO',
|
|
1195
|
+
'ywDLBNrZ',
|
|
393
1196
|
'igLUia',
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'
|
|
397
|
-
'
|
|
1197
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1198
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1199
|
+
'l3rHC2TZl2nSywLT',
|
|
1200
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
398
1201
|
'ywDLBNrjza',
|
|
399
|
-
'
|
|
400
|
-
'
|
|
1202
|
+
'AxngAw5PDgu',
|
|
1203
|
+
'Dg9ju09tDhjPBMC',
|
|
1204
|
+
'yxnPzgu',
|
|
1205
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1206
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1207
|
+
'mKvXDezWCG',
|
|
1208
|
+
'zgLNzxn0',
|
|
1209
|
+
'zxzLBNrtzxe',
|
|
401
1210
|
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
402
|
-
'
|
|
1211
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1212
|
+
'ywDLBNq',
|
|
1213
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1214
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1215
|
+
'Aw1Hz2uVANbLzW',
|
|
403
1216
|
'lMjPBG',
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
414
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
415
|
-
'C2vUzgvYtMfTzq',
|
|
1217
|
+
'y2HHDa',
|
|
1218
|
+
'BMfTzq',
|
|
1219
|
+
'CxvLDwvK',
|
|
1220
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1221
|
+
'C2LNBMfS',
|
|
1222
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1223
|
+
'ihr5Cgu9ywDLBNq',
|
|
1224
|
+
'nti5oxDutMrmAa',
|
|
1225
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
416
1226
|
'DhLWzq',
|
|
417
|
-
'
|
|
418
|
-
'
|
|
419
|
-
'
|
|
1227
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1228
|
+
'C2vZC2LVBKLK',
|
|
1229
|
+
'D29YA19RzxK',
|
|
1230
|
+
'BNvTyMvY',
|
|
420
1231
|
'iokaLca',
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
1232
|
+
'yxv0BZO',
|
|
1233
|
+
'igzHAwXLzdOG',
|
|
1234
|
+
'z2v0',
|
|
1235
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1236
|
+
'zNjVBq',
|
|
1237
|
+
'DgfZA19Pza',
|
|
1238
|
+
'DxbSB2fKx2zPBgu',
|
|
1239
|
+
'CMvZDwX0sNnVBG',
|
|
1240
|
+
'CMvZDwX0',
|
|
1241
|
+
'l3nLBMq',
|
|
1242
|
+
'DgfZAY0',
|
|
1243
|
+
'Aw1Hz2uVCg5N',
|
|
1244
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1245
|
+
'y29UDgvUDa',
|
|
434
1246
|
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
435
|
-
'
|
|
436
|
-
'
|
|
1247
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1248
|
+
'DgfYz2v0',
|
|
437
1249
|
'DgHYzwfKvgfYz2v0pq',
|
|
438
|
-
'
|
|
439
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
440
|
-
'BwfW',
|
|
441
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
442
|
-
'zMLSzw5HBwu',
|
|
443
|
-
'l3rHC2TZ',
|
|
444
|
-
'ls1ZzxnZAw9UlwLK',
|
|
445
|
-
'C2vUzf9TzxnZywDL',
|
|
446
|
-
'nJrWA2nnBuu',
|
|
447
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
448
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
449
|
-
'Dgv4Dc9JC3y',
|
|
450
|
-
'v29YA2vYici',
|
|
451
|
-
'kgXLz2fJEsK',
|
|
1250
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
452
1251
|
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
453
|
-
'
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
'
|
|
458
|
-
'
|
|
459
|
-
'
|
|
460
|
-
'
|
|
461
|
-
'
|
|
1252
|
+
'zxH0BMfTzq',
|
|
1253
|
+
'ihn0yxr1CZ0',
|
|
1254
|
+
'C2vYDMvY',
|
|
1255
|
+
'ywDNCMvNyxrLswq',
|
|
1256
|
+
'BwvZC2fNzuLK',
|
|
1257
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1258
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1259
|
+
'zMfSC2u',
|
|
1260
|
+
'mtqWmZGXndbwq1PgrNu',
|
|
1261
|
+
'kgXLz2fJEsK',
|
|
1262
|
+
'C2vUze1LC3nHz2u',
|
|
1263
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1264
|
+
'y2XHAw1uyxnRCW',
|
|
1265
|
+
'Dw5RBM93BG',
|
|
1266
|
+
'zMLSDgvY',
|
|
1267
|
+
'ls1Hz2vUDc1Pza',
|
|
1268
|
+
'BwvTyMvY',
|
|
1269
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1270
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1271
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1272
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1273
|
+
'DgfYz2v0zwruyxnR',
|
|
1274
|
+
'z2v0vgLTzq',
|
|
1275
|
+
'AhjLzG',
|
|
1276
|
+
'AgvHzgvYCW',
|
|
1277
|
+
'mJyXDLPgBMPv',
|
|
1278
|
+
'zgfLBw9UqxbPs2v5',
|
|
1279
|
+
'C2L6zq',
|
|
1280
|
+
'zgvZDhjVEwvK',
|
|
1281
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1282
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
1283
|
+
'CMvHzeHPC3rVCNK',
|
|
1284
|
+
'CgfKu3rHCNq',
|
|
1285
|
+
'ANnVBG',
|
|
1286
|
+
'Dg9tDhjPBMC',
|
|
1287
|
+
'Dgv4Dc9WBgfPBG',
|
|
1288
|
+
'yxjYyxK',
|
|
1289
|
+
'y2f0y2G',
|
|
1290
|
+
'lsaJ',
|
|
1291
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1292
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1293
|
+
'z2v0rNvSBfLLyxi',
|
|
1294
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1295
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1296
|
+
'C3bSAxq',
|
|
1297
|
+
'zgf0yq',
|
|
1298
|
+
'sfruuca',
|
|
1299
|
+
'z2v0rgf0zq',
|
|
1300
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1301
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1302
|
+
'DMLLD19MAwXL',
|
|
1303
|
+
'nJK4nJm2r2D2C21y',
|
|
1304
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1305
|
+
'l3n0yxj0',
|
|
1306
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1307
|
+
'z2v0tw9UDgG',
|
|
1308
|
+
'y3jLyxrLzef0',
|
|
1309
|
+
'C2L6zuj5DgvZ',
|
|
1310
|
+
'iYmJieH1BwfUCW',
|
|
1311
|
+
'l3vWBg9Hza',
|
|
1312
|
+
'DxrMoa',
|
|
1313
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1314
|
+
'zMLUza',
|
|
1315
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
462
1316
|
'ywjVCNq',
|
|
463
|
-
'
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'
|
|
471
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
472
|
-
'C2XPy2u',
|
|
473
|
-
'Dg9ju09tDhjPBMC',
|
|
1317
|
+
'ndqXnNPfEhHvsq',
|
|
1318
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1319
|
+
'ChjVDg9JB2W',
|
|
1320
|
+
'Ahr0CdO',
|
|
1321
|
+
'CMvHzf9OAxn0B3j5',
|
|
1322
|
+
'AgLNAa',
|
|
1323
|
+
'y29UDgvUDfr5Cgu',
|
|
1324
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
474
1325
|
'y3vYC29Y',
|
|
475
|
-
'
|
|
476
|
-
'
|
|
477
|
-
'
|
|
478
|
-
'
|
|
479
|
-
'
|
|
480
|
-
'
|
|
481
|
-
'
|
|
482
|
-
'
|
|
483
|
-
'
|
|
484
|
-
'
|
|
485
|
-
'Dgv4Da',
|
|
1326
|
+
'C2vUzgvYvhLWzq',
|
|
1327
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1328
|
+
'DxjNzw50',
|
|
1329
|
+
'BM93',
|
|
1330
|
+
'y2HHBM5LBa',
|
|
1331
|
+
'icHPzdO',
|
|
1332
|
+
'Bwf0y2Hoyw1L',
|
|
1333
|
+
'cGOTls0G',
|
|
1334
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1335
|
+
'yxr0ywnOBwvUDeLK',
|
|
486
1336
|
'y2XPzw50',
|
|
487
|
-
'
|
|
1337
|
+
'DgHYzwfKvgfYz2v0',
|
|
1338
|
+
'DMfSDwvZ',
|
|
488
1339
|
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
489
|
-
'
|
|
490
|
-
'
|
|
491
|
-
'
|
|
492
|
-
'
|
|
1340
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1341
|
+
'y2HHBM5LBe5HBwu',
|
|
1342
|
+
'w3rHCMDLDd0',
|
|
1343
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1344
|
+
'C3rHCNrLza',
|
|
493
1345
|
'D3m6',
|
|
494
|
-
'
|
|
495
|
-
'
|
|
496
|
-
'
|
|
497
|
-
'
|
|
498
|
-
'
|
|
499
|
-
'
|
|
500
|
-
'
|
|
501
|
-
'
|
|
502
|
-
'
|
|
503
|
-
'
|
|
504
|
-
'
|
|
505
|
-
'
|
|
506
|
-
'
|
|
507
|
-
'
|
|
508
|
-
'
|
|
509
|
-
'
|
|
510
|
-
'
|
|
511
|
-
'
|
|
512
|
-
'
|
|
513
|
-
'
|
|
1346
|
+
'r0vu',
|
|
1347
|
+
'zMLSzw5HBwu',
|
|
1348
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1349
|
+
'yM9KEu1HCMTKB3DU',
|
|
1350
|
+
'ig1ZzZ0',
|
|
1351
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1352
|
+
'y2XHAw1FDgfZA3m',
|
|
1353
|
+
'l2zPBMLZAa',
|
|
1354
|
+
'DMfSDwu',
|
|
1355
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1356
|
+
'DgL0Bgu',
|
|
1357
|
+
'zgvZy3jPChrPB24',
|
|
1358
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1359
|
+
'yMXVy2TLza',
|
|
1360
|
+
'v29YA2vYici',
|
|
1361
|
+
'AwrSzq',
|
|
1362
|
+
'DxnLCG',
|
|
1363
|
+
'Bwv0yq',
|
|
1364
|
+
'C2vYDMvYvxjS',
|
|
1365
|
+
'A2LUza',
|
|
1366
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
514
1367
|
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
515
|
-
'
|
|
516
|
-
'B2jQzwn0'
|
|
1368
|
+
'ndiZmti5nu92vLHjta'
|
|
517
1369
|
];
|
|
518
|
-
|
|
519
|
-
return
|
|
520
|
-
};
|
|
521
|
-
return _0x19b3();
|
|
522
|
-
}
|
|
523
|
-
function parseThreadParts(_0x1749b2) {
|
|
524
|
-
const _0x5d43b8 = { _0x8ef39: 0x18d }, _0x2134c3 = _0x1bf962, _0x1fc120 = _0x1749b2[_0x2134c3(_0x5d43b8._0x8ef39)](':');
|
|
525
|
-
if (_0x1fc120['length'] < 0x1 || _0x1fc120[_0x2134c3(0x1da)] > 0x2)
|
|
526
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
-
return {
|
|
528
|
-
'channelName': ensureSegment(_0x1fc120[0x0] ?? ''),
|
|
529
|
-
'threadShortId': _0x1fc120[0x1] ? ensureSegment(_0x1fc120[0x1]) : null
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
function parseTarget(_0x3125ad) {
|
|
533
|
-
const _0x325887 = {
|
|
534
|
-
_0x51fe2a: 0x1de,
|
|
535
|
-
_0xdeb717: 0x14d,
|
|
536
|
-
_0x1a9b20: 0x13c,
|
|
537
|
-
_0x177f41: 0x14d,
|
|
538
|
-
_0xa128df: 0x1a0,
|
|
539
|
-
_0x53b050: 0x236,
|
|
540
|
-
_0x31d3d3: 0x1c3,
|
|
541
|
-
_0x28f91b: 0x14d,
|
|
542
|
-
_0x2f33b5: 0x1de,
|
|
543
|
-
_0x565939: 0x24a,
|
|
544
|
-
_0x238bdd: 0x1de
|
|
545
|
-
}, _0xb0cdc2 = _0x1bf962, _0x1379a4 = _0x3125ad['trim']();
|
|
546
|
-
if (!_0x1379a4)
|
|
547
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
-
if (_0x1379a4['startsWith']('#')) {
|
|
549
|
-
const _0x13d418 = parseThreadParts(_0x1379a4[_0xb0cdc2(0x120)](0x1)), _0x315ce2 = '#' + _0x13d418['channelName'];
|
|
550
|
-
if (!_0x13d418[_0xb0cdc2(_0x325887._0x51fe2a)])
|
|
551
|
-
return {
|
|
552
|
-
'channelName': _0x13d418[_0xb0cdc2(_0x325887._0xdeb717)],
|
|
553
|
-
'channelTarget': _0x315ce2,
|
|
554
|
-
'kind': _0xb0cdc2(_0x325887._0x1a9b20),
|
|
555
|
-
'target': _0x315ce2
|
|
556
|
-
};
|
|
557
|
-
return {
|
|
558
|
-
'channelName': _0x13d418[_0xb0cdc2(_0x325887._0x177f41)],
|
|
559
|
-
'channelTarget': _0x315ce2,
|
|
560
|
-
'kind': 'thread',
|
|
561
|
-
'target': _0x315ce2 + ':' + _0x13d418[_0xb0cdc2(0x1de)],
|
|
562
|
-
'threadShortId': _0x13d418[_0xb0cdc2(0x1de)]
|
|
563
|
-
};
|
|
564
|
-
}
|
|
565
|
-
if (_0x1379a4[_0xb0cdc2(_0x325887._0xa128df)](_0xb0cdc2(_0x325887._0x53b050))) {
|
|
566
|
-
const _0x5e910d = parseThreadParts(_0x1379a4['slice'](0x3));
|
|
567
|
-
if (!_0x5e910d['channelName'][_0xb0cdc2(0x1a0)](_0xb0cdc2(_0x325887._0x31d3d3)))
|
|
568
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
569
|
-
const _0x1e96e3 = _0xb0cdc2(_0x325887._0x53b050) + _0x5e910d[_0xb0cdc2(_0x325887._0x28f91b)];
|
|
570
|
-
if (!_0x5e910d[_0xb0cdc2(_0x325887._0x2f33b5)])
|
|
571
|
-
return {
|
|
572
|
-
'channelName': _0x5e910d[_0xb0cdc2(_0x325887._0x28f91b)],
|
|
573
|
-
'channelTarget': _0x1e96e3,
|
|
574
|
-
'kind': 'channel',
|
|
575
|
-
'target': _0x1e96e3
|
|
576
|
-
};
|
|
577
|
-
return {
|
|
578
|
-
'channelName': _0x5e910d[_0xb0cdc2(0x14d)],
|
|
579
|
-
'channelTarget': _0x1e96e3,
|
|
580
|
-
'kind': _0xb0cdc2(_0x325887._0x565939),
|
|
581
|
-
'target': _0x1e96e3 + ':' + _0x5e910d[_0xb0cdc2(_0x325887._0x238bdd)],
|
|
582
|
-
'threadShortId': _0x5e910d['threadShortId']
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
586
|
-
}
|
|
587
|
-
function asErrorMessage(_0x43395f, _0x3d5a21) {
|
|
588
|
-
const _0x33b1fd = { _0x3932f5: 0xdd }, _0xde7551 = _0x1bf962;
|
|
589
|
-
if (typeof _0x43395f === _0xde7551(0x1e7) && _0x43395f[_0xde7551(_0x33b1fd._0x3932f5)]())
|
|
590
|
-
return _0x43395f;
|
|
591
|
-
return _0x3d5a21;
|
|
592
|
-
}
|
|
593
|
-
function asRecord(_0x5a085e) {
|
|
594
|
-
return typeof _0x5a085e === 'object' && _0x5a085e !== null ? _0x5a085e : {};
|
|
595
|
-
}
|
|
596
|
-
function stableStringify(_0x58fd31) {
|
|
597
|
-
const _0x3e5a4e = {
|
|
598
|
-
_0x518474: 0x18b,
|
|
599
|
-
_0x59f225: 0x197,
|
|
600
|
-
_0x4e1ed6: 0x148,
|
|
601
|
-
_0x382375: 0x15a
|
|
602
|
-
}, _0x48a42d = _0x1bf962;
|
|
603
|
-
if (_0x58fd31 === null || typeof _0x58fd31 !== 'object')
|
|
604
|
-
return JSON[_0x48a42d(_0x3e5a4e._0x518474)](_0x58fd31);
|
|
605
|
-
if (Array[_0x48a42d(_0x3e5a4e._0x59f225)](_0x58fd31))
|
|
606
|
-
return '[' + _0x58fd31['map'](_0x9d82bb => stableStringify(_0x9d82bb))[_0x48a42d(_0x3e5a4e._0x4e1ed6)](',') + ']';
|
|
607
|
-
const _0x4783a8 = Object['entries'](_0x58fd31)[_0x48a42d(0xcc)](([, _0x31c1d4]) => _0x31c1d4 !== void 0x0)[_0x48a42d(_0x3e5a4e._0x382375)](([_0x4bc661], [_0x288f50]) => _0x4bc661[_0x48a42d(0x1ce)](_0x288f50))[_0x48a42d(0x100)](([_0x4ed8c4, _0x3867d4]) => JSON[_0x48a42d(0x18b)](_0x4ed8c4) + ':' + stableStringify(_0x3867d4));
|
|
608
|
-
return '{' + _0x4783a8[_0x48a42d(0x148)](',') + '}';
|
|
609
|
-
}
|
|
610
|
-
function createHeaders(_0x90f9d) {
|
|
611
|
-
const _0x3450ea = _0x1bf962;
|
|
612
|
-
return {
|
|
613
|
-
'Content-Type': _0x3450ea(0x24b),
|
|
614
|
-
'x-daemon-api-key': _0x90f9d
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
function toHttpBaseUrl(_0x416a06) {
|
|
618
|
-
const _0x2429a2 = {
|
|
619
|
-
_0x32666d: 0xd0,
|
|
620
|
-
_0x962988: 0x1d2,
|
|
621
|
-
_0x5be59a: 0x210
|
|
622
|
-
}, _0x183799 = _0x1bf962, _0x7238cc = new URL(_0x416a06);
|
|
623
|
-
if (_0x7238cc[_0x183799(0x1d5)] === _0x183799(0x135))
|
|
624
|
-
_0x7238cc[_0x183799(0x1d5)] = _0x183799(_0x2429a2._0x32666d);
|
|
625
|
-
else
|
|
626
|
-
_0x7238cc[_0x183799(0x1d5)] === _0x183799(_0x2429a2._0x962988) && (_0x7238cc['protocol'] = _0x183799(_0x2429a2._0x5be59a));
|
|
627
|
-
return _0x7238cc['toString']()[_0x183799(0x1cf)](/\/$/, '');
|
|
628
|
-
}
|
|
629
|
-
function isMentionBoundary(_0x3705b7) {
|
|
630
|
-
return !_0x3705b7 || /\s|[([{'",。!?、:;]/['test'](_0x3705b7);
|
|
631
|
-
}
|
|
632
|
-
function isMentionTerminal(_0x42af9d) {
|
|
633
|
-
const _0x46ed1e = _0x1bf962;
|
|
634
|
-
return !_0x42af9d || /\s|[)\]}'",。!?、:;,.!?]/[_0x46ed1e(0x124)](_0x42af9d);
|
|
635
|
-
}
|
|
636
|
-
function buildMatchableEntries(_0x43d4be) {
|
|
637
|
-
const _0x57a619 = {
|
|
638
|
-
_0x45c61d: 0x1a8,
|
|
639
|
-
_0x30a4a9: 0x10f,
|
|
640
|
-
_0x2ed8ce: 0x230,
|
|
641
|
-
_0x495ce8: 0xce,
|
|
642
|
-
_0x53fdab: 0x10f
|
|
643
|
-
}, _0x426c6c = _0x1bf962, _0x36a97b = [];
|
|
644
|
-
for (const _0x45f2ed of [
|
|
645
|
-
..._0x43d4be['agents'],
|
|
646
|
-
..._0x43d4be[_0x426c6c(_0x57a619._0x45c61d)]
|
|
647
|
-
]) {
|
|
648
|
-
_0x36a97b[_0x426c6c(_0x57a619._0x30a4a9)]({
|
|
649
|
-
'matchName': _0x45f2ed[_0x426c6c(_0x57a619._0x2ed8ce)],
|
|
650
|
-
'matchNameLower': _0x45f2ed[_0x426c6c(0x230)][_0x426c6c(_0x57a619._0x495ce8)](),
|
|
651
|
-
'participantId': _0x45f2ed['id']
|
|
652
|
-
}), _0x45f2ed['id'] !== _0x45f2ed[_0x426c6c(0x230)] && _0x36a97b[_0x426c6c(_0x57a619._0x53fdab)]({
|
|
653
|
-
'matchName': _0x45f2ed['id'],
|
|
654
|
-
'matchNameLower': _0x45f2ed['id']['toLocaleLowerCase'](),
|
|
655
|
-
'participantId': _0x45f2ed['id']
|
|
656
|
-
});
|
|
657
|
-
}
|
|
658
|
-
return _0x36a97b;
|
|
659
|
-
}
|
|
660
|
-
function extractMentionedParticipantIds(_0x3bd0d9, _0x2cf5d) {
|
|
661
|
-
const _0xfbc42e = {
|
|
662
|
-
_0xf4249c: 0x1da,
|
|
663
|
-
_0x5aab39: 0x120,
|
|
664
|
-
_0x57cef7: 0x170,
|
|
665
|
-
_0x1cbcfb: 0x1b8,
|
|
666
|
-
_0x48728b: 0x207,
|
|
667
|
-
_0x5b0afa: 0x1f4
|
|
668
|
-
}, _0x3322e1 = {
|
|
669
|
-
_0x5a876b: 0x1a0,
|
|
670
|
-
_0x2533d5: 0x234,
|
|
671
|
-
_0x49b9ee: 0x1d3
|
|
672
|
-
}, _0x4c55f6 = _0x1bf962, _0x3bf9ed = buildMatchableEntries(_0x2cf5d)[_0x4c55f6(0x15a)]((_0xe21bf, _0x41dc5a) => _0x41dc5a['matchName'][_0x4c55f6(0x1da)] - _0xe21bf[_0x4c55f6(0x1d3)]['length']), _0x3c7c69 = [], _0x2b886b = new Set();
|
|
673
|
-
for (let _0x5960ca = 0x0; _0x5960ca < _0x3bd0d9[_0x4c55f6(_0xfbc42e._0xf4249c)]; _0x5960ca += 0x1) {
|
|
674
|
-
if (_0x3bd0d9[_0x5960ca] !== '@' || !isMentionBoundary(_0x3bd0d9[_0x5960ca - 0x1]))
|
|
675
|
-
continue;
|
|
676
|
-
const _0x137174 = _0x3bd0d9[_0x4c55f6(_0xfbc42e._0x5aab39)](_0x5960ca + 0x1), _0x281ad6 = _0x137174[_0x4c55f6(0xce)](), _0x249bbf = _0x3bf9ed[_0x4c55f6(_0xfbc42e._0x57cef7)](_0x3324fe => {
|
|
677
|
-
const _0x4939b6 = _0x4c55f6;
|
|
678
|
-
if (!_0x281ad6[_0x4939b6(_0x3322e1._0x5a876b)](_0x3324fe[_0x4939b6(_0x3322e1._0x2533d5)]))
|
|
679
|
-
return ![];
|
|
680
|
-
return isMentionTerminal(_0x137174[_0x3324fe[_0x4939b6(_0x3322e1._0x49b9ee)]['length']]);
|
|
681
|
-
});
|
|
682
|
-
if (!_0x249bbf || _0x2b886b[_0x4c55f6(_0xfbc42e._0x1cbcfb)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]))
|
|
683
|
-
continue;
|
|
684
|
-
_0x2b886b[_0x4c55f6(_0xfbc42e._0x5b0afa)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]), _0x3c7c69[_0x4c55f6(0x10f)](_0x249bbf[_0x4c55f6(_0xfbc42e._0x48728b)]), _0x5960ca += _0x249bbf[_0x4c55f6(0x1d3)][_0x4c55f6(0x1da)];
|
|
685
|
-
}
|
|
686
|
-
return _0x3c7c69;
|
|
687
|
-
}
|
|
688
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
689
|
-
function _0x3fbb(_0x26e684, _0x5030a9) {
|
|
690
|
-
_0x26e684 = _0x26e684 - 0xbf;
|
|
691
|
-
const _0x19b383 = _0x19b3();
|
|
692
|
-
let _0x3fbb8b = _0x19b383[_0x26e684];
|
|
693
|
-
if (_0x3fbb['HbFSVU'] === undefined) {
|
|
694
|
-
var _0xcce733 = function (_0x1bcccd) {
|
|
695
|
-
const _0x488d63 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
696
|
-
let _0x1ca7bc = '', _0x1e3ab2 = '';
|
|
697
|
-
for (let _0x2db4e0 = 0x0, _0x191e5b, _0x114aea, _0x4e2ba1 = 0x0; _0x114aea = _0x1bcccd['charAt'](_0x4e2ba1++); ~_0x114aea && (_0x191e5b = _0x2db4e0 % 0x4 ? _0x191e5b * 0x40 + _0x114aea : _0x114aea, _0x2db4e0++ % 0x4) ? _0x1ca7bc += String['fromCharCode'](0xff & _0x191e5b >> (-0x2 * _0x2db4e0 & 0x6)) : 0x0) {
|
|
698
|
-
_0x114aea = _0x488d63['indexOf'](_0x114aea);
|
|
699
|
-
}
|
|
700
|
-
for (let _0x230282 = 0x0, _0x101a1d = _0x1ca7bc['length']; _0x230282 < _0x101a1d; _0x230282++) {
|
|
701
|
-
_0x1e3ab2 += '%' + ('00' + _0x1ca7bc['charCodeAt'](_0x230282)['toString'](0x10))['slice'](-0x2);
|
|
702
|
-
}
|
|
703
|
-
return decodeURIComponent(_0x1e3ab2);
|
|
704
|
-
};
|
|
705
|
-
_0x3fbb['IRBoLt'] = _0xcce733, _0x3fbb['xnyfgj'] = {}, _0x3fbb['HbFSVU'] = !![];
|
|
706
|
-
}
|
|
707
|
-
const _0xf72c8a = _0x19b383[0x0], _0x324f4f = _0x26e684 + _0xf72c8a, _0x407199 = _0x3fbb['xnyfgj'][_0x324f4f];
|
|
708
|
-
return !_0x407199 ? (_0x3fbb8b = _0x3fbb['IRBoLt'](_0x3fbb8b), _0x3fbb['xnyfgj'][_0x324f4f] = _0x3fbb8b) : _0x3fbb8b = _0x407199, _0x3fbb8b;
|
|
709
|
-
}
|
|
710
|
-
function anySignal(..._0x591d82) {
|
|
711
|
-
const _0x3fb346 = { _0x257419: 0x116 }, _0x40499c = _0x1bf962, _0x4c06ce = new AbortController();
|
|
712
|
-
for (const _0x2044a5 of _0x591d82) {
|
|
713
|
-
if (_0x2044a5[_0x40499c(0x20b)])
|
|
714
|
-
return _0x4c06ce[_0x40499c(_0x3fb346._0x257419)](_0x2044a5[_0x40499c(0x196)]), _0x4c06ce[_0x40499c(0x19e)];
|
|
715
|
-
_0x2044a5[_0x40499c(0x139)](_0x40499c(_0x3fb346._0x257419), () => _0x4c06ce[_0x40499c(0x116)](_0x2044a5[_0x40499c(0x196)]), {
|
|
716
|
-
'once': !![],
|
|
717
|
-
'signal': _0x4c06ce['signal']
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
return _0x4c06ce[_0x40499c(0x19e)];
|
|
721
|
-
}
|
|
722
|
-
function createInternalAgentClient(_0x44dccf) {
|
|
723
|
-
const _0x42f7bf = {
|
|
724
|
-
_0x31a65e: 0x130,
|
|
725
|
-
_0x72d532: 0xf9,
|
|
726
|
-
_0x339ac8: 0xdd,
|
|
727
|
-
_0x4fa33b: 0x16a
|
|
728
|
-
}, _0x26ac23 = {
|
|
729
|
-
_0x4f43c6: 0x23e,
|
|
730
|
-
_0x347ddf: 0x173,
|
|
731
|
-
_0xd3f0fd: 0x167,
|
|
732
|
-
_0x37261e: 0x209,
|
|
733
|
-
_0x528318: 0x191,
|
|
734
|
-
_0x4bb46f: 0xf1,
|
|
735
|
-
_0x340ab1: 0x1c5,
|
|
736
|
-
_0x4ba328: 0x1e7,
|
|
737
|
-
_0x151897: 0xfe,
|
|
738
|
-
_0x4d390a: 0x1ec,
|
|
739
|
-
_0x520d40: 0x149,
|
|
740
|
-
_0x235da3: 0x1ec,
|
|
741
|
-
_0x12aa21: 0x145,
|
|
742
|
-
_0x36b191: 0x1fb,
|
|
743
|
-
_0x7eb4f2: 0x11b,
|
|
744
|
-
_0x5eeb9e: 0x236,
|
|
745
|
-
_0x382398: 0x15b,
|
|
746
|
-
_0x392641: 0x1da,
|
|
747
|
-
_0x4d84f7: 0xfc,
|
|
748
|
-
_0x208101: 0x1c2,
|
|
749
|
-
_0x56d743: 0xe4,
|
|
750
|
-
_0x4d125e: 0x112,
|
|
751
|
-
_0x30b317: 0x121,
|
|
752
|
-
_0x37c689: 0xcc
|
|
753
|
-
}, _0x5197d5 = {
|
|
754
|
-
_0x2ea6f0: 0x1ab,
|
|
755
|
-
_0x4905b0: 0x244
|
|
756
|
-
}, _0x1d337a = {
|
|
757
|
-
_0x14e19e: 0x1e3,
|
|
758
|
-
_0x2cdf93: 0xf0,
|
|
759
|
-
_0x14db2e: 0x167,
|
|
760
|
-
_0x44a05e: 0x19e,
|
|
761
|
-
_0x3925eb: 0xc9,
|
|
762
|
-
_0x4ce0ff: 0x1e0
|
|
763
|
-
}, _0xb16b97 = {
|
|
764
|
-
_0x207e63: 0x241,
|
|
765
|
-
_0x26ac72: 0x1f6,
|
|
766
|
-
_0x439233: 0x205,
|
|
767
|
-
_0x5f3900: 0x102,
|
|
768
|
-
_0x2179fa: 0x136,
|
|
769
|
-
_0x299a7c: 0x1e9
|
|
770
|
-
}, _0x56466f = {
|
|
771
|
-
_0x5bbe9d: 0x1f6,
|
|
772
|
-
_0x4ca894: 0x18b,
|
|
773
|
-
_0x38d5be: 0x136
|
|
774
|
-
}, _0x536dd3 = { _0x9fa46c: 0x19a }, _0x484538 = {
|
|
775
|
-
_0x5adf45: 0x1a4,
|
|
776
|
-
_0x246d8f: 0x18b,
|
|
777
|
-
_0x3e4a84: 0x136
|
|
778
|
-
}, _0x446692 = {
|
|
779
|
-
_0x5abe4f: 0x23e,
|
|
780
|
-
_0x333570: 0x13c,
|
|
781
|
-
_0x1039d5: 0xc9,
|
|
782
|
-
_0x2a7374: 0x1f6,
|
|
783
|
-
_0x480495: 0x227
|
|
784
|
-
}, _0xec4537 = {
|
|
785
|
-
_0xd294a6: 0xc9,
|
|
786
|
-
_0xc365f: 0x136
|
|
787
|
-
}, _0x283a68 = {
|
|
788
|
-
_0x165c84: 0x18b,
|
|
789
|
-
_0x2e8811: 0x11c
|
|
790
|
-
}, _0xb4c1b9 = {
|
|
791
|
-
_0x46a919: 0x142,
|
|
792
|
-
_0x20a4c4: 0x18b,
|
|
793
|
-
_0x148656: 0x136
|
|
794
|
-
}, _0x59e08d = { _0x2846b0: 0x17e }, _0x551915 = {
|
|
795
|
-
_0x3fc97c: 0x20f,
|
|
796
|
-
_0x5717e6: 0x1f6,
|
|
797
|
-
_0x25aa35: 0x1da,
|
|
798
|
-
_0xc2aaca: 0x241,
|
|
799
|
-
_0x1fcb76: 0x1dd,
|
|
800
|
-
_0x4196cd: 0x17e
|
|
801
|
-
}, _0x381726 = {
|
|
802
|
-
_0x53310e: 0x21e,
|
|
803
|
-
_0x2a61f4: 0x241,
|
|
804
|
-
_0x2017fd: 0x23e,
|
|
805
|
-
_0x5ebb44: 0x244,
|
|
806
|
-
_0x29e93f: 0x1ab,
|
|
807
|
-
_0x1b459c: 0x1ab,
|
|
808
|
-
_0x1bf176: 0xd6,
|
|
809
|
-
_0x177d7f: 0x213,
|
|
810
|
-
_0x35c5dc: 0x111,
|
|
811
|
-
_0x50c39a: 0x111
|
|
812
|
-
}, _0x3eac0a = { _0x40cae9: 0x207 }, _0x112c72 = {
|
|
813
|
-
_0x3f019b: 0x24a,
|
|
814
|
-
_0x18dee0: 0x213,
|
|
815
|
-
_0x2438f3: 0xfe,
|
|
816
|
-
_0x59dc70: 0x1de,
|
|
817
|
-
_0x103a51: 0x241,
|
|
818
|
-
_0x3f8e45: 0x1de
|
|
819
|
-
}, _0x2d1d6b = {
|
|
820
|
-
_0x46c518: 0x1ec,
|
|
821
|
-
_0x1c4ece: 0xfe,
|
|
822
|
-
_0x304329: 0x213,
|
|
823
|
-
_0x382cdc: 0x241,
|
|
824
|
-
_0x2d8a5d: 0x120
|
|
825
|
-
}, _0x31bb53 = { _0x196403: 0xf2 }, _0x2ee169 = {
|
|
826
|
-
_0xddcc7f: 0xd6,
|
|
827
|
-
_0x339fc2: 0x18b,
|
|
828
|
-
_0x4fed3e: 0x136,
|
|
829
|
-
_0x29c7ba: 0x17e,
|
|
830
|
-
_0xf80f5f: 0x213,
|
|
831
|
-
_0x1e9a65: 0x125
|
|
832
|
-
}, _0x497d11 = {
|
|
833
|
-
_0x2364db: 0x215,
|
|
834
|
-
_0x1020e1: 0x18b,
|
|
835
|
-
_0x412edb: 0x24b,
|
|
836
|
-
_0x3bbe1f: 0x136,
|
|
837
|
-
_0x1ce408: 0xc9
|
|
838
|
-
}, _0x3889cf = {
|
|
839
|
-
_0x3486a3: 0xcf,
|
|
840
|
-
_0x578086: 0x18b,
|
|
841
|
-
_0x350a1f: 0x219
|
|
842
|
-
}, _0x4bcc63 = {
|
|
843
|
-
_0x2ca1dd: 0x19e,
|
|
844
|
-
_0x4ec5d5: 0x212,
|
|
845
|
-
_0x32c084: 0x201
|
|
846
|
-
}, _0x5eecf3 = {
|
|
847
|
-
_0x5b7f87: 0x19e,
|
|
848
|
-
_0x2e02c9: 0x1bd,
|
|
849
|
-
_0xc90234: 0x212
|
|
850
|
-
}, _0x8ec77 = {
|
|
851
|
-
_0x5acf22: 0x221,
|
|
852
|
-
_0x328a9d: 0x221,
|
|
853
|
-
_0x2223e6: 0xdd,
|
|
854
|
-
_0x772e26: 0x10d,
|
|
855
|
-
_0x4ecb34: 0xc0,
|
|
856
|
-
_0x59ea5b: 0xee,
|
|
857
|
-
_0x531046: 0x1c2
|
|
858
|
-
}, _0x1f9cbb = {
|
|
859
|
-
_0x3204c5: 0x1e0,
|
|
860
|
-
_0x55bc8a: 0x173,
|
|
861
|
-
_0xbc0105: 0x179
|
|
862
|
-
}, _0xbe2db = {
|
|
863
|
-
_0x1a236d: 0x188,
|
|
864
|
-
_0x10149c: 0x1ee,
|
|
865
|
-
_0x5ecfe7: 0x235,
|
|
866
|
-
_0x142c22: 0xc9,
|
|
867
|
-
_0xd2b329: 0x1d7,
|
|
868
|
-
_0x18ef2a: 0x21c
|
|
869
|
-
}, _0x39a66d = _0x1bf962, _0x32b2c2 = _0x44dccf[_0x39a66d(0xeb)] ?? fetch, _0x252e4f = _0x44dccf[_0x39a66d(0x119)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x48e06e = typeof _0x44dccf[_0x39a66d(_0x42f7bf._0x31a65e)] === _0x39a66d(0x186) && _0x44dccf[_0x39a66d(0x130)] > 0x0 ? _0x44dccf[_0x39a66d(0x130)] : 0x0, _0xe3bd7b = _0x44dccf[_0x39a66d(_0x42f7bf._0x72d532)]?.[_0x39a66d(_0x42f7bf._0x339ac8)]() || void 0x0, _0xb89eae = _0x44dccf[_0x39a66d(0x15d)]?.[_0x39a66d(0xdd)]() || void 0x0, _0x28e560 = _0x44dccf[_0x39a66d(0x1dc)] === !![], _0x155fb9 = _0x44dccf[_0x39a66d(_0x42f7bf._0x4fa33b)]?.[_0x39a66d(0xdd)]() || void 0x0, _0x594eb8 = _0x44dccf[_0x39a66d(0x108)]?.['trim']() || void 0x0, _0x543907 = createHeaders(_0x44dccf['daemonApiKey']), _0x475c24 = toHttpBaseUrl(_0x44dccf[_0x39a66d(0x195)]);
|
|
870
|
-
let _0x26a8ae = null;
|
|
871
|
-
const _0x159a1a = new Map();
|
|
872
|
-
let _0x1adced = _0x48e06e, _0x53f57e = _0x48e06e;
|
|
873
|
-
function _0x3faaef(_0x365386) {
|
|
874
|
-
const _0x52c173 = _0x39a66d, _0x97ab55 = _0x365386[_0x52c173(0x235)][_0x52c173(0x12b)]['get'](_0x52c173(0x1f1)) ?? _0x52c173(_0xbe2db._0x1a236d), _0x36407b = _0x365386[_0x52c173(_0xbe2db._0x10149c)]['trim']()[_0x52c173(0x1cf)](/\s+/g, '\x20')[_0x52c173(0x120)](0x0, 0x78) || _0x52c173(0xd5);
|
|
875
|
-
return _0x52c173(0x22c) + _0x365386['requestUrl'] + _0x52c173(0x1cd) + _0x365386[_0x52c173(_0xbe2db._0x5ecfe7)][_0x52c173(_0xbe2db._0x142c22)] + _0x52c173(_0xbe2db._0xd2b329) + _0x97ab55 + _0x52c173(_0xbe2db._0x18ef2a) + _0x36407b + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
876
|
-
}
|
|
877
|
-
async function _0x10b13b(_0x4c7b54, _0x206673) {
|
|
878
|
-
const _0x2d21cd = _0x39a66d, _0x5bb2b2 = Buffer['from'](await _0x206673[_0x2d21cd(_0x1f9cbb._0x3204c5)]())[_0x2d21cd(_0x1f9cbb._0x55bc8a)](_0x2d21cd(_0x1f9cbb._0xbc0105));
|
|
879
|
-
if (!_0x5bb2b2[_0x2d21cd(0xdd)]())
|
|
880
|
-
return {};
|
|
881
|
-
try {
|
|
882
|
-
return JSON[_0x2d21cd(0x154)](_0x5bb2b2);
|
|
883
|
-
} catch {
|
|
884
|
-
throw new Error(_0x3faaef({
|
|
885
|
-
'bodyText': _0x5bb2b2,
|
|
886
|
-
'requestUrl': _0x4c7b54,
|
|
887
|
-
'response': _0x206673
|
|
888
|
-
}));
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
function _0x2b2f55(_0x440861, _0x4961a0) {
|
|
892
|
-
const _0x6db9f1 = _0x39a66d, _0x22fbb6 = typeof _0x4961a0[_0x6db9f1(_0x8ec77._0x5acf22)] === 'string' ? _0x4961a0[_0x6db9f1(_0x8ec77._0x328a9d)][_0x6db9f1(_0x8ec77._0x2223e6)]() : '';
|
|
893
|
-
if (_0x22fbb6)
|
|
894
|
-
return _0x22fbb6;
|
|
895
|
-
const _0x3cb5a3 = Date[_0x6db9f1(_0x8ec77._0x772e26)]();
|
|
896
|
-
for (const [_0x330cf4, _0x5a9590] of _0x159a1a) {
|
|
897
|
-
_0x5a9590[_0x6db9f1(0x14e)] <= _0x3cb5a3 && _0x159a1a[_0x6db9f1(0x18a)](_0x330cf4);
|
|
898
|
-
}
|
|
899
|
-
const _0x29fe9c = {
|
|
900
|
-
..._0x4961a0,
|
|
901
|
-
'idempotency_key': void 0x0
|
|
902
|
-
}, _0x4a400a = createHash(_0x6db9f1(_0x8ec77._0x4ecb34))['update'](_0x440861 + ':' + stableStringify(_0x29fe9c))[_0x6db9f1(0x1aa)](_0x6db9f1(_0x8ec77._0x59ea5b)), _0x1aa18e = _0x440861 + ':' + _0x4a400a, _0x489d5b = _0x159a1a[_0x6db9f1(_0x8ec77._0x531046)](_0x1aa18e);
|
|
903
|
-
if (_0x489d5b)
|
|
904
|
-
return _0x489d5b['value'];
|
|
905
|
-
const _0x1b2dec = _0x6db9f1(0x1b1) + _0x440861 + ':' + randomUUID();
|
|
906
|
-
return _0x159a1a[_0x6db9f1(0x23e)](_0x1aa18e, {
|
|
907
|
-
'expiresAt': _0x3cb5a3 + 0x5 * 0x3c * 0x3e8,
|
|
908
|
-
'value': _0x1b2dec
|
|
909
|
-
}), _0x1b2dec;
|
|
910
|
-
}
|
|
911
|
-
async function _0x558446(_0x5dec4f, _0x50c71a) {
|
|
912
|
-
const _0x9466ac = _0x39a66d, _0x2710ad = new AbortController(), _0x5088b1 = setTimeout(() => _0x2710ad[_0x9466ac(0x116)](), _0x252e4f), _0x4a1ea4 = _0x50c71a?.[_0x9466ac(_0x5eecf3._0x5b7f87)] ? anySignal(_0x50c71a['signal'], _0x2710ad[_0x9466ac(0x19e)]) : _0x2710ad['signal'], _0x33ce7c = '' + _0x475c24 + _0x5dec4f;
|
|
913
|
-
try {
|
|
914
|
-
const _0x253fb8 = await _0x32b2c2(_0x33ce7c, {
|
|
915
|
-
..._0x50c71a,
|
|
916
|
-
'signal': _0x4a1ea4
|
|
917
|
-
}), _0x446718 = await _0x10b13b(_0x33ce7c, _0x253fb8);
|
|
918
|
-
if (!_0x253fb8['ok'] || _0x446718[_0x9466ac(_0x5eecf3._0x2e02c9)] === ![])
|
|
919
|
-
throw new Error(asErrorMessage(_0x446718[_0x9466ac(_0x5eecf3._0xc90234)], 'HTTP\x20' + _0x253fb8['status']));
|
|
920
|
-
return _0x446718;
|
|
921
|
-
} finally {
|
|
922
|
-
clearTimeout(_0x5088b1);
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
async function _0x40ff10(_0x43059e, _0x48114e) {
|
|
926
|
-
const _0x4d5cb6 = _0x39a66d, _0x48df56 = new AbortController(), _0x47d2b7 = setTimeout(() => _0x48df56[_0x4d5cb6(0x116)](), _0x252e4f), _0x2285b5 = _0x48114e?.['signal'] ? anySignal(_0x48114e[_0x4d5cb6(_0x4bcc63._0x2ca1dd)], _0x48df56['signal']) : _0x48df56[_0x4d5cb6(0x19e)], _0x254554 = '' + _0x475c24 + _0x43059e;
|
|
927
|
-
try {
|
|
928
|
-
const _0x41a04a = await _0x32b2c2(_0x254554, {
|
|
929
|
-
..._0x48114e,
|
|
930
|
-
'signal': _0x2285b5
|
|
931
|
-
}), _0x3ff6f7 = await _0x10b13b(_0x254554, _0x41a04a);
|
|
932
|
-
if (!_0x41a04a['ok'])
|
|
933
|
-
throw new Error(asErrorMessage(_0x3ff6f7[_0x4d5cb6(_0x4bcc63._0x4ec5d5)], _0x4d5cb6(_0x4bcc63._0x32c084) + _0x41a04a[_0x4d5cb6(0xc9)]));
|
|
934
|
-
return _0x3ff6f7;
|
|
935
|
-
} finally {
|
|
936
|
-
clearTimeout(_0x47d2b7);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
async function _0x70aa9f(_0x53167b) {
|
|
940
|
-
const _0x1fb772 = _0x39a66d;
|
|
941
|
-
if (!_0xb89eae || _0x53167b <= _0x53f57e)
|
|
942
|
-
return;
|
|
943
|
-
await _0x558446(_0x1fb772(0x1be) + encodeURIComponent(_0xb89eae) + _0x1fb772(_0x3889cf._0x3486a3), {
|
|
944
|
-
'body': JSON[_0x1fb772(_0x3889cf._0x578086)]({ 'lastSeenSeq': _0x53167b }),
|
|
945
|
-
'headers': _0x543907,
|
|
946
|
-
'method': _0x1fb772(_0x3889cf._0x350a1f)
|
|
947
|
-
}), _0x53f57e = _0x53167b;
|
|
948
|
-
}
|
|
949
|
-
async function _0x49db2d(_0x9b7759) {
|
|
950
|
-
const _0x9f0daf = _0x39a66d;
|
|
951
|
-
if (!_0xe3bd7b || !_0x155fb9 || _0x9b7759 <= _0x53f57e)
|
|
952
|
-
return;
|
|
953
|
-
const _0x143aa3 = await _0x32b2c2(_0xe3bd7b + _0x9f0daf(_0x497d11._0x2364db), {
|
|
954
|
-
'body': JSON[_0x9f0daf(_0x497d11._0x1020e1)]({
|
|
955
|
-
'last_seen_seq': _0x9b7759,
|
|
956
|
-
'worker_session_id': _0x155fb9
|
|
957
|
-
}),
|
|
958
|
-
'headers': { 'Content-Type': _0x9f0daf(_0x497d11._0x412edb) },
|
|
959
|
-
'method': _0x9f0daf(_0x497d11._0x3bbe1f)
|
|
960
|
-
});
|
|
961
|
-
if (!_0x143aa3['ok'])
|
|
962
|
-
throw new Error(_0x9f0daf(0x201) + _0x143aa3[_0x9f0daf(_0x497d11._0x1ce408)]);
|
|
963
|
-
_0x53f57e = _0x9b7759;
|
|
964
|
-
}
|
|
965
|
-
async function _0xae6c49(_0x1081a2) {
|
|
966
|
-
const _0xea78be = _0x39a66d, _0x467f0 = parseTarget(_0x1081a2), _0x1bd256 = await _0x558446(_0xea78be(0x1f6) + _0x44dccf[_0xea78be(_0x2ee169._0xddcc7f)] + '/resolve-channel', {
|
|
967
|
-
'body': JSON[_0xea78be(_0x2ee169._0x339fc2)]({ 'target': _0x467f0[_0xea78be(0x1ca)] }),
|
|
968
|
-
'headers': _0x543907,
|
|
969
|
-
'method': _0xea78be(_0x2ee169._0x4fed3e)
|
|
970
|
-
});
|
|
971
|
-
return {
|
|
972
|
-
'channelId': _0x1bd256[_0xea78be(_0x2ee169._0x29c7ba)]?.[_0xea78be(0x1c5)] ?? '',
|
|
973
|
-
'target': _0x467f0[_0xea78be(_0x2ee169._0xf80f5f)],
|
|
974
|
-
'task': _0x1bd256[_0xea78be(0x17e)]?.[_0xea78be(_0x2ee169._0x1e9a65)],
|
|
975
|
-
'threadId': _0x1bd256[_0xea78be(0x17e)]?.[_0xea78be(0x241)],
|
|
976
|
-
'threadNumber': _0x1bd256['data']?.['threadNumber']
|
|
977
|
-
};
|
|
978
|
-
}
|
|
979
|
-
async function _0x3d0214(_0x2ac276 = {}) {
|
|
980
|
-
const _0x5e36fd = {
|
|
981
|
-
_0x24c713: 0xd6,
|
|
982
|
-
_0x38d701: 0x1fc,
|
|
983
|
-
_0x14ca34: 0x100,
|
|
984
|
-
_0x49d5bd: 0x22d,
|
|
985
|
-
_0xd50715: 0x18c
|
|
986
|
-
}, _0x3b07eb = _0x39a66d;
|
|
987
|
-
if (!_0x2ac276[_0x3b07eb(_0x31bb53._0x196403)] && _0x26a8ae)
|
|
988
|
-
return _0x26a8ae;
|
|
989
|
-
return _0x26a8ae = (async () => {
|
|
990
|
-
const _0x1a020d = _0x3b07eb, _0x412046 = await _0x558446(_0x1a020d(0x1f6) + _0x44dccf[_0x1a020d(_0x5e36fd._0x24c713)] + _0x1a020d(_0x5e36fd._0x38d701), {
|
|
991
|
-
'headers': _0x543907,
|
|
992
|
-
'method': 'GET'
|
|
993
|
-
}), _0x3bde47 = _0x412046['data']?.[_0x1a020d(0x223)] ?? [], _0x382d7f = _0x3bde47[_0x1a020d(0xcc)](_0x1bb914 => _0x1bb914[_0x1a020d(0x202)]?.[_0x1a020d(0xe8)] === _0x1a020d(0x19b))[_0x1a020d(_0x5e36fd._0x14ca34)](_0x18e6d8 => ({
|
|
994
|
-
'id': _0x34f1c8(_0x18e6d8),
|
|
995
|
-
'name': _0x3fa775(_0x18e6d8)
|
|
996
|
-
}))['filter'](_0x277cdb => _0x277cdb['id']), _0x3e586d = _0x3bde47[_0x1a020d(0xcc)](_0x261cd9 => _0x261cd9[_0x1a020d(0x202)]?.[_0x1a020d(0xe8)] !== 'agent')['map'](_0x1e3c8f => ({
|
|
997
|
-
'id': _0x34f1c8(_0x1e3c8f),
|
|
998
|
-
'name': _0x3fa775(_0x1e3c8f)
|
|
999
|
-
}))[_0x1a020d(0xcc)](_0x178fc7 => _0x178fc7['id']), _0x170b97 = _0x412046[_0x1a020d(0x17e)]?.[_0x1a020d(0x18c)]['id'] ?? '';
|
|
1000
|
-
return {
|
|
1001
|
-
'agents': _0x382d7f,
|
|
1002
|
-
'channels': _0x412046[_0x1a020d(0x17e)]?.[_0x1a020d(_0x5e36fd._0x49d5bd)] ?? [],
|
|
1003
|
-
'humans': _0x3e586d,
|
|
1004
|
-
'serverId': _0x170b97,
|
|
1005
|
-
'serverName': _0x412046['data']?.[_0x1a020d(_0x5e36fd._0xd50715)][_0x1a020d(0x230)] ?? _0x170b97
|
|
1006
|
-
};
|
|
1007
|
-
})()[_0x3b07eb(0x1ef)](_0x2c50a6 => {
|
|
1008
|
-
_0x26a8ae = null;
|
|
1009
|
-
throw _0x2c50a6;
|
|
1010
|
-
}), _0x26a8ae;
|
|
1011
|
-
}
|
|
1012
|
-
function _0x11b458(_0x241920, _0x376075) {
|
|
1013
|
-
const _0x3d4ca6 = _0x39a66d;
|
|
1014
|
-
return _0x376075[_0x3d4ca6(0xf4)][_0x3d4ca6(0x191)](_0x214e1c => _0x214e1c['id'] === _0x241920 || _0x214e1c['name'] === _0x241920) ? _0x3d4ca6(0x19b) : 'human';
|
|
1015
|
-
}
|
|
1016
|
-
function _0x1f0f41(_0x65e3cf) {
|
|
1017
|
-
const _0x2ca231 = _0x39a66d;
|
|
1018
|
-
if (_0x65e3cf['threadNumber'] != null)
|
|
1019
|
-
return _0x65e3cf['channelTarget'] + ':t' + _0x65e3cf[_0x2ca231(_0x2d1d6b._0x46c518)];
|
|
1020
|
-
if (_0x65e3cf[_0x2ca231(_0x2d1d6b._0x1c4ece)])
|
|
1021
|
-
return _0x65e3cf['channelTarget'] + ':' + _0x65e3cf[_0x2ca231(0xfe)];
|
|
1022
|
-
if (_0x65e3cf[_0x2ca231(0x241)])
|
|
1023
|
-
return _0x65e3cf[_0x2ca231(_0x2d1d6b._0x304329)] + ':' + _0x65e3cf[_0x2ca231(_0x2d1d6b._0x382cdc)][_0x2ca231(_0x2d1d6b._0x2d8a5d)](0x0, 0x8);
|
|
1024
|
-
return _0x65e3cf[_0x2ca231(0x213)];
|
|
1025
|
-
}
|
|
1026
|
-
function _0xccc5d9(_0x18d5f6, _0x113ecd) {
|
|
1027
|
-
const _0x2e0902 = _0x39a66d;
|
|
1028
|
-
try {
|
|
1029
|
-
const _0x8f5015 = parseTarget(_0x18d5f6);
|
|
1030
|
-
if (_0x8f5015[_0x2e0902(0x11b)] !== _0x2e0902(_0x112c72._0x3f019b) || _0x8f5015['channelTarget'] !== _0x113ecd[_0x2e0902(_0x112c72._0x18dee0)])
|
|
1031
|
-
return ![];
|
|
1032
|
-
if (_0x113ecd['threadNumber'] != null && _0x8f5015[_0x2e0902(0x1de)] === 't' + _0x113ecd[_0x2e0902(0x1ec)])
|
|
1033
|
-
return !![];
|
|
1034
|
-
if (_0x113ecd[_0x2e0902(_0x112c72._0x2438f3)])
|
|
1035
|
-
return _0x8f5015[_0x2e0902(_0x112c72._0x59dc70)] === _0x113ecd[_0x2e0902(0xfe)] || _0x113ecd[_0x2e0902(0xfe)]['startsWith'](_0x8f5015['threadShortId']);
|
|
1036
|
-
if (_0x113ecd[_0x2e0902(_0x112c72._0x103a51)])
|
|
1037
|
-
return _0x8f5015[_0x2e0902(_0x112c72._0x3f8e45)] === _0x113ecd[_0x2e0902(0x241)] || _0x113ecd[_0x2e0902(0x241)]['startsWith'](_0x8f5015[_0x2e0902(_0x112c72._0x3f8e45)]);
|
|
1038
|
-
return ![];
|
|
1039
|
-
} catch {
|
|
1040
|
-
return ![];
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
function _0x34f1c8(_0xe8c6f9) {
|
|
1044
|
-
const _0x4312ac = _0x39a66d;
|
|
1045
|
-
return _0xe8c6f9[_0x4312ac(0xed)]?.[_0x4312ac(_0x3eac0a._0x40cae9)] ?? _0xe8c6f9[_0x4312ac(0x202)]?.['id'] ?? _0xe8c6f9['participantId'] ?? '';
|
|
1046
|
-
}
|
|
1047
|
-
function _0x3fa775(_0x5d65cb) {
|
|
1048
|
-
const _0x4ae90b = _0x39a66d;
|
|
1049
|
-
return _0x5d65cb['participant']?.[_0x4ae90b(0x230)] ?? _0x34f1c8(_0x5d65cb);
|
|
1050
|
-
}
|
|
1051
|
-
async function _0x11b374(_0x3c1026) {
|
|
1052
|
-
const _0x3ab8ea = _0x39a66d, _0x9b29f8 = Math['min'](_0x3c1026[_0x3ab8ea(_0x381726._0x53310e)] ?? 0x32, 0x64), _0x2991a7 = await _0x3d0214(), _0x5811cd = new URLSearchParams();
|
|
1053
|
-
_0x5811cd['set'](_0x3ab8ea(_0x381726._0x53310e), String(_0x9b29f8));
|
|
1054
|
-
_0x3c1026['threadId'] ? (_0x5811cd['set'](_0x3ab8ea(_0x381726._0x2a61f4), _0x3c1026[_0x3ab8ea(0x241)]), _0x5811cd[_0x3ab8ea(0x23e)](_0x3ab8ea(0x1c5), _0x3c1026[_0x3ab8ea(0x1c5)])) : _0x5811cd['set'](_0x3ab8ea(0x1c5), _0x3c1026[_0x3ab8ea(0x1c5)]);
|
|
1055
|
-
_0x3c1026['before'] && _0x5811cd[_0x3ab8ea(_0x381726._0x2017fd)]('cursor', String(_0x3c1026[_0x3ab8ea(_0x381726._0x5ebb44)]));
|
|
1056
|
-
_0x3c1026[_0x3ab8ea(0x1ab)] !== void 0x0 && _0x5811cd[_0x3ab8ea(0x23e)](_0x3ab8ea(_0x381726._0x29e93f), String(_0x3c1026[_0x3ab8ea(_0x381726._0x1b459c)]));
|
|
1057
|
-
const _0x283c02 = await _0x558446(_0x3ab8ea(0x1f6) + _0x44dccf[_0x3ab8ea(_0x381726._0x1bf176)] + _0x3ab8ea(0x1d6) + _0x5811cd['toString'](), {
|
|
1058
|
-
'headers': _0x543907,
|
|
1059
|
-
'method': 'GET'
|
|
1060
|
-
}), _0x5a0752 = (_0x283c02[_0x3ab8ea(0x17e)] ?? [])[_0x3ab8ea(0x100)](_0xedb63f => ({
|
|
1061
|
-
'attachments': (_0xedb63f['attachments'] ?? [])[_0x3ab8ea(0x100)](_0x664a66 => ({
|
|
1062
|
-
'filename': _0x664a66[_0x3ab8ea(0x102)] ?? _0x664a66['id'],
|
|
1063
|
-
'id': _0x664a66['id']
|
|
1064
|
-
})),
|
|
1065
|
-
'content': _0xedb63f[_0x3ab8ea(0x1a2)] ?? '',
|
|
1066
|
-
'createdAt': _0xedb63f[_0x3ab8ea(0xe4)],
|
|
1067
|
-
'messageId': _0xedb63f['id'],
|
|
1068
|
-
'senderName': _0xedb63f[_0x3ab8ea(0x112)],
|
|
1069
|
-
'senderType': _0x11b458(_0xedb63f[_0x3ab8ea(0x112)], _0x2991a7),
|
|
1070
|
-
'seq': _0xedb63f[_0x3ab8ea(0x220)] ?? 0x0
|
|
1071
|
-
}));
|
|
1072
|
-
return {
|
|
1073
|
-
'channel': _0x3c1026[_0x3ab8ea(_0x381726._0x177d7f)],
|
|
1074
|
-
'hasMore': _0x283c02[_0x3ab8ea(_0x381726._0x35c5dc)]?.['hasMore'] ?? ![],
|
|
1075
|
-
'messages': _0x5a0752,
|
|
1076
|
-
'nextCursor': _0x283c02[_0x3ab8ea(_0x381726._0x50c39a)]?.['cursor']
|
|
1077
|
-
};
|
|
1078
|
-
}
|
|
1079
|
-
return {
|
|
1080
|
-
async 'sendMessage'(_0x1a7145) {
|
|
1081
|
-
const _0x6a3b9f = _0x39a66d, _0x1bec54 = await _0xae6c49(_0x1a7145['target']), _0x2d63c1 = _0x1a7145[_0x6a3b9f(_0x551915._0x3fc97c)]['includes']('@') ? extractMentionedParticipantIds(_0x1a7145[_0x6a3b9f(_0x551915._0x3fc97c)], await _0x3d0214()) : [], _0x5d194a = await _0x558446(_0x6a3b9f(_0x551915._0x5717e6) + _0x44dccf[_0x6a3b9f(0xd6)] + '/send', {
|
|
1082
|
-
'body': JSON[_0x6a3b9f(0x18b)]({
|
|
1083
|
-
'attachment_ids': _0x1a7145[_0x6a3b9f(0x132)],
|
|
1084
|
-
'bodyMarkdown': _0x1a7145['content'],
|
|
1085
|
-
'channelId': _0x1bec54['channelId'],
|
|
1086
|
-
..._0x2d63c1[_0x6a3b9f(_0x551915._0x25aa35)] > 0x0 ? { 'mentionedParticipantIds': _0x2d63c1 } : {},
|
|
1087
|
-
'threadId': _0x1bec54[_0x6a3b9f(_0x551915._0xc2aaca)],
|
|
1088
|
-
..._0x1a7145['visibility'] ? { 'visibility': _0x1a7145[_0x6a3b9f(_0x551915._0x1fcb76)] } : {}
|
|
1089
|
-
}),
|
|
1090
|
-
'headers': _0x543907,
|
|
1091
|
-
'method': _0x6a3b9f(0x136)
|
|
1092
|
-
});
|
|
1093
|
-
return { 'messageId': _0x5d194a[_0x6a3b9f(_0x551915._0x4196cd)]?.['id'] ?? '' };
|
|
1094
|
-
},
|
|
1095
|
-
async 'listSchedules'() {
|
|
1096
|
-
const _0x59e454 = _0x39a66d, _0x13839a = await _0x558446(_0x59e454(0x237), {
|
|
1097
|
-
'headers': _0x543907,
|
|
1098
|
-
'method': _0x59e454(0x167)
|
|
1099
|
-
});
|
|
1100
|
-
return _0x13839a[_0x59e454(_0x59e08d._0x2846b0)] ?? [];
|
|
1101
|
-
},
|
|
1102
|
-
async 'claimScheduleRun'(_0x5866d2) {
|
|
1103
|
-
const _0x33e978 = _0x39a66d, _0x29a9c2 = await _0x558446(_0x33e978(_0xb4c1b9._0x46a919), {
|
|
1104
|
-
'body': JSON[_0x33e978(_0xb4c1b9._0x20a4c4)](_0x5866d2),
|
|
1105
|
-
'headers': _0x543907,
|
|
1106
|
-
'method': _0x33e978(_0xb4c1b9._0x148656)
|
|
1107
|
-
});
|
|
1108
|
-
return _0x29a9c2[_0x33e978(0x17e)] ?? {
|
|
1109
|
-
'granted': ![],
|
|
1110
|
-
'runId': null,
|
|
1111
|
-
'schedule': null,
|
|
1112
|
-
'scheduledFor': _0x5866d2['scheduledFor']
|
|
1113
|
-
};
|
|
1114
|
-
},
|
|
1115
|
-
async 'startScheduleRun'(_0x3f4edf) {
|
|
1116
|
-
const _0x2e3e23 = _0x39a66d, _0x2e4d73 = await _0x558446(_0x2e3e23(0x194) + encodeURIComponent(_0x3f4edf['runId']) + _0x2e3e23(0xde), {
|
|
1117
|
-
'body': JSON[_0x2e3e23(_0x283a68._0x165c84)]({}),
|
|
1118
|
-
'headers': _0x543907,
|
|
1119
|
-
'method': _0x2e3e23(0x136)
|
|
1120
|
-
});
|
|
1121
|
-
return _0x2e4d73[_0x2e3e23(0x17e)] ?? {
|
|
1122
|
-
'claimedByDaemonId': '',
|
|
1123
|
-
'id': _0x3f4edf[_0x2e3e23(_0x283a68._0x2e8811)],
|
|
1124
|
-
'scheduleId': '',
|
|
1125
|
-
'status': 'running'
|
|
1126
|
-
};
|
|
1127
|
-
},
|
|
1128
|
-
async 'finishScheduleRun'(_0x44b3ae) {
|
|
1129
|
-
const _0x1288b9 = _0x39a66d, _0x5d6735 = await _0x558446('/api/internal/schedules/' + encodeURIComponent(_0x44b3ae[_0x1288b9(0x11c)]) + _0x1288b9(0x1ed), {
|
|
1130
|
-
'body': JSON['stringify']({
|
|
1131
|
-
'error': _0x44b3ae[_0x1288b9(0x212)],
|
|
1132
|
-
'resultJson': _0x44b3ae['resultJson'],
|
|
1133
|
-
'status': _0x44b3ae[_0x1288b9(_0xec4537._0xd294a6)]
|
|
1134
|
-
}),
|
|
1135
|
-
'headers': _0x543907,
|
|
1136
|
-
'method': _0x1288b9(_0xec4537._0xc365f)
|
|
1137
|
-
});
|
|
1138
|
-
return _0x5d6735[_0x1288b9(0x17e)] ?? {
|
|
1139
|
-
'nextRunAt': null,
|
|
1140
|
-
'run': {
|
|
1141
|
-
'claimedByDaemonId': '',
|
|
1142
|
-
'id': _0x44b3ae[_0x1288b9(0x11c)],
|
|
1143
|
-
'scheduleId': '',
|
|
1144
|
-
'status': _0x44b3ae[_0x1288b9(_0xec4537._0xd294a6)]
|
|
1145
|
-
}
|
|
1146
|
-
};
|
|
1147
|
-
},
|
|
1148
|
-
async 'listTasks'(_0x5b9b77) {
|
|
1149
|
-
const _0xa9a6d0 = _0x39a66d, _0x4396dc = new URLSearchParams();
|
|
1150
|
-
return _0x4396dc[_0xa9a6d0(_0x446692._0x5abe4f)](_0xa9a6d0(_0x446692._0x333570), _0x5b9b77['channel']), _0x5b9b77[_0xa9a6d0(_0x446692._0x1039d5)] && _0x4396dc[_0xa9a6d0(0x23e)](_0xa9a6d0(_0x446692._0x1039d5), _0x5b9b77[_0xa9a6d0(0xc9)]), _0x40ff10(_0xa9a6d0(_0x446692._0x2a7374) + _0x44dccf['agentId'] + _0xa9a6d0(_0x446692._0x480495) + _0x4396dc[_0xa9a6d0(0x173)](), {
|
|
1151
|
-
'headers': _0x543907,
|
|
1152
|
-
'method': _0xa9a6d0(0x167)
|
|
1153
|
-
});
|
|
1154
|
-
},
|
|
1155
|
-
async 'createTasks'(_0x3546bd) {
|
|
1156
|
-
const _0x11fe7f = _0x39a66d;
|
|
1157
|
-
return _0x40ff10(_0x11fe7f(0x1f6) + _0x44dccf[_0x11fe7f(0xd6)] + _0x11fe7f(0x103), {
|
|
1158
|
-
'body': JSON[_0x11fe7f(0x18b)]({
|
|
1159
|
-
..._0x3546bd,
|
|
1160
|
-
'idempotency_key': _0x2b2f55('create_tasks', _0x3546bd)
|
|
1161
|
-
}),
|
|
1162
|
-
'headers': _0x543907,
|
|
1163
|
-
'method': _0x11fe7f(0x136)
|
|
1164
|
-
});
|
|
1165
|
-
},
|
|
1166
|
-
async 'claimTasks'(_0x1bc7f3) {
|
|
1167
|
-
const _0x5bcb20 = _0x39a66d;
|
|
1168
|
-
return _0x40ff10('/internal/agent/' + _0x44dccf[_0x5bcb20(0xd6)] + _0x5bcb20(_0x484538._0x5adf45), {
|
|
1169
|
-
'body': JSON[_0x5bcb20(_0x484538._0x246d8f)]({
|
|
1170
|
-
..._0x1bc7f3,
|
|
1171
|
-
'idempotency_key': _0x2b2f55(_0x5bcb20(0x193), _0x1bc7f3)
|
|
1172
|
-
}),
|
|
1173
|
-
'headers': _0x543907,
|
|
1174
|
-
'method': _0x5bcb20(_0x484538._0x3e4a84)
|
|
1175
|
-
});
|
|
1176
|
-
},
|
|
1177
|
-
async 'unclaimTask'(_0x1ae8ef) {
|
|
1178
|
-
const _0x541a77 = _0x39a66d;
|
|
1179
|
-
return _0x40ff10('/internal/agent/' + _0x44dccf['agentId'] + _0x541a77(0xe2), {
|
|
1180
|
-
'body': JSON['stringify']({
|
|
1181
|
-
..._0x1ae8ef,
|
|
1182
|
-
'idempotency_key': _0x2b2f55(_0x541a77(_0x536dd3._0x9fa46c), _0x1ae8ef)
|
|
1183
|
-
}),
|
|
1184
|
-
'headers': _0x543907,
|
|
1185
|
-
'method': 'POST'
|
|
1186
|
-
});
|
|
1187
|
-
},
|
|
1188
|
-
async 'updateTaskStatus'(_0x5c1b5e) {
|
|
1189
|
-
const _0x5434ed = _0x39a66d;
|
|
1190
|
-
return _0x40ff10(_0x5434ed(_0x56466f._0x5bbe9d) + _0x44dccf[_0x5434ed(0xd6)] + _0x5434ed(0x114), {
|
|
1191
|
-
'body': JSON[_0x5434ed(_0x56466f._0x4ca894)]({
|
|
1192
|
-
..._0x5c1b5e,
|
|
1193
|
-
'idempotency_key': _0x2b2f55('update_task_status', _0x5c1b5e)
|
|
1194
|
-
}),
|
|
1195
|
-
'headers': _0x543907,
|
|
1196
|
-
'method': _0x5434ed(_0x56466f._0x38d5be)
|
|
1197
|
-
});
|
|
1198
|
-
},
|
|
1199
|
-
async 'uploadFile'(_0x35a0bc) {
|
|
1200
|
-
const _0xb6b667 = _0x39a66d, _0x34c17a = await _0xae6c49(_0x35a0bc[_0xb6b667(0x13c)]);
|
|
1201
|
-
if (_0x34c17a[_0xb6b667(_0xb16b97._0x207e63)])
|
|
1202
|
-
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1203
|
-
const _0x3a46a0 = await _0x558446(_0xb6b667(_0xb16b97._0x26ac72) + _0x44dccf[_0xb6b667(0xd6)] + _0xb6b667(0x129), {
|
|
1204
|
-
'body': JSON[_0xb6b667(0x18b)]({
|
|
1205
|
-
'channel': _0x34c17a[_0xb6b667(0x1ca)],
|
|
1206
|
-
'contentBase64': _0x35a0bc[_0xb6b667(_0xb16b97._0x439233)],
|
|
1207
|
-
'contentType': _0x35a0bc['contentType'],
|
|
1208
|
-
'originalFilename': _0x35a0bc[_0xb6b667(_0xb16b97._0x5f3900)]
|
|
1209
|
-
}),
|
|
1210
|
-
'headers': _0x543907,
|
|
1211
|
-
'method': _0xb6b667(_0xb16b97._0x2179fa)
|
|
1212
|
-
});
|
|
1213
|
-
return {
|
|
1214
|
-
'attachmentId': _0x3a46a0['data']?.['id'] ?? '',
|
|
1215
|
-
'filename': _0x3a46a0['data']?.[_0xb6b667(_0xb16b97._0x299a7c)] ?? _0x35a0bc['filename'],
|
|
1216
|
-
'sizeBytes': _0x3a46a0[_0xb6b667(0x17e)]?.['sizeBytes'] ?? 0x0
|
|
1217
|
-
};
|
|
1218
|
-
},
|
|
1219
|
-
async 'downloadAttachment'(_0xf1d67a) {
|
|
1220
|
-
const _0x11a779 = _0x39a66d, _0x16e10b = await _0x558446(_0x11a779(0x1e3) + _0xf1d67a, {
|
|
1221
|
-
'headers': _0x543907,
|
|
1222
|
-
'method': _0x11a779(0x167)
|
|
1223
|
-
}), _0x493638 = new AbortController(), _0x3d6c4d = setTimeout(() => _0x493638[_0x11a779(0x116)](), _0x252e4f);
|
|
1224
|
-
try {
|
|
1225
|
-
const _0x3b7ccc = await _0x32b2c2(_0x475c24 + _0x11a779(_0x1d337a._0x14e19e) + _0xf1d67a + _0x11a779(_0x1d337a._0x2cdf93), {
|
|
1226
|
-
'headers': _0x543907,
|
|
1227
|
-
'method': _0x11a779(_0x1d337a._0x14db2e),
|
|
1228
|
-
'signal': _0x493638[_0x11a779(_0x1d337a._0x44a05e)]
|
|
1229
|
-
});
|
|
1230
|
-
if (!_0x3b7ccc['ok'])
|
|
1231
|
-
throw new Error(_0x11a779(0x201) + _0x3b7ccc[_0x11a779(_0x1d337a._0x3925eb)]);
|
|
1232
|
-
return {
|
|
1233
|
-
'contentType': _0x16e10b[_0x11a779(0x17e)]?.['contentType'] ?? _0x3b7ccc[_0x11a779(0x12b)][_0x11a779(0x1c2)]('content-type') ?? _0x11a779(0x1f9),
|
|
1234
|
-
'data': Buffer[_0x11a779(0x211)](await _0x3b7ccc[_0x11a779(_0x1d337a._0x4ce0ff)]()),
|
|
1235
|
-
'originalFilename': _0x16e10b['data']?.['originalFilename']
|
|
1236
|
-
};
|
|
1237
|
-
} finally {
|
|
1238
|
-
clearTimeout(_0x3d6c4d);
|
|
1239
|
-
}
|
|
1240
|
-
},
|
|
1241
|
-
async 'listServer'() {
|
|
1242
|
-
return _0x3d0214({ 'forceRefresh': !![] });
|
|
1243
|
-
},
|
|
1244
|
-
async 'readHistory'(_0x38837f) {
|
|
1245
|
-
const _0x250f83 = _0x39a66d, _0x2d0df3 = await _0xae6c49(_0x38837f[_0x250f83(0x13c)]);
|
|
1246
|
-
return _0x11b374({
|
|
1247
|
-
'after': _0x38837f[_0x250f83(_0x5197d5._0x2ea6f0)],
|
|
1248
|
-
'before': _0x38837f[_0x250f83(_0x5197d5._0x4905b0)],
|
|
1249
|
-
'channelId': _0x2d0df3[_0x250f83(0x1c5)],
|
|
1250
|
-
'channelTarget': _0x2d0df3[_0x250f83(0x1ca)],
|
|
1251
|
-
'limit': _0x38837f['limit'],
|
|
1252
|
-
'threadId': _0x2d0df3[_0x250f83(0x241)]
|
|
1253
|
-
});
|
|
1254
|
-
},
|
|
1255
|
-
'resolveTarget': _0xae6c49,
|
|
1256
|
-
async 'checkMessages'() {
|
|
1257
|
-
const _0x566d76 = {
|
|
1258
|
-
_0x41f76a: 0xf1,
|
|
1259
|
-
_0x50a331: 0x1e7,
|
|
1260
|
-
_0x5aaffe: 0x1c5
|
|
1261
|
-
}, _0x53d3bb = _0x39a66d, _0x147bc6 = new URLSearchParams();
|
|
1262
|
-
_0x147bc6[_0x53d3bb(_0x26ac23._0x4f43c6)](_0x53d3bb(0x1b4), String(_0x1adced));
|
|
1263
|
-
const _0x2e442e = _0x147bc6[_0x53d3bb(_0x26ac23._0x347ddf)](), _0x563ec3 = await _0x558446(_0x53d3bb(0x1f6) + _0x44dccf[_0x53d3bb(0xd6)] + '/receive' + (_0x2e442e ? '?' + _0x2e442e : ''), {
|
|
1264
|
-
'headers': _0x543907,
|
|
1265
|
-
'method': _0x53d3bb(_0x26ac23._0xd3f0fd)
|
|
1266
|
-
}), _0x2a896f = _0x563ec3[_0x53d3bb(0x17e)] ?? [], _0x257887 = _0x563ec3['meta']?.[_0x53d3bb(0x122)], _0x3b4e53 = _0x257887 !== void 0x0 ? Math[_0x53d3bb(0x15b)](_0x1adced, _0x257887) : _0x2a896f[_0x53d3bb(0x1da)] > 0x0 ? Math[_0x53d3bb(0x15b)](_0x1adced, _0x2a896f[_0x2a896f['length'] - 0x1][_0x53d3bb(_0x26ac23._0x37261e)]) : _0x1adced, _0x1012dc = _0x2a896f['filter'](_0x38d5ff => _0x38d5ff[_0x53d3bb(0x160)] === 'message'), _0x3c1da4 = _0x594eb8 === void 0x0 && _0x28e560;
|
|
1267
|
-
let _0x88755b = await _0x3d0214(), _0x2fac11 = new Map(_0x88755b[_0x53d3bb(0x22d)][_0x53d3bb(0x100)](_0x12be10 => [
|
|
1268
|
-
_0x12be10['id'],
|
|
1269
|
-
_0x12be10
|
|
1270
|
-
]));
|
|
1271
|
-
const _0x5a86f9 = _0x1012dc[_0x53d3bb(_0x26ac23._0x528318)](_0x34a8ed => {
|
|
1272
|
-
const _0xd56e48 = _0x53d3bb, _0x19d897 = asRecord(_0x34a8ed[_0xd56e48(_0x566d76._0x41f76a)]), _0x204570 = typeof _0x19d897?.[_0xd56e48(0x1c5)] === _0xd56e48(_0x566d76._0x50a331) ? _0x19d897[_0xd56e48(_0x566d76._0x5aaffe)] : '';
|
|
1273
|
-
return Boolean(_0x204570) && !_0x2fac11[_0xd56e48(0x1b8)](_0x204570);
|
|
1274
|
-
});
|
|
1275
|
-
_0x5a86f9 && (_0x88755b = await _0x3d0214({ 'forceRefresh': !![] }), _0x2fac11 = new Map(_0x88755b[_0x53d3bb(0x22d)][_0x53d3bb(0x100)](_0x4e8e6b => [
|
|
1276
|
-
_0x4e8e6b['id'],
|
|
1277
|
-
_0x4e8e6b
|
|
1278
|
-
])));
|
|
1279
|
-
const _0x39e2fe = new Map();
|
|
1280
|
-
for (const _0x2ed97e of _0x1012dc) {
|
|
1281
|
-
const _0x239bde = asRecord(_0x2ed97e[_0x53d3bb(_0x26ac23._0x4bb46f)]), _0x436830 = typeof _0x239bde[_0x53d3bb(_0x26ac23._0x340ab1)] === _0x53d3bb(0x1e7) ? _0x239bde['channelId'] : '';
|
|
1282
|
-
if (!_0x436830)
|
|
1283
|
-
continue;
|
|
1284
|
-
const _0x20fc0f = typeof _0x239bde[_0x53d3bb(0x241)] === _0x53d3bb(_0x26ac23._0x4ba328) ? _0x239bde['threadId'] : void 0x0, _0x2173c7 = typeof _0x239bde[_0x53d3bb(0xfe)] === _0x53d3bb(0x1e7) ? _0x239bde[_0x53d3bb(_0x26ac23._0x151897)] : void 0x0, _0x1d18bc = typeof _0x239bde[_0x53d3bb(_0x26ac23._0x4d390a)] === _0x53d3bb(0x186) && Number[_0x53d3bb(_0x26ac23._0x520d40)](_0x239bde[_0x53d3bb(_0x26ac23._0x235da3)]) ? _0x239bde[_0x53d3bb(_0x26ac23._0x235da3)] : void 0x0, _0x207eb4 = Boolean(_0x20fc0f && (!_0x2173c7 || _0x2ed97e[_0x53d3bb(0x157)] !== _0x2173c7)), _0x59d183 = _0x207eb4 ? _0x436830 + ':' + _0x20fc0f : _0x436830, _0x2c569e = _0x39e2fe['get'](_0x59d183) ?? {
|
|
1285
|
-
'aggregateIds': [],
|
|
1286
|
-
'channelId': _0x436830,
|
|
1287
|
-
'entries': new Map(),
|
|
1288
|
-
'isThreadReply': _0x207eb4,
|
|
1289
|
-
'rootMessageId': _0x2173c7,
|
|
1290
|
-
'threadNumber': _0x1d18bc,
|
|
1291
|
-
'threadId': _0x207eb4 ? _0x20fc0f : void 0x0
|
|
1292
|
-
};
|
|
1293
|
-
_0x2c569e[_0x53d3bb(_0x26ac23._0x235da3)] == null && _0x1d18bc != null && (_0x2c569e['threadNumber'] = _0x1d18bc), !_0x2c569e['rootMessageId'] && _0x2173c7 && (_0x2c569e[_0x53d3bb(_0x26ac23._0x151897)] = _0x2173c7), _0x2c569e[_0x53d3bb(_0x26ac23._0x12aa21)][_0x53d3bb(0x10f)](_0x2ed97e[_0x53d3bb(0x157)]), _0x2c569e['entries'][_0x53d3bb(0x23e)](_0x2ed97e[_0x53d3bb(0x157)], {
|
|
1294
|
-
'payloadJson': _0x2ed97e['payloadJson'],
|
|
1295
|
-
'seq': _0x2ed97e[_0x53d3bb(0x209)]
|
|
1296
|
-
}), _0x39e2fe[_0x53d3bb(_0x26ac23._0x4f43c6)](_0x59d183, _0x2c569e);
|
|
1297
|
-
}
|
|
1298
|
-
const _0x419725 = [];
|
|
1299
|
-
for (const _0x446986 of _0x39e2fe[_0x53d3bb(_0x26ac23._0x36b191)]()) {
|
|
1300
|
-
const {
|
|
1301
|
-
channelId: _0x13020b,
|
|
1302
|
-
threadId: _0x1446d8,
|
|
1303
|
-
rootMessageId: _0x528109,
|
|
1304
|
-
threadNumber: _0x5c024f,
|
|
1305
|
-
aggregateIds: _0x14dd30,
|
|
1306
|
-
isThreadReply: _0x550ae5,
|
|
1307
|
-
entries: _0x22a485
|
|
1308
|
-
} = _0x446986, _0xc71447 = _0x2fac11[_0x53d3bb(0x1c2)](_0x13020b), _0x473ada = _0xc71447?.['name'] ?? _0x13020b, _0x27b754 = _0xc71447?.[_0x53d3bb(_0x26ac23._0x7eb4f2)] === 'dm' ? _0x53d3bb(_0x26ac23._0x5eeb9e) + _0x473ada : '#' + _0x473ada, _0x4be46 = {
|
|
1309
|
-
'channelTarget': _0x27b754,
|
|
1310
|
-
'rootMessageId': _0x528109,
|
|
1311
|
-
'threadId': _0x1446d8,
|
|
1312
|
-
'threadNumber': _0x5c024f
|
|
1313
|
-
}, _0x4c184c = await _0x11b374({
|
|
1314
|
-
'channelId': _0x13020b,
|
|
1315
|
-
'channelTarget': _0x27b754,
|
|
1316
|
-
'limit': Math[_0x53d3bb(_0x26ac23._0x382398)](_0x14dd30[_0x53d3bb(_0x26ac23._0x392641)], 0x32),
|
|
1317
|
-
'threadId': _0x1446d8
|
|
1318
|
-
}), _0x241212 = new Map(_0x4c184c[_0x53d3bb(_0x26ac23._0x4d84f7)][_0x53d3bb(0x100)](_0x4b0a77 => [
|
|
1319
|
-
_0x4b0a77[_0x53d3bb(0x20d)],
|
|
1320
|
-
_0x4b0a77
|
|
1321
|
-
])), _0x3373e0 = _0x1446d8 ? _0x1f0f41(_0x4be46) : _0x27b754, _0xc74e83 = _0x594eb8 ? _0x550ae5 && _0xccc5d9(_0x594eb8, _0x4be46) : !![], _0xc5c3e8 = _0x550ae5 ? _0xc74e83 && _0x594eb8 ? _0x594eb8 : _0x3373e0 : _0x27b754;
|
|
1322
|
-
for (const _0x1a605b of _0x14dd30) {
|
|
1323
|
-
if (!_0xc74e83)
|
|
1324
|
-
continue;
|
|
1325
|
-
const _0x4dc7ff = _0x22a485[_0x53d3bb(_0x26ac23._0x208101)](_0x1a605b), _0xc9d6fe = _0x4dc7ff ? asRecord(_0x4dc7ff['payloadJson']) : void 0x0, _0x2bea89 = _0xc9d6fe?.[_0x53d3bb(0x12a)] === _0x53d3bb(0x123);
|
|
1326
|
-
if (_0x3c1da4 && _0x2bea89)
|
|
1327
|
-
continue;
|
|
1328
|
-
const _0x2c9060 = _0x241212['get'](_0x1a605b);
|
|
1329
|
-
if (_0x2c9060) {
|
|
1330
|
-
_0x419725['push']({
|
|
1331
|
-
'attachments': _0x2c9060[_0x53d3bb(0x23d)],
|
|
1332
|
-
'content': _0x2c9060[_0x53d3bb(0x20f)],
|
|
1333
|
-
'createdAt': _0x2c9060[_0x53d3bb(_0x26ac23._0x56d743)],
|
|
1334
|
-
'messageId': _0x2c9060[_0x53d3bb(0x20d)],
|
|
1335
|
-
'senderName': _0x2c9060['senderName'],
|
|
1336
|
-
'senderType': _0x2c9060[_0x53d3bb(0xcd)],
|
|
1337
|
-
'target': _0xc5c3e8,
|
|
1338
|
-
..._0x2bea89 ? { 'targetedTask': !![] } : {}
|
|
1339
|
-
});
|
|
1340
|
-
continue;
|
|
1341
|
-
}
|
|
1342
|
-
if (_0x4dc7ff) {
|
|
1343
|
-
const _0x484bd9 = typeof _0xc9d6fe?.['senderParticipantId'] === _0x53d3bb(_0x26ac23._0x4ba328) ? _0xc9d6fe[_0x53d3bb(_0x26ac23._0x4d125e)] : '', _0x1e572c = typeof _0xc9d6fe?.[_0x53d3bb(0x1a2)] === 'string' ? _0xc9d6fe[_0x53d3bb(0x1a2)] : '';
|
|
1344
|
-
_0x484bd9 && _0x1e572c && _0x419725[_0x53d3bb(0x10f)]({
|
|
1345
|
-
'attachments': [],
|
|
1346
|
-
'content': _0x1e572c,
|
|
1347
|
-
'createdAt': new Date()[_0x53d3bb(_0x26ac23._0x30b317)](),
|
|
1348
|
-
'messageId': _0x1a605b,
|
|
1349
|
-
'senderName': _0x484bd9,
|
|
1350
|
-
'senderType': _0x11b458(_0x484bd9, _0x88755b),
|
|
1351
|
-
'target': _0xc5c3e8,
|
|
1352
|
-
..._0x2bea89 ? { 'targetedTask': !![] } : {}
|
|
1353
|
-
});
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
if (_0x3b4e53 > 0x0) {
|
|
1358
|
-
if (_0xb89eae)
|
|
1359
|
-
await _0x70aa9f(_0x3b4e53);
|
|
1360
|
-
else
|
|
1361
|
-
_0x155fb9 && await _0x49db2d(_0x3b4e53);
|
|
1362
|
-
}
|
|
1363
|
-
return _0x3b4e53 > _0x1adced && (_0x1adced = _0x3b4e53), { 'messages': _0x594eb8 ? _0x419725 : _0x3c1da4 ? _0x419725[_0x53d3bb(_0x26ac23._0x37c689)](_0x169619 => _0x169619[_0x53d3bb(0x1f5)] !== !![]) : _0x419725 };
|
|
1364
|
-
}
|
|
1370
|
+
_0x4219 = function () {
|
|
1371
|
+
return _0x556068;
|
|
1365
1372
|
};
|
|
1373
|
+
return _0x4219();
|
|
1366
1374
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
const _0x467090 = _0x26621f => String(_0x26621f)['padStart'](0x2, '0');
|
|
1377
|
-
return _0x51f00f[_0x5b7249(0xf3)]() + '-' + _0x467090(_0x51f00f[_0x5b7249(0x1d8)]() + 0x1) + '-' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x179032)]()) + '\x20' + _0x467090(_0x51f00f['getHours']()) + ':' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x1f2827)]()) + ':' + _0x467090(_0x51f00f[_0x5b7249(_0x567620._0x256415)]());
|
|
1378
|
-
}
|
|
1379
|
-
function formatAttachmentSuffix(_0x58745b) {
|
|
1380
|
-
const _0xe720c1 = {
|
|
1381
|
-
_0x3cf397: 0x1da,
|
|
1382
|
-
_0x4cb96a: 0x1da,
|
|
1383
|
-
_0x580f53: 0x1f0,
|
|
1384
|
-
_0x7909e3: 0x128
|
|
1385
|
-
}, _0x4076ba = _0x1bf962;
|
|
1386
|
-
if (!_0x58745b || _0x58745b[_0x4076ba(_0xe720c1._0x3cf397)] === 0x0)
|
|
1375
|
+
function formatAttachmentSuffix(_0x353c61) {
|
|
1376
|
+
const _0x52ca3c = {
|
|
1377
|
+
_0xb89329: 0x29d,
|
|
1378
|
+
_0x9b1358: 0x29d,
|
|
1379
|
+
_0x2be5c0: 0x2ab,
|
|
1380
|
+
_0x4e1682: 0x221,
|
|
1381
|
+
_0x5ebddd: 0x28d
|
|
1382
|
+
}, _0x180a28 = _0x5c3349;
|
|
1383
|
+
if (!_0x353c61 || _0x353c61[_0x180a28(_0x52ca3c._0xb89329)] === 0x0)
|
|
1387
1384
|
return '';
|
|
1388
|
-
return '\x20[' +
|
|
1385
|
+
return '\x20[' + _0x353c61[_0x180a28(_0x52ca3c._0x9b1358)] + _0x180a28(_0x52ca3c._0x2be5c0) + (_0x353c61[_0x180a28(0x29d)] > 0x1 ? 's' : '') + ':\x20' + _0x353c61[_0x180a28(_0x52ca3c._0x4e1682)](_0x271b2e => _0x271b2e[_0x180a28(0x1e1)] + _0x180a28(0x1d1) + _0x271b2e['id'] + ')')[_0x180a28(_0x52ca3c._0x5ebddd)](',\x20') + _0x180a28(0x22e);
|
|
1389
1386
|
}
|
|
1390
|
-
function formatCheckMessages(
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
return _0x332579(0x206) + _0x2345a5[_0x332579(_0x8fab1d._0x2f36cb)] + _0x332579(0x1d1) + _0x2345a5[_0x332579(_0x8fab1d._0x2ba0cb)][_0x332579(_0x8fab1d._0x3a3731)](0x0, 0x8) + _0x332579(0x141) + toLocalTime(_0x2345a5[_0x332579(0xe4)]) + _0x198b7f + _0x332579(_0x8fab1d._0x3260a9) + _0x2345a5[_0x332579(_0x8fab1d._0x52625e)] + ':\x20' + _0x2345a5[_0x332579(_0x8fab1d._0x40192f)] + formatAttachmentSuffix(_0x2345a5['attachments']);
|
|
1404
|
-
})['join']('\x0a');
|
|
1387
|
+
function formatCheckMessages(_0x45aaa1) {
|
|
1388
|
+
const _0x549da4 = { _0x192333: 0x28d }, _0x55fc46 = {
|
|
1389
|
+
_0x172549: 0x2e8,
|
|
1390
|
+
_0x4c0f42: 0x314,
|
|
1391
|
+
_0x318141: 0x2bf,
|
|
1392
|
+
_0x15251c: 0x281
|
|
1393
|
+
}, _0x357888 = _0x5c3349;
|
|
1394
|
+
if (_0x45aaa1['length'] === 0x0)
|
|
1395
|
+
return 'No\x20new\x20messages.';
|
|
1396
|
+
return _0x45aaa1['map'](_0x265de4 => {
|
|
1397
|
+
const _0x14448a = _0x4b05, _0x186ce1 = _0x265de4['senderType'] === _0x14448a(_0x55fc46._0x172549) ? _0x14448a(0x2f3) : '';
|
|
1398
|
+
return _0x14448a(0x1dc) + _0x265de4['target'] + '\x20msg=' + _0x265de4[_0x14448a(_0x55fc46._0x4c0f42)][_0x14448a(0x27e)](0x0, 0x8) + _0x14448a(_0x55fc46._0x318141) + toLocalTime(_0x265de4[_0x14448a(0x1ba)]) + _0x186ce1 + ']\x20@' + _0x265de4[_0x14448a(_0x55fc46._0x15251c)] + ':\x20' + _0x265de4['content'] + formatAttachmentSuffix(_0x265de4[_0x14448a(0x22b)]);
|
|
1399
|
+
})[_0x357888(_0x549da4._0x192333)]('\x0a');
|
|
1405
1400
|
}
|
|
1406
|
-
function formatHistory(
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1401
|
+
function formatHistory(_0x1c221f) {
|
|
1402
|
+
const _0xeabe8 = {
|
|
1403
|
+
_0x1c86ac: 0x221,
|
|
1404
|
+
_0x91ac8b: 0x28d,
|
|
1405
|
+
_0xbe137b: 0x1d3,
|
|
1406
|
+
_0x15dbde: 0x29d,
|
|
1407
|
+
_0x442325: 0x1fc,
|
|
1408
|
+
_0x22abcc: 0x295,
|
|
1409
|
+
_0x4beec6: 0x217,
|
|
1410
|
+
_0x168346: 0x29d,
|
|
1411
|
+
_0x4753a6: 0x208
|
|
1412
|
+
}, _0x13e72d = {
|
|
1413
|
+
_0xfe1dbc: 0x1cc,
|
|
1414
|
+
_0x355d2f: 0x2e8,
|
|
1415
|
+
_0x2332b4: 0x238,
|
|
1416
|
+
_0x2bb261: 0x1ba,
|
|
1417
|
+
_0x733e96: 0x22b
|
|
1418
|
+
}, _0x2038ba = _0x5c3349;
|
|
1419
|
+
if (_0x1c221f['messages'][_0x2038ba(0x29d)] === 0x0)
|
|
1420
|
+
return _0x2038ba(0x217) + _0x1c221f[_0x2038ba(0x1d0)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1421
|
+
const _0xe7ebef = _0x1c221f['messages'][_0x2038ba(_0xeabe8._0x1c86ac)](_0x33eb5e => {
|
|
1422
|
+
const _0x198662 = _0x2038ba, _0x50aff0 = _0x33eb5e[_0x198662(_0x13e72d._0xfe1dbc)] === _0x198662(_0x13e72d._0x355d2f) ? '\x20type=agent' : '';
|
|
1423
|
+
return '[seq=' + _0x33eb5e[_0x198662(_0x13e72d._0x2332b4)] + _0x198662(0x1e4) + _0x33eb5e[_0x198662(0x314)] + _0x198662(0x2bf) + toLocalTime(_0x33eb5e[_0x198662(_0x13e72d._0x2bb261)]) + _0x50aff0 + _0x198662(0x274) + _0x33eb5e['senderName'] + ':\x20' + _0x33eb5e[_0x198662(0x309)] + formatAttachmentSuffix(_0x33eb5e[_0x198662(_0x13e72d._0x733e96)]);
|
|
1424
|
+
})[_0x2038ba(_0xeabe8._0x91ac8b)]('\x0a'), _0x281e9e = _0x1c221f['hasMore'] && _0x1c221f[_0x2038ba(0x249)] ? _0x2038ba(_0xeabe8._0xbe137b) + _0x1c221f[_0x2038ba(0x209)][_0x2038ba(_0xeabe8._0x15dbde)] + _0x2038ba(_0xeabe8._0x442325) + _0x1c221f[_0x2038ba(0x249)] + _0x2038ba(_0xeabe8._0x22abcc) : '';
|
|
1425
|
+
return _0x2038ba(_0xeabe8._0x4beec6) + _0x1c221f[_0x2038ba(0x1d0)] + '\x20(' + _0x1c221f[_0x2038ba(0x209)][_0x2038ba(_0xeabe8._0x168346)] + _0x2038ba(_0xeabe8._0x4753a6) + _0xe7ebef + _0x281e9e;
|
|
1427
1426
|
}
|
|
1428
|
-
function formatServerDirectory(
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
},
|
|
1427
|
+
function formatServerDirectory(_0x44bbf3) {
|
|
1428
|
+
const _0x4b7307 = {
|
|
1429
|
+
_0x2474ad: 0x29d,
|
|
1430
|
+
_0xef8ff4: 0x28d,
|
|
1431
|
+
_0x31db2a: 0x290,
|
|
1432
|
+
_0x3b3e78: 0x25c,
|
|
1433
|
+
_0x596a25: 0x221,
|
|
1434
|
+
_0x1d2dbb: 0x290,
|
|
1435
|
+
_0x1bc155: 0x225,
|
|
1436
|
+
_0x320cd3: 0x28d
|
|
1437
|
+
}, _0x2678aa = _0x5c3349, _0x521087 = _0x44bbf3[_0x2678aa(0x250)][_0x2678aa(_0x4b7307._0x2474ad)] > 0x0 ? _0x44bbf3[_0x2678aa(0x250)]['map'](_0x33f3e9 => _0x33f3e9['description'] ? _0x2678aa(0x1a8) + _0x33f3e9[_0x2678aa(0x2ee)] + _0x2678aa(0x2fb) + _0x33f3e9[_0x2678aa(0x1eb)] : _0x2678aa(0x1a8) + _0x33f3e9['name'])[_0x2678aa(_0x4b7307._0xef8ff4)]('\x0a') : _0x2678aa(0x290), _0x5bbfc8 = _0x44bbf3[_0x2678aa(0x2d7)]['length'] > 0x0 ? _0x44bbf3[_0x2678aa(0x2d7)]['map'](_0x1c3043 => _0x2678aa(0x2bb) + _0x1c3043['name'])['join']('\x0a') : _0x2678aa(_0x4b7307._0x31db2a), _0x5a56db = _0x44bbf3[_0x2678aa(_0x4b7307._0x3b3e78)][_0x2678aa(0x29d)] > 0x0 ? _0x44bbf3[_0x2678aa(_0x4b7307._0x3b3e78)][_0x2678aa(_0x4b7307._0x596a25)](_0xf4f30f => '-\x20@' + _0xf4f30f['name'])['join']('\x0a') : _0x2678aa(_0x4b7307._0x1d2dbb);
|
|
1439
1438
|
return [
|
|
1440
|
-
|
|
1439
|
+
_0x2678aa(0x202) + _0x44bbf3['serverName'],
|
|
1441
1440
|
'',
|
|
1442
|
-
|
|
1443
|
-
|
|
1441
|
+
'###\x20Channels',
|
|
1442
|
+
_0x521087,
|
|
1444
1443
|
'',
|
|
1445
|
-
|
|
1446
|
-
|
|
1444
|
+
_0x2678aa(_0x4b7307._0x1bc155),
|
|
1445
|
+
_0x5bbfc8,
|
|
1447
1446
|
'',
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
][
|
|
1447
|
+
_0x2678aa(0x1bc),
|
|
1448
|
+
_0x5a56db
|
|
1449
|
+
][_0x2678aa(_0x4b7307._0x320cd3)]('\x0a');
|
|
1451
1450
|
}
|
|
1452
|
-
function formatUploadResult(
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1451
|
+
function formatUploadResult(_0x1db31b) {
|
|
1452
|
+
const _0x209941 = {
|
|
1453
|
+
_0x37bfe5: 0x23c,
|
|
1454
|
+
_0x98afe7: 0x1e1,
|
|
1455
|
+
_0x44484e: 0x2a8,
|
|
1456
|
+
_0x129cfd: 0x1d5
|
|
1457
|
+
}, _0x48570a = _0x5c3349;
|
|
1458
|
+
return _0x48570a(_0x209941._0x37bfe5) + _0x1db31b[_0x48570a(_0x209941._0x98afe7)] + '\x20(' + (_0x1db31b[_0x48570a(0x1bb)] / 0x400)['toFixed'](0x1) + _0x48570a(_0x209941._0x44484e) + _0x1db31b[_0x48570a(_0x209941._0x129cfd)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1459
1459
|
}
|
|
1460
|
-
function formatViewFileResult(
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1460
|
+
function formatViewFileResult(_0x2913a9, _0xb8dfcd) {
|
|
1461
|
+
const _0x41d18d = {
|
|
1462
|
+
_0x31341a: 0x204,
|
|
1463
|
+
_0x4c5ac7: 0x20e
|
|
1464
|
+
}, _0x2d44f2 = _0x5c3349;
|
|
1465
|
+
return _0xb8dfcd ? _0x2d44f2(_0x41d18d._0x31341a) + _0x2913a9 : _0x2d44f2(_0x41d18d._0x4c5ac7) + _0x2913a9;
|
|
1463
1466
|
}
|
|
1464
|
-
function formatTaskList(
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
})[_0xc93138(_0x457c6e._0x36cc48)]('\x0a');
|
|
1467
|
+
function formatTaskList(_0x2da7ab, _0x1a4d85) {
|
|
1468
|
+
const _0x32a11f = {
|
|
1469
|
+
_0x560d3f: 0x2a4,
|
|
1470
|
+
_0x1b6a4d: 0x28d
|
|
1471
|
+
}, _0x173f27 = {
|
|
1472
|
+
_0x49fbb5: 0x314,
|
|
1473
|
+
_0x292e1f: 0x244,
|
|
1474
|
+
_0xea4625: 0x212,
|
|
1475
|
+
_0x597cb2: 0x1ea
|
|
1476
|
+
}, _0x586a7d = _0x5c3349;
|
|
1477
|
+
if (_0x2da7ab[_0x586a7d(0x29d)] === 0x0)
|
|
1478
|
+
return _0x586a7d(_0x32a11f._0x560d3f);
|
|
1479
|
+
return _0x2da7ab['map'](_0x58c98a => {
|
|
1480
|
+
const _0x46abeb = _0x586a7d, _0x1562fd = _0x58c98a[_0x46abeb(0x244)] == null ? _0x46abeb(0x319) : '#' + _0x58c98a[_0x46abeb(0x244)], _0x5bf03f = _0x58c98a[_0x46abeb(_0x173f27._0x49fbb5)] ? '\x20message=' + _0x58c98a[_0x46abeb(0x314)] : '', _0x1abad1 = _0x1a4d85 && _0x58c98a[_0x46abeb(0x244)] != null && _0x1a4d85[_0x46abeb(0x218)](_0x58c98a[_0x46abeb(_0x173f27._0x292e1f)]) ? _0x46abeb(0x25b) : '';
|
|
1481
|
+
return _0x1562fd + '\x20[' + _0x58c98a[_0x46abeb(_0x173f27._0xea4625)] + ']\x20' + _0x58c98a[_0x46abeb(_0x173f27._0x597cb2)] + _0x5bf03f + _0x1abad1;
|
|
1482
|
+
})[_0x586a7d(_0x32a11f._0x1b6a4d)]('\x0a');
|
|
1481
1483
|
}
|
|
1482
|
-
function formatCreatedTasks(
|
|
1483
|
-
const
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
})[_0x2825be(_0xd68224._0x2097f3)]('\x0a');
|
|
1484
|
+
function formatCreatedTasks(_0x5d0881) {
|
|
1485
|
+
const _0x323f21 = {
|
|
1486
|
+
_0x93bf71: 0x244,
|
|
1487
|
+
_0x85c0e0: 0x1ea,
|
|
1488
|
+
_0x2dc4a7: 0x29f
|
|
1489
|
+
}, _0xae67f1 = _0x5c3349;
|
|
1490
|
+
if (_0x5d0881[_0xae67f1(0x29d)] === 0x0)
|
|
1491
|
+
return 'No\x20tasks\x20created.';
|
|
1492
|
+
return _0x5d0881[_0xae67f1(0x221)](_0x482905 => {
|
|
1493
|
+
const _0x30f01f = _0xae67f1, _0x2866a4 = _0x482905[_0x30f01f(0x244)] == null ? _0x30f01f(0x319) : '#' + _0x482905[_0x30f01f(_0x323f21._0x93bf71)];
|
|
1494
|
+
return _0x2866a4 + '\x20' + _0x482905[_0x30f01f(_0x323f21._0x85c0e0)] + _0x30f01f(_0x323f21._0x2dc4a7) + _0x482905['messageId'];
|
|
1495
|
+
})[_0xae67f1(0x28d)]('\x0a');
|
|
1495
1496
|
}
|
|
1496
|
-
function formatClaimTaskResults(
|
|
1497
|
-
const
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
_0x34f38e['executionMode'] ? _0x3c6903(_0x1dfb73._0x29b0f4) + _0x34f38e['executionMode'] : null,
|
|
1523
|
-
_0x34f38e[_0x3c6903(_0x1dfb73._0x4a4e72)] ? _0x3c6903(0xfd) + _0x34f38e['threadTarget'] : null,
|
|
1524
|
-
_0x34f38e[_0x3c6903(0x1f7)] ? _0x3c6903(_0x1dfb73._0x298b7a) + _0x34f38e[_0x3c6903(0x1f7)] : null
|
|
1525
|
-
]['filter'](Boolean)[_0x3c6903(0x148)]('\x20');
|
|
1526
|
-
return _0x109535 + _0x3c6903(_0x1dfb73._0xbeaa7f) + _0x5679f6 + '\x20' + _0x308dc1 + _0x3c6903(_0x1dfb73._0x2ea2e5);
|
|
1497
|
+
function formatClaimTaskResults(_0x750163) {
|
|
1498
|
+
const _0x4f11aa = { _0x52d426: 0x29d }, _0x3854bc = {
|
|
1499
|
+
_0x3b6a19: 0x1a9,
|
|
1500
|
+
_0x1c35dc: 0x284,
|
|
1501
|
+
_0x5ea080: 0x1fa,
|
|
1502
|
+
_0x5e3601: 0x1d7,
|
|
1503
|
+
_0x37ea09: 0x31e,
|
|
1504
|
+
_0x376985: 0x20a,
|
|
1505
|
+
_0xb242af: 0x314,
|
|
1506
|
+
_0x28b723: 0x2fd
|
|
1507
|
+
}, _0x51059d = _0x5c3349;
|
|
1508
|
+
if (_0x750163[_0x51059d(_0x4f11aa._0x52d426)] === 0x0)
|
|
1509
|
+
return _0x51059d(0x271);
|
|
1510
|
+
return _0x750163['map'](_0x330866 => {
|
|
1511
|
+
const _0x1b2b40 = _0x51059d;
|
|
1512
|
+
if (_0x330866['success']) {
|
|
1513
|
+
const _0x5b58ad = _0x330866['taskNumber'] == null ? '(legacy)' : '#' + _0x330866['taskNumber'], _0x33fd0d = _0x330866[_0x1b2b40(0x314)] ? _0x1b2b40(0x29f) + _0x330866['messageId'] : '';
|
|
1514
|
+
if (_0x330866['workerHandoff']) {
|
|
1515
|
+
const _0x170feb = [
|
|
1516
|
+
_0x1b2b40(_0x3854bc._0x3b6a19),
|
|
1517
|
+
_0x330866[_0x1b2b40(0x2af)] ? _0x1b2b40(_0x3854bc._0x1c35dc) : null,
|
|
1518
|
+
_0x330866[_0x1b2b40(0x1fa)] ? _0x1b2b40(0x2b7) + _0x330866[_0x1b2b40(_0x3854bc._0x5ea080)] : null,
|
|
1519
|
+
_0x330866[_0x1b2b40(_0x3854bc._0x5e3601)] ? _0x1b2b40(0x30d) + _0x330866['threadTarget'] : null,
|
|
1520
|
+
_0x330866['workerDisposition'] ? _0x1b2b40(0x1f7) + _0x330866['workerDisposition'] : null
|
|
1521
|
+
][_0x1b2b40(_0x3854bc._0x37ea09)](Boolean)['join']('\x20');
|
|
1522
|
+
return _0x5b58ad + _0x1b2b40(0x20a) + _0x33fd0d + '\x20' + _0x170feb + _0x1b2b40(0x1ec);
|
|
1527
1523
|
}
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1524
|
+
const _0x2120f5 = _0x330866['workerHandoffError'] ? _0x1b2b40(0x2c4) + _0x330866[_0x1b2b40(0x1c1)] : '';
|
|
1525
|
+
return _0x5b58ad + _0x1b2b40(_0x3854bc._0x376985) + _0x33fd0d + _0x2120f5;
|
|
1530
1526
|
}
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1533
|
-
})[
|
|
1527
|
+
const _0x469958 = _0x330866[_0x1b2b40(0x244)] == null ? _0x330866[_0x1b2b40(_0x3854bc._0xb242af)] ?? '(unknown)' : '#' + _0x330866[_0x1b2b40(0x244)];
|
|
1528
|
+
return _0x469958 + _0x1b2b40(_0x3854bc._0x28b723) + (_0x330866[_0x1b2b40(0x237)] ?? _0x1b2b40(0x26c));
|
|
1529
|
+
})['join']('\x0a');
|
|
1534
1530
|
}
|
|
1535
|
-
function formatUnclaimTaskResult(
|
|
1536
|
-
const
|
|
1537
|
-
return
|
|
1531
|
+
function formatUnclaimTaskResult(_0x346470) {
|
|
1532
|
+
const _0x12a4db = { _0x144cfb: 0x311 }, _0x5c7b12 = _0x5c3349, _0xa41a3e = _0x346470[_0x5c7b12(0x244)] == null ? _0x5c7b12(0x319) : '#' + _0x346470[_0x5c7b12(0x244)];
|
|
1533
|
+
return _0xa41a3e + _0x5c7b12(_0x12a4db._0x144cfb) + _0x346470[_0x5c7b12(0x212)];
|
|
1538
1534
|
}
|
|
1539
|
-
function formatUpdateTaskStatusResult(
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
},
|
|
1544
|
-
return
|
|
1535
|
+
function formatUpdateTaskStatusResult(_0x853f1a) {
|
|
1536
|
+
const _0x637d90 = {
|
|
1537
|
+
_0x2c36b1: 0x244,
|
|
1538
|
+
_0x2d5632: 0x311
|
|
1539
|
+
}, _0x24377c = _0x5c3349, _0x531f5b = _0x853f1a[_0x24377c(_0x637d90._0x2c36b1)] == null ? '(legacy)' : '#' + _0x853f1a[_0x24377c(0x244)];
|
|
1540
|
+
return _0x531f5b + _0x24377c(_0x637d90._0x2d5632) + _0x853f1a[_0x24377c(0x212)];
|
|
1545
1541
|
}
|
|
1546
1542
|
function getChatBridgeToolDefinitions() {
|
|
1547
|
-
const
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
_0x245354: 0xd8,
|
|
1555
|
-
_0x3b8a73: 0x198,
|
|
1556
|
-
_0x12777c: 0x199
|
|
1557
|
-
}, _0x4d86ec = _0x1bf962;
|
|
1543
|
+
const _0x460697 = {
|
|
1544
|
+
_0x28b4b0: 0x2d2,
|
|
1545
|
+
_0x499d12: 0x2f2,
|
|
1546
|
+
_0x1784a0: 0x2bc,
|
|
1547
|
+
_0x55fdb1: 0x2c0,
|
|
1548
|
+
_0x3b9f9b: 0x241
|
|
1549
|
+
}, _0x4d8adf = _0x5c3349;
|
|
1558
1550
|
return [
|
|
1559
|
-
{ 'name':
|
|
1560
|
-
{ 'name':
|
|
1551
|
+
{ 'name': _0x4d8adf(_0x460697._0x28b4b0) },
|
|
1552
|
+
{ 'name': _0x4d8adf(_0x460697._0x499d12) },
|
|
1561
1553
|
{ 'name': 'read_history' },
|
|
1562
|
-
{ 'name':
|
|
1563
|
-
{ 'name':
|
|
1564
|
-
{ 'name':
|
|
1565
|
-
{ 'name':
|
|
1566
|
-
{ 'name':
|
|
1567
|
-
{ 'name':
|
|
1568
|
-
{ 'name':
|
|
1554
|
+
{ 'name': 'list_server' },
|
|
1555
|
+
{ 'name': _0x4d8adf(0x302) },
|
|
1556
|
+
{ 'name': _0x4d8adf(0x1b4) },
|
|
1557
|
+
{ 'name': 'list_tasks' },
|
|
1558
|
+
{ 'name': _0x4d8adf(0x1b3) },
|
|
1559
|
+
{ 'name': _0x4d8adf(0x1e6) },
|
|
1560
|
+
{ 'name': _0x4d8adf(0x2a6) },
|
|
1569
1561
|
{ 'name': 'update_task_status' },
|
|
1570
|
-
{ 'name':
|
|
1562
|
+
{ 'name': _0x4d8adf(_0x460697._0x1784a0) },
|
|
1571
1563
|
{ 'name': 'get_worker_result' },
|
|
1572
|
-
{ 'name':
|
|
1573
|
-
{ 'name':
|
|
1574
|
-
{ 'name':
|
|
1564
|
+
{ 'name': _0x4d8adf(_0x460697._0x55fdb1) },
|
|
1565
|
+
{ 'name': _0x4d8adf(0x1f4) },
|
|
1566
|
+
{ 'name': _0x4d8adf(_0x460697._0x3b9f9b) }
|
|
1575
1567
|
];
|
|
1576
1568
|
}
|
|
1577
|
-
function createChatBridgeHandlers(
|
|
1578
|
-
const
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1569
|
+
function createChatBridgeHandlers(_0x21cc16) {
|
|
1570
|
+
const _0x21a67d = {
|
|
1571
|
+
_0x2782e2: 0x1ef,
|
|
1572
|
+
_0x3c564b: 0x316
|
|
1573
|
+
}, _0x28be5c = {
|
|
1574
|
+
_0x129434: 0x248,
|
|
1575
|
+
_0x34e835: 0x1a3
|
|
1576
|
+
}, _0x1a3f2b = {
|
|
1577
|
+
_0x146207: 0x2a3,
|
|
1578
|
+
_0xe376f8: 0x2f9,
|
|
1579
|
+
_0x31e766: 0x2da
|
|
1580
|
+
}, _0x54c0ea = {
|
|
1581
|
+
_0x2d3622: 0x1b8,
|
|
1582
|
+
_0x29a572: 0x2ac,
|
|
1583
|
+
_0x2166d5: 0x282,
|
|
1584
|
+
_0x3a0775: 0x1ee,
|
|
1585
|
+
_0x3574c9: 0x2d9
|
|
1586
|
+
}, _0x39afb5 = {
|
|
1587
|
+
_0x5450b8: 0x2a3,
|
|
1588
|
+
_0x168591: 0x2f9,
|
|
1589
|
+
_0x266317: 0x205,
|
|
1590
|
+
_0x5193b8: 0x323,
|
|
1591
|
+
_0x548aa7: 0x2d0
|
|
1592
|
+
}, _0x365214 = {
|
|
1593
|
+
_0x22f31d: 0x322,
|
|
1594
|
+
_0x2af66b: 0x1a3,
|
|
1595
|
+
_0xa55e71: 0x1ee,
|
|
1596
|
+
_0x2a90c8: 0x2f9,
|
|
1597
|
+
_0x37cc28: 0x2d6,
|
|
1598
|
+
_0x3e0d47: 0x212
|
|
1599
|
+
}, _0x1a6170 = {
|
|
1600
|
+
_0x427a17: 0x1d6,
|
|
1601
|
+
_0x46a61f: 0x255,
|
|
1602
|
+
_0x3fb2d8: 0x224,
|
|
1603
|
+
_0x1767f0: 0x230
|
|
1604
|
+
}, _0x12a2e9 = {
|
|
1605
|
+
_0x32cc80: 0x236,
|
|
1606
|
+
_0xb7b423: 0x203
|
|
1607
|
+
}, _0x141d99 = { _0x2a3664: 0x1d6 }, _0x4a0169 = {
|
|
1608
|
+
_0x21e76b: 0x1d6,
|
|
1609
|
+
_0x495f52: 0x31c,
|
|
1610
|
+
_0x2c61e7: 0x221
|
|
1611
|
+
}, _0x502eb2 = {
|
|
1612
|
+
_0x197948: 0x244,
|
|
1613
|
+
_0x27a07a: 0x2b2
|
|
1614
|
+
}, _0x305b59 = { _0x56c9dc: 0x222 }, _0x4ef646 = {
|
|
1615
|
+
_0x4d819e: 0x1d6,
|
|
1616
|
+
_0x3be9e1: 0x2dd,
|
|
1617
|
+
_0x326508: 0x19e,
|
|
1618
|
+
_0x12ae2a: 0x24f,
|
|
1619
|
+
_0x150fcc: 0x29d,
|
|
1620
|
+
_0x5e8462: 0x244,
|
|
1621
|
+
_0x2b5380: 0x301,
|
|
1622
|
+
_0x3e9ba8: 0x1c0,
|
|
1623
|
+
_0x1f6c1f: 0x244,
|
|
1624
|
+
_0x3c5aec: 0x264,
|
|
1625
|
+
_0x46a50e: 0x2cf
|
|
1626
|
+
}, _0x1f2ea6 = {
|
|
1627
|
+
_0x1fe996: 0x1d6,
|
|
1628
|
+
_0x340b54: 0x1a1
|
|
1629
|
+
}, _0x40f216 = { _0x3b77ec: 0x1d6 }, _0x5a0aec = {
|
|
1630
|
+
_0x463408: 0x233,
|
|
1631
|
+
_0x4af2c0: 0x2a3,
|
|
1632
|
+
_0x16e00a: 0x2dd,
|
|
1633
|
+
_0x4fa8af: 0x26b,
|
|
1634
|
+
_0x1417c8: 0x30c,
|
|
1635
|
+
_0x2d3e15: 0x2b3,
|
|
1636
|
+
_0x279d9c: 0x268,
|
|
1637
|
+
_0x18df33: 0x319,
|
|
1638
|
+
_0xadc0c5: 0x30c,
|
|
1639
|
+
_0x215359: 0x2b3,
|
|
1640
|
+
_0x1dbc48: 0x25a,
|
|
1641
|
+
_0x4b3752: 0x308,
|
|
1642
|
+
_0x30717e: 0x2df,
|
|
1643
|
+
_0x12582c: 0x321,
|
|
1644
|
+
_0x400562: 0x309,
|
|
1645
|
+
_0x46bc8c: 0x268,
|
|
1646
|
+
_0x55ac70: 0x2aa,
|
|
1647
|
+
_0x3d1ed8: 0x2f7,
|
|
1648
|
+
_0x59b2bc: 0x315,
|
|
1649
|
+
_0x1b73df: 0x28d,
|
|
1650
|
+
_0x2090bb: 0x2be,
|
|
1651
|
+
_0x3ad56b: 0x1f0,
|
|
1652
|
+
_0x5192f8: 0x232,
|
|
1653
|
+
_0x146c18: 0x1ca,
|
|
1654
|
+
_0x462b35: 0x2d8,
|
|
1655
|
+
_0x501403: 0x1f5,
|
|
1656
|
+
_0x1e718f: 0x22a,
|
|
1657
|
+
_0x20cb37: 0x2ef,
|
|
1658
|
+
_0x3ca07d: 0x1d6,
|
|
1659
|
+
_0xc5b0c1: 0x30c,
|
|
1660
|
+
_0x3104dd: 0x314
|
|
1661
|
+
}, _0x55c200 = { _0x381bb0: 0x2dd }, _0x1d4339 = {
|
|
1662
|
+
_0x2f30dd: 0x2a3,
|
|
1663
|
+
_0x254080: 0x2dd,
|
|
1664
|
+
_0x2eb9d2: 0x1a3,
|
|
1665
|
+
_0xace8d1: 0x246,
|
|
1666
|
+
_0x2dd878: 0x212,
|
|
1667
|
+
_0x846a03: 0x19e,
|
|
1668
|
+
_0x4c7a76: 0x256,
|
|
1669
|
+
_0x5d5c63: 0x256
|
|
1670
|
+
}, _0x47d466 = {
|
|
1671
|
+
_0x1147f3: 0x2a3,
|
|
1672
|
+
_0x23d385: 0x1d0,
|
|
1673
|
+
_0x5dba1e: 0x1f3,
|
|
1674
|
+
_0x54df83: 0x1b6,
|
|
1675
|
+
_0x273d89: 0x2b2,
|
|
1676
|
+
_0x24b793: 0x1a1,
|
|
1677
|
+
_0xc24c8e: 0x209,
|
|
1678
|
+
_0x224ab1: 0x1dc,
|
|
1679
|
+
_0x59726f: 0x1e4,
|
|
1680
|
+
_0x178310: 0x27e,
|
|
1681
|
+
_0x5414ee: 0x2df,
|
|
1682
|
+
_0x1d1563: 0x2ad,
|
|
1683
|
+
_0x2bcb09: 0x1d4,
|
|
1684
|
+
_0x5b2c12: 0x314,
|
|
1685
|
+
_0x3ba3f9: 0x2ae,
|
|
1686
|
+
_0xe32f16: 0x2ac,
|
|
1687
|
+
_0x192d3f: 0x306,
|
|
1688
|
+
_0x44fa42: 0x244,
|
|
1689
|
+
_0x304cd1: 0x1cd,
|
|
1690
|
+
_0x2691c2: 0x2ef,
|
|
1691
|
+
_0x477f07: 0x1de
|
|
1692
|
+
}, _0x9c3ae1 = _0x5c3349;
|
|
1693
|
+
async function _0x3c871f(_0x2dfb9c) {
|
|
1694
|
+
const _0x279a71 = _0x4b05;
|
|
1695
|
+
if (!_0x21cc16[_0x279a71(_0x47d466._0x1147f3)] || !_0x21cc16[_0x279a71(0x2dd)] || _0x21cc16[_0x279a71(0x233)] || _0x21cc16['workerModeEnabled'] !== !![])
|
|
1699
1696
|
return null;
|
|
1700
|
-
const
|
|
1701
|
-
if (
|
|
1697
|
+
const _0x5403ee = parseTarget(_0x2dfb9c[_0x279a71(_0x47d466._0x23d385)]);
|
|
1698
|
+
if (_0x5403ee[_0x279a71(_0x47d466._0x5dba1e)] !== _0x279a71(0x1d0))
|
|
1702
1699
|
return null;
|
|
1703
|
-
const
|
|
1704
|
-
let
|
|
1700
|
+
const _0x4c4b24 = _0x2dfb9c['threadNumber'] != null ? _0x5403ee[_0x279a71(_0x47d466._0x54df83)] + ':t' + _0x2dfb9c[_0x279a71(_0x47d466._0x273d89)] : _0x5403ee['channelTarget'] + ':' + _0x2dfb9c[_0x279a71(0x314)];
|
|
1701
|
+
let _0x5c94c1;
|
|
1705
1702
|
try {
|
|
1706
|
-
const
|
|
1707
|
-
'channel':
|
|
1703
|
+
const _0x5aa9fc = await _0x21cc16['client'][_0x279a71(_0x47d466._0x24b793)]({
|
|
1704
|
+
'channel': _0x4c4b24,
|
|
1708
1705
|
'limit': 0x14
|
|
1709
1706
|
});
|
|
1710
|
-
|
|
1707
|
+
_0x5c94c1 = _0x5aa9fc[_0x279a71(_0x47d466._0xc24c8e)]['find'](_0x578020 => _0x578020[_0x279a71(0x314)] === _0x2dfb9c['messageId']);
|
|
1711
1708
|
} catch {
|
|
1712
|
-
|
|
1709
|
+
_0x5c94c1 = void 0x0;
|
|
1713
1710
|
}
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1711
|
+
const _0x22e7e7 = _0x2dfb9c[_0x279a71(0x244)] == null ? '(legacy)' : '#' + _0x2dfb9c[_0x279a71(0x244)], _0x3ee1fa = [
|
|
1712
|
+
_0x279a71(_0x47d466._0x224ab1) + _0x4c4b24 + _0x279a71(_0x47d466._0x59726f) + _0x2dfb9c[_0x279a71(0x314)][_0x279a71(_0x47d466._0x178310)](0x0, 0x8) + _0x279a71(0x2bf) + new Date()[_0x279a71(_0x47d466._0x5414ee)]() + _0x279a71(0x283) + _0x22e7e7 + _0x279a71(_0x47d466._0x1d1563),
|
|
1716
1713
|
'',
|
|
1717
|
-
|
|
1714
|
+
_0x5c94c1 ? 'Root\x20task\x20message:\x0a' + _0x5c94c1['content'] : _0x279a71(_0x47d466._0x2bcb09) + _0x2dfb9c[_0x279a71(_0x47d466._0x5b2c12)],
|
|
1718
1715
|
'',
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
]['join']('\x0a'),
|
|
1722
|
-
'method':
|
|
1723
|
-
'headers': { 'Content-Type':
|
|
1724
|
-
'body': JSON[
|
|
1725
|
-
'agent_id':
|
|
1726
|
-
'thread_target':
|
|
1716
|
+
_0x279a71(0x2f7) + _0x4c4b24,
|
|
1717
|
+
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1718
|
+
]['join']('\x0a'), _0x5d68ef = await fetch(_0x21cc16['daemonLocalUrl'] + _0x279a71(_0x47d466._0x3ba3f9), {
|
|
1719
|
+
'method': _0x279a71(_0x47d466._0xe32f16),
|
|
1720
|
+
'headers': { 'Content-Type': _0x279a71(0x2be) },
|
|
1721
|
+
'body': JSON[_0x279a71(0x2d0)]({
|
|
1722
|
+
'agent_id': _0x21cc16[_0x279a71(0x2dd)],
|
|
1723
|
+
'thread_target': _0x4c4b24,
|
|
1727
1724
|
'spawn_packet': {
|
|
1728
|
-
'replyTarget':
|
|
1729
|
-
...
|
|
1725
|
+
'replyTarget': _0x4c4b24,
|
|
1726
|
+
..._0x2dfb9c['taskId'] ? { 'taskId': _0x2dfb9c['taskId'] } : _0x2dfb9c['taskNumber'] != null ? { 'taskId': _0x279a71(_0x47d466._0x192d3f) + _0x2dfb9c[_0x279a71(_0x47d466._0x44fa42)] } : {}
|
|
1730
1727
|
},
|
|
1731
1728
|
'payload': {
|
|
1732
|
-
'mode':
|
|
1733
|
-
'text':
|
|
1729
|
+
'mode': _0x279a71(0x1f0),
|
|
1730
|
+
'text': _0x3ee1fa
|
|
1734
1731
|
}
|
|
1735
1732
|
})
|
|
1736
|
-
}),
|
|
1737
|
-
if (!
|
|
1738
|
-
throw new Error(
|
|
1733
|
+
}), _0x4d1b0c = await _0x5d68ef['json']();
|
|
1734
|
+
if (!_0x4d1b0c['ok'])
|
|
1735
|
+
throw new Error(_0x4d1b0c[_0x279a71(0x232)] ?? _0x279a71(_0x47d466._0x304cd1));
|
|
1739
1736
|
return {
|
|
1740
1737
|
'stopMain': !![],
|
|
1741
|
-
'threadTarget':
|
|
1742
|
-
'workerDisposition':
|
|
1738
|
+
'threadTarget': _0x4c4b24,
|
|
1739
|
+
'workerDisposition': _0x4d1b0c['disposition'] === _0x279a71(0x2ef) ? _0x279a71(_0x47d466._0x2691c2) : _0x279a71(_0x47d466._0x477f07),
|
|
1743
1740
|
'workerHandoff': !![],
|
|
1744
|
-
'workerSessionId':
|
|
1745
|
-
'executionMode':
|
|
1741
|
+
'workerSessionId': _0x4d1b0c[_0x279a71(0x1ac)] ?? '',
|
|
1742
|
+
'executionMode': _0x279a71(0x210)
|
|
1746
1743
|
};
|
|
1747
1744
|
}
|
|
1748
|
-
async function
|
|
1749
|
-
const
|
|
1750
|
-
if (!
|
|
1745
|
+
async function _0x3a612f() {
|
|
1746
|
+
const _0x18b9a8 = _0x4b05;
|
|
1747
|
+
if (!_0x21cc16[_0x18b9a8(0x2a3)] || !_0x21cc16['agentId'] || _0x21cc16['workerMode'])
|
|
1748
|
+
return null;
|
|
1749
|
+
try {
|
|
1750
|
+
const _0x3f1bff = await fetch(_0x21cc16[_0x18b9a8(_0x1d4339._0x2f30dd)] + '/workers/list?agent_id=' + encodeURIComponent(_0x21cc16[_0x18b9a8(_0x1d4339._0x254080)])), _0x4daa3d = await _0x3f1bff[_0x18b9a8(_0x1d4339._0x2eb9d2)]();
|
|
1751
|
+
if (!_0x4daa3d['ok'])
|
|
1752
|
+
return null;
|
|
1753
|
+
const _0x1bfe8e = new Set();
|
|
1754
|
+
for (const _0x2ac430 of _0x4daa3d[_0x18b9a8(_0x1d4339._0xace8d1)]) {
|
|
1755
|
+
_0x2ac430[_0x18b9a8(_0x1d4339._0x2dd878)] !== _0x18b9a8(_0x1d4339._0x846a03) && _0x2ac430[_0x18b9a8(_0x1d4339._0x4c7a76)] && _0x1bfe8e[_0x18b9a8(0x264)](_0x2ac430[_0x18b9a8(_0x1d4339._0x5d5c63)]);
|
|
1756
|
+
}
|
|
1757
|
+
return _0x1bfe8e[_0x18b9a8(0x32b)] > 0x0 ? _0x1bfe8e : null;
|
|
1758
|
+
} catch {
|
|
1759
|
+
return null;
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
const _0x38f26b = new Set([
|
|
1763
|
+
'running',
|
|
1764
|
+
_0x9c3ae1(_0x21a67d._0x2782e2),
|
|
1765
|
+
_0x9c3ae1(_0x21a67d._0x3c564b)
|
|
1766
|
+
]);
|
|
1767
|
+
async function _0x2ef1f9() {
|
|
1768
|
+
const _0x4146cf = _0x9c3ae1;
|
|
1769
|
+
if (!_0x21cc16[_0x4146cf(0x2a3)] || !_0x21cc16[_0x4146cf(_0x55c200._0x381bb0)] || _0x21cc16['workerMode'])
|
|
1751
1770
|
return null;
|
|
1752
1771
|
try {
|
|
1753
|
-
const
|
|
1754
|
-
if (!
|
|
1772
|
+
const _0x519e3d = await fetch(_0x21cc16[_0x4146cf(0x2a3)] + '/workers/list?agent_id=' + encodeURIComponent(_0x21cc16['agentId'])), _0x205e8a = await _0x519e3d[_0x4146cf(0x1a3)]();
|
|
1773
|
+
if (!_0x205e8a['ok'])
|
|
1755
1774
|
return null;
|
|
1756
|
-
const
|
|
1757
|
-
for (const
|
|
1758
|
-
|
|
1775
|
+
const _0x1a5109 = new Set();
|
|
1776
|
+
for (const _0x12d256 of _0x205e8a[_0x4146cf(0x246)]) {
|
|
1777
|
+
_0x38f26b['has'](_0x12d256[_0x4146cf(0x212)]) && _0x12d256['thread_target'] && _0x1a5109['add'](_0x12d256['thread_target']);
|
|
1759
1778
|
}
|
|
1760
|
-
return
|
|
1779
|
+
return _0x1a5109[_0x4146cf(0x32b)] > 0x0 ? _0x1a5109 : null;
|
|
1761
1780
|
} catch {
|
|
1762
1781
|
return null;
|
|
1763
1782
|
}
|
|
1764
1783
|
}
|
|
1765
1784
|
return {
|
|
1766
|
-
async 'send_message'(
|
|
1767
|
-
const
|
|
1768
|
-
if (!
|
|
1769
|
-
const
|
|
1770
|
-
if (
|
|
1771
|
-
const
|
|
1772
|
-
|
|
1785
|
+
async 'send_message'(_0x1ba882) {
|
|
1786
|
+
const _0x5e3500 = _0x9c3ae1;
|
|
1787
|
+
if (!_0x21cc16[_0x5e3500(_0x5a0aec._0x463408)] && _0x21cc16[_0x5e3500(0x259)] && _0x21cc16[_0x5e3500(_0x5a0aec._0x4af2c0)] && _0x21cc16[_0x5e3500(_0x5a0aec._0x16e00a)]) {
|
|
1788
|
+
const _0x282092 = await _0x21cc16[_0x5e3500(0x1d6)][_0x5e3500(_0x5a0aec._0x4fa8af)](_0x1ba882[_0x5e3500(_0x5a0aec._0x1417c8)]);
|
|
1789
|
+
if (_0x282092['task'] && _0x282092[_0x5e3500(_0x5a0aec._0x2d3e15)]) {
|
|
1790
|
+
const _0x1b769d = _0x282092['task'][_0x5e3500(0x244)] != null ? '#' + _0x282092[_0x5e3500(_0x5a0aec._0x279d9c)]['taskNumber'] : _0x5e3500(_0x5a0aec._0x18df33), _0x5361fc = _0x282092[_0x5e3500(0x2b2)] != null ? _0x282092[_0x5e3500(_0x5a0aec._0xadc0c5)] + ':t' + _0x282092['threadNumber'] : _0x282092['target'] + ':' + _0x282092[_0x5e3500(_0x5a0aec._0x215359)][_0x5e3500(0x27e)](0x0, 0x8), _0x194836 = await _0x2ef1f9();
|
|
1791
|
+
if (_0x194836?.['has'](_0x5361fc))
|
|
1792
|
+
return [
|
|
1793
|
+
_0x5e3500(_0x5a0aec._0x1dbc48) + _0x1b769d + _0x5e3500(0x2d8) + _0x5361fc + _0x5e3500(_0x5a0aec._0x4b3752),
|
|
1794
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1795
|
+
][_0x5e3500(0x28d)]('\x0a');
|
|
1796
|
+
const _0x205a15 = [
|
|
1797
|
+
_0x5e3500(0x1dc) + _0x5361fc + _0x5e3500(0x2b0) + new Date()[_0x5e3500(_0x5a0aec._0x30717e)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1773
1798
|
'',
|
|
1774
|
-
|
|
1775
|
-
'Task:\x20' +
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
][
|
|
1779
|
-
'method':
|
|
1780
|
-
'headers': { 'Content-Type':
|
|
1781
|
-
'body': JSON[
|
|
1782
|
-
'agent_id':
|
|
1783
|
-
'thread_target':
|
|
1799
|
+
_0x5e3500(_0x5a0aec._0x12582c) + _0x1ba882[_0x5e3500(_0x5a0aec._0x400562)],
|
|
1800
|
+
'Task:\x20' + _0x1b769d + '\x20(' + _0x282092[_0x5e3500(_0x5a0aec._0x46bc8c)][_0x5e3500(_0x5a0aec._0x55ac70)] + ')',
|
|
1801
|
+
_0x5e3500(_0x5a0aec._0x3d1ed8) + _0x5361fc,
|
|
1802
|
+
_0x5e3500(_0x5a0aec._0x59b2bc)
|
|
1803
|
+
][_0x5e3500(_0x5a0aec._0x1b73df)]('\x0a'), _0x401e44 = await fetch(_0x21cc16['daemonLocalUrl'] + _0x5e3500(0x2ae), {
|
|
1804
|
+
'method': _0x5e3500(0x2ac),
|
|
1805
|
+
'headers': { 'Content-Type': _0x5e3500(_0x5a0aec._0x2090bb) },
|
|
1806
|
+
'body': JSON[_0x5e3500(0x2d0)]({
|
|
1807
|
+
'agent_id': _0x21cc16[_0x5e3500(0x2dd)],
|
|
1808
|
+
'thread_target': _0x5361fc,
|
|
1784
1809
|
'spawn_packet': {
|
|
1785
|
-
'replyTarget':
|
|
1786
|
-
'taskId':
|
|
1810
|
+
'replyTarget': _0x5361fc,
|
|
1811
|
+
'taskId': _0x282092['task'][_0x5e3500(_0x5a0aec._0x55ac70)]
|
|
1787
1812
|
},
|
|
1788
1813
|
'payload': {
|
|
1789
|
-
'mode':
|
|
1790
|
-
'text':
|
|
1814
|
+
'mode': _0x5e3500(_0x5a0aec._0x3ad56b),
|
|
1815
|
+
'text': _0x205a15
|
|
1791
1816
|
}
|
|
1792
1817
|
})
|
|
1793
|
-
}),
|
|
1794
|
-
if (!
|
|
1795
|
-
throw new Error(
|
|
1818
|
+
}), _0x3a801e = await _0x401e44[_0x5e3500(0x1a3)]();
|
|
1819
|
+
if (!_0x3a801e['ok'])
|
|
1820
|
+
throw new Error(_0x3a801e[_0x5e3500(_0x5a0aec._0x5192f8)] ?? _0x5e3500(0x27f));
|
|
1796
1821
|
return [
|
|
1797
|
-
|
|
1798
|
-
|
|
1822
|
+
_0x5e3500(_0x5a0aec._0x146c18) + _0x1b769d + _0x5e3500(_0x5a0aec._0x462b35) + _0x5361fc + _0x5e3500(_0x5a0aec._0x501403),
|
|
1823
|
+
_0x5e3500(_0x5a0aec._0x1e718f) + (_0x3a801e[_0x5e3500(0x2c5)] === _0x5e3500(_0x5a0aec._0x20cb37) ? _0x5e3500(_0x5a0aec._0x20cb37) : _0x5e3500(0x1de)) + '.',
|
|
1799
1824
|
'⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1800
|
-
][
|
|
1825
|
+
][_0x5e3500(0x28d)]('\x0a');
|
|
1801
1826
|
}
|
|
1802
1827
|
}
|
|
1803
|
-
const
|
|
1804
|
-
'attachmentIds':
|
|
1805
|
-
'content':
|
|
1806
|
-
'target':
|
|
1807
|
-
'visibility':
|
|
1828
|
+
const _0x7c3b8e = await _0x21cc16[_0x5e3500(_0x5a0aec._0x3ca07d)][_0x5e3500(0x31a)]({
|
|
1829
|
+
'attachmentIds': _0x1ba882[_0x5e3500(0x1aa)],
|
|
1830
|
+
'content': _0x1ba882['content'],
|
|
1831
|
+
'target': _0x1ba882[_0x5e3500(_0x5a0aec._0xc5b0c1)],
|
|
1832
|
+
'visibility': _0x1ba882[_0x5e3500(0x213)]
|
|
1808
1833
|
});
|
|
1809
|
-
return
|
|
1834
|
+
return 'Message\x20sent\x20to\x20' + _0x1ba882[_0x5e3500(0x30c)] + _0x5e3500(0x235) + _0x7c3b8e[_0x5e3500(_0x5a0aec._0x3104dd)];
|
|
1810
1835
|
},
|
|
1811
1836
|
async 'check_messages'() {
|
|
1812
|
-
const
|
|
1813
|
-
if (!
|
|
1814
|
-
const
|
|
1815
|
-
if (
|
|
1816
|
-
return formatCheckMessages(
|
|
1837
|
+
const _0x2f26ca = _0x9c3ae1, _0x486094 = await _0x21cc16[_0x2f26ca(_0x40f216._0x3b77ec)][_0x2f26ca(0x24a)]();
|
|
1838
|
+
if (!_0x21cc16['workerMode']) {
|
|
1839
|
+
const _0x5a5de8 = await _0x3a612f();
|
|
1840
|
+
if (_0x5a5de8)
|
|
1841
|
+
return formatCheckMessages(_0x486094[_0x2f26ca(0x209)][_0x2f26ca(0x31e)](_0x1548f3 => !_0x5a5de8[_0x2f26ca(0x218)](_0x1548f3[_0x2f26ca(0x30c)])));
|
|
1817
1842
|
}
|
|
1818
|
-
return formatCheckMessages(
|
|
1843
|
+
return formatCheckMessages(_0x486094[_0x2f26ca(0x209)]);
|
|
1819
1844
|
},
|
|
1820
|
-
async 'read_history'(
|
|
1821
|
-
const
|
|
1822
|
-
return formatHistory(
|
|
1845
|
+
async 'read_history'(_0x2f6f1e) {
|
|
1846
|
+
const _0x1ec7a0 = _0x9c3ae1, _0x3c8ff2 = await _0x21cc16[_0x1ec7a0(_0x1f2ea6._0x1fe996)][_0x1ec7a0(_0x1f2ea6._0x340b54)](_0x2f6f1e);
|
|
1847
|
+
return formatHistory(_0x3c8ff2);
|
|
1823
1848
|
},
|
|
1824
1849
|
async 'list_server'() {
|
|
1825
|
-
const
|
|
1826
|
-
return formatServerDirectory(
|
|
1850
|
+
const _0x2a0631 = _0x9c3ae1, _0x3ca02c = await _0x21cc16[_0x2a0631(0x1d6)][_0x2a0631(0x228)]();
|
|
1851
|
+
return formatServerDirectory(_0x3ca02c);
|
|
1827
1852
|
},
|
|
1828
|
-
async 'list_tasks'(
|
|
1829
|
-
const
|
|
1830
|
-
let
|
|
1831
|
-
if (
|
|
1853
|
+
async 'list_tasks'(_0x3753c1) {
|
|
1854
|
+
const _0x381a63 = _0x9c3ae1, _0x82a623 = await _0x21cc16[_0x381a63(_0x4ef646._0x4d819e)][_0x381a63(0x207)](_0x3753c1);
|
|
1855
|
+
let _0x52b8af;
|
|
1856
|
+
if (_0x21cc16['daemonLocalUrl'] && _0x21cc16[_0x381a63(_0x4ef646._0x3be9e1)])
|
|
1832
1857
|
try {
|
|
1833
|
-
const
|
|
1834
|
-
if (
|
|
1835
|
-
const
|
|
1836
|
-
|
|
1837
|
-
for (const
|
|
1838
|
-
if (
|
|
1858
|
+
const _0x5e0d2d = await fetch(_0x21cc16['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0x21cc16[_0x381a63(0x2dd)])), _0x1651ba = await _0x5e0d2d['json']();
|
|
1859
|
+
if (_0x1651ba['ok']) {
|
|
1860
|
+
const _0x36177b = _0x3753c1['channel'] + ':';
|
|
1861
|
+
_0x52b8af = new Set();
|
|
1862
|
+
for (const _0x1e5e6d of _0x1651ba[_0x381a63(0x246)]) {
|
|
1863
|
+
if (_0x1e5e6d['status'] === _0x381a63(_0x4ef646._0x326508))
|
|
1839
1864
|
continue;
|
|
1840
|
-
if (
|
|
1841
|
-
const
|
|
1842
|
-
if (
|
|
1843
|
-
|
|
1865
|
+
if (_0x1e5e6d[_0x381a63(0x256)]?.[_0x381a63(_0x4ef646._0x12ae2a)](_0x36177b)) {
|
|
1866
|
+
const _0x5b0599 = _0x1e5e6d[_0x381a63(0x256)][_0x381a63(0x27e)](_0x36177b[_0x381a63(_0x4ef646._0x150fcc)]), _0x5e7ff3 = _0x82a623[_0x381a63(0x2cf)]['find'](_0x344c2e => _0x344c2e['messageId']?.[_0x381a63(0x24f)](_0x5b0599) === !![]);
|
|
1867
|
+
if (_0x5e7ff3?.[_0x381a63(_0x4ef646._0x5e8462)] != null) {
|
|
1868
|
+
_0x52b8af[_0x381a63(0x264)](_0x5e7ff3[_0x381a63(_0x4ef646._0x5e8462)]);
|
|
1844
1869
|
continue;
|
|
1845
1870
|
}
|
|
1846
1871
|
}
|
|
1847
|
-
if (
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1872
|
+
if (_0x1e5e6d[_0x381a63(_0x4ef646._0x2b5380)]) {
|
|
1873
|
+
const _0x14d9e6 = _0x82a623['tasks'][_0x381a63(_0x4ef646._0x3e9ba8)](_0x58ff10 => _0x58ff10['taskId'] === _0x1e5e6d[_0x381a63(0x301)]);
|
|
1874
|
+
_0x14d9e6?.[_0x381a63(_0x4ef646._0x1f6c1f)] != null && _0x52b8af[_0x381a63(_0x4ef646._0x3c5aec)](_0x14d9e6[_0x381a63(0x244)]);
|
|
1850
1875
|
}
|
|
1851
1876
|
}
|
|
1852
1877
|
}
|
|
1853
1878
|
} catch {
|
|
1854
1879
|
}
|
|
1855
|
-
return formatTaskList(
|
|
1880
|
+
return formatTaskList(_0x82a623[_0x381a63(_0x4ef646._0x46a50e)], _0x52b8af);
|
|
1856
1881
|
},
|
|
1857
|
-
async 'create_tasks'(
|
|
1858
|
-
const
|
|
1859
|
-
return formatCreatedTasks(
|
|
1882
|
+
async 'create_tasks'(_0x212eb3) {
|
|
1883
|
+
const _0x2615f2 = _0x9c3ae1, _0x7fa7cf = await _0x21cc16['client'][_0x2615f2(_0x305b59._0x56c9dc)](_0x212eb3);
|
|
1884
|
+
return formatCreatedTasks(_0x7fa7cf['tasks']);
|
|
1860
1885
|
},
|
|
1861
|
-
async 'claim_tasks'(
|
|
1862
|
-
const
|
|
1863
|
-
const
|
|
1864
|
-
if (!
|
|
1865
|
-
return
|
|
1886
|
+
async 'claim_tasks'(_0x1eafb5) {
|
|
1887
|
+
const _0x2a17f9 = _0x9c3ae1, _0x3b0a26 = await _0x21cc16[_0x2a17f9(_0x4a0169._0x21e76b)][_0x2a17f9(_0x4a0169._0x495f52)](_0x1eafb5), _0x24feae = await Promise['all'](_0x3b0a26[_0x2a17f9(0x2cc)][_0x2a17f9(_0x4a0169._0x2c61e7)](async _0x554a4f => {
|
|
1888
|
+
const _0x4ccf94 = _0x2a17f9;
|
|
1889
|
+
if (!_0x554a4f['success'] || !_0x554a4f['messageId'])
|
|
1890
|
+
return _0x554a4f;
|
|
1866
1891
|
try {
|
|
1867
|
-
const
|
|
1868
|
-
'channel':
|
|
1869
|
-
'messageId':
|
|
1870
|
-
'taskId':
|
|
1871
|
-
'taskNumber':
|
|
1872
|
-
'threadNumber':
|
|
1892
|
+
const _0x490a49 = await _0x3c871f({
|
|
1893
|
+
'channel': _0x1eafb5['channel'],
|
|
1894
|
+
'messageId': _0x554a4f[_0x4ccf94(0x314)],
|
|
1895
|
+
'taskId': _0x554a4f[_0x4ccf94(0x2aa)],
|
|
1896
|
+
'taskNumber': _0x554a4f[_0x4ccf94(_0x502eb2._0x197948)],
|
|
1897
|
+
'threadNumber': _0x554a4f[_0x4ccf94(_0x502eb2._0x27a07a)]
|
|
1873
1898
|
});
|
|
1874
|
-
return
|
|
1875
|
-
...
|
|
1876
|
-
...
|
|
1877
|
-
} :
|
|
1878
|
-
} catch (
|
|
1899
|
+
return _0x490a49 ? {
|
|
1900
|
+
..._0x554a4f,
|
|
1901
|
+
..._0x490a49
|
|
1902
|
+
} : _0x554a4f;
|
|
1903
|
+
} catch (_0x982d02) {
|
|
1879
1904
|
return {
|
|
1880
|
-
...
|
|
1881
|
-
'workerHandoffError':
|
|
1905
|
+
..._0x554a4f,
|
|
1906
|
+
'workerHandoffError': _0x982d02 instanceof Error ? _0x982d02[_0x4ccf94(0x22d)] : 'worker\x20handoff\x20failed'
|
|
1882
1907
|
};
|
|
1883
1908
|
}
|
|
1884
1909
|
}));
|
|
1885
|
-
return formatClaimTaskResults(
|
|
1910
|
+
return formatClaimTaskResults(_0x24feae);
|
|
1886
1911
|
},
|
|
1887
|
-
async 'unclaim_task'(
|
|
1888
|
-
const
|
|
1889
|
-
return formatUnclaimTaskResult(
|
|
1912
|
+
async 'unclaim_task'(_0x1145f5) {
|
|
1913
|
+
const _0x4ee7a2 = _0x9c3ae1, _0x1c6ef0 = await _0x21cc16[_0x4ee7a2(_0x141d99._0x2a3664)]['unclaimTask'](_0x1145f5);
|
|
1914
|
+
return formatUnclaimTaskResult(_0x1c6ef0);
|
|
1890
1915
|
},
|
|
1891
|
-
async 'update_task_status'(
|
|
1892
|
-
const
|
|
1893
|
-
return formatUpdateTaskStatusResult(
|
|
1916
|
+
async 'update_task_status'(_0x17e936) {
|
|
1917
|
+
const _0x52ac15 = _0x9c3ae1, _0x45d422 = await _0x21cc16['client'][_0x52ac15(0x2ff)](_0x17e936);
|
|
1918
|
+
return formatUpdateTaskStatusResult(_0x45d422);
|
|
1894
1919
|
},
|
|
1895
|
-
async 'upload_file'(
|
|
1896
|
-
const
|
|
1897
|
-
sizeBytes:
|
|
1898
|
-
...
|
|
1899
|
-
} =
|
|
1900
|
-
'channel':
|
|
1901
|
-
...
|
|
1920
|
+
async 'upload_file'(_0x3913e3) {
|
|
1921
|
+
const _0x4ff2df = _0x9c3ae1, _0x5cd21f = await _0x21cc16['uploadPreparer'](_0x3913e3[_0x4ff2df(_0x12a2e9._0x32cc80)]), {
|
|
1922
|
+
sizeBytes: _0x39bc23,
|
|
1923
|
+
..._0x24bb85
|
|
1924
|
+
} = _0x5cd21f, _0x1b4ef2 = await _0x21cc16[_0x4ff2df(0x1d6)][_0x4ff2df(_0x12a2e9._0xb7b423)]({
|
|
1925
|
+
'channel': _0x3913e3['channel'],
|
|
1926
|
+
..._0x24bb85
|
|
1902
1927
|
});
|
|
1903
|
-
return formatUploadResult(
|
|
1928
|
+
return formatUploadResult(_0x1b4ef2);
|
|
1904
1929
|
},
|
|
1905
|
-
async 'view_file'(
|
|
1906
|
-
const
|
|
1907
|
-
if (
|
|
1908
|
-
return formatViewFileResult(
|
|
1909
|
-
const
|
|
1910
|
-
'attachmentId':
|
|
1911
|
-
'contentType':
|
|
1912
|
-
'data':
|
|
1913
|
-
'originalFilename':
|
|
1930
|
+
async 'view_file'(_0x1c6497) {
|
|
1931
|
+
const _0x5c3322 = _0x9c3ae1, _0x2459a8 = await _0x21cc16[_0x5c3322(0x2d5)]['findCachedPath'](_0x1c6497['attachment_id']);
|
|
1932
|
+
if (_0x2459a8)
|
|
1933
|
+
return formatViewFileResult(_0x2459a8, !![]);
|
|
1934
|
+
const _0x5df540 = await _0x21cc16[_0x5c3322(_0x1a6170._0x427a17)][_0x5c3322(_0x1a6170._0x46a61f)](_0x1c6497[_0x5c3322(_0x1a6170._0x3fb2d8)]), _0x291796 = await _0x21cc16['attachmentCache'][_0x5c3322(_0x1a6170._0x1767f0)]({
|
|
1935
|
+
'attachmentId': _0x1c6497['attachment_id'],
|
|
1936
|
+
'contentType': _0x5df540[_0x5c3322(0x1c9)],
|
|
1937
|
+
'data': _0x5df540['data'],
|
|
1938
|
+
'originalFilename': _0x5df540[_0x5c3322(0x252)]
|
|
1914
1939
|
});
|
|
1915
|
-
return formatViewFileResult(
|
|
1940
|
+
return formatViewFileResult(_0x291796, ![]);
|
|
1916
1941
|
},
|
|
1917
|
-
async 'get_worker_status'(
|
|
1918
|
-
const
|
|
1919
|
-
if (!
|
|
1920
|
-
return
|
|
1921
|
-
const
|
|
1922
|
-
if (!
|
|
1923
|
-
return
|
|
1924
|
-
return
|
|
1942
|
+
async 'get_worker_status'(_0x555737) {
|
|
1943
|
+
const _0xbaa30a = _0x9c3ae1;
|
|
1944
|
+
if (!_0x21cc16['daemonLocalUrl'])
|
|
1945
|
+
return _0xbaa30a(0x248);
|
|
1946
|
+
const _0x2b86cd = await fetch(_0x21cc16['daemonLocalUrl'] + _0xbaa30a(_0x365214._0x22f31d) + encodeURIComponent(_0x555737[_0xbaa30a(0x2f9)])), _0x58313e = await _0x2b86cd[_0xbaa30a(_0x365214._0x2af66b)]();
|
|
1947
|
+
if (!_0x58313e['ok'])
|
|
1948
|
+
return _0xbaa30a(0x1ee) + _0x555737['work_key'] + _0xbaa30a(0x231);
|
|
1949
|
+
return _0xbaa30a(_0x365214._0xa55e71) + _0x555737[_0xbaa30a(_0x365214._0x2a90c8)] + _0xbaa30a(_0x365214._0x37cc28) + _0x58313e[_0xbaa30a(_0x365214._0x3e0d47)];
|
|
1925
1950
|
},
|
|
1926
|
-
async 'get_worker_result'(
|
|
1927
|
-
const
|
|
1928
|
-
if (!
|
|
1929
|
-
return
|
|
1930
|
-
const
|
|
1931
|
-
if (!
|
|
1932
|
-
return
|
|
1933
|
-
return JSON[
|
|
1951
|
+
async 'get_worker_result'(_0x3ea0a2) {
|
|
1952
|
+
const _0x1b7372 = _0x9c3ae1;
|
|
1953
|
+
if (!_0x21cc16['daemonLocalUrl'])
|
|
1954
|
+
return _0x1b7372(0x248);
|
|
1955
|
+
const _0x2a26d7 = await fetch(_0x21cc16[_0x1b7372(_0x39afb5._0x5450b8)] + '/workers/result?work_key=' + encodeURIComponent(_0x3ea0a2[_0x1b7372(_0x39afb5._0x168591)])), _0x274cee = await _0x2a26d7[_0x1b7372(0x1a3)]();
|
|
1956
|
+
if (!_0x274cee[_0x1b7372(_0x39afb5._0x266317)])
|
|
1957
|
+
return _0x1b7372(_0x39afb5._0x5193b8) + _0x3ea0a2['work_key'] + '\x22';
|
|
1958
|
+
return JSON[_0x1b7372(_0x39afb5._0x548aa7)](_0x274cee[_0x1b7372(0x205)], null, 0x2);
|
|
1934
1959
|
},
|
|
1935
|
-
async 'finish_worker'(
|
|
1936
|
-
const
|
|
1937
|
-
if (!
|
|
1938
|
-
return
|
|
1939
|
-
const
|
|
1940
|
-
'method':
|
|
1941
|
-
'headers': { 'Content-Type':
|
|
1942
|
-
'body': JSON[
|
|
1943
|
-
'work_key':
|
|
1960
|
+
async 'finish_worker'(_0x5766a2) {
|
|
1961
|
+
const _0x54fce9 = _0x9c3ae1;
|
|
1962
|
+
if (!_0x21cc16[_0x54fce9(0x2a3)])
|
|
1963
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1964
|
+
const _0xd00f54 = await fetch(_0x21cc16[_0x54fce9(0x2a3)] + _0x54fce9(_0x54c0ea._0x2d3622), {
|
|
1965
|
+
'method': _0x54fce9(_0x54c0ea._0x29a572),
|
|
1966
|
+
'headers': { 'Content-Type': _0x54fce9(0x2be) },
|
|
1967
|
+
'body': JSON[_0x54fce9(0x2d0)]({
|
|
1968
|
+
'work_key': _0x5766a2[_0x54fce9(0x2f9)],
|
|
1944
1969
|
'resume_packet': {
|
|
1945
1970
|
'objective': '',
|
|
1946
|
-
'result':
|
|
1947
|
-
'summary':
|
|
1948
|
-
'decisions':
|
|
1949
|
-
'filesChanged':
|
|
1950
|
-
'openIssues':
|
|
1951
|
-
'nextSteps':
|
|
1971
|
+
'result': _0x5766a2['result'],
|
|
1972
|
+
'summary': _0x5766a2['summary'],
|
|
1973
|
+
'decisions': _0x5766a2[_0x54fce9(_0x54c0ea._0x2166d5)] ?? [],
|
|
1974
|
+
'filesChanged': _0x5766a2[_0x54fce9(0x269)] ?? [],
|
|
1975
|
+
'openIssues': _0x5766a2['open_issues'] ?? [],
|
|
1976
|
+
'nextSteps': _0x5766a2[_0x54fce9(0x26d)] ?? []
|
|
1952
1977
|
}
|
|
1953
1978
|
})
|
|
1954
|
-
}),
|
|
1955
|
-
if (!
|
|
1956
|
-
throw new Error(
|
|
1957
|
-
return
|
|
1979
|
+
}), _0x55df29 = await _0xd00f54[_0x54fce9(0x1a3)]();
|
|
1980
|
+
if (!_0x55df29['ok'])
|
|
1981
|
+
throw new Error(_0x55df29['error'] ?? _0x54fce9(0x286));
|
|
1982
|
+
return _0x54fce9(_0x54c0ea._0x3a0775) + _0x5766a2[_0x54fce9(0x2f9)] + _0x54fce9(_0x54c0ea._0x3574c9) + _0x5766a2[_0x54fce9(0x304)];
|
|
1958
1983
|
},
|
|
1959
|
-
async 'mark_waiting_input'(
|
|
1960
|
-
const
|
|
1961
|
-
if (!
|
|
1962
|
-
return
|
|
1963
|
-
const
|
|
1964
|
-
'method':
|
|
1965
|
-
'headers': { 'Content-Type':
|
|
1966
|
-
'body': JSON[
|
|
1967
|
-
'work_key':
|
|
1968
|
-
'agent_id':
|
|
1984
|
+
async 'mark_waiting_input'(_0x3e70e6) {
|
|
1985
|
+
const _0x571f04 = _0x9c3ae1;
|
|
1986
|
+
if (!_0x21cc16[_0x571f04(0x2a3)] || !_0x21cc16['agentId'])
|
|
1987
|
+
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
1988
|
+
const _0x5573e9 = await fetch(_0x21cc16[_0x571f04(_0x1a3f2b._0x146207)] + '/workers/waiting_input', {
|
|
1989
|
+
'method': 'POST',
|
|
1990
|
+
'headers': { 'Content-Type': _0x571f04(0x2be) },
|
|
1991
|
+
'body': JSON['stringify']({
|
|
1992
|
+
'work_key': _0x3e70e6[_0x571f04(_0x1a3f2b._0xe376f8)],
|
|
1993
|
+
'agent_id': _0x21cc16[_0x571f04(0x2dd)]
|
|
1969
1994
|
})
|
|
1970
|
-
}),
|
|
1971
|
-
if (!
|
|
1972
|
-
throw new Error(
|
|
1973
|
-
return
|
|
1995
|
+
}), _0x1b0025 = await _0x5573e9[_0x571f04(0x1a3)]();
|
|
1996
|
+
if (!_0x1b0025['ok'])
|
|
1997
|
+
throw new Error(_0x1b0025[_0x571f04(0x232)] ?? 'mark_waiting_input\x20failed');
|
|
1998
|
+
return _0x571f04(0x1ee) + _0x3e70e6[_0x571f04(0x2f9)] + _0x571f04(_0x1a3f2b._0x31e766);
|
|
1974
1999
|
},
|
|
1975
|
-
async 'escalate_to_main'(
|
|
1976
|
-
const
|
|
1977
|
-
if (!
|
|
1978
|
-
return
|
|
1979
|
-
const
|
|
2000
|
+
async 'escalate_to_main'(_0x28f116) {
|
|
2001
|
+
const _0x1a0053 = _0x9c3ae1;
|
|
2002
|
+
if (!_0x21cc16[_0x1a0053(0x2a3)])
|
|
2003
|
+
return _0x1a0053(_0x28be5c._0x129434);
|
|
2004
|
+
const _0x1e0e4d = await fetch(_0x21cc16[_0x1a0053(0x2a3)] + _0x1a0053(0x201), {
|
|
1980
2005
|
'method': 'POST',
|
|
1981
|
-
'headers': { 'Content-Type':
|
|
2006
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1982
2007
|
'body': JSON['stringify']({
|
|
1983
|
-
'work_key':
|
|
1984
|
-
'reason':
|
|
2008
|
+
'work_key': _0x28f116[_0x1a0053(0x2f9)],
|
|
2009
|
+
'reason': _0x28f116['reason']
|
|
1985
2010
|
})
|
|
1986
|
-
}),
|
|
1987
|
-
if (!
|
|
1988
|
-
throw new Error(
|
|
1989
|
-
return
|
|
2011
|
+
}), _0x866d64 = await _0x1e0e4d[_0x1a0053(_0x28be5c._0x34e835)]();
|
|
2012
|
+
if (!_0x866d64['ok'])
|
|
2013
|
+
throw new Error(_0x866d64['error'] ?? _0x1a0053(0x324));
|
|
2014
|
+
return _0x1a0053(0x30a) + _0x28f116[_0x1a0053(0x237)];
|
|
1990
2015
|
}
|
|
1991
2016
|
};
|
|
1992
2017
|
}
|
|
1993
|
-
function textResult(
|
|
1994
|
-
const
|
|
2018
|
+
function textResult(_0xb85172, _0x72f064 = ![]) {
|
|
2019
|
+
const _0x1689b8 = { _0xcd058b: 0x2cd }, _0x17abf9 = _0x5c3349;
|
|
1995
2020
|
return {
|
|
1996
2021
|
'content': [{
|
|
1997
|
-
'type':
|
|
1998
|
-
'text':
|
|
2022
|
+
'type': _0x17abf9(_0x1689b8._0xcd058b),
|
|
2023
|
+
'text': _0xb85172
|
|
1999
2024
|
}],
|
|
2000
|
-
...
|
|
2025
|
+
..._0x72f064 ? { 'isError': !![] } : {}
|
|
2001
2026
|
};
|
|
2002
2027
|
}
|
|
2003
|
-
async function registerChatBridgeTools(
|
|
2004
|
-
const
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
},
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
},
|
|
2056
|
-
|
|
2057
|
-
'target':
|
|
2058
|
-
'content':
|
|
2059
|
-
'attachment_ids':
|
|
2060
|
-
'visibility':
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
])[
|
|
2064
|
-
}, async
|
|
2065
|
-
const
|
|
2028
|
+
async function registerChatBridgeTools(_0x1d6ab3, _0x253781, _0x5c9d5c) {
|
|
2029
|
+
const _0x90e649 = {
|
|
2030
|
+
_0x232434: 0x20d,
|
|
2031
|
+
_0x1abe8b: 0x2d2,
|
|
2032
|
+
_0x1f7cf7: 0x23f,
|
|
2033
|
+
_0xb85cef: 0x27b,
|
|
2034
|
+
_0x2c6424: 0x20d,
|
|
2035
|
+
_0x4c5f9c: 0x2f2,
|
|
2036
|
+
_0x29593f: 0x21a,
|
|
2037
|
+
_0x797e6e: 0x1c7,
|
|
2038
|
+
_0x3929a9: 0x30f,
|
|
2039
|
+
_0x39a17d: 0x2fa,
|
|
2040
|
+
_0x44c8ce: 0x2b9,
|
|
2041
|
+
_0x31c227: 0x20d,
|
|
2042
|
+
_0x1daa24: 0x2a5,
|
|
2043
|
+
_0x4f942e: 0x29b,
|
|
2044
|
+
_0x5f5a1b: 0x245,
|
|
2045
|
+
_0x3e3613: 0x2b9,
|
|
2046
|
+
_0x37bbae: 0x1b3,
|
|
2047
|
+
_0x4f7ed1: 0x1a6,
|
|
2048
|
+
_0xa646a5: 0x253,
|
|
2049
|
+
_0x5da5a2: 0x1c8,
|
|
2050
|
+
_0x5ec35e: 0x1ce,
|
|
2051
|
+
_0x40ff45: 0x2b9,
|
|
2052
|
+
_0x4621aa: 0x2f0,
|
|
2053
|
+
_0x20670b: 0x23f,
|
|
2054
|
+
_0x496655: 0x2fa,
|
|
2055
|
+
_0xb5392: 0x2b9,
|
|
2056
|
+
_0x468e26: 0x23f,
|
|
2057
|
+
_0x144e6c: 0x214,
|
|
2058
|
+
_0x2036cc: 0x31d,
|
|
2059
|
+
_0x421b8e: 0x2ba,
|
|
2060
|
+
_0x14ec46: 0x23f,
|
|
2061
|
+
_0x4587b1: 0x253,
|
|
2062
|
+
_0x1eff39: 0x24d,
|
|
2063
|
+
_0x153ee3: 0x2b9,
|
|
2064
|
+
_0x40f6cf: 0x23e,
|
|
2065
|
+
_0x45102d: 0x2ce,
|
|
2066
|
+
_0x2552f4: 0x251,
|
|
2067
|
+
_0xaf3344: 0x23a,
|
|
2068
|
+
_0x15cda8: 0x23f,
|
|
2069
|
+
_0x343fe8: 0x2b9,
|
|
2070
|
+
_0x11b243: 0x2b9,
|
|
2071
|
+
_0x397ce6: 0x2b9,
|
|
2072
|
+
_0x38e847: 0x2d3,
|
|
2073
|
+
_0x2ac055: 0x241
|
|
2074
|
+
}, _0x4768bf = { _0x5abec2: 0x22d }, _0x1b3d52 = { _0x589d20: 0x22d }, _0x2d80d6 = { _0x4af849: 0x22d }, _0x6240a5 = {
|
|
2075
|
+
_0x1aa517: 0x22d,
|
|
2076
|
+
_0x13f1cd: 0x2b5
|
|
2077
|
+
}, _0x51c634 = { _0x4af81d: 0x27c }, _0x208d77 = {
|
|
2078
|
+
_0x19c3f4: 0x1e6,
|
|
2079
|
+
_0x3f4bd6: 0x27d
|
|
2080
|
+
}, _0x9dc59d = { _0x3abda6: 0x22d }, _0x30c644 = { _0x547a3a: 0x29a }, _0x86efc9 = { _0x2c5bc1: 0x2d2 }, _0x35208c = _0x5c3349, {z: _0x2ea172} = await import('zod');
|
|
2081
|
+
_0x1d6ab3[_0x35208c(_0x90e649._0x232434)](_0x35208c(_0x90e649._0x1abe8b), '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.', {
|
|
2082
|
+
'target': _0x2ea172[_0x35208c(_0x90e649._0x1f7cf7)](),
|
|
2083
|
+
'content': _0x2ea172[_0x35208c(0x23f)](),
|
|
2084
|
+
'attachment_ids': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172['string']())['optional'](),
|
|
2085
|
+
'visibility': _0x2ea172[_0x35208c(0x253)]([
|
|
2086
|
+
'public',
|
|
2087
|
+
_0x35208c(0x2e0)
|
|
2088
|
+
])[_0x35208c(0x2b9)]()[_0x35208c(_0x90e649._0xb85cef)](_0x35208c(0x258))
|
|
2089
|
+
}, async _0x5a8ae3 => {
|
|
2090
|
+
const _0x3a5669 = _0x35208c;
|
|
2066
2091
|
try {
|
|
2067
|
-
return textResult(await
|
|
2068
|
-
} catch (
|
|
2069
|
-
return textResult(
|
|
2092
|
+
return textResult(await _0x253781[_0x3a5669(_0x86efc9._0x2c5bc1)](_0x5a8ae3));
|
|
2093
|
+
} catch (_0x4eaafe) {
|
|
2094
|
+
return textResult(_0x4eaafe instanceof Error ? _0x4eaafe['message'] : _0x3a5669(0x1dd), !![]);
|
|
2070
2095
|
}
|
|
2071
|
-
}),
|
|
2072
|
-
const
|
|
2096
|
+
}), _0x1d6ab3[_0x35208c(_0x90e649._0x2c6424)](_0x35208c(_0x90e649._0x4c5f9c), _0x35208c(_0x90e649._0x29593f), {}, async () => {
|
|
2097
|
+
const _0x25fd49 = _0x35208c;
|
|
2073
2098
|
try {
|
|
2074
|
-
return textResult(await
|
|
2075
|
-
} catch (
|
|
2076
|
-
return textResult(
|
|
2099
|
+
return textResult(await _0x253781['check_messages']());
|
|
2100
|
+
} catch (_0x45f33b) {
|
|
2101
|
+
return textResult(_0x45f33b instanceof Error ? _0x45f33b['message'] : _0x25fd49(_0x30c644._0x547a3a), !![]);
|
|
2077
2102
|
}
|
|
2078
|
-
}),
|
|
2079
|
-
'channel':
|
|
2080
|
-
'limit':
|
|
2081
|
-
'before':
|
|
2082
|
-
'after':
|
|
2083
|
-
}, async
|
|
2084
|
-
const
|
|
2103
|
+
}), _0x1d6ab3[_0x35208c(0x20d)](_0x35208c(_0x90e649._0x797e6e), _0x35208c(_0x90e649._0x3929a9), {
|
|
2104
|
+
'channel': _0x2ea172['string'](),
|
|
2105
|
+
'limit': _0x2ea172[_0x35208c(_0x90e649._0x39a17d)]()[_0x35208c(0x2b9)](),
|
|
2106
|
+
'before': _0x2ea172['number']()[_0x35208c(0x2b9)](),
|
|
2107
|
+
'after': _0x2ea172[_0x35208c(0x2fa)]()[_0x35208c(_0x90e649._0x44c8ce)]()
|
|
2108
|
+
}, async _0x4802f8 => {
|
|
2109
|
+
const _0x337ecf = _0x35208c;
|
|
2085
2110
|
try {
|
|
2086
|
-
return textResult(await
|
|
2087
|
-
} catch (
|
|
2088
|
-
return textResult(
|
|
2111
|
+
return textResult(await _0x253781[_0x337ecf(0x1c7)](_0x4802f8));
|
|
2112
|
+
} catch (_0x6e68ed) {
|
|
2113
|
+
return textResult(_0x6e68ed instanceof Error ? _0x6e68ed[_0x337ecf(_0x9dc59d._0x3abda6)] : _0x337ecf(0x21b), !![]);
|
|
2089
2114
|
}
|
|
2090
|
-
}),
|
|
2091
|
-
const
|
|
2115
|
+
}), _0x1d6ab3[_0x35208c(_0x90e649._0x31c227)]('list_server', 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2116
|
+
const _0x50274f = _0x35208c;
|
|
2092
2117
|
try {
|
|
2093
|
-
return textResult(await
|
|
2094
|
-
} catch (
|
|
2095
|
-
return textResult(
|
|
2118
|
+
return textResult(await _0x253781[_0x50274f(0x285)]());
|
|
2119
|
+
} catch (_0x5922e4) {
|
|
2120
|
+
return textResult(_0x5922e4 instanceof Error ? _0x5922e4[_0x50274f(0x22d)] : _0x50274f(0x291), !![]);
|
|
2096
2121
|
}
|
|
2097
|
-
}),
|
|
2098
|
-
'channel':
|
|
2099
|
-
'status':
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
])[
|
|
2105
|
-
}, async
|
|
2106
|
-
const
|
|
2122
|
+
}), _0x1d6ab3['tool'](_0x35208c(_0x90e649._0x1daa24), _0x35208c(0x21e), {
|
|
2123
|
+
'channel': _0x2ea172['string'](),
|
|
2124
|
+
'status': _0x2ea172[_0x35208c(0x253)]([
|
|
2125
|
+
_0x35208c(_0x90e649._0x4f942e),
|
|
2126
|
+
'in_progress',
|
|
2127
|
+
_0x35208c(_0x90e649._0x5f5a1b),
|
|
2128
|
+
'done'
|
|
2129
|
+
])[_0x35208c(_0x90e649._0x3e3613)]()
|
|
2130
|
+
}, async _0x1a3912 => {
|
|
2131
|
+
const _0x10d576 = _0x35208c;
|
|
2107
2132
|
try {
|
|
2108
|
-
return textResult(await
|
|
2109
|
-
} catch (
|
|
2110
|
-
return textResult(
|
|
2133
|
+
return textResult(await _0x253781[_0x10d576(0x2a5)](_0x1a3912));
|
|
2134
|
+
} catch (_0x4a3ed1) {
|
|
2135
|
+
return textResult(_0x4a3ed1 instanceof Error ? _0x4a3ed1[_0x10d576(0x22d)] : _0x10d576(0x25d), !![]);
|
|
2111
2136
|
}
|
|
2112
|
-
}),
|
|
2113
|
-
'channel':
|
|
2114
|
-
'idempotency_key':
|
|
2115
|
-
'tasks':
|
|
2116
|
-
'title':
|
|
2117
|
-
'description':
|
|
2118
|
-
'priority':
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
])[
|
|
2137
|
+
}), _0x1d6ab3[_0x35208c(_0x90e649._0x31c227)](_0x35208c(_0x90e649._0x37bbae), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2138
|
+
'channel': _0x2ea172[_0x35208c(0x23f)](),
|
|
2139
|
+
'idempotency_key': _0x2ea172[_0x35208c(0x23f)]()['optional'](),
|
|
2140
|
+
'tasks': _0x2ea172[_0x35208c(_0x90e649._0x4f7ed1)](_0x2ea172['object']({
|
|
2141
|
+
'title': _0x2ea172[_0x35208c(0x23f)](),
|
|
2142
|
+
'description': _0x2ea172[_0x35208c(0x23f)]()[_0x35208c(0x2b9)](),
|
|
2143
|
+
'priority': _0x2ea172[_0x35208c(_0x90e649._0xa646a5)]([
|
|
2144
|
+
_0x35208c(0x2a2),
|
|
2145
|
+
'medium',
|
|
2146
|
+
_0x35208c(_0x90e649._0x5da5a2),
|
|
2147
|
+
_0x35208c(_0x90e649._0x5ec35e)
|
|
2148
|
+
])[_0x35208c(_0x90e649._0x40ff45)]()
|
|
2124
2149
|
}))
|
|
2125
|
-
}, async
|
|
2126
|
-
const
|
|
2150
|
+
}, async _0x254c8a => {
|
|
2151
|
+
const _0x4c6ca8 = _0x35208c;
|
|
2127
2152
|
try {
|
|
2128
|
-
return textResult(await
|
|
2129
|
-
} catch (
|
|
2130
|
-
return textResult(
|
|
2153
|
+
return textResult(await _0x253781[_0x4c6ca8(0x1b3)](_0x254c8a));
|
|
2154
|
+
} catch (_0x5214ac) {
|
|
2155
|
+
return textResult(_0x5214ac instanceof Error ? _0x5214ac[_0x4c6ca8(0x22d)] : _0x4c6ca8(0x2c3), !![]);
|
|
2131
2156
|
}
|
|
2132
|
-
}),
|
|
2133
|
-
'channel':
|
|
2134
|
-
'task_numbers':
|
|
2135
|
-
'message_ids':
|
|
2136
|
-
'evidence':
|
|
2137
|
-
'create_thread':
|
|
2138
|
-
'create_task':
|
|
2139
|
-
}))[
|
|
2140
|
-
'idempotency_key':
|
|
2141
|
-
}, async
|
|
2142
|
-
const
|
|
2157
|
+
}), _0x1d6ab3['tool']('claim_tasks', _0x35208c(_0x90e649._0x4621aa), {
|
|
2158
|
+
'channel': _0x2ea172[_0x35208c(_0x90e649._0x20670b)](),
|
|
2159
|
+
'task_numbers': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172[_0x35208c(_0x90e649._0x496655)]())[_0x35208c(_0x90e649._0xb5392)](),
|
|
2160
|
+
'message_ids': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172[_0x35208c(_0x90e649._0x468e26)]())[_0x35208c(0x2b9)](),
|
|
2161
|
+
'evidence': _0x2ea172[_0x35208c(0x20b)](_0x2ea172[_0x35208c(0x23f)](), _0x2ea172[_0x35208c(_0x90e649._0x144e6c)]({
|
|
2162
|
+
'create_thread': _0x2ea172[_0x35208c(_0x90e649._0x2036cc)]()[_0x35208c(0x2b9)](),
|
|
2163
|
+
'create_task': _0x2ea172[_0x35208c(0x31d)]()[_0x35208c(0x2b9)]()
|
|
2164
|
+
}))[_0x35208c(0x2b9)](),
|
|
2165
|
+
'idempotency_key': _0x2ea172['string']()['optional']()
|
|
2166
|
+
}, async _0x664ea2 => {
|
|
2167
|
+
const _0x4d6c8b = _0x35208c;
|
|
2143
2168
|
try {
|
|
2144
|
-
return textResult(await
|
|
2145
|
-
} catch (
|
|
2146
|
-
return textResult(
|
|
2169
|
+
return textResult(await _0x253781[_0x4d6c8b(_0x208d77._0x19c3f4)](_0x664ea2));
|
|
2170
|
+
} catch (_0x178db2) {
|
|
2171
|
+
return textResult(_0x178db2 instanceof Error ? _0x178db2[_0x4d6c8b(0x22d)] : _0x4d6c8b(_0x208d77._0x3f4bd6), !![]);
|
|
2147
2172
|
}
|
|
2148
|
-
}),
|
|
2149
|
-
'channel':
|
|
2150
|
-
'task_number':
|
|
2151
|
-
'idempotency_key':
|
|
2152
|
-
}, async
|
|
2153
|
-
const
|
|
2173
|
+
}), _0x1d6ab3[_0x35208c(0x20d)](_0x35208c(0x2a6), _0x35208c(0x2b4), {
|
|
2174
|
+
'channel': _0x2ea172[_0x35208c(_0x90e649._0x20670b)](),
|
|
2175
|
+
'task_number': _0x2ea172[_0x35208c(0x2fa)](),
|
|
2176
|
+
'idempotency_key': _0x2ea172[_0x35208c(_0x90e649._0x1f7cf7)]()['optional']()
|
|
2177
|
+
}, async _0xda2c51 => {
|
|
2178
|
+
const _0x65c27d = _0x35208c;
|
|
2154
2179
|
try {
|
|
2155
|
-
return textResult(await
|
|
2156
|
-
} catch (
|
|
2157
|
-
return textResult(
|
|
2180
|
+
return textResult(await _0x253781[_0x65c27d(0x2a6)](_0xda2c51));
|
|
2181
|
+
} catch (_0x18c335) {
|
|
2182
|
+
return textResult(_0x18c335 instanceof Error ? _0x18c335[_0x65c27d(0x22d)] : _0x65c27d(0x243), !![]);
|
|
2158
2183
|
}
|
|
2159
|
-
}),
|
|
2160
|
-
'channel':
|
|
2161
|
-
'task_number':
|
|
2162
|
-
'status':
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2184
|
+
}), _0x1d6ab3[_0x35208c(_0x90e649._0x232434)](_0x35208c(_0x90e649._0x421b8e), _0x35208c(0x1a0), {
|
|
2185
|
+
'channel': _0x2ea172[_0x35208c(_0x90e649._0x14ec46)](),
|
|
2186
|
+
'task_number': _0x2ea172['number'](),
|
|
2187
|
+
'status': _0x2ea172[_0x35208c(_0x90e649._0x4587b1)]([
|
|
2188
|
+
'todo',
|
|
2189
|
+
'in_progress',
|
|
2190
|
+
_0x35208c(0x245),
|
|
2191
|
+
_0x35208c(_0x90e649._0x1eff39)
|
|
2167
2192
|
]),
|
|
2168
|
-
'idempotency_key':
|
|
2169
|
-
}, async
|
|
2170
|
-
const
|
|
2193
|
+
'idempotency_key': _0x2ea172['string']()[_0x35208c(_0x90e649._0x153ee3)]()
|
|
2194
|
+
}, async _0x4768b8 => {
|
|
2195
|
+
const _0x1d2a91 = _0x35208c;
|
|
2171
2196
|
try {
|
|
2172
|
-
return textResult(await
|
|
2173
|
-
} catch (
|
|
2174
|
-
return textResult(
|
|
2197
|
+
return textResult(await _0x253781[_0x1d2a91(0x2ba)](_0x4768b8));
|
|
2198
|
+
} catch (_0x9534d0) {
|
|
2199
|
+
return textResult(_0x9534d0 instanceof Error ? _0x9534d0[_0x1d2a91(0x22d)] : _0x1d2a91(_0x51c634._0x4af81d), !![]);
|
|
2175
2200
|
}
|
|
2176
|
-
}),
|
|
2177
|
-
'channel':
|
|
2178
|
-
'file_path':
|
|
2179
|
-
}, async
|
|
2180
|
-
const
|
|
2201
|
+
}), _0x1d6ab3[_0x35208c(0x20d)](_0x35208c(0x302), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2202
|
+
'channel': _0x2ea172[_0x35208c(0x23f)](),
|
|
2203
|
+
'file_path': _0x2ea172[_0x35208c(_0x90e649._0x20670b)]()
|
|
2204
|
+
}, async _0x14b56f => {
|
|
2205
|
+
const _0x4083c = _0x35208c;
|
|
2181
2206
|
try {
|
|
2182
|
-
return textResult(await
|
|
2183
|
-
} catch (
|
|
2184
|
-
return textResult(
|
|
2207
|
+
return textResult(await _0x253781[_0x4083c(0x302)](_0x14b56f));
|
|
2208
|
+
} catch (_0x517c11) {
|
|
2209
|
+
return textResult(_0x517c11 instanceof Error ? _0x517c11['message'] : _0x4083c(0x2b8), !![]);
|
|
2185
2210
|
}
|
|
2186
|
-
}),
|
|
2187
|
-
const
|
|
2211
|
+
}), _0x1d6ab3[_0x35208c(0x20d)]('view_file', _0x35208c(0x226), { 'attachment_id': _0x2ea172['string']() }, async _0x4cd7eb => {
|
|
2212
|
+
const _0x1733bb = _0x35208c;
|
|
2188
2213
|
try {
|
|
2189
|
-
return textResult(await
|
|
2190
|
-
} catch (
|
|
2191
|
-
return textResult(
|
|
2214
|
+
return textResult(await _0x253781[_0x1733bb(0x1b4)](_0x4cd7eb));
|
|
2215
|
+
} catch (_0x1f59c8) {
|
|
2216
|
+
return textResult(_0x1f59c8 instanceof Error ? _0x1f59c8[_0x1733bb(_0x6240a5._0x1aa517)] : _0x1733bb(_0x6240a5._0x13f1cd), !![]);
|
|
2192
2217
|
}
|
|
2193
|
-
}),
|
|
2194
|
-
const
|
|
2218
|
+
}), _0x1d6ab3[_0x35208c(0x20d)]('get_worker_status', _0x35208c(0x219), { 'work_key': _0x2ea172[_0x35208c(0x23f)]() }, async _0x5e3cd1 => {
|
|
2219
|
+
const _0x803813 = _0x35208c;
|
|
2195
2220
|
try {
|
|
2196
|
-
return textResult(await
|
|
2197
|
-
} catch (
|
|
2198
|
-
return textResult(
|
|
2221
|
+
return textResult(await _0x253781[_0x803813(0x2bc)](_0x5e3cd1));
|
|
2222
|
+
} catch (_0x11bdee) {
|
|
2223
|
+
return textResult(_0x11bdee instanceof Error ? _0x11bdee[_0x803813(_0x2d80d6._0x4af849)] : _0x803813(0x21c), !![]);
|
|
2199
2224
|
}
|
|
2200
|
-
}),
|
|
2201
|
-
const
|
|
2225
|
+
}), _0x1d6ab3['tool'](_0x35208c(_0x90e649._0x40f6cf), _0x35208c(_0x90e649._0x45102d), { 'work_key': _0x2ea172[_0x35208c(_0x90e649._0x14ec46)]() }, async _0x3d0ff7 => {
|
|
2226
|
+
const _0x5c6bc6 = _0x35208c;
|
|
2202
2227
|
try {
|
|
2203
|
-
return textResult(await
|
|
2204
|
-
} catch (
|
|
2205
|
-
return textResult(
|
|
2228
|
+
return textResult(await _0x253781['get_worker_result'](_0x3d0ff7));
|
|
2229
|
+
} catch (_0x355c7b) {
|
|
2230
|
+
return textResult(_0x355c7b instanceof Error ? _0x355c7b[_0x5c6bc6(0x22d)] : _0x5c6bc6(0x30e), !![]);
|
|
2206
2231
|
}
|
|
2207
|
-
}),
|
|
2208
|
-
'work_key':
|
|
2209
|
-
'result':
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2232
|
+
}), _0x1d6ab3[_0x35208c(_0x90e649._0x31c227)]('finish_worker', _0x35208c(_0x90e649._0x2552f4), {
|
|
2233
|
+
'work_key': _0x2ea172[_0x35208c(0x23f)](),
|
|
2234
|
+
'result': _0x2ea172['enum']([
|
|
2235
|
+
_0x35208c(0x1f8),
|
|
2236
|
+
_0x35208c(0x1ed),
|
|
2237
|
+
_0x35208c(_0x90e649._0xaf3344)
|
|
2213
2238
|
]),
|
|
2214
|
-
'summary':
|
|
2215
|
-
'decisions':
|
|
2216
|
-
'files_changed':
|
|
2217
|
-
'open_issues':
|
|
2218
|
-
'next_steps':
|
|
2219
|
-
}, async
|
|
2220
|
-
const
|
|
2239
|
+
'summary': _0x2ea172[_0x35208c(_0x90e649._0x15cda8)](),
|
|
2240
|
+
'decisions': _0x2ea172[_0x35208c(_0x90e649._0x4f7ed1)](_0x2ea172[_0x35208c(0x23f)]())['optional'](),
|
|
2241
|
+
'files_changed': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172[_0x35208c(_0x90e649._0x14ec46)]())[_0x35208c(_0x90e649._0x343fe8)](),
|
|
2242
|
+
'open_issues': _0x2ea172[_0x35208c(_0x90e649._0x4f7ed1)](_0x2ea172['string']())[_0x35208c(_0x90e649._0x11b243)](),
|
|
2243
|
+
'next_steps': _0x2ea172[_0x35208c(0x1a6)](_0x2ea172['string']())[_0x35208c(_0x90e649._0x397ce6)]()
|
|
2244
|
+
}, async _0x4135c8 => {
|
|
2245
|
+
const _0x129ff7 = _0x35208c;
|
|
2221
2246
|
try {
|
|
2222
|
-
return textResult(await
|
|
2223
|
-
} catch (
|
|
2224
|
-
return textResult(
|
|
2247
|
+
return textResult(await _0x253781['finish_worker'](_0x4135c8));
|
|
2248
|
+
} catch (_0x480a08) {
|
|
2249
|
+
return textResult(_0x480a08 instanceof Error ? _0x480a08[_0x129ff7(_0x1b3d52._0x589d20)] : _0x129ff7(0x286), !![]);
|
|
2225
2250
|
}
|
|
2226
|
-
}),
|
|
2227
|
-
'work_key':
|
|
2228
|
-
'reason':
|
|
2229
|
-
}, async
|
|
2230
|
-
const
|
|
2251
|
+
}), _0x1d6ab3['tool']('escalate_to_main', _0x35208c(_0x90e649._0x38e847), {
|
|
2252
|
+
'work_key': _0x2ea172['string'](),
|
|
2253
|
+
'reason': _0x2ea172[_0x35208c(0x23f)]()
|
|
2254
|
+
}, async _0x1cf20c => {
|
|
2255
|
+
const _0x23cadc = _0x35208c;
|
|
2231
2256
|
try {
|
|
2232
|
-
return textResult(await
|
|
2233
|
-
} catch (
|
|
2234
|
-
return textResult(
|
|
2257
|
+
return textResult(await _0x253781['escalate_to_main'](_0x1cf20c));
|
|
2258
|
+
} catch (_0x2d3407) {
|
|
2259
|
+
return textResult(_0x2d3407 instanceof Error ? _0x2d3407[_0x23cadc(_0x4768bf._0x5abec2)] : 'escalate_to_main\x20failed', !![]);
|
|
2235
2260
|
}
|
|
2236
|
-
}),
|
|
2237
|
-
const
|
|
2261
|
+
}), _0x5c9d5c?.['workerMode'] && _0x1d6ab3['tool'](_0x35208c(_0x90e649._0x2ac055), _0x35208c(0x1b2), { 'work_key': _0x2ea172['string']() }, async _0x5e57e3 => {
|
|
2262
|
+
const _0x252fb9 = _0x35208c;
|
|
2238
2263
|
try {
|
|
2239
|
-
return textResult(await
|
|
2240
|
-
} catch (
|
|
2241
|
-
return textResult(
|
|
2264
|
+
return textResult(await _0x253781[_0x252fb9(0x241)](_0x5e57e3));
|
|
2265
|
+
} catch (_0x38ac7b) {
|
|
2266
|
+
return textResult(_0x38ac7b instanceof Error ? _0x38ac7b['message'] : _0x252fb9(0x2ea), !![]);
|
|
2242
2267
|
}
|
|
2243
2268
|
});
|
|
2244
2269
|
}
|
|
2245
|
-
async function createChatBridgeServer(
|
|
2246
|
-
const
|
|
2247
|
-
'name':
|
|
2248
|
-
'version':
|
|
2249
|
-
}),
|
|
2250
|
-
return await registerChatBridgeTools(
|
|
2251
|
-
'handlers':
|
|
2252
|
-
'server':
|
|
2270
|
+
async function createChatBridgeServer(_0x1204e5) {
|
|
2271
|
+
const _0x374aad = _0x5c3349, {McpServer: _0xd39b25} = await import(_0x374aad(0x2e6)), _0x43bced = new _0xd39b25({
|
|
2272
|
+
'name': _0x374aad(0x2ed),
|
|
2273
|
+
'version': _0x374aad(0x2c8)
|
|
2274
|
+
}), _0x470a94 = createChatBridgeHandlers(_0x1204e5);
|
|
2275
|
+
return await registerChatBridgeTools(_0x43bced, _0x470a94, { 'workerMode': _0x1204e5[_0x374aad(0x233)] }), {
|
|
2276
|
+
'handlers': _0x470a94,
|
|
2277
|
+
'server': _0x43bced
|
|
2253
2278
|
};
|
|
2254
2279
|
}
|
|
2255
|
-
function readFlag(
|
|
2256
|
-
const
|
|
2257
|
-
if (
|
|
2280
|
+
function readFlag(_0x2e7862, _0x268a70) {
|
|
2281
|
+
const _0x46aab7 = _0x2e7862['indexOf'](_0x268a70);
|
|
2282
|
+
if (_0x46aab7 === -0x1)
|
|
2258
2283
|
return void 0x0;
|
|
2259
|
-
return
|
|
2284
|
+
return _0x2e7862[_0x46aab7 + 0x1];
|
|
2260
2285
|
}
|
|
2261
|
-
function parseChatBridgeArgs(
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
}, _0x46f27b = _0x1bf962, _0x2bf0e6 = readFlag(_0xa58575, _0x46f27b(0x165)), _0x49e9db = readFlag(_0xa58575, '--daemon-api-key'), _0x2af28c = readFlag(_0xa58575, '--initial-last-seen-seq'), _0x445524 = readFlag(_0xa58575, '--server-url') ?? _0x46f27b(_0x46788e._0x30c9f7), _0x160c86 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0x521e96)), _0xcdb032 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0xbc295b)), _0xc140a4 = readFlag(_0xa58575, _0x46f27b(_0x46788e._0x9ecf97)), _0x5c99d4 = readFlag(_0xa58575, _0x46f27b(0x1a6)), _0x11bf7b = readFlag(_0xa58575, _0x46f27b(0x1fd)), _0x4a480c = _0xa58575[_0x46f27b(_0x46788e._0x4f5c6b)]('--worker-mode'), _0x45171e = _0x2af28c === void 0x0 ? void 0x0 : Number['parseInt'](_0x2af28c, 0xa);
|
|
2272
|
-
if (!_0x2bf0e6)
|
|
2286
|
+
function parseChatBridgeArgs(_0x616f32) {
|
|
2287
|
+
const _0x1e579f = {
|
|
2288
|
+
_0x1d1491: 0x31f,
|
|
2289
|
+
_0x4c467b: 0x2d4,
|
|
2290
|
+
_0x487ca2: 0x2a0,
|
|
2291
|
+
_0x4e4525: 0x29c,
|
|
2292
|
+
_0x4174a1: 0x294,
|
|
2293
|
+
_0x445c15: 0x2de
|
|
2294
|
+
}, _0x399b17 = _0x5c3349, _0x5477f9 = readFlag(_0x616f32, _0x399b17(_0x1e579f._0x1d1491)), _0x156cc0 = readFlag(_0x616f32, '--daemon-api-key'), _0x319973 = readFlag(_0x616f32, _0x399b17(0x1fe)), _0x4422d1 = readFlag(_0x616f32, _0x399b17(_0x1e579f._0x4c467b)) ?? _0x399b17(0x1e9), _0x3b65c3 = readFlag(_0x616f32, _0x399b17(_0x1e579f._0x487ca2)), _0x31552a = readFlag(_0x616f32, _0x399b17(0x1ff)), _0x9696cd = readFlag(_0x616f32, _0x399b17(_0x1e579f._0x4e4525)), _0x5698a7 = readFlag(_0x616f32, '--worker-session-id'), _0xb2f135 = readFlag(_0x616f32, _0x399b17(0x2f5)), _0x4902f6 = _0x616f32[_0x399b17(0x234)](_0x399b17(_0x1e579f._0x4174a1)), _0x1c7f34 = _0x319973 === void 0x0 ? void 0x0 : Number['parseInt'](_0x319973, 0xa);
|
|
2295
|
+
if (!_0x5477f9)
|
|
2273
2296
|
throw new Error('Missing\x20--agent-id');
|
|
2274
|
-
if (!
|
|
2275
|
-
throw new Error(
|
|
2276
|
-
if (
|
|
2277
|
-
throw new Error(
|
|
2297
|
+
if (!_0x156cc0)
|
|
2298
|
+
throw new Error(_0x399b17(0x279));
|
|
2299
|
+
if (_0x319973 !== void 0x0 && (_0x1c7f34 === void 0x0 || !Number[_0x399b17(_0x1e579f._0x445c15)](_0x1c7f34) || _0x1c7f34 < 0x0))
|
|
2300
|
+
throw new Error(_0x399b17(0x2d1));
|
|
2278
2301
|
return {
|
|
2279
|
-
'agentId':
|
|
2280
|
-
'daemonApiKey':
|
|
2281
|
-
'daemonLocalUrl':
|
|
2282
|
-
'initialLastSeenSeq':
|
|
2283
|
-
'sessionId':
|
|
2284
|
-
'serverUrl':
|
|
2285
|
-
'workerModeEnabled':
|
|
2286
|
-
'workerSessionId':
|
|
2287
|
-
'workerThreadTarget':
|
|
2288
|
-
'workerMode':
|
|
2302
|
+
'agentId': _0x5477f9,
|
|
2303
|
+
'daemonApiKey': _0x156cc0,
|
|
2304
|
+
'daemonLocalUrl': _0x3b65c3,
|
|
2305
|
+
'initialLastSeenSeq': _0x1c7f34,
|
|
2306
|
+
'sessionId': _0x31552a,
|
|
2307
|
+
'serverUrl': _0x4422d1,
|
|
2308
|
+
'workerModeEnabled': _0x9696cd === void 0x0 ? void 0x0 : _0x9696cd !== _0x399b17(0x317),
|
|
2309
|
+
'workerSessionId': _0x5698a7,
|
|
2310
|
+
'workerThreadTarget': _0xb2f135,
|
|
2311
|
+
'workerMode': _0x4902f6
|
|
2289
2312
|
};
|
|
2290
2313
|
}
|
|
2291
|
-
async function runChatBridgeCli(
|
|
2292
|
-
const
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
'
|
|
2297
|
-
'attachmentCache': _0x12ed73,
|
|
2298
|
-
'client': _0x1601f7,
|
|
2299
|
-
'daemonLocalUrl': _0x56cfae[_0x597392(0xf9)],
|
|
2314
|
+
async function runChatBridgeCli(_0x5c7684) {
|
|
2315
|
+
const _0x1b802e = { _0x3147f2: 0x233 }, _0x4b486b = _0x5c3349, _0x1aaaa1 = parseChatBridgeArgs(_0x5c7684), {StdioServerTransport: _0x526cee} = await import(_0x4b486b(0x1ad)), _0x413e39 = createInternalAgentClient(_0x1aaaa1), _0x51f8a3 = createAttachmentCache(), _0x17a5fc = await createChatBridgeServer({
|
|
2316
|
+
'agentId': _0x1aaaa1['agentId'],
|
|
2317
|
+
'attachmentCache': _0x51f8a3,
|
|
2318
|
+
'client': _0x413e39,
|
|
2319
|
+
'daemonLocalUrl': _0x1aaaa1[_0x4b486b(0x2a3)],
|
|
2300
2320
|
'uploadPreparer': prepareUploadFile,
|
|
2301
|
-
'workerModeEnabled':
|
|
2302
|
-
'workerMode':
|
|
2321
|
+
'workerModeEnabled': _0x1aaaa1[_0x4b486b(0x259)],
|
|
2322
|
+
'workerMode': _0x1aaaa1[_0x4b486b(_0x1b802e._0x3147f2)]
|
|
2303
2323
|
});
|
|
2304
|
-
await
|
|
2324
|
+
await _0x17a5fc['server']['connect'](new _0x526cee());
|
|
2305
2325
|
}
|
|
2306
|
-
var executedAsEntry = process[
|
|
2307
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2326
|
+
var executedAsEntry = process[_0x5c3349(0x27a)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x5c3349(0x327)] : ![];
|
|
2327
|
+
executedAsEntry && await runChatBridgeCli(process[_0x5c3349(0x27a)][_0x5c3349(0x27e)](0x2));
|
|
2308
2328
|
export {
|
|
2309
2329
|
createChatBridgeHandlers,
|
|
2310
2330
|
createChatBridgeServer,
|