@dscord/daemon 0.1.13 → 0.1.16
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 +2075 -1975
- package/dist/index.js +7673 -7094
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,46 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
for (let _0x272e79 = 0x0, _0x220405 = _0x1aa3f5['length']; _0x272e79 < _0x220405; _0x272e79++) {
|
|
14
|
-
_0x2f9eee += '%' + ('00' + _0x1aa3f5['charCodeAt'](_0x272e79)['toString'](0x10))['slice'](-0x2);
|
|
15
|
-
}
|
|
16
|
-
return decodeURIComponent(_0x2f9eee);
|
|
17
|
-
};
|
|
18
|
-
_0xaeca['JTwscp'] = _0x23269f, _0xaeca['QgTNeu'] = {}, _0xaeca['PhxcOF'] = !![];
|
|
19
|
-
}
|
|
20
|
-
const _0x5b6d94 = _0x4879f3[0x0], _0x29c565 = _0x5cddca + _0x5b6d94, _0x34b829 = _0xaeca['QgTNeu'][_0x29c565];
|
|
21
|
-
return !_0x34b829 ? (_0xaeca36 = _0xaeca['JTwscp'](_0xaeca36), _0xaeca['QgTNeu'][_0x29c565] = _0xaeca36) : _0xaeca36 = _0x34b829, _0xaeca36;
|
|
22
|
-
}
|
|
23
|
-
(function (_0x522cfc, _0x2565c4) {
|
|
24
|
-
const _0x45cb3c = {
|
|
25
|
-
_0x14479b: 0x28e,
|
|
26
|
-
_0x1d2a74: 0x205,
|
|
27
|
-
_0x246dc9: 0x24a,
|
|
28
|
-
_0x23d28c: 0x238,
|
|
29
|
-
_0x530fb4: 0x17e,
|
|
30
|
-
_0x1a1a6e: 0x1df
|
|
31
|
-
}, _0x3f76a0 = _0xaeca, _0x2fa24a = _0x522cfc();
|
|
1
|
+
const _0x50158a = _0x3051;
|
|
2
|
+
(function (_0x4daf7e, _0x539c91) {
|
|
3
|
+
const _0x414a8b = {
|
|
4
|
+
_0x1ad406: 0x158,
|
|
5
|
+
_0x3be3a2: 0x141,
|
|
6
|
+
_0x135526: 0x22d,
|
|
7
|
+
_0x17c73f: 0x2b3,
|
|
8
|
+
_0x5c03b7: 0x26a,
|
|
9
|
+
_0x141355: 0x23b,
|
|
10
|
+
_0x220255: 0x233
|
|
11
|
+
}, _0x176e6c = _0x3051, _0x137b42 = _0x4daf7e();
|
|
32
12
|
while (!![]) {
|
|
33
13
|
try {
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
14
|
+
const _0x38f427 = -parseInt(_0x176e6c(_0x414a8b._0x1ad406)) / 0x1 * (-parseInt(_0x176e6c(_0x414a8b._0x3be3a2)) / 0x2) + parseInt(_0x176e6c(_0x414a8b._0x135526)) / 0x3 + parseInt(_0x176e6c(_0x414a8b._0x17c73f)) / 0x4 + parseInt(_0x176e6c(_0x414a8b._0x5c03b7)) / 0x5 * (parseInt(_0x176e6c(0x177)) / 0x6) + parseInt(_0x176e6c(_0x414a8b._0x141355)) / 0x7 * (parseInt(_0x176e6c(0x154)) / 0x8) + parseInt(_0x176e6c(0x262)) / 0x9 * (parseInt(_0x176e6c(_0x414a8b._0x220255)) / 0xa) + parseInt(_0x176e6c(0x1f8)) / 0xb * (-parseInt(_0x176e6c(0x271)) / 0xc);
|
|
15
|
+
if (_0x38f427 === _0x539c91)
|
|
36
16
|
break;
|
|
37
17
|
else
|
|
38
|
-
|
|
39
|
-
} catch (
|
|
40
|
-
|
|
18
|
+
_0x137b42['push'](_0x137b42['shift']());
|
|
19
|
+
} catch (_0x190dae) {
|
|
20
|
+
_0x137b42['push'](_0x137b42['shift']());
|
|
41
21
|
}
|
|
42
22
|
}
|
|
43
|
-
}(
|
|
23
|
+
}(_0x5706, 0xcdfec));
|
|
44
24
|
import { pathToFileURL } from 'node:url';
|
|
45
25
|
import {
|
|
46
26
|
mkdir,
|
|
@@ -50,74 +30,80 @@ import {
|
|
|
50
30
|
writeFile
|
|
51
31
|
} from 'node:fs/promises';
|
|
52
32
|
import { homedir } from 'node:os';
|
|
53
|
-
import
|
|
33
|
+
import _0x37f362 from 'node:path';
|
|
54
34
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
55
|
-
'.csv':
|
|
35
|
+
'.csv': _0x50158a(0x1c8),
|
|
56
36
|
'.gif': 'image/gif',
|
|
57
|
-
'.jpeg':
|
|
58
|
-
'.jpg':
|
|
59
|
-
'.json':
|
|
60
|
-
'.md':
|
|
61
|
-
'.pdf':
|
|
62
|
-
'.png':
|
|
63
|
-
'.svg':
|
|
64
|
-
'.txt':
|
|
65
|
-
'.webp':
|
|
66
|
-
'.xml':
|
|
67
|
-
'.zip':
|
|
37
|
+
'.jpeg': _0x50158a(0x1cb),
|
|
38
|
+
'.jpg': 'image/jpeg',
|
|
39
|
+
'.json': _0x50158a(0x2a6),
|
|
40
|
+
'.md': 'text/markdown',
|
|
41
|
+
'.pdf': _0x50158a(0x25f),
|
|
42
|
+
'.png': _0x50158a(0x206),
|
|
43
|
+
'.svg': _0x50158a(0x1d4),
|
|
44
|
+
'.txt': _0x50158a(0x140),
|
|
45
|
+
'.webp': _0x50158a(0x1d7),
|
|
46
|
+
'.xml': _0x50158a(0x16d),
|
|
47
|
+
'.zip': _0x50158a(0x26b)
|
|
68
48
|
};
|
|
69
|
-
function guessContentType(
|
|
70
|
-
const
|
|
71
|
-
|
|
49
|
+
function guessContentType(_0x2dfbd0) {
|
|
50
|
+
const _0x5ab58d = {
|
|
51
|
+
_0x17ebcf: 0x1d5,
|
|
52
|
+
_0x487de9: 0x1cd,
|
|
53
|
+
_0x518c32: 0x1d9
|
|
54
|
+
}, _0x12b59d = _0x50158a;
|
|
55
|
+
return MIME_BY_EXTENSION[_0x37f362[_0x12b59d(_0x5ab58d._0x17ebcf)](_0x2dfbd0)[_0x12b59d(_0x5ab58d._0x487de9)]()] ?? _0x12b59d(_0x5ab58d._0x518c32);
|
|
72
56
|
}
|
|
73
|
-
function safeFilename(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
57
|
+
function safeFilename(_0x246908) {
|
|
58
|
+
const _0x7f398e = { _0x5acbb: 0x15a }, _0x401731 = _0x50158a;
|
|
59
|
+
return _0x246908[_0x401731(_0x7f398e._0x5acbb)](/[\\/]/g, '-');
|
|
76
60
|
}
|
|
77
|
-
function extensionFor(
|
|
78
|
-
const
|
|
79
|
-
return
|
|
61
|
+
function extensionFor(_0x1f58b6) {
|
|
62
|
+
const _0x28ed64 = { _0xe71b76: 0x1d2 }, _0x41ed07 = _0x50158a, _0x2e8719 = Object[_0x41ed07(_0x28ed64._0xe71b76)](MIME_BY_EXTENSION)[_0x41ed07(0x1c9)](([, _0x4ff0c5]) => _0x4ff0c5 === _0x1f58b6);
|
|
63
|
+
return _0x2e8719?.[0x0] ?? '.bin';
|
|
80
64
|
}
|
|
81
|
-
async function prepareUploadFile(
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
const _0x4ab644 = await readFile(_0x272e79), _0x1152a7 = _0x1aa3f5[_0x2428db(0x19b)](_0x272e79);
|
|
65
|
+
async function prepareUploadFile(_0x2b609e, _0xafd811 = {}) {
|
|
66
|
+
const _0x5d8e1b = {
|
|
67
|
+
_0x161be1: 0x226,
|
|
68
|
+
_0x4249f7: 0x29b,
|
|
69
|
+
_0x35a099: 0x1e2,
|
|
70
|
+
_0xc9cd5: 0x1a8,
|
|
71
|
+
_0x1a07ef: 0x259
|
|
72
|
+
}, _0x41059a = _0x50158a;
|
|
73
|
+
if (!_0x37f362[_0x41059a(0x21c)](_0x2b609e))
|
|
74
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
75
|
+
const _0x1a816f = await stat(_0x2b609e)['catch'](() => null);
|
|
76
|
+
if (!_0x1a816f || !_0x1a816f[_0x41059a(_0x5d8e1b._0x161be1)]())
|
|
77
|
+
throw new Error(_0x41059a(0x1f9) + _0x2b609e);
|
|
78
|
+
const _0x14952c = _0xafd811[_0x41059a(_0x5d8e1b._0x4249f7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
79
|
+
if (_0x1a816f[_0x41059a(_0x5d8e1b._0x35a099)] > _0x14952c)
|
|
80
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x1a816f['size']);
|
|
81
|
+
const _0x37ade0 = await readFile(_0x2b609e), _0xc72d3f = _0x37f362[_0x41059a(_0x5d8e1b._0xc9cd5)](_0x2b609e);
|
|
99
82
|
return {
|
|
100
|
-
'contentBase64':
|
|
101
|
-
'contentType': guessContentType(
|
|
102
|
-
'filename':
|
|
103
|
-
'sizeBytes':
|
|
83
|
+
'contentBase64': _0x37ade0[_0x41059a(0x23d)](_0x41059a(_0x5d8e1b._0x1a07ef)),
|
|
84
|
+
'contentType': guessContentType(_0xc72d3f),
|
|
85
|
+
'filename': _0xc72d3f,
|
|
86
|
+
'sizeBytes': _0x1a816f['size']
|
|
104
87
|
};
|
|
105
88
|
}
|
|
106
|
-
function createAttachmentCache(
|
|
107
|
-
const
|
|
89
|
+
function createAttachmentCache(_0x4f7147 = {}) {
|
|
90
|
+
const _0x434817 = { _0x3a7dc7: 0x212 }, _0x1482b6 = {
|
|
91
|
+
_0x1b8b4b: 0x2ae,
|
|
92
|
+
_0x232238: 0x218
|
|
93
|
+
}, _0x343a3c = _0x50158a, _0x4059c4 = _0x4f7147[_0x343a3c(0x2a4)] ?? _0x37f362[_0x343a3c(_0x434817._0x3a7dc7)](homedir(), '.slock', 'attachments');
|
|
108
94
|
return {
|
|
109
|
-
'cacheDir':
|
|
110
|
-
async 'findCachedPath'(
|
|
111
|
-
const
|
|
112
|
-
await mkdir(
|
|
113
|
-
const
|
|
114
|
-
return
|
|
95
|
+
'cacheDir': _0x4059c4,
|
|
96
|
+
async 'findCachedPath'(_0x13ca44) {
|
|
97
|
+
const _0x313f62 = _0x343a3c;
|
|
98
|
+
await mkdir(_0x4059c4, { 'recursive': !![] });
|
|
99
|
+
const _0x4bdb3 = await readdir(_0x4059c4), _0x135d8a = _0x4bdb3['find'](_0x321405 => _0x321405[_0x313f62(0x143)](_0x13ca44 + '-') || _0x321405[_0x313f62(0x143)](_0x13ca44));
|
|
100
|
+
return _0x135d8a ? _0x37f362[_0x313f62(0x212)](_0x4059c4, _0x135d8a) : null;
|
|
115
101
|
},
|
|
116
|
-
async 'save'(
|
|
117
|
-
const
|
|
118
|
-
await mkdir(
|
|
119
|
-
const
|
|
120
|
-
return await writeFile(
|
|
102
|
+
async 'save'(_0x36e340) {
|
|
103
|
+
const _0x16ad11 = _0x343a3c;
|
|
104
|
+
await mkdir(_0x4059c4, { 'recursive': !![] });
|
|
105
|
+
const _0x1bb49d = _0x36e340['originalFilename']?.['trim']() ? safeFilename(_0x36e340['originalFilename']) : '' + _0x36e340['attachmentId'] + extensionFor(_0x36e340[_0x16ad11(_0x1482b6._0x1b8b4b)]), _0x13c6a1 = _0x37f362[_0x16ad11(0x212)](_0x4059c4, _0x36e340[_0x16ad11(0x1ff)] + '-' + _0x1bb49d);
|
|
106
|
+
return await writeFile(_0x13c6a1, _0x36e340[_0x16ad11(_0x1482b6._0x232238)]), _0x13c6a1;
|
|
121
107
|
}
|
|
122
108
|
};
|
|
123
109
|
}
|
|
@@ -125,2072 +111,2186 @@ import {
|
|
|
125
111
|
createHash,
|
|
126
112
|
randomUUID
|
|
127
113
|
} from 'node:crypto';
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
_0x57e6bf: 0x1e3,
|
|
138
|
-
_0xe75f97: 0x1e3
|
|
139
|
-
}, _0x3cb8af = _0x4ab0ed, _0x3fedfb = _0x12aacb[_0x3cb8af(0x1ca)](':');
|
|
140
|
-
if (_0x3fedfb[_0x3cb8af(_0x136c20._0x57e6bf)] < 0x1 || _0x3fedfb[_0x3cb8af(_0x136c20._0xe75f97)] > 0x2)
|
|
141
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
142
|
-
return {
|
|
143
|
-
'channelName': ensureSegment(_0x3fedfb[0x0] ?? ''),
|
|
144
|
-
'threadShortId': _0x3fedfb[0x1] ? ensureSegment(_0x3fedfb[0x1]) : null
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function parseTarget(_0x2a5b0e) {
|
|
148
|
-
const _0xc0eaf1 = {
|
|
149
|
-
_0x5f450b: 0x1e4,
|
|
150
|
-
_0x26d97d: 0x27a,
|
|
151
|
-
_0x412a9a: 0x26e,
|
|
152
|
-
_0x1e6f08: 0x26e,
|
|
153
|
-
_0x175778: 0x1ae,
|
|
154
|
-
_0xa6d2fd: 0x18d,
|
|
155
|
-
_0x5db652: 0x2af,
|
|
156
|
-
_0x23f1ca: 0x18d
|
|
157
|
-
}, _0x49e9ea = _0x4ab0ed, _0x3283f6 = _0x2a5b0e[_0x49e9ea(_0xc0eaf1._0x5f450b)]();
|
|
158
|
-
if (!_0x3283f6)
|
|
159
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
-
if (_0x3283f6['startsWith']('#')) {
|
|
161
|
-
const _0x3a6818 = parseThreadParts(_0x3283f6[_0x49e9ea(_0xc0eaf1._0x26d97d)](0x1)), _0x407bf8 = '#' + _0x3a6818[_0x49e9ea(_0xc0eaf1._0x412a9a)];
|
|
162
|
-
if (!_0x3a6818[_0x49e9ea(0x18d)])
|
|
163
|
-
return {
|
|
164
|
-
'channelName': _0x3a6818['channelName'],
|
|
165
|
-
'channelTarget': _0x407bf8,
|
|
166
|
-
'kind': 'channel',
|
|
167
|
-
'target': _0x407bf8
|
|
168
|
-
};
|
|
169
|
-
return {
|
|
170
|
-
'channelName': _0x3a6818[_0x49e9ea(_0xc0eaf1._0x1e6f08)],
|
|
171
|
-
'channelTarget': _0x407bf8,
|
|
172
|
-
'kind': _0x49e9ea(_0xc0eaf1._0x175778),
|
|
173
|
-
'target': _0x407bf8 + ':' + _0x3a6818[_0x49e9ea(_0xc0eaf1._0xa6d2fd)],
|
|
174
|
-
'threadShortId': _0x3a6818[_0x49e9ea(0x18d)]
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
if (_0x3283f6[_0x49e9ea(_0xc0eaf1._0x5db652)](_0x49e9ea(0x18b))) {
|
|
178
|
-
const _0xd5854d = parseThreadParts(_0x3283f6['slice'](0x3));
|
|
179
|
-
if (!_0xd5854d[_0x49e9ea(0x26e)][_0x49e9ea(0x2af)]('dm-'))
|
|
180
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
181
|
-
const _0x3bf617 = _0x49e9ea(0x18b) + _0xd5854d['channelName'];
|
|
182
|
-
if (!_0xd5854d[_0x49e9ea(0x18d)])
|
|
183
|
-
return {
|
|
184
|
-
'channelName': _0xd5854d[_0x49e9ea(0x26e)],
|
|
185
|
-
'channelTarget': _0x3bf617,
|
|
186
|
-
'kind': 'channel',
|
|
187
|
-
'target': _0x3bf617
|
|
188
|
-
};
|
|
189
|
-
return {
|
|
190
|
-
'channelName': _0xd5854d[_0x49e9ea(0x26e)],
|
|
191
|
-
'channelTarget': _0x3bf617,
|
|
192
|
-
'kind': _0x49e9ea(_0xc0eaf1._0x175778),
|
|
193
|
-
'target': _0x3bf617 + ':' + _0xd5854d['threadShortId'],
|
|
194
|
-
'threadShortId': _0xd5854d[_0x49e9ea(_0xc0eaf1._0x23f1ca)]
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
198
|
-
}
|
|
199
|
-
function asErrorMessage(_0x321510, _0x1dfc66) {
|
|
200
|
-
if (typeof _0x321510 === 'string' && _0x321510['trim']())
|
|
201
|
-
return _0x321510;
|
|
202
|
-
return _0x1dfc66;
|
|
203
|
-
}
|
|
204
|
-
function asRecord(_0x2623d7) {
|
|
205
|
-
const _0x4e769e = _0x4ab0ed;
|
|
206
|
-
return typeof _0x2623d7 === _0x4e769e(0x16f) && _0x2623d7 !== null ? _0x2623d7 : {};
|
|
207
|
-
}
|
|
208
|
-
function stableStringify(_0xaecf8a) {
|
|
209
|
-
const _0x31e2e4 = {
|
|
210
|
-
_0x2c617f: 0x2a5,
|
|
211
|
-
_0x575c12: 0x1ba,
|
|
212
|
-
_0x36151d: 0x1d9,
|
|
213
|
-
_0x7dbd31: 0x1cd,
|
|
214
|
-
_0xca35e6: 0x243
|
|
215
|
-
}, _0x5098aa = _0x4ab0ed;
|
|
216
|
-
if (_0xaecf8a === null || typeof _0xaecf8a !== _0x5098aa(0x16f))
|
|
217
|
-
return JSON[_0x5098aa(0x203)](_0xaecf8a);
|
|
218
|
-
if (Array[_0x5098aa(0x290)](_0xaecf8a))
|
|
219
|
-
return '[' + _0xaecf8a['map'](_0x19906c => stableStringify(_0x19906c))[_0x5098aa(_0x31e2e4._0x2c617f)](',') + ']';
|
|
220
|
-
const _0x4dc4da = Object[_0x5098aa(_0x31e2e4._0x575c12)](_0xaecf8a)[_0x5098aa(_0x31e2e4._0x36151d)](([, _0x55290a]) => _0x55290a !== void 0x0)[_0x5098aa(_0x31e2e4._0x7dbd31)](([_0x1353dc], [_0x5c0619]) => _0x1353dc[_0x5098aa(0x1db)](_0x5c0619))[_0x5098aa(_0x31e2e4._0xca35e6)](([_0x1f18d9, _0x5cd1f3]) => JSON[_0x5098aa(0x203)](_0x1f18d9) + ':' + stableStringify(_0x5cd1f3));
|
|
221
|
-
return '{' + _0x4dc4da['join'](',') + '}';
|
|
222
|
-
}
|
|
223
|
-
function createHeaders(_0x263213) {
|
|
224
|
-
return {
|
|
225
|
-
'Content-Type': 'application/json',
|
|
226
|
-
'x-daemon-api-key': _0x263213
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
function toHttpBaseUrl(_0x5ae23a) {
|
|
230
|
-
const _0x1ab542 = {
|
|
231
|
-
_0x89b192: 0x25f,
|
|
232
|
-
_0x97f5d: 0x1b3,
|
|
233
|
-
_0x383b4b: 0x1e0,
|
|
234
|
-
_0x143239: 0x25f,
|
|
235
|
-
_0x4e5965: 0x28b
|
|
236
|
-
}, _0x376e4d = _0x4ab0ed, _0x2b27c2 = new URL(_0x5ae23a);
|
|
237
|
-
if (_0x2b27c2[_0x376e4d(_0x1ab542._0x89b192)] === _0x376e4d(0x167))
|
|
238
|
-
_0x2b27c2[_0x376e4d(0x25f)] = _0x376e4d(_0x1ab542._0x97f5d);
|
|
239
|
-
else
|
|
240
|
-
_0x2b27c2[_0x376e4d(0x25f)] === _0x376e4d(_0x1ab542._0x383b4b) && (_0x2b27c2[_0x376e4d(_0x1ab542._0x143239)] = _0x376e4d(_0x1ab542._0x4e5965));
|
|
241
|
-
return _0x2b27c2[_0x376e4d(0x173)]()['replace'](/\/$/, '');
|
|
242
|
-
}
|
|
243
|
-
function isMentionBoundary(_0x27a71c) {
|
|
244
|
-
return !_0x27a71c || /\s|[([{'",。!?、:;]/['test'](_0x27a71c);
|
|
245
|
-
}
|
|
246
|
-
function isMentionTerminal(_0x1e264d) {
|
|
247
|
-
return !_0x1e264d || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x1e264d);
|
|
248
|
-
}
|
|
249
|
-
function buildMatchableEntries(_0x382f12) {
|
|
250
|
-
const _0x22320c = {
|
|
251
|
-
_0x2df15c: 0x228,
|
|
252
|
-
_0x2e8d4f: 0x209,
|
|
253
|
-
_0x165643: 0x24b
|
|
254
|
-
}, _0x52d2b6 = _0x4ab0ed, _0x53df42 = [];
|
|
255
|
-
for (const _0x3b9a04 of [
|
|
256
|
-
..._0x382f12['agents'],
|
|
257
|
-
..._0x382f12['humans']
|
|
258
|
-
]) {
|
|
259
|
-
_0x53df42['push']({
|
|
260
|
-
'matchName': _0x3b9a04[_0x52d2b6(0x228)],
|
|
261
|
-
'matchNameLower': _0x3b9a04[_0x52d2b6(_0x22320c._0x2df15c)][_0x52d2b6(0x24b)](),
|
|
262
|
-
'participantId': _0x3b9a04['id']
|
|
263
|
-
}), _0x3b9a04['id'] !== _0x3b9a04[_0x52d2b6(0x228)] && _0x53df42[_0x52d2b6(_0x22320c._0x2e8d4f)]({
|
|
264
|
-
'matchName': _0x3b9a04['id'],
|
|
265
|
-
'matchNameLower': _0x3b9a04['id'][_0x52d2b6(_0x22320c._0x165643)](),
|
|
266
|
-
'participantId': _0x3b9a04['id']
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
return _0x53df42;
|
|
270
|
-
}
|
|
271
|
-
function extractMentionedParticipantIds(_0x59528d, _0x579bca) {
|
|
272
|
-
const _0x586792 = {
|
|
273
|
-
_0x3709a2: 0x1e3,
|
|
274
|
-
_0x211698: 0x297,
|
|
275
|
-
_0x345afe: 0x1a6,
|
|
276
|
-
_0xbcf5a9: 0x209
|
|
277
|
-
}, _0x11335b = { _0x14db98: 0x1e3 }, _0x4a46ee = _0x4ab0ed, _0x3dd6d1 = buildMatchableEntries(_0x579bca)[_0x4a46ee(0x1cd)]((_0x4fa280, _0x1be579) => _0x1be579[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)] - _0x4fa280[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)]), _0x20c3bb = [], _0x1e047f = new Set();
|
|
278
|
-
for (let _0x19ada9 = 0x0; _0x19ada9 < _0x59528d[_0x4a46ee(_0x586792._0x3709a2)]; _0x19ada9 += 0x1) {
|
|
279
|
-
if (_0x59528d[_0x19ada9] !== '@' || !isMentionBoundary(_0x59528d[_0x19ada9 - 0x1]))
|
|
280
|
-
continue;
|
|
281
|
-
const _0x525869 = _0x59528d[_0x4a46ee(0x27a)](_0x19ada9 + 0x1), _0x121649 = _0x525869[_0x4a46ee(0x24b)](), _0x2da6e9 = _0x3dd6d1[_0x4a46ee(0x21e)](_0x2eab04 => {
|
|
282
|
-
const _0x1efa5f = _0x4a46ee;
|
|
283
|
-
if (!_0x121649[_0x1efa5f(0x2af)](_0x2eab04['matchNameLower']))
|
|
284
|
-
return ![];
|
|
285
|
-
return isMentionTerminal(_0x525869[_0x2eab04[_0x1efa5f(0x19f)][_0x1efa5f(_0x11335b._0x14db98)]]);
|
|
286
|
-
});
|
|
287
|
-
if (!_0x2da6e9 || _0x1e047f[_0x4a46ee(_0x586792._0x211698)](_0x2da6e9[_0x4a46ee(_0x586792._0x345afe)]))
|
|
288
|
-
continue;
|
|
289
|
-
_0x1e047f[_0x4a46ee(0x2b9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x20c3bb[_0x4a46ee(_0x586792._0xbcf5a9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x19ada9 += _0x2da6e9[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)];
|
|
290
|
-
}
|
|
291
|
-
return _0x20c3bb;
|
|
292
|
-
}
|
|
293
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
294
|
-
function anySignal(..._0x1c42ea) {
|
|
295
|
-
const _0x2abd7c = {
|
|
296
|
-
_0x1a8c7d: 0x206,
|
|
297
|
-
_0x4b4179: 0x1d6
|
|
298
|
-
}, _0x2eaa42 = _0x4ab0ed, _0x2d5c86 = new AbortController();
|
|
299
|
-
for (const _0x3a4cae of _0x1c42ea) {
|
|
300
|
-
if (_0x3a4cae[_0x2eaa42(0x1ff)])
|
|
301
|
-
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x1a8c7d)](_0x3a4cae['reason']), _0x2d5c86['signal'];
|
|
302
|
-
_0x3a4cae['addEventListener'](_0x2eaa42(0x206), () => _0x2d5c86['abort'](_0x3a4cae['reason']), {
|
|
303
|
-
'once': !![],
|
|
304
|
-
'signal': _0x2d5c86['signal']
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x4b4179)];
|
|
308
|
-
}
|
|
309
|
-
function createInternalAgentClient(_0x58f74a) {
|
|
310
|
-
const _0x4fe2f7 = {
|
|
311
|
-
_0x50385c: 0x1a2,
|
|
312
|
-
_0x24ceb0: 0x16d,
|
|
313
|
-
_0x84e7a5: 0x17c
|
|
314
|
-
}, _0x1c7d90 = {
|
|
315
|
-
_0x22a04d: 0x179,
|
|
316
|
-
_0x1e5c31: 0x1ce,
|
|
317
|
-
_0xda23c1: 0x187,
|
|
318
|
-
_0x381049: 0x229,
|
|
319
|
-
_0x2baff7: 0x1a3,
|
|
320
|
-
_0x38afca: 0x294,
|
|
321
|
-
_0x4b0698: 0x1ac,
|
|
322
|
-
_0x302280: 0x291,
|
|
323
|
-
_0x5c3133: 0x1bc,
|
|
324
|
-
_0x4d8357: 0x16d,
|
|
325
|
-
_0x2405e4: 0x1bc,
|
|
326
|
-
_0x3e062a: 0x293,
|
|
327
|
-
_0x194972: 0x293,
|
|
328
|
-
_0x30404c: 0x212,
|
|
329
|
-
_0x29f60b: 0x1fa,
|
|
330
|
-
_0x36b08c: 0x234,
|
|
331
|
-
_0x2b8279: 0x1e3,
|
|
332
|
-
_0x3aeab6: 0x243,
|
|
333
|
-
_0x1228f7: 0x15a,
|
|
334
|
-
_0x1178cd: 0x2b5,
|
|
335
|
-
_0x47cf60: 0x25e,
|
|
336
|
-
_0x42151a: 0x160,
|
|
337
|
-
_0x79ddba: 0x268,
|
|
338
|
-
_0x27649e: 0x1fd
|
|
339
|
-
}, _0x1a7f0b = {
|
|
340
|
-
_0x44b3f4: 0x1a4,
|
|
341
|
-
_0x309fbc: 0x286,
|
|
342
|
-
_0x581fa6: 0x294,
|
|
343
|
-
_0x2621aa: 0x2b7,
|
|
344
|
-
_0x26de95: 0x1ac
|
|
345
|
-
}, _0x55ce3c = {
|
|
346
|
-
_0x5e5b35: 0x1d6,
|
|
347
|
-
_0x589e3a: 0x23c,
|
|
348
|
-
_0x20f358: 0x165,
|
|
349
|
-
_0x4f6993: 0x15d
|
|
350
|
-
}, _0x275824 = {
|
|
351
|
-
_0x3ef129: 0x1a4,
|
|
352
|
-
_0x1df1af: 0x2c0,
|
|
353
|
-
_0x2f970d: 0x25c,
|
|
354
|
-
_0x23e6eb: 0x227
|
|
355
|
-
}, _0x5164c6 = {
|
|
356
|
-
_0x2eb1fc: 0x179,
|
|
357
|
-
_0x11c292: 0x1ce,
|
|
358
|
-
_0x2cf270: 0x203,
|
|
359
|
-
_0xadb360: 0x272
|
|
360
|
-
}, _0x1d729d = { _0x3324c1: 0x2a0 }, _0x4bf035 = {
|
|
361
|
-
_0x207b60: 0x1b6,
|
|
362
|
-
_0x3eb81e: 0x203,
|
|
363
|
-
_0x1fc250: 0x2a0
|
|
364
|
-
}, _0x203839 = {
|
|
365
|
-
_0x5d1bf4: 0x203,
|
|
366
|
-
_0x1085bd: 0x253,
|
|
367
|
-
_0x4030c2: 0x2a0
|
|
368
|
-
}, _0x26df12 = {
|
|
369
|
-
_0x5969db: 0x1c0,
|
|
370
|
-
_0x2c0a25: 0x21d,
|
|
371
|
-
_0x24059a: 0x1c0
|
|
372
|
-
}, _0x22f4c4 = {
|
|
373
|
-
_0x9a4e10: 0x16b,
|
|
374
|
-
_0x95b5bc: 0x263,
|
|
375
|
-
_0x505049: 0x259,
|
|
376
|
-
_0x2bf9c6: 0x1c0
|
|
377
|
-
}, _0x726f5f = {
|
|
378
|
-
_0x5b58cc: 0x183,
|
|
379
|
-
_0x4ed5d8: 0x225,
|
|
380
|
-
_0x402775: 0x2a0
|
|
381
|
-
}, _0x428f84 = {
|
|
382
|
-
_0x4913e7: 0x1b4,
|
|
383
|
-
_0x527c61: 0x181
|
|
384
|
-
}, _0x18e6db = {
|
|
385
|
-
_0x2f0ea2: 0x289,
|
|
386
|
-
_0x207485: 0x229
|
|
387
|
-
}, _0x58f306 = {
|
|
388
|
-
_0x287272: 0x2ae,
|
|
389
|
-
_0x3bdb3c: 0x2b5,
|
|
390
|
-
_0x46d39c: 0x285,
|
|
391
|
-
_0x18c597: 0x179,
|
|
392
|
-
_0x2b8fec: 0x203,
|
|
393
|
-
_0x1a2d90: 0x2b5,
|
|
394
|
-
_0x49f776: 0x1e3,
|
|
395
|
-
_0x59c457: 0x2a0
|
|
396
|
-
}, _0x4f85a3 = {
|
|
397
|
-
_0x451429: 0x21d,
|
|
398
|
-
_0x408cef: 0x1ac,
|
|
399
|
-
_0x122b1a: 0x294,
|
|
400
|
-
_0x38ad31: 0x21d,
|
|
401
|
-
_0xf7a33b: 0x20b,
|
|
402
|
-
_0x56c9e6: 0x1fb,
|
|
403
|
-
_0x5e62be: 0x173,
|
|
404
|
-
_0x139529: 0x20a,
|
|
405
|
-
_0x46971e: 0x243,
|
|
406
|
-
_0x219071: 0x1d2,
|
|
407
|
-
_0x3ba3ea: 0x1d2
|
|
408
|
-
}, _0x362512 = { _0x545348: 0x197 }, _0x35bba9 = {
|
|
409
|
-
_0x18be69: 0x18d,
|
|
410
|
-
_0x189b8f: 0x293,
|
|
411
|
-
_0x7e6ebc: 0x1ac,
|
|
412
|
-
_0x260b5e: 0x2af
|
|
413
|
-
}, _0x136866 = {
|
|
414
|
-
_0x23ef8a: 0x1bc,
|
|
415
|
-
_0x33e270: 0x258,
|
|
416
|
-
_0x2c9cb7: 0x27a
|
|
417
|
-
}, _0x18727f = { _0x43ec5c: 0x2bb }, _0x2c4ca4 = {
|
|
418
|
-
_0x51db5e: 0x179,
|
|
419
|
-
_0x4ee713: 0x248,
|
|
420
|
-
_0x166170: 0x26d,
|
|
421
|
-
_0x22b4ec: 0x229,
|
|
422
|
-
_0xc6123b: 0x243,
|
|
423
|
-
_0x59adc5: 0x243,
|
|
424
|
-
_0x279e96: 0x229,
|
|
425
|
-
_0x4b19f0: 0x24c,
|
|
426
|
-
_0x1d5568: 0x1d9,
|
|
427
|
-
_0xf3dc19: 0x229,
|
|
428
|
-
_0x3262b2: 0x296,
|
|
429
|
-
_0x39fd04: 0x228
|
|
430
|
-
}, _0x2788cf = {
|
|
431
|
-
_0x294b84: 0x179,
|
|
432
|
-
_0x11c0d2: 0x2ae
|
|
433
|
-
}, _0x8ebe99 = {
|
|
434
|
-
_0x2537a2: 0x188,
|
|
435
|
-
_0x5ac886: 0x246
|
|
436
|
-
}, _0x307d2a = {
|
|
437
|
-
_0x360a04: 0x1d6,
|
|
438
|
-
_0x3fbefb: 0x1d6
|
|
439
|
-
}, _0x522317 = { _0x45be27: 0x263 }, _0x153730 = {
|
|
440
|
-
_0x463b17: 0x291,
|
|
441
|
-
_0x5e9a46: 0x2be,
|
|
442
|
-
_0x23254d: 0x1e4,
|
|
443
|
-
_0x424393: 0x1c4,
|
|
444
|
-
_0x17dfbd: 0x251,
|
|
445
|
-
_0x961526: 0x268
|
|
446
|
-
}, _0x8681bc = {
|
|
447
|
-
_0x5524bb: 0x1c3,
|
|
448
|
-
_0x1bd8a1: 0x1e4
|
|
449
|
-
}, _0x9ca63f = {
|
|
450
|
-
_0x3ec642: 0x2ac,
|
|
451
|
-
_0x37fa4a: 0x268,
|
|
452
|
-
_0x3c4a19: 0x21b,
|
|
453
|
-
_0x4e4370: 0x1c0,
|
|
454
|
-
_0xe6a7d9: 0x1e9
|
|
455
|
-
}, _0x4403d0 = _0x4ab0ed, _0x96fd5d = _0x58f74a['fetchImpl'] ?? fetch, _0x1785a2 = _0x58f74a[_0x4403d0(0x193)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4dacbc = typeof _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] === _0x4403d0(_0x4fe2f7._0x24ceb0) && _0x58f74a[_0x4403d0(0x1a2)] > 0x0 ? _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] : 0x0, _0x73b33 = _0x58f74a[_0x4403d0(_0x4fe2f7._0x84e7a5)]?.['trim']() || void 0x0, _0x4570c9 = _0x58f74a['workerThreadTarget']?.['trim']() || void 0x0, _0x529f0c = createHeaders(_0x58f74a[_0x4403d0(0x1f4)]), _0xb724a0 = toHttpBaseUrl(_0x58f74a['serverUrl']);
|
|
456
|
-
let _0x33de00 = null;
|
|
457
|
-
const _0x2ad9bb = new Map();
|
|
458
|
-
let _0x5ee29d = _0x4dacbc, _0x1d7d06 = _0x4dacbc;
|
|
459
|
-
function _0x4dfd71(_0x481bb8) {
|
|
460
|
-
const _0x47a481 = _0x4403d0, _0x2587c5 = _0x481bb8[_0x47a481(_0x9ca63f._0x3ec642)]['headers'][_0x47a481(_0x9ca63f._0x37fa4a)](_0x47a481(_0x9ca63f._0x3c4a19)) ?? 'unknown', _0x40f0a6 = _0x481bb8[_0x47a481(0x1c9)][_0x47a481(0x1e4)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
461
|
-
return '请求\x20' + _0x481bb8['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x481bb8[_0x47a481(0x2ac)][_0x47a481(_0x9ca63f._0x4e4370)] + _0x47a481(0x1b7) + _0x2587c5 + _0x47a481(0x2ba) + _0x40f0a6 + _0x47a481(_0x9ca63f._0xe6a7d9);
|
|
462
|
-
}
|
|
463
|
-
async function _0x52f5fe(_0x2d7dec, _0x42b7aa) {
|
|
464
|
-
const _0x1bfab7 = _0x4403d0, _0x44a6f8 = Buffer[_0x1bfab7(_0x8681bc._0x5524bb)](await _0x42b7aa[_0x1bfab7(0x278)]())['toString'](_0x1bfab7(0x178));
|
|
465
|
-
if (!_0x44a6f8[_0x1bfab7(_0x8681bc._0x1bd8a1)]())
|
|
466
|
-
return {};
|
|
467
|
-
try {
|
|
468
|
-
return JSON[_0x1bfab7(0x1a5)](_0x44a6f8);
|
|
469
|
-
} catch {
|
|
470
|
-
throw new Error(_0x4dfd71({
|
|
471
|
-
'bodyText': _0x44a6f8,
|
|
472
|
-
'requestUrl': _0x2d7dec,
|
|
473
|
-
'response': _0x42b7aa
|
|
474
|
-
}));
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
function _0x1ed405(_0x4b713b, _0x341f5a) {
|
|
478
|
-
const _0x128c6c = _0x4403d0, _0x505f32 = typeof _0x341f5a['idempotency_key'] === _0x128c6c(_0x153730._0x463b17) ? _0x341f5a[_0x128c6c(_0x153730._0x5e9a46)][_0x128c6c(_0x153730._0x23254d)]() : '';
|
|
479
|
-
if (_0x505f32)
|
|
480
|
-
return _0x505f32;
|
|
481
|
-
const _0x392861 = Date['now']();
|
|
482
|
-
for (const [_0x328131, _0x390dbc] of _0x2ad9bb) {
|
|
483
|
-
_0x390dbc[_0x128c6c(_0x153730._0x424393)] <= _0x392861 && _0x2ad9bb['delete'](_0x328131);
|
|
484
|
-
}
|
|
485
|
-
const _0x17080a = {
|
|
486
|
-
..._0x341f5a,
|
|
487
|
-
'idempotency_key': void 0x0
|
|
488
|
-
}, _0x21b690 = createHash(_0x128c6c(_0x153730._0x17dfbd))[_0x128c6c(0x1cf)](_0x4b713b + ':' + stableStringify(_0x17080a))[_0x128c6c(0x270)](_0x128c6c(0x27d)), _0x38cb72 = _0x4b713b + ':' + _0x21b690, _0xe37198 = _0x2ad9bb[_0x128c6c(_0x153730._0x961526)](_0x38cb72);
|
|
489
|
-
if (_0xe37198)
|
|
490
|
-
return _0xe37198['value'];
|
|
491
|
-
const _0x14fb27 = 'auto:' + _0x4b713b + ':' + randomUUID();
|
|
492
|
-
return _0x2ad9bb[_0x128c6c(0x21d)](_0x38cb72, {
|
|
493
|
-
'expiresAt': _0x392861 + 0x5 * 0x3c * 0x3e8,
|
|
494
|
-
'value': _0x14fb27
|
|
495
|
-
}), _0x14fb27;
|
|
496
|
-
}
|
|
497
|
-
async function _0x2f42f1(_0x388910, _0x4440a4) {
|
|
498
|
-
const _0x403a96 = _0x4403d0, _0x34d808 = new AbortController(), _0x10f06e = setTimeout(() => _0x34d808[_0x403a96(0x206)](), _0x1785a2), _0x1b410e = _0x4440a4?.['signal'] ? anySignal(_0x4440a4['signal'], _0x34d808[_0x403a96(0x1d6)]) : _0x34d808[_0x403a96(0x1d6)], _0x2c3185 = '' + _0xb724a0 + _0x388910;
|
|
499
|
-
try {
|
|
500
|
-
const _0x14ded4 = await _0x96fd5d(_0x2c3185, {
|
|
501
|
-
..._0x4440a4,
|
|
502
|
-
'signal': _0x1b410e
|
|
503
|
-
}), _0x245f07 = await _0x52f5fe(_0x2c3185, _0x14ded4);
|
|
504
|
-
if (!_0x14ded4['ok'] || _0x245f07['success'] === ![])
|
|
505
|
-
throw new Error(asErrorMessage(_0x245f07[_0x403a96(_0x522317._0x45be27)], _0x403a96(0x23c) + _0x14ded4['status']));
|
|
506
|
-
return _0x245f07;
|
|
507
|
-
} finally {
|
|
508
|
-
clearTimeout(_0x10f06e);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
async function _0xdd71cc(_0xa966a7, _0x17934b) {
|
|
512
|
-
const _0x10a81a = _0x4403d0, _0x2ed743 = new AbortController(), _0x2bcdbf = setTimeout(() => _0x2ed743[_0x10a81a(0x206)](), _0x1785a2), _0xf6389c = _0x17934b?.[_0x10a81a(_0x307d2a._0x360a04)] ? anySignal(_0x17934b[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2ed743['signal']) : _0x2ed743[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2f9a78 = '' + _0xb724a0 + _0xa966a7;
|
|
513
|
-
try {
|
|
514
|
-
const _0x53fe7f = await _0x96fd5d(_0x2f9a78, {
|
|
515
|
-
..._0x17934b,
|
|
516
|
-
'signal': _0xf6389c
|
|
517
|
-
}), _0x915570 = await _0x52f5fe(_0x2f9a78, _0x53fe7f);
|
|
518
|
-
if (!_0x53fe7f['ok'])
|
|
519
|
-
throw new Error(asErrorMessage(_0x915570[_0x10a81a(0x263)], 'HTTP\x20' + _0x53fe7f[_0x10a81a(0x1c0)]));
|
|
520
|
-
return _0x915570;
|
|
521
|
-
} finally {
|
|
522
|
-
clearTimeout(_0x2bcdbf);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
async function _0x4108fe(_0x553eea) {
|
|
526
|
-
const _0x2ff434 = _0x4403d0;
|
|
527
|
-
if (!_0x73b33 || _0x553eea <= _0x1d7d06)
|
|
528
|
-
return;
|
|
529
|
-
await _0x2f42f1(_0x2ff434(_0x8ebe99._0x2537a2) + encodeURIComponent(_0x73b33) + _0x2ff434(_0x8ebe99._0x5ac886), {
|
|
530
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x553eea }),
|
|
531
|
-
'headers': _0x529f0c,
|
|
532
|
-
'method': 'PATCH'
|
|
533
|
-
}), _0x1d7d06 = _0x553eea;
|
|
534
|
-
}
|
|
535
|
-
async function _0x2de7a6(_0x2c673b) {
|
|
536
|
-
const _0x1df71c = _0x4403d0, _0xf7d405 = parseTarget(_0x2c673b), _0x24ac11 = await _0x2f42f1(_0x1df71c(_0x2788cf._0x294b84) + _0x58f74a[_0x1df71c(0x1ce)] + '/resolve-channel', {
|
|
537
|
-
'body': JSON[_0x1df71c(0x203)]({ 'target': _0xf7d405[_0x1df71c(_0x2788cf._0x11c0d2)] }),
|
|
538
|
-
'headers': _0x529f0c,
|
|
539
|
-
'method': 'POST'
|
|
540
|
-
});
|
|
541
|
-
return {
|
|
542
|
-
'channelId': _0x24ac11[_0x1df71c(0x229)]?.[_0x1df71c(0x294)] ?? '',
|
|
543
|
-
'target': _0xf7d405['channelTarget'],
|
|
544
|
-
'threadId': _0x24ac11['data']?.[_0x1df71c(0x1ac)]
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
async function _0x4c5559() {
|
|
548
|
-
return !_0x33de00 && (_0x33de00 = (async () => {
|
|
549
|
-
const _0x1302a5 = _0xaeca, _0x602e0c = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x51db5e) + _0x58f74a['agentId'] + _0x1302a5(_0x2c4ca4._0x4ee713), {
|
|
550
|
-
'headers': _0x529f0c,
|
|
551
|
-
'method': _0x1302a5(0x20a)
|
|
552
|
-
}), _0x1f4000 = _0x602e0c['data']?.[_0x1302a5(0x296)]['id'] ?? '';
|
|
553
|
-
let _0x2d6e94 = [];
|
|
554
|
-
try {
|
|
555
|
-
const _0xb18b5a = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x166170) + encodeURIComponent(_0x1f4000), {
|
|
556
|
-
'headers': _0x529f0c,
|
|
557
|
-
'method': _0x1302a5(0x20a)
|
|
558
|
-
});
|
|
559
|
-
_0x2d6e94 = _0xb18b5a[_0x1302a5(_0x2c4ca4._0x22b4ec)] ?? [];
|
|
560
|
-
} catch {
|
|
561
|
-
_0x2d6e94 = [];
|
|
562
|
-
}
|
|
563
|
-
const _0x4c702b = _0x2d6e94[_0x1302a5(_0x2c4ca4._0xc6123b)](_0x4b37b5 => ({
|
|
564
|
-
'id': _0x4b37b5[_0x1302a5(0x21f)]?.['id'] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? '',
|
|
565
|
-
'name': _0x4b37b5[_0x1302a5(0x21f)]?.[_0x1302a5(0x228)] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? ''
|
|
566
|
-
}))['filter'](_0x15bd5b => _0x15bd5b['id']), _0x12fdfe = new Set(_0x4c702b[_0x1302a5(_0x2c4ca4._0x59adc5)](_0x2dfb58 => _0x2dfb58['id'])), _0x2260c2 = (_0x602e0c[_0x1302a5(_0x2c4ca4._0x279e96)]?.[_0x1302a5(_0x2c4ca4._0x4b19f0)] ?? [])[_0x1302a5(_0x2c4ca4._0x1d5568)](_0x12e90b => !_0x12fdfe['has'](_0xe7e545(_0x12e90b)))['map'](_0xf4d18b => ({
|
|
567
|
-
'id': _0xe7e545(_0xf4d18b),
|
|
568
|
-
'name': _0x56442e(_0xf4d18b)
|
|
569
|
-
}))[_0x1302a5(0x1d9)](_0x13161b => _0x13161b['id']);
|
|
570
|
-
return {
|
|
571
|
-
'agents': _0x4c702b,
|
|
572
|
-
'channels': _0x602e0c[_0x1302a5(_0x2c4ca4._0x22b4ec)]?.[_0x1302a5(0x231)] ?? [],
|
|
573
|
-
'humans': _0x2260c2,
|
|
574
|
-
'serverId': _0x1f4000,
|
|
575
|
-
'serverName': _0x602e0c[_0x1302a5(_0x2c4ca4._0xf3dc19)]?.[_0x1302a5(_0x2c4ca4._0x3262b2)][_0x1302a5(_0x2c4ca4._0x39fd04)] ?? _0x1f4000
|
|
576
|
-
};
|
|
577
|
-
})()['catch'](_0x432536 => {
|
|
578
|
-
_0x33de00 = null;
|
|
579
|
-
throw _0x432536;
|
|
580
|
-
})), _0x33de00;
|
|
581
|
-
}
|
|
582
|
-
function _0xfeef44(_0x29a54f, _0x2ae16f) {
|
|
583
|
-
const _0x7a8045 = _0x4403d0;
|
|
584
|
-
return _0x2ae16f[_0x7a8045(0x23e)][_0x7a8045(0x23d)](_0x2d772c => _0x2d772c['id'] === _0x29a54f || _0x2d772c[_0x7a8045(0x228)] === _0x29a54f) ? _0x7a8045(0x1e8) : _0x7a8045(_0x18727f._0x43ec5c);
|
|
585
|
-
}
|
|
586
|
-
function _0x86ee5(_0x345b26) {
|
|
587
|
-
const _0x42c6f2 = _0x4403d0;
|
|
588
|
-
if (_0x345b26[_0x42c6f2(_0x136866._0x23ef8a)] != null)
|
|
589
|
-
return _0x345b26['channelTarget'] + ':t' + _0x345b26[_0x42c6f2(0x1bc)];
|
|
590
|
-
if (_0x345b26[_0x42c6f2(0x293)])
|
|
591
|
-
return _0x345b26['channelTarget'] + ':' + _0x345b26[_0x42c6f2(0x293)];
|
|
592
|
-
if (_0x345b26[_0x42c6f2(0x1ac)])
|
|
593
|
-
return _0x345b26[_0x42c6f2(_0x136866._0x33e270)] + ':' + _0x345b26[_0x42c6f2(0x1ac)][_0x42c6f2(_0x136866._0x2c9cb7)](0x0, 0x8);
|
|
594
|
-
return _0x345b26['channelTarget'];
|
|
595
|
-
}
|
|
596
|
-
function _0x4a54c2(_0x465751, _0x3e47de) {
|
|
597
|
-
const _0x16cc28 = _0x4403d0;
|
|
598
|
-
try {
|
|
599
|
-
const _0x41d47b = parseTarget(_0x465751);
|
|
600
|
-
if (_0x41d47b[_0x16cc28(0x1aa)] !== 'thread' || _0x41d47b[_0x16cc28(0x258)] !== _0x3e47de[_0x16cc28(0x258)])
|
|
601
|
-
return ![];
|
|
602
|
-
if (_0x3e47de[_0x16cc28(0x1bc)] != null && _0x41d47b[_0x16cc28(_0x35bba9._0x18be69)] === 't' + _0x3e47de[_0x16cc28(0x1bc)])
|
|
603
|
-
return !![];
|
|
604
|
-
if (_0x3e47de[_0x16cc28(_0x35bba9._0x189b8f)])
|
|
605
|
-
return _0x41d47b['threadShortId'] === _0x3e47de['rootMessageId'] || _0x3e47de['rootMessageId'][_0x16cc28(0x2af)](_0x41d47b[_0x16cc28(_0x35bba9._0x18be69)]);
|
|
606
|
-
if (_0x3e47de[_0x16cc28(_0x35bba9._0x7e6ebc)])
|
|
607
|
-
return _0x41d47b[_0x16cc28(0x18d)] === _0x3e47de['threadId'] || _0x3e47de[_0x16cc28(0x1ac)][_0x16cc28(_0x35bba9._0x260b5e)](_0x41d47b['threadShortId']);
|
|
608
|
-
return ![];
|
|
609
|
-
} catch {
|
|
610
|
-
return ![];
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
function _0xe7e545(_0x4b1165) {
|
|
614
|
-
const _0x566bd8 = _0x4403d0;
|
|
615
|
-
return _0x4b1165['member']?.['participantId'] ?? _0x4b1165[_0x566bd8(0x197)]?.['id'] ?? _0x4b1165[_0x566bd8(0x1a6)] ?? '';
|
|
616
|
-
}
|
|
617
|
-
function _0x56442e(_0x26cacf) {
|
|
618
|
-
const _0x317eee = _0x4403d0;
|
|
619
|
-
return _0x26cacf[_0x317eee(_0x362512._0x545348)]?.['name'] ?? _0xe7e545(_0x26cacf);
|
|
620
|
-
}
|
|
621
|
-
async function _0x4a8bb3(_0x468d00) {
|
|
622
|
-
const _0x255163 = _0x4403d0, _0xeff874 = Math[_0x255163(0x282)](_0x468d00['limit'] ?? 0x32, 0x64), _0x45d8ef = await _0x4c5559(), _0x31337e = new URLSearchParams();
|
|
623
|
-
_0x31337e['set'](_0x255163(0x2b7), String(_0xeff874));
|
|
624
|
-
_0x468d00[_0x255163(0x1ac)] ? (_0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x408cef), _0x468d00['threadId']), _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00[_0x255163(_0x4f85a3._0x122b1a)])) : _0x31337e[_0x255163(0x21d)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00['channelId']);
|
|
625
|
-
_0x468d00['before'] && _0x31337e[_0x255163(_0x4f85a3._0x38ad31)](_0x255163(_0x4f85a3._0xf7a33b), String(_0x468d00[_0x255163(0x286)]));
|
|
626
|
-
_0x468d00['after'] !== void 0x0 && _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x56c9e6), String(_0x468d00[_0x255163(0x1fb)]));
|
|
627
|
-
const _0x4c2cd2 = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + '/history?' + _0x31337e[_0x255163(_0x4f85a3._0x5e62be)](), {
|
|
628
|
-
'headers': _0x529f0c,
|
|
629
|
-
'method': _0x255163(_0x4f85a3._0x139529)
|
|
630
|
-
}), _0x3b52de = (_0x4c2cd2[_0x255163(0x229)] ?? [])[_0x255163(_0x4f85a3._0x46971e)](_0xe96b33 => ({
|
|
631
|
-
'attachments': (_0xe96b33[_0x255163(0x15a)] ?? [])[_0x255163(0x243)](_0x580f85 => ({
|
|
632
|
-
'filename': _0x580f85[_0x255163(0x25c)] ?? _0x580f85['id'],
|
|
633
|
-
'id': _0x580f85['id']
|
|
634
|
-
})),
|
|
635
|
-
'content': _0xe96b33[_0x255163(0x28d)] ?? '',
|
|
636
|
-
'createdAt': _0xe96b33['createdAt'],
|
|
637
|
-
'messageId': _0xe96b33['id'],
|
|
638
|
-
'senderName': _0xe96b33[_0x255163(0x1fd)],
|
|
639
|
-
'senderType': _0xfeef44(_0xe96b33['senderParticipantId'], _0x45d8ef),
|
|
640
|
-
'seq': _0xe96b33['eventSeq'] ?? 0x0
|
|
641
|
-
}));
|
|
642
|
-
return {
|
|
643
|
-
'channel': _0x468d00[_0x255163(0x258)],
|
|
644
|
-
'hasMore': _0x4c2cd2[_0x255163(_0x4f85a3._0x219071)]?.[_0x255163(0x204)] ?? ![],
|
|
645
|
-
'messages': _0x3b52de,
|
|
646
|
-
'nextCursor': _0x4c2cd2[_0x255163(_0x4f85a3._0x3ba3ea)]?.[_0x255163(_0x4f85a3._0xf7a33b)]
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
return {
|
|
650
|
-
async 'sendMessage'(_0xeed77) {
|
|
651
|
-
const _0x21f04c = _0x4403d0, _0x31c8ad = await _0x2de7a6(_0xeed77[_0x21f04c(_0x58f306._0x287272)]), _0x1e3f86 = _0xeed77[_0x21f04c(_0x58f306._0x3bdb3c)][_0x21f04c(_0x58f306._0x46d39c)]('@') ? extractMentionedParticipantIds(_0xeed77[_0x21f04c(0x2b5)], await _0x4c5559()) : [], _0x3ff680 = await _0x2f42f1(_0x21f04c(_0x58f306._0x18c597) + _0x58f74a[_0x21f04c(0x1ce)] + '/send', {
|
|
652
|
-
'body': JSON[_0x21f04c(_0x58f306._0x2b8fec)]({
|
|
653
|
-
'attachment_ids': _0xeed77[_0x21f04c(0x29f)],
|
|
654
|
-
'bodyMarkdown': _0xeed77[_0x21f04c(_0x58f306._0x1a2d90)],
|
|
655
|
-
'channelId': _0x31c8ad[_0x21f04c(0x294)],
|
|
656
|
-
..._0x1e3f86[_0x21f04c(_0x58f306._0x49f776)] > 0x0 ? { 'mentionedParticipantIds': _0x1e3f86 } : {},
|
|
657
|
-
'threadId': _0x31c8ad[_0x21f04c(0x1ac)]
|
|
658
|
-
}),
|
|
659
|
-
'headers': _0x529f0c,
|
|
660
|
-
'method': _0x21f04c(_0x58f306._0x59c457)
|
|
661
|
-
});
|
|
662
|
-
return { 'messageId': _0x3ff680['data']?.['id'] ?? '' };
|
|
663
|
-
},
|
|
664
|
-
async 'listSchedules'() {
|
|
665
|
-
const _0x44e0ca = _0x4403d0, _0x1b4401 = await _0x2f42f1(_0x44e0ca(_0x18e6db._0x2f0ea2), {
|
|
666
|
-
'headers': _0x529f0c,
|
|
667
|
-
'method': _0x44e0ca(0x20a)
|
|
668
|
-
});
|
|
669
|
-
return _0x1b4401[_0x44e0ca(_0x18e6db._0x207485)] ?? [];
|
|
670
|
-
},
|
|
671
|
-
async 'claimScheduleRun'(_0xd8b4f0) {
|
|
672
|
-
const _0x2ba834 = _0x4403d0, _0x3928f5 = await _0x2f42f1(_0x2ba834(_0x428f84._0x4913e7), {
|
|
673
|
-
'body': JSON['stringify'](_0xd8b4f0),
|
|
674
|
-
'headers': _0x529f0c,
|
|
675
|
-
'method': 'POST'
|
|
676
|
-
});
|
|
677
|
-
return _0x3928f5[_0x2ba834(0x229)] ?? {
|
|
678
|
-
'granted': ![],
|
|
679
|
-
'runId': null,
|
|
680
|
-
'schedule': null,
|
|
681
|
-
'scheduledFor': _0xd8b4f0[_0x2ba834(_0x428f84._0x527c61)]
|
|
682
|
-
};
|
|
683
|
-
},
|
|
684
|
-
async 'startScheduleRun'(_0xfa03a9) {
|
|
685
|
-
const _0x4e86dd = _0x4403d0, _0x263c9e = await _0x2f42f1(_0x4e86dd(_0x726f5f._0x5b58cc) + encodeURIComponent(_0xfa03a9[_0x4e86dd(0x29d)]) + _0x4e86dd(_0x726f5f._0x4ed5d8), {
|
|
686
|
-
'body': JSON[_0x4e86dd(0x203)]({}),
|
|
687
|
-
'headers': _0x529f0c,
|
|
688
|
-
'method': _0x4e86dd(_0x726f5f._0x402775)
|
|
689
|
-
});
|
|
690
|
-
return _0x263c9e[_0x4e86dd(0x229)] ?? {
|
|
691
|
-
'claimedByDaemonId': '',
|
|
692
|
-
'id': _0xfa03a9['runId'],
|
|
693
|
-
'scheduleId': '',
|
|
694
|
-
'status': 'running'
|
|
695
|
-
};
|
|
696
|
-
},
|
|
697
|
-
async 'finishScheduleRun'(_0x40f712) {
|
|
698
|
-
const _0x264a62 = _0x4403d0, _0x201d20 = await _0x2f42f1(_0x264a62(0x183) + encodeURIComponent(_0x40f712['runId']) + _0x264a62(_0x22f4c4._0x9a4e10), {
|
|
699
|
-
'body': JSON[_0x264a62(0x203)]({
|
|
700
|
-
'error': _0x40f712[_0x264a62(_0x22f4c4._0x95b5bc)],
|
|
701
|
-
'resultJson': _0x40f712[_0x264a62(_0x22f4c4._0x505049)],
|
|
702
|
-
'status': _0x40f712[_0x264a62(_0x22f4c4._0x2bf9c6)]
|
|
703
|
-
}),
|
|
704
|
-
'headers': _0x529f0c,
|
|
705
|
-
'method': 'POST'
|
|
706
|
-
});
|
|
707
|
-
return _0x201d20['data'] ?? {
|
|
708
|
-
'nextRunAt': null,
|
|
709
|
-
'run': {
|
|
710
|
-
'claimedByDaemonId': '',
|
|
711
|
-
'id': _0x40f712[_0x264a62(0x29d)],
|
|
712
|
-
'scheduleId': '',
|
|
713
|
-
'status': _0x40f712['status']
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
},
|
|
717
|
-
async 'listTasks'(_0xd5e6ee) {
|
|
718
|
-
const _0xe76bb = _0x4403d0, _0x112c01 = new URLSearchParams();
|
|
719
|
-
return _0x112c01['set']('channel', _0xd5e6ee['channel']), _0xd5e6ee[_0xe76bb(_0x26df12._0x5969db)] && _0x112c01[_0xe76bb(_0x26df12._0x2c0a25)](_0xe76bb(_0x26df12._0x5969db), _0xd5e6ee[_0xe76bb(_0x26df12._0x24059a)]), _0xdd71cc(_0xe76bb(0x179) + _0x58f74a[_0xe76bb(0x1ce)] + _0xe76bb(0x28a) + _0x112c01[_0xe76bb(0x173)](), {
|
|
720
|
-
'headers': _0x529f0c,
|
|
721
|
-
'method': 'GET'
|
|
722
|
-
});
|
|
723
|
-
},
|
|
724
|
-
async 'createTasks'(_0x4ff2ba) {
|
|
725
|
-
const _0x5627f7 = _0x4403d0;
|
|
726
|
-
return _0xdd71cc(_0x5627f7(0x179) + _0x58f74a[_0x5627f7(0x1ce)] + '/tasks', {
|
|
727
|
-
'body': JSON[_0x5627f7(_0x203839._0x5d1bf4)]({
|
|
728
|
-
..._0x4ff2ba,
|
|
729
|
-
'idempotency_key': _0x1ed405(_0x5627f7(_0x203839._0x1085bd), _0x4ff2ba)
|
|
730
|
-
}),
|
|
731
|
-
'headers': _0x529f0c,
|
|
732
|
-
'method': _0x5627f7(_0x203839._0x4030c2)
|
|
733
|
-
});
|
|
734
|
-
},
|
|
735
|
-
async 'claimTasks'(_0x554b7b) {
|
|
736
|
-
const _0x3d4570 = _0x4403d0;
|
|
737
|
-
return _0xdd71cc(_0x3d4570(0x179) + _0x58f74a[_0x3d4570(0x1ce)] + _0x3d4570(_0x4bf035._0x207b60), {
|
|
738
|
-
'body': JSON[_0x3d4570(_0x4bf035._0x3eb81e)]({
|
|
739
|
-
..._0x554b7b,
|
|
740
|
-
'idempotency_key': _0x1ed405(_0x3d4570(0x166), _0x554b7b)
|
|
741
|
-
}),
|
|
742
|
-
'headers': _0x529f0c,
|
|
743
|
-
'method': _0x3d4570(_0x4bf035._0x1fc250)
|
|
744
|
-
});
|
|
745
|
-
},
|
|
746
|
-
async 'unclaimTask'(_0x2ce56d) {
|
|
747
|
-
const _0x4b2326 = _0x4403d0;
|
|
748
|
-
return _0xdd71cc('/internal/agent/' + _0x58f74a['agentId'] + '/tasks/unclaim', {
|
|
749
|
-
'body': JSON[_0x4b2326(0x203)]({
|
|
750
|
-
..._0x2ce56d,
|
|
751
|
-
'idempotency_key': _0x1ed405(_0x4b2326(0x2bd), _0x2ce56d)
|
|
752
|
-
}),
|
|
753
|
-
'headers': _0x529f0c,
|
|
754
|
-
'method': _0x4b2326(_0x1d729d._0x3324c1)
|
|
755
|
-
});
|
|
756
|
-
},
|
|
757
|
-
async 'updateTaskStatus'(_0x4bf836) {
|
|
758
|
-
const _0x3cac92 = _0x4403d0;
|
|
759
|
-
return _0xdd71cc(_0x3cac92(_0x5164c6._0x2eb1fc) + _0x58f74a[_0x3cac92(_0x5164c6._0x11c292)] + '/tasks/update-status', {
|
|
760
|
-
'body': JSON[_0x3cac92(_0x5164c6._0x2cf270)]({
|
|
761
|
-
..._0x4bf836,
|
|
762
|
-
'idempotency_key': _0x1ed405(_0x3cac92(_0x5164c6._0xadb360), _0x4bf836)
|
|
763
|
-
}),
|
|
764
|
-
'headers': _0x529f0c,
|
|
765
|
-
'method': _0x3cac92(0x2a0)
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
async 'uploadFile'(_0x438191) {
|
|
769
|
-
const _0x34f0f6 = _0x4403d0, _0x525ae1 = await _0x2de7a6(_0x438191[_0x34f0f6(_0x275824._0x3ef129)]);
|
|
770
|
-
if (_0x525ae1[_0x34f0f6(0x1ac)])
|
|
771
|
-
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
772
|
-
const _0x5ffbca = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + _0x34f0f6(0x237), {
|
|
773
|
-
'body': JSON[_0x34f0f6(0x203)]({
|
|
774
|
-
'channel': _0x525ae1['target'],
|
|
775
|
-
'contentBase64': _0x438191[_0x34f0f6(_0x275824._0x1df1af)],
|
|
776
|
-
'contentType': _0x438191[_0x34f0f6(0x165)],
|
|
777
|
-
'originalFilename': _0x438191[_0x34f0f6(_0x275824._0x2f970d)]
|
|
778
|
-
}),
|
|
779
|
-
'headers': _0x529f0c,
|
|
780
|
-
'method': _0x34f0f6(0x2a0)
|
|
781
|
-
});
|
|
782
|
-
return {
|
|
783
|
-
'attachmentId': _0x5ffbca[_0x34f0f6(0x229)]?.['id'] ?? '',
|
|
784
|
-
'filename': _0x5ffbca[_0x34f0f6(0x229)]?.['originalFilename'] ?? _0x438191[_0x34f0f6(0x25c)],
|
|
785
|
-
'sizeBytes': _0x5ffbca['data']?.[_0x34f0f6(_0x275824._0x23e6eb)] ?? 0x0
|
|
786
|
-
};
|
|
787
|
-
},
|
|
788
|
-
async 'downloadAttachment'(_0x369bb1) {
|
|
789
|
-
const _0x5558b8 = _0x4403d0, _0x2bb11c = await _0x2f42f1('/api/attachments/' + _0x369bb1, {
|
|
790
|
-
'headers': _0x529f0c,
|
|
791
|
-
'method': 'GET'
|
|
792
|
-
}), _0x108e51 = new AbortController(), _0x4ff8a6 = setTimeout(() => _0x108e51[_0x5558b8(0x206)](), _0x1785a2);
|
|
793
|
-
try {
|
|
794
|
-
const _0x301054 = await _0x96fd5d(_0xb724a0 + '/api/attachments/' + _0x369bb1 + _0x5558b8(0x1d3), {
|
|
795
|
-
'headers': _0x529f0c,
|
|
796
|
-
'method': _0x5558b8(0x20a),
|
|
797
|
-
'signal': _0x108e51[_0x5558b8(_0x55ce3c._0x5e5b35)]
|
|
798
|
-
});
|
|
799
|
-
if (!_0x301054['ok'])
|
|
800
|
-
throw new Error(_0x5558b8(_0x55ce3c._0x589e3a) + _0x301054[_0x5558b8(0x1c0)]);
|
|
801
|
-
return {
|
|
802
|
-
'contentType': _0x2bb11c['data']?.[_0x5558b8(_0x55ce3c._0x20f358)] ?? _0x301054[_0x5558b8(_0x55ce3c._0x4f6993)]['get']('content-type') ?? 'application/octet-stream',
|
|
803
|
-
'data': Buffer[_0x5558b8(0x1c3)](await _0x301054['arrayBuffer']()),
|
|
804
|
-
'originalFilename': _0x2bb11c['data']?.[_0x5558b8(0x1ad)]
|
|
805
|
-
};
|
|
806
|
-
} finally {
|
|
807
|
-
clearTimeout(_0x4ff8a6);
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
async 'listServer'() {
|
|
811
|
-
return _0x4c5559();
|
|
812
|
-
},
|
|
813
|
-
async 'readHistory'(_0x2fd275) {
|
|
814
|
-
const _0x173a65 = _0x4403d0, _0x31a8f5 = await _0x2de7a6(_0x2fd275[_0x173a65(_0x1a7f0b._0x44b3f4)]);
|
|
815
|
-
return _0x4a8bb3({
|
|
816
|
-
'after': _0x2fd275[_0x173a65(0x1fb)],
|
|
817
|
-
'before': _0x2fd275[_0x173a65(_0x1a7f0b._0x309fbc)],
|
|
818
|
-
'channelId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x581fa6)],
|
|
819
|
-
'channelTarget': _0x31a8f5['target'],
|
|
820
|
-
'limit': _0x2fd275[_0x173a65(_0x1a7f0b._0x2621aa)],
|
|
821
|
-
'threadId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x26de95)]
|
|
822
|
-
});
|
|
823
|
-
},
|
|
824
|
-
async 'checkMessages'() {
|
|
825
|
-
const _0x2fbecb = _0x4403d0, _0xe99583 = new URLSearchParams();
|
|
826
|
-
_0xe99583[_0x2fbecb(0x21d)](_0x2fbecb(0x284), String(_0x5ee29d));
|
|
827
|
-
const _0x56ce68 = _0xe99583[_0x2fbecb(0x173)](), _0x5524e2 = await _0x2f42f1(_0x2fbecb(_0x1c7d90._0x22a04d) + _0x58f74a[_0x2fbecb(_0x1c7d90._0x1e5c31)] + _0x2fbecb(_0x1c7d90._0xda23c1) + (_0x56ce68 ? '?' + _0x56ce68 : ''), {
|
|
828
|
-
'headers': _0x529f0c,
|
|
829
|
-
'method': 'GET'
|
|
830
|
-
}), _0x14383a = _0x5524e2[_0x2fbecb(_0x1c7d90._0x381049)] ?? [], _0x4ab14d = _0x5524e2[_0x2fbecb(0x1d2)]?.[_0x2fbecb(0x20b)], _0x2c9f15 = _0x4ab14d !== void 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x4ab14d) : _0x14383a['length'] > 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x14383a[_0x14383a[_0x2fbecb(0x1e3)] - 0x1][_0x2fbecb(0x1fa)]) : _0x5ee29d, _0x2cca88 = await _0x4c5559(), _0x125b2c = new Map(_0x2cca88[_0x2fbecb(0x231)][_0x2fbecb(0x243)](_0x4c8926 => [
|
|
831
|
-
_0x4c8926['id'],
|
|
832
|
-
_0x4c8926
|
|
833
|
-
])), _0x44f94b = _0x14383a['filter'](_0x59b395 => _0x59b395[_0x2fbecb(0x196)] === _0x2fbecb(0x256)), _0x3f3688 = new Map();
|
|
834
|
-
for (const _0x27222a of _0x44f94b) {
|
|
835
|
-
const _0x114909 = asRecord(_0x27222a[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x3453f6 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x38afca)] === _0x2fbecb(0x291) ? _0x114909['channelId'] : '';
|
|
836
|
-
if (!_0x3453f6)
|
|
837
|
-
continue;
|
|
838
|
-
const _0x4a1fd8 = typeof _0x114909[_0x2fbecb(0x1ac)] === 'string' ? _0x114909[_0x2fbecb(_0x1c7d90._0x4b0698)] : void 0x0, _0x2be9d3 = typeof _0x114909[_0x2fbecb(0x293)] === _0x2fbecb(_0x1c7d90._0x302280) ? _0x114909[_0x2fbecb(0x293)] : void 0x0, _0xebf534 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)] === _0x2fbecb(_0x1c7d90._0x4d8357) && Number[_0x2fbecb(0x2a6)](_0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)]) ? _0x114909[_0x2fbecb(0x1bc)] : void 0x0, _0x4add42 = Boolean(_0x4a1fd8 && (!_0x2be9d3 || _0x27222a['aggregateId'] !== _0x2be9d3)), _0x39de24 = _0x4add42 ? _0x3453f6 + ':' + _0x4a1fd8 : _0x3453f6, _0x3c66f5 = _0x3f3688[_0x2fbecb(0x268)](_0x39de24) ?? {
|
|
839
|
-
'aggregateIds': [],
|
|
840
|
-
'channelId': _0x3453f6,
|
|
841
|
-
'entries': new Map(),
|
|
842
|
-
'isThreadReply': _0x4add42,
|
|
843
|
-
'rootMessageId': _0x2be9d3,
|
|
844
|
-
'threadNumber': _0xebf534,
|
|
845
|
-
'threadId': _0x4add42 ? _0x4a1fd8 : void 0x0
|
|
846
|
-
};
|
|
847
|
-
_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] == null && _0xebf534 != null && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] = _0xebf534), !_0x3c66f5[_0x2fbecb(_0x1c7d90._0x3e062a)] && _0x2be9d3 && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x194972)] = _0x2be9d3), _0x3c66f5[_0x2fbecb(_0x1c7d90._0x30404c)][_0x2fbecb(0x209)](_0x27222a[_0x2fbecb(0x19d)]), _0x3c66f5[_0x2fbecb(0x1ba)]['set'](_0x27222a[_0x2fbecb(0x19d)], {
|
|
848
|
-
'payloadJson': _0x27222a[_0x2fbecb(0x1a3)],
|
|
849
|
-
'seq': _0x27222a[_0x2fbecb(_0x1c7d90._0x29f60b)]
|
|
850
|
-
}), _0x3f3688[_0x2fbecb(0x21d)](_0x39de24, _0x3c66f5);
|
|
851
|
-
}
|
|
852
|
-
const _0x1eaaa8 = [];
|
|
853
|
-
for (const _0x269be1 of _0x3f3688[_0x2fbecb(_0x1c7d90._0x36b08c)]()) {
|
|
854
|
-
const {
|
|
855
|
-
channelId: _0x546a4e,
|
|
856
|
-
threadId: _0x579065,
|
|
857
|
-
rootMessageId: _0x1b738f,
|
|
858
|
-
threadNumber: _0x1edaea,
|
|
859
|
-
aggregateIds: _0x4c45cf,
|
|
860
|
-
isThreadReply: _0x2942ec,
|
|
861
|
-
entries: _0x3d7e3c
|
|
862
|
-
} = _0x269be1, _0x4926ed = _0x125b2c[_0x2fbecb(0x268)](_0x546a4e), _0x55d225 = _0x4926ed?.[_0x2fbecb(0x228)] ?? _0x546a4e, _0x2a64b5 = _0x4926ed?.[_0x2fbecb(0x1aa)] === 'dm' ? _0x2fbecb(0x18b) + _0x55d225 : '#' + _0x55d225, _0x10a5c4 = {
|
|
863
|
-
'channelTarget': _0x2a64b5,
|
|
864
|
-
'rootMessageId': _0x1b738f,
|
|
865
|
-
'threadId': _0x579065,
|
|
866
|
-
'threadNumber': _0x1edaea
|
|
867
|
-
}, _0x10210e = await _0x4a8bb3({
|
|
868
|
-
'channelId': _0x546a4e,
|
|
869
|
-
'channelTarget': _0x2a64b5,
|
|
870
|
-
'limit': Math[_0x2fbecb(0x185)](_0x4c45cf[_0x2fbecb(_0x1c7d90._0x2b8279)], 0x32),
|
|
871
|
-
'threadId': _0x579065
|
|
872
|
-
}), _0x3f95c2 = new Map(_0x10210e['messages'][_0x2fbecb(_0x1c7d90._0x3aeab6)](_0xf7f0a0 => [
|
|
873
|
-
_0xf7f0a0[_0x2fbecb(0x160)],
|
|
874
|
-
_0xf7f0a0
|
|
875
|
-
])), _0x10eded = _0x579065 ? _0x86ee5(_0x10a5c4) : _0x2a64b5, _0x1e3634 = _0x4570c9 ? _0x2942ec && _0x4a54c2(_0x4570c9, _0x10a5c4) : !![], _0x4689d8 = _0x2942ec ? _0x1e3634 && _0x4570c9 ? _0x4570c9 : _0x10eded : _0x2a64b5;
|
|
876
|
-
for (const _0x2184db of _0x4c45cf) {
|
|
877
|
-
if (!_0x1e3634)
|
|
878
|
-
continue;
|
|
879
|
-
const _0x1599c3 = _0x3f95c2[_0x2fbecb(0x268)](_0x2184db);
|
|
880
|
-
if (_0x1599c3) {
|
|
881
|
-
_0x1eaaa8[_0x2fbecb(0x209)]({
|
|
882
|
-
'attachments': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1228f7)],
|
|
883
|
-
'content': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1178cd)],
|
|
884
|
-
'createdAt': _0x1599c3[_0x2fbecb(_0x1c7d90._0x47cf60)],
|
|
885
|
-
'messageId': _0x1599c3[_0x2fbecb(_0x1c7d90._0x42151a)],
|
|
886
|
-
'senderName': _0x1599c3[_0x2fbecb(0x15c)],
|
|
887
|
-
'senderType': _0x1599c3[_0x2fbecb(0x28c)],
|
|
888
|
-
'target': _0x4689d8
|
|
889
|
-
});
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
const _0x220569 = _0x3d7e3c[_0x2fbecb(_0x1c7d90._0x79ddba)](_0x2184db);
|
|
893
|
-
if (_0x220569) {
|
|
894
|
-
const _0x823c7 = asRecord(_0x220569[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x33ced0 = typeof _0x823c7[_0x2fbecb(_0x1c7d90._0x27649e)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x1fd)] : '', _0x24cff2 = typeof _0x823c7[_0x2fbecb(0x28d)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x28d)] : '';
|
|
895
|
-
_0x33ced0 && _0x24cff2 && _0x1eaaa8[_0x2fbecb(0x209)]({
|
|
896
|
-
'attachments': [],
|
|
897
|
-
'content': _0x24cff2,
|
|
898
|
-
'createdAt': new Date()[_0x2fbecb(0x1a9)](),
|
|
899
|
-
'messageId': _0x2184db,
|
|
900
|
-
'senderName': _0x33ced0,
|
|
901
|
-
'senderType': _0xfeef44(_0x33ced0, _0x2cca88),
|
|
902
|
-
'target': _0x4689d8
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
return _0x2c9f15 > 0x0 && await _0x4108fe(_0x2c9f15), _0x2c9f15 > _0x5ee29d && (_0x5ee29d = _0x2c9f15), { 'messages': _0x1eaaa8 };
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
function toLocalTime(_0x38c0f2) {
|
|
912
|
-
const _0x2950b1 = {
|
|
913
|
-
_0x40dfa9: 0x2a7,
|
|
914
|
-
_0x399ca6: 0x25a,
|
|
915
|
-
_0x87e06b: 0x279
|
|
916
|
-
}, _0x438cf1 = _0x4ab0ed, _0x446f76 = new Date(_0x38c0f2);
|
|
917
|
-
if (Number[_0x438cf1(_0x2950b1._0x40dfa9)](_0x446f76[_0x438cf1(0x1e6)]()))
|
|
918
|
-
return _0x38c0f2;
|
|
919
|
-
const _0xec39f7 = _0x2b0f11 => String(_0x2b0f11)[_0x438cf1(0x1eb)](0x2, '0');
|
|
920
|
-
return _0x446f76[_0x438cf1(0x1c8)]() + '-' + _0xec39f7(_0x446f76[_0x438cf1(0x20e)]() + 0x1) + '-' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x399ca6)]()) + '\x20' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x87e06b)]()) + ':' + _0xec39f7(_0x446f76['getMinutes']()) + ':' + _0xec39f7(_0x446f76[_0x438cf1(0x195)]());
|
|
921
|
-
}
|
|
922
|
-
function formatAttachmentSuffix(_0x12e982) {
|
|
923
|
-
const _0x41a2f5 = {
|
|
924
|
-
_0x3ab293: 0x1e3,
|
|
925
|
-
_0x5b3131: 0x2a5
|
|
926
|
-
}, _0x268b31 = _0x4ab0ed;
|
|
927
|
-
if (!_0x12e982 || _0x12e982['length'] === 0x0)
|
|
928
|
-
return '';
|
|
929
|
-
return '\x20[' + _0x12e982[_0x268b31(0x1e3)] + _0x268b31(0x170) + (_0x12e982[_0x268b31(_0x41a2f5._0x3ab293)] > 0x1 ? 's' : '') + ':\x20' + _0x12e982['map'](_0x712bc0 => _0x712bc0[_0x268b31(0x25c)] + _0x268b31(0x249) + _0x712bc0['id'] + ')')[_0x268b31(_0x41a2f5._0x5b3131)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
930
|
-
}
|
|
931
|
-
function _0x4879() {
|
|
932
|
-
const _0x2257c8 = [
|
|
933
|
-
'lIbnzxnZywDLieLeoIa',
|
|
934
|
-
'ihn0yxr1CZ0',
|
|
114
|
+
function _0x5706() {
|
|
115
|
+
const _0x5a59f5 = [
|
|
116
|
+
'Aw5JBhvKzxm',
|
|
117
|
+
'igLUia',
|
|
118
|
+
'ndCYveDluuXw',
|
|
119
|
+
'yxjNDG',
|
|
120
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
121
|
+
'Dg9VBa',
|
|
122
|
+
'odu5rhvHt2De',
|
|
935
123
|
'zMLSDgvY',
|
|
936
|
-
'
|
|
937
|
-
'
|
|
938
|
-
'
|
|
939
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
940
|
-
'BgLZDf90yxnRCW',
|
|
941
|
-
'nZG0ntnuvMP0vKW',
|
|
942
|
-
'D3nZoG',
|
|
943
|
-
'y2fJAgveAxi',
|
|
944
|
-
'v29YA2vYici',
|
|
945
|
-
'BgvUz3rO',
|
|
946
|
-
'DhjPBq',
|
|
124
|
+
'CMvWBgfJzq',
|
|
125
|
+
'ANnVBG',
|
|
126
|
+
'z2v0rNvSBfLLyxi',
|
|
947
127
|
'D29YA2vYtw9Kzq',
|
|
948
|
-
'
|
|
949
|
-
'
|
|
950
|
-
'
|
|
951
|
-
'
|
|
952
|
-
'
|
|
953
|
-
'
|
|
128
|
+
'w3rHCMDLDd0',
|
|
129
|
+
'DgfYz2v0zwq',
|
|
130
|
+
'zgLNzxn0',
|
|
131
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
132
|
+
'y2HHBM5LBa',
|
|
133
|
+
'DhjPBq',
|
|
134
|
+
'C2v0',
|
|
135
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
136
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
137
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
138
|
+
'sfruuca',
|
|
139
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
140
|
+
'zgvZDhjVEwvK',
|
|
141
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
142
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
143
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
144
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
145
|
+
'BwvZC2fNzxm',
|
|
146
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
147
|
+
'iYmJienOyw5UzwXZ',
|
|
148
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
149
|
+
'ywjVCNrLza',
|
|
150
|
+
'Dgv4Da',
|
|
151
|
+
'C2LNBMfS',
|
|
152
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
153
|
+
'mZq3nti2zxrWtKfw',
|
|
154
|
+
'D3m6',
|
|
155
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
954
156
|
'CMvZDw1Lx3bHy2TLDa',
|
|
157
|
+
'y29UDgvUDc10ExbL',
|
|
158
|
+
'CMvZCg9UC2u',
|
|
159
|
+
'C2vYDMvY',
|
|
160
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
955
161
|
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
956
|
-
'
|
|
957
|
-
'
|
|
162
|
+
'vgfZAZOG',
|
|
163
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
164
|
+
'CMvZDwX0',
|
|
165
|
+
'DMLLD19MAwXL',
|
|
166
|
+
'y2XPzw50',
|
|
167
|
+
'CgfYC2vjBNq',
|
|
168
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
169
|
+
'zgvJAxnPB25Z',
|
|
170
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
171
|
+
'BgLZDf90yxnRCW',
|
|
172
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
173
|
+
'zMfSC2u',
|
|
174
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
175
|
+
'C2HHmJu2',
|
|
176
|
+
'BwvZC2fNzq',
|
|
177
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
178
|
+
'DgHYzwfK',
|
|
179
|
+
'mc4WlJa',
|
|
180
|
+
'BgLTAxq',
|
|
181
|
+
'C2vYDMvYtMfTzq',
|
|
182
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
958
183
|
'y2HLy2TFBwvZC2fNzxm',
|
|
184
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
185
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
186
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
187
|
+
'zMLSzv9WyxrO',
|
|
188
|
+
'cGOTls0G',
|
|
189
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
959
190
|
'zw51Bq',
|
|
960
|
-
'
|
|
961
|
-
'
|
|
962
|
-
'
|
|
963
|
-
'
|
|
964
|
-
'
|
|
965
|
-
'
|
|
966
|
-
'
|
|
967
|
-
'
|
|
968
|
-
'
|
|
969
|
-
'
|
|
970
|
-
'
|
|
971
|
-
'
|
|
972
|
-
'
|
|
973
|
-
'
|
|
974
|
-
'
|
|
975
|
-
'
|
|
976
|
-
'BgLZDfrHC2TZ',
|
|
977
|
-
'C3rYAw5NAwz5',
|
|
191
|
+
'zMfPBgvK',
|
|
192
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
193
|
+
'AxnjBNrLz2vY',
|
|
194
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
195
|
+
'BgLZDf9Zzxj2zxi',
|
|
196
|
+
'C2vUzgvYvhLWzq',
|
|
197
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
198
|
+
'BwvKAxvT',
|
|
199
|
+
'y2HHBM5LBeLK',
|
|
200
|
+
'y2HHDa',
|
|
201
|
+
'AhvTyw4',
|
|
202
|
+
'yMfZzw5HBwu',
|
|
203
|
+
'iYmJieH1BwfUCW',
|
|
204
|
+
'ihr5Cgu9ywDLBNq',
|
|
205
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
206
|
+
'lIbnzxnZywDLieLeoIa',
|
|
978
207
|
'AgfZtw9Yzq',
|
|
979
|
-
'
|
|
980
|
-
'
|
|
981
|
-
'
|
|
982
|
-
'
|
|
983
|
-
'
|
|
984
|
-
'
|
|
985
|
-
'
|
|
986
|
-
'
|
|
987
|
-
'
|
|
988
|
-
'
|
|
989
|
-
'
|
|
990
|
-
'
|
|
991
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
992
|
-
'ywDNCMvNyxrLswrZ',
|
|
208
|
+
'y29UDgvUDa',
|
|
209
|
+
'AgLNAa',
|
|
210
|
+
'C3rYAw5N',
|
|
211
|
+
'yMvMB3jL',
|
|
212
|
+
'C3rYAw5NAwz5',
|
|
213
|
+
'Bwv0yq',
|
|
214
|
+
'DxbSB2fKrMLSzq',
|
|
215
|
+
'kg5VBMuP',
|
|
216
|
+
'igf0DgfJAg1LBNq',
|
|
217
|
+
'DgfZA19Pza',
|
|
218
|
+
'C3rVCe1HAw49Dhj1zsbLEgvJDxrPB25nB2rLpxDVCMTLCG',
|
|
219
|
+
'y2XHAw1uyxnRCW',
|
|
993
220
|
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
994
|
-
'
|
|
995
|
-
'
|
|
996
|
-
'
|
|
997
|
-
'
|
|
998
|
-
'
|
|
999
|
-
'
|
|
1000
|
-
'
|
|
1001
|
-
'
|
|
1002
|
-
'
|
|
1003
|
-
'
|
|
221
|
+
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
222
|
+
'DgfYz2v0',
|
|
223
|
+
'yxjYyxLcDwzMzxi',
|
|
224
|
+
'CMvZDwX0sNnVBG',
|
|
225
|
+
'AgvHzgvYCW',
|
|
226
|
+
'ywDLBNrjza',
|
|
227
|
+
'y3jLyxrLx3rHC2TZ',
|
|
228
|
+
'CgfYDgLJAxbHBNq',
|
|
229
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
230
|
+
'DgfZAW',
|
|
231
|
+
'CNvUswq',
|
|
232
|
+
'ihrPBwu9',
|
|
233
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
234
|
+
'Dgv4Dc9JC3y',
|
|
1004
235
|
'zMLUza',
|
|
1005
|
-
'
|
|
1006
|
-
'zgvZDhjVEwvK',
|
|
1007
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
1008
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1009
|
-
'zMfPBgvK',
|
|
1010
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1011
|
-
'l3n0yxj0',
|
|
1012
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1013
|
-
'C2L6zuj5DgvZ',
|
|
1014
|
-
'BMfTzq',
|
|
1015
|
-
'zgf0yq',
|
|
1016
|
-
'C2L6zq',
|
|
1017
|
-
'y3jLyxrLvgfZA3m',
|
|
236
|
+
'CgfKu3rHCNq',
|
|
1018
237
|
'Aw1Hz2uVANbLzW',
|
|
1019
|
-
'nJyWDKz1Dvfg',
|
|
1020
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1021
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1022
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1023
|
-
'y2HHBM5LBhm',
|
|
1024
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1025
|
-
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
1026
238
|
'DMfSDwvZ',
|
|
1027
|
-
'
|
|
1028
|
-
'
|
|
1029
|
-
'
|
|
1030
|
-
'
|
|
239
|
+
'Dg9mB3DLCKnHC2u',
|
|
240
|
+
'CMvHzeHPC3rVCNK',
|
|
241
|
+
'Bg9JywXLq29TCgfYzq',
|
|
242
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
243
|
+
'y2HLy2TnzxnZywDLCW',
|
|
244
|
+
'zw50CMLLCW',
|
|
245
|
+
'Dg9KBW',
|
|
246
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
247
|
+
'zxH0BMfTzq',
|
|
248
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
249
|
+
'Aw1Hz2uVD2vICa',
|
|
250
|
+
'CgfYDgLJAxbHBNrjza',
|
|
251
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
252
|
+
'DMLZAwjPBgL0Eq',
|
|
253
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
254
|
+
'BwvZC2fNzuLK',
|
|
255
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
256
|
+
'ue9tva',
|
|
257
|
+
'DxbSB2fKx2zPBgu',
|
|
258
|
+
'zg06',
|
|
259
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
260
|
+
'C2L6zq',
|
|
261
|
+
'C3bSAxq',
|
|
262
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1031
263
|
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1032
|
-
'
|
|
1033
|
-
'ig1LC3nHz2vZkqOk',
|
|
1034
|
-
'sfruuca',
|
|
1035
|
-
'C29Tzq',
|
|
1036
|
-
'ywDLBNrZ',
|
|
1037
|
-
'C2vUzf9TzxnZywDL',
|
|
1038
|
-
'y2XPzw50',
|
|
1039
|
-
'v29YA2vYia',
|
|
1040
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
264
|
+
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
1041
265
|
'BwfW',
|
|
1042
|
-
'
|
|
1043
|
-
'
|
|
1044
|
-
'
|
|
1045
|
-
'
|
|
1046
|
-
'
|
|
1047
|
-
'
|
|
1048
|
-
'
|
|
1049
|
-
'
|
|
1050
|
-
'
|
|
1051
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1052
|
-
'iJOGC3rHDhvZpq',
|
|
1053
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
1054
|
-
'B3bLBL9PC3n1zxm',
|
|
1055
|
-
'C2HHmJu2',
|
|
1056
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1057
|
-
'y3jLyxrLx3rHC2TZ',
|
|
1058
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
1059
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1060
|
-
'BwvZC2fNzq',
|
|
1061
|
-
'y2XHAw1uyxnRCW',
|
|
1062
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1063
|
-
'CMvZDwX0sNnVBG',
|
|
1064
|
-
'z2v0rgf0zq',
|
|
1065
|
-
'D29YA19RzxK',
|
|
1066
|
-
'zMLSzw5HBwu',
|
|
1067
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1068
|
-
'y3jLyxrLzef0',
|
|
266
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
267
|
+
'ig1ZzZ0',
|
|
268
|
+
'DgfZA0LK',
|
|
269
|
+
'DgfZA3m',
|
|
270
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
271
|
+
'ls1Zzxj2zxiTDxjS',
|
|
272
|
+
'z2v0twLUDxrLCW',
|
|
273
|
+
'Dg9ju09tDhjPBMC',
|
|
274
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1069
275
|
'ChjVDg9JB2W',
|
|
1070
|
-
'
|
|
1071
|
-
'
|
|
276
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
277
|
+
'BMfTzq',
|
|
278
|
+
'C2f2zq',
|
|
279
|
+
'C2vYDMvYx21LBwjLCNm',
|
|
280
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
281
|
+
'C2XPy2u',
|
|
282
|
+
'mJjiALLXC00',
|
|
283
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
284
|
+
'C3rHDhvZ',
|
|
285
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
286
|
+
'v29YA2vYici',
|
|
287
|
+
'DgL0Bgu',
|
|
288
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
289
|
+
'yxr0ywnOBwvUDeLK',
|
|
290
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
291
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
292
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
293
|
+
'y3jLyxrLzef0',
|
|
294
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
295
|
+
'C2vUzgvYtMfTzq',
|
|
296
|
+
'Aw1Hz2uVCg5N',
|
|
297
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
298
|
+
'C29Tzq',
|
|
299
|
+
'BgLZDfrHC2TZ',
|
|
300
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
301
|
+
'C3rHCNrLza',
|
|
302
|
+
'DgHYzwfKtNvTyMvY',
|
|
303
|
+
'zgLZCg9ZAxrPB24',
|
|
304
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
305
|
+
'D29YA2vY',
|
|
306
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
307
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
308
|
+
'AM9PBG',
|
|
309
|
+
'yM9KEvrLEhq',
|
|
310
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1072
311
|
'zgvZy3jPChrPB24',
|
|
1073
|
-
'
|
|
312
|
+
'icHPzdO',
|
|
313
|
+
'D29YA2vYCW',
|
|
314
|
+
'zgf0yq',
|
|
315
|
+
'zg9Uzq',
|
|
316
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
317
|
+
'ywz0zxi',
|
|
318
|
+
'AxnbyNnVBhv0zq',
|
|
319
|
+
'z2v0',
|
|
320
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
321
|
+
'Dw5RBM93BG',
|
|
322
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
323
|
+
'CMvHC29U',
|
|
324
|
+
'DgvZDa',
|
|
325
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
326
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
327
|
+
'ywDLBNrZ',
|
|
328
|
+
'AxngAwXL',
|
|
329
|
+
'BMv4Den1CNnVCG',
|
|
330
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
331
|
+
'y3vYC29Y',
|
|
1074
332
|
'lsba',
|
|
333
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1075
334
|
'C2vUze1LC3nHz2u',
|
|
1076
|
-
'
|
|
1077
|
-
'
|
|
1078
|
-
'
|
|
1079
|
-
'
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
1082
|
-
'
|
|
1083
|
-
'
|
|
335
|
+
'mJe1ntqXmhzbyw5AwG',
|
|
336
|
+
'ls1ZzxnZAw9UlwLK',
|
|
337
|
+
'yxnPzgu',
|
|
338
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
339
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
340
|
+
'AhjLzG',
|
|
341
|
+
'odu0odaZmeLQq0rjAa',
|
|
342
|
+
'zxzLBNrtzxe',
|
|
343
|
+
'ig1LC3nHz2vZkqOk',
|
|
344
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
345
|
+
'z2v0u2vJB25KCW',
|
|
346
|
+
'CM9VDe1LC3nHz2vjza',
|
|
347
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
348
|
+
'ywDNCMvNyxrLswrZ',
|
|
349
|
+
'mty1mZmZrhLTqxfh',
|
|
350
|
+
'Bwf0y2Hoyw1L',
|
|
351
|
+
'Dg9tDhjPBMC',
|
|
352
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1084
353
|
'y2HHBM5LBe5HBwu',
|
|
1085
|
-
'
|
|
1086
|
-
'
|
|
1087
|
-
'
|
|
354
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
355
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
356
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
357
|
+
'CMvHzf9OAxn0B3j5',
|
|
1088
358
|
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
359
|
+
'Aw5FChjVz3jLC3m',
|
|
360
|
+
'zNjVBq',
|
|
361
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
362
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
363
|
+
'Cgf5Bg9HzePZB24',
|
|
364
|
+
'AxnbCNjHEq',
|
|
1089
365
|
'AhvTyw5Z',
|
|
1090
|
-
'
|
|
1091
|
-
'
|
|
1092
|
-
'
|
|
1093
|
-
'
|
|
1094
|
-
'
|
|
1095
|
-
'
|
|
1096
|
-
'
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'
|
|
366
|
+
'ihn0yxr1CZ0',
|
|
367
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
368
|
+
'Aw5FCMv2Awv3',
|
|
369
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
370
|
+
'zgfLBw9UqxbPs2v5',
|
|
371
|
+
'z2v0vgLTzq',
|
|
372
|
+
'l3rHC2TZ',
|
|
373
|
+
'BMv4Df9ZDgvWCW',
|
|
374
|
+
'ChvZAa',
|
|
375
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
376
|
+
'C2nOzwr1BgvKrM9Y',
|
|
377
|
+
'y29UBMvJDa',
|
|
378
|
+
'BwvTyMvYCW',
|
|
379
|
+
'yMfZzty0',
|
|
380
|
+
'AgfZ',
|
|
381
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
382
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
383
|
+
'l3vWBg9Hza',
|
|
384
|
+
'l3nLBMq',
|
|
385
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
386
|
+
'CgfYC2u',
|
|
387
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
388
|
+
'oxPeBuvTAq',
|
|
389
|
+
'v29YA2vYia',
|
|
1102
390
|
'DgHYzwfKvgfYz2v0pq',
|
|
1103
|
-
'
|
|
1104
|
-
'
|
|
1105
|
-
'
|
|
1106
|
-
'
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'
|
|
1111
|
-
'
|
|
1112
|
-
'
|
|
1113
|
-
'
|
|
1114
|
-
'
|
|
1115
|
-
'
|
|
1116
|
-
'mtm3mJeWEfv4qxjQ',
|
|
391
|
+
'CxvLDwvK',
|
|
392
|
+
'ChvIBgLJ',
|
|
393
|
+
'r0vu',
|
|
394
|
+
'z2v0sg91CNm',
|
|
395
|
+
'zMv0y2HjBxbS',
|
|
396
|
+
'mtbry0PMBfe',
|
|
397
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
398
|
+
'Bwf4',
|
|
399
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
400
|
+
'ywDNCMvNyxrLswq',
|
|
401
|
+
'l2nVBNrLBNq',
|
|
402
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
403
|
+
'mJaXmtq0ndHAzhzewwS',
|
|
1117
404
|
'B3b0Aw9UywW',
|
|
1118
|
-
'
|
|
1119
|
-
'C3rYAw5N',
|
|
1120
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1121
|
-
'CM9VDe1LC3nHz2vjza',
|
|
1122
|
-
'y2HHBM5LBeLK',
|
|
1123
|
-
'zMLSzxnFy2HHBMDLza',
|
|
1124
|
-
'C2vYDMvY',
|
|
1125
|
-
'AgfZ',
|
|
1126
|
-
'C2f2zq',
|
|
1127
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
405
|
+
'y29TCgXLDgvK',
|
|
1128
406
|
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
407
|
+
'C2vUzf9TzxnZywDL',
|
|
408
|
+
'C2vZC2LVBKLK',
|
|
1129
409
|
'C3vJy2vZCW',
|
|
1130
|
-
'
|
|
1131
|
-
'
|
|
1132
|
-
'
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
1136
|
-
'BwvZC2fNzxm',
|
|
1137
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
1138
|
-
'Aw1Hz2uVCg5N',
|
|
1139
|
-
'AM9PBG',
|
|
1140
|
-
'AxnjBNrLz2vY',
|
|
1141
|
-
'Axnoyu4',
|
|
1142
|
-
'CxvLDwvK',
|
|
1143
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1144
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1145
|
-
'AxngAwXL',
|
|
1146
|
-
'CMvZCg9UC2u',
|
|
1147
|
-
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
1148
|
-
'DgfYz2v0',
|
|
1149
|
-
'C3rHCNrZv2L0Aa',
|
|
1150
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1151
|
-
'Aw1Hz2uVD2vICa',
|
|
1152
|
-
'ls1ZzxnZAw9UlwLK',
|
|
1153
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1154
|
-
'ignSywLTzwq',
|
|
1155
|
-
'y29UDgvUDa',
|
|
1156
|
-
'C3rVCe1HAw4',
|
|
1157
|
-
'BgLTAxq',
|
|
1158
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1159
|
-
'ywrK',
|
|
410
|
+
'BgvUz3rO',
|
|
411
|
+
'DxnLCG',
|
|
412
|
+
'iokaLca',
|
|
413
|
+
'B2jQzwn0',
|
|
414
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
415
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1160
416
|
'lcbWCMv2Awv3pq',
|
|
1161
|
-
'
|
|
1162
|
-
'
|
|
1163
|
-
'
|
|
1164
|
-
'
|
|
1165
|
-
'
|
|
1166
|
-
'
|
|
1167
|
-
'
|
|
1168
|
-
'
|
|
1169
|
-
'
|
|
1170
|
-
'
|
|
1171
|
-
'
|
|
1172
|
-
'
|
|
1173
|
-
'y29TCgXLDgvK',
|
|
1174
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
417
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
418
|
+
'Bg93',
|
|
419
|
+
'A2LUza',
|
|
420
|
+
'ywXS',
|
|
421
|
+
'C29YDa',
|
|
422
|
+
'zMLSzxnFy2HHBMDLza',
|
|
423
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
424
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
425
|
+
'l3nLCNzLCG',
|
|
426
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
427
|
+
'ywDLBNq',
|
|
428
|
+
'C2L6zuj5DgvZ',
|
|
1175
429
|
'yxr0ywnOBwvUDhm',
|
|
1176
|
-
'
|
|
1177
|
-
'
|
|
1178
|
-
'
|
|
1179
|
-
'
|
|
1180
|
-
'
|
|
1181
|
-
'
|
|
1182
|
-
'
|
|
1183
|
-
'
|
|
1184
|
-
'
|
|
1185
|
-
'
|
|
1186
|
-
'
|
|
1187
|
-
'
|
|
1188
|
-
'
|
|
1189
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1190
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1191
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
430
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
431
|
+
'pgvTChr5pG',
|
|
432
|
+
'kgXLz2fJEsK',
|
|
433
|
+
'ls1Hz2vUDc1Pza',
|
|
434
|
+
'DMfSDwu',
|
|
435
|
+
'ywjVCNq',
|
|
436
|
+
'ywrK',
|
|
437
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
438
|
+
'y29UDgvUDejHC2u2na',
|
|
439
|
+
'lsaJ',
|
|
440
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
441
|
+
'zxjYB3i',
|
|
442
|
+
'ywz0zxjtzxe',
|
|
1192
443
|
'l2zPBMLZAa',
|
|
1193
|
-
'
|
|
1194
|
-
'
|
|
1195
|
-
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
1196
|
-
'B2jQzwn0',
|
|
1197
|
-
'igf0DgfJAg1LBNq',
|
|
1198
|
-
'DxbSB2fKrMLSzq',
|
|
1199
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1200
|
-
'Dg9tDhjPBMC',
|
|
1201
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
1202
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1203
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
444
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
445
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1204
446
|
'xsba',
|
|
447
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
448
|
+
'CMvZDwX0CW',
|
|
449
|
+
'AxngAw5PDgu',
|
|
450
|
+
'Dw5JBgfPBv90yxnR',
|
|
451
|
+
'uefuq0G',
|
|
1205
452
|
'DxrMoa',
|
|
1206
|
-
'
|
|
1207
|
-
'
|
|
1208
|
-
'
|
|
1209
|
-
'
|
|
1210
|
-
'
|
|
1211
|
-
'ndu0odm5n1bYC1rduW',
|
|
1212
|
-
'l3DVCMTLCNmVC3bHD24',
|
|
1213
|
-
'mMnetfbytG',
|
|
1214
|
-
'C2nOzwr1BgvKrM9Y',
|
|
1215
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1216
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1217
|
-
'BgLZDf9Zzxj2zxi',
|
|
1218
|
-
'Bwf4',
|
|
1219
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1220
|
-
'l3jLy2vPDMu',
|
|
1221
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1222
|
-
'BMv4Den1CNnVCG',
|
|
1223
|
-
'Bg93',
|
|
1224
|
-
'zg06',
|
|
1225
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
453
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
454
|
+
'y2fJAgveAxi',
|
|
455
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
456
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
457
|
+
'DxbKyxrL',
|
|
1226
458
|
'DgHYzwfKu2HVCNrjza',
|
|
1227
|
-
'
|
|
1228
|
-
'
|
|
1229
|
-
'
|
|
1230
|
-
'
|
|
1231
|
-
'
|
|
1232
|
-
'
|
|
1233
|
-
'
|
|
1234
|
-
'
|
|
1235
|
-
'
|
|
1236
|
-
'
|
|
1237
|
-
'
|
|
1238
|
-
'
|
|
1239
|
-
'
|
|
1240
|
-
'
|
|
1241
|
-
'
|
|
1242
|
-
'
|
|
1243
|
-
'
|
|
1244
|
-
'
|
|
1245
|
-
'
|
|
1246
|
-
'
|
|
1247
|
-
'
|
|
1248
|
-
'
|
|
1249
|
-
'
|
|
1250
|
-
'
|
|
1251
|
-
'
|
|
1252
|
-
'
|
|
1253
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1254
|
-
'Dg9ju09tDhjPBMC',
|
|
1255
|
-
'A2LUza',
|
|
1256
|
-
'zg9Uzq',
|
|
459
|
+
'DgHYzwfKvgfYz2v0',
|
|
460
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
461
|
+
'Agv4',
|
|
462
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
463
|
+
'l2HPC3rVCNK/',
|
|
464
|
+
'y29UDgvUDfr5Cgu',
|
|
465
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
466
|
+
'ignSywLTzwq',
|
|
467
|
+
'zMLSzw5HBwu',
|
|
468
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
469
|
+
'mtu2mtaWmezPvvrvuG',
|
|
470
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
471
|
+
'D3nZoG',
|
|
472
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
473
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
474
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
475
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
476
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
477
|
+
'BNvTyMvY',
|
|
478
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
479
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
480
|
+
'BwLU',
|
|
481
|
+
'BgLZDfnLCNzLCG',
|
|
482
|
+
'EM9K',
|
|
483
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
484
|
+
'w3nLCt0',
|
|
1257
485
|
'DgHYzwfKswq',
|
|
1258
|
-
'
|
|
1259
|
-
'
|
|
1260
|
-
'
|
|
1261
|
-
'
|
|
1262
|
-
'
|
|
1263
|
-
'
|
|
1264
|
-
'
|
|
1265
|
-
'
|
|
1266
|
-
'
|
|
1267
|
-
'
|
|
1268
|
-
'
|
|
1269
|
-
'
|
|
1270
|
-
'
|
|
1271
|
-
'
|
|
1272
|
-
'
|
|
1273
|
-
'
|
|
1274
|
-
'
|
|
1275
|
-
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1276
|
-
'ihr5Cgu9ywDLBNq',
|
|
1277
|
-
'C3rHDhvZ',
|
|
486
|
+
'CNvUBMLUzW',
|
|
487
|
+
'CMvXDwvZDfvYBa',
|
|
488
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
489
|
+
'y2f0y2G',
|
|
490
|
+
'Dgv4Dc9WBgfPBG',
|
|
491
|
+
'mty4nffQB0v5tW',
|
|
492
|
+
'BwvTyMvY',
|
|
493
|
+
'C3rHCNrZv2L0Aa',
|
|
494
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
495
|
+
'C2vX',
|
|
496
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
497
|
+
'D29YA19RzxK',
|
|
498
|
+
'BM93',
|
|
499
|
+
'6k+35Rgcia',
|
|
500
|
+
'yxjYyxK',
|
|
501
|
+
'y2XHAw1FDgfZA3m',
|
|
502
|
+
'yM9KEu1HCMTKB3DU',
|
|
1278
503
|
'ig1LC3nHz2u9',
|
|
1279
|
-
'
|
|
1280
|
-
'
|
|
1281
|
-
'
|
|
1282
|
-
'
|
|
1283
|
-
'zgLZCg9ZAxrPB24',
|
|
1284
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1285
|
-
'z2v0rNvSBfLLyxi',
|
|
1286
|
-
'yM9KEvrLEhq',
|
|
1287
|
-
'C3bSAxq',
|
|
1288
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1289
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1290
|
-
'C29YDa',
|
|
1291
|
-
'ywDLBNrjza',
|
|
1292
|
-
'DxbKyxrL',
|
|
1293
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1294
|
-
'yxjNDG',
|
|
1295
|
-
'Bwv0yq',
|
|
1296
|
-
'l2nVBNrLBNq',
|
|
1297
|
-
'DgfZA051BwjLCG',
|
|
1298
|
-
'CMvWBgfJzq',
|
|
1299
|
-
'C2LNBMfS'
|
|
504
|
+
'yMXVy2TLza',
|
|
505
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
506
|
+
'l3jLy2vPDMu',
|
|
507
|
+
'DgfZA051BwjLCG'
|
|
1300
508
|
];
|
|
1301
|
-
|
|
1302
|
-
return
|
|
509
|
+
_0x5706 = function () {
|
|
510
|
+
return _0x5a59f5;
|
|
511
|
+
};
|
|
512
|
+
return _0x5706();
|
|
513
|
+
}
|
|
514
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x50158a(0x18a);
|
|
515
|
+
function ensureSegment(_0x2879a9) {
|
|
516
|
+
const _0x117e8f = { _0x3b2ea8: 0x152 }, _0x54e7de = _0x50158a, _0x35b402 = _0x2879a9[_0x54e7de(0x163)]();
|
|
517
|
+
if (!_0x35b402 || _0x35b402[_0x54e7de(_0x117e8f._0x3b2ea8)](':'))
|
|
518
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
519
|
+
return _0x35b402;
|
|
520
|
+
}
|
|
521
|
+
function parseThreadParts(_0xedbc59) {
|
|
522
|
+
const _0x2d1a7c = { _0x312cbe: 0x1e3 }, _0x1314f6 = _0x50158a, _0x116b75 = _0xedbc59[_0x1314f6(_0x2d1a7c._0x312cbe)](':');
|
|
523
|
+
if (_0x116b75[_0x1314f6(0x278)] < 0x1 || _0x116b75['length'] > 0x2)
|
|
524
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
525
|
+
return {
|
|
526
|
+
'channelName': ensureSegment(_0x116b75[0x0] ?? ''),
|
|
527
|
+
'threadShortId': _0x116b75[0x1] ? ensureSegment(_0x116b75[0x1]) : null
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
function parseTarget(_0x37c0de) {
|
|
531
|
+
const _0x428299 = {
|
|
532
|
+
_0x2e39c9: 0x143,
|
|
533
|
+
_0xcc550a: 0x1f7,
|
|
534
|
+
_0x4d7d3f: 0x23f,
|
|
535
|
+
_0x497630: 0x1e0,
|
|
536
|
+
_0x30ec5d: 0x190,
|
|
537
|
+
_0x4b0a3d: 0x2a8
|
|
538
|
+
}, _0x2729f = _0x50158a, _0x3a5684 = _0x37c0de['trim']();
|
|
539
|
+
if (!_0x3a5684)
|
|
540
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
541
|
+
if (_0x3a5684[_0x2729f(0x143)]('#')) {
|
|
542
|
+
const _0x521580 = parseThreadParts(_0x3a5684[_0x2729f(0x1f7)](0x1)), _0x21e4d7 = '#' + _0x521580[_0x2729f(0x23f)];
|
|
543
|
+
if (!_0x521580[_0x2729f(0x2a8)])
|
|
544
|
+
return {
|
|
545
|
+
'channelName': _0x521580[_0x2729f(0x23f)],
|
|
546
|
+
'channelTarget': _0x21e4d7,
|
|
547
|
+
'kind': _0x2729f(0x162),
|
|
548
|
+
'target': _0x21e4d7
|
|
549
|
+
};
|
|
550
|
+
return {
|
|
551
|
+
'channelName': _0x521580['channelName'],
|
|
552
|
+
'channelTarget': _0x21e4d7,
|
|
553
|
+
'kind': 'thread',
|
|
554
|
+
'target': _0x21e4d7 + ':' + _0x521580[_0x2729f(0x2a8)],
|
|
555
|
+
'threadShortId': _0x521580[_0x2729f(0x2a8)]
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
if (_0x3a5684[_0x2729f(_0x428299._0x2e39c9)]('dm:')) {
|
|
559
|
+
const _0xdfa4c3 = parseThreadParts(_0x3a5684[_0x2729f(_0x428299._0xcc550a)](0x3));
|
|
560
|
+
if (!_0xdfa4c3[_0x2729f(_0x428299._0x4d7d3f)]['startsWith']('dm-'))
|
|
561
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
562
|
+
const _0x25c68f = _0x2729f(_0x428299._0x497630) + _0xdfa4c3['channelName'];
|
|
563
|
+
if (!_0xdfa4c3[_0x2729f(0x2a8)])
|
|
564
|
+
return {
|
|
565
|
+
'channelName': _0xdfa4c3[_0x2729f(0x23f)],
|
|
566
|
+
'channelTarget': _0x25c68f,
|
|
567
|
+
'kind': _0x2729f(0x162),
|
|
568
|
+
'target': _0x25c68f
|
|
569
|
+
};
|
|
570
|
+
return {
|
|
571
|
+
'channelName': _0xdfa4c3[_0x2729f(_0x428299._0x4d7d3f)],
|
|
572
|
+
'channelTarget': _0x25c68f,
|
|
573
|
+
'kind': _0x2729f(_0x428299._0x30ec5d),
|
|
574
|
+
'target': _0x25c68f + ':' + _0xdfa4c3[_0x2729f(_0x428299._0x4b0a3d)],
|
|
575
|
+
'threadShortId': _0xdfa4c3[_0x2729f(_0x428299._0x4b0a3d)]
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
579
|
+
}
|
|
580
|
+
function asErrorMessage(_0xbae56f, _0x21792d) {
|
|
581
|
+
const _0x19174e = _0x50158a;
|
|
582
|
+
if (typeof _0xbae56f === _0x19174e(0x1b0) && _0xbae56f['trim']())
|
|
583
|
+
return _0xbae56f;
|
|
584
|
+
return _0x21792d;
|
|
585
|
+
}
|
|
586
|
+
function asRecord(_0x5a6947) {
|
|
587
|
+
return typeof _0x5a6947 === 'object' && _0x5a6947 !== null ? _0x5a6947 : {};
|
|
588
|
+
}
|
|
589
|
+
function stableStringify(_0x2a7d0f) {
|
|
590
|
+
const _0x6c03c9 = {
|
|
591
|
+
_0x4aa1de: 0x1b2,
|
|
592
|
+
_0x402883: 0x212
|
|
593
|
+
}, _0xd8609c = _0x50158a;
|
|
594
|
+
if (_0x2a7d0f === null || typeof _0x2a7d0f !== 'object')
|
|
595
|
+
return JSON[_0xd8609c(_0x6c03c9._0x4aa1de)](_0x2a7d0f);
|
|
596
|
+
if (Array[_0xd8609c(0x24a)](_0x2a7d0f))
|
|
597
|
+
return '[' + _0x2a7d0f[_0xd8609c(0x1e7)](_0x40c0a8 => stableStringify(_0x40c0a8))[_0xd8609c(_0x6c03c9._0x402883)](',') + ']';
|
|
598
|
+
const _0x18cae8 = Object['entries'](_0x2a7d0f)[_0xd8609c(0x159)](([, _0xa81396]) => _0xa81396 !== void 0x0)[_0xd8609c(0x283)](([_0x1e1996], [_0x5194a6]) => _0x1e1996[_0xd8609c(0x1cf)](_0x5194a6))[_0xd8609c(0x1e7)](([_0x35a5c2, _0x164c9c]) => JSON[_0xd8609c(0x1b2)](_0x35a5c2) + ':' + stableStringify(_0x164c9c));
|
|
599
|
+
return '{' + _0x18cae8[_0xd8609c(_0x6c03c9._0x402883)](',') + '}';
|
|
600
|
+
}
|
|
601
|
+
function createHeaders(_0x27eae) {
|
|
602
|
+
const _0x3cee3e = _0x50158a;
|
|
603
|
+
return {
|
|
604
|
+
'Content-Type': _0x3cee3e(0x2a6),
|
|
605
|
+
'x-daemon-api-key': _0x27eae
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
function toHttpBaseUrl(_0xf84b43) {
|
|
609
|
+
const _0x502bea = {
|
|
610
|
+
_0x4b78d2: 0x178,
|
|
611
|
+
_0x4edfd9: 0x23d,
|
|
612
|
+
_0x1d06cc: 0x15a
|
|
613
|
+
}, _0x28459d = _0x50158a, _0x3615e4 = new URL(_0xf84b43);
|
|
614
|
+
if (_0x3615e4[_0x28459d(0x1f1)] === _0x28459d(_0x502bea._0x4b78d2))
|
|
615
|
+
_0x3615e4['protocol'] = 'http:';
|
|
616
|
+
else
|
|
617
|
+
_0x3615e4['protocol'] === _0x28459d(0x2b5) && (_0x3615e4[_0x28459d(0x1f1)] = 'https:');
|
|
618
|
+
return _0x3615e4[_0x28459d(_0x502bea._0x4edfd9)]()[_0x28459d(_0x502bea._0x1d06cc)](/\/$/, '');
|
|
619
|
+
}
|
|
620
|
+
function isMentionBoundary(_0x465e2b) {
|
|
621
|
+
const _0x27ce43 = _0x50158a;
|
|
622
|
+
return !_0x465e2b || /\s|[([{'",。!?、:;]/[_0x27ce43(0x222)](_0x465e2b);
|
|
623
|
+
}
|
|
624
|
+
function isMentionTerminal(_0x5dde8d) {
|
|
625
|
+
const _0x45a833 = _0x50158a;
|
|
626
|
+
return !_0x5dde8d || /\s|[)\]}'",。!?、:;,.!?]/[_0x45a833(0x222)](_0x5dde8d);
|
|
627
|
+
}
|
|
628
|
+
function buildMatchableEntries(_0x263f4e) {
|
|
629
|
+
const _0xf8f7ab = {
|
|
630
|
+
_0x4d2b85: 0x254,
|
|
631
|
+
_0xe4a724: 0x1f3,
|
|
632
|
+
_0xad834c: 0x196
|
|
633
|
+
}, _0x57e523 = _0x50158a, _0xd4576e = [];
|
|
634
|
+
for (const _0x33efc2 of [
|
|
635
|
+
..._0x263f4e[_0x57e523(0x225)],
|
|
636
|
+
..._0x263f4e[_0x57e523(0x24b)]
|
|
637
|
+
]) {
|
|
638
|
+
_0xd4576e[_0x57e523(_0xf8f7ab._0x4d2b85)]({
|
|
639
|
+
'matchName': _0x33efc2[_0x57e523(_0xf8f7ab._0xe4a724)],
|
|
640
|
+
'matchNameLower': _0x33efc2[_0x57e523(0x1f3)]['toLocaleLowerCase'](),
|
|
641
|
+
'participantId': _0x33efc2['id']
|
|
642
|
+
}), _0x33efc2['id'] !== _0x33efc2['name'] && _0xd4576e[_0x57e523(0x254)]({
|
|
643
|
+
'matchName': _0x33efc2['id'],
|
|
644
|
+
'matchNameLower': _0x33efc2['id'][_0x57e523(_0xf8f7ab._0xad834c)](),
|
|
645
|
+
'participantId': _0x33efc2['id']
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
return _0xd4576e;
|
|
649
|
+
}
|
|
650
|
+
function extractMentionedParticipantIds(_0x58faa6, _0x3d253a) {
|
|
651
|
+
const _0x4be6b4 = {
|
|
652
|
+
_0x3b08f0: 0x278,
|
|
653
|
+
_0x3415e1: 0x23c
|
|
654
|
+
}, _0x179c76 = { _0x2d1ec8: 0x2b9 }, _0x4478f6 = _0x50158a, _0x5d67d1 = buildMatchableEntries(_0x3d253a)['sort']((_0x582426, _0x3dafb4) => _0x3dafb4['matchName'][_0x4478f6(0x278)] - _0x582426[_0x4478f6(0x23c)]['length']), _0x10e1c2 = [], _0x1eccec = new Set();
|
|
655
|
+
for (let _0x22d8a8 = 0x0; _0x22d8a8 < _0x58faa6[_0x4478f6(_0x4be6b4._0x3b08f0)]; _0x22d8a8 += 0x1) {
|
|
656
|
+
if (_0x58faa6[_0x22d8a8] !== '@' || !isMentionBoundary(_0x58faa6[_0x22d8a8 - 0x1]))
|
|
657
|
+
continue;
|
|
658
|
+
const _0x11c664 = _0x58faa6[_0x4478f6(0x1f7)](_0x22d8a8 + 0x1), _0x27d6ff = _0x11c664[_0x4478f6(0x196)](), _0x2e24ea = _0x5d67d1['find'](_0x285e62 => {
|
|
659
|
+
const _0x4f345c = _0x4478f6;
|
|
660
|
+
if (!_0x27d6ff[_0x4f345c(0x143)](_0x285e62[_0x4f345c(_0x179c76._0x2d1ec8)]))
|
|
661
|
+
return ![];
|
|
662
|
+
return isMentionTerminal(_0x11c664[_0x285e62['matchName']['length']]);
|
|
663
|
+
});
|
|
664
|
+
if (!_0x2e24ea || _0x1eccec['has'](_0x2e24ea['participantId']))
|
|
665
|
+
continue;
|
|
666
|
+
_0x1eccec[_0x4478f6(0x292)](_0x2e24ea['participantId']), _0x10e1c2[_0x4478f6(0x254)](_0x2e24ea['participantId']), _0x22d8a8 += _0x2e24ea[_0x4478f6(_0x4be6b4._0x3415e1)]['length'];
|
|
667
|
+
}
|
|
668
|
+
return _0x10e1c2;
|
|
669
|
+
}
|
|
670
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
671
|
+
function anySignal(..._0x54716f) {
|
|
672
|
+
const _0x1eab8f = { _0x58675f: 0x291 }, _0x306ad2 = _0x50158a, _0x333317 = new AbortController();
|
|
673
|
+
for (const _0x3c5ff4 of _0x54716f) {
|
|
674
|
+
if (_0x3c5ff4[_0x306ad2(0x173)])
|
|
675
|
+
return _0x333317[_0x306ad2(0x291)](_0x3c5ff4['reason']), _0x333317['signal'];
|
|
676
|
+
_0x3c5ff4[_0x306ad2(0x198)](_0x306ad2(_0x1eab8f._0x58675f), () => _0x333317[_0x306ad2(0x291)](_0x3c5ff4[_0x306ad2(0x221)]), {
|
|
677
|
+
'once': !![],
|
|
678
|
+
'signal': _0x333317[_0x306ad2(0x175)]
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
return _0x333317['signal'];
|
|
682
|
+
}
|
|
683
|
+
function createInternalAgentClient(_0x5f29f1) {
|
|
684
|
+
const _0x1b850a = {
|
|
685
|
+
_0x236736: 0x179,
|
|
686
|
+
_0x35a6ef: 0x296,
|
|
687
|
+
_0x4ca737: 0x296,
|
|
688
|
+
_0x196783: 0x163,
|
|
689
|
+
_0x5409f9: 0x172,
|
|
690
|
+
_0x52be9a: 0x163,
|
|
691
|
+
_0x15e998: 0x250
|
|
692
|
+
}, _0x3b6d60 = {
|
|
693
|
+
_0x50efc0: 0x150,
|
|
694
|
+
_0x49088e: 0x229,
|
|
695
|
+
_0xc0ff66: 0x1a5,
|
|
696
|
+
_0x502504: 0x1b0,
|
|
697
|
+
_0x411609: 0x1a5,
|
|
698
|
+
_0x5afb8c: 0x13b,
|
|
699
|
+
_0x8273e1: 0x26e,
|
|
700
|
+
_0x46b33e: 0x21d,
|
|
701
|
+
_0x2663ee: 0x1cc,
|
|
702
|
+
_0x50b1b2: 0x21d,
|
|
703
|
+
_0x4f5e0d: 0x16f,
|
|
704
|
+
_0x3436fa: 0x1e7,
|
|
705
|
+
_0x39cc92: 0x21d,
|
|
706
|
+
_0x3edafb: 0x254,
|
|
707
|
+
_0x583fa4: 0x28b,
|
|
708
|
+
_0x23983f: 0x2bd,
|
|
709
|
+
_0x303abc: 0x14c
|
|
710
|
+
}, _0x499b68 = {
|
|
711
|
+
_0x556fa4: 0x162,
|
|
712
|
+
_0x146640: 0x1b1,
|
|
713
|
+
_0x90b1eb: 0x1a5,
|
|
714
|
+
_0x19ec14: 0x192
|
|
715
|
+
}, _0x9c1140 = {
|
|
716
|
+
_0x490468: 0x2b4,
|
|
717
|
+
_0x5c5401: 0x26f,
|
|
718
|
+
_0x3414d0: 0x1fa,
|
|
719
|
+
_0x1a6226: 0x218,
|
|
720
|
+
_0x43e696: 0x1bf,
|
|
721
|
+
_0x52600c: 0x21d,
|
|
722
|
+
_0x34d746: 0x1d9,
|
|
723
|
+
_0x149113: 0x246,
|
|
724
|
+
_0x4764ee: 0x218
|
|
725
|
+
}, _0x1dfe92 = {
|
|
726
|
+
_0x388902: 0x13b,
|
|
727
|
+
_0x57975b: 0x25d,
|
|
728
|
+
_0x40c8a2: 0x294,
|
|
729
|
+
_0x5e8bf6: 0x2b1,
|
|
730
|
+
_0x4fd41e: 0x28a
|
|
731
|
+
}, _0xdafffc = {
|
|
732
|
+
_0x12bb1d: 0x1c0,
|
|
733
|
+
_0xd9160c: 0x1b2,
|
|
734
|
+
_0x55d5f3: 0x244,
|
|
735
|
+
_0x396260: 0x1de
|
|
736
|
+
}, _0x4f381a = {
|
|
737
|
+
_0x28d140: 0x1c0,
|
|
738
|
+
_0x383a9f: 0x1b2,
|
|
739
|
+
_0x5458a5: 0x2a0
|
|
740
|
+
}, _0x502624 = {
|
|
741
|
+
_0x3d148e: 0x1b2,
|
|
742
|
+
_0x53c9f5: 0x14b
|
|
743
|
+
}, _0x363c0c = {
|
|
744
|
+
_0x18776d: 0x236,
|
|
745
|
+
_0x52571d: 0x1c0,
|
|
746
|
+
_0x162962: 0x1c1
|
|
747
|
+
}, _0x1c32a0 = {
|
|
748
|
+
_0x151d52: 0x164,
|
|
749
|
+
_0x27f158: 0x236
|
|
750
|
+
}, _0x234a69 = {
|
|
751
|
+
_0x2824b1: 0x1be,
|
|
752
|
+
_0x440156: 0x1fa,
|
|
753
|
+
_0x2e6691: 0x1de,
|
|
754
|
+
_0x5b6e6e: 0x1c5
|
|
755
|
+
}, _0x3663e9 = {
|
|
756
|
+
_0x56a588: 0x1c5,
|
|
757
|
+
_0x47ed03: 0x1c5,
|
|
758
|
+
_0x5bc648: 0x13c
|
|
759
|
+
}, _0x3cac1a = { _0xb5fffc: 0x1b2 }, _0x3c6f4e = {
|
|
760
|
+
_0xe19609: 0x20a,
|
|
761
|
+
_0x5b4ef5: 0x218
|
|
762
|
+
}, _0x2f93d9 = {
|
|
763
|
+
_0xa67f5b: 0x1bc,
|
|
764
|
+
_0x3ecd33: 0x1ae,
|
|
765
|
+
_0x5e60ea: 0x1c0,
|
|
766
|
+
_0x3f111f: 0x25e,
|
|
767
|
+
_0x19d640: 0x1b2,
|
|
768
|
+
_0x595d68: 0x202,
|
|
769
|
+
_0x95ab8b: 0x1a5,
|
|
770
|
+
_0x313bb9: 0x278,
|
|
771
|
+
_0x62e8ee: 0x13b,
|
|
772
|
+
_0x35491c: 0x1da
|
|
773
|
+
}, _0x429471 = {
|
|
774
|
+
_0x46b783: 0x164,
|
|
775
|
+
_0xb85dae: 0x1a5,
|
|
776
|
+
_0x18419a: 0x1a5,
|
|
777
|
+
_0xfcb7f0: 0x229,
|
|
778
|
+
_0x2c391c: 0x1b1,
|
|
779
|
+
_0x341dd3: 0x21b,
|
|
780
|
+
_0x1e9b80: 0x164,
|
|
781
|
+
_0x5e7ba5: 0x1c0,
|
|
782
|
+
_0x4d34c9: 0x2ad,
|
|
783
|
+
_0x13efa0: 0x23d,
|
|
784
|
+
_0x56c06d: 0x267
|
|
785
|
+
}, _0x31398b = {
|
|
786
|
+
_0x5005c9: 0x142,
|
|
787
|
+
_0x2fe913: 0x1d8
|
|
788
|
+
}, _0x1748da = {
|
|
789
|
+
_0x480bd7: 0x20c,
|
|
790
|
+
_0x35c664: 0x2a8,
|
|
791
|
+
_0x7c30fe: 0x238
|
|
792
|
+
}, _0x5a7f2b = {
|
|
793
|
+
_0x486832: 0x27f,
|
|
794
|
+
_0x51f3d4: 0x27f
|
|
795
|
+
}, _0x5431c2 = {
|
|
796
|
+
_0x572549: 0x208,
|
|
797
|
+
_0x1a0975: 0x289,
|
|
798
|
+
_0xf35156: 0x1a7
|
|
799
|
+
}, _0x56cae8 = {
|
|
800
|
+
_0x3bea8a: 0x1c0,
|
|
801
|
+
_0x3521f0: 0x218,
|
|
802
|
+
_0x54d720: 0x17d
|
|
803
|
+
}, _0x350d5d = {
|
|
804
|
+
_0x4b9fc7: 0x1b2,
|
|
805
|
+
_0x288826: 0x1de,
|
|
806
|
+
_0x1281d8: 0x218,
|
|
807
|
+
_0x2005c6: 0x13b
|
|
808
|
+
}, _0x1f210a = {
|
|
809
|
+
_0x5e5eb8: 0x248,
|
|
810
|
+
_0x4c88c9: 0x1de
|
|
811
|
+
}, _0x1e2876 = {
|
|
812
|
+
_0x51ad05: 0x242,
|
|
813
|
+
_0x4bcba0: 0x2a1
|
|
814
|
+
}, _0x586190 = {
|
|
815
|
+
_0x1e32fb: 0x175,
|
|
816
|
+
_0x397dc8: 0x175
|
|
817
|
+
}, _0x28ade8 = {
|
|
818
|
+
_0x1b9772: 0x175,
|
|
819
|
+
_0x13c7f6: 0x297,
|
|
820
|
+
_0x48d26d: 0x168
|
|
821
|
+
}, _0x7f4c6e = {
|
|
822
|
+
_0x50e9b8: 0x18d,
|
|
823
|
+
_0x66e29d: 0x2a7,
|
|
824
|
+
_0x599d59: 0x160,
|
|
825
|
+
_0x4e341f: 0x2ab,
|
|
826
|
+
_0x2cb624: 0x164
|
|
827
|
+
}, _0xa0e40c = {
|
|
828
|
+
_0x4748b0: 0x246,
|
|
829
|
+
_0x58d83b: 0x1bd,
|
|
830
|
+
_0x262ddc: 0x2a2
|
|
831
|
+
}, _0x56d5f4 = {
|
|
832
|
+
_0xcfd89a: 0x17c,
|
|
833
|
+
_0x4b7fda: 0x21d,
|
|
834
|
+
_0x1ccfed: 0x17b,
|
|
835
|
+
_0x57075c: 0x21f,
|
|
836
|
+
_0x4df94d: 0x163,
|
|
837
|
+
_0x1338cb: 0x15a,
|
|
838
|
+
_0x201fa0: 0x28d,
|
|
839
|
+
_0x2fa814: 0x149,
|
|
840
|
+
_0x36e5ef: 0x13d,
|
|
841
|
+
_0x41b4f5: 0x210,
|
|
842
|
+
_0x40afc8: 0x17c,
|
|
843
|
+
_0x13c3a4: 0x29a
|
|
844
|
+
}, _0x3edc93 = _0x50158a, _0x285e84 = _0x5f29f1[_0x3edc93(0x269)] ?? fetch, _0x35b9cb = _0x5f29f1[_0x3edc93(_0x1b850a._0x236736)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x14966b = typeof _0x5f29f1[_0x3edc93(_0x1b850a._0x35a6ef)] === 'number' && _0x5f29f1[_0x3edc93(_0x1b850a._0x4ca737)] > 0x0 ? _0x5f29f1[_0x3edc93(_0x1b850a._0x35a6ef)] : 0x0, _0xcff380 = _0x5f29f1[_0x3edc93(0x2b7)]?.[_0x3edc93(0x163)]() || void 0x0, _0x243fb8 = _0x5f29f1[_0x3edc93(0x276)]?.[_0x3edc93(_0x1b850a._0x196783)]() || void 0x0, _0x50810b = _0x5f29f1[_0x3edc93(_0x1b850a._0x5409f9)] === !![], _0x52259d = _0x5f29f1['workerSessionId']?.['trim']() || void 0x0, _0x1a19f0 = _0x5f29f1[_0x3edc93(0x1a3)]?.[_0x3edc93(_0x1b850a._0x52be9a)]() || void 0x0, _0x104b6d = createHeaders(_0x5f29f1[_0x3edc93(_0x1b850a._0x15e998)]), _0x2155b5 = toHttpBaseUrl(_0x5f29f1['serverUrl']);
|
|
845
|
+
let _0x10a135 = null;
|
|
846
|
+
const _0x117a72 = new Map();
|
|
847
|
+
let _0x187a84 = _0x14966b, _0x45d1ca = _0x14966b;
|
|
848
|
+
function _0x1c7067(_0x1ea06d) {
|
|
849
|
+
const _0x56acdf = _0x3edc93, _0x277191 = _0x1ea06d[_0x56acdf(_0x56d5f4._0xcfd89a)]['headers'][_0x56acdf(_0x56d5f4._0x4b7fda)](_0x56acdf(_0x56d5f4._0x1ccfed)) ?? _0x56acdf(_0x56d5f4._0x57075c), _0x1ce48f = _0x1ea06d[_0x56acdf(0x213)][_0x56acdf(_0x56d5f4._0x4df94d)]()[_0x56acdf(_0x56d5f4._0x1338cb)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x56acdf(_0x56d5f4._0x201fa0);
|
|
850
|
+
return _0x56acdf(_0x56d5f4._0x2fa814) + _0x1ea06d[_0x56acdf(_0x56d5f4._0x36e5ef)] + _0x56acdf(_0x56d5f4._0x41b4f5) + _0x1ea06d[_0x56acdf(_0x56d5f4._0x40afc8)]['status'] + _0x56acdf(_0x56d5f4._0x13c3a4) + _0x277191 + _0x56acdf(0x27e) + _0x1ce48f + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
851
|
+
}
|
|
852
|
+
async function _0x1f9068(_0xfa34b7, _0x41a391) {
|
|
853
|
+
const _0x485e92 = _0x3edc93, _0x2aa9e2 = Buffer[_0x485e92(_0xa0e40c._0x4748b0)](await _0x41a391[_0x485e92(_0xa0e40c._0x58d83b)]())[_0x485e92(0x23d)](_0x485e92(_0xa0e40c._0x262ddc));
|
|
854
|
+
if (!_0x2aa9e2['trim']())
|
|
855
|
+
return {};
|
|
856
|
+
try {
|
|
857
|
+
return JSON[_0x485e92(0x260)](_0x2aa9e2);
|
|
858
|
+
} catch {
|
|
859
|
+
throw new Error(_0x1c7067({
|
|
860
|
+
'bodyText': _0x2aa9e2,
|
|
861
|
+
'requestUrl': _0xfa34b7,
|
|
862
|
+
'response': _0x41a391
|
|
863
|
+
}));
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
function _0x44a4ea(_0x1bcff0, _0xb218ff) {
|
|
867
|
+
const _0x4ce3c0 = _0x3edc93, _0x2c7ac0 = typeof _0xb218ff[_0x4ce3c0(0x1dd)] === _0x4ce3c0(0x1b0) ? _0xb218ff['idempotency_key']['trim']() : '';
|
|
868
|
+
if (_0x2c7ac0)
|
|
869
|
+
return _0x2c7ac0;
|
|
870
|
+
const _0x4436aa = Date[_0x4ce3c0(0x148)]();
|
|
871
|
+
for (const [_0x1233be, _0x5d8879] of _0x117a72) {
|
|
872
|
+
_0x5d8879['expiresAt'] <= _0x4436aa && _0x117a72['delete'](_0x1233be);
|
|
873
|
+
}
|
|
874
|
+
const _0x345502 = {
|
|
875
|
+
..._0xb218ff,
|
|
876
|
+
'idempotency_key': void 0x0
|
|
877
|
+
}, _0x2d25d0 = createHash(_0x4ce3c0(_0x7f4c6e._0x50e9b8))[_0x4ce3c0(_0x7f4c6e._0x66e29d)](_0x1bcff0 + ':' + stableStringify(_0x345502))[_0x4ce3c0(_0x7f4c6e._0x599d59)](_0x4ce3c0(_0x7f4c6e._0x4e341f)), _0x11ddb9 = _0x1bcff0 + ':' + _0x2d25d0, _0x49a4a4 = _0x117a72[_0x4ce3c0(0x21d)](_0x11ddb9);
|
|
878
|
+
if (_0x49a4a4)
|
|
879
|
+
return _0x49a4a4[_0x4ce3c0(0x290)];
|
|
880
|
+
const _0x3d5b3a = 'auto:' + _0x1bcff0 + ':' + randomUUID();
|
|
881
|
+
return _0x117a72[_0x4ce3c0(_0x7f4c6e._0x2cb624)](_0x11ddb9, {
|
|
882
|
+
'expiresAt': _0x4436aa + 0x5 * 0x3c * 0x3e8,
|
|
883
|
+
'value': _0x3d5b3a
|
|
884
|
+
}), _0x3d5b3a;
|
|
885
|
+
}
|
|
886
|
+
async function _0x41aa61(_0x1b0e4a, _0xc2b12c) {
|
|
887
|
+
const _0x136777 = _0x3edc93, _0x5e81ed = new AbortController(), _0x3d2f66 = setTimeout(() => _0x5e81ed['abort'](), _0x35b9cb), _0x4e9cba = _0xc2b12c?.[_0x136777(_0x28ade8._0x1b9772)] ? anySignal(_0xc2b12c[_0x136777(0x175)], _0x5e81ed[_0x136777(0x175)]) : _0x5e81ed['signal'], _0x22784a = '' + _0x2155b5 + _0x1b0e4a;
|
|
888
|
+
try {
|
|
889
|
+
const _0x563285 = await _0x285e84(_0x22784a, {
|
|
890
|
+
..._0xc2b12c,
|
|
891
|
+
'signal': _0x4e9cba
|
|
892
|
+
}), _0x4d8f09 = await _0x1f9068(_0x22784a, _0x563285);
|
|
893
|
+
if (!_0x563285['ok'] || _0x4d8f09[_0x136777(0x277)] === ![])
|
|
894
|
+
throw new Error(asErrorMessage(_0x4d8f09[_0x136777(_0x28ade8._0x13c7f6)], _0x136777(_0x28ade8._0x48d26d) + _0x563285['status']));
|
|
895
|
+
return _0x4d8f09;
|
|
896
|
+
} finally {
|
|
897
|
+
clearTimeout(_0x3d2f66);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
async function _0x561f35(_0x427d9d, _0x2912ff) {
|
|
901
|
+
const _0x2025ae = _0x3edc93, _0x415867 = new AbortController(), _0x2a4bb9 = setTimeout(() => _0x415867[_0x2025ae(0x291)](), _0x35b9cb), _0x508671 = _0x2912ff?.['signal'] ? anySignal(_0x2912ff[_0x2025ae(_0x586190._0x1e32fb)], _0x415867[_0x2025ae(_0x586190._0x397dc8)]) : _0x415867[_0x2025ae(_0x586190._0x1e32fb)], _0x40b285 = '' + _0x2155b5 + _0x427d9d;
|
|
902
|
+
try {
|
|
903
|
+
const _0x3bc96d = await _0x285e84(_0x40b285, {
|
|
904
|
+
..._0x2912ff,
|
|
905
|
+
'signal': _0x508671
|
|
906
|
+
}), _0x52eb31 = await _0x1f9068(_0x40b285, _0x3bc96d);
|
|
907
|
+
if (!_0x3bc96d['ok'])
|
|
908
|
+
throw new Error(asErrorMessage(_0x52eb31[_0x2025ae(0x297)], _0x2025ae(0x168) + _0x3bc96d[_0x2025ae(0x1fa)]));
|
|
909
|
+
return _0x52eb31;
|
|
910
|
+
} finally {
|
|
911
|
+
clearTimeout(_0x2a4bb9);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
async function _0x31ebe6(_0x5e75bc) {
|
|
915
|
+
const _0x3c3ac3 = _0x3edc93;
|
|
916
|
+
if (!_0x243fb8 || _0x5e75bc <= _0x45d1ca)
|
|
917
|
+
return;
|
|
918
|
+
await _0x41aa61(_0x3c3ac3(_0x1e2876._0x51ad05) + encodeURIComponent(_0x243fb8) + _0x3c3ac3(0x181), {
|
|
919
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x5e75bc }),
|
|
920
|
+
'headers': _0x104b6d,
|
|
921
|
+
'method': _0x3c3ac3(_0x1e2876._0x4bcba0)
|
|
922
|
+
}), _0x45d1ca = _0x5e75bc;
|
|
923
|
+
}
|
|
924
|
+
async function _0x54a325(_0x25822c) {
|
|
925
|
+
const _0x3c350c = _0x3edc93;
|
|
926
|
+
if (!_0xcff380 || !_0x52259d || _0x25822c <= _0x45d1ca)
|
|
927
|
+
return;
|
|
928
|
+
const _0x4bccd2 = await _0x285e84(_0xcff380 + _0x3c350c(_0x1f210a._0x5e5eb8), {
|
|
929
|
+
'body': JSON['stringify']({
|
|
930
|
+
'last_seen_seq': _0x25822c,
|
|
931
|
+
'worker_session_id': _0x52259d
|
|
932
|
+
}),
|
|
933
|
+
'headers': { 'Content-Type': _0x3c350c(0x2a6) },
|
|
934
|
+
'method': _0x3c350c(_0x1f210a._0x4c88c9)
|
|
935
|
+
});
|
|
936
|
+
if (!_0x4bccd2['ok'])
|
|
937
|
+
throw new Error(_0x3c350c(0x168) + _0x4bccd2['status']);
|
|
938
|
+
_0x45d1ca = _0x25822c;
|
|
939
|
+
}
|
|
940
|
+
async function _0x2793a3(_0x549bbb) {
|
|
941
|
+
const _0x71d22d = _0x3edc93, _0x34d843 = parseTarget(_0x549bbb), _0x5337d4 = await _0x41aa61(_0x71d22d(0x236) + _0x5f29f1[_0x71d22d(0x1c0)] + '/resolve-channel', {
|
|
942
|
+
'body': JSON[_0x71d22d(_0x350d5d._0x4b9fc7)]({ 'target': _0x34d843['target'] }),
|
|
943
|
+
'headers': _0x104b6d,
|
|
944
|
+
'method': _0x71d22d(_0x350d5d._0x288826)
|
|
945
|
+
});
|
|
946
|
+
return {
|
|
947
|
+
'channelId': _0x5337d4['data']?.['channelId'] ?? '',
|
|
948
|
+
'target': _0x34d843[_0x71d22d(0x27f)],
|
|
949
|
+
'task': _0x5337d4[_0x71d22d(0x218)]?.[_0x71d22d(0x1c4)],
|
|
950
|
+
'threadId': _0x5337d4[_0x71d22d(_0x350d5d._0x1281d8)]?.[_0x71d22d(_0x350d5d._0x2005c6)],
|
|
951
|
+
'threadNumber': _0x5337d4[_0x71d22d(0x218)]?.[_0x71d22d(0x20c)]
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
async function _0x58217a() {
|
|
955
|
+
const _0x1553c0 = _0x3edc93;
|
|
956
|
+
return !_0x10a135 && (_0x10a135 = (async () => {
|
|
957
|
+
const _0x263185 = _0x3051, _0x3b7cad = await _0x41aa61(_0x263185(0x236) + _0x5f29f1[_0x263185(_0x56cae8._0x3bea8a)] + _0x263185(0x287), {
|
|
958
|
+
'headers': _0x104b6d,
|
|
959
|
+
'method': _0x263185(0x267)
|
|
960
|
+
}), _0x5309d9 = _0x3b7cad[_0x263185(_0x56cae8._0x3521f0)]?.[_0x263185(_0x56cae8._0x54d720)]['id'] ?? '';
|
|
961
|
+
let _0x3f6c23 = [];
|
|
962
|
+
try {
|
|
963
|
+
const _0x59fa28 = await _0x41aa61(_0x263185(0x1e6) + encodeURIComponent(_0x5309d9), {
|
|
964
|
+
'headers': _0x104b6d,
|
|
965
|
+
'method': _0x263185(0x267)
|
|
966
|
+
});
|
|
967
|
+
_0x3f6c23 = _0x59fa28[_0x263185(0x218)] ?? [];
|
|
968
|
+
} catch {
|
|
969
|
+
_0x3f6c23 = [];
|
|
970
|
+
}
|
|
971
|
+
const _0x24d224 = _0x3f6c23[_0x263185(0x1e7)](_0x3b8b4d => ({
|
|
972
|
+
'id': _0x3b8b4d['participants']?.['id'] ?? _0x3b8b4d['server_members']?.[_0x263185(0x1d8)] ?? '',
|
|
973
|
+
'name': _0x3b8b4d['participants']?.['name'] ?? _0x3b8b4d[_0x263185(0x1f5)]?.[_0x263185(0x1d8)] ?? ''
|
|
974
|
+
}))['filter'](_0xcbec50 => _0xcbec50['id']), _0x5e71b1 = new Set(_0x24d224[_0x263185(0x1e7)](_0x903609 => _0x903609['id'])), _0x158b76 = (_0x3b7cad['data']?.[_0x263185(0x258)] ?? [])[_0x263185(0x159)](_0x3a2968 => !_0x5e71b1[_0x263185(0x25a)](_0x400932(_0x3a2968)))['map'](_0x145fec => ({
|
|
975
|
+
'id': _0x400932(_0x145fec),
|
|
976
|
+
'name': _0x5cb122(_0x145fec)
|
|
977
|
+
}))[_0x263185(0x159)](_0x3cf577 => _0x3cf577['id']);
|
|
978
|
+
return {
|
|
979
|
+
'agents': _0x24d224,
|
|
980
|
+
'channels': _0x3b7cad['data']?.['channels'] ?? [],
|
|
981
|
+
'humans': _0x158b76,
|
|
982
|
+
'serverId': _0x5309d9,
|
|
983
|
+
'serverName': _0x3b7cad[_0x263185(0x218)]?.['server'][_0x263185(0x1f3)] ?? _0x5309d9
|
|
984
|
+
};
|
|
985
|
+
})()[_0x1553c0(0x13f)](_0x3195bc => {
|
|
986
|
+
_0x10a135 = null;
|
|
987
|
+
throw _0x3195bc;
|
|
988
|
+
})), _0x10a135;
|
|
989
|
+
}
|
|
990
|
+
function _0x33037d(_0x12ec7a, _0x3dfb53) {
|
|
991
|
+
const _0x270fdb = _0x3edc93;
|
|
992
|
+
return _0x3dfb53['agents'][_0x270fdb(_0x5431c2._0x572549)](_0x2a23bf => _0x2a23bf['id'] === _0x12ec7a || _0x2a23bf[_0x270fdb(0x1f3)] === _0x12ec7a) ? _0x270fdb(_0x5431c2._0x1a0975) : _0x270fdb(_0x5431c2._0xf35156);
|
|
993
|
+
}
|
|
994
|
+
function _0x2e9ff1(_0x4403dd) {
|
|
995
|
+
const _0x5c2772 = _0x3edc93;
|
|
996
|
+
if (_0x4403dd[_0x5c2772(0x20c)] != null)
|
|
997
|
+
return _0x4403dd[_0x5c2772(_0x5a7f2b._0x486832)] + ':t' + _0x4403dd['threadNumber'];
|
|
998
|
+
if (_0x4403dd[_0x5c2772(0x238)])
|
|
999
|
+
return _0x4403dd['channelTarget'] + ':' + _0x4403dd['rootMessageId'];
|
|
1000
|
+
if (_0x4403dd['threadId'])
|
|
1001
|
+
return _0x4403dd[_0x5c2772(_0x5a7f2b._0x51f3d4)] + ':' + _0x4403dd[_0x5c2772(0x13b)]['slice'](0x0, 0x8);
|
|
1002
|
+
return _0x4403dd['channelTarget'];
|
|
1003
|
+
}
|
|
1004
|
+
function _0x409831(_0x3b2b62, _0x3716db) {
|
|
1005
|
+
const _0x5cbbfc = _0x3edc93;
|
|
1006
|
+
try {
|
|
1007
|
+
const _0x4ff425 = parseTarget(_0x3b2b62);
|
|
1008
|
+
if (_0x4ff425[_0x5cbbfc(0x281)] !== 'thread' || _0x4ff425[_0x5cbbfc(0x27f)] !== _0x3716db[_0x5cbbfc(0x27f)])
|
|
1009
|
+
return ![];
|
|
1010
|
+
if (_0x3716db[_0x5cbbfc(_0x1748da._0x480bd7)] != null && _0x4ff425['threadShortId'] === 't' + _0x3716db['threadNumber'])
|
|
1011
|
+
return !![];
|
|
1012
|
+
if (_0x3716db[_0x5cbbfc(0x238)])
|
|
1013
|
+
return _0x4ff425[_0x5cbbfc(_0x1748da._0x35c664)] === _0x3716db[_0x5cbbfc(_0x1748da._0x7c30fe)] || _0x3716db[_0x5cbbfc(0x238)][_0x5cbbfc(0x143)](_0x4ff425[_0x5cbbfc(0x2a8)]);
|
|
1014
|
+
if (_0x3716db['threadId'])
|
|
1015
|
+
return _0x4ff425[_0x5cbbfc(0x2a8)] === _0x3716db[_0x5cbbfc(0x13b)] || _0x3716db[_0x5cbbfc(0x13b)]['startsWith'](_0x4ff425[_0x5cbbfc(0x2a8)]);
|
|
1016
|
+
return ![];
|
|
1017
|
+
} catch {
|
|
1018
|
+
return ![];
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
function _0x400932(_0x492f72) {
|
|
1022
|
+
const _0x1a9094 = _0x3edc93;
|
|
1023
|
+
return _0x492f72[_0x1a9094(_0x31398b._0x5005c9)]?.[_0x1a9094(_0x31398b._0x2fe913)] ?? _0x492f72[_0x1a9094(0x1c2)]?.['id'] ?? _0x492f72[_0x1a9094(_0x31398b._0x2fe913)] ?? '';
|
|
1024
|
+
}
|
|
1025
|
+
function _0x5cb122(_0x3642d0) {
|
|
1026
|
+
const _0x50dd45 = _0x3edc93;
|
|
1027
|
+
return _0x3642d0['participant']?.[_0x50dd45(0x1f3)] ?? _0x400932(_0x3642d0);
|
|
1028
|
+
}
|
|
1029
|
+
async function _0x352600(_0x3f2668) {
|
|
1030
|
+
const _0x129b13 = _0x3edc93, _0x40eef2 = Math[_0x129b13(0x2be)](_0x3f2668['limit'] ?? 0x32, 0x64), _0x39c899 = await _0x58217a(), _0x46ba32 = new URLSearchParams();
|
|
1031
|
+
_0x46ba32['set']('limit', String(_0x40eef2));
|
|
1032
|
+
_0x3f2668['threadId'] ? (_0x46ba32['set'](_0x129b13(0x13b), _0x3f2668['threadId']), _0x46ba32[_0x129b13(_0x429471._0x46b783)](_0x129b13(_0x429471._0xb85dae), _0x3f2668[_0x129b13(_0x429471._0xb85dae)])) : _0x46ba32[_0x129b13(_0x429471._0x46b783)](_0x129b13(_0x429471._0xb85dae), _0x3f2668[_0x129b13(_0x429471._0x18419a)]);
|
|
1033
|
+
_0x3f2668[_0x129b13(0x1b1)] && _0x46ba32['set'](_0x129b13(_0x429471._0xfcb7f0), String(_0x3f2668[_0x129b13(_0x429471._0x2c391c)]));
|
|
1034
|
+
_0x3f2668[_0x129b13(_0x429471._0x341dd3)] !== void 0x0 && _0x46ba32[_0x129b13(_0x429471._0x1e9b80)]('after', String(_0x3f2668['after']));
|
|
1035
|
+
const _0x45e071 = await _0x41aa61(_0x129b13(0x236) + _0x5f29f1[_0x129b13(_0x429471._0x5e7ba5)] + _0x129b13(_0x429471._0x4d34c9) + _0x46ba32[_0x129b13(_0x429471._0x13efa0)](), {
|
|
1036
|
+
'headers': _0x104b6d,
|
|
1037
|
+
'method': _0x129b13(_0x429471._0x56c06d)
|
|
1038
|
+
}), _0xab9794 = (_0x45e071[_0x129b13(0x218)] ?? [])['map'](_0x397e95 => ({
|
|
1039
|
+
'attachments': (_0x397e95[_0x129b13(0x28b)] ?? [])['map'](_0x194f34 => ({
|
|
1040
|
+
'filename': _0x194f34[_0x129b13(0x2b1)] ?? _0x194f34['id'],
|
|
1041
|
+
'id': _0x194f34['id']
|
|
1042
|
+
})),
|
|
1043
|
+
'content': _0x397e95[_0x129b13(0x14c)] ?? '',
|
|
1044
|
+
'createdAt': _0x397e95[_0x129b13(0x203)],
|
|
1045
|
+
'messageId': _0x397e95['id'],
|
|
1046
|
+
'senderName': _0x397e95[_0x129b13(0x2bd)],
|
|
1047
|
+
'senderType': _0x33037d(_0x397e95[_0x129b13(0x2bd)], _0x39c899),
|
|
1048
|
+
'seq': _0x397e95[_0x129b13(0x234)] ?? 0x0
|
|
1049
|
+
}));
|
|
1050
|
+
return {
|
|
1051
|
+
'channel': _0x3f2668['channelTarget'],
|
|
1052
|
+
'hasMore': _0x45e071[_0x129b13(0x1b3)]?.[_0x129b13(0x1ad)] ?? ![],
|
|
1053
|
+
'messages': _0xab9794,
|
|
1054
|
+
'nextCursor': _0x45e071['meta']?.['cursor']
|
|
1055
|
+
};
|
|
1056
|
+
}
|
|
1057
|
+
return {
|
|
1058
|
+
async 'sendMessage'(_0x326d1e) {
|
|
1059
|
+
const _0x4cc2b9 = _0x3edc93, _0x4c4675 = await _0x2793a3(_0x326d1e[_0x4cc2b9(_0x2f93d9._0xa67f5b)]), _0x2be230 = _0x326d1e[_0x4cc2b9(0x1ae)][_0x4cc2b9(0x152)]('@') ? extractMentionedParticipantIds(_0x326d1e[_0x4cc2b9(_0x2f93d9._0x3ecd33)], await _0x58217a()) : [], _0x1d6432 = await _0x41aa61(_0x4cc2b9(0x236) + _0x5f29f1[_0x4cc2b9(_0x2f93d9._0x5e60ea)] + _0x4cc2b9(_0x2f93d9._0x3f111f), {
|
|
1060
|
+
'body': JSON[_0x4cc2b9(_0x2f93d9._0x19d640)]({
|
|
1061
|
+
'attachment_ids': _0x326d1e[_0x4cc2b9(_0x2f93d9._0x595d68)],
|
|
1062
|
+
'bodyMarkdown': _0x326d1e['content'],
|
|
1063
|
+
'channelId': _0x4c4675[_0x4cc2b9(_0x2f93d9._0x95ab8b)],
|
|
1064
|
+
..._0x2be230[_0x4cc2b9(_0x2f93d9._0x313bb9)] > 0x0 ? { 'mentionedParticipantIds': _0x2be230 } : {},
|
|
1065
|
+
'threadId': _0x4c4675[_0x4cc2b9(_0x2f93d9._0x62e8ee)],
|
|
1066
|
+
..._0x326d1e[_0x4cc2b9(_0x2f93d9._0x35491c)] ? { 'visibility': _0x326d1e[_0x4cc2b9(0x1da)] } : {}
|
|
1067
|
+
}),
|
|
1068
|
+
'headers': _0x104b6d,
|
|
1069
|
+
'method': _0x4cc2b9(0x1de)
|
|
1070
|
+
});
|
|
1071
|
+
return { 'messageId': _0x1d6432['data']?.['id'] ?? '' };
|
|
1072
|
+
},
|
|
1073
|
+
async 'listSchedules'() {
|
|
1074
|
+
const _0x9e3c99 = _0x3edc93, _0x4626f0 = await _0x41aa61(_0x9e3c99(_0x3c6f4e._0xe19609), {
|
|
1075
|
+
'headers': _0x104b6d,
|
|
1076
|
+
'method': 'GET'
|
|
1077
|
+
});
|
|
1078
|
+
return _0x4626f0[_0x9e3c99(_0x3c6f4e._0x5b4ef5)] ?? [];
|
|
1079
|
+
},
|
|
1080
|
+
async 'claimScheduleRun'(_0x3dadbd) {
|
|
1081
|
+
const _0x445d05 = _0x3edc93, _0x173af5 = await _0x41aa61('/api/internal/schedules/claim', {
|
|
1082
|
+
'body': JSON[_0x445d05(_0x3cac1a._0xb5fffc)](_0x3dadbd),
|
|
1083
|
+
'headers': _0x104b6d,
|
|
1084
|
+
'method': _0x445d05(0x1de)
|
|
1085
|
+
});
|
|
1086
|
+
return _0x173af5['data'] ?? {
|
|
1087
|
+
'granted': ![],
|
|
1088
|
+
'runId': null,
|
|
1089
|
+
'schedule': null,
|
|
1090
|
+
'scheduledFor': _0x3dadbd[_0x445d05(0x256)]
|
|
1091
|
+
};
|
|
1092
|
+
},
|
|
1093
|
+
async 'startScheduleRun'(_0x168dbd) {
|
|
1094
|
+
const _0x24c7b3 = _0x3edc93, _0x5996fe = await _0x41aa61(_0x24c7b3(0x28c) + encodeURIComponent(_0x168dbd[_0x24c7b3(_0x3663e9._0x56a588)]) + '/start', {
|
|
1095
|
+
'body': JSON[_0x24c7b3(0x1b2)]({}),
|
|
1096
|
+
'headers': _0x104b6d,
|
|
1097
|
+
'method': _0x24c7b3(0x1de)
|
|
1098
|
+
});
|
|
1099
|
+
return _0x5996fe[_0x24c7b3(0x218)] ?? {
|
|
1100
|
+
'claimedByDaemonId': '',
|
|
1101
|
+
'id': _0x168dbd[_0x24c7b3(_0x3663e9._0x47ed03)],
|
|
1102
|
+
'scheduleId': '',
|
|
1103
|
+
'status': _0x24c7b3(_0x3663e9._0x5bc648)
|
|
1104
|
+
};
|
|
1105
|
+
},
|
|
1106
|
+
async 'finishScheduleRun'(_0x54d882) {
|
|
1107
|
+
const _0xe7a41f = _0x3edc93, _0x50bf38 = await _0x41aa61('/api/internal/schedules/' + encodeURIComponent(_0x54d882['runId']) + _0xe7a41f(0x299), {
|
|
1108
|
+
'body': JSON[_0xe7a41f(0x1b2)]({
|
|
1109
|
+
'error': _0x54d882[_0xe7a41f(0x297)],
|
|
1110
|
+
'resultJson': _0x54d882[_0xe7a41f(_0x234a69._0x2824b1)],
|
|
1111
|
+
'status': _0x54d882[_0xe7a41f(_0x234a69._0x440156)]
|
|
1112
|
+
}),
|
|
1113
|
+
'headers': _0x104b6d,
|
|
1114
|
+
'method': _0xe7a41f(_0x234a69._0x2e6691)
|
|
1115
|
+
});
|
|
1116
|
+
return _0x50bf38[_0xe7a41f(0x218)] ?? {
|
|
1117
|
+
'nextRunAt': null,
|
|
1118
|
+
'run': {
|
|
1119
|
+
'claimedByDaemonId': '',
|
|
1120
|
+
'id': _0x54d882[_0xe7a41f(_0x234a69._0x5b6e6e)],
|
|
1121
|
+
'scheduleId': '',
|
|
1122
|
+
'status': _0x54d882['status']
|
|
1123
|
+
}
|
|
1124
|
+
};
|
|
1125
|
+
},
|
|
1126
|
+
async 'listTasks'(_0x4fd0f7) {
|
|
1127
|
+
const _0x47ca7c = _0x3edc93, _0x24aadb = new URLSearchParams();
|
|
1128
|
+
return _0x24aadb[_0x47ca7c(0x164)](_0x47ca7c(0x162), _0x4fd0f7['channel']), _0x4fd0f7['status'] && _0x24aadb[_0x47ca7c(_0x1c32a0._0x151d52)](_0x47ca7c(0x1fa), _0x4fd0f7[_0x47ca7c(0x1fa)]), _0x561f35(_0x47ca7c(_0x1c32a0._0x27f158) + _0x5f29f1['agentId'] + '/tasks?' + _0x24aadb[_0x47ca7c(0x23d)](), {
|
|
1129
|
+
'headers': _0x104b6d,
|
|
1130
|
+
'method': 'GET'
|
|
1131
|
+
});
|
|
1132
|
+
},
|
|
1133
|
+
async 'createTasks'(_0x57aa03) {
|
|
1134
|
+
const _0x53c084 = _0x3edc93;
|
|
1135
|
+
return _0x561f35(_0x53c084(_0x363c0c._0x18776d) + _0x5f29f1[_0x53c084(_0x363c0c._0x52571d)] + _0x53c084(0x252), {
|
|
1136
|
+
'body': JSON[_0x53c084(0x1b2)]({
|
|
1137
|
+
..._0x57aa03,
|
|
1138
|
+
'idempotency_key': _0x44a4ea(_0x53c084(_0x363c0c._0x162962), _0x57aa03)
|
|
1139
|
+
}),
|
|
1140
|
+
'headers': _0x104b6d,
|
|
1141
|
+
'method': _0x53c084(0x1de)
|
|
1142
|
+
});
|
|
1143
|
+
},
|
|
1144
|
+
async 'claimTasks'(_0x4ae707) {
|
|
1145
|
+
const _0x44ee81 = _0x3edc93;
|
|
1146
|
+
return _0x561f35(_0x44ee81(0x236) + _0x5f29f1[_0x44ee81(0x1c0)] + '/tasks/claim', {
|
|
1147
|
+
'body': JSON[_0x44ee81(_0x502624._0x3d148e)]({
|
|
1148
|
+
..._0x4ae707,
|
|
1149
|
+
'idempotency_key': _0x44a4ea(_0x44ee81(_0x502624._0x53c9f5), _0x4ae707)
|
|
1150
|
+
}),
|
|
1151
|
+
'headers': _0x104b6d,
|
|
1152
|
+
'method': 'POST'
|
|
1153
|
+
});
|
|
1154
|
+
},
|
|
1155
|
+
async 'unclaimTask'(_0x4cfaec) {
|
|
1156
|
+
const _0x3c3975 = _0x3edc93;
|
|
1157
|
+
return _0x561f35(_0x3c3975(0x236) + _0x5f29f1[_0x3c3975(_0x4f381a._0x28d140)] + '/tasks/unclaim', {
|
|
1158
|
+
'body': JSON[_0x3c3975(_0x4f381a._0x383a9f)]({
|
|
1159
|
+
..._0x4cfaec,
|
|
1160
|
+
'idempotency_key': _0x44a4ea(_0x3c3975(_0x4f381a._0x5458a5), _0x4cfaec)
|
|
1161
|
+
}),
|
|
1162
|
+
'headers': _0x104b6d,
|
|
1163
|
+
'method': _0x3c3975(0x1de)
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
async 'updateTaskStatus'(_0x51288a) {
|
|
1167
|
+
const _0x388eee = _0x3edc93;
|
|
1168
|
+
return _0x561f35(_0x388eee(0x236) + _0x5f29f1[_0x388eee(_0xdafffc._0x12bb1d)] + '/tasks/update-status', {
|
|
1169
|
+
'body': JSON[_0x388eee(_0xdafffc._0xd9160c)]({
|
|
1170
|
+
..._0x51288a,
|
|
1171
|
+
'idempotency_key': _0x44a4ea(_0x388eee(_0xdafffc._0x55d5f3), _0x51288a)
|
|
1172
|
+
}),
|
|
1173
|
+
'headers': _0x104b6d,
|
|
1174
|
+
'method': _0x388eee(_0xdafffc._0x396260)
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
1177
|
+
async 'uploadFile'(_0x30edf1) {
|
|
1178
|
+
const _0x263bfa = _0x3edc93, _0x689354 = await _0x2793a3(_0x30edf1['channel']);
|
|
1179
|
+
if (_0x689354[_0x263bfa(_0x1dfe92._0x388902)])
|
|
1180
|
+
throw new Error(_0x263bfa(0x20e));
|
|
1181
|
+
const _0x3ffd42 = await _0x41aa61(_0x263bfa(0x236) + _0x5f29f1[_0x263bfa(0x1c0)] + _0x263bfa(_0x1dfe92._0x57975b), {
|
|
1182
|
+
'body': JSON[_0x263bfa(0x1b2)]({
|
|
1183
|
+
'channel': _0x689354[_0x263bfa(0x1bc)],
|
|
1184
|
+
'contentBase64': _0x30edf1[_0x263bfa(_0x1dfe92._0x40c8a2)],
|
|
1185
|
+
'contentType': _0x30edf1[_0x263bfa(0x2ae)],
|
|
1186
|
+
'originalFilename': _0x30edf1['filename']
|
|
1187
|
+
}),
|
|
1188
|
+
'headers': _0x104b6d,
|
|
1189
|
+
'method': 'POST'
|
|
1190
|
+
});
|
|
1191
|
+
return {
|
|
1192
|
+
'attachmentId': _0x3ffd42[_0x263bfa(0x218)]?.['id'] ?? '',
|
|
1193
|
+
'filename': _0x3ffd42[_0x263bfa(0x218)]?.[_0x263bfa(0x18c)] ?? _0x30edf1[_0x263bfa(_0x1dfe92._0x5e8bf6)],
|
|
1194
|
+
'sizeBytes': _0x3ffd42['data']?.[_0x263bfa(_0x1dfe92._0x4fd41e)] ?? 0x0
|
|
1195
|
+
};
|
|
1196
|
+
},
|
|
1197
|
+
async 'downloadAttachment'(_0x2ea26f) {
|
|
1198
|
+
const _0x3a4efe = _0x3edc93, _0x37f561 = await _0x41aa61(_0x3a4efe(_0x9c1140._0x490468) + _0x2ea26f, {
|
|
1199
|
+
'headers': _0x104b6d,
|
|
1200
|
+
'method': 'GET'
|
|
1201
|
+
}), _0x17952b = new AbortController(), _0x2e4b5f = setTimeout(() => _0x17952b['abort'](), _0x35b9cb);
|
|
1202
|
+
try {
|
|
1203
|
+
const _0x29f58c = await _0x285e84(_0x2155b5 + _0x3a4efe(0x2b4) + _0x2ea26f + _0x3a4efe(_0x9c1140._0x5c5401), {
|
|
1204
|
+
'headers': _0x104b6d,
|
|
1205
|
+
'method': _0x3a4efe(0x267),
|
|
1206
|
+
'signal': _0x17952b['signal']
|
|
1207
|
+
});
|
|
1208
|
+
if (!_0x29f58c['ok'])
|
|
1209
|
+
throw new Error(_0x3a4efe(0x168) + _0x29f58c[_0x3a4efe(_0x9c1140._0x3414d0)]);
|
|
1210
|
+
return {
|
|
1211
|
+
'contentType': _0x37f561[_0x3a4efe(_0x9c1140._0x1a6226)]?.[_0x3a4efe(0x2ae)] ?? _0x29f58c[_0x3a4efe(_0x9c1140._0x43e696)][_0x3a4efe(_0x9c1140._0x52600c)](_0x3a4efe(0x17b)) ?? _0x3a4efe(_0x9c1140._0x34d746),
|
|
1212
|
+
'data': Buffer[_0x3a4efe(_0x9c1140._0x149113)](await _0x29f58c['arrayBuffer']()),
|
|
1213
|
+
'originalFilename': _0x37f561[_0x3a4efe(_0x9c1140._0x4764ee)]?.[_0x3a4efe(0x18c)]
|
|
1214
|
+
};
|
|
1215
|
+
} finally {
|
|
1216
|
+
clearTimeout(_0x2e4b5f);
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
async 'listServer'() {
|
|
1220
|
+
return _0x58217a();
|
|
1221
|
+
},
|
|
1222
|
+
async 'readHistory'(_0x4e0751) {
|
|
1223
|
+
const _0x1d79c6 = _0x3edc93, _0xd7933c = await _0x2793a3(_0x4e0751[_0x1d79c6(_0x499b68._0x556fa4)]);
|
|
1224
|
+
return _0x352600({
|
|
1225
|
+
'after': _0x4e0751['after'],
|
|
1226
|
+
'before': _0x4e0751[_0x1d79c6(_0x499b68._0x146640)],
|
|
1227
|
+
'channelId': _0xd7933c[_0x1d79c6(_0x499b68._0x90b1eb)],
|
|
1228
|
+
'channelTarget': _0xd7933c[_0x1d79c6(0x1bc)],
|
|
1229
|
+
'limit': _0x4e0751[_0x1d79c6(_0x499b68._0x19ec14)],
|
|
1230
|
+
'threadId': _0xd7933c['threadId']
|
|
1231
|
+
});
|
|
1232
|
+
},
|
|
1233
|
+
'resolveTarget': _0x2793a3,
|
|
1234
|
+
async 'checkMessages'() {
|
|
1235
|
+
const _0x2a5245 = _0x3edc93, _0x538c71 = new URLSearchParams();
|
|
1236
|
+
_0x538c71['set'](_0x2a5245(0x298), String(_0x187a84));
|
|
1237
|
+
const _0x2bdc7c = _0x538c71[_0x2a5245(0x23d)](), _0x579a77 = await _0x41aa61('/internal/agent/' + _0x5f29f1[_0x2a5245(0x1c0)] + _0x2a5245(_0x3b6d60._0x50efc0) + (_0x2bdc7c ? '?' + _0x2bdc7c : ''), {
|
|
1238
|
+
'headers': _0x104b6d,
|
|
1239
|
+
'method': _0x2a5245(0x267)
|
|
1240
|
+
}), _0x4cb28c = _0x579a77[_0x2a5245(0x218)] ?? [], _0x8bce55 = _0x579a77[_0x2a5245(0x1b3)]?.[_0x2a5245(_0x3b6d60._0x49088e)], _0x1de917 = _0x8bce55 !== void 0x0 ? Math['max'](_0x187a84, _0x8bce55) : _0x4cb28c[_0x2a5245(0x278)] > 0x0 ? Math[_0x2a5245(0x26c)](_0x187a84, _0x4cb28c[_0x4cb28c[_0x2a5245(0x278)] - 0x1][_0x2a5245(0x145)]) : _0x187a84, _0x1f8543 = _0x1a19f0 === void 0x0 && _0x50810b, _0x13449d = await _0x58217a(), _0x1e9723 = new Map(_0x13449d['channels'][_0x2a5245(0x1e7)](_0x2a6c93 => [
|
|
1241
|
+
_0x2a6c93['id'],
|
|
1242
|
+
_0x2a6c93
|
|
1243
|
+
])), _0x10e072 = _0x4cb28c[_0x2a5245(0x159)](_0x364b48 => _0x364b48['aggregateType'] === _0x2a5245(0x18e)), _0x5d1968 = new Map();
|
|
1244
|
+
for (const _0xe727c2 of _0x10e072) {
|
|
1245
|
+
const _0x31c24b = asRecord(_0xe727c2[_0x2a5245(0x249)]), _0x43270d = typeof _0x31c24b[_0x2a5245(_0x3b6d60._0xc0ff66)] === _0x2a5245(_0x3b6d60._0x502504) ? _0x31c24b[_0x2a5245(_0x3b6d60._0x411609)] : '';
|
|
1246
|
+
if (!_0x43270d)
|
|
1247
|
+
continue;
|
|
1248
|
+
const _0x3ec88d = typeof _0x31c24b[_0x2a5245(0x13b)] === _0x2a5245(0x1b0) ? _0x31c24b[_0x2a5245(_0x3b6d60._0x5afb8c)] : void 0x0, _0x5631f6 = typeof _0x31c24b[_0x2a5245(0x238)] === _0x2a5245(_0x3b6d60._0x502504) ? _0x31c24b[_0x2a5245(0x238)] : void 0x0, _0x111c05 = typeof _0x31c24b['threadNumber'] === 'number' && Number[_0x2a5245(0x19f)](_0x31c24b[_0x2a5245(0x20c)]) ? _0x31c24b[_0x2a5245(0x20c)] : void 0x0, _0x2629f9 = Boolean(_0x3ec88d && (!_0x5631f6 || _0xe727c2[_0x2a5245(_0x3b6d60._0x8273e1)] !== _0x5631f6)), _0x1458d8 = _0x2629f9 ? _0x43270d + ':' + _0x3ec88d : _0x43270d, _0x16ccd4 = _0x5d1968[_0x2a5245(_0x3b6d60._0x46b33e)](_0x1458d8) ?? {
|
|
1249
|
+
'aggregateIds': [],
|
|
1250
|
+
'channelId': _0x43270d,
|
|
1251
|
+
'entries': new Map(),
|
|
1252
|
+
'isThreadReply': _0x2629f9,
|
|
1253
|
+
'rootMessageId': _0x5631f6,
|
|
1254
|
+
'threadNumber': _0x111c05,
|
|
1255
|
+
'threadId': _0x2629f9 ? _0x3ec88d : void 0x0
|
|
1256
|
+
};
|
|
1257
|
+
_0x16ccd4[_0x2a5245(0x20c)] == null && _0x111c05 != null && (_0x16ccd4[_0x2a5245(0x20c)] = _0x111c05), !_0x16ccd4[_0x2a5245(0x238)] && _0x5631f6 && (_0x16ccd4[_0x2a5245(0x238)] = _0x5631f6), _0x16ccd4[_0x2a5245(0x23a)][_0x2a5245(0x254)](_0xe727c2['aggregateId']), _0x16ccd4['entries']['set'](_0xe727c2[_0x2a5245(_0x3b6d60._0x8273e1)], {
|
|
1258
|
+
'payloadJson': _0xe727c2['payloadJson'],
|
|
1259
|
+
'seq': _0xe727c2[_0x2a5245(0x145)]
|
|
1260
|
+
}), _0x5d1968[_0x2a5245(0x164)](_0x1458d8, _0x16ccd4);
|
|
1261
|
+
}
|
|
1262
|
+
const _0x28339d = [];
|
|
1263
|
+
for (const _0x59df25 of _0x5d1968[_0x2a5245(_0x3b6d60._0x2663ee)]()) {
|
|
1264
|
+
const {
|
|
1265
|
+
channelId: _0x4998a4,
|
|
1266
|
+
threadId: _0x2d4520,
|
|
1267
|
+
rootMessageId: _0x298a8c,
|
|
1268
|
+
threadNumber: _0x3c38b0,
|
|
1269
|
+
aggregateIds: _0x282e48,
|
|
1270
|
+
isThreadReply: _0x4fb97b,
|
|
1271
|
+
entries: _0x164a63
|
|
1272
|
+
} = _0x59df25, _0x316f26 = _0x1e9723[_0x2a5245(_0x3b6d60._0x50b1b2)](_0x4998a4), _0x214224 = _0x316f26?.[_0x2a5245(0x1f3)] ?? _0x4998a4, _0x4e60b8 = _0x316f26?.[_0x2a5245(0x281)] === 'dm' ? 'dm:' + _0x214224 : '#' + _0x214224, _0x42977e = {
|
|
1273
|
+
'channelTarget': _0x4e60b8,
|
|
1274
|
+
'rootMessageId': _0x298a8c,
|
|
1275
|
+
'threadId': _0x2d4520,
|
|
1276
|
+
'threadNumber': _0x3c38b0
|
|
1277
|
+
}, _0x23206d = await _0x352600({
|
|
1278
|
+
'channelId': _0x4998a4,
|
|
1279
|
+
'channelTarget': _0x4e60b8,
|
|
1280
|
+
'limit': Math['max'](_0x282e48[_0x2a5245(0x278)], 0x32),
|
|
1281
|
+
'threadId': _0x2d4520
|
|
1282
|
+
}), _0x2ca0ef = new Map(_0x23206d[_0x2a5245(_0x3b6d60._0x4f5e0d)][_0x2a5245(_0x3b6d60._0x3436fa)](_0x36d133 => [
|
|
1283
|
+
_0x36d133[_0x2a5245(0x1dc)],
|
|
1284
|
+
_0x36d133
|
|
1285
|
+
])), _0x1d8c55 = _0x2d4520 ? _0x2e9ff1(_0x42977e) : _0x4e60b8, _0xd42e5d = _0x1a19f0 ? _0x4fb97b && _0x409831(_0x1a19f0, _0x42977e) : !![], _0x3e0c51 = _0x4fb97b ? _0xd42e5d && _0x1a19f0 ? _0x1a19f0 : _0x1d8c55 : _0x4e60b8;
|
|
1286
|
+
for (const _0x5a3054 of _0x282e48) {
|
|
1287
|
+
if (!_0xd42e5d)
|
|
1288
|
+
continue;
|
|
1289
|
+
const _0x3b79cd = _0x164a63[_0x2a5245(_0x3b6d60._0x50b1b2)](_0x5a3054), _0x3cf61a = _0x3b79cd ? asRecord(_0x3b79cd[_0x2a5245(0x249)]) : void 0x0, _0x397246 = _0x3cf61a?.[_0x2a5245(0x204)] === _0x2a5245(0x15f);
|
|
1290
|
+
if (_0x1f8543 && _0x397246)
|
|
1291
|
+
continue;
|
|
1292
|
+
const _0x57ee9d = _0x2ca0ef[_0x2a5245(_0x3b6d60._0x39cc92)](_0x5a3054);
|
|
1293
|
+
if (_0x57ee9d) {
|
|
1294
|
+
_0x28339d[_0x2a5245(_0x3b6d60._0x3edafb)]({
|
|
1295
|
+
'attachments': _0x57ee9d[_0x2a5245(_0x3b6d60._0x583fa4)],
|
|
1296
|
+
'content': _0x57ee9d['content'],
|
|
1297
|
+
'createdAt': _0x57ee9d['createdAt'],
|
|
1298
|
+
'messageId': _0x57ee9d[_0x2a5245(0x1dc)],
|
|
1299
|
+
'senderName': _0x57ee9d['senderName'],
|
|
1300
|
+
'senderType': _0x57ee9d[_0x2a5245(0x1a2)],
|
|
1301
|
+
'target': _0x3e0c51,
|
|
1302
|
+
..._0x397246 ? { 'targetedTask': !![] } : {}
|
|
1303
|
+
});
|
|
1304
|
+
continue;
|
|
1305
|
+
}
|
|
1306
|
+
if (_0x3b79cd) {
|
|
1307
|
+
const _0x48692d = typeof _0x3cf61a?.[_0x2a5245(_0x3b6d60._0x23983f)] === 'string' ? _0x3cf61a[_0x2a5245(0x2bd)] : '', _0x18998a = typeof _0x3cf61a?.[_0x2a5245(_0x3b6d60._0x303abc)] === _0x2a5245(_0x3b6d60._0x502504) ? _0x3cf61a['bodyMarkdown'] : '';
|
|
1308
|
+
_0x48692d && _0x18998a && _0x28339d[_0x2a5245(0x254)]({
|
|
1309
|
+
'attachments': [],
|
|
1310
|
+
'content': _0x18998a,
|
|
1311
|
+
'createdAt': new Date()[_0x2a5245(0x1ef)](),
|
|
1312
|
+
'messageId': _0x5a3054,
|
|
1313
|
+
'senderName': _0x48692d,
|
|
1314
|
+
'senderType': _0x33037d(_0x48692d, _0x13449d),
|
|
1315
|
+
'target': _0x3e0c51,
|
|
1316
|
+
..._0x397246 ? { 'targetedTask': !![] } : {}
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
if (_0x1de917 > 0x0) {
|
|
1322
|
+
if (_0x243fb8)
|
|
1323
|
+
await _0x31ebe6(_0x1de917);
|
|
1324
|
+
else
|
|
1325
|
+
_0x52259d && await _0x54a325(_0x1de917);
|
|
1326
|
+
}
|
|
1327
|
+
return _0x1de917 > _0x187a84 && (_0x187a84 = _0x1de917), { 'messages': _0x1a19f0 ? _0x28339d : _0x1f8543 ? _0x28339d['filter'](_0x4017bb => _0x4017bb['targetedTask'] !== !![]) : _0x28339d };
|
|
1328
|
+
}
|
|
1303
1329
|
};
|
|
1304
|
-
return _0x4879();
|
|
1305
1330
|
}
|
|
1306
|
-
function
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1331
|
+
function toLocalTime(_0x57f800) {
|
|
1332
|
+
const _0x1efde9 = { _0x4fe86e: 0x251 }, _0x1a4497 = _0x50158a, _0x14ccd6 = new Date(_0x57f800);
|
|
1333
|
+
if (Number['isNaN'](_0x14ccd6[_0x1a4497(_0x1efde9._0x4fe86e)]()))
|
|
1334
|
+
return _0x57f800;
|
|
1335
|
+
const _0x4250ad = _0x49fa02 => String(_0x49fa02)[_0x1a4497(0x1ca)](0x2, '0');
|
|
1336
|
+
return _0x14ccd6[_0x1a4497(0x15c)]() + '-' + _0x4250ad(_0x14ccd6['getMonth']() + 0x1) + '-' + _0x4250ad(_0x14ccd6['getDate']()) + '\x20' + _0x4250ad(_0x14ccd6[_0x1a4497(0x268)]()) + ':' + _0x4250ad(_0x14ccd6[_0x1a4497(0x1ee)]()) + ':' + _0x4250ad(_0x14ccd6[_0x1a4497(0x237)]());
|
|
1337
|
+
}
|
|
1338
|
+
function formatAttachmentSuffix(_0x155985) {
|
|
1339
|
+
const _0x2f2757 = {
|
|
1340
|
+
_0x1cddf8: 0x278,
|
|
1341
|
+
_0x3a5f59: 0x1b6,
|
|
1342
|
+
_0x288f1b: 0x1e7,
|
|
1343
|
+
_0x1f0d4c: 0x212,
|
|
1344
|
+
_0x481f36: 0x25b
|
|
1345
|
+
}, _0x169454 = _0x50158a;
|
|
1346
|
+
if (!_0x155985 || _0x155985['length'] === 0x0)
|
|
1347
|
+
return '';
|
|
1348
|
+
return '\x20[' + _0x155985[_0x169454(_0x2f2757._0x1cddf8)] + _0x169454(_0x2f2757._0x3a5f59) + (_0x155985[_0x169454(_0x2f2757._0x1cddf8)] > 0x1 ? 's' : '') + ':\x20' + _0x155985[_0x169454(_0x2f2757._0x288f1b)](_0x15fff1 => _0x15fff1[_0x169454(0x2b1)] + _0x169454(0x216) + _0x15fff1['id'] + ')')[_0x169454(_0x2f2757._0x1f0d4c)](',\x20') + _0x169454(_0x2f2757._0x481f36);
|
|
1349
|
+
}
|
|
1350
|
+
function formatCheckMessages(_0x53e7e2) {
|
|
1351
|
+
const _0x3fd498 = {
|
|
1352
|
+
_0x48ca61: 0x289,
|
|
1353
|
+
_0x5229c1: 0x15e,
|
|
1354
|
+
_0x5e8f1c: 0x1f7,
|
|
1355
|
+
_0x3df08b: 0x203,
|
|
1356
|
+
_0x4f8eac: 0x1ae
|
|
1357
|
+
}, _0x59c1ac = _0x50158a;
|
|
1358
|
+
if (_0x53e7e2[_0x59c1ac(0x278)] === 0x0)
|
|
1314
1359
|
return 'No\x20new\x20messages.';
|
|
1315
|
-
return
|
|
1316
|
-
const
|
|
1317
|
-
return
|
|
1318
|
-
})[
|
|
1360
|
+
return _0x53e7e2[_0x59c1ac(0x1e7)](_0x182bae => {
|
|
1361
|
+
const _0x4db87b = _0x59c1ac, _0x5c6220 = _0x182bae[_0x4db87b(0x1a2)] === _0x4db87b(_0x3fd498._0x48ca61) ? _0x4db87b(0x1aa) : '';
|
|
1362
|
+
return _0x4db87b(_0x3fd498._0x5229c1) + _0x182bae['target'] + _0x4db87b(0x1e9) + _0x182bae[_0x4db87b(0x1dc)][_0x4db87b(_0x3fd498._0x5e8f1c)](0x0, 0x8) + _0x4db87b(0x1c6) + toLocalTime(_0x182bae[_0x4db87b(_0x3fd498._0x3df08b)]) + _0x5c6220 + _0x4db87b(0x29c) + _0x182bae[_0x4db87b(0x205)] + ':\x20' + _0x182bae[_0x4db87b(_0x3fd498._0x4f8eac)] + formatAttachmentSuffix(_0x182bae[_0x4db87b(0x28b)]);
|
|
1363
|
+
})[_0x59c1ac(0x212)]('\x0a');
|
|
1319
1364
|
}
|
|
1320
|
-
function formatHistory(
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
return '##\x20Message\x20History\x20for\x20' + _0x44ec37[_0x392e85(0x1a4)] + '\x20(' + _0x44ec37[_0x392e85(0x2a2)][_0x392e85(_0x2978d0._0x431297)] + _0x392e85(_0x2978d0._0x36ca67) + _0x3e7b2b + _0x896441;
|
|
1365
|
+
function formatHistory(_0x2820cd) {
|
|
1366
|
+
const _0x1f787c = {
|
|
1367
|
+
_0x5c22c2: 0x1e7,
|
|
1368
|
+
_0x32217f: 0x1ad,
|
|
1369
|
+
_0x1337ad: 0x19a,
|
|
1370
|
+
_0x5bdb49: 0x278,
|
|
1371
|
+
_0xfc9609: 0x240,
|
|
1372
|
+
_0x2db8d3: 0x2b8
|
|
1373
|
+
}, _0x279c24 = {
|
|
1374
|
+
_0x41bdb3: 0x1a2,
|
|
1375
|
+
_0x283df6: 0x1aa,
|
|
1376
|
+
_0x4089c5: 0x145,
|
|
1377
|
+
_0x5c6611: 0x1dc,
|
|
1378
|
+
_0x2457ba: 0x1c6,
|
|
1379
|
+
_0x112781: 0x29c,
|
|
1380
|
+
_0x54ab4e: 0x205
|
|
1381
|
+
}, _0x103129 = _0x50158a;
|
|
1382
|
+
if (_0x2820cd[_0x103129(0x16f)][_0x103129(0x278)] === 0x0)
|
|
1383
|
+
return '##\x20Message\x20History\x20for\x20' + _0x2820cd['channel'] + _0x103129(0x146);
|
|
1384
|
+
const _0x5554 = _0x2820cd[_0x103129(0x16f)][_0x103129(_0x1f787c._0x5c22c2)](_0x1b158d => {
|
|
1385
|
+
const _0x50fb64 = _0x103129, _0x56155a = _0x1b158d[_0x50fb64(_0x279c24._0x41bdb3)] === _0x50fb64(0x289) ? _0x50fb64(_0x279c24._0x283df6) : '';
|
|
1386
|
+
return _0x50fb64(0x13a) + _0x1b158d[_0x50fb64(_0x279c24._0x4089c5)] + _0x50fb64(0x1e9) + _0x1b158d[_0x50fb64(_0x279c24._0x5c6611)] + _0x50fb64(_0x279c24._0x2457ba) + toLocalTime(_0x1b158d[_0x50fb64(0x203)]) + _0x56155a + _0x50fb64(_0x279c24._0x112781) + _0x1b158d[_0x50fb64(_0x279c24._0x54ab4e)] + ':\x20' + _0x1b158d['content'] + formatAttachmentSuffix(_0x1b158d['attachments']);
|
|
1387
|
+
})[_0x103129(0x212)]('\x0a'), _0x111ddc = _0x2820cd[_0x103129(_0x1f787c._0x32217f)] && _0x2820cd[_0x103129(0x227)] ? _0x103129(_0x1f787c._0x1337ad) + _0x2820cd[_0x103129(0x16f)][_0x103129(_0x1f787c._0x5bdb49)] + _0x103129(_0x1f787c._0xfc9609) + _0x2820cd['nextCursor'] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1388
|
+
return _0x103129(_0x1f787c._0x2db8d3) + _0x2820cd[_0x103129(0x162)] + '\x20(' + _0x2820cd['messages'][_0x103129(_0x1f787c._0x5bdb49)] + _0x103129(0x235) + _0x5554 + _0x111ddc;
|
|
1345
1389
|
}
|
|
1346
|
-
function formatServerDirectory(
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}, _0x420fbe = _0x4ab0ed, _0x2a8159 = _0x5dba44[_0x420fbe(_0x46ec37._0xc03f8b)]['length'] > 0x0 ? _0x5dba44[_0x420fbe(0x231)][_0x420fbe(0x243)](_0x9e3af7 => _0x9e3af7[_0x420fbe(0x262)] ? _0x420fbe(0x219) + _0x9e3af7[_0x420fbe(0x228)] + '\x20—\x20' + _0x9e3af7[_0x420fbe(0x262)] : _0x420fbe(0x219) + _0x9e3af7[_0x420fbe(0x228)])[_0x420fbe(_0x46ec37._0x1afd66)]('\x0a') : _0x420fbe(0x1f9), _0x16aed1 = _0x5dba44[_0x420fbe(0x23e)][_0x420fbe(0x1e3)] > 0x0 ? _0x5dba44[_0x420fbe(_0x46ec37._0x491c85)][_0x420fbe(_0x46ec37._0x855944)](_0x153ca6 => _0x420fbe(0x264) + _0x153ca6[_0x420fbe(0x228)])['join']('\x0a') : _0x420fbe(_0x46ec37._0x294c9b), _0x388ab1 = _0x5dba44[_0x420fbe(0x273)]['length'] > 0x0 ? _0x5dba44[_0x420fbe(0x273)][_0x420fbe(_0x46ec37._0x4d88d5)](_0x556f5a => _0x420fbe(0x264) + _0x556f5a[_0x420fbe(0x228)])[_0x420fbe(0x2a5)]('\x0a') : _0x420fbe(0x1f9);
|
|
1390
|
+
function formatServerDirectory(_0x2ec25a) {
|
|
1391
|
+
const _0x47f84a = {
|
|
1392
|
+
_0x5d9f37: 0x212,
|
|
1393
|
+
_0x4efe9c: 0x278,
|
|
1394
|
+
_0x348809: 0x225,
|
|
1395
|
+
_0x1e942b: 0x1b5,
|
|
1396
|
+
_0xf841c3: 0x24b,
|
|
1397
|
+
_0x407a9d: 0x1e7,
|
|
1398
|
+
_0x9418a: 0x1b5
|
|
1399
|
+
}, _0x3ade07 = _0x50158a, _0x2ae8b8 = _0x2ec25a['channels']['length'] > 0x0 ? _0x2ec25a['channels']['map'](_0x592d72 => _0x592d72['description'] ? _0x3ade07(0x295) + _0x592d72['name'] + _0x3ade07(0x27a) + _0x592d72[_0x3ade07(0x215)] : _0x3ade07(0x295) + _0x592d72[_0x3ade07(0x1f3)])[_0x3ade07(_0x47f84a._0x5d9f37)]('\x0a') : '(none)', _0x1cebcb = _0x2ec25a['agents'][_0x3ade07(_0x47f84a._0x4efe9c)] > 0x0 ? _0x2ec25a[_0x3ade07(_0x47f84a._0x348809)]['map'](_0x15fad4 => _0x3ade07(0x22a) + _0x15fad4[_0x3ade07(0x1f3)])['join']('\x0a') : _0x3ade07(_0x47f84a._0x1e942b), _0x24d576 = _0x2ec25a[_0x3ade07(_0x47f84a._0xf841c3)][_0x3ade07(0x278)] > 0x0 ? _0x2ec25a['humans'][_0x3ade07(_0x47f84a._0x407a9d)](_0x51c9ca => _0x3ade07(0x22a) + _0x51c9ca['name'])[_0x3ade07(0x212)]('\x0a') : _0x3ade07(_0x47f84a._0x9418a);
|
|
1357
1400
|
return [
|
|
1358
|
-
'##\x20Server:\x20' +
|
|
1401
|
+
'##\x20Server:\x20' + _0x2ec25a[_0x3ade07(0x193)],
|
|
1359
1402
|
'',
|
|
1360
|
-
|
|
1361
|
-
|
|
1403
|
+
_0x3ade07(0x171),
|
|
1404
|
+
_0x2ae8b8,
|
|
1362
1405
|
'',
|
|
1363
|
-
|
|
1364
|
-
|
|
1406
|
+
'###\x20Agents',
|
|
1407
|
+
_0x1cebcb,
|
|
1365
1408
|
'',
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
][
|
|
1409
|
+
_0x3ade07(0x1a9),
|
|
1410
|
+
_0x24d576
|
|
1411
|
+
][_0x3ade07(0x212)]('\x0a');
|
|
1369
1412
|
}
|
|
1370
|
-
function formatUploadResult(
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1373
|
-
_0x1daa90: 0x17b,
|
|
1374
|
-
_0x17aa7c: 0x213
|
|
1375
|
-
}, _0x3a19e0 = _0x4ab0ed;
|
|
1376
|
-
return _0x3a19e0(0x224) + _0x579791[_0x3a19e0(_0x5df97c._0x5b9096)] + '\x20(' + (_0x579791['sizeBytes'] / 0x400)[_0x3a19e0(_0x5df97c._0x1daa90)](0x1) + _0x3a19e0(_0x5df97c._0x17aa7c) + _0x579791['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1413
|
+
function formatUploadResult(_0x2b2894) {
|
|
1414
|
+
const _0x19da29 = { _0x3a7811: 0x2b1 }, _0x162386 = _0x50158a;
|
|
1415
|
+
return _0x162386(0x19b) + _0x2b2894[_0x162386(_0x19da29._0x3a7811)] + '\x20(' + (_0x2b2894['sizeBytes'] / 0x400)['toFixed'](0x1) + _0x162386(0x1ba) + _0x2b2894['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1377
1416
|
}
|
|
1378
|
-
function formatViewFileResult(
|
|
1379
|
-
const
|
|
1380
|
-
return
|
|
1417
|
+
function formatViewFileResult(_0x31d914, _0x5e6e9a) {
|
|
1418
|
+
const _0x468ffc = { _0xf84c5e: 0x223 }, _0x54aaf9 = _0x50158a;
|
|
1419
|
+
return _0x5e6e9a ? _0x54aaf9(_0x468ffc._0xf84c5e) + _0x31d914 : 'Downloaded\x20to:\x20' + _0x31d914;
|
|
1381
1420
|
}
|
|
1382
|
-
function
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1421
|
+
function _0x3051(_0x4ba707, _0x2b2b20) {
|
|
1422
|
+
_0x4ba707 = _0x4ba707 - 0x138;
|
|
1423
|
+
const _0x570637 = _0x5706();
|
|
1424
|
+
let _0x305101 = _0x570637[_0x4ba707];
|
|
1425
|
+
if (_0x3051['eWSlKi'] === undefined) {
|
|
1426
|
+
var _0x278bd3 = function (_0x2037a1) {
|
|
1427
|
+
const _0x32c933 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1428
|
+
let _0x37f362 = '', _0x2dfbd0 = '';
|
|
1429
|
+
for (let _0x246908 = 0x0, _0x1f58b6, _0x2e8719, _0x4ff0c5 = 0x0; _0x2e8719 = _0x2037a1['charAt'](_0x4ff0c5++); ~_0x2e8719 && (_0x1f58b6 = _0x246908 % 0x4 ? _0x1f58b6 * 0x40 + _0x2e8719 : _0x2e8719, _0x246908++ % 0x4) ? _0x37f362 += String['fromCharCode'](0xff & _0x1f58b6 >> (-0x2 * _0x246908 & 0x6)) : 0x0) {
|
|
1430
|
+
_0x2e8719 = _0x32c933['indexOf'](_0x2e8719);
|
|
1431
|
+
}
|
|
1432
|
+
for (let _0x2b609e = 0x0, _0xafd811 = _0x37f362['length']; _0x2b609e < _0xafd811; _0x2b609e++) {
|
|
1433
|
+
_0x2dfbd0 += '%' + ('00' + _0x37f362['charCodeAt'](_0x2b609e)['toString'](0x10))['slice'](-0x2);
|
|
1434
|
+
}
|
|
1435
|
+
return decodeURIComponent(_0x2dfbd0);
|
|
1436
|
+
};
|
|
1437
|
+
_0x3051['CnYAhu'] = _0x278bd3, _0x3051['EolWpC'] = {}, _0x3051['eWSlKi'] = !![];
|
|
1438
|
+
}
|
|
1439
|
+
const _0x34bd47 = _0x570637[0x0], _0x4a186a = _0x4ba707 + _0x34bd47, _0x3cd3b0 = _0x3051['EolWpC'][_0x4a186a];
|
|
1440
|
+
return !_0x3cd3b0 ? (_0x305101 = _0x3051['CnYAhu'](_0x305101), _0x3051['EolWpC'][_0x4a186a] = _0x305101) : _0x305101 = _0x3cd3b0, _0x305101;
|
|
1398
1441
|
}
|
|
1399
|
-
function
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
},
|
|
1405
|
-
if (
|
|
1406
|
-
return
|
|
1407
|
-
return
|
|
1408
|
-
const
|
|
1409
|
-
return
|
|
1442
|
+
function formatTaskList(_0x384383, _0x4a7719) {
|
|
1443
|
+
const _0x355663 = { _0x879658: 0x1e7 }, _0x184cd5 = {
|
|
1444
|
+
_0x188236: 0x151,
|
|
1445
|
+
_0x580db8: 0x1dc,
|
|
1446
|
+
_0x422c4a: 0x14d
|
|
1447
|
+
}, _0xb60d0a = _0x50158a;
|
|
1448
|
+
if (_0x384383[_0xb60d0a(0x278)] === 0x0)
|
|
1449
|
+
return 'No\x20tasks\x20found.';
|
|
1450
|
+
return _0x384383[_0xb60d0a(_0x355663._0x879658)](_0x46ae89 => {
|
|
1451
|
+
const _0x2ee37f = _0xb60d0a, _0x2b9b81 = _0x46ae89[_0x2ee37f(_0x184cd5._0x188236)] == null ? '(legacy)' : '#' + _0x46ae89['taskNumber'], _0x165eae = _0x46ae89[_0x2ee37f(_0x184cd5._0x580db8)] ? _0x2ee37f(_0x184cd5._0x422c4a) + _0x46ae89['messageId'] : '', _0x40ceee = _0x4a7719 && _0x46ae89['taskNumber'] != null && _0x4a7719[_0x2ee37f(0x25a)](_0x46ae89['taskNumber']) ? '\x20executionMode=worker' : '';
|
|
1452
|
+
return _0x2b9b81 + '\x20[' + _0x46ae89[_0x2ee37f(0x1fa)] + ']\x20' + _0x46ae89[_0x2ee37f(0x1fd)] + _0x165eae + _0x40ceee;
|
|
1453
|
+
})[_0xb60d0a(0x212)]('\x0a');
|
|
1454
|
+
}
|
|
1455
|
+
function formatCreatedTasks(_0x44eeef) {
|
|
1456
|
+
const _0x33fbea = {
|
|
1457
|
+
_0x25ae2f: 0x1fd,
|
|
1458
|
+
_0x2bd25d: 0x1dc
|
|
1459
|
+
}, _0x44a493 = _0x50158a;
|
|
1460
|
+
if (_0x44eeef['length'] === 0x0)
|
|
1461
|
+
return _0x44a493(0x241);
|
|
1462
|
+
return _0x44eeef[_0x44a493(0x1e7)](_0x497e9a => {
|
|
1463
|
+
const _0x2a77ec = _0x44a493, _0x28241b = _0x497e9a[_0x2a77ec(0x151)] == null ? _0x2a77ec(0x28e) : '#' + _0x497e9a[_0x2a77ec(0x151)];
|
|
1464
|
+
return _0x28241b + '\x20' + _0x497e9a[_0x2a77ec(_0x33fbea._0x25ae2f)] + '\x20message=' + _0x497e9a[_0x2a77ec(_0x33fbea._0x2bd25d)];
|
|
1410
1465
|
})['join']('\x0a');
|
|
1411
1466
|
}
|
|
1412
|
-
function formatClaimTaskResults(
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
_0x63e7f9[_0x47f690(0x2bc)] ? 'executionMode=' + _0x63e7f9[_0x47f690(_0x193bdb._0x4d723a)] : null,
|
|
1439
|
-
_0x63e7f9['threadTarget'] ? _0x47f690(0x280) + _0x63e7f9[_0x47f690(0x245)] : null,
|
|
1440
|
-
_0x63e7f9[_0x47f690(0x20c)] ? _0x47f690(_0x193bdb._0x220cf9) + _0x63e7f9[_0x47f690(_0x193bdb._0x4e413f)] : null
|
|
1441
|
-
][_0x47f690(_0x193bdb._0x3348ab)](Boolean)[_0x47f690(0x2a5)]('\x20') : _0x63e7f9[_0x47f690(_0x193bdb._0x53557f)] ? _0x47f690(0x233) + _0x63e7f9[_0x47f690(0x226)] : '';
|
|
1467
|
+
function formatClaimTaskResults(_0x2b091d) {
|
|
1468
|
+
const _0x4ee3c8 = { _0x101198: 0x278 }, _0x98fcd0 = {
|
|
1469
|
+
_0x1698e2: 0x277,
|
|
1470
|
+
_0x563446: 0x28e,
|
|
1471
|
+
_0x7957a5: 0x1dc,
|
|
1472
|
+
_0x1e75b0: 0x288,
|
|
1473
|
+
_0x486afe: 0x2a3,
|
|
1474
|
+
_0x411b24: 0x255,
|
|
1475
|
+
_0x1f1bef: 0x2a9,
|
|
1476
|
+
_0x221935: 0x264,
|
|
1477
|
+
_0x4f732: 0x188,
|
|
1478
|
+
_0x10a69f: 0x159,
|
|
1479
|
+
_0x30f0f4: 0x221
|
|
1480
|
+
}, _0x1e2c1b = _0x50158a;
|
|
1481
|
+
if (_0x2b091d[_0x1e2c1b(_0x4ee3c8._0x101198)] === 0x0)
|
|
1482
|
+
return 'No\x20tasks\x20claimed.';
|
|
1483
|
+
return _0x2b091d[_0x1e2c1b(0x1e7)](_0x120ab3 => {
|
|
1484
|
+
const _0x5f2be9 = _0x1e2c1b;
|
|
1485
|
+
if (_0x120ab3[_0x5f2be9(_0x98fcd0._0x1698e2)]) {
|
|
1486
|
+
const _0x1ac233 = _0x120ab3['taskNumber'] == null ? _0x5f2be9(_0x98fcd0._0x563446) : '#' + _0x120ab3[_0x5f2be9(0x151)], _0x399c01 = _0x120ab3[_0x5f2be9(_0x98fcd0._0x7957a5)] ? '\x20message=' + _0x120ab3[_0x5f2be9(0x1dc)] : '', _0x4ee4ae = _0x120ab3['workerHandoff'] ? [
|
|
1487
|
+
_0x5f2be9(0x22b),
|
|
1488
|
+
_0x120ab3['stopMain'] ? _0x5f2be9(_0x98fcd0._0x1e75b0) : null,
|
|
1489
|
+
_0x120ab3[_0x5f2be9(_0x98fcd0._0x486afe)] ? _0x5f2be9(_0x98fcd0._0x411b24) + _0x120ab3[_0x5f2be9(0x2a3)] : null,
|
|
1490
|
+
_0x120ab3[_0x5f2be9(_0x98fcd0._0x1f1bef)] ? _0x5f2be9(_0x98fcd0._0x221935) + _0x120ab3[_0x5f2be9(0x2a9)] : null,
|
|
1491
|
+
_0x120ab3['workerDisposition'] ? _0x5f2be9(0x139) + _0x120ab3['workerDisposition'] : null
|
|
1492
|
+
]['filter'](Boolean)[_0x5f2be9(0x212)]('\x20') : _0x120ab3[_0x5f2be9(_0x98fcd0._0x4f732)] ? _0x5f2be9(0x27c) + _0x120ab3[_0x5f2be9(0x188)] : '';
|
|
1442
1493
|
return [
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
][
|
|
1494
|
+
_0x1ac233 + _0x5f2be9(0x2b0) + _0x399c01,
|
|
1495
|
+
_0x4ee4ae
|
|
1496
|
+
][_0x5f2be9(_0x98fcd0._0x10a69f)](Boolean)[_0x5f2be9(0x212)]('\x20');
|
|
1446
1497
|
}
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1449
|
-
})[
|
|
1498
|
+
const _0x3feaae = _0x120ab3[_0x5f2be9(0x151)] == null ? _0x120ab3['messageId'] ?? '(unknown)' : '#' + _0x120ab3['taskNumber'];
|
|
1499
|
+
return _0x3feaae + '\x20failed:\x20' + (_0x120ab3[_0x5f2be9(_0x98fcd0._0x30f0f4)] ?? 'claim\x20failed');
|
|
1500
|
+
})[_0x1e2c1b(0x212)]('\x0a');
|
|
1450
1501
|
}
|
|
1451
|
-
function formatUnclaimTaskResult(
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1502
|
+
function formatUnclaimTaskResult(_0x5a1738) {
|
|
1503
|
+
const _0x382de9 = {
|
|
1504
|
+
_0x584b74: 0x151,
|
|
1505
|
+
_0x109cba: 0x24c
|
|
1506
|
+
}, _0x8e083b = _0x50158a, _0x64a1a1 = _0x5a1738[_0x8e083b(_0x382de9._0x584b74)] == null ? _0x8e083b(0x28e) : '#' + _0x5a1738[_0x8e083b(0x151)];
|
|
1507
|
+
return _0x64a1a1 + _0x8e083b(_0x382de9._0x109cba) + _0x5a1738['status'];
|
|
1454
1508
|
}
|
|
1455
|
-
function formatUpdateTaskStatusResult(
|
|
1456
|
-
const
|
|
1457
|
-
return
|
|
1509
|
+
function formatUpdateTaskStatusResult(_0x4b8c52) {
|
|
1510
|
+
const _0x2feef9 = { _0x1cc917: 0x28e }, _0x3803b7 = _0x50158a, _0x193961 = _0x4b8c52['taskNumber'] == null ? _0x3803b7(_0x2feef9._0x1cc917) : '#' + _0x4b8c52['taskNumber'];
|
|
1511
|
+
return _0x193961 + _0x3803b7(0x24c) + _0x4b8c52[_0x3803b7(0x1fa)];
|
|
1458
1512
|
}
|
|
1459
1513
|
function getChatBridgeToolDefinitions() {
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1514
|
+
const _0x3947a4 = {
|
|
1515
|
+
_0xb3262: 0x195,
|
|
1516
|
+
_0x38f3ee: 0x1a1,
|
|
1517
|
+
_0x14b2ca: 0x1df,
|
|
1518
|
+
_0x4b6a00: 0x189,
|
|
1519
|
+
_0x1334f9: 0x14b,
|
|
1520
|
+
_0xeab99b: 0x2a0,
|
|
1521
|
+
_0x3ebe24: 0x14f,
|
|
1522
|
+
_0xb3ac6c: 0x1f0,
|
|
1523
|
+
_0x26fba0: 0x21a
|
|
1524
|
+
}, _0x443517 = _0x50158a;
|
|
1468
1525
|
return [
|
|
1469
|
-
{ 'name':
|
|
1470
|
-
{ 'name':
|
|
1471
|
-
{ 'name':
|
|
1472
|
-
{ 'name':
|
|
1473
|
-
{ 'name':
|
|
1474
|
-
{ 'name':
|
|
1475
|
-
{ 'name':
|
|
1476
|
-
{ 'name':
|
|
1477
|
-
{ 'name':
|
|
1478
|
-
{ 'name':
|
|
1479
|
-
{ 'name':
|
|
1480
|
-
{ 'name':
|
|
1481
|
-
{ 'name':
|
|
1482
|
-
{ 'name':
|
|
1483
|
-
{ 'name':
|
|
1484
|
-
{ 'name': _0x475a08(0x186) },
|
|
1526
|
+
{ 'name': _0x443517(0x275) },
|
|
1527
|
+
{ 'name': _0x443517(_0x3947a4._0xb3262) },
|
|
1528
|
+
{ 'name': _0x443517(0x243) },
|
|
1529
|
+
{ 'name': _0x443517(_0x3947a4._0x38f3ee) },
|
|
1530
|
+
{ 'name': _0x443517(_0x3947a4._0x14b2ca) },
|
|
1531
|
+
{ 'name': 'view_file' },
|
|
1532
|
+
{ 'name': _0x443517(_0x3947a4._0x4b6a00) },
|
|
1533
|
+
{ 'name': _0x443517(0x1c1) },
|
|
1534
|
+
{ 'name': _0x443517(_0x3947a4._0x1334f9) },
|
|
1535
|
+
{ 'name': _0x443517(_0x3947a4._0xeab99b) },
|
|
1536
|
+
{ 'name': 'update_task_status' },
|
|
1537
|
+
{ 'name': _0x443517(_0x3947a4._0x3ebe24) },
|
|
1538
|
+
{ 'name': _0x443517(_0x3947a4._0xb3ac6c) },
|
|
1539
|
+
{ 'name': _0x443517(_0x3947a4._0x26fba0) },
|
|
1540
|
+
{ 'name': _0x443517(0x1a0) },
|
|
1485
1541
|
{ 'name': 'mark_waiting_input' }
|
|
1486
1542
|
];
|
|
1487
1543
|
}
|
|
1488
|
-
function createChatBridgeHandlers(
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
},
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
},
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
},
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
},
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
},
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1544
|
+
function createChatBridgeHandlers(_0x37d6f2) {
|
|
1545
|
+
const _0x306e4b = {
|
|
1546
|
+
_0x404bc3: 0x2b7,
|
|
1547
|
+
_0x2cac29: 0x1e5,
|
|
1548
|
+
_0x252deb: 0x1de,
|
|
1549
|
+
_0x508e1e: 0x2a6,
|
|
1550
|
+
_0x511144: 0x1b2,
|
|
1551
|
+
_0x2936bc: 0x221,
|
|
1552
|
+
_0x320bf8: 0x221
|
|
1553
|
+
}, _0x3856fe = {
|
|
1554
|
+
_0x1c1deb: 0x2b7,
|
|
1555
|
+
_0x5182f6: 0x165,
|
|
1556
|
+
_0x545646: 0x2af,
|
|
1557
|
+
_0x7afed8: 0x1b2,
|
|
1558
|
+
_0x32ed7b: 0x15b,
|
|
1559
|
+
_0x4b08a8: 0x297,
|
|
1560
|
+
_0x1da9fd: 0x293,
|
|
1561
|
+
_0xf8e796: 0x21e
|
|
1562
|
+
}, _0xded1e4 = {
|
|
1563
|
+
_0x22c724: 0x253,
|
|
1564
|
+
_0x667213: 0x15b,
|
|
1565
|
+
_0x174bee: 0x1fc,
|
|
1566
|
+
_0x4f1bf7: 0x147,
|
|
1567
|
+
_0x391c31: 0x182
|
|
1568
|
+
}, _0x3da2ee = {
|
|
1569
|
+
_0x4ae159: 0x230,
|
|
1570
|
+
_0x159988: 0x1fe,
|
|
1571
|
+
_0x4a177e: 0x17a,
|
|
1572
|
+
_0xc40578: 0x211,
|
|
1573
|
+
_0x1e08fa: 0x147
|
|
1574
|
+
}, _0x2829d1 = {
|
|
1575
|
+
_0x26a4c9: 0x2b7,
|
|
1576
|
+
_0x572f5a: 0x1fc,
|
|
1577
|
+
_0xb20de7: 0x147,
|
|
1578
|
+
_0x3a6eb5: 0x1fa
|
|
1579
|
+
}, _0x12600f = {
|
|
1580
|
+
_0x3b4202: 0x194,
|
|
1581
|
+
_0x2b8f6d: 0x144,
|
|
1582
|
+
_0x48bcc8: 0x1f4,
|
|
1583
|
+
_0x162854: 0x2ae
|
|
1584
|
+
}, _0x18b7ee = {
|
|
1585
|
+
_0x4d9937: 0x199,
|
|
1586
|
+
_0x49edf2: 0x162
|
|
1587
|
+
}, _0x5cc5a8 = { _0x3a547e: 0x2ac }, _0x27b61c = { _0x1c3ac3: 0x184 }, _0x45dc99 = {
|
|
1588
|
+
_0xa4281d: 0x1b9,
|
|
1589
|
+
_0x142655: 0x282
|
|
1590
|
+
}, _0x584cb0 = {
|
|
1591
|
+
_0x36dd5f: 0x277,
|
|
1592
|
+
_0x5ee71b: 0x1dc,
|
|
1593
|
+
_0x320686: 0x1ea,
|
|
1594
|
+
_0x4af2d8: 0x151,
|
|
1595
|
+
_0x20353f: 0x20c
|
|
1596
|
+
}, _0x1c9c41 = {
|
|
1597
|
+
_0x258e63: 0x1fa,
|
|
1598
|
+
_0x1a4f45: 0x143,
|
|
1599
|
+
_0x4aeb04: 0x2bc,
|
|
1600
|
+
_0x2795aa: 0x278,
|
|
1601
|
+
_0xc3972d: 0x1c9,
|
|
1602
|
+
_0x3f2e86: 0x151,
|
|
1603
|
+
_0x3c7b43: 0x1b7,
|
|
1604
|
+
_0x188262: 0x1eb,
|
|
1605
|
+
_0x34dc69: 0x151
|
|
1606
|
+
}, _0x3adf96 = {
|
|
1607
|
+
_0x151462: 0x184,
|
|
1608
|
+
_0x17cbd2: 0x15d
|
|
1609
|
+
}, _0x12674c = {
|
|
1610
|
+
_0x36601e: 0x172,
|
|
1611
|
+
_0x81156c: 0x151,
|
|
1612
|
+
_0x389435: 0x1c4,
|
|
1613
|
+
_0x47b9c4: 0x28e,
|
|
1614
|
+
_0x2bbfbe: 0x1bc,
|
|
1615
|
+
_0x536ee4: 0x1bc,
|
|
1616
|
+
_0x521367: 0x15e,
|
|
1617
|
+
_0x534dce: 0x2a5,
|
|
1618
|
+
_0x2ea647: 0x1ef,
|
|
1619
|
+
_0x3d0c82: 0x1f6,
|
|
1620
|
+
_0x4cb861: 0x180,
|
|
1621
|
+
_0x531ad8: 0x1c3,
|
|
1622
|
+
_0x4af27e: 0x2b7,
|
|
1623
|
+
_0x370bc0: 0x1de,
|
|
1624
|
+
_0x434cd1: 0x2a6,
|
|
1625
|
+
_0x4c72d8: 0x1b2,
|
|
1626
|
+
_0x53a014: 0x1c0,
|
|
1627
|
+
_0x31ec21: 0x261,
|
|
1628
|
+
_0x3c966a: 0x265,
|
|
1629
|
+
_0x5ca247: 0x20b,
|
|
1630
|
+
_0x46f9cf: 0x184,
|
|
1631
|
+
_0x162ed2: 0x1da,
|
|
1632
|
+
_0x254ec2: 0x239,
|
|
1633
|
+
_0x1b3a93: 0x1bc,
|
|
1634
|
+
_0x2cff63: 0x1dc
|
|
1635
|
+
}, _0x309ae9 = {
|
|
1636
|
+
_0x1b474f: 0x2b7,
|
|
1637
|
+
_0x538aa5: 0x2b6,
|
|
1638
|
+
_0x31ef57: 0x1c0,
|
|
1639
|
+
_0x782459: 0x217,
|
|
1640
|
+
_0x9845ab: 0x1e2
|
|
1641
|
+
}, _0x153fd0 = {
|
|
1642
|
+
_0x389ff3: 0x2b7,
|
|
1643
|
+
_0x3e2b24: 0x1c0,
|
|
1644
|
+
_0x359a70: 0x162,
|
|
1645
|
+
_0x39a6e4: 0x20c,
|
|
1646
|
+
_0x3b1301: 0x184,
|
|
1647
|
+
_0x2ce554: 0x1ce,
|
|
1648
|
+
_0x3832e1: 0x1c9,
|
|
1649
|
+
_0x315d2b: 0x28e,
|
|
1650
|
+
_0x1ac814: 0x15e,
|
|
1651
|
+
_0x117d07: 0x1ef,
|
|
1652
|
+
_0x6fcf6e: 0x16c,
|
|
1653
|
+
_0x56aab8: 0x274,
|
|
1654
|
+
_0x521731: 0x214,
|
|
1655
|
+
_0x5c746a: 0x17f,
|
|
1656
|
+
_0x161cc2: 0x1ea,
|
|
1657
|
+
_0x5c0f94: 0x1ea,
|
|
1658
|
+
_0x51ca14: 0x151,
|
|
1659
|
+
_0x17b834: 0x15b,
|
|
1660
|
+
_0x2d3dbc: 0x13e,
|
|
1661
|
+
_0x3ea8b1: 0x265,
|
|
1662
|
+
_0x319bc0: 0x2ba,
|
|
1663
|
+
_0x47a7e2: 0x20f
|
|
1573
1664
|
};
|
|
1574
|
-
async function
|
|
1575
|
-
const
|
|
1576
|
-
if (!
|
|
1665
|
+
async function _0xbff49c(_0x4ed7ef) {
|
|
1666
|
+
const _0x2da61b = _0x3051;
|
|
1667
|
+
if (!_0x37d6f2[_0x2da61b(_0x153fd0._0x389ff3)] || !_0x37d6f2[_0x2da61b(_0x153fd0._0x3e2b24)] || _0x37d6f2[_0x2da61b(0x15d)] || _0x37d6f2[_0x2da61b(0x172)] !== !![])
|
|
1577
1668
|
return null;
|
|
1578
|
-
const
|
|
1579
|
-
if (
|
|
1669
|
+
const _0x937586 = parseTarget(_0x4ed7ef[_0x2da61b(_0x153fd0._0x359a70)]);
|
|
1670
|
+
if (_0x937586[_0x2da61b(0x281)] !== _0x2da61b(_0x153fd0._0x359a70))
|
|
1580
1671
|
return null;
|
|
1581
|
-
const
|
|
1582
|
-
let
|
|
1672
|
+
const _0x5890ca = _0x4ed7ef[_0x2da61b(_0x153fd0._0x39a6e4)] != null ? _0x937586[_0x2da61b(0x27f)] + ':t' + _0x4ed7ef['threadNumber'] : _0x937586['channelTarget'] + ':' + _0x4ed7ef[_0x2da61b(0x1dc)];
|
|
1673
|
+
let _0x174c05;
|
|
1583
1674
|
try {
|
|
1584
|
-
const
|
|
1585
|
-
'channel':
|
|
1675
|
+
const _0x3008ff = await _0x37d6f2[_0x2da61b(_0x153fd0._0x3b1301)][_0x2da61b(_0x153fd0._0x2ce554)]({
|
|
1676
|
+
'channel': _0x5890ca,
|
|
1586
1677
|
'limit': 0x14
|
|
1587
1678
|
});
|
|
1588
|
-
|
|
1679
|
+
_0x174c05 = _0x3008ff['messages'][_0x2da61b(_0x153fd0._0x3832e1)](_0x536d2d => _0x536d2d[_0x2da61b(0x1dc)] === _0x4ed7ef[_0x2da61b(0x1dc)]);
|
|
1589
1680
|
} catch {
|
|
1590
|
-
|
|
1681
|
+
_0x174c05 = void 0x0;
|
|
1591
1682
|
}
|
|
1592
|
-
const
|
|
1593
|
-
|
|
1683
|
+
const _0x5140e4 = _0x4ed7ef[_0x2da61b(0x151)] == null ? _0x2da61b(_0x153fd0._0x315d2b) : '#' + _0x4ed7ef['taskNumber'], _0xde6e69 = [
|
|
1684
|
+
_0x2da61b(_0x153fd0._0x1ac814) + _0x5890ca + _0x2da61b(0x1e9) + _0x4ed7ef['messageId'][_0x2da61b(0x1f7)](0x0, 0x8) + '\x20time=' + new Date()[_0x2da61b(_0x153fd0._0x117d07)]() + _0x2da61b(0x156) + _0x5140e4 + _0x2da61b(_0x153fd0._0x6fcf6e),
|
|
1594
1685
|
'',
|
|
1595
|
-
|
|
1686
|
+
_0x174c05 ? _0x2da61b(_0x153fd0._0x56aab8) + _0x174c05[_0x2da61b(0x1ae)] : 'Root\x20task\x20message\x20id:\x20' + _0x4ed7ef[_0x2da61b(0x1dc)],
|
|
1596
1687
|
'',
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
][
|
|
1600
|
-
'method':
|
|
1601
|
-
'headers': { 'Content-Type':
|
|
1602
|
-
'body': JSON[
|
|
1603
|
-
'agent_id':
|
|
1604
|
-
'thread_target':
|
|
1688
|
+
_0x2da61b(_0x153fd0._0x521731) + _0x5890ca,
|
|
1689
|
+
_0x2da61b(_0x153fd0._0x5c746a)
|
|
1690
|
+
]['join']('\x0a'), _0x29ad0e = await fetch(_0x37d6f2[_0x2da61b(0x2b7)] + _0x2da61b(0x19e), {
|
|
1691
|
+
'method': _0x2da61b(0x1de),
|
|
1692
|
+
'headers': { 'Content-Type': _0x2da61b(0x2a6) },
|
|
1693
|
+
'body': JSON[_0x2da61b(0x1b2)]({
|
|
1694
|
+
'agent_id': _0x37d6f2[_0x2da61b(0x1c0)],
|
|
1695
|
+
'thread_target': _0x5890ca,
|
|
1605
1696
|
'spawn_packet': {
|
|
1606
|
-
'replyTarget':
|
|
1607
|
-
...
|
|
1697
|
+
'replyTarget': _0x5890ca,
|
|
1698
|
+
..._0x4ed7ef[_0x2da61b(_0x153fd0._0x161cc2)] ? { 'taskId': _0x4ed7ef[_0x2da61b(_0x153fd0._0x5c0f94)] } : _0x4ed7ef[_0x2da61b(_0x153fd0._0x51ca14)] != null ? { 'taskId': 'task-' + _0x4ed7ef['taskNumber'] } : {}
|
|
1608
1699
|
},
|
|
1609
1700
|
'payload': {
|
|
1610
|
-
'mode':
|
|
1611
|
-
'text':
|
|
1701
|
+
'mode': _0x2da61b(0x279),
|
|
1702
|
+
'text': _0xde6e69
|
|
1612
1703
|
}
|
|
1613
1704
|
})
|
|
1614
|
-
}),
|
|
1615
|
-
if (!
|
|
1616
|
-
throw new Error(
|
|
1705
|
+
}), _0x424ee8 = await _0x29ad0e[_0x2da61b(_0x153fd0._0x17b834)]();
|
|
1706
|
+
if (!_0x424ee8['ok'])
|
|
1707
|
+
throw new Error(_0x424ee8[_0x2da61b(0x297)] ?? _0x2da61b(_0x153fd0._0x2d3dbc));
|
|
1617
1708
|
return {
|
|
1618
1709
|
'stopMain': !![],
|
|
1619
|
-
'threadTarget':
|
|
1620
|
-
'workerDisposition':
|
|
1710
|
+
'threadTarget': _0x5890ca,
|
|
1711
|
+
'workerDisposition': _0x424ee8[_0x2da61b(0x20d)] === _0x2da61b(_0x153fd0._0x3ea8b1) ? _0x2da61b(0x265) : 'started',
|
|
1621
1712
|
'workerHandoff': !![],
|
|
1622
|
-
'workerSessionId':
|
|
1623
|
-
'executionMode':
|
|
1713
|
+
'workerSessionId': _0x424ee8[_0x2da61b(_0x153fd0._0x319bc0)] ?? '',
|
|
1714
|
+
'executionMode': _0x2da61b(_0x153fd0._0x47a7e2)
|
|
1624
1715
|
};
|
|
1625
1716
|
}
|
|
1626
|
-
async function
|
|
1627
|
-
const
|
|
1628
|
-
if (!
|
|
1717
|
+
async function _0xa792df() {
|
|
1718
|
+
const _0x433274 = _0x3051;
|
|
1719
|
+
if (!_0x37d6f2[_0x433274(_0x309ae9._0x1b474f)] || !_0x37d6f2[_0x433274(0x1c0)] || _0x37d6f2[_0x433274(0x15d)])
|
|
1629
1720
|
return null;
|
|
1630
1721
|
try {
|
|
1631
|
-
const
|
|
1632
|
-
if (!
|
|
1722
|
+
const _0x3750c1 = await fetch(_0x37d6f2[_0x433274(_0x309ae9._0x1b474f)] + _0x433274(_0x309ae9._0x538aa5) + encodeURIComponent(_0x37d6f2[_0x433274(_0x309ae9._0x31ef57)])), _0x1ee013 = await _0x3750c1[_0x433274(0x15b)]();
|
|
1723
|
+
if (!_0x1ee013['ok'])
|
|
1633
1724
|
return null;
|
|
1634
|
-
const
|
|
1635
|
-
for (const
|
|
1636
|
-
|
|
1725
|
+
const _0x559e91 = new Set();
|
|
1726
|
+
for (const _0x472b75 of _0x1ee013[_0x433274(_0x309ae9._0x782459)]) {
|
|
1727
|
+
_0x472b75[_0x433274(0x1fa)] !== _0x433274(0x16a) && _0x472b75[_0x433274(0x2bc)] && _0x559e91['add'](_0x472b75[_0x433274(0x2bc)]);
|
|
1637
1728
|
}
|
|
1638
|
-
return
|
|
1729
|
+
return _0x559e91[_0x433274(_0x309ae9._0x9845ab)] > 0x0 ? _0x559e91 : null;
|
|
1639
1730
|
} catch {
|
|
1640
1731
|
return null;
|
|
1641
1732
|
}
|
|
1642
1733
|
}
|
|
1643
1734
|
return {
|
|
1644
|
-
async 'send_message'(
|
|
1645
|
-
const
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1735
|
+
async 'send_message'(_0x369b57) {
|
|
1736
|
+
const _0x47879a = _0x3051;
|
|
1737
|
+
if (!_0x37d6f2[_0x47879a(0x15d)] && _0x37d6f2[_0x47879a(_0x12674c._0x36601e)] && _0x37d6f2[_0x47879a(0x2b7)] && _0x37d6f2[_0x47879a(0x1c0)]) {
|
|
1738
|
+
const _0x4854ee = await _0x37d6f2[_0x47879a(0x184)][_0x47879a(0x220)](_0x369b57['target']);
|
|
1739
|
+
if (_0x4854ee[_0x47879a(0x1c4)] && _0x4854ee[_0x47879a(0x13b)]) {
|
|
1740
|
+
const _0x16e727 = _0x4854ee[_0x47879a(0x1c4)][_0x47879a(_0x12674c._0x81156c)] != null ? '#' + _0x4854ee[_0x47879a(_0x12674c._0x389435)][_0x47879a(0x151)] : _0x47879a(_0x12674c._0x47b9c4), _0x1f7de3 = _0x4854ee['threadNumber'] != null ? _0x4854ee[_0x47879a(_0x12674c._0x2bbfbe)] + ':t' + _0x4854ee[_0x47879a(0x20c)] : _0x4854ee[_0x47879a(_0x12674c._0x536ee4)] + ':' + _0x4854ee[_0x47879a(0x13b)][_0x47879a(0x1f7)](0x0, 0x8), _0x2d771e = [
|
|
1741
|
+
_0x47879a(_0x12674c._0x521367) + _0x1f7de3 + _0x47879a(_0x12674c._0x534dce) + new Date()[_0x47879a(_0x12674c._0x2ea647)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1742
|
+
'',
|
|
1743
|
+
_0x47879a(_0x12674c._0x3d0c82) + _0x369b57[_0x47879a(0x1ae)],
|
|
1744
|
+
_0x47879a(_0x12674c._0x4cb861) + _0x16e727 + '\x20(' + _0x4854ee['task'][_0x47879a(0x1ea)] + ')',
|
|
1745
|
+
'Thread\x20target:\x20' + _0x1f7de3,
|
|
1746
|
+
_0x47879a(_0x12674c._0x531ad8)
|
|
1747
|
+
][_0x47879a(0x212)]('\x0a'), _0x3a2fac = await fetch(_0x37d6f2[_0x47879a(_0x12674c._0x4af27e)] + _0x47879a(0x19e), {
|
|
1748
|
+
'method': _0x47879a(_0x12674c._0x370bc0),
|
|
1749
|
+
'headers': { 'Content-Type': _0x47879a(_0x12674c._0x434cd1) },
|
|
1750
|
+
'body': JSON[_0x47879a(_0x12674c._0x4c72d8)]({
|
|
1751
|
+
'agent_id': _0x37d6f2[_0x47879a(_0x12674c._0x53a014)],
|
|
1752
|
+
'thread_target': _0x1f7de3,
|
|
1753
|
+
'spawn_packet': {
|
|
1754
|
+
'replyTarget': _0x1f7de3,
|
|
1755
|
+
'taskId': _0x4854ee[_0x47879a(0x1c4)]['taskId']
|
|
1756
|
+
},
|
|
1757
|
+
'payload': {
|
|
1758
|
+
'mode': 'user',
|
|
1759
|
+
'text': _0x2d771e
|
|
1760
|
+
}
|
|
1761
|
+
})
|
|
1762
|
+
}), _0x2e8a10 = await _0x3a2fac[_0x47879a(0x15b)]();
|
|
1763
|
+
if (!_0x2e8a10['ok'])
|
|
1764
|
+
throw new Error(_0x2e8a10['error'] ?? _0x47879a(0x27d));
|
|
1765
|
+
return [
|
|
1766
|
+
_0x47879a(_0x12674c._0x31ec21) + _0x16e727 + _0x47879a(0x153) + _0x1f7de3 + '.',
|
|
1767
|
+
_0x47879a(0x1b8),
|
|
1768
|
+
_0x47879a(0x263) + (_0x2e8a10[_0x47879a(0x20d)] === _0x47879a(_0x12674c._0x3c966a) ? 'queued' : _0x47879a(_0x12674c._0x5ca247)) + '.',
|
|
1769
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1770
|
+
]['join']('\x20');
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
const _0x3869f9 = await _0x37d6f2[_0x47879a(_0x12674c._0x46f9cf)][_0x47879a(0x22c)]({
|
|
1774
|
+
'attachmentIds': _0x369b57[_0x47879a(0x200)],
|
|
1775
|
+
'content': _0x369b57[_0x47879a(0x1ae)],
|
|
1776
|
+
'target': _0x369b57['target'],
|
|
1777
|
+
'visibility': _0x369b57[_0x47879a(_0x12674c._0x162ed2)]
|
|
1778
|
+
});
|
|
1779
|
+
return _0x47879a(_0x12674c._0x254ec2) + _0x369b57[_0x47879a(_0x12674c._0x1b3a93)] + _0x47879a(0x1ac) + _0x3869f9[_0x47879a(_0x12674c._0x2cff63)];
|
|
1651
1780
|
},
|
|
1652
1781
|
async 'check_messages'() {
|
|
1653
|
-
const
|
|
1654
|
-
if (!
|
|
1655
|
-
const
|
|
1656
|
-
if (
|
|
1657
|
-
return formatCheckMessages(
|
|
1782
|
+
const _0x2d1f09 = _0x3051, _0x53201e = await _0x37d6f2[_0x2d1f09(_0x3adf96._0x151462)][_0x2d1f09(0x1d1)]();
|
|
1783
|
+
if (!_0x37d6f2[_0x2d1f09(_0x3adf96._0x17cbd2)]) {
|
|
1784
|
+
const _0x3bcee6 = await _0xa792df();
|
|
1785
|
+
if (_0x3bcee6)
|
|
1786
|
+
return formatCheckMessages(_0x53201e[_0x2d1f09(0x16f)][_0x2d1f09(0x159)](_0x514233 => !_0x3bcee6['has'](_0x514233[_0x2d1f09(0x1bc)])));
|
|
1658
1787
|
}
|
|
1659
|
-
return formatCheckMessages(
|
|
1788
|
+
return formatCheckMessages(_0x53201e[_0x2d1f09(0x16f)]);
|
|
1660
1789
|
},
|
|
1661
|
-
async 'read_history'(
|
|
1662
|
-
const
|
|
1663
|
-
return formatHistory(
|
|
1790
|
+
async 'read_history'(_0xc176f2) {
|
|
1791
|
+
const _0x1561a7 = _0x3051, _0x302a3f = await _0x37d6f2['client'][_0x1561a7(0x1ce)](_0xc176f2);
|
|
1792
|
+
return formatHistory(_0x302a3f);
|
|
1664
1793
|
},
|
|
1665
1794
|
async 'list_server'() {
|
|
1666
|
-
const
|
|
1667
|
-
return formatServerDirectory(
|
|
1795
|
+
const _0x181466 = _0x3051, _0x397095 = await _0x37d6f2['client'][_0x181466(0x2bf)]();
|
|
1796
|
+
return formatServerDirectory(_0x397095);
|
|
1668
1797
|
},
|
|
1669
|
-
async 'list_tasks'(
|
|
1670
|
-
const
|
|
1671
|
-
let
|
|
1672
|
-
if (
|
|
1798
|
+
async 'list_tasks'(_0x18d85d) {
|
|
1799
|
+
const _0x47c275 = _0x3051, _0x3dba54 = await _0x37d6f2['client'][_0x47c275(0x209)](_0x18d85d);
|
|
1800
|
+
let _0xbcd093;
|
|
1801
|
+
if (_0x37d6f2[_0x47c275(0x2b7)] && _0x37d6f2['agentId'])
|
|
1673
1802
|
try {
|
|
1674
|
-
const
|
|
1675
|
-
if (
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1678
|
-
for (const
|
|
1679
|
-
if (
|
|
1803
|
+
const _0x4919ab = await fetch(_0x37d6f2[_0x47c275(0x2b7)] + '/workers/list?agent_id=' + encodeURIComponent(_0x37d6f2[_0x47c275(0x1c0)])), _0x5a939e = await _0x4919ab[_0x47c275(0x15b)]();
|
|
1804
|
+
if (_0x5a939e['ok']) {
|
|
1805
|
+
const _0x272412 = _0x18d85d[_0x47c275(0x162)] + ':';
|
|
1806
|
+
_0xbcd093 = new Set();
|
|
1807
|
+
for (const _0x102073 of _0x5a939e['workers']) {
|
|
1808
|
+
if (_0x102073[_0x47c275(_0x1c9c41._0x258e63)] === _0x47c275(0x16a))
|
|
1680
1809
|
continue;
|
|
1681
|
-
if (
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1684
|
-
|
|
1810
|
+
if (_0x102073['thread_target']?.[_0x47c275(_0x1c9c41._0x1a4f45)](_0x272412)) {
|
|
1811
|
+
const _0x302ea2 = _0x102073[_0x47c275(_0x1c9c41._0x4aeb04)][_0x47c275(0x1f7)](_0x272412[_0x47c275(_0x1c9c41._0x2795aa)]), _0x345a6a = _0x3dba54[_0x47c275(0x1eb)][_0x47c275(_0x1c9c41._0xc3972d)](_0x45ff83 => _0x45ff83['messageId']?.['startsWith'](_0x302ea2) === !![]);
|
|
1812
|
+
if (_0x345a6a?.[_0x47c275(0x151)] != null) {
|
|
1813
|
+
_0xbcd093['add'](_0x345a6a[_0x47c275(_0x1c9c41._0x3f2e86)]);
|
|
1685
1814
|
continue;
|
|
1686
1815
|
}
|
|
1687
1816
|
}
|
|
1688
|
-
if (
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1817
|
+
if (_0x102073[_0x47c275(_0x1c9c41._0x3c7b43)]) {
|
|
1818
|
+
const _0x8cd445 = _0x3dba54[_0x47c275(_0x1c9c41._0x188262)]['find'](_0x5279cc => _0x5279cc[_0x47c275(0x1ea)] === _0x102073[_0x47c275(0x1b7)]);
|
|
1819
|
+
_0x8cd445?.[_0x47c275(_0x1c9c41._0x3f2e86)] != null && _0xbcd093[_0x47c275(0x292)](_0x8cd445[_0x47c275(_0x1c9c41._0x34dc69)]);
|
|
1691
1820
|
}
|
|
1692
1821
|
}
|
|
1693
1822
|
}
|
|
1694
1823
|
} catch {
|
|
1695
1824
|
}
|
|
1696
|
-
return formatTaskList(
|
|
1825
|
+
return formatTaskList(_0x3dba54[_0x47c275(0x1eb)], _0xbcd093);
|
|
1697
1826
|
},
|
|
1698
|
-
async 'create_tasks'(
|
|
1699
|
-
const
|
|
1700
|
-
return formatCreatedTasks(
|
|
1827
|
+
async 'create_tasks'(_0x580592) {
|
|
1828
|
+
const _0x467168 = _0x3051, _0x2a81fa = await _0x37d6f2[_0x467168(0x184)]['createTasks'](_0x580592);
|
|
1829
|
+
return formatCreatedTasks(_0x2a81fa['tasks']);
|
|
1701
1830
|
},
|
|
1702
|
-
async 'claim_tasks'(
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
_0x85eb89: 0x22e
|
|
1708
|
-
}, _0x3f661c = _0xaeca, _0x181777 = await _0x38edde['client'][_0x3f661c(0x257)](_0x1b8164), _0x433dc2 = await Promise['all'](_0x181777['results'][_0x3f661c(0x243)](async _0x215fb8 => {
|
|
1709
|
-
const _0x292835 = _0x3f661c;
|
|
1710
|
-
if (!_0x215fb8[_0x292835(_0x55f9d2._0x385c2f)] || !_0x215fb8[_0x292835(0x160)])
|
|
1711
|
-
return _0x215fb8;
|
|
1831
|
+
async 'claim_tasks'(_0x2de11b) {
|
|
1832
|
+
const _0xf97b3a = _0x3051, _0x59636e = await _0x37d6f2[_0xf97b3a(0x184)][_0xf97b3a(_0x45dc99._0xa4281d)](_0x2de11b), _0xe9fce4 = await Promise[_0xf97b3a(_0x45dc99._0x142655)](_0x59636e[_0xf97b3a(0x29e)]['map'](async _0x2a2826 => {
|
|
1833
|
+
const _0xfc0f59 = _0xf97b3a;
|
|
1834
|
+
if (!_0x2a2826[_0xfc0f59(_0x584cb0._0x36dd5f)] || !_0x2a2826['messageId'])
|
|
1835
|
+
return _0x2a2826;
|
|
1712
1836
|
try {
|
|
1713
|
-
const
|
|
1714
|
-
'channel':
|
|
1715
|
-
'messageId':
|
|
1716
|
-
'taskId':
|
|
1717
|
-
'taskNumber':
|
|
1718
|
-
'threadNumber':
|
|
1837
|
+
const _0x50f602 = await _0xbff49c({
|
|
1838
|
+
'channel': _0x2de11b[_0xfc0f59(0x162)],
|
|
1839
|
+
'messageId': _0x2a2826[_0xfc0f59(_0x584cb0._0x5ee71b)],
|
|
1840
|
+
'taskId': _0x2a2826[_0xfc0f59(_0x584cb0._0x320686)],
|
|
1841
|
+
'taskNumber': _0x2a2826[_0xfc0f59(_0x584cb0._0x4af2d8)],
|
|
1842
|
+
'threadNumber': _0x2a2826[_0xfc0f59(_0x584cb0._0x20353f)]
|
|
1719
1843
|
});
|
|
1720
|
-
return
|
|
1721
|
-
...
|
|
1722
|
-
...
|
|
1723
|
-
} :
|
|
1724
|
-
} catch (
|
|
1844
|
+
return _0x50f602 ? {
|
|
1845
|
+
..._0x2a2826,
|
|
1846
|
+
..._0x50f602
|
|
1847
|
+
} : _0x2a2826;
|
|
1848
|
+
} catch (_0x6a0ce6) {
|
|
1725
1849
|
return {
|
|
1726
|
-
...
|
|
1727
|
-
'workerHandoffError':
|
|
1850
|
+
..._0x2a2826,
|
|
1851
|
+
'workerHandoffError': _0x6a0ce6 instanceof Error ? _0x6a0ce6['message'] : 'worker\x20handoff\x20failed'
|
|
1728
1852
|
};
|
|
1729
1853
|
}
|
|
1730
1854
|
}));
|
|
1731
|
-
return formatClaimTaskResults(
|
|
1855
|
+
return formatClaimTaskResults(_0xe9fce4);
|
|
1732
1856
|
},
|
|
1733
|
-
async 'unclaim_task'(
|
|
1734
|
-
const
|
|
1735
|
-
return formatUnclaimTaskResult(
|
|
1857
|
+
async 'unclaim_task'(_0x3a6d35) {
|
|
1858
|
+
const _0x2b6f03 = _0x3051, _0x1d26d4 = await _0x37d6f2[_0x2b6f03(_0x27b61c._0x1c3ac3)]['unclaimTask'](_0x3a6d35);
|
|
1859
|
+
return formatUnclaimTaskResult(_0x1d26d4);
|
|
1736
1860
|
},
|
|
1737
|
-
async 'update_task_status'(
|
|
1738
|
-
const
|
|
1739
|
-
return formatUpdateTaskStatusResult(
|
|
1861
|
+
async 'update_task_status'(_0x2dbfb7) {
|
|
1862
|
+
const _0x1bff18 = _0x3051, _0x24b385 = await _0x37d6f2[_0x1bff18(0x184)][_0x1bff18(_0x5cc5a8._0x3a547e)](_0x2dbfb7);
|
|
1863
|
+
return formatUpdateTaskStatusResult(_0x24b385);
|
|
1740
1864
|
},
|
|
1741
|
-
async 'upload_file'(
|
|
1742
|
-
const
|
|
1743
|
-
sizeBytes:
|
|
1744
|
-
...
|
|
1745
|
-
} =
|
|
1746
|
-
'channel':
|
|
1747
|
-
...
|
|
1865
|
+
async 'upload_file'(_0x46f9bb) {
|
|
1866
|
+
const _0x4ce49a = _0x3051, _0x233551 = await _0x37d6f2[_0x4ce49a(0x1f2)](_0x46f9bb[_0x4ce49a(_0x18b7ee._0x4d9937)]), {
|
|
1867
|
+
sizeBytes: _0x22b56b,
|
|
1868
|
+
..._0xe90e8a
|
|
1869
|
+
} = _0x233551, _0x54a7f5 = await _0x37d6f2[_0x4ce49a(0x184)][_0x4ce49a(0x1b4)]({
|
|
1870
|
+
'channel': _0x46f9bb[_0x4ce49a(_0x18b7ee._0x49edf2)],
|
|
1871
|
+
..._0xe90e8a
|
|
1748
1872
|
});
|
|
1749
|
-
return formatUploadResult(
|
|
1873
|
+
return formatUploadResult(_0x54a7f5);
|
|
1750
1874
|
},
|
|
1751
|
-
async 'view_file'(
|
|
1752
|
-
const
|
|
1753
|
-
if (
|
|
1754
|
-
return formatViewFileResult(
|
|
1755
|
-
const
|
|
1756
|
-
'attachmentId':
|
|
1757
|
-
'contentType':
|
|
1758
|
-
'data':
|
|
1759
|
-
'originalFilename':
|
|
1875
|
+
async 'view_file'(_0x21ea7e) {
|
|
1876
|
+
const _0x2e4498 = _0x3051, _0x2ef8ad = await _0x37d6f2[_0x2e4498(_0x12600f._0x3b4202)][_0x2e4498(0x1e1)](_0x21ea7e[_0x2e4498(_0x12600f._0x2b8f6d)]);
|
|
1877
|
+
if (_0x2ef8ad)
|
|
1878
|
+
return formatViewFileResult(_0x2ef8ad, !![]);
|
|
1879
|
+
const _0x2f21bd = await _0x37d6f2[_0x2e4498(0x184)][_0x2e4498(0x2b2)](_0x21ea7e[_0x2e4498(_0x12600f._0x2b8f6d)]), _0x4465aa = await _0x37d6f2[_0x2e4498(0x194)][_0x2e4498(_0x12600f._0x48bcc8)]({
|
|
1880
|
+
'attachmentId': _0x21ea7e[_0x2e4498(0x144)],
|
|
1881
|
+
'contentType': _0x2f21bd[_0x2e4498(_0x12600f._0x162854)],
|
|
1882
|
+
'data': _0x2f21bd[_0x2e4498(0x218)],
|
|
1883
|
+
'originalFilename': _0x2f21bd[_0x2e4498(0x18c)]
|
|
1760
1884
|
});
|
|
1761
|
-
return formatViewFileResult(
|
|
1762
|
-
},
|
|
1763
|
-
async 'spawn_worker'(_0x518a2c) {
|
|
1764
|
-
const _0x52b095 = _0xaeca;
|
|
1765
|
-
if (!_0x38edde['daemonLocalUrl'] || !_0x38edde[_0x52b095(_0x445bf1._0x5b5547)])
|
|
1766
|
-
return _0x52b095(_0x445bf1._0x3d263e);
|
|
1767
|
-
const _0x20f765 = await fetch(_0x38edde[_0x52b095(_0x445bf1._0x466ff2)] + _0x52b095(_0x445bf1._0x5bd23f), {
|
|
1768
|
-
'method': _0x52b095(0x2a0),
|
|
1769
|
-
'headers': { 'Content-Type': _0x52b095(0x260) },
|
|
1770
|
-
'body': JSON[_0x52b095(_0x445bf1._0xdafd1a)]({
|
|
1771
|
-
'agent_id': _0x38edde[_0x52b095(_0x445bf1._0x5b5547)],
|
|
1772
|
-
'work_key': _0x518a2c[_0x52b095(_0x445bf1._0x1f3e2e)],
|
|
1773
|
-
'thread_target': _0x518a2c[_0x52b095(0x24f)],
|
|
1774
|
-
'spawn_packet': {
|
|
1775
|
-
'replyTarget': _0x518a2c[_0x52b095(0x17a)],
|
|
1776
|
-
'taskId': _0x518a2c[_0x52b095(0x15f)]
|
|
1777
|
-
}
|
|
1778
|
-
})
|
|
1779
|
-
}), _0x226383 = await _0x20f765['json']();
|
|
1780
|
-
if (!_0x226383['ok'])
|
|
1781
|
-
throw new Error(_0x226383[_0x52b095(0x263)] ?? 'spawn_worker\x20failed');
|
|
1782
|
-
const _0x503974 = _0x226383[_0x52b095(0x1c6)] === _0x52b095(0x2a8) ? _0x52b095(0x2a8) : _0x52b095(_0x445bf1._0x1858b4);
|
|
1783
|
-
return _0x52b095(0x241) + _0x503974 + _0x52b095(0x218) + _0x226383[_0x52b095(0x232)] + ',\x20work_key:\x20' + _0x518a2c[_0x52b095(0x25b)];
|
|
1885
|
+
return formatViewFileResult(_0x4465aa, ![]);
|
|
1784
1886
|
},
|
|
1785
|
-
async 'get_worker_status'(
|
|
1786
|
-
const
|
|
1787
|
-
if (!
|
|
1788
|
-
return
|
|
1789
|
-
const
|
|
1790
|
-
if (!
|
|
1791
|
-
return
|
|
1792
|
-
return
|
|
1887
|
+
async 'get_worker_status'(_0x4b0570) {
|
|
1888
|
+
const _0x476f83 = _0x3051;
|
|
1889
|
+
if (!_0x37d6f2['daemonLocalUrl'])
|
|
1890
|
+
return _0x476f83(0x230);
|
|
1891
|
+
const _0x20c502 = await fetch(_0x37d6f2[_0x476f83(_0x2829d1._0x26a4c9)] + _0x476f83(0x17e) + encodeURIComponent(_0x4b0570['work_key'])), _0x5892a5 = await _0x20c502[_0x476f83(0x15b)]();
|
|
1892
|
+
if (!_0x5892a5['ok'])
|
|
1893
|
+
return _0x476f83(0x1fc) + _0x4b0570[_0x476f83(0x147)] + '\x22\x20not\x20found';
|
|
1894
|
+
return _0x476f83(_0x2829d1._0x572f5a) + _0x4b0570[_0x476f83(_0x2829d1._0xb20de7)] + '\x22:\x20status=' + _0x5892a5[_0x476f83(_0x2829d1._0x3a6eb5)];
|
|
1793
1895
|
},
|
|
1794
|
-
async 'get_worker_result'(
|
|
1795
|
-
const
|
|
1796
|
-
if (!
|
|
1797
|
-
return
|
|
1798
|
-
const
|
|
1799
|
-
if (!
|
|
1800
|
-
return
|
|
1801
|
-
return JSON[
|
|
1896
|
+
async 'get_worker_result'(_0x46bf88) {
|
|
1897
|
+
const _0x5d5967 = _0x3051;
|
|
1898
|
+
if (!_0x37d6f2['daemonLocalUrl'])
|
|
1899
|
+
return _0x5d5967(_0x3da2ee._0x4ae159);
|
|
1900
|
+
const _0x58ad85 = await fetch(_0x37d6f2[_0x5d5967(0x2b7)] + _0x5d5967(_0x3da2ee._0x159988) + encodeURIComponent(_0x46bf88[_0x5d5967(0x147)])), _0x66f137 = await _0x58ad85['json']();
|
|
1901
|
+
if (!_0x66f137[_0x5d5967(_0x3da2ee._0x4a177e)])
|
|
1902
|
+
return _0x5d5967(_0x3da2ee._0xc40578) + _0x46bf88[_0x5d5967(_0x3da2ee._0x1e08fa)] + '\x22';
|
|
1903
|
+
return JSON[_0x5d5967(0x1b2)](_0x66f137['resume_packet'], null, 0x2);
|
|
1802
1904
|
},
|
|
1803
|
-
async 'finish_worker'(
|
|
1804
|
-
const
|
|
1805
|
-
if (!
|
|
1806
|
-
return
|
|
1807
|
-
const
|
|
1808
|
-
'method':
|
|
1905
|
+
async 'finish_worker'(_0x5cab6c) {
|
|
1906
|
+
const _0x1efe46 = _0x3051;
|
|
1907
|
+
if (!_0x37d6f2['daemonLocalUrl'])
|
|
1908
|
+
return _0x1efe46(0x230);
|
|
1909
|
+
const _0x536840 = await fetch(_0x37d6f2[_0x1efe46(0x2b7)] + _0x1efe46(0x286), {
|
|
1910
|
+
'method': _0x1efe46(0x1de),
|
|
1809
1911
|
'headers': { 'Content-Type': 'application/json' },
|
|
1810
|
-
'body': JSON[
|
|
1811
|
-
'work_key':
|
|
1912
|
+
'body': JSON['stringify']({
|
|
1913
|
+
'work_key': _0x5cab6c[_0x1efe46(0x147)],
|
|
1812
1914
|
'resume_packet': {
|
|
1813
1915
|
'objective': '',
|
|
1814
|
-
'result':
|
|
1815
|
-
'summary':
|
|
1816
|
-
'decisions':
|
|
1817
|
-
'filesChanged':
|
|
1818
|
-
'openIssues':
|
|
1819
|
-
'nextSteps':
|
|
1916
|
+
'result': _0x5cab6c[_0x1efe46(0x182)],
|
|
1917
|
+
'summary': _0x5cab6c['summary'],
|
|
1918
|
+
'decisions': _0x5cab6c[_0x1efe46(0x187)] ?? [],
|
|
1919
|
+
'filesChanged': _0x5cab6c[_0x1efe46(0x284)] ?? [],
|
|
1920
|
+
'openIssues': _0x5cab6c['open_issues'] ?? [],
|
|
1921
|
+
'nextSteps': _0x5cab6c[_0x1efe46(_0xded1e4._0x22c724)] ?? []
|
|
1820
1922
|
}
|
|
1821
1923
|
})
|
|
1822
|
-
}),
|
|
1823
|
-
if (!
|
|
1824
|
-
throw new Error(
|
|
1825
|
-
return
|
|
1924
|
+
}), _0x2395b8 = await _0x536840[_0x1efe46(_0xded1e4._0x667213)]();
|
|
1925
|
+
if (!_0x2395b8['ok'])
|
|
1926
|
+
throw new Error(_0x2395b8[_0x1efe46(0x297)] ?? _0x1efe46(0x167));
|
|
1927
|
+
return _0x1efe46(_0xded1e4._0x174bee) + _0x5cab6c[_0x1efe46(_0xded1e4._0x4f1bf7)] + '\x22\x20finished\x20with\x20result:\x20' + _0x5cab6c[_0x1efe46(_0xded1e4._0x391c31)];
|
|
1826
1928
|
},
|
|
1827
|
-
async 'mark_waiting_input'(
|
|
1828
|
-
const
|
|
1829
|
-
if (!
|
|
1830
|
-
return
|
|
1831
|
-
const
|
|
1832
|
-
'method':
|
|
1833
|
-
'headers': { 'Content-Type':
|
|
1834
|
-
'body': JSON[
|
|
1835
|
-
'work_key':
|
|
1836
|
-
'agent_id':
|
|
1929
|
+
async 'mark_waiting_input'(_0x207e3c) {
|
|
1930
|
+
const _0x31c14d = _0x3051;
|
|
1931
|
+
if (!_0x37d6f2[_0x31c14d(_0x3856fe._0x1c1deb)] || !_0x37d6f2['agentId'])
|
|
1932
|
+
return _0x31c14d(_0x3856fe._0x5182f6);
|
|
1933
|
+
const _0x52c7b8 = await fetch(_0x37d6f2['daemonLocalUrl'] + _0x31c14d(_0x3856fe._0x545646), {
|
|
1934
|
+
'method': _0x31c14d(0x1de),
|
|
1935
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1936
|
+
'body': JSON[_0x31c14d(_0x3856fe._0x7afed8)]({
|
|
1937
|
+
'work_key': _0x207e3c[_0x31c14d(0x147)],
|
|
1938
|
+
'agent_id': _0x37d6f2[_0x31c14d(0x1c0)]
|
|
1837
1939
|
})
|
|
1838
|
-
}),
|
|
1839
|
-
if (!
|
|
1840
|
-
throw new Error(
|
|
1841
|
-
return
|
|
1940
|
+
}), _0x5303b9 = await _0x52c7b8[_0x31c14d(_0x3856fe._0x32ed7b)]();
|
|
1941
|
+
if (!_0x5303b9['ok'])
|
|
1942
|
+
throw new Error(_0x5303b9[_0x31c14d(_0x3856fe._0x4b08a8)] ?? _0x31c14d(_0x3856fe._0x1da9fd));
|
|
1943
|
+
return _0x31c14d(0x1fc) + _0x207e3c['work_key'] + _0x31c14d(_0x3856fe._0xf8e796);
|
|
1842
1944
|
},
|
|
1843
|
-
async 'escalate_to_main'(
|
|
1844
|
-
const
|
|
1845
|
-
if (!
|
|
1846
|
-
return
|
|
1847
|
-
const
|
|
1848
|
-
'method':
|
|
1849
|
-
'headers': { 'Content-Type':
|
|
1850
|
-
'body': JSON[
|
|
1851
|
-
'work_key':
|
|
1852
|
-
'reason':
|
|
1945
|
+
async 'escalate_to_main'(_0x4bb7a3) {
|
|
1946
|
+
const _0x296a2a = _0x3051;
|
|
1947
|
+
if (!_0x37d6f2[_0x296a2a(_0x306e4b._0x404bc3)])
|
|
1948
|
+
return _0x296a2a(0x230);
|
|
1949
|
+
const _0x234389 = await fetch(_0x37d6f2[_0x296a2a(0x2b7)] + _0x296a2a(_0x306e4b._0x2cac29), {
|
|
1950
|
+
'method': _0x296a2a(_0x306e4b._0x252deb),
|
|
1951
|
+
'headers': { 'Content-Type': _0x296a2a(_0x306e4b._0x508e1e) },
|
|
1952
|
+
'body': JSON[_0x296a2a(_0x306e4b._0x511144)]({
|
|
1953
|
+
'work_key': _0x4bb7a3['work_key'],
|
|
1954
|
+
'reason': _0x4bb7a3[_0x296a2a(_0x306e4b._0x2936bc)]
|
|
1853
1955
|
})
|
|
1854
|
-
}),
|
|
1855
|
-
if (!
|
|
1856
|
-
throw new Error(
|
|
1857
|
-
return
|
|
1956
|
+
}), _0x57a9e5 = await _0x234389[_0x296a2a(0x15b)]();
|
|
1957
|
+
if (!_0x57a9e5['ok'])
|
|
1958
|
+
throw new Error(_0x57a9e5[_0x296a2a(0x297)] ?? _0x296a2a(0x25c));
|
|
1959
|
+
return _0x296a2a(0x197) + _0x4bb7a3[_0x296a2a(_0x306e4b._0x320bf8)];
|
|
1858
1960
|
}
|
|
1859
1961
|
};
|
|
1860
1962
|
}
|
|
1861
|
-
function textResult(
|
|
1862
|
-
const
|
|
1963
|
+
function textResult(_0x4d0181, _0x5d33e5 = ![]) {
|
|
1964
|
+
const _0x5c9e09 = { _0x2084ff: 0x174 }, _0x2b7bb6 = _0x50158a;
|
|
1863
1965
|
return {
|
|
1864
1966
|
'content': [{
|
|
1865
|
-
'type':
|
|
1866
|
-
'text':
|
|
1967
|
+
'type': _0x2b7bb6(_0x5c9e09._0x2084ff),
|
|
1968
|
+
'text': _0x4d0181
|
|
1867
1969
|
}],
|
|
1868
|
-
...
|
|
1970
|
+
..._0x5d33e5 ? { 'isError': !![] } : {}
|
|
1869
1971
|
};
|
|
1870
1972
|
}
|
|
1871
|
-
async function registerChatBridgeTools(
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
},
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
},
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
},
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
},
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1973
|
+
async function registerChatBridgeTools(_0x1d0690, _0x1f47a9, _0x589f7a) {
|
|
1974
|
+
const _0x37e8cd = {
|
|
1975
|
+
_0x4ccc6f: 0x272,
|
|
1976
|
+
_0x1b15ab: 0x19c,
|
|
1977
|
+
_0x5d2465: 0x266,
|
|
1978
|
+
_0x1af4e2: 0x22f,
|
|
1979
|
+
_0x59a506: 0x272,
|
|
1980
|
+
_0xa9713a: 0x247,
|
|
1981
|
+
_0x2a45d7: 0x2bb,
|
|
1982
|
+
_0x553c99: 0x272,
|
|
1983
|
+
_0x259bd4: 0x157,
|
|
1984
|
+
_0x724a4a: 0x1a1,
|
|
1985
|
+
_0xdd920e: 0x1d0,
|
|
1986
|
+
_0x4f9f32: 0x24d,
|
|
1987
|
+
_0x37b5eb: 0x1c1,
|
|
1988
|
+
_0x5d81b2: 0x27b,
|
|
1989
|
+
_0x1cf25a: 0x1b0,
|
|
1990
|
+
_0x1d30fe: 0x280,
|
|
1991
|
+
_0x546a9f: 0x1a4,
|
|
1992
|
+
_0x3c6e9a: 0x1af,
|
|
1993
|
+
_0x56c876: 0x26d,
|
|
1994
|
+
_0x5b90ad: 0x2bb,
|
|
1995
|
+
_0x340e57: 0x21f,
|
|
1996
|
+
_0x1e2a1e: 0x1b0,
|
|
1997
|
+
_0x2867e8: 0x157,
|
|
1998
|
+
_0xede8d4: 0x29d,
|
|
1999
|
+
_0x1d4e2d: 0x1b0,
|
|
2000
|
+
_0x3f372e: 0x1b0,
|
|
2001
|
+
_0x46d359: 0x2bb,
|
|
2002
|
+
_0x4271c5: 0x1d3,
|
|
2003
|
+
_0x133fd3: 0x219,
|
|
2004
|
+
_0x29fb52: 0x1b0,
|
|
2005
|
+
_0x7b6bbc: 0x201,
|
|
2006
|
+
_0x41e259: 0x1b0,
|
|
2007
|
+
_0x4e266f: 0x14f,
|
|
2008
|
+
_0x355449: 0x170,
|
|
2009
|
+
_0x31c2b2: 0x1b0,
|
|
2010
|
+
_0x4518a5: 0x157,
|
|
2011
|
+
_0x12fd84: 0x14e,
|
|
2012
|
+
_0x2e360b: 0x19d,
|
|
2013
|
+
_0x3efa7b: 0x1b0,
|
|
2014
|
+
_0x330bb0: 0x14a,
|
|
2015
|
+
_0x2e95c7: 0x1b0,
|
|
2016
|
+
_0x512bac: 0x14a,
|
|
2017
|
+
_0x27205a: 0x1b0,
|
|
2018
|
+
_0x22fd00: 0x272,
|
|
2019
|
+
_0x41a4ed: 0x14a,
|
|
2020
|
+
_0x2ea9bf: 0x1b0,
|
|
2021
|
+
_0x374e7a: 0x1a0,
|
|
2022
|
+
_0x359dd8: 0x24f,
|
|
2023
|
+
_0x931489: 0x1b0,
|
|
2024
|
+
_0x1ce72d: 0x15d,
|
|
2025
|
+
_0x52db7a: 0x157
|
|
2026
|
+
}, _0x28190b = {
|
|
2027
|
+
_0x97a755: 0x18e,
|
|
2028
|
+
_0x39d214: 0x293
|
|
2029
|
+
}, _0x3087dc = {
|
|
2030
|
+
_0x34e9b9: 0x1a0,
|
|
2031
|
+
_0x247945: 0x25c
|
|
2032
|
+
}, _0x2d8747 = { _0x320e75: 0x18e }, _0x4d409e = { _0x1fb959: 0x18e }, _0x1ab364 = { _0x2b4c62: 0x1ab }, _0x5a74e1 = {
|
|
2033
|
+
_0x1201ad: 0x18e,
|
|
2034
|
+
_0x3d1909: 0x224
|
|
2035
|
+
}, _0x1ea45f = { _0x1704d1: 0x244 }, _0x3d9a46 = { _0x18734f: 0x18f }, _0xa248f3 = {
|
|
2036
|
+
_0x4d8f6d: 0x18e,
|
|
2037
|
+
_0x312c22: 0x1e8
|
|
2038
|
+
}, _0x2fc63d = { _0x574af5: 0x189 }, _0xdf561d = { _0x47fbd7: 0x285 }, _0x24f8da = { _0x410f58: 0x18e }, _0x2cbf2c = {
|
|
2039
|
+
_0x1eae49: 0x18e,
|
|
2040
|
+
_0x34e624: 0x1fb
|
|
2041
|
+
}, _0x57704d = { _0x4fcf4c: 0x275 }, _0xe5e7ab = _0x50158a, {z: _0x1379e5} = await import(_0xe5e7ab(0x138));
|
|
2042
|
+
_0x1d0690[_0xe5e7ab(0x157)](_0xe5e7ab(0x275), _0xe5e7ab(0x1bb), {
|
|
2043
|
+
'target': _0x1379e5[_0xe5e7ab(0x1b0)](),
|
|
2044
|
+
'content': _0x1379e5['string'](),
|
|
2045
|
+
'attachment_ids': _0x1379e5[_0xe5e7ab(0x14a)](_0x1379e5[_0xe5e7ab(0x1b0)]())[_0xe5e7ab(_0x37e8cd._0x4ccc6f)](),
|
|
2046
|
+
'visibility': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x1b15ab)]([
|
|
2047
|
+
_0xe5e7ab(_0x37e8cd._0x5d2465),
|
|
2048
|
+
_0xe5e7ab(_0x37e8cd._0x1af4e2)
|
|
2049
|
+
])[_0xe5e7ab(_0x37e8cd._0x59a506)]()
|
|
2050
|
+
}, async _0x2ba64e => {
|
|
2051
|
+
const _0xf7ffa0 = _0xe5e7ab;
|
|
1943
2052
|
try {
|
|
1944
|
-
return textResult(await
|
|
1945
|
-
} catch (
|
|
1946
|
-
return textResult(
|
|
2053
|
+
return textResult(await _0x1f47a9[_0xf7ffa0(_0x57704d._0x4fcf4c)](_0x2ba64e));
|
|
2054
|
+
} catch (_0x34b8c4) {
|
|
2055
|
+
return textResult(_0x34b8c4 instanceof Error ? _0x34b8c4[_0xf7ffa0(0x18e)] : _0xf7ffa0(0x23e), !![]);
|
|
1947
2056
|
}
|
|
1948
|
-
}),
|
|
1949
|
-
const
|
|
2057
|
+
}), _0x1d0690['tool']('check_messages', _0xe5e7ab(0x169), {}, async () => {
|
|
2058
|
+
const _0x104cfd = _0xe5e7ab;
|
|
1950
2059
|
try {
|
|
1951
|
-
return textResult(await
|
|
1952
|
-
} catch (
|
|
1953
|
-
return textResult(
|
|
2060
|
+
return textResult(await _0x1f47a9[_0x104cfd(0x195)]());
|
|
2061
|
+
} catch (_0x13ec52) {
|
|
2062
|
+
return textResult(_0x13ec52 instanceof Error ? _0x13ec52[_0x104cfd(_0x2cbf2c._0x1eae49)] : _0x104cfd(_0x2cbf2c._0x34e624), !![]);
|
|
1954
2063
|
}
|
|
1955
|
-
}),
|
|
1956
|
-
'channel':
|
|
1957
|
-
'limit':
|
|
1958
|
-
'before':
|
|
1959
|
-
'after':
|
|
1960
|
-
}, async
|
|
1961
|
-
const
|
|
2064
|
+
}), _0x1d0690[_0xe5e7ab(0x157)](_0xe5e7ab(0x243), _0xe5e7ab(_0x37e8cd._0xa9713a), {
|
|
2065
|
+
'channel': _0x1379e5['string'](),
|
|
2066
|
+
'limit': _0x1379e5[_0xe5e7ab(0x2bb)]()[_0xe5e7ab(_0x37e8cd._0x59a506)](),
|
|
2067
|
+
'before': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x2a45d7)]()['optional'](),
|
|
2068
|
+
'after': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x2a45d7)]()[_0xe5e7ab(_0x37e8cd._0x553c99)]()
|
|
2069
|
+
}, async _0x268b79 => {
|
|
2070
|
+
const _0x2821f1 = _0xe5e7ab;
|
|
1962
2071
|
try {
|
|
1963
|
-
return textResult(await
|
|
1964
|
-
} catch (
|
|
1965
|
-
return textResult(
|
|
2072
|
+
return textResult(await _0x1f47a9['read_history'](_0x268b79));
|
|
2073
|
+
} catch (_0x523a23) {
|
|
2074
|
+
return textResult(_0x523a23 instanceof Error ? _0x523a23[_0x2821f1(_0x24f8da._0x410f58)] : _0x2821f1(0x1ec), !![]);
|
|
1966
2075
|
}
|
|
1967
|
-
}),
|
|
1968
|
-
const
|
|
2076
|
+
}), _0x1d0690[_0xe5e7ab(_0x37e8cd._0x259bd4)](_0xe5e7ab(_0x37e8cd._0x724a4a), _0xe5e7ab(_0x37e8cd._0xdd920e), {}, async () => {
|
|
2077
|
+
const _0x1699a0 = _0xe5e7ab;
|
|
1969
2078
|
try {
|
|
1970
|
-
return textResult(await
|
|
1971
|
-
} catch (
|
|
1972
|
-
return textResult(
|
|
2079
|
+
return textResult(await _0x1f47a9[_0x1699a0(0x1a1)]());
|
|
2080
|
+
} catch (_0x2443fa) {
|
|
2081
|
+
return textResult(_0x2443fa instanceof Error ? _0x2443fa[_0x1699a0(0x18e)] : _0x1699a0(_0xdf561d._0x47fbd7), !![]);
|
|
1973
2082
|
}
|
|
1974
|
-
}),
|
|
1975
|
-
'channel':
|
|
1976
|
-
'status':
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
])[
|
|
1982
|
-
}, async
|
|
1983
|
-
const
|
|
2083
|
+
}), _0x1d0690[_0xe5e7ab(0x157)](_0xe5e7ab(0x189), _0xe5e7ab(_0x37e8cd._0x4f9f32), {
|
|
2084
|
+
'channel': _0x1379e5['string'](),
|
|
2085
|
+
'status': _0x1379e5['enum']([
|
|
2086
|
+
_0xe5e7ab(0x1d3),
|
|
2087
|
+
_0xe5e7ab(0x245),
|
|
2088
|
+
_0xe5e7ab(0x24e),
|
|
2089
|
+
_0xe5e7ab(0x219)
|
|
2090
|
+
])['optional']()
|
|
2091
|
+
}, async _0x3d01ca => {
|
|
2092
|
+
const _0x193c56 = _0xe5e7ab;
|
|
1984
2093
|
try {
|
|
1985
|
-
return textResult(await
|
|
1986
|
-
} catch (
|
|
1987
|
-
return textResult(
|
|
2094
|
+
return textResult(await _0x1f47a9[_0x193c56(_0x2fc63d._0x574af5)](_0x3d01ca));
|
|
2095
|
+
} catch (_0x3f6944) {
|
|
2096
|
+
return textResult(_0x3f6944 instanceof Error ? _0x3f6944[_0x193c56(0x18e)] : 'list_tasks\x20failed', !![]);
|
|
1988
2097
|
}
|
|
1989
|
-
}),
|
|
1990
|
-
'channel':
|
|
1991
|
-
'idempotency_key':
|
|
1992
|
-
'tasks':
|
|
1993
|
-
'title':
|
|
1994
|
-
'description':
|
|
1995
|
-
'priority':
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
])[
|
|
2098
|
+
}), _0x1d0690['tool'](_0xe5e7ab(_0x37e8cd._0x37b5eb), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2099
|
+
'channel': _0x1379e5['string'](),
|
|
2100
|
+
'idempotency_key': _0x1379e5[_0xe5e7ab(0x1b0)]()[_0xe5e7ab(0x272)](),
|
|
2101
|
+
'tasks': _0x1379e5[_0xe5e7ab(0x14a)](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x5d81b2)]({
|
|
2102
|
+
'title': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x1cf25a)](),
|
|
2103
|
+
'description': _0x1379e5[_0xe5e7ab(0x1b0)]()[_0xe5e7ab(0x272)](),
|
|
2104
|
+
'priority': _0x1379e5['enum']([
|
|
2105
|
+
_0xe5e7ab(_0x37e8cd._0x1d30fe),
|
|
2106
|
+
_0xe5e7ab(_0x37e8cd._0x546a9f),
|
|
2107
|
+
_0xe5e7ab(_0x37e8cd._0x3c6e9a),
|
|
2108
|
+
'urgent'
|
|
2109
|
+
])[_0xe5e7ab(0x272)]()
|
|
2001
2110
|
}))
|
|
2002
|
-
}, async
|
|
2003
|
-
const
|
|
2111
|
+
}, async _0x5e1144 => {
|
|
2112
|
+
const _0x522dae = _0xe5e7ab;
|
|
2004
2113
|
try {
|
|
2005
|
-
return textResult(await
|
|
2006
|
-
} catch (
|
|
2007
|
-
return textResult(
|
|
2114
|
+
return textResult(await _0x1f47a9[_0x522dae(0x1c1)](_0x5e1144));
|
|
2115
|
+
} catch (_0x4c243d) {
|
|
2116
|
+
return textResult(_0x4c243d instanceof Error ? _0x4c243d[_0x522dae(_0xa248f3._0x4d8f6d)] : _0x522dae(_0xa248f3._0x312c22), !![]);
|
|
2008
2117
|
}
|
|
2009
|
-
}),
|
|
2010
|
-
'channel':
|
|
2011
|
-
'task_numbers':
|
|
2012
|
-
'message_ids':
|
|
2013
|
-
'evidence':
|
|
2014
|
-
'create_thread':
|
|
2015
|
-
'create_task':
|
|
2016
|
-
}))[
|
|
2017
|
-
'idempotency_key':
|
|
2018
|
-
}, async
|
|
2019
|
-
const
|
|
2118
|
+
}), _0x1d0690[_0xe5e7ab(0x157)](_0xe5e7ab(0x14b), _0xe5e7ab(_0x37e8cd._0x56c876), {
|
|
2119
|
+
'channel': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x1cf25a)](),
|
|
2120
|
+
'task_numbers': _0x1379e5['array'](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x5b90ad)]())[_0xe5e7ab(0x272)](),
|
|
2121
|
+
'message_ids': _0x1379e5['array'](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x1cf25a)]())['optional'](),
|
|
2122
|
+
'evidence': _0x1379e5['record'](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x1cf25a)](), _0x1379e5[_0xe5e7ab(0x27b)]({
|
|
2123
|
+
'create_thread': _0x1379e5[_0xe5e7ab(0x21f)]()['optional'](),
|
|
2124
|
+
'create_task': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x340e57)]()['optional']()
|
|
2125
|
+
}))['optional'](),
|
|
2126
|
+
'idempotency_key': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x1e2a1e)]()['optional']()
|
|
2127
|
+
}, async _0x47a355 => {
|
|
2128
|
+
const _0xf7a605 = _0xe5e7ab;
|
|
2020
2129
|
try {
|
|
2021
|
-
return textResult(await
|
|
2022
|
-
} catch (
|
|
2023
|
-
return textResult(
|
|
2130
|
+
return textResult(await _0x1f47a9['claim_tasks'](_0x47a355));
|
|
2131
|
+
} catch (_0x30b0ab) {
|
|
2132
|
+
return textResult(_0x30b0ab instanceof Error ? _0x30b0ab[_0xf7a605(0x18e)] : _0xf7a605(0x1d6), !![]);
|
|
2024
2133
|
}
|
|
2025
|
-
}),
|
|
2026
|
-
'channel':
|
|
2027
|
-
'task_number':
|
|
2028
|
-
'idempotency_key':
|
|
2029
|
-
}, async
|
|
2030
|
-
const
|
|
2134
|
+
}), _0x1d0690[_0xe5e7ab(_0x37e8cd._0x2867e8)](_0xe5e7ab(0x2a0), _0xe5e7ab(_0x37e8cd._0xede8d4), {
|
|
2135
|
+
'channel': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x1d4e2d)](),
|
|
2136
|
+
'task_number': _0x1379e5[_0xe5e7ab(0x2bb)](),
|
|
2137
|
+
'idempotency_key': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x3f372e)]()[_0xe5e7ab(0x272)]()
|
|
2138
|
+
}, async _0x92744d => {
|
|
2139
|
+
const _0x2e8639 = _0xe5e7ab;
|
|
2031
2140
|
try {
|
|
2032
|
-
return textResult(await
|
|
2033
|
-
} catch (
|
|
2034
|
-
return textResult(
|
|
2141
|
+
return textResult(await _0x1f47a9[_0x2e8639(0x2a0)](_0x92744d));
|
|
2142
|
+
} catch (_0x7cb2ef) {
|
|
2143
|
+
return textResult(_0x7cb2ef instanceof Error ? _0x7cb2ef['message'] : _0x2e8639(_0x3d9a46._0x18734f), !![]);
|
|
2035
2144
|
}
|
|
2036
|
-
}),
|
|
2037
|
-
'channel':
|
|
2038
|
-
'task_number':
|
|
2039
|
-
'status':
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2145
|
+
}), _0x1d0690[_0xe5e7ab(_0x37e8cd._0x2867e8)](_0xe5e7ab(0x244), _0xe5e7ab(0x16e), {
|
|
2146
|
+
'channel': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x3f372e)](),
|
|
2147
|
+
'task_number': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x46d359)](),
|
|
2148
|
+
'status': _0x1379e5[_0xe5e7ab(0x19c)]([
|
|
2149
|
+
_0xe5e7ab(_0x37e8cd._0x4271c5),
|
|
2150
|
+
_0xe5e7ab(0x245),
|
|
2151
|
+
_0xe5e7ab(0x24e),
|
|
2152
|
+
_0xe5e7ab(_0x37e8cd._0x133fd3)
|
|
2044
2153
|
]),
|
|
2045
|
-
'idempotency_key':
|
|
2046
|
-
}, async
|
|
2047
|
-
const
|
|
2048
|
-
try {
|
|
2049
|
-
return textResult(await _0x10cf2e[_0x219f5e(_0x30dfa3._0x5925fb)](_0x2665a6));
|
|
2050
|
-
} catch (_0x6c00dd) {
|
|
2051
|
-
return textResult(_0x6c00dd instanceof Error ? _0x6c00dd[_0x219f5e(0x256)] : _0x219f5e(0x247), !![]);
|
|
2052
|
-
}
|
|
2053
|
-
}), _0x56dd02[_0x4345f8(_0x4eb70f._0x5f20b8)](_0x4345f8(0x1fc), _0x4345f8(_0x4eb70f._0x401bd7), {
|
|
2054
|
-
'channel': _0x114985[_0x4345f8(_0x4eb70f._0xcb3ed2)](),
|
|
2055
|
-
'file_path': _0x114985[_0x4345f8(_0x4eb70f._0x267cf6)]()
|
|
2056
|
-
}, async _0x57d4fe => {
|
|
2057
|
-
const _0x438a5a = _0x4345f8;
|
|
2154
|
+
'idempotency_key': _0x1379e5['string']()[_0xe5e7ab(_0x37e8cd._0x59a506)]()
|
|
2155
|
+
}, async _0x20ee7e => {
|
|
2156
|
+
const _0x1476d3 = _0xe5e7ab;
|
|
2058
2157
|
try {
|
|
2059
|
-
return textResult(await
|
|
2060
|
-
} catch (
|
|
2061
|
-
return textResult(
|
|
2158
|
+
return textResult(await _0x1f47a9[_0x1476d3(_0x1ea45f._0x1704d1)](_0x20ee7e));
|
|
2159
|
+
} catch (_0x401b4c) {
|
|
2160
|
+
return textResult(_0x401b4c instanceof Error ? _0x401b4c[_0x1476d3(0x18e)] : 'update_task_status\x20failed', !![]);
|
|
2062
2161
|
}
|
|
2063
|
-
}),
|
|
2064
|
-
|
|
2162
|
+
}), _0x1d0690['tool'](_0xe5e7ab(0x1df), '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.', {
|
|
2163
|
+
'channel': _0x1379e5['string'](),
|
|
2164
|
+
'file_path': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x29fb52)]()
|
|
2165
|
+
}, async _0xb01bbb => {
|
|
2166
|
+
const _0x38e6e8 = _0xe5e7ab;
|
|
2065
2167
|
try {
|
|
2066
|
-
return textResult(await
|
|
2067
|
-
} catch (
|
|
2068
|
-
return textResult(
|
|
2168
|
+
return textResult(await _0x1f47a9[_0x38e6e8(0x1df)](_0xb01bbb));
|
|
2169
|
+
} catch (_0x25c88d) {
|
|
2170
|
+
return textResult(_0x25c88d instanceof Error ? _0x25c88d['message'] : 'upload_file\x20failed', !![]);
|
|
2069
2171
|
}
|
|
2070
|
-
}),
|
|
2071
|
-
|
|
2072
|
-
'thread_target': _0x114985[_0x4345f8(_0x4eb70f._0x293df3)](),
|
|
2073
|
-
'objective': _0x114985['string'](),
|
|
2074
|
-
'conclusions': _0x114985[_0x4345f8(0x163)](_0x114985['string']())[_0x4345f8(0x28f)](),
|
|
2075
|
-
'relevant_files': _0x114985[_0x4345f8(_0x4eb70f._0x424b13)](_0x114985[_0x4345f8(_0x4eb70f._0xbb6a1d)]())[_0x4345f8(_0x4eb70f._0xe2f670)](),
|
|
2076
|
-
'open_questions': _0x114985['array'](_0x114985[_0x4345f8(_0x4eb70f._0x267cf6)]())[_0x4345f8(0x28f)](),
|
|
2077
|
-
'reply_target': _0x114985[_0x4345f8(0x291)](),
|
|
2078
|
-
'task_id': _0x114985[_0x4345f8(_0x4eb70f._0x1b7f33)]()[_0x4345f8(_0x4eb70f._0x2fabfa)]()
|
|
2079
|
-
}, async _0x182921 => {
|
|
2080
|
-
const _0x25c888 = _0x4345f8;
|
|
2172
|
+
}), _0x1d0690['tool']('view_file', _0xe5e7ab(_0x37e8cd._0x7b6bbc), { 'attachment_id': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x41e259)]() }, async _0x4d70bc => {
|
|
2173
|
+
const _0x41523f = _0xe5e7ab;
|
|
2081
2174
|
try {
|
|
2082
|
-
return textResult(await
|
|
2083
|
-
} catch (
|
|
2084
|
-
return textResult(
|
|
2175
|
+
return textResult(await _0x1f47a9[_0x41523f(0x183)](_0x4d70bc));
|
|
2176
|
+
} catch (_0x8edc8d) {
|
|
2177
|
+
return textResult(_0x8edc8d instanceof Error ? _0x8edc8d[_0x41523f(_0x5a74e1._0x1201ad)] : _0x41523f(_0x5a74e1._0x3d1909), !![]);
|
|
2085
2178
|
}
|
|
2086
|
-
}),
|
|
2087
|
-
const
|
|
2179
|
+
}), _0x1d0690['tool'](_0xe5e7ab(_0x37e8cd._0x4e266f), _0xe5e7ab(_0x37e8cd._0x355449), { 'work_key': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x31c2b2)]() }, async _0x211eea => {
|
|
2180
|
+
const _0x354c65 = _0xe5e7ab;
|
|
2088
2181
|
try {
|
|
2089
|
-
return textResult(await
|
|
2090
|
-
} catch (
|
|
2091
|
-
return textResult(
|
|
2182
|
+
return textResult(await _0x1f47a9['get_worker_status'](_0x211eea));
|
|
2183
|
+
} catch (_0x159ac1) {
|
|
2184
|
+
return textResult(_0x159ac1 instanceof Error ? _0x159ac1[_0x354c65(0x18e)] : _0x354c65(_0x1ab364._0x2b4c62), !![]);
|
|
2092
2185
|
}
|
|
2093
|
-
}),
|
|
2094
|
-
const
|
|
2186
|
+
}), _0x1d0690[_0xe5e7ab(_0x37e8cd._0x4518a5)](_0xe5e7ab(0x1f0), _0xe5e7ab(0x231), { 'work_key': _0x1379e5['string']() }, async _0x5b7e1d => {
|
|
2187
|
+
const _0x2f38f5 = _0xe5e7ab;
|
|
2095
2188
|
try {
|
|
2096
|
-
return textResult(await
|
|
2097
|
-
} catch (
|
|
2098
|
-
return textResult(
|
|
2189
|
+
return textResult(await _0x1f47a9[_0x2f38f5(0x1f0)](_0x5b7e1d));
|
|
2190
|
+
} catch (_0x4654a2) {
|
|
2191
|
+
return textResult(_0x4654a2 instanceof Error ? _0x4654a2[_0x2f38f5(_0x4d409e._0x1fb959)] : 'get_worker_result\x20failed', !![]);
|
|
2099
2192
|
}
|
|
2100
|
-
}),
|
|
2101
|
-
'work_key':
|
|
2102
|
-
'result':
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2193
|
+
}), _0x1d0690[_0xe5e7ab(0x157)](_0xe5e7ab(0x21a), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
2194
|
+
'work_key': _0x1379e5[_0xe5e7ab(0x1b0)](),
|
|
2195
|
+
'result': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x1b15ab)]([
|
|
2196
|
+
_0xe5e7ab(0x273),
|
|
2197
|
+
_0xe5e7ab(_0x37e8cd._0x12fd84),
|
|
2198
|
+
_0xe5e7ab(_0x37e8cd._0x2e360b)
|
|
2106
2199
|
]),
|
|
2107
|
-
'summary':
|
|
2108
|
-
'decisions':
|
|
2109
|
-
'files_changed':
|
|
2110
|
-
'open_issues':
|
|
2111
|
-
'next_steps':
|
|
2112
|
-
}, async
|
|
2113
|
-
const
|
|
2200
|
+
'summary': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x3efa7b)](),
|
|
2201
|
+
'decisions': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x330bb0)](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x2e95c7)]())[_0xe5e7ab(0x272)](),
|
|
2202
|
+
'files_changed': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x512bac)](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x27205a)]())[_0xe5e7ab(_0x37e8cd._0x22fd00)](),
|
|
2203
|
+
'open_issues': _0x1379e5[_0xe5e7ab(0x14a)](_0x1379e5[_0xe5e7ab(0x1b0)]())[_0xe5e7ab(_0x37e8cd._0x22fd00)](),
|
|
2204
|
+
'next_steps': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x41a4ed)](_0x1379e5[_0xe5e7ab(_0x37e8cd._0x2ea9bf)]())['optional']()
|
|
2205
|
+
}, async _0x219003 => {
|
|
2206
|
+
const _0x1a3960 = _0xe5e7ab;
|
|
2114
2207
|
try {
|
|
2115
|
-
return textResult(await
|
|
2116
|
-
} catch (
|
|
2117
|
-
return textResult(
|
|
2208
|
+
return textResult(await _0x1f47a9[_0x1a3960(0x21a)](_0x219003));
|
|
2209
|
+
} catch (_0x347ab3) {
|
|
2210
|
+
return textResult(_0x347ab3 instanceof Error ? _0x347ab3[_0x1a3960(_0x2d8747._0x320e75)] : 'finish_worker\x20failed', !![]);
|
|
2118
2211
|
}
|
|
2119
|
-
}),
|
|
2120
|
-
'work_key':
|
|
2121
|
-
'reason':
|
|
2122
|
-
}, async
|
|
2123
|
-
const
|
|
2212
|
+
}), _0x1d0690[_0xe5e7ab(_0x37e8cd._0x259bd4)](_0xe5e7ab(_0x37e8cd._0x374e7a), _0xe5e7ab(_0x37e8cd._0x359dd8), {
|
|
2213
|
+
'work_key': _0x1379e5['string'](),
|
|
2214
|
+
'reason': _0x1379e5[_0xe5e7ab(_0x37e8cd._0x931489)]()
|
|
2215
|
+
}, async _0xec2182 => {
|
|
2216
|
+
const _0xea4229 = _0xe5e7ab;
|
|
2124
2217
|
try {
|
|
2125
|
-
return textResult(await
|
|
2126
|
-
} catch (
|
|
2127
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x1f47a9[_0xea4229(_0x3087dc._0x34e9b9)](_0xec2182));
|
|
2219
|
+
} catch (_0x9a5440) {
|
|
2220
|
+
return textResult(_0x9a5440 instanceof Error ? _0x9a5440[_0xea4229(0x18e)] : _0xea4229(_0x3087dc._0x247945), !![]);
|
|
2128
2221
|
}
|
|
2129
|
-
}),
|
|
2130
|
-
const
|
|
2222
|
+
}), _0x589f7a?.[_0xe5e7ab(_0x37e8cd._0x1ce72d)] && _0x1d0690[_0xe5e7ab(_0x37e8cd._0x52db7a)](_0xe5e7ab(0x1db), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x1379e5[_0xe5e7ab(0x1b0)]() }, async _0x373cb5 => {
|
|
2223
|
+
const _0x112bfd = _0xe5e7ab;
|
|
2131
2224
|
try {
|
|
2132
|
-
return textResult(await
|
|
2133
|
-
} catch (
|
|
2134
|
-
return textResult(
|
|
2225
|
+
return textResult(await _0x1f47a9[_0x112bfd(0x1db)](_0x373cb5));
|
|
2226
|
+
} catch (_0x140024) {
|
|
2227
|
+
return textResult(_0x140024 instanceof Error ? _0x140024[_0x112bfd(_0x28190b._0x97a755)] : _0x112bfd(_0x28190b._0x39d214), !![]);
|
|
2135
2228
|
}
|
|
2136
2229
|
});
|
|
2137
2230
|
}
|
|
2138
|
-
async function createChatBridgeServer(
|
|
2139
|
-
const
|
|
2140
|
-
'name':
|
|
2141
|
-
'version':
|
|
2142
|
-
}),
|
|
2143
|
-
return await registerChatBridgeTools(
|
|
2144
|
-
'handlers':
|
|
2145
|
-
'server':
|
|
2231
|
+
async function createChatBridgeServer(_0x10c2de) {
|
|
2232
|
+
const _0x392d08 = { _0x5d17e6: 0x270 }, _0x9b887a = _0x50158a, {McpServer: _0x567b2c} = await import(_0x9b887a(_0x392d08._0x5d17e6)), _0x3b9037 = new _0x567b2c({
|
|
2233
|
+
'name': _0x9b887a(0x1a6),
|
|
2234
|
+
'version': _0x9b887a(0x191)
|
|
2235
|
+
}), _0x56b2e8 = createChatBridgeHandlers(_0x10c2de);
|
|
2236
|
+
return await registerChatBridgeTools(_0x3b9037, _0x56b2e8, { 'workerMode': _0x10c2de['workerMode'] }), {
|
|
2237
|
+
'handlers': _0x56b2e8,
|
|
2238
|
+
'server': _0x3b9037
|
|
2146
2239
|
};
|
|
2147
2240
|
}
|
|
2148
|
-
function readFlag(
|
|
2149
|
-
const
|
|
2150
|
-
if (
|
|
2241
|
+
function readFlag(_0x178a43, _0x3b4595) {
|
|
2242
|
+
const _0x248238 = _0x178a43['indexOf'](_0x3b4595);
|
|
2243
|
+
if (_0x248238 === -0x1)
|
|
2151
2244
|
return void 0x0;
|
|
2152
|
-
return
|
|
2245
|
+
return _0x178a43[_0x248238 + 0x1];
|
|
2153
2246
|
}
|
|
2154
|
-
function parseChatBridgeArgs(
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2247
|
+
function parseChatBridgeArgs(_0x26aa4e) {
|
|
2248
|
+
const _0x425dcd = {
|
|
2249
|
+
_0x22206d: 0x176,
|
|
2250
|
+
_0xa71ae4: 0x2aa,
|
|
2251
|
+
_0x51aa75: 0x152,
|
|
2252
|
+
_0x309451: 0x185,
|
|
2253
|
+
_0x3a95d8: 0x161,
|
|
2254
|
+
_0x4955a8: 0x166,
|
|
2255
|
+
_0x28ccd8: 0x29f
|
|
2256
|
+
}, _0x1697f9 = _0x50158a, _0x361709 = readFlag(_0x26aa4e, _0x1697f9(0x28f)), _0x279711 = readFlag(_0x26aa4e, _0x1697f9(0x1c7)), _0x2d679d = readFlag(_0x26aa4e, _0x1697f9(_0x425dcd._0x22206d)), _0x39e764 = readFlag(_0x26aa4e, _0x1697f9(0x1ed)) ?? _0x1697f9(_0x425dcd._0xa71ae4), _0x1e807c = readFlag(_0x26aa4e, '--daemon-local-url'), _0xc242ec = readFlag(_0x26aa4e, _0x1697f9(0x22e)), _0x148697 = readFlag(_0x26aa4e, _0x1697f9(0x1e4)), _0x332ff4 = readFlag(_0x26aa4e, _0x1697f9(0x207)), _0x330029 = readFlag(_0x26aa4e, _0x1697f9(0x186)), _0x5722b3 = _0x26aa4e[_0x1697f9(_0x425dcd._0x51aa75)]('--worker-mode'), _0x354754 = _0x2d679d === void 0x0 ? void 0x0 : Number[_0x1697f9(_0x425dcd._0x309451)](_0x2d679d, 0xa);
|
|
2257
|
+
if (!_0x361709)
|
|
2258
|
+
throw new Error(_0x1697f9(_0x425dcd._0x3a95d8));
|
|
2259
|
+
if (!_0x279711)
|
|
2260
|
+
throw new Error(_0x1697f9(_0x425dcd._0x4955a8));
|
|
2261
|
+
if (_0x2d679d !== void 0x0 && (_0x354754 === void 0x0 || !Number[_0x1697f9(_0x425dcd._0x28ccd8)](_0x354754) || _0x354754 < 0x0))
|
|
2262
|
+
throw new Error(_0x1697f9(0x16b));
|
|
2165
2263
|
return {
|
|
2166
|
-
'agentId':
|
|
2167
|
-
'daemonApiKey':
|
|
2168
|
-
'daemonLocalUrl':
|
|
2169
|
-
'initialLastSeenSeq':
|
|
2170
|
-
'sessionId':
|
|
2171
|
-
'serverUrl':
|
|
2172
|
-
'workerModeEnabled':
|
|
2173
|
-
'
|
|
2174
|
-
'
|
|
2264
|
+
'agentId': _0x361709,
|
|
2265
|
+
'daemonApiKey': _0x279711,
|
|
2266
|
+
'daemonLocalUrl': _0x1e807c,
|
|
2267
|
+
'initialLastSeenSeq': _0x354754,
|
|
2268
|
+
'sessionId': _0xc242ec,
|
|
2269
|
+
'serverUrl': _0x39e764,
|
|
2270
|
+
'workerModeEnabled': _0x148697 === void 0x0 ? void 0x0 : _0x148697 !== _0x1697f9(0x18b),
|
|
2271
|
+
'workerSessionId': _0x332ff4,
|
|
2272
|
+
'workerThreadTarget': _0x330029,
|
|
2273
|
+
'workerMode': _0x5722b3
|
|
2175
2274
|
};
|
|
2176
2275
|
}
|
|
2177
|
-
async function runChatBridgeCli(
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
'
|
|
2184
|
-
'
|
|
2185
|
-
'
|
|
2276
|
+
async function runChatBridgeCli(_0x52f39a) {
|
|
2277
|
+
const _0x16ecda = {
|
|
2278
|
+
_0x2b26ee: 0x228,
|
|
2279
|
+
_0x541447: 0x172,
|
|
2280
|
+
_0x365ee3: 0x17d
|
|
2281
|
+
}, _0x4d2aae = _0x50158a, _0x5959ed = parseChatBridgeArgs(_0x52f39a), {StdioServerTransport: _0x5e626c} = await import(_0x4d2aae(_0x16ecda._0x2b26ee)), _0x3e9ead = createInternalAgentClient(_0x5959ed), _0x4836c9 = createAttachmentCache(), _0x1a1a08 = await createChatBridgeServer({
|
|
2282
|
+
'agentId': _0x5959ed['agentId'],
|
|
2283
|
+
'attachmentCache': _0x4836c9,
|
|
2284
|
+
'client': _0x3e9ead,
|
|
2285
|
+
'daemonLocalUrl': _0x5959ed[_0x4d2aae(0x2b7)],
|
|
2186
2286
|
'uploadPreparer': prepareUploadFile,
|
|
2187
|
-
'workerModeEnabled':
|
|
2188
|
-
'workerMode':
|
|
2287
|
+
'workerModeEnabled': _0x5959ed[_0x4d2aae(_0x16ecda._0x541447)],
|
|
2288
|
+
'workerMode': _0x5959ed[_0x4d2aae(0x15d)]
|
|
2189
2289
|
});
|
|
2190
|
-
await
|
|
2290
|
+
await _0x1a1a08[_0x4d2aae(_0x16ecda._0x365ee3)][_0x4d2aae(0x257)](new _0x5e626c());
|
|
2191
2291
|
}
|
|
2192
|
-
var executedAsEntry = process[
|
|
2193
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2292
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x50158a(0x155)][0x1])[_0x50158a(0x232)] : ![];
|
|
2293
|
+
executedAsEntry && await runChatBridgeCli(process[_0x50158a(0x155)][_0x50158a(0x1f7)](0x2));
|
|
2194
2294
|
export {
|
|
2195
2295
|
createChatBridgeHandlers,
|
|
2196
2296
|
createChatBridgeServer,
|