@dscord/daemon 0.1.68 → 0.1.70
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 +2020 -2006
- package/dist/index.js +10804 -10873
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,519 +1,531 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
1
|
+
const _0x2869e3 = _0x355a;
|
|
2
|
+
(function (_0x357d71, _0x49e847) {
|
|
3
|
+
const _0xf93d92 = {
|
|
4
|
+
_0x339e9d: 0x280,
|
|
5
|
+
_0xd877c: 0x2b2,
|
|
6
|
+
_0x16996b: 0x253,
|
|
7
|
+
_0x36f7f8: 0x2b3,
|
|
8
|
+
_0x44b8a8: 0x233,
|
|
9
|
+
_0x42e8a3: 0x22a,
|
|
10
|
+
_0x192a5a: 0x2f6,
|
|
11
|
+
_0x1acbc5: 0x2a6
|
|
12
|
+
}, _0x1a23fa = _0x355a, _0x4fd799 = _0x357d71();
|
|
13
|
+
while (!![]) {
|
|
14
|
+
try {
|
|
15
|
+
const _0x5c1b1f = parseInt(_0x1a23fa(_0xf93d92._0x339e9d)) / 0x1 * (parseInt(_0x1a23fa(_0xf93d92._0xd877c)) / 0x2) + -parseInt(_0x1a23fa(_0xf93d92._0x16996b)) / 0x3 * (-parseInt(_0x1a23fa(0x18e)) / 0x4) + -parseInt(_0x1a23fa(0x1ca)) / 0x5 + -parseInt(_0x1a23fa(_0xf93d92._0x36f7f8)) / 0x6 + parseInt(_0x1a23fa(_0xf93d92._0x44b8a8)) / 0x7 * (-parseInt(_0x1a23fa(0x25d)) / 0x8) + -parseInt(_0x1a23fa(0x2ee)) / 0x9 * (parseInt(_0x1a23fa(_0xf93d92._0x42e8a3)) / 0xa) + -parseInt(_0x1a23fa(_0xf93d92._0x192a5a)) / 0xb * (-parseInt(_0x1a23fa(_0xf93d92._0x1acbc5)) / 0xc);
|
|
16
|
+
if (_0x5c1b1f === _0x49e847)
|
|
17
|
+
break;
|
|
18
|
+
else
|
|
19
|
+
_0x4fd799['push'](_0x4fd799['shift']());
|
|
20
|
+
} catch (_0x3ff5e7) {
|
|
21
|
+
_0x4fd799['push'](_0x4fd799['shift']());
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}(_0x2c5c, 0xeaf96));
|
|
25
|
+
import { pathToFileURL } from 'node:url';
|
|
26
|
+
import {
|
|
27
|
+
mkdir,
|
|
28
|
+
readFile,
|
|
29
|
+
readdir,
|
|
30
|
+
stat,
|
|
31
|
+
writeFile
|
|
32
|
+
} from 'node:fs/promises';
|
|
33
|
+
import { homedir } from 'node:os';
|
|
34
|
+
import _0x40ff1a from 'node:path';
|
|
35
|
+
function _0x2c5c() {
|
|
36
|
+
const _0xb4c733 = [
|
|
37
|
+
'Dg9KBW',
|
|
38
|
+
'yxjNDG',
|
|
39
|
+
'DMfSDwu',
|
|
40
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4Gv2HLBIbTB3zPBMCGD29YAYb0BYbPBL9YzxzPzxCSignOzwnRihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGyw5KihnLBMqGysbYzxzPzxDLCIbTzw50Aw9UihLVDxjZzwXMihDOzw4GyxbWCM9WCMLHDguU',
|
|
41
41
|
'CMvZDwX0CW',
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
42
|
+
'iokaLca',
|
|
43
|
+
'BwvZC2fNzv9Pzhm',
|
|
44
|
+
'mti5otK2mZz2yKXYDu0',
|
|
45
|
+
'zMLSzw5HBwu',
|
|
46
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
47
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
48
|
+
'AwrSzq',
|
|
49
|
+
'l3rHC2TZpW',
|
|
50
|
+
'DgfZA0LK',
|
|
51
|
+
'ywDLBNrjza',
|
|
52
|
+
'mJqYnZD3EgzKA2u',
|
|
53
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
54
|
+
'l3rHC2TZl2nSywLT',
|
|
55
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
56
|
+
'CgfYC2vjBNq',
|
|
57
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
55
58
|
'C2vYDMvY',
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
59
|
+
'v29YA2vYia',
|
|
60
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
61
|
+
'yM9KEvrLEhq',
|
|
62
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
63
|
+
'D29YA2vY',
|
|
64
|
+
'y2HHDa',
|
|
65
|
+
'DgfZA19Pza',
|
|
66
|
+
'Dg9mB3DLCKnHC2u',
|
|
67
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
68
|
+
'cGOTls0G',
|
|
69
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
70
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
71
|
+
'C3rHDhvZ',
|
|
72
|
+
'AhvTyw5Z',
|
|
73
|
+
'w3nLCt0',
|
|
74
|
+
'y29UBMvJDa',
|
|
75
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
76
|
+
'zw51Bq',
|
|
77
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
78
|
+
'Aw5JBhvKzxm',
|
|
79
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
80
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
81
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
70
82
|
'ig1ZzZ0',
|
|
71
|
-
'
|
|
72
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
73
|
-
'mtbZzeXQuuK',
|
|
74
|
-
'D29YA2vYCW',
|
|
75
|
-
'lMrZy29Yza',
|
|
83
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
76
84
|
'y2HHBM5LBa',
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
85
|
+
'C2HHmJu2',
|
|
86
|
+
'y29UDgvUDc10ExbL',
|
|
87
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
88
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
89
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
90
|
+
'mJuYnhfOC3vcsa',
|
|
91
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
92
|
+
'zgvZy3jPChrPB24',
|
|
93
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
94
|
+
'zgvZy3jPyMu',
|
|
95
|
+
'igLUia',
|
|
96
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
97
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
98
|
+
'C2L6zuj5DgvZ',
|
|
99
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
100
|
+
'Dw5JBgfPBv90yxnR',
|
|
101
|
+
'Dg9ju09tDhjPBMC',
|
|
102
|
+
'y29UDgvUDejHC2u2na',
|
|
84
103
|
'l3n0yxj0',
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
104
|
+
'DgfZAY0',
|
|
105
|
+
'D2fPDgLUz19PBNb1Da',
|
|
106
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
107
|
+
'Aw1Hz2uVANbLzW',
|
|
108
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
88
109
|
'AgvHzgvYCW',
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
106
|
-
'zgLNzxn0',
|
|
107
|
-
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
108
|
-
'AgfZ',
|
|
109
|
-
'DgL0Bgu',
|
|
110
|
-
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
111
|
-
'zMv0y2HjBxbS',
|
|
110
|
+
'yMvMB3jL',
|
|
111
|
+
'y3jLyxrLx3rHC2TZ',
|
|
112
|
+
'ywz0zxi',
|
|
113
|
+
'y2HHBM5LBeLK',
|
|
114
|
+
'D29YA2vYtw9Kzq',
|
|
115
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
116
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
117
|
+
'C3rHCNrZv2L0Aa',
|
|
118
|
+
'Agv4',
|
|
119
|
+
'ig1LC3nHz2u9',
|
|
120
|
+
'CM9VDe1LC3nHz2vjza',
|
|
121
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
122
|
+
'igzHAwXLzdOG',
|
|
123
|
+
'ywrK',
|
|
124
|
+
'yMfZzw5HBwu',
|
|
125
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
112
126
|
'yMfZzty0',
|
|
113
|
-
'
|
|
114
|
-
'D29YA2vYsgfUzg9MzG',
|
|
115
|
-
'y3vYC29Y',
|
|
127
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
116
128
|
'pgvTChr5pG',
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
'Agv4',
|
|
123
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
124
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
125
|
-
'BwvZC2fNzuLK',
|
|
126
|
-
'yxjYyxLcDwzMzxi',
|
|
127
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
128
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
129
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
130
|
-
'l3rHC2TZpW',
|
|
131
|
-
'CMvHC29U',
|
|
132
|
-
'zg0T',
|
|
133
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
134
|
-
'iYmJiefNzw50CW',
|
|
135
|
-
'A2LUza',
|
|
136
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
137
|
-
'mtK3otq4mu1TBe9Zta',
|
|
138
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
139
|
-
'C2L6zuj5DgvZ',
|
|
140
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
129
|
+
'Bg9JywXLq29TCgfYzq',
|
|
130
|
+
'ls1Zzxj2zxiTDxjS',
|
|
131
|
+
'DxbSB2fKrMLSzq',
|
|
132
|
+
'DgvZDa',
|
|
133
|
+
'C3vJy2vZCW',
|
|
141
134
|
'C3rYAw5NAwz5',
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'C2vX',
|
|
157
|
-
'DgfZA3m',
|
|
158
|
-
'lsaJ',
|
|
159
|
-
'Dg9KBW',
|
|
160
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
161
|
-
'nZi0DKn0v1LS',
|
|
162
|
-
'C2vUzgvYvhLWzq',
|
|
163
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
164
|
-
'sfruuca',
|
|
165
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
135
|
+
'yxjYyxK',
|
|
136
|
+
'DgHYzwfKu2HVCNrjza',
|
|
137
|
+
'zw50CMLLCW',
|
|
138
|
+
'C2vYDMvYvxjS',
|
|
139
|
+
'mc4WlJa',
|
|
140
|
+
'iJOGC3rHDhvZpq',
|
|
141
|
+
'BgLZDfnLCNzLCG',
|
|
142
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
143
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
144
|
+
'B3b0Aw9UywW',
|
|
145
|
+
'DMLLD19MAwXL',
|
|
146
|
+
'y3vYC29Y',
|
|
147
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
148
|
+
'yxjYyxLcDwzMzxi',
|
|
166
149
|
'ywjVCNq',
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
150
|
+
'nZe0odG0nvLvyNnICa',
|
|
151
|
+
'icHPzdO',
|
|
152
|
+
'yM9KEu1HCMTKB3DU',
|
|
153
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
154
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
155
|
+
'DgfZAW',
|
|
156
|
+
'ihr5Cgu9ywDLBNq',
|
|
157
|
+
'zg0T',
|
|
158
|
+
'CgfYA193B3jRzxi',
|
|
159
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
160
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
161
|
+
'B2jQzwn0',
|
|
162
|
+
'Dgv4Dc9WBgfPBG',
|
|
163
|
+
'BgLZDfrHC2TZ',
|
|
164
|
+
'DgfYz2v0zwq',
|
|
165
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
166
|
+
'AgfZ',
|
|
167
|
+
'CNvUswq',
|
|
168
|
+
'ANnVBG',
|
|
178
169
|
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
170
|
+
'BgvUz3rO',
|
|
171
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
172
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
179
173
|
'C2vUzgvYtMfTzq',
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
174
|
+
'Aw1Hz2uVCg5N',
|
|
175
|
+
'CgfYDgLJAxbHBNrjza',
|
|
176
|
+
'ignSywLTzwq',
|
|
177
|
+
'y2HLy2TnzxnZywDLCW',
|
|
178
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
185
179
|
'y2HHBM5LBe5HBwu',
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
180
|
+
'lIbnzxnZywDLieLeoIa',
|
|
181
|
+
'BwfPBG',
|
|
182
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
183
|
+
'ChvZAa',
|
|
189
184
|
'CxvLDwvK',
|
|
190
|
-
'
|
|
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',
|
|
185
|
+
'BgLZDf9Zzxj2zxi',
|
|
207
186
|
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
187
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
188
|
+
'Bwf0y2Hoyw1L',
|
|
189
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
211
190
|
'BNvTyMvY',
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
191
|
+
'ywDLBNq',
|
|
192
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
193
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
194
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
195
|
+
'Bg93',
|
|
196
|
+
'z2v0rgf0zq',
|
|
197
|
+
'y2HPBgrYzw5eB25L',
|
|
198
|
+
'iYmJienOyw5UzwXZ',
|
|
217
199
|
'CMvHzeHPC3rVCNK',
|
|
200
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
201
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
218
202
|
'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',
|
|
232
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
233
|
-
'BMfTzq',
|
|
234
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
235
|
-
'vgfZAZOG',
|
|
236
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
237
|
-
'DhjPBq',
|
|
238
|
-
'zgvSzxrL',
|
|
239
|
-
'DgfYz2v0',
|
|
240
|
-
'zM9Yy2vszwzYzxnO',
|
|
241
|
-
'y2XPzw50',
|
|
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',
|
|
258
|
-
'yMvMB3jL',
|
|
259
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
260
|
-
'Cgf5Bg9HzePZB24',
|
|
261
|
-
'DgHYzwfKu2HVCNrjza',
|
|
262
|
-
'z2v0sg91CNm',
|
|
263
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
264
|
-
'y2HHBM5LBeLK',
|
|
265
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
266
|
-
'zg9Uzq',
|
|
267
|
-
'Aw1Hz2uVCg5N',
|
|
268
|
-
'Bwf4',
|
|
269
|
-
'Ahr0CdO',
|
|
270
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
271
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
272
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
273
|
-
'ls1Zzxj2zxiTDxjS',
|
|
274
|
-
'y2HHDa',
|
|
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',
|
|
307
|
-
'y29UDgvUDejHC2u2na',
|
|
308
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
309
|
-
'zw50CMLLCW',
|
|
310
|
-
'AM9PBG',
|
|
311
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
312
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
313
203
|
'Dw5RBM93BG',
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'DMfSDwu',
|
|
327
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
328
|
-
'y2XHAw1uyxnRCW',
|
|
329
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
330
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
331
|
-
'r0vu',
|
|
332
|
-
'C2vYDMvYtMfTzq',
|
|
204
|
+
'ihn0yxr1CZ0',
|
|
205
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
206
|
+
'y2f0y2G',
|
|
207
|
+
'igf0DgfJAg1LBNq',
|
|
208
|
+
'AgfZtw9Yzq',
|
|
209
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
210
|
+
'l3nLCNzLCG',
|
|
211
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
212
|
+
'yxv0BZO',
|
|
213
|
+
'BMv4Den1CNnVCG',
|
|
214
|
+
'yxr0ywnOBwvUDhm',
|
|
215
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
333
216
|
'ywDNCMvNyxrLswq',
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
217
|
+
'CMvHC29U',
|
|
218
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
219
|
+
'C29YDa',
|
|
220
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
221
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
222
|
+
'lsaJ',
|
|
223
|
+
'DxnLCG',
|
|
224
|
+
'zMv0y2HjBxbS',
|
|
225
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
226
|
+
'DgfZA051BwjLCG',
|
|
227
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
228
|
+
'zgvZDhjVEwvK',
|
|
229
|
+
'lcbWCMv2Awv3pq',
|
|
230
|
+
'C2L6zq',
|
|
231
|
+
'ywjVCNrLza',
|
|
232
|
+
'kgXLz2fJEsK',
|
|
233
|
+
'AxngAwXL',
|
|
234
|
+
'sfruuca',
|
|
235
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
236
|
+
'w3rHCMDLDd0',
|
|
237
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
238
|
+
'D29YA19RzxK',
|
|
239
|
+
'C2v0',
|
|
240
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
241
|
+
'AxnbyNnVBhv0zq',
|
|
242
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
243
|
+
'yxr0ywnOBwvUDeLK',
|
|
337
244
|
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'
|
|
245
|
+
'zM9Yy2vszwzYzxnO',
|
|
246
|
+
'mtbfswTHqMO',
|
|
247
|
+
'iIbUB3qGzM91BMq',
|
|
248
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
249
|
+
'ywz0zxjtzxe',
|
|
250
|
+
'l2nVBNrLBNq',
|
|
251
|
+
'Dg9gAxHLza',
|
|
252
|
+
'v29YA2vYici',
|
|
253
|
+
'C2XPy2u',
|
|
254
|
+
'ywXS',
|
|
255
|
+
'mJfeu2f3wee',
|
|
256
|
+
'BwvZC2fNzq',
|
|
257
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
258
|
+
'DgfZA3m',
|
|
259
|
+
'lMjPBG',
|
|
260
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
261
|
+
'z2v0u2vJB25KCW',
|
|
262
|
+
'CMvZDwX0sNnVBG',
|
|
263
|
+
'z2v0tw9UDgG',
|
|
264
|
+
'zxzLBNrtzxe',
|
|
265
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
266
|
+
'C2vX',
|
|
344
267
|
'zg06',
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
268
|
+
'D29YA2vYCW',
|
|
269
|
+
'BwLU',
|
|
270
|
+
'Aw5FChjVz3jLC3m',
|
|
271
|
+
'C2vUze1LC3nHz2u',
|
|
272
|
+
'BwvZC2fNzuLK',
|
|
348
273
|
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
349
|
-
'
|
|
350
|
-
'AxngAw5PDgu',
|
|
351
|
-
'DMLZAwjPBgL0Eq',
|
|
352
|
-
'ls1ZzxnZAw9UlwLK',
|
|
353
|
-
'C2nOzwr1BgvKrM9Y',
|
|
354
|
-
'cGOTls0G',
|
|
355
|
-
'DgfZA0LK',
|
|
356
|
-
'khvUA25VD24P',
|
|
357
|
-
'v29YA2vYia',
|
|
358
|
-
'Dw5JBgfPBvrHC2S',
|
|
359
|
-
'ktSGz290ignOyw5UzwW9',
|
|
360
|
-
'CgfYC2u',
|
|
274
|
+
'C2LNBMfS',
|
|
361
275
|
'DMfSDwvZ',
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
276
|
+
'DxbKyxrL',
|
|
277
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
278
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
279
|
+
'C3rYAw5N',
|
|
280
|
+
'DhjPBq',
|
|
281
|
+
'zNjVBq',
|
|
282
|
+
'C3rVCe1HAw4',
|
|
283
|
+
'zMLSzv9WyxrO',
|
|
284
|
+
'BwvZC2fNzxm',
|
|
285
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
371
286
|
'DgHYzwfKswq',
|
|
287
|
+
'ndyXngLKD3PrzG',
|
|
288
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
289
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
290
|
+
'ihrPBwu9',
|
|
372
291
|
'y29UDgvUDfr5Cgu',
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
379
|
-
'
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
292
|
+
'zgLNzxn0',
|
|
293
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
294
|
+
'z2v0rNvSBfLLyxi',
|
|
295
|
+
'DgHYzwfKvgfYz2v0',
|
|
296
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
297
|
+
'ntC5ndq4BK1kEeXc',
|
|
298
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
299
|
+
'Cgf5Bg9HzePZB24',
|
|
300
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
301
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
302
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
303
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
304
|
+
'DxbSB2fKx2zPBgu',
|
|
305
|
+
'l3jLy2vPDMu/',
|
|
306
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
307
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
308
|
+
'y29UDgvUDa',
|
|
309
|
+
'Bwv0yq',
|
|
310
|
+
'CgfYDgLJAxbHBNq',
|
|
386
311
|
'Dg9VBa',
|
|
387
|
-
'
|
|
388
|
-
'
|
|
312
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
313
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
314
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
315
|
+
'DgHYzwfKtNvTyMvY',
|
|
316
|
+
'zg9Uzq',
|
|
317
|
+
'BgLZDf90yxnRCW',
|
|
318
|
+
'ywDNCMvNyxrLswrZ',
|
|
319
|
+
'Dgv4Da',
|
|
389
320
|
'z2v0',
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'
|
|
321
|
+
'C2vUzf9TzxnZywDL',
|
|
322
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
323
|
+
'Aw5FCMv2Awv3',
|
|
324
|
+
'AxngAw5PDgu',
|
|
325
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
326
|
+
'zxH0BMfTzq',
|
|
327
|
+
'zMLSDgvY',
|
|
328
|
+
'C2vZC2LVBKLK',
|
|
329
|
+
'DgfYz2v0zwruyxnR',
|
|
330
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
397
331
|
'igTPBMq9',
|
|
398
|
-
'
|
|
332
|
+
'mtaZnJm2DvncC3zo',
|
|
399
333
|
'C2f2zq',
|
|
334
|
+
'y2XHAw0GzMfPBgvK',
|
|
335
|
+
'C2vUzgvYvhLWzq',
|
|
336
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
337
|
+
'DgfYz2v0',
|
|
338
|
+
'l3rHC2TZ',
|
|
339
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
340
|
+
'DgHYzwfK',
|
|
341
|
+
'y2XHAw1uyxnRCW',
|
|
342
|
+
'r0vu',
|
|
343
|
+
'zgf0yq',
|
|
344
|
+
'C3bSAxq',
|
|
345
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
346
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
347
|
+
'y2XPzw50',
|
|
348
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
349
|
+
'AxnjBNrLz2vY',
|
|
350
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
351
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
352
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
353
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
354
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
355
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
356
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
357
|
+
'lsba',
|
|
358
|
+
'D3m6',
|
|
359
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
360
|
+
'Bgf0zxn0u2vX',
|
|
361
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
362
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
363
|
+
'DhLWzq',
|
|
364
|
+
'ls1Hz2vUDc1Pza',
|
|
365
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
366
|
+
'zgLZCg9ZAxrPB24',
|
|
367
|
+
'C29Tzq',
|
|
368
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
369
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
370
|
+
'mte5odHTyvjiqxG',
|
|
371
|
+
'zMfSC2u',
|
|
372
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
373
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
374
|
+
'A2LUza',
|
|
375
|
+
'y2HHBM5LBhm',
|
|
376
|
+
'ywDLBNrZ',
|
|
377
|
+
'AhjLzG',
|
|
378
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
379
|
+
'D3nZoG',
|
|
380
|
+
'BwfW',
|
|
400
381
|
'l2HPC3rVCNK/',
|
|
401
|
-
'
|
|
402
|
-
'
|
|
382
|
+
'mZrJvMfmq0W',
|
|
383
|
+
'nti5odK3ogXfEhrABW',
|
|
384
|
+
'CMvZCg9UC2u',
|
|
385
|
+
'AM9PBG',
|
|
386
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
387
|
+
'Dgv4Dc9JC3y',
|
|
388
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
389
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
390
|
+
'CMvWBgfJzq',
|
|
391
|
+
'y3jLyxrLzef0',
|
|
392
|
+
'ue9tva',
|
|
393
|
+
'uefuq0G',
|
|
394
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
395
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
396
|
+
'DMLZAwjPBgL0Eq',
|
|
397
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
398
|
+
'Aw5KzxHpzG',
|
|
399
|
+
'BMfTzq',
|
|
400
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
401
|
+
'Aw1Hz2uVD2vICa',
|
|
402
|
+
'Bwf4',
|
|
403
|
+
'BgLTAxq',
|
|
404
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
405
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
406
|
+
'ChjVDg9JB2W',
|
|
407
|
+
'C2vYDMvYtMfTzq',
|
|
408
|
+
'AgLNAa',
|
|
409
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
410
|
+
'C3vIDgfZA051BwjLCG',
|
|
411
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
412
|
+
'zMLUza',
|
|
413
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
414
|
+
'D29YA2vYsgfUzg9MzG',
|
|
415
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
416
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
417
|
+
'CMvHzf9OAxn0B3j5',
|
|
418
|
+
'CgfKu3rHCNq',
|
|
419
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
420
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
421
|
+
'zxjYB3i',
|
|
422
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
423
|
+
'kg5VBMuP',
|
|
424
|
+
'Dg9tDhjPBMC',
|
|
425
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
426
|
+
'CMvXDwvZDfvYBa',
|
|
427
|
+
'y2XHAw1FDgfZA3m',
|
|
428
|
+
'Dw5JBgfPBvrHC2S',
|
|
429
|
+
'DxrMoa',
|
|
430
|
+
'yxnPzgu',
|
|
431
|
+
'xsba',
|
|
432
|
+
'z2v0twLUDxrLCW',
|
|
433
|
+
'DgL0Bgu',
|
|
434
|
+
'B3jPz2LUywXgAwXLBMfTzq'
|
|
403
435
|
];
|
|
404
|
-
|
|
405
|
-
return
|
|
436
|
+
_0x2c5c = function () {
|
|
437
|
+
return _0xb4c733;
|
|
406
438
|
};
|
|
407
|
-
return
|
|
439
|
+
return _0x2c5c();
|
|
408
440
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
} catch (_0x45f5e8) {
|
|
427
|
-
_0x156c76['push'](_0x156c76['shift']());
|
|
428
|
-
}
|
|
441
|
+
function _0x355a(_0x5f470c, _0x1572cb) {
|
|
442
|
+
_0x5f470c = _0x5f470c - 0x178;
|
|
443
|
+
const _0x2c5cdd = _0x2c5c();
|
|
444
|
+
let _0x355aca = _0x2c5cdd[_0x5f470c];
|
|
445
|
+
if (_0x355a['kpbAtO'] === undefined) {
|
|
446
|
+
var _0x57dd42 = function (_0x377d78) {
|
|
447
|
+
const _0x1326b5 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
448
|
+
let _0x40ff1a = '', _0x3f2382 = '';
|
|
449
|
+
for (let _0x1e4bb0 = 0x0, _0x2fb04b, _0x1ecc76, _0x5e4ce8 = 0x0; _0x1ecc76 = _0x377d78['charAt'](_0x5e4ce8++); ~_0x1ecc76 && (_0x2fb04b = _0x1e4bb0 % 0x4 ? _0x2fb04b * 0x40 + _0x1ecc76 : _0x1ecc76, _0x1e4bb0++ % 0x4) ? _0x40ff1a += String['fromCharCode'](0xff & _0x2fb04b >> (-0x2 * _0x1e4bb0 & 0x6)) : 0x0) {
|
|
450
|
+
_0x1ecc76 = _0x1326b5['indexOf'](_0x1ecc76);
|
|
451
|
+
}
|
|
452
|
+
for (let _0x1c7101 = 0x0, _0x4bb0a5 = _0x40ff1a['length']; _0x1c7101 < _0x4bb0a5; _0x1c7101++) {
|
|
453
|
+
_0x3f2382 += '%' + ('00' + _0x40ff1a['charCodeAt'](_0x1c7101)['toString'](0x10))['slice'](-0x2);
|
|
454
|
+
}
|
|
455
|
+
return decodeURIComponent(_0x3f2382);
|
|
456
|
+
};
|
|
457
|
+
_0x355a['CNTcXr'] = _0x57dd42, _0x355a['WITemE'] = {}, _0x355a['kpbAtO'] = !![];
|
|
429
458
|
}
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
mkdir,
|
|
434
|
-
readFile,
|
|
435
|
-
readdir,
|
|
436
|
-
stat,
|
|
437
|
-
writeFile
|
|
438
|
-
} from 'node:fs/promises';
|
|
439
|
-
import { homedir } from 'node:os';
|
|
440
|
-
import _0x971985 from 'node:path';
|
|
459
|
+
const _0x3a5664 = _0x2c5cdd[0x0], _0x373a41 = _0x5f470c + _0x3a5664, _0x44162a = _0x355a['WITemE'][_0x373a41];
|
|
460
|
+
return !_0x44162a ? (_0x355aca = _0x355a['CNTcXr'](_0x355aca), _0x355a['WITemE'][_0x373a41] = _0x355aca) : _0x355aca = _0x44162a, _0x355aca;
|
|
461
|
+
}
|
|
441
462
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
442
|
-
'.csv':
|
|
463
|
+
'.csv': _0x2869e3(0x2b7),
|
|
443
464
|
'.gif': 'image/gif',
|
|
444
|
-
'.jpeg':
|
|
445
|
-
'.jpg':
|
|
446
|
-
'.json':
|
|
447
|
-
'.md':
|
|
448
|
-
'.pdf':
|
|
449
|
-
'.png':
|
|
450
|
-
'.svg':
|
|
451
|
-
'.txt':
|
|
452
|
-
'.webp':
|
|
453
|
-
'.xml':
|
|
454
|
-
'.zip':
|
|
465
|
+
'.jpeg': _0x2869e3(0x19f),
|
|
466
|
+
'.jpg': _0x2869e3(0x19f),
|
|
467
|
+
'.json': 'application/json',
|
|
468
|
+
'.md': 'text/markdown',
|
|
469
|
+
'.pdf': _0x2869e3(0x2cd),
|
|
470
|
+
'.png': _0x2869e3(0x1e2),
|
|
471
|
+
'.svg': _0x2869e3(0x2b8),
|
|
472
|
+
'.txt': _0x2869e3(0x1d6),
|
|
473
|
+
'.webp': _0x2869e3(0x2c5),
|
|
474
|
+
'.xml': _0x2869e3(0x2f9),
|
|
475
|
+
'.zip': _0x2869e3(0x221)
|
|
455
476
|
};
|
|
456
|
-
function guessContentType(
|
|
457
|
-
const
|
|
458
|
-
return MIME_BY_EXTENSION[
|
|
477
|
+
function guessContentType(_0x3f2382) {
|
|
478
|
+
const _0x44eba1 = { _0xe18630: 0x304 }, _0x200fc6 = _0x2869e3;
|
|
479
|
+
return MIME_BY_EXTENSION[_0x40ff1a[_0x200fc6(0x27a)](_0x3f2382)[_0x200fc6(_0x44eba1._0xe18630)]()] ?? 'application/octet-stream';
|
|
459
480
|
}
|
|
460
|
-
function safeFilename(
|
|
461
|
-
|
|
481
|
+
function safeFilename(_0x1e4bb0) {
|
|
482
|
+
const _0x20862e = _0x2869e3;
|
|
483
|
+
return _0x1e4bb0[_0x20862e(0x2ba)](/[\\/]/g, '-');
|
|
462
484
|
}
|
|
463
|
-
function extensionFor(
|
|
464
|
-
const
|
|
465
|
-
return
|
|
485
|
+
function extensionFor(_0x2fb04b) {
|
|
486
|
+
const _0x3e004a = { _0x3ce397: 0x1bd }, _0x5ead75 = _0x2869e3, _0x1ecc76 = Object[_0x5ead75(_0x3e004a._0x3ce397)](MIME_BY_EXTENSION)[_0x5ead75(0x2d0)](([, _0x5e4ce8]) => _0x5e4ce8 === _0x2fb04b);
|
|
487
|
+
return _0x1ecc76?.[0x0] ?? _0x5ead75(0x237);
|
|
466
488
|
}
|
|
467
|
-
async function prepareUploadFile(
|
|
468
|
-
const
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
throw new Error(_0x2f7f77(_0x1511f4._0x25af05) + _0x3bb808[_0x2f7f77(0x247)]);
|
|
483
|
-
const _0x452a88 = await readFile(_0x511cac), _0x3a7adb = _0x971985[_0x2f7f77(_0x1511f4._0x44092b)](_0x511cac);
|
|
489
|
+
async function prepareUploadFile(_0x1c7101, _0x4bb0a5 = {}) {
|
|
490
|
+
const _0x376178 = {
|
|
491
|
+
_0x474d67: 0x305,
|
|
492
|
+
_0x5845d6: 0x297,
|
|
493
|
+
_0x5794f4: 0x1b0
|
|
494
|
+
}, _0x97f84 = _0x2869e3;
|
|
495
|
+
if (!_0x40ff1a[_0x97f84(0x225)](_0x1c7101))
|
|
496
|
+
throw new Error(_0x97f84(0x17f));
|
|
497
|
+
const _0x4b6e10 = await stat(_0x1c7101)['catch'](() => null);
|
|
498
|
+
if (!_0x4b6e10 || !_0x4b6e10[_0x97f84(0x21d)]())
|
|
499
|
+
throw new Error(_0x97f84(_0x376178._0x474d67) + _0x1c7101);
|
|
500
|
+
const _0x53d29c = _0x4bb0a5[_0x97f84(_0x376178._0x5845d6)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
501
|
+
if (_0x4b6e10['size'] > _0x53d29c)
|
|
502
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x4b6e10[_0x97f84(0x21a)]);
|
|
503
|
+
const _0x30788c = await readFile(_0x1c7101), _0x470faa = _0x40ff1a[_0x97f84(_0x376178._0x5794f4)](_0x1c7101);
|
|
484
504
|
return {
|
|
485
|
-
'contentBase64':
|
|
486
|
-
'contentType': guessContentType(
|
|
487
|
-
'filename':
|
|
488
|
-
'sizeBytes':
|
|
505
|
+
'contentBase64': _0x30788c[_0x97f84(0x2dc)](_0x97f84(0x1b2)),
|
|
506
|
+
'contentType': guessContentType(_0x470faa),
|
|
507
|
+
'filename': _0x470faa,
|
|
508
|
+
'sizeBytes': _0x4b6e10[_0x97f84(0x21a)]
|
|
489
509
|
};
|
|
490
510
|
}
|
|
491
|
-
function createAttachmentCache(
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
},
|
|
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));
|
|
511
|
+
function createAttachmentCache(_0x59b61d = {}) {
|
|
512
|
+
const _0x1adf7f = {
|
|
513
|
+
_0x144023: 0x2e6,
|
|
514
|
+
_0x12aa20: 0x227
|
|
515
|
+
}, _0x5e9ae9 = { _0x39fdbd: 0x2b5 }, _0x52246d = _0x2869e3, _0xedfc7b = _0x59b61d['cacheDir'] ?? _0x40ff1a['join'](homedir(), '.dscord', _0x52246d(0x20a));
|
|
504
516
|
return {
|
|
505
|
-
'cacheDir':
|
|
506
|
-
async 'findCachedPath'(
|
|
507
|
-
const
|
|
508
|
-
await mkdir(
|
|
509
|
-
const
|
|
510
|
-
return
|
|
517
|
+
'cacheDir': _0xedfc7b,
|
|
518
|
+
async 'findCachedPath'(_0x1724b8) {
|
|
519
|
+
const _0x484247 = _0x52246d;
|
|
520
|
+
await mkdir(_0xedfc7b, { 'recursive': !![] });
|
|
521
|
+
const _0x325d43 = await readdir(_0xedfc7b), _0x40b50e = _0x325d43['find'](_0x43ffca => _0x43ffca[_0x484247(0x1a9)](_0x1724b8 + '-') || _0x43ffca[_0x484247(0x1a9)](_0x1724b8));
|
|
522
|
+
return _0x40b50e ? _0x40ff1a[_0x484247(_0x5e9ae9._0x39fdbd)](_0xedfc7b, _0x40b50e) : null;
|
|
511
523
|
},
|
|
512
|
-
async 'save'(
|
|
513
|
-
const
|
|
514
|
-
await mkdir(
|
|
515
|
-
const
|
|
516
|
-
return await writeFile(
|
|
524
|
+
async 'save'(_0x49ae21) {
|
|
525
|
+
const _0x5a98fb = _0x52246d;
|
|
526
|
+
await mkdir(_0xedfc7b, { 'recursive': !![] });
|
|
527
|
+
const _0x56e425 = _0x49ae21[_0x5a98fb(_0x1adf7f._0x144023)]?.[_0x5a98fb(0x24c)]() ? safeFilename(_0x49ae21['originalFilename']) : '' + _0x49ae21[_0x5a98fb(0x227)] + extensionFor(_0x49ae21['contentType']), _0x2fcd5a = _0x40ff1a['join'](_0xedfc7b, _0x49ae21[_0x5a98fb(_0x1adf7f._0x12aa20)] + '-' + _0x56e425);
|
|
528
|
+
return await writeFile(_0x2fcd5a, _0x49ae21[_0x5a98fb(0x28b)]), _0x2fcd5a;
|
|
517
529
|
}
|
|
518
530
|
};
|
|
519
531
|
}
|
|
@@ -521,1906 +533,1908 @@ import {
|
|
|
521
533
|
createHash,
|
|
522
534
|
randomUUID
|
|
523
535
|
} from 'node:crypto';
|
|
524
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
525
|
-
function ensureSegment(
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
_0x30ae64: 0x209
|
|
529
|
-
}, _0x239fa2 = _0x4641dd, _0x2c375a = _0xe3fdfc[_0x239fa2(_0x183afb._0x4abd74)]();
|
|
530
|
-
if (!_0x2c375a || _0x2c375a[_0x239fa2(_0x183afb._0x30ae64)](':'))
|
|
536
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x2869e3(0x20e);
|
|
537
|
+
function ensureSegment(_0x2bf25a) {
|
|
538
|
+
const _0x3c6851 = { _0x46ae5c: 0x24c }, _0x21ca8b = _0x2869e3, _0x148b3f = _0x2bf25a[_0x21ca8b(_0x3c6851._0x46ae5c)]();
|
|
539
|
+
if (!_0x148b3f || _0x148b3f[_0x21ca8b(0x182)](':'))
|
|
531
540
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
532
|
-
return
|
|
541
|
+
return _0x148b3f;
|
|
533
542
|
}
|
|
534
|
-
function parseThreadParts(
|
|
535
|
-
const
|
|
536
|
-
|
|
537
|
-
_0xd52d72: 0x223
|
|
538
|
-
}, _0x2b9300 = _0x4641dd, _0x234960 = _0x3e9a56[_0x2b9300(_0x28efd0._0x304b73)](':');
|
|
539
|
-
if (_0x234960[_0x2b9300(_0x28efd0._0xd52d72)] < 0x1 || _0x234960['length'] > 0x2)
|
|
543
|
+
function parseThreadParts(_0x316c70) {
|
|
544
|
+
const _0x514d53 = _0x2869e3, _0x499adc = _0x316c70[_0x514d53(0x28c)](':');
|
|
545
|
+
if (_0x499adc['length'] < 0x1 || _0x499adc[_0x514d53(0x1de)] > 0x2)
|
|
540
546
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
541
547
|
return {
|
|
542
|
-
'channelName': ensureSegment(
|
|
543
|
-
'threadShortId':
|
|
548
|
+
'channelName': ensureSegment(_0x499adc[0x0] ?? ''),
|
|
549
|
+
'threadShortId': _0x499adc[0x1] ? ensureSegment(_0x499adc[0x1]) : null
|
|
544
550
|
};
|
|
545
551
|
}
|
|
546
|
-
function parseTarget(
|
|
547
|
-
const
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
552
|
+
function parseTarget(_0x473680) {
|
|
553
|
+
const _0x5e9b97 = {
|
|
554
|
+
_0x1df5a0: 0x24c,
|
|
555
|
+
_0xc9e4de: 0x1a9,
|
|
556
|
+
_0x437668: 0x231,
|
|
557
|
+
_0x337a31: 0x1e7,
|
|
558
|
+
_0x3343b6: 0x288,
|
|
559
|
+
_0x18497e: 0x1bc,
|
|
560
|
+
_0x4bf678: 0x1d1,
|
|
561
|
+
_0x5cccb5: 0x23f,
|
|
562
|
+
_0x49523d: 0x188,
|
|
563
|
+
_0x45622a: 0x288,
|
|
564
|
+
_0x1c8fc9: 0x1bc
|
|
565
|
+
}, _0x5eb34a = _0x2869e3, _0x442014 = _0x473680[_0x5eb34a(_0x5e9b97._0x1df5a0)]();
|
|
566
|
+
if (!_0x442014)
|
|
557
567
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
558
|
-
if (
|
|
559
|
-
const
|
|
560
|
-
if (!
|
|
568
|
+
if (_0x442014[_0x5eb34a(_0x5e9b97._0xc9e4de)]('#')) {
|
|
569
|
+
const _0x2cdf3e = parseThreadParts(_0x442014[_0x5eb34a(_0x5e9b97._0x437668)](0x1)), _0x1d3401 = '#' + _0x2cdf3e['channelName'];
|
|
570
|
+
if (!_0x2cdf3e[_0x5eb34a(0x1bc)])
|
|
561
571
|
return {
|
|
562
|
-
'channelName':
|
|
563
|
-
'channelTarget':
|
|
564
|
-
'kind':
|
|
565
|
-
'target':
|
|
572
|
+
'channelName': _0x2cdf3e[_0x5eb34a(0x1e7)],
|
|
573
|
+
'channelTarget': _0x1d3401,
|
|
574
|
+
'kind': 'channel',
|
|
575
|
+
'target': _0x1d3401
|
|
566
576
|
};
|
|
567
577
|
return {
|
|
568
|
-
'channelName':
|
|
569
|
-
'channelTarget':
|
|
570
|
-
'kind':
|
|
571
|
-
'target':
|
|
572
|
-
'threadShortId':
|
|
578
|
+
'channelName': _0x2cdf3e[_0x5eb34a(_0x5e9b97._0x337a31)],
|
|
579
|
+
'channelTarget': _0x1d3401,
|
|
580
|
+
'kind': _0x5eb34a(_0x5e9b97._0x3343b6),
|
|
581
|
+
'target': _0x1d3401 + ':' + _0x2cdf3e[_0x5eb34a(_0x5e9b97._0x18497e)],
|
|
582
|
+
'threadShortId': _0x2cdf3e[_0x5eb34a(0x1bc)]
|
|
573
583
|
};
|
|
574
584
|
}
|
|
575
|
-
if (
|
|
576
|
-
const
|
|
577
|
-
if (!
|
|
585
|
+
if (_0x442014['startsWith']('dm:')) {
|
|
586
|
+
const _0x5539c7 = parseThreadParts(_0x442014[_0x5eb34a(0x231)](0x3));
|
|
587
|
+
if (!_0x5539c7['channelName']['startsWith'](_0x5eb34a(_0x5e9b97._0x4bf678)))
|
|
578
588
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
589
|
+
const _0x34d5df = _0x5eb34a(_0x5e9b97._0x5cccb5) + _0x5539c7[_0x5eb34a(0x1e7)];
|
|
590
|
+
if (!_0x5539c7['threadShortId'])
|
|
581
591
|
return {
|
|
582
|
-
'channelName':
|
|
583
|
-
'channelTarget':
|
|
584
|
-
'kind':
|
|
585
|
-
'target':
|
|
592
|
+
'channelName': _0x5539c7['channelName'],
|
|
593
|
+
'channelTarget': _0x34d5df,
|
|
594
|
+
'kind': _0x5eb34a(_0x5e9b97._0x49523d),
|
|
595
|
+
'target': _0x34d5df
|
|
586
596
|
};
|
|
587
597
|
return {
|
|
588
|
-
'channelName':
|
|
589
|
-
'channelTarget':
|
|
590
|
-
'kind':
|
|
591
|
-
'target':
|
|
592
|
-
'threadShortId':
|
|
598
|
+
'channelName': _0x5539c7[_0x5eb34a(0x1e7)],
|
|
599
|
+
'channelTarget': _0x34d5df,
|
|
600
|
+
'kind': _0x5eb34a(_0x5e9b97._0x45622a),
|
|
601
|
+
'target': _0x34d5df + ':' + _0x5539c7[_0x5eb34a(_0x5e9b97._0x1c8fc9)],
|
|
602
|
+
'threadShortId': _0x5539c7[_0x5eb34a(0x1bc)]
|
|
593
603
|
};
|
|
594
604
|
}
|
|
595
605
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
596
606
|
}
|
|
597
|
-
function asErrorMessage(
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
if (typeof _0xf65d3c === _0x1ac37d(_0x17e40c._0x20a8c8) && _0xf65d3c[_0x1ac37d(_0x17e40c._0x42f2af)]())
|
|
603
|
-
return _0xf65d3c;
|
|
604
|
-
return _0x2b21e8;
|
|
607
|
+
function asErrorMessage(_0x11d7de, _0x5ad964) {
|
|
608
|
+
const _0x5133b2 = { _0x3df1cb: 0x24c }, _0xb92643 = _0x2869e3;
|
|
609
|
+
if (typeof _0x11d7de === _0xb92643(0x24b) && _0x11d7de[_0xb92643(_0x5133b2._0x3df1cb)]())
|
|
610
|
+
return _0x11d7de;
|
|
611
|
+
return _0x5ad964;
|
|
605
612
|
}
|
|
606
|
-
function asRecord(
|
|
607
|
-
const
|
|
608
|
-
return typeof
|
|
613
|
+
function asRecord(_0x44d096) {
|
|
614
|
+
const _0x1bcbc1 = _0x2869e3;
|
|
615
|
+
return typeof _0x44d096 === _0x1bcbc1(0x1d5) && _0x44d096 !== null ? _0x44d096 : {};
|
|
609
616
|
}
|
|
610
|
-
function stableStringify(
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
if (
|
|
619
|
-
return
|
|
620
|
-
|
|
621
|
-
|
|
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)](',') + '}';
|
|
617
|
+
function stableStringify(_0x435e88) {
|
|
618
|
+
const _0x4fbeea = {
|
|
619
|
+
_0x70f7cd: 0x1ba,
|
|
620
|
+
_0x2adaa4: 0x2b5,
|
|
621
|
+
_0x4a7e8d: 0x20f
|
|
622
|
+
}, _0x3fe34b = _0x2869e3;
|
|
623
|
+
if (_0x435e88 === null || typeof _0x435e88 !== 'object')
|
|
624
|
+
return JSON[_0x3fe34b(_0x4fbeea._0x70f7cd)](_0x435e88);
|
|
625
|
+
if (Array['isArray'](_0x435e88))
|
|
626
|
+
return '[' + _0x435e88[_0x3fe34b(0x2b0)](_0x1789ff => stableStringify(_0x1789ff))[_0x3fe34b(_0x4fbeea._0x2adaa4)](',') + ']';
|
|
627
|
+
const _0x344eae = Object[_0x3fe34b(0x1bd)](_0x435e88)[_0x3fe34b(0x27b)](([, _0x36d979]) => _0x36d979 !== void 0x0)[_0x3fe34b(_0x4fbeea._0x4a7e8d)](([_0x57bc2c], [_0x1d49f2]) => _0x57bc2c[_0x3fe34b(0x1b5)](_0x1d49f2))[_0x3fe34b(0x2b0)](([_0x1d5289, _0x9fd737]) => JSON[_0x3fe34b(0x1ba)](_0x1d5289) + ':' + stableStringify(_0x9fd737));
|
|
628
|
+
return '{' + _0x344eae[_0x3fe34b(0x2b5)](',') + '}';
|
|
624
629
|
}
|
|
625
|
-
function createHeaders(
|
|
626
|
-
const
|
|
630
|
+
function createHeaders(_0x3ba942) {
|
|
631
|
+
const _0x13ffab = _0x2869e3;
|
|
627
632
|
return {
|
|
628
|
-
'Content-Type':
|
|
629
|
-
'x-daemon-api-key':
|
|
633
|
+
'Content-Type': _0x13ffab(0x1f4),
|
|
634
|
+
'x-daemon-api-key': _0x3ba942
|
|
630
635
|
};
|
|
631
636
|
}
|
|
632
|
-
function toHttpBaseUrl(
|
|
633
|
-
const
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
function toHttpBaseUrl(_0x3b1963) {
|
|
638
|
+
const _0x32313c = {
|
|
639
|
+
_0x1f08f4: 0x2ca,
|
|
640
|
+
_0xf3e6ec: 0x2ca,
|
|
641
|
+
_0x4847a1: 0x2dc,
|
|
642
|
+
_0x67afb4: 0x2ba
|
|
643
|
+
}, _0x3328d2 = _0x2869e3, _0x5594a9 = new URL(_0x3b1963);
|
|
644
|
+
if (_0x5594a9[_0x3328d2(_0x32313c._0x1f08f4)] === _0x3328d2(0x29a))
|
|
645
|
+
_0x5594a9[_0x3328d2(0x2ca)] = 'http:';
|
|
640
646
|
else
|
|
641
|
-
|
|
642
|
-
return
|
|
647
|
+
_0x5594a9[_0x3328d2(_0x32313c._0xf3e6ec)] === _0x3328d2(0x2af) && (_0x5594a9[_0x3328d2(_0x32313c._0xf3e6ec)] = 'https:');
|
|
648
|
+
return _0x5594a9[_0x3328d2(_0x32313c._0x4847a1)]()[_0x3328d2(_0x32313c._0x67afb4)](/\/$/, '');
|
|
643
649
|
}
|
|
644
|
-
function isMentionBoundary(
|
|
645
|
-
const
|
|
646
|
-
return !
|
|
650
|
+
function isMentionBoundary(_0x1b4362) {
|
|
651
|
+
const _0x236d84 = _0x2869e3;
|
|
652
|
+
return !_0x1b4362 || /\s|[([{'",。!?、:;]/[_0x236d84(0x1b8)](_0x1b4362);
|
|
647
653
|
}
|
|
648
|
-
function isMentionTerminal(
|
|
649
|
-
|
|
650
|
-
return !_0x40e082 || /\s|[)\]}'",。!?、:;,.!?]/[_0x2ebe65(_0x4582df._0x16e652)](_0x40e082);
|
|
654
|
+
function isMentionTerminal(_0x15a07e) {
|
|
655
|
+
return !_0x15a07e || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x15a07e);
|
|
651
656
|
}
|
|
652
|
-
function buildMatchableEntries(
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
},
|
|
657
|
-
for (const
|
|
658
|
-
...
|
|
659
|
-
...
|
|
657
|
+
function buildMatchableEntries(_0x33551f) {
|
|
658
|
+
const _0x31e882 = {
|
|
659
|
+
_0x38c2c9: 0x2c3,
|
|
660
|
+
_0x2cb4df: 0x18f
|
|
661
|
+
}, _0x5222a2 = _0x2869e3, _0x466f34 = [];
|
|
662
|
+
for (const _0x8a69f1 of [
|
|
663
|
+
..._0x33551f[_0x5222a2(0x2ac)],
|
|
664
|
+
..._0x33551f['humans']
|
|
660
665
|
]) {
|
|
661
|
-
|
|
662
|
-
'matchName':
|
|
663
|
-
'matchNameLower':
|
|
664
|
-
'participantId':
|
|
665
|
-
}),
|
|
666
|
-
'matchName':
|
|
667
|
-
'matchNameLower':
|
|
668
|
-
'participantId':
|
|
666
|
+
_0x466f34[_0x5222a2(0x1eb)]({
|
|
667
|
+
'matchName': _0x8a69f1[_0x5222a2(0x2c3)],
|
|
668
|
+
'matchNameLower': _0x8a69f1[_0x5222a2(0x2c3)]['toLocaleLowerCase'](),
|
|
669
|
+
'participantId': _0x8a69f1['id']
|
|
670
|
+
}), _0x8a69f1['id'] !== _0x8a69f1[_0x5222a2(_0x31e882._0x38c2c9)] && _0x466f34[_0x5222a2(0x1eb)]({
|
|
671
|
+
'matchName': _0x8a69f1['id'],
|
|
672
|
+
'matchNameLower': _0x8a69f1['id'][_0x5222a2(_0x31e882._0x2cb4df)](),
|
|
673
|
+
'participantId': _0x8a69f1['id']
|
|
669
674
|
});
|
|
670
675
|
}
|
|
671
|
-
return
|
|
676
|
+
return _0x466f34;
|
|
672
677
|
}
|
|
673
|
-
function extractMentionedParticipantIds(
|
|
674
|
-
const
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
678
|
+
function extractMentionedParticipantIds(_0x39f9e9, _0x855f7f) {
|
|
679
|
+
const _0xf83848 = {
|
|
680
|
+
_0x5c329c: 0x1de,
|
|
681
|
+
_0x1d79d0: 0x231,
|
|
682
|
+
_0x229f5e: 0x18f,
|
|
683
|
+
_0x3d6efb: 0x1af,
|
|
684
|
+
_0x12cb41: 0x1eb,
|
|
685
|
+
_0x50f31e: 0x1f0
|
|
686
|
+
}, _0x40f660 = _0x2869e3, _0x17035f = buildMatchableEntries(_0x855f7f)[_0x40f660(0x20f)]((_0x583533, _0x1224da) => _0x1224da[_0x40f660(0x1f0)][_0x40f660(0x1de)] - _0x583533[_0x40f660(0x1f0)][_0x40f660(0x1de)]), _0x21d3f8 = [], _0x35a3e3 = new Set();
|
|
687
|
+
for (let _0x41a63c = 0x0; _0x41a63c < _0x39f9e9[_0x40f660(_0xf83848._0x5c329c)]; _0x41a63c += 0x1) {
|
|
688
|
+
if (_0x39f9e9[_0x41a63c] !== '@' || !isMentionBoundary(_0x39f9e9[_0x41a63c - 0x1]))
|
|
681
689
|
continue;
|
|
682
|
-
const
|
|
683
|
-
const
|
|
684
|
-
if (!
|
|
690
|
+
const _0xbffd99 = _0x39f9e9[_0x40f660(_0xf83848._0x1d79d0)](_0x41a63c + 0x1), _0x1d805a = _0xbffd99[_0x40f660(_0xf83848._0x229f5e)](), _0x1b9f87 = _0x17035f[_0x40f660(0x2d0)](_0x29e062 => {
|
|
691
|
+
const _0x35ac7b = _0x40f660;
|
|
692
|
+
if (!_0x1d805a[_0x35ac7b(0x1a9)](_0x29e062[_0x35ac7b(0x2a5)]))
|
|
685
693
|
return ![];
|
|
686
|
-
return isMentionTerminal(
|
|
694
|
+
return isMentionTerminal(_0xbffd99[_0x29e062['matchName'][_0x35ac7b(0x1de)]]);
|
|
687
695
|
});
|
|
688
|
-
if (!
|
|
696
|
+
if (!_0x1b9f87 || _0x35a3e3[_0x40f660(0x1da)](_0x1b9f87['participantId']))
|
|
689
697
|
continue;
|
|
690
|
-
|
|
698
|
+
_0x35a3e3[_0x40f660(_0xf83848._0x3d6efb)](_0x1b9f87[_0x40f660(0x1e3)]), _0x21d3f8[_0x40f660(_0xf83848._0x12cb41)](_0x1b9f87[_0x40f660(0x1e3)]), _0x41a63c += _0x1b9f87[_0x40f660(_0xf83848._0x50f31e)]['length'];
|
|
691
699
|
}
|
|
692
|
-
return
|
|
700
|
+
return _0x21d3f8;
|
|
693
701
|
}
|
|
694
702
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
695
|
-
function anySignal(...
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
},
|
|
700
|
-
for (const
|
|
701
|
-
if (
|
|
702
|
-
return
|
|
703
|
-
|
|
703
|
+
function anySignal(..._0x2aabec) {
|
|
704
|
+
const _0x28aef1 = {
|
|
705
|
+
_0x50655d: 0x246,
|
|
706
|
+
_0x5e2361: 0x1ea
|
|
707
|
+
}, _0x3d259e = _0x2869e3, _0x205cfe = new AbortController();
|
|
708
|
+
for (const _0x9dca44 of _0x2aabec) {
|
|
709
|
+
if (_0x9dca44[_0x3d259e(0x21b)])
|
|
710
|
+
return _0x205cfe['abort'](_0x9dca44[_0x3d259e(0x20d)]), _0x205cfe[_0x3d259e(_0x28aef1._0x50655d)];
|
|
711
|
+
_0x9dca44[_0x3d259e(_0x28aef1._0x5e2361)]('abort', () => _0x205cfe[_0x3d259e(0x1c9)](_0x9dca44['reason']), {
|
|
704
712
|
'once': !![],
|
|
705
|
-
'signal':
|
|
713
|
+
'signal': _0x205cfe['signal']
|
|
706
714
|
});
|
|
707
715
|
}
|
|
708
|
-
return
|
|
716
|
+
return _0x205cfe[_0x3d259e(_0x28aef1._0x50655d)];
|
|
709
717
|
}
|
|
710
|
-
function createInternalAgentClient(
|
|
711
|
-
const
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
},
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
},
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
},
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
},
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
},
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
},
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
718
|
+
function createInternalAgentClient(_0x197643) {
|
|
719
|
+
const _0xc89b44 = {
|
|
720
|
+
_0x5d2d88: 0x1f2,
|
|
721
|
+
_0x597d2b: 0x292,
|
|
722
|
+
_0x554900: 0x24c,
|
|
723
|
+
_0x142f2c: 0x27c,
|
|
724
|
+
_0x518f3f: 0x187
|
|
725
|
+
}, _0x3878f7 = {
|
|
726
|
+
_0x50f31a: 0x223,
|
|
727
|
+
_0x249357: 0x2f5,
|
|
728
|
+
_0x34586c: 0x28b,
|
|
729
|
+
_0x5ad3a2: 0x269,
|
|
730
|
+
_0x97af5f: 0x27b,
|
|
731
|
+
_0x33cca8: 0x2c6,
|
|
732
|
+
_0x4b619a: 0x1de,
|
|
733
|
+
_0x5730d3: 0x23e,
|
|
734
|
+
_0x261ef1: 0x1de,
|
|
735
|
+
_0x2a0a14: 0x23e,
|
|
736
|
+
_0x4ddc0d: 0x2a3,
|
|
737
|
+
_0x1f7599: 0x26f,
|
|
738
|
+
_0x51e308: 0x1f2,
|
|
739
|
+
_0x150f43: 0x1ac,
|
|
740
|
+
_0x271177: 0x272,
|
|
741
|
+
_0x405578: 0x1bd,
|
|
742
|
+
_0x1a0639: 0x223,
|
|
743
|
+
_0x27cd82: 0x247,
|
|
744
|
+
_0x32fb4b: 0x2c3,
|
|
745
|
+
_0x3f457e: 0x23f,
|
|
746
|
+
_0x567c1a: 0x2b0,
|
|
747
|
+
_0x394e3d: 0x268,
|
|
748
|
+
_0x4e3572: 0x24b
|
|
749
|
+
}, _0x511f33 = {
|
|
750
|
+
_0x4bb8bf: 0x188,
|
|
751
|
+
_0x22fe52: 0x1a2,
|
|
752
|
+
_0x477d6b: 0x2c7,
|
|
753
|
+
_0x6fe7a7: 0x252
|
|
754
|
+
}, _0x4b9dab = {
|
|
755
|
+
_0x1308b3: 0x2c7,
|
|
756
|
+
_0x35c5dc: 0x265,
|
|
757
|
+
_0x37fa34: 0x2dc
|
|
758
|
+
}, _0x467253 = {
|
|
759
|
+
_0x44c03c: 0x255,
|
|
760
|
+
_0x1cb2c4: 0x28a,
|
|
761
|
+
_0x49576f: 0x255,
|
|
762
|
+
_0x17f23e: 0x22e,
|
|
763
|
+
_0x381139: 0x28a,
|
|
764
|
+
_0x2f2c60: 0x17b,
|
|
765
|
+
_0x48cebf: 0x1a1,
|
|
766
|
+
_0x4fa3b4: 0x274,
|
|
767
|
+
_0x4429b7: 0x2e6
|
|
768
|
+
}, _0x236892 = {
|
|
769
|
+
_0x2fd404: 0x188,
|
|
770
|
+
_0x63117f: 0x252,
|
|
771
|
+
_0x2907fb: 0x2f5,
|
|
772
|
+
_0x46226b: 0x285,
|
|
773
|
+
_0x131759: 0x19a,
|
|
774
|
+
_0xdce5ae: 0x28b,
|
|
775
|
+
_0x1e2e70: 0x2ef
|
|
776
|
+
}, _0x3a34f9 = {
|
|
777
|
+
_0x5457eb: 0x226,
|
|
778
|
+
_0x30fc68: 0x1ba
|
|
779
|
+
}, _0xa97e57 = {
|
|
780
|
+
_0x440c8f: 0x2f5,
|
|
781
|
+
_0x262448: 0x1ba,
|
|
782
|
+
_0x5a8d21: 0x198
|
|
783
|
+
}, _0x16a8cc = {
|
|
784
|
+
_0x3884d3: 0x226,
|
|
785
|
+
_0x4fc07a: 0x2f5,
|
|
786
|
+
_0x25a827: 0x2f8
|
|
787
|
+
}, _0x2b76e4 = { _0x5ab9d3: 0x226 }, _0x4ccf82 = {
|
|
788
|
+
_0x473d68: 0x223,
|
|
789
|
+
_0x2e34c2: 0x17b,
|
|
790
|
+
_0x141241: 0x226,
|
|
791
|
+
_0x89682a: 0x2dc
|
|
792
|
+
}, _0x29660a = {
|
|
793
|
+
_0x475f64: 0x1db,
|
|
794
|
+
_0x4d1d02: 0x1ba,
|
|
795
|
+
_0x4b49ad: 0x23a,
|
|
796
|
+
_0x2528e3: 0x17b
|
|
797
|
+
}, _0x16b67 = {
|
|
798
|
+
_0x127993: 0x19b,
|
|
799
|
+
_0x29cbb1: 0x1db
|
|
800
|
+
}, _0x4376d8 = {
|
|
801
|
+
_0x5c9a28: 0x26e,
|
|
802
|
+
_0x184df9: 0x28b
|
|
803
|
+
}, _0x5acd38 = { _0x28a10a: 0x28a }, _0x30f55f = {
|
|
804
|
+
_0x59ad51: 0x268,
|
|
805
|
+
_0xc420d5: 0x226,
|
|
806
|
+
_0x406e5b: 0x1a5,
|
|
807
|
+
_0x4be859: 0x252,
|
|
808
|
+
_0x55742d: 0x2c0,
|
|
809
|
+
_0x46495b: 0x28b
|
|
810
|
+
}, _0x2c8127 = {
|
|
811
|
+
_0x57fa3b: 0x241,
|
|
812
|
+
_0x2a2f2e: 0x2c7,
|
|
813
|
+
_0x51be1c: 0x223,
|
|
814
|
+
_0x23b2e1: 0x1a5,
|
|
815
|
+
_0x350998: 0x1c6,
|
|
816
|
+
_0x2dbdd5: 0x1a2,
|
|
817
|
+
_0x7a28e2: 0x1a4,
|
|
818
|
+
_0x40bb08: 0x226,
|
|
819
|
+
_0x4e5c4f: 0x2f5,
|
|
820
|
+
_0x202829: 0x269
|
|
821
|
+
}, _0x11d1c8 = { _0x45927b: 0x2c3 }, _0x4b82da = {
|
|
822
|
+
_0x33ff78: 0x1e3,
|
|
823
|
+
_0x5e2095: 0x26a
|
|
824
|
+
}, _0x11c970 = {
|
|
825
|
+
_0xb017ae: 0x2aa,
|
|
826
|
+
_0x3654bf: 0x26f,
|
|
827
|
+
_0x4c2f0d: 0x1bc,
|
|
828
|
+
_0xe2ab10: 0x24b,
|
|
829
|
+
_0x18ed65: 0x1a9,
|
|
830
|
+
_0x4594a8: 0x1bc
|
|
831
|
+
}, _0x54ad71 = {
|
|
832
|
+
_0x4d6a8e: 0x288,
|
|
833
|
+
_0x1862a7: 0x1ac,
|
|
834
|
+
_0x456d30: 0x1bc,
|
|
835
|
+
_0x582822: 0x252,
|
|
836
|
+
_0x2b886b: 0x1a9,
|
|
837
|
+
_0x2d9e2c: 0x1bc
|
|
838
|
+
}, _0x2281d3 = {
|
|
839
|
+
_0x2ffe82: 0x26f,
|
|
840
|
+
_0x4f67b9: 0x252,
|
|
841
|
+
_0x394d27: 0x231,
|
|
842
|
+
_0x202e3a: 0x2a1
|
|
843
|
+
}, _0xeaa39e = {
|
|
844
|
+
_0x2976e6: 0x2ac,
|
|
845
|
+
_0x2a6b44: 0x17c
|
|
846
|
+
}, _0x3d027e = {
|
|
847
|
+
_0x383b1c: 0x229,
|
|
848
|
+
_0x4b8d7c: 0x202
|
|
849
|
+
}, _0x3edb50 = {
|
|
850
|
+
_0x47c609: 0x2f5,
|
|
851
|
+
_0x594472: 0x206,
|
|
852
|
+
_0x5d293b: 0x28b,
|
|
853
|
+
_0x268df4: 0x27b,
|
|
854
|
+
_0x16efbb: 0x2b0,
|
|
855
|
+
_0x3a2289: 0x28b,
|
|
856
|
+
_0x328fa6: 0x2fc
|
|
857
|
+
}, _0x413953 = {
|
|
858
|
+
_0x1817f6: 0x2f5,
|
|
859
|
+
_0x54f5d5: 0x2bc,
|
|
860
|
+
_0x59d8db: 0x1a5,
|
|
861
|
+
_0x18c6b4: 0x1cf,
|
|
862
|
+
_0x4722d7: 0x252,
|
|
863
|
+
_0x3739c9: 0x28b
|
|
864
|
+
}, _0x4bb20d = {
|
|
865
|
+
_0x52047d: 0x1dd,
|
|
866
|
+
_0x29ec0d: 0x2bd
|
|
867
|
+
}, _0x1746f7 = {
|
|
868
|
+
_0x3f94be: 0x246,
|
|
869
|
+
_0x2955fb: 0x246,
|
|
870
|
+
_0x220f1d: 0x17b
|
|
871
|
+
}, _0x39e7fc = {
|
|
872
|
+
_0x488dc4: 0x246,
|
|
873
|
+
_0x41edd4: 0x1b9
|
|
874
|
+
}, _0x1078ca = {
|
|
875
|
+
_0x5b6019: 0x24b,
|
|
876
|
+
_0x423ea5: 0x248,
|
|
877
|
+
_0xc79f32: 0x208,
|
|
878
|
+
_0x30a433: 0x223
|
|
879
|
+
}, _0x8933cc = {
|
|
880
|
+
_0x46f24c: 0x1c8,
|
|
881
|
+
_0x2da697: 0x2dc,
|
|
882
|
+
_0x59feac: 0x2e1,
|
|
883
|
+
_0x4e7aa6: 0x24c
|
|
884
|
+
}, _0x57a6bb = {
|
|
885
|
+
_0x4ccbec: 0x18a,
|
|
886
|
+
_0x6ae259: 0x2ff,
|
|
887
|
+
_0x281be4: 0x2de,
|
|
888
|
+
_0x3b0906: 0x2b4,
|
|
889
|
+
_0x3e2a2c: 0x17b,
|
|
890
|
+
_0xcfb774: 0x219,
|
|
891
|
+
_0x2fd5bd: 0x2c9
|
|
892
|
+
}, _0x3793bc = _0x2869e3, _0x4c5200 = _0x197643[_0x3793bc(0x214)] ?? fetch, _0x4147f9 = _0x197643[_0x3793bc(0x1d3)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4c8a18 = typeof _0x197643['initialLastSeenSeq'] === _0x3793bc(_0xc89b44._0x5d2d88) && _0x197643[_0x3793bc(_0xc89b44._0x597d2b)] > 0x0 ? _0x197643[_0x3793bc(0x292)] : 0x0, _0x38591a = _0x197643[_0x3793bc(0x18b)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x30023b = _0x197643[_0x3793bc(_0xc89b44._0x142f2c)]?.['trim']() || void 0x0, _0x414a64 = _0x197643[_0x3793bc(_0xc89b44._0x518f3f)] === !![], _0x576566 = _0x197643[_0x3793bc(0x211)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x3c19e6 = _0x197643[_0x3793bc(0x267)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x5d2e87 = createHeaders(_0x197643['daemonApiKey']), _0xea0e6e = toHttpBaseUrl(_0x197643[_0x3793bc(0x1be)]);
|
|
893
|
+
let _0xc8a8dc = null;
|
|
894
|
+
const _0x92329d = new Map();
|
|
895
|
+
let _0x3f1834 = _0x4c8a18, _0x1bc613 = _0x4c8a18;
|
|
896
|
+
function _0x3a5168(_0x3744a2) {
|
|
897
|
+
const _0x94f3d4 = _0x3793bc, _0x454cf5 = _0x3744a2[_0x94f3d4(0x2b4)][_0x94f3d4(0x1a1)]['get'](_0x94f3d4(_0x57a6bb._0x4ccbec)) ?? _0x94f3d4(0x1ff), _0x233305 = _0x3744a2[_0x94f3d4(_0x57a6bb._0x6ae259)][_0x94f3d4(0x24c)]()[_0x94f3d4(0x2ba)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x94f3d4(0x1b4);
|
|
898
|
+
return '请求\x20' + _0x3744a2[_0x94f3d4(_0x57a6bb._0x281be4)] + _0x94f3d4(0x1ce) + _0x3744a2[_0x94f3d4(_0x57a6bb._0x3b0906)][_0x94f3d4(_0x57a6bb._0x3e2a2c)] + ',\x20content-type=' + _0x454cf5 + _0x94f3d4(_0x57a6bb._0xcfb774) + _0x233305 + _0x94f3d4(_0x57a6bb._0x2fd5bd);
|
|
871
899
|
}
|
|
872
|
-
async function
|
|
873
|
-
const
|
|
874
|
-
if (!
|
|
900
|
+
async function _0x1f549d(_0x2c6e98, _0x18483c) {
|
|
901
|
+
const _0x34e2e3 = _0x3793bc, _0x1c1ceb = Buffer[_0x34e2e3(0x24d)](await _0x18483c[_0x34e2e3(_0x8933cc._0x46f24c)]())[_0x34e2e3(_0x8933cc._0x2da697)](_0x34e2e3(_0x8933cc._0x59feac));
|
|
902
|
+
if (!_0x1c1ceb[_0x34e2e3(_0x8933cc._0x4e7aa6)]())
|
|
875
903
|
return {};
|
|
876
904
|
try {
|
|
877
|
-
return JSON[
|
|
905
|
+
return JSON['parse'](_0x1c1ceb);
|
|
878
906
|
} catch {
|
|
879
|
-
throw new Error(
|
|
880
|
-
'bodyText':
|
|
881
|
-
'requestUrl':
|
|
882
|
-
'response':
|
|
907
|
+
throw new Error(_0x3a5168({
|
|
908
|
+
'bodyText': _0x1c1ceb,
|
|
909
|
+
'requestUrl': _0x2c6e98,
|
|
910
|
+
'response': _0x18483c
|
|
883
911
|
}));
|
|
884
912
|
}
|
|
885
913
|
}
|
|
886
|
-
function
|
|
887
|
-
const
|
|
888
|
-
if (
|
|
889
|
-
return
|
|
890
|
-
const
|
|
891
|
-
for (const [
|
|
892
|
-
|
|
914
|
+
function _0x56036f(_0x2a598c, _0x551761) {
|
|
915
|
+
const _0x6a9a34 = _0x3793bc, _0x579096 = typeof _0x551761['idempotency_key'] === _0x6a9a34(_0x1078ca._0x5b6019) ? _0x551761['idempotency_key'][_0x6a9a34(0x24c)]() : '';
|
|
916
|
+
if (_0x579096)
|
|
917
|
+
return _0x579096;
|
|
918
|
+
const _0x2905da = Date['now']();
|
|
919
|
+
for (const [_0x44097e, _0x575bad] of _0x92329d) {
|
|
920
|
+
_0x575bad['expiresAt'] <= _0x2905da && _0x92329d['delete'](_0x44097e);
|
|
893
921
|
}
|
|
894
|
-
const
|
|
895
|
-
...
|
|
922
|
+
const _0x50f7bb = {
|
|
923
|
+
..._0x551761,
|
|
896
924
|
'idempotency_key': void 0x0
|
|
897
|
-
},
|
|
898
|
-
if (
|
|
899
|
-
return
|
|
900
|
-
const
|
|
901
|
-
return
|
|
902
|
-
'expiresAt':
|
|
903
|
-
'value':
|
|
904
|
-
}),
|
|
925
|
+
}, _0x114a39 = createHash(_0x6a9a34(0x189))[_0x6a9a34(_0x1078ca._0x423ea5)](_0x2a598c + ':' + stableStringify(_0x50f7bb))[_0x6a9a34(0x258)](_0x6a9a34(0x1aa)), _0x2709e4 = _0x2a598c + ':' + _0x114a39, _0x55c166 = _0x92329d[_0x6a9a34(0x274)](_0x2709e4);
|
|
926
|
+
if (_0x55c166)
|
|
927
|
+
return _0x55c166[_0x6a9a34(0x2e9)];
|
|
928
|
+
const _0x9bfe4d = _0x6a9a34(_0x1078ca._0xc79f32) + _0x2a598c + ':' + randomUUID();
|
|
929
|
+
return _0x92329d[_0x6a9a34(_0x1078ca._0x30a433)](_0x2709e4, {
|
|
930
|
+
'expiresAt': _0x2905da + 0x5 * 0x3c * 0x3e8,
|
|
931
|
+
'value': _0x9bfe4d
|
|
932
|
+
}), _0x9bfe4d;
|
|
905
933
|
}
|
|
906
|
-
async function
|
|
907
|
-
const
|
|
934
|
+
async function _0x372d0f(_0x5676e6, _0x36a76c) {
|
|
935
|
+
const _0x4a5f2e = _0x3793bc, _0x437ca5 = new AbortController(), _0x195545 = setTimeout(() => _0x437ca5[_0x4a5f2e(0x1c9)](), _0x4147f9), _0xb92915 = _0x36a76c?.[_0x4a5f2e(_0x39e7fc._0x488dc4)] ? anySignal(_0x36a76c[_0x4a5f2e(_0x39e7fc._0x488dc4)], _0x437ca5[_0x4a5f2e(0x246)]) : _0x437ca5[_0x4a5f2e(_0x39e7fc._0x488dc4)], _0x131e67 = '' + _0xea0e6e + _0x5676e6;
|
|
908
936
|
try {
|
|
909
|
-
const
|
|
910
|
-
...
|
|
911
|
-
'signal':
|
|
912
|
-
}),
|
|
913
|
-
if (!
|
|
914
|
-
throw new Error(asErrorMessage(
|
|
915
|
-
return
|
|
937
|
+
const _0x1da50a = await _0x4c5200(_0x131e67, {
|
|
938
|
+
..._0x36a76c,
|
|
939
|
+
'signal': _0xb92915
|
|
940
|
+
}), _0x440efa = await _0x1f549d(_0x131e67, _0x1da50a);
|
|
941
|
+
if (!_0x1da50a['ok'] || _0x440efa[_0x4a5f2e(_0x39e7fc._0x41edd4)] === ![])
|
|
942
|
+
throw new Error(asErrorMessage(_0x440efa['error'], 'HTTP\x20' + _0x1da50a['status']));
|
|
943
|
+
return _0x440efa;
|
|
916
944
|
} finally {
|
|
917
|
-
clearTimeout(
|
|
945
|
+
clearTimeout(_0x195545);
|
|
918
946
|
}
|
|
919
947
|
}
|
|
920
|
-
async function
|
|
921
|
-
const
|
|
948
|
+
async function _0xd80a40(_0x2585ef, _0x3f2448) {
|
|
949
|
+
const _0x3f9854 = _0x3793bc, _0x5b76b1 = new AbortController(), _0x47094a = setTimeout(() => _0x5b76b1[_0x3f9854(0x1c9)](), _0x4147f9), _0x590abf = _0x3f2448?.[_0x3f9854(0x246)] ? anySignal(_0x3f2448[_0x3f9854(_0x1746f7._0x3f94be)], _0x5b76b1[_0x3f9854(_0x1746f7._0x3f94be)]) : _0x5b76b1[_0x3f9854(_0x1746f7._0x2955fb)], _0x3a297b = '' + _0xea0e6e + _0x2585ef;
|
|
922
950
|
try {
|
|
923
|
-
const
|
|
924
|
-
...
|
|
925
|
-
'signal':
|
|
926
|
-
}),
|
|
927
|
-
if (!
|
|
928
|
-
throw new Error(asErrorMessage(
|
|
929
|
-
return
|
|
951
|
+
const _0x325d2d = await _0x4c5200(_0x3a297b, {
|
|
952
|
+
..._0x3f2448,
|
|
953
|
+
'signal': _0x590abf
|
|
954
|
+
}), _0x2d96d5 = await _0x1f549d(_0x3a297b, _0x325d2d);
|
|
955
|
+
if (!_0x325d2d['ok'])
|
|
956
|
+
throw new Error(asErrorMessage(_0x2d96d5['error'], 'HTTP\x20' + _0x325d2d[_0x3f9854(_0x1746f7._0x220f1d)]));
|
|
957
|
+
return _0x2d96d5;
|
|
930
958
|
} finally {
|
|
931
|
-
clearTimeout(
|
|
959
|
+
clearTimeout(_0x47094a);
|
|
932
960
|
}
|
|
933
961
|
}
|
|
934
|
-
async function
|
|
935
|
-
const
|
|
936
|
-
if (!
|
|
962
|
+
async function _0x5705da(_0xcddd30) {
|
|
963
|
+
const _0x5b138a = _0x3793bc;
|
|
964
|
+
if (!_0x30023b || _0xcddd30 <= _0x1bc613)
|
|
937
965
|
return;
|
|
938
|
-
await
|
|
939
|
-
'body': JSON['stringify']({ 'lastSeenSeq':
|
|
940
|
-
'headers':
|
|
941
|
-
'method':
|
|
942
|
-
}),
|
|
966
|
+
await _0x372d0f(_0x5b138a(_0x4bb20d._0x52047d) + encodeURIComponent(_0x30023b) + _0x5b138a(0x22c), {
|
|
967
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0xcddd30 }),
|
|
968
|
+
'headers': _0x5d2e87,
|
|
969
|
+
'method': _0x5b138a(_0x4bb20d._0x29ec0d)
|
|
970
|
+
}), _0x1bc613 = _0xcddd30;
|
|
943
971
|
}
|
|
944
|
-
async function
|
|
945
|
-
const
|
|
946
|
-
if (!
|
|
972
|
+
async function _0x21c1a9(_0x4694ad) {
|
|
973
|
+
const _0x20a12e = _0x3793bc;
|
|
974
|
+
if (!_0x38591a || !_0x576566 || _0x4694ad <= _0x1bc613)
|
|
947
975
|
return;
|
|
948
|
-
const
|
|
949
|
-
'body': JSON[
|
|
950
|
-
'last_seen_seq':
|
|
951
|
-
'worker_session_id':
|
|
976
|
+
const _0x5ba364 = await _0x4c5200(_0x38591a + _0x20a12e(0x238), {
|
|
977
|
+
'body': JSON['stringify']({
|
|
978
|
+
'last_seen_seq': _0x4694ad,
|
|
979
|
+
'worker_session_id': _0x576566
|
|
952
980
|
}),
|
|
953
|
-
'headers': { 'Content-Type':
|
|
954
|
-
'method':
|
|
981
|
+
'headers': { 'Content-Type': _0x20a12e(0x1f4) },
|
|
982
|
+
'method': _0x20a12e(0x2bc)
|
|
955
983
|
});
|
|
956
|
-
if (!
|
|
957
|
-
throw new Error(
|
|
958
|
-
|
|
984
|
+
if (!_0x5ba364['ok'])
|
|
985
|
+
throw new Error(_0x20a12e(0x21e) + _0x5ba364[_0x20a12e(0x17b)]);
|
|
986
|
+
_0x1bc613 = _0x4694ad;
|
|
959
987
|
}
|
|
960
|
-
async function
|
|
961
|
-
const
|
|
962
|
-
'body': JSON['stringify']({ 'target':
|
|
963
|
-
'headers':
|
|
964
|
-
'method':
|
|
988
|
+
async function _0x2b9c99(_0x2b1e04) {
|
|
989
|
+
const _0x410985 = _0x3793bc, _0x501b62 = parseTarget(_0x2b1e04), _0x48303a = await _0x372d0f(_0x410985(0x226) + _0x197643[_0x410985(_0x413953._0x1817f6)] + _0x410985(0x2fb), {
|
|
990
|
+
'body': JSON['stringify']({ 'target': _0x501b62[_0x410985(0x285)] }),
|
|
991
|
+
'headers': _0x5d2e87,
|
|
992
|
+
'method': _0x410985(_0x413953._0x54f5d5)
|
|
965
993
|
});
|
|
966
994
|
return {
|
|
967
|
-
'channelId':
|
|
968
|
-
'target':
|
|
969
|
-
'task':
|
|
970
|
-
'threadId':
|
|
971
|
-
'threadNumber':
|
|
995
|
+
'channelId': _0x48303a[_0x410985(0x28b)]?.[_0x410985(_0x413953._0x59d8db)] ?? '',
|
|
996
|
+
'target': _0x501b62['channelTarget'],
|
|
997
|
+
'task': _0x48303a[_0x410985(0x28b)]?.[_0x410985(_0x413953._0x18c6b4)],
|
|
998
|
+
'threadId': _0x48303a['data']?.[_0x410985(_0x413953._0x4722d7)],
|
|
999
|
+
'threadNumber': _0x48303a[_0x410985(_0x413953._0x3739c9)]?.[_0x410985(0x26f)]
|
|
972
1000
|
};
|
|
973
1001
|
}
|
|
974
|
-
async function
|
|
975
|
-
const
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
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'] ?? '';
|
|
1002
|
+
async function _0x331252(_0x21f887 = {}) {
|
|
1003
|
+
const _0x2def84 = _0x3793bc;
|
|
1004
|
+
if (!_0x21f887[_0x2def84(_0x3d027e._0x383b1c)] && _0xc8a8dc)
|
|
1005
|
+
return _0xc8a8dc;
|
|
1006
|
+
return _0xc8a8dc = (async () => {
|
|
1007
|
+
const _0x4aeeac = _0x2def84, _0x9d6284 = await _0x372d0f(_0x4aeeac(0x226) + _0x197643[_0x4aeeac(_0x3edb50._0x47c609)] + _0x4aeeac(_0x3edb50._0x594472), {
|
|
1008
|
+
'headers': _0x5d2e87,
|
|
1009
|
+
'method': _0x4aeeac(0x28a)
|
|
1010
|
+
}), _0x4ff1ab = _0x9d6284[_0x4aeeac(_0x3edb50._0x5d293b)]?.['members'] ?? [], _0x52ca3c = _0x4ff1ab[_0x4aeeac(_0x3edb50._0x268df4)](_0x525e95 => _0x525e95[_0x4aeeac(0x26a)]?.[_0x4aeeac(0x29f)] === _0x4aeeac(0x1f3))['map'](_0x3ba925 => ({
|
|
1011
|
+
'id': _0xad0202(_0x3ba925),
|
|
1012
|
+
'name': _0x232cf9(_0x3ba925)
|
|
1013
|
+
}))[_0x4aeeac(0x27b)](_0x1b1241 => _0x1b1241['id']), _0xd9b616 = _0x4ff1ab[_0x4aeeac(0x27b)](_0x117896 => _0x117896[_0x4aeeac(0x26a)]?.[_0x4aeeac(0x29f)] !== _0x4aeeac(0x1f3))[_0x4aeeac(_0x3edb50._0x16efbb)](_0x3a2d1e => ({
|
|
1014
|
+
'id': _0xad0202(_0x3a2d1e),
|
|
1015
|
+
'name': _0x232cf9(_0x3a2d1e)
|
|
1016
|
+
}))[_0x4aeeac(0x27b)](_0x392daa => _0x392daa['id']), _0x481570 = _0x9d6284[_0x4aeeac(_0x3edb50._0x3a2289)]?.[_0x4aeeac(0x2fc)]['id'] ?? '';
|
|
999
1017
|
return {
|
|
1000
|
-
'agents':
|
|
1001
|
-
'channels':
|
|
1002
|
-
'humans':
|
|
1003
|
-
'serverId':
|
|
1004
|
-
'serverName':
|
|
1018
|
+
'agents': _0x52ca3c,
|
|
1019
|
+
'channels': _0x9d6284['data']?.['channels'] ?? [],
|
|
1020
|
+
'humans': _0xd9b616,
|
|
1021
|
+
'serverId': _0x481570,
|
|
1022
|
+
'serverName': _0x9d6284[_0x4aeeac(0x28b)]?.[_0x4aeeac(_0x3edb50._0x328fa6)]['name'] ?? _0x481570
|
|
1005
1023
|
};
|
|
1006
|
-
})()[
|
|
1007
|
-
|
|
1008
|
-
throw
|
|
1009
|
-
}),
|
|
1024
|
+
})()[_0x2def84(_0x3d027e._0x4b8d7c)](_0x297e52 => {
|
|
1025
|
+
_0xc8a8dc = null;
|
|
1026
|
+
throw _0x297e52;
|
|
1027
|
+
}), _0xc8a8dc;
|
|
1010
1028
|
}
|
|
1011
|
-
function
|
|
1012
|
-
const
|
|
1013
|
-
return
|
|
1029
|
+
function _0x45d3d3(_0x53a201, _0x53d2f5) {
|
|
1030
|
+
const _0x121a42 = _0x3793bc;
|
|
1031
|
+
return _0x53d2f5[_0x121a42(0x2ac)]['some'](_0x5dad7b => _0x5dad7b['id'] === _0x53a201 || _0x5dad7b[_0x121a42(0x2c3)] === _0x53a201) ? _0x121a42(0x1f3) : 'human';
|
|
1014
1032
|
}
|
|
1015
|
-
function
|
|
1016
|
-
const
|
|
1017
|
-
...
|
|
1018
|
-
...
|
|
1019
|
-
][
|
|
1020
|
-
return
|
|
1033
|
+
function _0xba39f1(_0x5e20e9, _0x3f2dc1) {
|
|
1034
|
+
const _0x5eabdc = _0x3793bc, _0xbc0a6d = [
|
|
1035
|
+
..._0x3f2dc1[_0x5eabdc(_0xeaa39e._0x2976e6)],
|
|
1036
|
+
..._0x3f2dc1[_0x5eabdc(_0xeaa39e._0x2a6b44)]
|
|
1037
|
+
][_0x5eabdc(0x2d0)](_0x40211f => _0x40211f['id'] === _0x5e20e9);
|
|
1038
|
+
return _0xbc0a6d?.['name'] ?? _0x5e20e9;
|
|
1021
1039
|
}
|
|
1022
|
-
function
|
|
1023
|
-
const
|
|
1024
|
-
if (
|
|
1025
|
-
return
|
|
1026
|
-
if (
|
|
1027
|
-
return
|
|
1028
|
-
if (
|
|
1029
|
-
return
|
|
1030
|
-
return
|
|
1040
|
+
function _0x4115cc(_0x54148f) {
|
|
1041
|
+
const _0x4e96fd = _0x3793bc;
|
|
1042
|
+
if (_0x54148f[_0x4e96fd(0x26f)] != null)
|
|
1043
|
+
return _0x54148f[_0x4e96fd(0x2a1)] + ':t' + _0x54148f[_0x4e96fd(_0x2281d3._0x2ffe82)];
|
|
1044
|
+
if (_0x54148f[_0x4e96fd(0x1ac)])
|
|
1045
|
+
return _0x54148f['channelTarget'] + ':' + _0x54148f[_0x4e96fd(0x1ac)];
|
|
1046
|
+
if (_0x54148f[_0x4e96fd(_0x2281d3._0x4f67b9)])
|
|
1047
|
+
return _0x54148f[_0x4e96fd(0x2a1)] + ':' + _0x54148f[_0x4e96fd(0x252)][_0x4e96fd(_0x2281d3._0x394d27)](0x0, 0x8);
|
|
1048
|
+
return _0x54148f[_0x4e96fd(_0x2281d3._0x202e3a)];
|
|
1031
1049
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const
|
|
1050
|
+
function _0x5bc090(_0x32a3e5, _0x1352c7) {
|
|
1051
|
+
const _0x3b25bd = _0x3793bc;
|
|
1034
1052
|
try {
|
|
1035
|
-
const
|
|
1036
|
-
if (
|
|
1053
|
+
const _0x4ee605 = parseTarget(_0x32a3e5);
|
|
1054
|
+
if (_0x4ee605[_0x3b25bd(0x2aa)] !== _0x3b25bd(_0x54ad71._0x4d6a8e) || _0x4ee605[_0x3b25bd(0x2a1)] !== _0x1352c7['channelTarget'])
|
|
1037
1055
|
return ![];
|
|
1038
|
-
if (
|
|
1056
|
+
if (_0x1352c7[_0x3b25bd(0x26f)] != null && _0x4ee605['threadShortId'] === 't' + _0x1352c7[_0x3b25bd(0x26f)])
|
|
1039
1057
|
return !![];
|
|
1040
|
-
if (
|
|
1041
|
-
return
|
|
1042
|
-
if (
|
|
1043
|
-
return
|
|
1058
|
+
if (_0x1352c7['rootMessageId'])
|
|
1059
|
+
return _0x4ee605[_0x3b25bd(0x1bc)] === _0x1352c7[_0x3b25bd(0x1ac)] || _0x1352c7[_0x3b25bd(_0x54ad71._0x1862a7)][_0x3b25bd(0x1a9)](_0x4ee605[_0x3b25bd(_0x54ad71._0x456d30)]);
|
|
1060
|
+
if (_0x1352c7[_0x3b25bd(0x252)])
|
|
1061
|
+
return _0x4ee605['threadShortId'] === _0x1352c7['threadId'] || _0x1352c7[_0x3b25bd(_0x54ad71._0x582822)][_0x3b25bd(_0x54ad71._0x2b886b)](_0x4ee605[_0x3b25bd(_0x54ad71._0x2d9e2c)]);
|
|
1044
1062
|
return ![];
|
|
1045
1063
|
} catch {
|
|
1046
1064
|
return ![];
|
|
1047
1065
|
}
|
|
1048
1066
|
}
|
|
1049
|
-
function
|
|
1050
|
-
const
|
|
1067
|
+
function _0x4020d7(_0x36607b, _0x12b4aa) {
|
|
1068
|
+
const _0x1af121 = _0x3793bc;
|
|
1051
1069
|
try {
|
|
1052
|
-
const
|
|
1053
|
-
if (
|
|
1070
|
+
const _0x3452ff = parseTarget(_0x36607b);
|
|
1071
|
+
if (_0x3452ff[_0x1af121(_0x11c970._0xb017ae)] !== _0x1af121(0x288))
|
|
1054
1072
|
return ![];
|
|
1055
|
-
const
|
|
1056
|
-
if (
|
|
1073
|
+
const _0x33fd60 = typeof _0x12b4aa['threadNumber'] === 'number' && Number['isInteger'](_0x12b4aa['threadNumber']) ? _0x12b4aa[_0x1af121(_0x11c970._0x3654bf)] : void 0x0;
|
|
1074
|
+
if (_0x33fd60 != null && _0x3452ff[_0x1af121(_0x11c970._0x4c2f0d)] === 't' + _0x33fd60)
|
|
1057
1075
|
return !![];
|
|
1058
|
-
const
|
|
1059
|
-
if (
|
|
1060
|
-
return
|
|
1061
|
-
const
|
|
1062
|
-
return Boolean(
|
|
1076
|
+
const _0x538de0 = typeof _0x12b4aa[_0x1af121(0x1ac)] === _0x1af121(_0x11c970._0xe2ab10) ? _0x12b4aa['rootMessageId'] : void 0x0;
|
|
1077
|
+
if (_0x538de0)
|
|
1078
|
+
return _0x3452ff[_0x1af121(0x1bc)] === _0x538de0 || _0x538de0[_0x1af121(_0x11c970._0x18ed65)](_0x3452ff[_0x1af121(0x1bc)]);
|
|
1079
|
+
const _0x3b13d7 = typeof _0x12b4aa['threadId'] === 'string' ? _0x12b4aa['threadId'] : void 0x0;
|
|
1080
|
+
return Boolean(_0x3b13d7) && (_0x3452ff[_0x1af121(0x1bc)] === _0x3b13d7 || _0x3b13d7['startsWith'](_0x3452ff[_0x1af121(_0x11c970._0x4594a8)]));
|
|
1063
1081
|
} catch {
|
|
1064
1082
|
return ![];
|
|
1065
1083
|
}
|
|
1066
1084
|
}
|
|
1067
|
-
function
|
|
1068
|
-
const
|
|
1069
|
-
return
|
|
1085
|
+
function _0xad0202(_0x49338d) {
|
|
1086
|
+
const _0xe54f6a = _0x3793bc;
|
|
1087
|
+
return _0x49338d['member']?.[_0xe54f6a(_0x4b82da._0x33ff78)] ?? _0x49338d[_0xe54f6a(_0x4b82da._0x5e2095)]?.['id'] ?? _0x49338d[_0xe54f6a(0x1e3)] ?? '';
|
|
1070
1088
|
}
|
|
1071
|
-
function
|
|
1072
|
-
const
|
|
1073
|
-
return
|
|
1089
|
+
function _0x232cf9(_0x4e1761) {
|
|
1090
|
+
const _0x52aeaf = _0x3793bc;
|
|
1091
|
+
return _0x4e1761[_0x52aeaf(0x26a)]?.[_0x52aeaf(_0x11d1c8._0x45927b)] ?? _0xad0202(_0x4e1761);
|
|
1074
1092
|
}
|
|
1075
|
-
async function
|
|
1076
|
-
const
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
const
|
|
1082
|
-
'headers':
|
|
1083
|
-
'method':
|
|
1084
|
-
}),
|
|
1085
|
-
'attachments': (
|
|
1086
|
-
'filename':
|
|
1087
|
-
'id':
|
|
1093
|
+
async function _0x44fd12(_0x596e74) {
|
|
1094
|
+
const _0x31ee1a = _0x3793bc, _0x13fd66 = Math[_0x31ee1a(_0x2c8127._0x57fa3b)](_0x596e74[_0x31ee1a(_0x2c8127._0x2a2f2e)] ?? 0x32, 0x64), _0x596083 = await _0x331252(), _0x293bca = new URLSearchParams();
|
|
1095
|
+
_0x293bca[_0x31ee1a(_0x2c8127._0x51be1c)](_0x31ee1a(0x2c7), String(_0x13fd66));
|
|
1096
|
+
_0x596e74[_0x31ee1a(0x252)] ? (_0x293bca[_0x31ee1a(_0x2c8127._0x51be1c)]('threadId', _0x596e74[_0x31ee1a(0x252)]), _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x23b2e1), _0x596e74[_0x31ee1a(0x1a5)])) : _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x23b2e1), _0x596e74['channelId']);
|
|
1097
|
+
_0x596e74[_0x31ee1a(0x1a2)] && _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x350998), String(_0x596e74[_0x31ee1a(_0x2c8127._0x2dbdd5)]));
|
|
1098
|
+
_0x596e74[_0x31ee1a(0x1a4)] !== void 0x0 && _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(0x1a4), String(_0x596e74[_0x31ee1a(_0x2c8127._0x7a28e2)]));
|
|
1099
|
+
const _0xd7b596 = await _0x372d0f(_0x31ee1a(_0x2c8127._0x40bb08) + _0x197643[_0x31ee1a(_0x2c8127._0x4e5c4f)] + _0x31ee1a(0x2b1) + _0x293bca[_0x31ee1a(0x2dc)](), {
|
|
1100
|
+
'headers': _0x5d2e87,
|
|
1101
|
+
'method': 'GET'
|
|
1102
|
+
}), _0x30140e = (_0xd7b596[_0x31ee1a(0x28b)] ?? [])[_0x31ee1a(0x2b0)](_0x55f3ef => ({
|
|
1103
|
+
'attachments': (_0x55f3ef[_0x31ee1a(0x20a)] ?? [])['map'](_0x887f90 => ({
|
|
1104
|
+
'filename': _0x887f90[_0x31ee1a(0x2ef)] ?? _0x887f90['id'],
|
|
1105
|
+
'id': _0x887f90['id']
|
|
1088
1106
|
})),
|
|
1089
|
-
'content':
|
|
1090
|
-
'createdAt':
|
|
1091
|
-
...
|
|
1092
|
-
'messageId':
|
|
1093
|
-
'senderName':
|
|
1094
|
-
'senderType':
|
|
1095
|
-
'seq':
|
|
1107
|
+
'content': _0x55f3ef[_0x31ee1a(0x1cc)] ?? '',
|
|
1108
|
+
'createdAt': _0x55f3ef[_0x31ee1a(0x2bb)],
|
|
1109
|
+
..._0x55f3ef[_0x31ee1a(0x2aa)] && _0x55f3ef['kind'] !== _0x31ee1a(0x302) ? { 'kind': _0x55f3ef['kind'] } : {},
|
|
1110
|
+
'messageId': _0x55f3ef['id'],
|
|
1111
|
+
'senderName': _0xba39f1(_0x55f3ef[_0x31ee1a(0x249)], _0x596083),
|
|
1112
|
+
'senderType': _0x45d3d3(_0x55f3ef[_0x31ee1a(0x249)], _0x596083),
|
|
1113
|
+
'seq': _0x55f3ef[_0x31ee1a(0x23c)] ?? 0x0
|
|
1096
1114
|
}));
|
|
1097
1115
|
return {
|
|
1098
|
-
'channel':
|
|
1099
|
-
'hasMore':
|
|
1100
|
-
'messages':
|
|
1101
|
-
'nextCursor':
|
|
1116
|
+
'channel': _0x596e74[_0x31ee1a(0x2a1)],
|
|
1117
|
+
'hasMore': _0xd7b596['meta']?.['hasMore'] ?? ![],
|
|
1118
|
+
'messages': _0x30140e,
|
|
1119
|
+
'nextCursor': _0xd7b596[_0x31ee1a(_0x2c8127._0x202829)]?.[_0x31ee1a(0x1c6)]
|
|
1102
1120
|
};
|
|
1103
1121
|
}
|
|
1104
1122
|
return {
|
|
1105
|
-
async 'sendMessage'(
|
|
1106
|
-
const
|
|
1107
|
-
'body': JSON[
|
|
1108
|
-
'attachment_ids':
|
|
1109
|
-
'bodyMarkdown':
|
|
1110
|
-
'channelId':
|
|
1111
|
-
...
|
|
1112
|
-
'threadId':
|
|
1113
|
-
...
|
|
1123
|
+
async 'sendMessage'(_0x12a246) {
|
|
1124
|
+
const _0x3f071a = _0x3793bc, _0x4e45ca = await _0x2b9c99(_0x12a246[_0x3f071a(0x285)]), _0x57fa16 = _0x12a246[_0x3f071a(_0x30f55f._0x59ad51)]['includes']('@') ? extractMentionedParticipantIds(_0x12a246['content'], await _0x331252()) : [], _0x335723 = await _0x372d0f(_0x3f071a(_0x30f55f._0xc420d5) + _0x197643['agentId'] + '/send', {
|
|
1125
|
+
'body': JSON['stringify']({
|
|
1126
|
+
'attachment_ids': _0x12a246['attachmentIds'],
|
|
1127
|
+
'bodyMarkdown': _0x12a246[_0x3f071a(0x268)],
|
|
1128
|
+
'channelId': _0x4e45ca[_0x3f071a(_0x30f55f._0x406e5b)],
|
|
1129
|
+
..._0x57fa16[_0x3f071a(0x1de)] > 0x0 ? { 'mentionedParticipantIds': _0x57fa16 } : {},
|
|
1130
|
+
'threadId': _0x4e45ca[_0x3f071a(_0x30f55f._0x4be859)],
|
|
1131
|
+
..._0x12a246[_0x3f071a(_0x30f55f._0x55742d)] ? { 'visibility': _0x12a246[_0x3f071a(0x2c0)] } : {}
|
|
1114
1132
|
}),
|
|
1115
|
-
'headers':
|
|
1116
|
-
'method':
|
|
1133
|
+
'headers': _0x5d2e87,
|
|
1134
|
+
'method': _0x3f071a(0x2bc)
|
|
1117
1135
|
});
|
|
1118
|
-
return { 'messageId':
|
|
1136
|
+
return { 'messageId': _0x335723[_0x3f071a(_0x30f55f._0x46495b)]?.['id'] ?? '' };
|
|
1119
1137
|
},
|
|
1120
1138
|
async 'listSchedules'() {
|
|
1121
|
-
const
|
|
1122
|
-
'headers':
|
|
1123
|
-
'method':
|
|
1139
|
+
const _0x45b0fc = _0x3793bc, _0x5416ef = await _0x372d0f(_0x45b0fc(0x1c3), {
|
|
1140
|
+
'headers': _0x5d2e87,
|
|
1141
|
+
'method': _0x45b0fc(_0x5acd38._0x28a10a)
|
|
1124
1142
|
});
|
|
1125
|
-
return
|
|
1143
|
+
return _0x5416ef[_0x45b0fc(0x28b)] ?? [];
|
|
1126
1144
|
},
|
|
1127
|
-
async 'claimScheduleRun'(
|
|
1128
|
-
const
|
|
1129
|
-
'body': JSON[
|
|
1130
|
-
'headers':
|
|
1131
|
-
'method':
|
|
1145
|
+
async 'claimScheduleRun'(_0x4725c3) {
|
|
1146
|
+
const _0x49cc2f = _0x3793bc, _0x342ae2 = await _0x372d0f(_0x49cc2f(_0x4376d8._0x5c9a28), {
|
|
1147
|
+
'body': JSON[_0x49cc2f(0x1ba)](_0x4725c3),
|
|
1148
|
+
'headers': _0x5d2e87,
|
|
1149
|
+
'method': 'POST'
|
|
1132
1150
|
});
|
|
1133
|
-
return
|
|
1151
|
+
return _0x342ae2[_0x49cc2f(_0x4376d8._0x184df9)] ?? {
|
|
1134
1152
|
'granted': ![],
|
|
1135
1153
|
'runId': null,
|
|
1136
1154
|
'schedule': null,
|
|
1137
|
-
'scheduledFor':
|
|
1155
|
+
'scheduledFor': _0x4725c3['scheduledFor']
|
|
1138
1156
|
};
|
|
1139
1157
|
},
|
|
1140
|
-
async 'startScheduleRun'(
|
|
1141
|
-
const
|
|
1142
|
-
'body': JSON[
|
|
1143
|
-
'headers':
|
|
1144
|
-
'method':
|
|
1158
|
+
async 'startScheduleRun'(_0x204384) {
|
|
1159
|
+
const _0x196e94 = _0x3793bc, _0x44573e = await _0x372d0f(_0x196e94(0x20b) + encodeURIComponent(_0x204384[_0x196e94(0x1db)]) + _0x196e94(_0x16b67._0x127993), {
|
|
1160
|
+
'body': JSON[_0x196e94(0x1ba)]({}),
|
|
1161
|
+
'headers': _0x5d2e87,
|
|
1162
|
+
'method': _0x196e94(0x2bc)
|
|
1145
1163
|
});
|
|
1146
|
-
return
|
|
1164
|
+
return _0x44573e[_0x196e94(0x28b)] ?? {
|
|
1147
1165
|
'claimedByDaemonId': '',
|
|
1148
|
-
'id':
|
|
1166
|
+
'id': _0x204384[_0x196e94(_0x16b67._0x29cbb1)],
|
|
1149
1167
|
'scheduleId': '',
|
|
1150
1168
|
'status': 'running'
|
|
1151
1169
|
};
|
|
1152
1170
|
},
|
|
1153
|
-
async 'finishScheduleRun'(
|
|
1154
|
-
const
|
|
1155
|
-
'body': JSON[
|
|
1156
|
-
'error':
|
|
1157
|
-
'resultJson':
|
|
1158
|
-
'status':
|
|
1171
|
+
async 'finishScheduleRun'(_0x303e76) {
|
|
1172
|
+
const _0x5dcda8 = _0x3793bc, _0x53f50c = await _0x372d0f('/api/internal/schedules/' + encodeURIComponent(_0x303e76[_0x5dcda8(_0x29660a._0x475f64)]) + '/finish', {
|
|
1173
|
+
'body': JSON[_0x5dcda8(_0x29660a._0x4d1d02)]({
|
|
1174
|
+
'error': _0x303e76['error'],
|
|
1175
|
+
'resultJson': _0x303e76[_0x5dcda8(_0x29660a._0x4b49ad)],
|
|
1176
|
+
'status': _0x303e76[_0x5dcda8(_0x29660a._0x2528e3)]
|
|
1159
1177
|
}),
|
|
1160
|
-
'headers':
|
|
1161
|
-
'method':
|
|
1178
|
+
'headers': _0x5d2e87,
|
|
1179
|
+
'method': _0x5dcda8(0x2bc)
|
|
1162
1180
|
});
|
|
1163
|
-
return
|
|
1181
|
+
return _0x53f50c[_0x5dcda8(0x28b)] ?? {
|
|
1164
1182
|
'nextRunAt': null,
|
|
1165
1183
|
'run': {
|
|
1166
1184
|
'claimedByDaemonId': '',
|
|
1167
|
-
'id':
|
|
1185
|
+
'id': _0x303e76['runId'],
|
|
1168
1186
|
'scheduleId': '',
|
|
1169
|
-
'status':
|
|
1187
|
+
'status': _0x303e76[_0x5dcda8(_0x29660a._0x2528e3)]
|
|
1170
1188
|
}
|
|
1171
1189
|
};
|
|
1172
1190
|
},
|
|
1173
|
-
async 'listTasks'(
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1176
|
-
'headers':
|
|
1177
|
-
'method':
|
|
1191
|
+
async 'listTasks'(_0x17ef71) {
|
|
1192
|
+
const _0x2dfa9c = _0x3793bc, _0x147ff3 = new URLSearchParams();
|
|
1193
|
+
return _0x147ff3[_0x2dfa9c(_0x4ccf82._0x473d68)](_0x2dfa9c(0x188), _0x17ef71['channel']), _0x17ef71['status'] && _0x147ff3['set'](_0x2dfa9c(_0x4ccf82._0x2e34c2), _0x17ef71[_0x2dfa9c(0x17b)]), _0xd80a40(_0x2dfa9c(_0x4ccf82._0x141241) + _0x197643['agentId'] + _0x2dfa9c(0x2f3) + _0x147ff3[_0x2dfa9c(_0x4ccf82._0x89682a)](), {
|
|
1194
|
+
'headers': _0x5d2e87,
|
|
1195
|
+
'method': 'GET'
|
|
1178
1196
|
});
|
|
1179
1197
|
},
|
|
1180
|
-
async 'createTasks'(
|
|
1181
|
-
const
|
|
1182
|
-
return
|
|
1183
|
-
'body': JSON[
|
|
1184
|
-
...
|
|
1185
|
-
'idempotency_key':
|
|
1198
|
+
async 'createTasks'(_0x192133) {
|
|
1199
|
+
const _0x62e6d3 = _0x3793bc;
|
|
1200
|
+
return _0xd80a40(_0x62e6d3(_0x2b76e4._0x5ab9d3) + _0x197643['agentId'] + _0x62e6d3(0x286), {
|
|
1201
|
+
'body': JSON[_0x62e6d3(0x1ba)]({
|
|
1202
|
+
..._0x192133,
|
|
1203
|
+
'idempotency_key': _0x56036f(_0x62e6d3(0x1a3), _0x192133)
|
|
1186
1204
|
}),
|
|
1187
|
-
'headers':
|
|
1188
|
-
'method':
|
|
1205
|
+
'headers': _0x5d2e87,
|
|
1206
|
+
'method': 'POST'
|
|
1189
1207
|
});
|
|
1190
1208
|
},
|
|
1191
|
-
async 'claimTasks'(
|
|
1192
|
-
const
|
|
1193
|
-
return
|
|
1194
|
-
'body': JSON[
|
|
1195
|
-
...
|
|
1196
|
-
'idempotency_key':
|
|
1209
|
+
async 'claimTasks'(_0x1ff39d) {
|
|
1210
|
+
const _0x5b4c09 = _0x3793bc;
|
|
1211
|
+
return _0xd80a40(_0x5b4c09(_0x16a8cc._0x3884d3) + _0x197643[_0x5b4c09(_0x16a8cc._0x4fc07a)] + _0x5b4c09(_0x16a8cc._0x25a827), {
|
|
1212
|
+
'body': JSON['stringify']({
|
|
1213
|
+
..._0x1ff39d,
|
|
1214
|
+
'idempotency_key': _0x56036f(_0x5b4c09(0x2df), _0x1ff39d)
|
|
1197
1215
|
}),
|
|
1198
|
-
'headers':
|
|
1199
|
-
'method':
|
|
1216
|
+
'headers': _0x5d2e87,
|
|
1217
|
+
'method': 'POST'
|
|
1200
1218
|
});
|
|
1201
1219
|
},
|
|
1202
|
-
async 'unclaimTask'(
|
|
1203
|
-
const
|
|
1204
|
-
return
|
|
1205
|
-
'body': JSON[
|
|
1206
|
-
...
|
|
1207
|
-
'idempotency_key':
|
|
1220
|
+
async 'unclaimTask'(_0x16cec7) {
|
|
1221
|
+
const _0x1ce9c8 = _0x3793bc;
|
|
1222
|
+
return _0xd80a40('/internal/agent/' + _0x197643[_0x1ce9c8(_0xa97e57._0x440c8f)] + _0x1ce9c8(0x235), {
|
|
1223
|
+
'body': JSON[_0x1ce9c8(_0xa97e57._0x262448)]({
|
|
1224
|
+
..._0x16cec7,
|
|
1225
|
+
'idempotency_key': _0x56036f(_0x1ce9c8(_0xa97e57._0x5a8d21), _0x16cec7)
|
|
1208
1226
|
}),
|
|
1209
|
-
'headers':
|
|
1210
|
-
'method':
|
|
1227
|
+
'headers': _0x5d2e87,
|
|
1228
|
+
'method': _0x1ce9c8(0x2bc)
|
|
1211
1229
|
});
|
|
1212
1230
|
},
|
|
1213
|
-
async 'updateTaskStatus'(
|
|
1214
|
-
const
|
|
1215
|
-
return
|
|
1216
|
-
'body': JSON[
|
|
1217
|
-
...
|
|
1218
|
-
'idempotency_key':
|
|
1231
|
+
async 'updateTaskStatus'(_0x21ed09) {
|
|
1232
|
+
const _0x2b811e = _0x3793bc;
|
|
1233
|
+
return _0xd80a40(_0x2b811e(_0x3a34f9._0x5457eb) + _0x197643['agentId'] + '/tasks/update-status', {
|
|
1234
|
+
'body': JSON[_0x2b811e(_0x3a34f9._0x30fc68)]({
|
|
1235
|
+
..._0x21ed09,
|
|
1236
|
+
'idempotency_key': _0x56036f(_0x2b811e(0x296), _0x21ed09)
|
|
1219
1237
|
}),
|
|
1220
|
-
'headers':
|
|
1221
|
-
'method':
|
|
1238
|
+
'headers': _0x5d2e87,
|
|
1239
|
+
'method': 'POST'
|
|
1222
1240
|
});
|
|
1223
1241
|
},
|
|
1224
|
-
async 'uploadFile'(
|
|
1225
|
-
const
|
|
1226
|
-
if (
|
|
1242
|
+
async 'uploadFile'(_0x20b55d) {
|
|
1243
|
+
const _0x4eb5d1 = _0x3793bc, _0x36e66f = await _0x2b9c99(_0x20b55d[_0x4eb5d1(_0x236892._0x2fd404)]);
|
|
1244
|
+
if (_0x36e66f[_0x4eb5d1(_0x236892._0x63117f)])
|
|
1227
1245
|
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1228
|
-
const
|
|
1229
|
-
'body': JSON[
|
|
1230
|
-
'channel':
|
|
1231
|
-
'contentBase64':
|
|
1232
|
-
'contentType':
|
|
1233
|
-
'originalFilename':
|
|
1246
|
+
const _0x185c97 = await _0x372d0f(_0x4eb5d1(0x226) + _0x197643[_0x4eb5d1(_0x236892._0x2907fb)] + '/upload', {
|
|
1247
|
+
'body': JSON[_0x4eb5d1(0x1ba)]({
|
|
1248
|
+
'channel': _0x36e66f[_0x4eb5d1(_0x236892._0x46226b)],
|
|
1249
|
+
'contentBase64': _0x20b55d[_0x4eb5d1(_0x236892._0x131759)],
|
|
1250
|
+
'contentType': _0x20b55d[_0x4eb5d1(0x257)],
|
|
1251
|
+
'originalFilename': _0x20b55d[_0x4eb5d1(0x2ef)]
|
|
1234
1252
|
}),
|
|
1235
|
-
'headers':
|
|
1236
|
-
'method':
|
|
1253
|
+
'headers': _0x5d2e87,
|
|
1254
|
+
'method': 'POST'
|
|
1237
1255
|
});
|
|
1238
1256
|
return {
|
|
1239
|
-
'attachmentId':
|
|
1240
|
-
'filename':
|
|
1241
|
-
'sizeBytes':
|
|
1257
|
+
'attachmentId': _0x185c97[_0x4eb5d1(_0x236892._0xdce5ae)]?.['id'] ?? '',
|
|
1258
|
+
'filename': _0x185c97[_0x4eb5d1(0x28b)]?.[_0x4eb5d1(0x2e6)] ?? _0x20b55d[_0x4eb5d1(_0x236892._0x1e2e70)],
|
|
1259
|
+
'sizeBytes': _0x185c97[_0x4eb5d1(_0x236892._0xdce5ae)]?.['sizeBytes'] ?? 0x0
|
|
1242
1260
|
};
|
|
1243
1261
|
},
|
|
1244
|
-
async 'downloadAttachment'(
|
|
1245
|
-
const
|
|
1246
|
-
'headers':
|
|
1247
|
-
'method':
|
|
1248
|
-
}),
|
|
1262
|
+
async 'downloadAttachment'(_0x538a90) {
|
|
1263
|
+
const _0xbb8f1b = _0x3793bc, _0x3b0281 = await _0x372d0f(_0xbb8f1b(_0x467253._0x44c03c) + _0x538a90, {
|
|
1264
|
+
'headers': _0x5d2e87,
|
|
1265
|
+
'method': _0xbb8f1b(_0x467253._0x1cb2c4)
|
|
1266
|
+
}), _0x468a9e = new AbortController(), _0x17d4b6 = setTimeout(() => _0x468a9e[_0xbb8f1b(0x1c9)](), _0x4147f9);
|
|
1249
1267
|
try {
|
|
1250
|
-
const
|
|
1251
|
-
'headers':
|
|
1252
|
-
'method':
|
|
1253
|
-
'signal':
|
|
1268
|
+
const _0x122eaa = await _0x4c5200(_0xea0e6e + _0xbb8f1b(_0x467253._0x49576f) + _0x538a90 + _0xbb8f1b(_0x467253._0x17f23e), {
|
|
1269
|
+
'headers': _0x5d2e87,
|
|
1270
|
+
'method': _0xbb8f1b(_0x467253._0x381139),
|
|
1271
|
+
'signal': _0x468a9e['signal']
|
|
1254
1272
|
});
|
|
1255
|
-
if (!
|
|
1256
|
-
throw new Error(
|
|
1273
|
+
if (!_0x122eaa['ok'])
|
|
1274
|
+
throw new Error('HTTP\x20' + _0x122eaa[_0xbb8f1b(_0x467253._0x2f2c60)]);
|
|
1257
1275
|
return {
|
|
1258
|
-
'contentType':
|
|
1259
|
-
'data': Buffer[
|
|
1260
|
-
'originalFilename':
|
|
1276
|
+
'contentType': _0x3b0281[_0xbb8f1b(0x28b)]?.[_0xbb8f1b(0x257)] ?? _0x122eaa[_0xbb8f1b(_0x467253._0x48cebf)][_0xbb8f1b(_0x467253._0x4fa3b4)](_0xbb8f1b(0x18a)) ?? _0xbb8f1b(0x1c7),
|
|
1277
|
+
'data': Buffer[_0xbb8f1b(0x24d)](await _0x122eaa['arrayBuffer']()),
|
|
1278
|
+
'originalFilename': _0x3b0281['data']?.[_0xbb8f1b(_0x467253._0x4429b7)]
|
|
1261
1279
|
};
|
|
1262
1280
|
} finally {
|
|
1263
|
-
clearTimeout(
|
|
1281
|
+
clearTimeout(_0x17d4b6);
|
|
1264
1282
|
}
|
|
1265
1283
|
},
|
|
1266
1284
|
async 'listServer'() {
|
|
1267
|
-
return
|
|
1285
|
+
return _0x331252({ 'forceRefresh': !![] });
|
|
1268
1286
|
},
|
|
1269
1287
|
async 'getLatestEventSeq'() {
|
|
1270
|
-
const
|
|
1271
|
-
|
|
1272
|
-
const
|
|
1273
|
-
'headers':
|
|
1288
|
+
const _0x5cd583 = _0x3793bc, _0x3787ce = new URLSearchParams();
|
|
1289
|
+
_0x3787ce['set'](_0x5cd583(0x22d), '0'), _0x3787ce[_0x5cd583(0x223)](_0x5cd583(_0x4b9dab._0x1308b3), '1');
|
|
1290
|
+
const _0xe3ce14 = await _0x372d0f('/internal/agent/' + _0x197643[_0x5cd583(0x2f5)] + _0x5cd583(_0x4b9dab._0x35c5dc) + _0x3787ce[_0x5cd583(_0x4b9dab._0x37fa34)](), {
|
|
1291
|
+
'headers': _0x5d2e87,
|
|
1274
1292
|
'method': 'GET'
|
|
1275
|
-
}),
|
|
1276
|
-
return typeof
|
|
1293
|
+
}), _0x417f2b = _0xe3ce14[_0x5cd583(0x269)]?.[_0x5cd583(0x29c)];
|
|
1294
|
+
return typeof _0x417f2b === _0x5cd583(0x1f2) && _0x417f2b > 0x0 ? _0x417f2b : 0x0;
|
|
1277
1295
|
},
|
|
1278
|
-
async 'readHistory'(
|
|
1279
|
-
const
|
|
1280
|
-
return
|
|
1281
|
-
'after':
|
|
1282
|
-
'before':
|
|
1283
|
-
'channelId':
|
|
1284
|
-
'channelTarget':
|
|
1285
|
-
'limit':
|
|
1286
|
-
'threadId':
|
|
1296
|
+
async 'readHistory'(_0x46ce01) {
|
|
1297
|
+
const _0x12339b = _0x3793bc, _0x483d9 = await _0x2b9c99(_0x46ce01[_0x12339b(_0x511f33._0x4bb8bf)]);
|
|
1298
|
+
return _0x44fd12({
|
|
1299
|
+
'after': _0x46ce01['after'],
|
|
1300
|
+
'before': _0x46ce01[_0x12339b(_0x511f33._0x22fe52)],
|
|
1301
|
+
'channelId': _0x483d9['channelId'],
|
|
1302
|
+
'channelTarget': _0x483d9['target'],
|
|
1303
|
+
'limit': _0x46ce01[_0x12339b(_0x511f33._0x477d6b)],
|
|
1304
|
+
'threadId': _0x483d9[_0x12339b(_0x511f33._0x6fe7a7)]
|
|
1287
1305
|
});
|
|
1288
1306
|
},
|
|
1289
|
-
'resolveTarget':
|
|
1307
|
+
'resolveTarget': _0x2b9c99,
|
|
1290
1308
|
async 'checkMessages'() {
|
|
1291
|
-
const
|
|
1292
|
-
|
|
1293
|
-
const
|
|
1294
|
-
'headers':
|
|
1295
|
-
'method':
|
|
1296
|
-
}),
|
|
1297
|
-
const
|
|
1298
|
-
if (
|
|
1309
|
+
const _0x2fda8c = { _0x154021: 0x25f }, _0x479a45 = _0x3793bc, _0x4dfb9f = new URLSearchParams();
|
|
1310
|
+
_0x4dfb9f[_0x479a45(_0x3878f7._0x50f31a)](_0x479a45(0x22d), String(_0x3f1834));
|
|
1311
|
+
const _0x4425c7 = _0x4dfb9f['toString'](), _0x43ca45 = await _0x372d0f(_0x479a45(0x226) + _0x197643[_0x479a45(_0x3878f7._0x249357)] + '/receive' + (_0x4425c7 ? '?' + _0x4425c7 : ''), {
|
|
1312
|
+
'headers': _0x5d2e87,
|
|
1313
|
+
'method': 'GET'
|
|
1314
|
+
}), _0x290dd0 = _0x43ca45[_0x479a45(_0x3878f7._0x34586c)] ?? [], _0x2c1a3c = _0x43ca45[_0x479a45(_0x3878f7._0x5ad3a2)]?.[_0x479a45(0x1c6)], _0xae8572 = _0x3c19e6 ? _0x290dd0[_0x479a45(_0x3878f7._0x97af5f)](_0x2eb1c3 => {
|
|
1315
|
+
const _0x54f98d = _0x479a45;
|
|
1316
|
+
if (_0x2eb1c3[_0x54f98d(0x23d)] !== _0x54f98d(0x234))
|
|
1299
1317
|
return ![];
|
|
1300
|
-
return
|
|
1301
|
-
}) :
|
|
1302
|
-
let
|
|
1303
|
-
|
|
1304
|
-
|
|
1318
|
+
return _0x4020d7(_0x3c19e6, asRecord(_0x2eb1c3[_0x54f98d(0x25f)]));
|
|
1319
|
+
}) : _0x290dd0, _0x6eef14 = _0x2c1a3c !== void 0x0 ? _0x3c19e6 ? Math[_0x479a45(_0x3878f7._0x33cca8)](_0x3f1834, _0xae8572[_0x479a45(_0x3878f7._0x4b619a)] > 0x0 ? _0xae8572[_0xae8572[_0x479a45(0x1de)] - 0x1][_0x479a45(_0x3878f7._0x5730d3)] : _0x3f1834) : Math[_0x479a45(0x2c6)](_0x3f1834, _0x2c1a3c) : _0xae8572[_0x479a45(0x1de)] > 0x0 ? Math[_0x479a45(0x2c6)](_0x3f1834, _0xae8572[_0xae8572[_0x479a45(_0x3878f7._0x261ef1)] - 0x1][_0x479a45(_0x3878f7._0x2a0a14)]) : _0x3f1834, _0x781d72 = (_0x3c19e6 ? _0xae8572 : _0x290dd0)[_0x479a45(0x27b)](_0x188345 => _0x188345['aggregateType'] === _0x479a45(0x234)), _0x111984 = _0x3c19e6 === void 0x0 && _0x414a64;
|
|
1320
|
+
let _0x50a2d8 = await _0x331252(), _0x25e943 = new Map(_0x50a2d8[_0x479a45(0x2ab)]['map'](_0x3c2f58 => [
|
|
1321
|
+
_0x3c2f58['id'],
|
|
1322
|
+
_0x3c2f58
|
|
1305
1323
|
]));
|
|
1306
|
-
const
|
|
1307
|
-
const
|
|
1308
|
-
return Boolean(
|
|
1324
|
+
const _0x439e63 = _0x781d72[_0x479a45(_0x3878f7._0x4ddc0d)](_0x24b44b => {
|
|
1325
|
+
const _0x4241b3 = _0x479a45, _0x515aa5 = asRecord(_0x24b44b[_0x4241b3(_0x2fda8c._0x154021)]), _0x5aaa93 = typeof _0x515aa5?.[_0x4241b3(0x1a5)] === 'string' ? _0x515aa5['channelId'] : '';
|
|
1326
|
+
return Boolean(_0x5aaa93) && !_0x25e943['has'](_0x5aaa93);
|
|
1309
1327
|
});
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1328
|
+
_0x439e63 && (_0x50a2d8 = await _0x331252({ 'forceRefresh': !![] }), _0x25e943 = new Map(_0x50a2d8[_0x479a45(0x2ab)]['map'](_0x495d42 => [
|
|
1329
|
+
_0x495d42['id'],
|
|
1330
|
+
_0x495d42
|
|
1313
1331
|
])));
|
|
1314
|
-
const
|
|
1315
|
-
for (const
|
|
1316
|
-
const
|
|
1317
|
-
if (!
|
|
1332
|
+
const _0x342985 = new Map();
|
|
1333
|
+
for (const _0x5b5c1f of _0x781d72) {
|
|
1334
|
+
const _0x5760d0 = asRecord(_0x5b5c1f['payloadJson']), _0x1ee4cd = typeof _0x5760d0[_0x479a45(0x1a5)] === 'string' ? _0x5760d0[_0x479a45(0x1a5)] : '';
|
|
1335
|
+
if (!_0x1ee4cd)
|
|
1318
1336
|
continue;
|
|
1319
|
-
const
|
|
1337
|
+
const _0x34f5d6 = typeof _0x5760d0['threadId'] === _0x479a45(0x24b) ? _0x5760d0['threadId'] : void 0x0, _0x2cdcb5 = typeof _0x5760d0[_0x479a45(0x1ac)] === 'string' ? _0x5760d0[_0x479a45(0x1ac)] : void 0x0, _0x424105 = typeof _0x5760d0[_0x479a45(_0x3878f7._0x1f7599)] === _0x479a45(_0x3878f7._0x51e308) && Number[_0x479a45(0x291)](_0x5760d0['threadNumber']) ? _0x5760d0[_0x479a45(0x26f)] : void 0x0, _0x1f5302 = Boolean(_0x34f5d6 && (!_0x2cdcb5 || _0x5b5c1f[_0x479a45(0x20c)] !== _0x2cdcb5)), _0x3dcfe6 = _0x1f5302 ? _0x1ee4cd + ':' + _0x34f5d6 : _0x1ee4cd, _0x229ea2 = _0x342985['get'](_0x3dcfe6) ?? {
|
|
1320
1338
|
'aggregateIds': [],
|
|
1321
|
-
'channelId':
|
|
1339
|
+
'channelId': _0x1ee4cd,
|
|
1322
1340
|
'entries': new Map(),
|
|
1323
|
-
'isThreadReply':
|
|
1324
|
-
'rootMessageId':
|
|
1325
|
-
'threadNumber':
|
|
1326
|
-
'threadId':
|
|
1341
|
+
'isThreadReply': _0x1f5302,
|
|
1342
|
+
'rootMessageId': _0x2cdcb5,
|
|
1343
|
+
'threadNumber': _0x424105,
|
|
1344
|
+
'threadId': _0x1f5302 ? _0x34f5d6 : void 0x0
|
|
1327
1345
|
};
|
|
1328
|
-
|
|
1329
|
-
'payloadJson':
|
|
1330
|
-
'seq':
|
|
1331
|
-
}),
|
|
1346
|
+
_0x229ea2[_0x479a45(0x26f)] == null && _0x424105 != null && (_0x229ea2[_0x479a45(_0x3878f7._0x1f7599)] = _0x424105), !_0x229ea2[_0x479a45(_0x3878f7._0x150f43)] && _0x2cdcb5 && (_0x229ea2['rootMessageId'] = _0x2cdcb5), _0x229ea2[_0x479a45(_0x3878f7._0x271177)]['push'](_0x5b5c1f[_0x479a45(0x20c)]), _0x229ea2[_0x479a45(_0x3878f7._0x405578)][_0x479a45(_0x3878f7._0x1a0639)](_0x5b5c1f['aggregateId'], {
|
|
1347
|
+
'payloadJson': _0x5b5c1f[_0x479a45(0x25f)],
|
|
1348
|
+
'seq': _0x5b5c1f[_0x479a45(0x23e)]
|
|
1349
|
+
}), _0x342985['set'](_0x3dcfe6, _0x229ea2);
|
|
1332
1350
|
}
|
|
1333
|
-
const
|
|
1334
|
-
for (const
|
|
1351
|
+
const _0x456c39 = [];
|
|
1352
|
+
for (const _0x5d751c of _0x342985[_0x479a45(_0x3878f7._0x27cd82)]()) {
|
|
1335
1353
|
const {
|
|
1336
|
-
channelId:
|
|
1337
|
-
threadId:
|
|
1338
|
-
rootMessageId:
|
|
1339
|
-
threadNumber:
|
|
1340
|
-
aggregateIds:
|
|
1341
|
-
isThreadReply:
|
|
1342
|
-
entries:
|
|
1343
|
-
} =
|
|
1344
|
-
'channelTarget':
|
|
1345
|
-
'rootMessageId':
|
|
1346
|
-
'threadId':
|
|
1347
|
-
'threadNumber':
|
|
1348
|
-
},
|
|
1349
|
-
'channelId':
|
|
1350
|
-
'channelTarget':
|
|
1351
|
-
'limit': Math[
|
|
1352
|
-
'threadId':
|
|
1353
|
-
}),
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
])),
|
|
1357
|
-
for (const
|
|
1358
|
-
if (!
|
|
1354
|
+
channelId: _0x1b6da5,
|
|
1355
|
+
threadId: _0x45f709,
|
|
1356
|
+
rootMessageId: _0x333e54,
|
|
1357
|
+
threadNumber: _0x4d04f8,
|
|
1358
|
+
aggregateIds: _0x416495,
|
|
1359
|
+
isThreadReply: _0x11a514,
|
|
1360
|
+
entries: _0x3de9af
|
|
1361
|
+
} = _0x5d751c, _0x305620 = _0x25e943['get'](_0x1b6da5), _0x52734b = _0x305620?.[_0x479a45(_0x3878f7._0x32fb4b)] ?? _0x1b6da5, _0x19d9dd = _0x305620?.[_0x479a45(0x2aa)] === 'dm' ? _0x479a45(_0x3878f7._0x3f457e) + _0x52734b : '#' + _0x52734b, _0x36eb04 = {
|
|
1362
|
+
'channelTarget': _0x19d9dd,
|
|
1363
|
+
'rootMessageId': _0x333e54,
|
|
1364
|
+
'threadId': _0x45f709,
|
|
1365
|
+
'threadNumber': _0x4d04f8
|
|
1366
|
+
}, _0x4d53e2 = await _0x44fd12({
|
|
1367
|
+
'channelId': _0x1b6da5,
|
|
1368
|
+
'channelTarget': _0x19d9dd,
|
|
1369
|
+
'limit': Math[_0x479a45(0x2c6)](_0x416495[_0x479a45(0x1de)], 0x32),
|
|
1370
|
+
'threadId': _0x45f709
|
|
1371
|
+
}), _0x16b171 = new Map(_0x4d53e2['messages'][_0x479a45(_0x3878f7._0x567c1a)](_0xa67492 => [
|
|
1372
|
+
_0xa67492[_0x479a45(0x244)],
|
|
1373
|
+
_0xa67492
|
|
1374
|
+
])), _0x2a3256 = _0x45f709 ? _0x4115cc(_0x36eb04) : _0x19d9dd, _0x4cd834 = _0x3c19e6 ? _0x11a514 && _0x5bc090(_0x3c19e6, _0x36eb04) : !![], _0xebfd10 = _0x11a514 ? _0x4cd834 && _0x3c19e6 ? _0x3c19e6 : _0x2a3256 : _0x19d9dd;
|
|
1375
|
+
for (const _0x59aa4d of _0x416495) {
|
|
1376
|
+
if (!_0x4cd834)
|
|
1359
1377
|
continue;
|
|
1360
|
-
const
|
|
1361
|
-
if (
|
|
1378
|
+
const _0x488ffa = _0x3de9af[_0x479a45(0x274)](_0x59aa4d), _0x17f45b = _0x488ffa ? asRecord(_0x488ffa[_0x479a45(0x25f)]) : void 0x0, _0x5ad34f = _0x17f45b?.['taskDeliveryMode'] === _0x479a45(0x1d8);
|
|
1379
|
+
if (_0x111984 && _0x5ad34f)
|
|
1362
1380
|
continue;
|
|
1363
|
-
const
|
|
1364
|
-
if (
|
|
1365
|
-
|
|
1366
|
-
'attachments':
|
|
1367
|
-
'content':
|
|
1368
|
-
'createdAt':
|
|
1369
|
-
...
|
|
1370
|
-
'messageId':
|
|
1371
|
-
'senderName':
|
|
1372
|
-
'senderType':
|
|
1373
|
-
'target':
|
|
1374
|
-
...
|
|
1381
|
+
const _0x360e90 = _0x16b171[_0x479a45(0x274)](_0x59aa4d);
|
|
1382
|
+
if (_0x360e90) {
|
|
1383
|
+
_0x456c39[_0x479a45(0x1eb)]({
|
|
1384
|
+
'attachments': _0x360e90[_0x479a45(0x20a)],
|
|
1385
|
+
'content': _0x360e90[_0x479a45(_0x3878f7._0x394e3d)],
|
|
1386
|
+
'createdAt': _0x360e90[_0x479a45(0x2bb)],
|
|
1387
|
+
..._0x360e90['kind'] ? { 'kind': _0x360e90['kind'] } : {},
|
|
1388
|
+
'messageId': _0x360e90['messageId'],
|
|
1389
|
+
'senderName': _0x360e90[_0x479a45(0x1e1)],
|
|
1390
|
+
'senderType': _0x360e90[_0x479a45(0x283)],
|
|
1391
|
+
'target': _0xebfd10,
|
|
1392
|
+
..._0x5ad34f ? { 'targetedTask': !![] } : {}
|
|
1375
1393
|
});
|
|
1376
1394
|
continue;
|
|
1377
1395
|
}
|
|
1378
|
-
if (
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1396
|
+
if (_0x488ffa) {
|
|
1397
|
+
const _0x428a9c = typeof _0x17f45b?.['senderParticipantId'] === _0x479a45(_0x3878f7._0x4e3572) ? _0x17f45b[_0x479a45(0x249)] : '', _0x52d458 = typeof _0x17f45b?.['bodyMarkdown'] === _0x479a45(0x24b) ? _0x17f45b['bodyMarkdown'] : '', _0x588485 = typeof _0x17f45b?.[_0x479a45(0x2aa)] === _0x479a45(0x24b) && _0x17f45b['kind'] !== _0x479a45(0x302) ? _0x17f45b['kind'] : void 0x0;
|
|
1398
|
+
_0x428a9c && _0x52d458 && _0x456c39[_0x479a45(0x1eb)]({
|
|
1381
1399
|
'attachments': [],
|
|
1382
|
-
'content':
|
|
1383
|
-
'createdAt': new Date()[
|
|
1384
|
-
...
|
|
1385
|
-
'messageId':
|
|
1386
|
-
'senderName':
|
|
1387
|
-
'senderType':
|
|
1388
|
-
'target':
|
|
1389
|
-
...
|
|
1400
|
+
'content': _0x52d458,
|
|
1401
|
+
'createdAt': new Date()[_0x479a45(0x199)](),
|
|
1402
|
+
..._0x588485 ? { 'kind': _0x588485 } : {},
|
|
1403
|
+
'messageId': _0x59aa4d,
|
|
1404
|
+
'senderName': _0xba39f1(_0x428a9c, _0x50a2d8),
|
|
1405
|
+
'senderType': _0x45d3d3(_0x428a9c, _0x50a2d8),
|
|
1406
|
+
'target': _0xebfd10,
|
|
1407
|
+
..._0x5ad34f ? { 'targetedTask': !![] } : {}
|
|
1390
1408
|
});
|
|
1391
1409
|
}
|
|
1392
1410
|
}
|
|
1393
1411
|
}
|
|
1394
|
-
if (
|
|
1395
|
-
if (
|
|
1396
|
-
await
|
|
1412
|
+
if (_0x6eef14 > 0x0) {
|
|
1413
|
+
if (_0x30023b)
|
|
1414
|
+
await _0x5705da(_0x6eef14);
|
|
1397
1415
|
else
|
|
1398
|
-
|
|
1416
|
+
_0x576566 && await _0x21c1a9(_0x6eef14);
|
|
1399
1417
|
}
|
|
1400
|
-
return
|
|
1418
|
+
return _0x6eef14 > _0x3f1834 && (_0x3f1834 = _0x6eef14), { 'messages': _0x3c19e6 ? _0x456c39 : _0x111984 ? _0x456c39[_0x479a45(0x27b)](_0x5c0b72 => _0x5c0b72[_0x479a45(0x27d)] !== !![]) : _0x456c39 };
|
|
1401
1419
|
}
|
|
1402
1420
|
};
|
|
1403
1421
|
}
|
|
1404
|
-
function toLocalTime(
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
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']());
|
|
1422
|
+
function toLocalTime(_0x786f80) {
|
|
1423
|
+
const _0x5735f3 = {
|
|
1424
|
+
_0x742c32: 0x23b,
|
|
1425
|
+
_0x55318c: 0x1f8,
|
|
1426
|
+
_0xb52c5d: 0x2e4
|
|
1427
|
+
}, _0x2789b7 = _0x2869e3, _0x22c52d = new Date(_0x786f80);
|
|
1428
|
+
if (Number['isNaN'](_0x22c52d['getTime']()))
|
|
1429
|
+
return _0x786f80;
|
|
1430
|
+
const _0x33e05f = _0x35bae8 => String(_0x35bae8)[_0x2789b7(0x2d6)](0x2, '0');
|
|
1431
|
+
return _0x22c52d[_0x2789b7(0x25a)]() + '-' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0x742c32)]() + 0x1) + '-' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0x55318c)]()) + '\x20' + _0x33e05f(_0x22c52d['getHours']()) + ':' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0xb52c5d)]()) + ':' + _0x33e05f(_0x22c52d[_0x2789b7(0x239)]());
|
|
1415
1432
|
}
|
|
1416
|
-
function formatAttachmentSuffix(
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
},
|
|
1421
|
-
if (!
|
|
1433
|
+
function formatAttachmentSuffix(_0x89c2c4) {
|
|
1434
|
+
const _0x1bf2e2 = {
|
|
1435
|
+
_0x102c1a: 0x1de,
|
|
1436
|
+
_0x325616: 0x2b0
|
|
1437
|
+
}, _0x221382 = _0x2869e3;
|
|
1438
|
+
if (!_0x89c2c4 || _0x89c2c4['length'] === 0x0)
|
|
1422
1439
|
return '';
|
|
1423
|
-
return '\x20[' +
|
|
1440
|
+
return '\x20[' + _0x89c2c4[_0x221382(_0x1bf2e2._0x102c1a)] + _0x221382(0x203) + (_0x89c2c4[_0x221382(0x1de)] > 0x1 ? 's' : '') + ':\x20' + _0x89c2c4[_0x221382(_0x1bf2e2._0x325616)](_0x139ede => _0x139ede[_0x221382(0x2ef)] + _0x221382(0x1cb) + _0x139ede['id'] + ')')[_0x221382(0x2b5)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1424
1441
|
}
|
|
1425
|
-
function formatCheckMessages(
|
|
1426
|
-
const
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1442
|
+
function formatCheckMessages(_0x143d77) {
|
|
1443
|
+
const _0x1876e8 = {
|
|
1444
|
+
_0x1f2907: 0x1de,
|
|
1445
|
+
_0x4a8a22: 0x2b0
|
|
1446
|
+
}, _0x4772c0 = {
|
|
1447
|
+
_0x4e5359: 0x283,
|
|
1448
|
+
_0x36758c: 0x1f3,
|
|
1449
|
+
_0x5054f8: 0x1d0,
|
|
1450
|
+
_0x785fd: 0x2aa,
|
|
1451
|
+
_0x5a000f: 0x285,
|
|
1452
|
+
_0x42fda2: 0x256,
|
|
1453
|
+
_0x42cf4e: 0x2e3,
|
|
1454
|
+
_0x96bd3c: 0x268,
|
|
1455
|
+
_0x261bf8: 0x20a
|
|
1456
|
+
}, _0x714e41 = _0x2869e3;
|
|
1457
|
+
if (_0x143d77[_0x714e41(_0x1876e8._0x1f2907)] === 0x0)
|
|
1458
|
+
return _0x714e41(0x1a0);
|
|
1459
|
+
return _0x143d77[_0x714e41(_0x1876e8._0x4a8a22)](_0x3be252 => {
|
|
1460
|
+
const _0x417c01 = _0x714e41, _0x4d8d26 = _0x3be252[_0x417c01(_0x4772c0._0x4e5359)] === _0x417c01(_0x4772c0._0x36758c) ? _0x417c01(_0x4772c0._0x5054f8) : '', _0x180627 = _0x3be252[_0x417c01(_0x4772c0._0x785fd)] && _0x3be252[_0x417c01(_0x4772c0._0x785fd)] !== 'chat' ? '\x20kind=' + _0x3be252['kind'] : '';
|
|
1461
|
+
return _0x417c01(0x220) + _0x3be252[_0x417c01(_0x4772c0._0x5a000f)] + _0x417c01(0x186) + _0x3be252[_0x417c01(0x244)][_0x417c01(0x231)](0x0, 0x8) + _0x417c01(_0x4772c0._0x42fda2) + toLocalTime(_0x3be252[_0x417c01(0x2bb)]) + _0x4d8d26 + _0x180627 + _0x417c01(_0x4772c0._0x42cf4e) + _0x3be252['senderName'] + ':\x20' + _0x3be252[_0x417c01(_0x4772c0._0x96bd3c)] + formatAttachmentSuffix(_0x3be252[_0x417c01(_0x4772c0._0x261bf8)]);
|
|
1462
|
+
})[_0x714e41(0x2b5)]('\x0a');
|
|
1444
1463
|
}
|
|
1445
|
-
function formatHistory(
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1464
|
+
function formatHistory(_0x575b54) {
|
|
1465
|
+
const _0x5ddb40 = {
|
|
1466
|
+
_0x913ae3: 0x250,
|
|
1467
|
+
_0x3b4855: 0x185,
|
|
1468
|
+
_0x1e76e0: 0x2b0,
|
|
1469
|
+
_0x2e6a48: 0x2b5,
|
|
1470
|
+
_0x1fbf8b: 0x209,
|
|
1471
|
+
_0x122d23: 0x178,
|
|
1472
|
+
_0x21b6cc: 0x250,
|
|
1473
|
+
_0x3be653: 0x209,
|
|
1474
|
+
_0x483a2f: 0x2ae,
|
|
1475
|
+
_0x4b37f5: 0x250,
|
|
1476
|
+
_0xea2382: 0x1de
|
|
1477
|
+
}, _0xd107dd = {
|
|
1478
|
+
_0x38a432: 0x283,
|
|
1479
|
+
_0x2f9695: 0x2aa,
|
|
1480
|
+
_0x5e4086: 0x302,
|
|
1481
|
+
_0x5275eb: 0x2aa,
|
|
1482
|
+
_0xf1b7b7: 0x244,
|
|
1483
|
+
_0x259f2d: 0x256,
|
|
1484
|
+
_0x5048b0: 0x2bb,
|
|
1485
|
+
_0x4a728f: 0x1e1,
|
|
1486
|
+
_0x21eaa1: 0x20a
|
|
1487
|
+
}, _0x4aa0a9 = _0x2869e3;
|
|
1488
|
+
if (_0x575b54[_0x4aa0a9(_0x5ddb40._0x913ae3)]['length'] === 0x0)
|
|
1489
|
+
return '##\x20Message\x20History\x20for\x20' + _0x575b54[_0x4aa0a9(0x188)] + _0x4aa0a9(_0x5ddb40._0x3b4855);
|
|
1490
|
+
const _0x1184af = _0x575b54['messages'][_0x4aa0a9(_0x5ddb40._0x1e76e0)](_0x29d76b => {
|
|
1491
|
+
const _0x34e8bf = _0x4aa0a9, _0x31c29b = _0x29d76b[_0x34e8bf(_0xd107dd._0x38a432)] === 'agent' ? _0x34e8bf(0x1d0) : '', _0x11fa3d = _0x29d76b['kind'] && _0x29d76b[_0x34e8bf(_0xd107dd._0x2f9695)] !== _0x34e8bf(_0xd107dd._0x5e4086) ? _0x34e8bf(0x27f) + _0x29d76b[_0x34e8bf(_0xd107dd._0x5275eb)] : '';
|
|
1492
|
+
return _0x34e8bf(0x17d) + _0x29d76b[_0x34e8bf(0x23e)] + _0x34e8bf(0x186) + _0x29d76b[_0x34e8bf(_0xd107dd._0xf1b7b7)] + _0x34e8bf(_0xd107dd._0x259f2d) + toLocalTime(_0x29d76b[_0x34e8bf(_0xd107dd._0x5048b0)]) + _0x31c29b + _0x11fa3d + _0x34e8bf(0x2e3) + _0x29d76b[_0x34e8bf(_0xd107dd._0x4a728f)] + ':\x20' + _0x29d76b[_0x34e8bf(0x268)] + formatAttachmentSuffix(_0x29d76b[_0x34e8bf(_0xd107dd._0x21eaa1)]);
|
|
1493
|
+
})[_0x4aa0a9(_0x5ddb40._0x2e6a48)]('\x0a'), _0x24159e = _0x575b54[_0x4aa0a9(0x204)] && _0x575b54[_0x4aa0a9(_0x5ddb40._0x1fbf8b)] ? _0x4aa0a9(_0x5ddb40._0x122d23) + _0x575b54[_0x4aa0a9(_0x5ddb40._0x21b6cc)]['length'] + _0x4aa0a9(0x259) + _0x575b54[_0x4aa0a9(_0x5ddb40._0x3be653)] + _0x4aa0a9(_0x5ddb40._0x483a2f) : '';
|
|
1494
|
+
return _0x4aa0a9(0x1e0) + _0x575b54['channel'] + '\x20(' + _0x575b54[_0x4aa0a9(_0x5ddb40._0x4b37f5)][_0x4aa0a9(_0x5ddb40._0xea2382)] + '\x20messages)\x0a\x0a' + _0x1184af + _0x24159e;
|
|
1473
1495
|
}
|
|
1474
|
-
function formatServerDirectory(
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1496
|
+
function formatServerDirectory(_0x551f55) {
|
|
1497
|
+
const _0x1087d9 = {
|
|
1498
|
+
_0x36cf87: 0x2ab,
|
|
1499
|
+
_0x3ee647: 0x2ac,
|
|
1500
|
+
_0x3a89a6: 0x2ac,
|
|
1501
|
+
_0x541c62: 0x17c,
|
|
1502
|
+
_0x2351d9: 0x2b0,
|
|
1503
|
+
_0x4ed322: 0x2b5,
|
|
1504
|
+
_0x457121: 0x1fe,
|
|
1505
|
+
_0x317bbf: 0x2cb,
|
|
1506
|
+
_0x579951: 0x1fa,
|
|
1507
|
+
_0x1cd793: 0x2b5
|
|
1508
|
+
}, _0x15ae96 = _0x2869e3, _0x144b55 = _0x551f55[_0x15ae96(_0x1087d9._0x36cf87)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(0x2ab)][_0x15ae96(0x2b0)](_0x410fa8 => _0x410fa8['description'] ? _0x15ae96(0x212) + _0x410fa8['name'] + _0x15ae96(0x2ec) + _0x410fa8[_0x15ae96(0x190)] : _0x15ae96(0x212) + _0x410fa8['name'])['join']('\x0a') : _0x15ae96(0x2db), _0x29c670 = _0x551f55[_0x15ae96(_0x1087d9._0x3ee647)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(_0x1087d9._0x3a89a6)][_0x15ae96(0x2b0)](_0x5cb8e9 => _0x15ae96(0x299) + _0x5cb8e9['name'])[_0x15ae96(0x2b5)]('\x0a') : '(none)', _0x4cb1bc = _0x551f55[_0x15ae96(_0x1087d9._0x541c62)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(0x17c)][_0x15ae96(_0x1087d9._0x2351d9)](_0xac2f18 => _0x15ae96(0x299) + _0xac2f18[_0x15ae96(0x2c3)])[_0x15ae96(_0x1087d9._0x4ed322)]('\x0a') : _0x15ae96(0x2db);
|
|
1486
1509
|
return [
|
|
1487
|
-
|
|
1510
|
+
_0x15ae96(_0x1087d9._0x457121) + _0x551f55[_0x15ae96(_0x1087d9._0x317bbf)],
|
|
1488
1511
|
'',
|
|
1489
|
-
|
|
1490
|
-
|
|
1512
|
+
_0x15ae96(_0x1087d9._0x579951),
|
|
1513
|
+
_0x144b55,
|
|
1491
1514
|
'',
|
|
1492
|
-
|
|
1493
|
-
|
|
1515
|
+
'###\x20Agents',
|
|
1516
|
+
_0x29c670,
|
|
1494
1517
|
'',
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
][
|
|
1498
|
-
}
|
|
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.';
|
|
1518
|
+
'###\x20Humans',
|
|
1519
|
+
_0x4cb1bc
|
|
1520
|
+
][_0x15ae96(_0x1087d9._0x1cd793)]('\x0a');
|
|
1506
1521
|
}
|
|
1507
|
-
function
|
|
1508
|
-
const
|
|
1509
|
-
return
|
|
1522
|
+
function formatUploadResult(_0x17d411) {
|
|
1523
|
+
const _0xd537c4 = { _0x2a4abd: 0x22f }, _0x137bf5 = _0x2869e3;
|
|
1524
|
+
return _0x137bf5(0x290) + _0x17d411['filename'] + '\x20(' + (_0x17d411[_0x137bf5(0x196)] / 0x400)[_0x137bf5(_0xd537c4._0x2a4abd)](0x1) + _0x137bf5(0x2f1) + _0x17d411[_0x137bf5(0x227)] + _0x137bf5(0x1d4);
|
|
1510
1525
|
}
|
|
1511
|
-
function
|
|
1512
|
-
const
|
|
1513
|
-
|
|
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;
|
|
1529
|
-
})['join']('\x0a');
|
|
1526
|
+
function formatViewFileResult(_0x119f32, _0x15e4df) {
|
|
1527
|
+
const _0x3fd338 = { _0xc3d485: 0x183 }, _0x2a2e6c = _0x2869e3;
|
|
1528
|
+
return _0x15e4df ? _0x2a2e6c(_0x3fd338._0xc3d485) + _0x119f32 : _0x2a2e6c(0x224) + _0x119f32;
|
|
1530
1529
|
}
|
|
1531
|
-
function
|
|
1532
|
-
const
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
},
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1530
|
+
function formatTaskList(_0x29515d, _0x516677) {
|
|
1531
|
+
const _0x14cce7 = {
|
|
1532
|
+
_0x5a04a6: 0x2b0,
|
|
1533
|
+
_0x47ab14: 0x2b5
|
|
1534
|
+
}, _0x1e0d27 = {
|
|
1535
|
+
_0x15d245: 0x21c,
|
|
1536
|
+
_0x398d8f: 0x2ce,
|
|
1537
|
+
_0x39730d: 0x244,
|
|
1538
|
+
_0x1e8bd5: 0x216,
|
|
1539
|
+
_0x2333b6: 0x2ce,
|
|
1540
|
+
_0x5c58d6: 0x1da,
|
|
1541
|
+
_0x1e09dd: 0x216,
|
|
1542
|
+
_0x10dc13: 0x197
|
|
1543
|
+
}, _0x15dc2b = _0x2869e3;
|
|
1544
|
+
if (_0x29515d[_0x15dc2b(0x1de)] === 0x0)
|
|
1545
|
+
return _0x15dc2b(0x2be);
|
|
1546
|
+
return _0x29515d[_0x15dc2b(_0x14cce7._0x5a04a6)](_0x39d14 => {
|
|
1547
|
+
const _0x19d025 = _0x15dc2b, _0x3ebc36 = _0x39d14[_0x19d025(0x216)] == null ? _0x19d025(_0x1e0d27._0x15d245) : _0x39d14[_0x19d025(_0x1e0d27._0x398d8f)] != null ? '#' + _0x39d14['taskNumber'] + '.' + _0x39d14[_0x19d025(0x2ce)] : '#' + _0x39d14['taskNumber'], _0x21c6d0 = _0x39d14[_0x19d025(_0x1e0d27._0x39730d)] ? '\x20message=' + _0x39d14[_0x19d025(_0x1e0d27._0x39730d)] : '', _0x2c09f4 = _0x516677 && _0x39d14[_0x19d025(_0x1e0d27._0x1e8bd5)] != null && !_0x39d14[_0x19d025(_0x1e0d27._0x2333b6)] && _0x516677[_0x19d025(_0x1e0d27._0x5c58d6)](_0x39d14[_0x19d025(_0x1e0d27._0x1e09dd)]) ? _0x19d025(0x26c) : '', _0x20c6fb = _0x39d14[_0x19d025(_0x1e0d27._0x10dc13)] != null && _0x39d14[_0x19d025(0x197)] > 0x0 ? '\x20(' + (_0x39d14[_0x19d025(0x1f9)] ?? 0x0) + '/' + _0x39d14['childrenTotal'] + '\x20done)' : '';
|
|
1548
|
+
return _0x3ebc36 + '\x20[' + _0x39d14['status'] + ']\x20' + _0x39d14['title'] + _0x20c6fb + _0x21c6d0 + _0x2c09f4;
|
|
1549
|
+
})[_0x15dc2b(_0x14cce7._0x47ab14)]('\x0a');
|
|
1547
1550
|
}
|
|
1548
|
-
function
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
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;
|
|
1551
|
+
function formatCreatedTasks(_0x9c4e41) {
|
|
1552
|
+
const _0x55474d = {
|
|
1553
|
+
_0x3f5d6a: 0x2f0,
|
|
1554
|
+
_0x493bc3: 0x2b5
|
|
1555
|
+
}, _0x459ac0 = {
|
|
1556
|
+
_0x376a76: 0x216,
|
|
1557
|
+
_0x45286b: 0x21c
|
|
1558
|
+
}, _0x526515 = _0x2869e3;
|
|
1559
|
+
if (_0x9c4e41['length'] === 0x0)
|
|
1560
|
+
return _0x526515(_0x55474d._0x3f5d6a);
|
|
1561
|
+
return _0x9c4e41[_0x526515(0x2b0)](_0x43c135 => {
|
|
1562
|
+
const _0x3854d2 = _0x526515, _0x3253d7 = _0x43c135[_0x3854d2(_0x459ac0._0x376a76)] == null ? _0x3854d2(_0x459ac0._0x45286b) : _0x43c135[_0x3854d2(0x2ce)] != null ? '#' + _0x43c135[_0x3854d2(0x216)] + '.' + _0x43c135['subtaskNumber'] : '#' + _0x43c135[_0x3854d2(0x216)], _0xf7d997 = _0x43c135['messageId'] ? _0x3854d2(0x1ab) + _0x43c135[_0x3854d2(0x244)] : '';
|
|
1563
|
+
return _0x3253d7 + '\x20' + _0x43c135[_0x3854d2(0x2e5)] + _0xf7d997;
|
|
1564
|
+
})[_0x526515(_0x55474d._0x493bc3)]('\x0a');
|
|
1568
1565
|
}
|
|
1569
|
-
function formatClaimTaskLabel(
|
|
1570
|
-
const
|
|
1571
|
-
if (
|
|
1572
|
-
return
|
|
1573
|
-
return
|
|
1566
|
+
function formatClaimTaskLabel(_0x159e43, _0x4e59a4) {
|
|
1567
|
+
const _0x23cb47 = _0x2869e3;
|
|
1568
|
+
if (_0x159e43 == null)
|
|
1569
|
+
return _0x23cb47(0x21c);
|
|
1570
|
+
return _0x4e59a4 != null ? '#' + _0x159e43 + '.' + _0x4e59a4 : '#' + _0x159e43;
|
|
1574
1571
|
}
|
|
1575
|
-
function formatClaimTaskResults(
|
|
1576
|
-
const
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
}, _0x45b592 = _0x4641dd;
|
|
1594
|
-
if (_0x4b4530[_0x45b592(0x223)] === 0x0)
|
|
1572
|
+
function formatClaimTaskResults(_0x247d02) {
|
|
1573
|
+
const _0xe61263 = {
|
|
1574
|
+
_0xdc6ad1: 0x1de,
|
|
1575
|
+
_0x17a8b4: 0x2b0
|
|
1576
|
+
}, _0x27e519 = {
|
|
1577
|
+
_0x416c49: 0x1b9,
|
|
1578
|
+
_0x516309: 0x244,
|
|
1579
|
+
_0x1b0294: 0x2dd,
|
|
1580
|
+
_0x39a2be: 0x276,
|
|
1581
|
+
_0x18d92e: 0x25b,
|
|
1582
|
+
_0x18109e: 0x298,
|
|
1583
|
+
_0x5a887e: 0x1e4,
|
|
1584
|
+
_0x77e4e3: 0x266,
|
|
1585
|
+
_0x5e4e91: 0x25c,
|
|
1586
|
+
_0x5be9ca: 0x20d,
|
|
1587
|
+
_0x3ca800: 0x282
|
|
1588
|
+
}, _0x19b06f = _0x2869e3;
|
|
1589
|
+
if (_0x247d02[_0x19b06f(_0xe61263._0xdc6ad1)] === 0x0)
|
|
1595
1590
|
return 'No\x20tasks\x20claimed.';
|
|
1596
|
-
return
|
|
1597
|
-
const
|
|
1598
|
-
if (
|
|
1599
|
-
const
|
|
1600
|
-
if (
|
|
1601
|
-
const
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
][
|
|
1608
|
-
return
|
|
1591
|
+
return _0x247d02[_0x19b06f(_0xe61263._0x17a8b4)](_0x433712 => {
|
|
1592
|
+
const _0x29a5ab = _0x19b06f;
|
|
1593
|
+
if (_0x433712[_0x29a5ab(_0x27e519._0x416c49)]) {
|
|
1594
|
+
const _0x483172 = formatClaimTaskLabel(_0x433712[_0x29a5ab(0x216)], _0x433712[_0x29a5ab(0x2ce)]), _0xcabde = _0x433712[_0x29a5ab(_0x27e519._0x516309)] ? _0x29a5ab(0x1ab) + _0x433712[_0x29a5ab(_0x27e519._0x516309)] : '';
|
|
1595
|
+
if (_0x433712[_0x29a5ab(0x2d2)]) {
|
|
1596
|
+
const _0x715117 = [
|
|
1597
|
+
_0x29a5ab(0x293),
|
|
1598
|
+
_0x433712[_0x29a5ab(0x24e)] ? _0x29a5ab(_0x27e519._0x1b0294) : null,
|
|
1599
|
+
_0x433712[_0x29a5ab(0x18c)] ? _0x29a5ab(_0x27e519._0x39a2be) + _0x433712[_0x29a5ab(0x18c)] : null,
|
|
1600
|
+
_0x433712[_0x29a5ab(_0x27e519._0x18d92e)] ? _0x29a5ab(0x294) + _0x433712['threadTarget'] : null,
|
|
1601
|
+
_0x433712['workerDisposition'] ? 'workerDisposition=' + _0x433712['workerDisposition'] : null
|
|
1602
|
+
][_0x29a5ab(0x27b)](Boolean)[_0x29a5ab(0x2b5)]('\x20');
|
|
1603
|
+
return _0x483172 + _0x29a5ab(0x1e4) + _0xcabde + '\x20' + _0x715117 + _0x29a5ab(_0x27e519._0x18109e);
|
|
1609
1604
|
}
|
|
1610
|
-
if (
|
|
1611
|
-
return
|
|
1612
|
-
const
|
|
1613
|
-
return
|
|
1605
|
+
if (_0x433712[_0x29a5ab(0x18c)] === 'main')
|
|
1606
|
+
return _0x483172 + _0x29a5ab(_0x27e519._0x5a887e) + _0xcabde + '\x20workerHandoff=false\x20executionMode=main\x0aStay\x20in\x20main\x20session:\x20read\x20the\x20referenced\x20plan/document\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20(or\x20otherwise\x20advance\x20the\x20task\x20in\x20main\x20without\x20handing\x20off\x20to\x20a\x20worker).';
|
|
1607
|
+
const _0x4b9b00 = _0x433712[_0x29a5ab(_0x27e519._0x77e4e3)] ? _0x29a5ab(_0x27e519._0x5e4e91) + _0x433712[_0x29a5ab(0x266)] : '';
|
|
1608
|
+
return _0x483172 + _0x29a5ab(0x1e4) + _0xcabde + _0x4b9b00;
|
|
1614
1609
|
}
|
|
1615
|
-
const
|
|
1616
|
-
return
|
|
1617
|
-
})[
|
|
1610
|
+
const _0x1428d6 = _0x433712[_0x29a5ab(0x216)] == null ? _0x433712[_0x29a5ab(0x244)] ?? '(unknown)' : formatClaimTaskLabel(_0x433712['taskNumber'], _0x433712['subtaskNumber']);
|
|
1611
|
+
return _0x1428d6 + _0x29a5ab(0x1ae) + (_0x433712[_0x29a5ab(_0x27e519._0x5be9ca)] ?? _0x29a5ab(_0x27e519._0x3ca800));
|
|
1612
|
+
})['join']('\x0a');
|
|
1618
1613
|
}
|
|
1619
|
-
function formatUnclaimTaskResult(
|
|
1620
|
-
const
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
},
|
|
1624
|
-
return
|
|
1614
|
+
function formatUnclaimTaskResult(_0x2c7edf) {
|
|
1615
|
+
const _0x2b845a = {
|
|
1616
|
+
_0x1c7317: 0x21c,
|
|
1617
|
+
_0x2fb5dd: 0x200
|
|
1618
|
+
}, _0x7f1193 = _0x2869e3, _0x484dab = _0x2c7edf[_0x7f1193(0x216)] == null ? _0x7f1193(_0x2b845a._0x1c7317) : _0x2c7edf[_0x7f1193(0x2ce)] != null ? '#' + _0x2c7edf['taskNumber'] + '.' + _0x2c7edf['subtaskNumber'] : '#' + _0x2c7edf[_0x7f1193(0x216)];
|
|
1619
|
+
return _0x484dab + _0x7f1193(_0x2b845a._0x2fb5dd) + _0x2c7edf['status'];
|
|
1625
1620
|
}
|
|
1626
|
-
function formatUpdateTaskStatusResult(
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1621
|
+
function formatUpdateTaskStatusResult(_0x45cc52) {
|
|
1622
|
+
const _0x38f2f5 = {
|
|
1623
|
+
_0x2695e8: 0x21c,
|
|
1624
|
+
_0x482d10: 0x216,
|
|
1625
|
+
_0x523a5c: 0x2ce,
|
|
1626
|
+
_0x28a2c0: 0x17b,
|
|
1627
|
+
_0x47c10e: 0x277
|
|
1628
|
+
}, _0x5e4443 = _0x2869e3, _0x411bfd = _0x45cc52[_0x5e4443(0x216)] == null ? _0x5e4443(_0x38f2f5._0x2695e8) : _0x45cc52[_0x5e4443(0x2ce)] != null ? '#' + _0x45cc52[_0x5e4443(_0x38f2f5._0x482d10)] + '.' + _0x45cc52[_0x5e4443(_0x38f2f5._0x523a5c)] : '#' + _0x45cc52['taskNumber'], _0x3536bf = _0x411bfd + _0x5e4443(0x200) + _0x45cc52[_0x5e4443(_0x38f2f5._0x28a2c0)];
|
|
1629
|
+
if (_0x45cc52[_0x5e4443(_0x38f2f5._0x28a2c0)] !== _0x5e4443(_0x38f2f5._0x47c10e))
|
|
1630
|
+
return _0x3536bf;
|
|
1631
|
+
return _0x3536bf + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
|
|
1635
1632
|
}
|
|
1636
1633
|
function getChatBridgeToolDefinitions() {
|
|
1637
|
-
const
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1634
|
+
const _0x199deb = {
|
|
1635
|
+
_0x1b331b: 0x275,
|
|
1636
|
+
_0x133d4a: 0x1ed,
|
|
1637
|
+
_0x305268: 0x1c5,
|
|
1638
|
+
_0xadcc5a: 0x1a3,
|
|
1639
|
+
_0x22dfe9: 0x198,
|
|
1640
|
+
_0x2676cb: 0x1d2,
|
|
1641
|
+
_0x439688: 0x1ad
|
|
1642
|
+
}, _0x4f5994 = _0x2869e3;
|
|
1644
1643
|
return [
|
|
1645
|
-
{ 'name':
|
|
1646
|
-
{ 'name':
|
|
1647
|
-
{ 'name':
|
|
1648
|
-
{ 'name':
|
|
1649
|
-
{ 'name':
|
|
1650
|
-
{ 'name':
|
|
1651
|
-
{ 'name':
|
|
1652
|
-
{ 'name':
|
|
1653
|
-
{ 'name':
|
|
1654
|
-
{ 'name':
|
|
1655
|
-
{ 'name':
|
|
1656
|
-
{ 'name':
|
|
1657
|
-
{ 'name':
|
|
1658
|
-
{ 'name':
|
|
1659
|
-
{ 'name':
|
|
1644
|
+
{ 'name': _0x4f5994(_0x199deb._0x1b331b) },
|
|
1645
|
+
{ 'name': _0x4f5994(0x2c4) },
|
|
1646
|
+
{ 'name': _0x4f5994(0x2d5) },
|
|
1647
|
+
{ 'name': _0x4f5994(_0x199deb._0x133d4a) },
|
|
1648
|
+
{ 'name': _0x4f5994(0x264) },
|
|
1649
|
+
{ 'name': _0x4f5994(_0x199deb._0x305268) },
|
|
1650
|
+
{ 'name': _0x4f5994(0x271) },
|
|
1651
|
+
{ 'name': _0x4f5994(_0x199deb._0xadcc5a) },
|
|
1652
|
+
{ 'name': 'claim_tasks' },
|
|
1653
|
+
{ 'name': _0x4f5994(_0x199deb._0x22dfe9) },
|
|
1654
|
+
{ 'name': 'update_task_status' },
|
|
1655
|
+
{ 'name': _0x4f5994(0x2c1) },
|
|
1656
|
+
{ 'name': _0x4f5994(_0x199deb._0x2676cb) },
|
|
1657
|
+
{ 'name': _0x4f5994(0x254) },
|
|
1658
|
+
{ 'name': _0x4f5994(_0x199deb._0x439688) }
|
|
1660
1659
|
];
|
|
1661
1660
|
}
|
|
1662
|
-
function createChatBridgeHandlers(
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
},
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
},
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
},
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1661
|
+
function createChatBridgeHandlers(_0x2eac44) {
|
|
1662
|
+
const _0x55bc82 = { _0x1d6f34: 0x2f2 }, _0x18484e = {
|
|
1663
|
+
_0x5acab8: 0x217,
|
|
1664
|
+
_0x3f9ebf: 0x1ba,
|
|
1665
|
+
_0x20d25f: 0x20d,
|
|
1666
|
+
_0x25fbb3: 0x1dc,
|
|
1667
|
+
_0xdd250: 0x2d1,
|
|
1668
|
+
_0x51f409: 0x20d
|
|
1669
|
+
}, _0x4506ca = {
|
|
1670
|
+
_0xdd4657: 0x18b,
|
|
1671
|
+
_0x312a17: 0x2f5,
|
|
1672
|
+
_0x11147c: 0x2cf,
|
|
1673
|
+
_0x7f6f24: 0x207,
|
|
1674
|
+
_0x4dce5f: 0x1ba,
|
|
1675
|
+
_0x220e4a: 0x1ee,
|
|
1676
|
+
_0x49a269: 0x222,
|
|
1677
|
+
_0x20bc12: 0x1fc
|
|
1678
|
+
}, _0x206e4e = {
|
|
1679
|
+
_0x460371: 0x1ba,
|
|
1680
|
+
_0x1a2fa: 0x2d9,
|
|
1681
|
+
_0x32582d: 0x222
|
|
1682
|
+
}, _0x26e494 = {
|
|
1683
|
+
_0x2cc407: 0x18b,
|
|
1684
|
+
_0x1b8c68: 0x222,
|
|
1685
|
+
_0xd17bf5: 0x230,
|
|
1686
|
+
_0x439be6: 0x22b,
|
|
1687
|
+
_0x241a93: 0x222,
|
|
1688
|
+
_0x34231c: 0x1c0
|
|
1689
|
+
}, _0xf165d0 = {
|
|
1690
|
+
_0x162ac1: 0x1b1,
|
|
1691
|
+
_0x428b5c: 0x279,
|
|
1692
|
+
_0x286ac9: 0x28f,
|
|
1693
|
+
_0x4cd857: 0x279,
|
|
1694
|
+
_0x5e969f: 0x28b,
|
|
1695
|
+
_0x4202d6: 0x2e6
|
|
1696
|
+
}, _0x511d57 = {
|
|
1697
|
+
_0x37f89c: 0x296,
|
|
1698
|
+
_0x4d9925: 0x228
|
|
1699
|
+
}, _0x41273c = {
|
|
1700
|
+
_0x5316a4: 0x198,
|
|
1701
|
+
_0x4e3e11: 0x188,
|
|
1702
|
+
_0x1adc2b: 0x2d8
|
|
1703
|
+
}, _0x29428a = {
|
|
1704
|
+
_0x567194: 0x1a6,
|
|
1705
|
+
_0x376be1: 0x2df,
|
|
1706
|
+
_0xfecf4f: 0x2ed,
|
|
1707
|
+
_0x4fca2c: 0x2ed,
|
|
1708
|
+
_0x5c5683: 0x2da,
|
|
1709
|
+
_0xed11b0: 0x1de,
|
|
1710
|
+
_0x3f2def: 0x19e,
|
|
1711
|
+
_0x29171e: 0x2eb
|
|
1712
|
+
}, _0xf8060a = {
|
|
1713
|
+
_0x367a77: 0x1d7,
|
|
1714
|
+
_0x6bbeec: 0x18b,
|
|
1715
|
+
_0xad94e2: 0x1f1,
|
|
1716
|
+
_0x588ef4: 0x2f5,
|
|
1717
|
+
_0x5c3e36: 0x1dc,
|
|
1718
|
+
_0x54d750: 0x218,
|
|
1719
|
+
_0x503d5e: 0x27e,
|
|
1720
|
+
_0x125fff: 0x1a9,
|
|
1721
|
+
_0x2d9878: 0x1de,
|
|
1722
|
+
_0x42db94: 0x236,
|
|
1723
|
+
_0x3ac155: 0x2d0,
|
|
1724
|
+
_0xf6b4d4: 0x216,
|
|
1725
|
+
_0x47a3d2: 0x303,
|
|
1726
|
+
_0x1a66ec: 0x216
|
|
1727
|
+
}, _0x1cc49c = {
|
|
1728
|
+
_0x5c392e: 0x28f,
|
|
1729
|
+
_0x3870ec: 0x1c1
|
|
1730
|
+
}, _0x15f2e8 = {
|
|
1731
|
+
_0x575192: 0x28f,
|
|
1732
|
+
_0x57c8b0: 0x1fb
|
|
1733
|
+
}, _0x52a1d8 = {
|
|
1734
|
+
_0x4ac305: 0x1e5,
|
|
1735
|
+
_0x15e9a1: 0x250,
|
|
1736
|
+
_0x19496b: 0x27b
|
|
1737
|
+
}, _0x363cdb = {
|
|
1738
|
+
_0x383862: 0x1a6,
|
|
1739
|
+
_0x328785: 0x2f5,
|
|
1740
|
+
_0x4c992c: 0x285,
|
|
1741
|
+
_0xafcf7d: 0x1cf,
|
|
1742
|
+
_0x8629d4: 0x216,
|
|
1743
|
+
_0x4807f6: 0x252,
|
|
1744
|
+
_0x1443bf: 0x1da,
|
|
1745
|
+
_0x2d937c: 0x2b5,
|
|
1746
|
+
_0x28d2ec: 0x1c2,
|
|
1747
|
+
_0x34689e: 0x284,
|
|
1748
|
+
_0x4544a1: 0x268,
|
|
1749
|
+
_0x21ac43: 0x2f4,
|
|
1750
|
+
_0x5da222: 0x2b9,
|
|
1751
|
+
_0x57f1a7: 0x18b,
|
|
1752
|
+
_0x58a7d0: 0x1f4,
|
|
1753
|
+
_0x4647df: 0x213,
|
|
1754
|
+
_0x1ed9ce: 0x181,
|
|
1755
|
+
_0x4baeb6: 0x2f7,
|
|
1756
|
+
_0x5e0d26: 0x25e,
|
|
1757
|
+
_0x388f4b: 0x28f,
|
|
1758
|
+
_0x36561c: 0x243,
|
|
1759
|
+
_0x263383: 0x2a9,
|
|
1760
|
+
_0xcc9269: 0x2c0,
|
|
1761
|
+
_0x375150: 0x1e8
|
|
1762
|
+
}, _0x4f31e0 = {
|
|
1763
|
+
_0x2e7fa0: 0x18b,
|
|
1764
|
+
_0x1da587: 0x1a6,
|
|
1765
|
+
_0x357b5e: 0x27e,
|
|
1766
|
+
_0x21c7dd: 0x21a
|
|
1767
|
+
}, _0x512970 = {
|
|
1768
|
+
_0x481bda: 0x18b,
|
|
1769
|
+
_0x1d1eaa: 0x2f5,
|
|
1770
|
+
_0x35cc14: 0x18b,
|
|
1771
|
+
_0x577ddb: 0x1f1,
|
|
1772
|
+
_0x366ad3: 0x240,
|
|
1773
|
+
_0x181b65: 0x218,
|
|
1774
|
+
_0x240ede: 0x21a
|
|
1775
|
+
}, _0x433c4f = {
|
|
1776
|
+
_0x23a738: 0x18b,
|
|
1777
|
+
_0x4a77a1: 0x2f5,
|
|
1778
|
+
_0x4f19d4: 0x18c,
|
|
1779
|
+
_0x458545: 0x21c,
|
|
1780
|
+
_0x5ef3ca: 0x216,
|
|
1781
|
+
_0x525216: 0x28f,
|
|
1782
|
+
_0x478ab1: 0x250,
|
|
1783
|
+
_0x547c8b: 0x216,
|
|
1784
|
+
_0x37b218: 0x210,
|
|
1785
|
+
_0x540a77: 0x244,
|
|
1786
|
+
_0xf85da0: 0x18d,
|
|
1787
|
+
_0x546cd7: 0x1f4,
|
|
1788
|
+
_0x4fc3f0: 0x2f4,
|
|
1789
|
+
_0x2de0c9: 0x19c,
|
|
1790
|
+
_0xc11f29: 0x213,
|
|
1791
|
+
_0x1e7610: 0x2d9,
|
|
1792
|
+
_0x346190: 0x2c8,
|
|
1793
|
+
_0x518cb9: 0x2a4,
|
|
1794
|
+
_0x3b4cc2: 0x301
|
|
1795
|
+
}, _0x39a7bc = {
|
|
1796
|
+
_0x2a234c: 0x1ef,
|
|
1797
|
+
_0x3c2a4e: 0x267,
|
|
1798
|
+
_0x1dc6a0: 0x251,
|
|
1799
|
+
_0x1a37bd: 0x267
|
|
1800
|
+
}, _0x359f22 = _0x2869e3;
|
|
1801
|
+
function _0x2022e6(_0x4e66c2, _0x26aea1) {
|
|
1802
|
+
const _0x4c1ddb = _0x355a;
|
|
1803
|
+
if (!_0x2eac44[_0x4c1ddb(0x1a6)])
|
|
1790
1804
|
return;
|
|
1791
|
-
if (!
|
|
1792
|
-
throw new Error(
|
|
1793
|
-
if (
|
|
1794
|
-
throw new Error(
|
|
1805
|
+
if (!_0x2eac44[_0x4c1ddb(0x267)])
|
|
1806
|
+
throw new Error(_0x4e66c2 + _0x4c1ddb(_0x39a7bc._0x2a234c));
|
|
1807
|
+
if (_0x26aea1 !== _0x2eac44[_0x4c1ddb(_0x39a7bc._0x3c2a4e)])
|
|
1808
|
+
throw new Error(_0x4e66c2 + _0x4c1ddb(_0x39a7bc._0x1dc6a0) + _0x2eac44[_0x4c1ddb(_0x39a7bc._0x1a37bd)] + ');\x20got\x20channel=' + _0x26aea1);
|
|
1795
1809
|
}
|
|
1796
|
-
async function
|
|
1797
|
-
const
|
|
1798
|
-
if (!
|
|
1810
|
+
async function _0x3a1b08(_0x84fe47) {
|
|
1811
|
+
const _0x3777e8 = _0x355a;
|
|
1812
|
+
if (!_0x2eac44[_0x3777e8(_0x433c4f._0x23a738)] || !_0x2eac44[_0x3777e8(_0x433c4f._0x4a77a1)] || _0x2eac44[_0x3777e8(0x1a6)] || _0x2eac44[_0x3777e8(0x187)] !== !![])
|
|
1799
1813
|
return null;
|
|
1800
|
-
const
|
|
1801
|
-
if (
|
|
1814
|
+
const _0x487d68 = parseTarget(_0x84fe47[_0x3777e8(0x188)]);
|
|
1815
|
+
if (_0x487d68[_0x3777e8(0x2aa)] !== 'channel')
|
|
1802
1816
|
return null;
|
|
1803
|
-
if (
|
|
1804
|
-
const
|
|
1817
|
+
if (_0x84fe47[_0x3777e8(_0x433c4f._0x4f19d4)] === _0x3777e8(0x1e9)) {
|
|
1818
|
+
const _0xd32c55 = _0x84fe47[_0x3777e8(0x216)] == null ? _0x3777e8(_0x433c4f._0x458545) : '#' + _0x84fe47[_0x3777e8(_0x433c4f._0x5ef3ca)];
|
|
1805
1819
|
return {
|
|
1806
|
-
'executionMode':
|
|
1820
|
+
'executionMode': 'main',
|
|
1807
1821
|
'stopMain': ![],
|
|
1808
1822
|
'workerHandoff': ![],
|
|
1809
|
-
'workerHandoffError': 'task\x20' +
|
|
1823
|
+
'workerHandoffError': 'task\x20' + _0xd32c55 + '\x20stays\x20in\x20main\x20session\x20(executionMode=main);\x20remain\x20here,\x20read\x20the\x20referenced\x20plan/document,\x20and\x20call\x20create_tasks\x20in\x20the\x20parent\x20channel\x20to\x20break\x20it\x20into\x20top-level\x20tasks\x20if\x20that\x20is\x20the\x20intent.'
|
|
1810
1824
|
};
|
|
1811
1825
|
}
|
|
1812
|
-
const
|
|
1813
|
-
let
|
|
1826
|
+
const _0x2f7c31 = _0x84fe47['threadNumber'] != null ? _0x487d68['channelTarget'] + ':t' + _0x84fe47['threadNumber'] : _0x487d68['channelTarget'] + ':' + _0x84fe47['messageId'];
|
|
1827
|
+
let _0x4caedf;
|
|
1814
1828
|
try {
|
|
1815
|
-
const
|
|
1816
|
-
'channel':
|
|
1829
|
+
const _0x2cbe03 = await _0x2eac44[_0x3777e8(_0x433c4f._0x525216)][_0x3777e8(0x1fb)]({
|
|
1830
|
+
'channel': _0x2f7c31,
|
|
1817
1831
|
'limit': 0x14
|
|
1818
1832
|
});
|
|
1819
|
-
|
|
1833
|
+
_0x4caedf = _0x2cbe03[_0x3777e8(_0x433c4f._0x478ab1)][_0x3777e8(0x2d0)](_0x219861 => _0x219861['messageId'] === _0x84fe47[_0x3777e8(0x244)]);
|
|
1820
1834
|
} catch {
|
|
1821
|
-
|
|
1835
|
+
_0x4caedf = void 0x0;
|
|
1822
1836
|
}
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1837
|
+
const _0x248aca = _0x84fe47['taskNumber'] == null ? _0x3777e8(0x21c) : '#' + _0x84fe47[_0x3777e8(_0x433c4f._0x547c8b)], _0x4d5bb2 = [
|
|
1838
|
+
_0x3777e8(0x220) + _0x2f7c31 + _0x3777e8(0x186) + _0x84fe47[_0x3777e8(0x244)]['slice'](0x0, 0x8) + '\x20time=' + new Date()[_0x3777e8(0x199)]() + _0x3777e8(0x1e6) + _0x248aca + '\x20已切换到\x20worker\x20执行',
|
|
1825
1839
|
'',
|
|
1826
|
-
|
|
1840
|
+
_0x4caedf ? _0x3777e8(0x24a) + _0x4caedf[_0x3777e8(0x268)] : _0x3777e8(_0x433c4f._0x37b218) + _0x84fe47[_0x3777e8(_0x433c4f._0x540a77)],
|
|
1827
1841
|
'',
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
][
|
|
1831
|
-
'method':
|
|
1832
|
-
'headers': { 'Content-Type':
|
|
1833
|
-
'body': JSON[
|
|
1834
|
-
'agent_id':
|
|
1835
|
-
'thread_target':
|
|
1842
|
+
_0x3777e8(0x28d) + _0x2f7c31,
|
|
1843
|
+
_0x3777e8(_0x433c4f._0xf85da0)
|
|
1844
|
+
]['join']('\x0a'), _0x1c746c = await fetch(_0x2eac44[_0x3777e8(0x18b)] + _0x3777e8(0x2fe), {
|
|
1845
|
+
'method': 'POST',
|
|
1846
|
+
'headers': { 'Content-Type': _0x3777e8(_0x433c4f._0x546cd7) },
|
|
1847
|
+
'body': JSON[_0x3777e8(0x1ba)]({
|
|
1848
|
+
'agent_id': _0x2eac44[_0x3777e8(0x2f5)],
|
|
1849
|
+
'thread_target': _0x2f7c31,
|
|
1836
1850
|
'spawn_packet': {
|
|
1837
|
-
'replyTarget':
|
|
1838
|
-
...
|
|
1851
|
+
'replyTarget': _0x2f7c31,
|
|
1852
|
+
..._0x84fe47[_0x3777e8(0x2f4)] ? { 'taskId': _0x84fe47[_0x3777e8(_0x433c4f._0x4fc3f0)] } : _0x84fe47[_0x3777e8(0x216)] != null ? { 'taskId': _0x3777e8(_0x433c4f._0x2de0c9) + _0x84fe47['taskNumber'] } : {}
|
|
1839
1853
|
},
|
|
1840
1854
|
'payload': {
|
|
1841
|
-
'mode':
|
|
1842
|
-
'text':
|
|
1855
|
+
'mode': _0x3777e8(_0x433c4f._0xc11f29),
|
|
1856
|
+
'text': _0x4d5bb2
|
|
1843
1857
|
}
|
|
1844
1858
|
})
|
|
1845
|
-
}),
|
|
1846
|
-
if (!
|
|
1847
|
-
throw new Error(
|
|
1859
|
+
}), _0x579cc5 = await _0x1c746c[_0x3777e8(0x1dc)]();
|
|
1860
|
+
if (!_0x579cc5['ok'])
|
|
1861
|
+
throw new Error(_0x579cc5[_0x3777e8(_0x433c4f._0x1e7610)] ?? _0x3777e8(_0x433c4f._0x346190));
|
|
1848
1862
|
return {
|
|
1849
1863
|
'stopMain': !![],
|
|
1850
|
-
'threadTarget':
|
|
1851
|
-
'workerDisposition':
|
|
1864
|
+
'threadTarget': _0x2f7c31,
|
|
1865
|
+
'workerDisposition': _0x579cc5[_0x3777e8(0x2a2)] === 'queued' ? _0x3777e8(0x1ec) : 'started',
|
|
1852
1866
|
'workerHandoff': !![],
|
|
1853
|
-
'workerSessionId':
|
|
1854
|
-
'executionMode':
|
|
1867
|
+
'workerSessionId': _0x579cc5[_0x3777e8(_0x433c4f._0x518cb9)] ?? '',
|
|
1868
|
+
'executionMode': _0x3777e8(_0x433c4f._0x3b4cc2)
|
|
1855
1869
|
};
|
|
1856
1870
|
}
|
|
1857
|
-
async function
|
|
1858
|
-
const
|
|
1859
|
-
if (!
|
|
1871
|
+
async function _0x2fee84() {
|
|
1872
|
+
const _0x1f6314 = _0x355a;
|
|
1873
|
+
if (!_0x2eac44[_0x1f6314(_0x512970._0x481bda)] || !_0x2eac44[_0x1f6314(_0x512970._0x1d1eaa)] || _0x2eac44[_0x1f6314(0x1a6)])
|
|
1860
1874
|
return null;
|
|
1861
1875
|
try {
|
|
1862
|
-
const
|
|
1863
|
-
if (!
|
|
1876
|
+
const _0x3cb389 = await fetch(_0x2eac44[_0x1f6314(_0x512970._0x35cc14)] + _0x1f6314(_0x512970._0x577ddb) + encodeURIComponent(_0x2eac44[_0x1f6314(0x2f5)])), _0x14346f = await _0x3cb389[_0x1f6314(0x1dc)]();
|
|
1877
|
+
if (!_0x14346f['ok'])
|
|
1864
1878
|
return null;
|
|
1865
|
-
const
|
|
1866
|
-
for (const
|
|
1867
|
-
|
|
1879
|
+
const _0x25e71c = new Set();
|
|
1880
|
+
for (const _0x3dd397 of _0x14346f[_0x1f6314(_0x512970._0x366ad3)]) {
|
|
1881
|
+
_0x3dd397['status'] !== _0x1f6314(_0x512970._0x181b65) && _0x3dd397['thread_target'] && _0x25e71c[_0x1f6314(0x1af)](_0x3dd397[_0x1f6314(0x27e)]);
|
|
1868
1882
|
}
|
|
1869
|
-
return
|
|
1883
|
+
return _0x25e71c[_0x1f6314(_0x512970._0x240ede)] > 0x0 ? _0x25e71c : null;
|
|
1870
1884
|
} catch {
|
|
1871
1885
|
return null;
|
|
1872
1886
|
}
|
|
1873
1887
|
}
|
|
1874
|
-
const
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1888
|
+
const _0x592876 = new Set([
|
|
1889
|
+
'running',
|
|
1890
|
+
_0x359f22(_0x55bc82._0x1d6f34),
|
|
1891
|
+
_0x359f22(0x19d)
|
|
1878
1892
|
]);
|
|
1879
|
-
async function
|
|
1880
|
-
const
|
|
1881
|
-
if (!
|
|
1893
|
+
async function _0xd802e7() {
|
|
1894
|
+
const _0x21947e = _0x359f22;
|
|
1895
|
+
if (!_0x2eac44[_0x21947e(_0x4f31e0._0x2e7fa0)] || !_0x2eac44[_0x21947e(0x2f5)] || _0x2eac44[_0x21947e(_0x4f31e0._0x1da587)])
|
|
1882
1896
|
return null;
|
|
1883
1897
|
try {
|
|
1884
|
-
const
|
|
1885
|
-
if (!
|
|
1898
|
+
const _0x6aaabc = await fetch(_0x2eac44[_0x21947e(0x18b)] + '/workers/list?agent_id=' + encodeURIComponent(_0x2eac44[_0x21947e(0x2f5)])), _0x2ed562 = await _0x6aaabc[_0x21947e(0x1dc)]();
|
|
1899
|
+
if (!_0x2ed562['ok'])
|
|
1886
1900
|
return null;
|
|
1887
|
-
const
|
|
1888
|
-
for (const
|
|
1889
|
-
|
|
1901
|
+
const _0x292bcb = new Set();
|
|
1902
|
+
for (const _0x469deb of _0x2ed562[_0x21947e(0x240)]) {
|
|
1903
|
+
_0x592876['has'](_0x469deb['status']) && _0x469deb[_0x21947e(0x27e)] && _0x292bcb[_0x21947e(0x1af)](_0x469deb[_0x21947e(_0x4f31e0._0x357b5e)]);
|
|
1890
1904
|
}
|
|
1891
|
-
return
|
|
1905
|
+
return _0x292bcb[_0x21947e(_0x4f31e0._0x21c7dd)] > 0x0 ? _0x292bcb : null;
|
|
1892
1906
|
} catch {
|
|
1893
1907
|
return null;
|
|
1894
1908
|
}
|
|
1895
1909
|
}
|
|
1896
1910
|
return {
|
|
1897
|
-
async 'send_message'(
|
|
1898
|
-
const
|
|
1899
|
-
if (!
|
|
1900
|
-
const
|
|
1901
|
-
if (
|
|
1902
|
-
const
|
|
1903
|
-
if (
|
|
1911
|
+
async 'send_message'(_0x5bc612) {
|
|
1912
|
+
const _0x203b08 = _0x359f22;
|
|
1913
|
+
if (!_0x2eac44[_0x203b08(_0x363cdb._0x383862)] && _0x2eac44['workerModeEnabled'] && _0x2eac44[_0x203b08(0x18b)] && _0x2eac44[_0x203b08(_0x363cdb._0x328785)]) {
|
|
1914
|
+
const _0x3d09a8 = await _0x2eac44[_0x203b08(0x28f)][_0x203b08(0x1a8)](_0x5bc612[_0x203b08(_0x363cdb._0x4c992c)]);
|
|
1915
|
+
if (_0x3d09a8[_0x203b08(0x1cf)] && _0x3d09a8['threadId']) {
|
|
1916
|
+
const _0x263066 = _0x3d09a8[_0x203b08(_0x363cdb._0xafcf7d)][_0x203b08(0x216)] != null ? '#' + _0x3d09a8['task'][_0x203b08(_0x363cdb._0x8629d4)] : _0x203b08(0x21c), _0x1eb3ca = _0x3d09a8[_0x203b08(0x26f)] != null ? _0x3d09a8['target'] + ':t' + _0x3d09a8[_0x203b08(0x26f)] : _0x3d09a8[_0x203b08(0x285)] + ':' + _0x3d09a8[_0x203b08(_0x363cdb._0x4807f6)]['slice'](0x0, 0x8), _0x50ba48 = await _0xd802e7();
|
|
1917
|
+
if (_0x50ba48?.[_0x203b08(_0x363cdb._0x1443bf)](_0x1eb3ca))
|
|
1904
1918
|
return [
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
][
|
|
1908
|
-
const
|
|
1909
|
-
|
|
1919
|
+
'Task\x20' + _0x263066 + _0x203b08(0x193) + _0x1eb3ca + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1920
|
+
_0x203b08(0x1b3)
|
|
1921
|
+
][_0x203b08(_0x363cdb._0x2d937c)]('\x0a');
|
|
1922
|
+
const _0x50ec75 = [
|
|
1923
|
+
_0x203b08(0x220) + _0x1eb3ca + _0x203b08(_0x363cdb._0x28d2ec) + new Date()[_0x203b08(0x199)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1910
1924
|
'',
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
][
|
|
1916
|
-
'method':
|
|
1917
|
-
'headers': { 'Content-Type':
|
|
1918
|
-
'body': JSON[
|
|
1919
|
-
'agent_id':
|
|
1920
|
-
'thread_target':
|
|
1925
|
+
_0x203b08(_0x363cdb._0x34689e) + _0x5bc612[_0x203b08(_0x363cdb._0x4544a1)],
|
|
1926
|
+
'Task:\x20' + _0x263066 + '\x20(' + _0x3d09a8[_0x203b08(_0x363cdb._0xafcf7d)][_0x203b08(_0x363cdb._0x21ac43)] + ')',
|
|
1927
|
+
_0x203b08(0x28d) + _0x1eb3ca,
|
|
1928
|
+
_0x203b08(_0x363cdb._0x5da222)
|
|
1929
|
+
][_0x203b08(0x2b5)]('\x0a'), _0xbfad7 = await fetch(_0x2eac44[_0x203b08(_0x363cdb._0x57f1a7)] + _0x203b08(0x2fe), {
|
|
1930
|
+
'method': 'POST',
|
|
1931
|
+
'headers': { 'Content-Type': _0x203b08(_0x363cdb._0x58a7d0) },
|
|
1932
|
+
'body': JSON[_0x203b08(0x1ba)]({
|
|
1933
|
+
'agent_id': _0x2eac44[_0x203b08(_0x363cdb._0x328785)],
|
|
1934
|
+
'thread_target': _0x1eb3ca,
|
|
1921
1935
|
'spawn_packet': {
|
|
1922
|
-
'replyTarget':
|
|
1923
|
-
'taskId':
|
|
1936
|
+
'replyTarget': _0x1eb3ca,
|
|
1937
|
+
'taskId': _0x3d09a8[_0x203b08(0x1cf)][_0x203b08(0x2f4)]
|
|
1924
1938
|
},
|
|
1925
1939
|
'payload': {
|
|
1926
|
-
'mode':
|
|
1927
|
-
'text':
|
|
1940
|
+
'mode': _0x203b08(_0x363cdb._0x4647df),
|
|
1941
|
+
'text': _0x50ec75
|
|
1928
1942
|
}
|
|
1929
1943
|
})
|
|
1930
|
-
}),
|
|
1931
|
-
if (!
|
|
1932
|
-
throw new Error(
|
|
1944
|
+
}), _0x2b58ef = await _0xbfad7[_0x203b08(0x1dc)]();
|
|
1945
|
+
if (!_0x2b58ef['ok'])
|
|
1946
|
+
throw new Error(_0x2b58ef[_0x203b08(0x2d9)] ?? _0x203b08(_0x363cdb._0x1ed9ce));
|
|
1933
1947
|
return [
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
][
|
|
1948
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x263066 + '\x20in\x20' + _0x1eb3ca + _0x203b08(_0x363cdb._0x4baeb6),
|
|
1949
|
+
_0x203b08(0x2fd) + (_0x2b58ef['disposition'] === _0x203b08(0x1ec) ? _0x203b08(0x1ec) : 'started') + '.',
|
|
1950
|
+
_0x203b08(_0x363cdb._0x5e0d26)
|
|
1951
|
+
][_0x203b08(0x2b5)]('\x0a');
|
|
1938
1952
|
}
|
|
1939
1953
|
}
|
|
1940
|
-
const
|
|
1941
|
-
'attachmentIds':
|
|
1942
|
-
'content':
|
|
1943
|
-
'target':
|
|
1944
|
-
'visibility':
|
|
1954
|
+
const _0x4d688e = await _0x2eac44[_0x203b08(_0x363cdb._0x388f4b)][_0x203b08(_0x363cdb._0x36561c)]({
|
|
1955
|
+
'attachmentIds': _0x5bc612[_0x203b08(_0x363cdb._0x263383)],
|
|
1956
|
+
'content': _0x5bc612[_0x203b08(0x268)],
|
|
1957
|
+
'target': _0x5bc612[_0x203b08(0x285)],
|
|
1958
|
+
'visibility': _0x5bc612[_0x203b08(_0x363cdb._0xcc9269)]
|
|
1945
1959
|
});
|
|
1946
|
-
return
|
|
1960
|
+
return 'Message\x20sent\x20to\x20' + _0x5bc612[_0x203b08(_0x363cdb._0x4c992c)] + _0x203b08(_0x363cdb._0x375150) + _0x4d688e[_0x203b08(0x244)];
|
|
1947
1961
|
},
|
|
1948
1962
|
async 'check_messages'() {
|
|
1949
|
-
const
|
|
1950
|
-
if (!
|
|
1951
|
-
const
|
|
1952
|
-
if (
|
|
1953
|
-
return formatCheckMessages(
|
|
1963
|
+
const _0x170133 = _0x359f22, _0x5a9f0b = await _0x2eac44[_0x170133(0x28f)][_0x170133(_0x52a1d8._0x4ac305)]();
|
|
1964
|
+
if (!_0x2eac44[_0x170133(0x1a6)]) {
|
|
1965
|
+
const _0x3b0273 = await _0x2fee84();
|
|
1966
|
+
if (_0x3b0273)
|
|
1967
|
+
return formatCheckMessages(_0x5a9f0b[_0x170133(_0x52a1d8._0x15e9a1)][_0x170133(_0x52a1d8._0x19496b)](_0x105cbb => !_0x3b0273['has'](_0x105cbb[_0x170133(0x285)])));
|
|
1954
1968
|
}
|
|
1955
|
-
return formatCheckMessages(
|
|
1969
|
+
return formatCheckMessages(_0x5a9f0b[_0x170133(0x250)]);
|
|
1956
1970
|
},
|
|
1957
|
-
async 'read_history'(
|
|
1958
|
-
const
|
|
1959
|
-
return formatHistory(
|
|
1971
|
+
async 'read_history'(_0xe21d36) {
|
|
1972
|
+
const _0xdee610 = _0x359f22, _0x5a0228 = await _0x2eac44[_0xdee610(_0x15f2e8._0x575192)][_0xdee610(_0x15f2e8._0x57c8b0)](_0xe21d36);
|
|
1973
|
+
return formatHistory(_0x5a0228);
|
|
1960
1974
|
},
|
|
1961
1975
|
async 'list_server'() {
|
|
1962
|
-
const
|
|
1963
|
-
return formatServerDirectory(
|
|
1976
|
+
const _0x18269c = _0x359f22, _0xd8cd42 = await _0x2eac44[_0x18269c(_0x1cc49c._0x5c392e)][_0x18269c(_0x1cc49c._0x3870ec)]();
|
|
1977
|
+
return formatServerDirectory(_0xd8cd42);
|
|
1964
1978
|
},
|
|
1965
|
-
async 'list_tasks'(
|
|
1966
|
-
const
|
|
1967
|
-
let
|
|
1968
|
-
if (
|
|
1979
|
+
async 'list_tasks'(_0x78afde) {
|
|
1980
|
+
const _0x5c8a1f = _0x359f22, _0x32d241 = await _0x2eac44['client'][_0x5c8a1f(_0xf8060a._0x367a77)](_0x78afde);
|
|
1981
|
+
let _0x4459d7;
|
|
1982
|
+
if (_0x2eac44[_0x5c8a1f(_0xf8060a._0x6bbeec)] && _0x2eac44[_0x5c8a1f(0x2f5)])
|
|
1969
1983
|
try {
|
|
1970
|
-
const
|
|
1971
|
-
if (
|
|
1972
|
-
const
|
|
1973
|
-
|
|
1974
|
-
for (const
|
|
1975
|
-
if (
|
|
1984
|
+
const _0x3c95c8 = await fetch(_0x2eac44[_0x5c8a1f(0x18b)] + _0x5c8a1f(_0xf8060a._0xad94e2) + encodeURIComponent(_0x2eac44[_0x5c8a1f(_0xf8060a._0x588ef4)])), _0x35ee10 = await _0x3c95c8[_0x5c8a1f(_0xf8060a._0x5c3e36)]();
|
|
1985
|
+
if (_0x35ee10['ok']) {
|
|
1986
|
+
const _0x343e79 = _0x78afde[_0x5c8a1f(0x188)] + ':';
|
|
1987
|
+
_0x4459d7 = new Set();
|
|
1988
|
+
for (const _0xe89865 of _0x35ee10['workers']) {
|
|
1989
|
+
if (_0xe89865[_0x5c8a1f(0x17b)] === _0x5c8a1f(_0xf8060a._0x54d750))
|
|
1976
1990
|
continue;
|
|
1977
|
-
if (
|
|
1978
|
-
const
|
|
1979
|
-
if (
|
|
1980
|
-
|
|
1991
|
+
if (_0xe89865[_0x5c8a1f(_0xf8060a._0x503d5e)]?.[_0x5c8a1f(_0xf8060a._0x125fff)](_0x343e79)) {
|
|
1992
|
+
const _0x57fd7c = _0xe89865[_0x5c8a1f(0x27e)][_0x5c8a1f(0x231)](_0x343e79[_0x5c8a1f(_0xf8060a._0x2d9878)]), _0x27a74b = _0x32d241[_0x5c8a1f(_0xf8060a._0x42db94)][_0x5c8a1f(_0xf8060a._0x3ac155)](_0x49b653 => _0x49b653['messageId']?.[_0x5c8a1f(0x1a9)](_0x57fd7c) === !![]);
|
|
1993
|
+
if (_0x27a74b?.[_0x5c8a1f(_0xf8060a._0xf6b4d4)] != null) {
|
|
1994
|
+
_0x4459d7['add'](_0x27a74b[_0x5c8a1f(_0xf8060a._0xf6b4d4)]);
|
|
1981
1995
|
continue;
|
|
1982
1996
|
}
|
|
1983
1997
|
}
|
|
1984
|
-
if (
|
|
1985
|
-
const
|
|
1986
|
-
|
|
1998
|
+
if (_0xe89865[_0x5c8a1f(_0xf8060a._0x47a3d2)]) {
|
|
1999
|
+
const _0x134ba2 = _0x32d241[_0x5c8a1f(_0xf8060a._0x42db94)][_0x5c8a1f(0x2d0)](_0x15b0bb => _0x15b0bb[_0x5c8a1f(0x2f4)] === _0xe89865['task_id']);
|
|
2000
|
+
_0x134ba2?.[_0x5c8a1f(_0xf8060a._0xf6b4d4)] != null && _0x4459d7['add'](_0x134ba2[_0x5c8a1f(_0xf8060a._0x1a66ec)]);
|
|
1987
2001
|
}
|
|
1988
2002
|
}
|
|
1989
2003
|
}
|
|
1990
2004
|
} catch {
|
|
1991
2005
|
}
|
|
1992
|
-
return formatTaskList(
|
|
2006
|
+
return formatTaskList(_0x32d241[_0x5c8a1f(0x236)], _0x4459d7);
|
|
1993
2007
|
},
|
|
1994
|
-
async 'create_tasks'(
|
|
1995
|
-
const
|
|
1996
|
-
|
|
1997
|
-
const
|
|
1998
|
-
return formatCreatedTasks(
|
|
2008
|
+
async 'create_tasks'(_0xc4c089) {
|
|
2009
|
+
const _0x3e38a3 = _0x359f22;
|
|
2010
|
+
_0x2022e6(_0x3e38a3(0x1a3), _0xc4c089['channel']);
|
|
2011
|
+
const _0x44d1a1 = await _0x2eac44[_0x3e38a3(0x28f)]['createTasks'](_0xc4c089);
|
|
2012
|
+
return formatCreatedTasks(_0x44d1a1['tasks']);
|
|
1999
2013
|
},
|
|
2000
|
-
async 'claim_tasks'(
|
|
2001
|
-
const
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2014
|
+
async 'claim_tasks'(_0x10cbbd) {
|
|
2015
|
+
const _0x4d71b0 = {
|
|
2016
|
+
_0x308b61: 0x26f,
|
|
2017
|
+
_0x11a028: 0x2c8
|
|
2018
|
+
}, _0x545b09 = _0x359f22;
|
|
2019
|
+
if (_0x2eac44[_0x545b09(_0x29428a._0x567194)]) {
|
|
2020
|
+
_0x2022e6(_0x545b09(_0x29428a._0x376be1), _0x10cbbd[_0x545b09(0x188)]);
|
|
2021
|
+
if (_0x10cbbd[_0x545b09(_0x29428a._0xfecf4f)] && _0x10cbbd[_0x545b09(_0x29428a._0x4fca2c)][_0x545b09(0x1de)] > 0x0)
|
|
2005
2022
|
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.');
|
|
2006
|
-
if (!
|
|
2007
|
-
throw new Error(
|
|
2023
|
+
if (!_0x10cbbd[_0x545b09(_0x29428a._0x5c5683)] || _0x10cbbd[_0x545b09(_0x29428a._0x5c5683)][_0x545b09(_0x29428a._0xed11b0)] === 0x0)
|
|
2024
|
+
throw new Error(_0x545b09(_0x29428a._0x3f2def));
|
|
2008
2025
|
}
|
|
2009
|
-
const
|
|
2010
|
-
const
|
|
2011
|
-
if (!
|
|
2012
|
-
return
|
|
2026
|
+
const _0x11f138 = await _0x2eac44[_0x545b09(0x28f)][_0x545b09(0x289)](_0x10cbbd), _0x3cd150 = await Promise[_0x545b09(0x232)](_0x11f138[_0x545b09(_0x29428a._0x29171e)][_0x545b09(0x2b0)](async _0x422215 => {
|
|
2027
|
+
const _0x17715a = _0x545b09;
|
|
2028
|
+
if (!_0x422215[_0x17715a(0x1b9)] || !_0x422215['messageId'])
|
|
2029
|
+
return _0x422215;
|
|
2013
2030
|
try {
|
|
2014
|
-
const
|
|
2015
|
-
'channel':
|
|
2016
|
-
'executionMode':
|
|
2017
|
-
'messageId':
|
|
2018
|
-
'taskId':
|
|
2019
|
-
'taskNumber':
|
|
2020
|
-
'threadNumber':
|
|
2031
|
+
const _0x78647a = await _0x3a1b08({
|
|
2032
|
+
'channel': _0x10cbbd['channel'],
|
|
2033
|
+
'executionMode': _0x422215[_0x17715a(0x18c)],
|
|
2034
|
+
'messageId': _0x422215[_0x17715a(0x244)],
|
|
2035
|
+
'taskId': _0x422215[_0x17715a(0x2f4)],
|
|
2036
|
+
'taskNumber': _0x422215[_0x17715a(0x216)],
|
|
2037
|
+
'threadNumber': _0x422215[_0x17715a(_0x4d71b0._0x308b61)]
|
|
2021
2038
|
});
|
|
2022
|
-
return
|
|
2023
|
-
...
|
|
2024
|
-
...
|
|
2025
|
-
} :
|
|
2026
|
-
} catch (
|
|
2039
|
+
return _0x78647a ? {
|
|
2040
|
+
..._0x422215,
|
|
2041
|
+
..._0x78647a
|
|
2042
|
+
} : _0x422215;
|
|
2043
|
+
} catch (_0x7a744a) {
|
|
2027
2044
|
return {
|
|
2028
|
-
...
|
|
2029
|
-
'workerHandoffError':
|
|
2045
|
+
..._0x422215,
|
|
2046
|
+
'workerHandoffError': _0x7a744a instanceof Error ? _0x7a744a['message'] : _0x17715a(_0x4d71b0._0x11a028)
|
|
2030
2047
|
};
|
|
2031
2048
|
}
|
|
2032
2049
|
}));
|
|
2033
|
-
return formatClaimTaskResults(
|
|
2050
|
+
return formatClaimTaskResults(_0x3cd150);
|
|
2034
2051
|
},
|
|
2035
|
-
async 'unclaim_task'(
|
|
2036
|
-
const
|
|
2037
|
-
if (
|
|
2038
|
-
|
|
2039
|
-
if (
|
|
2040
|
-
throw new Error(
|
|
2052
|
+
async 'unclaim_task'(_0x3c1110) {
|
|
2053
|
+
const _0x39fe1a = _0x359f22;
|
|
2054
|
+
if (_0x2eac44[_0x39fe1a(0x1a6)]) {
|
|
2055
|
+
_0x2022e6(_0x39fe1a(_0x41273c._0x5316a4), _0x3c1110[_0x39fe1a(_0x41273c._0x4e3e11)]);
|
|
2056
|
+
if (_0x3c1110[_0x39fe1a(0x295)] == null)
|
|
2057
|
+
throw new Error(_0x39fe1a(_0x41273c._0x1adc2b));
|
|
2041
2058
|
}
|
|
2042
|
-
const
|
|
2043
|
-
return formatUnclaimTaskResult(
|
|
2059
|
+
const _0x5f360a = await _0x2eac44[_0x39fe1a(0x28f)][_0x39fe1a(0x2e0)](_0x3c1110);
|
|
2060
|
+
return formatUnclaimTaskResult(_0x5f360a);
|
|
2044
2061
|
},
|
|
2045
|
-
async 'update_task_status'(
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2048
|
-
const
|
|
2049
|
-
return formatUpdateTaskStatusResult(
|
|
2062
|
+
async 'update_task_status'(_0x12ef08) {
|
|
2063
|
+
const _0x16a144 = _0x359f22;
|
|
2064
|
+
_0x2022e6(_0x16a144(_0x511d57._0x37f89c), _0x12ef08['channel']);
|
|
2065
|
+
const _0x4cc07b = await _0x2eac44[_0x16a144(0x28f)][_0x16a144(_0x511d57._0x4d9925)](_0x12ef08);
|
|
2066
|
+
return formatUpdateTaskStatusResult(_0x4cc07b);
|
|
2050
2067
|
},
|
|
2051
|
-
async 'upload_file'(
|
|
2052
|
-
const
|
|
2053
|
-
sizeBytes:
|
|
2054
|
-
...
|
|
2055
|
-
} =
|
|
2056
|
-
'channel':
|
|
2057
|
-
...
|
|
2068
|
+
async 'upload_file'(_0x29c4c9) {
|
|
2069
|
+
const _0x3124a2 = _0x359f22, _0x35b9a0 = await _0x2eac44['uploadPreparer'](_0x29c4c9[_0x3124a2(0x24f)]), {
|
|
2070
|
+
sizeBytes: _0x41d74e,
|
|
2071
|
+
..._0x1ebe0f
|
|
2072
|
+
} = _0x35b9a0, _0x1008e0 = await _0x2eac44[_0x3124a2(0x28f)][_0x3124a2(0x1b7)]({
|
|
2073
|
+
'channel': _0x29c4c9['channel'],
|
|
2074
|
+
..._0x1ebe0f
|
|
2058
2075
|
});
|
|
2059
|
-
return formatUploadResult(
|
|
2076
|
+
return formatUploadResult(_0x1008e0);
|
|
2060
2077
|
},
|
|
2061
|
-
async 'view_file'(
|
|
2062
|
-
const
|
|
2063
|
-
if (
|
|
2064
|
-
return formatViewFileResult(
|
|
2065
|
-
const
|
|
2066
|
-
'attachmentId':
|
|
2067
|
-
'contentType':
|
|
2068
|
-
'data':
|
|
2069
|
-
'originalFilename':
|
|
2078
|
+
async 'view_file'(_0x3690b3) {
|
|
2079
|
+
const _0x465f96 = _0x359f22, _0x566175 = await _0x2eac44[_0x465f96(0x29e)][_0x465f96(_0xf165d0._0x162ac1)](_0x3690b3[_0x465f96(_0xf165d0._0x428b5c)]);
|
|
2080
|
+
if (_0x566175)
|
|
2081
|
+
return formatViewFileResult(_0x566175, !![]);
|
|
2082
|
+
const _0x200c27 = await _0x2eac44[_0x465f96(_0xf165d0._0x286ac9)][_0x465f96(0x2bf)](_0x3690b3[_0x465f96(_0xf165d0._0x4cd857)]), _0x361fc7 = await _0x2eac44['attachmentCache'][_0x465f96(0x281)]({
|
|
2083
|
+
'attachmentId': _0x3690b3[_0x465f96(0x279)],
|
|
2084
|
+
'contentType': _0x200c27[_0x465f96(0x257)],
|
|
2085
|
+
'data': _0x200c27[_0x465f96(_0xf165d0._0x5e969f)],
|
|
2086
|
+
'originalFilename': _0x200c27[_0x465f96(_0xf165d0._0x4202d6)]
|
|
2070
2087
|
});
|
|
2071
|
-
return formatViewFileResult(
|
|
2088
|
+
return formatViewFileResult(_0x361fc7, ![]);
|
|
2072
2089
|
},
|
|
2073
|
-
async 'get_worker_status'(
|
|
2074
|
-
const
|
|
2075
|
-
if (!
|
|
2076
|
-
return
|
|
2077
|
-
const
|
|
2078
|
-
if (!
|
|
2079
|
-
return
|
|
2080
|
-
return
|
|
2090
|
+
async 'get_worker_status'(_0x1a8916) {
|
|
2091
|
+
const _0x19054e = _0x359f22;
|
|
2092
|
+
if (!_0x2eac44[_0x19054e(0x18b)])
|
|
2093
|
+
return _0x19054e(0x2d4);
|
|
2094
|
+
const _0x34f3b7 = await fetch(_0x2eac44[_0x19054e(_0x26e494._0x2cc407)] + _0x19054e(0x194) + encodeURIComponent(_0x1a8916[_0x19054e(_0x26e494._0x1b8c68)])), _0x417320 = await _0x34f3b7['json']();
|
|
2095
|
+
if (!_0x417320['ok'])
|
|
2096
|
+
return _0x19054e(_0x26e494._0xd17bf5) + _0x1a8916[_0x19054e(_0x26e494._0x1b8c68)] + _0x19054e(_0x26e494._0x439be6);
|
|
2097
|
+
return _0x19054e(0x230) + _0x1a8916[_0x19054e(_0x26e494._0x241a93)] + _0x19054e(_0x26e494._0x34231c) + _0x417320['status'];
|
|
2081
2098
|
},
|
|
2082
|
-
async 'park_worker'(
|
|
2083
|
-
const
|
|
2084
|
-
if (!
|
|
2085
|
-
return
|
|
2086
|
-
const
|
|
2087
|
-
'method':
|
|
2088
|
-
'headers': { 'Content-Type':
|
|
2089
|
-
'body': JSON[
|
|
2090
|
-
}),
|
|
2091
|
-
if (!
|
|
2092
|
-
throw new Error(
|
|
2093
|
-
return
|
|
2099
|
+
async 'park_worker'(_0x28f0a1) {
|
|
2100
|
+
const _0x11724b = _0x359f22;
|
|
2101
|
+
if (!_0x2eac44['daemonLocalUrl'])
|
|
2102
|
+
return _0x11724b(0x2d4);
|
|
2103
|
+
const _0x8fe9e9 = await fetch(_0x2eac44['daemonLocalUrl'] + '/workers/park', {
|
|
2104
|
+
'method': _0x11724b(0x2bc),
|
|
2105
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2106
|
+
'body': JSON[_0x11724b(_0x206e4e._0x460371)]({ 'work_key': _0x28f0a1['work_key'] })
|
|
2107
|
+
}), _0xae437f = await _0x8fe9e9[_0x11724b(0x1dc)]();
|
|
2108
|
+
if (!_0xae437f['ok'])
|
|
2109
|
+
throw new Error(_0xae437f[_0x11724b(_0x206e4e._0x1a2fa)] ?? 'park_worker\x20failed');
|
|
2110
|
+
return _0x11724b(0x230) + _0x28f0a1[_0x11724b(_0x206e4e._0x32582d)] + _0x11724b(0x300);
|
|
2094
2111
|
},
|
|
2095
|
-
async 'mark_waiting_input'(
|
|
2096
|
-
const
|
|
2097
|
-
if (!
|
|
2098
|
-
return
|
|
2099
|
-
const
|
|
2100
|
-
'method':
|
|
2101
|
-
'headers': { 'Content-Type':
|
|
2102
|
-
'body': JSON[
|
|
2103
|
-
'work_key':
|
|
2104
|
-
'agent_id':
|
|
2112
|
+
async 'mark_waiting_input'(_0x4a41e3) {
|
|
2113
|
+
const _0x2bdd10 = _0x359f22;
|
|
2114
|
+
if (!_0x2eac44[_0x2bdd10(_0x4506ca._0xdd4657)] || !_0x2eac44[_0x2bdd10(_0x4506ca._0x312a17)])
|
|
2115
|
+
return _0x2bdd10(_0x4506ca._0x11147c);
|
|
2116
|
+
const _0x1c82d2 = await fetch(_0x2eac44['daemonLocalUrl'] + _0x2bdd10(_0x4506ca._0x7f6f24), {
|
|
2117
|
+
'method': _0x2bdd10(0x2bc),
|
|
2118
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2119
|
+
'body': JSON[_0x2bdd10(_0x4506ca._0x4dce5f)]({
|
|
2120
|
+
'work_key': _0x4a41e3[_0x2bdd10(0x222)],
|
|
2121
|
+
'agent_id': _0x2eac44[_0x2bdd10(_0x4506ca._0x312a17)]
|
|
2105
2122
|
})
|
|
2106
|
-
}),
|
|
2107
|
-
if (!
|
|
2108
|
-
throw new Error(
|
|
2109
|
-
return
|
|
2123
|
+
}), _0x560fcb = await _0x1c82d2['json']();
|
|
2124
|
+
if (!_0x560fcb['ok'])
|
|
2125
|
+
throw new Error(_0x560fcb[_0x2bdd10(0x2d9)] ?? _0x2bdd10(_0x4506ca._0x220e4a));
|
|
2126
|
+
return 'Worker\x20\x22' + _0x4a41e3[_0x2bdd10(_0x4506ca._0x49a269)] + _0x2bdd10(_0x4506ca._0x20bc12);
|
|
2110
2127
|
},
|
|
2111
|
-
async 'escalate_to_main'(
|
|
2112
|
-
const
|
|
2113
|
-
if (!
|
|
2114
|
-
return
|
|
2115
|
-
const
|
|
2116
|
-
'method':
|
|
2117
|
-
'headers': { 'Content-Type':
|
|
2118
|
-
'body': JSON[
|
|
2119
|
-
'work_key':
|
|
2120
|
-
'reason':
|
|
2128
|
+
async 'escalate_to_main'(_0x509af7) {
|
|
2129
|
+
const _0x28850c = _0x359f22;
|
|
2130
|
+
if (!_0x2eac44[_0x28850c(0x18b)])
|
|
2131
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2132
|
+
const _0x1a4075 = await fetch(_0x2eac44[_0x28850c(0x18b)] + _0x28850c(_0x18484e._0x5acab8), {
|
|
2133
|
+
'method': 'POST',
|
|
2134
|
+
'headers': { 'Content-Type': _0x28850c(0x1f4) },
|
|
2135
|
+
'body': JSON[_0x28850c(_0x18484e._0x3f9ebf)]({
|
|
2136
|
+
'work_key': _0x509af7[_0x28850c(0x222)],
|
|
2137
|
+
'reason': _0x509af7[_0x28850c(_0x18484e._0x20d25f)]
|
|
2121
2138
|
})
|
|
2122
|
-
}),
|
|
2123
|
-
if (!
|
|
2124
|
-
throw new Error(
|
|
2125
|
-
return
|
|
2139
|
+
}), _0x2a2ad6 = await _0x1a4075[_0x28850c(_0x18484e._0x25fbb3)]();
|
|
2140
|
+
if (!_0x2a2ad6['ok'])
|
|
2141
|
+
throw new Error(_0x2a2ad6[_0x28850c(0x2d9)] ?? _0x28850c(0x2a8));
|
|
2142
|
+
return _0x28850c(_0x18484e._0xdd250) + _0x509af7[_0x28850c(_0x18484e._0x51f409)];
|
|
2126
2143
|
}
|
|
2127
2144
|
};
|
|
2128
2145
|
}
|
|
2129
|
-
function textResult(
|
|
2130
|
-
const
|
|
2146
|
+
function textResult(_0x2dd268, _0x164d4f = ![]) {
|
|
2147
|
+
const _0x46dc22 = _0x2869e3;
|
|
2131
2148
|
return {
|
|
2132
2149
|
'content': [{
|
|
2133
|
-
'type':
|
|
2134
|
-
'text':
|
|
2150
|
+
'type': _0x46dc22(0x273),
|
|
2151
|
+
'text': _0x2dd268
|
|
2135
2152
|
}],
|
|
2136
|
-
...
|
|
2153
|
+
..._0x164d4f ? { 'isError': !![] } : {}
|
|
2137
2154
|
};
|
|
2138
2155
|
}
|
|
2139
|
-
async function registerChatBridgeTools(
|
|
2140
|
-
const
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
},
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
},
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
},
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
},
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
'
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
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;
|
|
2156
|
+
async function registerChatBridgeTools(_0x344239, _0x350f7a, _0xc2221d) {
|
|
2157
|
+
const _0x21ffd7 = {
|
|
2158
|
+
_0x3601ac: 0x26b,
|
|
2159
|
+
_0x3f4fbe: 0x1c4,
|
|
2160
|
+
_0x416ffa: 0x2e2,
|
|
2161
|
+
_0x4ac8bc: 0x192,
|
|
2162
|
+
_0x5ce774: 0x2c4,
|
|
2163
|
+
_0x1b1c7e: 0x1f2,
|
|
2164
|
+
_0x16d72c: 0x1f2,
|
|
2165
|
+
_0x17c60b: 0x1ed,
|
|
2166
|
+
_0x30394f: 0x1f6,
|
|
2167
|
+
_0x566f74: 0x24b,
|
|
2168
|
+
_0x46791e: 0x180,
|
|
2169
|
+
_0x18c48c: 0x2e7,
|
|
2170
|
+
_0x4b93c6: 0x26b,
|
|
2171
|
+
_0x2f5e88: 0x1f7,
|
|
2172
|
+
_0x44d579: 0x2df,
|
|
2173
|
+
_0x1b1d83: 0x201,
|
|
2174
|
+
_0x4c6f45: 0x1bb,
|
|
2175
|
+
_0x1cd85b: 0x1c4,
|
|
2176
|
+
_0x166a25: 0x26b,
|
|
2177
|
+
_0x14b6ab: 0x1f2,
|
|
2178
|
+
_0x5334a8: 0x1f2,
|
|
2179
|
+
_0x521f21: 0x1c4,
|
|
2180
|
+
_0x3f48c7: 0x180,
|
|
2181
|
+
_0x111761: 0x242,
|
|
2182
|
+
_0x22aa95: 0x261,
|
|
2183
|
+
_0x3edef4: 0x21f,
|
|
2184
|
+
_0x130919: 0x1a6,
|
|
2185
|
+
_0x1a56e3: 0x1ad
|
|
2186
|
+
}, _0x83cedd = {
|
|
2187
|
+
_0x56d594: 0x234,
|
|
2188
|
+
_0x46c481: 0x1ee
|
|
2189
|
+
}, _0x4b1812 = { _0x4059f3: 0x234 }, _0x458f8e = {
|
|
2190
|
+
_0x5301c4: 0x234,
|
|
2191
|
+
_0x2071bf: 0x29d
|
|
2192
|
+
}, _0x67650f = { _0x570a7f: 0x296 }, _0x33475f = {
|
|
2193
|
+
_0x581bc8: 0x198,
|
|
2194
|
+
_0x2db86e: 0x1df
|
|
2195
|
+
}, _0x468c76 = {
|
|
2196
|
+
_0x45a3e6: 0x1a3,
|
|
2197
|
+
_0x2b8abd: 0x1a7
|
|
2198
|
+
}, _0x30ee8e = { _0x4134a5: 0x271 }, _0x50056d = { _0x595670: 0x234 }, _0x4153f9 = {
|
|
2199
|
+
_0x2ce1eb: 0x234,
|
|
2200
|
+
_0x4fb6e8: 0x179
|
|
2201
|
+
}, _0x688378 = { _0xe4713b: 0x1fd }, _0x10b531 = _0x2869e3, {z: _0x3dc1fa} = await import('zod');
|
|
2202
|
+
_0x344239[_0x10b531(_0x21ffd7._0x3601ac)](_0x10b531(0x275), '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.', {
|
|
2203
|
+
'target': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2204
|
+
'content': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2205
|
+
'attachment_ids': _0x3dc1fa[_0x10b531(0x1bb)](_0x3dc1fa['string']())[_0x10b531(_0x21ffd7._0x3f4fbe)](),
|
|
2206
|
+
'visibility': _0x3dc1fa['enum']([
|
|
2207
|
+
'public',
|
|
2208
|
+
_0x10b531(_0x21ffd7._0x416ffa)
|
|
2209
|
+
])[_0x10b531(0x1c4)]()[_0x10b531(_0x21ffd7._0x4ac8bc)](_0x10b531(0x17a))
|
|
2210
|
+
}, async _0x1df345 => {
|
|
2211
|
+
const _0xacff69 = _0x10b531;
|
|
2198
2212
|
try {
|
|
2199
|
-
return textResult(await
|
|
2200
|
-
} catch (
|
|
2201
|
-
return textResult(
|
|
2213
|
+
return textResult(await _0x350f7a[_0xacff69(0x275)](_0x1df345));
|
|
2214
|
+
} catch (_0x4d50b2) {
|
|
2215
|
+
return textResult(_0x4d50b2 instanceof Error ? _0x4d50b2[_0xacff69(0x234)] : _0xacff69(_0x688378._0xe4713b), !![]);
|
|
2202
2216
|
}
|
|
2203
|
-
}),
|
|
2204
|
-
const
|
|
2217
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(_0x21ffd7._0x5ce774), _0x10b531(0x26d), {}, async () => {
|
|
2218
|
+
const _0x227876 = _0x10b531;
|
|
2205
2219
|
try {
|
|
2206
|
-
return textResult(await
|
|
2207
|
-
} catch (
|
|
2208
|
-
return textResult(
|
|
2220
|
+
return textResult(await _0x350f7a[_0x227876(0x2c4)]());
|
|
2221
|
+
} catch (_0x46dd56) {
|
|
2222
|
+
return textResult(_0x46dd56 instanceof Error ? _0x46dd56[_0x227876(_0x4153f9._0x2ce1eb)] : _0x227876(_0x4153f9._0x4fb6e8), !![]);
|
|
2209
2223
|
}
|
|
2210
|
-
}),
|
|
2211
|
-
'channel':
|
|
2212
|
-
'limit':
|
|
2213
|
-
'before':
|
|
2214
|
-
'after':
|
|
2215
|
-
}, async
|
|
2216
|
-
const
|
|
2224
|
+
}), _0x344239['tool'](_0x10b531(0x2d5), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2225
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2226
|
+
'limit': _0x3dc1fa[_0x10b531(_0x21ffd7._0x1b1c7e)]()[_0x10b531(0x1c4)](),
|
|
2227
|
+
'before': _0x3dc1fa[_0x10b531(_0x21ffd7._0x16d72c)]()['optional'](),
|
|
2228
|
+
'after': _0x3dc1fa[_0x10b531(0x1f2)]()[_0x10b531(_0x21ffd7._0x3f4fbe)]()
|
|
2229
|
+
}, async _0x4f104c => {
|
|
2230
|
+
const _0x269718 = _0x10b531;
|
|
2217
2231
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
return textResult(
|
|
2232
|
+
return textResult(await _0x350f7a['read_history'](_0x4f104c));
|
|
2233
|
+
} catch (_0x18ef28) {
|
|
2234
|
+
return textResult(_0x18ef28 instanceof Error ? _0x18ef28[_0x269718(0x234)] : _0x269718(0x29b), !![]);
|
|
2221
2235
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
const
|
|
2236
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(_0x21ffd7._0x17c60b), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2237
|
+
const _0x1b5e38 = _0x10b531;
|
|
2224
2238
|
try {
|
|
2225
|
-
return textResult(await
|
|
2226
|
-
} catch (
|
|
2227
|
-
return textResult(
|
|
2239
|
+
return textResult(await _0x350f7a[_0x1b5e38(0x1ed)]());
|
|
2240
|
+
} catch (_0x4f89e4) {
|
|
2241
|
+
return textResult(_0x4f89e4 instanceof Error ? _0x4f89e4[_0x1b5e38(_0x50056d._0x595670)] : _0x1b5e38(0x195), !![]);
|
|
2228
2242
|
}
|
|
2229
|
-
}),
|
|
2230
|
-
'channel':
|
|
2231
|
-
'status':
|
|
2232
|
-
|
|
2243
|
+
}), _0x344239[_0x10b531(_0x21ffd7._0x3601ac)](_0x10b531(0x271), _0x10b531(_0x21ffd7._0x30394f), {
|
|
2244
|
+
'channel': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)](),
|
|
2245
|
+
'status': _0x3dc1fa[_0x10b531(_0x21ffd7._0x46791e)]([
|
|
2246
|
+
_0x10b531(_0x21ffd7._0x18c48c),
|
|
2233
2247
|
'in_progress',
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
])[
|
|
2237
|
-
}, async
|
|
2238
|
-
const
|
|
2248
|
+
_0x10b531(0x277),
|
|
2249
|
+
'done'
|
|
2250
|
+
])['optional']()
|
|
2251
|
+
}, async _0x39a9cf => {
|
|
2252
|
+
const _0x427744 = _0x10b531;
|
|
2239
2253
|
try {
|
|
2240
|
-
return textResult(await
|
|
2241
|
-
} catch (
|
|
2242
|
-
return textResult(
|
|
2254
|
+
return textResult(await _0x350f7a[_0x427744(_0x30ee8e._0x4134a5)](_0x39a9cf));
|
|
2255
|
+
} catch (_0x4af79c) {
|
|
2256
|
+
return textResult(_0x4af79c instanceof Error ? _0x4af79c[_0x427744(0x234)] : 'list_tasks\x20failed', !![]);
|
|
2243
2257
|
}
|
|
2244
|
-
}),
|
|
2245
|
-
'channel':
|
|
2246
|
-
'idempotency_key':
|
|
2247
|
-
'tasks':
|
|
2248
|
-
'title':
|
|
2249
|
-
'description':
|
|
2250
|
-
'priority':
|
|
2251
|
-
|
|
2258
|
+
}), _0x344239[_0x10b531(_0x21ffd7._0x4b93c6)]('create_tasks', _0x10b531(0x215), {
|
|
2259
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2260
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]()[_0x10b531(0x1c4)](),
|
|
2261
|
+
'tasks': _0x3dc1fa[_0x10b531(0x1bb)](_0x3dc1fa[_0x10b531(0x1d5)]({
|
|
2262
|
+
'title': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)](),
|
|
2263
|
+
'description': _0x3dc1fa[_0x10b531(0x24b)]()[_0x10b531(0x1c4)](),
|
|
2264
|
+
'priority': _0x3dc1fa[_0x10b531(0x180)]([
|
|
2265
|
+
_0x10b531(_0x21ffd7._0x2f5e88),
|
|
2252
2266
|
'medium',
|
|
2253
|
-
|
|
2267
|
+
_0x10b531(0x2cc),
|
|
2254
2268
|
'urgent'
|
|
2255
|
-
])[
|
|
2269
|
+
])['optional']()
|
|
2256
2270
|
}))
|
|
2257
|
-
}, async
|
|
2258
|
-
const
|
|
2271
|
+
}, async _0x53099f => {
|
|
2272
|
+
const _0xfd10f0 = _0x10b531;
|
|
2259
2273
|
try {
|
|
2260
|
-
return textResult(await
|
|
2261
|
-
} catch (
|
|
2262
|
-
return textResult(
|
|
2274
|
+
return textResult(await _0x350f7a[_0xfd10f0(_0x468c76._0x45a3e6)](_0x53099f));
|
|
2275
|
+
} catch (_0x457bea) {
|
|
2276
|
+
return textResult(_0x457bea instanceof Error ? _0x457bea[_0xfd10f0(0x234)] : _0xfd10f0(_0x468c76._0x2b8abd), !![]);
|
|
2263
2277
|
}
|
|
2264
|
-
}),
|
|
2265
|
-
'channel':
|
|
2266
|
-
'task_numbers':
|
|
2267
|
-
'subtask_numbers':
|
|
2268
|
-
'message_ids':
|
|
2269
|
-
'evidence':
|
|
2270
|
-
'create_thread':
|
|
2271
|
-
'create_task':
|
|
2272
|
-
}))[
|
|
2273
|
-
'idempotency_key':
|
|
2274
|
-
}, async
|
|
2275
|
-
const
|
|
2278
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(_0x21ffd7._0x44d579), _0x10b531(_0x21ffd7._0x1b1d83), {
|
|
2279
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2280
|
+
'task_numbers': _0x3dc1fa[_0x10b531(0x1bb)](_0x3dc1fa[_0x10b531(0x1f2)]())[_0x10b531(0x1c4)](),
|
|
2281
|
+
'subtask_numbers': _0x3dc1fa['array'](_0x3dc1fa[_0x10b531(_0x21ffd7._0x16d72c)]())['optional'](),
|
|
2282
|
+
'message_ids': _0x3dc1fa[_0x10b531(_0x21ffd7._0x4c6f45)](_0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]())[_0x10b531(0x1c4)](),
|
|
2283
|
+
'evidence': _0x3dc1fa['record'](_0x3dc1fa[_0x10b531(0x24b)](), _0x3dc1fa['object']({
|
|
2284
|
+
'create_thread': _0x3dc1fa[_0x10b531(0x1ff)]()['optional'](),
|
|
2285
|
+
'create_task': _0x3dc1fa[_0x10b531(0x1ff)]()['optional']()
|
|
2286
|
+
}))[_0x10b531(_0x21ffd7._0x1cd85b)](),
|
|
2287
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]()['optional']()
|
|
2288
|
+
}, async _0x17cceb => {
|
|
2289
|
+
const _0x53b556 = _0x10b531;
|
|
2276
2290
|
try {
|
|
2277
|
-
return textResult(await
|
|
2278
|
-
} catch (
|
|
2279
|
-
return textResult(
|
|
2291
|
+
return textResult(await _0x350f7a[_0x53b556(0x2df)](_0x17cceb));
|
|
2292
|
+
} catch (_0x2e0c20) {
|
|
2293
|
+
return textResult(_0x2e0c20 instanceof Error ? _0x2e0c20['message'] : _0x53b556(0x287), !![]);
|
|
2280
2294
|
}
|
|
2281
|
-
}),
|
|
2282
|
-
'channel':
|
|
2283
|
-
'task_number':
|
|
2284
|
-
'subtask_number':
|
|
2285
|
-
'idempotency_key':
|
|
2286
|
-
}, async
|
|
2287
|
-
const
|
|
2295
|
+
}), _0x344239['tool']('unclaim_task', 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2296
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2297
|
+
'task_number': _0x3dc1fa[_0x10b531(0x1f2)](),
|
|
2298
|
+
'subtask_number': _0x3dc1fa[_0x10b531(0x1f2)]()[_0x10b531(_0x21ffd7._0x3f4fbe)](),
|
|
2299
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(0x24b)]()[_0x10b531(0x1c4)]()
|
|
2300
|
+
}, async _0x106d73 => {
|
|
2301
|
+
const _0x15eff5 = _0x10b531;
|
|
2288
2302
|
try {
|
|
2289
|
-
return textResult(await
|
|
2290
|
-
} catch (
|
|
2291
|
-
return textResult(
|
|
2303
|
+
return textResult(await _0x350f7a[_0x15eff5(_0x33475f._0x581bc8)](_0x106d73));
|
|
2304
|
+
} catch (_0x455208) {
|
|
2305
|
+
return textResult(_0x455208 instanceof Error ? _0x455208[_0x15eff5(0x234)] : _0x15eff5(_0x33475f._0x2db86e), !![]);
|
|
2292
2306
|
}
|
|
2293
|
-
}),
|
|
2294
|
-
'channel':
|
|
2295
|
-
'task_number':
|
|
2296
|
-
'subtask_number':
|
|
2297
|
-
'status':
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2307
|
+
}), _0x344239[_0x10b531(_0x21ffd7._0x166a25)]('update_task_status', _0x10b531(0x2ea), {
|
|
2308
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2309
|
+
'task_number': _0x3dc1fa[_0x10b531(_0x21ffd7._0x14b6ab)](),
|
|
2310
|
+
'subtask_number': _0x3dc1fa[_0x10b531(_0x21ffd7._0x5334a8)]()[_0x10b531(_0x21ffd7._0x521f21)](),
|
|
2311
|
+
'status': _0x3dc1fa[_0x10b531(_0x21ffd7._0x3f48c7)]([
|
|
2312
|
+
_0x10b531(0x2e7),
|
|
2313
|
+
_0x10b531(_0x21ffd7._0x111761),
|
|
2314
|
+
_0x10b531(0x277),
|
|
2315
|
+
_0x10b531(0x270)
|
|
2302
2316
|
]),
|
|
2303
|
-
'idempotency_key':
|
|
2304
|
-
}, async
|
|
2305
|
-
const
|
|
2317
|
+
'idempotency_key': _0x3dc1fa[_0x10b531(0x24b)]()['optional']()
|
|
2318
|
+
}, async _0x1abd68 => {
|
|
2319
|
+
const _0x4e6ae0 = _0x10b531;
|
|
2306
2320
|
try {
|
|
2307
|
-
return textResult(await
|
|
2308
|
-
} catch (
|
|
2309
|
-
return textResult(
|
|
2321
|
+
return textResult(await _0x350f7a[_0x4e6ae0(_0x67650f._0x570a7f)](_0x1abd68));
|
|
2322
|
+
} catch (_0x264c97) {
|
|
2323
|
+
return textResult(_0x264c97 instanceof Error ? _0x264c97['message'] : _0x4e6ae0(0x1d9), !![]);
|
|
2310
2324
|
}
|
|
2311
|
-
}),
|
|
2312
|
-
'channel':
|
|
2313
|
-
'file_path':
|
|
2314
|
-
}, async
|
|
2315
|
-
const
|
|
2325
|
+
}), _0x344239[_0x10b531(0x26b)]('upload_file', 'Upload\x20a\x20local\x20file\x20to\x20a\x20channel\x20or\x20DM\x20and\x20return\x20an\x20attachment\x20ID\x20that\x20can\x20be\x20used\x20with\x20send_message.\x20Thread\x20targets\x20are\x20not\x20allowed.', {
|
|
2326
|
+
'channel': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2327
|
+
'file_path': _0x3dc1fa[_0x10b531(0x24b)]()
|
|
2328
|
+
}, async _0x1db35e => {
|
|
2329
|
+
const _0x164ef4 = _0x10b531;
|
|
2316
2330
|
try {
|
|
2317
|
-
return textResult(await
|
|
2318
|
-
} catch (
|
|
2319
|
-
return textResult(
|
|
2331
|
+
return textResult(await _0x350f7a['upload_file'](_0x1db35e));
|
|
2332
|
+
} catch (_0x48d754) {
|
|
2333
|
+
return textResult(_0x48d754 instanceof Error ? _0x48d754[_0x164ef4(0x234)] : _0x164ef4(0x263), !![]);
|
|
2320
2334
|
}
|
|
2321
|
-
}),
|
|
2322
|
-
const
|
|
2335
|
+
}), _0x344239[_0x10b531(0x26b)](_0x10b531(0x1c5), 'Download\x20an\x20attachment\x20to\x20the\x20local\x20cache\x20and\x20return\x20the\x20local\x20path.', { 'attachment_id': _0x3dc1fa['string']() }, async _0xb3a571 => {
|
|
2336
|
+
const _0x496cca = _0x10b531;
|
|
2323
2337
|
try {
|
|
2324
|
-
return textResult(await
|
|
2325
|
-
} catch (
|
|
2326
|
-
return textResult(
|
|
2338
|
+
return textResult(await _0x350f7a[_0x496cca(0x1c5)](_0xb3a571));
|
|
2339
|
+
} catch (_0x56a6c6) {
|
|
2340
|
+
return textResult(_0x56a6c6 instanceof Error ? _0x56a6c6[_0x496cca(0x234)] : _0x496cca(0x1cd), !![]);
|
|
2327
2341
|
}
|
|
2328
|
-
}),
|
|
2329
|
-
const
|
|
2342
|
+
}), _0x344239['tool'](_0x10b531(0x2c1), _0x10b531(_0x21ffd7._0x22aa95), { 'work_key': _0x3dc1fa[_0x10b531(0x24b)]() }, async _0x42b868 => {
|
|
2343
|
+
const _0x15e377 = _0x10b531;
|
|
2330
2344
|
try {
|
|
2331
|
-
return textResult(await
|
|
2332
|
-
} catch (
|
|
2333
|
-
return textResult(
|
|
2345
|
+
return textResult(await _0x350f7a['get_worker_status'](_0x42b868));
|
|
2346
|
+
} catch (_0x4f387e) {
|
|
2347
|
+
return textResult(_0x4f387e instanceof Error ? _0x4f387e[_0x15e377(_0x458f8e._0x5301c4)] : _0x15e377(_0x458f8e._0x2071bf), !![]);
|
|
2334
2348
|
}
|
|
2335
|
-
}),
|
|
2336
|
-
const
|
|
2349
|
+
}), _0x344239[_0x10b531(0x26b)]('park_worker', _0x10b531(_0x21ffd7._0x3edef4), { 'work_key': _0x3dc1fa[_0x10b531(_0x21ffd7._0x566f74)]() }, async _0x1904cb => {
|
|
2350
|
+
const _0xfcc0cf = _0x10b531;
|
|
2337
2351
|
try {
|
|
2338
|
-
return textResult(await
|
|
2339
|
-
} catch (
|
|
2340
|
-
return textResult(
|
|
2352
|
+
return textResult(await _0x350f7a['park_worker'](_0x1904cb));
|
|
2353
|
+
} catch (_0x5ce590) {
|
|
2354
|
+
return textResult(_0x5ce590 instanceof Error ? _0x5ce590[_0xfcc0cf(_0x4b1812._0x4059f3)] : 'park_worker\x20failed', !![]);
|
|
2341
2355
|
}
|
|
2342
|
-
}), !
|
|
2343
|
-
'work_key':
|
|
2344
|
-
'reason':
|
|
2345
|
-
}, async
|
|
2346
|
-
const _0x459d71 = _0x2c59dc;
|
|
2356
|
+
}), !_0xc2221d?.[_0x10b531(_0x21ffd7._0x130919)] && _0x344239['tool']('escalate_to_main', 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2357
|
+
'work_key': _0x3dc1fa[_0x10b531(0x24b)](),
|
|
2358
|
+
'reason': _0x3dc1fa['string']()
|
|
2359
|
+
}, async _0x27610a => {
|
|
2347
2360
|
try {
|
|
2348
|
-
return textResult(await
|
|
2349
|
-
} catch (
|
|
2350
|
-
return textResult(
|
|
2361
|
+
return textResult(await _0x350f7a['escalate_to_main'](_0x27610a));
|
|
2362
|
+
} catch (_0x5092d4) {
|
|
2363
|
+
return textResult(_0x5092d4 instanceof Error ? _0x5092d4['message'] : 'escalate_to_main\x20failed', !![]);
|
|
2351
2364
|
}
|
|
2352
|
-
}),
|
|
2353
|
-
const
|
|
2365
|
+
}), _0xc2221d?.[_0x10b531(0x1a6)] && _0x344239[_0x10b531(_0x21ffd7._0x4b93c6)](_0x10b531(_0x21ffd7._0x1a56e3), _0x10b531(0x184), { 'work_key': _0x3dc1fa[_0x10b531(0x24b)]() }, async _0x32285d => {
|
|
2366
|
+
const _0x29e945 = _0x10b531;
|
|
2354
2367
|
try {
|
|
2355
|
-
return textResult(await
|
|
2356
|
-
} catch (
|
|
2357
|
-
return textResult(
|
|
2368
|
+
return textResult(await _0x350f7a[_0x29e945(0x1ad)](_0x32285d));
|
|
2369
|
+
} catch (_0x492711) {
|
|
2370
|
+
return textResult(_0x492711 instanceof Error ? _0x492711[_0x29e945(_0x83cedd._0x56d594)] : _0x29e945(_0x83cedd._0x46c481), !![]);
|
|
2358
2371
|
}
|
|
2359
2372
|
});
|
|
2360
2373
|
}
|
|
2361
|
-
async function createChatBridgeServer(
|
|
2362
|
-
const
|
|
2363
|
-
'name':
|
|
2364
|
-
'version':
|
|
2365
|
-
}),
|
|
2366
|
-
return await registerChatBridgeTools(
|
|
2367
|
-
'handlers':
|
|
2368
|
-
'server':
|
|
2374
|
+
async function createChatBridgeServer(_0x52f588) {
|
|
2375
|
+
const _0x525f5b = { _0x1b18d4: 0x302 }, _0x1dd534 = _0x2869e3, {McpServer: _0x34cc28} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x4d5fe7 = new _0x34cc28({
|
|
2376
|
+
'name': _0x1dd534(_0x525f5b._0x1b18d4),
|
|
2377
|
+
'version': _0x1dd534(0x1bf)
|
|
2378
|
+
}), _0x1da85a = createChatBridgeHandlers(_0x52f588);
|
|
2379
|
+
return await registerChatBridgeTools(_0x4d5fe7, _0x1da85a, { 'workerMode': _0x52f588[_0x1dd534(0x1a6)] }), {
|
|
2380
|
+
'handlers': _0x1da85a,
|
|
2381
|
+
'server': _0x4d5fe7
|
|
2369
2382
|
};
|
|
2370
2383
|
}
|
|
2371
|
-
function readFlag(
|
|
2372
|
-
const
|
|
2373
|
-
if (
|
|
2384
|
+
function readFlag(_0x4ef45f, _0x59f1ff) {
|
|
2385
|
+
const _0x532126 = _0x2869e3, _0x63680c = _0x4ef45f[_0x532126(0x2c2)](_0x59f1ff);
|
|
2386
|
+
if (_0x63680c === -0x1)
|
|
2374
2387
|
return void 0x0;
|
|
2375
|
-
return
|
|
2388
|
+
return _0x4ef45f[_0x63680c + 0x1];
|
|
2376
2389
|
}
|
|
2377
|
-
function parseChatBridgeArgs(
|
|
2378
|
-
const
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
},
|
|
2386
|
-
if (!
|
|
2387
|
-
throw new Error(
|
|
2388
|
-
if (!
|
|
2389
|
-
throw new Error(
|
|
2390
|
-
if (
|
|
2391
|
-
throw new Error(
|
|
2390
|
+
function parseChatBridgeArgs(_0x41d417) {
|
|
2391
|
+
const _0x285a44 = {
|
|
2392
|
+
_0x110135: 0x2a0,
|
|
2393
|
+
_0x4f977d: 0x2d3,
|
|
2394
|
+
_0x3f0a14: 0x262,
|
|
2395
|
+
_0x1d1b07: 0x2fa,
|
|
2396
|
+
_0x396e68: 0x1f5,
|
|
2397
|
+
_0x19466f: 0x2a7
|
|
2398
|
+
}, _0x39ea12 = _0x2869e3, _0x12ba8d = readFlag(_0x41d417, _0x39ea12(_0x285a44._0x110135)), _0x4d6162 = readFlag(_0x41d417, _0x39ea12(0x2d7)), _0x810aa5 = readFlag(_0x41d417, _0x39ea12(0x260)), _0x46a73b = readFlag(_0x41d417, '--initial-last-seen-seq'), _0x449174 = readFlag(_0x41d417, _0x39ea12(0x1b6)) ?? _0x39ea12(0x245), _0x2aac81 = readFlag(_0x41d417, '--daemon-local-url'), _0x2fc759 = readFlag(_0x41d417, '--session-id'), _0x10507e = readFlag(_0x41d417, '--worker-mode-enabled'), _0x41c537 = readFlag(_0x41d417, _0x39ea12(_0x285a44._0x4f977d)), _0x47fac6 = readFlag(_0x41d417, _0x39ea12(_0x285a44._0x3f0a14)), _0x3e6c22 = _0x41d417[_0x39ea12(0x182)](_0x39ea12(0x28e)), _0x1ef668 = _0x46a73b === void 0x0 ? void 0x0 : Number[_0x39ea12(_0x285a44._0x1d1b07)](_0x46a73b, 0xa);
|
|
2399
|
+
if (!_0x12ba8d)
|
|
2400
|
+
throw new Error(_0x39ea12(_0x285a44._0x396e68));
|
|
2401
|
+
if (!_0x810aa5)
|
|
2402
|
+
throw new Error('Missing\x20--daemon-api-key');
|
|
2403
|
+
if (_0x46a73b !== void 0x0 && (_0x1ef668 === void 0x0 || !Number[_0x39ea12(0x278)](_0x1ef668) || _0x1ef668 < 0x0))
|
|
2404
|
+
throw new Error(_0x39ea12(0x2b6));
|
|
2392
2405
|
return {
|
|
2393
|
-
'agentId':
|
|
2394
|
-
'attachmentCacheDir':
|
|
2395
|
-
'daemonApiKey':
|
|
2396
|
-
'daemonLocalUrl':
|
|
2397
|
-
'initialLastSeenSeq':
|
|
2398
|
-
'sessionId':
|
|
2399
|
-
'serverUrl':
|
|
2400
|
-
'workerModeEnabled':
|
|
2401
|
-
'workerSessionId':
|
|
2402
|
-
'workerThreadTarget':
|
|
2403
|
-
'workerMode':
|
|
2406
|
+
'agentId': _0x12ba8d,
|
|
2407
|
+
'attachmentCacheDir': _0x4d6162,
|
|
2408
|
+
'daemonApiKey': _0x810aa5,
|
|
2409
|
+
'daemonLocalUrl': _0x2aac81,
|
|
2410
|
+
'initialLastSeenSeq': _0x1ef668,
|
|
2411
|
+
'sessionId': _0x2fc759,
|
|
2412
|
+
'serverUrl': _0x449174,
|
|
2413
|
+
'workerModeEnabled': _0x10507e === void 0x0 ? void 0x0 : _0x10507e !== _0x39ea12(_0x285a44._0x19466f),
|
|
2414
|
+
'workerSessionId': _0x41c537,
|
|
2415
|
+
'workerThreadTarget': _0x47fac6,
|
|
2416
|
+
'workerMode': _0x3e6c22
|
|
2404
2417
|
};
|
|
2405
2418
|
}
|
|
2406
|
-
async function runChatBridgeCli(
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
'
|
|
2413
|
-
'
|
|
2414
|
-
'
|
|
2419
|
+
async function runChatBridgeCli(_0x221ee0) {
|
|
2420
|
+
const _0x1ea745 = {
|
|
2421
|
+
_0x53a74e: 0x205,
|
|
2422
|
+
_0x40509a: 0x2fc,
|
|
2423
|
+
_0x1da39a: 0x17e
|
|
2424
|
+
}, _0x21764a = _0x2869e3, _0x307d59 = parseChatBridgeArgs(_0x221ee0), {StdioServerTransport: _0x4a4ba0} = await import(_0x21764a(_0x1ea745._0x53a74e)), _0x4e637a = createInternalAgentClient(_0x307d59), _0xab1659 = createAttachmentCache({ 'cacheDir': _0x307d59[_0x21764a(0x191)] }), _0x11e8e3 = await createChatBridgeServer({
|
|
2425
|
+
'agentId': _0x307d59[_0x21764a(0x2f5)],
|
|
2426
|
+
'attachmentCache': _0xab1659,
|
|
2427
|
+
'client': _0x4e637a,
|
|
2428
|
+
'daemonLocalUrl': _0x307d59['daemonLocalUrl'],
|
|
2415
2429
|
'uploadPreparer': prepareUploadFile,
|
|
2416
|
-
'workerModeEnabled':
|
|
2417
|
-
'workerMode':
|
|
2418
|
-
'workerThreadTarget':
|
|
2430
|
+
'workerModeEnabled': _0x307d59['workerModeEnabled'],
|
|
2431
|
+
'workerMode': _0x307d59[_0x21764a(0x1a6)],
|
|
2432
|
+
'workerThreadTarget': _0x307d59['workerThreadTarget']
|
|
2419
2433
|
});
|
|
2420
|
-
await
|
|
2434
|
+
await _0x11e8e3[_0x21764a(_0x1ea745._0x40509a)][_0x21764a(_0x1ea745._0x1da39a)](new _0x4a4ba0());
|
|
2421
2435
|
}
|
|
2422
|
-
var executedAsEntry = process[
|
|
2423
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2436
|
+
var executedAsEntry = process[_0x2869e3(0x2e8)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x2869e3(0x2ad)] : ![];
|
|
2437
|
+
executedAsEntry && await runChatBridgeCli(process[_0x2869e3(0x2e8)][_0x2869e3(0x231)](0x2));
|
|
2424
2438
|
export {
|
|
2425
2439
|
createChatBridgeHandlers,
|
|
2426
2440
|
createChatBridgeServer,
|