@dscord/daemon 0.1.18 → 0.1.22
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 +2008 -2022
- package/dist/index.js +8133 -7637
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const _0xd0824a = _0x5931;
|
|
2
|
+
(function (_0x3c15b2, _0x35594e) {
|
|
3
|
+
const _0x17e712 = {
|
|
4
|
+
_0x548944: 0x1f7,
|
|
5
|
+
_0x577873: 0x1ed,
|
|
6
|
+
_0x29e1a1: 0x285,
|
|
7
|
+
_0x1c3058: 0x22b,
|
|
8
|
+
_0x32d667: 0x2e8,
|
|
9
|
+
_0x331d84: 0x2d4,
|
|
10
|
+
_0x2d4fbc: 0x23f
|
|
11
|
+
}, _0x5ae86c = _0x5931, _0x27eb0d = _0x3c15b2();
|
|
10
12
|
while (!![]) {
|
|
11
13
|
try {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
+
const _0x3b3d45 = parseInt(_0x5ae86c(_0x17e712._0x548944)) / 0x1 + -parseInt(_0x5ae86c(0x1dd)) / 0x2 + parseInt(_0x5ae86c(_0x17e712._0x577873)) / 0x3 * (parseInt(_0x5ae86c(_0x17e712._0x29e1a1)) / 0x4) + -parseInt(_0x5ae86c(0x187)) / 0x5 * (parseInt(_0x5ae86c(_0x17e712._0x1c3058)) / 0x6) + parseInt(_0x5ae86c(_0x17e712._0x32d667)) / 0x7 * (-parseInt(_0x5ae86c(0x245)) / 0x8) + -parseInt(_0x5ae86c(_0x17e712._0x331d84)) / 0x9 * (parseInt(_0x5ae86c(0x230)) / 0xa) + -parseInt(_0x5ae86c(0x2a8)) / 0xb * (-parseInt(_0x5ae86c(_0x17e712._0x2d4fbc)) / 0xc);
|
|
15
|
+
if (_0x3b3d45 === _0x35594e)
|
|
14
16
|
break;
|
|
15
17
|
else
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
18
|
+
_0x27eb0d['push'](_0x27eb0d['shift']());
|
|
19
|
+
} catch (_0x933238) {
|
|
20
|
+
_0x27eb0d['push'](_0x27eb0d['shift']());
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
}(
|
|
23
|
+
}(_0x3e90, 0xc0aa5));
|
|
22
24
|
import { pathToFileURL } from 'node:url';
|
|
23
25
|
import {
|
|
24
26
|
mkdir,
|
|
@@ -28,483 +30,83 @@ import {
|
|
|
28
30
|
writeFile
|
|
29
31
|
} from 'node:fs/promises';
|
|
30
32
|
import { homedir } from 'node:os';
|
|
31
|
-
import
|
|
33
|
+
import _0x3d8400 from 'node:path';
|
|
32
34
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
33
|
-
'.csv':
|
|
34
|
-
'.gif':
|
|
35
|
-
'.jpeg':
|
|
36
|
-
'.jpg':
|
|
35
|
+
'.csv': _0xd0824a(0x1ce),
|
|
36
|
+
'.gif': _0xd0824a(0x232),
|
|
37
|
+
'.jpeg': _0xd0824a(0x2ca),
|
|
38
|
+
'.jpg': _0xd0824a(0x2ca),
|
|
37
39
|
'.json': 'application/json',
|
|
38
|
-
'.md':
|
|
39
|
-
'.pdf':
|
|
40
|
-
'.png':
|
|
41
|
-
'.svg':
|
|
42
|
-
'.txt':
|
|
43
|
-
'.webp':
|
|
44
|
-
'.xml':
|
|
45
|
-
'.zip':
|
|
40
|
+
'.md': _0xd0824a(0x238),
|
|
41
|
+
'.pdf': _0xd0824a(0x1e6),
|
|
42
|
+
'.png': 'image/png',
|
|
43
|
+
'.svg': _0xd0824a(0x244),
|
|
44
|
+
'.txt': _0xd0824a(0x1ae),
|
|
45
|
+
'.webp': 'image/webp',
|
|
46
|
+
'.xml': _0xd0824a(0x288),
|
|
47
|
+
'.zip': _0xd0824a(0x2a6)
|
|
46
48
|
};
|
|
47
|
-
function guessContentType(
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
_0x3cfc9c: 0x129
|
|
51
|
-
}, _0x10b789 = _0x174aa9;
|
|
52
|
-
return MIME_BY_EXTENSION[_0x5a04e4['extname'](_0x486144)[_0x10b789(_0x2e6e7c._0x3cfda2)]()] ?? _0x10b789(_0x2e6e7c._0x3cfc9c);
|
|
49
|
+
function guessContentType(_0x41f792) {
|
|
50
|
+
const _0x36621b = { _0x207f28: 0x208 }, _0x3fc90a = _0xd0824a;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x3d8400[_0x3fc90a(_0x36621b._0x207f28)](_0x41f792)['toLowerCase']()] ?? _0x3fc90a(0x21e);
|
|
53
52
|
}
|
|
54
|
-
function safeFilename(
|
|
55
|
-
const
|
|
56
|
-
return
|
|
53
|
+
function safeFilename(_0x5756f4) {
|
|
54
|
+
const _0x3ea66b = { _0x32dd5c: 0x1c0 }, _0x25ee40 = _0xd0824a;
|
|
55
|
+
return _0x5756f4[_0x25ee40(_0x3ea66b._0x32dd5c)](/[\\/]/g, '-');
|
|
57
56
|
}
|
|
58
|
-
function
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
'y29UDgvUDfr5Cgu',
|
|
65
|
-
'AxnbCNjHEq',
|
|
66
|
-
'C2XPy2u',
|
|
67
|
-
'DgHYzwfK',
|
|
68
|
-
'Aw1Hz2uVCg5N',
|
|
69
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
70
|
-
'Dg9KBW',
|
|
71
|
-
'nty3men5tLvAqq',
|
|
72
|
-
'yM9KEu1HCMTKB3DU',
|
|
73
|
-
'DgfZAY0',
|
|
74
|
-
'yxr0ywnOBwvUDeLK',
|
|
75
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
76
|
-
'ignSywLTzwq',
|
|
77
|
-
'CxvLDwvK',
|
|
78
|
-
'C2HHmJu2',
|
|
79
|
-
'zMfSC2u',
|
|
80
|
-
'C2vUzgvYvhLWzq',
|
|
81
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
82
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
83
|
-
'zMLSzw5HBwu',
|
|
84
|
-
'v29YA2vYia',
|
|
85
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
86
|
-
'CMvHC29U',
|
|
87
|
-
'BwvTyMvYCW',
|
|
88
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
89
|
-
'D29YA2vYtw9Kzq',
|
|
90
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
91
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
92
|
-
'y2HHBM5LBe5HBwu',
|
|
93
|
-
'CNvUswq',
|
|
94
|
-
'zgvJAxnPB25Z',
|
|
95
|
-
'A2LUza',
|
|
96
|
-
'icHPzdO',
|
|
97
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
98
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
99
|
-
'kgXLz2fJEsK',
|
|
100
|
-
'iYmJieH1BwfUCW',
|
|
101
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
102
|
-
'zgvZy3jPChrPB24',
|
|
103
|
-
'BwLU',
|
|
104
|
-
'Axnoyu4',
|
|
105
|
-
'z2v0rgf0zq',
|
|
106
|
-
'yxjYyxK',
|
|
107
|
-
'C3rHDhvZ',
|
|
108
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
109
|
-
'B3b0Aw9UywW',
|
|
110
|
-
'iJOGC3rHDhvZpq',
|
|
111
|
-
'DgfYz2v0zwruyxnR',
|
|
112
|
-
'y29UBMvJDa',
|
|
113
|
-
'Aw5JBhvKzxm',
|
|
114
|
-
'lsba',
|
|
115
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
116
|
-
'ChjVDg9JB2W',
|
|
117
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
118
|
-
'zMLSDgvY',
|
|
119
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
120
|
-
'AgvHzgvYCW',
|
|
121
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
122
|
-
'AxnjBNrLz2vY',
|
|
123
|
-
'sfruuca',
|
|
124
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
125
|
-
'ls1Hz2vUDc1Pza',
|
|
126
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
127
|
-
'y2XHAw1uyxnRCW',
|
|
128
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
129
|
-
'zMLUza',
|
|
130
|
-
'pgvTChr5pG',
|
|
131
|
-
'DxjNzw50',
|
|
132
|
-
'D3m6',
|
|
133
|
-
'Cgf5Bg9HzePZB24',
|
|
134
|
-
'xsba',
|
|
135
|
-
'l3rHC2TZl2nSywLT',
|
|
136
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
137
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
138
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
139
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
140
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
141
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
142
|
-
'yxjYyxLcDwzMzxi',
|
|
143
|
-
'C29Tzq',
|
|
144
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
145
|
-
'DgfYz2v0',
|
|
146
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
147
|
-
'y29UDgvUDa',
|
|
148
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
149
|
-
'zgvSzxrL',
|
|
150
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
151
|
-
'AgLNAa',
|
|
152
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
153
|
-
'zg06',
|
|
154
|
-
'ANnVBG',
|
|
155
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
156
|
-
'BwvZC2fNzq',
|
|
157
|
-
'BMv4Den1CNnVCG',
|
|
158
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
159
|
-
'zMfPBgvK',
|
|
160
|
-
'zgvZDhjVEwvK',
|
|
161
|
-
'Bwf0y2Hoyw1L',
|
|
162
|
-
'zxjYB3i',
|
|
163
|
-
'yMfZzw5HBwu',
|
|
164
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
165
|
-
'Bwf4',
|
|
166
|
-
'ChvZAa',
|
|
167
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
168
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
169
|
-
'Dg9gAxHLza',
|
|
170
|
-
'Bg9JywXLq29TCgfYzq',
|
|
171
|
-
'ig1LC3nHz2vZkqOk',
|
|
172
|
-
'DgfZA051BwjLCG',
|
|
173
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
174
|
-
'AgfZ',
|
|
175
|
-
'lMjPBG',
|
|
176
|
-
'ywDNCMvNyxrLswq',
|
|
177
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
178
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
179
|
-
'C2vX',
|
|
180
|
-
'Dw5JBgfPBvrHC2S',
|
|
181
|
-
'DMLLD19MAwXL',
|
|
182
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
183
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
184
|
-
'ig1ZzZ0',
|
|
185
|
-
'C3rYAw5NAwz5',
|
|
186
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
187
|
-
'yxr0ywnOBwvUDhm',
|
|
188
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
189
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
190
|
-
'C2nOzwr1BgvKrM9Y',
|
|
191
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
192
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
193
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
194
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
195
|
-
'C2vUze1LC3nHz2u',
|
|
196
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
197
|
-
'zNjVBq',
|
|
198
|
-
'yMfZzty0',
|
|
199
|
-
'Aw1Hz2uVD2vICa',
|
|
200
|
-
'y29UDgvUDc10ExbL',
|
|
201
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
202
|
-
'C3rYAw5N',
|
|
203
|
-
'C3rHCNrZv2L0Aa',
|
|
204
|
-
'zw51Bq',
|
|
205
|
-
'BgLZDfnLCNzLCG',
|
|
206
|
-
'iYmJiefNzw50CW',
|
|
207
|
-
'uefuq0G',
|
|
208
|
-
'zMv0y2HjBxbS',
|
|
209
|
-
'6k+35Rgcia',
|
|
210
|
-
'zw50CMLLCW',
|
|
211
|
-
'Ahr0CdO',
|
|
212
|
-
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
213
|
-
'mZCWuuX0wLfZ',
|
|
214
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
215
|
-
'BwvZC2fNzxm',
|
|
216
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
217
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
218
|
-
'z2v0sg91CNm',
|
|
219
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
220
|
-
'Dw5RBM93BG',
|
|
221
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
222
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
223
|
-
'iYmGu2vYDMvYoIa',
|
|
224
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
225
|
-
'B2jQzwn0',
|
|
226
|
-
'DxrMoa',
|
|
227
|
-
'D29YA2vY',
|
|
228
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
229
|
-
'C3vJy2vZCW',
|
|
230
|
-
'zMLSzxnFy2HHBMDLza',
|
|
231
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
232
|
-
'CMvZDwX0CW',
|
|
233
|
-
'C2vUzf9TzxnZywDL',
|
|
234
|
-
'ywjVCNrLza',
|
|
235
|
-
'zgfLBw9UqxbPs2v5',
|
|
236
|
-
'AM9PBG',
|
|
237
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
238
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
239
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
240
|
-
'CMvJB3jK',
|
|
241
|
-
'yxnPzgu',
|
|
242
|
-
'Dw5JBgfPBv90yxnR',
|
|
243
|
-
'CgfYDgLJAxbHBNrZ',
|
|
244
|
-
'CMvXDwvZDfvYBa',
|
|
245
|
-
'mJiZntHbDgvez2u',
|
|
246
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
247
|
-
'DgvZDa',
|
|
248
|
-
'iokaLca',
|
|
249
|
-
'Bwv0yq',
|
|
250
|
-
'CgfYC2u',
|
|
251
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
252
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
253
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
254
|
-
'ue9tva',
|
|
255
|
-
'kg5VBMuP',
|
|
256
|
-
'zgf0yq',
|
|
257
|
-
'AhvTyw4',
|
|
258
|
-
'DxbSB2fKrMLSzq',
|
|
259
|
-
'AhjLzG',
|
|
260
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
261
|
-
'zMLSzv9WyxrO',
|
|
262
|
-
'BwvZC2fNzuLK',
|
|
263
|
-
'ywz0zxjtzxe',
|
|
264
|
-
'l3nLCNzLCG',
|
|
265
|
-
'l3vWBg9Hza',
|
|
266
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
267
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
268
|
-
'mtK1nJbcqLzPtNi',
|
|
269
|
-
'CgfKu3rHCNq',
|
|
270
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
271
|
-
'CMvZDwX0',
|
|
272
|
-
'yxv0BZO',
|
|
273
|
-
'BMfTzq',
|
|
274
|
-
'l3rHC2TZpW',
|
|
275
|
-
'CMvZDwX0sNnVBG',
|
|
276
|
-
'CgfYC2vjBNq',
|
|
277
|
-
'l2nVBNrLBNq',
|
|
278
|
-
'D3nZoG',
|
|
279
|
-
'CgfYDgLJAxbHBNrjza',
|
|
280
|
-
'z2v0u2vJB25KCW',
|
|
281
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
282
|
-
'CM9VDe1LC3nHz2vjza',
|
|
283
|
-
'Dg9ju09tDhjPBMC',
|
|
284
|
-
'DgfZAW',
|
|
285
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
286
|
-
'ywDLBNrZ',
|
|
287
|
-
'r0vu',
|
|
288
|
-
'y3jLyxrLx3rHC2TZ',
|
|
289
|
-
'Dg9tDhjPBMC',
|
|
290
|
-
'zgLZCg9ZAxrPB24',
|
|
291
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
292
|
-
'y3vYC29Y',
|
|
293
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzc4',
|
|
294
|
-
'ywjVCNq',
|
|
295
|
-
'yMXVy2TLza',
|
|
296
|
-
'C2vYDMvYvxjS',
|
|
297
|
-
'lNnSB2nR',
|
|
298
|
-
'y2HHBM5LBeLK',
|
|
299
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
300
|
-
'y3jLyxrLzef0',
|
|
301
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
302
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
303
|
-
'C3vTBwfYEq',
|
|
304
|
-
'y2XHAw0GzMfPBgvK',
|
|
305
|
-
'y2fJAgveAxi',
|
|
306
|
-
'C2LNBMfS',
|
|
307
|
-
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
308
|
-
'C3rHCNrLza',
|
|
309
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
310
|
-
'z2v0',
|
|
311
|
-
'DgHYzwfKu2HVCNrjza',
|
|
312
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
313
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
314
|
-
'yxjNDG',
|
|
315
|
-
'C2vYDMvYtMfTzq',
|
|
316
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
317
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
318
|
-
'lsaJ',
|
|
319
|
-
'ndGYodC5mgfNyMXXsq',
|
|
320
|
-
'ndCYntKXow1Wthrmwq',
|
|
321
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
322
|
-
'mZG3CLjjyLfs',
|
|
323
|
-
'ywz0zxi',
|
|
324
|
-
'BwvKAxvT',
|
|
325
|
-
'mJGWn21mzgLUDW',
|
|
326
|
-
'y2HHBM5LBa',
|
|
327
|
-
'Bg93',
|
|
328
|
-
'CMvWBgfJzq',
|
|
329
|
-
'mtjdwwTeu00',
|
|
330
|
-
'w3rHCMDLDd0',
|
|
331
|
-
'zxHWAxjLC0f0',
|
|
332
|
-
'BgLZDf90yxnRCW',
|
|
333
|
-
'y2HHBM5LBhm',
|
|
334
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
335
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
336
|
-
'BNvTyMvY',
|
|
337
|
-
'mJGZndq5Bhfzq2nS',
|
|
338
|
-
'CMvHzf9OAxn0B3j5',
|
|
339
|
-
'Aw5FChjVz3jLC3m',
|
|
340
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
341
|
-
'D29YA2vYCW',
|
|
342
|
-
'y3jLyxrLvgfZA3m',
|
|
343
|
-
'lIbnzxnZywDLieLeoIa',
|
|
344
|
-
'DgfYz2v0zwq',
|
|
345
|
-
'C2f2zq',
|
|
346
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
347
|
-
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
348
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
349
|
-
'z2v0vgLTzq',
|
|
350
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
351
|
-
'ywXS',
|
|
352
|
-
'D29YA19RzxK',
|
|
353
|
-
'DgfZA0LK',
|
|
354
|
-
'DgHYzwfKtNvTyMvY',
|
|
355
|
-
'ihn0yxr1CZ0',
|
|
356
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
357
|
-
'Aw5FCMv2Awv3',
|
|
358
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
359
|
-
'ls1Zzxj2zxiTDxjS',
|
|
360
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
361
|
-
'v29YA2vYici',
|
|
362
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
363
|
-
'AgfZtw9Yzq',
|
|
364
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
365
|
-
'C2L6zq',
|
|
366
|
-
'l2HPC3rVCNK/',
|
|
367
|
-
'ywDLBNrjza',
|
|
368
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
369
|
-
'DxnLCG',
|
|
370
|
-
'Dgv4Dc9JC3y',
|
|
371
|
-
'y2HLy2TnzxnZywDLCW',
|
|
372
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
373
|
-
'y2HHDa',
|
|
374
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
375
|
-
'ywDLBNq',
|
|
376
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
377
|
-
'B3bLBL9PC3n1zxm',
|
|
378
|
-
'nZa4t1vXqvLQ',
|
|
379
|
-
'C2v0',
|
|
380
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
381
|
-
'BgLZDf9Zzxj2zxi',
|
|
382
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
383
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
384
|
-
'l3nLBMq',
|
|
385
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
386
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
387
|
-
'DxbKyxrL',
|
|
388
|
-
'CMvHzeHPC3rVCNK',
|
|
389
|
-
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
390
|
-
'ihrPBwu9',
|
|
391
|
-
'DMfSDwu',
|
|
392
|
-
'w3nLCt0',
|
|
393
|
-
'DgfZA19Pza',
|
|
394
|
-
'zxzLBNrtzxe',
|
|
395
|
-
'ywrK',
|
|
396
|
-
'AxnbyNnVBhv0zq',
|
|
397
|
-
'BgLTAxq',
|
|
398
|
-
'C29YDa',
|
|
399
|
-
'l3jLy2vPDMu',
|
|
400
|
-
'y2XHAw1FDgfZA3m',
|
|
401
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
402
|
-
'DhjPBq',
|
|
403
|
-
'DMLZAwjPBgL0Eq',
|
|
404
|
-
'Aw1Hz2uVANbLzW',
|
|
405
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
406
|
-
'mc4WlJa',
|
|
407
|
-
'igzHAwXLzdOG',
|
|
408
|
-
'khvUA25VD24P',
|
|
409
|
-
'AhvTyw5Z',
|
|
410
|
-
'ls1ZzxnZAw9UlwLK',
|
|
411
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
412
|
-
'DgHYzwfKswq',
|
|
413
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
414
|
-
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
415
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
416
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
417
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
418
|
-
'Dgv4Da',
|
|
419
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
420
|
-
'DgfZA3m',
|
|
421
|
-
'C2vYDMvY',
|
|
422
|
-
'CMvZCg9UC2u',
|
|
423
|
-
'DxbSB2fKx2zPBgu',
|
|
424
|
-
'Dg9mB3DLCKnHC2u',
|
|
425
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
426
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
427
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
428
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
429
|
-
'C2vYDMvYx21LBwjLCNm',
|
|
430
|
-
'BwfW',
|
|
431
|
-
'BgvUz3rO',
|
|
432
|
-
'ihr5Cgu9ywDLBNq',
|
|
433
|
-
'yMvMB3jL',
|
|
434
|
-
'y2f0y2G',
|
|
435
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
436
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
437
|
-
'Dg9VBa',
|
|
438
|
-
'y2XPzw50',
|
|
439
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
440
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
441
|
-
'ig1LC3nHz2u9',
|
|
442
|
-
'C2vZC2LVBKLK',
|
|
443
|
-
'y29UDgvUDejHC2u2na',
|
|
444
|
-
'C2vUzgvYtMfTzq',
|
|
445
|
-
'nZvRwgPxt0W',
|
|
446
|
-
'Ahr0Chm6',
|
|
447
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
448
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
449
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
450
|
-
'BgLZDfrHC2TZ',
|
|
451
|
-
'l3rHC2TZ',
|
|
452
|
-
'zg9Uzq',
|
|
453
|
-
'tM8GDgfZA3mGy3jLyxrLzc4'
|
|
454
|
-
];
|
|
455
|
-
_0x2354 = function () {
|
|
456
|
-
return _0x5395fa;
|
|
457
|
-
};
|
|
458
|
-
return _0x2354();
|
|
57
|
+
function extensionFor(_0x3a742e) {
|
|
58
|
+
const _0x38b7b7 = {
|
|
59
|
+
_0x390407: 0x2ec,
|
|
60
|
+
_0x512c2d: 0x1d7
|
|
61
|
+
}, _0x1919c6 = _0xd0824a, _0x15cd91 = Object[_0x1919c6(0x2e2)](MIME_BY_EXTENSION)[_0x1919c6(_0x38b7b7._0x390407)](([, _0x1fe0dc]) => _0x1fe0dc === _0x3a742e);
|
|
62
|
+
return _0x15cd91?.[0x0] ?? _0x1919c6(_0x38b7b7._0x512c2d);
|
|
459
63
|
}
|
|
460
|
-
function
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
const _0xcceb75 = _0x16fbae[_0x2791ff(_0x1a5b26._0x2452d3)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
477
|
-
if (_0x41c2c7[_0x2791ff(_0x1a5b26._0x2a861b)] > _0xcceb75)
|
|
478
|
-
throw new Error(_0x2791ff(0x1d0) + _0x41c2c7[_0x2791ff(_0x1a5b26._0xdcbb73)]);
|
|
479
|
-
const _0x2ce88c = await readFile(_0x522697), _0x308919 = _0x5a04e4[_0x2791ff(0x94)](_0x522697);
|
|
64
|
+
async function prepareUploadFile(_0x1481af, _0x594bf4 = {}) {
|
|
65
|
+
const _0x1d3854 = {
|
|
66
|
+
_0x5a292a: 0x296,
|
|
67
|
+
_0xefce86: 0x1fe,
|
|
68
|
+
_0x5c512f: 0x190,
|
|
69
|
+
_0x52b7fa: 0x1b1
|
|
70
|
+
}, _0xb5a35d = _0xd0824a;
|
|
71
|
+
if (!_0x3d8400['isAbsolute'](_0x1481af))
|
|
72
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
73
|
+
const _0x9a07cf = await stat(_0x1481af)[_0xb5a35d(0x1e8)](() => null);
|
|
74
|
+
if (!_0x9a07cf || !_0x9a07cf[_0xb5a35d(_0x1d3854._0x5a292a)]())
|
|
75
|
+
throw new Error('File\x20not\x20found:\x20' + _0x1481af);
|
|
76
|
+
const _0x51532b = _0x594bf4[_0xb5a35d(0x2a7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
77
|
+
if (_0x9a07cf[_0xb5a35d(0x1b1)] > _0x51532b)
|
|
78
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x9a07cf['size']);
|
|
79
|
+
const _0x57d9f8 = await readFile(_0x1481af), _0x49ba05 = _0x3d8400[_0xb5a35d(0x1e4)](_0x1481af);
|
|
480
80
|
return {
|
|
481
|
-
'contentBase64':
|
|
482
|
-
'contentType': guessContentType(
|
|
483
|
-
'filename':
|
|
484
|
-
'sizeBytes':
|
|
81
|
+
'contentBase64': _0x57d9f8[_0xb5a35d(_0x1d3854._0xefce86)](_0xb5a35d(_0x1d3854._0x5c512f)),
|
|
82
|
+
'contentType': guessContentType(_0x49ba05),
|
|
83
|
+
'filename': _0x49ba05,
|
|
84
|
+
'sizeBytes': _0x9a07cf[_0xb5a35d(_0x1d3854._0x52b7fa)]
|
|
485
85
|
};
|
|
486
86
|
}
|
|
487
|
-
function createAttachmentCache(
|
|
488
|
-
const
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
87
|
+
function createAttachmentCache(_0x4479b7 = {}) {
|
|
88
|
+
const _0x528b3e = {
|
|
89
|
+
_0x123942: 0x269,
|
|
90
|
+
_0x512b26: 0x267
|
|
91
|
+
}, _0x7b1717 = {
|
|
92
|
+
_0xd39a27: 0x220,
|
|
93
|
+
_0x3fd3da: 0x20e,
|
|
94
|
+
_0x4e2c14: 0x25f,
|
|
95
|
+
_0x32ddca: 0x1fa
|
|
96
|
+
}, _0x36e605 = _0xd0824a, _0x490d93 = _0x4479b7[_0x36e605(_0x528b3e._0x123942)] ?? _0x3d8400[_0x36e605(0x248)](homedir(), _0x36e605(0x195), _0x36e605(_0x528b3e._0x512b26));
|
|
495
97
|
return {
|
|
496
|
-
'cacheDir':
|
|
497
|
-
async 'findCachedPath'(
|
|
498
|
-
const
|
|
499
|
-
await mkdir(
|
|
500
|
-
const
|
|
501
|
-
return
|
|
98
|
+
'cacheDir': _0x490d93,
|
|
99
|
+
async 'findCachedPath'(_0x2569e6) {
|
|
100
|
+
const _0x4a827c = _0x36e605;
|
|
101
|
+
await mkdir(_0x490d93, { 'recursive': !![] });
|
|
102
|
+
const _0x358d4c = await readdir(_0x490d93), _0x2a8a49 = _0x358d4c['find'](_0x4ff982 => _0x4ff982[_0x4a827c(0x2c2)](_0x2569e6 + '-') || _0x4ff982[_0x4a827c(0x2c2)](_0x2569e6));
|
|
103
|
+
return _0x2a8a49 ? _0x3d8400[_0x4a827c(0x248)](_0x490d93, _0x2a8a49) : null;
|
|
502
104
|
},
|
|
503
|
-
async 'save'(
|
|
504
|
-
const
|
|
505
|
-
await mkdir(
|
|
506
|
-
const
|
|
507
|
-
return await writeFile(
|
|
105
|
+
async 'save'(_0x107861) {
|
|
106
|
+
const _0x3366b2 = _0x36e605;
|
|
107
|
+
await mkdir(_0x490d93, { 'recursive': !![] });
|
|
108
|
+
const _0x51f6c4 = _0x107861[_0x3366b2(0x220)]?.[_0x3366b2(0x256)]() ? safeFilename(_0x107861[_0x3366b2(_0x7b1717._0xd39a27)]) : '' + _0x107861['attachmentId'] + extensionFor(_0x107861[_0x3366b2(_0x7b1717._0x3fd3da)]), _0x55e0d4 = _0x3d8400[_0x3366b2(0x248)](_0x490d93, _0x107861[_0x3366b2(_0x7b1717._0x4e2c14)] + '-' + _0x51f6c4);
|
|
109
|
+
return await writeFile(_0x55e0d4, _0x107861[_0x3366b2(_0x7b1717._0x32ddca)]), _0x55e0d4;
|
|
508
110
|
}
|
|
509
111
|
};
|
|
510
112
|
}
|
|
@@ -512,1798 +114,2182 @@ import {
|
|
|
512
114
|
createHash,
|
|
513
115
|
randomUUID
|
|
514
116
|
} from 'node:crypto';
|
|
515
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
516
|
-
function ensureSegment(
|
|
517
|
-
const
|
|
518
|
-
if (!
|
|
117
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0xd0824a(0x198);
|
|
118
|
+
function ensureSegment(_0x5059fc) {
|
|
119
|
+
const _0x133ca8 = { _0x55f433: 0x256 }, _0x3a8f2a = _0xd0824a, _0x371cac = _0x5059fc[_0x3a8f2a(_0x133ca8._0x55f433)]();
|
|
120
|
+
if (!_0x371cac || _0x371cac[_0x3a8f2a(0x1b5)](':'))
|
|
519
121
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
520
|
-
return
|
|
122
|
+
return _0x371cac;
|
|
521
123
|
}
|
|
522
|
-
function parseThreadParts(
|
|
523
|
-
const
|
|
524
|
-
if (
|
|
124
|
+
function parseThreadParts(_0x39391d) {
|
|
125
|
+
const _0x200463 = { _0x3ed62d: 0x276 }, _0x5b6c93 = _0xd0824a, _0x65cde = _0x39391d[_0x5b6c93(_0x200463._0x3ed62d)](':');
|
|
126
|
+
if (_0x65cde['length'] < 0x1 || _0x65cde['length'] > 0x2)
|
|
525
127
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
526
128
|
return {
|
|
527
|
-
'channelName': ensureSegment(
|
|
528
|
-
'threadShortId':
|
|
129
|
+
'channelName': ensureSegment(_0x65cde[0x0] ?? ''),
|
|
130
|
+
'threadShortId': _0x65cde[0x1] ? ensureSegment(_0x65cde[0x1]) : null
|
|
529
131
|
};
|
|
530
132
|
}
|
|
531
|
-
function parseTarget(
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
},
|
|
541
|
-
if (!
|
|
133
|
+
function parseTarget(_0x53e49b) {
|
|
134
|
+
const _0xd89a36 = {
|
|
135
|
+
_0x160ef5: 0x2c2,
|
|
136
|
+
_0xbb8b84: 0x1b9,
|
|
137
|
+
_0x2db248: 0x2c2,
|
|
138
|
+
_0x436aa8: 0x1d3,
|
|
139
|
+
_0x125edd: 0x17c,
|
|
140
|
+
_0x4ba619: 0x1d3,
|
|
141
|
+
_0x156cb4: 0x1b9
|
|
142
|
+
}, _0x554c54 = _0xd0824a, _0x3f4f99 = _0x53e49b[_0x554c54(0x256)]();
|
|
143
|
+
if (!_0x3f4f99)
|
|
542
144
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
543
|
-
if (
|
|
544
|
-
const
|
|
545
|
-
if (!
|
|
145
|
+
if (_0x3f4f99[_0x554c54(_0xd89a36._0x160ef5)]('#')) {
|
|
146
|
+
const _0x36c397 = parseThreadParts(_0x3f4f99[_0x554c54(0x1b4)](0x1)), _0x301247 = '#' + _0x36c397['channelName'];
|
|
147
|
+
if (!_0x36c397[_0x554c54(_0xd89a36._0xbb8b84)])
|
|
546
148
|
return {
|
|
547
|
-
'channelName':
|
|
548
|
-
'channelTarget':
|
|
549
|
-
'kind':
|
|
550
|
-
'target':
|
|
149
|
+
'channelName': _0x36c397[_0x554c54(0x1d3)],
|
|
150
|
+
'channelTarget': _0x301247,
|
|
151
|
+
'kind': _0x554c54(0x23e),
|
|
152
|
+
'target': _0x301247
|
|
551
153
|
};
|
|
552
154
|
return {
|
|
553
|
-
'channelName':
|
|
554
|
-
'channelTarget':
|
|
555
|
-
'kind':
|
|
556
|
-
'target':
|
|
557
|
-
'threadShortId':
|
|
155
|
+
'channelName': _0x36c397[_0x554c54(0x1d3)],
|
|
156
|
+
'channelTarget': _0x301247,
|
|
157
|
+
'kind': _0x554c54(0x1b7),
|
|
158
|
+
'target': _0x301247 + ':' + _0x36c397['threadShortId'],
|
|
159
|
+
'threadShortId': _0x36c397[_0x554c54(_0xd89a36._0xbb8b84)]
|
|
558
160
|
};
|
|
559
161
|
}
|
|
560
|
-
if (
|
|
561
|
-
const
|
|
562
|
-
if (!
|
|
162
|
+
if (_0x3f4f99[_0x554c54(_0xd89a36._0x2db248)]('dm:')) {
|
|
163
|
+
const _0x19a912 = parseThreadParts(_0x3f4f99[_0x554c54(0x1b4)](0x3));
|
|
164
|
+
if (!_0x19a912[_0x554c54(_0xd89a36._0x436aa8)][_0x554c54(_0xd89a36._0x2db248)](_0x554c54(_0xd89a36._0x125edd)))
|
|
563
165
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
564
|
-
const
|
|
565
|
-
if (!
|
|
166
|
+
const _0x23ef86 = 'dm:' + _0x19a912[_0x554c54(0x1d3)];
|
|
167
|
+
if (!_0x19a912['threadShortId'])
|
|
566
168
|
return {
|
|
567
|
-
'channelName':
|
|
568
|
-
'channelTarget':
|
|
569
|
-
'kind':
|
|
570
|
-
'target':
|
|
169
|
+
'channelName': _0x19a912[_0x554c54(_0xd89a36._0x436aa8)],
|
|
170
|
+
'channelTarget': _0x23ef86,
|
|
171
|
+
'kind': 'channel',
|
|
172
|
+
'target': _0x23ef86
|
|
571
173
|
};
|
|
572
174
|
return {
|
|
573
|
-
'channelName':
|
|
574
|
-
'channelTarget':
|
|
175
|
+
'channelName': _0x19a912[_0x554c54(_0xd89a36._0x4ba619)],
|
|
176
|
+
'channelTarget': _0x23ef86,
|
|
575
177
|
'kind': 'thread',
|
|
576
|
-
'target':
|
|
577
|
-
'threadShortId':
|
|
178
|
+
'target': _0x23ef86 + ':' + _0x19a912[_0x554c54(_0xd89a36._0xbb8b84)],
|
|
179
|
+
'threadShortId': _0x19a912[_0x554c54(_0xd89a36._0x156cb4)]
|
|
578
180
|
};
|
|
579
181
|
}
|
|
580
182
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
581
183
|
}
|
|
582
|
-
function asErrorMessage(
|
|
583
|
-
const
|
|
584
|
-
if (typeof
|
|
585
|
-
return
|
|
586
|
-
return
|
|
184
|
+
function asErrorMessage(_0xd0f088, _0x51442f) {
|
|
185
|
+
const _0x2e7d31 = { _0x4feed6: 0x2c9 }, _0x180e76 = _0xd0824a;
|
|
186
|
+
if (typeof _0xd0f088 === _0x180e76(_0x2e7d31._0x4feed6) && _0xd0f088[_0x180e76(0x256)]())
|
|
187
|
+
return _0xd0f088;
|
|
188
|
+
return _0x51442f;
|
|
587
189
|
}
|
|
588
|
-
function asRecord(
|
|
589
|
-
const
|
|
590
|
-
return typeof
|
|
190
|
+
function asRecord(_0x2916fe) {
|
|
191
|
+
const _0x37d1f3 = _0xd0824a;
|
|
192
|
+
return typeof _0x2916fe === _0x37d1f3(0x1b6) && _0x2916fe !== null ? _0x2916fe : {};
|
|
591
193
|
}
|
|
592
|
-
function stableStringify(
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
return '{' + _0x2d47c4[_0x3cf866(_0x3f9ce8._0x4800f5)](',') + '}';
|
|
194
|
+
function stableStringify(_0x519f2d) {
|
|
195
|
+
const _0x41b94c = {
|
|
196
|
+
_0x491fa9: 0x2e4,
|
|
197
|
+
_0x507960: 0x1ad,
|
|
198
|
+
_0x12ad5c: 0x248,
|
|
199
|
+
_0x302740: 0x2e2,
|
|
200
|
+
_0x2d56d4: 0x1d0
|
|
201
|
+
}, _0x3fe3d3 = _0xd0824a;
|
|
202
|
+
if (_0x519f2d === null || typeof _0x519f2d !== 'object')
|
|
203
|
+
return JSON['stringify'](_0x519f2d);
|
|
204
|
+
if (Array[_0x3fe3d3(_0x41b94c._0x491fa9)](_0x519f2d))
|
|
205
|
+
return '[' + _0x519f2d[_0x3fe3d3(_0x41b94c._0x507960)](_0x54b4a7 => stableStringify(_0x54b4a7))[_0x3fe3d3(_0x41b94c._0x12ad5c)](',') + ']';
|
|
206
|
+
const _0x4dc791 = Object[_0x3fe3d3(_0x41b94c._0x302740)](_0x519f2d)[_0x3fe3d3(0x2b8)](([, _0x2d7715]) => _0x2d7715 !== void 0x0)[_0x3fe3d3(_0x41b94c._0x2d56d4)](([_0x27767e], [_0x1cdd17]) => _0x27767e[_0x3fe3d3(0x2c7)](_0x1cdd17))[_0x3fe3d3(0x1ad)](([_0x2e814a, _0x29a71f]) => JSON[_0x3fe3d3(0x17d)](_0x2e814a) + ':' + stableStringify(_0x29a71f));
|
|
207
|
+
return '{' + _0x4dc791[_0x3fe3d3(_0x41b94c._0x12ad5c)](',') + '}';
|
|
607
208
|
}
|
|
608
|
-
function createHeaders(
|
|
209
|
+
function createHeaders(_0x313b47) {
|
|
210
|
+
const _0x16d6b0 = { _0xb4ddd2: 0x2ee }, _0x236e12 = _0xd0824a;
|
|
609
211
|
return {
|
|
610
|
-
'Content-Type':
|
|
611
|
-
'x-daemon-api-key':
|
|
212
|
+
'Content-Type': _0x236e12(_0x16d6b0._0xb4ddd2),
|
|
213
|
+
'x-daemon-api-key': _0x313b47
|
|
612
214
|
};
|
|
613
215
|
}
|
|
614
|
-
function toHttpBaseUrl(
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
_0x14908b['protocol'] = _0x5ec7e7(0xc4);
|
|
216
|
+
function toHttpBaseUrl(_0x528cae) {
|
|
217
|
+
const _0x34b2ea = {
|
|
218
|
+
_0x1eb0a0: 0x184,
|
|
219
|
+
_0x2e7301: 0x1a9
|
|
220
|
+
}, _0x1e6b34 = _0xd0824a, _0x30f867 = new URL(_0x528cae);
|
|
221
|
+
if (_0x30f867[_0x1e6b34(0x260)] === _0x1e6b34(0x1b0))
|
|
222
|
+
_0x30f867[_0x1e6b34(0x260)] = _0x1e6b34(0x1cc);
|
|
622
223
|
else
|
|
623
|
-
|
|
624
|
-
return
|
|
224
|
+
_0x30f867['protocol'] === _0x1e6b34(_0x34b2ea._0x1eb0a0) && (_0x30f867[_0x1e6b34(0x260)] = _0x1e6b34(_0x34b2ea._0x2e7301));
|
|
225
|
+
return _0x30f867[_0x1e6b34(0x1fe)]()[_0x1e6b34(0x1c0)](/\/$/, '');
|
|
625
226
|
}
|
|
626
|
-
function isMentionBoundary(
|
|
627
|
-
|
|
628
|
-
return !_0x24c7f7 || /\s|[([{'",。!?、:;]/[_0x31077e(0xe8)](_0x24c7f7);
|
|
227
|
+
function isMentionBoundary(_0x122224) {
|
|
228
|
+
return !_0x122224 || /\s|[([{'",。!?、:;]/['test'](_0x122224);
|
|
629
229
|
}
|
|
630
|
-
function isMentionTerminal(
|
|
631
|
-
const
|
|
632
|
-
return !
|
|
230
|
+
function isMentionTerminal(_0x15058b) {
|
|
231
|
+
const _0x10ca7c = { _0x5128b4: 0x24b }, _0x2cca29 = _0xd0824a;
|
|
232
|
+
return !_0x15058b || /\s|[)\]}'",。!?、:;,.!?]/[_0x2cca29(_0x10ca7c._0x5128b4)](_0x15058b);
|
|
633
233
|
}
|
|
634
|
-
function buildMatchableEntries(
|
|
635
|
-
const
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
}, _0x3a1eb6 = _0x174aa9, _0x4f31ce = [];
|
|
640
|
-
for (const _0x246360 of [
|
|
641
|
-
..._0x19e91b[_0x3a1eb6(0x10f)],
|
|
642
|
-
..._0x19e91b[_0x3a1eb6(_0x524bde._0x4c7037)]
|
|
234
|
+
function buildMatchableEntries(_0x307c8f) {
|
|
235
|
+
const _0x54adf3 = { _0x32d284: 0x290 }, _0xb85316 = _0xd0824a, _0xdeee9b = [];
|
|
236
|
+
for (const _0x518b1b of [
|
|
237
|
+
..._0x307c8f[_0xb85316(0x268)],
|
|
238
|
+
..._0x307c8f[_0xb85316(_0x54adf3._0x32d284)]
|
|
643
239
|
]) {
|
|
644
|
-
|
|
645
|
-
'matchName':
|
|
646
|
-
'matchNameLower':
|
|
647
|
-
'participantId':
|
|
648
|
-
}),
|
|
649
|
-
'matchName':
|
|
650
|
-
'matchNameLower':
|
|
651
|
-
'participantId':
|
|
240
|
+
_0xdeee9b[_0xb85316(0x27b)]({
|
|
241
|
+
'matchName': _0x518b1b[_0xb85316(0x25d)],
|
|
242
|
+
'matchNameLower': _0x518b1b[_0xb85316(0x25d)]['toLocaleLowerCase'](),
|
|
243
|
+
'participantId': _0x518b1b['id']
|
|
244
|
+
}), _0x518b1b['id'] !== _0x518b1b['name'] && _0xdeee9b[_0xb85316(0x27b)]({
|
|
245
|
+
'matchName': _0x518b1b['id'],
|
|
246
|
+
'matchNameLower': _0x518b1b['id']['toLocaleLowerCase'](),
|
|
247
|
+
'participantId': _0x518b1b['id']
|
|
652
248
|
});
|
|
653
249
|
}
|
|
654
|
-
return
|
|
250
|
+
return _0xdeee9b;
|
|
655
251
|
}
|
|
656
|
-
function extractMentionedParticipantIds(
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
_0x5e13ea: 0x108,
|
|
661
|
-
_0x588f37: 0x17c,
|
|
662
|
-
_0x5546bf: 0x108,
|
|
663
|
-
_0xa45852: 0x92,
|
|
664
|
-
_0x3b9aeb: 0x1a0
|
|
665
|
-
}, _0x5e6536 = {
|
|
666
|
-
_0x587482: 0xbc,
|
|
667
|
-
_0x20979c: 0x1a0
|
|
668
|
-
}, _0x18aa32 = _0x174aa9, _0x4e20cd = buildMatchableEntries(_0x54c798)[_0x18aa32(0x17f)]((_0x1a6eec, _0x88babe) => _0x88babe[_0x18aa32(0x92)][_0x18aa32(0x1a0)] - _0x1a6eec['matchName'][_0x18aa32(0x1a0)]), _0x452555 = [], _0x3c347a = new Set();
|
|
669
|
-
for (let _0x19fcbb = 0x0; _0x19fcbb < _0x3a3c4d[_0x18aa32(0x1a0)]; _0x19fcbb += 0x1) {
|
|
670
|
-
if (_0x3a3c4d[_0x19fcbb] !== '@' || !isMentionBoundary(_0x3a3c4d[_0x19fcbb - 0x1]))
|
|
252
|
+
function extractMentionedParticipantIds(_0x104f9c, _0x1ea862) {
|
|
253
|
+
const _0x2ff0b3 = { _0x73ab9d: 0x1d0 }, _0x78c8b5 = { _0x79a9af: 0x2aa }, _0x10afa9 = _0xd0824a, _0x5b9aff = buildMatchableEntries(_0x1ea862)[_0x10afa9(_0x2ff0b3._0x73ab9d)]((_0x3fb616, _0x56f980) => _0x56f980['matchName'][_0x10afa9(0x2aa)] - _0x3fb616[_0x10afa9(0x19b)][_0x10afa9(0x2aa)]), _0x426925 = [], _0x2c2481 = new Set();
|
|
254
|
+
for (let _0x5e29ae = 0x0; _0x5e29ae < _0x104f9c[_0x10afa9(0x2aa)]; _0x5e29ae += 0x1) {
|
|
255
|
+
if (_0x104f9c[_0x5e29ae] !== '@' || !isMentionBoundary(_0x104f9c[_0x5e29ae - 0x1]))
|
|
671
256
|
continue;
|
|
672
|
-
const
|
|
673
|
-
const
|
|
674
|
-
if (!
|
|
257
|
+
const _0x593570 = _0x104f9c['slice'](_0x5e29ae + 0x1), _0x37e48a = _0x593570['toLocaleLowerCase'](), _0x55651d = _0x5b9aff[_0x10afa9(0x2ec)](_0x478105 => {
|
|
258
|
+
const _0x1a4483 = _0x10afa9;
|
|
259
|
+
if (!_0x37e48a['startsWith'](_0x478105['matchNameLower']))
|
|
675
260
|
return ![];
|
|
676
|
-
return isMentionTerminal(
|
|
261
|
+
return isMentionTerminal(_0x593570[_0x478105[_0x1a4483(0x19b)][_0x1a4483(_0x78c8b5._0x79a9af)]]);
|
|
677
262
|
});
|
|
678
|
-
if (!
|
|
263
|
+
if (!_0x55651d || _0x2c2481[_0x10afa9(0x234)](_0x55651d['participantId']))
|
|
679
264
|
continue;
|
|
680
|
-
|
|
265
|
+
_0x2c2481[_0x10afa9(0x274)](_0x55651d['participantId']), _0x426925[_0x10afa9(0x27b)](_0x55651d[_0x10afa9(0x1c9)]), _0x5e29ae += _0x55651d['matchName']['length'];
|
|
681
266
|
}
|
|
682
|
-
return
|
|
267
|
+
return _0x426925;
|
|
683
268
|
}
|
|
684
269
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
685
|
-
function anySignal(...
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
return _0x2a13d1['abort'](_0x2ebc2f[_0x2e463d(_0x131637._0x3450fb)]), _0x2a13d1[_0x2e463d(_0x131637._0x20c8ee)];
|
|
695
|
-
_0x2ebc2f[_0x2e463d(_0x131637._0x10a1d7)](_0x2e463d(0x117), () => _0x2a13d1[_0x2e463d(0x117)](_0x2ebc2f[_0x2e463d(0x1d1)]), {
|
|
270
|
+
function anySignal(..._0x4df33) {
|
|
271
|
+
const _0x117028 = {
|
|
272
|
+
_0x356dd2: 0x247,
|
|
273
|
+
_0x135dcf: 0x25c
|
|
274
|
+
}, _0x553605 = _0xd0824a, _0x1eb710 = new AbortController();
|
|
275
|
+
for (const _0xdfe464 of _0x4df33) {
|
|
276
|
+
if (_0xdfe464[_0x553605(_0x117028._0x356dd2)])
|
|
277
|
+
return _0x1eb710[_0x553605(0x2ed)](_0xdfe464[_0x553605(_0x117028._0x135dcf)]), _0x1eb710[_0x553605(0x2ef)];
|
|
278
|
+
_0xdfe464[_0x553605(0x192)](_0x553605(0x2ed), () => _0x1eb710[_0x553605(0x2ed)](_0xdfe464['reason']), {
|
|
696
279
|
'once': !![],
|
|
697
|
-
'signal':
|
|
280
|
+
'signal': _0x1eb710[_0x553605(0x2ef)]
|
|
698
281
|
});
|
|
699
282
|
}
|
|
700
|
-
return
|
|
283
|
+
return _0x1eb710[_0x553605(0x2ef)];
|
|
701
284
|
}
|
|
702
|
-
function createInternalAgentClient(
|
|
703
|
-
const
|
|
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
|
-
|
|
285
|
+
function createInternalAgentClient(_0x576bbf) {
|
|
286
|
+
const _0x12cebf = {
|
|
287
|
+
_0x2d3d00: 0x1f3,
|
|
288
|
+
_0x271a72: 0x255,
|
|
289
|
+
_0x345d56: 0x256,
|
|
290
|
+
_0xd3c958: 0x2a5
|
|
291
|
+
}, _0x52838f = {
|
|
292
|
+
_0x4779e2: 0x2d3,
|
|
293
|
+
_0x1e204d: 0x221,
|
|
294
|
+
_0x43795e: 0x22f,
|
|
295
|
+
_0x1a814: 0x278,
|
|
296
|
+
_0x1e6cbc: 0x1ef,
|
|
297
|
+
_0xf9ed34: 0x2c9,
|
|
298
|
+
_0x5d045d: 0x1aa,
|
|
299
|
+
_0x1a8b92: 0x29e,
|
|
300
|
+
_0x359547: 0x1a0,
|
|
301
|
+
_0x8e252e: 0x207,
|
|
302
|
+
_0x33281f: 0x1d1,
|
|
303
|
+
_0x2f33db: 0x1a0,
|
|
304
|
+
_0x145106: 0x275,
|
|
305
|
+
_0xc6998b: 0x207,
|
|
306
|
+
_0x2926bc: 0x2e2,
|
|
307
|
+
_0x974904: 0x207,
|
|
308
|
+
_0x1660bd: 0x25d,
|
|
309
|
+
_0x3d7436: 0x1e1,
|
|
310
|
+
_0x14cfee: 0x2aa,
|
|
311
|
+
_0x58e471: 0x23d,
|
|
312
|
+
_0x3dd8e8: 0x2c1,
|
|
313
|
+
_0x52d73e: 0x19f,
|
|
314
|
+
_0x3def6a: 0x27b,
|
|
315
|
+
_0x19ab84: 0x236,
|
|
316
|
+
_0x9f3b2b: 0x2d8,
|
|
317
|
+
_0x4278be: 0x23c,
|
|
318
|
+
_0x57eebb: 0x279,
|
|
319
|
+
_0x328e53: 0x2f5,
|
|
320
|
+
_0x57d919: 0x215
|
|
321
|
+
}, _0x4ddc11 = {
|
|
322
|
+
_0x241356: 0x280,
|
|
323
|
+
_0x25890c: 0x1aa,
|
|
324
|
+
_0x6bdd78: 0x217,
|
|
325
|
+
_0xcbd734: 0x2dd
|
|
326
|
+
}, _0x2fc491 = {
|
|
327
|
+
_0x2757f2: 0x218,
|
|
328
|
+
_0x199ee4: 0x1f0,
|
|
329
|
+
_0x533b50: 0x1fa,
|
|
330
|
+
_0x5854f8: 0x20e,
|
|
331
|
+
_0x14b4b7: 0x21e,
|
|
332
|
+
_0x24e500: 0x2e9
|
|
333
|
+
}, _0x39eed1 = {
|
|
334
|
+
_0x5bf48c: 0x23e,
|
|
335
|
+
_0x348af9: 0x263,
|
|
336
|
+
_0x1be013: 0x221,
|
|
337
|
+
_0x146ee3: 0x217,
|
|
338
|
+
_0x44c0cf: 0x1fa,
|
|
339
|
+
_0x6316c3: 0x1fa,
|
|
340
|
+
_0x4904ac: 0x1fa
|
|
341
|
+
}, _0x97e405 = {
|
|
342
|
+
_0x2d17a4: 0x295,
|
|
343
|
+
_0x1201ae: 0x17d
|
|
344
|
+
}, _0x499713 = { _0x1aaeff: 0x17d }, _0x3e0644 = {
|
|
345
|
+
_0x42e218: 0x205,
|
|
346
|
+
_0x563a46: 0x17d
|
|
347
|
+
}, _0x2fdf6f = {
|
|
348
|
+
_0x13ce92: 0x2f4,
|
|
349
|
+
_0x5a0b75: 0x1f0,
|
|
350
|
+
_0x14a2fc: 0x1c2
|
|
351
|
+
}, _0x2cb30b = { _0x7fe1ea: 0x2a0 }, _0xbf21bf = {
|
|
352
|
+
_0x26f5a9: 0x2a0,
|
|
353
|
+
_0x2c9ced: 0x19c,
|
|
354
|
+
_0x4dc470: 0x17d,
|
|
355
|
+
_0x460278: 0x1fa
|
|
356
|
+
}, _0x552af8 = { _0x7b716d: 0x1fa }, _0x5ea85d = {
|
|
357
|
+
_0xec7c68: 0x233,
|
|
358
|
+
_0x2c7493: 0x203
|
|
359
|
+
}, _0xec068a = {
|
|
360
|
+
_0xa1a20c: 0x236,
|
|
361
|
+
_0x433b00: 0x1b5,
|
|
362
|
+
_0x1d0c5f: 0x295,
|
|
363
|
+
_0x18ce55: 0x221,
|
|
364
|
+
_0x375ae9: 0x17d,
|
|
365
|
+
_0x2b1763: 0x2a4,
|
|
366
|
+
_0xd27a75: 0x2a4
|
|
367
|
+
}, _0x536b01 = {
|
|
368
|
+
_0x5ab9c3: 0x2f4,
|
|
369
|
+
_0x5f0177: 0x26a,
|
|
370
|
+
_0x2e865f: 0x2dd,
|
|
371
|
+
_0x114b3f: 0x2f4,
|
|
372
|
+
_0xdeb5e2: 0x1aa,
|
|
373
|
+
_0x5bb9b6: 0x2bf,
|
|
374
|
+
_0x113517: 0x1a3,
|
|
375
|
+
_0x2afc7d: 0x280,
|
|
376
|
+
_0x8a7377: 0x295,
|
|
377
|
+
_0x24e224: 0x1fe,
|
|
378
|
+
_0x5e51a5: 0x183,
|
|
379
|
+
_0x382007: 0x1b8,
|
|
380
|
+
_0x1dc32e: 0x210,
|
|
381
|
+
_0x4f540f: 0x2bf
|
|
382
|
+
}, _0x320bc9 = { _0x287142: 0x25d }, _0x349997 = {
|
|
383
|
+
_0x5c27e4: 0x23a,
|
|
384
|
+
_0x22bfc4: 0x1c9
|
|
385
|
+
}, _0x18ddd9 = {
|
|
386
|
+
_0x5d0527: 0x1e1,
|
|
387
|
+
_0xa8ea5: 0x183,
|
|
388
|
+
_0x3e9dbb: 0x183,
|
|
389
|
+
_0x18b01d: 0x1a0,
|
|
390
|
+
_0x3bc0a2: 0x1b9,
|
|
391
|
+
_0x32c44f: 0x2c5,
|
|
392
|
+
_0x478ad5: 0x2c2,
|
|
393
|
+
_0x565943: 0x1b9,
|
|
394
|
+
_0x576a9c: 0x2dd
|
|
395
|
+
}, _0xc63c66 = {
|
|
396
|
+
_0x204965: 0x183,
|
|
397
|
+
_0x3c9a62: 0x2c5,
|
|
398
|
+
_0x11d6fc: 0x2c5,
|
|
399
|
+
_0x516f57: 0x183
|
|
400
|
+
}, _0xccdd25 = {
|
|
401
|
+
_0x2dfa86: 0x1ef,
|
|
402
|
+
_0xe241e0: 0x2cf
|
|
403
|
+
}, _0x114449 = {
|
|
404
|
+
_0x4ac560: 0x295,
|
|
405
|
+
_0xb8c9a0: 0x221,
|
|
406
|
+
_0x5592c4: 0x17d,
|
|
407
|
+
_0x173829: 0x186,
|
|
408
|
+
_0x1b8b2f: 0x183,
|
|
409
|
+
_0x491512: 0x2dd,
|
|
410
|
+
_0x51d0ef: 0x1a0
|
|
411
|
+
}, _0x419f20 = {
|
|
412
|
+
_0x1614ba: 0x28c,
|
|
413
|
+
_0x56062d: 0x17d,
|
|
414
|
+
_0x47d35e: 0x186
|
|
415
|
+
}, _0x2a1d87 = {
|
|
416
|
+
_0x29587b: 0x18a,
|
|
417
|
+
_0x4c242f: 0x265
|
|
418
|
+
}, _0x483d5f = {
|
|
419
|
+
_0x58931a: 0x2ef,
|
|
420
|
+
_0x264086: 0x1f0
|
|
421
|
+
}, _0x587836 = {
|
|
422
|
+
_0x1a8ef0: 0x2ef,
|
|
423
|
+
_0x50d353: 0x2ef,
|
|
424
|
+
_0x375cc1: 0x1d8,
|
|
425
|
+
_0xd7c5a8: 0x1f0
|
|
426
|
+
}, _0x5c9b8e = {
|
|
427
|
+
_0xf54458: 0x2c9,
|
|
428
|
+
_0xd0b5ce: 0x1c3,
|
|
429
|
+
_0x506885: 0x2a2,
|
|
430
|
+
_0x12943b: 0x2ac,
|
|
431
|
+
_0x4e6e4e: 0x22d,
|
|
432
|
+
_0x14691: 0x1d1,
|
|
433
|
+
_0x38dd2b: 0x297,
|
|
434
|
+
_0x3a1ea0: 0x2f4
|
|
435
|
+
}, _0x1ddf26 = {
|
|
436
|
+
_0x2edffd: 0x257,
|
|
437
|
+
_0x1bc8ce: 0x1fe,
|
|
438
|
+
_0x5da0a6: 0x1f4,
|
|
439
|
+
_0x5de3f1: 0x256,
|
|
440
|
+
_0x52dce7: 0x250
|
|
441
|
+
}, _0x5e594a = {
|
|
442
|
+
_0x1ac6e2: 0x1c7,
|
|
443
|
+
_0x53579a: 0x1b4,
|
|
444
|
+
_0x2cf14d: 0x1e2,
|
|
445
|
+
_0x51b9ed: 0x1f0,
|
|
446
|
+
_0x48cece: 0x19a
|
|
447
|
+
}, _0xc1769 = _0xd0824a, _0x4e1e5e = _0x576bbf[_0xc1769(0x298)] ?? fetch, _0x2c566b = _0x576bbf['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1641bf = typeof _0x576bbf[_0xc1769(0x255)] === _0xc1769(_0x12cebf._0x2d3d00) && _0x576bbf[_0xc1769(_0x12cebf._0x271a72)] > 0x0 ? _0x576bbf['initialLastSeenSeq'] : 0x0, _0x256f2b = _0x576bbf['daemonLocalUrl']?.['trim']() || void 0x0, _0x46167e = _0x576bbf['sessionId']?.[_0xc1769(_0x12cebf._0x345d56)]() || void 0x0, _0x1b1d55 = _0x576bbf['workerModeEnabled'] === !![], _0x4e58e6 = _0x576bbf[_0xc1769(0x1a4)]?.[_0xc1769(0x256)]() || void 0x0, _0x3a277b = _0x576bbf['workerThreadTarget']?.[_0xc1769(0x256)]() || void 0x0, _0x2c8b82 = createHeaders(_0x576bbf[_0xc1769(_0x12cebf._0xd3c958)]), _0x3007ce = toHttpBaseUrl(_0x576bbf[_0xc1769(0x2e3)]);
|
|
448
|
+
let _0x3634a9 = null;
|
|
449
|
+
const _0x2f353d = new Map();
|
|
450
|
+
let _0x36bf63 = _0x1641bf, _0x233519 = _0x1641bf;
|
|
451
|
+
function _0x1b8769(_0x772bc2) {
|
|
452
|
+
const _0x3a5e16 = _0xc1769, _0x3cffa6 = _0x772bc2['response']['headers'][_0x3a5e16(0x1d1)]('content-type') ?? 'unknown', _0x5247f0 = _0x772bc2[_0x3a5e16(_0x5e594a._0x1ac6e2)]['trim']()[_0x3a5e16(0x1c0)](/\s+/g, '\x20')[_0x3a5e16(_0x5e594a._0x53579a)](0x0, 0x78) || _0x3a5e16(0x213);
|
|
453
|
+
return _0x3a5e16(_0x5e594a._0x2cf14d) + _0x772bc2['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x772bc2['response'][_0x3a5e16(_0x5e594a._0x51b9ed)] + ',\x20content-type=' + _0x3cffa6 + _0x3a5e16(0x2bc) + _0x5247f0 + _0x3a5e16(_0x5e594a._0x48cece);
|
|
843
454
|
}
|
|
844
|
-
async function
|
|
845
|
-
const
|
|
846
|
-
if (!
|
|
455
|
+
async function _0xa8b046(_0x21246b, _0x2caece) {
|
|
456
|
+
const _0x2da5de = _0xc1769, _0x3fd267 = Buffer[_0x2da5de(_0x1ddf26._0x2edffd)](await _0x2caece[_0x2da5de(0x2e9)]())[_0x2da5de(_0x1ddf26._0x1bc8ce)](_0x2da5de(_0x1ddf26._0x5da0a6));
|
|
457
|
+
if (!_0x3fd267[_0x2da5de(_0x1ddf26._0x5de3f1)]())
|
|
847
458
|
return {};
|
|
848
459
|
try {
|
|
849
|
-
return JSON[
|
|
460
|
+
return JSON[_0x2da5de(_0x1ddf26._0x52dce7)](_0x3fd267);
|
|
850
461
|
} catch {
|
|
851
|
-
throw new Error(
|
|
852
|
-
'bodyText':
|
|
853
|
-
'requestUrl':
|
|
854
|
-
'response':
|
|
462
|
+
throw new Error(_0x1b8769({
|
|
463
|
+
'bodyText': _0x3fd267,
|
|
464
|
+
'requestUrl': _0x21246b,
|
|
465
|
+
'response': _0x2caece
|
|
855
466
|
}));
|
|
856
467
|
}
|
|
857
468
|
}
|
|
858
|
-
function
|
|
859
|
-
const
|
|
860
|
-
if (
|
|
861
|
-
return
|
|
862
|
-
const
|
|
863
|
-
for (const [
|
|
864
|
-
|
|
469
|
+
function _0x384454(_0x42f4f5, _0xaf2ad2) {
|
|
470
|
+
const _0x3b3ca5 = _0xc1769, _0x12d9ee = typeof _0xaf2ad2[_0x3b3ca5(0x1c3)] === _0x3b3ca5(_0x5c9b8e._0xf54458) ? _0xaf2ad2[_0x3b3ca5(_0x5c9b8e._0xd0b5ce)]['trim']() : '';
|
|
471
|
+
if (_0x12d9ee)
|
|
472
|
+
return _0x12d9ee;
|
|
473
|
+
const _0x5cbb33 = Date[_0x3b3ca5(0x29b)]();
|
|
474
|
+
for (const [_0x45f1de, _0x250f98] of _0x2f353d) {
|
|
475
|
+
_0x250f98[_0x3b3ca5(0x2c4)] <= _0x5cbb33 && _0x2f353d[_0x3b3ca5(_0x5c9b8e._0x506885)](_0x45f1de);
|
|
865
476
|
}
|
|
866
|
-
const
|
|
867
|
-
...
|
|
477
|
+
const _0x35cf0a = {
|
|
478
|
+
..._0xaf2ad2,
|
|
868
479
|
'idempotency_key': void 0x0
|
|
869
|
-
},
|
|
870
|
-
if (
|
|
871
|
-
return
|
|
872
|
-
const
|
|
873
|
-
return
|
|
874
|
-
'expiresAt':
|
|
875
|
-
'value':
|
|
876
|
-
}),
|
|
480
|
+
}, _0x56a73c = createHash(_0x3b3ca5(0x17e))[_0x3b3ca5(_0x5c9b8e._0x12943b)](_0x42f4f5 + ':' + stableStringify(_0x35cf0a))[_0x3b3ca5(0x1c1)](_0x3b3ca5(_0x5c9b8e._0x4e6e4e)), _0x50e6b8 = _0x42f4f5 + ':' + _0x56a73c, _0x13bff8 = _0x2f353d[_0x3b3ca5(_0x5c9b8e._0x14691)](_0x50e6b8);
|
|
481
|
+
if (_0x13bff8)
|
|
482
|
+
return _0x13bff8['value'];
|
|
483
|
+
const _0x25fbae = _0x3b3ca5(_0x5c9b8e._0x38dd2b) + _0x42f4f5 + ':' + randomUUID();
|
|
484
|
+
return _0x2f353d[_0x3b3ca5(_0x5c9b8e._0x3a1ea0)](_0x50e6b8, {
|
|
485
|
+
'expiresAt': _0x5cbb33 + 0x5 * 0x3c * 0x3e8,
|
|
486
|
+
'value': _0x25fbae
|
|
487
|
+
}), _0x25fbae;
|
|
877
488
|
}
|
|
878
|
-
async function
|
|
879
|
-
const
|
|
489
|
+
async function _0x373ec4(_0x2be8f0, _0xfa9f0) {
|
|
490
|
+
const _0x3e0535 = _0xc1769, _0x22c251 = new AbortController(), _0xb53723 = setTimeout(() => _0x22c251[_0x3e0535(0x2ed)](), _0x2c566b), _0xacff8f = _0xfa9f0?.[_0x3e0535(_0x587836._0x1a8ef0)] ? anySignal(_0xfa9f0[_0x3e0535(_0x587836._0x50d353)], _0x22c251[_0x3e0535(_0x587836._0x1a8ef0)]) : _0x22c251[_0x3e0535(_0x587836._0x1a8ef0)], _0x3c8efd = '' + _0x3007ce + _0x2be8f0;
|
|
880
491
|
try {
|
|
881
|
-
const
|
|
882
|
-
...
|
|
883
|
-
'signal':
|
|
884
|
-
}),
|
|
885
|
-
if (!
|
|
886
|
-
throw new Error(asErrorMessage(
|
|
887
|
-
return
|
|
492
|
+
const _0x30ae53 = await _0x4e1e5e(_0x3c8efd, {
|
|
493
|
+
..._0xfa9f0,
|
|
494
|
+
'signal': _0xacff8f
|
|
495
|
+
}), _0x1363f5 = await _0xa8b046(_0x3c8efd, _0x30ae53);
|
|
496
|
+
if (!_0x30ae53['ok'] || _0x1363f5[_0x3e0535(0x254)] === ![])
|
|
497
|
+
throw new Error(asErrorMessage(_0x1363f5[_0x3e0535(_0x587836._0x375cc1)], 'HTTP\x20' + _0x30ae53[_0x3e0535(_0x587836._0xd7c5a8)]));
|
|
498
|
+
return _0x1363f5;
|
|
888
499
|
} finally {
|
|
889
|
-
clearTimeout(
|
|
500
|
+
clearTimeout(_0xb53723);
|
|
890
501
|
}
|
|
891
502
|
}
|
|
892
|
-
async function
|
|
893
|
-
const
|
|
503
|
+
async function _0xbd1ee8(_0x4f84cf, _0x164ca2) {
|
|
504
|
+
const _0x157984 = _0xc1769, _0x483c62 = new AbortController(), _0xc38bfe = setTimeout(() => _0x483c62['abort'](), _0x2c566b), _0x265ac0 = _0x164ca2?.[_0x157984(0x2ef)] ? anySignal(_0x164ca2['signal'], _0x483c62[_0x157984(0x2ef)]) : _0x483c62[_0x157984(_0x483d5f._0x58931a)], _0x53cb22 = '' + _0x3007ce + _0x4f84cf;
|
|
894
505
|
try {
|
|
895
|
-
const
|
|
896
|
-
...
|
|
897
|
-
'signal':
|
|
898
|
-
}),
|
|
899
|
-
if (!
|
|
900
|
-
throw new Error(asErrorMessage(
|
|
901
|
-
return
|
|
506
|
+
const _0x43d0fc = await _0x4e1e5e(_0x53cb22, {
|
|
507
|
+
..._0x164ca2,
|
|
508
|
+
'signal': _0x265ac0
|
|
509
|
+
}), _0x18f4ac = await _0xa8b046(_0x53cb22, _0x43d0fc);
|
|
510
|
+
if (!_0x43d0fc['ok'])
|
|
511
|
+
throw new Error(asErrorMessage(_0x18f4ac['error'], 'HTTP\x20' + _0x43d0fc[_0x157984(_0x483d5f._0x264086)]));
|
|
512
|
+
return _0x18f4ac;
|
|
902
513
|
} finally {
|
|
903
|
-
clearTimeout(
|
|
514
|
+
clearTimeout(_0xc38bfe);
|
|
904
515
|
}
|
|
905
516
|
}
|
|
906
|
-
async function
|
|
907
|
-
const
|
|
908
|
-
if (!
|
|
517
|
+
async function _0x145107(_0x4cd66e) {
|
|
518
|
+
const _0x5d0d5c = _0xc1769;
|
|
519
|
+
if (!_0x46167e || _0x4cd66e <= _0x233519)
|
|
909
520
|
return;
|
|
910
|
-
await
|
|
911
|
-
'body': JSON[
|
|
912
|
-
'headers':
|
|
913
|
-
'method':
|
|
914
|
-
}),
|
|
521
|
+
await _0x373ec4(_0x5d0d5c(_0x2a1d87._0x29587b) + encodeURIComponent(_0x46167e) + '/context-metrics', {
|
|
522
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x4cd66e }),
|
|
523
|
+
'headers': _0x2c8b82,
|
|
524
|
+
'method': _0x5d0d5c(_0x2a1d87._0x4c242f)
|
|
525
|
+
}), _0x233519 = _0x4cd66e;
|
|
915
526
|
}
|
|
916
|
-
async function
|
|
917
|
-
const
|
|
918
|
-
if (!
|
|
527
|
+
async function _0x3acd1c(_0xeb24a2) {
|
|
528
|
+
const _0x2e84eb = _0xc1769;
|
|
529
|
+
if (!_0x256f2b || !_0x4e58e6 || _0xeb24a2 <= _0x233519)
|
|
919
530
|
return;
|
|
920
|
-
const
|
|
921
|
-
'body': JSON[
|
|
922
|
-
'last_seen_seq':
|
|
923
|
-
'worker_session_id':
|
|
531
|
+
const _0x55cee1 = await _0x4e1e5e(_0x256f2b + _0x2e84eb(_0x419f20._0x1614ba), {
|
|
532
|
+
'body': JSON[_0x2e84eb(_0x419f20._0x56062d)]({
|
|
533
|
+
'last_seen_seq': _0xeb24a2,
|
|
534
|
+
'worker_session_id': _0x4e58e6
|
|
924
535
|
}),
|
|
925
|
-
'headers': { 'Content-Type':
|
|
926
|
-
'method':
|
|
536
|
+
'headers': { 'Content-Type': _0x2e84eb(0x2ee) },
|
|
537
|
+
'method': _0x2e84eb(_0x419f20._0x47d35e)
|
|
927
538
|
});
|
|
928
|
-
if (!
|
|
929
|
-
throw new Error('HTTP\x20' +
|
|
930
|
-
|
|
539
|
+
if (!_0x55cee1['ok'])
|
|
540
|
+
throw new Error('HTTP\x20' + _0x55cee1['status']);
|
|
541
|
+
_0x233519 = _0xeb24a2;
|
|
931
542
|
}
|
|
932
|
-
async function
|
|
933
|
-
const
|
|
934
|
-
'body': JSON[
|
|
935
|
-
'headers':
|
|
936
|
-
'method':
|
|
543
|
+
async function _0x496959(_0x30d05f) {
|
|
544
|
+
const _0x14f146 = _0xc1769, _0x5e5f38 = parseTarget(_0x30d05f), _0x11b2f3 = await _0x373ec4(_0x14f146(_0x114449._0x4ac560) + _0x576bbf[_0x14f146(_0x114449._0xb8c9a0)] + _0x14f146(0x2d5), {
|
|
545
|
+
'body': JSON[_0x14f146(_0x114449._0x5592c4)]({ 'target': _0x5e5f38[_0x14f146(0x217)] }),
|
|
546
|
+
'headers': _0x2c8b82,
|
|
547
|
+
'method': _0x14f146(_0x114449._0x173829)
|
|
937
548
|
});
|
|
938
549
|
return {
|
|
939
|
-
'channelId':
|
|
940
|
-
'target':
|
|
941
|
-
'task':
|
|
942
|
-
'threadId':
|
|
943
|
-
'threadNumber':
|
|
550
|
+
'channelId': _0x11b2f3['data']?.[_0x14f146(0x1aa)] ?? '',
|
|
551
|
+
'target': _0x5e5f38[_0x14f146(_0x114449._0x1b8b2f)],
|
|
552
|
+
'task': _0x11b2f3[_0x14f146(0x1fa)]?.[_0x14f146(0x1da)],
|
|
553
|
+
'threadId': _0x11b2f3[_0x14f146(0x1fa)]?.[_0x14f146(_0x114449._0x491512)],
|
|
554
|
+
'threadNumber': _0x11b2f3[_0x14f146(0x1fa)]?.[_0x14f146(_0x114449._0x51d0ef)]
|
|
944
555
|
};
|
|
945
556
|
}
|
|
946
|
-
async function
|
|
947
|
-
const
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
'
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
'method': _0x1fdd5b(0x110)
|
|
967
|
-
});
|
|
968
|
-
_0x2afdf6 = _0x360cad[_0x1fdd5b(_0x21ff44._0x46c0bd)] ?? [];
|
|
969
|
-
} catch {
|
|
970
|
-
_0x2afdf6 = [];
|
|
971
|
-
}
|
|
972
|
-
const _0x901675 = _0x2afdf6[_0x1fdd5b(_0x21ff44._0x2b4864)](_0x3ceb72 => ({
|
|
973
|
-
'id': _0x3ceb72[_0x1fdd5b(0xe4)]?.['id'] ?? _0x3ceb72['server_members']?.[_0x1fdd5b(0x108)] ?? '',
|
|
974
|
-
'name': _0x3ceb72['participants']?.[_0x1fdd5b(0x102)] ?? _0x3ceb72[_0x1fdd5b(0x19e)]?.[_0x1fdd5b(0x108)] ?? ''
|
|
975
|
-
}))[_0x1fdd5b(0x1f1)](_0x3b810d => _0x3b810d['id']), _0x5ac84a = new Set(_0x901675[_0x1fdd5b(_0x21ff44._0x2b4864)](_0x2394a6 => _0x2394a6['id'])), _0x200c7f = (_0x1240ef[_0x1fdd5b(0xf1)]?.[_0x1fdd5b(_0x21ff44._0x41daa8)] ?? [])[_0x1fdd5b(_0x21ff44._0x35d594)](_0x56f885 => !_0x5ac84a[_0x1fdd5b(0x9f)](_0x43e31c(_0x56f885)))[_0x1fdd5b(0x19f)](_0x933dc3 => ({
|
|
976
|
-
'id': _0x43e31c(_0x933dc3),
|
|
977
|
-
'name': _0x5f36d6(_0x933dc3)
|
|
978
|
-
}))[_0x1fdd5b(_0x21ff44._0xf2726f)](_0x1ce641 => _0x1ce641['id']);
|
|
557
|
+
async function _0x2b8765(_0x49afda = {}) {
|
|
558
|
+
const _0x5c8ce0 = {
|
|
559
|
+
_0x3279dd: 0x2e1,
|
|
560
|
+
_0x975dce: 0x2b8,
|
|
561
|
+
_0x14d8f3: 0x1fa,
|
|
562
|
+
_0x27d407: 0x25d
|
|
563
|
+
}, _0x2a34f3 = _0xc1769;
|
|
564
|
+
if (!_0x49afda[_0x2a34f3(0x2da)] && _0x3634a9)
|
|
565
|
+
return _0x3634a9;
|
|
566
|
+
return _0x3634a9 = (async () => {
|
|
567
|
+
const _0x411ab9 = _0x2a34f3, _0x5a54f8 = await _0x373ec4(_0x411ab9(0x295) + _0x576bbf[_0x411ab9(0x221)] + _0x411ab9(_0x5c8ce0._0x3279dd), {
|
|
568
|
+
'headers': _0x2c8b82,
|
|
569
|
+
'method': _0x411ab9(0x203)
|
|
570
|
+
}), _0x31de87 = _0x5a54f8[_0x411ab9(0x1fa)]?.[_0x411ab9(0x24c)] ?? [], _0x3b04c1 = _0x31de87['filter'](_0x27e591 => _0x27e591[_0x411ab9(0x23a)]?.['type'] === 'agent')['map'](_0x228ce5 => ({
|
|
571
|
+
'id': _0x3aa6a9(_0x228ce5),
|
|
572
|
+
'name': _0x17154e(_0x228ce5)
|
|
573
|
+
}))['filter'](_0x57d5b2 => _0x57d5b2['id']), _0x31e08c = _0x31de87[_0x411ab9(_0x5c8ce0._0x975dce)](_0x2739c2 => _0x2739c2['participant']?.[_0x411ab9(0x241)] !== _0x411ab9(0x1f8))[_0x411ab9(0x1ad)](_0x2460ac => ({
|
|
574
|
+
'id': _0x3aa6a9(_0x2460ac),
|
|
575
|
+
'name': _0x17154e(_0x2460ac)
|
|
576
|
+
}))[_0x411ab9(_0x5c8ce0._0x975dce)](_0x5e86b1 => _0x5e86b1['id']), _0x31af1e = _0x5a54f8['data']?.[_0x411ab9(0x2dc)]['id'] ?? '';
|
|
979
577
|
return {
|
|
980
|
-
'agents':
|
|
981
|
-
'channels':
|
|
982
|
-
'humans':
|
|
983
|
-
'serverId':
|
|
984
|
-
'serverName':
|
|
578
|
+
'agents': _0x3b04c1,
|
|
579
|
+
'channels': _0x5a54f8[_0x411ab9(_0x5c8ce0._0x14d8f3)]?.[_0x411ab9(0x188)] ?? [],
|
|
580
|
+
'humans': _0x31e08c,
|
|
581
|
+
'serverId': _0x31af1e,
|
|
582
|
+
'serverName': _0x5a54f8['data']?.[_0x411ab9(0x2dc)][_0x411ab9(_0x5c8ce0._0x27d407)] ?? _0x31af1e
|
|
985
583
|
};
|
|
986
|
-
})()[
|
|
987
|
-
|
|
988
|
-
throw
|
|
989
|
-
})
|
|
584
|
+
})()[_0x2a34f3(0x1e8)](_0xa52926 => {
|
|
585
|
+
_0x3634a9 = null;
|
|
586
|
+
throw _0xa52926;
|
|
587
|
+
}), _0x3634a9;
|
|
990
588
|
}
|
|
991
|
-
function
|
|
992
|
-
const
|
|
993
|
-
return
|
|
589
|
+
function _0x59948e(_0x224b40, _0x2f8d5e) {
|
|
590
|
+
const _0x5273e2 = _0xc1769;
|
|
591
|
+
return _0x2f8d5e[_0x5273e2(0x268)][_0x5273e2(_0xccdd25._0x2dfa86)](_0x3713dc => _0x3713dc['id'] === _0x224b40 || _0x3713dc[_0x5273e2(0x25d)] === _0x224b40) ? 'agent' : _0x5273e2(_0xccdd25._0xe241e0);
|
|
994
592
|
}
|
|
995
|
-
function
|
|
996
|
-
const
|
|
997
|
-
if (
|
|
998
|
-
return
|
|
999
|
-
if (
|
|
1000
|
-
return
|
|
1001
|
-
if (
|
|
1002
|
-
return
|
|
1003
|
-
return
|
|
593
|
+
function _0x3ec05a(_0xf374f6) {
|
|
594
|
+
const _0x511ae1 = _0xc1769;
|
|
595
|
+
if (_0xf374f6['threadNumber'] != null)
|
|
596
|
+
return _0xf374f6[_0x511ae1(_0xc63c66._0x204965)] + ':t' + _0xf374f6['threadNumber'];
|
|
597
|
+
if (_0xf374f6[_0x511ae1(_0xc63c66._0x3c9a62)])
|
|
598
|
+
return _0xf374f6[_0x511ae1(_0xc63c66._0x204965)] + ':' + _0xf374f6[_0x511ae1(_0xc63c66._0x11d6fc)];
|
|
599
|
+
if (_0xf374f6[_0x511ae1(0x2dd)])
|
|
600
|
+
return _0xf374f6[_0x511ae1(_0xc63c66._0x516f57)] + ':' + _0xf374f6['threadId'][_0x511ae1(0x1b4)](0x0, 0x8);
|
|
601
|
+
return _0xf374f6[_0x511ae1(0x183)];
|
|
1004
602
|
}
|
|
1005
|
-
function
|
|
1006
|
-
const
|
|
603
|
+
function _0x113a01(_0x54e75d, _0x174c92) {
|
|
604
|
+
const _0x5db927 = _0xc1769;
|
|
1007
605
|
try {
|
|
1008
|
-
const
|
|
1009
|
-
if (
|
|
606
|
+
const _0x4aea3e = parseTarget(_0x54e75d);
|
|
607
|
+
if (_0x4aea3e[_0x5db927(_0x18ddd9._0x5d0527)] !== _0x5db927(0x1b7) || _0x4aea3e[_0x5db927(_0x18ddd9._0xa8ea5)] !== _0x174c92[_0x5db927(_0x18ddd9._0x3e9dbb)])
|
|
1010
608
|
return ![];
|
|
1011
|
-
if (
|
|
609
|
+
if (_0x174c92[_0x5db927(_0x18ddd9._0x18b01d)] != null && _0x4aea3e[_0x5db927(_0x18ddd9._0x3bc0a2)] === 't' + _0x174c92[_0x5db927(_0x18ddd9._0x18b01d)])
|
|
1012
610
|
return !![];
|
|
1013
|
-
if (
|
|
1014
|
-
return
|
|
1015
|
-
if (
|
|
1016
|
-
return
|
|
611
|
+
if (_0x174c92[_0x5db927(_0x18ddd9._0x32c44f)])
|
|
612
|
+
return _0x4aea3e[_0x5db927(0x1b9)] === _0x174c92[_0x5db927(0x2c5)] || _0x174c92['rootMessageId'][_0x5db927(_0x18ddd9._0x478ad5)](_0x4aea3e[_0x5db927(_0x18ddd9._0x565943)]);
|
|
613
|
+
if (_0x174c92['threadId'])
|
|
614
|
+
return _0x4aea3e[_0x5db927(_0x18ddd9._0x565943)] === _0x174c92[_0x5db927(0x2dd)] || _0x174c92[_0x5db927(_0x18ddd9._0x576a9c)][_0x5db927(0x2c2)](_0x4aea3e[_0x5db927(_0x18ddd9._0x565943)]);
|
|
1017
615
|
return ![];
|
|
1018
616
|
} catch {
|
|
1019
617
|
return ![];
|
|
1020
618
|
}
|
|
1021
619
|
}
|
|
1022
|
-
function
|
|
1023
|
-
const
|
|
1024
|
-
return
|
|
620
|
+
function _0x3aa6a9(_0x3940ed) {
|
|
621
|
+
const _0x388b7c = _0xc1769;
|
|
622
|
+
return _0x3940ed[_0x388b7c(0x2f7)]?.['participantId'] ?? _0x3940ed[_0x388b7c(_0x349997._0x5c27e4)]?.['id'] ?? _0x3940ed[_0x388b7c(_0x349997._0x22bfc4)] ?? '';
|
|
1025
623
|
}
|
|
1026
|
-
function
|
|
1027
|
-
|
|
624
|
+
function _0x17154e(_0x2d1f67) {
|
|
625
|
+
const _0x50ee09 = _0xc1769;
|
|
626
|
+
return _0x2d1f67[_0x50ee09(0x23a)]?.[_0x50ee09(_0x320bc9._0x287142)] ?? _0x3aa6a9(_0x2d1f67);
|
|
1028
627
|
}
|
|
1029
|
-
async function
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
const
|
|
1036
|
-
'headers':
|
|
1037
|
-
'method':
|
|
1038
|
-
}),
|
|
1039
|
-
'attachments': (
|
|
1040
|
-
'filename':
|
|
1041
|
-
'id':
|
|
628
|
+
async function _0x294331(_0x4314ce) {
|
|
629
|
+
const _0x14d93b = _0xc1769, _0xdef528 = Math['min'](_0x4314ce['limit'] ?? 0x32, 0x64), _0x1adf71 = await _0x2b8765(), _0x531c5c = new URLSearchParams();
|
|
630
|
+
_0x531c5c[_0x14d93b(_0x536b01._0x5ab9c3)](_0x14d93b(_0x536b01._0x5f0177), String(_0xdef528));
|
|
631
|
+
_0x4314ce['threadId'] ? (_0x531c5c[_0x14d93b(0x2f4)](_0x14d93b(_0x536b01._0x2e865f), _0x4314ce[_0x14d93b(0x2dd)]), _0x531c5c[_0x14d93b(_0x536b01._0x114b3f)]('channelId', _0x4314ce[_0x14d93b(0x1aa)])) : _0x531c5c[_0x14d93b(_0x536b01._0x5ab9c3)](_0x14d93b(_0x536b01._0xdeb5e2), _0x4314ce[_0x14d93b(_0x536b01._0xdeb5e2)]);
|
|
632
|
+
_0x4314ce[_0x14d93b(0x1a3)] && _0x531c5c[_0x14d93b(_0x536b01._0x5ab9c3)](_0x14d93b(_0x536b01._0x5bb9b6), String(_0x4314ce[_0x14d93b(_0x536b01._0x113517)]));
|
|
633
|
+
_0x4314ce[_0x14d93b(0x280)] !== void 0x0 && _0x531c5c['set'](_0x14d93b(_0x536b01._0x2afc7d), String(_0x4314ce['after']));
|
|
634
|
+
const _0x15c7ba = await _0x373ec4(_0x14d93b(_0x536b01._0x8a7377) + _0x576bbf[_0x14d93b(0x221)] + _0x14d93b(0x284) + _0x531c5c[_0x14d93b(_0x536b01._0x24e224)](), {
|
|
635
|
+
'headers': _0x2c8b82,
|
|
636
|
+
'method': 'GET'
|
|
637
|
+
}), _0x221dec = (_0x15c7ba[_0x14d93b(0x1fa)] ?? [])['map'](_0x1d0877 => ({
|
|
638
|
+
'attachments': (_0x1d0877['attachments'] ?? [])[_0x14d93b(0x1ad)](_0x4a6bd3 => ({
|
|
639
|
+
'filename': _0x4a6bd3[_0x14d93b(0x235)] ?? _0x4a6bd3['id'],
|
|
640
|
+
'id': _0x4a6bd3['id']
|
|
1042
641
|
})),
|
|
1043
|
-
'content':
|
|
1044
|
-
'createdAt':
|
|
1045
|
-
'messageId':
|
|
1046
|
-
'senderName':
|
|
1047
|
-
'senderType':
|
|
1048
|
-
'seq':
|
|
642
|
+
'content': _0x1d0877[_0x14d93b(0x2d1)] ?? '',
|
|
643
|
+
'createdAt': _0x1d0877['createdAt'],
|
|
644
|
+
'messageId': _0x1d0877['id'],
|
|
645
|
+
'senderName': _0x1d0877[_0x14d93b(0x2f5)],
|
|
646
|
+
'senderType': _0x59948e(_0x1d0877[_0x14d93b(0x2f5)], _0x1adf71),
|
|
647
|
+
'seq': _0x1d0877[_0x14d93b(0x1a7)] ?? 0x0
|
|
1049
648
|
}));
|
|
1050
649
|
return {
|
|
1051
|
-
'channel':
|
|
1052
|
-
'hasMore':
|
|
1053
|
-
'messages':
|
|
1054
|
-
'nextCursor':
|
|
650
|
+
'channel': _0x4314ce[_0x14d93b(_0x536b01._0x5e51a5)],
|
|
651
|
+
'hasMore': _0x15c7ba[_0x14d93b(_0x536b01._0x382007)]?.[_0x14d93b(_0x536b01._0x1dc32e)] ?? ![],
|
|
652
|
+
'messages': _0x221dec,
|
|
653
|
+
'nextCursor': _0x15c7ba[_0x14d93b(_0x536b01._0x382007)]?.[_0x14d93b(_0x536b01._0x4f540f)]
|
|
1055
654
|
};
|
|
1056
655
|
}
|
|
1057
656
|
return {
|
|
1058
|
-
async 'sendMessage'(
|
|
1059
|
-
const
|
|
1060
|
-
'body': JSON[
|
|
1061
|
-
'attachment_ids':
|
|
1062
|
-
'bodyMarkdown':
|
|
1063
|
-
'channelId':
|
|
1064
|
-
...
|
|
1065
|
-
'threadId':
|
|
1066
|
-
...
|
|
657
|
+
async 'sendMessage'(_0x452245) {
|
|
658
|
+
const _0x3a4c52 = _0xc1769, _0x3b5172 = await _0x496959(_0x452245[_0x3a4c52(0x217)]), _0x424af9 = _0x452245[_0x3a4c52(_0xec068a._0xa1a20c)][_0x3a4c52(_0xec068a._0x433b00)]('@') ? extractMentionedParticipantIds(_0x452245[_0x3a4c52(_0xec068a._0xa1a20c)], await _0x2b8765()) : [], _0x48a669 = await _0x373ec4(_0x3a4c52(_0xec068a._0x1d0c5f) + _0x576bbf[_0x3a4c52(_0xec068a._0x18ce55)] + _0x3a4c52(0x26d), {
|
|
659
|
+
'body': JSON[_0x3a4c52(_0xec068a._0x375ae9)]({
|
|
660
|
+
'attachment_ids': _0x452245['attachmentIds'],
|
|
661
|
+
'bodyMarkdown': _0x452245[_0x3a4c52(0x236)],
|
|
662
|
+
'channelId': _0x3b5172[_0x3a4c52(0x1aa)],
|
|
663
|
+
..._0x424af9[_0x3a4c52(0x2aa)] > 0x0 ? { 'mentionedParticipantIds': _0x424af9 } : {},
|
|
664
|
+
'threadId': _0x3b5172['threadId'],
|
|
665
|
+
..._0x452245[_0x3a4c52(_0xec068a._0x2b1763)] ? { 'visibility': _0x452245[_0x3a4c52(_0xec068a._0xd27a75)] } : {}
|
|
1067
666
|
}),
|
|
1068
|
-
'headers':
|
|
667
|
+
'headers': _0x2c8b82,
|
|
1069
668
|
'method': 'POST'
|
|
1070
669
|
});
|
|
1071
|
-
return { 'messageId':
|
|
670
|
+
return { 'messageId': _0x48a669[_0x3a4c52(0x1fa)]?.['id'] ?? '' };
|
|
1072
671
|
},
|
|
1073
672
|
async 'listSchedules'() {
|
|
1074
|
-
const
|
|
1075
|
-
'headers':
|
|
1076
|
-
'method':
|
|
673
|
+
const _0x4ccc50 = _0xc1769, _0x1ed07b = await _0x373ec4(_0x4ccc50(_0x5ea85d._0xec7c68), {
|
|
674
|
+
'headers': _0x2c8b82,
|
|
675
|
+
'method': _0x4ccc50(_0x5ea85d._0x2c7493)
|
|
1077
676
|
});
|
|
1078
|
-
return
|
|
677
|
+
return _0x1ed07b[_0x4ccc50(0x1fa)] ?? [];
|
|
1079
678
|
},
|
|
1080
|
-
async 'claimScheduleRun'(
|
|
1081
|
-
const
|
|
1082
|
-
'body': JSON[
|
|
1083
|
-
'headers':
|
|
679
|
+
async 'claimScheduleRun'(_0x30bdb6) {
|
|
680
|
+
const _0x4b9e87 = _0xc1769, _0x5043a2 = await _0x373ec4('/api/internal/schedules/claim', {
|
|
681
|
+
'body': JSON['stringify'](_0x30bdb6),
|
|
682
|
+
'headers': _0x2c8b82,
|
|
1084
683
|
'method': 'POST'
|
|
1085
684
|
});
|
|
1086
|
-
return
|
|
685
|
+
return _0x5043a2[_0x4b9e87(_0x552af8._0x7b716d)] ?? {
|
|
1087
686
|
'granted': ![],
|
|
1088
687
|
'runId': null,
|
|
1089
688
|
'schedule': null,
|
|
1090
|
-
'scheduledFor':
|
|
689
|
+
'scheduledFor': _0x30bdb6[_0x4b9e87(0x2b5)]
|
|
1091
690
|
};
|
|
1092
691
|
},
|
|
1093
|
-
async 'startScheduleRun'(
|
|
1094
|
-
const
|
|
1095
|
-
'body': JSON[
|
|
1096
|
-
'headers':
|
|
1097
|
-
'method':
|
|
692
|
+
async 'startScheduleRun'(_0x5597ff) {
|
|
693
|
+
const _0x3accdb = _0xc1769, _0x56e9dc = await _0x373ec4(_0x3accdb(0x1f1) + encodeURIComponent(_0x5597ff[_0x3accdb(_0xbf21bf._0x26f5a9)]) + _0x3accdb(_0xbf21bf._0x2c9ced), {
|
|
694
|
+
'body': JSON[_0x3accdb(_0xbf21bf._0x4dc470)]({}),
|
|
695
|
+
'headers': _0x2c8b82,
|
|
696
|
+
'method': 'POST'
|
|
1098
697
|
});
|
|
1099
|
-
return
|
|
698
|
+
return _0x56e9dc[_0x3accdb(_0xbf21bf._0x460278)] ?? {
|
|
1100
699
|
'claimedByDaemonId': '',
|
|
1101
|
-
'id':
|
|
700
|
+
'id': _0x5597ff['runId'],
|
|
1102
701
|
'scheduleId': '',
|
|
1103
|
-
'status':
|
|
702
|
+
'status': _0x3accdb(0x2d9)
|
|
1104
703
|
};
|
|
1105
704
|
},
|
|
1106
|
-
async 'finishScheduleRun'(
|
|
1107
|
-
const
|
|
1108
|
-
'body': JSON[
|
|
1109
|
-
'error':
|
|
1110
|
-
'resultJson':
|
|
1111
|
-
'status':
|
|
705
|
+
async 'finishScheduleRun'(_0x2e9774) {
|
|
706
|
+
const _0x3c48bf = _0xc1769, _0xa70ca8 = await _0x373ec4('/api/internal/schedules/' + encodeURIComponent(_0x2e9774[_0x3c48bf(_0x2cb30b._0x7fe1ea)]) + '/finish', {
|
|
707
|
+
'body': JSON[_0x3c48bf(0x17d)]({
|
|
708
|
+
'error': _0x2e9774['error'],
|
|
709
|
+
'resultJson': _0x2e9774[_0x3c48bf(0x2cc)],
|
|
710
|
+
'status': _0x2e9774['status']
|
|
1112
711
|
}),
|
|
1113
|
-
'headers':
|
|
1114
|
-
'method':
|
|
712
|
+
'headers': _0x2c8b82,
|
|
713
|
+
'method': 'POST'
|
|
1115
714
|
});
|
|
1116
|
-
return
|
|
715
|
+
return _0xa70ca8[_0x3c48bf(0x1fa)] ?? {
|
|
1117
716
|
'nextRunAt': null,
|
|
1118
717
|
'run': {
|
|
1119
718
|
'claimedByDaemonId': '',
|
|
1120
|
-
'id':
|
|
719
|
+
'id': _0x2e9774[_0x3c48bf(0x2a0)],
|
|
1121
720
|
'scheduleId': '',
|
|
1122
|
-
'status':
|
|
721
|
+
'status': _0x2e9774[_0x3c48bf(0x1f0)]
|
|
1123
722
|
}
|
|
1124
723
|
};
|
|
1125
724
|
},
|
|
1126
|
-
async 'listTasks'(
|
|
1127
|
-
const
|
|
1128
|
-
return
|
|
1129
|
-
'headers':
|
|
1130
|
-
'method':
|
|
725
|
+
async 'listTasks'(_0x193dea) {
|
|
726
|
+
const _0x5f3357 = _0xc1769, _0x52b1e7 = new URLSearchParams();
|
|
727
|
+
return _0x52b1e7[_0x5f3357(_0x2fdf6f._0x13ce92)](_0x5f3357(0x23e), _0x193dea[_0x5f3357(0x23e)]), _0x193dea['status'] && _0x52b1e7[_0x5f3357(0x2f4)]('status', _0x193dea[_0x5f3357(_0x2fdf6f._0x5a0b75)]), _0xbd1ee8('/internal/agent/' + _0x576bbf['agentId'] + _0x5f3357(_0x2fdf6f._0x14a2fc) + _0x52b1e7['toString'](), {
|
|
728
|
+
'headers': _0x2c8b82,
|
|
729
|
+
'method': _0x5f3357(0x203)
|
|
1131
730
|
});
|
|
1132
731
|
},
|
|
1133
|
-
async 'createTasks'(
|
|
1134
|
-
const
|
|
1135
|
-
return
|
|
1136
|
-
'body': JSON[
|
|
1137
|
-
...
|
|
1138
|
-
'idempotency_key':
|
|
732
|
+
async 'createTasks'(_0x35fde2) {
|
|
733
|
+
const _0x439be7 = _0xc1769;
|
|
734
|
+
return _0xbd1ee8(_0x439be7(0x295) + _0x576bbf[_0x439be7(0x221)] + _0x439be7(_0x3e0644._0x42e218), {
|
|
735
|
+
'body': JSON[_0x439be7(_0x3e0644._0x563a46)]({
|
|
736
|
+
..._0x35fde2,
|
|
737
|
+
'idempotency_key': _0x384454(_0x439be7(0x17f), _0x35fde2)
|
|
1139
738
|
}),
|
|
1140
|
-
'headers':
|
|
739
|
+
'headers': _0x2c8b82,
|
|
1141
740
|
'method': 'POST'
|
|
1142
741
|
});
|
|
1143
742
|
},
|
|
1144
|
-
async 'claimTasks'(
|
|
1145
|
-
const
|
|
1146
|
-
return
|
|
1147
|
-
'body': JSON[
|
|
1148
|
-
...
|
|
1149
|
-
'idempotency_key':
|
|
743
|
+
async 'claimTasks'(_0x571e80) {
|
|
744
|
+
const _0x33efa1 = _0xc1769;
|
|
745
|
+
return _0xbd1ee8(_0x33efa1(0x295) + _0x576bbf[_0x33efa1(0x221)] + _0x33efa1(0x1a8), {
|
|
746
|
+
'body': JSON[_0x33efa1(_0x499713._0x1aaeff)]({
|
|
747
|
+
..._0x571e80,
|
|
748
|
+
'idempotency_key': _0x384454('claim_tasks', _0x571e80)
|
|
1150
749
|
}),
|
|
1151
|
-
'headers':
|
|
1152
|
-
'method':
|
|
750
|
+
'headers': _0x2c8b82,
|
|
751
|
+
'method': _0x33efa1(0x186)
|
|
1153
752
|
});
|
|
1154
753
|
},
|
|
1155
|
-
async 'unclaimTask'(
|
|
1156
|
-
const
|
|
1157
|
-
return
|
|
1158
|
-
'body': JSON[
|
|
1159
|
-
...
|
|
1160
|
-
'idempotency_key':
|
|
754
|
+
async 'unclaimTask'(_0x4cd6cd) {
|
|
755
|
+
const _0x3e0842 = _0xc1769;
|
|
756
|
+
return _0xbd1ee8(_0x3e0842(_0x97e405._0x2d17a4) + _0x576bbf[_0x3e0842(0x221)] + '/tasks/unclaim', {
|
|
757
|
+
'body': JSON[_0x3e0842(_0x97e405._0x1201ae)]({
|
|
758
|
+
..._0x4cd6cd,
|
|
759
|
+
'idempotency_key': _0x384454('unclaim_task', _0x4cd6cd)
|
|
1161
760
|
}),
|
|
1162
|
-
'headers':
|
|
1163
|
-
'method':
|
|
761
|
+
'headers': _0x2c8b82,
|
|
762
|
+
'method': _0x3e0842(0x186)
|
|
1164
763
|
});
|
|
1165
764
|
},
|
|
1166
|
-
async 'updateTaskStatus'(
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
765
|
+
async 'updateTaskStatus'(_0x2d31d1) {
|
|
766
|
+
const _0x3af610 = _0xc1769;
|
|
767
|
+
return _0xbd1ee8(_0x3af610(0x295) + _0x576bbf['agentId'] + _0x3af610(0x28d), {
|
|
1169
768
|
'body': JSON['stringify']({
|
|
1170
|
-
...
|
|
1171
|
-
'idempotency_key':
|
|
769
|
+
..._0x2d31d1,
|
|
770
|
+
'idempotency_key': _0x384454(_0x3af610(0x2cd), _0x2d31d1)
|
|
1172
771
|
}),
|
|
1173
|
-
'headers':
|
|
1174
|
-
'method':
|
|
772
|
+
'headers': _0x2c8b82,
|
|
773
|
+
'method': 'POST'
|
|
1175
774
|
});
|
|
1176
775
|
},
|
|
1177
|
-
async 'uploadFile'(
|
|
1178
|
-
const
|
|
1179
|
-
if (
|
|
1180
|
-
throw new Error(
|
|
1181
|
-
const
|
|
1182
|
-
'body': JSON[
|
|
1183
|
-
'channel':
|
|
1184
|
-
'contentBase64':
|
|
1185
|
-
'contentType':
|
|
1186
|
-
'originalFilename':
|
|
776
|
+
async 'uploadFile'(_0x303196) {
|
|
777
|
+
const _0x1fd805 = _0xc1769, _0x4a54ee = await _0x496959(_0x303196[_0x1fd805(_0x39eed1._0x5bf48c)]);
|
|
778
|
+
if (_0x4a54ee[_0x1fd805(0x2dd)])
|
|
779
|
+
throw new Error(_0x1fd805(_0x39eed1._0x348af9));
|
|
780
|
+
const _0x44f4ac = await _0x373ec4('/internal/agent/' + _0x576bbf[_0x1fd805(_0x39eed1._0x1be013)] + _0x1fd805(0x2a9), {
|
|
781
|
+
'body': JSON['stringify']({
|
|
782
|
+
'channel': _0x4a54ee[_0x1fd805(_0x39eed1._0x146ee3)],
|
|
783
|
+
'contentBase64': _0x303196[_0x1fd805(0x2e5)],
|
|
784
|
+
'contentType': _0x303196['contentType'],
|
|
785
|
+
'originalFilename': _0x303196[_0x1fd805(0x235)]
|
|
1187
786
|
}),
|
|
1188
|
-
'headers':
|
|
1189
|
-
'method':
|
|
787
|
+
'headers': _0x2c8b82,
|
|
788
|
+
'method': 'POST'
|
|
1190
789
|
});
|
|
1191
790
|
return {
|
|
1192
|
-
'attachmentId':
|
|
1193
|
-
'filename':
|
|
1194
|
-
'sizeBytes':
|
|
791
|
+
'attachmentId': _0x44f4ac[_0x1fd805(_0x39eed1._0x44c0cf)]?.['id'] ?? '',
|
|
792
|
+
'filename': _0x44f4ac[_0x1fd805(_0x39eed1._0x6316c3)]?.[_0x1fd805(0x220)] ?? _0x303196['filename'],
|
|
793
|
+
'sizeBytes': _0x44f4ac[_0x1fd805(_0x39eed1._0x4904ac)]?.[_0x1fd805(0x212)] ?? 0x0
|
|
1195
794
|
};
|
|
1196
795
|
},
|
|
1197
|
-
async 'downloadAttachment'(
|
|
1198
|
-
const
|
|
1199
|
-
'headers':
|
|
1200
|
-
'method':
|
|
1201
|
-
}),
|
|
796
|
+
async 'downloadAttachment'(_0x5544da) {
|
|
797
|
+
const _0x223809 = _0xc1769, _0x371e3b = await _0x373ec4(_0x223809(_0x2fc491._0x2757f2) + _0x5544da, {
|
|
798
|
+
'headers': _0x2c8b82,
|
|
799
|
+
'method': 'GET'
|
|
800
|
+
}), _0x270ce6 = new AbortController(), _0x3473ae = setTimeout(() => _0x270ce6[_0x223809(0x2ed)](), _0x2c566b);
|
|
1202
801
|
try {
|
|
1203
|
-
const
|
|
1204
|
-
'headers':
|
|
1205
|
-
'method':
|
|
1206
|
-
'signal':
|
|
802
|
+
const _0x32a31e = await _0x4e1e5e(_0x3007ce + '/api/attachments/' + _0x5544da + _0x223809(0x20d), {
|
|
803
|
+
'headers': _0x2c8b82,
|
|
804
|
+
'method': _0x223809(0x203),
|
|
805
|
+
'signal': _0x270ce6[_0x223809(0x2ef)]
|
|
1207
806
|
});
|
|
1208
|
-
if (!
|
|
1209
|
-
throw new Error(
|
|
807
|
+
if (!_0x32a31e['ok'])
|
|
808
|
+
throw new Error('HTTP\x20' + _0x32a31e[_0x223809(_0x2fc491._0x199ee4)]);
|
|
1210
809
|
return {
|
|
1211
|
-
'contentType':
|
|
1212
|
-
'data': Buffer[
|
|
1213
|
-
'originalFilename':
|
|
810
|
+
'contentType': _0x371e3b[_0x223809(_0x2fc491._0x533b50)]?.[_0x223809(_0x2fc491._0x5854f8)] ?? _0x32a31e['headers']['get'](_0x223809(0x185)) ?? _0x223809(_0x2fc491._0x14b4b7),
|
|
811
|
+
'data': Buffer[_0x223809(0x257)](await _0x32a31e[_0x223809(_0x2fc491._0x24e500)]()),
|
|
812
|
+
'originalFilename': _0x371e3b['data']?.['originalFilename']
|
|
1214
813
|
};
|
|
1215
814
|
} finally {
|
|
1216
|
-
clearTimeout(
|
|
815
|
+
clearTimeout(_0x3473ae);
|
|
1217
816
|
}
|
|
1218
817
|
},
|
|
1219
818
|
async 'listServer'() {
|
|
1220
|
-
return
|
|
819
|
+
return _0x2b8765({ 'forceRefresh': !![] });
|
|
1221
820
|
},
|
|
1222
|
-
async 'readHistory'(
|
|
1223
|
-
const
|
|
1224
|
-
return
|
|
1225
|
-
'after':
|
|
1226
|
-
'before':
|
|
1227
|
-
'channelId':
|
|
1228
|
-
'channelTarget':
|
|
1229
|
-
'limit':
|
|
1230
|
-
'threadId':
|
|
821
|
+
async 'readHistory'(_0x56daab) {
|
|
822
|
+
const _0xd28801 = _0xc1769, _0x5a4b98 = await _0x496959(_0x56daab['channel']);
|
|
823
|
+
return _0x294331({
|
|
824
|
+
'after': _0x56daab[_0xd28801(_0x4ddc11._0x241356)],
|
|
825
|
+
'before': _0x56daab['before'],
|
|
826
|
+
'channelId': _0x5a4b98[_0xd28801(_0x4ddc11._0x25890c)],
|
|
827
|
+
'channelTarget': _0x5a4b98[_0xd28801(_0x4ddc11._0x6bdd78)],
|
|
828
|
+
'limit': _0x56daab['limit'],
|
|
829
|
+
'threadId': _0x5a4b98[_0xd28801(_0x4ddc11._0xcbd734)]
|
|
1231
830
|
});
|
|
1232
831
|
},
|
|
1233
|
-
'resolveTarget':
|
|
832
|
+
'resolveTarget': _0x496959,
|
|
1234
833
|
async 'checkMessages'() {
|
|
1235
|
-
const
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
834
|
+
const _0x21806c = {
|
|
835
|
+
_0x4a936f: 0x1aa,
|
|
836
|
+
_0x8e813a: 0x2c9,
|
|
837
|
+
_0x522d5b: 0x234
|
|
838
|
+
}, _0x346779 = _0xc1769, _0x4ec796 = new URLSearchParams();
|
|
839
|
+
_0x4ec796[_0x346779(0x2f4)](_0x346779(_0x52838f._0x4779e2), String(_0x36bf63));
|
|
840
|
+
const _0x4b5371 = _0x4ec796['toString'](), _0x2ea8ce = await _0x373ec4('/internal/agent/' + _0x576bbf[_0x346779(_0x52838f._0x1e204d)] + _0x346779(0x289) + (_0x4b5371 ? '?' + _0x4b5371 : ''), {
|
|
841
|
+
'headers': _0x2c8b82,
|
|
842
|
+
'method': 'GET'
|
|
843
|
+
}), _0x4a23ba = _0x2ea8ce[_0x346779(0x1fa)] ?? [], _0x2d8db7 = _0x2ea8ce['meta']?.[_0x346779(0x2bf)], _0x5d501e = _0x2d8db7 !== void 0x0 ? Math[_0x346779(0x22f)](_0x36bf63, _0x2d8db7) : _0x4a23ba['length'] > 0x0 ? Math[_0x346779(_0x52838f._0x43795e)](_0x36bf63, _0x4a23ba[_0x4a23ba[_0x346779(0x2aa)] - 0x1][_0x346779(_0x52838f._0x1a814)]) : _0x36bf63, _0x32f78a = _0x4a23ba['filter'](_0x415cd7 => _0x415cd7[_0x346779(0x294)] === _0x346779(0x281)), _0x2fde62 = _0x3a277b === void 0x0 && _0x1b1d55;
|
|
844
|
+
let _0x43c2e7 = await _0x2b8765(), _0x4949d0 = new Map(_0x43c2e7[_0x346779(0x188)][_0x346779(0x1ad)](_0x5bc5a8 => [
|
|
845
|
+
_0x5bc5a8['id'],
|
|
846
|
+
_0x5bc5a8
|
|
847
|
+
]));
|
|
848
|
+
const _0x5e3a51 = _0x32f78a[_0x346779(_0x52838f._0x1e6cbc)](_0x59e031 => {
|
|
849
|
+
const _0x283ac5 = _0x346779, _0x21e6d6 = asRecord(_0x59e031[_0x283ac5(0x2c1)]), _0xaf9ba9 = typeof _0x21e6d6?.[_0x283ac5(_0x21806c._0x4a936f)] === _0x283ac5(_0x21806c._0x8e813a) ? _0x21e6d6[_0x283ac5(0x1aa)] : '';
|
|
850
|
+
return Boolean(_0xaf9ba9) && !_0x4949d0[_0x283ac5(_0x21806c._0x522d5b)](_0xaf9ba9);
|
|
851
|
+
});
|
|
852
|
+
_0x5e3a51 && (_0x43c2e7 = await _0x2b8765({ 'forceRefresh': !![] }), _0x4949d0 = new Map(_0x43c2e7[_0x346779(0x188)][_0x346779(0x1ad)](_0x1dd394 => [
|
|
853
|
+
_0x1dd394['id'],
|
|
854
|
+
_0x1dd394
|
|
855
|
+
])));
|
|
856
|
+
const _0xeb41cb = new Map();
|
|
857
|
+
for (const _0x11bb06 of _0x32f78a) {
|
|
858
|
+
const _0x1e5643 = asRecord(_0x11bb06[_0x346779(0x2c1)]), _0x3cfa6a = typeof _0x1e5643[_0x346779(0x1aa)] === _0x346779(_0x52838f._0xf9ed34) ? _0x1e5643[_0x346779(_0x52838f._0x5d045d)] : '';
|
|
859
|
+
if (!_0x3cfa6a)
|
|
1247
860
|
continue;
|
|
1248
|
-
const
|
|
861
|
+
const _0x191b1b = typeof _0x1e5643['threadId'] === 'string' ? _0x1e5643[_0x346779(0x2dd)] : void 0x0, _0x12a892 = typeof _0x1e5643[_0x346779(0x2c5)] === 'string' ? _0x1e5643[_0x346779(0x2c5)] : void 0x0, _0x430a8b = typeof _0x1e5643['threadNumber'] === _0x346779(0x1f3) && Number[_0x346779(_0x52838f._0x1a8b92)](_0x1e5643[_0x346779(0x1a0)]) ? _0x1e5643[_0x346779(_0x52838f._0x359547)] : void 0x0, _0x15fae6 = Boolean(_0x191b1b && (!_0x12a892 || _0x11bb06[_0x346779(_0x52838f._0x8e252e)] !== _0x12a892)), _0x527556 = _0x15fae6 ? _0x3cfa6a + ':' + _0x191b1b : _0x3cfa6a, _0x141ae7 = _0xeb41cb[_0x346779(_0x52838f._0x33281f)](_0x527556) ?? {
|
|
1249
862
|
'aggregateIds': [],
|
|
1250
|
-
'channelId':
|
|
863
|
+
'channelId': _0x3cfa6a,
|
|
1251
864
|
'entries': new Map(),
|
|
1252
|
-
'isThreadReply':
|
|
1253
|
-
'rootMessageId':
|
|
1254
|
-
'threadNumber':
|
|
1255
|
-
'threadId':
|
|
865
|
+
'isThreadReply': _0x15fae6,
|
|
866
|
+
'rootMessageId': _0x12a892,
|
|
867
|
+
'threadNumber': _0x430a8b,
|
|
868
|
+
'threadId': _0x15fae6 ? _0x191b1b : void 0x0
|
|
1256
869
|
};
|
|
1257
|
-
|
|
1258
|
-
'payloadJson':
|
|
1259
|
-
'seq':
|
|
1260
|
-
}),
|
|
870
|
+
_0x141ae7[_0x346779(_0x52838f._0x2f33db)] == null && _0x430a8b != null && (_0x141ae7['threadNumber'] = _0x430a8b), !_0x141ae7['rootMessageId'] && _0x12a892 && (_0x141ae7[_0x346779(0x2c5)] = _0x12a892), _0x141ae7[_0x346779(_0x52838f._0x145106)][_0x346779(0x27b)](_0x11bb06[_0x346779(_0x52838f._0xc6998b)]), _0x141ae7[_0x346779(_0x52838f._0x2926bc)]['set'](_0x11bb06[_0x346779(_0x52838f._0x974904)], {
|
|
871
|
+
'payloadJson': _0x11bb06[_0x346779(0x2c1)],
|
|
872
|
+
'seq': _0x11bb06[_0x346779(0x278)]
|
|
873
|
+
}), _0xeb41cb['set'](_0x527556, _0x141ae7);
|
|
1261
874
|
}
|
|
1262
|
-
const
|
|
1263
|
-
for (const
|
|
875
|
+
const _0xea7ac7 = [];
|
|
876
|
+
for (const _0xbcd35b of _0xeb41cb[_0x346779(0x200)]()) {
|
|
1264
877
|
const {
|
|
1265
|
-
channelId:
|
|
1266
|
-
threadId:
|
|
1267
|
-
rootMessageId:
|
|
1268
|
-
threadNumber:
|
|
1269
|
-
aggregateIds:
|
|
1270
|
-
isThreadReply:
|
|
1271
|
-
entries:
|
|
1272
|
-
} =
|
|
1273
|
-
'channelTarget':
|
|
1274
|
-
'rootMessageId':
|
|
1275
|
-
'threadId':
|
|
1276
|
-
'threadNumber':
|
|
1277
|
-
},
|
|
1278
|
-
'channelId':
|
|
1279
|
-
'channelTarget':
|
|
1280
|
-
'limit': Math[
|
|
1281
|
-
'threadId':
|
|
1282
|
-
}),
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
])),
|
|
1286
|
-
for (const
|
|
1287
|
-
if (!
|
|
878
|
+
channelId: _0xb9eeee,
|
|
879
|
+
threadId: _0x18a9d7,
|
|
880
|
+
rootMessageId: _0x592aea,
|
|
881
|
+
threadNumber: _0x9e0978,
|
|
882
|
+
aggregateIds: _0x5ac7a1,
|
|
883
|
+
isThreadReply: _0x8f7b60,
|
|
884
|
+
entries: _0x11712d
|
|
885
|
+
} = _0xbcd35b, _0x544ca1 = _0x4949d0[_0x346779(0x1d1)](_0xb9eeee), _0x4d2edd = _0x544ca1?.[_0x346779(_0x52838f._0x1660bd)] ?? _0xb9eeee, _0x1b6f1d = _0x544ca1?.[_0x346779(_0x52838f._0x3d7436)] === 'dm' ? _0x346779(0x2b4) + _0x4d2edd : '#' + _0x4d2edd, _0x8c4bd = {
|
|
886
|
+
'channelTarget': _0x1b6f1d,
|
|
887
|
+
'rootMessageId': _0x592aea,
|
|
888
|
+
'threadId': _0x18a9d7,
|
|
889
|
+
'threadNumber': _0x9e0978
|
|
890
|
+
}, _0x18f356 = await _0x294331({
|
|
891
|
+
'channelId': _0xb9eeee,
|
|
892
|
+
'channelTarget': _0x1b6f1d,
|
|
893
|
+
'limit': Math[_0x346779(0x22f)](_0x5ac7a1[_0x346779(_0x52838f._0x14cfee)], 0x32),
|
|
894
|
+
'threadId': _0x18a9d7
|
|
895
|
+
}), _0x6d9cd4 = new Map(_0x18f356[_0x346779(_0x52838f._0x58e471)]['map'](_0x4fd039 => [
|
|
896
|
+
_0x4fd039[_0x346779(0x23c)],
|
|
897
|
+
_0x4fd039
|
|
898
|
+
])), _0x10849b = _0x18a9d7 ? _0x3ec05a(_0x8c4bd) : _0x1b6f1d, _0x43d4ab = _0x3a277b ? _0x8f7b60 && _0x113a01(_0x3a277b, _0x8c4bd) : !![], _0x5db725 = _0x8f7b60 ? _0x43d4ab && _0x3a277b ? _0x3a277b : _0x10849b : _0x1b6f1d;
|
|
899
|
+
for (const _0x1aaa16 of _0x5ac7a1) {
|
|
900
|
+
if (!_0x43d4ab)
|
|
1288
901
|
continue;
|
|
1289
|
-
const
|
|
1290
|
-
if (
|
|
902
|
+
const _0x303d13 = _0x11712d['get'](_0x1aaa16), _0x39ae81 = _0x303d13 ? asRecord(_0x303d13[_0x346779(_0x52838f._0x3dd8e8)]) : void 0x0, _0x365ecd = _0x39ae81?.[_0x346779(_0x52838f._0x52d73e)] === 'targeted';
|
|
903
|
+
if (_0x2fde62 && _0x365ecd)
|
|
1291
904
|
continue;
|
|
1292
|
-
const
|
|
1293
|
-
if (
|
|
1294
|
-
|
|
1295
|
-
'attachments':
|
|
1296
|
-
'content':
|
|
1297
|
-
'createdAt':
|
|
1298
|
-
'messageId':
|
|
1299
|
-
'senderName':
|
|
1300
|
-
'senderType':
|
|
1301
|
-
'target':
|
|
1302
|
-
...
|
|
905
|
+
const _0xb8f741 = _0x6d9cd4[_0x346779(0x1d1)](_0x1aaa16);
|
|
906
|
+
if (_0xb8f741) {
|
|
907
|
+
_0xea7ac7[_0x346779(_0x52838f._0x3def6a)]({
|
|
908
|
+
'attachments': _0xb8f741['attachments'],
|
|
909
|
+
'content': _0xb8f741[_0x346779(_0x52838f._0x19ab84)],
|
|
910
|
+
'createdAt': _0xb8f741[_0x346779(_0x52838f._0x9f3b2b)],
|
|
911
|
+
'messageId': _0xb8f741[_0x346779(_0x52838f._0x4278be)],
|
|
912
|
+
'senderName': _0xb8f741[_0x346779(0x2b1)],
|
|
913
|
+
'senderType': _0xb8f741[_0x346779(_0x52838f._0x57eebb)],
|
|
914
|
+
'target': _0x5db725,
|
|
915
|
+
..._0x365ecd ? { 'targetedTask': !![] } : {}
|
|
1303
916
|
});
|
|
1304
917
|
continue;
|
|
1305
918
|
}
|
|
1306
|
-
if (
|
|
1307
|
-
const
|
|
1308
|
-
|
|
919
|
+
if (_0x303d13) {
|
|
920
|
+
const _0x249f6a = typeof _0x39ae81?.[_0x346779(0x2f5)] === _0x346779(0x2c9) ? _0x39ae81[_0x346779(_0x52838f._0x328e53)] : '', _0x35b088 = typeof _0x39ae81?.['bodyMarkdown'] === 'string' ? _0x39ae81['bodyMarkdown'] : '';
|
|
921
|
+
_0x249f6a && _0x35b088 && _0xea7ac7[_0x346779(0x27b)]({
|
|
1309
922
|
'attachments': [],
|
|
1310
|
-
'content':
|
|
1311
|
-
'createdAt': new Date()[
|
|
1312
|
-
'messageId':
|
|
1313
|
-
'senderName':
|
|
1314
|
-
'senderType':
|
|
1315
|
-
'target':
|
|
1316
|
-
...
|
|
923
|
+
'content': _0x35b088,
|
|
924
|
+
'createdAt': new Date()[_0x346779(_0x52838f._0x57d919)](),
|
|
925
|
+
'messageId': _0x1aaa16,
|
|
926
|
+
'senderName': _0x249f6a,
|
|
927
|
+
'senderType': _0x59948e(_0x249f6a, _0x43c2e7),
|
|
928
|
+
'target': _0x5db725,
|
|
929
|
+
..._0x365ecd ? { 'targetedTask': !![] } : {}
|
|
1317
930
|
});
|
|
1318
931
|
}
|
|
1319
932
|
}
|
|
1320
933
|
}
|
|
1321
|
-
if (
|
|
1322
|
-
if (
|
|
1323
|
-
await
|
|
934
|
+
if (_0x5d501e > 0x0) {
|
|
935
|
+
if (_0x46167e)
|
|
936
|
+
await _0x145107(_0x5d501e);
|
|
1324
937
|
else
|
|
1325
|
-
|
|
938
|
+
_0x4e58e6 && await _0x3acd1c(_0x5d501e);
|
|
1326
939
|
}
|
|
1327
|
-
return
|
|
940
|
+
return _0x5d501e > _0x36bf63 && (_0x36bf63 = _0x5d501e), { 'messages': _0x3a277b ? _0xea7ac7 : _0x2fde62 ? _0xea7ac7[_0x346779(0x2b8)](_0x2f00f4 => _0x2f00f4[_0x346779(0x1e0)] !== !![]) : _0xea7ac7 };
|
|
1328
941
|
}
|
|
1329
942
|
};
|
|
1330
943
|
}
|
|
1331
|
-
function toLocalTime(
|
|
1332
|
-
const
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
944
|
+
function toLocalTime(_0x2e202e) {
|
|
945
|
+
const _0x56fe72 = {
|
|
946
|
+
_0x5294cf: 0x26c,
|
|
947
|
+
_0x1e1eca: 0x27e,
|
|
948
|
+
_0x34cb0b: 0x1bf
|
|
949
|
+
}, _0xbefcc1 = _0xd0824a, _0x2e256e = new Date(_0x2e202e);
|
|
950
|
+
if (Number[_0xbefcc1(_0x56fe72._0x5294cf)](_0x2e256e['getTime']()))
|
|
951
|
+
return _0x2e202e;
|
|
952
|
+
const _0x3e7876 = _0x2b191b => String(_0x2b191b)[_0xbefcc1(0x2d6)](0x2, '0');
|
|
953
|
+
return _0x2e256e['getFullYear']() + '-' + _0x3e7876(_0x2e256e[_0xbefcc1(_0x56fe72._0x1e1eca)]() + 0x1) + '-' + _0x3e7876(_0x2e256e['getDate']()) + '\x20' + _0x3e7876(_0x2e256e[_0xbefcc1(0x2ea)]()) + ':' + _0x3e7876(_0x2e256e[_0xbefcc1(_0x56fe72._0x34cb0b)]()) + ':' + _0x3e7876(_0x2e256e['getSeconds']());
|
|
1340
954
|
}
|
|
1341
|
-
function formatAttachmentSuffix(
|
|
1342
|
-
const
|
|
1343
|
-
|
|
1344
|
-
_0x2d7d90: 0x19f,
|
|
1345
|
-
_0x1dabf2: 0xdd
|
|
1346
|
-
}, _0x130e48 = _0x174aa9;
|
|
1347
|
-
if (!_0x38806d || _0x38806d[_0x130e48(_0x30fb92._0xa2ed99)] === 0x0)
|
|
955
|
+
function formatAttachmentSuffix(_0x43ad2d) {
|
|
956
|
+
const _0x5e46fe = { _0x2ac12f: 0x2aa }, _0x2006a7 = _0xd0824a;
|
|
957
|
+
if (!_0x43ad2d || _0x43ad2d['length'] === 0x0)
|
|
1348
958
|
return '';
|
|
1349
|
-
return '\x20[' +
|
|
959
|
+
return '\x20[' + _0x43ad2d[_0x2006a7(_0x5e46fe._0x2ac12f)] + _0x2006a7(0x1fc) + (_0x43ad2d[_0x2006a7(0x2aa)] > 0x1 ? 's' : '') + ':\x20' + _0x43ad2d['map'](_0x2e993a => _0x2e993a[_0x2006a7(0x235)] + _0x2006a7(0x223) + _0x2e993a['id'] + ')')[_0x2006a7(0x248)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1350
960
|
}
|
|
1351
|
-
function formatCheckMessages(
|
|
1352
|
-
const
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
961
|
+
function formatCheckMessages(_0x261a9c) {
|
|
962
|
+
const _0x3db6b3 = {
|
|
963
|
+
_0xf4a347: 0x2aa,
|
|
964
|
+
_0x1b6784: 0x27a,
|
|
965
|
+
_0x46fda0: 0x248
|
|
966
|
+
}, _0x51237d = {
|
|
967
|
+
_0x137dc8: 0x279,
|
|
968
|
+
_0x299e5e: 0x1f8,
|
|
969
|
+
_0xd621f: 0x217,
|
|
970
|
+
_0x40698a: 0x251,
|
|
971
|
+
_0x5b13f8: 0x1b4,
|
|
972
|
+
_0x3b947a: 0x1d9,
|
|
973
|
+
_0x4bac6b: 0x2d8,
|
|
974
|
+
_0x5adea2: 0x2b1
|
|
975
|
+
}, _0xaa505e = _0xd0824a;
|
|
976
|
+
if (_0x261a9c[_0xaa505e(_0x3db6b3._0xf4a347)] === 0x0)
|
|
977
|
+
return _0xaa505e(_0x3db6b3._0x1b6784);
|
|
978
|
+
return _0x261a9c['map'](_0x161d8f => {
|
|
979
|
+
const _0x3172ca = _0xaa505e, _0x4e68f2 = _0x161d8f[_0x3172ca(_0x51237d._0x137dc8)] === _0x3172ca(_0x51237d._0x299e5e) ? '\x20type=agent' : '';
|
|
980
|
+
return '[target=' + _0x161d8f[_0x3172ca(_0x51237d._0xd621f)] + _0x3172ca(_0x51237d._0x40698a) + _0x161d8f['messageId'][_0x3172ca(_0x51237d._0x5b13f8)](0x0, 0x8) + _0x3172ca(_0x51237d._0x3b947a) + toLocalTime(_0x161d8f[_0x3172ca(_0x51237d._0x4bac6b)]) + _0x4e68f2 + _0x3172ca(0x259) + _0x161d8f[_0x3172ca(_0x51237d._0x5adea2)] + ':\x20' + _0x161d8f['content'] + formatAttachmentSuffix(_0x161d8f['attachments']);
|
|
981
|
+
})[_0xaa505e(_0x3db6b3._0x46fda0)]('\x0a');
|
|
1367
982
|
}
|
|
1368
|
-
function formatHistory(
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
const _0x2a6130 = _0x3c656e, _0x452028 = _0x56638a['senderType'] === _0x2a6130(_0x111e12._0x59b059) ? _0x2a6130(0x1a1) : '';
|
|
1388
|
-
return _0x2a6130(_0x111e12._0x45bbd3) + _0x56638a[_0x2a6130(0xa4)] + '\x20msg=' + _0x56638a['messageId'] + _0x2a6130(_0x111e12._0x3a6191) + toLocalTime(_0x56638a[_0x2a6130(0x11d)]) + _0x452028 + _0x2a6130(_0x111e12._0x3f4deb) + _0x56638a[_0x2a6130(_0x111e12._0xbc957a)] + ':\x20' + _0x56638a['content'] + formatAttachmentSuffix(_0x56638a[_0x2a6130(_0x111e12._0x11172e)]);
|
|
1389
|
-
})[_0x3c656e(0xdd)]('\x0a'), _0x18b703 = _0x433e1d[_0x3c656e(0x15c)] && _0x433e1d[_0x3c656e(0x8e)] ? '\x0a\x0a---\x20' + _0x433e1d['messages'][_0x3c656e(_0x52db52._0x2683f8)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x433e1d[_0x3c656e(_0x52db52._0x327f5f)] + _0x3c656e(_0x52db52._0xf6ac30) : '';
|
|
1390
|
-
return _0x3c656e(0xfb) + _0x433e1d['channel'] + '\x20(' + _0x433e1d[_0x3c656e(0xc8)][_0x3c656e(0x1a0)] + _0x3c656e(_0x52db52._0x270f28) + _0xddfa21 + _0x18b703;
|
|
983
|
+
function formatHistory(_0x53256f) {
|
|
984
|
+
const _0x1e8296 = {
|
|
985
|
+
_0x289cab: 0x23e,
|
|
986
|
+
_0x7ed036: 0x248,
|
|
987
|
+
_0x14105e: 0x23d,
|
|
988
|
+
_0x4f7f03: 0x2b2,
|
|
989
|
+
_0x22da38: 0x2aa
|
|
990
|
+
}, _0x4195ba = {
|
|
991
|
+
_0x4bae6c: 0x279,
|
|
992
|
+
_0x16ce30: 0x216,
|
|
993
|
+
_0x5f3c68: 0x2b1
|
|
994
|
+
}, _0x214345 = _0xd0824a;
|
|
995
|
+
if (_0x53256f['messages'][_0x214345(0x2aa)] === 0x0)
|
|
996
|
+
return _0x214345(0x19e) + _0x53256f[_0x214345(_0x1e8296._0x289cab)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
997
|
+
const _0x30f4f1 = _0x53256f[_0x214345(0x23d)][_0x214345(0x1ad)](_0x2a01e7 => {
|
|
998
|
+
const _0x355eea = _0x214345, _0x29925 = _0x2a01e7[_0x355eea(_0x4195ba._0x4bae6c)] === _0x355eea(0x1f8) ? _0x355eea(0x206) : '';
|
|
999
|
+
return _0x355eea(_0x4195ba._0x16ce30) + _0x2a01e7['seq'] + '\x20msg=' + _0x2a01e7['messageId'] + '\x20time=' + toLocalTime(_0x2a01e7[_0x355eea(0x2d8)]) + _0x29925 + ']\x20@' + _0x2a01e7[_0x355eea(_0x4195ba._0x5f3c68)] + ':\x20' + _0x2a01e7[_0x355eea(0x236)] + formatAttachmentSuffix(_0x2a01e7[_0x355eea(0x267)]);
|
|
1000
|
+
})[_0x214345(_0x1e8296._0x7ed036)]('\x0a'), _0x24fe41 = _0x53256f['hasMore'] && _0x53256f[_0x214345(0x2c8)] ? '\x0a\x0a---\x20' + _0x53256f[_0x214345(_0x1e8296._0x14105e)]['length'] + _0x214345(_0x1e8296._0x4f7f03) + _0x53256f[_0x214345(0x2c8)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1001
|
+
return _0x214345(0x19e) + _0x53256f[_0x214345(0x23e)] + '\x20(' + _0x53256f[_0x214345(0x23d)][_0x214345(_0x1e8296._0x22da38)] + _0x214345(0x22a) + _0x30f4f1 + _0x24fe41;
|
|
1391
1002
|
}
|
|
1392
|
-
function formatServerDirectory(
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1003
|
+
function formatServerDirectory(_0x408393) {
|
|
1004
|
+
const _0x4337c3 = {
|
|
1005
|
+
_0x14df3d: 0x188,
|
|
1006
|
+
_0x11e3bc: 0x188,
|
|
1007
|
+
_0x2c927b: 0x1d6,
|
|
1008
|
+
_0x2e934f: 0x268,
|
|
1009
|
+
_0x5c3feb: 0x2aa,
|
|
1010
|
+
_0x2a53c4: 0x248,
|
|
1011
|
+
_0xa17b63: 0x1ad,
|
|
1012
|
+
_0x145d70: 0x248,
|
|
1013
|
+
_0x1455ab: 0x2d2,
|
|
1014
|
+
_0xfe1672: 0x248
|
|
1015
|
+
}, _0x2c6653 = _0xd0824a, _0x3d0433 = _0x408393[_0x2c6653(_0x4337c3._0x14df3d)]['length'] > 0x0 ? _0x408393[_0x2c6653(_0x4337c3._0x11e3bc)]['map'](_0x50888b => _0x50888b[_0x2c6653(0x219)] ? _0x2c6653(0x28e) + _0x50888b['name'] + _0x2c6653(0x26f) + _0x50888b[_0x2c6653(0x219)] : '-\x20#' + _0x50888b['name'])['join']('\x0a') : _0x2c6653(_0x4337c3._0x2c927b), _0x53ed89 = _0x408393[_0x2c6653(_0x4337c3._0x2e934f)][_0x2c6653(_0x4337c3._0x5c3feb)] > 0x0 ? _0x408393['agents'][_0x2c6653(0x1ad)](_0x13f29e => _0x2c6653(0x21b) + _0x13f29e['name'])[_0x2c6653(_0x4337c3._0x2a53c4)]('\x0a') : _0x2c6653(0x1d6), _0x21b414 = _0x408393[_0x2c6653(0x290)][_0x2c6653(_0x4337c3._0x5c3feb)] > 0x0 ? _0x408393['humans'][_0x2c6653(_0x4337c3._0xa17b63)](_0x562e8a => '-\x20@' + _0x562e8a[_0x2c6653(0x25d)])[_0x2c6653(_0x4337c3._0x145d70)]('\x0a') : '(none)';
|
|
1404
1016
|
return [
|
|
1405
|
-
|
|
1017
|
+
_0x2c6653(0x201) + _0x408393[_0x2c6653(_0x4337c3._0x1455ab)],
|
|
1406
1018
|
'',
|
|
1407
1019
|
'###\x20Channels',
|
|
1408
|
-
|
|
1020
|
+
_0x3d0433,
|
|
1409
1021
|
'',
|
|
1410
|
-
|
|
1411
|
-
|
|
1022
|
+
'###\x20Agents',
|
|
1023
|
+
_0x53ed89,
|
|
1412
1024
|
'',
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
][
|
|
1025
|
+
'###\x20Humans',
|
|
1026
|
+
_0x21b414
|
|
1027
|
+
][_0x2c6653(_0x4337c3._0xfe1672)]('\x0a');
|
|
1416
1028
|
}
|
|
1417
|
-
function formatUploadResult(
|
|
1418
|
-
const
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1029
|
+
function formatUploadResult(_0x19c5d3) {
|
|
1030
|
+
const _0xff19f4 = {
|
|
1031
|
+
_0xb05073: 0x235,
|
|
1032
|
+
_0x15c761: 0x212,
|
|
1033
|
+
_0x4d17e4: 0x19d,
|
|
1034
|
+
_0x28c5cd: 0x2e6,
|
|
1035
|
+
_0x1e2d45: 0x25f
|
|
1036
|
+
}, _0xb4de2b = _0xd0824a;
|
|
1037
|
+
return 'File\x20uploaded:\x20' + _0x19c5d3[_0xb4de2b(_0xff19f4._0xb05073)] + '\x20(' + (_0x19c5d3[_0xb4de2b(_0xff19f4._0x15c761)] / 0x400)[_0xb4de2b(_0xff19f4._0x4d17e4)](0x1) + _0xb4de2b(_0xff19f4._0x28c5cd) + _0x19c5d3[_0xb4de2b(_0xff19f4._0x1e2d45)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1424
1038
|
}
|
|
1425
|
-
function formatViewFileResult(
|
|
1426
|
-
const
|
|
1427
|
-
return
|
|
1039
|
+
function formatViewFileResult(_0x509769, _0x572167) {
|
|
1040
|
+
const _0x1d2f0a = { _0x4bbca3: 0x282 }, _0x50cb1f = _0xd0824a;
|
|
1041
|
+
return _0x572167 ? 'File\x20already\x20cached\x20at:\x20' + _0x509769 : _0x50cb1f(_0x1d2f0a._0x4bbca3) + _0x509769;
|
|
1428
1042
|
}
|
|
1429
|
-
function formatTaskList(
|
|
1430
|
-
const
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
},
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
return
|
|
1440
|
-
|
|
1441
|
-
const _0x5289fa = _0x44b547, _0x93ae69 = _0xc53fd3[_0x5289fa(0x9d)] == null ? _0x5289fa(0x1de) : '#' + _0xc53fd3['taskNumber'], _0x538296 = _0xc53fd3[_0x5289fa(_0x5d6f1d._0xc4ee6b)] ? '\x20message=' + _0xc53fd3['messageId'] : '', _0x2d5439 = _0x2ac6ed && _0xc53fd3[_0x5289fa(0x9d)] != null && _0x2ac6ed['has'](_0xc53fd3[_0x5289fa(0x9d)]) ? '\x20executionMode=worker' : '';
|
|
1442
|
-
return _0x93ae69 + '\x20[' + _0xc53fd3[_0x5289fa(_0x5d6f1d._0x22bb39)] + ']\x20' + _0xc53fd3['title'] + _0x538296 + _0x2d5439;
|
|
1443
|
-
})[_0x44b547(_0x4c6852._0x4ecbe7)]('\x0a');
|
|
1043
|
+
function formatTaskList(_0x4a5b2b, _0x5d9ac4) {
|
|
1044
|
+
const _0x4338c7 = {
|
|
1045
|
+
_0x3d0dfd: 0x2aa,
|
|
1046
|
+
_0x240513: 0x246,
|
|
1047
|
+
_0x119c2c: 0x1ad
|
|
1048
|
+
}, _0x5c2d9c = { _0x915f6f: 0x1ea }, _0x13f72c = _0xd0824a;
|
|
1049
|
+
if (_0x4a5b2b[_0x13f72c(_0x4338c7._0x3d0dfd)] === 0x0)
|
|
1050
|
+
return _0x13f72c(_0x4338c7._0x240513);
|
|
1051
|
+
return _0x4a5b2b[_0x13f72c(_0x4338c7._0x119c2c)](_0x69535b => {
|
|
1052
|
+
const _0x16c3f2 = _0x13f72c, _0x4e6d51 = _0x69535b['taskNumber'] == null ? '(legacy)' : '#' + _0x69535b[_0x16c3f2(0x1ea)], _0x1579db = _0x69535b[_0x16c3f2(0x23c)] ? '\x20message=' + _0x69535b['messageId'] : '', _0x181788 = _0x5d9ac4 && _0x69535b[_0x16c3f2(_0x5c2d9c._0x915f6f)] != null && _0x5d9ac4[_0x16c3f2(0x234)](_0x69535b['taskNumber']) ? _0x16c3f2(0x1d5) : '';
|
|
1053
|
+
return _0x4e6d51 + '\x20[' + _0x69535b[_0x16c3f2(0x1f0)] + ']\x20' + _0x69535b['title'] + _0x1579db + _0x181788;
|
|
1054
|
+
})[_0x13f72c(0x248)]('\x0a');
|
|
1444
1055
|
}
|
|
1445
|
-
function formatCreatedTasks(
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1453
|
-
const _0x505976 = _0x5bf8f3, _0x81b4bc = _0x5802dc[_0x505976(_0x5ab0c8._0x81a62c)] == null ? '(legacy)' : '#' + _0x5802dc[_0x505976(_0x5ab0c8._0x1e8a02)];
|
|
1454
|
-
return _0x81b4bc + '\x20' + _0x5802dc['title'] + _0x505976(0x1aa) + _0x5802dc['messageId'];
|
|
1455
|
-
})['join']('\x0a');
|
|
1056
|
+
function formatCreatedTasks(_0x482dc8) {
|
|
1057
|
+
const _0x4655ed = _0xd0824a;
|
|
1058
|
+
if (_0x482dc8[_0x4655ed(0x2aa)] === 0x0)
|
|
1059
|
+
return _0x4655ed(0x1cf);
|
|
1060
|
+
return _0x482dc8[_0x4655ed(0x1ad)](_0x50184a => {
|
|
1061
|
+
const _0x126361 = _0x4655ed, _0x3589dd = _0x50184a[_0x126361(0x1ea)] == null ? '(legacy)' : '#' + _0x50184a[_0x126361(0x1ea)];
|
|
1062
|
+
return _0x3589dd + '\x20' + _0x50184a['title'] + _0x126361(0x24d) + _0x50184a[_0x126361(0x23c)];
|
|
1063
|
+
})[_0x4655ed(0x248)]('\x0a');
|
|
1456
1064
|
}
|
|
1457
|
-
function formatClaimTaskResults(
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1065
|
+
function formatClaimTaskResults(_0x3246d6) {
|
|
1066
|
+
const _0x10fcc2 = {
|
|
1067
|
+
_0x1cbbe1: 0x2aa,
|
|
1068
|
+
_0x38cc47: 0x1f6,
|
|
1069
|
+
_0x1ebea8: 0x1ad
|
|
1070
|
+
}, _0x1f3d7f = {
|
|
1071
|
+
_0x26d9c8: 0x254,
|
|
1072
|
+
_0x5c4888: 0x1ea,
|
|
1073
|
+
_0x265efb: 0x240,
|
|
1074
|
+
_0x515b74: 0x24d,
|
|
1075
|
+
_0xc4043e: 0x23c,
|
|
1076
|
+
_0x245d24: 0x1c4,
|
|
1077
|
+
_0x54e5d5: 0x202,
|
|
1078
|
+
_0x297156: 0x2b9,
|
|
1079
|
+
_0x4e3842: 0x21f,
|
|
1080
|
+
_0x7404d7: 0x2b8,
|
|
1081
|
+
_0x1b7d3b: 0x2b8,
|
|
1082
|
+
_0x156fae: 0x25e,
|
|
1083
|
+
_0x35f754: 0x22c
|
|
1084
|
+
}, _0x62a399 = _0xd0824a;
|
|
1085
|
+
if (_0x3246d6[_0x62a399(_0x10fcc2._0x1cbbe1)] === 0x0)
|
|
1086
|
+
return _0x62a399(_0x10fcc2._0x38cc47);
|
|
1087
|
+
return _0x3246d6[_0x62a399(_0x10fcc2._0x1ebea8)](_0x1551be => {
|
|
1088
|
+
const _0x67a447 = _0x62a399;
|
|
1089
|
+
if (_0x1551be[_0x67a447(_0x1f3d7f._0x26d9c8)]) {
|
|
1090
|
+
const _0x476d5d = _0x1551be[_0x67a447(_0x1f3d7f._0x5c4888)] == null ? _0x67a447(_0x1f3d7f._0x265efb) : '#' + _0x1551be['taskNumber'], _0x47fd13 = _0x1551be[_0x67a447(0x23c)] ? _0x67a447(_0x1f3d7f._0x515b74) + _0x1551be[_0x67a447(_0x1f3d7f._0xc4043e)] : '', _0x5a0499 = _0x1551be[_0x67a447(0x1a2)] ? [
|
|
1091
|
+
'workerHandoff=true',
|
|
1092
|
+
_0x1551be[_0x67a447(_0x1f3d7f._0x245d24)] ? _0x67a447(0x29f) : null,
|
|
1093
|
+
_0x1551be[_0x67a447(_0x1f3d7f._0x54e5d5)] ? _0x67a447(0x2eb) + _0x1551be['executionMode'] : null,
|
|
1094
|
+
_0x1551be[_0x67a447(0x1d2)] ? _0x67a447(_0x1f3d7f._0x297156) + _0x1551be[_0x67a447(0x1d2)] : null,
|
|
1095
|
+
_0x1551be[_0x67a447(0x21f)] ? _0x67a447(0x262) + _0x1551be[_0x67a447(_0x1f3d7f._0x4e3842)] : null
|
|
1096
|
+
][_0x67a447(_0x1f3d7f._0x7404d7)](Boolean)[_0x67a447(0x248)]('\x20') : _0x1551be[_0x67a447(0x2b6)] ? _0x67a447(0x2bb) + _0x1551be[_0x67a447(0x2b6)] : '';
|
|
1486
1097
|
return [
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
][
|
|
1098
|
+
_0x476d5d + '\x20claimed' + _0x47fd13,
|
|
1099
|
+
_0x5a0499
|
|
1100
|
+
][_0x67a447(_0x1f3d7f._0x1b7d3b)](Boolean)['join']('\x20');
|
|
1490
1101
|
}
|
|
1491
|
-
const
|
|
1492
|
-
return
|
|
1493
|
-
})[
|
|
1102
|
+
const _0x378660 = _0x1551be[_0x67a447(0x1ea)] == null ? _0x1551be[_0x67a447(_0x1f3d7f._0xc4043e)] ?? _0x67a447(_0x1f3d7f._0x156fae) : '#' + _0x1551be[_0x67a447(0x1ea)];
|
|
1103
|
+
return _0x378660 + _0x67a447(_0x1f3d7f._0x35f754) + (_0x1551be[_0x67a447(0x25c)] ?? _0x67a447(0x293));
|
|
1104
|
+
})[_0x62a399(0x248)]('\x0a');
|
|
1494
1105
|
}
|
|
1495
|
-
function formatUnclaimTaskResult(
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
_0x19e4d6: 0x154
|
|
1499
|
-
}, _0x5e135d = _0x174aa9, _0x26fb49 = _0x587af0['taskNumber'] == null ? _0x5e135d(_0x1530b7._0xb5580c) : '#' + _0x587af0[_0x5e135d(0x9d)];
|
|
1500
|
-
return _0x26fb49 + _0x5e135d(_0x1530b7._0x19e4d6) + _0x587af0[_0x5e135d(0x1e6)];
|
|
1106
|
+
function formatUnclaimTaskResult(_0x3f7efb) {
|
|
1107
|
+
const _0x4eb811 = { _0x446257: 0x1f0 }, _0x2247b0 = _0xd0824a, _0x427231 = _0x3f7efb[_0x2247b0(0x1ea)] == null ? _0x2247b0(0x240) : '#' + _0x3f7efb['taskNumber'];
|
|
1108
|
+
return _0x427231 + '\x20status=' + _0x3f7efb[_0x2247b0(_0x4eb811._0x446257)];
|
|
1501
1109
|
}
|
|
1502
|
-
function formatUpdateTaskStatusResult(
|
|
1503
|
-
const
|
|
1504
|
-
|
|
1505
|
-
_0x56d508: 0x1de
|
|
1506
|
-
}, _0x542f98 = _0x174aa9, _0x1d884e = _0x34ccd7[_0x542f98(_0x3c95cf._0x5d9763)] == null ? _0x542f98(_0x3c95cf._0x56d508) : '#' + _0x34ccd7[_0x542f98(0x9d)];
|
|
1507
|
-
return _0x1d884e + '\x20status=' + _0x34ccd7[_0x542f98(0x1e6)];
|
|
1110
|
+
function formatUpdateTaskStatusResult(_0x52725e) {
|
|
1111
|
+
const _0x10c550 = { _0x3051f2: 0x21d }, _0x27cf3e = _0xd0824a, _0x3c0bf1 = _0x52725e[_0x27cf3e(0x1ea)] == null ? '(legacy)' : '#' + _0x52725e[_0x27cf3e(0x1ea)];
|
|
1112
|
+
return _0x3c0bf1 + _0x27cf3e(_0x10c550._0x3051f2) + _0x52725e['status'];
|
|
1508
1113
|
}
|
|
1509
1114
|
function getChatBridgeToolDefinitions() {
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
}, _0x38b3a1 = _0x174aa9;
|
|
1115
|
+
const _0x1b648f = {
|
|
1116
|
+
_0x3a9aad: 0x258,
|
|
1117
|
+
_0x1f2595: 0x270,
|
|
1118
|
+
_0x1dcc60: 0x29a,
|
|
1119
|
+
_0x24fd7e: 0x2b7
|
|
1120
|
+
}, _0x3495a5 = _0xd0824a;
|
|
1517
1121
|
return [
|
|
1518
|
-
{ 'name':
|
|
1519
|
-
{ 'name':
|
|
1520
|
-
{ 'name':
|
|
1521
|
-
{ 'name':
|
|
1522
|
-
{ 'name':
|
|
1122
|
+
{ 'name': _0x3495a5(_0x1b648f._0x3a9aad) },
|
|
1123
|
+
{ 'name': _0x3495a5(0x1db) },
|
|
1124
|
+
{ 'name': _0x3495a5(_0x1b648f._0x1f2595) },
|
|
1125
|
+
{ 'name': _0x3495a5(0x229) },
|
|
1126
|
+
{ 'name': _0x3495a5(_0x1b648f._0x1dcc60) },
|
|
1523
1127
|
{ 'name': 'view_file' },
|
|
1524
|
-
{ 'name':
|
|
1525
|
-
{ 'name':
|
|
1526
|
-
{ 'name':
|
|
1527
|
-
{ 'name':
|
|
1528
|
-
{ 'name':
|
|
1529
|
-
{ 'name':
|
|
1530
|
-
{ 'name':
|
|
1531
|
-
{ 'name':
|
|
1532
|
-
{ 'name':
|
|
1533
|
-
{ 'name':
|
|
1128
|
+
{ 'name': 'list_tasks' },
|
|
1129
|
+
{ 'name': 'create_tasks' },
|
|
1130
|
+
{ 'name': 'claim_tasks' },
|
|
1131
|
+
{ 'name': _0x3495a5(0x242) },
|
|
1132
|
+
{ 'name': _0x3495a5(0x2cd) },
|
|
1133
|
+
{ 'name': _0x3495a5(0x1bb) },
|
|
1134
|
+
{ 'name': 'get_worker_result' },
|
|
1135
|
+
{ 'name': 'finish_worker' },
|
|
1136
|
+
{ 'name': _0x3495a5(0x2c6) },
|
|
1137
|
+
{ 'name': _0x3495a5(_0x1b648f._0x24fd7e) }
|
|
1138
|
+
];
|
|
1139
|
+
}
|
|
1140
|
+
function createChatBridgeHandlers(_0x3b16be) {
|
|
1141
|
+
const _0x199cdc = {
|
|
1142
|
+
_0x415e6b: 0x186,
|
|
1143
|
+
_0x43b3df: 0x2ee,
|
|
1144
|
+
_0x23e3f2: 0x17d,
|
|
1145
|
+
_0x14034b: 0x227,
|
|
1146
|
+
_0x2fdf72: 0x209,
|
|
1147
|
+
_0x2c5c3e: 0x277,
|
|
1148
|
+
_0x1563d8: 0x25c
|
|
1149
|
+
}, _0x191d10 = {
|
|
1150
|
+
_0x59b164: 0x29d,
|
|
1151
|
+
_0x5386c6: 0x221,
|
|
1152
|
+
_0x113b88: 0x1be,
|
|
1153
|
+
_0x4baf39: 0x186,
|
|
1154
|
+
_0x37d63a: 0x2ee,
|
|
1155
|
+
_0x5b6a0e: 0x227,
|
|
1156
|
+
_0x1ef272: 0x209,
|
|
1157
|
+
_0x5956f2: 0x1d8,
|
|
1158
|
+
_0x46ddc2: 0x1af,
|
|
1159
|
+
_0x1cd1b8: 0x2d7,
|
|
1160
|
+
_0x321c3d: 0x2b3
|
|
1161
|
+
}, _0x249b15 = {
|
|
1162
|
+
_0x4ab51a: 0x29d,
|
|
1163
|
+
_0xc2cd0f: 0x20b,
|
|
1164
|
+
_0x55b462: 0x29d,
|
|
1165
|
+
_0x5bfb35: 0x2f0,
|
|
1166
|
+
_0x24e86a: 0x186,
|
|
1167
|
+
_0x49ece5: 0x227,
|
|
1168
|
+
_0x5a858b: 0x199,
|
|
1169
|
+
_0xfc0d4b: 0x1df,
|
|
1170
|
+
_0x2fd134: 0x1d8,
|
|
1171
|
+
_0x50b566: 0x2d7
|
|
1172
|
+
}, _0x683e5b = {
|
|
1173
|
+
_0x46f343: 0x1b3,
|
|
1174
|
+
_0x1ec782: 0x181,
|
|
1175
|
+
_0x13fd93: 0x1eb,
|
|
1176
|
+
_0x62404e: 0x17d
|
|
1177
|
+
}, _0x2d5fb0 = {
|
|
1178
|
+
_0x234f70: 0x29d,
|
|
1179
|
+
_0x57001d: 0x20b,
|
|
1180
|
+
_0x59daa4: 0x29d,
|
|
1181
|
+
_0x40cd44: 0x1c5,
|
|
1182
|
+
_0x2db0ea: 0x227,
|
|
1183
|
+
_0x882054: 0x2d7
|
|
1184
|
+
}, _0x6e5cdc = {
|
|
1185
|
+
_0x2b5d4c: 0x2de,
|
|
1186
|
+
_0x30ee35: 0x1ca,
|
|
1187
|
+
_0xaa92f0: 0x291,
|
|
1188
|
+
_0x376364: 0x189,
|
|
1189
|
+
_0x361871: 0x24a,
|
|
1190
|
+
_0x11f315: 0x2bd,
|
|
1191
|
+
_0x2335a8: 0x1fa
|
|
1192
|
+
}, _0x4b6d38 = {
|
|
1193
|
+
_0x1f1e0b: 0x299,
|
|
1194
|
+
_0x40d842: 0x28f,
|
|
1195
|
+
_0x4cc7e7: 0x1e3,
|
|
1196
|
+
_0xba26cd: 0x23e
|
|
1197
|
+
}, _0x2cf5d0 = { _0x437005: 0x291 }, _0x37ccff = { _0x14c313: 0x1ad }, _0x5df220 = {
|
|
1198
|
+
_0x194e72: 0x23c,
|
|
1199
|
+
_0x208f95: 0x1a0
|
|
1200
|
+
}, _0x112db9 = {
|
|
1201
|
+
_0x4473e8: 0x291,
|
|
1202
|
+
_0x461a71: 0x2db,
|
|
1203
|
+
_0x4320a7: 0x18d
|
|
1204
|
+
}, _0x2376df = {
|
|
1205
|
+
_0x4dfe60: 0x29d,
|
|
1206
|
+
_0x2c89ba: 0x221,
|
|
1207
|
+
_0x56b39d: 0x18e,
|
|
1208
|
+
_0x40b3ee: 0x221,
|
|
1209
|
+
_0x5043a6: 0x23e,
|
|
1210
|
+
_0x5ddfdb: 0x1f0,
|
|
1211
|
+
_0x14bc9b: 0x2e7,
|
|
1212
|
+
_0x2b27c4: 0x2c2,
|
|
1213
|
+
_0x32312a: 0x1b4,
|
|
1214
|
+
_0x455c08: 0x2aa,
|
|
1215
|
+
_0x4cc3ec: 0x18d,
|
|
1216
|
+
_0x56c39c: 0x2ec,
|
|
1217
|
+
_0x3c073d: 0x1ea
|
|
1218
|
+
}, _0x1ee0b4 = {
|
|
1219
|
+
_0x3320f0: 0x291,
|
|
1220
|
+
_0x1b7c91: 0x1bc,
|
|
1221
|
+
_0x3de43c: 0x2b8
|
|
1222
|
+
}, _0x544954 = {
|
|
1223
|
+
_0x2913bb: 0x231,
|
|
1224
|
+
_0x554c14: 0x1da,
|
|
1225
|
+
_0x41d9e2: 0x240,
|
|
1226
|
+
_0x29ff84: 0x2dd,
|
|
1227
|
+
_0x5899c3: 0x1b4,
|
|
1228
|
+
_0x172048: 0x196,
|
|
1229
|
+
_0x492dfc: 0x236,
|
|
1230
|
+
_0x4e068a: 0x1e9,
|
|
1231
|
+
_0x16f8f8: 0x226,
|
|
1232
|
+
_0x72f9: 0x186,
|
|
1233
|
+
_0x515638: 0x2ee,
|
|
1234
|
+
_0x1987c3: 0x209,
|
|
1235
|
+
_0x58bc21: 0x1d8,
|
|
1236
|
+
_0x4bdab6: 0x193,
|
|
1237
|
+
_0x1f7913: 0x2af,
|
|
1238
|
+
_0x3f712a: 0x1f9,
|
|
1239
|
+
_0x1d3156: 0x248,
|
|
1240
|
+
_0x35b5ac: 0x1d4,
|
|
1241
|
+
_0x462314: 0x217,
|
|
1242
|
+
_0x1ce093: 0x2f8,
|
|
1243
|
+
_0x3e075f: 0x217
|
|
1244
|
+
}, _0x3d37a3 = {
|
|
1245
|
+
_0xba4771: 0x221,
|
|
1246
|
+
_0x1661a5: 0x231,
|
|
1247
|
+
_0x350800: 0x23e,
|
|
1248
|
+
_0x59aa5a: 0x1a0,
|
|
1249
|
+
_0x1aa44d: 0x183,
|
|
1250
|
+
_0x1e1ca0: 0x183,
|
|
1251
|
+
_0x3358f7: 0x291,
|
|
1252
|
+
_0x2593f4: 0x224,
|
|
1253
|
+
_0x1ae347: 0x2ec,
|
|
1254
|
+
_0x4e1afd: 0x240,
|
|
1255
|
+
_0x299ccc: 0x23c,
|
|
1256
|
+
_0x4fa208: 0x1d9,
|
|
1257
|
+
_0x50a651: 0x28a,
|
|
1258
|
+
_0xf6caa9: 0x1ff,
|
|
1259
|
+
_0x4534be: 0x1ea,
|
|
1260
|
+
_0x591375: 0x2df,
|
|
1261
|
+
_0x38a634: 0x2cb,
|
|
1262
|
+
_0x2762ff: 0x2f6,
|
|
1263
|
+
_0x36bc50: 0x2f6
|
|
1264
|
+
};
|
|
1265
|
+
async function _0x3138ed(_0xc4df84) {
|
|
1266
|
+
const _0x525fe8 = _0x5931;
|
|
1267
|
+
if (!_0x3b16be['daemonLocalUrl'] || !_0x3b16be[_0x525fe8(_0x3d37a3._0xba4771)] || _0x3b16be[_0x525fe8(_0x3d37a3._0x1661a5)] || _0x3b16be['workerModeEnabled'] !== !![])
|
|
1268
|
+
return null;
|
|
1269
|
+
const _0x4fcacf = parseTarget(_0xc4df84[_0x525fe8(_0x3d37a3._0x350800)]);
|
|
1270
|
+
if (_0x4fcacf[_0x525fe8(0x1e1)] !== 'channel')
|
|
1271
|
+
return null;
|
|
1272
|
+
const _0x45a9e9 = _0xc4df84[_0x525fe8(_0x3d37a3._0x59aa5a)] != null ? _0x4fcacf[_0x525fe8(_0x3d37a3._0x1aa44d)] + ':t' + _0xc4df84[_0x525fe8(0x1a0)] : _0x4fcacf[_0x525fe8(_0x3d37a3._0x1e1ca0)] + ':' + _0xc4df84[_0x525fe8(0x23c)];
|
|
1273
|
+
let _0x2c6ba5;
|
|
1274
|
+
try {
|
|
1275
|
+
const _0x2182a5 = await _0x3b16be[_0x525fe8(_0x3d37a3._0x3358f7)][_0x525fe8(_0x3d37a3._0x2593f4)]({
|
|
1276
|
+
'channel': _0x45a9e9,
|
|
1277
|
+
'limit': 0x14
|
|
1278
|
+
});
|
|
1279
|
+
_0x2c6ba5 = _0x2182a5['messages'][_0x525fe8(_0x3d37a3._0x1ae347)](_0x343cd2 => _0x343cd2[_0x525fe8(0x23c)] === _0xc4df84[_0x525fe8(0x23c)]);
|
|
1280
|
+
} catch {
|
|
1281
|
+
_0x2c6ba5 = void 0x0;
|
|
1282
|
+
}
|
|
1283
|
+
const _0xc8f352 = _0xc4df84[_0x525fe8(0x1ea)] == null ? _0x525fe8(_0x3d37a3._0x4e1afd) : '#' + _0xc4df84[_0x525fe8(0x1ea)], _0x370c10 = [
|
|
1284
|
+
'[target=' + _0x45a9e9 + _0x525fe8(0x251) + _0xc4df84[_0x525fe8(_0x3d37a3._0x299ccc)]['slice'](0x0, 0x8) + _0x525fe8(_0x3d37a3._0x4fa208) + new Date()['toISOString']() + ']\x20@system:\x20[claim-handoff]\x20' + _0xc8f352 + _0x525fe8(0x253),
|
|
1285
|
+
'',
|
|
1286
|
+
_0x2c6ba5 ? _0x525fe8(_0x3d37a3._0x50a651) + _0x2c6ba5[_0x525fe8(0x236)] : 'Root\x20task\x20message\x20id:\x20' + _0xc4df84[_0x525fe8(0x23c)],
|
|
1287
|
+
'',
|
|
1288
|
+
'Thread\x20target:\x20' + _0x45a9e9,
|
|
1289
|
+
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1290
|
+
][_0x525fe8(0x248)]('\x0a'), _0x207be6 = await fetch(_0x3b16be['daemonLocalUrl'] + _0x525fe8(0x23b), {
|
|
1291
|
+
'method': 'POST',
|
|
1292
|
+
'headers': { 'Content-Type': _0x525fe8(0x2ee) },
|
|
1293
|
+
'body': JSON['stringify']({
|
|
1294
|
+
'agent_id': _0x3b16be['agentId'],
|
|
1295
|
+
'thread_target': _0x45a9e9,
|
|
1296
|
+
'spawn_packet': {
|
|
1297
|
+
'replyTarget': _0x45a9e9,
|
|
1298
|
+
..._0xc4df84[_0x525fe8(0x1ff)] ? { 'taskId': _0xc4df84[_0x525fe8(_0x3d37a3._0xf6caa9)] } : _0xc4df84[_0x525fe8(_0x3d37a3._0x4534be)] != null ? { 'taskId': _0x525fe8(_0x3d37a3._0x591375) + _0xc4df84['taskNumber'] } : {}
|
|
1299
|
+
},
|
|
1300
|
+
'payload': {
|
|
1301
|
+
'mode': _0x525fe8(0x237),
|
|
1302
|
+
'text': _0x370c10
|
|
1303
|
+
}
|
|
1304
|
+
})
|
|
1305
|
+
}), _0x54adc4 = await _0x207be6['json']();
|
|
1306
|
+
if (!_0x54adc4['ok'])
|
|
1307
|
+
throw new Error(_0x54adc4[_0x525fe8(0x1d8)] ?? _0x525fe8(_0x3d37a3._0x38a634));
|
|
1308
|
+
return {
|
|
1309
|
+
'stopMain': !![],
|
|
1310
|
+
'threadTarget': _0x45a9e9,
|
|
1311
|
+
'workerDisposition': _0x54adc4[_0x525fe8(0x1f9)] === _0x525fe8(_0x3d37a3._0x2762ff) ? _0x525fe8(_0x3d37a3._0x36bc50) : _0x525fe8(0x21c),
|
|
1312
|
+
'workerHandoff': !![],
|
|
1313
|
+
'workerSessionId': _0x54adc4['worker_session_id'] ?? '',
|
|
1314
|
+
'executionMode': 'worker'
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
async function _0x35e251() {
|
|
1318
|
+
const _0x366968 = _0x5931;
|
|
1319
|
+
if (!_0x3b16be['daemonLocalUrl'] || !_0x3b16be['agentId'] || _0x3b16be[_0x366968(0x231)])
|
|
1320
|
+
return null;
|
|
1321
|
+
try {
|
|
1322
|
+
const _0x59bb19 = await fetch(_0x3b16be[_0x366968(0x29d)] + _0x366968(0x18e) + encodeURIComponent(_0x3b16be[_0x366968(0x221)])), _0x868817 = await _0x59bb19['json']();
|
|
1323
|
+
if (!_0x868817['ok'])
|
|
1324
|
+
return null;
|
|
1325
|
+
const _0x47b0e8 = new Set();
|
|
1326
|
+
for (const _0x118680 of _0x868817[_0x366968(0x26b)]) {
|
|
1327
|
+
_0x118680[_0x366968(0x1f0)] !== 'destroyed' && _0x118680[_0x366968(0x2e7)] && _0x47b0e8['add'](_0x118680['thread_target']);
|
|
1328
|
+
}
|
|
1329
|
+
return _0x47b0e8[_0x366968(0x1b1)] > 0x0 ? _0x47b0e8 : null;
|
|
1330
|
+
} catch {
|
|
1331
|
+
return null;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
return {
|
|
1335
|
+
async 'send_message'(_0xf2855a) {
|
|
1336
|
+
const _0x1c7aa3 = _0x5931;
|
|
1337
|
+
if (!_0x3b16be[_0x1c7aa3(_0x544954._0x2913bb)] && _0x3b16be[_0x1c7aa3(0x1f2)] && _0x3b16be['daemonLocalUrl'] && _0x3b16be[_0x1c7aa3(0x221)]) {
|
|
1338
|
+
const _0x18a123 = await _0x3b16be[_0x1c7aa3(0x291)]['resolveTarget'](_0xf2855a['target']);
|
|
1339
|
+
if (_0x18a123[_0x1c7aa3(_0x544954._0x554c14)] && _0x18a123['threadId']) {
|
|
1340
|
+
const _0x4e57c7 = _0x18a123[_0x1c7aa3(0x1da)]['taskNumber'] != null ? '#' + _0x18a123['task'][_0x1c7aa3(0x1ea)] : _0x1c7aa3(_0x544954._0x41d9e2), _0x2edaf9 = _0x18a123[_0x1c7aa3(0x1a0)] != null ? _0x18a123[_0x1c7aa3(0x217)] + ':t' + _0x18a123[_0x1c7aa3(0x1a0)] : _0x18a123[_0x1c7aa3(0x217)] + ':' + _0x18a123[_0x1c7aa3(_0x544954._0x29ff84)][_0x1c7aa3(_0x544954._0x5899c3)](0x0, 0x8), _0x1c6214 = [
|
|
1341
|
+
_0x1c7aa3(_0x544954._0x172048) + _0x2edaf9 + _0x1c7aa3(0x1fd) + new Date()['toISOString']() + _0x1c7aa3(0x18f),
|
|
1342
|
+
'',
|
|
1343
|
+
_0x1c7aa3(0x243) + _0xf2855a[_0x1c7aa3(_0x544954._0x492dfc)],
|
|
1344
|
+
_0x1c7aa3(_0x544954._0x4e068a) + _0x4e57c7 + '\x20(' + _0x18a123[_0x1c7aa3(0x1da)][_0x1c7aa3(0x1ff)] + ')',
|
|
1345
|
+
'Thread\x20target:\x20' + _0x2edaf9,
|
|
1346
|
+
_0x1c7aa3(_0x544954._0x16f8f8)
|
|
1347
|
+
]['join']('\x0a'), _0x2ef2da = await fetch(_0x3b16be['daemonLocalUrl'] + '/workers/deliver', {
|
|
1348
|
+
'method': _0x1c7aa3(_0x544954._0x72f9),
|
|
1349
|
+
'headers': { 'Content-Type': _0x1c7aa3(_0x544954._0x515638) },
|
|
1350
|
+
'body': JSON['stringify']({
|
|
1351
|
+
'agent_id': _0x3b16be[_0x1c7aa3(0x221)],
|
|
1352
|
+
'thread_target': _0x2edaf9,
|
|
1353
|
+
'spawn_packet': {
|
|
1354
|
+
'replyTarget': _0x2edaf9,
|
|
1355
|
+
'taskId': _0x18a123[_0x1c7aa3(0x1da)][_0x1c7aa3(0x1ff)]
|
|
1356
|
+
},
|
|
1357
|
+
'payload': {
|
|
1358
|
+
'mode': _0x1c7aa3(0x237),
|
|
1359
|
+
'text': _0x1c6214
|
|
1360
|
+
}
|
|
1361
|
+
})
|
|
1362
|
+
}), _0x5b85e6 = await _0x2ef2da[_0x1c7aa3(_0x544954._0x1987c3)]();
|
|
1363
|
+
if (!_0x5b85e6['ok'])
|
|
1364
|
+
throw new Error(_0x5b85e6[_0x1c7aa3(_0x544954._0x58bc21)] ?? _0x1c7aa3(_0x544954._0x4bdab6));
|
|
1365
|
+
return [
|
|
1366
|
+
_0x1c7aa3(0x1cb) + _0x4e57c7 + '\x20in\x20' + _0x2edaf9 + '.',
|
|
1367
|
+
'stopMain=true\x20executionMode=worker',
|
|
1368
|
+
_0x1c7aa3(_0x544954._0x1f7913) + (_0x5b85e6[_0x1c7aa3(_0x544954._0x3f712a)] === 'queued' ? _0x1c7aa3(0x2f6) : 'started') + '.',
|
|
1369
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1370
|
+
][_0x1c7aa3(_0x544954._0x1d3156)]('\x20');
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
const _0x4f52b6 = await _0x3b16be['client'][_0x1c7aa3(0x1ee)]({
|
|
1374
|
+
'attachmentIds': _0xf2855a[_0x1c7aa3(_0x544954._0x35b5ac)],
|
|
1375
|
+
'content': _0xf2855a[_0x1c7aa3(0x236)],
|
|
1376
|
+
'target': _0xf2855a[_0x1c7aa3(_0x544954._0x462314)],
|
|
1377
|
+
'visibility': _0xf2855a['visibility']
|
|
1378
|
+
});
|
|
1379
|
+
return _0x1c7aa3(_0x544954._0x1ce093) + _0xf2855a[_0x1c7aa3(_0x544954._0x3e075f)] + '.\x20Message\x20ID:\x20' + _0x4f52b6[_0x1c7aa3(0x23c)];
|
|
1380
|
+
},
|
|
1381
|
+
async 'check_messages'() {
|
|
1382
|
+
const _0x4601cc = _0x5931, _0x165415 = await _0x3b16be[_0x4601cc(_0x1ee0b4._0x3320f0)][_0x4601cc(_0x1ee0b4._0x1b7c91)]();
|
|
1383
|
+
if (!_0x3b16be[_0x4601cc(0x231)]) {
|
|
1384
|
+
const _0x10e7cd = await _0x35e251();
|
|
1385
|
+
if (_0x10e7cd)
|
|
1386
|
+
return formatCheckMessages(_0x165415['messages'][_0x4601cc(_0x1ee0b4._0x3de43c)](_0x37e48b => !_0x10e7cd['has'](_0x37e48b[_0x4601cc(0x217)])));
|
|
1387
|
+
}
|
|
1388
|
+
return formatCheckMessages(_0x165415[_0x4601cc(0x23d)]);
|
|
1389
|
+
},
|
|
1390
|
+
async 'read_history'(_0x5e04a2) {
|
|
1391
|
+
const _0x1708bf = _0x5931, _0x10e86c = await _0x3b16be['client'][_0x1708bf(0x224)](_0x5e04a2);
|
|
1392
|
+
return formatHistory(_0x10e86c);
|
|
1393
|
+
},
|
|
1394
|
+
async 'list_server'() {
|
|
1395
|
+
const _0x3fd7cb = _0x5931, _0x47d7f1 = await _0x3b16be['client'][_0x3fd7cb(0x1e5)]();
|
|
1396
|
+
return formatServerDirectory(_0x47d7f1);
|
|
1397
|
+
},
|
|
1398
|
+
async 'list_tasks'(_0x13a7ca) {
|
|
1399
|
+
const _0x2078dd = _0x5931, _0x518552 = await _0x3b16be[_0x2078dd(0x291)][_0x2078dd(0x1a5)](_0x13a7ca);
|
|
1400
|
+
let _0x2ccd51;
|
|
1401
|
+
if (_0x3b16be[_0x2078dd(_0x2376df._0x4dfe60)] && _0x3b16be[_0x2078dd(_0x2376df._0x2c89ba)])
|
|
1402
|
+
try {
|
|
1403
|
+
const _0x586368 = await fetch(_0x3b16be['daemonLocalUrl'] + _0x2078dd(_0x2376df._0x56b39d) + encodeURIComponent(_0x3b16be[_0x2078dd(_0x2376df._0x40b3ee)])), _0x14cfe0 = await _0x586368[_0x2078dd(0x209)]();
|
|
1404
|
+
if (_0x14cfe0['ok']) {
|
|
1405
|
+
const _0x19e20b = _0x13a7ca[_0x2078dd(_0x2376df._0x5043a6)] + ':';
|
|
1406
|
+
_0x2ccd51 = new Set();
|
|
1407
|
+
for (const _0x51fd20 of _0x14cfe0['workers']) {
|
|
1408
|
+
if (_0x51fd20[_0x2078dd(_0x2376df._0x5ddfdb)] === _0x2078dd(0x2d0))
|
|
1409
|
+
continue;
|
|
1410
|
+
if (_0x51fd20[_0x2078dd(_0x2376df._0x14bc9b)]?.[_0x2078dd(_0x2376df._0x2b27c4)](_0x19e20b)) {
|
|
1411
|
+
const _0xce7845 = _0x51fd20['thread_target'][_0x2078dd(_0x2376df._0x32312a)](_0x19e20b[_0x2078dd(_0x2376df._0x455c08)]), _0x37c0f7 = _0x518552[_0x2078dd(_0x2376df._0x4cc3ec)][_0x2078dd(_0x2376df._0x56c39c)](_0x40499f => _0x40499f[_0x2078dd(0x23c)]?.[_0x2078dd(0x2c2)](_0xce7845) === !![]);
|
|
1412
|
+
if (_0x37c0f7?.[_0x2078dd(_0x2376df._0x3c073d)] != null) {
|
|
1413
|
+
_0x2ccd51['add'](_0x37c0f7[_0x2078dd(_0x2376df._0x3c073d)]);
|
|
1414
|
+
continue;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
if (_0x51fd20[_0x2078dd(0x182)]) {
|
|
1418
|
+
const _0x4bd9f2 = _0x518552[_0x2078dd(0x18d)][_0x2078dd(_0x2376df._0x56c39c)](_0x292b43 => _0x292b43[_0x2078dd(0x1ff)] === _0x51fd20[_0x2078dd(0x182)]);
|
|
1419
|
+
_0x4bd9f2?.['taskNumber'] != null && _0x2ccd51[_0x2078dd(0x274)](_0x4bd9f2['taskNumber']);
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
} catch {
|
|
1424
|
+
}
|
|
1425
|
+
return formatTaskList(_0x518552[_0x2078dd(0x18d)], _0x2ccd51);
|
|
1426
|
+
},
|
|
1427
|
+
async 'create_tasks'(_0xe3129b) {
|
|
1428
|
+
const _0x27cfb7 = _0x5931, _0x154eef = await _0x3b16be[_0x27cfb7(_0x112db9._0x4473e8)][_0x27cfb7(_0x112db9._0x461a71)](_0xe3129b);
|
|
1429
|
+
return formatCreatedTasks(_0x154eef[_0x27cfb7(_0x112db9._0x4320a7)]);
|
|
1430
|
+
},
|
|
1431
|
+
async 'claim_tasks'(_0x19d573) {
|
|
1432
|
+
const _0x34e280 = _0x5931, _0x2235c0 = await _0x3b16be['client'][_0x34e280(0x292)](_0x19d573), _0x976403 = await Promise[_0x34e280(0x191)](_0x2235c0[_0x34e280(0x1ec)][_0x34e280(_0x37ccff._0x14c313)](async _0x58d214 => {
|
|
1433
|
+
const _0x35b543 = _0x34e280;
|
|
1434
|
+
if (!_0x58d214[_0x35b543(0x254)] || !_0x58d214[_0x35b543(_0x5df220._0x194e72)])
|
|
1435
|
+
return _0x58d214;
|
|
1436
|
+
try {
|
|
1437
|
+
const _0x4e98e1 = await _0x3138ed({
|
|
1438
|
+
'channel': _0x19d573[_0x35b543(0x23e)],
|
|
1439
|
+
'messageId': _0x58d214['messageId'],
|
|
1440
|
+
'taskId': _0x58d214[_0x35b543(0x1ff)],
|
|
1441
|
+
'taskNumber': _0x58d214['taskNumber'],
|
|
1442
|
+
'threadNumber': _0x58d214[_0x35b543(_0x5df220._0x208f95)]
|
|
1443
|
+
});
|
|
1444
|
+
return _0x4e98e1 ? {
|
|
1445
|
+
..._0x58d214,
|
|
1446
|
+
..._0x4e98e1
|
|
1447
|
+
} : _0x58d214;
|
|
1448
|
+
} catch (_0x5ac786) {
|
|
1449
|
+
return {
|
|
1450
|
+
..._0x58d214,
|
|
1451
|
+
'workerHandoffError': _0x5ac786 instanceof Error ? _0x5ac786[_0x35b543(0x281)] : _0x35b543(0x2cb)
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
}));
|
|
1455
|
+
return formatClaimTaskResults(_0x976403);
|
|
1456
|
+
},
|
|
1457
|
+
async 'unclaim_task'(_0x1f9c4a) {
|
|
1458
|
+
const _0x593ce8 = await _0x3b16be['client']['unclaimTask'](_0x1f9c4a);
|
|
1459
|
+
return formatUnclaimTaskResult(_0x593ce8);
|
|
1460
|
+
},
|
|
1461
|
+
async 'update_task_status'(_0x5ddfc4) {
|
|
1462
|
+
const _0x518fc8 = _0x5931, _0x1d5dbb = await _0x3b16be[_0x518fc8(_0x2cf5d0._0x437005)][_0x518fc8(0x20f)](_0x5ddfc4);
|
|
1463
|
+
return formatUpdateTaskStatusResult(_0x1d5dbb);
|
|
1464
|
+
},
|
|
1465
|
+
async 'upload_file'(_0x40c509) {
|
|
1466
|
+
const _0x47ca8f = _0x5931, _0x4572c9 = await _0x3b16be[_0x47ca8f(_0x4b6d38._0x1f1e0b)](_0x40c509[_0x47ca8f(_0x4b6d38._0x40d842)]), {
|
|
1467
|
+
sizeBytes: _0x42c6ba,
|
|
1468
|
+
..._0x1818a0
|
|
1469
|
+
} = _0x4572c9, _0x3d52ae = await _0x3b16be['client'][_0x47ca8f(_0x4b6d38._0x4cc7e7)]({
|
|
1470
|
+
'channel': _0x40c509[_0x47ca8f(_0x4b6d38._0xba26cd)],
|
|
1471
|
+
..._0x1818a0
|
|
1472
|
+
});
|
|
1473
|
+
return formatUploadResult(_0x3d52ae);
|
|
1474
|
+
},
|
|
1475
|
+
async 'view_file'(_0x486e3d) {
|
|
1476
|
+
const _0x58cf62 = _0x5931, _0x5b38b1 = await _0x3b16be[_0x58cf62(_0x6e5cdc._0x2b5d4c)][_0x58cf62(_0x6e5cdc._0x30ee35)](_0x486e3d['attachment_id']);
|
|
1477
|
+
if (_0x5b38b1)
|
|
1478
|
+
return formatViewFileResult(_0x5b38b1, !![]);
|
|
1479
|
+
const _0x524453 = await _0x3b16be[_0x58cf62(_0x6e5cdc._0xaa92f0)][_0x58cf62(_0x6e5cdc._0x376364)](_0x486e3d[_0x58cf62(0x2bd)]), _0x3acc90 = await _0x3b16be[_0x58cf62(_0x6e5cdc._0x2b5d4c)][_0x58cf62(_0x6e5cdc._0x361871)]({
|
|
1480
|
+
'attachmentId': _0x486e3d[_0x58cf62(_0x6e5cdc._0x11f315)],
|
|
1481
|
+
'contentType': _0x524453[_0x58cf62(0x20e)],
|
|
1482
|
+
'data': _0x524453[_0x58cf62(_0x6e5cdc._0x2335a8)],
|
|
1483
|
+
'originalFilename': _0x524453[_0x58cf62(0x220)]
|
|
1484
|
+
});
|
|
1485
|
+
return formatViewFileResult(_0x3acc90, ![]);
|
|
1486
|
+
},
|
|
1487
|
+
async 'get_worker_status'(_0x4ca5bc) {
|
|
1488
|
+
const _0x52c7ce = _0x5931;
|
|
1489
|
+
if (!_0x3b16be[_0x52c7ce(_0x2d5fb0._0x234f70)])
|
|
1490
|
+
return _0x52c7ce(_0x2d5fb0._0x57001d);
|
|
1491
|
+
const _0x2fe21a = await fetch(_0x3b16be[_0x52c7ce(_0x2d5fb0._0x59daa4)] + _0x52c7ce(_0x2d5fb0._0x40cd44) + encodeURIComponent(_0x4ca5bc[_0x52c7ce(0x227)])), _0x2498da = await _0x2fe21a['json']();
|
|
1492
|
+
if (!_0x2498da['ok'])
|
|
1493
|
+
return _0x52c7ce(0x2d7) + _0x4ca5bc[_0x52c7ce(_0x2d5fb0._0x2db0ea)] + _0x52c7ce(0x18c);
|
|
1494
|
+
return _0x52c7ce(_0x2d5fb0._0x882054) + _0x4ca5bc['work_key'] + '\x22:\x20status=' + _0x2498da[_0x52c7ce(0x1f0)];
|
|
1495
|
+
},
|
|
1496
|
+
async 'get_worker_result'(_0x33ec38) {
|
|
1497
|
+
const _0x52b80f = _0x5931;
|
|
1498
|
+
if (!_0x3b16be[_0x52b80f(0x29d)])
|
|
1499
|
+
return 'Worker\x20features\x20not\x20available';
|
|
1500
|
+
const _0x2d3ea7 = await fetch(_0x3b16be[_0x52b80f(0x29d)] + _0x52b80f(_0x683e5b._0x46f343) + encodeURIComponent(_0x33ec38[_0x52b80f(0x227)])), _0x5befcc = await _0x2d3ea7[_0x52b80f(0x209)]();
|
|
1501
|
+
if (!_0x5befcc[_0x52b80f(_0x683e5b._0x1ec782)])
|
|
1502
|
+
return _0x52b80f(_0x683e5b._0x13fd93) + _0x33ec38['work_key'] + '\x22';
|
|
1503
|
+
return JSON[_0x52b80f(_0x683e5b._0x62404e)](_0x5befcc[_0x52b80f(0x181)], null, 0x2);
|
|
1504
|
+
},
|
|
1505
|
+
async 'finish_worker'(_0x27b95e) {
|
|
1506
|
+
const _0x3d49cf = _0x5931;
|
|
1507
|
+
if (!_0x3b16be[_0x3d49cf(_0x249b15._0x4ab51a)])
|
|
1508
|
+
return _0x3d49cf(_0x249b15._0xc2cd0f);
|
|
1509
|
+
const _0x7ba08 = await fetch(_0x3b16be[_0x3d49cf(_0x249b15._0x55b462)] + _0x3d49cf(_0x249b15._0x5bfb35), {
|
|
1510
|
+
'method': _0x3d49cf(_0x249b15._0x24e86a),
|
|
1511
|
+
'headers': { 'Content-Type': _0x3d49cf(0x2ee) },
|
|
1512
|
+
'body': JSON['stringify']({
|
|
1513
|
+
'work_key': _0x27b95e[_0x3d49cf(_0x249b15._0x49ece5)],
|
|
1514
|
+
'resume_packet': {
|
|
1515
|
+
'objective': '',
|
|
1516
|
+
'result': _0x27b95e['result'],
|
|
1517
|
+
'summary': _0x27b95e[_0x3d49cf(_0x249b15._0x5a858b)],
|
|
1518
|
+
'decisions': _0x27b95e[_0x3d49cf(_0x249b15._0xfc0d4b)] ?? [],
|
|
1519
|
+
'filesChanged': _0x27b95e['files_changed'] ?? [],
|
|
1520
|
+
'openIssues': _0x27b95e[_0x3d49cf(0x228)] ?? [],
|
|
1521
|
+
'nextSteps': _0x27b95e[_0x3d49cf(0x22e)] ?? []
|
|
1522
|
+
}
|
|
1523
|
+
})
|
|
1524
|
+
}), _0x3aeba8 = await _0x7ba08[_0x3d49cf(0x209)]();
|
|
1525
|
+
if (!_0x3aeba8['ok'])
|
|
1526
|
+
throw new Error(_0x3aeba8[_0x3d49cf(_0x249b15._0x2fd134)] ?? 'finish_worker\x20failed');
|
|
1527
|
+
return _0x3d49cf(_0x249b15._0x50b566) + _0x27b95e[_0x3d49cf(0x227)] + '\x22\x20finished\x20with\x20result:\x20' + _0x27b95e['result'];
|
|
1528
|
+
},
|
|
1529
|
+
async 'mark_waiting_input'(_0x31de6f) {
|
|
1530
|
+
const _0x3a7342 = _0x5931;
|
|
1531
|
+
if (!_0x3b16be[_0x3a7342(_0x191d10._0x59b164)] || !_0x3b16be[_0x3a7342(_0x191d10._0x5386c6)])
|
|
1532
|
+
return _0x3a7342(_0x191d10._0x113b88);
|
|
1533
|
+
const _0x44c1dc = await fetch(_0x3b16be['daemonLocalUrl'] + '/workers/waiting_input', {
|
|
1534
|
+
'method': _0x3a7342(_0x191d10._0x4baf39),
|
|
1535
|
+
'headers': { 'Content-Type': _0x3a7342(_0x191d10._0x37d63a) },
|
|
1536
|
+
'body': JSON[_0x3a7342(0x17d)]({
|
|
1537
|
+
'work_key': _0x31de6f[_0x3a7342(_0x191d10._0x5b6a0e)],
|
|
1538
|
+
'agent_id': _0x3b16be[_0x3a7342(_0x191d10._0x5386c6)]
|
|
1539
|
+
})
|
|
1540
|
+
}), _0x38e1d7 = await _0x44c1dc[_0x3a7342(_0x191d10._0x1ef272)]();
|
|
1541
|
+
if (!_0x38e1d7['ok'])
|
|
1542
|
+
throw new Error(_0x38e1d7[_0x3a7342(_0x191d10._0x5956f2)] ?? _0x3a7342(_0x191d10._0x46ddc2));
|
|
1543
|
+
return _0x3a7342(_0x191d10._0x1cd1b8) + _0x31de6f[_0x3a7342(0x227)] + _0x3a7342(_0x191d10._0x321c3d);
|
|
1544
|
+
},
|
|
1545
|
+
async 'escalate_to_main'(_0x51b7de) {
|
|
1546
|
+
const _0x3468d6 = _0x5931;
|
|
1547
|
+
if (!_0x3b16be[_0x3468d6(0x29d)])
|
|
1548
|
+
return _0x3468d6(0x20b);
|
|
1549
|
+
const _0x494efd = await fetch(_0x3b16be[_0x3468d6(0x29d)] + '/workers/escalate', {
|
|
1550
|
+
'method': _0x3468d6(_0x199cdc._0x415e6b),
|
|
1551
|
+
'headers': { 'Content-Type': _0x3468d6(_0x199cdc._0x43b3df) },
|
|
1552
|
+
'body': JSON[_0x3468d6(_0x199cdc._0x23e3f2)]({
|
|
1553
|
+
'work_key': _0x51b7de[_0x3468d6(_0x199cdc._0x14034b)],
|
|
1554
|
+
'reason': _0x51b7de[_0x3468d6(0x25c)]
|
|
1555
|
+
})
|
|
1556
|
+
}), _0x1bb675 = await _0x494efd[_0x3468d6(_0x199cdc._0x2fdf72)]();
|
|
1557
|
+
if (!_0x1bb675['ok'])
|
|
1558
|
+
throw new Error(_0x1bb675['error'] ?? 'escalate_to_main\x20failed');
|
|
1559
|
+
return _0x3468d6(_0x199cdc._0x2c5c3e) + _0x51b7de[_0x3468d6(_0x199cdc._0x1563d8)];
|
|
1560
|
+
}
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
function textResult(_0x1e9e14, _0x2fa16d = ![]) {
|
|
1564
|
+
const _0x37a09e = { _0x1df765: 0x2ad }, _0xcbad92 = _0xd0824a;
|
|
1565
|
+
return {
|
|
1566
|
+
'content': [{
|
|
1567
|
+
'type': _0xcbad92(_0x37a09e._0x1df765),
|
|
1568
|
+
'text': _0x1e9e14
|
|
1569
|
+
}],
|
|
1570
|
+
..._0x2fa16d ? { 'isError': !![] } : {}
|
|
1571
|
+
};
|
|
1572
|
+
}
|
|
1573
|
+
function _0x3e90() {
|
|
1574
|
+
const _0x3aaf42 = [
|
|
1575
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1576
|
+
'Dg9ju09tDhjPBMC',
|
|
1577
|
+
'w3nLCt0',
|
|
1578
|
+
'DgfYz2v0',
|
|
1579
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1580
|
+
'zgvZy3jPChrPB24',
|
|
1581
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1582
|
+
'lsba',
|
|
1583
|
+
'C3rHCNrLza',
|
|
1584
|
+
'ihn0yxr1CZ0',
|
|
1585
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1586
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1587
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1588
|
+
'ywDLBNrjza',
|
|
1589
|
+
'yxjYyxK',
|
|
1590
|
+
'icHPzdO',
|
|
1591
|
+
'CMvHzeHPC3rVCNK',
|
|
1592
|
+
'Bg93',
|
|
1593
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1594
|
+
'D29YA19RzxK',
|
|
1595
|
+
'B3bLBL9PC3n1zxm',
|
|
1596
|
+
'BgLZDf9Zzxj2zxi',
|
|
1597
|
+
'ig1LC3nHz2vZkqOk',
|
|
1598
|
+
'mJa3nJzNrgPRBMi',
|
|
1599
|
+
'igzHAwXLzdOG',
|
|
1600
|
+
'Agv4',
|
|
1601
|
+
'BMv4Df9ZDgvWCW',
|
|
1602
|
+
'Bwf4',
|
|
1603
|
+
'mtiZotbTyMn0B0i',
|
|
1604
|
+
'D29YA2vYtw9Kzq',
|
|
1605
|
+
'Aw1Hz2uVz2LM',
|
|
1606
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1607
|
+
'AgfZ',
|
|
1608
|
+
'zMLSzw5HBwu',
|
|
1609
|
+
'y29UDgvUDa',
|
|
1610
|
+
'DxnLCG',
|
|
1611
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1612
|
+
'DMLLD19MAwXL',
|
|
1613
|
+
'CgfYDgLJAxbHBNq',
|
|
1614
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1615
|
+
'BwvZC2fNzuLK',
|
|
1616
|
+
'BwvZC2fNzxm',
|
|
1617
|
+
'y2HHBM5LBa',
|
|
1618
|
+
'mtC1nJy4zMH3zKvp',
|
|
1619
|
+
'kgXLz2fJEsK',
|
|
1620
|
+
'DhLWzq',
|
|
1621
|
+
'Dw5JBgfPBv90yxnR',
|
|
1622
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1623
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1624
|
+
'mtC5nJi0s3bmu2zk',
|
|
1625
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1626
|
+
'ywjVCNrLza',
|
|
1627
|
+
'AM9PBG',
|
|
1628
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1629
|
+
'C2f2zq',
|
|
1630
|
+
'DgvZDa',
|
|
1631
|
+
'BwvTyMvYCW',
|
|
1632
|
+
'ig1LC3nHz2u9',
|
|
1633
|
+
'y2XHAw1FDgfZA3m',
|
|
1634
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1635
|
+
'CgfYC2u',
|
|
1636
|
+
'ig1ZzZ0',
|
|
1637
|
+
'Aw5FCMv2Awv3',
|
|
1638
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1639
|
+
'C3vJy2vZCW',
|
|
1640
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1641
|
+
'DhjPBq',
|
|
1642
|
+
'zNjVBq',
|
|
1643
|
+
'C2vUzf9TzxnZywDL',
|
|
1644
|
+
'xsba',
|
|
1645
|
+
'zg9Uzq',
|
|
1646
|
+
'Dg9KBW',
|
|
1647
|
+
'CMvHC29U',
|
|
1648
|
+
'BMfTzq',
|
|
1649
|
+
'khvUA25VD24P',
|
|
1650
|
+
'yxr0ywnOBwvUDeLK',
|
|
1651
|
+
'ChjVDg9JB2W',
|
|
1652
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1653
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1654
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1655
|
+
'zw51Bq',
|
|
1656
|
+
'uefuq0G',
|
|
1657
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1658
|
+
'yxr0ywnOBwvUDhm',
|
|
1659
|
+
'ywDLBNrZ',
|
|
1660
|
+
'y2fJAgveAxi',
|
|
1661
|
+
'BgLTAxq',
|
|
1662
|
+
'D29YA2vYCW',
|
|
1663
|
+
'Axnoyu4',
|
|
1664
|
+
'l3nLBMq',
|
|
1665
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1666
|
+
'iokaLca',
|
|
1667
|
+
'CMvHzf9OAxn0B3j5',
|
|
1668
|
+
'Aw5KzxHpzG',
|
|
1669
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1670
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1671
|
+
'ywrK',
|
|
1672
|
+
'ywDNCMvNyxrLswrZ',
|
|
1673
|
+
'C3bSAxq',
|
|
1674
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1675
|
+
'C2vX',
|
|
1676
|
+
'C2vUzgvYvhLWzq',
|
|
1677
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1678
|
+
'ChvZAa',
|
|
1679
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1680
|
+
'EM9K',
|
|
1681
|
+
'z2v0tw9UDgG',
|
|
1682
|
+
'yxjNDG',
|
|
1683
|
+
'ywz0zxi',
|
|
1684
|
+
'BwvZC2fNzq',
|
|
1685
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
1686
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4',
|
|
1687
|
+
'l2HPC3rVCNK/',
|
|
1688
|
+
'odrwzfjfvKK',
|
|
1689
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1690
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1691
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1692
|
+
'l3jLy2vPDMu',
|
|
1693
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1694
|
+
'ChvIBgLJ',
|
|
1695
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1696
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1697
|
+
'lsaJ',
|
|
1698
|
+
'zMLSzv9WyxrO',
|
|
1699
|
+
'AhvTyw5Z',
|
|
1700
|
+
'y2XPzw50',
|
|
1701
|
+
'y2XHAw1uyxnRCW',
|
|
1702
|
+
'y2XHAw0GzMfPBgvK',
|
|
1703
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1704
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1705
|
+
'AxngAwXL',
|
|
1706
|
+
'yxv0BZO',
|
|
1707
|
+
'zMv0y2HjBxbS',
|
|
1708
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1709
|
+
'DxbSB2fKx2zPBgu',
|
|
1710
|
+
'BM93',
|
|
1711
|
+
'AgLNAa',
|
|
1712
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1713
|
+
'AxnjBNrLz2vY',
|
|
1714
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1715
|
+
'CNvUswq',
|
|
1716
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1717
|
+
'zgvSzxrL',
|
|
1718
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1719
|
+
'DMLZAwjPBgL0Eq',
|
|
1720
|
+
'zgfLBw9UqxbPs2v5',
|
|
1721
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1722
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1723
|
+
'mJiWEfHsteTq',
|
|
1724
|
+
'l3vWBg9Hza',
|
|
1725
|
+
'BgvUz3rO',
|
|
1726
|
+
'yxnPzgu',
|
|
1727
|
+
'DxbKyxrL',
|
|
1728
|
+
'Dgv4Da',
|
|
1729
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1730
|
+
'v29YA2vYia',
|
|
1731
|
+
'u2vUzcbHig1LC3nHz2uGDg8GysbJAgfUBMvSig9YiernlIbszxvZzsb0AguGzxHHy3qGDgfYz2v0ihn0CMLUzYbMCM9TigLUy29TAw5Nig1LC3nHz2vZoYb0AhjLywqGDgfYz2v0CYb1C2uGDgHLihnHBwuGzMLLBgqU',
|
|
1732
|
+
'C2vUzgvYtMfTzq',
|
|
1733
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1734
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1735
|
+
'zg06',
|
|
1736
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1737
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1738
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1739
|
+
'zMLSDgvY',
|
|
1740
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1741
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1742
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
1743
|
+
'lcbWCMv2Awv3pq',
|
|
1744
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1745
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1746
|
+
'y3vYC29Y',
|
|
1747
|
+
'CMvJB3jK',
|
|
1748
|
+
'Cgf5Bg9HzePZB24',
|
|
1749
|
+
'C3rHCNrZv2L0Aa',
|
|
1750
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1751
|
+
'zxHWAxjLC0f0',
|
|
1752
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1753
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1754
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1755
|
+
'BMv4Den1CNnVCG',
|
|
1756
|
+
'C3rYAw5N',
|
|
1757
|
+
'Aw1Hz2uVANbLzW',
|
|
1758
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1759
|
+
'CMvZDwX0sNnVBG',
|
|
1760
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1761
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
1762
|
+
'AhvTyw4',
|
|
1763
|
+
'zgvZDhjVEwvK',
|
|
1764
|
+
'yM9KEu1HCMTKB3DU',
|
|
1765
|
+
'C2vYDMvYtMfTzq',
|
|
1766
|
+
'ywz0zxjtzxe',
|
|
1767
|
+
'mZq4m3jyu3jkuW',
|
|
1768
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1769
|
+
'CgfKu3rHCNq',
|
|
1770
|
+
'v29YA2vYici',
|
|
1771
|
+
'y3jLyxrLzef0',
|
|
1772
|
+
'CNvUBMLUzW',
|
|
1773
|
+
'zM9Yy2vszwzYzxnO',
|
|
1774
|
+
'y3jLyxrLvgfZA3m',
|
|
1775
|
+
'C2vYDMvY',
|
|
1776
|
+
'DgHYzwfKswq',
|
|
1777
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1778
|
+
'DgfZAY0',
|
|
1779
|
+
'DxjNzw50',
|
|
1780
|
+
'l3nLCNzLCG',
|
|
1781
|
+
'zw50CMLLCW',
|
|
1782
|
+
'C2vYDMvYvxjS',
|
|
1783
|
+
'AxnbCNjHEq',
|
|
1784
|
+
'y29UDgvUDejHC2u2na',
|
|
1785
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1786
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1787
|
+
'mtG5zgXgDgHi',
|
|
1788
|
+
'yxjYyxLcDwzMzxi',
|
|
1789
|
+
'z2v0sg91CNm',
|
|
1790
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1791
|
+
'zMLUza',
|
|
1792
|
+
'ywjVCNq',
|
|
1793
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1794
|
+
'C2LNBMfS',
|
|
1795
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1796
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1797
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1798
|
+
'y2HHDa',
|
|
1799
|
+
'C2v0',
|
|
1800
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1801
|
+
'CxvLDwvK',
|
|
1802
|
+
'BwvTyMvY',
|
|
1803
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1804
|
+
'BwvKAxvT',
|
|
1805
|
+
'zg0T',
|
|
1806
|
+
'C3rYAw5NAwz5',
|
|
1807
|
+
'C2HHmJu2',
|
|
1808
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1809
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1810
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1811
|
+
'DgfZA19Pza',
|
|
1812
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1813
|
+
'D3nZoG',
|
|
1814
|
+
'y29UDgvUDc10ExbL',
|
|
1815
|
+
'ue9tva',
|
|
1816
|
+
'ntCWBxHVsNDL',
|
|
1817
|
+
'y2HHBM5LBhm',
|
|
1818
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1819
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1820
|
+
'y29UBMvJDa',
|
|
1821
|
+
'iIbUB3qGzM91BMq',
|
|
1822
|
+
'DgfZA3m',
|
|
1823
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1824
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1825
|
+
'yMfZzty0',
|
|
1826
|
+
'ywXS',
|
|
1827
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1828
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1829
|
+
'uMv0CMLLDMuGDgHLihjLC3vSDcaOCMvZDw1LihbHy2TLDcKGB2yGysbJB21WBgv0zwqGD29YA2vYlG',
|
|
1830
|
+
'lNnSB2nR',
|
|
1831
|
+
'w3rHCMDLDd0',
|
|
1832
|
+
'Dg9VBa',
|
|
1833
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1834
|
+
'C3vTBwfYEq',
|
|
1835
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1836
|
+
'Bwf0y2Hoyw1L',
|
|
1837
|
+
'l3n0yxj0',
|
|
1838
|
+
'Dg9gAxHLza',
|
|
1839
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1840
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1841
|
+
'DgHYzwfKtNvTyMvY',
|
|
1842
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1843
|
+
'D29YA2vYsgfUzg9MzG',
|
|
1844
|
+
'yMvMB3jL',
|
|
1845
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1846
|
+
'BgLZDfrHC2TZ',
|
|
1847
|
+
'BgLZDf90yxnRCW',
|
|
1848
|
+
'zxzLBNrtzxe',
|
|
1849
|
+
'l3rHC2TZl2nSywLT',
|
|
1850
|
+
'Ahr0Chm6',
|
|
1851
|
+
'y2HHBM5LBeLK',
|
|
1852
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1853
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
1854
|
+
'BwfW',
|
|
1855
|
+
'Dgv4Dc9WBgfPBG',
|
|
1856
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1857
|
+
'D3m6',
|
|
1858
|
+
'C2L6zq',
|
|
1859
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1860
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1861
|
+
'C2XPy2u',
|
|
1862
|
+
'Aw5JBhvKzxm',
|
|
1863
|
+
'B2jQzwn0',
|
|
1864
|
+
'DgHYzwfK',
|
|
1865
|
+
'Bwv0yq',
|
|
1866
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1867
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1868
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1869
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1870
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1871
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1872
|
+
'z2v0twLUDxrLCW',
|
|
1873
|
+
'CMvWBgfJzq',
|
|
1874
|
+
'zgLNzxn0',
|
|
1875
|
+
'l3rHC2TZpW',
|
|
1876
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1877
|
+
'C3rVCe1HAw4',
|
|
1878
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1879
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1880
|
+
'yM9KEvrLEhq',
|
|
1881
|
+
'Dw5RBM93BG',
|
|
1882
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1883
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1884
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1885
|
+
'Ahr0CdO',
|
|
1886
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1887
|
+
'Dgv4Dc9JC3y',
|
|
1888
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1889
|
+
'C29YDa',
|
|
1890
|
+
'z2v0',
|
|
1891
|
+
'DgHYzwfKvgfYz2v0',
|
|
1892
|
+
'y2HHBM5LBe5HBwu',
|
|
1893
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1894
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1895
|
+
'kg5VBMuP',
|
|
1896
|
+
'lMjPBG',
|
|
1897
|
+
'zxjYB3i',
|
|
1898
|
+
'ihrPBwu9',
|
|
1899
|
+
'DgfZAW',
|
|
1900
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1901
|
+
'B3b0Aw9UywW',
|
|
1902
|
+
'odC4ndC4AMf1u2Xb',
|
|
1903
|
+
'ls1Hz2vUDc1Pza',
|
|
1904
|
+
'zgvJAxnPB25Z',
|
|
1905
|
+
'DgfYz2v0zwruyxnR',
|
|
1906
|
+
'A2LUza',
|
|
1907
|
+
'6k+35Rgcia',
|
|
1908
|
+
'DxbSB2fKrMLSzq',
|
|
1909
|
+
'yMfZzw5HBwu',
|
|
1910
|
+
'BgLZDfnLCNzLCG',
|
|
1911
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1912
|
+
'y29TCgXLDgvK',
|
|
1913
|
+
'y2f0y2G',
|
|
1914
|
+
'vgfZAZOG',
|
|
1915
|
+
'DgfZA051BwjLCG',
|
|
1916
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1917
|
+
'CMvZDwX0CW',
|
|
1918
|
+
'mJe1nZaZA2HPBKDV',
|
|
1919
|
+
'C2vUze1LC3nHz2u',
|
|
1920
|
+
'C29Tzq',
|
|
1921
|
+
'C3rHDhvZ',
|
|
1922
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1923
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1924
|
+
'BNvTyMvY',
|
|
1925
|
+
'DxrMoa',
|
|
1926
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1927
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1928
|
+
'ota1otCZtuPQsxb1',
|
|
1929
|
+
'ywDLBNq',
|
|
1930
|
+
'zgLZCg9ZAxrPB24',
|
|
1931
|
+
'zgf0yq',
|
|
1932
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1933
|
+
'igf0DgfJAg1LBNq',
|
|
1934
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1935
|
+
'Dg9tDhjPBMC',
|
|
1936
|
+
'DgfZA0LK',
|
|
1937
|
+
'DMfSDwvZ',
|
|
1938
|
+
'iYmGu2vYDMvYoIa',
|
|
1939
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1940
|
+
'r0vu',
|
|
1941
|
+
'CgfYC2vjBNq',
|
|
1942
|
+
'l3rHC2TZ',
|
|
1943
|
+
'ihr5Cgu9ywDLBNq',
|
|
1944
|
+
'ywDNCMvNyxrLswq',
|
|
1945
|
+
'zxH0BMfTzq',
|
|
1946
|
+
'ANnVBG',
|
|
1947
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1948
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1949
|
+
'yMXVy2TLza',
|
|
1950
|
+
'l2nVBNrLBNq',
|
|
1951
|
+
'y29UDgvUDfr5Cgu',
|
|
1952
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1953
|
+
'AgfZtw9Yzq',
|
|
1954
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
1955
|
+
'C2L6zuj5DgvZ',
|
|
1956
|
+
'pgvTChr5pG'
|
|
1534
1957
|
];
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
const _0x1dc112 = {
|
|
1538
|
-
_0x377e04: 0xfc,
|
|
1539
|
-
_0x40efb3: 0xaa,
|
|
1540
|
-
_0x35514a: 0x151,
|
|
1541
|
-
_0x3ed99c: 0x93,
|
|
1542
|
-
_0x26dd6f: 0x1dd,
|
|
1543
|
-
_0x4db8a2: 0x1d1
|
|
1544
|
-
}, _0x19d076 = {
|
|
1545
|
-
_0x415ae4: 0xfc,
|
|
1546
|
-
_0x548a61: 0x160,
|
|
1547
|
-
_0x53d6fb: 0xee,
|
|
1548
|
-
_0x2f1e6a: 0xfc,
|
|
1549
|
-
_0x5d3058: 0xcf,
|
|
1550
|
-
_0x3b7ec0: 0xef,
|
|
1551
|
-
_0x89ed92: 0xaa,
|
|
1552
|
-
_0x389b0c: 0x151,
|
|
1553
|
-
_0x21194a: 0x93,
|
|
1554
|
-
_0x1c9949: 0x1b1,
|
|
1555
|
-
_0xdcd9dd: 0x15a,
|
|
1556
|
-
_0x558f05: 0x1b8
|
|
1557
|
-
}, _0x19d001 = {
|
|
1558
|
-
_0x411c39: 0x100,
|
|
1559
|
-
_0x137164: 0x16a,
|
|
1560
|
-
_0x16ac3d: 0x8b,
|
|
1561
|
-
_0x2727e1: 0x15a
|
|
1562
|
-
}, _0x3948fc = {
|
|
1563
|
-
_0x35cb36: 0x14d,
|
|
1564
|
-
_0x3f69eb: 0x10e,
|
|
1565
|
-
_0x262951: 0x151,
|
|
1566
|
-
_0x16d613: 0x83
|
|
1567
|
-
}, _0x3fe7ea = {
|
|
1568
|
-
_0x52eca5: 0x11f,
|
|
1569
|
-
_0x19ecc1: 0x1e9
|
|
1570
|
-
}, _0x406705 = {
|
|
1571
|
-
_0x4f1329: 0x1c0,
|
|
1572
|
-
_0x366b7f: 0x1f0,
|
|
1573
|
-
_0x49ab00: 0x14a,
|
|
1574
|
-
_0x26594d: 0x1bb
|
|
1575
|
-
}, _0x1898b7 = {
|
|
1576
|
-
_0x50797c: 0x1a7,
|
|
1577
|
-
_0x39feb7: 0xf3
|
|
1578
|
-
}, _0x566cec = { _0x29f5e8: 0x12d }, _0x3597dd = { _0x1f335e: 0xa5 }, _0x9986dc = {
|
|
1579
|
-
_0x499c1c: 0xd9,
|
|
1580
|
-
_0x113c18: 0x19f
|
|
1581
|
-
}, _0x39635c = {
|
|
1582
|
-
_0x2652dd: 0xd6,
|
|
1583
|
-
_0x356f05: 0xf7,
|
|
1584
|
-
_0x203cc5: 0x152,
|
|
1585
|
-
_0x4edaff: 0x8d,
|
|
1586
|
-
_0x3e90fb: 0x170
|
|
1587
|
-
}, _0x53e882 = {
|
|
1588
|
-
_0x4c2b9e: 0x1b3,
|
|
1589
|
-
_0x481fe2: 0xfc,
|
|
1590
|
-
_0x29d0c8: 0x160,
|
|
1591
|
-
_0x3277f1: 0x137,
|
|
1592
|
-
_0x2f001c: 0x146,
|
|
1593
|
-
_0x1fe0c4: 0xbc,
|
|
1594
|
-
_0x3d9e01: 0x1a0,
|
|
1595
|
-
_0x3e3e0c: 0x17a,
|
|
1596
|
-
_0x45a575: 0x72,
|
|
1597
|
-
_0x1abb0: 0x17c
|
|
1598
|
-
}, _0x22eceb = { _0x4a6e88: 0x1a7 }, _0x381b64 = { _0x25a47c: 0x175 }, _0x21bf01 = {
|
|
1599
|
-
_0x1d73e5: 0x1d4,
|
|
1600
|
-
_0x387471: 0xc8
|
|
1601
|
-
}, _0x1f9d9c = {
|
|
1602
|
-
_0x2449be: 0xad,
|
|
1603
|
-
_0x4d41e4: 0x1a7,
|
|
1604
|
-
_0x50970b: 0x82,
|
|
1605
|
-
_0x51b015: 0x18d,
|
|
1606
|
-
_0x324c2d: 0x9d,
|
|
1607
|
-
_0x2c0476: 0x153,
|
|
1608
|
-
_0x24d5fe: 0x153,
|
|
1609
|
-
_0x1ae749: 0x10c,
|
|
1610
|
-
_0x58b0ff: 0x1b9,
|
|
1611
|
-
_0x4b8142: 0x1e7,
|
|
1612
|
-
_0x42a091: 0x10d,
|
|
1613
|
-
_0x2ed7dd: 0x152,
|
|
1614
|
-
_0x295c20: 0xa3,
|
|
1615
|
-
_0x1da327: 0x1a9,
|
|
1616
|
-
_0x66287b: 0xdd,
|
|
1617
|
-
_0x1bc7bf: 0xef,
|
|
1618
|
-
_0x48c001: 0xaa,
|
|
1619
|
-
_0x2e3b7f: 0x152,
|
|
1620
|
-
_0x449846: 0x162,
|
|
1621
|
-
_0x5c4183: 0x8b,
|
|
1622
|
-
_0x40d9b8: 0xba,
|
|
1623
|
-
_0x1c17c1: 0x1a8,
|
|
1624
|
-
_0x2d796f: 0x1cf,
|
|
1625
|
-
_0x567583: 0x1c8,
|
|
1626
|
-
_0x4d2a82: 0x125,
|
|
1627
|
-
_0x268aab: 0x116,
|
|
1628
|
-
_0x537c7c: 0xb4,
|
|
1629
|
-
_0x5239a3: 0x84,
|
|
1630
|
-
_0x37631c: 0x148,
|
|
1631
|
-
_0x856ef9: 0xf7
|
|
1632
|
-
}, _0x5c5f65 = {
|
|
1633
|
-
_0x233f27: 0x160,
|
|
1634
|
-
_0x396af2: 0x1d4,
|
|
1635
|
-
_0x5e8f69: 0xfc,
|
|
1636
|
-
_0x4e2d48: 0x18c,
|
|
1637
|
-
_0x28fd0c: 0x8b,
|
|
1638
|
-
_0x2e8ff3: 0x91
|
|
1639
|
-
}, _0xf15c93 = {
|
|
1640
|
-
_0x400251: 0x160,
|
|
1641
|
-
_0x1d6241: 0x1d4,
|
|
1642
|
-
_0x2b3513: 0xad,
|
|
1643
|
-
_0x36b61f: 0x137,
|
|
1644
|
-
_0x4a50c3: 0x153,
|
|
1645
|
-
_0x54d261: 0x1b2,
|
|
1646
|
-
_0x1d2743: 0xc8,
|
|
1647
|
-
_0x24ecd3: 0x10c,
|
|
1648
|
-
_0x895413: 0x84,
|
|
1649
|
-
_0x5b5d83: 0x190,
|
|
1650
|
-
_0x43028f: 0xf7,
|
|
1651
|
-
_0x3d95ad: 0xa3,
|
|
1652
|
-
_0x201a24: 0xa2,
|
|
1653
|
-
_0x35ad87: 0xef,
|
|
1654
|
-
_0x207a59: 0x152,
|
|
1655
|
-
_0x48b5d9: 0x9d,
|
|
1656
|
-
_0x9c2977: 0x1c4,
|
|
1657
|
-
_0x4df166: 0x9d,
|
|
1658
|
-
_0x176d28: 0x162,
|
|
1659
|
-
_0x4bf8f5: 0x8b,
|
|
1660
|
-
_0x310a52: 0x113,
|
|
1661
|
-
_0x44dcf9: 0x125,
|
|
1662
|
-
_0x486629: 0x19d
|
|
1663
|
-
};
|
|
1664
|
-
async function _0x367d22(_0x58876f) {
|
|
1665
|
-
const _0x56d253 = _0xf070;
|
|
1666
|
-
if (!_0x2ace36['daemonLocalUrl'] || !_0x2ace36[_0x56d253(_0xf15c93._0x400251)] || _0x2ace36[_0x56d253(_0xf15c93._0x1d6241)] || _0x2ace36[_0x56d253(_0xf15c93._0x2b3513)] !== !![])
|
|
1667
|
-
return null;
|
|
1668
|
-
const _0x22bb26 = parseTarget(_0x58876f['channel']);
|
|
1669
|
-
if (_0x22bb26['kind'] !== _0x56d253(_0xf15c93._0x36b61f))
|
|
1670
|
-
return null;
|
|
1671
|
-
const _0x31ddc6 = _0x58876f[_0x56d253(_0xf15c93._0x4a50c3)] != null ? _0x22bb26[_0x56d253(0x1b2)] + ':t' + _0x58876f[_0x56d253(0x153)] : _0x22bb26[_0x56d253(_0xf15c93._0x54d261)] + ':' + _0x58876f[_0x56d253(0xf7)];
|
|
1672
|
-
let _0x4a65e3;
|
|
1673
|
-
try {
|
|
1674
|
-
const _0x120fbc = await _0x2ace36[_0x56d253(0x1a7)]['readHistory']({
|
|
1675
|
-
'channel': _0x31ddc6,
|
|
1676
|
-
'limit': 0x14
|
|
1677
|
-
});
|
|
1678
|
-
_0x4a65e3 = _0x120fbc[_0x56d253(_0xf15c93._0x1d2743)][_0x56d253(0x72)](_0x232385 => _0x232385[_0x56d253(0xf7)] === _0x58876f[_0x56d253(0xf7)]);
|
|
1679
|
-
} catch {
|
|
1680
|
-
_0x4a65e3 = void 0x0;
|
|
1681
|
-
}
|
|
1682
|
-
const _0x324c95 = _0x58876f[_0x56d253(0x9d)] == null ? _0x56d253(0x1de) : '#' + _0x58876f[_0x56d253(0x9d)], _0x3ff187 = [
|
|
1683
|
-
_0x56d253(0x13b) + _0x31ddc6 + _0x56d253(0xa9) + _0x58876f[_0x56d253(0xf7)]['slice'](0x0, 0x8) + _0x56d253(0x177) + new Date()[_0x56d253(_0xf15c93._0x24ecd3)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x324c95 + _0x56d253(0x1e0),
|
|
1684
|
-
'',
|
|
1685
|
-
_0x4a65e3 ? _0x56d253(0x1a4) + _0x4a65e3[_0x56d253(_0xf15c93._0x895413)] : _0x56d253(_0xf15c93._0x5b5d83) + _0x58876f[_0x56d253(_0xf15c93._0x43028f)],
|
|
1686
|
-
'',
|
|
1687
|
-
_0x56d253(_0xf15c93._0x3d95ad) + _0x31ddc6,
|
|
1688
|
-
_0x56d253(_0xf15c93._0x201a24)
|
|
1689
|
-
][_0x56d253(0xdd)]('\x0a'), _0x1dc864 = await fetch(_0x2ace36[_0x56d253(0xfc)] + _0x56d253(0x15b), {
|
|
1690
|
-
'method': _0x56d253(_0xf15c93._0x35ad87),
|
|
1691
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1692
|
-
'body': JSON['stringify']({
|
|
1693
|
-
'agent_id': _0x2ace36[_0x56d253(0x160)],
|
|
1694
|
-
'thread_target': _0x31ddc6,
|
|
1695
|
-
'spawn_packet': {
|
|
1696
|
-
'replyTarget': _0x31ddc6,
|
|
1697
|
-
..._0x58876f[_0x56d253(0x152)] ? { 'taskId': _0x58876f[_0x56d253(_0xf15c93._0x207a59)] } : _0x58876f[_0x56d253(_0xf15c93._0x48b5d9)] != null ? { 'taskId': _0x56d253(_0xf15c93._0x9c2977) + _0x58876f[_0x56d253(_0xf15c93._0x4df166)] } : {}
|
|
1698
|
-
},
|
|
1699
|
-
'payload': {
|
|
1700
|
-
'mode': _0x56d253(_0xf15c93._0x176d28),
|
|
1701
|
-
'text': _0x3ff187
|
|
1702
|
-
}
|
|
1703
|
-
})
|
|
1704
|
-
}), _0x3b2590 = await _0x1dc864[_0x56d253(_0xf15c93._0x4bf8f5)]();
|
|
1705
|
-
if (!_0x3b2590['ok'])
|
|
1706
|
-
throw new Error(_0x3b2590['error'] ?? 'worker\x20handoff\x20failed');
|
|
1707
|
-
return {
|
|
1708
|
-
'stopMain': !![],
|
|
1709
|
-
'threadTarget': _0x31ddc6,
|
|
1710
|
-
'workerDisposition': _0x3b2590[_0x56d253(_0xf15c93._0x310a52)] === _0x56d253(0x1c8) ? _0x56d253(0x1c8) : _0x56d253(_0xf15c93._0x44dcf9),
|
|
1711
|
-
'workerHandoff': !![],
|
|
1712
|
-
'workerSessionId': _0x3b2590[_0x56d253(_0xf15c93._0x486629)] ?? '',
|
|
1713
|
-
'executionMode': _0x56d253(0xd4)
|
|
1714
|
-
};
|
|
1715
|
-
}
|
|
1716
|
-
async function _0x589500() {
|
|
1717
|
-
const _0x31e759 = _0xf070;
|
|
1718
|
-
if (!_0x2ace36[_0x31e759(0xfc)] || !_0x2ace36[_0x31e759(_0x5c5f65._0x233f27)] || _0x2ace36[_0x31e759(_0x5c5f65._0x396af2)])
|
|
1719
|
-
return null;
|
|
1720
|
-
try {
|
|
1721
|
-
const _0x56f59a = await fetch(_0x2ace36[_0x31e759(_0x5c5f65._0x5e8f69)] + _0x31e759(_0x5c5f65._0x4e2d48) + encodeURIComponent(_0x2ace36[_0x31e759(0x160)])), _0x5ee6b5 = await _0x56f59a[_0x31e759(_0x5c5f65._0x28fd0c)]();
|
|
1722
|
-
if (!_0x5ee6b5['ok'])
|
|
1723
|
-
return null;
|
|
1724
|
-
const _0x20ed4c = new Set();
|
|
1725
|
-
for (const _0x57b58d of _0x5ee6b5[_0x31e759(0x146)]) {
|
|
1726
|
-
_0x57b58d['status'] !== _0x31e759(_0x5c5f65._0x2e8ff3) && _0x57b58d[_0x31e759(0xed)] && _0x20ed4c[_0x31e759(0x17c)](_0x57b58d['thread_target']);
|
|
1727
|
-
}
|
|
1728
|
-
return _0x20ed4c['size'] > 0x0 ? _0x20ed4c : null;
|
|
1729
|
-
} catch {
|
|
1730
|
-
return null;
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
return {
|
|
1734
|
-
async 'send_message'(_0x386b13) {
|
|
1735
|
-
const _0x491091 = _0xf070;
|
|
1736
|
-
if (!_0x2ace36['workerMode'] && _0x2ace36[_0x491091(_0x1f9d9c._0x2449be)] && _0x2ace36[_0x491091(0xfc)] && _0x2ace36[_0x491091(0x160)]) {
|
|
1737
|
-
const _0x2a88ae = await _0x2ace36[_0x491091(_0x1f9d9c._0x4d41e4)]['resolveTarget'](_0x386b13[_0x491091(_0x1f9d9c._0x50970b)]);
|
|
1738
|
-
if (_0x2a88ae['task'] && _0x2a88ae[_0x491091(_0x1f9d9c._0x51b015)]) {
|
|
1739
|
-
const _0x4509bf = _0x2a88ae['task'][_0x491091(_0x1f9d9c._0x324c2d)] != null ? '#' + _0x2a88ae['task'][_0x491091(0x9d)] : '(legacy)', _0x3607dd = _0x2a88ae[_0x491091(_0x1f9d9c._0x2c0476)] != null ? _0x2a88ae[_0x491091(_0x1f9d9c._0x50970b)] + ':t' + _0x2a88ae[_0x491091(_0x1f9d9c._0x24d5fe)] : _0x2a88ae[_0x491091(0x82)] + ':' + _0x2a88ae['threadId']['slice'](0x0, 0x8), _0x386548 = [
|
|
1740
|
-
_0x491091(0x13b) + _0x3607dd + _0x491091(0x79) + new Date()[_0x491091(_0x1f9d9c._0x1ae749)]() + _0x491091(_0x1f9d9c._0x58b0ff),
|
|
1741
|
-
'',
|
|
1742
|
-
_0x491091(_0x1f9d9c._0x4b8142) + _0x386b13[_0x491091(0x84)],
|
|
1743
|
-
'Task:\x20' + _0x4509bf + '\x20(' + _0x2a88ae[_0x491091(_0x1f9d9c._0x42a091)][_0x491091(_0x1f9d9c._0x2ed7dd)] + ')',
|
|
1744
|
-
_0x491091(_0x1f9d9c._0x295c20) + _0x3607dd,
|
|
1745
|
-
_0x491091(_0x1f9d9c._0x1da327)
|
|
1746
|
-
][_0x491091(_0x1f9d9c._0x66287b)]('\x0a'), _0x43a4eb = await fetch(_0x2ace36[_0x491091(0xfc)] + '/workers/deliver', {
|
|
1747
|
-
'method': _0x491091(_0x1f9d9c._0x1bc7bf),
|
|
1748
|
-
'headers': { 'Content-Type': _0x491091(0x161) },
|
|
1749
|
-
'body': JSON[_0x491091(_0x1f9d9c._0x48c001)]({
|
|
1750
|
-
'agent_id': _0x2ace36[_0x491091(0x160)],
|
|
1751
|
-
'thread_target': _0x3607dd,
|
|
1752
|
-
'spawn_packet': {
|
|
1753
|
-
'replyTarget': _0x3607dd,
|
|
1754
|
-
'taskId': _0x2a88ae['task'][_0x491091(_0x1f9d9c._0x2e3b7f)]
|
|
1755
|
-
},
|
|
1756
|
-
'payload': {
|
|
1757
|
-
'mode': _0x491091(_0x1f9d9c._0x449846),
|
|
1758
|
-
'text': _0x386548
|
|
1759
|
-
}
|
|
1760
|
-
})
|
|
1761
|
-
}), _0x4e4b7c = await _0x43a4eb[_0x491091(_0x1f9d9c._0x5c4183)]();
|
|
1762
|
-
if (!_0x4e4b7c['ok'])
|
|
1763
|
-
throw new Error(_0x4e4b7c['error'] ?? _0x491091(_0x1f9d9c._0x40d9b8));
|
|
1764
|
-
return [
|
|
1765
|
-
_0x491091(_0x1f9d9c._0x1c17c1) + _0x4509bf + '\x20in\x20' + _0x3607dd + '.',
|
|
1766
|
-
'stopMain=true\x20executionMode=worker',
|
|
1767
|
-
_0x491091(_0x1f9d9c._0x2d796f) + (_0x4e4b7c[_0x491091(0x113)] === _0x491091(0x1c8) ? _0x491091(_0x1f9d9c._0x567583) : _0x491091(_0x1f9d9c._0x4d2a82)) + '.',
|
|
1768
|
-
_0x491091(_0x1f9d9c._0x268aab)
|
|
1769
|
-
][_0x491091(0xdd)]('\x20');
|
|
1770
|
-
}
|
|
1771
|
-
}
|
|
1772
|
-
const _0x4fc493 = await _0x2ace36[_0x491091(0x1a7)][_0x491091(_0x1f9d9c._0x537c7c)]({
|
|
1773
|
-
'attachmentIds': _0x386b13['attachment_ids'],
|
|
1774
|
-
'content': _0x386b13[_0x491091(_0x1f9d9c._0x5239a3)],
|
|
1775
|
-
'target': _0x386b13[_0x491091(0x82)],
|
|
1776
|
-
'visibility': _0x386b13['visibility']
|
|
1777
|
-
});
|
|
1778
|
-
return 'Message\x20sent\x20to\x20' + _0x386b13[_0x491091(0x82)] + _0x491091(_0x1f9d9c._0x37631c) + _0x4fc493[_0x491091(_0x1f9d9c._0x856ef9)];
|
|
1779
|
-
},
|
|
1780
|
-
async 'check_messages'() {
|
|
1781
|
-
const _0x20a4c0 = _0xf070, _0xf7dd22 = await _0x2ace36['client'][_0x20a4c0(0x164)]();
|
|
1782
|
-
if (!_0x2ace36[_0x20a4c0(_0x21bf01._0x1d73e5)]) {
|
|
1783
|
-
const _0x5b1f03 = await _0x589500();
|
|
1784
|
-
if (_0x5b1f03)
|
|
1785
|
-
return formatCheckMessages(_0xf7dd22[_0x20a4c0(_0x21bf01._0x387471)][_0x20a4c0(0x1f1)](_0x41748b => !_0x5b1f03[_0x20a4c0(0x9f)](_0x41748b[_0x20a4c0(0x82)])));
|
|
1786
|
-
}
|
|
1787
|
-
return formatCheckMessages(_0xf7dd22['messages']);
|
|
1788
|
-
},
|
|
1789
|
-
async 'read_history'(_0x477cd4) {
|
|
1790
|
-
const _0x3e73e3 = _0xf070, _0x22104f = await _0x2ace36['client'][_0x3e73e3(_0x381b64._0x25a47c)](_0x477cd4);
|
|
1791
|
-
return formatHistory(_0x22104f);
|
|
1792
|
-
},
|
|
1793
|
-
async 'list_server'() {
|
|
1794
|
-
const _0x44a6e0 = _0xf070, _0x10960d = await _0x2ace36[_0x44a6e0(_0x22eceb._0x4a6e88)][_0x44a6e0(0xbe)]();
|
|
1795
|
-
return formatServerDirectory(_0x10960d);
|
|
1796
|
-
},
|
|
1797
|
-
async 'list_tasks'(_0xac07f2) {
|
|
1798
|
-
const _0x40d266 = _0xf070, _0x4ea440 = await _0x2ace36[_0x40d266(0x1a7)][_0x40d266(_0x53e882._0x4c2b9e)](_0xac07f2);
|
|
1799
|
-
let _0xa253d0;
|
|
1800
|
-
if (_0x2ace36[_0x40d266(_0x53e882._0x481fe2)] && _0x2ace36[_0x40d266(_0x53e882._0x29d0c8)])
|
|
1801
|
-
try {
|
|
1802
|
-
const _0x313e3a = await fetch(_0x2ace36[_0x40d266(_0x53e882._0x481fe2)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2ace36['agentId'])), _0x2d13b4 = await _0x313e3a['json']();
|
|
1803
|
-
if (_0x2d13b4['ok']) {
|
|
1804
|
-
const _0x2307b9 = _0xac07f2[_0x40d266(_0x53e882._0x3277f1)] + ':';
|
|
1805
|
-
_0xa253d0 = new Set();
|
|
1806
|
-
for (const _0x35336b of _0x2d13b4[_0x40d266(_0x53e882._0x2f001c)]) {
|
|
1807
|
-
if (_0x35336b[_0x40d266(0x1e6)] === _0x40d266(0x91))
|
|
1808
|
-
continue;
|
|
1809
|
-
if (_0x35336b[_0x40d266(0xed)]?.[_0x40d266(_0x53e882._0x1fe0c4)](_0x2307b9)) {
|
|
1810
|
-
const _0x5d38ec = _0x35336b['thread_target']['slice'](_0x2307b9[_0x40d266(_0x53e882._0x3d9e01)]), _0x173ea6 = _0x4ea440['tasks']['find'](_0x399a5d => _0x399a5d['messageId']?.[_0x40d266(0xbc)](_0x5d38ec) === !![]);
|
|
1811
|
-
if (_0x173ea6?.['taskNumber'] != null) {
|
|
1812
|
-
_0xa253d0[_0x40d266(0x17c)](_0x173ea6[_0x40d266(0x9d)]);
|
|
1813
|
-
continue;
|
|
1814
|
-
}
|
|
1815
|
-
}
|
|
1816
|
-
if (_0x35336b[_0x40d266(_0x53e882._0x3e3e0c)]) {
|
|
1817
|
-
const _0x1e813c = _0x4ea440[_0x40d266(0x195)][_0x40d266(_0x53e882._0x45a575)](_0x5d56a2 => _0x5d56a2['taskId'] === _0x35336b['task_id']);
|
|
1818
|
-
_0x1e813c?.[_0x40d266(0x9d)] != null && _0xa253d0[_0x40d266(_0x53e882._0x1abb0)](_0x1e813c[_0x40d266(0x9d)]);
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
} catch {
|
|
1823
|
-
}
|
|
1824
|
-
return formatTaskList(_0x4ea440['tasks'], _0xa253d0);
|
|
1825
|
-
},
|
|
1826
|
-
async 'create_tasks'(_0x226b0c) {
|
|
1827
|
-
const _0x46430d = _0xf070, _0xebd0c5 = await _0x2ace36['client'][_0x46430d(0x147)](_0x226b0c);
|
|
1828
|
-
return formatCreatedTasks(_0xebd0c5[_0x46430d(0x195)]);
|
|
1829
|
-
},
|
|
1830
|
-
async 'claim_tasks'(_0x14c4bd) {
|
|
1831
|
-
const _0x34e8fa = _0xf070, _0x474a9a = await _0x2ace36[_0x34e8fa(0x1a7)][_0x34e8fa(0x1fa)](_0x14c4bd), _0x22344b = await Promise[_0x34e8fa(0x150)](_0x474a9a[_0x34e8fa(_0x9986dc._0x499c1c)][_0x34e8fa(_0x9986dc._0x113c18)](async _0x3f2ad3 => {
|
|
1832
|
-
const _0x4ecfef = _0x34e8fa;
|
|
1833
|
-
if (!_0x3f2ad3[_0x4ecfef(_0x39635c._0x2652dd)] || !_0x3f2ad3[_0x4ecfef(_0x39635c._0x356f05)])
|
|
1834
|
-
return _0x3f2ad3;
|
|
1835
|
-
try {
|
|
1836
|
-
const _0x2668b8 = await _0x367d22({
|
|
1837
|
-
'channel': _0x14c4bd['channel'],
|
|
1838
|
-
'messageId': _0x3f2ad3['messageId'],
|
|
1839
|
-
'taskId': _0x3f2ad3[_0x4ecfef(_0x39635c._0x203cc5)],
|
|
1840
|
-
'taskNumber': _0x3f2ad3[_0x4ecfef(0x9d)],
|
|
1841
|
-
'threadNumber': _0x3f2ad3['threadNumber']
|
|
1842
|
-
});
|
|
1843
|
-
return _0x2668b8 ? {
|
|
1844
|
-
..._0x3f2ad3,
|
|
1845
|
-
..._0x2668b8
|
|
1846
|
-
} : _0x3f2ad3;
|
|
1847
|
-
} catch (_0x40bdb9) {
|
|
1848
|
-
return {
|
|
1849
|
-
..._0x3f2ad3,
|
|
1850
|
-
'workerHandoffError': _0x40bdb9 instanceof Error ? _0x40bdb9[_0x4ecfef(_0x39635c._0x4edaff)] : _0x4ecfef(_0x39635c._0x3e90fb)
|
|
1851
|
-
};
|
|
1852
|
-
}
|
|
1853
|
-
}));
|
|
1854
|
-
return formatClaimTaskResults(_0x22344b);
|
|
1855
|
-
},
|
|
1856
|
-
async 'unclaim_task'(_0x710888) {
|
|
1857
|
-
const _0x9b3f12 = _0xf070, _0x32e74f = await _0x2ace36[_0x9b3f12(0x1a7)][_0x9b3f12(_0x3597dd._0x1f335e)](_0x710888);
|
|
1858
|
-
return formatUnclaimTaskResult(_0x32e74f);
|
|
1859
|
-
},
|
|
1860
|
-
async 'update_task_status'(_0x3a66ed) {
|
|
1861
|
-
const _0x54ab0f = _0xf070, _0x3d15ca = await _0x2ace36[_0x54ab0f(0x1a7)][_0x54ab0f(_0x566cec._0x29f5e8)](_0x3a66ed);
|
|
1862
|
-
return formatUpdateTaskStatusResult(_0x3d15ca);
|
|
1863
|
-
},
|
|
1864
|
-
async 'upload_file'(_0x1ee930) {
|
|
1865
|
-
const _0x51d423 = _0xf070, _0x53475d = await _0x2ace36['uploadPreparer'](_0x1ee930[_0x51d423(0xf6)]), {
|
|
1866
|
-
sizeBytes: _0x2f45af,
|
|
1867
|
-
..._0x59e6e1
|
|
1868
|
-
} = _0x53475d, _0x3d7295 = await _0x2ace36[_0x51d423(_0x1898b7._0x50797c)][_0x51d423(_0x1898b7._0x39feb7)]({
|
|
1869
|
-
'channel': _0x1ee930[_0x51d423(0x137)],
|
|
1870
|
-
..._0x59e6e1
|
|
1871
|
-
});
|
|
1872
|
-
return formatUploadResult(_0x3d7295);
|
|
1873
|
-
},
|
|
1874
|
-
async 'view_file'(_0x41b1b7) {
|
|
1875
|
-
const _0x4abc6a = _0xf070, _0x144b0e = await _0x2ace36[_0x4abc6a(0x18e)][_0x4abc6a(_0x406705._0x4f1329)](_0x41b1b7[_0x4abc6a(_0x406705._0x366b7f)]);
|
|
1876
|
-
if (_0x144b0e)
|
|
1877
|
-
return formatViewFileResult(_0x144b0e, !![]);
|
|
1878
|
-
const _0x1775ad = await _0x2ace36['client'][_0x4abc6a(0x191)](_0x41b1b7[_0x4abc6a(0x1f0)]), _0x41e3fa = await _0x2ace36[_0x4abc6a(0x18e)][_0x4abc6a(_0x406705._0x49ab00)]({
|
|
1879
|
-
'attachmentId': _0x41b1b7[_0x4abc6a(0x1f0)],
|
|
1880
|
-
'contentType': _0x1775ad[_0x4abc6a(_0x406705._0x26594d)],
|
|
1881
|
-
'data': _0x1775ad['data'],
|
|
1882
|
-
'originalFilename': _0x1775ad['originalFilename']
|
|
1883
|
-
});
|
|
1884
|
-
return formatViewFileResult(_0x41e3fa, ![]);
|
|
1885
|
-
},
|
|
1886
|
-
async 'get_worker_status'(_0x1f5adb) {
|
|
1887
|
-
const _0x1cd39f = _0xf070;
|
|
1888
|
-
if (!_0x2ace36['daemonLocalUrl'])
|
|
1889
|
-
return _0x1cd39f(0x14d);
|
|
1890
|
-
const _0x154d82 = await fetch(_0x2ace36['daemonLocalUrl'] + _0x1cd39f(_0x3fe7ea._0x52eca5) + encodeURIComponent(_0x1f5adb['work_key'])), _0x1b75c5 = await _0x154d82[_0x1cd39f(0x8b)]();
|
|
1891
|
-
if (!_0x1b75c5['ok'])
|
|
1892
|
-
return _0x1cd39f(0x15a) + _0x1f5adb['work_key'] + '\x22\x20not\x20found';
|
|
1893
|
-
return _0x1cd39f(0x15a) + _0x1f5adb['work_key'] + _0x1cd39f(_0x3fe7ea._0x19ecc1) + _0x1b75c5[_0x1cd39f(0x1e6)];
|
|
1894
|
-
},
|
|
1895
|
-
async 'get_worker_result'(_0x377dc5) {
|
|
1896
|
-
const _0x25f178 = _0xf070;
|
|
1897
|
-
if (!_0x2ace36[_0x25f178(0xfc)])
|
|
1898
|
-
return _0x25f178(_0x3948fc._0x35cb36);
|
|
1899
|
-
const _0x31753f = await fetch(_0x2ace36[_0x25f178(0xfc)] + _0x25f178(_0x3948fc._0x3f69eb) + encodeURIComponent(_0x377dc5[_0x25f178(_0x3948fc._0x262951)])), _0x1fd779 = await _0x31753f['json']();
|
|
1900
|
-
if (!_0x1fd779[_0x25f178(_0x3948fc._0x16d613)])
|
|
1901
|
-
return 'No\x20result\x20yet\x20for\x20worker\x20\x22' + _0x377dc5[_0x25f178(_0x3948fc._0x262951)] + '\x22';
|
|
1902
|
-
return JSON[_0x25f178(0xaa)](_0x1fd779[_0x25f178(0x83)], null, 0x2);
|
|
1903
|
-
},
|
|
1904
|
-
async 'finish_worker'(_0x5832ca) {
|
|
1905
|
-
const _0x37846d = _0xf070;
|
|
1906
|
-
if (!_0x2ace36['daemonLocalUrl'])
|
|
1907
|
-
return _0x37846d(0x14d);
|
|
1908
|
-
const _0x38ac8c = await fetch(_0x2ace36['daemonLocalUrl'] + _0x37846d(0xb2), {
|
|
1909
|
-
'method': _0x37846d(0xef),
|
|
1910
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1911
|
-
'body': JSON[_0x37846d(0xaa)]({
|
|
1912
|
-
'work_key': _0x5832ca[_0x37846d(0x151)],
|
|
1913
|
-
'resume_packet': {
|
|
1914
|
-
'objective': '',
|
|
1915
|
-
'result': _0x5832ca[_0x37846d(_0x19d001._0x411c39)],
|
|
1916
|
-
'summary': _0x5832ca[_0x37846d(0x120)],
|
|
1917
|
-
'decisions': _0x5832ca[_0x37846d(0x1d9)] ?? [],
|
|
1918
|
-
'filesChanged': _0x5832ca[_0x37846d(0xd7)] ?? [],
|
|
1919
|
-
'openIssues': _0x5832ca[_0x37846d(_0x19d001._0x137164)] ?? [],
|
|
1920
|
-
'nextSteps': _0x5832ca['next_steps'] ?? []
|
|
1921
|
-
}
|
|
1922
|
-
})
|
|
1923
|
-
}), _0x24ff2a = await _0x38ac8c[_0x37846d(_0x19d001._0x16ac3d)]();
|
|
1924
|
-
if (!_0x24ff2a['ok'])
|
|
1925
|
-
throw new Error(_0x24ff2a[_0x37846d(0x93)] ?? 'finish_worker\x20failed');
|
|
1926
|
-
return _0x37846d(_0x19d001._0x2727e1) + _0x5832ca[_0x37846d(0x151)] + _0x37846d(0x172) + _0x5832ca[_0x37846d(0x100)];
|
|
1927
|
-
},
|
|
1928
|
-
async 'mark_waiting_input'(_0x48ca91) {
|
|
1929
|
-
const _0x79ec0f = _0xf070;
|
|
1930
|
-
if (!_0x2ace36[_0x79ec0f(_0x19d076._0x415ae4)] || !_0x2ace36[_0x79ec0f(_0x19d076._0x548a61)])
|
|
1931
|
-
return _0x79ec0f(_0x19d076._0x53d6fb);
|
|
1932
|
-
const _0x2927bf = await fetch(_0x2ace36[_0x79ec0f(_0x19d076._0x2f1e6a)] + _0x79ec0f(_0x19d076._0x5d3058), {
|
|
1933
|
-
'method': _0x79ec0f(_0x19d076._0x3b7ec0),
|
|
1934
|
-
'headers': { 'Content-Type': _0x79ec0f(0x161) },
|
|
1935
|
-
'body': JSON[_0x79ec0f(_0x19d076._0x89ed92)]({
|
|
1936
|
-
'work_key': _0x48ca91[_0x79ec0f(_0x19d076._0x389b0c)],
|
|
1937
|
-
'agent_id': _0x2ace36[_0x79ec0f(0x160)]
|
|
1938
|
-
})
|
|
1939
|
-
}), _0x187309 = await _0x2927bf['json']();
|
|
1940
|
-
if (!_0x187309['ok'])
|
|
1941
|
-
throw new Error(_0x187309[_0x79ec0f(_0x19d076._0x21194a)] ?? _0x79ec0f(_0x19d076._0x1c9949));
|
|
1942
|
-
return _0x79ec0f(_0x19d076._0xdcd9dd) + _0x48ca91[_0x79ec0f(0x151)] + _0x79ec0f(_0x19d076._0x558f05);
|
|
1943
|
-
},
|
|
1944
|
-
async 'escalate_to_main'(_0x5aee8a) {
|
|
1945
|
-
const _0x3cb0d6 = _0xf070;
|
|
1946
|
-
if (!_0x2ace36[_0x3cb0d6(_0x1dc112._0x377e04)])
|
|
1947
|
-
return _0x3cb0d6(0x14d);
|
|
1948
|
-
const _0x36d201 = await fetch(_0x2ace36['daemonLocalUrl'] + _0x3cb0d6(0xd8), {
|
|
1949
|
-
'method': 'POST',
|
|
1950
|
-
'headers': { 'Content-Type': 'application/json' },
|
|
1951
|
-
'body': JSON[_0x3cb0d6(_0x1dc112._0x40efb3)]({
|
|
1952
|
-
'work_key': _0x5aee8a[_0x3cb0d6(_0x1dc112._0x35514a)],
|
|
1953
|
-
'reason': _0x5aee8a[_0x3cb0d6(0x1d1)]
|
|
1954
|
-
})
|
|
1955
|
-
}), _0x456d74 = await _0x36d201[_0x3cb0d6(0x8b)]();
|
|
1956
|
-
if (!_0x456d74['ok'])
|
|
1957
|
-
throw new Error(_0x456d74[_0x3cb0d6(_0x1dc112._0x3ed99c)] ?? _0x3cb0d6(_0x1dc112._0x26dd6f));
|
|
1958
|
-
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x5aee8a[_0x3cb0d6(_0x1dc112._0x4db8a2)];
|
|
1959
|
-
}
|
|
1960
|
-
};
|
|
1961
|
-
}
|
|
1962
|
-
function _0xf070(_0x1a21b2, _0x55362a) {
|
|
1963
|
-
_0x1a21b2 = _0x1a21b2 - 0x71;
|
|
1964
|
-
const _0x23547c = _0x2354();
|
|
1965
|
-
let _0xf070d = _0x23547c[_0x1a21b2];
|
|
1966
|
-
if (_0xf070['tnpnDM'] === undefined) {
|
|
1967
|
-
var _0x5c5929 = function (_0x38a46b) {
|
|
1968
|
-
const _0x2efc13 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1969
|
-
let _0x5a04e4 = '', _0x486144 = '';
|
|
1970
|
-
for (let _0x3f08f2 = 0x0, _0x2c2f66, _0xf3768b, _0x5543b7 = 0x0; _0xf3768b = _0x38a46b['charAt'](_0x5543b7++); ~_0xf3768b && (_0x2c2f66 = _0x3f08f2 % 0x4 ? _0x2c2f66 * 0x40 + _0xf3768b : _0xf3768b, _0x3f08f2++ % 0x4) ? _0x5a04e4 += String['fromCharCode'](0xff & _0x2c2f66 >> (-0x2 * _0x3f08f2 & 0x6)) : 0x0) {
|
|
1971
|
-
_0xf3768b = _0x2efc13['indexOf'](_0xf3768b);
|
|
1972
|
-
}
|
|
1973
|
-
for (let _0x522697 = 0x0, _0x16fbae = _0x5a04e4['length']; _0x522697 < _0x16fbae; _0x522697++) {
|
|
1974
|
-
_0x486144 += '%' + ('00' + _0x5a04e4['charCodeAt'](_0x522697)['toString'](0x10))['slice'](-0x2);
|
|
1975
|
-
}
|
|
1976
|
-
return decodeURIComponent(_0x486144);
|
|
1977
|
-
};
|
|
1978
|
-
_0xf070['NYRMxN'] = _0x5c5929, _0xf070['qXMQBp'] = {}, _0xf070['tnpnDM'] = !![];
|
|
1979
|
-
}
|
|
1980
|
-
const _0x3f49af = _0x23547c[0x0], _0x177e33 = _0x1a21b2 + _0x3f49af, _0x597563 = _0xf070['qXMQBp'][_0x177e33];
|
|
1981
|
-
return !_0x597563 ? (_0xf070d = _0xf070['NYRMxN'](_0xf070d), _0xf070['qXMQBp'][_0x177e33] = _0xf070d) : _0xf070d = _0x597563, _0xf070d;
|
|
1982
|
-
}
|
|
1983
|
-
function textResult(_0x5ca999, _0x4b28f = ![]) {
|
|
1984
|
-
const _0x4bb73f = { _0x378419: 0x193 }, _0x1567d5 = _0x174aa9;
|
|
1985
|
-
return {
|
|
1986
|
-
'content': [{
|
|
1987
|
-
'type': _0x1567d5(_0x4bb73f._0x378419),
|
|
1988
|
-
'text': _0x5ca999
|
|
1989
|
-
}],
|
|
1990
|
-
..._0x4b28f ? { 'isError': !![] } : {}
|
|
1958
|
+
_0x3e90 = function () {
|
|
1959
|
+
return _0x3aaf42;
|
|
1991
1960
|
};
|
|
1961
|
+
return _0x3e90();
|
|
1992
1962
|
}
|
|
1993
|
-
async function registerChatBridgeTools(
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
'
|
|
2057
|
-
'
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
}, async _0xfc07a8 => {
|
|
2064
|
-
const _0x45b002 = _0x337e88;
|
|
1963
|
+
async function registerChatBridgeTools(_0x2bff0e, _0x4b3a84, _0x3d795d) {
|
|
1964
|
+
const _0x23265a = {
|
|
1965
|
+
_0x484445: 0x27d,
|
|
1966
|
+
_0x13428f: 0x197,
|
|
1967
|
+
_0x39d0ad: 0x258,
|
|
1968
|
+
_0x5ec6f1: 0x2b0,
|
|
1969
|
+
_0x57a62d: 0x2c9,
|
|
1970
|
+
_0x33e509: 0x1dc,
|
|
1971
|
+
_0x265284: 0x28b,
|
|
1972
|
+
_0x4a53ac: 0x1db,
|
|
1973
|
+
_0x310d24: 0x270,
|
|
1974
|
+
_0x241269: 0x2ba,
|
|
1975
|
+
_0x3d854e: 0x1f3,
|
|
1976
|
+
_0x1631f5: 0x1f3,
|
|
1977
|
+
_0x588314: 0x197,
|
|
1978
|
+
_0x173c17: 0x1b2,
|
|
1979
|
+
_0x538e02: 0x1a6,
|
|
1980
|
+
_0x27e922: 0x1ac,
|
|
1981
|
+
_0x5a6738: 0x264,
|
|
1982
|
+
_0xf7897d: 0x252,
|
|
1983
|
+
_0x1c5914: 0x17b,
|
|
1984
|
+
_0x29819b: 0x2e0,
|
|
1985
|
+
_0x48dbc8: 0x2ce,
|
|
1986
|
+
_0x2db687: 0x2c9,
|
|
1987
|
+
_0x1878ff: 0x1b6,
|
|
1988
|
+
_0x386995: 0x1c8,
|
|
1989
|
+
_0x4b71a5: 0x1dc,
|
|
1990
|
+
_0x31613e: 0x242,
|
|
1991
|
+
_0x528d8e: 0x211,
|
|
1992
|
+
_0x48e2b7: 0x2c9,
|
|
1993
|
+
_0x2f74fd: 0x2cd,
|
|
1994
|
+
_0x5a5277: 0x2c9,
|
|
1995
|
+
_0x2793c9: 0x1f3,
|
|
1996
|
+
_0x2c2625: 0x264,
|
|
1997
|
+
_0xbf3e8f: 0x2c9,
|
|
1998
|
+
_0x26d812: 0x272,
|
|
1999
|
+
_0x531e2b: 0x20c,
|
|
2000
|
+
_0x35c878: 0x222,
|
|
2001
|
+
_0x48bf45: 0x2c9,
|
|
2002
|
+
_0x4c4b48: 0x197
|
|
2003
|
+
}, _0xa7c180 = { _0x289561: 0x1af }, _0x571331 = {
|
|
2004
|
+
_0x549140: 0x2c6,
|
|
2005
|
+
_0x4eb010: 0x281,
|
|
2006
|
+
_0x4227e5: 0x1bd
|
|
2007
|
+
}, _0x37e8ab = {
|
|
2008
|
+
_0x433717: 0x26e,
|
|
2009
|
+
_0x568637: 0x281
|
|
2010
|
+
}, _0x99c5e0 = { _0x34c524: 0x1bb }, _0x54f4f5 = {
|
|
2011
|
+
_0xed5de7: 0x239,
|
|
2012
|
+
_0x284f7f: 0x281
|
|
2013
|
+
}, _0x2ccb54 = { _0x7dda06: 0x281 }, _0xabb27 = { _0x16ee01: 0x2cd }, _0x180d4d = { _0x2cd15d: 0x24f }, _0x52eaf1 = { _0x540c0e: 0x281 }, _0x3b0b3e = { _0x2241a9: 0x281 }, _0x5ab597 = {
|
|
2014
|
+
_0x1752b1: 0x281,
|
|
2015
|
+
_0x21b405: 0x2ae
|
|
2016
|
+
}, _0x3a03eb = {
|
|
2017
|
+
_0x27a14d: 0x1db,
|
|
2018
|
+
_0x16d597: 0x281
|
|
2019
|
+
}, _0x2e5036 = {
|
|
2020
|
+
_0x4e97b6: 0x258,
|
|
2021
|
+
_0x27fdcf: 0x281
|
|
2022
|
+
}, _0x17332e = _0xd0824a, {z: _0x7bc2e} = await import(_0x17332e(_0x23265a._0x484445));
|
|
2023
|
+
_0x2bff0e[_0x17332e(_0x23265a._0x13428f)](_0x17332e(_0x23265a._0x39d0ad), _0x17332e(_0x23265a._0x5ec6f1), {
|
|
2024
|
+
'target': _0x7bc2e[_0x17332e(0x2c9)](),
|
|
2025
|
+
'content': _0x7bc2e['string'](),
|
|
2026
|
+
'attachment_ids': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]())[_0x17332e(_0x23265a._0x33e509)](),
|
|
2027
|
+
'visibility': _0x7bc2e[_0x17332e(0x264)]([
|
|
2028
|
+
_0x17332e(_0x23265a._0x265284),
|
|
2029
|
+
_0x17332e(0x2ab)
|
|
2030
|
+
])[_0x17332e(0x1dc)]()
|
|
2031
|
+
}, async _0x47a3cf => {
|
|
2032
|
+
const _0x293ff2 = _0x17332e;
|
|
2065
2033
|
try {
|
|
2066
|
-
return textResult(await
|
|
2067
|
-
} catch (
|
|
2068
|
-
return textResult(
|
|
2034
|
+
return textResult(await _0x4b3a84[_0x293ff2(_0x2e5036._0x4e97b6)](_0x47a3cf));
|
|
2035
|
+
} catch (_0x2f4052) {
|
|
2036
|
+
return textResult(_0x2f4052 instanceof Error ? _0x2f4052[_0x293ff2(_0x2e5036._0x27fdcf)] : _0x293ff2(0x1fb), !![]);
|
|
2069
2037
|
}
|
|
2070
|
-
}),
|
|
2071
|
-
const
|
|
2038
|
+
}), _0x2bff0e[_0x17332e(0x197)](_0x17332e(_0x23265a._0x4a53ac), _0x17332e(0x21a), {}, async () => {
|
|
2039
|
+
const _0x4a202d = _0x17332e;
|
|
2072
2040
|
try {
|
|
2073
|
-
return textResult(await
|
|
2074
|
-
} catch (
|
|
2075
|
-
return textResult(
|
|
2041
|
+
return textResult(await _0x4b3a84[_0x4a202d(_0x3a03eb._0x27a14d)]());
|
|
2042
|
+
} catch (_0x2bd74f) {
|
|
2043
|
+
return textResult(_0x2bd74f instanceof Error ? _0x2bd74f[_0x4a202d(_0x3a03eb._0x16d597)] : _0x4a202d(0x2a3), !![]);
|
|
2076
2044
|
}
|
|
2077
|
-
}),
|
|
2078
|
-
'channel':
|
|
2079
|
-
'limit':
|
|
2080
|
-
'before':
|
|
2081
|
-
'after':
|
|
2082
|
-
}, async
|
|
2083
|
-
const
|
|
2045
|
+
}), _0x2bff0e['tool'](_0x17332e(_0x23265a._0x310d24), _0x17332e(_0x23265a._0x241269), {
|
|
2046
|
+
'channel': _0x7bc2e[_0x17332e(0x2c9)](),
|
|
2047
|
+
'limit': _0x7bc2e[_0x17332e(_0x23265a._0x3d854e)]()[_0x17332e(0x1dc)](),
|
|
2048
|
+
'before': _0x7bc2e[_0x17332e(0x1f3)]()['optional'](),
|
|
2049
|
+
'after': _0x7bc2e[_0x17332e(_0x23265a._0x1631f5)]()['optional']()
|
|
2050
|
+
}, async _0x3ca7e9 => {
|
|
2051
|
+
const _0x2ecfba = _0x17332e;
|
|
2084
2052
|
try {
|
|
2085
|
-
return textResult(await
|
|
2086
|
-
} catch (
|
|
2087
|
-
return textResult(
|
|
2053
|
+
return textResult(await _0x4b3a84['read_history'](_0x3ca7e9));
|
|
2054
|
+
} catch (_0x4bf082) {
|
|
2055
|
+
return textResult(_0x4bf082 instanceof Error ? _0x4bf082[_0x2ecfba(0x281)] : 'read_history\x20failed', !![]);
|
|
2088
2056
|
}
|
|
2089
|
-
}),
|
|
2090
|
-
const
|
|
2057
|
+
}), _0x2bff0e[_0x17332e(_0x23265a._0x588314)](_0x17332e(0x229), _0x17332e(_0x23265a._0x173c17), {}, async () => {
|
|
2058
|
+
const _0x35ea88 = _0x17332e;
|
|
2091
2059
|
try {
|
|
2092
|
-
return textResult(await
|
|
2093
|
-
} catch (
|
|
2094
|
-
return textResult(
|
|
2060
|
+
return textResult(await _0x4b3a84['list_server']());
|
|
2061
|
+
} catch (_0x2d7278) {
|
|
2062
|
+
return textResult(_0x2d7278 instanceof Error ? _0x2d7278[_0x35ea88(_0x5ab597._0x1752b1)] : _0x35ea88(_0x5ab597._0x21b405), !![]);
|
|
2095
2063
|
}
|
|
2096
|
-
}),
|
|
2097
|
-
'channel':
|
|
2098
|
-
'status':
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
])[
|
|
2104
|
-
}, async
|
|
2105
|
-
const
|
|
2064
|
+
}), _0x2bff0e[_0x17332e(_0x23265a._0x588314)](_0x17332e(_0x23265a._0x538e02), _0x17332e(_0x23265a._0x27e922), {
|
|
2065
|
+
'channel': _0x7bc2e['string'](),
|
|
2066
|
+
'status': _0x7bc2e[_0x17332e(_0x23265a._0x5a6738)]([
|
|
2067
|
+
_0x17332e(0x25b),
|
|
2068
|
+
'in_progress',
|
|
2069
|
+
_0x17332e(_0x23265a._0xf7897d),
|
|
2070
|
+
_0x17332e(0x25a)
|
|
2071
|
+
])[_0x17332e(0x1dc)]()
|
|
2072
|
+
}, async _0x334d9e => {
|
|
2073
|
+
const _0x5b1ce4 = _0x17332e;
|
|
2106
2074
|
try {
|
|
2107
|
-
return textResult(await
|
|
2108
|
-
} catch (
|
|
2109
|
-
return textResult(
|
|
2075
|
+
return textResult(await _0x4b3a84[_0x5b1ce4(0x1a6)](_0x334d9e));
|
|
2076
|
+
} catch (_0x3f0063) {
|
|
2077
|
+
return textResult(_0x3f0063 instanceof Error ? _0x3f0063[_0x5b1ce4(_0x3b0b3e._0x2241a9)] : 'list_tasks\x20failed', !![]);
|
|
2110
2078
|
}
|
|
2111
|
-
}),
|
|
2112
|
-
'channel':
|
|
2113
|
-
'idempotency_key':
|
|
2114
|
-
'tasks':
|
|
2115
|
-
'title':
|
|
2116
|
-
'description':
|
|
2117
|
-
'priority':
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
])[
|
|
2079
|
+
}), _0x2bff0e['tool']('create_tasks', _0x17332e(0x283), {
|
|
2080
|
+
'channel': _0x7bc2e[_0x17332e(0x2c9)](),
|
|
2081
|
+
'idempotency_key': _0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]()['optional'](),
|
|
2082
|
+
'tasks': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e['object']({
|
|
2083
|
+
'title': _0x7bc2e[_0x17332e(0x2c9)](),
|
|
2084
|
+
'description': _0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]()['optional'](),
|
|
2085
|
+
'priority': _0x7bc2e[_0x17332e(_0x23265a._0x5a6738)]([
|
|
2086
|
+
_0x17332e(0x225),
|
|
2087
|
+
_0x17332e(_0x23265a._0x1c5914),
|
|
2088
|
+
_0x17332e(0x29c),
|
|
2089
|
+
_0x17332e(_0x23265a._0x29819b)
|
|
2090
|
+
])[_0x17332e(0x1dc)]()
|
|
2123
2091
|
}))
|
|
2124
|
-
}, async
|
|
2125
|
-
const
|
|
2092
|
+
}, async _0x5b7d43 => {
|
|
2093
|
+
const _0x5e1c50 = _0x17332e;
|
|
2126
2094
|
try {
|
|
2127
|
-
return textResult(await
|
|
2128
|
-
} catch (
|
|
2129
|
-
return textResult(
|
|
2095
|
+
return textResult(await _0x4b3a84[_0x5e1c50(0x17f)](_0x5b7d43));
|
|
2096
|
+
} catch (_0x4152e1) {
|
|
2097
|
+
return textResult(_0x4152e1 instanceof Error ? _0x4152e1[_0x5e1c50(_0x52eaf1._0x540c0e)] : 'create_tasks\x20failed', !![]);
|
|
2130
2098
|
}
|
|
2131
|
-
}),
|
|
2132
|
-
'channel':
|
|
2133
|
-
'task_numbers':
|
|
2134
|
-
'message_ids':
|
|
2135
|
-
'evidence':
|
|
2136
|
-
'create_thread':
|
|
2137
|
-
'create_task':
|
|
2138
|
-
}))[
|
|
2139
|
-
'idempotency_key':
|
|
2140
|
-
}, async
|
|
2141
|
-
const
|
|
2099
|
+
}), _0x2bff0e['tool'](_0x17332e(0x24e), _0x17332e(_0x23265a._0x48dbc8), {
|
|
2100
|
+
'channel': _0x7bc2e[_0x17332e(_0x23265a._0x2db687)](),
|
|
2101
|
+
'task_numbers': _0x7bc2e['array'](_0x7bc2e['number']())[_0x17332e(0x1dc)](),
|
|
2102
|
+
'message_ids': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(0x2c9)]())[_0x17332e(_0x23265a._0x33e509)](),
|
|
2103
|
+
'evidence': _0x7bc2e[_0x17332e(0x2c0)](_0x7bc2e[_0x17332e(0x2c9)](), _0x7bc2e[_0x17332e(_0x23265a._0x1878ff)]({
|
|
2104
|
+
'create_thread': _0x7bc2e['unknown']()[_0x17332e(0x1dc)](),
|
|
2105
|
+
'create_task': _0x7bc2e[_0x17332e(_0x23265a._0x386995)]()[_0x17332e(_0x23265a._0x4b71a5)]()
|
|
2106
|
+
}))['optional'](),
|
|
2107
|
+
'idempotency_key': _0x7bc2e['string']()[_0x17332e(_0x23265a._0x4b71a5)]()
|
|
2108
|
+
}, async _0x327d6d => {
|
|
2109
|
+
const _0x22d454 = _0x17332e;
|
|
2142
2110
|
try {
|
|
2143
|
-
return textResult(await
|
|
2144
|
-
} catch (
|
|
2145
|
-
return textResult(
|
|
2111
|
+
return textResult(await _0x4b3a84[_0x22d454(0x24e)](_0x327d6d));
|
|
2112
|
+
} catch (_0x24359c) {
|
|
2113
|
+
return textResult(_0x24359c instanceof Error ? _0x24359c['message'] : _0x22d454(0x2c3), !![]);
|
|
2146
2114
|
}
|
|
2147
|
-
}),
|
|
2148
|
-
'channel':
|
|
2149
|
-
'task_number':
|
|
2150
|
-
'idempotency_key':
|
|
2151
|
-
}, async
|
|
2152
|
-
const
|
|
2115
|
+
}), _0x2bff0e[_0x17332e(0x197)](_0x17332e(_0x23265a._0x31613e), _0x17332e(_0x23265a._0x528d8e), {
|
|
2116
|
+
'channel': _0x7bc2e[_0x17332e(_0x23265a._0x2db687)](),
|
|
2117
|
+
'task_number': _0x7bc2e[_0x17332e(0x1f3)](),
|
|
2118
|
+
'idempotency_key': _0x7bc2e[_0x17332e(_0x23265a._0x48e2b7)]()[_0x17332e(_0x23265a._0x33e509)]()
|
|
2119
|
+
}, async _0x4933ac => {
|
|
2120
|
+
const _0x38436d = _0x17332e;
|
|
2153
2121
|
try {
|
|
2154
|
-
return textResult(await
|
|
2155
|
-
} catch (
|
|
2156
|
-
return textResult(
|
|
2122
|
+
return textResult(await _0x4b3a84['unclaim_task'](_0x4933ac));
|
|
2123
|
+
} catch (_0x4a0bb7) {
|
|
2124
|
+
return textResult(_0x4a0bb7 instanceof Error ? _0x4a0bb7['message'] : _0x38436d(_0x180d4d._0x2cd15d), !![]);
|
|
2157
2125
|
}
|
|
2158
|
-
}),
|
|
2159
|
-
'channel':
|
|
2160
|
-
'task_number':
|
|
2161
|
-
'status':
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2126
|
+
}), _0x2bff0e[_0x17332e(_0x23265a._0x588314)](_0x17332e(_0x23265a._0x2f74fd), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.', {
|
|
2127
|
+
'channel': _0x7bc2e[_0x17332e(_0x23265a._0x5a5277)](),
|
|
2128
|
+
'task_number': _0x7bc2e[_0x17332e(_0x23265a._0x2793c9)](),
|
|
2129
|
+
'status': _0x7bc2e[_0x17332e(_0x23265a._0x2c2625)]([
|
|
2130
|
+
'todo',
|
|
2131
|
+
'in_progress',
|
|
2132
|
+
'in_review',
|
|
2165
2133
|
'done'
|
|
2166
2134
|
]),
|
|
2167
|
-
'idempotency_key':
|
|
2168
|
-
}, async
|
|
2169
|
-
const
|
|
2135
|
+
'idempotency_key': _0x7bc2e[_0x17332e(_0x23265a._0x2db687)]()[_0x17332e(0x1dc)]()
|
|
2136
|
+
}, async _0x46d858 => {
|
|
2137
|
+
const _0x56d98c = _0x17332e;
|
|
2170
2138
|
try {
|
|
2171
|
-
return textResult(await
|
|
2172
|
-
} catch (
|
|
2173
|
-
return textResult(
|
|
2139
|
+
return textResult(await _0x4b3a84[_0x56d98c(_0xabb27._0x16ee01)](_0x46d858));
|
|
2140
|
+
} catch (_0x4f86b4) {
|
|
2141
|
+
return textResult(_0x4f86b4 instanceof Error ? _0x4f86b4['message'] : _0x56d98c(0x266), !![]);
|
|
2174
2142
|
}
|
|
2175
|
-
}),
|
|
2176
|
-
'channel':
|
|
2177
|
-
'file_path':
|
|
2178
|
-
}, async
|
|
2179
|
-
const
|
|
2143
|
+
}), _0x2bff0e['tool']('upload_file', 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2144
|
+
'channel': _0x7bc2e[_0x17332e(_0x23265a._0xbf3e8f)](),
|
|
2145
|
+
'file_path': _0x7bc2e[_0x17332e(_0x23265a._0x57a62d)]()
|
|
2146
|
+
}, async _0x1ebcbd => {
|
|
2147
|
+
const _0x78ddc1 = _0x17332e;
|
|
2180
2148
|
try {
|
|
2181
|
-
return textResult(await
|
|
2182
|
-
} catch (
|
|
2183
|
-
return textResult(
|
|
2149
|
+
return textResult(await _0x4b3a84[_0x78ddc1(0x29a)](_0x1ebcbd));
|
|
2150
|
+
} catch (_0x4c7b00) {
|
|
2151
|
+
return textResult(_0x4c7b00 instanceof Error ? _0x4c7b00[_0x78ddc1(_0x2ccb54._0x7dda06)] : _0x78ddc1(0x1cd), !![]);
|
|
2184
2152
|
}
|
|
2185
|
-
}),
|
|
2186
|
-
const
|
|
2153
|
+
}), _0x2bff0e[_0x17332e(0x197)](_0x17332e(0x239), _0x17332e(_0x23265a._0x26d812), { 'attachment_id': _0x7bc2e[_0x17332e(0x2c9)]() }, async _0x145bd3 => {
|
|
2154
|
+
const _0x394e0b = _0x17332e;
|
|
2187
2155
|
try {
|
|
2188
|
-
return textResult(await
|
|
2189
|
-
} catch (
|
|
2190
|
-
return textResult(
|
|
2156
|
+
return textResult(await _0x4b3a84[_0x394e0b(_0x54f4f5._0xed5de7)](_0x145bd3));
|
|
2157
|
+
} catch (_0x13e20b) {
|
|
2158
|
+
return textResult(_0x13e20b instanceof Error ? _0x13e20b[_0x394e0b(_0x54f4f5._0x284f7f)] : 'view_file\x20failed', !![]);
|
|
2191
2159
|
}
|
|
2192
|
-
}),
|
|
2193
|
-
const
|
|
2160
|
+
}), _0x2bff0e[_0x17332e(_0x23265a._0x13428f)](_0x17332e(0x1bb), _0x17332e(0x2f1), { 'work_key': _0x7bc2e[_0x17332e(0x2c9)]() }, async _0x3aa78a => {
|
|
2161
|
+
const _0x80a356 = _0x17332e;
|
|
2194
2162
|
try {
|
|
2195
|
-
return textResult(await
|
|
2196
|
-
} catch (
|
|
2197
|
-
return textResult(
|
|
2163
|
+
return textResult(await _0x4b3a84[_0x80a356(_0x99c5e0._0x34c524)](_0x3aa78a));
|
|
2164
|
+
} catch (_0x14b819) {
|
|
2165
|
+
return textResult(_0x14b819 instanceof Error ? _0x14b819[_0x80a356(0x281)] : 'get_worker_status\x20failed', !![]);
|
|
2198
2166
|
}
|
|
2199
|
-
}),
|
|
2200
|
-
const
|
|
2167
|
+
}), _0x2bff0e[_0x17332e(0x197)](_0x17332e(0x26e), _0x17332e(0x194), { 'work_key': _0x7bc2e['string']() }, async _0x155071 => {
|
|
2168
|
+
const _0x4d4849 = _0x17332e;
|
|
2201
2169
|
try {
|
|
2202
|
-
return textResult(await
|
|
2203
|
-
} catch (
|
|
2204
|
-
return textResult(
|
|
2170
|
+
return textResult(await _0x4b3a84[_0x4d4849(_0x37e8ab._0x433717)](_0x155071));
|
|
2171
|
+
} catch (_0x5080fc) {
|
|
2172
|
+
return textResult(_0x5080fc instanceof Error ? _0x5080fc[_0x4d4849(_0x37e8ab._0x568637)] : _0x4d4849(0x249), !![]);
|
|
2205
2173
|
}
|
|
2206
|
-
}),
|
|
2207
|
-
'work_key':
|
|
2208
|
-
'result':
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2174
|
+
}), _0x2bff0e['tool'](_0x17332e(0x2a1), 'Signal\x20that\x20the\x20current\x20worker\x20session\x20is\x20finished\x20and\x20provide\x20a\x20result\x20summary.', {
|
|
2175
|
+
'work_key': _0x7bc2e[_0x17332e(_0x23265a._0x5a5277)](),
|
|
2176
|
+
'result': _0x7bc2e['enum']([
|
|
2177
|
+
_0x17332e(0x1e7),
|
|
2178
|
+
_0x17332e(_0x23265a._0x531e2b),
|
|
2179
|
+
'failed'
|
|
2212
2180
|
]),
|
|
2213
|
-
'summary':
|
|
2214
|
-
'decisions':
|
|
2215
|
-
'files_changed':
|
|
2216
|
-
'open_issues':
|
|
2217
|
-
'next_steps':
|
|
2218
|
-
}, async
|
|
2219
|
-
const
|
|
2181
|
+
'summary': _0x7bc2e[_0x17332e(0x2c9)](),
|
|
2182
|
+
'decisions': _0x7bc2e[_0x17332e(_0x23265a._0x35c878)](_0x7bc2e['string']())['optional'](),
|
|
2183
|
+
'files_changed': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(_0x23265a._0x48bf45)]())['optional'](),
|
|
2184
|
+
'open_issues': _0x7bc2e['array'](_0x7bc2e['string']())['optional'](),
|
|
2185
|
+
'next_steps': _0x7bc2e[_0x17332e(0x222)](_0x7bc2e[_0x17332e(_0x23265a._0x5a5277)]())[_0x17332e(_0x23265a._0x4b71a5)]()
|
|
2186
|
+
}, async _0x352b1f => {
|
|
2187
|
+
const _0x1863c6 = _0x17332e;
|
|
2220
2188
|
try {
|
|
2221
|
-
return textResult(await
|
|
2222
|
-
} catch (
|
|
2223
|
-
return textResult(
|
|
2189
|
+
return textResult(await _0x4b3a84[_0x1863c6(0x2a1)](_0x352b1f));
|
|
2190
|
+
} catch (_0x25aecc) {
|
|
2191
|
+
return textResult(_0x25aecc instanceof Error ? _0x25aecc['message'] : _0x1863c6(0x286), !![]);
|
|
2224
2192
|
}
|
|
2225
|
-
}),
|
|
2226
|
-
'work_key':
|
|
2227
|
-
'reason':
|
|
2228
|
-
}, async
|
|
2229
|
-
const
|
|
2193
|
+
}), _0x2bff0e['tool']('escalate_to_main', _0x17332e(0x27c), {
|
|
2194
|
+
'work_key': _0x7bc2e[_0x17332e(0x2c9)](),
|
|
2195
|
+
'reason': _0x7bc2e[_0x17332e(_0x23265a._0x48e2b7)]()
|
|
2196
|
+
}, async _0x22440a => {
|
|
2197
|
+
const _0x202c72 = _0x17332e;
|
|
2230
2198
|
try {
|
|
2231
|
-
return textResult(await
|
|
2232
|
-
} catch (
|
|
2233
|
-
return textResult(
|
|
2199
|
+
return textResult(await _0x4b3a84[_0x202c72(_0x571331._0x549140)](_0x22440a));
|
|
2200
|
+
} catch (_0x56ee89) {
|
|
2201
|
+
return textResult(_0x56ee89 instanceof Error ? _0x56ee89[_0x202c72(_0x571331._0x4eb010)] : _0x202c72(_0x571331._0x4227e5), !![]);
|
|
2234
2202
|
}
|
|
2235
|
-
}),
|
|
2236
|
-
const
|
|
2203
|
+
}), _0x3d795d?.['workerMode'] && _0x2bff0e[_0x17332e(_0x23265a._0x4c4b48)](_0x17332e(0x2b7), _0x17332e(0x2be), { 'work_key': _0x7bc2e[_0x17332e(0x2c9)]() }, async _0x3c284d => {
|
|
2204
|
+
const _0x11e25f = _0x17332e;
|
|
2237
2205
|
try {
|
|
2238
|
-
return textResult(await
|
|
2239
|
-
} catch (
|
|
2240
|
-
return textResult(
|
|
2206
|
+
return textResult(await _0x4b3a84[_0x11e25f(0x2b7)](_0x3c284d));
|
|
2207
|
+
} catch (_0x527abb) {
|
|
2208
|
+
return textResult(_0x527abb instanceof Error ? _0x527abb[_0x11e25f(0x281)] : _0x11e25f(_0xa7c180._0x289561), !![]);
|
|
2241
2209
|
}
|
|
2242
2210
|
});
|
|
2243
2211
|
}
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2212
|
+
function _0x5931(_0x48cfc7, _0x52190c) {
|
|
2213
|
+
_0x48cfc7 = _0x48cfc7 - 0x17b;
|
|
2214
|
+
const _0x3e90c7 = _0x3e90();
|
|
2215
|
+
let _0x5931a1 = _0x3e90c7[_0x48cfc7];
|
|
2216
|
+
if (_0x5931['hPTbpZ'] === undefined) {
|
|
2217
|
+
var _0x10a547 = function (_0x5c0022) {
|
|
2218
|
+
const _0x47ebb6 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
2219
|
+
let _0x3d8400 = '', _0x41f792 = '';
|
|
2220
|
+
for (let _0x5756f4 = 0x0, _0x3a742e, _0x15cd91, _0x1fe0dc = 0x0; _0x15cd91 = _0x5c0022['charAt'](_0x1fe0dc++); ~_0x15cd91 && (_0x3a742e = _0x5756f4 % 0x4 ? _0x3a742e * 0x40 + _0x15cd91 : _0x15cd91, _0x5756f4++ % 0x4) ? _0x3d8400 += String['fromCharCode'](0xff & _0x3a742e >> (-0x2 * _0x5756f4 & 0x6)) : 0x0) {
|
|
2221
|
+
_0x15cd91 = _0x47ebb6['indexOf'](_0x15cd91);
|
|
2222
|
+
}
|
|
2223
|
+
for (let _0x1481af = 0x0, _0x594bf4 = _0x3d8400['length']; _0x1481af < _0x594bf4; _0x1481af++) {
|
|
2224
|
+
_0x41f792 += '%' + ('00' + _0x3d8400['charCodeAt'](_0x1481af)['toString'](0x10))['slice'](-0x2);
|
|
2225
|
+
}
|
|
2226
|
+
return decodeURIComponent(_0x41f792);
|
|
2227
|
+
};
|
|
2228
|
+
_0x5931['QcxbJj'] = _0x10a547, _0x5931['VjddUy'] = {}, _0x5931['hPTbpZ'] = !![];
|
|
2229
|
+
}
|
|
2230
|
+
const _0x17ecd4 = _0x3e90c7[0x0], _0x23d328 = _0x48cfc7 + _0x17ecd4, _0x1cc221 = _0x5931['VjddUy'][_0x23d328];
|
|
2231
|
+
return !_0x1cc221 ? (_0x5931a1 = _0x5931['QcxbJj'](_0x5931a1), _0x5931['VjddUy'][_0x23d328] = _0x5931a1) : _0x5931a1 = _0x1cc221, _0x5931a1;
|
|
2232
|
+
}
|
|
2233
|
+
async function createChatBridgeServer(_0x160f5b) {
|
|
2234
|
+
const _0x1e5a16 = { _0x325767: 0x1f5 }, _0x3d4449 = _0xd0824a, {McpServer: _0x11c7d1} = await import(_0x3d4449(_0x1e5a16._0x325767)), _0x3ba025 = new _0x11c7d1({
|
|
2235
|
+
'name': _0x3d4449(0x2f3),
|
|
2236
|
+
'version': '0.0.0'
|
|
2237
|
+
}), _0x253361 = createChatBridgeHandlers(_0x160f5b);
|
|
2238
|
+
return await registerChatBridgeTools(_0x3ba025, _0x253361, { 'workerMode': _0x160f5b['workerMode'] }), {
|
|
2239
|
+
'handlers': _0x253361,
|
|
2240
|
+
'server': _0x3ba025
|
|
2252
2241
|
};
|
|
2253
2242
|
}
|
|
2254
|
-
function readFlag(
|
|
2255
|
-
const
|
|
2256
|
-
if (
|
|
2243
|
+
function readFlag(_0x4aa13e, _0x545e6d) {
|
|
2244
|
+
const _0x2ca026 = _0xd0824a, _0x3900ef = _0x4aa13e[_0x2ca026(0x271)](_0x545e6d);
|
|
2245
|
+
if (_0x3900ef === -0x1)
|
|
2257
2246
|
return void 0x0;
|
|
2258
|
-
return
|
|
2247
|
+
return _0x4aa13e[_0x3900ef + 0x1];
|
|
2259
2248
|
}
|
|
2260
|
-
function parseChatBridgeArgs(
|
|
2261
|
-
const
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
if (!
|
|
2271
|
-
throw new Error(
|
|
2272
|
-
if (!
|
|
2273
|
-
throw new Error(
|
|
2274
|
-
if (_0x4c8166 !== void 0x0 && (_0x272199 === void 0x0 || !Number['isFinite'](_0x272199) || _0x272199 < 0x0))
|
|
2275
|
-
throw new Error(_0x402e32(_0x1ade3b._0x2c58ed));
|
|
2249
|
+
function parseChatBridgeArgs(_0x4c9684) {
|
|
2250
|
+
const _0x3ccfb7 = {
|
|
2251
|
+
_0x296c74: 0x1ba,
|
|
2252
|
+
_0x2ba561: 0x20a,
|
|
2253
|
+
_0x354c6b: 0x287,
|
|
2254
|
+
_0x47098c: 0x2f2,
|
|
2255
|
+
_0x58fd55: 0x204
|
|
2256
|
+
}, _0x125ebe = _0xd0824a, _0x4de9ee = readFlag(_0x4c9684, _0x125ebe(0x1de)), _0x336716 = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x296c74)), _0x4786b5 = readFlag(_0x4c9684, _0x125ebe(0x261)), _0x425875 = readFlag(_0x4c9684, '--server-url') ?? 'http://localhost:8121', _0x2dbf9c = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x2ba561)), _0x18fa29 = readFlag(_0x4c9684, _0x125ebe(0x180)), _0x244f6f = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x354c6b)), _0x1e6140 = readFlag(_0x4c9684, _0x125ebe(_0x3ccfb7._0x47098c)), _0x313fd6 = readFlag(_0x4c9684, _0x125ebe(0x214)), _0x1f2709 = _0x4c9684['includes'](_0x125ebe(0x1c6)), _0x5aea68 = _0x4786b5 === void 0x0 ? void 0x0 : Number[_0x125ebe(_0x3ccfb7._0x58fd55)](_0x4786b5, 0xa);
|
|
2257
|
+
if (!_0x4de9ee)
|
|
2258
|
+
throw new Error(_0x125ebe(0x273));
|
|
2259
|
+
if (!_0x336716)
|
|
2260
|
+
throw new Error(_0x125ebe(0x1ab));
|
|
2261
|
+
if (_0x4786b5 !== void 0x0 && (_0x5aea68 === void 0x0 || !Number['isFinite'](_0x5aea68) || _0x5aea68 < 0x0))
|
|
2262
|
+
throw new Error(_0x125ebe(0x1a1));
|
|
2276
2263
|
return {
|
|
2277
|
-
'agentId':
|
|
2278
|
-
'daemonApiKey':
|
|
2279
|
-
'daemonLocalUrl':
|
|
2280
|
-
'initialLastSeenSeq':
|
|
2281
|
-
'sessionId':
|
|
2282
|
-
'serverUrl':
|
|
2283
|
-
'workerModeEnabled':
|
|
2284
|
-
'workerSessionId':
|
|
2285
|
-
'workerThreadTarget':
|
|
2286
|
-
'workerMode':
|
|
2264
|
+
'agentId': _0x4de9ee,
|
|
2265
|
+
'daemonApiKey': _0x336716,
|
|
2266
|
+
'daemonLocalUrl': _0x2dbf9c,
|
|
2267
|
+
'initialLastSeenSeq': _0x5aea68,
|
|
2268
|
+
'sessionId': _0x18fa29,
|
|
2269
|
+
'serverUrl': _0x425875,
|
|
2270
|
+
'workerModeEnabled': _0x244f6f === void 0x0 ? void 0x0 : _0x244f6f !== 'false',
|
|
2271
|
+
'workerSessionId': _0x1e6140,
|
|
2272
|
+
'workerThreadTarget': _0x313fd6,
|
|
2273
|
+
'workerMode': _0x1f2709
|
|
2287
2274
|
};
|
|
2288
2275
|
}
|
|
2289
|
-
async function runChatBridgeCli(
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
'
|
|
2296
|
-
'
|
|
2297
|
-
'
|
|
2298
|
-
'daemonLocalUrl': _0x3f288a[_0x7f12ff(_0x1f9b42._0x5f0f2f)],
|
|
2276
|
+
async function runChatBridgeCli(_0xa391de) {
|
|
2277
|
+
const _0x5cd43e = {
|
|
2278
|
+
_0x35cd66: 0x2dc,
|
|
2279
|
+
_0x402f29: 0x18b
|
|
2280
|
+
}, _0xbbda71 = _0xd0824a, _0x11cf24 = parseChatBridgeArgs(_0xa391de), {StdioServerTransport: _0x44a6f9} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x44f745 = createInternalAgentClient(_0x11cf24), _0x15f98c = createAttachmentCache(), _0x2df31f = await createChatBridgeServer({
|
|
2281
|
+
'agentId': _0x11cf24[_0xbbda71(0x221)],
|
|
2282
|
+
'attachmentCache': _0x15f98c,
|
|
2283
|
+
'client': _0x44f745,
|
|
2284
|
+
'daemonLocalUrl': _0x11cf24[_0xbbda71(0x29d)],
|
|
2299
2285
|
'uploadPreparer': prepareUploadFile,
|
|
2300
|
-
'workerModeEnabled':
|
|
2301
|
-
'workerMode':
|
|
2286
|
+
'workerModeEnabled': _0x11cf24[_0xbbda71(0x1f2)],
|
|
2287
|
+
'workerMode': _0x11cf24[_0xbbda71(0x231)]
|
|
2302
2288
|
});
|
|
2303
|
-
await
|
|
2289
|
+
await _0x2df31f[_0xbbda71(_0x5cd43e._0x35cd66)][_0xbbda71(_0x5cd43e._0x402f29)](new _0x44a6f9());
|
|
2304
2290
|
}
|
|
2305
|
-
var executedAsEntry = process[
|
|
2306
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2291
|
+
var executedAsEntry = process[_0xd0824a(0x27f)][0x1] ? import.meta.url === pathToFileURL(process[_0xd0824a(0x27f)][0x1])['href'] : ![];
|
|
2292
|
+
executedAsEntry && await runChatBridgeCli(process[_0xd0824a(0x27f)][_0xd0824a(0x1b4)](0x2));
|
|
2307
2293
|
export {
|
|
2308
2294
|
createChatBridgeHandlers,
|
|
2309
2295
|
createChatBridgeServer,
|