@dscord/daemon 0.1.66 → 0.1.67
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 +2000 -2011
- package/dist/index.js +9970 -9880
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,537 +1,547 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const _0x456b7e = _0x15bc;
|
|
2
|
+
(function (_0x38f0f4, _0xd24551) {
|
|
3
|
+
const _0xe84234 = {
|
|
4
|
+
_0x3933c7: 0x242,
|
|
5
|
+
_0x2c6732: 0x1a2,
|
|
6
|
+
_0x5da7be: 0x1c7,
|
|
7
|
+
_0x4f42dc: 0x1b0
|
|
8
|
+
}, _0x4e8fee = _0x15bc, _0xc64f0c = _0x38f0f4();
|
|
8
9
|
while (!![]) {
|
|
9
10
|
try {
|
|
10
|
-
const
|
|
11
|
-
if (
|
|
11
|
+
const _0x441b81 = parseInt(_0x4e8fee(0xe8)) / 0x1 + parseInt(_0x4e8fee(_0xe84234._0x3933c7)) / 0x2 + parseInt(_0x4e8fee(_0xe84234._0x2c6732)) / 0x3 * (parseInt(_0x4e8fee(0x208)) / 0x4) + -parseInt(_0x4e8fee(0x24e)) / 0x5 + parseInt(_0x4e8fee(0x14a)) / 0x6 + -parseInt(_0x4e8fee(_0xe84234._0x5da7be)) / 0x7 * (-parseInt(_0x4e8fee(0x24b)) / 0x8) + -parseInt(_0x4e8fee(0x126)) / 0x9 * (parseInt(_0x4e8fee(_0xe84234._0x4f42dc)) / 0xa);
|
|
12
|
+
if (_0x441b81 === _0xd24551)
|
|
12
13
|
break;
|
|
13
14
|
else
|
|
14
|
-
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
15
|
+
_0xc64f0c['push'](_0xc64f0c['shift']());
|
|
16
|
+
} catch (_0x122f67) {
|
|
17
|
+
_0xc64f0c['push'](_0xc64f0c['shift']());
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
}(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
'
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
20
|
+
}(_0x35b4, 0x9b881));
|
|
21
|
+
import { pathToFileURL } from 'node:url';
|
|
22
|
+
import {
|
|
23
|
+
mkdir,
|
|
24
|
+
readFile,
|
|
25
|
+
readdir,
|
|
26
|
+
stat,
|
|
27
|
+
writeFile
|
|
28
|
+
} from 'node:fs/promises';
|
|
29
|
+
function _0x15bc(_0x1e83db, _0x2c0e93) {
|
|
30
|
+
_0x1e83db = _0x1e83db - 0xcd;
|
|
31
|
+
const _0x35b4a5 = _0x35b4();
|
|
32
|
+
let _0x15bcca = _0x35b4a5[_0x1e83db];
|
|
33
|
+
if (_0x15bc['stCDYS'] === undefined) {
|
|
34
|
+
var _0x552ba8 = function (_0x297ec3) {
|
|
35
|
+
const _0x67793d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
36
|
+
let _0x5e0a8c = '', _0x542689 = '';
|
|
37
|
+
for (let _0x2ca78f = 0x0, _0x3cd8d1, _0x4b281f, _0x20fcd1 = 0x0; _0x4b281f = _0x297ec3['charAt'](_0x20fcd1++); ~_0x4b281f && (_0x3cd8d1 = _0x2ca78f % 0x4 ? _0x3cd8d1 * 0x40 + _0x4b281f : _0x4b281f, _0x2ca78f++ % 0x4) ? _0x5e0a8c += String['fromCharCode'](0xff & _0x3cd8d1 >> (-0x2 * _0x2ca78f & 0x6)) : 0x0) {
|
|
38
|
+
_0x4b281f = _0x67793d['indexOf'](_0x4b281f);
|
|
39
|
+
}
|
|
40
|
+
for (let _0x4649be = 0x0, _0x770610 = _0x5e0a8c['length']; _0x4649be < _0x770610; _0x4649be++) {
|
|
41
|
+
_0x542689 += '%' + ('00' + _0x5e0a8c['charCodeAt'](_0x4649be)['toString'](0x10))['slice'](-0x2);
|
|
42
|
+
}
|
|
43
|
+
return decodeURIComponent(_0x542689);
|
|
44
|
+
};
|
|
45
|
+
_0x15bc['hNMqKD'] = _0x552ba8, _0x15bc['vrCkLW'] = {}, _0x15bc['stCDYS'] = !![];
|
|
46
|
+
}
|
|
47
|
+
const _0x15cdc1 = _0x35b4a5[0x0], _0x39acb8 = _0x1e83db + _0x15cdc1, _0xa8524f = _0x15bc['vrCkLW'][_0x39acb8];
|
|
48
|
+
return !_0xa8524f ? (_0x15bcca = _0x15bc['hNMqKD'](_0x15bcca), _0x15bc['vrCkLW'][_0x39acb8] = _0x15bcca) : _0x15bcca = _0xa8524f, _0x15bcca;
|
|
49
|
+
}
|
|
50
|
+
import { homedir } from 'node:os';
|
|
51
|
+
import _0x5e0a8c from 'node:path';
|
|
52
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
53
|
+
'.csv': _0x456b7e(0x1f3),
|
|
54
|
+
'.gif': 'image/gif',
|
|
55
|
+
'.jpeg': _0x456b7e(0x20c),
|
|
56
|
+
'.jpg': _0x456b7e(0x20c),
|
|
57
|
+
'.json': _0x456b7e(0xf7),
|
|
58
|
+
'.md': _0x456b7e(0x121),
|
|
59
|
+
'.pdf': 'application/pdf',
|
|
60
|
+
'.png': 'image/png',
|
|
61
|
+
'.svg': _0x456b7e(0x14c),
|
|
62
|
+
'.txt': _0x456b7e(0x1b9),
|
|
63
|
+
'.webp': _0x456b7e(0x1ba),
|
|
64
|
+
'.xml': _0x456b7e(0x211),
|
|
65
|
+
'.zip': _0x456b7e(0x100)
|
|
66
|
+
};
|
|
67
|
+
function _0x35b4() {
|
|
68
|
+
const _0x3ad530 = [
|
|
69
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
70
|
+
'zMLSzw5HBwu',
|
|
71
|
+
'iokaLca',
|
|
72
|
+
'CNvUswq',
|
|
73
|
+
'AhjLzG',
|
|
51
74
|
'z2v0tw9UDgG',
|
|
52
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
53
75
|
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'r0vu',
|
|
67
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
68
|
-
'y3jLyxrLzef0',
|
|
69
|
-
'zgLZCg9ZAxrPB24',
|
|
70
|
-
'Cgf5Bg9HzePZB24',
|
|
71
|
-
'ywjVCNrLza',
|
|
72
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
76
|
+
'l3jLy2vPDMu/',
|
|
77
|
+
'yM9KEvrLEhq',
|
|
78
|
+
'DgfZA19Pza',
|
|
79
|
+
'y29UBMvJDa',
|
|
80
|
+
'BwfW',
|
|
81
|
+
'mtC3mJK2nhn3EK50yq',
|
|
82
|
+
'ignSywLTzwq',
|
|
83
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
84
|
+
'BM93',
|
|
85
|
+
'C3rYAw5NAwz5',
|
|
86
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
87
|
+
'ywz0zxi',
|
|
73
88
|
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
89
|
+
'DMLLD19MAwXL',
|
|
90
|
+
'ntyXmtuYCuDeCLLR',
|
|
91
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
92
|
+
'ChjVDg9JB2W',
|
|
93
|
+
'ndiZmdGWuMnxrhfY',
|
|
94
|
+
'Bwf4',
|
|
95
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
96
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
97
|
+
'BwLU',
|
|
74
98
|
'CgfYC2vjBNq',
|
|
99
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
100
|
+
'AhvTyw5Z',
|
|
101
|
+
'Bwf0y2Hoyw1L',
|
|
102
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
103
|
+
'BwvZC2fNzxm',
|
|
104
|
+
'DgfZAYa',
|
|
105
|
+
'lMrZy29Yza',
|
|
106
|
+
'BwvZC2fNzq',
|
|
75
107
|
'ywDLBNrZ',
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'yxjNDG',
|
|
92
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
93
|
-
'DxbSB2fKrMLSzq',
|
|
94
|
-
'uefuq0G',
|
|
95
|
-
'C3vIDgfZA051BwjLCG',
|
|
96
|
-
'ntCZnJK5me5mBxPOCG',
|
|
97
|
-
'ihr5Cgu9ywDLBNq',
|
|
98
|
-
'ignSywLTzwq',
|
|
99
|
-
'D2fPDgLUz19PBNb1Da',
|
|
100
|
-
'BwvZC2fNzuLK',
|
|
101
|
-
'yxjYyxLcDwzMzxi',
|
|
102
|
-
'C3rVCe1HAw4',
|
|
103
|
-
'DgL0Bgu',
|
|
104
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
105
|
-
'vgfZAZOG',
|
|
106
|
-
'vgfZAYa',
|
|
107
|
-
'Bg93',
|
|
108
|
-
'ywDLBNrjza',
|
|
109
|
-
'y2XHAw1uyxnRCW',
|
|
110
|
-
'zw51Bq',
|
|
111
|
-
'zMv0y2HjBxbS',
|
|
112
|
-
'ywDNCMvNyxrLswq',
|
|
113
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
114
|
-
'AgfZtw9Yzq',
|
|
108
|
+
'iIbUB3qGzM91BMq',
|
|
109
|
+
'Aw5FChjVz3jLC3m',
|
|
110
|
+
'AxnjBNrLz2vY',
|
|
111
|
+
'y2XPzw50',
|
|
112
|
+
'v29YA2vYia',
|
|
113
|
+
'C2vUzgvYvhLWzq',
|
|
114
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
115
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
116
|
+
'z2v0twLUDxrLCW',
|
|
117
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
118
|
+
'C2vUzf9TzxnZywDL',
|
|
119
|
+
'C29Tzq',
|
|
120
|
+
'ihn0yxr1CZ0',
|
|
121
|
+
'y29UDgvUDc10ExbL',
|
|
122
|
+
'zg06',
|
|
115
123
|
'l3rHC2TZ',
|
|
116
|
-
'
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'DxbSB2fKx2zPBgu',
|
|
120
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
121
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
122
|
-
'yM9KEvrLEhq',
|
|
123
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
124
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
125
|
-
'D29YA2vYCW',
|
|
126
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
127
|
-
'v29YA2vYici',
|
|
128
|
-
'l2nVBNrLBNq',
|
|
124
|
+
'ihrPBwu9',
|
|
125
|
+
'igf0DgfJAg1LBNq',
|
|
126
|
+
'AxngAwXL',
|
|
129
127
|
'zg93BMXVywrbDhrHy2HTzw50',
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
128
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
129
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
130
|
+
'y2f0y2G',
|
|
131
|
+
'ywDLBNq',
|
|
132
|
+
'BwfPBG',
|
|
133
|
+
'ywDNCMvNyxrLswq',
|
|
134
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
135
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
136
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
137
|
+
'w3nLCt0',
|
|
137
138
|
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
138
|
-
'BwvZC2fNzv9Pzhm',
|
|
139
|
-
'iJOGC3rHDhvZpq',
|
|
140
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
141
|
-
'C3rHDhvZ',
|
|
142
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
143
|
-
'D29YA2vY',
|
|
144
|
-
'Bwf0y2Hoyw1L',
|
|
145
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
146
|
-
'DxbKyxrL',
|
|
147
|
-
'AgvHzgvYCW',
|
|
148
|
-
'CgfYDgLJAxbHBNq',
|
|
149
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
150
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
151
|
-
'Dw5JBgfPBv90yxnR',
|
|
152
|
-
'yxr0ywnOBwvUDeLK',
|
|
153
|
-
'Dg9VBa',
|
|
154
139
|
'y3vYC29Y',
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
163
|
-
'CNvUswq',
|
|
164
|
-
'igLUia',
|
|
165
|
-
'y2HLy2TnzxnZywDLCW',
|
|
166
|
-
'AxnbCNjHEq',
|
|
167
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
168
|
-
'y2fJAgveAxi',
|
|
169
|
-
'Dgv4Dc9JC3y',
|
|
170
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
171
|
-
'yM9KEu1HCMTKB3DU',
|
|
172
|
-
'y29UBMvJDa',
|
|
173
|
-
'AxngAwXL',
|
|
174
|
-
'z2v0u2vJB25KCW',
|
|
175
|
-
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
176
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
177
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
178
|
-
'ywz0zxjtzxe',
|
|
179
|
-
'DxjNzw50',
|
|
180
|
-
'BgvUz3rO',
|
|
181
|
-
'mZm0mZK0mgrOtwXAyG',
|
|
140
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
141
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
142
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
143
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
144
|
+
'Dg9KBW',
|
|
145
|
+
'C2f2zq',
|
|
146
|
+
'mtiYmda2mKjqrMzhqq',
|
|
182
147
|
'ywrK',
|
|
183
|
-
'Aw5FCMv2Awv3',
|
|
184
|
-
'z2v0twLUDxrLCW',
|
|
185
|
-
'CM9VDe1LC3nHz2vjza',
|
|
186
|
-
'CMvHzf9OAxn0B3j5',
|
|
187
|
-
'C29Tzq',
|
|
188
|
-
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
189
|
-
'ChvIBgLJ',
|
|
190
|
-
'DgfZA051BwjLCG',
|
|
191
|
-
'ls1ZzxnZAw9UlwLK',
|
|
192
|
-
'Dg9mB3DLCKnHC2u',
|
|
193
|
-
'C2v0',
|
|
194
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
195
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
196
|
-
'C2vYDMvY',
|
|
197
|
-
'AhjLzG',
|
|
198
|
-
'BwfW',
|
|
199
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
200
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
201
|
-
'lIbnzxnZywDLieLeoIa',
|
|
202
|
-
'iIbUB3qGzM91BMq',
|
|
203
|
-
'ChvZAa',
|
|
204
|
-
'CMvJB3jK',
|
|
205
|
-
'lMjPBG',
|
|
206
|
-
'DgfZAW',
|
|
207
|
-
'ywjVCNq',
|
|
208
|
-
'Agv4',
|
|
209
|
-
'ktSGz290ignOyw5UzwW9',
|
|
210
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
211
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
212
|
-
'BMfTzq',
|
|
213
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
214
|
-
'Ahr0Chm6',
|
|
215
148
|
'zw50CMLLCW',
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'Bwf4',
|
|
219
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
220
|
-
'mJmWmtC3nNL0tNLuCW',
|
|
221
|
-
'DgfZA0LK',
|
|
222
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
223
|
-
'AhvTyw5Z',
|
|
224
|
-
'Ahr0CdO',
|
|
225
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
226
|
-
'l3n0yxj0',
|
|
227
|
-
'CMvZDwX0sNnVBG',
|
|
228
|
-
'B2jQzwn0',
|
|
229
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
149
|
+
'l3vWBg9Hza',
|
|
150
|
+
'C2LNBMfS',
|
|
230
151
|
'zxzLBNrtzxe',
|
|
231
|
-
'
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
'
|
|
152
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
153
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
154
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
155
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
156
|
+
'ig1LC3nHz2u9',
|
|
157
|
+
'C2L6zuj5DgvZ',
|
|
158
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
159
|
+
'CMvJB3jK',
|
|
160
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
161
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
162
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
163
|
+
'Dw5JBgfPBvrHC2S',
|
|
164
|
+
'y29UDgvUDa',
|
|
165
|
+
'A2LUza',
|
|
166
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
167
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
242
168
|
'CgfYC2u',
|
|
243
|
-
'
|
|
169
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
244
170
|
'yxbWBgLJyxrPB24VEMLW',
|
|
245
|
-
'
|
|
246
|
-
'
|
|
247
|
-
'
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
'
|
|
251
|
-
'
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'ig1ZzZ0',
|
|
268
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
269
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
270
|
-
'DgfYz2v0zwruyxnR',
|
|
271
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
272
|
-
'C3rHCNrLza',
|
|
273
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
274
|
-
'D29YA2vYtw9Kzq',
|
|
275
|
-
'zgvZy3jPyMu',
|
|
276
|
-
'y2XPzw50',
|
|
171
|
+
'C3rHCNrZv2L0Aa',
|
|
172
|
+
'Dg9ju09tDhjPBMC',
|
|
173
|
+
'iYmGu2vYDMvYoIa',
|
|
174
|
+
'iYmJiefNzw50CW',
|
|
175
|
+
'zNjVBq',
|
|
176
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
177
|
+
'C3rYAw5N',
|
|
178
|
+
'khvUA25VD24P',
|
|
179
|
+
'ChvIBgLJ',
|
|
180
|
+
'CgfKu3rHCNq',
|
|
181
|
+
'BwvZC2fNzuLK',
|
|
182
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
183
|
+
'y29UDgvUDejHC2u2na',
|
|
184
|
+
'zgLZCg9ZAxrPB24',
|
|
185
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
186
|
+
'DgHYzwfKtNvTyMvY',
|
|
187
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
188
|
+
'DhjPBq',
|
|
189
|
+
'yxr0ywnOBwvUDeLK',
|
|
190
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
191
|
+
'DxnLCG',
|
|
192
|
+
'C2nOzwr1BgvKrM9Y',
|
|
277
193
|
'C2vUzgvYtMfTzq',
|
|
278
|
-
'
|
|
194
|
+
'v29YA2vYici',
|
|
279
195
|
'Dg9tDhjPBMC',
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
287
|
-
'y2HHBM5LBhm',
|
|
288
|
-
'y2HHDa',
|
|
289
|
-
'C2XPy2u',
|
|
290
|
-
'ihrPBwu9',
|
|
291
|
-
'DgHYzwfKvgfYz2v0',
|
|
292
|
-
'y29UDgvUDejHC2u2na',
|
|
196
|
+
'C3rVCe1HAw4',
|
|
197
|
+
'DgfZA0LK',
|
|
198
|
+
'D29YA19RzxK',
|
|
199
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
200
|
+
'C3vIDgfZA051BwjLCG',
|
|
201
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
293
202
|
'DMLLD19MAwXLigzHAwXLza',
|
|
294
|
-
'l3rHC2TZl2nSywLT',
|
|
295
|
-
'C2LNBMfS',
|
|
296
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
297
|
-
'AM9PBG',
|
|
298
|
-
'zgvSzxrL',
|
|
299
|
-
'y2HHBM5LBe5HBwu',
|
|
300
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
301
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
302
|
-
'CgfYDgLJAxbHBNrjza',
|
|
303
|
-
'BwvTyMvY',
|
|
304
|
-
'Dgv4Dc9WBgfPBG',
|
|
305
203
|
'Dgv4Dc9TyxjRzg93BG',
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'
|
|
312
|
-
'
|
|
204
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
205
|
+
'kgXLz2fJEsK',
|
|
206
|
+
'C3bSAxq',
|
|
207
|
+
'B3b0Aw9UywW',
|
|
208
|
+
'nJu3ndC3q0DuBMHQ',
|
|
209
|
+
'AgfZ',
|
|
210
|
+
'AwrSzq',
|
|
211
|
+
'DxbSB2fKx2zPBgu',
|
|
212
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
213
|
+
'Aw5KzxHpzG',
|
|
313
214
|
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
314
|
-
'
|
|
215
|
+
'ywjVCNq',
|
|
216
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
217
|
+
'z2v0u2vJB25KCW',
|
|
218
|
+
'ANnVBG',
|
|
219
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
220
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
221
|
+
'yxr0ywnOBwvUDhm',
|
|
222
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
223
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
224
|
+
'CgfYDgLJAxbHBNq',
|
|
225
|
+
'ywz0zxjtzxe',
|
|
226
|
+
'BNvTyMvY',
|
|
227
|
+
'DgvZDa',
|
|
228
|
+
'BMv4Den1CNnVCG',
|
|
229
|
+
'C2v0',
|
|
230
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
231
|
+
'ihr5Cgu9ywDLBNq',
|
|
232
|
+
'Dw5RBM93BG',
|
|
233
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
234
|
+
'yM9KEu1HCMTKB3DU',
|
|
235
|
+
'zxjYB3i',
|
|
236
|
+
'C3vJy2vZCW',
|
|
237
|
+
'lcbWCMv2Awv3pq',
|
|
238
|
+
'l3rHC2TZl2nSywLT',
|
|
239
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
240
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
241
|
+
'zMLUza',
|
|
242
|
+
'zg0T',
|
|
243
|
+
'zxH0BMfTzq',
|
|
244
|
+
'mJq1mta2nMHOD21OAa',
|
|
245
|
+
'Bg9JywXLq29TCgfYzq',
|
|
246
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
247
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
248
|
+
'BgvUz3rO',
|
|
249
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
250
|
+
'zMfSC2u',
|
|
251
|
+
'DgHYzwfK',
|
|
252
|
+
'Dw5JBgfPBv90yxnR',
|
|
253
|
+
'Bwv0yq',
|
|
254
|
+
'yMvMB3jL',
|
|
255
|
+
'y29UDgvUDfr5Cgu',
|
|
256
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
257
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
258
|
+
'C2vYDMvY',
|
|
259
|
+
'Agv4',
|
|
260
|
+
'l3nLCNzLCG',
|
|
261
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
262
|
+
'zgvSzxrL',
|
|
315
263
|
'y3jLyxrLx3rHC2TZ',
|
|
264
|
+
'zMLSzv9WyxrO',
|
|
265
|
+
'y3jLyxrLzef0',
|
|
266
|
+
'ywXS',
|
|
267
|
+
'Dg9VBa',
|
|
268
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
269
|
+
'C2vYDMvYvxjS',
|
|
270
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
271
|
+
'D3nZoG',
|
|
272
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
273
|
+
'y2XHAw1FDgfZA3m',
|
|
274
|
+
'AxngAw5PDgu',
|
|
275
|
+
'l3rHC2TZpW',
|
|
276
|
+
'DMLZAwjPBgL0Eq',
|
|
277
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
278
|
+
'DgHYzwfKu2HVCNrjza',
|
|
279
|
+
'igrVBMuP',
|
|
280
|
+
'DMfSDwvZ',
|
|
281
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
282
|
+
'AM9PBG',
|
|
283
|
+
'yxv0BZO',
|
|
284
|
+
'DgL0Bgu',
|
|
285
|
+
'zgfLBw9UqxbPs2v5',
|
|
286
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
287
|
+
'zg9Uzq',
|
|
288
|
+
'xsba',
|
|
289
|
+
'BgLZDfnLCNzLCG',
|
|
290
|
+
'iJOGC3rHDhvZpq',
|
|
291
|
+
'zM9Yy2vszwzYzxnO',
|
|
316
292
|
'Aw5JBhvKzxm',
|
|
317
|
-
'
|
|
318
|
-
'
|
|
293
|
+
'igTPBMq9',
|
|
294
|
+
'ywDLBNrjza',
|
|
295
|
+
'y2HHBM5LBeLK',
|
|
296
|
+
'vgfZAYa',
|
|
297
|
+
'CMvZCg9UC2u',
|
|
298
|
+
'w3rHCMDLDd0',
|
|
299
|
+
'DxrMoa',
|
|
300
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
301
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
302
|
+
'D29YA2vY',
|
|
303
|
+
'AgvHzgvYCW',
|
|
304
|
+
'DMfSDwu',
|
|
305
|
+
'l3n0yxj0',
|
|
306
|
+
'l2zPBMLZAa',
|
|
307
|
+
'iYmJienOyw5UzwXZ',
|
|
308
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
309
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
310
|
+
'y2HHDa',
|
|
319
311
|
'C2L6zq',
|
|
320
|
-
'
|
|
321
|
-
'
|
|
312
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
313
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
314
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
315
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
316
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
317
|
+
'z2v0rgf0zq',
|
|
318
|
+
'zgf0yq',
|
|
319
|
+
'DxbSB2fKrMLSzq',
|
|
320
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
321
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
322
|
+
'C3rHCNrLza',
|
|
322
323
|
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'CgfKu3rHCNq',
|
|
329
|
-
'Dw5RBM93BG',
|
|
330
|
-
'C29YDa',
|
|
331
|
-
'zMLUza',
|
|
332
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
333
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
334
|
-
'ihn0yxr1CZ0',
|
|
335
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
336
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
337
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
338
|
-
'zg9Uzq',
|
|
339
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
340
|
-
'C3rYAw5N',
|
|
341
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
324
|
+
'CMvZDwX0CW',
|
|
325
|
+
'DgfYz2v0zwruyxnR',
|
|
326
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
327
|
+
'DgfZA3m',
|
|
328
|
+
'DgHYzwfKswq',
|
|
342
329
|
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'igzHAwXLzdOG',
|
|
349
|
-
'C2vUzgvYvhLWzq',
|
|
350
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
351
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
330
|
+
'BgLTAxq',
|
|
331
|
+
'DgfZAY0',
|
|
332
|
+
'nZKXmJe0qxfstuzL',
|
|
333
|
+
'zMv0y2HjBxbS',
|
|
334
|
+
'BgLZDf90yxnRCW',
|
|
352
335
|
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
353
|
-
'
|
|
354
|
-
'
|
|
336
|
+
'Aw5FCMv2Awv3',
|
|
337
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
338
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
339
|
+
'DgfZAW',
|
|
340
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
341
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
342
|
+
'ls1Zzxj2zxiTDxjS',
|
|
343
|
+
'y2HHBM5LBa',
|
|
344
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
345
|
+
'yxjYyxK',
|
|
346
|
+
'mZiWyKnKuffI',
|
|
347
|
+
'C2vUze1LC3nHz2u',
|
|
348
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
349
|
+
'C3rHDhvZ',
|
|
350
|
+
'kg5VBMuP',
|
|
351
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
352
|
+
'l3jLy2vPDMu',
|
|
353
|
+
'CMvZDwX0sNnVBG',
|
|
354
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
355
|
+
'Dgv4Dc9WBgfPBG',
|
|
356
|
+
'Aw1Hz2uVD2vICa',
|
|
357
|
+
'ig1LC3nHz2vZkqOk',
|
|
358
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
359
|
+
'AxnbyNnVBhv0zq',
|
|
360
|
+
'zw51Bq',
|
|
361
|
+
'y2HHBM5LBe5HBwu',
|
|
362
|
+
'icHPzdO',
|
|
363
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
364
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
365
|
+
'lsba',
|
|
366
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
367
|
+
'CxvLDwvK',
|
|
368
|
+
'ig1ZzZ0',
|
|
369
|
+
'mJHgwLzLEeO',
|
|
370
|
+
'BgLZDf9Zzxj2zxi',
|
|
371
|
+
'D29YA2vYtw9Kzq',
|
|
355
372
|
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
373
|
+
'DgfZA051BwjLCG',
|
|
374
|
+
'mc4WlJa',
|
|
375
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
376
|
+
'z2v0vgLTzq',
|
|
377
|
+
'l3nLBMq',
|
|
378
|
+
'AgfZtw9Yzq',
|
|
360
379
|
'D29YA2vYsgfUzg9MzG',
|
|
361
|
-
'DgHYzwfKswq',
|
|
362
|
-
'C2HHmJu2',
|
|
363
|
-
'DgfZAY0',
|
|
364
|
-
'BwLU',
|
|
365
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
366
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
367
|
-
'v29YA2vYia',
|
|
368
380
|
'yxr0ywnOBwvUDenHy2HL',
|
|
369
|
-
'nfzKCwDZta',
|
|
370
|
-
'lsaJ',
|
|
371
|
-
'DhjPBq',
|
|
372
|
-
'khvUA25VD24P',
|
|
373
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
374
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
375
|
-
'y2f0y2G',
|
|
376
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
377
|
-
'y29UDgvUDc10ExbL',
|
|
378
|
-
'Dgv4Da',
|
|
379
|
-
'D29YA19RzxK',
|
|
380
|
-
'DMLZAwjPBgL0Eq',
|
|
381
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
382
|
-
'Dg9ju09tDhjPBMC',
|
|
383
|
-
'DgfZAYa',
|
|
384
|
-
'Dw5JBgfPBvrHC2S',
|
|
385
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
386
|
-
'ywDLBNq',
|
|
387
|
-
'AxnjBNrLz2vY',
|
|
388
381
|
'zgvZDhjVEwvK',
|
|
389
|
-
'
|
|
390
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
391
|
-
'DgHYzwfKtNvTyMvY',
|
|
392
|
-
'ChjVDg9JB2W',
|
|
393
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
394
|
-
'Aw5FChjVz3jLC3m',
|
|
395
|
-
'yxv0BZO',
|
|
396
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
397
|
-
'zMLSzw5HBwu',
|
|
398
|
-
'z2v0rgf0zq',
|
|
399
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
400
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
382
|
+
'zgvZy3jPyMu',
|
|
401
383
|
'CMvWBgfJzq',
|
|
402
|
-
'
|
|
384
|
+
'CMvHzeHPC3rVCNK',
|
|
385
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
386
|
+
'BwvKAxvT',
|
|
387
|
+
'ChvZAa',
|
|
388
|
+
'yxjNDG',
|
|
389
|
+
'lIbnzxnZywDLieLeoIa',
|
|
390
|
+
'CgfYDgLJAxbHBNrjza',
|
|
391
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
392
|
+
'B2jQzwn0',
|
|
393
|
+
'BMfTzq',
|
|
394
|
+
'l2nVBNrLBNq',
|
|
395
|
+
'DgHYzwfKvgfYz2v0',
|
|
396
|
+
'pgvTChr5pG',
|
|
397
|
+
'lMjPBG',
|
|
398
|
+
'Cgf5Bg9HzePZB24',
|
|
399
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
400
|
+
'sfruuca',
|
|
401
|
+
'BgLZDfrHC2TZ',
|
|
402
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
403
|
+
'vgfZAZOG',
|
|
404
|
+
'zgvZy3jPChrPB24',
|
|
405
|
+
'DgfYz2v0',
|
|
406
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
407
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
408
|
+
'BwvTyMvY',
|
|
409
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
410
|
+
'ue9tva',
|
|
411
|
+
'yMfZzw5HBwu',
|
|
412
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
413
|
+
'Dgv4Dc9JC3y',
|
|
414
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
415
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
416
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
417
|
+
'igLUia',
|
|
418
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
419
|
+
'6k+35Rgcia',
|
|
420
|
+
'D3m6',
|
|
421
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
403
422
|
'yxnPzgu',
|
|
404
|
-
'
|
|
423
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
424
|
+
'D29YA2vYCW',
|
|
425
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
405
426
|
'ls1Hz2vUDc1Pza',
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
414
|
-
'
|
|
415
|
-
'
|
|
427
|
+
'yxjYyxLcDwzMzxi',
|
|
428
|
+
'zxHWAxjLC0f0',
|
|
429
|
+
'CNvUBMLUzW',
|
|
430
|
+
'r0vu',
|
|
431
|
+
'C2XPy2u',
|
|
432
|
+
'Bg93',
|
|
433
|
+
'ywDNCMvNyxrLswrZ',
|
|
434
|
+
'ngffAuPsyG',
|
|
435
|
+
'z2v0',
|
|
436
|
+
'z2v0rNvSBfLLyxi',
|
|
437
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
438
|
+
'Aw1Hz2uVANbLzW',
|
|
416
439
|
'y2XHAw0GzMfPBgvK',
|
|
417
|
-
'
|
|
418
|
-
'
|
|
419
|
-
'
|
|
440
|
+
'Dg9gAxHLza',
|
|
441
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
442
|
+
'C2vX',
|
|
443
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
444
|
+
'z2v0sg91CNm',
|
|
445
|
+
'y2HPBgrYzw5eB25L',
|
|
446
|
+
'yMfZzty0',
|
|
447
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
448
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
449
|
+
'ls1ZzxnZAw9UlwLK',
|
|
450
|
+
'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
|
|
451
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
452
|
+
'igzHAwXLzdOG',
|
|
453
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
454
|
+
'CMvHzf9OAxn0B3j5',
|
|
455
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
456
|
+
'zgLNzxn0',
|
|
457
|
+
'CMvHC29U',
|
|
458
|
+
'CgfYA193B3jRzxi',
|
|
459
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
460
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
461
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
462
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
463
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
464
|
+
'Ahr0Chm6',
|
|
465
|
+
'C29YDa',
|
|
466
|
+
'lsaJ',
|
|
467
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
468
|
+
'CM9VDe1LC3nHz2vjza',
|
|
469
|
+
'D2fPDgLUz19PBNb1Da',
|
|
470
|
+
'BwvZC2fNzv9Pzhm',
|
|
471
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
472
|
+
'Ahr0CdO',
|
|
473
|
+
'CMvXDwvZDfvYBa',
|
|
474
|
+
'zMLSDgvY',
|
|
475
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
476
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
477
|
+
'y2HLy2TnzxnZywDLCW',
|
|
478
|
+
'y2HHBM5LBhm',
|
|
479
|
+
'D29YA2vYu2vZC2LVBKLK'
|
|
420
480
|
];
|
|
421
|
-
|
|
422
|
-
return
|
|
481
|
+
_0x35b4 = function () {
|
|
482
|
+
return _0x3ad530;
|
|
423
483
|
};
|
|
424
|
-
return
|
|
484
|
+
return _0x35b4();
|
|
425
485
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
writeFile
|
|
433
|
-
} from 'node:fs/promises';
|
|
434
|
-
import { homedir } from 'node:os';
|
|
435
|
-
import _0xd2d670 from 'node:path';
|
|
436
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
437
|
-
'.csv': _0x57701d(0x225),
|
|
438
|
-
'.gif': 'image/gif',
|
|
439
|
-
'.jpeg': 'image/jpeg',
|
|
440
|
-
'.jpg': _0x57701d(0x26d),
|
|
441
|
-
'.json': _0x57701d(0x298),
|
|
442
|
-
'.md': _0x57701d(0x2ad),
|
|
443
|
-
'.pdf': _0x57701d(0x202),
|
|
444
|
-
'.png': 'image/png',
|
|
445
|
-
'.svg': _0x57701d(0x2d1),
|
|
446
|
-
'.txt': _0x57701d(0x2ac),
|
|
447
|
-
'.webp': 'image/webp',
|
|
448
|
-
'.xml': 'application/xml',
|
|
449
|
-
'.zip': _0x57701d(0x270)
|
|
450
|
-
};
|
|
451
|
-
function guessContentType(_0x1fb8ba) {
|
|
452
|
-
const _0x3b9b7b = {
|
|
453
|
-
_0x1da1b4: 0x217,
|
|
454
|
-
_0x255666: 0x23c,
|
|
455
|
-
_0x1ce033: 0x20a
|
|
456
|
-
}, _0x5be909 = _0x57701d;
|
|
457
|
-
return MIME_BY_EXTENSION[_0xd2d670[_0x5be909(_0x3b9b7b._0x1da1b4)](_0x1fb8ba)[_0x5be909(_0x3b9b7b._0x255666)]()] ?? _0x5be909(_0x3b9b7b._0x1ce033);
|
|
486
|
+
function guessContentType(_0x542689) {
|
|
487
|
+
const _0x53f800 = {
|
|
488
|
+
_0x28c39c: 0x149,
|
|
489
|
+
_0x30fa29: 0x1f8
|
|
490
|
+
}, _0x3f8852 = _0x456b7e;
|
|
491
|
+
return MIME_BY_EXTENSION[_0x5e0a8c[_0x3f8852(_0x53f800._0x28c39c)](_0x542689)['toLowerCase']()] ?? _0x3f8852(_0x53f800._0x30fa29);
|
|
458
492
|
}
|
|
459
|
-
function safeFilename(
|
|
460
|
-
const
|
|
461
|
-
return
|
|
493
|
+
function safeFilename(_0x2ca78f) {
|
|
494
|
+
const _0x50b341 = _0x456b7e;
|
|
495
|
+
return _0x2ca78f[_0x50b341(0x1d5)](/[\\/]/g, '-');
|
|
462
496
|
}
|
|
463
|
-
function extensionFor(
|
|
464
|
-
const
|
|
465
|
-
return
|
|
497
|
+
function extensionFor(_0x3cd8d1) {
|
|
498
|
+
const _0x3aac73 = { _0x22b553: 0xea }, _0x1982b9 = _0x456b7e, _0x4b281f = Object[_0x1982b9(_0x3aac73._0x22b553)](MIME_BY_EXTENSION)[_0x1982b9(0x147)](([, _0x20fcd1]) => _0x20fcd1 === _0x3cd8d1);
|
|
499
|
+
return _0x4b281f?.[0x0] ?? _0x1982b9(0x1e3);
|
|
466
500
|
}
|
|
467
|
-
async function prepareUploadFile(
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
const _0xfb3e96 = await readFile(_0x50d7fa), _0x2337fd = _0xd2d670[_0x3a504f(_0x11066d._0x5737b4)](_0x50d7fa);
|
|
501
|
+
async function prepareUploadFile(_0x4649be, _0x770610 = {}) {
|
|
502
|
+
const _0x22fe88 = {
|
|
503
|
+
_0x1cd692: 0x1bd,
|
|
504
|
+
_0x2de30c: 0x1b2,
|
|
505
|
+
_0x579e7a: 0x162,
|
|
506
|
+
_0x21a15b: 0x214
|
|
507
|
+
}, _0x6f7011 = _0x456b7e;
|
|
508
|
+
if (!_0x5e0a8c[_0x6f7011(_0x22fe88._0x1cd692)](_0x4649be))
|
|
509
|
+
throw new Error(_0x6f7011(_0x22fe88._0x2de30c));
|
|
510
|
+
const _0x509e53 = await stat(_0x4649be)['catch'](() => null);
|
|
511
|
+
if (!_0x509e53 || !_0x509e53[_0x6f7011(0xd4)]())
|
|
512
|
+
throw new Error('File\x20not\x20found:\x20' + _0x4649be);
|
|
513
|
+
const _0x4bcc62 = _0x770610['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
514
|
+
if (_0x509e53['size'] > _0x4bcc62)
|
|
515
|
+
throw new Error(_0x6f7011(_0x22fe88._0x579e7a) + _0x509e53[_0x6f7011(0x18d)]);
|
|
516
|
+
const _0x575a15 = await readFile(_0x4649be), _0x40021c = _0x5e0a8c[_0x6f7011(0x1f1)](_0x4649be);
|
|
484
517
|
return {
|
|
485
|
-
'contentBase64':
|
|
486
|
-
'contentType': guessContentType(
|
|
487
|
-
'filename':
|
|
488
|
-
'sizeBytes':
|
|
518
|
+
'contentBase64': _0x575a15[_0x6f7011(0x119)](_0x6f7011(_0x22fe88._0x21a15b)),
|
|
519
|
+
'contentType': guessContentType(_0x40021c),
|
|
520
|
+
'filename': _0x40021c,
|
|
521
|
+
'sizeBytes': _0x509e53['size']
|
|
489
522
|
};
|
|
490
523
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
for (let _0x3a2a06 = 0x0, _0x3bcb0f, _0x3eb2bf, _0x1457c2 = 0x0; _0x3eb2bf = _0xff551f['charAt'](_0x1457c2++); ~_0x3eb2bf && (_0x3bcb0f = _0x3a2a06 % 0x4 ? _0x3bcb0f * 0x40 + _0x3eb2bf : _0x3eb2bf, _0x3a2a06++ % 0x4) ? _0xd2d670 += String['fromCharCode'](0xff & _0x3bcb0f >> (-0x2 * _0x3a2a06 & 0x6)) : 0x0) {
|
|
500
|
-
_0x3eb2bf = _0x5a104c['indexOf'](_0x3eb2bf);
|
|
501
|
-
}
|
|
502
|
-
for (let _0x50d7fa = 0x0, _0x426cc8 = _0xd2d670['length']; _0x50d7fa < _0x426cc8; _0x50d7fa++) {
|
|
503
|
-
_0x1fb8ba += '%' + ('00' + _0xd2d670['charCodeAt'](_0x50d7fa)['toString'](0x10))['slice'](-0x2);
|
|
504
|
-
}
|
|
505
|
-
return decodeURIComponent(_0x1fb8ba);
|
|
506
|
-
};
|
|
507
|
-
_0x3fa9['qkILHI'] = _0x7fbb71, _0x3fa9['nDIgmD'] = {}, _0x3fa9['izvCKK'] = !![];
|
|
508
|
-
}
|
|
509
|
-
const _0xe80ec3 = _0x1813ee[0x0], _0x3c1b56 = _0x449dc3 + _0xe80ec3, _0x27db13 = _0x3fa9['nDIgmD'][_0x3c1b56];
|
|
510
|
-
return !_0x27db13 ? (_0x3fa984 = _0x3fa9['qkILHI'](_0x3fa984), _0x3fa9['nDIgmD'][_0x3c1b56] = _0x3fa984) : _0x3fa984 = _0x27db13, _0x3fa984;
|
|
511
|
-
}
|
|
512
|
-
function createAttachmentCache(_0x17b408 = {}) {
|
|
513
|
-
const _0x381395 = {
|
|
514
|
-
_0x5ae5d4: 0x224,
|
|
515
|
-
_0x25177e: 0x218
|
|
516
|
-
}, _0x3457bd = {
|
|
517
|
-
_0x44899f: 0x315,
|
|
518
|
-
_0x413fed: 0x297,
|
|
519
|
-
_0xdc407f: 0x2a5,
|
|
520
|
-
_0x45298f: 0x214
|
|
521
|
-
}, _0x4887e8 = { _0x1902a6: 0x2c7 }, _0x14a494 = _0x57701d, _0x465a57 = _0x17b408[_0x14a494(_0x381395._0x5ae5d4)] ?? _0xd2d670['join'](homedir(), _0x14a494(0x26b), _0x14a494(_0x381395._0x25177e));
|
|
524
|
+
function createAttachmentCache(_0x410eff = {}) {
|
|
525
|
+
const _0x2dbad2 = { _0x472676: 0x25a }, _0x3af1ad = {
|
|
526
|
+
_0x96dd98: 0x112,
|
|
527
|
+
_0x556c6d: 0x1aa,
|
|
528
|
+
_0x7ab7aa: 0x155,
|
|
529
|
+
_0x44e783: 0x170,
|
|
530
|
+
_0x5e4815: 0x194
|
|
531
|
+
}, _0x3b27f8 = _0x456b7e, _0x2a0b95 = _0x410eff['cacheDir'] ?? _0x5e0a8c['join'](homedir(), _0x3b27f8(_0x2dbad2._0x472676), 'attachments');
|
|
522
532
|
return {
|
|
523
|
-
'cacheDir':
|
|
524
|
-
async 'findCachedPath'(
|
|
525
|
-
const
|
|
526
|
-
await mkdir(
|
|
527
|
-
const
|
|
528
|
-
return
|
|
533
|
+
'cacheDir': _0x2a0b95,
|
|
534
|
+
async 'findCachedPath'(_0x1e0d3b) {
|
|
535
|
+
const _0x1bd7c9 = _0x3b27f8;
|
|
536
|
+
await mkdir(_0x2a0b95, { 'recursive': !![] });
|
|
537
|
+
const _0x1a1eab = await readdir(_0x2a0b95), _0x3cdc8c = _0x1a1eab[_0x1bd7c9(0x147)](_0x540eb9 => _0x540eb9[_0x1bd7c9(0x101)](_0x1e0d3b + '-') || _0x540eb9[_0x1bd7c9(0x101)](_0x1e0d3b));
|
|
538
|
+
return _0x3cdc8c ? _0x5e0a8c[_0x1bd7c9(0x170)](_0x2a0b95, _0x3cdc8c) : null;
|
|
529
539
|
},
|
|
530
|
-
async 'save'(
|
|
531
|
-
const
|
|
532
|
-
await mkdir(
|
|
533
|
-
const
|
|
534
|
-
return await writeFile(
|
|
540
|
+
async 'save'(_0x353f30) {
|
|
541
|
+
const _0x24a213 = _0x3b27f8;
|
|
542
|
+
await mkdir(_0x2a0b95, { 'recursive': !![] });
|
|
543
|
+
const _0x3f7f29 = _0x353f30['originalFilename']?.[_0x24a213(_0x3af1ad._0x96dd98)]() ? safeFilename(_0x353f30[_0x24a213(_0x3af1ad._0x556c6d)]) : '' + _0x353f30[_0x24a213(0x113)] + extensionFor(_0x353f30[_0x24a213(_0x3af1ad._0x7ab7aa)]), _0x400198 = _0x5e0a8c[_0x24a213(_0x3af1ad._0x44e783)](_0x2a0b95, _0x353f30[_0x24a213(0x113)] + '-' + _0x3f7f29);
|
|
544
|
+
return await writeFile(_0x400198, _0x353f30[_0x24a213(_0x3af1ad._0x5e4815)]), _0x400198;
|
|
535
545
|
}
|
|
536
546
|
};
|
|
537
547
|
}
|
|
@@ -539,1902 +549,1881 @@ import {
|
|
|
539
549
|
createHash,
|
|
540
550
|
randomUUID
|
|
541
551
|
} from 'node:crypto';
|
|
542
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
543
|
-
function ensureSegment(
|
|
544
|
-
const
|
|
545
|
-
if (!
|
|
552
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x456b7e(0x1f6);
|
|
553
|
+
function ensureSegment(_0x2508a5) {
|
|
554
|
+
const _0x2be46e = _0x2508a5['trim']();
|
|
555
|
+
if (!_0x2be46e || _0x2be46e['includes'](':'))
|
|
546
556
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
547
|
-
return
|
|
557
|
+
return _0x2be46e;
|
|
548
558
|
}
|
|
549
|
-
function parseThreadParts(
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
559
|
+
function parseThreadParts(_0x3947c9) {
|
|
560
|
+
const _0x223613 = { _0x4e03dc: 0x124 }, _0x1649ca = _0x456b7e, _0x31bd94 = _0x3947c9[_0x1649ca(_0x223613._0x4e03dc)](':');
|
|
561
|
+
if (_0x31bd94[_0x1649ca(0x14e)] < 0x1 || _0x31bd94['length'] > 0x2)
|
|
552
562
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
553
563
|
return {
|
|
554
|
-
'channelName': ensureSegment(
|
|
555
|
-
'threadShortId':
|
|
564
|
+
'channelName': ensureSegment(_0x31bd94[0x0] ?? ''),
|
|
565
|
+
'threadShortId': _0x31bd94[0x1] ? ensureSegment(_0x31bd94[0x1]) : null
|
|
556
566
|
};
|
|
557
567
|
}
|
|
558
|
-
function parseTarget(
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
if (!_0x22e616)
|
|
568
|
+
function parseTarget(_0x12756e) {
|
|
569
|
+
const _0x972455 = {
|
|
570
|
+
_0x343e82: 0x112,
|
|
571
|
+
_0x19e501: 0x205,
|
|
572
|
+
_0x3c2520: 0x1bf,
|
|
573
|
+
_0x63164b: 0x1bf,
|
|
574
|
+
_0x5a18f8: 0x205,
|
|
575
|
+
_0x441f3d: 0xd0,
|
|
576
|
+
_0xc94f7c: 0x16c
|
|
577
|
+
}, _0x480b36 = _0x456b7e, _0x2ae23e = _0x12756e[_0x480b36(_0x972455._0x343e82)]();
|
|
578
|
+
if (!_0x2ae23e)
|
|
570
579
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
571
|
-
if (
|
|
572
|
-
const
|
|
573
|
-
if (!
|
|
580
|
+
if (_0x2ae23e['startsWith']('#')) {
|
|
581
|
+
const _0x4bfb23 = parseThreadParts(_0x2ae23e[_0x480b36(_0x972455._0x19e501)](0x1)), _0x37b6d8 = '#' + _0x4bfb23[_0x480b36(_0x972455._0x3c2520)];
|
|
582
|
+
if (!_0x4bfb23['threadShortId'])
|
|
574
583
|
return {
|
|
575
|
-
'channelName':
|
|
576
|
-
'channelTarget':
|
|
577
|
-
'kind':
|
|
578
|
-
'target':
|
|
584
|
+
'channelName': _0x4bfb23[_0x480b36(0x1bf)],
|
|
585
|
+
'channelTarget': _0x37b6d8,
|
|
586
|
+
'kind': _0x480b36(0x1ad),
|
|
587
|
+
'target': _0x37b6d8
|
|
579
588
|
};
|
|
580
589
|
return {
|
|
581
|
-
'channelName':
|
|
582
|
-
'channelTarget':
|
|
583
|
-
'kind':
|
|
584
|
-
'target':
|
|
585
|
-
'threadShortId':
|
|
590
|
+
'channelName': _0x4bfb23[_0x480b36(_0x972455._0x63164b)],
|
|
591
|
+
'channelTarget': _0x37b6d8,
|
|
592
|
+
'kind': 'thread',
|
|
593
|
+
'target': _0x37b6d8 + ':' + _0x4bfb23[_0x480b36(0x16c)],
|
|
594
|
+
'threadShortId': _0x4bfb23[_0x480b36(0x16c)]
|
|
586
595
|
};
|
|
587
596
|
}
|
|
588
|
-
if (
|
|
589
|
-
const
|
|
590
|
-
if (!
|
|
597
|
+
if (_0x2ae23e[_0x480b36(0x101)]('dm:')) {
|
|
598
|
+
const _0x477d71 = parseThreadParts(_0x2ae23e[_0x480b36(_0x972455._0x5a18f8)](0x3));
|
|
599
|
+
if (!_0x477d71[_0x480b36(0x1bf)]['startsWith'](_0x480b36(0x148)))
|
|
591
600
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
592
|
-
const
|
|
593
|
-
if (!
|
|
601
|
+
const _0x56336d = _0x480b36(_0x972455._0x441f3d) + _0x477d71['channelName'];
|
|
602
|
+
if (!_0x477d71[_0x480b36(_0x972455._0xc94f7c)])
|
|
594
603
|
return {
|
|
595
|
-
'channelName':
|
|
596
|
-
'channelTarget':
|
|
597
|
-
'kind':
|
|
598
|
-
'target':
|
|
604
|
+
'channelName': _0x477d71[_0x480b36(_0x972455._0x3c2520)],
|
|
605
|
+
'channelTarget': _0x56336d,
|
|
606
|
+
'kind': 'channel',
|
|
607
|
+
'target': _0x56336d
|
|
599
608
|
};
|
|
600
609
|
return {
|
|
601
|
-
'channelName':
|
|
602
|
-
'channelTarget':
|
|
603
|
-
'kind':
|
|
604
|
-
'target':
|
|
605
|
-
'threadShortId':
|
|
610
|
+
'channelName': _0x477d71[_0x480b36(_0x972455._0x3c2520)],
|
|
611
|
+
'channelTarget': _0x56336d,
|
|
612
|
+
'kind': _0x480b36(0x151),
|
|
613
|
+
'target': _0x56336d + ':' + _0x477d71[_0x480b36(0x16c)],
|
|
614
|
+
'threadShortId': _0x477d71[_0x480b36(0x16c)]
|
|
606
615
|
};
|
|
607
616
|
}
|
|
608
617
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
609
618
|
}
|
|
610
|
-
function asErrorMessage(
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
if (typeof _0x27f674 === _0x934375(_0x46b196._0x3dd41d) && _0x27f674[_0x934375(_0x46b196._0x3e833f)]())
|
|
616
|
-
return _0x27f674;
|
|
617
|
-
return _0x220199;
|
|
619
|
+
function asErrorMessage(_0x25a1f2, _0x44f9b5) {
|
|
620
|
+
const _0x2f1c8c = _0x456b7e;
|
|
621
|
+
if (typeof _0x25a1f2 === _0x2f1c8c(0x107) && _0x25a1f2[_0x2f1c8c(0x112)]())
|
|
622
|
+
return _0x25a1f2;
|
|
623
|
+
return _0x44f9b5;
|
|
618
624
|
}
|
|
619
|
-
function asRecord(
|
|
620
|
-
|
|
621
|
-
return typeof _0x1aae3a === _0xf3db6d(_0x14764a._0x1320f8) && _0x1aae3a !== null ? _0x1aae3a : {};
|
|
625
|
+
function asRecord(_0x1f7d12) {
|
|
626
|
+
return typeof _0x1f7d12 === 'object' && _0x1f7d12 !== null ? _0x1f7d12 : {};
|
|
622
627
|
}
|
|
623
|
-
function stableStringify(
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
628
|
+
function stableStringify(_0x50e3c2) {
|
|
629
|
+
const _0x56fe94 = {
|
|
630
|
+
_0x367391: 0x241,
|
|
631
|
+
_0x3a5c42: 0x170,
|
|
632
|
+
_0x2b1ac8: 0xea,
|
|
633
|
+
_0x4f885c: 0x230,
|
|
634
|
+
_0x2623ac: 0x227
|
|
635
|
+
}, _0x17285d = _0x456b7e;
|
|
636
|
+
if (_0x50e3c2 === null || typeof _0x50e3c2 !== _0x17285d(0x1de))
|
|
637
|
+
return JSON[_0x17285d(0x246)](_0x50e3c2);
|
|
638
|
+
if (Array['isArray'](_0x50e3c2))
|
|
639
|
+
return '[' + _0x50e3c2[_0x17285d(_0x56fe94._0x367391)](_0x453534 => stableStringify(_0x453534))[_0x17285d(_0x56fe94._0x3a5c42)](',') + ']';
|
|
640
|
+
const _0x4bd426 = Object[_0x17285d(_0x56fe94._0x2b1ac8)](_0x50e3c2)[_0x17285d(_0x56fe94._0x4f885c)](([, _0x62ee06]) => _0x62ee06 !== void 0x0)[_0x17285d(_0x56fe94._0x2623ac)](([_0x5eb0a3], [_0x3cd959]) => _0x5eb0a3[_0x17285d(0x14b)](_0x3cd959))['map'](([_0x2ae78e, _0x42fea9]) => JSON[_0x17285d(0x246)](_0x2ae78e) + ':' + stableStringify(_0x42fea9));
|
|
641
|
+
return '{' + _0x4bd426['join'](',') + '}';
|
|
631
642
|
}
|
|
632
|
-
function createHeaders(
|
|
633
|
-
const _0x69f425 = _0x57701d;
|
|
643
|
+
function createHeaders(_0x3c36c8) {
|
|
634
644
|
return {
|
|
635
|
-
'Content-Type':
|
|
636
|
-
'x-daemon-api-key':
|
|
645
|
+
'Content-Type': 'application/json',
|
|
646
|
+
'x-daemon-api-key': _0x3c36c8
|
|
637
647
|
};
|
|
638
648
|
}
|
|
639
|
-
function toHttpBaseUrl(
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
if (_0xce48f5[_0x1ad9f8(0x304)] === 'ws:')
|
|
648
|
-
_0xce48f5[_0x1ad9f8(_0x184ebe._0x41cffc)] = _0x1ad9f8(_0x184ebe._0x3ba59f);
|
|
649
|
+
function toHttpBaseUrl(_0x3c51ca) {
|
|
650
|
+
const _0x45e84e = {
|
|
651
|
+
_0x2a98bc: 0x1fa,
|
|
652
|
+
_0x28fbf0: 0x165,
|
|
653
|
+
_0x185a89: 0x226
|
|
654
|
+
}, _0x3c9eb6 = _0x456b7e, _0x1ae353 = new URL(_0x3c51ca);
|
|
655
|
+
if (_0x1ae353[_0x3c9eb6(0x24d)] === _0x3c9eb6(_0x45e84e._0x2a98bc))
|
|
656
|
+
_0x1ae353[_0x3c9eb6(0x24d)] = _0x3c9eb6(0x22e);
|
|
649
657
|
else
|
|
650
|
-
|
|
651
|
-
return
|
|
658
|
+
_0x1ae353[_0x3c9eb6(0x24d)] === _0x3c9eb6(_0x45e84e._0x28fbf0) && (_0x1ae353[_0x3c9eb6(0x24d)] = _0x3c9eb6(_0x45e84e._0x185a89));
|
|
659
|
+
return _0x1ae353['toString']()[_0x3c9eb6(0x1d5)](/\/$/, '');
|
|
652
660
|
}
|
|
653
|
-
function isMentionBoundary(
|
|
654
|
-
|
|
661
|
+
function isMentionBoundary(_0xfacc0) {
|
|
662
|
+
const _0x3004d9 = { _0x5bd2f1: 0x139 }, _0x3f6d9e = _0x456b7e;
|
|
663
|
+
return !_0xfacc0 || /\s|[([{'",。!?、:;]/[_0x3f6d9e(_0x3004d9._0x5bd2f1)](_0xfacc0);
|
|
655
664
|
}
|
|
656
|
-
function isMentionTerminal(
|
|
657
|
-
|
|
665
|
+
function isMentionTerminal(_0x29aaaa) {
|
|
666
|
+
const _0x5cda7e = _0x456b7e;
|
|
667
|
+
return !_0x29aaaa || /\s|[)\]}'",。!?、:;,.!?]/[_0x5cda7e(0x139)](_0x29aaaa);
|
|
658
668
|
}
|
|
659
|
-
function buildMatchableEntries(
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
...
|
|
669
|
+
function buildMatchableEntries(_0x349454) {
|
|
670
|
+
const _0xa6afbb = {
|
|
671
|
+
_0xc07333: 0x25c,
|
|
672
|
+
_0x4dd5f6: 0x255,
|
|
673
|
+
_0x462c68: 0x1df,
|
|
674
|
+
_0x4fc327: 0x1d9,
|
|
675
|
+
_0xb653b8: 0x1f4
|
|
676
|
+
}, _0x33c08f = _0x456b7e, _0x5e1a73 = [];
|
|
677
|
+
for (const _0x5b2500 of [
|
|
678
|
+
..._0x349454[_0x33c08f(_0xa6afbb._0xc07333)],
|
|
679
|
+
..._0x349454[_0x33c08f(_0xa6afbb._0x4dd5f6)]
|
|
669
680
|
]) {
|
|
670
|
-
|
|
671
|
-
'matchName':
|
|
672
|
-
'matchNameLower':
|
|
673
|
-
'participantId':
|
|
674
|
-
}),
|
|
675
|
-
'matchName':
|
|
676
|
-
'matchNameLower':
|
|
677
|
-
'participantId':
|
|
681
|
+
_0x5e1a73['push']({
|
|
682
|
+
'matchName': _0x5b2500[_0x33c08f(0x1df)],
|
|
683
|
+
'matchNameLower': _0x5b2500[_0x33c08f(0x1df)][_0x33c08f(0x1f4)](),
|
|
684
|
+
'participantId': _0x5b2500['id']
|
|
685
|
+
}), _0x5b2500['id'] !== _0x5b2500[_0x33c08f(_0xa6afbb._0x462c68)] && _0x5e1a73[_0x33c08f(_0xa6afbb._0x4fc327)]({
|
|
686
|
+
'matchName': _0x5b2500['id'],
|
|
687
|
+
'matchNameLower': _0x5b2500['id'][_0x33c08f(_0xa6afbb._0xb653b8)](),
|
|
688
|
+
'participantId': _0x5b2500['id']
|
|
678
689
|
});
|
|
679
690
|
}
|
|
680
|
-
return
|
|
691
|
+
return _0x5e1a73;
|
|
681
692
|
}
|
|
682
|
-
function extractMentionedParticipantIds(
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
if (_0x341054[_0x445481] !== '@' || !isMentionBoundary(_0x341054[_0x445481 - 0x1]))
|
|
693
|
+
function extractMentionedParticipantIds(_0x7b59fa, _0x4cd596) {
|
|
694
|
+
const _0x3b13b7 = {
|
|
695
|
+
_0x3ef6aa: 0x147,
|
|
696
|
+
_0x390614: 0xe9,
|
|
697
|
+
_0x413a1b: 0x1d9,
|
|
698
|
+
_0x296e70: 0x14e
|
|
699
|
+
}, _0x198080 = { _0x46b23d: 0x14e }, _0x4eb0a8 = _0x456b7e, _0x4f3575 = buildMatchableEntries(_0x4cd596)['sort']((_0x3fd28d, _0x498af4) => _0x498af4[_0x4eb0a8(0x256)]['length'] - _0x3fd28d['matchName'][_0x4eb0a8(0x14e)]), _0x517f70 = [], _0x438c51 = new Set();
|
|
700
|
+
for (let _0x2d2efb = 0x0; _0x2d2efb < _0x7b59fa['length']; _0x2d2efb += 0x1) {
|
|
701
|
+
if (_0x7b59fa[_0x2d2efb] !== '@' || !isMentionBoundary(_0x7b59fa[_0x2d2efb - 0x1]))
|
|
692
702
|
continue;
|
|
693
|
-
const
|
|
694
|
-
const
|
|
695
|
-
if (!
|
|
703
|
+
const _0x3a7fc6 = _0x7b59fa[_0x4eb0a8(0x205)](_0x2d2efb + 0x1), _0xaca8d0 = _0x3a7fc6['toLocaleLowerCase'](), _0x14ff56 = _0x4f3575[_0x4eb0a8(_0x3b13b7._0x3ef6aa)](_0x1dbc52 => {
|
|
704
|
+
const _0x1e2ded = _0x4eb0a8;
|
|
705
|
+
if (!_0xaca8d0['startsWith'](_0x1dbc52['matchNameLower']))
|
|
696
706
|
return ![];
|
|
697
|
-
return isMentionTerminal(
|
|
707
|
+
return isMentionTerminal(_0x3a7fc6[_0x1dbc52[_0x1e2ded(0x256)][_0x1e2ded(_0x198080._0x46b23d)]]);
|
|
698
708
|
});
|
|
699
|
-
if (!
|
|
709
|
+
if (!_0x14ff56 || _0x438c51[_0x4eb0a8(0x127)](_0x14ff56[_0x4eb0a8(0x1dc)]))
|
|
700
710
|
continue;
|
|
701
|
-
|
|
711
|
+
_0x438c51[_0x4eb0a8(_0x3b13b7._0x390614)](_0x14ff56[_0x4eb0a8(0x1dc)]), _0x517f70[_0x4eb0a8(_0x3b13b7._0x413a1b)](_0x14ff56[_0x4eb0a8(0x1dc)]), _0x2d2efb += _0x14ff56['matchName'][_0x4eb0a8(_0x3b13b7._0x296e70)];
|
|
702
712
|
}
|
|
703
|
-
return
|
|
713
|
+
return _0x517f70;
|
|
704
714
|
}
|
|
705
715
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
706
|
-
function anySignal(...
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
},
|
|
711
|
-
for (const
|
|
712
|
-
if (
|
|
713
|
-
return
|
|
714
|
-
|
|
716
|
+
function anySignal(..._0x954f57) {
|
|
717
|
+
const _0x19e352 = {
|
|
718
|
+
_0x69003d: 0x21f,
|
|
719
|
+
_0x47326e: 0x12d
|
|
720
|
+
}, _0x124d11 = _0x456b7e, _0x3eb3d4 = new AbortController();
|
|
721
|
+
for (const _0x320c7c of _0x954f57) {
|
|
722
|
+
if (_0x320c7c['aborted'])
|
|
723
|
+
return _0x3eb3d4['abort'](_0x320c7c[_0x124d11(_0x19e352._0x69003d)]), _0x3eb3d4[_0x124d11(0xec)];
|
|
724
|
+
_0x320c7c[_0x124d11(0xe2)](_0x124d11(_0x19e352._0x47326e), () => _0x3eb3d4['abort'](_0x320c7c[_0x124d11(0x21f)]), {
|
|
715
725
|
'once': !![],
|
|
716
|
-
'signal':
|
|
726
|
+
'signal': _0x3eb3d4[_0x124d11(0xec)]
|
|
717
727
|
});
|
|
718
728
|
}
|
|
719
|
-
return
|
|
729
|
+
return _0x3eb3d4[_0x124d11(0xec)];
|
|
720
730
|
}
|
|
721
|
-
function createInternalAgentClient(
|
|
722
|
-
const
|
|
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
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
_0x115862: 0x2a3,
|
|
881
|
-
_0x1b21a2: 0x2a3
|
|
882
|
-
}, _0x4f5102 = {
|
|
883
|
-
_0x22c6c1: 0x2a3,
|
|
884
|
-
_0x4a8f36: 0x2b3,
|
|
885
|
-
_0x514ee8: 0x269
|
|
886
|
-
}, _0x38e6fd = {
|
|
887
|
-
_0x16284a: 0x2b4,
|
|
888
|
-
_0x3ae669: 0x2a6,
|
|
889
|
-
_0x23cf89: 0x339,
|
|
890
|
-
_0x4575a9: 0x34a
|
|
891
|
-
}, _0x17d53e = {
|
|
892
|
-
_0x1e44b1: 0x36f,
|
|
893
|
-
_0x6048b3: 0x26e
|
|
894
|
-
}, _0x39320e = {
|
|
895
|
-
_0x587b11: 0x281,
|
|
896
|
-
_0x2ac33e: 0x1f6,
|
|
897
|
-
_0x5fe272: 0x30d,
|
|
898
|
-
_0xa79754: 0x1f1,
|
|
899
|
-
_0x39965c: 0x209
|
|
900
|
-
}, _0x3a00cc = _0x57701d, _0x33e399 = _0xdbe9e3[_0x3a00cc(_0x41fc82._0x3e65de)] ?? fetch, _0x378895 = _0xdbe9e3[_0x3a00cc(_0x41fc82._0x4b77a4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3a54c8 = typeof _0xdbe9e3[_0x3a00cc(_0x41fc82._0x43581d)] === _0x3a00cc(0x280) && _0xdbe9e3[_0x3a00cc(_0x41fc82._0x46ab4a)] > 0x0 ? _0xdbe9e3[_0x3a00cc(0x328)] : 0x0, _0x159828 = _0xdbe9e3[_0x3a00cc(0x2a9)]?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x165de2 = _0xdbe9e3[_0x3a00cc(0x312)]?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x4d2db7 = _0xdbe9e3['workerModeEnabled'] === !![], _0x363e5b = _0xdbe9e3['workerSessionId']?.[_0x3a00cc(_0x41fc82._0x566a70)]() || void 0x0, _0x19b515 = _0xdbe9e3['workerThreadTarget']?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x27838b = createHeaders(_0xdbe9e3[_0x3a00cc(_0x41fc82._0x559167)]), _0x4f2902 = toHttpBaseUrl(_0xdbe9e3[_0x3a00cc(_0x41fc82._0x949ce4)]);
|
|
901
|
-
let _0x3bfeeb = null;
|
|
902
|
-
const _0x2d6742 = new Map();
|
|
903
|
-
let _0x43f31a = _0x3a54c8, _0xcf657 = _0x3a54c8;
|
|
904
|
-
function _0x155003(_0x99324a) {
|
|
905
|
-
const _0x4ee453 = _0x3a00cc, _0x481056 = _0x99324a['response'][_0x4ee453(0x20f)][_0x4ee453(_0x39320e._0x587b11)](_0x4ee453(0x2f5)) ?? 'unknown', _0x2b14b5 = _0x99324a[_0x4ee453(_0x39320e._0x2ac33e)][_0x4ee453(0x2ef)]()[_0x4ee453(_0x39320e._0x5fe272)](/\s+/g, '\x20')[_0x4ee453(0x29d)](0x0, 0x78) || _0x4ee453(0x201);
|
|
906
|
-
return '请求\x20' + _0x99324a['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x99324a[_0x4ee453(_0x39320e._0xa79754)][_0x4ee453(_0x39320e._0x39965c)] + _0x4ee453(0x335) + _0x481056 + ',\x20preview=' + _0x2b14b5 + _0x4ee453(0x2ea);
|
|
731
|
+
function createInternalAgentClient(_0x22da77) {
|
|
732
|
+
const _0x48cf49 = {
|
|
733
|
+
_0x18c1ce: 0x1a3,
|
|
734
|
+
_0x1fa8c2: 0x1f2,
|
|
735
|
+
_0x5bd7f: 0x1dd,
|
|
736
|
+
_0x13ad1b: 0x138,
|
|
737
|
+
_0xa0510: 0x1dd,
|
|
738
|
+
_0x138bab: 0x112,
|
|
739
|
+
_0x14b673: 0x112,
|
|
740
|
+
_0x1bc126: 0x235
|
|
741
|
+
}, _0x1a2549 = {
|
|
742
|
+
_0x4d9789: 0x13b,
|
|
743
|
+
_0x4eebe5: 0x119,
|
|
744
|
+
_0x1f03ce: 0x194,
|
|
745
|
+
_0xc9df62: 0x14e,
|
|
746
|
+
_0x3d6a58: 0x210,
|
|
747
|
+
_0x398127: 0x14e,
|
|
748
|
+
_0x22285a: 0x210,
|
|
749
|
+
_0x1837b0: 0x241,
|
|
750
|
+
_0x3021a4: 0x19e,
|
|
751
|
+
_0x7ce193: 0x107,
|
|
752
|
+
_0x16bed0: 0x22a,
|
|
753
|
+
_0x3bfad3: 0x110,
|
|
754
|
+
_0x39042c: 0x138,
|
|
755
|
+
_0x5b9177: 0xdb,
|
|
756
|
+
_0x481b29: 0xea,
|
|
757
|
+
_0x3ca445: 0x16e,
|
|
758
|
+
_0xc2696b: 0x14e,
|
|
759
|
+
_0x1b5992: 0x133,
|
|
760
|
+
_0x5d806e: 0x15f,
|
|
761
|
+
_0x16f984: 0xfb,
|
|
762
|
+
_0x3ec109: 0x10b,
|
|
763
|
+
_0x34e36e: 0x1d7,
|
|
764
|
+
_0x3b8322: 0x107,
|
|
765
|
+
_0x2a32b0: 0x140,
|
|
766
|
+
_0x1112b1: 0xfb,
|
|
767
|
+
_0x2318cd: 0x18c,
|
|
768
|
+
_0x58eb92: 0x230
|
|
769
|
+
}, _0x12c760 = { _0x271fe3: 0xfc }, _0x1580fe = { _0x457f3d: 0x248 }, _0x232ef2 = { _0x474d32: 0x17c }, _0x1d8447 = {
|
|
770
|
+
_0x15049d: 0x204,
|
|
771
|
+
_0x1acfa6: 0xec,
|
|
772
|
+
_0x24a279: 0x155,
|
|
773
|
+
_0x482f7e: 0x185,
|
|
774
|
+
_0xd1b77f: 0x209,
|
|
775
|
+
_0x191628: 0xcf,
|
|
776
|
+
_0x77befc: 0x105,
|
|
777
|
+
_0x182958: 0x201,
|
|
778
|
+
_0x264b1d: 0x194,
|
|
779
|
+
_0x6de49b: 0x1aa
|
|
780
|
+
}, _0x4967e2 = {
|
|
781
|
+
_0x29cd00: 0x1ad,
|
|
782
|
+
_0x4713d9: 0x19e,
|
|
783
|
+
_0x30d7c1: 0x17c,
|
|
784
|
+
_0x1f836c: 0xeb,
|
|
785
|
+
_0x5cd57f: 0x246,
|
|
786
|
+
_0x4fc942: 0x10d,
|
|
787
|
+
_0x4c11ca: 0x1f0,
|
|
788
|
+
_0x5bb9fd: 0x194
|
|
789
|
+
}, _0x2e860b = {
|
|
790
|
+
_0x496462: 0x17c,
|
|
791
|
+
_0x1bb94c: 0x135
|
|
792
|
+
}, _0x3e5d58 = { _0x291fc2: 0x1f0 }, _0x19fd52 = { _0x18317a: 0xe3 }, _0x3e9ffe = {
|
|
793
|
+
_0x1b2ece: 0xe3,
|
|
794
|
+
_0x16152b: 0x246
|
|
795
|
+
}, _0x49f58d = {
|
|
796
|
+
_0x82cb80: 0x13b,
|
|
797
|
+
_0x4d826f: 0x1ad,
|
|
798
|
+
_0x5c97d9: 0xe3,
|
|
799
|
+
_0x3324eb: 0x17c,
|
|
800
|
+
_0x3ec6f8: 0x169
|
|
801
|
+
}, _0x494c4a = { _0x482e09: 0x188 }, _0x488671 = {
|
|
802
|
+
_0x3e0deb: 0x187,
|
|
803
|
+
_0x1436d1: 0x1f0
|
|
804
|
+
}, _0x453fdc = {
|
|
805
|
+
_0x335bbd: 0x246,
|
|
806
|
+
_0x358f32: 0x1f0
|
|
807
|
+
}, _0x35376a = { _0x23122d: 0x204 }, _0x4a3eb5 = {
|
|
808
|
+
_0x2a59c3: 0x1e8,
|
|
809
|
+
_0x9d8f0d: 0xfa,
|
|
810
|
+
_0x28b368: 0x16a,
|
|
811
|
+
_0x3fab6d: 0x194
|
|
812
|
+
}, _0x54d3dd = {
|
|
813
|
+
_0x1dbee7: 0x13b,
|
|
814
|
+
_0x54bea5: 0x19e,
|
|
815
|
+
_0x40f490: 0x13b,
|
|
816
|
+
_0x487c5d: 0x17d,
|
|
817
|
+
_0x3a94b3: 0x154,
|
|
818
|
+
_0x22296d: 0x248,
|
|
819
|
+
_0x38964b: 0xe3,
|
|
820
|
+
_0x313cf1: 0x241
|
|
821
|
+
}, _0x34bd91 = { _0x1f9ead: 0x136 }, _0x4c71b3 = {
|
|
822
|
+
_0xf57b6c: 0x1ee,
|
|
823
|
+
_0x45b5f7: 0x1dc,
|
|
824
|
+
_0xf14484: 0x136
|
|
825
|
+
}, _0x57c898 = {
|
|
826
|
+
_0x5727c2: 0xfb,
|
|
827
|
+
_0x46fb7e: 0x110,
|
|
828
|
+
_0x22ae58: 0x138,
|
|
829
|
+
_0x9bee94: 0x107,
|
|
830
|
+
_0x3376c4: 0x22a,
|
|
831
|
+
_0xa7cf45: 0x16c,
|
|
832
|
+
_0x51ef82: 0x16c,
|
|
833
|
+
_0x4b2e9b: 0x16c
|
|
834
|
+
}, _0x2e3021 = {
|
|
835
|
+
_0x57a099: 0x151,
|
|
836
|
+
_0x50b944: 0xf4,
|
|
837
|
+
_0x4562c4: 0x110,
|
|
838
|
+
_0x71dd1: 0x22a,
|
|
839
|
+
_0x3483cf: 0x101,
|
|
840
|
+
_0xacd7d8: 0x19e
|
|
841
|
+
}, _0x20f63b = {
|
|
842
|
+
_0x21ad8e: 0x110,
|
|
843
|
+
_0x2ae565: 0xf4,
|
|
844
|
+
_0x6297bf: 0x110,
|
|
845
|
+
_0xd80f27: 0xf4,
|
|
846
|
+
_0x40015d: 0x22a
|
|
847
|
+
}, _0x2a5557 = { _0x44dbc1: 0x1df }, _0x12f8aa = { _0x4def0e: 0xd9 }, _0x5f2f29 = { _0x54ded0: 0xd8 }, _0x265767 = {
|
|
848
|
+
_0x129138: 0xe3,
|
|
849
|
+
_0x170c57: 0x19c,
|
|
850
|
+
_0x479107: 0x194,
|
|
851
|
+
_0x44855c: 0x1a9,
|
|
852
|
+
_0x4a56c9: 0x110
|
|
853
|
+
}, _0x34f57f = {
|
|
854
|
+
_0x2c8453: 0x12e,
|
|
855
|
+
_0x13f475: 0x246,
|
|
856
|
+
_0x34692c: 0xf7,
|
|
857
|
+
_0x20218d: 0x1e6
|
|
858
|
+
}, _0x4201c0 = {
|
|
859
|
+
_0x6df4ea: 0x199,
|
|
860
|
+
_0x169c48: 0x246
|
|
861
|
+
}, _0x48c845 = { _0x3568e5: 0xec }, _0x16aa2b = {
|
|
862
|
+
_0xdd9171: 0xec,
|
|
863
|
+
_0x2a7a8c: 0x141,
|
|
864
|
+
_0x5d8056: 0x1e6
|
|
865
|
+
}, _0x1eae32 = {
|
|
866
|
+
_0x1330ac: 0x15c,
|
|
867
|
+
_0x37f91b: 0x21e,
|
|
868
|
+
_0x229dc2: 0x186,
|
|
869
|
+
_0x38ac0e: 0x171,
|
|
870
|
+
_0x79dcee: 0x13b
|
|
871
|
+
}, _0x374fa = {
|
|
872
|
+
_0x1765a5: 0x105,
|
|
873
|
+
_0x55ee33: 0x201,
|
|
874
|
+
_0x1c691b: 0x119
|
|
875
|
+
}, _0x5a9137 = {
|
|
876
|
+
_0x141560: 0x17f,
|
|
877
|
+
_0x279cf5: 0x13e,
|
|
878
|
+
_0x408c27: 0x23e,
|
|
879
|
+
_0x4ef87e: 0x205,
|
|
880
|
+
_0x4bb7c4: 0x22f,
|
|
881
|
+
_0x55dbec: 0xee,
|
|
882
|
+
_0x57b197: 0x1ed
|
|
883
|
+
}, _0x405dcc = _0x456b7e, _0x6fd199 = _0x22da77[_0x405dcc(_0x48cf49._0x18c1ce)] ?? fetch, _0x5cd833 = _0x22da77[_0x405dcc(_0x48cf49._0x1fa8c2)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x14a5ea = typeof _0x22da77[_0x405dcc(_0x48cf49._0x5bd7f)] === _0x405dcc(_0x48cf49._0x13ad1b) && _0x22da77[_0x405dcc(_0x48cf49._0x5bd7f)] > 0x0 ? _0x22da77[_0x405dcc(_0x48cf49._0xa0510)] : 0x0, _0xdc2cf4 = _0x22da77['daemonLocalUrl']?.[_0x405dcc(_0x48cf49._0x138bab)]() || void 0x0, _0x20a56a = _0x22da77['sessionId']?.[_0x405dcc(_0x48cf49._0x14b673)]() || void 0x0, _0x3ce451 = _0x22da77['workerModeEnabled'] === !![], _0x6cd872 = _0x22da77[_0x405dcc(_0x48cf49._0x1bc126)]?.[_0x405dcc(0x112)]() || void 0x0, _0x43077e = _0x22da77['workerThreadTarget']?.[_0x405dcc(0x112)]() || void 0x0, _0x8e7adf = createHeaders(_0x22da77[_0x405dcc(0x173)]), _0x2ce03a = toHttpBaseUrl(_0x22da77[_0x405dcc(0x163)]);
|
|
884
|
+
let _0x38c2b9 = null;
|
|
885
|
+
const _0x51569e = new Map();
|
|
886
|
+
let _0x47f847 = _0x14a5ea, _0x3eeaec = _0x14a5ea;
|
|
887
|
+
function _0x5bba8b(_0x2e5c7a) {
|
|
888
|
+
const _0x44ae97 = _0x405dcc, _0x9f9d4 = _0x2e5c7a[_0x44ae97(_0x5a9137._0x141560)][_0x44ae97(0x185)]['get']('content-type') ?? _0x44ae97(_0x5a9137._0x279cf5), _0x33dc48 = _0x2e5c7a[_0x44ae97(_0x5a9137._0x408c27)]['trim']()[_0x44ae97(0x1d5)](/\s+/g, '\x20')[_0x44ae97(_0x5a9137._0x4ef87e)](0x0, 0x78) || _0x44ae97(0x1e2);
|
|
889
|
+
return _0x44ae97(0x1f9) + _0x2e5c7a[_0x44ae97(_0x5a9137._0x4bb7c4)] + _0x44ae97(_0x5a9137._0x55dbec) + _0x2e5c7a['response']['status'] + _0x44ae97(0xdc) + _0x9f9d4 + _0x44ae97(0x143) + _0x33dc48 + _0x44ae97(_0x5a9137._0x57b197);
|
|
907
890
|
}
|
|
908
|
-
async function
|
|
909
|
-
const
|
|
910
|
-
if (!
|
|
891
|
+
async function _0x4001ba(_0x2b5285, _0x88bb18) {
|
|
892
|
+
const _0x5dde2d = _0x405dcc, _0x4fd659 = Buffer[_0x5dde2d(_0x374fa._0x1765a5)](await _0x88bb18[_0x5dde2d(_0x374fa._0x55ee33)]())[_0x5dde2d(_0x374fa._0x1c691b)](_0x5dde2d(0x181));
|
|
893
|
+
if (!_0x4fd659['trim']())
|
|
911
894
|
return {};
|
|
912
895
|
try {
|
|
913
|
-
return JSON[
|
|
896
|
+
return JSON[_0x5dde2d(0xfe)](_0x4fd659);
|
|
914
897
|
} catch {
|
|
915
|
-
throw new Error(
|
|
916
|
-
'bodyText':
|
|
917
|
-
'requestUrl':
|
|
918
|
-
'response':
|
|
898
|
+
throw new Error(_0x5bba8b({
|
|
899
|
+
'bodyText': _0x4fd659,
|
|
900
|
+
'requestUrl': _0x2b5285,
|
|
901
|
+
'response': _0x88bb18
|
|
919
902
|
}));
|
|
920
903
|
}
|
|
921
904
|
}
|
|
922
|
-
function
|
|
923
|
-
const
|
|
924
|
-
if (
|
|
925
|
-
return
|
|
926
|
-
const
|
|
927
|
-
for (const [
|
|
928
|
-
|
|
905
|
+
function _0x22349d(_0x31e821, _0x5ef47d) {
|
|
906
|
+
const _0x4e21c0 = _0x405dcc, _0xdcca7c = typeof _0x5ef47d[_0x4e21c0(0x1a7)] === _0x4e21c0(0x107) ? _0x5ef47d[_0x4e21c0(0x1a7)][_0x4e21c0(0x112)]() : '';
|
|
907
|
+
if (_0xdcca7c)
|
|
908
|
+
return _0xdcca7c;
|
|
909
|
+
const _0x471772 = Date[_0x4e21c0(0x245)]();
|
|
910
|
+
for (const [_0x5959af, _0x441a1b] of _0x51569e) {
|
|
911
|
+
_0x441a1b[_0x4e21c0(0x202)] <= _0x471772 && _0x51569e[_0x4e21c0(_0x1eae32._0x1330ac)](_0x5959af);
|
|
929
912
|
}
|
|
930
|
-
const
|
|
931
|
-
...
|
|
913
|
+
const _0x1fe8d5 = {
|
|
914
|
+
..._0x5ef47d,
|
|
932
915
|
'idempotency_key': void 0x0
|
|
933
|
-
},
|
|
934
|
-
if (
|
|
935
|
-
return
|
|
936
|
-
const
|
|
937
|
-
return
|
|
938
|
-
'expiresAt':
|
|
939
|
-
'value':
|
|
940
|
-
}),
|
|
916
|
+
}, _0x469af7 = createHash('sha256')['update'](_0x31e821 + ':' + stableStringify(_0x1fe8d5))[_0x4e21c0(_0x1eae32._0x37f91b)](_0x4e21c0(0x159)), _0x318880 = _0x31e821 + ':' + _0x469af7, _0x203072 = _0x51569e[_0x4e21c0(0x209)](_0x318880);
|
|
917
|
+
if (_0x203072)
|
|
918
|
+
return _0x203072[_0x4e21c0(_0x1eae32._0x229dc2)];
|
|
919
|
+
const _0x376a48 = _0x4e21c0(_0x1eae32._0x38ac0e) + _0x31e821 + ':' + randomUUID();
|
|
920
|
+
return _0x51569e[_0x4e21c0(_0x1eae32._0x79dcee)](_0x318880, {
|
|
921
|
+
'expiresAt': _0x471772 + 0x5 * 0x3c * 0x3e8,
|
|
922
|
+
'value': _0x376a48
|
|
923
|
+
}), _0x376a48;
|
|
941
924
|
}
|
|
942
|
-
async function
|
|
943
|
-
const
|
|
925
|
+
async function _0x1ea43(_0x14bec2, _0x23ffa5) {
|
|
926
|
+
const _0x12ac70 = _0x405dcc, _0x3e56df = new AbortController(), _0x3b24cf = setTimeout(() => _0x3e56df[_0x12ac70(0x12d)](), _0x5cd833), _0x22d5ae = _0x23ffa5?.['signal'] ? anySignal(_0x23ffa5[_0x12ac70(_0x16aa2b._0xdd9171)], _0x3e56df[_0x12ac70(0xec)]) : _0x3e56df[_0x12ac70(_0x16aa2b._0xdd9171)], _0x6b5264 = '' + _0x2ce03a + _0x14bec2;
|
|
944
927
|
try {
|
|
945
|
-
const
|
|
946
|
-
...
|
|
947
|
-
'signal':
|
|
948
|
-
}),
|
|
949
|
-
if (!
|
|
950
|
-
throw new Error(asErrorMessage(
|
|
951
|
-
return
|
|
928
|
+
const _0x1d0a68 = await _0x6fd199(_0x6b5264, {
|
|
929
|
+
..._0x23ffa5,
|
|
930
|
+
'signal': _0x22d5ae
|
|
931
|
+
}), _0x24a4ca = await _0x4001ba(_0x6b5264, _0x1d0a68);
|
|
932
|
+
if (!_0x1d0a68['ok'] || _0x24a4ca[_0x12ac70(0x142)] === ![])
|
|
933
|
+
throw new Error(asErrorMessage(_0x24a4ca[_0x12ac70(_0x16aa2b._0x2a7a8c)], _0x12ac70(_0x16aa2b._0x5d8056) + _0x1d0a68[_0x12ac70(0x1b3)]));
|
|
934
|
+
return _0x24a4ca;
|
|
952
935
|
} finally {
|
|
953
|
-
clearTimeout(
|
|
936
|
+
clearTimeout(_0x3b24cf);
|
|
954
937
|
}
|
|
955
938
|
}
|
|
956
|
-
async function
|
|
957
|
-
const
|
|
939
|
+
async function _0x6634a8(_0x917a2c, _0x40dfd2) {
|
|
940
|
+
const _0x526adc = _0x405dcc, _0x102334 = new AbortController(), _0x505023 = setTimeout(() => _0x102334['abort'](), _0x5cd833), _0x1df4ca = _0x40dfd2?.['signal'] ? anySignal(_0x40dfd2['signal'], _0x102334[_0x526adc(0xec)]) : _0x102334[_0x526adc(_0x48c845._0x3568e5)], _0x2afa99 = '' + _0x2ce03a + _0x917a2c;
|
|
958
941
|
try {
|
|
959
|
-
const
|
|
960
|
-
...
|
|
961
|
-
'signal':
|
|
962
|
-
}),
|
|
963
|
-
if (!
|
|
964
|
-
throw new Error(asErrorMessage(
|
|
965
|
-
return
|
|
942
|
+
const _0x513668 = await _0x6fd199(_0x2afa99, {
|
|
943
|
+
..._0x40dfd2,
|
|
944
|
+
'signal': _0x1df4ca
|
|
945
|
+
}), _0x3740dd = await _0x4001ba(_0x2afa99, _0x513668);
|
|
946
|
+
if (!_0x513668['ok'])
|
|
947
|
+
throw new Error(asErrorMessage(_0x3740dd['error'], _0x526adc(0x1e6) + _0x513668[_0x526adc(0x1b3)]));
|
|
948
|
+
return _0x3740dd;
|
|
966
949
|
} finally {
|
|
967
|
-
clearTimeout(
|
|
950
|
+
clearTimeout(_0x505023);
|
|
968
951
|
}
|
|
969
952
|
}
|
|
970
|
-
async function
|
|
971
|
-
const
|
|
972
|
-
if (!
|
|
953
|
+
async function _0x822bee(_0x5446bc) {
|
|
954
|
+
const _0x5509ab = _0x405dcc;
|
|
955
|
+
if (!_0x20a56a || _0x5446bc <= _0x3eeaec)
|
|
973
956
|
return;
|
|
974
|
-
await
|
|
975
|
-
'body': JSON[
|
|
976
|
-
'headers':
|
|
977
|
-
'method':
|
|
978
|
-
}),
|
|
957
|
+
await _0x1ea43(_0x5509ab(_0x4201c0._0x6df4ea) + encodeURIComponent(_0x20a56a) + _0x5509ab(0x1f5), {
|
|
958
|
+
'body': JSON[_0x5509ab(_0x4201c0._0x169c48)]({ 'lastSeenSeq': _0x5446bc }),
|
|
959
|
+
'headers': _0x8e7adf,
|
|
960
|
+
'method': 'PATCH'
|
|
961
|
+
}), _0x3eeaec = _0x5446bc;
|
|
979
962
|
}
|
|
980
|
-
async function
|
|
981
|
-
const
|
|
982
|
-
if (!
|
|
963
|
+
async function _0x2a383c(_0x2f4b91) {
|
|
964
|
+
const _0x31511b = _0x405dcc;
|
|
965
|
+
if (!_0xdc2cf4 || !_0x6cd872 || _0x2f4b91 <= _0x3eeaec)
|
|
983
966
|
return;
|
|
984
|
-
const
|
|
985
|
-
'body': JSON[
|
|
986
|
-
'last_seen_seq':
|
|
987
|
-
'worker_session_id':
|
|
967
|
+
const _0x13b6d4 = await _0x6fd199(_0xdc2cf4 + _0x31511b(_0x34f57f._0x2c8453), {
|
|
968
|
+
'body': JSON[_0x31511b(_0x34f57f._0x13f475)]({
|
|
969
|
+
'last_seen_seq': _0x2f4b91,
|
|
970
|
+
'worker_session_id': _0x6cd872
|
|
988
971
|
}),
|
|
989
|
-
'headers': { 'Content-Type':
|
|
990
|
-
'method':
|
|
972
|
+
'headers': { 'Content-Type': _0x31511b(_0x34f57f._0x34692c) },
|
|
973
|
+
'method': 'POST'
|
|
991
974
|
});
|
|
992
|
-
if (!
|
|
993
|
-
throw new Error(
|
|
994
|
-
|
|
975
|
+
if (!_0x13b6d4['ok'])
|
|
976
|
+
throw new Error(_0x31511b(_0x34f57f._0x20218d) + _0x13b6d4[_0x31511b(0x1b3)]);
|
|
977
|
+
_0x3eeaec = _0x2f4b91;
|
|
995
978
|
}
|
|
996
|
-
async function
|
|
997
|
-
const
|
|
998
|
-
'body': JSON[
|
|
999
|
-
'headers':
|
|
979
|
+
async function _0x4272c9(_0x118b7f) {
|
|
980
|
+
const _0x4bf3ba = _0x405dcc, _0x190279 = parseTarget(_0x118b7f), _0x3aaa67 = await _0x1ea43(_0x4bf3ba(_0x265767._0x129138) + _0x22da77[_0x4bf3ba(0x17c)] + _0x4bf3ba(_0x265767._0x170c57), {
|
|
981
|
+
'body': JSON[_0x4bf3ba(0x246)]({ 'target': _0x190279[_0x4bf3ba(0x1eb)] }),
|
|
982
|
+
'headers': _0x8e7adf,
|
|
1000
983
|
'method': 'POST'
|
|
1001
984
|
});
|
|
1002
985
|
return {
|
|
1003
|
-
'channelId':
|
|
1004
|
-
'target':
|
|
1005
|
-
'task':
|
|
1006
|
-
'threadId':
|
|
1007
|
-
'threadNumber':
|
|
986
|
+
'channelId': _0x3aaa67['data']?.['channelId'] ?? '',
|
|
987
|
+
'target': _0x190279['channelTarget'],
|
|
988
|
+
'task': _0x3aaa67[_0x4bf3ba(_0x265767._0x479107)]?.[_0x4bf3ba(_0x265767._0x44855c)],
|
|
989
|
+
'threadId': _0x3aaa67['data']?.[_0x4bf3ba(0x19e)],
|
|
990
|
+
'threadNumber': _0x3aaa67[_0x4bf3ba(_0x265767._0x479107)]?.[_0x4bf3ba(_0x265767._0x4a56c9)]
|
|
1008
991
|
};
|
|
1009
992
|
}
|
|
1010
|
-
async function
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
'
|
|
1026
|
-
'
|
|
1027
|
-
}))['
|
|
1028
|
-
'id':
|
|
1029
|
-
'name':
|
|
1030
|
-
}))[
|
|
993
|
+
async function _0x1e92cf(_0xd8a05b = {}) {
|
|
994
|
+
const _0x4d9239 = {
|
|
995
|
+
_0x1d0f61: 0x17c,
|
|
996
|
+
_0x4473b5: 0x204,
|
|
997
|
+
_0x593cb1: 0x230,
|
|
998
|
+
_0x1cf596: 0x241,
|
|
999
|
+
_0x189094: 0x194,
|
|
1000
|
+
_0x2a6b6d: 0x158,
|
|
1001
|
+
_0x520699: 0x234,
|
|
1002
|
+
_0x36dfa6: 0x1df
|
|
1003
|
+
}, _0x130a50 = _0x405dcc;
|
|
1004
|
+
if (!_0xd8a05b[_0x130a50(0x179)] && _0x38c2b9)
|
|
1005
|
+
return _0x38c2b9;
|
|
1006
|
+
return _0x38c2b9 = (async () => {
|
|
1007
|
+
const _0x8f3ae1 = _0x130a50, _0x276559 = await _0x1ea43(_0x8f3ae1(0xe3) + _0x22da77[_0x8f3ae1(_0x4d9239._0x1d0f61)] + _0x8f3ae1(0x15a), {
|
|
1008
|
+
'headers': _0x8e7adf,
|
|
1009
|
+
'method': _0x8f3ae1(_0x4d9239._0x4473b5)
|
|
1010
|
+
}), _0x596c56 = _0x276559[_0x8f3ae1(0x194)]?.['members'] ?? [], _0x1e1723 = _0x596c56[_0x8f3ae1(_0x4d9239._0x593cb1)](_0x5303de => _0x5303de[_0x8f3ae1(0x136)]?.['type'] === 'agent')['map'](_0x30e9e5 => ({
|
|
1011
|
+
'id': _0x163d38(_0x30e9e5),
|
|
1012
|
+
'name': _0x5e3c84(_0x30e9e5)
|
|
1013
|
+
}))['filter'](_0x26884a => _0x26884a['id']), _0x14adaa = _0x596c56[_0x8f3ae1(_0x4d9239._0x593cb1)](_0x4a3e48 => _0x4a3e48[_0x8f3ae1(0x136)]?.['type'] !== _0x8f3ae1(0xd9))[_0x8f3ae1(_0x4d9239._0x1cf596)](_0x2345c2 => ({
|
|
1014
|
+
'id': _0x163d38(_0x2345c2),
|
|
1015
|
+
'name': _0x5e3c84(_0x2345c2)
|
|
1016
|
+
}))['filter'](_0x1fb43a => _0x1fb43a['id']), _0xdf3a2 = _0x276559[_0x8f3ae1(_0x4d9239._0x189094)]?.[_0x8f3ae1(_0x4d9239._0x2a6b6d)]['id'] ?? '';
|
|
1031
1017
|
return {
|
|
1032
|
-
'agents':
|
|
1033
|
-
'channels':
|
|
1034
|
-
'humans':
|
|
1035
|
-
'serverId':
|
|
1036
|
-
'serverName':
|
|
1018
|
+
'agents': _0x1e1723,
|
|
1019
|
+
'channels': _0x276559[_0x8f3ae1(_0x4d9239._0x189094)]?.[_0x8f3ae1(_0x4d9239._0x520699)] ?? [],
|
|
1020
|
+
'humans': _0x14adaa,
|
|
1021
|
+
'serverId': _0xdf3a2,
|
|
1022
|
+
'serverName': _0x276559['data']?.[_0x8f3ae1(_0x4d9239._0x2a6b6d)][_0x8f3ae1(_0x4d9239._0x36dfa6)] ?? _0xdf3a2
|
|
1037
1023
|
};
|
|
1038
|
-
})()[
|
|
1039
|
-
|
|
1040
|
-
throw
|
|
1041
|
-
}),
|
|
1024
|
+
})()[_0x130a50(_0x5f2f29._0x54ded0)](_0xa46707 => {
|
|
1025
|
+
_0x38c2b9 = null;
|
|
1026
|
+
throw _0xa46707;
|
|
1027
|
+
}), _0x38c2b9;
|
|
1042
1028
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1029
|
+
function _0x1a336a(_0x42d0fd, _0x5bcefb) {
|
|
1030
|
+
const _0x102630 = _0x405dcc;
|
|
1031
|
+
return _0x5bcefb[_0x102630(0x25c)][_0x102630(0xcd)](_0x48fa49 => _0x48fa49['id'] === _0x42d0fd || _0x48fa49['name'] === _0x42d0fd) ? _0x102630(_0x12f8aa._0x4def0e) : 'human';
|
|
1046
1032
|
}
|
|
1047
|
-
function
|
|
1048
|
-
const
|
|
1049
|
-
...
|
|
1050
|
-
...
|
|
1051
|
-
][
|
|
1052
|
-
return
|
|
1033
|
+
function _0x1d6384(_0x2807df, _0x5b628a) {
|
|
1034
|
+
const _0x2ff8f0 = _0x405dcc, _0x5a7f52 = [
|
|
1035
|
+
..._0x5b628a[_0x2ff8f0(0x25c)],
|
|
1036
|
+
..._0x5b628a['humans']
|
|
1037
|
+
][_0x2ff8f0(0x147)](_0x22b9d9 => _0x22b9d9['id'] === _0x2807df);
|
|
1038
|
+
return _0x5a7f52?.[_0x2ff8f0(_0x2a5557._0x44dbc1)] ?? _0x2807df;
|
|
1053
1039
|
}
|
|
1054
|
-
function
|
|
1055
|
-
const
|
|
1056
|
-
if (
|
|
1057
|
-
return
|
|
1058
|
-
if (
|
|
1059
|
-
return
|
|
1060
|
-
if (
|
|
1061
|
-
return
|
|
1062
|
-
return
|
|
1040
|
+
function _0x239605(_0x552493) {
|
|
1041
|
+
const _0x1da94b = _0x405dcc;
|
|
1042
|
+
if (_0x552493[_0x1da94b(_0x20f63b._0x21ad8e)] != null)
|
|
1043
|
+
return _0x552493[_0x1da94b(_0x20f63b._0x2ae565)] + ':t' + _0x552493[_0x1da94b(_0x20f63b._0x6297bf)];
|
|
1044
|
+
if (_0x552493[_0x1da94b(0x22a)])
|
|
1045
|
+
return _0x552493[_0x1da94b(_0x20f63b._0xd80f27)] + ':' + _0x552493[_0x1da94b(_0x20f63b._0x40015d)];
|
|
1046
|
+
if (_0x552493[_0x1da94b(0x19e)])
|
|
1047
|
+
return _0x552493['channelTarget'] + ':' + _0x552493[_0x1da94b(0x19e)]['slice'](0x0, 0x8);
|
|
1048
|
+
return _0x552493[_0x1da94b(0xf4)];
|
|
1063
1049
|
}
|
|
1064
|
-
function
|
|
1065
|
-
const
|
|
1050
|
+
function _0x8d570(_0x2b0b3f, _0x4d0e40) {
|
|
1051
|
+
const _0x319cd6 = _0x405dcc;
|
|
1066
1052
|
try {
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1053
|
+
const _0x1c67a8 = parseTarget(_0x2b0b3f);
|
|
1054
|
+
if (_0x1c67a8[_0x319cd6(0xfb)] !== _0x319cd6(_0x2e3021._0x57a099) || _0x1c67a8[_0x319cd6(_0x2e3021._0x50b944)] !== _0x4d0e40['channelTarget'])
|
|
1069
1055
|
return ![];
|
|
1070
|
-
if (
|
|
1056
|
+
if (_0x4d0e40[_0x319cd6(0x110)] != null && _0x1c67a8['threadShortId'] === 't' + _0x4d0e40[_0x319cd6(_0x2e3021._0x4562c4)])
|
|
1071
1057
|
return !![];
|
|
1072
|
-
if (
|
|
1073
|
-
return
|
|
1074
|
-
if (
|
|
1075
|
-
return
|
|
1058
|
+
if (_0x4d0e40[_0x319cd6(0x22a)])
|
|
1059
|
+
return _0x1c67a8[_0x319cd6(0x16c)] === _0x4d0e40[_0x319cd6(_0x2e3021._0x71dd1)] || _0x4d0e40[_0x319cd6(0x22a)][_0x319cd6(_0x2e3021._0x3483cf)](_0x1c67a8[_0x319cd6(0x16c)]);
|
|
1060
|
+
if (_0x4d0e40[_0x319cd6(_0x2e3021._0xacd7d8)])
|
|
1061
|
+
return _0x1c67a8[_0x319cd6(0x16c)] === _0x4d0e40['threadId'] || _0x4d0e40[_0x319cd6(0x19e)][_0x319cd6(_0x2e3021._0x3483cf)](_0x1c67a8[_0x319cd6(0x16c)]);
|
|
1076
1062
|
return ![];
|
|
1077
1063
|
} catch {
|
|
1078
1064
|
return ![];
|
|
1079
1065
|
}
|
|
1080
1066
|
}
|
|
1081
|
-
function
|
|
1082
|
-
const
|
|
1067
|
+
function _0x824966(_0x364340, _0x16f326) {
|
|
1068
|
+
const _0x3b4e69 = _0x405dcc;
|
|
1083
1069
|
try {
|
|
1084
|
-
const
|
|
1085
|
-
if (
|
|
1070
|
+
const _0x3c1046 = parseTarget(_0x364340);
|
|
1071
|
+
if (_0x3c1046[_0x3b4e69(_0x57c898._0x5727c2)] !== 'thread')
|
|
1086
1072
|
return ![];
|
|
1087
|
-
const
|
|
1088
|
-
if (
|
|
1073
|
+
const _0x3ff9d1 = typeof _0x16f326[_0x3b4e69(_0x57c898._0x46fb7e)] === _0x3b4e69(_0x57c898._0x22ae58) && Number[_0x3b4e69(0x25f)](_0x16f326[_0x3b4e69(0x110)]) ? _0x16f326[_0x3b4e69(0x110)] : void 0x0;
|
|
1074
|
+
if (_0x3ff9d1 != null && _0x3c1046[_0x3b4e69(0x16c)] === 't' + _0x3ff9d1)
|
|
1089
1075
|
return !![];
|
|
1090
|
-
const
|
|
1091
|
-
if (
|
|
1092
|
-
return
|
|
1093
|
-
const
|
|
1094
|
-
return Boolean(
|
|
1076
|
+
const _0x568715 = typeof _0x16f326[_0x3b4e69(0x22a)] === _0x3b4e69(_0x57c898._0x9bee94) ? _0x16f326[_0x3b4e69(_0x57c898._0x3376c4)] : void 0x0;
|
|
1077
|
+
if (_0x568715)
|
|
1078
|
+
return _0x3c1046[_0x3b4e69(_0x57c898._0xa7cf45)] === _0x568715 || _0x568715['startsWith'](_0x3c1046[_0x3b4e69(_0x57c898._0x51ef82)]);
|
|
1079
|
+
const _0x73f9f0 = typeof _0x16f326[_0x3b4e69(0x19e)] === 'string' ? _0x16f326['threadId'] : void 0x0;
|
|
1080
|
+
return Boolean(_0x73f9f0) && (_0x3c1046[_0x3b4e69(_0x57c898._0x4b2e9b)] === _0x73f9f0 || _0x73f9f0[_0x3b4e69(0x101)](_0x3c1046[_0x3b4e69(_0x57c898._0x51ef82)]));
|
|
1095
1081
|
} catch {
|
|
1096
1082
|
return ![];
|
|
1097
1083
|
}
|
|
1098
1084
|
}
|
|
1099
|
-
function
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1085
|
+
function _0x163d38(_0x317bf3) {
|
|
1086
|
+
const _0x20894e = _0x405dcc;
|
|
1087
|
+
return _0x317bf3[_0x20894e(_0x4c71b3._0xf57b6c)]?.[_0x20894e(_0x4c71b3._0x45b5f7)] ?? _0x317bf3[_0x20894e(_0x4c71b3._0xf14484)]?.['id'] ?? _0x317bf3[_0x20894e(0x1dc)] ?? '';
|
|
1102
1088
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1089
|
+
function _0x5e3c84(_0x2d80d1) {
|
|
1090
|
+
const _0x19abfe = _0x405dcc;
|
|
1091
|
+
return _0x2d80d1[_0x19abfe(_0x34bd91._0x1f9ead)]?.['name'] ?? _0x163d38(_0x2d80d1);
|
|
1106
1092
|
}
|
|
1107
|
-
async function
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
const
|
|
1114
|
-
'headers':
|
|
1115
|
-
'method':
|
|
1116
|
-
}),
|
|
1117
|
-
'attachments': (
|
|
1118
|
-
'filename':
|
|
1119
|
-
'id':
|
|
1093
|
+
async function _0x23e564(_0x575ec0) {
|
|
1094
|
+
const _0x1c4913 = _0x405dcc, _0x2068ab = Math[_0x1c4913(0x252)](_0x575ec0['limit'] ?? 0x32, 0x64), _0xdf2a2b = await _0x1e92cf(), _0x30dcf7 = new URLSearchParams();
|
|
1095
|
+
_0x30dcf7['set'](_0x1c4913(0x1a0), String(_0x2068ab));
|
|
1096
|
+
_0x575ec0[_0x1c4913(0x19e)] ? (_0x30dcf7[_0x1c4913(_0x54d3dd._0x1dbee7)](_0x1c4913(_0x54d3dd._0x54bea5), _0x575ec0[_0x1c4913(0x19e)]), _0x30dcf7[_0x1c4913(_0x54d3dd._0x40f490)](_0x1c4913(0x17d), _0x575ec0[_0x1c4913(_0x54d3dd._0x487c5d)])) : _0x30dcf7['set'](_0x1c4913(0x17d), _0x575ec0['channelId']);
|
|
1097
|
+
_0x575ec0[_0x1c4913(_0x54d3dd._0x3a94b3)] && _0x30dcf7[_0x1c4913(_0x54d3dd._0x40f490)](_0x1c4913(0xe1), String(_0x575ec0[_0x1c4913(_0x54d3dd._0x3a94b3)]));
|
|
1098
|
+
_0x575ec0[_0x1c4913(0x248)] !== void 0x0 && _0x30dcf7[_0x1c4913(0x13b)](_0x1c4913(_0x54d3dd._0x22296d), String(_0x575ec0[_0x1c4913(0x248)]));
|
|
1099
|
+
const _0x533af8 = await _0x1ea43(_0x1c4913(_0x54d3dd._0x38964b) + _0x22da77[_0x1c4913(0x17c)] + '/history?' + _0x30dcf7[_0x1c4913(0x119)](), {
|
|
1100
|
+
'headers': _0x8e7adf,
|
|
1101
|
+
'method': _0x1c4913(0x204)
|
|
1102
|
+
}), _0xa3845f = (_0x533af8['data'] ?? [])[_0x1c4913(_0x54d3dd._0x313cf1)](_0x430f9d => ({
|
|
1103
|
+
'attachments': (_0x430f9d['attachments'] ?? [])[_0x1c4913(0x241)](_0x3e5aec => ({
|
|
1104
|
+
'filename': _0x3e5aec[_0x1c4913(0x237)] ?? _0x3e5aec['id'],
|
|
1105
|
+
'id': _0x3e5aec['id']
|
|
1120
1106
|
})),
|
|
1121
|
-
'content':
|
|
1122
|
-
'createdAt':
|
|
1123
|
-
...
|
|
1124
|
-
'messageId':
|
|
1125
|
-
'senderName':
|
|
1126
|
-
'senderType':
|
|
1127
|
-
'seq':
|
|
1107
|
+
'content': _0x430f9d['bodyMarkdown'] ?? '',
|
|
1108
|
+
'createdAt': _0x430f9d['createdAt'],
|
|
1109
|
+
..._0x430f9d[_0x1c4913(0xfb)] && _0x430f9d['kind'] !== _0x1c4913(0x18c) ? { 'kind': _0x430f9d['kind'] } : {},
|
|
1110
|
+
'messageId': _0x430f9d['id'],
|
|
1111
|
+
'senderName': _0x1d6384(_0x430f9d['senderParticipantId'], _0xdf2a2b),
|
|
1112
|
+
'senderType': _0x1a336a(_0x430f9d['senderParticipantId'], _0xdf2a2b),
|
|
1113
|
+
'seq': _0x430f9d[_0x1c4913(0xed)] ?? 0x0
|
|
1128
1114
|
}));
|
|
1129
1115
|
return {
|
|
1130
|
-
'channel':
|
|
1131
|
-
'hasMore':
|
|
1132
|
-
'messages':
|
|
1133
|
-
'nextCursor':
|
|
1116
|
+
'channel': _0x575ec0['channelTarget'],
|
|
1117
|
+
'hasMore': _0x533af8[_0x1c4913(0x153)]?.[_0x1c4913(0x1d0)] ?? ![],
|
|
1118
|
+
'messages': _0xa3845f,
|
|
1119
|
+
'nextCursor': _0x533af8[_0x1c4913(0x153)]?.['cursor']
|
|
1134
1120
|
};
|
|
1135
1121
|
}
|
|
1136
1122
|
return {
|
|
1137
|
-
async 'sendMessage'(
|
|
1138
|
-
const
|
|
1139
|
-
'body': JSON[
|
|
1140
|
-
'attachment_ids':
|
|
1141
|
-
'bodyMarkdown':
|
|
1142
|
-
'channelId':
|
|
1143
|
-
...
|
|
1144
|
-
'threadId':
|
|
1145
|
-
...
|
|
1123
|
+
async 'sendMessage'(_0x5c403a) {
|
|
1124
|
+
const _0x2a6e26 = _0x405dcc, _0x59a830 = await _0x4272c9(_0x5c403a[_0x2a6e26(0x1eb)]), _0x1b1323 = _0x5c403a[_0x2a6e26(0xfa)][_0x2a6e26(0x17a)]('@') ? extractMentionedParticipantIds(_0x5c403a['content'], await _0x1e92cf()) : [], _0x3a2391 = await _0x1ea43(_0x2a6e26(0xe3) + _0x22da77['agentId'] + _0x2a6e26(0x1cf), {
|
|
1125
|
+
'body': JSON[_0x2a6e26(0x246)]({
|
|
1126
|
+
'attachment_ids': _0x5c403a[_0x2a6e26(_0x4a3eb5._0x2a59c3)],
|
|
1127
|
+
'bodyMarkdown': _0x5c403a[_0x2a6e26(_0x4a3eb5._0x9d8f0d)],
|
|
1128
|
+
'channelId': _0x59a830[_0x2a6e26(0x17d)],
|
|
1129
|
+
..._0x1b1323[_0x2a6e26(0x14e)] > 0x0 ? { 'mentionedParticipantIds': _0x1b1323 } : {},
|
|
1130
|
+
'threadId': _0x59a830[_0x2a6e26(0x19e)],
|
|
1131
|
+
..._0x5c403a[_0x2a6e26(_0x4a3eb5._0x28b368)] ? { 'visibility': _0x5c403a[_0x2a6e26(0x16a)] } : {}
|
|
1146
1132
|
}),
|
|
1147
|
-
'headers':
|
|
1148
|
-
'method':
|
|
1133
|
+
'headers': _0x8e7adf,
|
|
1134
|
+
'method': _0x2a6e26(0x1f0)
|
|
1149
1135
|
});
|
|
1150
|
-
return { 'messageId':
|
|
1136
|
+
return { 'messageId': _0x3a2391[_0x2a6e26(_0x4a3eb5._0x3fab6d)]?.['id'] ?? '' };
|
|
1151
1137
|
},
|
|
1152
1138
|
async 'listSchedules'() {
|
|
1153
|
-
const
|
|
1154
|
-
'headers':
|
|
1155
|
-
'method':
|
|
1139
|
+
const _0x38cdc6 = _0x405dcc, _0x14ceaf = await _0x1ea43('/api/internal/schedules', {
|
|
1140
|
+
'headers': _0x8e7adf,
|
|
1141
|
+
'method': _0x38cdc6(_0x35376a._0x23122d)
|
|
1156
1142
|
});
|
|
1157
|
-
return
|
|
1143
|
+
return _0x14ceaf['data'] ?? [];
|
|
1158
1144
|
},
|
|
1159
|
-
async 'claimScheduleRun'(
|
|
1160
|
-
const
|
|
1161
|
-
'body': JSON[
|
|
1162
|
-
'headers':
|
|
1163
|
-
'method':
|
|
1145
|
+
async 'claimScheduleRun'(_0x4c8263) {
|
|
1146
|
+
const _0x1ad544 = _0x405dcc, _0x5372b3 = await _0x1ea43(_0x1ad544(0x1ec), {
|
|
1147
|
+
'body': JSON[_0x1ad544(_0x453fdc._0x335bbd)](_0x4c8263),
|
|
1148
|
+
'headers': _0x8e7adf,
|
|
1149
|
+
'method': _0x1ad544(_0x453fdc._0x358f32)
|
|
1164
1150
|
});
|
|
1165
|
-
return
|
|
1151
|
+
return _0x5372b3['data'] ?? {
|
|
1166
1152
|
'granted': ![],
|
|
1167
1153
|
'runId': null,
|
|
1168
1154
|
'schedule': null,
|
|
1169
|
-
'scheduledFor':
|
|
1155
|
+
'scheduledFor': _0x4c8263[_0x1ad544(0x116)]
|
|
1170
1156
|
};
|
|
1171
1157
|
},
|
|
1172
|
-
async 'startScheduleRun'(
|
|
1173
|
-
const
|
|
1174
|
-
'body': JSON[
|
|
1175
|
-
'headers':
|
|
1176
|
-
'method':
|
|
1158
|
+
async 'startScheduleRun'(_0x28df7d) {
|
|
1159
|
+
const _0x20db30 = _0x405dcc, _0x4425e1 = await _0x1ea43(_0x20db30(0x24c) + encodeURIComponent(_0x28df7d['runId']) + _0x20db30(_0x488671._0x3e0deb), {
|
|
1160
|
+
'body': JSON['stringify']({}),
|
|
1161
|
+
'headers': _0x8e7adf,
|
|
1162
|
+
'method': _0x20db30(_0x488671._0x1436d1)
|
|
1177
1163
|
});
|
|
1178
|
-
return
|
|
1164
|
+
return _0x4425e1[_0x20db30(0x194)] ?? {
|
|
1179
1165
|
'claimedByDaemonId': '',
|
|
1180
|
-
'id':
|
|
1166
|
+
'id': _0x28df7d[_0x20db30(0x239)],
|
|
1181
1167
|
'scheduleId': '',
|
|
1182
|
-
'status':
|
|
1168
|
+
'status': _0x20db30(0x203)
|
|
1183
1169
|
};
|
|
1184
1170
|
},
|
|
1185
|
-
async 'finishScheduleRun'(
|
|
1186
|
-
const
|
|
1171
|
+
async 'finishScheduleRun'(_0x1a22f1) {
|
|
1172
|
+
const _0x18a51e = _0x405dcc, _0x379b8c = await _0x1ea43('/api/internal/schedules/' + encodeURIComponent(_0x1a22f1['runId']) + _0x18a51e(_0x494c4a._0x482e09), {
|
|
1187
1173
|
'body': JSON['stringify']({
|
|
1188
|
-
'error':
|
|
1189
|
-
'resultJson':
|
|
1190
|
-
'status':
|
|
1174
|
+
'error': _0x1a22f1['error'],
|
|
1175
|
+
'resultJson': _0x1a22f1[_0x18a51e(0x1b7)],
|
|
1176
|
+
'status': _0x1a22f1[_0x18a51e(0x1b3)]
|
|
1191
1177
|
}),
|
|
1192
|
-
'headers':
|
|
1193
|
-
'method':
|
|
1178
|
+
'headers': _0x8e7adf,
|
|
1179
|
+
'method': _0x18a51e(0x1f0)
|
|
1194
1180
|
});
|
|
1195
|
-
return
|
|
1181
|
+
return _0x379b8c['data'] ?? {
|
|
1196
1182
|
'nextRunAt': null,
|
|
1197
1183
|
'run': {
|
|
1198
1184
|
'claimedByDaemonId': '',
|
|
1199
|
-
'id':
|
|
1185
|
+
'id': _0x1a22f1[_0x18a51e(0x239)],
|
|
1200
1186
|
'scheduleId': '',
|
|
1201
|
-
'status':
|
|
1187
|
+
'status': _0x1a22f1[_0x18a51e(0x1b3)]
|
|
1202
1188
|
}
|
|
1203
1189
|
};
|
|
1204
1190
|
},
|
|
1205
|
-
async 'listTasks'(
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1208
|
-
'headers':
|
|
1209
|
-
'method':
|
|
1191
|
+
async 'listTasks'(_0x2c6dc8) {
|
|
1192
|
+
const _0x5bcaa0 = _0x405dcc, _0x3df847 = new URLSearchParams();
|
|
1193
|
+
return _0x3df847[_0x5bcaa0(_0x49f58d._0x82cb80)](_0x5bcaa0(_0x49f58d._0x4d826f), _0x2c6dc8[_0x5bcaa0(_0x49f58d._0x4d826f)]), _0x2c6dc8[_0x5bcaa0(0x1b3)] && _0x3df847[_0x5bcaa0(0x13b)](_0x5bcaa0(0x1b3), _0x2c6dc8[_0x5bcaa0(0x1b3)]), _0x6634a8(_0x5bcaa0(_0x49f58d._0x5c97d9) + _0x22da77[_0x5bcaa0(_0x49f58d._0x3324eb)] + _0x5bcaa0(_0x49f58d._0x3ec6f8) + _0x3df847[_0x5bcaa0(0x119)](), {
|
|
1194
|
+
'headers': _0x8e7adf,
|
|
1195
|
+
'method': _0x5bcaa0(0x204)
|
|
1210
1196
|
});
|
|
1211
1197
|
},
|
|
1212
|
-
async 'createTasks'(
|
|
1213
|
-
const
|
|
1214
|
-
return
|
|
1215
|
-
'body': JSON[
|
|
1216
|
-
...
|
|
1217
|
-
'idempotency_key':
|
|
1198
|
+
async 'createTasks'(_0x25d081) {
|
|
1199
|
+
const _0x26f3c1 = _0x405dcc;
|
|
1200
|
+
return _0x6634a8(_0x26f3c1(_0x3e9ffe._0x1b2ece) + _0x22da77[_0x26f3c1(0x17c)] + _0x26f3c1(0xd1), {
|
|
1201
|
+
'body': JSON[_0x26f3c1(_0x3e9ffe._0x16152b)]({
|
|
1202
|
+
..._0x25d081,
|
|
1203
|
+
'idempotency_key': _0x22349d('create_tasks', _0x25d081)
|
|
1218
1204
|
}),
|
|
1219
|
-
'headers':
|
|
1220
|
-
'method':
|
|
1205
|
+
'headers': _0x8e7adf,
|
|
1206
|
+
'method': _0x26f3c1(0x1f0)
|
|
1221
1207
|
});
|
|
1222
1208
|
},
|
|
1223
|
-
async 'claimTasks'(
|
|
1224
|
-
const
|
|
1225
|
-
return
|
|
1226
|
-
'body': JSON[
|
|
1227
|
-
...
|
|
1228
|
-
'idempotency_key':
|
|
1209
|
+
async 'claimTasks'(_0x55a1a5) {
|
|
1210
|
+
const _0x4ba9ab = _0x405dcc;
|
|
1211
|
+
return _0x6634a8(_0x4ba9ab(_0x19fd52._0x18317a) + _0x22da77[_0x4ba9ab(0x17c)] + _0x4ba9ab(0x144), {
|
|
1212
|
+
'body': JSON['stringify']({
|
|
1213
|
+
..._0x55a1a5,
|
|
1214
|
+
'idempotency_key': _0x22349d(_0x4ba9ab(0x167), _0x55a1a5)
|
|
1229
1215
|
}),
|
|
1230
|
-
'headers':
|
|
1231
|
-
'method':
|
|
1216
|
+
'headers': _0x8e7adf,
|
|
1217
|
+
'method': _0x4ba9ab(0x1f0)
|
|
1232
1218
|
});
|
|
1233
1219
|
},
|
|
1234
|
-
async 'unclaimTask'(
|
|
1235
|
-
const
|
|
1236
|
-
return
|
|
1237
|
-
'body': JSON[
|
|
1238
|
-
...
|
|
1239
|
-
'idempotency_key':
|
|
1220
|
+
async 'unclaimTask'(_0x592848) {
|
|
1221
|
+
const _0x1c0ece = _0x405dcc;
|
|
1222
|
+
return _0x6634a8('/internal/agent/' + _0x22da77[_0x1c0ece(0x17c)] + '/tasks/unclaim', {
|
|
1223
|
+
'body': JSON[_0x1c0ece(0x246)]({
|
|
1224
|
+
..._0x592848,
|
|
1225
|
+
'idempotency_key': _0x22349d(_0x1c0ece(0x152), _0x592848)
|
|
1240
1226
|
}),
|
|
1241
|
-
'headers':
|
|
1242
|
-
'method':
|
|
1227
|
+
'headers': _0x8e7adf,
|
|
1228
|
+
'method': _0x1c0ece(_0x3e5d58._0x291fc2)
|
|
1243
1229
|
});
|
|
1244
1230
|
},
|
|
1245
|
-
async 'updateTaskStatus'(
|
|
1246
|
-
const
|
|
1247
|
-
return
|
|
1248
|
-
'body': JSON[
|
|
1249
|
-
...
|
|
1250
|
-
'idempotency_key':
|
|
1231
|
+
async 'updateTaskStatus'(_0x282caf) {
|
|
1232
|
+
const _0x265417 = _0x405dcc;
|
|
1233
|
+
return _0x6634a8('/internal/agent/' + _0x22da77[_0x265417(_0x2e860b._0x496462)] + _0x265417(0x22d), {
|
|
1234
|
+
'body': JSON['stringify']({
|
|
1235
|
+
..._0x282caf,
|
|
1236
|
+
'idempotency_key': _0x22349d(_0x265417(_0x2e860b._0x1bb94c), _0x282caf)
|
|
1251
1237
|
}),
|
|
1252
|
-
'headers':
|
|
1253
|
-
'method':
|
|
1238
|
+
'headers': _0x8e7adf,
|
|
1239
|
+
'method': _0x265417(0x1f0)
|
|
1254
1240
|
});
|
|
1255
1241
|
},
|
|
1256
|
-
async 'uploadFile'(
|
|
1257
|
-
const
|
|
1258
|
-
if (
|
|
1259
|
-
throw new Error(
|
|
1260
|
-
const
|
|
1261
|
-
'body': JSON[
|
|
1262
|
-
'channel':
|
|
1263
|
-
'contentBase64':
|
|
1264
|
-
'contentType':
|
|
1265
|
-
'originalFilename':
|
|
1242
|
+
async 'uploadFile'(_0x3c947c) {
|
|
1243
|
+
const _0x493ce8 = _0x405dcc, _0x3ab663 = await _0x4272c9(_0x3c947c[_0x493ce8(_0x4967e2._0x29cd00)]);
|
|
1244
|
+
if (_0x3ab663[_0x493ce8(_0x4967e2._0x4713d9)])
|
|
1245
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1246
|
+
const _0x2495e3 = await _0x1ea43('/internal/agent/' + _0x22da77[_0x493ce8(_0x4967e2._0x30d7c1)] + _0x493ce8(_0x4967e2._0x1f836c), {
|
|
1247
|
+
'body': JSON[_0x493ce8(_0x4967e2._0x5cd57f)]({
|
|
1248
|
+
'channel': _0x3ab663[_0x493ce8(0x1eb)],
|
|
1249
|
+
'contentBase64': _0x3c947c[_0x493ce8(_0x4967e2._0x4fc942)],
|
|
1250
|
+
'contentType': _0x3c947c[_0x493ce8(0x155)],
|
|
1251
|
+
'originalFilename': _0x3c947c[_0x493ce8(0x237)]
|
|
1266
1252
|
}),
|
|
1267
|
-
'headers':
|
|
1268
|
-
'method':
|
|
1253
|
+
'headers': _0x8e7adf,
|
|
1254
|
+
'method': _0x493ce8(_0x4967e2._0x4c11ca)
|
|
1269
1255
|
});
|
|
1270
1256
|
return {
|
|
1271
|
-
'attachmentId':
|
|
1272
|
-
'filename':
|
|
1273
|
-
'sizeBytes':
|
|
1257
|
+
'attachmentId': _0x2495e3[_0x493ce8(_0x4967e2._0x5bb9fd)]?.['id'] ?? '',
|
|
1258
|
+
'filename': _0x2495e3[_0x493ce8(0x194)]?.[_0x493ce8(0x1aa)] ?? _0x3c947c[_0x493ce8(0x237)],
|
|
1259
|
+
'sizeBytes': _0x2495e3['data']?.['sizeBytes'] ?? 0x0
|
|
1274
1260
|
};
|
|
1275
1261
|
},
|
|
1276
|
-
async 'downloadAttachment'(
|
|
1277
|
-
const
|
|
1278
|
-
'headers':
|
|
1279
|
-
'method':
|
|
1280
|
-
}),
|
|
1262
|
+
async 'downloadAttachment'(_0x429b04) {
|
|
1263
|
+
const _0x312a2e = _0x405dcc, _0x50d00c = await _0x1ea43('/api/attachments/' + _0x429b04, {
|
|
1264
|
+
'headers': _0x8e7adf,
|
|
1265
|
+
'method': _0x312a2e(_0x1d8447._0x15049d)
|
|
1266
|
+
}), _0x42cc34 = new AbortController(), _0x16b490 = setTimeout(() => _0x42cc34[_0x312a2e(0x12d)](), _0x5cd833);
|
|
1281
1267
|
try {
|
|
1282
|
-
const
|
|
1283
|
-
'headers':
|
|
1284
|
-
'method':
|
|
1285
|
-
'signal':
|
|
1268
|
+
const _0x218613 = await _0x6fd199(_0x2ce03a + _0x312a2e(0x219) + _0x429b04 + _0x312a2e(0x1e0), {
|
|
1269
|
+
'headers': _0x8e7adf,
|
|
1270
|
+
'method': _0x312a2e(0x204),
|
|
1271
|
+
'signal': _0x42cc34[_0x312a2e(_0x1d8447._0x1acfa6)]
|
|
1286
1272
|
});
|
|
1287
|
-
if (!
|
|
1288
|
-
throw new Error(
|
|
1273
|
+
if (!_0x218613['ok'])
|
|
1274
|
+
throw new Error(_0x312a2e(0x1e6) + _0x218613[_0x312a2e(0x1b3)]);
|
|
1289
1275
|
return {
|
|
1290
|
-
'contentType':
|
|
1291
|
-
'data': Buffer[
|
|
1292
|
-
'originalFilename':
|
|
1276
|
+
'contentType': _0x50d00c[_0x312a2e(0x194)]?.[_0x312a2e(_0x1d8447._0x24a279)] ?? _0x218613[_0x312a2e(_0x1d8447._0x482f7e)][_0x312a2e(_0x1d8447._0xd1b77f)](_0x312a2e(_0x1d8447._0x191628)) ?? _0x312a2e(0x1f8),
|
|
1277
|
+
'data': Buffer[_0x312a2e(_0x1d8447._0x77befc)](await _0x218613[_0x312a2e(_0x1d8447._0x182958)]()),
|
|
1278
|
+
'originalFilename': _0x50d00c[_0x312a2e(_0x1d8447._0x264b1d)]?.[_0x312a2e(_0x1d8447._0x6de49b)]
|
|
1293
1279
|
};
|
|
1294
1280
|
} finally {
|
|
1295
|
-
clearTimeout(
|
|
1281
|
+
clearTimeout(_0x16b490);
|
|
1296
1282
|
}
|
|
1297
1283
|
},
|
|
1298
1284
|
async 'listServer'() {
|
|
1299
|
-
return
|
|
1285
|
+
return _0x1e92cf({ 'forceRefresh': !![] });
|
|
1300
1286
|
},
|
|
1301
1287
|
async 'getLatestEventSeq'() {
|
|
1302
|
-
const
|
|
1303
|
-
|
|
1304
|
-
const
|
|
1305
|
-
'headers':
|
|
1306
|
-
'method':
|
|
1307
|
-
}),
|
|
1308
|
-
return typeof
|
|
1288
|
+
const _0x136b63 = _0x405dcc, _0x5c0943 = new URLSearchParams();
|
|
1289
|
+
_0x5c0943['set'](_0x136b63(0x137), '0'), _0x5c0943[_0x136b63(0x13b)]('limit', '1');
|
|
1290
|
+
const _0x1a9483 = await _0x1ea43('/internal/agent/' + _0x22da77[_0x136b63(_0x232ef2._0x474d32)] + _0x136b63(0x23d) + _0x5c0943['toString'](), {
|
|
1291
|
+
'headers': _0x8e7adf,
|
|
1292
|
+
'method': _0x136b63(0x204)
|
|
1293
|
+
}), _0x3ef4a7 = _0x1a9483[_0x136b63(0x153)]?.['latestSeq'];
|
|
1294
|
+
return typeof _0x3ef4a7 === 'number' && _0x3ef4a7 > 0x0 ? _0x3ef4a7 : 0x0;
|
|
1309
1295
|
},
|
|
1310
|
-
async 'readHistory'(
|
|
1311
|
-
const
|
|
1312
|
-
return
|
|
1313
|
-
'after':
|
|
1314
|
-
'before':
|
|
1315
|
-
'channelId':
|
|
1316
|
-
'channelTarget':
|
|
1317
|
-
'limit':
|
|
1318
|
-
'threadId':
|
|
1296
|
+
async 'readHistory'(_0x3e9e3a) {
|
|
1297
|
+
const _0xcc727e = _0x405dcc, _0x1f8d11 = await _0x4272c9(_0x3e9e3a['channel']);
|
|
1298
|
+
return _0x23e564({
|
|
1299
|
+
'after': _0x3e9e3a[_0xcc727e(_0x1580fe._0x457f3d)],
|
|
1300
|
+
'before': _0x3e9e3a['before'],
|
|
1301
|
+
'channelId': _0x1f8d11[_0xcc727e(0x17d)],
|
|
1302
|
+
'channelTarget': _0x1f8d11['target'],
|
|
1303
|
+
'limit': _0x3e9e3a[_0xcc727e(0x1a0)],
|
|
1304
|
+
'threadId': _0x1f8d11['threadId']
|
|
1319
1305
|
});
|
|
1320
1306
|
},
|
|
1321
|
-
'resolveTarget':
|
|
1307
|
+
'resolveTarget': _0x4272c9,
|
|
1322
1308
|
async 'checkMessages'() {
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
},
|
|
1327
|
-
|
|
1328
|
-
const
|
|
1329
|
-
'headers':
|
|
1330
|
-
'method':
|
|
1331
|
-
}),
|
|
1332
|
-
const
|
|
1333
|
-
if (
|
|
1309
|
+
const _0x19d985 = {
|
|
1310
|
+
_0x2161d3: 0x107,
|
|
1311
|
+
_0x618d3b: 0x17d
|
|
1312
|
+
}, _0x284221 = _0x405dcc, _0x3ffc7b = new URLSearchParams();
|
|
1313
|
+
_0x3ffc7b[_0x284221(_0x1a2549._0x4d9789)]('afterSeq', String(_0x47f847));
|
|
1314
|
+
const _0x1bd82a = _0x3ffc7b[_0x284221(_0x1a2549._0x4eebe5)](), _0x1ada48 = await _0x1ea43(_0x284221(0xe3) + _0x22da77['agentId'] + _0x284221(0x1b6) + (_0x1bd82a ? '?' + _0x1bd82a : ''), {
|
|
1315
|
+
'headers': _0x8e7adf,
|
|
1316
|
+
'method': _0x284221(0x204)
|
|
1317
|
+
}), _0x4153ad = _0x1ada48[_0x284221(_0x1a2549._0x1f03ce)] ?? [], _0x17f078 = _0x1ada48[_0x284221(0x153)]?.[_0x284221(0xe1)], _0x5a9435 = _0x43077e ? _0x4153ad['filter'](_0x2b1503 => {
|
|
1318
|
+
const _0x17baba = _0x284221;
|
|
1319
|
+
if (_0x2b1503[_0x17baba(_0x12c760._0x271fe3)] !== _0x17baba(0x25b))
|
|
1334
1320
|
return ![];
|
|
1335
|
-
return
|
|
1336
|
-
}) :
|
|
1337
|
-
let
|
|
1338
|
-
|
|
1339
|
-
|
|
1321
|
+
return _0x824966(_0x43077e, asRecord(_0x2b1503['payloadJson']));
|
|
1322
|
+
}) : _0x4153ad, _0x1347d2 = _0x17f078 !== void 0x0 ? _0x43077e ? Math[_0x284221(0x24f)](_0x47f847, _0x5a9435[_0x284221(_0x1a2549._0xc9df62)] > 0x0 ? _0x5a9435[_0x5a9435[_0x284221(_0x1a2549._0xc9df62)] - 0x1][_0x284221(_0x1a2549._0x3d6a58)] : _0x47f847) : Math[_0x284221(0x24f)](_0x47f847, _0x17f078) : _0x5a9435[_0x284221(_0x1a2549._0x398127)] > 0x0 ? Math[_0x284221(0x24f)](_0x47f847, _0x5a9435[_0x5a9435[_0x284221(0x14e)] - 0x1][_0x284221(_0x1a2549._0x22285a)]) : _0x47f847, _0xa12327 = (_0x43077e ? _0x5a9435 : _0x4153ad)['filter'](_0x3c1e5a => _0x3c1e5a[_0x284221(0xfc)] === _0x284221(0x25b)), _0x328c74 = _0x43077e === void 0x0 && _0x3ce451;
|
|
1323
|
+
let _0x3ac101 = await _0x1e92cf(), _0x452437 = new Map(_0x3ac101['channels']['map'](_0xbe37fb => [
|
|
1324
|
+
_0xbe37fb['id'],
|
|
1325
|
+
_0xbe37fb
|
|
1340
1326
|
]));
|
|
1341
|
-
const
|
|
1342
|
-
const
|
|
1343
|
-
return Boolean(
|
|
1327
|
+
const _0x4782e7 = _0xa12327['some'](_0x13fe52 => {
|
|
1328
|
+
const _0x34ab70 = _0x284221, _0x13e5c3 = asRecord(_0x13fe52[_0x34ab70(0x1e4)]), _0x4bc625 = typeof _0x13e5c3?.[_0x34ab70(0x17d)] === _0x34ab70(_0x19d985._0x2161d3) ? _0x13e5c3[_0x34ab70(_0x19d985._0x618d3b)] : '';
|
|
1329
|
+
return Boolean(_0x4bc625) && !_0x452437['has'](_0x4bc625);
|
|
1344
1330
|
});
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1331
|
+
_0x4782e7 && (_0x3ac101 = await _0x1e92cf({ 'forceRefresh': !![] }), _0x452437 = new Map(_0x3ac101[_0x284221(0x234)][_0x284221(_0x1a2549._0x1837b0)](_0x50272e => [
|
|
1332
|
+
_0x50272e['id'],
|
|
1333
|
+
_0x50272e
|
|
1348
1334
|
])));
|
|
1349
|
-
const
|
|
1350
|
-
for (const
|
|
1351
|
-
const
|
|
1352
|
-
if (!
|
|
1335
|
+
const _0x2fb572 = new Map();
|
|
1336
|
+
for (const _0x262bf3 of _0xa12327) {
|
|
1337
|
+
const _0x21cae3 = asRecord(_0x262bf3['payloadJson']), _0x16429a = typeof _0x21cae3['channelId'] === _0x284221(0x107) ? _0x21cae3['channelId'] : '';
|
|
1338
|
+
if (!_0x16429a)
|
|
1353
1339
|
continue;
|
|
1354
|
-
const
|
|
1340
|
+
const _0x913499 = typeof _0x21cae3[_0x284221(_0x1a2549._0x3021a4)] === _0x284221(0x107) ? _0x21cae3[_0x284221(0x19e)] : void 0x0, _0xd4428b = typeof _0x21cae3['rootMessageId'] === _0x284221(_0x1a2549._0x7ce193) ? _0x21cae3[_0x284221(_0x1a2549._0x16bed0)] : void 0x0, _0x1fe4a3 = typeof _0x21cae3[_0x284221(_0x1a2549._0x3bfad3)] === _0x284221(_0x1a2549._0x39042c) && Number[_0x284221(0x25f)](_0x21cae3['threadNumber']) ? _0x21cae3[_0x284221(0x110)] : void 0x0, _0x57ee33 = Boolean(_0x913499 && (!_0xd4428b || _0x262bf3[_0x284221(_0x1a2549._0x5b9177)] !== _0xd4428b)), _0x54fa21 = _0x57ee33 ? _0x16429a + ':' + _0x913499 : _0x16429a, _0x27b12d = _0x2fb572[_0x284221(0x209)](_0x54fa21) ?? {
|
|
1355
1341
|
'aggregateIds': [],
|
|
1356
|
-
'channelId':
|
|
1342
|
+
'channelId': _0x16429a,
|
|
1357
1343
|
'entries': new Map(),
|
|
1358
|
-
'isThreadReply':
|
|
1359
|
-
'rootMessageId':
|
|
1360
|
-
'threadNumber':
|
|
1361
|
-
'threadId':
|
|
1344
|
+
'isThreadReply': _0x57ee33,
|
|
1345
|
+
'rootMessageId': _0xd4428b,
|
|
1346
|
+
'threadNumber': _0x1fe4a3,
|
|
1347
|
+
'threadId': _0x57ee33 ? _0x913499 : void 0x0
|
|
1362
1348
|
};
|
|
1363
|
-
|
|
1364
|
-
'payloadJson':
|
|
1365
|
-
'seq':
|
|
1366
|
-
}),
|
|
1349
|
+
_0x27b12d[_0x284221(_0x1a2549._0x3bfad3)] == null && _0x1fe4a3 != null && (_0x27b12d[_0x284221(0x110)] = _0x1fe4a3), !_0x27b12d['rootMessageId'] && _0xd4428b && (_0x27b12d[_0x284221(_0x1a2549._0x16bed0)] = _0xd4428b), _0x27b12d[_0x284221(0x207)]['push'](_0x262bf3['aggregateId']), _0x27b12d[_0x284221(_0x1a2549._0x481b29)]['set'](_0x262bf3[_0x284221(_0x1a2549._0x5b9177)], {
|
|
1350
|
+
'payloadJson': _0x262bf3['payloadJson'],
|
|
1351
|
+
'seq': _0x262bf3[_0x284221(0x210)]
|
|
1352
|
+
}), _0x2fb572[_0x284221(0x13b)](_0x54fa21, _0x27b12d);
|
|
1367
1353
|
}
|
|
1368
|
-
const
|
|
1369
|
-
for (const
|
|
1354
|
+
const _0x16b6a0 = [];
|
|
1355
|
+
for (const _0x5f58fc of _0x2fb572[_0x284221(_0x1a2549._0x3ca445)]()) {
|
|
1370
1356
|
const {
|
|
1371
|
-
channelId:
|
|
1372
|
-
threadId:
|
|
1373
|
-
rootMessageId:
|
|
1374
|
-
threadNumber:
|
|
1375
|
-
aggregateIds:
|
|
1376
|
-
isThreadReply:
|
|
1377
|
-
entries:
|
|
1378
|
-
} =
|
|
1379
|
-
'channelTarget':
|
|
1380
|
-
'rootMessageId':
|
|
1381
|
-
'threadId':
|
|
1382
|
-
'threadNumber':
|
|
1383
|
-
},
|
|
1384
|
-
'channelId':
|
|
1385
|
-
'channelTarget':
|
|
1386
|
-
'limit': Math[
|
|
1387
|
-
'threadId':
|
|
1388
|
-
}),
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
])),
|
|
1392
|
-
for (const
|
|
1393
|
-
if (!
|
|
1357
|
+
channelId: _0x274e4c,
|
|
1358
|
+
threadId: _0x2c72a9,
|
|
1359
|
+
rootMessageId: _0x464e5a,
|
|
1360
|
+
threadNumber: _0xb96587,
|
|
1361
|
+
aggregateIds: _0x23be47,
|
|
1362
|
+
isThreadReply: _0x4e89cd,
|
|
1363
|
+
entries: _0x53ad03
|
|
1364
|
+
} = _0x5f58fc, _0x765a48 = _0x452437[_0x284221(0x209)](_0x274e4c), _0x30c0f3 = _0x765a48?.[_0x284221(0x1df)] ?? _0x274e4c, _0x2bee01 = _0x765a48?.[_0x284221(0xfb)] === 'dm' ? 'dm:' + _0x30c0f3 : '#' + _0x30c0f3, _0x3c1b50 = {
|
|
1365
|
+
'channelTarget': _0x2bee01,
|
|
1366
|
+
'rootMessageId': _0x464e5a,
|
|
1367
|
+
'threadId': _0x2c72a9,
|
|
1368
|
+
'threadNumber': _0xb96587
|
|
1369
|
+
}, _0x3cf6ef = await _0x23e564({
|
|
1370
|
+
'channelId': _0x274e4c,
|
|
1371
|
+
'channelTarget': _0x2bee01,
|
|
1372
|
+
'limit': Math[_0x284221(0x24f)](_0x23be47[_0x284221(_0x1a2549._0xc2696b)], 0x32),
|
|
1373
|
+
'threadId': _0x2c72a9
|
|
1374
|
+
}), _0x5b2f31 = new Map(_0x3cf6ef[_0x284221(0x258)][_0x284221(0x241)](_0x322b02 => [
|
|
1375
|
+
_0x322b02[_0x284221(0x10b)],
|
|
1376
|
+
_0x322b02
|
|
1377
|
+
])), _0x523d17 = _0x2c72a9 ? _0x239605(_0x3c1b50) : _0x2bee01, _0x369bb0 = _0x43077e ? _0x4e89cd && _0x8d570(_0x43077e, _0x3c1b50) : !![], _0x1c8d62 = _0x4e89cd ? _0x369bb0 && _0x43077e ? _0x43077e : _0x523d17 : _0x2bee01;
|
|
1378
|
+
for (const _0x478856 of _0x23be47) {
|
|
1379
|
+
if (!_0x369bb0)
|
|
1394
1380
|
continue;
|
|
1395
|
-
const
|
|
1396
|
-
if (
|
|
1381
|
+
const _0xe30246 = _0x53ad03['get'](_0x478856), _0x2b3664 = _0xe30246 ? asRecord(_0xe30246[_0x284221(0x1e4)]) : void 0x0, _0xe49c0e = _0x2b3664?.['taskDeliveryMode'] === 'targeted';
|
|
1382
|
+
if (_0x328c74 && _0xe49c0e)
|
|
1397
1383
|
continue;
|
|
1398
|
-
const
|
|
1399
|
-
if (
|
|
1400
|
-
|
|
1401
|
-
'attachments':
|
|
1402
|
-
'content':
|
|
1403
|
-
'createdAt':
|
|
1404
|
-
...
|
|
1405
|
-
'messageId':
|
|
1406
|
-
'senderName':
|
|
1407
|
-
'senderType':
|
|
1408
|
-
'target':
|
|
1409
|
-
...
|
|
1384
|
+
const _0xee5108 = _0x5b2f31['get'](_0x478856);
|
|
1385
|
+
if (_0xee5108) {
|
|
1386
|
+
_0x16b6a0['push']({
|
|
1387
|
+
'attachments': _0xee5108[_0x284221(_0x1a2549._0x1b5992)],
|
|
1388
|
+
'content': _0xee5108[_0x284221(0xfa)],
|
|
1389
|
+
'createdAt': _0xee5108[_0x284221(_0x1a2549._0x5d806e)],
|
|
1390
|
+
..._0xee5108[_0x284221(_0x1a2549._0x16f984)] ? { 'kind': _0xee5108['kind'] } : {},
|
|
1391
|
+
'messageId': _0xee5108[_0x284221(_0x1a2549._0x3ec109)],
|
|
1392
|
+
'senderName': _0xee5108[_0x284221(0x117)],
|
|
1393
|
+
'senderType': _0xee5108['senderType'],
|
|
1394
|
+
'target': _0x1c8d62,
|
|
1395
|
+
..._0xe49c0e ? { 'targetedTask': !![] } : {}
|
|
1410
1396
|
});
|
|
1411
1397
|
continue;
|
|
1412
1398
|
}
|
|
1413
|
-
if (
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1399
|
+
if (_0xe30246) {
|
|
1400
|
+
const _0x14346d = typeof _0x2b3664?.[_0x284221(_0x1a2549._0x34e36e)] === 'string' ? _0x2b3664[_0x284221(_0x1a2549._0x34e36e)] : '', _0x1015b7 = typeof _0x2b3664?.['bodyMarkdown'] === _0x284221(_0x1a2549._0x3b8322) ? _0x2b3664[_0x284221(_0x1a2549._0x2a32b0)] : '', _0x220f16 = typeof _0x2b3664?.[_0x284221(0xfb)] === _0x284221(0x107) && _0x2b3664[_0x284221(_0x1a2549._0x1112b1)] !== _0x284221(_0x1a2549._0x2318cd) ? _0x2b3664['kind'] : void 0x0;
|
|
1401
|
+
_0x14346d && _0x1015b7 && _0x16b6a0['push']({
|
|
1416
1402
|
'attachments': [],
|
|
1417
|
-
'content':
|
|
1418
|
-
'createdAt': new Date()[
|
|
1419
|
-
...
|
|
1420
|
-
'messageId':
|
|
1421
|
-
'senderName':
|
|
1422
|
-
'senderType':
|
|
1423
|
-
'target':
|
|
1424
|
-
...
|
|
1403
|
+
'content': _0x1015b7,
|
|
1404
|
+
'createdAt': new Date()[_0x284221(0x102)](),
|
|
1405
|
+
..._0x220f16 ? { 'kind': _0x220f16 } : {},
|
|
1406
|
+
'messageId': _0x478856,
|
|
1407
|
+
'senderName': _0x1d6384(_0x14346d, _0x3ac101),
|
|
1408
|
+
'senderType': _0x1a336a(_0x14346d, _0x3ac101),
|
|
1409
|
+
'target': _0x1c8d62,
|
|
1410
|
+
..._0xe49c0e ? { 'targetedTask': !![] } : {}
|
|
1425
1411
|
});
|
|
1426
1412
|
}
|
|
1427
1413
|
}
|
|
1428
1414
|
}
|
|
1429
|
-
if (
|
|
1430
|
-
if (
|
|
1431
|
-
await
|
|
1415
|
+
if (_0x1347d2 > 0x0) {
|
|
1416
|
+
if (_0x20a56a)
|
|
1417
|
+
await _0x822bee(_0x1347d2);
|
|
1432
1418
|
else
|
|
1433
|
-
|
|
1419
|
+
_0x6cd872 && await _0x2a383c(_0x1347d2);
|
|
1434
1420
|
}
|
|
1435
|
-
return
|
|
1421
|
+
return _0x1347d2 > _0x47f847 && (_0x47f847 = _0x1347d2), { 'messages': _0x43077e ? _0x16b6a0 : _0x328c74 ? _0x16b6a0[_0x284221(_0x1a2549._0x58eb92)](_0x159e0a => _0x159e0a[_0x284221(0x19b)] !== !![]) : _0x16b6a0 };
|
|
1436
1422
|
}
|
|
1437
1423
|
};
|
|
1438
1424
|
}
|
|
1439
|
-
function toLocalTime(
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1425
|
+
function toLocalTime(_0x2f8128) {
|
|
1426
|
+
const _0x58485c = {
|
|
1427
|
+
_0x4bd8f4: 0x1ce,
|
|
1428
|
+
_0x4c4e85: 0x20a,
|
|
1429
|
+
_0xf93b29: 0x23b,
|
|
1430
|
+
_0x37eb23: 0x212,
|
|
1431
|
+
_0x1c8e42: 0x265
|
|
1432
|
+
}, _0x10df06 = _0x456b7e, _0x364982 = new Date(_0x2f8128);
|
|
1433
|
+
if (Number['isNaN'](_0x364982[_0x10df06(_0x58485c._0x4bd8f4)]()))
|
|
1434
|
+
return _0x2f8128;
|
|
1435
|
+
const _0x460f20 = _0x4d16be => String(_0x4d16be)[_0x10df06(0x10a)](0x2, '0');
|
|
1436
|
+
return _0x364982[_0x10df06(_0x58485c._0x4c4e85)]() + '-' + _0x460f20(_0x364982[_0x10df06(_0x58485c._0xf93b29)]() + 0x1) + '-' + _0x460f20(_0x364982[_0x10df06(0x193)]()) + '\x20' + _0x460f20(_0x364982[_0x10df06(_0x58485c._0x37eb23)]()) + ':' + _0x460f20(_0x364982[_0x10df06(_0x58485c._0x1c8e42)]()) + ':' + _0x460f20(_0x364982[_0x10df06(0x12f)]());
|
|
1449
1437
|
}
|
|
1450
|
-
function formatAttachmentSuffix(
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1438
|
+
function formatAttachmentSuffix(_0xec0047) {
|
|
1439
|
+
const _0x34e306 = {
|
|
1440
|
+
_0x31fecf: 0x14e,
|
|
1441
|
+
_0x548a76: 0x170
|
|
1442
|
+
}, _0x449602 = _0x456b7e;
|
|
1443
|
+
if (!_0xec0047 || _0xec0047[_0x449602(0x14e)] === 0x0)
|
|
1453
1444
|
return '';
|
|
1454
|
-
return '\x20[' +
|
|
1445
|
+
return '\x20[' + _0xec0047[_0x449602(0x14e)] + _0x449602(0xd3) + (_0xec0047[_0x449602(_0x34e306._0x31fecf)] > 0x1 ? 's' : '') + ':\x20' + _0xec0047[_0x449602(0x241)](_0x1441d0 => _0x1441d0[_0x449602(0x237)] + _0x449602(0x1c0) + _0x1441d0['id'] + ')')[_0x449602(_0x34e306._0x548a76)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1455
1446
|
}
|
|
1456
|
-
function formatCheckMessages(
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1447
|
+
function formatCheckMessages(_0x1549f5) {
|
|
1448
|
+
const _0xe26622 = { _0x370caa: 0x170 }, _0x5491bc = {
|
|
1449
|
+
_0x46d575: 0x262,
|
|
1450
|
+
_0x177fc2: 0x13d,
|
|
1451
|
+
_0x31ec40: 0xfb,
|
|
1452
|
+
_0x5b9738: 0x18c,
|
|
1453
|
+
_0xec3dc2: 0xfb,
|
|
1454
|
+
_0x4b4720: 0x180,
|
|
1455
|
+
_0x3270e5: 0x1c6,
|
|
1456
|
+
_0x2d787d: 0x205,
|
|
1457
|
+
_0x5a9608: 0x15f,
|
|
1458
|
+
_0x1baf11: 0x176
|
|
1459
|
+
}, _0x1607e0 = _0x456b7e;
|
|
1460
|
+
if (_0x1549f5['length'] === 0x0)
|
|
1461
|
+
return 'No\x20new\x20messages.';
|
|
1462
|
+
return _0x1549f5[_0x1607e0(0x241)](_0x280abe => {
|
|
1463
|
+
const _0xf1c751 = _0x1607e0, _0x4aa870 = _0x280abe[_0xf1c751(_0x5491bc._0x46d575)] === 'agent' ? _0xf1c751(_0x5491bc._0x177fc2) : '', _0x57c782 = _0x280abe[_0xf1c751(_0x5491bc._0x31ec40)] && _0x280abe[_0xf1c751(0xfb)] !== _0xf1c751(_0x5491bc._0x5b9738) ? '\x20kind=' + _0x280abe[_0xf1c751(_0x5491bc._0xec3dc2)] : '';
|
|
1464
|
+
return _0xf1c751(_0x5491bc._0x4b4720) + _0x280abe[_0xf1c751(0x1eb)] + _0xf1c751(_0x5491bc._0x3270e5) + _0x280abe['messageId'][_0xf1c751(_0x5491bc._0x2d787d)](0x0, 0x8) + _0xf1c751(0xd2) + toLocalTime(_0x280abe[_0xf1c751(_0x5491bc._0x5a9608)]) + _0x4aa870 + _0x57c782 + _0xf1c751(_0x5491bc._0x1baf11) + _0x280abe[_0xf1c751(0x117)] + ':\x20' + _0x280abe['content'] + formatAttachmentSuffix(_0x280abe[_0xf1c751(0x133)]);
|
|
1465
|
+
})[_0x1607e0(_0xe26622._0x370caa)]('\x0a');
|
|
1468
1466
|
}
|
|
1469
|
-
function formatHistory(
|
|
1470
|
-
const
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1467
|
+
function formatHistory(_0x6ed19e) {
|
|
1468
|
+
const _0x41a176 = {
|
|
1469
|
+
_0x5005c0: 0x258,
|
|
1470
|
+
_0x1e0c15: 0x1a8,
|
|
1471
|
+
_0x2e244b: 0x241,
|
|
1472
|
+
_0x3461a0: 0x14e,
|
|
1473
|
+
_0x236973: 0x247,
|
|
1474
|
+
_0x52f1db: 0x13a,
|
|
1475
|
+
_0x26c058: 0x1ca,
|
|
1476
|
+
_0x20c9d8: 0xe5,
|
|
1477
|
+
_0x1d0053: 0x1bb
|
|
1478
|
+
}, _0x41a10f = {
|
|
1479
|
+
_0x48e1b3: 0xd9,
|
|
1480
|
+
_0x4a564b: 0xfb,
|
|
1481
|
+
_0x111fbe: 0x18c,
|
|
1482
|
+
_0x23da33: 0xdf,
|
|
1483
|
+
_0x222237: 0x210,
|
|
1484
|
+
_0x536c30: 0x10b,
|
|
1485
|
+
_0x28f765: 0x15f,
|
|
1486
|
+
_0x63876c: 0x176,
|
|
1487
|
+
_0x4441ad: 0x117
|
|
1488
|
+
}, _0x55f204 = _0x456b7e;
|
|
1489
|
+
if (_0x6ed19e[_0x55f204(_0x41a176._0x5005c0)]['length'] === 0x0)
|
|
1490
|
+
return '##\x20Message\x20History\x20for\x20' + _0x6ed19e['channel'] + _0x55f204(_0x41a176._0x1e0c15);
|
|
1491
|
+
const _0x7329ea = _0x6ed19e[_0x55f204(_0x41a176._0x5005c0)][_0x55f204(_0x41a176._0x2e244b)](_0x17550 => {
|
|
1492
|
+
const _0x3ffae8 = _0x55f204, _0x6e43df = _0x17550[_0x3ffae8(0x262)] === _0x3ffae8(_0x41a10f._0x48e1b3) ? _0x3ffae8(0x13d) : '', _0x4a0a74 = _0x17550[_0x3ffae8(0xfb)] && _0x17550[_0x3ffae8(_0x41a10f._0x4a564b)] !== _0x3ffae8(_0x41a10f._0x111fbe) ? _0x3ffae8(0x17b) + _0x17550[_0x3ffae8(0xfb)] : '';
|
|
1493
|
+
return _0x3ffae8(_0x41a10f._0x23da33) + _0x17550[_0x3ffae8(_0x41a10f._0x222237)] + _0x3ffae8(0x1c6) + _0x17550[_0x3ffae8(_0x41a10f._0x536c30)] + '\x20time=' + toLocalTime(_0x17550[_0x3ffae8(_0x41a10f._0x28f765)]) + _0x6e43df + _0x4a0a74 + _0x3ffae8(_0x41a10f._0x63876c) + _0x17550[_0x3ffae8(_0x41a10f._0x4441ad)] + ':\x20' + _0x17550['content'] + formatAttachmentSuffix(_0x17550[_0x3ffae8(0x133)]);
|
|
1494
|
+
})['join']('\x0a'), _0x53b222 = _0x6ed19e[_0x55f204(0x1d0)] && _0x6ed19e[_0x55f204(0x13a)] ? '\x0a\x0a---\x20' + _0x6ed19e[_0x55f204(_0x41a176._0x5005c0)][_0x55f204(_0x41a176._0x3461a0)] + _0x55f204(_0x41a176._0x236973) + _0x6ed19e[_0x55f204(_0x41a176._0x52f1db)] + _0x55f204(_0x41a176._0x26c058) : '';
|
|
1495
|
+
return _0x55f204(_0x41a176._0x20c9d8) + _0x6ed19e[_0x55f204(0x1ad)] + '\x20(' + _0x6ed19e[_0x55f204(0x258)]['length'] + _0x55f204(_0x41a176._0x1d0053) + _0x7329ea + _0x53b222;
|
|
1494
1496
|
}
|
|
1495
|
-
function formatServerDirectory(
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
},
|
|
1497
|
+
function formatServerDirectory(_0x115f2b) {
|
|
1498
|
+
const _0x19a9af = {
|
|
1499
|
+
_0x43a8a9: 0x234,
|
|
1500
|
+
_0x519302: 0x170,
|
|
1501
|
+
_0x232eb5: 0x241,
|
|
1502
|
+
_0x12719a: 0x255,
|
|
1503
|
+
_0x2f33d3: 0x14e,
|
|
1504
|
+
_0x1d2405: 0x255,
|
|
1505
|
+
_0x4a5b04: 0x170,
|
|
1506
|
+
_0x4d9308: 0x1b4,
|
|
1507
|
+
_0x18f7ba: 0x170
|
|
1508
|
+
}, _0x557bb4 = _0x456b7e, _0x251f43 = _0x115f2b['channels'][_0x557bb4(0x14e)] > 0x0 ? _0x115f2b[_0x557bb4(_0x19a9af._0x43a8a9)][_0x557bb4(0x241)](_0x51a0e0 => _0x51a0e0[_0x557bb4(0x1ea)] ? _0x557bb4(0x228) + _0x51a0e0[_0x557bb4(0x1df)] + _0x557bb4(0x238) + _0x51a0e0[_0x557bb4(0x1ea)] : _0x557bb4(0x228) + _0x51a0e0['name'])[_0x557bb4(_0x19a9af._0x519302)]('\x0a') : '(none)', _0x5c7951 = _0x115f2b['agents'][_0x557bb4(0x14e)] > 0x0 ? _0x115f2b['agents'][_0x557bb4(_0x19a9af._0x232eb5)](_0x187633 => _0x557bb4(0x1c3) + _0x187633['name'])['join']('\x0a') : '(none)', _0x314a4f = _0x115f2b[_0x557bb4(_0x19a9af._0x12719a)][_0x557bb4(_0x19a9af._0x2f33d3)] > 0x0 ? _0x115f2b[_0x557bb4(_0x19a9af._0x1d2405)][_0x557bb4(_0x19a9af._0x232eb5)](_0x4c2ff9 => _0x557bb4(0x1c3) + _0x4c2ff9[_0x557bb4(0x1df)])[_0x557bb4(_0x19a9af._0x4a5b04)]('\x0a') : _0x557bb4(_0x19a9af._0x4d9308);
|
|
1507
1509
|
return [
|
|
1508
|
-
|
|
1510
|
+
_0x557bb4(0x103) + _0x115f2b['serverName'],
|
|
1509
1511
|
'',
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
+
_0x557bb4(0x189),
|
|
1513
|
+
_0x251f43,
|
|
1512
1514
|
'',
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
+
_0x557bb4(0x104),
|
|
1516
|
+
_0x5c7951,
|
|
1515
1517
|
'',
|
|
1516
1518
|
'###\x20Humans',
|
|
1517
|
-
|
|
1518
|
-
][
|
|
1519
|
+
_0x314a4f
|
|
1520
|
+
][_0x557bb4(_0x19a9af._0x18f7ba)]('\x0a');
|
|
1519
1521
|
}
|
|
1520
|
-
function formatUploadResult(
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1523
|
-
_0x18d312: 0x214
|
|
1524
|
-
}, _0x3a6b2b = _0x57701d;
|
|
1525
|
-
return _0x3a6b2b(0x360) + _0x23cf43['filename'] + '\x20(' + (_0x23cf43['sizeBytes'] / 0x400)['toFixed'](0x1) + _0x3a6b2b(_0xd81280._0x28aa18) + _0x23cf43[_0x3a6b2b(_0xd81280._0x18d312)] + _0x3a6b2b(0x364);
|
|
1522
|
+
function formatUploadResult(_0x939172) {
|
|
1523
|
+
const _0x1f5603 = { _0x426da3: 0x20e }, _0x43b291 = _0x456b7e;
|
|
1524
|
+
return _0x43b291(0x106) + _0x939172[_0x43b291(0x237)] + '\x20(' + (_0x939172[_0x43b291(0xf3)] / 0x400)[_0x43b291(_0x1f5603._0x426da3)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x939172['attachmentId'] + _0x43b291(0x190);
|
|
1526
1525
|
}
|
|
1527
|
-
function formatViewFileResult(
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1526
|
+
function formatViewFileResult(_0x36a64b, _0x5aae9e) {
|
|
1527
|
+
const _0x1b0684 = _0x456b7e;
|
|
1528
|
+
return _0x5aae9e ? _0x1b0684(0x231) + _0x36a64b : _0x1b0684(0x250) + _0x36a64b;
|
|
1530
1529
|
}
|
|
1531
|
-
function formatTaskList(
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1530
|
+
function formatTaskList(_0x1c15a4, _0xdc9103) {
|
|
1531
|
+
const _0x3c8909 = { _0x26fe38: 0x170 }, _0x549182 = {
|
|
1532
|
+
_0x48dde6: 0x1cb,
|
|
1533
|
+
_0x5b9d7f: 0x11e,
|
|
1534
|
+
_0x158924: 0x11e,
|
|
1535
|
+
_0x4973b7: 0x10b,
|
|
1536
|
+
_0x4d420c: 0x225,
|
|
1537
|
+
_0x2b74d1: 0x213,
|
|
1538
|
+
_0x4368d3: 0x16d
|
|
1539
|
+
}, _0x4b5fe6 = _0x456b7e;
|
|
1540
|
+
if (_0x1c15a4[_0x4b5fe6(0x14e)] === 0x0)
|
|
1541
|
+
return 'No\x20tasks\x20found.';
|
|
1542
|
+
return _0x1c15a4['map'](_0x33f461 => {
|
|
1543
|
+
const _0x110ed8 = _0x4b5fe6, _0x205cd7 = _0x33f461[_0x110ed8(_0x549182._0x48dde6)] == null ? _0x110ed8(0x123) : _0x33f461[_0x110ed8(_0x549182._0x5b9d7f)] != null ? '#' + _0x33f461[_0x110ed8(0x1cb)] + '.' + _0x33f461[_0x110ed8(_0x549182._0x158924)] : '#' + _0x33f461['taskNumber'], _0x44f149 = _0x33f461[_0x110ed8(0x10b)] ? '\x20message=' + _0x33f461[_0x110ed8(_0x549182._0x4973b7)] : '', _0x18d554 = _0xdc9103 && _0x33f461[_0x110ed8(0x1cb)] != null && !_0x33f461[_0x110ed8(_0x549182._0x5b9d7f)] && _0xdc9103[_0x110ed8(0x127)](_0x33f461[_0x110ed8(0x1cb)]) ? _0x110ed8(_0x549182._0x4d420c) : '', _0x292294 = _0x33f461[_0x110ed8(0x257)] != null && _0x33f461['childrenTotal'] > 0x0 ? '\x20(' + (_0x33f461[_0x110ed8(_0x549182._0x2b74d1)] ?? 0x0) + '/' + _0x33f461[_0x110ed8(0x257)] + _0x110ed8(_0x549182._0x4368d3) : '';
|
|
1544
|
+
return _0x205cd7 + '\x20[' + _0x33f461['status'] + ']\x20' + _0x33f461['title'] + _0x292294 + _0x44f149 + _0x18d554;
|
|
1545
|
+
})[_0x4b5fe6(_0x3c8909._0x26fe38)]('\x0a');
|
|
1546
1546
|
}
|
|
1547
|
-
function formatCreatedTasks(
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
if (_0x13ab92[_0xc2ca03(0x230)] === 0x0)
|
|
1547
|
+
function formatCreatedTasks(_0x5e3c9) {
|
|
1548
|
+
const _0x4aa175 = { _0x2504e8: 0x170 }, _0xf7e31a = {
|
|
1549
|
+
_0x2ba28c: 0x11e,
|
|
1550
|
+
_0x418a72: 0x1cb,
|
|
1551
|
+
_0x321374: 0x10b
|
|
1552
|
+
}, _0xae380f = _0x456b7e;
|
|
1553
|
+
if (_0x5e3c9[_0xae380f(0x14e)] === 0x0)
|
|
1555
1554
|
return 'No\x20tasks\x20created.';
|
|
1556
|
-
return
|
|
1557
|
-
const
|
|
1558
|
-
return
|
|
1559
|
-
})[
|
|
1555
|
+
return _0x5e3c9['map'](_0x5d9271 => {
|
|
1556
|
+
const _0x5bf95e = _0xae380f, _0x16cf8c = _0x5d9271['taskNumber'] == null ? _0x5bf95e(0x123) : _0x5d9271[_0x5bf95e(_0xf7e31a._0x2ba28c)] != null ? '#' + _0x5d9271[_0x5bf95e(_0xf7e31a._0x418a72)] + '.' + _0x5d9271[_0x5bf95e(0x11e)] : '#' + _0x5d9271['taskNumber'], _0x1395c7 = _0x5d9271[_0x5bf95e(_0xf7e31a._0x321374)] ? _0x5bf95e(0xf2) + _0x5d9271['messageId'] : '';
|
|
1557
|
+
return _0x16cf8c + '\x20' + _0x5d9271[_0x5bf95e(0x172)] + _0x1395c7;
|
|
1558
|
+
})[_0xae380f(_0x4aa175._0x2504e8)]('\x0a');
|
|
1560
1559
|
}
|
|
1561
|
-
function formatClaimTaskLabel(
|
|
1562
|
-
const
|
|
1563
|
-
if (
|
|
1564
|
-
return
|
|
1565
|
-
return
|
|
1560
|
+
function formatClaimTaskLabel(_0x12853d, _0x246673) {
|
|
1561
|
+
const _0x1cbe98 = _0x456b7e;
|
|
1562
|
+
if (_0x12853d == null)
|
|
1563
|
+
return _0x1cbe98(0x123);
|
|
1564
|
+
return _0x246673 != null ? '#' + _0x12853d + '.' + _0x246673 : '#' + _0x12853d;
|
|
1566
1565
|
}
|
|
1567
|
-
function formatClaimTaskResults(
|
|
1568
|
-
const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
const _0x4da281 = formatClaimTaskLabel(_0x474d6f[_0x73056a(0x23a)], _0x474d6f[_0x73056a(0x369)]), _0x2e5da6 = _0x474d6f[_0x73056a(_0x55fc31._0x2b2608)] ? _0x73056a(_0x55fc31._0x53fc0d) + _0x474d6f[_0x73056a(0x36e)] : '';
|
|
1595
|
-
if (_0x474d6f[_0x73056a(0x2e4)]) {
|
|
1596
|
-
const _0x497b0a = [
|
|
1597
|
-
_0x73056a(_0x55fc31._0xa0e1e3),
|
|
1598
|
-
_0x474d6f[_0x73056a(_0x55fc31._0x50556e)] ? _0x73056a(_0x55fc31._0x45a695) : null,
|
|
1599
|
-
_0x474d6f[_0x73056a(_0x55fc31._0x354f4d)] ? _0x73056a(_0x55fc31._0x22135c) + _0x474d6f[_0x73056a(0x2cb)] : null,
|
|
1600
|
-
_0x474d6f['threadTarget'] ? _0x73056a(_0x55fc31._0x54366a) + _0x474d6f[_0x73056a(_0x55fc31._0xdbd8a7)] : null,
|
|
1601
|
-
_0x474d6f[_0x73056a(_0x55fc31._0x27e419)] ? _0x73056a(0x24f) + _0x474d6f[_0x73056a(_0x55fc31._0x249d56)] : null
|
|
1602
|
-
][_0x73056a(0x337)](Boolean)['join']('\x20');
|
|
1603
|
-
return _0x4da281 + _0x73056a(_0x55fc31._0xefdefc) + _0x2e5da6 + '\x20' + _0x497b0a + _0x73056a(_0x55fc31._0x5098aa);
|
|
1566
|
+
function formatClaimTaskResults(_0x78e3d9) {
|
|
1567
|
+
const _0x5f10f3 = {
|
|
1568
|
+
_0x2b9f3b: 0x14e,
|
|
1569
|
+
_0x50ebc0: 0x170
|
|
1570
|
+
}, _0x1673ae = {
|
|
1571
|
+
_0x2e7631: 0x1cb,
|
|
1572
|
+
_0x56c505: 0x11e,
|
|
1573
|
+
_0x181574: 0x1d1,
|
|
1574
|
+
_0x10cf4e: 0x11a,
|
|
1575
|
+
_0x977bc3: 0x18b,
|
|
1576
|
+
_0x3f837c: 0x166
|
|
1577
|
+
}, _0x1107dd = _0x456b7e;
|
|
1578
|
+
if (_0x78e3d9[_0x1107dd(_0x5f10f3._0x2b9f3b)] === 0x0)
|
|
1579
|
+
return _0x1107dd(0x11d);
|
|
1580
|
+
return _0x78e3d9[_0x1107dd(0x241)](_0x39782d => {
|
|
1581
|
+
const _0x3cb16f = _0x1107dd;
|
|
1582
|
+
if (_0x39782d['success']) {
|
|
1583
|
+
const _0x4655d1 = formatClaimTaskLabel(_0x39782d[_0x3cb16f(_0x1673ae._0x2e7631)], _0x39782d[_0x3cb16f(_0x1673ae._0x56c505)]), _0x584eb9 = _0x39782d[_0x3cb16f(0x10b)] ? _0x3cb16f(0xf2) + _0x39782d['messageId'] : '';
|
|
1584
|
+
if (_0x39782d[_0x3cb16f(_0x1673ae._0x181574)]) {
|
|
1585
|
+
const _0x226348 = [
|
|
1586
|
+
'workerHandoff=true',
|
|
1587
|
+
_0x39782d[_0x3cb16f(_0x1673ae._0x10cf4e)] ? _0x3cb16f(0x156) : null,
|
|
1588
|
+
_0x39782d[_0x3cb16f(_0x1673ae._0x977bc3)] ? _0x3cb16f(0x236) + _0x39782d[_0x3cb16f(0x18b)] : null,
|
|
1589
|
+
_0x39782d[_0x3cb16f(0x1e1)] ? _0x3cb16f(0xfd) + _0x39782d[_0x3cb16f(0x1e1)] : null,
|
|
1590
|
+
_0x39782d[_0x3cb16f(0x215)] ? _0x3cb16f(_0x1673ae._0x3f837c) + _0x39782d[_0x3cb16f(0x215)] : null
|
|
1591
|
+
][_0x3cb16f(0x230)](Boolean)[_0x3cb16f(0x170)]('\x20');
|
|
1592
|
+
return _0x4655d1 + '\x20claimed' + _0x584eb9 + '\x20' + _0x226348 + _0x3cb16f(0x21d);
|
|
1604
1593
|
}
|
|
1605
|
-
if (
|
|
1606
|
-
return
|
|
1607
|
-
const
|
|
1608
|
-
return
|
|
1594
|
+
if (_0x39782d[_0x3cb16f(_0x1673ae._0x977bc3)] === _0x3cb16f(0xda))
|
|
1595
|
+
return _0x4655d1 + _0x3cb16f(0x243) + _0x584eb9 + '\x20workerHandoff=false\x20executionMode=main\x0aStay\x20in\x20main\x20session:\x20read\x20the\x20referenced\x20plan/document\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20(or\x20otherwise\x20advance\x20the\x20task\x20in\x20main\x20without\x20handing\x20off\x20to\x20a\x20worker).';
|
|
1596
|
+
const _0x573466 = _0x39782d['workerHandoffError'] ? '\x20workerHandoff=false\x20error=' + _0x39782d['workerHandoffError'] : '';
|
|
1597
|
+
return _0x4655d1 + _0x3cb16f(0x243) + _0x584eb9 + _0x573466;
|
|
1609
1598
|
}
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1612
|
-
})[
|
|
1599
|
+
const _0x504e34 = _0x39782d[_0x3cb16f(_0x1673ae._0x2e7631)] == null ? _0x39782d[_0x3cb16f(0x10b)] ?? _0x3cb16f(0x108) : formatClaimTaskLabel(_0x39782d[_0x3cb16f(_0x1673ae._0x2e7631)], _0x39782d['subtaskNumber']);
|
|
1600
|
+
return _0x504e34 + _0x3cb16f(0x21a) + (_0x39782d['reason'] ?? _0x3cb16f(0x20d));
|
|
1601
|
+
})[_0x1107dd(_0x5f10f3._0x50ebc0)]('\x0a');
|
|
1613
1602
|
}
|
|
1614
|
-
function formatUnclaimTaskResult(
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1603
|
+
function formatUnclaimTaskResult(_0x2d7554) {
|
|
1604
|
+
const _0x18cf46 = {
|
|
1605
|
+
_0x4c4398: 0x123,
|
|
1606
|
+
_0x59b675: 0x1cb,
|
|
1607
|
+
_0x5d5b5e: 0xce,
|
|
1608
|
+
_0x475e26: 0x1b3
|
|
1609
|
+
}, _0x35ab71 = _0x456b7e, _0x3c2c60 = _0x2d7554[_0x35ab71(0x1cb)] == null ? _0x35ab71(_0x18cf46._0x4c4398) : _0x2d7554['subtaskNumber'] != null ? '#' + _0x2d7554[_0x35ab71(0x1cb)] + '.' + _0x2d7554[_0x35ab71(0x11e)] : '#' + _0x2d7554[_0x35ab71(_0x18cf46._0x59b675)];
|
|
1610
|
+
return _0x3c2c60 + _0x35ab71(_0x18cf46._0x5d5b5e) + _0x2d7554[_0x35ab71(_0x18cf46._0x475e26)];
|
|
1617
1611
|
}
|
|
1618
|
-
function formatUpdateTaskStatusResult(
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
if (_0x8d9759['status'] !== _0x4c890b(0x233))
|
|
1624
|
-
return _0x130f5b;
|
|
1625
|
-
return _0x130f5b + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
|
|
1612
|
+
function formatUpdateTaskStatusResult(_0x2385e6) {
|
|
1613
|
+
const _0x5d60ff = { _0x15d018: 0x218 }, _0x97156f = _0x456b7e, _0x36b860 = _0x2385e6['taskNumber'] == null ? '(legacy)' : _0x2385e6['subtaskNumber'] != null ? '#' + _0x2385e6[_0x97156f(0x1cb)] + '.' + _0x2385e6['subtaskNumber'] : '#' + _0x2385e6['taskNumber'], _0xa5afb7 = _0x36b860 + _0x97156f(0xce) + _0x2385e6[_0x97156f(0x1b3)];
|
|
1614
|
+
if (_0x2385e6[_0x97156f(0x1b3)] !== 'in_review')
|
|
1615
|
+
return _0xa5afb7;
|
|
1616
|
+
return _0xa5afb7 + _0x97156f(_0x5d60ff._0x15d018);
|
|
1626
1617
|
}
|
|
1627
1618
|
function getChatBridgeToolDefinitions() {
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
}, _0x21fd85 = _0x57701d;
|
|
1619
|
+
const _0x285873 = {
|
|
1620
|
+
_0x5a9291: 0x267,
|
|
1621
|
+
_0x4fc75c: 0x1c8,
|
|
1622
|
+
_0x20cd82: 0x24a,
|
|
1623
|
+
_0x1b103e: 0x220,
|
|
1624
|
+
_0x584e7d: 0x244,
|
|
1625
|
+
_0x23fd2e: 0x14f
|
|
1626
|
+
}, _0x51ffbe = _0x456b7e;
|
|
1637
1627
|
return [
|
|
1638
|
-
{ 'name':
|
|
1639
|
-
{ 'name':
|
|
1640
|
-
{ 'name':
|
|
1641
|
-
{ 'name':
|
|
1628
|
+
{ 'name': _0x51ffbe(_0x285873._0x5a9291) },
|
|
1629
|
+
{ 'name': _0x51ffbe(0x1b5) },
|
|
1630
|
+
{ 'name': _0x51ffbe(0x21c) },
|
|
1631
|
+
{ 'name': _0x51ffbe(_0x285873._0x4fc75c) },
|
|
1642
1632
|
{ 'name': 'upload_file' },
|
|
1643
|
-
{ 'name':
|
|
1644
|
-
{ 'name':
|
|
1645
|
-
{ 'name':
|
|
1646
|
-
{ 'name':
|
|
1647
|
-
{ 'name':
|
|
1648
|
-
{ 'name':
|
|
1633
|
+
{ 'name': _0x51ffbe(_0x285873._0x20cd82) },
|
|
1634
|
+
{ 'name': _0x51ffbe(0x1a4) },
|
|
1635
|
+
{ 'name': _0x51ffbe(0x15d) },
|
|
1636
|
+
{ 'name': 'claim_tasks' },
|
|
1637
|
+
{ 'name': _0x51ffbe(0x152) },
|
|
1638
|
+
{ 'name': _0x51ffbe(0x135) },
|
|
1649
1639
|
{ 'name': 'get_worker_status' },
|
|
1650
|
-
{ 'name':
|
|
1651
|
-
{ 'name':
|
|
1652
|
-
{ 'name':
|
|
1640
|
+
{ 'name': _0x51ffbe(_0x285873._0x1b103e) },
|
|
1641
|
+
{ 'name': _0x51ffbe(_0x285873._0x584e7d) },
|
|
1642
|
+
{ 'name': _0x51ffbe(_0x285873._0x23fd2e) }
|
|
1653
1643
|
];
|
|
1654
1644
|
}
|
|
1655
|
-
function createChatBridgeHandlers(
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
},
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
},
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
},
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1645
|
+
function createChatBridgeHandlers(_0x426032) {
|
|
1646
|
+
const _0x54f868 = {
|
|
1647
|
+
_0x221227: 0x203,
|
|
1648
|
+
_0x52d917: 0x22b
|
|
1649
|
+
}, _0x315d8f = {
|
|
1650
|
+
_0x56e4e5: 0xf0,
|
|
1651
|
+
_0x4b6c33: 0x1c1,
|
|
1652
|
+
_0x4c5eb3: 0x1f0,
|
|
1653
|
+
_0x1f3988: 0x11c,
|
|
1654
|
+
_0x316549: 0x19f
|
|
1655
|
+
}, _0x593e2b = {
|
|
1656
|
+
_0x1b19db: 0x1cd,
|
|
1657
|
+
_0x57ad0f: 0x1cd,
|
|
1658
|
+
_0x2940da: 0x1bc,
|
|
1659
|
+
_0x261320: 0x246,
|
|
1660
|
+
_0x13f8af: 0x17c,
|
|
1661
|
+
_0x36e777: 0x11c,
|
|
1662
|
+
_0x43abb3: 0xf1
|
|
1663
|
+
}, _0x1ac5bd = {
|
|
1664
|
+
_0x59ddbe: 0xf0,
|
|
1665
|
+
_0x25eaaa: 0xf7,
|
|
1666
|
+
_0x2e1ec1: 0x118,
|
|
1667
|
+
_0x232ae3: 0x11c
|
|
1668
|
+
}, _0x18820b = {
|
|
1669
|
+
_0x366400: 0xf0,
|
|
1670
|
+
_0x4e8d9f: 0x1cd,
|
|
1671
|
+
_0x417989: 0xdd,
|
|
1672
|
+
_0x5eb744: 0x11c,
|
|
1673
|
+
_0xc42dc4: 0x178
|
|
1674
|
+
}, _0x35f6b3 = {
|
|
1675
|
+
_0x1441bc: 0x20f,
|
|
1676
|
+
_0x3cdc29: 0xe7,
|
|
1677
|
+
_0x4d47b6: 0x20f,
|
|
1678
|
+
_0x4a3d27: 0x155,
|
|
1679
|
+
_0x237df3: 0x194
|
|
1680
|
+
}, _0x58dbea = {
|
|
1681
|
+
_0x2c8c89: 0x1ad,
|
|
1682
|
+
_0x4ea3fa: 0x260
|
|
1683
|
+
}, _0x3b3f48 = {
|
|
1684
|
+
_0x1a26ce: 0x1c9,
|
|
1685
|
+
_0x3cb50b: 0x1ad
|
|
1686
|
+
}, _0x35b78f = {
|
|
1687
|
+
_0x502628: 0x1c9,
|
|
1688
|
+
_0x2072d1: 0x146,
|
|
1689
|
+
_0x328e84: 0x157,
|
|
1690
|
+
_0x5979fb: 0x19a
|
|
1691
|
+
}, _0x5ebfee = {
|
|
1692
|
+
_0x115c84: 0x11b,
|
|
1693
|
+
_0x1e3c97: 0x114
|
|
1694
|
+
}, _0x1b1923 = {
|
|
1695
|
+
_0x49e3a2: 0x15d,
|
|
1696
|
+
_0x2548b5: 0x260
|
|
1697
|
+
}, _0x19e8a8 = {
|
|
1698
|
+
_0x277298: 0xe4,
|
|
1699
|
+
_0x374740: 0x1ad,
|
|
1700
|
+
_0xabe07a: 0x1fe,
|
|
1701
|
+
_0x281a34: 0x1b3,
|
|
1702
|
+
_0x3ad6ad: 0x1d3,
|
|
1703
|
+
_0x8b1d80: 0x101,
|
|
1704
|
+
_0x184ec9: 0x1cb,
|
|
1705
|
+
_0x5e8168: 0xe9
|
|
1706
|
+
}, _0x25bc1b = { _0x389cc2: 0x177 }, _0x177ec9 = {
|
|
1707
|
+
_0x3dea28: 0x260,
|
|
1708
|
+
_0x2720c7: 0x233,
|
|
1709
|
+
_0x5bdc6e: 0x1c9,
|
|
1710
|
+
_0x2a231e: 0x258
|
|
1711
|
+
}, _0x56df03 = {
|
|
1712
|
+
_0x22f5ec: 0x1c9,
|
|
1713
|
+
_0x498eb6: 0x19e,
|
|
1714
|
+
_0x2ad7df: 0x1a9,
|
|
1715
|
+
_0x34f556: 0x123,
|
|
1716
|
+
_0x5f2094: 0x17e,
|
|
1717
|
+
_0x298e57: 0x1f7,
|
|
1718
|
+
_0x2f806c: 0x170,
|
|
1719
|
+
_0x50a197: 0x254,
|
|
1720
|
+
_0x46e85e: 0x224,
|
|
1721
|
+
_0x4b74dc: 0xd6,
|
|
1722
|
+
_0x4fb762: 0xfa,
|
|
1723
|
+
_0x36e084: 0x1e9,
|
|
1724
|
+
_0x1856bb: 0x1a9,
|
|
1725
|
+
_0x1565e1: 0x192,
|
|
1726
|
+
_0x553d3a: 0x131,
|
|
1727
|
+
_0x4741e5: 0x1cd,
|
|
1728
|
+
_0x590593: 0x1a5,
|
|
1729
|
+
_0x4a1f2d: 0x261,
|
|
1730
|
+
_0x5cd840: 0x1c5,
|
|
1731
|
+
_0x4981a8: 0x1c5,
|
|
1732
|
+
_0x44186d: 0x1b1,
|
|
1733
|
+
_0x558fdf: 0xfa,
|
|
1734
|
+
_0x3631ab: 0x1eb,
|
|
1735
|
+
_0x5783bc: 0x132,
|
|
1736
|
+
_0x2bd631: 0x1eb,
|
|
1737
|
+
_0xe3c43e: 0x1db,
|
|
1738
|
+
_0x164c88: 0x10b
|
|
1739
|
+
}, _0x40318a = {
|
|
1740
|
+
_0x2fd00c: 0x1cd,
|
|
1741
|
+
_0x5ca30f: 0x1fe,
|
|
1742
|
+
_0x4e15d1: 0x127,
|
|
1743
|
+
_0x42669d: 0x18d
|
|
1744
|
+
}, _0x1981a3 = {
|
|
1745
|
+
_0x31cd0b: 0x1cd,
|
|
1746
|
+
_0x161fe1: 0x17c,
|
|
1747
|
+
_0x1f1032: 0x17c,
|
|
1748
|
+
_0x405080: 0x1fe,
|
|
1749
|
+
_0x59002b: 0x1b3,
|
|
1750
|
+
_0x20070e: 0x266
|
|
1751
|
+
}, _0x11881a = {
|
|
1752
|
+
_0x3ce41b: 0x1ad,
|
|
1753
|
+
_0x38fc6e: 0x1cb,
|
|
1754
|
+
_0x39fbda: 0x110,
|
|
1755
|
+
_0x5e9cb6: 0xf4,
|
|
1756
|
+
_0x1741cd: 0x260,
|
|
1757
|
+
_0x11b85: 0x1d6,
|
|
1758
|
+
_0x4eb5b2: 0x123,
|
|
1759
|
+
_0x50f30b: 0x1cb,
|
|
1760
|
+
_0x28ad12: 0x1c6,
|
|
1761
|
+
_0x1436fc: 0x102,
|
|
1762
|
+
_0x2a7e80: 0x1ab,
|
|
1763
|
+
_0x1060de: 0x11f,
|
|
1764
|
+
_0x1f5b49: 0x1cd,
|
|
1765
|
+
_0x5ad3de: 0x1f0,
|
|
1766
|
+
_0x1bd4c4: 0xf7,
|
|
1767
|
+
_0x54a90c: 0x246,
|
|
1768
|
+
_0x2def80: 0x1a1,
|
|
1769
|
+
_0x1e7c69: 0x130,
|
|
1770
|
+
_0xf9a06: 0x141,
|
|
1771
|
+
_0x225bfe: 0x114,
|
|
1772
|
+
_0xf8a61f: 0x1c5,
|
|
1773
|
+
_0x2c6fd9: 0x216,
|
|
1774
|
+
_0x2e7c89: 0x184
|
|
1775
|
+
}, _0xfe80da = {
|
|
1776
|
+
_0x103708: 0x16b,
|
|
1777
|
+
_0x5212ab: 0xd7
|
|
1778
|
+
}, _0x4a2133 = _0x456b7e;
|
|
1779
|
+
function _0x23b41b(_0x3abe93, _0x5bbd32) {
|
|
1780
|
+
const _0x5fec40 = _0x15bc;
|
|
1781
|
+
if (!_0x426032[_0x5fec40(0x1c9)])
|
|
1786
1782
|
return;
|
|
1787
|
-
if (!
|
|
1788
|
-
throw new Error(
|
|
1789
|
-
if (
|
|
1790
|
-
throw new Error(
|
|
1783
|
+
if (!_0x426032[_0x5fec40(0xd7)])
|
|
1784
|
+
throw new Error(_0x3abe93 + _0x5fec40(_0xfe80da._0x103708));
|
|
1785
|
+
if (_0x5bbd32 !== _0x426032[_0x5fec40(_0xfe80da._0x5212ab)])
|
|
1786
|
+
throw new Error(_0x3abe93 + _0x5fec40(0x145) + _0x426032[_0x5fec40(0xd7)] + ');\x20got\x20channel=' + _0x5bbd32);
|
|
1791
1787
|
}
|
|
1792
|
-
async function
|
|
1793
|
-
const
|
|
1794
|
-
if (!
|
|
1788
|
+
async function _0x5ad0af(_0x1f2e44) {
|
|
1789
|
+
const _0x7da62a = _0x15bc;
|
|
1790
|
+
if (!_0x426032[_0x7da62a(0x1cd)] || !_0x426032[_0x7da62a(0x17c)] || _0x426032[_0x7da62a(0x1c9)] || _0x426032['workerModeEnabled'] !== !![])
|
|
1795
1791
|
return null;
|
|
1796
|
-
const
|
|
1797
|
-
if (
|
|
1792
|
+
const _0x29e32f = parseTarget(_0x1f2e44[_0x7da62a(_0x11881a._0x3ce41b)]);
|
|
1793
|
+
if (_0x29e32f[_0x7da62a(0xfb)] !== _0x7da62a(_0x11881a._0x3ce41b))
|
|
1798
1794
|
return null;
|
|
1799
|
-
if (
|
|
1800
|
-
const
|
|
1795
|
+
if (_0x1f2e44[_0x7da62a(0x18b)] === 'main') {
|
|
1796
|
+
const _0x2a5919 = _0x1f2e44[_0x7da62a(_0x11881a._0x38fc6e)] == null ? _0x7da62a(0x123) : '#' + _0x1f2e44[_0x7da62a(0x1cb)];
|
|
1801
1797
|
return {
|
|
1802
|
-
'executionMode':
|
|
1798
|
+
'executionMode': _0x7da62a(0xda),
|
|
1803
1799
|
'stopMain': ![],
|
|
1804
1800
|
'workerHandoff': ![],
|
|
1805
|
-
'workerHandoffError':
|
|
1801
|
+
'workerHandoffError': _0x7da62a(0x259) + _0x2a5919 + '\x20stays\x20in\x20main\x20session\x20(executionMode=main);\x20remain\x20here,\x20read\x20the\x20referenced\x20plan/document,\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20if\x20that\x20is\x20the\x20intent.'
|
|
1806
1802
|
};
|
|
1807
1803
|
}
|
|
1808
|
-
const
|
|
1809
|
-
let
|
|
1804
|
+
const _0x2027d3 = _0x1f2e44['threadNumber'] != null ? _0x29e32f[_0x7da62a(0xf4)] + ':t' + _0x1f2e44[_0x7da62a(_0x11881a._0x39fbda)] : _0x29e32f[_0x7da62a(_0x11881a._0x5e9cb6)] + ':' + _0x1f2e44[_0x7da62a(0x10b)];
|
|
1805
|
+
let _0x1f0f7a;
|
|
1810
1806
|
try {
|
|
1811
|
-
const
|
|
1812
|
-
'channel':
|
|
1807
|
+
const _0x5e1575 = await _0x426032[_0x7da62a(_0x11881a._0x1741cd)][_0x7da62a(_0x11881a._0x11b85)]({
|
|
1808
|
+
'channel': _0x2027d3,
|
|
1813
1809
|
'limit': 0x14
|
|
1814
1810
|
});
|
|
1815
|
-
|
|
1811
|
+
_0x1f0f7a = _0x5e1575[_0x7da62a(0x258)]['find'](_0x52d761 => _0x52d761[_0x7da62a(0x10b)] === _0x1f2e44[_0x7da62a(0x10b)]);
|
|
1816
1812
|
} catch {
|
|
1817
|
-
|
|
1813
|
+
_0x1f0f7a = void 0x0;
|
|
1818
1814
|
}
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1815
|
+
const _0x19cc43 = _0x1f2e44[_0x7da62a(0x1cb)] == null ? _0x7da62a(_0x11881a._0x4eb5b2) : '#' + _0x1f2e44[_0x7da62a(_0x11881a._0x50f30b)], _0x18d6b7 = [
|
|
1816
|
+
_0x7da62a(0x180) + _0x2027d3 + _0x7da62a(_0x11881a._0x28ad12) + _0x1f2e44['messageId'][_0x7da62a(0x205)](0x0, 0x8) + '\x20time=' + new Date()[_0x7da62a(_0x11881a._0x1436fc)]() + _0x7da62a(_0x11881a._0x2a7e80) + _0x19cc43 + _0x7da62a(0xf6),
|
|
1821
1817
|
'',
|
|
1822
|
-
|
|
1818
|
+
_0x1f0f7a ? 'Root\x20task\x20message:\x0a' + _0x1f0f7a[_0x7da62a(0xfa)] : _0x7da62a(_0x11881a._0x1060de) + _0x1f2e44[_0x7da62a(0x10b)],
|
|
1823
1819
|
'',
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
][
|
|
1827
|
-
'method':
|
|
1828
|
-
'headers': { 'Content-Type':
|
|
1829
|
-
'body': JSON[
|
|
1830
|
-
'agent_id':
|
|
1831
|
-
'thread_target':
|
|
1820
|
+
_0x7da62a(0x192) + _0x2027d3,
|
|
1821
|
+
_0x7da62a(0x264)
|
|
1822
|
+
]['join']('\x0a'), _0xcea726 = await fetch(_0x426032[_0x7da62a(_0x11881a._0x1f5b49)] + '/workers/deliver', {
|
|
1823
|
+
'method': _0x7da62a(_0x11881a._0x5ad3de),
|
|
1824
|
+
'headers': { 'Content-Type': _0x7da62a(_0x11881a._0x1bd4c4) },
|
|
1825
|
+
'body': JSON[_0x7da62a(_0x11881a._0x54a90c)]({
|
|
1826
|
+
'agent_id': _0x426032['agentId'],
|
|
1827
|
+
'thread_target': _0x2027d3,
|
|
1832
1828
|
'spawn_packet': {
|
|
1833
|
-
'replyTarget':
|
|
1834
|
-
...
|
|
1829
|
+
'replyTarget': _0x2027d3,
|
|
1830
|
+
..._0x1f2e44['taskId'] ? { 'taskId': _0x1f2e44[_0x7da62a(0x11b)] } : _0x1f2e44[_0x7da62a(_0x11881a._0x50f30b)] != null ? { 'taskId': _0x7da62a(_0x11881a._0x2def80) + _0x1f2e44[_0x7da62a(_0x11881a._0x38fc6e)] } : {}
|
|
1835
1831
|
},
|
|
1836
1832
|
'payload': {
|
|
1837
1833
|
'mode': 'user',
|
|
1838
|
-
'text':
|
|
1834
|
+
'text': _0x18d6b7
|
|
1839
1835
|
}
|
|
1840
1836
|
})
|
|
1841
|
-
}),
|
|
1842
|
-
if (!
|
|
1843
|
-
throw new Error(
|
|
1837
|
+
}), _0x186178 = await _0xcea726[_0x7da62a(_0x11881a._0x1e7c69)]();
|
|
1838
|
+
if (!_0x186178['ok'])
|
|
1839
|
+
throw new Error(_0x186178[_0x7da62a(_0x11881a._0xf9a06)] ?? _0x7da62a(_0x11881a._0x225bfe));
|
|
1844
1840
|
return {
|
|
1845
1841
|
'stopMain': !![],
|
|
1846
|
-
'threadTarget':
|
|
1847
|
-
'workerDisposition':
|
|
1842
|
+
'threadTarget': _0x2027d3,
|
|
1843
|
+
'workerDisposition': _0x186178[_0x7da62a(0x10e)] === _0x7da62a(_0x11881a._0xf8a61f) ? _0x7da62a(_0x11881a._0xf8a61f) : _0x7da62a(0x198),
|
|
1848
1844
|
'workerHandoff': !![],
|
|
1849
|
-
'workerSessionId':
|
|
1850
|
-
'executionMode':
|
|
1845
|
+
'workerSessionId': _0x186178[_0x7da62a(_0x11881a._0x2c6fd9)] ?? '',
|
|
1846
|
+
'executionMode': _0x7da62a(_0x11881a._0x2e7c89)
|
|
1851
1847
|
};
|
|
1852
1848
|
}
|
|
1853
|
-
async function
|
|
1854
|
-
const
|
|
1855
|
-
if (!
|
|
1849
|
+
async function _0x5c22dd() {
|
|
1850
|
+
const _0x440c9c = _0x15bc;
|
|
1851
|
+
if (!_0x426032[_0x440c9c(_0x1981a3._0x31cd0b)] || !_0x426032[_0x440c9c(_0x1981a3._0x161fe1)] || _0x426032['workerMode'])
|
|
1856
1852
|
return null;
|
|
1857
1853
|
try {
|
|
1858
|
-
const
|
|
1859
|
-
if (!
|
|
1854
|
+
const _0xe48c40 = await fetch(_0x426032[_0x440c9c(0x1cd)] + '/workers/list?agent_id=' + encodeURIComponent(_0x426032[_0x440c9c(_0x1981a3._0x1f1032)])), _0x230a9c = await _0xe48c40[_0x440c9c(0x130)]();
|
|
1855
|
+
if (!_0x230a9c['ok'])
|
|
1860
1856
|
return null;
|
|
1861
|
-
const
|
|
1862
|
-
for (const
|
|
1863
|
-
|
|
1857
|
+
const _0x352ebb = new Set();
|
|
1858
|
+
for (const _0x59225a of _0x230a9c[_0x440c9c(_0x1981a3._0x405080)]) {
|
|
1859
|
+
_0x59225a[_0x440c9c(_0x1981a3._0x59002b)] !== _0x440c9c(0x1d3) && _0x59225a[_0x440c9c(_0x1981a3._0x20070e)] && _0x352ebb['add'](_0x59225a[_0x440c9c(0x266)]);
|
|
1864
1860
|
}
|
|
1865
|
-
return
|
|
1861
|
+
return _0x352ebb['size'] > 0x0 ? _0x352ebb : null;
|
|
1866
1862
|
} catch {
|
|
1867
1863
|
return null;
|
|
1868
1864
|
}
|
|
1869
1865
|
}
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1866
|
+
const _0x5d1d09 = new Set([
|
|
1867
|
+
_0x4a2133(_0x54f868._0x221227),
|
|
1868
|
+
_0x4a2133(0x128),
|
|
1869
|
+
_0x4a2133(_0x54f868._0x52d917)
|
|
1874
1870
|
]);
|
|
1875
|
-
async function
|
|
1876
|
-
const
|
|
1877
|
-
if (!
|
|
1871
|
+
async function _0x48e866() {
|
|
1872
|
+
const _0x577ac5 = _0x4a2133;
|
|
1873
|
+
if (!_0x426032[_0x577ac5(_0x40318a._0x2fd00c)] || !_0x426032['agentId'] || _0x426032[_0x577ac5(0x1c9)])
|
|
1878
1874
|
return null;
|
|
1879
1875
|
try {
|
|
1880
|
-
const
|
|
1881
|
-
if (!
|
|
1876
|
+
const _0x495c65 = await fetch(_0x426032[_0x577ac5(_0x40318a._0x2fd00c)] + '/workers/list?agent_id=' + encodeURIComponent(_0x426032['agentId'])), _0x1ee54f = await _0x495c65['json']();
|
|
1877
|
+
if (!_0x1ee54f['ok'])
|
|
1882
1878
|
return null;
|
|
1883
|
-
const
|
|
1884
|
-
for (const
|
|
1885
|
-
|
|
1879
|
+
const _0x15ca1a = new Set();
|
|
1880
|
+
for (const _0x48cdbd of _0x1ee54f[_0x577ac5(_0x40318a._0x5ca30f)]) {
|
|
1881
|
+
_0x5d1d09[_0x577ac5(_0x40318a._0x4e15d1)](_0x48cdbd['status']) && _0x48cdbd[_0x577ac5(0x266)] && _0x15ca1a['add'](_0x48cdbd[_0x577ac5(0x266)]);
|
|
1886
1882
|
}
|
|
1887
|
-
return
|
|
1883
|
+
return _0x15ca1a[_0x577ac5(_0x40318a._0x42669d)] > 0x0 ? _0x15ca1a : null;
|
|
1888
1884
|
} catch {
|
|
1889
1885
|
return null;
|
|
1890
1886
|
}
|
|
1891
1887
|
}
|
|
1892
1888
|
return {
|
|
1893
|
-
async 'send_message'(
|
|
1894
|
-
const
|
|
1895
|
-
if (!
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1898
|
-
const
|
|
1899
|
-
if (
|
|
1889
|
+
async 'send_message'(_0x205b9a) {
|
|
1890
|
+
const _0x857d8d = _0x4a2133;
|
|
1891
|
+
if (!_0x426032[_0x857d8d(_0x56df03._0x22f5ec)] && _0x426032[_0x857d8d(0x12a)] && _0x426032['daemonLocalUrl'] && _0x426032['agentId']) {
|
|
1892
|
+
const _0xd01cd7 = await _0x426032[_0x857d8d(0x260)][_0x857d8d(0x229)](_0x205b9a['target']);
|
|
1893
|
+
if (_0xd01cd7['task'] && _0xd01cd7[_0x857d8d(_0x56df03._0x498eb6)]) {
|
|
1894
|
+
const _0x5d1757 = _0xd01cd7[_0x857d8d(_0x56df03._0x2ad7df)][_0x857d8d(0x1cb)] != null ? '#' + _0xd01cd7[_0x857d8d(0x1a9)]['taskNumber'] : _0x857d8d(_0x56df03._0x34f556), _0x2f75b3 = _0xd01cd7[_0x857d8d(0x110)] != null ? _0xd01cd7[_0x857d8d(0x1eb)] + ':t' + _0xd01cd7[_0x857d8d(0x110)] : _0xd01cd7['target'] + ':' + _0xd01cd7[_0x857d8d(0x19e)][_0x857d8d(0x205)](0x0, 0x8), _0x3809c1 = await _0x48e866();
|
|
1895
|
+
if (_0x3809c1?.['has'](_0x2f75b3))
|
|
1900
1896
|
return [
|
|
1901
|
-
|
|
1897
|
+
_0x857d8d(_0x56df03._0x5f2094) + _0x5d1757 + _0x857d8d(_0x56df03._0x298e57) + _0x2f75b3 + _0x857d8d(0x1e5),
|
|
1902
1898
|
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1903
|
-
][
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1899
|
+
][_0x857d8d(_0x56df03._0x2f806c)]('\x0a');
|
|
1900
|
+
const _0x28cfea = [
|
|
1901
|
+
'[target=' + _0x2f75b3 + _0x857d8d(_0x56df03._0x50a197) + new Date()[_0x857d8d(0x102)]() + _0x857d8d(_0x56df03._0x46e85e),
|
|
1906
1902
|
'',
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
][
|
|
1912
|
-
'method':
|
|
1913
|
-
'headers': { 'Content-Type':
|
|
1903
|
+
_0x857d8d(_0x56df03._0x4b74dc) + _0x205b9a[_0x857d8d(_0x56df03._0x4fb762)],
|
|
1904
|
+
_0x857d8d(_0x56df03._0x36e084) + _0x5d1757 + '\x20(' + _0xd01cd7[_0x857d8d(_0x56df03._0x1856bb)]['taskId'] + ')',
|
|
1905
|
+
_0x857d8d(_0x56df03._0x1565e1) + _0x2f75b3,
|
|
1906
|
+
_0x857d8d(_0x56df03._0x553d3a)
|
|
1907
|
+
][_0x857d8d(0x170)]('\x0a'), _0x2c2ea8 = await fetch(_0x426032[_0x857d8d(_0x56df03._0x4741e5)] + _0x857d8d(0x111), {
|
|
1908
|
+
'method': 'POST',
|
|
1909
|
+
'headers': { 'Content-Type': _0x857d8d(0xf7) },
|
|
1914
1910
|
'body': JSON['stringify']({
|
|
1915
|
-
'agent_id':
|
|
1916
|
-
'thread_target':
|
|
1911
|
+
'agent_id': _0x426032[_0x857d8d(0x17c)],
|
|
1912
|
+
'thread_target': _0x2f75b3,
|
|
1917
1913
|
'spawn_packet': {
|
|
1918
|
-
'replyTarget':
|
|
1919
|
-
'taskId':
|
|
1914
|
+
'replyTarget': _0x2f75b3,
|
|
1915
|
+
'taskId': _0xd01cd7['task'][_0x857d8d(0x11b)]
|
|
1920
1916
|
},
|
|
1921
1917
|
'payload': {
|
|
1922
|
-
'mode':
|
|
1923
|
-
'text':
|
|
1918
|
+
'mode': _0x857d8d(0x115),
|
|
1919
|
+
'text': _0x28cfea
|
|
1924
1920
|
}
|
|
1925
1921
|
})
|
|
1926
|
-
}),
|
|
1927
|
-
if (!
|
|
1928
|
-
throw new Error(
|
|
1922
|
+
}), _0x27f886 = await _0x2c2ea8[_0x857d8d(0x130)]();
|
|
1923
|
+
if (!_0x27f886['ok'])
|
|
1924
|
+
throw new Error(_0x27f886['error'] ?? _0x857d8d(_0x56df03._0x590593));
|
|
1929
1925
|
return [
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
][
|
|
1926
|
+
_0x857d8d(0xff) + _0x5d1757 + '\x20in\x20' + _0x2f75b3 + '.\x20stopMain=true\x20executionMode=worker',
|
|
1927
|
+
_0x857d8d(_0x56df03._0x4a1f2d) + (_0x27f886['disposition'] === _0x857d8d(_0x56df03._0x5cd840) ? _0x857d8d(_0x56df03._0x4981a8) : 'started') + '.',
|
|
1928
|
+
_0x857d8d(0x13c)
|
|
1929
|
+
][_0x857d8d(0x170)]('\x0a');
|
|
1934
1930
|
}
|
|
1935
1931
|
}
|
|
1936
|
-
const
|
|
1937
|
-
'attachmentIds':
|
|
1938
|
-
'content':
|
|
1939
|
-
'target':
|
|
1940
|
-
'visibility':
|
|
1932
|
+
const _0x907006 = await _0x426032[_0x857d8d(0x260)][_0x857d8d(_0x56df03._0x44186d)]({
|
|
1933
|
+
'attachmentIds': _0x205b9a[_0x857d8d(0x174)],
|
|
1934
|
+
'content': _0x205b9a[_0x857d8d(_0x56df03._0x558fdf)],
|
|
1935
|
+
'target': _0x205b9a[_0x857d8d(_0x56df03._0x3631ab)],
|
|
1936
|
+
'visibility': _0x205b9a[_0x857d8d(0x16a)]
|
|
1941
1937
|
});
|
|
1942
|
-
return
|
|
1938
|
+
return _0x857d8d(_0x56df03._0x5783bc) + _0x205b9a[_0x857d8d(_0x56df03._0x2bd631)] + _0x857d8d(_0x56df03._0xe3c43e) + _0x907006[_0x857d8d(_0x56df03._0x164c88)];
|
|
1943
1939
|
},
|
|
1944
1940
|
async 'check_messages'() {
|
|
1945
|
-
const
|
|
1946
|
-
if (!
|
|
1947
|
-
const
|
|
1948
|
-
if (
|
|
1949
|
-
return formatCheckMessages(
|
|
1941
|
+
const _0x3d9569 = _0x4a2133, _0x415f29 = await _0x426032[_0x3d9569(_0x177ec9._0x3dea28)][_0x3d9569(_0x177ec9._0x2720c7)]();
|
|
1942
|
+
if (!_0x426032[_0x3d9569(_0x177ec9._0x5bdc6e)]) {
|
|
1943
|
+
const _0x14bd0d = await _0x5c22dd();
|
|
1944
|
+
if (_0x14bd0d)
|
|
1945
|
+
return formatCheckMessages(_0x415f29[_0x3d9569(_0x177ec9._0x2a231e)]['filter'](_0x59240 => !_0x14bd0d[_0x3d9569(0x127)](_0x59240[_0x3d9569(0x1eb)])));
|
|
1950
1946
|
}
|
|
1951
|
-
return formatCheckMessages(
|
|
1947
|
+
return formatCheckMessages(_0x415f29['messages']);
|
|
1952
1948
|
},
|
|
1953
|
-
async 'read_history'(
|
|
1954
|
-
const
|
|
1955
|
-
return formatHistory(
|
|
1949
|
+
async 'read_history'(_0x3831fb) {
|
|
1950
|
+
const _0x17023c = _0x4a2133, _0x343e09 = await _0x426032[_0x17023c(0x260)]['readHistory'](_0x3831fb);
|
|
1951
|
+
return formatHistory(_0x343e09);
|
|
1956
1952
|
},
|
|
1957
1953
|
async 'list_server'() {
|
|
1958
|
-
const
|
|
1959
|
-
return formatServerDirectory(
|
|
1954
|
+
const _0x1dcee8 = _0x4a2133, _0x32f958 = await _0x426032[_0x1dcee8(0x260)][_0x1dcee8(_0x25bc1b._0x389cc2)]();
|
|
1955
|
+
return formatServerDirectory(_0x32f958);
|
|
1960
1956
|
},
|
|
1961
|
-
async 'list_tasks'(
|
|
1962
|
-
const
|
|
1963
|
-
let
|
|
1964
|
-
if (
|
|
1957
|
+
async 'list_tasks'(_0x44a80a) {
|
|
1958
|
+
const _0x3842e7 = _0x4a2133, _0x2a0759 = await _0x426032['client'][_0x3842e7(0x1e7)](_0x44a80a);
|
|
1959
|
+
let _0x45b1c4;
|
|
1960
|
+
if (_0x426032[_0x3842e7(0x1cd)] && _0x426032[_0x3842e7(0x17c)])
|
|
1965
1961
|
try {
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
for (const
|
|
1971
|
-
if (
|
|
1962
|
+
const _0x2d4c75 = await fetch(_0x426032['daemonLocalUrl'] + _0x3842e7(_0x19e8a8._0x277298) + encodeURIComponent(_0x426032['agentId'])), _0x239d48 = await _0x2d4c75['json']();
|
|
1963
|
+
if (_0x239d48['ok']) {
|
|
1964
|
+
const _0x2feecf = _0x44a80a[_0x3842e7(_0x19e8a8._0x374740)] + ':';
|
|
1965
|
+
_0x45b1c4 = new Set();
|
|
1966
|
+
for (const _0xc20656 of _0x239d48[_0x3842e7(_0x19e8a8._0xabe07a)]) {
|
|
1967
|
+
if (_0xc20656[_0x3842e7(_0x19e8a8._0x281a34)] === _0x3842e7(_0x19e8a8._0x3ad6ad))
|
|
1972
1968
|
continue;
|
|
1973
|
-
if (
|
|
1974
|
-
const
|
|
1975
|
-
if (
|
|
1976
|
-
|
|
1969
|
+
if (_0xc20656[_0x3842e7(0x266)]?.[_0x3842e7(_0x19e8a8._0x8b1d80)](_0x2feecf)) {
|
|
1970
|
+
const _0x441810 = _0xc20656[_0x3842e7(0x266)][_0x3842e7(0x205)](_0x2feecf['length']), _0x5c301f = _0x2a0759[_0x3842e7(0x19d)][_0x3842e7(0x147)](_0x326f3c => _0x326f3c[_0x3842e7(0x10b)]?.[_0x3842e7(0x101)](_0x441810) === !![]);
|
|
1971
|
+
if (_0x5c301f?.[_0x3842e7(0x1cb)] != null) {
|
|
1972
|
+
_0x45b1c4[_0x3842e7(0xe9)](_0x5c301f[_0x3842e7(0x1cb)]);
|
|
1977
1973
|
continue;
|
|
1978
1974
|
}
|
|
1979
1975
|
}
|
|
1980
|
-
if (
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1976
|
+
if (_0xc20656[_0x3842e7(0x23f)]) {
|
|
1977
|
+
const _0x573957 = _0x2a0759[_0x3842e7(0x19d)]['find'](_0x11881f => _0x11881f[_0x3842e7(0x11b)] === _0xc20656['task_id']);
|
|
1978
|
+
_0x573957?.[_0x3842e7(_0x19e8a8._0x184ec9)] != null && _0x45b1c4[_0x3842e7(_0x19e8a8._0x5e8168)](_0x573957[_0x3842e7(0x1cb)]);
|
|
1983
1979
|
}
|
|
1984
1980
|
}
|
|
1985
1981
|
}
|
|
1986
1982
|
} catch {
|
|
1987
1983
|
}
|
|
1988
|
-
return formatTaskList(
|
|
1984
|
+
return formatTaskList(_0x2a0759[_0x3842e7(0x19d)], _0x45b1c4);
|
|
1989
1985
|
},
|
|
1990
|
-
async 'create_tasks'(
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
const
|
|
1994
|
-
return formatCreatedTasks(
|
|
1986
|
+
async 'create_tasks'(_0x348823) {
|
|
1987
|
+
const _0x377c3d = _0x4a2133;
|
|
1988
|
+
_0x23b41b(_0x377c3d(_0x1b1923._0x49e3a2), _0x348823['channel']);
|
|
1989
|
+
const _0x20eda0 = await _0x426032[_0x377c3d(_0x1b1923._0x2548b5)]['createTasks'](_0x348823);
|
|
1990
|
+
return formatCreatedTasks(_0x20eda0['tasks']);
|
|
1995
1991
|
},
|
|
1996
|
-
async 'claim_tasks'(
|
|
1997
|
-
const
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
}, _0x4e2ac = _0x4133d2;
|
|
2005
|
-
if (_0x41641c[_0x4e2ac(0x28e)]) {
|
|
2006
|
-
_0x33ecd8('claim_tasks', _0x2c8340[_0x4e2ac(_0x480baf._0x57f487)]);
|
|
2007
|
-
if (_0x2c8340[_0x4e2ac(0x206)] && _0x2c8340[_0x4e2ac(0x206)][_0x4e2ac(0x230)] > 0x0)
|
|
2008
|
-
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.');
|
|
2009
|
-
if (!_0x2c8340[_0x4e2ac(0x244)] || _0x2c8340[_0x4e2ac(0x244)][_0x4e2ac(0x230)] === 0x0)
|
|
2010
|
-
throw new Error(_0x4e2ac(_0x480baf._0x567633));
|
|
1992
|
+
async 'claim_tasks'(_0x38b74a) {
|
|
1993
|
+
const _0x17ed51 = _0x4a2133;
|
|
1994
|
+
if (_0x426032[_0x17ed51(_0x35b78f._0x502628)]) {
|
|
1995
|
+
_0x23b41b(_0x17ed51(0x167), _0x38b74a[_0x17ed51(0x1ad)]);
|
|
1996
|
+
if (_0x38b74a[_0x17ed51(0x22c)] && _0x38b74a[_0x17ed51(0x22c)]['length'] > 0x0)
|
|
1997
|
+
throw new Error(_0x17ed51(_0x35b78f._0x2072d1));
|
|
1998
|
+
if (!_0x38b74a['subtask_numbers'] || _0x38b74a[_0x17ed51(0x182)]['length'] === 0x0)
|
|
1999
|
+
throw new Error(_0x17ed51(_0x35b78f._0x328e84));
|
|
2011
2000
|
}
|
|
2012
|
-
const
|
|
2013
|
-
const
|
|
2014
|
-
if (!
|
|
2015
|
-
return
|
|
2001
|
+
const _0x1d70e9 = await _0x426032[_0x17ed51(0x260)]['claimTasks'](_0x38b74a), _0x9c6bc6 = await Promise[_0x17ed51(0x160)](_0x1d70e9[_0x17ed51(_0x35b78f._0x5979fb)][_0x17ed51(0x241)](async _0x47663d => {
|
|
2002
|
+
const _0x9a8159 = _0x17ed51;
|
|
2003
|
+
if (!_0x47663d[_0x9a8159(0x142)] || !_0x47663d[_0x9a8159(0x10b)])
|
|
2004
|
+
return _0x47663d;
|
|
2016
2005
|
try {
|
|
2017
|
-
const
|
|
2018
|
-
'channel':
|
|
2019
|
-
'executionMode':
|
|
2020
|
-
'messageId':
|
|
2021
|
-
'taskId':
|
|
2022
|
-
'taskNumber':
|
|
2023
|
-
'threadNumber':
|
|
2006
|
+
const _0xeabde1 = await _0x5ad0af({
|
|
2007
|
+
'channel': _0x38b74a[_0x9a8159(0x1ad)],
|
|
2008
|
+
'executionMode': _0x47663d['executionMode'],
|
|
2009
|
+
'messageId': _0x47663d['messageId'],
|
|
2010
|
+
'taskId': _0x47663d[_0x9a8159(_0x5ebfee._0x115c84)],
|
|
2011
|
+
'taskNumber': _0x47663d[_0x9a8159(0x1cb)],
|
|
2012
|
+
'threadNumber': _0x47663d[_0x9a8159(0x110)]
|
|
2024
2013
|
});
|
|
2025
|
-
return
|
|
2026
|
-
...
|
|
2027
|
-
...
|
|
2028
|
-
} :
|
|
2029
|
-
} catch (
|
|
2014
|
+
return _0xeabde1 ? {
|
|
2015
|
+
..._0x47663d,
|
|
2016
|
+
..._0xeabde1
|
|
2017
|
+
} : _0x47663d;
|
|
2018
|
+
} catch (_0x16b0f4) {
|
|
2030
2019
|
return {
|
|
2031
|
-
...
|
|
2032
|
-
'workerHandoffError':
|
|
2020
|
+
..._0x47663d,
|
|
2021
|
+
'workerHandoffError': _0x16b0f4 instanceof Error ? _0x16b0f4[_0x9a8159(0x25b)] : _0x9a8159(_0x5ebfee._0x1e3c97)
|
|
2033
2022
|
};
|
|
2034
2023
|
}
|
|
2035
2024
|
}));
|
|
2036
|
-
return formatClaimTaskResults(
|
|
2025
|
+
return formatClaimTaskResults(_0x9c6bc6);
|
|
2037
2026
|
},
|
|
2038
|
-
async 'unclaim_task'(
|
|
2039
|
-
const
|
|
2040
|
-
if (
|
|
2041
|
-
|
|
2042
|
-
if (
|
|
2043
|
-
throw new Error(
|
|
2027
|
+
async 'unclaim_task'(_0x14ab95) {
|
|
2028
|
+
const _0xdcd8b6 = _0x4a2133;
|
|
2029
|
+
if (_0x426032[_0xdcd8b6(_0x3b3f48._0x1a26ce)]) {
|
|
2030
|
+
_0x23b41b(_0xdcd8b6(0x152), _0x14ab95[_0xdcd8b6(_0x3b3f48._0x3cb50b)]);
|
|
2031
|
+
if (_0x14ab95['subtask_number'] == null)
|
|
2032
|
+
throw new Error(_0xdcd8b6(0x10c));
|
|
2044
2033
|
}
|
|
2045
|
-
const
|
|
2046
|
-
return formatUnclaimTaskResult(
|
|
2034
|
+
const _0x11a416 = await _0x426032[_0xdcd8b6(0x260)][_0xdcd8b6(0xf9)](_0x14ab95);
|
|
2035
|
+
return formatUnclaimTaskResult(_0x11a416);
|
|
2047
2036
|
},
|
|
2048
|
-
async 'update_task_status'(
|
|
2049
|
-
const
|
|
2050
|
-
|
|
2051
|
-
const
|
|
2052
|
-
return formatUpdateTaskStatusResult(
|
|
2037
|
+
async 'update_task_status'(_0x4f0ade) {
|
|
2038
|
+
const _0x4b10ef = _0x4a2133;
|
|
2039
|
+
_0x23b41b('update_task_status', _0x4f0ade[_0x4b10ef(_0x58dbea._0x2c8c89)]);
|
|
2040
|
+
const _0x2c9c54 = await _0x426032[_0x4b10ef(_0x58dbea._0x4ea3fa)]['updateTaskStatus'](_0x4f0ade);
|
|
2041
|
+
return formatUpdateTaskStatusResult(_0x2c9c54);
|
|
2053
2042
|
},
|
|
2054
|
-
async 'upload_file'(
|
|
2055
|
-
const
|
|
2056
|
-
sizeBytes:
|
|
2057
|
-
...
|
|
2058
|
-
} =
|
|
2059
|
-
'channel':
|
|
2060
|
-
...
|
|
2043
|
+
async 'upload_file'(_0x4de419) {
|
|
2044
|
+
const _0x184706 = _0x4a2133, _0x26b8eb = await _0x426032['uploadPreparer'](_0x4de419[_0x184706(0x15e)]), {
|
|
2045
|
+
sizeBytes: _0x9ea2f7,
|
|
2046
|
+
..._0x538a03
|
|
2047
|
+
} = _0x26b8eb, _0x2b73d4 = await _0x426032['client'][_0x184706(0x195)]({
|
|
2048
|
+
'channel': _0x4de419['channel'],
|
|
2049
|
+
..._0x538a03
|
|
2061
2050
|
});
|
|
2062
|
-
return formatUploadResult(
|
|
2051
|
+
return formatUploadResult(_0x2b73d4);
|
|
2063
2052
|
},
|
|
2064
|
-
async 'view_file'(
|
|
2065
|
-
const
|
|
2066
|
-
if (
|
|
2067
|
-
return formatViewFileResult(
|
|
2068
|
-
const
|
|
2069
|
-
'attachmentId':
|
|
2070
|
-
'contentType':
|
|
2071
|
-
'data':
|
|
2072
|
-
'originalFilename':
|
|
2053
|
+
async 'view_file'(_0x58d616) {
|
|
2054
|
+
const _0x1394c0 = _0x4a2133, _0x3a43bb = await _0x426032[_0x1394c0(0x1d2)]['findCachedPath'](_0x58d616[_0x1394c0(_0x35f6b3._0x1441bc)]);
|
|
2055
|
+
if (_0x3a43bb)
|
|
2056
|
+
return formatViewFileResult(_0x3a43bb, !![]);
|
|
2057
|
+
const _0x59b8c7 = await _0x426032[_0x1394c0(0x260)][_0x1394c0(0xd5)](_0x58d616[_0x1394c0(_0x35f6b3._0x1441bc)]), _0x33e6b4 = await _0x426032[_0x1394c0(0x1d2)][_0x1394c0(_0x35f6b3._0x3cdc29)]({
|
|
2058
|
+
'attachmentId': _0x58d616[_0x1394c0(_0x35f6b3._0x4d47b6)],
|
|
2059
|
+
'contentType': _0x59b8c7[_0x1394c0(_0x35f6b3._0x4a3d27)],
|
|
2060
|
+
'data': _0x59b8c7[_0x1394c0(_0x35f6b3._0x237df3)],
|
|
2061
|
+
'originalFilename': _0x59b8c7[_0x1394c0(0x1aa)]
|
|
2073
2062
|
});
|
|
2074
|
-
return formatViewFileResult(
|
|
2063
|
+
return formatViewFileResult(_0x33e6b4, ![]);
|
|
2075
2064
|
},
|
|
2076
|
-
async 'get_worker_status'(
|
|
2077
|
-
const
|
|
2078
|
-
if (!
|
|
2079
|
-
return
|
|
2080
|
-
const
|
|
2081
|
-
if (!
|
|
2082
|
-
return
|
|
2083
|
-
return
|
|
2065
|
+
async 'get_worker_status'(_0x1d33bb) {
|
|
2066
|
+
const _0x8d7f01 = _0x4a2133;
|
|
2067
|
+
if (!_0x426032['daemonLocalUrl'])
|
|
2068
|
+
return _0x8d7f01(_0x18820b._0x366400);
|
|
2069
|
+
const _0x3dc587 = await fetch(_0x426032[_0x8d7f01(_0x18820b._0x4e8d9f)] + _0x8d7f01(_0x18820b._0x417989) + encodeURIComponent(_0x1d33bb[_0x8d7f01(0x11c)])), _0xd4876e = await _0x3dc587[_0x8d7f01(0x130)]();
|
|
2070
|
+
if (!_0xd4876e['ok'])
|
|
2071
|
+
return _0x8d7f01(0x118) + _0x1d33bb[_0x8d7f01(_0x18820b._0x5eb744)] + _0x8d7f01(0x25d);
|
|
2072
|
+
return _0x8d7f01(0x118) + _0x1d33bb[_0x8d7f01(_0x18820b._0x5eb744)] + _0x8d7f01(_0x18820b._0xc42dc4) + _0xd4876e[_0x8d7f01(0x1b3)];
|
|
2084
2073
|
},
|
|
2085
|
-
async 'park_worker'(
|
|
2086
|
-
const
|
|
2087
|
-
if (!
|
|
2088
|
-
return
|
|
2089
|
-
const
|
|
2090
|
-
'method':
|
|
2091
|
-
'headers': { 'Content-Type':
|
|
2092
|
-
'body': JSON['stringify']({ 'work_key':
|
|
2093
|
-
}),
|
|
2094
|
-
if (!
|
|
2095
|
-
throw new Error(
|
|
2096
|
-
return
|
|
2074
|
+
async 'park_worker'(_0x171ea0) {
|
|
2075
|
+
const _0x2e6ee7 = _0x4a2133;
|
|
2076
|
+
if (!_0x426032[_0x2e6ee7(0x1cd)])
|
|
2077
|
+
return _0x2e6ee7(_0x1ac5bd._0x59ddbe);
|
|
2078
|
+
const _0x5cef7b = await fetch(_0x426032['daemonLocalUrl'] + _0x2e6ee7(0x1b8), {
|
|
2079
|
+
'method': _0x2e6ee7(0x1f0),
|
|
2080
|
+
'headers': { 'Content-Type': _0x2e6ee7(_0x1ac5bd._0x25eaaa) },
|
|
2081
|
+
'body': JSON['stringify']({ 'work_key': _0x171ea0['work_key'] })
|
|
2082
|
+
}), _0x5a1d97 = await _0x5cef7b['json']();
|
|
2083
|
+
if (!_0x5a1d97['ok'])
|
|
2084
|
+
throw new Error(_0x5a1d97[_0x2e6ee7(0x141)] ?? _0x2e6ee7(0xde));
|
|
2085
|
+
return _0x2e6ee7(_0x1ac5bd._0x2e1ec1) + _0x171ea0[_0x2e6ee7(_0x1ac5bd._0x232ae3)] + '\x22\x20parked.\x20Same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.';
|
|
2097
2086
|
},
|
|
2098
|
-
async 'mark_waiting_input'(
|
|
2099
|
-
const
|
|
2100
|
-
if (!
|
|
2101
|
-
return
|
|
2102
|
-
const
|
|
2087
|
+
async 'mark_waiting_input'(_0x1c9409) {
|
|
2088
|
+
const _0x104e5e = _0x4a2133;
|
|
2089
|
+
if (!_0x426032[_0x104e5e(_0x593e2b._0x1b19db)] || !_0x426032[_0x104e5e(0x17c)])
|
|
2090
|
+
return _0x104e5e(0x1ae);
|
|
2091
|
+
const _0x4db76e = await fetch(_0x426032[_0x104e5e(_0x593e2b._0x57ad0f)] + _0x104e5e(_0x593e2b._0x2940da), {
|
|
2103
2092
|
'method': 'POST',
|
|
2104
|
-
'headers': { 'Content-Type':
|
|
2105
|
-
'body': JSON[
|
|
2106
|
-
'work_key':
|
|
2107
|
-
'agent_id':
|
|
2093
|
+
'headers': { 'Content-Type': _0x104e5e(0xf7) },
|
|
2094
|
+
'body': JSON[_0x104e5e(_0x593e2b._0x261320)]({
|
|
2095
|
+
'work_key': _0x1c9409['work_key'],
|
|
2096
|
+
'agent_id': _0x426032[_0x104e5e(_0x593e2b._0x13f8af)]
|
|
2108
2097
|
})
|
|
2109
|
-
}),
|
|
2110
|
-
if (!
|
|
2111
|
-
throw new Error(
|
|
2112
|
-
return
|
|
2098
|
+
}), _0x257ac4 = await _0x4db76e[_0x104e5e(0x130)]();
|
|
2099
|
+
if (!_0x257ac4['ok'])
|
|
2100
|
+
throw new Error(_0x257ac4[_0x104e5e(0x141)] ?? 'mark_waiting_input\x20failed');
|
|
2101
|
+
return _0x104e5e(0x118) + _0x1c9409[_0x104e5e(_0x593e2b._0x36e777)] + _0x104e5e(_0x593e2b._0x43abb3);
|
|
2113
2102
|
},
|
|
2114
|
-
async 'escalate_to_main'(
|
|
2115
|
-
const
|
|
2116
|
-
if (!
|
|
2117
|
-
return
|
|
2118
|
-
const
|
|
2119
|
-
'method':
|
|
2120
|
-
'headers': { 'Content-Type':
|
|
2121
|
-
'body': JSON[
|
|
2122
|
-
'work_key':
|
|
2123
|
-
'reason':
|
|
2103
|
+
async 'escalate_to_main'(_0x274a23) {
|
|
2104
|
+
const _0x5d291a = _0x4a2133;
|
|
2105
|
+
if (!_0x426032[_0x5d291a(0x1cd)])
|
|
2106
|
+
return _0x5d291a(_0x315d8f._0x56e4e5);
|
|
2107
|
+
const _0x31f645 = await fetch(_0x426032[_0x5d291a(0x1cd)] + _0x5d291a(_0x315d8f._0x4b6c33), {
|
|
2108
|
+
'method': _0x5d291a(_0x315d8f._0x4c5eb3),
|
|
2109
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2110
|
+
'body': JSON[_0x5d291a(0x246)]({
|
|
2111
|
+
'work_key': _0x274a23[_0x5d291a(_0x315d8f._0x1f3988)],
|
|
2112
|
+
'reason': _0x274a23[_0x5d291a(0x21f)]
|
|
2124
2113
|
})
|
|
2125
|
-
}),
|
|
2126
|
-
if (!
|
|
2127
|
-
throw new Error(
|
|
2128
|
-
return
|
|
2114
|
+
}), _0x59b38a = await _0x31f645['json']();
|
|
2115
|
+
if (!_0x59b38a['ok'])
|
|
2116
|
+
throw new Error(_0x59b38a['error'] ?? 'escalate_to_main\x20failed');
|
|
2117
|
+
return _0x5d291a(_0x315d8f._0x316549) + _0x274a23[_0x5d291a(0x21f)];
|
|
2129
2118
|
}
|
|
2130
2119
|
};
|
|
2131
2120
|
}
|
|
2132
|
-
function textResult(
|
|
2133
|
-
const _0xdfcd04 = _0x57701d;
|
|
2121
|
+
function textResult(_0x18db96, _0x458e60 = ![]) {
|
|
2134
2122
|
return {
|
|
2135
2123
|
'content': [{
|
|
2136
|
-
'type':
|
|
2137
|
-
'text':
|
|
2124
|
+
'type': 'text',
|
|
2125
|
+
'text': _0x18db96
|
|
2138
2126
|
}],
|
|
2139
|
-
...
|
|
2127
|
+
..._0x458e60 ? { 'isError': !![] } : {}
|
|
2140
2128
|
};
|
|
2141
2129
|
}
|
|
2142
|
-
async function registerChatBridgeTools(
|
|
2143
|
-
const
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
},
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2130
|
+
async function registerChatBridgeTools(_0x11a904, _0x59c9ce, _0x48fdc7) {
|
|
2131
|
+
const _0x25d1a1 = {
|
|
2132
|
+
_0x3f1d75: 0x161,
|
|
2133
|
+
_0x2a8ee1: 0x107,
|
|
2134
|
+
_0x48490: 0x107,
|
|
2135
|
+
_0x36e123: 0x1af,
|
|
2136
|
+
_0x430036: 0x109,
|
|
2137
|
+
_0x2f6149: 0x161,
|
|
2138
|
+
_0x1861f0: 0x1b5,
|
|
2139
|
+
_0x32edd6: 0x232,
|
|
2140
|
+
_0x2b2d74: 0x161,
|
|
2141
|
+
_0x3e15d6: 0xf8,
|
|
2142
|
+
_0xb125ab: 0x138,
|
|
2143
|
+
_0x528883: 0x125,
|
|
2144
|
+
_0x3f37e7: 0x251,
|
|
2145
|
+
_0x2b6449: 0x175,
|
|
2146
|
+
_0x4e0bef: 0x125,
|
|
2147
|
+
_0x28f184: 0x1be,
|
|
2148
|
+
_0x434d5e: 0x206,
|
|
2149
|
+
_0x3fd104: 0x12c,
|
|
2150
|
+
_0x271a24: 0x125,
|
|
2151
|
+
_0x2558d2: 0x1af,
|
|
2152
|
+
_0x109d9e: 0x107,
|
|
2153
|
+
_0x72d6a8: 0xf5,
|
|
2154
|
+
_0x154f01: 0x1de,
|
|
2155
|
+
_0x16c032: 0x13e,
|
|
2156
|
+
_0x24eea4: 0x152,
|
|
2157
|
+
_0x255773: 0x21b,
|
|
2158
|
+
_0x39a87d: 0x138,
|
|
2159
|
+
_0x577cb6: 0x125,
|
|
2160
|
+
_0x5b1cab: 0x107,
|
|
2161
|
+
_0x4355c8: 0x125,
|
|
2162
|
+
_0x59e0e0: 0x135,
|
|
2163
|
+
_0x52af29: 0x125,
|
|
2164
|
+
_0x1596af: 0x1be,
|
|
2165
|
+
_0xf4ee0: 0xe6,
|
|
2166
|
+
_0x44df13: 0x25e,
|
|
2167
|
+
_0xa611b1: 0x129,
|
|
2168
|
+
_0x2bf2b4: 0x24a,
|
|
2169
|
+
_0x497c1d: 0x164,
|
|
2170
|
+
_0x4b53e0: 0x18f,
|
|
2171
|
+
_0x4494ba: 0x15b,
|
|
2172
|
+
_0x1d9820: 0x107,
|
|
2173
|
+
_0x452177: 0x1c9,
|
|
2174
|
+
_0x32367f: 0x1fb,
|
|
2175
|
+
_0xf385a: 0x107
|
|
2176
|
+
}, _0x2ae2ca = { _0x26543a: 0x25b }, _0x1bbb18 = { _0x56a03f: 0x14d }, _0x12bd70 = {
|
|
2177
|
+
_0x49c81b: 0x220,
|
|
2178
|
+
_0x4f721f: 0xde
|
|
2179
|
+
}, _0x567b3c = {
|
|
2180
|
+
_0x1373bd: 0x18f,
|
|
2181
|
+
_0x20c87c: 0x223
|
|
2182
|
+
}, _0x133b85 = { _0x27090c: 0x24a }, _0x3657b5 = {
|
|
2183
|
+
_0x39c49f: 0x135,
|
|
2184
|
+
_0x2c829f: 0x25b,
|
|
2185
|
+
_0x402506: 0x222
|
|
2186
|
+
}, _0x5912db = { _0x4c5378: 0x152 }, _0x3b4535 = {
|
|
2187
|
+
_0x2cb54b: 0x167,
|
|
2188
|
+
_0xa1c981: 0x196
|
|
2189
|
+
}, _0x31e54e = { _0xd74b3c: 0x25b }, _0x5df704 = { _0x524094: 0x18a }, _0x2bfc1a = { _0x21fbea: 0x1c8 }, _0x582f5a = { _0x55ea77: 0x21c }, _0x338da7 = { _0x4884d2: 0x25b }, _0x36283c = { _0x5aff83: 0x25b }, _0x5708de = _0x456b7e, {z: _0x55a6fe} = await import('zod');
|
|
2190
|
+
_0x11a904[_0x5708de(_0x25d1a1._0x3f1d75)](_0x5708de(0x267), _0x5708de(0x18e), {
|
|
2191
|
+
'target': _0x55a6fe[_0x5708de(_0x25d1a1._0x2a8ee1)](),
|
|
2192
|
+
'content': _0x55a6fe[_0x5708de(_0x25d1a1._0x48490)](),
|
|
2193
|
+
'attachment_ids': _0x55a6fe[_0x5708de(_0x25d1a1._0x36e123)](_0x55a6fe[_0x5708de(_0x25d1a1._0x2a8ee1)]())['optional'](),
|
|
2194
|
+
'visibility': _0x55a6fe['enum']([
|
|
2195
|
+
_0x5708de(_0x25d1a1._0x430036),
|
|
2196
|
+
_0x5708de(0x1fc)
|
|
2197
|
+
])['optional']()[_0x5708de(0x1d4)](_0x5708de(0x249))
|
|
2198
|
+
}, async _0x222d78 => {
|
|
2199
|
+
const _0x3d3186 = _0x5708de;
|
|
2208
2200
|
try {
|
|
2209
|
-
return textResult(await
|
|
2210
|
-
} catch (
|
|
2211
|
-
return textResult(
|
|
2201
|
+
return textResult(await _0x59c9ce[_0x3d3186(0x267)](_0x222d78));
|
|
2202
|
+
} catch (_0x47fb1e) {
|
|
2203
|
+
return textResult(_0x47fb1e instanceof Error ? _0x47fb1e[_0x3d3186(_0x36283c._0x5aff83)] : _0x3d3186(0x263), !![]);
|
|
2212
2204
|
}
|
|
2213
|
-
}),
|
|
2214
|
-
const
|
|
2205
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2f6149)](_0x5708de(_0x25d1a1._0x1861f0), _0x5708de(_0x25d1a1._0x32edd6), {}, async () => {
|
|
2206
|
+
const _0x1e148e = _0x5708de;
|
|
2215
2207
|
try {
|
|
2216
|
-
return textResult(await
|
|
2217
|
-
} catch (
|
|
2218
|
-
return textResult(
|
|
2208
|
+
return textResult(await _0x59c9ce[_0x1e148e(0x1b5)]());
|
|
2209
|
+
} catch (_0x282ab7) {
|
|
2210
|
+
return textResult(_0x282ab7 instanceof Error ? _0x282ab7[_0x1e148e(_0x338da7._0x4884d2)] : 'check_messages\x20failed', !![]);
|
|
2219
2211
|
}
|
|
2220
|
-
}),
|
|
2221
|
-
'channel':
|
|
2222
|
-
'limit':
|
|
2223
|
-
'before':
|
|
2224
|
-
'after':
|
|
2225
|
-
}, async
|
|
2226
|
-
const
|
|
2212
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2b2d74)](_0x5708de(0x21c), _0x5708de(_0x25d1a1._0x3e15d6), {
|
|
2213
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2214
|
+
'limit': _0x55a6fe[_0x5708de(_0x25d1a1._0xb125ab)]()['optional'](),
|
|
2215
|
+
'before': _0x55a6fe[_0x5708de(_0x25d1a1._0xb125ab)]()[_0x5708de(_0x25d1a1._0x528883)](),
|
|
2216
|
+
'after': _0x55a6fe[_0x5708de(0x138)]()['optional']()
|
|
2217
|
+
}, async _0x48add5 => {
|
|
2218
|
+
const _0x492adc = _0x5708de;
|
|
2227
2219
|
try {
|
|
2228
|
-
return textResult(await
|
|
2229
|
-
} catch (
|
|
2230
|
-
return textResult(
|
|
2220
|
+
return textResult(await _0x59c9ce[_0x492adc(_0x582f5a._0x55ea77)](_0x48add5));
|
|
2221
|
+
} catch (_0x29f40e) {
|
|
2222
|
+
return textResult(_0x29f40e instanceof Error ? _0x29f40e[_0x492adc(0x25b)] : 'read_history\x20failed', !![]);
|
|
2231
2223
|
}
|
|
2232
|
-
}),
|
|
2233
|
-
const
|
|
2224
|
+
}), _0x11a904['tool'](_0x5708de(0x1c8), _0x5708de(_0x25d1a1._0x3f37e7), {}, async () => {
|
|
2225
|
+
const _0x42da6e = _0x5708de;
|
|
2234
2226
|
try {
|
|
2235
|
-
return textResult(await
|
|
2236
|
-
} catch (
|
|
2237
|
-
return textResult(
|
|
2227
|
+
return textResult(await _0x59c9ce[_0x42da6e(_0x2bfc1a._0x21fbea)]());
|
|
2228
|
+
} catch (_0x4961c2) {
|
|
2229
|
+
return textResult(_0x4961c2 instanceof Error ? _0x4961c2[_0x42da6e(0x25b)] : _0x42da6e(0x10f), !![]);
|
|
2238
2230
|
}
|
|
2239
|
-
}),
|
|
2240
|
-
'channel':
|
|
2241
|
-
'status':
|
|
2231
|
+
}), _0x11a904[_0x5708de(0x161)](_0x5708de(0x1a4), '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).', {
|
|
2232
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2233
|
+
'status': _0x55a6fe[_0x5708de(0x1be)]([
|
|
2242
2234
|
'todo',
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
])[
|
|
2247
|
-
}, async
|
|
2248
|
-
const
|
|
2235
|
+
'in_progress',
|
|
2236
|
+
_0x5708de(0x1a6),
|
|
2237
|
+
_0x5708de(_0x25d1a1._0x2b6449)
|
|
2238
|
+
])[_0x5708de(0x125)]()
|
|
2239
|
+
}, async _0x1bfd5f => {
|
|
2240
|
+
const _0x2e01f3 = _0x5708de;
|
|
2249
2241
|
try {
|
|
2250
|
-
return textResult(await
|
|
2251
|
-
} catch (
|
|
2252
|
-
return textResult(
|
|
2242
|
+
return textResult(await _0x59c9ce['list_tasks'](_0x1bfd5f));
|
|
2243
|
+
} catch (_0x364613) {
|
|
2244
|
+
return textResult(_0x364613 instanceof Error ? _0x364613[_0x2e01f3(0x25b)] : _0x2e01f3(_0x5df704._0x524094), !![]);
|
|
2253
2245
|
}
|
|
2254
|
-
}),
|
|
2255
|
-
'channel':
|
|
2256
|
-
'idempotency_key':
|
|
2257
|
-
'tasks':
|
|
2258
|
-
'title':
|
|
2259
|
-
'description':
|
|
2260
|
-
'priority':
|
|
2261
|
-
|
|
2262
|
-
|
|
2246
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x3f1d75)]('create_tasks', _0x5708de(0x13f), {
|
|
2247
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2248
|
+
'idempotency_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x48490)]()[_0x5708de(0x125)](),
|
|
2249
|
+
'tasks': _0x55a6fe['array'](_0x55a6fe['object']({
|
|
2250
|
+
'title': _0x55a6fe[_0x5708de(0x107)](),
|
|
2251
|
+
'description': _0x55a6fe[_0x5708de(0x107)]()[_0x5708de(_0x25d1a1._0x4e0bef)](),
|
|
2252
|
+
'priority': _0x55a6fe[_0x5708de(_0x25d1a1._0x28f184)]([
|
|
2253
|
+
_0x5708de(_0x25d1a1._0x434d5e),
|
|
2254
|
+
_0x5708de(0x1d8),
|
|
2263
2255
|
'high',
|
|
2264
|
-
|
|
2265
|
-
])[
|
|
2256
|
+
'urgent'
|
|
2257
|
+
])[_0x5708de(0x125)]()
|
|
2266
2258
|
}))
|
|
2267
|
-
}, async
|
|
2268
|
-
const
|
|
2259
|
+
}, async _0x4d1df5 => {
|
|
2260
|
+
const _0x5ee2c4 = _0x5708de;
|
|
2269
2261
|
try {
|
|
2270
|
-
return textResult(await
|
|
2271
|
-
} catch (
|
|
2272
|
-
return textResult(
|
|
2262
|
+
return textResult(await _0x59c9ce[_0x5ee2c4(0x15d)](_0x4d1df5));
|
|
2263
|
+
} catch (_0x37835a) {
|
|
2264
|
+
return textResult(_0x37835a instanceof Error ? _0x37835a[_0x5ee2c4(_0x31e54e._0xd74b3c)] : 'create_tasks\x20failed', !![]);
|
|
2273
2265
|
}
|
|
2274
|
-
}),
|
|
2275
|
-
'channel':
|
|
2276
|
-
'task_numbers':
|
|
2277
|
-
'subtask_numbers':
|
|
2278
|
-
'message_ids':
|
|
2279
|
-
'evidence':
|
|
2280
|
-
'create_thread':
|
|
2281
|
-
'create_task':
|
|
2282
|
-
}))[
|
|
2283
|
-
'idempotency_key':
|
|
2284
|
-
}, async
|
|
2285
|
-
const
|
|
2266
|
+
}), _0x11a904[_0x5708de(0x161)]('claim_tasks', _0x5708de(_0x25d1a1._0x3fd104), {
|
|
2267
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2268
|
+
'task_numbers': _0x55a6fe['array'](_0x55a6fe['number']())['optional'](),
|
|
2269
|
+
'subtask_numbers': _0x55a6fe[_0x5708de(0x1af)](_0x55a6fe['number']())[_0x5708de(_0x25d1a1._0x271a24)](),
|
|
2270
|
+
'message_ids': _0x55a6fe[_0x5708de(_0x25d1a1._0x2558d2)](_0x55a6fe[_0x5708de(_0x25d1a1._0x109d9e)]())['optional'](),
|
|
2271
|
+
'evidence': _0x55a6fe[_0x5708de(_0x25d1a1._0x72d6a8)](_0x55a6fe[_0x5708de(0x107)](), _0x55a6fe[_0x5708de(_0x25d1a1._0x154f01)]({
|
|
2272
|
+
'create_thread': _0x55a6fe[_0x5708de(0x13e)]()[_0x5708de(_0x25d1a1._0x528883)](),
|
|
2273
|
+
'create_task': _0x55a6fe[_0x5708de(_0x25d1a1._0x16c032)]()[_0x5708de(0x125)]()
|
|
2274
|
+
}))[_0x5708de(0x125)](),
|
|
2275
|
+
'idempotency_key': _0x55a6fe['string']()[_0x5708de(0x125)]()
|
|
2276
|
+
}, async _0x3c5b8e => {
|
|
2277
|
+
const _0x28d3ef = _0x5708de;
|
|
2286
2278
|
try {
|
|
2287
|
-
return textResult(await
|
|
2288
|
-
} catch (
|
|
2289
|
-
return textResult(
|
|
2279
|
+
return textResult(await _0x59c9ce[_0x28d3ef(_0x3b4535._0x2cb54b)](_0x3c5b8e));
|
|
2280
|
+
} catch (_0x45b4ba) {
|
|
2281
|
+
return textResult(_0x45b4ba instanceof Error ? _0x45b4ba[_0x28d3ef(0x25b)] : _0x28d3ef(_0x3b4535._0xa1c981), !![]);
|
|
2290
2282
|
}
|
|
2291
|
-
}),
|
|
2292
|
-
'channel':
|
|
2293
|
-
'task_number':
|
|
2294
|
-
'subtask_number':
|
|
2295
|
-
'idempotency_key':
|
|
2296
|
-
}, async
|
|
2297
|
-
const
|
|
2283
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2b2d74)](_0x5708de(_0x25d1a1._0x24eea4), _0x5708de(_0x25d1a1._0x255773), {
|
|
2284
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2285
|
+
'task_number': _0x55a6fe[_0x5708de(0x138)](),
|
|
2286
|
+
'subtask_number': _0x55a6fe[_0x5708de(_0x25d1a1._0x39a87d)]()[_0x5708de(_0x25d1a1._0x577cb6)](),
|
|
2287
|
+
'idempotency_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x5b1cab)]()[_0x5708de(_0x25d1a1._0x4355c8)]()
|
|
2288
|
+
}, async _0x471d3a => {
|
|
2289
|
+
const _0x5e917b = _0x5708de;
|
|
2298
2290
|
try {
|
|
2299
|
-
return textResult(await
|
|
2300
|
-
} catch (
|
|
2301
|
-
return textResult(
|
|
2291
|
+
return textResult(await _0x59c9ce[_0x5e917b(_0x5912db._0x4c5378)](_0x471d3a));
|
|
2292
|
+
} catch (_0x2a191c) {
|
|
2293
|
+
return textResult(_0x2a191c instanceof Error ? _0x2a191c['message'] : 'unclaim_task\x20failed', !![]);
|
|
2302
2294
|
}
|
|
2303
|
-
}),
|
|
2304
|
-
'channel':
|
|
2305
|
-
'task_number':
|
|
2306
|
-
'subtask_number':
|
|
2307
|
-
'status':
|
|
2308
|
-
|
|
2309
|
-
|
|
2295
|
+
}), _0x11a904[_0x5708de(_0x25d1a1._0x2f6149)](_0x5708de(_0x25d1a1._0x59e0e0), _0x5708de(0x1ff), {
|
|
2296
|
+
'channel': _0x55a6fe[_0x5708de(_0x25d1a1._0x48490)](),
|
|
2297
|
+
'task_number': _0x55a6fe['number'](),
|
|
2298
|
+
'subtask_number': _0x55a6fe[_0x5708de(_0x25d1a1._0x39a87d)]()[_0x5708de(_0x25d1a1._0x52af29)](),
|
|
2299
|
+
'status': _0x55a6fe[_0x5708de(_0x25d1a1._0x1596af)]([
|
|
2300
|
+
_0x5708de(_0x25d1a1._0xf4ee0),
|
|
2301
|
+
_0x5708de(_0x25d1a1._0x44df13),
|
|
2310
2302
|
'in_review',
|
|
2311
|
-
|
|
2303
|
+
_0x5708de(0x175)
|
|
2312
2304
|
]),
|
|
2313
|
-
'idempotency_key':
|
|
2314
|
-
}, async
|
|
2315
|
-
const
|
|
2305
|
+
'idempotency_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x5b1cab)]()[_0x5708de(_0x25d1a1._0x528883)]()
|
|
2306
|
+
}, async _0x179111 => {
|
|
2307
|
+
const _0x159330 = _0x5708de;
|
|
2316
2308
|
try {
|
|
2317
|
-
return textResult(await
|
|
2318
|
-
} catch (
|
|
2319
|
-
return textResult(
|
|
2309
|
+
return textResult(await _0x59c9ce[_0x159330(_0x3657b5._0x39c49f)](_0x179111));
|
|
2310
|
+
} catch (_0x3e8ae9) {
|
|
2311
|
+
return textResult(_0x3e8ae9 instanceof Error ? _0x3e8ae9[_0x159330(_0x3657b5._0x2c829f)] : _0x159330(_0x3657b5._0x402506), !![]);
|
|
2320
2312
|
}
|
|
2321
|
-
}),
|
|
2322
|
-
'channel':
|
|
2323
|
-
'file_path':
|
|
2324
|
-
}, async
|
|
2325
|
-
const
|
|
2313
|
+
}), _0x11a904[_0x5708de(0x161)](_0x5708de(_0x25d1a1._0xa611b1), 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2314
|
+
'channel': _0x55a6fe[_0x5708de(0x107)](),
|
|
2315
|
+
'file_path': _0x55a6fe['string']()
|
|
2316
|
+
}, async _0x43a0d7 => {
|
|
2317
|
+
const _0x348343 = _0x5708de;
|
|
2326
2318
|
try {
|
|
2327
|
-
return textResult(await
|
|
2328
|
-
} catch (
|
|
2329
|
-
return textResult(
|
|
2319
|
+
return textResult(await _0x59c9ce['upload_file'](_0x43a0d7));
|
|
2320
|
+
} catch (_0x3a8d8c) {
|
|
2321
|
+
return textResult(_0x3a8d8c instanceof Error ? _0x3a8d8c[_0x348343(0x25b)] : _0x348343(0x197), !![]);
|
|
2330
2322
|
}
|
|
2331
|
-
}),
|
|
2332
|
-
const
|
|
2323
|
+
}), _0x11a904['tool'](_0x5708de(_0x25d1a1._0x2bf2b4), _0x5708de(_0x25d1a1._0x497c1d), { 'attachment_id': _0x55a6fe[_0x5708de(0x107)]() }, async _0x49402d => {
|
|
2324
|
+
const _0x2c3b34 = _0x5708de;
|
|
2333
2325
|
try {
|
|
2334
|
-
return textResult(await
|
|
2335
|
-
} catch (
|
|
2336
|
-
return textResult(
|
|
2326
|
+
return textResult(await _0x59c9ce[_0x2c3b34(_0x133b85._0x27090c)](_0x49402d));
|
|
2327
|
+
} catch (_0x38c6a7) {
|
|
2328
|
+
return textResult(_0x38c6a7 instanceof Error ? _0x38c6a7[_0x2c3b34(0x25b)] : _0x2c3b34(0x120), !![]);
|
|
2337
2329
|
}
|
|
2338
|
-
}),
|
|
2339
|
-
const
|
|
2330
|
+
}), _0x11a904[_0x5708de(0x161)](_0x5708de(_0x25d1a1._0x4b53e0), _0x5708de(0x1fd), { 'work_key': _0x55a6fe['string']() }, async _0x55412e => {
|
|
2331
|
+
const _0x546ec7 = _0x5708de;
|
|
2340
2332
|
try {
|
|
2341
|
-
return textResult(await
|
|
2342
|
-
} catch (
|
|
2343
|
-
return textResult(
|
|
2333
|
+
return textResult(await _0x59c9ce[_0x546ec7(_0x567b3c._0x1373bd)](_0x55412e));
|
|
2334
|
+
} catch (_0x5d0224) {
|
|
2335
|
+
return textResult(_0x5d0224 instanceof Error ? _0x5d0224['message'] : _0x546ec7(_0x567b3c._0x20c87c), !![]);
|
|
2344
2336
|
}
|
|
2345
|
-
}),
|
|
2346
|
-
const
|
|
2337
|
+
}), _0x11a904['tool']('park_worker', _0x5708de(_0x25d1a1._0x4494ba), { 'work_key': _0x55a6fe[_0x5708de(_0x25d1a1._0x1d9820)]() }, async _0x46f1eb => {
|
|
2338
|
+
const _0x2d1810 = _0x5708de;
|
|
2347
2339
|
try {
|
|
2348
|
-
return textResult(await
|
|
2349
|
-
} catch (
|
|
2350
|
-
return textResult(
|
|
2340
|
+
return textResult(await _0x59c9ce[_0x2d1810(_0x12bd70._0x49c81b)](_0x46f1eb));
|
|
2341
|
+
} catch (_0x55f737) {
|
|
2342
|
+
return textResult(_0x55f737 instanceof Error ? _0x55f737[_0x2d1810(0x25b)] : _0x2d1810(_0x12bd70._0x4f721f), !![]);
|
|
2351
2343
|
}
|
|
2352
|
-
}), !
|
|
2353
|
-
'work_key':
|
|
2354
|
-
'reason':
|
|
2355
|
-
}, async
|
|
2356
|
-
const
|
|
2344
|
+
}), !_0x48fdc7?.[_0x5708de(_0x25d1a1._0x452177)] && _0x11a904[_0x5708de(0x161)](_0x5708de(0x244), _0x5708de(_0x25d1a1._0x32367f), {
|
|
2345
|
+
'work_key': _0x55a6fe['string'](),
|
|
2346
|
+
'reason': _0x55a6fe[_0x5708de(_0x25d1a1._0xf385a)]()
|
|
2347
|
+
}, async _0x3a843c => {
|
|
2348
|
+
const _0x520bb2 = _0x5708de;
|
|
2357
2349
|
try {
|
|
2358
|
-
return textResult(await
|
|
2359
|
-
} catch (
|
|
2360
|
-
return textResult(
|
|
2350
|
+
return textResult(await _0x59c9ce['escalate_to_main'](_0x3a843c));
|
|
2351
|
+
} catch (_0x2a9baa) {
|
|
2352
|
+
return textResult(_0x2a9baa instanceof Error ? _0x2a9baa[_0x520bb2(0x25b)] : _0x520bb2(_0x1bbb18._0x56a03f), !![]);
|
|
2361
2353
|
}
|
|
2362
|
-
}),
|
|
2363
|
-
const
|
|
2354
|
+
}), _0x48fdc7?.[_0x5708de(0x1c9)] && _0x11a904[_0x5708de(0x161)]('mark_waiting_input', _0x5708de(0x23c), { 'work_key': _0x55a6fe['string']() }, async _0x2b1ec7 => {
|
|
2355
|
+
const _0xeccc82 = _0x5708de;
|
|
2364
2356
|
try {
|
|
2365
|
-
return textResult(await
|
|
2366
|
-
} catch (
|
|
2367
|
-
return textResult(
|
|
2357
|
+
return textResult(await _0x59c9ce['mark_waiting_input'](_0x2b1ec7));
|
|
2358
|
+
} catch (_0x4c6170) {
|
|
2359
|
+
return textResult(_0x4c6170 instanceof Error ? _0x4c6170[_0xeccc82(_0x2ae2ca._0x26543a)] : 'mark_waiting_input\x20failed', !![]);
|
|
2368
2360
|
}
|
|
2369
2361
|
});
|
|
2370
2362
|
}
|
|
2371
|
-
async function createChatBridgeServer(
|
|
2372
|
-
const
|
|
2373
|
-
'name':
|
|
2374
|
-
'version':
|
|
2375
|
-
}),
|
|
2376
|
-
return await registerChatBridgeTools(
|
|
2377
|
-
'handlers':
|
|
2378
|
-
'server':
|
|
2363
|
+
async function createChatBridgeServer(_0x51bba8) {
|
|
2364
|
+
const _0x536f09 = { _0x59a56f: 0x1c9 }, _0x3ef75b = _0x456b7e, {McpServer: _0x4481e3} = await import(_0x3ef75b(0x1c2)), _0x1a27e6 = new _0x4481e3({
|
|
2365
|
+
'name': _0x3ef75b(0x18c),
|
|
2366
|
+
'version': _0x3ef75b(0x1cc)
|
|
2367
|
+
}), _0x513a20 = createChatBridgeHandlers(_0x51bba8);
|
|
2368
|
+
return await registerChatBridgeTools(_0x1a27e6, _0x513a20, { 'workerMode': _0x51bba8[_0x3ef75b(_0x536f09._0x59a56f)] }), {
|
|
2369
|
+
'handlers': _0x513a20,
|
|
2370
|
+
'server': _0x1a27e6
|
|
2379
2371
|
};
|
|
2380
2372
|
}
|
|
2381
|
-
function readFlag(
|
|
2382
|
-
const
|
|
2383
|
-
if (
|
|
2373
|
+
function readFlag(_0x142de8, _0x46b4e0) {
|
|
2374
|
+
const _0x479258 = { _0x547ff3: 0x12b }, _0x315f2b = _0x456b7e, _0x185cd5 = _0x142de8[_0x315f2b(_0x479258._0x547ff3)](_0x46b4e0);
|
|
2375
|
+
if (_0x185cd5 === -0x1)
|
|
2384
2376
|
return void 0x0;
|
|
2385
|
-
return
|
|
2377
|
+
return _0x142de8[_0x185cd5 + 0x1];
|
|
2386
2378
|
}
|
|
2387
|
-
function parseChatBridgeArgs(
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2379
|
+
function parseChatBridgeArgs(_0xc31314) {
|
|
2380
|
+
const _0x2185e3 = {
|
|
2381
|
+
_0x416ebc: 0x200,
|
|
2382
|
+
_0x3ac3c4: 0x221,
|
|
2383
|
+
_0x4c1153: 0x191,
|
|
2384
|
+
_0x1baf88: 0x1ac,
|
|
2385
|
+
_0x40e90f: 0x183,
|
|
2386
|
+
_0x2a7246: 0x20b,
|
|
2387
|
+
_0x432a92: 0x134,
|
|
2388
|
+
_0x3556f0: 0x253,
|
|
2389
|
+
_0x57143e: 0xe0,
|
|
2390
|
+
_0xda47ff: 0x150
|
|
2391
|
+
}, _0x4ca3bc = _0x456b7e, _0x3ed37c = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x416ebc)), _0x2e97cc = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x3ac3c4)), _0x372221 = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x4c1153)), _0x28308a = readFlag(_0xc31314, _0x4ca3bc(0x16f)), _0x4de272 = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x1baf88)) ?? _0x4ca3bc(_0x2185e3._0x40e90f), _0x45a1b0 = readFlag(_0xc31314, _0x4ca3bc(_0x2185e3._0x2a7246)), _0x1d160f = readFlag(_0xc31314, _0x4ca3bc(0x217)), _0x17e54d = readFlag(_0xc31314, '--worker-mode-enabled'), _0x190b00 = readFlag(_0xc31314, _0x4ca3bc(0x1ef)), _0x3b2432 = readFlag(_0xc31314, _0x4ca3bc(0xef)), _0x3ecf24 = _0xc31314[_0x4ca3bc(0x17a)](_0x4ca3bc(_0x2185e3._0x432a92)), _0x10eaea = _0x28308a === void 0x0 ? void 0x0 : Number[_0x4ca3bc(_0x2185e3._0x3556f0)](_0x28308a, 0xa);
|
|
2392
|
+
if (!_0x3ed37c)
|
|
2393
|
+
throw new Error(_0x4ca3bc(0x122));
|
|
2394
|
+
if (!_0x372221)
|
|
2395
|
+
throw new Error(_0x4ca3bc(_0x2185e3._0x57143e));
|
|
2396
|
+
if (_0x28308a !== void 0x0 && (_0x10eaea === void 0x0 || !Number[_0x4ca3bc(0x168)](_0x10eaea) || _0x10eaea < 0x0))
|
|
2397
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2405
2398
|
return {
|
|
2406
|
-
'agentId':
|
|
2407
|
-
'attachmentCacheDir':
|
|
2408
|
-
'daemonApiKey':
|
|
2409
|
-
'daemonLocalUrl':
|
|
2410
|
-
'initialLastSeenSeq':
|
|
2411
|
-
'sessionId':
|
|
2412
|
-
'serverUrl':
|
|
2413
|
-
'workerModeEnabled':
|
|
2414
|
-
'workerSessionId':
|
|
2415
|
-
'workerThreadTarget':
|
|
2416
|
-
'workerMode':
|
|
2399
|
+
'agentId': _0x3ed37c,
|
|
2400
|
+
'attachmentCacheDir': _0x2e97cc,
|
|
2401
|
+
'daemonApiKey': _0x372221,
|
|
2402
|
+
'daemonLocalUrl': _0x45a1b0,
|
|
2403
|
+
'initialLastSeenSeq': _0x10eaea,
|
|
2404
|
+
'sessionId': _0x1d160f,
|
|
2405
|
+
'serverUrl': _0x4de272,
|
|
2406
|
+
'workerModeEnabled': _0x17e54d === void 0x0 ? void 0x0 : _0x17e54d !== _0x4ca3bc(_0x2185e3._0xda47ff),
|
|
2407
|
+
'workerSessionId': _0x190b00,
|
|
2408
|
+
'workerThreadTarget': _0x3b2432,
|
|
2409
|
+
'workerMode': _0x3ecf24
|
|
2417
2410
|
};
|
|
2418
2411
|
}
|
|
2419
|
-
async function runChatBridgeCli(
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
'agentId': _0x2b2445['agentId'],
|
|
2426
|
-
'attachmentCache': _0x191c4f,
|
|
2427
|
-
'client': _0x42c33f,
|
|
2428
|
-
'daemonLocalUrl': _0x2b2445[_0x1ed473(0x2a9)],
|
|
2412
|
+
async function runChatBridgeCli(_0x2f7642) {
|
|
2413
|
+
const _0x571d71 = { _0xe02fcc: 0xd7 }, _0x35e0ce = _0x456b7e, _0x5aa63d = parseChatBridgeArgs(_0x2f7642), {StdioServerTransport: _0x1f7dac} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x4359b1 = createInternalAgentClient(_0x5aa63d), _0x3b8fa6 = createAttachmentCache({ 'cacheDir': _0x5aa63d[_0x35e0ce(0x1c4)] }), _0x5caa20 = await createChatBridgeServer({
|
|
2414
|
+
'agentId': _0x5aa63d[_0x35e0ce(0x17c)],
|
|
2415
|
+
'attachmentCache': _0x3b8fa6,
|
|
2416
|
+
'client': _0x4359b1,
|
|
2417
|
+
'daemonLocalUrl': _0x5aa63d['daemonLocalUrl'],
|
|
2429
2418
|
'uploadPreparer': prepareUploadFile,
|
|
2430
|
-
'workerModeEnabled':
|
|
2431
|
-
'workerMode':
|
|
2432
|
-
'workerThreadTarget':
|
|
2419
|
+
'workerModeEnabled': _0x5aa63d['workerModeEnabled'],
|
|
2420
|
+
'workerMode': _0x5aa63d[_0x35e0ce(0x1c9)],
|
|
2421
|
+
'workerThreadTarget': _0x5aa63d[_0x35e0ce(_0x571d71._0xe02fcc)]
|
|
2433
2422
|
});
|
|
2434
|
-
await
|
|
2423
|
+
await _0x5caa20['server'][_0x35e0ce(0x240)](new _0x1f7dac());
|
|
2435
2424
|
}
|
|
2436
|
-
var executedAsEntry = process[
|
|
2437
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2425
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x456b7e(0x1da)][0x1])[_0x456b7e(0x23a)] : ![];
|
|
2426
|
+
executedAsEntry && await runChatBridgeCli(process[_0x456b7e(0x1da)][_0x456b7e(0x205)](0x2));
|
|
2438
2427
|
export {
|
|
2439
2428
|
createChatBridgeHandlers,
|
|
2440
2429
|
createChatBridgeServer,
|