@dscord/daemon 0.1.59 → 0.1.61
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 +2010 -1979
- package/dist/index.js +9642 -9719
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,2375 +1,2406 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'
|
|
36
|
-
'
|
|
1
|
+
const _0x28aee3 = _0x41c3;
|
|
2
|
+
(function (_0xacd2a3, _0xb873aa) {
|
|
3
|
+
const _0x12acd0 = {
|
|
4
|
+
_0x263696: 0x1d4,
|
|
5
|
+
_0x396063: 0x1e4,
|
|
6
|
+
_0x2813bc: 0x1f9,
|
|
7
|
+
_0x1114d0: 0x164,
|
|
8
|
+
_0x34722e: 0x224,
|
|
9
|
+
_0x35bc8b: 0x2e1,
|
|
10
|
+
_0x409d5b: 0x1f2
|
|
11
|
+
}, _0x5c3c54 = _0x41c3, _0x25f892 = _0xacd2a3();
|
|
12
|
+
while (!![]) {
|
|
13
|
+
try {
|
|
14
|
+
const _0x3c3c5c = -parseInt(_0x5c3c54(_0x12acd0._0x263696)) / 0x1 * (parseInt(_0x5c3c54(_0x12acd0._0x396063)) / 0x2) + -parseInt(_0x5c3c54(_0x12acd0._0x2813bc)) / 0x3 + -parseInt(_0x5c3c54(0x1af)) / 0x4 + -parseInt(_0x5c3c54(0x191)) / 0x5 + parseInt(_0x5c3c54(0x261)) / 0x6 + -parseInt(_0x5c3c54(_0x12acd0._0x1114d0)) / 0x7 * (parseInt(_0x5c3c54(_0x12acd0._0x34722e)) / 0x8) + parseInt(_0x5c3c54(_0x12acd0._0x35bc8b)) / 0x9 * (parseInt(_0x5c3c54(_0x12acd0._0x409d5b)) / 0xa);
|
|
15
|
+
if (_0x3c3c5c === _0xb873aa)
|
|
16
|
+
break;
|
|
17
|
+
else
|
|
18
|
+
_0x25f892['push'](_0x25f892['shift']());
|
|
19
|
+
} catch (_0x14dc2b) {
|
|
20
|
+
_0x25f892['push'](_0x25f892['shift']());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}(_0x2e92, 0x8f73a));
|
|
24
|
+
import { pathToFileURL } from 'node:url';
|
|
25
|
+
import {
|
|
26
|
+
mkdir,
|
|
27
|
+
readFile,
|
|
28
|
+
readdir,
|
|
29
|
+
stat,
|
|
30
|
+
writeFile
|
|
31
|
+
} from 'node:fs/promises';
|
|
32
|
+
import { homedir } from 'node:os';
|
|
33
|
+
import _0x35e736 from 'node:path';
|
|
34
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
35
|
+
'.csv': _0x28aee3(0x25a),
|
|
36
|
+
'.gif': 'image/gif',
|
|
37
|
+
'.jpeg': _0x28aee3(0x2c0),
|
|
38
|
+
'.jpg': _0x28aee3(0x2c0),
|
|
39
|
+
'.json': _0x28aee3(0x287),
|
|
40
|
+
'.md': _0x28aee3(0x2e5),
|
|
41
|
+
'.pdf': _0x28aee3(0x271),
|
|
42
|
+
'.png': _0x28aee3(0x185),
|
|
43
|
+
'.svg': 'image/svg+xml',
|
|
44
|
+
'.txt': 'text/plain',
|
|
45
|
+
'.webp': _0x28aee3(0x2c7),
|
|
46
|
+
'.xml': _0x28aee3(0x26f),
|
|
47
|
+
'.zip': _0x28aee3(0x212)
|
|
48
|
+
};
|
|
49
|
+
function guessContentType(_0x1c7992) {
|
|
50
|
+
const _0x28a0d6 = { _0x529095: 0x19e }, _0x3846fd = _0x28aee3;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x35e736[_0x3846fd(_0x28a0d6._0x529095)](_0x1c7992)[_0x3846fd(0x179)]()] ?? _0x3846fd(0x26c);
|
|
52
|
+
}
|
|
53
|
+
function safeFilename(_0x1c495b) {
|
|
54
|
+
return _0x1c495b['replace'](/[\\/]/g, '-');
|
|
55
|
+
}
|
|
56
|
+
function extensionFor(_0x328e7b) {
|
|
57
|
+
const _0x4c99da = {
|
|
58
|
+
_0x2775c8: 0x25e,
|
|
59
|
+
_0x48f1e4: 0x18f
|
|
60
|
+
}, _0x4868e8 = _0x28aee3, _0x29663a = Object[_0x4868e8(_0x4c99da._0x2775c8)](MIME_BY_EXTENSION)[_0x4868e8(0x274)](([, _0x2a02f8]) => _0x2a02f8 === _0x328e7b);
|
|
61
|
+
return _0x29663a?.[0x0] ?? _0x4868e8(_0x4c99da._0x48f1e4);
|
|
62
|
+
}
|
|
63
|
+
async function prepareUploadFile(_0x14ee6e, _0x12546d = {}) {
|
|
64
|
+
const _0x15d198 = {
|
|
65
|
+
_0x1f3315: 0x25c,
|
|
66
|
+
_0x33594d: 0x1a8,
|
|
67
|
+
_0x51b5c5: 0x1cf,
|
|
68
|
+
_0xd58696: 0x2b1
|
|
69
|
+
}, _0x44cd39 = _0x28aee3;
|
|
70
|
+
if (!_0x35e736[_0x44cd39(_0x15d198._0x1f3315)](_0x14ee6e))
|
|
71
|
+
throw new Error(_0x44cd39(_0x15d198._0x33594d));
|
|
72
|
+
const _0x247ca4 = await stat(_0x14ee6e)[_0x44cd39(0x289)](() => null);
|
|
73
|
+
if (!_0x247ca4 || !_0x247ca4[_0x44cd39(0x23a)]())
|
|
74
|
+
throw new Error('File\x20not\x20found:\x20' + _0x14ee6e);
|
|
75
|
+
const _0x10a1c1 = _0x12546d['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
76
|
+
if (_0x247ca4[_0x44cd39(_0x15d198._0x51b5c5)] > _0x10a1c1)
|
|
77
|
+
throw new Error(_0x44cd39(_0x15d198._0xd58696) + _0x247ca4['size']);
|
|
78
|
+
const _0x4556d0 = await readFile(_0x14ee6e), _0x3abaa8 = _0x35e736['basename'](_0x14ee6e);
|
|
79
|
+
return {
|
|
80
|
+
'contentBase64': _0x4556d0['toString']('base64'),
|
|
81
|
+
'contentType': guessContentType(_0x3abaa8),
|
|
82
|
+
'filename': _0x3abaa8,
|
|
83
|
+
'sizeBytes': _0x247ca4[_0x44cd39(0x1cf)]
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function createAttachmentCache(_0x2770fe = {}) {
|
|
87
|
+
const _0x42664d = { _0x3b90d2: 0x27f }, _0x2a082f = { _0x3f5266: 0x1dd }, _0x1b168e = _0x28aee3, _0x2d43c4 = _0x2770fe['cacheDir'] ?? _0x35e736['join'](homedir(), _0x1b168e(0x223), 'attachments');
|
|
88
|
+
return {
|
|
89
|
+
'cacheDir': _0x2d43c4,
|
|
90
|
+
async 'findCachedPath'(_0x514d67) {
|
|
91
|
+
const _0x592267 = _0x1b168e;
|
|
92
|
+
await mkdir(_0x2d43c4, { 'recursive': !![] });
|
|
93
|
+
const _0x339240 = await readdir(_0x2d43c4), _0x511f2f = _0x339240[_0x592267(0x274)](_0x194c07 => _0x194c07[_0x592267(0x20f)](_0x514d67 + '-') || _0x194c07['startsWith'](_0x514d67));
|
|
94
|
+
return _0x511f2f ? _0x35e736[_0x592267(_0x2a082f._0x3f5266)](_0x2d43c4, _0x511f2f) : null;
|
|
95
|
+
},
|
|
96
|
+
async 'save'(_0x5b1aaf) {
|
|
97
|
+
const _0x1ba3a8 = _0x1b168e;
|
|
98
|
+
await mkdir(_0x2d43c4, { 'recursive': !![] });
|
|
99
|
+
const _0x40a70f = _0x5b1aaf['originalFilename']?.[_0x1ba3a8(0x1f6)]() ? safeFilename(_0x5b1aaf[_0x1ba3a8(_0x42664d._0x3b90d2)]) : '' + _0x5b1aaf['attachmentId'] + extensionFor(_0x5b1aaf['contentType']), _0x37ae84 = _0x35e736[_0x1ba3a8(0x1dd)](_0x2d43c4, _0x5b1aaf[_0x1ba3a8(0x285)] + '-' + _0x40a70f);
|
|
100
|
+
return await writeFile(_0x37ae84, _0x5b1aaf[_0x1ba3a8(0x264)]), _0x37ae84;
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
function _0x2e92() {
|
|
105
|
+
const _0x2fb423 = [
|
|
106
|
+
'C2vUzgvYtMfTzq',
|
|
37
107
|
'ANnVBG',
|
|
38
|
-
'
|
|
39
|
-
'vgfZAYa',
|
|
40
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
41
|
-
'CMvZCg9UC2u',
|
|
42
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
43
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
44
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
45
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
46
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
47
|
-
'y2XHAw1uyxnRCW',
|
|
48
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
49
|
-
'CMvHC29U',
|
|
50
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
51
|
-
'DgHYzwfKtNvTyMvY',
|
|
52
|
-
'l2HPC3rVCNK/',
|
|
53
|
-
'D3m6',
|
|
54
|
-
'ihr5Cgu9ywDLBNq',
|
|
55
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
56
|
-
'ChjVDg9JB2W',
|
|
108
|
+
'AxnbCNjHEq',
|
|
57
109
|
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'l3vWBg9Hza',
|
|
63
|
-
'D29YA2vYCW',
|
|
64
|
-
'DgfYz2v0',
|
|
65
|
-
'y2HPBgrYzw5eB25L',
|
|
110
|
+
'yxjYyxLcDwzMzxi',
|
|
111
|
+
'w3rHCMDLDd0',
|
|
112
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
113
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
66
114
|
'Dw5RBM93BG',
|
|
67
|
-
'
|
|
68
|
-
'zMLSDgvY',
|
|
69
|
-
'ywjVCNq',
|
|
70
|
-
'ig1LC3nHz2u9',
|
|
71
|
-
'ywDLBNq',
|
|
72
|
-
'C3rHCNrZv2L0Aa',
|
|
73
|
-
'z2v0twLUDxrLCW',
|
|
74
|
-
'z2v0u2vJB25KCW',
|
|
75
|
-
'zxH0BMfTzq',
|
|
76
|
-
'y29UBMvJDa',
|
|
77
|
-
'zMLSzv9WyxrO',
|
|
78
|
-
'y29UDgvUDfr5Cgu',
|
|
79
|
-
'w3nLCt0',
|
|
80
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
81
|
-
'v29YA2vYia',
|
|
82
|
-
'C3rYAw5N',
|
|
83
|
-
'ig1LC3nHz2vZkqOk',
|
|
84
|
-
'ChvZAa',
|
|
85
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
86
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
87
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
88
|
-
'6k+35Rgcia',
|
|
89
|
-
'B3b0Aw9UywW',
|
|
90
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
91
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
92
|
-
'mZbIsxziCva',
|
|
93
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
94
|
-
'y2XHAw0GzMfPBgvK',
|
|
95
|
-
'AgfZ',
|
|
96
|
-
'y3jLyxrLvgfZA3m',
|
|
97
|
-
'D29YA2vY',
|
|
98
|
-
'zgfLBw9UqxbPs2v5',
|
|
99
|
-
'v29YA2vYici',
|
|
100
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
101
|
-
'yxr0ywnOBwvUDhm',
|
|
102
|
-
'zw51Bq',
|
|
103
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
115
|
+
'D29YA2vYtw9Kzq',
|
|
104
116
|
'BgLTAxq',
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'Cgf5Bg9HzePZB24',
|
|
112
|
-
'yxnPzgu',
|
|
113
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
114
|
-
'BgLZDfnLCNzLCG',
|
|
115
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
116
|
-
'zg0T',
|
|
117
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
118
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
119
|
-
'BwvZC2fNzv9Pzhm',
|
|
120
|
-
'zNjVBq',
|
|
121
|
-
'CxvLDwvK',
|
|
122
|
-
'ywDNCMvNyxrLswrZ',
|
|
123
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
124
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
125
|
-
'C2vZC2LVBKLK',
|
|
126
|
-
'ig1ZzZ0',
|
|
127
|
-
'CgfYA193B3jRzxi',
|
|
128
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
129
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
130
|
-
'Aw5JBhvKzxm',
|
|
131
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
132
|
-
'CMvZDwX0CW',
|
|
133
|
-
'CgfYDgLJAxbHBNrjza',
|
|
134
|
-
'zgvZy3jPyMu',
|
|
135
|
-
'C2vYDMvY',
|
|
136
|
-
'ywDLBNrjza',
|
|
137
|
-
'y29UDgvUDa',
|
|
138
|
-
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
139
|
-
'DgfZAW',
|
|
117
|
+
'DgHYzwfK',
|
|
118
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
119
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
120
|
+
'mJKWodq1mLvKrMvVva',
|
|
121
|
+
'C3rHDhvZ',
|
|
122
|
+
'DMfSDwvZ',
|
|
140
123
|
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
141
|
-
'
|
|
142
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
124
|
+
'CMvHC29U',
|
|
143
125
|
'AgfZtw9Yzq',
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
126
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
127
|
+
'C2LNBMfS',
|
|
128
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
129
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
130
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
131
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
132
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
133
|
+
'ls1Zzxj2zxiTDxjS',
|
|
134
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
135
|
+
'Dg9KBW',
|
|
136
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
137
|
+
'iYmJienOyw5UzwXZ',
|
|
138
|
+
'CMvHzeHPC3rVCNK',
|
|
139
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
140
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
141
|
+
'DgvZDa',
|
|
142
|
+
'ig1LC3nHz2u9',
|
|
143
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
144
|
+
'Bg9JywXLq29TCgfYzq',
|
|
145
|
+
'zxzLBNrtzxe',
|
|
151
146
|
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
147
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
148
|
+
'BgLZDf90yxnRCW',
|
|
149
|
+
'C2vX',
|
|
150
|
+
'DgfZA19Pza',
|
|
151
|
+
'zxHWAxjLC0f0',
|
|
152
|
+
'C2L6zq',
|
|
153
|
+
'ChjVDg9JB2W',
|
|
154
|
+
'D29YA2vY',
|
|
155
|
+
'DgfZA3m',
|
|
156
|
+
'y2HHBM5LBhm',
|
|
157
|
+
'mu51BgD3BG',
|
|
158
|
+
'DxrMoa',
|
|
159
|
+
'C2vUzgvYvhLWzq',
|
|
160
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
161
|
+
'ywDNCMvNyxrLswq',
|
|
152
162
|
'D29YA2vYtw9KzuvUywjSzwq',
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
163
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
164
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
165
|
+
'BM93',
|
|
166
|
+
'AM9PBG',
|
|
167
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
168
|
+
'DgfYz2v0zwruyxnR',
|
|
158
169
|
'BwvKAxvT',
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
170
|
+
'y2HLy2TnzxnZywDLCW',
|
|
171
|
+
'DgHYzwfKvgfYz2v0',
|
|
172
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
173
|
+
'ndm3ntu4BKX3uwTJ',
|
|
174
|
+
'BMfTzq',
|
|
175
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
176
|
+
'xsba',
|
|
177
|
+
'y3jLyxrLx3rHC2TZ',
|
|
178
|
+
'zM9Yy2vszwzYzxnO',
|
|
179
|
+
'Ahr0Chm6',
|
|
180
|
+
'C2nOzwr1BgvKrM9Y',
|
|
181
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
182
|
+
'ywDLBNq',
|
|
183
|
+
'ktSGz290ignOyw5UzwW9',
|
|
184
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
185
|
+
'iIbUB3qGzM91BMq',
|
|
186
|
+
'yxv0BZO',
|
|
187
|
+
'mJbStML4rLe',
|
|
188
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
189
|
+
'BgLZDf9Zzxj2zxi',
|
|
190
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
191
|
+
'DhjPBq',
|
|
180
192
|
'Dg9VBa',
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'Ahr0CdO',
|
|
187
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
193
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
194
|
+
'ndK1ntm0BMrRseTf',
|
|
195
|
+
'igLUia',
|
|
196
|
+
'y2HHBM5LBe5HBwu',
|
|
197
|
+
'yM9KEvrLEhq',
|
|
188
198
|
'AhvTyw4',
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
199
|
-
'
|
|
200
|
-
'
|
|
201
|
-
'Dgv4Da',
|
|
202
|
-
'xsba',
|
|
203
|
-
'zMv0y2HjBxbS',
|
|
204
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
205
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
199
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
200
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
201
|
+
'Aw5KzxHpzG',
|
|
202
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
203
|
+
'y3vYC29Y',
|
|
204
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
205
|
+
'Bwf0y2Hoyw1L',
|
|
206
|
+
'zgvZDhjVEwvK',
|
|
207
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
208
|
+
'zNjVBq',
|
|
209
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
210
|
+
'vgfZAYa',
|
|
206
211
|
'Dw5JBgfPBvrHC2S',
|
|
207
|
-
'
|
|
208
|
-
'
|
|
212
|
+
'BwvZC2fNzxm',
|
|
213
|
+
'C3rYAw5N',
|
|
214
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
215
|
+
'l3vWBg9Hza',
|
|
216
|
+
'C3rHCNrZv2L0Aa',
|
|
217
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
209
218
|
'sfruuca',
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
219
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
220
|
+
'ignSywLTzwq',
|
|
221
|
+
'BwvTyMvYCW',
|
|
222
|
+
'CgfYDgLJAxbHBNrjza',
|
|
223
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
224
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
225
|
+
'yM9KEu1HCMTKB3DU',
|
|
215
226
|
'DxbSB2fKx2zPBgu',
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
228
|
-
'yM9KEvrLEhq',
|
|
229
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
230
|
-
'BgLZDf90yxnRCW',
|
|
231
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
227
|
+
'y2HHDa',
|
|
228
|
+
'yMvMB3jL',
|
|
229
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
230
|
+
'ChvIBgLJ',
|
|
231
|
+
'DgHYzwfKu2HVCNrjza',
|
|
232
|
+
'ihr5Cgu9ywDLBNq',
|
|
233
|
+
'6k+35Rgcia',
|
|
234
|
+
'AxngAw5PDgu',
|
|
235
|
+
'y2XHAw1uyxnRCW',
|
|
236
|
+
'lMrZy29Yza',
|
|
237
|
+
'mZGZmZm2yMfcu2T5',
|
|
232
238
|
'Bwf4',
|
|
233
|
-
'
|
|
239
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
240
|
+
'CgfKu3rHCNq',
|
|
241
|
+
'C29YDa',
|
|
242
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
243
|
+
'cGOTls0G',
|
|
244
|
+
'CxvLDwvK',
|
|
245
|
+
'C2vYDMvY',
|
|
246
|
+
'l3nLCNzLCG',
|
|
247
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
248
|
+
'DxbKyxrL',
|
|
234
249
|
'ls1ZzxnZAw9UlwLK',
|
|
235
|
-
'
|
|
250
|
+
'y29UDgvUDc10ExbL',
|
|
251
|
+
'y2HHBM5LBeLK',
|
|
252
|
+
'C2HHmJu2',
|
|
253
|
+
'D3m6',
|
|
254
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
255
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
236
256
|
'zMfSC2u',
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'
|
|
257
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
258
|
+
'zg06',
|
|
259
|
+
'AxngAwXL',
|
|
260
|
+
'AwrSzq',
|
|
261
|
+
'CMvZCg9UC2u',
|
|
262
|
+
'C3rVCe1HAw4',
|
|
263
|
+
'zMLSDgvY',
|
|
241
264
|
'zMv0y2HuAw1LB3v0txm',
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
265
|
+
'C2XPy2u',
|
|
266
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
267
|
+
'ywDNCMvNyxrLswrZ',
|
|
268
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
269
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
270
|
+
'Dg9ju09tDhjPBMC',
|
|
271
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
272
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
273
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
274
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
275
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
276
|
+
'C2L6zuj5DgvZ',
|
|
277
|
+
'ihn0yxr1CZ0',
|
|
278
|
+
'DhLWzq',
|
|
279
|
+
'yxnPzgu',
|
|
280
|
+
'l3jLy2vPDMu',
|
|
281
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
282
|
+
'Dgv4Da',
|
|
283
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
284
|
+
'y3jLyxrLvgfZA3m',
|
|
285
|
+
'C2vUzf9TzxnZywDL',
|
|
286
|
+
'kgXLz2fJEsK',
|
|
287
|
+
'B3b0Aw9UywW',
|
|
288
|
+
'DxnLCG',
|
|
289
|
+
'C3vJy2vZCW',
|
|
290
|
+
'CNvUBMLUzW',
|
|
291
|
+
'Dgv4Dc9JC3y',
|
|
292
|
+
'igTPBMq9',
|
|
246
293
|
'AxnbyNnVBhv0zq',
|
|
247
|
-
'
|
|
248
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
249
|
-
'ywDNCMvNyxrLswq',
|
|
250
|
-
'igzHAwXLzdOG',
|
|
251
|
-
'zgf0yq',
|
|
252
|
-
'DgHYzwfKvgfYz2v0',
|
|
253
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
254
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
255
|
-
'yxv0BZO',
|
|
256
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
257
|
-
'AxnbCNjHEq',
|
|
294
|
+
'v29YA2vYici',
|
|
258
295
|
'zw50CMLLCW',
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
296
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
297
|
+
'CgfYA193B3jRzxi',
|
|
298
|
+
'mZq5nti2neDpuK9NDq',
|
|
299
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
300
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
301
|
+
'zgf0yq',
|
|
302
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
303
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
304
|
+
'z2v0rNvSBfLLyxi',
|
|
305
|
+
'AhvTyw5Z',
|
|
306
|
+
'CM9VDe1LC3nHz2vjza',
|
|
307
|
+
'iYmGu2vYDMvYoIa',
|
|
308
|
+
'zMLSzv9WyxrO',
|
|
309
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
310
|
+
'zxjYB3i',
|
|
311
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
312
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
313
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
314
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
269
315
|
'BwfW',
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
316
|
+
'C2v0',
|
|
317
|
+
'zMLUza',
|
|
318
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
319
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
320
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
321
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
322
|
+
'AgvHzgvYCW',
|
|
323
|
+
'l3rHC2TZl2nSywLT',
|
|
324
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
325
|
+
'pgvTChr5pG',
|
|
275
326
|
'C2vUze1LC3nHz2u',
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'
|
|
327
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
328
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
329
|
+
'y2HPBgrYzw5eB25L',
|
|
330
|
+
'AxnjBNrLz2vY',
|
|
331
|
+
'Dw5JBgfPBv90yxnR',
|
|
332
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
333
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
334
|
+
'yxr0ywnOBwvUDeLK',
|
|
335
|
+
'z2v0',
|
|
336
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
337
|
+
'r0vu',
|
|
338
|
+
'y2f0y2G',
|
|
339
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
282
340
|
'zgLZCg9ZAxrPB24',
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'lsaJ',
|
|
288
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
289
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
290
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
291
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
292
|
-
'iYmJiefNzw50CW',
|
|
293
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
294
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
295
|
-
'DMLZAwjPBgL0Eq',
|
|
296
|
-
'C3rYAw5NAwz5',
|
|
297
|
-
'Dg9KBW',
|
|
298
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
341
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
342
|
+
'iJOGC3rHDhvZpq',
|
|
343
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
344
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
299
345
|
'C3rHCNrLza',
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'yxjYyxK',
|
|
304
|
-
'C29YDa',
|
|
305
|
-
'yM9KEu1HCMTKB3DU',
|
|
306
|
-
'DgfZA19Pza',
|
|
307
|
-
'Aw1Hz2uVCg5N',
|
|
308
|
-
'D29YA19RzxK',
|
|
309
|
-
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
310
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
311
|
-
'D29YA2vYsgfUzg9MzG',
|
|
312
|
-
'iIbUB3qGzM91BMq',
|
|
313
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
314
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
315
|
-
'C2L6zuj5DgvZ',
|
|
316
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
317
|
-
'Bg93',
|
|
318
|
-
'CM9VDe1LC3nHz2vjza',
|
|
346
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
347
|
+
'kg5VBMuP',
|
|
348
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
319
349
|
'C2vYDMvYvxjS',
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
350
|
+
'ywjVCNq',
|
|
351
|
+
'ywz0zxi',
|
|
352
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
353
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
354
|
+
'l3n0yxj0',
|
|
355
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
356
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
357
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
358
|
+
'Dg9gAxHLza',
|
|
359
|
+
'DgHYzwfKtNvTyMvY',
|
|
360
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
361
|
+
'zMLSzw5HBwu',
|
|
362
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
363
|
+
'l3rHC2TZpW',
|
|
364
|
+
'ig1LC3nHz2vZkqOk',
|
|
365
|
+
'igrVBMuP',
|
|
326
366
|
'zg9Uzq',
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'
|
|
333
|
-
'
|
|
367
|
+
'C2f2zq',
|
|
368
|
+
'Cgf5Bg9HzePZB24',
|
|
369
|
+
'Aw5FCMv2Awv3',
|
|
370
|
+
'lsba',
|
|
371
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
372
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
373
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
374
|
+
'y29UBMvJDa',
|
|
375
|
+
'zgvZy3jPyMu',
|
|
376
|
+
'Bwv0yq',
|
|
377
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
378
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
379
|
+
'CMvHzf9OAxn0B3j5',
|
|
334
380
|
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
335
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
336
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
337
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
338
|
-
'ywrK',
|
|
339
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
340
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
341
|
-
'Dgv4Dc9WBgfPBG',
|
|
342
|
-
'Agv4',
|
|
343
|
-
'C2vX',
|
|
344
|
-
'iYmJienOyw5UzwXZ',
|
|
345
|
-
'zgvZDhjVEwvK',
|
|
346
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
347
|
-
'BMfTzq',
|
|
348
|
-
'BgvUz3rO',
|
|
349
|
-
'mZm4ndqWsw11A2Pq',
|
|
350
|
-
'Dw5JBgfPBv90yxnR',
|
|
351
|
-
'yxr0ywnOBwvUDeLK',
|
|
352
|
-
'D29YA2vYtw9Kzq',
|
|
353
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
354
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
355
|
-
'zxjYB3i',
|
|
356
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
357
|
-
'Dg9tDhjPBMC',
|
|
358
381
|
'BMv4Den1CNnVCG',
|
|
359
|
-
'
|
|
382
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
383
|
+
'DgfZA051BwjLCG',
|
|
384
|
+
'Ahr0CdO',
|
|
385
|
+
'lsaJ',
|
|
386
|
+
'Aw5JBhvKzxm',
|
|
387
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
388
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
389
|
+
'lIbnzxnZywDLieLeoIa',
|
|
360
390
|
'CNvUswq',
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
'
|
|
391
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
392
|
+
'z2v0rgf0zq',
|
|
393
|
+
'Aw1Hz2uVANbLzW',
|
|
394
|
+
'DgL0Bgu',
|
|
395
|
+
'y3jLyxrLzef0',
|
|
396
|
+
'zMv0y2HjBxbS',
|
|
397
|
+
'ywXS',
|
|
398
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
399
|
+
'CMvZDwX0sNnVBG',
|
|
400
|
+
'Aw1Hz2uVD2vICa',
|
|
401
|
+
'ywz0zxjtzxe',
|
|
402
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
403
|
+
'vgfZAZOG',
|
|
404
|
+
'iokaLca',
|
|
405
|
+
'l3rHC2TZ',
|
|
406
|
+
'BwvTyMvY',
|
|
407
|
+
'DxjNzw50',
|
|
408
|
+
'ihrPBwu9',
|
|
409
|
+
'CgfYC2u',
|
|
410
|
+
'DMLLD19MAwXL',
|
|
411
|
+
'CMvWBgfJzq',
|
|
412
|
+
'igzHAwXLzdOG',
|
|
413
|
+
'v29YA2vYia',
|
|
414
|
+
'DgfZA0LK',
|
|
415
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
416
|
+
'DgfYz2v0zwq',
|
|
417
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
418
|
+
'Dg9tDhjPBMC',
|
|
419
|
+
'zgvSzxrL',
|
|
420
|
+
'ig1ZzZ0',
|
|
421
|
+
'Aw5FChjVz3jLC3m',
|
|
422
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
423
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
424
|
+
'BNvTyMvY',
|
|
425
|
+
'CMvZDwX0CW',
|
|
426
|
+
'mte3otG5mtLtEMzgugq',
|
|
427
|
+
'ywrK',
|
|
364
428
|
'C3vIDgfZA051BwjLCG',
|
|
365
|
-
'
|
|
366
|
-
'
|
|
429
|
+
'A2LUza',
|
|
430
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
431
|
+
'z2v0tw9UDgG',
|
|
432
|
+
'Bg93',
|
|
433
|
+
'BwvZC2fNzq',
|
|
434
|
+
'ChvZAa',
|
|
435
|
+
'zgvZy3jPChrPB24',
|
|
436
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
437
|
+
'C3rYAw5NAwz5',
|
|
438
|
+
'y29UDgvUDa',
|
|
439
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
440
|
+
'mteYtK9krvjn',
|
|
441
|
+
'DgfZAW',
|
|
442
|
+
'zw51Bq',
|
|
443
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
444
|
+
'y29UDgvUDejHC2u2na',
|
|
445
|
+
'CMvJB3jK',
|
|
446
|
+
'zgfLBw9UqxbPs2v5',
|
|
447
|
+
'yxr0ywnOBwvUDhm',
|
|
448
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
449
|
+
'BwvZC2fNzv9Pzhm',
|
|
450
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
451
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
452
|
+
'C3bSAxq',
|
|
453
|
+
'yxjYyxK',
|
|
454
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
455
|
+
'B2jQzwn0',
|
|
456
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
457
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
458
|
+
'ywDLBNrjza',
|
|
459
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
460
|
+
'D29YA2vYCW',
|
|
367
461
|
'Dg9mB3DLCKnHC2u',
|
|
368
|
-
'
|
|
369
|
-
'
|
|
462
|
+
'yxjNDG',
|
|
463
|
+
'AgfZ',
|
|
464
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
465
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
466
|
+
'l2zPBMLZAa',
|
|
467
|
+
'AhjLzG',
|
|
468
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
469
|
+
'z2v0sg91CNm',
|
|
470
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
471
|
+
'y2XHAw1FDgfZA3m',
|
|
472
|
+
'iYmJieH1BwfUCW',
|
|
473
|
+
'Aw1Hz2uVCg5N',
|
|
474
|
+
'khvUA25VD24P',
|
|
475
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
476
|
+
'C29Tzq',
|
|
477
|
+
'z2v0twLUDxrLCW',
|
|
478
|
+
'CMvXDwvZDfvYBa',
|
|
370
479
|
'CgfYDgLJAxbHBNq',
|
|
371
|
-
'
|
|
480
|
+
'DgfYz2v0',
|
|
372
481
|
'BwvZC2fNzuLK',
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
379
|
-
'
|
|
380
|
-
'
|
|
482
|
+
'DMLZAwjPBgL0Eq',
|
|
483
|
+
'lMjPBG',
|
|
484
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
485
|
+
'mZy5nJaZmefgBxfcsq',
|
|
486
|
+
'D29YA19RzxK',
|
|
487
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
488
|
+
'DgfZAY0',
|
|
489
|
+
'zg0T',
|
|
381
490
|
'y2XPzw50',
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'AM9PBG',
|
|
393
|
-
'Aw1Hz2uVANbLzW',
|
|
394
|
-
'ls1Zzxj2zxiTDxjS',
|
|
395
|
-
'l3rHC2TZpW',
|
|
396
|
-
'C29Tzq',
|
|
397
|
-
'igrVBMuP',
|
|
398
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
399
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
400
|
-
'yMvMB3jL',
|
|
401
|
-
'ywrKrxzLBNrmAxn0zw5LCG'
|
|
491
|
+
'z2v0vgLTzq',
|
|
492
|
+
'y2HHBM5LBa',
|
|
493
|
+
'ue9tva',
|
|
494
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
495
|
+
'BgvUz3rO',
|
|
496
|
+
'ywDLBNrZ',
|
|
497
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
498
|
+
'zxH0BMfTzq',
|
|
499
|
+
'y29UDgvUDfr5Cgu',
|
|
500
|
+
'DgHYzwfKswq'
|
|
402
501
|
];
|
|
403
|
-
|
|
404
|
-
return
|
|
405
|
-
};
|
|
406
|
-
return _0x5b92();
|
|
407
|
-
}
|
|
408
|
-
const _0x77ce4b = _0x4210;
|
|
409
|
-
(function (_0x44f5a5, _0xc7f535) {
|
|
410
|
-
const _0x1f5cae = {
|
|
411
|
-
_0x3fc08c: 0x16b,
|
|
412
|
-
_0x5cfb8f: 0x12f,
|
|
413
|
-
_0x3bfd52: 0x147,
|
|
414
|
-
_0x594efe: 0x16d,
|
|
415
|
-
_0x341798: 0x20d
|
|
416
|
-
}, _0x10548d = _0x4210, _0x269c42 = _0x44f5a5();
|
|
417
|
-
while (!![]) {
|
|
418
|
-
try {
|
|
419
|
-
const _0x36c4fc = -parseInt(_0x10548d(_0x1f5cae._0x3fc08c)) / 0x1 + parseInt(_0x10548d(_0x1f5cae._0x5cfb8f)) / 0x2 + parseInt(_0x10548d(0x1d5)) / 0x3 * (-parseInt(_0x10548d(_0x1f5cae._0x3bfd52)) / 0x4) + -parseInt(_0x10548d(0x20a)) / 0x5 * (parseInt(_0x10548d(_0x1f5cae._0x594efe)) / 0x6) + parseInt(_0x10548d(0x106)) / 0x7 + -parseInt(_0x10548d(0x108)) / 0x8 * (-parseInt(_0x10548d(0x160)) / 0x9) + parseInt(_0x10548d(_0x1f5cae._0x341798)) / 0xa;
|
|
420
|
-
if (_0x36c4fc === _0xc7f535)
|
|
421
|
-
break;
|
|
422
|
-
else
|
|
423
|
-
_0x269c42['push'](_0x269c42['shift']());
|
|
424
|
-
} catch (_0x36d0c3) {
|
|
425
|
-
_0x269c42['push'](_0x269c42['shift']());
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
}(_0x5b92, 0x87302));
|
|
429
|
-
import { pathToFileURL } from 'node:url';
|
|
430
|
-
import {
|
|
431
|
-
mkdir,
|
|
432
|
-
readFile,
|
|
433
|
-
readdir,
|
|
434
|
-
stat,
|
|
435
|
-
writeFile
|
|
436
|
-
} from 'node:fs/promises';
|
|
437
|
-
import { homedir } from 'node:os';
|
|
438
|
-
import _0x3bc217 from 'node:path';
|
|
439
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
440
|
-
'.csv': _0x77ce4b(0x22a),
|
|
441
|
-
'.gif': _0x77ce4b(0x21f),
|
|
442
|
-
'.jpeg': _0x77ce4b(0x173),
|
|
443
|
-
'.jpg': _0x77ce4b(0x173),
|
|
444
|
-
'.json': _0x77ce4b(0xdc),
|
|
445
|
-
'.md': _0x77ce4b(0x22b),
|
|
446
|
-
'.pdf': _0x77ce4b(0xc2),
|
|
447
|
-
'.png': _0x77ce4b(0x11d),
|
|
448
|
-
'.svg': _0x77ce4b(0x14c),
|
|
449
|
-
'.txt': _0x77ce4b(0x13f),
|
|
450
|
-
'.webp': 'image/webp',
|
|
451
|
-
'.xml': _0x77ce4b(0xe2),
|
|
452
|
-
'.zip': _0x77ce4b(0x1ee)
|
|
453
|
-
};
|
|
454
|
-
function guessContentType(_0xe73669) {
|
|
455
|
-
const _0x4c310e = { _0x191e12: 0x1c4 }, _0x40ba56 = _0x77ce4b;
|
|
456
|
-
return MIME_BY_EXTENSION[_0x3bc217[_0x40ba56(_0x4c310e._0x191e12)](_0xe73669)[_0x40ba56(0x159)]()] ?? _0x40ba56(0x170);
|
|
457
|
-
}
|
|
458
|
-
function safeFilename(_0x3b24f5) {
|
|
459
|
-
return _0x3b24f5['replace'](/[\\/]/g, '-');
|
|
460
|
-
}
|
|
461
|
-
function extensionFor(_0x1c7017) {
|
|
462
|
-
const _0x5c0d53 = {
|
|
463
|
-
_0x44fb4c: 0xec,
|
|
464
|
-
_0x3314e3: 0xc4
|
|
465
|
-
}, _0x185b39 = _0x77ce4b, _0xb948bf = Object[_0x185b39(_0x5c0d53._0x44fb4c)](MIME_BY_EXTENSION)['find'](([, _0x4d18b5]) => _0x4d18b5 === _0x1c7017);
|
|
466
|
-
return _0xb948bf?.[0x0] ?? _0x185b39(_0x5c0d53._0x3314e3);
|
|
467
|
-
}
|
|
468
|
-
async function prepareUploadFile(_0x49c4a4, _0x1c7c61 = {}) {
|
|
469
|
-
const _0x3b2f42 = {
|
|
470
|
-
_0x4746b7: 0x1dd,
|
|
471
|
-
_0xfa8a96: 0x1c9,
|
|
472
|
-
_0x5bbe2e: 0x187,
|
|
473
|
-
_0x1d6619: 0x215
|
|
474
|
-
}, _0x2117bf = _0x77ce4b;
|
|
475
|
-
if (!_0x3bc217[_0x2117bf(0xe0)](_0x49c4a4))
|
|
476
|
-
throw new Error(_0x2117bf(0x11f));
|
|
477
|
-
const _0x519531 = await stat(_0x49c4a4)['catch'](() => null);
|
|
478
|
-
if (!_0x519531 || !_0x519531['isFile']())
|
|
479
|
-
throw new Error('File\x20not\x20found:\x20' + _0x49c4a4);
|
|
480
|
-
const _0xae7671 = _0x1c7c61[_0x2117bf(_0x3b2f42._0x4746b7)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
481
|
-
if (_0x519531['size'] > _0xae7671)
|
|
482
|
-
throw new Error(_0x2117bf(_0x3b2f42._0xfa8a96) + _0x519531[_0x2117bf(_0x3b2f42._0x5bbe2e)]);
|
|
483
|
-
const _0x22c89a = await readFile(_0x49c4a4), _0x18942e = _0x3bc217['basename'](_0x49c4a4);
|
|
484
|
-
return {
|
|
485
|
-
'contentBase64': _0x22c89a[_0x2117bf(0x14f)](_0x2117bf(_0x3b2f42._0x1d6619)),
|
|
486
|
-
'contentType': guessContentType(_0x18942e),
|
|
487
|
-
'filename': _0x18942e,
|
|
488
|
-
'sizeBytes': _0x519531[_0x2117bf(0x187)]
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
function createAttachmentCache(_0xbd544 = {}) {
|
|
492
|
-
const _0x211b68 = { _0x5572b1: 0x1de }, _0x119f69 = {
|
|
493
|
-
_0x2f2ab2: 0x18c,
|
|
494
|
-
_0x5275a3: 0xe5
|
|
495
|
-
}, _0x2c6b81 = {
|
|
496
|
-
_0x23e3e9: 0x230,
|
|
497
|
-
_0x2f76dc: 0x172
|
|
498
|
-
}, _0x8918c6 = _0x77ce4b, _0x358dad = _0xbd544['cacheDir'] ?? _0x3bc217[_0x8918c6(0x172)](homedir(), '.dscord', _0x8918c6(_0x211b68._0x5572b1));
|
|
499
|
-
return {
|
|
500
|
-
'cacheDir': _0x358dad,
|
|
501
|
-
async 'findCachedPath'(_0xb141a6) {
|
|
502
|
-
const _0x54c0d4 = _0x8918c6;
|
|
503
|
-
await mkdir(_0x358dad, { 'recursive': !![] });
|
|
504
|
-
const _0x1130c9 = await readdir(_0x358dad), _0x4a922f = _0x1130c9[_0x54c0d4(_0x2c6b81._0x23e3e9)](_0x202b18 => _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6 + '-') || _0x202b18[_0x54c0d4(0x1c1)](_0xb141a6));
|
|
505
|
-
return _0x4a922f ? _0x3bc217[_0x54c0d4(_0x2c6b81._0x2f76dc)](_0x358dad, _0x4a922f) : null;
|
|
506
|
-
},
|
|
507
|
-
async 'save'(_0x5ae7ef) {
|
|
508
|
-
const _0x2cbd63 = _0x8918c6;
|
|
509
|
-
await mkdir(_0x358dad, { 'recursive': !![] });
|
|
510
|
-
const _0x361841 = _0x5ae7ef['originalFilename']?.['trim']() ? safeFilename(_0x5ae7ef[_0x2cbd63(_0x119f69._0x2f2ab2)]) : '' + _0x5ae7ef['attachmentId'] + extensionFor(_0x5ae7ef[_0x2cbd63(0x1c7)]), _0x1ad2c9 = _0x3bc217['join'](_0x358dad, _0x5ae7ef[_0x2cbd63(0x149)] + '-' + _0x361841);
|
|
511
|
-
return await writeFile(_0x1ad2c9, _0x5ae7ef[_0x2cbd63(_0x119f69._0x5275a3)]), _0x1ad2c9;
|
|
512
|
-
}
|
|
502
|
+
_0x2e92 = function () {
|
|
503
|
+
return _0x2fb423;
|
|
513
504
|
};
|
|
505
|
+
return _0x2e92();
|
|
514
506
|
}
|
|
515
507
|
import {
|
|
516
508
|
createHash,
|
|
517
509
|
randomUUID
|
|
518
510
|
} from 'node:crypto';
|
|
519
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
520
|
-
function ensureSegment(
|
|
521
|
-
const
|
|
522
|
-
|
|
511
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x28aee3(0x201);
|
|
512
|
+
function ensureSegment(_0x2861f1) {
|
|
513
|
+
const _0x23d0d5 = {
|
|
514
|
+
_0x5d236e: 0x1f6,
|
|
515
|
+
_0x519b17: 0x2b9
|
|
516
|
+
}, _0x25f3ee = _0x28aee3, _0x499e94 = _0x2861f1[_0x25f3ee(_0x23d0d5._0x5d236e)]();
|
|
517
|
+
if (!_0x499e94 || _0x499e94[_0x25f3ee(_0x23d0d5._0x519b17)](':'))
|
|
523
518
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
524
|
-
return
|
|
519
|
+
return _0x499e94;
|
|
525
520
|
}
|
|
526
|
-
function parseThreadParts(
|
|
527
|
-
const
|
|
528
|
-
if (
|
|
521
|
+
function parseThreadParts(_0x2621af) {
|
|
522
|
+
const _0x2115d0 = { _0x4ae61a: 0x19b }, _0x2ec236 = _0x28aee3, _0x1317e7 = _0x2621af[_0x2ec236(0x170)](':');
|
|
523
|
+
if (_0x1317e7[_0x2ec236(0x19b)] < 0x1 || _0x1317e7[_0x2ec236(_0x2115d0._0x4ae61a)] > 0x2)
|
|
529
524
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
530
525
|
return {
|
|
531
|
-
'channelName': ensureSegment(
|
|
532
|
-
'threadShortId':
|
|
526
|
+
'channelName': ensureSegment(_0x1317e7[0x0] ?? ''),
|
|
527
|
+
'threadShortId': _0x1317e7[0x1] ? ensureSegment(_0x1317e7[0x1]) : null
|
|
533
528
|
};
|
|
534
529
|
}
|
|
535
|
-
function parseTarget(
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
},
|
|
546
|
-
if (!
|
|
530
|
+
function parseTarget(_0x3e4a37) {
|
|
531
|
+
const _0x585aac = {
|
|
532
|
+
_0x51f732: 0x1f6,
|
|
533
|
+
_0x10b930: 0x1fb,
|
|
534
|
+
_0x4e3b79: 0x21e,
|
|
535
|
+
_0x26f7cd: 0x20f,
|
|
536
|
+
_0x53e037: 0x239,
|
|
537
|
+
_0x449779: 0x240,
|
|
538
|
+
_0x8e27cb: 0x1fb,
|
|
539
|
+
_0x351962: 0x195
|
|
540
|
+
}, _0x5d13bc = _0x28aee3, _0x17533a = _0x3e4a37[_0x5d13bc(_0x585aac._0x51f732)]();
|
|
541
|
+
if (!_0x17533a)
|
|
547
542
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
548
|
-
if (
|
|
549
|
-
const
|
|
550
|
-
if (!
|
|
543
|
+
if (_0x17533a[_0x5d13bc(0x20f)]('#')) {
|
|
544
|
+
const _0x499d87 = parseThreadParts(_0x17533a[_0x5d13bc(0x240)](0x1)), _0x29ae25 = '#' + _0x499d87[_0x5d13bc(0x1fb)];
|
|
545
|
+
if (!_0x499d87['threadShortId'])
|
|
551
546
|
return {
|
|
552
|
-
'channelName':
|
|
553
|
-
'channelTarget':
|
|
554
|
-
'kind':
|
|
555
|
-
'target':
|
|
547
|
+
'channelName': _0x499d87[_0x5d13bc(_0x585aac._0x10b930)],
|
|
548
|
+
'channelTarget': _0x29ae25,
|
|
549
|
+
'kind': 'channel',
|
|
550
|
+
'target': _0x29ae25
|
|
556
551
|
};
|
|
557
552
|
return {
|
|
558
|
-
'channelName':
|
|
559
|
-
'channelTarget':
|
|
560
|
-
'kind':
|
|
561
|
-
'target':
|
|
562
|
-
'threadShortId':
|
|
553
|
+
'channelName': _0x499d87[_0x5d13bc(0x1fb)],
|
|
554
|
+
'channelTarget': _0x29ae25,
|
|
555
|
+
'kind': 'thread',
|
|
556
|
+
'target': _0x29ae25 + ':' + _0x499d87[_0x5d13bc(_0x585aac._0x4e3b79)],
|
|
557
|
+
'threadShortId': _0x499d87[_0x5d13bc(_0x585aac._0x4e3b79)]
|
|
563
558
|
};
|
|
564
559
|
}
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
if (!
|
|
560
|
+
if (_0x17533a[_0x5d13bc(_0x585aac._0x26f7cd)](_0x5d13bc(_0x585aac._0x53e037))) {
|
|
561
|
+
const _0x2144cd = parseThreadParts(_0x17533a[_0x5d13bc(_0x585aac._0x449779)](0x3));
|
|
562
|
+
if (!_0x2144cd[_0x5d13bc(_0x585aac._0x8e27cb)]['startsWith'](_0x5d13bc(_0x585aac._0x351962)))
|
|
568
563
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
569
|
-
const
|
|
570
|
-
if (!
|
|
564
|
+
const _0x697faf = _0x5d13bc(_0x585aac._0x53e037) + _0x2144cd['channelName'];
|
|
565
|
+
if (!_0x2144cd[_0x5d13bc(_0x585aac._0x4e3b79)])
|
|
571
566
|
return {
|
|
572
|
-
'channelName':
|
|
573
|
-
'channelTarget':
|
|
574
|
-
'kind':
|
|
575
|
-
'target':
|
|
567
|
+
'channelName': _0x2144cd[_0x5d13bc(0x1fb)],
|
|
568
|
+
'channelTarget': _0x697faf,
|
|
569
|
+
'kind': _0x5d13bc(0x198),
|
|
570
|
+
'target': _0x697faf
|
|
576
571
|
};
|
|
577
572
|
return {
|
|
578
|
-
'channelName':
|
|
579
|
-
'channelTarget':
|
|
580
|
-
'kind':
|
|
581
|
-
'target':
|
|
582
|
-
'threadShortId':
|
|
573
|
+
'channelName': _0x2144cd[_0x5d13bc(0x1fb)],
|
|
574
|
+
'channelTarget': _0x697faf,
|
|
575
|
+
'kind': 'thread',
|
|
576
|
+
'target': _0x697faf + ':' + _0x2144cd['threadShortId'],
|
|
577
|
+
'threadShortId': _0x2144cd[_0x5d13bc(0x21e)]
|
|
583
578
|
};
|
|
584
579
|
}
|
|
585
580
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
586
581
|
}
|
|
587
|
-
function asErrorMessage(
|
|
588
|
-
const
|
|
589
|
-
if (typeof
|
|
590
|
-
return
|
|
591
|
-
return
|
|
582
|
+
function asErrorMessage(_0x3e5918, _0x194d21) {
|
|
583
|
+
const _0x1aaf04 = _0x28aee3;
|
|
584
|
+
if (typeof _0x3e5918 === _0x1aaf04(0x20c) && _0x3e5918[_0x1aaf04(0x1f6)]())
|
|
585
|
+
return _0x3e5918;
|
|
586
|
+
return _0x194d21;
|
|
592
587
|
}
|
|
593
|
-
function asRecord(
|
|
594
|
-
return typeof
|
|
588
|
+
function asRecord(_0x13108c) {
|
|
589
|
+
return typeof _0x13108c === 'object' && _0x13108c !== null ? _0x13108c : {};
|
|
595
590
|
}
|
|
596
|
-
function stableStringify(
|
|
597
|
-
const
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
},
|
|
601
|
-
if (
|
|
602
|
-
return JSON[
|
|
603
|
-
if (Array[
|
|
604
|
-
return '[' +
|
|
605
|
-
const
|
|
606
|
-
return '{' +
|
|
591
|
+
function stableStringify(_0x25d8e2) {
|
|
592
|
+
const _0xd5146d = {
|
|
593
|
+
_0x4661c2: 0x173,
|
|
594
|
+
_0x17077b: 0x272
|
|
595
|
+
}, _0x3b1e77 = _0x28aee3;
|
|
596
|
+
if (_0x25d8e2 === null || typeof _0x25d8e2 !== _0x3b1e77(_0xd5146d._0x4661c2))
|
|
597
|
+
return JSON['stringify'](_0x25d8e2);
|
|
598
|
+
if (Array[_0x3b1e77(0x1a3)](_0x25d8e2))
|
|
599
|
+
return '[' + _0x25d8e2[_0x3b1e77(0x272)](_0x510c3e => stableStringify(_0x510c3e))[_0x3b1e77(0x1dd)](',') + ']';
|
|
600
|
+
const _0x4781c3 = Object['entries'](_0x25d8e2)[_0x3b1e77(0x23e)](([, _0x507674]) => _0x507674 !== void 0x0)['sort'](([_0x2bdc30], [_0x57b0d1]) => _0x2bdc30[_0x3b1e77(0x1c7)](_0x57b0d1))[_0x3b1e77(_0xd5146d._0x17077b)](([_0x428ba9, _0x34345d]) => JSON[_0x3b1e77(0x161)](_0x428ba9) + ':' + stableStringify(_0x34345d));
|
|
601
|
+
return '{' + _0x4781c3[_0x3b1e77(0x1dd)](',') + '}';
|
|
607
602
|
}
|
|
608
|
-
function createHeaders(
|
|
609
|
-
const
|
|
603
|
+
function createHeaders(_0x47378d) {
|
|
604
|
+
const _0x2561db = { _0x41e9d7: 0x287 }, _0x3917c1 = _0x28aee3;
|
|
610
605
|
return {
|
|
611
|
-
'Content-Type':
|
|
612
|
-
'x-daemon-api-key':
|
|
606
|
+
'Content-Type': _0x3917c1(_0x2561db._0x41e9d7),
|
|
607
|
+
'x-daemon-api-key': _0x47378d
|
|
613
608
|
};
|
|
614
609
|
}
|
|
615
|
-
function toHttpBaseUrl(
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
if (_0x22e2aa['protocol'] === _0x5c9b36(_0x13b186._0x59814c))
|
|
624
|
-
_0x22e2aa[_0x5c9b36(_0x13b186._0x1830a7)] = _0x5c9b36(_0x13b186._0x2b792a);
|
|
610
|
+
function toHttpBaseUrl(_0x5e6861) {
|
|
611
|
+
const _0x2c2568 = {
|
|
612
|
+
_0x1f5c11: 0x234,
|
|
613
|
+
_0x35edf4: 0x1d0,
|
|
614
|
+
_0x12a139: 0x2b7
|
|
615
|
+
}, _0x1e5caa = _0x28aee3, _0xe76f12 = new URL(_0x5e6861);
|
|
616
|
+
if (_0xe76f12['protocol'] === _0x1e5caa(_0x2c2568._0x1f5c11))
|
|
617
|
+
_0xe76f12[_0x1e5caa(_0x2c2568._0x35edf4)] = _0x1e5caa(_0x2c2568._0x12a139);
|
|
625
618
|
else
|
|
626
|
-
|
|
627
|
-
return
|
|
619
|
+
_0xe76f12['protocol'] === 'wss:' && (_0xe76f12['protocol'] = _0x1e5caa(0x1ea));
|
|
620
|
+
return _0xe76f12['toString']()['replace'](/\/$/, '');
|
|
628
621
|
}
|
|
629
|
-
function isMentionBoundary(
|
|
630
|
-
|
|
622
|
+
function isMentionBoundary(_0x21dc05) {
|
|
623
|
+
const _0x58cc2a = _0x28aee3;
|
|
624
|
+
return !_0x21dc05 || /\s|[([{'",。!?、:;]/[_0x58cc2a(0x1c4)](_0x21dc05);
|
|
631
625
|
}
|
|
632
|
-
function isMentionTerminal(
|
|
633
|
-
return !
|
|
626
|
+
function isMentionTerminal(_0x114fdc) {
|
|
627
|
+
return !_0x114fdc || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x114fdc);
|
|
634
628
|
}
|
|
635
|
-
function buildMatchableEntries(
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
...
|
|
643
|
-
..._0x5a51bc[_0x29012f(0x22c)]
|
|
629
|
+
function buildMatchableEntries(_0x58817a) {
|
|
630
|
+
const _0xa338d9 = {
|
|
631
|
+
_0x3450b7: 0x268,
|
|
632
|
+
_0x94bfbe: 0x2e9
|
|
633
|
+
}, _0x326f42 = _0x28aee3, _0x48db61 = [];
|
|
634
|
+
for (const _0x546dc6 of [
|
|
635
|
+
..._0x58817a[_0x326f42(0x19c)],
|
|
636
|
+
..._0x58817a[_0x326f42(_0xa338d9._0x3450b7)]
|
|
644
637
|
]) {
|
|
645
|
-
|
|
646
|
-
'matchName':
|
|
647
|
-
'matchNameLower':
|
|
648
|
-
'participantId':
|
|
649
|
-
}),
|
|
650
|
-
'matchName':
|
|
651
|
-
'matchNameLower':
|
|
652
|
-
'participantId':
|
|
638
|
+
_0x48db61[_0x326f42(_0xa338d9._0x94bfbe)]({
|
|
639
|
+
'matchName': _0x546dc6['name'],
|
|
640
|
+
'matchNameLower': _0x546dc6['name'][_0x326f42(0x277)](),
|
|
641
|
+
'participantId': _0x546dc6['id']
|
|
642
|
+
}), _0x546dc6['id'] !== _0x546dc6[_0x326f42(0x1e5)] && _0x48db61[_0x326f42(0x2e9)]({
|
|
643
|
+
'matchName': _0x546dc6['id'],
|
|
644
|
+
'matchNameLower': _0x546dc6['id']['toLocaleLowerCase'](),
|
|
645
|
+
'participantId': _0x546dc6['id']
|
|
653
646
|
});
|
|
654
647
|
}
|
|
655
|
-
return
|
|
648
|
+
return _0x48db61;
|
|
656
649
|
}
|
|
657
|
-
function extractMentionedParticipantIds(
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
},
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
650
|
+
function extractMentionedParticipantIds(_0x40c32c, _0x12537f) {
|
|
651
|
+
const _0x1e529 = {
|
|
652
|
+
_0x399f6b: 0x19b,
|
|
653
|
+
_0x4a5bdf: 0x240,
|
|
654
|
+
_0xc0f08f: 0x215,
|
|
655
|
+
_0x4d373c: 0x2e9,
|
|
656
|
+
_0x24b4cb: 0x204
|
|
657
|
+
}, _0x4d1ded = {
|
|
658
|
+
_0x96c884: 0x20f,
|
|
659
|
+
_0x52cd6d: 0x190,
|
|
660
|
+
_0x218b9e: 0x19b
|
|
661
|
+
}, _0x17d671 = _0x28aee3, _0xc3158e = buildMatchableEntries(_0x12537f)[_0x17d671(0x228)]((_0x22a904, _0x23532f) => _0x23532f[_0x17d671(0x204)]['length'] - _0x22a904[_0x17d671(0x204)][_0x17d671(0x19b)]), _0x49304c = [], _0x568277 = new Set();
|
|
662
|
+
for (let _0x236e7a = 0x0; _0x236e7a < _0x40c32c[_0x17d671(_0x1e529._0x399f6b)]; _0x236e7a += 0x1) {
|
|
663
|
+
if (_0x40c32c[_0x236e7a] !== '@' || !isMentionBoundary(_0x40c32c[_0x236e7a - 0x1]))
|
|
670
664
|
continue;
|
|
671
|
-
const
|
|
672
|
-
const
|
|
673
|
-
if (!
|
|
665
|
+
const _0x46db40 = _0x40c32c[_0x17d671(_0x1e529._0x4a5bdf)](_0x236e7a + 0x1), _0x260d11 = _0x46db40['toLocaleLowerCase'](), _0x228f3d = _0xc3158e['find'](_0x941ddc => {
|
|
666
|
+
const _0x352699 = _0x17d671;
|
|
667
|
+
if (!_0x260d11[_0x352699(_0x4d1ded._0x96c884)](_0x941ddc[_0x352699(_0x4d1ded._0x52cd6d)]))
|
|
674
668
|
return ![];
|
|
675
|
-
return isMentionTerminal(
|
|
669
|
+
return isMentionTerminal(_0x46db40[_0x941ddc[_0x352699(0x204)][_0x352699(_0x4d1ded._0x218b9e)]]);
|
|
676
670
|
});
|
|
677
|
-
if (!
|
|
671
|
+
if (!_0x228f3d || _0x568277[_0x17d671(0x17b)](_0x228f3d[_0x17d671(_0x1e529._0xc0f08f)]))
|
|
678
672
|
continue;
|
|
679
|
-
|
|
673
|
+
_0x568277['add'](_0x228f3d['participantId']), _0x49304c[_0x17d671(_0x1e529._0x4d373c)](_0x228f3d['participantId']), _0x236e7a += _0x228f3d[_0x17d671(_0x1e529._0x24b4cb)]['length'];
|
|
680
674
|
}
|
|
681
|
-
return
|
|
675
|
+
return _0x49304c;
|
|
682
676
|
}
|
|
683
677
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
684
|
-
function anySignal(...
|
|
685
|
-
const
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
_0x44ca63[_0x5abb1b(_0x4692c5._0x508e8d)](_0x5abb1b(0x1be), () => _0x36ee4e[_0x5abb1b(0x1be)](_0x44ca63['reason']), {
|
|
678
|
+
function anySignal(..._0xfad2b0) {
|
|
679
|
+
const _0x36f0a2 = {
|
|
680
|
+
_0x4e5dd3: 0x295,
|
|
681
|
+
_0x7d9b13: 0x1b6,
|
|
682
|
+
_0x3083d4: 0x295
|
|
683
|
+
}, _0x303577 = _0x28aee3, _0x22f076 = new AbortController();
|
|
684
|
+
for (const _0x5205a1 of _0xfad2b0) {
|
|
685
|
+
if (_0x5205a1['aborted'])
|
|
686
|
+
return _0x22f076[_0x303577(_0x36f0a2._0x4e5dd3)](_0x5205a1[_0x303577(0x1b3)]), _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
687
|
+
_0x5205a1['addEventListener'](_0x303577(_0x36f0a2._0x3083d4), () => _0x22f076[_0x303577(0x295)](_0x5205a1[_0x303577(0x1b3)]), {
|
|
695
688
|
'once': !![],
|
|
696
|
-
'signal':
|
|
689
|
+
'signal': _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)]
|
|
697
690
|
});
|
|
698
691
|
}
|
|
699
|
-
return
|
|
692
|
+
return _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
700
693
|
}
|
|
701
|
-
function createInternalAgentClient(
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
},
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
},
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
},
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
694
|
+
function createInternalAgentClient(_0x3bb6b7) {
|
|
695
|
+
const _0x14054b = {
|
|
696
|
+
_0x2662d4: 0x23f,
|
|
697
|
+
_0x44bb1e: 0x2df,
|
|
698
|
+
_0x15217e: 0x172,
|
|
699
|
+
_0x17ffea: 0x1f6,
|
|
700
|
+
_0x28fdc5: 0x16a,
|
|
701
|
+
_0x3194ac: 0x294
|
|
702
|
+
}, _0x1c0289 = {
|
|
703
|
+
_0x48ce1a: 0x19d,
|
|
704
|
+
_0x451525: 0x176,
|
|
705
|
+
_0xe426c5: 0x288,
|
|
706
|
+
_0x2f4597: 0x2af,
|
|
707
|
+
_0x2cbe33: 0x202,
|
|
708
|
+
_0x266778: 0x225,
|
|
709
|
+
_0x22a6ca: 0x19b,
|
|
710
|
+
_0x2e059d: 0x19b,
|
|
711
|
+
_0x5a9b60: 0x23e,
|
|
712
|
+
_0x15b654: 0x1d3,
|
|
713
|
+
_0x22b91a: 0x188,
|
|
714
|
+
_0x5b04b3: 0x20c,
|
|
715
|
+
_0x46e7df: 0x232,
|
|
716
|
+
_0xf1d99a: 0x1a0,
|
|
717
|
+
_0x2f7f46: 0x20c,
|
|
718
|
+
_0x271bb9: 0x269,
|
|
719
|
+
_0x3194a2: 0x20c,
|
|
720
|
+
_0x5aaad6: 0x29e,
|
|
721
|
+
_0x5bedd8: 0x281,
|
|
722
|
+
_0x6ba06a: 0x29e,
|
|
723
|
+
_0x4078ae: 0x1d8,
|
|
724
|
+
_0x383e10: 0x29e,
|
|
725
|
+
_0x444bac: 0x269,
|
|
726
|
+
_0xdc1113: 0x269,
|
|
727
|
+
_0x586d41: 0x2e9,
|
|
728
|
+
_0x5c04f3: 0x25e,
|
|
729
|
+
_0x44eac3: 0x239,
|
|
730
|
+
_0x12954c: 0x272,
|
|
731
|
+
_0x744452: 0x286,
|
|
732
|
+
_0x5ee732: 0x203,
|
|
733
|
+
_0x1710bf: 0x2d7,
|
|
734
|
+
_0x544c3: 0x162,
|
|
735
|
+
_0x540203: 0x2e4,
|
|
736
|
+
_0x213e9a: 0x1c2,
|
|
737
|
+
_0x39bbf3: 0x218,
|
|
738
|
+
_0x595d7c: 0x21a
|
|
739
|
+
}, _0x1d69b1 = {
|
|
740
|
+
_0x36ef6d: 0x2a7,
|
|
741
|
+
_0x31e886: 0x232,
|
|
742
|
+
_0x1699b6: 0x20c
|
|
743
|
+
}, _0x63a30c = {
|
|
744
|
+
_0x5db128: 0x296,
|
|
745
|
+
_0x3deb5d: 0x21b
|
|
746
|
+
}, _0x6a3ff5 = {
|
|
747
|
+
_0x254fd0: 0x1ec,
|
|
748
|
+
_0x5f3711: 0x288,
|
|
749
|
+
_0x6dfcc6: 0x1b6,
|
|
750
|
+
_0x209772: 0x19f,
|
|
751
|
+
_0x1460ec: 0x279,
|
|
752
|
+
_0x100ac6: 0x286,
|
|
753
|
+
_0x6b5069: 0x231,
|
|
754
|
+
_0x573126: 0x1a5
|
|
755
|
+
}, _0x2c5794 = {
|
|
756
|
+
_0xa85bf2: 0x176,
|
|
757
|
+
_0x15b995: 0x20e,
|
|
758
|
+
_0x23a462: 0x161,
|
|
759
|
+
_0xaf3664: 0x19f,
|
|
760
|
+
_0xf5083b: 0x2a0,
|
|
761
|
+
_0xe09642: 0x264,
|
|
762
|
+
_0x7f2658: 0x24b
|
|
763
|
+
}, _0x200b23 = { _0x31b56f: 0x1d7 }, _0x9a1578 = {
|
|
764
|
+
_0x3c041f: 0x161,
|
|
765
|
+
_0x293887: 0x282,
|
|
766
|
+
_0xbc75fe: 0x199
|
|
767
|
+
}, _0x50dace = { _0x34f27e: 0x19d }, _0x2916ed = {
|
|
768
|
+
_0xbe4c7d: 0x176,
|
|
769
|
+
_0x21540b: 0x161
|
|
770
|
+
}, _0xf46048 = {
|
|
771
|
+
_0x5f45ca: 0x273,
|
|
772
|
+
_0x520316: 0x1b0,
|
|
773
|
+
_0x614c6: 0x2a2
|
|
774
|
+
}, _0x1b448d = {
|
|
775
|
+
_0x1d6b78: 0x1b7,
|
|
776
|
+
_0x4a4bcf: 0x17e,
|
|
777
|
+
_0x143645: 0x26d,
|
|
778
|
+
_0x182c4d: 0x2c6,
|
|
779
|
+
_0x49211a: 0x1b0,
|
|
780
|
+
_0x4d0d00: 0x264
|
|
781
|
+
}, _0x1939d0 = { _0xb11cb8: 0x264 }, _0x1a75a5 = {
|
|
782
|
+
_0x456695: 0x252,
|
|
783
|
+
_0x335977: 0x161
|
|
784
|
+
}, _0x4859a0 = {
|
|
785
|
+
_0x4cb8f4: 0x18c,
|
|
786
|
+
_0x48b217: 0x2b9,
|
|
787
|
+
_0x3322d0: 0x176,
|
|
788
|
+
_0x8af1c2: 0x161,
|
|
789
|
+
_0x378aef: 0x1ef,
|
|
790
|
+
_0x2782d3: 0x1a0,
|
|
791
|
+
_0x44582d: 0x18e,
|
|
792
|
+
_0x3bb155: 0x199
|
|
793
|
+
}, _0x5178d6 = {
|
|
794
|
+
_0x1fb818: 0x1ab,
|
|
795
|
+
_0x3b41f1: 0x273,
|
|
796
|
+
_0x3153ff: 0x273,
|
|
797
|
+
_0x336b5f: 0x232,
|
|
798
|
+
_0x1c9450: 0x21b,
|
|
799
|
+
_0x338fb7: 0x19d,
|
|
800
|
+
_0x2ca19f: 0x2d9,
|
|
801
|
+
_0x4a339f: 0x272,
|
|
802
|
+
_0x18db34: 0x236,
|
|
803
|
+
_0x4a8030: 0x2af,
|
|
804
|
+
_0x5169dc: 0x1b4
|
|
805
|
+
}, _0x56af25 = { _0x41e4c8: 0x215 }, _0x1c6706 = {
|
|
806
|
+
_0x32488c: 0x29e,
|
|
807
|
+
_0x495178: 0x2df,
|
|
808
|
+
_0x581a5c: 0x281,
|
|
809
|
+
_0x28bf38: 0x21e,
|
|
810
|
+
_0x3a3a00: 0x269,
|
|
811
|
+
_0x5172cd: 0x20f
|
|
812
|
+
}, _0x52be5b = {
|
|
813
|
+
_0x4024e4: 0x1ac,
|
|
814
|
+
_0x3c6d2c: 0x236,
|
|
815
|
+
_0x3cc838: 0x21e,
|
|
816
|
+
_0x65f2f6: 0x269,
|
|
817
|
+
_0x4733cd: 0x21e,
|
|
818
|
+
_0x534f20: 0x1a0,
|
|
819
|
+
_0x5009ab: 0x21e
|
|
820
|
+
}, _0x55c115 = {
|
|
821
|
+
_0x565a75: 0x236,
|
|
822
|
+
_0x1a8110: 0x269,
|
|
823
|
+
_0x559375: 0x1a0
|
|
824
|
+
}, _0x126249 = { _0xca8dd0: 0x1fd }, _0x13a869 = { _0x1d43ad: 0x289 }, _0xd93e9c = {
|
|
825
|
+
_0x1b287e: 0x176,
|
|
826
|
+
_0x40a931: 0x214,
|
|
827
|
+
_0x17b9c7: 0x272,
|
|
828
|
+
_0x4abaa5: 0x23e,
|
|
829
|
+
_0x1675f5: 0x22c,
|
|
830
|
+
_0x321d3f: 0x264
|
|
831
|
+
}, _0x3d1f2b = {
|
|
832
|
+
_0x22c476: 0x2bb,
|
|
833
|
+
_0x14a5f6: 0x199,
|
|
834
|
+
_0x436be6: 0x264,
|
|
835
|
+
_0x354239: 0x232,
|
|
836
|
+
_0xeafba7: 0x236,
|
|
837
|
+
_0x5de5d0: 0x29e
|
|
838
|
+
}, _0x2c3c50 = {
|
|
839
|
+
_0x298837: 0x24a,
|
|
840
|
+
_0x2c41aa: 0x1e3
|
|
841
|
+
}, _0xaed242 = {
|
|
842
|
+
_0x1acb1f: 0x1b6,
|
|
843
|
+
_0x25fa2a: 0x26d,
|
|
844
|
+
_0x2e42c5: 0x211
|
|
845
|
+
}, _0x22c7d5 = { _0x49941b: 0x26d }, _0x50cd80 = {
|
|
846
|
+
_0x3b302f: 0x19a,
|
|
847
|
+
_0x1a13de: 0x20c,
|
|
848
|
+
_0xb92ae9: 0x1dc,
|
|
849
|
+
_0x49173a: 0x1ce,
|
|
850
|
+
_0x11b043: 0x22f,
|
|
851
|
+
_0xd6aa8d: 0x1f1
|
|
852
|
+
}, _0x10b8bb = {
|
|
853
|
+
_0x5e4a3e: 0x207,
|
|
854
|
+
_0x47c1c4: 0x1a5,
|
|
855
|
+
_0x118390: 0x1d5,
|
|
856
|
+
_0xe38d43: 0x2d0
|
|
857
|
+
}, _0xd59838 = {
|
|
858
|
+
_0x1e28eb: 0x279,
|
|
859
|
+
_0x50d234: 0x286,
|
|
860
|
+
_0x4c503e: 0x1a9,
|
|
861
|
+
_0x9e1e64: 0x1f6,
|
|
862
|
+
_0x5431f8: 0x220,
|
|
863
|
+
_0x2a88b4: 0x18a,
|
|
864
|
+
_0x7be67d: 0x283,
|
|
865
|
+
_0x49e564: 0x23c
|
|
866
|
+
}, _0x48f325 = _0x28aee3, _0x230d44 = _0x3bb6b7[_0x48f325(0x2c3)] ?? fetch, _0x48c043 = _0x3bb6b7[_0x48f325(_0x14054b._0x2662d4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x439287 = typeof _0x3bb6b7['initialLastSeenSeq'] === _0x48f325(_0x14054b._0x44bb1e) && _0x3bb6b7['initialLastSeenSeq'] > 0x0 ? _0x3bb6b7[_0x48f325(0x241)] : 0x0, _0x18f974 = _0x3bb6b7[_0x48f325(0x248)]?.['trim']() || void 0x0, _0x35c865 = _0x3bb6b7['sessionId']?.['trim']() || void 0x0, _0x207f3c = _0x3bb6b7['workerModeEnabled'] === !![], _0x5e99c6 = _0x3bb6b7[_0x48f325(_0x14054b._0x15217e)]?.[_0x48f325(_0x14054b._0x17ffea)]() || void 0x0, _0x2bd29b = _0x3bb6b7['workerThreadTarget']?.[_0x48f325(0x1f6)]() || void 0x0, _0xc87eec = createHeaders(_0x3bb6b7[_0x48f325(_0x14054b._0x28fdc5)]), _0x4cea4c = toHttpBaseUrl(_0x3bb6b7[_0x48f325(_0x14054b._0x3194ac)]);
|
|
867
|
+
let _0xb4cf24 = null;
|
|
868
|
+
const _0xe7adc6 = new Map();
|
|
869
|
+
let _0x15451c = _0x439287, _0x35c778 = _0x439287;
|
|
870
|
+
function _0x3508ab(_0x2b7bf9) {
|
|
871
|
+
const _0x5d41c9 = _0x48f325, _0x3ef710 = _0x2b7bf9[_0x5d41c9(0x23c)][_0x5d41c9(_0xd59838._0x1e28eb)][_0x5d41c9(_0xd59838._0x50d234)](_0x5d41c9(0x231)) ?? _0x5d41c9(_0xd59838._0x4c503e), _0x2fe82c = _0x2b7bf9[_0x5d41c9(0x1fc)][_0x5d41c9(_0xd59838._0x9e1e64)]()[_0x5d41c9(0x2d2)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5d41c9(0x27c);
|
|
872
|
+
return _0x5d41c9(_0xd59838._0x5431f8) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x2a88b4)] + _0x5d41c9(_0xd59838._0x7be67d) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x49e564)][_0x5d41c9(0x1b0)] + ',\x20content-type=' + _0x3ef710 + ',\x20preview=' + _0x2fe82c + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
872
873
|
}
|
|
873
|
-
async function
|
|
874
|
-
const
|
|
875
|
-
if (!
|
|
874
|
+
async function _0x1da27c(_0x43f4fb, _0x1463bd) {
|
|
875
|
+
const _0x51c0c1 = _0x48f325, _0x208eee = Buffer[_0x51c0c1(_0x10b8bb._0x5e4a3e)](await _0x1463bd[_0x51c0c1(_0x10b8bb._0x47c1c4)]())['toString'](_0x51c0c1(_0x10b8bb._0x118390));
|
|
876
|
+
if (!_0x208eee[_0x51c0c1(0x1f6)]())
|
|
876
877
|
return {};
|
|
877
878
|
try {
|
|
878
|
-
return JSON[
|
|
879
|
+
return JSON[_0x51c0c1(_0x10b8bb._0xe38d43)](_0x208eee);
|
|
879
880
|
} catch {
|
|
880
|
-
throw new Error(
|
|
881
|
-
'bodyText':
|
|
882
|
-
'requestUrl':
|
|
883
|
-
'response':
|
|
881
|
+
throw new Error(_0x3508ab({
|
|
882
|
+
'bodyText': _0x208eee,
|
|
883
|
+
'requestUrl': _0x43f4fb,
|
|
884
|
+
'response': _0x1463bd
|
|
884
885
|
}));
|
|
885
886
|
}
|
|
886
887
|
}
|
|
887
|
-
function
|
|
888
|
-
const
|
|
889
|
-
if (
|
|
890
|
-
return
|
|
891
|
-
const
|
|
892
|
-
for (const [
|
|
893
|
-
|
|
888
|
+
function _0x102300(_0x2fe772, _0x54ca7c) {
|
|
889
|
+
const _0x297c83 = _0x48f325, _0xb7cbda = typeof _0x54ca7c[_0x297c83(_0x50cd80._0x3b302f)] === _0x297c83(_0x50cd80._0x1a13de) ? _0x54ca7c[_0x297c83(0x19a)]['trim']() : '';
|
|
890
|
+
if (_0xb7cbda)
|
|
891
|
+
return _0xb7cbda;
|
|
892
|
+
const _0xe8b2d3 = Date[_0x297c83(_0x50cd80._0xb92ae9)]();
|
|
893
|
+
for (const [_0x281b1a, _0x4ddae9] of _0xe7adc6) {
|
|
894
|
+
_0x4ddae9[_0x297c83(_0x50cd80._0x49173a)] <= _0xe8b2d3 && _0xe7adc6[_0x297c83(0x2da)](_0x281b1a);
|
|
894
895
|
}
|
|
895
|
-
const
|
|
896
|
-
...
|
|
896
|
+
const _0x46b5df = {
|
|
897
|
+
..._0x54ca7c,
|
|
897
898
|
'idempotency_key': void 0x0
|
|
898
|
-
},
|
|
899
|
-
if (
|
|
900
|
-
return
|
|
901
|
-
const
|
|
902
|
-
return
|
|
903
|
-
'expiresAt':
|
|
904
|
-
'value':
|
|
905
|
-
}),
|
|
899
|
+
}, _0x43523a = createHash(_0x297c83(0x233))[_0x297c83(_0x50cd80._0x11b043)](_0x2fe772 + ':' + stableStringify(_0x46b5df))['digest']('hex'), _0x33b741 = _0x2fe772 + ':' + _0x43523a, _0x5466d4 = _0xe7adc6[_0x297c83(0x286)](_0x33b741);
|
|
900
|
+
if (_0x5466d4)
|
|
901
|
+
return _0x5466d4['value'];
|
|
902
|
+
const _0x39fdb7 = _0x297c83(_0x50cd80._0xd6aa8d) + _0x2fe772 + ':' + randomUUID();
|
|
903
|
+
return _0xe7adc6[_0x297c83(0x273)](_0x33b741, {
|
|
904
|
+
'expiresAt': _0xe8b2d3 + 0x5 * 0x3c * 0x3e8,
|
|
905
|
+
'value': _0x39fdb7
|
|
906
|
+
}), _0x39fdb7;
|
|
906
907
|
}
|
|
907
|
-
async function
|
|
908
|
-
const
|
|
908
|
+
async function _0x2827a2(_0x4902d7, _0x297d6d) {
|
|
909
|
+
const _0x29f21 = _0x48f325, _0x584b12 = new AbortController(), _0x29b0f7 = setTimeout(() => _0x584b12[_0x29f21(0x295)](), _0x48c043), _0x5569cc = _0x297d6d?.[_0x29f21(0x1b6)] ? anySignal(_0x297d6d['signal'], _0x584b12[_0x29f21(0x1b6)]) : _0x584b12[_0x29f21(0x1b6)], _0x3fc3eb = '' + _0x4cea4c + _0x4902d7;
|
|
909
910
|
try {
|
|
910
|
-
const
|
|
911
|
-
...
|
|
912
|
-
'signal':
|
|
913
|
-
}),
|
|
914
|
-
if (!
|
|
915
|
-
throw new Error(asErrorMessage(
|
|
916
|
-
return
|
|
911
|
+
const _0x26a4f8 = await _0x230d44(_0x3fc3eb, {
|
|
912
|
+
..._0x297d6d,
|
|
913
|
+
'signal': _0x5569cc
|
|
914
|
+
}), _0x45d6fa = await _0x1da27c(_0x3fc3eb, _0x26a4f8);
|
|
915
|
+
if (!_0x26a4f8['ok'] || _0x45d6fa['success'] === ![])
|
|
916
|
+
throw new Error(asErrorMessage(_0x45d6fa[_0x29f21(_0x22c7d5._0x49941b)], _0x29f21(0x211) + _0x26a4f8['status']));
|
|
917
|
+
return _0x45d6fa;
|
|
917
918
|
} finally {
|
|
918
|
-
clearTimeout(
|
|
919
|
+
clearTimeout(_0x29b0f7);
|
|
919
920
|
}
|
|
920
921
|
}
|
|
921
|
-
async function
|
|
922
|
-
const
|
|
922
|
+
async function _0x316b90(_0x5829da, _0x2c1e10) {
|
|
923
|
+
const _0x1378bc = _0x48f325, _0x45457f = new AbortController(), _0x44f1dc = setTimeout(() => _0x45457f[_0x1378bc(0x295)](), _0x48c043), _0x301abc = _0x2c1e10?.[_0x1378bc(_0xaed242._0x1acb1f)] ? anySignal(_0x2c1e10['signal'], _0x45457f['signal']) : _0x45457f[_0x1378bc(0x1b6)], _0x1909eb = '' + _0x4cea4c + _0x5829da;
|
|
923
924
|
try {
|
|
924
|
-
const
|
|
925
|
-
...
|
|
926
|
-
'signal':
|
|
927
|
-
}),
|
|
928
|
-
if (!
|
|
929
|
-
throw new Error(asErrorMessage(
|
|
930
|
-
return
|
|
925
|
+
const _0x106dff = await _0x230d44(_0x1909eb, {
|
|
926
|
+
..._0x2c1e10,
|
|
927
|
+
'signal': _0x301abc
|
|
928
|
+
}), _0x2a45a7 = await _0x1da27c(_0x1909eb, _0x106dff);
|
|
929
|
+
if (!_0x106dff['ok'])
|
|
930
|
+
throw new Error(asErrorMessage(_0x2a45a7[_0x1378bc(_0xaed242._0x25fa2a)], _0x1378bc(_0xaed242._0x2e42c5) + _0x106dff[_0x1378bc(0x1b0)]));
|
|
931
|
+
return _0x2a45a7;
|
|
931
932
|
} finally {
|
|
932
|
-
clearTimeout(
|
|
933
|
+
clearTimeout(_0x44f1dc);
|
|
933
934
|
}
|
|
934
935
|
}
|
|
935
|
-
async function
|
|
936
|
-
const
|
|
937
|
-
if (!
|
|
936
|
+
async function _0x2d0964(_0x30073a) {
|
|
937
|
+
const _0x200e32 = _0x48f325;
|
|
938
|
+
if (!_0x35c865 || _0x30073a <= _0x35c778)
|
|
938
939
|
return;
|
|
939
|
-
await
|
|
940
|
-
'body': JSON[
|
|
941
|
-
'headers':
|
|
940
|
+
await _0x2827a2(_0x200e32(_0x2c3c50._0x298837) + encodeURIComponent(_0x35c865) + _0x200e32(_0x2c3c50._0x2c41aa), {
|
|
941
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x30073a }),
|
|
942
|
+
'headers': _0xc87eec,
|
|
942
943
|
'method': 'PATCH'
|
|
943
|
-
}),
|
|
944
|
+
}), _0x35c778 = _0x30073a;
|
|
944
945
|
}
|
|
945
|
-
async function
|
|
946
|
-
const
|
|
947
|
-
if (!
|
|
946
|
+
async function _0x5add0b(_0x5ed6ba) {
|
|
947
|
+
const _0x3930cd = _0x48f325;
|
|
948
|
+
if (!_0x18f974 || !_0x5e99c6 || _0x5ed6ba <= _0x35c778)
|
|
948
949
|
return;
|
|
949
|
-
const
|
|
950
|
-
'body': JSON[
|
|
951
|
-
'last_seen_seq':
|
|
952
|
-
'worker_session_id':
|
|
950
|
+
const _0x4cea64 = await _0x230d44(_0x18f974 + '/workers/context-metrics', {
|
|
951
|
+
'body': JSON[_0x3930cd(0x161)]({
|
|
952
|
+
'last_seen_seq': _0x5ed6ba,
|
|
953
|
+
'worker_session_id': _0x5e99c6
|
|
953
954
|
}),
|
|
954
|
-
'headers': { 'Content-Type':
|
|
955
|
+
'headers': { 'Content-Type': _0x3930cd(0x287) },
|
|
955
956
|
'method': 'POST'
|
|
956
957
|
});
|
|
957
|
-
if (!
|
|
958
|
-
throw new Error(
|
|
959
|
-
|
|
958
|
+
if (!_0x4cea64['ok'])
|
|
959
|
+
throw new Error('HTTP\x20' + _0x4cea64['status']);
|
|
960
|
+
_0x35c778 = _0x5ed6ba;
|
|
960
961
|
}
|
|
961
|
-
async function
|
|
962
|
-
const
|
|
963
|
-
'body': JSON[
|
|
964
|
-
'headers':
|
|
965
|
-
'method':
|
|
962
|
+
async function _0x110dfc(_0x36469e) {
|
|
963
|
+
const _0x5d41be = _0x48f325, _0x2c507f = parseTarget(_0x36469e), _0x247014 = await _0x2827a2(_0x5d41be(0x19d) + _0x3bb6b7[_0x5d41be(0x176)] + _0x5d41be(_0x3d1f2b._0x22c476), {
|
|
964
|
+
'body': JSON[_0x5d41be(0x161)]({ 'target': _0x2c507f[_0x5d41be(0x18c)] }),
|
|
965
|
+
'headers': _0xc87eec,
|
|
966
|
+
'method': _0x5d41be(_0x3d1f2b._0x14a5f6)
|
|
966
967
|
});
|
|
967
968
|
return {
|
|
968
|
-
'channelId':
|
|
969
|
-
'target':
|
|
970
|
-
'task':
|
|
971
|
-
'threadId':
|
|
972
|
-
'threadNumber':
|
|
969
|
+
'channelId': _0x247014[_0x5d41be(_0x3d1f2b._0x436be6)]?.[_0x5d41be(_0x3d1f2b._0x354239)] ?? '',
|
|
970
|
+
'target': _0x2c507f[_0x5d41be(_0x3d1f2b._0xeafba7)],
|
|
971
|
+
'task': _0x247014[_0x5d41be(0x264)]?.[_0x5d41be(0x165)],
|
|
972
|
+
'threadId': _0x247014[_0x5d41be(0x264)]?.['threadId'],
|
|
973
|
+
'threadNumber': _0x247014[_0x5d41be(_0x3d1f2b._0x436be6)]?.[_0x5d41be(_0x3d1f2b._0x5de5d0)]
|
|
973
974
|
};
|
|
974
975
|
}
|
|
975
|
-
async function
|
|
976
|
-
const
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
'
|
|
988
|
-
'
|
|
989
|
-
})
|
|
990
|
-
'id': _0x5bbe81(_0x2f3b8e),
|
|
991
|
-
'name': _0x3b4522(_0x2f3b8e)
|
|
992
|
-
}))[_0x392985(_0x7b5865._0x2a225e)](_0x4e5480 => _0x4e5480['id']), _0x31536d = _0x33cd32[_0x392985(_0x7b5865._0x5b2f17)](_0x5497cf => _0x5497cf['participant']?.[_0x392985(0x197)] !== _0x392985(0x1c0))[_0x392985(0xf7)](_0x52feda => ({
|
|
993
|
-
'id': _0x5bbe81(_0x52feda),
|
|
994
|
-
'name': _0x3b4522(_0x52feda)
|
|
995
|
-
}))[_0x392985(0x1bd)](_0x17892b => _0x17892b['id']), _0x4c5acc = _0x3f40f0[_0x392985(0xe5)]?.[_0x392985(_0x7b5865._0x3e3ad6)]['id'] ?? '';
|
|
976
|
+
async function _0x11949c(_0x51f51d = {}) {
|
|
977
|
+
const _0x6639ae = _0x48f325;
|
|
978
|
+
if (!_0x51f51d[_0x6639ae(0x1e9)] && _0xb4cf24)
|
|
979
|
+
return _0xb4cf24;
|
|
980
|
+
return _0xb4cf24 = (async () => {
|
|
981
|
+
const _0x5abf3b = _0x6639ae, _0x5e0bb0 = await _0x2827a2('/internal/agent/' + _0x3bb6b7[_0x5abf3b(_0xd93e9c._0x1b287e)] + _0x5abf3b(0x22d), {
|
|
982
|
+
'headers': _0xc87eec,
|
|
983
|
+
'method': _0x5abf3b(0x288)
|
|
984
|
+
}), _0x4f1eb1 = _0x5e0bb0[_0x5abf3b(0x264)]?.[_0x5abf3b(_0xd93e9c._0x40a931)] ?? [], _0x3d618e = _0x4f1eb1['filter'](_0x4378b3 => _0x4378b3[_0x5abf3b(0x18b)]?.[_0x5abf3b(0x24d)] === _0x5abf3b(0x1ed))[_0x5abf3b(_0xd93e9c._0x17b9c7)](_0x70db70 => ({
|
|
985
|
+
'id': _0x21bcad(_0x70db70),
|
|
986
|
+
'name': _0x4f4593(_0x70db70)
|
|
987
|
+
}))[_0x5abf3b(_0xd93e9c._0x4abaa5)](_0x3b13d2 => _0x3b13d2['id']), _0x37e3a5 = _0x4f1eb1[_0x5abf3b(0x23e)](_0x43289d => _0x43289d['participant']?.[_0x5abf3b(0x24d)] !== 'agent')['map'](_0x19b8bb => ({
|
|
988
|
+
'id': _0x21bcad(_0x19b8bb),
|
|
989
|
+
'name': _0x4f4593(_0x19b8bb)
|
|
990
|
+
}))[_0x5abf3b(_0xd93e9c._0x4abaa5)](_0x5ec985 => _0x5ec985['id']), _0x54ee8f = _0x5e0bb0[_0x5abf3b(0x264)]?.[_0x5abf3b(_0xd93e9c._0x1675f5)]['id'] ?? '';
|
|
996
991
|
return {
|
|
997
|
-
'agents':
|
|
998
|
-
'channels':
|
|
999
|
-
'humans':
|
|
1000
|
-
'serverId':
|
|
1001
|
-
'serverName':
|
|
992
|
+
'agents': _0x3d618e,
|
|
993
|
+
'channels': _0x5e0bb0['data']?.['channels'] ?? [],
|
|
994
|
+
'humans': _0x37e3a5,
|
|
995
|
+
'serverId': _0x54ee8f,
|
|
996
|
+
'serverName': _0x5e0bb0[_0x5abf3b(_0xd93e9c._0x321d3f)]?.[_0x5abf3b(0x22c)]['name'] ?? _0x54ee8f
|
|
1002
997
|
};
|
|
1003
|
-
})()[
|
|
1004
|
-
|
|
1005
|
-
throw
|
|
1006
|
-
}),
|
|
998
|
+
})()[_0x6639ae(_0x13a869._0x1d43ad)](_0x43971b => {
|
|
999
|
+
_0xb4cf24 = null;
|
|
1000
|
+
throw _0x43971b;
|
|
1001
|
+
}), _0xb4cf24;
|
|
1007
1002
|
}
|
|
1008
|
-
function
|
|
1009
|
-
const
|
|
1010
|
-
return
|
|
1003
|
+
function _0x517ef7(_0x229f72, _0x29724e) {
|
|
1004
|
+
const _0x423c53 = _0x48f325;
|
|
1005
|
+
return _0x29724e[_0x423c53(0x19c)]['some'](_0x3c581b => _0x3c581b['id'] === _0x229f72 || _0x3c581b[_0x423c53(0x1e5)] === _0x229f72) ? _0x423c53(0x1ed) : _0x423c53(_0x126249._0xca8dd0);
|
|
1011
1006
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const
|
|
1014
|
-
if (
|
|
1015
|
-
return
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
1018
|
-
if (
|
|
1019
|
-
return
|
|
1020
|
-
return
|
|
1007
|
+
function _0x1a9f4f(_0x19d899) {
|
|
1008
|
+
const _0x638d86 = _0x48f325;
|
|
1009
|
+
if (_0x19d899['threadNumber'] != null)
|
|
1010
|
+
return _0x19d899[_0x638d86(_0x55c115._0x565a75)] + ':t' + _0x19d899['threadNumber'];
|
|
1011
|
+
if (_0x19d899[_0x638d86(_0x55c115._0x1a8110)])
|
|
1012
|
+
return _0x19d899['channelTarget'] + ':' + _0x19d899['rootMessageId'];
|
|
1013
|
+
if (_0x19d899[_0x638d86(0x1a0)])
|
|
1014
|
+
return _0x19d899['channelTarget'] + ':' + _0x19d899[_0x638d86(_0x55c115._0x559375)][_0x638d86(0x240)](0x0, 0x8);
|
|
1015
|
+
return _0x19d899['channelTarget'];
|
|
1021
1016
|
}
|
|
1022
|
-
function
|
|
1023
|
-
const
|
|
1017
|
+
function _0x377524(_0x51cb00, _0x4abed6) {
|
|
1018
|
+
const _0x2328b3 = _0x48f325;
|
|
1024
1019
|
try {
|
|
1025
|
-
const
|
|
1026
|
-
if (
|
|
1020
|
+
const _0x4b91ed = parseTarget(_0x51cb00);
|
|
1021
|
+
if (_0x4b91ed['kind'] !== _0x2328b3(_0x52be5b._0x4024e4) || _0x4b91ed[_0x2328b3(0x236)] !== _0x4abed6[_0x2328b3(_0x52be5b._0x3c6d2c)])
|
|
1027
1022
|
return ![];
|
|
1028
|
-
if (
|
|
1023
|
+
if (_0x4abed6[_0x2328b3(0x29e)] != null && _0x4b91ed['threadShortId'] === 't' + _0x4abed6['threadNumber'])
|
|
1029
1024
|
return !![];
|
|
1030
|
-
if (
|
|
1031
|
-
return
|
|
1032
|
-
if (
|
|
1033
|
-
return
|
|
1025
|
+
if (_0x4abed6['rootMessageId'])
|
|
1026
|
+
return _0x4b91ed[_0x2328b3(_0x52be5b._0x3cc838)] === _0x4abed6['rootMessageId'] || _0x4abed6[_0x2328b3(_0x52be5b._0x65f2f6)][_0x2328b3(0x20f)](_0x4b91ed[_0x2328b3(_0x52be5b._0x4733cd)]);
|
|
1027
|
+
if (_0x4abed6[_0x2328b3(_0x52be5b._0x534f20)])
|
|
1028
|
+
return _0x4b91ed[_0x2328b3(_0x52be5b._0x5009ab)] === _0x4abed6[_0x2328b3(0x1a0)] || _0x4abed6['threadId'][_0x2328b3(0x20f)](_0x4b91ed[_0x2328b3(0x21e)]);
|
|
1029
|
+
return ![];
|
|
1030
|
+
} catch {
|
|
1034
1031
|
return ![];
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
function _0x222741(_0x518fa3, _0x16d43c) {
|
|
1035
|
+
const _0x7a4cf0 = _0x48f325;
|
|
1036
|
+
try {
|
|
1037
|
+
const _0x363bd4 = parseTarget(_0x518fa3);
|
|
1038
|
+
if (_0x363bd4[_0x7a4cf0(0x2e4)] !== 'thread')
|
|
1039
|
+
return ![];
|
|
1040
|
+
const _0x29dd9e = typeof _0x16d43c[_0x7a4cf0(_0x1c6706._0x32488c)] === _0x7a4cf0(_0x1c6706._0x495178) && Number[_0x7a4cf0(_0x1c6706._0x581a5c)](_0x16d43c['threadNumber']) ? _0x16d43c['threadNumber'] : void 0x0;
|
|
1041
|
+
if (_0x29dd9e != null && _0x363bd4[_0x7a4cf0(_0x1c6706._0x28bf38)] === 't' + _0x29dd9e)
|
|
1042
|
+
return !![];
|
|
1043
|
+
const _0x9630a0 = typeof _0x16d43c[_0x7a4cf0(_0x1c6706._0x3a3a00)] === _0x7a4cf0(0x20c) ? _0x16d43c[_0x7a4cf0(0x269)] : void 0x0;
|
|
1044
|
+
if (_0x9630a0)
|
|
1045
|
+
return _0x363bd4[_0x7a4cf0(0x21e)] === _0x9630a0 || _0x9630a0[_0x7a4cf0(_0x1c6706._0x5172cd)](_0x363bd4['threadShortId']);
|
|
1046
|
+
const _0x197c69 = typeof _0x16d43c[_0x7a4cf0(0x1a0)] === _0x7a4cf0(0x20c) ? _0x16d43c['threadId'] : void 0x0;
|
|
1047
|
+
return Boolean(_0x197c69) && (_0x363bd4[_0x7a4cf0(_0x1c6706._0x28bf38)] === _0x197c69 || _0x197c69[_0x7a4cf0(0x20f)](_0x363bd4[_0x7a4cf0(0x21e)]));
|
|
1035
1048
|
} catch {
|
|
1036
1049
|
return ![];
|
|
1037
1050
|
}
|
|
1038
1051
|
}
|
|
1039
|
-
function
|
|
1040
|
-
const
|
|
1041
|
-
return
|
|
1052
|
+
function _0x21bcad(_0x29afed) {
|
|
1053
|
+
const _0x35a13e = _0x48f325;
|
|
1054
|
+
return _0x29afed[_0x35a13e(0x2cd)]?.[_0x35a13e(0x215)] ?? _0x29afed[_0x35a13e(0x18b)]?.['id'] ?? _0x29afed[_0x35a13e(_0x56af25._0x41e4c8)] ?? '';
|
|
1042
1055
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1056
|
+
function _0x4f4593(_0x2a3f31) {
|
|
1057
|
+
const _0x4c2f12 = _0x48f325;
|
|
1058
|
+
return _0x2a3f31[_0x4c2f12(0x18b)]?.[_0x4c2f12(0x1e5)] ?? _0x21bcad(_0x2a3f31);
|
|
1046
1059
|
}
|
|
1047
|
-
async function
|
|
1048
|
-
const
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
const
|
|
1054
|
-
'headers':
|
|
1055
|
-
'method':
|
|
1056
|
-
}),
|
|
1057
|
-
'attachments': (
|
|
1058
|
-
'filename':
|
|
1059
|
-
'id':
|
|
1060
|
+
async function _0x5ec010(_0xbe6a15) {
|
|
1061
|
+
const _0x5b6a91 = _0x48f325, _0x13bc88 = Math['min'](_0xbe6a15[_0x5b6a91(0x1ab)] ?? 0x32, 0x64), _0x416fa6 = await _0x11949c(), _0x51e0be = new URLSearchParams();
|
|
1062
|
+
_0x51e0be['set'](_0x5b6a91(_0x5178d6._0x1fb818), String(_0x13bc88));
|
|
1063
|
+
_0xbe6a15['threadId'] ? (_0x51e0be[_0x5b6a91(_0x5178d6._0x3b41f1)]('threadId', _0xbe6a15[_0x5b6a91(0x1a0)]), _0x51e0be[_0x5b6a91(_0x5178d6._0x3b41f1)](_0x5b6a91(0x232), _0xbe6a15[_0x5b6a91(0x232)])) : _0x51e0be[_0x5b6a91(_0x5178d6._0x3153ff)](_0x5b6a91(0x232), _0xbe6a15[_0x5b6a91(_0x5178d6._0x336b5f)]);
|
|
1064
|
+
_0xbe6a15[_0x5b6a91(0x21b)] && _0x51e0be[_0x5b6a91(0x273)](_0x5b6a91(0x202), String(_0xbe6a15[_0x5b6a91(_0x5178d6._0x1c9450)]));
|
|
1065
|
+
_0xbe6a15[_0x5b6a91(0x296)] !== void 0x0 && _0x51e0be['set'](_0x5b6a91(0x296), String(_0xbe6a15[_0x5b6a91(0x296)]));
|
|
1066
|
+
const _0x4dc5a8 = await _0x2827a2(_0x5b6a91(_0x5178d6._0x338fb7) + _0x3bb6b7[_0x5b6a91(0x176)] + '/history?' + _0x51e0be[_0x5b6a91(_0x5178d6._0x2ca19f)](), {
|
|
1067
|
+
'headers': _0xc87eec,
|
|
1068
|
+
'method': _0x5b6a91(0x288)
|
|
1069
|
+
}), _0x42b8d4 = (_0x4dc5a8['data'] ?? [])[_0x5b6a91(_0x5178d6._0x4a339f)](_0x57f9a4 => ({
|
|
1070
|
+
'attachments': (_0x57f9a4[_0x5b6a91(0x16b)] ?? [])[_0x5b6a91(0x272)](_0xa08c73 => ({
|
|
1071
|
+
'filename': _0xa08c73[_0x5b6a91(0x2a0)] ?? _0xa08c73['id'],
|
|
1072
|
+
'id': _0xa08c73['id']
|
|
1060
1073
|
})),
|
|
1061
|
-
'content':
|
|
1062
|
-
'createdAt':
|
|
1063
|
-
...
|
|
1064
|
-
'messageId':
|
|
1065
|
-
'senderName':
|
|
1066
|
-
'senderType':
|
|
1067
|
-
'seq':
|
|
1074
|
+
'content': _0x57f9a4['bodyMarkdown'] ?? '',
|
|
1075
|
+
'createdAt': _0x57f9a4['createdAt'],
|
|
1076
|
+
..._0x57f9a4['kind'] && _0x57f9a4[_0x5b6a91(0x2e4)] !== _0x5b6a91(0x21a) ? { 'kind': _0x57f9a4[_0x5b6a91(0x2e4)] } : {},
|
|
1077
|
+
'messageId': _0x57f9a4['id'],
|
|
1078
|
+
'senderName': _0x57f9a4[_0x5b6a91(0x1c2)],
|
|
1079
|
+
'senderType': _0x517ef7(_0x57f9a4[_0x5b6a91(0x1c2)], _0x416fa6),
|
|
1080
|
+
'seq': _0x57f9a4[_0x5b6a91(0x1c8)] ?? 0x0
|
|
1068
1081
|
}));
|
|
1069
1082
|
return {
|
|
1070
|
-
'channel':
|
|
1071
|
-
'hasMore':
|
|
1072
|
-
'messages':
|
|
1073
|
-
'nextCursor':
|
|
1083
|
+
'channel': _0xbe6a15[_0x5b6a91(_0x5178d6._0x18db34)],
|
|
1084
|
+
'hasMore': _0x4dc5a8[_0x5b6a91(_0x5178d6._0x4a8030)]?.[_0x5b6a91(_0x5178d6._0x5169dc)] ?? ![],
|
|
1085
|
+
'messages': _0x42b8d4,
|
|
1086
|
+
'nextCursor': _0x4dc5a8['meta']?.[_0x5b6a91(0x202)]
|
|
1074
1087
|
};
|
|
1075
1088
|
}
|
|
1076
1089
|
return {
|
|
1077
|
-
async 'sendMessage'(
|
|
1078
|
-
const
|
|
1079
|
-
'body': JSON[
|
|
1080
|
-
'attachment_ids':
|
|
1081
|
-
'bodyMarkdown':
|
|
1082
|
-
'channelId':
|
|
1083
|
-
...
|
|
1084
|
-
'threadId':
|
|
1085
|
-
...
|
|
1090
|
+
async 'sendMessage'(_0x5a235b) {
|
|
1091
|
+
const _0x47ab3c = _0x48f325, _0x54596e = await _0x110dfc(_0x5a235b[_0x47ab3c(_0x4859a0._0x4cb8f4)]), _0x5ebc31 = _0x5a235b[_0x47ab3c(0x162)][_0x47ab3c(_0x4859a0._0x48b217)]('@') ? extractMentionedParticipantIds(_0x5a235b['content'], await _0x11949c()) : [], _0x3a854b = await _0x2827a2('/internal/agent/' + _0x3bb6b7[_0x47ab3c(_0x4859a0._0x3322d0)] + '/send', {
|
|
1092
|
+
'body': JSON[_0x47ab3c(_0x4859a0._0x8af1c2)]({
|
|
1093
|
+
'attachment_ids': _0x5a235b[_0x47ab3c(_0x4859a0._0x378aef)],
|
|
1094
|
+
'bodyMarkdown': _0x5a235b[_0x47ab3c(0x162)],
|
|
1095
|
+
'channelId': _0x54596e[_0x47ab3c(0x232)],
|
|
1096
|
+
..._0x5ebc31[_0x47ab3c(0x19b)] > 0x0 ? { 'mentionedParticipantIds': _0x5ebc31 } : {},
|
|
1097
|
+
'threadId': _0x54596e[_0x47ab3c(_0x4859a0._0x2782d3)],
|
|
1098
|
+
..._0x5a235b[_0x47ab3c(0x18e)] ? { 'visibility': _0x5a235b[_0x47ab3c(_0x4859a0._0x44582d)] } : {}
|
|
1086
1099
|
}),
|
|
1087
|
-
'headers':
|
|
1088
|
-
'method':
|
|
1100
|
+
'headers': _0xc87eec,
|
|
1101
|
+
'method': _0x47ab3c(_0x4859a0._0x3bb155)
|
|
1089
1102
|
});
|
|
1090
|
-
return { 'messageId':
|
|
1103
|
+
return { 'messageId': _0x3a854b['data']?.['id'] ?? '' };
|
|
1091
1104
|
},
|
|
1092
1105
|
async 'listSchedules'() {
|
|
1093
|
-
const
|
|
1094
|
-
'headers':
|
|
1095
|
-
'method':
|
|
1106
|
+
const _0x1bb3b1 = _0x48f325, _0x44493c = await _0x2827a2(_0x1bb3b1(0x16f), {
|
|
1107
|
+
'headers': _0xc87eec,
|
|
1108
|
+
'method': _0x1bb3b1(0x288)
|
|
1096
1109
|
});
|
|
1097
|
-
return
|
|
1110
|
+
return _0x44493c['data'] ?? [];
|
|
1098
1111
|
},
|
|
1099
|
-
async 'claimScheduleRun'(
|
|
1100
|
-
const
|
|
1101
|
-
'body': JSON[
|
|
1102
|
-
'headers':
|
|
1103
|
-
'method':
|
|
1112
|
+
async 'claimScheduleRun'(_0x2cf883) {
|
|
1113
|
+
const _0x135e35 = _0x48f325, _0x9545d5 = await _0x2827a2(_0x135e35(_0x1a75a5._0x456695), {
|
|
1114
|
+
'body': JSON[_0x135e35(_0x1a75a5._0x335977)](_0x2cf883),
|
|
1115
|
+
'headers': _0xc87eec,
|
|
1116
|
+
'method': _0x135e35(0x199)
|
|
1104
1117
|
});
|
|
1105
|
-
return
|
|
1118
|
+
return _0x9545d5[_0x135e35(0x264)] ?? {
|
|
1106
1119
|
'granted': ![],
|
|
1107
1120
|
'runId': null,
|
|
1108
1121
|
'schedule': null,
|
|
1109
|
-
'scheduledFor':
|
|
1122
|
+
'scheduledFor': _0x2cf883[_0x135e35(0x1eb)]
|
|
1110
1123
|
};
|
|
1111
1124
|
},
|
|
1112
|
-
async 'startScheduleRun'(
|
|
1113
|
-
const
|
|
1114
|
-
'body': JSON[
|
|
1115
|
-
'headers':
|
|
1116
|
-
'method':
|
|
1125
|
+
async 'startScheduleRun'(_0xc782aa) {
|
|
1126
|
+
const _0x1df7a8 = _0x48f325, _0x3104d2 = await _0x2827a2(_0x1df7a8(0x1b7) + encodeURIComponent(_0xc782aa[_0x1df7a8(0x2bd)]) + _0x1df7a8(0x299), {
|
|
1127
|
+
'body': JSON[_0x1df7a8(0x161)]({}),
|
|
1128
|
+
'headers': _0xc87eec,
|
|
1129
|
+
'method': _0x1df7a8(0x199)
|
|
1117
1130
|
});
|
|
1118
|
-
return
|
|
1131
|
+
return _0x3104d2[_0x1df7a8(_0x1939d0._0xb11cb8)] ?? {
|
|
1119
1132
|
'claimedByDaemonId': '',
|
|
1120
|
-
'id':
|
|
1133
|
+
'id': _0xc782aa[_0x1df7a8(0x2bd)],
|
|
1121
1134
|
'scheduleId': '',
|
|
1122
|
-
'status':
|
|
1135
|
+
'status': _0x1df7a8(0x259)
|
|
1123
1136
|
};
|
|
1124
1137
|
},
|
|
1125
|
-
async 'finishScheduleRun'(
|
|
1126
|
-
const
|
|
1138
|
+
async 'finishScheduleRun'(_0xf43cef) {
|
|
1139
|
+
const _0xf8f16c = _0x48f325, _0x2179cb = await _0x2827a2(_0xf8f16c(_0x1b448d._0x1d6b78) + encodeURIComponent(_0xf43cef[_0xf8f16c(0x2bd)]) + _0xf8f16c(_0x1b448d._0x4a4bcf), {
|
|
1127
1140
|
'body': JSON['stringify']({
|
|
1128
|
-
'error':
|
|
1129
|
-
'resultJson':
|
|
1130
|
-
'status':
|
|
1141
|
+
'error': _0xf43cef[_0xf8f16c(_0x1b448d._0x143645)],
|
|
1142
|
+
'resultJson': _0xf43cef[_0xf8f16c(_0x1b448d._0x182c4d)],
|
|
1143
|
+
'status': _0xf43cef[_0xf8f16c(_0x1b448d._0x49211a)]
|
|
1131
1144
|
}),
|
|
1132
|
-
'headers':
|
|
1133
|
-
'method':
|
|
1145
|
+
'headers': _0xc87eec,
|
|
1146
|
+
'method': _0xf8f16c(0x199)
|
|
1134
1147
|
});
|
|
1135
|
-
return
|
|
1148
|
+
return _0x2179cb[_0xf8f16c(_0x1b448d._0x4d0d00)] ?? {
|
|
1136
1149
|
'nextRunAt': null,
|
|
1137
1150
|
'run': {
|
|
1138
1151
|
'claimedByDaemonId': '',
|
|
1139
|
-
'id':
|
|
1152
|
+
'id': _0xf43cef[_0xf8f16c(0x2bd)],
|
|
1140
1153
|
'scheduleId': '',
|
|
1141
|
-
'status':
|
|
1154
|
+
'status': _0xf43cef[_0xf8f16c(0x1b0)]
|
|
1142
1155
|
}
|
|
1143
1156
|
};
|
|
1144
1157
|
},
|
|
1145
|
-
async 'listTasks'(
|
|
1146
|
-
const
|
|
1147
|
-
return
|
|
1148
|
-
'headers':
|
|
1149
|
-
'method':
|
|
1158
|
+
async 'listTasks'(_0x20722d) {
|
|
1159
|
+
const _0x1830d3 = _0x48f325, _0x2afdbc = new URLSearchParams();
|
|
1160
|
+
return _0x2afdbc[_0x1830d3(0x273)]('channel', _0x20722d[_0x1830d3(0x198)]), _0x20722d['status'] && _0x2afdbc[_0x1830d3(_0xf46048._0x5f45ca)]('status', _0x20722d[_0x1830d3(_0xf46048._0x520316)]), _0x316b90(_0x1830d3(0x19d) + _0x3bb6b7['agentId'] + _0x1830d3(_0xf46048._0x614c6) + _0x2afdbc[_0x1830d3(0x2d9)](), {
|
|
1161
|
+
'headers': _0xc87eec,
|
|
1162
|
+
'method': 'GET'
|
|
1150
1163
|
});
|
|
1151
1164
|
},
|
|
1152
|
-
async 'createTasks'(
|
|
1153
|
-
const
|
|
1154
|
-
return
|
|
1155
|
-
'body': JSON[
|
|
1156
|
-
...
|
|
1157
|
-
'idempotency_key':
|
|
1165
|
+
async 'createTasks'(_0x32a205) {
|
|
1166
|
+
const _0xa261a2 = _0x48f325;
|
|
1167
|
+
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0xa261a2(_0x2916ed._0xbe4c7d)] + _0xa261a2(0x2cc), {
|
|
1168
|
+
'body': JSON[_0xa261a2(_0x2916ed._0x21540b)]({
|
|
1169
|
+
..._0x32a205,
|
|
1170
|
+
'idempotency_key': _0x102300('create_tasks', _0x32a205)
|
|
1158
1171
|
}),
|
|
1159
|
-
'headers':
|
|
1172
|
+
'headers': _0xc87eec,
|
|
1160
1173
|
'method': 'POST'
|
|
1161
1174
|
});
|
|
1162
1175
|
},
|
|
1163
|
-
async 'claimTasks'(
|
|
1164
|
-
const
|
|
1165
|
-
return
|
|
1166
|
-
'body': JSON[
|
|
1167
|
-
...
|
|
1168
|
-
'idempotency_key':
|
|
1176
|
+
async 'claimTasks'(_0x4bb18d) {
|
|
1177
|
+
const _0x239398 = _0x48f325;
|
|
1178
|
+
return _0x316b90(_0x239398(_0x50dace._0x34f27e) + _0x3bb6b7['agentId'] + _0x239398(0x27a), {
|
|
1179
|
+
'body': JSON[_0x239398(0x161)]({
|
|
1180
|
+
..._0x4bb18d,
|
|
1181
|
+
'idempotency_key': _0x102300('claim_tasks', _0x4bb18d)
|
|
1169
1182
|
}),
|
|
1170
|
-
'headers':
|
|
1171
|
-
'method':
|
|
1183
|
+
'headers': _0xc87eec,
|
|
1184
|
+
'method': _0x239398(0x199)
|
|
1172
1185
|
});
|
|
1173
1186
|
},
|
|
1174
|
-
async 'unclaimTask'(
|
|
1175
|
-
const
|
|
1176
|
-
return
|
|
1177
|
-
'body': JSON[
|
|
1178
|
-
...
|
|
1179
|
-
'idempotency_key':
|
|
1187
|
+
async 'unclaimTask'(_0x173089) {
|
|
1188
|
+
const _0x5ea04f = _0x48f325;
|
|
1189
|
+
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0x5ea04f(0x176)] + _0x5ea04f(0x160), {
|
|
1190
|
+
'body': JSON[_0x5ea04f(_0x9a1578._0x3c041f)]({
|
|
1191
|
+
..._0x173089,
|
|
1192
|
+
'idempotency_key': _0x102300(_0x5ea04f(_0x9a1578._0x293887), _0x173089)
|
|
1180
1193
|
}),
|
|
1181
|
-
'headers':
|
|
1182
|
-
'method':
|
|
1194
|
+
'headers': _0xc87eec,
|
|
1195
|
+
'method': _0x5ea04f(_0x9a1578._0xbc75fe)
|
|
1183
1196
|
});
|
|
1184
1197
|
},
|
|
1185
|
-
async 'updateTaskStatus'(
|
|
1186
|
-
const
|
|
1187
|
-
return
|
|
1188
|
-
'body': JSON[
|
|
1189
|
-
...
|
|
1190
|
-
'idempotency_key':
|
|
1198
|
+
async 'updateTaskStatus'(_0x3c9423) {
|
|
1199
|
+
const _0x40004a = _0x48f325;
|
|
1200
|
+
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0x40004a(0x176)] + _0x40004a(_0x200b23._0x31b56f), {
|
|
1201
|
+
'body': JSON['stringify']({
|
|
1202
|
+
..._0x3c9423,
|
|
1203
|
+
'idempotency_key': _0x102300(_0x40004a(0x1f8), _0x3c9423)
|
|
1191
1204
|
}),
|
|
1192
|
-
'headers':
|
|
1193
|
-
'method':
|
|
1205
|
+
'headers': _0xc87eec,
|
|
1206
|
+
'method': _0x40004a(0x199)
|
|
1194
1207
|
});
|
|
1195
1208
|
},
|
|
1196
|
-
async 'uploadFile'(
|
|
1197
|
-
const
|
|
1198
|
-
if (
|
|
1199
|
-
throw new Error(
|
|
1200
|
-
const
|
|
1201
|
-
'body': JSON[
|
|
1202
|
-
'channel':
|
|
1203
|
-
'contentBase64':
|
|
1204
|
-
'contentType':
|
|
1205
|
-
'originalFilename':
|
|
1209
|
+
async 'uploadFile'(_0x213157) {
|
|
1210
|
+
const _0x372205 = _0x48f325, _0x416c69 = await _0x110dfc(_0x213157[_0x372205(0x198)]);
|
|
1211
|
+
if (_0x416c69[_0x372205(0x1a0)])
|
|
1212
|
+
throw new Error(_0x372205(0x17c));
|
|
1213
|
+
const _0x45a4cf = await _0x2827a2(_0x372205(0x19d) + _0x3bb6b7[_0x372205(_0x2c5794._0xa85bf2)] + _0x372205(_0x2c5794._0x15b995), {
|
|
1214
|
+
'body': JSON[_0x372205(_0x2c5794._0x23a462)]({
|
|
1215
|
+
'channel': _0x416c69['target'],
|
|
1216
|
+
'contentBase64': _0x213157[_0x372205(0x168)],
|
|
1217
|
+
'contentType': _0x213157[_0x372205(_0x2c5794._0xaf3664)],
|
|
1218
|
+
'originalFilename': _0x213157[_0x372205(_0x2c5794._0xf5083b)]
|
|
1206
1219
|
}),
|
|
1207
|
-
'headers':
|
|
1208
|
-
'method':
|
|
1220
|
+
'headers': _0xc87eec,
|
|
1221
|
+
'method': _0x372205(0x199)
|
|
1209
1222
|
});
|
|
1210
1223
|
return {
|
|
1211
|
-
'attachmentId':
|
|
1212
|
-
'filename':
|
|
1213
|
-
'sizeBytes':
|
|
1224
|
+
'attachmentId': _0x45a4cf[_0x372205(0x264)]?.['id'] ?? '',
|
|
1225
|
+
'filename': _0x45a4cf[_0x372205(_0x2c5794._0xe09642)]?.['originalFilename'] ?? _0x213157[_0x372205(0x2a0)],
|
|
1226
|
+
'sizeBytes': _0x45a4cf['data']?.[_0x372205(_0x2c5794._0x7f2658)] ?? 0x0
|
|
1214
1227
|
};
|
|
1215
1228
|
},
|
|
1216
|
-
async 'downloadAttachment'(
|
|
1217
|
-
const
|
|
1218
|
-
'headers':
|
|
1219
|
-
'method':
|
|
1220
|
-
}),
|
|
1229
|
+
async 'downloadAttachment'(_0x43f0ad) {
|
|
1230
|
+
const _0x4e4c67 = _0x48f325, _0x56d8d7 = await _0x2827a2(_0x4e4c67(_0x6a3ff5._0x254fd0) + _0x43f0ad, {
|
|
1231
|
+
'headers': _0xc87eec,
|
|
1232
|
+
'method': _0x4e4c67(_0x6a3ff5._0x5f3711)
|
|
1233
|
+
}), _0x42cccd = new AbortController(), _0x30b6c4 = setTimeout(() => _0x42cccd[_0x4e4c67(0x295)](), _0x48c043);
|
|
1221
1234
|
try {
|
|
1222
|
-
const
|
|
1223
|
-
'headers':
|
|
1224
|
-
'method':
|
|
1225
|
-
'signal':
|
|
1235
|
+
const _0x4c5a30 = await _0x230d44(_0x4cea4c + '/api/attachments/' + _0x43f0ad + '/content', {
|
|
1236
|
+
'headers': _0xc87eec,
|
|
1237
|
+
'method': 'GET',
|
|
1238
|
+
'signal': _0x42cccd[_0x4e4c67(_0x6a3ff5._0x6dfcc6)]
|
|
1226
1239
|
});
|
|
1227
|
-
if (!
|
|
1228
|
-
throw new Error(
|
|
1240
|
+
if (!_0x4c5a30['ok'])
|
|
1241
|
+
throw new Error(_0x4e4c67(0x211) + _0x4c5a30[_0x4e4c67(0x1b0)]);
|
|
1229
1242
|
return {
|
|
1230
|
-
'contentType':
|
|
1231
|
-
'data': Buffer[
|
|
1232
|
-
'originalFilename':
|
|
1243
|
+
'contentType': _0x56d8d7[_0x4e4c67(0x264)]?.[_0x4e4c67(_0x6a3ff5._0x209772)] ?? _0x4c5a30[_0x4e4c67(_0x6a3ff5._0x1460ec)][_0x4e4c67(_0x6a3ff5._0x100ac6)](_0x4e4c67(_0x6a3ff5._0x6b5069)) ?? _0x4e4c67(0x26c),
|
|
1244
|
+
'data': Buffer[_0x4e4c67(0x207)](await _0x4c5a30[_0x4e4c67(_0x6a3ff5._0x573126)]()),
|
|
1245
|
+
'originalFilename': _0x56d8d7[_0x4e4c67(0x264)]?.[_0x4e4c67(0x27f)]
|
|
1233
1246
|
};
|
|
1234
1247
|
} finally {
|
|
1235
|
-
clearTimeout(
|
|
1248
|
+
clearTimeout(_0x30b6c4);
|
|
1236
1249
|
}
|
|
1237
1250
|
},
|
|
1238
1251
|
async 'listServer'() {
|
|
1239
|
-
return
|
|
1252
|
+
return _0x11949c({ 'forceRefresh': !![] });
|
|
1240
1253
|
},
|
|
1241
|
-
async 'readHistory'(
|
|
1242
|
-
const
|
|
1243
|
-
return
|
|
1244
|
-
'after':
|
|
1245
|
-
'before':
|
|
1246
|
-
'channelId':
|
|
1247
|
-
'channelTarget':
|
|
1248
|
-
'limit':
|
|
1249
|
-
'threadId':
|
|
1254
|
+
async 'readHistory'(_0x2323f6) {
|
|
1255
|
+
const _0x4161ed = _0x48f325, _0x1a4cb5 = await _0x110dfc(_0x2323f6['channel']);
|
|
1256
|
+
return _0x5ec010({
|
|
1257
|
+
'after': _0x2323f6[_0x4161ed(_0x63a30c._0x5db128)],
|
|
1258
|
+
'before': _0x2323f6[_0x4161ed(_0x63a30c._0x3deb5d)],
|
|
1259
|
+
'channelId': _0x1a4cb5['channelId'],
|
|
1260
|
+
'channelTarget': _0x1a4cb5[_0x4161ed(0x18c)],
|
|
1261
|
+
'limit': _0x2323f6[_0x4161ed(0x1ab)],
|
|
1262
|
+
'threadId': _0x1a4cb5[_0x4161ed(0x1a0)]
|
|
1250
1263
|
});
|
|
1251
1264
|
},
|
|
1252
|
-
'resolveTarget':
|
|
1265
|
+
'resolveTarget': _0x110dfc,
|
|
1253
1266
|
async 'checkMessages'() {
|
|
1254
|
-
const
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1267
|
+
const _0x58443c = {
|
|
1268
|
+
_0x53d111: 0x278,
|
|
1269
|
+
_0x28e730: 0x2a7
|
|
1270
|
+
}, _0xe2b955 = _0x48f325, _0xe1fc3a = new URLSearchParams();
|
|
1271
|
+
_0xe1fc3a[_0xe2b955(0x273)](_0xe2b955(0x2c8), String(_0x15451c));
|
|
1272
|
+
const _0x260e71 = _0xe1fc3a['toString'](), _0x4f8498 = await _0x2827a2(_0xe2b955(_0x1c0289._0x48ce1a) + _0x3bb6b7[_0xe2b955(_0x1c0289._0x451525)] + _0xe2b955(0x24f) + (_0x260e71 ? '?' + _0x260e71 : ''), {
|
|
1273
|
+
'headers': _0xc87eec,
|
|
1274
|
+
'method': _0xe2b955(_0x1c0289._0xe426c5)
|
|
1275
|
+
}), _0x42c094 = _0x4f8498[_0xe2b955(0x264)] ?? [], _0x1a8817 = _0x4f8498[_0xe2b955(_0x1c0289._0x2f4597)]?.[_0xe2b955(_0x1c0289._0x2cbe33)], _0x23e081 = _0x2bd29b ? _0x42c094['filter'](_0x117964 => {
|
|
1276
|
+
const _0x42b80a = _0xe2b955;
|
|
1277
|
+
if (_0x117964[_0x42b80a(_0x58443c._0x53d111)] !== 'message')
|
|
1278
|
+
return ![];
|
|
1279
|
+
return _0x222741(_0x2bd29b, asRecord(_0x117964[_0x42b80a(_0x58443c._0x28e730)]));
|
|
1280
|
+
}) : _0x42c094, _0x1565e8 = _0x1a8817 !== void 0x0 ? _0x2bd29b ? Math[_0xe2b955(_0x1c0289._0x266778)](_0x15451c, _0x23e081[_0xe2b955(0x19b)] > 0x0 ? _0x23e081[_0x23e081[_0xe2b955(_0x1c0289._0x22a6ca)] - 0x1][_0xe2b955(0x1cc)] : _0x15451c) : Math['max'](_0x15451c, _0x1a8817) : _0x23e081[_0xe2b955(_0x1c0289._0x2e059d)] > 0x0 ? Math[_0xe2b955(0x225)](_0x15451c, _0x23e081[_0x23e081[_0xe2b955(0x19b)] - 0x1]['seq']) : _0x15451c, _0x53d822 = _0x42c094[_0xe2b955(_0x1c0289._0x5a9b60)](_0x36703f => _0x36703f[_0xe2b955(0x278)] === _0xe2b955(0x2e8)), _0x1b7358 = _0x2bd29b === void 0x0 && _0x207f3c;
|
|
1281
|
+
let _0x48430a = await _0x11949c(), _0x2542bc = new Map(_0x48430a[_0xe2b955(_0x1c0289._0x15b654)]['map'](_0xc97f01 => [
|
|
1282
|
+
_0xc97f01['id'],
|
|
1283
|
+
_0xc97f01
|
|
1263
1284
|
]));
|
|
1264
|
-
const
|
|
1265
|
-
const
|
|
1266
|
-
return Boolean(
|
|
1285
|
+
const _0x457934 = _0x53d822[_0xe2b955(_0x1c0289._0x22b91a)](_0x80e8ec => {
|
|
1286
|
+
const _0x1abf8d = _0xe2b955, _0x54d8fa = asRecord(_0x80e8ec[_0x1abf8d(_0x1d69b1._0x36ef6d)]), _0x3fb2fc = typeof _0x54d8fa?.[_0x1abf8d(_0x1d69b1._0x31e886)] === _0x1abf8d(_0x1d69b1._0x1699b6) ? _0x54d8fa[_0x1abf8d(0x232)] : '';
|
|
1287
|
+
return Boolean(_0x3fb2fc) && !_0x2542bc['has'](_0x3fb2fc);
|
|
1267
1288
|
});
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1289
|
+
_0x457934 && (_0x48430a = await _0x11949c({ 'forceRefresh': !![] }), _0x2542bc = new Map(_0x48430a[_0xe2b955(_0x1c0289._0x15b654)][_0xe2b955(0x272)](_0x45516a => [
|
|
1290
|
+
_0x45516a['id'],
|
|
1291
|
+
_0x45516a
|
|
1271
1292
|
])));
|
|
1272
|
-
const
|
|
1273
|
-
for (const
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1293
|
+
const _0x50f22c = new Map();
|
|
1294
|
+
for (const _0x252c00 of _0x53d822) {
|
|
1295
|
+
const _0x159dcb = asRecord(_0x252c00[_0xe2b955(0x2a7)]), _0x44c53a = typeof _0x159dcb[_0xe2b955(0x232)] === _0xe2b955(_0x1c0289._0x5b04b3) ? _0x159dcb[_0xe2b955(_0x1c0289._0x46e7df)] : '';
|
|
1296
|
+
if (!_0x44c53a)
|
|
1276
1297
|
continue;
|
|
1277
|
-
const
|
|
1298
|
+
const _0x27597a = typeof _0x159dcb[_0xe2b955(_0x1c0289._0xf1d99a)] === _0xe2b955(_0x1c0289._0x2f7f46) ? _0x159dcb[_0xe2b955(0x1a0)] : void 0x0, _0x4543c7 = typeof _0x159dcb[_0xe2b955(_0x1c0289._0x271bb9)] === _0xe2b955(_0x1c0289._0x3194a2) ? _0x159dcb[_0xe2b955(0x269)] : void 0x0, _0x27765c = typeof _0x159dcb[_0xe2b955(_0x1c0289._0x5aaad6)] === 'number' && Number[_0xe2b955(_0x1c0289._0x5bedd8)](_0x159dcb[_0xe2b955(_0x1c0289._0x5aaad6)]) ? _0x159dcb[_0xe2b955(_0x1c0289._0x6ba06a)] : void 0x0, _0x3be78c = Boolean(_0x27597a && (!_0x4543c7 || _0x252c00[_0xe2b955(_0x1c0289._0x4078ae)] !== _0x4543c7)), _0x5c4728 = _0x3be78c ? _0x44c53a + ':' + _0x27597a : _0x44c53a, _0x142dd9 = _0x50f22c['get'](_0x5c4728) ?? {
|
|
1278
1299
|
'aggregateIds': [],
|
|
1279
|
-
'channelId':
|
|
1300
|
+
'channelId': _0x44c53a,
|
|
1280
1301
|
'entries': new Map(),
|
|
1281
|
-
'isThreadReply':
|
|
1282
|
-
'rootMessageId':
|
|
1283
|
-
'threadNumber':
|
|
1284
|
-
'threadId':
|
|
1302
|
+
'isThreadReply': _0x3be78c,
|
|
1303
|
+
'rootMessageId': _0x4543c7,
|
|
1304
|
+
'threadNumber': _0x27765c,
|
|
1305
|
+
'threadId': _0x3be78c ? _0x27597a : void 0x0
|
|
1285
1306
|
};
|
|
1286
|
-
|
|
1287
|
-
'payloadJson':
|
|
1288
|
-
'seq':
|
|
1289
|
-
}),
|
|
1307
|
+
_0x142dd9[_0xe2b955(_0x1c0289._0x383e10)] == null && _0x27765c != null && (_0x142dd9[_0xe2b955(0x29e)] = _0x27765c), !_0x142dd9[_0xe2b955(_0x1c0289._0x444bac)] && _0x4543c7 && (_0x142dd9[_0xe2b955(_0x1c0289._0xdc1113)] = _0x4543c7), _0x142dd9[_0xe2b955(0x242)][_0xe2b955(_0x1c0289._0x586d41)](_0x252c00['aggregateId']), _0x142dd9[_0xe2b955(_0x1c0289._0x5c04f3)][_0xe2b955(0x273)](_0x252c00[_0xe2b955(0x1d8)], {
|
|
1308
|
+
'payloadJson': _0x252c00[_0xe2b955(0x2a7)],
|
|
1309
|
+
'seq': _0x252c00['seq']
|
|
1310
|
+
}), _0x50f22c[_0xe2b955(0x273)](_0x5c4728, _0x142dd9);
|
|
1290
1311
|
}
|
|
1291
|
-
const
|
|
1292
|
-
for (const
|
|
1312
|
+
const _0x3843d3 = [];
|
|
1313
|
+
for (const _0x555b88 of _0x50f22c[_0xe2b955(0x1b1)]()) {
|
|
1293
1314
|
const {
|
|
1294
|
-
channelId:
|
|
1295
|
-
threadId:
|
|
1296
|
-
rootMessageId:
|
|
1297
|
-
threadNumber:
|
|
1298
|
-
aggregateIds:
|
|
1299
|
-
isThreadReply:
|
|
1300
|
-
entries:
|
|
1301
|
-
} =
|
|
1302
|
-
'channelTarget':
|
|
1303
|
-
'rootMessageId':
|
|
1304
|
-
'threadId':
|
|
1305
|
-
'threadNumber':
|
|
1306
|
-
},
|
|
1307
|
-
'channelId':
|
|
1308
|
-
'channelTarget':
|
|
1309
|
-
'limit': Math[
|
|
1310
|
-
'threadId':
|
|
1311
|
-
}),
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
])),
|
|
1315
|
-
for (const
|
|
1316
|
-
if (!
|
|
1315
|
+
channelId: _0xe367ec,
|
|
1316
|
+
threadId: _0x58e011,
|
|
1317
|
+
rootMessageId: _0x20fb15,
|
|
1318
|
+
threadNumber: _0x2f3fe7,
|
|
1319
|
+
aggregateIds: _0x4cbb95,
|
|
1320
|
+
isThreadReply: _0x4430a1,
|
|
1321
|
+
entries: _0x1e2983
|
|
1322
|
+
} = _0x555b88, _0x3ca988 = _0x2542bc[_0xe2b955(0x286)](_0xe367ec), _0x4e8f8a = _0x3ca988?.[_0xe2b955(0x1e5)] ?? _0xe367ec, _0x1dce52 = _0x3ca988?.[_0xe2b955(0x2e4)] === 'dm' ? _0xe2b955(_0x1c0289._0x44eac3) + _0x4e8f8a : '#' + _0x4e8f8a, _0x316f7f = {
|
|
1323
|
+
'channelTarget': _0x1dce52,
|
|
1324
|
+
'rootMessageId': _0x20fb15,
|
|
1325
|
+
'threadId': _0x58e011,
|
|
1326
|
+
'threadNumber': _0x2f3fe7
|
|
1327
|
+
}, _0xb61251 = await _0x5ec010({
|
|
1328
|
+
'channelId': _0xe367ec,
|
|
1329
|
+
'channelTarget': _0x1dce52,
|
|
1330
|
+
'limit': Math['max'](_0x4cbb95['length'], 0x32),
|
|
1331
|
+
'threadId': _0x58e011
|
|
1332
|
+
}), _0xd6c793 = new Map(_0xb61251[_0xe2b955(0x20b)][_0xe2b955(_0x1c0289._0x12954c)](_0x30636e => [
|
|
1333
|
+
_0x30636e[_0xe2b955(0x18d)],
|
|
1334
|
+
_0x30636e
|
|
1335
|
+
])), _0x23104d = _0x58e011 ? _0x1a9f4f(_0x316f7f) : _0x1dce52, _0xfee26a = _0x2bd29b ? _0x4430a1 && _0x377524(_0x2bd29b, _0x316f7f) : !![], _0x5b0ef6 = _0x4430a1 ? _0xfee26a && _0x2bd29b ? _0x2bd29b : _0x23104d : _0x1dce52;
|
|
1336
|
+
for (const _0x47fcf8 of _0x4cbb95) {
|
|
1337
|
+
if (!_0xfee26a)
|
|
1317
1338
|
continue;
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1339
|
+
const _0x492736 = _0x1e2983[_0xe2b955(_0x1c0289._0x744452)](_0x47fcf8), _0x145d7a = _0x492736 ? asRecord(_0x492736['payloadJson']) : void 0x0, _0x199f00 = _0x145d7a?.[_0xe2b955(_0x1c0289._0x5ee732)] === _0xe2b955(_0x1c0289._0x1710bf);
|
|
1340
|
+
if (_0x1b7358 && _0x199f00)
|
|
1320
1341
|
continue;
|
|
1321
|
-
const
|
|
1322
|
-
if (
|
|
1323
|
-
|
|
1324
|
-
'attachments':
|
|
1325
|
-
'content':
|
|
1326
|
-
'createdAt':
|
|
1327
|
-
...
|
|
1328
|
-
'messageId':
|
|
1329
|
-
'senderName':
|
|
1330
|
-
'senderType':
|
|
1331
|
-
'target':
|
|
1332
|
-
...
|
|
1342
|
+
const _0x378f1a = _0xd6c793[_0xe2b955(0x286)](_0x47fcf8);
|
|
1343
|
+
if (_0x378f1a) {
|
|
1344
|
+
_0x3843d3[_0xe2b955(0x2e9)]({
|
|
1345
|
+
'attachments': _0x378f1a[_0xe2b955(0x16b)],
|
|
1346
|
+
'content': _0x378f1a[_0xe2b955(_0x1c0289._0x544c3)],
|
|
1347
|
+
'createdAt': _0x378f1a['createdAt'],
|
|
1348
|
+
..._0x378f1a['kind'] ? { 'kind': _0x378f1a[_0xe2b955(_0x1c0289._0x540203)] } : {},
|
|
1349
|
+
'messageId': _0x378f1a['messageId'],
|
|
1350
|
+
'senderName': _0x378f1a[_0xe2b955(0x1a1)],
|
|
1351
|
+
'senderType': _0x378f1a[_0xe2b955(0x1d6)],
|
|
1352
|
+
'target': _0x5b0ef6,
|
|
1353
|
+
..._0x199f00 ? { 'targetedTask': !![] } : {}
|
|
1333
1354
|
});
|
|
1334
1355
|
continue;
|
|
1335
1356
|
}
|
|
1336
|
-
if (
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1357
|
+
if (_0x492736) {
|
|
1358
|
+
const _0x2c6f79 = typeof _0x145d7a?.[_0xe2b955(_0x1c0289._0x213e9a)] === _0xe2b955(0x20c) ? _0x145d7a[_0xe2b955(_0x1c0289._0x213e9a)] : '', _0x5dacba = typeof _0x145d7a?.[_0xe2b955(0x218)] === _0xe2b955(0x20c) ? _0x145d7a[_0xe2b955(_0x1c0289._0x39bbf3)] : '', _0xf51d6b = typeof _0x145d7a?.[_0xe2b955(_0x1c0289._0x540203)] === _0xe2b955(0x20c) && _0x145d7a[_0xe2b955(0x2e4)] !== _0xe2b955(_0x1c0289._0x595d7c) ? _0x145d7a[_0xe2b955(0x2e4)] : void 0x0;
|
|
1359
|
+
_0x2c6f79 && _0x5dacba && _0x3843d3[_0xe2b955(_0x1c0289._0x586d41)]({
|
|
1339
1360
|
'attachments': [],
|
|
1340
|
-
'content':
|
|
1341
|
-
'createdAt': new Date()[
|
|
1342
|
-
...
|
|
1343
|
-
'messageId':
|
|
1344
|
-
'senderName':
|
|
1345
|
-
'senderType':
|
|
1346
|
-
'target':
|
|
1347
|
-
...
|
|
1361
|
+
'content': _0x5dacba,
|
|
1362
|
+
'createdAt': new Date()[_0xe2b955(0x245)](),
|
|
1363
|
+
..._0xf51d6b ? { 'kind': _0xf51d6b } : {},
|
|
1364
|
+
'messageId': _0x47fcf8,
|
|
1365
|
+
'senderName': _0x2c6f79,
|
|
1366
|
+
'senderType': _0x517ef7(_0x2c6f79, _0x48430a),
|
|
1367
|
+
'target': _0x5b0ef6,
|
|
1368
|
+
..._0x199f00 ? { 'targetedTask': !![] } : {}
|
|
1348
1369
|
});
|
|
1349
1370
|
}
|
|
1350
1371
|
}
|
|
1351
1372
|
}
|
|
1352
|
-
if (
|
|
1353
|
-
if (
|
|
1354
|
-
await
|
|
1373
|
+
if (_0x1565e8 > 0x0) {
|
|
1374
|
+
if (_0x35c865)
|
|
1375
|
+
await _0x2d0964(_0x1565e8);
|
|
1355
1376
|
else
|
|
1356
|
-
|
|
1377
|
+
_0x5e99c6 && await _0x5add0b(_0x1565e8);
|
|
1357
1378
|
}
|
|
1358
|
-
return
|
|
1379
|
+
return _0x1565e8 > _0x15451c && (_0x15451c = _0x1565e8), { 'messages': _0x2bd29b ? _0x3843d3 : _0x1b7358 ? _0x3843d3[_0xe2b955(0x23e)](_0xff35f8 => _0xff35f8[_0xe2b955(0x1df)] !== !![]) : _0x3843d3 };
|
|
1359
1380
|
}
|
|
1360
1381
|
};
|
|
1361
1382
|
}
|
|
1362
|
-
function toLocalTime(
|
|
1363
|
-
const
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
const _0x42da82 = _0x463b9e => String(_0x463b9e)[_0xa58538(0x226)](0x2, '0');
|
|
1373
|
-
return _0x9c3873['getFullYear']() + '-' + _0x42da82(_0x9c3873[_0xa58538(0x218)]() + 0x1) + '-' + _0x42da82(_0x9c3873['getDate']()) + '\x20' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0xa14129)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x178524)]()) + ':' + _0x42da82(_0x9c3873[_0xa58538(_0x688624._0x4291cf)]());
|
|
1383
|
+
function toLocalTime(_0x1cc4e1) {
|
|
1384
|
+
const _0xd6adb1 = {
|
|
1385
|
+
_0x4da6a0: 0x197,
|
|
1386
|
+
_0x4e1f38: 0x267,
|
|
1387
|
+
_0x1aa32f: 0x189
|
|
1388
|
+
}, _0x22b6cd = _0x28aee3, _0x2245fb = new Date(_0x1cc4e1);
|
|
1389
|
+
if (Number['isNaN'](_0x2245fb[_0x22b6cd(_0xd6adb1._0x4da6a0)]()))
|
|
1390
|
+
return _0x1cc4e1;
|
|
1391
|
+
const _0x2dc4d8 = _0x24dd30 => String(_0x24dd30)[_0x22b6cd(0x227)](0x2, '0');
|
|
1392
|
+
return _0x2245fb[_0x22b6cd(_0xd6adb1._0x4e1f38)]() + '-' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x2e6)]() + 0x1) + '-' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x2bf)]()) + '\x20' + _0x2dc4d8(_0x2245fb[_0x22b6cd(0x181)]()) + ':' + _0x2dc4d8(_0x2245fb[_0x22b6cd(_0xd6adb1._0x1aa32f)]()) + ':' + _0x2dc4d8(_0x2245fb['getSeconds']());
|
|
1374
1393
|
}
|
|
1375
|
-
function formatAttachmentSuffix(
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1394
|
+
function formatAttachmentSuffix(_0x2daf26) {
|
|
1395
|
+
const _0x100bda = {
|
|
1396
|
+
_0x214ed9: 0x19b,
|
|
1397
|
+
_0x5abd23: 0x272,
|
|
1398
|
+
_0x479f15: 0x1ca
|
|
1399
|
+
}, _0x3bb45b = _0x28aee3;
|
|
1400
|
+
if (!_0x2daf26 || _0x2daf26['length'] === 0x0)
|
|
1378
1401
|
return '';
|
|
1379
|
-
return '\x20[' +
|
|
1402
|
+
return '\x20[' + _0x2daf26[_0x3bb45b(0x19b)] + '\x20attachment' + (_0x2daf26[_0x3bb45b(_0x100bda._0x214ed9)] > 0x1 ? 's' : '') + ':\x20' + _0x2daf26[_0x3bb45b(_0x100bda._0x5abd23)](_0x3366ab => _0x3366ab[_0x3bb45b(0x2a0)] + '\x20(id:' + _0x3366ab['id'] + ')')[_0x3bb45b(0x1dd)](',\x20') + _0x3bb45b(_0x100bda._0x479f15);
|
|
1380
1403
|
}
|
|
1381
|
-
function formatCheckMessages(
|
|
1382
|
-
const
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
return _0x1e2190['map'](_0x262962 => {
|
|
1394
|
-
const _0xf02aad = _0x4c0ef5, _0x12231a = _0x262962['senderType'] === _0xf02aad(0x1c0) ? _0xf02aad(_0x27b6e7._0x12d667) : '', _0x3b869f = _0x262962[_0xf02aad(0x15f)] && _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] !== 'chat' ? _0xf02aad(_0x27b6e7._0x5b3fdb) + _0x262962[_0xf02aad(_0x27b6e7._0xdeacd8)] : '';
|
|
1395
|
-
return _0xf02aad(_0x27b6e7._0x429b89) + _0x262962[_0xf02aad(0x1b9)] + _0xf02aad(0x1f7) + _0x262962['messageId'][_0xf02aad(0x23d)](0x0, 0x8) + _0xf02aad(_0x27b6e7._0x2242f1) + toLocalTime(_0x262962[_0xf02aad(_0x27b6e7._0x2af270)]) + _0x12231a + _0x3b869f + _0xf02aad(0x243) + _0x262962[_0xf02aad(0x206)] + ':\x20' + _0x262962[_0xf02aad(_0x27b6e7._0x16d7e8)] + formatAttachmentSuffix(_0x262962[_0xf02aad(0x1de)]);
|
|
1396
|
-
})[_0x4c0ef5(0x172)]('\x0a');
|
|
1404
|
+
function formatCheckMessages(_0x1f3f9c) {
|
|
1405
|
+
const _0x3fdbcd = {
|
|
1406
|
+
_0x246907: 0x2db,
|
|
1407
|
+
_0x31cbba: 0x162,
|
|
1408
|
+
_0x3968de: 0x16b
|
|
1409
|
+
}, _0x180a57 = _0x28aee3;
|
|
1410
|
+
if (_0x1f3f9c[_0x180a57(0x19b)] === 0x0)
|
|
1411
|
+
return _0x180a57(0x244);
|
|
1412
|
+
return _0x1f3f9c['map'](_0x20ddf3 => {
|
|
1413
|
+
const _0x4c957a = _0x180a57, _0x14c1a7 = _0x20ddf3['senderType'] === _0x4c957a(0x1ed) ? _0x4c957a(0x21f) : '', _0x3fdb2b = _0x20ddf3[_0x4c957a(0x2e4)] && _0x20ddf3['kind'] !== _0x4c957a(0x21a) ? _0x4c957a(0x25b) + _0x20ddf3[_0x4c957a(0x2e4)] : '';
|
|
1414
|
+
return _0x4c957a(0x1a6) + _0x20ddf3[_0x4c957a(0x18c)] + _0x4c957a(_0x3fdbcd._0x246907) + _0x20ddf3[_0x4c957a(0x18d)]['slice'](0x0, 0x8) + _0x4c957a(0x2cf) + toLocalTime(_0x20ddf3[_0x4c957a(0x2c2)]) + _0x14c1a7 + _0x3fdb2b + _0x4c957a(0x1e7) + _0x20ddf3[_0x4c957a(0x1a1)] + ':\x20' + _0x20ddf3[_0x4c957a(_0x3fdbcd._0x31cbba)] + formatAttachmentSuffix(_0x20ddf3[_0x4c957a(_0x3fdbcd._0x3968de)]);
|
|
1415
|
+
})[_0x180a57(0x1dd)]('\x0a');
|
|
1397
1416
|
}
|
|
1398
|
-
function formatHistory(
|
|
1399
|
-
const
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1417
|
+
function formatHistory(_0x47cccf) {
|
|
1418
|
+
const _0xd1e2c2 = {
|
|
1419
|
+
_0x35fd47: 0x20b,
|
|
1420
|
+
_0x21c240: 0x19b,
|
|
1421
|
+
_0x446c9b: 0x28e,
|
|
1422
|
+
_0xf4bac0: 0x1b4,
|
|
1423
|
+
_0xe0562c: 0x2b4,
|
|
1424
|
+
_0x54b3a7: 0x263,
|
|
1425
|
+
_0x4a3982: 0x19b,
|
|
1426
|
+
_0xd47706: 0x2a3
|
|
1427
|
+
}, _0x219e4e = {
|
|
1428
|
+
_0x52c70c: 0x1d6,
|
|
1429
|
+
_0x485306: 0x1ed,
|
|
1430
|
+
_0x2b69f6: 0x2e4,
|
|
1431
|
+
_0x405411: 0x21a,
|
|
1432
|
+
_0x429916: 0x25b,
|
|
1433
|
+
_0x205e81: 0x2e4,
|
|
1434
|
+
_0x302a94: 0x18d,
|
|
1435
|
+
_0x88bde3: 0x162,
|
|
1436
|
+
_0x1d14f4: 0x16b
|
|
1437
|
+
}, _0x51eb1a = _0x28aee3;
|
|
1438
|
+
if (_0x47cccf[_0x51eb1a(_0xd1e2c2._0x35fd47)][_0x51eb1a(_0xd1e2c2._0x21c240)] === 0x0)
|
|
1439
|
+
return _0x51eb1a(_0xd1e2c2._0x446c9b) + _0x47cccf['channel'] + _0x51eb1a(0x167);
|
|
1440
|
+
const _0x413c57 = _0x47cccf[_0x51eb1a(0x20b)]['map'](_0x31f1c5 => {
|
|
1441
|
+
const _0x36c59c = _0x51eb1a, _0x373dfd = _0x31f1c5[_0x36c59c(_0x219e4e._0x52c70c)] === _0x36c59c(_0x219e4e._0x485306) ? _0x36c59c(0x21f) : '', _0x744a58 = _0x31f1c5[_0x36c59c(_0x219e4e._0x2b69f6)] && _0x31f1c5[_0x36c59c(0x2e4)] !== _0x36c59c(_0x219e4e._0x405411) ? _0x36c59c(_0x219e4e._0x429916) + _0x31f1c5[_0x36c59c(_0x219e4e._0x205e81)] : '';
|
|
1442
|
+
return '[seq=' + _0x31f1c5[_0x36c59c(0x1cc)] + _0x36c59c(0x2db) + _0x31f1c5[_0x36c59c(_0x219e4e._0x302a94)] + _0x36c59c(0x2cf) + toLocalTime(_0x31f1c5['createdAt']) + _0x373dfd + _0x744a58 + _0x36c59c(0x1e7) + _0x31f1c5[_0x36c59c(0x1a1)] + ':\x20' + _0x31f1c5[_0x36c59c(_0x219e4e._0x88bde3)] + formatAttachmentSuffix(_0x31f1c5[_0x36c59c(_0x219e4e._0x1d14f4)]);
|
|
1443
|
+
})[_0x51eb1a(0x1dd)]('\x0a'), _0x3a2531 = _0x47cccf[_0x51eb1a(_0xd1e2c2._0xf4bac0)] && _0x47cccf[_0x51eb1a(_0xd1e2c2._0xe0562c)] ? _0x51eb1a(0x22a) + _0x47cccf['messages'][_0x51eb1a(0x19b)] + _0x51eb1a(0x2b0) + _0x47cccf[_0x51eb1a(0x2b4)] + _0x51eb1a(_0xd1e2c2._0x54b3a7) : '';
|
|
1444
|
+
return _0x51eb1a(_0xd1e2c2._0x446c9b) + _0x47cccf[_0x51eb1a(0x198)] + '\x20(' + _0x47cccf['messages'][_0x51eb1a(_0xd1e2c2._0x4a3982)] + _0x51eb1a(_0xd1e2c2._0xd47706) + _0x413c57 + _0x3a2531;
|
|
1423
1445
|
}
|
|
1424
|
-
function formatServerDirectory(
|
|
1425
|
-
const
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
},
|
|
1446
|
+
function formatServerDirectory(_0x1c532b) {
|
|
1447
|
+
const _0x10be98 = {
|
|
1448
|
+
_0x92d4d1: 0x1d3,
|
|
1449
|
+
_0x2797d2: 0x272,
|
|
1450
|
+
_0x3555dc: 0x19c,
|
|
1451
|
+
_0x58d163: 0x19b,
|
|
1452
|
+
_0x5643fc: 0x1dd,
|
|
1453
|
+
_0x402e8c: 0x292,
|
|
1454
|
+
_0x1161a8: 0x19b,
|
|
1455
|
+
_0x102db9: 0x1c0,
|
|
1456
|
+
_0x262af8: 0x184
|
|
1457
|
+
}, _0x3f236c = _0x28aee3, _0x548bd5 = _0x1c532b['channels']['length'] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x92d4d1)][_0x3f236c(_0x10be98._0x2797d2)](_0x2a7cb7 => _0x2a7cb7[_0x3f236c(0x2ea)] ? _0x3f236c(0x2b8) + _0x2a7cb7['name'] + _0x3f236c(0x2cb) + _0x2a7cb7['description'] : '-\x20#' + _0x2a7cb7[_0x3f236c(0x1e5)])['join']('\x0a') : _0x3f236c(0x292), _0x310292 = _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(_0x10be98._0x58d163)] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(0x272)](_0x43f38f => '-\x20@' + _0x43f38f[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : _0x3f236c(_0x10be98._0x402e8c), _0x16ad94 = _0x1c532b['humans'][_0x3f236c(_0x10be98._0x1161a8)] > 0x0 ? _0x1c532b['humans']['map'](_0x57c717 => _0x3f236c(0x2a9) + _0x57c717[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : '(none)';
|
|
1436
1458
|
return [
|
|
1437
|
-
|
|
1459
|
+
_0x3f236c(0x26a) + _0x1c532b['serverName'],
|
|
1438
1460
|
'',
|
|
1439
|
-
|
|
1440
|
-
|
|
1461
|
+
_0x3f236c(_0x10be98._0x102db9),
|
|
1462
|
+
_0x548bd5,
|
|
1441
1463
|
'',
|
|
1442
|
-
|
|
1443
|
-
|
|
1464
|
+
'###\x20Agents',
|
|
1465
|
+
_0x310292,
|
|
1444
1466
|
'',
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
][
|
|
1467
|
+
_0x3f236c(_0x10be98._0x262af8),
|
|
1468
|
+
_0x16ad94
|
|
1469
|
+
][_0x3f236c(_0x10be98._0x5643fc)]('\x0a');
|
|
1448
1470
|
}
|
|
1449
|
-
function formatUploadResult(
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}, _0x28145e = _0x77ce4b;
|
|
1457
|
-
return _0x28145e(_0x38a2fc._0x149b39) + _0x5ea479[_0x28145e(_0x38a2fc._0x22b857)] + '\x20(' + (_0x5ea479[_0x28145e(0x125)] / 0x400)[_0x28145e(0x1b4)](0x1) + _0x28145e(_0x38a2fc._0x1e424d) + _0x5ea479[_0x28145e(_0x38a2fc._0x320f0f)] + _0x28145e(_0x38a2fc._0x4a1a03);
|
|
1471
|
+
function formatUploadResult(_0x197b77) {
|
|
1472
|
+
const _0x44e965 = {
|
|
1473
|
+
_0xce7480: 0x24b,
|
|
1474
|
+
_0x2f7780: 0x29d,
|
|
1475
|
+
_0xd79903: 0x1b9
|
|
1476
|
+
}, _0x2ad0ec = _0x28aee3;
|
|
1477
|
+
return 'File\x20uploaded:\x20' + _0x197b77[_0x2ad0ec(0x2a0)] + '\x20(' + (_0x197b77[_0x2ad0ec(_0x44e965._0xce7480)] / 0x400)[_0x2ad0ec(_0x44e965._0x2f7780)](0x1) + _0x2ad0ec(0x27e) + _0x197b77[_0x2ad0ec(0x285)] + _0x2ad0ec(_0x44e965._0xd79903);
|
|
1458
1478
|
}
|
|
1459
|
-
function formatViewFileResult(
|
|
1460
|
-
const
|
|
1461
|
-
return
|
|
1479
|
+
function formatViewFileResult(_0x5bf0e8, _0x464ac5) {
|
|
1480
|
+
const _0x56709c = _0x28aee3;
|
|
1481
|
+
return _0x464ac5 ? _0x56709c(0x2ab) + _0x5bf0e8 : 'Downloaded\x20to:\x20' + _0x5bf0e8;
|
|
1462
1482
|
}
|
|
1463
|
-
function
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1483
|
+
function formatTaskList(_0x3d7ccd, _0x183f4b) {
|
|
1484
|
+
const _0x54ca27 = {
|
|
1485
|
+
_0x469792: 0x249,
|
|
1486
|
+
_0x1db50b: 0x1dd
|
|
1487
|
+
}, _0x1d5caf = {
|
|
1488
|
+
_0x36e333: 0x2b6,
|
|
1489
|
+
_0x12a0dd: 0x18d,
|
|
1490
|
+
_0x43d2cd: 0x17b,
|
|
1491
|
+
_0x296541: 0x2b6,
|
|
1492
|
+
_0x466e86: 0x29f,
|
|
1493
|
+
_0x1ca451: 0x2a4,
|
|
1494
|
+
_0x5b825f: 0x2c1
|
|
1495
|
+
}, _0x576f38 = _0x28aee3;
|
|
1496
|
+
if (_0x3d7ccd[_0x576f38(0x19b)] === 0x0)
|
|
1497
|
+
return _0x576f38(_0x54ca27._0x469792);
|
|
1498
|
+
return _0x3d7ccd[_0x576f38(0x272)](_0xb16d87 => {
|
|
1499
|
+
const _0x46a938 = _0x576f38, _0xdef65c = _0xb16d87[_0x46a938(0x2b6)] == null ? _0x46a938(0x255) : _0xb16d87[_0x46a938(0x2e3)] != null ? '#' + _0xb16d87[_0x46a938(_0x1d5caf._0x36e333)] + '.' + _0xb16d87[_0x46a938(0x2e3)] : '#' + _0xb16d87[_0x46a938(_0x1d5caf._0x36e333)], _0x4c4eb8 = _0xb16d87[_0x46a938(0x18d)] ? _0x46a938(0x1c5) + _0xb16d87[_0x46a938(_0x1d5caf._0x12a0dd)] : '', _0x1f8864 = _0x183f4b && _0xb16d87[_0x46a938(0x2b6)] != null && !_0xb16d87[_0x46a938(0x2e3)] && _0x183f4b[_0x46a938(_0x1d5caf._0x43d2cd)](_0xb16d87[_0x46a938(_0x1d5caf._0x296541)]) ? '\x20executionMode=worker' : '', _0x4ed56d = _0xb16d87[_0x46a938(0x29f)] != null && _0xb16d87[_0x46a938(_0x1d5caf._0x466e86)] > 0x0 ? '\x20(' + (_0xb16d87[_0x46a938(0x280)] ?? 0x0) + '/' + _0xb16d87[_0x46a938(_0x1d5caf._0x466e86)] + _0x46a938(_0x1d5caf._0x1ca451) : '';
|
|
1500
|
+
return _0xdef65c + '\x20[' + _0xb16d87[_0x46a938(0x1b0)] + ']\x20' + _0xb16d87[_0x46a938(_0x1d5caf._0x5b825f)] + _0x4ed56d + _0x4c4eb8 + _0x1f8864;
|
|
1501
|
+
})[_0x576f38(_0x54ca27._0x1db50b)]('\x0a');
|
|
1502
|
+
}
|
|
1503
|
+
function _0x41c3(_0x3e36fe, _0x3f1235) {
|
|
1504
|
+
_0x3e36fe = _0x3e36fe - 0x160;
|
|
1505
|
+
const _0x2e92a6 = _0x2e92();
|
|
1506
|
+
let _0x41c3e3 = _0x2e92a6[_0x3e36fe];
|
|
1507
|
+
if (_0x41c3['GnMGDk'] === undefined) {
|
|
1508
|
+
var _0x10add8 = function (_0x4b27b9) {
|
|
1509
|
+
const _0x3b683e = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1510
|
+
let _0x35e736 = '', _0x1c7992 = '';
|
|
1511
|
+
for (let _0x1c495b = 0x0, _0x328e7b, _0x29663a, _0x2a02f8 = 0x0; _0x29663a = _0x4b27b9['charAt'](_0x2a02f8++); ~_0x29663a && (_0x328e7b = _0x1c495b % 0x4 ? _0x328e7b * 0x40 + _0x29663a : _0x29663a, _0x1c495b++ % 0x4) ? _0x35e736 += String['fromCharCode'](0xff & _0x328e7b >> (-0x2 * _0x1c495b & 0x6)) : 0x0) {
|
|
1512
|
+
_0x29663a = _0x3b683e['indexOf'](_0x29663a);
|
|
1473
1513
|
}
|
|
1474
|
-
for (let
|
|
1475
|
-
|
|
1514
|
+
for (let _0x14ee6e = 0x0, _0x12546d = _0x35e736['length']; _0x14ee6e < _0x12546d; _0x14ee6e++) {
|
|
1515
|
+
_0x1c7992 += '%' + ('00' + _0x35e736['charCodeAt'](_0x14ee6e)['toString'](0x10))['slice'](-0x2);
|
|
1476
1516
|
}
|
|
1477
|
-
return decodeURIComponent(
|
|
1517
|
+
return decodeURIComponent(_0x1c7992);
|
|
1478
1518
|
};
|
|
1479
|
-
|
|
1519
|
+
_0x41c3['FWxGIC'] = _0x10add8, _0x41c3['OyedTw'] = {}, _0x41c3['GnMGDk'] = !![];
|
|
1480
1520
|
}
|
|
1481
|
-
const
|
|
1482
|
-
return !
|
|
1521
|
+
const _0x8d698e = _0x2e92a6[0x0], _0x5420ec = _0x3e36fe + _0x8d698e, _0x27b8b7 = _0x41c3['OyedTw'][_0x5420ec];
|
|
1522
|
+
return !_0x27b8b7 ? (_0x41c3e3 = _0x41c3['FWxGIC'](_0x41c3e3), _0x41c3['OyedTw'][_0x5420ec] = _0x41c3e3) : _0x41c3e3 = _0x27b8b7, _0x41c3e3;
|
|
1483
1523
|
}
|
|
1484
|
-
function
|
|
1485
|
-
const
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1524
|
+
function formatCreatedTasks(_0x2ca879) {
|
|
1525
|
+
const _0x3e4462 = {
|
|
1526
|
+
_0x4edde0: 0x19b,
|
|
1527
|
+
_0x661628: 0x272
|
|
1528
|
+
}, _0x10d1fb = {
|
|
1529
|
+
_0x12764c: 0x1c5,
|
|
1530
|
+
_0x1b4f8a: 0x2c1
|
|
1531
|
+
}, _0x2c6db9 = _0x28aee3;
|
|
1532
|
+
if (_0x2ca879[_0x2c6db9(_0x3e4462._0x4edde0)] === 0x0)
|
|
1533
|
+
return _0x2c6db9(0x28c);
|
|
1534
|
+
return _0x2ca879[_0x2c6db9(_0x3e4462._0x661628)](_0x2ee3db => {
|
|
1535
|
+
const _0x32617 = _0x2c6db9, _0xc376a5 = _0x2ee3db['taskNumber'] == null ? '(legacy)' : _0x2ee3db['subtaskNumber'] != null ? '#' + _0x2ee3db['taskNumber'] + '.' + _0x2ee3db['subtaskNumber'] : '#' + _0x2ee3db[_0x32617(0x2b6)], _0x275476 = _0x2ee3db[_0x32617(0x18d)] ? _0x32617(_0x10d1fb._0x12764c) + _0x2ee3db[_0x32617(0x18d)] : '';
|
|
1536
|
+
return _0xc376a5 + '\x20' + _0x2ee3db[_0x32617(_0x10d1fb._0x1b4f8a)] + _0x275476;
|
|
1537
|
+
})[_0x2c6db9(0x1dd)]('\x0a');
|
|
1492
1538
|
}
|
|
1493
|
-
function
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
_0x3b6404: 0x15e
|
|
1498
|
-
}, _0x241e1b = _0x77ce4b;
|
|
1499
|
-
if (_0x571ac2['length'] === 0x0)
|
|
1500
|
-
return _0x241e1b(0xf2);
|
|
1501
|
-
return _0x571ac2[_0x241e1b(0xf7)](_0x193e67 => {
|
|
1502
|
-
const _0x3b2253 = _0x241e1b, _0x541e03 = _0x193e67['taskNumber'] == null ? _0x3b2253(_0x4f3a6f._0x117745) : _0x193e67['subtaskNumber'] != null ? '#' + _0x193e67[_0x3b2253(0xda)] + '.' + _0x193e67[_0x3b2253(0x156)] : '#' + _0x193e67[_0x3b2253(_0x4f3a6f._0x14d908)], _0x35d8a7 = _0x193e67[_0x3b2253(_0x4f3a6f._0x3b6404)] ? '\x20message=' + _0x193e67[_0x3b2253(0x15e)] : '';
|
|
1503
|
-
return _0x541e03 + '\x20' + _0x193e67[_0x3b2253(0x12c)] + _0x35d8a7;
|
|
1504
|
-
})[_0x241e1b(_0x2af328._0x2fe035)]('\x0a');
|
|
1539
|
+
function formatClaimTaskLabel(_0x21e71a, _0x2561ca) {
|
|
1540
|
+
if (_0x21e71a == null)
|
|
1541
|
+
return '(legacy)';
|
|
1542
|
+
return _0x2561ca != null ? '#' + _0x21e71a + '.' + _0x2561ca : '#' + _0x21e71a;
|
|
1505
1543
|
}
|
|
1506
|
-
function formatClaimTaskResults(
|
|
1507
|
-
const
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
][_0xd46be4(0x1bd)](Boolean)[_0xd46be4(0x172)]('\x20');
|
|
1540
|
-
return _0x5e84b2 + _0xd46be4(_0x338681._0x3358ae) + _0x26bbcc + '\x20' + _0xaba746 + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
|
|
1544
|
+
function formatClaimTaskResults(_0x230983) {
|
|
1545
|
+
const _0x1b57a4 = { _0xe0ce59: 0x28f }, _0x38c796 = {
|
|
1546
|
+
_0x25693b: 0x258,
|
|
1547
|
+
_0x117488: 0x2b6,
|
|
1548
|
+
_0xb1f565: 0x2e3,
|
|
1549
|
+
_0x37533b: 0x2be,
|
|
1550
|
+
_0x3dad44: 0x23d,
|
|
1551
|
+
_0x51a247: 0x208,
|
|
1552
|
+
_0x51ff4c: 0x2a1,
|
|
1553
|
+
_0x553c77: 0x1e2,
|
|
1554
|
+
_0x3669ba: 0x22e,
|
|
1555
|
+
_0x5d4531: 0x1b5,
|
|
1556
|
+
_0x2330d0: 0x23e,
|
|
1557
|
+
_0xa8a259: 0x1dd,
|
|
1558
|
+
_0x3484d8: 0x180,
|
|
1559
|
+
_0x41777f: 0x265,
|
|
1560
|
+
_0x1275d3: 0x163
|
|
1561
|
+
}, _0x1ed6dc = _0x28aee3;
|
|
1562
|
+
if (_0x230983[_0x1ed6dc(0x19b)] === 0x0)
|
|
1563
|
+
return _0x1ed6dc(_0x1b57a4._0xe0ce59);
|
|
1564
|
+
return _0x230983[_0x1ed6dc(0x272)](_0x5a3fa4 => {
|
|
1565
|
+
const _0x160cfe = _0x1ed6dc;
|
|
1566
|
+
if (_0x5a3fa4[_0x160cfe(_0x38c796._0x25693b)]) {
|
|
1567
|
+
const _0x110105 = formatClaimTaskLabel(_0x5a3fa4[_0x160cfe(_0x38c796._0x117488)], _0x5a3fa4[_0x160cfe(_0x38c796._0xb1f565)]), _0x6e7b1c = _0x5a3fa4['messageId'] ? '\x20message=' + _0x5a3fa4['messageId'] : '';
|
|
1568
|
+
if (_0x5a3fa4['workerHandoff']) {
|
|
1569
|
+
const _0x580c8f = [
|
|
1570
|
+
_0x160cfe(_0x38c796._0x37533b),
|
|
1571
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x3dad44)] ? _0x160cfe(_0x38c796._0x51a247) : null,
|
|
1572
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x51ff4c)] ? 'executionMode=' + _0x5a3fa4[_0x160cfe(_0x38c796._0x51ff4c)] : null,
|
|
1573
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x553c77)] ? 'threadTarget=' + _0x5a3fa4['threadTarget'] : null,
|
|
1574
|
+
_0x5a3fa4[_0x160cfe(_0x38c796._0x3669ba)] ? _0x160cfe(_0x38c796._0x5d4531) + _0x5a3fa4[_0x160cfe(0x22e)] : null
|
|
1575
|
+
][_0x160cfe(_0x38c796._0x2330d0)](Boolean)[_0x160cfe(_0x38c796._0xa8a259)]('\x20');
|
|
1576
|
+
return _0x110105 + _0x160cfe(0x213) + _0x6e7b1c + '\x20' + _0x580c8f + _0x160cfe(_0x38c796._0x3484d8);
|
|
1541
1577
|
}
|
|
1542
|
-
const
|
|
1543
|
-
return
|
|
1578
|
+
const _0x56a588 = _0x5a3fa4[_0x160cfe(_0x38c796._0x41777f)] ? _0x160cfe(_0x38c796._0x1275d3) + _0x5a3fa4['workerHandoffError'] : '';
|
|
1579
|
+
return _0x110105 + _0x160cfe(0x213) + _0x6e7b1c + _0x56a588;
|
|
1544
1580
|
}
|
|
1545
|
-
const
|
|
1546
|
-
return
|
|
1547
|
-
})[
|
|
1581
|
+
const _0x1bca68 = _0x5a3fa4[_0x160cfe(_0x38c796._0x117488)] == null ? _0x5a3fa4['messageId'] ?? _0x160cfe(0x186) : formatClaimTaskLabel(_0x5a3fa4['taskNumber'], _0x5a3fa4[_0x160cfe(_0x38c796._0xb1f565)]);
|
|
1582
|
+
return _0x1bca68 + _0x160cfe(0x2d3) + (_0x5a3fa4['reason'] ?? 'claim\x20failed');
|
|
1583
|
+
})[_0x1ed6dc(0x1dd)]('\x0a');
|
|
1548
1584
|
}
|
|
1549
|
-
function formatUnclaimTaskResult(
|
|
1550
|
-
const
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1554
|
-
return
|
|
1585
|
+
function formatUnclaimTaskResult(_0x254eb7) {
|
|
1586
|
+
const _0x5560a8 = {
|
|
1587
|
+
_0x5ed9e1: 0x2e3,
|
|
1588
|
+
_0x19a1d8: 0x2b6
|
|
1589
|
+
}, _0x9fb755 = _0x28aee3, _0x56ab52 = _0x254eb7[_0x9fb755(0x2b6)] == null ? _0x9fb755(0x255) : _0x254eb7[_0x9fb755(0x2e3)] != null ? '#' + _0x254eb7['taskNumber'] + '.' + _0x254eb7[_0x9fb755(_0x5560a8._0x5ed9e1)] : '#' + _0x254eb7[_0x9fb755(_0x5560a8._0x19a1d8)];
|
|
1590
|
+
return _0x56ab52 + '\x20status=' + _0x254eb7[_0x9fb755(0x1b0)];
|
|
1555
1591
|
}
|
|
1556
|
-
function formatUpdateTaskStatusResult(
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1592
|
+
function formatUpdateTaskStatusResult(_0x28523c) {
|
|
1593
|
+
const _0x2ceda7 = {
|
|
1594
|
+
_0x1d8732: 0x255,
|
|
1595
|
+
_0x549c6f: 0x2b6,
|
|
1596
|
+
_0x2f4472: 0x2e3,
|
|
1597
|
+
_0xbef678: 0x24c
|
|
1598
|
+
}, _0x10d4d8 = _0x28aee3, _0x5e157b = _0x28523c['taskNumber'] == null ? _0x10d4d8(_0x2ceda7._0x1d8732) : _0x28523c[_0x10d4d8(0x2e3)] != null ? '#' + _0x28523c[_0x10d4d8(_0x2ceda7._0x549c6f)] + '.' + _0x28523c[_0x10d4d8(_0x2ceda7._0x2f4472)] : '#' + _0x28523c['taskNumber'];
|
|
1599
|
+
return _0x5e157b + _0x10d4d8(_0x2ceda7._0xbef678) + _0x28523c[_0x10d4d8(0x1b0)];
|
|
1563
1600
|
}
|
|
1564
1601
|
function getChatBridgeToolDefinitions() {
|
|
1565
|
-
const
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
},
|
|
1602
|
+
const _0x523c64 = {
|
|
1603
|
+
_0x110ebf: 0x254,
|
|
1604
|
+
_0x9660f9: 0x2b2,
|
|
1605
|
+
_0x25ec4a: 0x1f4,
|
|
1606
|
+
_0x1162ad: 0x2d1,
|
|
1607
|
+
_0x4917b9: 0x282,
|
|
1608
|
+
_0x465d80: 0x260
|
|
1609
|
+
}, _0x3bfe22 = _0x28aee3;
|
|
1573
1610
|
return [
|
|
1574
|
-
{ 'name':
|
|
1611
|
+
{ 'name': _0x3bfe22(_0x523c64._0x110ebf) },
|
|
1575
1612
|
{ 'name': 'check_messages' },
|
|
1576
|
-
{ 'name':
|
|
1577
|
-
{ 'name':
|
|
1613
|
+
{ 'name': _0x3bfe22(_0x523c64._0x9660f9) },
|
|
1614
|
+
{ 'name': _0x3bfe22(_0x523c64._0x25ec4a) },
|
|
1578
1615
|
{ 'name': 'upload_file' },
|
|
1579
|
-
{ 'name':
|
|
1580
|
-
{ 'name':
|
|
1581
|
-
{ 'name':
|
|
1582
|
-
{ 'name':
|
|
1583
|
-
{ 'name':
|
|
1584
|
-
{ 'name':
|
|
1585
|
-
{ 'name':
|
|
1586
|
-
{ 'name':
|
|
1587
|
-
{ 'name':
|
|
1588
|
-
{ 'name':
|
|
1616
|
+
{ 'name': _0x3bfe22(_0x523c64._0x1162ad) },
|
|
1617
|
+
{ 'name': _0x3bfe22(0x1cb) },
|
|
1618
|
+
{ 'name': _0x3bfe22(0x1e8) },
|
|
1619
|
+
{ 'name': _0x3bfe22(0x183) },
|
|
1620
|
+
{ 'name': _0x3bfe22(_0x523c64._0x4917b9) },
|
|
1621
|
+
{ 'name': _0x3bfe22(0x1f8) },
|
|
1622
|
+
{ 'name': 'get_worker_status' },
|
|
1623
|
+
{ 'name': _0x3bfe22(_0x523c64._0x465d80) },
|
|
1624
|
+
{ 'name': 'escalate_to_main' },
|
|
1625
|
+
{ 'name': _0x3bfe22(0x174) }
|
|
1589
1626
|
];
|
|
1590
1627
|
}
|
|
1591
|
-
function createChatBridgeHandlers(
|
|
1592
|
-
const
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
},
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
},
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1628
|
+
function createChatBridgeHandlers(_0x274237) {
|
|
1629
|
+
const _0x48ab59 = {
|
|
1630
|
+
_0xfd6cc3: 0x247,
|
|
1631
|
+
_0x46f70e: 0x161,
|
|
1632
|
+
_0x2caa7d: 0x192,
|
|
1633
|
+
_0x2e0a65: 0x235,
|
|
1634
|
+
_0x455ec2: 0x1b3
|
|
1635
|
+
}, _0x3dbfb8 = {
|
|
1636
|
+
_0x3075bf: 0x248,
|
|
1637
|
+
_0x534c56: 0x176,
|
|
1638
|
+
_0xe1fa6: 0x2dd,
|
|
1639
|
+
_0x9a80c8: 0x176,
|
|
1640
|
+
_0x1e863b: 0x1a2,
|
|
1641
|
+
_0x5f36d1: 0x26d,
|
|
1642
|
+
_0x5f4174: 0x16e
|
|
1643
|
+
}, _0x3d6e5f = {
|
|
1644
|
+
_0x37a09b: 0x246,
|
|
1645
|
+
_0xcb99cf: 0x2ac,
|
|
1646
|
+
_0x20bab2: 0x161,
|
|
1647
|
+
_0x2599e3: 0x192,
|
|
1648
|
+
_0x2757a1: 0x26d
|
|
1649
|
+
}, _0x96f90b = {
|
|
1650
|
+
_0x1310ba: 0x248,
|
|
1651
|
+
_0xa703e2: 0x182,
|
|
1652
|
+
_0x1586f5: 0x192,
|
|
1653
|
+
_0x22014a: 0x25d,
|
|
1654
|
+
_0x1854c3: 0x192,
|
|
1655
|
+
_0xd4631a: 0x28d,
|
|
1656
|
+
_0x1f11d7: 0x1b0
|
|
1657
|
+
}, _0x39f9ce = {
|
|
1658
|
+
_0x2a6353: 0x196,
|
|
1659
|
+
_0x515f1d: 0x229,
|
|
1660
|
+
_0x571b67: 0x19f,
|
|
1661
|
+
_0x23f25d: 0x264
|
|
1662
|
+
}, _0x56a6f5 = {
|
|
1663
|
+
_0x149393: 0x26b,
|
|
1664
|
+
_0x25b28d: 0x198
|
|
1665
|
+
}, _0x13d98e = {
|
|
1666
|
+
_0x4005ac: 0x1f8,
|
|
1667
|
+
_0x519417: 0x198
|
|
1668
|
+
}, _0x101946 = {
|
|
1669
|
+
_0x171b18: 0x282,
|
|
1670
|
+
_0x555bb7: 0x2b3,
|
|
1671
|
+
_0x4a5af3: 0x196,
|
|
1672
|
+
_0x579fc5: 0x20a
|
|
1673
|
+
}, _0x26766d = {
|
|
1674
|
+
_0x1825d8: 0x1aa,
|
|
1675
|
+
_0x5255b9: 0x198,
|
|
1676
|
+
_0x1514aa: 0x16d,
|
|
1677
|
+
_0x56ca94: 0x270,
|
|
1678
|
+
_0x5c0202: 0x270,
|
|
1679
|
+
_0x2b8010: 0x222,
|
|
1680
|
+
_0x133d26: 0x2c4,
|
|
1681
|
+
_0x22a37a: 0x272
|
|
1682
|
+
}, _0xb4b5e2 = {
|
|
1683
|
+
_0x2ffe85: 0x18d,
|
|
1684
|
+
_0x4232d5: 0x198
|
|
1685
|
+
}, _0xea2267 = {
|
|
1686
|
+
_0x2e4276: 0x1e8,
|
|
1687
|
+
_0x3cd830: 0x253,
|
|
1688
|
+
_0x7138f6: 0x1d2
|
|
1689
|
+
}, _0x398240 = {
|
|
1690
|
+
_0x35e1ca: 0x196,
|
|
1691
|
+
_0xb34388: 0x248,
|
|
1692
|
+
_0x25021d: 0x248,
|
|
1693
|
+
_0x4bfa7b: 0x176,
|
|
1694
|
+
_0x10f605: 0x198,
|
|
1695
|
+
_0x1c0106: 0x291,
|
|
1696
|
+
_0x3e475e: 0x240,
|
|
1697
|
+
_0x44b764: 0x274,
|
|
1698
|
+
_0x340b2c: 0x1d2
|
|
1699
|
+
}, _0x4e4c14 = { _0x247b8a: 0x1c1 }, _0x2f3946 = { _0x3ec314: 0x196 }, _0xe68f8a = {
|
|
1700
|
+
_0x152a08: 0x1aa,
|
|
1701
|
+
_0x5b57db: 0x248,
|
|
1702
|
+
_0x13732e: 0x196,
|
|
1703
|
+
_0xc45b79: 0x18c,
|
|
1704
|
+
_0x6540e9: 0x1a0,
|
|
1705
|
+
_0x5f3200: 0x2b6,
|
|
1706
|
+
_0x4c624b: 0x255,
|
|
1707
|
+
_0x29d787: 0x1a0,
|
|
1708
|
+
_0x31cae1: 0x209,
|
|
1709
|
+
_0x38c54c: 0x1fa,
|
|
1710
|
+
_0x4efdfe: 0x162,
|
|
1711
|
+
_0x36453d: 0x165,
|
|
1712
|
+
_0xdaedf2: 0x2d5,
|
|
1713
|
+
_0xfcb71e: 0x199,
|
|
1714
|
+
_0x2ba279: 0x161,
|
|
1715
|
+
_0x356598: 0x2d5,
|
|
1716
|
+
_0x2c11ce: 0x1a2,
|
|
1717
|
+
_0xd3e24c: 0x28b,
|
|
1718
|
+
_0x5cbdd7: 0x22b,
|
|
1719
|
+
_0x16d611: 0x290,
|
|
1720
|
+
_0xe4b00: 0x1dd,
|
|
1721
|
+
_0x3e42d6: 0x27d,
|
|
1722
|
+
_0x597007: 0x2bc
|
|
1723
|
+
}, _0x2d28c4 = {
|
|
1724
|
+
_0x58369c: 0x248,
|
|
1725
|
+
_0x38c28f: 0x297,
|
|
1726
|
+
_0x359f0f: 0x176,
|
|
1727
|
+
_0x4eee7f: 0x1a2,
|
|
1728
|
+
_0x40dc14: 0x178,
|
|
1729
|
+
_0xcb022f: 0x1cf
|
|
1730
|
+
}, _0x5c461d = {
|
|
1731
|
+
_0x22fb02: 0x176,
|
|
1732
|
+
_0x224cf2: 0x205,
|
|
1733
|
+
_0x328a54: 0x291
|
|
1734
|
+
}, _0x33b5e8 = {
|
|
1735
|
+
_0x2625ee: 0x1aa,
|
|
1736
|
+
_0x33522a: 0x1d9,
|
|
1737
|
+
_0x45e909: 0x198,
|
|
1738
|
+
_0x12ace6: 0x236,
|
|
1739
|
+
_0x115e3d: 0x29e,
|
|
1740
|
+
_0x12a26a: 0x20b,
|
|
1741
|
+
_0xa5d903: 0x274,
|
|
1742
|
+
_0x59746c: 0x2b6,
|
|
1743
|
+
_0x49d284: 0x2cf,
|
|
1744
|
+
_0x456d34: 0x245,
|
|
1745
|
+
_0x5a8a27: 0x162,
|
|
1746
|
+
_0x2c5926: 0x18d,
|
|
1747
|
+
_0x5e2dba: 0x1dd,
|
|
1748
|
+
_0xaa0c70: 0x199,
|
|
1749
|
+
_0x42c54b: 0x161,
|
|
1750
|
+
_0x3033ae: 0x176,
|
|
1751
|
+
_0x59ea9a: 0x2d5,
|
|
1752
|
+
_0x286c26: 0x194,
|
|
1753
|
+
_0x1fadda: 0x257,
|
|
1754
|
+
_0x3fefa5: 0x1a2,
|
|
1755
|
+
_0x3c29d0: 0x26d,
|
|
1756
|
+
_0x42f989: 0x2d6,
|
|
1757
|
+
_0x14a1c8: 0x22b,
|
|
1758
|
+
_0x5428ab: 0x1ae
|
|
1759
|
+
}, _0x266de6 = {
|
|
1760
|
+
_0x179109: 0x1a7,
|
|
1761
|
+
_0x17bb39: 0x210,
|
|
1762
|
+
_0x5ab406: 0x1ee
|
|
1763
|
+
}, _0x4fefa1 = _0x28aee3;
|
|
1764
|
+
function _0x30ed5d(_0x508404, _0x869e64) {
|
|
1765
|
+
const _0x59e54d = _0x41c3;
|
|
1766
|
+
if (!_0x274237[_0x59e54d(0x1aa)])
|
|
1725
1767
|
return;
|
|
1726
|
-
if (!
|
|
1727
|
-
throw new Error(
|
|
1728
|
-
if (
|
|
1729
|
-
throw new Error(
|
|
1768
|
+
if (!_0x274237[_0x59e54d(_0x266de6._0x179109)])
|
|
1769
|
+
throw new Error(_0x508404 + _0x59e54d(_0x266de6._0x17bb39));
|
|
1770
|
+
if (_0x869e64 !== _0x274237['workerThreadTarget'])
|
|
1771
|
+
throw new Error(_0x508404 + _0x59e54d(0x2d8) + _0x274237[_0x59e54d(_0x266de6._0x179109)] + _0x59e54d(_0x266de6._0x5ab406) + _0x869e64);
|
|
1730
1772
|
}
|
|
1731
|
-
async function
|
|
1732
|
-
const
|
|
1733
|
-
if (!
|
|
1773
|
+
async function _0x38245e(_0xd7ced4) {
|
|
1774
|
+
const _0x11f141 = _0x41c3;
|
|
1775
|
+
if (!_0x274237['daemonLocalUrl'] || !_0x274237[_0x11f141(0x176)] || _0x274237[_0x11f141(_0x33b5e8._0x2625ee)] || _0x274237[_0x11f141(_0x33b5e8._0x33522a)] !== !![])
|
|
1734
1776
|
return null;
|
|
1735
|
-
const
|
|
1736
|
-
if (
|
|
1777
|
+
const _0x4289e0 = parseTarget(_0xd7ced4[_0x11f141(_0x33b5e8._0x45e909)]);
|
|
1778
|
+
if (_0x4289e0[_0x11f141(0x2e4)] !== _0x11f141(0x198))
|
|
1737
1779
|
return null;
|
|
1738
|
-
const
|
|
1739
|
-
let
|
|
1780
|
+
const _0xc6554 = _0xd7ced4[_0x11f141(0x29e)] != null ? _0x4289e0[_0x11f141(_0x33b5e8._0x12ace6)] + ':t' + _0xd7ced4[_0x11f141(_0x33b5e8._0x115e3d)] : _0x4289e0[_0x11f141(0x236)] + ':' + _0xd7ced4[_0x11f141(0x18d)];
|
|
1781
|
+
let _0x374d15;
|
|
1740
1782
|
try {
|
|
1741
|
-
const
|
|
1742
|
-
'channel':
|
|
1783
|
+
const _0x2f88c6 = await _0x274237['client'][_0x11f141(0x1c1)]({
|
|
1784
|
+
'channel': _0xc6554,
|
|
1743
1785
|
'limit': 0x14
|
|
1744
1786
|
});
|
|
1745
|
-
|
|
1787
|
+
_0x374d15 = _0x2f88c6[_0x11f141(_0x33b5e8._0x12a26a)][_0x11f141(_0x33b5e8._0xa5d903)](_0x1121ac => _0x1121ac[_0x11f141(0x18d)] === _0xd7ced4['messageId']);
|
|
1746
1788
|
} catch {
|
|
1747
|
-
|
|
1789
|
+
_0x374d15 = void 0x0;
|
|
1748
1790
|
}
|
|
1749
|
-
const
|
|
1750
|
-
|
|
1791
|
+
const _0x3facb7 = _0xd7ced4[_0x11f141(0x2b6)] == null ? '(legacy)' : '#' + _0xd7ced4[_0x11f141(_0x33b5e8._0x59746c)], _0x46ec4d = [
|
|
1792
|
+
'[target=' + _0xc6554 + '\x20msg=' + _0xd7ced4[_0x11f141(0x18d)][_0x11f141(0x240)](0x0, 0x8) + _0x11f141(_0x33b5e8._0x49d284) + new Date()[_0x11f141(_0x33b5e8._0x456d34)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x3facb7 + _0x11f141(0x29a),
|
|
1751
1793
|
'',
|
|
1752
|
-
|
|
1794
|
+
_0x374d15 ? _0x11f141(0x262) + _0x374d15[_0x11f141(_0x33b5e8._0x5a8a27)] : _0x11f141(0x21c) + _0xd7ced4[_0x11f141(_0x33b5e8._0x2c5926)],
|
|
1753
1795
|
'',
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
][
|
|
1757
|
-
'method':
|
|
1758
|
-
'headers': { 'Content-Type':
|
|
1759
|
-
'body': JSON[
|
|
1760
|
-
'agent_id':
|
|
1761
|
-
'thread_target':
|
|
1796
|
+
_0x11f141(0x28a) + _0xc6554,
|
|
1797
|
+
_0x11f141(0x276)
|
|
1798
|
+
][_0x11f141(_0x33b5e8._0x5e2dba)]('\x0a'), _0x4c0c0a = await fetch(_0x274237[_0x11f141(0x248)] + '/workers/deliver', {
|
|
1799
|
+
'method': _0x11f141(_0x33b5e8._0xaa0c70),
|
|
1800
|
+
'headers': { 'Content-Type': _0x11f141(0x287) },
|
|
1801
|
+
'body': JSON[_0x11f141(_0x33b5e8._0x42c54b)]({
|
|
1802
|
+
'agent_id': _0x274237[_0x11f141(_0x33b5e8._0x3033ae)],
|
|
1803
|
+
'thread_target': _0xc6554,
|
|
1762
1804
|
'spawn_packet': {
|
|
1763
|
-
'replyTarget':
|
|
1764
|
-
...
|
|
1805
|
+
'replyTarget': _0xc6554,
|
|
1806
|
+
..._0xd7ced4['taskId'] ? { 'taskId': _0xd7ced4[_0x11f141(_0x33b5e8._0x59ea9a)] } : _0xd7ced4[_0x11f141(_0x33b5e8._0x59746c)] != null ? { 'taskId': _0x11f141(_0x33b5e8._0x286c26) + _0xd7ced4[_0x11f141(_0x33b5e8._0x59746c)] } : {}
|
|
1765
1807
|
},
|
|
1766
1808
|
'payload': {
|
|
1767
|
-
'mode':
|
|
1768
|
-
'text':
|
|
1809
|
+
'mode': _0x11f141(_0x33b5e8._0x1fadda),
|
|
1810
|
+
'text': _0x46ec4d
|
|
1769
1811
|
}
|
|
1770
1812
|
})
|
|
1771
|
-
}),
|
|
1772
|
-
if (!
|
|
1773
|
-
throw new Error(
|
|
1813
|
+
}), _0x133ddd = await _0x4c0c0a[_0x11f141(_0x33b5e8._0x3fefa5)]();
|
|
1814
|
+
if (!_0x133ddd['ok'])
|
|
1815
|
+
throw new Error(_0x133ddd[_0x11f141(_0x33b5e8._0x3c29d0)] ?? _0x11f141(_0x33b5e8._0x42f989));
|
|
1774
1816
|
return {
|
|
1775
1817
|
'stopMain': !![],
|
|
1776
|
-
'threadTarget':
|
|
1777
|
-
'workerDisposition':
|
|
1818
|
+
'threadTarget': _0xc6554,
|
|
1819
|
+
'workerDisposition': _0x133ddd['disposition'] === 'queued' ? _0x11f141(_0x33b5e8._0x14a1c8) : _0x11f141(0x290),
|
|
1778
1820
|
'workerHandoff': !![],
|
|
1779
|
-
'workerSessionId':
|
|
1780
|
-
'executionMode':
|
|
1821
|
+
'workerSessionId': _0x133ddd[_0x11f141(_0x33b5e8._0x5428ab)] ?? '',
|
|
1822
|
+
'executionMode': _0x11f141(0x1d1)
|
|
1781
1823
|
};
|
|
1782
1824
|
}
|
|
1783
|
-
async function
|
|
1784
|
-
const
|
|
1785
|
-
if (!
|
|
1825
|
+
async function _0x2ccf0d() {
|
|
1826
|
+
const _0x151764 = _0x41c3;
|
|
1827
|
+
if (!_0x274237['daemonLocalUrl'] || !_0x274237['agentId'] || _0x274237[_0x151764(0x1aa)])
|
|
1786
1828
|
return null;
|
|
1787
1829
|
try {
|
|
1788
|
-
const
|
|
1789
|
-
if (!
|
|
1830
|
+
const _0x23950f = await fetch(_0x274237[_0x151764(0x248)] + _0x151764(0x297) + encodeURIComponent(_0x274237[_0x151764(_0x5c461d._0x22fb02)])), _0x1a02f6 = await _0x23950f[_0x151764(0x1a2)]();
|
|
1831
|
+
if (!_0x1a02f6['ok'])
|
|
1790
1832
|
return null;
|
|
1791
|
-
const
|
|
1792
|
-
for (const
|
|
1793
|
-
|
|
1833
|
+
const _0x2f13f9 = new Set();
|
|
1834
|
+
for (const _0x4dcbd8 of _0x1a02f6['workers']) {
|
|
1835
|
+
_0x4dcbd8['status'] !== _0x151764(_0x5c461d._0x224cf2) && _0x4dcbd8['thread_target'] && _0x2f13f9['add'](_0x4dcbd8[_0x151764(_0x5c461d._0x328a54)]);
|
|
1794
1836
|
}
|
|
1795
|
-
return
|
|
1837
|
+
return _0x2f13f9['size'] > 0x0 ? _0x2f13f9 : null;
|
|
1796
1838
|
} catch {
|
|
1797
1839
|
return null;
|
|
1798
1840
|
}
|
|
1799
1841
|
}
|
|
1800
|
-
const
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1842
|
+
const _0x33e217 = new Set([
|
|
1843
|
+
_0x4fefa1(0x259),
|
|
1844
|
+
_0x4fefa1(0x23b),
|
|
1845
|
+
'waiting_input'
|
|
1804
1846
|
]);
|
|
1805
|
-
async function
|
|
1806
|
-
const
|
|
1807
|
-
if (!
|
|
1847
|
+
async function _0x15ea3b() {
|
|
1848
|
+
const _0x5f4930 = _0x4fefa1;
|
|
1849
|
+
if (!_0x274237[_0x5f4930(0x248)] || !_0x274237[_0x5f4930(0x176)] || _0x274237['workerMode'])
|
|
1808
1850
|
return null;
|
|
1809
1851
|
try {
|
|
1810
|
-
const
|
|
1811
|
-
if (!
|
|
1852
|
+
const _0x260700 = await fetch(_0x274237[_0x5f4930(_0x2d28c4._0x58369c)] + _0x5f4930(_0x2d28c4._0x38c28f) + encodeURIComponent(_0x274237[_0x5f4930(_0x2d28c4._0x359f0f)])), _0x5c2d37 = await _0x260700[_0x5f4930(_0x2d28c4._0x4eee7f)]();
|
|
1853
|
+
if (!_0x5c2d37['ok'])
|
|
1812
1854
|
return null;
|
|
1813
|
-
const
|
|
1814
|
-
for (const
|
|
1815
|
-
|
|
1855
|
+
const _0x33a2ee = new Set();
|
|
1856
|
+
for (const _0x3a02f6 of _0x5c2d37[_0x5f4930(_0x2d28c4._0x40dc14)]) {
|
|
1857
|
+
_0x33e217['has'](_0x3a02f6[_0x5f4930(0x1b0)]) && _0x3a02f6[_0x5f4930(0x291)] && _0x33a2ee[_0x5f4930(0x2e2)](_0x3a02f6[_0x5f4930(0x291)]);
|
|
1816
1858
|
}
|
|
1817
|
-
return
|
|
1859
|
+
return _0x33a2ee[_0x5f4930(_0x2d28c4._0xcb022f)] > 0x0 ? _0x33a2ee : null;
|
|
1818
1860
|
} catch {
|
|
1819
1861
|
return null;
|
|
1820
1862
|
}
|
|
1821
1863
|
}
|
|
1822
1864
|
return {
|
|
1823
|
-
async 'send_message'(
|
|
1824
|
-
const
|
|
1825
|
-
if (!
|
|
1826
|
-
const
|
|
1827
|
-
if (
|
|
1828
|
-
const
|
|
1829
|
-
if (
|
|
1865
|
+
async 'send_message'(_0x56f3bb) {
|
|
1866
|
+
const _0x2e0018 = _0x4fefa1;
|
|
1867
|
+
if (!_0x274237[_0x2e0018(_0xe68f8a._0x152a08)] && _0x274237[_0x2e0018(0x1d9)] && _0x274237[_0x2e0018(_0xe68f8a._0x5b57db)] && _0x274237['agentId']) {
|
|
1868
|
+
const _0x42ea8e = await _0x274237[_0x2e0018(_0xe68f8a._0x13732e)][_0x2e0018(0x29b)](_0x56f3bb[_0x2e0018(_0xe68f8a._0xc45b79)]);
|
|
1869
|
+
if (_0x42ea8e[_0x2e0018(0x165)] && _0x42ea8e[_0x2e0018(_0xe68f8a._0x6540e9)]) {
|
|
1870
|
+
const _0x272185 = _0x42ea8e['task'][_0x2e0018(0x2b6)] != null ? '#' + _0x42ea8e['task'][_0x2e0018(_0xe68f8a._0x5f3200)] : _0x2e0018(_0xe68f8a._0x4c624b), _0x12b95a = _0x42ea8e[_0x2e0018(0x29e)] != null ? _0x42ea8e[_0x2e0018(0x18c)] + ':t' + _0x42ea8e['threadNumber'] : _0x42ea8e[_0x2e0018(_0xe68f8a._0xc45b79)] + ':' + _0x42ea8e[_0x2e0018(_0xe68f8a._0x29d787)]['slice'](0x0, 0x8), _0x20e78d = await _0x15ea3b();
|
|
1871
|
+
if (_0x20e78d?.[_0x2e0018(0x17b)](_0x12b95a))
|
|
1830
1872
|
return [
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
][
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1873
|
+
_0x2e0018(_0xe68f8a._0x31cae1) + _0x272185 + _0x2e0018(_0xe68f8a._0x38c54c) + _0x12b95a + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1874
|
+
_0x2e0018(0x293)
|
|
1875
|
+
][_0x2e0018(0x1dd)]('\x0a');
|
|
1876
|
+
const _0x92683f = [
|
|
1877
|
+
_0x2e0018(0x1a6) + _0x12b95a + _0x2e0018(0x2ba) + new Date()[_0x2e0018(0x245)]() + _0x2e0018(0x16c),
|
|
1836
1878
|
'',
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
][
|
|
1842
|
-
'method':
|
|
1879
|
+
_0x2e0018(0x1ba) + _0x56f3bb[_0x2e0018(_0xe68f8a._0x4efdfe)],
|
|
1880
|
+
_0x2e0018(0x2ca) + _0x272185 + '\x20(' + _0x42ea8e[_0x2e0018(_0xe68f8a._0x36453d)][_0x2e0018(_0xe68f8a._0xdaedf2)] + ')',
|
|
1881
|
+
_0x2e0018(0x28a) + _0x12b95a,
|
|
1882
|
+
_0x2e0018(0x29c)
|
|
1883
|
+
][_0x2e0018(0x1dd)]('\x0a'), _0x1c07eb = await fetch(_0x274237['daemonLocalUrl'] + '/workers/deliver', {
|
|
1884
|
+
'method': _0x2e0018(_0xe68f8a._0xfcb71e),
|
|
1843
1885
|
'headers': { 'Content-Type': 'application/json' },
|
|
1844
|
-
'body': JSON[
|
|
1845
|
-
'agent_id':
|
|
1846
|
-
'thread_target':
|
|
1886
|
+
'body': JSON[_0x2e0018(_0xe68f8a._0x2ba279)]({
|
|
1887
|
+
'agent_id': _0x274237['agentId'],
|
|
1888
|
+
'thread_target': _0x12b95a,
|
|
1847
1889
|
'spawn_packet': {
|
|
1848
|
-
'replyTarget':
|
|
1849
|
-
'taskId':
|
|
1890
|
+
'replyTarget': _0x12b95a,
|
|
1891
|
+
'taskId': _0x42ea8e[_0x2e0018(_0xe68f8a._0x36453d)][_0x2e0018(_0xe68f8a._0x356598)]
|
|
1850
1892
|
},
|
|
1851
1893
|
'payload': {
|
|
1852
|
-
'mode':
|
|
1853
|
-
'text':
|
|
1894
|
+
'mode': _0x2e0018(0x257),
|
|
1895
|
+
'text': _0x92683f
|
|
1854
1896
|
}
|
|
1855
1897
|
})
|
|
1856
|
-
}),
|
|
1857
|
-
if (!
|
|
1858
|
-
throw new Error(
|
|
1898
|
+
}), _0x3b4eab = await _0x1c07eb[_0x2e0018(_0xe68f8a._0x2c11ce)]();
|
|
1899
|
+
if (!_0x3b4eab['ok'])
|
|
1900
|
+
throw new Error(_0x3b4eab[_0x2e0018(0x26d)] ?? _0x2e0018(0x175));
|
|
1859
1901
|
return [
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
][
|
|
1902
|
+
_0x2e0018(0x27b) + _0x272185 + _0x2e0018(_0xe68f8a._0x38c54c) + _0x12b95a + _0x2e0018(0x2c9),
|
|
1903
|
+
_0x2e0018(0x2d4) + (_0x3b4eab[_0x2e0018(_0xe68f8a._0xd3e24c)] === _0x2e0018(_0xe68f8a._0x5cbdd7) ? 'queued' : _0x2e0018(_0xe68f8a._0x16d611)) + '.',
|
|
1904
|
+
_0x2e0018(0x1a4)
|
|
1905
|
+
][_0x2e0018(_0xe68f8a._0xe4b00)]('\x0a');
|
|
1864
1906
|
}
|
|
1865
1907
|
}
|
|
1866
|
-
const
|
|
1867
|
-
'attachmentIds':
|
|
1868
|
-
'content':
|
|
1869
|
-
'target':
|
|
1870
|
-
'visibility':
|
|
1908
|
+
const _0x2d3065 = await _0x274237[_0x2e0018(0x196)][_0x2e0018(_0xe68f8a._0x3e42d6)]({
|
|
1909
|
+
'attachmentIds': _0x56f3bb['attachment_ids'],
|
|
1910
|
+
'content': _0x56f3bb[_0x2e0018(0x162)],
|
|
1911
|
+
'target': _0x56f3bb['target'],
|
|
1912
|
+
'visibility': _0x56f3bb['visibility']
|
|
1871
1913
|
});
|
|
1872
|
-
return
|
|
1914
|
+
return _0x2e0018(0x298) + _0x56f3bb['target'] + _0x2e0018(_0xe68f8a._0x597007) + _0x2d3065['messageId'];
|
|
1873
1915
|
},
|
|
1874
1916
|
async 'check_messages'() {
|
|
1875
|
-
const
|
|
1876
|
-
if (!
|
|
1877
|
-
const
|
|
1878
|
-
if (
|
|
1879
|
-
return formatCheckMessages(
|
|
1917
|
+
const _0x5dfead = _0x4fefa1, _0x5c6d4d = await _0x274237[_0x5dfead(_0x2f3946._0x3ec314)][_0x5dfead(0x1e1)]();
|
|
1918
|
+
if (!_0x274237[_0x5dfead(0x1aa)]) {
|
|
1919
|
+
const _0x3d6d16 = await _0x2ccf0d();
|
|
1920
|
+
if (_0x3d6d16)
|
|
1921
|
+
return formatCheckMessages(_0x5c6d4d[_0x5dfead(0x20b)]['filter'](_0xce50c => !_0x3d6d16[_0x5dfead(0x17b)](_0xce50c[_0x5dfead(0x18c)])));
|
|
1880
1922
|
}
|
|
1881
|
-
return formatCheckMessages(
|
|
1923
|
+
return formatCheckMessages(_0x5c6d4d[_0x5dfead(0x20b)]);
|
|
1882
1924
|
},
|
|
1883
|
-
async 'read_history'(
|
|
1884
|
-
const
|
|
1885
|
-
return formatHistory(
|
|
1925
|
+
async 'read_history'(_0x2811c2) {
|
|
1926
|
+
const _0x1bfea9 = _0x4fefa1, _0x197a7e = await _0x274237[_0x1bfea9(0x196)][_0x1bfea9(_0x4e4c14._0x247b8a)](_0x2811c2);
|
|
1927
|
+
return formatHistory(_0x197a7e);
|
|
1886
1928
|
},
|
|
1887
1929
|
async 'list_server'() {
|
|
1888
|
-
const
|
|
1889
|
-
return formatServerDirectory(
|
|
1930
|
+
const _0x9f49cd = _0x4fefa1, _0x3e29b6 = await _0x274237[_0x9f49cd(0x196)]['listServer']();
|
|
1931
|
+
return formatServerDirectory(_0x3e29b6);
|
|
1890
1932
|
},
|
|
1891
|
-
async 'list_tasks'(
|
|
1892
|
-
const
|
|
1893
|
-
let
|
|
1894
|
-
if (
|
|
1933
|
+
async 'list_tasks'(_0x40e95a) {
|
|
1934
|
+
const _0x240805 = _0x4fefa1, _0x34f5be = await _0x274237[_0x240805(_0x398240._0x35e1ca)]['listTasks'](_0x40e95a);
|
|
1935
|
+
let _0x3c94af;
|
|
1936
|
+
if (_0x274237[_0x240805(_0x398240._0xb34388)] && _0x274237['agentId'])
|
|
1895
1937
|
try {
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1898
|
-
const
|
|
1899
|
-
|
|
1900
|
-
for (const
|
|
1901
|
-
if (
|
|
1938
|
+
const _0x3f0d0b = await fetch(_0x274237[_0x240805(_0x398240._0x25021d)] + '/workers/list?agent_id=' + encodeURIComponent(_0x274237[_0x240805(_0x398240._0x4bfa7b)])), _0x6d349f = await _0x3f0d0b[_0x240805(0x1a2)]();
|
|
1939
|
+
if (_0x6d349f['ok']) {
|
|
1940
|
+
const _0x18b7c6 = _0x40e95a[_0x240805(_0x398240._0x10f605)] + ':';
|
|
1941
|
+
_0x3c94af = new Set();
|
|
1942
|
+
for (const _0x1e02ad of _0x6d349f['workers']) {
|
|
1943
|
+
if (_0x1e02ad[_0x240805(0x1b0)] === _0x240805(0x205))
|
|
1902
1944
|
continue;
|
|
1903
|
-
if (
|
|
1904
|
-
const
|
|
1905
|
-
if (
|
|
1906
|
-
|
|
1945
|
+
if (_0x1e02ad[_0x240805(_0x398240._0x1c0106)]?.['startsWith'](_0x18b7c6)) {
|
|
1946
|
+
const _0xa8b8b8 = _0x1e02ad['thread_target'][_0x240805(_0x398240._0x3e475e)](_0x18b7c6['length']), _0x2b1b87 = _0x34f5be[_0x240805(0x1d2)][_0x240805(_0x398240._0x44b764)](_0xc2bd27 => _0xc2bd27[_0x240805(0x18d)]?.[_0x240805(0x20f)](_0xa8b8b8) === !![]);
|
|
1947
|
+
if (_0x2b1b87?.['taskNumber'] != null) {
|
|
1948
|
+
_0x3c94af[_0x240805(0x2e2)](_0x2b1b87['taskNumber']);
|
|
1907
1949
|
continue;
|
|
1908
1950
|
}
|
|
1909
1951
|
}
|
|
1910
|
-
if (
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1952
|
+
if (_0x1e02ad[_0x240805(0x1cd)]) {
|
|
1953
|
+
const _0x18d0fa = _0x34f5be['tasks']['find'](_0x5cc107 => _0x5cc107[_0x240805(0x2d5)] === _0x1e02ad[_0x240805(0x1cd)]);
|
|
1954
|
+
_0x18d0fa?.['taskNumber'] != null && _0x3c94af['add'](_0x18d0fa['taskNumber']);
|
|
1913
1955
|
}
|
|
1914
1956
|
}
|
|
1915
1957
|
}
|
|
1916
1958
|
} catch {
|
|
1917
1959
|
}
|
|
1918
|
-
return formatTaskList(
|
|
1960
|
+
return formatTaskList(_0x34f5be[_0x240805(_0x398240._0x340b2c)], _0x3c94af);
|
|
1919
1961
|
},
|
|
1920
|
-
async 'create_tasks'(
|
|
1921
|
-
const
|
|
1922
|
-
|
|
1923
|
-
const
|
|
1924
|
-
return formatCreatedTasks(
|
|
1962
|
+
async 'create_tasks'(_0x82b263) {
|
|
1963
|
+
const _0x49c924 = _0x4fefa1;
|
|
1964
|
+
_0x30ed5d(_0x49c924(_0xea2267._0x2e4276), _0x82b263[_0x49c924(0x198)]);
|
|
1965
|
+
const _0x2a5333 = await _0x274237[_0x49c924(0x196)][_0x49c924(_0xea2267._0x3cd830)](_0x82b263);
|
|
1966
|
+
return formatCreatedTasks(_0x2a5333[_0x49c924(_0xea2267._0x7138f6)]);
|
|
1925
1967
|
},
|
|
1926
|
-
async 'claim_tasks'(
|
|
1927
|
-
const
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
_0x5af70d(_0x40ad70(0x21c), _0x3e35cc['channel']);
|
|
1935
|
-
if (_0x3e35cc[_0x40ad70(0x1f0)] && _0x3e35cc[_0x40ad70(0x1f0)][_0x40ad70(_0x17001a._0x114449)] > 0x0)
|
|
1936
|
-
throw new Error(_0x40ad70(0x1a5));
|
|
1937
|
-
if (!_0x3e35cc['subtask_numbers'] || _0x3e35cc[_0x40ad70(_0x17001a._0x87ebca)]['length'] === 0x0)
|
|
1938
|
-
throw new Error(_0x40ad70(_0x17001a._0x54ce4d));
|
|
1968
|
+
async 'claim_tasks'(_0x35ce85) {
|
|
1969
|
+
const _0x29445f = _0x4fefa1;
|
|
1970
|
+
if (_0x274237[_0x29445f(_0x26766d._0x1825d8)]) {
|
|
1971
|
+
_0x30ed5d('claim_tasks', _0x35ce85[_0x29445f(_0x26766d._0x5255b9)]);
|
|
1972
|
+
if (_0x35ce85[_0x29445f(_0x26766d._0x1514aa)] && _0x35ce85[_0x29445f(0x16d)][_0x29445f(0x19b)] > 0x0)
|
|
1973
|
+
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
1974
|
+
if (!_0x35ce85[_0x29445f(_0x26766d._0x56ca94)] || _0x35ce85[_0x29445f(_0x26766d._0x5c0202)][_0x29445f(0x19b)] === 0x0)
|
|
1975
|
+
throw new Error(_0x29445f(0x1fe));
|
|
1939
1976
|
}
|
|
1940
|
-
const
|
|
1941
|
-
const
|
|
1942
|
-
if (!
|
|
1943
|
-
return
|
|
1977
|
+
const _0x123dfe = await _0x274237[_0x29445f(0x196)][_0x29445f(_0x26766d._0x2b8010)](_0x35ce85), _0x377b61 = await Promise[_0x29445f(_0x26766d._0x133d26)](_0x123dfe[_0x29445f(0x2e0)][_0x29445f(_0x26766d._0x22a37a)](async _0x114eb1 => {
|
|
1978
|
+
const _0xd43281 = _0x29445f;
|
|
1979
|
+
if (!_0x114eb1['success'] || !_0x114eb1[_0xd43281(_0xb4b5e2._0x2ffe85)])
|
|
1980
|
+
return _0x114eb1;
|
|
1944
1981
|
try {
|
|
1945
|
-
const
|
|
1946
|
-
'channel':
|
|
1947
|
-
'messageId':
|
|
1948
|
-
'taskId':
|
|
1949
|
-
'taskNumber':
|
|
1950
|
-
'threadNumber':
|
|
1982
|
+
const _0x114536 = await _0x38245e({
|
|
1983
|
+
'channel': _0x35ce85[_0xd43281(_0xb4b5e2._0x4232d5)],
|
|
1984
|
+
'messageId': _0x114eb1[_0xd43281(0x18d)],
|
|
1985
|
+
'taskId': _0x114eb1[_0xd43281(0x2d5)],
|
|
1986
|
+
'taskNumber': _0x114eb1[_0xd43281(0x2b6)],
|
|
1987
|
+
'threadNumber': _0x114eb1['threadNumber']
|
|
1951
1988
|
});
|
|
1952
|
-
return
|
|
1953
|
-
...
|
|
1954
|
-
...
|
|
1955
|
-
} :
|
|
1956
|
-
} catch (
|
|
1989
|
+
return _0x114536 ? {
|
|
1990
|
+
..._0x114eb1,
|
|
1991
|
+
..._0x114536
|
|
1992
|
+
} : _0x114eb1;
|
|
1993
|
+
} catch (_0x412eee) {
|
|
1957
1994
|
return {
|
|
1958
|
-
...
|
|
1959
|
-
'workerHandoffError':
|
|
1995
|
+
..._0x114eb1,
|
|
1996
|
+
'workerHandoffError': _0x412eee instanceof Error ? _0x412eee[_0xd43281(0x2e8)] : 'worker\x20handoff\x20failed'
|
|
1960
1997
|
};
|
|
1961
1998
|
}
|
|
1962
1999
|
}));
|
|
1963
|
-
return formatClaimTaskResults(
|
|
2000
|
+
return formatClaimTaskResults(_0x377b61);
|
|
1964
2001
|
},
|
|
1965
|
-
async 'unclaim_task'(
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
|
|
1969
|
-
if (
|
|
1970
|
-
throw new Error(
|
|
2002
|
+
async 'unclaim_task'(_0x529237) {
|
|
2003
|
+
const _0x4fd227 = _0x4fefa1;
|
|
2004
|
+
if (_0x274237[_0x4fd227(0x1aa)]) {
|
|
2005
|
+
_0x30ed5d(_0x4fd227(_0x101946._0x171b18), _0x529237[_0x4fd227(0x198)]);
|
|
2006
|
+
if (_0x529237[_0x4fd227(0x1f3)] == null)
|
|
2007
|
+
throw new Error(_0x4fd227(_0x101946._0x555bb7));
|
|
1971
2008
|
}
|
|
1972
|
-
const
|
|
1973
|
-
return formatUnclaimTaskResult(
|
|
2009
|
+
const _0x1ab68e = await _0x274237[_0x4fd227(_0x101946._0x4a5af3)][_0x4fd227(_0x101946._0x579fc5)](_0x529237);
|
|
2010
|
+
return formatUnclaimTaskResult(_0x1ab68e);
|
|
1974
2011
|
},
|
|
1975
|
-
async 'update_task_status'(
|
|
1976
|
-
const
|
|
1977
|
-
|
|
1978
|
-
const
|
|
1979
|
-
return formatUpdateTaskStatusResult(
|
|
2012
|
+
async 'update_task_status'(_0x2f7380) {
|
|
2013
|
+
const _0x2e85dc = _0x4fefa1;
|
|
2014
|
+
_0x30ed5d(_0x2e85dc(_0x13d98e._0x4005ac), _0x2f7380[_0x2e85dc(_0x13d98e._0x519417)]);
|
|
2015
|
+
const _0x164086 = await _0x274237['client'][_0x2e85dc(0x1da)](_0x2f7380);
|
|
2016
|
+
return formatUpdateTaskStatusResult(_0x164086);
|
|
1980
2017
|
},
|
|
1981
|
-
async 'upload_file'(
|
|
1982
|
-
const
|
|
1983
|
-
sizeBytes:
|
|
1984
|
-
...
|
|
1985
|
-
} =
|
|
1986
|
-
'channel':
|
|
1987
|
-
...
|
|
2018
|
+
async 'upload_file'(_0x10915b) {
|
|
2019
|
+
const _0x5c5609 = _0x4fefa1, _0x28218a = await _0x274237[_0x5c5609(0x2de)](_0x10915b[_0x5c5609(_0x56a6f5._0x149393)]), {
|
|
2020
|
+
sizeBytes: _0x5dd5fb,
|
|
2021
|
+
..._0x2070f1
|
|
2022
|
+
} = _0x28218a, _0x39a765 = await _0x274237[_0x5c5609(0x196)]['uploadFile']({
|
|
2023
|
+
'channel': _0x10915b[_0x5c5609(_0x56a6f5._0x25b28d)],
|
|
2024
|
+
..._0x2070f1
|
|
1988
2025
|
});
|
|
1989
|
-
return formatUploadResult(
|
|
2026
|
+
return formatUploadResult(_0x39a765);
|
|
1990
2027
|
},
|
|
1991
|
-
async 'view_file'(
|
|
1992
|
-
const
|
|
1993
|
-
if (
|
|
1994
|
-
return formatViewFileResult(
|
|
1995
|
-
const
|
|
1996
|
-
'attachmentId':
|
|
1997
|
-
'contentType':
|
|
1998
|
-
'data':
|
|
1999
|
-
'originalFilename':
|
|
2028
|
+
async 'view_file'(_0x4cd572) {
|
|
2029
|
+
const _0x4b9ede = _0x4fefa1, _0x38ae75 = await _0x274237[_0x4b9ede(0x229)]['findCachedPath'](_0x4cd572['attachment_id']);
|
|
2030
|
+
if (_0x38ae75)
|
|
2031
|
+
return formatViewFileResult(_0x38ae75, !![]);
|
|
2032
|
+
const _0x2f9a7c = await _0x274237[_0x4b9ede(_0x39f9ce._0x2a6353)]['downloadAttachment'](_0x4cd572[_0x4b9ede(0x2c5)]), _0x8cb1cf = await _0x274237[_0x4b9ede(_0x39f9ce._0x515f1d)][_0x4b9ede(0x2a6)]({
|
|
2033
|
+
'attachmentId': _0x4cd572['attachment_id'],
|
|
2034
|
+
'contentType': _0x2f9a7c[_0x4b9ede(_0x39f9ce._0x571b67)],
|
|
2035
|
+
'data': _0x2f9a7c[_0x4b9ede(_0x39f9ce._0x23f25d)],
|
|
2036
|
+
'originalFilename': _0x2f9a7c['originalFilename']
|
|
2000
2037
|
});
|
|
2001
|
-
return formatViewFileResult(
|
|
2038
|
+
return formatViewFileResult(_0x8cb1cf, ![]);
|
|
2002
2039
|
},
|
|
2003
|
-
async 'get_worker_status'(
|
|
2004
|
-
const
|
|
2005
|
-
if (!
|
|
2006
|
-
return
|
|
2007
|
-
const
|
|
2008
|
-
if (!
|
|
2009
|
-
return
|
|
2010
|
-
return
|
|
2040
|
+
async 'get_worker_status'(_0x31eec6) {
|
|
2041
|
+
const _0x5cd903 = _0x4fefa1;
|
|
2042
|
+
if (!_0x274237[_0x5cd903(_0x96f90b._0x1310ba)])
|
|
2043
|
+
return _0x5cd903(0x246);
|
|
2044
|
+
const _0x39f151 = await fetch(_0x274237[_0x5cd903(0x248)] + _0x5cd903(_0x96f90b._0xa703e2) + encodeURIComponent(_0x31eec6[_0x5cd903(_0x96f90b._0x1586f5)])), _0x3f1fcd = await _0x39f151['json']();
|
|
2045
|
+
if (!_0x3f1fcd['ok'])
|
|
2046
|
+
return _0x5cd903(_0x96f90b._0x22014a) + _0x31eec6[_0x5cd903(_0x96f90b._0x1586f5)] + _0x5cd903(0x1f0);
|
|
2047
|
+
return _0x5cd903(0x25d) + _0x31eec6[_0x5cd903(_0x96f90b._0x1854c3)] + _0x5cd903(_0x96f90b._0xd4631a) + _0x3f1fcd[_0x5cd903(_0x96f90b._0x1f11d7)];
|
|
2011
2048
|
},
|
|
2012
|
-
async 'park_worker'(
|
|
2013
|
-
const
|
|
2014
|
-
if (!
|
|
2015
|
-
return
|
|
2016
|
-
const
|
|
2017
|
-
'method':
|
|
2018
|
-
'headers': { 'Content-Type':
|
|
2019
|
-
'body': JSON[
|
|
2020
|
-
}),
|
|
2021
|
-
if (!
|
|
2022
|
-
throw new Error(
|
|
2023
|
-
return
|
|
2049
|
+
async 'park_worker'(_0x2d3af2) {
|
|
2050
|
+
const _0x110e64 = _0x4fefa1;
|
|
2051
|
+
if (!_0x274237[_0x110e64(0x248)])
|
|
2052
|
+
return _0x110e64(_0x3d6e5f._0x37a09b);
|
|
2053
|
+
const _0x21c2bc = await fetch(_0x274237['daemonLocalUrl'] + _0x110e64(_0x3d6e5f._0xcb99cf), {
|
|
2054
|
+
'method': _0x110e64(0x199),
|
|
2055
|
+
'headers': { 'Content-Type': _0x110e64(0x287) },
|
|
2056
|
+
'body': JSON[_0x110e64(_0x3d6e5f._0x20bab2)]({ 'work_key': _0x2d3af2[_0x110e64(_0x3d6e5f._0x2599e3)] })
|
|
2057
|
+
}), _0x41c299 = await _0x21c2bc[_0x110e64(0x1a2)]();
|
|
2058
|
+
if (!_0x41c299['ok'])
|
|
2059
|
+
throw new Error(_0x41c299[_0x110e64(_0x3d6e5f._0x2757a1)] ?? _0x110e64(0x1bd));
|
|
2060
|
+
return _0x110e64(0x25d) + _0x2d3af2['work_key'] + '\x22\x20parked.\x20Same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.';
|
|
2024
2061
|
},
|
|
2025
|
-
async 'mark_waiting_input'(
|
|
2026
|
-
const
|
|
2027
|
-
if (!
|
|
2028
|
-
return
|
|
2029
|
-
const
|
|
2030
|
-
'method':
|
|
2031
|
-
'headers': { 'Content-Type':
|
|
2032
|
-
'body': JSON[
|
|
2033
|
-
'work_key':
|
|
2034
|
-
'agent_id':
|
|
2062
|
+
async 'mark_waiting_input'(_0x5a036d) {
|
|
2063
|
+
const _0x2f5776 = _0x4fefa1;
|
|
2064
|
+
if (!_0x274237[_0x2f5776(_0x3dbfb8._0x3075bf)] || !_0x274237[_0x2f5776(_0x3dbfb8._0x534c56)])
|
|
2065
|
+
return _0x2f5776(_0x3dbfb8._0xe1fa6);
|
|
2066
|
+
const _0x5e1b78 = await fetch(_0x274237[_0x2f5776(0x248)] + _0x2f5776(0x1ad), {
|
|
2067
|
+
'method': _0x2f5776(0x199),
|
|
2068
|
+
'headers': { 'Content-Type': _0x2f5776(0x287) },
|
|
2069
|
+
'body': JSON[_0x2f5776(0x161)]({
|
|
2070
|
+
'work_key': _0x5a036d[_0x2f5776(0x192)],
|
|
2071
|
+
'agent_id': _0x274237[_0x2f5776(_0x3dbfb8._0x9a80c8)]
|
|
2035
2072
|
})
|
|
2036
|
-
}),
|
|
2037
|
-
if (!
|
|
2038
|
-
throw new Error(
|
|
2039
|
-
return
|
|
2073
|
+
}), _0x17a7d4 = await _0x5e1b78[_0x2f5776(_0x3dbfb8._0x1e863b)]();
|
|
2074
|
+
if (!_0x17a7d4['ok'])
|
|
2075
|
+
throw new Error(_0x17a7d4[_0x2f5776(_0x3dbfb8._0x5f36d1)] ?? _0x2f5776(_0x3dbfb8._0x5f4174));
|
|
2076
|
+
return _0x2f5776(0x25d) + _0x5a036d[_0x2f5776(0x192)] + _0x2f5776(0x1c3);
|
|
2040
2077
|
},
|
|
2041
|
-
async 'escalate_to_main'(
|
|
2042
|
-
const
|
|
2043
|
-
if (!
|
|
2044
|
-
return
|
|
2045
|
-
const
|
|
2046
|
-
'method':
|
|
2047
|
-
'headers': { 'Content-Type':
|
|
2048
|
-
'body': JSON[
|
|
2049
|
-
'work_key':
|
|
2050
|
-
'reason':
|
|
2078
|
+
async 'escalate_to_main'(_0x299707) {
|
|
2079
|
+
const _0x4c5146 = _0x4fefa1;
|
|
2080
|
+
if (!_0x274237[_0x4c5146(0x248)])
|
|
2081
|
+
return _0x4c5146(0x246);
|
|
2082
|
+
const _0x14e54f = await fetch(_0x274237[_0x4c5146(0x248)] + _0x4c5146(_0x48ab59._0xfd6cc3), {
|
|
2083
|
+
'method': 'POST',
|
|
2084
|
+
'headers': { 'Content-Type': _0x4c5146(0x287) },
|
|
2085
|
+
'body': JSON[_0x4c5146(_0x48ab59._0x46f70e)]({
|
|
2086
|
+
'work_key': _0x299707[_0x4c5146(_0x48ab59._0x2caa7d)],
|
|
2087
|
+
'reason': _0x299707['reason']
|
|
2051
2088
|
})
|
|
2052
|
-
}),
|
|
2053
|
-
if (!
|
|
2054
|
-
throw new Error(
|
|
2055
|
-
return
|
|
2089
|
+
}), _0x539a6b = await _0x14e54f['json']();
|
|
2090
|
+
if (!_0x539a6b['ok'])
|
|
2091
|
+
throw new Error(_0x539a6b[_0x4c5146(0x26d)] ?? _0x4c5146(_0x48ab59._0x2e0a65));
|
|
2092
|
+
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x299707[_0x4c5146(_0x48ab59._0x455ec2)];
|
|
2056
2093
|
}
|
|
2057
2094
|
};
|
|
2058
2095
|
}
|
|
2059
|
-
function textResult(
|
|
2060
|
-
const
|
|
2096
|
+
function textResult(_0x3a6756, _0x5919a6 = ![]) {
|
|
2097
|
+
const _0x1d6336 = _0x28aee3;
|
|
2061
2098
|
return {
|
|
2062
2099
|
'content': [{
|
|
2063
|
-
'type':
|
|
2064
|
-
'text':
|
|
2100
|
+
'type': _0x1d6336(0x251),
|
|
2101
|
+
'text': _0x3a6756
|
|
2065
2102
|
}],
|
|
2066
|
-
...
|
|
2103
|
+
..._0x5919a6 ? { 'isError': !![] } : {}
|
|
2067
2104
|
};
|
|
2068
2105
|
}
|
|
2069
|
-
async function registerChatBridgeTools(
|
|
2070
|
-
const
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
},
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
},
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
},
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
},
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
},
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
},
|
|
2129
|
-
|
|
2130
|
-
'target':
|
|
2131
|
-
'content':
|
|
2132
|
-
'attachment_ids':
|
|
2133
|
-
'visibility':
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
])[
|
|
2137
|
-
}, async
|
|
2138
|
-
const
|
|
2106
|
+
async function registerChatBridgeTools(_0x4e1a95, _0x23f596, _0x322f9a) {
|
|
2107
|
+
const _0x26be3b = {
|
|
2108
|
+
_0x150520: 0x1f7,
|
|
2109
|
+
_0x1410fe: 0x20c,
|
|
2110
|
+
_0x3238e7: 0x256,
|
|
2111
|
+
_0x3a2ddb: 0x24e,
|
|
2112
|
+
_0x18b3e1: 0x2ae,
|
|
2113
|
+
_0x1e7fec: 0x1f7,
|
|
2114
|
+
_0x25109a: 0x2b2,
|
|
2115
|
+
_0x1d661c: 0x256,
|
|
2116
|
+
_0x461590: 0x2df,
|
|
2117
|
+
_0x4db75e: 0x256,
|
|
2118
|
+
_0x28fb21: 0x226,
|
|
2119
|
+
_0x43117a: 0x2dc,
|
|
2120
|
+
_0x33b78e: 0x256,
|
|
2121
|
+
_0x4dd362: 0x1f7,
|
|
2122
|
+
_0x4ddfdc: 0x17d,
|
|
2123
|
+
_0x643813: 0x20c,
|
|
2124
|
+
_0x565d8b: 0x20c,
|
|
2125
|
+
_0x4de763: 0x256,
|
|
2126
|
+
_0x18e12e: 0x171,
|
|
2127
|
+
_0x69b17e: 0x20c,
|
|
2128
|
+
_0x74cf3e: 0x20c,
|
|
2129
|
+
_0xa17b7: 0x166,
|
|
2130
|
+
_0x219644: 0x2e7,
|
|
2131
|
+
_0x524b78: 0x1e0,
|
|
2132
|
+
_0x536ee7: 0x1a9,
|
|
2133
|
+
_0x2abe80: 0x256,
|
|
2134
|
+
_0x576686: 0x284,
|
|
2135
|
+
_0x319627: 0x166,
|
|
2136
|
+
_0x25fc00: 0x2dc,
|
|
2137
|
+
_0x273600: 0x1f7,
|
|
2138
|
+
_0x356fc1: 0x216,
|
|
2139
|
+
_0x16cb2a: 0x2d1,
|
|
2140
|
+
_0xf1d1fc: 0x1f7,
|
|
2141
|
+
_0x11a66d: 0x250,
|
|
2142
|
+
_0x54e83a: 0x1b2,
|
|
2143
|
+
_0x4ee977: 0x20c,
|
|
2144
|
+
_0x28296f: 0x26e,
|
|
2145
|
+
_0x431522: 0x1f7,
|
|
2146
|
+
_0xd8da3e: 0x20c
|
|
2147
|
+
}, _0x258f87 = {
|
|
2148
|
+
_0x2190f1: 0x174,
|
|
2149
|
+
_0x4cd8d5: 0x2e8
|
|
2150
|
+
}, _0x97d8c2 = { _0x447bff: 0x177 }, _0x8ad8a3 = {
|
|
2151
|
+
_0x31b263: 0x250,
|
|
2152
|
+
_0x490df4: 0x2e8
|
|
2153
|
+
}, _0x3f88cf = { _0x33a6b3: 0x1f5 }, _0x314115 = {
|
|
2154
|
+
_0x4796c7: 0x2e8,
|
|
2155
|
+
_0x5cae0b: 0x1db
|
|
2156
|
+
}, _0x2b0fe2 = {
|
|
2157
|
+
_0x1f1548: 0x1f8,
|
|
2158
|
+
_0x255cac: 0x2e8
|
|
2159
|
+
}, _0x5d89bd = { _0x859d96: 0x1b8 }, _0x361ec4 = { _0x5ca815: 0x1c9 }, _0x5c5da2 = { _0x370c1a: 0x1e8 }, _0x959d = {
|
|
2160
|
+
_0x163744: 0x1f4,
|
|
2161
|
+
_0x116ed7: 0x238
|
|
2162
|
+
}, _0x5bd39e = { _0x241350: 0x2e8 }, _0x17b7ad = { _0x12d299: 0x25f }, _0x3ae8d3 = {
|
|
2163
|
+
_0x176079: 0x2e8,
|
|
2164
|
+
_0x2403ee: 0x1ff
|
|
2165
|
+
}, _0x386885 = _0x28aee3, {z: _0x526ec6} = await import('zod');
|
|
2166
|
+
_0x4e1a95[_0x386885(_0x26be3b._0x150520)](_0x386885(0x254), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2167
|
+
'target': _0x526ec6['string'](),
|
|
2168
|
+
'content': _0x526ec6[_0x386885(_0x26be3b._0x1410fe)](),
|
|
2169
|
+
'attachment_ids': _0x526ec6[_0x386885(0x171)](_0x526ec6[_0x386885(_0x26be3b._0x1410fe)]())[_0x386885(_0x26be3b._0x3238e7)](),
|
|
2170
|
+
'visibility': _0x526ec6['enum']([
|
|
2171
|
+
_0x386885(0x21d),
|
|
2172
|
+
_0x386885(_0x26be3b._0x3a2ddb)
|
|
2173
|
+
])[_0x386885(0x256)]()[_0x386885(_0x26be3b._0x18b3e1)]('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2174
|
+
}, async _0x67e6c9 => {
|
|
2175
|
+
const _0x48eff2 = _0x386885;
|
|
2139
2176
|
try {
|
|
2140
|
-
return textResult(await
|
|
2141
|
-
} catch (
|
|
2142
|
-
return textResult(
|
|
2177
|
+
return textResult(await _0x23f596[_0x48eff2(0x254)](_0x67e6c9));
|
|
2178
|
+
} catch (_0x22bf43) {
|
|
2179
|
+
return textResult(_0x22bf43 instanceof Error ? _0x22bf43[_0x48eff2(_0x3ae8d3._0x176079)] : _0x48eff2(_0x3ae8d3._0x2403ee), !![]);
|
|
2143
2180
|
}
|
|
2144
|
-
}),
|
|
2145
|
-
const
|
|
2181
|
+
}), _0x4e1a95[_0x386885(0x1f7)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2182
|
+
const _0x552714 = _0x386885;
|
|
2146
2183
|
try {
|
|
2147
|
-
return textResult(await
|
|
2148
|
-
} catch (
|
|
2149
|
-
return textResult(
|
|
2184
|
+
return textResult(await _0x23f596[_0x552714(_0x17b7ad._0x12d299)]());
|
|
2185
|
+
} catch (_0x4afd1b) {
|
|
2186
|
+
return textResult(_0x4afd1b instanceof Error ? _0x4afd1b[_0x552714(0x2e8)] : 'check_messages\x20failed', !![]);
|
|
2150
2187
|
}
|
|
2151
|
-
}),
|
|
2152
|
-
'channel':
|
|
2153
|
-
'limit':
|
|
2154
|
-
'before':
|
|
2155
|
-
'after':
|
|
2156
|
-
}, async
|
|
2157
|
-
const
|
|
2188
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x1e7fec)](_0x386885(_0x26be3b._0x25109a), _0x386885(0x1c6), {
|
|
2189
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x1410fe)](),
|
|
2190
|
+
'limit': _0x526ec6['number']()[_0x386885(_0x26be3b._0x1d661c)](),
|
|
2191
|
+
'before': _0x526ec6[_0x386885(_0x26be3b._0x461590)]()[_0x386885(0x256)](),
|
|
2192
|
+
'after': _0x526ec6[_0x386885(0x2df)]()[_0x386885(_0x26be3b._0x4db75e)]()
|
|
2193
|
+
}, async _0x38f852 => {
|
|
2194
|
+
const _0x2330dc = _0x386885;
|
|
2158
2195
|
try {
|
|
2159
|
-
return textResult(await
|
|
2160
|
-
} catch (
|
|
2161
|
-
return textResult(
|
|
2196
|
+
return textResult(await _0x23f596[_0x2330dc(0x2b2)](_0x38f852));
|
|
2197
|
+
} catch (_0x49088b) {
|
|
2198
|
+
return textResult(_0x49088b instanceof Error ? _0x49088b[_0x2330dc(_0x5bd39e._0x241350)] : 'read_history\x20failed', !![]);
|
|
2162
2199
|
}
|
|
2163
|
-
}),
|
|
2164
|
-
const
|
|
2200
|
+
}), _0x4e1a95['tool']('list_server', _0x386885(_0x26be3b._0x28fb21), {}, async () => {
|
|
2201
|
+
const _0x59ebf8 = _0x386885;
|
|
2165
2202
|
try {
|
|
2166
|
-
return textResult(await
|
|
2167
|
-
} catch (
|
|
2168
|
-
return textResult(
|
|
2203
|
+
return textResult(await _0x23f596[_0x59ebf8(_0x959d._0x163744)]());
|
|
2204
|
+
} catch (_0x3a1db1) {
|
|
2205
|
+
return textResult(_0x3a1db1 instanceof Error ? _0x3a1db1['message'] : _0x59ebf8(_0x959d._0x116ed7), !![]);
|
|
2169
2206
|
}
|
|
2170
|
-
}),
|
|
2171
|
-
'channel':
|
|
2172
|
-
'status':
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
])[
|
|
2178
|
-
}, async
|
|
2179
|
-
const
|
|
2207
|
+
}), _0x4e1a95[_0x386885(0x1f7)]('list_tasks', 'List\x20tasks\x20in\x20a\x20channel\x20or\x20thread.\x20Thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22)\x20returns\x20the\x20parent\x20task\x20plus\x20its\x20subtasks\x20with\x20aggregation\x20fields\x20(childrenTotal,\x20childrenDone,\x20childrenInProgress).\x20Channel\x20target\x20returns\x20only\x20parent\x20tasks\x20(no\x20subtasks).', {
|
|
2208
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x1410fe)](),
|
|
2209
|
+
'status': _0x526ec6[_0x386885(0x166)]([
|
|
2210
|
+
'todo',
|
|
2211
|
+
_0x386885(_0x26be3b._0x43117a),
|
|
2212
|
+
_0x386885(0x2a8),
|
|
2213
|
+
_0x386885(0x2a5)
|
|
2214
|
+
])[_0x386885(_0x26be3b._0x33b78e)]()
|
|
2215
|
+
}, async _0x65c213 => {
|
|
2216
|
+
const _0x1311aa = _0x386885;
|
|
2180
2217
|
try {
|
|
2181
|
-
return textResult(await
|
|
2182
|
-
} catch (
|
|
2183
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x23f596['list_tasks'](_0x65c213));
|
|
2219
|
+
} catch (_0x39859a) {
|
|
2220
|
+
return textResult(_0x39859a instanceof Error ? _0x39859a[_0x1311aa(0x2e8)] : _0x1311aa(0x193), !![]);
|
|
2184
2221
|
}
|
|
2185
|
-
}),
|
|
2186
|
-
'channel':
|
|
2187
|
-
'idempotency_key':
|
|
2188
|
-
'tasks':
|
|
2189
|
-
'title':
|
|
2190
|
-
'description':
|
|
2191
|
-
'priority':
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
])[
|
|
2222
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x4dd362)]('create_tasks', _0x386885(_0x26be3b._0x4ddfdc), {
|
|
2223
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x643813)](),
|
|
2224
|
+
'idempotency_key': _0x526ec6[_0x386885(_0x26be3b._0x565d8b)]()[_0x386885(_0x26be3b._0x4de763)](),
|
|
2225
|
+
'tasks': _0x526ec6[_0x386885(_0x26be3b._0x18e12e)](_0x526ec6[_0x386885(0x173)]({
|
|
2226
|
+
'title': _0x526ec6[_0x386885(_0x26be3b._0x69b17e)](),
|
|
2227
|
+
'description': _0x526ec6[_0x386885(_0x26be3b._0x74cf3e)]()[_0x386885(0x256)](),
|
|
2228
|
+
'priority': _0x526ec6[_0x386885(_0x26be3b._0xa17b7)]([
|
|
2229
|
+
_0x386885(_0x26be3b._0x219644),
|
|
2230
|
+
_0x386885(_0x26be3b._0x524b78),
|
|
2231
|
+
'high',
|
|
2232
|
+
_0x386885(0x2ce)
|
|
2233
|
+
])['optional']()
|
|
2197
2234
|
}))
|
|
2198
|
-
}, async
|
|
2199
|
-
const
|
|
2235
|
+
}, async _0x49916e => {
|
|
2236
|
+
const _0x1cff77 = _0x386885;
|
|
2200
2237
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2238
|
+
return textResult(await _0x23f596[_0x1cff77(_0x5c5da2._0x370c1a)](_0x49916e));
|
|
2239
|
+
} catch (_0x5e0243) {
|
|
2240
|
+
return textResult(_0x5e0243 instanceof Error ? _0x5e0243['message'] : 'create_tasks\x20failed', !![]);
|
|
2204
2241
|
}
|
|
2205
|
-
}),
|
|
2206
|
-
'channel':
|
|
2207
|
-
'task_numbers':
|
|
2208
|
-
'subtask_numbers':
|
|
2209
|
-
'message_ids':
|
|
2210
|
-
'evidence':
|
|
2211
|
-
'create_thread':
|
|
2212
|
-
'create_task':
|
|
2213
|
-
}))[
|
|
2214
|
-
'idempotency_key':
|
|
2215
|
-
}, async
|
|
2216
|
-
const
|
|
2242
|
+
}), _0x4e1a95['tool'](_0x386885(0x183), _0x386885(0x2b5), {
|
|
2243
|
+
'channel': _0x526ec6['string'](),
|
|
2244
|
+
'task_numbers': _0x526ec6['array'](_0x526ec6[_0x386885(0x2df)]())['optional'](),
|
|
2245
|
+
'subtask_numbers': _0x526ec6['array'](_0x526ec6[_0x386885(_0x26be3b._0x461590)]())[_0x386885(_0x26be3b._0x1d661c)](),
|
|
2246
|
+
'message_ids': _0x526ec6['array'](_0x526ec6[_0x386885(0x20c)]())[_0x386885(0x256)](),
|
|
2247
|
+
'evidence': _0x526ec6[_0x386885(0x169)](_0x526ec6[_0x386885(0x20c)](), _0x526ec6['object']({
|
|
2248
|
+
'create_thread': _0x526ec6[_0x386885(_0x26be3b._0x536ee7)]()[_0x386885(_0x26be3b._0x3238e7)](),
|
|
2249
|
+
'create_task': _0x526ec6[_0x386885(_0x26be3b._0x536ee7)]()[_0x386885(_0x26be3b._0x1d661c)]()
|
|
2250
|
+
}))[_0x386885(_0x26be3b._0x2abe80)](),
|
|
2251
|
+
'idempotency_key': _0x526ec6[_0x386885(0x20c)]()[_0x386885(0x256)]()
|
|
2252
|
+
}, async _0x5a0a4f => {
|
|
2253
|
+
const _0x4e8f6f = _0x386885;
|
|
2217
2254
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2255
|
+
return textResult(await _0x23f596[_0x4e8f6f(0x183)](_0x5a0a4f));
|
|
2256
|
+
} catch (_0x5679ef) {
|
|
2257
|
+
return textResult(_0x5679ef instanceof Error ? _0x5679ef[_0x4e8f6f(0x2e8)] : _0x4e8f6f(_0x361ec4._0x5ca815), !![]);
|
|
2221
2258
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
'channel':
|
|
2224
|
-
'task_number':
|
|
2225
|
-
'subtask_number':
|
|
2226
|
-
'idempotency_key':
|
|
2227
|
-
}, async
|
|
2228
|
-
const
|
|
2259
|
+
}), _0x4e1a95[_0x386885(0x1f7)](_0x386885(0x282), _0x386885(_0x26be3b._0x576686), {
|
|
2260
|
+
'channel': _0x526ec6['string'](),
|
|
2261
|
+
'task_number': _0x526ec6[_0x386885(_0x26be3b._0x461590)](),
|
|
2262
|
+
'subtask_number': _0x526ec6[_0x386885(0x2df)]()[_0x386885(0x256)](),
|
|
2263
|
+
'idempotency_key': _0x526ec6[_0x386885(_0x26be3b._0x565d8b)]()[_0x386885(_0x26be3b._0x4de763)]()
|
|
2264
|
+
}, async _0x3e8919 => {
|
|
2265
|
+
const _0x83c5cd = _0x386885;
|
|
2229
2266
|
try {
|
|
2230
|
-
return textResult(await
|
|
2231
|
-
} catch (
|
|
2232
|
-
return textResult(
|
|
2267
|
+
return textResult(await _0x23f596['unclaim_task'](_0x3e8919));
|
|
2268
|
+
} catch (_0x5e5149) {
|
|
2269
|
+
return textResult(_0x5e5149 instanceof Error ? _0x5e5149[_0x83c5cd(0x2e8)] : _0x83c5cd(_0x5d89bd._0x859d96), !![]);
|
|
2233
2270
|
}
|
|
2234
|
-
}),
|
|
2235
|
-
'channel':
|
|
2236
|
-
'task_number':
|
|
2237
|
-
'subtask_number':
|
|
2238
|
-
'status':
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2271
|
+
}), _0x4e1a95[_0x386885(0x1f7)]('update_task_status', 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2272
|
+
'channel': _0x526ec6[_0x386885(_0x26be3b._0x74cf3e)](),
|
|
2273
|
+
'task_number': _0x526ec6[_0x386885(_0x26be3b._0x461590)](),
|
|
2274
|
+
'subtask_number': _0x526ec6[_0x386885(0x2df)]()[_0x386885(0x256)](),
|
|
2275
|
+
'status': _0x526ec6[_0x386885(_0x26be3b._0x319627)]([
|
|
2276
|
+
_0x386885(0x1be),
|
|
2277
|
+
_0x386885(_0x26be3b._0x25fc00),
|
|
2278
|
+
'in_review',
|
|
2279
|
+
_0x386885(0x2a5)
|
|
2243
2280
|
]),
|
|
2244
|
-
'idempotency_key':
|
|
2245
|
-
}, async
|
|
2246
|
-
const
|
|
2281
|
+
'idempotency_key': _0x526ec6[_0x386885(_0x26be3b._0x643813)]()[_0x386885(0x256)]()
|
|
2282
|
+
}, async _0x220f3a => {
|
|
2283
|
+
const _0xbb1ccf = _0x386885;
|
|
2247
2284
|
try {
|
|
2248
|
-
return textResult(await
|
|
2249
|
-
} catch (
|
|
2250
|
-
return textResult(
|
|
2285
|
+
return textResult(await _0x23f596[_0xbb1ccf(_0x2b0fe2._0x1f1548)](_0x220f3a));
|
|
2286
|
+
} catch (_0x3c892c) {
|
|
2287
|
+
return textResult(_0x3c892c instanceof Error ? _0x3c892c[_0xbb1ccf(_0x2b0fe2._0x255cac)] : _0xbb1ccf(0x1bb), !![]);
|
|
2251
2288
|
}
|
|
2252
|
-
}),
|
|
2253
|
-
'channel':
|
|
2254
|
-
'file_path':
|
|
2255
|
-
}, async
|
|
2256
|
-
const
|
|
2289
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x273600)](_0x386885(0x219), _0x386885(_0x26be3b._0x356fc1), {
|
|
2290
|
+
'channel': _0x526ec6[_0x386885(0x20c)](),
|
|
2291
|
+
'file_path': _0x526ec6[_0x386885(0x20c)]()
|
|
2292
|
+
}, async _0x116c7f => {
|
|
2293
|
+
const _0x48b7f6 = _0x386885;
|
|
2257
2294
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2295
|
+
return textResult(await _0x23f596[_0x48b7f6(0x219)](_0x116c7f));
|
|
2296
|
+
} catch (_0x1b2e04) {
|
|
2297
|
+
return textResult(_0x1b2e04 instanceof Error ? _0x1b2e04[_0x48b7f6(_0x314115._0x4796c7)] : _0x48b7f6(_0x314115._0x5cae0b), !![]);
|
|
2261
2298
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
const
|
|
2299
|
+
}), _0x4e1a95[_0x386885(0x1f7)](_0x386885(_0x26be3b._0x16cb2a), _0x386885(0x266), { 'attachment_id': _0x526ec6[_0x386885(0x20c)]() }, async _0x195dd0 => {
|
|
2300
|
+
const _0x54ef8d = _0x386885;
|
|
2264
2301
|
try {
|
|
2265
|
-
return textResult(await
|
|
2266
|
-
} catch (
|
|
2267
|
-
return textResult(
|
|
2302
|
+
return textResult(await _0x23f596[_0x54ef8d(0x2d1)](_0x195dd0));
|
|
2303
|
+
} catch (_0x2d05bb) {
|
|
2304
|
+
return textResult(_0x2d05bb instanceof Error ? _0x2d05bb['message'] : _0x54ef8d(_0x3f88cf._0x33a6b3), !![]);
|
|
2268
2305
|
}
|
|
2269
|
-
}),
|
|
2270
|
-
const
|
|
2306
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0xf1d1fc)](_0x386885(_0x26be3b._0x11a66d), _0x386885(_0x26be3b._0x54e83a), { 'work_key': _0x526ec6[_0x386885(_0x26be3b._0x4ee977)]() }, async _0x338796 => {
|
|
2307
|
+
const _0x337957 = _0x386885;
|
|
2271
2308
|
try {
|
|
2272
|
-
return textResult(await
|
|
2273
|
-
} catch (
|
|
2274
|
-
return textResult(
|
|
2309
|
+
return textResult(await _0x23f596[_0x337957(_0x8ad8a3._0x31b263)](_0x338796));
|
|
2310
|
+
} catch (_0x227dd2) {
|
|
2311
|
+
return textResult(_0x227dd2 instanceof Error ? _0x227dd2[_0x337957(_0x8ad8a3._0x490df4)] : 'get_worker_status\x20failed', !![]);
|
|
2275
2312
|
}
|
|
2276
|
-
}),
|
|
2277
|
-
const
|
|
2313
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x4dd362)]('park_worker', _0x386885(_0x26be3b._0x28296f), { 'work_key': _0x526ec6['string']() }, async _0x136ad7 => {
|
|
2314
|
+
const _0x24dd0a = _0x386885;
|
|
2278
2315
|
try {
|
|
2279
|
-
return textResult(await
|
|
2280
|
-
} catch (
|
|
2281
|
-
return textResult(
|
|
2316
|
+
return textResult(await _0x23f596[_0x24dd0a(0x260)](_0x136ad7));
|
|
2317
|
+
} catch (_0x1adc5e) {
|
|
2318
|
+
return textResult(_0x1adc5e instanceof Error ? _0x1adc5e[_0x24dd0a(0x2e8)] : _0x24dd0a(0x1bd), !![]);
|
|
2282
2319
|
}
|
|
2283
|
-
}),
|
|
2284
|
-
'work_key':
|
|
2285
|
-
'reason':
|
|
2286
|
-
}, async
|
|
2287
|
-
const
|
|
2320
|
+
}), _0x4e1a95[_0x386885(_0x26be3b._0x431522)](_0x386885(0x177), _0x386885(0x1de), {
|
|
2321
|
+
'work_key': _0x526ec6[_0x386885(0x20c)](),
|
|
2322
|
+
'reason': _0x526ec6[_0x386885(0x20c)]()
|
|
2323
|
+
}, async _0x5ed233 => {
|
|
2324
|
+
const _0x2d1fb3 = _0x386885;
|
|
2288
2325
|
try {
|
|
2289
|
-
return textResult(await
|
|
2290
|
-
} catch (
|
|
2291
|
-
return textResult(
|
|
2326
|
+
return textResult(await _0x23f596[_0x2d1fb3(_0x97d8c2._0x447bff)](_0x5ed233));
|
|
2327
|
+
} catch (_0xc05950) {
|
|
2328
|
+
return textResult(_0xc05950 instanceof Error ? _0xc05950['message'] : _0x2d1fb3(0x235), !![]);
|
|
2292
2329
|
}
|
|
2293
|
-
}),
|
|
2294
|
-
const
|
|
2330
|
+
}), _0x322f9a?.[_0x386885(0x1aa)] && _0x4e1a95[_0x386885(0x1f7)](_0x386885(0x174), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x526ec6[_0x386885(_0x26be3b._0xd8da3e)]() }, async _0x1b3ac7 => {
|
|
2331
|
+
const _0x5d165d = _0x386885;
|
|
2295
2332
|
try {
|
|
2296
|
-
return textResult(await
|
|
2297
|
-
} catch (
|
|
2298
|
-
return textResult(
|
|
2333
|
+
return textResult(await _0x23f596[_0x5d165d(_0x258f87._0x2190f1)](_0x1b3ac7));
|
|
2334
|
+
} catch (_0x60e240) {
|
|
2335
|
+
return textResult(_0x60e240 instanceof Error ? _0x60e240[_0x5d165d(_0x258f87._0x4cd8d5)] : _0x5d165d(0x16e), !![]);
|
|
2299
2336
|
}
|
|
2300
2337
|
});
|
|
2301
2338
|
}
|
|
2302
|
-
async function createChatBridgeServer(
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
}), _0x5d1cf1 = createChatBridgeHandlers(_0x531467);
|
|
2311
|
-
return await registerChatBridgeTools(_0x59b300, _0x5d1cf1, { 'workerMode': _0x531467[_0x18eac7(_0xb3e166._0x20b861)] }), {
|
|
2312
|
-
'handlers': _0x5d1cf1,
|
|
2313
|
-
'server': _0x59b300
|
|
2339
|
+
async function createChatBridgeServer(_0x3095ef) {
|
|
2340
|
+
const _0x1c29a8 = { _0x9dd383: 0x21a }, _0x565abe = _0x28aee3, {McpServer: _0x1a419a} = await import(_0x565abe(0x20d)), _0x24149c = new _0x1a419a({
|
|
2341
|
+
'name': _0x565abe(_0x1c29a8._0x9dd383),
|
|
2342
|
+
'version': '0.0.0'
|
|
2343
|
+
}), _0x3bf602 = createChatBridgeHandlers(_0x3095ef);
|
|
2344
|
+
return await registerChatBridgeTools(_0x24149c, _0x3bf602, { 'workerMode': _0x3095ef[_0x565abe(0x1aa)] }), {
|
|
2345
|
+
'handlers': _0x3bf602,
|
|
2346
|
+
'server': _0x24149c
|
|
2314
2347
|
};
|
|
2315
2348
|
}
|
|
2316
|
-
function readFlag(
|
|
2317
|
-
const
|
|
2318
|
-
if (
|
|
2349
|
+
function readFlag(_0x15d3f7, _0x15b93d) {
|
|
2350
|
+
const _0x7b33da = { _0x18eb9b: 0x200 }, _0x4b8558 = _0x28aee3, _0x39f7eb = _0x15d3f7[_0x4b8558(_0x7b33da._0x18eb9b)](_0x15b93d);
|
|
2351
|
+
if (_0x39f7eb === -0x1)
|
|
2319
2352
|
return void 0x0;
|
|
2320
|
-
return
|
|
2353
|
+
return _0x15d3f7[_0x39f7eb + 0x1];
|
|
2321
2354
|
}
|
|
2322
|
-
function parseChatBridgeArgs(
|
|
2323
|
-
const
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
},
|
|
2333
|
-
if (!
|
|
2355
|
+
function parseChatBridgeArgs(_0x1051d0) {
|
|
2356
|
+
const _0x30c605 = {
|
|
2357
|
+
_0x509a0f: 0x187,
|
|
2358
|
+
_0x5c78ef: 0x206,
|
|
2359
|
+
_0x7add9e: 0x230,
|
|
2360
|
+
_0x1e9a38: 0x2aa,
|
|
2361
|
+
_0x3abc0e: 0x2b9,
|
|
2362
|
+
_0x3193e1: 0x275,
|
|
2363
|
+
_0x594b8f: 0x217,
|
|
2364
|
+
_0x4764c3: 0x237
|
|
2365
|
+
}, _0x560e11 = _0x28aee3, _0x1e4849 = readFlag(_0x1051d0, '--agent-id'), _0x5920f2 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x509a0f)), _0x3ae280 = readFlag(_0x1051d0, '--daemon-api-key'), _0x573c43 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x5c78ef)), _0x29dbb0 = readFlag(_0x1051d0, _0x560e11(0x1bc)) ?? 'http://localhost:8121', _0xb25b70 = readFlag(_0x1051d0, _0x560e11(0x1bf)), _0x3520f6 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x7add9e)), _0x381308 = readFlag(_0x1051d0, '--worker-mode-enabled'), _0x157680 = readFlag(_0x1051d0, '--worker-session-id'), _0x1d19fe = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x1e9a38)), _0x13664f = _0x1051d0[_0x560e11(_0x30c605._0x3abc0e)](_0x560e11(_0x30c605._0x3193e1)), _0x48911b = _0x573c43 === void 0x0 ? void 0x0 : Number['parseInt'](_0x573c43, 0xa);
|
|
2366
|
+
if (!_0x1e4849)
|
|
2334
2367
|
throw new Error('Missing\x20--agent-id');
|
|
2335
|
-
if (!
|
|
2336
|
-
throw new Error(
|
|
2337
|
-
if (
|
|
2338
|
-
throw new Error(
|
|
2368
|
+
if (!_0x3ae280)
|
|
2369
|
+
throw new Error(_0x560e11(0x1e6));
|
|
2370
|
+
if (_0x573c43 !== void 0x0 && (_0x48911b === void 0x0 || !Number[_0x560e11(0x221)](_0x48911b) || _0x48911b < 0x0))
|
|
2371
|
+
throw new Error(_0x560e11(_0x30c605._0x594b8f));
|
|
2339
2372
|
return {
|
|
2340
|
-
'agentId':
|
|
2341
|
-
'attachmentCacheDir':
|
|
2342
|
-
'daemonApiKey':
|
|
2343
|
-
'daemonLocalUrl':
|
|
2344
|
-
'initialLastSeenSeq':
|
|
2345
|
-
'sessionId':
|
|
2346
|
-
'serverUrl':
|
|
2347
|
-
'workerModeEnabled':
|
|
2348
|
-
'workerSessionId':
|
|
2349
|
-
'workerThreadTarget':
|
|
2350
|
-
'workerMode':
|
|
2373
|
+
'agentId': _0x1e4849,
|
|
2374
|
+
'attachmentCacheDir': _0x5920f2,
|
|
2375
|
+
'daemonApiKey': _0x3ae280,
|
|
2376
|
+
'daemonLocalUrl': _0xb25b70,
|
|
2377
|
+
'initialLastSeenSeq': _0x48911b,
|
|
2378
|
+
'sessionId': _0x3520f6,
|
|
2379
|
+
'serverUrl': _0x29dbb0,
|
|
2380
|
+
'workerModeEnabled': _0x381308 === void 0x0 ? void 0x0 : _0x381308 !== _0x560e11(_0x30c605._0x4764c3),
|
|
2381
|
+
'workerSessionId': _0x157680,
|
|
2382
|
+
'workerThreadTarget': _0x1d19fe,
|
|
2383
|
+
'workerMode': _0x13664f
|
|
2351
2384
|
};
|
|
2352
2385
|
}
|
|
2353
|
-
async function runChatBridgeCli(
|
|
2354
|
-
const
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
'
|
|
2361
|
-
'
|
|
2362
|
-
'client': _0x1a7c9a,
|
|
2363
|
-
'daemonLocalUrl': _0x5e4bfd['daemonLocalUrl'],
|
|
2386
|
+
async function runChatBridgeCli(_0x522c0a) {
|
|
2387
|
+
const _0x2b3864 = {
|
|
2388
|
+
_0x551a30: 0x1d9,
|
|
2389
|
+
_0x13e799: 0x2ad
|
|
2390
|
+
}, _0x201dd6 = _0x28aee3, _0x4e6870 = parseChatBridgeArgs(_0x522c0a), {StdioServerTransport: _0x28c997} = await import(_0x201dd6(0x243)), _0x2f6ceb = createInternalAgentClient(_0x4e6870), _0x35dd66 = createAttachmentCache({ 'cacheDir': _0x4e6870['attachmentCacheDir'] }), _0x25426f = await createChatBridgeServer({
|
|
2391
|
+
'agentId': _0x4e6870[_0x201dd6(0x176)],
|
|
2392
|
+
'attachmentCache': _0x35dd66,
|
|
2393
|
+
'client': _0x2f6ceb,
|
|
2394
|
+
'daemonLocalUrl': _0x4e6870[_0x201dd6(0x248)],
|
|
2364
2395
|
'uploadPreparer': prepareUploadFile,
|
|
2365
|
-
'workerModeEnabled':
|
|
2366
|
-
'workerMode':
|
|
2367
|
-
'workerThreadTarget':
|
|
2396
|
+
'workerModeEnabled': _0x4e6870[_0x201dd6(_0x2b3864._0x551a30)],
|
|
2397
|
+
'workerMode': _0x4e6870['workerMode'],
|
|
2398
|
+
'workerThreadTarget': _0x4e6870[_0x201dd6(0x1a7)]
|
|
2368
2399
|
});
|
|
2369
|
-
await
|
|
2400
|
+
await _0x25426f[_0x201dd6(0x22c)][_0x201dd6(_0x2b3864._0x13e799)](new _0x28c997());
|
|
2370
2401
|
}
|
|
2371
|
-
var executedAsEntry = process[
|
|
2372
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2402
|
+
var executedAsEntry = process[_0x28aee3(0x17a)][0x1] ? import.meta.url === pathToFileURL(process[_0x28aee3(0x17a)][0x1])[_0x28aee3(0x17f)] : ![];
|
|
2403
|
+
executedAsEntry && await runChatBridgeCli(process[_0x28aee3(0x17a)][_0x28aee3(0x240)](0x2));
|
|
2373
2404
|
export {
|
|
2374
2405
|
createChatBridgeHandlers,
|
|
2375
2406
|
createChatBridgeServer,
|