@dscord/daemon 0.1.56 → 0.1.58
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 +2115 -2119
- package/dist/index.js +9893 -9222
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,47 +1,44 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_0x54cbfb: 0x292,
|
|
10
|
-
_0x5bea06: 0x2c3
|
|
11
|
-
}, _0x47053e = _0x31ce, _0x20a48c = _0x54edaa();
|
|
1
|
+
const _0xba094d = _0x1a4c;
|
|
2
|
+
(function (_0x48a1ba, _0x56e63a) {
|
|
3
|
+
const _0x4fc916 = {
|
|
4
|
+
_0x18e2a3: 0x20f,
|
|
5
|
+
_0x2b0b49: 0x24d,
|
|
6
|
+
_0x29ba68: 0x1c9,
|
|
7
|
+
_0x480943: 0x19c
|
|
8
|
+
}, _0x7035fc = _0x1a4c, _0x1779f8 = _0x48a1ba();
|
|
12
9
|
while (!![]) {
|
|
13
10
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
11
|
+
const _0x1a8f23 = -parseInt(_0x7035fc(0x197)) / 0x1 * (-parseInt(_0x7035fc(0xf7)) / 0x2) + -parseInt(_0x7035fc(0x258)) / 0x3 + -parseInt(_0x7035fc(0x240)) / 0x4 * (parseInt(_0x7035fc(_0x4fc916._0x18e2a3)) / 0x5) + -parseInt(_0x7035fc(_0x4fc916._0x2b0b49)) / 0x6 * (parseInt(_0x7035fc(_0x4fc916._0x29ba68)) / 0x7) + -parseInt(_0x7035fc(0x1b4)) / 0x8 * (-parseInt(_0x7035fc(_0x4fc916._0x480943)) / 0x9) + parseInt(_0x7035fc(0x133)) / 0xa + parseInt(_0x7035fc(0x1d9)) / 0xb * (-parseInt(_0x7035fc(0x209)) / 0xc);
|
|
12
|
+
if (_0x1a8f23 === _0x56e63a)
|
|
16
13
|
break;
|
|
17
14
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
15
|
+
_0x1779f8['push'](_0x1779f8['shift']());
|
|
16
|
+
} catch (_0x269a71) {
|
|
17
|
+
_0x1779f8['push'](_0x1779f8['shift']());
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
}(
|
|
20
|
+
}(_0x4f0b, 0x7ff7b));
|
|
24
21
|
import { pathToFileURL } from 'node:url';
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
let
|
|
29
|
-
if (
|
|
30
|
-
var
|
|
31
|
-
const
|
|
32
|
-
let
|
|
33
|
-
for (let
|
|
34
|
-
|
|
22
|
+
function _0x1a4c(_0x1aa018, _0xd6f3f1) {
|
|
23
|
+
_0x1aa018 = _0x1aa018 - 0xcf;
|
|
24
|
+
const _0x4f0b2b = _0x4f0b();
|
|
25
|
+
let _0x1a4c77 = _0x4f0b2b[_0x1aa018];
|
|
26
|
+
if (_0x1a4c['iVoWcv'] === undefined) {
|
|
27
|
+
var _0x95ab44 = function (_0x4207ee) {
|
|
28
|
+
const _0x4e1bf8 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
29
|
+
let _0x1754b5 = '', _0x2d13c1 = '';
|
|
30
|
+
for (let _0x5149dd = 0x0, _0x23723c, _0x19b1e4, _0x323dfd = 0x0; _0x19b1e4 = _0x4207ee['charAt'](_0x323dfd++); ~_0x19b1e4 && (_0x23723c = _0x5149dd % 0x4 ? _0x23723c * 0x40 + _0x19b1e4 : _0x19b1e4, _0x5149dd++ % 0x4) ? _0x1754b5 += String['fromCharCode'](0xff & _0x23723c >> (-0x2 * _0x5149dd & 0x6)) : 0x0) {
|
|
31
|
+
_0x19b1e4 = _0x4e1bf8['indexOf'](_0x19b1e4);
|
|
35
32
|
}
|
|
36
|
-
for (let
|
|
37
|
-
|
|
33
|
+
for (let _0x533353 = 0x0, _0x3f048d = _0x1754b5['length']; _0x533353 < _0x3f048d; _0x533353++) {
|
|
34
|
+
_0x2d13c1 += '%' + ('00' + _0x1754b5['charCodeAt'](_0x533353)['toString'](0x10))['slice'](-0x2);
|
|
38
35
|
}
|
|
39
|
-
return decodeURIComponent(
|
|
36
|
+
return decodeURIComponent(_0x2d13c1);
|
|
40
37
|
};
|
|
41
|
-
|
|
38
|
+
_0x1a4c['MIKKHJ'] = _0x95ab44, _0x1a4c['qhMGSq'] = {}, _0x1a4c['iVoWcv'] = !![];
|
|
42
39
|
}
|
|
43
|
-
const
|
|
44
|
-
return !
|
|
40
|
+
const _0x211221 = _0x4f0b2b[0x0], _0x2fe278 = _0x1aa018 + _0x211221, _0x3d801c = _0x1a4c['qhMGSq'][_0x2fe278];
|
|
41
|
+
return !_0x3d801c ? (_0x1a4c77 = _0x1a4c['MIKKHJ'](_0x1a4c77), _0x1a4c['qhMGSq'][_0x2fe278] = _0x1a4c77) : _0x1a4c77 = _0x3d801c, _0x1a4c77;
|
|
45
42
|
}
|
|
46
43
|
import {
|
|
47
44
|
mkdir,
|
|
@@ -51,82 +48,77 @@ import {
|
|
|
51
48
|
writeFile
|
|
52
49
|
} from 'node:fs/promises';
|
|
53
50
|
import { homedir } from 'node:os';
|
|
54
|
-
import
|
|
51
|
+
import _0x1754b5 from 'node:path';
|
|
55
52
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
56
|
-
'.csv':
|
|
57
|
-
'.gif':
|
|
58
|
-
'.jpeg':
|
|
59
|
-
'.jpg':
|
|
60
|
-
'.json':
|
|
61
|
-
'.md':
|
|
62
|
-
'.pdf':
|
|
63
|
-
'.png':
|
|
64
|
-
'.svg':
|
|
65
|
-
'.txt':
|
|
66
|
-
'.webp':
|
|
53
|
+
'.csv': _0xba094d(0x25e),
|
|
54
|
+
'.gif': _0xba094d(0x125),
|
|
55
|
+
'.jpeg': _0xba094d(0x23c),
|
|
56
|
+
'.jpg': _0xba094d(0x23c),
|
|
57
|
+
'.json': _0xba094d(0x246),
|
|
58
|
+
'.md': _0xba094d(0x1d5),
|
|
59
|
+
'.pdf': _0xba094d(0x255),
|
|
60
|
+
'.png': _0xba094d(0x225),
|
|
61
|
+
'.svg': _0xba094d(0x19f),
|
|
62
|
+
'.txt': _0xba094d(0x1fd),
|
|
63
|
+
'.webp': _0xba094d(0x238),
|
|
67
64
|
'.xml': 'application/xml',
|
|
68
|
-
'.zip':
|
|
65
|
+
'.zip': 'application/zip'
|
|
69
66
|
};
|
|
70
|
-
function guessContentType(
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
_0x122fe7: 0x2cf
|
|
74
|
-
}, _0x451402 = _0x4d2358;
|
|
75
|
-
return MIME_BY_EXTENSION[_0xf136da[_0x451402(_0x57e621._0x1ee8b5)](_0x15aa5b)[_0x451402(_0x57e621._0x122fe7)]()] ?? 'application/octet-stream';
|
|
67
|
+
function guessContentType(_0x2d13c1) {
|
|
68
|
+
const _0x37f10c = _0xba094d;
|
|
69
|
+
return MIME_BY_EXTENSION[_0x1754b5[_0x37f10c(0x184)](_0x2d13c1)[_0x37f10c(0x1e3)]()] ?? 'application/octet-stream';
|
|
76
70
|
}
|
|
77
|
-
function safeFilename(
|
|
78
|
-
const
|
|
79
|
-
return
|
|
71
|
+
function safeFilename(_0x5149dd) {
|
|
72
|
+
const _0x2308cd = { _0x34e7f6: 0x1ec }, _0x405292 = _0xba094d;
|
|
73
|
+
return _0x5149dd[_0x405292(_0x2308cd._0x34e7f6)](/[\\/]/g, '-');
|
|
80
74
|
}
|
|
81
|
-
function extensionFor(
|
|
82
|
-
const
|
|
83
|
-
return
|
|
75
|
+
function extensionFor(_0x23723c) {
|
|
76
|
+
const _0xbac121 = { _0x4bc82f: 0x1cb }, _0x38bf3e = _0xba094d, _0x19b1e4 = Object['entries'](MIME_BY_EXTENSION)[_0x38bf3e(0x254)](([, _0x323dfd]) => _0x323dfd === _0x23723c);
|
|
77
|
+
return _0x19b1e4?.[0x0] ?? _0x38bf3e(_0xbac121._0x4bc82f);
|
|
84
78
|
}
|
|
85
|
-
async function prepareUploadFile(
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const _0x4de8f5 = await readFile(_0x3dbfaf), _0x2becd9 = _0xf136da['basename'](_0x3dbfaf);
|
|
79
|
+
async function prepareUploadFile(_0x533353, _0x3f048d = {}) {
|
|
80
|
+
const _0x11f745 = {
|
|
81
|
+
_0x5140d7: 0xed,
|
|
82
|
+
_0x51b61d: 0x206
|
|
83
|
+
}, _0x59ccec = _0xba094d;
|
|
84
|
+
if (!_0x1754b5[_0x59ccec(0x15e)](_0x533353))
|
|
85
|
+
throw new Error(_0x59ccec(0x12a));
|
|
86
|
+
const _0x20fcae = await stat(_0x533353)[_0x59ccec(0xf8)](() => null);
|
|
87
|
+
if (!_0x20fcae || !_0x20fcae['isFile']())
|
|
88
|
+
throw new Error(_0x59ccec(0xe4) + _0x533353);
|
|
89
|
+
const _0x1f6298 = _0x3f048d[_0x59ccec(_0x11f745._0x5140d7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
90
|
+
if (_0x20fcae['size'] > _0x1f6298)
|
|
91
|
+
throw new Error(_0x59ccec(0x227) + _0x20fcae['size']);
|
|
92
|
+
const _0x539a13 = await readFile(_0x533353), _0x324030 = _0x1754b5[_0x59ccec(0x12d)](_0x533353);
|
|
100
93
|
return {
|
|
101
|
-
'contentBase64':
|
|
102
|
-
'contentType': guessContentType(
|
|
103
|
-
'filename':
|
|
104
|
-
'sizeBytes':
|
|
94
|
+
'contentBase64': _0x539a13[_0x59ccec(_0x11f745._0x51b61d)]('base64'),
|
|
95
|
+
'contentType': guessContentType(_0x324030),
|
|
96
|
+
'filename': _0x324030,
|
|
97
|
+
'sizeBytes': _0x20fcae['size']
|
|
105
98
|
};
|
|
106
99
|
}
|
|
107
|
-
function createAttachmentCache(
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}, _0x13d21e = _0x4d2358, _0x24799a = _0x2590c5[_0x13d21e(_0xbb388a._0x186e8f)] ?? _0xf136da[_0x13d21e(_0xbb388a._0x4ccdb3)](homedir(), _0x13d21e(_0xbb388a._0x37756e), _0x13d21e(0x262));
|
|
100
|
+
function createAttachmentCache(_0x3facc8 = {}) {
|
|
101
|
+
const _0xfa294e = {
|
|
102
|
+
_0xa0ed7f: 0x234,
|
|
103
|
+
_0xdad024: 0xf6
|
|
104
|
+
}, _0x405856 = {
|
|
105
|
+
_0x24e227: 0x1bf,
|
|
106
|
+
_0x189955: 0x1f5,
|
|
107
|
+
_0x4245e4: 0x1e2
|
|
108
|
+
}, _0x8bd20a = _0xba094d, _0x2116a3 = _0x3facc8[_0x8bd20a(0xe9)] ?? _0x1754b5[_0x8bd20a(_0xfa294e._0xa0ed7f)](homedir(), _0x8bd20a(0x1ff), _0x8bd20a(_0xfa294e._0xdad024));
|
|
117
109
|
return {
|
|
118
|
-
'cacheDir':
|
|
119
|
-
async 'findCachedPath'(
|
|
120
|
-
const
|
|
121
|
-
await mkdir(
|
|
122
|
-
const
|
|
123
|
-
return
|
|
110
|
+
'cacheDir': _0x2116a3,
|
|
111
|
+
async 'findCachedPath'(_0x528132) {
|
|
112
|
+
const _0x130e3e = _0x8bd20a;
|
|
113
|
+
await mkdir(_0x2116a3, { 'recursive': !![] });
|
|
114
|
+
const _0x42f976 = await readdir(_0x2116a3), _0x5002ab = _0x42f976[_0x130e3e(0x254)](_0x271054 => _0x271054[_0x130e3e(0x1a8)](_0x528132 + '-') || _0x271054[_0x130e3e(0x1a8)](_0x528132));
|
|
115
|
+
return _0x5002ab ? _0x1754b5[_0x130e3e(0x234)](_0x2116a3, _0x5002ab) : null;
|
|
124
116
|
},
|
|
125
|
-
async 'save'(
|
|
126
|
-
const
|
|
127
|
-
await mkdir(
|
|
128
|
-
const
|
|
129
|
-
return await writeFile(
|
|
117
|
+
async 'save'(_0x1b49ec) {
|
|
118
|
+
const _0x190d44 = _0x8bd20a;
|
|
119
|
+
await mkdir(_0x2116a3, { 'recursive': !![] });
|
|
120
|
+
const _0x10230b = _0x1b49ec[_0x190d44(0x1bf)]?.[_0x190d44(0x10b)]() ? safeFilename(_0x1b49ec[_0x190d44(_0x405856._0x24e227)]) : '' + _0x1b49ec[_0x190d44(0x1e2)] + extensionFor(_0x1b49ec[_0x190d44(_0x405856._0x189955)]), _0x56a1fc = _0x1754b5['join'](_0x2116a3, _0x1b49ec[_0x190d44(_0x405856._0x4245e4)] + '-' + _0x10230b);
|
|
121
|
+
return await writeFile(_0x56a1fc, _0x1b49ec[_0x190d44(0x14f)]), _0x56a1fc;
|
|
130
122
|
}
|
|
131
123
|
};
|
|
132
124
|
}
|
|
@@ -134,2223 +126,2227 @@ import {
|
|
|
134
126
|
createHash,
|
|
135
127
|
randomUUID
|
|
136
128
|
} from 'node:crypto';
|
|
137
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
138
|
-
function ensureSegment(
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
129
|
+
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
130
|
+
function ensureSegment(_0x4e9554) {
|
|
131
|
+
const _0x435b45 = _0xba094d, _0x33d029 = _0x4e9554[_0x435b45(0x10b)]();
|
|
132
|
+
if (!_0x33d029 || _0x33d029[_0x435b45(0x23a)](':'))
|
|
141
133
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
142
|
-
return
|
|
134
|
+
return _0x33d029;
|
|
143
135
|
}
|
|
144
|
-
function parseThreadParts(
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
_0x51134f: 0x2da
|
|
148
|
-
}, _0x45cb79 = _0x4d2358, _0x200d89 = _0x203746[_0x45cb79(_0x539e40._0x4687f0)](':');
|
|
149
|
-
if (_0x200d89[_0x45cb79(0x2da)] < 0x1 || _0x200d89[_0x45cb79(_0x539e40._0x51134f)] > 0x2)
|
|
136
|
+
function parseThreadParts(_0x3dc79f) {
|
|
137
|
+
const _0x1f2b8a = { _0x32da18: 0x190 }, _0x77b57f = _0xba094d, _0x493eb5 = _0x3dc79f[_0x77b57f(0x243)](':');
|
|
138
|
+
if (_0x493eb5[_0x77b57f(0x190)] < 0x1 || _0x493eb5[_0x77b57f(_0x1f2b8a._0x32da18)] > 0x2)
|
|
150
139
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
151
140
|
return {
|
|
152
|
-
'channelName': ensureSegment(
|
|
153
|
-
'threadShortId':
|
|
141
|
+
'channelName': ensureSegment(_0x493eb5[0x0] ?? ''),
|
|
142
|
+
'threadShortId': _0x493eb5[0x1] ? ensureSegment(_0x493eb5[0x1]) : null
|
|
154
143
|
};
|
|
155
144
|
}
|
|
156
|
-
function
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
if (_0x104743['startsWith'](_0x37f884(_0x146b32._0x4abfe8))) {
|
|
187
|
-
const _0x1827b4 = parseThreadParts(_0x104743['slice'](0x3));
|
|
188
|
-
if (!_0x1827b4[_0x37f884(_0x146b32._0x2bf821)][_0x37f884(0x1a2)]('dm-'))
|
|
189
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
190
|
-
const _0x4a2dd1 = _0x37f884(_0x146b32._0x4abfe8) + _0x1827b4[_0x37f884(0x1d4)];
|
|
191
|
-
if (!_0x1827b4['threadShortId'])
|
|
192
|
-
return {
|
|
193
|
-
'channelName': _0x1827b4[_0x37f884(0x1d4)],
|
|
194
|
-
'channelTarget': _0x4a2dd1,
|
|
195
|
-
'kind': _0x37f884(_0x146b32._0x3ea300),
|
|
196
|
-
'target': _0x4a2dd1
|
|
197
|
-
};
|
|
198
|
-
return {
|
|
199
|
-
'channelName': _0x1827b4[_0x37f884(_0x146b32._0x2bf821)],
|
|
200
|
-
'channelTarget': _0x4a2dd1,
|
|
201
|
-
'kind': _0x37f884(0x200),
|
|
202
|
-
'target': _0x4a2dd1 + ':' + _0x1827b4[_0x37f884(0x1f3)],
|
|
203
|
-
'threadShortId': _0x1827b4[_0x37f884(0x1f3)]
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
207
|
-
}
|
|
208
|
-
function asErrorMessage(_0x4e5a07, _0xbd9922) {
|
|
209
|
-
const _0x4f4c88 = _0x4d2358;
|
|
210
|
-
if (typeof _0x4e5a07 === _0x4f4c88(0x28f) && _0x4e5a07['trim']())
|
|
211
|
-
return _0x4e5a07;
|
|
212
|
-
return _0xbd9922;
|
|
213
|
-
}
|
|
214
|
-
function asRecord(_0x335d88) {
|
|
215
|
-
const _0x3e4e9e = { _0x39ca72: 0x2e1 }, _0x4f62f2 = _0x4d2358;
|
|
216
|
-
return typeof _0x335d88 === _0x4f62f2(_0x3e4e9e._0x39ca72) && _0x335d88 !== null ? _0x335d88 : {};
|
|
217
|
-
}
|
|
218
|
-
function stableStringify(_0x14dc50) {
|
|
219
|
-
const _0x2db74e = {
|
|
220
|
-
_0x2abeb8: 0x2e1,
|
|
221
|
-
_0x210eec: 0x2a4,
|
|
222
|
-
_0x15df1e: 0x25f,
|
|
223
|
-
_0x2b9c07: 0x23d,
|
|
224
|
-
_0x50c38f: 0x221,
|
|
225
|
-
_0x1a4589: 0x215,
|
|
226
|
-
_0x418751: 0x2d2
|
|
227
|
-
}, _0x58bffd = _0x4d2358;
|
|
228
|
-
if (_0x14dc50 === null || typeof _0x14dc50 !== _0x58bffd(_0x2db74e._0x2abeb8))
|
|
229
|
-
return JSON[_0x58bffd(_0x2db74e._0x210eec)](_0x14dc50);
|
|
230
|
-
if (Array['isArray'](_0x14dc50))
|
|
231
|
-
return '[' + _0x14dc50[_0x58bffd(0x2d2)](_0x17ec49 => stableStringify(_0x17ec49))[_0x58bffd(_0x2db74e._0x15df1e)](',') + ']';
|
|
232
|
-
const _0x42ffa0 = Object[_0x58bffd(_0x2db74e._0x2b9c07)](_0x14dc50)[_0x58bffd(_0x2db74e._0x50c38f)](([, _0x52a2e3]) => _0x52a2e3 !== void 0x0)[_0x58bffd(_0x2db74e._0x1a4589)](([_0x5a8903], [_0x1c2a74]) => _0x5a8903[_0x58bffd(0x264)](_0x1c2a74))[_0x58bffd(_0x2db74e._0x418751)](([_0x67fdbc, _0xf7c075]) => JSON[_0x58bffd(0x2a4)](_0x67fdbc) + ':' + stableStringify(_0xf7c075));
|
|
233
|
-
return '{' + _0x42ffa0[_0x58bffd(_0x2db74e._0x15df1e)](',') + '}';
|
|
234
|
-
}
|
|
235
|
-
function createHeaders(_0x34a305) {
|
|
236
|
-
return {
|
|
237
|
-
'Content-Type': 'application/json',
|
|
238
|
-
'x-daemon-api-key': _0x34a305
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
function toHttpBaseUrl(_0x5498c0) {
|
|
242
|
-
const _0x2f4102 = {
|
|
243
|
-
_0x385b99: 0x28d,
|
|
244
|
-
_0x56a1c9: 0x233
|
|
245
|
-
}, _0x242c60 = _0x4d2358, _0x233f8c = new URL(_0x5498c0);
|
|
246
|
-
if (_0x233f8c[_0x242c60(0x28d)] === 'ws:')
|
|
247
|
-
_0x233f8c[_0x242c60(0x28d)] = _0x242c60(0x197);
|
|
248
|
-
else
|
|
249
|
-
_0x233f8c[_0x242c60(_0x2f4102._0x385b99)] === _0x242c60(0x18f) && (_0x233f8c[_0x242c60(0x28d)] = _0x242c60(_0x2f4102._0x56a1c9));
|
|
250
|
-
return _0x233f8c['toString']()['replace'](/\/$/, '');
|
|
251
|
-
}
|
|
252
|
-
function isMentionBoundary(_0x24779b) {
|
|
253
|
-
const _0x26a789 = _0x4d2358;
|
|
254
|
-
return !_0x24779b || /\s|[([{'",。!?、:;]/[_0x26a789(0x1a6)](_0x24779b);
|
|
255
|
-
}
|
|
256
|
-
function isMentionTerminal(_0x5dc524) {
|
|
257
|
-
const _0x41d4f0 = { _0x23f216: 0x1a6 }, _0x303cd7 = _0x4d2358;
|
|
258
|
-
return !_0x5dc524 || /\s|[)\]}'",。!?、:;,.!?]/[_0x303cd7(_0x41d4f0._0x23f216)](_0x5dc524);
|
|
259
|
-
}
|
|
260
|
-
function buildMatchableEntries(_0x1c06ba) {
|
|
261
|
-
const _0x1a4222 = {
|
|
262
|
-
_0x3991f4: 0x1df,
|
|
263
|
-
_0x4f047a: 0x1c6,
|
|
264
|
-
_0x33af80: 0x1ca
|
|
265
|
-
}, _0x1d7edb = _0x4d2358, _0x2c05a8 = [];
|
|
266
|
-
for (const _0x545408 of [
|
|
267
|
-
..._0x1c06ba[_0x1d7edb(_0x1a4222._0x3991f4)],
|
|
268
|
-
..._0x1c06ba[_0x1d7edb(0x17f)]
|
|
269
|
-
]) {
|
|
270
|
-
_0x2c05a8[_0x1d7edb(_0x1a4222._0x4f047a)]({
|
|
271
|
-
'matchName': _0x545408[_0x1d7edb(0x2d3)],
|
|
272
|
-
'matchNameLower': _0x545408['name'][_0x1d7edb(_0x1a4222._0x33af80)](),
|
|
273
|
-
'participantId': _0x545408['id']
|
|
274
|
-
}), _0x545408['id'] !== _0x545408['name'] && _0x2c05a8[_0x1d7edb(0x1c6)]({
|
|
275
|
-
'matchName': _0x545408['id'],
|
|
276
|
-
'matchNameLower': _0x545408['id'][_0x1d7edb(_0x1a4222._0x33af80)](),
|
|
277
|
-
'participantId': _0x545408['id']
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
return _0x2c05a8;
|
|
281
|
-
}
|
|
282
|
-
function extractMentionedParticipantIds(_0xae57c8, _0x4ce3c3) {
|
|
283
|
-
const _0x2c4dfd = {
|
|
284
|
-
_0x1ebb88: 0x215,
|
|
285
|
-
_0x29d4a6: 0x1c2,
|
|
286
|
-
_0x2f5a73: 0x20e,
|
|
287
|
-
_0x53e145: 0x1cb,
|
|
288
|
-
_0x5da33a: 0x2b5,
|
|
289
|
-
_0x26cee6: 0x25c,
|
|
290
|
-
_0x13647c: 0x2da
|
|
291
|
-
}, _0x4e22bd = _0x4d2358, _0x767409 = buildMatchableEntries(_0x4ce3c3)[_0x4e22bd(_0x2c4dfd._0x1ebb88)]((_0x419b34, _0x557c91) => _0x557c91[_0x4e22bd(0x25c)][_0x4e22bd(0x2da)] - _0x419b34[_0x4e22bd(0x25c)][_0x4e22bd(0x2da)]), _0x335988 = [], _0x3db3bc = new Set();
|
|
292
|
-
for (let _0x2a253a = 0x0; _0x2a253a < _0xae57c8['length']; _0x2a253a += 0x1) {
|
|
293
|
-
if (_0xae57c8[_0x2a253a] !== '@' || !isMentionBoundary(_0xae57c8[_0x2a253a - 0x1]))
|
|
294
|
-
continue;
|
|
295
|
-
const _0x221fe9 = _0xae57c8[_0x4e22bd(_0x2c4dfd._0x29d4a6)](_0x2a253a + 0x1), _0x4c8603 = _0x221fe9['toLocaleLowerCase'](), _0xc40064 = _0x767409[_0x4e22bd(_0x2c4dfd._0x2f5a73)](_0x486bc5 => {
|
|
296
|
-
const _0x4c9b88 = _0x4e22bd;
|
|
297
|
-
if (!_0x4c8603[_0x4c9b88(0x1a2)](_0x486bc5['matchNameLower']))
|
|
298
|
-
return ![];
|
|
299
|
-
return isMentionTerminal(_0x221fe9[_0x486bc5['matchName']['length']]);
|
|
300
|
-
});
|
|
301
|
-
if (!_0xc40064 || _0x3db3bc[_0x4e22bd(_0x2c4dfd._0x53e145)](_0xc40064[_0x4e22bd(_0x2c4dfd._0x5da33a)]))
|
|
302
|
-
continue;
|
|
303
|
-
_0x3db3bc[_0x4e22bd(0x2b1)](_0xc40064['participantId']), _0x335988[_0x4e22bd(0x1c6)](_0xc40064['participantId']), _0x2a253a += _0xc40064[_0x4e22bd(_0x2c4dfd._0x26cee6)][_0x4e22bd(_0x2c4dfd._0x13647c)];
|
|
304
|
-
}
|
|
305
|
-
return _0x335988;
|
|
306
|
-
}
|
|
307
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
308
|
-
function anySignal(..._0x490ffb) {
|
|
309
|
-
const _0x2c4006 = {
|
|
310
|
-
_0x4f9d0f: 0x1a0,
|
|
311
|
-
_0x55f69a: 0x19e,
|
|
312
|
-
_0x5e56d7: 0x175
|
|
313
|
-
}, _0xd304b1 = _0x4d2358, _0x1a5856 = new AbortController();
|
|
314
|
-
for (const _0x10ad66 of _0x490ffb) {
|
|
315
|
-
if (_0x10ad66['aborted'])
|
|
316
|
-
return _0x1a5856[_0xd304b1(_0x2c4006._0x4f9d0f)](_0x10ad66[_0xd304b1(0x277)]), _0x1a5856[_0xd304b1(0x175)];
|
|
317
|
-
_0x10ad66[_0xd304b1(_0x2c4006._0x55f69a)](_0xd304b1(_0x2c4006._0x4f9d0f), () => _0x1a5856['abort'](_0x10ad66[_0xd304b1(0x277)]), {
|
|
318
|
-
'once': !![],
|
|
319
|
-
'signal': _0x1a5856[_0xd304b1(_0x2c4006._0x5e56d7)]
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
return _0x1a5856[_0xd304b1(_0x2c4006._0x5e56d7)];
|
|
323
|
-
}
|
|
324
|
-
function createInternalAgentClient(_0x414c57) {
|
|
325
|
-
const _0xebf19e = {
|
|
326
|
-
_0x29846a: 0x1a5,
|
|
327
|
-
_0x49c16a: 0x2eb,
|
|
328
|
-
_0x579596: 0x2eb,
|
|
329
|
-
_0x2fc34a: 0x1ea,
|
|
330
|
-
_0x3f1f2d: 0x1ea
|
|
331
|
-
}, _0x3532c3 = {
|
|
332
|
-
_0x21f1f3: 0x1d6,
|
|
333
|
-
_0x4cecc7: 0x214,
|
|
334
|
-
_0x13b820: 0x19f,
|
|
335
|
-
_0x2b5b2d: 0x2da,
|
|
336
|
-
_0xd3c9b7: 0x173,
|
|
337
|
-
_0x38ae07: 0x2b6,
|
|
338
|
-
_0x16c0fd: 0x2d2,
|
|
339
|
-
_0x5b3565: 0x29f,
|
|
340
|
-
_0x9776a1: 0x28f,
|
|
341
|
-
_0x21668f: 0x28f,
|
|
342
|
-
_0x292470: 0x190,
|
|
343
|
-
_0x563339: 0x284,
|
|
344
|
-
_0x3a5ccd: 0x284,
|
|
345
|
-
_0x4732a5: 0x25d,
|
|
346
|
-
_0x5b2b0f: 0x20a,
|
|
347
|
-
_0x5d007d: 0x2d3,
|
|
348
|
-
_0x4deef1: 0x2c4,
|
|
349
|
-
_0x139fc5: 0x1c6,
|
|
350
|
-
_0x4fdaac: 0x262,
|
|
351
|
-
_0x231346: 0x1ed,
|
|
352
|
-
_0x109268: 0x231,
|
|
353
|
-
_0x448b21: 0x231,
|
|
354
|
-
_0x1fbd2c: 0x195,
|
|
355
|
-
_0x2bf7de: 0x1e4,
|
|
356
|
-
_0x14ef55: 0x28f,
|
|
357
|
-
_0x3b2aa6: 0x231,
|
|
358
|
-
_0x1acef0: 0x2de,
|
|
359
|
-
_0x14834a: 0x1f5
|
|
360
|
-
}, _0xf0a8a7 = {
|
|
361
|
-
_0x358621: 0x2bb,
|
|
362
|
-
_0x5dbb85: 0x19b,
|
|
363
|
-
_0x42c993: 0x230
|
|
364
|
-
}, _0x23e983 = {
|
|
365
|
-
_0x4aeab4: 0x1aa,
|
|
366
|
-
_0x2fe059: 0x175,
|
|
367
|
-
_0xc99b3: 0x183,
|
|
368
|
-
_0x6daf5b: 0x27c,
|
|
369
|
-
_0x593319: 0x1c9,
|
|
370
|
-
_0x885208: 0x214
|
|
371
|
-
}, _0x183af5 = {
|
|
372
|
-
_0x1675d7: 0x28a,
|
|
373
|
-
_0x2d57e9: 0x27a,
|
|
374
|
-
_0x14de29: 0x249,
|
|
375
|
-
_0x15c34b: 0x27c,
|
|
376
|
-
_0x3b0a8f: 0x240,
|
|
377
|
-
_0x28e5b6: 0x2a1,
|
|
378
|
-
_0x54b882: 0x214,
|
|
379
|
-
_0x59c887: 0x2dc
|
|
380
|
-
}, _0x58d3cb = {
|
|
381
|
-
_0x451e38: 0x275,
|
|
382
|
-
_0x2f868f: 0x246,
|
|
383
|
-
_0x1515ff: 0x178
|
|
384
|
-
}, _0x5a8b12 = {
|
|
385
|
-
_0xb7e36f: 0x275,
|
|
386
|
-
_0x2be5c9: 0x212,
|
|
387
|
-
_0x455f8b: 0x240
|
|
388
|
-
}, _0x171a81 = {
|
|
389
|
-
_0x2117ce: 0x246,
|
|
390
|
-
_0x2e36cf: 0x2ad,
|
|
391
|
-
_0x1e120b: 0x240
|
|
392
|
-
}, _0x2bfba5 = {
|
|
393
|
-
_0x49f70b: 0x2bb,
|
|
394
|
-
_0x5cdca6: 0x275
|
|
395
|
-
}, _0x8e09bf = {
|
|
396
|
-
_0x56274a: 0x1d7,
|
|
397
|
-
_0x47fc7e: 0x232,
|
|
398
|
-
_0x3ee3b2: 0x183,
|
|
399
|
-
_0x535120: 0x214
|
|
400
|
-
}, _0x2c2003 = {
|
|
401
|
-
_0x53aad8: 0x1d7,
|
|
402
|
-
_0x6fd87d: 0x2a7,
|
|
403
|
-
_0x3c49b8: 0x211
|
|
404
|
-
}, _0x183c31 = {
|
|
405
|
-
_0x413bd0: 0x2c2,
|
|
406
|
-
_0x18ba23: 0x2a4,
|
|
407
|
-
_0x5aa9ad: 0x214,
|
|
408
|
-
_0x1e38d6: 0x1a7
|
|
409
|
-
}, _0x4a16f5 = {
|
|
410
|
-
_0x131d33: 0x2b7,
|
|
411
|
-
_0x14c45a: 0x2a6,
|
|
412
|
-
_0x59de77: 0x2da,
|
|
413
|
-
_0x5e3ca7: 0x28a
|
|
414
|
-
}, _0x446fe3 = {
|
|
415
|
-
_0x28502b: 0x230,
|
|
416
|
-
_0x365ba0: 0x28a,
|
|
417
|
-
_0x379b5a: 0x2d0,
|
|
418
|
-
_0x1e82e2: 0x2a6,
|
|
419
|
-
_0xef7ee8: 0x19b,
|
|
420
|
-
_0x3c4ace: 0x25b,
|
|
421
|
-
_0x206021: 0x246,
|
|
422
|
-
_0x377637: 0x179,
|
|
423
|
-
_0x38ed31: 0x2d2,
|
|
424
|
-
_0x5da74d: 0x285
|
|
425
|
-
}, _0x46422a = { _0x466d24: 0x2d3 }, _0x2272f9 = {
|
|
426
|
-
_0x2c42f0: 0x241,
|
|
427
|
-
_0x547485: 0x2b5,
|
|
428
|
-
_0x51f46b: 0x2c5
|
|
429
|
-
}, _0x364f41 = {
|
|
430
|
-
_0x52b14c: 0x270,
|
|
431
|
-
_0x1ae1ff: 0x1f3,
|
|
432
|
-
_0x1d9a32: 0x190,
|
|
433
|
-
_0x18ed35: 0x1a2,
|
|
434
|
-
_0x5e17ec: 0x1f3,
|
|
435
|
-
_0x3fad14: 0x28a,
|
|
436
|
-
_0xa795a1: 0x28a
|
|
437
|
-
}, _0x470f8b = {
|
|
438
|
-
_0x1cafc9: 0x190,
|
|
439
|
-
_0x1a88e6: 0x28a,
|
|
440
|
-
_0x24c4cd: 0x1c2,
|
|
441
|
-
_0x1f5c96: 0x270
|
|
442
|
-
}, _0x3aeb17 = {
|
|
443
|
-
_0x40194f: 0x1e2,
|
|
444
|
-
_0x1a4b7a: 0x1ad
|
|
445
|
-
}, _0x55475d = { _0x3cf281: 0x19a }, _0x32c852 = {
|
|
446
|
-
_0xc88489: 0x179,
|
|
447
|
-
_0x4e2db3: 0x214,
|
|
448
|
-
_0x549e6f: 0x221,
|
|
449
|
-
_0x49f47f: 0x2d2,
|
|
450
|
-
_0xd782cc: 0x2d2,
|
|
451
|
-
_0x22fff2: 0x1dc,
|
|
452
|
-
_0x1d54a3: 0x214,
|
|
453
|
-
_0x42f819: 0x2d3
|
|
454
|
-
}, _0x438bb9 = {
|
|
455
|
-
_0x58a24b: 0x275,
|
|
456
|
-
_0x3ea401: 0x249,
|
|
457
|
-
_0x32e00a: 0x240,
|
|
458
|
-
_0x192625: 0x270,
|
|
459
|
-
_0x32440b: 0x1e1,
|
|
460
|
-
_0x119039: 0x214
|
|
461
|
-
}, _0x32195c = {
|
|
462
|
-
_0x1128c9: 0x2a4,
|
|
463
|
-
_0x145871: 0x1e5
|
|
464
|
-
}, _0x8f61f9 = {
|
|
465
|
-
_0x576eb9: 0x1d1,
|
|
466
|
-
_0x47b69c: 0x2a4,
|
|
467
|
-
_0x5ca639: 0x1e9
|
|
468
|
-
}, _0x57d196 = {
|
|
469
|
-
_0x152bd6: 0x175,
|
|
470
|
-
_0x1faad8: 0x175
|
|
471
|
-
}, _0x2f1c46 = {
|
|
472
|
-
_0x165929: 0x1d0,
|
|
473
|
-
_0x428af0: 0x18a,
|
|
474
|
-
_0x33c9f1: 0x2b4,
|
|
475
|
-
_0x48deb8: 0x1ae,
|
|
476
|
-
_0x2e3ea8: 0x2d0
|
|
477
|
-
}, _0x357b47 = {
|
|
478
|
-
_0x596186: 0x29e,
|
|
479
|
-
_0x75388d: 0x1b1,
|
|
480
|
-
_0x47b389: 0x27e
|
|
481
|
-
}, _0x2fb362 = {
|
|
482
|
-
_0x1f7fdf: 0x2b0,
|
|
483
|
-
_0x330d1b: 0x1ea,
|
|
484
|
-
_0x118226: 0x29a,
|
|
485
|
-
_0x47a57d: 0x1f2,
|
|
486
|
-
_0x2b83fb: 0x2d9
|
|
487
|
-
}, _0x3f80b0 = _0x4d2358, _0x1c7f27 = _0x414c57[_0x3f80b0(_0xebf19e._0x29846a)] ?? fetch, _0x1add34 = _0x414c57[_0x3f80b0(0x1f1)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2cc475 = typeof _0x414c57[_0x3f80b0(0x2eb)] === 'number' && _0x414c57[_0x3f80b0(_0xebf19e._0x49c16a)] > 0x0 ? _0x414c57[_0x3f80b0(_0xebf19e._0x579596)] : 0x0, _0x424d9c = _0x414c57[_0x3f80b0(0x1c3)]?.[_0x3f80b0(_0xebf19e._0x2fc34a)]() || void 0x0, _0x48cd89 = _0x414c57['sessionId']?.[_0x3f80b0(_0xebf19e._0x3f1f2d)]() || void 0x0, _0x49936f = _0x414c57[_0x3f80b0(0x18b)] === !![], _0x43d08a = _0x414c57['workerSessionId']?.[_0x3f80b0(0x1ea)]() || void 0x0, _0x1b117d = _0x414c57[_0x3f80b0(0x255)]?.[_0x3f80b0(0x1ea)]() || void 0x0, _0x351ca8 = createHeaders(_0x414c57[_0x3f80b0(0x2ab)]), _0x39644f = toHttpBaseUrl(_0x414c57['serverUrl']);
|
|
488
|
-
let _0xfd3bb8 = null;
|
|
489
|
-
const _0x1d5000 = new Map();
|
|
490
|
-
let _0x1659db = _0x2cc475, _0x56e396 = _0x2cc475;
|
|
491
|
-
function _0x28362b(_0x1b7725) {
|
|
492
|
-
const _0x49e45c = _0x3f80b0, _0x4ea019 = _0x1b7725[_0x49e45c(0x193)][_0x49e45c(0x25a)]['get'](_0x49e45c(0x1c9)) ?? _0x49e45c(_0x2fb362._0x1f7fdf), _0x3f98bf = _0x1b7725['bodyText'][_0x49e45c(_0x2fb362._0x330d1b)]()[_0x49e45c(0x1a1)](/\s+/g, '\x20')[_0x49e45c(0x1c2)](0x0, 0x78) || _0x49e45c(_0x2fb362._0x118226);
|
|
493
|
-
return _0x49e45c(_0x2fb362._0x47a57d) + _0x1b7725[_0x49e45c(0x1ef)] + _0x49e45c(0x29c) + _0x1b7725['response'][_0x49e45c(0x183)] + _0x49e45c(0x201) + _0x4ea019 + _0x49e45c(_0x2fb362._0x2b83fb) + _0x3f98bf + _0x49e45c(0x203);
|
|
494
|
-
}
|
|
495
|
-
async function _0x15eff3(_0x2097b3, _0xc59078) {
|
|
496
|
-
const _0x202b1a = _0x3f80b0, _0x17fce8 = Buffer[_0x202b1a(0x1ba)](await _0xc59078[_0x202b1a(_0x357b47._0x596186)]())[_0x202b1a(_0x357b47._0x75388d)](_0x202b1a(_0x357b47._0x47b389));
|
|
497
|
-
if (!_0x17fce8[_0x202b1a(0x1ea)]())
|
|
498
|
-
return {};
|
|
499
|
-
try {
|
|
500
|
-
return JSON[_0x202b1a(0x235)](_0x17fce8);
|
|
501
|
-
} catch {
|
|
502
|
-
throw new Error(_0x28362b({
|
|
503
|
-
'bodyText': _0x17fce8,
|
|
504
|
-
'requestUrl': _0x2097b3,
|
|
505
|
-
'response': _0xc59078
|
|
506
|
-
}));
|
|
507
|
-
}
|
|
508
|
-
}
|
|
509
|
-
function _0x30eb76(_0x3ae7c5, _0x599f14) {
|
|
510
|
-
const _0x147a72 = _0x3f80b0, _0x17a4e9 = typeof _0x599f14['idempotency_key'] === 'string' ? _0x599f14[_0x147a72(0x267)]['trim']() : '';
|
|
511
|
-
if (_0x17a4e9)
|
|
512
|
-
return _0x17a4e9;
|
|
513
|
-
const _0x418f50 = Date[_0x147a72(_0x2f1c46._0x165929)]();
|
|
514
|
-
for (const [_0x1fb720, _0x45a899] of _0x1d5000) {
|
|
515
|
-
_0x45a899[_0x147a72(_0x2f1c46._0x428af0)] <= _0x418f50 && _0x1d5000[_0x147a72(0x1de)](_0x1fb720);
|
|
516
|
-
}
|
|
517
|
-
const _0x19219d = {
|
|
518
|
-
..._0x599f14,
|
|
519
|
-
'idempotency_key': void 0x0
|
|
520
|
-
}, _0x72b543 = createHash('sha256')['update'](_0x3ae7c5 + ':' + stableStringify(_0x19219d))[_0x147a72(_0x2f1c46._0x33c9f1)](_0x147a72(_0x2f1c46._0x48deb8)), _0x1744ad = _0x3ae7c5 + ':' + _0x72b543, _0x181e3f = _0x1d5000[_0x147a72(0x20a)](_0x1744ad);
|
|
521
|
-
if (_0x181e3f)
|
|
522
|
-
return _0x181e3f[_0x147a72(0x16f)];
|
|
523
|
-
const _0x110e91 = _0x147a72(0x22d) + _0x3ae7c5 + ':' + randomUUID();
|
|
524
|
-
return _0x1d5000[_0x147a72(_0x2f1c46._0x2e3ea8)](_0x1744ad, {
|
|
525
|
-
'expiresAt': _0x418f50 + 0x5 * 0x3c * 0x3e8,
|
|
526
|
-
'value': _0x110e91
|
|
527
|
-
}), _0x110e91;
|
|
528
|
-
}
|
|
529
|
-
async function _0x5455c6(_0x36c2b4, _0x352ff1) {
|
|
530
|
-
const _0x11775c = _0x3f80b0, _0x109cf5 = new AbortController(), _0x327567 = setTimeout(() => _0x109cf5[_0x11775c(0x1a0)](), _0x1add34), _0x12ba6b = _0x352ff1?.['signal'] ? anySignal(_0x352ff1[_0x11775c(0x175)], _0x109cf5[_0x11775c(0x175)]) : _0x109cf5[_0x11775c(0x175)], _0x50036d = '' + _0x39644f + _0x36c2b4;
|
|
531
|
-
try {
|
|
532
|
-
const _0x429491 = await _0x1c7f27(_0x50036d, {
|
|
533
|
-
..._0x352ff1,
|
|
534
|
-
'signal': _0x12ba6b
|
|
535
|
-
}), _0x5d5ac7 = await _0x15eff3(_0x50036d, _0x429491);
|
|
536
|
-
if (!_0x429491['ok'] || _0x5d5ac7[_0x11775c(0x1a9)] === ![])
|
|
537
|
-
throw new Error(asErrorMessage(_0x5d5ac7[_0x11775c(0x2ce)], _0x11775c(0x1e5) + _0x429491[_0x11775c(0x183)]));
|
|
538
|
-
return _0x5d5ac7;
|
|
539
|
-
} finally {
|
|
540
|
-
clearTimeout(_0x327567);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
async function _0x3cd970(_0x46efea, _0x3edf84) {
|
|
544
|
-
const _0x21d4c0 = _0x3f80b0, _0x4dc81b = new AbortController(), _0x42eee6 = setTimeout(() => _0x4dc81b[_0x21d4c0(0x1a0)](), _0x1add34), _0xfdacce = _0x3edf84?.[_0x21d4c0(0x175)] ? anySignal(_0x3edf84[_0x21d4c0(_0x57d196._0x152bd6)], _0x4dc81b[_0x21d4c0(_0x57d196._0x1faad8)]) : _0x4dc81b['signal'], _0x484c07 = '' + _0x39644f + _0x46efea;
|
|
545
|
-
try {
|
|
546
|
-
const _0x344907 = await _0x1c7f27(_0x484c07, {
|
|
547
|
-
..._0x3edf84,
|
|
548
|
-
'signal': _0xfdacce
|
|
549
|
-
}), _0x5cd37a = await _0x15eff3(_0x484c07, _0x344907);
|
|
550
|
-
if (!_0x344907['ok'])
|
|
551
|
-
throw new Error(asErrorMessage(_0x5cd37a[_0x21d4c0(0x2ce)], _0x21d4c0(0x1e5) + _0x344907[_0x21d4c0(0x183)]));
|
|
552
|
-
return _0x5cd37a;
|
|
553
|
-
} finally {
|
|
554
|
-
clearTimeout(_0x42eee6);
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
async function _0x2a709b(_0x286d69) {
|
|
558
|
-
const _0x2cd6f1 = _0x3f80b0;
|
|
559
|
-
if (!_0x48cd89 || _0x286d69 <= _0x56e396)
|
|
560
|
-
return;
|
|
561
|
-
await _0x5455c6(_0x2cd6f1(0x1b9) + encodeURIComponent(_0x48cd89) + _0x2cd6f1(_0x8f61f9._0x576eb9), {
|
|
562
|
-
'body': JSON[_0x2cd6f1(_0x8f61f9._0x47b69c)]({ 'lastSeenSeq': _0x286d69 }),
|
|
563
|
-
'headers': _0x351ca8,
|
|
564
|
-
'method': _0x2cd6f1(_0x8f61f9._0x5ca639)
|
|
565
|
-
}), _0x56e396 = _0x286d69;
|
|
566
|
-
}
|
|
567
|
-
async function _0x4d29f6(_0x5aad0a) {
|
|
568
|
-
const _0x49834d = _0x3f80b0;
|
|
569
|
-
if (!_0x424d9c || !_0x43d08a || _0x5aad0a <= _0x56e396)
|
|
570
|
-
return;
|
|
571
|
-
const _0x19b159 = await _0x1c7f27(_0x424d9c + _0x49834d(0x2c8), {
|
|
572
|
-
'body': JSON[_0x49834d(_0x32195c._0x1128c9)]({
|
|
573
|
-
'last_seen_seq': _0x5aad0a,
|
|
574
|
-
'worker_session_id': _0x43d08a
|
|
575
|
-
}),
|
|
576
|
-
'headers': { 'Content-Type': _0x49834d(0x17d) },
|
|
577
|
-
'method': _0x49834d(0x240)
|
|
578
|
-
});
|
|
579
|
-
if (!_0x19b159['ok'])
|
|
580
|
-
throw new Error(_0x49834d(_0x32195c._0x145871) + _0x19b159['status']);
|
|
581
|
-
_0x56e396 = _0x5aad0a;
|
|
582
|
-
}
|
|
583
|
-
async function _0xb24546(_0x5d7842) {
|
|
584
|
-
const _0x25df9e = _0x3f80b0, _0x22220b = parseTarget(_0x5d7842), _0x5495f9 = await _0x5455c6(_0x25df9e(_0x438bb9._0x58a24b) + _0x414c57[_0x25df9e(0x246)] + _0x25df9e(0x2d1), {
|
|
585
|
-
'body': JSON[_0x25df9e(0x2a4)]({ 'target': _0x22220b[_0x25df9e(_0x438bb9._0x3ea401)] }),
|
|
586
|
-
'headers': _0x351ca8,
|
|
587
|
-
'method': _0x25df9e(_0x438bb9._0x32e00a)
|
|
588
|
-
});
|
|
589
|
-
return {
|
|
590
|
-
'channelId': _0x5495f9[_0x25df9e(0x214)]?.[_0x25df9e(0x2a6)] ?? '',
|
|
591
|
-
'target': _0x22220b[_0x25df9e(_0x438bb9._0x192625)],
|
|
592
|
-
'task': _0x5495f9[_0x25df9e(0x214)]?.[_0x25df9e(_0x438bb9._0x32440b)],
|
|
593
|
-
'threadId': _0x5495f9[_0x25df9e(_0x438bb9._0x119039)]?.[_0x25df9e(0x28a)],
|
|
594
|
-
'threadNumber': _0x5495f9[_0x25df9e(0x214)]?.['threadNumber']
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
async function _0x3d2d05(_0x3c9bf3 = {}) {
|
|
598
|
-
const _0x5c28e9 = _0x3f80b0;
|
|
599
|
-
if (!_0x3c9bf3['forceRefresh'] && _0xfd3bb8)
|
|
600
|
-
return _0xfd3bb8;
|
|
601
|
-
return _0xfd3bb8 = (async () => {
|
|
602
|
-
const _0x5ba3f6 = _0x31ce, _0x3b03be = await _0x5455c6(_0x5ba3f6(0x275) + _0x414c57['agentId'] + '/server', {
|
|
603
|
-
'headers': _0x351ca8,
|
|
604
|
-
'method': _0x5ba3f6(_0x32c852._0xc88489)
|
|
605
|
-
}), _0x359b05 = _0x3b03be[_0x5ba3f6(_0x32c852._0x4e2db3)]?.[_0x5ba3f6(0x2f0)] ?? [], _0x1f63a7 = _0x359b05[_0x5ba3f6(_0x32c852._0x549e6f)](_0x542ca5 => _0x542ca5['participant']?.[_0x5ba3f6(0x2d8)] === _0x5ba3f6(0x1e2))[_0x5ba3f6(_0x32c852._0x49f47f)](_0x4f9bdd => ({
|
|
606
|
-
'id': _0x50756a(_0x4f9bdd),
|
|
607
|
-
'name': _0x5c2eba(_0x4f9bdd)
|
|
608
|
-
}))[_0x5ba3f6(0x221)](_0xb2a9d8 => _0xb2a9d8['id']), _0x4bc9e9 = _0x359b05[_0x5ba3f6(0x221)](_0x30b642 => _0x30b642[_0x5ba3f6(0x2c5)]?.[_0x5ba3f6(0x2d8)] !== 'agent')[_0x5ba3f6(_0x32c852._0xd782cc)](_0x3082c7 => ({
|
|
609
|
-
'id': _0x50756a(_0x3082c7),
|
|
610
|
-
'name': _0x5c2eba(_0x3082c7)
|
|
611
|
-
}))['filter'](_0x15cea3 => _0x15cea3['id']), _0x3cd1be = _0x3b03be[_0x5ba3f6(0x214)]?.[_0x5ba3f6(_0x32c852._0x22fff2)]['id'] ?? '';
|
|
612
|
-
return {
|
|
613
|
-
'agents': _0x1f63a7,
|
|
614
|
-
'channels': _0x3b03be[_0x5ba3f6(_0x32c852._0x1d54a3)]?.['channels'] ?? [],
|
|
615
|
-
'humans': _0x4bc9e9,
|
|
616
|
-
'serverId': _0x3cd1be,
|
|
617
|
-
'serverName': _0x3b03be[_0x5ba3f6(_0x32c852._0x4e2db3)]?.[_0x5ba3f6(0x1dc)][_0x5ba3f6(_0x32c852._0x42f819)] ?? _0x3cd1be
|
|
618
|
-
};
|
|
619
|
-
})()[_0x5c28e9(_0x55475d._0x3cf281)](_0x2a5c0b => {
|
|
620
|
-
_0xfd3bb8 = null;
|
|
621
|
-
throw _0x2a5c0b;
|
|
622
|
-
}), _0xfd3bb8;
|
|
623
|
-
}
|
|
624
|
-
function _0x1ae938(_0x50fae0, _0x555386) {
|
|
625
|
-
const _0x6fb9f6 = _0x3f80b0;
|
|
626
|
-
return _0x555386['agents'][_0x6fb9f6(0x1bd)](_0x5f3f99 => _0x5f3f99['id'] === _0x50fae0 || _0x5f3f99[_0x6fb9f6(0x2d3)] === _0x50fae0) ? _0x6fb9f6(_0x3aeb17._0x40194f) : _0x6fb9f6(_0x3aeb17._0x1a4b7a);
|
|
627
|
-
}
|
|
628
|
-
function _0x242c8c(_0x1d3009) {
|
|
629
|
-
const _0x4c2a8b = _0x3f80b0;
|
|
630
|
-
if (_0x1d3009[_0x4c2a8b(0x284)] != null)
|
|
631
|
-
return _0x1d3009['channelTarget'] + ':t' + _0x1d3009['threadNumber'];
|
|
632
|
-
if (_0x1d3009[_0x4c2a8b(_0x470f8b._0x1cafc9)])
|
|
633
|
-
return _0x1d3009[_0x4c2a8b(0x270)] + ':' + _0x1d3009['rootMessageId'];
|
|
634
|
-
if (_0x1d3009[_0x4c2a8b(_0x470f8b._0x1a88e6)])
|
|
635
|
-
return _0x1d3009['channelTarget'] + ':' + _0x1d3009[_0x4c2a8b(_0x470f8b._0x1a88e6)][_0x4c2a8b(_0x470f8b._0x24c4cd)](0x0, 0x8);
|
|
636
|
-
return _0x1d3009[_0x4c2a8b(_0x470f8b._0x1f5c96)];
|
|
637
|
-
}
|
|
638
|
-
function _0x39f7df(_0x53ccfc, _0x14c889) {
|
|
639
|
-
const _0x2c586c = _0x3f80b0;
|
|
640
|
-
try {
|
|
641
|
-
const _0x42d99d = parseTarget(_0x53ccfc);
|
|
642
|
-
if (_0x42d99d[_0x2c586c(0x231)] !== _0x2c586c(0x200) || _0x42d99d['channelTarget'] !== _0x14c889[_0x2c586c(_0x364f41._0x52b14c)])
|
|
643
|
-
return ![];
|
|
644
|
-
if (_0x14c889['threadNumber'] != null && _0x42d99d[_0x2c586c(_0x364f41._0x1ae1ff)] === 't' + _0x14c889['threadNumber'])
|
|
645
|
-
return !![];
|
|
646
|
-
if (_0x14c889['rootMessageId'])
|
|
647
|
-
return _0x42d99d[_0x2c586c(_0x364f41._0x1ae1ff)] === _0x14c889[_0x2c586c(0x190)] || _0x14c889[_0x2c586c(_0x364f41._0x1d9a32)][_0x2c586c(_0x364f41._0x18ed35)](_0x42d99d[_0x2c586c(_0x364f41._0x5e17ec)]);
|
|
648
|
-
if (_0x14c889[_0x2c586c(_0x364f41._0x3fad14)])
|
|
649
|
-
return _0x42d99d[_0x2c586c(0x1f3)] === _0x14c889[_0x2c586c(0x28a)] || _0x14c889[_0x2c586c(_0x364f41._0xa795a1)][_0x2c586c(_0x364f41._0x18ed35)](_0x42d99d[_0x2c586c(0x1f3)]);
|
|
650
|
-
return ![];
|
|
651
|
-
} catch {
|
|
652
|
-
return ![];
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
function _0x50756a(_0xecb108) {
|
|
656
|
-
const _0x4e2414 = _0x3f80b0;
|
|
657
|
-
return _0xecb108[_0x4e2414(_0x2272f9._0x2c42f0)]?.[_0x4e2414(_0x2272f9._0x547485)] ?? _0xecb108[_0x4e2414(_0x2272f9._0x51f46b)]?.['id'] ?? _0xecb108['participantId'] ?? '';
|
|
658
|
-
}
|
|
659
|
-
function _0x5c2eba(_0x5f31a4) {
|
|
660
|
-
const _0x51bb87 = _0x3f80b0;
|
|
661
|
-
return _0x5f31a4[_0x51bb87(0x2c5)]?.[_0x51bb87(_0x46422a._0x466d24)] ?? _0x50756a(_0x5f31a4);
|
|
662
|
-
}
|
|
663
|
-
async function _0x495b00(_0x50bcb2) {
|
|
664
|
-
const _0x16b827 = _0x3f80b0, _0x2f8e13 = Math['min'](_0x50bcb2[_0x16b827(_0x446fe3._0x28502b)] ?? 0x32, 0x64), _0x19897d = await _0x3d2d05(), _0x3542dd = new URLSearchParams();
|
|
665
|
-
_0x3542dd[_0x16b827(0x2d0)](_0x16b827(_0x446fe3._0x28502b), String(_0x2f8e13));
|
|
666
|
-
_0x50bcb2[_0x16b827(_0x446fe3._0x365ba0)] ? (_0x3542dd[_0x16b827(0x2d0)](_0x16b827(0x28a), _0x50bcb2[_0x16b827(_0x446fe3._0x365ba0)]), _0x3542dd[_0x16b827(_0x446fe3._0x379b5a)](_0x16b827(_0x446fe3._0x1e82e2), _0x50bcb2['channelId'])) : _0x3542dd[_0x16b827(0x2d0)]('channelId', _0x50bcb2['channelId']);
|
|
667
|
-
_0x50bcb2[_0x16b827(_0x446fe3._0xef7ee8)] && _0x3542dd['set']('cursor', String(_0x50bcb2[_0x16b827(0x19b)]));
|
|
668
|
-
_0x50bcb2[_0x16b827(_0x446fe3._0x3c4ace)] !== void 0x0 && _0x3542dd['set']('after', String(_0x50bcb2['after']));
|
|
669
|
-
const _0x31a5bc = await _0x5455c6(_0x16b827(0x275) + _0x414c57[_0x16b827(_0x446fe3._0x206021)] + _0x16b827(0x20d) + _0x3542dd['toString'](), {
|
|
670
|
-
'headers': _0x351ca8,
|
|
671
|
-
'method': _0x16b827(_0x446fe3._0x377637)
|
|
672
|
-
}), _0x55ff49 = (_0x31a5bc['data'] ?? [])[_0x16b827(_0x446fe3._0x38ed31)](_0x8a2ea1 => ({
|
|
673
|
-
'attachments': (_0x8a2ea1['attachments'] ?? [])['map'](_0x1065c0 => ({
|
|
674
|
-
'filename': _0x1065c0[_0x16b827(0x217)] ?? _0x1065c0['id'],
|
|
675
|
-
'id': _0x1065c0['id']
|
|
676
|
-
})),
|
|
677
|
-
'content': _0x8a2ea1[_0x16b827(0x24a)] ?? '',
|
|
678
|
-
'createdAt': _0x8a2ea1[_0x16b827(0x1ed)],
|
|
679
|
-
..._0x8a2ea1[_0x16b827(0x231)] && _0x8a2ea1['kind'] !== 'chat' ? { 'kind': _0x8a2ea1['kind'] } : {},
|
|
680
|
-
'messageId': _0x8a2ea1['id'],
|
|
681
|
-
'senderName': _0x8a2ea1[_0x16b827(0x1cd)],
|
|
682
|
-
'senderType': _0x1ae938(_0x8a2ea1[_0x16b827(0x1cd)], _0x19897d),
|
|
683
|
-
'seq': _0x8a2ea1[_0x16b827(0x2ac)] ?? 0x0
|
|
684
|
-
}));
|
|
685
|
-
return {
|
|
686
|
-
'channel': _0x50bcb2['channelTarget'],
|
|
687
|
-
'hasMore': _0x31a5bc[_0x16b827(0x1ff)]?.[_0x16b827(_0x446fe3._0x5da74d)] ?? ![],
|
|
688
|
-
'messages': _0x55ff49,
|
|
689
|
-
'nextCursor': _0x31a5bc[_0x16b827(0x1ff)]?.[_0x16b827(0x202)]
|
|
690
|
-
};
|
|
691
|
-
}
|
|
692
|
-
return {
|
|
693
|
-
async 'sendMessage'(_0x4fad98) {
|
|
694
|
-
const _0x4feb85 = _0x3f80b0, _0x4ef182 = await _0xb24546(_0x4fad98[_0x4feb85(0x249)]), _0x21524d = _0x4fad98[_0x4feb85(0x2b7)][_0x4feb85(0x2a5)]('@') ? extractMentionedParticipantIds(_0x4fad98[_0x4feb85(_0x4a16f5._0x131d33)], await _0x3d2d05()) : [], _0x17acbf = await _0x5455c6(_0x4feb85(0x275) + _0x414c57[_0x4feb85(0x246)] + _0x4feb85(0x2db), {
|
|
695
|
-
'body': JSON[_0x4feb85(0x2a4)]({
|
|
696
|
-
'attachment_ids': _0x4fad98['attachmentIds'],
|
|
697
|
-
'bodyMarkdown': _0x4fad98[_0x4feb85(0x2b7)],
|
|
698
|
-
'channelId': _0x4ef182[_0x4feb85(_0x4a16f5._0x14c45a)],
|
|
699
|
-
..._0x21524d[_0x4feb85(_0x4a16f5._0x59de77)] > 0x0 ? { 'mentionedParticipantIds': _0x21524d } : {},
|
|
700
|
-
'threadId': _0x4ef182[_0x4feb85(_0x4a16f5._0x5e3ca7)],
|
|
701
|
-
..._0x4fad98['visibility'] ? { 'visibility': _0x4fad98[_0x4feb85(0x2ec)] } : {}
|
|
702
|
-
}),
|
|
703
|
-
'headers': _0x351ca8,
|
|
704
|
-
'method': _0x4feb85(0x240)
|
|
705
|
-
});
|
|
706
|
-
return { 'messageId': _0x17acbf[_0x4feb85(0x214)]?.['id'] ?? '' };
|
|
707
|
-
},
|
|
708
|
-
async 'listSchedules'() {
|
|
709
|
-
const _0x2cd255 = _0x3f80b0, _0x494f82 = await _0x5455c6(_0x2cd255(0x1f7), {
|
|
710
|
-
'headers': _0x351ca8,
|
|
711
|
-
'method': 'GET'
|
|
712
|
-
});
|
|
713
|
-
return _0x494f82['data'] ?? [];
|
|
714
|
-
},
|
|
715
|
-
async 'claimScheduleRun'(_0x12853c) {
|
|
716
|
-
const _0x67401f = _0x3f80b0, _0x455833 = await _0x5455c6(_0x67401f(_0x183c31._0x413bd0), {
|
|
717
|
-
'body': JSON[_0x67401f(_0x183c31._0x18ba23)](_0x12853c),
|
|
718
|
-
'headers': _0x351ca8,
|
|
719
|
-
'method': _0x67401f(0x240)
|
|
720
|
-
});
|
|
721
|
-
return _0x455833[_0x67401f(_0x183c31._0x5aa9ad)] ?? {
|
|
722
|
-
'granted': ![],
|
|
723
|
-
'runId': null,
|
|
724
|
-
'schedule': null,
|
|
725
|
-
'scheduledFor': _0x12853c[_0x67401f(_0x183c31._0x1e38d6)]
|
|
726
|
-
};
|
|
727
|
-
},
|
|
728
|
-
async 'startScheduleRun'(_0x250111) {
|
|
729
|
-
const _0x45fa23 = _0x3f80b0, _0x1dd363 = await _0x5455c6(_0x45fa23(0x293) + encodeURIComponent(_0x250111[_0x45fa23(_0x2c2003._0x53aad8)]) + _0x45fa23(_0x2c2003._0x6fd87d), {
|
|
730
|
-
'body': JSON['stringify']({}),
|
|
731
|
-
'headers': _0x351ca8,
|
|
732
|
-
'method': _0x45fa23(0x240)
|
|
733
|
-
});
|
|
734
|
-
return _0x1dd363[_0x45fa23(0x214)] ?? {
|
|
735
|
-
'claimedByDaemonId': '',
|
|
736
|
-
'id': _0x250111['runId'],
|
|
737
|
-
'scheduleId': '',
|
|
738
|
-
'status': _0x45fa23(_0x2c2003._0x3c49b8)
|
|
739
|
-
};
|
|
740
|
-
},
|
|
741
|
-
async 'finishScheduleRun'(_0x142ecb) {
|
|
742
|
-
const _0x528337 = _0x3f80b0, _0xe49b82 = await _0x5455c6(_0x528337(0x293) + encodeURIComponent(_0x142ecb[_0x528337(_0x8e09bf._0x56274a)]) + _0x528337(0x1ce), {
|
|
743
|
-
'body': JSON[_0x528337(0x2a4)]({
|
|
744
|
-
'error': _0x142ecb['error'],
|
|
745
|
-
'resultJson': _0x142ecb[_0x528337(_0x8e09bf._0x47fc7e)],
|
|
746
|
-
'status': _0x142ecb[_0x528337(_0x8e09bf._0x3ee3b2)]
|
|
747
|
-
}),
|
|
748
|
-
'headers': _0x351ca8,
|
|
749
|
-
'method': 'POST'
|
|
750
|
-
});
|
|
751
|
-
return _0xe49b82[_0x528337(_0x8e09bf._0x535120)] ?? {
|
|
752
|
-
'nextRunAt': null,
|
|
753
|
-
'run': {
|
|
754
|
-
'claimedByDaemonId': '',
|
|
755
|
-
'id': _0x142ecb[_0x528337(0x1d7)],
|
|
756
|
-
'scheduleId': '',
|
|
757
|
-
'status': _0x142ecb['status']
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
},
|
|
761
|
-
async 'listTasks'(_0x124312) {
|
|
762
|
-
const _0x126c5d = _0x3f80b0, _0x408ac5 = new URLSearchParams();
|
|
763
|
-
return _0x408ac5['set']('channel', _0x124312[_0x126c5d(_0x2bfba5._0x49f70b)]), _0x124312[_0x126c5d(0x183)] && _0x408ac5[_0x126c5d(0x2d0)](_0x126c5d(0x183), _0x124312[_0x126c5d(0x183)]), _0x3cd970(_0x126c5d(_0x2bfba5._0x5cdca6) + _0x414c57[_0x126c5d(0x246)] + '/tasks?' + _0x408ac5['toString'](), {
|
|
764
|
-
'headers': _0x351ca8,
|
|
765
|
-
'method': 'GET'
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
async 'createTasks'(_0x5d2ff0) {
|
|
769
|
-
const _0x549e16 = _0x3f80b0;
|
|
770
|
-
return _0x3cd970(_0x549e16(0x275) + _0x414c57[_0x549e16(0x246)] + _0x549e16(0x191), {
|
|
771
|
-
'body': JSON[_0x549e16(0x2a4)]({
|
|
772
|
-
..._0x5d2ff0,
|
|
773
|
-
'idempotency_key': _0x30eb76('create_tasks', _0x5d2ff0)
|
|
774
|
-
}),
|
|
775
|
-
'headers': _0x351ca8,
|
|
776
|
-
'method': _0x549e16(0x240)
|
|
777
|
-
});
|
|
778
|
-
},
|
|
779
|
-
async 'claimTasks'(_0x272f45) {
|
|
780
|
-
const _0x1080c5 = _0x3f80b0;
|
|
781
|
-
return _0x3cd970(_0x1080c5(0x275) + _0x414c57[_0x1080c5(_0x171a81._0x2117ce)] + _0x1080c5(0x22f), {
|
|
782
|
-
'body': JSON['stringify']({
|
|
783
|
-
..._0x272f45,
|
|
784
|
-
'idempotency_key': _0x30eb76(_0x1080c5(_0x171a81._0x2e36cf), _0x272f45)
|
|
785
|
-
}),
|
|
786
|
-
'headers': _0x351ca8,
|
|
787
|
-
'method': _0x1080c5(_0x171a81._0x1e120b)
|
|
788
|
-
});
|
|
789
|
-
},
|
|
790
|
-
async 'unclaimTask'(_0x212ed5) {
|
|
791
|
-
const _0x4da85e = _0x3f80b0;
|
|
792
|
-
return _0x3cd970(_0x4da85e(_0x5a8b12._0xb7e36f) + _0x414c57['agentId'] + _0x4da85e(0x238), {
|
|
793
|
-
'body': JSON[_0x4da85e(0x2a4)]({
|
|
794
|
-
..._0x212ed5,
|
|
795
|
-
'idempotency_key': _0x30eb76(_0x4da85e(_0x5a8b12._0x2be5c9), _0x212ed5)
|
|
796
|
-
}),
|
|
797
|
-
'headers': _0x351ca8,
|
|
798
|
-
'method': _0x4da85e(_0x5a8b12._0x455f8b)
|
|
799
|
-
});
|
|
800
|
-
},
|
|
801
|
-
async 'updateTaskStatus'(_0x329a82) {
|
|
802
|
-
const _0x38c2d9 = _0x3f80b0;
|
|
803
|
-
return _0x3cd970(_0x38c2d9(_0x58d3cb._0x451e38) + _0x414c57[_0x38c2d9(_0x58d3cb._0x2f868f)] + _0x38c2d9(0x2e0), {
|
|
804
|
-
'body': JSON[_0x38c2d9(0x2a4)]({
|
|
805
|
-
..._0x329a82,
|
|
806
|
-
'idempotency_key': _0x30eb76(_0x38c2d9(_0x58d3cb._0x1515ff), _0x329a82)
|
|
807
|
-
}),
|
|
808
|
-
'headers': _0x351ca8,
|
|
809
|
-
'method': _0x38c2d9(0x240)
|
|
810
|
-
});
|
|
811
|
-
},
|
|
812
|
-
async 'uploadFile'(_0x14811e) {
|
|
813
|
-
const _0x3081db = _0x3f80b0, _0x501157 = await _0xb24546(_0x14811e['channel']);
|
|
814
|
-
if (_0x501157[_0x3081db(_0x183af5._0x1675d7)])
|
|
815
|
-
throw new Error(_0x3081db(_0x183af5._0x2d57e9));
|
|
816
|
-
const _0x5ba51c = await _0x5455c6('/internal/agent/' + _0x414c57[_0x3081db(0x246)] + _0x3081db(0x23e), {
|
|
817
|
-
'body': JSON[_0x3081db(0x2a4)]({
|
|
818
|
-
'channel': _0x501157[_0x3081db(_0x183af5._0x14de29)],
|
|
819
|
-
'contentBase64': _0x14811e[_0x3081db(0x266)],
|
|
820
|
-
'contentType': _0x14811e[_0x3081db(_0x183af5._0x15c34b)],
|
|
821
|
-
'originalFilename': _0x14811e[_0x3081db(0x217)]
|
|
822
|
-
}),
|
|
823
|
-
'headers': _0x351ca8,
|
|
824
|
-
'method': _0x3081db(_0x183af5._0x3b0a8f)
|
|
825
|
-
});
|
|
826
|
-
return {
|
|
827
|
-
'attachmentId': _0x5ba51c[_0x3081db(0x214)]?.['id'] ?? '',
|
|
828
|
-
'filename': _0x5ba51c['data']?.[_0x3081db(_0x183af5._0x28e5b6)] ?? _0x14811e[_0x3081db(0x217)],
|
|
829
|
-
'sizeBytes': _0x5ba51c[_0x3081db(_0x183af5._0x54b882)]?.[_0x3081db(_0x183af5._0x59c887)] ?? 0x0
|
|
830
|
-
};
|
|
831
|
-
},
|
|
832
|
-
async 'downloadAttachment'(_0x247a36) {
|
|
833
|
-
const _0xfc964a = _0x3f80b0, _0x5f236a = await _0x5455c6(_0xfc964a(0x1cc) + _0x247a36, {
|
|
834
|
-
'headers': _0x351ca8,
|
|
835
|
-
'method': 'GET'
|
|
836
|
-
}), _0x52cdde = new AbortController(), _0x53dbd7 = setTimeout(() => _0x52cdde[_0xfc964a(0x1a0)](), _0x1add34);
|
|
837
|
-
try {
|
|
838
|
-
const _0x3d99e5 = await _0x1c7f27(_0x39644f + _0xfc964a(0x1cc) + _0x247a36 + _0xfc964a(_0x23e983._0x4aeab4), {
|
|
839
|
-
'headers': _0x351ca8,
|
|
840
|
-
'method': 'GET',
|
|
841
|
-
'signal': _0x52cdde[_0xfc964a(_0x23e983._0x2fe059)]
|
|
842
|
-
});
|
|
843
|
-
if (!_0x3d99e5['ok'])
|
|
844
|
-
throw new Error(_0xfc964a(0x1e5) + _0x3d99e5[_0xfc964a(_0x23e983._0xc99b3)]);
|
|
845
|
-
return {
|
|
846
|
-
'contentType': _0x5f236a[_0xfc964a(0x214)]?.[_0xfc964a(_0x23e983._0x6daf5b)] ?? _0x3d99e5[_0xfc964a(0x25a)]['get'](_0xfc964a(_0x23e983._0x593319)) ?? 'application/octet-stream',
|
|
847
|
-
'data': Buffer['from'](await _0x3d99e5['arrayBuffer']()),
|
|
848
|
-
'originalFilename': _0x5f236a[_0xfc964a(_0x23e983._0x885208)]?.['originalFilename']
|
|
849
|
-
};
|
|
850
|
-
} finally {
|
|
851
|
-
clearTimeout(_0x53dbd7);
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
async 'listServer'() {
|
|
855
|
-
return _0x3d2d05({ 'forceRefresh': !![] });
|
|
856
|
-
},
|
|
857
|
-
async 'readHistory'(_0x35c632) {
|
|
858
|
-
const _0xc91a07 = _0x3f80b0, _0x5330b9 = await _0xb24546(_0x35c632[_0xc91a07(_0xf0a8a7._0x358621)]);
|
|
859
|
-
return _0x495b00({
|
|
860
|
-
'after': _0x35c632['after'],
|
|
861
|
-
'before': _0x35c632[_0xc91a07(_0xf0a8a7._0x5dbb85)],
|
|
862
|
-
'channelId': _0x5330b9['channelId'],
|
|
863
|
-
'channelTarget': _0x5330b9[_0xc91a07(0x249)],
|
|
864
|
-
'limit': _0x35c632[_0xc91a07(_0xf0a8a7._0x42c993)],
|
|
865
|
-
'threadId': _0x5330b9[_0xc91a07(0x28a)]
|
|
866
|
-
});
|
|
867
|
-
},
|
|
868
|
-
'resolveTarget': _0xb24546,
|
|
869
|
-
async 'checkMessages'() {
|
|
870
|
-
const _0x4b0f4f = _0x3f80b0, _0x1dca99 = new URLSearchParams();
|
|
871
|
-
_0x1dca99['set'](_0x4b0f4f(_0x3532c3._0x21f1f3), String(_0x1659db));
|
|
872
|
-
const _0x2ace35 = _0x1dca99[_0x4b0f4f(0x1b1)](), _0x7ff590 = await _0x5455c6('/internal/agent/' + _0x414c57['agentId'] + '/receive' + (_0x2ace35 ? '?' + _0x2ace35 : ''), {
|
|
873
|
-
'headers': _0x351ca8,
|
|
874
|
-
'method': 'GET'
|
|
875
|
-
}), _0x13349d = _0x7ff590[_0x4b0f4f(_0x3532c3._0x4cecc7)] ?? [], _0x253423 = _0x7ff590[_0x4b0f4f(0x1ff)]?.[_0x4b0f4f(0x202)], _0x2961ec = _0x253423 !== void 0x0 ? Math[_0x4b0f4f(_0x3532c3._0x13b820)](_0x1659db, _0x253423) : _0x13349d[_0x4b0f4f(0x2da)] > 0x0 ? Math[_0x4b0f4f(0x19f)](_0x1659db, _0x13349d[_0x13349d[_0x4b0f4f(_0x3532c3._0x2b5b2d)] - 0x1][_0x4b0f4f(_0x3532c3._0xd3c9b7)]) : _0x1659db, _0x59095c = _0x13349d['filter'](_0x223991 => _0x223991['aggregateType'] === _0x4b0f4f(0x20c)), _0x5da638 = _0x1b117d === void 0x0 && _0x49936f;
|
|
876
|
-
let _0x2629a6 = await _0x3d2d05(), _0x4154ec = new Map(_0x2629a6[_0x4b0f4f(_0x3532c3._0x38ae07)][_0x4b0f4f(0x2d2)](_0x274373 => [
|
|
877
|
-
_0x274373['id'],
|
|
878
|
-
_0x274373
|
|
879
|
-
]));
|
|
880
|
-
const _0x29de0b = _0x59095c[_0x4b0f4f(0x1bd)](_0xfd0f4a => {
|
|
881
|
-
const _0x40fa21 = _0x4b0f4f, _0x39737f = asRecord(_0xfd0f4a[_0x40fa21(0x29f)]), _0x517688 = typeof _0x39737f?.['channelId'] === _0x40fa21(0x28f) ? _0x39737f[_0x40fa21(0x2a6)] : '';
|
|
882
|
-
return Boolean(_0x517688) && !_0x4154ec[_0x40fa21(0x1cb)](_0x517688);
|
|
883
|
-
});
|
|
884
|
-
_0x29de0b && (_0x2629a6 = await _0x3d2d05({ 'forceRefresh': !![] }), _0x4154ec = new Map(_0x2629a6[_0x4b0f4f(0x2b6)][_0x4b0f4f(_0x3532c3._0x16c0fd)](_0x4589b4 => [
|
|
885
|
-
_0x4589b4['id'],
|
|
886
|
-
_0x4589b4
|
|
887
|
-
])));
|
|
888
|
-
const _0x2c5e81 = new Map();
|
|
889
|
-
for (const _0x5a1aa5 of _0x59095c) {
|
|
890
|
-
const _0x4ac685 = asRecord(_0x5a1aa5[_0x4b0f4f(_0x3532c3._0x5b3565)]), _0x45386f = typeof _0x4ac685[_0x4b0f4f(0x2a6)] === _0x4b0f4f(_0x3532c3._0x9776a1) ? _0x4ac685[_0x4b0f4f(0x2a6)] : '';
|
|
891
|
-
if (!_0x45386f)
|
|
892
|
-
continue;
|
|
893
|
-
const _0x250eac = typeof _0x4ac685['threadId'] === _0x4b0f4f(0x28f) ? _0x4ac685['threadId'] : void 0x0, _0x5a9b8e = typeof _0x4ac685['rootMessageId'] === _0x4b0f4f(_0x3532c3._0x21668f) ? _0x4ac685[_0x4b0f4f(_0x3532c3._0x292470)] : void 0x0, _0x350a1a = typeof _0x4ac685[_0x4b0f4f(0x284)] === _0x4b0f4f(0x24f) && Number['isInteger'](_0x4ac685[_0x4b0f4f(_0x3532c3._0x563339)]) ? _0x4ac685[_0x4b0f4f(_0x3532c3._0x3a5ccd)] : void 0x0, _0x4f7dd8 = Boolean(_0x250eac && (!_0x5a9b8e || _0x5a1aa5['aggregateId'] !== _0x5a9b8e)), _0x5381a1 = _0x4f7dd8 ? _0x45386f + ':' + _0x250eac : _0x45386f, _0x50463f = _0x2c5e81[_0x4b0f4f(0x20a)](_0x5381a1) ?? {
|
|
894
|
-
'aggregateIds': [],
|
|
895
|
-
'channelId': _0x45386f,
|
|
896
|
-
'entries': new Map(),
|
|
897
|
-
'isThreadReply': _0x4f7dd8,
|
|
898
|
-
'rootMessageId': _0x5a9b8e,
|
|
899
|
-
'threadNumber': _0x350a1a,
|
|
900
|
-
'threadId': _0x4f7dd8 ? _0x250eac : void 0x0
|
|
901
|
-
};
|
|
902
|
-
_0x50463f['threadNumber'] == null && _0x350a1a != null && (_0x50463f[_0x4b0f4f(0x284)] = _0x350a1a), !_0x50463f['rootMessageId'] && _0x5a9b8e && (_0x50463f['rootMessageId'] = _0x5a9b8e), _0x50463f[_0x4b0f4f(0x210)]['push'](_0x5a1aa5['aggregateId']), _0x50463f[_0x4b0f4f(0x23d)]['set'](_0x5a1aa5[_0x4b0f4f(0x184)], {
|
|
903
|
-
'payloadJson': _0x5a1aa5[_0x4b0f4f(0x29f)],
|
|
904
|
-
'seq': _0x5a1aa5['seq']
|
|
905
|
-
}), _0x2c5e81[_0x4b0f4f(0x2d0)](_0x5381a1, _0x50463f);
|
|
906
|
-
}
|
|
907
|
-
const _0x15db7e = [];
|
|
908
|
-
for (const _0xeb5a0e of _0x2c5e81[_0x4b0f4f(_0x3532c3._0x4732a5)]()) {
|
|
909
|
-
const {
|
|
910
|
-
channelId: _0x48eec7,
|
|
911
|
-
threadId: _0xec3651,
|
|
912
|
-
rootMessageId: _0xd687bb,
|
|
913
|
-
threadNumber: _0x15a556,
|
|
914
|
-
aggregateIds: _0x521262,
|
|
915
|
-
isThreadReply: _0x2e8e0f,
|
|
916
|
-
entries: _0x142350
|
|
917
|
-
} = _0xeb5a0e, _0x1538a9 = _0x4154ec[_0x4b0f4f(_0x3532c3._0x5b2b0f)](_0x48eec7), _0x3aaa03 = _0x1538a9?.[_0x4b0f4f(_0x3532c3._0x5d007d)] ?? _0x48eec7, _0x14f3f6 = _0x1538a9?.['kind'] === 'dm' ? _0x4b0f4f(0x258) + _0x3aaa03 : '#' + _0x3aaa03, _0x416496 = {
|
|
918
|
-
'channelTarget': _0x14f3f6,
|
|
919
|
-
'rootMessageId': _0xd687bb,
|
|
920
|
-
'threadId': _0xec3651,
|
|
921
|
-
'threadNumber': _0x15a556
|
|
922
|
-
}, _0x265268 = await _0x495b00({
|
|
923
|
-
'channelId': _0x48eec7,
|
|
924
|
-
'channelTarget': _0x14f3f6,
|
|
925
|
-
'limit': Math['max'](_0x521262['length'], 0x32),
|
|
926
|
-
'threadId': _0xec3651
|
|
927
|
-
}), _0x75d4d = new Map(_0x265268[_0x4b0f4f(_0x3532c3._0x4deef1)][_0x4b0f4f(0x2d2)](_0x571095 => [
|
|
928
|
-
_0x571095[_0x4b0f4f(0x195)],
|
|
929
|
-
_0x571095
|
|
930
|
-
])), _0x19097b = _0xec3651 ? _0x242c8c(_0x416496) : _0x14f3f6, _0x2fcc30 = _0x1b117d ? _0x2e8e0f && _0x39f7df(_0x1b117d, _0x416496) : !![], _0x567e8c = _0x2e8e0f ? _0x2fcc30 && _0x1b117d ? _0x1b117d : _0x19097b : _0x14f3f6;
|
|
931
|
-
for (const _0x3750fc of _0x521262) {
|
|
932
|
-
if (!_0x2fcc30)
|
|
933
|
-
continue;
|
|
934
|
-
const _0xc4bfed = _0x142350['get'](_0x3750fc), _0x3cffdb = _0xc4bfed ? asRecord(_0xc4bfed[_0x4b0f4f(0x29f)]) : void 0x0, _0xce6602 = _0x3cffdb?.['taskDeliveryMode'] === _0x4b0f4f(0x1eb);
|
|
935
|
-
if (_0x5da638 && _0xce6602)
|
|
936
|
-
continue;
|
|
937
|
-
const _0x158ce6 = _0x75d4d[_0x4b0f4f(0x20a)](_0x3750fc);
|
|
938
|
-
if (_0x158ce6) {
|
|
939
|
-
_0x15db7e[_0x4b0f4f(_0x3532c3._0x139fc5)]({
|
|
940
|
-
'attachments': _0x158ce6[_0x4b0f4f(_0x3532c3._0x4fdaac)],
|
|
941
|
-
'content': _0x158ce6[_0x4b0f4f(0x2b7)],
|
|
942
|
-
'createdAt': _0x158ce6[_0x4b0f4f(_0x3532c3._0x231346)],
|
|
943
|
-
..._0x158ce6[_0x4b0f4f(_0x3532c3._0x109268)] ? { 'kind': _0x158ce6[_0x4b0f4f(_0x3532c3._0x448b21)] } : {},
|
|
944
|
-
'messageId': _0x158ce6[_0x4b0f4f(_0x3532c3._0x1fbd2c)],
|
|
945
|
-
'senderName': _0x158ce6[_0x4b0f4f(_0x3532c3._0x2bf7de)],
|
|
946
|
-
'senderType': _0x158ce6[_0x4b0f4f(0x1b4)],
|
|
947
|
-
'target': _0x567e8c,
|
|
948
|
-
..._0xce6602 ? { 'targetedTask': !![] } : {}
|
|
949
|
-
});
|
|
950
|
-
continue;
|
|
951
|
-
}
|
|
952
|
-
if (_0xc4bfed) {
|
|
953
|
-
const _0x234785 = typeof _0x3cffdb?.['senderParticipantId'] === 'string' ? _0x3cffdb[_0x4b0f4f(0x1cd)] : '', _0x1b3489 = typeof _0x3cffdb?.[_0x4b0f4f(0x24a)] === _0x4b0f4f(_0x3532c3._0x14ef55) ? _0x3cffdb['bodyMarkdown'] : '', _0xf97cd7 = typeof _0x3cffdb?.[_0x4b0f4f(_0x3532c3._0x3b2aa6)] === _0x4b0f4f(_0x3532c3._0x9776a1) && _0x3cffdb[_0x4b0f4f(_0x3532c3._0x448b21)] !== _0x4b0f4f(_0x3532c3._0x1acef0) ? _0x3cffdb[_0x4b0f4f(0x231)] : void 0x0;
|
|
954
|
-
_0x234785 && _0x1b3489 && _0x15db7e[_0x4b0f4f(0x1c6)]({
|
|
955
|
-
'attachments': [],
|
|
956
|
-
'content': _0x1b3489,
|
|
957
|
-
'createdAt': new Date()[_0x4b0f4f(_0x3532c3._0x14834a)](),
|
|
958
|
-
..._0xf97cd7 ? { 'kind': _0xf97cd7 } : {},
|
|
959
|
-
'messageId': _0x3750fc,
|
|
960
|
-
'senderName': _0x234785,
|
|
961
|
-
'senderType': _0x1ae938(_0x234785, _0x2629a6),
|
|
962
|
-
'target': _0x567e8c,
|
|
963
|
-
..._0xce6602 ? { 'targetedTask': !![] } : {}
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
if (_0x2961ec > 0x0) {
|
|
969
|
-
if (_0x48cd89)
|
|
970
|
-
await _0x2a709b(_0x2961ec);
|
|
971
|
-
else
|
|
972
|
-
_0x43d08a && await _0x4d29f6(_0x2961ec);
|
|
973
|
-
}
|
|
974
|
-
return _0x2961ec > _0x1659db && (_0x1659db = _0x2961ec), { 'messages': _0x1b117d ? _0x15db7e : _0x5da638 ? _0x15db7e['filter'](_0x516ac4 => _0x516ac4[_0x4b0f4f(0x1c8)] !== !![]) : _0x15db7e };
|
|
975
|
-
}
|
|
976
|
-
};
|
|
977
|
-
}
|
|
978
|
-
function toLocalTime(_0x48d2f2) {
|
|
979
|
-
const _0x521e1f = {
|
|
980
|
-
_0x15ea83: 0x220,
|
|
981
|
-
_0x499c5d: 0x1f6
|
|
982
|
-
}, _0x40ea53 = _0x4d2358, _0x13faee = new Date(_0x48d2f2);
|
|
983
|
-
if (Number[_0x40ea53(_0x521e1f._0x15ea83)](_0x13faee['getTime']()))
|
|
984
|
-
return _0x48d2f2;
|
|
985
|
-
const _0x316eff = _0x18c3d4 => String(_0x18c3d4)[_0x40ea53(0x23b)](0x2, '0');
|
|
986
|
-
return _0x13faee['getFullYear']() + '-' + _0x316eff(_0x13faee['getMonth']() + 0x1) + '-' + _0x316eff(_0x13faee[_0x40ea53(0x224)]()) + '\x20' + _0x316eff(_0x13faee[_0x40ea53(0x1b7)]()) + ':' + _0x316eff(_0x13faee[_0x40ea53(_0x521e1f._0x499c5d)]()) + ':' + _0x316eff(_0x13faee['getSeconds']());
|
|
987
|
-
}
|
|
988
|
-
function formatAttachmentSuffix(_0x5dfb17) {
|
|
989
|
-
const _0x59c19c = {
|
|
990
|
-
_0x1d98f2: 0x2da,
|
|
991
|
-
_0x38cfa4: 0x25f
|
|
992
|
-
}, _0x42ac75 = _0x4d2358;
|
|
993
|
-
if (!_0x5dfb17 || _0x5dfb17[_0x42ac75(_0x59c19c._0x1d98f2)] === 0x0)
|
|
994
|
-
return '';
|
|
995
|
-
return '\x20[' + _0x5dfb17[_0x42ac75(_0x59c19c._0x1d98f2)] + '\x20attachment' + (_0x5dfb17['length'] > 0x1 ? 's' : '') + ':\x20' + _0x5dfb17[_0x42ac75(0x2d2)](_0x571c57 => _0x571c57['filename'] + _0x42ac75(0x2d7) + _0x571c57['id'] + ')')[_0x42ac75(_0x59c19c._0x38cfa4)](',\x20') + _0x42ac75(0x170);
|
|
996
|
-
}
|
|
997
|
-
function formatCheckMessages(_0x9fb328) {
|
|
998
|
-
const _0x2840fb = {
|
|
999
|
-
_0x4789fd: 0x189,
|
|
1000
|
-
_0x469aa1: 0x25f
|
|
1001
|
-
}, _0xc42946 = {
|
|
1002
|
-
_0x52d0aa: 0x1e2,
|
|
1003
|
-
_0x31f134: 0x216,
|
|
1004
|
-
_0x2d585e: 0x231,
|
|
1005
|
-
_0x1d038b: 0x2de,
|
|
1006
|
-
_0x65a2a3: 0x273,
|
|
1007
|
-
_0x4d2966: 0x2d4,
|
|
1008
|
-
_0x19f08e: 0x249,
|
|
1009
|
-
_0x1cae0c: 0x279,
|
|
1010
|
-
_0x48c47: 0x195,
|
|
1011
|
-
_0x1141c8: 0x1c1,
|
|
1012
|
-
_0xc9bf98: 0x1ed,
|
|
1013
|
-
_0x1f4fb4: 0x1e4
|
|
1014
|
-
}, _0x366b9c = _0x4d2358;
|
|
1015
|
-
if (_0x9fb328[_0x366b9c(0x2da)] === 0x0)
|
|
1016
|
-
return _0x366b9c(_0x2840fb._0x4789fd);
|
|
1017
|
-
return _0x9fb328[_0x366b9c(0x2d2)](_0x45753d => {
|
|
1018
|
-
const _0x4cc412 = _0x366b9c, _0x1f4732 = _0x45753d['senderType'] === _0x4cc412(_0xc42946._0x52d0aa) ? _0x4cc412(_0xc42946._0x31f134) : '', _0x5e681d = _0x45753d['kind'] && _0x45753d[_0x4cc412(_0xc42946._0x2d585e)] !== _0x4cc412(_0xc42946._0x1d038b) ? _0x4cc412(_0xc42946._0x65a2a3) + _0x45753d[_0x4cc412(0x231)] : '';
|
|
1019
|
-
return _0x4cc412(_0xc42946._0x4d2966) + _0x45753d[_0x4cc412(_0xc42946._0x19f08e)] + _0x4cc412(_0xc42946._0x1cae0c) + _0x45753d[_0x4cc412(_0xc42946._0x48c47)][_0x4cc412(0x1c2)](0x0, 0x8) + _0x4cc412(_0xc42946._0x1141c8) + toLocalTime(_0x45753d[_0x4cc412(_0xc42946._0xc9bf98)]) + _0x1f4732 + _0x5e681d + _0x4cc412(0x1b3) + _0x45753d[_0x4cc412(_0xc42946._0x1f4fb4)] + ':\x20' + _0x45753d[_0x4cc412(0x2b7)] + formatAttachmentSuffix(_0x45753d[_0x4cc412(0x262)]);
|
|
1020
|
-
})[_0x366b9c(_0x2840fb._0x469aa1)]('\x0a');
|
|
1021
|
-
}
|
|
1022
|
-
function formatHistory(_0x2c8085) {
|
|
1023
|
-
const _0x383158 = {
|
|
1024
|
-
_0x443918: 0x2bb,
|
|
1025
|
-
_0x294628: 0x2d2,
|
|
1026
|
-
_0x3d9694: 0x228,
|
|
1027
|
-
_0x481626: 0x2a3,
|
|
1028
|
-
_0x1d2f3f: 0x2da,
|
|
1029
|
-
_0x479e15: 0x282
|
|
1030
|
-
}, _0x2ee35b = {
|
|
1031
|
-
_0x13c0bd: 0x231,
|
|
1032
|
-
_0x2ef43b: 0x173,
|
|
1033
|
-
_0xc0006c: 0x1c1,
|
|
1034
|
-
_0x17bc34: 0x1b3
|
|
1035
|
-
}, _0x4ed2e4 = _0x4d2358;
|
|
1036
|
-
if (_0x2c8085[_0x4ed2e4(0x2c4)]['length'] === 0x0)
|
|
1037
|
-
return '##\x20Message\x20History\x20for\x20' + _0x2c8085[_0x4ed2e4(_0x383158._0x443918)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1038
|
-
const _0x29f783 = _0x2c8085[_0x4ed2e4(0x2c4)][_0x4ed2e4(_0x383158._0x294628)](_0x2c522b => {
|
|
1039
|
-
const _0x3f9f2e = _0x4ed2e4, _0x59f130 = _0x2c522b['senderType'] === _0x3f9f2e(0x1e2) ? _0x3f9f2e(0x216) : '', _0x56ea51 = _0x2c522b['kind'] && _0x2c522b[_0x3f9f2e(_0x2ee35b._0x13c0bd)] !== _0x3f9f2e(0x2de) ? '\x20kind=' + _0x2c522b['kind'] : '';
|
|
1040
|
-
return _0x3f9f2e(0x298) + _0x2c522b[_0x3f9f2e(_0x2ee35b._0x2ef43b)] + '\x20msg=' + _0x2c522b[_0x3f9f2e(0x195)] + _0x3f9f2e(_0x2ee35b._0xc0006c) + toLocalTime(_0x2c522b[_0x3f9f2e(0x1ed)]) + _0x59f130 + _0x56ea51 + _0x3f9f2e(_0x2ee35b._0x17bc34) + _0x2c522b['senderName'] + ':\x20' + _0x2c522b['content'] + formatAttachmentSuffix(_0x2c522b['attachments']);
|
|
1041
|
-
})[_0x4ed2e4(0x25f)]('\x0a'), _0x599f7f = _0x2c8085['hasMore'] && _0x2c8085['nextCursor'] ? _0x4ed2e4(0x1d2) + _0x2c8085[_0x4ed2e4(0x2c4)][_0x4ed2e4(0x2da)] + _0x4ed2e4(0x286) + _0x2c8085[_0x4ed2e4(_0x383158._0x3d9694)] + _0x4ed2e4(_0x383158._0x481626) : '';
|
|
1042
|
-
return '##\x20Message\x20History\x20for\x20' + _0x2c8085[_0x4ed2e4(0x2bb)] + '\x20(' + _0x2c8085['messages'][_0x4ed2e4(_0x383158._0x1d2f3f)] + _0x4ed2e4(_0x383158._0x479e15) + _0x29f783 + _0x599f7f;
|
|
1043
|
-
}
|
|
1044
|
-
function formatServerDirectory(_0x220341) {
|
|
1045
|
-
const _0x350c6c = {
|
|
1046
|
-
_0x415e17: 0x2b6,
|
|
1047
|
-
_0xcc538e: 0x2d2,
|
|
1048
|
-
_0x2bc700: 0x19d,
|
|
1049
|
-
_0x335328: 0x1df,
|
|
1050
|
-
_0x90209f: 0x2da,
|
|
1051
|
-
_0x35d0b2: 0x25f,
|
|
1052
|
-
_0x139478: 0x25f,
|
|
1053
|
-
_0x3c9742: 0x2a9,
|
|
1054
|
-
_0x512306: 0x176,
|
|
1055
|
-
_0x269441: 0x283
|
|
1056
|
-
}, _0x36718e = _0x4d2358, _0x3b77c7 = _0x220341[_0x36718e(_0x350c6c._0x415e17)]['length'] > 0x0 ? _0x220341[_0x36718e(0x2b6)][_0x36718e(_0x350c6c._0xcc538e)](_0x5c131d => _0x5c131d[_0x36718e(0x207)] ? _0x36718e(0x208) + _0x5c131d[_0x36718e(0x2d3)] + '\x20—\x20' + _0x5c131d[_0x36718e(0x207)] : _0x36718e(0x208) + _0x5c131d[_0x36718e(0x2d3)])[_0x36718e(0x25f)]('\x0a') : _0x36718e(_0x350c6c._0x2bc700), _0x1dd47a = _0x220341[_0x36718e(_0x350c6c._0x335328)][_0x36718e(_0x350c6c._0x90209f)] > 0x0 ? _0x220341['agents'][_0x36718e(0x2d2)](_0x386b78 => _0x36718e(0x2e4) + _0x386b78[_0x36718e(0x2d3)])[_0x36718e(_0x350c6c._0x35d0b2)]('\x0a') : _0x36718e(0x19d), _0x53e420 = _0x220341[_0x36718e(0x17f)]['length'] > 0x0 ? _0x220341['humans']['map'](_0x308bbd => '-\x20@' + _0x308bbd[_0x36718e(0x2d3)])[_0x36718e(_0x350c6c._0x139478)]('\x0a') : _0x36718e(0x19d);
|
|
1057
|
-
return [
|
|
1058
|
-
_0x36718e(_0x350c6c._0x3c9742) + _0x220341[_0x36718e(_0x350c6c._0x512306)],
|
|
1059
|
-
'',
|
|
1060
|
-
_0x36718e(_0x350c6c._0x269441),
|
|
1061
|
-
_0x3b77c7,
|
|
1062
|
-
'',
|
|
1063
|
-
'###\x20Agents',
|
|
1064
|
-
_0x1dd47a,
|
|
1065
|
-
'',
|
|
1066
|
-
'###\x20Humans',
|
|
1067
|
-
_0x53e420
|
|
1068
|
-
][_0x36718e(0x25f)]('\x0a');
|
|
1069
|
-
}
|
|
1070
|
-
function formatUploadResult(_0x840310) {
|
|
1071
|
-
const _0xea65c4 = { _0x42dea3: 0x269 }, _0x35a019 = _0x4d2358;
|
|
1072
|
-
return 'File\x20uploaded:\x20' + _0x840310['filename'] + '\x20(' + (_0x840310[_0x35a019(0x2dc)] / 0x400)[_0x35a019(_0xea65c4._0x42dea3)](0x1) + _0x35a019(0x28c) + _0x840310[_0x35a019(0x256)] + _0x35a019(0x1a8);
|
|
1073
|
-
}
|
|
1074
|
-
function _0x39e6() {
|
|
1075
|
-
const _0x3153ed = [
|
|
145
|
+
function _0x4f0b() {
|
|
146
|
+
const _0x262487 = [
|
|
147
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
148
|
+
'ktSGz290ignOyw5UzwW9',
|
|
149
|
+
'v29YA2vYia',
|
|
150
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
151
|
+
'Aw1Hz2uVCg5N',
|
|
152
|
+
'DMfSDwvZ',
|
|
153
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
154
|
+
'BwvZC2fNzq',
|
|
155
|
+
'Aw5FCMv2Awv3',
|
|
156
|
+
'l3rHC2TZl2nSywLT',
|
|
157
|
+
'DgfZAY0',
|
|
158
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
159
|
+
'vgfZAYa',
|
|
160
|
+
'v29YA2vYici',
|
|
161
|
+
'ywXS',
|
|
162
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
163
|
+
'y2XPzw50',
|
|
164
|
+
'CMvXDwvZDfvYBa',
|
|
165
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
166
|
+
'AM9PBG',
|
|
167
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
168
|
+
'y3jLyxrLvgfZA3m',
|
|
169
|
+
'AgfZ',
|
|
170
|
+
'Aw1Hz2uVD2vICa',
|
|
171
|
+
'CMvHzeHPC3rVCNK',
|
|
172
|
+
'Aw5JBhvKzxm',
|
|
1076
173
|
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1077
|
-
'
|
|
1078
|
-
'
|
|
1079
|
-
'
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
174
|
+
'Aw1Hz2uVANbLzW',
|
|
175
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
176
|
+
'zNjVBq',
|
|
177
|
+
'w3nLCt0',
|
|
178
|
+
'mJrQyvnOzxa',
|
|
179
|
+
'z2v0',
|
|
180
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
181
|
+
'C3bSAxq',
|
|
182
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
183
|
+
'y29UDgvUDa',
|
|
184
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
185
|
+
'DgfYz2v0zwruyxnR',
|
|
186
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
187
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
188
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
189
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
190
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
191
|
+
'nLDiyLbhEa',
|
|
1082
192
|
'zMLSDgvY',
|
|
1083
|
-
'
|
|
1084
|
-
'
|
|
1085
|
-
'
|
|
1086
|
-
'
|
|
1087
|
-
'
|
|
1088
|
-
'
|
|
1089
|
-
'
|
|
193
|
+
'zgLNzxn0',
|
|
194
|
+
'DgHYzwfKu2HVCNrjza',
|
|
195
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
196
|
+
'lIbnzxnZywDLieLeoIa',
|
|
197
|
+
'z2v0sg91CNm',
|
|
198
|
+
'zMLUza',
|
|
199
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
200
|
+
'C29Tzq',
|
|
201
|
+
'DgfZAW',
|
|
202
|
+
'ntu1mJK3AwnmAePn',
|
|
203
|
+
'lsba',
|
|
204
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
205
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
206
|
+
'C2HHmJu2',
|
|
207
|
+
'ywDLBNq',
|
|
208
|
+
'Dgv4Dc9JC3y',
|
|
209
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
210
|
+
'l3vWBg9Hza',
|
|
211
|
+
'C2L6zq',
|
|
212
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
213
|
+
'y2HLy2TnzxnZywDLCW',
|
|
214
|
+
'igLUia',
|
|
215
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
216
|
+
'B2jQzwn0',
|
|
217
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
218
|
+
'C2vUze1LC3nHz2u',
|
|
219
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
220
|
+
'zgvZDhjVEwvK',
|
|
221
|
+
'ihrPBwu9',
|
|
222
|
+
'ywz0zxjtzxe',
|
|
223
|
+
'y2XHAw1FDgfZA3m',
|
|
224
|
+
'C2vUzgvYtMfTzq',
|
|
225
|
+
'yxjYyxLcDwzMzxi',
|
|
226
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
227
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1090
228
|
'DgfZA19Pza',
|
|
1091
|
-
'
|
|
1092
|
-
'
|
|
1093
|
-
'
|
|
1094
|
-
'
|
|
1095
|
-
'
|
|
1096
|
-
'
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'
|
|
229
|
+
'Agv4',
|
|
230
|
+
'zxjYB3i',
|
|
231
|
+
'ihn0yxr1CZ0',
|
|
232
|
+
'BwfW',
|
|
233
|
+
'z2v0vgLTzq',
|
|
234
|
+
'Dw5JBgfPBvrHC2S',
|
|
235
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
236
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
237
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
238
|
+
'y3vYC29Y',
|
|
239
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
240
|
+
'y2fJAgveAxi',
|
|
1102
241
|
'CgfYC2u',
|
|
242
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
243
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
244
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1103
245
|
'yxnPzgu',
|
|
1104
|
-
'
|
|
1105
|
-
'
|
|
1106
|
-
'
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'
|
|
1111
|
-
'
|
|
1112
|
-
'
|
|
1113
|
-
'
|
|
1114
|
-
'
|
|
1115
|
-
'
|
|
1116
|
-
'ls1ZzxnZAw9UlwLK',
|
|
1117
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1118
|
-
'ignSywLTzwq',
|
|
1119
|
-
'ywDLBNrjza',
|
|
1120
|
-
'DgHYzwfKvgfYz2v0',
|
|
246
|
+
'iYmJienOyw5UzwXZ',
|
|
247
|
+
'zgvZy3jPChrPB24',
|
|
248
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
249
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
250
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
251
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
252
|
+
'DxnLCG',
|
|
253
|
+
'yxr0ywnOBwvUDhm',
|
|
254
|
+
'mKTvAwXdwq',
|
|
255
|
+
'y2f0y2G',
|
|
256
|
+
'BNvTyMvY',
|
|
257
|
+
'y2HHBM5LBeLK',
|
|
1121
258
|
'CMvZB2X2zvrHCMDLDa',
|
|
1122
|
-
'
|
|
1123
|
-
'
|
|
1124
|
-
'
|
|
1125
|
-
'DgfZA0LK',
|
|
1126
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
259
|
+
'l3jLy2vPDMu',
|
|
260
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
261
|
+
'C2vX',
|
|
1127
262
|
'BgLZDf9Zzxj2zxi',
|
|
1128
|
-
'
|
|
1129
|
-
'
|
|
1130
|
-
'ls1Zzxj2zxiTDxjS',
|
|
1131
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1132
|
-
'ls1Hz2vUDc1Pza',
|
|
1133
|
-
'zgvZy3jPyMu',
|
|
1134
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1135
|
-
'yxr0ywnOBwvUDeLK',
|
|
1136
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
1137
|
-
'zg06',
|
|
1138
|
-
'zgvZDhjVEwvK',
|
|
263
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
264
|
+
'y29UDgvUDc10ExbL',
|
|
1139
265
|
'AgvHzgvYCW',
|
|
1140
|
-
'
|
|
1141
|
-
'
|
|
1142
|
-
'
|
|
1143
|
-
'
|
|
1144
|
-
'
|
|
1145
|
-
'
|
|
1146
|
-
'
|
|
1147
|
-
'
|
|
1148
|
-
'
|
|
1149
|
-
'
|
|
1150
|
-
'
|
|
1151
|
-
'
|
|
1152
|
-
'
|
|
1153
|
-
'
|
|
1154
|
-
'
|
|
1155
|
-
'
|
|
1156
|
-
'
|
|
266
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
267
|
+
'y2XHAw0GzMfPBgvK',
|
|
268
|
+
'C2v0',
|
|
269
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
270
|
+
'z2v0u2vJB25KCW',
|
|
271
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
272
|
+
'C2vUzgvYvhLWzq',
|
|
273
|
+
'CgfYC2vjBNq',
|
|
274
|
+
'DhjPBq',
|
|
275
|
+
'pgvTChr5pG',
|
|
276
|
+
'yMvMB3jL',
|
|
277
|
+
'kg5VBMuP',
|
|
278
|
+
'AxnbCNjHEq',
|
|
279
|
+
'C29YDa',
|
|
280
|
+
'zMv0y2HjBxbS',
|
|
281
|
+
'ywDLBNrZ',
|
|
282
|
+
'zMLSzw5HBwu',
|
|
283
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
284
|
+
'D3m6',
|
|
285
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
286
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
287
|
+
'CxvLDwvK',
|
|
288
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
289
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
290
|
+
'ig1ZzZ0',
|
|
291
|
+
'y29UBMvJDa',
|
|
292
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
293
|
+
'zMfSC2u',
|
|
294
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
295
|
+
'DgvZDa',
|
|
296
|
+
'zgLZCg9ZAxrPB24',
|
|
297
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
298
|
+
'C2vUzf9TzxnZywDL',
|
|
299
|
+
'AgLNAa',
|
|
300
|
+
'Aw1Hz2uVz2LM',
|
|
301
|
+
'CMvJB3jK',
|
|
302
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
303
|
+
'AhvTyw5Z',
|
|
304
|
+
'zM9Yy2vszwzYzxnO',
|
|
1157
305
|
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1158
|
-
'
|
|
1159
|
-
'
|
|
1160
|
-
'
|
|
1161
|
-
'
|
|
1162
|
-
'
|
|
1163
|
-
'
|
|
1164
|
-
'
|
|
1165
|
-
'
|
|
1166
|
-
'
|
|
1167
|
-
'
|
|
306
|
+
'BgLTAxq',
|
|
307
|
+
'l3n0yxj0',
|
|
308
|
+
'yMfZzw5HBwu',
|
|
309
|
+
'BM93',
|
|
310
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
311
|
+
'DxbKyxrL',
|
|
312
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
313
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
314
|
+
'mtyXodeWDKr4t1Po',
|
|
315
|
+
'CgfYDgLJAxbHBNq',
|
|
316
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
317
|
+
'z2v0rNvSBfLLyxi',
|
|
318
|
+
'zw51Bq',
|
|
319
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
320
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
321
|
+
'C3rVCe1HAw4',
|
|
322
|
+
'DxbSB2fKrMLSzq',
|
|
323
|
+
'C3vJy2vZCW',
|
|
1168
324
|
'CMvHC29U',
|
|
1169
|
-
'
|
|
1170
|
-
'ig1ZzZ0',
|
|
1171
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1172
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
1173
|
-
'y29UDgvUDfr5Cgu',
|
|
1174
|
-
'BwvKAxvT',
|
|
1175
|
-
'DxrMoa',
|
|
1176
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1177
|
-
'y2HLy2TnzxnZywDLCW',
|
|
325
|
+
'ig1LC3nHz2u9',
|
|
1178
326
|
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
327
|
+
'6k+35Rgcia',
|
|
328
|
+
'l3rHC2TZ',
|
|
329
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
330
|
+
'Bwf4',
|
|
331
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1179
332
|
'ig1LC3nHz2vZkqOk',
|
|
1180
|
-
'
|
|
333
|
+
'Dw5RBM93BG',
|
|
334
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
335
|
+
'AhvTyw4',
|
|
336
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
337
|
+
'BwvZC2fNzv9Pzhm',
|
|
338
|
+
'y2HHDa',
|
|
339
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
340
|
+
'Bwv0yq',
|
|
341
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
342
|
+
'zgf0yq',
|
|
343
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
344
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
345
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
346
|
+
'C2L6zuj5DgvZ',
|
|
347
|
+
'DhLWzq',
|
|
348
|
+
'Aw5FChjVz3jLC3m',
|
|
349
|
+
'DxjNzw50',
|
|
350
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
351
|
+
'C2vYDMvYvxjS',
|
|
352
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
353
|
+
'ywz0zxi',
|
|
354
|
+
'DxrMoa',
|
|
355
|
+
'DgfZA0LK',
|
|
356
|
+
'DgfYz2v0',
|
|
357
|
+
'AxnbyNnVBhv0zq',
|
|
358
|
+
'DgHYzwfKvgfYz2v0',
|
|
359
|
+
'C2nOzwr1BgvKrM9Y',
|
|
360
|
+
'DgHYzwfKswq',
|
|
361
|
+
'A2LUza',
|
|
362
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
363
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
364
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
365
|
+
'l2zPBMLZAa',
|
|
366
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
367
|
+
'DMLLD19MAwXL',
|
|
368
|
+
'C2vZC2LVBKLK',
|
|
369
|
+
'ignSywLTzwq',
|
|
370
|
+
'Ahr0Chm6',
|
|
371
|
+
'CgfYA193B3jRzxi',
|
|
372
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
373
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
374
|
+
'D2fPDgLUz19PBNb1Da',
|
|
375
|
+
'D3nZoG',
|
|
376
|
+
'igTPBMq9',
|
|
377
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
378
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
379
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
380
|
+
'zMLSzv9WyxrO',
|
|
381
|
+
'ywDLBNrjza',
|
|
382
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
383
|
+
'D29YA2vYCW',
|
|
384
|
+
'yxjYyxK',
|
|
385
|
+
'ywDNCMvNyxrLswq',
|
|
386
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
387
|
+
'DMLZAwjPBgL0Eq',
|
|
388
|
+
'igrVBMuP',
|
|
389
|
+
'z2v0tw9UDgG',
|
|
390
|
+
'C2LNBMfS',
|
|
391
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
392
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
393
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
394
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
395
|
+
'zxH0BMfTzq',
|
|
396
|
+
'EM9K',
|
|
397
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
398
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
399
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
400
|
+
'igf0DgfJAg1LBNq',
|
|
401
|
+
'zgvZy3jPyMu',
|
|
402
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
403
|
+
'ywrK',
|
|
404
|
+
'kgXLz2fJEsK',
|
|
405
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
406
|
+
'CgfYDgLJAxbHBNrjza',
|
|
407
|
+
'BgvUz3rO',
|
|
408
|
+
'zgfLBw9UqxbPs2v5',
|
|
1181
409
|
'DgHYzwfKtNvTyMvY',
|
|
410
|
+
'sfruuca',
|
|
411
|
+
'DgfYz2v0zwq',
|
|
412
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
413
|
+
'y3jLyxrLx3rHC2TZ',
|
|
414
|
+
'otu3odq1vLb6u0TT',
|
|
415
|
+
'iYmGu2vYDMvYoIa',
|
|
1182
416
|
'AgfZtw9Yzq',
|
|
1183
|
-
'
|
|
417
|
+
'Dw5JBgfPBv90yxnR',
|
|
418
|
+
'ls1ZzxnZAw9UlwLK',
|
|
419
|
+
'mJyWoduZm0HYyuT6yW',
|
|
420
|
+
'Bwf0y2Hoyw1L',
|
|
421
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
422
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
423
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
424
|
+
'C2XPy2u',
|
|
425
|
+
'cGOTls0G',
|
|
1184
426
|
'AhjLzG',
|
|
1185
|
-
'
|
|
1186
|
-
'
|
|
1187
|
-
'
|
|
1188
|
-
'D29YA2vYCW',
|
|
1189
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
427
|
+
'CM9VDe1LC3nHz2vjza',
|
|
428
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
429
|
+
'zg9Uzq',
|
|
1190
430
|
'ChjVDg9JB2W',
|
|
1191
|
-
'
|
|
1192
|
-
'C3rYAw5N',
|
|
1193
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1194
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1195
|
-
'mtaZmtG3mZzyBxjwvvC',
|
|
1196
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1197
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1198
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1199
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1200
|
-
'y3jLyxrLx3rHC2TZ',
|
|
1201
|
-
'w3nLCt0',
|
|
1202
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1203
|
-
'pgvTChr5pG',
|
|
1204
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1205
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1206
|
-
'DgfZAY0',
|
|
1207
|
-
'yxjYyxLcDwzMzxi',
|
|
1208
|
-
'Cgf5Bg9HzePZB24',
|
|
1209
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1210
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1211
|
-
'D29YA2vYtw9Kzq',
|
|
1212
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1213
|
-
'C3rYAw5NAwz5',
|
|
1214
|
-
'Aw5JBhvKzxm',
|
|
1215
|
-
'y2HHBM5LBeLK',
|
|
1216
|
-
'l3n0yxj0',
|
|
1217
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1218
|
-
'iYmGu2vYDMvYoIa',
|
|
1219
|
-
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
1220
|
-
'zgfLBw9UqxbPs2v5',
|
|
1221
|
-
'zxzLBNrtzxe',
|
|
1222
|
-
'y2XHAw1FDgfZA3m',
|
|
1223
|
-
'CMvHzeHPC3rVCNK',
|
|
1224
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1225
|
-
'Dw5RBM93BG',
|
|
1226
|
-
'ywrK',
|
|
431
|
+
'C3rHCNrZv2L0Aa',
|
|
1227
432
|
'C3vIDgfZA051BwjLCG',
|
|
1228
|
-
'EM9K',
|
|
1229
|
-
'zgLNzxn0',
|
|
1230
|
-
'CgfYDgLJAxbHBNrjza',
|
|
1231
|
-
'y2HHBM5LBhm',
|
|
1232
|
-
'y29UDgvUDa',
|
|
1233
433
|
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1234
|
-
'
|
|
1235
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
434
|
+
'zg0T',
|
|
1236
435
|
'y2HHBM5LBa',
|
|
1237
|
-
'
|
|
1238
|
-
'
|
|
1239
|
-
'C3rVCe1HAw4',
|
|
436
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
437
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1240
438
|
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1241
|
-
'
|
|
1242
|
-
'
|
|
1243
|
-
'
|
|
1244
|
-
'mZy4mti5ntjxALPdBLq',
|
|
1245
|
-
'BwvZC2fNzxm',
|
|
1246
|
-
'CgfYDgLJAxbHBNq',
|
|
1247
|
-
'igrVBMuP',
|
|
1248
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
1249
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1250
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
1251
|
-
'y3jLyxrLvgfZA3m',
|
|
1252
|
-
'C2L6zq',
|
|
1253
|
-
'Aw5FChjVz3jLC3m',
|
|
1254
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1255
|
-
'zxjYB3i',
|
|
1256
|
-
'Dg9mB3DLCKnHC2u',
|
|
1257
|
-
'C2v0',
|
|
1258
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1259
|
-
'BwfW',
|
|
1260
|
-
'BMfTzq',
|
|
439
|
+
'BwvZC2fNzuLK',
|
|
440
|
+
'z2v0twLUDxrLCW',
|
|
441
|
+
'r0vu',
|
|
1261
442
|
'w3rHCMDLDd0',
|
|
1262
|
-
'
|
|
1263
|
-
'
|
|
1264
|
-
'
|
|
1265
|
-
'
|
|
1266
|
-
'
|
|
1267
|
-
'
|
|
1268
|
-
'
|
|
1269
|
-
'
|
|
1270
|
-
'
|
|
1271
|
-
'
|
|
1272
|
-
'
|
|
1273
|
-
'
|
|
1274
|
-
'
|
|
1275
|
-
'
|
|
1276
|
-
'
|
|
1277
|
-
'
|
|
1278
|
-
'
|
|
443
|
+
'mtzYCMfqq2K',
|
|
444
|
+
'CNvUBMLUzW',
|
|
445
|
+
'BwLU',
|
|
446
|
+
'AxngAw5PDgu',
|
|
447
|
+
'ChvZAa',
|
|
448
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
449
|
+
'ywjVCNq',
|
|
450
|
+
'C2f2zq',
|
|
451
|
+
'ihr5Cgu9ywDLBNq',
|
|
452
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
453
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
454
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
455
|
+
'CMvZDwX0CW',
|
|
456
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
457
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
458
|
+
'CNvUswq',
|
|
459
|
+
'DgfZA3m',
|
|
460
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
461
|
+
'D29YA19RzxK',
|
|
462
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1279
463
|
'Dg9KBW',
|
|
1280
|
-
'
|
|
1281
|
-
'
|
|
1282
|
-
'
|
|
1283
|
-
'
|
|
1284
|
-
'
|
|
1285
|
-
'
|
|
1286
|
-
'
|
|
1287
|
-
'
|
|
1288
|
-
'
|
|
464
|
+
'mJK4otGXowPushnXzG',
|
|
465
|
+
'y2HHBM5LBe5HBwu',
|
|
466
|
+
'lMjPBG',
|
|
467
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
468
|
+
'DxbSB2fKx2zPBgu',
|
|
469
|
+
'y2HHBM5LBhm',
|
|
470
|
+
'icHPzdO',
|
|
471
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
472
|
+
'iIbUB3qGzM91BMq',
|
|
473
|
+
'DgL0Bgu',
|
|
1289
474
|
'BwvTyMvYCW',
|
|
1290
|
-
'
|
|
1291
|
-
'
|
|
1292
|
-
'
|
|
1293
|
-
'
|
|
1294
|
-
'
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'ywXS',
|
|
1299
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1300
|
-
'r0vu',
|
|
1301
|
-
'zMfSC2u',
|
|
1302
|
-
'AgLNAa',
|
|
1303
|
-
'Dw5JBgfPBvrHC2S',
|
|
1304
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
1305
|
-
'ig1LC3nHz2u9',
|
|
1306
|
-
'AhvTyw5Z',
|
|
1307
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1308
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1309
|
-
'Aw1Hz2uVz2LM',
|
|
1310
|
-
'C3rHDhvZ',
|
|
1311
|
-
'ywDNCMvNyxrLswq',
|
|
1312
|
-
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
1313
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
475
|
+
'C3rHCNrLza',
|
|
476
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
477
|
+
'C3rYAw5NAwz5',
|
|
478
|
+
'AxnjBNrLz2vY',
|
|
479
|
+
'vgfZAZOG',
|
|
480
|
+
'nZCWndCZAhretKH5',
|
|
481
|
+
'ls1Hz2vUDc1Pza',
|
|
482
|
+
'Dg9ju09tDhjPBMC',
|
|
1314
483
|
'yxr0ywnOBwvUDf9Pza',
|
|
1315
|
-
'
|
|
1316
|
-
'
|
|
1317
|
-
'zxHWAxjLC0f0',
|
|
1318
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1319
|
-
'DgL0Bgu',
|
|
484
|
+
'iYmJiefNzw50CW',
|
|
485
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1320
486
|
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1321
|
-
'
|
|
1322
|
-
'
|
|
1323
|
-
'
|
|
1324
|
-
'
|
|
1325
|
-
'
|
|
1326
|
-
'CMvZCg9UC2u',
|
|
1327
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
1328
|
-
'BwvZC2fNzuLK',
|
|
1329
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
487
|
+
'l3nLBMq',
|
|
488
|
+
'CMvHzf9OAxn0B3j5',
|
|
489
|
+
'yxr0ywnOBwvUDeLK',
|
|
490
|
+
'Dg9mB3DLCKnHC2u',
|
|
491
|
+
'BwvZC2fNzxm',
|
|
1330
492
|
'Ahr0CdO',
|
|
1331
|
-
'
|
|
1332
|
-
'
|
|
1333
|
-
'
|
|
1334
|
-
'yMvMB3jL',
|
|
1335
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
1336
|
-
'kg5VBMuP',
|
|
1337
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1338
|
-
'Bwf4',
|
|
1339
|
-
'ywjVCNq',
|
|
1340
|
-
'CMvWBgfJzq',
|
|
1341
|
-
'C3rHCNrZv2L0Aa',
|
|
1342
|
-
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
1343
|
-
'y2XPzw50',
|
|
1344
|
-
'zMv0y2HjBxbS',
|
|
1345
|
-
'DgvZDa',
|
|
1346
|
-
'C2nOzwr1BgvKrM9Y',
|
|
1347
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1348
|
-
'C3vJy2vZCW',
|
|
1349
|
-
'l2nVBNrLBNq',
|
|
1350
|
-
'mtC3ntiWmKPnve9ArW',
|
|
1351
|
-
'Aw1Hz2uVANbLzW',
|
|
1352
|
-
'AhvTyw4',
|
|
1353
|
-
'Agv4',
|
|
1354
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1355
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1356
|
-
'Dg9tDhjPBMC',
|
|
1357
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
493
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
494
|
+
'lsaJ',
|
|
495
|
+
'D29YA2vYsgfUzg9MzG',
|
|
1358
496
|
'xsba',
|
|
1359
|
-
'
|
|
1360
|
-
'
|
|
1361
|
-
'
|
|
1362
|
-
'
|
|
1363
|
-
'
|
|
1364
|
-
'
|
|
1365
|
-
'
|
|
1366
|
-
'
|
|
1367
|
-
'
|
|
1368
|
-
'
|
|
1369
|
-
'
|
|
1370
|
-
'
|
|
1371
|
-
'
|
|
1372
|
-
'
|
|
1373
|
-
'C2XPy2u',
|
|
1374
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
1375
|
-
'DxbSB2fKx2zPBgu',
|
|
1376
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
1377
|
-
'ChvZAa',
|
|
1378
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
1379
|
-
'DgfYz2v0zwruyxnR',
|
|
1380
|
-
'y29UDgvUDc10ExbL',
|
|
1381
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1382
|
-
'AgfZ',
|
|
1383
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1384
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1385
|
-
'l2zPBMLZAa',
|
|
1386
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1387
|
-
'BM93',
|
|
1388
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1389
|
-
'cGOTls0G',
|
|
1390
|
-
'CxvLDwvK',
|
|
1391
|
-
'y2HHBM5LBe5HBwu',
|
|
1392
|
-
'DxnLCG',
|
|
1393
|
-
'ywz0zxjtzxe',
|
|
1394
|
-
'CNvUswq',
|
|
1395
|
-
'y29UBMvJDa',
|
|
1396
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
1397
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1398
|
-
'Dgv4Dc9JC3y',
|
|
1399
|
-
'C2vYDMvY',
|
|
1400
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1401
|
-
'zgvSzxrL',
|
|
1402
|
-
'ywDLBNrZ',
|
|
1403
|
-
'mZC4ntmYoefsB1f5Eq',
|
|
1404
|
-
'DgfZAW',
|
|
1405
|
-
'ywDLBNq',
|
|
1406
|
-
'CgfYC2vjBNq',
|
|
1407
|
-
'C2vUzgvYtMfTzq',
|
|
1408
|
-
'sfruuca',
|
|
1409
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
1410
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
1411
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1412
|
-
'uefuq0G',
|
|
1413
|
-
'DhjPBq',
|
|
1414
|
-
'DgfYz2v0zwq',
|
|
1415
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
497
|
+
'igzHAwXLzdOG',
|
|
498
|
+
'Dgv4Da',
|
|
499
|
+
'CMvWBgfJzq',
|
|
500
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
501
|
+
'DgfZA051BwjLCG',
|
|
502
|
+
'C3rHDhvZ',
|
|
503
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
504
|
+
'y2XHAw1uyxnRCW',
|
|
505
|
+
'B3b0Aw9UywW',
|
|
506
|
+
'D29YA2vYtw9Kzq',
|
|
507
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
508
|
+
'y29UDgvUDfr5Cgu',
|
|
509
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
510
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1416
511
|
'y3jLyxrLzef0',
|
|
1417
|
-
'
|
|
1418
|
-
'
|
|
1419
|
-
'
|
|
1420
|
-
'
|
|
1421
|
-
'
|
|
1422
|
-
'
|
|
512
|
+
'Cgf5Bg9HzePZB24',
|
|
513
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
514
|
+
'CgfKu3rHCNq',
|
|
515
|
+
'BgLZDfrHC2TZ',
|
|
516
|
+
'Dgv4Dc9WBgfPBG',
|
|
517
|
+
'mc4WlJa',
|
|
518
|
+
'lMrZy29Yza',
|
|
519
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
520
|
+
'Axnoyu4',
|
|
521
|
+
'CMvZCg9UC2u',
|
|
1423
522
|
'ANnVBG',
|
|
1424
|
-
'
|
|
1425
|
-
'
|
|
1426
|
-
'
|
|
1427
|
-
'
|
|
1428
|
-
'
|
|
1429
|
-
'
|
|
1430
|
-
'
|
|
1431
|
-
'
|
|
1432
|
-
'
|
|
1433
|
-
'C3rHCNrLza',
|
|
1434
|
-
'Bwv0yq',
|
|
523
|
+
'BMfTzq',
|
|
524
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
525
|
+
'Dg9tDhjPBMC',
|
|
526
|
+
'ChvIBgLJ',
|
|
527
|
+
'zg06',
|
|
528
|
+
'mtjUzej4zvy',
|
|
529
|
+
'yM9KEu1HCMTKB3DU',
|
|
530
|
+
'AwrSzq',
|
|
531
|
+
'BMv4Den1CNnVCG',
|
|
1435
532
|
'DgHYzwfK',
|
|
1436
|
-
'
|
|
1437
|
-
'
|
|
1438
|
-
'
|
|
1439
|
-
'
|
|
1440
|
-
'
|
|
1441
|
-
'
|
|
1442
|
-
'
|
|
1443
|
-
'
|
|
1444
|
-
'
|
|
1445
|
-
'
|
|
1446
|
-
'
|
|
1447
|
-
'
|
|
1448
|
-
'
|
|
1449
|
-
'
|
|
1450
|
-
'
|
|
1451
|
-
'
|
|
1452
|
-
'
|
|
1453
|
-
'
|
|
1454
|
-
'
|
|
1455
|
-
'zgf0yq',
|
|
1456
|
-
'C29YDa',
|
|
1457
|
-
'ihr5Cgu9ywDLBNq',
|
|
1458
|
-
'zMLSzw5HBwu',
|
|
1459
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1460
|
-
'Aw5FCMv2Awv3',
|
|
1461
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP'
|
|
533
|
+
'ue9tva',
|
|
534
|
+
'mJG5nda1AwP6r0fZ',
|
|
535
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
536
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
537
|
+
'C3rYAw5N',
|
|
538
|
+
'ls1Zzxj2zxiTDxjS',
|
|
539
|
+
'BgLZDfnLCNzLCG',
|
|
540
|
+
'BgLZDf90yxnRCW',
|
|
541
|
+
'yxjNDG',
|
|
542
|
+
'zw50CMLLCW',
|
|
543
|
+
'C2vYDMvY',
|
|
544
|
+
'y29UDgvUDejHC2u2na',
|
|
545
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
546
|
+
'D29YA2vY',
|
|
547
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
548
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
549
|
+
'iYmJieH1BwfUCW',
|
|
550
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
551
|
+
'Dg9VBa'
|
|
1462
552
|
];
|
|
1463
|
-
|
|
1464
|
-
return
|
|
553
|
+
_0x4f0b = function () {
|
|
554
|
+
return _0x262487;
|
|
555
|
+
};
|
|
556
|
+
return _0x4f0b();
|
|
557
|
+
}
|
|
558
|
+
function parseTarget(_0xb5b544) {
|
|
559
|
+
const _0x283add = {
|
|
560
|
+
_0x1d84cb: 0x250,
|
|
561
|
+
_0x1f8e33: 0x1ca,
|
|
562
|
+
_0x54ceb3: 0x1ac,
|
|
563
|
+
_0x2bf2ca: 0x1a8,
|
|
564
|
+
_0x1541b6: 0x1a1,
|
|
565
|
+
_0x3dc9f1: 0x1ab,
|
|
566
|
+
_0x5d6033: 0x250
|
|
567
|
+
}, _0x882d9e = _0xba094d, _0x3ea076 = _0xb5b544['trim']();
|
|
568
|
+
if (!_0x3ea076)
|
|
569
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
570
|
+
if (_0x3ea076[_0x882d9e(0x1a8)]('#')) {
|
|
571
|
+
const _0x269f59 = parseThreadParts(_0x3ea076[_0x882d9e(0x1a1)](0x1)), _0xa0d447 = '#' + _0x269f59[_0x882d9e(0x1ca)];
|
|
572
|
+
if (!_0x269f59[_0x882d9e(_0x283add._0x1d84cb)])
|
|
573
|
+
return {
|
|
574
|
+
'channelName': _0x269f59[_0x882d9e(_0x283add._0x1f8e33)],
|
|
575
|
+
'channelTarget': _0xa0d447,
|
|
576
|
+
'kind': _0x882d9e(_0x283add._0x54ceb3),
|
|
577
|
+
'target': _0xa0d447
|
|
578
|
+
};
|
|
579
|
+
return {
|
|
580
|
+
'channelName': _0x269f59['channelName'],
|
|
581
|
+
'channelTarget': _0xa0d447,
|
|
582
|
+
'kind': _0x882d9e(0x20d),
|
|
583
|
+
'target': _0xa0d447 + ':' + _0x269f59['threadShortId'],
|
|
584
|
+
'threadShortId': _0x269f59[_0x882d9e(_0x283add._0x1d84cb)]
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
if (_0x3ea076[_0x882d9e(_0x283add._0x2bf2ca)](_0x882d9e(0x208))) {
|
|
588
|
+
const _0x59aa90 = parseThreadParts(_0x3ea076[_0x882d9e(_0x283add._0x1541b6)](0x3));
|
|
589
|
+
if (!_0x59aa90[_0x882d9e(_0x283add._0x1f8e33)][_0x882d9e(_0x283add._0x2bf2ca)](_0x882d9e(_0x283add._0x3dc9f1)))
|
|
590
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
591
|
+
const _0x5be1ac = _0x882d9e(0x208) + _0x59aa90['channelName'];
|
|
592
|
+
if (!_0x59aa90[_0x882d9e(_0x283add._0x1d84cb)])
|
|
593
|
+
return {
|
|
594
|
+
'channelName': _0x59aa90['channelName'],
|
|
595
|
+
'channelTarget': _0x5be1ac,
|
|
596
|
+
'kind': _0x882d9e(0x1ac),
|
|
597
|
+
'target': _0x5be1ac
|
|
598
|
+
};
|
|
599
|
+
return {
|
|
600
|
+
'channelName': _0x59aa90[_0x882d9e(0x1ca)],
|
|
601
|
+
'channelTarget': _0x5be1ac,
|
|
602
|
+
'kind': 'thread',
|
|
603
|
+
'target': _0x5be1ac + ':' + _0x59aa90[_0x882d9e(_0x283add._0x5d6033)],
|
|
604
|
+
'threadShortId': _0x59aa90[_0x882d9e(0x250)]
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
608
|
+
}
|
|
609
|
+
function asErrorMessage(_0x21467a, _0x22f81a) {
|
|
610
|
+
const _0x13fd82 = {
|
|
611
|
+
_0x400ab2: 0x212,
|
|
612
|
+
_0x218bd8: 0x10b
|
|
613
|
+
}, _0x23e20f = _0xba094d;
|
|
614
|
+
if (typeof _0x21467a === _0x23e20f(_0x13fd82._0x400ab2) && _0x21467a[_0x23e20f(_0x13fd82._0x218bd8)]())
|
|
615
|
+
return _0x21467a;
|
|
616
|
+
return _0x22f81a;
|
|
617
|
+
}
|
|
618
|
+
function asRecord(_0x4e2b51) {
|
|
619
|
+
return typeof _0x4e2b51 === 'object' && _0x4e2b51 !== null ? _0x4e2b51 : {};
|
|
620
|
+
}
|
|
621
|
+
function stableStringify(_0x2152fa) {
|
|
622
|
+
const _0x56d343 = {
|
|
623
|
+
_0x30f413: 0xd1,
|
|
624
|
+
_0xedba2a: 0x1d6,
|
|
625
|
+
_0x20ccf6: 0xe1
|
|
626
|
+
}, _0x2cff15 = _0xba094d;
|
|
627
|
+
if (_0x2152fa === null || typeof _0x2152fa !== _0x2cff15(_0x56d343._0x30f413))
|
|
628
|
+
return JSON[_0x2cff15(_0x56d343._0xedba2a)](_0x2152fa);
|
|
629
|
+
if (Array[_0x2cff15(0x10f)](_0x2152fa))
|
|
630
|
+
return '[' + _0x2152fa[_0x2cff15(_0x56d343._0x20ccf6)](_0xb1345a => stableStringify(_0xb1345a))[_0x2cff15(0x234)](',') + ']';
|
|
631
|
+
const _0x2fa895 = Object['entries'](_0x2152fa)['filter'](([, _0x375383]) => _0x375383 !== void 0x0)[_0x2cff15(0x110)](([_0x3a787b], [_0x46ecee]) => _0x3a787b['localeCompare'](_0x46ecee))[_0x2cff15(_0x56d343._0x20ccf6)](([_0x2d57ec, _0x3105b5]) => JSON['stringify'](_0x2d57ec) + ':' + stableStringify(_0x3105b5));
|
|
632
|
+
return '{' + _0x2fa895['join'](',') + '}';
|
|
633
|
+
}
|
|
634
|
+
function createHeaders(_0x38cc21) {
|
|
635
|
+
const _0x370798 = { _0x3ab3f3: 0x246 }, _0x270b11 = _0xba094d;
|
|
636
|
+
return {
|
|
637
|
+
'Content-Type': _0x270b11(_0x370798._0x3ab3f3),
|
|
638
|
+
'x-daemon-api-key': _0x38cc21
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
function toHttpBaseUrl(_0x279776) {
|
|
642
|
+
const _0x1b77a8 = {
|
|
643
|
+
_0x24bb4d: 0x115,
|
|
644
|
+
_0x3ad0ec: 0x1e5,
|
|
645
|
+
_0x546fdc: 0x1a7,
|
|
646
|
+
_0xf8473b: 0x206
|
|
647
|
+
}, _0x4cc857 = _0xba094d, _0x43adbd = new URL(_0x279776);
|
|
648
|
+
if (_0x43adbd['protocol'] === _0x4cc857(_0x1b77a8._0x24bb4d))
|
|
649
|
+
_0x43adbd['protocol'] = _0x4cc857(_0x1b77a8._0x3ad0ec);
|
|
650
|
+
else
|
|
651
|
+
_0x43adbd[_0x4cc857(_0x1b77a8._0x546fdc)] === _0x4cc857(0x170) && (_0x43adbd[_0x4cc857(0x1a7)] = _0x4cc857(0x16b));
|
|
652
|
+
return _0x43adbd[_0x4cc857(_0x1b77a8._0xf8473b)]()[_0x4cc857(0x1ec)](/\/$/, '');
|
|
653
|
+
}
|
|
654
|
+
function isMentionBoundary(_0x2ba8dc) {
|
|
655
|
+
const _0x2e9a62 = { _0x3591af: 0x120 }, _0x1f8437 = _0xba094d;
|
|
656
|
+
return !_0x2ba8dc || /\s|[([{'",。!?、:;]/[_0x1f8437(_0x2e9a62._0x3591af)](_0x2ba8dc);
|
|
657
|
+
}
|
|
658
|
+
function isMentionTerminal(_0x33b1e9) {
|
|
659
|
+
const _0x502861 = { _0x4e0b5c: 0x120 }, _0x71812a = _0xba094d;
|
|
660
|
+
return !_0x33b1e9 || /\s|[)\]}'",。!?、:;,.!?]/[_0x71812a(_0x502861._0x4e0b5c)](_0x33b1e9);
|
|
661
|
+
}
|
|
662
|
+
function buildMatchableEntries(_0xd79244) {
|
|
663
|
+
const _0x16faf8 = {
|
|
664
|
+
_0x3c0168: 0x128,
|
|
665
|
+
_0xc545b9: 0x1b8
|
|
666
|
+
}, _0x982a47 = _0xba094d, _0x5df633 = [];
|
|
667
|
+
for (const _0x1340d2 of [
|
|
668
|
+
..._0xd79244['agents'],
|
|
669
|
+
..._0xd79244[_0x982a47(_0x16faf8._0x3c0168)]
|
|
670
|
+
]) {
|
|
671
|
+
_0x5df633[_0x982a47(0x1b8)]({
|
|
672
|
+
'matchName': _0x1340d2['name'],
|
|
673
|
+
'matchNameLower': _0x1340d2['name'][_0x982a47(0x205)](),
|
|
674
|
+
'participantId': _0x1340d2['id']
|
|
675
|
+
}), _0x1340d2['id'] !== _0x1340d2[_0x982a47(0x204)] && _0x5df633[_0x982a47(_0x16faf8._0xc545b9)]({
|
|
676
|
+
'matchName': _0x1340d2['id'],
|
|
677
|
+
'matchNameLower': _0x1340d2['id']['toLocaleLowerCase'](),
|
|
678
|
+
'participantId': _0x1340d2['id']
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
return _0x5df633;
|
|
682
|
+
}
|
|
683
|
+
function extractMentionedParticipantIds(_0x11eb63, _0x1f5a67) {
|
|
684
|
+
const _0x3af4ad = {
|
|
685
|
+
_0x5c6555: 0x190,
|
|
686
|
+
_0xf14016: 0x1a1,
|
|
687
|
+
_0x1bde66: 0x254,
|
|
688
|
+
_0x59a953: 0x18f,
|
|
689
|
+
_0xb88459: 0x1b8
|
|
690
|
+
}, _0xecab2d = {
|
|
691
|
+
_0x2d625d: 0x1a8,
|
|
692
|
+
_0x59dee3: 0x150
|
|
693
|
+
}, _0x5d6d1b = _0xba094d, _0x44d321 = buildMatchableEntries(_0x1f5a67)[_0x5d6d1b(0x110)]((_0x2a3b38, _0x6ece82) => _0x6ece82['matchName'][_0x5d6d1b(0x190)] - _0x2a3b38['matchName'][_0x5d6d1b(0x190)]), _0xa3736f = [], _0x5378d9 = new Set();
|
|
694
|
+
for (let _0x260daf = 0x0; _0x260daf < _0x11eb63[_0x5d6d1b(_0x3af4ad._0x5c6555)]; _0x260daf += 0x1) {
|
|
695
|
+
if (_0x11eb63[_0x260daf] !== '@' || !isMentionBoundary(_0x11eb63[_0x260daf - 0x1]))
|
|
696
|
+
continue;
|
|
697
|
+
const _0x836aad = _0x11eb63[_0x5d6d1b(_0x3af4ad._0xf14016)](_0x260daf + 0x1), _0x20b7ec = _0x836aad['toLocaleLowerCase'](), _0x599700 = _0x44d321[_0x5d6d1b(_0x3af4ad._0x1bde66)](_0x20225f => {
|
|
698
|
+
const _0x2ba530 = _0x5d6d1b;
|
|
699
|
+
if (!_0x20b7ec[_0x2ba530(_0xecab2d._0x2d625d)](_0x20225f[_0x2ba530(_0xecab2d._0x59dee3)]))
|
|
700
|
+
return ![];
|
|
701
|
+
return isMentionTerminal(_0x836aad[_0x20225f[_0x2ba530(0x19d)][_0x2ba530(0x190)]]);
|
|
702
|
+
});
|
|
703
|
+
if (!_0x599700 || _0x5378d9[_0x5d6d1b(0x237)](_0x599700[_0x5d6d1b(_0x3af4ad._0x59a953)]))
|
|
704
|
+
continue;
|
|
705
|
+
_0x5378d9[_0x5d6d1b(0x18c)](_0x599700[_0x5d6d1b(_0x3af4ad._0x59a953)]), _0xa3736f[_0x5d6d1b(_0x3af4ad._0xb88459)](_0x599700['participantId']), _0x260daf += _0x599700[_0x5d6d1b(0x19d)][_0x5d6d1b(0x190)];
|
|
706
|
+
}
|
|
707
|
+
return _0xa3736f;
|
|
708
|
+
}
|
|
709
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
710
|
+
function anySignal(..._0x5de706) {
|
|
711
|
+
const _0x11da22 = {
|
|
712
|
+
_0x109fa4: 0x1ba,
|
|
713
|
+
_0x1f2bad: 0x13d,
|
|
714
|
+
_0x51feb9: 0x17f
|
|
715
|
+
}, _0x17bbda = _0xba094d, _0x5ab307 = new AbortController();
|
|
716
|
+
for (const _0x37dcd3 of _0x5de706) {
|
|
717
|
+
if (_0x37dcd3['aborted'])
|
|
718
|
+
return _0x5ab307[_0x17bbda(_0x11da22._0x109fa4)](_0x37dcd3[_0x17bbda(_0x11da22._0x1f2bad)]), _0x5ab307[_0x17bbda(_0x11da22._0x51feb9)];
|
|
719
|
+
_0x37dcd3[_0x17bbda(0x16e)]('abort', () => _0x5ab307[_0x17bbda(0x1ba)](_0x37dcd3[_0x17bbda(0x13d)]), {
|
|
720
|
+
'once': !![],
|
|
721
|
+
'signal': _0x5ab307[_0x17bbda(0x17f)]
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
return _0x5ab307['signal'];
|
|
725
|
+
}
|
|
726
|
+
function createInternalAgentClient(_0x57afd2) {
|
|
727
|
+
const _0x19f898 = {
|
|
728
|
+
_0x1c9f87: 0x111,
|
|
729
|
+
_0x105d16: 0x21f,
|
|
730
|
+
_0xfa1734: 0xf9,
|
|
731
|
+
_0x37a2da: 0x1f7,
|
|
732
|
+
_0x9e6ada: 0x169,
|
|
733
|
+
_0x2aa7fb: 0x251,
|
|
734
|
+
_0x165910: 0x10b,
|
|
735
|
+
_0x789bab: 0x14e,
|
|
736
|
+
_0x3dbfa6: 0x10b
|
|
737
|
+
}, _0x31733e = {
|
|
738
|
+
_0xd82a87: 0x105,
|
|
739
|
+
_0x578624: 0x176,
|
|
740
|
+
_0x59840d: 0x14f,
|
|
741
|
+
_0x57094e: 0x14d,
|
|
742
|
+
_0xeb82d8: 0xe7,
|
|
743
|
+
_0x315c62: 0x190,
|
|
744
|
+
_0x450d09: 0x143,
|
|
745
|
+
_0x378364: 0xfe,
|
|
746
|
+
_0x349552: 0x1ce,
|
|
747
|
+
_0x1a1c87: 0x256,
|
|
748
|
+
_0x621ee6: 0xfa,
|
|
749
|
+
_0x3921bd: 0x161,
|
|
750
|
+
_0x3f4c41: 0x212,
|
|
751
|
+
_0x1a562b: 0x212,
|
|
752
|
+
_0x266774: 0x1d7,
|
|
753
|
+
_0x5d1aa3: 0x1b8,
|
|
754
|
+
_0x4727b8: 0x17a,
|
|
755
|
+
_0x54732b: 0x182,
|
|
756
|
+
_0x216bcd: 0x194,
|
|
757
|
+
_0x404ecb: 0x1b8,
|
|
758
|
+
_0x171d5b: 0xf6,
|
|
759
|
+
_0x569a86: 0x162,
|
|
760
|
+
_0x3bf773: 0x109,
|
|
761
|
+
_0x411b55: 0x103,
|
|
762
|
+
_0x1a92dc: 0x1db
|
|
763
|
+
}, _0x1c6736 = { _0x3bf760: 0x1ac }, _0x3a9722 = {
|
|
764
|
+
_0x483aac: 0xe6,
|
|
765
|
+
_0x329114: 0x1b2,
|
|
766
|
+
_0x2b8645: 0x17f,
|
|
767
|
+
_0x674809: 0x14f,
|
|
768
|
+
_0x1ec6f9: 0x102,
|
|
769
|
+
_0x1257b6: 0x241,
|
|
770
|
+
_0x76828c: 0x23e
|
|
771
|
+
}, _0x3f20ef = {
|
|
772
|
+
_0x54858b: 0x1ac,
|
|
773
|
+
_0x3a3682: 0x161,
|
|
774
|
+
_0x110d67: 0x176,
|
|
775
|
+
_0x189b4d: 0x14f,
|
|
776
|
+
_0x3ce4c8: 0x1bf
|
|
777
|
+
}, _0x3db4ce = {
|
|
778
|
+
_0x3a86bd: 0x224,
|
|
779
|
+
_0x179b69: 0x1d6,
|
|
780
|
+
_0x192211: 0x181
|
|
781
|
+
}, _0x358f67 = {
|
|
782
|
+
_0x5ca5f5: 0x224,
|
|
783
|
+
_0xf9177c: 0x176,
|
|
784
|
+
_0x1375c1: 0x19a
|
|
785
|
+
}, _0xfce2ba = { _0x37b9f9: 0x224 }, _0x3219eb = { _0xc1ae47: 0x196 }, _0x348de6 = {
|
|
786
|
+
_0x5bc97a: 0x1ac,
|
|
787
|
+
_0x294661: 0x1ef
|
|
788
|
+
}, _0x28d485 = {
|
|
789
|
+
_0x4249e4: 0x139,
|
|
790
|
+
_0x3e6031: 0x1c3,
|
|
791
|
+
_0x2c735e: 0x166,
|
|
792
|
+
_0x26556b: 0xdf,
|
|
793
|
+
_0x234f6f: 0x20e
|
|
794
|
+
}, _0x11b627 = {
|
|
795
|
+
_0x5db3d1: 0x12c,
|
|
796
|
+
_0x385e06: 0x1d6,
|
|
797
|
+
_0x5b3dc2: 0x20e
|
|
798
|
+
}, _0x17cb7d = {
|
|
799
|
+
_0x144ffa: 0x173,
|
|
800
|
+
_0x300690: 0x1d6
|
|
801
|
+
}, _0xb7e3ff = { _0x4274a9: 0x1b2 }, _0x155220 = {
|
|
802
|
+
_0x5d5a39: 0x15d,
|
|
803
|
+
_0x4ac521: 0x245,
|
|
804
|
+
_0x44ba5c: 0x1e0,
|
|
805
|
+
_0x644ee7: 0x1d6,
|
|
806
|
+
_0x1f1613: 0x190,
|
|
807
|
+
_0xd54b1b: 0x17c,
|
|
808
|
+
_0x41ffa7: 0x17c,
|
|
809
|
+
_0x519220: 0x14f
|
|
810
|
+
}, _0x4095ca = {
|
|
811
|
+
_0x28e562: 0x1b6,
|
|
812
|
+
_0x5b9b57: 0x12b,
|
|
813
|
+
_0xfdb67: 0x161,
|
|
814
|
+
_0x51acfc: 0x105,
|
|
815
|
+
_0x18638e: 0xfa,
|
|
816
|
+
_0x1f81e3: 0xe7,
|
|
817
|
+
_0x4e2c74: 0x224,
|
|
818
|
+
_0xc6c63c: 0x176,
|
|
819
|
+
_0x3c1116: 0x1b2,
|
|
820
|
+
_0x45ad61: 0x14d
|
|
821
|
+
}, _0x4cb93d = { _0x23c905: 0x18f }, _0x1b3eef = {
|
|
822
|
+
_0x5a9436: 0x20d,
|
|
823
|
+
_0x30c527: 0x1a5,
|
|
824
|
+
_0xc3c42c: 0x250,
|
|
825
|
+
_0x36f9d2: 0x1a4,
|
|
826
|
+
_0x116de: 0x161,
|
|
827
|
+
_0x13f3ff: 0x1a8
|
|
828
|
+
}, _0x3eff03 = {
|
|
829
|
+
_0x5d4e6b: 0x1a5,
|
|
830
|
+
_0x599a02: 0x1a5
|
|
831
|
+
}, _0x2d450e = { _0xb87db4: 0x25d }, _0x5410dc = { _0x8e68fc: 0x129 }, _0x4a4585 = {
|
|
832
|
+
_0x9b6a37: 0x224,
|
|
833
|
+
_0x4fbaa7: 0x176,
|
|
834
|
+
_0x2522c1: 0x1b2,
|
|
835
|
+
_0x1284fa: 0x1d3,
|
|
836
|
+
_0x41f979: 0x218,
|
|
837
|
+
_0x41197b: 0x14f,
|
|
838
|
+
_0xb5f7e1: 0x1ce,
|
|
839
|
+
_0x52d96b: 0x218
|
|
840
|
+
}, _0x34a7a1 = {
|
|
841
|
+
_0x552e94: 0xfa,
|
|
842
|
+
_0x5ded29: 0x1a5,
|
|
843
|
+
_0x2c6035: 0x14f,
|
|
844
|
+
_0x1168ef: 0x192
|
|
845
|
+
}, _0x54b930 = {
|
|
846
|
+
_0x14349a: 0x1d6,
|
|
847
|
+
_0x109cf6: 0x246,
|
|
848
|
+
_0xe86e89: 0x20e
|
|
849
|
+
}, _0x24799c = {
|
|
850
|
+
_0x240349: 0x17f,
|
|
851
|
+
_0x104bc1: 0x1ef
|
|
852
|
+
}, _0x4d604c = {
|
|
853
|
+
_0x741c20: 0x17f,
|
|
854
|
+
_0x80e6e: 0x193
|
|
855
|
+
}, _0x10d6f9 = {
|
|
856
|
+
_0x5e1552: 0x131,
|
|
857
|
+
_0x4c871b: 0x12e,
|
|
858
|
+
_0x312b68: 0x130,
|
|
859
|
+
_0x3cb2c0: 0x24f
|
|
860
|
+
}, _0x61a2ad = {
|
|
861
|
+
_0x124299: 0xda,
|
|
862
|
+
_0x200a7a: 0x15b,
|
|
863
|
+
_0x2645bb: 0x10b,
|
|
864
|
+
_0x1f4f93: 0xea
|
|
865
|
+
}, _0xc2fd3a = {
|
|
866
|
+
_0x233da9: 0x102,
|
|
867
|
+
_0x49a6a3: 0x101,
|
|
868
|
+
_0x4bb46f: 0x10b,
|
|
869
|
+
_0xb159: 0x10c,
|
|
870
|
+
_0x383908: 0x140,
|
|
871
|
+
_0x4282fe: 0x14c,
|
|
872
|
+
_0x321821: 0x1ef,
|
|
873
|
+
_0x369bf5: 0x25f
|
|
874
|
+
}, _0x200d6a = _0xba094d, _0x3d5270 = _0x57afd2[_0x200d6a(_0x19f898._0x1c9f87)] ?? fetch, _0x209079 = _0x57afd2[_0x200d6a(_0x19f898._0x105d16)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x2bb585 = typeof _0x57afd2['initialLastSeenSeq'] === _0x200d6a(_0x19f898._0xfa1734) && _0x57afd2['initialLastSeenSeq'] > 0x0 ? _0x57afd2[_0x200d6a(_0x19f898._0x37a2da)] : 0x0, _0x4ec0c4 = _0x57afd2[_0x200d6a(0x149)]?.['trim']() || void 0x0, _0x361709 = _0x57afd2[_0x200d6a(_0x19f898._0x9e6ada)]?.[_0x200d6a(0x10b)]() || void 0x0, _0x3d6510 = _0x57afd2['workerModeEnabled'] === !![], _0x3b3fa1 = _0x57afd2[_0x200d6a(_0x19f898._0x2aa7fb)]?.[_0x200d6a(_0x19f898._0x165910)]() || void 0x0, _0xdbcad0 = _0x57afd2[_0x200d6a(_0x19f898._0x789bab)]?.[_0x200d6a(_0x19f898._0x3dbfa6)]() || void 0x0, _0xba430a = createHeaders(_0x57afd2[_0x200d6a(0x191)]), _0x2e288d = toHttpBaseUrl(_0x57afd2[_0x200d6a(0x158)]);
|
|
875
|
+
let _0x2502af = null;
|
|
876
|
+
const _0x3d4e97 = new Map();
|
|
877
|
+
let _0x3d498a = _0x2bb585, _0x35da17 = _0x2bb585;
|
|
878
|
+
function _0x12f267(_0x14d3df) {
|
|
879
|
+
const _0x5087ea = _0x200d6a, _0x48e21f = _0x14d3df[_0x5087ea(0x202)][_0x5087ea(_0xc2fd3a._0x233da9)][_0x5087ea(0x241)](_0x5087ea(_0xc2fd3a._0x49a6a3)) ?? _0x5087ea(0x146), _0x144f00 = _0x14d3df['bodyText'][_0x5087ea(_0xc2fd3a._0x4bb46f)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5087ea(_0xc2fd3a._0xb159);
|
|
880
|
+
return _0x5087ea(_0xc2fd3a._0x383908) + _0x14d3df[_0x5087ea(0x232)] + _0x5087ea(_0xc2fd3a._0x4282fe) + _0x14d3df[_0x5087ea(0x202)][_0x5087ea(_0xc2fd3a._0x321821)] + ',\x20content-type=' + _0x48e21f + ',\x20preview=' + _0x144f00 + _0x5087ea(_0xc2fd3a._0x369bf5);
|
|
881
|
+
}
|
|
882
|
+
async function _0x2eca49(_0x55b16b, _0x4854ac) {
|
|
883
|
+
const _0xe06491 = _0x200d6a, _0x2740cb = Buffer['from'](await _0x4854ac[_0xe06491(_0x61a2ad._0x124299)]())['toString'](_0xe06491(_0x61a2ad._0x200a7a));
|
|
884
|
+
if (!_0x2740cb[_0xe06491(_0x61a2ad._0x2645bb)]())
|
|
885
|
+
return {};
|
|
886
|
+
try {
|
|
887
|
+
return JSON[_0xe06491(_0x61a2ad._0x1f4f93)](_0x2740cb);
|
|
888
|
+
} catch {
|
|
889
|
+
throw new Error(_0x12f267({
|
|
890
|
+
'bodyText': _0x2740cb,
|
|
891
|
+
'requestUrl': _0x55b16b,
|
|
892
|
+
'response': _0x4854ac
|
|
893
|
+
}));
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
function _0x189d28(_0x36aad1, _0x19e0bd) {
|
|
897
|
+
const _0x308d71 = _0x200d6a, _0x243d19 = typeof _0x19e0bd[_0x308d71(0x131)] === _0x308d71(0x212) ? _0x19e0bd[_0x308d71(_0x10d6f9._0x5e1552)][_0x308d71(0x10b)]() : '';
|
|
898
|
+
if (_0x243d19)
|
|
899
|
+
return _0x243d19;
|
|
900
|
+
const _0x446138 = Date[_0x308d71(_0x10d6f9._0x4c871b)]();
|
|
901
|
+
for (const [_0x259cd3, _0x30e93c] of _0x3d4e97) {
|
|
902
|
+
_0x30e93c['expiresAt'] <= _0x446138 && _0x3d4e97['delete'](_0x259cd3);
|
|
903
|
+
}
|
|
904
|
+
const _0x324c85 = {
|
|
905
|
+
..._0x19e0bd,
|
|
906
|
+
'idempotency_key': void 0x0
|
|
907
|
+
}, _0x140404 = createHash(_0x308d71(0x25c))[_0x308d71(_0x10d6f9._0x312b68)](_0x36aad1 + ':' + stableStringify(_0x324c85))[_0x308d71(_0x10d6f9._0x3cb2c0)](_0x308d71(0xde)), _0x2d409a = _0x36aad1 + ':' + _0x140404, _0x275653 = _0x3d4e97[_0x308d71(0x241)](_0x2d409a);
|
|
908
|
+
if (_0x275653)
|
|
909
|
+
return _0x275653['value'];
|
|
910
|
+
const _0x3cf49a = 'auto:' + _0x36aad1 + ':' + randomUUID();
|
|
911
|
+
return _0x3d4e97['set'](_0x2d409a, {
|
|
912
|
+
'expiresAt': _0x446138 + 0x5 * 0x3c * 0x3e8,
|
|
913
|
+
'value': _0x3cf49a
|
|
914
|
+
}), _0x3cf49a;
|
|
915
|
+
}
|
|
916
|
+
async function _0xa49f11(_0x3bcee0, _0xe06357) {
|
|
917
|
+
const _0x3b2b4e = _0x200d6a, _0x35b3f1 = new AbortController(), _0x1741ab = setTimeout(() => _0x35b3f1['abort'](), _0x209079), _0x48cd5c = _0xe06357?.[_0x3b2b4e(0x17f)] ? anySignal(_0xe06357[_0x3b2b4e(0x17f)], _0x35b3f1[_0x3b2b4e(0x17f)]) : _0x35b3f1[_0x3b2b4e(_0x4d604c._0x741c20)], _0x4d3a9e = '' + _0x2e288d + _0x3bcee0;
|
|
918
|
+
try {
|
|
919
|
+
const _0x8d2353 = await _0x3d5270(_0x4d3a9e, {
|
|
920
|
+
..._0xe06357,
|
|
921
|
+
'signal': _0x48cd5c
|
|
922
|
+
}), _0x4cfaca = await _0x2eca49(_0x4d3a9e, _0x8d2353);
|
|
923
|
+
if (!_0x8d2353['ok'] || _0x4cfaca[_0x3b2b4e(0x13c)] === ![])
|
|
924
|
+
throw new Error(asErrorMessage(_0x4cfaca[_0x3b2b4e(0xdf)], _0x3b2b4e(_0x4d604c._0x80e6e) + _0x8d2353[_0x3b2b4e(0x1ef)]));
|
|
925
|
+
return _0x4cfaca;
|
|
926
|
+
} finally {
|
|
927
|
+
clearTimeout(_0x1741ab);
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
async function _0x3c9588(_0x39d940, _0x23a646) {
|
|
931
|
+
const _0x3c724c = _0x200d6a, _0x5d6350 = new AbortController(), _0x2b1eb2 = setTimeout(() => _0x5d6350['abort'](), _0x209079), _0xd2479 = _0x23a646?.['signal'] ? anySignal(_0x23a646[_0x3c724c(0x17f)], _0x5d6350[_0x3c724c(_0x24799c._0x240349)]) : _0x5d6350[_0x3c724c(_0x24799c._0x240349)], _0x551c00 = '' + _0x2e288d + _0x39d940;
|
|
932
|
+
try {
|
|
933
|
+
const _0x282d3b = await _0x3d5270(_0x551c00, {
|
|
934
|
+
..._0x23a646,
|
|
935
|
+
'signal': _0xd2479
|
|
936
|
+
}), _0x4e8321 = await _0x2eca49(_0x551c00, _0x282d3b);
|
|
937
|
+
if (!_0x282d3b['ok'])
|
|
938
|
+
throw new Error(asErrorMessage(_0x4e8321[_0x3c724c(0xdf)], _0x3c724c(0x193) + _0x282d3b[_0x3c724c(_0x24799c._0x104bc1)]));
|
|
939
|
+
return _0x4e8321;
|
|
940
|
+
} finally {
|
|
941
|
+
clearTimeout(_0x2b1eb2);
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
async function _0x279534(_0xdec5cb) {
|
|
945
|
+
const _0x54dd54 = _0x200d6a;
|
|
946
|
+
if (!_0x361709 || _0xdec5cb <= _0x35da17)
|
|
947
|
+
return;
|
|
948
|
+
await _0xa49f11(_0x54dd54(0x11d) + encodeURIComponent(_0x361709) + _0x54dd54(0x1ad), {
|
|
949
|
+
'body': JSON[_0x54dd54(0x1d6)]({ 'lastSeenSeq': _0xdec5cb }),
|
|
950
|
+
'headers': _0xba430a,
|
|
951
|
+
'method': 'PATCH'
|
|
952
|
+
}), _0x35da17 = _0xdec5cb;
|
|
953
|
+
}
|
|
954
|
+
async function _0x470e30(_0x3eaf01) {
|
|
955
|
+
const _0x2f65e4 = _0x200d6a;
|
|
956
|
+
if (!_0x4ec0c4 || !_0x3b3fa1 || _0x3eaf01 <= _0x35da17)
|
|
957
|
+
return;
|
|
958
|
+
const _0x1afe45 = await _0x3d5270(_0x4ec0c4 + _0x2f65e4(0x114), {
|
|
959
|
+
'body': JSON[_0x2f65e4(_0x54b930._0x14349a)]({
|
|
960
|
+
'last_seen_seq': _0x3eaf01,
|
|
961
|
+
'worker_session_id': _0x3b3fa1
|
|
962
|
+
}),
|
|
963
|
+
'headers': { 'Content-Type': _0x2f65e4(_0x54b930._0x109cf6) },
|
|
964
|
+
'method': _0x2f65e4(_0x54b930._0xe86e89)
|
|
965
|
+
});
|
|
966
|
+
if (!_0x1afe45['ok'])
|
|
967
|
+
throw new Error(_0x2f65e4(0x193) + _0x1afe45['status']);
|
|
968
|
+
_0x35da17 = _0x3eaf01;
|
|
969
|
+
}
|
|
970
|
+
async function _0x5123a3(_0x311b47) {
|
|
971
|
+
const _0x3947a9 = _0x200d6a, _0x47295f = parseTarget(_0x311b47), _0x28a28f = await _0xa49f11(_0x3947a9(0x224) + _0x57afd2['agentId'] + '/resolve-channel', {
|
|
972
|
+
'body': JSON[_0x3947a9(0x1d6)]({ 'target': _0x47295f['target'] }),
|
|
973
|
+
'headers': _0xba430a,
|
|
974
|
+
'method': _0x3947a9(0x20e)
|
|
975
|
+
});
|
|
976
|
+
return {
|
|
977
|
+
'channelId': _0x28a28f[_0x3947a9(0x14f)]?.[_0x3947a9(_0x34a7a1._0x552e94)] ?? '',
|
|
978
|
+
'target': _0x47295f[_0x3947a9(_0x34a7a1._0x5ded29)],
|
|
979
|
+
'task': _0x28a28f[_0x3947a9(_0x34a7a1._0x2c6035)]?.[_0x3947a9(0x257)],
|
|
980
|
+
'threadId': _0x28a28f[_0x3947a9(0x14f)]?.[_0x3947a9(0x161)],
|
|
981
|
+
'threadNumber': _0x28a28f['data']?.[_0x3947a9(_0x34a7a1._0x1168ef)]
|
|
982
|
+
};
|
|
983
|
+
}
|
|
984
|
+
async function _0x6bf2ff(_0x30bbec = {}) {
|
|
985
|
+
const _0x51c879 = _0x200d6a;
|
|
986
|
+
if (!_0x30bbec[_0x51c879(_0x5410dc._0x8e68fc)] && _0x2502af)
|
|
987
|
+
return _0x2502af;
|
|
988
|
+
return _0x2502af = (async () => {
|
|
989
|
+
const _0xf7a96f = _0x51c879, _0x3e462b = await _0xa49f11(_0xf7a96f(_0x4a4585._0x9b6a37) + _0x57afd2[_0xf7a96f(_0x4a4585._0x4fbaa7)] + '/server', {
|
|
990
|
+
'headers': _0xba430a,
|
|
991
|
+
'method': _0xf7a96f(_0x4a4585._0x2522c1)
|
|
992
|
+
}), _0xf08865 = _0x3e462b['data']?.[_0xf7a96f(_0x4a4585._0x1284fa)] ?? [], _0x579eaa = _0xf08865[_0xf7a96f(0x24e)](_0x37823c => _0x37823c['participant']?.[_0xf7a96f(0x154)] === 'agent')[_0xf7a96f(0xe1)](_0x1c6ed0 => ({
|
|
993
|
+
'id': _0x2f4935(_0x1c6ed0),
|
|
994
|
+
'name': _0x59147a(_0x1c6ed0)
|
|
995
|
+
}))[_0xf7a96f(0x24e)](_0x2ff00a => _0x2ff00a['id']), _0xf5759d = _0xf08865['filter'](_0x42a62c => _0x42a62c[_0xf7a96f(0x134)]?.[_0xf7a96f(0x154)] !== _0xf7a96f(0x25d))['map'](_0x343031 => ({
|
|
996
|
+
'id': _0x2f4935(_0x343031),
|
|
997
|
+
'name': _0x59147a(_0x343031)
|
|
998
|
+
}))['filter'](_0x4e7c7d => _0x4e7c7d['id']), _0x1fa57b = _0x3e462b[_0xf7a96f(0x14f)]?.[_0xf7a96f(_0x4a4585._0x41f979)]['id'] ?? '';
|
|
999
|
+
return {
|
|
1000
|
+
'agents': _0x579eaa,
|
|
1001
|
+
'channels': _0x3e462b[_0xf7a96f(_0x4a4585._0x41197b)]?.[_0xf7a96f(_0x4a4585._0xb5f7e1)] ?? [],
|
|
1002
|
+
'humans': _0xf5759d,
|
|
1003
|
+
'serverId': _0x1fa57b,
|
|
1004
|
+
'serverName': _0x3e462b[_0xf7a96f(0x14f)]?.[_0xf7a96f(_0x4a4585._0x52d96b)]['name'] ?? _0x1fa57b
|
|
1005
|
+
};
|
|
1006
|
+
})()['catch'](_0x44ceb3 => {
|
|
1007
|
+
_0x2502af = null;
|
|
1008
|
+
throw _0x44ceb3;
|
|
1009
|
+
}), _0x2502af;
|
|
1010
|
+
}
|
|
1011
|
+
function _0x2f015e(_0x651e26, _0x4ace58) {
|
|
1012
|
+
const _0xe0848e = _0x200d6a;
|
|
1013
|
+
return _0x4ace58[_0xe0848e(0x112)]['some'](_0x4b1244 => _0x4b1244['id'] === _0x651e26 || _0x4b1244[_0xe0848e(0x204)] === _0x651e26) ? _0xe0848e(_0x2d450e._0xb87db4) : _0xe0848e(0x148);
|
|
1014
|
+
}
|
|
1015
|
+
function _0x5e0933(_0x34c157) {
|
|
1016
|
+
const _0xce0bcc = _0x200d6a;
|
|
1017
|
+
if (_0x34c157['threadNumber'] != null)
|
|
1018
|
+
return _0x34c157[_0xce0bcc(_0x3eff03._0x5d4e6b)] + ':t' + _0x34c157['threadNumber'];
|
|
1019
|
+
if (_0x34c157[_0xce0bcc(0x1a4)])
|
|
1020
|
+
return _0x34c157['channelTarget'] + ':' + _0x34c157[_0xce0bcc(0x1a4)];
|
|
1021
|
+
if (_0x34c157[_0xce0bcc(0x161)])
|
|
1022
|
+
return _0x34c157[_0xce0bcc(0x1a5)] + ':' + _0x34c157[_0xce0bcc(0x161)][_0xce0bcc(0x1a1)](0x0, 0x8);
|
|
1023
|
+
return _0x34c157[_0xce0bcc(_0x3eff03._0x599a02)];
|
|
1024
|
+
}
|
|
1025
|
+
function _0x3f0058(_0x236a1e, _0x4a922e) {
|
|
1026
|
+
const _0x51ff8d = _0x200d6a;
|
|
1027
|
+
try {
|
|
1028
|
+
const _0x974a8c = parseTarget(_0x236a1e);
|
|
1029
|
+
if (_0x974a8c['kind'] !== _0x51ff8d(_0x1b3eef._0x5a9436) || _0x974a8c[_0x51ff8d(_0x1b3eef._0x30c527)] !== _0x4a922e['channelTarget'])
|
|
1030
|
+
return ![];
|
|
1031
|
+
if (_0x4a922e[_0x51ff8d(0x192)] != null && _0x974a8c[_0x51ff8d(_0x1b3eef._0xc3c42c)] === 't' + _0x4a922e[_0x51ff8d(0x192)])
|
|
1032
|
+
return !![];
|
|
1033
|
+
if (_0x4a922e[_0x51ff8d(_0x1b3eef._0x36f9d2)])
|
|
1034
|
+
return _0x974a8c[_0x51ff8d(0x250)] === _0x4a922e[_0x51ff8d(0x1a4)] || _0x4a922e[_0x51ff8d(0x1a4)][_0x51ff8d(0x1a8)](_0x974a8c[_0x51ff8d(0x250)]);
|
|
1035
|
+
if (_0x4a922e[_0x51ff8d(0x161)])
|
|
1036
|
+
return _0x974a8c['threadShortId'] === _0x4a922e[_0x51ff8d(_0x1b3eef._0x116de)] || _0x4a922e[_0x51ff8d(0x161)][_0x51ff8d(_0x1b3eef._0x13f3ff)](_0x974a8c[_0x51ff8d(0x250)]);
|
|
1037
|
+
return ![];
|
|
1038
|
+
} catch {
|
|
1039
|
+
return ![];
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
function _0x2f4935(_0x2b4d9a) {
|
|
1043
|
+
const _0x2243bc = _0x200d6a;
|
|
1044
|
+
return _0x2b4d9a['member']?.[_0x2243bc(_0x4cb93d._0x23c905)] ?? _0x2b4d9a[_0x2243bc(0x134)]?.['id'] ?? _0x2b4d9a['participantId'] ?? '';
|
|
1045
|
+
}
|
|
1046
|
+
function _0x59147a(_0x4d7992) {
|
|
1047
|
+
const _0x37504e = _0x200d6a;
|
|
1048
|
+
return _0x4d7992[_0x37504e(0x134)]?.[_0x37504e(0x204)] ?? _0x2f4935(_0x4d7992);
|
|
1049
|
+
}
|
|
1050
|
+
async function _0x32f79a(_0x106e52) {
|
|
1051
|
+
const _0x182a54 = _0x200d6a, _0x3eb46b = Math[_0x182a54(_0x4095ca._0x28e562)](_0x106e52['limit'] ?? 0x32, 0x64), _0x49d083 = await _0x6bf2ff(), _0x24d231 = new URLSearchParams();
|
|
1052
|
+
_0x24d231[_0x182a54(0x105)](_0x182a54(_0x4095ca._0x5b9b57), String(_0x3eb46b));
|
|
1053
|
+
_0x106e52[_0x182a54(0x161)] ? (_0x24d231['set'](_0x182a54(_0x4095ca._0xfdb67), _0x106e52['threadId']), _0x24d231[_0x182a54(0x105)](_0x182a54(0xfa), _0x106e52[_0x182a54(0xfa)])) : _0x24d231[_0x182a54(_0x4095ca._0x51acfc)]('channelId', _0x106e52[_0x182a54(_0x4095ca._0x18638e)]);
|
|
1054
|
+
_0x106e52[_0x182a54(0x10d)] && _0x24d231['set'](_0x182a54(_0x4095ca._0x1f81e3), String(_0x106e52[_0x182a54(0x10d)]));
|
|
1055
|
+
_0x106e52[_0x182a54(0x15a)] !== void 0x0 && _0x24d231['set'](_0x182a54(0x15a), String(_0x106e52['after']));
|
|
1056
|
+
const _0x40eaec = await _0xa49f11(_0x182a54(_0x4095ca._0x4e2c74) + _0x57afd2[_0x182a54(_0x4095ca._0xc6c63c)] + '/history?' + _0x24d231[_0x182a54(0x206)](), {
|
|
1057
|
+
'headers': _0xba430a,
|
|
1058
|
+
'method': _0x182a54(_0x4095ca._0x3c1116)
|
|
1059
|
+
}), _0x5bb11a = (_0x40eaec[_0x182a54(0x14f)] ?? [])['map'](_0x66d0ca => ({
|
|
1060
|
+
'attachments': (_0x66d0ca[_0x182a54(0xf6)] ?? [])[_0x182a54(0xe1)](_0x5b893d => ({
|
|
1061
|
+
'filename': _0x5b893d['filename'] ?? _0x5b893d['id'],
|
|
1062
|
+
'id': _0x5b893d['id']
|
|
1063
|
+
})),
|
|
1064
|
+
'content': _0x66d0ca['bodyMarkdown'] ?? '',
|
|
1065
|
+
'createdAt': _0x66d0ca[_0x182a54(0x1f8)],
|
|
1066
|
+
..._0x66d0ca['kind'] && _0x66d0ca[_0x182a54(0x162)] !== _0x182a54(0x14b) ? { 'kind': _0x66d0ca[_0x182a54(0x162)] } : {},
|
|
1067
|
+
'messageId': _0x66d0ca['id'],
|
|
1068
|
+
'senderName': _0x66d0ca[_0x182a54(0x103)],
|
|
1069
|
+
'senderType': _0x2f015e(_0x66d0ca['senderParticipantId'], _0x49d083),
|
|
1070
|
+
'seq': _0x66d0ca['eventSeq'] ?? 0x0
|
|
1071
|
+
}));
|
|
1072
|
+
return {
|
|
1073
|
+
'channel': _0x106e52['channelTarget'],
|
|
1074
|
+
'hasMore': _0x40eaec[_0x182a54(_0x4095ca._0x45ad61)]?.[_0x182a54(0x199)] ?? ![],
|
|
1075
|
+
'messages': _0x5bb11a,
|
|
1076
|
+
'nextCursor': _0x40eaec['meta']?.[_0x182a54(_0x4095ca._0x1f81e3)]
|
|
1077
|
+
};
|
|
1078
|
+
}
|
|
1079
|
+
return {
|
|
1080
|
+
async 'sendMessage'(_0x27cc4d) {
|
|
1081
|
+
const _0x3bcaeb = _0x200d6a, _0x2e0e0d = await _0x5123a3(_0x27cc4d[_0x3bcaeb(_0x155220._0x5d5a39)]), _0x2b713b = _0x27cc4d[_0x3bcaeb(0x245)][_0x3bcaeb(0x23a)]('@') ? extractMentionedParticipantIds(_0x27cc4d[_0x3bcaeb(_0x155220._0x4ac521)], await _0x6bf2ff()) : [], _0xe1a6ac = await _0xa49f11('/internal/agent/' + _0x57afd2[_0x3bcaeb(0x176)] + _0x3bcaeb(_0x155220._0x44ba5c), {
|
|
1082
|
+
'body': JSON[_0x3bcaeb(_0x155220._0x644ee7)]({
|
|
1083
|
+
'attachment_ids': _0x27cc4d[_0x3bcaeb(0xec)],
|
|
1084
|
+
'bodyMarkdown': _0x27cc4d['content'],
|
|
1085
|
+
'channelId': _0x2e0e0d['channelId'],
|
|
1086
|
+
..._0x2b713b[_0x3bcaeb(_0x155220._0x1f1613)] > 0x0 ? { 'mentionedParticipantIds': _0x2b713b } : {},
|
|
1087
|
+
'threadId': _0x2e0e0d['threadId'],
|
|
1088
|
+
..._0x27cc4d[_0x3bcaeb(_0x155220._0xd54b1b)] ? { 'visibility': _0x27cc4d[_0x3bcaeb(_0x155220._0x41ffa7)] } : {}
|
|
1089
|
+
}),
|
|
1090
|
+
'headers': _0xba430a,
|
|
1091
|
+
'method': 'POST'
|
|
1092
|
+
});
|
|
1093
|
+
return { 'messageId': _0xe1a6ac[_0x3bcaeb(_0x155220._0x519220)]?.['id'] ?? '' };
|
|
1094
|
+
},
|
|
1095
|
+
async 'listSchedules'() {
|
|
1096
|
+
const _0x161a21 = _0x200d6a, _0x201170 = await _0xa49f11('/api/internal/schedules', {
|
|
1097
|
+
'headers': _0xba430a,
|
|
1098
|
+
'method': _0x161a21(_0xb7e3ff._0x4274a9)
|
|
1099
|
+
});
|
|
1100
|
+
return _0x201170[_0x161a21(0x14f)] ?? [];
|
|
1101
|
+
},
|
|
1102
|
+
async 'claimScheduleRun'(_0x31d8cd) {
|
|
1103
|
+
const _0x16735c = _0x200d6a, _0x53c35e = await _0xa49f11(_0x16735c(_0x17cb7d._0x144ffa), {
|
|
1104
|
+
'body': JSON[_0x16735c(_0x17cb7d._0x300690)](_0x31d8cd),
|
|
1105
|
+
'headers': _0xba430a,
|
|
1106
|
+
'method': _0x16735c(0x20e)
|
|
1107
|
+
});
|
|
1108
|
+
return _0x53c35e['data'] ?? {
|
|
1109
|
+
'granted': ![],
|
|
1110
|
+
'runId': null,
|
|
1111
|
+
'schedule': null,
|
|
1112
|
+
'scheduledFor': _0x31d8cd[_0x16735c(0x160)]
|
|
1113
|
+
};
|
|
1114
|
+
},
|
|
1115
|
+
async 'startScheduleRun'(_0x594714) {
|
|
1116
|
+
const _0x4856ab = _0x200d6a, _0x3c4522 = await _0xa49f11('/api/internal/schedules/' + encodeURIComponent(_0x594714[_0x4856ab(0x1c3)]) + _0x4856ab(_0x11b627._0x5db3d1), {
|
|
1117
|
+
'body': JSON[_0x4856ab(_0x11b627._0x385e06)]({}),
|
|
1118
|
+
'headers': _0xba430a,
|
|
1119
|
+
'method': _0x4856ab(_0x11b627._0x5b3dc2)
|
|
1120
|
+
});
|
|
1121
|
+
return _0x3c4522['data'] ?? {
|
|
1122
|
+
'claimedByDaemonId': '',
|
|
1123
|
+
'id': _0x594714[_0x4856ab(0x1c3)],
|
|
1124
|
+
'scheduleId': '',
|
|
1125
|
+
'status': 'running'
|
|
1126
|
+
};
|
|
1127
|
+
},
|
|
1128
|
+
async 'finishScheduleRun'(_0x299d18) {
|
|
1129
|
+
const _0x103458 = _0x200d6a, _0x5865e6 = await _0xa49f11(_0x103458(_0x28d485._0x4249e4) + encodeURIComponent(_0x299d18[_0x103458(_0x28d485._0x3e6031)]) + _0x103458(_0x28d485._0x2c735e), {
|
|
1130
|
+
'body': JSON[_0x103458(0x1d6)]({
|
|
1131
|
+
'error': _0x299d18[_0x103458(_0x28d485._0x26556b)],
|
|
1132
|
+
'resultJson': _0x299d18['resultJson'],
|
|
1133
|
+
'status': _0x299d18['status']
|
|
1134
|
+
}),
|
|
1135
|
+
'headers': _0xba430a,
|
|
1136
|
+
'method': _0x103458(_0x28d485._0x234f6f)
|
|
1137
|
+
});
|
|
1138
|
+
return _0x5865e6['data'] ?? {
|
|
1139
|
+
'nextRunAt': null,
|
|
1140
|
+
'run': {
|
|
1141
|
+
'claimedByDaemonId': '',
|
|
1142
|
+
'id': _0x299d18['runId'],
|
|
1143
|
+
'scheduleId': '',
|
|
1144
|
+
'status': _0x299d18['status']
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
},
|
|
1148
|
+
async 'listTasks'(_0x4eb9bd) {
|
|
1149
|
+
const _0x1a82d6 = _0x200d6a, _0x5ceecc = new URLSearchParams();
|
|
1150
|
+
return _0x5ceecc[_0x1a82d6(0x105)](_0x1a82d6(_0x348de6._0x5bc97a), _0x4eb9bd[_0x1a82d6(_0x348de6._0x5bc97a)]), _0x4eb9bd[_0x1a82d6(_0x348de6._0x294661)] && _0x5ceecc[_0x1a82d6(0x105)](_0x1a82d6(0x1ef), _0x4eb9bd['status']), _0x3c9588('/internal/agent/' + _0x57afd2[_0x1a82d6(0x176)] + '/tasks?' + _0x5ceecc['toString'](), {
|
|
1151
|
+
'headers': _0xba430a,
|
|
1152
|
+
'method': _0x1a82d6(0x1b2)
|
|
1153
|
+
});
|
|
1154
|
+
},
|
|
1155
|
+
async 'createTasks'(_0x1695f8) {
|
|
1156
|
+
const _0x54d896 = _0x200d6a;
|
|
1157
|
+
return _0x3c9588(_0x54d896(0x224) + _0x57afd2['agentId'] + _0x54d896(0x141), {
|
|
1158
|
+
'body': JSON['stringify']({
|
|
1159
|
+
..._0x1695f8,
|
|
1160
|
+
'idempotency_key': _0x189d28(_0x54d896(_0x3219eb._0xc1ae47), _0x1695f8)
|
|
1161
|
+
}),
|
|
1162
|
+
'headers': _0xba430a,
|
|
1163
|
+
'method': _0x54d896(0x20e)
|
|
1164
|
+
});
|
|
1165
|
+
},
|
|
1166
|
+
async 'claimTasks'(_0x232601) {
|
|
1167
|
+
const _0x5b823f = _0x200d6a;
|
|
1168
|
+
return _0x3c9588(_0x5b823f(_0xfce2ba._0x37b9f9) + _0x57afd2[_0x5b823f(0x176)] + _0x5b823f(0x22a), {
|
|
1169
|
+
'body': JSON['stringify']({
|
|
1170
|
+
..._0x232601,
|
|
1171
|
+
'idempotency_key': _0x189d28('claim_tasks', _0x232601)
|
|
1172
|
+
}),
|
|
1173
|
+
'headers': _0xba430a,
|
|
1174
|
+
'method': _0x5b823f(0x20e)
|
|
1175
|
+
});
|
|
1176
|
+
},
|
|
1177
|
+
async 'unclaimTask'(_0x146ae5) {
|
|
1178
|
+
const _0x5498f6 = _0x200d6a;
|
|
1179
|
+
return _0x3c9588(_0x5498f6(_0x358f67._0x5ca5f5) + _0x57afd2[_0x5498f6(_0x358f67._0xf9177c)] + '/tasks/unclaim', {
|
|
1180
|
+
'body': JSON['stringify']({
|
|
1181
|
+
..._0x146ae5,
|
|
1182
|
+
'idempotency_key': _0x189d28(_0x5498f6(_0x358f67._0x1375c1), _0x146ae5)
|
|
1183
|
+
}),
|
|
1184
|
+
'headers': _0xba430a,
|
|
1185
|
+
'method': _0x5498f6(0x20e)
|
|
1186
|
+
});
|
|
1187
|
+
},
|
|
1188
|
+
async 'updateTaskStatus'(_0x2a3fe5) {
|
|
1189
|
+
const _0x49f408 = _0x200d6a;
|
|
1190
|
+
return _0x3c9588(_0x49f408(_0x3db4ce._0x3a86bd) + _0x57afd2[_0x49f408(0x176)] + '/tasks/update-status', {
|
|
1191
|
+
'body': JSON[_0x49f408(_0x3db4ce._0x179b69)]({
|
|
1192
|
+
..._0x2a3fe5,
|
|
1193
|
+
'idempotency_key': _0x189d28(_0x49f408(_0x3db4ce._0x192211), _0x2a3fe5)
|
|
1194
|
+
}),
|
|
1195
|
+
'headers': _0xba430a,
|
|
1196
|
+
'method': 'POST'
|
|
1197
|
+
});
|
|
1198
|
+
},
|
|
1199
|
+
async 'uploadFile'(_0x1df05e) {
|
|
1200
|
+
const _0x4f5b1c = _0x200d6a, _0x504b40 = await _0x5123a3(_0x1df05e[_0x4f5b1c(_0x3f20ef._0x54858b)]);
|
|
1201
|
+
if (_0x504b40[_0x4f5b1c(_0x3f20ef._0x3a3682)])
|
|
1202
|
+
throw new Error(_0x4f5b1c(0x18e));
|
|
1203
|
+
const _0x52d4a2 = await _0xa49f11(_0x4f5b1c(0x224) + _0x57afd2[_0x4f5b1c(_0x3f20ef._0x110d67)] + _0x4f5b1c(0x260), {
|
|
1204
|
+
'body': JSON[_0x4f5b1c(0x1d6)]({
|
|
1205
|
+
'channel': _0x504b40[_0x4f5b1c(0x15d)],
|
|
1206
|
+
'contentBase64': _0x1df05e[_0x4f5b1c(0x219)],
|
|
1207
|
+
'contentType': _0x1df05e['contentType'],
|
|
1208
|
+
'originalFilename': _0x1df05e['filename']
|
|
1209
|
+
}),
|
|
1210
|
+
'headers': _0xba430a,
|
|
1211
|
+
'method': _0x4f5b1c(0x20e)
|
|
1212
|
+
});
|
|
1213
|
+
return {
|
|
1214
|
+
'attachmentId': _0x52d4a2[_0x4f5b1c(_0x3f20ef._0x189b4d)]?.['id'] ?? '',
|
|
1215
|
+
'filename': _0x52d4a2[_0x4f5b1c(_0x3f20ef._0x189b4d)]?.[_0x4f5b1c(_0x3f20ef._0x3ce4c8)] ?? _0x1df05e[_0x4f5b1c(0x113)],
|
|
1216
|
+
'sizeBytes': _0x52d4a2[_0x4f5b1c(_0x3f20ef._0x189b4d)]?.['sizeBytes'] ?? 0x0
|
|
1217
|
+
};
|
|
1218
|
+
},
|
|
1219
|
+
async 'downloadAttachment'(_0x35c259) {
|
|
1220
|
+
const _0x4c9e9c = _0x200d6a, _0xcd1c86 = await _0xa49f11(_0x4c9e9c(_0x3a9722._0x483aac) + _0x35c259, {
|
|
1221
|
+
'headers': _0xba430a,
|
|
1222
|
+
'method': _0x4c9e9c(0x1b2)
|
|
1223
|
+
}), _0x184b8f = new AbortController(), _0x3695d3 = setTimeout(() => _0x184b8f[_0x4c9e9c(0x1ba)](), _0x209079);
|
|
1224
|
+
try {
|
|
1225
|
+
const _0x4a9824 = await _0x3d5270(_0x2e288d + '/api/attachments/' + _0x35c259 + '/content', {
|
|
1226
|
+
'headers': _0xba430a,
|
|
1227
|
+
'method': _0x4c9e9c(_0x3a9722._0x329114),
|
|
1228
|
+
'signal': _0x184b8f[_0x4c9e9c(_0x3a9722._0x2b8645)]
|
|
1229
|
+
});
|
|
1230
|
+
if (!_0x4a9824['ok'])
|
|
1231
|
+
throw new Error(_0x4c9e9c(0x193) + _0x4a9824[_0x4c9e9c(0x1ef)]);
|
|
1232
|
+
return {
|
|
1233
|
+
'contentType': _0xcd1c86[_0x4c9e9c(_0x3a9722._0x674809)]?.[_0x4c9e9c(0x1f5)] ?? _0x4a9824[_0x4c9e9c(_0x3a9722._0x1ec6f9)][_0x4c9e9c(_0x3a9722._0x1257b6)]('content-type') ?? 'application/octet-stream',
|
|
1234
|
+
'data': Buffer[_0x4c9e9c(_0x3a9722._0x76828c)](await _0x4a9824[_0x4c9e9c(0xda)]()),
|
|
1235
|
+
'originalFilename': _0xcd1c86['data']?.[_0x4c9e9c(0x1bf)]
|
|
1236
|
+
};
|
|
1237
|
+
} finally {
|
|
1238
|
+
clearTimeout(_0x3695d3);
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
async 'listServer'() {
|
|
1242
|
+
return _0x6bf2ff({ 'forceRefresh': !![] });
|
|
1243
|
+
},
|
|
1244
|
+
async 'readHistory'(_0x9e22df) {
|
|
1245
|
+
const _0x44fddd = _0x200d6a, _0xe2c8ff = await _0x5123a3(_0x9e22df[_0x44fddd(_0x1c6736._0x3bf760)]);
|
|
1246
|
+
return _0x32f79a({
|
|
1247
|
+
'after': _0x9e22df['after'],
|
|
1248
|
+
'before': _0x9e22df['before'],
|
|
1249
|
+
'channelId': _0xe2c8ff['channelId'],
|
|
1250
|
+
'channelTarget': _0xe2c8ff[_0x44fddd(0x15d)],
|
|
1251
|
+
'limit': _0x9e22df[_0x44fddd(0x12b)],
|
|
1252
|
+
'threadId': _0xe2c8ff[_0x44fddd(0x161)]
|
|
1253
|
+
});
|
|
1254
|
+
},
|
|
1255
|
+
'resolveTarget': _0x5123a3,
|
|
1256
|
+
async 'checkMessages'() {
|
|
1257
|
+
const _0x5d4a7d = {
|
|
1258
|
+
_0x3798e5: 0xfa,
|
|
1259
|
+
_0xaf31f0: 0x237
|
|
1260
|
+
}, _0xf370c8 = _0x200d6a, _0x4640f8 = new URLSearchParams();
|
|
1261
|
+
_0x4640f8[_0xf370c8(_0x31733e._0xd82a87)](_0xf370c8(0xd7), String(_0x3d498a));
|
|
1262
|
+
const _0x3ee0c8 = _0x4640f8['toString'](), _0x29bea0 = await _0xa49f11('/internal/agent/' + _0x57afd2[_0xf370c8(_0x31733e._0x578624)] + _0xf370c8(0xfc) + (_0x3ee0c8 ? '?' + _0x3ee0c8 : ''), {
|
|
1263
|
+
'headers': _0xba430a,
|
|
1264
|
+
'method': 'GET'
|
|
1265
|
+
}), _0x57485e = _0x29bea0[_0xf370c8(_0x31733e._0x59840d)] ?? [], _0x249cc0 = _0x29bea0[_0xf370c8(_0x31733e._0x57094e)]?.[_0xf370c8(_0x31733e._0xeb82d8)], _0x317ad5 = _0x249cc0 !== void 0x0 ? Math[_0xf370c8(0x143)](_0x3d498a, _0x249cc0) : _0x57485e[_0xf370c8(_0x31733e._0x315c62)] > 0x0 ? Math[_0xf370c8(_0x31733e._0x450d09)](_0x3d498a, _0x57485e[_0x57485e[_0xf370c8(0x190)] - 0x1][_0xf370c8(_0x31733e._0x378364)]) : _0x3d498a, _0x112dde = _0x57485e['filter'](_0x15b902 => _0x15b902[_0xf370c8(0x127)] === _0xf370c8(0x228)), _0x312478 = _0xdbcad0 === void 0x0 && _0x3d6510;
|
|
1266
|
+
let _0x3098c4 = await _0x6bf2ff(), _0x20a516 = new Map(_0x3098c4[_0xf370c8(_0x31733e._0x349552)][_0xf370c8(0xe1)](_0x2bc340 => [
|
|
1267
|
+
_0x2bc340['id'],
|
|
1268
|
+
_0x2bc340
|
|
1269
|
+
]));
|
|
1270
|
+
const _0x5d8fd4 = _0x112dde[_0xf370c8(_0x31733e._0x1a1c87)](_0x383064 => {
|
|
1271
|
+
const _0x542568 = _0xf370c8, _0x3b3ab1 = asRecord(_0x383064['payloadJson']), _0x2806ef = typeof _0x3b3ab1?.[_0x542568(0xfa)] === _0x542568(0x212) ? _0x3b3ab1[_0x542568(_0x5d4a7d._0x3798e5)] : '';
|
|
1272
|
+
return Boolean(_0x2806ef) && !_0x20a516[_0x542568(_0x5d4a7d._0xaf31f0)](_0x2806ef);
|
|
1273
|
+
});
|
|
1274
|
+
_0x5d8fd4 && (_0x3098c4 = await _0x6bf2ff({ 'forceRefresh': !![] }), _0x20a516 = new Map(_0x3098c4[_0xf370c8(0x1ce)]['map'](_0x107570 => [
|
|
1275
|
+
_0x107570['id'],
|
|
1276
|
+
_0x107570
|
|
1277
|
+
])));
|
|
1278
|
+
const _0x163957 = new Map();
|
|
1279
|
+
for (const _0x3aecf of _0x112dde) {
|
|
1280
|
+
const _0x5f4c67 = asRecord(_0x3aecf[_0xf370c8(0x1f9)]), _0x272ca2 = typeof _0x5f4c67[_0xf370c8(_0x31733e._0x621ee6)] === _0xf370c8(0x212) ? _0x5f4c67[_0xf370c8(_0x31733e._0x621ee6)] : '';
|
|
1281
|
+
if (!_0x272ca2)
|
|
1282
|
+
continue;
|
|
1283
|
+
const _0x362546 = typeof _0x5f4c67[_0xf370c8(_0x31733e._0x3921bd)] === _0xf370c8(_0x31733e._0x3f4c41) ? _0x5f4c67[_0xf370c8(0x161)] : void 0x0, _0x5733d1 = typeof _0x5f4c67[_0xf370c8(0x1a4)] === _0xf370c8(_0x31733e._0x1a562b) ? _0x5f4c67[_0xf370c8(0x1a4)] : void 0x0, _0x2ccaa8 = typeof _0x5f4c67['threadNumber'] === _0xf370c8(0xf9) && Number[_0xf370c8(_0x31733e._0x266774)](_0x5f4c67[_0xf370c8(0x192)]) ? _0x5f4c67['threadNumber'] : void 0x0, _0x2c9e71 = Boolean(_0x362546 && (!_0x5733d1 || _0x3aecf[_0xf370c8(0x17a)] !== _0x5733d1)), _0xfa7c3b = _0x2c9e71 ? _0x272ca2 + ':' + _0x362546 : _0x272ca2, _0x13759f = _0x163957[_0xf370c8(0x241)](_0xfa7c3b) ?? {
|
|
1284
|
+
'aggregateIds': [],
|
|
1285
|
+
'channelId': _0x272ca2,
|
|
1286
|
+
'entries': new Map(),
|
|
1287
|
+
'isThreadReply': _0x2c9e71,
|
|
1288
|
+
'rootMessageId': _0x5733d1,
|
|
1289
|
+
'threadNumber': _0x2ccaa8,
|
|
1290
|
+
'threadId': _0x2c9e71 ? _0x362546 : void 0x0
|
|
1291
|
+
};
|
|
1292
|
+
_0x13759f['threadNumber'] == null && _0x2ccaa8 != null && (_0x13759f[_0xf370c8(0x192)] = _0x2ccaa8), !_0x13759f[_0xf370c8(0x1a4)] && _0x5733d1 && (_0x13759f['rootMessageId'] = _0x5733d1), _0x13759f['aggregateIds'][_0xf370c8(_0x31733e._0x5d1aa3)](_0x3aecf[_0xf370c8(_0x31733e._0x4727b8)]), _0x13759f[_0xf370c8(0x217)][_0xf370c8(0x105)](_0x3aecf['aggregateId'], {
|
|
1293
|
+
'payloadJson': _0x3aecf[_0xf370c8(0x1f9)],
|
|
1294
|
+
'seq': _0x3aecf[_0xf370c8(0xfe)]
|
|
1295
|
+
}), _0x163957[_0xf370c8(_0x31733e._0xd82a87)](_0xfa7c3b, _0x13759f);
|
|
1296
|
+
}
|
|
1297
|
+
const _0xc131b1 = [];
|
|
1298
|
+
for (const _0x4467d8 of _0x163957[_0xf370c8(0x226)]()) {
|
|
1299
|
+
const {
|
|
1300
|
+
channelId: _0x252989,
|
|
1301
|
+
threadId: _0x47a51e,
|
|
1302
|
+
rootMessageId: _0x27dd35,
|
|
1303
|
+
threadNumber: _0x44962b,
|
|
1304
|
+
aggregateIds: _0x53354c,
|
|
1305
|
+
isThreadReply: _0x4265e6,
|
|
1306
|
+
entries: _0x425816
|
|
1307
|
+
} = _0x4467d8, _0x4aa0ee = _0x20a516[_0xf370c8(0x241)](_0x252989), _0x35f032 = _0x4aa0ee?.[_0xf370c8(0x204)] ?? _0x252989, _0x5a192c = _0x4aa0ee?.['kind'] === 'dm' ? _0xf370c8(0x208) + _0x35f032 : '#' + _0x35f032, _0x42e1ef = {
|
|
1308
|
+
'channelTarget': _0x5a192c,
|
|
1309
|
+
'rootMessageId': _0x27dd35,
|
|
1310
|
+
'threadId': _0x47a51e,
|
|
1311
|
+
'threadNumber': _0x44962b
|
|
1312
|
+
}, _0x2c90bc = await _0x32f79a({
|
|
1313
|
+
'channelId': _0x252989,
|
|
1314
|
+
'channelTarget': _0x5a192c,
|
|
1315
|
+
'limit': Math[_0xf370c8(0x143)](_0x53354c['length'], 0x32),
|
|
1316
|
+
'threadId': _0x47a51e
|
|
1317
|
+
}), _0x4e181a = new Map(_0x2c90bc[_0xf370c8(0x1e4)][_0xf370c8(0xe1)](_0x3d81f1 => [
|
|
1318
|
+
_0x3d81f1['messageId'],
|
|
1319
|
+
_0x3d81f1
|
|
1320
|
+
])), _0x5ba09f = _0x47a51e ? _0x5e0933(_0x42e1ef) : _0x5a192c, _0xa81446 = _0xdbcad0 ? _0x4265e6 && _0x3f0058(_0xdbcad0, _0x42e1ef) : !![], _0x2b8e74 = _0x4265e6 ? _0xa81446 && _0xdbcad0 ? _0xdbcad0 : _0x5ba09f : _0x5a192c;
|
|
1321
|
+
for (const _0x257cf1 of _0x53354c) {
|
|
1322
|
+
if (!_0xa81446)
|
|
1323
|
+
continue;
|
|
1324
|
+
const _0x43adef = _0x425816[_0xf370c8(0x241)](_0x257cf1), _0xbffc60 = _0x43adef ? asRecord(_0x43adef[_0xf370c8(0x1f9)]) : void 0x0, _0x33bac6 = _0xbffc60?.[_0xf370c8(_0x31733e._0x54732b)] === _0xf370c8(_0x31733e._0x216bcd);
|
|
1325
|
+
if (_0x312478 && _0x33bac6)
|
|
1326
|
+
continue;
|
|
1327
|
+
const _0x54d28e = _0x4e181a['get'](_0x257cf1);
|
|
1328
|
+
if (_0x54d28e) {
|
|
1329
|
+
_0xc131b1[_0xf370c8(_0x31733e._0x404ecb)]({
|
|
1330
|
+
'attachments': _0x54d28e[_0xf370c8(_0x31733e._0x171d5b)],
|
|
1331
|
+
'content': _0x54d28e[_0xf370c8(0x245)],
|
|
1332
|
+
'createdAt': _0x54d28e['createdAt'],
|
|
1333
|
+
..._0x54d28e[_0xf370c8(_0x31733e._0x569a86)] ? { 'kind': _0x54d28e[_0xf370c8(_0x31733e._0x569a86)] } : {},
|
|
1334
|
+
'messageId': _0x54d28e[_0xf370c8(0x1b0)],
|
|
1335
|
+
'senderName': _0x54d28e[_0xf370c8(0xd9)],
|
|
1336
|
+
'senderType': _0x54d28e[_0xf370c8(_0x31733e._0x3bf773)],
|
|
1337
|
+
'target': _0x2b8e74,
|
|
1338
|
+
..._0x33bac6 ? { 'targetedTask': !![] } : {}
|
|
1339
|
+
});
|
|
1340
|
+
continue;
|
|
1341
|
+
}
|
|
1342
|
+
if (_0x43adef) {
|
|
1343
|
+
const _0x515946 = typeof _0xbffc60?.[_0xf370c8(_0x31733e._0x411b55)] === 'string' ? _0xbffc60['senderParticipantId'] : '', _0x3dfc8c = typeof _0xbffc60?.[_0xf370c8(0x20a)] === _0xf370c8(_0x31733e._0x1a562b) ? _0xbffc60[_0xf370c8(0x20a)] : '', _0x5ae02a = typeof _0xbffc60?.['kind'] === _0xf370c8(0x212) && _0xbffc60[_0xf370c8(0x162)] !== _0xf370c8(0x14b) ? _0xbffc60[_0xf370c8(0x162)] : void 0x0;
|
|
1344
|
+
_0x515946 && _0x3dfc8c && _0xc131b1[_0xf370c8(0x1b8)]({
|
|
1345
|
+
'attachments': [],
|
|
1346
|
+
'content': _0x3dfc8c,
|
|
1347
|
+
'createdAt': new Date()[_0xf370c8(_0x31733e._0x1a92dc)](),
|
|
1348
|
+
..._0x5ae02a ? { 'kind': _0x5ae02a } : {},
|
|
1349
|
+
'messageId': _0x257cf1,
|
|
1350
|
+
'senderName': _0x515946,
|
|
1351
|
+
'senderType': _0x2f015e(_0x515946, _0x3098c4),
|
|
1352
|
+
'target': _0x2b8e74,
|
|
1353
|
+
..._0x33bac6 ? { 'targetedTask': !![] } : {}
|
|
1354
|
+
});
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
if (_0x317ad5 > 0x0) {
|
|
1359
|
+
if (_0x361709)
|
|
1360
|
+
await _0x279534(_0x317ad5);
|
|
1361
|
+
else
|
|
1362
|
+
_0x3b3fa1 && await _0x470e30(_0x317ad5);
|
|
1363
|
+
}
|
|
1364
|
+
return _0x317ad5 > _0x3d498a && (_0x3d498a = _0x317ad5), { 'messages': _0xdbcad0 ? _0xc131b1 : _0x312478 ? _0xc131b1['filter'](_0x3f45df => _0x3f45df[_0xf370c8(0x247)] !== !![]) : _0xc131b1 };
|
|
1365
|
+
}
|
|
1465
1366
|
};
|
|
1466
|
-
return _0x39e6();
|
|
1467
1367
|
}
|
|
1468
|
-
function
|
|
1469
|
-
const
|
|
1470
|
-
|
|
1368
|
+
function toLocalTime(_0x23b8f3) {
|
|
1369
|
+
const _0x4659bf = {
|
|
1370
|
+
_0x585ee5: 0xe2,
|
|
1371
|
+
_0x250f26: 0x136,
|
|
1372
|
+
_0x6c43d3: 0x253,
|
|
1373
|
+
_0x272761: 0x107
|
|
1374
|
+
}, _0x1ff463 = _0xba094d, _0xfbef53 = new Date(_0x23b8f3);
|
|
1375
|
+
if (Number[_0x1ff463(0x201)](_0xfbef53[_0x1ff463(_0x4659bf._0x585ee5)]()))
|
|
1376
|
+
return _0x23b8f3;
|
|
1377
|
+
const _0xcd188a = _0x590f09 => String(_0x590f09)[_0x1ff463(0x1fb)](0x2, '0');
|
|
1378
|
+
return _0xfbef53[_0x1ff463(_0x4659bf._0x250f26)]() + '-' + _0xcd188a(_0xfbef53[_0x1ff463(0x17e)]() + 0x1) + '-' + _0xcd188a(_0xfbef53['getDate']()) + '\x20' + _0xcd188a(_0xfbef53[_0x1ff463(_0x4659bf._0x6c43d3)]()) + ':' + _0xcd188a(_0xfbef53[_0x1ff463(0x1b1)]()) + ':' + _0xcd188a(_0xfbef53[_0x1ff463(_0x4659bf._0x272761)]());
|
|
1379
|
+
}
|
|
1380
|
+
function formatAttachmentSuffix(_0x23c9ce) {
|
|
1381
|
+
const _0x1c3370 = {
|
|
1382
|
+
_0x35df3f: 0x190,
|
|
1383
|
+
_0x4c8f35: 0x119
|
|
1384
|
+
}, _0xa703be = _0xba094d;
|
|
1385
|
+
if (!_0x23c9ce || _0x23c9ce['length'] === 0x0)
|
|
1386
|
+
return '';
|
|
1387
|
+
return '\x20[' + _0x23c9ce[_0xa703be(0x190)] + _0xa703be(0x189) + (_0x23c9ce[_0xa703be(_0x1c3370._0x35df3f)] > 0x1 ? 's' : '') + ':\x20' + _0x23c9ce[_0xa703be(0xe1)](_0x374b76 => _0x374b76['filename'] + _0xa703be(0x1cf) + _0x374b76['id'] + ')')[_0xa703be(0x234)](',\x20') + _0xa703be(_0x1c3370._0x4c8f35);
|
|
1388
|
+
}
|
|
1389
|
+
function formatCheckMessages(_0x254105) {
|
|
1390
|
+
const _0x37a4e6 = {
|
|
1391
|
+
_0xad4754: 0x183,
|
|
1392
|
+
_0x512384: 0xe1
|
|
1393
|
+
}, _0x346edd = {
|
|
1394
|
+
_0x3c5786: 0x1bc,
|
|
1395
|
+
_0x4b2539: 0x162,
|
|
1396
|
+
_0x175513: 0x1b3,
|
|
1397
|
+
_0x576723: 0x1f8,
|
|
1398
|
+
_0x10b5b9: 0x1e9
|
|
1399
|
+
}, _0x27b88c = _0xba094d;
|
|
1400
|
+
if (_0x254105['length'] === 0x0)
|
|
1401
|
+
return _0x27b88c(_0x37a4e6._0xad4754);
|
|
1402
|
+
return _0x254105[_0x27b88c(_0x37a4e6._0x512384)](_0x39f98d => {
|
|
1403
|
+
const _0x39a15b = _0x27b88c, _0x26c3c3 = _0x39f98d[_0x39a15b(0x109)] === _0x39a15b(0x25d) ? _0x39a15b(_0x346edd._0x3c5786) : '', _0x2cab88 = _0x39f98d[_0x39a15b(_0x346edd._0x4b2539)] && _0x39f98d[_0x39a15b(0x162)] !== _0x39a15b(0x14b) ? '\x20kind=' + _0x39f98d['kind'] : '';
|
|
1404
|
+
return _0x39a15b(_0x346edd._0x175513) + _0x39f98d[_0x39a15b(0x15d)] + _0x39a15b(0x11b) + _0x39f98d[_0x39a15b(0x1b0)]['slice'](0x0, 0x8) + '\x20time=' + toLocalTime(_0x39f98d[_0x39a15b(_0x346edd._0x576723)]) + _0x26c3c3 + _0x2cab88 + _0x39a15b(_0x346edd._0x10b5b9) + _0x39f98d[_0x39a15b(0xd9)] + ':\x20' + _0x39f98d['content'] + formatAttachmentSuffix(_0x39f98d[_0x39a15b(0xf6)]);
|
|
1405
|
+
})['join']('\x0a');
|
|
1406
|
+
}
|
|
1407
|
+
function formatHistory(_0x526c12) {
|
|
1408
|
+
const _0x2dc3e0 = {
|
|
1409
|
+
_0x16dd55: 0x190,
|
|
1410
|
+
_0xca0630: 0x1b9,
|
|
1411
|
+
_0x197d59: 0x1ac,
|
|
1412
|
+
_0x8dbc3a: 0x1e4,
|
|
1413
|
+
_0x49bfae: 0x190,
|
|
1414
|
+
_0x284df5: 0x20c,
|
|
1415
|
+
_0x3b4e77: 0x249,
|
|
1416
|
+
_0x316d4f: 0x145
|
|
1417
|
+
}, _0x2a08a1 = {
|
|
1418
|
+
_0x2753dd: 0x25d,
|
|
1419
|
+
_0x4c0f90: 0x162,
|
|
1420
|
+
_0x5ef5c4: 0x162,
|
|
1421
|
+
_0x4b183a: 0x1b0,
|
|
1422
|
+
_0x50761b: 0xf6
|
|
1423
|
+
}, _0x2cd1ba = _0xba094d;
|
|
1424
|
+
if (_0x526c12[_0x2cd1ba(0x1e4)][_0x2cd1ba(_0x2dc3e0._0x16dd55)] === 0x0)
|
|
1425
|
+
return _0x2cd1ba(_0x2dc3e0._0xca0630) + _0x526c12[_0x2cd1ba(_0x2dc3e0._0x197d59)] + _0x2cd1ba(0x1f0);
|
|
1426
|
+
const _0x262ddf = _0x526c12[_0x2cd1ba(_0x2dc3e0._0x8dbc3a)][_0x2cd1ba(0xe1)](_0x2688a7 => {
|
|
1427
|
+
const _0x408daf = _0x2cd1ba, _0x19f5bd = _0x2688a7[_0x408daf(0x109)] === _0x408daf(_0x2a08a1._0x2753dd) ? _0x408daf(0x1bc) : '', _0x5576a6 = _0x2688a7[_0x408daf(_0x2a08a1._0x4c0f90)] && _0x2688a7[_0x408daf(0x162)] !== _0x408daf(0x14b) ? _0x408daf(0x171) + _0x2688a7[_0x408daf(_0x2a08a1._0x5ef5c4)] : '';
|
|
1428
|
+
return _0x408daf(0x23f) + _0x2688a7['seq'] + _0x408daf(0x11b) + _0x2688a7[_0x408daf(_0x2a08a1._0x4b183a)] + '\x20time=' + toLocalTime(_0x2688a7['createdAt']) + _0x19f5bd + _0x5576a6 + _0x408daf(0x1e9) + _0x2688a7[_0x408daf(0xd9)] + ':\x20' + _0x2688a7['content'] + formatAttachmentSuffix(_0x2688a7[_0x408daf(_0x2a08a1._0x50761b)]);
|
|
1429
|
+
})[_0x2cd1ba(0x234)]('\x0a'), _0x1fe63d = _0x526c12[_0x2cd1ba(0x199)] && _0x526c12[_0x2cd1ba(0x20c)] ? _0x2cd1ba(0x1a2) + _0x526c12[_0x2cd1ba(0x1e4)][_0x2cd1ba(_0x2dc3e0._0x49bfae)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x526c12[_0x2cd1ba(_0x2dc3e0._0x284df5)] + _0x2cd1ba(_0x2dc3e0._0x3b4e77) : '';
|
|
1430
|
+
return _0x2cd1ba(0x1b9) + _0x526c12[_0x2cd1ba(0x1ac)] + '\x20(' + _0x526c12['messages'][_0x2cd1ba(_0x2dc3e0._0x16dd55)] + _0x2cd1ba(_0x2dc3e0._0x316d4f) + _0x262ddf + _0x1fe63d;
|
|
1431
|
+
}
|
|
1432
|
+
function formatServerDirectory(_0x514996) {
|
|
1433
|
+
const _0x4afe1a = {
|
|
1434
|
+
_0x1620d5: 0x112,
|
|
1435
|
+
_0x4ee5d5: 0x190,
|
|
1436
|
+
_0x20ec8f: 0x112,
|
|
1437
|
+
_0x3a4f3b: 0xe1,
|
|
1438
|
+
_0x10769d: 0x234,
|
|
1439
|
+
_0x441350: 0x198
|
|
1440
|
+
}, _0x1a4026 = _0xba094d, _0x386e83 = _0x514996[_0x1a4026(0x1ce)]['length'] > 0x0 ? _0x514996[_0x1a4026(0x1ce)][_0x1a4026(0xe1)](_0x1320e2 => _0x1320e2[_0x1a4026(0xf0)] ? _0x1a4026(0x1e7) + _0x1320e2[_0x1a4026(0x204)] + '\x20—\x20' + _0x1320e2['description'] : _0x1a4026(0x1e7) + _0x1320e2[_0x1a4026(0x204)])[_0x1a4026(0x234)]('\x0a') : _0x1a4026(0x10e), _0x4f641a = _0x514996[_0x1a4026(_0x4afe1a._0x1620d5)][_0x1a4026(_0x4afe1a._0x4ee5d5)] > 0x0 ? _0x514996[_0x1a4026(_0x4afe1a._0x20ec8f)][_0x1a4026(_0x4afe1a._0x3a4f3b)](_0x2e4d95 => _0x1a4026(0x259) + _0x2e4d95[_0x1a4026(0x204)])[_0x1a4026(_0x4afe1a._0x10769d)]('\x0a') : '(none)', _0x5ea16a = _0x514996[_0x1a4026(0x128)][_0x1a4026(0x190)] > 0x0 ? _0x514996[_0x1a4026(0x128)][_0x1a4026(0xe1)](_0xf421a5 => _0x1a4026(0x259) + _0xf421a5[_0x1a4026(0x204)])[_0x1a4026(0x234)]('\x0a') : _0x1a4026(0x10e);
|
|
1441
|
+
return [
|
|
1442
|
+
_0x1a4026(_0x4afe1a._0x441350) + _0x514996['serverName'],
|
|
1443
|
+
'',
|
|
1444
|
+
_0x1a4026(0xef),
|
|
1445
|
+
_0x386e83,
|
|
1446
|
+
'',
|
|
1447
|
+
_0x1a4026(0x1dd),
|
|
1448
|
+
_0x4f641a,
|
|
1449
|
+
'',
|
|
1450
|
+
_0x1a4026(0x21e),
|
|
1451
|
+
_0x5ea16a
|
|
1452
|
+
]['join']('\x0a');
|
|
1471
1453
|
}
|
|
1472
|
-
function
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1475
|
-
_0x155864: 0x222,
|
|
1476
|
-
_0x241bff: 0x2b2,
|
|
1477
|
-
_0x1d72ab: 0x195,
|
|
1478
|
-
_0x2acf55: 0x1cb,
|
|
1479
|
-
_0x300215: 0x299,
|
|
1480
|
-
_0x5f200b: 0x2c1
|
|
1481
|
-
}, _0x535472 = _0x4d2358;
|
|
1482
|
-
if (_0x43d38c[_0x535472(0x2da)] === 0x0)
|
|
1483
|
-
return 'No\x20tasks\x20found.';
|
|
1484
|
-
return _0x43d38c[_0x535472(_0x4c4080._0x503df4)](_0xed4774 => {
|
|
1485
|
-
const _0x1f3347 = _0x535472, _0x3ed4b2 = _0xed4774[_0x1f3347(_0x273044._0x125626)] == null ? _0x1f3347(_0x273044._0x155864) : _0xed4774[_0x1f3347(_0x273044._0x241bff)] != null ? '#' + _0xed4774[_0x1f3347(0x2e9)] + '.' + _0xed4774['subtaskNumber'] : '#' + _0xed4774[_0x1f3347(0x2e9)], _0x350248 = _0xed4774[_0x1f3347(_0x273044._0x1d72ab)] ? '\x20message=' + _0xed4774[_0x1f3347(0x195)] : '', _0x591d5e = _0x35e216 && _0xed4774[_0x1f3347(0x2e9)] != null && !_0xed4774[_0x1f3347(_0x273044._0x241bff)] && _0x35e216[_0x1f3347(_0x273044._0x2acf55)](_0xed4774[_0x1f3347(0x2e9)]) ? _0x1f3347(_0x273044._0x300215) : '', _0x890379 = _0xed4774[_0x1f3347(0x1d9)] != null && _0xed4774[_0x1f3347(0x1d9)] > 0x0 ? '\x20(' + (_0xed4774[_0x1f3347(_0x273044._0x5f200b)] ?? 0x0) + '/' + _0xed4774[_0x1f3347(0x1d9)] + _0x1f3347(0x2c6) : '';
|
|
1486
|
-
return _0x3ed4b2 + '\x20[' + _0xed4774['status'] + ']\x20' + _0xed4774[_0x1f3347(0x18c)] + _0x890379 + _0x350248 + _0x591d5e;
|
|
1487
|
-
})[_0x535472(0x25f)]('\x0a');
|
|
1454
|
+
function formatUploadResult(_0x5f475d) {
|
|
1455
|
+
const _0x201c9b = { _0x5057aa: 0x153 }, _0x3e74cc = _0xba094d;
|
|
1456
|
+
return _0x3e74cc(0x23d) + _0x5f475d[_0x3e74cc(0x113)] + '\x20(' + (_0x5f475d[_0x3e74cc(_0x201c9b._0x5057aa)] / 0x400)['toFixed'](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x5f475d['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1488
1457
|
}
|
|
1489
|
-
function
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
}, _0x44b297 = { _0xac55cf: 0x2b2 }, _0x371481 = _0x4d2358;
|
|
1496
|
-
if (_0xf94b61[_0x371481(_0x4ae379._0xa9d2a9)] === 0x0)
|
|
1497
|
-
return _0x371481(_0x4ae379._0xb96c0a);
|
|
1498
|
-
return _0xf94b61[_0x371481(_0x4ae379._0x504a26)](_0x4c2132 => {
|
|
1499
|
-
const _0x9bccfa = _0x371481, _0x206fb9 = _0x4c2132[_0x9bccfa(0x2e9)] == null ? _0x9bccfa(0x222) : _0x4c2132['subtaskNumber'] != null ? '#' + _0x4c2132[_0x9bccfa(0x2e9)] + '.' + _0x4c2132[_0x9bccfa(_0x44b297._0xac55cf)] : '#' + _0x4c2132['taskNumber'], _0xc840db = _0x4c2132['messageId'] ? '\x20message=' + _0x4c2132[_0x9bccfa(0x195)] : '';
|
|
1500
|
-
return _0x206fb9 + '\x20' + _0x4c2132['title'] + _0xc840db;
|
|
1501
|
-
})[_0x371481(_0x4ae379._0x1139d4)]('\x0a');
|
|
1458
|
+
function formatViewFileResult(_0x14d96b, _0x39222) {
|
|
1459
|
+
const _0x2e00f5 = {
|
|
1460
|
+
_0x4e8b19: 0x152,
|
|
1461
|
+
_0x39e9f2: 0x11a
|
|
1462
|
+
}, _0x231644 = _0xba094d;
|
|
1463
|
+
return _0x39222 ? _0x231644(_0x2e00f5._0x4e8b19) + _0x14d96b : _0x231644(_0x2e00f5._0x39e9f2) + _0x14d96b;
|
|
1502
1464
|
}
|
|
1503
|
-
function
|
|
1504
|
-
const
|
|
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
|
-
|
|
1465
|
+
function formatTaskList(_0x4cfcf9, _0x4a784a) {
|
|
1466
|
+
const _0x378e53 = { _0xb952b2: 0x1de }, _0xf1438d = {
|
|
1467
|
+
_0x2dfbb5: 0x18d,
|
|
1468
|
+
_0x5a42de: 0x1a9,
|
|
1469
|
+
_0xcc885e: 0x1ee,
|
|
1470
|
+
_0x3277c9: 0x1ee,
|
|
1471
|
+
_0x45b3c9: 0x180
|
|
1472
|
+
}, _0x388799 = _0xba094d;
|
|
1473
|
+
if (_0x4cfcf9[_0x388799(0x190)] === 0x0)
|
|
1474
|
+
return _0x388799(_0x378e53._0xb952b2);
|
|
1475
|
+
return _0x4cfcf9[_0x388799(0xe1)](_0x1a5d92 => {
|
|
1476
|
+
const _0x2f5c12 = _0x388799, _0x5a9c60 = _0x1a5d92[_0x2f5c12(0x1ee)] == null ? _0x2f5c12(_0xf1438d._0x2dfbb5) : _0x1a5d92[_0x2f5c12(0x1a9)] != null ? '#' + _0x1a5d92['taskNumber'] + '.' + _0x1a5d92[_0x2f5c12(_0xf1438d._0x5a42de)] : '#' + _0x1a5d92[_0x2f5c12(_0xf1438d._0xcc885e)], _0x232c64 = _0x1a5d92[_0x2f5c12(0x1b0)] ? '\x20message=' + _0x1a5d92['messageId'] : '', _0x432539 = _0x4a784a && _0x1a5d92[_0x2f5c12(0x1ee)] != null && !_0x1a5d92[_0x2f5c12(0x1a9)] && _0x4a784a[_0x2f5c12(0x237)](_0x1a5d92[_0x2f5c12(_0xf1438d._0x3277c9)]) ? _0x2f5c12(0x165) : '', _0x12de45 = _0x1a5d92[_0x2f5c12(_0xf1438d._0x45b3c9)] != null && _0x1a5d92[_0x2f5c12(_0xf1438d._0x45b3c9)] > 0x0 ? '\x20(' + (_0x1a5d92['childrenDone'] ?? 0x0) + '/' + _0x1a5d92['childrenTotal'] + _0x2f5c12(0x17d) : '';
|
|
1477
|
+
return _0x5a9c60 + '\x20[' + _0x1a5d92[_0x2f5c12(0x1ef)] + ']\x20' + _0x1a5d92['title'] + _0x12de45 + _0x232c64 + _0x432539;
|
|
1478
|
+
})[_0x388799(0x234)]('\x0a');
|
|
1479
|
+
}
|
|
1480
|
+
function formatCreatedTasks(_0x4597be) {
|
|
1481
|
+
const _0x35da32 = {
|
|
1482
|
+
_0x200bf0: 0x190,
|
|
1483
|
+
_0x459b03: 0x1fa,
|
|
1484
|
+
_0x379356: 0xe1
|
|
1485
|
+
}, _0x560f12 = {
|
|
1486
|
+
_0x464144: 0x18d,
|
|
1487
|
+
_0x1a9f0d: 0x1ee,
|
|
1488
|
+
_0x5278ca: 0x13e
|
|
1489
|
+
}, _0x2fdf90 = _0xba094d;
|
|
1490
|
+
if (_0x4597be[_0x2fdf90(_0x35da32._0x200bf0)] === 0x0)
|
|
1491
|
+
return _0x2fdf90(_0x35da32._0x459b03);
|
|
1492
|
+
return _0x4597be[_0x2fdf90(_0x35da32._0x379356)](_0x1fcc61 => {
|
|
1493
|
+
const _0x3ed20d = _0x2fdf90, _0xd7e090 = _0x1fcc61[_0x3ed20d(0x1ee)] == null ? _0x3ed20d(_0x560f12._0x464144) : _0x1fcc61[_0x3ed20d(0x1a9)] != null ? '#' + _0x1fcc61[_0x3ed20d(0x1ee)] + '.' + _0x1fcc61['subtaskNumber'] : '#' + _0x1fcc61[_0x3ed20d(_0x560f12._0x1a9f0d)], _0x12b7c9 = _0x1fcc61['messageId'] ? _0x3ed20d(_0x560f12._0x5278ca) + _0x1fcc61[_0x3ed20d(0x1b0)] : '';
|
|
1494
|
+
return _0xd7e090 + '\x20' + _0x1fcc61[_0x3ed20d(0x1d2)] + _0x12b7c9;
|
|
1495
|
+
})[_0x2fdf90(0x234)]('\x0a');
|
|
1496
|
+
}
|
|
1497
|
+
function formatClaimTaskResults(_0x438111) {
|
|
1498
|
+
const _0x46ac6b = {
|
|
1499
|
+
_0x4bd52e: 0x1a9,
|
|
1500
|
+
_0x169258: 0x1b0,
|
|
1501
|
+
_0x124adc: 0x1e8,
|
|
1502
|
+
_0x18ee09: 0x25a,
|
|
1503
|
+
_0x550b06: 0x15f,
|
|
1504
|
+
_0x4052a3: 0x1aa,
|
|
1505
|
+
_0x42b30d: 0x1ed,
|
|
1506
|
+
_0x4c81b9: 0x24e,
|
|
1507
|
+
_0x10de97: 0x16a,
|
|
1508
|
+
_0x131902: 0x1c2,
|
|
1509
|
+
_0x155d31: 0x1ee,
|
|
1510
|
+
_0x2159ba: 0x104
|
|
1511
|
+
}, _0x4ff4aa = _0xba094d;
|
|
1512
|
+
if (_0x438111[_0x4ff4aa(0x190)] === 0x0)
|
|
1513
|
+
return _0x4ff4aa(0x12f);
|
|
1514
|
+
return _0x438111['map'](_0x1e498d => {
|
|
1515
|
+
const _0x54d395 = _0x4ff4aa;
|
|
1516
|
+
if (_0x1e498d['success']) {
|
|
1517
|
+
const _0x2f2da2 = _0x1e498d['taskNumber'] == null ? _0x54d395(0x18d) : _0x1e498d[_0x54d395(0x1a9)] != null ? '#' + _0x1e498d[_0x54d395(0x1ee)] + '.' + _0x1e498d[_0x54d395(_0x46ac6b._0x4bd52e)] : '#' + _0x1e498d[_0x54d395(0x1ee)], _0x4b9830 = _0x1e498d[_0x54d395(_0x46ac6b._0x169258)] ? _0x54d395(0x13e) + _0x1e498d[_0x54d395(0x1b0)] : '';
|
|
1518
|
+
if (_0x1e498d[_0x54d395(_0x46ac6b._0x124adc)]) {
|
|
1519
|
+
const _0x1055db = [
|
|
1520
|
+
_0x54d395(0x142),
|
|
1521
|
+
_0x1e498d[_0x54d395(0x13a)] ? _0x54d395(0x210) : null,
|
|
1522
|
+
_0x1e498d[_0x54d395(0x25a)] ? 'executionMode=' + _0x1e498d[_0x54d395(_0x46ac6b._0x18ee09)] : null,
|
|
1523
|
+
_0x1e498d[_0x54d395(_0x46ac6b._0x550b06)] ? _0x54d395(0xd0) + _0x1e498d['threadTarget'] : null,
|
|
1524
|
+
_0x1e498d[_0x54d395(0x1ed)] ? _0x54d395(_0x46ac6b._0x4052a3) + _0x1e498d[_0x54d395(_0x46ac6b._0x42b30d)] : null
|
|
1525
|
+
][_0x54d395(_0x46ac6b._0x4c81b9)](Boolean)['join']('\x20');
|
|
1526
|
+
return _0x2f2da2 + _0x54d395(_0x46ac6b._0x10de97) + _0x4b9830 + '\x20' + _0x1055db + _0x54d395(0x177);
|
|
1536
1527
|
}
|
|
1537
|
-
const
|
|
1538
|
-
return
|
|
1528
|
+
const _0x405aee = _0x1e498d['workerHandoffError'] ? '\x20workerHandoff=false\x20error=' + _0x1e498d[_0x54d395(_0x46ac6b._0x131902)] : '';
|
|
1529
|
+
return _0x2f2da2 + _0x54d395(_0x46ac6b._0x10de97) + _0x4b9830 + _0x405aee;
|
|
1539
1530
|
}
|
|
1540
|
-
const
|
|
1541
|
-
return
|
|
1542
|
-
})[
|
|
1531
|
+
const _0x1864c0 = _0x1e498d['taskNumber'] == null ? _0x1e498d['messageId'] ?? '(unknown)' : '#' + _0x1e498d[_0x54d395(_0x46ac6b._0x155d31)];
|
|
1532
|
+
return _0x1864c0 + _0x54d395(0x1ea) + (_0x1e498d['reason'] ?? _0x54d395(_0x46ac6b._0x2159ba));
|
|
1533
|
+
})[_0x4ff4aa(0x234)]('\x0a');
|
|
1543
1534
|
}
|
|
1544
|
-
function formatUnclaimTaskResult(
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1535
|
+
function formatUnclaimTaskResult(_0x4e0a8b) {
|
|
1536
|
+
const _0x218f5b = {
|
|
1537
|
+
_0x4eaaaa: 0x1ee,
|
|
1538
|
+
_0x35e5f5: 0x18d,
|
|
1539
|
+
_0x513f46: 0x1a9,
|
|
1540
|
+
_0xbb4570: 0x1ee,
|
|
1541
|
+
_0x3f7eb2: 0x1ef
|
|
1542
|
+
}, _0x18b502 = _0xba094d, _0x1425db = _0x4e0a8b[_0x18b502(_0x218f5b._0x4eaaaa)] == null ? _0x18b502(_0x218f5b._0x35e5f5) : _0x4e0a8b[_0x18b502(0x1a9)] != null ? '#' + _0x4e0a8b[_0x18b502(_0x218f5b._0x4eaaaa)] + '.' + _0x4e0a8b[_0x18b502(_0x218f5b._0x513f46)] : '#' + _0x4e0a8b[_0x18b502(_0x218f5b._0xbb4570)];
|
|
1543
|
+
return _0x1425db + '\x20status=' + _0x4e0a8b[_0x18b502(_0x218f5b._0x3f7eb2)];
|
|
1551
1544
|
}
|
|
1552
|
-
function formatUpdateTaskStatusResult(
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
},
|
|
1557
|
-
return
|
|
1545
|
+
function formatUpdateTaskStatusResult(_0x3ad373) {
|
|
1546
|
+
const _0x30a0c0 = {
|
|
1547
|
+
_0x22442d: 0x1ee,
|
|
1548
|
+
_0x301a15: 0x1a9
|
|
1549
|
+
}, _0x57013a = _0xba094d, _0x45014a = _0x3ad373[_0x57013a(0x1ee)] == null ? '(legacy)' : _0x3ad373[_0x57013a(0x1a9)] != null ? '#' + _0x3ad373[_0x57013a(_0x30a0c0._0x22442d)] + '.' + _0x3ad373[_0x57013a(_0x30a0c0._0x301a15)] : '#' + _0x3ad373[_0x57013a(0x1ee)];
|
|
1550
|
+
return _0x45014a + _0x57013a(0xe0) + _0x3ad373[_0x57013a(0x1ef)];
|
|
1558
1551
|
}
|
|
1559
1552
|
function getChatBridgeToolDefinitions() {
|
|
1560
|
-
const
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1553
|
+
const _0x2eaeb5 = {
|
|
1554
|
+
_0x36271a: 0x164,
|
|
1555
|
+
_0x89a784: 0x19a,
|
|
1556
|
+
_0x531c90: 0x248
|
|
1557
|
+
}, _0x36431c = _0xba094d;
|
|
1565
1558
|
return [
|
|
1566
1559
|
{ 'name': 'send_message' },
|
|
1567
|
-
{ 'name':
|
|
1568
|
-
{ 'name':
|
|
1569
|
-
{ 'name':
|
|
1570
|
-
{ 'name':
|
|
1571
|
-
{ 'name':
|
|
1572
|
-
{ 'name':
|
|
1560
|
+
{ 'name': _0x36431c(_0x2eaeb5._0x36271a) },
|
|
1561
|
+
{ 'name': _0x36431c(0x1e1) },
|
|
1562
|
+
{ 'name': _0x36431c(0xff) },
|
|
1563
|
+
{ 'name': 'upload_file' },
|
|
1564
|
+
{ 'name': _0x36431c(0x168) },
|
|
1565
|
+
{ 'name': _0x36431c(0x215) },
|
|
1573
1566
|
{ 'name': 'create_tasks' },
|
|
1574
|
-
{ 'name':
|
|
1575
|
-
{ 'name':
|
|
1576
|
-
{ 'name':
|
|
1577
|
-
{ 'name':
|
|
1578
|
-
{ 'name':
|
|
1579
|
-
{ 'name':
|
|
1580
|
-
{ 'name':
|
|
1567
|
+
{ 'name': _0x36431c(0xd8) },
|
|
1568
|
+
{ 'name': _0x36431c(_0x2eaeb5._0x89a784) },
|
|
1569
|
+
{ 'name': _0x36431c(0x181) },
|
|
1570
|
+
{ 'name': _0x36431c(0x13f) },
|
|
1571
|
+
{ 'name': _0x36431c(0x16c) },
|
|
1572
|
+
{ 'name': _0x36431c(0x172) },
|
|
1573
|
+
{ 'name': _0x36431c(_0x2eaeb5._0x531c90) }
|
|
1581
1574
|
];
|
|
1582
1575
|
}
|
|
1583
|
-
function createChatBridgeHandlers(
|
|
1584
|
-
const
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
},
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
},
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1576
|
+
function createChatBridgeHandlers(_0x2999e5) {
|
|
1577
|
+
const _0x457aaf = {
|
|
1578
|
+
_0x306933: 0x1b5,
|
|
1579
|
+
_0x696452: 0x16f
|
|
1580
|
+
}, _0x5980de = {
|
|
1581
|
+
_0x9e3dee: 0x149,
|
|
1582
|
+
_0xb442cb: 0x106,
|
|
1583
|
+
_0x3d6228: 0x13d,
|
|
1584
|
+
_0x51d73f: 0xdf,
|
|
1585
|
+
_0x2e971c: 0x21d
|
|
1586
|
+
}, _0x1ed99c = {
|
|
1587
|
+
_0x24354a: 0x176,
|
|
1588
|
+
_0x5bce1d: 0xe8,
|
|
1589
|
+
_0x2eee85: 0x246,
|
|
1590
|
+
_0x21dce0: 0x1c6,
|
|
1591
|
+
_0x14698b: 0x1c6,
|
|
1592
|
+
_0x44f7b3: 0x117
|
|
1593
|
+
}, _0x11a6ce = {
|
|
1594
|
+
_0x926bee: 0xf4,
|
|
1595
|
+
_0x394d8b: 0x246,
|
|
1596
|
+
_0x2b5d33: 0x24c,
|
|
1597
|
+
_0x44be6d: 0x16d
|
|
1598
|
+
}, _0x1a7325 = {
|
|
1599
|
+
_0x3b55b2: 0x1c6,
|
|
1600
|
+
_0x534222: 0x22e,
|
|
1601
|
+
_0x31f462: 0x1d1,
|
|
1602
|
+
_0x1da76e: 0x1ef
|
|
1603
|
+
}, _0x21ffb1 = {
|
|
1604
|
+
_0x262aa6: 0x132,
|
|
1605
|
+
_0x3e6fda: 0x231,
|
|
1606
|
+
_0x1bd95a: 0x11f,
|
|
1607
|
+
_0x2dccc6: 0x1bb,
|
|
1608
|
+
_0x2881fb: 0x14f
|
|
1609
|
+
}, _0x563574 = {
|
|
1610
|
+
_0x11dd0f: 0x122,
|
|
1611
|
+
_0xf45f99: 0x175,
|
|
1612
|
+
_0x5ec586: 0x13b
|
|
1613
|
+
}, _0x12fdc7 = { _0x93c58e: 0x19a }, _0x4e3add = {
|
|
1614
|
+
_0x2e9f62: 0x1f3,
|
|
1615
|
+
_0x150e4d: 0xd8,
|
|
1616
|
+
_0x4341ac: 0x14a,
|
|
1617
|
+
_0x4be5d: 0x190,
|
|
1618
|
+
_0x122160: 0x22f,
|
|
1619
|
+
_0x451109: 0xe1
|
|
1620
|
+
}, _0x128928 = {
|
|
1621
|
+
_0x2b5345: 0x13c,
|
|
1622
|
+
_0x2bef47: 0x1b0,
|
|
1623
|
+
_0x5afea5: 0x1ac,
|
|
1624
|
+
_0xb67ea7: 0x15c,
|
|
1625
|
+
_0x1c7c8f: 0x1ee
|
|
1626
|
+
}, _0x24e427 = {
|
|
1627
|
+
_0x43cea3: 0x1ac,
|
|
1628
|
+
_0x1eb8e8: 0x231,
|
|
1629
|
+
_0x5160f3: 0x236
|
|
1630
|
+
}, _0x4d3b6e = {
|
|
1631
|
+
_0x119671: 0x231,
|
|
1632
|
+
_0x350b7f: 0x1fc,
|
|
1633
|
+
_0x5d2643: 0x149,
|
|
1634
|
+
_0x4962a7: 0x1ef,
|
|
1635
|
+
_0x12e2f1: 0xd5,
|
|
1636
|
+
_0x2d9b13: 0x25b,
|
|
1637
|
+
_0x35969e: 0x1a1,
|
|
1638
|
+
_0x6b97cc: 0x190,
|
|
1639
|
+
_0x59cbe6: 0x1ee,
|
|
1640
|
+
_0x58986c: 0x18c,
|
|
1641
|
+
_0x1e017d: 0x1ee
|
|
1642
|
+
}, _0x21fb50 = { _0x117995: 0x239 }, _0x230c17 = {
|
|
1643
|
+
_0x4baec7: 0x263,
|
|
1644
|
+
_0x5a789d: 0x1f3,
|
|
1645
|
+
_0x46de97: 0x1e4
|
|
1646
|
+
}, _0x22e47b = {
|
|
1647
|
+
_0x410bf9: 0x187,
|
|
1648
|
+
_0x3c705c: 0x176,
|
|
1649
|
+
_0x9987b: 0x15d,
|
|
1650
|
+
_0x453d1e: 0x1a1,
|
|
1651
|
+
_0xe8c2fd: 0x237,
|
|
1652
|
+
_0x315de4: 0x22d,
|
|
1653
|
+
_0x331c66: 0xcf,
|
|
1654
|
+
_0x3e225f: 0x151,
|
|
1655
|
+
_0x36b4bf: 0x1b3,
|
|
1656
|
+
_0x3dc8a0: 0x1db,
|
|
1657
|
+
_0x370450: 0x262,
|
|
1658
|
+
_0x2d17c4: 0x245,
|
|
1659
|
+
_0x88b03b: 0x1d8,
|
|
1660
|
+
_0x30d1ac: 0x230,
|
|
1661
|
+
_0x1831f2: 0xdb,
|
|
1662
|
+
_0x57e37e: 0x1d6,
|
|
1663
|
+
_0x477c42: 0xdf,
|
|
1664
|
+
_0x1ba294: 0x1c7,
|
|
1665
|
+
_0x4a8efe: 0x1af,
|
|
1666
|
+
_0x56698f: 0x118,
|
|
1667
|
+
_0x39a6ed: 0x1d4,
|
|
1668
|
+
_0x21e620: 0x138,
|
|
1669
|
+
_0x371635: 0x234,
|
|
1670
|
+
_0x3c3334: 0x231,
|
|
1671
|
+
_0x443b21: 0xd3,
|
|
1672
|
+
_0x13c144: 0x17c,
|
|
1673
|
+
_0x59bea8: 0x15d
|
|
1674
|
+
}, _0x36c4b5 = {
|
|
1675
|
+
_0x47c537: 0x1f3,
|
|
1676
|
+
_0x2f0ca7: 0x1c5,
|
|
1677
|
+
_0x2487f7: 0x178,
|
|
1678
|
+
_0x3da26d: 0x1ef,
|
|
1679
|
+
_0x3b94f9: 0x261
|
|
1680
|
+
}, _0x5ba56a = {
|
|
1681
|
+
_0x54f7f6: 0x149,
|
|
1682
|
+
_0x27731a: 0x1c5,
|
|
1683
|
+
_0x2f5d74: 0x203,
|
|
1684
|
+
_0x7af2d1: 0x178,
|
|
1685
|
+
_0x475f6b: 0x18c
|
|
1686
|
+
}, _0x549c75 = {
|
|
1687
|
+
_0xe0e1: 0x149,
|
|
1688
|
+
_0x5a6e3f: 0x187,
|
|
1689
|
+
_0x3b5e8d: 0x192,
|
|
1690
|
+
_0x1d3559: 0x1b0,
|
|
1691
|
+
_0x104b95: 0x1e4,
|
|
1692
|
+
_0x5bd348: 0x18d,
|
|
1693
|
+
_0x4139: 0x1b3,
|
|
1694
|
+
_0x30c947: 0x1db,
|
|
1695
|
+
_0x186397: 0x147,
|
|
1696
|
+
_0x1ff2c4: 0x242,
|
|
1697
|
+
_0x1b6834: 0x230,
|
|
1698
|
+
_0x429be1: 0x234,
|
|
1699
|
+
_0x489eed: 0xdb,
|
|
1700
|
+
_0x5c7c02: 0x20e,
|
|
1701
|
+
_0x28a61b: 0x176,
|
|
1702
|
+
_0x4b4336: 0x15c,
|
|
1703
|
+
_0x520df5: 0x1ee,
|
|
1704
|
+
_0x78b3ab: 0x121,
|
|
1705
|
+
_0x2a41a9: 0x118
|
|
1706
|
+
}, _0x591773 = {
|
|
1707
|
+
_0x4fedb3: 0x1f3,
|
|
1708
|
+
_0x3cea27: 0x14e,
|
|
1709
|
+
_0x38de27: 0x167,
|
|
1710
|
+
_0x5245d8: 0x14e,
|
|
1711
|
+
_0x4de46d: 0x14e
|
|
1712
|
+
}, _0x4f29a2 = _0xba094d;
|
|
1713
|
+
function _0x4db941(_0x32d47d, _0x3fa5f9) {
|
|
1714
|
+
const _0x47320d = _0x1a4c;
|
|
1715
|
+
if (!_0x2999e5[_0x47320d(_0x591773._0x4fedb3)])
|
|
1709
1716
|
return;
|
|
1710
|
-
if (!
|
|
1711
|
-
throw new Error(
|
|
1712
|
-
if (
|
|
1713
|
-
throw new Error(
|
|
1717
|
+
if (!_0x2999e5[_0x47320d(_0x591773._0x3cea27)])
|
|
1718
|
+
throw new Error(_0x32d47d + _0x47320d(_0x591773._0x38de27));
|
|
1719
|
+
if (_0x3fa5f9 !== _0x2999e5[_0x47320d(_0x591773._0x5245d8)])
|
|
1720
|
+
throw new Error(_0x32d47d + ':\x20worker\x20can\x20only\x20operate\x20inside\x20its\x20own\x20task\x20thread\x20(' + _0x2999e5[_0x47320d(_0x591773._0x4de46d)] + _0x47320d(0x222) + _0x3fa5f9);
|
|
1714
1721
|
}
|
|
1715
|
-
async function
|
|
1716
|
-
const
|
|
1717
|
-
if (!
|
|
1722
|
+
async function _0x2fb4d5(_0x48fece) {
|
|
1723
|
+
const _0x18e18a = _0x1a4c;
|
|
1724
|
+
if (!_0x2999e5[_0x18e18a(_0x549c75._0xe0e1)] || !_0x2999e5[_0x18e18a(0x176)] || _0x2999e5[_0x18e18a(0x1f3)] || _0x2999e5[_0x18e18a(_0x549c75._0x5a6e3f)] !== !![])
|
|
1718
1725
|
return null;
|
|
1719
|
-
const
|
|
1720
|
-
if (
|
|
1726
|
+
const _0x49cd67 = parseTarget(_0x48fece[_0x18e18a(0x1ac)]);
|
|
1727
|
+
if (_0x49cd67[_0x18e18a(0x162)] !== _0x18e18a(0x1ac))
|
|
1721
1728
|
return null;
|
|
1722
|
-
const
|
|
1723
|
-
let
|
|
1729
|
+
const _0x9ac766 = _0x48fece[_0x18e18a(_0x549c75._0x3b5e8d)] != null ? _0x49cd67[_0x18e18a(0x1a5)] + ':t' + _0x48fece[_0x18e18a(_0x549c75._0x3b5e8d)] : _0x49cd67[_0x18e18a(0x1a5)] + ':' + _0x48fece[_0x18e18a(_0x549c75._0x1d3559)];
|
|
1730
|
+
let _0x1b5cf7;
|
|
1724
1731
|
try {
|
|
1725
|
-
const
|
|
1726
|
-
'channel':
|
|
1732
|
+
const _0x2ea8a8 = await _0x2999e5[_0x18e18a(0x231)][_0x18e18a(0x239)]({
|
|
1733
|
+
'channel': _0x9ac766,
|
|
1727
1734
|
'limit': 0x14
|
|
1728
1735
|
});
|
|
1729
|
-
|
|
1736
|
+
_0x1b5cf7 = _0x2ea8a8[_0x18e18a(_0x549c75._0x104b95)]['find'](_0x3bc801 => _0x3bc801[_0x18e18a(0x1b0)] === _0x48fece[_0x18e18a(0x1b0)]);
|
|
1730
1737
|
} catch {
|
|
1731
|
-
|
|
1738
|
+
_0x1b5cf7 = void 0x0;
|
|
1732
1739
|
}
|
|
1733
|
-
const
|
|
1734
|
-
|
|
1740
|
+
const _0x11b012 = _0x48fece['taskNumber'] == null ? _0x18e18a(_0x549c75._0x5bd348) : '#' + _0x48fece['taskNumber'], _0x412fd1 = [
|
|
1741
|
+
_0x18e18a(_0x549c75._0x4139) + _0x9ac766 + _0x18e18a(0x11b) + _0x48fece[_0x18e18a(0x1b0)]['slice'](0x0, 0x8) + _0x18e18a(0xd6) + new Date()[_0x18e18a(_0x549c75._0x30c947)]() + _0x18e18a(0x108) + _0x11b012 + _0x18e18a(_0x549c75._0x186397),
|
|
1735
1742
|
'',
|
|
1736
|
-
|
|
1743
|
+
_0x1b5cf7 ? _0x18e18a(0x159) + _0x1b5cf7['content'] : _0x18e18a(_0x549c75._0x1ff2c4) + _0x48fece[_0x18e18a(_0x549c75._0x1d3559)],
|
|
1737
1744
|
'',
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
][
|
|
1741
|
-
'method':
|
|
1742
|
-
'headers': { 'Content-Type':
|
|
1743
|
-
'body': JSON[
|
|
1744
|
-
'agent_id':
|
|
1745
|
-
'thread_target':
|
|
1745
|
+
_0x18e18a(_0x549c75._0x1b6834) + _0x9ac766,
|
|
1746
|
+
_0x18e18a(0x195)
|
|
1747
|
+
][_0x18e18a(_0x549c75._0x429be1)]('\x0a'), _0x46309f = await fetch(_0x2999e5[_0x18e18a(0x149)] + _0x18e18a(_0x549c75._0x489eed), {
|
|
1748
|
+
'method': _0x18e18a(_0x549c75._0x5c7c02),
|
|
1749
|
+
'headers': { 'Content-Type': _0x18e18a(0x246) },
|
|
1750
|
+
'body': JSON[_0x18e18a(0x1d6)]({
|
|
1751
|
+
'agent_id': _0x2999e5[_0x18e18a(_0x549c75._0x28a61b)],
|
|
1752
|
+
'thread_target': _0x9ac766,
|
|
1746
1753
|
'spawn_packet': {
|
|
1747
|
-
'replyTarget':
|
|
1748
|
-
...
|
|
1754
|
+
'replyTarget': _0x9ac766,
|
|
1755
|
+
..._0x48fece[_0x18e18a(0x15c)] ? { 'taskId': _0x48fece[_0x18e18a(_0x549c75._0x4b4336)] } : _0x48fece[_0x18e18a(_0x549c75._0x520df5)] != null ? { 'taskId': _0x18e18a(0x22b) + _0x48fece[_0x18e18a(_0x549c75._0x520df5)] } : {}
|
|
1749
1756
|
},
|
|
1750
1757
|
'payload': {
|
|
1751
|
-
'mode':
|
|
1752
|
-
'text':
|
|
1758
|
+
'mode': _0x18e18a(0xf5),
|
|
1759
|
+
'text': _0x412fd1
|
|
1753
1760
|
}
|
|
1754
1761
|
})
|
|
1755
|
-
}),
|
|
1756
|
-
if (!
|
|
1757
|
-
throw new Error(
|
|
1762
|
+
}), _0x1c56ff = await _0x46309f['json']();
|
|
1763
|
+
if (!_0x1c56ff['ok'])
|
|
1764
|
+
throw new Error(_0x1c56ff[_0x18e18a(0xdf)] ?? 'worker\x20handoff\x20failed');
|
|
1758
1765
|
return {
|
|
1759
1766
|
'stopMain': !![],
|
|
1760
|
-
'threadTarget':
|
|
1761
|
-
'workerDisposition':
|
|
1767
|
+
'threadTarget': _0x9ac766,
|
|
1768
|
+
'workerDisposition': _0x1c56ff[_0x18e18a(_0x549c75._0x78b3ab)] === _0x18e18a(_0x549c75._0x2a41a9) ? _0x18e18a(_0x549c75._0x2a41a9) : _0x18e18a(0x1d4),
|
|
1762
1769
|
'workerHandoff': !![],
|
|
1763
|
-
'workerSessionId':
|
|
1764
|
-
'executionMode':
|
|
1770
|
+
'workerSessionId': _0x1c56ff[_0x18e18a(0x174)] ?? '',
|
|
1771
|
+
'executionMode': _0x18e18a(0x21b)
|
|
1765
1772
|
};
|
|
1766
1773
|
}
|
|
1767
|
-
async function
|
|
1768
|
-
const
|
|
1769
|
-
if (!
|
|
1774
|
+
async function _0x451c63() {
|
|
1775
|
+
const _0x29cd7e = _0x1a4c;
|
|
1776
|
+
if (!_0x2999e5[_0x29cd7e(_0x5ba56a._0x54f7f6)] || !_0x2999e5[_0x29cd7e(0x176)] || _0x2999e5['workerMode'])
|
|
1770
1777
|
return null;
|
|
1771
1778
|
try {
|
|
1772
|
-
const
|
|
1773
|
-
if (!
|
|
1779
|
+
const _0x398859 = await fetch(_0x2999e5[_0x29cd7e(0x149)] + _0x29cd7e(_0x5ba56a._0x27731a) + encodeURIComponent(_0x2999e5['agentId'])), _0x2964d9 = await _0x398859[_0x29cd7e(_0x5ba56a._0x2f5d74)]();
|
|
1780
|
+
if (!_0x2964d9['ok'])
|
|
1774
1781
|
return null;
|
|
1775
|
-
const
|
|
1776
|
-
for (const
|
|
1777
|
-
|
|
1782
|
+
const _0x2b3ce1 = new Set();
|
|
1783
|
+
for (const _0x2cb14c of _0x2964d9[_0x29cd7e(_0x5ba56a._0x7af2d1)]) {
|
|
1784
|
+
_0x2cb14c[_0x29cd7e(0x1ef)] !== 'destroyed' && _0x2cb14c['thread_target'] && _0x2b3ce1[_0x29cd7e(_0x5ba56a._0x475f6b)](_0x2cb14c[_0x29cd7e(0x25b)]);
|
|
1778
1785
|
}
|
|
1779
|
-
return
|
|
1786
|
+
return _0x2b3ce1[_0x29cd7e(0x261)] > 0x0 ? _0x2b3ce1 : null;
|
|
1780
1787
|
} catch {
|
|
1781
1788
|
return null;
|
|
1782
1789
|
}
|
|
1783
1790
|
}
|
|
1784
|
-
const
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1791
|
+
const _0x2688ad = new Set([
|
|
1792
|
+
_0x4f29a2(_0x457aaf._0x306933),
|
|
1793
|
+
_0x4f29a2(0x20b),
|
|
1794
|
+
_0x4f29a2(_0x457aaf._0x696452)
|
|
1788
1795
|
]);
|
|
1789
|
-
async function
|
|
1790
|
-
const
|
|
1791
|
-
if (!
|
|
1796
|
+
async function _0x2159dd() {
|
|
1797
|
+
const _0x564e72 = _0x4f29a2;
|
|
1798
|
+
if (!_0x2999e5['daemonLocalUrl'] || !_0x2999e5[_0x564e72(0x176)] || _0x2999e5[_0x564e72(_0x36c4b5._0x47c537)])
|
|
1792
1799
|
return null;
|
|
1793
1800
|
try {
|
|
1794
|
-
const
|
|
1795
|
-
if (!
|
|
1801
|
+
const _0x381466 = await fetch(_0x2999e5['daemonLocalUrl'] + _0x564e72(_0x36c4b5._0x2f0ca7) + encodeURIComponent(_0x2999e5[_0x564e72(0x176)])), _0xf47de0 = await _0x381466['json']();
|
|
1802
|
+
if (!_0xf47de0['ok'])
|
|
1796
1803
|
return null;
|
|
1797
|
-
const
|
|
1798
|
-
for (const
|
|
1799
|
-
|
|
1804
|
+
const _0x25a881 = new Set();
|
|
1805
|
+
for (const _0x558d49 of _0xf47de0[_0x564e72(_0x36c4b5._0x2487f7)]) {
|
|
1806
|
+
_0x2688ad[_0x564e72(0x237)](_0x558d49[_0x564e72(_0x36c4b5._0x3da26d)]) && _0x558d49[_0x564e72(0x25b)] && _0x25a881['add'](_0x558d49[_0x564e72(0x25b)]);
|
|
1800
1807
|
}
|
|
1801
|
-
return
|
|
1808
|
+
return _0x25a881[_0x564e72(_0x36c4b5._0x3b94f9)] > 0x0 ? _0x25a881 : null;
|
|
1802
1809
|
} catch {
|
|
1803
1810
|
return null;
|
|
1804
1811
|
}
|
|
1805
1812
|
}
|
|
1806
1813
|
return {
|
|
1807
|
-
async 'send_message'(
|
|
1808
|
-
const
|
|
1809
|
-
if (!
|
|
1810
|
-
const
|
|
1811
|
-
if (
|
|
1812
|
-
const
|
|
1813
|
-
if (
|
|
1814
|
+
async 'send_message'(_0x3f7fed) {
|
|
1815
|
+
const _0x4fd7d4 = _0x4f29a2;
|
|
1816
|
+
if (!_0x2999e5['workerMode'] && _0x2999e5[_0x4fd7d4(_0x22e47b._0x410bf9)] && _0x2999e5['daemonLocalUrl'] && _0x2999e5[_0x4fd7d4(_0x22e47b._0x3c705c)]) {
|
|
1817
|
+
const _0x574c98 = await _0x2999e5['client'][_0x4fd7d4(0xfb)](_0x3f7fed[_0x4fd7d4(_0x22e47b._0x9987b)]);
|
|
1818
|
+
if (_0x574c98[_0x4fd7d4(0x257)] && _0x574c98[_0x4fd7d4(0x161)]) {
|
|
1819
|
+
const _0x542381 = _0x574c98[_0x4fd7d4(0x257)][_0x4fd7d4(0x1ee)] != null ? '#' + _0x574c98[_0x4fd7d4(0x257)][_0x4fd7d4(0x1ee)] : _0x4fd7d4(0x18d), _0x4a5609 = _0x574c98[_0x4fd7d4(0x192)] != null ? _0x574c98[_0x4fd7d4(0x15d)] + ':t' + _0x574c98[_0x4fd7d4(0x192)] : _0x574c98[_0x4fd7d4(0x15d)] + ':' + _0x574c98['threadId'][_0x4fd7d4(_0x22e47b._0x453d1e)](0x0, 0x8), _0x32fc0b = await _0x2159dd();
|
|
1820
|
+
if (_0x32fc0b?.[_0x4fd7d4(_0x22e47b._0xe8c2fd)](_0x4a5609))
|
|
1814
1821
|
return [
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
][
|
|
1818
|
-
const
|
|
1819
|
-
|
|
1822
|
+
_0x4fd7d4(_0x22e47b._0x315de4) + _0x542381 + _0x4fd7d4(_0x22e47b._0x331c66) + _0x4a5609 + _0x4fd7d4(_0x22e47b._0x3e225f),
|
|
1823
|
+
_0x4fd7d4(0x211)
|
|
1824
|
+
]['join']('\x0a');
|
|
1825
|
+
const _0x138893 = [
|
|
1826
|
+
_0x4fd7d4(_0x22e47b._0x36b4bf) + _0x4a5609 + _0x4fd7d4(0x144) + new Date()[_0x4fd7d4(_0x22e47b._0x3dc8a0)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1820
1827
|
'',
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
][
|
|
1826
|
-
'method':
|
|
1827
|
-
'headers': { 'Content-Type':
|
|
1828
|
-
'body': JSON[
|
|
1829
|
-
'agent_id':
|
|
1830
|
-
'thread_target':
|
|
1828
|
+
_0x4fd7d4(_0x22e47b._0x370450) + _0x3f7fed[_0x4fd7d4(_0x22e47b._0x2d17c4)],
|
|
1829
|
+
_0x4fd7d4(_0x22e47b._0x88b03b) + _0x542381 + '\x20(' + _0x574c98[_0x4fd7d4(0x257)][_0x4fd7d4(0x15c)] + ')',
|
|
1830
|
+
_0x4fd7d4(_0x22e47b._0x30d1ac) + _0x4a5609,
|
|
1831
|
+
'Read\x20thread\x20history\x20before\x20taking\x20action.\x20Do\x20not\x20echo\x20this\x20message\x20to\x20the\x20thread.'
|
|
1832
|
+
][_0x4fd7d4(0x234)]('\x0a'), _0x127066 = await fetch(_0x2999e5['daemonLocalUrl'] + _0x4fd7d4(_0x22e47b._0x1831f2), {
|
|
1833
|
+
'method': _0x4fd7d4(0x20e),
|
|
1834
|
+
'headers': { 'Content-Type': _0x4fd7d4(0x246) },
|
|
1835
|
+
'body': JSON[_0x4fd7d4(_0x22e47b._0x57e37e)]({
|
|
1836
|
+
'agent_id': _0x2999e5[_0x4fd7d4(0x176)],
|
|
1837
|
+
'thread_target': _0x4a5609,
|
|
1831
1838
|
'spawn_packet': {
|
|
1832
|
-
'replyTarget':
|
|
1833
|
-
'taskId':
|
|
1839
|
+
'replyTarget': _0x4a5609,
|
|
1840
|
+
'taskId': _0x574c98[_0x4fd7d4(0x257)]['taskId']
|
|
1834
1841
|
},
|
|
1835
1842
|
'payload': {
|
|
1836
|
-
'mode':
|
|
1837
|
-
'text':
|
|
1843
|
+
'mode': _0x4fd7d4(0xf5),
|
|
1844
|
+
'text': _0x138893
|
|
1838
1845
|
}
|
|
1839
1846
|
})
|
|
1840
|
-
}),
|
|
1841
|
-
if (!
|
|
1842
|
-
throw new Error(
|
|
1847
|
+
}), _0x435bad = await _0x127066['json']();
|
|
1848
|
+
if (!_0x435bad['ok'])
|
|
1849
|
+
throw new Error(_0x435bad[_0x4fd7d4(_0x22e47b._0x477c42)] ?? _0x4fd7d4(_0x22e47b._0x1ba294));
|
|
1843
1850
|
return [
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
][
|
|
1851
|
+
_0x4fd7d4(_0x22e47b._0x4a8efe) + _0x542381 + _0x4fd7d4(0xcf) + _0x4a5609 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1852
|
+
_0x4fd7d4(0x223) + (_0x435bad['disposition'] === _0x4fd7d4(_0x22e47b._0x56698f) ? _0x4fd7d4(0x118) : _0x4fd7d4(_0x22e47b._0x39a6ed)) + '.',
|
|
1853
|
+
_0x4fd7d4(_0x22e47b._0x21e620)
|
|
1854
|
+
][_0x4fd7d4(_0x22e47b._0x371635)]('\x0a');
|
|
1848
1855
|
}
|
|
1849
1856
|
}
|
|
1850
|
-
const
|
|
1851
|
-
'attachmentIds':
|
|
1852
|
-
'content':
|
|
1853
|
-
'target':
|
|
1854
|
-
'visibility':
|
|
1857
|
+
const _0x4a00f2 = await _0x2999e5[_0x4fd7d4(_0x22e47b._0x3c3334)][_0x4fd7d4(_0x22e47b._0x443b21)]({
|
|
1858
|
+
'attachmentIds': _0x3f7fed[_0x4fd7d4(0x24a)],
|
|
1859
|
+
'content': _0x3f7fed['content'],
|
|
1860
|
+
'target': _0x3f7fed[_0x4fd7d4(_0x22e47b._0x9987b)],
|
|
1861
|
+
'visibility': _0x3f7fed[_0x4fd7d4(_0x22e47b._0x13c144)]
|
|
1855
1862
|
});
|
|
1856
|
-
return
|
|
1863
|
+
return _0x4fd7d4(0x19e) + _0x3f7fed[_0x4fd7d4(_0x22e47b._0x59bea8)] + _0x4fd7d4(0x252) + _0x4a00f2[_0x4fd7d4(0x1b0)];
|
|
1857
1864
|
},
|
|
1858
1865
|
async 'check_messages'() {
|
|
1859
|
-
const
|
|
1860
|
-
if (!
|
|
1861
|
-
const
|
|
1862
|
-
if (
|
|
1863
|
-
return formatCheckMessages(
|
|
1866
|
+
const _0xc3e82d = _0x4f29a2, _0x5ac390 = await _0x2999e5['client'][_0xc3e82d(_0x230c17._0x4baec7)]();
|
|
1867
|
+
if (!_0x2999e5[_0xc3e82d(_0x230c17._0x5a789d)]) {
|
|
1868
|
+
const _0x30f3ef = await _0x451c63();
|
|
1869
|
+
if (_0x30f3ef)
|
|
1870
|
+
return formatCheckMessages(_0x5ac390[_0xc3e82d(_0x230c17._0x46de97)][_0xc3e82d(0x24e)](_0x177c92 => !_0x30f3ef[_0xc3e82d(0x237)](_0x177c92['target'])));
|
|
1864
1871
|
}
|
|
1865
|
-
return formatCheckMessages(
|
|
1872
|
+
return formatCheckMessages(_0x5ac390['messages']);
|
|
1866
1873
|
},
|
|
1867
|
-
async 'read_history'(
|
|
1868
|
-
const
|
|
1869
|
-
return formatHistory(
|
|
1874
|
+
async 'read_history'(_0x1b6aa9) {
|
|
1875
|
+
const _0xcea52d = _0x4f29a2, _0x6bbfc = await _0x2999e5[_0xcea52d(0x231)][_0xcea52d(_0x21fb50._0x117995)](_0x1b6aa9);
|
|
1876
|
+
return formatHistory(_0x6bbfc);
|
|
1870
1877
|
},
|
|
1871
1878
|
async 'list_server'() {
|
|
1872
|
-
const
|
|
1873
|
-
return formatServerDirectory(
|
|
1879
|
+
const _0x17fcd6 = _0x4f29a2, _0x42b162 = await _0x2999e5['client'][_0x17fcd6(0x214)]();
|
|
1880
|
+
return formatServerDirectory(_0x42b162);
|
|
1874
1881
|
},
|
|
1875
|
-
async 'list_tasks'(
|
|
1876
|
-
const
|
|
1877
|
-
let
|
|
1878
|
-
if (
|
|
1882
|
+
async 'list_tasks'(_0x52c9c2) {
|
|
1883
|
+
const _0x4a6bb0 = _0x4f29a2, _0xf3e88 = await _0x2999e5[_0x4a6bb0(_0x4d3b6e._0x119671)][_0x4a6bb0(_0x4d3b6e._0x350b7f)](_0x52c9c2);
|
|
1884
|
+
let _0x197a50;
|
|
1885
|
+
if (_0x2999e5[_0x4a6bb0(_0x4d3b6e._0x5d2643)] && _0x2999e5[_0x4a6bb0(0x176)])
|
|
1879
1886
|
try {
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1882
|
-
const
|
|
1883
|
-
|
|
1884
|
-
for (const
|
|
1885
|
-
if (
|
|
1887
|
+
const _0x2730fd = await fetch(_0x2999e5[_0x4a6bb0(_0x4d3b6e._0x5d2643)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2999e5['agentId'])), _0x4d8b82 = await _0x2730fd[_0x4a6bb0(0x203)]();
|
|
1888
|
+
if (_0x4d8b82['ok']) {
|
|
1889
|
+
const _0x43e8c1 = _0x52c9c2[_0x4a6bb0(0x1ac)] + ':';
|
|
1890
|
+
_0x197a50 = new Set();
|
|
1891
|
+
for (const _0x1ca632 of _0x4d8b82['workers']) {
|
|
1892
|
+
if (_0x1ca632[_0x4a6bb0(_0x4d3b6e._0x4962a7)] === _0x4a6bb0(_0x4d3b6e._0x12e2f1))
|
|
1886
1893
|
continue;
|
|
1887
|
-
if (
|
|
1888
|
-
const
|
|
1889
|
-
if (
|
|
1890
|
-
|
|
1894
|
+
if (_0x1ca632[_0x4a6bb0(_0x4d3b6e._0x2d9b13)]?.['startsWith'](_0x43e8c1)) {
|
|
1895
|
+
const _0x5f0d2d = _0x1ca632['thread_target'][_0x4a6bb0(_0x4d3b6e._0x35969e)](_0x43e8c1[_0x4a6bb0(_0x4d3b6e._0x6b97cc)]), _0x13605b = _0xf3e88[_0x4a6bb0(0x1c4)][_0x4a6bb0(0x254)](_0x17afa5 => _0x17afa5[_0x4a6bb0(0x1b0)]?.[_0x4a6bb0(0x1a8)](_0x5f0d2d) === !![]);
|
|
1896
|
+
if (_0x13605b?.[_0x4a6bb0(_0x4d3b6e._0x59cbe6)] != null) {
|
|
1897
|
+
_0x197a50['add'](_0x13605b[_0x4a6bb0(0x1ee)]);
|
|
1891
1898
|
continue;
|
|
1892
1899
|
}
|
|
1893
1900
|
}
|
|
1894
|
-
if (
|
|
1895
|
-
const
|
|
1896
|
-
|
|
1901
|
+
if (_0x1ca632[_0x4a6bb0(0xdd)]) {
|
|
1902
|
+
const _0x512044 = _0xf3e88[_0x4a6bb0(0x1c4)][_0x4a6bb0(0x254)](_0x1d1d0e => _0x1d1d0e[_0x4a6bb0(0x15c)] === _0x1ca632[_0x4a6bb0(0xdd)]);
|
|
1903
|
+
_0x512044?.[_0x4a6bb0(0x1ee)] != null && _0x197a50[_0x4a6bb0(_0x4d3b6e._0x58986c)](_0x512044[_0x4a6bb0(_0x4d3b6e._0x1e017d)]);
|
|
1897
1904
|
}
|
|
1898
1905
|
}
|
|
1899
1906
|
}
|
|
1900
1907
|
} catch {
|
|
1901
1908
|
}
|
|
1902
|
-
return formatTaskList(
|
|
1909
|
+
return formatTaskList(_0xf3e88['tasks'], _0x197a50);
|
|
1903
1910
|
},
|
|
1904
|
-
async 'create_tasks'(
|
|
1905
|
-
const
|
|
1906
|
-
|
|
1907
|
-
const
|
|
1908
|
-
return formatCreatedTasks(
|
|
1911
|
+
async 'create_tasks'(_0x432b6a) {
|
|
1912
|
+
const _0x36b775 = _0x4f29a2;
|
|
1913
|
+
_0x4db941(_0x36b775(0x196), _0x432b6a[_0x36b775(_0x24e427._0x43cea3)]);
|
|
1914
|
+
const _0x383c1b = await _0x2999e5[_0x36b775(_0x24e427._0x1eb8e8)][_0x36b775(_0x24e427._0x5160f3)](_0x432b6a);
|
|
1915
|
+
return formatCreatedTasks(_0x383c1b['tasks']);
|
|
1909
1916
|
},
|
|
1910
|
-
async 'claim_tasks'(
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
_0x35b5c6: 0x252
|
|
1916
|
-
}, _0x4f0c56 = _0x4c272c;
|
|
1917
|
-
if (_0x4099e6[_0x4f0c56(0x2a2)]) {
|
|
1918
|
-
_0x2b2afb(_0x4f0c56(0x2ad), _0x4fc8d9['channel']);
|
|
1919
|
-
if (_0x4fc8d9[_0x4f0c56(0x21f)] && _0x4fc8d9[_0x4f0c56(0x21f)][_0x4f0c56(_0x2a82d0._0x163b76)] > 0x0)
|
|
1917
|
+
async 'claim_tasks'(_0x3a4097) {
|
|
1918
|
+
const _0x59cd28 = _0x4f29a2;
|
|
1919
|
+
if (_0x2999e5[_0x59cd28(_0x4e3add._0x2e9f62)]) {
|
|
1920
|
+
_0x4db941(_0x59cd28(_0x4e3add._0x150e4d), _0x3a4097[_0x59cd28(0x1ac)]);
|
|
1921
|
+
if (_0x3a4097[_0x59cd28(0x14a)] && _0x3a4097[_0x59cd28(_0x4e3add._0x4341ac)]['length'] > 0x0)
|
|
1920
1922
|
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
1921
|
-
if (!
|
|
1923
|
+
if (!_0x3a4097[_0x59cd28(0xd4)] || _0x3a4097[_0x59cd28(0xd4)][_0x59cd28(_0x4e3add._0x4be5d)] === 0x0)
|
|
1922
1924
|
throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
|
|
1923
1925
|
}
|
|
1924
|
-
const
|
|
1925
|
-
const
|
|
1926
|
-
if (!
|
|
1927
|
-
return
|
|
1926
|
+
const _0x278504 = await _0x2999e5['client'][_0x59cd28(0x1f1)](_0x3a4097), _0x598db6 = await Promise[_0x59cd28(_0x4e3add._0x122160)](_0x278504[_0x59cd28(0x1c0)][_0x59cd28(_0x4e3add._0x451109)](async _0x1d9284 => {
|
|
1927
|
+
const _0x7bb40f = _0x59cd28;
|
|
1928
|
+
if (!_0x1d9284[_0x7bb40f(_0x128928._0x2b5345)] || !_0x1d9284[_0x7bb40f(_0x128928._0x2bef47)])
|
|
1929
|
+
return _0x1d9284;
|
|
1928
1930
|
try {
|
|
1929
|
-
const
|
|
1930
|
-
'channel':
|
|
1931
|
-
'messageId':
|
|
1932
|
-
'taskId':
|
|
1933
|
-
'taskNumber':
|
|
1934
|
-
'threadNumber':
|
|
1931
|
+
const _0x5bc484 = await _0x2fb4d5({
|
|
1932
|
+
'channel': _0x3a4097[_0x7bb40f(_0x128928._0x5afea5)],
|
|
1933
|
+
'messageId': _0x1d9284['messageId'],
|
|
1934
|
+
'taskId': _0x1d9284[_0x7bb40f(_0x128928._0xb67ea7)],
|
|
1935
|
+
'taskNumber': _0x1d9284[_0x7bb40f(_0x128928._0x1c7c8f)],
|
|
1936
|
+
'threadNumber': _0x1d9284['threadNumber']
|
|
1935
1937
|
});
|
|
1936
|
-
return
|
|
1937
|
-
...
|
|
1938
|
-
...
|
|
1939
|
-
} :
|
|
1940
|
-
} catch (
|
|
1938
|
+
return _0x5bc484 ? {
|
|
1939
|
+
..._0x1d9284,
|
|
1940
|
+
..._0x5bc484
|
|
1941
|
+
} : _0x1d9284;
|
|
1942
|
+
} catch (_0x2f02d5) {
|
|
1941
1943
|
return {
|
|
1942
|
-
...
|
|
1943
|
-
'workerHandoffError':
|
|
1944
|
+
..._0x1d9284,
|
|
1945
|
+
'workerHandoffError': _0x2f02d5 instanceof Error ? _0x2f02d5['message'] : _0x7bb40f(0x188)
|
|
1944
1946
|
};
|
|
1945
1947
|
}
|
|
1946
1948
|
}));
|
|
1947
|
-
return formatClaimTaskResults(
|
|
1949
|
+
return formatClaimTaskResults(_0x598db6);
|
|
1948
1950
|
},
|
|
1949
|
-
async 'unclaim_task'(
|
|
1950
|
-
const
|
|
1951
|
-
if (
|
|
1952
|
-
|
|
1953
|
-
if (
|
|
1954
|
-
throw new Error(
|
|
1951
|
+
async 'unclaim_task'(_0xb81e36) {
|
|
1952
|
+
const _0x1d122e = _0x4f29a2;
|
|
1953
|
+
if (_0x2999e5['workerMode']) {
|
|
1954
|
+
_0x4db941(_0x1d122e(_0x12fdc7._0x93c58e), _0xb81e36['channel']);
|
|
1955
|
+
if (_0xb81e36[_0x1d122e(0x21c)] == null)
|
|
1956
|
+
throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
|
|
1955
1957
|
}
|
|
1956
|
-
const
|
|
1957
|
-
return formatUnclaimTaskResult(
|
|
1958
|
+
const _0x3eadb1 = await _0x2999e5[_0x1d122e(0x231)][_0x1d122e(0xe3)](_0xb81e36);
|
|
1959
|
+
return formatUnclaimTaskResult(_0x3eadb1);
|
|
1958
1960
|
},
|
|
1959
|
-
async 'update_task_status'(
|
|
1960
|
-
const
|
|
1961
|
-
|
|
1962
|
-
const
|
|
1963
|
-
return formatUpdateTaskStatusResult(
|
|
1961
|
+
async 'update_task_status'(_0x45031e) {
|
|
1962
|
+
const _0x4f2035 = _0x4f29a2;
|
|
1963
|
+
_0x4db941(_0x4f2035(0x181), _0x45031e['channel']);
|
|
1964
|
+
const _0x50d942 = await _0x2999e5[_0x4f2035(0x231)][_0x4f2035(0xd2)](_0x45031e);
|
|
1965
|
+
return formatUpdateTaskStatusResult(_0x50d942);
|
|
1964
1966
|
},
|
|
1965
|
-
async 'upload_file'(
|
|
1966
|
-
const
|
|
1967
|
-
sizeBytes:
|
|
1968
|
-
...
|
|
1969
|
-
} =
|
|
1970
|
-
'channel':
|
|
1971
|
-
...
|
|
1967
|
+
async 'upload_file'(_0xedbfb1) {
|
|
1968
|
+
const _0xc8baf1 = _0x4f29a2, _0x361e41 = await _0x2999e5[_0xc8baf1(_0x563574._0x11dd0f)](_0xedbfb1[_0xc8baf1(_0x563574._0xf45f99)]), {
|
|
1969
|
+
sizeBytes: _0x42a96d,
|
|
1970
|
+
..._0x268c00
|
|
1971
|
+
} = _0x361e41, _0x5f2fd0 = await _0x2999e5['client'][_0xc8baf1(_0x563574._0x5ec586)]({
|
|
1972
|
+
'channel': _0xedbfb1['channel'],
|
|
1973
|
+
..._0x268c00
|
|
1972
1974
|
});
|
|
1973
|
-
return formatUploadResult(
|
|
1975
|
+
return formatUploadResult(_0x5f2fd0);
|
|
1974
1976
|
},
|
|
1975
|
-
async 'view_file'(
|
|
1976
|
-
const
|
|
1977
|
-
if (
|
|
1978
|
-
return formatViewFileResult(
|
|
1979
|
-
const
|
|
1980
|
-
'attachmentId':
|
|
1981
|
-
'contentType':
|
|
1982
|
-
'data':
|
|
1983
|
-
'originalFilename':
|
|
1977
|
+
async 'view_file'(_0x63f4d8) {
|
|
1978
|
+
const _0x315696 = _0x4f29a2, _0x7ecf7e = await _0x2999e5[_0x315696(_0x21ffb1._0x262aa6)][_0x315696(0x186)](_0x63f4d8[_0x315696(0x1dc)]);
|
|
1979
|
+
if (_0x7ecf7e)
|
|
1980
|
+
return formatViewFileResult(_0x7ecf7e, !![]);
|
|
1981
|
+
const _0x5e535d = await _0x2999e5[_0x315696(_0x21ffb1._0x3e6fda)][_0x315696(_0x21ffb1._0x1bd95a)](_0x63f4d8['attachment_id']), _0x58cff1 = await _0x2999e5['attachmentCache'][_0x315696(_0x21ffb1._0x2dccc6)]({
|
|
1982
|
+
'attachmentId': _0x63f4d8[_0x315696(0x1dc)],
|
|
1983
|
+
'contentType': _0x5e535d['contentType'],
|
|
1984
|
+
'data': _0x5e535d[_0x315696(_0x21ffb1._0x2881fb)],
|
|
1985
|
+
'originalFilename': _0x5e535d['originalFilename']
|
|
1984
1986
|
});
|
|
1985
|
-
return formatViewFileResult(
|
|
1987
|
+
return formatViewFileResult(_0x58cff1, ![]);
|
|
1986
1988
|
},
|
|
1987
|
-
async 'get_worker_status'(
|
|
1988
|
-
const
|
|
1989
|
-
if (!
|
|
1990
|
-
return
|
|
1991
|
-
const
|
|
1992
|
-
if (!
|
|
1993
|
-
return
|
|
1994
|
-
return
|
|
1989
|
+
async 'get_worker_status'(_0x387573) {
|
|
1990
|
+
const _0x51a5f0 = _0x4f29a2;
|
|
1991
|
+
if (!_0x2999e5[_0x51a5f0(0x149)])
|
|
1992
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1993
|
+
const _0xb552ed = await fetch(_0x2999e5[_0x51a5f0(0x149)] + _0x51a5f0(0x1d0) + encodeURIComponent(_0x387573[_0x51a5f0(_0x1a7325._0x3b55b2)])), _0x5f25b = await _0xb552ed['json']();
|
|
1994
|
+
if (!_0x5f25b['ok'])
|
|
1995
|
+
return _0x51a5f0(_0x1a7325._0x534222) + _0x387573[_0x51a5f0(_0x1a7325._0x3b55b2)] + _0x51a5f0(_0x1a7325._0x31f462);
|
|
1996
|
+
return _0x51a5f0(0x22e) + _0x387573['work_key'] + '\x22:\x20status=' + _0x5f25b[_0x51a5f0(_0x1a7325._0x1da76e)];
|
|
1995
1997
|
},
|
|
1996
|
-
async 'park_worker'(
|
|
1997
|
-
const
|
|
1998
|
-
if (!
|
|
1999
|
-
return
|
|
2000
|
-
const
|
|
2001
|
-
'method':
|
|
2002
|
-
'headers': { 'Content-Type':
|
|
2003
|
-
'body': JSON[
|
|
2004
|
-
}),
|
|
2005
|
-
if (!
|
|
2006
|
-
throw new Error(
|
|
2007
|
-
return
|
|
1998
|
+
async 'park_worker'(_0x888c5f) {
|
|
1999
|
+
const _0x1c5d42 = _0x4f29a2;
|
|
2000
|
+
if (!_0x2999e5['daemonLocalUrl'])
|
|
2001
|
+
return _0x1c5d42(0xf3);
|
|
2002
|
+
const _0x2eabc7 = await fetch(_0x2999e5[_0x1c5d42(0x149)] + _0x1c5d42(_0x11a6ce._0x926bee), {
|
|
2003
|
+
'method': 'POST',
|
|
2004
|
+
'headers': { 'Content-Type': _0x1c5d42(_0x11a6ce._0x394d8b) },
|
|
2005
|
+
'body': JSON[_0x1c5d42(0x1d6)]({ 'work_key': _0x888c5f[_0x1c5d42(0x1c6)] })
|
|
2006
|
+
}), _0x506c33 = await _0x2eabc7['json']();
|
|
2007
|
+
if (!_0x506c33['ok'])
|
|
2008
|
+
throw new Error(_0x506c33['error'] ?? _0x1c5d42(_0x11a6ce._0x2b5d33));
|
|
2009
|
+
return 'Worker\x20\x22' + _0x888c5f[_0x1c5d42(0x1c6)] + _0x1c5d42(_0x11a6ce._0x44be6d);
|
|
2008
2010
|
},
|
|
2009
|
-
async 'mark_waiting_input'(
|
|
2010
|
-
const
|
|
2011
|
-
if (!
|
|
2012
|
-
return
|
|
2013
|
-
const
|
|
2014
|
-
'method':
|
|
2015
|
-
'headers': { 'Content-Type':
|
|
2016
|
-
'body': JSON[
|
|
2017
|
-
'work_key':
|
|
2018
|
-
'agent_id':
|
|
2011
|
+
async 'mark_waiting_input'(_0x21e75) {
|
|
2012
|
+
const _0xc208e = _0x4f29a2;
|
|
2013
|
+
if (!_0x2999e5[_0xc208e(0x149)] || !_0x2999e5[_0xc208e(_0x1ed99c._0x24354a)])
|
|
2014
|
+
return _0xc208e(_0x1ed99c._0x5bce1d);
|
|
2015
|
+
const _0xd79d1d = await fetch(_0x2999e5['daemonLocalUrl'] + '/workers/waiting_input', {
|
|
2016
|
+
'method': _0xc208e(0x20e),
|
|
2017
|
+
'headers': { 'Content-Type': _0xc208e(_0x1ed99c._0x2eee85) },
|
|
2018
|
+
'body': JSON['stringify']({
|
|
2019
|
+
'work_key': _0x21e75[_0xc208e(_0x1ed99c._0x21dce0)],
|
|
2020
|
+
'agent_id': _0x2999e5[_0xc208e(0x176)]
|
|
2019
2021
|
})
|
|
2020
|
-
}),
|
|
2021
|
-
if (!
|
|
2022
|
-
throw new Error(
|
|
2023
|
-
return
|
|
2022
|
+
}), _0x2da9a0 = await _0xd79d1d['json']();
|
|
2023
|
+
if (!_0x2da9a0['ok'])
|
|
2024
|
+
throw new Error(_0x2da9a0[_0xc208e(0xdf)] ?? _0xc208e(0x1cc));
|
|
2025
|
+
return _0xc208e(0x22e) + _0x21e75[_0xc208e(_0x1ed99c._0x14698b)] + _0xc208e(_0x1ed99c._0x44f7b3);
|
|
2024
2026
|
},
|
|
2025
|
-
async 'escalate_to_main'(
|
|
2026
|
-
const
|
|
2027
|
-
if (!
|
|
2028
|
-
return
|
|
2029
|
-
const
|
|
2030
|
-
'method':
|
|
2031
|
-
'headers': { 'Content-Type':
|
|
2032
|
-
'body': JSON[
|
|
2033
|
-
'work_key':
|
|
2034
|
-
'reason':
|
|
2027
|
+
async 'escalate_to_main'(_0x378c62) {
|
|
2028
|
+
const _0x39dd4f = _0x4f29a2;
|
|
2029
|
+
if (!_0x2999e5[_0x39dd4f(0x149)])
|
|
2030
|
+
return _0x39dd4f(0xf3);
|
|
2031
|
+
const _0x425b86 = await fetch(_0x2999e5[_0x39dd4f(_0x5980de._0x9e3dee)] + _0x39dd4f(_0x5980de._0xb442cb), {
|
|
2032
|
+
'method': 'POST',
|
|
2033
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2034
|
+
'body': JSON[_0x39dd4f(0x1d6)]({
|
|
2035
|
+
'work_key': _0x378c62['work_key'],
|
|
2036
|
+
'reason': _0x378c62[_0x39dd4f(_0x5980de._0x3d6228)]
|
|
2035
2037
|
})
|
|
2036
|
-
}),
|
|
2037
|
-
if (!
|
|
2038
|
-
throw new Error(
|
|
2039
|
-
return
|
|
2038
|
+
}), _0x4ddf98 = await _0x425b86[_0x39dd4f(0x203)]();
|
|
2039
|
+
if (!_0x4ddf98['ok'])
|
|
2040
|
+
throw new Error(_0x4ddf98[_0x39dd4f(_0x5980de._0x51d73f)] ?? _0x39dd4f(0x221));
|
|
2041
|
+
return _0x39dd4f(_0x5980de._0x2e971c) + _0x378c62[_0x39dd4f(0x13d)];
|
|
2040
2042
|
}
|
|
2041
2043
|
};
|
|
2042
2044
|
}
|
|
2043
|
-
function textResult(
|
|
2044
|
-
const
|
|
2045
|
+
function textResult(_0x158b7f, _0xe158dd = ![]) {
|
|
2046
|
+
const _0x575d67 = { _0x15e270: 0x1eb }, _0x15515d = _0xba094d;
|
|
2045
2047
|
return {
|
|
2046
2048
|
'content': [{
|
|
2047
|
-
'type':
|
|
2048
|
-
'text':
|
|
2049
|
+
'type': _0x15515d(_0x575d67._0x15e270),
|
|
2050
|
+
'text': _0x158b7f
|
|
2049
2051
|
}],
|
|
2050
|
-
...
|
|
2052
|
+
..._0xe158dd ? { 'isError': !![] } : {}
|
|
2051
2053
|
};
|
|
2052
2054
|
}
|
|
2053
|
-
async function registerChatBridgeTools(
|
|
2054
|
-
const
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
},
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
},
|
|
2109
|
-
|
|
2110
|
-
'target':
|
|
2111
|
-
'content':
|
|
2112
|
-
'attachment_ids':
|
|
2113
|
-
'visibility':
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
])[
|
|
2117
|
-
}, async
|
|
2118
|
-
const
|
|
2055
|
+
async function registerChatBridgeTools(_0x117a16, _0x700b2e, _0x26c87a) {
|
|
2056
|
+
const _0x4c96f3 = {
|
|
2057
|
+
_0x55673d: 0x185,
|
|
2058
|
+
_0x34b969: 0x179,
|
|
2059
|
+
_0x238fce: 0x212,
|
|
2060
|
+
_0x2b8fdf: 0x1f2,
|
|
2061
|
+
_0x2010a5: 0xee,
|
|
2062
|
+
_0x26fd86: 0x18a,
|
|
2063
|
+
_0x1319ec: 0x235,
|
|
2064
|
+
_0x16fb8f: 0x1e1,
|
|
2065
|
+
_0x335cd9: 0x22c,
|
|
2066
|
+
_0x12a0ab: 0xf9,
|
|
2067
|
+
_0x493e68: 0xf9,
|
|
2068
|
+
_0x13e5dc: 0x1be,
|
|
2069
|
+
_0x56c309: 0x212,
|
|
2070
|
+
_0x144884: 0x1c8,
|
|
2071
|
+
_0x5ef27f: 0x1f2,
|
|
2072
|
+
_0x5b10ef: 0x220,
|
|
2073
|
+
_0x597b51: 0x1f2,
|
|
2074
|
+
_0x2903de: 0x212,
|
|
2075
|
+
_0x1b8a1e: 0x124,
|
|
2076
|
+
_0xd557e5: 0x156,
|
|
2077
|
+
_0x2c9cf8: 0x212,
|
|
2078
|
+
_0x1a317e: 0x179,
|
|
2079
|
+
_0x2033c1: 0x126,
|
|
2080
|
+
_0x2f4073: 0x146,
|
|
2081
|
+
_0x21b029: 0x1f2,
|
|
2082
|
+
_0x3a25a1: 0x1f2,
|
|
2083
|
+
_0x35b49b: 0x1f2,
|
|
2084
|
+
_0x572903: 0x1e6,
|
|
2085
|
+
_0x25a98e: 0x212,
|
|
2086
|
+
_0x210aa9: 0xf9,
|
|
2087
|
+
_0x49f81e: 0x163,
|
|
2088
|
+
_0x55edb7: 0xf9,
|
|
2089
|
+
_0x2b2219: 0x1a6,
|
|
2090
|
+
_0x43c09d: 0x220,
|
|
2091
|
+
_0x86006b: 0x13f,
|
|
2092
|
+
_0x1c7f55: 0x23b,
|
|
2093
|
+
_0x485e80: 0x16c,
|
|
2094
|
+
_0x229697: 0xe5,
|
|
2095
|
+
_0x1dea73: 0x1f3,
|
|
2096
|
+
_0x57eeda: 0x248,
|
|
2097
|
+
_0x16d074: 0xdc
|
|
2098
|
+
}, _0x4f0b2f = {
|
|
2099
|
+
_0x53aa2c: 0x228,
|
|
2100
|
+
_0x311f7a: 0x221
|
|
2101
|
+
}, _0x3eb05f = { _0xd7c961: 0xf2 }, _0x5882a1 = { _0x4b9bcd: 0x168 }, _0x23b98e = { _0x2eab5c: 0x1cd }, _0x276527 = { _0x3ff7fa: 0x181 }, _0x7eac46 = { _0x56ddab: 0x228 }, _0x5756d6 = { _0x23ae8f: 0x228 }, _0x5da859 = {
|
|
2102
|
+
_0x46a55a: 0x196,
|
|
2103
|
+
_0x35c76c: 0x228
|
|
2104
|
+
}, _0x3f9250 = {
|
|
2105
|
+
_0x364b08: 0x215,
|
|
2106
|
+
_0x388585: 0x157
|
|
2107
|
+
}, _0x22b8ff = { _0x408210: 0x228 }, _0x4f449a = { _0x5ed9c4: 0x164 }, _0x1c4e5e = {
|
|
2108
|
+
_0x1a8fbe: 0x123,
|
|
2109
|
+
_0x3bfb0c: 0x228
|
|
2110
|
+
}, _0x5d3ebb = _0xba094d, {z: _0x355539} = await import(_0x5d3ebb(_0x4c96f3._0x55673d));
|
|
2111
|
+
_0x117a16[_0x5d3ebb(0x220)]('send_message', 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2112
|
+
'target': _0x355539['string'](),
|
|
2113
|
+
'content': _0x355539[_0x5d3ebb(0x212)](),
|
|
2114
|
+
'attachment_ids': _0x355539[_0x5d3ebb(_0x4c96f3._0x34b969)](_0x355539[_0x5d3ebb(_0x4c96f3._0x238fce)]())[_0x5d3ebb(_0x4c96f3._0x2b8fdf)](),
|
|
2115
|
+
'visibility': _0x355539['enum']([
|
|
2116
|
+
_0x5d3ebb(0x207),
|
|
2117
|
+
_0x5d3ebb(_0x4c96f3._0x2010a5)
|
|
2118
|
+
])['optional']()[_0x5d3ebb(_0x4c96f3._0x26fd86)]('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2119
|
+
}, async _0x365b06 => {
|
|
2120
|
+
const _0x4c91a0 = _0x5d3ebb;
|
|
2119
2121
|
try {
|
|
2120
|
-
return textResult(await
|
|
2121
|
-
} catch (
|
|
2122
|
-
return textResult(
|
|
2122
|
+
return textResult(await _0x700b2e[_0x4c91a0(_0x1c4e5e._0x1a8fbe)](_0x365b06));
|
|
2123
|
+
} catch (_0x427c74) {
|
|
2124
|
+
return textResult(_0x427c74 instanceof Error ? _0x427c74[_0x4c91a0(_0x1c4e5e._0x3bfb0c)] : 'send_message\x20failed', !![]);
|
|
2123
2125
|
}
|
|
2124
|
-
}),
|
|
2125
|
-
const
|
|
2126
|
+
}), _0x117a16[_0x5d3ebb(0x220)](_0x5d3ebb(0x164), _0x5d3ebb(_0x4c96f3._0x1319ec), {}, async () => {
|
|
2127
|
+
const _0x28b904 = _0x5d3ebb;
|
|
2126
2128
|
try {
|
|
2127
|
-
return textResult(await
|
|
2128
|
-
} catch (
|
|
2129
|
-
return textResult(
|
|
2129
|
+
return textResult(await _0x700b2e[_0x28b904(_0x4f449a._0x5ed9c4)]());
|
|
2130
|
+
} catch (_0x1f4289) {
|
|
2131
|
+
return textResult(_0x1f4289 instanceof Error ? _0x1f4289[_0x28b904(0x228)] : 'check_messages\x20failed', !![]);
|
|
2130
2132
|
}
|
|
2131
|
-
}),
|
|
2132
|
-
'channel':
|
|
2133
|
-
'limit':
|
|
2134
|
-
'before':
|
|
2135
|
-
'after':
|
|
2136
|
-
}, async
|
|
2137
|
-
const
|
|
2133
|
+
}), _0x117a16[_0x5d3ebb(0x220)](_0x5d3ebb(_0x4c96f3._0x16fb8f), _0x5d3ebb(_0x4c96f3._0x335cd9), {
|
|
2134
|
+
'channel': _0x355539['string'](),
|
|
2135
|
+
'limit': _0x355539[_0x5d3ebb(_0x4c96f3._0x12a0ab)]()[_0x5d3ebb(_0x4c96f3._0x2b8fdf)](),
|
|
2136
|
+
'before': _0x355539[_0x5d3ebb(_0x4c96f3._0x493e68)]()[_0x5d3ebb(_0x4c96f3._0x2b8fdf)](),
|
|
2137
|
+
'after': _0x355539['number']()[_0x5d3ebb(0x1f2)]()
|
|
2138
|
+
}, async _0x124cde => {
|
|
2139
|
+
const _0xe4865d = _0x5d3ebb;
|
|
2138
2140
|
try {
|
|
2139
|
-
return textResult(await
|
|
2140
|
-
} catch (
|
|
2141
|
-
return textResult(
|
|
2141
|
+
return textResult(await _0x700b2e['read_history'](_0x124cde));
|
|
2142
|
+
} catch (_0x1bf783) {
|
|
2143
|
+
return textResult(_0x1bf783 instanceof Error ? _0x1bf783['message'] : _0xe4865d(0x1ae), !![]);
|
|
2142
2144
|
}
|
|
2143
|
-
}),
|
|
2144
|
-
const
|
|
2145
|
+
}), _0x117a16[_0x5d3ebb(0x220)]('list_server', _0x5d3ebb(_0x4c96f3._0x13e5dc), {}, async () => {
|
|
2146
|
+
const _0x2e3d0f = _0x5d3ebb;
|
|
2145
2147
|
try {
|
|
2146
|
-
return textResult(await
|
|
2147
|
-
} catch (
|
|
2148
|
-
return textResult(
|
|
2148
|
+
return textResult(await _0x700b2e[_0x2e3d0f(0xff)]());
|
|
2149
|
+
} catch (_0x1da5ae) {
|
|
2150
|
+
return textResult(_0x1da5ae instanceof Error ? _0x1da5ae[_0x2e3d0f(_0x22b8ff._0x408210)] : 'list_server\x20failed', !![]);
|
|
2149
2151
|
}
|
|
2150
|
-
}),
|
|
2151
|
-
'channel':
|
|
2152
|
-
'status':
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
])[
|
|
2158
|
-
}, async
|
|
2159
|
-
const
|
|
2152
|
+
}), _0x117a16[_0x5d3ebb(0x220)](_0x5d3ebb(0x215), _0x5d3ebb(0x21a), {
|
|
2153
|
+
'channel': _0x355539[_0x5d3ebb(_0x4c96f3._0x56c309)](),
|
|
2154
|
+
'status': _0x355539['enum']([
|
|
2155
|
+
_0x5d3ebb(_0x4c96f3._0x144884),
|
|
2156
|
+
_0x5d3ebb(0x155),
|
|
2157
|
+
_0x5d3ebb(0x229),
|
|
2158
|
+
_0x5d3ebb(0x1a6)
|
|
2159
|
+
])[_0x5d3ebb(_0x4c96f3._0x5ef27f)]()
|
|
2160
|
+
}, async _0x2144c7 => {
|
|
2161
|
+
const _0x304274 = _0x5d3ebb;
|
|
2160
2162
|
try {
|
|
2161
|
-
return textResult(await
|
|
2162
|
-
} catch (
|
|
2163
|
-
return textResult(
|
|
2163
|
+
return textResult(await _0x700b2e[_0x304274(_0x3f9250._0x364b08)](_0x2144c7));
|
|
2164
|
+
} catch (_0x567b29) {
|
|
2165
|
+
return textResult(_0x567b29 instanceof Error ? _0x567b29[_0x304274(0x228)] : _0x304274(_0x3f9250._0x388585), !![]);
|
|
2164
2166
|
}
|
|
2165
|
-
}),
|
|
2166
|
-
'channel':
|
|
2167
|
-
'idempotency_key':
|
|
2168
|
-
'tasks':
|
|
2169
|
-
'title':
|
|
2170
|
-
'description':
|
|
2171
|
-
'priority':
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
])[
|
|
2167
|
+
}), _0x117a16[_0x5d3ebb(_0x4c96f3._0x5b10ef)](_0x5d3ebb(0x196), _0x5d3ebb(0xfd), {
|
|
2168
|
+
'channel': _0x355539[_0x5d3ebb(0x212)](),
|
|
2169
|
+
'idempotency_key': _0x355539[_0x5d3ebb(0x212)]()[_0x5d3ebb(_0x4c96f3._0x597b51)](),
|
|
2170
|
+
'tasks': _0x355539['array'](_0x355539['object']({
|
|
2171
|
+
'title': _0x355539[_0x5d3ebb(0x212)](),
|
|
2172
|
+
'description': _0x355539[_0x5d3ebb(_0x4c96f3._0x2903de)]()['optional'](),
|
|
2173
|
+
'priority': _0x355539[_0x5d3ebb(0x137)]([
|
|
2174
|
+
'low',
|
|
2175
|
+
'medium',
|
|
2176
|
+
_0x5d3ebb(_0x4c96f3._0x1b8a1e),
|
|
2177
|
+
_0x5d3ebb(_0x4c96f3._0xd557e5)
|
|
2178
|
+
])[_0x5d3ebb(0x1f2)]()
|
|
2177
2179
|
}))
|
|
2178
|
-
}, async
|
|
2179
|
-
const
|
|
2180
|
+
}, async _0x2906b1 => {
|
|
2181
|
+
const _0x3d4506 = _0x5d3ebb;
|
|
2180
2182
|
try {
|
|
2181
|
-
return textResult(await
|
|
2182
|
-
} catch (
|
|
2183
|
-
return textResult(
|
|
2183
|
+
return textResult(await _0x700b2e[_0x3d4506(_0x5da859._0x46a55a)](_0x2906b1));
|
|
2184
|
+
} catch (_0x2b251f) {
|
|
2185
|
+
return textResult(_0x2b251f instanceof Error ? _0x2b251f[_0x3d4506(_0x5da859._0x35c76c)] : _0x3d4506(0x116), !![]);
|
|
2184
2186
|
}
|
|
2185
|
-
}),
|
|
2186
|
-
'channel':
|
|
2187
|
-
'task_numbers':
|
|
2188
|
-
'subtask_numbers':
|
|
2189
|
-
'message_ids':
|
|
2190
|
-
'evidence':
|
|
2191
|
-
'create_thread':
|
|
2192
|
-
'create_task':
|
|
2193
|
-
}))[
|
|
2194
|
-
'idempotency_key':
|
|
2195
|
-
}, async
|
|
2196
|
-
const
|
|
2187
|
+
}), _0x117a16[_0x5d3ebb(0x220)]('claim_tasks', 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
|
|
2188
|
+
'channel': _0x355539[_0x5d3ebb(_0x4c96f3._0x2c9cf8)](),
|
|
2189
|
+
'task_numbers': _0x355539['array'](_0x355539['number']())[_0x5d3ebb(0x1f2)](),
|
|
2190
|
+
'subtask_numbers': _0x355539[_0x5d3ebb(_0x4c96f3._0x1a317e)](_0x355539[_0x5d3ebb(0xf9)]())[_0x5d3ebb(0x1f2)](),
|
|
2191
|
+
'message_ids': _0x355539[_0x5d3ebb(0x179)](_0x355539[_0x5d3ebb(0x212)]())[_0x5d3ebb(0x1f2)](),
|
|
2192
|
+
'evidence': _0x355539[_0x5d3ebb(_0x4c96f3._0x2033c1)](_0x355539[_0x5d3ebb(0x212)](), _0x355539['object']({
|
|
2193
|
+
'create_thread': _0x355539[_0x5d3ebb(0x146)]()['optional'](),
|
|
2194
|
+
'create_task': _0x355539[_0x5d3ebb(_0x4c96f3._0x2f4073)]()[_0x5d3ebb(_0x4c96f3._0x21b029)]()
|
|
2195
|
+
}))[_0x5d3ebb(_0x4c96f3._0x3a25a1)](),
|
|
2196
|
+
'idempotency_key': _0x355539['string']()[_0x5d3ebb(_0x4c96f3._0x35b49b)]()
|
|
2197
|
+
}, async _0x4989f9 => {
|
|
2198
|
+
const _0x13bdcf = _0x5d3ebb;
|
|
2197
2199
|
try {
|
|
2198
|
-
return textResult(await
|
|
2199
|
-
} catch (
|
|
2200
|
-
return textResult(
|
|
2200
|
+
return textResult(await _0x700b2e[_0x13bdcf(0xd8)](_0x4989f9));
|
|
2201
|
+
} catch (_0x417a7c) {
|
|
2202
|
+
return textResult(_0x417a7c instanceof Error ? _0x417a7c[_0x13bdcf(_0x5756d6._0x23ae8f)] : _0x13bdcf(0x1f4), !![]);
|
|
2201
2203
|
}
|
|
2202
|
-
}),
|
|
2203
|
-
'channel':
|
|
2204
|
-
'task_number':
|
|
2205
|
-
'subtask_number':
|
|
2206
|
-
'idempotency_key':
|
|
2207
|
-
}, async
|
|
2208
|
-
const
|
|
2204
|
+
}), _0x117a16[_0x5d3ebb(_0x4c96f3._0x5b10ef)](_0x5d3ebb(0x19a), _0x5d3ebb(_0x4c96f3._0x572903), {
|
|
2205
|
+
'channel': _0x355539[_0x5d3ebb(_0x4c96f3._0x25a98e)](),
|
|
2206
|
+
'task_number': _0x355539[_0x5d3ebb(_0x4c96f3._0x493e68)](),
|
|
2207
|
+
'subtask_number': _0x355539[_0x5d3ebb(_0x4c96f3._0x210aa9)]()[_0x5d3ebb(_0x4c96f3._0x3a25a1)](),
|
|
2208
|
+
'idempotency_key': _0x355539[_0x5d3ebb(_0x4c96f3._0x2c9cf8)]()['optional']()
|
|
2209
|
+
}, async _0x511d80 => {
|
|
2210
|
+
const _0x3212b6 = _0x5d3ebb;
|
|
2209
2211
|
try {
|
|
2210
|
-
return textResult(await
|
|
2211
|
-
} catch (
|
|
2212
|
-
return textResult(
|
|
2212
|
+
return textResult(await _0x700b2e['unclaim_task'](_0x511d80));
|
|
2213
|
+
} catch (_0x2530d6) {
|
|
2214
|
+
return textResult(_0x2530d6 instanceof Error ? _0x2530d6[_0x3212b6(_0x7eac46._0x56ddab)] : _0x3212b6(0x1f6), !![]);
|
|
2213
2215
|
}
|
|
2214
|
-
}),
|
|
2215
|
-
'channel':
|
|
2216
|
-
'task_number':
|
|
2217
|
-
'subtask_number':
|
|
2218
|
-
'status':
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2216
|
+
}), _0x117a16['tool']('update_task_status', _0x5d3ebb(_0x4c96f3._0x49f81e), {
|
|
2217
|
+
'channel': _0x355539['string'](),
|
|
2218
|
+
'task_number': _0x355539[_0x5d3ebb(_0x4c96f3._0x55edb7)](),
|
|
2219
|
+
'subtask_number': _0x355539[_0x5d3ebb(0xf9)]()[_0x5d3ebb(0x1f2)](),
|
|
2220
|
+
'status': _0x355539[_0x5d3ebb(0x137)]([
|
|
2221
|
+
'todo',
|
|
2222
|
+
_0x5d3ebb(0x155),
|
|
2223
|
+
_0x5d3ebb(0x229),
|
|
2224
|
+
_0x5d3ebb(_0x4c96f3._0x2b2219)
|
|
2223
2225
|
]),
|
|
2224
|
-
'idempotency_key':
|
|
2225
|
-
}, async
|
|
2226
|
-
const
|
|
2226
|
+
'idempotency_key': _0x355539[_0x5d3ebb(_0x4c96f3._0x2c9cf8)]()[_0x5d3ebb(_0x4c96f3._0x597b51)]()
|
|
2227
|
+
}, async _0x56b5c2 => {
|
|
2228
|
+
const _0x868697 = _0x5d3ebb;
|
|
2227
2229
|
try {
|
|
2228
|
-
return textResult(await
|
|
2229
|
-
} catch (
|
|
2230
|
-
return textResult(
|
|
2230
|
+
return textResult(await _0x700b2e[_0x868697(_0x276527._0x3ff7fa)](_0x56b5c2));
|
|
2231
|
+
} catch (_0x44e6d3) {
|
|
2232
|
+
return textResult(_0x44e6d3 instanceof Error ? _0x44e6d3[_0x868697(0x228)] : 'update_task_status\x20failed', !![]);
|
|
2231
2233
|
}
|
|
2232
|
-
}),
|
|
2233
|
-
'channel':
|
|
2234
|
-
'file_path':
|
|
2235
|
-
}, async
|
|
2236
|
-
const
|
|
2234
|
+
}), _0x117a16[_0x5d3ebb(_0x4c96f3._0x43c09d)](_0x5d3ebb(0x1cd), _0x5d3ebb(0x200), {
|
|
2235
|
+
'channel': _0x355539[_0x5d3ebb(0x212)](),
|
|
2236
|
+
'file_path': _0x355539[_0x5d3ebb(0x212)]()
|
|
2237
|
+
}, async _0x1c8dc4 => {
|
|
2238
|
+
const _0xd62ba = _0x5d3ebb;
|
|
2237
2239
|
try {
|
|
2238
|
-
return textResult(await
|
|
2239
|
-
} catch (
|
|
2240
|
-
return textResult(
|
|
2240
|
+
return textResult(await _0x700b2e[_0xd62ba(_0x23b98e._0x2eab5c)](_0x1c8dc4));
|
|
2241
|
+
} catch (_0x54321c) {
|
|
2242
|
+
return textResult(_0x54321c instanceof Error ? _0x54321c[_0xd62ba(0x228)] : 'upload_file\x20failed', !![]);
|
|
2241
2243
|
}
|
|
2242
|
-
}),
|
|
2243
|
-
const
|
|
2244
|
+
}), _0x117a16[_0x5d3ebb(0x220)](_0x5d3ebb(0x168), _0x5d3ebb(0xf1), { 'attachment_id': _0x355539['string']() }, async _0xbefe7f => {
|
|
2245
|
+
const _0x5d43c5 = _0x5d3ebb;
|
|
2244
2246
|
try {
|
|
2245
|
-
return textResult(await
|
|
2246
|
-
} catch (
|
|
2247
|
-
return textResult(
|
|
2247
|
+
return textResult(await _0x700b2e[_0x5d43c5(_0x5882a1._0x4b9bcd)](_0xbefe7f));
|
|
2248
|
+
} catch (_0x9248fa) {
|
|
2249
|
+
return textResult(_0x9248fa instanceof Error ? _0x9248fa['message'] : _0x5d43c5(0x18b), !![]);
|
|
2248
2250
|
}
|
|
2249
|
-
}),
|
|
2250
|
-
const
|
|
2251
|
+
}), _0x117a16['tool'](_0x5d3ebb(_0x4c96f3._0x86006b), _0x5d3ebb(_0x4c96f3._0x1c7f55), { 'work_key': _0x355539['string']() }, async _0x21a76f => {
|
|
2252
|
+
const _0x32c796 = _0x5d3ebb;
|
|
2251
2253
|
try {
|
|
2252
|
-
return textResult(await
|
|
2253
|
-
} catch (
|
|
2254
|
-
return textResult(
|
|
2254
|
+
return textResult(await _0x700b2e['get_worker_status'](_0x21a76f));
|
|
2255
|
+
} catch (_0x3eaf21) {
|
|
2256
|
+
return textResult(_0x3eaf21 instanceof Error ? _0x3eaf21[_0x32c796(0x228)] : _0x32c796(_0x3eb05f._0xd7c961), !![]);
|
|
2255
2257
|
}
|
|
2256
|
-
}),
|
|
2257
|
-
const
|
|
2258
|
+
}), _0x117a16[_0x5d3ebb(_0x4c96f3._0x43c09d)](_0x5d3ebb(_0x4c96f3._0x485e80), _0x5d3ebb(_0x4c96f3._0x229697), { 'work_key': _0x355539[_0x5d3ebb(0x212)]() }, async _0x282a13 => {
|
|
2259
|
+
const _0x3bcf04 = _0x5d3ebb;
|
|
2258
2260
|
try {
|
|
2259
|
-
return textResult(await
|
|
2260
|
-
} catch (
|
|
2261
|
-
return textResult(
|
|
2261
|
+
return textResult(await _0x700b2e[_0x3bcf04(0x16c)](_0x282a13));
|
|
2262
|
+
} catch (_0x526e3c) {
|
|
2263
|
+
return textResult(_0x526e3c instanceof Error ? _0x526e3c['message'] : _0x3bcf04(0x24c), !![]);
|
|
2262
2264
|
}
|
|
2263
|
-
}),
|
|
2264
|
-
'work_key':
|
|
2265
|
-
'reason':
|
|
2266
|
-
}, async
|
|
2267
|
-
const
|
|
2265
|
+
}), _0x117a16[_0x5d3ebb(0x220)](_0x5d3ebb(0x172), _0x5d3ebb(0x100), {
|
|
2266
|
+
'work_key': _0x355539[_0x5d3ebb(0x212)](),
|
|
2267
|
+
'reason': _0x355539[_0x5d3ebb(0x212)]()
|
|
2268
|
+
}, async _0x1cc5a7 => {
|
|
2269
|
+
const _0x2c7775 = _0x5d3ebb;
|
|
2268
2270
|
try {
|
|
2269
|
-
return textResult(await
|
|
2270
|
-
} catch (
|
|
2271
|
-
return textResult(
|
|
2271
|
+
return textResult(await _0x700b2e[_0x2c7775(0x172)](_0x1cc5a7));
|
|
2272
|
+
} catch (_0x2d40b5) {
|
|
2273
|
+
return textResult(_0x2d40b5 instanceof Error ? _0x2d40b5[_0x2c7775(_0x4f0b2f._0x53aa2c)] : _0x2c7775(_0x4f0b2f._0x311f7a), !![]);
|
|
2272
2274
|
}
|
|
2273
|
-
}),
|
|
2274
|
-
const
|
|
2275
|
+
}), _0x26c87a?.[_0x5d3ebb(_0x4c96f3._0x1dea73)] && _0x117a16[_0x5d3ebb(_0x4c96f3._0x43c09d)](_0x5d3ebb(_0x4c96f3._0x57eeda), _0x5d3ebb(_0x4c96f3._0x16d074), { 'work_key': _0x355539[_0x5d3ebb(0x212)]() }, async _0x3de0ea => {
|
|
2276
|
+
const _0x537b46 = _0x5d3ebb;
|
|
2275
2277
|
try {
|
|
2276
|
-
return textResult(await
|
|
2277
|
-
} catch (
|
|
2278
|
-
return textResult(
|
|
2278
|
+
return textResult(await _0x700b2e[_0x537b46(0x248)](_0x3de0ea));
|
|
2279
|
+
} catch (_0x14e238) {
|
|
2280
|
+
return textResult(_0x14e238 instanceof Error ? _0x14e238['message'] : _0x537b46(0x1cc), !![]);
|
|
2279
2281
|
}
|
|
2280
2282
|
});
|
|
2281
2283
|
}
|
|
2282
|
-
async function createChatBridgeServer(
|
|
2283
|
-
const
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2284
|
+
async function createChatBridgeServer(_0x35beb2) {
|
|
2285
|
+
const _0x37a769 = {
|
|
2286
|
+
_0x4f792a: 0x14b,
|
|
2287
|
+
_0x54c548: 0x1fe,
|
|
2288
|
+
_0x1ff220: 0x1f3
|
|
2289
|
+
}, _0x41ea1e = _0xba094d, {McpServer: _0xd5dab} = await import(_0x41ea1e(0x1c1)), _0x531e24 = new _0xd5dab({
|
|
2290
|
+
'name': _0x41ea1e(_0x37a769._0x4f792a),
|
|
2291
|
+
'version': _0x41ea1e(_0x37a769._0x54c548)
|
|
2292
|
+
}), _0x19f143 = createChatBridgeHandlers(_0x35beb2);
|
|
2293
|
+
return await registerChatBridgeTools(_0x531e24, _0x19f143, { 'workerMode': _0x35beb2[_0x41ea1e(_0x37a769._0x1ff220)] }), {
|
|
2294
|
+
'handlers': _0x19f143,
|
|
2295
|
+
'server': _0x531e24
|
|
2290
2296
|
};
|
|
2291
2297
|
}
|
|
2292
|
-
function readFlag(
|
|
2293
|
-
const
|
|
2294
|
-
if (
|
|
2298
|
+
function readFlag(_0x44039b, _0x3ad052) {
|
|
2299
|
+
const _0x2d2f7a = _0x44039b['indexOf'](_0x3ad052);
|
|
2300
|
+
if (_0x2d2f7a === -0x1)
|
|
2295
2301
|
return void 0x0;
|
|
2296
|
-
return
|
|
2302
|
+
return _0x44039b[_0x2d2f7a + 0x1];
|
|
2297
2303
|
}
|
|
2298
|
-
function parseChatBridgeArgs(
|
|
2299
|
-
const
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
}, _0xa96319 = _0x4d2358, _0x57e38a = readFlag(_0x599df1, _0xa96319(_0x131caf._0x1fa9a0)), _0x5b7681 = readFlag(_0x599df1, _0xa96319(_0x131caf._0x2a2031)), _0xf27ec = readFlag(_0x599df1, '--daemon-api-key'), _0x49f3ef = readFlag(_0x599df1, _0xa96319(_0x131caf._0x5ca864)), _0x3b1315 = readFlag(_0x599df1, _0xa96319(_0x131caf._0x32eefa)) ?? 'http://localhost:8121', _0x2b534b = readFlag(_0x599df1, '--daemon-local-url'), _0x53101b = readFlag(_0x599df1, _0xa96319(_0x131caf._0x4b7cd3)), _0x5f57c8 = readFlag(_0x599df1, '--worker-mode-enabled'), _0x578de7 = readFlag(_0x599df1, _0xa96319(_0x131caf._0xf1d950)), _0x165949 = readFlag(_0x599df1, _0xa96319(_0x131caf._0x289668)), _0x2849f6 = _0x599df1[_0xa96319(0x2a5)](_0xa96319(_0x131caf._0x3105b8)), _0x306c21 = _0x49f3ef === void 0x0 ? void 0x0 : Number[_0xa96319(_0x131caf._0x4f52d4)](_0x49f3ef, 0xa);
|
|
2312
|
-
if (!_0x57e38a)
|
|
2313
|
-
throw new Error(_0xa96319(_0x131caf._0x19006d));
|
|
2314
|
-
if (!_0xf27ec)
|
|
2315
|
-
throw new Error(_0xa96319(_0x131caf._0x5c160d));
|
|
2316
|
-
if (_0x49f3ef !== void 0x0 && (_0x306c21 === void 0x0 || !Number['isFinite'](_0x306c21) || _0x306c21 < 0x0))
|
|
2317
|
-
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2304
|
+
function parseChatBridgeArgs(_0x3d8f3d) {
|
|
2305
|
+
const _0xb9d826 = {
|
|
2306
|
+
_0x4e865e: 0xeb,
|
|
2307
|
+
_0x31673b: 0x23a,
|
|
2308
|
+
_0x470f4e: 0x233,
|
|
2309
|
+
_0x146a50: 0x11e
|
|
2310
|
+
}, _0x2898b5 = _0xba094d, _0x588af2 = readFlag(_0x3d8f3d, _0x2898b5(0x1da)), _0x31ad13 = readFlag(_0x3d8f3d, '--attachment-cache-dir'), _0x17a78b = readFlag(_0x3d8f3d, _0x2898b5(0x244)), _0x5aa25e = readFlag(_0x3d8f3d, _0x2898b5(0x135)), _0x9d17d = readFlag(_0x3d8f3d, _0x2898b5(0x213)) ?? _0x2898b5(0x24b), _0x284b2d = readFlag(_0x3d8f3d, '--daemon-local-url'), _0x58769e = readFlag(_0x3d8f3d, _0x2898b5(0x19b)), _0x502053 = readFlag(_0x3d8f3d, '--worker-mode-enabled'), _0x2ceddb = readFlag(_0x3d8f3d, '--worker-session-id'), _0x34f32a = readFlag(_0x3d8f3d, _0x2898b5(_0xb9d826._0x4e865e)), _0x63fd64 = _0x3d8f3d[_0x2898b5(_0xb9d826._0x31673b)](_0x2898b5(_0xb9d826._0x470f4e)), _0x4c99c0 = _0x5aa25e === void 0x0 ? void 0x0 : Number[_0x2898b5(0x10a)](_0x5aa25e, 0xa);
|
|
2311
|
+
if (!_0x588af2)
|
|
2312
|
+
throw new Error(_0x2898b5(0x1bd));
|
|
2313
|
+
if (!_0x17a78b)
|
|
2314
|
+
throw new Error(_0x2898b5(0x1df));
|
|
2315
|
+
if (_0x5aa25e !== void 0x0 && (_0x4c99c0 === void 0x0 || !Number[_0x2898b5(0x1b7)](_0x4c99c0) || _0x4c99c0 < 0x0))
|
|
2316
|
+
throw new Error(_0x2898b5(0x1a0));
|
|
2318
2317
|
return {
|
|
2319
|
-
'agentId':
|
|
2320
|
-
'attachmentCacheDir':
|
|
2321
|
-
'daemonApiKey':
|
|
2322
|
-
'daemonLocalUrl':
|
|
2323
|
-
'initialLastSeenSeq':
|
|
2324
|
-
'sessionId':
|
|
2325
|
-
'serverUrl':
|
|
2326
|
-
'workerModeEnabled':
|
|
2327
|
-
'workerSessionId':
|
|
2328
|
-
'workerThreadTarget':
|
|
2329
|
-
'workerMode':
|
|
2318
|
+
'agentId': _0x588af2,
|
|
2319
|
+
'attachmentCacheDir': _0x31ad13,
|
|
2320
|
+
'daemonApiKey': _0x17a78b,
|
|
2321
|
+
'daemonLocalUrl': _0x284b2d,
|
|
2322
|
+
'initialLastSeenSeq': _0x4c99c0,
|
|
2323
|
+
'sessionId': _0x58769e,
|
|
2324
|
+
'serverUrl': _0x9d17d,
|
|
2325
|
+
'workerModeEnabled': _0x502053 === void 0x0 ? void 0x0 : _0x502053 !== _0x2898b5(_0xb9d826._0x146a50),
|
|
2326
|
+
'workerSessionId': _0x2ceddb,
|
|
2327
|
+
'workerThreadTarget': _0x34f32a,
|
|
2328
|
+
'workerMode': _0x63fd64
|
|
2330
2329
|
};
|
|
2331
2330
|
}
|
|
2332
|
-
async function runChatBridgeCli(
|
|
2333
|
-
const
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
'
|
|
2342
|
-
'attachmentCache': _0x15eb70,
|
|
2343
|
-
'client': _0x56cab8,
|
|
2344
|
-
'daemonLocalUrl': _0x145bf0[_0x15b234(_0x323202._0x4c8448)],
|
|
2331
|
+
async function runChatBridgeCli(_0x55e7d2) {
|
|
2332
|
+
const _0x260677 = {
|
|
2333
|
+
_0x5b43be: 0x176,
|
|
2334
|
+
_0xa4176: 0x187,
|
|
2335
|
+
_0x2146e5: 0x11c
|
|
2336
|
+
}, _0x4b8d50 = _0xba094d, _0x450df3 = parseChatBridgeArgs(_0x55e7d2), {StdioServerTransport: _0x464ca3} = await import(_0x4b8d50(0x17b)), _0x5c4f2f = createInternalAgentClient(_0x450df3), _0x3bb252 = createAttachmentCache({ 'cacheDir': _0x450df3['attachmentCacheDir'] }), _0x1be3e4 = await createChatBridgeServer({
|
|
2337
|
+
'agentId': _0x450df3[_0x4b8d50(_0x260677._0x5b43be)],
|
|
2338
|
+
'attachmentCache': _0x3bb252,
|
|
2339
|
+
'client': _0x5c4f2f,
|
|
2340
|
+
'daemonLocalUrl': _0x450df3['daemonLocalUrl'],
|
|
2345
2341
|
'uploadPreparer': prepareUploadFile,
|
|
2346
|
-
'workerModeEnabled':
|
|
2347
|
-
'workerMode':
|
|
2348
|
-
'workerThreadTarget':
|
|
2342
|
+
'workerModeEnabled': _0x450df3[_0x4b8d50(_0x260677._0xa4176)],
|
|
2343
|
+
'workerMode': _0x450df3['workerMode'],
|
|
2344
|
+
'workerThreadTarget': _0x450df3[_0x4b8d50(0x14e)]
|
|
2349
2345
|
});
|
|
2350
|
-
await
|
|
2346
|
+
await _0x1be3e4[_0x4b8d50(0x218)][_0x4b8d50(_0x260677._0x2146e5)](new _0x464ca3());
|
|
2351
2347
|
}
|
|
2352
|
-
var executedAsEntry = process[
|
|
2353
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2348
|
+
var executedAsEntry = process[_0xba094d(0x216)][0x1] ? import.meta.url === pathToFileURL(process[_0xba094d(0x216)][0x1])[_0xba094d(0x1a3)] : ![];
|
|
2349
|
+
executedAsEntry && await runChatBridgeCli(process[_0xba094d(0x216)][_0xba094d(0x1a1)](0x2));
|
|
2354
2350
|
export {
|
|
2355
2351
|
createChatBridgeHandlers,
|
|
2356
2352
|
createChatBridgeServer,
|