@dscord/daemon 0.1.66 → 0.1.68
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 +1996 -2010
- package/dist/index.js +10009 -9852
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,428 +1,433 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
_0x51f605: 0x2b1,
|
|
5
|
-
_0xf6a615: 0x36a,
|
|
6
|
-
_0x40bc81: 0x2b9
|
|
7
|
-
}, _0x16b24d = _0x3fa9, _0x4f0850 = _0x1ad838();
|
|
8
|
-
while (!![]) {
|
|
9
|
-
try {
|
|
10
|
-
const _0x1c2db1 = -parseInt(_0x16b24d(_0x565891._0x51f605)) / 0x1 * (parseInt(_0x16b24d(0x2ed)) / 0x2) + parseInt(_0x16b24d(0x2dd)) / 0x3 * (parseInt(_0x16b24d(0x231)) / 0x4) + -parseInt(_0x16b24d(0x358)) / 0x5 + parseInt(_0x16b24d(_0x565891._0xf6a615)) / 0x6 + -parseInt(_0x16b24d(_0x565891._0x40bc81)) / 0x7 + -parseInt(_0x16b24d(0x258)) / 0x8 * (parseInt(_0x16b24d(0x340)) / 0x9) + parseInt(_0x16b24d(0x278)) / 0xa;
|
|
11
|
-
if (_0x1c2db1 === _0x1088e3)
|
|
12
|
-
break;
|
|
13
|
-
else
|
|
14
|
-
_0x4f0850['push'](_0x4f0850['shift']());
|
|
15
|
-
} catch (_0x2f14af) {
|
|
16
|
-
_0x4f0850['push'](_0x4f0850['shift']());
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}(_0x1813, 0x9a2c2));
|
|
20
|
-
function _0x1813() {
|
|
21
|
-
const _0x1ee142 = [
|
|
22
|
-
'B3b0Aw9UywW',
|
|
23
|
-
'BM93',
|
|
24
|
-
'ywz0zxi',
|
|
25
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
26
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
27
|
-
'kg5VBMuP',
|
|
28
|
-
'zMLSzv9WyxrO',
|
|
29
|
-
'CMvHC29U',
|
|
30
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
31
|
-
'C2L6zuj5DgvZ',
|
|
32
|
-
'mc4WlJa',
|
|
33
|
-
'y3jLyxrLvgfZA3m',
|
|
34
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
35
|
-
'DgfZA19Pza',
|
|
36
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
37
|
-
'BwfPBG',
|
|
38
|
-
'y2HHBM5LBa',
|
|
39
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
40
|
-
'l3vWBg9Hza',
|
|
41
|
-
'BwvZC2fNzxm',
|
|
42
|
-
'BgLZDfnLCNzLCG',
|
|
1
|
+
const _0x4641dd = _0x1a8a;
|
|
2
|
+
function _0x1cf7() {
|
|
3
|
+
const _0x2a3ac2 = [
|
|
43
4
|
'lcbJB250zw50lxr5Cgu9',
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'lsba',
|
|
64
|
-
'DMfSDwu',
|
|
65
|
-
'AxnbyNnVBhv0zq',
|
|
66
|
-
'r0vu',
|
|
67
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
68
|
-
'y3jLyxrLzef0',
|
|
69
|
-
'zgLZCg9ZAxrPB24',
|
|
70
|
-
'Cgf5Bg9HzePZB24',
|
|
71
|
-
'ywjVCNrLza',
|
|
72
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
73
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
74
|
-
'CgfYC2vjBNq',
|
|
75
|
-
'ywDLBNrZ',
|
|
76
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
77
|
-
'Bwv0yq',
|
|
78
|
-
'ndqYnJKZnxnbBxLnDW',
|
|
79
|
-
'CMvZDwX0CW',
|
|
5
|
+
'BwfPBG',
|
|
6
|
+
'mZqYm1HuBwzcsG',
|
|
7
|
+
'BwvTyMvY',
|
|
8
|
+
'Dgv4Da',
|
|
9
|
+
'Aw1Hz2uVANbLzW',
|
|
10
|
+
'zxzLBNrtzxe',
|
|
11
|
+
'BMv4Den1CNnVCG',
|
|
12
|
+
'CgfYDgLJAxbHBNrjza',
|
|
13
|
+
'BgLZDfrHC2TZ',
|
|
14
|
+
'zMLSzv9WyxrO',
|
|
15
|
+
'BgvUz3rO',
|
|
16
|
+
'DgHYzwfKtNvTyMvY',
|
|
17
|
+
'CgfYDgLJAxbHBNq',
|
|
18
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
19
|
+
'mtfhqvrUBvi',
|
|
20
|
+
'Bg93',
|
|
21
|
+
'C2XPy2u',
|
|
22
|
+
'y2HPBgrYzw5eB25L',
|
|
23
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
80
24
|
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'DxrMoa',
|
|
84
|
-
'ls1Zzxj2zxiTDxjS',
|
|
85
|
-
'C2vYDMvYvxjS',
|
|
86
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
25
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
26
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
87
27
|
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
88
|
-
'kgXLz2fJEsK',
|
|
89
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
90
|
-
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
91
|
-
'yxjNDG',
|
|
92
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
93
|
-
'DxbSB2fKrMLSzq',
|
|
94
|
-
'uefuq0G',
|
|
95
|
-
'C3vIDgfZA051BwjLCG',
|
|
96
|
-
'ntCZnJK5me5mBxPOCG',
|
|
97
|
-
'ihr5Cgu9ywDLBNq',
|
|
98
|
-
'ignSywLTzwq',
|
|
99
|
-
'D2fPDgLUz19PBNb1Da',
|
|
100
|
-
'BwvZC2fNzuLK',
|
|
101
|
-
'yxjYyxLcDwzMzxi',
|
|
102
|
-
'C3rVCe1HAw4',
|
|
103
|
-
'DgL0Bgu',
|
|
104
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
105
|
-
'vgfZAZOG',
|
|
106
|
-
'vgfZAYa',
|
|
107
|
-
'Bg93',
|
|
108
|
-
'ywDLBNrjza',
|
|
109
|
-
'y2XHAw1uyxnRCW',
|
|
110
|
-
'zw51Bq',
|
|
111
|
-
'zMv0y2HjBxbS',
|
|
112
|
-
'ywDNCMvNyxrLswq',
|
|
113
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
114
|
-
'AgfZtw9Yzq',
|
|
115
|
-
'l3rHC2TZ',
|
|
116
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
117
|
-
'CMvZCg9UC2u',
|
|
118
|
-
'CxvLDwvK',
|
|
119
|
-
'DxbSB2fKx2zPBgu',
|
|
120
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
121
28
|
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
29
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
30
|
+
'EM9K',
|
|
31
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
32
|
+
'Dg9tDhjPBMC',
|
|
33
|
+
'DhLWzq',
|
|
34
|
+
'l3nLCNzLCG',
|
|
35
|
+
'ywz0zxi',
|
|
36
|
+
'B3b0Aw9UywW',
|
|
122
37
|
'yM9KEvrLEhq',
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'D29YA2vYCW',
|
|
126
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
127
|
-
'v29YA2vYici',
|
|
128
|
-
'l2nVBNrLBNq',
|
|
129
|
-
'zg93BMXVywrbDhrHy2HTzw50',
|
|
130
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
131
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
132
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
133
|
-
'pgvTChr5pG',
|
|
134
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
135
|
-
'BgLZDf90yxnRCW',
|
|
136
|
-
'igrVBMuP',
|
|
137
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
138
|
-
'BwvZC2fNzv9Pzhm',
|
|
139
|
-
'iJOGC3rHDhvZpq',
|
|
140
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
141
|
-
'C3rHDhvZ',
|
|
142
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
38
|
+
'DgfZA051BwjLCG',
|
|
39
|
+
'igzHAwXLzdOG',
|
|
143
40
|
'D29YA2vY',
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
41
|
+
'CMvZDwX0CW',
|
|
42
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
43
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
44
|
+
'y29UDgvUDa',
|
|
45
|
+
'kgXLz2fJEsK',
|
|
46
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
47
|
+
'lcbWCMv2Awv3pq',
|
|
48
|
+
'y2HLy2TnzxnZywDLCW',
|
|
49
|
+
'BgLZDf90yxnRCW',
|
|
50
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
51
|
+
'C2L6zq',
|
|
52
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
53
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
156
54
|
'yxr0ywnOBwvUDhm',
|
|
157
|
-
'
|
|
55
|
+
'C2vYDMvY',
|
|
56
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
57
|
+
'Dgv4Dc9JC3y',
|
|
58
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
59
|
+
'DgHYzwfKvgfYz2v0',
|
|
60
|
+
'Bgf0zxn0u2vX',
|
|
61
|
+
'AxnjBNrLz2vY',
|
|
158
62
|
'Bwf0y2Hoyw1Ltg93zxi',
|
|
159
|
-
'ue9tva',
|
|
160
|
-
'BgLTAxq',
|
|
161
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
162
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
163
|
-
'CNvUswq',
|
|
164
|
-
'igLUia',
|
|
165
|
-
'y2HLy2TnzxnZywDLCW',
|
|
166
63
|
'AxnbCNjHEq',
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
189
|
-
'ChvIBgLJ',
|
|
190
|
-
'DgfZA051BwjLCG',
|
|
191
|
-
'ls1ZzxnZAw9UlwLK',
|
|
64
|
+
'C2vUzf9TzxnZywDL',
|
|
65
|
+
'y2XHAw1FDgfZA3m',
|
|
66
|
+
'D29YA19RzxK',
|
|
67
|
+
'mxnICwvICq',
|
|
68
|
+
'mtm5mtmWnePvEvvmqq',
|
|
69
|
+
'C3vIDgfZA051BwjLCG',
|
|
70
|
+
'ig1ZzZ0',
|
|
71
|
+
'zgvZy3jPChrPB24',
|
|
72
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
73
|
+
'mtbZzeXQuuK',
|
|
74
|
+
'D29YA2vYCW',
|
|
75
|
+
'lMrZy29Yza',
|
|
76
|
+
'y2HHBM5LBa',
|
|
77
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
78
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
79
|
+
'v29YA2vYici',
|
|
80
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
81
|
+
'DxbSB2fKx2zPBgu',
|
|
82
|
+
'Axnoyu4',
|
|
83
|
+
'xsba',
|
|
84
|
+
'l3n0yxj0',
|
|
192
85
|
'Dg9mB3DLCKnHC2u',
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'C2vYDMvY',
|
|
197
|
-
'AhjLzG',
|
|
198
|
-
'BwfW',
|
|
199
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
200
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
201
|
-
'lIbnzxnZywDLieLeoIa',
|
|
202
|
-
'iIbUB3qGzM91BMq',
|
|
203
|
-
'ChvZAa',
|
|
204
|
-
'CMvJB3jK',
|
|
205
|
-
'lMjPBG',
|
|
206
|
-
'DgfZAW',
|
|
207
|
-
'ywjVCNq',
|
|
208
|
-
'Agv4',
|
|
209
|
-
'ktSGz290ignOyw5UzwW9',
|
|
86
|
+
'ls1Hz2vUDc1Pza',
|
|
87
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
88
|
+
'AgvHzgvYCW',
|
|
210
89
|
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
230
|
-
'zxzLBNrtzxe',
|
|
231
|
-
'Aw5KzxHpzG',
|
|
232
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
233
|
-
'BwvZC2fNzq',
|
|
90
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
91
|
+
'z2v0rNvSBfLLyxi',
|
|
92
|
+
'CMvZCg9UC2u',
|
|
93
|
+
'C3rHCNrLza',
|
|
94
|
+
'z2v0tw9UDgG',
|
|
95
|
+
'BwvTyMvYCW',
|
|
96
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
97
|
+
'ihn0yxr1CZ0',
|
|
98
|
+
'CgfYA193B3jRzxi',
|
|
99
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
100
|
+
'ihrPBwu9',
|
|
101
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
102
|
+
'l3nLBMq',
|
|
103
|
+
'BgLZDf9Zzxj2zxi',
|
|
104
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
105
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
106
|
+
'zgLNzxn0',
|
|
107
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
234
108
|
'AgfZ',
|
|
235
|
-
'
|
|
109
|
+
'DgL0Bgu',
|
|
236
110
|
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
237
|
-
'
|
|
111
|
+
'zMv0y2HjBxbS',
|
|
112
|
+
'yMfZzty0',
|
|
113
|
+
'mtG3nZy3ovPSAuTHuW',
|
|
114
|
+
'D29YA2vYsgfUzg9MzG',
|
|
115
|
+
'y3vYC29Y',
|
|
116
|
+
'pgvTChr5pG',
|
|
117
|
+
'z2v0twLUDxrLCW',
|
|
118
|
+
'D2fPDgLUz19PBNb1Da',
|
|
119
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
238
120
|
'DgHYzwfK',
|
|
239
|
-
'lMrZy29Yza',
|
|
240
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
241
|
-
'Aw1Hz2uVANbLzW',
|
|
242
|
-
'CgfYC2u',
|
|
243
|
-
'C3rYAw5NAwz5',
|
|
244
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
245
121
|
'tM8GDgfZA3mGzM91BMqU',
|
|
246
|
-
'
|
|
247
|
-
'
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
'
|
|
122
|
+
'Agv4',
|
|
123
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
124
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
125
|
+
'BwvZC2fNzuLK',
|
|
126
|
+
'yxjYyxLcDwzMzxi',
|
|
251
127
|
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
260
|
-
'BNvTyMvY',
|
|
261
|
-
'z2v0',
|
|
262
|
-
'igTPBMq9',
|
|
128
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
129
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
130
|
+
'l3rHC2TZpW',
|
|
131
|
+
'CMvHC29U',
|
|
132
|
+
'zg0T',
|
|
133
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
134
|
+
'iYmJiefNzw50CW',
|
|
263
135
|
'A2LUza',
|
|
264
|
-
'
|
|
265
|
-
'
|
|
136
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
137
|
+
'mtK3otq4mu1TBe9Zta',
|
|
138
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
139
|
+
'C2L6zuj5DgvZ',
|
|
140
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
141
|
+
'C3rYAw5NAwz5',
|
|
142
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
143
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
144
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
145
|
+
'ihr5Cgu9ywDLBNq',
|
|
146
|
+
'BwfW',
|
|
147
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
148
|
+
'zMfSC2u',
|
|
149
|
+
'zMLUza',
|
|
150
|
+
'ChvZAa',
|
|
151
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
152
|
+
'zMLSzw5HBwu',
|
|
153
|
+
'BwvZC2fNzv9Pzhm',
|
|
154
|
+
'nZe1mZyYALnrCvfz',
|
|
155
|
+
'vgfZAYa',
|
|
266
156
|
'C2vX',
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
157
|
+
'DgfZA3m',
|
|
158
|
+
'lsaJ',
|
|
159
|
+
'Dg9KBW',
|
|
160
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
161
|
+
'nZi0DKn0v1LS',
|
|
162
|
+
'C2vUzgvYvhLWzq',
|
|
163
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
164
|
+
'sfruuca',
|
|
165
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
166
|
+
'ywjVCNq',
|
|
167
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
168
|
+
'w3nLCt0',
|
|
169
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
170
|
+
'C3rYAw5N',
|
|
171
|
+
'C3bSAxq',
|
|
172
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
173
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
174
|
+
'DgfZAY0',
|
|
175
|
+
'yxr0ywnOBwvUDeLK',
|
|
176
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
177
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
178
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
179
|
+
'C2vUzgvYtMfTzq',
|
|
180
|
+
'mtG1ntiYC2Hiwgzj',
|
|
181
|
+
'DgfZA19Pza',
|
|
182
|
+
'Dw5JBgfPBv90yxnR',
|
|
183
|
+
'AgLNAa',
|
|
184
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
185
|
+
'y2HHBM5LBe5HBwu',
|
|
186
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
187
|
+
'C2v0',
|
|
188
|
+
'l2zPBMLZAa',
|
|
189
|
+
'CxvLDwvK',
|
|
190
|
+
'AgfZtw9Yzq',
|
|
191
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
192
|
+
'l2nVBNrLBNq',
|
|
193
|
+
'zxjYB3i',
|
|
194
|
+
'yxv0BZO',
|
|
195
|
+
'y2XHAw0GzMfPBgvK',
|
|
196
|
+
'C2vUze1LC3nHz2u',
|
|
197
|
+
'BwvZC2fNzq',
|
|
198
|
+
'ywDLBNrjza',
|
|
199
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
200
|
+
'y3jLyxrLx3rHC2TZ',
|
|
201
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
202
|
+
'DMLLD19MAwXL',
|
|
203
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
204
|
+
'yxjNDG',
|
|
205
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
206
|
+
'DgvZDa',
|
|
207
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
208
|
+
'iYmJieH1BwfUCW',
|
|
209
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
210
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
211
|
+
'BNvTyMvY',
|
|
212
|
+
'C3rHCNrZv2L0Aa',
|
|
213
|
+
'Ahr0Chm6',
|
|
214
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
215
|
+
'ywjVCNrLza',
|
|
216
|
+
'Bwv0yq',
|
|
217
|
+
'CMvHzeHPC3rVCNK',
|
|
218
|
+
'iYmGu2vYDMvYoIa',
|
|
219
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
220
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
221
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
222
|
+
'AxnbyNnVBhv0zq',
|
|
223
|
+
'l3jLy2vPDMu/',
|
|
224
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
225
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
226
|
+
'C29Tzq',
|
|
227
|
+
'y3jLyxrLzef0',
|
|
228
|
+
'C3rHDhvZ',
|
|
229
|
+
'ignSywLTzwq',
|
|
230
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
231
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
271
232
|
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
233
|
+
'BMfTzq',
|
|
234
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
235
|
+
'vgfZAZOG',
|
|
236
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
237
|
+
'DhjPBq',
|
|
238
|
+
'zgvSzxrL',
|
|
239
|
+
'DgfYz2v0',
|
|
240
|
+
'zM9Yy2vszwzYzxnO',
|
|
276
241
|
'y2XPzw50',
|
|
277
|
-
'
|
|
242
|
+
'DgfZAW',
|
|
243
|
+
'y2fJAgveAxi',
|
|
244
|
+
'mtbSwvvTA04',
|
|
245
|
+
'zgf0yq',
|
|
246
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
247
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
248
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
249
|
+
'y2HHBM5LBhm',
|
|
250
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
251
|
+
'C3rVCe1HAw4',
|
|
252
|
+
'ChjVDg9JB2W',
|
|
253
|
+
'CNvUswq',
|
|
254
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
255
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
256
|
+
'C2HHmJu2',
|
|
257
|
+
'iokaLca',
|
|
278
258
|
'yMvMB3jL',
|
|
279
|
-
'
|
|
280
|
-
'
|
|
259
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
260
|
+
'Cgf5Bg9HzePZB24',
|
|
261
|
+
'DgHYzwfKu2HVCNrjza',
|
|
262
|
+
'z2v0sg91CNm',
|
|
281
263
|
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'
|
|
264
|
+
'y2HHBM5LBeLK',
|
|
265
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
266
|
+
'zg9Uzq',
|
|
267
|
+
'Aw1Hz2uVCg5N',
|
|
268
|
+
'Bwf4',
|
|
269
|
+
'Ahr0CdO',
|
|
270
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
271
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
272
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
273
|
+
'ls1Zzxj2zxiTDxjS',
|
|
288
274
|
'y2HHDa',
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
275
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
276
|
+
'zw51Bq',
|
|
277
|
+
'ChvIBgLJ',
|
|
278
|
+
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
279
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
280
|
+
'CMvXDwvZDfvYBa',
|
|
281
|
+
'ig1LC3nHz2vZkqOk',
|
|
282
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
283
|
+
'6k+35Rgcia',
|
|
284
|
+
'ANnVBG',
|
|
285
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
286
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
287
|
+
'B2jQzwn0',
|
|
288
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
289
|
+
'BwvZC2fNzxm',
|
|
290
|
+
'CM9VDe1LC3nHz2vjza',
|
|
291
|
+
'ue9tva',
|
|
292
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
293
|
+
'iJOGC3rHDhvZpq',
|
|
294
|
+
'DxrMoa',
|
|
295
|
+
'igLUia',
|
|
296
|
+
'AhvTyw4',
|
|
297
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
298
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
299
|
+
'CMvHzf9OAxn0B3j5',
|
|
300
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
301
|
+
'zgLZCg9ZAxrPB24',
|
|
302
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
303
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
304
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
305
|
+
'CgfYC2vjBNq',
|
|
306
|
+
'w3rHCMDLDd0',
|
|
292
307
|
'y29UDgvUDejHC2u2na',
|
|
293
|
-
'
|
|
294
|
-
'
|
|
295
|
-
'C2LNBMfS',
|
|
296
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
308
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
309
|
+
'zw50CMLLCW',
|
|
297
310
|
'AM9PBG',
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'
|
|
309
|
-
'ntG3nduXBvjztfHu',
|
|
310
|
-
'C2vUzf9TzxnZywDL',
|
|
311
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
312
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
313
|
+
'Dw5RBM93BG',
|
|
314
|
+
'zgfLBw9UqxbPs2v5',
|
|
315
|
+
'ywDLBNq',
|
|
316
|
+
'Aw5FCMv2Awv3',
|
|
317
|
+
'yM9KEu1HCMTKB3DU',
|
|
318
|
+
'mJu1mtm5mMnbD2jcyq',
|
|
319
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
320
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
321
|
+
'Aw5FChjVz3jLC3m',
|
|
311
322
|
'C3vJy2vZCW',
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
323
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
324
|
+
'ig1LC3nHz2u9',
|
|
325
|
+
'C2LNBMfS',
|
|
326
|
+
'DMfSDwu',
|
|
327
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
328
|
+
'y2XHAw1uyxnRCW',
|
|
329
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
330
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
331
|
+
'r0vu',
|
|
332
|
+
'C2vYDMvYtMfTzq',
|
|
333
|
+
'ywDNCMvNyxrLswq',
|
|
334
|
+
'ywz0zxjtzxe',
|
|
335
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
336
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
337
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
338
|
+
'kg5VBMuP',
|
|
325
339
|
'yMfZzw5HBwu',
|
|
340
|
+
'BgLTAxq',
|
|
341
|
+
'icHPzdO',
|
|
342
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
343
|
+
'Dgv4Dc9WBgfPBG',
|
|
344
|
+
'zg06',
|
|
345
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
346
|
+
'CNvUBMLUzW',
|
|
347
|
+
'AhvTyw5Z',
|
|
348
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
349
|
+
'l3jLy2vPDMu',
|
|
350
|
+
'AxngAw5PDgu',
|
|
351
|
+
'DMLZAwjPBgL0Eq',
|
|
352
|
+
'ls1ZzxnZAw9UlwLK',
|
|
353
|
+
'C2nOzwr1BgvKrM9Y',
|
|
354
|
+
'cGOTls0G',
|
|
355
|
+
'DgfZA0LK',
|
|
356
|
+
'khvUA25VD24P',
|
|
357
|
+
'v29YA2vYia',
|
|
358
|
+
'Dw5JBgfPBvrHC2S',
|
|
359
|
+
'ktSGz290ignOyw5UzwW9',
|
|
360
|
+
'CgfYC2u',
|
|
361
|
+
'DMfSDwvZ',
|
|
362
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
363
|
+
'DgfYz2v0zwruyxnR',
|
|
364
|
+
'zMLSDgvY',
|
|
365
|
+
'ywrK',
|
|
366
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
326
367
|
'z2v0vgLTzq',
|
|
327
|
-
'
|
|
368
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
328
369
|
'CgfKu3rHCNq',
|
|
329
|
-
'
|
|
330
|
-
'C29YDa',
|
|
331
|
-
'zMLUza',
|
|
332
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
333
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
334
|
-
'ihn0yxr1CZ0',
|
|
335
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
336
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
337
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
338
|
-
'zg9Uzq',
|
|
339
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
340
|
-
'C3rYAw5N',
|
|
341
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
342
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
343
|
-
'iYmJienOyw5UzwXZ',
|
|
344
|
-
'y2HPBgrYzw5eB25L',
|
|
345
|
-
'CNvUBMLUzW',
|
|
346
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
347
|
-
'l2HPC3rVCNK/',
|
|
348
|
-
'igzHAwXLzdOG',
|
|
349
|
-
'C2vUzgvYvhLWzq',
|
|
350
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
351
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
352
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
353
|
-
'm1DkqKXIvW',
|
|
354
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
355
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
356
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
357
|
-
'ywXS',
|
|
358
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
359
|
-
'xsba',
|
|
360
|
-
'D29YA2vYsgfUzg9MzG',
|
|
370
|
+
'ywDLBNrZ',
|
|
361
371
|
'DgHYzwfKswq',
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
371
|
-
'DhjPBq',
|
|
372
|
-
'khvUA25VD24P',
|
|
373
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
374
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
375
|
-
'y2f0y2G',
|
|
376
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
377
|
-
'y29UDgvUDc10ExbL',
|
|
378
|
-
'Dgv4Da',
|
|
379
|
-
'D29YA19RzxK',
|
|
380
|
-
'DMLZAwjPBgL0Eq',
|
|
381
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
372
|
+
'y29UDgvUDfr5Cgu',
|
|
373
|
+
'lIbnzxnZywDLieLeoIa',
|
|
374
|
+
'zxHWAxjLC0f0',
|
|
375
|
+
'Bg9JywXLq29TCgfYzq',
|
|
376
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
377
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
378
|
+
'mc4WlJa',
|
|
379
|
+
'yxjYyxK',
|
|
380
|
+
'AxngAwXL',
|
|
382
381
|
'Dg9ju09tDhjPBMC',
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'zgvZDhjVEwvK',
|
|
389
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
390
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
391
|
-
'DgHYzwfKtNvTyMvY',
|
|
392
|
-
'ChjVDg9JB2W',
|
|
393
|
-
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
394
|
-
'Aw5FChjVz3jLC3m',
|
|
395
|
-
'yxv0BZO',
|
|
396
|
-
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
397
|
-
'zMLSzw5HBwu',
|
|
398
|
-
'z2v0rgf0zq',
|
|
399
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
400
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
401
|
-
'CMvWBgfJzq',
|
|
402
|
-
'zxjYB3i',
|
|
403
|
-
'yxnPzgu',
|
|
404
|
-
'zgfLBw9UqxbPs2v5',
|
|
405
|
-
'ls1Hz2vUDc1Pza',
|
|
382
|
+
'D29YA2vYtw9Kzq',
|
|
383
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
384
|
+
'ywDNCMvNyxrLswrZ',
|
|
385
|
+
'DxbKyxrL',
|
|
386
|
+
'Dg9VBa',
|
|
406
387
|
'C2vZC2LVBKLK',
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'
|
|
413
|
-
'
|
|
414
|
-
'
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'
|
|
418
|
-
'
|
|
419
|
-
'
|
|
388
|
+
'Aw5JBhvKzxm',
|
|
389
|
+
'z2v0',
|
|
390
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
391
|
+
'lsba',
|
|
392
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
393
|
+
'zgvZDhjVEwvK',
|
|
394
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
395
|
+
'Bwf0y2Hoyw1L',
|
|
396
|
+
'y2f0y2G',
|
|
397
|
+
'igTPBMq9',
|
|
398
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
399
|
+
'C2f2zq',
|
|
400
|
+
'l2HPC3rVCNK/',
|
|
401
|
+
'CMvJB3jK',
|
|
402
|
+
'AwrSzq'
|
|
420
403
|
];
|
|
421
|
-
|
|
422
|
-
return
|
|
404
|
+
_0x1cf7 = function () {
|
|
405
|
+
return _0x2a3ac2;
|
|
423
406
|
};
|
|
424
|
-
return
|
|
407
|
+
return _0x1cf7();
|
|
425
408
|
}
|
|
409
|
+
(function (_0x519fbc, _0x420bb0) {
|
|
410
|
+
const _0x29f430 = {
|
|
411
|
+
_0x2a80b1: 0x257,
|
|
412
|
+
_0x572056: 0x139,
|
|
413
|
+
_0x341f83: 0x21a,
|
|
414
|
+
_0x5d23b6: 0x126,
|
|
415
|
+
_0x2769e0: 0x11f,
|
|
416
|
+
_0x437ff7: 0xf6,
|
|
417
|
+
_0x5c21f0: 0x1c3
|
|
418
|
+
}, _0x3a79ae = _0x1a8a, _0x156c76 = _0x519fbc();
|
|
419
|
+
while (!![]) {
|
|
420
|
+
try {
|
|
421
|
+
const _0x32b4c0 = -parseInt(_0x3a79ae(_0x29f430._0x2a80b1)) / 0x1 * (parseInt(_0x3a79ae(_0x29f430._0x572056)) / 0x2) + -parseInt(_0x3a79ae(_0x29f430._0x341f83)) / 0x3 * (-parseInt(_0x3a79ae(_0x29f430._0x5d23b6)) / 0x4) + -parseInt(_0x3a79ae(0xce)) / 0x5 * (parseInt(_0x3a79ae(_0x29f430._0x2769e0)) / 0x6) + -parseInt(_0x3a79ae(0x10e)) / 0x7 + parseInt(_0x3a79ae(0x258)) / 0x8 + parseInt(_0x3a79ae(_0x29f430._0x437ff7)) / 0x9 * (parseInt(_0x3a79ae(0x179)) / 0xa) + parseInt(_0x3a79ae(0x227)) / 0xb * (parseInt(_0x3a79ae(_0x29f430._0x5c21f0)) / 0xc);
|
|
422
|
+
if (_0x32b4c0 === _0x420bb0)
|
|
423
|
+
break;
|
|
424
|
+
else
|
|
425
|
+
_0x156c76['push'](_0x156c76['shift']());
|
|
426
|
+
} catch (_0x45f5e8) {
|
|
427
|
+
_0x156c76['push'](_0x156c76['shift']());
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}(_0x1cf7, 0x2dd23));
|
|
426
431
|
import { pathToFileURL } from 'node:url';
|
|
427
432
|
import {
|
|
428
433
|
mkdir,
|
|
@@ -432,106 +437,83 @@ import {
|
|
|
432
437
|
writeFile
|
|
433
438
|
} from 'node:fs/promises';
|
|
434
439
|
import { homedir } from 'node:os';
|
|
435
|
-
import
|
|
440
|
+
import _0x971985 from 'node:path';
|
|
436
441
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
437
|
-
'.csv':
|
|
442
|
+
'.csv': _0x4641dd(0x24d),
|
|
438
443
|
'.gif': 'image/gif',
|
|
439
|
-
'.jpeg':
|
|
440
|
-
'.jpg':
|
|
441
|
-
'.json':
|
|
442
|
-
'.md':
|
|
443
|
-
'.pdf':
|
|
444
|
-
'.png':
|
|
445
|
-
'.svg':
|
|
446
|
-
'.txt':
|
|
444
|
+
'.jpeg': _0x4641dd(0x21d),
|
|
445
|
+
'.jpg': _0x4641dd(0x21d),
|
|
446
|
+
'.json': _0x4641dd(0x105),
|
|
447
|
+
'.md': _0x4641dd(0x171),
|
|
448
|
+
'.pdf': _0x4641dd(0x1bc),
|
|
449
|
+
'.png': _0x4641dd(0x190),
|
|
450
|
+
'.svg': 'image/svg+xml',
|
|
451
|
+
'.txt': _0x4641dd(0x1dc),
|
|
447
452
|
'.webp': 'image/webp',
|
|
448
|
-
'.xml':
|
|
449
|
-
'.zip':
|
|
453
|
+
'.xml': _0x4641dd(0x1b5),
|
|
454
|
+
'.zip': _0x4641dd(0x249)
|
|
450
455
|
};
|
|
451
|
-
function guessContentType(
|
|
452
|
-
const
|
|
453
|
-
|
|
454
|
-
_0x255666: 0x23c,
|
|
455
|
-
_0x1ce033: 0x20a
|
|
456
|
-
}, _0x5be909 = _0x57701d;
|
|
457
|
-
return MIME_BY_EXTENSION[_0xd2d670[_0x5be909(_0x3b9b7b._0x1da1b4)](_0x1fb8ba)[_0x5be909(_0x3b9b7b._0x255666)]()] ?? _0x5be909(_0x3b9b7b._0x1ce033);
|
|
456
|
+
function guessContentType(_0x2b2eaf) {
|
|
457
|
+
const _0x26098c = _0x4641dd;
|
|
458
|
+
return MIME_BY_EXTENSION[_0x971985['extname'](_0x2b2eaf)[_0x26098c(0xda)]()] ?? 'application/octet-stream';
|
|
458
459
|
}
|
|
459
|
-
function safeFilename(
|
|
460
|
-
|
|
461
|
-
return _0x3a2a06[_0x2ef101(0x30d)](/[\\/]/g, '-');
|
|
460
|
+
function safeFilename(_0x4cdca3) {
|
|
461
|
+
return _0x4cdca3['replace'](/[\\/]/g, '-');
|
|
462
462
|
}
|
|
463
|
-
function extensionFor(
|
|
464
|
-
const
|
|
465
|
-
return
|
|
463
|
+
function extensionFor(_0x2caade) {
|
|
464
|
+
const _0x3d5230 = _0x4641dd, _0x990a49 = Object[_0x3d5230(0x1ba)](MIME_BY_EXTENSION)[_0x3d5230(0x11a)](([, _0x407403]) => _0x407403 === _0x2caade);
|
|
465
|
+
return _0x990a49?.[0x0] ?? '.bin';
|
|
466
466
|
}
|
|
467
|
-
async function prepareUploadFile(
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
if (!
|
|
476
|
-
throw new Error(
|
|
477
|
-
const
|
|
478
|
-
if (!
|
|
479
|
-
throw new Error('File\x20not\x20found:\x20' +
|
|
480
|
-
const
|
|
481
|
-
if (
|
|
482
|
-
throw new Error(
|
|
483
|
-
const
|
|
467
|
+
async function prepareUploadFile(_0x511cac, _0x7c0701 = {}) {
|
|
468
|
+
const _0x1511f4 = {
|
|
469
|
+
_0x5414b8: 0x211,
|
|
470
|
+
_0x4e8a5a: 0x18c,
|
|
471
|
+
_0x25af05: 0x18e,
|
|
472
|
+
_0x44092b: 0x1d8,
|
|
473
|
+
_0x4606b0: 0xf5
|
|
474
|
+
}, _0x2f7f77 = _0x4641dd;
|
|
475
|
+
if (!_0x971985[_0x2f7f77(0x163)](_0x511cac))
|
|
476
|
+
throw new Error(_0x2f7f77(0x1b3));
|
|
477
|
+
const _0x3bb808 = await stat(_0x511cac)[_0x2f7f77(_0x1511f4._0x5414b8)](() => null);
|
|
478
|
+
if (!_0x3bb808 || !_0x3bb808[_0x2f7f77(0x201)]())
|
|
479
|
+
throw new Error('File\x20not\x20found:\x20' + _0x511cac);
|
|
480
|
+
const _0x1fb384 = _0x7c0701[_0x2f7f77(_0x1511f4._0x4e8a5a)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
481
|
+
if (_0x3bb808[_0x2f7f77(0x247)] > _0x1fb384)
|
|
482
|
+
throw new Error(_0x2f7f77(_0x1511f4._0x25af05) + _0x3bb808[_0x2f7f77(0x247)]);
|
|
483
|
+
const _0x452a88 = await readFile(_0x511cac), _0x3a7adb = _0x971985[_0x2f7f77(_0x1511f4._0x44092b)](_0x511cac);
|
|
484
484
|
return {
|
|
485
|
-
'contentBase64':
|
|
486
|
-
'contentType': guessContentType(
|
|
487
|
-
'filename':
|
|
488
|
-
'sizeBytes':
|
|
485
|
+
'contentBase64': _0x452a88[_0x2f7f77(0x234)](_0x2f7f77(_0x1511f4._0x4606b0)),
|
|
486
|
+
'contentType': guessContentType(_0x3a7adb),
|
|
487
|
+
'filename': _0x3a7adb,
|
|
488
|
+
'sizeBytes': _0x3bb808[_0x2f7f77(0x247)]
|
|
489
489
|
};
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
}
|
|
505
|
-
return decodeURIComponent(_0x1fb8ba);
|
|
506
|
-
};
|
|
507
|
-
_0x3fa9['qkILHI'] = _0x7fbb71, _0x3fa9['nDIgmD'] = {}, _0x3fa9['izvCKK'] = !![];
|
|
508
|
-
}
|
|
509
|
-
const _0xe80ec3 = _0x1813ee[0x0], _0x3c1b56 = _0x449dc3 + _0xe80ec3, _0x27db13 = _0x3fa9['nDIgmD'][_0x3c1b56];
|
|
510
|
-
return !_0x27db13 ? (_0x3fa984 = _0x3fa9['qkILHI'](_0x3fa984), _0x3fa9['nDIgmD'][_0x3c1b56] = _0x3fa984) : _0x3fa984 = _0x27db13, _0x3fa984;
|
|
511
|
-
}
|
|
512
|
-
function createAttachmentCache(_0x17b408 = {}) {
|
|
513
|
-
const _0x381395 = {
|
|
514
|
-
_0x5ae5d4: 0x224,
|
|
515
|
-
_0x25177e: 0x218
|
|
516
|
-
}, _0x3457bd = {
|
|
517
|
-
_0x44899f: 0x315,
|
|
518
|
-
_0x413fed: 0x297,
|
|
519
|
-
_0xdc407f: 0x2a5,
|
|
520
|
-
_0x45298f: 0x214
|
|
521
|
-
}, _0x4887e8 = { _0x1902a6: 0x2c7 }, _0x14a494 = _0x57701d, _0x465a57 = _0x17b408[_0x14a494(_0x381395._0x5ae5d4)] ?? _0xd2d670['join'](homedir(), _0x14a494(0x26b), _0x14a494(_0x381395._0x25177e));
|
|
491
|
+
function createAttachmentCache(_0x4084e2 = {}) {
|
|
492
|
+
const _0x41c349 = {
|
|
493
|
+
_0x2c955b: 0x178,
|
|
494
|
+
_0x2ba8d1: 0xd0
|
|
495
|
+
}, _0x5949f8 = {
|
|
496
|
+
_0x29486d: 0x1de,
|
|
497
|
+
_0x21a085: 0x172,
|
|
498
|
+
_0x225b5d: 0x1f9,
|
|
499
|
+
_0x5da646: 0x1bb
|
|
500
|
+
}, _0x416389 = {
|
|
501
|
+
_0x4153c1: 0x11a,
|
|
502
|
+
_0x203182: 0x1bb
|
|
503
|
+
}, _0x3aa568 = _0x4641dd, _0x4f7a00 = _0x4084e2[_0x3aa568(_0x41c349._0x2c955b)] ?? _0x971985[_0x3aa568(0x1bb)](homedir(), _0x3aa568(_0x41c349._0x2ba8d1), _0x3aa568(0x24a));
|
|
522
504
|
return {
|
|
523
|
-
'cacheDir':
|
|
524
|
-
async 'findCachedPath'(
|
|
525
|
-
const
|
|
526
|
-
await mkdir(
|
|
527
|
-
const
|
|
528
|
-
return
|
|
505
|
+
'cacheDir': _0x4f7a00,
|
|
506
|
+
async 'findCachedPath'(_0x2e8246) {
|
|
507
|
+
const _0x554991 = _0x3aa568;
|
|
508
|
+
await mkdir(_0x4f7a00, { 'recursive': !![] });
|
|
509
|
+
const _0x335533 = await readdir(_0x4f7a00), _0xa000cc = _0x335533[_0x554991(_0x416389._0x4153c1)](_0x14ae51 => _0x14ae51[_0x554991(0x159)](_0x2e8246 + '-') || _0x14ae51[_0x554991(0x159)](_0x2e8246));
|
|
510
|
+
return _0xa000cc ? _0x971985[_0x554991(_0x416389._0x203182)](_0x4f7a00, _0xa000cc) : null;
|
|
529
511
|
},
|
|
530
|
-
async 'save'(
|
|
531
|
-
const
|
|
532
|
-
await mkdir(
|
|
533
|
-
const
|
|
534
|
-
return await writeFile(
|
|
512
|
+
async 'save'(_0x408c99) {
|
|
513
|
+
const _0x138617 = _0x3aa568;
|
|
514
|
+
await mkdir(_0x4f7a00, { 'recursive': !![] });
|
|
515
|
+
const _0x2d9df9 = _0x408c99[_0x138617(_0x5949f8._0x29486d)]?.[_0x138617(_0x5949f8._0x21a085)]() ? safeFilename(_0x408c99[_0x138617(0x1de)]) : '' + _0x408c99['attachmentId'] + extensionFor(_0x408c99[_0x138617(_0x5949f8._0x225b5d)]), _0x2c35e7 = _0x971985[_0x138617(_0x5949f8._0x5da646)](_0x4f7a00, _0x408c99[_0x138617(0x134)] + '-' + _0x2d9df9);
|
|
516
|
+
return await writeFile(_0x2c35e7, _0x408c99['data']), _0x2c35e7;
|
|
535
517
|
}
|
|
536
518
|
};
|
|
537
519
|
}
|
|
@@ -539,1902 +521,1906 @@ import {
|
|
|
539
521
|
createHash,
|
|
540
522
|
randomUUID
|
|
541
523
|
} from 'node:crypto';
|
|
542
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
543
|
-
function ensureSegment(
|
|
544
|
-
const
|
|
545
|
-
|
|
524
|
+
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
525
|
+
function ensureSegment(_0xe3fdfc) {
|
|
526
|
+
const _0x183afb = {
|
|
527
|
+
_0x4abd74: 0x172,
|
|
528
|
+
_0x30ae64: 0x209
|
|
529
|
+
}, _0x239fa2 = _0x4641dd, _0x2c375a = _0xe3fdfc[_0x239fa2(_0x183afb._0x4abd74)]();
|
|
530
|
+
if (!_0x2c375a || _0x2c375a[_0x239fa2(_0x183afb._0x30ae64)](':'))
|
|
546
531
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
547
|
-
return
|
|
532
|
+
return _0x2c375a;
|
|
548
533
|
}
|
|
549
|
-
function parseThreadParts(
|
|
550
|
-
const
|
|
551
|
-
|
|
534
|
+
function parseThreadParts(_0x3e9a56) {
|
|
535
|
+
const _0x28efd0 = {
|
|
536
|
+
_0x304b73: 0x130,
|
|
537
|
+
_0xd52d72: 0x223
|
|
538
|
+
}, _0x2b9300 = _0x4641dd, _0x234960 = _0x3e9a56[_0x2b9300(_0x28efd0._0x304b73)](':');
|
|
539
|
+
if (_0x234960[_0x2b9300(_0x28efd0._0xd52d72)] < 0x1 || _0x234960['length'] > 0x2)
|
|
552
540
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
553
541
|
return {
|
|
554
|
-
'channelName': ensureSegment(
|
|
555
|
-
'threadShortId':
|
|
542
|
+
'channelName': ensureSegment(_0x234960[0x0] ?? ''),
|
|
543
|
+
'threadShortId': _0x234960[0x1] ? ensureSegment(_0x234960[0x1]) : null
|
|
556
544
|
};
|
|
557
545
|
}
|
|
558
|
-
function parseTarget(
|
|
559
|
-
const
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
if (!_0x22e616)
|
|
546
|
+
function parseTarget(_0x25ff1a) {
|
|
547
|
+
const _0x12301e = {
|
|
548
|
+
_0x2b3a05: 0x159,
|
|
549
|
+
_0x40238c: 0x18a,
|
|
550
|
+
_0xefe6e2: 0x13e,
|
|
551
|
+
_0x369cc5: 0x109,
|
|
552
|
+
_0x8eac97: 0x1dd,
|
|
553
|
+
_0x352c14: 0xd1,
|
|
554
|
+
_0x378f1d: 0xfd
|
|
555
|
+
}, _0x56fcd2 = _0x4641dd, _0x1b53df = _0x25ff1a[_0x56fcd2(0x172)]();
|
|
556
|
+
if (!_0x1b53df)
|
|
570
557
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
571
|
-
if (
|
|
572
|
-
const
|
|
573
|
-
if (!
|
|
558
|
+
if (_0x1b53df[_0x56fcd2(_0x12301e._0x2b3a05)]('#')) {
|
|
559
|
+
const _0x40f6c1 = parseThreadParts(_0x1b53df['slice'](0x1)), _0x31a219 = '#' + _0x40f6c1[_0x56fcd2(0x13e)];
|
|
560
|
+
if (!_0x40f6c1[_0x56fcd2(_0x12301e._0x40238c)])
|
|
574
561
|
return {
|
|
575
|
-
'channelName':
|
|
576
|
-
'channelTarget':
|
|
577
|
-
'kind':
|
|
578
|
-
'target':
|
|
562
|
+
'channelName': _0x40f6c1[_0x56fcd2(_0x12301e._0xefe6e2)],
|
|
563
|
+
'channelTarget': _0x31a219,
|
|
564
|
+
'kind': _0x56fcd2(0xd1),
|
|
565
|
+
'target': _0x31a219
|
|
579
566
|
};
|
|
580
567
|
return {
|
|
581
|
-
'channelName':
|
|
582
|
-
'channelTarget':
|
|
583
|
-
'kind':
|
|
584
|
-
'target':
|
|
585
|
-
'threadShortId':
|
|
568
|
+
'channelName': _0x40f6c1[_0x56fcd2(_0x12301e._0xefe6e2)],
|
|
569
|
+
'channelTarget': _0x31a219,
|
|
570
|
+
'kind': _0x56fcd2(0xfd),
|
|
571
|
+
'target': _0x31a219 + ':' + _0x40f6c1[_0x56fcd2(0x18a)],
|
|
572
|
+
'threadShortId': _0x40f6c1['threadShortId']
|
|
586
573
|
};
|
|
587
574
|
}
|
|
588
|
-
if (
|
|
589
|
-
const
|
|
590
|
-
if (!
|
|
575
|
+
if (_0x1b53df['startsWith'](_0x56fcd2(0x1dd))) {
|
|
576
|
+
const _0x489458 = parseThreadParts(_0x1b53df[_0x56fcd2(0x229)](0x3));
|
|
577
|
+
if (!_0x489458[_0x56fcd2(0x13e)]['startsWith'](_0x56fcd2(_0x12301e._0x369cc5)))
|
|
591
578
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
592
|
-
const
|
|
593
|
-
if (!
|
|
579
|
+
const _0x34ccc1 = _0x56fcd2(_0x12301e._0x8eac97) + _0x489458['channelName'];
|
|
580
|
+
if (!_0x489458[_0x56fcd2(_0x12301e._0x40238c)])
|
|
594
581
|
return {
|
|
595
|
-
'channelName':
|
|
596
|
-
'channelTarget':
|
|
597
|
-
'kind':
|
|
598
|
-
'target':
|
|
582
|
+
'channelName': _0x489458['channelName'],
|
|
583
|
+
'channelTarget': _0x34ccc1,
|
|
584
|
+
'kind': _0x56fcd2(_0x12301e._0x352c14),
|
|
585
|
+
'target': _0x34ccc1
|
|
599
586
|
};
|
|
600
587
|
return {
|
|
601
|
-
'channelName':
|
|
602
|
-
'channelTarget':
|
|
603
|
-
'kind':
|
|
604
|
-
'target':
|
|
605
|
-
'threadShortId':
|
|
588
|
+
'channelName': _0x489458[_0x56fcd2(0x13e)],
|
|
589
|
+
'channelTarget': _0x34ccc1,
|
|
590
|
+
'kind': _0x56fcd2(_0x12301e._0x378f1d),
|
|
591
|
+
'target': _0x34ccc1 + ':' + _0x489458['threadShortId'],
|
|
592
|
+
'threadShortId': _0x489458[_0x56fcd2(0x18a)]
|
|
606
593
|
};
|
|
607
594
|
}
|
|
608
595
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
609
596
|
}
|
|
610
|
-
function asErrorMessage(
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
},
|
|
615
|
-
if (typeof
|
|
616
|
-
return
|
|
617
|
-
return
|
|
597
|
+
function asErrorMessage(_0xf65d3c, _0x2b21e8) {
|
|
598
|
+
const _0x17e40c = {
|
|
599
|
+
_0x20a8c8: 0x12f,
|
|
600
|
+
_0x42f2af: 0x172
|
|
601
|
+
}, _0x1ac37d = _0x4641dd;
|
|
602
|
+
if (typeof _0xf65d3c === _0x1ac37d(_0x17e40c._0x20a8c8) && _0xf65d3c[_0x1ac37d(_0x17e40c._0x42f2af)]())
|
|
603
|
+
return _0xf65d3c;
|
|
604
|
+
return _0x2b21e8;
|
|
618
605
|
}
|
|
619
|
-
function asRecord(
|
|
620
|
-
const
|
|
621
|
-
return typeof
|
|
606
|
+
function asRecord(_0x3042d8) {
|
|
607
|
+
const _0x21f08d = { _0x5a3dde: 0x1a4 }, _0x3c6865 = _0x4641dd;
|
|
608
|
+
return typeof _0x3042d8 === _0x3c6865(_0x21f08d._0x5a3dde) && _0x3042d8 !== null ? _0x3042d8 : {};
|
|
622
609
|
}
|
|
623
|
-
function stableStringify(
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
610
|
+
function stableStringify(_0x5cb91d) {
|
|
611
|
+
const _0xe0e299 = {
|
|
612
|
+
_0x27128a: 0x1a4,
|
|
613
|
+
_0x2560da: 0x253,
|
|
614
|
+
_0x3f406e: 0x117,
|
|
615
|
+
_0x4f9a56: 0x1bb,
|
|
616
|
+
_0x529a77: 0x1f1
|
|
617
|
+
}, _0x395d5a = _0x4641dd;
|
|
618
|
+
if (_0x5cb91d === null || typeof _0x5cb91d !== _0x395d5a(_0xe0e299._0x27128a))
|
|
619
|
+
return JSON[_0x395d5a(0x112)](_0x5cb91d);
|
|
620
|
+
if (Array[_0x395d5a(_0xe0e299._0x2560da)](_0x5cb91d))
|
|
621
|
+
return '[' + _0x5cb91d[_0x395d5a(_0xe0e299._0x3f406e)](_0x5e7a8c => stableStringify(_0x5e7a8c))[_0x395d5a(_0xe0e299._0x4f9a56)](',') + ']';
|
|
622
|
+
const _0x1168f9 = Object[_0x395d5a(0x1ba)](_0x5cb91d)[_0x395d5a(_0xe0e299._0x529a77)](([, _0x9c1f20]) => _0x9c1f20 !== void 0x0)['sort'](([_0x1faaee], [_0xc2b0fc]) => _0x1faaee[_0x395d5a(0x1fc)](_0xc2b0fc))['map'](([_0x31569d, _0x564bef]) => JSON['stringify'](_0x31569d) + ':' + stableStringify(_0x564bef));
|
|
623
|
+
return '{' + _0x1168f9[_0x395d5a(0x1bb)](',') + '}';
|
|
631
624
|
}
|
|
632
|
-
function createHeaders(
|
|
633
|
-
const
|
|
625
|
+
function createHeaders(_0x1390c0) {
|
|
626
|
+
const _0x48c682 = _0x4641dd;
|
|
634
627
|
return {
|
|
635
|
-
'Content-Type':
|
|
636
|
-
'x-daemon-api-key':
|
|
628
|
+
'Content-Type': _0x48c682(0x105),
|
|
629
|
+
'x-daemon-api-key': _0x1390c0
|
|
637
630
|
};
|
|
638
631
|
}
|
|
639
|
-
function toHttpBaseUrl(
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
if (_0xce48f5[_0x1ad9f8(0x304)] === 'ws:')
|
|
648
|
-
_0xce48f5[_0x1ad9f8(_0x184ebe._0x41cffc)] = _0x1ad9f8(_0x184ebe._0x3ba59f);
|
|
632
|
+
function toHttpBaseUrl(_0x1f05f4) {
|
|
633
|
+
const _0x13f5b3 = {
|
|
634
|
+
_0x25b1fc: 0x181,
|
|
635
|
+
_0x436d18: 0x15a,
|
|
636
|
+
_0x520532: 0x234
|
|
637
|
+
}, _0x3055e6 = _0x4641dd, _0x17ebf4 = new URL(_0x1f05f4);
|
|
638
|
+
if (_0x17ebf4['protocol'] === 'ws:')
|
|
639
|
+
_0x17ebf4[_0x3055e6(_0x13f5b3._0x25b1fc)] = _0x3055e6(0x192);
|
|
649
640
|
else
|
|
650
|
-
|
|
651
|
-
return
|
|
641
|
+
_0x17ebf4[_0x3055e6(_0x13f5b3._0x25b1fc)] === 'wss:' && (_0x17ebf4[_0x3055e6(0x181)] = _0x3055e6(_0x13f5b3._0x436d18));
|
|
642
|
+
return _0x17ebf4[_0x3055e6(_0x13f5b3._0x520532)]()['replace'](/\/$/, '');
|
|
652
643
|
}
|
|
653
|
-
function isMentionBoundary(
|
|
654
|
-
|
|
644
|
+
function isMentionBoundary(_0xd5165b) {
|
|
645
|
+
const _0x50cede = { _0x547ff0: 0x153 }, _0x51f08c = _0x4641dd;
|
|
646
|
+
return !_0xd5165b || /\s|[([{'",。!?、:;]/[_0x51f08c(_0x50cede._0x547ff0)](_0xd5165b);
|
|
655
647
|
}
|
|
656
|
-
function isMentionTerminal(
|
|
657
|
-
|
|
648
|
+
function isMentionTerminal(_0x40e082) {
|
|
649
|
+
const _0x4582df = { _0x16e652: 0x153 }, _0x2ebe65 = _0x4641dd;
|
|
650
|
+
return !_0x40e082 || /\s|[)\]}'",。!?、:;,.!?]/[_0x2ebe65(_0x4582df._0x16e652)](_0x40e082);
|
|
658
651
|
}
|
|
659
|
-
function buildMatchableEntries(
|
|
660
|
-
const
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
..._0x43de6c[_0x5b2bb1(0x355)],
|
|
668
|
-
..._0x43de6c[_0x5b2bb1(_0x700762._0x5ea5be)]
|
|
652
|
+
function buildMatchableEntries(_0x411a1b) {
|
|
653
|
+
const _0x111554 = {
|
|
654
|
+
_0xad8ea6: 0x11b,
|
|
655
|
+
_0x1c4050: 0x106
|
|
656
|
+
}, _0x2face1 = _0x4641dd, _0x5e3154 = [];
|
|
657
|
+
for (const _0x2c1d81 of [
|
|
658
|
+
..._0x411a1b['agents'],
|
|
659
|
+
..._0x411a1b[_0x2face1(0x1e0)]
|
|
669
660
|
]) {
|
|
670
|
-
|
|
671
|
-
'matchName':
|
|
672
|
-
'matchNameLower':
|
|
673
|
-
'participantId':
|
|
674
|
-
}),
|
|
675
|
-
'matchName':
|
|
676
|
-
'matchNameLower':
|
|
677
|
-
'participantId':
|
|
661
|
+
_0x5e3154[_0x2face1(_0x111554._0xad8ea6)]({
|
|
662
|
+
'matchName': _0x2c1d81['name'],
|
|
663
|
+
'matchNameLower': _0x2c1d81['name'][_0x2face1(_0x111554._0x1c4050)](),
|
|
664
|
+
'participantId': _0x2c1d81['id']
|
|
665
|
+
}), _0x2c1d81['id'] !== _0x2c1d81['name'] && _0x5e3154[_0x2face1(0x11b)]({
|
|
666
|
+
'matchName': _0x2c1d81['id'],
|
|
667
|
+
'matchNameLower': _0x2c1d81['id'][_0x2face1(0x106)](),
|
|
668
|
+
'participantId': _0x2c1d81['id']
|
|
678
669
|
});
|
|
679
670
|
}
|
|
680
|
-
return
|
|
671
|
+
return _0x5e3154;
|
|
681
672
|
}
|
|
682
|
-
function extractMentionedParticipantIds(
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
for (let _0x445481 = 0x0; _0x445481 < _0x341054[_0x19b2a2(_0x29b8be._0x44cff7)]; _0x445481 += 0x1) {
|
|
691
|
-
if (_0x341054[_0x445481] !== '@' || !isMentionBoundary(_0x341054[_0x445481 - 0x1]))
|
|
673
|
+
function extractMentionedParticipantIds(_0x204d2b, _0x2e2506) {
|
|
674
|
+
const _0x50dd6f = {
|
|
675
|
+
_0x5c4442: 0xf1,
|
|
676
|
+
_0x3ff947: 0x1f2,
|
|
677
|
+
_0x235ed2: 0x220
|
|
678
|
+
}, _0x1c0b04 = { _0x41d92f: 0x252 }, _0x5adfbc = _0x4641dd, _0x552860 = buildMatchableEntries(_0x2e2506)['sort']((_0x225479, _0x495e21) => _0x495e21[_0x5adfbc(0x210)][_0x5adfbc(0x223)] - _0x225479['matchName'][_0x5adfbc(0x223)]), _0x23657e = [], _0x251465 = new Set();
|
|
679
|
+
for (let _0x152be0 = 0x0; _0x152be0 < _0x204d2b[_0x5adfbc(0x223)]; _0x152be0 += 0x1) {
|
|
680
|
+
if (_0x204d2b[_0x152be0] !== '@' || !isMentionBoundary(_0x204d2b[_0x152be0 - 0x1]))
|
|
692
681
|
continue;
|
|
693
|
-
const
|
|
694
|
-
const
|
|
695
|
-
if (!
|
|
682
|
+
const _0x5e3e06 = _0x204d2b[_0x5adfbc(0x229)](_0x152be0 + 0x1), _0x1f91fa = _0x5e3e06[_0x5adfbc(0x106)](), _0x4a362e = _0x552860[_0x5adfbc(0x11a)](_0x273772 => {
|
|
683
|
+
const _0x5a89af = _0x5adfbc;
|
|
684
|
+
if (!_0x1f91fa[_0x5a89af(0x159)](_0x273772[_0x5a89af(_0x1c0b04._0x41d92f)]))
|
|
696
685
|
return ![];
|
|
697
|
-
return isMentionTerminal(
|
|
686
|
+
return isMentionTerminal(_0x5e3e06[_0x273772[_0x5a89af(0x210)][_0x5a89af(0x223)]]);
|
|
698
687
|
});
|
|
699
|
-
if (!
|
|
688
|
+
if (!_0x4a362e || _0x251465[_0x5adfbc(_0x50dd6f._0x5c4442)](_0x4a362e[_0x5adfbc(0x220)]))
|
|
700
689
|
continue;
|
|
701
|
-
|
|
690
|
+
_0x251465[_0x5adfbc(_0x50dd6f._0x3ff947)](_0x4a362e[_0x5adfbc(0x220)]), _0x23657e[_0x5adfbc(0x11b)](_0x4a362e[_0x5adfbc(_0x50dd6f._0x235ed2)]), _0x152be0 += _0x4a362e['matchName']['length'];
|
|
702
691
|
}
|
|
703
|
-
return
|
|
692
|
+
return _0x23657e;
|
|
704
693
|
}
|
|
705
694
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
706
|
-
function anySignal(...
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
},
|
|
711
|
-
for (const
|
|
712
|
-
if (
|
|
713
|
-
return
|
|
714
|
-
|
|
695
|
+
function anySignal(..._0x5f38b9) {
|
|
696
|
+
const _0x594759 = {
|
|
697
|
+
_0x52dbd8: 0x15c,
|
|
698
|
+
_0x204117: 0x1ca
|
|
699
|
+
}, _0x587a17 = _0x4641dd, _0x378377 = new AbortController();
|
|
700
|
+
for (const _0x2c7b5b of _0x5f38b9) {
|
|
701
|
+
if (_0x2c7b5b[_0x587a17(_0x594759._0x52dbd8)])
|
|
702
|
+
return _0x378377[_0x587a17(0x12b)](_0x2c7b5b[_0x587a17(0x108)]), _0x378377[_0x587a17(0x1ca)];
|
|
703
|
+
_0x2c7b5b[_0x587a17(0x111)](_0x587a17(0x12b), () => _0x378377[_0x587a17(0x12b)](_0x2c7b5b[_0x587a17(0x108)]), {
|
|
715
704
|
'once': !![],
|
|
716
|
-
'signal':
|
|
705
|
+
'signal': _0x378377['signal']
|
|
717
706
|
});
|
|
718
707
|
}
|
|
719
|
-
return
|
|
708
|
+
return _0x378377[_0x587a17(_0x594759._0x204117)];
|
|
720
709
|
}
|
|
721
|
-
function createInternalAgentClient(
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
},
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
},
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
},
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}, _0x4f5102 = {
|
|
883
|
-
_0x22c6c1: 0x2a3,
|
|
884
|
-
_0x4a8f36: 0x2b3,
|
|
885
|
-
_0x514ee8: 0x269
|
|
886
|
-
}, _0x38e6fd = {
|
|
887
|
-
_0x16284a: 0x2b4,
|
|
888
|
-
_0x3ae669: 0x2a6,
|
|
889
|
-
_0x23cf89: 0x339,
|
|
890
|
-
_0x4575a9: 0x34a
|
|
891
|
-
}, _0x17d53e = {
|
|
892
|
-
_0x1e44b1: 0x36f,
|
|
893
|
-
_0x6048b3: 0x26e
|
|
894
|
-
}, _0x39320e = {
|
|
895
|
-
_0x587b11: 0x281,
|
|
896
|
-
_0x2ac33e: 0x1f6,
|
|
897
|
-
_0x5fe272: 0x30d,
|
|
898
|
-
_0xa79754: 0x1f1,
|
|
899
|
-
_0x39965c: 0x209
|
|
900
|
-
}, _0x3a00cc = _0x57701d, _0x33e399 = _0xdbe9e3[_0x3a00cc(_0x41fc82._0x3e65de)] ?? fetch, _0x378895 = _0xdbe9e3[_0x3a00cc(_0x41fc82._0x4b77a4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3a54c8 = typeof _0xdbe9e3[_0x3a00cc(_0x41fc82._0x43581d)] === _0x3a00cc(0x280) && _0xdbe9e3[_0x3a00cc(_0x41fc82._0x46ab4a)] > 0x0 ? _0xdbe9e3[_0x3a00cc(0x328)] : 0x0, _0x159828 = _0xdbe9e3[_0x3a00cc(0x2a9)]?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x165de2 = _0xdbe9e3[_0x3a00cc(0x312)]?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x4d2db7 = _0xdbe9e3['workerModeEnabled'] === !![], _0x363e5b = _0xdbe9e3['workerSessionId']?.[_0x3a00cc(_0x41fc82._0x566a70)]() || void 0x0, _0x19b515 = _0xdbe9e3['workerThreadTarget']?.[_0x3a00cc(0x2ef)]() || void 0x0, _0x27838b = createHeaders(_0xdbe9e3[_0x3a00cc(_0x41fc82._0x559167)]), _0x4f2902 = toHttpBaseUrl(_0xdbe9e3[_0x3a00cc(_0x41fc82._0x949ce4)]);
|
|
901
|
-
let _0x3bfeeb = null;
|
|
902
|
-
const _0x2d6742 = new Map();
|
|
903
|
-
let _0x43f31a = _0x3a54c8, _0xcf657 = _0x3a54c8;
|
|
904
|
-
function _0x155003(_0x99324a) {
|
|
905
|
-
const _0x4ee453 = _0x3a00cc, _0x481056 = _0x99324a['response'][_0x4ee453(0x20f)][_0x4ee453(_0x39320e._0x587b11)](_0x4ee453(0x2f5)) ?? 'unknown', _0x2b14b5 = _0x99324a[_0x4ee453(_0x39320e._0x2ac33e)][_0x4ee453(0x2ef)]()[_0x4ee453(_0x39320e._0x5fe272)](/\s+/g, '\x20')[_0x4ee453(0x29d)](0x0, 0x78) || _0x4ee453(0x201);
|
|
906
|
-
return '请求\x20' + _0x99324a['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x99324a[_0x4ee453(_0x39320e._0xa79754)][_0x4ee453(_0x39320e._0x39965c)] + _0x4ee453(0x335) + _0x481056 + ',\x20preview=' + _0x2b14b5 + _0x4ee453(0x2ea);
|
|
710
|
+
function createInternalAgentClient(_0x13ac93) {
|
|
711
|
+
const _0x50d02d = {
|
|
712
|
+
_0x32be8e: 0xf4,
|
|
713
|
+
_0x45819b: 0x16b,
|
|
714
|
+
_0x462437: 0x158,
|
|
715
|
+
_0x12f24d: 0x183,
|
|
716
|
+
_0x171789: 0x208,
|
|
717
|
+
_0x20f980: 0x172,
|
|
718
|
+
_0x5d21fc: 0x150
|
|
719
|
+
}, _0x4a0efe = {
|
|
720
|
+
_0x54112b: 0x1d3,
|
|
721
|
+
_0x2ca9c4: 0x17b,
|
|
722
|
+
_0x290fb7: 0x1d0,
|
|
723
|
+
_0x335fcc: 0xf8,
|
|
724
|
+
_0x5f4532: 0x1f1,
|
|
725
|
+
_0x1e4887: 0x223,
|
|
726
|
+
_0x44c09a: 0x121,
|
|
727
|
+
_0x360771: 0x223,
|
|
728
|
+
_0x5ce3d6: 0x117,
|
|
729
|
+
_0x6a77cb: 0x167,
|
|
730
|
+
_0xb2099e: 0x18d,
|
|
731
|
+
_0x19aa83: 0x224,
|
|
732
|
+
_0x3e744: 0x20a,
|
|
733
|
+
_0x4484c8: 0x1d2,
|
|
734
|
+
_0x2aa618: 0x140,
|
|
735
|
+
_0x2390f3: 0x1ee,
|
|
736
|
+
_0x2967ac: 0x10c,
|
|
737
|
+
_0x5e7526: 0x1a6,
|
|
738
|
+
_0x43878a: 0x1b9,
|
|
739
|
+
_0x481f5b: 0x20a,
|
|
740
|
+
_0x5b175f: 0x11b,
|
|
741
|
+
_0x17f82f: 0x240,
|
|
742
|
+
_0x2c76a5: 0x1c2,
|
|
743
|
+
_0x37ec0f: 0x12f,
|
|
744
|
+
_0x44e027: 0x197,
|
|
745
|
+
_0xcaad51: 0x202
|
|
746
|
+
}, _0x7fdf9a = {
|
|
747
|
+
_0x209ade: 0x189,
|
|
748
|
+
_0x4de7d2: 0x18d,
|
|
749
|
+
_0x4c6b8a: 0x12f,
|
|
750
|
+
_0x54ce4b: 0x18d
|
|
751
|
+
}, _0xf17569 = {
|
|
752
|
+
_0xdfea80: 0xd1,
|
|
753
|
+
_0x1a34c3: 0x237,
|
|
754
|
+
_0xfe75ff: 0x1d9
|
|
755
|
+
}, _0x5b4a05 = {
|
|
756
|
+
_0x5bcdfe: 0x14b,
|
|
757
|
+
_0x49f515: 0x164
|
|
758
|
+
}, _0x5cf40b = {
|
|
759
|
+
_0x281d5a: 0x129,
|
|
760
|
+
_0x5ec9df: 0x17a,
|
|
761
|
+
_0x3772d8: 0x103,
|
|
762
|
+
_0x206b5d: 0x17a
|
|
763
|
+
}, _0x3aef55 = {
|
|
764
|
+
_0x22fdc4: 0x1f8,
|
|
765
|
+
_0xa3220e: 0x112,
|
|
766
|
+
_0x1cc9d3: 0x1a8,
|
|
767
|
+
_0x70aaec: 0x1de
|
|
768
|
+
}, _0x523e06 = {
|
|
769
|
+
_0x51c887: 0x12e,
|
|
770
|
+
_0xa377b0: 0x195,
|
|
771
|
+
_0x414758: 0x1a8
|
|
772
|
+
}, _0x1f6795 = {
|
|
773
|
+
_0x27b5d1: 0x17b,
|
|
774
|
+
_0x318acd: 0x14b,
|
|
775
|
+
_0x9a28e4: 0x112,
|
|
776
|
+
_0x3e79eb: 0x13b
|
|
777
|
+
}, _0x35c70f = {
|
|
778
|
+
_0x1c839d: 0x112,
|
|
779
|
+
_0x43bb5e: 0x255,
|
|
780
|
+
_0x308330: 0x1a8
|
|
781
|
+
}, _0x4dca2d = {
|
|
782
|
+
_0x1ada24: 0xd1,
|
|
783
|
+
_0x52dce8: 0x169,
|
|
784
|
+
_0x1b8b8c: 0x17b,
|
|
785
|
+
_0x22e421: 0x14b,
|
|
786
|
+
_0x48cad7: 0x234
|
|
787
|
+
}, _0x218fa1 = { _0x1ff8c4: 0x146 }, _0x21de49 = {
|
|
788
|
+
_0x3d63d0: 0x1c4,
|
|
789
|
+
_0x8c9700: 0x112
|
|
790
|
+
}, _0x76466a = { _0x587540: 0x1e6 }, _0x1d6d1c = { _0xfe2646: 0x24c }, _0x463e60 = {
|
|
791
|
+
_0x191387: 0x209,
|
|
792
|
+
_0x413829: 0x240,
|
|
793
|
+
_0x88b74c: 0x1a9,
|
|
794
|
+
_0x4e4a04: 0x1f8,
|
|
795
|
+
_0x31cae1: 0x1e4,
|
|
796
|
+
_0x30b9ff: 0x1a8
|
|
797
|
+
}, _0x6c9e54 = {
|
|
798
|
+
_0x1bd6d8: 0x1d9,
|
|
799
|
+
_0x4971ff: 0x1f8,
|
|
800
|
+
_0x22114c: 0x18d,
|
|
801
|
+
_0x1f72aa: 0x140,
|
|
802
|
+
_0x4fbca7: 0x237,
|
|
803
|
+
_0x928f80: 0x17b,
|
|
804
|
+
_0x2b5c8f: 0x14b,
|
|
805
|
+
_0x208170: 0x215,
|
|
806
|
+
_0x4e33b3: 0x1d0,
|
|
807
|
+
_0xc9130b: 0x117,
|
|
808
|
+
_0x31cb4f: 0x13d,
|
|
809
|
+
_0x273c37: 0x15d
|
|
810
|
+
}, _0x3ba952 = { _0x52c246: 0x16e }, _0x409a12 = {
|
|
811
|
+
_0x340696: 0x21b,
|
|
812
|
+
_0x1ee935: 0x220
|
|
813
|
+
}, _0x180047 = {
|
|
814
|
+
_0x16e04f: 0xfd,
|
|
815
|
+
_0x466aaa: 0x1a7,
|
|
816
|
+
_0x32e485: 0x12f,
|
|
817
|
+
_0x4f6841: 0x159,
|
|
818
|
+
_0x43c5cf: 0x12f,
|
|
819
|
+
_0x13cd35: 0x18a
|
|
820
|
+
}, _0x30522a = {
|
|
821
|
+
_0x5b74a9: 0xfd,
|
|
822
|
+
_0x4515c8: 0x13d,
|
|
823
|
+
_0x4a6f07: 0x224,
|
|
824
|
+
_0x109492: 0x1a7,
|
|
825
|
+
_0x15a6e: 0x1a7,
|
|
826
|
+
_0x151b5b: 0x1f8
|
|
827
|
+
}, _0x40fcc2 = {
|
|
828
|
+
_0x3292ff: 0x13d,
|
|
829
|
+
_0x4d5c76: 0x1a7
|
|
830
|
+
}, _0x10c534 = { _0x4bb7c1: 0x16e }, _0x5e1df5 = {
|
|
831
|
+
_0x1579a6: 0x175,
|
|
832
|
+
_0x459ae2: 0x211
|
|
833
|
+
}, _0x4a85ff = {
|
|
834
|
+
_0x11e4dd: 0x174,
|
|
835
|
+
_0x273234: 0x17a,
|
|
836
|
+
_0x317458: 0x17a,
|
|
837
|
+
_0x32c7e3: 0x224
|
|
838
|
+
}, _0xc3c86f = { _0x40df36: 0x132 }, _0x1e6a3c = {
|
|
839
|
+
_0x25c763: 0x1ca,
|
|
840
|
+
_0x276b5c: 0x1ca,
|
|
841
|
+
_0x23be50: 0x146,
|
|
842
|
+
_0xda69f1: 0x129,
|
|
843
|
+
_0x28e219: 0x169
|
|
844
|
+
}, _0x301d2f = {
|
|
845
|
+
_0x3e2a1b: 0x1ca,
|
|
846
|
+
_0x3fb3fe: 0x1ca,
|
|
847
|
+
_0x263be8: 0x1c7,
|
|
848
|
+
_0x27b6af: 0x129
|
|
849
|
+
}, _0x681946 = {
|
|
850
|
+
_0x477709: 0x12f,
|
|
851
|
+
_0x244f07: 0x172,
|
|
852
|
+
_0x46742d: 0x1fb,
|
|
853
|
+
_0x265ef6: 0x173,
|
|
854
|
+
_0x4c4b45: 0x147,
|
|
855
|
+
_0x596cc0: 0x140
|
|
856
|
+
}, _0x4a8fac = { _0x47ca91: 0x234 }, _0x3033b1 = {
|
|
857
|
+
_0x468023: 0xdd,
|
|
858
|
+
_0x447328: 0x172,
|
|
859
|
+
_0x28d641: 0x229,
|
|
860
|
+
_0x284d86: 0x1a0,
|
|
861
|
+
_0x5de2dc: 0x125,
|
|
862
|
+
_0x53e0fe: 0x218,
|
|
863
|
+
_0x6d30e5: 0x101
|
|
864
|
+
}, _0x2c4d39 = _0x4641dd, _0x12a84a = _0x13ac93[_0x2c4d39(_0x50d02d._0x32be8e)] ?? fetch, _0x58b749 = _0x13ac93[_0x2c4d39(_0x50d02d._0x45819b)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x238911 = typeof _0x13ac93['initialLastSeenSeq'] === _0x2c4d39(_0x50d02d._0x462437) && _0x13ac93[_0x2c4d39(0x156)] > 0x0 ? _0x13ac93[_0x2c4d39(0x156)] : 0x0, _0x3b6a33 = _0x13ac93[_0x2c4d39(_0x50d02d._0x12f24d)]?.[_0x2c4d39(0x172)]() || void 0x0, _0x42f4bd = _0x13ac93[_0x2c4d39(_0x50d02d._0x171789)]?.['trim']() || void 0x0, _0x3852b9 = _0x13ac93[_0x2c4d39(0x165)] === !![], _0x456447 = _0x13ac93[_0x2c4d39(0xcd)]?.[_0x2c4d39(_0x50d02d._0x20f980)]() || void 0x0, _0x5d832d = _0x13ac93[_0x2c4d39(_0x50d02d._0x5d21fc)]?.[_0x2c4d39(0x172)]() || void 0x0, _0x50361a = createHeaders(_0x13ac93[_0x2c4d39(0x1bf)]), _0x1ae38a = toHttpBaseUrl(_0x13ac93['serverUrl']);
|
|
865
|
+
let _0x15cc0b = null;
|
|
866
|
+
const _0x522b23 = new Map();
|
|
867
|
+
let _0x201464 = _0x238911, _0x47230b = _0x238911;
|
|
868
|
+
function _0x5e3fe5(_0x4a2d3a) {
|
|
869
|
+
const _0x349075 = _0x2c4d39, _0x158ad1 = _0x4a2d3a['response'][_0x349075(_0x3033b1._0x468023)][_0x349075(0x20a)]('content-type') ?? 'unknown', _0x304e61 = _0x4a2d3a[_0x349075(0x239)][_0x349075(_0x3033b1._0x447328)]()['replace'](/\s+/g, '\x20')[_0x349075(_0x3033b1._0x28d641)](0x0, 0x78) || _0x349075(0xf9);
|
|
870
|
+
return _0x349075(_0x3033b1._0x284d86) + _0x4a2d3a[_0x349075(0x19d)] + _0x349075(_0x3033b1._0x5de2dc) + _0x4a2d3a[_0x349075(0xe1)][_0x349075(0x169)] + _0x349075(_0x3033b1._0x53e0fe) + _0x158ad1 + _0x349075(0x243) + _0x304e61 + _0x349075(_0x3033b1._0x6d30e5);
|
|
907
871
|
}
|
|
908
|
-
async function
|
|
909
|
-
const
|
|
910
|
-
if (!
|
|
872
|
+
async function _0x5d18a5(_0x4e73c8, _0xa7fe11) {
|
|
873
|
+
const _0x44b037 = _0x2c4d39, _0x270510 = Buffer['from'](await _0xa7fe11[_0x44b037(0x103)]())[_0x44b037(_0x4a8fac._0x47ca91)](_0x44b037(0x1ab));
|
|
874
|
+
if (!_0x270510[_0x44b037(0x172)]())
|
|
911
875
|
return {};
|
|
912
876
|
try {
|
|
913
|
-
return JSON[
|
|
877
|
+
return JSON[_0x44b037(0x1ed)](_0x270510);
|
|
914
878
|
} catch {
|
|
915
|
-
throw new Error(
|
|
916
|
-
'bodyText':
|
|
917
|
-
'requestUrl':
|
|
918
|
-
'response':
|
|
879
|
+
throw new Error(_0x5e3fe5({
|
|
880
|
+
'bodyText': _0x270510,
|
|
881
|
+
'requestUrl': _0x4e73c8,
|
|
882
|
+
'response': _0xa7fe11
|
|
919
883
|
}));
|
|
920
884
|
}
|
|
921
885
|
}
|
|
922
|
-
function
|
|
923
|
-
const
|
|
924
|
-
if (
|
|
925
|
-
return
|
|
926
|
-
const
|
|
927
|
-
for (const [
|
|
928
|
-
|
|
886
|
+
function _0x5e896d(_0x1d5bf4, _0x141e24) {
|
|
887
|
+
const _0xc4e81b = _0x2c4d39, _0x81cbc1 = typeof _0x141e24[_0xc4e81b(0x184)] === _0xc4e81b(_0x681946._0x477709) ? _0x141e24['idempotency_key'][_0xc4e81b(_0x681946._0x244f07)]() : '';
|
|
888
|
+
if (_0x81cbc1)
|
|
889
|
+
return _0x81cbc1;
|
|
890
|
+
const _0x1af8d8 = Date['now']();
|
|
891
|
+
for (const [_0x8be846, _0x2c90ea] of _0x522b23) {
|
|
892
|
+
_0x2c90ea[_0xc4e81b(_0x681946._0x46742d)] <= _0x1af8d8 && _0x522b23[_0xc4e81b(_0x681946._0x265ef6)](_0x8be846);
|
|
929
893
|
}
|
|
930
|
-
const
|
|
931
|
-
...
|
|
894
|
+
const _0x59c52f = {
|
|
895
|
+
..._0x141e24,
|
|
932
896
|
'idempotency_key': void 0x0
|
|
933
|
-
},
|
|
934
|
-
if (
|
|
935
|
-
return
|
|
936
|
-
const
|
|
937
|
-
return
|
|
938
|
-
'expiresAt':
|
|
939
|
-
'value':
|
|
940
|
-
}),
|
|
897
|
+
}, _0xb3bd90 = createHash(_0xc4e81b(0x185))[_0xc4e81b(0x206)](_0x1d5bf4 + ':' + stableStringify(_0x59c52f))[_0xc4e81b(0xef)](_0xc4e81b(0xff)), _0x4e74a5 = _0x1d5bf4 + ':' + _0xb3bd90, _0x55799b = _0x522b23['get'](_0x4e74a5);
|
|
898
|
+
if (_0x55799b)
|
|
899
|
+
return _0x55799b[_0xc4e81b(0x1cb)];
|
|
900
|
+
const _0x251e7f = _0xc4e81b(_0x681946._0x4c4b45) + _0x1d5bf4 + ':' + randomUUID();
|
|
901
|
+
return _0x522b23[_0xc4e81b(_0x681946._0x596cc0)](_0x4e74a5, {
|
|
902
|
+
'expiresAt': _0x1af8d8 + 0x5 * 0x3c * 0x3e8,
|
|
903
|
+
'value': _0x251e7f
|
|
904
|
+
}), _0x251e7f;
|
|
941
905
|
}
|
|
942
|
-
async function
|
|
943
|
-
const
|
|
906
|
+
async function _0x5b4487(_0x59bf68, _0x25fcc5) {
|
|
907
|
+
const _0xa877d4 = _0x2c4d39, _0x5c0773 = new AbortController(), _0x33c0ad = setTimeout(() => _0x5c0773[_0xa877d4(0x12b)](), _0x58b749), _0x3e5224 = _0x25fcc5?.[_0xa877d4(_0x301d2f._0x3e2a1b)] ? anySignal(_0x25fcc5[_0xa877d4(0x1ca)], _0x5c0773['signal']) : _0x5c0773[_0xa877d4(_0x301d2f._0x3fb3fe)], _0x4a6e8b = '' + _0x1ae38a + _0x59bf68;
|
|
944
908
|
try {
|
|
945
|
-
const
|
|
946
|
-
...
|
|
947
|
-
'signal':
|
|
948
|
-
}),
|
|
949
|
-
if (!
|
|
950
|
-
throw new Error(asErrorMessage(
|
|
951
|
-
return
|
|
909
|
+
const _0x5890dd = await _0x12a84a(_0x4a6e8b, {
|
|
910
|
+
..._0x25fcc5,
|
|
911
|
+
'signal': _0x3e5224
|
|
912
|
+
}), _0x5989a6 = await _0x5d18a5(_0x4a6e8b, _0x5890dd);
|
|
913
|
+
if (!_0x5890dd['ok'] || _0x5989a6[_0xa877d4(_0x301d2f._0x263be8)] === ![])
|
|
914
|
+
throw new Error(asErrorMessage(_0x5989a6['error'], _0xa877d4(_0x301d2f._0x27b6af) + _0x5890dd[_0xa877d4(0x169)]));
|
|
915
|
+
return _0x5989a6;
|
|
952
916
|
} finally {
|
|
953
|
-
clearTimeout(
|
|
917
|
+
clearTimeout(_0x33c0ad);
|
|
954
918
|
}
|
|
955
919
|
}
|
|
956
|
-
async function
|
|
957
|
-
const
|
|
920
|
+
async function _0x18761c(_0x5b42bc, _0x4bacc2) {
|
|
921
|
+
const _0x42daca = _0x2c4d39, _0x23c091 = new AbortController(), _0x4de3b2 = setTimeout(() => _0x23c091[_0x42daca(0x12b)](), _0x58b749), _0xa49700 = _0x4bacc2?.[_0x42daca(0x1ca)] ? anySignal(_0x4bacc2[_0x42daca(_0x1e6a3c._0x25c763)], _0x23c091[_0x42daca(_0x1e6a3c._0x276b5c)]) : _0x23c091['signal'], _0x4ca3fe = '' + _0x1ae38a + _0x5b42bc;
|
|
958
922
|
try {
|
|
959
|
-
const
|
|
960
|
-
...
|
|
961
|
-
'signal':
|
|
962
|
-
}),
|
|
963
|
-
if (!
|
|
964
|
-
throw new Error(asErrorMessage(
|
|
965
|
-
return
|
|
923
|
+
const _0x123524 = await _0x12a84a(_0x4ca3fe, {
|
|
924
|
+
..._0x4bacc2,
|
|
925
|
+
'signal': _0xa49700
|
|
926
|
+
}), _0x292366 = await _0x5d18a5(_0x4ca3fe, _0x123524);
|
|
927
|
+
if (!_0x123524['ok'])
|
|
928
|
+
throw new Error(asErrorMessage(_0x292366[_0x42daca(_0x1e6a3c._0x23be50)], _0x42daca(_0x1e6a3c._0xda69f1) + _0x123524[_0x42daca(_0x1e6a3c._0x28e219)]));
|
|
929
|
+
return _0x292366;
|
|
966
930
|
} finally {
|
|
967
|
-
clearTimeout(
|
|
931
|
+
clearTimeout(_0x4de3b2);
|
|
968
932
|
}
|
|
969
933
|
}
|
|
970
|
-
async function
|
|
971
|
-
const
|
|
972
|
-
if (!
|
|
934
|
+
async function _0x4fa7f5(_0x594652) {
|
|
935
|
+
const _0x1f19cd = _0x2c4d39;
|
|
936
|
+
if (!_0x42f4bd || _0x594652 <= _0x47230b)
|
|
973
937
|
return;
|
|
974
|
-
await
|
|
975
|
-
'body': JSON['stringify']({ 'lastSeenSeq':
|
|
976
|
-
'headers':
|
|
977
|
-
'method':
|
|
978
|
-
}),
|
|
938
|
+
await _0x5b4487(_0x1f19cd(0x137) + encodeURIComponent(_0x42f4bd) + _0x1f19cd(0x233), {
|
|
939
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x594652 }),
|
|
940
|
+
'headers': _0x50361a,
|
|
941
|
+
'method': 'PATCH'
|
|
942
|
+
}), _0x47230b = _0x594652;
|
|
979
943
|
}
|
|
980
|
-
async function
|
|
981
|
-
const
|
|
982
|
-
if (!
|
|
944
|
+
async function _0x5a345d(_0x30515e) {
|
|
945
|
+
const _0x201f89 = _0x2c4d39;
|
|
946
|
+
if (!_0x3b6a33 || !_0x456447 || _0x30515e <= _0x47230b)
|
|
983
947
|
return;
|
|
984
|
-
const
|
|
985
|
-
'body': JSON[
|
|
986
|
-
'last_seen_seq':
|
|
987
|
-
'worker_session_id':
|
|
948
|
+
const _0x3b103e = await _0x12a84a(_0x3b6a33 + _0x201f89(_0xc3c86f._0x40df36), {
|
|
949
|
+
'body': JSON[_0x201f89(0x112)]({
|
|
950
|
+
'last_seen_seq': _0x30515e,
|
|
951
|
+
'worker_session_id': _0x456447
|
|
988
952
|
}),
|
|
989
|
-
'headers': { 'Content-Type':
|
|
990
|
-
'method':
|
|
953
|
+
'headers': { 'Content-Type': _0x201f89(0x105) },
|
|
954
|
+
'method': _0x201f89(0x1a8)
|
|
991
955
|
});
|
|
992
|
-
if (!
|
|
993
|
-
throw new Error(
|
|
994
|
-
|
|
956
|
+
if (!_0x3b103e['ok'])
|
|
957
|
+
throw new Error(_0x201f89(0x129) + _0x3b103e['status']);
|
|
958
|
+
_0x47230b = _0x30515e;
|
|
995
959
|
}
|
|
996
|
-
async function
|
|
997
|
-
const
|
|
998
|
-
'body': JSON[
|
|
999
|
-
'headers':
|
|
960
|
+
async function _0x94ce25(_0x1b9d60) {
|
|
961
|
+
const _0x579255 = _0x2c4d39, _0x463689 = parseTarget(_0x1b9d60), _0x188499 = await _0x5b4487(_0x579255(0x17b) + _0x13ac93[_0x579255(0x14b)] + '/resolve-channel', {
|
|
962
|
+
'body': JSON['stringify']({ 'target': _0x463689[_0x579255(_0x4a85ff._0x11e4dd)] }),
|
|
963
|
+
'headers': _0x50361a,
|
|
1000
964
|
'method': 'POST'
|
|
1001
965
|
});
|
|
1002
966
|
return {
|
|
1003
|
-
'channelId':
|
|
1004
|
-
'target':
|
|
1005
|
-
'task':
|
|
1006
|
-
'threadId':
|
|
1007
|
-
'threadNumber':
|
|
967
|
+
'channelId': _0x188499[_0x579255(_0x4a85ff._0x273234)]?.['channelId'] ?? '',
|
|
968
|
+
'target': _0x463689[_0x579255(0x13d)],
|
|
969
|
+
'task': _0x188499[_0x579255(_0x4a85ff._0x273234)]?.[_0x579255(0x177)],
|
|
970
|
+
'threadId': _0x188499[_0x579255(0x17a)]?.['threadId'],
|
|
971
|
+
'threadNumber': _0x188499[_0x579255(_0x4a85ff._0x317458)]?.[_0x579255(_0x4a85ff._0x32c7e3)]
|
|
1008
972
|
};
|
|
1009
973
|
}
|
|
1010
|
-
async function
|
|
1011
|
-
const
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
'
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
'
|
|
1030
|
-
|
|
974
|
+
async function _0x2364fe(_0x329b28 = {}) {
|
|
975
|
+
const _0x33b724 = {
|
|
976
|
+
_0x1acffe: 0x236,
|
|
977
|
+
_0x4fab6f: 0x1d0,
|
|
978
|
+
_0x55beda: 0xe4,
|
|
979
|
+
_0x34fd2c: 0x1f1,
|
|
980
|
+
_0x3f9b1d: 0x117,
|
|
981
|
+
_0x456e09: 0x117,
|
|
982
|
+
_0x26f67f: 0x17a,
|
|
983
|
+
_0x1af398: 0x17e,
|
|
984
|
+
_0x512b2e: 0x16e
|
|
985
|
+
}, _0x2ac01 = _0x2c4d39;
|
|
986
|
+
if (!_0x329b28[_0x2ac01(_0x5e1df5._0x1579a6)] && _0x15cc0b)
|
|
987
|
+
return _0x15cc0b;
|
|
988
|
+
return _0x15cc0b = (async () => {
|
|
989
|
+
const _0x5a27b9 = _0x2ac01, _0x57a1ef = await _0x5b4487(_0x5a27b9(0x17b) + _0x13ac93[_0x5a27b9(0x14b)] + _0x5a27b9(_0x33b724._0x1acffe), {
|
|
990
|
+
'headers': _0x50361a,
|
|
991
|
+
'method': _0x5a27b9(_0x33b724._0x4fab6f)
|
|
992
|
+
}), _0x3373c7 = _0x57a1ef[_0x5a27b9(0x17a)]?.[_0x5a27b9(_0x33b724._0x55beda)] ?? [], _0x3bd1aa = _0x3373c7[_0x5a27b9(_0x33b724._0x34fd2c)](_0x4c80d1 => _0x4c80d1[_0x5a27b9(0x225)]?.[_0x5a27b9(0x235)] === _0x5a27b9(0x1c0))[_0x5a27b9(_0x33b724._0x3f9b1d)](_0xfa7f1a => ({
|
|
993
|
+
'id': _0x5297d9(_0xfa7f1a),
|
|
994
|
+
'name': _0x5489dc(_0xfa7f1a)
|
|
995
|
+
}))[_0x5a27b9(_0x33b724._0x34fd2c)](_0x490774 => _0x490774['id']), _0x5e5e36 = _0x3373c7[_0x5a27b9(0x1f1)](_0x30700b => _0x30700b[_0x5a27b9(0x225)]?.[_0x5a27b9(0x235)] !== _0x5a27b9(0x1c0))[_0x5a27b9(_0x33b724._0x456e09)](_0x160972 => ({
|
|
996
|
+
'id': _0x5297d9(_0x160972),
|
|
997
|
+
'name': _0x5489dc(_0x160972)
|
|
998
|
+
}))['filter'](_0x5a209f => _0x5a209f['id']), _0x3cfd8b = _0x57a1ef[_0x5a27b9(_0x33b724._0x26f67f)]?.['server']['id'] ?? '';
|
|
1031
999
|
return {
|
|
1032
|
-
'agents':
|
|
1033
|
-
'channels':
|
|
1034
|
-
'humans':
|
|
1035
|
-
'serverId':
|
|
1036
|
-
'serverName':
|
|
1000
|
+
'agents': _0x3bd1aa,
|
|
1001
|
+
'channels': _0x57a1ef['data']?.[_0x5a27b9(_0x33b724._0x1af398)] ?? [],
|
|
1002
|
+
'humans': _0x5e5e36,
|
|
1003
|
+
'serverId': _0x3cfd8b,
|
|
1004
|
+
'serverName': _0x57a1ef['data']?.['server'][_0x5a27b9(_0x33b724._0x512b2e)] ?? _0x3cfd8b
|
|
1037
1005
|
};
|
|
1038
|
-
})()[
|
|
1039
|
-
|
|
1040
|
-
throw
|
|
1041
|
-
}),
|
|
1006
|
+
})()[_0x2ac01(_0x5e1df5._0x459ae2)](_0x1ee39c => {
|
|
1007
|
+
_0x15cc0b = null;
|
|
1008
|
+
throw _0x1ee39c;
|
|
1009
|
+
}), _0x15cc0b;
|
|
1042
1010
|
}
|
|
1043
|
-
function
|
|
1044
|
-
const
|
|
1045
|
-
return
|
|
1011
|
+
function _0x12fc12(_0x5a6fcb, _0xeb8772) {
|
|
1012
|
+
const _0x57420b = _0x2c4d39;
|
|
1013
|
+
return _0xeb8772[_0x57420b(0x1f7)][_0x57420b(0x167)](_0x583e14 => _0x583e14['id'] === _0x5a6fcb || _0x583e14['name'] === _0x5a6fcb) ? _0x57420b(0x1c0) : _0x57420b(0x1ad);
|
|
1046
1014
|
}
|
|
1047
|
-
function
|
|
1048
|
-
const
|
|
1049
|
-
...
|
|
1050
|
-
...
|
|
1051
|
-
][
|
|
1052
|
-
return
|
|
1015
|
+
function _0x101519(_0x2c0a2e, _0x27fbff) {
|
|
1016
|
+
const _0x5e5836 = _0x2c4d39, _0x2a4192 = [
|
|
1017
|
+
..._0x27fbff['agents'],
|
|
1018
|
+
..._0x27fbff[_0x5e5836(0x1e0)]
|
|
1019
|
+
][_0x5e5836(0x11a)](_0x51bc35 => _0x51bc35['id'] === _0x2c0a2e);
|
|
1020
|
+
return _0x2a4192?.[_0x5e5836(_0x10c534._0x4bb7c1)] ?? _0x2c0a2e;
|
|
1053
1021
|
}
|
|
1054
|
-
function
|
|
1055
|
-
const
|
|
1056
|
-
if (
|
|
1057
|
-
return
|
|
1058
|
-
if (
|
|
1059
|
-
return
|
|
1060
|
-
if (
|
|
1061
|
-
return
|
|
1062
|
-
return
|
|
1022
|
+
function _0x577a5f(_0x1a6dc6) {
|
|
1023
|
+
const _0x4de9db = _0x2c4d39;
|
|
1024
|
+
if (_0x1a6dc6[_0x4de9db(0x224)] != null)
|
|
1025
|
+
return _0x1a6dc6[_0x4de9db(0x13d)] + ':t' + _0x1a6dc6[_0x4de9db(0x224)];
|
|
1026
|
+
if (_0x1a6dc6[_0x4de9db(0x1a7)])
|
|
1027
|
+
return _0x1a6dc6[_0x4de9db(_0x40fcc2._0x3292ff)] + ':' + _0x1a6dc6[_0x4de9db(_0x40fcc2._0x4d5c76)];
|
|
1028
|
+
if (_0x1a6dc6['threadId'])
|
|
1029
|
+
return _0x1a6dc6['channelTarget'] + ':' + _0x1a6dc6['threadId'][_0x4de9db(0x229)](0x0, 0x8);
|
|
1030
|
+
return _0x1a6dc6['channelTarget'];
|
|
1063
1031
|
}
|
|
1064
|
-
function
|
|
1065
|
-
const
|
|
1032
|
+
function _0x550919(_0x4d724c, _0x4cebf7) {
|
|
1033
|
+
const _0x28b11e = _0x2c4d39;
|
|
1066
1034
|
try {
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1035
|
+
const _0x118d23 = parseTarget(_0x4d724c);
|
|
1036
|
+
if (_0x118d23['kind'] !== _0x28b11e(_0x30522a._0x5b74a9) || _0x118d23[_0x28b11e(0x13d)] !== _0x4cebf7[_0x28b11e(_0x30522a._0x4515c8)])
|
|
1069
1037
|
return ![];
|
|
1070
|
-
if (
|
|
1038
|
+
if (_0x4cebf7[_0x28b11e(_0x30522a._0x4a6f07)] != null && _0x118d23['threadShortId'] === 't' + _0x4cebf7[_0x28b11e(_0x30522a._0x4a6f07)])
|
|
1071
1039
|
return !![];
|
|
1072
|
-
if (
|
|
1073
|
-
return
|
|
1074
|
-
if (
|
|
1075
|
-
return
|
|
1040
|
+
if (_0x4cebf7[_0x28b11e(_0x30522a._0x109492)])
|
|
1041
|
+
return _0x118d23[_0x28b11e(0x18a)] === _0x4cebf7[_0x28b11e(_0x30522a._0x15a6e)] || _0x4cebf7[_0x28b11e(0x1a7)]['startsWith'](_0x118d23[_0x28b11e(0x18a)]);
|
|
1042
|
+
if (_0x4cebf7[_0x28b11e(_0x30522a._0x151b5b)])
|
|
1043
|
+
return _0x118d23[_0x28b11e(0x18a)] === _0x4cebf7[_0x28b11e(0x1f8)] || _0x4cebf7[_0x28b11e(0x1f8)][_0x28b11e(0x159)](_0x118d23[_0x28b11e(0x18a)]);
|
|
1076
1044
|
return ![];
|
|
1077
1045
|
} catch {
|
|
1078
1046
|
return ![];
|
|
1079
1047
|
}
|
|
1080
1048
|
}
|
|
1081
|
-
function
|
|
1082
|
-
const
|
|
1049
|
+
function _0x27eaff(_0x5a819a, _0x443fb1) {
|
|
1050
|
+
const _0xe631ee = _0x2c4d39;
|
|
1083
1051
|
try {
|
|
1084
|
-
const
|
|
1085
|
-
if (
|
|
1052
|
+
const _0x4659f2 = parseTarget(_0x5a819a);
|
|
1053
|
+
if (_0x4659f2[_0xe631ee(0x10c)] !== _0xe631ee(_0x180047._0x16e04f))
|
|
1086
1054
|
return ![];
|
|
1087
|
-
const
|
|
1088
|
-
if (
|
|
1055
|
+
const _0x3194ff = typeof _0x443fb1[_0xe631ee(0x224)] === 'number' && Number[_0xe631ee(0x251)](_0x443fb1[_0xe631ee(0x224)]) ? _0x443fb1[_0xe631ee(0x224)] : void 0x0;
|
|
1056
|
+
if (_0x3194ff != null && _0x4659f2['threadShortId'] === 't' + _0x3194ff)
|
|
1089
1057
|
return !![];
|
|
1090
|
-
const
|
|
1091
|
-
if (
|
|
1092
|
-
return
|
|
1093
|
-
const
|
|
1094
|
-
return Boolean(
|
|
1058
|
+
const _0x256d6f = typeof _0x443fb1[_0xe631ee(_0x180047._0x466aaa)] === _0xe631ee(_0x180047._0x32e485) ? _0x443fb1[_0xe631ee(_0x180047._0x466aaa)] : void 0x0;
|
|
1059
|
+
if (_0x256d6f)
|
|
1060
|
+
return _0x4659f2[_0xe631ee(0x18a)] === _0x256d6f || _0x256d6f[_0xe631ee(_0x180047._0x4f6841)](_0x4659f2['threadShortId']);
|
|
1061
|
+
const _0x3b96db = typeof _0x443fb1[_0xe631ee(0x1f8)] === _0xe631ee(_0x180047._0x43c5cf) ? _0x443fb1['threadId'] : void 0x0;
|
|
1062
|
+
return Boolean(_0x3b96db) && (_0x4659f2['threadShortId'] === _0x3b96db || _0x3b96db['startsWith'](_0x4659f2[_0xe631ee(_0x180047._0x13cd35)]));
|
|
1095
1063
|
} catch {
|
|
1096
1064
|
return ![];
|
|
1097
1065
|
}
|
|
1098
1066
|
}
|
|
1099
|
-
function
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1067
|
+
function _0x5297d9(_0x47dde3) {
|
|
1068
|
+
const _0x172826 = _0x2c4d39;
|
|
1069
|
+
return _0x47dde3[_0x172826(_0x409a12._0x340696)]?.['participantId'] ?? _0x47dde3['participant']?.['id'] ?? _0x47dde3[_0x172826(_0x409a12._0x1ee935)] ?? '';
|
|
1102
1070
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1071
|
+
function _0x5489dc(_0x4228dc) {
|
|
1072
|
+
const _0x4edec6 = _0x2c4d39;
|
|
1073
|
+
return _0x4228dc[_0x4edec6(0x225)]?.[_0x4edec6(_0x3ba952._0x52c246)] ?? _0x5297d9(_0x4228dc);
|
|
1106
1074
|
}
|
|
1107
|
-
async function
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
const
|
|
1114
|
-
'headers':
|
|
1115
|
-
'method':
|
|
1116
|
-
}),
|
|
1117
|
-
'attachments': (
|
|
1118
|
-
'filename':
|
|
1119
|
-
'id':
|
|
1075
|
+
async function _0x39b961(_0x52e5de) {
|
|
1076
|
+
const _0x183234 = _0x2c4d39, _0x232b87 = Math['min'](_0x52e5de[_0x183234(_0x6c9e54._0x1bd6d8)] ?? 0x32, 0x64), _0x3d0a17 = await _0x2364fe(), _0x5a7cfe = new URLSearchParams();
|
|
1077
|
+
_0x5a7cfe[_0x183234(0x140)](_0x183234(0x1d9), String(_0x232b87));
|
|
1078
|
+
_0x52e5de['threadId'] ? (_0x5a7cfe['set'](_0x183234(0x1f8), _0x52e5de[_0x183234(_0x6c9e54._0x4971ff)]), _0x5a7cfe['set'](_0x183234(_0x6c9e54._0x22114c), _0x52e5de[_0x183234(0x18d)])) : _0x5a7cfe[_0x183234(0x140)]('channelId', _0x52e5de['channelId']);
|
|
1079
|
+
_0x52e5de[_0x183234(0x187)] && _0x5a7cfe[_0x183234(_0x6c9e54._0x1f72aa)](_0x183234(0xf8), String(_0x52e5de['before']));
|
|
1080
|
+
_0x52e5de['after'] !== void 0x0 && _0x5a7cfe[_0x183234(0x140)](_0x183234(_0x6c9e54._0x4fbca7), String(_0x52e5de['after']));
|
|
1081
|
+
const _0x472a47 = await _0x5b4487(_0x183234(_0x6c9e54._0x928f80) + _0x13ac93[_0x183234(_0x6c9e54._0x2b5c8f)] + _0x183234(_0x6c9e54._0x208170) + _0x5a7cfe[_0x183234(0x234)](), {
|
|
1082
|
+
'headers': _0x50361a,
|
|
1083
|
+
'method': _0x183234(_0x6c9e54._0x4e33b3)
|
|
1084
|
+
}), _0x3dd45c = (_0x472a47[_0x183234(0x17a)] ?? [])[_0x183234(_0x6c9e54._0xc9130b)](_0x3c18c6 => ({
|
|
1085
|
+
'attachments': (_0x3c18c6[_0x183234(0x24a)] ?? [])[_0x183234(0x117)](_0x84ee56 => ({
|
|
1086
|
+
'filename': _0x84ee56['filename'] ?? _0x84ee56['id'],
|
|
1087
|
+
'id': _0x84ee56['id']
|
|
1120
1088
|
})),
|
|
1121
|
-
'content':
|
|
1122
|
-
'createdAt':
|
|
1123
|
-
...
|
|
1124
|
-
'messageId':
|
|
1125
|
-
'senderName':
|
|
1126
|
-
'senderType':
|
|
1127
|
-
'seq':
|
|
1089
|
+
'content': _0x3c18c6[_0x183234(0x1c2)] ?? '',
|
|
1090
|
+
'createdAt': _0x3c18c6[_0x183234(0x168)],
|
|
1091
|
+
..._0x3c18c6[_0x183234(0x10c)] && _0x3c18c6[_0x183234(0x10c)] !== _0x183234(0x197) ? { 'kind': _0x3c18c6['kind'] } : {},
|
|
1092
|
+
'messageId': _0x3c18c6['id'],
|
|
1093
|
+
'senderName': _0x101519(_0x3c18c6[_0x183234(0x1ae)], _0x3d0a17),
|
|
1094
|
+
'senderType': _0x12fc12(_0x3c18c6[_0x183234(0x1ae)], _0x3d0a17),
|
|
1095
|
+
'seq': _0x3c18c6[_0x183234(0x21e)] ?? 0x0
|
|
1128
1096
|
}));
|
|
1129
1097
|
return {
|
|
1130
|
-
'channel':
|
|
1131
|
-
'hasMore':
|
|
1132
|
-
'messages':
|
|
1133
|
-
'nextCursor':
|
|
1098
|
+
'channel': _0x52e5de[_0x183234(_0x6c9e54._0x31cb4f)],
|
|
1099
|
+
'hasMore': _0x472a47[_0x183234(_0x6c9e54._0x273c37)]?.[_0x183234(0x143)] ?? ![],
|
|
1100
|
+
'messages': _0x3dd45c,
|
|
1101
|
+
'nextCursor': _0x472a47[_0x183234(0x15d)]?.[_0x183234(0xf8)]
|
|
1134
1102
|
};
|
|
1135
1103
|
}
|
|
1136
1104
|
return {
|
|
1137
|
-
async 'sendMessage'(
|
|
1138
|
-
const
|
|
1139
|
-
'body': JSON[
|
|
1140
|
-
'attachment_ids':
|
|
1141
|
-
'bodyMarkdown':
|
|
1142
|
-
'channelId':
|
|
1143
|
-
...
|
|
1144
|
-
'threadId':
|
|
1145
|
-
...
|
|
1105
|
+
async 'sendMessage'(_0x395447) {
|
|
1106
|
+
const _0x2497cf = _0x2c4d39, _0x26097d = await _0x94ce25(_0x395447[_0x2497cf(0x174)]), _0x354c05 = _0x395447['content'][_0x2497cf(_0x463e60._0x191387)]('@') ? extractMentionedParticipantIds(_0x395447[_0x2497cf(_0x463e60._0x413829)], await _0x2364fe()) : [], _0x1fc9a7 = await _0x5b4487('/internal/agent/' + _0x13ac93[_0x2497cf(0x14b)] + _0x2497cf(0xeb), {
|
|
1107
|
+
'body': JSON[_0x2497cf(0x112)]({
|
|
1108
|
+
'attachment_ids': _0x395447[_0x2497cf(_0x463e60._0x88b74c)],
|
|
1109
|
+
'bodyMarkdown': _0x395447[_0x2497cf(_0x463e60._0x413829)],
|
|
1110
|
+
'channelId': _0x26097d['channelId'],
|
|
1111
|
+
..._0x354c05[_0x2497cf(0x223)] > 0x0 ? { 'mentionedParticipantIds': _0x354c05 } : {},
|
|
1112
|
+
'threadId': _0x26097d[_0x2497cf(_0x463e60._0x4e4a04)],
|
|
1113
|
+
..._0x395447[_0x2497cf(0x1e4)] ? { 'visibility': _0x395447[_0x2497cf(_0x463e60._0x31cae1)] } : {}
|
|
1146
1114
|
}),
|
|
1147
|
-
'headers':
|
|
1148
|
-
'method':
|
|
1115
|
+
'headers': _0x50361a,
|
|
1116
|
+
'method': _0x2497cf(_0x463e60._0x30b9ff)
|
|
1149
1117
|
});
|
|
1150
|
-
return { 'messageId':
|
|
1118
|
+
return { 'messageId': _0x1fc9a7['data']?.['id'] ?? '' };
|
|
1151
1119
|
},
|
|
1152
1120
|
async 'listSchedules'() {
|
|
1153
|
-
const
|
|
1154
|
-
'headers':
|
|
1121
|
+
const _0x570e81 = _0x2c4d39, _0x33c041 = await _0x5b4487(_0x570e81(_0x1d6d1c._0xfe2646), {
|
|
1122
|
+
'headers': _0x50361a,
|
|
1155
1123
|
'method': 'GET'
|
|
1156
1124
|
});
|
|
1157
|
-
return
|
|
1125
|
+
return _0x33c041[_0x570e81(0x17a)] ?? [];
|
|
1158
1126
|
},
|
|
1159
|
-
async 'claimScheduleRun'(
|
|
1160
|
-
const
|
|
1161
|
-
'body': JSON[
|
|
1162
|
-
'headers':
|
|
1163
|
-
'method':
|
|
1127
|
+
async 'claimScheduleRun'(_0x3d727b) {
|
|
1128
|
+
const _0x58743c = _0x2c4d39, _0x15d866 = await _0x5b4487(_0x58743c(0x198), {
|
|
1129
|
+
'body': JSON['stringify'](_0x3d727b),
|
|
1130
|
+
'headers': _0x50361a,
|
|
1131
|
+
'method': _0x58743c(0x1a8)
|
|
1164
1132
|
});
|
|
1165
|
-
return
|
|
1133
|
+
return _0x15d866['data'] ?? {
|
|
1166
1134
|
'granted': ![],
|
|
1167
1135
|
'runId': null,
|
|
1168
1136
|
'schedule': null,
|
|
1169
|
-
'scheduledFor':
|
|
1137
|
+
'scheduledFor': _0x3d727b[_0x58743c(_0x76466a._0x587540)]
|
|
1170
1138
|
};
|
|
1171
1139
|
},
|
|
1172
|
-
async 'startScheduleRun'(
|
|
1173
|
-
const
|
|
1174
|
-
'body': JSON[
|
|
1175
|
-
'headers':
|
|
1176
|
-
'method':
|
|
1140
|
+
async 'startScheduleRun'(_0x2c3e6e) {
|
|
1141
|
+
const _0x3de5fe = _0x2c4d39, _0x5b5665 = await _0x5b4487(_0x3de5fe(_0x21de49._0x3d63d0) + encodeURIComponent(_0x2c3e6e[_0x3de5fe(0x182)]) + _0x3de5fe(0xd9), {
|
|
1142
|
+
'body': JSON[_0x3de5fe(_0x21de49._0x8c9700)]({}),
|
|
1143
|
+
'headers': _0x50361a,
|
|
1144
|
+
'method': 'POST'
|
|
1177
1145
|
});
|
|
1178
|
-
return
|
|
1146
|
+
return _0x5b5665['data'] ?? {
|
|
1179
1147
|
'claimedByDaemonId': '',
|
|
1180
|
-
'id':
|
|
1148
|
+
'id': _0x2c3e6e[_0x3de5fe(0x182)],
|
|
1181
1149
|
'scheduleId': '',
|
|
1182
|
-
'status':
|
|
1150
|
+
'status': 'running'
|
|
1183
1151
|
};
|
|
1184
1152
|
},
|
|
1185
|
-
async 'finishScheduleRun'(
|
|
1186
|
-
const
|
|
1187
|
-
'body': JSON[
|
|
1188
|
-
'error':
|
|
1189
|
-
'resultJson':
|
|
1190
|
-
'status':
|
|
1153
|
+
async 'finishScheduleRun'(_0xb790b6) {
|
|
1154
|
+
const _0xa18cdd = _0x2c4d39, _0x422bd9 = await _0x5b4487(_0xa18cdd(0x1c4) + encodeURIComponent(_0xb790b6[_0xa18cdd(0x182)]) + _0xa18cdd(0x141), {
|
|
1155
|
+
'body': JSON[_0xa18cdd(0x112)]({
|
|
1156
|
+
'error': _0xb790b6[_0xa18cdd(_0x218fa1._0x1ff8c4)],
|
|
1157
|
+
'resultJson': _0xb790b6['resultJson'],
|
|
1158
|
+
'status': _0xb790b6[_0xa18cdd(0x169)]
|
|
1191
1159
|
}),
|
|
1192
|
-
'headers':
|
|
1193
|
-
'method':
|
|
1160
|
+
'headers': _0x50361a,
|
|
1161
|
+
'method': _0xa18cdd(0x1a8)
|
|
1194
1162
|
});
|
|
1195
|
-
return
|
|
1163
|
+
return _0x422bd9['data'] ?? {
|
|
1196
1164
|
'nextRunAt': null,
|
|
1197
1165
|
'run': {
|
|
1198
1166
|
'claimedByDaemonId': '',
|
|
1199
|
-
'id':
|
|
1167
|
+
'id': _0xb790b6[_0xa18cdd(0x182)],
|
|
1200
1168
|
'scheduleId': '',
|
|
1201
|
-
'status':
|
|
1169
|
+
'status': _0xb790b6['status']
|
|
1202
1170
|
}
|
|
1203
1171
|
};
|
|
1204
1172
|
},
|
|
1205
|
-
async 'listTasks'(
|
|
1206
|
-
const
|
|
1207
|
-
return
|
|
1208
|
-
'headers':
|
|
1209
|
-
'method':
|
|
1173
|
+
async 'listTasks'(_0x2bfb76) {
|
|
1174
|
+
const _0x424e3d = _0x2c4d39, _0x3528cb = new URLSearchParams();
|
|
1175
|
+
return _0x3528cb['set'](_0x424e3d(_0x4dca2d._0x1ada24), _0x2bfb76['channel']), _0x2bfb76[_0x424e3d(_0x4dca2d._0x52dce8)] && _0x3528cb['set'](_0x424e3d(0x169), _0x2bfb76[_0x424e3d(0x169)]), _0x18761c(_0x424e3d(_0x4dca2d._0x1b8b8c) + _0x13ac93[_0x424e3d(_0x4dca2d._0x22e421)] + _0x424e3d(0x107) + _0x3528cb[_0x424e3d(_0x4dca2d._0x48cad7)](), {
|
|
1176
|
+
'headers': _0x50361a,
|
|
1177
|
+
'method': _0x424e3d(0x1d0)
|
|
1210
1178
|
});
|
|
1211
1179
|
},
|
|
1212
|
-
async 'createTasks'(
|
|
1213
|
-
const
|
|
1214
|
-
return
|
|
1180
|
+
async 'createTasks'(_0x5d39ce) {
|
|
1181
|
+
const _0x257d49 = _0x2c4d39;
|
|
1182
|
+
return _0x18761c('/internal/agent/' + _0x13ac93['agentId'] + '/tasks', {
|
|
1215
1183
|
'body': JSON['stringify']({
|
|
1216
|
-
...
|
|
1217
|
-
'idempotency_key':
|
|
1184
|
+
..._0x5d39ce,
|
|
1185
|
+
'idempotency_key': _0x5e896d(_0x257d49(0x14d), _0x5d39ce)
|
|
1218
1186
|
}),
|
|
1219
|
-
'headers':
|
|
1220
|
-
'method':
|
|
1187
|
+
'headers': _0x50361a,
|
|
1188
|
+
'method': _0x257d49(0x1a8)
|
|
1221
1189
|
});
|
|
1222
1190
|
},
|
|
1223
|
-
async 'claimTasks'(
|
|
1224
|
-
const
|
|
1225
|
-
return
|
|
1226
|
-
'body': JSON[
|
|
1227
|
-
...
|
|
1228
|
-
'idempotency_key':
|
|
1191
|
+
async 'claimTasks'(_0x3d25ea) {
|
|
1192
|
+
const _0x4723dd = _0x2c4d39;
|
|
1193
|
+
return _0x18761c(_0x4723dd(0x17b) + _0x13ac93['agentId'] + '/tasks/claim', {
|
|
1194
|
+
'body': JSON[_0x4723dd(_0x35c70f._0x1c839d)]({
|
|
1195
|
+
..._0x3d25ea,
|
|
1196
|
+
'idempotency_key': _0x5e896d(_0x4723dd(_0x35c70f._0x43bb5e), _0x3d25ea)
|
|
1229
1197
|
}),
|
|
1230
|
-
'headers':
|
|
1231
|
-
'method':
|
|
1198
|
+
'headers': _0x50361a,
|
|
1199
|
+
'method': _0x4723dd(_0x35c70f._0x308330)
|
|
1232
1200
|
});
|
|
1233
1201
|
},
|
|
1234
|
-
async 'unclaimTask'(
|
|
1235
|
-
const
|
|
1236
|
-
return
|
|
1237
|
-
'body': JSON[
|
|
1238
|
-
...
|
|
1239
|
-
'idempotency_key':
|
|
1202
|
+
async 'unclaimTask'(_0x8650a0) {
|
|
1203
|
+
const _0x36c0f2 = _0x2c4d39;
|
|
1204
|
+
return _0x18761c(_0x36c0f2(_0x1f6795._0x27b5d1) + _0x13ac93[_0x36c0f2(_0x1f6795._0x318acd)] + _0x36c0f2(0x10d), {
|
|
1205
|
+
'body': JSON[_0x36c0f2(_0x1f6795._0x9a28e4)]({
|
|
1206
|
+
..._0x8650a0,
|
|
1207
|
+
'idempotency_key': _0x5e896d(_0x36c0f2(_0x1f6795._0x3e79eb), _0x8650a0)
|
|
1240
1208
|
}),
|
|
1241
|
-
'headers':
|
|
1242
|
-
'method':
|
|
1209
|
+
'headers': _0x50361a,
|
|
1210
|
+
'method': _0x36c0f2(0x1a8)
|
|
1243
1211
|
});
|
|
1244
1212
|
},
|
|
1245
|
-
async 'updateTaskStatus'(
|
|
1246
|
-
const
|
|
1247
|
-
return
|
|
1248
|
-
'body': JSON[
|
|
1249
|
-
...
|
|
1250
|
-
'idempotency_key':
|
|
1213
|
+
async 'updateTaskStatus'(_0xf9a41e) {
|
|
1214
|
+
const _0x28a7f4 = _0x2c4d39;
|
|
1215
|
+
return _0x18761c('/internal/agent/' + _0x13ac93['agentId'] + _0x28a7f4(_0x523e06._0x51c887), {
|
|
1216
|
+
'body': JSON[_0x28a7f4(0x112)]({
|
|
1217
|
+
..._0xf9a41e,
|
|
1218
|
+
'idempotency_key': _0x5e896d(_0x28a7f4(_0x523e06._0xa377b0), _0xf9a41e)
|
|
1251
1219
|
}),
|
|
1252
|
-
'headers':
|
|
1253
|
-
'method':
|
|
1220
|
+
'headers': _0x50361a,
|
|
1221
|
+
'method': _0x28a7f4(_0x523e06._0x414758)
|
|
1254
1222
|
});
|
|
1255
1223
|
},
|
|
1256
|
-
async 'uploadFile'(
|
|
1257
|
-
const
|
|
1258
|
-
if (
|
|
1259
|
-
throw new Error(
|
|
1260
|
-
const
|
|
1261
|
-
'body': JSON[
|
|
1262
|
-
'channel':
|
|
1263
|
-
'contentBase64':
|
|
1264
|
-
'contentType':
|
|
1265
|
-
'originalFilename':
|
|
1224
|
+
async 'uploadFile'(_0x3d056f) {
|
|
1225
|
+
const _0x22b929 = _0x2c4d39, _0x5392d2 = await _0x94ce25(_0x3d056f[_0x22b929(0xd1)]);
|
|
1226
|
+
if (_0x5392d2[_0x22b929(_0x3aef55._0x22fdc4)])
|
|
1227
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1228
|
+
const _0xbbd83c = await _0x5b4487('/internal/agent/' + _0x13ac93[_0x22b929(0x14b)] + '/upload', {
|
|
1229
|
+
'body': JSON[_0x22b929(_0x3aef55._0xa3220e)]({
|
|
1230
|
+
'channel': _0x5392d2['target'],
|
|
1231
|
+
'contentBase64': _0x3d056f[_0x22b929(0x1b8)],
|
|
1232
|
+
'contentType': _0x3d056f['contentType'],
|
|
1233
|
+
'originalFilename': _0x3d056f[_0x22b929(0x11d)]
|
|
1266
1234
|
}),
|
|
1267
|
-
'headers':
|
|
1268
|
-
'method':
|
|
1235
|
+
'headers': _0x50361a,
|
|
1236
|
+
'method': _0x22b929(_0x3aef55._0x1cc9d3)
|
|
1269
1237
|
});
|
|
1270
1238
|
return {
|
|
1271
|
-
'attachmentId':
|
|
1272
|
-
'filename':
|
|
1273
|
-
'sizeBytes':
|
|
1239
|
+
'attachmentId': _0xbbd83c[_0x22b929(0x17a)]?.['id'] ?? '',
|
|
1240
|
+
'filename': _0xbbd83c[_0x22b929(0x17a)]?.[_0x22b929(_0x3aef55._0x70aaec)] ?? _0x3d056f[_0x22b929(0x11d)],
|
|
1241
|
+
'sizeBytes': _0xbbd83c[_0x22b929(0x17a)]?.['sizeBytes'] ?? 0x0
|
|
1274
1242
|
};
|
|
1275
1243
|
},
|
|
1276
|
-
async 'downloadAttachment'(
|
|
1277
|
-
const
|
|
1278
|
-
'headers':
|
|
1279
|
-
'method':
|
|
1280
|
-
}),
|
|
1244
|
+
async 'downloadAttachment'(_0x3f699b) {
|
|
1245
|
+
const _0x43938e = _0x2c4d39, _0x4c40b8 = await _0x5b4487(_0x43938e(0x12a) + _0x3f699b, {
|
|
1246
|
+
'headers': _0x50361a,
|
|
1247
|
+
'method': 'GET'
|
|
1248
|
+
}), _0x4e803e = new AbortController(), _0x171616 = setTimeout(() => _0x4e803e[_0x43938e(0x12b)](), _0x58b749);
|
|
1281
1249
|
try {
|
|
1282
|
-
const
|
|
1283
|
-
'headers':
|
|
1284
|
-
'method':
|
|
1285
|
-
'signal':
|
|
1250
|
+
const _0x1fbaf9 = await _0x12a84a(_0x1ae38a + _0x43938e(0x12a) + _0x3f699b + _0x43938e(0x145), {
|
|
1251
|
+
'headers': _0x50361a,
|
|
1252
|
+
'method': 'GET',
|
|
1253
|
+
'signal': _0x4e803e[_0x43938e(0x1ca)]
|
|
1286
1254
|
});
|
|
1287
|
-
if (!
|
|
1288
|
-
throw new Error(
|
|
1255
|
+
if (!_0x1fbaf9['ok'])
|
|
1256
|
+
throw new Error(_0x43938e(_0x5cf40b._0x281d5a) + _0x1fbaf9[_0x43938e(0x169)]);
|
|
1289
1257
|
return {
|
|
1290
|
-
'contentType':
|
|
1291
|
-
'data': Buffer[
|
|
1292
|
-
'originalFilename':
|
|
1258
|
+
'contentType': _0x4c40b8[_0x43938e(_0x5cf40b._0x5ec9df)]?.['contentType'] ?? _0x1fbaf9[_0x43938e(0xdd)]['get']('content-type') ?? _0x43938e(0x22b),
|
|
1259
|
+
'data': Buffer['from'](await _0x1fbaf9[_0x43938e(_0x5cf40b._0x3772d8)]()),
|
|
1260
|
+
'originalFilename': _0x4c40b8[_0x43938e(_0x5cf40b._0x206b5d)]?.[_0x43938e(0x1de)]
|
|
1293
1261
|
};
|
|
1294
1262
|
} finally {
|
|
1295
|
-
clearTimeout(
|
|
1263
|
+
clearTimeout(_0x171616);
|
|
1296
1264
|
}
|
|
1297
1265
|
},
|
|
1298
1266
|
async 'listServer'() {
|
|
1299
|
-
return
|
|
1267
|
+
return _0x2364fe({ 'forceRefresh': !![] });
|
|
1300
1268
|
},
|
|
1301
1269
|
async 'getLatestEventSeq'() {
|
|
1302
|
-
const
|
|
1303
|
-
|
|
1304
|
-
const
|
|
1305
|
-
'headers':
|
|
1270
|
+
const _0xa93108 = _0x2c4d39, _0x13892e = new URLSearchParams();
|
|
1271
|
+
_0x13892e[_0xa93108(0x140)]('afterSeq', '0'), _0x13892e[_0xa93108(0x140)](_0xa93108(0x1d9), '1');
|
|
1272
|
+
const _0x530d3f = await _0x5b4487(_0xa93108(0x17b) + _0x13ac93[_0xa93108(_0x5b4a05._0x5bcdfe)] + _0xa93108(_0x5b4a05._0x49f515) + _0x13892e[_0xa93108(0x234)](), {
|
|
1273
|
+
'headers': _0x50361a,
|
|
1306
1274
|
'method': 'GET'
|
|
1307
|
-
}),
|
|
1308
|
-
return typeof
|
|
1275
|
+
}), _0x56fecc = _0x530d3f[_0xa93108(0x15d)]?.[_0xa93108(0x250)];
|
|
1276
|
+
return typeof _0x56fecc === _0xa93108(0x158) && _0x56fecc > 0x0 ? _0x56fecc : 0x0;
|
|
1309
1277
|
},
|
|
1310
|
-
async 'readHistory'(
|
|
1311
|
-
const
|
|
1312
|
-
return
|
|
1313
|
-
'after':
|
|
1314
|
-
'before':
|
|
1315
|
-
'channelId':
|
|
1316
|
-
'channelTarget':
|
|
1317
|
-
'limit':
|
|
1318
|
-
'threadId':
|
|
1278
|
+
async 'readHistory'(_0x26d474) {
|
|
1279
|
+
const _0x5e3ebe = _0x2c4d39, _0x5b093a = await _0x94ce25(_0x26d474[_0x5e3ebe(_0xf17569._0xdfea80)]);
|
|
1280
|
+
return _0x39b961({
|
|
1281
|
+
'after': _0x26d474[_0x5e3ebe(_0xf17569._0x1a34c3)],
|
|
1282
|
+
'before': _0x26d474[_0x5e3ebe(0x187)],
|
|
1283
|
+
'channelId': _0x5b093a[_0x5e3ebe(0x18d)],
|
|
1284
|
+
'channelTarget': _0x5b093a[_0x5e3ebe(0x174)],
|
|
1285
|
+
'limit': _0x26d474[_0x5e3ebe(_0xf17569._0xfe75ff)],
|
|
1286
|
+
'threadId': _0x5b093a['threadId']
|
|
1319
1287
|
});
|
|
1320
1288
|
},
|
|
1321
|
-
'resolveTarget':
|
|
1289
|
+
'resolveTarget': _0x94ce25,
|
|
1322
1290
|
async 'checkMessages'() {
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}), _0x21a178 = _0xcac118['data'] ?? [], _0x175cf1 = _0xcac118[_0x2d7072(_0x46f6dd._0x3a068d)]?.[_0x2d7072(_0x46f6dd._0x42fdb7)], _0x3ff016 = _0x19b515 ? _0x21a178[_0x2d7072(0x337)](_0x1b5bde => {
|
|
1332
|
-
const _0x4162e8 = _0x2d7072;
|
|
1333
|
-
if (_0x1b5bde[_0x4162e8(_0x13f80a._0xadf8ca)] !== _0x4162e8(_0x13f80a._0x2f634a))
|
|
1291
|
+
const _0x5e5783 = _0x2c4d39, _0xacdbd7 = new URLSearchParams();
|
|
1292
|
+
_0xacdbd7[_0x5e5783(0x140)](_0x5e5783(_0x4a0efe._0x54112b), String(_0x201464));
|
|
1293
|
+
const _0x5bf817 = _0xacdbd7[_0x5e5783(0x234)](), _0x9fb43f = await _0x5b4487(_0x5e5783(_0x4a0efe._0x2ca9c4) + _0x13ac93[_0x5e5783(0x14b)] + _0x5e5783(0x1e2) + (_0x5bf817 ? '?' + _0x5bf817 : ''), {
|
|
1294
|
+
'headers': _0x50361a,
|
|
1295
|
+
'method': _0x5e5783(_0x4a0efe._0x290fb7)
|
|
1296
|
+
}), _0x1c5cd9 = _0x9fb43f[_0x5e5783(0x17a)] ?? [], _0x33ab2f = _0x9fb43f[_0x5e5783(0x15d)]?.[_0x5e5783(_0x4a0efe._0x335fcc)], _0x195072 = _0x5d832d ? _0x1c5cd9[_0x5e5783(_0x4a0efe._0x5f4532)](_0xf81f0d => {
|
|
1297
|
+
const _0x13c0d4 = _0x5e5783;
|
|
1298
|
+
if (_0xf81f0d[_0x13c0d4(0xfc)] !== _0x13c0d4(0x14a))
|
|
1334
1299
|
return ![];
|
|
1335
|
-
return
|
|
1336
|
-
}) :
|
|
1337
|
-
let
|
|
1338
|
-
|
|
1339
|
-
|
|
1300
|
+
return _0x27eaff(_0x5d832d, asRecord(_0xf81f0d[_0x13c0d4(0x189)]));
|
|
1301
|
+
}) : _0x1c5cd9, _0x37e6c7 = _0x33ab2f !== void 0x0 ? _0x5d832d ? Math['max'](_0x201464, _0x195072[_0x5e5783(_0x4a0efe._0x1e4887)] > 0x0 ? _0x195072[_0x195072[_0x5e5783(0x223)] - 0x1][_0x5e5783(_0x4a0efe._0x44c09a)] : _0x201464) : Math[_0x5e5783(0x191)](_0x201464, _0x33ab2f) : _0x195072[_0x5e5783(_0x4a0efe._0x360771)] > 0x0 ? Math[_0x5e5783(0x191)](_0x201464, _0x195072[_0x195072[_0x5e5783(0x223)] - 0x1]['seq']) : _0x201464, _0x16afc0 = (_0x5d832d ? _0x195072 : _0x1c5cd9)[_0x5e5783(0x1f1)](_0x12d934 => _0x12d934[_0x5e5783(0xfc)] === 'message'), _0x5c78b9 = _0x5d832d === void 0x0 && _0x3852b9;
|
|
1302
|
+
let _0x22a2d8 = await _0x2364fe(), _0x8ae021 = new Map(_0x22a2d8[_0x5e5783(0x17e)][_0x5e5783(_0x4a0efe._0x5ce3d6)](_0x437347 => [
|
|
1303
|
+
_0x437347['id'],
|
|
1304
|
+
_0x437347
|
|
1340
1305
|
]));
|
|
1341
|
-
const
|
|
1342
|
-
const
|
|
1343
|
-
return Boolean(
|
|
1306
|
+
const _0x3d23d8 = _0x16afc0[_0x5e5783(_0x4a0efe._0x6a77cb)](_0x1a8e5d => {
|
|
1307
|
+
const _0x19b5f4 = _0x5e5783, _0x2d75f6 = asRecord(_0x1a8e5d[_0x19b5f4(_0x7fdf9a._0x209ade)]), _0x44c217 = typeof _0x2d75f6?.[_0x19b5f4(_0x7fdf9a._0x4de7d2)] === _0x19b5f4(_0x7fdf9a._0x4c6b8a) ? _0x2d75f6[_0x19b5f4(_0x7fdf9a._0x54ce4b)] : '';
|
|
1308
|
+
return Boolean(_0x44c217) && !_0x8ae021[_0x19b5f4(0xf1)](_0x44c217);
|
|
1344
1309
|
});
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1310
|
+
_0x3d23d8 && (_0x22a2d8 = await _0x2364fe({ 'forceRefresh': !![] }), _0x8ae021 = new Map(_0x22a2d8[_0x5e5783(0x17e)][_0x5e5783(0x117)](_0x2220e7 => [
|
|
1311
|
+
_0x2220e7['id'],
|
|
1312
|
+
_0x2220e7
|
|
1348
1313
|
])));
|
|
1349
|
-
const
|
|
1350
|
-
for (const
|
|
1351
|
-
const
|
|
1352
|
-
if (!
|
|
1314
|
+
const _0x438dba = new Map();
|
|
1315
|
+
for (const _0x501893 of _0x16afc0) {
|
|
1316
|
+
const _0x13503f = asRecord(_0x501893[_0x5e5783(0x189)]), _0x9d5672 = typeof _0x13503f[_0x5e5783(_0x4a0efe._0xb2099e)] === 'string' ? _0x13503f[_0x5e5783(0x18d)] : '';
|
|
1317
|
+
if (!_0x9d5672)
|
|
1353
1318
|
continue;
|
|
1354
|
-
const
|
|
1319
|
+
const _0x2ec134 = typeof _0x13503f['threadId'] === _0x5e5783(0x12f) ? _0x13503f['threadId'] : void 0x0, _0x413d43 = typeof _0x13503f[_0x5e5783(0x1a7)] === _0x5e5783(0x12f) ? _0x13503f['rootMessageId'] : void 0x0, _0x2fe1bf = typeof _0x13503f[_0x5e5783(_0x4a0efe._0x19aa83)] === 'number' && Number['isInteger'](_0x13503f[_0x5e5783(0x224)]) ? _0x13503f['threadNumber'] : void 0x0, _0xdd8ca3 = Boolean(_0x2ec134 && (!_0x413d43 || _0x501893[_0x5e5783(0x1d2)] !== _0x413d43)), _0x5bd370 = _0xdd8ca3 ? _0x9d5672 + ':' + _0x2ec134 : _0x9d5672, _0x1bc7ec = _0x438dba[_0x5e5783(_0x4a0efe._0x3e744)](_0x5bd370) ?? {
|
|
1355
1320
|
'aggregateIds': [],
|
|
1356
|
-
'channelId':
|
|
1321
|
+
'channelId': _0x9d5672,
|
|
1357
1322
|
'entries': new Map(),
|
|
1358
|
-
'isThreadReply':
|
|
1359
|
-
'rootMessageId':
|
|
1360
|
-
'threadNumber':
|
|
1361
|
-
'threadId':
|
|
1323
|
+
'isThreadReply': _0xdd8ca3,
|
|
1324
|
+
'rootMessageId': _0x413d43,
|
|
1325
|
+
'threadNumber': _0x2fe1bf,
|
|
1326
|
+
'threadId': _0xdd8ca3 ? _0x2ec134 : void 0x0
|
|
1362
1327
|
};
|
|
1363
|
-
|
|
1364
|
-
'payloadJson':
|
|
1365
|
-
'seq':
|
|
1366
|
-
}),
|
|
1328
|
+
_0x1bc7ec[_0x5e5783(_0x4a0efe._0x19aa83)] == null && _0x2fe1bf != null && (_0x1bc7ec[_0x5e5783(0x224)] = _0x2fe1bf), !_0x1bc7ec['rootMessageId'] && _0x413d43 && (_0x1bc7ec['rootMessageId'] = _0x413d43), _0x1bc7ec[_0x5e5783(0x205)]['push'](_0x501893[_0x5e5783(0x1d2)]), _0x1bc7ec[_0x5e5783(0x1ba)]['set'](_0x501893[_0x5e5783(_0x4a0efe._0x4484c8)], {
|
|
1329
|
+
'payloadJson': _0x501893[_0x5e5783(0x189)],
|
|
1330
|
+
'seq': _0x501893[_0x5e5783(_0x4a0efe._0x44c09a)]
|
|
1331
|
+
}), _0x438dba[_0x5e5783(_0x4a0efe._0x2aa618)](_0x5bd370, _0x1bc7ec);
|
|
1367
1332
|
}
|
|
1368
|
-
const
|
|
1369
|
-
for (const
|
|
1333
|
+
const _0x5b4a30 = [];
|
|
1334
|
+
for (const _0xf03867 of _0x438dba[_0x5e5783(_0x4a0efe._0x2390f3)]()) {
|
|
1370
1335
|
const {
|
|
1371
|
-
channelId:
|
|
1372
|
-
threadId:
|
|
1373
|
-
rootMessageId:
|
|
1374
|
-
threadNumber:
|
|
1375
|
-
aggregateIds:
|
|
1376
|
-
isThreadReply:
|
|
1377
|
-
entries:
|
|
1378
|
-
} =
|
|
1379
|
-
'channelTarget':
|
|
1380
|
-
'rootMessageId':
|
|
1381
|
-
'threadId':
|
|
1382
|
-
'threadNumber':
|
|
1383
|
-
},
|
|
1384
|
-
'channelId':
|
|
1385
|
-
'channelTarget':
|
|
1386
|
-
'limit': Math[
|
|
1387
|
-
'threadId':
|
|
1388
|
-
}),
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
])),
|
|
1392
|
-
for (const
|
|
1393
|
-
if (!
|
|
1336
|
+
channelId: _0x3f742a,
|
|
1337
|
+
threadId: _0x1fdfaa,
|
|
1338
|
+
rootMessageId: _0xa6cde3,
|
|
1339
|
+
threadNumber: _0xeaafca,
|
|
1340
|
+
aggregateIds: _0x201823,
|
|
1341
|
+
isThreadReply: _0x4d5f48,
|
|
1342
|
+
entries: _0x2871d0
|
|
1343
|
+
} = _0xf03867, _0x483763 = _0x8ae021['get'](_0x3f742a), _0x4f7c63 = _0x483763?.['name'] ?? _0x3f742a, _0x1872e8 = _0x483763?.[_0x5e5783(_0x4a0efe._0x2967ac)] === 'dm' ? 'dm:' + _0x4f7c63 : '#' + _0x4f7c63, _0x344bed = {
|
|
1344
|
+
'channelTarget': _0x1872e8,
|
|
1345
|
+
'rootMessageId': _0xa6cde3,
|
|
1346
|
+
'threadId': _0x1fdfaa,
|
|
1347
|
+
'threadNumber': _0xeaafca
|
|
1348
|
+
}, _0x2d4774 = await _0x39b961({
|
|
1349
|
+
'channelId': _0x3f742a,
|
|
1350
|
+
'channelTarget': _0x1872e8,
|
|
1351
|
+
'limit': Math[_0x5e5783(0x191)](_0x201823[_0x5e5783(_0x4a0efe._0x360771)], 0x32),
|
|
1352
|
+
'threadId': _0x1fdfaa
|
|
1353
|
+
}), _0x566f2c = new Map(_0x2d4774[_0x5e5783(_0x4a0efe._0x5e7526)][_0x5e5783(0x117)](_0x5b5f53 => [
|
|
1354
|
+
_0x5b5f53[_0x5e5783(0x102)],
|
|
1355
|
+
_0x5b5f53
|
|
1356
|
+
])), _0x3b2ece = _0x1fdfaa ? _0x577a5f(_0x344bed) : _0x1872e8, _0x751c51 = _0x5d832d ? _0x4d5f48 && _0x550919(_0x5d832d, _0x344bed) : !![], _0x1bc4a8 = _0x4d5f48 ? _0x751c51 && _0x5d832d ? _0x5d832d : _0x3b2ece : _0x1872e8;
|
|
1357
|
+
for (const _0x1e00a5 of _0x201823) {
|
|
1358
|
+
if (!_0x751c51)
|
|
1394
1359
|
continue;
|
|
1395
|
-
const
|
|
1396
|
-
if (
|
|
1360
|
+
const _0x5f176c = _0x2871d0['get'](_0x1e00a5), _0x326a62 = _0x5f176c ? asRecord(_0x5f176c['payloadJson']) : void 0x0, _0x45596e = _0x326a62?.[_0x5e5783(_0x4a0efe._0x43878a)] === 'targeted';
|
|
1361
|
+
if (_0x5c78b9 && _0x45596e)
|
|
1397
1362
|
continue;
|
|
1398
|
-
const
|
|
1399
|
-
if (
|
|
1400
|
-
|
|
1401
|
-
'attachments':
|
|
1402
|
-
'content':
|
|
1403
|
-
'createdAt':
|
|
1404
|
-
...
|
|
1405
|
-
'messageId':
|
|
1406
|
-
'senderName':
|
|
1407
|
-
'senderType':
|
|
1408
|
-
'target':
|
|
1409
|
-
...
|
|
1363
|
+
const _0x957d55 = _0x566f2c[_0x5e5783(_0x4a0efe._0x481f5b)](_0x1e00a5);
|
|
1364
|
+
if (_0x957d55) {
|
|
1365
|
+
_0x5b4a30[_0x5e5783(_0x4a0efe._0x5b175f)]({
|
|
1366
|
+
'attachments': _0x957d55['attachments'],
|
|
1367
|
+
'content': _0x957d55[_0x5e5783(_0x4a0efe._0x17f82f)],
|
|
1368
|
+
'createdAt': _0x957d55[_0x5e5783(0x168)],
|
|
1369
|
+
..._0x957d55[_0x5e5783(0x10c)] ? { 'kind': _0x957d55['kind'] } : {},
|
|
1370
|
+
'messageId': _0x957d55['messageId'],
|
|
1371
|
+
'senderName': _0x957d55[_0x5e5783(0x138)],
|
|
1372
|
+
'senderType': _0x957d55[_0x5e5783(0x127)],
|
|
1373
|
+
'target': _0x1bc4a8,
|
|
1374
|
+
..._0x45596e ? { 'targetedTask': !![] } : {}
|
|
1410
1375
|
});
|
|
1411
1376
|
continue;
|
|
1412
1377
|
}
|
|
1413
|
-
if (
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1378
|
+
if (_0x5f176c) {
|
|
1379
|
+
const _0x51147c = typeof _0x326a62?.['senderParticipantId'] === 'string' ? _0x326a62[_0x5e5783(0x1ae)] : '', _0x47aca8 = typeof _0x326a62?.[_0x5e5783(_0x4a0efe._0x2c76a5)] === _0x5e5783(_0x4a0efe._0x37ec0f) ? _0x326a62[_0x5e5783(_0x4a0efe._0x2c76a5)] : '', _0x2b0fb1 = typeof _0x326a62?.['kind'] === 'string' && _0x326a62[_0x5e5783(_0x4a0efe._0x2967ac)] !== _0x5e5783(_0x4a0efe._0x44e027) ? _0x326a62[_0x5e5783(0x10c)] : void 0x0;
|
|
1380
|
+
_0x51147c && _0x47aca8 && _0x5b4a30[_0x5e5783(_0x4a0efe._0x5b175f)]({
|
|
1416
1381
|
'attachments': [],
|
|
1417
|
-
'content':
|
|
1418
|
-
'createdAt': new Date()[
|
|
1419
|
-
...
|
|
1420
|
-
'messageId':
|
|
1421
|
-
'senderName':
|
|
1422
|
-
'senderType':
|
|
1423
|
-
'target':
|
|
1424
|
-
...
|
|
1382
|
+
'content': _0x47aca8,
|
|
1383
|
+
'createdAt': new Date()[_0x5e5783(_0x4a0efe._0xcaad51)](),
|
|
1384
|
+
..._0x2b0fb1 ? { 'kind': _0x2b0fb1 } : {},
|
|
1385
|
+
'messageId': _0x1e00a5,
|
|
1386
|
+
'senderName': _0x101519(_0x51147c, _0x22a2d8),
|
|
1387
|
+
'senderType': _0x12fc12(_0x51147c, _0x22a2d8),
|
|
1388
|
+
'target': _0x1bc4a8,
|
|
1389
|
+
..._0x45596e ? { 'targetedTask': !![] } : {}
|
|
1425
1390
|
});
|
|
1426
1391
|
}
|
|
1427
1392
|
}
|
|
1428
1393
|
}
|
|
1429
|
-
if (
|
|
1430
|
-
if (
|
|
1431
|
-
await
|
|
1394
|
+
if (_0x37e6c7 > 0x0) {
|
|
1395
|
+
if (_0x42f4bd)
|
|
1396
|
+
await _0x4fa7f5(_0x37e6c7);
|
|
1432
1397
|
else
|
|
1433
|
-
|
|
1398
|
+
_0x456447 && await _0x5a345d(_0x37e6c7);
|
|
1434
1399
|
}
|
|
1435
|
-
return
|
|
1400
|
+
return _0x37e6c7 > _0x201464 && (_0x201464 = _0x37e6c7), { 'messages': _0x5d832d ? _0x5b4a30 : _0x5c78b9 ? _0x5b4a30[_0x5e5783(0x1f1)](_0x30d84a => _0x30d84a[_0x5e5783(0x1f0)] !== !![]) : _0x5b4a30 };
|
|
1436
1401
|
}
|
|
1437
1402
|
};
|
|
1438
1403
|
}
|
|
1439
|
-
function toLocalTime(
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1404
|
+
function toLocalTime(_0xb4bb4b) {
|
|
1405
|
+
const _0x3cdeb1 = {
|
|
1406
|
+
_0x3740d7: 0xd7,
|
|
1407
|
+
_0x50333a: 0xe0,
|
|
1408
|
+
_0x47934b: 0x18b,
|
|
1409
|
+
_0x245b05: 0xfa
|
|
1410
|
+
}, _0x1f2d81 = _0x4641dd, _0x4d2fcb = new Date(_0xb4bb4b);
|
|
1411
|
+
if (Number[_0x1f2d81(_0x3cdeb1._0x3740d7)](_0x4d2fcb[_0x1f2d81(0x1f4)]()))
|
|
1412
|
+
return _0xb4bb4b;
|
|
1413
|
+
const _0x1e9687 = _0x4840fa => String(_0x4840fa)[_0x1f2d81(0x1f6)](0x2, '0');
|
|
1414
|
+
return _0x4d2fcb[_0x1f2d81(_0x3cdeb1._0x50333a)]() + '-' + _0x1e9687(_0x4d2fcb[_0x1f2d81(0xe3)]() + 0x1) + '-' + _0x1e9687(_0x4d2fcb['getDate']()) + '\x20' + _0x1e9687(_0x4d2fcb[_0x1f2d81(_0x3cdeb1._0x47934b)]()) + ':' + _0x1e9687(_0x4d2fcb[_0x1f2d81(_0x3cdeb1._0x245b05)]()) + ':' + _0x1e9687(_0x4d2fcb['getSeconds']());
|
|
1449
1415
|
}
|
|
1450
|
-
function formatAttachmentSuffix(
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1416
|
+
function formatAttachmentSuffix(_0x5d2152) {
|
|
1417
|
+
const _0x3adebe = {
|
|
1418
|
+
_0x371e53: 0x117,
|
|
1419
|
+
_0x357c2c: 0x1bb
|
|
1420
|
+
}, _0x382dbe = _0x4641dd;
|
|
1421
|
+
if (!_0x5d2152 || _0x5d2152[_0x382dbe(0x223)] === 0x0)
|
|
1453
1422
|
return '';
|
|
1454
|
-
return '\x20[' +
|
|
1423
|
+
return '\x20[' + _0x5d2152[_0x382dbe(0x223)] + '\x20attachment' + (_0x5d2152[_0x382dbe(0x223)] > 0x1 ? 's' : '') + ':\x20' + _0x5d2152[_0x382dbe(_0x3adebe._0x371e53)](_0x40d8f1 => _0x40d8f1[_0x382dbe(0x11d)] + _0x382dbe(0x1da) + _0x40d8f1['id'] + ')')[_0x382dbe(_0x3adebe._0x357c2c)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1455
1424
|
}
|
|
1456
|
-
function formatCheckMessages(
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
},
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1425
|
+
function formatCheckMessages(_0x2b4416) {
|
|
1426
|
+
const _0x5a7b03 = {
|
|
1427
|
+
_0x305027: 0x223,
|
|
1428
|
+
_0x57f6e0: 0x226,
|
|
1429
|
+
_0x533a33: 0x1bb
|
|
1430
|
+
}, _0x3ff158 = {
|
|
1431
|
+
_0x1a44d7: 0x127,
|
|
1432
|
+
_0x1903d5: 0x10c,
|
|
1433
|
+
_0x39fc2f: 0x10c,
|
|
1434
|
+
_0xaceada: 0x1b7,
|
|
1435
|
+
_0x566166: 0x102,
|
|
1436
|
+
_0x33d3af: 0xd8
|
|
1437
|
+
}, _0x52854a = _0x4641dd;
|
|
1438
|
+
if (_0x2b4416[_0x52854a(_0x5a7b03._0x305027)] === 0x0)
|
|
1439
|
+
return _0x52854a(_0x5a7b03._0x57f6e0);
|
|
1440
|
+
return _0x2b4416['map'](_0x49d6c9 => {
|
|
1441
|
+
const _0x4aa189 = _0x52854a, _0x3eb367 = _0x49d6c9[_0x4aa189(_0x3ff158._0x1a44d7)] === 'agent' ? _0x4aa189(0x116) : '', _0x37c7a8 = _0x49d6c9[_0x4aa189(_0x3ff158._0x1903d5)] && _0x49d6c9[_0x4aa189(_0x3ff158._0x39fc2f)] !== _0x4aa189(0x197) ? _0x4aa189(0x212) + _0x49d6c9[_0x4aa189(0x10c)] : '';
|
|
1442
|
+
return _0x4aa189(_0x3ff158._0xaceada) + _0x49d6c9[_0x4aa189(0x174)] + _0x4aa189(0x25a) + _0x49d6c9[_0x4aa189(_0x3ff158._0x566166)][_0x4aa189(0x229)](0x0, 0x8) + _0x4aa189(0xe9) + toLocalTime(_0x49d6c9['createdAt']) + _0x3eb367 + _0x37c7a8 + _0x4aa189(_0x3ff158._0x33d3af) + _0x49d6c9[_0x4aa189(0x138)] + ':\x20' + _0x49d6c9['content'] + formatAttachmentSuffix(_0x49d6c9[_0x4aa189(0x24a)]);
|
|
1443
|
+
})[_0x52854a(_0x5a7b03._0x533a33)]('\x0a');
|
|
1468
1444
|
}
|
|
1469
|
-
function formatHistory(
|
|
1470
|
-
const
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1445
|
+
function formatHistory(_0x3bcd39) {
|
|
1446
|
+
const _0x5e4fd6 = {
|
|
1447
|
+
_0x15ef19: 0x223,
|
|
1448
|
+
_0xe4604: 0xd1,
|
|
1449
|
+
_0x4105ab: 0x1a6,
|
|
1450
|
+
_0x1f3a03: 0x1bb,
|
|
1451
|
+
_0x8a9449: 0x21f,
|
|
1452
|
+
_0x30c57a: 0x152,
|
|
1453
|
+
_0x4fda58: 0x23e,
|
|
1454
|
+
_0x3f5494: 0x22e,
|
|
1455
|
+
_0x2fb2fd: 0xd1,
|
|
1456
|
+
_0x27f25c: 0x19e
|
|
1457
|
+
}, _0x1208f8 = {
|
|
1458
|
+
_0x254b75: 0x127,
|
|
1459
|
+
_0x18db08: 0x116,
|
|
1460
|
+
_0x538bbb: 0x10c,
|
|
1461
|
+
_0x5da4a1: 0x121,
|
|
1462
|
+
_0x4985ed: 0xe9,
|
|
1463
|
+
_0x517c95: 0xd8,
|
|
1464
|
+
_0x431343: 0x240
|
|
1465
|
+
}, _0x36de2d = _0x4641dd;
|
|
1466
|
+
if (_0x3bcd39[_0x36de2d(0x1a6)][_0x36de2d(_0x5e4fd6._0x15ef19)] === 0x0)
|
|
1467
|
+
return _0x36de2d(0x22e) + _0x3bcd39[_0x36de2d(_0x5e4fd6._0xe4604)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1468
|
+
const _0x1a604e = _0x3bcd39[_0x36de2d(_0x5e4fd6._0x4105ab)][_0x36de2d(0x117)](_0x18e9f1 => {
|
|
1469
|
+
const _0x26961e = _0x36de2d, _0x157b77 = _0x18e9f1[_0x26961e(_0x1208f8._0x254b75)] === 'agent' ? _0x26961e(_0x1208f8._0x18db08) : '', _0x5b03cf = _0x18e9f1['kind'] && _0x18e9f1[_0x26961e(_0x1208f8._0x538bbb)] !== _0x26961e(0x197) ? '\x20kind=' + _0x18e9f1['kind'] : '';
|
|
1470
|
+
return _0x26961e(0x12d) + _0x18e9f1[_0x26961e(_0x1208f8._0x5da4a1)] + _0x26961e(0x25a) + _0x18e9f1[_0x26961e(0x102)] + _0x26961e(_0x1208f8._0x4985ed) + toLocalTime(_0x18e9f1[_0x26961e(0x168)]) + _0x157b77 + _0x5b03cf + _0x26961e(_0x1208f8._0x517c95) + _0x18e9f1[_0x26961e(0x138)] + ':\x20' + _0x18e9f1[_0x26961e(_0x1208f8._0x431343)] + formatAttachmentSuffix(_0x18e9f1['attachments']);
|
|
1471
|
+
})[_0x36de2d(_0x5e4fd6._0x1f3a03)]('\x0a'), _0xae3ea3 = _0x3bcd39[_0x36de2d(0x143)] && _0x3bcd39[_0x36de2d(_0x5e4fd6._0x8a9449)] ? _0x36de2d(0x1e7) + _0x3bcd39[_0x36de2d(_0x5e4fd6._0x4105ab)][_0x36de2d(0x223)] + _0x36de2d(_0x5e4fd6._0x30c57a) + _0x3bcd39[_0x36de2d(_0x5e4fd6._0x8a9449)] + _0x36de2d(_0x5e4fd6._0x4fda58) : '';
|
|
1472
|
+
return _0x36de2d(_0x5e4fd6._0x3f5494) + _0x3bcd39[_0x36de2d(_0x5e4fd6._0x2fb2fd)] + '\x20(' + _0x3bcd39['messages'][_0x36de2d(0x223)] + _0x36de2d(_0x5e4fd6._0x27f25c) + _0x1a604e + _0xae3ea3;
|
|
1494
1473
|
}
|
|
1495
|
-
function formatServerDirectory(
|
|
1496
|
-
const
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
},
|
|
1474
|
+
function formatServerDirectory(_0x500734) {
|
|
1475
|
+
const _0x395206 = {
|
|
1476
|
+
_0x529003: 0x223,
|
|
1477
|
+
_0x1b47a4: 0x17e,
|
|
1478
|
+
_0x5ceb83: 0x117,
|
|
1479
|
+
_0x5439b4: 0x1bb,
|
|
1480
|
+
_0x84ae4e: 0x117,
|
|
1481
|
+
_0xec4380: 0x1bb,
|
|
1482
|
+
_0x3abfe9: 0x15f,
|
|
1483
|
+
_0x226e97: 0x1d1,
|
|
1484
|
+
_0x2c4cb1: 0x10b
|
|
1485
|
+
}, _0xc22308 = _0x4641dd, _0x2bc7fa = _0x500734[_0xc22308(0x17e)][_0xc22308(_0x395206._0x529003)] > 0x0 ? _0x500734[_0xc22308(_0x395206._0x1b47a4)][_0xc22308(_0x395206._0x5ceb83)](_0x20175c => _0x20175c[_0xc22308(0xcc)] ? _0xc22308(0x123) + _0x20175c[_0xc22308(0x16e)] + _0xc22308(0x186) + _0x20175c[_0xc22308(0xcc)] : _0xc22308(0x123) + _0x20175c[_0xc22308(0x16e)])[_0xc22308(_0x395206._0x5439b4)]('\x0a') : _0xc22308(0x1d7), _0x6ca2ab = _0x500734[_0xc22308(0x1f7)][_0xc22308(_0x395206._0x529003)] > 0x0 ? _0x500734[_0xc22308(0x1f7)][_0xc22308(_0x395206._0x84ae4e)](_0x2c4f27 => _0xc22308(0x20c) + _0x2c4f27['name'])[_0xc22308(0x1bb)]('\x0a') : _0xc22308(0x1d7), _0x5916f2 = _0x500734[_0xc22308(0x1e0)]['length'] > 0x0 ? _0x500734[_0xc22308(0x1e0)][_0xc22308(0x117)](_0xb9c309 => _0xc22308(0x20c) + _0xb9c309['name'])[_0xc22308(_0x395206._0xec4380)]('\x0a') : '(none)';
|
|
1507
1486
|
return [
|
|
1508
|
-
|
|
1487
|
+
_0xc22308(_0x395206._0x3abfe9) + _0x500734[_0xc22308(_0x395206._0x226e97)],
|
|
1509
1488
|
'',
|
|
1510
|
-
|
|
1511
|
-
|
|
1489
|
+
'###\x20Channels',
|
|
1490
|
+
_0x2bc7fa,
|
|
1512
1491
|
'',
|
|
1513
|
-
|
|
1514
|
-
|
|
1492
|
+
_0xc22308(_0x395206._0x2c4cb1),
|
|
1493
|
+
_0x6ca2ab,
|
|
1515
1494
|
'',
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
][
|
|
1495
|
+
_0xc22308(0x155),
|
|
1496
|
+
_0x5916f2
|
|
1497
|
+
][_0xc22308(0x1bb)]('\x0a');
|
|
1519
1498
|
}
|
|
1520
|
-
function formatUploadResult(
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1499
|
+
function formatUploadResult(_0x399f04) {
|
|
1500
|
+
const _0x2a05af = {
|
|
1501
|
+
_0x2de5f1: 0x11d,
|
|
1502
|
+
_0x22ef8c: 0x1cf,
|
|
1503
|
+
_0x1f6f07: 0x134
|
|
1504
|
+
}, _0x2de8d6 = _0x4641dd;
|
|
1505
|
+
return _0x2de8d6(0x128) + _0x399f04[_0x2de8d6(_0x2a05af._0x2de5f1)] + '\x20(' + (_0x399f04[_0x2de8d6(0x110)] / 0x400)['toFixed'](0x1) + _0x2de8d6(_0x2a05af._0x22ef8c) + _0x399f04[_0x2de8d6(_0x2a05af._0x1f6f07)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1526
1506
|
}
|
|
1527
|
-
function formatViewFileResult(
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1507
|
+
function formatViewFileResult(_0x10a31e, _0x2ca012) {
|
|
1508
|
+
const _0x11dc7b = _0x4641dd;
|
|
1509
|
+
return _0x2ca012 ? _0x11dc7b(0x1bd) + _0x10a31e : 'Downloaded\x20to:\x20' + _0x10a31e;
|
|
1530
1510
|
}
|
|
1531
|
-
function formatTaskList(
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
_0x219d9b: 0x23a,
|
|
1550
|
-
_0x5d7267: 0x36e,
|
|
1551
|
-
_0x35913b: 0x31e,
|
|
1552
|
-
_0x3f3e2c: 0x371
|
|
1553
|
-
}, _0xc2ca03 = _0x57701d;
|
|
1554
|
-
if (_0x13ab92[_0xc2ca03(0x230)] === 0x0)
|
|
1555
|
-
return 'No\x20tasks\x20created.';
|
|
1556
|
-
return _0x13ab92[_0xc2ca03(0x242)](_0x20dcfe => {
|
|
1557
|
-
const _0x5c0da6 = _0xc2ca03, _0x23ebbc = _0x20dcfe[_0x5c0da6(0x23a)] == null ? '(legacy)' : _0x20dcfe['subtaskNumber'] != null ? '#' + _0x20dcfe[_0x5c0da6(0x23a)] + '.' + _0x20dcfe[_0x5c0da6(0x369)] : '#' + _0x20dcfe[_0x5c0da6(_0x3d4065._0x219d9b)], _0x581859 = _0x20dcfe[_0x5c0da6(_0x3d4065._0x5d7267)] ? _0x5c0da6(_0x3d4065._0x35913b) + _0x20dcfe[_0x5c0da6(0x36e)] : '';
|
|
1558
|
-
return _0x23ebbc + '\x20' + _0x20dcfe[_0x5c0da6(_0x3d4065._0x3f3e2c)] + _0x581859;
|
|
1511
|
+
function formatTaskList(_0x2d22df, _0x20fb1b) {
|
|
1512
|
+
const _0x539920 = { _0xc8cb59: 0xfe }, _0x34064a = {
|
|
1513
|
+
_0x3174f2: 0x241,
|
|
1514
|
+
_0x4ca502: 0x259,
|
|
1515
|
+
_0x3566d2: 0x259,
|
|
1516
|
+
_0xa9a1f9: 0x23a,
|
|
1517
|
+
_0x4e1bcc: 0x102,
|
|
1518
|
+
_0x149339: 0x102,
|
|
1519
|
+
_0x935ad8: 0x23a,
|
|
1520
|
+
_0x4785fe: 0x20d,
|
|
1521
|
+
_0x167170: 0x22a,
|
|
1522
|
+
_0x25e816: 0x169
|
|
1523
|
+
}, _0x46115d = _0x4641dd;
|
|
1524
|
+
if (_0x2d22df['length'] === 0x0)
|
|
1525
|
+
return _0x46115d(_0x539920._0xc8cb59);
|
|
1526
|
+
return _0x2d22df[_0x46115d(0x117)](_0x44703c => {
|
|
1527
|
+
const _0x3a899a = _0x46115d, _0x5b5bda = _0x44703c['taskNumber'] == null ? _0x3a899a(_0x34064a._0x3174f2) : _0x44703c[_0x3a899a(_0x34064a._0x4ca502)] != null ? '#' + _0x44703c[_0x3a899a(0x23a)] + '.' + _0x44703c[_0x3a899a(_0x34064a._0x3566d2)] : '#' + _0x44703c[_0x3a899a(_0x34064a._0xa9a1f9)], _0x302512 = _0x44703c[_0x3a899a(_0x34064a._0x4e1bcc)] ? _0x3a899a(0x1c9) + _0x44703c[_0x3a899a(_0x34064a._0x149339)] : '', _0x479076 = _0x20fb1b && _0x44703c[_0x3a899a(_0x34064a._0xa9a1f9)] != null && !_0x44703c['subtaskNumber'] && _0x20fb1b[_0x3a899a(0xf1)](_0x44703c[_0x3a899a(_0x34064a._0x935ad8)]) ? _0x3a899a(0xdf) : '', _0x5db2d9 = _0x44703c[_0x3a899a(_0x34064a._0x4785fe)] != null && _0x44703c[_0x3a899a(0x20d)] > 0x0 ? '\x20(' + (_0x44703c[_0x3a899a(_0x34064a._0x167170)] ?? 0x0) + '/' + _0x44703c['childrenTotal'] + '\x20done)' : '';
|
|
1528
|
+
return _0x5b5bda + '\x20[' + _0x44703c[_0x3a899a(_0x34064a._0x25e816)] + ']\x20' + _0x44703c['title'] + _0x5db2d9 + _0x302512 + _0x479076;
|
|
1559
1529
|
})['join']('\x0a');
|
|
1560
1530
|
}
|
|
1561
|
-
function
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1531
|
+
function formatCreatedTasks(_0x229352) {
|
|
1532
|
+
const _0x5af38c = {
|
|
1533
|
+
_0x1b3434: 0x114,
|
|
1534
|
+
_0x3795ff: 0x117
|
|
1535
|
+
}, _0x55faba = {
|
|
1536
|
+
_0x32dc66: 0x23a,
|
|
1537
|
+
_0xb2b9e: 0x259,
|
|
1538
|
+
_0x292979: 0x102,
|
|
1539
|
+
_0x1c5fd1: 0xf2
|
|
1540
|
+
}, _0x2a864e = _0x4641dd;
|
|
1541
|
+
if (_0x229352['length'] === 0x0)
|
|
1542
|
+
return _0x2a864e(_0x5af38c._0x1b3434);
|
|
1543
|
+
return _0x229352[_0x2a864e(_0x5af38c._0x3795ff)](_0x42e20b => {
|
|
1544
|
+
const _0xc5037f = _0x2a864e, _0x5bd46c = _0x42e20b[_0xc5037f(_0x55faba._0x32dc66)] == null ? '(legacy)' : _0x42e20b[_0xc5037f(0x259)] != null ? '#' + _0x42e20b['taskNumber'] + '.' + _0x42e20b[_0xc5037f(_0x55faba._0xb2b9e)] : '#' + _0x42e20b[_0xc5037f(_0x55faba._0x32dc66)], _0x134646 = _0x42e20b[_0xc5037f(_0x55faba._0x292979)] ? '\x20message=' + _0x42e20b['messageId'] : '';
|
|
1545
|
+
return _0x5bd46c + '\x20' + _0x42e20b[_0xc5037f(_0x55faba._0x1c5fd1)] + _0x134646;
|
|
1546
|
+
})[_0x2a864e(0x1bb)]('\x0a');
|
|
1547
|
+
}
|
|
1548
|
+
function _0x1a8a(_0x399dce, _0xd2e9e0) {
|
|
1549
|
+
_0x399dce = _0x399dce - 0xcc;
|
|
1550
|
+
const _0x1cf724 = _0x1cf7();
|
|
1551
|
+
let _0x1a8a71 = _0x1cf724[_0x399dce];
|
|
1552
|
+
if (_0x1a8a['TlKfru'] === undefined) {
|
|
1553
|
+
var _0x88d679 = function (_0x7c34ff) {
|
|
1554
|
+
const _0x4c7074 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1555
|
+
let _0x971985 = '', _0x2b2eaf = '';
|
|
1556
|
+
for (let _0x4cdca3 = 0x0, _0x2caade, _0x990a49, _0x407403 = 0x0; _0x990a49 = _0x7c34ff['charAt'](_0x407403++); ~_0x990a49 && (_0x2caade = _0x4cdca3 % 0x4 ? _0x2caade * 0x40 + _0x990a49 : _0x990a49, _0x4cdca3++ % 0x4) ? _0x971985 += String['fromCharCode'](0xff & _0x2caade >> (-0x2 * _0x4cdca3 & 0x6)) : 0x0) {
|
|
1557
|
+
_0x990a49 = _0x4c7074['indexOf'](_0x990a49);
|
|
1558
|
+
}
|
|
1559
|
+
for (let _0x511cac = 0x0, _0x7c0701 = _0x971985['length']; _0x511cac < _0x7c0701; _0x511cac++) {
|
|
1560
|
+
_0x2b2eaf += '%' + ('00' + _0x971985['charCodeAt'](_0x511cac)['toString'](0x10))['slice'](-0x2);
|
|
1561
|
+
}
|
|
1562
|
+
return decodeURIComponent(_0x2b2eaf);
|
|
1563
|
+
};
|
|
1564
|
+
_0x1a8a['tkTqkj'] = _0x88d679, _0x1a8a['VVGHyC'] = {}, _0x1a8a['TlKfru'] = !![];
|
|
1565
|
+
}
|
|
1566
|
+
const _0x3c60bb = _0x1cf724[0x0], _0x61b1a5 = _0x399dce + _0x3c60bb, _0x2364b1 = _0x1a8a['VVGHyC'][_0x61b1a5];
|
|
1567
|
+
return !_0x2364b1 ? (_0x1a8a71 = _0x1a8a['tkTqkj'](_0x1a8a71), _0x1a8a['VVGHyC'][_0x61b1a5] = _0x1a8a71) : _0x1a8a71 = _0x2364b1, _0x1a8a71;
|
|
1568
|
+
}
|
|
1569
|
+
function formatClaimTaskLabel(_0x82cc47, _0x4321b7) {
|
|
1570
|
+
const _0x2b914a = _0x4641dd;
|
|
1571
|
+
if (_0x82cc47 == null)
|
|
1572
|
+
return _0x2b914a(0x241);
|
|
1573
|
+
return _0x4321b7 != null ? '#' + _0x82cc47 + '.' + _0x4321b7 : '#' + _0x82cc47;
|
|
1566
1574
|
}
|
|
1567
|
-
function formatClaimTaskResults(
|
|
1568
|
-
const
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
_0x474d6f[_0x73056a(_0x55fc31._0x27e419)] ? _0x73056a(0x24f) + _0x474d6f[_0x73056a(_0x55fc31._0x249d56)] : null
|
|
1602
|
-
][_0x73056a(0x337)](Boolean)['join']('\x20');
|
|
1603
|
-
return _0x4da281 + _0x73056a(_0x55fc31._0xefdefc) + _0x2e5da6 + '\x20' + _0x497b0a + _0x73056a(_0x55fc31._0x5098aa);
|
|
1575
|
+
function formatClaimTaskResults(_0x4b4530) {
|
|
1576
|
+
const _0x3cbd87 = { _0x48bdfc: 0x117 }, _0x5d7e68 = {
|
|
1577
|
+
_0xf755: 0x1c9,
|
|
1578
|
+
_0x4dfba6: 0x1a5,
|
|
1579
|
+
_0x2af472: 0x1d5,
|
|
1580
|
+
_0x34a542: 0x24f,
|
|
1581
|
+
_0x42527c: 0x1f3,
|
|
1582
|
+
_0x2c04cc: 0x1f1,
|
|
1583
|
+
_0x243752: 0x219,
|
|
1584
|
+
_0x3dd87f: 0x162,
|
|
1585
|
+
_0xb992e3: 0x10f,
|
|
1586
|
+
_0x27c153: 0x10f,
|
|
1587
|
+
_0x2224a5: 0x16a,
|
|
1588
|
+
_0x13c210: 0x102,
|
|
1589
|
+
_0x599c14: 0x23a,
|
|
1590
|
+
_0x2bf8b6: 0x23b,
|
|
1591
|
+
_0x9664d8: 0x108,
|
|
1592
|
+
_0x1f742d: 0x148
|
|
1593
|
+
}, _0x45b592 = _0x4641dd;
|
|
1594
|
+
if (_0x4b4530[_0x45b592(0x223)] === 0x0)
|
|
1595
|
+
return 'No\x20tasks\x20claimed.';
|
|
1596
|
+
return _0x4b4530[_0x45b592(_0x3cbd87._0x48bdfc)](_0x21dbe8 => {
|
|
1597
|
+
const _0x478cb4 = _0x45b592;
|
|
1598
|
+
if (_0x21dbe8[_0x478cb4(0x1c7)]) {
|
|
1599
|
+
const _0x2aeaaf = formatClaimTaskLabel(_0x21dbe8['taskNumber'], _0x21dbe8['subtaskNumber']), _0x2a2811 = _0x21dbe8['messageId'] ? _0x478cb4(_0x5d7e68._0xf755) + _0x21dbe8[_0x478cb4(0x102)] : '';
|
|
1600
|
+
if (_0x21dbe8[_0x478cb4(0xf7)]) {
|
|
1601
|
+
const _0x4d296c = [
|
|
1602
|
+
'workerHandoff=true',
|
|
1603
|
+
_0x21dbe8[_0x478cb4(0x180)] ? _0x478cb4(_0x5d7e68._0x4dfba6) : null,
|
|
1604
|
+
_0x21dbe8[_0x478cb4(0x1d5)] ? 'executionMode=' + _0x21dbe8[_0x478cb4(_0x5d7e68._0x2af472)] : null,
|
|
1605
|
+
_0x21dbe8[_0x478cb4(_0x5d7e68._0x34a542)] ? _0x478cb4(0x1fe) + _0x21dbe8['threadTarget'] : null,
|
|
1606
|
+
_0x21dbe8[_0x478cb4(0x1f3)] ? _0x478cb4(0x14e) + _0x21dbe8[_0x478cb4(_0x5d7e68._0x42527c)] : null
|
|
1607
|
+
][_0x478cb4(_0x5d7e68._0x2c04cc)](Boolean)['join']('\x20');
|
|
1608
|
+
return _0x2aeaaf + _0x478cb4(0x16a) + _0x2a2811 + '\x20' + _0x4d296c + '\x0a⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Worker\x20handles\x20execution\x20end-to-end.';
|
|
1604
1609
|
}
|
|
1605
|
-
if (
|
|
1606
|
-
return
|
|
1607
|
-
const
|
|
1608
|
-
return
|
|
1610
|
+
if (_0x21dbe8[_0x478cb4(0x1d5)] === _0x478cb4(_0x5d7e68._0x243752))
|
|
1611
|
+
return _0x2aeaaf + '\x20claimed' + _0x2a2811 + _0x478cb4(_0x5d7e68._0x3dd87f);
|
|
1612
|
+
const _0x474307 = _0x21dbe8[_0x478cb4(_0x5d7e68._0xb992e3)] ? _0x478cb4(0x1a3) + _0x21dbe8[_0x478cb4(_0x5d7e68._0x27c153)] : '';
|
|
1613
|
+
return _0x2aeaaf + _0x478cb4(_0x5d7e68._0x2224a5) + _0x2a2811 + _0x474307;
|
|
1609
1614
|
}
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1612
|
-
})[
|
|
1615
|
+
const _0xbd9d05 = _0x21dbe8[_0x478cb4(0x23a)] == null ? _0x21dbe8[_0x478cb4(_0x5d7e68._0x13c210)] ?? _0x478cb4(0x1e9) : formatClaimTaskLabel(_0x21dbe8[_0x478cb4(_0x5d7e68._0x599c14)], _0x21dbe8[_0x478cb4(0x259)]);
|
|
1616
|
+
return _0xbd9d05 + _0x478cb4(_0x5d7e68._0x2bf8b6) + (_0x21dbe8[_0x478cb4(_0x5d7e68._0x9664d8)] ?? _0x478cb4(_0x5d7e68._0x1f742d));
|
|
1617
|
+
})[_0x45b592(0x1bb)]('\x0a');
|
|
1613
1618
|
}
|
|
1614
|
-
function formatUnclaimTaskResult(
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1619
|
+
function formatUnclaimTaskResult(_0xade740) {
|
|
1620
|
+
const _0x38bf9e = {
|
|
1621
|
+
_0x3379d3: 0x259,
|
|
1622
|
+
_0x5285af: 0x169
|
|
1623
|
+
}, _0x1633e9 = _0x4641dd, _0x3d05f7 = _0xade740[_0x1633e9(0x23a)] == null ? '(legacy)' : _0xade740[_0x1633e9(_0x38bf9e._0x3379d3)] != null ? '#' + _0xade740['taskNumber'] + '.' + _0xade740[_0x1633e9(0x259)] : '#' + _0xade740[_0x1633e9(0x23a)];
|
|
1624
|
+
return _0x3d05f7 + _0x1633e9(0xe6) + _0xade740[_0x1633e9(_0x38bf9e._0x5285af)];
|
|
1617
1625
|
}
|
|
1618
|
-
function formatUpdateTaskStatusResult(
|
|
1619
|
-
const
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
+
function formatUpdateTaskStatusResult(_0x3165ba) {
|
|
1627
|
+
const _0x54b8d2 = {
|
|
1628
|
+
_0x36906a: 0x241,
|
|
1629
|
+
_0x276727: 0x259,
|
|
1630
|
+
_0x4eca5f: 0x23a
|
|
1631
|
+
}, _0x407eab = _0x4641dd, _0x2af102 = _0x3165ba[_0x407eab(0x23a)] == null ? _0x407eab(_0x54b8d2._0x36906a) : _0x3165ba[_0x407eab(_0x54b8d2._0x276727)] != null ? '#' + _0x3165ba[_0x407eab(0x23a)] + '.' + _0x3165ba['subtaskNumber'] : '#' + _0x3165ba[_0x407eab(_0x54b8d2._0x4eca5f)], _0x1b600f = _0x2af102 + _0x407eab(0xe6) + _0x3165ba[_0x407eab(0x169)];
|
|
1632
|
+
if (_0x3165ba['status'] !== 'in_review')
|
|
1633
|
+
return _0x1b600f;
|
|
1634
|
+
return _0x1b600f + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
|
|
1626
1635
|
}
|
|
1627
1636
|
function getChatBridgeToolDefinitions() {
|
|
1628
|
-
const
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
_0x3597ac: 0x2f1
|
|
1636
|
-
}, _0x21fd85 = _0x57701d;
|
|
1637
|
+
const _0x204c30 = {
|
|
1638
|
+
_0x21df61: 0xd6,
|
|
1639
|
+
_0x29cd62: 0x14d,
|
|
1640
|
+
_0x53ba27: 0x255,
|
|
1641
|
+
_0x55b476: 0x195,
|
|
1642
|
+
_0x7cc1e3: 0xe8
|
|
1643
|
+
}, _0x4a1c4d = _0x4641dd;
|
|
1637
1644
|
return [
|
|
1638
|
-
{ 'name':
|
|
1639
|
-
{ 'name':
|
|
1640
|
-
{ 'name':
|
|
1641
|
-
{ 'name':
|
|
1642
|
-
{ 'name':
|
|
1643
|
-
{ 'name':
|
|
1644
|
-
{ 'name':
|
|
1645
|
-
{ 'name':
|
|
1646
|
-
{ 'name':
|
|
1647
|
-
{ 'name':
|
|
1648
|
-
{ 'name':
|
|
1649
|
-
{ 'name':
|
|
1650
|
-
{ 'name':
|
|
1651
|
-
{ 'name':
|
|
1652
|
-
{ 'name':
|
|
1645
|
+
{ 'name': _0x4a1c4d(0x254) },
|
|
1646
|
+
{ 'name': _0x4a1c4d(0x131) },
|
|
1647
|
+
{ 'name': 'read_history' },
|
|
1648
|
+
{ 'name': 'list_server' },
|
|
1649
|
+
{ 'name': _0x4a1c4d(_0x204c30._0x21df61) },
|
|
1650
|
+
{ 'name': 'view_file' },
|
|
1651
|
+
{ 'name': 'list_tasks' },
|
|
1652
|
+
{ 'name': _0x4a1c4d(_0x204c30._0x29cd62) },
|
|
1653
|
+
{ 'name': _0x4a1c4d(_0x204c30._0x53ba27) },
|
|
1654
|
+
{ 'name': _0x4a1c4d(0x13b) },
|
|
1655
|
+
{ 'name': _0x4a1c4d(_0x204c30._0x55b476) },
|
|
1656
|
+
{ 'name': _0x4a1c4d(_0x204c30._0x7cc1e3) },
|
|
1657
|
+
{ 'name': 'park_worker' },
|
|
1658
|
+
{ 'name': 'escalate_to_main' },
|
|
1659
|
+
{ 'name': _0x4a1c4d(0x144) }
|
|
1653
1660
|
];
|
|
1654
1661
|
}
|
|
1655
|
-
function createChatBridgeHandlers(
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
},
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
},
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
function _0x33ecd8(_0x247eec, _0x231858) {
|
|
1784
|
-
const _0x13b1fd = _0x3fa9;
|
|
1785
|
-
if (!_0x41641c['workerMode'])
|
|
1662
|
+
function createChatBridgeHandlers(_0x4258b8) {
|
|
1663
|
+
const _0x16e611 = {
|
|
1664
|
+
_0x31b40d: 0x183,
|
|
1665
|
+
_0x6dee82: 0x1b1,
|
|
1666
|
+
_0x1d0bde: 0x105,
|
|
1667
|
+
_0x6ce2bc: 0x256,
|
|
1668
|
+
_0x30117d: 0x1a1,
|
|
1669
|
+
_0x1e00f1: 0x157
|
|
1670
|
+
}, _0x45f739 = {
|
|
1671
|
+
_0x2f5558: 0x183,
|
|
1672
|
+
_0x465dc3: 0x183,
|
|
1673
|
+
_0x442b80: 0x22d,
|
|
1674
|
+
_0x4dd5fa: 0x1a8,
|
|
1675
|
+
_0x56104c: 0x256,
|
|
1676
|
+
_0x28a8d1: 0x146
|
|
1677
|
+
}, _0x3bfbd5 = {
|
|
1678
|
+
_0xf46d90: 0x112,
|
|
1679
|
+
_0x39989e: 0x146,
|
|
1680
|
+
_0x10bdea: 0x1ef,
|
|
1681
|
+
_0x24791c: 0xd4,
|
|
1682
|
+
_0x5ec8bc: 0x256
|
|
1683
|
+
}, _0x179561 = {
|
|
1684
|
+
_0x285449: 0x1b1,
|
|
1685
|
+
_0x3ac1a6: 0xee,
|
|
1686
|
+
_0x5aa697: 0x1a1,
|
|
1687
|
+
_0x2856ea: 0xd4
|
|
1688
|
+
}, _0x185a19 = {
|
|
1689
|
+
_0x539bb2: 0x20f,
|
|
1690
|
+
_0x40b965: 0xd5,
|
|
1691
|
+
_0x407290: 0x23f,
|
|
1692
|
+
_0x58a7da: 0x1f9
|
|
1693
|
+
}, _0x287648 = { _0x5925c4: 0x222 }, _0x1ee732 = {
|
|
1694
|
+
_0x440319: 0xd1,
|
|
1695
|
+
_0x5902aa: 0x176,
|
|
1696
|
+
_0x27aa9a: 0x1d6
|
|
1697
|
+
}, _0x526f40 = {
|
|
1698
|
+
_0x2df482: 0x223,
|
|
1699
|
+
_0x41a844: 0x19c,
|
|
1700
|
+
_0x5c86e8: 0x223
|
|
1701
|
+
}, _0x1f09d7 = {
|
|
1702
|
+
_0x7a6ceb: 0x1c7,
|
|
1703
|
+
_0xff0608: 0x102,
|
|
1704
|
+
_0x1dbbef: 0x14a,
|
|
1705
|
+
_0x510dbe: 0x246
|
|
1706
|
+
}, _0x244a5a = {
|
|
1707
|
+
_0x4a86b1: 0x14d,
|
|
1708
|
+
_0x380690: 0x176
|
|
1709
|
+
}, _0x40e208 = {
|
|
1710
|
+
_0x4841ad: 0x176,
|
|
1711
|
+
_0x408fb4: 0x183,
|
|
1712
|
+
_0x361a13: 0x14b,
|
|
1713
|
+
_0x2d0b3d: 0x194,
|
|
1714
|
+
_0x5589c0: 0x1a1,
|
|
1715
|
+
_0x120969: 0xcf,
|
|
1716
|
+
_0x549b3c: 0xe5,
|
|
1717
|
+
_0x255016: 0x23a,
|
|
1718
|
+
_0x2eefb5: 0x13a,
|
|
1719
|
+
_0x52ffcb: 0x122,
|
|
1720
|
+
_0x30503f: 0x11a
|
|
1721
|
+
}, _0xbf3700 = { _0x4e06e7: 0x176 }, _0x3b30f0 = { _0x576163: 0x176 }, _0x2221c1 = {
|
|
1722
|
+
_0x563fa5: 0x1a6,
|
|
1723
|
+
_0xba0c7a: 0x1f1
|
|
1724
|
+
}, _0x556187 = {
|
|
1725
|
+
_0x55de2: 0x165,
|
|
1726
|
+
_0x2f4d36: 0x183,
|
|
1727
|
+
_0x113c5f: 0x224,
|
|
1728
|
+
_0x225376: 0x229,
|
|
1729
|
+
_0x39882b: 0x230,
|
|
1730
|
+
_0x314717: 0x1c8,
|
|
1731
|
+
_0x1489f2: 0x16f,
|
|
1732
|
+
_0x4798fe: 0x213,
|
|
1733
|
+
_0x263238: 0x1d4,
|
|
1734
|
+
_0x4b457e: 0x1bb,
|
|
1735
|
+
_0x4ad9bd: 0x1a8,
|
|
1736
|
+
_0x290490: 0x105,
|
|
1737
|
+
_0x2d4dce: 0x1e8,
|
|
1738
|
+
_0x32d8b7: 0x19f,
|
|
1739
|
+
_0x9e1d58: 0x1ac,
|
|
1740
|
+
_0x93dc54: 0x176,
|
|
1741
|
+
_0x1d03fe: 0x240,
|
|
1742
|
+
_0x49db3b: 0x17c,
|
|
1743
|
+
_0x16b367: 0x1fa
|
|
1744
|
+
}, _0x228d8d = {
|
|
1745
|
+
_0x4216c9: 0x183,
|
|
1746
|
+
_0x297dc5: 0x14b,
|
|
1747
|
+
_0x731868: 0xf1,
|
|
1748
|
+
_0x5363a2: 0x169,
|
|
1749
|
+
_0x3cfea5: 0xe5
|
|
1750
|
+
}, _0x38f0dc = {
|
|
1751
|
+
_0xbd2b7e: 0x183,
|
|
1752
|
+
_0x4f2715: 0x203,
|
|
1753
|
+
_0x2c0125: 0x183,
|
|
1754
|
+
_0x5d72f6: 0x14b,
|
|
1755
|
+
_0x4f8bc3: 0x169,
|
|
1756
|
+
_0x397991: 0x20e,
|
|
1757
|
+
_0x2c7bac: 0xe5,
|
|
1758
|
+
_0x53ad7f: 0x247
|
|
1759
|
+
}, _0x38f2f5 = {
|
|
1760
|
+
_0xb5355b: 0x183,
|
|
1761
|
+
_0x13bb8d: 0xd1,
|
|
1762
|
+
_0x466799: 0x10c,
|
|
1763
|
+
_0x52426d: 0xd1,
|
|
1764
|
+
_0x55fb73: 0x219,
|
|
1765
|
+
_0x3d9ce1: 0x23a,
|
|
1766
|
+
_0x4c87ee: 0x19b,
|
|
1767
|
+
_0x449bb7: 0x13d,
|
|
1768
|
+
_0x4fd033: 0x102,
|
|
1769
|
+
_0x1c3cfe: 0x176,
|
|
1770
|
+
_0x46e573: 0x241,
|
|
1771
|
+
_0x19d888: 0x1b7,
|
|
1772
|
+
_0x65521: 0x240,
|
|
1773
|
+
_0x2b3a3a: 0x102,
|
|
1774
|
+
_0xa0356f: 0x1bb,
|
|
1775
|
+
_0x4fd933: 0x1a8,
|
|
1776
|
+
_0x388526: 0x112,
|
|
1777
|
+
_0x2fb194: 0x1e8,
|
|
1778
|
+
_0x4b7975: 0x1a1,
|
|
1779
|
+
_0x2af979: 0x146,
|
|
1780
|
+
_0x199a5e: 0xe2,
|
|
1781
|
+
_0x655a02: 0x23c
|
|
1782
|
+
}, _0x1ef13e = {
|
|
1783
|
+
_0x3bd2ea: 0x203,
|
|
1784
|
+
_0xf6d7f5: 0x150,
|
|
1785
|
+
_0x55f47a: 0x1ec
|
|
1786
|
+
}, _0x48533e = _0x4641dd;
|
|
1787
|
+
function _0x55fa56(_0x104abd, _0x59b48a) {
|
|
1788
|
+
const _0x157280 = _0x1a8a;
|
|
1789
|
+
if (!_0x4258b8[_0x157280(_0x1ef13e._0x3bd2ea)])
|
|
1786
1790
|
return;
|
|
1787
|
-
if (!
|
|
1788
|
-
throw new Error(
|
|
1789
|
-
if (
|
|
1790
|
-
throw new Error(
|
|
1791
|
+
if (!_0x4258b8[_0x157280(_0x1ef13e._0xf6d7f5)])
|
|
1792
|
+
throw new Error(_0x104abd + _0x157280(0xf3));
|
|
1793
|
+
if (_0x59b48a !== _0x4258b8[_0x157280(_0x1ef13e._0xf6d7f5)])
|
|
1794
|
+
throw new Error(_0x104abd + _0x157280(0xdc) + _0x4258b8[_0x157280(0x150)] + _0x157280(_0x1ef13e._0x55f47a) + _0x59b48a);
|
|
1791
1795
|
}
|
|
1792
|
-
async function
|
|
1793
|
-
const
|
|
1794
|
-
if (!
|
|
1796
|
+
async function _0x49042d(_0x57cd62) {
|
|
1797
|
+
const _0x109f4d = _0x1a8a;
|
|
1798
|
+
if (!_0x4258b8[_0x109f4d(_0x38f2f5._0xb5355b)] || !_0x4258b8[_0x109f4d(0x14b)] || _0x4258b8[_0x109f4d(0x203)] || _0x4258b8[_0x109f4d(0x165)] !== !![])
|
|
1795
1799
|
return null;
|
|
1796
|
-
const
|
|
1797
|
-
if (
|
|
1800
|
+
const _0x26f4ec = parseTarget(_0x57cd62[_0x109f4d(_0x38f2f5._0x13bb8d)]);
|
|
1801
|
+
if (_0x26f4ec[_0x109f4d(_0x38f2f5._0x466799)] !== _0x109f4d(_0x38f2f5._0x52426d))
|
|
1798
1802
|
return null;
|
|
1799
|
-
if (
|
|
1800
|
-
const
|
|
1803
|
+
if (_0x57cd62[_0x109f4d(0x1d5)] === _0x109f4d(_0x38f2f5._0x55fb73)) {
|
|
1804
|
+
const _0x526b96 = _0x57cd62[_0x109f4d(_0x38f2f5._0x3d9ce1)] == null ? '(legacy)' : '#' + _0x57cd62[_0x109f4d(0x23a)];
|
|
1801
1805
|
return {
|
|
1802
|
-
'executionMode':
|
|
1806
|
+
'executionMode': _0x109f4d(0x219),
|
|
1803
1807
|
'stopMain': ![],
|
|
1804
1808
|
'workerHandoff': ![],
|
|
1805
|
-
'workerHandoffError':
|
|
1809
|
+
'workerHandoffError': 'task\x20' + _0x526b96 + _0x109f4d(_0x38f2f5._0x4c87ee)
|
|
1806
1810
|
};
|
|
1807
1811
|
}
|
|
1808
|
-
const
|
|
1809
|
-
let
|
|
1812
|
+
const _0x5d05e3 = _0x57cd62['threadNumber'] != null ? _0x26f4ec[_0x109f4d(0x13d)] + ':t' + _0x57cd62[_0x109f4d(0x224)] : _0x26f4ec[_0x109f4d(_0x38f2f5._0x449bb7)] + ':' + _0x57cd62[_0x109f4d(_0x38f2f5._0x4fd033)];
|
|
1813
|
+
let _0xd9c639;
|
|
1810
1814
|
try {
|
|
1811
|
-
const
|
|
1812
|
-
'channel':
|
|
1815
|
+
const _0x19e3dc = await _0x4258b8[_0x109f4d(_0x38f2f5._0x1c3cfe)][_0x109f4d(0x15e)]({
|
|
1816
|
+
'channel': _0x5d05e3,
|
|
1813
1817
|
'limit': 0x14
|
|
1814
1818
|
});
|
|
1815
|
-
|
|
1819
|
+
_0xd9c639 = _0x19e3dc['messages']['find'](_0x1819bf => _0x1819bf[_0x109f4d(0x102)] === _0x57cd62[_0x109f4d(0x102)]);
|
|
1816
1820
|
} catch {
|
|
1817
|
-
|
|
1821
|
+
_0xd9c639 = void 0x0;
|
|
1818
1822
|
}
|
|
1819
|
-
const
|
|
1820
|
-
|
|
1823
|
+
const _0x45293c = _0x57cd62[_0x109f4d(0x23a)] == null ? _0x109f4d(_0x38f2f5._0x46e573) : '#' + _0x57cd62[_0x109f4d(0x23a)], _0xcc5a2c = [
|
|
1824
|
+
_0x109f4d(_0x38f2f5._0x19d888) + _0x5d05e3 + _0x109f4d(0x25a) + _0x57cd62['messageId'][_0x109f4d(0x229)](0x0, 0x8) + '\x20time=' + new Date()[_0x109f4d(0x202)]() + _0x109f4d(0x15b) + _0x45293c + _0x109f4d(0x248),
|
|
1821
1825
|
'',
|
|
1822
|
-
|
|
1826
|
+
_0xd9c639 ? _0x109f4d(0x17d) + _0xd9c639[_0x109f4d(_0x38f2f5._0x65521)] : 'Root\x20task\x20message\x20id:\x20' + _0x57cd62[_0x109f4d(_0x38f2f5._0x2b3a3a)],
|
|
1823
1827
|
'',
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
][
|
|
1827
|
-
'method':
|
|
1828
|
-
'headers': { 'Content-Type':
|
|
1829
|
-
'body': JSON[
|
|
1830
|
-
'agent_id':
|
|
1831
|
-
'thread_target':
|
|
1828
|
+
_0x109f4d(0x160) + _0x5d05e3,
|
|
1829
|
+
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1830
|
+
][_0x109f4d(_0x38f2f5._0xa0356f)]('\x0a'), _0x49aa11 = await fetch(_0x4258b8[_0x109f4d(0x183)] + '/workers/deliver', {
|
|
1831
|
+
'method': _0x109f4d(_0x38f2f5._0x4fd933),
|
|
1832
|
+
'headers': { 'Content-Type': _0x109f4d(0x105) },
|
|
1833
|
+
'body': JSON[_0x109f4d(_0x38f2f5._0x388526)]({
|
|
1834
|
+
'agent_id': _0x4258b8[_0x109f4d(0x14b)],
|
|
1835
|
+
'thread_target': _0x5d05e3,
|
|
1832
1836
|
'spawn_packet': {
|
|
1833
|
-
'replyTarget':
|
|
1834
|
-
...
|
|
1837
|
+
'replyTarget': _0x5d05e3,
|
|
1838
|
+
..._0x57cd62[_0x109f4d(0x1e8)] ? { 'taskId': _0x57cd62[_0x109f4d(_0x38f2f5._0x2fb194)] } : _0x57cd62[_0x109f4d(0x23a)] != null ? { 'taskId': _0x109f4d(0x133) + _0x57cd62[_0x109f4d(0x23a)] } : {}
|
|
1835
1839
|
},
|
|
1836
1840
|
'payload': {
|
|
1837
1841
|
'mode': 'user',
|
|
1838
|
-
'text':
|
|
1842
|
+
'text': _0xcc5a2c
|
|
1839
1843
|
}
|
|
1840
1844
|
})
|
|
1841
|
-
}),
|
|
1842
|
-
if (!
|
|
1843
|
-
throw new Error(
|
|
1845
|
+
}), _0x5a245d = await _0x49aa11[_0x109f4d(_0x38f2f5._0x4b7975)]();
|
|
1846
|
+
if (!_0x5a245d['ok'])
|
|
1847
|
+
throw new Error(_0x5a245d[_0x109f4d(_0x38f2f5._0x2af979)] ?? _0x109f4d(0x246));
|
|
1844
1848
|
return {
|
|
1845
1849
|
'stopMain': !![],
|
|
1846
|
-
'threadTarget':
|
|
1847
|
-
'workerDisposition':
|
|
1850
|
+
'threadTarget': _0x5d05e3,
|
|
1851
|
+
'workerDisposition': _0x5a245d[_0x109f4d(0x1b2)] === _0x109f4d(0x142) ? 'queued' : _0x109f4d(_0x38f2f5._0x199a5e),
|
|
1848
1852
|
'workerHandoff': !![],
|
|
1849
|
-
'workerSessionId':
|
|
1850
|
-
'executionMode':
|
|
1853
|
+
'workerSessionId': _0x5a245d[_0x109f4d(0x16c)] ?? '',
|
|
1854
|
+
'executionMode': _0x109f4d(_0x38f2f5._0x655a02)
|
|
1851
1855
|
};
|
|
1852
1856
|
}
|
|
1853
|
-
async function
|
|
1854
|
-
const
|
|
1855
|
-
if (!
|
|
1857
|
+
async function _0x2f824c() {
|
|
1858
|
+
const _0x7b258d = _0x1a8a;
|
|
1859
|
+
if (!_0x4258b8[_0x7b258d(_0x38f0dc._0xbd2b7e)] || !_0x4258b8['agentId'] || _0x4258b8[_0x7b258d(_0x38f0dc._0x4f2715)])
|
|
1856
1860
|
return null;
|
|
1857
1861
|
try {
|
|
1858
|
-
const
|
|
1859
|
-
if (!
|
|
1862
|
+
const _0x27b985 = await fetch(_0x4258b8[_0x7b258d(_0x38f0dc._0x2c0125)] + _0x7b258d(0x194) + encodeURIComponent(_0x4258b8[_0x7b258d(_0x38f0dc._0x5d72f6)])), _0x19015b = await _0x27b985['json']();
|
|
1863
|
+
if (!_0x19015b['ok'])
|
|
1860
1864
|
return null;
|
|
1861
|
-
const
|
|
1862
|
-
for (const
|
|
1863
|
-
|
|
1865
|
+
const _0xa57e8f = new Set();
|
|
1866
|
+
for (const _0x4fa2ac of _0x19015b['workers']) {
|
|
1867
|
+
_0x4fa2ac[_0x7b258d(_0x38f0dc._0x4f8bc3)] !== _0x7b258d(_0x38f0dc._0x397991) && _0x4fa2ac[_0x7b258d(_0x38f0dc._0x2c7bac)] && _0xa57e8f['add'](_0x4fa2ac['thread_target']);
|
|
1864
1868
|
}
|
|
1865
|
-
return
|
|
1869
|
+
return _0xa57e8f[_0x7b258d(_0x38f0dc._0x53ad7f)] > 0x0 ? _0xa57e8f : null;
|
|
1866
1870
|
} catch {
|
|
1867
1871
|
return null;
|
|
1868
1872
|
}
|
|
1869
1873
|
}
|
|
1870
|
-
const
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
+
const _0x213b86 = new Set([
|
|
1875
|
+
_0x48533e(0x1df),
|
|
1876
|
+
_0x48533e(0x217),
|
|
1877
|
+
_0x48533e(0xfb)
|
|
1874
1878
|
]);
|
|
1875
|
-
async function
|
|
1876
|
-
const
|
|
1877
|
-
if (!
|
|
1879
|
+
async function _0x431336() {
|
|
1880
|
+
const _0x5c7057 = _0x48533e;
|
|
1881
|
+
if (!_0x4258b8[_0x5c7057(_0x228d8d._0x4216c9)] || !_0x4258b8[_0x5c7057(0x14b)] || _0x4258b8[_0x5c7057(0x203)])
|
|
1878
1882
|
return null;
|
|
1879
1883
|
try {
|
|
1880
|
-
const
|
|
1881
|
-
if (!
|
|
1884
|
+
const _0x7c05d8 = await fetch(_0x4258b8[_0x5c7057(_0x228d8d._0x4216c9)] + '/workers/list?agent_id=' + encodeURIComponent(_0x4258b8[_0x5c7057(_0x228d8d._0x297dc5)])), _0x116da5 = await _0x7c05d8[_0x5c7057(0x1a1)]();
|
|
1885
|
+
if (!_0x116da5['ok'])
|
|
1882
1886
|
return null;
|
|
1883
|
-
const
|
|
1884
|
-
for (const
|
|
1885
|
-
|
|
1887
|
+
const _0x3780af = new Set();
|
|
1888
|
+
for (const _0x4c7383 of _0x116da5[_0x5c7057(0xcf)]) {
|
|
1889
|
+
_0x213b86[_0x5c7057(_0x228d8d._0x731868)](_0x4c7383[_0x5c7057(_0x228d8d._0x5363a2)]) && _0x4c7383[_0x5c7057(0xe5)] && _0x3780af['add'](_0x4c7383[_0x5c7057(_0x228d8d._0x3cfea5)]);
|
|
1886
1890
|
}
|
|
1887
|
-
return
|
|
1891
|
+
return _0x3780af[_0x5c7057(0x247)] > 0x0 ? _0x3780af : null;
|
|
1888
1892
|
} catch {
|
|
1889
1893
|
return null;
|
|
1890
1894
|
}
|
|
1891
1895
|
}
|
|
1892
1896
|
return {
|
|
1893
|
-
async 'send_message'(
|
|
1894
|
-
const
|
|
1895
|
-
if (!
|
|
1896
|
-
const
|
|
1897
|
-
if (
|
|
1898
|
-
const
|
|
1899
|
-
if (
|
|
1897
|
+
async 'send_message'(_0x42e2bd) {
|
|
1898
|
+
const _0x19927b = _0x48533e;
|
|
1899
|
+
if (!_0x4258b8[_0x19927b(0x203)] && _0x4258b8[_0x19927b(_0x556187._0x55de2)] && _0x4258b8[_0x19927b(_0x556187._0x2f4d36)] && _0x4258b8['agentId']) {
|
|
1900
|
+
const _0x3108f9 = await _0x4258b8[_0x19927b(0x176)][_0x19927b(0x118)](_0x42e2bd[_0x19927b(0x174)]);
|
|
1901
|
+
if (_0x3108f9[_0x19927b(0x177)] && _0x3108f9[_0x19927b(0x1f8)]) {
|
|
1902
|
+
const _0x2792fb = _0x3108f9[_0x19927b(0x177)][_0x19927b(0x23a)] != null ? '#' + _0x3108f9[_0x19927b(0x177)][_0x19927b(0x23a)] : _0x19927b(0x241), _0xd68479 = _0x3108f9[_0x19927b(_0x556187._0x113c5f)] != null ? _0x3108f9[_0x19927b(0x174)] + ':t' + _0x3108f9[_0x19927b(0x224)] : _0x3108f9['target'] + ':' + _0x3108f9[_0x19927b(0x1f8)][_0x19927b(_0x556187._0x225376)](0x0, 0x8), _0x438d11 = await _0x431336();
|
|
1903
|
+
if (_0x438d11?.['has'](_0xd68479))
|
|
1900
1904
|
return [
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
][
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1905
|
+
_0x19927b(0x120) + _0x2792fb + '\x20in\x20' + _0xd68479 + _0x19927b(_0x556187._0x39882b),
|
|
1906
|
+
_0x19927b(_0x556187._0x314717)
|
|
1907
|
+
][_0x19927b(0x1bb)]('\x0a');
|
|
1908
|
+
const _0x4251b4 = [
|
|
1909
|
+
_0x19927b(0x1b7) + _0xd68479 + _0x19927b(_0x556187._0x1489f2) + new Date()[_0x19927b(0x202)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1906
1910
|
'',
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
][
|
|
1912
|
-
'method':
|
|
1913
|
-
'headers': { 'Content-Type':
|
|
1914
|
-
'body': JSON[
|
|
1915
|
-
'agent_id':
|
|
1916
|
-
'thread_target':
|
|
1911
|
+
_0x19927b(_0x556187._0x4798fe) + _0x42e2bd['content'],
|
|
1912
|
+
_0x19927b(0x170) + _0x2792fb + '\x20(' + _0x3108f9['task'][_0x19927b(0x1e8)] + ')',
|
|
1913
|
+
_0x19927b(0x160) + _0xd68479,
|
|
1914
|
+
_0x19927b(_0x556187._0x263238)
|
|
1915
|
+
][_0x19927b(_0x556187._0x4b457e)]('\x0a'), _0x5c2fa8 = await fetch(_0x4258b8['daemonLocalUrl'] + _0x19927b(0x161), {
|
|
1916
|
+
'method': _0x19927b(_0x556187._0x4ad9bd),
|
|
1917
|
+
'headers': { 'Content-Type': _0x19927b(_0x556187._0x290490) },
|
|
1918
|
+
'body': JSON[_0x19927b(0x112)]({
|
|
1919
|
+
'agent_id': _0x4258b8[_0x19927b(0x14b)],
|
|
1920
|
+
'thread_target': _0xd68479,
|
|
1917
1921
|
'spawn_packet': {
|
|
1918
|
-
'replyTarget':
|
|
1919
|
-
'taskId':
|
|
1922
|
+
'replyTarget': _0xd68479,
|
|
1923
|
+
'taskId': _0x3108f9['task'][_0x19927b(_0x556187._0x2d4dce)]
|
|
1920
1924
|
},
|
|
1921
1925
|
'payload': {
|
|
1922
1926
|
'mode': 'user',
|
|
1923
|
-
'text':
|
|
1927
|
+
'text': _0x4251b4
|
|
1924
1928
|
}
|
|
1925
1929
|
})
|
|
1926
|
-
}),
|
|
1927
|
-
if (!
|
|
1928
|
-
throw new Error(
|
|
1930
|
+
}), _0x315e7b = await _0x5c2fa8[_0x19927b(0x1a1)]();
|
|
1931
|
+
if (!_0x315e7b['ok'])
|
|
1932
|
+
throw new Error(_0x315e7b[_0x19927b(0x146)] ?? 'enter-handoff\x20failed');
|
|
1929
1933
|
return [
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
][
|
|
1934
|
+
_0x19927b(_0x556187._0x32d8b7) + _0x2792fb + _0x19927b(_0x556187._0x9e1d58) + _0xd68479 + _0x19927b(0xde),
|
|
1935
|
+
_0x19927b(0x1ea) + (_0x315e7b['disposition'] === 'queued' ? 'queued' : 'started') + '.',
|
|
1936
|
+
_0x19927b(0xd3)
|
|
1937
|
+
][_0x19927b(_0x556187._0x4b457e)]('\x0a');
|
|
1934
1938
|
}
|
|
1935
1939
|
}
|
|
1936
|
-
const
|
|
1937
|
-
'attachmentIds':
|
|
1938
|
-
'content':
|
|
1939
|
-
'target':
|
|
1940
|
-
'visibility':
|
|
1940
|
+
const _0x2c1108 = await _0x4258b8[_0x19927b(_0x556187._0x93dc54)][_0x19927b(0x149)]({
|
|
1941
|
+
'attachmentIds': _0x42e2bd[_0x19927b(0x1cc)],
|
|
1942
|
+
'content': _0x42e2bd[_0x19927b(_0x556187._0x1d03fe)],
|
|
1943
|
+
'target': _0x42e2bd[_0x19927b(0x174)],
|
|
1944
|
+
'visibility': _0x42e2bd[_0x19927b(0x1e4)]
|
|
1941
1945
|
});
|
|
1942
|
-
return
|
|
1946
|
+
return _0x19927b(_0x556187._0x49db3b) + _0x42e2bd[_0x19927b(0x174)] + _0x19927b(_0x556187._0x16b367) + _0x2c1108['messageId'];
|
|
1943
1947
|
},
|
|
1944
1948
|
async 'check_messages'() {
|
|
1945
|
-
const
|
|
1946
|
-
if (!
|
|
1947
|
-
const
|
|
1948
|
-
if (
|
|
1949
|
-
return formatCheckMessages(
|
|
1949
|
+
const _0x457417 = _0x48533e, _0x1a7539 = await _0x4258b8['client'][_0x457417(0x244)]();
|
|
1950
|
+
if (!_0x4258b8[_0x457417(0x203)]) {
|
|
1951
|
+
const _0x482822 = await _0x2f824c();
|
|
1952
|
+
if (_0x482822)
|
|
1953
|
+
return formatCheckMessages(_0x1a7539[_0x457417(_0x2221c1._0x563fa5)][_0x457417(_0x2221c1._0xba0c7a)](_0x49d291 => !_0x482822[_0x457417(0xf1)](_0x49d291['target'])));
|
|
1950
1954
|
}
|
|
1951
|
-
return formatCheckMessages(
|
|
1955
|
+
return formatCheckMessages(_0x1a7539[_0x457417(0x1a6)]);
|
|
1952
1956
|
},
|
|
1953
|
-
async 'read_history'(
|
|
1954
|
-
const
|
|
1955
|
-
return formatHistory(
|
|
1957
|
+
async 'read_history'(_0x24c19b) {
|
|
1958
|
+
const _0x53fcfc = _0x48533e, _0x3acc35 = await _0x4258b8[_0x53fcfc(_0x3b30f0._0x576163)][_0x53fcfc(0x15e)](_0x24c19b);
|
|
1959
|
+
return formatHistory(_0x3acc35);
|
|
1956
1960
|
},
|
|
1957
1961
|
async 'list_server'() {
|
|
1958
|
-
const
|
|
1959
|
-
return formatServerDirectory(
|
|
1962
|
+
const _0xb56f61 = _0x48533e, _0x4eb78e = await _0x4258b8[_0xb56f61(_0xbf3700._0x4e06e7)]['listServer']();
|
|
1963
|
+
return formatServerDirectory(_0x4eb78e);
|
|
1960
1964
|
},
|
|
1961
|
-
async 'list_tasks'(
|
|
1962
|
-
const
|
|
1963
|
-
let
|
|
1964
|
-
if (
|
|
1965
|
+
async 'list_tasks'(_0xd7146a) {
|
|
1966
|
+
const _0x451631 = _0x48533e, _0x1c0c24 = await _0x4258b8[_0x451631(_0x40e208._0x4841ad)][_0x451631(0x221)](_0xd7146a);
|
|
1967
|
+
let _0x176be2;
|
|
1968
|
+
if (_0x4258b8[_0x451631(_0x40e208._0x408fb4)] && _0x4258b8[_0x451631(_0x40e208._0x361a13)])
|
|
1965
1969
|
try {
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
const
|
|
1969
|
-
|
|
1970
|
-
for (const
|
|
1971
|
-
if (
|
|
1970
|
+
const _0x5b3a74 = await fetch(_0x4258b8['daemonLocalUrl'] + _0x451631(_0x40e208._0x2d0b3d) + encodeURIComponent(_0x4258b8['agentId'])), _0x3a2a7a = await _0x5b3a74[_0x451631(_0x40e208._0x5589c0)]();
|
|
1971
|
+
if (_0x3a2a7a['ok']) {
|
|
1972
|
+
const _0x2de6e7 = _0xd7146a[_0x451631(0xd1)] + ':';
|
|
1973
|
+
_0x176be2 = new Set();
|
|
1974
|
+
for (const _0x2e59f0 of _0x3a2a7a[_0x451631(_0x40e208._0x120969)]) {
|
|
1975
|
+
if (_0x2e59f0['status'] === _0x451631(0x20e))
|
|
1972
1976
|
continue;
|
|
1973
|
-
if (
|
|
1974
|
-
const
|
|
1975
|
-
if (
|
|
1976
|
-
|
|
1977
|
+
if (_0x2e59f0[_0x451631(0xe5)]?.[_0x451631(0x159)](_0x2de6e7)) {
|
|
1978
|
+
const _0x381b61 = _0x2e59f0[_0x451631(_0x40e208._0x549b3c)][_0x451631(0x229)](_0x2de6e7['length']), _0xc90e88 = _0x1c0c24[_0x451631(0x122)][_0x451631(0x11a)](_0x8992d6 => _0x8992d6[_0x451631(0x102)]?.[_0x451631(0x159)](_0x381b61) === !![]);
|
|
1979
|
+
if (_0xc90e88?.[_0x451631(0x23a)] != null) {
|
|
1980
|
+
_0x176be2[_0x451631(0x1f2)](_0xc90e88[_0x451631(_0x40e208._0x255016)]);
|
|
1977
1981
|
continue;
|
|
1978
1982
|
}
|
|
1979
1983
|
}
|
|
1980
|
-
if (
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1984
|
+
if (_0x2e59f0[_0x451631(_0x40e208._0x2eefb5)]) {
|
|
1985
|
+
const _0x49281c = _0x1c0c24[_0x451631(_0x40e208._0x52ffcb)][_0x451631(_0x40e208._0x30503f)](_0x5c7630 => _0x5c7630[_0x451631(0x1e8)] === _0x2e59f0['task_id']);
|
|
1986
|
+
_0x49281c?.[_0x451631(_0x40e208._0x255016)] != null && _0x176be2[_0x451631(0x1f2)](_0x49281c[_0x451631(0x23a)]);
|
|
1983
1987
|
}
|
|
1984
1988
|
}
|
|
1985
1989
|
}
|
|
1986
1990
|
} catch {
|
|
1987
1991
|
}
|
|
1988
|
-
return formatTaskList(
|
|
1992
|
+
return formatTaskList(_0x1c0c24[_0x451631(0x122)], _0x176be2);
|
|
1989
1993
|
},
|
|
1990
|
-
async 'create_tasks'(
|
|
1991
|
-
const
|
|
1992
|
-
|
|
1993
|
-
const
|
|
1994
|
-
return formatCreatedTasks(
|
|
1994
|
+
async 'create_tasks'(_0x2c5139) {
|
|
1995
|
+
const _0x40d86e = _0x48533e;
|
|
1996
|
+
_0x55fa56(_0x40d86e(_0x244a5a._0x4a86b1), _0x2c5139[_0x40d86e(0xd1)]);
|
|
1997
|
+
const _0x218115 = await _0x4258b8[_0x40d86e(_0x244a5a._0x380690)]['createTasks'](_0x2c5139);
|
|
1998
|
+
return formatCreatedTasks(_0x218115['tasks']);
|
|
1995
1999
|
},
|
|
1996
|
-
async 'claim_tasks'(
|
|
1997
|
-
const
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
_0x34541a: 0x303,
|
|
2002
|
-
_0x5ab705: 0x265,
|
|
2003
|
-
_0x5b8b40: 0x31b
|
|
2004
|
-
}, _0x4e2ac = _0x4133d2;
|
|
2005
|
-
if (_0x41641c[_0x4e2ac(0x28e)]) {
|
|
2006
|
-
_0x33ecd8('claim_tasks', _0x2c8340[_0x4e2ac(_0x480baf._0x57f487)]);
|
|
2007
|
-
if (_0x2c8340[_0x4e2ac(0x206)] && _0x2c8340[_0x4e2ac(0x206)][_0x4e2ac(0x230)] > 0x0)
|
|
2000
|
+
async 'claim_tasks'(_0x12957e) {
|
|
2001
|
+
const _0x45464c = _0x48533e;
|
|
2002
|
+
if (_0x4258b8[_0x45464c(0x203)]) {
|
|
2003
|
+
_0x55fa56(_0x45464c(0x255), _0x12957e[_0x45464c(0xd1)]);
|
|
2004
|
+
if (_0x12957e[_0x45464c(0x11e)] && _0x12957e[_0x45464c(0x11e)][_0x45464c(_0x526f40._0x2df482)] > 0x0)
|
|
2008
2005
|
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
2009
|
-
if (!
|
|
2010
|
-
throw new Error(
|
|
2006
|
+
if (!_0x12957e[_0x45464c(_0x526f40._0x41a844)] || _0x12957e['subtask_numbers'][_0x45464c(_0x526f40._0x5c86e8)] === 0x0)
|
|
2007
|
+
throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
|
|
2011
2008
|
}
|
|
2012
|
-
const
|
|
2013
|
-
const
|
|
2014
|
-
if (!
|
|
2015
|
-
return
|
|
2009
|
+
const _0x4d39bc = await _0x4258b8[_0x45464c(0x176)][_0x45464c(0x1cd)](_0x12957e), _0x88d30 = await Promise['all'](_0x4d39bc[_0x45464c(0x23d)]['map'](async _0x12ccfb => {
|
|
2010
|
+
const _0x516081 = _0x45464c;
|
|
2011
|
+
if (!_0x12ccfb[_0x516081(_0x1f09d7._0x7a6ceb)] || !_0x12ccfb[_0x516081(_0x1f09d7._0xff0608)])
|
|
2012
|
+
return _0x12ccfb;
|
|
2016
2013
|
try {
|
|
2017
|
-
const
|
|
2018
|
-
'channel':
|
|
2019
|
-
'executionMode':
|
|
2020
|
-
'messageId':
|
|
2021
|
-
'taskId':
|
|
2022
|
-
'taskNumber':
|
|
2023
|
-
'threadNumber':
|
|
2014
|
+
const _0xf28a7 = await _0x49042d({
|
|
2015
|
+
'channel': _0x12957e[_0x516081(0xd1)],
|
|
2016
|
+
'executionMode': _0x12ccfb[_0x516081(0x1d5)],
|
|
2017
|
+
'messageId': _0x12ccfb['messageId'],
|
|
2018
|
+
'taskId': _0x12ccfb['taskId'],
|
|
2019
|
+
'taskNumber': _0x12ccfb['taskNumber'],
|
|
2020
|
+
'threadNumber': _0x12ccfb['threadNumber']
|
|
2024
2021
|
});
|
|
2025
|
-
return
|
|
2026
|
-
...
|
|
2027
|
-
...
|
|
2028
|
-
} :
|
|
2029
|
-
} catch (
|
|
2022
|
+
return _0xf28a7 ? {
|
|
2023
|
+
..._0x12ccfb,
|
|
2024
|
+
..._0xf28a7
|
|
2025
|
+
} : _0x12ccfb;
|
|
2026
|
+
} catch (_0x17b634) {
|
|
2030
2027
|
return {
|
|
2031
|
-
...
|
|
2032
|
-
'workerHandoffError':
|
|
2028
|
+
..._0x12ccfb,
|
|
2029
|
+
'workerHandoffError': _0x17b634 instanceof Error ? _0x17b634[_0x516081(_0x1f09d7._0x1dbbef)] : _0x516081(_0x1f09d7._0x510dbe)
|
|
2033
2030
|
};
|
|
2034
2031
|
}
|
|
2035
2032
|
}));
|
|
2036
|
-
return formatClaimTaskResults(
|
|
2033
|
+
return formatClaimTaskResults(_0x88d30);
|
|
2037
2034
|
},
|
|
2038
|
-
async 'unclaim_task'(
|
|
2039
|
-
const
|
|
2040
|
-
if (
|
|
2041
|
-
|
|
2042
|
-
if (
|
|
2043
|
-
throw new Error(
|
|
2035
|
+
async 'unclaim_task'(_0x334857) {
|
|
2036
|
+
const _0x27e03c = _0x48533e;
|
|
2037
|
+
if (_0x4258b8[_0x27e03c(0x203)]) {
|
|
2038
|
+
_0x55fa56(_0x27e03c(0x13b), _0x334857[_0x27e03c(0xd1)]);
|
|
2039
|
+
if (_0x334857[_0x27e03c(0xea)] == null)
|
|
2040
|
+
throw new Error(_0x27e03c(0x1af));
|
|
2044
2041
|
}
|
|
2045
|
-
const
|
|
2046
|
-
return formatUnclaimTaskResult(
|
|
2042
|
+
const _0x287d48 = await _0x4258b8[_0x27e03c(0x176)][_0x27e03c(0x1eb)](_0x334857);
|
|
2043
|
+
return formatUnclaimTaskResult(_0x287d48);
|
|
2047
2044
|
},
|
|
2048
|
-
async 'update_task_status'(
|
|
2049
|
-
const
|
|
2050
|
-
|
|
2051
|
-
const
|
|
2052
|
-
return formatUpdateTaskStatusResult(
|
|
2045
|
+
async 'update_task_status'(_0x1f9fa2) {
|
|
2046
|
+
const _0x491841 = _0x48533e;
|
|
2047
|
+
_0x55fa56(_0x491841(0x195), _0x1f9fa2[_0x491841(_0x1ee732._0x440319)]);
|
|
2048
|
+
const _0x32f661 = await _0x4258b8[_0x491841(_0x1ee732._0x5902aa)][_0x491841(_0x1ee732._0x27aa9a)](_0x1f9fa2);
|
|
2049
|
+
return formatUpdateTaskStatusResult(_0x32f661);
|
|
2053
2050
|
},
|
|
2054
|
-
async 'upload_file'(
|
|
2055
|
-
const
|
|
2056
|
-
sizeBytes:
|
|
2057
|
-
...
|
|
2058
|
-
} =
|
|
2059
|
-
'channel':
|
|
2060
|
-
...
|
|
2051
|
+
async 'upload_file'(_0x5abd14) {
|
|
2052
|
+
const _0x3d11ed = _0x48533e, _0x36a4c4 = await _0x4258b8['uploadPreparer'](_0x5abd14[_0x3d11ed(_0x287648._0x5925c4)]), {
|
|
2053
|
+
sizeBytes: _0xb35fc7,
|
|
2054
|
+
..._0xd72225
|
|
2055
|
+
} = _0x36a4c4, _0x58444c = await _0x4258b8['client']['uploadFile']({
|
|
2056
|
+
'channel': _0x5abd14['channel'],
|
|
2057
|
+
..._0xd72225
|
|
2061
2058
|
});
|
|
2062
|
-
return formatUploadResult(
|
|
2059
|
+
return formatUploadResult(_0x58444c);
|
|
2063
2060
|
},
|
|
2064
|
-
async 'view_file'(
|
|
2065
|
-
const
|
|
2066
|
-
if (
|
|
2067
|
-
return formatViewFileResult(
|
|
2068
|
-
const
|
|
2069
|
-
'attachmentId':
|
|
2070
|
-
'contentType':
|
|
2071
|
-
'data':
|
|
2072
|
-
'originalFilename':
|
|
2061
|
+
async 'view_file'(_0x3ea274) {
|
|
2062
|
+
const _0x10b34a = _0x48533e, _0x352236 = await _0x4258b8['attachmentCache'][_0x10b34a(_0x185a19._0x539bb2)](_0x3ea274[_0x10b34a(0xd5)]);
|
|
2063
|
+
if (_0x352236)
|
|
2064
|
+
return formatViewFileResult(_0x352236, !![]);
|
|
2065
|
+
const _0x539327 = await _0x4258b8[_0x10b34a(0x176)][_0x10b34a(0x1b4)](_0x3ea274[_0x10b34a(_0x185a19._0x40b965)]), _0x1c99dd = await _0x4258b8[_0x10b34a(_0x185a19._0x407290)][_0x10b34a(0x214)]({
|
|
2066
|
+
'attachmentId': _0x3ea274[_0x10b34a(0xd5)],
|
|
2067
|
+
'contentType': _0x539327[_0x10b34a(_0x185a19._0x58a7da)],
|
|
2068
|
+
'data': _0x539327[_0x10b34a(0x17a)],
|
|
2069
|
+
'originalFilename': _0x539327[_0x10b34a(0x1de)]
|
|
2073
2070
|
});
|
|
2074
|
-
return formatViewFileResult(
|
|
2071
|
+
return formatViewFileResult(_0x1c99dd, ![]);
|
|
2075
2072
|
},
|
|
2076
|
-
async 'get_worker_status'(
|
|
2077
|
-
const
|
|
2078
|
-
if (!
|
|
2079
|
-
return
|
|
2080
|
-
const
|
|
2081
|
-
if (!
|
|
2082
|
-
return
|
|
2083
|
-
return
|
|
2084
|
-
},
|
|
2085
|
-
async 'park_worker'(_0x5f3b62) {
|
|
2086
|
-
const _0x5c530f = _0x4133d2;
|
|
2087
|
-
if (!_0x41641c[_0x5c530f(_0x19485d._0x104339)])
|
|
2088
|
-
return _0x5c530f(_0x19485d._0x29af33);
|
|
2089
|
-
const _0x472936 = await fetch(_0x41641c[_0x5c530f(0x2a9)] + '/workers/park', {
|
|
2090
|
-
'method': _0x5c530f(_0x19485d._0x5b923a),
|
|
2091
|
-
'headers': { 'Content-Type': _0x5c530f(0x298) },
|
|
2092
|
-
'body': JSON['stringify']({ 'work_key': _0x5f3b62[_0x5c530f(0x2f7)] })
|
|
2093
|
-
}), _0x144bab = await _0x472936[_0x5c530f(_0x19485d._0x5978e4)]();
|
|
2094
|
-
if (!_0x144bab['ok'])
|
|
2095
|
-
throw new Error(_0x144bab[_0x5c530f(_0x19485d._0x5ea861)] ?? _0x5c530f(0x261));
|
|
2096
|
-
return 'Worker\x20\x22' + _0x5f3b62[_0x5c530f(_0x19485d._0x166f56)] + _0x5c530f(0x22b);
|
|
2073
|
+
async 'get_worker_status'(_0x4687be) {
|
|
2074
|
+
const _0x49a536 = _0x48533e;
|
|
2075
|
+
if (!_0x4258b8['daemonLocalUrl'])
|
|
2076
|
+
return _0x49a536(_0x179561._0x285449);
|
|
2077
|
+
const _0x15251e = await fetch(_0x4258b8[_0x49a536(0x183)] + _0x49a536(_0x179561._0x3ac1a6) + encodeURIComponent(_0x4687be['work_key'])), _0x4aafb2 = await _0x15251e[_0x49a536(_0x179561._0x5aa697)]();
|
|
2078
|
+
if (!_0x4aafb2['ok'])
|
|
2079
|
+
return _0x49a536(0xd4) + _0x4687be[_0x49a536(0x256)] + '\x22\x20not\x20found';
|
|
2080
|
+
return _0x49a536(_0x179561._0x2856ea) + _0x4687be['work_key'] + _0x49a536(0x1aa) + _0x4aafb2['status'];
|
|
2097
2081
|
},
|
|
2098
|
-
async '
|
|
2099
|
-
const
|
|
2100
|
-
if (!
|
|
2101
|
-
return
|
|
2102
|
-
const
|
|
2082
|
+
async 'park_worker'(_0x591428) {
|
|
2083
|
+
const _0x1ea1a7 = _0x48533e;
|
|
2084
|
+
if (!_0x4258b8[_0x1ea1a7(0x183)])
|
|
2085
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2086
|
+
const _0x205681 = await fetch(_0x4258b8['daemonLocalUrl'] + _0x1ea1a7(0x204), {
|
|
2103
2087
|
'method': 'POST',
|
|
2104
|
-
'headers': { 'Content-Type':
|
|
2105
|
-
'body': JSON[
|
|
2106
|
-
|
|
2107
|
-
|
|
2088
|
+
'headers': { 'Content-Type': _0x1ea1a7(0x105) },
|
|
2089
|
+
'body': JSON[_0x1ea1a7(_0x3bfbd5._0xf46d90)]({ 'work_key': _0x591428[_0x1ea1a7(0x256)] })
|
|
2090
|
+
}), _0x2630a7 = await _0x205681[_0x1ea1a7(0x1a1)]();
|
|
2091
|
+
if (!_0x2630a7['ok'])
|
|
2092
|
+
throw new Error(_0x2630a7[_0x1ea1a7(_0x3bfbd5._0x39989e)] ?? _0x1ea1a7(_0x3bfbd5._0x10bdea));
|
|
2093
|
+
return _0x1ea1a7(_0x3bfbd5._0x24791c) + _0x591428[_0x1ea1a7(_0x3bfbd5._0x5ec8bc)] + '\x22\x20parked.\x20Same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.';
|
|
2094
|
+
},
|
|
2095
|
+
async 'mark_waiting_input'(_0x57327e) {
|
|
2096
|
+
const _0x203b62 = _0x48533e;
|
|
2097
|
+
if (!_0x4258b8[_0x203b62(_0x45f739._0x2f5558)] || !_0x4258b8[_0x203b62(0x14b)])
|
|
2098
|
+
return _0x203b62(0x17f);
|
|
2099
|
+
const _0x57ee17 = await fetch(_0x4258b8[_0x203b62(_0x45f739._0x465dc3)] + _0x203b62(_0x45f739._0x442b80), {
|
|
2100
|
+
'method': _0x203b62(_0x45f739._0x4dd5fa),
|
|
2101
|
+
'headers': { 'Content-Type': _0x203b62(0x105) },
|
|
2102
|
+
'body': JSON['stringify']({
|
|
2103
|
+
'work_key': _0x57327e[_0x203b62(_0x45f739._0x56104c)],
|
|
2104
|
+
'agent_id': _0x4258b8[_0x203b62(0x14b)]
|
|
2108
2105
|
})
|
|
2109
|
-
}),
|
|
2110
|
-
if (!
|
|
2111
|
-
throw new Error(
|
|
2112
|
-
return
|
|
2106
|
+
}), _0x28eea3 = await _0x57ee17['json']();
|
|
2107
|
+
if (!_0x28eea3['ok'])
|
|
2108
|
+
throw new Error(_0x28eea3[_0x203b62(_0x45f739._0x28a8d1)] ?? _0x203b62(0x154));
|
|
2109
|
+
return _0x203b62(0xd4) + _0x57327e['work_key'] + _0x203b62(0x1fd);
|
|
2113
2110
|
},
|
|
2114
|
-
async 'escalate_to_main'(
|
|
2115
|
-
const
|
|
2116
|
-
if (!
|
|
2117
|
-
return
|
|
2118
|
-
const
|
|
2119
|
-
'method':
|
|
2120
|
-
'headers': { 'Content-Type':
|
|
2121
|
-
'body': JSON[
|
|
2122
|
-
'work_key':
|
|
2123
|
-
'reason':
|
|
2111
|
+
async 'escalate_to_main'(_0x1e153a) {
|
|
2112
|
+
const _0x4c3ddc = _0x48533e;
|
|
2113
|
+
if (!_0x4258b8[_0x4c3ddc(_0x16e611._0x31b40d)])
|
|
2114
|
+
return _0x4c3ddc(_0x16e611._0x6dee82);
|
|
2115
|
+
const _0x51c306 = await fetch(_0x4258b8[_0x4c3ddc(0x183)] + _0x4c3ddc(0x104), {
|
|
2116
|
+
'method': _0x4c3ddc(0x1a8),
|
|
2117
|
+
'headers': { 'Content-Type': _0x4c3ddc(_0x16e611._0x1d0bde) },
|
|
2118
|
+
'body': JSON['stringify']({
|
|
2119
|
+
'work_key': _0x1e153a[_0x4c3ddc(_0x16e611._0x6ce2bc)],
|
|
2120
|
+
'reason': _0x1e153a[_0x4c3ddc(0x108)]
|
|
2124
2121
|
})
|
|
2125
|
-
}),
|
|
2126
|
-
if (!
|
|
2127
|
-
throw new Error(
|
|
2128
|
-
return
|
|
2122
|
+
}), _0xee7284 = await _0x51c306[_0x4c3ddc(_0x16e611._0x30117d)]();
|
|
2123
|
+
if (!_0xee7284['ok'])
|
|
2124
|
+
throw new Error(_0xee7284[_0x4c3ddc(0x146)] ?? _0x4c3ddc(_0x16e611._0x1e00f1));
|
|
2125
|
+
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x1e153a[_0x4c3ddc(0x108)];
|
|
2129
2126
|
}
|
|
2130
2127
|
};
|
|
2131
2128
|
}
|
|
2132
|
-
function textResult(
|
|
2133
|
-
const
|
|
2129
|
+
function textResult(_0x26b1bc, _0x16992c = ![]) {
|
|
2130
|
+
const _0x5d3a41 = { _0xfb5852: 0x21c }, _0x15aaa5 = _0x4641dd;
|
|
2134
2131
|
return {
|
|
2135
2132
|
'content': [{
|
|
2136
|
-
'type':
|
|
2137
|
-
'text':
|
|
2133
|
+
'type': _0x15aaa5(_0x5d3a41._0xfb5852),
|
|
2134
|
+
'text': _0x26b1bc
|
|
2138
2135
|
}],
|
|
2139
|
-
...
|
|
2136
|
+
..._0x16992c ? { 'isError': !![] } : {}
|
|
2140
2137
|
};
|
|
2141
2138
|
}
|
|
2142
|
-
async function registerChatBridgeTools(
|
|
2143
|
-
const
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
},
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
'attachment_ids': _0xaad158['array'](_0xaad158['string']())[_0xe4c08e(_0x3ee18f._0x3bb559)](),
|
|
2202
|
-
'visibility': _0xaad158[_0xe4c08e(0x378)]([
|
|
2203
|
-
_0xe4c08e(0x239),
|
|
2204
|
-
_0xe4c08e(0x30f)
|
|
2205
|
-
])[_0xe4c08e(_0x3ee18f._0x3bb559)]()[_0xe4c08e(0x28f)](_0xe4c08e(0x353))
|
|
2206
|
-
}, async _0x3984dc => {
|
|
2207
|
-
const _0x2df9c8 = _0xe4c08e;
|
|
2139
|
+
async function registerChatBridgeTools(_0x128d39, _0x1051d7, _0x340f84) {
|
|
2140
|
+
const _0x1b7d66 = {
|
|
2141
|
+
_0x136200: 0x254,
|
|
2142
|
+
_0x4b281e: 0x12f,
|
|
2143
|
+
_0x1f1bdf: 0x200,
|
|
2144
|
+
_0x5f2f93: 0x238,
|
|
2145
|
+
_0x426709: 0x19a,
|
|
2146
|
+
_0x4e3139: 0x1b0,
|
|
2147
|
+
_0x1bdfc5: 0x1c5,
|
|
2148
|
+
_0x52605b: 0x12f,
|
|
2149
|
+
_0x24c67f: 0x158,
|
|
2150
|
+
_0x5c85ab: 0x158,
|
|
2151
|
+
_0x426c9c: 0x245,
|
|
2152
|
+
_0xce87da: 0x199,
|
|
2153
|
+
_0x28a51f: 0x238,
|
|
2154
|
+
_0x7cddaf: 0x12f,
|
|
2155
|
+
_0x2e3a8e: 0x238,
|
|
2156
|
+
_0x348b34: 0x199,
|
|
2157
|
+
_0x5804ab: 0x13c,
|
|
2158
|
+
_0x3bd319: 0x12f,
|
|
2159
|
+
_0x45f6d3: 0x158,
|
|
2160
|
+
_0x36df64: 0x238,
|
|
2161
|
+
_0x4b514c: 0x216,
|
|
2162
|
+
_0x194fb0: 0x158,
|
|
2163
|
+
_0x281c18: 0x238,
|
|
2164
|
+
_0x39fd76: 0x12f,
|
|
2165
|
+
_0x609735: 0x207,
|
|
2166
|
+
_0x27ed18: 0x1c1,
|
|
2167
|
+
_0x2befe7: 0xd6,
|
|
2168
|
+
_0x16f1b5: 0x14f,
|
|
2169
|
+
_0x5e01c0: 0x207,
|
|
2170
|
+
_0x564bae: 0xe8,
|
|
2171
|
+
_0x2c0cef: 0x22c,
|
|
2172
|
+
_0x404f7a: 0xe7,
|
|
2173
|
+
_0x82428f: 0x207,
|
|
2174
|
+
_0x3b189c: 0x144
|
|
2175
|
+
}, _0x106b23 = {
|
|
2176
|
+
_0xe4dcf5: 0xe7,
|
|
2177
|
+
_0x28f5f5: 0x1ef
|
|
2178
|
+
}, _0x50f68c = { _0x2341e3: 0x193 }, _0x1a4680 = {
|
|
2179
|
+
_0x3e8260: 0x14f,
|
|
2180
|
+
_0x502479: 0x188
|
|
2181
|
+
}, _0x592088 = {
|
|
2182
|
+
_0x391a0f: 0x14a,
|
|
2183
|
+
_0x502fb7: 0x1f5
|
|
2184
|
+
}, _0x3bc107 = { _0x362307: 0x13b }, _0x4fc34d = { _0x5723a2: 0x22f }, _0xb5fcbb = { _0x43be2a: 0x14a }, _0x3f2d47 = { _0x85ce01: 0x14a }, _0x2cc595 = {
|
|
2185
|
+
_0x16d3a3: 0x1b0,
|
|
2186
|
+
_0x4ecf18: 0x14a
|
|
2187
|
+
}, _0xdf052e = { _0x1935e7: 0x136 }, _0x2c59dc = _0x4641dd, {z: _0x5a7501} = await import(_0x2c59dc(0x232));
|
|
2188
|
+
_0x128d39[_0x2c59dc(0x207)](_0x2c59dc(_0x1b7d66._0x136200), 'Send\x20a\x20message.\x20If\x20visibility\x20is\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20visibility:\x20aside\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Outside\x20threads,\x20do\x20not\x20set\x20visibility.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages.', {
|
|
2189
|
+
'target': _0x5a7501[_0x2c59dc(_0x1b7d66._0x4b281e)](),
|
|
2190
|
+
'content': _0x5a7501[_0x2c59dc(0x12f)](),
|
|
2191
|
+
'attachment_ids': _0x5a7501[_0x2c59dc(_0x1b7d66._0x1f1bdf)](_0x5a7501['string']())[_0x2c59dc(_0x1b7d66._0x5f2f93)](),
|
|
2192
|
+
'visibility': _0x5a7501[_0x2c59dc(0x199)]([
|
|
2193
|
+
_0x2c59dc(_0x1b7d66._0x426709),
|
|
2194
|
+
'aside'
|
|
2195
|
+
])[_0x2c59dc(_0x1b7d66._0x5f2f93)]()['describe']('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2196
|
+
}, async _0x1c4fa6 => {
|
|
2197
|
+
const _0xab52d3 = _0x2c59dc;
|
|
2208
2198
|
try {
|
|
2209
|
-
return textResult(await
|
|
2210
|
-
} catch (
|
|
2211
|
-
return textResult(
|
|
2199
|
+
return textResult(await _0x1051d7[_0xab52d3(0x254)](_0x1c4fa6));
|
|
2200
|
+
} catch (_0x298fc3) {
|
|
2201
|
+
return textResult(_0x298fc3 instanceof Error ? _0x298fc3['message'] : _0xab52d3(_0xdf052e._0x1935e7), !![]);
|
|
2212
2202
|
}
|
|
2213
|
-
}),
|
|
2214
|
-
const
|
|
2203
|
+
}), _0x128d39[_0x2c59dc(0x207)]('check_messages', 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2204
|
+
const _0x3ac29d = _0x2c59dc;
|
|
2215
2205
|
try {
|
|
2216
|
-
return textResult(await
|
|
2217
|
-
} catch (
|
|
2218
|
-
return textResult(
|
|
2206
|
+
return textResult(await _0x1051d7['check_messages']());
|
|
2207
|
+
} catch (_0x733b05) {
|
|
2208
|
+
return textResult(_0x733b05 instanceof Error ? _0x733b05[_0x3ac29d(0x14a)] : _0x3ac29d(0x1a2), !![]);
|
|
2219
2209
|
}
|
|
2220
|
-
}),
|
|
2221
|
-
'channel':
|
|
2222
|
-
'limit':
|
|
2223
|
-
'before':
|
|
2224
|
-
'after':
|
|
2225
|
-
}, async
|
|
2226
|
-
const
|
|
2210
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(_0x1b7d66._0x4e3139), _0x2c59dc(_0x1b7d66._0x1bdfc5), {
|
|
2211
|
+
'channel': _0x5a7501[_0x2c59dc(_0x1b7d66._0x52605b)](),
|
|
2212
|
+
'limit': _0x5a7501[_0x2c59dc(_0x1b7d66._0x24c67f)]()[_0x2c59dc(0x238)](),
|
|
2213
|
+
'before': _0x5a7501[_0x2c59dc(0x158)]()[_0x2c59dc(0x238)](),
|
|
2214
|
+
'after': _0x5a7501[_0x2c59dc(_0x1b7d66._0x5c85ab)]()[_0x2c59dc(0x238)]()
|
|
2215
|
+
}, async _0x565182 => {
|
|
2216
|
+
const _0x1a2865 = _0x2c59dc;
|
|
2227
2217
|
try {
|
|
2228
|
-
return textResult(await
|
|
2229
|
-
} catch (
|
|
2230
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x1051d7[_0x1a2865(_0x2cc595._0x16d3a3)](_0x565182));
|
|
2219
|
+
} catch (_0xf7d159) {
|
|
2220
|
+
return textResult(_0xf7d159 instanceof Error ? _0xf7d159[_0x1a2865(_0x2cc595._0x4ecf18)] : 'read_history\x20failed', !![]);
|
|
2231
2221
|
}
|
|
2232
|
-
}),
|
|
2233
|
-
const
|
|
2222
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(0xec), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2223
|
+
const _0x493c50 = _0x2c59dc;
|
|
2234
2224
|
try {
|
|
2235
|
-
return textResult(await
|
|
2236
|
-
} catch (
|
|
2237
|
-
return textResult(
|
|
2225
|
+
return textResult(await _0x1051d7[_0x493c50(0xec)]());
|
|
2226
|
+
} catch (_0x3b3ebc) {
|
|
2227
|
+
return textResult(_0x3b3ebc instanceof Error ? _0x3b3ebc[_0x493c50(_0x3f2d47._0x85ce01)] : _0x493c50(0x10a), !![]);
|
|
2238
2228
|
}
|
|
2239
|
-
}),
|
|
2240
|
-
'channel':
|
|
2241
|
-
'status':
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
])[
|
|
2247
|
-
}, async
|
|
2248
|
-
const
|
|
2229
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(_0x1b7d66._0x426c9c), _0x2c59dc(0xd2), {
|
|
2230
|
+
'channel': _0x5a7501['string'](),
|
|
2231
|
+
'status': _0x5a7501[_0x2c59dc(_0x1b7d66._0xce87da)]([
|
|
2232
|
+
_0x2c59dc(0x124),
|
|
2233
|
+
'in_progress',
|
|
2234
|
+
_0x2c59dc(0x1c1),
|
|
2235
|
+
_0x2c59dc(0x18f)
|
|
2236
|
+
])[_0x2c59dc(0x238)]()
|
|
2237
|
+
}, async _0x1c390f => {
|
|
2238
|
+
const _0x3c51e0 = _0x2c59dc;
|
|
2249
2239
|
try {
|
|
2250
|
-
return textResult(await
|
|
2251
|
-
} catch (
|
|
2252
|
-
return textResult(
|
|
2240
|
+
return textResult(await _0x1051d7[_0x3c51e0(0x245)](_0x1c390f));
|
|
2241
|
+
} catch (_0x171e12) {
|
|
2242
|
+
return textResult(_0x171e12 instanceof Error ? _0x171e12[_0x3c51e0(_0xb5fcbb._0x43be2a)] : _0x3c51e0(0x113), !![]);
|
|
2253
2243
|
}
|
|
2254
|
-
}),
|
|
2255
|
-
'channel':
|
|
2256
|
-
'idempotency_key':
|
|
2257
|
-
'tasks':
|
|
2258
|
-
'title':
|
|
2259
|
-
'description':
|
|
2260
|
-
'priority':
|
|
2261
|
-
|
|
2244
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(0x14d), 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.\x20In\x20a\x20thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22),\x20creates\x20subtasks\x20under\x20the\x20existing\x20parent\x20task.', {
|
|
2245
|
+
'channel': _0x5a7501['string'](),
|
|
2246
|
+
'idempotency_key': _0x5a7501['string']()[_0x2c59dc(_0x1b7d66._0x28a51f)](),
|
|
2247
|
+
'tasks': _0x5a7501[_0x2c59dc(0x200)](_0x5a7501['object']({
|
|
2248
|
+
'title': _0x5a7501[_0x2c59dc(0x12f)](),
|
|
2249
|
+
'description': _0x5a7501[_0x2c59dc(_0x1b7d66._0x7cddaf)]()[_0x2c59dc(_0x1b7d66._0x2e3a8e)](),
|
|
2250
|
+
'priority': _0x5a7501[_0x2c59dc(_0x1b7d66._0x348b34)]([
|
|
2251
|
+
_0x2c59dc(0x228),
|
|
2262
2252
|
'medium',
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
])[
|
|
2253
|
+
_0x2c59dc(_0x1b7d66._0x5804ab),
|
|
2254
|
+
'urgent'
|
|
2255
|
+
])[_0x2c59dc(0x238)]()
|
|
2266
2256
|
}))
|
|
2267
|
-
}, async
|
|
2268
|
-
const
|
|
2257
|
+
}, async _0xe5936f => {
|
|
2258
|
+
const _0x440114 = _0x2c59dc;
|
|
2269
2259
|
try {
|
|
2270
|
-
return textResult(await
|
|
2271
|
-
} catch (
|
|
2272
|
-
return textResult(
|
|
2260
|
+
return textResult(await _0x1051d7[_0x440114(0x14d)](_0xe5936f));
|
|
2261
|
+
} catch (_0x4aece5) {
|
|
2262
|
+
return textResult(_0x4aece5 instanceof Error ? _0x4aece5['message'] : _0x440114(_0x4fc34d._0x5723a2), !![]);
|
|
2273
2263
|
}
|
|
2274
|
-
}),
|
|
2275
|
-
'channel':
|
|
2276
|
-
'task_numbers':
|
|
2277
|
-
'subtask_numbers':
|
|
2278
|
-
'message_ids':
|
|
2279
|
-
'evidence':
|
|
2280
|
-
'create_thread':
|
|
2281
|
-
'create_task':
|
|
2282
|
-
}))[
|
|
2283
|
-
'idempotency_key':
|
|
2284
|
-
}, async
|
|
2285
|
-
const
|
|
2264
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(0x255), _0x2c59dc(0x242), {
|
|
2265
|
+
'channel': _0x5a7501[_0x2c59dc(_0x1b7d66._0x3bd319)](),
|
|
2266
|
+
'task_numbers': _0x5a7501['array'](_0x5a7501[_0x2c59dc(_0x1b7d66._0x45f6d3)]())[_0x2c59dc(_0x1b7d66._0x5f2f93)](),
|
|
2267
|
+
'subtask_numbers': _0x5a7501[_0x2c59dc(0x200)](_0x5a7501[_0x2c59dc(_0x1b7d66._0x45f6d3)]())[_0x2c59dc(_0x1b7d66._0x36df64)](),
|
|
2268
|
+
'message_ids': _0x5a7501[_0x2c59dc(0x200)](_0x5a7501[_0x2c59dc(0x12f)]())[_0x2c59dc(0x238)](),
|
|
2269
|
+
'evidence': _0x5a7501[_0x2c59dc(_0x1b7d66._0x4b514c)](_0x5a7501['string'](), _0x5a7501['object']({
|
|
2270
|
+
'create_thread': _0x5a7501[_0x2c59dc(0x1be)]()['optional'](),
|
|
2271
|
+
'create_task': _0x5a7501[_0x2c59dc(0x1be)]()['optional']()
|
|
2272
|
+
}))['optional'](),
|
|
2273
|
+
'idempotency_key': _0x5a7501['string']()[_0x2c59dc(_0x1b7d66._0x5f2f93)]()
|
|
2274
|
+
}, async _0x331da8 => {
|
|
2275
|
+
const _0x372794 = _0x2c59dc;
|
|
2286
2276
|
try {
|
|
2287
|
-
return textResult(await
|
|
2288
|
-
} catch (
|
|
2289
|
-
return textResult(
|
|
2277
|
+
return textResult(await _0x1051d7['claim_tasks'](_0x331da8));
|
|
2278
|
+
} catch (_0x87ad8c) {
|
|
2279
|
+
return textResult(_0x87ad8c instanceof Error ? _0x87ad8c[_0x372794(0x14a)] : _0x372794(0x14c), !![]);
|
|
2290
2280
|
}
|
|
2291
|
-
}),
|
|
2292
|
-
'channel':
|
|
2293
|
-
'task_number':
|
|
2294
|
-
'subtask_number':
|
|
2295
|
-
'idempotency_key':
|
|
2296
|
-
}, async
|
|
2297
|
-
const
|
|
2281
|
+
}), _0x128d39['tool'](_0x2c59dc(0x13b), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2282
|
+
'channel': _0x5a7501[_0x2c59dc(_0x1b7d66._0x3bd319)](),
|
|
2283
|
+
'task_number': _0x5a7501[_0x2c59dc(_0x1b7d66._0x194fb0)](),
|
|
2284
|
+
'subtask_number': _0x5a7501['number']()[_0x2c59dc(_0x1b7d66._0x281c18)](),
|
|
2285
|
+
'idempotency_key': _0x5a7501[_0x2c59dc(_0x1b7d66._0x39fd76)]()['optional']()
|
|
2286
|
+
}, async _0x464f5a => {
|
|
2287
|
+
const _0x148d38 = _0x2c59dc;
|
|
2298
2288
|
try {
|
|
2299
|
-
return textResult(await
|
|
2300
|
-
} catch (
|
|
2301
|
-
return textResult(
|
|
2289
|
+
return textResult(await _0x1051d7[_0x148d38(_0x3bc107._0x362307)](_0x464f5a));
|
|
2290
|
+
} catch (_0x317ae0) {
|
|
2291
|
+
return textResult(_0x317ae0 instanceof Error ? _0x317ae0['message'] : _0x148d38(0x115), !![]);
|
|
2302
2292
|
}
|
|
2303
|
-
}),
|
|
2304
|
-
'channel':
|
|
2305
|
-
'task_number':
|
|
2306
|
-
'subtask_number':
|
|
2307
|
-
'status':
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2293
|
+
}), _0x128d39[_0x2c59dc(_0x1b7d66._0x609735)]('update_task_status', 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.\x20When\x20moving\x20work\x20to\x20in_review,\x20check\x20your\x20memory\x20or\x20channel\x20rules\x20and\x20send\x20a\x20reviewer\x20mention\x20yourself\x20when\x20appropriate.', {
|
|
2294
|
+
'channel': _0x5a7501['string'](),
|
|
2295
|
+
'task_number': _0x5a7501['number'](),
|
|
2296
|
+
'subtask_number': _0x5a7501['number']()['optional'](),
|
|
2297
|
+
'status': _0x5a7501[_0x2c59dc(0x199)]([
|
|
2298
|
+
_0x2c59dc(0x124),
|
|
2299
|
+
_0x2c59dc(0x1c6),
|
|
2300
|
+
_0x2c59dc(_0x1b7d66._0x27ed18),
|
|
2301
|
+
_0x2c59dc(0x18f)
|
|
2312
2302
|
]),
|
|
2313
|
-
'idempotency_key':
|
|
2314
|
-
}, async
|
|
2315
|
-
const
|
|
2303
|
+
'idempotency_key': _0x5a7501['string']()[_0x2c59dc(_0x1b7d66._0x28a51f)]()
|
|
2304
|
+
}, async _0x25fedc => {
|
|
2305
|
+
const _0x95322 = _0x2c59dc;
|
|
2316
2306
|
try {
|
|
2317
|
-
return textResult(await
|
|
2318
|
-
} catch (
|
|
2319
|
-
return textResult(
|
|
2307
|
+
return textResult(await _0x1051d7[_0x95322(0x195)](_0x25fedc));
|
|
2308
|
+
} catch (_0x46ffd4) {
|
|
2309
|
+
return textResult(_0x46ffd4 instanceof Error ? _0x46ffd4[_0x95322(_0x592088._0x391a0f)] : _0x95322(_0x592088._0x502fb7), !![]);
|
|
2320
2310
|
}
|
|
2321
|
-
}),
|
|
2322
|
-
'channel':
|
|
2323
|
-
'file_path':
|
|
2324
|
-
}, async
|
|
2325
|
-
const
|
|
2311
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(_0x1b7d66._0x2befe7), _0x2c59dc(0x231), {
|
|
2312
|
+
'channel': _0x5a7501[_0x2c59dc(0x12f)](),
|
|
2313
|
+
'file_path': _0x5a7501[_0x2c59dc(0x12f)]()
|
|
2314
|
+
}, async _0x3d7b8b => {
|
|
2315
|
+
const _0x3365d1 = _0x2c59dc;
|
|
2326
2316
|
try {
|
|
2327
|
-
return textResult(await
|
|
2328
|
-
} catch (
|
|
2329
|
-
return textResult(
|
|
2317
|
+
return textResult(await _0x1051d7['upload_file'](_0x3d7b8b));
|
|
2318
|
+
} catch (_0x451c5e) {
|
|
2319
|
+
return textResult(_0x451c5e instanceof Error ? _0x451c5e[_0x3365d1(0x14a)] : _0x3365d1(0x100), !![]);
|
|
2330
2320
|
}
|
|
2331
|
-
}),
|
|
2332
|
-
const
|
|
2321
|
+
}), _0x128d39['tool'](_0x2c59dc(_0x1b7d66._0x16f1b5), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x5a7501['string']() }, async _0x2c5d13 => {
|
|
2322
|
+
const _0x1ffbea = _0x2c59dc;
|
|
2333
2323
|
try {
|
|
2334
|
-
return textResult(await
|
|
2335
|
-
} catch (
|
|
2336
|
-
return textResult(
|
|
2324
|
+
return textResult(await _0x1051d7[_0x1ffbea(_0x1a4680._0x3e8260)](_0x2c5d13));
|
|
2325
|
+
} catch (_0x14ac27) {
|
|
2326
|
+
return textResult(_0x14ac27 instanceof Error ? _0x14ac27[_0x1ffbea(0x14a)] : _0x1ffbea(_0x1a4680._0x502479), !![]);
|
|
2337
2327
|
}
|
|
2338
|
-
}),
|
|
2339
|
-
const
|
|
2328
|
+
}), _0x128d39[_0x2c59dc(_0x1b7d66._0x5e01c0)](_0x2c59dc(_0x1b7d66._0x564bae), _0x2c59dc(_0x1b7d66._0x2c0cef), { 'work_key': _0x5a7501[_0x2c59dc(_0x1b7d66._0x4b281e)]() }, async _0x5a4997 => {
|
|
2329
|
+
const _0x2cea4b = _0x2c59dc;
|
|
2340
2330
|
try {
|
|
2341
|
-
return textResult(await
|
|
2342
|
-
} catch (
|
|
2343
|
-
return textResult(
|
|
2331
|
+
return textResult(await _0x1051d7['get_worker_status'](_0x5a4997));
|
|
2332
|
+
} catch (_0x467d57) {
|
|
2333
|
+
return textResult(_0x467d57 instanceof Error ? _0x467d57['message'] : _0x2cea4b(_0x50f68c._0x2341e3), !![]);
|
|
2344
2334
|
}
|
|
2345
|
-
}),
|
|
2346
|
-
const
|
|
2335
|
+
}), _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(_0x1b7d66._0x404f7a), _0x2c59dc(0x11c), { 'work_key': _0x5a7501[_0x2c59dc(0x12f)]() }, async _0x2af131 => {
|
|
2336
|
+
const _0x22ae13 = _0x2c59dc;
|
|
2347
2337
|
try {
|
|
2348
|
-
return textResult(await
|
|
2349
|
-
} catch (
|
|
2350
|
-
return textResult(
|
|
2338
|
+
return textResult(await _0x1051d7[_0x22ae13(_0x106b23._0xe4dcf5)](_0x2af131));
|
|
2339
|
+
} catch (_0x4b5b61) {
|
|
2340
|
+
return textResult(_0x4b5b61 instanceof Error ? _0x4b5b61['message'] : _0x22ae13(_0x106b23._0x28f5f5), !![]);
|
|
2351
2341
|
}
|
|
2352
|
-
}), !
|
|
2353
|
-
'work_key':
|
|
2354
|
-
'reason':
|
|
2355
|
-
}, async
|
|
2356
|
-
const
|
|
2342
|
+
}), !_0x340f84?.['workerMode'] && _0x128d39[_0x2c59dc(0x207)](_0x2c59dc(0x24e), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2343
|
+
'work_key': _0x5a7501['string'](),
|
|
2344
|
+
'reason': _0x5a7501['string']()
|
|
2345
|
+
}, async _0x167250 => {
|
|
2346
|
+
const _0x459d71 = _0x2c59dc;
|
|
2357
2347
|
try {
|
|
2358
|
-
return textResult(await
|
|
2359
|
-
} catch (
|
|
2360
|
-
return textResult(
|
|
2348
|
+
return textResult(await _0x1051d7['escalate_to_main'](_0x167250));
|
|
2349
|
+
} catch (_0x1132b6) {
|
|
2350
|
+
return textResult(_0x1132b6 instanceof Error ? _0x1132b6['message'] : _0x459d71(0x157), !![]);
|
|
2361
2351
|
}
|
|
2362
|
-
}),
|
|
2363
|
-
const
|
|
2352
|
+
}), _0x340f84?.[_0x2c59dc(0x203)] && _0x128d39[_0x2c59dc(_0x1b7d66._0x82428f)](_0x2c59dc(_0x1b7d66._0x3b189c), _0x2c59dc(0x12c), { 'work_key': _0x5a7501[_0x2c59dc(_0x1b7d66._0x39fd76)]() }, async _0x2d77a9 => {
|
|
2353
|
+
const _0x59bdf6 = _0x2c59dc;
|
|
2364
2354
|
try {
|
|
2365
|
-
return textResult(await
|
|
2366
|
-
} catch (
|
|
2367
|
-
return textResult(
|
|
2355
|
+
return textResult(await _0x1051d7['mark_waiting_input'](_0x2d77a9));
|
|
2356
|
+
} catch (_0x5c6ac8) {
|
|
2357
|
+
return textResult(_0x5c6ac8 instanceof Error ? _0x5c6ac8[_0x59bdf6(0x14a)] : _0x59bdf6(0x154), !![]);
|
|
2368
2358
|
}
|
|
2369
2359
|
});
|
|
2370
2360
|
}
|
|
2371
|
-
async function createChatBridgeServer(
|
|
2372
|
-
const
|
|
2373
|
-
'name':
|
|
2374
|
-
'version':
|
|
2375
|
-
}),
|
|
2376
|
-
return await registerChatBridgeTools(
|
|
2377
|
-
'handlers':
|
|
2378
|
-
'server':
|
|
2361
|
+
async function createChatBridgeServer(_0x153a8e) {
|
|
2362
|
+
const _0x36ac9a = { _0x1a9b7f: 0x1ff }, _0x1e880e = _0x4641dd, {McpServer: _0xce9474} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0xdb834e = new _0xce9474({
|
|
2363
|
+
'name': 'chat',
|
|
2364
|
+
'version': _0x1e880e(_0x36ac9a._0x1a9b7f)
|
|
2365
|
+
}), _0x3aebf4 = createChatBridgeHandlers(_0x153a8e);
|
|
2366
|
+
return await registerChatBridgeTools(_0xdb834e, _0x3aebf4, { 'workerMode': _0x153a8e['workerMode'] }), {
|
|
2367
|
+
'handlers': _0x3aebf4,
|
|
2368
|
+
'server': _0xdb834e
|
|
2379
2369
|
};
|
|
2380
2370
|
}
|
|
2381
|
-
function readFlag(
|
|
2382
|
-
const
|
|
2383
|
-
if (
|
|
2371
|
+
function readFlag(_0x154f0f, _0x197e8b) {
|
|
2372
|
+
const _0x32795d = _0x154f0f['indexOf'](_0x197e8b);
|
|
2373
|
+
if (_0x32795d === -0x1)
|
|
2384
2374
|
return void 0x0;
|
|
2385
|
-
return
|
|
2375
|
+
return _0x154f0f[_0x32795d + 0x1];
|
|
2386
2376
|
}
|
|
2387
|
-
function parseChatBridgeArgs(
|
|
2388
|
-
const
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
throw new Error(_0x378fc4(_0x3d7d40._0x8f55b0));
|
|
2403
|
-
if (_0x504d2b !== void 0x0 && (_0x476626 === void 0x0 || !Number[_0x378fc4(_0x3d7d40._0x5d36a7)](_0x476626) || _0x476626 < 0x0))
|
|
2404
|
-
throw new Error(_0x378fc4(_0x3d7d40._0x519d41));
|
|
2377
|
+
function parseChatBridgeArgs(_0x34022c) {
|
|
2378
|
+
const _0x3ee953 = {
|
|
2379
|
+
_0x2e86dc: 0xdb,
|
|
2380
|
+
_0xdb527e: 0x1e5,
|
|
2381
|
+
_0x32f74f: 0x166,
|
|
2382
|
+
_0x2f56ad: 0x1b6,
|
|
2383
|
+
_0x4654a0: 0x1db,
|
|
2384
|
+
_0x2eace3: 0x1e3
|
|
2385
|
+
}, _0x2e1f17 = _0x4641dd, _0x24f19a = readFlag(_0x34022c, _0x2e1f17(_0x3ee953._0x2e86dc)), _0x326867 = readFlag(_0x34022c, _0x2e1f17(0x135)), _0x2e3624 = readFlag(_0x34022c, '--daemon-api-key'), _0x4ddc3d = readFlag(_0x34022c, '--initial-last-seen-seq'), _0x1552e7 = readFlag(_0x34022c, _0x2e1f17(0x196)) ?? _0x2e1f17(0x1e1), _0x533cd4 = readFlag(_0x34022c, _0x2e1f17(0xed)), _0xcb83cc = readFlag(_0x34022c, _0x2e1f17(_0x3ee953._0xdb527e)), _0x440890 = readFlag(_0x34022c, _0x2e1f17(0x1ce)), _0x5b579f = readFlag(_0x34022c, _0x2e1f17(_0x3ee953._0x32f74f)), _0x4a9940 = readFlag(_0x34022c, '--worker-thread-target'), _0x1f65e9 = _0x34022c[_0x2e1f17(0x209)](_0x2e1f17(0x13f)), _0x489b45 = _0x4ddc3d === void 0x0 ? void 0x0 : Number[_0x2e1f17(_0x3ee953._0x2f56ad)](_0x4ddc3d, 0xa);
|
|
2386
|
+
if (!_0x24f19a)
|
|
2387
|
+
throw new Error('Missing\x20--agent-id');
|
|
2388
|
+
if (!_0x2e3624)
|
|
2389
|
+
throw new Error(_0x2e1f17(_0x3ee953._0x4654a0));
|
|
2390
|
+
if (_0x4ddc3d !== void 0x0 && (_0x489b45 === void 0x0 || !Number[_0x2e1f17(_0x3ee953._0x2eace3)](_0x489b45) || _0x489b45 < 0x0))
|
|
2391
|
+
throw new Error(_0x2e1f17(0x16d));
|
|
2405
2392
|
return {
|
|
2406
|
-
'agentId':
|
|
2407
|
-
'attachmentCacheDir':
|
|
2408
|
-
'daemonApiKey':
|
|
2409
|
-
'daemonLocalUrl':
|
|
2410
|
-
'initialLastSeenSeq':
|
|
2411
|
-
'sessionId':
|
|
2412
|
-
'serverUrl':
|
|
2413
|
-
'workerModeEnabled':
|
|
2414
|
-
'workerSessionId':
|
|
2415
|
-
'workerThreadTarget':
|
|
2416
|
-
'workerMode':
|
|
2393
|
+
'agentId': _0x24f19a,
|
|
2394
|
+
'attachmentCacheDir': _0x326867,
|
|
2395
|
+
'daemonApiKey': _0x2e3624,
|
|
2396
|
+
'daemonLocalUrl': _0x533cd4,
|
|
2397
|
+
'initialLastSeenSeq': _0x489b45,
|
|
2398
|
+
'sessionId': _0xcb83cc,
|
|
2399
|
+
'serverUrl': _0x1552e7,
|
|
2400
|
+
'workerModeEnabled': _0x440890 === void 0x0 ? void 0x0 : _0x440890 !== _0x2e1f17(0x119),
|
|
2401
|
+
'workerSessionId': _0x5b579f,
|
|
2402
|
+
'workerThreadTarget': _0x4a9940,
|
|
2403
|
+
'workerMode': _0x1f65e9
|
|
2417
2404
|
};
|
|
2418
2405
|
}
|
|
2419
|
-
async function runChatBridgeCli(
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
'
|
|
2426
|
-
'
|
|
2427
|
-
'
|
|
2428
|
-
'daemonLocalUrl': _0x2b2445[_0x1ed473(0x2a9)],
|
|
2406
|
+
async function runChatBridgeCli(_0x444bcf) {
|
|
2407
|
+
const _0x53aec4 = {
|
|
2408
|
+
_0x3042ac: 0x20b,
|
|
2409
|
+
_0x5029c3: 0xf0
|
|
2410
|
+
}, _0x2ba8e8 = _0x4641dd, _0x236e90 = parseChatBridgeArgs(_0x444bcf), {StdioServerTransport: _0x8c686f} = await import(_0x2ba8e8(_0x53aec4._0x3042ac)), _0x4d8b8f = createInternalAgentClient(_0x236e90), _0x544ebe = createAttachmentCache({ 'cacheDir': _0x236e90[_0x2ba8e8(_0x53aec4._0x5029c3)] }), _0x3926d6 = await createChatBridgeServer({
|
|
2411
|
+
'agentId': _0x236e90[_0x2ba8e8(0x14b)],
|
|
2412
|
+
'attachmentCache': _0x544ebe,
|
|
2413
|
+
'client': _0x4d8b8f,
|
|
2414
|
+
'daemonLocalUrl': _0x236e90[_0x2ba8e8(0x183)],
|
|
2429
2415
|
'uploadPreparer': prepareUploadFile,
|
|
2430
|
-
'workerModeEnabled':
|
|
2431
|
-
'workerMode':
|
|
2432
|
-
'workerThreadTarget':
|
|
2416
|
+
'workerModeEnabled': _0x236e90[_0x2ba8e8(0x165)],
|
|
2417
|
+
'workerMode': _0x236e90['workerMode'],
|
|
2418
|
+
'workerThreadTarget': _0x236e90['workerThreadTarget']
|
|
2433
2419
|
});
|
|
2434
|
-
await
|
|
2420
|
+
await _0x3926d6[_0x2ba8e8(0x24b)]['connect'](new _0x8c686f());
|
|
2435
2421
|
}
|
|
2436
|
-
var executedAsEntry = process[
|
|
2437
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2422
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x4641dd(0x151)][0x1])['href'] : ![];
|
|
2423
|
+
executedAsEntry && await runChatBridgeCli(process['argv'][_0x4641dd(0x229)](0x2));
|
|
2438
2424
|
export {
|
|
2439
2425
|
createChatBridgeHandlers,
|
|
2440
2426
|
createChatBridgeServer,
|