@dscord/daemon 0.1.61 → 0.1.62
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 +1986 -1993
- package/dist/index.js +9935 -9637
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_0x409d5b: 0x1f2
|
|
11
|
-
}, _0x5c3c54 = _0x41c3, _0x25f892 = _0xacd2a3();
|
|
1
|
+
const _0x3cf5af = _0x7e16;
|
|
2
|
+
(function (_0x564876, _0x24a886) {
|
|
3
|
+
const _0x58bfd7 = {
|
|
4
|
+
_0x40633f: 0x23b,
|
|
5
|
+
_0x37f6f8: 0x1e5,
|
|
6
|
+
_0x5c3e53: 0x1c7,
|
|
7
|
+
_0x145c95: 0x249,
|
|
8
|
+
_0x4b56f7: 0x115
|
|
9
|
+
}, _0x1adfbf = _0x7e16, _0x2e829e = _0x564876();
|
|
12
10
|
while (!![]) {
|
|
13
11
|
try {
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
12
|
+
const _0x34c839 = parseInt(_0x1adfbf(_0x58bfd7._0x40633f)) / 0x1 + -parseInt(_0x1adfbf(_0x58bfd7._0x37f6f8)) / 0x2 * (-parseInt(_0x1adfbf(0x18a)) / 0x3) + parseInt(_0x1adfbf(0x203)) / 0x4 + -parseInt(_0x1adfbf(_0x58bfd7._0x5c3e53)) / 0x5 + -parseInt(_0x1adfbf(_0x58bfd7._0x145c95)) / 0x6 + parseInt(_0x1adfbf(_0x58bfd7._0x4b56f7)) / 0x7 * (-parseInt(_0x1adfbf(0x141)) / 0x8) + -parseInt(_0x1adfbf(0x164)) / 0x9;
|
|
13
|
+
if (_0x34c839 === _0x24a886)
|
|
16
14
|
break;
|
|
17
15
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
16
|
+
_0x2e829e['push'](_0x2e829e['shift']());
|
|
17
|
+
} catch (_0x122b3e) {
|
|
18
|
+
_0x2e829e['push'](_0x2e829e['shift']());
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
|
-
}(
|
|
21
|
+
}(_0x42c5, 0xd7d76));
|
|
24
22
|
import { pathToFileURL } from 'node:url';
|
|
25
23
|
import {
|
|
26
24
|
mkdir,
|
|
@@ -30,2377 +28,2372 @@ import {
|
|
|
30
28
|
writeFile
|
|
31
29
|
} from 'node:fs/promises';
|
|
32
30
|
import { homedir } from 'node:os';
|
|
33
|
-
import
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
|
|
49
|
-
function guessContentType(_0x1c7992) {
|
|
50
|
-
const _0x28a0d6 = { _0x529095: 0x19e }, _0x3846fd = _0x28aee3;
|
|
51
|
-
return MIME_BY_EXTENSION[_0x35e736[_0x3846fd(_0x28a0d6._0x529095)](_0x1c7992)[_0x3846fd(0x179)]()] ?? _0x3846fd(0x26c);
|
|
52
|
-
}
|
|
53
|
-
function safeFilename(_0x1c495b) {
|
|
54
|
-
return _0x1c495b['replace'](/[\\/]/g, '-');
|
|
55
|
-
}
|
|
56
|
-
function extensionFor(_0x328e7b) {
|
|
57
|
-
const _0x4c99da = {
|
|
58
|
-
_0x2775c8: 0x25e,
|
|
59
|
-
_0x48f1e4: 0x18f
|
|
60
|
-
}, _0x4868e8 = _0x28aee3, _0x29663a = Object[_0x4868e8(_0x4c99da._0x2775c8)](MIME_BY_EXTENSION)[_0x4868e8(0x274)](([, _0x2a02f8]) => _0x2a02f8 === _0x328e7b);
|
|
61
|
-
return _0x29663a?.[0x0] ?? _0x4868e8(_0x4c99da._0x48f1e4);
|
|
62
|
-
}
|
|
63
|
-
async function prepareUploadFile(_0x14ee6e, _0x12546d = {}) {
|
|
64
|
-
const _0x15d198 = {
|
|
65
|
-
_0x1f3315: 0x25c,
|
|
66
|
-
_0x33594d: 0x1a8,
|
|
67
|
-
_0x51b5c5: 0x1cf,
|
|
68
|
-
_0xd58696: 0x2b1
|
|
69
|
-
}, _0x44cd39 = _0x28aee3;
|
|
70
|
-
if (!_0x35e736[_0x44cd39(_0x15d198._0x1f3315)](_0x14ee6e))
|
|
71
|
-
throw new Error(_0x44cd39(_0x15d198._0x33594d));
|
|
72
|
-
const _0x247ca4 = await stat(_0x14ee6e)[_0x44cd39(0x289)](() => null);
|
|
73
|
-
if (!_0x247ca4 || !_0x247ca4[_0x44cd39(0x23a)]())
|
|
74
|
-
throw new Error('File\x20not\x20found:\x20' + _0x14ee6e);
|
|
75
|
-
const _0x10a1c1 = _0x12546d['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
76
|
-
if (_0x247ca4[_0x44cd39(_0x15d198._0x51b5c5)] > _0x10a1c1)
|
|
77
|
-
throw new Error(_0x44cd39(_0x15d198._0xd58696) + _0x247ca4['size']);
|
|
78
|
-
const _0x4556d0 = await readFile(_0x14ee6e), _0x3abaa8 = _0x35e736['basename'](_0x14ee6e);
|
|
79
|
-
return {
|
|
80
|
-
'contentBase64': _0x4556d0['toString']('base64'),
|
|
81
|
-
'contentType': guessContentType(_0x3abaa8),
|
|
82
|
-
'filename': _0x3abaa8,
|
|
83
|
-
'sizeBytes': _0x247ca4[_0x44cd39(0x1cf)]
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function createAttachmentCache(_0x2770fe = {}) {
|
|
87
|
-
const _0x42664d = { _0x3b90d2: 0x27f }, _0x2a082f = { _0x3f5266: 0x1dd }, _0x1b168e = _0x28aee3, _0x2d43c4 = _0x2770fe['cacheDir'] ?? _0x35e736['join'](homedir(), _0x1b168e(0x223), 'attachments');
|
|
88
|
-
return {
|
|
89
|
-
'cacheDir': _0x2d43c4,
|
|
90
|
-
async 'findCachedPath'(_0x514d67) {
|
|
91
|
-
const _0x592267 = _0x1b168e;
|
|
92
|
-
await mkdir(_0x2d43c4, { 'recursive': !![] });
|
|
93
|
-
const _0x339240 = await readdir(_0x2d43c4), _0x511f2f = _0x339240[_0x592267(0x274)](_0x194c07 => _0x194c07[_0x592267(0x20f)](_0x514d67 + '-') || _0x194c07['startsWith'](_0x514d67));
|
|
94
|
-
return _0x511f2f ? _0x35e736[_0x592267(_0x2a082f._0x3f5266)](_0x2d43c4, _0x511f2f) : null;
|
|
95
|
-
},
|
|
96
|
-
async 'save'(_0x5b1aaf) {
|
|
97
|
-
const _0x1ba3a8 = _0x1b168e;
|
|
98
|
-
await mkdir(_0x2d43c4, { 'recursive': !![] });
|
|
99
|
-
const _0x40a70f = _0x5b1aaf['originalFilename']?.[_0x1ba3a8(0x1f6)]() ? safeFilename(_0x5b1aaf[_0x1ba3a8(_0x42664d._0x3b90d2)]) : '' + _0x5b1aaf['attachmentId'] + extensionFor(_0x5b1aaf['contentType']), _0x37ae84 = _0x35e736[_0x1ba3a8(0x1dd)](_0x2d43c4, _0x5b1aaf[_0x1ba3a8(0x285)] + '-' + _0x40a70f);
|
|
100
|
-
return await writeFile(_0x37ae84, _0x5b1aaf[_0x1ba3a8(0x264)]), _0x37ae84;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
function _0x2e92() {
|
|
105
|
-
const _0x2fb423 = [
|
|
106
|
-
'C2vUzgvYtMfTzq',
|
|
107
|
-
'ANnVBG',
|
|
108
|
-
'AxnbCNjHEq',
|
|
109
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
110
|
-
'yxjYyxLcDwzMzxi',
|
|
111
|
-
'w3rHCMDLDd0',
|
|
112
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
113
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
114
|
-
'Dw5RBM93BG',
|
|
115
|
-
'D29YA2vYtw9Kzq',
|
|
116
|
-
'BgLTAxq',
|
|
117
|
-
'DgHYzwfK',
|
|
118
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
119
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
120
|
-
'mJKWodq1mLvKrMvVva',
|
|
121
|
-
'C3rHDhvZ',
|
|
122
|
-
'DMfSDwvZ',
|
|
123
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
124
|
-
'CMvHC29U',
|
|
125
|
-
'AgfZtw9Yzq',
|
|
126
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
127
|
-
'C2LNBMfS',
|
|
128
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
129
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
130
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
131
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
132
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
133
|
-
'ls1Zzxj2zxiTDxjS',
|
|
134
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
135
|
-
'Dg9KBW',
|
|
136
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
137
|
-
'iYmJienOyw5UzwXZ',
|
|
138
|
-
'CMvHzeHPC3rVCNK',
|
|
139
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
140
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
141
|
-
'DgvZDa',
|
|
142
|
-
'ig1LC3nHz2u9',
|
|
143
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
144
|
-
'Bg9JywXLq29TCgfYzq',
|
|
145
|
-
'zxzLBNrtzxe',
|
|
31
|
+
import _0x24ec42 from 'node:path';
|
|
32
|
+
function _0x42c5() {
|
|
33
|
+
const _0x1f564b = [
|
|
34
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
35
|
+
'zMLSzw5HBwu',
|
|
36
|
+
'ig1ZzZ0',
|
|
37
|
+
'AhvTyw5Z',
|
|
38
|
+
'C3rYAw5NAwz5',
|
|
39
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
40
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
41
|
+
'DxrMoa',
|
|
42
|
+
'CgfYDgLJAxbHBNq',
|
|
43
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
44
|
+
'y2HLy2TnzxnZywDLCW',
|
|
45
|
+
'lsba',
|
|
46
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
146
47
|
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
147
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
148
|
-
'BgLZDf90yxnRCW',
|
|
149
|
-
'C2vX',
|
|
150
|
-
'DgfZA19Pza',
|
|
151
|
-
'zxHWAxjLC0f0',
|
|
152
|
-
'C2L6zq',
|
|
153
48
|
'ChjVDg9JB2W',
|
|
154
|
-
'
|
|
155
|
-
'
|
|
49
|
+
'BwvZC2fNzv9Pzhm',
|
|
50
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
156
51
|
'y2HHBM5LBhm',
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'AM9PBG',
|
|
167
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
168
|
-
'DgfYz2v0zwruyxnR',
|
|
169
|
-
'BwvKAxvT',
|
|
170
|
-
'y2HLy2TnzxnZywDLCW',
|
|
171
|
-
'DgHYzwfKvgfYz2v0',
|
|
172
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
173
|
-
'ndm3ntu4BKX3uwTJ',
|
|
174
|
-
'BMfTzq',
|
|
175
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
176
|
-
'xsba',
|
|
177
|
-
'y3jLyxrLx3rHC2TZ',
|
|
178
|
-
'zM9Yy2vszwzYzxnO',
|
|
179
|
-
'Ahr0Chm6',
|
|
180
|
-
'C2nOzwr1BgvKrM9Y',
|
|
181
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
52
|
+
'y29UBMvJDa',
|
|
53
|
+
'w3nLCt0',
|
|
54
|
+
'zgfLBw9UqxbPs2v5',
|
|
55
|
+
'ywDLBNrjza',
|
|
56
|
+
'CMvHzeHPC3rVCNK',
|
|
57
|
+
'l2HPC3rVCNK/',
|
|
58
|
+
'iYmJienOyw5UzwXZ',
|
|
59
|
+
'DMLZAwjPBgL0Eq',
|
|
60
|
+
'Aw5JBhvKzxm',
|
|
182
61
|
'ywDLBNq',
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
62
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
63
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
64
|
+
'C3rHDhvZ',
|
|
65
|
+
'lMrZy29Yza',
|
|
66
|
+
'l3rHC2TZpW',
|
|
67
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
68
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
69
|
+
'z2v0rgf0zq',
|
|
70
|
+
'C2vX',
|
|
71
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
72
|
+
'CNvUswq',
|
|
73
|
+
'z2v0sg91CNm',
|
|
74
|
+
'y29UDgvUDfr5Cgu',
|
|
75
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
76
|
+
'ywz0zxi',
|
|
189
77
|
'BgLZDf9Zzxj2zxi',
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'Dg9VBa',
|
|
193
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
194
|
-
'ndK1ntm0BMrRseTf',
|
|
195
|
-
'igLUia',
|
|
196
|
-
'y2HHBM5LBe5HBwu',
|
|
197
|
-
'yM9KEvrLEhq',
|
|
78
|
+
'yxjYyxK',
|
|
79
|
+
'zgLNzxn0',
|
|
198
80
|
'AhvTyw4',
|
|
199
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
200
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
201
|
-
'Aw5KzxHpzG',
|
|
202
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
203
|
-
'y3vYC29Y',
|
|
204
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
205
|
-
'Bwf0y2Hoyw1L',
|
|
206
|
-
'zgvZDhjVEwvK',
|
|
207
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
208
|
-
'zNjVBq',
|
|
209
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
210
81
|
'vgfZAYa',
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'yMvMB3jL',
|
|
229
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
230
|
-
'ChvIBgLJ',
|
|
231
|
-
'DgHYzwfKu2HVCNrjza',
|
|
232
|
-
'ihr5Cgu9ywDLBNq',
|
|
233
|
-
'6k+35Rgcia',
|
|
234
|
-
'AxngAw5PDgu',
|
|
235
|
-
'y2XHAw1uyxnRCW',
|
|
236
|
-
'lMrZy29Yza',
|
|
237
|
-
'mZGZmZm2yMfcu2T5',
|
|
238
|
-
'Bwf4',
|
|
82
|
+
'Dw5JBgfPBv90yxnR',
|
|
83
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
84
|
+
'ndi3wNnwC3zn',
|
|
85
|
+
'zMLSzv9WyxrO',
|
|
86
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
87
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
88
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
89
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
90
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
91
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
92
|
+
'D3nZoG',
|
|
93
|
+
'AwrSzq',
|
|
94
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
95
|
+
'iYmJieH1BwfUCW',
|
|
96
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
97
|
+
'DgL0Bgu',
|
|
98
|
+
'DMLLD19MAwXL',
|
|
239
99
|
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
246
|
-
'
|
|
247
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
248
|
-
'DxbKyxrL',
|
|
249
|
-
'ls1ZzxnZAw9UlwLK',
|
|
250
|
-
'y29UDgvUDc10ExbL',
|
|
251
|
-
'y2HHBM5LBeLK',
|
|
252
|
-
'C2HHmJu2',
|
|
253
|
-
'D3m6',
|
|
254
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
255
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
256
|
-
'zMfSC2u',
|
|
100
|
+
'B3b0Aw9UywW',
|
|
101
|
+
'iYmGu2vYDMvYoIa',
|
|
102
|
+
'DgfZA3m',
|
|
103
|
+
'DhjPBq',
|
|
104
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
105
|
+
'z2v0twLUDxrLCW',
|
|
106
|
+
'z2v0rNvSBfLLyxi',
|
|
257
107
|
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'zMLSDgvY',
|
|
264
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
265
|
-
'C2XPy2u',
|
|
266
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
267
|
-
'ywDNCMvNyxrLswrZ',
|
|
268
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
269
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
270
|
-
'Dg9ju09tDhjPBMC',
|
|
271
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
272
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
273
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
274
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
275
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
276
|
-
'C2L6zuj5DgvZ',
|
|
277
|
-
'ihn0yxr1CZ0',
|
|
278
|
-
'DhLWzq',
|
|
279
|
-
'yxnPzgu',
|
|
108
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
109
|
+
'AgfZtw9Yzq',
|
|
110
|
+
'C3vIDgfZA051BwjLCG',
|
|
111
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
112
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
280
113
|
'l3jLy2vPDMu',
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'AxnbyNnVBhv0zq',
|
|
114
|
+
'ig1LC3nHz2vZkqOk',
|
|
115
|
+
'AxngAw5PDgu',
|
|
116
|
+
'CMvXDwvZDfvYBa',
|
|
117
|
+
'y2HHBM5LBe5HBwu',
|
|
118
|
+
'lsaJ',
|
|
119
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
120
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
121
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
122
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
123
|
+
'ChvZAa',
|
|
124
|
+
'DgfZAY0',
|
|
125
|
+
'zgvZy3jPChrPB24',
|
|
294
126
|
'v29YA2vYici',
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
312
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
313
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
314
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
315
|
-
'BwfW',
|
|
316
|
-
'C2v0',
|
|
317
|
-
'zMLUza',
|
|
318
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
127
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
128
|
+
'mtCYodHrAxPtDNe',
|
|
129
|
+
'C2LNBMfS',
|
|
130
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
131
|
+
'zM9Yy2vszwzYzxnO',
|
|
132
|
+
'DMfSDwu',
|
|
133
|
+
'AM9PBG',
|
|
134
|
+
'DgHYzwfKtNvTyMvY',
|
|
135
|
+
'zxH0BMfTzq',
|
|
136
|
+
'Dgv4Dc9JC3y',
|
|
137
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
138
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
139
|
+
'C2vYDMvYvxjS',
|
|
140
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
141
|
+
'ihr5Cgu9ywDLBNq',
|
|
142
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
319
143
|
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
144
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
145
|
+
'zgvSzxrL',
|
|
146
|
+
'C2vZC2LVBKLK',
|
|
147
|
+
'CMvHC29U',
|
|
148
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
149
|
+
'y2XPzw50',
|
|
150
|
+
'C29Tzq',
|
|
151
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
323
152
|
'l3rHC2TZl2nSywLT',
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'y2HPBgrYzw5eB25L',
|
|
153
|
+
'CgfYDgLJAxbHBNrjza',
|
|
154
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
155
|
+
'Dw5RBM93BG',
|
|
156
|
+
'C3bSAxq',
|
|
157
|
+
'mc4WlJa',
|
|
330
158
|
'AxnjBNrLz2vY',
|
|
331
|
-
'
|
|
159
|
+
'Ahr0CdO',
|
|
160
|
+
'BwvZC2fNzuLK',
|
|
161
|
+
'Dw5JBgfPBvrHC2S',
|
|
162
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
163
|
+
'mJKWmdi1AvjwwhfT',
|
|
164
|
+
'zgvZDhjVEwvK',
|
|
165
|
+
'Aw1Hz2uVz2LM',
|
|
166
|
+
'y3vYC29Y',
|
|
167
|
+
'DgHYzwfK',
|
|
332
168
|
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
333
|
-
'
|
|
334
|
-
'
|
|
169
|
+
'Bwf4',
|
|
170
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
171
|
+
'zgvZy3jPyMu',
|
|
172
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
173
|
+
'ANnVBG',
|
|
174
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
175
|
+
'DxbSB2fKx2zPBgu',
|
|
335
176
|
'z2v0',
|
|
336
|
-
'
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
177
|
+
'C29YDa',
|
|
178
|
+
'BMfTzq',
|
|
179
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
180
|
+
'ignSywLTzwq',
|
|
181
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
182
|
+
'Cgf5Bg9HzePZB24',
|
|
183
|
+
'CMvZDwX0sNnVBG',
|
|
184
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
185
|
+
'BNvTyMvY',
|
|
186
|
+
'CM9VDe1LC3nHz2vjza',
|
|
187
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
188
|
+
'yxv0BZO',
|
|
189
|
+
'l3n0yxj0',
|
|
190
|
+
'l2nVBNrLBNq',
|
|
191
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
192
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
193
|
+
'kgXLz2fJEsK',
|
|
194
|
+
'igzHAwXLzdOG',
|
|
195
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
196
|
+
'Aw1Hz2uVCg5N',
|
|
197
|
+
'yxr0ywnOBwvUDhm',
|
|
198
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
199
|
+
'BM93',
|
|
200
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
201
|
+
'mtGXofLXtgzprG',
|
|
202
|
+
'AxnbyNnVBhv0zq',
|
|
203
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
204
|
+
'BgvUz3rO',
|
|
205
|
+
'C3rHCNrZv2L0Aa',
|
|
206
|
+
'zxzLBNrtzxe',
|
|
207
|
+
'C2v0',
|
|
208
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
209
|
+
'C2vUzf9TzxnZywDL',
|
|
210
|
+
'igrVBMuP',
|
|
211
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
212
|
+
'lcbWCMv2Awv3pq',
|
|
213
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
214
|
+
'Aw5FCMv2Awv3',
|
|
215
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
216
|
+
'yxjYyxLcDwzMzxi',
|
|
217
|
+
'BwvTyMvY',
|
|
218
|
+
'sfruuca',
|
|
219
|
+
'C2vUzgvYtMfTzq',
|
|
220
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
221
|
+
'z2v0vgLTzq',
|
|
222
|
+
'zMv0y2HjBxbS',
|
|
223
|
+
'CMvWBgfJzq',
|
|
224
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
225
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
226
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
343
227
|
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
344
|
-
'
|
|
228
|
+
'y2XHAw0GzMfPBgvK',
|
|
229
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
230
|
+
'yMvMB3jL',
|
|
231
|
+
'y2HPBgrYzw5eB25L',
|
|
232
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
233
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
234
|
+
'Dgv4Da',
|
|
235
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
236
|
+
'Dgv4Dc9WBgfPBG',
|
|
237
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
238
|
+
'DgHYzwfKu2HVCNrjza',
|
|
239
|
+
'ktSGz290ignOyw5UzwW9',
|
|
240
|
+
'EM9K',
|
|
241
|
+
'D29YA2vYtw9Kzq',
|
|
242
|
+
'ywz0zxjtzxe',
|
|
243
|
+
'DgfZAW',
|
|
244
|
+
'CgfYC2vjBNq',
|
|
245
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
345
246
|
'C3rHCNrLza',
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
247
|
+
'C3rYAw5N',
|
|
248
|
+
'DgfZA051BwjLCG',
|
|
249
|
+
'igTPBMq9',
|
|
250
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
251
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
252
|
+
'C3vJy2vZCW',
|
|
253
|
+
'D3m6',
|
|
254
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
255
|
+
'AxngAwXL',
|
|
256
|
+
'zMfSC2u',
|
|
350
257
|
'ywjVCNq',
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
363
|
-
'l3rHC2TZpW',
|
|
364
|
-
'ig1LC3nHz2vZkqOk',
|
|
365
|
-
'igrVBMuP',
|
|
258
|
+
'icHPzdO',
|
|
259
|
+
'CxvLDwvK',
|
|
260
|
+
'iIbUB3qGzM91BMq',
|
|
261
|
+
'A2LUza',
|
|
262
|
+
'nJm3nJy1vwnXAfrf',
|
|
263
|
+
'zNjVBq',
|
|
264
|
+
'BgLZDf90yxnRCW',
|
|
265
|
+
'y2HHBM5LBeLK',
|
|
266
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
267
|
+
'DhLWzq',
|
|
268
|
+
'cGOTls0G',
|
|
366
269
|
'zg9Uzq',
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
371
|
-
'
|
|
372
|
-
'
|
|
270
|
+
'DxjNzw50',
|
|
271
|
+
'y3jLyxrLzef0',
|
|
272
|
+
'AhjLzG',
|
|
273
|
+
'kg5VBMuP',
|
|
274
|
+
'DgfYz2v0zwruyxnR',
|
|
275
|
+
'C2L6zq',
|
|
276
|
+
'zgLZCg9ZAxrPB24',
|
|
277
|
+
'Axnoyu4',
|
|
278
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
279
|
+
'Aw5FChjVz3jLC3m',
|
|
280
|
+
'ls1Zzxj2zxiTDxjS',
|
|
281
|
+
'y2HHDa',
|
|
282
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
283
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
284
|
+
'y2XHAw1uyxnRCW',
|
|
285
|
+
'C2vYDMvY',
|
|
286
|
+
'DgfZA19Pza',
|
|
287
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
288
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
289
|
+
'zg06',
|
|
290
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
291
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
292
|
+
'mZGXnM94uKPsDq',
|
|
373
293
|
'l3DVCMTLCNmVCgfYAW',
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
294
|
+
'y29UDgvUDc10ExbL',
|
|
295
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
296
|
+
'DgvZDa',
|
|
297
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
298
|
+
'6k+35Rgcia',
|
|
299
|
+
'zgf0yq',
|
|
300
|
+
'ihrPBwu9',
|
|
379
301
|
'CMvHzf9OAxn0B3j5',
|
|
380
|
-
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
381
|
-
'BMv4Den1CNnVCG',
|
|
382
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
383
|
-
'DgfZA051BwjLCG',
|
|
384
|
-
'Ahr0CdO',
|
|
385
|
-
'lsaJ',
|
|
386
|
-
'Aw5JBhvKzxm',
|
|
387
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
388
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
389
|
-
'lIbnzxnZywDLieLeoIa',
|
|
390
|
-
'CNvUswq',
|
|
391
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
392
|
-
'z2v0rgf0zq',
|
|
393
302
|
'Aw1Hz2uVANbLzW',
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
303
|
+
'khvUA25VD24P',
|
|
304
|
+
'ls1Hz2vUDc1Pza',
|
|
305
|
+
'B2jQzwn0',
|
|
306
|
+
'l2zPBMLZAa',
|
|
307
|
+
'y2HHBM5LBa',
|
|
308
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
309
|
+
'DMfSDwvZ',
|
|
310
|
+
'yM9KEvrLEhq',
|
|
311
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
312
|
+
'y3jLyxrLx3rHC2TZ',
|
|
313
|
+
'Aw5KzxHpzG',
|
|
314
|
+
'zw51Bq',
|
|
315
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
316
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
317
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
318
|
+
'zg0T',
|
|
319
|
+
'Dg9KBW',
|
|
320
|
+
'BwLU',
|
|
321
|
+
'yM9KEu1HCMTKB3DU',
|
|
322
|
+
'mJi0nda1nKDgvKTzAG',
|
|
323
|
+
'ue9tva',
|
|
324
|
+
'D29YA2vYsgfUzg9MzG',
|
|
414
325
|
'DgfZA0LK',
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'
|
|
326
|
+
'zxHWAxjLC0f0',
|
|
327
|
+
'r0vu',
|
|
328
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
329
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
330
|
+
'yMfZzty0',
|
|
331
|
+
'BgLTAxq',
|
|
332
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
333
|
+
'C2vYDMvYtMfTzq',
|
|
334
|
+
'zMLSDgvY',
|
|
335
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
336
|
+
'C2vUze1LC3nHz2u',
|
|
337
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
418
338
|
'Dg9tDhjPBMC',
|
|
419
|
-
'
|
|
420
|
-
'
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'BNvTyMvY',
|
|
425
|
-
'CMvZDwX0CW',
|
|
426
|
-
'mte3otG5mtLtEMzgugq',
|
|
427
|
-
'ywrK',
|
|
428
|
-
'C3vIDgfZA051BwjLCG',
|
|
429
|
-
'A2LUza',
|
|
430
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
431
|
-
'z2v0tw9UDgG',
|
|
432
|
-
'Bg93',
|
|
339
|
+
'uefuq0G',
|
|
340
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
341
|
+
'xsba',
|
|
342
|
+
'Dg9VBa',
|
|
343
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
433
344
|
'BwvZC2fNzq',
|
|
434
|
-
'
|
|
435
|
-
'
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
439
|
-
'
|
|
440
|
-
'
|
|
441
|
-
'
|
|
442
|
-
'
|
|
345
|
+
'igLUia',
|
|
346
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
347
|
+
'BwfW',
|
|
348
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
349
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
350
|
+
'BgLZDfrHC2TZ',
|
|
351
|
+
'Dg9gAxHLza',
|
|
352
|
+
'Bwv0yq',
|
|
353
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
354
|
+
'zMLUza',
|
|
355
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
356
|
+
'yxr0ywnOBwvUDeLK',
|
|
357
|
+
'DgfYz2v0',
|
|
443
358
|
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'
|
|
449
|
-
'
|
|
450
|
-
'
|
|
451
|
-
'
|
|
452
|
-
'
|
|
453
|
-
'
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
'
|
|
458
|
-
'
|
|
459
|
-
'
|
|
359
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
360
|
+
'C3rVCe1HAw4',
|
|
361
|
+
'y2XHAw1FDgfZA3m',
|
|
362
|
+
'AgvHzgvYCW',
|
|
363
|
+
'w3rHCMDLDd0',
|
|
364
|
+
'C2L6zuj5DgvZ',
|
|
365
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
366
|
+
'ywjVCNrLza',
|
|
367
|
+
'y2f0y2G',
|
|
368
|
+
'ywrK',
|
|
369
|
+
'zw50CMLLCW',
|
|
370
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
371
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
372
|
+
'ls1ZzxnZAw9UlwLK',
|
|
373
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
374
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
375
|
+
'CMvZCg9UC2u',
|
|
376
|
+
'DxbSB2fKrMLSzq',
|
|
377
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
378
|
+
'nJK1ntmWAKzgBgPm',
|
|
379
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
380
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
381
|
+
'Bwf0y2Hoyw1L',
|
|
382
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
383
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
384
|
+
'BgLZDfnLCNzLCG',
|
|
385
|
+
'CgfYA193B3jRzxi',
|
|
460
386
|
'D29YA2vYCW',
|
|
461
|
-
'
|
|
387
|
+
'ig1LC3nHz2u9',
|
|
388
|
+
'ywDLBNrZ',
|
|
389
|
+
'Bg9JywXLq29TCgfYzq',
|
|
390
|
+
'C2HHmJu2',
|
|
391
|
+
'Dg9ju09tDhjPBMC',
|
|
392
|
+
'nZqYmJC2mNblBwzPBq',
|
|
393
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
394
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
395
|
+
'ihn0yxr1CZ0',
|
|
396
|
+
'zxjYB3i',
|
|
397
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
398
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
399
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
400
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
401
|
+
'BwvTyMvYCW',
|
|
402
|
+
'D29YA2vY',
|
|
403
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
462
404
|
'yxjNDG',
|
|
405
|
+
'BwvZC2fNzxm',
|
|
406
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
407
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
408
|
+
'DgHYzwfKswq',
|
|
409
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
410
|
+
'BMv4Den1CNnVCG',
|
|
463
411
|
'AgfZ',
|
|
464
|
-
'
|
|
465
|
-
'
|
|
466
|
-
'
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
471
|
-
'y2XHAw1FDgfZA3m',
|
|
472
|
-
'iYmJieH1BwfUCW',
|
|
473
|
-
'Aw1Hz2uVCg5N',
|
|
474
|
-
'khvUA25VD24P',
|
|
475
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
476
|
-
'C29Tzq',
|
|
477
|
-
'z2v0twLUDxrLCW',
|
|
478
|
-
'CMvXDwvZDfvYBa',
|
|
479
|
-
'CgfYDgLJAxbHBNq',
|
|
480
|
-
'DgfYz2v0',
|
|
481
|
-
'BwvZC2fNzuLK',
|
|
482
|
-
'DMLZAwjPBgL0Eq',
|
|
483
|
-
'lMjPBG',
|
|
484
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
485
|
-
'mZy5nJaZmefgBxfcsq',
|
|
412
|
+
'DgHYzwfKvgfYz2v0',
|
|
413
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
414
|
+
'l3vWBg9Hza',
|
|
415
|
+
'C2vUzgvYvhLWzq',
|
|
416
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
417
|
+
'v29YA2vYia',
|
|
486
418
|
'D29YA19RzxK',
|
|
487
|
-
'
|
|
488
|
-
'
|
|
489
|
-
'
|
|
490
|
-
'
|
|
491
|
-
'
|
|
492
|
-
'
|
|
493
|
-
'
|
|
494
|
-
'
|
|
495
|
-
'
|
|
496
|
-
'
|
|
497
|
-
'
|
|
498
|
-
'
|
|
499
|
-
'
|
|
500
|
-
'
|
|
419
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
420
|
+
'lMjPBG',
|
|
421
|
+
'CgfYC2u',
|
|
422
|
+
'y2fJAgveAxi',
|
|
423
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
424
|
+
'BwvKAxvT',
|
|
425
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
426
|
+
'Dg9mB3DLCKnHC2u',
|
|
427
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
428
|
+
'C2XPy2u',
|
|
429
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
430
|
+
'y29UDgvUDa',
|
|
431
|
+
'ChvIBgLJ',
|
|
432
|
+
'Agv4',
|
|
433
|
+
'l3nLCNzLCG'
|
|
501
434
|
];
|
|
502
|
-
|
|
503
|
-
return
|
|
435
|
+
_0x42c5 = function () {
|
|
436
|
+
return _0x1f564b;
|
|
437
|
+
};
|
|
438
|
+
return _0x42c5();
|
|
439
|
+
}
|
|
440
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
441
|
+
'.csv': _0x3cf5af(0x149),
|
|
442
|
+
'.gif': _0x3cf5af(0x166),
|
|
443
|
+
'.jpeg': _0x3cf5af(0x1ef),
|
|
444
|
+
'.jpg': 'image/jpeg',
|
|
445
|
+
'.json': _0x3cf5af(0x14a),
|
|
446
|
+
'.md': 'text/markdown',
|
|
447
|
+
'.pdf': 'application/pdf',
|
|
448
|
+
'.png': _0x3cf5af(0x185),
|
|
449
|
+
'.svg': _0x3cf5af(0x234),
|
|
450
|
+
'.txt': _0x3cf5af(0x1ad),
|
|
451
|
+
'.webp': 'image/webp',
|
|
452
|
+
'.xml': _0x3cf5af(0x212),
|
|
453
|
+
'.zip': _0x3cf5af(0x158)
|
|
454
|
+
};
|
|
455
|
+
function guessContentType(_0x3e8c3e) {
|
|
456
|
+
const _0x3783a3 = {
|
|
457
|
+
_0x1685f6: 0x26b,
|
|
458
|
+
_0x9ad01d: 0x16d
|
|
459
|
+
}, _0x5c456b = _0x3cf5af;
|
|
460
|
+
return MIME_BY_EXTENSION[_0x24ec42[_0x5c456b(0x148)](_0x3e8c3e)[_0x5c456b(_0x3783a3._0x1685f6)]()] ?? _0x5c456b(_0x3783a3._0x9ad01d);
|
|
461
|
+
}
|
|
462
|
+
function safeFilename(_0x365ad1) {
|
|
463
|
+
return _0x365ad1['replace'](/[\\/]/g, '-');
|
|
464
|
+
}
|
|
465
|
+
function extensionFor(_0x50ccce) {
|
|
466
|
+
const _0x16f56e = { _0x574ec2: 0x232 }, _0x401824 = _0x3cf5af, _0x3ca6be = Object[_0x401824(_0x16f56e._0x574ec2)](MIME_BY_EXTENSION)[_0x401824(0x223)](([, _0x11213b]) => _0x11213b === _0x50ccce);
|
|
467
|
+
return _0x3ca6be?.[0x0] ?? _0x401824(0x265);
|
|
468
|
+
}
|
|
469
|
+
async function prepareUploadFile(_0x3ab3c7, _0x55cecd = {}) {
|
|
470
|
+
const _0x35e743 = {
|
|
471
|
+
_0x35683c: 0x18b,
|
|
472
|
+
_0x29f98e: 0x230,
|
|
473
|
+
_0x1cc4c5: 0x1ae,
|
|
474
|
+
_0x201818: 0x1d4,
|
|
475
|
+
_0x10e790: 0x20b
|
|
476
|
+
}, _0x4b8a1a = _0x3cf5af;
|
|
477
|
+
if (!_0x24ec42[_0x4b8a1a(_0x35e743._0x35683c)](_0x3ab3c7))
|
|
478
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
479
|
+
const _0x3afd7a = await stat(_0x3ab3c7)[_0x4b8a1a(_0x35e743._0x29f98e)](() => null);
|
|
480
|
+
if (!_0x3afd7a || !_0x3afd7a[_0x4b8a1a(0x1c0)]())
|
|
481
|
+
throw new Error(_0x4b8a1a(_0x35e743._0x1cc4c5) + _0x3ab3c7);
|
|
482
|
+
const _0x127092 = _0x55cecd[_0x4b8a1a(0x23c)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
483
|
+
if (_0x3afd7a[_0x4b8a1a(_0x35e743._0x201818)] > _0x127092)
|
|
484
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x3afd7a['size']);
|
|
485
|
+
const _0x1c184d = await readFile(_0x3ab3c7), _0x20b12c = _0x24ec42['basename'](_0x3ab3c7);
|
|
486
|
+
return {
|
|
487
|
+
'contentBase64': _0x1c184d['toString'](_0x4b8a1a(_0x35e743._0x10e790)),
|
|
488
|
+
'contentType': guessContentType(_0x20b12c),
|
|
489
|
+
'filename': _0x20b12c,
|
|
490
|
+
'sizeBytes': _0x3afd7a[_0x4b8a1a(_0x35e743._0x201818)]
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
function createAttachmentCache(_0x191a9b = {}) {
|
|
494
|
+
const _0x5b9be5 = {
|
|
495
|
+
_0x1ad078: 0x267,
|
|
496
|
+
_0x2a7b52: 0x292,
|
|
497
|
+
_0x5a7320: 0x186
|
|
498
|
+
}, _0x4a7b3e = {
|
|
499
|
+
_0x5d2ca0: 0x108,
|
|
500
|
+
_0x2fd37f: 0x128,
|
|
501
|
+
_0x1a3b20: 0x108
|
|
502
|
+
}, _0x1a2ed3 = { _0x4faa71: 0x146 }, _0x2461d6 = _0x3cf5af, _0x33ea2f = _0x191a9b[_0x2461d6(_0x5b9be5._0x1ad078)] ?? _0x24ec42[_0x2461d6(0x146)](homedir(), _0x2461d6(_0x5b9be5._0x2a7b52), _0x2461d6(_0x5b9be5._0x5a7320));
|
|
503
|
+
return {
|
|
504
|
+
'cacheDir': _0x33ea2f,
|
|
505
|
+
async 'findCachedPath'(_0x58efca) {
|
|
506
|
+
const _0x15859f = _0x2461d6;
|
|
507
|
+
await mkdir(_0x33ea2f, { 'recursive': !![] });
|
|
508
|
+
const _0x565bd5 = await readdir(_0x33ea2f), _0x6f630c = _0x565bd5[_0x15859f(0x223)](_0x57a1db => _0x57a1db[_0x15859f(0x18e)](_0x58efca + '-') || _0x57a1db[_0x15859f(0x18e)](_0x58efca));
|
|
509
|
+
return _0x6f630c ? _0x24ec42[_0x15859f(_0x1a2ed3._0x4faa71)](_0x33ea2f, _0x6f630c) : null;
|
|
510
|
+
},
|
|
511
|
+
async 'save'(_0x2ff6b7) {
|
|
512
|
+
const _0xb494aa = _0x2461d6;
|
|
513
|
+
await mkdir(_0x33ea2f, { 'recursive': !![] });
|
|
514
|
+
const _0x35bef9 = _0x2ff6b7[_0xb494aa(_0x4a7b3e._0x5d2ca0)]?.[_0xb494aa(_0x4a7b3e._0x2fd37f)]() ? safeFilename(_0x2ff6b7[_0xb494aa(_0x4a7b3e._0x1a3b20)]) : '' + _0x2ff6b7[_0xb494aa(0x225)] + extensionFor(_0x2ff6b7[_0xb494aa(0x10b)]), _0x3bcb14 = _0x24ec42[_0xb494aa(0x146)](_0x33ea2f, _0x2ff6b7[_0xb494aa(0x225)] + '-' + _0x35bef9);
|
|
515
|
+
return await writeFile(_0x3bcb14, _0x2ff6b7[_0xb494aa(0x1ec)]), _0x3bcb14;
|
|
516
|
+
}
|
|
504
517
|
};
|
|
505
|
-
|
|
518
|
+
}
|
|
519
|
+
function _0x7e16(_0x2defe2, _0x2f2cf2) {
|
|
520
|
+
_0x2defe2 = _0x2defe2 - 0x106;
|
|
521
|
+
const _0x42c546 = _0x42c5();
|
|
522
|
+
let _0x7e1602 = _0x42c546[_0x2defe2];
|
|
523
|
+
if (_0x7e16['dMudok'] === undefined) {
|
|
524
|
+
var _0x3a16fe = function (_0x1982cc) {
|
|
525
|
+
const _0x20ce97 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
526
|
+
let _0x24ec42 = '', _0x3e8c3e = '';
|
|
527
|
+
for (let _0x365ad1 = 0x0, _0x50ccce, _0x3ca6be, _0x11213b = 0x0; _0x3ca6be = _0x1982cc['charAt'](_0x11213b++); ~_0x3ca6be && (_0x50ccce = _0x365ad1 % 0x4 ? _0x50ccce * 0x40 + _0x3ca6be : _0x3ca6be, _0x365ad1++ % 0x4) ? _0x24ec42 += String['fromCharCode'](0xff & _0x50ccce >> (-0x2 * _0x365ad1 & 0x6)) : 0x0) {
|
|
528
|
+
_0x3ca6be = _0x20ce97['indexOf'](_0x3ca6be);
|
|
529
|
+
}
|
|
530
|
+
for (let _0x3ab3c7 = 0x0, _0x55cecd = _0x24ec42['length']; _0x3ab3c7 < _0x55cecd; _0x3ab3c7++) {
|
|
531
|
+
_0x3e8c3e += '%' + ('00' + _0x24ec42['charCodeAt'](_0x3ab3c7)['toString'](0x10))['slice'](-0x2);
|
|
532
|
+
}
|
|
533
|
+
return decodeURIComponent(_0x3e8c3e);
|
|
534
|
+
};
|
|
535
|
+
_0x7e16['YfdngP'] = _0x3a16fe, _0x7e16['JPTxrN'] = {}, _0x7e16['dMudok'] = !![];
|
|
536
|
+
}
|
|
537
|
+
const _0x417066 = _0x42c546[0x0], _0x3f7716 = _0x2defe2 + _0x417066, _0x128511 = _0x7e16['JPTxrN'][_0x3f7716];
|
|
538
|
+
return !_0x128511 ? (_0x7e1602 = _0x7e16['YfdngP'](_0x7e1602), _0x7e16['JPTxrN'][_0x3f7716] = _0x7e1602) : _0x7e1602 = _0x128511, _0x7e1602;
|
|
506
539
|
}
|
|
507
540
|
import {
|
|
508
541
|
createHash,
|
|
509
542
|
randomUUID
|
|
510
543
|
} from 'node:crypto';
|
|
511
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
512
|
-
function ensureSegment(
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
_0x519b17: 0x2b9
|
|
516
|
-
}, _0x25f3ee = _0x28aee3, _0x499e94 = _0x2861f1[_0x25f3ee(_0x23d0d5._0x5d236e)]();
|
|
517
|
-
if (!_0x499e94 || _0x499e94[_0x25f3ee(_0x23d0d5._0x519b17)](':'))
|
|
544
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x3cf5af(0x143);
|
|
545
|
+
function ensureSegment(_0x4beff1) {
|
|
546
|
+
const _0x4f9ab6 = { _0x6c27f8: 0x128 }, _0x37dbe4 = _0x3cf5af, _0x175cc6 = _0x4beff1[_0x37dbe4(_0x4f9ab6._0x6c27f8)]();
|
|
547
|
+
if (!_0x175cc6 || _0x175cc6[_0x37dbe4(0x28d)](':'))
|
|
518
548
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
519
|
-
return
|
|
549
|
+
return _0x175cc6;
|
|
520
550
|
}
|
|
521
|
-
function parseThreadParts(
|
|
522
|
-
const
|
|
523
|
-
|
|
551
|
+
function parseThreadParts(_0x12c378) {
|
|
552
|
+
const _0x1982d8 = {
|
|
553
|
+
_0x4cbe00: 0x15d,
|
|
554
|
+
_0x3a50d3: 0x18d
|
|
555
|
+
}, _0x512f50 = _0x3cf5af, _0x116a44 = _0x12c378[_0x512f50(_0x1982d8._0x4cbe00)](':');
|
|
556
|
+
if (_0x116a44[_0x512f50(_0x1982d8._0x3a50d3)] < 0x1 || _0x116a44['length'] > 0x2)
|
|
524
557
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
525
558
|
return {
|
|
526
|
-
'channelName': ensureSegment(
|
|
527
|
-
'threadShortId':
|
|
559
|
+
'channelName': ensureSegment(_0x116a44[0x0] ?? ''),
|
|
560
|
+
'threadShortId': _0x116a44[0x1] ? ensureSegment(_0x116a44[0x1]) : null
|
|
528
561
|
};
|
|
529
562
|
}
|
|
530
|
-
function parseTarget(
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
563
|
+
function parseTarget(_0x1a378f) {
|
|
564
|
+
const _0x113455 = {
|
|
565
|
+
_0x2cf7eb: 0x128,
|
|
566
|
+
_0x7c427: 0x18e,
|
|
567
|
+
_0x447998: 0x1af,
|
|
568
|
+
_0x4fbf72: 0x1f4,
|
|
569
|
+
_0xa269f2: 0x136,
|
|
570
|
+
_0x406f87: 0x168,
|
|
571
|
+
_0x103007: 0x1e2,
|
|
572
|
+
_0x22cfba: 0x1ff,
|
|
573
|
+
_0x4d83ac: 0x136,
|
|
574
|
+
_0x31382c: 0x136
|
|
575
|
+
}, _0x4ec9da = _0x3cf5af, _0x213f7f = _0x1a378f[_0x4ec9da(_0x113455._0x2cf7eb)]();
|
|
576
|
+
if (!_0x213f7f)
|
|
542
577
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
543
|
-
if (
|
|
544
|
-
const
|
|
545
|
-
if (!
|
|
578
|
+
if (_0x213f7f[_0x4ec9da(_0x113455._0x7c427)]('#')) {
|
|
579
|
+
const _0x49e4a3 = parseThreadParts(_0x213f7f['slice'](0x1)), _0x4771c5 = '#' + _0x49e4a3[_0x4ec9da(0x136)];
|
|
580
|
+
if (!_0x49e4a3[_0x4ec9da(_0x113455._0x447998)])
|
|
546
581
|
return {
|
|
547
|
-
'channelName':
|
|
548
|
-
'channelTarget':
|
|
549
|
-
'kind':
|
|
550
|
-
'target':
|
|
582
|
+
'channelName': _0x49e4a3[_0x4ec9da(0x136)],
|
|
583
|
+
'channelTarget': _0x4771c5,
|
|
584
|
+
'kind': _0x4ec9da(_0x113455._0x4fbf72),
|
|
585
|
+
'target': _0x4771c5
|
|
551
586
|
};
|
|
552
587
|
return {
|
|
553
|
-
'channelName':
|
|
554
|
-
'channelTarget':
|
|
555
|
-
'kind':
|
|
556
|
-
'target':
|
|
557
|
-
'threadShortId':
|
|
588
|
+
'channelName': _0x49e4a3[_0x4ec9da(_0x113455._0xa269f2)],
|
|
589
|
+
'channelTarget': _0x4771c5,
|
|
590
|
+
'kind': _0x4ec9da(_0x113455._0x406f87),
|
|
591
|
+
'target': _0x4771c5 + ':' + _0x49e4a3[_0x4ec9da(0x1af)],
|
|
592
|
+
'threadShortId': _0x49e4a3[_0x4ec9da(0x1af)]
|
|
558
593
|
};
|
|
559
594
|
}
|
|
560
|
-
if (
|
|
561
|
-
const
|
|
562
|
-
if (!
|
|
595
|
+
if (_0x213f7f['startsWith'](_0x4ec9da(_0x113455._0x103007))) {
|
|
596
|
+
const _0x5e01b0 = parseThreadParts(_0x213f7f[_0x4ec9da(0x26d)](0x3));
|
|
597
|
+
if (!_0x5e01b0['channelName'][_0x4ec9da(0x18e)](_0x4ec9da(_0x113455._0x22cfba)))
|
|
563
598
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
564
|
-
const
|
|
565
|
-
if (!
|
|
599
|
+
const _0x5aaa06 = _0x4ec9da(_0x113455._0x103007) + _0x5e01b0[_0x4ec9da(_0x113455._0xa269f2)];
|
|
600
|
+
if (!_0x5e01b0['threadShortId'])
|
|
566
601
|
return {
|
|
567
|
-
'channelName':
|
|
568
|
-
'channelTarget':
|
|
569
|
-
'kind':
|
|
570
|
-
'target':
|
|
602
|
+
'channelName': _0x5e01b0[_0x4ec9da(_0x113455._0x4d83ac)],
|
|
603
|
+
'channelTarget': _0x5aaa06,
|
|
604
|
+
'kind': _0x4ec9da(_0x113455._0x4fbf72),
|
|
605
|
+
'target': _0x5aaa06
|
|
571
606
|
};
|
|
572
607
|
return {
|
|
573
|
-
'channelName':
|
|
574
|
-
'channelTarget':
|
|
608
|
+
'channelName': _0x5e01b0[_0x4ec9da(_0x113455._0x31382c)],
|
|
609
|
+
'channelTarget': _0x5aaa06,
|
|
575
610
|
'kind': 'thread',
|
|
576
|
-
'target':
|
|
577
|
-
'threadShortId':
|
|
611
|
+
'target': _0x5aaa06 + ':' + _0x5e01b0[_0x4ec9da(_0x113455._0x447998)],
|
|
612
|
+
'threadShortId': _0x5e01b0[_0x4ec9da(0x1af)]
|
|
578
613
|
};
|
|
579
614
|
}
|
|
580
615
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
581
616
|
}
|
|
582
|
-
function asErrorMessage(
|
|
583
|
-
const
|
|
584
|
-
if (typeof
|
|
585
|
-
return
|
|
586
|
-
return
|
|
617
|
+
function asErrorMessage(_0xc6bdf8, _0x3fee3b) {
|
|
618
|
+
const _0x2351b2 = { _0x12806e: 0x128 }, _0x2767e5 = _0x3cf5af;
|
|
619
|
+
if (typeof _0xc6bdf8 === _0x2767e5(0x1b8) && _0xc6bdf8[_0x2767e5(_0x2351b2._0x12806e)]())
|
|
620
|
+
return _0xc6bdf8;
|
|
621
|
+
return _0x3fee3b;
|
|
587
622
|
}
|
|
588
|
-
function asRecord(
|
|
589
|
-
|
|
623
|
+
function asRecord(_0x2dfd11) {
|
|
624
|
+
const _0x443978 = _0x3cf5af;
|
|
625
|
+
return typeof _0x2dfd11 === _0x443978(0x1f2) && _0x2dfd11 !== null ? _0x2dfd11 : {};
|
|
590
626
|
}
|
|
591
|
-
function stableStringify(
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
if (
|
|
599
|
-
return
|
|
600
|
-
|
|
601
|
-
|
|
627
|
+
function stableStringify(_0x51e55a) {
|
|
628
|
+
const _0x78e015 = {
|
|
629
|
+
_0x367efd: 0x232,
|
|
630
|
+
_0x1d99eb: 0x20f,
|
|
631
|
+
_0x55f69e: 0x172,
|
|
632
|
+
_0x167f8e: 0x146
|
|
633
|
+
}, _0x2c6b33 = _0x3cf5af;
|
|
634
|
+
if (_0x51e55a === null || typeof _0x51e55a !== _0x2c6b33(0x1f2))
|
|
635
|
+
return JSON[_0x2c6b33(0x277)](_0x51e55a);
|
|
636
|
+
if (Array['isArray'](_0x51e55a))
|
|
637
|
+
return '[' + _0x51e55a['map'](_0x412a0c => stableStringify(_0x412a0c))['join'](',') + ']';
|
|
638
|
+
const _0x3d83a6 = Object[_0x2c6b33(_0x78e015._0x367efd)](_0x51e55a)[_0x2c6b33(_0x78e015._0x1d99eb)](([, _0x5e3317]) => _0x5e3317 !== void 0x0)[_0x2c6b33(_0x78e015._0x55f69e)](([_0x16ca27], [_0x953643]) => _0x16ca27[_0x2c6b33(0x246)](_0x953643))['map'](([_0x156b09, _0xf840f0]) => JSON[_0x2c6b33(0x277)](_0x156b09) + ':' + stableStringify(_0xf840f0));
|
|
639
|
+
return '{' + _0x3d83a6[_0x2c6b33(_0x78e015._0x167f8e)](',') + '}';
|
|
602
640
|
}
|
|
603
|
-
function createHeaders(
|
|
604
|
-
const
|
|
641
|
+
function createHeaders(_0x51d93d) {
|
|
642
|
+
const _0x1c4662 = _0x3cf5af;
|
|
605
643
|
return {
|
|
606
|
-
'Content-Type':
|
|
607
|
-
'x-daemon-api-key':
|
|
644
|
+
'Content-Type': _0x1c4662(0x14a),
|
|
645
|
+
'x-daemon-api-key': _0x51d93d
|
|
608
646
|
};
|
|
609
647
|
}
|
|
610
|
-
function toHttpBaseUrl(
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
},
|
|
616
|
-
if (
|
|
617
|
-
|
|
648
|
+
function toHttpBaseUrl(_0x5c7df9) {
|
|
649
|
+
const _0x3f5c80 = {
|
|
650
|
+
_0x421328: 0x1be,
|
|
651
|
+
_0x6c1457: 0x281,
|
|
652
|
+
_0x594bb2: 0x11d
|
|
653
|
+
}, _0x5931ae = _0x3cf5af, _0xab3725 = new URL(_0x5c7df9);
|
|
654
|
+
if (_0xab3725[_0x5931ae(0x281)] === _0x5931ae(_0x3f5c80._0x421328))
|
|
655
|
+
_0xab3725[_0x5931ae(_0x3f5c80._0x6c1457)] = _0x5931ae(0x160);
|
|
618
656
|
else
|
|
619
|
-
|
|
620
|
-
return
|
|
657
|
+
_0xab3725[_0x5931ae(_0x3f5c80._0x6c1457)] === _0x5931ae(_0x3f5c80._0x594bb2) && (_0xab3725['protocol'] = 'https:');
|
|
658
|
+
return _0xab3725['toString']()[_0x5931ae(0x1a0)](/\/$/, '');
|
|
621
659
|
}
|
|
622
|
-
function isMentionBoundary(
|
|
623
|
-
|
|
624
|
-
return !_0x21dc05 || /\s|[([{'",。!?、:;]/[_0x58cc2a(0x1c4)](_0x21dc05);
|
|
660
|
+
function isMentionBoundary(_0x2f0c01) {
|
|
661
|
+
return !_0x2f0c01 || /\s|[([{'",。!?、:;]/['test'](_0x2f0c01);
|
|
625
662
|
}
|
|
626
|
-
function isMentionTerminal(
|
|
627
|
-
|
|
663
|
+
function isMentionTerminal(_0x319925) {
|
|
664
|
+
const _0x55914f = _0x3cf5af;
|
|
665
|
+
return !_0x319925 || /\s|[)\]}'",。!?、:;,.!?]/[_0x55914f(0x1e9)](_0x319925);
|
|
628
666
|
}
|
|
629
|
-
function buildMatchableEntries(
|
|
630
|
-
const
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
667
|
+
function buildMatchableEntries(_0x22dfe6) {
|
|
668
|
+
const _0x3975ff = {
|
|
669
|
+
_0x3bb23d: 0x13c,
|
|
670
|
+
_0x4afffa: 0x173,
|
|
671
|
+
_0xfeef4d: 0x13c,
|
|
672
|
+
_0x2ca369: 0x240
|
|
673
|
+
}, _0x35b30d = _0x3cf5af, _0x343d93 = [];
|
|
674
|
+
for (const _0x18ae4a of [
|
|
675
|
+
..._0x22dfe6[_0x35b30d(0x245)],
|
|
676
|
+
..._0x22dfe6['humans']
|
|
637
677
|
]) {
|
|
638
|
-
|
|
639
|
-
'matchName':
|
|
640
|
-
'matchNameLower':
|
|
641
|
-
'participantId':
|
|
642
|
-
}),
|
|
643
|
-
'matchName':
|
|
644
|
-
'matchNameLower':
|
|
645
|
-
'participantId':
|
|
678
|
+
_0x343d93[_0x35b30d(_0x3975ff._0x3bb23d)]({
|
|
679
|
+
'matchName': _0x18ae4a[_0x35b30d(0x173)],
|
|
680
|
+
'matchNameLower': _0x18ae4a[_0x35b30d(_0x3975ff._0x4afffa)][_0x35b30d(0x240)](),
|
|
681
|
+
'participantId': _0x18ae4a['id']
|
|
682
|
+
}), _0x18ae4a['id'] !== _0x18ae4a['name'] && _0x343d93[_0x35b30d(_0x3975ff._0xfeef4d)]({
|
|
683
|
+
'matchName': _0x18ae4a['id'],
|
|
684
|
+
'matchNameLower': _0x18ae4a['id'][_0x35b30d(_0x3975ff._0x2ca369)](),
|
|
685
|
+
'participantId': _0x18ae4a['id']
|
|
646
686
|
});
|
|
647
687
|
}
|
|
648
|
-
return
|
|
688
|
+
return _0x343d93;
|
|
649
689
|
}
|
|
650
|
-
function extractMentionedParticipantIds(
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
690
|
+
function extractMentionedParticipantIds(_0x4497e5, _0x2f09ab) {
|
|
691
|
+
const _0x395232 = {
|
|
692
|
+
_0x106a88: 0x172,
|
|
693
|
+
_0x5f05a2: 0x26d,
|
|
694
|
+
_0x513df7: 0x223,
|
|
695
|
+
_0xd89c2: 0x15a,
|
|
696
|
+
_0xd6dd06: 0x231,
|
|
697
|
+
_0x41d525: 0x15a,
|
|
698
|
+
_0x15adf2: 0x18d
|
|
699
|
+
}, _0x28bcd3 = {
|
|
700
|
+
_0x421444: 0x138,
|
|
701
|
+
_0x39f49f: 0x18d
|
|
702
|
+
}, _0x15574b = _0x3cf5af, _0x178cca = buildMatchableEntries(_0x2f09ab)[_0x15574b(_0x395232._0x106a88)]((_0x49636f, _0x2d4c91) => _0x2d4c91['matchName'][_0x15574b(0x18d)] - _0x49636f[_0x15574b(0x23e)][_0x15574b(0x18d)]), _0x5b662b = [], _0x2a2529 = new Set();
|
|
703
|
+
for (let _0x3f5351 = 0x0; _0x3f5351 < _0x4497e5[_0x15574b(0x18d)]; _0x3f5351 += 0x1) {
|
|
704
|
+
if (_0x4497e5[_0x3f5351] !== '@' || !isMentionBoundary(_0x4497e5[_0x3f5351 - 0x1]))
|
|
664
705
|
continue;
|
|
665
|
-
const
|
|
666
|
-
const
|
|
667
|
-
if (!
|
|
706
|
+
const _0x3c16c2 = _0x4497e5[_0x15574b(_0x395232._0x5f05a2)](_0x3f5351 + 0x1), _0x551eee = _0x3c16c2['toLocaleLowerCase'](), _0x3dd61d = _0x178cca[_0x15574b(_0x395232._0x513df7)](_0x55375c => {
|
|
707
|
+
const _0x34613c = _0x15574b;
|
|
708
|
+
if (!_0x551eee[_0x34613c(0x18e)](_0x55375c[_0x34613c(_0x28bcd3._0x421444)]))
|
|
668
709
|
return ![];
|
|
669
|
-
return isMentionTerminal(
|
|
710
|
+
return isMentionTerminal(_0x3c16c2[_0x55375c['matchName'][_0x34613c(_0x28bcd3._0x39f49f)]]);
|
|
670
711
|
});
|
|
671
|
-
if (!
|
|
712
|
+
if (!_0x3dd61d || _0x2a2529[_0x15574b(0x25c)](_0x3dd61d[_0x15574b(_0x395232._0xd89c2)]))
|
|
672
713
|
continue;
|
|
673
|
-
|
|
714
|
+
_0x2a2529[_0x15574b(_0x395232._0xd6dd06)](_0x3dd61d[_0x15574b(0x15a)]), _0x5b662b[_0x15574b(0x13c)](_0x3dd61d[_0x15574b(_0x395232._0x41d525)]), _0x3f5351 += _0x3dd61d[_0x15574b(0x23e)][_0x15574b(_0x395232._0x15adf2)];
|
|
674
715
|
}
|
|
675
|
-
return
|
|
716
|
+
return _0x5b662b;
|
|
676
717
|
}
|
|
677
718
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
678
|
-
function anySignal(...
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
for (const _0x5205a1 of _0xfad2b0) {
|
|
685
|
-
if (_0x5205a1['aborted'])
|
|
686
|
-
return _0x22f076[_0x303577(_0x36f0a2._0x4e5dd3)](_0x5205a1[_0x303577(0x1b3)]), _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
687
|
-
_0x5205a1['addEventListener'](_0x303577(_0x36f0a2._0x3083d4), () => _0x22f076[_0x303577(0x295)](_0x5205a1[_0x303577(0x1b3)]), {
|
|
719
|
+
function anySignal(..._0x583eb7) {
|
|
720
|
+
const _0x3779ac = { _0x43eadd: 0x1c2 }, _0x11dc2d = _0x3cf5af, _0x1ae520 = new AbortController();
|
|
721
|
+
for (const _0x48c288 of _0x583eb7) {
|
|
722
|
+
if (_0x48c288[_0x11dc2d(0x22f)])
|
|
723
|
+
return _0x1ae520[_0x11dc2d(_0x3779ac._0x43eadd)](_0x48c288[_0x11dc2d(0x154)]), _0x1ae520['signal'];
|
|
724
|
+
_0x48c288['addEventListener']('abort', () => _0x1ae520[_0x11dc2d(0x1c2)](_0x48c288['reason']), {
|
|
688
725
|
'once': !![],
|
|
689
|
-
'signal':
|
|
726
|
+
'signal': _0x1ae520[_0x11dc2d(0x142)]
|
|
690
727
|
});
|
|
691
728
|
}
|
|
692
|
-
return
|
|
729
|
+
return _0x1ae520['signal'];
|
|
693
730
|
}
|
|
694
|
-
function createInternalAgentClient(
|
|
695
|
-
const
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
},
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
},
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
},
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
},
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
},
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
_0x4c503e: 0x1a9,
|
|
861
|
-
_0x9e1e64: 0x1f6,
|
|
862
|
-
_0x5431f8: 0x220,
|
|
863
|
-
_0x2a88b4: 0x18a,
|
|
864
|
-
_0x7be67d: 0x283,
|
|
865
|
-
_0x49e564: 0x23c
|
|
866
|
-
}, _0x48f325 = _0x28aee3, _0x230d44 = _0x3bb6b7[_0x48f325(0x2c3)] ?? fetch, _0x48c043 = _0x3bb6b7[_0x48f325(_0x14054b._0x2662d4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x439287 = typeof _0x3bb6b7['initialLastSeenSeq'] === _0x48f325(_0x14054b._0x44bb1e) && _0x3bb6b7['initialLastSeenSeq'] > 0x0 ? _0x3bb6b7[_0x48f325(0x241)] : 0x0, _0x18f974 = _0x3bb6b7[_0x48f325(0x248)]?.['trim']() || void 0x0, _0x35c865 = _0x3bb6b7['sessionId']?.['trim']() || void 0x0, _0x207f3c = _0x3bb6b7['workerModeEnabled'] === !![], _0x5e99c6 = _0x3bb6b7[_0x48f325(_0x14054b._0x15217e)]?.[_0x48f325(_0x14054b._0x17ffea)]() || void 0x0, _0x2bd29b = _0x3bb6b7['workerThreadTarget']?.[_0x48f325(0x1f6)]() || void 0x0, _0xc87eec = createHeaders(_0x3bb6b7[_0x48f325(_0x14054b._0x28fdc5)]), _0x4cea4c = toHttpBaseUrl(_0x3bb6b7[_0x48f325(_0x14054b._0x3194ac)]);
|
|
867
|
-
let _0xb4cf24 = null;
|
|
868
|
-
const _0xe7adc6 = new Map();
|
|
869
|
-
let _0x15451c = _0x439287, _0x35c778 = _0x439287;
|
|
870
|
-
function _0x3508ab(_0x2b7bf9) {
|
|
871
|
-
const _0x5d41c9 = _0x48f325, _0x3ef710 = _0x2b7bf9[_0x5d41c9(0x23c)][_0x5d41c9(_0xd59838._0x1e28eb)][_0x5d41c9(_0xd59838._0x50d234)](_0x5d41c9(0x231)) ?? _0x5d41c9(_0xd59838._0x4c503e), _0x2fe82c = _0x2b7bf9[_0x5d41c9(0x1fc)][_0x5d41c9(_0xd59838._0x9e1e64)]()[_0x5d41c9(0x2d2)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5d41c9(0x27c);
|
|
872
|
-
return _0x5d41c9(_0xd59838._0x5431f8) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x2a88b4)] + _0x5d41c9(_0xd59838._0x7be67d) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x49e564)][_0x5d41c9(0x1b0)] + ',\x20content-type=' + _0x3ef710 + ',\x20preview=' + _0x2fe82c + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
731
|
+
function createInternalAgentClient(_0x378182) {
|
|
732
|
+
const _0x389af4 = {
|
|
733
|
+
_0x370fa0: 0x26c,
|
|
734
|
+
_0x551da3: 0x17a,
|
|
735
|
+
_0x2b488a: 0x1e3,
|
|
736
|
+
_0x42fbb6: 0x128,
|
|
737
|
+
_0x28f89c: 0x153,
|
|
738
|
+
_0x279441: 0x128,
|
|
739
|
+
_0x5df096: 0x1b6,
|
|
740
|
+
_0x3977bd: 0x1dc,
|
|
741
|
+
_0x58750d: 0x129,
|
|
742
|
+
_0x228d2d: 0x128,
|
|
743
|
+
_0x5a2db9: 0x14c
|
|
744
|
+
}, _0x2d1927 = {
|
|
745
|
+
_0x4d21cd: 0x190,
|
|
746
|
+
_0x83e488: 0x288,
|
|
747
|
+
_0x52a0fa: 0x107,
|
|
748
|
+
_0x19e27d: 0x20f,
|
|
749
|
+
_0x435e45: 0x284,
|
|
750
|
+
_0x4f2e20: 0x1ca,
|
|
751
|
+
_0xfb7054: 0x17b,
|
|
752
|
+
_0x4ee86c: 0x147,
|
|
753
|
+
_0x9e8ef3: 0x171,
|
|
754
|
+
_0x13c76e: 0x232,
|
|
755
|
+
_0x9e4912: 0x16a,
|
|
756
|
+
_0x2a59ab: 0x18d,
|
|
757
|
+
_0x1741c5: 0x256,
|
|
758
|
+
_0x4713f5: 0x26f,
|
|
759
|
+
_0x1e41a7: 0x1c6,
|
|
760
|
+
_0x517379: 0x260,
|
|
761
|
+
_0x26e3e1: 0x202,
|
|
762
|
+
_0x5eeca6: 0x1b8,
|
|
763
|
+
_0x42e902: 0x13c,
|
|
764
|
+
_0x359c47: 0x248
|
|
765
|
+
}, _0x433d67 = {
|
|
766
|
+
_0xcd1b84: 0x1ca,
|
|
767
|
+
_0x445004: 0x20c
|
|
768
|
+
}, _0x5afa7e = {
|
|
769
|
+
_0x484ef9: 0x22e,
|
|
770
|
+
_0x47dc05: 0x208,
|
|
771
|
+
_0x12ee1a: 0x22e,
|
|
772
|
+
_0xffa40: 0x142,
|
|
773
|
+
_0x409ccb: 0x10b,
|
|
774
|
+
_0x1bbb14: 0x22b,
|
|
775
|
+
_0x3f0ca5: 0x171,
|
|
776
|
+
_0x449243: 0x108
|
|
777
|
+
}, _0x2e0c40 = {
|
|
778
|
+
_0x218a76: 0x1f4,
|
|
779
|
+
_0x4ad477: 0x259,
|
|
780
|
+
_0xe54975: 0x295,
|
|
781
|
+
_0x5af325: 0x288,
|
|
782
|
+
_0x384a55: 0x25f,
|
|
783
|
+
_0x4ebf94: 0x226,
|
|
784
|
+
_0x58a4be: 0x10b,
|
|
785
|
+
_0x102d81: 0x1ec
|
|
786
|
+
}, _0x551db2 = {
|
|
787
|
+
_0x10f987: 0x23d,
|
|
788
|
+
_0x81e9fb: 0x204
|
|
789
|
+
}, _0x3b4247 = {
|
|
790
|
+
_0x59a1cc: 0x10c,
|
|
791
|
+
_0x506714: 0x288,
|
|
792
|
+
_0x7f0428: 0x1a1,
|
|
793
|
+
_0x18dc88: 0x277,
|
|
794
|
+
_0x23d91c: 0x113
|
|
795
|
+
}, _0x25f0b3 = { _0x3e14c5: 0x277 }, _0x423577 = {
|
|
796
|
+
_0x525a29: 0x1f4,
|
|
797
|
+
_0x1d4a8b: 0x190,
|
|
798
|
+
_0x3a486d: 0x291
|
|
799
|
+
}, _0x9789d8 = {
|
|
800
|
+
_0x2f9bbf: 0x109,
|
|
801
|
+
_0x4cce09: 0x277,
|
|
802
|
+
_0x3a6290: 0x109
|
|
803
|
+
}, _0x2fd1f7 = {
|
|
804
|
+
_0x1db28f: 0x1a3,
|
|
805
|
+
_0x30a826: 0x17e,
|
|
806
|
+
_0x18d29e: 0x1ec
|
|
807
|
+
}, _0x34ed25 = {
|
|
808
|
+
_0xdfc7c4: 0x1db,
|
|
809
|
+
_0x38b7ae: 0x277,
|
|
810
|
+
_0x233688: 0x204
|
|
811
|
+
}, _0x12f092 = { _0x120e86: 0x208 }, _0x18b573 = {
|
|
812
|
+
_0x470b4f: 0x226,
|
|
813
|
+
_0x4ef096: 0x288,
|
|
814
|
+
_0x1c9cb4: 0x28c
|
|
815
|
+
}, _0x1cd4a9 = {
|
|
816
|
+
_0x12b53a: 0x201,
|
|
817
|
+
_0x1776e5: 0x20c,
|
|
818
|
+
_0x44d79c: 0x1ca,
|
|
819
|
+
_0x89ab59: 0x167,
|
|
820
|
+
_0x5206ca: 0x10d,
|
|
821
|
+
_0x563b58: 0x10c,
|
|
822
|
+
_0x1fd374: 0x288,
|
|
823
|
+
_0x38737d: 0x208,
|
|
824
|
+
_0x32363a: 0x1ec,
|
|
825
|
+
_0x15abcf: 0x215,
|
|
826
|
+
_0x507362: 0x221,
|
|
827
|
+
_0x351f1f: 0x12e
|
|
828
|
+
}, _0x51a651 = { _0x7e39c3: 0x27b }, _0x3a3764 = { _0x161eb7: 0x15a }, _0x352c1d = {
|
|
829
|
+
_0x105b63: 0x168,
|
|
830
|
+
_0x169c65: 0x147,
|
|
831
|
+
_0x59cca7: 0x1af,
|
|
832
|
+
_0x5315fa: 0x18e,
|
|
833
|
+
_0x2955cd: 0x259
|
|
834
|
+
}, _0x32dd32 = {
|
|
835
|
+
_0x52900c: 0x215,
|
|
836
|
+
_0x54cccb: 0x147,
|
|
837
|
+
_0x5dc1cf: 0x1af,
|
|
838
|
+
_0x582d9e: 0x17b,
|
|
839
|
+
_0x1e1979: 0x18e,
|
|
840
|
+
_0x2263b4: 0x259
|
|
841
|
+
}, _0x5af2af = {
|
|
842
|
+
_0x1c24f3: 0x215,
|
|
843
|
+
_0xde7ab9: 0x17b,
|
|
844
|
+
_0x1395bf: 0x17b,
|
|
845
|
+
_0x1b372e: 0x259,
|
|
846
|
+
_0x2bea5b: 0x259
|
|
847
|
+
}, _0x29dfc6 = {
|
|
848
|
+
_0x133a55: 0x245,
|
|
849
|
+
_0x48cd94: 0x157
|
|
850
|
+
}, _0x477be2 = {
|
|
851
|
+
_0x477405: 0x288,
|
|
852
|
+
_0x3db9e1: 0x20d,
|
|
853
|
+
_0x5386de: 0x226,
|
|
854
|
+
_0x3e2abd: 0x1ca,
|
|
855
|
+
_0x4a68df: 0x215,
|
|
856
|
+
_0x13ae28: 0x1ec
|
|
857
|
+
}, _0x759e19 = {
|
|
858
|
+
_0x1867d6: 0x264,
|
|
859
|
+
_0x350e28: 0x277,
|
|
860
|
+
_0x285087: 0x19b
|
|
861
|
+
}, _0x2cf1d6 = { _0x35c750: 0x277 }, _0x2ebd2c = {
|
|
862
|
+
_0x212902: 0x142,
|
|
863
|
+
_0x48946d: 0x19b,
|
|
864
|
+
_0x9022b: 0x291
|
|
865
|
+
}, _0x4732f0 = {
|
|
866
|
+
_0x21a3ed: 0x142,
|
|
867
|
+
_0x45547f: 0x142,
|
|
868
|
+
_0x5acd46: 0x1bd,
|
|
869
|
+
_0x1ba173: 0x24d,
|
|
870
|
+
_0x320d44: 0x291
|
|
871
|
+
}, _0x36411c = {
|
|
872
|
+
_0x571902: 0x228,
|
|
873
|
+
_0x6212f2: 0x228,
|
|
874
|
+
_0x41b303: 0x128,
|
|
875
|
+
_0x364f49: 0x188,
|
|
876
|
+
_0x4f3410: 0x152,
|
|
877
|
+
_0x3c31ab: 0x110,
|
|
878
|
+
_0x14e10a: 0x271,
|
|
879
|
+
_0x5d8883: 0x171,
|
|
880
|
+
_0x24d044: 0x145,
|
|
881
|
+
_0x53a392: 0x17d
|
|
882
|
+
}, _0x4f3d71 = { _0x3122b7: 0x213 }, _0x46852e = {
|
|
883
|
+
_0x29987d: 0x238,
|
|
884
|
+
_0x55a4dc: 0x1e7,
|
|
885
|
+
_0x2bba84: 0x128,
|
|
886
|
+
_0x2bbf4c: 0x135,
|
|
887
|
+
_0x235162: 0x169,
|
|
888
|
+
_0x23df55: 0x291,
|
|
889
|
+
_0x53154d: 0x24a
|
|
890
|
+
}, _0x14f5b3 = _0x3cf5af, _0x3d26df = _0x378182[_0x14f5b3(0x19f)] ?? fetch, _0x4d11d4 = _0x378182[_0x14f5b3(_0x389af4._0x370fa0)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3bbe76 = typeof _0x378182['initialLastSeenSeq'] === _0x14f5b3(_0x389af4._0x551da3) && _0x378182[_0x14f5b3(0x1e3)] > 0x0 ? _0x378182[_0x14f5b3(_0x389af4._0x2b488a)] : 0x0, _0x543d13 = _0x378182['daemonLocalUrl']?.[_0x14f5b3(_0x389af4._0x42fbb6)]() || void 0x0, _0x329f69 = _0x378182[_0x14f5b3(_0x389af4._0x28f89c)]?.[_0x14f5b3(_0x389af4._0x279441)]() || void 0x0, _0x3a9c60 = _0x378182[_0x14f5b3(_0x389af4._0x5df096)] === !![], _0x5b02cc = _0x378182[_0x14f5b3(_0x389af4._0x3977bd)]?.[_0x14f5b3(0x128)]() || void 0x0, _0x36b777 = _0x378182[_0x14f5b3(_0x389af4._0x58750d)]?.[_0x14f5b3(_0x389af4._0x228d2d)]() || void 0x0, _0x17ed33 = createHeaders(_0x378182[_0x14f5b3(0x287)]), _0xa0a276 = toHttpBaseUrl(_0x378182[_0x14f5b3(_0x389af4._0x5a2db9)]);
|
|
891
|
+
let _0x53ba02 = null;
|
|
892
|
+
const _0x5464db = new Map();
|
|
893
|
+
let _0x27020f = _0x3bbe76, _0x541be7 = _0x3bbe76;
|
|
894
|
+
function _0x435828(_0x482e04) {
|
|
895
|
+
const _0x52b0e8 = _0x14f5b3, _0x2a724e = _0x482e04[_0x52b0e8(_0x46852e._0x29987d)][_0x52b0e8(0x22b)][_0x52b0e8(0x171)](_0x52b0e8(_0x46852e._0x55a4dc)) ?? 'unknown', _0xaab1b5 = _0x482e04[_0x52b0e8(0x1f7)][_0x52b0e8(_0x46852e._0x2bba84)]()[_0x52b0e8(0x1a0)](/\s+/g, '\x20')[_0x52b0e8(0x26d)](0x0, 0x78) || '<empty>';
|
|
896
|
+
return _0x52b0e8(0x1eb) + _0x482e04[_0x52b0e8(_0x46852e._0x2bbf4c)] + _0x52b0e8(_0x46852e._0x235162) + _0x482e04['response'][_0x52b0e8(_0x46852e._0x23df55)] + _0x52b0e8(_0x46852e._0x53154d) + _0x2a724e + _0x52b0e8(0x195) + _0xaab1b5 + _0x52b0e8(0x13a);
|
|
873
897
|
}
|
|
874
|
-
async function
|
|
875
|
-
const
|
|
876
|
-
if (!
|
|
898
|
+
async function _0x474918(_0x3a295a, _0x3a1cbb) {
|
|
899
|
+
const _0x5e5836 = _0x14f5b3, _0x24d986 = Buffer[_0x5e5836(0x1c8)](await _0x3a1cbb[_0x5e5836(0x199)]())[_0x5e5836(_0x4f3d71._0x3122b7)](_0x5e5836(0x27a));
|
|
900
|
+
if (!_0x24d986[_0x5e5836(0x128)]())
|
|
877
901
|
return {};
|
|
878
902
|
try {
|
|
879
|
-
return JSON[
|
|
903
|
+
return JSON[_0x5e5836(0x266)](_0x24d986);
|
|
880
904
|
} catch {
|
|
881
|
-
throw new Error(
|
|
882
|
-
'bodyText':
|
|
883
|
-
'requestUrl':
|
|
884
|
-
'response':
|
|
905
|
+
throw new Error(_0x435828({
|
|
906
|
+
'bodyText': _0x24d986,
|
|
907
|
+
'requestUrl': _0x3a295a,
|
|
908
|
+
'response': _0x3a1cbb
|
|
885
909
|
}));
|
|
886
910
|
}
|
|
887
911
|
}
|
|
888
|
-
function
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
891
|
-
return
|
|
892
|
-
const
|
|
893
|
-
for (const [
|
|
894
|
-
|
|
912
|
+
function _0x5682ba(_0x17dc56, _0x57850c) {
|
|
913
|
+
const _0x18d9b3 = _0x14f5b3, _0x3b2dbd = typeof _0x57850c[_0x18d9b3(_0x36411c._0x571902)] === 'string' ? _0x57850c[_0x18d9b3(_0x36411c._0x6212f2)][_0x18d9b3(_0x36411c._0x41b303)]() : '';
|
|
914
|
+
if (_0x3b2dbd)
|
|
915
|
+
return _0x3b2dbd;
|
|
916
|
+
const _0x7bfb38 = Date[_0x18d9b3(_0x36411c._0x364f49)]();
|
|
917
|
+
for (const [_0x58a3bb, _0x263d2a] of _0x5464db) {
|
|
918
|
+
_0x263d2a[_0x18d9b3(0x207)] <= _0x7bfb38 && _0x5464db[_0x18d9b3(_0x36411c._0x4f3410)](_0x58a3bb);
|
|
895
919
|
}
|
|
896
|
-
const
|
|
897
|
-
...
|
|
920
|
+
const _0x411b32 = {
|
|
921
|
+
..._0x57850c,
|
|
898
922
|
'idempotency_key': void 0x0
|
|
899
|
-
},
|
|
900
|
-
if (
|
|
901
|
-
return
|
|
902
|
-
const
|
|
903
|
-
return
|
|
904
|
-
'expiresAt':
|
|
905
|
-
'value':
|
|
906
|
-
}),
|
|
923
|
+
}, _0x5b61f8 = createHash(_0x18d9b3(0x247))['update'](_0x17dc56 + ':' + stableStringify(_0x411b32))[_0x18d9b3(_0x36411c._0x3c31ab)](_0x18d9b3(_0x36411c._0x14e10a)), _0x4b1b8e = _0x17dc56 + ':' + _0x5b61f8, _0x13da4f = _0x5464db[_0x18d9b3(_0x36411c._0x5d8883)](_0x4b1b8e);
|
|
924
|
+
if (_0x13da4f)
|
|
925
|
+
return _0x13da4f[_0x18d9b3(_0x36411c._0x24d044)];
|
|
926
|
+
const _0x3619df = _0x18d9b3(_0x36411c._0x53a392) + _0x17dc56 + ':' + randomUUID();
|
|
927
|
+
return _0x5464db[_0x18d9b3(0x190)](_0x4b1b8e, {
|
|
928
|
+
'expiresAt': _0x7bfb38 + 0x5 * 0x3c * 0x3e8,
|
|
929
|
+
'value': _0x3619df
|
|
930
|
+
}), _0x3619df;
|
|
907
931
|
}
|
|
908
|
-
async function
|
|
909
|
-
const
|
|
932
|
+
async function _0x252eb3(_0x58bccc, _0x5c297f) {
|
|
933
|
+
const _0x2b8186 = _0x14f5b3, _0x4047df = new AbortController(), _0x258498 = setTimeout(() => _0x4047df[_0x2b8186(0x1c2)](), _0x4d11d4), _0x5cebd2 = _0x5c297f?.[_0x2b8186(_0x4732f0._0x21a3ed)] ? anySignal(_0x5c297f['signal'], _0x4047df[_0x2b8186(_0x4732f0._0x45547f)]) : _0x4047df[_0x2b8186(0x142)], _0x2d146c = '' + _0xa0a276 + _0x58bccc;
|
|
910
934
|
try {
|
|
911
|
-
const
|
|
912
|
-
...
|
|
913
|
-
'signal':
|
|
914
|
-
}),
|
|
915
|
-
if (!
|
|
916
|
-
throw new Error(asErrorMessage(
|
|
917
|
-
return
|
|
935
|
+
const _0x35e692 = await _0x3d26df(_0x2d146c, {
|
|
936
|
+
..._0x5c297f,
|
|
937
|
+
'signal': _0x5cebd2
|
|
938
|
+
}), _0x5d4cfd = await _0x474918(_0x2d146c, _0x35e692);
|
|
939
|
+
if (!_0x35e692['ok'] || _0x5d4cfd[_0x2b8186(_0x4732f0._0x5acd46)] === ![])
|
|
940
|
+
throw new Error(asErrorMessage(_0x5d4cfd[_0x2b8186(_0x4732f0._0x1ba173)], 'HTTP\x20' + _0x35e692[_0x2b8186(_0x4732f0._0x320d44)]));
|
|
941
|
+
return _0x5d4cfd;
|
|
918
942
|
} finally {
|
|
919
|
-
clearTimeout(
|
|
943
|
+
clearTimeout(_0x258498);
|
|
920
944
|
}
|
|
921
945
|
}
|
|
922
|
-
async function
|
|
923
|
-
const
|
|
946
|
+
async function _0x539991(_0x26ace5, _0x1296d1) {
|
|
947
|
+
const _0x1a6a3a = _0x14f5b3, _0x2e1d99 = new AbortController(), _0x321898 = setTimeout(() => _0x2e1d99[_0x1a6a3a(0x1c2)](), _0x4d11d4), _0x33314c = _0x1296d1?.[_0x1a6a3a(0x142)] ? anySignal(_0x1296d1['signal'], _0x2e1d99[_0x1a6a3a(_0x2ebd2c._0x212902)]) : _0x2e1d99[_0x1a6a3a(0x142)], _0x436715 = '' + _0xa0a276 + _0x26ace5;
|
|
924
948
|
try {
|
|
925
|
-
const
|
|
926
|
-
...
|
|
927
|
-
'signal':
|
|
928
|
-
}),
|
|
929
|
-
if (!
|
|
930
|
-
throw new Error(asErrorMessage(
|
|
931
|
-
return
|
|
949
|
+
const _0x307367 = await _0x3d26df(_0x436715, {
|
|
950
|
+
..._0x1296d1,
|
|
951
|
+
'signal': _0x33314c
|
|
952
|
+
}), _0x498c89 = await _0x474918(_0x436715, _0x307367);
|
|
953
|
+
if (!_0x307367['ok'])
|
|
954
|
+
throw new Error(asErrorMessage(_0x498c89[_0x1a6a3a(0x24d)], _0x1a6a3a(_0x2ebd2c._0x48946d) + _0x307367[_0x1a6a3a(_0x2ebd2c._0x9022b)]));
|
|
955
|
+
return _0x498c89;
|
|
932
956
|
} finally {
|
|
933
|
-
clearTimeout(
|
|
957
|
+
clearTimeout(_0x321898);
|
|
934
958
|
}
|
|
935
959
|
}
|
|
936
|
-
async function
|
|
937
|
-
const
|
|
938
|
-
if (!
|
|
960
|
+
async function _0x3b3a19(_0x435bdb) {
|
|
961
|
+
const _0x4594e5 = _0x14f5b3;
|
|
962
|
+
if (!_0x329f69 || _0x435bdb <= _0x541be7)
|
|
939
963
|
return;
|
|
940
|
-
await
|
|
941
|
-
'body': JSON[
|
|
942
|
-
'headers':
|
|
943
|
-
'method':
|
|
944
|
-
}),
|
|
964
|
+
await _0x252eb3('/api/agent-sessions/' + encodeURIComponent(_0x329f69) + _0x4594e5(0x151), {
|
|
965
|
+
'body': JSON[_0x4594e5(_0x2cf1d6._0x35c750)]({ 'lastSeenSeq': _0x435bdb }),
|
|
966
|
+
'headers': _0x17ed33,
|
|
967
|
+
'method': _0x4594e5(0x214)
|
|
968
|
+
}), _0x541be7 = _0x435bdb;
|
|
945
969
|
}
|
|
946
|
-
async function
|
|
947
|
-
const
|
|
948
|
-
if (!
|
|
970
|
+
async function _0x152b64(_0x331fe5) {
|
|
971
|
+
const _0x134cc5 = _0x14f5b3;
|
|
972
|
+
if (!_0x543d13 || !_0x5b02cc || _0x331fe5 <= _0x541be7)
|
|
949
973
|
return;
|
|
950
|
-
const
|
|
951
|
-
'body': JSON[
|
|
952
|
-
'last_seen_seq':
|
|
953
|
-
'worker_session_id':
|
|
974
|
+
const _0x5af68c = await _0x3d26df(_0x543d13 + _0x134cc5(_0x759e19._0x1867d6), {
|
|
975
|
+
'body': JSON[_0x134cc5(_0x759e19._0x350e28)]({
|
|
976
|
+
'last_seen_seq': _0x331fe5,
|
|
977
|
+
'worker_session_id': _0x5b02cc
|
|
954
978
|
}),
|
|
955
|
-
'headers': { 'Content-Type':
|
|
979
|
+
'headers': { 'Content-Type': _0x134cc5(0x14a) },
|
|
956
980
|
'method': 'POST'
|
|
957
981
|
});
|
|
958
|
-
if (!
|
|
959
|
-
throw new Error(
|
|
960
|
-
|
|
982
|
+
if (!_0x5af68c['ok'])
|
|
983
|
+
throw new Error(_0x134cc5(_0x759e19._0x285087) + _0x5af68c['status']);
|
|
984
|
+
_0x541be7 = _0x331fe5;
|
|
961
985
|
}
|
|
962
|
-
async function
|
|
963
|
-
const
|
|
964
|
-
'body': JSON[
|
|
965
|
-
'headers':
|
|
966
|
-
'method':
|
|
986
|
+
async function _0x2ab924(_0x4dd308) {
|
|
987
|
+
const _0x230f82 = _0x14f5b3, _0x255d46 = parseTarget(_0x4dd308), _0x55e32a = await _0x252eb3('/internal/agent/' + _0x378182[_0x230f82(_0x477be2._0x477405)] + _0x230f82(_0x477be2._0x3db9e1), {
|
|
988
|
+
'body': JSON[_0x230f82(0x277)]({ 'target': _0x255d46[_0x230f82(_0x477be2._0x5386de)] }),
|
|
989
|
+
'headers': _0x17ed33,
|
|
990
|
+
'method': 'POST'
|
|
967
991
|
});
|
|
968
992
|
return {
|
|
969
|
-
'channelId':
|
|
970
|
-
'target':
|
|
971
|
-
'task':
|
|
972
|
-
'threadId':
|
|
973
|
-
'threadNumber':
|
|
993
|
+
'channelId': _0x55e32a[_0x230f82(0x1ec)]?.[_0x230f82(_0x477be2._0x3e2abd)] ?? '',
|
|
994
|
+
'target': _0x255d46[_0x230f82(_0x477be2._0x4a68df)],
|
|
995
|
+
'task': _0x55e32a[_0x230f82(0x1ec)]?.[_0x230f82(0x1b4)],
|
|
996
|
+
'threadId': _0x55e32a['data']?.['threadId'],
|
|
997
|
+
'threadNumber': _0x55e32a[_0x230f82(_0x477be2._0x13ae28)]?.['threadNumber']
|
|
974
998
|
};
|
|
975
999
|
}
|
|
976
|
-
async function
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
'
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
'
|
|
990
|
-
|
|
1000
|
+
async function _0x589a42(_0x1c2372 = {}) {
|
|
1001
|
+
const _0x3479e3 = {
|
|
1002
|
+
_0x1cc032: 0x1ec,
|
|
1003
|
+
_0x1db692: 0x20f,
|
|
1004
|
+
_0x117ae3: 0x1de
|
|
1005
|
+
}, _0x3e8ade = _0x14f5b3;
|
|
1006
|
+
if (!_0x1c2372[_0x3e8ade(0x144)] && _0x53ba02)
|
|
1007
|
+
return _0x53ba02;
|
|
1008
|
+
return _0x53ba02 = (async () => {
|
|
1009
|
+
const _0x499757 = _0x3e8ade, _0xbb280 = await _0x252eb3(_0x499757(0x10c) + _0x378182[_0x499757(0x288)] + _0x499757(0x272), {
|
|
1010
|
+
'headers': _0x17ed33,
|
|
1011
|
+
'method': _0x499757(0x208)
|
|
1012
|
+
}), _0x363358 = _0xbb280[_0x499757(_0x3479e3._0x1cc032)]?.[_0x499757(0x252)] ?? [], _0x47df4b = _0x363358[_0x499757(_0x3479e3._0x1db692)](_0x3043cc => _0x3043cc[_0x499757(0x27b)]?.['type'] === _0x499757(0x28e))[_0x499757(0x21c)](_0x2d89fe => ({
|
|
1013
|
+
'id': _0x3c7770(_0x2d89fe),
|
|
1014
|
+
'name': _0x456c5e(_0x2d89fe)
|
|
1015
|
+
}))['filter'](_0x364a29 => _0x364a29['id']), _0x42f2b1 = _0x363358[_0x499757(0x20f)](_0x24583d => _0x24583d[_0x499757(0x27b)]?.[_0x499757(0x1cc)] !== 'agent')[_0x499757(0x21c)](_0x449352 => ({
|
|
1016
|
+
'id': _0x3c7770(_0x449352),
|
|
1017
|
+
'name': _0x456c5e(_0x449352)
|
|
1018
|
+
}))[_0x499757(0x20f)](_0x8c5ca2 => _0x8c5ca2['id']), _0xc5fbaf = _0xbb280[_0x499757(0x1ec)]?.['server']['id'] ?? '';
|
|
991
1019
|
return {
|
|
992
|
-
'agents':
|
|
993
|
-
'channels':
|
|
994
|
-
'humans':
|
|
995
|
-
'serverId':
|
|
996
|
-
'serverName':
|
|
1020
|
+
'agents': _0x47df4b,
|
|
1021
|
+
'channels': _0xbb280[_0x499757(_0x3479e3._0x1cc032)]?.[_0x499757(0x284)] ?? [],
|
|
1022
|
+
'humans': _0x42f2b1,
|
|
1023
|
+
'serverId': _0xc5fbaf,
|
|
1024
|
+
'serverName': _0xbb280['data']?.[_0x499757(_0x3479e3._0x117ae3)]['name'] ?? _0xc5fbaf
|
|
997
1025
|
};
|
|
998
|
-
})()[
|
|
999
|
-
|
|
1000
|
-
throw
|
|
1001
|
-
}),
|
|
1026
|
+
})()[_0x3e8ade(0x230)](_0x8763eb => {
|
|
1027
|
+
_0x53ba02 = null;
|
|
1028
|
+
throw _0x8763eb;
|
|
1029
|
+
}), _0x53ba02;
|
|
1002
1030
|
}
|
|
1003
|
-
function
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
1031
|
+
function _0x189ec4(_0x123108, _0x3e976) {
|
|
1032
|
+
const _0x40ecd8 = _0x14f5b3;
|
|
1033
|
+
return _0x3e976[_0x40ecd8(_0x29dfc6._0x133a55)][_0x40ecd8(_0x29dfc6._0x48cd94)](_0x2530b1 => _0x2530b1['id'] === _0x123108 || _0x2530b1[_0x40ecd8(0x173)] === _0x123108) ? _0x40ecd8(0x28e) : _0x40ecd8(0x111);
|
|
1006
1034
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
1010
|
-
return
|
|
1011
|
-
if (
|
|
1012
|
-
return
|
|
1013
|
-
if (
|
|
1014
|
-
return
|
|
1015
|
-
return
|
|
1035
|
+
function _0xb2570f(_0x1e7713) {
|
|
1036
|
+
const _0x34d8fe = _0x14f5b3;
|
|
1037
|
+
if (_0x1e7713[_0x34d8fe(0x147)] != null)
|
|
1038
|
+
return _0x1e7713[_0x34d8fe(_0x5af2af._0x1c24f3)] + ':t' + _0x1e7713[_0x34d8fe(0x147)];
|
|
1039
|
+
if (_0x1e7713[_0x34d8fe(_0x5af2af._0xde7ab9)])
|
|
1040
|
+
return _0x1e7713['channelTarget'] + ':' + _0x1e7713[_0x34d8fe(_0x5af2af._0x1395bf)];
|
|
1041
|
+
if (_0x1e7713[_0x34d8fe(_0x5af2af._0x1b372e)])
|
|
1042
|
+
return _0x1e7713[_0x34d8fe(0x215)] + ':' + _0x1e7713[_0x34d8fe(_0x5af2af._0x2bea5b)][_0x34d8fe(0x26d)](0x0, 0x8);
|
|
1043
|
+
return _0x1e7713[_0x34d8fe(0x215)];
|
|
1016
1044
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const
|
|
1045
|
+
function _0x1b6776(_0x4b0456, _0x4a68ad) {
|
|
1046
|
+
const _0x303aa4 = _0x14f5b3;
|
|
1019
1047
|
try {
|
|
1020
|
-
const
|
|
1021
|
-
if (
|
|
1048
|
+
const _0x556b53 = parseTarget(_0x4b0456);
|
|
1049
|
+
if (_0x556b53[_0x303aa4(0x1c6)] !== 'thread' || _0x556b53['channelTarget'] !== _0x4a68ad[_0x303aa4(_0x32dd32._0x52900c)])
|
|
1022
1050
|
return ![];
|
|
1023
|
-
if (
|
|
1051
|
+
if (_0x4a68ad[_0x303aa4(_0x32dd32._0x54cccb)] != null && _0x556b53['threadShortId'] === 't' + _0x4a68ad[_0x303aa4(_0x32dd32._0x54cccb)])
|
|
1024
1052
|
return !![];
|
|
1025
|
-
if (
|
|
1026
|
-
return
|
|
1027
|
-
if (
|
|
1028
|
-
return
|
|
1053
|
+
if (_0x4a68ad['rootMessageId'])
|
|
1054
|
+
return _0x556b53[_0x303aa4(_0x32dd32._0x5dc1cf)] === _0x4a68ad['rootMessageId'] || _0x4a68ad[_0x303aa4(_0x32dd32._0x582d9e)][_0x303aa4(_0x32dd32._0x1e1979)](_0x556b53[_0x303aa4(_0x32dd32._0x5dc1cf)]);
|
|
1055
|
+
if (_0x4a68ad[_0x303aa4(_0x32dd32._0x2263b4)])
|
|
1056
|
+
return _0x556b53['threadShortId'] === _0x4a68ad['threadId'] || _0x4a68ad['threadId']['startsWith'](_0x556b53[_0x303aa4(0x1af)]);
|
|
1029
1057
|
return ![];
|
|
1030
1058
|
} catch {
|
|
1031
1059
|
return ![];
|
|
1032
1060
|
}
|
|
1033
1061
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const
|
|
1062
|
+
function _0x437520(_0x9d1267, _0x4d40ab) {
|
|
1063
|
+
const _0x58cf18 = _0x14f5b3;
|
|
1036
1064
|
try {
|
|
1037
|
-
const
|
|
1038
|
-
if (
|
|
1065
|
+
const _0xbe1bab = parseTarget(_0x9d1267);
|
|
1066
|
+
if (_0xbe1bab['kind'] !== _0x58cf18(_0x352c1d._0x105b63))
|
|
1039
1067
|
return ![];
|
|
1040
|
-
const
|
|
1041
|
-
if (
|
|
1068
|
+
const _0x3cec03 = typeof _0x4d40ab[_0x58cf18(_0x352c1d._0x169c65)] === _0x58cf18(0x17a) && Number['isInteger'](_0x4d40ab[_0x58cf18(_0x352c1d._0x169c65)]) ? _0x4d40ab[_0x58cf18(0x147)] : void 0x0;
|
|
1069
|
+
if (_0x3cec03 != null && _0xbe1bab[_0x58cf18(_0x352c1d._0x59cca7)] === 't' + _0x3cec03)
|
|
1042
1070
|
return !![];
|
|
1043
|
-
const
|
|
1044
|
-
if (
|
|
1045
|
-
return
|
|
1046
|
-
const
|
|
1047
|
-
return Boolean(
|
|
1071
|
+
const _0x4c5361 = typeof _0x4d40ab[_0x58cf18(0x17b)] === 'string' ? _0x4d40ab[_0x58cf18(0x17b)] : void 0x0;
|
|
1072
|
+
if (_0x4c5361)
|
|
1073
|
+
return _0xbe1bab['threadShortId'] === _0x4c5361 || _0x4c5361[_0x58cf18(_0x352c1d._0x5315fa)](_0xbe1bab['threadShortId']);
|
|
1074
|
+
const _0x141e1d = typeof _0x4d40ab[_0x58cf18(_0x352c1d._0x2955cd)] === 'string' ? _0x4d40ab['threadId'] : void 0x0;
|
|
1075
|
+
return Boolean(_0x141e1d) && (_0xbe1bab['threadShortId'] === _0x141e1d || _0x141e1d[_0x58cf18(_0x352c1d._0x5315fa)](_0xbe1bab['threadShortId']));
|
|
1048
1076
|
} catch {
|
|
1049
1077
|
return ![];
|
|
1050
1078
|
}
|
|
1051
1079
|
}
|
|
1052
|
-
function
|
|
1053
|
-
const
|
|
1054
|
-
return
|
|
1080
|
+
function _0x3c7770(_0x1f695b) {
|
|
1081
|
+
const _0x152a6e = _0x14f5b3;
|
|
1082
|
+
return _0x1f695b[_0x152a6e(0x19a)]?.[_0x152a6e(_0x3a3764._0x161eb7)] ?? _0x1f695b[_0x152a6e(0x27b)]?.['id'] ?? _0x1f695b['participantId'] ?? '';
|
|
1055
1083
|
}
|
|
1056
|
-
function
|
|
1057
|
-
const
|
|
1058
|
-
return
|
|
1084
|
+
function _0x456c5e(_0x306860) {
|
|
1085
|
+
const _0x393728 = _0x14f5b3;
|
|
1086
|
+
return _0x306860[_0x393728(_0x51a651._0x7e39c3)]?.[_0x393728(0x173)] ?? _0x3c7770(_0x306860);
|
|
1059
1087
|
}
|
|
1060
|
-
async function
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
const
|
|
1067
|
-
'headers':
|
|
1068
|
-
'method':
|
|
1069
|
-
}),
|
|
1070
|
-
'attachments': (
|
|
1071
|
-
'filename':
|
|
1072
|
-
'id':
|
|
1088
|
+
async function _0x276c3f(_0x1fc4eb) {
|
|
1089
|
+
const _0x5a5d8e = _0x14f5b3, _0x24b2d2 = Math[_0x5a5d8e(_0x1cd4a9._0x12b53a)](_0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x1776e5)] ?? 0x32, 0x64), _0xf55dc3 = await _0x589a42(), _0x58ef8c = new URLSearchParams();
|
|
1090
|
+
_0x58ef8c['set'](_0x5a5d8e(0x20c), String(_0x24b2d2));
|
|
1091
|
+
_0x1fc4eb[_0x5a5d8e(0x259)] ? (_0x58ef8c[_0x5a5d8e(0x190)](_0x5a5d8e(0x259), _0x1fc4eb[_0x5a5d8e(0x259)]), _0x58ef8c[_0x5a5d8e(0x190)](_0x5a5d8e(_0x1cd4a9._0x44d79c), _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x44d79c)])) : _0x58ef8c[_0x5a5d8e(0x190)]('channelId', _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x44d79c)]);
|
|
1092
|
+
_0x1fc4eb[_0x5a5d8e(0x1a7)] && _0x58ef8c['set'](_0x5a5d8e(_0x1cd4a9._0x89ab59), String(_0x1fc4eb[_0x5a5d8e(0x1a7)]));
|
|
1093
|
+
_0x1fc4eb[_0x5a5d8e(0x10d)] !== void 0x0 && _0x58ef8c['set'](_0x5a5d8e(_0x1cd4a9._0x5206ca), String(_0x1fc4eb['after']));
|
|
1094
|
+
const _0x5766bf = await _0x252eb3(_0x5a5d8e(_0x1cd4a9._0x563b58) + _0x378182[_0x5a5d8e(_0x1cd4a9._0x1fd374)] + _0x5a5d8e(0x28a) + _0x58ef8c['toString'](), {
|
|
1095
|
+
'headers': _0x17ed33,
|
|
1096
|
+
'method': _0x5a5d8e(_0x1cd4a9._0x38737d)
|
|
1097
|
+
}), _0x4a6a0c = (_0x5766bf[_0x5a5d8e(_0x1cd4a9._0x32363a)] ?? [])['map'](_0x54721d => ({
|
|
1098
|
+
'attachments': (_0x54721d[_0x5a5d8e(0x186)] ?? [])['map'](_0x2e7dbc => ({
|
|
1099
|
+
'filename': _0x2e7dbc['filename'] ?? _0x2e7dbc['id'],
|
|
1100
|
+
'id': _0x2e7dbc['id']
|
|
1073
1101
|
})),
|
|
1074
|
-
'content':
|
|
1075
|
-
'createdAt':
|
|
1076
|
-
...
|
|
1077
|
-
'messageId':
|
|
1078
|
-
'senderName':
|
|
1079
|
-
'senderType':
|
|
1080
|
-
'seq':
|
|
1102
|
+
'content': _0x54721d['bodyMarkdown'] ?? '',
|
|
1103
|
+
'createdAt': _0x54721d[_0x5a5d8e(0x1d0)],
|
|
1104
|
+
..._0x54721d[_0x5a5d8e(0x1c6)] && _0x54721d['kind'] !== _0x5a5d8e(0x1da) ? { 'kind': _0x54721d[_0x5a5d8e(0x1c6)] } : {},
|
|
1105
|
+
'messageId': _0x54721d['id'],
|
|
1106
|
+
'senderName': _0x54721d[_0x5a5d8e(0x191)],
|
|
1107
|
+
'senderType': _0x189ec4(_0x54721d['senderParticipantId'], _0xf55dc3),
|
|
1108
|
+
'seq': _0x54721d[_0x5a5d8e(0x18f)] ?? 0x0
|
|
1081
1109
|
}));
|
|
1082
1110
|
return {
|
|
1083
|
-
'channel':
|
|
1084
|
-
'hasMore':
|
|
1085
|
-
'messages':
|
|
1086
|
-
'nextCursor':
|
|
1111
|
+
'channel': _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x15abcf)],
|
|
1112
|
+
'hasMore': _0x5766bf[_0x5a5d8e(_0x1cd4a9._0x507362)]?.[_0x5a5d8e(_0x1cd4a9._0x351f1f)] ?? ![],
|
|
1113
|
+
'messages': _0x4a6a0c,
|
|
1114
|
+
'nextCursor': _0x5766bf['meta']?.[_0x5a5d8e(_0x1cd4a9._0x89ab59)]
|
|
1087
1115
|
};
|
|
1088
1116
|
}
|
|
1089
1117
|
return {
|
|
1090
|
-
async 'sendMessage'(
|
|
1091
|
-
const
|
|
1092
|
-
'body': JSON[
|
|
1093
|
-
'attachment_ids':
|
|
1094
|
-
'bodyMarkdown':
|
|
1095
|
-
'channelId':
|
|
1096
|
-
...
|
|
1097
|
-
'threadId':
|
|
1098
|
-
...
|
|
1118
|
+
async 'sendMessage'(_0xe2db25) {
|
|
1119
|
+
const _0x91aa27 = _0x14f5b3, _0x1819ee = await _0x2ab924(_0xe2db25[_0x91aa27(_0x18b573._0x470b4f)]), _0x370c6e = _0xe2db25[_0x91aa27(0x26f)]['includes']('@') ? extractMentionedParticipantIds(_0xe2db25['content'], await _0x589a42()) : [], _0x362f24 = await _0x252eb3('/internal/agent/' + _0x378182[_0x91aa27(_0x18b573._0x4ef096)] + '/send', {
|
|
1120
|
+
'body': JSON['stringify']({
|
|
1121
|
+
'attachment_ids': _0xe2db25[_0x91aa27(0x1fc)],
|
|
1122
|
+
'bodyMarkdown': _0xe2db25['content'],
|
|
1123
|
+
'channelId': _0x1819ee['channelId'],
|
|
1124
|
+
..._0x370c6e[_0x91aa27(0x18d)] > 0x0 ? { 'mentionedParticipantIds': _0x370c6e } : {},
|
|
1125
|
+
'threadId': _0x1819ee[_0x91aa27(0x259)],
|
|
1126
|
+
..._0xe2db25[_0x91aa27(_0x18b573._0x1c9cb4)] ? { 'visibility': _0xe2db25['visibility'] } : {}
|
|
1099
1127
|
}),
|
|
1100
|
-
'headers':
|
|
1101
|
-
'method':
|
|
1128
|
+
'headers': _0x17ed33,
|
|
1129
|
+
'method': 'POST'
|
|
1102
1130
|
});
|
|
1103
|
-
return { 'messageId':
|
|
1131
|
+
return { 'messageId': _0x362f24[_0x91aa27(0x1ec)]?.['id'] ?? '' };
|
|
1104
1132
|
},
|
|
1105
1133
|
async 'listSchedules'() {
|
|
1106
|
-
const
|
|
1107
|
-
'headers':
|
|
1108
|
-
'method':
|
|
1134
|
+
const _0x50cce8 = _0x14f5b3, _0x17ec9a = await _0x252eb3(_0x50cce8(0x1bb), {
|
|
1135
|
+
'headers': _0x17ed33,
|
|
1136
|
+
'method': _0x50cce8(_0x12f092._0x120e86)
|
|
1109
1137
|
});
|
|
1110
|
-
return
|
|
1138
|
+
return _0x17ec9a['data'] ?? [];
|
|
1111
1139
|
},
|
|
1112
|
-
async 'claimScheduleRun'(
|
|
1113
|
-
const
|
|
1114
|
-
'body': JSON[
|
|
1115
|
-
'headers':
|
|
1116
|
-
'method':
|
|
1140
|
+
async 'claimScheduleRun'(_0x3ab6a7) {
|
|
1141
|
+
const _0x3f6c56 = _0x14f5b3, _0x7fe926 = await _0x252eb3(_0x3f6c56(_0x34ed25._0xdfc7c4), {
|
|
1142
|
+
'body': JSON[_0x3f6c56(_0x34ed25._0x38b7ae)](_0x3ab6a7),
|
|
1143
|
+
'headers': _0x17ed33,
|
|
1144
|
+
'method': _0x3f6c56(_0x34ed25._0x233688)
|
|
1117
1145
|
});
|
|
1118
|
-
return
|
|
1146
|
+
return _0x7fe926[_0x3f6c56(0x1ec)] ?? {
|
|
1119
1147
|
'granted': ![],
|
|
1120
1148
|
'runId': null,
|
|
1121
1149
|
'schedule': null,
|
|
1122
|
-
'scheduledFor':
|
|
1150
|
+
'scheduledFor': _0x3ab6a7['scheduledFor']
|
|
1123
1151
|
};
|
|
1124
1152
|
},
|
|
1125
|
-
async 'startScheduleRun'(
|
|
1126
|
-
const
|
|
1127
|
-
'body': JSON[
|
|
1128
|
-
'headers':
|
|
1129
|
-
'method':
|
|
1153
|
+
async 'startScheduleRun'(_0x491c42) {
|
|
1154
|
+
const _0x5c4bdb = _0x14f5b3, _0x33fcf8 = await _0x252eb3(_0x5c4bdb(_0x2fd1f7._0x1db28f) + encodeURIComponent(_0x491c42[_0x5c4bdb(0x109)]) + _0x5c4bdb(_0x2fd1f7._0x30a826), {
|
|
1155
|
+
'body': JSON[_0x5c4bdb(0x277)]({}),
|
|
1156
|
+
'headers': _0x17ed33,
|
|
1157
|
+
'method': _0x5c4bdb(0x204)
|
|
1130
1158
|
});
|
|
1131
|
-
return
|
|
1159
|
+
return _0x33fcf8[_0x5c4bdb(_0x2fd1f7._0x18d29e)] ?? {
|
|
1132
1160
|
'claimedByDaemonId': '',
|
|
1133
|
-
'id':
|
|
1161
|
+
'id': _0x491c42[_0x5c4bdb(0x109)],
|
|
1134
1162
|
'scheduleId': '',
|
|
1135
|
-
'status':
|
|
1163
|
+
'status': 'running'
|
|
1136
1164
|
};
|
|
1137
1165
|
},
|
|
1138
|
-
async 'finishScheduleRun'(
|
|
1139
|
-
const
|
|
1140
|
-
'body': JSON[
|
|
1141
|
-
'error':
|
|
1142
|
-
'resultJson':
|
|
1143
|
-
'status':
|
|
1166
|
+
async 'finishScheduleRun'(_0x5ebec7) {
|
|
1167
|
+
const _0x175034 = _0x14f5b3, _0x57aba2 = await _0x252eb3(_0x175034(0x1a3) + encodeURIComponent(_0x5ebec7[_0x175034(_0x9789d8._0x2f9bbf)]) + _0x175034(0x1f3), {
|
|
1168
|
+
'body': JSON[_0x175034(_0x9789d8._0x4cce09)]({
|
|
1169
|
+
'error': _0x5ebec7[_0x175034(0x24d)],
|
|
1170
|
+
'resultJson': _0x5ebec7[_0x175034(0x178)],
|
|
1171
|
+
'status': _0x5ebec7[_0x175034(0x291)]
|
|
1144
1172
|
}),
|
|
1145
|
-
'headers':
|
|
1146
|
-
'method':
|
|
1173
|
+
'headers': _0x17ed33,
|
|
1174
|
+
'method': _0x175034(0x204)
|
|
1147
1175
|
});
|
|
1148
|
-
return
|
|
1176
|
+
return _0x57aba2['data'] ?? {
|
|
1149
1177
|
'nextRunAt': null,
|
|
1150
1178
|
'run': {
|
|
1151
1179
|
'claimedByDaemonId': '',
|
|
1152
|
-
'id':
|
|
1180
|
+
'id': _0x5ebec7[_0x175034(_0x9789d8._0x3a6290)],
|
|
1153
1181
|
'scheduleId': '',
|
|
1154
|
-
'status':
|
|
1182
|
+
'status': _0x5ebec7[_0x175034(0x291)]
|
|
1155
1183
|
}
|
|
1156
1184
|
};
|
|
1157
1185
|
},
|
|
1158
|
-
async 'listTasks'(
|
|
1159
|
-
const
|
|
1160
|
-
return
|
|
1161
|
-
'headers':
|
|
1162
|
-
'method':
|
|
1186
|
+
async 'listTasks'(_0x4ec697) {
|
|
1187
|
+
const _0x2fd955 = _0x14f5b3, _0x360c34 = new URLSearchParams();
|
|
1188
|
+
return _0x360c34[_0x2fd955(0x190)](_0x2fd955(_0x423577._0x525a29), _0x4ec697[_0x2fd955(0x1f4)]), _0x4ec697[_0x2fd955(0x291)] && _0x360c34[_0x2fd955(_0x423577._0x1d4a8b)]('status', _0x4ec697[_0x2fd955(_0x423577._0x3a486d)]), _0x539991('/internal/agent/' + _0x378182['agentId'] + _0x2fd955(0x293) + _0x360c34['toString'](), {
|
|
1189
|
+
'headers': _0x17ed33,
|
|
1190
|
+
'method': _0x2fd955(0x208)
|
|
1163
1191
|
});
|
|
1164
1192
|
},
|
|
1165
|
-
async 'createTasks'(
|
|
1166
|
-
const
|
|
1167
|
-
return
|
|
1168
|
-
'body': JSON[
|
|
1169
|
-
...
|
|
1170
|
-
'idempotency_key':
|
|
1193
|
+
async 'createTasks'(_0x262d37) {
|
|
1194
|
+
const _0x19745e = _0x14f5b3;
|
|
1195
|
+
return _0x539991('/internal/agent/' + _0x378182['agentId'] + '/tasks', {
|
|
1196
|
+
'body': JSON[_0x19745e(_0x25f0b3._0x3e14c5)]({
|
|
1197
|
+
..._0x262d37,
|
|
1198
|
+
'idempotency_key': _0x5682ba('create_tasks', _0x262d37)
|
|
1171
1199
|
}),
|
|
1172
|
-
'headers':
|
|
1200
|
+
'headers': _0x17ed33,
|
|
1173
1201
|
'method': 'POST'
|
|
1174
1202
|
});
|
|
1175
1203
|
},
|
|
1176
|
-
async 'claimTasks'(
|
|
1177
|
-
const
|
|
1178
|
-
return
|
|
1179
|
-
'body': JSON[
|
|
1180
|
-
...
|
|
1181
|
-
'idempotency_key':
|
|
1204
|
+
async 'claimTasks'(_0x27433e) {
|
|
1205
|
+
const _0x183f36 = _0x14f5b3;
|
|
1206
|
+
return _0x539991('/internal/agent/' + _0x378182['agentId'] + _0x183f36(0x159), {
|
|
1207
|
+
'body': JSON[_0x183f36(0x277)]({
|
|
1208
|
+
..._0x27433e,
|
|
1209
|
+
'idempotency_key': _0x5682ba('claim_tasks', _0x27433e)
|
|
1182
1210
|
}),
|
|
1183
|
-
'headers':
|
|
1184
|
-
'method':
|
|
1211
|
+
'headers': _0x17ed33,
|
|
1212
|
+
'method': _0x183f36(0x204)
|
|
1185
1213
|
});
|
|
1186
1214
|
},
|
|
1187
|
-
async 'unclaimTask'(
|
|
1188
|
-
const
|
|
1189
|
-
return
|
|
1190
|
-
'body': JSON[
|
|
1191
|
-
...
|
|
1192
|
-
'idempotency_key':
|
|
1215
|
+
async 'unclaimTask'(_0x536e54) {
|
|
1216
|
+
const _0x13f166 = _0x14f5b3;
|
|
1217
|
+
return _0x539991(_0x13f166(_0x3b4247._0x59a1cc) + _0x378182[_0x13f166(_0x3b4247._0x506714)] + _0x13f166(_0x3b4247._0x7f0428), {
|
|
1218
|
+
'body': JSON[_0x13f166(_0x3b4247._0x18dc88)]({
|
|
1219
|
+
..._0x536e54,
|
|
1220
|
+
'idempotency_key': _0x5682ba(_0x13f166(_0x3b4247._0x23d91c), _0x536e54)
|
|
1193
1221
|
}),
|
|
1194
|
-
'headers':
|
|
1195
|
-
'method':
|
|
1222
|
+
'headers': _0x17ed33,
|
|
1223
|
+
'method': _0x13f166(0x204)
|
|
1196
1224
|
});
|
|
1197
1225
|
},
|
|
1198
|
-
async 'updateTaskStatus'(
|
|
1199
|
-
const
|
|
1200
|
-
return
|
|
1201
|
-
'body': JSON[
|
|
1202
|
-
...
|
|
1203
|
-
'idempotency_key':
|
|
1226
|
+
async 'updateTaskStatus'(_0x5626c1) {
|
|
1227
|
+
const _0xbdcc37 = _0x14f5b3;
|
|
1228
|
+
return _0x539991('/internal/agent/' + _0x378182['agentId'] + _0xbdcc37(_0x551db2._0x10f987), {
|
|
1229
|
+
'body': JSON[_0xbdcc37(0x277)]({
|
|
1230
|
+
..._0x5626c1,
|
|
1231
|
+
'idempotency_key': _0x5682ba(_0xbdcc37(0x1e8), _0x5626c1)
|
|
1204
1232
|
}),
|
|
1205
|
-
'headers':
|
|
1206
|
-
'method':
|
|
1233
|
+
'headers': _0x17ed33,
|
|
1234
|
+
'method': _0xbdcc37(_0x551db2._0x81e9fb)
|
|
1207
1235
|
});
|
|
1208
1236
|
},
|
|
1209
|
-
async 'uploadFile'(
|
|
1210
|
-
const
|
|
1211
|
-
if (
|
|
1212
|
-
throw new Error(
|
|
1213
|
-
const
|
|
1214
|
-
'body': JSON[
|
|
1215
|
-
'channel':
|
|
1216
|
-
'contentBase64':
|
|
1217
|
-
'contentType':
|
|
1218
|
-
'originalFilename':
|
|
1237
|
+
async 'uploadFile'(_0x536108) {
|
|
1238
|
+
const _0x253051 = _0x14f5b3, _0x40a82f = await _0x2ab924(_0x536108[_0x253051(_0x2e0c40._0x218a76)]);
|
|
1239
|
+
if (_0x40a82f[_0x253051(_0x2e0c40._0x4ad477)])
|
|
1240
|
+
throw new Error(_0x253051(_0x2e0c40._0xe54975));
|
|
1241
|
+
const _0x422047 = await _0x252eb3('/internal/agent/' + _0x378182[_0x253051(_0x2e0c40._0x5af325)] + _0x253051(_0x2e0c40._0x384a55), {
|
|
1242
|
+
'body': JSON[_0x253051(0x277)]({
|
|
1243
|
+
'channel': _0x40a82f[_0x253051(_0x2e0c40._0x4ebf94)],
|
|
1244
|
+
'contentBase64': _0x536108['contentBase64'],
|
|
1245
|
+
'contentType': _0x536108[_0x253051(_0x2e0c40._0x58a4be)],
|
|
1246
|
+
'originalFilename': _0x536108[_0x253051(0x274)]
|
|
1219
1247
|
}),
|
|
1220
|
-
'headers':
|
|
1221
|
-
'method':
|
|
1248
|
+
'headers': _0x17ed33,
|
|
1249
|
+
'method': _0x253051(0x204)
|
|
1222
1250
|
});
|
|
1223
1251
|
return {
|
|
1224
|
-
'attachmentId':
|
|
1225
|
-
'filename':
|
|
1226
|
-
'sizeBytes':
|
|
1252
|
+
'attachmentId': _0x422047[_0x253051(_0x2e0c40._0x102d81)]?.['id'] ?? '',
|
|
1253
|
+
'filename': _0x422047[_0x253051(_0x2e0c40._0x102d81)]?.[_0x253051(0x108)] ?? _0x536108['filename'],
|
|
1254
|
+
'sizeBytes': _0x422047[_0x253051(0x1ec)]?.[_0x253051(0x22d)] ?? 0x0
|
|
1227
1255
|
};
|
|
1228
1256
|
},
|
|
1229
|
-
async 'downloadAttachment'(
|
|
1230
|
-
const
|
|
1231
|
-
'headers':
|
|
1232
|
-
'method':
|
|
1233
|
-
}),
|
|
1257
|
+
async 'downloadAttachment'(_0x178b78) {
|
|
1258
|
+
const _0x77cba6 = _0x14f5b3, _0xe2ff58 = await _0x252eb3(_0x77cba6(_0x5afa7e._0x484ef9) + _0x178b78, {
|
|
1259
|
+
'headers': _0x17ed33,
|
|
1260
|
+
'method': _0x77cba6(_0x5afa7e._0x47dc05)
|
|
1261
|
+
}), _0x5672dd = new AbortController(), _0x1aedb3 = setTimeout(() => _0x5672dd[_0x77cba6(0x1c2)](), _0x4d11d4);
|
|
1234
1262
|
try {
|
|
1235
|
-
const
|
|
1236
|
-
'headers':
|
|
1237
|
-
'method':
|
|
1238
|
-
'signal':
|
|
1263
|
+
const _0x5b3cae = await _0x3d26df(_0xa0a276 + _0x77cba6(_0x5afa7e._0x12ee1a) + _0x178b78 + _0x77cba6(0x17f), {
|
|
1264
|
+
'headers': _0x17ed33,
|
|
1265
|
+
'method': _0x77cba6(_0x5afa7e._0x47dc05),
|
|
1266
|
+
'signal': _0x5672dd[_0x77cba6(_0x5afa7e._0xffa40)]
|
|
1239
1267
|
});
|
|
1240
|
-
if (!
|
|
1241
|
-
throw new Error(
|
|
1268
|
+
if (!_0x5b3cae['ok'])
|
|
1269
|
+
throw new Error(_0x77cba6(0x19b) + _0x5b3cae['status']);
|
|
1242
1270
|
return {
|
|
1243
|
-
'contentType':
|
|
1244
|
-
'data': Buffer[
|
|
1245
|
-
'originalFilename':
|
|
1271
|
+
'contentType': _0xe2ff58[_0x77cba6(0x1ec)]?.[_0x77cba6(_0x5afa7e._0x409ccb)] ?? _0x5b3cae[_0x77cba6(_0x5afa7e._0x1bbb14)][_0x77cba6(_0x5afa7e._0x3f0ca5)](_0x77cba6(0x1e7)) ?? _0x77cba6(0x16d),
|
|
1272
|
+
'data': Buffer[_0x77cba6(0x1c8)](await _0x5b3cae['arrayBuffer']()),
|
|
1273
|
+
'originalFilename': _0xe2ff58[_0x77cba6(0x1ec)]?.[_0x77cba6(_0x5afa7e._0x449243)]
|
|
1246
1274
|
};
|
|
1247
1275
|
} finally {
|
|
1248
|
-
clearTimeout(
|
|
1276
|
+
clearTimeout(_0x1aedb3);
|
|
1249
1277
|
}
|
|
1250
1278
|
},
|
|
1251
1279
|
async 'listServer'() {
|
|
1252
|
-
return
|
|
1280
|
+
return _0x589a42({ 'forceRefresh': !![] });
|
|
1253
1281
|
},
|
|
1254
|
-
async 'readHistory'(
|
|
1255
|
-
const
|
|
1256
|
-
return
|
|
1257
|
-
'after':
|
|
1258
|
-
'before':
|
|
1259
|
-
'channelId':
|
|
1260
|
-
'channelTarget':
|
|
1261
|
-
'limit':
|
|
1262
|
-
'threadId':
|
|
1282
|
+
async 'readHistory'(_0x33a5ef) {
|
|
1283
|
+
const _0x37ddb1 = _0x14f5b3, _0x5e856b = await _0x2ab924(_0x33a5ef[_0x37ddb1(0x1f4)]);
|
|
1284
|
+
return _0x276c3f({
|
|
1285
|
+
'after': _0x33a5ef[_0x37ddb1(0x10d)],
|
|
1286
|
+
'before': _0x33a5ef['before'],
|
|
1287
|
+
'channelId': _0x5e856b[_0x37ddb1(_0x433d67._0xcd1b84)],
|
|
1288
|
+
'channelTarget': _0x5e856b[_0x37ddb1(0x226)],
|
|
1289
|
+
'limit': _0x33a5ef[_0x37ddb1(_0x433d67._0x445004)],
|
|
1290
|
+
'threadId': _0x5e856b[_0x37ddb1(0x259)]
|
|
1263
1291
|
});
|
|
1264
1292
|
},
|
|
1265
|
-
'resolveTarget':
|
|
1293
|
+
'resolveTarget': _0x2ab924,
|
|
1266
1294
|
async 'checkMessages'() {
|
|
1267
|
-
const
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
'
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1295
|
+
const _0x2ae633 = {
|
|
1296
|
+
_0xde1052: 0x177,
|
|
1297
|
+
_0x29b8fe: 0x1b8,
|
|
1298
|
+
_0x4e2d63: 0x1ca
|
|
1299
|
+
}, _0x14ebee = { _0x4f3474: 0x21d }, _0x39ea38 = _0x14f5b3, _0x352494 = new URLSearchParams();
|
|
1300
|
+
_0x352494[_0x39ea38(_0x2d1927._0x4d21cd)](_0x39ea38(0x1b3), String(_0x27020f));
|
|
1301
|
+
const _0x1ff6e6 = _0x352494[_0x39ea38(0x213)](), _0x379b8b = await _0x252eb3('/internal/agent/' + _0x378182[_0x39ea38(_0x2d1927._0x83e488)] + _0x39ea38(0x132) + (_0x1ff6e6 ? '?' + _0x1ff6e6 : ''), {
|
|
1302
|
+
'headers': _0x17ed33,
|
|
1303
|
+
'method': 'GET'
|
|
1304
|
+
}), _0x9c09e9 = _0x379b8b[_0x39ea38(0x1ec)] ?? [], _0x1bf5e1 = _0x379b8b[_0x39ea38(0x221)]?.[_0x39ea38(0x167)], _0x43f76d = _0x36b777 ? _0x9c09e9['filter'](_0x3fb05b => {
|
|
1305
|
+
const _0x2c462 = _0x39ea38;
|
|
1306
|
+
if (_0x3fb05b[_0x2c462(_0x14ebee._0x4f3474)] !== _0x2c462(0x219))
|
|
1278
1307
|
return ![];
|
|
1279
|
-
return
|
|
1280
|
-
}) :
|
|
1281
|
-
let
|
|
1282
|
-
|
|
1283
|
-
|
|
1308
|
+
return _0x437520(_0x36b777, asRecord(_0x3fb05b['payloadJson']));
|
|
1309
|
+
}) : _0x9c09e9, _0x43a4ba = _0x1bf5e1 !== void 0x0 ? _0x36b777 ? Math['max'](_0x27020f, _0x43f76d[_0x39ea38(0x18d)] > 0x0 ? _0x43f76d[_0x43f76d['length'] - 0x1][_0x39ea38(_0x2d1927._0x52a0fa)] : _0x27020f) : Math[_0x39ea38(0x16a)](_0x27020f, _0x1bf5e1) : _0x43f76d[_0x39ea38(0x18d)] > 0x0 ? Math['max'](_0x27020f, _0x43f76d[_0x43f76d[_0x39ea38(0x18d)] - 0x1]['seq']) : _0x27020f, _0xb61644 = _0x9c09e9[_0x39ea38(_0x2d1927._0x19e27d)](_0x1cfa66 => _0x1cfa66['aggregateType'] === _0x39ea38(0x219)), _0x207005 = _0x36b777 === void 0x0 && _0x3a9c60;
|
|
1310
|
+
let _0x5a9ec8 = await _0x589a42(), _0x1002d2 = new Map(_0x5a9ec8['channels'][_0x39ea38(0x21c)](_0x3d28d6 => [
|
|
1311
|
+
_0x3d28d6['id'],
|
|
1312
|
+
_0x3d28d6
|
|
1284
1313
|
]));
|
|
1285
|
-
const
|
|
1286
|
-
const
|
|
1287
|
-
return Boolean(
|
|
1314
|
+
const _0x3a573b = _0xb61644[_0x39ea38(0x157)](_0x1f8f5c => {
|
|
1315
|
+
const _0x33f983 = _0x39ea38, _0x4dc56e = asRecord(_0x1f8f5c[_0x33f983(_0x2ae633._0xde1052)]), _0x3433c4 = typeof _0x4dc56e?.[_0x33f983(0x1ca)] === _0x33f983(_0x2ae633._0x29b8fe) ? _0x4dc56e[_0x33f983(_0x2ae633._0x4e2d63)] : '';
|
|
1316
|
+
return Boolean(_0x3433c4) && !_0x1002d2['has'](_0x3433c4);
|
|
1288
1317
|
});
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1318
|
+
_0x3a573b && (_0x5a9ec8 = await _0x589a42({ 'forceRefresh': !![] }), _0x1002d2 = new Map(_0x5a9ec8[_0x39ea38(_0x2d1927._0x435e45)]['map'](_0x40ec9f => [
|
|
1319
|
+
_0x40ec9f['id'],
|
|
1320
|
+
_0x40ec9f
|
|
1292
1321
|
])));
|
|
1293
|
-
const
|
|
1294
|
-
for (const
|
|
1295
|
-
const
|
|
1296
|
-
if (!
|
|
1322
|
+
const _0x4d2ccb = new Map();
|
|
1323
|
+
for (const _0x4c92e3 of _0xb61644) {
|
|
1324
|
+
const _0x109b31 = asRecord(_0x4c92e3['payloadJson']), _0x589b27 = typeof _0x109b31[_0x39ea38(_0x2d1927._0x4f2e20)] === _0x39ea38(0x1b8) ? _0x109b31[_0x39ea38(0x1ca)] : '';
|
|
1325
|
+
if (!_0x589b27)
|
|
1297
1326
|
continue;
|
|
1298
|
-
const
|
|
1327
|
+
const _0x449b09 = typeof _0x109b31['threadId'] === _0x39ea38(0x1b8) ? _0x109b31[_0x39ea38(0x259)] : void 0x0, _0x1db4a0 = typeof _0x109b31[_0x39ea38(0x17b)] === 'string' ? _0x109b31[_0x39ea38(_0x2d1927._0xfb7054)] : void 0x0, _0x44a7af = typeof _0x109b31[_0x39ea38(_0x2d1927._0x4ee86c)] === _0x39ea38(0x17a) && Number[_0x39ea38(0x15f)](_0x109b31[_0x39ea38(0x147)]) ? _0x109b31['threadNumber'] : void 0x0, _0xb3e995 = Boolean(_0x449b09 && (!_0x1db4a0 || _0x4c92e3['aggregateId'] !== _0x1db4a0)), _0x2ab979 = _0xb3e995 ? _0x589b27 + ':' + _0x449b09 : _0x589b27, _0x1990ac = _0x4d2ccb[_0x39ea38(_0x2d1927._0x9e8ef3)](_0x2ab979) ?? {
|
|
1299
1328
|
'aggregateIds': [],
|
|
1300
|
-
'channelId':
|
|
1329
|
+
'channelId': _0x589b27,
|
|
1301
1330
|
'entries': new Map(),
|
|
1302
|
-
'isThreadReply':
|
|
1303
|
-
'rootMessageId':
|
|
1304
|
-
'threadNumber':
|
|
1305
|
-
'threadId':
|
|
1331
|
+
'isThreadReply': _0xb3e995,
|
|
1332
|
+
'rootMessageId': _0x1db4a0,
|
|
1333
|
+
'threadNumber': _0x44a7af,
|
|
1334
|
+
'threadId': _0xb3e995 ? _0x449b09 : void 0x0
|
|
1306
1335
|
};
|
|
1307
|
-
|
|
1308
|
-
'payloadJson':
|
|
1309
|
-
'seq':
|
|
1310
|
-
}),
|
|
1336
|
+
_0x1990ac[_0x39ea38(0x147)] == null && _0x44a7af != null && (_0x1990ac['threadNumber'] = _0x44a7af), !_0x1990ac[_0x39ea38(0x17b)] && _0x1db4a0 && (_0x1990ac[_0x39ea38(0x17b)] = _0x1db4a0), _0x1990ac['aggregateIds'][_0x39ea38(0x13c)](_0x4c92e3['aggregateId']), _0x1990ac[_0x39ea38(_0x2d1927._0x13c76e)]['set'](_0x4c92e3['aggregateId'], {
|
|
1337
|
+
'payloadJson': _0x4c92e3[_0x39ea38(0x177)],
|
|
1338
|
+
'seq': _0x4c92e3[_0x39ea38(0x107)]
|
|
1339
|
+
}), _0x4d2ccb[_0x39ea38(0x190)](_0x2ab979, _0x1990ac);
|
|
1311
1340
|
}
|
|
1312
|
-
const
|
|
1313
|
-
for (const
|
|
1341
|
+
const _0x1a2f7f = [];
|
|
1342
|
+
for (const _0x969a30 of _0x4d2ccb[_0x39ea38(0x1f6)]()) {
|
|
1314
1343
|
const {
|
|
1315
|
-
channelId:
|
|
1316
|
-
threadId:
|
|
1317
|
-
rootMessageId:
|
|
1318
|
-
threadNumber:
|
|
1319
|
-
aggregateIds:
|
|
1320
|
-
isThreadReply:
|
|
1321
|
-
entries:
|
|
1322
|
-
} =
|
|
1323
|
-
'channelTarget':
|
|
1324
|
-
'rootMessageId':
|
|
1325
|
-
'threadId':
|
|
1326
|
-
'threadNumber':
|
|
1327
|
-
},
|
|
1328
|
-
'channelId':
|
|
1329
|
-
'channelTarget':
|
|
1330
|
-
'limit': Math[
|
|
1331
|
-
'threadId':
|
|
1332
|
-
}),
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
])),
|
|
1336
|
-
for (const
|
|
1337
|
-
if (!
|
|
1344
|
+
channelId: _0x3dcb9b,
|
|
1345
|
+
threadId: _0x52968f,
|
|
1346
|
+
rootMessageId: _0x3708a9,
|
|
1347
|
+
threadNumber: _0x4ed0ce,
|
|
1348
|
+
aggregateIds: _0x25f0fd,
|
|
1349
|
+
isThreadReply: _0x3507f1,
|
|
1350
|
+
entries: _0x2df93c
|
|
1351
|
+
} = _0x969a30, _0x16c365 = _0x1002d2['get'](_0x3dcb9b), _0x5652a3 = _0x16c365?.[_0x39ea38(0x173)] ?? _0x3dcb9b, _0x22e8c6 = _0x16c365?.['kind'] === 'dm' ? _0x39ea38(0x1e2) + _0x5652a3 : '#' + _0x5652a3, _0x22497b = {
|
|
1352
|
+
'channelTarget': _0x22e8c6,
|
|
1353
|
+
'rootMessageId': _0x3708a9,
|
|
1354
|
+
'threadId': _0x52968f,
|
|
1355
|
+
'threadNumber': _0x4ed0ce
|
|
1356
|
+
}, _0x37cd25 = await _0x276c3f({
|
|
1357
|
+
'channelId': _0x3dcb9b,
|
|
1358
|
+
'channelTarget': _0x22e8c6,
|
|
1359
|
+
'limit': Math[_0x39ea38(_0x2d1927._0x9e4912)](_0x25f0fd[_0x39ea38(_0x2d1927._0x2a59ab)], 0x32),
|
|
1360
|
+
'threadId': _0x52968f
|
|
1361
|
+
}), _0x3fc3ab = new Map(_0x37cd25[_0x39ea38(_0x2d1927._0x1741c5)]['map'](_0x23ca70 => [
|
|
1362
|
+
_0x23ca70[_0x39ea38(0x161)],
|
|
1363
|
+
_0x23ca70
|
|
1364
|
+
])), _0x5a5516 = _0x52968f ? _0xb2570f(_0x22497b) : _0x22e8c6, _0x2ed4f3 = _0x36b777 ? _0x3507f1 && _0x1b6776(_0x36b777, _0x22497b) : !![], _0x46dcf9 = _0x3507f1 ? _0x2ed4f3 && _0x36b777 ? _0x36b777 : _0x5a5516 : _0x22e8c6;
|
|
1365
|
+
for (const _0x231145 of _0x25f0fd) {
|
|
1366
|
+
if (!_0x2ed4f3)
|
|
1338
1367
|
continue;
|
|
1339
|
-
const
|
|
1340
|
-
if (
|
|
1368
|
+
const _0x3402fc = _0x2df93c[_0x39ea38(0x171)](_0x231145), _0x342eb6 = _0x3402fc ? asRecord(_0x3402fc['payloadJson']) : void 0x0, _0x3dd364 = _0x342eb6?.['taskDeliveryMode'] === 'targeted';
|
|
1369
|
+
if (_0x207005 && _0x3dd364)
|
|
1341
1370
|
continue;
|
|
1342
|
-
const
|
|
1343
|
-
if (
|
|
1344
|
-
|
|
1345
|
-
'attachments':
|
|
1346
|
-
'content':
|
|
1347
|
-
'createdAt':
|
|
1348
|
-
...
|
|
1349
|
-
'messageId':
|
|
1350
|
-
'senderName':
|
|
1351
|
-
'senderType':
|
|
1352
|
-
'target':
|
|
1353
|
-
...
|
|
1371
|
+
const _0x3df688 = _0x3fc3ab[_0x39ea38(0x171)](_0x231145);
|
|
1372
|
+
if (_0x3df688) {
|
|
1373
|
+
_0x1a2f7f['push']({
|
|
1374
|
+
'attachments': _0x3df688[_0x39ea38(0x186)],
|
|
1375
|
+
'content': _0x3df688[_0x39ea38(_0x2d1927._0x4713f5)],
|
|
1376
|
+
'createdAt': _0x3df688[_0x39ea38(0x1d0)],
|
|
1377
|
+
..._0x3df688[_0x39ea38(_0x2d1927._0x1e41a7)] ? { 'kind': _0x3df688[_0x39ea38(0x1c6)] } : {},
|
|
1378
|
+
'messageId': _0x3df688['messageId'],
|
|
1379
|
+
'senderName': _0x3df688[_0x39ea38(0x19c)],
|
|
1380
|
+
'senderType': _0x3df688[_0x39ea38(_0x2d1927._0x517379)],
|
|
1381
|
+
'target': _0x46dcf9,
|
|
1382
|
+
..._0x3dd364 ? { 'targetedTask': !![] } : {}
|
|
1354
1383
|
});
|
|
1355
1384
|
continue;
|
|
1356
1385
|
}
|
|
1357
|
-
if (
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1386
|
+
if (_0x3402fc) {
|
|
1387
|
+
const _0x18ab34 = typeof _0x342eb6?.['senderParticipantId'] === _0x39ea38(0x1b8) ? _0x342eb6[_0x39ea38(0x191)] : '', _0x1f6f84 = typeof _0x342eb6?.['bodyMarkdown'] === 'string' ? _0x342eb6[_0x39ea38(_0x2d1927._0x26e3e1)] : '', _0x4b96b1 = typeof _0x342eb6?.[_0x39ea38(0x1c6)] === _0x39ea38(_0x2d1927._0x5eeca6) && _0x342eb6[_0x39ea38(0x1c6)] !== _0x39ea38(0x1da) ? _0x342eb6['kind'] : void 0x0;
|
|
1388
|
+
_0x18ab34 && _0x1f6f84 && _0x1a2f7f[_0x39ea38(_0x2d1927._0x42e902)]({
|
|
1360
1389
|
'attachments': [],
|
|
1361
|
-
'content':
|
|
1362
|
-
'createdAt': new Date()[
|
|
1363
|
-
...
|
|
1364
|
-
'messageId':
|
|
1365
|
-
'senderName':
|
|
1366
|
-
'senderType':
|
|
1367
|
-
'target':
|
|
1368
|
-
...
|
|
1390
|
+
'content': _0x1f6f84,
|
|
1391
|
+
'createdAt': new Date()[_0x39ea38(_0x2d1927._0x359c47)](),
|
|
1392
|
+
..._0x4b96b1 ? { 'kind': _0x4b96b1 } : {},
|
|
1393
|
+
'messageId': _0x231145,
|
|
1394
|
+
'senderName': _0x18ab34,
|
|
1395
|
+
'senderType': _0x189ec4(_0x18ab34, _0x5a9ec8),
|
|
1396
|
+
'target': _0x46dcf9,
|
|
1397
|
+
..._0x3dd364 ? { 'targetedTask': !![] } : {}
|
|
1369
1398
|
});
|
|
1370
1399
|
}
|
|
1371
1400
|
}
|
|
1372
1401
|
}
|
|
1373
|
-
if (
|
|
1374
|
-
if (
|
|
1375
|
-
await
|
|
1402
|
+
if (_0x43a4ba > 0x0) {
|
|
1403
|
+
if (_0x329f69)
|
|
1404
|
+
await _0x3b3a19(_0x43a4ba);
|
|
1376
1405
|
else
|
|
1377
|
-
|
|
1406
|
+
_0x5b02cc && await _0x152b64(_0x43a4ba);
|
|
1378
1407
|
}
|
|
1379
|
-
return
|
|
1408
|
+
return _0x43a4ba > _0x27020f && (_0x27020f = _0x43a4ba), { 'messages': _0x36b777 ? _0x1a2f7f : _0x207005 ? _0x1a2f7f[_0x39ea38(0x20f)](_0x2cbab1 => _0x2cbab1[_0x39ea38(0x1d3)] !== !![]) : _0x1a2f7f };
|
|
1380
1409
|
}
|
|
1381
1410
|
};
|
|
1382
1411
|
}
|
|
1383
|
-
function toLocalTime(
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
return _0x2245fb[_0x22b6cd(_0xd6adb1._0x4e1f38)]() + '-' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x2e6)]() + 0x1) + '-' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x2bf)]()) + '\x20' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x181)]()) + ':' + _0x2dc4d8(_0x2245fb[_0x22b6cd(_0xd6adb1._0x1aa32f)]()) + ':' + _0x2dc4d8(_0x2245fb['getSeconds']());
|
|
1412
|
+
function toLocalTime(_0x57466f) {
|
|
1413
|
+
const _0x3d861f = {
|
|
1414
|
+
_0x27b3f5: 0x12b,
|
|
1415
|
+
_0x442446: 0x12a
|
|
1416
|
+
}, _0x4fd368 = _0x3cf5af, _0x3452a6 = new Date(_0x57466f);
|
|
1417
|
+
if (Number[_0x4fd368(0x1d6)](_0x3452a6[_0x4fd368(0x19e)]()))
|
|
1418
|
+
return _0x57466f;
|
|
1419
|
+
const _0x333f1d = _0x384f59 => String(_0x384f59)['padStart'](0x2, '0');
|
|
1420
|
+
return _0x3452a6[_0x4fd368(_0x3d861f._0x27b3f5)]() + '-' + _0x333f1d(_0x3452a6['getMonth']() + 0x1) + '-' + _0x333f1d(_0x3452a6[_0x4fd368(0x106)]()) + '\x20' + _0x333f1d(_0x3452a6[_0x4fd368(0x10a)]()) + ':' + _0x333f1d(_0x3452a6[_0x4fd368(_0x3d861f._0x442446)]()) + ':' + _0x333f1d(_0x3452a6['getSeconds']());
|
|
1393
1421
|
}
|
|
1394
|
-
function formatAttachmentSuffix(
|
|
1395
|
-
const
|
|
1396
|
-
|
|
1397
|
-
_0x5abd23: 0x272,
|
|
1398
|
-
_0x479f15: 0x1ca
|
|
1399
|
-
}, _0x3bb45b = _0x28aee3;
|
|
1400
|
-
if (!_0x2daf26 || _0x2daf26['length'] === 0x0)
|
|
1422
|
+
function formatAttachmentSuffix(_0xeabbfc) {
|
|
1423
|
+
const _0x1cd8b6 = { _0x190a57: 0x146 }, _0x468454 = _0x3cf5af;
|
|
1424
|
+
if (!_0xeabbfc || _0xeabbfc[_0x468454(0x18d)] === 0x0)
|
|
1401
1425
|
return '';
|
|
1402
|
-
return '\x20[' +
|
|
1426
|
+
return '\x20[' + _0xeabbfc[_0x468454(0x18d)] + '\x20attachment' + (_0xeabbfc['length'] > 0x1 ? 's' : '') + ':\x20' + _0xeabbfc[_0x468454(0x21c)](_0x549148 => _0x549148[_0x468454(0x274)] + _0x468454(0x1c3) + _0x549148['id'] + ')')[_0x468454(_0x1cd8b6._0x190a57)](',\x20') + _0x468454(0x131);
|
|
1403
1427
|
}
|
|
1404
|
-
function formatCheckMessages(
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1428
|
+
function formatCheckMessages(_0x5cc297) {
|
|
1429
|
+
const _0x5a74dd = {
|
|
1430
|
+
_0x31e22d: 0x27c,
|
|
1431
|
+
_0xbc75ec: 0x21c
|
|
1432
|
+
}, _0x7c29cf = {
|
|
1433
|
+
_0xc61287: 0x14e,
|
|
1434
|
+
_0x1e5983: 0x1c6,
|
|
1435
|
+
_0x31a021: 0x275,
|
|
1436
|
+
_0x58cb91: 0x161,
|
|
1437
|
+
_0x401655: 0x1d0,
|
|
1438
|
+
_0x960047: 0x19c
|
|
1439
|
+
}, _0x3ca9fe = _0x3cf5af;
|
|
1440
|
+
if (_0x5cc297['length'] === 0x0)
|
|
1441
|
+
return _0x3ca9fe(_0x5a74dd._0x31e22d);
|
|
1442
|
+
return _0x5cc297[_0x3ca9fe(_0x5a74dd._0xbc75ec)](_0x147295 => {
|
|
1443
|
+
const _0x547f9c = _0x3ca9fe, _0x3b04db = _0x147295['senderType'] === 'agent' ? _0x547f9c(_0x7c29cf._0xc61287) : '', _0x313767 = _0x147295[_0x547f9c(_0x7c29cf._0x1e5983)] && _0x147295['kind'] !== _0x547f9c(0x1da) ? _0x547f9c(0x1ba) + _0x147295['kind'] : '';
|
|
1444
|
+
return '[target=' + _0x147295[_0x547f9c(0x226)] + _0x547f9c(_0x7c29cf._0x31a021) + _0x147295[_0x547f9c(_0x7c29cf._0x58cb91)][_0x547f9c(0x26d)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x147295[_0x547f9c(_0x7c29cf._0x401655)]) + _0x3b04db + _0x313767 + _0x547f9c(0x216) + _0x147295[_0x547f9c(_0x7c29cf._0x960047)] + ':\x20' + _0x147295[_0x547f9c(0x26f)] + formatAttachmentSuffix(_0x147295['attachments']);
|
|
1445
|
+
})[_0x3ca9fe(0x146)]('\x0a');
|
|
1416
1446
|
}
|
|
1417
|
-
function formatHistory(
|
|
1418
|
-
const
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
},
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1447
|
+
function formatHistory(_0xc4863) {
|
|
1448
|
+
const _0x498fea = {
|
|
1449
|
+
_0x50848f: 0x1a4,
|
|
1450
|
+
_0x371955: 0x21c,
|
|
1451
|
+
_0x37125f: 0x146,
|
|
1452
|
+
_0x55c64d: 0x1cd,
|
|
1453
|
+
_0x4bf02a: 0x256,
|
|
1454
|
+
_0x27bdcb: 0x1a6,
|
|
1455
|
+
_0x378c78: 0x25b,
|
|
1456
|
+
_0x4e480a: 0x1f4
|
|
1457
|
+
}, _0x700955 = {
|
|
1458
|
+
_0x1949f3: 0x260,
|
|
1459
|
+
_0x498696: 0x14e,
|
|
1460
|
+
_0x10cffd: 0x1c6,
|
|
1461
|
+
_0x2d0592: 0x1ba,
|
|
1462
|
+
_0x134021: 0x286,
|
|
1463
|
+
_0x4fde1c: 0x107,
|
|
1464
|
+
_0x28ddc4: 0x161,
|
|
1465
|
+
_0x5e1baf: 0x216,
|
|
1466
|
+
_0x46b4f6: 0x19c,
|
|
1467
|
+
_0x12dab7: 0x186
|
|
1468
|
+
}, _0x5588c1 = _0x3cf5af;
|
|
1469
|
+
if (_0xc4863[_0x5588c1(0x256)]['length'] === 0x0)
|
|
1470
|
+
return _0x5588c1(_0x498fea._0x50848f) + _0xc4863[_0x5588c1(0x1f4)] + _0x5588c1(0x227);
|
|
1471
|
+
const _0x510902 = _0xc4863[_0x5588c1(0x256)][_0x5588c1(_0x498fea._0x371955)](_0x4c83e6 => {
|
|
1472
|
+
const _0x35cca2 = _0x5588c1, _0x422477 = _0x4c83e6[_0x35cca2(_0x700955._0x1949f3)] === _0x35cca2(0x28e) ? _0x35cca2(_0x700955._0x498696) : '', _0x8d5477 = _0x4c83e6[_0x35cca2(_0x700955._0x10cffd)] && _0x4c83e6['kind'] !== _0x35cca2(0x1da) ? _0x35cca2(_0x700955._0x2d0592) + _0x4c83e6['kind'] : '';
|
|
1473
|
+
return _0x35cca2(_0x700955._0x134021) + _0x4c83e6[_0x35cca2(_0x700955._0x4fde1c)] + _0x35cca2(0x275) + _0x4c83e6[_0x35cca2(_0x700955._0x28ddc4)] + '\x20time=' + toLocalTime(_0x4c83e6[_0x35cca2(0x1d0)]) + _0x422477 + _0x8d5477 + _0x35cca2(_0x700955._0x5e1baf) + _0x4c83e6[_0x35cca2(_0x700955._0x46b4f6)] + ':\x20' + _0x4c83e6[_0x35cca2(0x26f)] + formatAttachmentSuffix(_0x4c83e6[_0x35cca2(_0x700955._0x12dab7)]);
|
|
1474
|
+
})[_0x5588c1(_0x498fea._0x37125f)]('\x0a'), _0x80e10f = _0xc4863[_0x5588c1(0x12e)] && _0xc4863[_0x5588c1(0x25b)] ? _0x5588c1(_0x498fea._0x55c64d) + _0xc4863[_0x5588c1(_0x498fea._0x4bf02a)][_0x5588c1(0x18d)] + _0x5588c1(_0x498fea._0x27bdcb) + _0xc4863[_0x5588c1(_0x498fea._0x378c78)] + _0x5588c1(0x198) : '';
|
|
1475
|
+
return _0x5588c1(0x1a4) + _0xc4863[_0x5588c1(_0x498fea._0x4e480a)] + '\x20(' + _0xc4863[_0x5588c1(0x256)]['length'] + _0x5588c1(0x133) + _0x510902 + _0x80e10f;
|
|
1445
1476
|
}
|
|
1446
|
-
function formatServerDirectory(
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
_0x262af8: 0x184
|
|
1457
|
-
}, _0x3f236c = _0x28aee3, _0x548bd5 = _0x1c532b['channels']['length'] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x92d4d1)][_0x3f236c(_0x10be98._0x2797d2)](_0x2a7cb7 => _0x2a7cb7[_0x3f236c(0x2ea)] ? _0x3f236c(0x2b8) + _0x2a7cb7['name'] + _0x3f236c(0x2cb) + _0x2a7cb7['description'] : '-\x20#' + _0x2a7cb7[_0x3f236c(0x1e5)])['join']('\x0a') : _0x3f236c(0x292), _0x310292 = _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(_0x10be98._0x58d163)] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(0x272)](_0x43f38f => '-\x20@' + _0x43f38f[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : _0x3f236c(_0x10be98._0x402e8c), _0x16ad94 = _0x1c532b['humans'][_0x3f236c(_0x10be98._0x1161a8)] > 0x0 ? _0x1c532b['humans']['map'](_0x57c717 => _0x3f236c(0x2a9) + _0x57c717[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : '(none)';
|
|
1477
|
+
function formatServerDirectory(_0x39d7ca) {
|
|
1478
|
+
const _0x2fba02 = {
|
|
1479
|
+
_0x3964b7: 0x284,
|
|
1480
|
+
_0x3ac035: 0x21c,
|
|
1481
|
+
_0x5cd3a4: 0x1d2,
|
|
1482
|
+
_0x1077f6: 0x245,
|
|
1483
|
+
_0x30e0ed: 0x245,
|
|
1484
|
+
_0x41c041: 0x18d,
|
|
1485
|
+
_0x3a7f17: 0x20e
|
|
1486
|
+
}, _0x5b98ab = _0x3cf5af, _0xb73205 = _0x39d7ca['channels']['length'] > 0x0 ? _0x39d7ca[_0x5b98ab(_0x2fba02._0x3964b7)][_0x5b98ab(_0x2fba02._0x3ac035)](_0x300cb1 => _0x300cb1[_0x5b98ab(0x13e)] ? _0x5b98ab(0x137) + _0x300cb1['name'] + '\x20—\x20' + _0x300cb1[_0x5b98ab(0x13e)] : _0x5b98ab(0x137) + _0x300cb1[_0x5b98ab(0x173)])['join']('\x0a') : _0x5b98ab(_0x2fba02._0x5cd3a4), _0x2be49f = _0x39d7ca[_0x5b98ab(_0x2fba02._0x1077f6)][_0x5b98ab(0x18d)] > 0x0 ? _0x39d7ca[_0x5b98ab(_0x2fba02._0x30e0ed)]['map'](_0x2b9229 => _0x5b98ab(0x27e) + _0x2b9229[_0x5b98ab(0x173)])[_0x5b98ab(0x146)]('\x0a') : _0x5b98ab(0x1d2), _0x585bb6 = _0x39d7ca[_0x5b98ab(0x276)][_0x5b98ab(_0x2fba02._0x41c041)] > 0x0 ? _0x39d7ca['humans'][_0x5b98ab(_0x2fba02._0x3ac035)](_0x58e992 => '-\x20@' + _0x58e992['name'])[_0x5b98ab(0x146)]('\x0a') : '(none)';
|
|
1458
1487
|
return [
|
|
1459
|
-
|
|
1488
|
+
_0x5b98ab(0x126) + _0x39d7ca[_0x5b98ab(_0x2fba02._0x3a7f17)],
|
|
1460
1489
|
'',
|
|
1461
|
-
|
|
1462
|
-
|
|
1490
|
+
_0x5b98ab(0x28b),
|
|
1491
|
+
_0xb73205,
|
|
1463
1492
|
'',
|
|
1464
1493
|
'###\x20Agents',
|
|
1465
|
-
|
|
1494
|
+
_0x2be49f,
|
|
1466
1495
|
'',
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
][
|
|
1496
|
+
_0x5b98ab(0x120),
|
|
1497
|
+
_0x585bb6
|
|
1498
|
+
][_0x5b98ab(0x146)]('\x0a');
|
|
1470
1499
|
}
|
|
1471
|
-
function formatUploadResult(
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
return 'File\x20uploaded:\x20' + _0x197b77[_0x2ad0ec(0x2a0)] + '\x20(' + (_0x197b77[_0x2ad0ec(_0x44e965._0xce7480)] / 0x400)[_0x2ad0ec(_0x44e965._0x2f7780)](0x1) + _0x2ad0ec(0x27e) + _0x197b77[_0x2ad0ec(0x285)] + _0x2ad0ec(_0x44e965._0xd79903);
|
|
1500
|
+
function formatUploadResult(_0x5607b6) {
|
|
1501
|
+
const _0x362f42 = {
|
|
1502
|
+
_0x5b7bc6: 0x274,
|
|
1503
|
+
_0x295564: 0x220
|
|
1504
|
+
}, _0x538f67 = _0x3cf5af;
|
|
1505
|
+
return 'File\x20uploaded:\x20' + _0x5607b6[_0x538f67(_0x362f42._0x5b7bc6)] + '\x20(' + (_0x5607b6[_0x538f67(0x22d)] / 0x400)[_0x538f67(_0x362f42._0x295564)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x5607b6[_0x538f67(0x225)] + _0x538f67(0x139);
|
|
1478
1506
|
}
|
|
1479
|
-
function formatViewFileResult(
|
|
1480
|
-
const
|
|
1481
|
-
return
|
|
1507
|
+
function formatViewFileResult(_0x1c00f4, _0x539a66) {
|
|
1508
|
+
const _0x5ace29 = { _0x4530e4: 0x20a }, _0x71503e = _0x3cf5af;
|
|
1509
|
+
return _0x539a66 ? _0x71503e(_0x5ace29._0x4530e4) + _0x1c00f4 : _0x71503e(0x181) + _0x1c00f4;
|
|
1482
1510
|
}
|
|
1483
|
-
function formatTaskList(
|
|
1484
|
-
const
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
return
|
|
1501
|
-
|
|
1511
|
+
function formatTaskList(_0x2101bd, _0x2e0ac8) {
|
|
1512
|
+
const _0x25ebb7 = { _0x2c2879: 0x16f }, _0x35cb77 = {
|
|
1513
|
+
_0x5d584a: 0x1b9,
|
|
1514
|
+
_0x3ea58e: 0x12f,
|
|
1515
|
+
_0x12f9f0: 0x1b9,
|
|
1516
|
+
_0x2f3f9c: 0x12f,
|
|
1517
|
+
_0x20b4b0: 0x1b9,
|
|
1518
|
+
_0x53f7c4: 0x161,
|
|
1519
|
+
_0x4e10c8: 0x12f,
|
|
1520
|
+
_0x21d376: 0x25c,
|
|
1521
|
+
_0x2caa2b: 0x174,
|
|
1522
|
+
_0xaad358: 0x1a8,
|
|
1523
|
+
_0x56d10c: 0x193,
|
|
1524
|
+
_0x21251a: 0x291,
|
|
1525
|
+
_0x1e082b: 0x122
|
|
1526
|
+
}, _0x15d448 = _0x3cf5af;
|
|
1527
|
+
if (_0x2101bd[_0x15d448(0x18d)] === 0x0)
|
|
1528
|
+
return _0x15d448(_0x25ebb7._0x2c2879);
|
|
1529
|
+
return _0x2101bd[_0x15d448(0x21c)](_0x523776 => {
|
|
1530
|
+
const _0x582655 = _0x15d448, _0x44e56f = _0x523776[_0x582655(_0x35cb77._0x5d584a)] == null ? _0x582655(0x182) : _0x523776[_0x582655(_0x35cb77._0x3ea58e)] != null ? '#' + _0x523776[_0x582655(_0x35cb77._0x12f9f0)] + '.' + _0x523776[_0x582655(_0x35cb77._0x2f3f9c)] : '#' + _0x523776[_0x582655(_0x35cb77._0x20b4b0)], _0x220a7e = _0x523776['messageId'] ? _0x582655(0x244) + _0x523776[_0x582655(_0x35cb77._0x53f7c4)] : '', _0x4b1060 = _0x2e0ac8 && _0x523776[_0x582655(0x1b9)] != null && !_0x523776[_0x582655(_0x35cb77._0x4e10c8)] && _0x2e0ac8[_0x582655(_0x35cb77._0x21d376)](_0x523776[_0x582655(0x1b9)]) ? _0x582655(_0x35cb77._0x2caa2b) : '', _0x1288d0 = _0x523776[_0x582655(0x17c)] != null && _0x523776[_0x582655(0x17c)] > 0x0 ? '\x20(' + (_0x523776[_0x582655(_0x35cb77._0xaad358)] ?? 0x0) + '/' + _0x523776['childrenTotal'] + _0x582655(_0x35cb77._0x56d10c) : '';
|
|
1531
|
+
return _0x44e56f + '\x20[' + _0x523776[_0x582655(_0x35cb77._0x21251a)] + ']\x20' + _0x523776[_0x582655(_0x35cb77._0x1e082b)] + _0x1288d0 + _0x220a7e + _0x4b1060;
|
|
1532
|
+
})[_0x15d448(0x146)]('\x0a');
|
|
1502
1533
|
}
|
|
1503
|
-
function
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
}
|
|
1521
|
-
const _0x8d698e = _0x2e92a6[0x0], _0x5420ec = _0x3e36fe + _0x8d698e, _0x27b8b7 = _0x41c3['OyedTw'][_0x5420ec];
|
|
1522
|
-
return !_0x27b8b7 ? (_0x41c3e3 = _0x41c3['FWxGIC'](_0x41c3e3), _0x41c3['OyedTw'][_0x5420ec] = _0x41c3e3) : _0x41c3e3 = _0x27b8b7, _0x41c3e3;
|
|
1534
|
+
function formatCreatedTasks(_0x5148cf) {
|
|
1535
|
+
const _0x543f7b = {
|
|
1536
|
+
_0x401d6e: 0x18d,
|
|
1537
|
+
_0x199d43: 0x21c
|
|
1538
|
+
}, _0x3e3551 = {
|
|
1539
|
+
_0x2ae782: 0x1b9,
|
|
1540
|
+
_0x5d7ed5: 0x182,
|
|
1541
|
+
_0x559dc3: 0x12f,
|
|
1542
|
+
_0x4ca73b: 0x12f,
|
|
1543
|
+
_0x17269d: 0x244,
|
|
1544
|
+
_0x3c68a7: 0x161
|
|
1545
|
+
}, _0x2d6567 = _0x3cf5af;
|
|
1546
|
+
if (_0x5148cf[_0x2d6567(_0x543f7b._0x401d6e)] === 0x0)
|
|
1547
|
+
return _0x2d6567(0x119);
|
|
1548
|
+
return _0x5148cf[_0x2d6567(_0x543f7b._0x199d43)](_0x583330 => {
|
|
1549
|
+
const _0xe92ddc = _0x2d6567, _0x114ce5 = _0x583330[_0xe92ddc(_0x3e3551._0x2ae782)] == null ? _0xe92ddc(_0x3e3551._0x5d7ed5) : _0x583330[_0xe92ddc(_0x3e3551._0x559dc3)] != null ? '#' + _0x583330[_0xe92ddc(0x1b9)] + '.' + _0x583330[_0xe92ddc(_0x3e3551._0x4ca73b)] : '#' + _0x583330['taskNumber'], _0xea5cb = _0x583330['messageId'] ? _0xe92ddc(_0x3e3551._0x17269d) + _0x583330[_0xe92ddc(_0x3e3551._0x3c68a7)] : '';
|
|
1550
|
+
return _0x114ce5 + '\x20' + _0x583330['title'] + _0xea5cb;
|
|
1551
|
+
})['join']('\x0a');
|
|
1523
1552
|
}
|
|
1524
|
-
function
|
|
1525
|
-
|
|
1526
|
-
_0x4edde0: 0x19b,
|
|
1527
|
-
_0x661628: 0x272
|
|
1528
|
-
}, _0x10d1fb = {
|
|
1529
|
-
_0x12764c: 0x1c5,
|
|
1530
|
-
_0x1b4f8a: 0x2c1
|
|
1531
|
-
}, _0x2c6db9 = _0x28aee3;
|
|
1532
|
-
if (_0x2ca879[_0x2c6db9(_0x3e4462._0x4edde0)] === 0x0)
|
|
1533
|
-
return _0x2c6db9(0x28c);
|
|
1534
|
-
return _0x2ca879[_0x2c6db9(_0x3e4462._0x661628)](_0x2ee3db => {
|
|
1535
|
-
const _0x32617 = _0x2c6db9, _0xc376a5 = _0x2ee3db['taskNumber'] == null ? '(legacy)' : _0x2ee3db['subtaskNumber'] != null ? '#' + _0x2ee3db['taskNumber'] + '.' + _0x2ee3db['subtaskNumber'] : '#' + _0x2ee3db[_0x32617(0x2b6)], _0x275476 = _0x2ee3db[_0x32617(0x18d)] ? _0x32617(_0x10d1fb._0x12764c) + _0x2ee3db[_0x32617(0x18d)] : '';
|
|
1536
|
-
return _0xc376a5 + '\x20' + _0x2ee3db[_0x32617(_0x10d1fb._0x1b4f8a)] + _0x275476;
|
|
1537
|
-
})[_0x2c6db9(0x1dd)]('\x0a');
|
|
1538
|
-
}
|
|
1539
|
-
function formatClaimTaskLabel(_0x21e71a, _0x2561ca) {
|
|
1540
|
-
if (_0x21e71a == null)
|
|
1553
|
+
function formatClaimTaskLabel(_0x298aad, _0x1195f5) {
|
|
1554
|
+
if (_0x298aad == null)
|
|
1541
1555
|
return '(legacy)';
|
|
1542
|
-
return
|
|
1556
|
+
return _0x1195f5 != null ? '#' + _0x298aad + '.' + _0x1195f5 : '#' + _0x298aad;
|
|
1543
1557
|
}
|
|
1544
|
-
function formatClaimTaskResults(
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
_0x5a3fa4[_0x160cfe(_0x38c796._0x553c77)] ? 'threadTarget=' + _0x5a3fa4['threadTarget'] : null,
|
|
1574
|
-
_0x5a3fa4[_0x160cfe(_0x38c796._0x3669ba)] ? _0x160cfe(_0x38c796._0x5d4531) + _0x5a3fa4[_0x160cfe(0x22e)] : null
|
|
1575
|
-
][_0x160cfe(_0x38c796._0x2330d0)](Boolean)[_0x160cfe(_0x38c796._0xa8a259)]('\x20');
|
|
1576
|
-
return _0x110105 + _0x160cfe(0x213) + _0x6e7b1c + '\x20' + _0x580c8f + _0x160cfe(_0x38c796._0x3484d8);
|
|
1558
|
+
function formatClaimTaskResults(_0x4512a3) {
|
|
1559
|
+
const _0x38e1ec = { _0x46de32: 0x18d }, _0x38bf2d = {
|
|
1560
|
+
_0x3e2dbe: 0x1b9,
|
|
1561
|
+
_0x19a44f: 0x161,
|
|
1562
|
+
_0x550ed0: 0x14d,
|
|
1563
|
+
_0x41ad27: 0x21e,
|
|
1564
|
+
_0x230538: 0x130,
|
|
1565
|
+
_0x175b84: 0x140,
|
|
1566
|
+
_0x23d64f: 0x20f,
|
|
1567
|
+
_0x5ea942: 0x146,
|
|
1568
|
+
_0x547b98: 0x175,
|
|
1569
|
+
_0x15a05d: 0x1f0,
|
|
1570
|
+
_0x52532b: 0x1a5
|
|
1571
|
+
}, _0x3b6e5d = _0x3cf5af;
|
|
1572
|
+
if (_0x4512a3[_0x3b6e5d(_0x38e1ec._0x46de32)] === 0x0)
|
|
1573
|
+
return _0x3b6e5d(0x11a);
|
|
1574
|
+
return _0x4512a3[_0x3b6e5d(0x21c)](_0x1f82e8 => {
|
|
1575
|
+
const _0x3a7f22 = _0x3b6e5d;
|
|
1576
|
+
if (_0x1f82e8['success']) {
|
|
1577
|
+
const _0x2eea0e = formatClaimTaskLabel(_0x1f82e8[_0x3a7f22(_0x38bf2d._0x3e2dbe)], _0x1f82e8['subtaskNumber']), _0x74c534 = _0x1f82e8[_0x3a7f22(0x161)] ? _0x3a7f22(0x244) + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x19a44f)] : '';
|
|
1578
|
+
if (_0x1f82e8[_0x3a7f22(0x205)]) {
|
|
1579
|
+
const _0xef63da = [
|
|
1580
|
+
_0x3a7f22(_0x38bf2d._0x550ed0),
|
|
1581
|
+
_0x1f82e8[_0x3a7f22(0x229)] ? _0x3a7f22(_0x38bf2d._0x41ad27) : null,
|
|
1582
|
+
_0x1f82e8['executionMode'] ? _0x3a7f22(0x196) + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x230538)] : null,
|
|
1583
|
+
_0x1f82e8[_0x3a7f22(0x25d)] ? 'threadTarget=' + _0x1f82e8[_0x3a7f22(0x25d)] : null,
|
|
1584
|
+
_0x1f82e8[_0x3a7f22(0x140)] ? 'workerDisposition=' + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x175b84)] : null
|
|
1585
|
+
][_0x3a7f22(_0x38bf2d._0x23d64f)](Boolean)[_0x3a7f22(_0x38bf2d._0x5ea942)]('\x20');
|
|
1586
|
+
return _0x2eea0e + '\x20claimed' + _0x74c534 + '\x20' + _0xef63da + _0x3a7f22(0x26e);
|
|
1577
1587
|
}
|
|
1578
|
-
const
|
|
1579
|
-
return
|
|
1588
|
+
const _0x16f366 = _0x1f82e8[_0x3a7f22(0x117)] ? '\x20workerHandoff=false\x20error=' + _0x1f82e8[_0x3a7f22(0x117)] : '';
|
|
1589
|
+
return _0x2eea0e + _0x3a7f22(_0x38bf2d._0x547b98) + _0x74c534 + _0x16f366;
|
|
1580
1590
|
}
|
|
1581
|
-
const
|
|
1582
|
-
return
|
|
1583
|
-
})[
|
|
1591
|
+
const _0x2d4ba2 = _0x1f82e8[_0x3a7f22(_0x38bf2d._0x3e2dbe)] == null ? _0x1f82e8[_0x3a7f22(0x161)] ?? _0x3a7f22(_0x38bf2d._0x15a05d) : formatClaimTaskLabel(_0x1f82e8[_0x3a7f22(0x1b9)], _0x1f82e8[_0x3a7f22(0x12f)]);
|
|
1592
|
+
return _0x2d4ba2 + _0x3a7f22(0x183) + (_0x1f82e8[_0x3a7f22(0x154)] ?? _0x3a7f22(_0x38bf2d._0x52532b));
|
|
1593
|
+
})['join']('\x0a');
|
|
1584
1594
|
}
|
|
1585
|
-
function formatUnclaimTaskResult(
|
|
1586
|
-
const
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1595
|
+
function formatUnclaimTaskResult(_0x2f0a0b) {
|
|
1596
|
+
const _0x20b84a = {
|
|
1597
|
+
_0x3bed9d: 0x12f,
|
|
1598
|
+
_0x583590: 0x1b9,
|
|
1599
|
+
_0x2c8f35: 0x291
|
|
1600
|
+
}, _0xaa5057 = _0x3cf5af, _0xf32162 = _0x2f0a0b[_0xaa5057(0x1b9)] == null ? _0xaa5057(0x182) : _0x2f0a0b[_0xaa5057(_0x20b84a._0x3bed9d)] != null ? '#' + _0x2f0a0b[_0xaa5057(_0x20b84a._0x583590)] + '.' + _0x2f0a0b[_0xaa5057(0x12f)] : '#' + _0x2f0a0b['taskNumber'];
|
|
1601
|
+
return _0xf32162 + _0xaa5057(0x24c) + _0x2f0a0b[_0xaa5057(_0x20b84a._0x2c8f35)];
|
|
1591
1602
|
}
|
|
1592
|
-
function formatUpdateTaskStatusResult(
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1603
|
+
function formatUpdateTaskStatusResult(_0x19b694) {
|
|
1604
|
+
const _0x1be3d1 = {
|
|
1605
|
+
_0x280a00: 0x12f,
|
|
1606
|
+
_0x395dac: 0x12f,
|
|
1607
|
+
_0x3f641e: 0x1b9,
|
|
1608
|
+
_0x6645a4: 0x24c,
|
|
1609
|
+
_0x42fba3: 0x291
|
|
1610
|
+
}, _0x5b2084 = _0x3cf5af, _0x49c6c3 = _0x19b694[_0x5b2084(0x1b9)] == null ? _0x5b2084(0x182) : _0x19b694[_0x5b2084(_0x1be3d1._0x280a00)] != null ? '#' + _0x19b694[_0x5b2084(0x1b9)] + '.' + _0x19b694[_0x5b2084(_0x1be3d1._0x395dac)] : '#' + _0x19b694[_0x5b2084(_0x1be3d1._0x3f641e)];
|
|
1611
|
+
return _0x49c6c3 + _0x5b2084(_0x1be3d1._0x6645a4) + _0x19b694[_0x5b2084(_0x1be3d1._0x42fba3)];
|
|
1600
1612
|
}
|
|
1601
1613
|
function getChatBridgeToolDefinitions() {
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
_0x465d80: 0x260
|
|
1609
|
-
}, _0x3bfe22 = _0x28aee3;
|
|
1614
|
+
const _0x57e939 = {
|
|
1615
|
+
_0xbfbd8f: 0x170,
|
|
1616
|
+
_0x5be841: 0x1e8,
|
|
1617
|
+
_0x3feb9a: 0x254,
|
|
1618
|
+
_0x237c11: 0x11f
|
|
1619
|
+
}, _0x33eef6 = _0x3cf5af;
|
|
1610
1620
|
return [
|
|
1611
|
-
{ 'name':
|
|
1612
|
-
{ 'name':
|
|
1613
|
-
{ 'name':
|
|
1614
|
-
{ 'name':
|
|
1615
|
-
{ 'name':
|
|
1616
|
-
{ 'name':
|
|
1617
|
-
{ 'name':
|
|
1618
|
-
{ 'name':
|
|
1619
|
-
{ 'name':
|
|
1620
|
-
{ 'name':
|
|
1621
|
-
{ 'name':
|
|
1622
|
-
{ 'name':
|
|
1623
|
-
{ 'name':
|
|
1624
|
-
{ 'name':
|
|
1625
|
-
{ 'name':
|
|
1621
|
+
{ 'name': _0x33eef6(0x192) },
|
|
1622
|
+
{ 'name': _0x33eef6(0x187) },
|
|
1623
|
+
{ 'name': 'read_history' },
|
|
1624
|
+
{ 'name': _0x33eef6(0x10e) },
|
|
1625
|
+
{ 'name': _0x33eef6(_0x57e939._0xbfbd8f) },
|
|
1626
|
+
{ 'name': _0x33eef6(0x123) },
|
|
1627
|
+
{ 'name': _0x33eef6(0x1c9) },
|
|
1628
|
+
{ 'name': _0x33eef6(0x1f9) },
|
|
1629
|
+
{ 'name': _0x33eef6(0x22a) },
|
|
1630
|
+
{ 'name': _0x33eef6(0x113) },
|
|
1631
|
+
{ 'name': _0x33eef6(_0x57e939._0x5be841) },
|
|
1632
|
+
{ 'name': _0x33eef6(_0x57e939._0x3feb9a) },
|
|
1633
|
+
{ 'name': _0x33eef6(0x242) },
|
|
1634
|
+
{ 'name': _0x33eef6(0x27f) },
|
|
1635
|
+
{ 'name': _0x33eef6(_0x57e939._0x237c11) }
|
|
1626
1636
|
];
|
|
1627
1637
|
}
|
|
1628
|
-
function createChatBridgeHandlers(
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
},
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
},
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
},
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
_0x1fadda: 0x257,
|
|
1754
|
-
_0x3fefa5: 0x1a2,
|
|
1755
|
-
_0x3c29d0: 0x26d,
|
|
1756
|
-
_0x42f989: 0x2d6,
|
|
1757
|
-
_0x14a1c8: 0x22b,
|
|
1758
|
-
_0x5428ab: 0x1ae
|
|
1759
|
-
}, _0x266de6 = {
|
|
1760
|
-
_0x179109: 0x1a7,
|
|
1761
|
-
_0x17bb39: 0x210,
|
|
1762
|
-
_0x5ab406: 0x1ee
|
|
1763
|
-
}, _0x4fefa1 = _0x28aee3;
|
|
1764
|
-
function _0x30ed5d(_0x508404, _0x869e64) {
|
|
1765
|
-
const _0x59e54d = _0x41c3;
|
|
1766
|
-
if (!_0x274237[_0x59e54d(0x1aa)])
|
|
1638
|
+
function createChatBridgeHandlers(_0x2e8461) {
|
|
1639
|
+
const _0x2975c9 = { _0x55a68a: 0x11e }, _0x282eae = {
|
|
1640
|
+
_0xf66c00: 0x24b,
|
|
1641
|
+
_0x180735: 0x24e,
|
|
1642
|
+
_0x77ad32: 0x204,
|
|
1643
|
+
_0x2ff689: 0x16e,
|
|
1644
|
+
_0x33b29b: 0x24d,
|
|
1645
|
+
_0x4fa388: 0x257,
|
|
1646
|
+
_0x1f2e61: 0x154
|
|
1647
|
+
}, _0x586745 = {
|
|
1648
|
+
_0x54352d: 0x24b,
|
|
1649
|
+
_0x4491f0: 0x288,
|
|
1650
|
+
_0x547063: 0x277,
|
|
1651
|
+
_0x56e095: 0x184
|
|
1652
|
+
}, _0x537c74 = {
|
|
1653
|
+
_0x50c379: 0x11b,
|
|
1654
|
+
_0x475ea8: 0x204,
|
|
1655
|
+
_0x2fe766: 0x277,
|
|
1656
|
+
_0x5405c0: 0x16e,
|
|
1657
|
+
_0xa153ac: 0x19d,
|
|
1658
|
+
_0x402e7a: 0x1ea
|
|
1659
|
+
}, _0x329130 = {
|
|
1660
|
+
_0xceb81d: 0x11b,
|
|
1661
|
+
_0x2dd372: 0x23f,
|
|
1662
|
+
_0x5894d0: 0x263,
|
|
1663
|
+
_0x228965: 0x13f
|
|
1664
|
+
}, _0x114cce = { _0x5645a0: 0x118 }, _0x471d31 = { _0x1e985b: 0x224 }, _0x3e4aa0 = {
|
|
1665
|
+
_0x17530e: 0x1f4,
|
|
1666
|
+
_0x3d0474: 0x1fd
|
|
1667
|
+
}, _0x4ba317 = {
|
|
1668
|
+
_0x59f518: 0x12d,
|
|
1669
|
+
_0x2821cb: 0x162
|
|
1670
|
+
}, _0x34b43c = {
|
|
1671
|
+
_0x3421de: 0x1f4,
|
|
1672
|
+
_0x4d2fe7: 0x282,
|
|
1673
|
+
_0x10c045: 0x18d,
|
|
1674
|
+
_0x1b6c20: 0x163,
|
|
1675
|
+
_0x30de7c: 0x156,
|
|
1676
|
+
_0x32b9e5: 0x1dd
|
|
1677
|
+
}, _0x20e5f7 = {
|
|
1678
|
+
_0x18c491: 0x1bd,
|
|
1679
|
+
_0x35a2ce: 0x161,
|
|
1680
|
+
_0xea5da2: 0x219,
|
|
1681
|
+
_0x5cbd15: 0x290
|
|
1682
|
+
}, _0x4711c7 = { _0x2817bb: 0x1f4 }, _0x4e4f25 = {
|
|
1683
|
+
_0x1ac099: 0x21f,
|
|
1684
|
+
_0x5135be: 0x288,
|
|
1685
|
+
_0x4c51d0: 0x24b,
|
|
1686
|
+
_0x485d97: 0x1aa,
|
|
1687
|
+
_0x569d77: 0x288,
|
|
1688
|
+
_0x963983: 0x16e,
|
|
1689
|
+
_0x54dd33: 0x1f4,
|
|
1690
|
+
_0xdb6e13: 0x218,
|
|
1691
|
+
_0x1f7a0d: 0x127,
|
|
1692
|
+
_0x4e6089: 0x1b9,
|
|
1693
|
+
_0x61a18f: 0x231,
|
|
1694
|
+
_0x265b95: 0x1df,
|
|
1695
|
+
_0x2e3f36: 0x127
|
|
1696
|
+
}, _0xa62eb9 = {
|
|
1697
|
+
_0xda92a2: 0x156,
|
|
1698
|
+
_0x53f121: 0x241
|
|
1699
|
+
}, _0x2096ee = { _0x351e7f: 0x156 }, _0x3690fc = {
|
|
1700
|
+
_0x50d4f2: 0x27d,
|
|
1701
|
+
_0x5167c5: 0x1b2
|
|
1702
|
+
}, _0x50b1f3 = {
|
|
1703
|
+
_0x580a4c: 0x156,
|
|
1704
|
+
_0x69b344: 0x283,
|
|
1705
|
+
_0x45d286: 0x147,
|
|
1706
|
+
_0x20995d: 0x22c,
|
|
1707
|
+
_0x1a62f0: 0x1e4,
|
|
1708
|
+
_0x293ed4: 0x155,
|
|
1709
|
+
_0x33507c: 0x26f,
|
|
1710
|
+
_0x46a988: 0x204,
|
|
1711
|
+
_0x3cc4c4: 0x277,
|
|
1712
|
+
_0x444306: 0x288,
|
|
1713
|
+
_0xa90868: 0x1b4,
|
|
1714
|
+
_0x351ab1: 0x206,
|
|
1715
|
+
_0x211c4e: 0x24d,
|
|
1716
|
+
_0x3378fa: 0x261,
|
|
1717
|
+
_0x1057f4: 0x262,
|
|
1718
|
+
_0x3175cb: 0x114,
|
|
1719
|
+
_0x465dd0: 0x26f,
|
|
1720
|
+
_0x45336c: 0x268,
|
|
1721
|
+
_0x12a352: 0x226,
|
|
1722
|
+
_0x2b0a25: 0x161
|
|
1723
|
+
}, _0x486463 = {
|
|
1724
|
+
_0x3cdfa0: 0x24b,
|
|
1725
|
+
_0x3beb01: 0x24b,
|
|
1726
|
+
_0x2d637e: 0x288,
|
|
1727
|
+
_0x48e3b9: 0x25c,
|
|
1728
|
+
_0x47a2ea: 0x291,
|
|
1729
|
+
_0x469a49: 0x231,
|
|
1730
|
+
_0x4a60a8: 0x218
|
|
1731
|
+
}, _0x428295 = {
|
|
1732
|
+
_0x451aca: 0x24b,
|
|
1733
|
+
_0x467a35: 0x1aa,
|
|
1734
|
+
_0x22918f: 0x291,
|
|
1735
|
+
_0x218fd0: 0x165
|
|
1736
|
+
}, _0x58d386 = {
|
|
1737
|
+
_0x575120: 0x24b,
|
|
1738
|
+
_0x2d2f75: 0x288,
|
|
1739
|
+
_0x3a3d0d: 0x1b2,
|
|
1740
|
+
_0x25664e: 0x1b6,
|
|
1741
|
+
_0x144cd5: 0x161,
|
|
1742
|
+
_0x54e622: 0x156,
|
|
1743
|
+
_0x260b11: 0x223,
|
|
1744
|
+
_0x384f9a: 0x275,
|
|
1745
|
+
_0x22740e: 0x26d,
|
|
1746
|
+
_0x41c670: 0x1ed,
|
|
1747
|
+
_0x13933a: 0x28f,
|
|
1748
|
+
_0x1fc60b: 0x23a,
|
|
1749
|
+
_0x31a128: 0x14a,
|
|
1750
|
+
_0x280d3d: 0x1b9,
|
|
1751
|
+
_0x53f772: 0x16e,
|
|
1752
|
+
_0x35b130: 0x24d,
|
|
1753
|
+
_0x31e920: 0x290,
|
|
1754
|
+
_0x3276a1: 0x1d5,
|
|
1755
|
+
_0x453b2b: 0x1c4
|
|
1756
|
+
}, _0x4b47ef = {
|
|
1757
|
+
_0x5bfb1c: 0x129,
|
|
1758
|
+
_0x12196a: 0x237
|
|
1759
|
+
}, _0x5a52c6 = _0x3cf5af;
|
|
1760
|
+
function _0x5b15c1(_0x43574a, _0x1ad18e) {
|
|
1761
|
+
const _0x448917 = _0x7e16;
|
|
1762
|
+
if (!_0x2e8461[_0x448917(0x1b2)])
|
|
1767
1763
|
return;
|
|
1768
|
-
if (!
|
|
1769
|
-
throw new Error(
|
|
1770
|
-
if (
|
|
1771
|
-
throw new Error(
|
|
1764
|
+
if (!_0x2e8461[_0x448917(_0x4b47ef._0x5bfb1c)])
|
|
1765
|
+
throw new Error(_0x43574a + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
|
|
1766
|
+
if (_0x1ad18e !== _0x2e8461[_0x448917(0x129)])
|
|
1767
|
+
throw new Error(_0x43574a + _0x448917(_0x4b47ef._0x12196a) + _0x2e8461['workerThreadTarget'] + _0x448917(0x1b0) + _0x1ad18e);
|
|
1772
1768
|
}
|
|
1773
|
-
async function
|
|
1774
|
-
const
|
|
1775
|
-
if (!
|
|
1769
|
+
async function _0x2731d8(_0x1687e3) {
|
|
1770
|
+
const _0x598bf9 = _0x7e16;
|
|
1771
|
+
if (!_0x2e8461[_0x598bf9(_0x58d386._0x575120)] || !_0x2e8461[_0x598bf9(_0x58d386._0x2d2f75)] || _0x2e8461[_0x598bf9(_0x58d386._0x3a3d0d)] || _0x2e8461[_0x598bf9(_0x58d386._0x25664e)] !== !![])
|
|
1776
1772
|
return null;
|
|
1777
|
-
const
|
|
1778
|
-
if (
|
|
1773
|
+
const _0x22e964 = parseTarget(_0x1687e3[_0x598bf9(0x1f4)]);
|
|
1774
|
+
if (_0x22e964[_0x598bf9(0x1c6)] !== 'channel')
|
|
1779
1775
|
return null;
|
|
1780
|
-
const
|
|
1781
|
-
let
|
|
1776
|
+
const _0x14bd79 = _0x1687e3['threadNumber'] != null ? _0x22e964['channelTarget'] + ':t' + _0x1687e3[_0x598bf9(0x147)] : _0x22e964[_0x598bf9(0x215)] + ':' + _0x1687e3[_0x598bf9(_0x58d386._0x144cd5)];
|
|
1777
|
+
let _0x1ee01f;
|
|
1782
1778
|
try {
|
|
1783
|
-
const
|
|
1784
|
-
'channel':
|
|
1779
|
+
const _0x5aedd9 = await _0x2e8461[_0x598bf9(_0x58d386._0x54e622)]['readHistory']({
|
|
1780
|
+
'channel': _0x14bd79,
|
|
1785
1781
|
'limit': 0x14
|
|
1786
1782
|
});
|
|
1787
|
-
|
|
1783
|
+
_0x1ee01f = _0x5aedd9[_0x598bf9(0x256)][_0x598bf9(_0x58d386._0x260b11)](_0x37a2a0 => _0x37a2a0[_0x598bf9(0x161)] === _0x1687e3['messageId']);
|
|
1788
1784
|
} catch {
|
|
1789
|
-
|
|
1785
|
+
_0x1ee01f = void 0x0;
|
|
1790
1786
|
}
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1787
|
+
const _0x4b0360 = _0x1687e3[_0x598bf9(0x1b9)] == null ? _0x598bf9(0x182) : '#' + _0x1687e3['taskNumber'], _0x489b32 = [
|
|
1788
|
+
_0x598bf9(0x22c) + _0x14bd79 + _0x598bf9(_0x58d386._0x384f9a) + _0x1687e3[_0x598bf9(0x161)][_0x598bf9(_0x58d386._0x22740e)](0x0, 0x8) + _0x598bf9(_0x58d386._0x41c670) + new Date()['toISOString']() + _0x598bf9(_0x58d386._0x13933a) + _0x4b0360 + _0x598bf9(_0x58d386._0x1fc60b),
|
|
1793
1789
|
'',
|
|
1794
|
-
|
|
1790
|
+
_0x1ee01f ? _0x598bf9(0x250) + _0x1ee01f[_0x598bf9(0x26f)] : 'Root\x20task\x20message\x20id:\x20' + _0x1687e3[_0x598bf9(0x161)],
|
|
1795
1791
|
'',
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
][
|
|
1799
|
-
'method':
|
|
1800
|
-
'headers': { 'Content-Type':
|
|
1801
|
-
'body': JSON[
|
|
1802
|
-
'agent_id':
|
|
1803
|
-
'thread_target':
|
|
1792
|
+
_0x598bf9(0x1e1) + _0x14bd79,
|
|
1793
|
+
_0x598bf9(0x150)
|
|
1794
|
+
][_0x598bf9(0x146)]('\x0a'), _0x381690 = await fetch(_0x2e8461[_0x598bf9(0x24b)] + _0x598bf9(0x14f), {
|
|
1795
|
+
'method': _0x598bf9(0x204),
|
|
1796
|
+
'headers': { 'Content-Type': _0x598bf9(_0x58d386._0x31a128) },
|
|
1797
|
+
'body': JSON['stringify']({
|
|
1798
|
+
'agent_id': _0x2e8461[_0x598bf9(0x288)],
|
|
1799
|
+
'thread_target': _0x14bd79,
|
|
1804
1800
|
'spawn_packet': {
|
|
1805
|
-
'replyTarget':
|
|
1806
|
-
...
|
|
1801
|
+
'replyTarget': _0x14bd79,
|
|
1802
|
+
..._0x1687e3[_0x598bf9(0x206)] ? { 'taskId': _0x1687e3['taskId'] } : _0x1687e3[_0x598bf9(0x1b9)] != null ? { 'taskId': _0x598bf9(0x13d) + _0x1687e3[_0x598bf9(_0x58d386._0x280d3d)] } : {}
|
|
1807
1803
|
},
|
|
1808
1804
|
'payload': {
|
|
1809
|
-
'mode':
|
|
1810
|
-
'text':
|
|
1805
|
+
'mode': 'user',
|
|
1806
|
+
'text': _0x489b32
|
|
1811
1807
|
}
|
|
1812
1808
|
})
|
|
1813
|
-
}),
|
|
1814
|
-
if (!
|
|
1815
|
-
throw new Error(
|
|
1809
|
+
}), _0x2b6b62 = await _0x381690[_0x598bf9(_0x58d386._0x53f772)]();
|
|
1810
|
+
if (!_0x2b6b62['ok'])
|
|
1811
|
+
throw new Error(_0x2b6b62[_0x598bf9(_0x58d386._0x35b130)] ?? _0x598bf9(_0x58d386._0x31e920));
|
|
1816
1812
|
return {
|
|
1817
1813
|
'stopMain': !![],
|
|
1818
|
-
'threadTarget':
|
|
1819
|
-
'workerDisposition':
|
|
1814
|
+
'threadTarget': _0x14bd79,
|
|
1815
|
+
'workerDisposition': _0x2b6b62[_0x598bf9(_0x58d386._0x3276a1)] === _0x598bf9(_0x58d386._0x453b2b) ? _0x598bf9(0x1c4) : _0x598bf9(0x1b7),
|
|
1820
1816
|
'workerHandoff': !![],
|
|
1821
|
-
'workerSessionId':
|
|
1822
|
-
'executionMode':
|
|
1817
|
+
'workerSessionId': _0x2b6b62['worker_session_id'] ?? '',
|
|
1818
|
+
'executionMode': _0x598bf9(0x253)
|
|
1823
1819
|
};
|
|
1824
1820
|
}
|
|
1825
|
-
async function
|
|
1826
|
-
const
|
|
1827
|
-
if (!
|
|
1821
|
+
async function _0x35af48() {
|
|
1822
|
+
const _0xb25b95 = _0x7e16;
|
|
1823
|
+
if (!_0x2e8461[_0xb25b95(_0x428295._0x451aca)] || !_0x2e8461['agentId'] || _0x2e8461[_0xb25b95(0x1b2)])
|
|
1828
1824
|
return null;
|
|
1829
1825
|
try {
|
|
1830
|
-
const
|
|
1831
|
-
if (!
|
|
1826
|
+
const _0x25592a = await fetch(_0x2e8461[_0xb25b95(_0x428295._0x451aca)] + _0xb25b95(_0x428295._0x467a35) + encodeURIComponent(_0x2e8461[_0xb25b95(0x288)])), _0x4b0e14 = await _0x25592a['json']();
|
|
1827
|
+
if (!_0x4b0e14['ok'])
|
|
1832
1828
|
return null;
|
|
1833
|
-
const
|
|
1834
|
-
for (const
|
|
1835
|
-
|
|
1829
|
+
const _0x16cd57 = new Set();
|
|
1830
|
+
for (const _0x22be7c of _0x4b0e14[_0xb25b95(0x243)]) {
|
|
1831
|
+
_0x22be7c[_0xb25b95(_0x428295._0x22918f)] !== _0xb25b95(_0x428295._0x218fd0) && _0x22be7c[_0xb25b95(0x218)] && _0x16cd57['add'](_0x22be7c['thread_target']);
|
|
1836
1832
|
}
|
|
1837
|
-
return
|
|
1833
|
+
return _0x16cd57[_0xb25b95(0x1d4)] > 0x0 ? _0x16cd57 : null;
|
|
1838
1834
|
} catch {
|
|
1839
1835
|
return null;
|
|
1840
1836
|
}
|
|
1841
1837
|
}
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1844
|
-
|
|
1838
|
+
const _0x16b4db = new Set([
|
|
1839
|
+
'running',
|
|
1840
|
+
_0x5a52c6(_0x2975c9._0x55a68a),
|
|
1845
1841
|
'waiting_input'
|
|
1846
1842
|
]);
|
|
1847
|
-
async function
|
|
1848
|
-
const
|
|
1849
|
-
if (!
|
|
1843
|
+
async function _0x271086() {
|
|
1844
|
+
const _0x3ae411 = _0x5a52c6;
|
|
1845
|
+
if (!_0x2e8461[_0x3ae411(_0x486463._0x3cdfa0)] || !_0x2e8461[_0x3ae411(0x288)] || _0x2e8461['workerMode'])
|
|
1850
1846
|
return null;
|
|
1851
1847
|
try {
|
|
1852
|
-
const
|
|
1853
|
-
if (!
|
|
1848
|
+
const _0x42c657 = await fetch(_0x2e8461[_0x3ae411(_0x486463._0x3beb01)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2e8461[_0x3ae411(_0x486463._0x2d637e)])), _0x260f55 = await _0x42c657[_0x3ae411(0x16e)]();
|
|
1849
|
+
if (!_0x260f55['ok'])
|
|
1854
1850
|
return null;
|
|
1855
|
-
const
|
|
1856
|
-
for (const
|
|
1857
|
-
|
|
1851
|
+
const _0x307053 = new Set();
|
|
1852
|
+
for (const _0x318422 of _0x260f55[_0x3ae411(0x243)]) {
|
|
1853
|
+
_0x16b4db[_0x3ae411(_0x486463._0x48e3b9)](_0x318422[_0x3ae411(_0x486463._0x47a2ea)]) && _0x318422[_0x3ae411(0x218)] && _0x307053[_0x3ae411(_0x486463._0x469a49)](_0x318422[_0x3ae411(_0x486463._0x4a60a8)]);
|
|
1858
1854
|
}
|
|
1859
|
-
return
|
|
1855
|
+
return _0x307053['size'] > 0x0 ? _0x307053 : null;
|
|
1860
1856
|
} catch {
|
|
1861
1857
|
return null;
|
|
1862
1858
|
}
|
|
1863
1859
|
}
|
|
1864
1860
|
return {
|
|
1865
|
-
async 'send_message'(
|
|
1866
|
-
const
|
|
1867
|
-
if (!
|
|
1868
|
-
const
|
|
1869
|
-
if (
|
|
1870
|
-
const
|
|
1871
|
-
if (
|
|
1861
|
+
async 'send_message'(_0x47e02f) {
|
|
1862
|
+
const _0x1e2e9b = _0x5a52c6;
|
|
1863
|
+
if (!_0x2e8461['workerMode'] && _0x2e8461['workerModeEnabled'] && _0x2e8461[_0x1e2e9b(0x24b)] && _0x2e8461[_0x1e2e9b(0x288)]) {
|
|
1864
|
+
const _0x21cd00 = await _0x2e8461[_0x1e2e9b(_0x50b1f3._0x580a4c)][_0x1e2e9b(_0x50b1f3._0x69b344)](_0x47e02f[_0x1e2e9b(0x226)]);
|
|
1865
|
+
if (_0x21cd00[_0x1e2e9b(0x1b4)] && _0x21cd00['threadId']) {
|
|
1866
|
+
const _0x3ebcc6 = _0x21cd00[_0x1e2e9b(0x1b4)]['taskNumber'] != null ? '#' + _0x21cd00['task'][_0x1e2e9b(0x1b9)] : '(legacy)', _0x545307 = _0x21cd00[_0x1e2e9b(0x147)] != null ? _0x21cd00['target'] + ':t' + _0x21cd00[_0x1e2e9b(_0x50b1f3._0x45d286)] : _0x21cd00['target'] + ':' + _0x21cd00['threadId']['slice'](0x0, 0x8), _0x2f4176 = await _0x271086();
|
|
1867
|
+
if (_0x2f4176?.['has'](_0x545307))
|
|
1872
1868
|
return [
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
][
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1869
|
+
_0x1e2e9b(0x112) + _0x3ebcc6 + '\x20in\x20' + _0x545307 + _0x1e2e9b(0x210),
|
|
1870
|
+
_0x1e2e9b(0x236)
|
|
1871
|
+
][_0x1e2e9b(0x146)]('\x0a');
|
|
1872
|
+
const _0x381cf8 = [
|
|
1873
|
+
_0x1e2e9b(_0x50b1f3._0x20995d) + _0x545307 + _0x1e2e9b(_0x50b1f3._0x1a62f0) + new Date()['toISOString']() + _0x1e2e9b(_0x50b1f3._0x293ed4),
|
|
1878
1874
|
'',
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
][
|
|
1884
|
-
'method':
|
|
1885
|
-
'headers': { 'Content-Type':
|
|
1886
|
-
'body': JSON[
|
|
1887
|
-
'agent_id':
|
|
1888
|
-
'thread_target':
|
|
1875
|
+
'Original\x20message:\x20' + _0x47e02f[_0x1e2e9b(_0x50b1f3._0x33507c)],
|
|
1876
|
+
'Task:\x20' + _0x3ebcc6 + '\x20(' + _0x21cd00['task']['taskId'] + ')',
|
|
1877
|
+
_0x1e2e9b(0x1e1) + _0x545307,
|
|
1878
|
+
_0x1e2e9b(0x11c)
|
|
1879
|
+
]['join']('\x0a'), _0xbcff25 = await fetch(_0x2e8461[_0x1e2e9b(0x24b)] + '/workers/deliver', {
|
|
1880
|
+
'method': _0x1e2e9b(_0x50b1f3._0x46a988),
|
|
1881
|
+
'headers': { 'Content-Type': _0x1e2e9b(0x14a) },
|
|
1882
|
+
'body': JSON[_0x1e2e9b(_0x50b1f3._0x3cc4c4)]({
|
|
1883
|
+
'agent_id': _0x2e8461[_0x1e2e9b(_0x50b1f3._0x444306)],
|
|
1884
|
+
'thread_target': _0x545307,
|
|
1889
1885
|
'spawn_packet': {
|
|
1890
|
-
'replyTarget':
|
|
1891
|
-
'taskId':
|
|
1886
|
+
'replyTarget': _0x545307,
|
|
1887
|
+
'taskId': _0x21cd00[_0x1e2e9b(_0x50b1f3._0xa90868)][_0x1e2e9b(_0x50b1f3._0x351ab1)]
|
|
1892
1888
|
},
|
|
1893
1889
|
'payload': {
|
|
1894
|
-
'mode':
|
|
1895
|
-
'text':
|
|
1890
|
+
'mode': 'user',
|
|
1891
|
+
'text': _0x381cf8
|
|
1896
1892
|
}
|
|
1897
1893
|
})
|
|
1898
|
-
}),
|
|
1899
|
-
if (!
|
|
1900
|
-
throw new Error(
|
|
1894
|
+
}), _0x1a7f07 = await _0xbcff25['json']();
|
|
1895
|
+
if (!_0x1a7f07['ok'])
|
|
1896
|
+
throw new Error(_0x1a7f07[_0x1e2e9b(_0x50b1f3._0x211c4e)] ?? _0x1e2e9b(0x1fe));
|
|
1901
1897
|
return [
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
][
|
|
1898
|
+
_0x1e2e9b(_0x50b1f3._0x3378fa) + _0x3ebcc6 + _0x1e2e9b(0x21a) + _0x545307 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1899
|
+
_0x1e2e9b(_0x50b1f3._0x1057f4) + (_0x1a7f07['disposition'] === _0x1e2e9b(0x1c4) ? 'queued' : _0x1e2e9b(0x1b7)) + '.',
|
|
1900
|
+
_0x1e2e9b(0x13b)
|
|
1901
|
+
][_0x1e2e9b(0x146)]('\x0a');
|
|
1906
1902
|
}
|
|
1907
1903
|
}
|
|
1908
|
-
const
|
|
1909
|
-
'attachmentIds':
|
|
1910
|
-
'content':
|
|
1911
|
-
'target':
|
|
1912
|
-
'visibility':
|
|
1904
|
+
const _0x11a4cc = await _0x2e8461['client'][_0x1e2e9b(0x211)]({
|
|
1905
|
+
'attachmentIds': _0x47e02f[_0x1e2e9b(_0x50b1f3._0x3175cb)],
|
|
1906
|
+
'content': _0x47e02f[_0x1e2e9b(_0x50b1f3._0x465dd0)],
|
|
1907
|
+
'target': _0x47e02f['target'],
|
|
1908
|
+
'visibility': _0x47e02f[_0x1e2e9b(0x28c)]
|
|
1913
1909
|
});
|
|
1914
|
-
return
|
|
1910
|
+
return _0x1e2e9b(_0x50b1f3._0x45336c) + _0x47e02f[_0x1e2e9b(_0x50b1f3._0x12a352)] + '.\x20Message\x20ID:\x20' + _0x11a4cc[_0x1e2e9b(_0x50b1f3._0x2b0a25)];
|
|
1915
1911
|
},
|
|
1916
1912
|
async 'check_messages'() {
|
|
1917
|
-
const
|
|
1918
|
-
if (!
|
|
1919
|
-
const
|
|
1920
|
-
if (
|
|
1921
|
-
return formatCheckMessages(
|
|
1913
|
+
const _0xbcfedd = _0x5a52c6, _0x573190 = await _0x2e8461[_0xbcfedd(0x156)][_0xbcfedd(_0x3690fc._0x50d4f2)]();
|
|
1914
|
+
if (!_0x2e8461[_0xbcfedd(_0x3690fc._0x5167c5)]) {
|
|
1915
|
+
const _0x121102 = await _0x35af48();
|
|
1916
|
+
if (_0x121102)
|
|
1917
|
+
return formatCheckMessages(_0x573190[_0xbcfedd(0x256)][_0xbcfedd(0x20f)](_0x861df4 => !_0x121102[_0xbcfedd(0x25c)](_0x861df4[_0xbcfedd(0x226)])));
|
|
1922
1918
|
}
|
|
1923
|
-
return formatCheckMessages(
|
|
1919
|
+
return formatCheckMessages(_0x573190[_0xbcfedd(0x256)]);
|
|
1924
1920
|
},
|
|
1925
|
-
async 'read_history'(
|
|
1926
|
-
const
|
|
1927
|
-
return formatHistory(
|
|
1921
|
+
async 'read_history'(_0x12ac94) {
|
|
1922
|
+
const _0x30ad27 = _0x5a52c6, _0x197aed = await _0x2e8461[_0x30ad27(_0x2096ee._0x351e7f)][_0x30ad27(0x289)](_0x12ac94);
|
|
1923
|
+
return formatHistory(_0x197aed);
|
|
1928
1924
|
},
|
|
1929
1925
|
async 'list_server'() {
|
|
1930
|
-
const
|
|
1931
|
-
return formatServerDirectory(
|
|
1926
|
+
const _0x295ebb = _0x5a52c6, _0x2a2154 = await _0x2e8461[_0x295ebb(_0xa62eb9._0xda92a2)][_0x295ebb(_0xa62eb9._0x53f121)]();
|
|
1927
|
+
return formatServerDirectory(_0x2a2154);
|
|
1932
1928
|
},
|
|
1933
|
-
async 'list_tasks'(
|
|
1934
|
-
const
|
|
1935
|
-
let
|
|
1936
|
-
if (
|
|
1929
|
+
async 'list_tasks'(_0x355c4a) {
|
|
1930
|
+
const _0x42cc08 = _0x5a52c6, _0x3a0d25 = await _0x2e8461[_0x42cc08(0x156)][_0x42cc08(_0x4e4f25._0x1ac099)](_0x355c4a);
|
|
1931
|
+
let _0x5b1959;
|
|
1932
|
+
if (_0x2e8461[_0x42cc08(0x24b)] && _0x2e8461[_0x42cc08(_0x4e4f25._0x5135be)])
|
|
1937
1933
|
try {
|
|
1938
|
-
const
|
|
1939
|
-
if (
|
|
1940
|
-
const
|
|
1941
|
-
|
|
1942
|
-
for (const
|
|
1943
|
-
if (
|
|
1934
|
+
const _0x1fd310 = await fetch(_0x2e8461[_0x42cc08(_0x4e4f25._0x4c51d0)] + _0x42cc08(_0x4e4f25._0x485d97) + encodeURIComponent(_0x2e8461[_0x42cc08(_0x4e4f25._0x569d77)])), _0x2adc5d = await _0x1fd310[_0x42cc08(_0x4e4f25._0x963983)]();
|
|
1935
|
+
if (_0x2adc5d['ok']) {
|
|
1936
|
+
const _0x308cdf = _0x355c4a[_0x42cc08(_0x4e4f25._0x54dd33)] + ':';
|
|
1937
|
+
_0x5b1959 = new Set();
|
|
1938
|
+
for (const _0x240193 of _0x2adc5d['workers']) {
|
|
1939
|
+
if (_0x240193[_0x42cc08(0x291)] === _0x42cc08(0x165))
|
|
1944
1940
|
continue;
|
|
1945
|
-
if (
|
|
1946
|
-
const
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1941
|
+
if (_0x240193[_0x42cc08(0x218)]?.[_0x42cc08(0x18e)](_0x308cdf)) {
|
|
1942
|
+
const _0x2dbd68 = _0x240193[_0x42cc08(_0x4e4f25._0xdb6e13)][_0x42cc08(0x26d)](_0x308cdf['length']), _0x98a499 = _0x3a0d25[_0x42cc08(_0x4e4f25._0x1f7a0d)][_0x42cc08(0x223)](_0x23b00b => _0x23b00b[_0x42cc08(0x161)]?.[_0x42cc08(0x18e)](_0x2dbd68) === !![]);
|
|
1943
|
+
if (_0x98a499?.[_0x42cc08(_0x4e4f25._0x4e6089)] != null) {
|
|
1944
|
+
_0x5b1959[_0x42cc08(_0x4e4f25._0x61a18f)](_0x98a499[_0x42cc08(0x1b9)]);
|
|
1949
1945
|
continue;
|
|
1950
1946
|
}
|
|
1951
1947
|
}
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
|
|
1948
|
+
if (_0x240193[_0x42cc08(_0x4e4f25._0x265b95)]) {
|
|
1949
|
+
const _0xbc986f = _0x3a0d25[_0x42cc08(_0x4e4f25._0x2e3f36)][_0x42cc08(0x223)](_0x2c5b47 => _0x2c5b47['taskId'] === _0x240193[_0x42cc08(0x1df)]);
|
|
1950
|
+
_0xbc986f?.[_0x42cc08(_0x4e4f25._0x4e6089)] != null && _0x5b1959[_0x42cc08(0x231)](_0xbc986f[_0x42cc08(_0x4e4f25._0x4e6089)]);
|
|
1955
1951
|
}
|
|
1956
1952
|
}
|
|
1957
1953
|
}
|
|
1958
1954
|
} catch {
|
|
1959
1955
|
}
|
|
1960
|
-
return formatTaskList(
|
|
1956
|
+
return formatTaskList(_0x3a0d25[_0x42cc08(0x127)], _0x5b1959);
|
|
1961
1957
|
},
|
|
1962
|
-
async 'create_tasks'(
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1966
|
-
return formatCreatedTasks(
|
|
1958
|
+
async 'create_tasks'(_0x264886) {
|
|
1959
|
+
const _0x361dfb = _0x5a52c6;
|
|
1960
|
+
_0x5b15c1(_0x361dfb(0x1f9), _0x264886[_0x361dfb(_0x4711c7._0x2817bb)]);
|
|
1961
|
+
const _0x450c51 = await _0x2e8461[_0x361dfb(0x156)]['createTasks'](_0x264886);
|
|
1962
|
+
return formatCreatedTasks(_0x450c51['tasks']);
|
|
1967
1963
|
},
|
|
1968
|
-
async 'claim_tasks'(
|
|
1969
|
-
const
|
|
1970
|
-
if (
|
|
1971
|
-
|
|
1972
|
-
if (
|
|
1973
|
-
throw new Error(
|
|
1974
|
-
if (!
|
|
1975
|
-
throw new Error(
|
|
1964
|
+
async 'claim_tasks'(_0x1b5ad8) {
|
|
1965
|
+
const _0x325dd9 = _0x5a52c6;
|
|
1966
|
+
if (_0x2e8461[_0x325dd9(0x1b2)]) {
|
|
1967
|
+
_0x5b15c1('claim_tasks', _0x1b5ad8[_0x325dd9(_0x34b43c._0x3421de)]);
|
|
1968
|
+
if (_0x1b5ad8[_0x325dd9(0x282)] && _0x1b5ad8[_0x325dd9(_0x34b43c._0x4d2fe7)][_0x325dd9(_0x34b43c._0x10c045)] > 0x0)
|
|
1969
|
+
throw new Error(_0x325dd9(0x26a));
|
|
1970
|
+
if (!_0x1b5ad8[_0x325dd9(_0x34b43c._0x1b6c20)] || _0x1b5ad8[_0x325dd9(0x163)]['length'] === 0x0)
|
|
1971
|
+
throw new Error(_0x325dd9(0x176));
|
|
1976
1972
|
}
|
|
1977
|
-
const
|
|
1978
|
-
const
|
|
1979
|
-
if (!
|
|
1980
|
-
return
|
|
1973
|
+
const _0x241d82 = await _0x2e8461[_0x325dd9(_0x34b43c._0x30de7c)][_0x325dd9(_0x34b43c._0x32b9e5)](_0x1b5ad8), _0x2da543 = await Promise['all'](_0x241d82['results']['map'](async _0x23934a => {
|
|
1974
|
+
const _0x4b77cb = _0x325dd9;
|
|
1975
|
+
if (!_0x23934a[_0x4b77cb(_0x20e5f7._0x18c491)] || !_0x23934a[_0x4b77cb(0x161)])
|
|
1976
|
+
return _0x23934a;
|
|
1981
1977
|
try {
|
|
1982
|
-
const
|
|
1983
|
-
'channel':
|
|
1984
|
-
'messageId':
|
|
1985
|
-
'taskId':
|
|
1986
|
-
'taskNumber':
|
|
1987
|
-
'threadNumber':
|
|
1978
|
+
const _0x4c1e90 = await _0x2731d8({
|
|
1979
|
+
'channel': _0x1b5ad8[_0x4b77cb(0x1f4)],
|
|
1980
|
+
'messageId': _0x23934a[_0x4b77cb(_0x20e5f7._0x35a2ce)],
|
|
1981
|
+
'taskId': _0x23934a[_0x4b77cb(0x206)],
|
|
1982
|
+
'taskNumber': _0x23934a[_0x4b77cb(0x1b9)],
|
|
1983
|
+
'threadNumber': _0x23934a['threadNumber']
|
|
1988
1984
|
});
|
|
1989
|
-
return
|
|
1990
|
-
...
|
|
1991
|
-
...
|
|
1992
|
-
} :
|
|
1993
|
-
} catch (
|
|
1985
|
+
return _0x4c1e90 ? {
|
|
1986
|
+
..._0x23934a,
|
|
1987
|
+
..._0x4c1e90
|
|
1988
|
+
} : _0x23934a;
|
|
1989
|
+
} catch (_0x44bada) {
|
|
1994
1990
|
return {
|
|
1995
|
-
...
|
|
1996
|
-
'workerHandoffError':
|
|
1991
|
+
..._0x23934a,
|
|
1992
|
+
'workerHandoffError': _0x44bada instanceof Error ? _0x44bada[_0x4b77cb(_0x20e5f7._0xea5da2)] : _0x4b77cb(_0x20e5f7._0x5cbd15)
|
|
1997
1993
|
};
|
|
1998
1994
|
}
|
|
1999
1995
|
}));
|
|
2000
|
-
return formatClaimTaskResults(
|
|
1996
|
+
return formatClaimTaskResults(_0x2da543);
|
|
2001
1997
|
},
|
|
2002
|
-
async 'unclaim_task'(
|
|
2003
|
-
const
|
|
2004
|
-
if (
|
|
2005
|
-
|
|
2006
|
-
if (
|
|
2007
|
-
throw new Error(
|
|
1998
|
+
async 'unclaim_task'(_0x5d829f) {
|
|
1999
|
+
const _0x885887 = _0x5a52c6;
|
|
2000
|
+
if (_0x2e8461['workerMode']) {
|
|
2001
|
+
_0x5b15c1(_0x885887(0x113), _0x5d829f['channel']);
|
|
2002
|
+
if (_0x5d829f[_0x885887(_0x4ba317._0x59f518)] == null)
|
|
2003
|
+
throw new Error(_0x885887(0x279));
|
|
2008
2004
|
}
|
|
2009
|
-
const
|
|
2010
|
-
return formatUnclaimTaskResult(
|
|
2005
|
+
const _0x417368 = await _0x2e8461['client'][_0x885887(_0x4ba317._0x2821cb)](_0x5d829f);
|
|
2006
|
+
return formatUnclaimTaskResult(_0x417368);
|
|
2011
2007
|
},
|
|
2012
|
-
async 'update_task_status'(
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2015
|
-
const
|
|
2016
|
-
return formatUpdateTaskStatusResult(
|
|
2008
|
+
async 'update_task_status'(_0x10b88f) {
|
|
2009
|
+
const _0x45f9c0 = _0x5a52c6;
|
|
2010
|
+
_0x5b15c1('update_task_status', _0x10b88f[_0x45f9c0(_0x3e4aa0._0x17530e)]);
|
|
2011
|
+
const _0x1ca2c8 = await _0x2e8461[_0x45f9c0(0x156)][_0x45f9c0(_0x3e4aa0._0x3d0474)](_0x10b88f);
|
|
2012
|
+
return formatUpdateTaskStatusResult(_0x1ca2c8);
|
|
2017
2013
|
},
|
|
2018
|
-
async 'upload_file'(
|
|
2019
|
-
const
|
|
2020
|
-
sizeBytes:
|
|
2021
|
-
...
|
|
2022
|
-
} =
|
|
2023
|
-
'channel':
|
|
2024
|
-
...
|
|
2014
|
+
async 'upload_file'(_0x38e953) {
|
|
2015
|
+
const _0xc80620 = _0x5a52c6, _0x409b99 = await _0x2e8461[_0xc80620(_0x471d31._0x1e985b)](_0x38e953[_0xc80620(0x116)]), {
|
|
2016
|
+
sizeBytes: _0x5bdb81,
|
|
2017
|
+
..._0x131162
|
|
2018
|
+
} = _0x409b99, _0x2456f8 = await _0x2e8461[_0xc80620(0x156)][_0xc80620(0x239)]({
|
|
2019
|
+
'channel': _0x38e953['channel'],
|
|
2020
|
+
..._0x131162
|
|
2025
2021
|
});
|
|
2026
|
-
return formatUploadResult(
|
|
2022
|
+
return formatUploadResult(_0x2456f8);
|
|
2027
2023
|
},
|
|
2028
|
-
async 'view_file'(
|
|
2029
|
-
const
|
|
2030
|
-
if (
|
|
2031
|
-
return formatViewFileResult(
|
|
2032
|
-
const
|
|
2033
|
-
'attachmentId':
|
|
2034
|
-
'contentType':
|
|
2035
|
-
'data':
|
|
2036
|
-
'originalFilename':
|
|
2024
|
+
async 'view_file'(_0x4f2367) {
|
|
2025
|
+
const _0x13d176 = _0x5a52c6, _0x51973c = await _0x2e8461[_0x13d176(0x1f5)]['findCachedPath'](_0x4f2367[_0x13d176(_0x114cce._0x5645a0)]);
|
|
2026
|
+
if (_0x51973c)
|
|
2027
|
+
return formatViewFileResult(_0x51973c, !![]);
|
|
2028
|
+
const _0x251575 = await _0x2e8461['client']['downloadAttachment'](_0x4f2367['attachment_id']), _0x3284ea = await _0x2e8461[_0x13d176(0x1f5)]['save']({
|
|
2029
|
+
'attachmentId': _0x4f2367[_0x13d176(_0x114cce._0x5645a0)],
|
|
2030
|
+
'contentType': _0x251575['contentType'],
|
|
2031
|
+
'data': _0x251575['data'],
|
|
2032
|
+
'originalFilename': _0x251575[_0x13d176(0x108)]
|
|
2037
2033
|
});
|
|
2038
|
-
return formatViewFileResult(
|
|
2034
|
+
return formatViewFileResult(_0x3284ea, ![]);
|
|
2039
2035
|
},
|
|
2040
|
-
async 'get_worker_status'(
|
|
2041
|
-
const
|
|
2042
|
-
if (!
|
|
2043
|
-
return
|
|
2044
|
-
const
|
|
2045
|
-
if (!
|
|
2046
|
-
return
|
|
2047
|
-
return
|
|
2036
|
+
async 'get_worker_status'(_0x4611b1) {
|
|
2037
|
+
const _0x2fabae = _0x5a52c6;
|
|
2038
|
+
if (!_0x2e8461[_0x2fabae(0x24b)])
|
|
2039
|
+
return _0x2fabae(_0x329130._0xceb81d);
|
|
2040
|
+
const _0x4abb55 = await fetch(_0x2e8461[_0x2fabae(0x24b)] + _0x2fabae(_0x329130._0x2dd372) + encodeURIComponent(_0x4611b1[_0x2fabae(_0x329130._0x5894d0)])), _0x17cdfb = await _0x4abb55[_0x2fabae(0x16e)]();
|
|
2041
|
+
if (!_0x17cdfb['ok'])
|
|
2042
|
+
return _0x2fabae(_0x329130._0x228965) + _0x4611b1[_0x2fabae(0x263)] + _0x2fabae(0x1c5);
|
|
2043
|
+
return 'Worker\x20\x22' + _0x4611b1[_0x2fabae(0x263)] + '\x22:\x20status=' + _0x17cdfb[_0x2fabae(0x291)];
|
|
2048
2044
|
},
|
|
2049
|
-
async 'park_worker'(
|
|
2050
|
-
const
|
|
2051
|
-
if (!
|
|
2052
|
-
return
|
|
2053
|
-
const
|
|
2054
|
-
'method':
|
|
2055
|
-
'headers': { 'Content-Type':
|
|
2056
|
-
'body': JSON[
|
|
2057
|
-
}),
|
|
2058
|
-
if (!
|
|
2059
|
-
throw new Error(
|
|
2060
|
-
return
|
|
2045
|
+
async 'park_worker'(_0x381ef7) {
|
|
2046
|
+
const _0x27af8 = _0x5a52c6;
|
|
2047
|
+
if (!_0x2e8461[_0x27af8(0x24b)])
|
|
2048
|
+
return _0x27af8(_0x537c74._0x50c379);
|
|
2049
|
+
const _0x4359da = await fetch(_0x2e8461[_0x27af8(0x24b)] + _0x27af8(0x1e6), {
|
|
2050
|
+
'method': _0x27af8(_0x537c74._0x475ea8),
|
|
2051
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2052
|
+
'body': JSON[_0x27af8(_0x537c74._0x2fe766)]({ 'work_key': _0x381ef7['work_key'] })
|
|
2053
|
+
}), _0x412490 = await _0x4359da[_0x27af8(_0x537c74._0x5405c0)]();
|
|
2054
|
+
if (!_0x412490['ok'])
|
|
2055
|
+
throw new Error(_0x412490['error'] ?? _0x27af8(_0x537c74._0xa153ac));
|
|
2056
|
+
return 'Worker\x20\x22' + _0x381ef7['work_key'] + _0x27af8(_0x537c74._0x402e7a);
|
|
2061
2057
|
},
|
|
2062
|
-
async 'mark_waiting_input'(
|
|
2063
|
-
const
|
|
2064
|
-
if (!
|
|
2065
|
-
return
|
|
2066
|
-
const
|
|
2067
|
-
'method':
|
|
2068
|
-
'headers': { 'Content-Type':
|
|
2069
|
-
'body': JSON[
|
|
2070
|
-
'work_key':
|
|
2071
|
-
'agent_id':
|
|
2058
|
+
async 'mark_waiting_input'(_0x2ef8be) {
|
|
2059
|
+
const _0xd426e1 = _0x5a52c6;
|
|
2060
|
+
if (!_0x2e8461[_0xd426e1(_0x586745._0x54352d)] || !_0x2e8461[_0xd426e1(_0x586745._0x4491f0)])
|
|
2061
|
+
return _0xd426e1(0x14b);
|
|
2062
|
+
const _0x302b43 = await fetch(_0x2e8461['daemonLocalUrl'] + _0xd426e1(0x258), {
|
|
2063
|
+
'method': _0xd426e1(0x204),
|
|
2064
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2065
|
+
'body': JSON[_0xd426e1(_0x586745._0x547063)]({
|
|
2066
|
+
'work_key': _0x2ef8be[_0xd426e1(0x263)],
|
|
2067
|
+
'agent_id': _0x2e8461[_0xd426e1(_0x586745._0x4491f0)]
|
|
2072
2068
|
})
|
|
2073
|
-
}),
|
|
2074
|
-
if (!
|
|
2075
|
-
throw new Error(
|
|
2076
|
-
return
|
|
2069
|
+
}), _0x3a3b41 = await _0x302b43['json']();
|
|
2070
|
+
if (!_0x3a3b41['ok'])
|
|
2071
|
+
throw new Error(_0x3a3b41['error'] ?? _0xd426e1(0x1bf));
|
|
2072
|
+
return 'Worker\x20\x22' + _0x2ef8be['work_key'] + _0xd426e1(_0x586745._0x56e095);
|
|
2077
2073
|
},
|
|
2078
|
-
async 'escalate_to_main'(
|
|
2079
|
-
const
|
|
2080
|
-
if (!
|
|
2081
|
-
return
|
|
2082
|
-
const
|
|
2083
|
-
'method':
|
|
2084
|
-
'headers': { 'Content-Type':
|
|
2085
|
-
'body': JSON[
|
|
2086
|
-
'work_key':
|
|
2087
|
-
'reason':
|
|
2074
|
+
async 'escalate_to_main'(_0xfa3511) {
|
|
2075
|
+
const _0x96bb88 = _0x5a52c6;
|
|
2076
|
+
if (!_0x2e8461[_0x96bb88(0x24b)])
|
|
2077
|
+
return _0x96bb88(0x11b);
|
|
2078
|
+
const _0x1b043f = await fetch(_0x2e8461[_0x96bb88(_0x282eae._0xf66c00)] + _0x96bb88(_0x282eae._0x180735), {
|
|
2079
|
+
'method': _0x96bb88(_0x282eae._0x77ad32),
|
|
2080
|
+
'headers': { 'Content-Type': _0x96bb88(0x14a) },
|
|
2081
|
+
'body': JSON[_0x96bb88(0x277)]({
|
|
2082
|
+
'work_key': _0xfa3511[_0x96bb88(0x263)],
|
|
2083
|
+
'reason': _0xfa3511[_0x96bb88(0x154)]
|
|
2088
2084
|
})
|
|
2089
|
-
}),
|
|
2090
|
-
if (!
|
|
2091
|
-
throw new Error(
|
|
2092
|
-
return
|
|
2085
|
+
}), _0x3dbf46 = await _0x1b043f[_0x96bb88(_0x282eae._0x2ff689)]();
|
|
2086
|
+
if (!_0x3dbf46['ok'])
|
|
2087
|
+
throw new Error(_0x3dbf46[_0x96bb88(_0x282eae._0x33b29b)] ?? _0x96bb88(0x180));
|
|
2088
|
+
return _0x96bb88(_0x282eae._0x4fa388) + _0xfa3511[_0x96bb88(_0x282eae._0x1f2e61)];
|
|
2093
2089
|
}
|
|
2094
2090
|
};
|
|
2095
2091
|
}
|
|
2096
|
-
function textResult(
|
|
2097
|
-
const
|
|
2092
|
+
function textResult(_0x1f6943, _0x595906 = ![]) {
|
|
2093
|
+
const _0x5b18fe = { _0x163d23: 0x1ab }, _0x30d51d = _0x3cf5af;
|
|
2098
2094
|
return {
|
|
2099
2095
|
'content': [{
|
|
2100
|
-
'type':
|
|
2101
|
-
'text':
|
|
2096
|
+
'type': _0x30d51d(_0x5b18fe._0x163d23),
|
|
2097
|
+
'text': _0x1f6943
|
|
2102
2098
|
}],
|
|
2103
|
-
...
|
|
2099
|
+
..._0x595906 ? { 'isError': !![] } : {}
|
|
2104
2100
|
};
|
|
2105
2101
|
}
|
|
2106
|
-
async function registerChatBridgeTools(
|
|
2107
|
-
const
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
'attachment_ids': _0x526ec6[_0x386885(0x171)](_0x526ec6[_0x386885(_0x26be3b._0x1410fe)]())[_0x386885(_0x26be3b._0x3238e7)](),
|
|
2170
|
-
'visibility': _0x526ec6['enum']([
|
|
2171
|
-
_0x386885(0x21d),
|
|
2172
|
-
_0x386885(_0x26be3b._0x3a2ddb)
|
|
2173
|
-
])[_0x386885(0x256)]()[_0x386885(_0x26be3b._0x18b3e1)]('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2174
|
-
}, async _0x67e6c9 => {
|
|
2175
|
-
const _0x48eff2 = _0x386885;
|
|
2102
|
+
async function registerChatBridgeTools(_0x44eb63, _0x4c3cb7, _0x13a82c) {
|
|
2103
|
+
const _0x33ece0 = {
|
|
2104
|
+
_0x467046: 0x1b1,
|
|
2105
|
+
_0x32899f: 0x217,
|
|
2106
|
+
_0x404cfd: 0x222,
|
|
2107
|
+
_0x2bd263: 0x1fb,
|
|
2108
|
+
_0x277dd0: 0x125,
|
|
2109
|
+
_0xd0806c: 0x16c,
|
|
2110
|
+
_0x12794e: 0x10e,
|
|
2111
|
+
_0x376b6e: 0x189,
|
|
2112
|
+
_0x196432: 0x1ce,
|
|
2113
|
+
_0x5c8cf6: 0x217,
|
|
2114
|
+
_0x48e5b7: 0x121,
|
|
2115
|
+
_0x2c49f7: 0x10f,
|
|
2116
|
+
_0xd32d54: 0x1b8,
|
|
2117
|
+
_0x5209a8: 0x125,
|
|
2118
|
+
_0x1043d1: 0x269,
|
|
2119
|
+
_0x1241e0: 0x1cf,
|
|
2120
|
+
_0x2e4bb8: 0x22a,
|
|
2121
|
+
_0x38c33a: 0x1f8,
|
|
2122
|
+
_0x46c8c3: 0x10f,
|
|
2123
|
+
_0x242a7d: 0x17a,
|
|
2124
|
+
_0x4ea63a: 0x125,
|
|
2125
|
+
_0x3407ea: 0x15c,
|
|
2126
|
+
_0x205283: 0x125,
|
|
2127
|
+
_0x189da4: 0x1b8,
|
|
2128
|
+
_0x4339d5: 0x125,
|
|
2129
|
+
_0x5d9432: 0x125,
|
|
2130
|
+
_0xa456bf: 0x1e8,
|
|
2131
|
+
_0xa696f4: 0x251,
|
|
2132
|
+
_0x27673f: 0x1b8,
|
|
2133
|
+
_0x5f4f9e: 0x200,
|
|
2134
|
+
_0x4e90f3: 0x1d8,
|
|
2135
|
+
_0x20a030: 0x170,
|
|
2136
|
+
_0x3b9729: 0x1a2,
|
|
2137
|
+
_0x1dc7e4: 0x217,
|
|
2138
|
+
_0x5a0c61: 0x1bc,
|
|
2139
|
+
_0x2f517f: 0x242,
|
|
2140
|
+
_0x5eeb63: 0x1b2
|
|
2141
|
+
}, _0x507fdc = { _0x321326: 0x1bf }, _0x1a49ed = { _0x4c755f: 0x180 }, _0x512873 = { _0x5ce64a: 0x1d7 }, _0x5ca61f = { _0x1855e2: 0x123 }, _0x4b0d9c = { _0xb9bc90: 0x21b }, _0x4a60a5 = { _0x4440a4: 0x1e8 }, _0x39da06 = {
|
|
2142
|
+
_0xb35ea9: 0x113,
|
|
2143
|
+
_0x539974: 0x219,
|
|
2144
|
+
_0x843fe5: 0x15b
|
|
2145
|
+
}, _0x29b51d = {
|
|
2146
|
+
_0x2734d8: 0x22a,
|
|
2147
|
+
_0x51bce7: 0x280
|
|
2148
|
+
}, _0x540676 = { _0x52b66c: 0x219 }, _0x22439f = { _0x21c29c: 0x209 }, _0x5503a4 = { _0x4b6893: 0x12c }, _0xaa3c5c = {
|
|
2149
|
+
_0x3a4a6d: 0x219,
|
|
2150
|
+
_0x15d56c: 0x273
|
|
2151
|
+
}, _0x177786 = {
|
|
2152
|
+
_0x3bc314: 0x187,
|
|
2153
|
+
_0x58bc06: 0x219
|
|
2154
|
+
}, _0xe9628e = { _0x4710e3: 0x194 }, _0x36dfaf = _0x3cf5af, {z: _0x290fb4} = await import(_0x36dfaf(_0x33ece0._0x467046));
|
|
2155
|
+
_0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(0x192), _0x36dfaf(_0x33ece0._0x404cfd), {
|
|
2156
|
+
'target': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2157
|
+
'content': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2158
|
+
'attachment_ids': _0x290fb4['array'](_0x290fb4[_0x36dfaf(0x1b8)]())[_0x36dfaf(0x125)](),
|
|
2159
|
+
'visibility': _0x290fb4[_0x36dfaf(_0x33ece0._0x2bd263)]([
|
|
2160
|
+
_0x36dfaf(0x270),
|
|
2161
|
+
'aside'
|
|
2162
|
+
])[_0x36dfaf(_0x33ece0._0x277dd0)]()[_0x36dfaf(_0x33ece0._0xd0806c)](_0x36dfaf(0x16b))
|
|
2163
|
+
}, async _0x2713a8 => {
|
|
2164
|
+
const _0x1be985 = _0x36dfaf;
|
|
2176
2165
|
try {
|
|
2177
|
-
return textResult(await
|
|
2178
|
-
} catch (
|
|
2179
|
-
return textResult(
|
|
2166
|
+
return textResult(await _0x4c3cb7[_0x1be985(0x192)](_0x2713a8));
|
|
2167
|
+
} catch (_0x16e30c) {
|
|
2168
|
+
return textResult(_0x16e30c instanceof Error ? _0x16e30c[_0x1be985(0x219)] : _0x1be985(_0xe9628e._0x4710e3), !![]);
|
|
2180
2169
|
}
|
|
2181
|
-
}),
|
|
2182
|
-
const
|
|
2170
|
+
}), _0x44eb63[_0x36dfaf(0x217)](_0x36dfaf(0x187), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2171
|
+
const _0x5e83ea = _0x36dfaf;
|
|
2183
2172
|
try {
|
|
2184
|
-
return textResult(await
|
|
2185
|
-
} catch (
|
|
2186
|
-
return textResult(
|
|
2173
|
+
return textResult(await _0x4c3cb7[_0x5e83ea(_0x177786._0x3bc314)]());
|
|
2174
|
+
} catch (_0xcd7698) {
|
|
2175
|
+
return textResult(_0xcd7698 instanceof Error ? _0xcd7698[_0x5e83ea(_0x177786._0x58bc06)] : 'check_messages\x20failed', !![]);
|
|
2187
2176
|
}
|
|
2188
|
-
}),
|
|
2189
|
-
'channel':
|
|
2190
|
-
'limit':
|
|
2191
|
-
'before':
|
|
2192
|
-
'after':
|
|
2193
|
-
}, async
|
|
2194
|
-
const
|
|
2177
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(0x1ee), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2178
|
+
'channel': _0x290fb4['string'](),
|
|
2179
|
+
'limit': _0x290fb4['number']()[_0x36dfaf(_0x33ece0._0x277dd0)](),
|
|
2180
|
+
'before': _0x290fb4[_0x36dfaf(0x17a)]()[_0x36dfaf(0x125)](),
|
|
2181
|
+
'after': _0x290fb4['number']()[_0x36dfaf(0x125)]()
|
|
2182
|
+
}, async _0x1d6128 => {
|
|
2183
|
+
const _0x2a26c3 = _0x36dfaf;
|
|
2195
2184
|
try {
|
|
2196
|
-
return textResult(await
|
|
2197
|
-
} catch (
|
|
2198
|
-
return textResult(
|
|
2185
|
+
return textResult(await _0x4c3cb7[_0x2a26c3(0x1ee)](_0x1d6128));
|
|
2186
|
+
} catch (_0x247456) {
|
|
2187
|
+
return textResult(_0x247456 instanceof Error ? _0x247456[_0x2a26c3(_0xaa3c5c._0x3a4a6d)] : _0x2a26c3(_0xaa3c5c._0x15d56c), !![]);
|
|
2199
2188
|
}
|
|
2200
|
-
}),
|
|
2201
|
-
const
|
|
2189
|
+
}), _0x44eb63['tool'](_0x36dfaf(_0x33ece0._0x12794e), _0x36dfaf(0x124), {}, async () => {
|
|
2190
|
+
const _0x241d22 = _0x36dfaf;
|
|
2202
2191
|
try {
|
|
2203
|
-
return textResult(await
|
|
2204
|
-
} catch (
|
|
2205
|
-
return textResult(
|
|
2192
|
+
return textResult(await _0x4c3cb7[_0x241d22(0x10e)]());
|
|
2193
|
+
} catch (_0x4b789d) {
|
|
2194
|
+
return textResult(_0x4b789d instanceof Error ? _0x4b789d[_0x241d22(0x219)] : _0x241d22(_0x5503a4._0x4b6893), !![]);
|
|
2206
2195
|
}
|
|
2207
|
-
}),
|
|
2208
|
-
'channel':
|
|
2209
|
-
'status':
|
|
2196
|
+
}), _0x44eb63['tool']('list_tasks', _0x36dfaf(_0x33ece0._0x376b6e), {
|
|
2197
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2198
|
+
'status': _0x290fb4[_0x36dfaf(_0x33ece0._0x2bd263)]([
|
|
2210
2199
|
'todo',
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
])[
|
|
2215
|
-
}, async
|
|
2216
|
-
const
|
|
2200
|
+
_0x36dfaf(0x1d8),
|
|
2201
|
+
'in_review',
|
|
2202
|
+
_0x36dfaf(_0x33ece0._0x196432)
|
|
2203
|
+
])[_0x36dfaf(0x125)]()
|
|
2204
|
+
}, async _0x115c43 => {
|
|
2205
|
+
const _0x3269e9 = _0x36dfaf;
|
|
2217
2206
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2207
|
+
return textResult(await _0x4c3cb7[_0x3269e9(0x1c9)](_0x115c43));
|
|
2208
|
+
} catch (_0x3f4dd3) {
|
|
2209
|
+
return textResult(_0x3f4dd3 instanceof Error ? _0x3f4dd3['message'] : _0x3269e9(_0x22439f._0x21c29c), !![]);
|
|
2221
2210
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
'channel':
|
|
2224
|
-
'idempotency_key':
|
|
2225
|
-
'tasks':
|
|
2226
|
-
'title':
|
|
2227
|
-
'description':
|
|
2228
|
-
'priority':
|
|
2229
|
-
|
|
2230
|
-
|
|
2211
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x5c8cf6)](_0x36dfaf(0x1f9), _0x36dfaf(_0x33ece0._0x48e5b7), {
|
|
2212
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2213
|
+
'idempotency_key': _0x290fb4['string']()['optional'](),
|
|
2214
|
+
'tasks': _0x290fb4[_0x36dfaf(_0x33ece0._0x2c49f7)](_0x290fb4['object']({
|
|
2215
|
+
'title': _0x290fb4['string'](),
|
|
2216
|
+
'description': _0x290fb4[_0x36dfaf(_0x33ece0._0xd32d54)]()[_0x36dfaf(_0x33ece0._0x5209a8)](),
|
|
2217
|
+
'priority': _0x290fb4['enum']([
|
|
2218
|
+
'low',
|
|
2219
|
+
_0x36dfaf(_0x33ece0._0x1043d1),
|
|
2231
2220
|
'high',
|
|
2232
|
-
|
|
2233
|
-
])[
|
|
2221
|
+
_0x36dfaf(_0x33ece0._0x1241e0)
|
|
2222
|
+
])[_0x36dfaf(0x125)]()
|
|
2234
2223
|
}))
|
|
2235
|
-
}, async
|
|
2236
|
-
const
|
|
2224
|
+
}, async _0x802e14 => {
|
|
2225
|
+
const _0x4ca0bb = _0x36dfaf;
|
|
2237
2226
|
try {
|
|
2238
|
-
return textResult(await
|
|
2239
|
-
} catch (
|
|
2240
|
-
return textResult(
|
|
2227
|
+
return textResult(await _0x4c3cb7[_0x4ca0bb(0x1f9)](_0x802e14));
|
|
2228
|
+
} catch (_0x1c8a96) {
|
|
2229
|
+
return textResult(_0x1c8a96 instanceof Error ? _0x1c8a96[_0x4ca0bb(_0x540676._0x52b66c)] : 'create_tasks\x20failed', !![]);
|
|
2241
2230
|
}
|
|
2242
|
-
}),
|
|
2243
|
-
'channel':
|
|
2244
|
-
'task_numbers':
|
|
2245
|
-
'subtask_numbers':
|
|
2246
|
-
'message_ids':
|
|
2247
|
-
'evidence':
|
|
2248
|
-
'create_thread':
|
|
2249
|
-
'create_task':
|
|
2250
|
-
}))[
|
|
2251
|
-
'idempotency_key':
|
|
2252
|
-
}, async
|
|
2253
|
-
const
|
|
2231
|
+
}), _0x44eb63['tool'](_0x36dfaf(_0x33ece0._0x2e4bb8), _0x36dfaf(_0x33ece0._0x38c33a), {
|
|
2232
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2233
|
+
'task_numbers': _0x290fb4[_0x36dfaf(_0x33ece0._0x46c8c3)](_0x290fb4[_0x36dfaf(0x17a)]())[_0x36dfaf(0x125)](),
|
|
2234
|
+
'subtask_numbers': _0x290fb4[_0x36dfaf(0x10f)](_0x290fb4[_0x36dfaf(_0x33ece0._0x242a7d)]())[_0x36dfaf(0x125)](),
|
|
2235
|
+
'message_ids': _0x290fb4['array'](_0x290fb4[_0x36dfaf(0x1b8)]())[_0x36dfaf(_0x33ece0._0x4ea63a)](),
|
|
2236
|
+
'evidence': _0x290fb4['record'](_0x290fb4['string'](), _0x290fb4['object']({
|
|
2237
|
+
'create_thread': _0x290fb4[_0x36dfaf(_0x33ece0._0x3407ea)]()['optional'](),
|
|
2238
|
+
'create_task': _0x290fb4['unknown']()[_0x36dfaf(_0x33ece0._0x4ea63a)]()
|
|
2239
|
+
}))[_0x36dfaf(_0x33ece0._0x205283)](),
|
|
2240
|
+
'idempotency_key': _0x290fb4[_0x36dfaf(_0x33ece0._0x189da4)]()[_0x36dfaf(_0x33ece0._0x4339d5)]()
|
|
2241
|
+
}, async _0x38c397 => {
|
|
2242
|
+
const _0x405411 = _0x36dfaf;
|
|
2254
2243
|
try {
|
|
2255
|
-
return textResult(await
|
|
2256
|
-
} catch (
|
|
2257
|
-
return textResult(
|
|
2244
|
+
return textResult(await _0x4c3cb7[_0x405411(_0x29b51d._0x2734d8)](_0x38c397));
|
|
2245
|
+
} catch (_0x3a9283) {
|
|
2246
|
+
return textResult(_0x3a9283 instanceof Error ? _0x3a9283[_0x405411(0x219)] : _0x405411(_0x29b51d._0x51bce7), !![]);
|
|
2258
2247
|
}
|
|
2259
|
-
}),
|
|
2260
|
-
'channel':
|
|
2261
|
-
'task_number':
|
|
2262
|
-
'subtask_number':
|
|
2263
|
-
'idempotency_key':
|
|
2264
|
-
}, async
|
|
2265
|
-
const
|
|
2248
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x5c8cf6)](_0x36dfaf(0x113), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2249
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2250
|
+
'task_number': _0x290fb4['number'](),
|
|
2251
|
+
'subtask_number': _0x290fb4[_0x36dfaf(_0x33ece0._0x242a7d)]()[_0x36dfaf(_0x33ece0._0x5d9432)](),
|
|
2252
|
+
'idempotency_key': _0x290fb4[_0x36dfaf(0x1b8)]()[_0x36dfaf(0x125)]()
|
|
2253
|
+
}, async _0xa0dcc5 => {
|
|
2254
|
+
const _0x3af48f = _0x36dfaf;
|
|
2266
2255
|
try {
|
|
2267
|
-
return textResult(await
|
|
2268
|
-
} catch (
|
|
2269
|
-
return textResult(
|
|
2256
|
+
return textResult(await _0x4c3cb7[_0x3af48f(_0x39da06._0xb35ea9)](_0xa0dcc5));
|
|
2257
|
+
} catch (_0x2f0065) {
|
|
2258
|
+
return textResult(_0x2f0065 instanceof Error ? _0x2f0065[_0x3af48f(_0x39da06._0x539974)] : _0x3af48f(_0x39da06._0x843fe5), !![]);
|
|
2270
2259
|
}
|
|
2271
|
-
}),
|
|
2272
|
-
'channel':
|
|
2273
|
-
'task_number':
|
|
2274
|
-
'subtask_number':
|
|
2275
|
-
'status':
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2260
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(_0x33ece0._0xa456bf), _0x36dfaf(_0x33ece0._0xa696f4), {
|
|
2261
|
+
'channel': _0x290fb4[_0x36dfaf(_0x33ece0._0x27673f)](),
|
|
2262
|
+
'task_number': _0x290fb4['number'](),
|
|
2263
|
+
'subtask_number': _0x290fb4[_0x36dfaf(0x17a)]()['optional'](),
|
|
2264
|
+
'status': _0x290fb4[_0x36dfaf(0x1fb)]([
|
|
2265
|
+
_0x36dfaf(_0x33ece0._0x5f4f9e),
|
|
2266
|
+
_0x36dfaf(_0x33ece0._0x4e90f3),
|
|
2267
|
+
_0x36dfaf(0x197),
|
|
2268
|
+
'done'
|
|
2280
2269
|
]),
|
|
2281
|
-
'idempotency_key':
|
|
2282
|
-
}, async
|
|
2283
|
-
const
|
|
2270
|
+
'idempotency_key': _0x290fb4[_0x36dfaf(0x1b8)]()[_0x36dfaf(0x125)]()
|
|
2271
|
+
}, async _0x54ed93 => {
|
|
2272
|
+
const _0x5bbb76 = _0x36dfaf;
|
|
2284
2273
|
try {
|
|
2285
|
-
return textResult(await
|
|
2286
|
-
} catch (
|
|
2287
|
-
return textResult(
|
|
2274
|
+
return textResult(await _0x4c3cb7[_0x5bbb76(_0x4a60a5._0x4440a4)](_0x54ed93));
|
|
2275
|
+
} catch (_0x3963ae) {
|
|
2276
|
+
return textResult(_0x3963ae instanceof Error ? _0x3963ae['message'] : _0x5bbb76(0x233), !![]);
|
|
2288
2277
|
}
|
|
2289
|
-
}),
|
|
2290
|
-
'channel':
|
|
2291
|
-
'file_path':
|
|
2292
|
-
}, async
|
|
2293
|
-
const
|
|
2278
|
+
}), _0x44eb63['tool'](_0x36dfaf(_0x33ece0._0x20a030), _0x36dfaf(_0x33ece0._0x3b9729), {
|
|
2279
|
+
'channel': _0x290fb4[_0x36dfaf(0x1b8)](),
|
|
2280
|
+
'file_path': _0x290fb4['string']()
|
|
2281
|
+
}, async _0xdeb994 => {
|
|
2282
|
+
const _0x4d3dfc = _0x36dfaf;
|
|
2294
2283
|
try {
|
|
2295
|
-
return textResult(await
|
|
2296
|
-
} catch (
|
|
2297
|
-
return textResult(
|
|
2284
|
+
return textResult(await _0x4c3cb7['upload_file'](_0xdeb994));
|
|
2285
|
+
} catch (_0x28c1d7) {
|
|
2286
|
+
return textResult(_0x28c1d7 instanceof Error ? _0x28c1d7['message'] : _0x4d3dfc(_0x4b0d9c._0xb9bc90), !![]);
|
|
2298
2287
|
}
|
|
2299
|
-
}),
|
|
2300
|
-
const
|
|
2288
|
+
}), _0x44eb63[_0x36dfaf(0x217)]('view_file', _0x36dfaf(0x179), { 'attachment_id': _0x290fb4['string']() }, async _0xfcc26c => {
|
|
2289
|
+
const _0x58a7fa = _0x36dfaf;
|
|
2301
2290
|
try {
|
|
2302
|
-
return textResult(await
|
|
2303
|
-
} catch (
|
|
2304
|
-
return textResult(
|
|
2291
|
+
return textResult(await _0x4c3cb7[_0x58a7fa(_0x5ca61f._0x1855e2)](_0xfcc26c));
|
|
2292
|
+
} catch (_0x27df19) {
|
|
2293
|
+
return textResult(_0x27df19 instanceof Error ? _0x27df19['message'] : 'view_file\x20failed', !![]);
|
|
2305
2294
|
}
|
|
2306
|
-
}),
|
|
2307
|
-
const
|
|
2295
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x1dc7e4)]('get_worker_status', _0x36dfaf(_0x33ece0._0x5a0c61), { 'work_key': _0x290fb4[_0x36dfaf(0x1b8)]() }, async _0x469017 => {
|
|
2296
|
+
const _0x233d25 = _0x36dfaf;
|
|
2308
2297
|
try {
|
|
2309
|
-
return textResult(await
|
|
2310
|
-
} catch (
|
|
2311
|
-
return textResult(
|
|
2298
|
+
return textResult(await _0x4c3cb7['get_worker_status'](_0x469017));
|
|
2299
|
+
} catch (_0xb7426d) {
|
|
2300
|
+
return textResult(_0xb7426d instanceof Error ? _0xb7426d[_0x233d25(0x219)] : _0x233d25(_0x512873._0x5ce64a), !![]);
|
|
2312
2301
|
}
|
|
2313
|
-
}),
|
|
2314
|
-
const
|
|
2302
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x32899f)](_0x36dfaf(_0x33ece0._0x2f517f), _0x36dfaf(0x1e0), { 'work_key': _0x290fb4[_0x36dfaf(0x1b8)]() }, async _0x1153a1 => {
|
|
2303
|
+
const _0x560856 = _0x36dfaf;
|
|
2315
2304
|
try {
|
|
2316
|
-
return textResult(await
|
|
2317
|
-
} catch (
|
|
2318
|
-
return textResult(
|
|
2305
|
+
return textResult(await _0x4c3cb7['park_worker'](_0x1153a1));
|
|
2306
|
+
} catch (_0x436430) {
|
|
2307
|
+
return textResult(_0x436430 instanceof Error ? _0x436430[_0x560856(0x219)] : _0x560856(0x19d), !![]);
|
|
2319
2308
|
}
|
|
2320
|
-
}),
|
|
2321
|
-
'work_key':
|
|
2322
|
-
'reason':
|
|
2323
|
-
}, async
|
|
2324
|
-
const
|
|
2309
|
+
}), _0x44eb63[_0x36dfaf(_0x33ece0._0x1dc7e4)]('escalate_to_main', _0x36dfaf(0x24f), {
|
|
2310
|
+
'work_key': _0x290fb4[_0x36dfaf(_0x33ece0._0xd32d54)](),
|
|
2311
|
+
'reason': _0x290fb4['string']()
|
|
2312
|
+
}, async _0x3a9864 => {
|
|
2313
|
+
const _0xd913e1 = _0x36dfaf;
|
|
2325
2314
|
try {
|
|
2326
|
-
return textResult(await
|
|
2327
|
-
} catch (
|
|
2328
|
-
return textResult(
|
|
2315
|
+
return textResult(await _0x4c3cb7['escalate_to_main'](_0x3a9864));
|
|
2316
|
+
} catch (_0xf1355e) {
|
|
2317
|
+
return textResult(_0xf1355e instanceof Error ? _0xf1355e['message'] : _0xd913e1(_0x1a49ed._0x4c755f), !![]);
|
|
2329
2318
|
}
|
|
2330
|
-
}),
|
|
2331
|
-
const
|
|
2319
|
+
}), _0x13a82c?.[_0x36dfaf(_0x33ece0._0x5eeb63)] && _0x44eb63[_0x36dfaf(_0x33ece0._0x1dc7e4)](_0x36dfaf(0x11f), _0x36dfaf(0x25e), { 'work_key': _0x290fb4[_0x36dfaf(0x1b8)]() }, async _0x488780 => {
|
|
2320
|
+
const _0x4928c4 = _0x36dfaf;
|
|
2332
2321
|
try {
|
|
2333
|
-
return textResult(await
|
|
2334
|
-
} catch (
|
|
2335
|
-
return textResult(
|
|
2322
|
+
return textResult(await _0x4c3cb7['mark_waiting_input'](_0x488780));
|
|
2323
|
+
} catch (_0x59b8f9) {
|
|
2324
|
+
return textResult(_0x59b8f9 instanceof Error ? _0x59b8f9[_0x4928c4(0x219)] : _0x4928c4(_0x507fdc._0x321326), !![]);
|
|
2336
2325
|
}
|
|
2337
2326
|
});
|
|
2338
2327
|
}
|
|
2339
|
-
async function createChatBridgeServer(
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
}),
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2328
|
+
async function createChatBridgeServer(_0x90c9d1) {
|
|
2329
|
+
const _0x3ced2a = {
|
|
2330
|
+
_0x518439: 0x1da,
|
|
2331
|
+
_0x3500de: 0x1b2
|
|
2332
|
+
}, _0x4ef364 = _0x3cf5af, {McpServer: _0x1c0bc9} = await import(_0x4ef364(0x278)), _0x3ed466 = new _0x1c0bc9({
|
|
2333
|
+
'name': _0x4ef364(_0x3ced2a._0x518439),
|
|
2334
|
+
'version': _0x4ef364(0x15e)
|
|
2335
|
+
}), _0x194b38 = createChatBridgeHandlers(_0x90c9d1);
|
|
2336
|
+
return await registerChatBridgeTools(_0x3ed466, _0x194b38, { 'workerMode': _0x90c9d1[_0x4ef364(_0x3ced2a._0x3500de)] }), {
|
|
2337
|
+
'handlers': _0x194b38,
|
|
2338
|
+
'server': _0x3ed466
|
|
2347
2339
|
};
|
|
2348
2340
|
}
|
|
2349
|
-
function readFlag(
|
|
2350
|
-
const
|
|
2351
|
-
if (
|
|
2341
|
+
function readFlag(_0x4b396a, _0x4ff310) {
|
|
2342
|
+
const _0x62faef = _0x3cf5af, _0x28a257 = _0x4b396a[_0x62faef(0x1fa)](_0x4ff310);
|
|
2343
|
+
if (_0x28a257 === -0x1)
|
|
2352
2344
|
return void 0x0;
|
|
2353
|
-
return
|
|
2345
|
+
return _0x4b396a[_0x28a257 + 0x1];
|
|
2354
2346
|
}
|
|
2355
|
-
function parseChatBridgeArgs(
|
|
2356
|
-
const
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
}, _0x560e11 = _0x28aee3, _0x1e4849 = readFlag(_0x1051d0, '--agent-id'), _0x5920f2 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x509a0f)), _0x3ae280 = readFlag(_0x1051d0, '--daemon-api-key'), _0x573c43 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x5c78ef)), _0x29dbb0 = readFlag(_0x1051d0, _0x560e11(0x1bc)) ?? 'http://localhost:8121', _0xb25b70 = readFlag(_0x1051d0, _0x560e11(0x1bf)), _0x3520f6 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x7add9e)), _0x381308 = readFlag(_0x1051d0, '--worker-mode-enabled'), _0x157680 = readFlag(_0x1051d0, '--worker-session-id'), _0x1d19fe = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x1e9a38)), _0x13664f = _0x1051d0[_0x560e11(_0x30c605._0x3abc0e)](_0x560e11(_0x30c605._0x3193e1)), _0x48911b = _0x573c43 === void 0x0 ? void 0x0 : Number['parseInt'](_0x573c43, 0xa);
|
|
2366
|
-
if (!_0x1e4849)
|
|
2347
|
+
function parseChatBridgeArgs(_0x32cd20) {
|
|
2348
|
+
const _0x34da4b = {
|
|
2349
|
+
_0x218f05: 0x1d9,
|
|
2350
|
+
_0x43eae9: 0x1ac,
|
|
2351
|
+
_0x28492d: 0x235,
|
|
2352
|
+
_0xbff7f3: 0x28d,
|
|
2353
|
+
_0xc39d86: 0x1b5,
|
|
2354
|
+
_0x253614: 0x134
|
|
2355
|
+
}, _0x4a3291 = _0x3cf5af, _0x1261b3 = readFlag(_0x32cd20, _0x4a3291(0x1f1)), _0x2d8d8d = readFlag(_0x32cd20, '--attachment-cache-dir'), _0x28c984 = readFlag(_0x32cd20, _0x4a3291(0x1cb)), _0x1327af = readFlag(_0x32cd20, '--initial-last-seen-seq'), _0x1157db = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x218f05)) ?? 'http://localhost:8121', _0x404416 = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x43eae9)), _0x19cda7 = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x28492d)), _0x339943 = readFlag(_0x32cd20, '--worker-mode-enabled'), _0xb07ab0 = readFlag(_0x32cd20, _0x4a3291(0x294)), _0x3fa05f = readFlag(_0x32cd20, _0x4a3291(0x1a9)), _0x4707a5 = _0x32cd20[_0x4a3291(_0x34da4b._0xbff7f3)]('--worker-mode'), _0x38fbc6 = _0x1327af === void 0x0 ? void 0x0 : Number[_0x4a3291(_0x34da4b._0xc39d86)](_0x1327af, 0xa);
|
|
2356
|
+
if (!_0x1261b3)
|
|
2367
2357
|
throw new Error('Missing\x20--agent-id');
|
|
2368
|
-
if (!
|
|
2369
|
-
throw new Error(
|
|
2370
|
-
if (
|
|
2371
|
-
throw new Error(
|
|
2358
|
+
if (!_0x28c984)
|
|
2359
|
+
throw new Error(_0x4a3291(0x25a));
|
|
2360
|
+
if (_0x1327af !== void 0x0 && (_0x38fbc6 === void 0x0 || !Number[_0x4a3291(_0x34da4b._0x253614)](_0x38fbc6) || _0x38fbc6 < 0x0))
|
|
2361
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2372
2362
|
return {
|
|
2373
|
-
'agentId':
|
|
2374
|
-
'attachmentCacheDir':
|
|
2375
|
-
'daemonApiKey':
|
|
2376
|
-
'daemonLocalUrl':
|
|
2377
|
-
'initialLastSeenSeq':
|
|
2378
|
-
'sessionId':
|
|
2379
|
-
'serverUrl':
|
|
2380
|
-
'workerModeEnabled':
|
|
2381
|
-
'workerSessionId':
|
|
2382
|
-
'workerThreadTarget':
|
|
2383
|
-
'workerMode':
|
|
2363
|
+
'agentId': _0x1261b3,
|
|
2364
|
+
'attachmentCacheDir': _0x2d8d8d,
|
|
2365
|
+
'daemonApiKey': _0x28c984,
|
|
2366
|
+
'daemonLocalUrl': _0x404416,
|
|
2367
|
+
'initialLastSeenSeq': _0x38fbc6,
|
|
2368
|
+
'sessionId': _0x19cda7,
|
|
2369
|
+
'serverUrl': _0x1157db,
|
|
2370
|
+
'workerModeEnabled': _0x339943 === void 0x0 ? void 0x0 : _0x339943 !== _0x4a3291(0x1c1),
|
|
2371
|
+
'workerSessionId': _0xb07ab0,
|
|
2372
|
+
'workerThreadTarget': _0x3fa05f,
|
|
2373
|
+
'workerMode': _0x4707a5
|
|
2384
2374
|
};
|
|
2385
2375
|
}
|
|
2386
|
-
async function runChatBridgeCli(
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
'
|
|
2376
|
+
async function runChatBridgeCli(_0x4dd00) {
|
|
2377
|
+
const _0x34165d = {
|
|
2378
|
+
_0xf54ab0: 0x288,
|
|
2379
|
+
_0x207923: 0x24b,
|
|
2380
|
+
_0x4834da: 0x1b2,
|
|
2381
|
+
_0x38a9e9: 0x129,
|
|
2382
|
+
_0x4cc10a: 0x285
|
|
2383
|
+
}, _0x24627d = _0x3cf5af, _0x3c36b9 = parseChatBridgeArgs(_0x4dd00), {StdioServerTransport: _0x4e2631} = await import(_0x24627d(0x18c)), _0x25017b = createInternalAgentClient(_0x3c36b9), _0x45d204 = createAttachmentCache({ 'cacheDir': _0x3c36b9['attachmentCacheDir'] }), _0x18f396 = await createChatBridgeServer({
|
|
2384
|
+
'agentId': _0x3c36b9[_0x24627d(_0x34165d._0xf54ab0)],
|
|
2385
|
+
'attachmentCache': _0x45d204,
|
|
2386
|
+
'client': _0x25017b,
|
|
2387
|
+
'daemonLocalUrl': _0x3c36b9[_0x24627d(_0x34165d._0x207923)],
|
|
2395
2388
|
'uploadPreparer': prepareUploadFile,
|
|
2396
|
-
'workerModeEnabled':
|
|
2397
|
-
'workerMode':
|
|
2398
|
-
'workerThreadTarget':
|
|
2389
|
+
'workerModeEnabled': _0x3c36b9['workerModeEnabled'],
|
|
2390
|
+
'workerMode': _0x3c36b9[_0x24627d(_0x34165d._0x4834da)],
|
|
2391
|
+
'workerThreadTarget': _0x3c36b9[_0x24627d(_0x34165d._0x38a9e9)]
|
|
2399
2392
|
});
|
|
2400
|
-
await
|
|
2393
|
+
await _0x18f396[_0x24627d(0x1de)][_0x24627d(_0x34165d._0x4cc10a)](new _0x4e2631());
|
|
2401
2394
|
}
|
|
2402
|
-
var executedAsEntry = process[
|
|
2403
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2395
|
+
var executedAsEntry = process[_0x3cf5af(0x255)][0x1] ? import.meta.url === pathToFileURL(process[_0x3cf5af(0x255)][0x1])[_0x3cf5af(0x1d1)] : ![];
|
|
2396
|
+
executedAsEntry && await runChatBridgeCli(process[_0x3cf5af(0x255)][_0x3cf5af(0x26d)](0x2));
|
|
2404
2397
|
export {
|
|
2405
2398
|
createChatBridgeHandlers,
|
|
2406
2399
|
createChatBridgeServer,
|