@dscord/daemon 0.1.67 → 0.1.69
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 +1975 -1990
- package/dist/index.js +9947 -9923
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
1
|
+
const _0x10d6b5 = _0x35b1;
|
|
2
|
+
(function (_0x4f542f, _0x131633) {
|
|
3
|
+
const _0x52b50b = {
|
|
4
|
+
_0x18f83d: 0x192,
|
|
5
|
+
_0x5c34f2: 0x1f0,
|
|
6
|
+
_0x380e55: 0x127,
|
|
7
|
+
_0x3a26e0: 0x2a3
|
|
8
|
+
}, _0x4a87f0 = _0x35b1, _0x4c6ce3 = _0x4f542f();
|
|
9
9
|
while (!![]) {
|
|
10
10
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
11
|
+
const _0x8e02e5 = parseInt(_0x4a87f0(_0x52b50b._0x18f83d)) / 0x1 + -parseInt(_0x4a87f0(_0x52b50b._0x5c34f2)) / 0x2 * (parseInt(_0x4a87f0(0x2ae)) / 0x3) + -parseInt(_0x4a87f0(0x263)) / 0x4 + -parseInt(_0x4a87f0(0x22c)) / 0x5 * (parseInt(_0x4a87f0(0x26d)) / 0x6) + -parseInt(_0x4a87f0(_0x52b50b._0x380e55)) / 0x7 + parseInt(_0x4a87f0(0x16c)) / 0x8 * (-parseInt(_0x4a87f0(_0x52b50b._0x3a26e0)) / 0x9) + parseInt(_0x4a87f0(0x123)) / 0xa;
|
|
12
|
+
if (_0x8e02e5 === _0x131633)
|
|
13
13
|
break;
|
|
14
14
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
15
|
+
_0x4c6ce3['push'](_0x4c6ce3['shift']());
|
|
16
|
+
} catch (_0x356106) {
|
|
17
|
+
_0x4c6ce3['push'](_0x4c6ce3['shift']());
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
}(
|
|
20
|
+
}(_0xdbc3, 0xdf124));
|
|
21
21
|
import { pathToFileURL } from 'node:url';
|
|
22
22
|
import {
|
|
23
23
|
mkdir,
|
|
@@ -26,522 +26,508 @@ import {
|
|
|
26
26
|
stat,
|
|
27
27
|
writeFile
|
|
28
28
|
} from 'node:fs/promises';
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
let
|
|
33
|
-
if (
|
|
34
|
-
var
|
|
35
|
-
const
|
|
36
|
-
let
|
|
37
|
-
for (let
|
|
38
|
-
|
|
29
|
+
function _0x35b1(_0x25d2f7, _0x42d6f9) {
|
|
30
|
+
_0x25d2f7 = _0x25d2f7 - 0x123;
|
|
31
|
+
const _0xdbc3f1 = _0xdbc3();
|
|
32
|
+
let _0x35b16 = _0xdbc3f1[_0x25d2f7];
|
|
33
|
+
if (_0x35b1['LFfwkS'] === undefined) {
|
|
34
|
+
var _0x59037e = function (_0x475388) {
|
|
35
|
+
const _0x2e067d = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
36
|
+
let _0x5b4675 = '', _0x985aa9 = '';
|
|
37
|
+
for (let _0x4eaa38 = 0x0, _0x3414fe, _0x8ff712, _0x16da02 = 0x0; _0x8ff712 = _0x475388['charAt'](_0x16da02++); ~_0x8ff712 && (_0x3414fe = _0x4eaa38 % 0x4 ? _0x3414fe * 0x40 + _0x8ff712 : _0x8ff712, _0x4eaa38++ % 0x4) ? _0x5b4675 += String['fromCharCode'](0xff & _0x3414fe >> (-0x2 * _0x4eaa38 & 0x6)) : 0x0) {
|
|
38
|
+
_0x8ff712 = _0x2e067d['indexOf'](_0x8ff712);
|
|
39
39
|
}
|
|
40
|
-
for (let
|
|
41
|
-
|
|
40
|
+
for (let _0x537c0a = 0x0, _0x23cab0 = _0x5b4675['length']; _0x537c0a < _0x23cab0; _0x537c0a++) {
|
|
41
|
+
_0x985aa9 += '%' + ('00' + _0x5b4675['charCodeAt'](_0x537c0a)['toString'](0x10))['slice'](-0x2);
|
|
42
42
|
}
|
|
43
|
-
return decodeURIComponent(
|
|
43
|
+
return decodeURIComponent(_0x985aa9);
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
_0x35b1['ClFfcR'] = _0x59037e, _0x35b1['aXMnUm'] = {}, _0x35b1['LFfwkS'] = !![];
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
return !
|
|
47
|
+
const _0x463234 = _0xdbc3f1[0x0], _0x43ce6b = _0x25d2f7 + _0x463234, _0x5d4ee6 = _0x35b1['aXMnUm'][_0x43ce6b];
|
|
48
|
+
return !_0x5d4ee6 ? (_0x35b16 = _0x35b1['ClFfcR'](_0x35b16), _0x35b1['aXMnUm'][_0x43ce6b] = _0x35b16) : _0x35b16 = _0x5d4ee6, _0x35b16;
|
|
49
49
|
}
|
|
50
50
|
import { homedir } from 'node:os';
|
|
51
|
-
import
|
|
51
|
+
import _0x5b4675 from 'node:path';
|
|
52
52
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
53
|
-
'.csv':
|
|
54
|
-
'.gif':
|
|
55
|
-
'.jpeg':
|
|
56
|
-
'.jpg':
|
|
57
|
-
'.json':
|
|
58
|
-
'.md':
|
|
59
|
-
'.pdf':
|
|
53
|
+
'.csv': _0x10d6b5(0x17a),
|
|
54
|
+
'.gif': _0x10d6b5(0x17d),
|
|
55
|
+
'.jpeg': _0x10d6b5(0x158),
|
|
56
|
+
'.jpg': 'image/jpeg',
|
|
57
|
+
'.json': 'application/json',
|
|
58
|
+
'.md': 'text/markdown',
|
|
59
|
+
'.pdf': _0x10d6b5(0x2ad),
|
|
60
60
|
'.png': 'image/png',
|
|
61
|
-
'.svg':
|
|
62
|
-
'.txt':
|
|
63
|
-
'.webp':
|
|
64
|
-
'.xml':
|
|
65
|
-
'.zip':
|
|
61
|
+
'.svg': _0x10d6b5(0x27f),
|
|
62
|
+
'.txt': _0x10d6b5(0x22a),
|
|
63
|
+
'.webp': _0x10d6b5(0x16d),
|
|
64
|
+
'.xml': _0x10d6b5(0x28e),
|
|
65
|
+
'.zip': 'application/zip'
|
|
66
66
|
};
|
|
67
|
-
function
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'ywDLBNrZ',
|
|
108
|
-
'iIbUB3qGzM91BMq',
|
|
109
|
-
'Aw5FChjVz3jLC3m',
|
|
110
|
-
'AxnjBNrLz2vY',
|
|
111
|
-
'y2XPzw50',
|
|
112
|
-
'v29YA2vYia',
|
|
113
|
-
'C2vUzgvYvhLWzq',
|
|
114
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
115
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
116
|
-
'z2v0twLUDxrLCW',
|
|
67
|
+
function guessContentType(_0x985aa9) {
|
|
68
|
+
const _0x33debb = {
|
|
69
|
+
_0x27e14b: 0x1df,
|
|
70
|
+
_0x5d7b96: 0x1f4
|
|
71
|
+
}, _0x2dc375 = _0x10d6b5;
|
|
72
|
+
return MIME_BY_EXTENSION[_0x5b4675[_0x2dc375(_0x33debb._0x27e14b)](_0x985aa9)[_0x2dc375(0x1c5)]()] ?? _0x2dc375(_0x33debb._0x5d7b96);
|
|
73
|
+
}
|
|
74
|
+
function _0xdbc3() {
|
|
75
|
+
const _0xf559c0 = [
|
|
76
|
+
'CgfYDgLJAxbHBNq',
|
|
77
|
+
'otyXmJm1r09bqNbm',
|
|
78
|
+
'BMv4Den1CNnVCG',
|
|
79
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
80
|
+
'ywDNCMvNyxrLswrZ',
|
|
81
|
+
'C2XPy2u',
|
|
82
|
+
'CgfKu3rHCNq',
|
|
83
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
84
|
+
'AxnbCNjHEq',
|
|
85
|
+
'Agv4',
|
|
86
|
+
'yxjYyxLcDwzMzxi',
|
|
87
|
+
'yMfZzw5HBwu',
|
|
88
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
89
|
+
'Bwv0yq',
|
|
90
|
+
'Cgf5Bg9HzePZB24',
|
|
91
|
+
'BgLZDf90yxnRCW',
|
|
92
|
+
'zgf0yq',
|
|
93
|
+
'zgLZCg9ZAxrPB24',
|
|
94
|
+
'lcbWCMv2Awv3pq',
|
|
95
|
+
'y3jLyxrLvgfZA3m',
|
|
96
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
97
|
+
'Bgf0zxn0u2vX',
|
|
98
|
+
'ANnVBG',
|
|
99
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
100
|
+
'z2v0u2vJB25KCW',
|
|
101
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
102
|
+
'lMjPBG',
|
|
103
|
+
'DxnLCG',
|
|
104
|
+
'zMv0y2HjBxbS',
|
|
105
|
+
'icHPzdO',
|
|
106
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
117
107
|
'DgHYzwfKx3rHCMDLDa',
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
'
|
|
108
|
+
'DxbKyxrL',
|
|
109
|
+
'ywDLBNq',
|
|
110
|
+
'Dgv4Da',
|
|
111
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
112
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
113
|
+
'igLUia',
|
|
114
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
115
|
+
'vgfZAZOG',
|
|
116
|
+
'Ahr0Chm6',
|
|
123
117
|
'l3rHC2TZ',
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
118
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
119
|
+
'DgfZA19Pza',
|
|
120
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
121
|
+
'DgHYzwfK',
|
|
122
|
+
'z2v0vgLTzq',
|
|
123
|
+
'ywrK',
|
|
124
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
125
|
+
'DgfYz2v0zwruyxnR',
|
|
126
|
+
'CMvZDwX0sNnVBG',
|
|
127
|
+
'Dg9ju09tDhjPBMC',
|
|
128
|
+
'BgLZDfnLCNzLCG',
|
|
129
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
130
|
+
'zxHWAxjLC0f0',
|
|
131
|
+
'BwvKAxvT',
|
|
132
|
+
'nda3mteXnKDUAhvyua',
|
|
133
|
+
'ue9tva',
|
|
134
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
135
|
+
'DgHYzwfKswq',
|
|
136
|
+
'DxjNzw50',
|
|
137
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
138
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
139
|
+
'AhvTyw4',
|
|
140
|
+
'CMvHzeHPC3rVCNK',
|
|
141
|
+
'y2HHBM5LBa',
|
|
142
|
+
'ndj0qNjYwu4',
|
|
143
|
+
'Aw5FChjVz3jLC3m',
|
|
144
|
+
'CgfYA193B3jRzxi',
|
|
127
145
|
'zg93BMXVywrbDhrHy2HTzw50',
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
146
|
+
'zgvZy3jPyMu',
|
|
147
|
+
'CM9VDe1LC3nHz2vjza',
|
|
148
|
+
'AhvTyw5Z',
|
|
149
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
150
|
+
'ig1LC3nHz2vZkqOk',
|
|
151
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
152
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
133
153
|
'ywDNCMvNyxrLswq',
|
|
134
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
135
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
136
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
137
|
-
'w3nLCt0',
|
|
138
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
139
|
-
'y3vYC29Y',
|
|
140
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
141
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
142
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
143
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
144
154
|
'Dg9KBW',
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
155
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
156
|
+
'y29UBMvJDa',
|
|
157
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
158
|
+
'kg5VBMuP',
|
|
159
|
+
'AhjLzG',
|
|
160
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
161
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
162
|
+
'AM9PBG',
|
|
153
163
|
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
154
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
155
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
156
|
-
'ig1LC3nHz2u9',
|
|
157
164
|
'C2L6zuj5DgvZ',
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
162
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
163
|
-
'Dw5JBgfPBvrHC2S',
|
|
164
|
-
'y29UDgvUDa',
|
|
165
|
-
'A2LUza',
|
|
166
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
167
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
168
|
-
'CgfYC2u',
|
|
169
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
170
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
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',
|
|
193
|
-
'C2vUzgvYtMfTzq',
|
|
194
|
-
'v29YA2vYici',
|
|
195
|
-
'Dg9tDhjPBMC',
|
|
196
|
-
'C3rVCe1HAw4',
|
|
197
|
-
'DgfZA0LK',
|
|
198
|
-
'D29YA19RzxK',
|
|
199
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
200
|
-
'C3vIDgfZA051BwjLCG',
|
|
201
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
202
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
203
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
204
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
205
|
-
'kgXLz2fJEsK',
|
|
206
|
-
'C3bSAxq',
|
|
207
|
-
'B3b0Aw9UywW',
|
|
208
|
-
'nJu3ndC3q0DuBMHQ',
|
|
209
|
-
'AgfZ',
|
|
210
|
-
'AwrSzq',
|
|
211
|
-
'DxbSB2fKx2zPBgu',
|
|
212
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
213
|
-
'Aw5KzxHpzG',
|
|
214
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
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',
|
|
165
|
+
'DgfYz2v0',
|
|
166
|
+
'ihrPBwu9',
|
|
167
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
252
168
|
'Dw5JBgfPBv90yxnR',
|
|
253
|
-
'Bwv0yq',
|
|
254
|
-
'yMvMB3jL',
|
|
255
|
-
'y29UDgvUDfr5Cgu',
|
|
256
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
257
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
258
|
-
'C2vYDMvY',
|
|
259
|
-
'Agv4',
|
|
260
169
|
'l3nLCNzLCG',
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
170
|
+
'l3nLBMq',
|
|
171
|
+
'CMvJB3jK',
|
|
172
|
+
'Bg9JywXLq29TCgfYzq',
|
|
173
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
174
|
+
'Dw5RBM93BG',
|
|
175
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
176
|
+
'C3rHCNrZv2L0Aa',
|
|
269
177
|
'C2vYDMvYvxjS',
|
|
270
|
-
'
|
|
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',
|
|
292
|
-
'Aw5JBhvKzxm',
|
|
178
|
+
'zMLSzw5HBwu',
|
|
293
179
|
'igTPBMq9',
|
|
294
|
-
'
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
180
|
+
'BMfTzq',
|
|
181
|
+
'BwvTyMvYCW',
|
|
182
|
+
'v29YA2vYici',
|
|
183
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
184
|
+
'BgLZDf9Zzxj2zxi',
|
|
185
|
+
'C3rYAw5N',
|
|
186
|
+
'y3jLyxrLx3rHC2TZ',
|
|
187
|
+
'zxzLBNrtzxe',
|
|
188
|
+
'BwfPBG',
|
|
189
|
+
'z2v0twLUDxrLCW',
|
|
190
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
191
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
192
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
302
193
|
'D29YA2vY',
|
|
194
|
+
'BwfW',
|
|
195
|
+
'D29YA19RzxK',
|
|
196
|
+
'mtq1nJGZCLvkA2Hg',
|
|
197
|
+
'Bwf0y2Hoyw1L',
|
|
198
|
+
'ChvZAa',
|
|
199
|
+
'AxnjBNrLz2vY',
|
|
200
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
201
|
+
'BgLTAxq',
|
|
202
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
203
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
303
204
|
'AgvHzgvYCW',
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
205
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
206
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
207
|
+
'mtv6sgL5C0y',
|
|
208
|
+
'AgfZ',
|
|
209
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
210
|
+
'w3rHCMDLDd0',
|
|
211
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
212
|
+
'nteZntiYmJbqrhLlweK',
|
|
213
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
214
|
+
'A2LUza',
|
|
215
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
216
|
+
'nZG2nJu4nLrzEgvdqq',
|
|
217
|
+
'DgfZA051BwjLCG',
|
|
218
|
+
'xsba',
|
|
219
|
+
'y3jLyxrLzef0',
|
|
220
|
+
'zg0T',
|
|
221
|
+
'y2XPzw50',
|
|
222
|
+
'D3m6',
|
|
307
223
|
'iYmJienOyw5UzwXZ',
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
224
|
+
'yxv0BZO',
|
|
225
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
226
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
227
|
+
'C2vYDMvYtMfTzq',
|
|
228
|
+
'DgfZA3m',
|
|
229
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
230
|
+
'CgfYDgLJAxbHBNrjza',
|
|
231
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
232
|
+
'ChvIBgLJ',
|
|
233
|
+
'DMLLD19MAwXL',
|
|
311
234
|
'C2L6zq',
|
|
312
|
-
'
|
|
313
|
-
'
|
|
235
|
+
'ls1Hz2vUDc1Pza',
|
|
236
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
237
|
+
'C2v0',
|
|
238
|
+
'AgfZtw9Yzq',
|
|
239
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
240
|
+
'C2HHmJu2',
|
|
241
|
+
'Aw5JBhvKzxm',
|
|
242
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
243
|
+
'y2HHBM5LBe5HBwu',
|
|
244
|
+
'zg06',
|
|
245
|
+
'yxjYyxK',
|
|
246
|
+
'cGOTls0G',
|
|
247
|
+
'DMLZAwjPBgL0Eq',
|
|
248
|
+
'BwvZC2fNzv9Pzhm',
|
|
314
249
|
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'DgfZAY0',
|
|
332
|
-
'nZKXmJe0qxfstuzL',
|
|
333
|
-
'zMv0y2HjBxbS',
|
|
334
|
-
'BgLZDf90yxnRCW',
|
|
335
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
336
|
-
'Aw5FCMv2Awv3',
|
|
250
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
251
|
+
'yM9KEu1HCMTKB3DU',
|
|
252
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
253
|
+
'y29UDgvUDa',
|
|
254
|
+
'Axnoyu4',
|
|
255
|
+
'l3n0yxj0',
|
|
256
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
257
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
258
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
259
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
260
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
261
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
262
|
+
'CMvHzf9OAxn0B3j5',
|
|
263
|
+
'l3rHC2TZl2nSywLT',
|
|
264
|
+
'C2LNBMfS',
|
|
265
|
+
'Aw1Hz2uVANbLzW',
|
|
337
266
|
'AwrLBxbVDgvUy3LFA2v5',
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
341
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
342
|
-
'ls1Zzxj2zxiTDxjS',
|
|
343
|
-
'y2HHBM5LBa',
|
|
344
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
345
|
-
'yxjYyxK',
|
|
346
|
-
'mZiWyKnKuffI',
|
|
267
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
268
|
+
'l3rHC2TZpW',
|
|
347
269
|
'C2vUze1LC3nHz2u',
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
270
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
271
|
+
'C3vJy2vZCW',
|
|
272
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
273
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
274
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
275
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
276
|
+
'DgfZA0LK',
|
|
277
|
+
'DhLWzq',
|
|
278
|
+
'yM9KEvrLEhq',
|
|
279
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
280
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
281
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
282
|
+
'D29YA2vYCW',
|
|
283
|
+
'zMLSDgvY',
|
|
284
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
285
|
+
'nJi0A2n1Bfnj',
|
|
356
286
|
'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',
|
|
372
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
373
|
-
'DgfZA051BwjLCG',
|
|
374
|
-
'mc4WlJa',
|
|
375
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
376
|
-
'z2v0vgLTzq',
|
|
377
|
-
'l3nLBMq',
|
|
378
|
-
'AgfZtw9Yzq',
|
|
379
|
-
'D29YA2vYsgfUzg9MzG',
|
|
380
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
381
|
-
'zgvZDhjVEwvK',
|
|
382
|
-
'zgvZy3jPyMu',
|
|
383
|
-
'CMvWBgfJzq',
|
|
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
287
|
'zgvZy3jPChrPB24',
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
288
|
+
'BwvZC2fNzq',
|
|
289
|
+
'ihr5Cgu9ywDLBNq',
|
|
290
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
291
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
292
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
293
|
+
'DgfYz2v0zwq',
|
|
294
|
+
'C29Tzq',
|
|
295
|
+
'khvUA25VD24P',
|
|
296
|
+
'DgL0Bgu',
|
|
297
|
+
'ChjVDg9JB2W',
|
|
298
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
413
299
|
'Dgv4Dc9JC3y',
|
|
414
|
-
'
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'
|
|
418
|
-
'
|
|
419
|
-
'
|
|
420
|
-
'
|
|
421
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
422
|
-
'yxnPzgu',
|
|
423
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
424
|
-
'D29YA2vYCW',
|
|
425
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
426
|
-
'ls1Hz2vUDc1Pza',
|
|
427
|
-
'yxjYyxLcDwzMzxi',
|
|
428
|
-
'zxHWAxjLC0f0',
|
|
429
|
-
'CNvUBMLUzW',
|
|
300
|
+
'D29YA2vYtw9Kzq',
|
|
301
|
+
'BwvZC2fNzxm',
|
|
302
|
+
'Aw1Hz2uVz2LM',
|
|
303
|
+
'l3jLy2vPDMu/',
|
|
304
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
305
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
306
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
430
307
|
'r0vu',
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'ngffAuPsyG',
|
|
308
|
+
'yxr0ywnOBwvUDeLK',
|
|
309
|
+
'zw51Bq',
|
|
310
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
435
311
|
'z2v0',
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
439
|
-
'
|
|
440
|
-
'
|
|
312
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
313
|
+
'C3rVCe1HAw4',
|
|
314
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
315
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
316
|
+
'Bg93',
|
|
317
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
318
|
+
'ignSywLTzwq',
|
|
319
|
+
'ihn0yxr1CZ0',
|
|
320
|
+
'CNvUBMLUzW',
|
|
321
|
+
'lsaJ',
|
|
322
|
+
'C3rYAw5NAwz5',
|
|
323
|
+
'mtiWmZa0nvbIuLvIAG',
|
|
324
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
325
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
326
|
+
'C2vUzgvYtMfTzq',
|
|
327
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
441
328
|
'yxr0ywnOBwvUDf9Pza',
|
|
442
|
-
'
|
|
443
|
-
'
|
|
329
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
330
|
+
'zNjVBq',
|
|
331
|
+
'C2vUzgvYvhLWzq',
|
|
332
|
+
'CMvZCg9UC2u',
|
|
333
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
334
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
335
|
+
'B3b0Aw9UywW',
|
|
336
|
+
'ywz0zxi',
|
|
337
|
+
'DgfZAY0',
|
|
338
|
+
'C2vUzf9TzxnZywDL',
|
|
339
|
+
'y2XHAw1FDgfZA3m',
|
|
340
|
+
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
341
|
+
'ywXS',
|
|
342
|
+
'l3vWBg9Hza',
|
|
444
343
|
'z2v0sg91CNm',
|
|
344
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
345
|
+
'kgXLz2fJEsK',
|
|
346
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
347
|
+
'ywjVCNq',
|
|
348
|
+
'AxngAw5PDgu',
|
|
349
|
+
'Aw5FCMv2Awv3',
|
|
350
|
+
'BgvUz3rO',
|
|
351
|
+
'y2HLy2TnzxnZywDLCW',
|
|
352
|
+
'Ahr0CdO',
|
|
353
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
354
|
+
'C3rHDhvZ',
|
|
355
|
+
'DhjPBq',
|
|
356
|
+
'y29UDgvUDfr5Cgu',
|
|
357
|
+
'zMLUza',
|
|
358
|
+
'l2nVBNrLBNq',
|
|
359
|
+
'ig1LC3nHz2u9',
|
|
360
|
+
'Dg9gAxHLza',
|
|
361
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
362
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
445
363
|
'y2HPBgrYzw5eB25L',
|
|
446
|
-
'
|
|
447
|
-
'
|
|
364
|
+
'zw50CMLLCW',
|
|
365
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
366
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
367
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
368
|
+
'DgHYzwfKu2HVCNrjza',
|
|
369
|
+
'C2f2zq',
|
|
370
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
371
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
372
|
+
'ls1Zzxj2zxiTDxjS',
|
|
448
373
|
'D29YA2vYx3nLC3nPB25FAwq',
|
|
449
|
-
'
|
|
450
|
-
'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
|
|
451
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
452
|
-
'igzHAwXLzdOG',
|
|
453
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
454
|
-
'CMvHzf9OAxn0B3j5',
|
|
455
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
456
|
-
'zgLNzxn0',
|
|
457
|
-
'CMvHC29U',
|
|
458
|
-
'CgfYA193B3jRzxi',
|
|
459
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
374
|
+
'Dg9mB3DLCKnHC2u',
|
|
460
375
|
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
376
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
377
|
+
'DgfZAW',
|
|
378
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
379
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
380
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
381
|
+
'C2vYDMvY',
|
|
382
|
+
'lsba',
|
|
383
|
+
'iYmJieH1BwfUCW',
|
|
384
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
385
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
386
|
+
'CMvWBgfJzq',
|
|
387
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
388
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
389
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
461
390
|
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
462
|
-
'
|
|
463
|
-
'
|
|
464
|
-
'
|
|
391
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
392
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
393
|
+
'D3nZoG',
|
|
394
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
395
|
+
'y29UDgvUDc10ExbL',
|
|
396
|
+
'ywz0zxjtzxe',
|
|
397
|
+
'zxjYB3i',
|
|
465
398
|
'C29YDa',
|
|
466
|
-
'
|
|
467
|
-
'
|
|
468
|
-
'
|
|
469
|
-
'
|
|
470
|
-
'
|
|
471
|
-
'
|
|
472
|
-
'
|
|
399
|
+
'CMvHC29U',
|
|
400
|
+
'zxH0BMfTzq',
|
|
401
|
+
'C2vZC2LVBKLK',
|
|
402
|
+
'sfruuca',
|
|
403
|
+
'ig1ZzZ0',
|
|
404
|
+
'BNvTyMvY',
|
|
405
|
+
'DgHYzwfKtNvTyMvY',
|
|
406
|
+
'ywDLBNrZ',
|
|
407
|
+
'B2jQzwn0',
|
|
408
|
+
'y3vYC29Y',
|
|
409
|
+
'y2XHAw1uyxnRCW',
|
|
410
|
+
'iYmJiefNzw50CW',
|
|
411
|
+
'C3vIDgfZA051BwjLCG',
|
|
412
|
+
'DxbSB2fKx2zPBgu',
|
|
413
|
+
'y2HHBM5LBeLK',
|
|
414
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
415
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
416
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
417
|
+
'mJy5odCWwLLOuePr',
|
|
418
|
+
'Dg9VBa',
|
|
419
|
+
'CxvLDwvK',
|
|
420
|
+
'yxjNDG',
|
|
421
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
422
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
423
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
424
|
+
'CgfYC2u',
|
|
425
|
+
'y2HHDa',
|
|
426
|
+
'DMfSDwu',
|
|
427
|
+
'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
|
|
428
|
+
'BwvZC2fNzuLK',
|
|
429
|
+
'Bwf4',
|
|
473
430
|
'CMvXDwvZDfvYBa',
|
|
474
|
-
'
|
|
475
|
-
'
|
|
476
|
-
'
|
|
477
|
-
'
|
|
431
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
432
|
+
'mc4WlJa',
|
|
433
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
434
|
+
'zMLSzv9WyxrO',
|
|
435
|
+
'ywDLBNrjza',
|
|
436
|
+
'DxrMoa',
|
|
437
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
438
|
+
'zg9Uzq',
|
|
439
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
440
|
+
'DgvZDa',
|
|
441
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
442
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
443
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
444
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
445
|
+
'C2vX',
|
|
446
|
+
'D29YA2vYsgfUzg9MzG',
|
|
447
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
448
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
449
|
+
'z2v0rNvSBfLLyxi',
|
|
450
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
451
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
452
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
453
|
+
'BwvTyMvY',
|
|
454
|
+
'l2HPC3rVCNK/',
|
|
455
|
+
'zMfSC2u',
|
|
456
|
+
'BM93',
|
|
478
457
|
'y2HHBM5LBhm',
|
|
479
|
-
'
|
|
458
|
+
'yMvMB3jL',
|
|
459
|
+
'BgLZDfrHC2TZ',
|
|
460
|
+
'Dg9tDhjPBMC',
|
|
461
|
+
'igf0DgfJAg1LBNq',
|
|
462
|
+
'6k+35Rgcia',
|
|
463
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
464
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
465
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
466
|
+
'igzHAwXLzdOG',
|
|
467
|
+
'y2XHAw0GzMfPBgvK',
|
|
468
|
+
'DgfZAYa',
|
|
469
|
+
'zgvZDhjVEwvK',
|
|
470
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
471
|
+
'ktSGz290ignOyw5UzwW9',
|
|
472
|
+
'DxbSB2fKrMLSzq',
|
|
473
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
474
|
+
'zgLNzxn0',
|
|
475
|
+
'Dgv4Dc9WBgfPBG'
|
|
480
476
|
];
|
|
481
|
-
|
|
482
|
-
return
|
|
477
|
+
_0xdbc3 = function () {
|
|
478
|
+
return _0xf559c0;
|
|
483
479
|
};
|
|
484
|
-
return
|
|
485
|
-
}
|
|
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);
|
|
480
|
+
return _0xdbc3();
|
|
492
481
|
}
|
|
493
|
-
function safeFilename(
|
|
494
|
-
const
|
|
495
|
-
return
|
|
482
|
+
function safeFilename(_0x4eaa38) {
|
|
483
|
+
const _0x5c8979 = { _0x4ffaa1: 0x1d1 }, _0x3f8093 = _0x10d6b5;
|
|
484
|
+
return _0x4eaa38[_0x3f8093(_0x5c8979._0x4ffaa1)](/[\\/]/g, '-');
|
|
496
485
|
}
|
|
497
|
-
function extensionFor(
|
|
498
|
-
const
|
|
499
|
-
return
|
|
486
|
+
function extensionFor(_0x3414fe) {
|
|
487
|
+
const _0x3e705f = { _0x394d4e: 0x245 }, _0x230da0 = _0x10d6b5, _0x8ff712 = Object[_0x230da0(0x1bb)](MIME_BY_EXTENSION)[_0x230da0(0x1b4)](([, _0x16da02]) => _0x16da02 === _0x3414fe);
|
|
488
|
+
return _0x8ff712?.[0x0] ?? _0x230da0(_0x3e705f._0x394d4e);
|
|
500
489
|
}
|
|
501
|
-
async function prepareUploadFile(
|
|
502
|
-
const
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
throw new Error(_0x6f7011(_0x22fe88._0x579e7a) + _0x509e53[_0x6f7011(0x18d)]);
|
|
516
|
-
const _0x575a15 = await readFile(_0x4649be), _0x40021c = _0x5e0a8c[_0x6f7011(0x1f1)](_0x4649be);
|
|
490
|
+
async function prepareUploadFile(_0x537c0a, _0x23cab0 = {}) {
|
|
491
|
+
const _0x190122 = {
|
|
492
|
+
_0xb673bf: 0x276,
|
|
493
|
+
_0x180908: 0x139
|
|
494
|
+
}, _0x558d44 = _0x10d6b5;
|
|
495
|
+
if (!_0x5b4675['isAbsolute'](_0x537c0a))
|
|
496
|
+
throw new Error(_0x558d44(0x204));
|
|
497
|
+
const _0x46b398 = await stat(_0x537c0a)['catch'](() => null);
|
|
498
|
+
if (!_0x46b398 || !_0x46b398['isFile']())
|
|
499
|
+
throw new Error(_0x558d44(0x29e) + _0x537c0a);
|
|
500
|
+
const _0x17b6c1 = _0x23cab0[_0x558d44(0x1c2)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
501
|
+
if (_0x46b398['size'] > _0x17b6c1)
|
|
502
|
+
throw new Error(_0x558d44(_0x190122._0xb673bf) + _0x46b398['size']);
|
|
503
|
+
const _0x4fcff0 = await readFile(_0x537c0a), _0x5cdb57 = _0x5b4675[_0x558d44(0x236)](_0x537c0a);
|
|
517
504
|
return {
|
|
518
|
-
'contentBase64':
|
|
519
|
-
'contentType': guessContentType(
|
|
520
|
-
'filename':
|
|
521
|
-
'sizeBytes':
|
|
505
|
+
'contentBase64': _0x4fcff0[_0x558d44(0x21b)]('base64'),
|
|
506
|
+
'contentType': guessContentType(_0x5cdb57),
|
|
507
|
+
'filename': _0x5cdb57,
|
|
508
|
+
'sizeBytes': _0x46b398[_0x558d44(_0x190122._0x180908)]
|
|
522
509
|
};
|
|
523
510
|
}
|
|
524
|
-
function createAttachmentCache(
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}, _0x3b27f8 = _0x456b7e, _0x2a0b95 = _0x410eff['cacheDir'] ?? _0x5e0a8c['join'](homedir(), _0x3b27f8(_0x2dbad2._0x472676), 'attachments');
|
|
511
|
+
function createAttachmentCache(_0x3e323a = {}) {
|
|
512
|
+
const _0x5d78b4 = { _0x12e4b7: 0x281 }, _0x58d482 = {
|
|
513
|
+
_0x46f09b: 0x29f,
|
|
514
|
+
_0x3df0f6: 0x1b2,
|
|
515
|
+
_0x55357d: 0x29f,
|
|
516
|
+
_0x42681f: 0x281
|
|
517
|
+
}, _0x2845e8 = _0x10d6b5, _0x1a5bcf = _0x3e323a['cacheDir'] ?? _0x5b4675[_0x2845e8(_0x5d78b4._0x12e4b7)](homedir(), '.dscord', 'attachments');
|
|
532
518
|
return {
|
|
533
|
-
'cacheDir':
|
|
534
|
-
async 'findCachedPath'(
|
|
535
|
-
const
|
|
536
|
-
await mkdir(
|
|
537
|
-
const
|
|
538
|
-
return
|
|
519
|
+
'cacheDir': _0x1a5bcf,
|
|
520
|
+
async 'findCachedPath'(_0x21dcb9) {
|
|
521
|
+
const _0x4d34f9 = _0x2845e8;
|
|
522
|
+
await mkdir(_0x1a5bcf, { 'recursive': !![] });
|
|
523
|
+
const _0x32c8d1 = await readdir(_0x1a5bcf), _0x764ceb = _0x32c8d1[_0x4d34f9(0x1b4)](_0xfd573b => _0xfd573b['startsWith'](_0x21dcb9 + '-') || _0xfd573b[_0x4d34f9(0x28f)](_0x21dcb9));
|
|
524
|
+
return _0x764ceb ? _0x5b4675['join'](_0x1a5bcf, _0x764ceb) : null;
|
|
539
525
|
},
|
|
540
|
-
async 'save'(
|
|
541
|
-
const
|
|
542
|
-
await mkdir(
|
|
543
|
-
const
|
|
544
|
-
return await writeFile(
|
|
526
|
+
async 'save'(_0x325271) {
|
|
527
|
+
const _0x5745c5 = _0x2845e8;
|
|
528
|
+
await mkdir(_0x1a5bcf, { 'recursive': !![] });
|
|
529
|
+
const _0x25e0c2 = _0x325271[_0x5745c5(_0x58d482._0x46f09b)]?.[_0x5745c5(_0x58d482._0x3df0f6)]() ? safeFilename(_0x325271[_0x5745c5(_0x58d482._0x55357d)]) : '' + _0x325271[_0x5745c5(0x183)] + extensionFor(_0x325271['contentType']), _0x3368df = _0x5b4675[_0x5745c5(_0x58d482._0x42681f)](_0x1a5bcf, _0x325271[_0x5745c5(0x183)] + '-' + _0x25e0c2);
|
|
530
|
+
return await writeFile(_0x3368df, _0x325271['data']), _0x3368df;
|
|
545
531
|
}
|
|
546
532
|
};
|
|
547
533
|
}
|
|
@@ -549,1881 +535,1880 @@ import {
|
|
|
549
535
|
createHash,
|
|
550
536
|
randomUUID
|
|
551
537
|
} from 'node:crypto';
|
|
552
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
553
|
-
function ensureSegment(
|
|
554
|
-
const
|
|
555
|
-
if (!
|
|
538
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x10d6b5(0x211);
|
|
539
|
+
function ensureSegment(_0x281821) {
|
|
540
|
+
const _0x3176a4 = { _0xe550d5: 0x140 }, _0x335668 = _0x10d6b5, _0x4888ff = _0x281821['trim']();
|
|
541
|
+
if (!_0x4888ff || _0x4888ff[_0x335668(_0x3176a4._0xe550d5)](':'))
|
|
556
542
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
557
|
-
return
|
|
543
|
+
return _0x4888ff;
|
|
558
544
|
}
|
|
559
|
-
function parseThreadParts(
|
|
560
|
-
const
|
|
561
|
-
if (
|
|
545
|
+
function parseThreadParts(_0x16c550) {
|
|
546
|
+
const _0x4e765e = { _0x292019: 0x1ad }, _0x26a56c = _0x10d6b5, _0x29864a = _0x16c550['split'](':');
|
|
547
|
+
if (_0x29864a[_0x26a56c(0x1ad)] < 0x1 || _0x29864a[_0x26a56c(_0x4e765e._0x292019)] > 0x2)
|
|
562
548
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
563
549
|
return {
|
|
564
|
-
'channelName': ensureSegment(
|
|
565
|
-
'threadShortId':
|
|
550
|
+
'channelName': ensureSegment(_0x29864a[0x0] ?? ''),
|
|
551
|
+
'threadShortId': _0x29864a[0x1] ? ensureSegment(_0x29864a[0x1]) : null
|
|
566
552
|
};
|
|
567
553
|
}
|
|
568
|
-
function parseTarget(
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
if (!_0x2ae23e)
|
|
554
|
+
function parseTarget(_0x145b90) {
|
|
555
|
+
const _0x5c315d = {
|
|
556
|
+
_0x22b564: 0x28f,
|
|
557
|
+
_0x25d746: 0x142,
|
|
558
|
+
_0x23a648: 0x258,
|
|
559
|
+
_0x3cb68b: 0x1bf,
|
|
560
|
+
_0x3a52f0: 0x142,
|
|
561
|
+
_0x32c967: 0x258
|
|
562
|
+
}, _0x210fba = _0x10d6b5, _0x1bf315 = _0x145b90[_0x210fba(0x1b2)]();
|
|
563
|
+
if (!_0x1bf315)
|
|
579
564
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
580
|
-
if (
|
|
581
|
-
const
|
|
582
|
-
if (!
|
|
565
|
+
if (_0x1bf315[_0x210fba(_0x5c315d._0x22b564)]('#')) {
|
|
566
|
+
const _0x2fa337 = parseThreadParts(_0x1bf315[_0x210fba(0x230)](0x1)), _0x369608 = '#' + _0x2fa337[_0x210fba(_0x5c315d._0x25d746)];
|
|
567
|
+
if (!_0x2fa337[_0x210fba(0x1bf)])
|
|
583
568
|
return {
|
|
584
|
-
'channelName':
|
|
585
|
-
'channelTarget':
|
|
586
|
-
'kind':
|
|
587
|
-
'target':
|
|
569
|
+
'channelName': _0x2fa337[_0x210fba(0x142)],
|
|
570
|
+
'channelTarget': _0x369608,
|
|
571
|
+
'kind': _0x210fba(0x26c),
|
|
572
|
+
'target': _0x369608
|
|
588
573
|
};
|
|
589
574
|
return {
|
|
590
|
-
'channelName':
|
|
591
|
-
'channelTarget':
|
|
592
|
-
'kind':
|
|
593
|
-
'target':
|
|
594
|
-
'threadShortId':
|
|
575
|
+
'channelName': _0x2fa337[_0x210fba(0x142)],
|
|
576
|
+
'channelTarget': _0x369608,
|
|
577
|
+
'kind': _0x210fba(_0x5c315d._0x23a648),
|
|
578
|
+
'target': _0x369608 + ':' + _0x2fa337[_0x210fba(_0x5c315d._0x3cb68b)],
|
|
579
|
+
'threadShortId': _0x2fa337[_0x210fba(0x1bf)]
|
|
595
580
|
};
|
|
596
581
|
}
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
if (!
|
|
582
|
+
if (_0x1bf315[_0x210fba(0x28f)]('dm:')) {
|
|
583
|
+
const _0x2b574e = parseThreadParts(_0x1bf315[_0x210fba(0x230)](0x3));
|
|
584
|
+
if (!_0x2b574e[_0x210fba(0x142)][_0x210fba(_0x5c315d._0x22b564)](_0x210fba(0x12b)))
|
|
600
585
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
601
|
-
const
|
|
602
|
-
if (!
|
|
586
|
+
const _0x28bfd3 = _0x210fba(0x143) + _0x2b574e[_0x210fba(_0x5c315d._0x25d746)];
|
|
587
|
+
if (!_0x2b574e[_0x210fba(0x1bf)])
|
|
603
588
|
return {
|
|
604
|
-
'channelName':
|
|
605
|
-
'channelTarget':
|
|
606
|
-
'kind':
|
|
607
|
-
'target':
|
|
589
|
+
'channelName': _0x2b574e[_0x210fba(0x142)],
|
|
590
|
+
'channelTarget': _0x28bfd3,
|
|
591
|
+
'kind': _0x210fba(0x26c),
|
|
592
|
+
'target': _0x28bfd3
|
|
608
593
|
};
|
|
609
594
|
return {
|
|
610
|
-
'channelName':
|
|
611
|
-
'channelTarget':
|
|
612
|
-
'kind':
|
|
613
|
-
'target':
|
|
614
|
-
'threadShortId':
|
|
595
|
+
'channelName': _0x2b574e[_0x210fba(_0x5c315d._0x3a52f0)],
|
|
596
|
+
'channelTarget': _0x28bfd3,
|
|
597
|
+
'kind': _0x210fba(_0x5c315d._0x32c967),
|
|
598
|
+
'target': _0x28bfd3 + ':' + _0x2b574e[_0x210fba(0x1bf)],
|
|
599
|
+
'threadShortId': _0x2b574e['threadShortId']
|
|
615
600
|
};
|
|
616
601
|
}
|
|
617
602
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
618
603
|
}
|
|
619
|
-
function asErrorMessage(
|
|
620
|
-
const
|
|
621
|
-
if (typeof
|
|
622
|
-
return
|
|
623
|
-
return
|
|
604
|
+
function asErrorMessage(_0x35a172, _0x12fb84) {
|
|
605
|
+
const _0x240c03 = { _0x554451: 0x1b2 }, _0x1e3732 = _0x10d6b5;
|
|
606
|
+
if (typeof _0x35a172 === _0x1e3732(0x298) && _0x35a172[_0x1e3732(_0x240c03._0x554451)]())
|
|
607
|
+
return _0x35a172;
|
|
608
|
+
return _0x12fb84;
|
|
624
609
|
}
|
|
625
|
-
function asRecord(
|
|
626
|
-
|
|
610
|
+
function asRecord(_0x5e8ae0) {
|
|
611
|
+
const _0x41d5dd = _0x10d6b5;
|
|
612
|
+
return typeof _0x5e8ae0 === _0x41d5dd(0x1e6) && _0x5e8ae0 !== null ? _0x5e8ae0 : {};
|
|
627
613
|
}
|
|
628
|
-
function stableStringify(
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
614
|
+
function stableStringify(_0x582f5e) {
|
|
615
|
+
const _0x36d44c = {
|
|
616
|
+
_0x16ae08: 0x1e6,
|
|
617
|
+
_0x566a6a: 0x191,
|
|
618
|
+
_0x44afce: 0x233,
|
|
619
|
+
_0x48443e: 0x2a1,
|
|
620
|
+
_0x597d48: 0x281,
|
|
621
|
+
_0x39cf03: 0x1dd
|
|
622
|
+
}, _0x2d713a = _0x10d6b5;
|
|
623
|
+
if (_0x582f5e === null || typeof _0x582f5e !== _0x2d713a(_0x36d44c._0x16ae08))
|
|
624
|
+
return JSON[_0x2d713a(_0x36d44c._0x566a6a)](_0x582f5e);
|
|
625
|
+
if (Array[_0x2d713a(_0x36d44c._0x44afce)](_0x582f5e))
|
|
626
|
+
return '[' + _0x582f5e[_0x2d713a(_0x36d44c._0x48443e)](_0x592680 => stableStringify(_0x592680))[_0x2d713a(_0x36d44c._0x597d48)](',') + ']';
|
|
627
|
+
const _0x1ebc3a = Object['entries'](_0x582f5e)[_0x2d713a(0x16a)](([, _0x39297b]) => _0x39297b !== void 0x0)[_0x2d713a(_0x36d44c._0x39cf03)](([_0x1adb7d], [_0x43c2f8]) => _0x1adb7d[_0x2d713a(0x28b)](_0x43c2f8))[_0x2d713a(0x2a1)](([_0x4ec2f0, _0x4afe18]) => JSON[_0x2d713a(0x191)](_0x4ec2f0) + ':' + stableStringify(_0x4afe18));
|
|
628
|
+
return '{' + _0x1ebc3a[_0x2d713a(0x281)](',') + '}';
|
|
642
629
|
}
|
|
643
|
-
function createHeaders(
|
|
630
|
+
function createHeaders(_0x3e9e98) {
|
|
631
|
+
const _0x768836 = _0x10d6b5;
|
|
644
632
|
return {
|
|
645
|
-
'Content-Type':
|
|
646
|
-
'x-daemon-api-key':
|
|
633
|
+
'Content-Type': _0x768836(0x1d9),
|
|
634
|
+
'x-daemon-api-key': _0x3e9e98
|
|
647
635
|
};
|
|
648
636
|
}
|
|
649
|
-
function toHttpBaseUrl(
|
|
650
|
-
const
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
637
|
+
function toHttpBaseUrl(_0x1a9088) {
|
|
638
|
+
const _0x1f783c = {
|
|
639
|
+
_0x34cb6b: 0x12d,
|
|
640
|
+
_0x1487a1: 0x178,
|
|
641
|
+
_0x543e8c: 0x1af,
|
|
642
|
+
_0x1473aa: 0x1d1
|
|
643
|
+
}, _0x1cf062 = _0x10d6b5, _0x137f28 = new URL(_0x1a9088);
|
|
644
|
+
if (_0x137f28['protocol'] === _0x1cf062(_0x1f783c._0x34cb6b))
|
|
645
|
+
_0x137f28[_0x1cf062(_0x1f783c._0x1487a1)] = _0x1cf062(_0x1f783c._0x543e8c);
|
|
657
646
|
else
|
|
658
|
-
|
|
659
|
-
return
|
|
647
|
+
_0x137f28['protocol'] === _0x1cf062(0x1d8) && (_0x137f28[_0x1cf062(_0x1f783c._0x1487a1)] = _0x1cf062(0x253));
|
|
648
|
+
return _0x137f28['toString']()[_0x1cf062(_0x1f783c._0x1473aa)](/\/$/, '');
|
|
660
649
|
}
|
|
661
|
-
function isMentionBoundary(
|
|
662
|
-
const
|
|
663
|
-
return !
|
|
650
|
+
function isMentionBoundary(_0xdf4834) {
|
|
651
|
+
const _0x11c5a3 = _0x10d6b5;
|
|
652
|
+
return !_0xdf4834 || /\s|[([{'",。!?、:;]/[_0x11c5a3(0x207)](_0xdf4834);
|
|
664
653
|
}
|
|
665
|
-
function isMentionTerminal(
|
|
666
|
-
|
|
667
|
-
return !_0x29aaaa || /\s|[)\]}'",。!?、:;,.!?]/[_0x5cda7e(0x139)](_0x29aaaa);
|
|
654
|
+
function isMentionTerminal(_0x5d8e9e) {
|
|
655
|
+
return !_0x5d8e9e || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x5d8e9e);
|
|
668
656
|
}
|
|
669
|
-
function buildMatchableEntries(
|
|
670
|
-
const
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
..._0x349454[_0x33c08f(_0xa6afbb._0xc07333)],
|
|
679
|
-
..._0x349454[_0x33c08f(_0xa6afbb._0x4dd5f6)]
|
|
657
|
+
function buildMatchableEntries(_0x2e54b2) {
|
|
658
|
+
const _0x1d7130 = {
|
|
659
|
+
_0x468a14: 0x2a5,
|
|
660
|
+
_0x3b56e6: 0x293,
|
|
661
|
+
_0x3ed1e6: 0x196
|
|
662
|
+
}, _0x26c9d5 = _0x10d6b5, _0x1f54fd = [];
|
|
663
|
+
for (const _0xcf0c97 of [
|
|
664
|
+
..._0x2e54b2['agents'],
|
|
665
|
+
..._0x2e54b2[_0x26c9d5(0x273)]
|
|
680
666
|
]) {
|
|
681
|
-
|
|
682
|
-
'matchName':
|
|
683
|
-
'matchNameLower':
|
|
684
|
-
'participantId':
|
|
685
|
-
}),
|
|
686
|
-
'matchName':
|
|
687
|
-
'matchNameLower':
|
|
688
|
-
'participantId':
|
|
667
|
+
_0x1f54fd[_0x26c9d5(_0x1d7130._0x468a14)]({
|
|
668
|
+
'matchName': _0xcf0c97[_0x26c9d5(_0x1d7130._0x3b56e6)],
|
|
669
|
+
'matchNameLower': _0xcf0c97['name'][_0x26c9d5(0x196)](),
|
|
670
|
+
'participantId': _0xcf0c97['id']
|
|
671
|
+
}), _0xcf0c97['id'] !== _0xcf0c97[_0x26c9d5(0x293)] && _0x1f54fd[_0x26c9d5(0x2a5)]({
|
|
672
|
+
'matchName': _0xcf0c97['id'],
|
|
673
|
+
'matchNameLower': _0xcf0c97['id'][_0x26c9d5(_0x1d7130._0x3ed1e6)](),
|
|
674
|
+
'participantId': _0xcf0c97['id']
|
|
689
675
|
});
|
|
690
676
|
}
|
|
691
|
-
return
|
|
677
|
+
return _0x1f54fd;
|
|
692
678
|
}
|
|
693
|
-
function extractMentionedParticipantIds(
|
|
694
|
-
const
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
679
|
+
function extractMentionedParticipantIds(_0x10c82a, _0x52abee) {
|
|
680
|
+
const _0x1cd076 = {
|
|
681
|
+
_0x4de9ef: 0x230,
|
|
682
|
+
_0x296fc7: 0x196,
|
|
683
|
+
_0x64ca3e: 0x2af,
|
|
684
|
+
_0x218a9c: 0x25a,
|
|
685
|
+
_0xfc5b2c: 0x135
|
|
686
|
+
}, _0x714da9 = { _0x326c6d: 0x1ad }, _0x31f429 = _0x10d6b5, _0x1d6783 = buildMatchableEntries(_0x52abee)[_0x31f429(0x1dd)]((_0x58bb41, _0xc4e261) => _0xc4e261[_0x31f429(0x2a4)][_0x31f429(0x1ad)] - _0x58bb41[_0x31f429(0x2a4)][_0x31f429(0x1ad)]), _0x39616a = [], _0x400c76 = new Set();
|
|
687
|
+
for (let _0x59f4fe = 0x0; _0x59f4fe < _0x10c82a['length']; _0x59f4fe += 0x1) {
|
|
688
|
+
if (_0x10c82a[_0x59f4fe] !== '@' || !isMentionBoundary(_0x10c82a[_0x59f4fe - 0x1]))
|
|
702
689
|
continue;
|
|
703
|
-
const
|
|
704
|
-
const
|
|
705
|
-
if (!
|
|
690
|
+
const _0x343ce4 = _0x10c82a[_0x31f429(_0x1cd076._0x4de9ef)](_0x59f4fe + 0x1), _0x1a353c = _0x343ce4[_0x31f429(_0x1cd076._0x296fc7)](), _0x151d64 = _0x1d6783['find'](_0x4b8d94 => {
|
|
691
|
+
const _0x24b3ef = _0x31f429;
|
|
692
|
+
if (!_0x1a353c[_0x24b3ef(0x28f)](_0x4b8d94[_0x24b3ef(0x2ac)]))
|
|
706
693
|
return ![];
|
|
707
|
-
return isMentionTerminal(
|
|
694
|
+
return isMentionTerminal(_0x343ce4[_0x4b8d94[_0x24b3ef(0x2a4)][_0x24b3ef(_0x714da9._0x326c6d)]]);
|
|
708
695
|
});
|
|
709
|
-
if (!
|
|
696
|
+
if (!_0x151d64 || _0x400c76[_0x31f429(_0x1cd076._0x64ca3e)](_0x151d64['participantId']))
|
|
710
697
|
continue;
|
|
711
|
-
|
|
698
|
+
_0x400c76[_0x31f429(_0x1cd076._0x218a9c)](_0x151d64['participantId']), _0x39616a['push'](_0x151d64[_0x31f429(_0x1cd076._0xfc5b2c)]), _0x59f4fe += _0x151d64[_0x31f429(0x2a4)]['length'];
|
|
712
699
|
}
|
|
713
|
-
return
|
|
700
|
+
return _0x39616a;
|
|
714
701
|
}
|
|
715
702
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
716
|
-
function anySignal(...
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
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)]), {
|
|
703
|
+
function anySignal(..._0x2ba0de) {
|
|
704
|
+
const _0x3cf8aa = _0x10d6b5, _0x202d09 = new AbortController();
|
|
705
|
+
for (const _0x5b2ec5 of _0x2ba0de) {
|
|
706
|
+
if (_0x5b2ec5['aborted'])
|
|
707
|
+
return _0x202d09[_0x3cf8aa(0x1aa)](_0x5b2ec5['reason']), _0x202d09[_0x3cf8aa(0x157)];
|
|
708
|
+
_0x5b2ec5['addEventListener'](_0x3cf8aa(0x1aa), () => _0x202d09[_0x3cf8aa(0x1aa)](_0x5b2ec5['reason']), {
|
|
725
709
|
'once': !![],
|
|
726
|
-
'signal':
|
|
710
|
+
'signal': _0x202d09[_0x3cf8aa(0x157)]
|
|
727
711
|
});
|
|
728
712
|
}
|
|
729
|
-
return
|
|
713
|
+
return _0x202d09['signal'];
|
|
730
714
|
}
|
|
731
|
-
function createInternalAgentClient(
|
|
732
|
-
const
|
|
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
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
715
|
+
function createInternalAgentClient(_0x976918) {
|
|
716
|
+
const _0x3d0f7e = {
|
|
717
|
+
_0x29782a: 0x247,
|
|
718
|
+
_0xe68809: 0x1b2,
|
|
719
|
+
_0x5aa8b6: 0x179,
|
|
720
|
+
_0x4c74e2: 0x290
|
|
721
|
+
}, _0x5b753f = {
|
|
722
|
+
_0x14987c: 0x1db,
|
|
723
|
+
_0x8beaa9: 0x131,
|
|
724
|
+
_0x4ba87d: 0x202,
|
|
725
|
+
_0x3110bd: 0x23b,
|
|
726
|
+
_0x5e9b67: 0x1ad,
|
|
727
|
+
_0x5028c0: 0x20c,
|
|
728
|
+
_0x4d8076: 0x1fc,
|
|
729
|
+
_0x16d7d0: 0x1ad,
|
|
730
|
+
_0x41eb90: 0x16a,
|
|
731
|
+
_0xc58494: 0x2a1,
|
|
732
|
+
_0x2a4d09: 0x175,
|
|
733
|
+
_0x3e7a10: 0x1ec,
|
|
734
|
+
_0xb95aed: 0x298,
|
|
735
|
+
_0x17527d: 0x272,
|
|
736
|
+
_0x1eaf2a: 0x1e3,
|
|
737
|
+
_0x431fff: 0x186,
|
|
738
|
+
_0x715b03: 0x1e4,
|
|
739
|
+
_0x30e25a: 0x22f,
|
|
740
|
+
_0x4295f1: 0x2a5,
|
|
741
|
+
_0x1bb72c: 0x1bb,
|
|
742
|
+
_0x4acd9: 0x13c,
|
|
743
|
+
_0x44b6ef: 0x278,
|
|
744
|
+
_0x2311f5: 0x186,
|
|
745
|
+
_0x378b9b: 0x293,
|
|
746
|
+
_0x4f831c: 0x143,
|
|
747
|
+
_0x5173e7: 0x239,
|
|
748
|
+
_0xb94e58: 0x125,
|
|
749
|
+
_0x490549: 0x1fb,
|
|
750
|
+
_0x356ce2: 0x195,
|
|
751
|
+
_0x773613: 0x19d,
|
|
752
|
+
_0x446f49: 0x19d,
|
|
753
|
+
_0x15d2f2: 0x14a,
|
|
754
|
+
_0x32a59a: 0x2a5,
|
|
755
|
+
_0x24725d: 0x25e
|
|
756
|
+
}, _0x18fb80 = {
|
|
757
|
+
_0x2605fe: 0x219,
|
|
758
|
+
_0x45d010: 0x2a8,
|
|
759
|
+
_0x6ccb78: 0x266
|
|
760
|
+
}, _0x5684d7 = {
|
|
761
|
+
_0x466283: 0x131,
|
|
762
|
+
_0x823ae8: 0x17e,
|
|
763
|
+
_0x5b9bdf: 0x21b,
|
|
764
|
+
_0x114578: 0x240
|
|
765
|
+
}, _0x7ab4b7 = {
|
|
766
|
+
_0x27290d: 0x182,
|
|
767
|
+
_0x45ce42: 0x1b1,
|
|
768
|
+
_0x398a22: 0x23b,
|
|
769
|
+
_0x48644c: 0x1b3,
|
|
770
|
+
_0x15280b: 0x2ab,
|
|
771
|
+
_0x3749ac: 0x186,
|
|
772
|
+
_0x459cbf: 0x199,
|
|
773
|
+
_0x3ba218: 0x235,
|
|
774
|
+
_0x106d23: 0x29f
|
|
775
|
+
}, _0x561649 = {
|
|
776
|
+
_0x2853f7: 0x131,
|
|
777
|
+
_0x57935c: 0x284
|
|
778
|
+
}, _0x5b8268 = { _0x192ead: 0x264 }, _0x310691 = {
|
|
779
|
+
_0x3e2bb3: 0x202,
|
|
780
|
+
_0xa53758: 0x264
|
|
781
|
+
}, _0x4a3333 = {
|
|
782
|
+
_0x195677: 0x202,
|
|
783
|
+
_0x2279c3: 0x264
|
|
784
|
+
}, _0x209e1e = { _0x73f9c9: 0x254 }, _0x57c71d = {
|
|
785
|
+
_0x56ff8d: 0x13c,
|
|
786
|
+
_0x4ddc42: 0x1b1,
|
|
787
|
+
_0x38e172: 0x202,
|
|
788
|
+
_0x25bc61: 0x21b
|
|
789
|
+
}, _0x3eadf2 = {
|
|
790
|
+
_0x258d6a: 0x173,
|
|
791
|
+
_0x336a8e: 0x25d,
|
|
792
|
+
_0xa21dcd: 0x1b1
|
|
793
|
+
}, _0x47e780 = {
|
|
794
|
+
_0x532daf: 0x14e,
|
|
795
|
+
_0x53d9da: 0x191,
|
|
796
|
+
_0x52ec29: 0x23b
|
|
797
|
+
}, _0x37b0fc = { _0x5ccb57: 0x23b }, _0x32f84d = { _0x3d2916: 0x136 }, _0x33b99c = {
|
|
798
|
+
_0x18a3c3: 0x14c,
|
|
799
|
+
_0x59b041: 0x131,
|
|
800
|
+
_0x1a9dcd: 0x289
|
|
801
|
+
}, _0x24c13a = {
|
|
802
|
+
_0x95210e: 0x2a8,
|
|
803
|
+
_0x2a3983: 0x266,
|
|
804
|
+
_0x7d788a: 0x1ec,
|
|
805
|
+
_0x29b0da: 0x1ec,
|
|
806
|
+
_0x4fd300: 0x13c,
|
|
807
|
+
_0x59aee7: 0x219,
|
|
808
|
+
_0x41a9b4: 0x19f,
|
|
809
|
+
_0x1f96fc: 0x131,
|
|
810
|
+
_0x3d005e: 0x215,
|
|
811
|
+
_0x5649b9: 0x182
|
|
812
|
+
}, _0x30e343 = {
|
|
813
|
+
_0xf080db: 0x214,
|
|
814
|
+
_0x18a0c5: 0x135,
|
|
815
|
+
_0x1a073a: 0x22b
|
|
816
|
+
}, _0x4482a9 = {
|
|
817
|
+
_0x9a1562: 0x1e3,
|
|
818
|
+
_0x43b9c0: 0x1e4,
|
|
819
|
+
_0x8591e2: 0x1bf,
|
|
820
|
+
_0x3b4216: 0x1bf,
|
|
821
|
+
_0x2a812e: 0x298
|
|
822
|
+
}, _0x4e1257 = {
|
|
823
|
+
_0x55a12c: 0x258,
|
|
824
|
+
_0x54068f: 0x185,
|
|
825
|
+
_0x49c433: 0x1e4,
|
|
826
|
+
_0x1fa58c: 0x272,
|
|
827
|
+
_0x26b939: 0x272,
|
|
828
|
+
_0x49c608: 0x28f,
|
|
829
|
+
_0x506ffb: 0x266,
|
|
830
|
+
_0x238ca8: 0x1bf,
|
|
831
|
+
_0x2bf5ba: 0x266
|
|
832
|
+
}, _0x3bf6c1 = {
|
|
833
|
+
_0x327470: 0x185,
|
|
834
|
+
_0x49bf48: 0x272,
|
|
835
|
+
_0x1d2a4b: 0x272
|
|
836
|
+
}, _0x56b0ed = {
|
|
837
|
+
_0x5efc34: 0x1e5,
|
|
838
|
+
_0x5dd190: 0x273
|
|
839
|
+
}, _0x50054d = {
|
|
840
|
+
_0x57702a: 0x1e5,
|
|
841
|
+
_0x5e7244: 0x175
|
|
842
|
+
}, _0x4702f0 = {
|
|
843
|
+
_0xc2dd20: 0x284,
|
|
844
|
+
_0x66fc54: 0x23b,
|
|
845
|
+
_0x5c75e5: 0x23b,
|
|
846
|
+
_0x3b69d1: 0x1e4
|
|
847
|
+
}, _0x1e2aab = {
|
|
848
|
+
_0x1a67ed: 0x265,
|
|
849
|
+
_0x170c17: 0x1d9
|
|
850
|
+
}, _0x33c6dc = {
|
|
851
|
+
_0x4b1059: 0x296,
|
|
852
|
+
_0x493abd: 0x191
|
|
853
|
+
}, _0x343cdf = {
|
|
854
|
+
_0x4e30b6: 0x157,
|
|
855
|
+
_0x4974a3: 0x1b1
|
|
856
|
+
}, _0x4d7c9 = {
|
|
857
|
+
_0x8e8149: 0x15e,
|
|
858
|
+
_0x1436fd: 0x1b1
|
|
859
|
+
}, _0x1b10ab = {
|
|
860
|
+
_0x1b78e3: 0x298,
|
|
861
|
+
_0x449c0b: 0x159,
|
|
862
|
+
_0x4ca1a6: 0x217,
|
|
863
|
+
_0x55bcf3: 0x261,
|
|
864
|
+
_0x304385: 0x24b,
|
|
865
|
+
_0x443738: 0x234,
|
|
866
|
+
_0x1e5332: 0x186,
|
|
867
|
+
_0x3ced95: 0x1f9,
|
|
868
|
+
_0x29189e: 0x12f
|
|
869
|
+
}, _0x3ecc37 = {
|
|
870
|
+
_0x5de18e: 0x199,
|
|
871
|
+
_0x29e81e: 0x1b2
|
|
872
|
+
}, _0x51b6ea = {
|
|
873
|
+
_0x18aff6: 0x19b,
|
|
874
|
+
_0x3ea469: 0x1da,
|
|
875
|
+
_0xa7ea9: 0x28d,
|
|
876
|
+
_0x23fa6f: 0x165,
|
|
877
|
+
_0x2976f9: 0x1d1,
|
|
878
|
+
_0x30cc76: 0x21d,
|
|
879
|
+
_0x58c55e: 0x1fd,
|
|
880
|
+
_0x5bb9f0: 0x152
|
|
881
|
+
}, _0x1007b8 = _0x10d6b5, _0x1273d8 = _0x976918[_0x1007b8(_0x3d0f7e._0x29782a)] ?? fetch, _0x253661 = _0x976918['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0xbd976e = typeof _0x976918[_0x1007b8(0x23f)] === _0x1007b8(0x1e3) && _0x976918['initialLastSeenSeq'] > 0x0 ? _0x976918[_0x1007b8(0x23f)] : 0x0, _0x59c33e = _0x976918[_0x1007b8(0x213)]?.[_0x1007b8(0x1b2)]() || void 0x0, _0xd60ec3 = _0x976918[_0x1007b8(0x1e0)]?.[_0x1007b8(_0x3d0f7e._0xe68809)]() || void 0x0, _0x4b2fda = _0x976918['workerModeEnabled'] === !![], _0xd3fedd = _0x976918[_0x1007b8(0x172)]?.[_0x1007b8(0x1b2)]() || void 0x0, _0xa7e971 = _0x976918[_0x1007b8(_0x3d0f7e._0x5aa8b6)]?.[_0x1007b8(0x1b2)]() || void 0x0, _0x53c501 = createHeaders(_0x976918['daemonApiKey']), _0x36de28 = toHttpBaseUrl(_0x976918[_0x1007b8(_0x3d0f7e._0x4c74e2)]);
|
|
882
|
+
let _0x282009 = null;
|
|
883
|
+
const _0x47ea7f = new Map();
|
|
884
|
+
let _0x3fb905 = _0xbd976e, _0x2f5ed6 = _0xbd976e;
|
|
885
|
+
function _0x311bfb(_0x16c270) {
|
|
886
|
+
const _0x105514 = _0x1007b8, _0x5aeef7 = _0x16c270[_0x105514(_0x51b6ea._0x18aff6)][_0x105514(0x2ab)][_0x105514(0x186)](_0x105514(_0x51b6ea._0x3ea469)) ?? _0x105514(_0x51b6ea._0xa7ea9), _0x597492 = _0x16c270[_0x105514(_0x51b6ea._0x23fa6f)]['trim']()[_0x105514(_0x51b6ea._0x2976f9)](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
887
|
+
return _0x105514(_0x51b6ea._0x30cc76) + _0x16c270[_0x105514(_0x51b6ea._0x58c55e)] + _0x105514(_0x51b6ea._0x5bb9f0) + _0x16c270['response']['status'] + _0x105514(0x151) + _0x5aeef7 + _0x105514(0x23d) + _0x597492 + _0x105514(0x1ed);
|
|
890
888
|
}
|
|
891
|
-
async function
|
|
892
|
-
const
|
|
893
|
-
if (!
|
|
889
|
+
async function _0x244172(_0x500c87, _0x31873c) {
|
|
890
|
+
const _0x4cd463 = _0x1007b8, _0x40aae6 = Buffer[_0x4cd463(_0x3ecc37._0x5de18e)](await _0x31873c['arrayBuffer']())['toString'](_0x4cd463(0x203));
|
|
891
|
+
if (!_0x40aae6[_0x4cd463(_0x3ecc37._0x29e81e)]())
|
|
894
892
|
return {};
|
|
895
893
|
try {
|
|
896
|
-
return JSON[
|
|
894
|
+
return JSON[_0x4cd463(0x1f7)](_0x40aae6);
|
|
897
895
|
} catch {
|
|
898
|
-
throw new Error(
|
|
899
|
-
'bodyText':
|
|
900
|
-
'requestUrl':
|
|
901
|
-
'response':
|
|
896
|
+
throw new Error(_0x311bfb({
|
|
897
|
+
'bodyText': _0x40aae6,
|
|
898
|
+
'requestUrl': _0x500c87,
|
|
899
|
+
'response': _0x31873c
|
|
902
900
|
}));
|
|
903
901
|
}
|
|
904
902
|
}
|
|
905
|
-
function
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
908
|
-
return
|
|
909
|
-
const
|
|
910
|
-
for (const [
|
|
911
|
-
|
|
903
|
+
function _0xdaf0e2(_0x18be31, _0xb4317a) {
|
|
904
|
+
const _0x471c9e = _0x1007b8, _0x29203b = typeof _0xb4317a['idempotency_key'] === _0x471c9e(_0x1b10ab._0x1b78e3) ? _0xb4317a[_0x471c9e(_0x1b10ab._0x449c0b)][_0x471c9e(0x1b2)]() : '';
|
|
905
|
+
if (_0x29203b)
|
|
906
|
+
return _0x29203b;
|
|
907
|
+
const _0x228861 = Date[_0x471c9e(_0x1b10ab._0x4ca1a6)]();
|
|
908
|
+
for (const [_0x1479a6, _0x25ea2b] of _0x47ea7f) {
|
|
909
|
+
_0x25ea2b[_0x471c9e(_0x1b10ab._0x55bcf3)] <= _0x228861 && _0x47ea7f['delete'](_0x1479a6);
|
|
912
910
|
}
|
|
913
|
-
const
|
|
914
|
-
...
|
|
911
|
+
const _0x93b497 = {
|
|
912
|
+
..._0xb4317a,
|
|
915
913
|
'idempotency_key': void 0x0
|
|
916
|
-
},
|
|
917
|
-
if (
|
|
918
|
-
return
|
|
919
|
-
const
|
|
920
|
-
return
|
|
921
|
-
'expiresAt':
|
|
922
|
-
'value':
|
|
923
|
-
}),
|
|
914
|
+
}, _0x123840 = createHash(_0x471c9e(0x13f))[_0x471c9e(_0x1b10ab._0x304385)](_0x18be31 + ':' + stableStringify(_0x93b497))[_0x471c9e(0x229)](_0x471c9e(_0x1b10ab._0x443738)), _0x3a8351 = _0x18be31 + ':' + _0x123840, _0x5d48be = _0x47ea7f[_0x471c9e(_0x1b10ab._0x1e5332)](_0x3a8351);
|
|
915
|
+
if (_0x5d48be)
|
|
916
|
+
return _0x5d48be[_0x471c9e(_0x1b10ab._0x3ced95)];
|
|
917
|
+
const _0x189861 = _0x471c9e(_0x1b10ab._0x29189e) + _0x18be31 + ':' + randomUUID();
|
|
918
|
+
return _0x47ea7f[_0x471c9e(0x13c)](_0x3a8351, {
|
|
919
|
+
'expiresAt': _0x228861 + 0x5 * 0x3c * 0x3e8,
|
|
920
|
+
'value': _0x189861
|
|
921
|
+
}), _0x189861;
|
|
924
922
|
}
|
|
925
|
-
async function
|
|
926
|
-
const
|
|
923
|
+
async function _0x2c8a06(_0x5a1ddf, _0x462228) {
|
|
924
|
+
const _0x200240 = _0x1007b8, _0x10d989 = new AbortController(), _0x8802c1 = setTimeout(() => _0x10d989[_0x200240(0x1aa)](), _0x253661), _0x1ab9cd = _0x462228?.['signal'] ? anySignal(_0x462228[_0x200240(0x157)], _0x10d989[_0x200240(0x157)]) : _0x10d989['signal'], _0x20e1ab = '' + _0x36de28 + _0x5a1ddf;
|
|
927
925
|
try {
|
|
928
|
-
const
|
|
929
|
-
...
|
|
930
|
-
'signal':
|
|
931
|
-
}),
|
|
932
|
-
if (!
|
|
933
|
-
throw new Error(asErrorMessage(
|
|
934
|
-
return
|
|
926
|
+
const _0x52c63e = await _0x1273d8(_0x20e1ab, {
|
|
927
|
+
..._0x462228,
|
|
928
|
+
'signal': _0x1ab9cd
|
|
929
|
+
}), _0x2dfbc0 = await _0x244172(_0x20e1ab, _0x52c63e);
|
|
930
|
+
if (!_0x52c63e['ok'] || _0x2dfbc0[_0x200240(_0x4d7c9._0x8e8149)] === ![])
|
|
931
|
+
throw new Error(asErrorMessage(_0x2dfbc0[_0x200240(0x1dc)], 'HTTP\x20' + _0x52c63e[_0x200240(_0x4d7c9._0x1436fd)]));
|
|
932
|
+
return _0x2dfbc0;
|
|
935
933
|
} finally {
|
|
936
|
-
clearTimeout(
|
|
934
|
+
clearTimeout(_0x8802c1);
|
|
937
935
|
}
|
|
938
936
|
}
|
|
939
|
-
async function
|
|
940
|
-
const
|
|
937
|
+
async function _0xc543c6(_0x250d4a, _0x2a86bd) {
|
|
938
|
+
const _0x372ec7 = _0x1007b8, _0x52ae8a = new AbortController(), _0x39aaec = setTimeout(() => _0x52ae8a[_0x372ec7(0x1aa)](), _0x253661), _0x1014f7 = _0x2a86bd?.[_0x372ec7(_0x343cdf._0x4e30b6)] ? anySignal(_0x2a86bd[_0x372ec7(0x157)], _0x52ae8a[_0x372ec7(0x157)]) : _0x52ae8a['signal'], _0x53b7ff = '' + _0x36de28 + _0x250d4a;
|
|
941
939
|
try {
|
|
942
|
-
const
|
|
943
|
-
...
|
|
944
|
-
'signal':
|
|
945
|
-
}),
|
|
946
|
-
if (!
|
|
947
|
-
throw new Error(asErrorMessage(
|
|
948
|
-
return
|
|
940
|
+
const _0x13aa26 = await _0x1273d8(_0x53b7ff, {
|
|
941
|
+
..._0x2a86bd,
|
|
942
|
+
'signal': _0x1014f7
|
|
943
|
+
}), _0x9417d0 = await _0x244172(_0x53b7ff, _0x13aa26);
|
|
944
|
+
if (!_0x13aa26['ok'])
|
|
945
|
+
throw new Error(asErrorMessage(_0x9417d0[_0x372ec7(0x1dc)], _0x372ec7(0x1e1) + _0x13aa26[_0x372ec7(_0x343cdf._0x4974a3)]));
|
|
946
|
+
return _0x9417d0;
|
|
949
947
|
} finally {
|
|
950
|
-
clearTimeout(
|
|
948
|
+
clearTimeout(_0x39aaec);
|
|
951
949
|
}
|
|
952
950
|
}
|
|
953
|
-
async function
|
|
954
|
-
const
|
|
955
|
-
if (!
|
|
951
|
+
async function _0x18f28e(_0x22993b) {
|
|
952
|
+
const _0xae4346 = _0x1007b8;
|
|
953
|
+
if (!_0xd60ec3 || _0x22993b <= _0x2f5ed6)
|
|
956
954
|
return;
|
|
957
|
-
await
|
|
958
|
-
'body': JSON[
|
|
959
|
-
'headers':
|
|
955
|
+
await _0x2c8a06(_0xae4346(_0x33c6dc._0x4b1059) + encodeURIComponent(_0xd60ec3) + '/context-metrics', {
|
|
956
|
+
'body': JSON[_0xae4346(_0x33c6dc._0x493abd)]({ 'lastSeenSeq': _0x22993b }),
|
|
957
|
+
'headers': _0x53c501,
|
|
960
958
|
'method': 'PATCH'
|
|
961
|
-
}),
|
|
959
|
+
}), _0x2f5ed6 = _0x22993b;
|
|
962
960
|
}
|
|
963
|
-
async function
|
|
964
|
-
const
|
|
965
|
-
if (!
|
|
961
|
+
async function _0x3fe754(_0x1d1e99) {
|
|
962
|
+
const _0x511e4a = _0x1007b8;
|
|
963
|
+
if (!_0x59c33e || !_0xd3fedd || _0x1d1e99 <= _0x2f5ed6)
|
|
966
964
|
return;
|
|
967
|
-
const
|
|
968
|
-
'body': JSON[
|
|
969
|
-
'last_seen_seq':
|
|
970
|
-
'worker_session_id':
|
|
965
|
+
const _0x1ff466 = await _0x1273d8(_0x59c33e + _0x511e4a(_0x1e2aab._0x1a67ed), {
|
|
966
|
+
'body': JSON['stringify']({
|
|
967
|
+
'last_seen_seq': _0x1d1e99,
|
|
968
|
+
'worker_session_id': _0xd3fedd
|
|
971
969
|
}),
|
|
972
|
-
'headers': { 'Content-Type':
|
|
973
|
-
'method':
|
|
970
|
+
'headers': { 'Content-Type': _0x511e4a(_0x1e2aab._0x170c17) },
|
|
971
|
+
'method': _0x511e4a(0x264)
|
|
974
972
|
});
|
|
975
|
-
if (!
|
|
976
|
-
throw new Error(
|
|
977
|
-
|
|
973
|
+
if (!_0x1ff466['ok'])
|
|
974
|
+
throw new Error(_0x511e4a(0x1e1) + _0x1ff466[_0x511e4a(0x1b1)]);
|
|
975
|
+
_0x2f5ed6 = _0x1d1e99;
|
|
978
976
|
}
|
|
979
|
-
async function
|
|
980
|
-
const
|
|
981
|
-
'body': JSON[
|
|
982
|
-
'headers':
|
|
977
|
+
async function _0x17758d(_0x293676) {
|
|
978
|
+
const _0x3f83b7 = _0x1007b8, _0x2a697e = parseTarget(_0x293676), _0x38507c = await _0x2c8a06('/internal/agent/' + _0x976918[_0x3f83b7(0x202)] + '/resolve-channel', {
|
|
979
|
+
'body': JSON['stringify']({ 'target': _0x2a697e[_0x3f83b7(_0x4702f0._0xc2dd20)] }),
|
|
980
|
+
'headers': _0x53c501,
|
|
983
981
|
'method': 'POST'
|
|
984
982
|
});
|
|
985
983
|
return {
|
|
986
|
-
'channelId':
|
|
987
|
-
'target':
|
|
988
|
-
'task':
|
|
989
|
-
'threadId':
|
|
990
|
-
'threadNumber':
|
|
984
|
+
'channelId': _0x38507c[_0x3f83b7(_0x4702f0._0x66fc54)]?.['channelId'] ?? '',
|
|
985
|
+
'target': _0x2a697e[_0x3f83b7(0x185)],
|
|
986
|
+
'task': _0x38507c[_0x3f83b7(0x23b)]?.[_0x3f83b7(0x1c8)],
|
|
987
|
+
'threadId': _0x38507c['data']?.[_0x3f83b7(0x266)],
|
|
988
|
+
'threadNumber': _0x38507c[_0x3f83b7(_0x4702f0._0x5c75e5)]?.[_0x3f83b7(_0x4702f0._0x3b69d1)]
|
|
991
989
|
};
|
|
992
990
|
}
|
|
993
|
-
async function
|
|
994
|
-
const
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
'
|
|
1009
|
-
'
|
|
1010
|
-
})
|
|
1011
|
-
'id':
|
|
1012
|
-
'name':
|
|
1013
|
-
}))[
|
|
1014
|
-
'id': _0x163d38(_0x2345c2),
|
|
1015
|
-
'name': _0x5e3c84(_0x2345c2)
|
|
1016
|
-
}))['filter'](_0x1fb43a => _0x1fb43a['id']), _0xdf3a2 = _0x276559[_0x8f3ae1(_0x4d9239._0x189094)]?.[_0x8f3ae1(_0x4d9239._0x2a6b6d)]['id'] ?? '';
|
|
991
|
+
async function _0x59e5f0(_0x3b0dd0 = {}) {
|
|
992
|
+
const _0x2a1053 = {
|
|
993
|
+
_0x148712: 0x294,
|
|
994
|
+
_0x33cbb0: 0x16a,
|
|
995
|
+
_0x120dc6: 0x23b,
|
|
996
|
+
_0x58783c: 0x1cc,
|
|
997
|
+
_0x421694: 0x293
|
|
998
|
+
};
|
|
999
|
+
if (!_0x3b0dd0['forceRefresh'] && _0x282009)
|
|
1000
|
+
return _0x282009;
|
|
1001
|
+
return _0x282009 = (async () => {
|
|
1002
|
+
const _0x1b4e8f = _0x35b1, _0x1f3900 = await _0x2c8a06('/internal/agent/' + _0x976918[_0x1b4e8f(0x202)] + _0x1b4e8f(0x288), {
|
|
1003
|
+
'headers': _0x53c501,
|
|
1004
|
+
'method': _0x1b4e8f(0x182)
|
|
1005
|
+
}), _0x66c1bc = _0x1f3900[_0x1b4e8f(0x23b)]?.[_0x1b4e8f(_0x2a1053._0x148712)] ?? [], _0x11c01a = _0x66c1bc[_0x1b4e8f(0x16a)](_0xc77671 => _0xc77671[_0x1b4e8f(0x22b)]?.[_0x1b4e8f(0x164)] === 'agent')[_0x1b4e8f(0x2a1)](_0x545bc6 => ({
|
|
1006
|
+
'id': _0x25321d(_0x545bc6),
|
|
1007
|
+
'name': _0x1af7d6(_0x545bc6)
|
|
1008
|
+
}))[_0x1b4e8f(0x16a)](_0x38267b => _0x38267b['id']), _0x121f49 = _0x66c1bc[_0x1b4e8f(_0x2a1053._0x33cbb0)](_0x499e6b => _0x499e6b[_0x1b4e8f(0x22b)]?.[_0x1b4e8f(0x164)] !== _0x1b4e8f(0x24c))[_0x1b4e8f(0x2a1)](_0x507d71 => ({
|
|
1009
|
+
'id': _0x25321d(_0x507d71),
|
|
1010
|
+
'name': _0x1af7d6(_0x507d71)
|
|
1011
|
+
}))[_0x1b4e8f(0x16a)](_0x2ff635 => _0x2ff635['id']), _0x3a6d8c = _0x1f3900[_0x1b4e8f(0x23b)]?.['server']['id'] ?? '';
|
|
1017
1012
|
return {
|
|
1018
|
-
'agents':
|
|
1019
|
-
'channels':
|
|
1020
|
-
'humans':
|
|
1021
|
-
'serverId':
|
|
1022
|
-
'serverName':
|
|
1013
|
+
'agents': _0x11c01a,
|
|
1014
|
+
'channels': _0x1f3900[_0x1b4e8f(0x23b)]?.['channels'] ?? [],
|
|
1015
|
+
'humans': _0x121f49,
|
|
1016
|
+
'serverId': _0x3a6d8c,
|
|
1017
|
+
'serverName': _0x1f3900[_0x1b4e8f(_0x2a1053._0x120dc6)]?.[_0x1b4e8f(_0x2a1053._0x58783c)][_0x1b4e8f(_0x2a1053._0x421694)] ?? _0x3a6d8c
|
|
1023
1018
|
};
|
|
1024
|
-
})()[
|
|
1025
|
-
|
|
1026
|
-
throw
|
|
1027
|
-
}),
|
|
1019
|
+
})()['catch'](_0x44f9cb => {
|
|
1020
|
+
_0x282009 = null;
|
|
1021
|
+
throw _0x44f9cb;
|
|
1022
|
+
}), _0x282009;
|
|
1028
1023
|
}
|
|
1029
|
-
function
|
|
1030
|
-
const
|
|
1031
|
-
return
|
|
1024
|
+
function _0x5367a4(_0x1b3ec5, _0xccc9b3) {
|
|
1025
|
+
const _0x2aae57 = _0x1007b8;
|
|
1026
|
+
return _0xccc9b3[_0x2aae57(_0x50054d._0x57702a)][_0x2aae57(_0x50054d._0x5e7244)](_0x195e04 => _0x195e04['id'] === _0x1b3ec5 || _0x195e04['name'] === _0x1b3ec5) ? 'agent' : _0x2aae57(0x26a);
|
|
1032
1027
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const
|
|
1035
|
-
...
|
|
1036
|
-
...
|
|
1037
|
-
][
|
|
1038
|
-
return
|
|
1028
|
+
function _0x2369d2(_0x26b3cf, _0x5a6dad) {
|
|
1029
|
+
const _0x34d18a = _0x1007b8, _0x5b7146 = [
|
|
1030
|
+
..._0x5a6dad[_0x34d18a(_0x56b0ed._0x5efc34)],
|
|
1031
|
+
..._0x5a6dad[_0x34d18a(_0x56b0ed._0x5dd190)]
|
|
1032
|
+
]['find'](_0x59443d => _0x59443d['id'] === _0x26b3cf);
|
|
1033
|
+
return _0x5b7146?.['name'] ?? _0x26b3cf;
|
|
1039
1034
|
}
|
|
1040
|
-
function
|
|
1041
|
-
const
|
|
1042
|
-
if (
|
|
1043
|
-
return
|
|
1044
|
-
if (
|
|
1045
|
-
return
|
|
1046
|
-
if (
|
|
1047
|
-
return
|
|
1048
|
-
return
|
|
1035
|
+
function _0x549730(_0x4a363b) {
|
|
1036
|
+
const _0x46aaa8 = _0x1007b8;
|
|
1037
|
+
if (_0x4a363b[_0x46aaa8(0x1e4)] != null)
|
|
1038
|
+
return _0x4a363b[_0x46aaa8(_0x3bf6c1._0x327470)] + ':t' + _0x4a363b[_0x46aaa8(0x1e4)];
|
|
1039
|
+
if (_0x4a363b[_0x46aaa8(_0x3bf6c1._0x49bf48)])
|
|
1040
|
+
return _0x4a363b[_0x46aaa8(0x185)] + ':' + _0x4a363b[_0x46aaa8(_0x3bf6c1._0x1d2a4b)];
|
|
1041
|
+
if (_0x4a363b['threadId'])
|
|
1042
|
+
return _0x4a363b['channelTarget'] + ':' + _0x4a363b[_0x46aaa8(0x266)][_0x46aaa8(0x230)](0x0, 0x8);
|
|
1043
|
+
return _0x4a363b['channelTarget'];
|
|
1049
1044
|
}
|
|
1050
|
-
function
|
|
1051
|
-
const
|
|
1045
|
+
function _0x231341(_0x2c632c, _0x2e2aec) {
|
|
1046
|
+
const _0x4ff664 = _0x1007b8;
|
|
1052
1047
|
try {
|
|
1053
|
-
const
|
|
1054
|
-
if (
|
|
1048
|
+
const _0x31f5b7 = parseTarget(_0x2c632c);
|
|
1049
|
+
if (_0x31f5b7[_0x4ff664(0x125)] !== _0x4ff664(_0x4e1257._0x55a12c) || _0x31f5b7[_0x4ff664(0x185)] !== _0x2e2aec[_0x4ff664(_0x4e1257._0x54068f)])
|
|
1055
1050
|
return ![];
|
|
1056
|
-
if (
|
|
1051
|
+
if (_0x2e2aec[_0x4ff664(0x1e4)] != null && _0x31f5b7[_0x4ff664(0x1bf)] === 't' + _0x2e2aec[_0x4ff664(_0x4e1257._0x49c433)])
|
|
1057
1052
|
return !![];
|
|
1058
|
-
if (
|
|
1059
|
-
return
|
|
1060
|
-
if (
|
|
1061
|
-
return
|
|
1053
|
+
if (_0x2e2aec[_0x4ff664(_0x4e1257._0x1fa58c)])
|
|
1054
|
+
return _0x31f5b7['threadShortId'] === _0x2e2aec[_0x4ff664(_0x4e1257._0x1fa58c)] || _0x2e2aec[_0x4ff664(_0x4e1257._0x26b939)][_0x4ff664(_0x4e1257._0x49c608)](_0x31f5b7['threadShortId']);
|
|
1055
|
+
if (_0x2e2aec[_0x4ff664(_0x4e1257._0x506ffb)])
|
|
1056
|
+
return _0x31f5b7[_0x4ff664(_0x4e1257._0x238ca8)] === _0x2e2aec[_0x4ff664(_0x4e1257._0x2bf5ba)] || _0x2e2aec[_0x4ff664(_0x4e1257._0x2bf5ba)][_0x4ff664(0x28f)](_0x31f5b7['threadShortId']);
|
|
1062
1057
|
return ![];
|
|
1063
1058
|
} catch {
|
|
1064
1059
|
return ![];
|
|
1065
1060
|
}
|
|
1066
1061
|
}
|
|
1067
|
-
function
|
|
1068
|
-
const
|
|
1062
|
+
function _0x2b7817(_0x20e0a6, _0x465a03) {
|
|
1063
|
+
const _0x46aaeb = _0x1007b8;
|
|
1069
1064
|
try {
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1065
|
+
const _0x2a2e7f = parseTarget(_0x20e0a6);
|
|
1066
|
+
if (_0x2a2e7f['kind'] !== 'thread')
|
|
1072
1067
|
return ![];
|
|
1073
|
-
const
|
|
1074
|
-
if (
|
|
1068
|
+
const _0x18f22 = typeof _0x465a03[_0x46aaeb(0x1e4)] === _0x46aaeb(_0x4482a9._0x9a1562) && Number[_0x46aaeb(0x2a6)](_0x465a03[_0x46aaeb(_0x4482a9._0x43b9c0)]) ? _0x465a03['threadNumber'] : void 0x0;
|
|
1069
|
+
if (_0x18f22 != null && _0x2a2e7f[_0x46aaeb(_0x4482a9._0x8591e2)] === 't' + _0x18f22)
|
|
1075
1070
|
return !![];
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1078
|
-
return
|
|
1079
|
-
const
|
|
1080
|
-
return Boolean(
|
|
1071
|
+
const _0x3b2db3 = typeof _0x465a03[_0x46aaeb(0x272)] === _0x46aaeb(0x298) ? _0x465a03[_0x46aaeb(0x272)] : void 0x0;
|
|
1072
|
+
if (_0x3b2db3)
|
|
1073
|
+
return _0x2a2e7f[_0x46aaeb(_0x4482a9._0x3b4216)] === _0x3b2db3 || _0x3b2db3[_0x46aaeb(0x28f)](_0x2a2e7f[_0x46aaeb(0x1bf)]);
|
|
1074
|
+
const _0xd81505 = typeof _0x465a03[_0x46aaeb(0x266)] === _0x46aaeb(_0x4482a9._0x2a812e) ? _0x465a03[_0x46aaeb(0x266)] : void 0x0;
|
|
1075
|
+
return Boolean(_0xd81505) && (_0x2a2e7f[_0x46aaeb(0x1bf)] === _0xd81505 || _0xd81505[_0x46aaeb(0x28f)](_0x2a2e7f[_0x46aaeb(0x1bf)]));
|
|
1081
1076
|
} catch {
|
|
1082
1077
|
return ![];
|
|
1083
1078
|
}
|
|
1084
1079
|
}
|
|
1085
|
-
function
|
|
1086
|
-
const
|
|
1087
|
-
return
|
|
1080
|
+
function _0x25321d(_0x4a96f7) {
|
|
1081
|
+
const _0x39bcec = _0x1007b8;
|
|
1082
|
+
return _0x4a96f7[_0x39bcec(_0x30e343._0xf080db)]?.[_0x39bcec(_0x30e343._0x18a0c5)] ?? _0x4a96f7[_0x39bcec(_0x30e343._0x1a073a)]?.['id'] ?? _0x4a96f7[_0x39bcec(_0x30e343._0x18a0c5)] ?? '';
|
|
1088
1083
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const
|
|
1091
|
-
return
|
|
1084
|
+
function _0x1af7d6(_0x139853) {
|
|
1085
|
+
const _0x36b822 = _0x1007b8;
|
|
1086
|
+
return _0x139853[_0x36b822(0x22b)]?.['name'] ?? _0x25321d(_0x139853);
|
|
1092
1087
|
}
|
|
1093
|
-
async function
|
|
1094
|
-
const
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
const
|
|
1100
|
-
'headers':
|
|
1101
|
-
'method':
|
|
1102
|
-
}),
|
|
1103
|
-
'attachments': (
|
|
1104
|
-
'filename':
|
|
1105
|
-
'id':
|
|
1088
|
+
async function _0xd56448(_0x1702ae) {
|
|
1089
|
+
const _0x315b80 = _0x1007b8, _0x30d128 = Math['min'](_0x1702ae[_0x315b80(0x2a8)] ?? 0x32, 0x64), _0x34da95 = await _0x59e5f0(), _0x6201cf = new URLSearchParams();
|
|
1090
|
+
_0x6201cf[_0x315b80(0x13c)](_0x315b80(_0x24c13a._0x95210e), String(_0x30d128));
|
|
1091
|
+
_0x1702ae[_0x315b80(_0x24c13a._0x2a3983)] ? (_0x6201cf[_0x315b80(0x13c)](_0x315b80(_0x24c13a._0x2a3983), _0x1702ae[_0x315b80(0x266)]), _0x6201cf[_0x315b80(0x13c)](_0x315b80(_0x24c13a._0x7d788a), _0x1702ae['channelId'])) : _0x6201cf[_0x315b80(0x13c)](_0x315b80(_0x24c13a._0x29b0da), _0x1702ae['channelId']);
|
|
1092
|
+
_0x1702ae[_0x315b80(0x219)] && _0x6201cf[_0x315b80(_0x24c13a._0x4fd300)](_0x315b80(0x1e7), String(_0x1702ae[_0x315b80(_0x24c13a._0x59aee7)]));
|
|
1093
|
+
_0x1702ae[_0x315b80(_0x24c13a._0x41a9b4)] !== void 0x0 && _0x6201cf['set'](_0x315b80(_0x24c13a._0x41a9b4), String(_0x1702ae[_0x315b80(_0x24c13a._0x41a9b4)]));
|
|
1094
|
+
const _0x4b98b6 = await _0x2c8a06(_0x315b80(_0x24c13a._0x1f96fc) + _0x976918['agentId'] + _0x315b80(_0x24c13a._0x3d005e) + _0x6201cf['toString'](), {
|
|
1095
|
+
'headers': _0x53c501,
|
|
1096
|
+
'method': _0x315b80(_0x24c13a._0x5649b9)
|
|
1097
|
+
}), _0x544ed9 = (_0x4b98b6[_0x315b80(0x23b)] ?? [])['map'](_0x3a5c8f => ({
|
|
1098
|
+
'attachments': (_0x3a5c8f['attachments'] ?? [])[_0x315b80(0x2a1)](_0x217d68 => ({
|
|
1099
|
+
'filename': _0x217d68[_0x315b80(0x291)] ?? _0x217d68['id'],
|
|
1100
|
+
'id': _0x217d68['id']
|
|
1106
1101
|
})),
|
|
1107
|
-
'content':
|
|
1108
|
-
'createdAt':
|
|
1109
|
-
...
|
|
1110
|
-
'messageId':
|
|
1111
|
-
'senderName':
|
|
1112
|
-
'senderType':
|
|
1113
|
-
'seq':
|
|
1102
|
+
'content': _0x3a5c8f[_0x315b80(0x14a)] ?? '',
|
|
1103
|
+
'createdAt': _0x3a5c8f['createdAt'],
|
|
1104
|
+
..._0x3a5c8f[_0x315b80(0x125)] && _0x3a5c8f['kind'] !== 'chat' ? { 'kind': _0x3a5c8f[_0x315b80(0x125)] } : {},
|
|
1105
|
+
'messageId': _0x3a5c8f['id'],
|
|
1106
|
+
'senderName': _0x2369d2(_0x3a5c8f[_0x315b80(0x19d)], _0x34da95),
|
|
1107
|
+
'senderType': _0x5367a4(_0x3a5c8f[_0x315b80(0x19d)], _0x34da95),
|
|
1108
|
+
'seq': _0x3a5c8f[_0x315b80(0x29a)] ?? 0x0
|
|
1114
1109
|
}));
|
|
1115
1110
|
return {
|
|
1116
|
-
'channel':
|
|
1117
|
-
'hasMore':
|
|
1118
|
-
'messages':
|
|
1119
|
-
'nextCursor':
|
|
1111
|
+
'channel': _0x1702ae[_0x315b80(0x185)],
|
|
1112
|
+
'hasMore': _0x4b98b6['meta']?.[_0x315b80(0x13d)] ?? ![],
|
|
1113
|
+
'messages': _0x544ed9,
|
|
1114
|
+
'nextCursor': _0x4b98b6[_0x315b80(0x238)]?.[_0x315b80(0x1e7)]
|
|
1120
1115
|
};
|
|
1121
1116
|
}
|
|
1122
1117
|
return {
|
|
1123
|
-
async 'sendMessage'(
|
|
1124
|
-
const
|
|
1125
|
-
'body': JSON[
|
|
1126
|
-
'attachment_ids':
|
|
1127
|
-
'bodyMarkdown':
|
|
1128
|
-
'channelId':
|
|
1129
|
-
...
|
|
1130
|
-
'threadId':
|
|
1131
|
-
...
|
|
1118
|
+
async 'sendMessage'(_0x355115) {
|
|
1119
|
+
const _0x478fa9 = _0x1007b8, _0x52d90d = await _0x17758d(_0x355115[_0x478fa9(0x284)]), _0x3c0469 = _0x355115[_0x478fa9(_0x33b99c._0x18a3c3)][_0x478fa9(0x140)]('@') ? extractMentionedParticipantIds(_0x355115[_0x478fa9(0x14c)], await _0x59e5f0()) : [], _0x39b1e0 = await _0x2c8a06(_0x478fa9(_0x33b99c._0x59b041) + _0x976918['agentId'] + _0x478fa9(_0x33b99c._0x1a9dcd), {
|
|
1120
|
+
'body': JSON[_0x478fa9(0x191)]({
|
|
1121
|
+
'attachment_ids': _0x355115[_0x478fa9(0x269)],
|
|
1122
|
+
'bodyMarkdown': _0x355115[_0x478fa9(0x14c)],
|
|
1123
|
+
'channelId': _0x52d90d[_0x478fa9(0x1ec)],
|
|
1124
|
+
..._0x3c0469[_0x478fa9(0x1ad)] > 0x0 ? { 'mentionedParticipantIds': _0x3c0469 } : {},
|
|
1125
|
+
'threadId': _0x52d90d['threadId'],
|
|
1126
|
+
..._0x355115['visibility'] ? { 'visibility': _0x355115[_0x478fa9(0x146)] } : {}
|
|
1132
1127
|
}),
|
|
1133
|
-
'headers':
|
|
1134
|
-
'method':
|
|
1128
|
+
'headers': _0x53c501,
|
|
1129
|
+
'method': _0x478fa9(0x264)
|
|
1135
1130
|
});
|
|
1136
|
-
return { 'messageId':
|
|
1131
|
+
return { 'messageId': _0x39b1e0[_0x478fa9(0x23b)]?.['id'] ?? '' };
|
|
1137
1132
|
},
|
|
1138
1133
|
async 'listSchedules'() {
|
|
1139
|
-
const
|
|
1140
|
-
'headers':
|
|
1141
|
-
'method':
|
|
1134
|
+
const _0x2163e8 = _0x1007b8, _0x4fb313 = await _0x2c8a06(_0x2163e8(_0x32f84d._0x3d2916), {
|
|
1135
|
+
'headers': _0x53c501,
|
|
1136
|
+
'method': 'GET'
|
|
1142
1137
|
});
|
|
1143
|
-
return
|
|
1138
|
+
return _0x4fb313['data'] ?? [];
|
|
1144
1139
|
},
|
|
1145
|
-
async 'claimScheduleRun'(
|
|
1146
|
-
const
|
|
1147
|
-
'body': JSON[
|
|
1148
|
-
'headers':
|
|
1149
|
-
'method':
|
|
1140
|
+
async 'claimScheduleRun'(_0x8fc85e) {
|
|
1141
|
+
const _0x68626f = _0x1007b8, _0x42e4c2 = await _0x2c8a06('/api/internal/schedules/claim', {
|
|
1142
|
+
'body': JSON['stringify'](_0x8fc85e),
|
|
1143
|
+
'headers': _0x53c501,
|
|
1144
|
+
'method': _0x68626f(0x264)
|
|
1150
1145
|
});
|
|
1151
|
-
return
|
|
1146
|
+
return _0x42e4c2[_0x68626f(_0x37b0fc._0x5ccb57)] ?? {
|
|
1152
1147
|
'granted': ![],
|
|
1153
1148
|
'runId': null,
|
|
1154
1149
|
'schedule': null,
|
|
1155
|
-
'scheduledFor':
|
|
1150
|
+
'scheduledFor': _0x8fc85e['scheduledFor']
|
|
1156
1151
|
};
|
|
1157
1152
|
},
|
|
1158
|
-
async 'startScheduleRun'(
|
|
1159
|
-
const
|
|
1160
|
-
'body': JSON[
|
|
1161
|
-
'headers':
|
|
1162
|
-
'method':
|
|
1153
|
+
async 'startScheduleRun'(_0x580a05) {
|
|
1154
|
+
const _0x315aac = _0x1007b8, _0x1a2f59 = await _0x2c8a06('/api/internal/schedules/' + encodeURIComponent(_0x580a05['runId']) + _0x315aac(_0x47e780._0x532daf), {
|
|
1155
|
+
'body': JSON[_0x315aac(_0x47e780._0x53d9da)]({}),
|
|
1156
|
+
'headers': _0x53c501,
|
|
1157
|
+
'method': _0x315aac(0x264)
|
|
1163
1158
|
});
|
|
1164
|
-
return
|
|
1159
|
+
return _0x1a2f59[_0x315aac(_0x47e780._0x52ec29)] ?? {
|
|
1165
1160
|
'claimedByDaemonId': '',
|
|
1166
|
-
'id':
|
|
1161
|
+
'id': _0x580a05['runId'],
|
|
1167
1162
|
'scheduleId': '',
|
|
1168
|
-
'status':
|
|
1163
|
+
'status': _0x315aac(0x18f)
|
|
1169
1164
|
};
|
|
1170
1165
|
},
|
|
1171
|
-
async 'finishScheduleRun'(
|
|
1172
|
-
const
|
|
1173
|
-
'body': JSON[
|
|
1174
|
-
'error':
|
|
1175
|
-
'resultJson':
|
|
1176
|
-
'status':
|
|
1166
|
+
async 'finishScheduleRun'(_0x74c21b) {
|
|
1167
|
+
const _0x451633 = _0x1007b8, _0x2731c0 = await _0x2c8a06(_0x451633(_0x3eadf2._0x258d6a) + encodeURIComponent(_0x74c21b['runId']) + '/finish', {
|
|
1168
|
+
'body': JSON[_0x451633(0x191)]({
|
|
1169
|
+
'error': _0x74c21b[_0x451633(0x1dc)],
|
|
1170
|
+
'resultJson': _0x74c21b[_0x451633(_0x3eadf2._0x336a8e)],
|
|
1171
|
+
'status': _0x74c21b['status']
|
|
1177
1172
|
}),
|
|
1178
|
-
'headers':
|
|
1179
|
-
'method':
|
|
1173
|
+
'headers': _0x53c501,
|
|
1174
|
+
'method': _0x451633(0x264)
|
|
1180
1175
|
});
|
|
1181
|
-
return
|
|
1176
|
+
return _0x2731c0[_0x451633(0x23b)] ?? {
|
|
1182
1177
|
'nextRunAt': null,
|
|
1183
1178
|
'run': {
|
|
1184
1179
|
'claimedByDaemonId': '',
|
|
1185
|
-
'id':
|
|
1180
|
+
'id': _0x74c21b['runId'],
|
|
1186
1181
|
'scheduleId': '',
|
|
1187
|
-
'status':
|
|
1182
|
+
'status': _0x74c21b[_0x451633(_0x3eadf2._0xa21dcd)]
|
|
1188
1183
|
}
|
|
1189
1184
|
};
|
|
1190
1185
|
},
|
|
1191
|
-
async 'listTasks'(
|
|
1192
|
-
const
|
|
1193
|
-
return
|
|
1194
|
-
'headers':
|
|
1195
|
-
'method':
|
|
1186
|
+
async 'listTasks'(_0x57b6f5) {
|
|
1187
|
+
const _0x2308d5 = _0x1007b8, _0x2c6e59 = new URLSearchParams();
|
|
1188
|
+
return _0x2c6e59['set']('channel', _0x57b6f5[_0x2308d5(0x26c)]), _0x57b6f5['status'] && _0x2c6e59[_0x2308d5(_0x57c71d._0x56ff8d)](_0x2308d5(0x1b1), _0x57b6f5[_0x2308d5(_0x57c71d._0x4ddc42)]), _0xc543c6(_0x2308d5(0x131) + _0x976918[_0x2308d5(_0x57c71d._0x38e172)] + _0x2308d5(0x15b) + _0x2c6e59[_0x2308d5(_0x57c71d._0x25bc61)](), {
|
|
1189
|
+
'headers': _0x53c501,
|
|
1190
|
+
'method': _0x2308d5(0x182)
|
|
1196
1191
|
});
|
|
1197
1192
|
},
|
|
1198
|
-
async 'createTasks'(
|
|
1199
|
-
const
|
|
1200
|
-
return
|
|
1201
|
-
'body': JSON[
|
|
1202
|
-
...
|
|
1203
|
-
'idempotency_key':
|
|
1193
|
+
async 'createTasks'(_0x207588) {
|
|
1194
|
+
const _0x48d842 = _0x1007b8;
|
|
1195
|
+
return _0xc543c6(_0x48d842(0x131) + _0x976918['agentId'] + _0x48d842(_0x209e1e._0x73f9c9), {
|
|
1196
|
+
'body': JSON[_0x48d842(0x191)]({
|
|
1197
|
+
..._0x207588,
|
|
1198
|
+
'idempotency_key': _0xdaf0e2('create_tasks', _0x207588)
|
|
1204
1199
|
}),
|
|
1205
|
-
'headers':
|
|
1206
|
-
'method':
|
|
1200
|
+
'headers': _0x53c501,
|
|
1201
|
+
'method': _0x48d842(0x264)
|
|
1207
1202
|
});
|
|
1208
1203
|
},
|
|
1209
|
-
async 'claimTasks'(
|
|
1210
|
-
const
|
|
1211
|
-
return
|
|
1204
|
+
async 'claimTasks'(_0x180d82) {
|
|
1205
|
+
const _0x440092 = _0x1007b8;
|
|
1206
|
+
return _0xc543c6('/internal/agent/' + _0x976918[_0x440092(_0x4a3333._0x195677)] + _0x440092(0x156), {
|
|
1212
1207
|
'body': JSON['stringify']({
|
|
1213
|
-
...
|
|
1214
|
-
'idempotency_key':
|
|
1208
|
+
..._0x180d82,
|
|
1209
|
+
'idempotency_key': _0xdaf0e2(_0x440092(0x1a2), _0x180d82)
|
|
1215
1210
|
}),
|
|
1216
|
-
'headers':
|
|
1217
|
-
'method':
|
|
1211
|
+
'headers': _0x53c501,
|
|
1212
|
+
'method': _0x440092(_0x4a3333._0x2279c3)
|
|
1218
1213
|
});
|
|
1219
1214
|
},
|
|
1220
|
-
async 'unclaimTask'(
|
|
1221
|
-
const
|
|
1222
|
-
return
|
|
1223
|
-
'body': JSON[
|
|
1224
|
-
...
|
|
1225
|
-
'idempotency_key':
|
|
1215
|
+
async 'unclaimTask'(_0x3b5ef6) {
|
|
1216
|
+
const _0xa3477f = _0x1007b8;
|
|
1217
|
+
return _0xc543c6(_0xa3477f(0x131) + _0x976918[_0xa3477f(_0x310691._0x3e2bb3)] + _0xa3477f(0x1b8), {
|
|
1218
|
+
'body': JSON['stringify']({
|
|
1219
|
+
..._0x3b5ef6,
|
|
1220
|
+
'idempotency_key': _0xdaf0e2(_0xa3477f(0x287), _0x3b5ef6)
|
|
1226
1221
|
}),
|
|
1227
|
-
'headers':
|
|
1228
|
-
'method':
|
|
1222
|
+
'headers': _0x53c501,
|
|
1223
|
+
'method': _0xa3477f(_0x310691._0xa53758)
|
|
1229
1224
|
});
|
|
1230
1225
|
},
|
|
1231
|
-
async 'updateTaskStatus'(
|
|
1232
|
-
const
|
|
1233
|
-
return
|
|
1234
|
-
'body': JSON[
|
|
1235
|
-
...
|
|
1236
|
-
'idempotency_key':
|
|
1226
|
+
async 'updateTaskStatus'(_0x5824e1) {
|
|
1227
|
+
const _0x569e7c = _0x1007b8;
|
|
1228
|
+
return _0xc543c6(_0x569e7c(0x131) + _0x976918[_0x569e7c(0x202)] + _0x569e7c(0x189), {
|
|
1229
|
+
'body': JSON[_0x569e7c(0x191)]({
|
|
1230
|
+
..._0x5824e1,
|
|
1231
|
+
'idempotency_key': _0xdaf0e2(_0x569e7c(0x228), _0x5824e1)
|
|
1237
1232
|
}),
|
|
1238
|
-
'headers':
|
|
1239
|
-
'method':
|
|
1233
|
+
'headers': _0x53c501,
|
|
1234
|
+
'method': _0x569e7c(_0x5b8268._0x192ead)
|
|
1240
1235
|
});
|
|
1241
1236
|
},
|
|
1242
|
-
async 'uploadFile'(
|
|
1243
|
-
const
|
|
1244
|
-
if (
|
|
1237
|
+
async 'uploadFile'(_0x53250e) {
|
|
1238
|
+
const _0x4bbc87 = _0x1007b8, _0x2f1810 = await _0x17758d(_0x53250e[_0x4bbc87(0x26c)]);
|
|
1239
|
+
if (_0x2f1810[_0x4bbc87(0x266)])
|
|
1245
1240
|
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1246
|
-
const
|
|
1247
|
-
'body': JSON[
|
|
1248
|
-
'channel':
|
|
1249
|
-
'contentBase64':
|
|
1250
|
-
'contentType':
|
|
1251
|
-
'originalFilename':
|
|
1241
|
+
const _0x1e383c = await _0x2c8a06(_0x4bbc87(_0x561649._0x2853f7) + _0x976918['agentId'] + _0x4bbc87(0x1a5), {
|
|
1242
|
+
'body': JSON[_0x4bbc87(0x191)]({
|
|
1243
|
+
'channel': _0x2f1810[_0x4bbc87(_0x561649._0x57935c)],
|
|
1244
|
+
'contentBase64': _0x53250e['contentBase64'],
|
|
1245
|
+
'contentType': _0x53250e['contentType'],
|
|
1246
|
+
'originalFilename': _0x53250e['filename']
|
|
1252
1247
|
}),
|
|
1253
|
-
'headers':
|
|
1254
|
-
'method':
|
|
1248
|
+
'headers': _0x53c501,
|
|
1249
|
+
'method': _0x4bbc87(0x264)
|
|
1255
1250
|
});
|
|
1256
1251
|
return {
|
|
1257
|
-
'attachmentId':
|
|
1258
|
-
'filename':
|
|
1259
|
-
'sizeBytes':
|
|
1252
|
+
'attachmentId': _0x1e383c['data']?.['id'] ?? '',
|
|
1253
|
+
'filename': _0x1e383c['data']?.['originalFilename'] ?? _0x53250e[_0x4bbc87(0x291)],
|
|
1254
|
+
'sizeBytes': _0x1e383c[_0x4bbc87(0x23b)]?.[_0x4bbc87(0x283)] ?? 0x0
|
|
1260
1255
|
};
|
|
1261
1256
|
},
|
|
1262
|
-
async 'downloadAttachment'(
|
|
1263
|
-
const
|
|
1264
|
-
'headers':
|
|
1265
|
-
'method':
|
|
1266
|
-
}),
|
|
1257
|
+
async 'downloadAttachment'(_0x15ee6f) {
|
|
1258
|
+
const _0x20ca17 = _0x1007b8, _0x27dc08 = await _0x2c8a06(_0x20ca17(0x2b0) + _0x15ee6f, {
|
|
1259
|
+
'headers': _0x53c501,
|
|
1260
|
+
'method': _0x20ca17(0x182)
|
|
1261
|
+
}), _0x3dc3a2 = new AbortController(), _0x2160af = setTimeout(() => _0x3dc3a2[_0x20ca17(0x1aa)](), _0x253661);
|
|
1267
1262
|
try {
|
|
1268
|
-
const
|
|
1269
|
-
'headers':
|
|
1270
|
-
'method':
|
|
1271
|
-
'signal':
|
|
1263
|
+
const _0x24d0a2 = await _0x1273d8(_0x36de28 + '/api/attachments/' + _0x15ee6f + _0x20ca17(0x1b5), {
|
|
1264
|
+
'headers': _0x53c501,
|
|
1265
|
+
'method': _0x20ca17(_0x7ab4b7._0x27290d),
|
|
1266
|
+
'signal': _0x3dc3a2['signal']
|
|
1272
1267
|
});
|
|
1273
|
-
if (!
|
|
1274
|
-
throw new Error(
|
|
1268
|
+
if (!_0x24d0a2['ok'])
|
|
1269
|
+
throw new Error('HTTP\x20' + _0x24d0a2[_0x20ca17(_0x7ab4b7._0x45ce42)]);
|
|
1275
1270
|
return {
|
|
1276
|
-
'contentType':
|
|
1277
|
-
'data': Buffer[
|
|
1278
|
-
'originalFilename':
|
|
1271
|
+
'contentType': _0x27dc08[_0x20ca17(_0x7ab4b7._0x398a22)]?.[_0x20ca17(_0x7ab4b7._0x48644c)] ?? _0x24d0a2[_0x20ca17(_0x7ab4b7._0x15280b)][_0x20ca17(_0x7ab4b7._0x3749ac)]('content-type') ?? _0x20ca17(0x1f4),
|
|
1272
|
+
'data': Buffer[_0x20ca17(_0x7ab4b7._0x459cbf)](await _0x24d0a2[_0x20ca17(_0x7ab4b7._0x3ba218)]()),
|
|
1273
|
+
'originalFilename': _0x27dc08[_0x20ca17(0x23b)]?.[_0x20ca17(_0x7ab4b7._0x106d23)]
|
|
1279
1274
|
};
|
|
1280
1275
|
} finally {
|
|
1281
|
-
clearTimeout(
|
|
1276
|
+
clearTimeout(_0x2160af);
|
|
1282
1277
|
}
|
|
1283
1278
|
},
|
|
1284
1279
|
async 'listServer'() {
|
|
1285
|
-
return
|
|
1280
|
+
return _0x59e5f0({ 'forceRefresh': !![] });
|
|
1286
1281
|
},
|
|
1287
1282
|
async 'getLatestEventSeq'() {
|
|
1288
|
-
const
|
|
1289
|
-
|
|
1290
|
-
const
|
|
1291
|
-
'headers':
|
|
1292
|
-
'method':
|
|
1293
|
-
}),
|
|
1294
|
-
return typeof
|
|
1283
|
+
const _0x4ac07a = _0x1007b8, _0x297343 = new URLSearchParams();
|
|
1284
|
+
_0x297343[_0x4ac07a(0x13c)]('afterSeq', '0'), _0x297343['set'](_0x4ac07a(0x2a8), '1');
|
|
1285
|
+
const _0x158a4c = await _0x2c8a06(_0x4ac07a(_0x5684d7._0x466283) + _0x976918[_0x4ac07a(0x202)] + _0x4ac07a(_0x5684d7._0x823ae8) + _0x297343[_0x4ac07a(_0x5684d7._0x5b9bdf)](), {
|
|
1286
|
+
'headers': _0x53c501,
|
|
1287
|
+
'method': _0x4ac07a(0x182)
|
|
1288
|
+
}), _0x1b4511 = _0x158a4c[_0x4ac07a(0x238)]?.[_0x4ac07a(_0x5684d7._0x114578)];
|
|
1289
|
+
return typeof _0x1b4511 === 'number' && _0x1b4511 > 0x0 ? _0x1b4511 : 0x0;
|
|
1295
1290
|
},
|
|
1296
|
-
async 'readHistory'(
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1299
|
-
'after':
|
|
1300
|
-
'before':
|
|
1301
|
-
'channelId':
|
|
1302
|
-
'channelTarget':
|
|
1303
|
-
'limit':
|
|
1304
|
-
'threadId':
|
|
1291
|
+
async 'readHistory'(_0x4c60e9) {
|
|
1292
|
+
const _0x125ebc = _0x1007b8, _0x3f4d9c = await _0x17758d(_0x4c60e9['channel']);
|
|
1293
|
+
return _0xd56448({
|
|
1294
|
+
'after': _0x4c60e9['after'],
|
|
1295
|
+
'before': _0x4c60e9[_0x125ebc(_0x18fb80._0x2605fe)],
|
|
1296
|
+
'channelId': _0x3f4d9c['channelId'],
|
|
1297
|
+
'channelTarget': _0x3f4d9c['target'],
|
|
1298
|
+
'limit': _0x4c60e9[_0x125ebc(_0x18fb80._0x45d010)],
|
|
1299
|
+
'threadId': _0x3f4d9c[_0x125ebc(_0x18fb80._0x6ccb78)]
|
|
1305
1300
|
});
|
|
1306
1301
|
},
|
|
1307
|
-
'resolveTarget':
|
|
1302
|
+
'resolveTarget': _0x17758d,
|
|
1308
1303
|
async 'checkMessages'() {
|
|
1309
|
-
const
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
},
|
|
1313
|
-
|
|
1314
|
-
const
|
|
1315
|
-
'headers':
|
|
1316
|
-
'method':
|
|
1317
|
-
}),
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1304
|
+
const _0x75558b = {
|
|
1305
|
+
_0x3026d6: 0x239,
|
|
1306
|
+
_0x448aae: 0x2af
|
|
1307
|
+
}, _0x409a70 = _0x1007b8, _0xb256d7 = new URLSearchParams();
|
|
1308
|
+
_0xb256d7[_0x409a70(0x13c)](_0x409a70(_0x5b753f._0x14987c), String(_0x3fb905));
|
|
1309
|
+
const _0x3e1550 = _0xb256d7[_0x409a70(0x21b)](), _0x5d339e = await _0x2c8a06(_0x409a70(_0x5b753f._0x8beaa9) + _0x976918[_0x409a70(_0x5b753f._0x4ba87d)] + '/receive' + (_0x3e1550 ? '?' + _0x3e1550 : ''), {
|
|
1310
|
+
'headers': _0x53c501,
|
|
1311
|
+
'method': 'GET'
|
|
1312
|
+
}), _0x3048a6 = _0x5d339e[_0x409a70(_0x5b753f._0x3110bd)] ?? [], _0x23ac9d = _0x5d339e['meta']?.[_0x409a70(0x1e7)], _0x424b93 = _0xa7e971 ? _0x3048a6[_0x409a70(0x16a)](_0x813046 => {
|
|
1313
|
+
const _0x3ea1c7 = _0x409a70;
|
|
1314
|
+
if (_0x813046[_0x3ea1c7(0x14b)] !== _0x3ea1c7(0x16f))
|
|
1320
1315
|
return ![];
|
|
1321
|
-
return
|
|
1322
|
-
}) :
|
|
1323
|
-
let
|
|
1324
|
-
|
|
1325
|
-
|
|
1316
|
+
return _0x2b7817(_0xa7e971, asRecord(_0x813046[_0x3ea1c7(0x239)]));
|
|
1317
|
+
}) : _0x3048a6, _0x57f046 = _0x23ac9d !== void 0x0 ? _0xa7e971 ? Math[_0x409a70(0x1fc)](_0x3fb905, _0x424b93[_0x409a70(0x1ad)] > 0x0 ? _0x424b93[_0x424b93[_0x409a70(_0x5b753f._0x5e9b67)] - 0x1][_0x409a70(_0x5b753f._0x5028c0)] : _0x3fb905) : Math[_0x409a70(_0x5b753f._0x4d8076)](_0x3fb905, _0x23ac9d) : _0x424b93[_0x409a70(_0x5b753f._0x16d7d0)] > 0x0 ? Math[_0x409a70(0x1fc)](_0x3fb905, _0x424b93[_0x424b93[_0x409a70(0x1ad)] - 0x1][_0x409a70(0x20c)]) : _0x3fb905, _0x5f1e29 = (_0xa7e971 ? _0x424b93 : _0x3048a6)[_0x409a70(_0x5b753f._0x41eb90)](_0x1b7928 => _0x1b7928[_0x409a70(0x14b)] === _0x409a70(0x16f)), _0x5f2e2b = _0xa7e971 === void 0x0 && _0x4b2fda;
|
|
1318
|
+
let _0x30338b = await _0x59e5f0(), _0x305ec6 = new Map(_0x30338b[_0x409a70(0x218)][_0x409a70(_0x5b753f._0xc58494)](_0x416160 => [
|
|
1319
|
+
_0x416160['id'],
|
|
1320
|
+
_0x416160
|
|
1326
1321
|
]));
|
|
1327
|
-
const
|
|
1328
|
-
const
|
|
1329
|
-
return Boolean(
|
|
1322
|
+
const _0xe6ecce = _0x5f1e29[_0x409a70(_0x5b753f._0x2a4d09)](_0x320fe9 => {
|
|
1323
|
+
const _0x236915 = _0x409a70, _0x30a503 = asRecord(_0x320fe9[_0x236915(_0x75558b._0x3026d6)]), _0x5c96c5 = typeof _0x30a503?.[_0x236915(0x1ec)] === 'string' ? _0x30a503['channelId'] : '';
|
|
1324
|
+
return Boolean(_0x5c96c5) && !_0x305ec6[_0x236915(_0x75558b._0x448aae)](_0x5c96c5);
|
|
1330
1325
|
});
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1326
|
+
_0xe6ecce && (_0x30338b = await _0x59e5f0({ 'forceRefresh': !![] }), _0x305ec6 = new Map(_0x30338b[_0x409a70(0x218)][_0x409a70(0x2a1)](_0x489d78 => [
|
|
1327
|
+
_0x489d78['id'],
|
|
1328
|
+
_0x489d78
|
|
1334
1329
|
])));
|
|
1335
|
-
const
|
|
1336
|
-
for (const
|
|
1337
|
-
const
|
|
1338
|
-
if (!
|
|
1330
|
+
const _0x240d69 = new Map();
|
|
1331
|
+
for (const _0x3ba615 of _0x5f1e29) {
|
|
1332
|
+
const _0x3f86fa = asRecord(_0x3ba615[_0x409a70(0x239)]), _0x4a8b89 = typeof _0x3f86fa[_0x409a70(_0x5b753f._0x3e7a10)] === _0x409a70(_0x5b753f._0xb95aed) ? _0x3f86fa[_0x409a70(_0x5b753f._0x3e7a10)] : '';
|
|
1333
|
+
if (!_0x4a8b89)
|
|
1339
1334
|
continue;
|
|
1340
|
-
const
|
|
1335
|
+
const _0x44eb7b = typeof _0x3f86fa[_0x409a70(0x266)] === 'string' ? _0x3f86fa['threadId'] : void 0x0, _0x5b69b4 = typeof _0x3f86fa[_0x409a70(_0x5b753f._0x17527d)] === 'string' ? _0x3f86fa[_0x409a70(0x272)] : void 0x0, _0x30109e = typeof _0x3f86fa[_0x409a70(0x1e4)] === _0x409a70(_0x5b753f._0x1eaf2a) && Number[_0x409a70(0x2a6)](_0x3f86fa['threadNumber']) ? _0x3f86fa['threadNumber'] : void 0x0, _0x482de3 = Boolean(_0x44eb7b && (!_0x5b69b4 || _0x3ba615[_0x409a70(0x278)] !== _0x5b69b4)), _0x50a109 = _0x482de3 ? _0x4a8b89 + ':' + _0x44eb7b : _0x4a8b89, _0x129217 = _0x240d69[_0x409a70(_0x5b753f._0x431fff)](_0x50a109) ?? {
|
|
1341
1336
|
'aggregateIds': [],
|
|
1342
|
-
'channelId':
|
|
1337
|
+
'channelId': _0x4a8b89,
|
|
1343
1338
|
'entries': new Map(),
|
|
1344
|
-
'isThreadReply':
|
|
1345
|
-
'rootMessageId':
|
|
1346
|
-
'threadNumber':
|
|
1347
|
-
'threadId':
|
|
1339
|
+
'isThreadReply': _0x482de3,
|
|
1340
|
+
'rootMessageId': _0x5b69b4,
|
|
1341
|
+
'threadNumber': _0x30109e,
|
|
1342
|
+
'threadId': _0x482de3 ? _0x44eb7b : void 0x0
|
|
1348
1343
|
};
|
|
1349
|
-
|
|
1350
|
-
'payloadJson':
|
|
1351
|
-
'seq':
|
|
1352
|
-
}),
|
|
1344
|
+
_0x129217[_0x409a70(_0x5b753f._0x715b03)] == null && _0x30109e != null && (_0x129217[_0x409a70(0x1e4)] = _0x30109e), !_0x129217[_0x409a70(_0x5b753f._0x17527d)] && _0x5b69b4 && (_0x129217[_0x409a70(_0x5b753f._0x17527d)] = _0x5b69b4), _0x129217[_0x409a70(_0x5b753f._0x30e25a)][_0x409a70(_0x5b753f._0x4295f1)](_0x3ba615[_0x409a70(0x278)]), _0x129217[_0x409a70(_0x5b753f._0x1bb72c)][_0x409a70(_0x5b753f._0x4acd9)](_0x3ba615[_0x409a70(_0x5b753f._0x44b6ef)], {
|
|
1345
|
+
'payloadJson': _0x3ba615[_0x409a70(0x239)],
|
|
1346
|
+
'seq': _0x3ba615[_0x409a70(0x20c)]
|
|
1347
|
+
}), _0x240d69[_0x409a70(0x13c)](_0x50a109, _0x129217);
|
|
1353
1348
|
}
|
|
1354
|
-
const
|
|
1355
|
-
for (const
|
|
1349
|
+
const _0xeca569 = [];
|
|
1350
|
+
for (const _0x332f38 of _0x240d69['values']()) {
|
|
1356
1351
|
const {
|
|
1357
|
-
channelId:
|
|
1358
|
-
threadId:
|
|
1359
|
-
rootMessageId:
|
|
1360
|
-
threadNumber:
|
|
1361
|
-
aggregateIds:
|
|
1362
|
-
isThreadReply:
|
|
1363
|
-
entries:
|
|
1364
|
-
} =
|
|
1365
|
-
'channelTarget':
|
|
1366
|
-
'rootMessageId':
|
|
1367
|
-
'threadId':
|
|
1368
|
-
'threadNumber':
|
|
1369
|
-
},
|
|
1370
|
-
'channelId':
|
|
1371
|
-
'channelTarget':
|
|
1372
|
-
'limit': Math[
|
|
1373
|
-
'threadId':
|
|
1374
|
-
}),
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
])),
|
|
1378
|
-
for (const
|
|
1379
|
-
if (!
|
|
1352
|
+
channelId: _0xf925f5,
|
|
1353
|
+
threadId: _0x2abfa8,
|
|
1354
|
+
rootMessageId: _0x152756,
|
|
1355
|
+
threadNumber: _0x53196b,
|
|
1356
|
+
aggregateIds: _0x4e1296,
|
|
1357
|
+
isThreadReply: _0xb48c14,
|
|
1358
|
+
entries: _0x145b6b
|
|
1359
|
+
} = _0x332f38, _0x4da6f8 = _0x305ec6[_0x409a70(_0x5b753f._0x2311f5)](_0xf925f5), _0x1eea1b = _0x4da6f8?.[_0x409a70(_0x5b753f._0x378b9b)] ?? _0xf925f5, _0x21c6f0 = _0x4da6f8?.['kind'] === 'dm' ? _0x409a70(_0x5b753f._0x4f831c) + _0x1eea1b : '#' + _0x1eea1b, _0x1016c9 = {
|
|
1360
|
+
'channelTarget': _0x21c6f0,
|
|
1361
|
+
'rootMessageId': _0x152756,
|
|
1362
|
+
'threadId': _0x2abfa8,
|
|
1363
|
+
'threadNumber': _0x53196b
|
|
1364
|
+
}, _0x420ac2 = await _0xd56448({
|
|
1365
|
+
'channelId': _0xf925f5,
|
|
1366
|
+
'channelTarget': _0x21c6f0,
|
|
1367
|
+
'limit': Math[_0x409a70(0x1fc)](_0x4e1296[_0x409a70(_0x5b753f._0x16d7d0)], 0x32),
|
|
1368
|
+
'threadId': _0x2abfa8
|
|
1369
|
+
}), _0x29e9bc = new Map(_0x420ac2[_0x409a70(0x17c)][_0x409a70(0x2a1)](_0x18bf04 => [
|
|
1370
|
+
_0x18bf04[_0x409a70(0x1fb)],
|
|
1371
|
+
_0x18bf04
|
|
1372
|
+
])), _0x1ce0b2 = _0x2abfa8 ? _0x549730(_0x1016c9) : _0x21c6f0, _0x24452d = _0xa7e971 ? _0xb48c14 && _0x231341(_0xa7e971, _0x1016c9) : !![], _0x4b67c7 = _0xb48c14 ? _0x24452d && _0xa7e971 ? _0xa7e971 : _0x1ce0b2 : _0x21c6f0;
|
|
1373
|
+
for (const _0x15a900 of _0x4e1296) {
|
|
1374
|
+
if (!_0x24452d)
|
|
1380
1375
|
continue;
|
|
1381
|
-
const
|
|
1382
|
-
if (
|
|
1376
|
+
const _0x14d0b3 = _0x145b6b[_0x409a70(_0x5b753f._0x2311f5)](_0x15a900), _0x5641c7 = _0x14d0b3 ? asRecord(_0x14d0b3[_0x409a70(_0x5b753f._0x5173e7)]) : void 0x0, _0x32aaec = _0x5641c7?.['taskDeliveryMode'] === _0x409a70(0x174);
|
|
1377
|
+
if (_0x5f2e2b && _0x32aaec)
|
|
1383
1378
|
continue;
|
|
1384
|
-
const
|
|
1385
|
-
if (
|
|
1386
|
-
|
|
1387
|
-
'attachments':
|
|
1388
|
-
'content':
|
|
1389
|
-
'createdAt':
|
|
1390
|
-
...
|
|
1391
|
-
'messageId':
|
|
1392
|
-
'senderName':
|
|
1393
|
-
'senderType':
|
|
1394
|
-
'target':
|
|
1395
|
-
...
|
|
1379
|
+
const _0x54b9f4 = _0x29e9bc[_0x409a70(0x186)](_0x15a900);
|
|
1380
|
+
if (_0x54b9f4) {
|
|
1381
|
+
_0xeca569[_0x409a70(0x2a5)]({
|
|
1382
|
+
'attachments': _0x54b9f4['attachments'],
|
|
1383
|
+
'content': _0x54b9f4[_0x409a70(0x14c)],
|
|
1384
|
+
'createdAt': _0x54b9f4[_0x409a70(0x12a)],
|
|
1385
|
+
..._0x54b9f4[_0x409a70(_0x5b753f._0xb94e58)] ? { 'kind': _0x54b9f4[_0x409a70(0x125)] } : {},
|
|
1386
|
+
'messageId': _0x54b9f4[_0x409a70(_0x5b753f._0x490549)],
|
|
1387
|
+
'senderName': _0x54b9f4[_0x409a70(_0x5b753f._0x356ce2)],
|
|
1388
|
+
'senderType': _0x54b9f4[_0x409a70(0x19a)],
|
|
1389
|
+
'target': _0x4b67c7,
|
|
1390
|
+
..._0x32aaec ? { 'targetedTask': !![] } : {}
|
|
1396
1391
|
});
|
|
1397
1392
|
continue;
|
|
1398
1393
|
}
|
|
1399
|
-
if (
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1394
|
+
if (_0x14d0b3) {
|
|
1395
|
+
const _0x4710fb = typeof _0x5641c7?.[_0x409a70(_0x5b753f._0x773613)] === _0x409a70(_0x5b753f._0xb95aed) ? _0x5641c7[_0x409a70(_0x5b753f._0x446f49)] : '', _0x26cb9e = typeof _0x5641c7?.[_0x409a70(_0x5b753f._0x15d2f2)] === _0x409a70(_0x5b753f._0xb95aed) ? _0x5641c7[_0x409a70(0x14a)] : '', _0x13a86d = typeof _0x5641c7?.[_0x409a70(0x125)] === _0x409a70(_0x5b753f._0xb95aed) && _0x5641c7['kind'] !== 'chat' ? _0x5641c7[_0x409a70(0x125)] : void 0x0;
|
|
1396
|
+
_0x4710fb && _0x26cb9e && _0xeca569[_0x409a70(_0x5b753f._0x32a59a)]({
|
|
1402
1397
|
'attachments': [],
|
|
1403
|
-
'content':
|
|
1404
|
-
'createdAt': new Date()[
|
|
1405
|
-
...
|
|
1406
|
-
'messageId':
|
|
1407
|
-
'senderName':
|
|
1408
|
-
'senderType':
|
|
1409
|
-
'target':
|
|
1410
|
-
...
|
|
1398
|
+
'content': _0x26cb9e,
|
|
1399
|
+
'createdAt': new Date()[_0x409a70(_0x5b753f._0x24725d)](),
|
|
1400
|
+
..._0x13a86d ? { 'kind': _0x13a86d } : {},
|
|
1401
|
+
'messageId': _0x15a900,
|
|
1402
|
+
'senderName': _0x2369d2(_0x4710fb, _0x30338b),
|
|
1403
|
+
'senderType': _0x5367a4(_0x4710fb, _0x30338b),
|
|
1404
|
+
'target': _0x4b67c7,
|
|
1405
|
+
..._0x32aaec ? { 'targetedTask': !![] } : {}
|
|
1411
1406
|
});
|
|
1412
1407
|
}
|
|
1413
1408
|
}
|
|
1414
1409
|
}
|
|
1415
|
-
if (
|
|
1416
|
-
if (
|
|
1417
|
-
await
|
|
1410
|
+
if (_0x57f046 > 0x0) {
|
|
1411
|
+
if (_0xd60ec3)
|
|
1412
|
+
await _0x18f28e(_0x57f046);
|
|
1418
1413
|
else
|
|
1419
|
-
|
|
1414
|
+
_0xd3fedd && await _0x3fe754(_0x57f046);
|
|
1420
1415
|
}
|
|
1421
|
-
return
|
|
1416
|
+
return _0x57f046 > _0x3fb905 && (_0x3fb905 = _0x57f046), { 'messages': _0xa7e971 ? _0xeca569 : _0x5f2e2b ? _0xeca569[_0x409a70(0x16a)](_0x194b6c => _0x194b6c[_0x409a70(0x25c)] !== !![]) : _0xeca569 };
|
|
1422
1417
|
}
|
|
1423
1418
|
};
|
|
1424
1419
|
}
|
|
1425
|
-
function toLocalTime(
|
|
1426
|
-
const
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
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)]());
|
|
1420
|
+
function toLocalTime(_0x4e25c6) {
|
|
1421
|
+
const _0x3a4287 = {
|
|
1422
|
+
_0xa0b33: 0x1a6,
|
|
1423
|
+
_0x6d4540: 0x29c
|
|
1424
|
+
}, _0x39dce7 = _0x10d6b5, _0x2460c3 = new Date(_0x4e25c6);
|
|
1425
|
+
if (Number[_0x39dce7(0x14d)](_0x2460c3[_0x39dce7(0x259)]()))
|
|
1426
|
+
return _0x4e25c6;
|
|
1427
|
+
const _0x5e8cce = _0x4474bb => String(_0x4474bb)[_0x39dce7(0x231)](0x2, '0');
|
|
1428
|
+
return _0x2460c3[_0x39dce7(0x210)]() + '-' + _0x5e8cce(_0x2460c3['getMonth']() + 0x1) + '-' + _0x5e8cce(_0x2460c3['getDate']()) + '\x20' + _0x5e8cce(_0x2460c3[_0x39dce7(_0x3a4287._0xa0b33)]()) + ':' + _0x5e8cce(_0x2460c3[_0x39dce7(_0x3a4287._0x6d4540)]()) + ':' + _0x5e8cce(_0x2460c3[_0x39dce7(0x243)]());
|
|
1437
1429
|
}
|
|
1438
|
-
function formatAttachmentSuffix(
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1441
|
-
_0x548a76: 0x170
|
|
1442
|
-
}, _0x449602 = _0x456b7e;
|
|
1443
|
-
if (!_0xec0047 || _0xec0047[_0x449602(0x14e)] === 0x0)
|
|
1430
|
+
function formatAttachmentSuffix(_0x2da837) {
|
|
1431
|
+
const _0x56650c = { _0x530985: 0x220 }, _0x59a512 = _0x10d6b5;
|
|
1432
|
+
if (!_0x2da837 || _0x2da837['length'] === 0x0)
|
|
1444
1433
|
return '';
|
|
1445
|
-
return '\x20[' +
|
|
1434
|
+
return '\x20[' + _0x2da837[_0x59a512(0x1ad)] + _0x59a512(0x21c) + (_0x2da837[_0x59a512(0x1ad)] > 0x1 ? 's' : '') + ':\x20' + _0x2da837[_0x59a512(0x2a1)](_0x5c3e31 => _0x5c3e31[_0x59a512(0x291)] + _0x59a512(0x248) + _0x5c3e31['id'] + ')')[_0x59a512(0x281)](',\x20') + _0x59a512(_0x56650c._0x530985);
|
|
1446
1435
|
}
|
|
1447
|
-
function formatCheckMessages(
|
|
1448
|
-
const
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
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');
|
|
1436
|
+
function formatCheckMessages(_0x2ae29f) {
|
|
1437
|
+
const _0x1822a7 = { _0x3a0c87: 0x2a1 }, _0x2954f = {
|
|
1438
|
+
_0x2cc62e: 0x170,
|
|
1439
|
+
_0x5f52bf: 0x285,
|
|
1440
|
+
_0x51a0bb: 0x14c
|
|
1441
|
+
}, _0x371212 = _0x10d6b5;
|
|
1442
|
+
if (_0x2ae29f[_0x371212(0x1ad)] === 0x0)
|
|
1443
|
+
return _0x371212(0x167);
|
|
1444
|
+
return _0x2ae29f[_0x371212(_0x1822a7._0x3a0c87)](_0x9b167c => {
|
|
1445
|
+
const _0x598242 = _0x371212, _0x282952 = _0x9b167c['senderType'] === _0x598242(0x24c) ? _0x598242(_0x2954f._0x2cc62e) : '', _0x3fb24d = _0x9b167c[_0x598242(0x125)] && _0x9b167c[_0x598242(0x125)] !== 'chat' ? _0x598242(0x292) + _0x9b167c['kind'] : '';
|
|
1446
|
+
return '[target=' + _0x9b167c['target'] + '\x20msg=' + _0x9b167c[_0x598242(0x1fb)]['slice'](0x0, 0x8) + _0x598242(_0x2954f._0x5f52bf) + toLocalTime(_0x9b167c['createdAt']) + _0x282952 + _0x3fb24d + _0x598242(0x129) + _0x9b167c['senderName'] + ':\x20' + _0x9b167c[_0x598242(_0x2954f._0x51a0bb)] + formatAttachmentSuffix(_0x9b167c['attachments']);
|
|
1447
|
+
})['join']('\x0a');
|
|
1466
1448
|
}
|
|
1467
|
-
function formatHistory(
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
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;
|
|
1449
|
+
function formatHistory(_0x3b6cf5) {
|
|
1450
|
+
const _0x14aefe = {
|
|
1451
|
+
_0x32f1f2: 0x17c,
|
|
1452
|
+
_0x5b72e0: 0x26c
|
|
1453
|
+
}, _0x5b5357 = {
|
|
1454
|
+
_0x3147f4: 0x19a,
|
|
1455
|
+
_0x29ea33: 0x170,
|
|
1456
|
+
_0x3d95d0: 0x125,
|
|
1457
|
+
_0x4007eb: 0x1f8,
|
|
1458
|
+
_0x1cc96b: 0x1e2,
|
|
1459
|
+
_0x2f4a2f: 0x12a,
|
|
1460
|
+
_0x5c4144: 0x195
|
|
1461
|
+
}, _0x305ed1 = _0x10d6b5;
|
|
1462
|
+
if (_0x3b6cf5['messages'][_0x305ed1(0x1ad)] === 0x0)
|
|
1463
|
+
return _0x305ed1(0x171) + _0x3b6cf5[_0x305ed1(0x26c)] + _0x305ed1(0x1a7);
|
|
1464
|
+
const _0x493ce2 = _0x3b6cf5[_0x305ed1(_0x14aefe._0x32f1f2)][_0x305ed1(0x2a1)](_0x12a9d1 => {
|
|
1465
|
+
const _0x4aaaa4 = _0x305ed1, _0x204c93 = _0x12a9d1[_0x4aaaa4(_0x5b5357._0x3147f4)] === 'agent' ? _0x4aaaa4(_0x5b5357._0x29ea33) : '', _0x3ffbbb = _0x12a9d1[_0x4aaaa4(_0x5b5357._0x3d95d0)] && _0x12a9d1[_0x4aaaa4(0x125)] !== _0x4aaaa4(_0x5b5357._0x4007eb) ? _0x4aaaa4(0x292) + _0x12a9d1['kind'] : '';
|
|
1466
|
+
return '[seq=' + _0x12a9d1[_0x4aaaa4(0x20c)] + _0x4aaaa4(_0x5b5357._0x1cc96b) + _0x12a9d1[_0x4aaaa4(0x1fb)] + '\x20time=' + toLocalTime(_0x12a9d1[_0x4aaaa4(_0x5b5357._0x2f4a2f)]) + _0x204c93 + _0x3ffbbb + _0x4aaaa4(0x129) + _0x12a9d1[_0x4aaaa4(_0x5b5357._0x5c4144)] + ':\x20' + _0x12a9d1['content'] + formatAttachmentSuffix(_0x12a9d1['attachments']);
|
|
1467
|
+
})['join']('\x0a'), _0x19b678 = _0x3b6cf5['hasMore'] && _0x3b6cf5[_0x305ed1(0x22d)] ? _0x305ed1(0x145) + _0x3b6cf5['messages'][_0x305ed1(0x1ad)] + _0x305ed1(0x181) + _0x3b6cf5[_0x305ed1(0x22d)] + _0x305ed1(0x1a9) : '';
|
|
1468
|
+
return _0x305ed1(0x171) + _0x3b6cf5[_0x305ed1(_0x14aefe._0x5b72e0)] + '\x20(' + _0x3b6cf5[_0x305ed1(_0x14aefe._0x32f1f2)][_0x305ed1(0x1ad)] + _0x305ed1(0x275) + _0x493ce2 + _0x19b678;
|
|
1496
1469
|
}
|
|
1497
|
-
function formatServerDirectory(
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
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);
|
|
1470
|
+
function formatServerDirectory(_0x18ce47) {
|
|
1471
|
+
const _0x51297f = {
|
|
1472
|
+
_0x35d0c1: 0x218,
|
|
1473
|
+
_0x4bc7a8: 0x281,
|
|
1474
|
+
_0x1ffcd0: 0x273,
|
|
1475
|
+
_0x5e53c8: 0x1ad,
|
|
1476
|
+
_0x37f0d2: 0x27d,
|
|
1477
|
+
_0xe2063a: 0x1e9
|
|
1478
|
+
}, _0x633d3d = _0x10d6b5, _0x5822a1 = _0x18ce47[_0x633d3d(_0x51297f._0x35d0c1)][_0x633d3d(0x1ad)] > 0x0 ? _0x18ce47[_0x633d3d(_0x51297f._0x35d0c1)]['map'](_0x362394 => _0x362394[_0x633d3d(0x16e)] ? '-\x20#' + _0x362394[_0x633d3d(0x293)] + '\x20—\x20' + _0x362394[_0x633d3d(0x16e)] : _0x633d3d(0x190) + _0x362394[_0x633d3d(0x293)])[_0x633d3d(0x281)]('\x0a') : _0x633d3d(0x27d), _0x14dcc3 = _0x18ce47['agents']['length'] > 0x0 ? _0x18ce47[_0x633d3d(0x1e5)]['map'](_0x311cac => _0x633d3d(0x1cd) + _0x311cac[_0x633d3d(0x293)])[_0x633d3d(_0x51297f._0x4bc7a8)]('\x0a') : _0x633d3d(0x27d), _0x5562bb = _0x18ce47[_0x633d3d(_0x51297f._0x1ffcd0)][_0x633d3d(_0x51297f._0x5e53c8)] > 0x0 ? _0x18ce47[_0x633d3d(_0x51297f._0x1ffcd0)][_0x633d3d(0x2a1)](_0x324393 => _0x633d3d(0x1cd) + _0x324393[_0x633d3d(0x293)])['join']('\x0a') : _0x633d3d(_0x51297f._0x37f0d2);
|
|
1509
1479
|
return [
|
|
1510
|
-
|
|
1480
|
+
'##\x20Server:\x20' + _0x18ce47[_0x633d3d(0x132)],
|
|
1511
1481
|
'',
|
|
1512
|
-
|
|
1513
|
-
|
|
1482
|
+
_0x633d3d(0x12e),
|
|
1483
|
+
_0x5822a1,
|
|
1514
1484
|
'',
|
|
1515
|
-
|
|
1516
|
-
|
|
1485
|
+
_0x633d3d(_0x51297f._0xe2063a),
|
|
1486
|
+
_0x14dcc3,
|
|
1517
1487
|
'',
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
][
|
|
1488
|
+
_0x633d3d(0x1ce),
|
|
1489
|
+
_0x5562bb
|
|
1490
|
+
][_0x633d3d(0x281)]('\x0a');
|
|
1521
1491
|
}
|
|
1522
|
-
function formatUploadResult(
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1492
|
+
function formatUploadResult(_0x160e45) {
|
|
1493
|
+
const _0x3ad140 = {
|
|
1494
|
+
_0x58ad2f: 0x291,
|
|
1495
|
+
_0x5a08b8: 0x1b7,
|
|
1496
|
+
_0x2e977f: 0x148
|
|
1497
|
+
}, _0x2fa946 = _0x10d6b5;
|
|
1498
|
+
return 'File\x20uploaded:\x20' + _0x160e45[_0x2fa946(_0x3ad140._0x58ad2f)] + '\x20(' + (_0x160e45['sizeBytes'] / 0x400)[_0x2fa946(_0x3ad140._0x5a08b8)](0x1) + _0x2fa946(0x14f) + _0x160e45[_0x2fa946(0x183)] + _0x2fa946(_0x3ad140._0x2e977f);
|
|
1525
1499
|
}
|
|
1526
|
-
function formatViewFileResult(
|
|
1527
|
-
const
|
|
1528
|
-
return
|
|
1500
|
+
function formatViewFileResult(_0x4ebea4, _0x23d8d9) {
|
|
1501
|
+
const _0x2d189f = _0x10d6b5;
|
|
1502
|
+
return _0x23d8d9 ? _0x2d189f(0x1be) + _0x4ebea4 : _0x2d189f(0x18a) + _0x4ebea4;
|
|
1529
1503
|
}
|
|
1530
|
-
function formatTaskList(
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1504
|
+
function formatTaskList(_0x34b23a, _0x388037) {
|
|
1505
|
+
const _0x4768d7 = {
|
|
1506
|
+
_0x20a6d8: 0x2a1,
|
|
1507
|
+
_0x2b6db1: 0x281
|
|
1508
|
+
}, _0x1e4307 = {
|
|
1509
|
+
_0x2d6e19: 0x1ea,
|
|
1510
|
+
_0x33ba7d: 0x128,
|
|
1511
|
+
_0x1438f1: 0x1fb,
|
|
1512
|
+
_0x2cabe7: 0x1b6,
|
|
1513
|
+
_0x51a6ef: 0x1ea,
|
|
1514
|
+
_0x1f5ec3: 0x2af,
|
|
1515
|
+
_0x4b41c4: 0x15f,
|
|
1516
|
+
_0xf8167c: 0x15f,
|
|
1517
|
+
_0x3f2cad: 0x1b1,
|
|
1518
|
+
_0x1eb23e: 0x177
|
|
1519
|
+
}, _0x28f071 = _0x10d6b5;
|
|
1520
|
+
if (_0x34b23a['length'] === 0x0)
|
|
1541
1521
|
return 'No\x20tasks\x20found.';
|
|
1542
|
-
return
|
|
1543
|
-
const
|
|
1544
|
-
return
|
|
1545
|
-
})[
|
|
1522
|
+
return _0x34b23a[_0x28f071(_0x4768d7._0x20a6d8)](_0x24fa97 => {
|
|
1523
|
+
const _0x2a1976 = _0x28f071, _0x5129ad = _0x24fa97[_0x2a1976(0x128)] == null ? '(legacy)' : _0x24fa97[_0x2a1976(_0x1e4307._0x2d6e19)] != null ? '#' + _0x24fa97[_0x2a1976(_0x1e4307._0x33ba7d)] + '.' + _0x24fa97[_0x2a1976(0x1ea)] : '#' + _0x24fa97[_0x2a1976(_0x1e4307._0x33ba7d)], _0x1ea21e = _0x24fa97[_0x2a1976(_0x1e4307._0x1438f1)] ? _0x2a1976(_0x1e4307._0x2cabe7) + _0x24fa97[_0x2a1976(0x1fb)] : '', _0x4775c5 = _0x388037 && _0x24fa97[_0x2a1976(_0x1e4307._0x33ba7d)] != null && !_0x24fa97[_0x2a1976(_0x1e4307._0x51a6ef)] && _0x388037[_0x2a1976(_0x1e4307._0x1f5ec3)](_0x24fa97[_0x2a1976(0x128)]) ? _0x2a1976(0x286) : '', _0x1f7b8a = _0x24fa97[_0x2a1976(_0x1e4307._0x4b41c4)] != null && _0x24fa97[_0x2a1976(_0x1e4307._0xf8167c)] > 0x0 ? '\x20(' + (_0x24fa97[_0x2a1976(0x1ba)] ?? 0x0) + '/' + _0x24fa97[_0x2a1976(0x15f)] + '\x20done)' : '';
|
|
1524
|
+
return _0x5129ad + '\x20[' + _0x24fa97[_0x2a1976(_0x1e4307._0x3f2cad)] + ']\x20' + _0x24fa97[_0x2a1976(_0x1e4307._0x1eb23e)] + _0x1f7b8a + _0x1ea21e + _0x4775c5;
|
|
1525
|
+
})[_0x28f071(_0x4768d7._0x2b6db1)]('\x0a');
|
|
1546
1526
|
}
|
|
1547
|
-
function formatCreatedTasks(
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
return
|
|
1558
|
-
|
|
1527
|
+
function formatCreatedTasks(_0x303db7) {
|
|
1528
|
+
const _0x374e26 = { _0x357842: 0x212 }, _0x147172 = {
|
|
1529
|
+
_0x10a85e: 0x128,
|
|
1530
|
+
_0x536c66: 0x1a8,
|
|
1531
|
+
_0x616b97: 0x128,
|
|
1532
|
+
_0x24cf38: 0x1b6,
|
|
1533
|
+
_0x407135: 0x1fb,
|
|
1534
|
+
_0x4d9f30: 0x177
|
|
1535
|
+
}, _0x44c187 = _0x10d6b5;
|
|
1536
|
+
if (_0x303db7[_0x44c187(0x1ad)] === 0x0)
|
|
1537
|
+
return _0x44c187(_0x374e26._0x357842);
|
|
1538
|
+
return _0x303db7['map'](_0x13c85d => {
|
|
1539
|
+
const _0x296f9a = _0x44c187, _0x2e9334 = _0x13c85d[_0x296f9a(_0x147172._0x10a85e)] == null ? _0x296f9a(_0x147172._0x536c66) : _0x13c85d[_0x296f9a(0x1ea)] != null ? '#' + _0x13c85d[_0x296f9a(0x128)] + '.' + _0x13c85d[_0x296f9a(0x1ea)] : '#' + _0x13c85d[_0x296f9a(_0x147172._0x616b97)], _0x539e8e = _0x13c85d[_0x296f9a(0x1fb)] ? _0x296f9a(_0x147172._0x24cf38) + _0x13c85d[_0x296f9a(_0x147172._0x407135)] : '';
|
|
1540
|
+
return _0x2e9334 + '\x20' + _0x13c85d[_0x296f9a(_0x147172._0x4d9f30)] + _0x539e8e;
|
|
1541
|
+
})['join']('\x0a');
|
|
1559
1542
|
}
|
|
1560
|
-
function formatClaimTaskLabel(
|
|
1561
|
-
const
|
|
1562
|
-
if (
|
|
1563
|
-
return
|
|
1564
|
-
return
|
|
1543
|
+
function formatClaimTaskLabel(_0xa31ff5, _0x88c77c) {
|
|
1544
|
+
const _0xc25790 = _0x10d6b5;
|
|
1545
|
+
if (_0xa31ff5 == null)
|
|
1546
|
+
return _0xc25790(0x1a8);
|
|
1547
|
+
return _0x88c77c != null ? '#' + _0xa31ff5 + '.' + _0x88c77c : '#' + _0xa31ff5;
|
|
1565
1548
|
}
|
|
1566
|
-
function formatClaimTaskResults(
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1549
|
+
function formatClaimTaskResults(_0x2e5dfc) {
|
|
1550
|
+
const _0x2b2ac9 = {
|
|
1551
|
+
_0x1401ac: 0x15d,
|
|
1552
|
+
_0x19c2ea: 0x1ee,
|
|
1553
|
+
_0x28561e: 0x126,
|
|
1554
|
+
_0x40bf3e: 0x18d,
|
|
1555
|
+
_0x307f0e: 0x257,
|
|
1556
|
+
_0x342e89: 0x16b,
|
|
1557
|
+
_0x2b7727: 0x19c,
|
|
1558
|
+
_0x524ef0: 0x19c,
|
|
1559
|
+
_0xcf3d26: 0x18d,
|
|
1560
|
+
_0x2e531e: 0x128,
|
|
1561
|
+
_0x2c4d35: 0x176,
|
|
1562
|
+
_0x120ca6: 0x1ea,
|
|
1563
|
+
_0x3408ac: 0x1de
|
|
1564
|
+
}, _0x28e6c3 = _0x10d6b5;
|
|
1565
|
+
if (_0x2e5dfc[_0x28e6c3(0x1ad)] === 0x0)
|
|
1566
|
+
return _0x28e6c3(0x1f6);
|
|
1567
|
+
return _0x2e5dfc['map'](_0x37e0d8 => {
|
|
1568
|
+
const _0x3918b7 = _0x28e6c3;
|
|
1569
|
+
if (_0x37e0d8[_0x3918b7(0x15e)]) {
|
|
1570
|
+
const _0x5156f4 = formatClaimTaskLabel(_0x37e0d8['taskNumber'], _0x37e0d8[_0x3918b7(0x1ea)]), _0x4eb363 = _0x37e0d8[_0x3918b7(0x1fb)] ? _0x3918b7(0x1b6) + _0x37e0d8['messageId'] : '';
|
|
1571
|
+
if (_0x37e0d8[_0x3918b7(0x20d)]) {
|
|
1572
|
+
const _0x5e6da5 = [
|
|
1573
|
+
_0x3918b7(0x194),
|
|
1574
|
+
_0x37e0d8[_0x3918b7(0x188)] ? _0x3918b7(_0x2b2ac9._0x1401ac) : null,
|
|
1575
|
+
_0x37e0d8['executionMode'] ? _0x3918b7(_0x2b2ac9._0x19c2ea) + _0x37e0d8['executionMode'] : null,
|
|
1576
|
+
_0x37e0d8['threadTarget'] ? _0x3918b7(0x24e) + _0x37e0d8['threadTarget'] : null,
|
|
1577
|
+
_0x37e0d8[_0x3918b7(_0x2b2ac9._0x28561e)] ? _0x3918b7(0x1d6) + _0x37e0d8[_0x3918b7(_0x2b2ac9._0x28561e)] : null
|
|
1578
|
+
]['filter'](Boolean)[_0x3918b7(0x281)]('\x20');
|
|
1579
|
+
return _0x5156f4 + _0x3918b7(_0x2b2ac9._0x40bf3e) + _0x4eb363 + '\x20' + _0x5e6da5 + _0x3918b7(_0x2b2ac9._0x307f0e);
|
|
1593
1580
|
}
|
|
1594
|
-
if (
|
|
1595
|
-
return
|
|
1596
|
-
const
|
|
1597
|
-
return
|
|
1581
|
+
if (_0x37e0d8[_0x3918b7(0x20a)] === 'main')
|
|
1582
|
+
return _0x5156f4 + _0x3918b7(0x18d) + _0x4eb363 + _0x3918b7(_0x2b2ac9._0x342e89);
|
|
1583
|
+
const _0x26ae7a = _0x37e0d8[_0x3918b7(_0x2b2ac9._0x2b7727)] ? _0x3918b7(0x1c9) + _0x37e0d8[_0x3918b7(_0x2b2ac9._0x524ef0)] : '';
|
|
1584
|
+
return _0x5156f4 + _0x3918b7(_0x2b2ac9._0xcf3d26) + _0x4eb363 + _0x26ae7a;
|
|
1598
1585
|
}
|
|
1599
|
-
const
|
|
1600
|
-
return
|
|
1601
|
-
})[
|
|
1586
|
+
const _0x540cc4 = _0x37e0d8[_0x3918b7(_0x2b2ac9._0x2e531e)] == null ? _0x37e0d8[_0x3918b7(0x1fb)] ?? _0x3918b7(_0x2b2ac9._0x2c4d35) : formatClaimTaskLabel(_0x37e0d8['taskNumber'], _0x37e0d8[_0x3918b7(_0x2b2ac9._0x120ca6)]);
|
|
1587
|
+
return _0x540cc4 + _0x3918b7(0x221) + (_0x37e0d8[_0x3918b7(_0x2b2ac9._0x3408ac)] ?? _0x3918b7(0x222));
|
|
1588
|
+
})['join']('\x0a');
|
|
1602
1589
|
}
|
|
1603
|
-
function formatUnclaimTaskResult(
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
return _0x3c2c60 + _0x35ab71(_0x18cf46._0x5d5b5e) + _0x2d7554[_0x35ab71(_0x18cf46._0x475e26)];
|
|
1590
|
+
function formatUnclaimTaskResult(_0x363c42) {
|
|
1591
|
+
const _0x4d4ea4 = {
|
|
1592
|
+
_0x18e1c3: 0x128,
|
|
1593
|
+
_0x4d41a6: 0x18e,
|
|
1594
|
+
_0x2d1f39: 0x1b1
|
|
1595
|
+
}, _0x33a667 = _0x10d6b5, _0x4dad7b = _0x363c42['taskNumber'] == null ? '(legacy)' : _0x363c42['subtaskNumber'] != null ? '#' + _0x363c42[_0x33a667(0x128)] + '.' + _0x363c42['subtaskNumber'] : '#' + _0x363c42[_0x33a667(_0x4d4ea4._0x18e1c3)];
|
|
1596
|
+
return _0x4dad7b + _0x33a667(_0x4d4ea4._0x4d41a6) + _0x363c42[_0x33a667(_0x4d4ea4._0x2d1f39)];
|
|
1611
1597
|
}
|
|
1612
|
-
function formatUpdateTaskStatusResult(
|
|
1613
|
-
const
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1598
|
+
function formatUpdateTaskStatusResult(_0x13c48c) {
|
|
1599
|
+
const _0x3d577e = {
|
|
1600
|
+
_0x5d44e8: 0x1a8,
|
|
1601
|
+
_0x5e4d96: 0x1ea,
|
|
1602
|
+
_0x2de1f2: 0x1ea,
|
|
1603
|
+
_0x178901: 0x128,
|
|
1604
|
+
_0x14d4f0: 0x18e,
|
|
1605
|
+
_0x34928f: 0x1b1
|
|
1606
|
+
}, _0x3d906a = _0x10d6b5, _0x58dd8a = _0x13c48c[_0x3d906a(0x128)] == null ? _0x3d906a(_0x3d577e._0x5d44e8) : _0x13c48c[_0x3d906a(_0x3d577e._0x5e4d96)] != null ? '#' + _0x13c48c['taskNumber'] + '.' + _0x13c48c[_0x3d906a(_0x3d577e._0x2de1f2)] : '#' + _0x13c48c[_0x3d906a(_0x3d577e._0x178901)], _0x565ad2 = _0x58dd8a + _0x3d906a(_0x3d577e._0x14d4f0) + _0x13c48c[_0x3d906a(_0x3d577e._0x34928f)];
|
|
1607
|
+
if (_0x13c48c[_0x3d906a(0x1b1)] !== _0x3d906a(0x1ac))
|
|
1608
|
+
return _0x565ad2;
|
|
1609
|
+
return _0x565ad2 + _0x3d906a(0x1fa);
|
|
1617
1610
|
}
|
|
1618
1611
|
function getChatBridgeToolDefinitions() {
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
_0x23fd2e: 0x14f
|
|
1626
|
-
}, _0x51ffbe = _0x456b7e;
|
|
1612
|
+
const _0x4f6ee7 = {
|
|
1613
|
+
_0x5677ce: 0x297,
|
|
1614
|
+
_0x237052: 0x228,
|
|
1615
|
+
_0x210ad3: 0x26f,
|
|
1616
|
+
_0x157798: 0x244
|
|
1617
|
+
}, _0x2a49c9 = _0x10d6b5;
|
|
1627
1618
|
return [
|
|
1628
|
-
{ 'name':
|
|
1629
|
-
{ 'name':
|
|
1630
|
-
{ 'name':
|
|
1631
|
-
{ 'name':
|
|
1632
|
-
{ 'name':
|
|
1633
|
-
{ 'name':
|
|
1634
|
-
{ 'name':
|
|
1635
|
-
{ 'name':
|
|
1619
|
+
{ 'name': _0x2a49c9(0x1a1) },
|
|
1620
|
+
{ 'name': 'check_messages' },
|
|
1621
|
+
{ 'name': 'read_history' },
|
|
1622
|
+
{ 'name': _0x2a49c9(_0x4f6ee7._0x5677ce) },
|
|
1623
|
+
{ 'name': _0x2a49c9(0x1eb) },
|
|
1624
|
+
{ 'name': 'view_file' },
|
|
1625
|
+
{ 'name': 'list_tasks' },
|
|
1626
|
+
{ 'name': _0x2a49c9(0x299) },
|
|
1636
1627
|
{ 'name': 'claim_tasks' },
|
|
1637
|
-
{ 'name':
|
|
1638
|
-
{ 'name':
|
|
1628
|
+
{ 'name': _0x2a49c9(0x287) },
|
|
1629
|
+
{ 'name': _0x2a49c9(_0x4f6ee7._0x237052) },
|
|
1639
1630
|
{ 'name': 'get_worker_status' },
|
|
1640
|
-
{ 'name':
|
|
1641
|
-
{ 'name':
|
|
1642
|
-
{ 'name':
|
|
1631
|
+
{ 'name': _0x2a49c9(_0x4f6ee7._0x210ad3) },
|
|
1632
|
+
{ 'name': _0x2a49c9(0x1c7) },
|
|
1633
|
+
{ 'name': _0x2a49c9(_0x4f6ee7._0x157798) }
|
|
1643
1634
|
];
|
|
1644
1635
|
}
|
|
1645
|
-
function createChatBridgeHandlers(
|
|
1646
|
-
const
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
},
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
},
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
_0x5212ab: 0xd7
|
|
1778
|
-
}, _0x4a2133 = _0x456b7e;
|
|
1779
|
-
function _0x23b41b(_0x3abe93, _0x5bbd32) {
|
|
1780
|
-
const _0x5fec40 = _0x15bc;
|
|
1781
|
-
if (!_0x426032[_0x5fec40(0x1c9)])
|
|
1636
|
+
function createChatBridgeHandlers(_0x46105a) {
|
|
1637
|
+
const _0x405a24 = {
|
|
1638
|
+
_0x2da6bc: 0x264,
|
|
1639
|
+
_0xe9bdf3: 0x1d9,
|
|
1640
|
+
_0x25362e: 0x251
|
|
1641
|
+
}, _0x21e1f8 = {
|
|
1642
|
+
_0x2ab432: 0x264,
|
|
1643
|
+
_0x19c6f0: 0x191,
|
|
1644
|
+
_0x1c00ee: 0x2a9,
|
|
1645
|
+
_0x40366a: 0x295,
|
|
1646
|
+
_0x342fba: 0x2a2
|
|
1647
|
+
}, _0x518f9d = {
|
|
1648
|
+
_0x3d3fa7: 0x232,
|
|
1649
|
+
_0x1f769f: 0x260,
|
|
1650
|
+
_0x2c7060: 0x191,
|
|
1651
|
+
_0x48d82c: 0x1dc
|
|
1652
|
+
}, _0x3ae7ab = {
|
|
1653
|
+
_0x1f0f79: 0x295,
|
|
1654
|
+
_0x316830: 0x2a2,
|
|
1655
|
+
_0xcfc593: 0x2a2,
|
|
1656
|
+
_0x4f1426: 0x1b1
|
|
1657
|
+
}, _0x526139 = {
|
|
1658
|
+
_0x5d5b76: 0x197,
|
|
1659
|
+
_0xb27457: 0x12c,
|
|
1660
|
+
_0x2ee9e2: 0x1c0,
|
|
1661
|
+
_0x96216d: 0x1b3,
|
|
1662
|
+
_0x5bb3f6: 0x23b
|
|
1663
|
+
}, _0x40b003 = {
|
|
1664
|
+
_0x263083: 0x201,
|
|
1665
|
+
_0x4ca4b5: 0x12c
|
|
1666
|
+
}, _0x23fecd = { _0x28a5fe: 0x26c }, _0xadada5 = {
|
|
1667
|
+
_0x561db3: 0x17b,
|
|
1668
|
+
_0x2a8085: 0x26c,
|
|
1669
|
+
_0x23262e: 0x160,
|
|
1670
|
+
_0xd97bc0: 0x249
|
|
1671
|
+
}, _0x1843ac = {
|
|
1672
|
+
_0x492cdc: 0x17b,
|
|
1673
|
+
_0xb54bc6: 0x1ad,
|
|
1674
|
+
_0x4c926b: 0x154,
|
|
1675
|
+
_0x18ad0a: 0x237,
|
|
1676
|
+
_0x415b64: 0x1b9,
|
|
1677
|
+
_0x45afe9: 0x12c,
|
|
1678
|
+
_0x595cc7: 0x1a4,
|
|
1679
|
+
_0x4a71f0: 0x2a1
|
|
1680
|
+
}, _0x5cbedc = {
|
|
1681
|
+
_0x2e6a32: 0x12c,
|
|
1682
|
+
_0x2581ca: 0x133
|
|
1683
|
+
}, _0x4b0f10 = {
|
|
1684
|
+
_0x2cb6eb: 0x213,
|
|
1685
|
+
_0x5460be: 0x202,
|
|
1686
|
+
_0x313e05: 0x241,
|
|
1687
|
+
_0x5bc186: 0x224,
|
|
1688
|
+
_0xff10bf: 0x24a,
|
|
1689
|
+
_0x5a907e: 0x24a,
|
|
1690
|
+
_0x5e28b2: 0x1b4,
|
|
1691
|
+
_0x260c84: 0x128
|
|
1692
|
+
}, _0x412f02 = {
|
|
1693
|
+
_0x2e60f8: 0x12c,
|
|
1694
|
+
_0x4c5254: 0x25f
|
|
1695
|
+
}, _0x5ede38 = {
|
|
1696
|
+
_0x56b136: 0x202,
|
|
1697
|
+
_0x3ffc9c: 0x1c8,
|
|
1698
|
+
_0x4018e1: 0x128,
|
|
1699
|
+
_0x2d67ee: 0x1a8,
|
|
1700
|
+
_0xe04375: 0x1e4,
|
|
1701
|
+
_0x4f00fc: 0x266,
|
|
1702
|
+
_0x16dbf3: 0x230,
|
|
1703
|
+
_0x75fef3: 0x2af,
|
|
1704
|
+
_0x3c5294: 0x252,
|
|
1705
|
+
_0x3831b6: 0x1c8,
|
|
1706
|
+
_0x2bd65f: 0x163,
|
|
1707
|
+
_0x317917: 0x1f5,
|
|
1708
|
+
_0x1482cd: 0x1d9,
|
|
1709
|
+
_0x5d0f0f: 0x191,
|
|
1710
|
+
_0x42aab3: 0x209,
|
|
1711
|
+
_0x22157a: 0x13e,
|
|
1712
|
+
_0x5e1978: 0x2a7,
|
|
1713
|
+
_0x41dec9: 0x23c,
|
|
1714
|
+
_0x187cb0: 0x1f2,
|
|
1715
|
+
_0x3b0789: 0x1f2,
|
|
1716
|
+
_0xf55ea9: 0x281,
|
|
1717
|
+
_0x22c85c: 0x12c,
|
|
1718
|
+
_0x296535: 0x15c,
|
|
1719
|
+
_0x2c9f5a: 0x150,
|
|
1720
|
+
_0x530a4e: 0x284,
|
|
1721
|
+
_0x34af8f: 0x1fb
|
|
1722
|
+
}, _0x57bcce = {
|
|
1723
|
+
_0x47d52a: 0x161,
|
|
1724
|
+
_0x2bab6c: 0x202,
|
|
1725
|
+
_0x5d77b8: 0x241,
|
|
1726
|
+
_0x5e0f5a: 0x169,
|
|
1727
|
+
_0x261e22: 0x1b1,
|
|
1728
|
+
_0x2e2833: 0x25a
|
|
1729
|
+
}, _0x1de4a5 = {
|
|
1730
|
+
_0x4a27b5: 0x213,
|
|
1731
|
+
_0x2f2ab2: 0x213,
|
|
1732
|
+
_0x1c2e61: 0x241,
|
|
1733
|
+
_0x521cd5: 0x169,
|
|
1734
|
+
_0x17679e: 0x1b1
|
|
1735
|
+
}, _0x12429a = {
|
|
1736
|
+
_0x494ec8: 0x213,
|
|
1737
|
+
_0x2b0ab1: 0x200,
|
|
1738
|
+
_0x13ea2a: 0x26c,
|
|
1739
|
+
_0x5ea53d: 0x125,
|
|
1740
|
+
_0x1e0187: 0x1a8,
|
|
1741
|
+
_0x2d4d90: 0x128,
|
|
1742
|
+
_0x42a894: 0x223,
|
|
1743
|
+
_0x40c11d: 0x185,
|
|
1744
|
+
_0x50ffeb: 0x12c,
|
|
1745
|
+
_0x13b49d: 0x26b,
|
|
1746
|
+
_0x14a6ef: 0x1b4,
|
|
1747
|
+
_0x1f36a1: 0x128,
|
|
1748
|
+
_0x3a1abb: 0x2b1,
|
|
1749
|
+
_0x446c7e: 0x1e2,
|
|
1750
|
+
_0xaef985: 0x274,
|
|
1751
|
+
_0x341eb5: 0x14c,
|
|
1752
|
+
_0x1f0ac9: 0x1f5,
|
|
1753
|
+
_0x527e93: 0x281,
|
|
1754
|
+
_0x3fa03d: 0x191,
|
|
1755
|
+
_0x379018: 0x246,
|
|
1756
|
+
_0x4465a2: 0x1dc,
|
|
1757
|
+
_0x58ba78: 0x1f2,
|
|
1758
|
+
_0x5ab86f: 0x2a0
|
|
1759
|
+
}, _0x500fe0 = {
|
|
1760
|
+
_0x5fd85a: 0x17b,
|
|
1761
|
+
_0x1ec105: 0x179,
|
|
1762
|
+
_0x207eda: 0x1c1,
|
|
1763
|
+
_0x93e6dd: 0x226
|
|
1764
|
+
};
|
|
1765
|
+
function _0x5deb9d(_0x2fbdba, _0x3638af) {
|
|
1766
|
+
const _0x3e3607 = _0x35b1;
|
|
1767
|
+
if (!_0x46105a[_0x3e3607(_0x500fe0._0x5fd85a)])
|
|
1782
1768
|
return;
|
|
1783
|
-
if (!
|
|
1784
|
-
throw new Error(
|
|
1785
|
-
if (
|
|
1786
|
-
throw new Error(
|
|
1769
|
+
if (!_0x46105a['workerThreadTarget'])
|
|
1770
|
+
throw new Error(_0x2fbdba + _0x3e3607(0x1d0));
|
|
1771
|
+
if (_0x3638af !== _0x46105a[_0x3e3607(_0x500fe0._0x1ec105)])
|
|
1772
|
+
throw new Error(_0x2fbdba + _0x3e3607(_0x500fe0._0x207eda) + _0x46105a[_0x3e3607(0x179)] + _0x3e3607(_0x500fe0._0x93e6dd) + _0x3638af);
|
|
1787
1773
|
}
|
|
1788
|
-
async function
|
|
1789
|
-
const
|
|
1790
|
-
if (!
|
|
1774
|
+
async function _0x6f0d9c(_0x2d7905) {
|
|
1775
|
+
const _0x4e444c = _0x35b1;
|
|
1776
|
+
if (!_0x46105a[_0x4e444c(_0x12429a._0x494ec8)] || !_0x46105a[_0x4e444c(0x202)] || _0x46105a['workerMode'] || _0x46105a[_0x4e444c(_0x12429a._0x2b0ab1)] !== !![])
|
|
1791
1777
|
return null;
|
|
1792
|
-
const
|
|
1793
|
-
if (
|
|
1778
|
+
const _0x2af0b3 = parseTarget(_0x2d7905[_0x4e444c(_0x12429a._0x13ea2a)]);
|
|
1779
|
+
if (_0x2af0b3[_0x4e444c(_0x12429a._0x5ea53d)] !== _0x4e444c(_0x12429a._0x13ea2a))
|
|
1794
1780
|
return null;
|
|
1795
|
-
if (
|
|
1796
|
-
const
|
|
1781
|
+
if (_0x2d7905[_0x4e444c(0x20a)] === _0x4e444c(0x29b)) {
|
|
1782
|
+
const _0x19e172 = _0x2d7905['taskNumber'] == null ? _0x4e444c(_0x12429a._0x1e0187) : '#' + _0x2d7905[_0x4e444c(_0x12429a._0x2d4d90)];
|
|
1797
1783
|
return {
|
|
1798
|
-
'executionMode':
|
|
1784
|
+
'executionMode': _0x4e444c(0x29b),
|
|
1799
1785
|
'stopMain': ![],
|
|
1800
1786
|
'workerHandoff': ![],
|
|
1801
|
-
'workerHandoffError':
|
|
1787
|
+
'workerHandoffError': _0x4e444c(_0x12429a._0x42a894) + _0x19e172 + _0x4e444c(0x1a3)
|
|
1802
1788
|
};
|
|
1803
1789
|
}
|
|
1804
|
-
const
|
|
1805
|
-
let
|
|
1790
|
+
const _0x2ace50 = _0x2d7905[_0x4e444c(0x1e4)] != null ? _0x2af0b3[_0x4e444c(_0x12429a._0x40c11d)] + ':t' + _0x2d7905[_0x4e444c(0x1e4)] : _0x2af0b3[_0x4e444c(0x185)] + ':' + _0x2d7905[_0x4e444c(0x1fb)];
|
|
1791
|
+
let _0x2eaa1d;
|
|
1806
1792
|
try {
|
|
1807
|
-
const
|
|
1808
|
-
'channel':
|
|
1793
|
+
const _0x290573 = await _0x46105a[_0x4e444c(_0x12429a._0x50ffeb)][_0x4e444c(_0x12429a._0x13b49d)]({
|
|
1794
|
+
'channel': _0x2ace50,
|
|
1809
1795
|
'limit': 0x14
|
|
1810
1796
|
});
|
|
1811
|
-
|
|
1797
|
+
_0x2eaa1d = _0x290573[_0x4e444c(0x17c)][_0x4e444c(_0x12429a._0x14a6ef)](_0x5deb35 => _0x5deb35[_0x4e444c(0x1fb)] === _0x2d7905[_0x4e444c(0x1fb)]);
|
|
1812
1798
|
} catch {
|
|
1813
|
-
|
|
1799
|
+
_0x2eaa1d = void 0x0;
|
|
1814
1800
|
}
|
|
1815
|
-
const
|
|
1816
|
-
|
|
1801
|
+
const _0x1c2c02 = _0x2d7905[_0x4e444c(_0x12429a._0x1f36a1)] == null ? '(legacy)' : '#' + _0x2d7905[_0x4e444c(0x128)], _0xa46367 = [
|
|
1802
|
+
_0x4e444c(_0x12429a._0x3a1abb) + _0x2ace50 + _0x4e444c(_0x12429a._0x446c7e) + _0x2d7905[_0x4e444c(0x1fb)]['slice'](0x0, 0x8) + _0x4e444c(0x285) + new Date()[_0x4e444c(0x25e)]() + _0x4e444c(0x168) + _0x1c2c02 + _0x4e444c(_0x12429a._0xaef985),
|
|
1817
1803
|
'',
|
|
1818
|
-
|
|
1804
|
+
_0x2eaa1d ? 'Root\x20task\x20message:\x0a' + _0x2eaa1d[_0x4e444c(_0x12429a._0x341eb5)] : _0x4e444c(0x255) + _0x2d7905[_0x4e444c(0x1fb)],
|
|
1819
1805
|
'',
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
][
|
|
1823
|
-
'method':
|
|
1824
|
-
'headers': { 'Content-Type':
|
|
1825
|
-
'body': JSON[
|
|
1826
|
-
'agent_id':
|
|
1827
|
-
'thread_target':
|
|
1806
|
+
_0x4e444c(_0x12429a._0x1f0ac9) + _0x2ace50,
|
|
1807
|
+
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1808
|
+
][_0x4e444c(_0x12429a._0x527e93)]('\x0a'), _0x5f2bfd = await fetch(_0x46105a[_0x4e444c(0x213)] + _0x4e444c(0x25b), {
|
|
1809
|
+
'method': 'POST',
|
|
1810
|
+
'headers': { 'Content-Type': _0x4e444c(0x1d9) },
|
|
1811
|
+
'body': JSON[_0x4e444c(_0x12429a._0x3fa03d)]({
|
|
1812
|
+
'agent_id': _0x46105a[_0x4e444c(0x202)],
|
|
1813
|
+
'thread_target': _0x2ace50,
|
|
1828
1814
|
'spawn_packet': {
|
|
1829
|
-
'replyTarget':
|
|
1830
|
-
...
|
|
1815
|
+
'replyTarget': _0x2ace50,
|
|
1816
|
+
..._0x2d7905['taskId'] ? { 'taskId': _0x2d7905['taskId'] } : _0x2d7905['taskNumber'] != null ? { 'taskId': _0x4e444c(0x1a0) + _0x2d7905[_0x4e444c(_0x12429a._0x2d4d90)] } : {}
|
|
1831
1817
|
},
|
|
1832
1818
|
'payload': {
|
|
1833
|
-
'mode':
|
|
1834
|
-
'text':
|
|
1819
|
+
'mode': _0x4e444c(_0x12429a._0x379018),
|
|
1820
|
+
'text': _0xa46367
|
|
1835
1821
|
}
|
|
1836
1822
|
})
|
|
1837
|
-
}),
|
|
1838
|
-
if (!
|
|
1839
|
-
throw new Error(
|
|
1823
|
+
}), _0x3660bf = await _0x5f2bfd[_0x4e444c(0x241)]();
|
|
1824
|
+
if (!_0x3660bf['ok'])
|
|
1825
|
+
throw new Error(_0x3660bf[_0x4e444c(_0x12429a._0x4465a2)] ?? _0x4e444c(0x149));
|
|
1840
1826
|
return {
|
|
1841
1827
|
'stopMain': !![],
|
|
1842
|
-
'threadTarget':
|
|
1843
|
-
'workerDisposition':
|
|
1828
|
+
'threadTarget': _0x2ace50,
|
|
1829
|
+
'workerDisposition': _0x3660bf[_0x4e444c(0x23c)] === _0x4e444c(_0x12429a._0x58ba78) ? _0x4e444c(0x1f2) : 'started',
|
|
1844
1830
|
'workerHandoff': !![],
|
|
1845
|
-
'workerSessionId':
|
|
1846
|
-
'executionMode':
|
|
1831
|
+
'workerSessionId': _0x3660bf[_0x4e444c(0x1c4)] ?? '',
|
|
1832
|
+
'executionMode': _0x4e444c(_0x12429a._0x5ab86f)
|
|
1847
1833
|
};
|
|
1848
1834
|
}
|
|
1849
|
-
async function
|
|
1850
|
-
const
|
|
1851
|
-
if (!
|
|
1835
|
+
async function _0x299680() {
|
|
1836
|
+
const _0x63f5c8 = _0x35b1;
|
|
1837
|
+
if (!_0x46105a[_0x63f5c8(_0x1de4a5._0x4a27b5)] || !_0x46105a[_0x63f5c8(0x202)] || _0x46105a['workerMode'])
|
|
1852
1838
|
return null;
|
|
1853
1839
|
try {
|
|
1854
|
-
const
|
|
1855
|
-
if (!
|
|
1840
|
+
const _0x53529a = await fetch(_0x46105a[_0x63f5c8(_0x1de4a5._0x2f2ab2)] + _0x63f5c8(0x161) + encodeURIComponent(_0x46105a[_0x63f5c8(0x202)])), _0x5a643d = await _0x53529a[_0x63f5c8(_0x1de4a5._0x1c2e61)]();
|
|
1841
|
+
if (!_0x5a643d['ok'])
|
|
1856
1842
|
return null;
|
|
1857
|
-
const
|
|
1858
|
-
for (const
|
|
1859
|
-
|
|
1843
|
+
const _0x52d1be = new Set();
|
|
1844
|
+
for (const _0x1ad113 of _0x5a643d[_0x63f5c8(_0x1de4a5._0x521cd5)]) {
|
|
1845
|
+
_0x1ad113[_0x63f5c8(_0x1de4a5._0x17679e)] !== _0x63f5c8(0x224) && _0x1ad113[_0x63f5c8(0x24a)] && _0x52d1be['add'](_0x1ad113[_0x63f5c8(0x24a)]);
|
|
1860
1846
|
}
|
|
1861
|
-
return
|
|
1847
|
+
return _0x52d1be[_0x63f5c8(0x139)] > 0x0 ? _0x52d1be : null;
|
|
1862
1848
|
} catch {
|
|
1863
1849
|
return null;
|
|
1864
1850
|
}
|
|
1865
1851
|
}
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1852
|
+
const _0x44eb23 = new Set([
|
|
1853
|
+
'running',
|
|
1854
|
+
'idle',
|
|
1855
|
+
'waiting_input'
|
|
1870
1856
|
]);
|
|
1871
|
-
async function
|
|
1872
|
-
const
|
|
1873
|
-
if (!
|
|
1857
|
+
async function _0x231300() {
|
|
1858
|
+
const _0x45888c = _0x35b1;
|
|
1859
|
+
if (!_0x46105a['daemonLocalUrl'] || !_0x46105a['agentId'] || _0x46105a[_0x45888c(0x17b)])
|
|
1874
1860
|
return null;
|
|
1875
1861
|
try {
|
|
1876
|
-
const
|
|
1877
|
-
if (!
|
|
1862
|
+
const _0x2d8b84 = await fetch(_0x46105a['daemonLocalUrl'] + _0x45888c(_0x57bcce._0x47d52a) + encodeURIComponent(_0x46105a[_0x45888c(_0x57bcce._0x2bab6c)])), _0x5a9410 = await _0x2d8b84[_0x45888c(_0x57bcce._0x5d77b8)]();
|
|
1863
|
+
if (!_0x5a9410['ok'])
|
|
1878
1864
|
return null;
|
|
1879
|
-
const
|
|
1880
|
-
for (const
|
|
1881
|
-
|
|
1865
|
+
const _0x29cdf1 = new Set();
|
|
1866
|
+
for (const _0x41b3ed of _0x5a9410[_0x45888c(_0x57bcce._0x5e0f5a)]) {
|
|
1867
|
+
_0x44eb23['has'](_0x41b3ed[_0x45888c(_0x57bcce._0x261e22)]) && _0x41b3ed['thread_target'] && _0x29cdf1[_0x45888c(_0x57bcce._0x2e2833)](_0x41b3ed['thread_target']);
|
|
1882
1868
|
}
|
|
1883
|
-
return
|
|
1869
|
+
return _0x29cdf1[_0x45888c(0x139)] > 0x0 ? _0x29cdf1 : null;
|
|
1884
1870
|
} catch {
|
|
1885
1871
|
return null;
|
|
1886
1872
|
}
|
|
1887
1873
|
}
|
|
1888
1874
|
return {
|
|
1889
|
-
async 'send_message'(
|
|
1890
|
-
const
|
|
1891
|
-
if (!
|
|
1892
|
-
const
|
|
1893
|
-
if (
|
|
1894
|
-
const
|
|
1895
|
-
if (
|
|
1875
|
+
async 'send_message'(_0x5437b0) {
|
|
1876
|
+
const _0x43662a = _0x35b1;
|
|
1877
|
+
if (!_0x46105a[_0x43662a(0x17b)] && _0x46105a[_0x43662a(0x200)] && _0x46105a['daemonLocalUrl'] && _0x46105a[_0x43662a(_0x5ede38._0x56b136)]) {
|
|
1878
|
+
const _0x53ccff = await _0x46105a['client'][_0x43662a(0x21f)](_0x5437b0['target']);
|
|
1879
|
+
if (_0x53ccff[_0x43662a(_0x5ede38._0x3ffc9c)] && _0x53ccff[_0x43662a(0x266)]) {
|
|
1880
|
+
const _0x54659b = _0x53ccff[_0x43662a(_0x5ede38._0x3ffc9c)]['taskNumber'] != null ? '#' + _0x53ccff[_0x43662a(0x1c8)][_0x43662a(_0x5ede38._0x4018e1)] : _0x43662a(_0x5ede38._0x2d67ee), _0x489664 = _0x53ccff[_0x43662a(0x1e4)] != null ? _0x53ccff['target'] + ':t' + _0x53ccff[_0x43662a(_0x5ede38._0xe04375)] : _0x53ccff[_0x43662a(0x284)] + ':' + _0x53ccff[_0x43662a(_0x5ede38._0x4f00fc)][_0x43662a(_0x5ede38._0x16dbf3)](0x0, 0x8), _0x405dc2 = await _0x231300();
|
|
1881
|
+
if (_0x405dc2?.[_0x43662a(_0x5ede38._0x75fef3)](_0x489664))
|
|
1896
1882
|
return [
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
][
|
|
1900
|
-
const
|
|
1901
|
-
'[target=' +
|
|
1883
|
+
'Task\x20' + _0x54659b + _0x43662a(0x250) + _0x489664 + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1884
|
+
_0x43662a(0x20f)
|
|
1885
|
+
][_0x43662a(0x281)]('\x0a');
|
|
1886
|
+
const _0x18e92f = [
|
|
1887
|
+
'[target=' + _0x489664 + _0x43662a(0x2aa) + new Date()[_0x43662a(0x25e)]() + _0x43662a(0x27a),
|
|
1902
1888
|
'',
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
][
|
|
1908
|
-
'method':
|
|
1909
|
-
'headers': { 'Content-Type':
|
|
1910
|
-
'body': JSON[
|
|
1911
|
-
'agent_id':
|
|
1912
|
-
'thread_target':
|
|
1889
|
+
_0x43662a(0x153) + _0x5437b0[_0x43662a(0x14c)],
|
|
1890
|
+
_0x43662a(_0x5ede38._0x3c5294) + _0x54659b + '\x20(' + _0x53ccff[_0x43662a(_0x5ede38._0x3831b6)][_0x43662a(_0x5ede38._0x2bd65f)] + ')',
|
|
1891
|
+
_0x43662a(_0x5ede38._0x317917) + _0x489664,
|
|
1892
|
+
_0x43662a(0x134)
|
|
1893
|
+
]['join']('\x0a'), _0x2badaa = await fetch(_0x46105a[_0x43662a(0x213)] + _0x43662a(0x25b), {
|
|
1894
|
+
'method': _0x43662a(0x264),
|
|
1895
|
+
'headers': { 'Content-Type': _0x43662a(_0x5ede38._0x1482cd) },
|
|
1896
|
+
'body': JSON[_0x43662a(_0x5ede38._0x5d0f0f)]({
|
|
1897
|
+
'agent_id': _0x46105a[_0x43662a(0x202)],
|
|
1898
|
+
'thread_target': _0x489664,
|
|
1913
1899
|
'spawn_packet': {
|
|
1914
|
-
'replyTarget':
|
|
1915
|
-
'taskId':
|
|
1900
|
+
'replyTarget': _0x489664,
|
|
1901
|
+
'taskId': _0x53ccff['task']['taskId']
|
|
1916
1902
|
},
|
|
1917
1903
|
'payload': {
|
|
1918
|
-
'mode':
|
|
1919
|
-
'text':
|
|
1904
|
+
'mode': 'user',
|
|
1905
|
+
'text': _0x18e92f
|
|
1920
1906
|
}
|
|
1921
1907
|
})
|
|
1922
|
-
}),
|
|
1923
|
-
if (!
|
|
1924
|
-
throw new Error(
|
|
1908
|
+
}), _0x3ee015 = await _0x2badaa[_0x43662a(0x241)]();
|
|
1909
|
+
if (!_0x3ee015['ok'])
|
|
1910
|
+
throw new Error(_0x3ee015['error'] ?? _0x43662a(_0x5ede38._0x42aab3));
|
|
1925
1911
|
return [
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
][
|
|
1912
|
+
_0x43662a(_0x5ede38._0x22157a) + _0x54659b + _0x43662a(0x250) + _0x489664 + _0x43662a(_0x5ede38._0x5e1978),
|
|
1913
|
+
'Worker\x20' + (_0x3ee015[_0x43662a(_0x5ede38._0x41dec9)] === _0x43662a(_0x5ede38._0x187cb0) ? _0x43662a(_0x5ede38._0x3b0789) : 'started') + '.',
|
|
1914
|
+
_0x43662a(0x24f)
|
|
1915
|
+
][_0x43662a(_0x5ede38._0xf55ea9)]('\x0a');
|
|
1930
1916
|
}
|
|
1931
1917
|
}
|
|
1932
|
-
const
|
|
1933
|
-
'attachmentIds':
|
|
1934
|
-
'content':
|
|
1935
|
-
'target':
|
|
1936
|
-
'visibility':
|
|
1918
|
+
const _0x139360 = await _0x46105a[_0x43662a(_0x5ede38._0x22c85c)][_0x43662a(_0x5ede38._0x296535)]({
|
|
1919
|
+
'attachmentIds': _0x5437b0[_0x43662a(_0x5ede38._0x2c9f5a)],
|
|
1920
|
+
'content': _0x5437b0[_0x43662a(0x14c)],
|
|
1921
|
+
'target': _0x5437b0[_0x43662a(0x284)],
|
|
1922
|
+
'visibility': _0x5437b0[_0x43662a(0x146)]
|
|
1937
1923
|
});
|
|
1938
|
-
return
|
|
1924
|
+
return 'Message\x20sent\x20to\x20' + _0x5437b0[_0x43662a(_0x5ede38._0x530a4e)] + '.\x20Message\x20ID:\x20' + _0x139360[_0x43662a(_0x5ede38._0x34af8f)];
|
|
1939
1925
|
},
|
|
1940
1926
|
async 'check_messages'() {
|
|
1941
|
-
const
|
|
1942
|
-
if (!
|
|
1943
|
-
const
|
|
1944
|
-
if (
|
|
1945
|
-
return formatCheckMessages(
|
|
1927
|
+
const _0x7ebb65 = _0x35b1, _0x312c09 = await _0x46105a[_0x7ebb65(0x12c)][_0x7ebb65(0x1ae)]();
|
|
1928
|
+
if (!_0x46105a['workerMode']) {
|
|
1929
|
+
const _0x43eb24 = await _0x299680();
|
|
1930
|
+
if (_0x43eb24)
|
|
1931
|
+
return formatCheckMessages(_0x312c09['messages']['filter'](_0xa44c01 => !_0x43eb24[_0x7ebb65(0x2af)](_0xa44c01[_0x7ebb65(0x284)])));
|
|
1946
1932
|
}
|
|
1947
|
-
return formatCheckMessages(
|
|
1933
|
+
return formatCheckMessages(_0x312c09['messages']);
|
|
1948
1934
|
},
|
|
1949
|
-
async 'read_history'(
|
|
1950
|
-
const
|
|
1951
|
-
return formatHistory(
|
|
1935
|
+
async 'read_history'(_0x4199b3) {
|
|
1936
|
+
const _0x257440 = _0x35b1, _0x500aea = await _0x46105a['client'][_0x257440(0x26b)](_0x4199b3);
|
|
1937
|
+
return formatHistory(_0x500aea);
|
|
1952
1938
|
},
|
|
1953
1939
|
async 'list_server'() {
|
|
1954
|
-
const
|
|
1955
|
-
return formatServerDirectory(
|
|
1940
|
+
const _0x507aa0 = _0x35b1, _0x3f4d80 = await _0x46105a[_0x507aa0(_0x412f02._0x2e60f8)][_0x507aa0(_0x412f02._0x4c5254)]();
|
|
1941
|
+
return formatServerDirectory(_0x3f4d80);
|
|
1956
1942
|
},
|
|
1957
|
-
async 'list_tasks'(
|
|
1958
|
-
const
|
|
1959
|
-
let
|
|
1960
|
-
if (
|
|
1943
|
+
async 'list_tasks'(_0x2df106) {
|
|
1944
|
+
const _0x2c8801 = _0x35b1, _0x5e1d41 = await _0x46105a[_0x2c8801(0x12c)][_0x2c8801(0x21a)](_0x2df106);
|
|
1945
|
+
let _0x47f873;
|
|
1946
|
+
if (_0x46105a[_0x2c8801(_0x4b0f10._0x2cb6eb)] && _0x46105a[_0x2c8801(0x202)])
|
|
1961
1947
|
try {
|
|
1962
|
-
const
|
|
1963
|
-
if (
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1966
|
-
for (const
|
|
1967
|
-
if (
|
|
1948
|
+
const _0x3bd986 = await fetch(_0x46105a['daemonLocalUrl'] + '/workers/list?agent_id=' + encodeURIComponent(_0x46105a[_0x2c8801(_0x4b0f10._0x5460be)])), _0x203ef5 = await _0x3bd986[_0x2c8801(_0x4b0f10._0x313e05)]();
|
|
1949
|
+
if (_0x203ef5['ok']) {
|
|
1950
|
+
const _0x302ee3 = _0x2df106[_0x2c8801(0x26c)] + ':';
|
|
1951
|
+
_0x47f873 = new Set();
|
|
1952
|
+
for (const _0x1564fb of _0x203ef5['workers']) {
|
|
1953
|
+
if (_0x1564fb[_0x2c8801(0x1b1)] === _0x2c8801(_0x4b0f10._0x5bc186))
|
|
1968
1954
|
continue;
|
|
1969
|
-
if (
|
|
1970
|
-
const
|
|
1971
|
-
if (
|
|
1972
|
-
|
|
1955
|
+
if (_0x1564fb[_0x2c8801(_0x4b0f10._0xff10bf)]?.['startsWith'](_0x302ee3)) {
|
|
1956
|
+
const _0x216d2d = _0x1564fb[_0x2c8801(_0x4b0f10._0x5a907e)]['slice'](_0x302ee3[_0x2c8801(0x1ad)]), _0x52e81d = _0x5e1d41[_0x2c8801(0x133)][_0x2c8801(_0x4b0f10._0x5e28b2)](_0xea73fc => _0xea73fc[_0x2c8801(0x1fb)]?.[_0x2c8801(0x28f)](_0x216d2d) === !![]);
|
|
1957
|
+
if (_0x52e81d?.[_0x2c8801(0x128)] != null) {
|
|
1958
|
+
_0x47f873[_0x2c8801(0x25a)](_0x52e81d[_0x2c8801(_0x4b0f10._0x260c84)]);
|
|
1973
1959
|
continue;
|
|
1974
1960
|
}
|
|
1975
1961
|
}
|
|
1976
|
-
if (
|
|
1977
|
-
const
|
|
1978
|
-
|
|
1962
|
+
if (_0x1564fb['task_id']) {
|
|
1963
|
+
const _0x378d5b = _0x5e1d41[_0x2c8801(0x133)][_0x2c8801(0x1b4)](_0x54fc24 => _0x54fc24[_0x2c8801(0x163)] === _0x1564fb[_0x2c8801(0x256)]);
|
|
1964
|
+
_0x378d5b?.[_0x2c8801(_0x4b0f10._0x260c84)] != null && _0x47f873[_0x2c8801(0x25a)](_0x378d5b[_0x2c8801(_0x4b0f10._0x260c84)]);
|
|
1979
1965
|
}
|
|
1980
1966
|
}
|
|
1981
1967
|
}
|
|
1982
1968
|
} catch {
|
|
1983
1969
|
}
|
|
1984
|
-
return formatTaskList(
|
|
1970
|
+
return formatTaskList(_0x5e1d41[_0x2c8801(0x133)], _0x47f873);
|
|
1985
1971
|
},
|
|
1986
|
-
async 'create_tasks'(
|
|
1987
|
-
const
|
|
1988
|
-
|
|
1989
|
-
const
|
|
1990
|
-
return formatCreatedTasks(
|
|
1972
|
+
async 'create_tasks'(_0x4f33ee) {
|
|
1973
|
+
const _0x273c47 = _0x35b1;
|
|
1974
|
+
_0x5deb9d('create_tasks', _0x4f33ee[_0x273c47(0x26c)]);
|
|
1975
|
+
const _0x1371fc = await _0x46105a[_0x273c47(_0x5cbedc._0x2e6a32)][_0x273c47(0x23e)](_0x4f33ee);
|
|
1976
|
+
return formatCreatedTasks(_0x1371fc[_0x273c47(_0x5cbedc._0x2581ca)]);
|
|
1991
1977
|
},
|
|
1992
|
-
async 'claim_tasks'(
|
|
1993
|
-
const
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
1978
|
+
async 'claim_tasks'(_0x2aa068) {
|
|
1979
|
+
const _0x388167 = {
|
|
1980
|
+
_0x159e62: 0x1fb,
|
|
1981
|
+
_0xd995af: 0x1fb,
|
|
1982
|
+
_0x25407d: 0x16f,
|
|
1983
|
+
_0x5e4581: 0x149
|
|
1984
|
+
}, _0x5a0448 = _0x35b1;
|
|
1985
|
+
if (_0x46105a[_0x5a0448(_0x1843ac._0x492cdc)]) {
|
|
1986
|
+
_0x5deb9d(_0x5a0448(0x1a2), _0x2aa068[_0x5a0448(0x26c)]);
|
|
1987
|
+
if (_0x2aa068[_0x5a0448(0x147)] && _0x2aa068['message_ids'][_0x5a0448(_0x1843ac._0xb54bc6)] > 0x0)
|
|
1988
|
+
throw new Error(_0x5a0448(_0x1843ac._0x4c926b));
|
|
1989
|
+
if (!_0x2aa068['subtask_numbers'] || _0x2aa068[_0x5a0448(_0x1843ac._0x18ad0a)][_0x5a0448(0x1ad)] === 0x0)
|
|
1990
|
+
throw new Error(_0x5a0448(_0x1843ac._0x415b64));
|
|
2000
1991
|
}
|
|
2001
|
-
const
|
|
2002
|
-
const
|
|
2003
|
-
if (!
|
|
2004
|
-
return
|
|
1992
|
+
const _0x306eff = await _0x46105a[_0x5a0448(_0x1843ac._0x45afe9)][_0x5a0448(0x1e8)](_0x2aa068), _0x2aaf71 = await Promise[_0x5a0448(_0x1843ac._0x595cc7)](_0x306eff['results'][_0x5a0448(_0x1843ac._0x4a71f0)](async _0x5f213b => {
|
|
1993
|
+
const _0x2ba6b4 = _0x5a0448;
|
|
1994
|
+
if (!_0x5f213b[_0x2ba6b4(0x15e)] || !_0x5f213b[_0x2ba6b4(_0x388167._0x159e62)])
|
|
1995
|
+
return _0x5f213b;
|
|
2005
1996
|
try {
|
|
2006
|
-
const
|
|
2007
|
-
'channel':
|
|
2008
|
-
'executionMode':
|
|
2009
|
-
'messageId':
|
|
2010
|
-
'taskId':
|
|
2011
|
-
'taskNumber':
|
|
2012
|
-
'threadNumber':
|
|
1997
|
+
const _0x25ed14 = await _0x6f0d9c({
|
|
1998
|
+
'channel': _0x2aa068['channel'],
|
|
1999
|
+
'executionMode': _0x5f213b[_0x2ba6b4(0x20a)],
|
|
2000
|
+
'messageId': _0x5f213b[_0x2ba6b4(_0x388167._0xd995af)],
|
|
2001
|
+
'taskId': _0x5f213b['taskId'],
|
|
2002
|
+
'taskNumber': _0x5f213b[_0x2ba6b4(0x128)],
|
|
2003
|
+
'threadNumber': _0x5f213b[_0x2ba6b4(0x1e4)]
|
|
2013
2004
|
});
|
|
2014
|
-
return
|
|
2015
|
-
...
|
|
2016
|
-
...
|
|
2017
|
-
} :
|
|
2018
|
-
} catch (
|
|
2005
|
+
return _0x25ed14 ? {
|
|
2006
|
+
..._0x5f213b,
|
|
2007
|
+
..._0x25ed14
|
|
2008
|
+
} : _0x5f213b;
|
|
2009
|
+
} catch (_0x5b359b) {
|
|
2019
2010
|
return {
|
|
2020
|
-
...
|
|
2021
|
-
'workerHandoffError':
|
|
2011
|
+
..._0x5f213b,
|
|
2012
|
+
'workerHandoffError': _0x5b359b instanceof Error ? _0x5b359b[_0x2ba6b4(_0x388167._0x25407d)] : _0x2ba6b4(_0x388167._0x5e4581)
|
|
2022
2013
|
};
|
|
2023
2014
|
}
|
|
2024
2015
|
}));
|
|
2025
|
-
return formatClaimTaskResults(
|
|
2016
|
+
return formatClaimTaskResults(_0x2aaf71);
|
|
2026
2017
|
},
|
|
2027
|
-
async 'unclaim_task'(
|
|
2028
|
-
const
|
|
2029
|
-
if (
|
|
2030
|
-
|
|
2031
|
-
if (
|
|
2032
|
-
throw new Error(
|
|
2018
|
+
async 'unclaim_task'(_0x4c6944) {
|
|
2019
|
+
const _0x39c3c3 = _0x35b1;
|
|
2020
|
+
if (_0x46105a[_0x39c3c3(_0xadada5._0x561db3)]) {
|
|
2021
|
+
_0x5deb9d('unclaim_task', _0x4c6944[_0x39c3c3(_0xadada5._0x2a8085)]);
|
|
2022
|
+
if (_0x4c6944[_0x39c3c3(_0xadada5._0x23262e)] == null)
|
|
2023
|
+
throw new Error(_0x39c3c3(_0xadada5._0xd97bc0));
|
|
2033
2024
|
}
|
|
2034
|
-
const
|
|
2035
|
-
return formatUnclaimTaskResult(
|
|
2025
|
+
const _0x3a89f1 = await _0x46105a[_0x39c3c3(0x12c)]['unclaimTask'](_0x4c6944);
|
|
2026
|
+
return formatUnclaimTaskResult(_0x3a89f1);
|
|
2036
2027
|
},
|
|
2037
|
-
async 'update_task_status'(
|
|
2038
|
-
const
|
|
2039
|
-
|
|
2040
|
-
const
|
|
2041
|
-
return formatUpdateTaskStatusResult(
|
|
2028
|
+
async 'update_task_status'(_0x413fb3) {
|
|
2029
|
+
const _0x3497b4 = _0x35b1;
|
|
2030
|
+
_0x5deb9d('update_task_status', _0x413fb3[_0x3497b4(_0x23fecd._0x28a5fe)]);
|
|
2031
|
+
const _0x43c76d = await _0x46105a['client'][_0x3497b4(0x20b)](_0x413fb3);
|
|
2032
|
+
return formatUpdateTaskStatusResult(_0x43c76d);
|
|
2042
2033
|
},
|
|
2043
|
-
async 'upload_file'(
|
|
2044
|
-
const
|
|
2045
|
-
sizeBytes:
|
|
2046
|
-
...
|
|
2047
|
-
} =
|
|
2048
|
-
'channel':
|
|
2049
|
-
...
|
|
2034
|
+
async 'upload_file'(_0x32da42) {
|
|
2035
|
+
const _0x532abe = _0x35b1, _0x24d130 = await _0x46105a[_0x532abe(0x206)](_0x32da42[_0x532abe(_0x40b003._0x263083)]), {
|
|
2036
|
+
sizeBytes: _0x4b19a2,
|
|
2037
|
+
..._0x2e0ac4
|
|
2038
|
+
} = _0x24d130, _0x3c5279 = await _0x46105a[_0x532abe(_0x40b003._0x4ca4b5)][_0x532abe(0x227)]({
|
|
2039
|
+
'channel': _0x32da42[_0x532abe(0x26c)],
|
|
2040
|
+
..._0x2e0ac4
|
|
2050
2041
|
});
|
|
2051
|
-
return formatUploadResult(
|
|
2042
|
+
return formatUploadResult(_0x3c5279);
|
|
2052
2043
|
},
|
|
2053
|
-
async 'view_file'(
|
|
2054
|
-
const
|
|
2055
|
-
if (
|
|
2056
|
-
return formatViewFileResult(
|
|
2057
|
-
const
|
|
2058
|
-
'attachmentId':
|
|
2059
|
-
'contentType':
|
|
2060
|
-
'data':
|
|
2061
|
-
'originalFilename':
|
|
2044
|
+
async 'view_file'(_0x555a67) {
|
|
2045
|
+
const _0x3bbc90 = _0x35b1, _0x1cd79f = await _0x46105a[_0x3bbc90(0x21e)]['findCachedPath'](_0x555a67[_0x3bbc90(_0x526139._0x5d5b76)]);
|
|
2046
|
+
if (_0x1cd79f)
|
|
2047
|
+
return formatViewFileResult(_0x1cd79f, !![]);
|
|
2048
|
+
const _0x509578 = await _0x46105a[_0x3bbc90(_0x526139._0xb27457)][_0x3bbc90(0x270)](_0x555a67[_0x3bbc90(0x197)]), _0x4454d5 = await _0x46105a[_0x3bbc90(0x21e)][_0x3bbc90(_0x526139._0x2ee9e2)]({
|
|
2049
|
+
'attachmentId': _0x555a67['attachment_id'],
|
|
2050
|
+
'contentType': _0x509578[_0x3bbc90(_0x526139._0x96216d)],
|
|
2051
|
+
'data': _0x509578[_0x3bbc90(_0x526139._0x5bb3f6)],
|
|
2052
|
+
'originalFilename': _0x509578[_0x3bbc90(0x29f)]
|
|
2062
2053
|
});
|
|
2063
|
-
return formatViewFileResult(
|
|
2064
|
-
},
|
|
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)];
|
|
2054
|
+
return formatViewFileResult(_0x4454d5, ![]);
|
|
2073
2055
|
},
|
|
2074
|
-
async '
|
|
2075
|
-
const
|
|
2076
|
-
if (!
|
|
2077
|
-
return
|
|
2078
|
-
const
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
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.';
|
|
2056
|
+
async 'get_worker_status'(_0x3429d7) {
|
|
2057
|
+
const _0x42bb7b = _0x35b1;
|
|
2058
|
+
if (!_0x46105a[_0x42bb7b(0x213)])
|
|
2059
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2060
|
+
const _0x2f9339 = await fetch(_0x46105a[_0x42bb7b(0x213)] + '/workers/status?work_key=' + encodeURIComponent(_0x3429d7['work_key'])), _0x188d1f = await _0x2f9339['json']();
|
|
2061
|
+
if (!_0x188d1f['ok'])
|
|
2062
|
+
return _0x42bb7b(_0x3ae7ab._0x1f0f79) + _0x3429d7[_0x42bb7b(_0x3ae7ab._0x316830)] + '\x22\x20not\x20found';
|
|
2063
|
+
return _0x42bb7b(_0x3ae7ab._0x1f0f79) + _0x3429d7[_0x42bb7b(_0x3ae7ab._0xcfc593)] + '\x22:\x20status=' + _0x188d1f[_0x42bb7b(_0x3ae7ab._0x4f1426)];
|
|
2086
2064
|
},
|
|
2087
|
-
async '
|
|
2088
|
-
const
|
|
2089
|
-
if (!
|
|
2090
|
-
return
|
|
2091
|
-
const
|
|
2065
|
+
async 'park_worker'(_0x59a7a1) {
|
|
2066
|
+
const _0x50a76c = _0x35b1;
|
|
2067
|
+
if (!_0x46105a['daemonLocalUrl'])
|
|
2068
|
+
return _0x50a76c(_0x518f9d._0x3d3fa7);
|
|
2069
|
+
const _0x225b3a = await fetch(_0x46105a['daemonLocalUrl'] + _0x50a76c(_0x518f9d._0x1f769f), {
|
|
2092
2070
|
'method': 'POST',
|
|
2093
|
-
'headers': { 'Content-Type':
|
|
2094
|
-
'body': JSON[
|
|
2095
|
-
|
|
2096
|
-
|
|
2071
|
+
'headers': { 'Content-Type': _0x50a76c(0x1d9) },
|
|
2072
|
+
'body': JSON[_0x50a76c(_0x518f9d._0x2c7060)]({ 'work_key': _0x59a7a1['work_key'] })
|
|
2073
|
+
}), _0x3efec4 = await _0x225b3a[_0x50a76c(0x241)]();
|
|
2074
|
+
if (!_0x3efec4['ok'])
|
|
2075
|
+
throw new Error(_0x3efec4[_0x50a76c(_0x518f9d._0x48d82c)] ?? 'park_worker\x20failed');
|
|
2076
|
+
return _0x50a76c(0x295) + _0x59a7a1[_0x50a76c(0x2a2)] + _0x50a76c(0x225);
|
|
2077
|
+
},
|
|
2078
|
+
async 'mark_waiting_input'(_0x5aa479) {
|
|
2079
|
+
const _0x1c377d = _0x35b1;
|
|
2080
|
+
if (!_0x46105a[_0x1c377d(0x213)] || !_0x46105a[_0x1c377d(0x202)])
|
|
2081
|
+
return _0x1c377d(0x29d);
|
|
2082
|
+
const _0x4aea87 = await fetch(_0x46105a['daemonLocalUrl'] + '/workers/waiting_input', {
|
|
2083
|
+
'method': _0x1c377d(_0x21e1f8._0x2ab432),
|
|
2084
|
+
'headers': { 'Content-Type': _0x1c377d(0x1d9) },
|
|
2085
|
+
'body': JSON[_0x1c377d(_0x21e1f8._0x19c6f0)]({
|
|
2086
|
+
'work_key': _0x5aa479[_0x1c377d(0x2a2)],
|
|
2087
|
+
'agent_id': _0x46105a[_0x1c377d(0x202)]
|
|
2097
2088
|
})
|
|
2098
|
-
}),
|
|
2099
|
-
if (!
|
|
2100
|
-
throw new Error(
|
|
2101
|
-
return
|
|
2089
|
+
}), _0x1fe33d = await _0x4aea87['json']();
|
|
2090
|
+
if (!_0x1fe33d['ok'])
|
|
2091
|
+
throw new Error(_0x1fe33d[_0x1c377d(0x1dc)] ?? _0x1c377d(_0x21e1f8._0x1c00ee));
|
|
2092
|
+
return _0x1c377d(_0x21e1f8._0x40366a) + _0x5aa479[_0x1c377d(_0x21e1f8._0x342fba)] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
2102
2093
|
},
|
|
2103
|
-
async 'escalate_to_main'(
|
|
2104
|
-
const
|
|
2105
|
-
if (!
|
|
2106
|
-
return
|
|
2107
|
-
const
|
|
2108
|
-
'method':
|
|
2109
|
-
'headers': { 'Content-Type':
|
|
2110
|
-
'body': JSON[
|
|
2111
|
-
'work_key':
|
|
2112
|
-
'reason':
|
|
2094
|
+
async 'escalate_to_main'(_0x47c390) {
|
|
2095
|
+
const _0x575b3f = _0x35b1;
|
|
2096
|
+
if (!_0x46105a['daemonLocalUrl'])
|
|
2097
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2098
|
+
const _0x31bfcb = await fetch(_0x46105a['daemonLocalUrl'] + _0x575b3f(0x13b), {
|
|
2099
|
+
'method': _0x575b3f(_0x405a24._0x2da6bc),
|
|
2100
|
+
'headers': { 'Content-Type': _0x575b3f(_0x405a24._0xe9bdf3) },
|
|
2101
|
+
'body': JSON['stringify']({
|
|
2102
|
+
'work_key': _0x47c390[_0x575b3f(0x2a2)],
|
|
2103
|
+
'reason': _0x47c390[_0x575b3f(0x1de)]
|
|
2113
2104
|
})
|
|
2114
|
-
}),
|
|
2115
|
-
if (!
|
|
2116
|
-
throw new Error(
|
|
2117
|
-
return
|
|
2105
|
+
}), _0x4878bf = await _0x31bfcb['json']();
|
|
2106
|
+
if (!_0x4878bf['ok'])
|
|
2107
|
+
throw new Error(_0x4878bf[_0x575b3f(0x1dc)] ?? _0x575b3f(_0x405a24._0x25362e));
|
|
2108
|
+
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x47c390['reason'];
|
|
2118
2109
|
}
|
|
2119
2110
|
};
|
|
2120
2111
|
}
|
|
2121
|
-
function textResult(
|
|
2112
|
+
function textResult(_0x2df58c, _0x448099 = ![]) {
|
|
2113
|
+
const _0x49b00a = _0x10d6b5;
|
|
2122
2114
|
return {
|
|
2123
2115
|
'content': [{
|
|
2124
|
-
'type':
|
|
2125
|
-
'text':
|
|
2116
|
+
'type': _0x49b00a(0x24d),
|
|
2117
|
+
'text': _0x2df58c
|
|
2126
2118
|
}],
|
|
2127
|
-
...
|
|
2119
|
+
..._0x448099 ? { 'isError': !![] } : {}
|
|
2128
2120
|
};
|
|
2129
2121
|
}
|
|
2130
|
-
async function registerChatBridgeTools(
|
|
2131
|
-
const
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
},
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
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;
|
|
2122
|
+
async function registerChatBridgeTools(_0x3148ab, _0xe22f74, _0x29d53a) {
|
|
2123
|
+
const _0x3caa33 = {
|
|
2124
|
+
_0x537b0d: 0x144,
|
|
2125
|
+
_0x1dc09a: 0x298,
|
|
2126
|
+
_0x3d9c6f: 0x184,
|
|
2127
|
+
_0xbf3b30: 0x271,
|
|
2128
|
+
_0x21e133: 0x166,
|
|
2129
|
+
_0x55bfdb: 0x298,
|
|
2130
|
+
_0xafff6c: 0x19e,
|
|
2131
|
+
_0x476a75: 0x141,
|
|
2132
|
+
_0x38ca61: 0x1f1,
|
|
2133
|
+
_0xf2718f: 0x1ac,
|
|
2134
|
+
_0x298ef2: 0x205,
|
|
2135
|
+
_0x45e39e: 0x1f1,
|
|
2136
|
+
_0x1db883: 0x15a,
|
|
2137
|
+
_0x3a92d0: 0x18b,
|
|
2138
|
+
_0x477835: 0x267,
|
|
2139
|
+
_0x1561d9: 0x1e3,
|
|
2140
|
+
_0x290907: 0x1e3,
|
|
2141
|
+
_0x19c0b7: 0x19e,
|
|
2142
|
+
_0x5ba973: 0x144,
|
|
2143
|
+
_0x5d8cb7: 0x28a,
|
|
2144
|
+
_0x1621da: 0x1e6,
|
|
2145
|
+
_0x306813: 0x28d,
|
|
2146
|
+
_0x9bf89d: 0x298,
|
|
2147
|
+
_0x571fc9: 0x287,
|
|
2148
|
+
_0x2f2f8e: 0x1eb,
|
|
2149
|
+
_0x436b03: 0x1cf,
|
|
2150
|
+
_0x2a50c1: 0x280,
|
|
2151
|
+
_0x3f314d: 0x26f,
|
|
2152
|
+
_0x109850: 0x1d3,
|
|
2153
|
+
_0x4c3e60: 0x1d7,
|
|
2154
|
+
_0x44bc09: 0x124
|
|
2155
|
+
}, _0x28ded0 = { _0x5327e9: 0x1c7 }, _0x2b8ff8 = { _0x5b4ef8: 0x16f }, _0x2de6d0 = { _0x4f6511: 0x16f }, _0x1785af = {
|
|
2156
|
+
_0x3f0870: 0x138,
|
|
2157
|
+
_0x36485a: 0x16f
|
|
2158
|
+
}, _0x34efd9 = {
|
|
2159
|
+
_0x2cbbf4: 0x1eb,
|
|
2160
|
+
_0x39b6e5: 0x16f,
|
|
2161
|
+
_0x173e18: 0x187
|
|
2162
|
+
}, _0x59d477 = {
|
|
2163
|
+
_0x1ff951: 0x16f,
|
|
2164
|
+
_0x33507f: 0x1d2
|
|
2165
|
+
}, _0x2ca186 = {
|
|
2166
|
+
_0x5532eb: 0x1a2,
|
|
2167
|
+
_0x15a8cf: 0x16f
|
|
2168
|
+
}, _0x2dd350 = { _0x188fb2: 0x162 }, _0x35f42b = { _0x1de7f6: 0x297 }, _0x44cfbb = { _0x4ff22d: 0x16f }, _0x1e34e1 = { _0x267103: 0x1fe }, _0x22e3f6 = { _0x1912c5: 0x1a1 }, _0x176228 = _0x10d6b5, {z: _0x5a7fbd} = await import('zod');
|
|
2169
|
+
_0x3148ab[_0x176228(0x1f1)](_0x176228(0x1a1), _0x176228(0x277), {
|
|
2170
|
+
'target': _0x5a7fbd[_0x176228(0x298)](),
|
|
2171
|
+
'content': _0x5a7fbd[_0x176228(0x298)](),
|
|
2172
|
+
'attachment_ids': _0x5a7fbd[_0x176228(_0x3caa33._0x537b0d)](_0x5a7fbd[_0x176228(_0x3caa33._0x1dc09a)]())['optional'](),
|
|
2173
|
+
'visibility': _0x5a7fbd[_0x176228(_0x3caa33._0x3d9c6f)]([
|
|
2174
|
+
_0x176228(0x137),
|
|
2175
|
+
'aside'
|
|
2176
|
+
])[_0x176228(0x19e)]()[_0x176228(_0x3caa33._0xbf3b30)](_0x176228(_0x3caa33._0x21e133))
|
|
2177
|
+
}, async _0x26c04d => {
|
|
2178
|
+
const _0xac494 = _0x176228;
|
|
2200
2179
|
try {
|
|
2201
|
-
return textResult(await
|
|
2202
|
-
} catch (
|
|
2203
|
-
return textResult(
|
|
2180
|
+
return textResult(await _0xe22f74[_0xac494(_0x22e3f6._0x1912c5)](_0x26c04d));
|
|
2181
|
+
} catch (_0x322c4b) {
|
|
2182
|
+
return textResult(_0x322c4b instanceof Error ? _0x322c4b[_0xac494(0x16f)] : 'send_message\x20failed', !![]);
|
|
2204
2183
|
}
|
|
2205
|
-
}),
|
|
2206
|
-
const
|
|
2184
|
+
}), _0x3148ab['tool'](_0x176228(0x1fe), _0x176228(0x28c), {}, async () => {
|
|
2185
|
+
const _0xe3a41a = _0x176228;
|
|
2207
2186
|
try {
|
|
2208
|
-
return textResult(await
|
|
2209
|
-
} catch (
|
|
2210
|
-
return textResult(
|
|
2187
|
+
return textResult(await _0xe22f74[_0xe3a41a(_0x1e34e1._0x267103)]());
|
|
2188
|
+
} catch (_0x1ce83f) {
|
|
2189
|
+
return textResult(_0x1ce83f instanceof Error ? _0x1ce83f['message'] : _0xe3a41a(0x20e), !![]);
|
|
2211
2190
|
}
|
|
2212
|
-
}),
|
|
2213
|
-
'channel':
|
|
2214
|
-
'limit':
|
|
2215
|
-
'before':
|
|
2216
|
-
'after':
|
|
2217
|
-
}, async
|
|
2218
|
-
const
|
|
2191
|
+
}), _0x3148ab[_0x176228(0x1f1)](_0x176228(0x155), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2192
|
+
'channel': _0x5a7fbd[_0x176228(_0x3caa33._0x55bfdb)](),
|
|
2193
|
+
'limit': _0x5a7fbd[_0x176228(0x1e3)]()['optional'](),
|
|
2194
|
+
'before': _0x5a7fbd[_0x176228(0x1e3)]()[_0x176228(0x19e)](),
|
|
2195
|
+
'after': _0x5a7fbd[_0x176228(0x1e3)]()[_0x176228(_0x3caa33._0xafff6c)]()
|
|
2196
|
+
}, async _0x154054 => {
|
|
2197
|
+
const _0x2b97b2 = _0x176228;
|
|
2219
2198
|
try {
|
|
2220
|
-
return textResult(await
|
|
2221
|
-
} catch (
|
|
2222
|
-
return textResult(
|
|
2199
|
+
return textResult(await _0xe22f74['read_history'](_0x154054));
|
|
2200
|
+
} catch (_0x2f691c) {
|
|
2201
|
+
return textResult(_0x2f691c instanceof Error ? _0x2f691c[_0x2b97b2(_0x44cfbb._0x4ff22d)] : _0x2b97b2(0x130), !![]);
|
|
2223
2202
|
}
|
|
2224
|
-
}),
|
|
2225
|
-
const
|
|
2203
|
+
}), _0x3148ab['tool'](_0x176228(0x297), _0x176228(_0x3caa33._0x476a75), {}, async () => {
|
|
2204
|
+
const _0x2996c0 = _0x176228;
|
|
2226
2205
|
try {
|
|
2227
|
-
return textResult(await
|
|
2228
|
-
} catch (
|
|
2229
|
-
return textResult(
|
|
2206
|
+
return textResult(await _0xe22f74[_0x2996c0(_0x35f42b._0x1de7f6)]());
|
|
2207
|
+
} catch (_0xd3eade) {
|
|
2208
|
+
return textResult(_0xd3eade instanceof Error ? _0xd3eade[_0x2996c0(0x16f)] : _0x2996c0(0x1ef), !![]);
|
|
2230
2209
|
}
|
|
2231
|
-
}),
|
|
2232
|
-
'channel':
|
|
2233
|
-
'status':
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
])[
|
|
2239
|
-
}, async
|
|
2240
|
-
const
|
|
2210
|
+
}), _0x3148ab[_0x176228(_0x3caa33._0x38ca61)](_0x176228(0x23a), _0x176228(0x180), {
|
|
2211
|
+
'channel': _0x5a7fbd[_0x176228(0x298)](),
|
|
2212
|
+
'status': _0x5a7fbd[_0x176228(0x184)]([
|
|
2213
|
+
_0x176228(0x279),
|
|
2214
|
+
_0x176228(0x26e),
|
|
2215
|
+
_0x176228(_0x3caa33._0xf2718f),
|
|
2216
|
+
_0x176228(_0x3caa33._0x298ef2)
|
|
2217
|
+
])[_0x176228(_0x3caa33._0xafff6c)]()
|
|
2218
|
+
}, async _0x21a39b => {
|
|
2219
|
+
const _0x18e576 = _0x176228;
|
|
2241
2220
|
try {
|
|
2242
|
-
return textResult(await
|
|
2243
|
-
} catch (
|
|
2244
|
-
return textResult(
|
|
2221
|
+
return textResult(await _0xe22f74['list_tasks'](_0x21a39b));
|
|
2222
|
+
} catch (_0x1deb7a) {
|
|
2223
|
+
return textResult(_0x1deb7a instanceof Error ? _0x1deb7a[_0x18e576(0x16f)] : _0x18e576(0x1bd), !![]);
|
|
2245
2224
|
}
|
|
2246
|
-
}),
|
|
2247
|
-
'channel':
|
|
2248
|
-
'idempotency_key':
|
|
2249
|
-
'tasks':
|
|
2250
|
-
'title':
|
|
2251
|
-
'description':
|
|
2252
|
-
'priority':
|
|
2253
|
-
|
|
2254
|
-
|
|
2225
|
+
}), _0x3148ab[_0x176228(_0x3caa33._0x45e39e)](_0x176228(0x299), _0x176228(_0x3caa33._0x1db883), {
|
|
2226
|
+
'channel': _0x5a7fbd[_0x176228(_0x3caa33._0x55bfdb)](),
|
|
2227
|
+
'idempotency_key': _0x5a7fbd[_0x176228(0x298)]()[_0x176228(0x19e)](),
|
|
2228
|
+
'tasks': _0x5a7fbd[_0x176228(_0x3caa33._0x537b0d)](_0x5a7fbd['object']({
|
|
2229
|
+
'title': _0x5a7fbd[_0x176228(_0x3caa33._0x55bfdb)](),
|
|
2230
|
+
'description': _0x5a7fbd['string']()[_0x176228(0x19e)](),
|
|
2231
|
+
'priority': _0x5a7fbd['enum']([
|
|
2232
|
+
_0x176228(_0x3caa33._0x3a92d0),
|
|
2233
|
+
_0x176228(0x262),
|
|
2255
2234
|
'high',
|
|
2256
|
-
|
|
2257
|
-
])[
|
|
2235
|
+
_0x176228(_0x3caa33._0x477835)
|
|
2236
|
+
])['optional']()
|
|
2258
2237
|
}))
|
|
2259
|
-
}, async
|
|
2260
|
-
const
|
|
2238
|
+
}, async _0xf7c5ae => {
|
|
2239
|
+
const _0x2876fd = _0x176228;
|
|
2261
2240
|
try {
|
|
2262
|
-
return textResult(await
|
|
2263
|
-
} catch (
|
|
2264
|
-
return textResult(
|
|
2241
|
+
return textResult(await _0xe22f74['create_tasks'](_0xf7c5ae));
|
|
2242
|
+
} catch (_0x3201e3) {
|
|
2243
|
+
return textResult(_0x3201e3 instanceof Error ? _0x3201e3[_0x2876fd(0x16f)] : _0x2876fd(_0x2dd350._0x188fb2), !![]);
|
|
2265
2244
|
}
|
|
2266
|
-
}),
|
|
2267
|
-
'channel':
|
|
2268
|
-
'task_numbers':
|
|
2269
|
-
'subtask_numbers':
|
|
2270
|
-
'message_ids':
|
|
2271
|
-
'evidence':
|
|
2272
|
-
'create_thread':
|
|
2273
|
-
'create_task':
|
|
2274
|
-
}))[
|
|
2275
|
-
'idempotency_key':
|
|
2276
|
-
}, async
|
|
2277
|
-
const
|
|
2245
|
+
}), _0x3148ab[_0x176228(0x1f1)]('claim_tasks', 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
|
|
2246
|
+
'channel': _0x5a7fbd[_0x176228(0x298)](),
|
|
2247
|
+
'task_numbers': _0x5a7fbd[_0x176228(_0x3caa33._0x537b0d)](_0x5a7fbd[_0x176228(_0x3caa33._0x1561d9)]())[_0x176228(0x19e)](),
|
|
2248
|
+
'subtask_numbers': _0x5a7fbd['array'](_0x5a7fbd[_0x176228(_0x3caa33._0x290907)]())[_0x176228(_0x3caa33._0x19c0b7)](),
|
|
2249
|
+
'message_ids': _0x5a7fbd[_0x176228(_0x3caa33._0x5ba973)](_0x5a7fbd['string']())[_0x176228(0x19e)](),
|
|
2250
|
+
'evidence': _0x5a7fbd[_0x176228(_0x3caa33._0x5d8cb7)](_0x5a7fbd['string'](), _0x5a7fbd[_0x176228(_0x3caa33._0x1621da)]({
|
|
2251
|
+
'create_thread': _0x5a7fbd[_0x176228(0x28d)]()[_0x176228(0x19e)](),
|
|
2252
|
+
'create_task': _0x5a7fbd[_0x176228(_0x3caa33._0x306813)]()[_0x176228(0x19e)]()
|
|
2253
|
+
}))[_0x176228(_0x3caa33._0x19c0b7)](),
|
|
2254
|
+
'idempotency_key': _0x5a7fbd[_0x176228(_0x3caa33._0x9bf89d)]()[_0x176228(_0x3caa33._0xafff6c)]()
|
|
2255
|
+
}, async _0x1a7c9c => {
|
|
2256
|
+
const _0x4013fa = _0x176228;
|
|
2278
2257
|
try {
|
|
2279
|
-
return textResult(await
|
|
2280
|
-
} catch (
|
|
2281
|
-
return textResult(
|
|
2258
|
+
return textResult(await _0xe22f74[_0x4013fa(_0x2ca186._0x5532eb)](_0x1a7c9c));
|
|
2259
|
+
} catch (_0x4273fd) {
|
|
2260
|
+
return textResult(_0x4273fd instanceof Error ? _0x4273fd[_0x4013fa(_0x2ca186._0x15a8cf)] : 'claim_tasks\x20failed', !![]);
|
|
2282
2261
|
}
|
|
2283
|
-
}),
|
|
2284
|
-
'channel':
|
|
2285
|
-
'task_number':
|
|
2286
|
-
'subtask_number':
|
|
2287
|
-
'idempotency_key':
|
|
2288
|
-
}, async
|
|
2289
|
-
const
|
|
2262
|
+
}), _0x3148ab[_0x176228(0x1f1)](_0x176228(_0x3caa33._0x571fc9), _0x176228(0x193), {
|
|
2263
|
+
'channel': _0x5a7fbd[_0x176228(_0x3caa33._0x55bfdb)](),
|
|
2264
|
+
'task_number': _0x5a7fbd[_0x176228(0x1e3)](),
|
|
2265
|
+
'subtask_number': _0x5a7fbd[_0x176228(_0x3caa33._0x1561d9)]()[_0x176228(_0x3caa33._0xafff6c)](),
|
|
2266
|
+
'idempotency_key': _0x5a7fbd[_0x176228(0x298)]()[_0x176228(0x19e)]()
|
|
2267
|
+
}, async _0x24e6aa => {
|
|
2268
|
+
const _0x26fefb = _0x176228;
|
|
2290
2269
|
try {
|
|
2291
|
-
return textResult(await
|
|
2292
|
-
} catch (
|
|
2293
|
-
return textResult(
|
|
2270
|
+
return textResult(await _0xe22f74['unclaim_task'](_0x24e6aa));
|
|
2271
|
+
} catch (_0x189b61) {
|
|
2272
|
+
return textResult(_0x189b61 instanceof Error ? _0x189b61[_0x26fefb(_0x59d477._0x1ff951)] : _0x26fefb(_0x59d477._0x33507f), !![]);
|
|
2294
2273
|
}
|
|
2295
|
-
}),
|
|
2296
|
-
'channel':
|
|
2297
|
-
'task_number':
|
|
2298
|
-
'subtask_number':
|
|
2299
|
-
'status':
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2274
|
+
}), _0x3148ab[_0x176228(_0x3caa33._0x45e39e)](_0x176228(0x228), _0x176228(0x208), {
|
|
2275
|
+
'channel': _0x5a7fbd['string'](),
|
|
2276
|
+
'task_number': _0x5a7fbd[_0x176228(0x1e3)](),
|
|
2277
|
+
'subtask_number': _0x5a7fbd[_0x176228(_0x3caa33._0x1561d9)]()[_0x176228(0x19e)](),
|
|
2278
|
+
'status': _0x5a7fbd[_0x176228(0x184)]([
|
|
2279
|
+
_0x176228(0x279),
|
|
2280
|
+
_0x176228(0x26e),
|
|
2281
|
+
_0x176228(0x1ac),
|
|
2282
|
+
'done'
|
|
2304
2283
|
]),
|
|
2305
|
-
'idempotency_key':
|
|
2306
|
-
}, async
|
|
2307
|
-
const
|
|
2284
|
+
'idempotency_key': _0x5a7fbd[_0x176228(0x298)]()[_0x176228(_0x3caa33._0x19c0b7)]()
|
|
2285
|
+
}, async _0x174a66 => {
|
|
2286
|
+
const _0x3edbf5 = _0x176228;
|
|
2308
2287
|
try {
|
|
2309
|
-
return textResult(await
|
|
2310
|
-
} catch (
|
|
2311
|
-
return textResult(
|
|
2288
|
+
return textResult(await _0xe22f74[_0x3edbf5(0x228)](_0x174a66));
|
|
2289
|
+
} catch (_0x21d5b0) {
|
|
2290
|
+
return textResult(_0x21d5b0 instanceof Error ? _0x21d5b0[_0x3edbf5(0x16f)] : _0x3edbf5(0x1c6), !![]);
|
|
2312
2291
|
}
|
|
2313
|
-
}),
|
|
2314
|
-
'channel':
|
|
2315
|
-
'file_path':
|
|
2316
|
-
}, async
|
|
2317
|
-
const
|
|
2292
|
+
}), _0x3148ab['tool'](_0x176228(_0x3caa33._0x2f2f8e), _0x176228(_0x3caa33._0x436b03), {
|
|
2293
|
+
'channel': _0x5a7fbd['string'](),
|
|
2294
|
+
'file_path': _0x5a7fbd['string']()
|
|
2295
|
+
}, async _0x4579b4 => {
|
|
2296
|
+
const _0x1555e0 = _0x176228;
|
|
2318
2297
|
try {
|
|
2319
|
-
return textResult(await
|
|
2320
|
-
} catch (
|
|
2321
|
-
return textResult(
|
|
2298
|
+
return textResult(await _0xe22f74[_0x1555e0(_0x34efd9._0x2cbbf4)](_0x4579b4));
|
|
2299
|
+
} catch (_0x5e1b05) {
|
|
2300
|
+
return textResult(_0x5e1b05 instanceof Error ? _0x5e1b05[_0x1555e0(_0x34efd9._0x39b6e5)] : _0x1555e0(_0x34efd9._0x173e18), !![]);
|
|
2322
2301
|
}
|
|
2323
|
-
}),
|
|
2324
|
-
const
|
|
2302
|
+
}), _0x3148ab[_0x176228(0x1f1)](_0x176228(0x138), _0x176228(0x1bc), { 'attachment_id': _0x5a7fbd['string']() }, async _0x35b6b6 => {
|
|
2303
|
+
const _0x44e5bc = _0x176228;
|
|
2325
2304
|
try {
|
|
2326
|
-
return textResult(await
|
|
2327
|
-
} catch (
|
|
2328
|
-
return textResult(
|
|
2305
|
+
return textResult(await _0xe22f74[_0x44e5bc(_0x1785af._0x3f0870)](_0x35b6b6));
|
|
2306
|
+
} catch (_0xba138f) {
|
|
2307
|
+
return textResult(_0xba138f instanceof Error ? _0xba138f[_0x44e5bc(_0x1785af._0x36485a)] : 'view_file\x20failed', !![]);
|
|
2329
2308
|
}
|
|
2330
|
-
}),
|
|
2331
|
-
const
|
|
2309
|
+
}), _0x3148ab['tool'](_0x176228(0x1d4), _0x176228(_0x3caa33._0x2a50c1), { 'work_key': _0x5a7fbd[_0x176228(0x298)]() }, async _0x4145db => {
|
|
2310
|
+
const _0x28f487 = _0x176228;
|
|
2332
2311
|
try {
|
|
2333
|
-
return textResult(await
|
|
2334
|
-
} catch (
|
|
2335
|
-
return textResult(
|
|
2312
|
+
return textResult(await _0xe22f74[_0x28f487(0x1d4)](_0x4145db));
|
|
2313
|
+
} catch (_0x327837) {
|
|
2314
|
+
return textResult(_0x327837 instanceof Error ? _0x327837[_0x28f487(_0x2de6d0._0x4f6511)] : _0x28f487(0x1d5), !![]);
|
|
2336
2315
|
}
|
|
2337
|
-
}),
|
|
2338
|
-
const
|
|
2316
|
+
}), _0x3148ab['tool'](_0x176228(_0x3caa33._0x3f314d), _0x176228(_0x3caa33._0x109850), { 'work_key': _0x5a7fbd['string']() }, async _0x3b070d => {
|
|
2317
|
+
const _0x7fb7d0 = _0x176228;
|
|
2339
2318
|
try {
|
|
2340
|
-
return textResult(await
|
|
2341
|
-
} catch (
|
|
2342
|
-
return textResult(
|
|
2319
|
+
return textResult(await _0xe22f74['park_worker'](_0x3b070d));
|
|
2320
|
+
} catch (_0x2f4629) {
|
|
2321
|
+
return textResult(_0x2f4629 instanceof Error ? _0x2f4629[_0x7fb7d0(_0x2b8ff8._0x5b4ef8)] : 'park_worker\x20failed', !![]);
|
|
2343
2322
|
}
|
|
2344
|
-
}), !
|
|
2345
|
-
'work_key':
|
|
2346
|
-
'reason':
|
|
2347
|
-
}, async
|
|
2348
|
-
const
|
|
2323
|
+
}), !_0x29d53a?.['workerMode'] && _0x3148ab[_0x176228(0x1f1)]('escalate_to_main', _0x176228(_0x3caa33._0x4c3e60), {
|
|
2324
|
+
'work_key': _0x5a7fbd[_0x176228(_0x3caa33._0x9bf89d)](),
|
|
2325
|
+
'reason': _0x5a7fbd[_0x176228(_0x3caa33._0x1dc09a)]()
|
|
2326
|
+
}, async _0x29fb0a => {
|
|
2327
|
+
const _0x1e20cd = _0x176228;
|
|
2349
2328
|
try {
|
|
2350
|
-
return textResult(await
|
|
2351
|
-
} catch (
|
|
2352
|
-
return textResult(
|
|
2329
|
+
return textResult(await _0xe22f74[_0x1e20cd(_0x28ded0._0x5327e9)](_0x29fb0a));
|
|
2330
|
+
} catch (_0x16d535) {
|
|
2331
|
+
return textResult(_0x16d535 instanceof Error ? _0x16d535[_0x1e20cd(0x16f)] : 'escalate_to_main\x20failed', !![]);
|
|
2353
2332
|
}
|
|
2354
|
-
}),
|
|
2355
|
-
const
|
|
2333
|
+
}), _0x29d53a?.[_0x176228(0x17b)] && _0x3148ab[_0x176228(_0x3caa33._0x45e39e)](_0x176228(0x244), _0x176228(_0x3caa33._0x44bc09), { 'work_key': _0x5a7fbd[_0x176228(0x298)]() }, async _0x5c0edb => {
|
|
2334
|
+
const _0x1a33ec = _0x176228;
|
|
2356
2335
|
try {
|
|
2357
|
-
return textResult(await
|
|
2358
|
-
} catch (
|
|
2359
|
-
return textResult(
|
|
2336
|
+
return textResult(await _0xe22f74[_0x1a33ec(0x244)](_0x5c0edb));
|
|
2337
|
+
} catch (_0x2b3ccb) {
|
|
2338
|
+
return textResult(_0x2b3ccb instanceof Error ? _0x2b3ccb[_0x1a33ec(0x16f)] : _0x1a33ec(0x2a9), !![]);
|
|
2360
2339
|
}
|
|
2361
2340
|
});
|
|
2362
2341
|
}
|
|
2363
|
-
async function createChatBridgeServer(
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
}),
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2342
|
+
async function createChatBridgeServer(_0x23824f) {
|
|
2343
|
+
const _0x5daf82 = {
|
|
2344
|
+
_0x9d0267: 0x198,
|
|
2345
|
+
_0x376997: 0x1ff
|
|
2346
|
+
}, _0x366b73 = _0x10d6b5, {McpServer: _0x26fe71} = await import(_0x366b73(_0x5daf82._0x9d0267)), _0x16ddad = new _0x26fe71({
|
|
2347
|
+
'name': 'chat',
|
|
2348
|
+
'version': _0x366b73(_0x5daf82._0x376997)
|
|
2349
|
+
}), _0x1d4e14 = createChatBridgeHandlers(_0x23824f);
|
|
2350
|
+
return await registerChatBridgeTools(_0x16ddad, _0x1d4e14, { 'workerMode': _0x23824f[_0x366b73(0x17b)] }), {
|
|
2351
|
+
'handlers': _0x1d4e14,
|
|
2352
|
+
'server': _0x16ddad
|
|
2371
2353
|
};
|
|
2372
2354
|
}
|
|
2373
|
-
function readFlag(
|
|
2374
|
-
const
|
|
2375
|
-
if (
|
|
2355
|
+
function readFlag(_0x52e0ca, _0x859a5a) {
|
|
2356
|
+
const _0x2b88f7 = _0x52e0ca['indexOf'](_0x859a5a);
|
|
2357
|
+
if (_0x2b88f7 === -0x1)
|
|
2376
2358
|
return void 0x0;
|
|
2377
|
-
return
|
|
2359
|
+
return _0x52e0ca[_0x2b88f7 + 0x1];
|
|
2378
2360
|
}
|
|
2379
|
-
function parseChatBridgeArgs(
|
|
2380
|
-
const
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2361
|
+
function parseChatBridgeArgs(_0x43e773) {
|
|
2362
|
+
const _0x115544 = {
|
|
2363
|
+
_0x323993: 0x13a,
|
|
2364
|
+
_0x243424: 0x22e,
|
|
2365
|
+
_0x262521: 0x1cb,
|
|
2366
|
+
_0x3a451f: 0x1c3,
|
|
2367
|
+
_0x40e8a7: 0x2b2,
|
|
2368
|
+
_0x3a8462: 0x282,
|
|
2369
|
+
_0x4c6981: 0x17f,
|
|
2370
|
+
_0x343e09: 0x1ab,
|
|
2371
|
+
_0x546230: 0x18c
|
|
2372
|
+
}, _0xf384d3 = _0x10d6b5, _0x5a4d87 = readFlag(_0x43e773, _0xf384d3(_0x115544._0x323993)), _0x6bf70e = readFlag(_0x43e773, _0xf384d3(_0x115544._0x243424)), _0x280732 = readFlag(_0x43e773, _0xf384d3(_0x115544._0x262521)), _0x2a7f10 = readFlag(_0x43e773, '--initial-last-seen-seq'), _0x7e0855 = readFlag(_0x43e773, _0xf384d3(_0x115544._0x3a451f)) ?? _0xf384d3(0x268), _0x3bbb21 = readFlag(_0x43e773, _0xf384d3(0x27c)), _0x4db7d1 = readFlag(_0x43e773, '--session-id'), _0xeeeffd = readFlag(_0x43e773, _0xf384d3(_0x115544._0x40e8a7)), _0x26bfa7 = readFlag(_0x43e773, _0xf384d3(0x1b0)), _0x64b5b7 = readFlag(_0x43e773, _0xf384d3(_0x115544._0x3a8462)), _0x4effe8 = _0x43e773['includes']('--worker-mode'), _0x4a7827 = _0x2a7f10 === void 0x0 ? void 0x0 : Number['parseInt'](_0x2a7f10, 0xa);
|
|
2373
|
+
if (!_0x5a4d87)
|
|
2374
|
+
throw new Error(_0xf384d3(_0x115544._0x4c6981));
|
|
2375
|
+
if (!_0x280732)
|
|
2376
|
+
throw new Error(_0xf384d3(0x242));
|
|
2377
|
+
if (_0x2a7f10 !== void 0x0 && (_0x4a7827 === void 0x0 || !Number[_0xf384d3(_0x115544._0x343e09)](_0x4a7827) || _0x4a7827 < 0x0))
|
|
2378
|
+
throw new Error(_0xf384d3(_0x115544._0x546230));
|
|
2398
2379
|
return {
|
|
2399
|
-
'agentId':
|
|
2400
|
-
'attachmentCacheDir':
|
|
2401
|
-
'daemonApiKey':
|
|
2402
|
-
'daemonLocalUrl':
|
|
2403
|
-
'initialLastSeenSeq':
|
|
2404
|
-
'sessionId':
|
|
2405
|
-
'serverUrl':
|
|
2406
|
-
'workerModeEnabled':
|
|
2407
|
-
'workerSessionId':
|
|
2408
|
-
'workerThreadTarget':
|
|
2409
|
-
'workerMode':
|
|
2380
|
+
'agentId': _0x5a4d87,
|
|
2381
|
+
'attachmentCacheDir': _0x6bf70e,
|
|
2382
|
+
'daemonApiKey': _0x280732,
|
|
2383
|
+
'daemonLocalUrl': _0x3bbb21,
|
|
2384
|
+
'initialLastSeenSeq': _0x4a7827,
|
|
2385
|
+
'sessionId': _0x4db7d1,
|
|
2386
|
+
'serverUrl': _0x7e0855,
|
|
2387
|
+
'workerModeEnabled': _0xeeeffd === void 0x0 ? void 0x0 : _0xeeeffd !== _0xf384d3(0x216),
|
|
2388
|
+
'workerSessionId': _0x26bfa7,
|
|
2389
|
+
'workerThreadTarget': _0x64b5b7,
|
|
2390
|
+
'workerMode': _0x4effe8
|
|
2410
2391
|
};
|
|
2411
2392
|
}
|
|
2412
|
-
async function runChatBridgeCli(
|
|
2413
|
-
const
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2393
|
+
async function runChatBridgeCli(_0x2168f1) {
|
|
2394
|
+
const _0x2c5981 = {
|
|
2395
|
+
_0x2272ae: 0x17b,
|
|
2396
|
+
_0x2da6e0: 0x1cc,
|
|
2397
|
+
_0x4d38bd: 0x27b
|
|
2398
|
+
}, _0x431ae9 = _0x10d6b5, _0x5bd373 = parseChatBridgeArgs(_0x2168f1), {StdioServerTransport: _0x3b0109} = await import(_0x431ae9(0x1ca)), _0x2e425c = createInternalAgentClient(_0x5bd373), _0x244cf6 = createAttachmentCache({ 'cacheDir': _0x5bd373['attachmentCacheDir'] }), _0x53cb14 = await createChatBridgeServer({
|
|
2399
|
+
'agentId': _0x5bd373[_0x431ae9(0x202)],
|
|
2400
|
+
'attachmentCache': _0x244cf6,
|
|
2401
|
+
'client': _0x2e425c,
|
|
2402
|
+
'daemonLocalUrl': _0x5bd373['daemonLocalUrl'],
|
|
2418
2403
|
'uploadPreparer': prepareUploadFile,
|
|
2419
|
-
'workerModeEnabled':
|
|
2420
|
-
'workerMode':
|
|
2421
|
-
'workerThreadTarget':
|
|
2404
|
+
'workerModeEnabled': _0x5bd373['workerModeEnabled'],
|
|
2405
|
+
'workerMode': _0x5bd373[_0x431ae9(_0x2c5981._0x2272ae)],
|
|
2406
|
+
'workerThreadTarget': _0x5bd373['workerThreadTarget']
|
|
2422
2407
|
});
|
|
2423
|
-
await
|
|
2408
|
+
await _0x53cb14[_0x431ae9(_0x2c5981._0x2da6e0)][_0x431ae9(_0x2c5981._0x4d38bd)](new _0x3b0109());
|
|
2424
2409
|
}
|
|
2425
|
-
var executedAsEntry = process[
|
|
2426
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2410
|
+
var executedAsEntry = process[_0x10d6b5(0x1f3)][0x1] ? import.meta.url === pathToFileURL(process[_0x10d6b5(0x1f3)][0x1])[_0x10d6b5(0x27e)] : ![];
|
|
2411
|
+
executedAsEntry && await runChatBridgeCli(process[_0x10d6b5(0x1f3)][_0x10d6b5(0x230)](0x2));
|
|
2427
2412
|
export {
|
|
2428
2413
|
createChatBridgeHandlers,
|
|
2429
2414
|
createChatBridgeServer,
|