@dscord/daemon 0.1.48 → 0.1.50
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 +1932 -1968
- package/dist/index.js +9470 -9453
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
function _0x4282(_0x1b588c, _0x30e8b6) {
|
|
2
|
+
_0x1b588c = _0x1b588c - 0xfd;
|
|
3
|
+
const _0x2d73e2 = _0x2d73();
|
|
4
|
+
let _0x4282ac = _0x2d73e2[_0x1b588c];
|
|
5
|
+
if (_0x4282['MSEkJU'] === undefined) {
|
|
6
|
+
var _0x223a93 = function (_0x571d4d) {
|
|
7
|
+
const _0x5f35ee = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
8
|
+
let _0x3760ad = '', _0x2f5275 = '';
|
|
9
|
+
for (let _0x537cce = 0x0, _0x464b30, _0x2257e2, _0x543e4c = 0x0; _0x2257e2 = _0x571d4d['charAt'](_0x543e4c++); ~_0x2257e2 && (_0x464b30 = _0x537cce % 0x4 ? _0x464b30 * 0x40 + _0x2257e2 : _0x2257e2, _0x537cce++ % 0x4) ? _0x3760ad += String['fromCharCode'](0xff & _0x464b30 >> (-0x2 * _0x537cce & 0x6)) : 0x0) {
|
|
10
|
+
_0x2257e2 = _0x5f35ee['indexOf'](_0x2257e2);
|
|
11
|
+
}
|
|
12
|
+
for (let _0x1e522d = 0x0, _0x1d1ae8 = _0x3760ad['length']; _0x1e522d < _0x1d1ae8; _0x1e522d++) {
|
|
13
|
+
_0x2f5275 += '%' + ('00' + _0x3760ad['charCodeAt'](_0x1e522d)['toString'](0x10))['slice'](-0x2);
|
|
14
|
+
}
|
|
15
|
+
return decodeURIComponent(_0x2f5275);
|
|
16
|
+
};
|
|
17
|
+
_0x4282['mKsUHv'] = _0x223a93, _0x4282['IieJjC'] = {}, _0x4282['MSEkJU'] = !![];
|
|
18
|
+
}
|
|
19
|
+
const _0x58d27f = _0x2d73e2[0x0], _0x118e1a = _0x1b588c + _0x58d27f, _0x1fcec2 = _0x4282['IieJjC'][_0x118e1a];
|
|
20
|
+
return !_0x1fcec2 ? (_0x4282ac = _0x4282['mKsUHv'](_0x4282ac), _0x4282['IieJjC'][_0x118e1a] = _0x4282ac) : _0x4282ac = _0x1fcec2, _0x4282ac;
|
|
21
|
+
}
|
|
22
|
+
const _0x1abe67 = _0x4282;
|
|
23
|
+
(function (_0x1c1398, _0x586aac) {
|
|
24
|
+
const _0x32dbac = {
|
|
25
|
+
_0x122d7: 0x24d,
|
|
26
|
+
_0xb502ef: 0x194,
|
|
27
|
+
_0x12654b: 0x154,
|
|
28
|
+
_0x6e6169: 0x268,
|
|
29
|
+
_0x480512: 0x21b,
|
|
30
|
+
_0x6d95af: 0x168,
|
|
31
|
+
_0x26da98: 0x264
|
|
32
|
+
}, _0x1b6b75 = _0x4282, _0x29f027 = _0x1c1398();
|
|
13
33
|
while (!![]) {
|
|
14
34
|
try {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
35
|
+
const _0x422b3c = parseInt(_0x1b6b75(_0x32dbac._0x122d7)) / 0x1 + -parseInt(_0x1b6b75(0x1f8)) / 0x2 * (-parseInt(_0x1b6b75(_0x32dbac._0xb502ef)) / 0x3) + -parseInt(_0x1b6b75(0x170)) / 0x4 * (parseInt(_0x1b6b75(_0x32dbac._0x12654b)) / 0x5) + parseInt(_0x1b6b75(_0x32dbac._0x6e6169)) / 0x6 * (-parseInt(_0x1b6b75(0x190)) / 0x7) + -parseInt(_0x1b6b75(_0x32dbac._0x480512)) / 0x8 * (parseInt(_0x1b6b75(0x205)) / 0x9) + -parseInt(_0x1b6b75(_0x32dbac._0x6d95af)) / 0xa + parseInt(_0x1b6b75(_0x32dbac._0x26da98)) / 0xb;
|
|
36
|
+
if (_0x422b3c === _0x586aac)
|
|
17
37
|
break;
|
|
18
38
|
else
|
|
19
|
-
|
|
20
|
-
} catch (
|
|
21
|
-
|
|
39
|
+
_0x29f027['push'](_0x29f027['shift']());
|
|
40
|
+
} catch (_0x338dec) {
|
|
41
|
+
_0x29f027['push'](_0x29f027['shift']());
|
|
22
42
|
}
|
|
23
43
|
}
|
|
24
|
-
}(
|
|
25
|
-
function _0xd0d8(_0x285679, _0xd316a9) {
|
|
26
|
-
_0x285679 = _0x285679 - 0x1a1;
|
|
27
|
-
const _0x2b34c5 = _0x2b34();
|
|
28
|
-
let _0xd0d876 = _0x2b34c5[_0x285679];
|
|
29
|
-
if (_0xd0d8['CDpGUY'] === undefined) {
|
|
30
|
-
var _0x1fd57a = function (_0x48556d) {
|
|
31
|
-
const _0x401744 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
32
|
-
let _0x54f963 = '', _0x272da0 = '';
|
|
33
|
-
for (let _0x277c7e = 0x0, _0x19703f, _0x8b3d0, _0x4d623b = 0x0; _0x8b3d0 = _0x48556d['charAt'](_0x4d623b++); ~_0x8b3d0 && (_0x19703f = _0x277c7e % 0x4 ? _0x19703f * 0x40 + _0x8b3d0 : _0x8b3d0, _0x277c7e++ % 0x4) ? _0x54f963 += String['fromCharCode'](0xff & _0x19703f >> (-0x2 * _0x277c7e & 0x6)) : 0x0) {
|
|
34
|
-
_0x8b3d0 = _0x401744['indexOf'](_0x8b3d0);
|
|
35
|
-
}
|
|
36
|
-
for (let _0x21e59c = 0x0, _0x366008 = _0x54f963['length']; _0x21e59c < _0x366008; _0x21e59c++) {
|
|
37
|
-
_0x272da0 += '%' + ('00' + _0x54f963['charCodeAt'](_0x21e59c)['toString'](0x10))['slice'](-0x2);
|
|
38
|
-
}
|
|
39
|
-
return decodeURIComponent(_0x272da0);
|
|
40
|
-
};
|
|
41
|
-
_0xd0d8['GdhRpU'] = _0x1fd57a, _0xd0d8['GYeZhm'] = {}, _0xd0d8['CDpGUY'] = !![];
|
|
42
|
-
}
|
|
43
|
-
const _0x43556f = _0x2b34c5[0x0], _0x42853c = _0x285679 + _0x43556f, _0x2b711c = _0xd0d8['GYeZhm'][_0x42853c];
|
|
44
|
-
return !_0x2b711c ? (_0xd0d876 = _0xd0d8['GdhRpU'](_0xd0d876), _0xd0d8['GYeZhm'][_0x42853c] = _0xd0d876) : _0xd0d876 = _0x2b711c, _0xd0d876;
|
|
45
|
-
}
|
|
44
|
+
}(_0x2d73, 0x588ee));
|
|
46
45
|
import { pathToFileURL } from 'node:url';
|
|
47
46
|
import {
|
|
48
47
|
mkdir,
|
|
@@ -51,496 +50,477 @@ import {
|
|
|
51
50
|
stat,
|
|
52
51
|
writeFile
|
|
53
52
|
} from 'node:fs/promises';
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'l3n0yxj0',
|
|
84
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
85
|
-
'l3nLBMq',
|
|
86
|
-
'BwvZC2fNzuLK',
|
|
87
|
-
'D29YA19RzxK',
|
|
88
|
-
'Aw5FCMv2Awv3',
|
|
89
|
-
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
90
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
91
|
-
'DMLLD19MAwXL',
|
|
92
|
-
'D29YA2vY',
|
|
93
|
-
'Dg9mB3DLCKnHC2u',
|
|
94
|
-
'Dg9tDhjPBMC',
|
|
95
|
-
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
96
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
97
|
-
'DgHYzwfKswq',
|
|
98
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
99
|
-
'C2vUzgvYvhLWzq',
|
|
100
|
-
'C2vX',
|
|
101
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
102
|
-
'ywz0zxjtzxe',
|
|
103
|
-
'zMLSDgvY',
|
|
104
|
-
'D3nZoG',
|
|
105
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
106
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
107
|
-
'ihn0yxr1CZ0',
|
|
108
|
-
'C2L6zuj5DgvZ',
|
|
109
|
-
'BwvZC2fNzxm',
|
|
110
|
-
'BNvTyMvY',
|
|
111
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
112
|
-
'y29UDgvUDejHC2u2na',
|
|
113
|
-
'C2vYDMvYvxjS',
|
|
114
|
-
'yxnPzgu',
|
|
115
|
-
'AxnbCNjHEq',
|
|
116
|
-
'DxjNzw50',
|
|
117
|
-
'z2v0rgf0zq',
|
|
118
|
-
'DgHYzwfKu2HVCNrjza',
|
|
119
|
-
'y2HHBM5LBa',
|
|
53
|
+
import { homedir } from 'node:os';
|
|
54
|
+
import _0x3760ad from 'node:path';
|
|
55
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
56
|
+
'.csv': _0x1abe67(0x213),
|
|
57
|
+
'.gif': _0x1abe67(0x22a),
|
|
58
|
+
'.jpeg': _0x1abe67(0x279),
|
|
59
|
+
'.jpg': 'image/jpeg',
|
|
60
|
+
'.json': _0x1abe67(0x101),
|
|
61
|
+
'.md': _0x1abe67(0x1e0),
|
|
62
|
+
'.pdf': _0x1abe67(0x23c),
|
|
63
|
+
'.png': _0x1abe67(0x119),
|
|
64
|
+
'.svg': _0x1abe67(0x24a),
|
|
65
|
+
'.txt': 'text/plain',
|
|
66
|
+
'.webp': _0x1abe67(0x233),
|
|
67
|
+
'.xml': _0x1abe67(0x24b),
|
|
68
|
+
'.zip': 'application/zip'
|
|
69
|
+
};
|
|
70
|
+
function guessContentType(_0x2f5275) {
|
|
71
|
+
const _0x1be9e2 = { _0x59b098: 0x1fe }, _0x3d7ba9 = _0x1abe67;
|
|
72
|
+
return MIME_BY_EXTENSION[_0x3760ad[_0x3d7ba9(_0x1be9e2._0x59b098)](_0x2f5275)['toLowerCase']()] ?? _0x3d7ba9(0x20c);
|
|
73
|
+
}
|
|
74
|
+
function safeFilename(_0x537cce) {
|
|
75
|
+
return _0x537cce['replace'](/[\\/]/g, '-');
|
|
76
|
+
}
|
|
77
|
+
function _0x2d73() {
|
|
78
|
+
const _0x28dddb = [
|
|
79
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
80
|
+
'lcbWCMv2Awv3pq',
|
|
81
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
120
82
|
'ig1ZzZ0',
|
|
121
|
-
'zgLNzxn0',
|
|
122
|
-
'D29YA2vYsgfUzg9MzG',
|
|
123
|
-
'AM9PBG',
|
|
124
83
|
'zM9Yy2vszwzYzxnO',
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
84
|
+
'ig1LC3nHz2u9',
|
|
85
|
+
'CMvHzf9OAxn0B3j5',
|
|
86
|
+
'ywDNCMvNyxrLswq',
|
|
87
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
88
|
+
'B3b0Aw9UywW',
|
|
89
|
+
'D2fPDgLUz19PBNb1Da',
|
|
90
|
+
'A2LUza',
|
|
91
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
92
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
93
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
135
94
|
'ihr5Cgu9ywDLBNq',
|
|
136
|
-
'
|
|
137
|
-
'
|
|
95
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
96
|
+
'igrVBMuP',
|
|
97
|
+
'zMfSC2u',
|
|
98
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
138
99
|
'zNjVBq',
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
100
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
101
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
102
|
+
'BgvUz3rO',
|
|
103
|
+
'C2LNBMfS',
|
|
104
|
+
'D29YA2vYCW',
|
|
105
|
+
'CMvXDwvZDfvYBa',
|
|
106
|
+
'D3m6',
|
|
107
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
108
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
109
|
+
'y29UDgvUDejHC2u2na',
|
|
110
|
+
'Aw5FChjVz3jLC3m',
|
|
111
|
+
'Dg9KBW',
|
|
112
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
113
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
114
|
+
'y2XPzw50',
|
|
115
|
+
'pgvTChr5pG',
|
|
116
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
117
|
+
'C2vYDMvYvxjS',
|
|
118
|
+
'w3nLCt0',
|
|
119
|
+
'ywDLBNrZ',
|
|
120
|
+
'DgHYzwfKvgfYz2v0',
|
|
121
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
122
|
+
'Bwf4',
|
|
123
|
+
'DhLWzq',
|
|
124
|
+
'ktSGz290ignOyw5UzwW9',
|
|
125
|
+
'kg5VBMuP',
|
|
126
|
+
'Cgf5Bg9HzePZB24',
|
|
127
|
+
'CgfYDgLJAxbHBNq',
|
|
128
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
129
|
+
'zxHWAxjLC0f0',
|
|
130
|
+
'zxjYB3i',
|
|
131
|
+
'mJK1ExzhyMrd',
|
|
132
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
133
|
+
'ls1ZzxnZAw9UlwLK',
|
|
134
|
+
'CM9VDe1LC3nHz2vjza',
|
|
144
135
|
'DgvZDa',
|
|
145
|
-
'CxvLDwvK',
|
|
146
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
147
|
-
'z2v0vgLTzq',
|
|
148
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
149
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
150
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
151
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
152
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
153
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
154
|
-
'nZmWBNnTCw9m',
|
|
155
|
-
'zw50CMLLCW',
|
|
156
136
|
'B2jQzwn0',
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
137
|
+
'yMfZzty0',
|
|
138
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
139
|
+
'zgLNzxn0',
|
|
140
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
141
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
142
|
+
'C3rHCNrLza',
|
|
143
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
144
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
145
|
+
'EM9K',
|
|
146
|
+
'zg9Uzq',
|
|
147
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
148
|
+
'yxjNDG',
|
|
149
|
+
'z2v0rNvSBfLLyxi',
|
|
150
|
+
'Bwv0yq',
|
|
151
|
+
'ndi4ndC3mevwugXxDq',
|
|
152
|
+
'CMvZDwX0CW',
|
|
153
|
+
'l3nLCNzLCG',
|
|
154
|
+
'ywXS',
|
|
155
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
156
|
+
'ihrPBwu9',
|
|
160
157
|
'C2vUze1LC3nHz2u',
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
167
|
-
'Agv4',
|
|
168
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
169
|
-
'l3rHC2TZpW',
|
|
170
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
171
|
-
'DxrMoa',
|
|
172
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
158
|
+
'CxvLDwvK',
|
|
159
|
+
'nde0odrfsKTpyK8',
|
|
160
|
+
'CMvWBgfJzq',
|
|
161
|
+
'z2v0sg91CNm',
|
|
162
|
+
'C2vZC2LVBKLK',
|
|
173
163
|
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
178
|
-
'
|
|
164
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
165
|
+
'CgfYA193B3jRzxi',
|
|
166
|
+
'y3jLyxrLx3rHC2TZ',
|
|
167
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
168
|
+
'DMfSDwvZ',
|
|
169
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
170
|
+
'y2HHBM5LBa',
|
|
171
|
+
'DgfZA19Pza',
|
|
172
|
+
'yxr0ywnOBwvUDeLK',
|
|
173
|
+
'igLUia',
|
|
174
|
+
'Dg9gAxHLza',
|
|
175
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
176
|
+
'BwvZC2fNzv9Pzhm',
|
|
179
177
|
'C2vYDMvY',
|
|
180
|
-
'D29YA2vYCW',
|
|
181
|
-
'Ahr0Chm6',
|
|
182
178
|
'w3rHCMDLDd0',
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
188
|
-
'CgfYC2vjBNq',
|
|
189
|
-
'y29UDgvUDfr5Cgu',
|
|
190
|
-
'xsba',
|
|
191
|
-
'kg5VBMuP',
|
|
192
|
-
'C2f2zq',
|
|
193
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
194
|
-
'DxnLCG',
|
|
195
|
-
'iYmGu2vYDMvYoIa',
|
|
196
|
-
'CNvUBMLUzW',
|
|
197
|
-
'zxjYB3i',
|
|
198
|
-
'v29YA2vYici',
|
|
199
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
200
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
179
|
+
'BMfTzq',
|
|
180
|
+
'Dw5JBgfPBv90yxnR',
|
|
181
|
+
'zgvZDhjVEwvK',
|
|
182
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
201
183
|
'yM9KEu1HCMTKB3DU',
|
|
202
|
-
'
|
|
184
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
185
|
+
'DgHYzwfKu2HVCNrjza',
|
|
186
|
+
'yMvMB3jL',
|
|
187
|
+
'BgLZDfnLCNzLCG',
|
|
188
|
+
'zMv0y2HjBxbS',
|
|
189
|
+
'AhvTyw5Z',
|
|
190
|
+
'ywDLBNq',
|
|
191
|
+
'nZq4nda1Awjtr0re',
|
|
192
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
193
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
194
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
195
|
+
'm2zUt3ndtG',
|
|
196
|
+
'C3rHDhvZ',
|
|
197
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
198
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
203
199
|
'uefuq0G',
|
|
200
|
+
'y29UDgvUDa',
|
|
201
|
+
'ignSywLTzwq',
|
|
202
|
+
'vgfZAZOG',
|
|
203
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
204
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
205
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
206
|
+
'C2L6zq',
|
|
207
|
+
'BgLZDf9Zzxj2zxi',
|
|
208
|
+
'cGOTls0G',
|
|
209
|
+
'ChvIBgLJ',
|
|
210
|
+
'6k+35Rgcia',
|
|
211
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
212
|
+
'y29UBMvJDa',
|
|
213
|
+
'vgfZAYa',
|
|
214
|
+
'C2vUzgvYvhLWzq',
|
|
215
|
+
'yM9KEvrLEhq',
|
|
216
|
+
'DgfZAY0',
|
|
217
|
+
'z2v0',
|
|
218
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
219
|
+
'icHPzdO',
|
|
220
|
+
'D29YA2vYtw9Kzq',
|
|
221
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
222
|
+
'DxbSB2fKx2zPBgu',
|
|
223
|
+
'C3rHCNrZv2L0Aa',
|
|
224
|
+
'Aw5JBhvKzxm',
|
|
225
|
+
'Dgv4Da',
|
|
226
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
227
|
+
'DhjPBq',
|
|
228
|
+
'CNvUswq',
|
|
229
|
+
'ywDLBNrjza',
|
|
230
|
+
'BgLTAxq',
|
|
231
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
232
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
233
|
+
'y3jLyxrLzef0',
|
|
234
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
235
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
236
|
+
'C3rVCe1HAw4',
|
|
237
|
+
'BwvTyMvYCW',
|
|
238
|
+
'Agv4',
|
|
239
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
240
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
241
|
+
'DMfSDwu',
|
|
242
|
+
'igzHAwXLzdOG',
|
|
243
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
244
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
245
|
+
'DgHYzwfKtNvTyMvY',
|
|
246
|
+
'ywrK',
|
|
247
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
248
|
+
'z2v0u2vJB25KCW',
|
|
249
|
+
'DgHYzwfKswq',
|
|
250
|
+
'C2L6zuj5DgvZ',
|
|
251
|
+
'BwLU',
|
|
252
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
253
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
254
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
255
|
+
'Aw5KzxHpzG',
|
|
256
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
257
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
258
|
+
'CgfYDgLJAxbHBNrjza',
|
|
259
|
+
'l3rHC2TZ',
|
|
260
|
+
'l3rHC2TZl2nSywLT',
|
|
261
|
+
'mc4WlJa',
|
|
262
|
+
'y2HHBM5LBhm',
|
|
263
|
+
'C2vUzf9TzxnZywDL',
|
|
264
|
+
'C3bSAxq',
|
|
265
|
+
'zxzLBNrtzxe',
|
|
266
|
+
'BMv4Den1CNnVCG',
|
|
267
|
+
'y2HHDa',
|
|
268
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
269
|
+
'CMvHzeHPC3rVCNK',
|
|
270
|
+
'yxjYyxK',
|
|
204
271
|
'Dgv4Dc9TyxjRzg93BG',
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
272
|
+
'lMjPBG',
|
|
273
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
274
|
+
'y2XHAw1FDgfZA3m',
|
|
275
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
276
|
+
'DxjNzw50',
|
|
277
|
+
'DgfYz2v0zwq',
|
|
278
|
+
'igTPBMq9',
|
|
279
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
280
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
281
|
+
'C2XPy2u',
|
|
211
282
|
'DgHYzwfK',
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
283
|
+
'C3rYAw5NAwz5',
|
|
284
|
+
'D29YA19RzxK',
|
|
285
|
+
'AxnjBNrLz2vY',
|
|
286
|
+
'yxv0BZO',
|
|
287
|
+
'iYmJienOyw5UzwXZ',
|
|
288
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
289
|
+
'y2f0y2G',
|
|
290
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
291
|
+
'l3rHC2TZpW',
|
|
292
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
293
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
294
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
295
|
+
'mtm2ode2mM1Xz3rnyW',
|
|
296
|
+
'zgfLBw9UqxbPs2v5',
|
|
297
|
+
'ChjVDg9JB2W',
|
|
222
298
|
't3jPz2LUywWGBwvZC2fNztOG',
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
230
|
-
'r0vu',
|
|
299
|
+
'y2HLy2TnzxnZywDLCW',
|
|
300
|
+
'Ahr0CdO',
|
|
301
|
+
'zxH0BMfTzq',
|
|
302
|
+
'yxr0ywnOBwvUDhm',
|
|
303
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
304
|
+
'ChvZAa',
|
|
231
305
|
'ig1LC3nHz2vZkqOk',
|
|
232
|
-
'
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'y2HHBM5LBhm',
|
|
236
|
-
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
237
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
238
|
-
'Aw1Hz2uVANbLzW',
|
|
239
|
-
'igTPBMq9',
|
|
240
|
-
'C3rHCNrLza',
|
|
306
|
+
'DMLLD19MAwXL',
|
|
307
|
+
'BNvTyMvY',
|
|
308
|
+
'mZmZt1nTr0L3',
|
|
241
309
|
'C3vJy2vZCW',
|
|
242
|
-
'lsaJ',
|
|
243
|
-
'DgHYzwfKtNvTyMvY',
|
|
244
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
245
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
246
|
-
'C29Tzq',
|
|
247
310
|
'AwrLBxbVDgvUy3LFA2v5',
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
'
|
|
251
|
-
'
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
257
|
-
'BgvUz3rO',
|
|
258
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
259
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
260
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
261
|
-
'DxbSB2fKx2zPBgu',
|
|
262
|
-
'y2HHDa',
|
|
263
|
-
'zMLSzv9WyxrO',
|
|
264
|
-
'zgLZCg9ZAxrPB24',
|
|
265
|
-
'C3rVCe1HAw4',
|
|
266
|
-
'C3rHDhvZ',
|
|
267
|
-
'DxbKyxrL',
|
|
268
|
-
'oxLUtM5LtW',
|
|
269
|
-
'ig1LC3nHz2u9',
|
|
270
|
-
'ywDLBNq',
|
|
271
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
272
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
273
|
-
'ChjVDg9JB2W',
|
|
274
|
-
'Bwf4',
|
|
275
|
-
'z2v0sg91CNm',
|
|
276
|
-
'y2HHBM5LBe5HBwu',
|
|
277
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
278
|
-
'D29YA2vYtw9Kzq',
|
|
311
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
312
|
+
'lsba',
|
|
313
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
314
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
315
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
316
|
+
'C2vX',
|
|
317
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
318
|
+
'C3rYAw5N',
|
|
279
319
|
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
320
|
+
'AxnbyNnVBhv0zq',
|
|
321
|
+
'DgfYz2v0',
|
|
322
|
+
'Dgv4Dc9JC3y',
|
|
323
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
324
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
325
|
+
'zgf0yq',
|
|
326
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
327
|
+
'sfruuca',
|
|
280
328
|
'y2XHAw0GzMfPBgvK',
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
329
|
+
'iYmJiefNzw50CW',
|
|
330
|
+
'mtuYnZi4zfnlALPZ',
|
|
331
|
+
'AgvHzgvYCW',
|
|
332
|
+
'AwrSzq',
|
|
333
|
+
'l3nLBMq',
|
|
334
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
335
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
336
|
+
'zMLSzv9WyxrO',
|
|
337
|
+
'C2vYDMvYtMfTzq',
|
|
338
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
287
339
|
'ywz0zxi',
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'
|
|
294
|
-
'
|
|
295
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
296
|
-
'y29UDgvUDa',
|
|
297
|
-
'zxH0BMfTzq',
|
|
298
|
-
'yMvMB3jL',
|
|
299
|
-
'igf0DgfJAg1LBNq',
|
|
300
|
-
'C2vUzf9TzxnZywDL',
|
|
301
|
-
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
302
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
303
|
-
'zgvZDhjVEwvK',
|
|
304
|
-
'y3jLyxrLvgfZA3m',
|
|
305
|
-
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
306
|
-
'BwvKAxvT',
|
|
307
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
308
|
-
'CM9VDe1LC3nHz2vjza',
|
|
309
|
-
'DgfZAY0',
|
|
310
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
311
|
-
'BwvTyMvYCW',
|
|
312
|
-
'zgvZy3jPChrPB24',
|
|
340
|
+
'CgfKu3rHCNq',
|
|
341
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
342
|
+
'Bwf0y2Hoyw1L',
|
|
343
|
+
'ls1Zzxj2zxiTDxjS',
|
|
344
|
+
'DgfZA051BwjLCG',
|
|
345
|
+
'Aw1Hz2uVz2LM',
|
|
346
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
313
347
|
'DMLZAwjPBgL0Eq',
|
|
314
|
-
'
|
|
315
|
-
'
|
|
348
|
+
'C3vIDgfZA051BwjLCG',
|
|
349
|
+
'l2zPBMLZAa',
|
|
350
|
+
'zMLSzw5HBwu',
|
|
351
|
+
'D3nZoG',
|
|
352
|
+
'zw51Bq',
|
|
353
|
+
'zMLUza',
|
|
354
|
+
'Aw1Hz2uVD2vICa',
|
|
355
|
+
'v29YA2vYici',
|
|
356
|
+
'DgL0Bgu',
|
|
357
|
+
'BwvZC2fNzq',
|
|
358
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
316
359
|
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
360
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
361
|
+
'BwvZC2fNzxm',
|
|
362
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
363
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
364
|
+
'ywz0zxjtzxe',
|
|
365
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
366
|
+
'Dg9VBa',
|
|
367
|
+
'ANnVBG',
|
|
368
|
+
'z2v0rgf0zq',
|
|
369
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
370
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
371
|
+
'C2v0',
|
|
372
|
+
'BM93',
|
|
373
|
+
'D29YA2vYsgfUzg9MzG',
|
|
374
|
+
'BgLZDf90yxnRCW',
|
|
375
|
+
'ywDNCMvNyxrLswrZ',
|
|
376
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
377
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
378
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
379
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
380
|
+
'nJmYode4yKnSs3Lb',
|
|
381
|
+
'ue9tva',
|
|
321
382
|
'y29UDgvUDc10ExbL',
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'
|
|
333
|
-
'
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'EM9K',
|
|
338
|
-
'zw51Bq',
|
|
339
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
340
|
-
'zMLSzw5HBwu',
|
|
341
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
342
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
343
|
-
'mJaXndq3nfHSEfvRDa',
|
|
344
|
-
'Dg9gAxHLza',
|
|
345
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
346
|
-
'DgfZA0LK',
|
|
347
|
-
'l2zPBMLZAa',
|
|
348
|
-
'zg9Uzq',
|
|
349
|
-
'ls1Hz2vUDc1Pza',
|
|
350
|
-
'y2XPzw50',
|
|
383
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
384
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
385
|
+
'zg0T',
|
|
386
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
387
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
388
|
+
'AhjLzG',
|
|
389
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
390
|
+
'C2vUzgvYtMfTzq',
|
|
391
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
392
|
+
'CgfYC2u',
|
|
393
|
+
'Ahr0Chm6',
|
|
394
|
+
'y29UDgvUDfr5Cgu',
|
|
395
|
+
'C29Tzq',
|
|
396
|
+
'yxjYyxLcDwzMzxi',
|
|
397
|
+
'Dw5JBgfPBvrHC2S',
|
|
351
398
|
'AhvTyw4',
|
|
399
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
400
|
+
'Dg9tDhjPBMC',
|
|
401
|
+
'zgvZy3jPChrPB24',
|
|
402
|
+
'ihn0yxr1CZ0',
|
|
403
|
+
'mtm0mJi1mdHPDLryDwe',
|
|
404
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
405
|
+
'Bg9JywXLq29TCgfYzq',
|
|
406
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
407
|
+
'mJryy1Djy1u',
|
|
408
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
409
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
410
|
+
'DgfZA0LK',
|
|
411
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
412
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
413
|
+
'BwfW',
|
|
414
|
+
'y2HHBM5LBeLK',
|
|
415
|
+
'BgLZDfrHC2TZ',
|
|
416
|
+
'ywjVCNq',
|
|
352
417
|
'AxngAw5PDgu',
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
418
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
419
|
+
'C2HHmJu2',
|
|
420
|
+
'zw50CMLLCW',
|
|
421
|
+
'iYmJieH1BwfUCW',
|
|
422
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
423
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
424
|
+
'Aw1Hz2uVANbLzW',
|
|
356
425
|
'CMvHC29U',
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'CNvUswq',
|
|
362
|
-
'ue9tva',
|
|
363
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
364
|
-
'yMXVy2TLza',
|
|
365
|
-
'ywjVCNq',
|
|
366
|
-
'C2LNBMfS',
|
|
367
|
-
'z2v0twLUDxrLCW',
|
|
368
|
-
'iIbUB3qGzM91BMq',
|
|
369
|
-
'C2vZC2LVBKLK',
|
|
370
|
-
'DMfSDwvZ',
|
|
371
|
-
'CgfYDgLJAxbHBNq',
|
|
372
|
-
'y2f0y2G',
|
|
373
|
-
'BgLZDf90yxnRCW',
|
|
374
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
375
|
-
'C2XPy2u',
|
|
376
|
-
'z2v0',
|
|
377
|
-
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
378
|
-
'Aw5FChjVz3jLC3m',
|
|
379
|
-
'CMvHzeHPC3rVCNK',
|
|
380
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
381
|
-
'CMvZCg9UC2u',
|
|
382
|
-
'C2v0',
|
|
383
|
-
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
384
|
-
'yxr0ywnOBwvUDhm',
|
|
385
|
-
'y2fJAgveAxi',
|
|
386
|
-
'ignSywLTzwq',
|
|
387
|
-
'DgHYzwfKvgfYz2v0',
|
|
388
|
-
'CMvHzf9OAxn0B3j5',
|
|
389
|
-
'Dgv4Dc9JC3y',
|
|
390
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
391
|
-
'yM9KEvrLEhq',
|
|
392
|
-
'ywjVCNrLza',
|
|
393
|
-
'AhjLzG',
|
|
426
|
+
'iYmGu2vYDMvYoIa',
|
|
427
|
+
'zMLSDgvY',
|
|
428
|
+
'lNnSB2nR',
|
|
429
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
394
430
|
'z2v0tw9UDgG',
|
|
395
|
-
'
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
431
|
+
'zg06',
|
|
432
|
+
'iJOGC3rHDhvZpq',
|
|
433
|
+
'lsaJ',
|
|
434
|
+
'r0vu',
|
|
435
|
+
'AgLNAa',
|
|
436
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
437
|
+
'zgLZCg9ZAxrPB24',
|
|
438
|
+
'DxnLCG',
|
|
439
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
440
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
441
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
442
|
+
'DgfYz2v0zwruyxnR',
|
|
404
443
|
'DgfZA3m',
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'DhjPBq',
|
|
412
|
-
'B3b0Aw9UywW',
|
|
413
|
-
'y3jLyxrLx3rHC2TZ',
|
|
414
|
-
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
415
|
-
'lIbnzxnZywDLieLeoIa',
|
|
416
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
417
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
418
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
419
|
-
'AgfZtw9Yzq',
|
|
420
|
-
'ywrK',
|
|
421
|
-
'C2HHmJu2',
|
|
422
|
-
'ls1Zzxj2zxiTDxjS',
|
|
423
|
-
'C2vUzgvYtMfTzq',
|
|
424
|
-
'mtaZmdaXmKTWwunJAa',
|
|
444
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
445
|
+
'l2HPC3rVCNK/',
|
|
446
|
+
'C29YDa',
|
|
447
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
448
|
+
'CMvZCg9UC2u',
|
|
449
|
+
'iokaLca',
|
|
425
450
|
'DgfZAW',
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'
|
|
435
|
-
'
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
439
|
-
'
|
|
440
|
-
'BgLTAxq',
|
|
441
|
-
'BMv4Den1CNnVCG',
|
|
442
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
443
|
-
'zgf0yq',
|
|
444
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
445
|
-
'zMLUAxnOx3DVCMTLCG',
|
|
446
|
-
'BwvTyMvY',
|
|
451
|
+
'Bg93',
|
|
452
|
+
'yMfZzw5HBwu',
|
|
453
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
454
|
+
'Aw5FCMv2Awv3',
|
|
455
|
+
'AgfZtw9Yzq',
|
|
456
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
457
|
+
'BwvZC2fNzuLK',
|
|
458
|
+
'Dg9ju09tDhjPBMC',
|
|
459
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
460
|
+
'y2fJAgveAxi',
|
|
461
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
462
|
+
'kgXLz2fJEsK',
|
|
463
|
+
'AgfZ',
|
|
464
|
+
'Aw1Hz2uVCg5N',
|
|
447
465
|
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
448
|
-
'
|
|
449
|
-
'
|
|
450
|
-
'
|
|
451
|
-
'
|
|
452
|
-
'
|
|
453
|
-
'CMvZDwX0',
|
|
454
|
-
'CMvZDwX0sNnVBG',
|
|
455
|
-
'CMvJB3jK',
|
|
456
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
457
|
-
'Aw5KzxHpzG'
|
|
466
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
467
|
+
'y2HHBM5LBe5HBwu',
|
|
468
|
+
'AM9PBG',
|
|
469
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
470
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG'
|
|
458
471
|
];
|
|
459
|
-
|
|
460
|
-
return
|
|
461
|
-
};
|
|
462
|
-
return _0x2b34();
|
|
463
|
-
}
|
|
464
|
-
import { homedir } from 'node:os';
|
|
465
|
-
import _0x54f963 from 'node:path';
|
|
466
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
467
|
-
'.csv': _0x54fce(0x2fc),
|
|
468
|
-
'.gif': _0x54fce(0x305),
|
|
469
|
-
'.jpeg': _0x54fce(0x265),
|
|
470
|
-
'.jpg': _0x54fce(0x265),
|
|
471
|
-
'.json': _0x54fce(0x270),
|
|
472
|
-
'.md': _0x54fce(0x243),
|
|
473
|
-
'.pdf': _0x54fce(0x202),
|
|
474
|
-
'.png': _0x54fce(0x1bc),
|
|
475
|
-
'.svg': 'image/svg+xml',
|
|
476
|
-
'.txt': 'text/plain',
|
|
477
|
-
'.webp': _0x54fce(0x1c4),
|
|
478
|
-
'.xml': _0x54fce(0x1c2),
|
|
479
|
-
'.zip': _0x54fce(0x24e)
|
|
472
|
+
_0x2d73 = function () {
|
|
473
|
+
return _0x28dddb;
|
|
480
474
|
};
|
|
481
|
-
|
|
482
|
-
const _0x108a1d = { _0x1c00b2: 0x1d4 }, _0x12552a = _0x54fce;
|
|
483
|
-
return MIME_BY_EXTENSION[_0x54f963[_0x12552a(0x2a0)](_0x272da0)[_0x12552a(_0x108a1d._0x1c00b2)]()] ?? _0x12552a(0x263);
|
|
475
|
+
return _0x2d73();
|
|
484
476
|
}
|
|
485
|
-
function
|
|
486
|
-
const
|
|
487
|
-
return
|
|
477
|
+
function extensionFor(_0x464b30) {
|
|
478
|
+
const _0x5f2252 = { _0x312949: 0x1e1 }, _0x172c92 = _0x1abe67, _0x2257e2 = Object[_0x172c92(0x275)](MIME_BY_EXTENSION)[_0x172c92(0x232)](([, _0x543e4c]) => _0x543e4c === _0x464b30);
|
|
479
|
+
return _0x2257e2?.[0x0] ?? _0x172c92(_0x5f2252._0x312949);
|
|
488
480
|
}
|
|
489
|
-
function
|
|
490
|
-
const
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
throw new Error(_0x4495cc(_0x335ea8._0x3de0a0));
|
|
506
|
-
const _0x3b1800 = await stat(_0x21e59c)['catch'](() => null);
|
|
507
|
-
if (!_0x3b1800 || !_0x3b1800[_0x4495cc(0x276)]())
|
|
508
|
-
throw new Error(_0x4495cc(_0x335ea8._0xc18ede) + _0x21e59c);
|
|
509
|
-
const _0x2a98d4 = _0x366008['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
510
|
-
if (_0x3b1800['size'] > _0x2a98d4)
|
|
511
|
-
throw new Error(_0x4495cc(_0x335ea8._0x3ee7a5) + _0x3b1800[_0x4495cc(0x2bc)]);
|
|
512
|
-
const _0x17abf2 = await readFile(_0x21e59c), _0x409b3f = _0x54f963[_0x4495cc(_0x335ea8._0x339701)](_0x21e59c);
|
|
481
|
+
async function prepareUploadFile(_0x1e522d, _0x1d1ae8 = {}) {
|
|
482
|
+
const _0xb6f818 = {
|
|
483
|
+
_0x512eae: 0x19f,
|
|
484
|
+
_0x3b0b21: 0x10d,
|
|
485
|
+
_0xf8271e: 0x261,
|
|
486
|
+
_0x59807e: 0x15a
|
|
487
|
+
}, _0x4b27f5 = _0x1abe67;
|
|
488
|
+
if (!_0x3760ad[_0x4b27f5(0x211)](_0x1e522d))
|
|
489
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
490
|
+
const _0xa3b329 = await stat(_0x1e522d)['catch'](() => null);
|
|
491
|
+
if (!_0xa3b329 || !_0xa3b329['isFile']())
|
|
492
|
+
throw new Error(_0x4b27f5(0x23b) + _0x1e522d);
|
|
493
|
+
const _0x49a37f = _0x1d1ae8[_0x4b27f5(0x111)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
494
|
+
if (_0xa3b329['size'] > _0x49a37f)
|
|
495
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0xa3b329[_0x4b27f5(_0xb6f818._0x512eae)]);
|
|
496
|
+
const _0x46c22a = await readFile(_0x1e522d), _0x52c4c7 = _0x3760ad[_0x4b27f5(_0xb6f818._0x3b0b21)](_0x1e522d);
|
|
513
497
|
return {
|
|
514
|
-
'contentBase64':
|
|
515
|
-
'contentType': guessContentType(
|
|
516
|
-
'filename':
|
|
517
|
-
'sizeBytes':
|
|
498
|
+
'contentBase64': _0x46c22a[_0x4b27f5(_0xb6f818._0xf8271e)](_0x4b27f5(_0xb6f818._0x59807e)),
|
|
499
|
+
'contentType': guessContentType(_0x52c4c7),
|
|
500
|
+
'filename': _0x52c4c7,
|
|
501
|
+
'sizeBytes': _0xa3b329[_0x4b27f5(0x19f)]
|
|
518
502
|
};
|
|
519
503
|
}
|
|
520
|
-
function createAttachmentCache(
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
_0x167d44: 0x234,
|
|
528
|
-
_0x572410: 0x24c,
|
|
529
|
-
_0x4a1951: 0x332
|
|
530
|
-
}, _0x538711 = { _0x2199a0: 0x1f2 }, _0x3658bf = _0x54fce, _0x1fcc7e = _0xab2aef[_0x3658bf(_0x15536e._0x162794)] ?? _0x54f963[_0x3658bf(_0x15536e._0x3502be)](homedir(), _0x3658bf(_0x15536e._0x55086e), 'attachments');
|
|
504
|
+
function createAttachmentCache(_0x138341 = {}) {
|
|
505
|
+
const _0x4e21f2 = { _0x150072: 0x115 }, _0x58e567 = {
|
|
506
|
+
_0x16b7ea: 0x1c1,
|
|
507
|
+
_0x59e880: 0x1b4,
|
|
508
|
+
_0x3bd742: 0x17d,
|
|
509
|
+
_0x54051e: 0x216
|
|
510
|
+
}, _0x2e92f6 = { _0x2b2578: 0x11d }, _0x2faa68 = _0x1abe67, _0x477a5b = _0x138341[_0x2faa68(_0x4e21f2._0x150072)] ?? _0x3760ad['join'](homedir(), _0x2faa68(0x27d), 'attachments');
|
|
531
511
|
return {
|
|
532
|
-
'cacheDir':
|
|
533
|
-
async 'findCachedPath'(
|
|
534
|
-
const
|
|
535
|
-
await mkdir(
|
|
536
|
-
const
|
|
537
|
-
return
|
|
512
|
+
'cacheDir': _0x477a5b,
|
|
513
|
+
async 'findCachedPath'(_0x416b53) {
|
|
514
|
+
const _0x421c3a = _0x2faa68;
|
|
515
|
+
await mkdir(_0x477a5b, { 'recursive': !![] });
|
|
516
|
+
const _0x2d7efa = await readdir(_0x477a5b), _0x2fedef = _0x2d7efa[_0x421c3a(0x232)](_0x489193 => _0x489193['startsWith'](_0x416b53 + '-') || _0x489193[_0x421c3a(0x1b0)](_0x416b53));
|
|
517
|
+
return _0x2fedef ? _0x3760ad[_0x421c3a(_0x2e92f6._0x2b2578)](_0x477a5b, _0x2fedef) : null;
|
|
538
518
|
},
|
|
539
|
-
async 'save'(
|
|
540
|
-
const
|
|
541
|
-
await mkdir(
|
|
542
|
-
const
|
|
543
|
-
return await writeFile(
|
|
519
|
+
async 'save'(_0x25db75) {
|
|
520
|
+
const _0x2552e6 = _0x2faa68;
|
|
521
|
+
await mkdir(_0x477a5b, { 'recursive': !![] });
|
|
522
|
+
const _0x230461 = _0x25db75[_0x2552e6(_0x58e567._0x16b7ea)]?.[_0x2552e6(_0x58e567._0x59e880)]() ? safeFilename(_0x25db75['originalFilename']) : '' + _0x25db75[_0x2552e6(_0x58e567._0x3bd742)] + extensionFor(_0x25db75['contentType']), _0x427db5 = _0x3760ad['join'](_0x477a5b, _0x25db75['attachmentId'] + '-' + _0x230461);
|
|
523
|
+
return await writeFile(_0x427db5, _0x25db75[_0x2552e6(_0x58e567._0x54051e)]), _0x427db5;
|
|
544
524
|
}
|
|
545
525
|
};
|
|
546
526
|
}
|
|
@@ -548,1828 +528,1812 @@ import {
|
|
|
548
528
|
createHash,
|
|
549
529
|
randomUUID
|
|
550
530
|
} from 'node:crypto';
|
|
551
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
552
|
-
function ensureSegment(
|
|
553
|
-
const
|
|
554
|
-
if (!
|
|
531
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x1abe67(0x105);
|
|
532
|
+
function ensureSegment(_0x2a493e) {
|
|
533
|
+
const _0x29bf2a = _0x1abe67, _0x3faea9 = _0x2a493e[_0x29bf2a(0x1b4)]();
|
|
534
|
+
if (!_0x3faea9 || _0x3faea9[_0x29bf2a(0x1b1)](':'))
|
|
555
535
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
556
|
-
return
|
|
536
|
+
return _0x3faea9;
|
|
557
537
|
}
|
|
558
|
-
function parseThreadParts(
|
|
559
|
-
const
|
|
560
|
-
if (
|
|
538
|
+
function parseThreadParts(_0x591a4c) {
|
|
539
|
+
const _0x4fab04 = _0x1abe67, _0x4a43da = _0x591a4c[_0x4fab04(0x1d9)](':');
|
|
540
|
+
if (_0x4a43da['length'] < 0x1 || _0x4a43da[_0x4fab04(0x137)] > 0x2)
|
|
561
541
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
562
542
|
return {
|
|
563
|
-
'channelName': ensureSegment(
|
|
564
|
-
'threadShortId':
|
|
543
|
+
'channelName': ensureSegment(_0x4a43da[0x0] ?? ''),
|
|
544
|
+
'threadShortId': _0x4a43da[0x1] ? ensureSegment(_0x4a43da[0x1]) : null
|
|
565
545
|
};
|
|
566
546
|
}
|
|
567
|
-
function parseTarget(
|
|
568
|
-
const
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
547
|
+
function parseTarget(_0x61d4bf) {
|
|
548
|
+
const _0x205bb0 = {
|
|
549
|
+
_0x3340ce: 0x1ea,
|
|
550
|
+
_0x3283cf: 0x17b,
|
|
551
|
+
_0x598fee: 0x1eb,
|
|
552
|
+
_0x3224d5: 0x1b0,
|
|
553
|
+
_0x47533c: 0x280,
|
|
554
|
+
_0x29b574: 0x1ea,
|
|
555
|
+
_0x3113bb: 0x11c,
|
|
556
|
+
_0x387b2d: 0x1b0,
|
|
557
|
+
_0x42ecce: 0x18a,
|
|
558
|
+
_0xba65f3: 0x18a
|
|
559
|
+
}, _0x130804 = _0x1abe67, _0x11f694 = _0x61d4bf[_0x130804(0x1b4)]();
|
|
560
|
+
if (!_0x11f694)
|
|
577
561
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
578
|
-
if (
|
|
579
|
-
const
|
|
580
|
-
if (!
|
|
562
|
+
if (_0x11f694[_0x130804(0x1b0)]('#')) {
|
|
563
|
+
const _0x5ef18f = parseThreadParts(_0x11f694[_0x130804(_0x205bb0._0x3340ce)](0x1)), _0x3aac27 = '#' + _0x5ef18f['channelName'];
|
|
564
|
+
if (!_0x5ef18f[_0x130804(0x18a)])
|
|
581
565
|
return {
|
|
582
|
-
'channelName':
|
|
583
|
-
'channelTarget':
|
|
584
|
-
'kind':
|
|
585
|
-
'target':
|
|
566
|
+
'channelName': _0x5ef18f['channelName'],
|
|
567
|
+
'channelTarget': _0x3aac27,
|
|
568
|
+
'kind': _0x130804(_0x205bb0._0x3283cf),
|
|
569
|
+
'target': _0x3aac27
|
|
586
570
|
};
|
|
587
571
|
return {
|
|
588
|
-
'channelName':
|
|
589
|
-
'channelTarget':
|
|
590
|
-
'kind':
|
|
591
|
-
'target':
|
|
592
|
-
'threadShortId':
|
|
572
|
+
'channelName': _0x5ef18f['channelName'],
|
|
573
|
+
'channelTarget': _0x3aac27,
|
|
574
|
+
'kind': _0x130804(_0x205bb0._0x598fee),
|
|
575
|
+
'target': _0x3aac27 + ':' + _0x5ef18f[_0x130804(0x18a)],
|
|
576
|
+
'threadShortId': _0x5ef18f[_0x130804(0x18a)]
|
|
593
577
|
};
|
|
594
578
|
}
|
|
595
|
-
if (
|
|
596
|
-
const
|
|
597
|
-
if (!
|
|
579
|
+
if (_0x11f694[_0x130804(_0x205bb0._0x3224d5)](_0x130804(_0x205bb0._0x47533c))) {
|
|
580
|
+
const _0x3bcdf7 = parseThreadParts(_0x11f694[_0x130804(_0x205bb0._0x29b574)](0x3));
|
|
581
|
+
if (!_0x3bcdf7[_0x130804(_0x205bb0._0x3113bb)][_0x130804(_0x205bb0._0x387b2d)](_0x130804(0x252)))
|
|
598
582
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
599
|
-
const
|
|
600
|
-
if (!
|
|
583
|
+
const _0x2e9a80 = _0x130804(_0x205bb0._0x47533c) + _0x3bcdf7[_0x130804(0x11c)];
|
|
584
|
+
if (!_0x3bcdf7['threadShortId'])
|
|
601
585
|
return {
|
|
602
|
-
'channelName':
|
|
603
|
-
'channelTarget':
|
|
604
|
-
'kind':
|
|
605
|
-
'target':
|
|
586
|
+
'channelName': _0x3bcdf7['channelName'],
|
|
587
|
+
'channelTarget': _0x2e9a80,
|
|
588
|
+
'kind': 'channel',
|
|
589
|
+
'target': _0x2e9a80
|
|
606
590
|
};
|
|
607
591
|
return {
|
|
608
|
-
'channelName':
|
|
609
|
-
'channelTarget':
|
|
610
|
-
'kind':
|
|
611
|
-
'target':
|
|
612
|
-
'threadShortId':
|
|
592
|
+
'channelName': _0x3bcdf7[_0x130804(0x11c)],
|
|
593
|
+
'channelTarget': _0x2e9a80,
|
|
594
|
+
'kind': _0x130804(_0x205bb0._0x598fee),
|
|
595
|
+
'target': _0x2e9a80 + ':' + _0x3bcdf7[_0x130804(_0x205bb0._0x42ecce)],
|
|
596
|
+
'threadShortId': _0x3bcdf7[_0x130804(_0x205bb0._0xba65f3)]
|
|
613
597
|
};
|
|
614
598
|
}
|
|
615
599
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
616
600
|
}
|
|
617
|
-
function asErrorMessage(
|
|
618
|
-
const
|
|
619
|
-
if (typeof
|
|
620
|
-
return
|
|
621
|
-
return
|
|
601
|
+
function asErrorMessage(_0x35cbd2, _0x323ee7) {
|
|
602
|
+
const _0x27939a = _0x1abe67;
|
|
603
|
+
if (typeof _0x35cbd2 === 'string' && _0x35cbd2[_0x27939a(0x1b4)]())
|
|
604
|
+
return _0x35cbd2;
|
|
605
|
+
return _0x323ee7;
|
|
622
606
|
}
|
|
623
|
-
function asRecord(
|
|
624
|
-
const
|
|
625
|
-
return typeof
|
|
607
|
+
function asRecord(_0x152b28) {
|
|
608
|
+
const _0x3fc5c3 = { _0x57bf85: 0x159 }, _0x4c8188 = _0x1abe67;
|
|
609
|
+
return typeof _0x152b28 === _0x4c8188(_0x3fc5c3._0x57bf85) && _0x152b28 !== null ? _0x152b28 : {};
|
|
626
610
|
}
|
|
627
|
-
function stableStringify(
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
},
|
|
634
|
-
if (
|
|
635
|
-
return JSON[
|
|
636
|
-
if (Array[
|
|
637
|
-
return '[' +
|
|
638
|
-
const
|
|
639
|
-
return '{' +
|
|
611
|
+
function stableStringify(_0x4b1a33) {
|
|
612
|
+
const _0x4ac5d2 = {
|
|
613
|
+
_0x2a05ab: 0x1ec,
|
|
614
|
+
_0x41ee6e: 0x27c,
|
|
615
|
+
_0x39ffdf: 0x26e,
|
|
616
|
+
_0x58dde1: 0x11d
|
|
617
|
+
}, _0x1db93b = _0x1abe67;
|
|
618
|
+
if (_0x4b1a33 === null || typeof _0x4b1a33 !== _0x1db93b(0x159))
|
|
619
|
+
return JSON[_0x1db93b(_0x4ac5d2._0x2a05ab)](_0x4b1a33);
|
|
620
|
+
if (Array['isArray'](_0x4b1a33))
|
|
621
|
+
return '[' + _0x4b1a33['map'](_0x5917c0 => stableStringify(_0x5917c0))[_0x1db93b(0x11d)](',') + ']';
|
|
622
|
+
const _0x4a69e4 = Object['entries'](_0x4b1a33)[_0x1db93b(_0x4ac5d2._0x41ee6e)](([, _0x44a519]) => _0x44a519 !== void 0x0)[_0x1db93b(0x107)](([_0x9f9d82], [_0x3f5fac]) => _0x9f9d82[_0x1db93b(0x266)](_0x3f5fac))[_0x1db93b(_0x4ac5d2._0x39ffdf)](([_0x45a85f, _0x373ac0]) => JSON[_0x1db93b(0x1ec)](_0x45a85f) + ':' + stableStringify(_0x373ac0));
|
|
623
|
+
return '{' + _0x4a69e4[_0x1db93b(_0x4ac5d2._0x58dde1)](',') + '}';
|
|
640
624
|
}
|
|
641
|
-
function createHeaders(
|
|
625
|
+
function createHeaders(_0xd7eec0) {
|
|
626
|
+
const _0x356096 = _0x1abe67;
|
|
642
627
|
return {
|
|
643
|
-
'Content-Type':
|
|
644
|
-
'x-daemon-api-key':
|
|
628
|
+
'Content-Type': _0x356096(0x101),
|
|
629
|
+
'x-daemon-api-key': _0xd7eec0
|
|
645
630
|
};
|
|
646
631
|
}
|
|
647
|
-
function toHttpBaseUrl(
|
|
648
|
-
const
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
_0x3259f7[_0x6763f8(_0x494d41._0x5b5757)] = _0x6763f8(_0x494d41._0x24b495);
|
|
632
|
+
function toHttpBaseUrl(_0x27d675) {
|
|
633
|
+
const _0x54cae7 = {
|
|
634
|
+
_0x3e444b: 0x1fa,
|
|
635
|
+
_0x4537dd: 0x230,
|
|
636
|
+
_0x3a1578: 0x25a,
|
|
637
|
+
_0x48da74: 0x261,
|
|
638
|
+
_0x405da1: 0x171
|
|
639
|
+
}, _0x23740a = _0x1abe67, _0x2e43d3 = new URL(_0x27d675);
|
|
640
|
+
if (_0x2e43d3[_0x23740a(_0x54cae7._0x3e444b)] === _0x23740a(0x13b))
|
|
641
|
+
_0x2e43d3[_0x23740a(0x1fa)] = _0x23740a(0x1fd);
|
|
658
642
|
else
|
|
659
|
-
|
|
660
|
-
return
|
|
643
|
+
_0x2e43d3['protocol'] === _0x23740a(_0x54cae7._0x4537dd) && (_0x2e43d3[_0x23740a(0x1fa)] = _0x23740a(_0x54cae7._0x3a1578));
|
|
644
|
+
return _0x2e43d3[_0x23740a(_0x54cae7._0x48da74)]()[_0x23740a(_0x54cae7._0x405da1)](/\/$/, '');
|
|
661
645
|
}
|
|
662
|
-
function isMentionBoundary(
|
|
663
|
-
const
|
|
664
|
-
return !
|
|
646
|
+
function isMentionBoundary(_0x492bf7) {
|
|
647
|
+
const _0x1b8375 = _0x1abe67;
|
|
648
|
+
return !_0x492bf7 || /\s|[([{'",。!?、:;]/[_0x1b8375(0x158)](_0x492bf7);
|
|
665
649
|
}
|
|
666
|
-
function isMentionTerminal(
|
|
667
|
-
const
|
|
668
|
-
return !
|
|
650
|
+
function isMentionTerminal(_0x3f27c0) {
|
|
651
|
+
const _0x24652d = { _0x253af8: 0x158 }, _0x3c6b2f = _0x1abe67;
|
|
652
|
+
return !_0x3f27c0 || /\s|[)\]}'",。!?、:;,.!?]/[_0x3c6b2f(_0x24652d._0x253af8)](_0x3f27c0);
|
|
669
653
|
}
|
|
670
|
-
function buildMatchableEntries(
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
654
|
+
function buildMatchableEntries(_0x1a020a) {
|
|
655
|
+
const _0x46b527 = {
|
|
656
|
+
_0x45763d: 0x148,
|
|
657
|
+
_0xe210f1: 0x201,
|
|
658
|
+
_0x5b056d: 0x201,
|
|
659
|
+
_0x36cc9b: 0x1c8
|
|
660
|
+
}, _0x2d5f18 = _0x1abe67, _0x2077cc = [];
|
|
661
|
+
for (const _0x271af2 of [
|
|
662
|
+
..._0x1a020a[_0x2d5f18(_0x46b527._0x45763d)],
|
|
663
|
+
..._0x1a020a['humans']
|
|
678
664
|
]) {
|
|
679
|
-
|
|
680
|
-
'matchName':
|
|
681
|
-
'matchNameLower':
|
|
682
|
-
'participantId':
|
|
683
|
-
}),
|
|
684
|
-
'matchName':
|
|
685
|
-
'matchNameLower':
|
|
686
|
-
'participantId':
|
|
665
|
+
_0x2077cc[_0x2d5f18(_0x46b527._0xe210f1)]({
|
|
666
|
+
'matchName': _0x271af2['name'],
|
|
667
|
+
'matchNameLower': _0x271af2[_0x2d5f18(0x184)][_0x2d5f18(0x1c8)](),
|
|
668
|
+
'participantId': _0x271af2['id']
|
|
669
|
+
}), _0x271af2['id'] !== _0x271af2['name'] && _0x2077cc[_0x2d5f18(_0x46b527._0x5b056d)]({
|
|
670
|
+
'matchName': _0x271af2['id'],
|
|
671
|
+
'matchNameLower': _0x271af2['id'][_0x2d5f18(_0x46b527._0x36cc9b)](),
|
|
672
|
+
'participantId': _0x271af2['id']
|
|
687
673
|
});
|
|
688
674
|
}
|
|
689
|
-
return
|
|
675
|
+
return _0x2077cc;
|
|
690
676
|
}
|
|
691
|
-
function extractMentionedParticipantIds(
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
677
|
+
function extractMentionedParticipantIds(_0x925ac9, _0x1531a1) {
|
|
678
|
+
const _0x3ae551 = {
|
|
679
|
+
_0x2d8b67: 0x137,
|
|
680
|
+
_0x2a8b71: 0x1d3,
|
|
681
|
+
_0x21048e: 0x1d3,
|
|
682
|
+
_0xec6c5d: 0x201
|
|
683
|
+
}, _0x503113 = _0x1abe67, _0x8d161b = buildMatchableEntries(_0x1531a1)['sort']((_0x2a7f2d, _0x32885d) => _0x32885d[_0x503113(0x227)]['length'] - _0x2a7f2d['matchName'][_0x503113(0x137)]), _0xb36ddf = [], _0x3d4708 = new Set();
|
|
684
|
+
for (let _0x3c1885 = 0x0; _0x3c1885 < _0x925ac9[_0x503113(_0x3ae551._0x2d8b67)]; _0x3c1885 += 0x1) {
|
|
685
|
+
if (_0x925ac9[_0x3c1885] !== '@' || !isMentionBoundary(_0x925ac9[_0x3c1885 - 0x1]))
|
|
699
686
|
continue;
|
|
700
|
-
const
|
|
701
|
-
const
|
|
702
|
-
if (!
|
|
687
|
+
const _0x57b2cc = _0x925ac9[_0x503113(0x1ea)](_0x3c1885 + 0x1), _0x245a8a = _0x57b2cc[_0x503113(0x1c8)](), _0x353e41 = _0x8d161b[_0x503113(0x232)](_0x427b1c => {
|
|
688
|
+
const _0x1190eb = _0x503113;
|
|
689
|
+
if (!_0x245a8a['startsWith'](_0x427b1c['matchNameLower']))
|
|
703
690
|
return ![];
|
|
704
|
-
return isMentionTerminal(
|
|
691
|
+
return isMentionTerminal(_0x57b2cc[_0x427b1c[_0x1190eb(0x227)][_0x1190eb(0x137)]]);
|
|
705
692
|
});
|
|
706
|
-
if (!
|
|
693
|
+
if (!_0x353e41 || _0x3d4708[_0x503113(0x118)](_0x353e41[_0x503113(_0x3ae551._0x2a8b71)]))
|
|
707
694
|
continue;
|
|
708
|
-
|
|
695
|
+
_0x3d4708['add'](_0x353e41[_0x503113(_0x3ae551._0x21048e)]), _0xb36ddf[_0x503113(_0x3ae551._0xec6c5d)](_0x353e41[_0x503113(0x1d3)]), _0x3c1885 += _0x353e41['matchName']['length'];
|
|
709
696
|
}
|
|
710
|
-
return
|
|
697
|
+
return _0xb36ddf;
|
|
711
698
|
}
|
|
712
699
|
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
713
|
-
function anySignal(...
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
700
|
+
function anySignal(..._0x21427a) {
|
|
701
|
+
const _0x3c3a99 = {
|
|
702
|
+
_0x28849d: 0x271,
|
|
703
|
+
_0x4ec5e8: 0x27a,
|
|
704
|
+
_0x29d19d: 0x1bb,
|
|
705
|
+
_0x5bce46: 0x271
|
|
706
|
+
}, _0x30a664 = _0x1abe67, _0x5f0cf3 = new AbortController();
|
|
707
|
+
for (const _0x4f8c84 of _0x21427a) {
|
|
708
|
+
if (_0x4f8c84['aborted'])
|
|
709
|
+
return _0x5f0cf3[_0x30a664(_0x3c3a99._0x28849d)](_0x4f8c84[_0x30a664(_0x3c3a99._0x4ec5e8)]), _0x5f0cf3[_0x30a664(0x138)];
|
|
710
|
+
_0x4f8c84[_0x30a664(_0x3c3a99._0x29d19d)](_0x30a664(_0x3c3a99._0x5bce46), () => _0x5f0cf3[_0x30a664(0x271)](_0x4f8c84[_0x30a664(0x27a)]), {
|
|
722
711
|
'once': !![],
|
|
723
|
-
'signal':
|
|
712
|
+
'signal': _0x5f0cf3[_0x30a664(0x138)]
|
|
724
713
|
});
|
|
725
714
|
}
|
|
726
|
-
return
|
|
715
|
+
return _0x5f0cf3[_0x30a664(0x138)];
|
|
727
716
|
}
|
|
728
|
-
function createInternalAgentClient(
|
|
729
|
-
const
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
},
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
},
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
},
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
function _0x4e6cb1(_0x2c32b8) {
|
|
892
|
-
const _0x212f41 = _0x3c8627, _0x21a1fe = _0x2c32b8[_0x212f41(_0x425407._0x1385f7)][_0x212f41(_0x425407._0xda7a0b)][_0x212f41(0x2ef)](_0x212f41(0x2b8)) ?? _0x212f41(0x2df), _0x2c8775 = _0x2c32b8[_0x212f41(0x2fe)][_0x212f41(_0x425407._0x31c818)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
893
|
-
return _0x212f41(0x241) + _0x2c32b8[_0x212f41(_0x425407._0x562251)] + _0x212f41(_0x425407._0x3670e6) + _0x2c32b8[_0x212f41(0x2f4)]['status'] + _0x212f41(0x286) + _0x21a1fe + ',\x20preview=' + _0x2c8775 + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
717
|
+
function createInternalAgentClient(_0x59b596) {
|
|
718
|
+
const _0x5f3176 = {
|
|
719
|
+
_0x2506e9: 0x1a4,
|
|
720
|
+
_0x41117d: 0x13d,
|
|
721
|
+
_0x1dc0f6: 0x1cd,
|
|
722
|
+
_0x35929a: 0x191,
|
|
723
|
+
_0x216a25: 0x1b4,
|
|
724
|
+
_0x31b489: 0x1b8,
|
|
725
|
+
_0x3f8c61: 0x1b4,
|
|
726
|
+
_0x46b698: 0x1f9
|
|
727
|
+
}, _0xce0d79 = {
|
|
728
|
+
_0xdc271c: 0x23d,
|
|
729
|
+
_0x2b857c: 0x136,
|
|
730
|
+
_0x14e1c5: 0x1b6,
|
|
731
|
+
_0x29b723: 0x283,
|
|
732
|
+
_0x3f60fa: 0x216,
|
|
733
|
+
_0x4356fa: 0x137,
|
|
734
|
+
_0x95216: 0x1d7,
|
|
735
|
+
_0x2c9ee9: 0x26e,
|
|
736
|
+
_0x2f6a0c: 0x14f,
|
|
737
|
+
_0x1e6c15: 0x20f,
|
|
738
|
+
_0xd98491: 0x20f,
|
|
739
|
+
_0x136dae: 0x157,
|
|
740
|
+
_0x3fadc2: 0x20f,
|
|
741
|
+
_0x578596: 0x1c6,
|
|
742
|
+
_0x37c322: 0x1c6,
|
|
743
|
+
_0x476395: 0x1c6,
|
|
744
|
+
_0xa19156: 0x20d,
|
|
745
|
+
_0x1e18ef: 0x280,
|
|
746
|
+
_0x2e00ca: 0x14f,
|
|
747
|
+
_0x52f465: 0x160,
|
|
748
|
+
_0x423463: 0x1e6,
|
|
749
|
+
_0x118465: 0x1ff,
|
|
750
|
+
_0x5394bf: 0x199,
|
|
751
|
+
_0x5c1afb: 0x1a7,
|
|
752
|
+
_0x5ce9a7: 0x188,
|
|
753
|
+
_0x3eeb0d: 0x12b
|
|
754
|
+
}, _0xd9ab1d = { _0x5b4ad8: 0x212 }, _0x199c9a = {
|
|
755
|
+
_0x524603: 0x1b9,
|
|
756
|
+
_0x1ff5f7: 0x283,
|
|
757
|
+
_0x3de948: 0x218,
|
|
758
|
+
_0x170054: 0x21c,
|
|
759
|
+
_0x47e45c: 0x1aa,
|
|
760
|
+
_0x38787d: 0x1c1
|
|
761
|
+
}, _0x2735f0 = {
|
|
762
|
+
_0x4e1c6f: 0x17b,
|
|
763
|
+
_0xc8b546: 0x212,
|
|
764
|
+
_0x5e079f: 0x13e,
|
|
765
|
+
_0x59ddb4: 0x25b,
|
|
766
|
+
_0x2b65b0: 0x216
|
|
767
|
+
}, _0x404b1d = {
|
|
768
|
+
_0x51dadf: 0x220,
|
|
769
|
+
_0x5df96f: 0x116,
|
|
770
|
+
_0x40ea20: 0x24e
|
|
771
|
+
}, _0x34ce28 = {
|
|
772
|
+
_0x1ef4cc: 0x136,
|
|
773
|
+
_0x2f1901: 0x1b6,
|
|
774
|
+
_0x22552e: 0x24e
|
|
775
|
+
}, _0x34df5f = { _0x4fd07c: 0x136 }, _0x2b0d41 = {
|
|
776
|
+
_0x277fc4: 0x136,
|
|
777
|
+
_0x3ef60f: 0x1b6
|
|
778
|
+
}, _0x4fc0fd = {
|
|
779
|
+
_0x3af536: 0x244,
|
|
780
|
+
_0x59e7ad: 0x136,
|
|
781
|
+
_0x408039: 0x1f4
|
|
782
|
+
}, _0x21c3c9 = { _0x41e9db: 0x1b5 }, _0x39fd6e = {
|
|
783
|
+
_0x229d19: 0x1b5,
|
|
784
|
+
_0x3ed958: 0x1ec,
|
|
785
|
+
_0x10e0ea: 0x24e,
|
|
786
|
+
_0x3f5254: 0x216
|
|
787
|
+
}, _0x38fa15 = {
|
|
788
|
+
_0x469cff: 0x283,
|
|
789
|
+
_0x20bedf: 0x216
|
|
790
|
+
}, _0x586c03 = {
|
|
791
|
+
_0x17e495: 0x212,
|
|
792
|
+
_0x433e8d: 0x199,
|
|
793
|
+
_0x518f91: 0x1b1,
|
|
794
|
+
_0x53d55e: 0x21e,
|
|
795
|
+
_0x28040c: 0x1ec,
|
|
796
|
+
_0x34992b: 0x26f,
|
|
797
|
+
_0xd21091: 0x22c
|
|
798
|
+
}, _0x550d77 = {
|
|
799
|
+
_0x302b71: 0x1b7,
|
|
800
|
+
_0x30e6e4: 0x244,
|
|
801
|
+
_0x4ca1fc: 0x244,
|
|
802
|
+
_0x10dd36: 0x26f,
|
|
803
|
+
_0x4815bf: 0x18b,
|
|
804
|
+
_0x36b015: 0x244,
|
|
805
|
+
_0x5a5f47: 0x18b,
|
|
806
|
+
_0x32f8e5: 0x224,
|
|
807
|
+
_0x1954e0: 0x136,
|
|
808
|
+
_0x5c88ae: 0x283,
|
|
809
|
+
_0x38aaf3: 0x26e,
|
|
810
|
+
_0x481710: 0x167
|
|
811
|
+
}, _0x4beab6 = {
|
|
812
|
+
_0x14ef8c: 0x1d3,
|
|
813
|
+
_0x258327: 0x150
|
|
814
|
+
}, _0x38ac10 = {
|
|
815
|
+
_0x53f8ee: 0x12b,
|
|
816
|
+
_0x7641de: 0x1eb,
|
|
817
|
+
_0x682ef7: 0x12c,
|
|
818
|
+
_0x33d7d0: 0x1c6,
|
|
819
|
+
_0x2aeabd: 0x18a,
|
|
820
|
+
_0x4f817a: 0x157,
|
|
821
|
+
_0x15f2a6: 0x18a,
|
|
822
|
+
_0xc5a10f: 0x18a
|
|
823
|
+
}, _0x3f148e = {
|
|
824
|
+
_0x51eb60: 0x12c,
|
|
825
|
+
_0x52ad26: 0x157,
|
|
826
|
+
_0x24511c: 0x1ea
|
|
827
|
+
}, _0x52485d = { _0x33a352: 0x25f }, _0x504f21 = {
|
|
828
|
+
_0x56d00b: 0x124,
|
|
829
|
+
_0x5362fb: 0x1f2
|
|
830
|
+
}, _0x2bbd41 = {
|
|
831
|
+
_0x4f0507: 0x1b6,
|
|
832
|
+
_0x1c05cc: 0x1ec,
|
|
833
|
+
_0x3e63d2: 0x212,
|
|
834
|
+
_0x2960c7: 0x24e,
|
|
835
|
+
_0x2f03fb: 0x26f,
|
|
836
|
+
_0x3db312: 0x12c,
|
|
837
|
+
_0x2572e5: 0x10b,
|
|
838
|
+
_0x55e02c: 0x216,
|
|
839
|
+
_0x2061f1: 0x1ca
|
|
840
|
+
}, _0x298481 = {
|
|
841
|
+
_0x380bca: 0x108,
|
|
842
|
+
_0x9968c9: 0x101
|
|
843
|
+
}, _0x386d1e = {
|
|
844
|
+
_0xbdce03: 0x22b,
|
|
845
|
+
_0x348cf9: 0x1ab
|
|
846
|
+
}, _0x49b3db = {
|
|
847
|
+
_0x438a0e: 0x138,
|
|
848
|
+
_0x376868: 0x218,
|
|
849
|
+
_0x1b7b79: 0x195
|
|
850
|
+
}, _0x1c206c = {
|
|
851
|
+
_0x3cc4c9: 0x138,
|
|
852
|
+
_0x276c9d: 0x218,
|
|
853
|
+
_0x2e7520: 0x195
|
|
854
|
+
}, _0x2cf94a = {
|
|
855
|
+
_0x96b80f: 0x207,
|
|
856
|
+
_0x4eb903: 0x1b4,
|
|
857
|
+
_0x4a07bc: 0x245,
|
|
858
|
+
_0x1586e9: 0x152,
|
|
859
|
+
_0x236171: 0x274,
|
|
860
|
+
_0x105cb7: 0x1bf,
|
|
861
|
+
_0x292f8c: 0x1aa,
|
|
862
|
+
_0x1f67a8: 0x1c2
|
|
863
|
+
}, _0x45670d = {
|
|
864
|
+
_0x35704b: 0x134,
|
|
865
|
+
_0x34e117: 0x261
|
|
866
|
+
}, _0x8d384 = {
|
|
867
|
+
_0x115d13: 0x21c,
|
|
868
|
+
_0x2dbdbb: 0x1aa,
|
|
869
|
+
_0x164d50: 0x1b4,
|
|
870
|
+
_0x1e4ae7: 0x109,
|
|
871
|
+
_0x4d5452: 0x1dd,
|
|
872
|
+
_0x3c23b2: 0x121
|
|
873
|
+
}, _0x249e77 = _0x1abe67, _0x42d681 = _0x59b596[_0x249e77(0x18d)] ?? fetch, _0x51ff2b = _0x59b596[_0x249e77(_0x5f3176._0x2506e9)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x38225d = typeof _0x59b596[_0x249e77(_0x5f3176._0x41117d)] === _0x249e77(0x204) && _0x59b596[_0x249e77(0x13d)] > 0x0 ? _0x59b596['initialLastSeenSeq'] : 0x0, _0x2e83c1 = _0x59b596[_0x249e77(0x192)]?.['trim']() || void 0x0, _0x36eef5 = _0x59b596[_0x249e77(0x173)]?.[_0x249e77(0x1b4)]() || void 0x0, _0x527840 = _0x59b596[_0x249e77(_0x5f3176._0x1dc0f6)] === !![], _0x440a99 = _0x59b596[_0x249e77(_0x5f3176._0x35929a)]?.[_0x249e77(_0x5f3176._0x216a25)]() || void 0x0, _0x1475d4 = _0x59b596[_0x249e77(_0x5f3176._0x31b489)]?.[_0x249e77(_0x5f3176._0x3f8c61)]() || void 0x0, _0x4431f0 = createHeaders(_0x59b596[_0x249e77(_0x5f3176._0x46b698)]), _0x28390 = toHttpBaseUrl(_0x59b596[_0x249e77(0x146)]);
|
|
874
|
+
let _0x2197d9 = null;
|
|
875
|
+
const _0x32ad80 = new Map();
|
|
876
|
+
let _0x264d84 = _0x38225d, _0x3823d0 = _0x38225d;
|
|
877
|
+
function _0x1e361d(_0x2ec65b) {
|
|
878
|
+
const _0x7b5a47 = _0x249e77, _0x1fba5a = _0x2ec65b[_0x7b5a47(0x109)][_0x7b5a47(_0x8d384._0x115d13)][_0x7b5a47(_0x8d384._0x2dbdbb)](_0x7b5a47(0x24f)) ?? 'unknown', _0x37446b = _0x2ec65b[_0x7b5a47(0x1a8)][_0x7b5a47(_0x8d384._0x164d50)]()[_0x7b5a47(0x171)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x7b5a47(0x144);
|
|
879
|
+
return _0x7b5a47(0x1a3) + _0x2ec65b[_0x7b5a47(0x13a)] + _0x7b5a47(0x197) + _0x2ec65b[_0x7b5a47(_0x8d384._0x1e4ae7)][_0x7b5a47(0x195)] + _0x7b5a47(_0x8d384._0x4d5452) + _0x1fba5a + _0x7b5a47(_0x8d384._0x3c23b2) + _0x37446b + _0x7b5a47(0x16c);
|
|
894
880
|
}
|
|
895
|
-
async function
|
|
896
|
-
const
|
|
897
|
-
if (!
|
|
881
|
+
async function _0x4c65de(_0x1053b4, _0x433df9) {
|
|
882
|
+
const _0x183e94 = _0x249e77, _0x236554 = Buffer[_0x183e94(_0x45670d._0x35704b)](await _0x433df9['arrayBuffer']())[_0x183e94(_0x45670d._0x34e117)]('utf8');
|
|
883
|
+
if (!_0x236554[_0x183e94(0x1b4)]())
|
|
898
884
|
return {};
|
|
899
885
|
try {
|
|
900
|
-
return JSON[
|
|
886
|
+
return JSON[_0x183e94(0x259)](_0x236554);
|
|
901
887
|
} catch {
|
|
902
|
-
throw new Error(
|
|
903
|
-
'bodyText':
|
|
904
|
-
'requestUrl':
|
|
905
|
-
'response':
|
|
888
|
+
throw new Error(_0x1e361d({
|
|
889
|
+
'bodyText': _0x236554,
|
|
890
|
+
'requestUrl': _0x1053b4,
|
|
891
|
+
'response': _0x433df9
|
|
906
892
|
}));
|
|
907
893
|
}
|
|
908
894
|
}
|
|
909
|
-
function
|
|
910
|
-
const
|
|
911
|
-
if (
|
|
912
|
-
return
|
|
913
|
-
const
|
|
914
|
-
for (const [
|
|
915
|
-
|
|
895
|
+
function _0x1073ad(_0x3e1721, _0x354a12) {
|
|
896
|
+
const _0xdedd94 = _0x249e77, _0x582240 = typeof _0x354a12[_0xdedd94(0x207)] === _0xdedd94(0x20f) ? _0x354a12[_0xdedd94(_0x2cf94a._0x96b80f)][_0xdedd94(_0x2cf94a._0x4eb903)]() : '';
|
|
897
|
+
if (_0x582240)
|
|
898
|
+
return _0x582240;
|
|
899
|
+
const _0xc8eb2 = Date[_0xdedd94(_0x2cf94a._0x4a07bc)]();
|
|
900
|
+
for (const [_0x5908e4, _0x15597e] of _0x32ad80) {
|
|
901
|
+
_0x15597e[_0xdedd94(_0x2cf94a._0x1586e9)] <= _0xc8eb2 && _0x32ad80['delete'](_0x5908e4);
|
|
916
902
|
}
|
|
917
|
-
const
|
|
918
|
-
...
|
|
903
|
+
const _0x346c1f = {
|
|
904
|
+
..._0x354a12,
|
|
919
905
|
'idempotency_key': void 0x0
|
|
920
|
-
},
|
|
921
|
-
if (
|
|
922
|
-
return
|
|
923
|
-
const
|
|
924
|
-
return
|
|
925
|
-
'expiresAt':
|
|
926
|
-
'value':
|
|
927
|
-
}),
|
|
906
|
+
}, _0x2b13a2 = createHash(_0xdedd94(_0x2cf94a._0x236171))['update'](_0x3e1721 + ':' + stableStringify(_0x346c1f))[_0xdedd94(0x15c)](_0xdedd94(_0x2cf94a._0x105cb7)), _0x404870 = _0x3e1721 + ':' + _0x2b13a2, _0x541e48 = _0x32ad80[_0xdedd94(_0x2cf94a._0x292f8c)](_0x404870);
|
|
907
|
+
if (_0x541e48)
|
|
908
|
+
return _0x541e48[_0xdedd94(_0x2cf94a._0x1f67a8)];
|
|
909
|
+
const _0x112f23 = _0xdedd94(0x1ef) + _0x3e1721 + ':' + randomUUID();
|
|
910
|
+
return _0x32ad80['set'](_0x404870, {
|
|
911
|
+
'expiresAt': _0xc8eb2 + 0x5 * 0x3c * 0x3e8,
|
|
912
|
+
'value': _0x112f23
|
|
913
|
+
}), _0x112f23;
|
|
928
914
|
}
|
|
929
|
-
async function
|
|
930
|
-
const
|
|
915
|
+
async function _0x3b4881(_0x112848, _0x5beb5a) {
|
|
916
|
+
const _0x241620 = _0x249e77, _0x2462d6 = new AbortController(), _0x1ffe0b = setTimeout(() => _0x2462d6[_0x241620(0x271)](), _0x51ff2b), _0x48501c = _0x5beb5a?.[_0x241620(0x138)] ? anySignal(_0x5beb5a[_0x241620(_0x1c206c._0x3cc4c9)], _0x2462d6[_0x241620(0x138)]) : _0x2462d6[_0x241620(0x138)], _0x4535a3 = '' + _0x28390 + _0x112848;
|
|
931
917
|
try {
|
|
932
|
-
const
|
|
933
|
-
...
|
|
934
|
-
'signal':
|
|
935
|
-
}),
|
|
936
|
-
if (!
|
|
937
|
-
throw new Error(asErrorMessage(
|
|
938
|
-
return
|
|
918
|
+
const _0x28fb63 = await _0x42d681(_0x4535a3, {
|
|
919
|
+
..._0x5beb5a,
|
|
920
|
+
'signal': _0x48501c
|
|
921
|
+
}), _0xe5a18c = await _0x4c65de(_0x4535a3, _0x28fb63);
|
|
922
|
+
if (!_0x28fb63['ok'] || _0xe5a18c['success'] === ![])
|
|
923
|
+
throw new Error(asErrorMessage(_0xe5a18c['error'], _0x241620(_0x1c206c._0x276c9d) + _0x28fb63[_0x241620(_0x1c206c._0x2e7520)]));
|
|
924
|
+
return _0xe5a18c;
|
|
939
925
|
} finally {
|
|
940
|
-
clearTimeout(
|
|
926
|
+
clearTimeout(_0x1ffe0b);
|
|
941
927
|
}
|
|
942
928
|
}
|
|
943
|
-
async function
|
|
944
|
-
const
|
|
929
|
+
async function _0x2ae76f(_0x1ee1c3, _0x333315) {
|
|
930
|
+
const _0x134f1f = _0x249e77, _0x5ce8a1 = new AbortController(), _0x3f48d9 = setTimeout(() => _0x5ce8a1[_0x134f1f(0x271)](), _0x51ff2b), _0x1a3df6 = _0x333315?.[_0x134f1f(0x138)] ? anySignal(_0x333315[_0x134f1f(_0x49b3db._0x438a0e)], _0x5ce8a1[_0x134f1f(0x138)]) : _0x5ce8a1['signal'], _0x41370a = '' + _0x28390 + _0x1ee1c3;
|
|
945
931
|
try {
|
|
946
|
-
const
|
|
947
|
-
...
|
|
948
|
-
'signal':
|
|
949
|
-
}),
|
|
950
|
-
if (!
|
|
951
|
-
throw new Error(asErrorMessage(
|
|
952
|
-
return
|
|
932
|
+
const _0x3d384a = await _0x42d681(_0x41370a, {
|
|
933
|
+
..._0x333315,
|
|
934
|
+
'signal': _0x1a3df6
|
|
935
|
+
}), _0x15d199 = await _0x4c65de(_0x41370a, _0x3d384a);
|
|
936
|
+
if (!_0x3d384a['ok'])
|
|
937
|
+
throw new Error(asErrorMessage(_0x15d199['error'], _0x134f1f(_0x49b3db._0x376868) + _0x3d384a[_0x134f1f(_0x49b3db._0x1b7b79)]));
|
|
938
|
+
return _0x15d199;
|
|
953
939
|
} finally {
|
|
954
|
-
clearTimeout(
|
|
940
|
+
clearTimeout(_0x3f48d9);
|
|
955
941
|
}
|
|
956
942
|
}
|
|
957
|
-
async function
|
|
958
|
-
const
|
|
959
|
-
if (!
|
|
943
|
+
async function _0x5cdc8e(_0x130cf5) {
|
|
944
|
+
const _0x206f1c = _0x249e77;
|
|
945
|
+
if (!_0x36eef5 || _0x130cf5 <= _0x3823d0)
|
|
960
946
|
return;
|
|
961
|
-
await
|
|
962
|
-
'body': JSON[
|
|
963
|
-
'headers':
|
|
964
|
-
'method':
|
|
965
|
-
}),
|
|
947
|
+
await _0x3b4881(_0x206f1c(_0x386d1e._0xbdce03) + encodeURIComponent(_0x36eef5) + _0x206f1c(_0x386d1e._0x348cf9), {
|
|
948
|
+
'body': JSON[_0x206f1c(0x1ec)]({ 'lastSeenSeq': _0x130cf5 }),
|
|
949
|
+
'headers': _0x4431f0,
|
|
950
|
+
'method': _0x206f1c(0x198)
|
|
951
|
+
}), _0x3823d0 = _0x130cf5;
|
|
966
952
|
}
|
|
967
|
-
async function
|
|
968
|
-
const
|
|
969
|
-
if (!
|
|
953
|
+
async function _0x33f45e(_0x2510c9) {
|
|
954
|
+
const _0xe99692 = _0x249e77;
|
|
955
|
+
if (!_0x2e83c1 || !_0x440a99 || _0x2510c9 <= _0x3823d0)
|
|
970
956
|
return;
|
|
971
|
-
const
|
|
972
|
-
'body': JSON[
|
|
973
|
-
'last_seen_seq':
|
|
974
|
-
'worker_session_id':
|
|
957
|
+
const _0x267c03 = await _0x42d681(_0x2e83c1 + _0xe99692(_0x298481._0x380bca), {
|
|
958
|
+
'body': JSON[_0xe99692(0x1ec)]({
|
|
959
|
+
'last_seen_seq': _0x2510c9,
|
|
960
|
+
'worker_session_id': _0x440a99
|
|
975
961
|
}),
|
|
976
|
-
'headers': { 'Content-Type':
|
|
977
|
-
'method':
|
|
962
|
+
'headers': { 'Content-Type': _0xe99692(_0x298481._0x9968c9) },
|
|
963
|
+
'method': _0xe99692(0x24e)
|
|
978
964
|
});
|
|
979
|
-
if (!
|
|
980
|
-
throw new Error(
|
|
981
|
-
|
|
965
|
+
if (!_0x267c03['ok'])
|
|
966
|
+
throw new Error(_0xe99692(0x218) + _0x267c03[_0xe99692(0x195)]);
|
|
967
|
+
_0x3823d0 = _0x2510c9;
|
|
982
968
|
}
|
|
983
|
-
async function
|
|
984
|
-
const
|
|
985
|
-
'body': JSON[
|
|
986
|
-
'headers':
|
|
987
|
-
'method':
|
|
969
|
+
async function _0x348038(_0x54ed4e) {
|
|
970
|
+
const _0x58d5b4 = _0x249e77, _0x2236e7 = parseTarget(_0x54ed4e), _0x362b8 = await _0x3b4881(_0x58d5b4(0x136) + _0x59b596[_0x58d5b4(_0x2bbd41._0x4f0507)] + '/resolve-channel', {
|
|
971
|
+
'body': JSON[_0x58d5b4(_0x2bbd41._0x1c05cc)]({ 'target': _0x2236e7[_0x58d5b4(_0x2bbd41._0x3e63d2)] }),
|
|
972
|
+
'headers': _0x4431f0,
|
|
973
|
+
'method': _0x58d5b4(_0x2bbd41._0x2960c7)
|
|
988
974
|
});
|
|
989
975
|
return {
|
|
990
|
-
'channelId':
|
|
991
|
-
'target':
|
|
992
|
-
'task':
|
|
993
|
-
'threadId':
|
|
994
|
-
'threadNumber':
|
|
976
|
+
'channelId': _0x362b8['data']?.[_0x58d5b4(_0x2bbd41._0x2f03fb)] ?? '',
|
|
977
|
+
'target': _0x2236e7[_0x58d5b4(_0x2bbd41._0x3db312)],
|
|
978
|
+
'task': _0x362b8[_0x58d5b4(0x216)]?.[_0x58d5b4(_0x2bbd41._0x2572e5)],
|
|
979
|
+
'threadId': _0x362b8[_0x58d5b4(_0x2bbd41._0x55e02c)]?.[_0x58d5b4(_0x2bbd41._0x2061f1)],
|
|
980
|
+
'threadNumber': _0x362b8[_0x58d5b4(_0x2bbd41._0x55e02c)]?.[_0x58d5b4(0x1c6)]
|
|
995
981
|
};
|
|
996
982
|
}
|
|
997
|
-
async function
|
|
998
|
-
const
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
'
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
'
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
'
|
|
1017
|
-
|
|
983
|
+
async function _0x2b9e96(_0x425f14 = {}) {
|
|
984
|
+
const _0x438b3b = {
|
|
985
|
+
_0x14481b: 0x16a,
|
|
986
|
+
_0x316e35: 0x1be,
|
|
987
|
+
_0x4beec4: 0x27c,
|
|
988
|
+
_0x4174ec: 0x26e,
|
|
989
|
+
_0x2e6ba4: 0x216,
|
|
990
|
+
_0x18b001: 0x182
|
|
991
|
+
}, _0x4f13e3 = _0x249e77;
|
|
992
|
+
if (!_0x425f14[_0x4f13e3(_0x504f21._0x56d00b)] && _0x2197d9)
|
|
993
|
+
return _0x2197d9;
|
|
994
|
+
return _0x2197d9 = (async () => {
|
|
995
|
+
const _0x1d03ad = _0x4f13e3, _0x97fa90 = await _0x3b4881('/internal/agent/' + _0x59b596['agentId'] + _0x1d03ad(_0x438b3b._0x14481b), {
|
|
996
|
+
'headers': _0x4431f0,
|
|
997
|
+
'method': _0x1d03ad(0x283)
|
|
998
|
+
}), _0x47b7f4 = _0x97fa90[_0x1d03ad(0x216)]?.[_0x1d03ad(_0x438b3b._0x316e35)] ?? [], _0x1854af = _0x47b7f4[_0x1d03ad(_0x438b3b._0x4beec4)](_0x4cdfac => _0x4cdfac[_0x1d03ad(0x150)]?.[_0x1d03ad(0x14c)] === _0x1d03ad(0x18f))['map'](_0xd84ffe => ({
|
|
999
|
+
'id': _0x247205(_0xd84ffe),
|
|
1000
|
+
'name': _0x33edec(_0xd84ffe)
|
|
1001
|
+
}))[_0x1d03ad(0x27c)](_0x1a6a3e => _0x1a6a3e['id']), _0xe145b2 = _0x47b7f4[_0x1d03ad(_0x438b3b._0x4beec4)](_0x1bfb08 => _0x1bfb08[_0x1d03ad(0x150)]?.[_0x1d03ad(0x14c)] !== _0x1d03ad(0x18f))[_0x1d03ad(_0x438b3b._0x4174ec)](_0x3fc95a => ({
|
|
1002
|
+
'id': _0x247205(_0x3fc95a),
|
|
1003
|
+
'name': _0x33edec(_0x3fc95a)
|
|
1004
|
+
}))[_0x1d03ad(0x27c)](_0x177973 => _0x177973['id']), _0x4acf00 = _0x97fa90['data']?.[_0x1d03ad(0x182)]['id'] ?? '';
|
|
1018
1005
|
return {
|
|
1019
|
-
'agents':
|
|
1020
|
-
'channels':
|
|
1021
|
-
'humans':
|
|
1022
|
-
'serverId':
|
|
1023
|
-
'serverName':
|
|
1006
|
+
'agents': _0x1854af,
|
|
1007
|
+
'channels': _0x97fa90[_0x1d03ad(_0x438b3b._0x2e6ba4)]?.['channels'] ?? [],
|
|
1008
|
+
'humans': _0xe145b2,
|
|
1009
|
+
'serverId': _0x4acf00,
|
|
1010
|
+
'serverName': _0x97fa90[_0x1d03ad(0x216)]?.[_0x1d03ad(_0x438b3b._0x18b001)][_0x1d03ad(0x184)] ?? _0x4acf00
|
|
1024
1011
|
};
|
|
1025
|
-
})()[
|
|
1026
|
-
|
|
1027
|
-
throw
|
|
1028
|
-
}),
|
|
1012
|
+
})()[_0x4f13e3(_0x504f21._0x5362fb)](_0x48404f => {
|
|
1013
|
+
_0x2197d9 = null;
|
|
1014
|
+
throw _0x48404f;
|
|
1015
|
+
}), _0x2197d9;
|
|
1029
1016
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const
|
|
1032
|
-
return
|
|
1017
|
+
function _0x4fc515(_0x4241c8, _0x5b711d) {
|
|
1018
|
+
const _0xc10596 = _0x249e77;
|
|
1019
|
+
return _0x5b711d[_0xc10596(0x148)][_0xc10596(0x25c)](_0x5a1ff3 => _0x5a1ff3['id'] === _0x4241c8 || _0x5a1ff3[_0xc10596(0x184)] === _0x4241c8) ? _0xc10596(0x18f) : _0xc10596(_0x52485d._0x33a352);
|
|
1033
1020
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const
|
|
1036
|
-
if (
|
|
1037
|
-
return
|
|
1038
|
-
if (
|
|
1039
|
-
return
|
|
1040
|
-
if (
|
|
1041
|
-
return
|
|
1042
|
-
return
|
|
1021
|
+
function _0x4deb2f(_0x280953) {
|
|
1022
|
+
const _0x3b7a34 = _0x249e77;
|
|
1023
|
+
if (_0x280953[_0x3b7a34(0x1c6)] != null)
|
|
1024
|
+
return _0x280953['channelTarget'] + ':t' + _0x280953[_0x3b7a34(0x1c6)];
|
|
1025
|
+
if (_0x280953[_0x3b7a34(0x157)])
|
|
1026
|
+
return _0x280953[_0x3b7a34(_0x3f148e._0x51eb60)] + ':' + _0x280953[_0x3b7a34(_0x3f148e._0x52ad26)];
|
|
1027
|
+
if (_0x280953[_0x3b7a34(0x1ca)])
|
|
1028
|
+
return _0x280953[_0x3b7a34(0x12c)] + ':' + _0x280953[_0x3b7a34(0x1ca)][_0x3b7a34(_0x3f148e._0x24511c)](0x0, 0x8);
|
|
1029
|
+
return _0x280953[_0x3b7a34(_0x3f148e._0x51eb60)];
|
|
1043
1030
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const
|
|
1031
|
+
function _0x241e2d(_0x26710a, _0x52e77b) {
|
|
1032
|
+
const _0x2df281 = _0x249e77;
|
|
1046
1033
|
try {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1034
|
+
const _0x505f54 = parseTarget(_0x26710a);
|
|
1035
|
+
if (_0x505f54[_0x2df281(_0x38ac10._0x53f8ee)] !== _0x2df281(_0x38ac10._0x7641de) || _0x505f54[_0x2df281(_0x38ac10._0x682ef7)] !== _0x52e77b[_0x2df281(_0x38ac10._0x682ef7)])
|
|
1049
1036
|
return ![];
|
|
1050
|
-
if (
|
|
1037
|
+
if (_0x52e77b[_0x2df281(_0x38ac10._0x33d7d0)] != null && _0x505f54[_0x2df281(_0x38ac10._0x2aeabd)] === 't' + _0x52e77b['threadNumber'])
|
|
1051
1038
|
return !![];
|
|
1052
|
-
if (
|
|
1053
|
-
return
|
|
1054
|
-
if (
|
|
1055
|
-
return
|
|
1039
|
+
if (_0x52e77b[_0x2df281(0x157)])
|
|
1040
|
+
return _0x505f54[_0x2df281(_0x38ac10._0x2aeabd)] === _0x52e77b[_0x2df281(_0x38ac10._0x4f817a)] || _0x52e77b[_0x2df281(0x157)]['startsWith'](_0x505f54[_0x2df281(_0x38ac10._0x15f2a6)]);
|
|
1041
|
+
if (_0x52e77b[_0x2df281(0x1ca)])
|
|
1042
|
+
return _0x505f54[_0x2df281(0x18a)] === _0x52e77b[_0x2df281(0x1ca)] || _0x52e77b[_0x2df281(0x1ca)][_0x2df281(0x1b0)](_0x505f54[_0x2df281(_0x38ac10._0xc5a10f)]);
|
|
1056
1043
|
return ![];
|
|
1057
1044
|
} catch {
|
|
1058
1045
|
return ![];
|
|
1059
1046
|
}
|
|
1060
1047
|
}
|
|
1061
|
-
function
|
|
1062
|
-
const
|
|
1063
|
-
return
|
|
1048
|
+
function _0x247205(_0x49f6b7) {
|
|
1049
|
+
const _0x5535cf = _0x249e77;
|
|
1050
|
+
return _0x49f6b7['member']?.[_0x5535cf(_0x4beab6._0x14ef8c)] ?? _0x49f6b7[_0x5535cf(_0x4beab6._0x258327)]?.['id'] ?? _0x49f6b7[_0x5535cf(0x1d3)] ?? '';
|
|
1064
1051
|
}
|
|
1065
|
-
function
|
|
1066
|
-
|
|
1052
|
+
function _0x33edec(_0x455191) {
|
|
1053
|
+
const _0xd5963a = _0x249e77;
|
|
1054
|
+
return _0x455191[_0xd5963a(0x150)]?.['name'] ?? _0x247205(_0x455191);
|
|
1067
1055
|
}
|
|
1068
|
-
async function
|
|
1069
|
-
const
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
const
|
|
1075
|
-
'headers':
|
|
1076
|
-
'method':
|
|
1077
|
-
}),
|
|
1078
|
-
'attachments': (
|
|
1079
|
-
'filename':
|
|
1080
|
-
'id':
|
|
1056
|
+
async function _0x5a16b2(_0x129bad) {
|
|
1057
|
+
const _0x318fbc = _0x249e77, _0x530ca6 = Math[_0x318fbc(0x1cc)](_0x129bad[_0x318fbc(_0x550d77._0x302b71)] ?? 0x32, 0x64), _0x2b15c5 = await _0x2b9e96(), _0x4931fe = new URLSearchParams();
|
|
1058
|
+
_0x4931fe['set'](_0x318fbc(_0x550d77._0x302b71), String(_0x530ca6));
|
|
1059
|
+
_0x129bad['threadId'] ? (_0x4931fe[_0x318fbc(_0x550d77._0x30e6e4)]('threadId', _0x129bad['threadId']), _0x4931fe['set']('channelId', _0x129bad[_0x318fbc(0x26f)])) : _0x4931fe[_0x318fbc(_0x550d77._0x4ca1fc)](_0x318fbc(0x26f), _0x129bad[_0x318fbc(_0x550d77._0x10dd36)]);
|
|
1060
|
+
_0x129bad[_0x318fbc(_0x550d77._0x4815bf)] && _0x4931fe[_0x318fbc(_0x550d77._0x36b015)]('cursor', String(_0x129bad[_0x318fbc(_0x550d77._0x5a5f47)]));
|
|
1061
|
+
_0x129bad['after'] !== void 0x0 && _0x4931fe[_0x318fbc(0x244)](_0x318fbc(_0x550d77._0x32f8e5), String(_0x129bad[_0x318fbc(_0x550d77._0x32f8e5)]));
|
|
1062
|
+
const _0x18eb93 = await _0x3b4881(_0x318fbc(_0x550d77._0x1954e0) + _0x59b596['agentId'] + _0x318fbc(0x106) + _0x4931fe[_0x318fbc(0x261)](), {
|
|
1063
|
+
'headers': _0x4431f0,
|
|
1064
|
+
'method': _0x318fbc(_0x550d77._0x5c88ae)
|
|
1065
|
+
}), _0x36caca = (_0x18eb93['data'] ?? [])[_0x318fbc(_0x550d77._0x38aaf3)](_0x3c30a9 => ({
|
|
1066
|
+
'attachments': (_0x3c30a9[_0x318fbc(0x1ff)] ?? [])[_0x318fbc(0x26e)](_0xe3dd95 => ({
|
|
1067
|
+
'filename': _0xe3dd95[_0x318fbc(0x22f)] ?? _0xe3dd95['id'],
|
|
1068
|
+
'id': _0xe3dd95['id']
|
|
1081
1069
|
})),
|
|
1082
|
-
'content':
|
|
1083
|
-
'createdAt':
|
|
1084
|
-
...
|
|
1085
|
-
'messageId':
|
|
1086
|
-
'senderName':
|
|
1087
|
-
'senderType':
|
|
1088
|
-
'seq':
|
|
1070
|
+
'content': _0x3c30a9[_0x318fbc(0x188)] ?? '',
|
|
1071
|
+
'createdAt': _0x3c30a9['createdAt'],
|
|
1072
|
+
..._0x3c30a9[_0x318fbc(0x12b)] && _0x3c30a9[_0x318fbc(0x12b)] !== _0x318fbc(0x1dc) ? { 'kind': _0x3c30a9['kind'] } : {},
|
|
1073
|
+
'messageId': _0x3c30a9['id'],
|
|
1074
|
+
'senderName': _0x3c30a9[_0x318fbc(0x242)],
|
|
1075
|
+
'senderType': _0x4fc515(_0x3c30a9['senderParticipantId'], _0x2b15c5),
|
|
1076
|
+
'seq': _0x3c30a9[_0x318fbc(0x1da)] ?? 0x0
|
|
1089
1077
|
}));
|
|
1090
1078
|
return {
|
|
1091
|
-
'channel':
|
|
1092
|
-
'hasMore':
|
|
1093
|
-
'messages':
|
|
1094
|
-
'nextCursor':
|
|
1079
|
+
'channel': _0x129bad['channelTarget'],
|
|
1080
|
+
'hasMore': _0x18eb93['meta']?.[_0x318fbc(0x110)] ?? ![],
|
|
1081
|
+
'messages': _0x36caca,
|
|
1082
|
+
'nextCursor': _0x18eb93[_0x318fbc(_0x550d77._0x481710)]?.['cursor']
|
|
1095
1083
|
};
|
|
1096
1084
|
}
|
|
1097
1085
|
return {
|
|
1098
|
-
async 'sendMessage'(
|
|
1099
|
-
const
|
|
1100
|
-
'body': JSON[
|
|
1101
|
-
'attachment_ids':
|
|
1102
|
-
'bodyMarkdown':
|
|
1103
|
-
'channelId':
|
|
1104
|
-
...
|
|
1105
|
-
'threadId':
|
|
1106
|
-
...
|
|
1086
|
+
async 'sendMessage'(_0x2b2c86) {
|
|
1087
|
+
const _0x452db1 = _0x249e77, _0x4079fd = await _0x348038(_0x2b2c86[_0x452db1(_0x586c03._0x17e495)]), _0x49771e = _0x2b2c86[_0x452db1(_0x586c03._0x433e8d)][_0x452db1(_0x586c03._0x518f91)]('@') ? extractMentionedParticipantIds(_0x2b2c86['content'], await _0x2b9e96()) : [], _0x3bb0f2 = await _0x3b4881('/internal/agent/' + _0x59b596[_0x452db1(0x1b6)] + _0x452db1(_0x586c03._0x53d55e), {
|
|
1088
|
+
'body': JSON[_0x452db1(_0x586c03._0x28040c)]({
|
|
1089
|
+
'attachment_ids': _0x2b2c86['attachmentIds'],
|
|
1090
|
+
'bodyMarkdown': _0x2b2c86[_0x452db1(0x199)],
|
|
1091
|
+
'channelId': _0x4079fd[_0x452db1(_0x586c03._0x34992b)],
|
|
1092
|
+
..._0x49771e[_0x452db1(0x137)] > 0x0 ? { 'mentionedParticipantIds': _0x49771e } : {},
|
|
1093
|
+
'threadId': _0x4079fd['threadId'],
|
|
1094
|
+
..._0x2b2c86[_0x452db1(_0x586c03._0xd21091)] ? { 'visibility': _0x2b2c86[_0x452db1(0x22c)] } : {}
|
|
1107
1095
|
}),
|
|
1108
|
-
'headers':
|
|
1096
|
+
'headers': _0x4431f0,
|
|
1109
1097
|
'method': 'POST'
|
|
1110
1098
|
});
|
|
1111
|
-
return { 'messageId':
|
|
1099
|
+
return { 'messageId': _0x3bb0f2['data']?.['id'] ?? '' };
|
|
1112
1100
|
},
|
|
1113
1101
|
async 'listSchedules'() {
|
|
1114
|
-
const
|
|
1115
|
-
'headers':
|
|
1116
|
-
'method':
|
|
1102
|
+
const _0x3c0333 = _0x249e77, _0x5013ff = await _0x3b4881('/api/internal/schedules', {
|
|
1103
|
+
'headers': _0x4431f0,
|
|
1104
|
+
'method': _0x3c0333(_0x38fa15._0x469cff)
|
|
1117
1105
|
});
|
|
1118
|
-
return
|
|
1106
|
+
return _0x5013ff[_0x3c0333(_0x38fa15._0x20bedf)] ?? [];
|
|
1119
1107
|
},
|
|
1120
|
-
async 'claimScheduleRun'(
|
|
1121
|
-
const
|
|
1122
|
-
'body': JSON[
|
|
1123
|
-
'headers':
|
|
1124
|
-
'method':
|
|
1108
|
+
async 'claimScheduleRun'(_0x389294) {
|
|
1109
|
+
const _0xc1a294 = _0x249e77, _0x236425 = await _0x3b4881(_0xc1a294(0x27e), {
|
|
1110
|
+
'body': JSON['stringify'](_0x389294),
|
|
1111
|
+
'headers': _0x4431f0,
|
|
1112
|
+
'method': _0xc1a294(0x24e)
|
|
1125
1113
|
});
|
|
1126
|
-
return
|
|
1114
|
+
return _0x236425[_0xc1a294(0x216)] ?? {
|
|
1127
1115
|
'granted': ![],
|
|
1128
1116
|
'runId': null,
|
|
1129
1117
|
'schedule': null,
|
|
1130
|
-
'scheduledFor':
|
|
1118
|
+
'scheduledFor': _0x389294['scheduledFor']
|
|
1131
1119
|
};
|
|
1132
1120
|
},
|
|
1133
|
-
async 'startScheduleRun'(
|
|
1134
|
-
const
|
|
1135
|
-
'body': JSON[
|
|
1136
|
-
'headers':
|
|
1137
|
-
'method':
|
|
1121
|
+
async 'startScheduleRun'(_0x47395e) {
|
|
1122
|
+
const _0x5f44ad = _0x249e77, _0x8877f5 = await _0x3b4881(_0x5f44ad(0x26a) + encodeURIComponent(_0x47395e[_0x5f44ad(_0x39fd6e._0x229d19)]) + '/start', {
|
|
1123
|
+
'body': JSON[_0x5f44ad(_0x39fd6e._0x3ed958)]({}),
|
|
1124
|
+
'headers': _0x4431f0,
|
|
1125
|
+
'method': _0x5f44ad(_0x39fd6e._0x10e0ea)
|
|
1138
1126
|
});
|
|
1139
|
-
return
|
|
1127
|
+
return _0x8877f5[_0x5f44ad(_0x39fd6e._0x3f5254)] ?? {
|
|
1140
1128
|
'claimedByDaemonId': '',
|
|
1141
|
-
'id':
|
|
1129
|
+
'id': _0x47395e['runId'],
|
|
1142
1130
|
'scheduleId': '',
|
|
1143
|
-
'status':
|
|
1131
|
+
'status': 'running'
|
|
1144
1132
|
};
|
|
1145
1133
|
},
|
|
1146
|
-
async 'finishScheduleRun'(
|
|
1147
|
-
const
|
|
1148
|
-
'body': JSON[
|
|
1149
|
-
'error':
|
|
1150
|
-
'resultJson':
|
|
1151
|
-
'status':
|
|
1134
|
+
async 'finishScheduleRun'(_0x31f3f1) {
|
|
1135
|
+
const _0x44a759 = _0x249e77, _0x3d1a73 = await _0x3b4881('/api/internal/schedules/' + encodeURIComponent(_0x31f3f1[_0x44a759(_0x21c3c9._0x41e9db)]) + _0x44a759(0x22e), {
|
|
1136
|
+
'body': JSON[_0x44a759(0x1ec)]({
|
|
1137
|
+
'error': _0x31f3f1['error'],
|
|
1138
|
+
'resultJson': _0x31f3f1['resultJson'],
|
|
1139
|
+
'status': _0x31f3f1[_0x44a759(0x195)]
|
|
1152
1140
|
}),
|
|
1153
|
-
'headers':
|
|
1154
|
-
'method':
|
|
1141
|
+
'headers': _0x4431f0,
|
|
1142
|
+
'method': 'POST'
|
|
1155
1143
|
});
|
|
1156
|
-
return
|
|
1144
|
+
return _0x3d1a73['data'] ?? {
|
|
1157
1145
|
'nextRunAt': null,
|
|
1158
1146
|
'run': {
|
|
1159
1147
|
'claimedByDaemonId': '',
|
|
1160
|
-
'id':
|
|
1148
|
+
'id': _0x31f3f1[_0x44a759(0x1b5)],
|
|
1161
1149
|
'scheduleId': '',
|
|
1162
|
-
'status':
|
|
1150
|
+
'status': _0x31f3f1[_0x44a759(0x195)]
|
|
1163
1151
|
}
|
|
1164
1152
|
};
|
|
1165
1153
|
},
|
|
1166
|
-
async 'listTasks'(
|
|
1167
|
-
const
|
|
1168
|
-
return
|
|
1169
|
-
'headers':
|
|
1154
|
+
async 'listTasks'(_0x1e637a) {
|
|
1155
|
+
const _0x317f18 = _0x249e77, _0x4f876a = new URLSearchParams();
|
|
1156
|
+
return _0x4f876a[_0x317f18(0x244)]('channel', _0x1e637a['channel']), _0x1e637a['status'] && _0x4f876a[_0x317f18(_0x4fc0fd._0x3af536)]('status', _0x1e637a[_0x317f18(0x195)]), _0x2ae76f(_0x317f18(_0x4fc0fd._0x59e7ad) + _0x59b596[_0x317f18(0x1b6)] + _0x317f18(_0x4fc0fd._0x408039) + _0x4f876a[_0x317f18(0x261)](), {
|
|
1157
|
+
'headers': _0x4431f0,
|
|
1170
1158
|
'method': 'GET'
|
|
1171
1159
|
});
|
|
1172
1160
|
},
|
|
1173
|
-
async 'createTasks'(
|
|
1174
|
-
const
|
|
1175
|
-
return
|
|
1176
|
-
'body': JSON[
|
|
1177
|
-
...
|
|
1178
|
-
'idempotency_key':
|
|
1161
|
+
async 'createTasks'(_0x2d6780) {
|
|
1162
|
+
const _0x4f4c76 = _0x249e77;
|
|
1163
|
+
return _0x2ae76f(_0x4f4c76(_0x2b0d41._0x277fc4) + _0x59b596[_0x4f4c76(_0x2b0d41._0x3ef60f)] + _0x4f4c76(0x1d4), {
|
|
1164
|
+
'body': JSON[_0x4f4c76(0x1ec)]({
|
|
1165
|
+
..._0x2d6780,
|
|
1166
|
+
'idempotency_key': _0x1073ad('create_tasks', _0x2d6780)
|
|
1179
1167
|
}),
|
|
1180
|
-
'headers':
|
|
1181
|
-
'method':
|
|
1168
|
+
'headers': _0x4431f0,
|
|
1169
|
+
'method': _0x4f4c76(0x24e)
|
|
1182
1170
|
});
|
|
1183
1171
|
},
|
|
1184
|
-
async 'claimTasks'(
|
|
1185
|
-
const
|
|
1186
|
-
return
|
|
1187
|
-
'body': JSON[
|
|
1188
|
-
...
|
|
1189
|
-
'idempotency_key':
|
|
1172
|
+
async 'claimTasks'(_0x20355e) {
|
|
1173
|
+
const _0x5471cb = _0x249e77;
|
|
1174
|
+
return _0x2ae76f(_0x5471cb(_0x34df5f._0x4fd07c) + _0x59b596[_0x5471cb(0x1b6)] + _0x5471cb(0x1d5), {
|
|
1175
|
+
'body': JSON[_0x5471cb(0x1ec)]({
|
|
1176
|
+
..._0x20355e,
|
|
1177
|
+
'idempotency_key': _0x1073ad(_0x5471cb(0x1e3), _0x20355e)
|
|
1190
1178
|
}),
|
|
1191
|
-
'headers':
|
|
1192
|
-
'method':
|
|
1179
|
+
'headers': _0x4431f0,
|
|
1180
|
+
'method': _0x5471cb(0x24e)
|
|
1193
1181
|
});
|
|
1194
1182
|
},
|
|
1195
|
-
async 'unclaimTask'(
|
|
1196
|
-
const
|
|
1197
|
-
return
|
|
1198
|
-
'body': JSON[
|
|
1199
|
-
...
|
|
1200
|
-
'idempotency_key':
|
|
1183
|
+
async 'unclaimTask'(_0x210b78) {
|
|
1184
|
+
const _0x43e10c = _0x249e77;
|
|
1185
|
+
return _0x2ae76f(_0x43e10c(_0x34ce28._0x1ef4cc) + _0x59b596[_0x43e10c(_0x34ce28._0x2f1901)] + '/tasks/unclaim', {
|
|
1186
|
+
'body': JSON[_0x43e10c(0x1ec)]({
|
|
1187
|
+
..._0x210b78,
|
|
1188
|
+
'idempotency_key': _0x1073ad(_0x43e10c(0x185), _0x210b78)
|
|
1201
1189
|
}),
|
|
1202
|
-
'headers':
|
|
1203
|
-
'method':
|
|
1190
|
+
'headers': _0x4431f0,
|
|
1191
|
+
'method': _0x43e10c(_0x34ce28._0x22552e)
|
|
1204
1192
|
});
|
|
1205
1193
|
},
|
|
1206
|
-
async 'updateTaskStatus'(
|
|
1207
|
-
const
|
|
1208
|
-
return
|
|
1209
|
-
'body': JSON[
|
|
1210
|
-
...
|
|
1211
|
-
'idempotency_key':
|
|
1194
|
+
async 'updateTaskStatus'(_0x5bcfc3) {
|
|
1195
|
+
const _0xa0285c = _0x249e77;
|
|
1196
|
+
return _0x2ae76f('/internal/agent/' + _0x59b596[_0xa0285c(0x1b6)] + _0xa0285c(_0x404b1d._0x51dadf), {
|
|
1197
|
+
'body': JSON[_0xa0285c(0x1ec)]({
|
|
1198
|
+
..._0x5bcfc3,
|
|
1199
|
+
'idempotency_key': _0x1073ad(_0xa0285c(_0x404b1d._0x5df96f), _0x5bcfc3)
|
|
1212
1200
|
}),
|
|
1213
|
-
'headers':
|
|
1214
|
-
'method':
|
|
1201
|
+
'headers': _0x4431f0,
|
|
1202
|
+
'method': _0xa0285c(_0x404b1d._0x40ea20)
|
|
1215
1203
|
});
|
|
1216
1204
|
},
|
|
1217
|
-
async 'uploadFile'(
|
|
1218
|
-
const
|
|
1219
|
-
if (
|
|
1220
|
-
throw new Error(
|
|
1221
|
-
const
|
|
1222
|
-
'body': JSON[
|
|
1223
|
-
'channel':
|
|
1224
|
-
'contentBase64':
|
|
1225
|
-
'contentType':
|
|
1226
|
-
'originalFilename':
|
|
1205
|
+
async 'uploadFile'(_0x4fb8f1) {
|
|
1206
|
+
const _0x23447d = _0x249e77, _0x52cde0 = await _0x348038(_0x4fb8f1[_0x23447d(_0x2735f0._0x4e1c6f)]);
|
|
1207
|
+
if (_0x52cde0[_0x23447d(0x1ca)])
|
|
1208
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1209
|
+
const _0x3b0fb8 = await _0x3b4881('/internal/agent/' + _0x59b596[_0x23447d(0x1b6)] + '/upload', {
|
|
1210
|
+
'body': JSON[_0x23447d(0x1ec)]({
|
|
1211
|
+
'channel': _0x52cde0[_0x23447d(_0x2735f0._0xc8b546)],
|
|
1212
|
+
'contentBase64': _0x4fb8f1[_0x23447d(_0x2735f0._0x5e079f)],
|
|
1213
|
+
'contentType': _0x4fb8f1[_0x23447d(_0x2735f0._0x59ddb4)],
|
|
1214
|
+
'originalFilename': _0x4fb8f1[_0x23447d(0x22f)]
|
|
1227
1215
|
}),
|
|
1228
|
-
'headers':
|
|
1229
|
-
'method':
|
|
1216
|
+
'headers': _0x4431f0,
|
|
1217
|
+
'method': _0x23447d(0x24e)
|
|
1230
1218
|
});
|
|
1231
1219
|
return {
|
|
1232
|
-
'attachmentId':
|
|
1233
|
-
'filename':
|
|
1234
|
-
'sizeBytes':
|
|
1220
|
+
'attachmentId': _0x3b0fb8[_0x23447d(0x216)]?.['id'] ?? '',
|
|
1221
|
+
'filename': _0x3b0fb8['data']?.['originalFilename'] ?? _0x4fb8f1[_0x23447d(0x22f)],
|
|
1222
|
+
'sizeBytes': _0x3b0fb8[_0x23447d(_0x2735f0._0x2b65b0)]?.['sizeBytes'] ?? 0x0
|
|
1235
1223
|
};
|
|
1236
1224
|
},
|
|
1237
|
-
async 'downloadAttachment'(
|
|
1238
|
-
const
|
|
1239
|
-
'headers':
|
|
1240
|
-
'method':
|
|
1241
|
-
}),
|
|
1225
|
+
async 'downloadAttachment'(_0x2213d2) {
|
|
1226
|
+
const _0x51f7bb = _0x249e77, _0x34a567 = await _0x3b4881(_0x51f7bb(_0x199c9a._0x524603) + _0x2213d2, {
|
|
1227
|
+
'headers': _0x4431f0,
|
|
1228
|
+
'method': 'GET'
|
|
1229
|
+
}), _0x214ed8 = new AbortController(), _0xb19971 = setTimeout(() => _0x214ed8['abort'](), _0x51ff2b);
|
|
1242
1230
|
try {
|
|
1243
|
-
const
|
|
1244
|
-
'headers':
|
|
1245
|
-
'method':
|
|
1246
|
-
'signal':
|
|
1231
|
+
const _0x178848 = await _0x42d681(_0x28390 + _0x51f7bb(0x1b9) + _0x2213d2 + '/content', {
|
|
1232
|
+
'headers': _0x4431f0,
|
|
1233
|
+
'method': _0x51f7bb(_0x199c9a._0x1ff5f7),
|
|
1234
|
+
'signal': _0x214ed8['signal']
|
|
1247
1235
|
});
|
|
1248
|
-
if (!
|
|
1249
|
-
throw new Error(
|
|
1236
|
+
if (!_0x178848['ok'])
|
|
1237
|
+
throw new Error(_0x51f7bb(_0x199c9a._0x3de948) + _0x178848[_0x51f7bb(0x195)]);
|
|
1250
1238
|
return {
|
|
1251
|
-
'contentType':
|
|
1252
|
-
'data': Buffer[
|
|
1253
|
-
'originalFilename':
|
|
1239
|
+
'contentType': _0x34a567[_0x51f7bb(0x216)]?.['contentType'] ?? _0x178848[_0x51f7bb(_0x199c9a._0x170054)][_0x51f7bb(_0x199c9a._0x47e45c)](_0x51f7bb(0x24f)) ?? 'application/octet-stream',
|
|
1240
|
+
'data': Buffer[_0x51f7bb(0x134)](await _0x178848[_0x51f7bb(0x25d)]()),
|
|
1241
|
+
'originalFilename': _0x34a567['data']?.[_0x51f7bb(_0x199c9a._0x38787d)]
|
|
1254
1242
|
};
|
|
1255
1243
|
} finally {
|
|
1256
|
-
clearTimeout(
|
|
1244
|
+
clearTimeout(_0xb19971);
|
|
1257
1245
|
}
|
|
1258
1246
|
},
|
|
1259
1247
|
async 'listServer'() {
|
|
1260
|
-
return
|
|
1248
|
+
return _0x2b9e96({ 'forceRefresh': !![] });
|
|
1261
1249
|
},
|
|
1262
|
-
async 'readHistory'(
|
|
1263
|
-
const
|
|
1264
|
-
return
|
|
1265
|
-
'after':
|
|
1266
|
-
'before':
|
|
1267
|
-
'channelId':
|
|
1268
|
-
'channelTarget':
|
|
1269
|
-
'limit':
|
|
1270
|
-
'threadId':
|
|
1250
|
+
async 'readHistory'(_0x3c4664) {
|
|
1251
|
+
const _0x1707e3 = _0x249e77, _0x495891 = await _0x348038(_0x3c4664[_0x1707e3(0x17b)]);
|
|
1252
|
+
return _0x5a16b2({
|
|
1253
|
+
'after': _0x3c4664[_0x1707e3(0x224)],
|
|
1254
|
+
'before': _0x3c4664[_0x1707e3(0x18b)],
|
|
1255
|
+
'channelId': _0x495891[_0x1707e3(0x26f)],
|
|
1256
|
+
'channelTarget': _0x495891[_0x1707e3(_0xd9ab1d._0x5b4ad8)],
|
|
1257
|
+
'limit': _0x3c4664[_0x1707e3(0x1b7)],
|
|
1258
|
+
'threadId': _0x495891[_0x1707e3(0x1ca)]
|
|
1271
1259
|
});
|
|
1272
1260
|
},
|
|
1273
|
-
'resolveTarget':
|
|
1261
|
+
'resolveTarget': _0x348038,
|
|
1274
1262
|
async 'checkMessages'() {
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1277
|
-
const
|
|
1278
|
-
'headers':
|
|
1279
|
-
'method':
|
|
1280
|
-
}),
|
|
1281
|
-
let
|
|
1282
|
-
|
|
1283
|
-
|
|
1263
|
+
const _0x5a51f6 = { _0xeee73d: 0x26f }, _0x545f3a = _0x249e77, _0x59b3f7 = new URLSearchParams();
|
|
1264
|
+
_0x59b3f7['set'](_0x545f3a(_0xce0d79._0xdc271c), String(_0x264d84));
|
|
1265
|
+
const _0x375a17 = _0x59b3f7[_0x545f3a(0x261)](), _0x392237 = await _0x3b4881(_0x545f3a(_0xce0d79._0x2b857c) + _0x59b596[_0x545f3a(_0xce0d79._0x14e1c5)] + '/receive' + (_0x375a17 ? '?' + _0x375a17 : ''), {
|
|
1266
|
+
'headers': _0x4431f0,
|
|
1267
|
+
'method': _0x545f3a(_0xce0d79._0x29b723)
|
|
1268
|
+
}), _0x210b39 = _0x392237[_0x545f3a(_0xce0d79._0x3f60fa)] ?? [], _0x3bf5d = _0x392237['meta']?.['cursor'], _0x13ee26 = _0x3bf5d !== void 0x0 ? Math[_0x545f3a(0x14b)](_0x264d84, _0x3bf5d) : _0x210b39[_0x545f3a(0x137)] > 0x0 ? Math[_0x545f3a(0x14b)](_0x264d84, _0x210b39[_0x210b39[_0x545f3a(_0xce0d79._0x4356fa)] - 0x1][_0x545f3a(0x20d)]) : _0x264d84, _0x5ecf68 = _0x210b39[_0x545f3a(0x27c)](_0x5945f8 => _0x5945f8[_0x545f3a(0x19d)] === _0x545f3a(0x236)), _0x296313 = _0x1475d4 === void 0x0 && _0x527840;
|
|
1269
|
+
let _0x1a5bd3 = await _0x2b9e96(), _0x2dd054 = new Map(_0x1a5bd3[_0x545f3a(_0xce0d79._0x95216)][_0x545f3a(_0xce0d79._0x2c9ee9)](_0xeb9fe4 => [
|
|
1270
|
+
_0xeb9fe4['id'],
|
|
1271
|
+
_0xeb9fe4
|
|
1284
1272
|
]));
|
|
1285
|
-
const
|
|
1286
|
-
const
|
|
1287
|
-
return Boolean(
|
|
1273
|
+
const _0x611c09 = _0x5ecf68['some'](_0x5b8cef => {
|
|
1274
|
+
const _0x1e1373 = _0x545f3a, _0x3194b3 = asRecord(_0x5b8cef[_0x1e1373(0x14f)]), _0x6f0f1b = typeof _0x3194b3?.[_0x1e1373(_0x5a51f6._0xeee73d)] === _0x1e1373(0x20f) ? _0x3194b3[_0x1e1373(0x26f)] : '';
|
|
1275
|
+
return Boolean(_0x6f0f1b) && !_0x2dd054[_0x1e1373(0x118)](_0x6f0f1b);
|
|
1288
1276
|
});
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1277
|
+
_0x611c09 && (_0x1a5bd3 = await _0x2b9e96({ 'forceRefresh': !![] }), _0x2dd054 = new Map(_0x1a5bd3[_0x545f3a(0x1d7)][_0x545f3a(_0xce0d79._0x2c9ee9)](_0x4cc32c => [
|
|
1278
|
+
_0x4cc32c['id'],
|
|
1279
|
+
_0x4cc32c
|
|
1292
1280
|
])));
|
|
1293
|
-
const
|
|
1294
|
-
for (const
|
|
1295
|
-
const
|
|
1296
|
-
if (!
|
|
1281
|
+
const _0xa4b514 = new Map();
|
|
1282
|
+
for (const _0x346d51 of _0x5ecf68) {
|
|
1283
|
+
const _0xd279fb = asRecord(_0x346d51[_0x545f3a(_0xce0d79._0x2f6a0c)]), _0x2341b2 = typeof _0xd279fb[_0x545f3a(0x26f)] === _0x545f3a(_0xce0d79._0x1e6c15) ? _0xd279fb[_0x545f3a(0x26f)] : '';
|
|
1284
|
+
if (!_0x2341b2)
|
|
1297
1285
|
continue;
|
|
1298
|
-
const
|
|
1286
|
+
const _0x54d7cc = typeof _0xd279fb[_0x545f3a(0x1ca)] === _0x545f3a(_0xce0d79._0xd98491) ? _0xd279fb['threadId'] : void 0x0, _0x1d893c = typeof _0xd279fb[_0x545f3a(_0xce0d79._0x136dae)] === _0x545f3a(_0xce0d79._0x3fadc2) ? _0xd279fb['rootMessageId'] : void 0x0, _0x56e071 = typeof _0xd279fb[_0x545f3a(_0xce0d79._0x578596)] === _0x545f3a(0x204) && Number[_0x545f3a(0x1ee)](_0xd279fb[_0x545f3a(_0xce0d79._0x37c322)]) ? _0xd279fb[_0x545f3a(0x1c6)] : void 0x0, _0x23d229 = Boolean(_0x54d7cc && (!_0x1d893c || _0x346d51['aggregateId'] !== _0x1d893c)), _0x7b843e = _0x23d229 ? _0x2341b2 + ':' + _0x54d7cc : _0x2341b2, _0x5610b3 = _0xa4b514[_0x545f3a(0x1aa)](_0x7b843e) ?? {
|
|
1299
1287
|
'aggregateIds': [],
|
|
1300
|
-
'channelId':
|
|
1288
|
+
'channelId': _0x2341b2,
|
|
1301
1289
|
'entries': new Map(),
|
|
1302
|
-
'isThreadReply':
|
|
1303
|
-
'rootMessageId':
|
|
1304
|
-
'threadNumber':
|
|
1305
|
-
'threadId':
|
|
1290
|
+
'isThreadReply': _0x23d229,
|
|
1291
|
+
'rootMessageId': _0x1d893c,
|
|
1292
|
+
'threadNumber': _0x56e071,
|
|
1293
|
+
'threadId': _0x23d229 ? _0x54d7cc : void 0x0
|
|
1306
1294
|
};
|
|
1307
|
-
|
|
1308
|
-
'payloadJson':
|
|
1309
|
-
'seq':
|
|
1310
|
-
}),
|
|
1295
|
+
_0x5610b3[_0x545f3a(_0xce0d79._0x476395)] == null && _0x56e071 != null && (_0x5610b3[_0x545f3a(_0xce0d79._0x578596)] = _0x56e071), !_0x5610b3[_0x545f3a(0x157)] && _0x1d893c && (_0x5610b3[_0x545f3a(0x157)] = _0x1d893c), _0x5610b3[_0x545f3a(0x248)][_0x545f3a(0x201)](_0x346d51[_0x545f3a(0x127)]), _0x5610b3['entries'][_0x545f3a(0x244)](_0x346d51['aggregateId'], {
|
|
1296
|
+
'payloadJson': _0x346d51['payloadJson'],
|
|
1297
|
+
'seq': _0x346d51[_0x545f3a(_0xce0d79._0xa19156)]
|
|
1298
|
+
}), _0xa4b514[_0x545f3a(0x244)](_0x7b843e, _0x5610b3);
|
|
1311
1299
|
}
|
|
1312
|
-
const
|
|
1313
|
-
for (const
|
|
1300
|
+
const _0x203970 = [];
|
|
1301
|
+
for (const _0x345270 of _0xa4b514[_0x545f3a(0x179)]()) {
|
|
1314
1302
|
const {
|
|
1315
|
-
channelId:
|
|
1316
|
-
threadId:
|
|
1317
|
-
rootMessageId:
|
|
1318
|
-
threadNumber:
|
|
1319
|
-
aggregateIds:
|
|
1320
|
-
isThreadReply:
|
|
1321
|
-
entries:
|
|
1322
|
-
} =
|
|
1323
|
-
'channelTarget':
|
|
1324
|
-
'rootMessageId':
|
|
1325
|
-
'threadId':
|
|
1326
|
-
'threadNumber':
|
|
1327
|
-
},
|
|
1328
|
-
'channelId':
|
|
1329
|
-
'channelTarget':
|
|
1330
|
-
'limit': Math[
|
|
1331
|
-
'threadId':
|
|
1332
|
-
}),
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
])),
|
|
1336
|
-
for (const
|
|
1337
|
-
if (!
|
|
1303
|
+
channelId: _0x2b5a30,
|
|
1304
|
+
threadId: _0x1e20db,
|
|
1305
|
+
rootMessageId: _0x32f9fb,
|
|
1306
|
+
threadNumber: _0x3001c2,
|
|
1307
|
+
aggregateIds: _0x6a95c6,
|
|
1308
|
+
isThreadReply: _0x55d720,
|
|
1309
|
+
entries: _0x262b64
|
|
1310
|
+
} = _0x345270, _0x42e20b = _0x2dd054['get'](_0x2b5a30), _0x2afbc4 = _0x42e20b?.['name'] ?? _0x2b5a30, _0x47bcc5 = _0x42e20b?.[_0x545f3a(0x12b)] === 'dm' ? _0x545f3a(_0xce0d79._0x1e18ef) + _0x2afbc4 : '#' + _0x2afbc4, _0x34a141 = {
|
|
1311
|
+
'channelTarget': _0x47bcc5,
|
|
1312
|
+
'rootMessageId': _0x32f9fb,
|
|
1313
|
+
'threadId': _0x1e20db,
|
|
1314
|
+
'threadNumber': _0x3001c2
|
|
1315
|
+
}, _0x22e427 = await _0x5a16b2({
|
|
1316
|
+
'channelId': _0x2b5a30,
|
|
1317
|
+
'channelTarget': _0x47bcc5,
|
|
1318
|
+
'limit': Math[_0x545f3a(0x14b)](_0x6a95c6[_0x545f3a(0x137)], 0x32),
|
|
1319
|
+
'threadId': _0x1e20db
|
|
1320
|
+
}), _0x57b2d9 = new Map(_0x22e427[_0x545f3a(0x23a)][_0x545f3a(0x26e)](_0x479b0e => [
|
|
1321
|
+
_0x479b0e[_0x545f3a(0x112)],
|
|
1322
|
+
_0x479b0e
|
|
1323
|
+
])), _0x120e00 = _0x1e20db ? _0x4deb2f(_0x34a141) : _0x47bcc5, _0x483e73 = _0x1475d4 ? _0x55d720 && _0x241e2d(_0x1475d4, _0x34a141) : !![], _0x2fd2ca = _0x55d720 ? _0x483e73 && _0x1475d4 ? _0x1475d4 : _0x120e00 : _0x47bcc5;
|
|
1324
|
+
for (const _0x5e1b71 of _0x6a95c6) {
|
|
1325
|
+
if (!_0x483e73)
|
|
1338
1326
|
continue;
|
|
1339
|
-
const
|
|
1340
|
-
if (
|
|
1327
|
+
const _0x37c83e = _0x262b64[_0x545f3a(0x1aa)](_0x5e1b71), _0x332e11 = _0x37c83e ? asRecord(_0x37c83e[_0x545f3a(_0xce0d79._0x2e00ca)]) : void 0x0, _0x47b095 = _0x332e11?.[_0x545f3a(_0xce0d79._0x52f465)] === _0x545f3a(_0xce0d79._0x423463);
|
|
1328
|
+
if (_0x296313 && _0x47b095)
|
|
1341
1329
|
continue;
|
|
1342
|
-
const
|
|
1343
|
-
if (
|
|
1344
|
-
|
|
1345
|
-
'attachments':
|
|
1346
|
-
'content':
|
|
1347
|
-
'createdAt':
|
|
1348
|
-
...
|
|
1349
|
-
'messageId':
|
|
1350
|
-
'senderName':
|
|
1351
|
-
'senderType':
|
|
1352
|
-
'target':
|
|
1353
|
-
...
|
|
1330
|
+
const _0x2b41ed = _0x57b2d9[_0x545f3a(0x1aa)](_0x5e1b71);
|
|
1331
|
+
if (_0x2b41ed) {
|
|
1332
|
+
_0x203970[_0x545f3a(0x201)]({
|
|
1333
|
+
'attachments': _0x2b41ed[_0x545f3a(_0xce0d79._0x118465)],
|
|
1334
|
+
'content': _0x2b41ed[_0x545f3a(_0xce0d79._0x5394bf)],
|
|
1335
|
+
'createdAt': _0x2b41ed[_0x545f3a(0x1ba)],
|
|
1336
|
+
..._0x2b41ed[_0x545f3a(0x12b)] ? { 'kind': _0x2b41ed['kind'] } : {},
|
|
1337
|
+
'messageId': _0x2b41ed[_0x545f3a(0x112)],
|
|
1338
|
+
'senderName': _0x2b41ed[_0x545f3a(0x257)],
|
|
1339
|
+
'senderType': _0x2b41ed[_0x545f3a(_0xce0d79._0x5c1afb)],
|
|
1340
|
+
'target': _0x2fd2ca,
|
|
1341
|
+
..._0x47b095 ? { 'targetedTask': !![] } : {}
|
|
1354
1342
|
});
|
|
1355
1343
|
continue;
|
|
1356
1344
|
}
|
|
1357
|
-
if (
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1345
|
+
if (_0x37c83e) {
|
|
1346
|
+
const _0xa0367b = typeof _0x332e11?.[_0x545f3a(0x242)] === _0x545f3a(0x20f) ? _0x332e11['senderParticipantId'] : '', _0x5bbf77 = typeof _0x332e11?.['bodyMarkdown'] === _0x545f3a(0x20f) ? _0x332e11[_0x545f3a(_0xce0d79._0x5ce9a7)] : '', _0x540d44 = typeof _0x332e11?.[_0x545f3a(0x12b)] === _0x545f3a(0x20f) && _0x332e11[_0x545f3a(_0xce0d79._0x3eeb0d)] !== _0x545f3a(0x1dc) ? _0x332e11[_0x545f3a(0x12b)] : void 0x0;
|
|
1347
|
+
_0xa0367b && _0x5bbf77 && _0x203970['push']({
|
|
1360
1348
|
'attachments': [],
|
|
1361
|
-
'content':
|
|
1349
|
+
'content': _0x5bbf77,
|
|
1362
1350
|
'createdAt': new Date()['toISOString'](),
|
|
1363
|
-
...
|
|
1364
|
-
'messageId':
|
|
1365
|
-
'senderName':
|
|
1366
|
-
'senderType':
|
|
1367
|
-
'target':
|
|
1368
|
-
...
|
|
1351
|
+
..._0x540d44 ? { 'kind': _0x540d44 } : {},
|
|
1352
|
+
'messageId': _0x5e1b71,
|
|
1353
|
+
'senderName': _0xa0367b,
|
|
1354
|
+
'senderType': _0x4fc515(_0xa0367b, _0x1a5bd3),
|
|
1355
|
+
'target': _0x2fd2ca,
|
|
1356
|
+
..._0x47b095 ? { 'targetedTask': !![] } : {}
|
|
1369
1357
|
});
|
|
1370
1358
|
}
|
|
1371
1359
|
}
|
|
1372
1360
|
}
|
|
1373
|
-
if (
|
|
1374
|
-
if (
|
|
1375
|
-
await
|
|
1361
|
+
if (_0x13ee26 > 0x0) {
|
|
1362
|
+
if (_0x36eef5)
|
|
1363
|
+
await _0x5cdc8e(_0x13ee26);
|
|
1376
1364
|
else
|
|
1377
|
-
|
|
1365
|
+
_0x440a99 && await _0x33f45e(_0x13ee26);
|
|
1378
1366
|
}
|
|
1379
|
-
return
|
|
1367
|
+
return _0x13ee26 > _0x264d84 && (_0x264d84 = _0x13ee26), { 'messages': _0x1475d4 ? _0x203970 : _0x296313 ? _0x203970[_0x545f3a(0x27c)](_0xc6dddb => _0xc6dddb[_0x545f3a(0x103)] !== !![]) : _0x203970 };
|
|
1380
1368
|
}
|
|
1381
1369
|
};
|
|
1382
1370
|
}
|
|
1383
|
-
function toLocalTime(
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
return _0x4564a3;
|
|
1390
|
-
const _0x8a68ae = _0x373044 => String(_0x373044)[_0x3c4b93(0x322)](0x2, '0');
|
|
1391
|
-
return _0x401b9d['getFullYear']() + '-' + _0x8a68ae(_0x401b9d[_0x3c4b93(0x301)]() + 0x1) + '-' + _0x8a68ae(_0x401b9d[_0x3c4b93(0x1ec)]()) + '\x20' + _0x8a68ae(_0x401b9d[_0x3c4b93(0x28a)]()) + ':' + _0x8a68ae(_0x401b9d[_0x3c4b93(_0x2dc7e3._0x2e142b)]()) + ':' + _0x8a68ae(_0x401b9d[_0x3c4b93(_0x2dc7e3._0x55c514)]());
|
|
1371
|
+
function toLocalTime(_0x5a8327) {
|
|
1372
|
+
const _0x5c416a = { _0x29c0d7: 0x1c9 }, _0x54f219 = _0x1abe67, _0x16dd41 = new Date(_0x5a8327);
|
|
1373
|
+
if (Number['isNaN'](_0x16dd41['getTime']()))
|
|
1374
|
+
return _0x5a8327;
|
|
1375
|
+
const _0x4eb0ce = _0x499f81 => String(_0x499f81)[_0x54f219(0x225)](0x2, '0');
|
|
1376
|
+
return _0x16dd41[_0x54f219(0x166)]() + '-' + _0x4eb0ce(_0x16dd41[_0x54f219(0x27f)]() + 0x1) + '-' + _0x4eb0ce(_0x16dd41[_0x54f219(0x241)]()) + '\x20' + _0x4eb0ce(_0x16dd41[_0x54f219(0x172)]()) + ':' + _0x4eb0ce(_0x16dd41['getMinutes']()) + ':' + _0x4eb0ce(_0x16dd41[_0x54f219(_0x5c416a._0x29c0d7)]());
|
|
1392
1377
|
}
|
|
1393
|
-
function formatAttachmentSuffix(
|
|
1394
|
-
const
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1378
|
+
function formatAttachmentSuffix(_0x1bc10c) {
|
|
1379
|
+
const _0x23cefe = {
|
|
1380
|
+
_0x207232: 0x137,
|
|
1381
|
+
_0x24aecc: 0x26e,
|
|
1382
|
+
_0x36fbb8: 0x11d,
|
|
1383
|
+
_0x3a1b66: 0x223
|
|
1384
|
+
}, _0x3dd114 = _0x1abe67;
|
|
1385
|
+
if (!_0x1bc10c || _0x1bc10c[_0x3dd114(0x137)] === 0x0)
|
|
1400
1386
|
return '';
|
|
1401
|
-
return '\x20[' +
|
|
1387
|
+
return '\x20[' + _0x1bc10c['length'] + '\x20attachment' + (_0x1bc10c[_0x3dd114(_0x23cefe._0x207232)] > 0x1 ? 's' : '') + ':\x20' + _0x1bc10c[_0x3dd114(_0x23cefe._0x24aecc)](_0xe5fd70 => _0xe5fd70[_0x3dd114(0x22f)] + _0x3dd114(0x1ac) + _0xe5fd70['id'] + ')')[_0x3dd114(_0x23cefe._0x36fbb8)](',\x20') + _0x3dd114(_0x23cefe._0x3a1b66);
|
|
1402
1388
|
}
|
|
1403
|
-
function formatCheckMessages(
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
return _0x5c28ea[_0x2fb8ef(0x2c4)](_0x6dd674 => {
|
|
1419
|
-
const _0x352b1e = _0x2fb8ef, _0x341173 = _0x6dd674[_0x352b1e(_0x536076._0x106644)] === 'agent' ? _0x352b1e(0x1fe) : '', _0x338316 = _0x6dd674[_0x352b1e(_0x536076._0x10b993)] && _0x6dd674[_0x352b1e(_0x536076._0x33fbc3)] !== 'chat' ? _0x352b1e(_0x536076._0x456c68) + _0x6dd674[_0x352b1e(0x30f)] : '';
|
|
1420
|
-
return _0x352b1e(_0x536076._0x4a24b9) + _0x6dd674[_0x352b1e(0x327)] + _0x352b1e(_0x536076._0xfe568d) + _0x6dd674['messageId'][_0x352b1e(_0x536076._0x148892)](0x0, 0x8) + _0x352b1e(0x252) + toLocalTime(_0x6dd674[_0x352b1e(0x204)]) + _0x341173 + _0x338316 + _0x352b1e(0x235) + _0x6dd674['senderName'] + ':\x20' + _0x6dd674[_0x352b1e(0x29f)] + formatAttachmentSuffix(_0x6dd674[_0x352b1e(0x2f7)]);
|
|
1421
|
-
})[_0x2fb8ef(_0x54b6aa._0x504dda)]('\x0a');
|
|
1389
|
+
function formatCheckMessages(_0xe7c60) {
|
|
1390
|
+
const _0x2a282f = { _0x168b6e: 0x217 }, _0x10411c = {
|
|
1391
|
+
_0x548b8d: 0x1a7,
|
|
1392
|
+
_0x1f4e78: 0x12b,
|
|
1393
|
+
_0x40ace8: 0x1e7,
|
|
1394
|
+
_0x41ae50: 0x212,
|
|
1395
|
+
_0x2c8d63: 0x123,
|
|
1396
|
+
_0x41a9af: 0x199
|
|
1397
|
+
}, _0x578270 = _0x1abe67;
|
|
1398
|
+
if (_0xe7c60[_0x578270(0x137)] === 0x0)
|
|
1399
|
+
return _0x578270(_0x2a282f._0x168b6e);
|
|
1400
|
+
return _0xe7c60['map'](_0x5b5eb3 => {
|
|
1401
|
+
const _0xa42a25 = _0x578270, _0x582fab = _0x5b5eb3[_0xa42a25(_0x10411c._0x548b8d)] === 'agent' ? '\x20type=agent' : '', _0x345cc6 = _0x5b5eb3[_0xa42a25(_0x10411c._0x1f4e78)] && _0x5b5eb3[_0xa42a25(0x12b)] !== _0xa42a25(0x1dc) ? _0xa42a25(_0x10411c._0x40ace8) + _0x5b5eb3[_0xa42a25(_0x10411c._0x1f4e78)] : '';
|
|
1402
|
+
return _0xa42a25(0x183) + _0x5b5eb3[_0xa42a25(_0x10411c._0x41ae50)] + _0xa42a25(_0x10411c._0x2c8d63) + _0x5b5eb3[_0xa42a25(0x112)]['slice'](0x0, 0x8) + _0xa42a25(0x16d) + toLocalTime(_0x5b5eb3[_0xa42a25(0x1ba)]) + _0x582fab + _0x345cc6 + ']\x20@' + _0x5b5eb3['senderName'] + ':\x20' + _0x5b5eb3[_0xa42a25(_0x10411c._0x41a9af)] + formatAttachmentSuffix(_0x5b5eb3[_0xa42a25(0x1ff)]);
|
|
1403
|
+
})[_0x578270(0x11d)]('\x0a');
|
|
1422
1404
|
}
|
|
1423
|
-
function formatHistory(
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1405
|
+
function formatHistory(_0x11bfa4) {
|
|
1406
|
+
const _0x27f96e = {
|
|
1407
|
+
_0x188b1d: 0x23a,
|
|
1408
|
+
_0x436a5c: 0x15d,
|
|
1409
|
+
_0x14ba93: 0x23a,
|
|
1410
|
+
_0x28ec19: 0x26e,
|
|
1411
|
+
_0x5c2c48: 0x1db,
|
|
1412
|
+
_0x1b6c6b: 0x1a1,
|
|
1413
|
+
_0x335bf5: 0x137,
|
|
1414
|
+
_0x458612: 0x17b,
|
|
1415
|
+
_0x293419: 0x23a,
|
|
1416
|
+
_0x9def04: 0x202
|
|
1417
|
+
}, _0x3a4b73 = {
|
|
1418
|
+
_0x3bdf18: 0x12f,
|
|
1419
|
+
_0x5a5032: 0x12b,
|
|
1420
|
+
_0x59c35b: 0x1dc,
|
|
1421
|
+
_0x3e4fa2: 0x1e7,
|
|
1422
|
+
_0x51440d: 0x147,
|
|
1423
|
+
_0x551f60: 0x123,
|
|
1424
|
+
_0x2b74a5: 0x112,
|
|
1425
|
+
_0x4205fa: 0x1ba
|
|
1426
|
+
}, _0x222c6f = _0x1abe67;
|
|
1427
|
+
if (_0x11bfa4[_0x222c6f(_0x27f96e._0x188b1d)]['length'] === 0x0)
|
|
1428
|
+
return _0x222c6f(_0x27f96e._0x436a5c) + _0x11bfa4[_0x222c6f(0x17b)] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1429
|
+
const _0x1eb230 = _0x11bfa4[_0x222c6f(_0x27f96e._0x14ba93)][_0x222c6f(_0x27f96e._0x28ec19)](_0x191ae5 => {
|
|
1430
|
+
const _0x1a9e7f = _0x222c6f, _0xee016e = _0x191ae5[_0x1a9e7f(0x1a7)] === _0x1a9e7f(0x18f) ? _0x1a9e7f(_0x3a4b73._0x3bdf18) : '', _0x32da90 = _0x191ae5[_0x1a9e7f(_0x3a4b73._0x5a5032)] && _0x191ae5[_0x1a9e7f(0x12b)] !== _0x1a9e7f(_0x3a4b73._0x59c35b) ? _0x1a9e7f(_0x3a4b73._0x3e4fa2) + _0x191ae5[_0x1a9e7f(0x12b)] : '';
|
|
1431
|
+
return _0x1a9e7f(_0x3a4b73._0x51440d) + _0x191ae5[_0x1a9e7f(0x20d)] + _0x1a9e7f(_0x3a4b73._0x551f60) + _0x191ae5[_0x1a9e7f(_0x3a4b73._0x2b74a5)] + '\x20time=' + toLocalTime(_0x191ae5[_0x1a9e7f(_0x3a4b73._0x4205fa)]) + _0xee016e + _0x32da90 + ']\x20@' + _0x191ae5[_0x1a9e7f(0x257)] + ':\x20' + _0x191ae5['content'] + formatAttachmentSuffix(_0x191ae5['attachments']);
|
|
1432
|
+
})['join']('\x0a'), _0x159ff1 = _0x11bfa4['hasMore'] && _0x11bfa4[_0x222c6f(_0x27f96e._0x5c2c48)] ? _0x222c6f(_0x27f96e._0x1b6c6b) + _0x11bfa4['messages'][_0x222c6f(_0x27f96e._0x335bf5)] + _0x222c6f(0x12d) + _0x11bfa4[_0x222c6f(0x1db)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1433
|
+
return _0x222c6f(_0x27f96e._0x436a5c) + _0x11bfa4[_0x222c6f(_0x27f96e._0x458612)] + '\x20(' + _0x11bfa4[_0x222c6f(_0x27f96e._0x293419)][_0x222c6f(0x137)] + _0x222c6f(_0x27f96e._0x9def04) + _0x1eb230 + _0x159ff1;
|
|
1445
1434
|
}
|
|
1446
|
-
function formatServerDirectory(
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
_0x4527b0: 0x1f2,
|
|
1454
|
-
_0x5cae94: 0x236,
|
|
1455
|
-
_0xf2343d: 0x250
|
|
1456
|
-
}, _0x12bd4e = _0x54fce, _0x6d07b1 = _0x551daf[_0x12bd4e(_0x5262b6._0x4146b1)][_0x12bd4e(_0x5262b6._0x28b8ba)] > 0x0 ? _0x551daf[_0x12bd4e(_0x5262b6._0x5da312)][_0x12bd4e(_0x5262b6._0x39907e)](_0x64b3cf => _0x64b3cf[_0x12bd4e(0x2af)] ? _0x12bd4e(0x269) + _0x64b3cf['name'] + '\x20—\x20' + _0x64b3cf[_0x12bd4e(0x2af)] : _0x12bd4e(0x269) + _0x64b3cf['name'])['join']('\x0a') : _0x12bd4e(0x236), _0x23e7a9 = _0x551daf[_0x12bd4e(0x302)][_0x12bd4e(_0x5262b6._0x922456)] > 0x0 ? _0x551daf['agents']['map'](_0x1e11d9 => _0x12bd4e(0x254) + _0x1e11d9[_0x12bd4e(0x29c)])[_0x12bd4e(_0x5262b6._0x4527b0)]('\x0a') : _0x12bd4e(0x236), _0x301b6f = _0x551daf[_0x12bd4e(0x2dd)]['length'] > 0x0 ? _0x551daf['humans']['map'](_0x438e51 => _0x12bd4e(0x254) + _0x438e51[_0x12bd4e(0x29c)])['join']('\x0a') : _0x12bd4e(_0x5262b6._0x5cae94);
|
|
1435
|
+
function formatServerDirectory(_0x432bed) {
|
|
1436
|
+
const _0x588844 = {
|
|
1437
|
+
_0xe41e9b: 0x137,
|
|
1438
|
+
_0x33970f: 0x18e,
|
|
1439
|
+
_0x1decec: 0x14e,
|
|
1440
|
+
_0x34f7e1: 0x276
|
|
1441
|
+
}, _0x5e7772 = _0x1abe67, _0x365398 = _0x432bed['channels'][_0x5e7772(_0x588844._0xe41e9b)] > 0x0 ? _0x432bed['channels']['map'](_0x1b0f2a => _0x1b0f2a[_0x5e7772(0x262)] ? _0x5e7772(0x282) + _0x1b0f2a['name'] + _0x5e7772(0x10a) + _0x1b0f2a[_0x5e7772(0x262)] : _0x5e7772(0x282) + _0x1b0f2a[_0x5e7772(0x184)])[_0x5e7772(0x11d)]('\x0a') : '(none)', _0x1bbe5a = _0x432bed['agents'][_0x5e7772(0x137)] > 0x0 ? _0x432bed[_0x5e7772(0x148)][_0x5e7772(0x26e)](_0x1200dc => '-\x20@' + _0x1200dc[_0x5e7772(0x184)])['join']('\x0a') : '(none)', _0x1e853b = _0x432bed[_0x5e7772(_0x588844._0x33970f)][_0x5e7772(0x137)] > 0x0 ? _0x432bed[_0x5e7772(0x18e)][_0x5e7772(0x26e)](_0x3d0976 => _0x5e7772(0x209) + _0x3d0976[_0x5e7772(0x184)])['join']('\x0a') : _0x5e7772(_0x588844._0x1decec);
|
|
1457
1442
|
return [
|
|
1458
|
-
|
|
1443
|
+
_0x5e7772(0x27b) + _0x432bed[_0x5e7772(0x222)],
|
|
1459
1444
|
'',
|
|
1460
|
-
|
|
1461
|
-
|
|
1445
|
+
_0x5e7772(0x1f0),
|
|
1446
|
+
_0x365398,
|
|
1462
1447
|
'',
|
|
1463
|
-
|
|
1464
|
-
|
|
1448
|
+
_0x5e7772(0x21a),
|
|
1449
|
+
_0x1bbe5a,
|
|
1465
1450
|
'',
|
|
1466
|
-
|
|
1467
|
-
|
|
1451
|
+
_0x5e7772(_0x588844._0x34f7e1),
|
|
1452
|
+
_0x1e853b
|
|
1468
1453
|
]['join']('\x0a');
|
|
1469
1454
|
}
|
|
1470
|
-
function formatUploadResult(
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1455
|
+
function formatUploadResult(_0x4efff4) {
|
|
1456
|
+
const _0x3b6491 = {
|
|
1457
|
+
_0x227a1f: 0x1cb,
|
|
1458
|
+
_0x585323: 0x17f,
|
|
1459
|
+
_0x2a5bfc: 0x277,
|
|
1460
|
+
_0x2a63a4: 0x114
|
|
1461
|
+
}, _0x407c6c = _0x1abe67;
|
|
1462
|
+
return _0x407c6c(0x1d2) + _0x4efff4[_0x407c6c(0x22f)] + '\x20(' + (_0x4efff4[_0x407c6c(_0x3b6491._0x227a1f)] / 0x400)[_0x407c6c(_0x3b6491._0x585323)](0x1) + _0x407c6c(_0x3b6491._0x2a5bfc) + _0x4efff4[_0x407c6c(0x17d)] + _0x407c6c(_0x3b6491._0x2a63a4);
|
|
1476
1463
|
}
|
|
1477
|
-
function formatViewFileResult(
|
|
1478
|
-
const
|
|
1479
|
-
return
|
|
1464
|
+
function formatViewFileResult(_0x4d6cf3, _0x3bacdd) {
|
|
1465
|
+
const _0x8a2447 = { _0x12522a: 0x214 }, _0x50bcc3 = _0x1abe67;
|
|
1466
|
+
return _0x3bacdd ? _0x50bcc3(_0x8a2447._0x12522a) + _0x4d6cf3 : _0x50bcc3(0x260) + _0x4d6cf3;
|
|
1480
1467
|
}
|
|
1481
|
-
function formatTaskList(
|
|
1482
|
-
const
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
if (_0x302208['length'] === 0x0)
|
|
1495
|
-
return _0x16e039(0x2cc);
|
|
1496
|
-
return _0x302208[_0x16e039(_0x5902ca._0x59652d)](_0x2256ff => {
|
|
1497
|
-
const _0x479cfb = _0x16e039, _0x4664b1 = _0x2256ff[_0x479cfb(_0x4ee501._0x1203e1)] == null ? '(legacy)' : _0x2256ff[_0x479cfb(_0x4ee501._0x5af76e)] != null ? '#' + _0x2256ff[_0x479cfb(0x247)] + '.' + _0x2256ff[_0x479cfb(0x2de)] : '#' + _0x2256ff[_0x479cfb(0x247)], _0x5a54a7 = _0x2256ff[_0x479cfb(_0x4ee501._0x4c97d1)] ? _0x479cfb(_0x4ee501._0x4bd0c9) + _0x2256ff[_0x479cfb(_0x4ee501._0x5b9c33)] : '', _0x92f79e = _0x168102 && _0x2256ff['taskNumber'] != null && !_0x2256ff['subtaskNumber'] && _0x168102[_0x479cfb(_0x4ee501._0x205334)](_0x2256ff[_0x479cfb(0x247)]) ? _0x479cfb(0x20d) : '', _0x17db2f = _0x2256ff[_0x479cfb(0x25b)] != null && _0x2256ff[_0x479cfb(0x25b)] > 0x0 ? '\x20(' + (_0x2256ff[_0x479cfb(_0x4ee501._0x12dfaf)] ?? 0x0) + '/' + _0x2256ff[_0x479cfb(0x25b)] + _0x479cfb(0x1b9) : '';
|
|
1498
|
-
return _0x4664b1 + '\x20[' + _0x2256ff['status'] + ']\x20' + _0x2256ff['title'] + _0x17db2f + _0x5a54a7 + _0x92f79e;
|
|
1499
|
-
})[_0x16e039(_0x5902ca._0x3e1d15)]('\x0a');
|
|
1468
|
+
function formatTaskList(_0x3c7ce4, _0x3f78bc) {
|
|
1469
|
+
const _0x464feb = {
|
|
1470
|
+
_0x1b98ff: 0x229,
|
|
1471
|
+
_0x30aa45: 0x125,
|
|
1472
|
+
_0x367e53: 0x112,
|
|
1473
|
+
_0x50fb6f: 0x22d
|
|
1474
|
+
}, _0x3c5a16 = _0x1abe67;
|
|
1475
|
+
if (_0x3c7ce4[_0x3c5a16(0x137)] === 0x0)
|
|
1476
|
+
return 'No\x20tasks\x20found.';
|
|
1477
|
+
return _0x3c7ce4['map'](_0x50c4d4 => {
|
|
1478
|
+
const _0x5705c8 = _0x3c5a16, _0x401678 = _0x50c4d4[_0x5705c8(0x229)] == null ? '(legacy)' : _0x50c4d4['subtaskNumber'] != null ? '#' + _0x50c4d4[_0x5705c8(0x229)] + '.' + _0x50c4d4[_0x5705c8(0x22d)] : '#' + _0x50c4d4[_0x5705c8(_0x464feb._0x1b98ff)], _0x219a46 = _0x50c4d4[_0x5705c8(0x112)] ? _0x5705c8(_0x464feb._0x30aa45) + _0x50c4d4[_0x5705c8(_0x464feb._0x367e53)] : '', _0xbf9ab1 = _0x3f78bc && _0x50c4d4[_0x5705c8(0x229)] != null && !_0x50c4d4[_0x5705c8(_0x464feb._0x50fb6f)] && _0x3f78bc[_0x5705c8(0x118)](_0x50c4d4[_0x5705c8(0x229)]) ? _0x5705c8(0x19e) : '', _0x310a38 = _0x50c4d4[_0x5705c8(0x273)] != null && _0x50c4d4[_0x5705c8(0x273)] > 0x0 ? '\x20(' + (_0x50c4d4['childrenDone'] ?? 0x0) + '/' + _0x50c4d4[_0x5705c8(0x273)] + _0x5705c8(0x131) : '';
|
|
1479
|
+
return _0x401678 + '\x20[' + _0x50c4d4['status'] + ']\x20' + _0x50c4d4[_0x5705c8(0x235)] + _0x310a38 + _0x219a46 + _0xbf9ab1;
|
|
1480
|
+
})['join']('\x0a');
|
|
1500
1481
|
}
|
|
1501
|
-
function formatCreatedTasks(
|
|
1502
|
-
const
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
},
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1482
|
+
function formatCreatedTasks(_0x524583) {
|
|
1483
|
+
const _0x151256 = {
|
|
1484
|
+
_0xe3b958: 0x180,
|
|
1485
|
+
_0x5aad3b: 0x11d
|
|
1486
|
+
}, _0x538c71 = {
|
|
1487
|
+
_0x4c1a46: 0x22d,
|
|
1488
|
+
_0x64edca: 0x22d,
|
|
1489
|
+
_0xca9b4c: 0x229,
|
|
1490
|
+
_0x124dee: 0x125,
|
|
1491
|
+
_0x1732d1: 0x235
|
|
1492
|
+
}, _0x10441 = _0x1abe67;
|
|
1493
|
+
if (_0x524583[_0x10441(0x137)] === 0x0)
|
|
1494
|
+
return _0x10441(_0x151256._0xe3b958);
|
|
1495
|
+
return _0x524583['map'](_0x5ed15a => {
|
|
1496
|
+
const _0x11b4ef = _0x10441, _0x4c14b6 = _0x5ed15a['taskNumber'] == null ? _0x11b4ef(0x117) : _0x5ed15a[_0x11b4ef(_0x538c71._0x4c1a46)] != null ? '#' + _0x5ed15a[_0x11b4ef(0x229)] + '.' + _0x5ed15a[_0x11b4ef(_0x538c71._0x64edca)] : '#' + _0x5ed15a[_0x11b4ef(_0x538c71._0xca9b4c)], _0x23908e = _0x5ed15a['messageId'] ? _0x11b4ef(_0x538c71._0x124dee) + _0x5ed15a[_0x11b4ef(0x112)] : '';
|
|
1497
|
+
return _0x4c14b6 + '\x20' + _0x5ed15a[_0x11b4ef(_0x538c71._0x1732d1)] + _0x23908e;
|
|
1498
|
+
})[_0x10441(_0x151256._0x5aad3b)]('\x0a');
|
|
1516
1499
|
}
|
|
1517
|
-
function formatClaimTaskResults(
|
|
1518
|
-
const
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
return _0x4019ad + _0x337076(0x2f9) + _0x324e69 + '\x20' + _0x320d62 + _0x337076(0x1ba);
|
|
1500
|
+
function formatClaimTaskResults(_0x581b20) {
|
|
1501
|
+
const _0x2d3425 = { _0x3516b8: 0x137 }, _0x11020b = {
|
|
1502
|
+
_0x179176: 0x229,
|
|
1503
|
+
_0xd778fa: 0x22d,
|
|
1504
|
+
_0x28b30a: 0x22d,
|
|
1505
|
+
_0x13474d: 0x125,
|
|
1506
|
+
_0x3e4f43: 0x246,
|
|
1507
|
+
_0x48a7f7: 0x130,
|
|
1508
|
+
_0x3f509b: 0x249,
|
|
1509
|
+
_0x5b6302: 0x15b,
|
|
1510
|
+
_0x473e06: 0x149,
|
|
1511
|
+
_0x361c9d: 0x27c,
|
|
1512
|
+
_0x10f9b7: 0x19a,
|
|
1513
|
+
_0x4d31ae: 0x278
|
|
1514
|
+
}, _0x69c49c = _0x1abe67;
|
|
1515
|
+
if (_0x581b20[_0x69c49c(_0x2d3425._0x3516b8)] === 0x0)
|
|
1516
|
+
return _0x69c49c(0x1e2);
|
|
1517
|
+
return _0x581b20[_0x69c49c(0x26e)](_0x114407 => {
|
|
1518
|
+
const _0x128793 = _0x69c49c;
|
|
1519
|
+
if (_0x114407['success']) {
|
|
1520
|
+
const _0x494792 = _0x114407[_0x128793(_0x11020b._0x179176)] == null ? '(legacy)' : _0x114407[_0x128793(_0x11020b._0xd778fa)] != null ? '#' + _0x114407['taskNumber'] + '.' + _0x114407[_0x128793(_0x11020b._0x28b30a)] : '#' + _0x114407[_0x128793(_0x11020b._0x179176)], _0xc04441 = _0x114407[_0x128793(0x112)] ? _0x128793(_0x11020b._0x13474d) + _0x114407['messageId'] : '';
|
|
1521
|
+
if (_0x114407[_0x128793(_0x11020b._0x3e4f43)]) {
|
|
1522
|
+
const _0x2ae252 = [
|
|
1523
|
+
_0x128793(_0x11020b._0x48a7f7),
|
|
1524
|
+
_0x114407[_0x128793(0x1bd)] ? 'stopMain=true' : null,
|
|
1525
|
+
_0x114407[_0x128793(_0x11020b._0x3f509b)] ? _0x128793(_0x11020b._0x5b6302) + _0x114407[_0x128793(_0x11020b._0x3f509b)] : null,
|
|
1526
|
+
_0x114407['threadTarget'] ? 'threadTarget=' + _0x114407[_0x128793(_0x11020b._0x473e06)] : null,
|
|
1527
|
+
_0x114407['workerDisposition'] ? 'workerDisposition=' + _0x114407[_0x128793(0x20a)] : null
|
|
1528
|
+
][_0x128793(_0x11020b._0x361c9d)](Boolean)['join']('\x20');
|
|
1529
|
+
return _0x494792 + _0x128793(_0x11020b._0x10f9b7) + _0xc04441 + '\x20' + _0x2ae252 + _0x128793(0x1f1);
|
|
1548
1530
|
}
|
|
1549
|
-
const
|
|
1550
|
-
return
|
|
1531
|
+
const _0x4df331 = _0x114407['workerHandoffError'] ? _0x128793(_0x11020b._0x4d31ae) + _0x114407[_0x128793(0x1f7)] : '';
|
|
1532
|
+
return _0x494792 + _0x128793(_0x11020b._0x10f9b7) + _0xc04441 + _0x4df331;
|
|
1551
1533
|
}
|
|
1552
|
-
const
|
|
1553
|
-
return
|
|
1554
|
-
})[
|
|
1534
|
+
const _0x1f7c5b = _0x114407[_0x128793(0x229)] == null ? _0x114407['messageId'] ?? '(unknown)' : '#' + _0x114407[_0x128793(_0x11020b._0x179176)];
|
|
1535
|
+
return _0x1f7c5b + _0x128793(0x1c3) + (_0x114407[_0x128793(0x27a)] ?? _0x128793(0x219));
|
|
1536
|
+
})['join']('\x0a');
|
|
1555
1537
|
}
|
|
1556
|
-
function formatUnclaimTaskResult(
|
|
1557
|
-
const
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1538
|
+
function formatUnclaimTaskResult(_0x14e820) {
|
|
1539
|
+
const _0x259781 = {
|
|
1540
|
+
_0x3b7458: 0x229,
|
|
1541
|
+
_0x57eb7f: 0x117,
|
|
1542
|
+
_0x490ba9: 0x22d,
|
|
1543
|
+
_0x3a2992: 0x229,
|
|
1544
|
+
_0x73601a: 0x229
|
|
1545
|
+
}, _0x4df05a = _0x1abe67, _0x3fd515 = _0x14e820[_0x4df05a(_0x259781._0x3b7458)] == null ? _0x4df05a(_0x259781._0x57eb7f) : _0x14e820[_0x4df05a(_0x259781._0x490ba9)] != null ? '#' + _0x14e820[_0x4df05a(_0x259781._0x3a2992)] + '.' + _0x14e820[_0x4df05a(0x22d)] : '#' + _0x14e820[_0x4df05a(_0x259781._0x73601a)];
|
|
1546
|
+
return _0x3fd515 + '\x20status=' + _0x14e820[_0x4df05a(0x195)];
|
|
1564
1547
|
}
|
|
1565
|
-
function formatUpdateTaskStatusResult(
|
|
1566
|
-
const
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
return _0x5bd349 + _0x2c2b5c(0x1e2) + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x545174)];
|
|
1548
|
+
function formatUpdateTaskStatusResult(_0x2d5e46) {
|
|
1549
|
+
const _0x18654b = {
|
|
1550
|
+
_0x135111: 0x229,
|
|
1551
|
+
_0x3de9a7: 0x263
|
|
1552
|
+
}, _0xb73c7e = _0x1abe67, _0x31e72b = _0x2d5e46[_0xb73c7e(0x229)] == null ? _0xb73c7e(0x117) : _0x2d5e46[_0xb73c7e(0x22d)] != null ? '#' + _0x2d5e46[_0xb73c7e(0x229)] + '.' + _0x2d5e46['subtaskNumber'] : '#' + _0x2d5e46[_0xb73c7e(_0x18654b._0x135111)];
|
|
1553
|
+
return _0x31e72b + _0xb73c7e(_0x18654b._0x3de9a7) + _0x2d5e46['status'];
|
|
1572
1554
|
}
|
|
1573
1555
|
function getChatBridgeToolDefinitions() {
|
|
1574
|
-
const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
_0x453559: 0x2f0,
|
|
1581
|
-
_0x27972e: 0x1a2
|
|
1582
|
-
}, _0x4c52f2 = _0x54fce;
|
|
1556
|
+
const _0x1689c2 = {
|
|
1557
|
+
_0x565233: 0x1d8,
|
|
1558
|
+
_0xede457: 0x1e4,
|
|
1559
|
+
_0x44640b: 0x120,
|
|
1560
|
+
_0x37e5a1: 0x1f6
|
|
1561
|
+
}, _0xb500f5 = _0x1abe67;
|
|
1583
1562
|
return [
|
|
1584
|
-
{ 'name':
|
|
1585
|
-
{ 'name':
|
|
1586
|
-
{ 'name':
|
|
1587
|
-
{ 'name':
|
|
1588
|
-
{ 'name':
|
|
1589
|
-
{ 'name':
|
|
1590
|
-
{ 'name':
|
|
1591
|
-
{ 'name':
|
|
1592
|
-
{ 'name':
|
|
1593
|
-
{ 'name':
|
|
1594
|
-
{ 'name':
|
|
1595
|
-
{ 'name':
|
|
1596
|
-
{ 'name':
|
|
1597
|
-
{ 'name':
|
|
1598
|
-
{ 'name':
|
|
1599
|
-
{ 'name': _0x4c52f2(0x20b) }
|
|
1563
|
+
{ 'name': _0xb500f5(_0x1689c2._0x565233) },
|
|
1564
|
+
{ 'name': _0xb500f5(_0x1689c2._0xede457) },
|
|
1565
|
+
{ 'name': _0xb500f5(0x126) },
|
|
1566
|
+
{ 'name': _0xb500f5(0x1a0) },
|
|
1567
|
+
{ 'name': _0xb500f5(0x1af) },
|
|
1568
|
+
{ 'name': _0xb500f5(0x203) },
|
|
1569
|
+
{ 'name': _0xb500f5(0x247) },
|
|
1570
|
+
{ 'name': _0xb500f5(0x177) },
|
|
1571
|
+
{ 'name': 'claim_tasks' },
|
|
1572
|
+
{ 'name': _0xb500f5(0x185) },
|
|
1573
|
+
{ 'name': _0xb500f5(0x116) },
|
|
1574
|
+
{ 'name': _0xb500f5(0x1f5) },
|
|
1575
|
+
{ 'name': _0xb500f5(0x176) },
|
|
1576
|
+
{ 'name': _0xb500f5(_0x1689c2._0x44640b) },
|
|
1577
|
+
{ 'name': _0xb500f5(_0x1689c2._0x37e5a1) }
|
|
1600
1578
|
];
|
|
1601
1579
|
}
|
|
1602
|
-
function createChatBridgeHandlers(
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
},
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1580
|
+
function createChatBridgeHandlers(_0x5759e0) {
|
|
1581
|
+
const _0x3dc014 = { _0x46b403: 0x12a }, _0x54e04d = {
|
|
1582
|
+
_0x4a7650: 0x192,
|
|
1583
|
+
_0xedb61f: 0x175,
|
|
1584
|
+
_0x4a15a9: 0x100,
|
|
1585
|
+
_0x364c8e: 0x24e,
|
|
1586
|
+
_0x5b1a32: 0x240,
|
|
1587
|
+
_0x56d255: 0x1e8,
|
|
1588
|
+
_0x3590a3: 0x27a
|
|
1589
|
+
}, _0x519f24 = {
|
|
1590
|
+
_0x305854: 0x226,
|
|
1591
|
+
_0x90d8ee: 0x24e,
|
|
1592
|
+
_0x398b5e: 0x153,
|
|
1593
|
+
_0xa45b7a: 0x234,
|
|
1594
|
+
_0x3fc418: 0x1ed
|
|
1595
|
+
}, _0x6b056d = {
|
|
1596
|
+
_0xa12ed7: 0x175,
|
|
1597
|
+
_0x2805ee: 0x101,
|
|
1598
|
+
_0x2feaba: 0x240,
|
|
1599
|
+
_0x29668f: 0x153
|
|
1600
|
+
}, _0x5b5b5f = {
|
|
1601
|
+
_0x1d3d93: 0x11b,
|
|
1602
|
+
_0x131e8c: 0x1ed,
|
|
1603
|
+
_0x1d4a09: 0x234,
|
|
1604
|
+
_0x1c2345: 0x195
|
|
1605
|
+
}, _0x4b9615 = {
|
|
1606
|
+
_0x46ceb8: 0x13c,
|
|
1607
|
+
_0x4da892: 0x20b,
|
|
1608
|
+
_0x33cb1e: 0x25b,
|
|
1609
|
+
_0x18225b: 0x1c1
|
|
1610
|
+
}, _0x4a82cc = { _0x349b38: 0x221 }, _0x48cdb2 = { _0xf9519c: 0x254 }, _0x3f806a = {
|
|
1611
|
+
_0x5a1fef: 0x185,
|
|
1612
|
+
_0x3087e4: 0x1bc,
|
|
1613
|
+
_0x3baa33: 0x21f
|
|
1614
|
+
}, _0x44ed88 = {
|
|
1615
|
+
_0x275f2d: 0x181,
|
|
1616
|
+
_0x337032: 0x181,
|
|
1617
|
+
_0x328bcf: 0x137,
|
|
1618
|
+
_0x972112: 0x137,
|
|
1619
|
+
_0x507ede: 0x16b,
|
|
1620
|
+
_0x3d9290: 0x169,
|
|
1621
|
+
_0xb1f8df: 0x26e
|
|
1622
|
+
}, _0xdbee86 = {
|
|
1623
|
+
_0x34c3e8: 0x206,
|
|
1624
|
+
_0x36cac9: 0x26b,
|
|
1625
|
+
_0x40b6d1: 0x1c6,
|
|
1626
|
+
_0x5a643e: 0x155
|
|
1627
|
+
}, _0x24b687 = {
|
|
1628
|
+
_0x35ee7d: 0x1b6,
|
|
1629
|
+
_0x4284b9: 0x240,
|
|
1630
|
+
_0x2bf69d: 0x17b,
|
|
1631
|
+
_0x52d9b1: 0x186,
|
|
1632
|
+
_0x1bb6a8: 0x151,
|
|
1633
|
+
_0x24f117: 0x229,
|
|
1634
|
+
_0x3368a2: 0x232,
|
|
1635
|
+
_0x1951f8: 0x229,
|
|
1636
|
+
_0x198e93: 0x1c7,
|
|
1637
|
+
_0x23713a: 0x104
|
|
1638
|
+
}, _0x266ffc = { _0x250be9: 0x143 }, _0x2ec9b5 = { _0x238125: 0x143 }, _0x21e9c4 = { _0x5d2335: 0x143 }, _0x17b61d = {
|
|
1639
|
+
_0xe8ae48: 0x1ca,
|
|
1640
|
+
_0x330d70: 0x229,
|
|
1641
|
+
_0xf7a759: 0x10b,
|
|
1642
|
+
_0x5152c8: 0x117,
|
|
1643
|
+
_0x5cd90d: 0x1c6,
|
|
1644
|
+
_0x2defe3: 0x1c6,
|
|
1645
|
+
_0x5212cd: 0x212,
|
|
1646
|
+
_0x2e8a24: 0x1a6,
|
|
1647
|
+
_0x577f3a: 0x113,
|
|
1648
|
+
_0x4bec55: 0x199,
|
|
1649
|
+
_0x13415a: 0x10b,
|
|
1650
|
+
_0x505178: 0x26b,
|
|
1651
|
+
_0x4de290: 0x24c,
|
|
1652
|
+
_0x6102ae: 0x145,
|
|
1653
|
+
_0x95af41: 0x164,
|
|
1654
|
+
_0x3295c8: 0x101,
|
|
1655
|
+
_0x509d38: 0x240,
|
|
1656
|
+
_0x2d8d0b: 0x161,
|
|
1657
|
+
_0x4cf42f: 0x16f,
|
|
1658
|
+
_0x2af966: 0x15f,
|
|
1659
|
+
_0x48a6b1: 0x11d,
|
|
1660
|
+
_0x1530d8: 0x143,
|
|
1661
|
+
_0x3d4eb5: 0x16e,
|
|
1662
|
+
_0x52df94: 0x22c,
|
|
1663
|
+
_0xda3509: 0x112
|
|
1664
|
+
}, _0x2458e7 = {
|
|
1665
|
+
_0xfb5130: 0x192,
|
|
1666
|
+
_0x591468: 0x1b6,
|
|
1667
|
+
_0x412ee2: 0x192,
|
|
1668
|
+
_0x194b8c: 0x139,
|
|
1669
|
+
_0x26ea85: 0x118,
|
|
1670
|
+
_0x4df912: 0x151
|
|
1671
|
+
}, _0x3556c0 = {
|
|
1672
|
+
_0x4cf373: 0x192,
|
|
1673
|
+
_0x117016: 0x1b6,
|
|
1674
|
+
_0x296a89: 0x1ad
|
|
1675
|
+
}, _0x43567a = {
|
|
1676
|
+
_0x97b91d: 0x192,
|
|
1677
|
+
_0x72c1ac: 0x1b6,
|
|
1678
|
+
_0xb94a17: 0x17b,
|
|
1679
|
+
_0x5e622a: 0x12c,
|
|
1680
|
+
_0x26ac74: 0x1c6,
|
|
1681
|
+
_0x275424: 0x232,
|
|
1682
|
+
_0x4f28f8: 0x117,
|
|
1683
|
+
_0x49d59a: 0x183,
|
|
1684
|
+
_0xd85064: 0x1ea,
|
|
1685
|
+
_0xb75574: 0x193,
|
|
1686
|
+
_0x38a58d: 0x215,
|
|
1687
|
+
_0x4253ef: 0x1cf,
|
|
1688
|
+
_0xc67c02: 0x112,
|
|
1689
|
+
_0x13222c: 0x267,
|
|
1690
|
+
_0xe0010d: 0x11d,
|
|
1691
|
+
_0x3142b1: 0x24e,
|
|
1692
|
+
_0x468c85: 0x26b,
|
|
1693
|
+
_0x2659dd: 0x229,
|
|
1694
|
+
_0x539cea: 0xff,
|
|
1695
|
+
_0x2c66fc: 0x155,
|
|
1696
|
+
_0x533098: 0xfe,
|
|
1697
|
+
_0x53eb87: 0x16f,
|
|
1698
|
+
_0x1a4731: 0x15f,
|
|
1699
|
+
_0x38263b: 0x1b3
|
|
1700
|
+
}, _0x2ab831 = {
|
|
1701
|
+
_0xb0947a: 0x1c4,
|
|
1702
|
+
_0xf05cba: 0x14d
|
|
1703
|
+
}, _0x1ed21a = _0x1abe67;
|
|
1704
|
+
function _0x5b223d(_0x25b107, _0x54ed58) {
|
|
1705
|
+
const _0x453fc1 = _0x4282;
|
|
1706
|
+
if (!_0x5759e0['workerMode'])
|
|
1707
|
+
return;
|
|
1708
|
+
if (!_0x5759e0['workerThreadTarget'])
|
|
1709
|
+
throw new Error(_0x25b107 + _0x453fc1(0x239));
|
|
1710
|
+
if (_0x54ed58 !== _0x5759e0[_0x453fc1(0x1b8)])
|
|
1711
|
+
throw new Error(_0x25b107 + _0x453fc1(_0x2ab831._0xb0947a) + _0x5759e0[_0x453fc1(0x1b8)] + _0x453fc1(_0x2ab831._0xf05cba) + _0x54ed58);
|
|
1712
|
+
}
|
|
1713
|
+
async function _0x4e0d49(_0x5a1b80) {
|
|
1714
|
+
const _0x5249dd = _0x4282;
|
|
1715
|
+
if (!_0x5759e0[_0x5249dd(_0x43567a._0x97b91d)] || !_0x5759e0[_0x5249dd(_0x43567a._0x72c1ac)] || _0x5759e0['workerMode'] || _0x5759e0['workerModeEnabled'] !== !![])
|
|
1730
1716
|
return null;
|
|
1731
|
-
const
|
|
1732
|
-
if (
|
|
1717
|
+
const _0x16006b = parseTarget(_0x5a1b80[_0x5249dd(_0x43567a._0xb94a17)]);
|
|
1718
|
+
if (_0x16006b[_0x5249dd(0x12b)] !== 'channel')
|
|
1733
1719
|
return null;
|
|
1734
|
-
const
|
|
1735
|
-
let
|
|
1720
|
+
const _0x5477f7 = _0x5a1b80[_0x5249dd(0x1c6)] != null ? _0x16006b[_0x5249dd(_0x43567a._0x5e622a)] + ':t' + _0x5a1b80[_0x5249dd(_0x43567a._0x26ac74)] : _0x16006b['channelTarget'] + ':' + _0x5a1b80[_0x5249dd(0x112)];
|
|
1721
|
+
let _0x3614a4;
|
|
1736
1722
|
try {
|
|
1737
|
-
const
|
|
1738
|
-
'channel':
|
|
1723
|
+
const _0x56f0f3 = await _0x5759e0[_0x5249dd(0x143)]['readHistory']({
|
|
1724
|
+
'channel': _0x5477f7,
|
|
1739
1725
|
'limit': 0x14
|
|
1740
1726
|
});
|
|
1741
|
-
|
|
1727
|
+
_0x3614a4 = _0x56f0f3['messages'][_0x5249dd(_0x43567a._0x275424)](_0x2ea8bc => _0x2ea8bc[_0x5249dd(0x112)] === _0x5a1b80[_0x5249dd(0x112)]);
|
|
1742
1728
|
} catch {
|
|
1743
|
-
|
|
1729
|
+
_0x3614a4 = void 0x0;
|
|
1744
1730
|
}
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1731
|
+
const _0x2cdf39 = _0x5a1b80['taskNumber'] == null ? _0x5249dd(_0x43567a._0x4f28f8) : '#' + _0x5a1b80['taskNumber'], _0xd42352 = [
|
|
1732
|
+
_0x5249dd(_0x43567a._0x49d59a) + _0x5477f7 + '\x20msg=' + _0x5a1b80[_0x5249dd(0x112)][_0x5249dd(_0x43567a._0xd85064)](0x0, 0x8) + '\x20time=' + new Date()[_0x5249dd(0x113)]() + _0x5249dd(_0x43567a._0xb75574) + _0x2cdf39 + _0x5249dd(0x14a),
|
|
1747
1733
|
'',
|
|
1748
|
-
|
|
1734
|
+
_0x3614a4 ? _0x5249dd(_0x43567a._0x38a58d) + _0x3614a4['content'] : _0x5249dd(_0x43567a._0x4253ef) + _0x5a1b80[_0x5249dd(_0x43567a._0xc67c02)],
|
|
1749
1735
|
'',
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
][
|
|
1753
|
-
'method':
|
|
1754
|
-
'headers': { 'Content-Type':
|
|
1755
|
-
'body': JSON[
|
|
1756
|
-
'agent_id':
|
|
1757
|
-
'thread_target':
|
|
1736
|
+
_0x5249dd(0x24c) + _0x5477f7,
|
|
1737
|
+
_0x5249dd(_0x43567a._0x13222c)
|
|
1738
|
+
][_0x5249dd(_0x43567a._0xe0010d)]('\x0a'), _0x47cb32 = await fetch(_0x5759e0[_0x5249dd(0x192)] + '/workers/deliver', {
|
|
1739
|
+
'method': _0x5249dd(_0x43567a._0x3142b1),
|
|
1740
|
+
'headers': { 'Content-Type': _0x5249dd(0x101) },
|
|
1741
|
+
'body': JSON[_0x5249dd(0x1ec)]({
|
|
1742
|
+
'agent_id': _0x5759e0['agentId'],
|
|
1743
|
+
'thread_target': _0x5477f7,
|
|
1758
1744
|
'spawn_packet': {
|
|
1759
|
-
'replyTarget':
|
|
1760
|
-
...
|
|
1745
|
+
'replyTarget': _0x5477f7,
|
|
1746
|
+
..._0x5a1b80[_0x5249dd(_0x43567a._0x468c85)] ? { 'taskId': _0x5a1b80[_0x5249dd(_0x43567a._0x468c85)] } : _0x5a1b80[_0x5249dd(_0x43567a._0x2659dd)] != null ? { 'taskId': _0x5249dd(0x1a9) + _0x5a1b80[_0x5249dd(0x229)] } : {}
|
|
1761
1747
|
},
|
|
1762
1748
|
'payload': {
|
|
1763
|
-
'mode':
|
|
1764
|
-
'text':
|
|
1749
|
+
'mode': _0x5249dd(_0x43567a._0x539cea),
|
|
1750
|
+
'text': _0xd42352
|
|
1765
1751
|
}
|
|
1766
1752
|
})
|
|
1767
|
-
}),
|
|
1768
|
-
if (!
|
|
1769
|
-
throw new Error(
|
|
1753
|
+
}), _0x506b35 = await _0x47cb32['json']();
|
|
1754
|
+
if (!_0x506b35['ok'])
|
|
1755
|
+
throw new Error(_0x506b35[_0x5249dd(0x153)] ?? _0x5249dd(_0x43567a._0x2c66fc));
|
|
1770
1756
|
return {
|
|
1771
1757
|
'stopMain': !![],
|
|
1772
|
-
'threadTarget':
|
|
1773
|
-
'workerDisposition':
|
|
1758
|
+
'threadTarget': _0x5477f7,
|
|
1759
|
+
'workerDisposition': _0x506b35[_0x5249dd(_0x43567a._0x533098)] === _0x5249dd(0x16f) ? _0x5249dd(_0x43567a._0x53eb87) : _0x5249dd(_0x43567a._0x1a4731),
|
|
1774
1760
|
'workerHandoff': !![],
|
|
1775
|
-
'workerSessionId':
|
|
1776
|
-
'executionMode':
|
|
1761
|
+
'workerSessionId': _0x506b35[_0x5249dd(_0x43567a._0x38263b)] ?? '',
|
|
1762
|
+
'executionMode': 'worker'
|
|
1777
1763
|
};
|
|
1778
1764
|
}
|
|
1779
|
-
async function
|
|
1780
|
-
const
|
|
1781
|
-
if (!
|
|
1765
|
+
async function _0x5eee84() {
|
|
1766
|
+
const _0xa366b6 = _0x4282;
|
|
1767
|
+
if (!_0x5759e0[_0xa366b6(_0x3556c0._0x4cf373)] || !_0x5759e0[_0xa366b6(_0x3556c0._0x117016)] || _0x5759e0[_0xa366b6(_0x3556c0._0x296a89)])
|
|
1782
1768
|
return null;
|
|
1783
1769
|
try {
|
|
1784
|
-
const
|
|
1785
|
-
if (!
|
|
1770
|
+
const _0xb2cabf = await fetch(_0x5759e0[_0xa366b6(0x192)] + '/workers/list?agent_id=' + encodeURIComponent(_0x5759e0[_0xa366b6(_0x3556c0._0x117016)])), _0x2b68c8 = await _0xb2cabf[_0xa366b6(0x240)]();
|
|
1771
|
+
if (!_0x2b68c8['ok'])
|
|
1786
1772
|
return null;
|
|
1787
|
-
const
|
|
1788
|
-
for (const
|
|
1789
|
-
|
|
1773
|
+
const _0x44c152 = new Set();
|
|
1774
|
+
for (const _0x478ad2 of _0x2b68c8[_0xa366b6(0x139)]) {
|
|
1775
|
+
_0x478ad2['status'] !== 'destroyed' && _0x478ad2[_0xa366b6(0x151)] && _0x44c152[_0xa366b6(0x1c7)](_0x478ad2['thread_target']);
|
|
1790
1776
|
}
|
|
1791
|
-
return
|
|
1777
|
+
return _0x44c152['size'] > 0x0 ? _0x44c152 : null;
|
|
1792
1778
|
} catch {
|
|
1793
1779
|
return null;
|
|
1794
1780
|
}
|
|
1795
1781
|
}
|
|
1796
|
-
const
|
|
1782
|
+
const _0x997c64 = new Set([
|
|
1797
1783
|
'running',
|
|
1798
|
-
|
|
1799
|
-
|
|
1784
|
+
_0x1ed21a(0x21d),
|
|
1785
|
+
_0x1ed21a(_0x3dc014._0x46b403)
|
|
1800
1786
|
]);
|
|
1801
|
-
async function
|
|
1802
|
-
const
|
|
1803
|
-
if (!
|
|
1787
|
+
async function _0x5bd578() {
|
|
1788
|
+
const _0x4cf102 = _0x1ed21a;
|
|
1789
|
+
if (!_0x5759e0[_0x4cf102(_0x2458e7._0xfb5130)] || !_0x5759e0[_0x4cf102(_0x2458e7._0x591468)] || _0x5759e0[_0x4cf102(0x1ad)])
|
|
1804
1790
|
return null;
|
|
1805
1791
|
try {
|
|
1806
|
-
const
|
|
1807
|
-
if (!
|
|
1792
|
+
const _0x30c507 = await fetch(_0x5759e0[_0x4cf102(_0x2458e7._0x412ee2)] + '/workers/list?agent_id=' + encodeURIComponent(_0x5759e0['agentId'])), _0x5b99b0 = await _0x30c507['json']();
|
|
1793
|
+
if (!_0x5b99b0['ok'])
|
|
1808
1794
|
return null;
|
|
1809
|
-
const
|
|
1810
|
-
for (const
|
|
1811
|
-
|
|
1795
|
+
const _0x158b4d = new Set();
|
|
1796
|
+
for (const _0x5abb25 of _0x5b99b0[_0x4cf102(_0x2458e7._0x194b8c)]) {
|
|
1797
|
+
_0x997c64[_0x4cf102(_0x2458e7._0x26ea85)](_0x5abb25[_0x4cf102(0x195)]) && _0x5abb25[_0x4cf102(_0x2458e7._0x4df912)] && _0x158b4d[_0x4cf102(0x1c7)](_0x5abb25['thread_target']);
|
|
1812
1798
|
}
|
|
1813
|
-
return
|
|
1799
|
+
return _0x158b4d[_0x4cf102(0x19f)] > 0x0 ? _0x158b4d : null;
|
|
1814
1800
|
} catch {
|
|
1815
1801
|
return null;
|
|
1816
1802
|
}
|
|
1817
1803
|
}
|
|
1818
1804
|
return {
|
|
1819
|
-
async 'send_message'(
|
|
1820
|
-
const
|
|
1821
|
-
if (!
|
|
1822
|
-
const
|
|
1823
|
-
if (
|
|
1824
|
-
const
|
|
1825
|
-
if (
|
|
1805
|
+
async 'send_message'(_0x31eded) {
|
|
1806
|
+
const _0x1d16e8 = _0x1ed21a;
|
|
1807
|
+
if (!_0x5759e0[_0x1d16e8(0x1ad)] && _0x5759e0['workerModeEnabled'] && _0x5759e0[_0x1d16e8(0x192)] && _0x5759e0[_0x1d16e8(0x1b6)]) {
|
|
1808
|
+
const _0x425d72 = await _0x5759e0[_0x1d16e8(0x143)]['resolveTarget'](_0x31eded[_0x1d16e8(0x212)]);
|
|
1809
|
+
if (_0x425d72[_0x1d16e8(0x10b)] && _0x425d72[_0x1d16e8(_0x17b61d._0xe8ae48)]) {
|
|
1810
|
+
const _0x3f8dbd = _0x425d72['task'][_0x1d16e8(_0x17b61d._0x330d70)] != null ? '#' + _0x425d72[_0x1d16e8(_0x17b61d._0xf7a759)]['taskNumber'] : _0x1d16e8(_0x17b61d._0x5152c8), _0x24be8f = _0x425d72[_0x1d16e8(_0x17b61d._0x5cd90d)] != null ? _0x425d72[_0x1d16e8(0x212)] + ':t' + _0x425d72[_0x1d16e8(_0x17b61d._0x2defe3)] : _0x425d72[_0x1d16e8(_0x17b61d._0x5212cd)] + ':' + _0x425d72[_0x1d16e8(_0x17b61d._0xe8ae48)]['slice'](0x0, 0x8), _0x20e8b9 = await _0x5bd578();
|
|
1811
|
+
if (_0x20e8b9?.['has'](_0x24be8f))
|
|
1826
1812
|
return [
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
][
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1813
|
+
_0x1d16e8(_0x17b61d._0x2e8a24) + _0x3f8dbd + _0x1d16e8(0x17e) + _0x24be8f + '\x20already\x20has\x20an\x20active\x20worker.\x20stopMain=true\x20executionMode=worker',
|
|
1814
|
+
_0x1d16e8(0x142)
|
|
1815
|
+
][_0x1d16e8(0x11d)]('\x0a');
|
|
1816
|
+
const _0x30db93 = [
|
|
1817
|
+
'[target=' + _0x24be8f + '\x20msg=handoff\x20time=' + new Date()[_0x1d16e8(_0x17b61d._0x577f3a)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1832
1818
|
'',
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
]['join']('\x0a'),
|
|
1838
|
-
'method':
|
|
1839
|
-
'headers': { 'Content-Type':
|
|
1840
|
-
'body': JSON[
|
|
1841
|
-
'agent_id':
|
|
1842
|
-
'thread_target':
|
|
1819
|
+
_0x1d16e8(0x1fb) + _0x31eded[_0x1d16e8(_0x17b61d._0x4bec55)],
|
|
1820
|
+
_0x1d16e8(0x19b) + _0x3f8dbd + '\x20(' + _0x425d72[_0x1d16e8(_0x17b61d._0x13415a)][_0x1d16e8(_0x17b61d._0x505178)] + ')',
|
|
1821
|
+
_0x1d16e8(_0x17b61d._0x4de290) + _0x24be8f,
|
|
1822
|
+
_0x1d16e8(_0x17b61d._0x6102ae)
|
|
1823
|
+
]['join']('\x0a'), _0x55ee37 = await fetch(_0x5759e0[_0x1d16e8(0x192)] + _0x1d16e8(_0x17b61d._0x95af41), {
|
|
1824
|
+
'method': _0x1d16e8(0x24e),
|
|
1825
|
+
'headers': { 'Content-Type': _0x1d16e8(_0x17b61d._0x3295c8) },
|
|
1826
|
+
'body': JSON[_0x1d16e8(0x1ec)]({
|
|
1827
|
+
'agent_id': _0x5759e0[_0x1d16e8(0x1b6)],
|
|
1828
|
+
'thread_target': _0x24be8f,
|
|
1843
1829
|
'spawn_packet': {
|
|
1844
|
-
'replyTarget':
|
|
1845
|
-
'taskId':
|
|
1830
|
+
'replyTarget': _0x24be8f,
|
|
1831
|
+
'taskId': _0x425d72[_0x1d16e8(0x10b)]['taskId']
|
|
1846
1832
|
},
|
|
1847
1833
|
'payload': {
|
|
1848
|
-
'mode':
|
|
1849
|
-
'text':
|
|
1834
|
+
'mode': _0x1d16e8(0xff),
|
|
1835
|
+
'text': _0x30db93
|
|
1850
1836
|
}
|
|
1851
1837
|
})
|
|
1852
|
-
}),
|
|
1853
|
-
if (!
|
|
1854
|
-
throw new Error(
|
|
1838
|
+
}), _0xb03ce1 = await _0x55ee37[_0x1d16e8(_0x17b61d._0x509d38)]();
|
|
1839
|
+
if (!_0xb03ce1['ok'])
|
|
1840
|
+
throw new Error(_0xb03ce1[_0x1d16e8(0x153)] ?? 'enter-handoff\x20failed');
|
|
1855
1841
|
return [
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
][
|
|
1842
|
+
_0x1d16e8(_0x17b61d._0x2d8d0b) + _0x3f8dbd + _0x1d16e8(0x17e) + _0x24be8f + _0x1d16e8(0x23e),
|
|
1843
|
+
'Worker\x20' + (_0xb03ce1[_0x1d16e8(0xfe)] === _0x1d16e8(_0x17b61d._0x4cf42f) ? _0x1d16e8(0x16f) : _0x1d16e8(_0x17b61d._0x2af966)) + '.',
|
|
1844
|
+
'⚠️\x20WORKER\x20ACTIVATED\x20—\x20Stop\x20ALL\x20work\x20on\x20this\x20task\x20immediately.\x20Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread.'
|
|
1845
|
+
][_0x1d16e8(_0x17b61d._0x48a6b1)]('\x0a');
|
|
1860
1846
|
}
|
|
1861
1847
|
}
|
|
1862
|
-
const
|
|
1863
|
-
'attachmentIds':
|
|
1864
|
-
'content':
|
|
1865
|
-
'target':
|
|
1866
|
-
'visibility':
|
|
1848
|
+
const _0x30ef67 = await _0x5759e0[_0x1d16e8(_0x17b61d._0x1530d8)][_0x1d16e8(_0x17b61d._0x3d4eb5)]({
|
|
1849
|
+
'attachmentIds': _0x31eded['attachment_ids'],
|
|
1850
|
+
'content': _0x31eded[_0x1d16e8(0x199)],
|
|
1851
|
+
'target': _0x31eded[_0x1d16e8(_0x17b61d._0x5212cd)],
|
|
1852
|
+
'visibility': _0x31eded[_0x1d16e8(_0x17b61d._0x52df94)]
|
|
1867
1853
|
});
|
|
1868
|
-
return
|
|
1854
|
+
return 'Message\x20sent\x20to\x20' + _0x31eded['target'] + '.\x20Message\x20ID:\x20' + _0x30ef67[_0x1d16e8(_0x17b61d._0xda3509)];
|
|
1869
1855
|
},
|
|
1870
1856
|
async 'check_messages'() {
|
|
1871
|
-
const
|
|
1872
|
-
if (!
|
|
1873
|
-
const
|
|
1874
|
-
if (
|
|
1875
|
-
return formatCheckMessages(
|
|
1857
|
+
const _0x2a647e = _0x1ed21a, _0x5df3fb = await _0x5759e0[_0x2a647e(_0x21e9c4._0x5d2335)][_0x2a647e(0x1fc)]();
|
|
1858
|
+
if (!_0x5759e0[_0x2a647e(0x1ad)]) {
|
|
1859
|
+
const _0x2f0c06 = await _0x5eee84();
|
|
1860
|
+
if (_0x2f0c06)
|
|
1861
|
+
return formatCheckMessages(_0x5df3fb['messages'][_0x2a647e(0x27c)](_0x405301 => !_0x2f0c06['has'](_0x405301[_0x2a647e(0x212)])));
|
|
1876
1862
|
}
|
|
1877
|
-
return formatCheckMessages(
|
|
1863
|
+
return formatCheckMessages(_0x5df3fb[_0x2a647e(0x23a)]);
|
|
1878
1864
|
},
|
|
1879
|
-
async 'read_history'(
|
|
1880
|
-
const
|
|
1881
|
-
return formatHistory(
|
|
1865
|
+
async 'read_history'(_0x2427df) {
|
|
1866
|
+
const _0x4a3247 = _0x1ed21a, _0x307394 = await _0x5759e0[_0x4a3247(_0x2ec9b5._0x238125)][_0x4a3247(0x1de)](_0x2427df);
|
|
1867
|
+
return formatHistory(_0x307394);
|
|
1882
1868
|
},
|
|
1883
1869
|
async 'list_server'() {
|
|
1884
|
-
const
|
|
1885
|
-
return formatServerDirectory(
|
|
1870
|
+
const _0x2b7270 = _0x1ed21a, _0x480e95 = await _0x5759e0[_0x2b7270(_0x266ffc._0x250be9)][_0x2b7270(0x18c)]();
|
|
1871
|
+
return formatServerDirectory(_0x480e95);
|
|
1886
1872
|
},
|
|
1887
|
-
async 'list_tasks'(
|
|
1888
|
-
const
|
|
1889
|
-
let
|
|
1890
|
-
if (
|
|
1873
|
+
async 'list_tasks'(_0x269df0) {
|
|
1874
|
+
const _0x56a951 = _0x1ed21a, _0x4fb0dd = await _0x5759e0['client'][_0x56a951(0x270)](_0x269df0);
|
|
1875
|
+
let _0x42b4a8;
|
|
1876
|
+
if (_0x5759e0['daemonLocalUrl'] && _0x5759e0[_0x56a951(_0x24b687._0x35ee7d)])
|
|
1891
1877
|
try {
|
|
1892
|
-
const
|
|
1893
|
-
if (
|
|
1894
|
-
const
|
|
1895
|
-
|
|
1896
|
-
for (const
|
|
1897
|
-
if (
|
|
1878
|
+
const _0x116b99 = await fetch(_0x5759e0[_0x56a951(0x192)] + '/workers/list?agent_id=' + encodeURIComponent(_0x5759e0[_0x56a951(0x1b6)])), _0x7b85ea = await _0x116b99[_0x56a951(_0x24b687._0x4284b9)]();
|
|
1879
|
+
if (_0x7b85ea['ok']) {
|
|
1880
|
+
const _0x9c3121 = _0x269df0[_0x56a951(_0x24b687._0x2bf69d)] + ':';
|
|
1881
|
+
_0x42b4a8 = new Set();
|
|
1882
|
+
for (const _0x583752 of _0x7b85ea['workers']) {
|
|
1883
|
+
if (_0x583752['status'] === _0x56a951(_0x24b687._0x52d9b1))
|
|
1898
1884
|
continue;
|
|
1899
|
-
if (
|
|
1900
|
-
const
|
|
1901
|
-
if (
|
|
1902
|
-
|
|
1885
|
+
if (_0x583752[_0x56a951(_0x24b687._0x1bb6a8)]?.['startsWith'](_0x9c3121)) {
|
|
1886
|
+
const _0xc232a2 = _0x583752[_0x56a951(0x151)][_0x56a951(0x1ea)](_0x9c3121[_0x56a951(0x137)]), _0x1bfa79 = _0x4fb0dd[_0x56a951(0x104)][_0x56a951(0x232)](_0x5af962 => _0x5af962['messageId']?.[_0x56a951(0x1b0)](_0xc232a2) === !![]);
|
|
1887
|
+
if (_0x1bfa79?.[_0x56a951(_0x24b687._0x24f117)] != null) {
|
|
1888
|
+
_0x42b4a8[_0x56a951(0x1c7)](_0x1bfa79['taskNumber']);
|
|
1903
1889
|
continue;
|
|
1904
1890
|
}
|
|
1905
1891
|
}
|
|
1906
|
-
if (
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1892
|
+
if (_0x583752['task_id']) {
|
|
1893
|
+
const _0x24dc3d = _0x4fb0dd[_0x56a951(0x104)][_0x56a951(_0x24b687._0x3368a2)](_0x3126a7 => _0x3126a7[_0x56a951(0x26b)] === _0x583752[_0x56a951(0x17c)]);
|
|
1894
|
+
_0x24dc3d?.[_0x56a951(_0x24b687._0x1951f8)] != null && _0x42b4a8[_0x56a951(_0x24b687._0x198e93)](_0x24dc3d[_0x56a951(0x229)]);
|
|
1909
1895
|
}
|
|
1910
1896
|
}
|
|
1911
1897
|
}
|
|
1912
1898
|
} catch {
|
|
1913
1899
|
}
|
|
1914
|
-
return formatTaskList(
|
|
1900
|
+
return formatTaskList(_0x4fb0dd[_0x56a951(_0x24b687._0x23713a)], _0x42b4a8);
|
|
1915
1901
|
},
|
|
1916
|
-
async 'create_tasks'(
|
|
1917
|
-
const
|
|
1918
|
-
|
|
1902
|
+
async 'create_tasks'(_0x1c5e20) {
|
|
1903
|
+
const _0x3c6de4 = _0x1ed21a;
|
|
1904
|
+
_0x5b223d('create_tasks', _0x1c5e20[_0x3c6de4(0x17b)]);
|
|
1905
|
+
const _0x562358 = await _0x5759e0[_0x3c6de4(0x143)]['createTasks'](_0x1c5e20);
|
|
1906
|
+
return formatCreatedTasks(_0x562358['tasks']);
|
|
1919
1907
|
},
|
|
1920
|
-
async 'claim_tasks'(
|
|
1921
|
-
const
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1908
|
+
async 'claim_tasks'(_0x3ed16d) {
|
|
1909
|
+
const _0x32b198 = _0x1ed21a;
|
|
1910
|
+
if (_0x5759e0['workerMode']) {
|
|
1911
|
+
_0x5b223d(_0x32b198(0x1e3), _0x3ed16d[_0x32b198(0x17b)]);
|
|
1912
|
+
if (_0x3ed16d[_0x32b198(_0x44ed88._0x275f2d)] && _0x3ed16d[_0x32b198(_0x44ed88._0x337032)][_0x32b198(_0x44ed88._0x328bcf)] > 0x0)
|
|
1913
|
+
throw new Error(_0x32b198(0x189));
|
|
1914
|
+
if (!_0x3ed16d['subtask_numbers'] || _0x3ed16d[_0x32b198(0x26d)][_0x32b198(_0x44ed88._0x972112)] === 0x0)
|
|
1915
|
+
throw new Error(_0x32b198(0x102));
|
|
1916
|
+
}
|
|
1917
|
+
const _0xdc50b8 = await _0x5759e0[_0x32b198(0x143)]['claimTasks'](_0x3ed16d), _0x262d0e = await Promise[_0x32b198(_0x44ed88._0x507ede)](_0xdc50b8[_0x32b198(_0x44ed88._0x3d9290)][_0x32b198(_0x44ed88._0xb1f8df)](async _0x2c0dc6 => {
|
|
1918
|
+
const _0x320691 = _0x32b198;
|
|
1919
|
+
if (!_0x2c0dc6[_0x320691(_0xdbee86._0x34c3e8)] || !_0x2c0dc6[_0x320691(0x112)])
|
|
1920
|
+
return _0x2c0dc6;
|
|
1930
1921
|
try {
|
|
1931
|
-
const
|
|
1932
|
-
'channel':
|
|
1933
|
-
'messageId':
|
|
1934
|
-
'taskId':
|
|
1935
|
-
'taskNumber':
|
|
1936
|
-
'threadNumber':
|
|
1922
|
+
const _0x485c14 = await _0x4e0d49({
|
|
1923
|
+
'channel': _0x3ed16d[_0x320691(0x17b)],
|
|
1924
|
+
'messageId': _0x2c0dc6[_0x320691(0x112)],
|
|
1925
|
+
'taskId': _0x2c0dc6[_0x320691(_0xdbee86._0x36cac9)],
|
|
1926
|
+
'taskNumber': _0x2c0dc6[_0x320691(0x229)],
|
|
1927
|
+
'threadNumber': _0x2c0dc6[_0x320691(_0xdbee86._0x40b6d1)]
|
|
1937
1928
|
});
|
|
1938
|
-
return
|
|
1939
|
-
...
|
|
1940
|
-
...
|
|
1941
|
-
} :
|
|
1942
|
-
} catch (
|
|
1929
|
+
return _0x485c14 ? {
|
|
1930
|
+
..._0x2c0dc6,
|
|
1931
|
+
..._0x485c14
|
|
1932
|
+
} : _0x2c0dc6;
|
|
1933
|
+
} catch (_0x50b32f) {
|
|
1943
1934
|
return {
|
|
1944
|
-
...
|
|
1945
|
-
'workerHandoffError':
|
|
1935
|
+
..._0x2c0dc6,
|
|
1936
|
+
'workerHandoffError': _0x50b32f instanceof Error ? _0x50b32f[_0x320691(0x236)] : _0x320691(_0xdbee86._0x5a643e)
|
|
1946
1937
|
};
|
|
1947
1938
|
}
|
|
1948
1939
|
}));
|
|
1949
|
-
return formatClaimTaskResults(
|
|
1940
|
+
return formatClaimTaskResults(_0x262d0e);
|
|
1950
1941
|
},
|
|
1951
|
-
async 'unclaim_task'(
|
|
1952
|
-
const
|
|
1953
|
-
|
|
1942
|
+
async 'unclaim_task'(_0x31a9fc) {
|
|
1943
|
+
const _0x29f483 = _0x1ed21a;
|
|
1944
|
+
if (_0x5759e0[_0x29f483(0x1ad)]) {
|
|
1945
|
+
_0x5b223d(_0x29f483(_0x3f806a._0x5a1fef), _0x31a9fc[_0x29f483(0x17b)]);
|
|
1946
|
+
if (_0x31a9fc[_0x29f483(_0x3f806a._0x3087e4)] == null)
|
|
1947
|
+
throw new Error(_0x29f483(_0x3f806a._0x3baa33));
|
|
1948
|
+
}
|
|
1949
|
+
const _0x453900 = await _0x5759e0['client'][_0x29f483(0x25e)](_0x31a9fc);
|
|
1950
|
+
return formatUnclaimTaskResult(_0x453900);
|
|
1954
1951
|
},
|
|
1955
|
-
async 'update_task_status'(
|
|
1956
|
-
const
|
|
1957
|
-
|
|
1952
|
+
async 'update_task_status'(_0x37f9fd) {
|
|
1953
|
+
const _0x29b70c = _0x1ed21a;
|
|
1954
|
+
_0x5b223d(_0x29b70c(0x116), _0x37f9fd['channel']);
|
|
1955
|
+
const _0x41b5d7 = await _0x5759e0[_0x29b70c(0x143)][_0x29b70c(_0x48cdb2._0xf9519c)](_0x37f9fd);
|
|
1956
|
+
return formatUpdateTaskStatusResult(_0x41b5d7);
|
|
1958
1957
|
},
|
|
1959
|
-
async 'upload_file'(
|
|
1960
|
-
const
|
|
1961
|
-
sizeBytes:
|
|
1962
|
-
...
|
|
1963
|
-
} =
|
|
1964
|
-
'channel':
|
|
1965
|
-
...
|
|
1958
|
+
async 'upload_file'(_0x40f4db) {
|
|
1959
|
+
const _0x1f0608 = _0x1ed21a, _0x5a35fa = await _0x5759e0[_0x1f0608(0x237)](_0x40f4db[_0x1f0608(_0x4a82cc._0x349b38)]), {
|
|
1960
|
+
sizeBytes: _0x511cd6,
|
|
1961
|
+
..._0x5e50a5
|
|
1962
|
+
} = _0x5a35fa, _0x2acdc9 = await _0x5759e0['client']['uploadFile']({
|
|
1963
|
+
'channel': _0x40f4db['channel'],
|
|
1964
|
+
..._0x5e50a5
|
|
1966
1965
|
});
|
|
1967
|
-
return formatUploadResult(
|
|
1966
|
+
return formatUploadResult(_0x2acdc9);
|
|
1968
1967
|
},
|
|
1969
|
-
async 'view_file'(
|
|
1970
|
-
const
|
|
1971
|
-
if (
|
|
1972
|
-
return formatViewFileResult(
|
|
1973
|
-
const
|
|
1974
|
-
'attachmentId':
|
|
1975
|
-
'contentType':
|
|
1976
|
-
'data':
|
|
1977
|
-
'originalFilename':
|
|
1968
|
+
async 'view_file'(_0x111455) {
|
|
1969
|
+
const _0x38c2e6 = _0x1ed21a, _0x234434 = await _0x5759e0[_0x38c2e6(0x20e)][_0x38c2e6(0x1c5)](_0x111455[_0x38c2e6(_0x4b9615._0x46ceb8)]);
|
|
1970
|
+
if (_0x234434)
|
|
1971
|
+
return formatViewFileResult(_0x234434, !![]);
|
|
1972
|
+
const _0x6d28b1 = await _0x5759e0[_0x38c2e6(0x143)][_0x38c2e6(_0x4b9615._0x4da892)](_0x111455[_0x38c2e6(_0x4b9615._0x46ceb8)]), _0x46fb4c = await _0x5759e0['attachmentCache']['save']({
|
|
1973
|
+
'attachmentId': _0x111455[_0x38c2e6(0x13c)],
|
|
1974
|
+
'contentType': _0x6d28b1[_0x38c2e6(_0x4b9615._0x33cb1e)],
|
|
1975
|
+
'data': _0x6d28b1[_0x38c2e6(0x216)],
|
|
1976
|
+
'originalFilename': _0x6d28b1[_0x38c2e6(_0x4b9615._0x18225b)]
|
|
1978
1977
|
});
|
|
1979
|
-
return formatViewFileResult(
|
|
1978
|
+
return formatViewFileResult(_0x46fb4c, ![]);
|
|
1980
1979
|
},
|
|
1981
|
-
async 'get_worker_status'(
|
|
1982
|
-
const
|
|
1983
|
-
if (!
|
|
1984
|
-
return
|
|
1985
|
-
const
|
|
1986
|
-
if (!
|
|
1987
|
-
return
|
|
1988
|
-
return
|
|
1980
|
+
async 'get_worker_status'(_0x4569f9) {
|
|
1981
|
+
const _0x15e659 = _0x1ed21a;
|
|
1982
|
+
if (!_0x5759e0[_0x15e659(0x192)])
|
|
1983
|
+
return _0x15e659(0x175);
|
|
1984
|
+
const _0x387e46 = await fetch(_0x5759e0[_0x15e659(0x192)] + _0x15e659(_0x5b5b5f._0x1d3d93) + encodeURIComponent(_0x4569f9[_0x15e659(_0x5b5b5f._0x131e8c)])), _0x3d169e = await _0x387e46['json']();
|
|
1985
|
+
if (!_0x3d169e['ok'])
|
|
1986
|
+
return _0x15e659(_0x5b5b5f._0x1d4a09) + _0x4569f9['work_key'] + '\x22\x20not\x20found';
|
|
1987
|
+
return 'Worker\x20\x22' + _0x4569f9[_0x15e659(0x1ed)] + _0x15e659(0x281) + _0x3d169e[_0x15e659(_0x5b5b5f._0x1c2345)];
|
|
1989
1988
|
},
|
|
1990
|
-
async '
|
|
1991
|
-
const
|
|
1992
|
-
if (!
|
|
1993
|
-
return
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1989
|
+
async 'park_worker'(_0x28924c) {
|
|
1990
|
+
const _0x1fbd25 = _0x1ed21a;
|
|
1991
|
+
if (!_0x5759e0['daemonLocalUrl'])
|
|
1992
|
+
return _0x1fbd25(_0x6b056d._0xa12ed7);
|
|
1993
|
+
const _0x2807d8 = await fetch(_0x5759e0['daemonLocalUrl'] + '/workers/park', {
|
|
1994
|
+
'method': _0x1fbd25(0x24e),
|
|
1995
|
+
'headers': { 'Content-Type': _0x1fbd25(_0x6b056d._0x2805ee) },
|
|
1996
|
+
'body': JSON[_0x1fbd25(0x1ec)]({ 'work_key': _0x28924c[_0x1fbd25(0x1ed)] })
|
|
1997
|
+
}), _0x41a5c7 = await _0x2807d8[_0x1fbd25(_0x6b056d._0x2feaba)]();
|
|
1998
|
+
if (!_0x41a5c7['ok'])
|
|
1999
|
+
throw new Error(_0x41a5c7[_0x1fbd25(_0x6b056d._0x29668f)] ?? 'park_worker\x20failed');
|
|
2000
|
+
return _0x1fbd25(0x234) + _0x28924c[_0x1fbd25(0x1ed)] + _0x1fbd25(0x1e9);
|
|
1998
2001
|
},
|
|
1999
|
-
async '
|
|
2000
|
-
const
|
|
2001
|
-
if (!
|
|
2002
|
-
return
|
|
2003
|
-
const
|
|
2004
|
-
'method':
|
|
2002
|
+
async 'mark_waiting_input'(_0x1b9a4d) {
|
|
2003
|
+
const _0x5f2b7a = _0x1ed21a;
|
|
2004
|
+
if (!_0x5759e0['daemonLocalUrl'] || !_0x5759e0[_0x5f2b7a(0x1b6)])
|
|
2005
|
+
return _0x5f2b7a(_0x519f24._0x305854);
|
|
2006
|
+
const _0x482588 = await fetch(_0x5759e0[_0x5f2b7a(0x192)] + '/workers/waiting_input', {
|
|
2007
|
+
'method': _0x5f2b7a(_0x519f24._0x90d8ee),
|
|
2005
2008
|
'headers': { 'Content-Type': 'application/json' },
|
|
2006
|
-
'body': JSON[_0x59bdd1(0x1f9)]({
|
|
2007
|
-
'work_key': _0x36e28c['work_key'],
|
|
2008
|
-
'resume_packet': {
|
|
2009
|
-
'objective': '',
|
|
2010
|
-
'result': _0x36e28c[_0x59bdd1(0x1aa)],
|
|
2011
|
-
'summary': _0x36e28c[_0x59bdd1(0x26f)],
|
|
2012
|
-
'decisions': _0x36e28c[_0x59bdd1(_0xdfbf23._0x2ce916)] ?? [],
|
|
2013
|
-
'filesChanged': _0x36e28c[_0x59bdd1(_0xdfbf23._0x32f24d)] ?? [],
|
|
2014
|
-
'openIssues': _0x36e28c[_0x59bdd1(0x1c3)] ?? [],
|
|
2015
|
-
'nextSteps': _0x36e28c['next_steps'] ?? []
|
|
2016
|
-
}
|
|
2017
|
-
})
|
|
2018
|
-
}), _0x546660 = await _0x32fc51[_0x59bdd1(_0xdfbf23._0x516e69)]();
|
|
2019
|
-
if (!_0x546660['ok'])
|
|
2020
|
-
throw new Error(_0x546660[_0x59bdd1(0x23c)] ?? _0x59bdd1(0x2a8));
|
|
2021
|
-
return 'Worker\x20\x22' + _0x36e28c[_0x59bdd1(0x1ce)] + '\x22\x20finished\x20with\x20result:\x20' + _0x36e28c['result'];
|
|
2022
|
-
},
|
|
2023
|
-
async 'mark_waiting_input'(_0x184f56) {
|
|
2024
|
-
const _0x4dc773 = _0xbb1c94;
|
|
2025
|
-
if (!_0x2c49b7['daemonLocalUrl'] || !_0x2c49b7[_0x4dc773(_0x235431._0x532b17)])
|
|
2026
|
-
return _0x4dc773(0x277);
|
|
2027
|
-
const _0x37fe5b = await fetch(_0x2c49b7[_0x4dc773(_0x235431._0x306db7)] + '/workers/waiting_input', {
|
|
2028
|
-
'method': _0x4dc773(0x2e1),
|
|
2029
|
-
'headers': { 'Content-Type': _0x4dc773(0x270) },
|
|
2030
2009
|
'body': JSON['stringify']({
|
|
2031
|
-
'work_key':
|
|
2032
|
-
'agent_id':
|
|
2010
|
+
'work_key': _0x1b9a4d[_0x5f2b7a(0x1ed)],
|
|
2011
|
+
'agent_id': _0x5759e0[_0x5f2b7a(0x1b6)]
|
|
2033
2012
|
})
|
|
2034
|
-
}),
|
|
2035
|
-
if (!
|
|
2036
|
-
throw new Error(
|
|
2037
|
-
return
|
|
2013
|
+
}), _0xd99fef = await _0x482588[_0x5f2b7a(0x240)]();
|
|
2014
|
+
if (!_0xd99fef['ok'])
|
|
2015
|
+
throw new Error(_0xd99fef[_0x5f2b7a(_0x519f24._0x398b5e)] ?? _0x5f2b7a(0x11a));
|
|
2016
|
+
return _0x5f2b7a(_0x519f24._0xa45b7a) + _0x1b9a4d[_0x5f2b7a(_0x519f24._0x3fc418)] + _0x5f2b7a(0x269);
|
|
2038
2017
|
},
|
|
2039
|
-
async 'escalate_to_main'(
|
|
2040
|
-
const
|
|
2041
|
-
if (!
|
|
2042
|
-
return
|
|
2043
|
-
const
|
|
2044
|
-
'method':
|
|
2045
|
-
'headers': { 'Content-Type':
|
|
2046
|
-
'body': JSON[
|
|
2047
|
-
'work_key':
|
|
2048
|
-
'reason':
|
|
2018
|
+
async 'escalate_to_main'(_0x59a0be) {
|
|
2019
|
+
const _0x3ca637 = _0x1ed21a;
|
|
2020
|
+
if (!_0x5759e0[_0x3ca637(_0x54e04d._0x4a7650)])
|
|
2021
|
+
return _0x3ca637(_0x54e04d._0xedb61f);
|
|
2022
|
+
const _0x377042 = await fetch(_0x5759e0[_0x3ca637(0x192)] + _0x3ca637(_0x54e04d._0x4a15a9), {
|
|
2023
|
+
'method': _0x3ca637(_0x54e04d._0x364c8e),
|
|
2024
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2025
|
+
'body': JSON['stringify']({
|
|
2026
|
+
'work_key': _0x59a0be['work_key'],
|
|
2027
|
+
'reason': _0x59a0be[_0x3ca637(0x27a)]
|
|
2049
2028
|
})
|
|
2050
|
-
}),
|
|
2051
|
-
if (!
|
|
2052
|
-
throw new Error(
|
|
2053
|
-
return
|
|
2029
|
+
}), _0x252ade = await _0x377042[_0x3ca637(_0x54e04d._0x5b1a32)]();
|
|
2030
|
+
if (!_0x252ade['ok'])
|
|
2031
|
+
throw new Error(_0x252ade[_0x3ca637(0x153)] ?? _0x3ca637(_0x54e04d._0x56d255));
|
|
2032
|
+
return 'Escalation\x20sent\x20to\x20main\x20agent.\x20Reason:\x20' + _0x59a0be[_0x3ca637(_0x54e04d._0x3590a3)];
|
|
2054
2033
|
}
|
|
2055
2034
|
};
|
|
2056
2035
|
}
|
|
2057
|
-
function textResult(
|
|
2036
|
+
function textResult(_0x6fd83a, _0x250fbe = ![]) {
|
|
2037
|
+
const _0x47f764 = _0x1abe67;
|
|
2058
2038
|
return {
|
|
2059
2039
|
'content': [{
|
|
2060
|
-
'type':
|
|
2061
|
-
'text':
|
|
2040
|
+
'type': _0x47f764(0x1b2),
|
|
2041
|
+
'text': _0x6fd83a
|
|
2062
2042
|
}],
|
|
2063
|
-
...
|
|
2043
|
+
..._0x250fbe ? { 'isError': !![] } : {}
|
|
2064
2044
|
};
|
|
2065
2045
|
}
|
|
2066
|
-
async function registerChatBridgeTools(
|
|
2067
|
-
const
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
},
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
},
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
},
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
'target': _0x586e6f[_0x455c78(_0x335c9b._0x37a9ac)](),
|
|
2125
|
-
'content': _0x586e6f[_0x455c78(_0x335c9b._0x37a9ac)](),
|
|
2126
|
-
'attachment_ids': _0x586e6f['array'](_0x586e6f[_0x455c78(_0x335c9b._0x4a3f93)]())[_0x455c78(0x313)](),
|
|
2127
|
-
'visibility': _0x586e6f[_0x455c78(0x2c9)]([
|
|
2128
|
-
_0x455c78(_0x335c9b._0x359b19),
|
|
2129
|
-
_0x455c78(0x1e9)
|
|
2130
|
-
])[_0x455c78(0x313)]()[_0x455c78(0x1b8)](_0x455c78(_0x335c9b._0x12b94b))
|
|
2131
|
-
}, async _0xc4f5f => {
|
|
2132
|
-
const _0x50820d = _0x455c78;
|
|
2046
|
+
async function registerChatBridgeTools(_0x228675, _0x3fac4b, _0x45b654) {
|
|
2047
|
+
const _0x5151eb = {
|
|
2048
|
+
_0x26e7c8: 0x20f,
|
|
2049
|
+
_0x6ab869: 0x231,
|
|
2050
|
+
_0x317b3f: 0x23f,
|
|
2051
|
+
_0x4574cd: 0x126,
|
|
2052
|
+
_0x427cf1: 0x251,
|
|
2053
|
+
_0x52a674: 0x204,
|
|
2054
|
+
_0x503fa0: 0x129,
|
|
2055
|
+
_0x232470: 0x1a0,
|
|
2056
|
+
_0x9b71ee: 0x243,
|
|
2057
|
+
_0x30fd37: 0x23f,
|
|
2058
|
+
_0x147217: 0x231,
|
|
2059
|
+
_0x2edace: 0x140,
|
|
2060
|
+
_0x18d492: 0x13f,
|
|
2061
|
+
_0x4bb74e: 0x163,
|
|
2062
|
+
_0x582935: 0x129,
|
|
2063
|
+
_0x4c6d82: 0x20f,
|
|
2064
|
+
_0x1ecf57: 0x1df,
|
|
2065
|
+
_0x97ed54: 0x20f,
|
|
2066
|
+
_0x1cb84f: 0x20f,
|
|
2067
|
+
_0x78e69d: 0x1e5,
|
|
2068
|
+
_0x4683a2: 0x1e3,
|
|
2069
|
+
_0xf4303b: 0x1ae,
|
|
2070
|
+
_0xcba8ba: 0x20f,
|
|
2071
|
+
_0x4874dd: 0x1f5,
|
|
2072
|
+
_0x4b9add: 0x253,
|
|
2073
|
+
_0x37fe01: 0x20f,
|
|
2074
|
+
_0x11e712: 0x15e
|
|
2075
|
+
}, _0x265597 = { _0x2edecf: 0x236 }, _0x29c883 = { _0x2270e1: 0x1d1 }, _0x1cfa93 = { _0x4287a8: 0x258 }, _0x97d79a = { _0x178caa: 0x133 }, _0x23f15d = {
|
|
2076
|
+
_0x578e3b: 0x236,
|
|
2077
|
+
_0x5cc9f1: 0x122
|
|
2078
|
+
}, _0x258838 = {
|
|
2079
|
+
_0x2d942d: 0x116,
|
|
2080
|
+
_0x533647: 0x1c0
|
|
2081
|
+
}, _0xf0ef4c = {
|
|
2082
|
+
_0x2c95a1: 0x236,
|
|
2083
|
+
_0x56da03: 0x208
|
|
2084
|
+
}, _0x5a2c4f = { _0x132d63: 0x236 }, _0x147d07 = {
|
|
2085
|
+
_0x3cb3f1: 0x177,
|
|
2086
|
+
_0x44b97b: 0x236
|
|
2087
|
+
}, _0x54e009 = {
|
|
2088
|
+
_0x4589e0: 0x236,
|
|
2089
|
+
_0x580c92: 0x141
|
|
2090
|
+
}, _0xc293ad = { _0x1cb7fc: 0x210 }, _0x23d705 = {
|
|
2091
|
+
_0x11379b: 0x1d8,
|
|
2092
|
+
_0x1705c7: 0x11e
|
|
2093
|
+
}, _0x1c99d5 = _0x1abe67, {z: _0x3186d6} = await import(_0x1c99d5(0x162));
|
|
2094
|
+
_0x228675[_0x1c99d5(0x23f)](_0x1c99d5(0x1d8), '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.', {
|
|
2095
|
+
'target': _0x3186d6[_0x1c99d5(_0x5151eb._0x26e7c8)](),
|
|
2096
|
+
'content': _0x3186d6[_0x1c99d5(0x20f)](),
|
|
2097
|
+
'attachment_ids': _0x3186d6[_0x1c99d5(0x1df)](_0x3186d6['string']())['optional'](),
|
|
2098
|
+
'visibility': _0x3186d6[_0x1c99d5(_0x5151eb._0x6ab869)]([
|
|
2099
|
+
_0x1c99d5(0x1a2),
|
|
2100
|
+
'aside'
|
|
2101
|
+
])[_0x1c99d5(0x129)]()['describe'](_0x1c99d5(0x265))
|
|
2102
|
+
}, async _0x18ada9 => {
|
|
2103
|
+
const _0x15abca = _0x1c99d5;
|
|
2133
2104
|
try {
|
|
2134
|
-
return textResult(await
|
|
2135
|
-
} catch (
|
|
2136
|
-
return textResult(
|
|
2105
|
+
return textResult(await _0x3fac4b[_0x15abca(_0x23d705._0x11379b)](_0x18ada9));
|
|
2106
|
+
} catch (_0x3d0886) {
|
|
2107
|
+
return textResult(_0x3d0886 instanceof Error ? _0x3d0886['message'] : _0x15abca(_0x23d705._0x1705c7), !![]);
|
|
2137
2108
|
}
|
|
2138
|
-
}),
|
|
2139
|
-
const
|
|
2109
|
+
}), _0x228675[_0x1c99d5(_0x5151eb._0x317b3f)](_0x1c99d5(0x1e4), _0x1c99d5(0x187), {}, async () => {
|
|
2110
|
+
const _0xef536 = _0x1c99d5;
|
|
2140
2111
|
try {
|
|
2141
|
-
return textResult(await
|
|
2142
|
-
} catch (
|
|
2143
|
-
return textResult(
|
|
2112
|
+
return textResult(await _0x3fac4b['check_messages']());
|
|
2113
|
+
} catch (_0x1bd0d4) {
|
|
2114
|
+
return textResult(_0x1bd0d4 instanceof Error ? _0x1bd0d4[_0xef536(0x236)] : _0xef536(_0xc293ad._0x1cb7fc), !![]);
|
|
2144
2115
|
}
|
|
2145
|
-
}),
|
|
2146
|
-
'channel':
|
|
2147
|
-
'limit':
|
|
2148
|
-
'before':
|
|
2149
|
-
'after':
|
|
2150
|
-
}, async
|
|
2151
|
-
const
|
|
2116
|
+
}), _0x228675[_0x1c99d5(0x23f)](_0x1c99d5(_0x5151eb._0x4574cd), _0x1c99d5(_0x5151eb._0x427cf1), {
|
|
2117
|
+
'channel': _0x3186d6[_0x1c99d5(_0x5151eb._0x26e7c8)](),
|
|
2118
|
+
'limit': _0x3186d6[_0x1c99d5(_0x5151eb._0x52a674)]()['optional'](),
|
|
2119
|
+
'before': _0x3186d6['number']()[_0x1c99d5(_0x5151eb._0x503fa0)](),
|
|
2120
|
+
'after': _0x3186d6['number']()[_0x1c99d5(_0x5151eb._0x503fa0)]()
|
|
2121
|
+
}, async _0x268eba => {
|
|
2122
|
+
const _0x4643fc = _0x1c99d5;
|
|
2152
2123
|
try {
|
|
2153
|
-
return textResult(await
|
|
2154
|
-
} catch (
|
|
2155
|
-
return textResult(
|
|
2124
|
+
return textResult(await _0x3fac4b[_0x4643fc(0x126)](_0x268eba));
|
|
2125
|
+
} catch (_0x336d69) {
|
|
2126
|
+
return textResult(_0x336d69 instanceof Error ? _0x336d69[_0x4643fc(0x236)] : 'read_history\x20failed', !![]);
|
|
2156
2127
|
}
|
|
2157
|
-
}),
|
|
2158
|
-
const _0x50b710 = _0x455c78;
|
|
2128
|
+
}), _0x228675['tool'](_0x1c99d5(_0x5151eb._0x232470), _0x1c99d5(_0x5151eb._0x9b71ee), {}, async () => {
|
|
2159
2129
|
try {
|
|
2160
|
-
return textResult(await
|
|
2161
|
-
} catch (
|
|
2162
|
-
return textResult(
|
|
2130
|
+
return textResult(await _0x3fac4b['list_server']());
|
|
2131
|
+
} catch (_0x569e04) {
|
|
2132
|
+
return textResult(_0x569e04 instanceof Error ? _0x569e04['message'] : 'list_server\x20failed', !![]);
|
|
2163
2133
|
}
|
|
2164
|
-
}),
|
|
2165
|
-
'channel':
|
|
2166
|
-
'status':
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
])[
|
|
2172
|
-
}, async
|
|
2173
|
-
const
|
|
2134
|
+
}), _0x228675[_0x1c99d5(_0x5151eb._0x30fd37)]('list_tasks', _0x1c99d5(0x256), {
|
|
2135
|
+
'channel': _0x3186d6[_0x1c99d5(0x20f)](),
|
|
2136
|
+
'status': _0x3186d6[_0x1c99d5(_0x5151eb._0x147217)]([
|
|
2137
|
+
_0x1c99d5(_0x5151eb._0x2edace),
|
|
2138
|
+
_0x1c99d5(_0x5151eb._0x18d492),
|
|
2139
|
+
_0x1c99d5(0x10f),
|
|
2140
|
+
_0x1c99d5(_0x5151eb._0x4bb74e)
|
|
2141
|
+
])[_0x1c99d5(_0x5151eb._0x582935)]()
|
|
2142
|
+
}, async _0x56c0ea => {
|
|
2143
|
+
const _0x54f9d2 = _0x1c99d5;
|
|
2174
2144
|
try {
|
|
2175
|
-
return textResult(await
|
|
2176
|
-
} catch (
|
|
2177
|
-
return textResult(
|
|
2145
|
+
return textResult(await _0x3fac4b['list_tasks'](_0x56c0ea));
|
|
2146
|
+
} catch (_0x177f2d) {
|
|
2147
|
+
return textResult(_0x177f2d instanceof Error ? _0x177f2d[_0x54f9d2(_0x54e009._0x4589e0)] : _0x54f9d2(_0x54e009._0x580c92), !![]);
|
|
2178
2148
|
}
|
|
2179
|
-
}),
|
|
2180
|
-
'channel':
|
|
2181
|
-
'idempotency_key':
|
|
2182
|
-
'tasks':
|
|
2183
|
-
'title':
|
|
2184
|
-
'description':
|
|
2185
|
-
'priority':
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
])[
|
|
2149
|
+
}), _0x228675['tool']('create_tasks', _0x1c99d5(0x174), {
|
|
2150
|
+
'channel': _0x3186d6[_0x1c99d5(_0x5151eb._0x4c6d82)](),
|
|
2151
|
+
'idempotency_key': _0x3186d6[_0x1c99d5(_0x5151eb._0x4c6d82)]()[_0x1c99d5(_0x5151eb._0x503fa0)](),
|
|
2152
|
+
'tasks': _0x3186d6[_0x1c99d5(_0x5151eb._0x1ecf57)](_0x3186d6['object']({
|
|
2153
|
+
'title': _0x3186d6[_0x1c99d5(_0x5151eb._0x97ed54)](),
|
|
2154
|
+
'description': _0x3186d6[_0x1c99d5(_0x5151eb._0x1cb84f)]()[_0x1c99d5(_0x5151eb._0x582935)](),
|
|
2155
|
+
'priority': _0x3186d6[_0x1c99d5(0x231)]([
|
|
2156
|
+
_0x1c99d5(0x10c),
|
|
2157
|
+
'medium',
|
|
2158
|
+
_0x1c99d5(0x284),
|
|
2159
|
+
_0x1c99d5(_0x5151eb._0x78e69d)
|
|
2160
|
+
])[_0x1c99d5(0x129)]()
|
|
2191
2161
|
}))
|
|
2192
|
-
}, async
|
|
2193
|
-
const
|
|
2162
|
+
}, async _0x437658 => {
|
|
2163
|
+
const _0x306044 = _0x1c99d5;
|
|
2194
2164
|
try {
|
|
2195
|
-
return textResult(await
|
|
2196
|
-
} catch (
|
|
2197
|
-
return textResult(
|
|
2165
|
+
return textResult(await _0x3fac4b[_0x306044(_0x147d07._0x3cb3f1)](_0x437658));
|
|
2166
|
+
} catch (_0xb40f6e) {
|
|
2167
|
+
return textResult(_0xb40f6e instanceof Error ? _0xb40f6e[_0x306044(_0x147d07._0x44b97b)] : 'create_tasks\x20failed', !![]);
|
|
2198
2168
|
}
|
|
2199
|
-
}),
|
|
2200
|
-
'channel':
|
|
2201
|
-
'task_numbers':
|
|
2202
|
-
'subtask_numbers':
|
|
2203
|
-
'message_ids':
|
|
2204
|
-
'evidence':
|
|
2205
|
-
'create_thread':
|
|
2206
|
-
'create_task':
|
|
2207
|
-
}))[
|
|
2208
|
-
'idempotency_key':
|
|
2209
|
-
}, async
|
|
2210
|
-
const
|
|
2169
|
+
}), _0x228675['tool'](_0x1c99d5(_0x5151eb._0x4683a2), _0x1c99d5(0x26c), {
|
|
2170
|
+
'channel': _0x3186d6[_0x1c99d5(_0x5151eb._0x4c6d82)](),
|
|
2171
|
+
'task_numbers': _0x3186d6[_0x1c99d5(0x1df)](_0x3186d6[_0x1c99d5(0x204)]())[_0x1c99d5(0x129)](),
|
|
2172
|
+
'subtask_numbers': _0x3186d6[_0x1c99d5(_0x5151eb._0x1ecf57)](_0x3186d6[_0x1c99d5(0x204)]())[_0x1c99d5(_0x5151eb._0x582935)](),
|
|
2173
|
+
'message_ids': _0x3186d6['array'](_0x3186d6[_0x1c99d5(0x20f)]())[_0x1c99d5(0x129)](),
|
|
2174
|
+
'evidence': _0x3186d6['record'](_0x3186d6[_0x1c99d5(_0x5151eb._0x26e7c8)](), _0x3186d6[_0x1c99d5(0x159)]({
|
|
2175
|
+
'create_thread': _0x3186d6['unknown']()['optional'](),
|
|
2176
|
+
'create_task': _0x3186d6['unknown']()[_0x1c99d5(0x129)]()
|
|
2177
|
+
}))['optional'](),
|
|
2178
|
+
'idempotency_key': _0x3186d6[_0x1c99d5(0x20f)]()[_0x1c99d5(_0x5151eb._0x503fa0)]()
|
|
2179
|
+
}, async _0x2e19f6 => {
|
|
2180
|
+
const _0x2ca346 = _0x1c99d5;
|
|
2211
2181
|
try {
|
|
2212
|
-
return textResult(await
|
|
2213
|
-
} catch (
|
|
2214
|
-
return textResult(
|
|
2182
|
+
return textResult(await _0x3fac4b[_0x2ca346(0x1e3)](_0x2e19f6));
|
|
2183
|
+
} catch (_0x36d6c5) {
|
|
2184
|
+
return textResult(_0x36d6c5 instanceof Error ? _0x36d6c5[_0x2ca346(_0x5a2c4f._0x132d63)] : _0x2ca346(0x250), !![]);
|
|
2215
2185
|
}
|
|
2216
|
-
}),
|
|
2217
|
-
'channel':
|
|
2218
|
-
'task_number':
|
|
2219
|
-
'subtask_number':
|
|
2220
|
-
'idempotency_key':
|
|
2221
|
-
}, async
|
|
2222
|
-
const
|
|
2186
|
+
}), _0x228675[_0x1c99d5(0x23f)](_0x1c99d5(0x185), _0x1c99d5(0x1f3), {
|
|
2187
|
+
'channel': _0x3186d6[_0x1c99d5(0x20f)](),
|
|
2188
|
+
'task_number': _0x3186d6[_0x1c99d5(_0x5151eb._0x52a674)](),
|
|
2189
|
+
'subtask_number': _0x3186d6[_0x1c99d5(0x204)]()[_0x1c99d5(_0x5151eb._0x503fa0)](),
|
|
2190
|
+
'idempotency_key': _0x3186d6[_0x1c99d5(0x20f)]()[_0x1c99d5(0x129)]()
|
|
2191
|
+
}, async _0x1b279f => {
|
|
2192
|
+
const _0x554fed = _0x1c99d5;
|
|
2223
2193
|
try {
|
|
2224
|
-
return textResult(await
|
|
2225
|
-
} catch (
|
|
2226
|
-
return textResult(
|
|
2194
|
+
return textResult(await _0x3fac4b['unclaim_task'](_0x1b279f));
|
|
2195
|
+
} catch (_0x2f06f8) {
|
|
2196
|
+
return textResult(_0x2f06f8 instanceof Error ? _0x2f06f8[_0x554fed(_0xf0ef4c._0x2c95a1)] : _0x554fed(_0xf0ef4c._0x56da03), !![]);
|
|
2227
2197
|
}
|
|
2228
|
-
}),
|
|
2229
|
-
'channel':
|
|
2230
|
-
'task_number':
|
|
2231
|
-
'subtask_number':
|
|
2232
|
-
'status':
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2198
|
+
}), _0x228675[_0x1c99d5(_0x5151eb._0x30fd37)](_0x1c99d5(0x116), _0x1c99d5(_0x5151eb._0xf4303b), {
|
|
2199
|
+
'channel': _0x3186d6[_0x1c99d5(0x20f)](),
|
|
2200
|
+
'task_number': _0x3186d6['number'](),
|
|
2201
|
+
'subtask_number': _0x3186d6['number']()[_0x1c99d5(0x129)](),
|
|
2202
|
+
'status': _0x3186d6['enum']([
|
|
2203
|
+
_0x1c99d5(0x140),
|
|
2204
|
+
_0x1c99d5(0x13f),
|
|
2205
|
+
'in_review',
|
|
2206
|
+
_0x1c99d5(0x163)
|
|
2237
2207
|
]),
|
|
2238
|
-
'idempotency_key':
|
|
2239
|
-
}, async
|
|
2240
|
-
const
|
|
2241
|
-
try {
|
|
2242
|
-
return textResult(await _0x35452b['update_task_status'](_0x52fc11));
|
|
2243
|
-
} catch (_0x22b80e) {
|
|
2244
|
-
return textResult(_0x22b80e instanceof Error ? _0x22b80e[_0x57b57c(_0x4e415e._0x592dac)] : _0x57b57c(0x290), !![]);
|
|
2245
|
-
}
|
|
2246
|
-
}), _0x7f9630[_0x455c78(_0x335c9b._0x353b68)]('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.', {
|
|
2247
|
-
'channel': _0x586e6f[_0x455c78(0x2c5)](),
|
|
2248
|
-
'file_path': _0x586e6f[_0x455c78(0x2c5)]()
|
|
2249
|
-
}, async _0x4c257e => {
|
|
2250
|
-
const _0x1aad9e = _0x455c78;
|
|
2208
|
+
'idempotency_key': _0x3186d6[_0x1c99d5(0x20f)]()[_0x1c99d5(_0x5151eb._0x503fa0)]()
|
|
2209
|
+
}, async _0x32836b => {
|
|
2210
|
+
const _0x2df7db = _0x1c99d5;
|
|
2251
2211
|
try {
|
|
2252
|
-
return textResult(await
|
|
2253
|
-
} catch (
|
|
2254
|
-
return textResult(
|
|
2212
|
+
return textResult(await _0x3fac4b[_0x2df7db(_0x258838._0x2d942d)](_0x32836b));
|
|
2213
|
+
} catch (_0x58449d) {
|
|
2214
|
+
return textResult(_0x58449d instanceof Error ? _0x58449d[_0x2df7db(0x236)] : _0x2df7db(_0x258838._0x533647), !![]);
|
|
2255
2215
|
}
|
|
2256
|
-
}),
|
|
2257
|
-
|
|
2216
|
+
}), _0x228675[_0x1c99d5(_0x5151eb._0x317b3f)](_0x1c99d5(0x1af), '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.', {
|
|
2217
|
+
'channel': _0x3186d6[_0x1c99d5(_0x5151eb._0x4c6d82)](),
|
|
2218
|
+
'file_path': _0x3186d6[_0x1c99d5(0x20f)]()
|
|
2219
|
+
}, async _0x7e345a => {
|
|
2220
|
+
const _0x48a578 = _0x1c99d5;
|
|
2258
2221
|
try {
|
|
2259
|
-
return textResult(await
|
|
2260
|
-
} catch (
|
|
2261
|
-
return textResult(
|
|
2222
|
+
return textResult(await _0x3fac4b[_0x48a578(0x1af)](_0x7e345a));
|
|
2223
|
+
} catch (_0x3b582d) {
|
|
2224
|
+
return textResult(_0x3b582d instanceof Error ? _0x3b582d[_0x48a578(_0x23f15d._0x578e3b)] : _0x48a578(_0x23f15d._0x5cc9f1), !![]);
|
|
2262
2225
|
}
|
|
2263
|
-
}),
|
|
2264
|
-
const
|
|
2226
|
+
}), _0x228675[_0x1c99d5(0x23f)]('view_file', _0x1c99d5(0x17a), { 'attachment_id': _0x3186d6[_0x1c99d5(_0x5151eb._0xcba8ba)]() }, async _0x30065d => {
|
|
2227
|
+
const _0x277187 = _0x1c99d5;
|
|
2265
2228
|
try {
|
|
2266
|
-
return textResult(await
|
|
2267
|
-
} catch (
|
|
2268
|
-
return textResult(
|
|
2229
|
+
return textResult(await _0x3fac4b[_0x277187(0x203)](_0x30065d));
|
|
2230
|
+
} catch (_0x10a1a3) {
|
|
2231
|
+
return textResult(_0x10a1a3 instanceof Error ? _0x10a1a3['message'] : _0x277187(_0x97d79a._0x178caa), !![]);
|
|
2269
2232
|
}
|
|
2270
|
-
}),
|
|
2271
|
-
const
|
|
2233
|
+
}), _0x228675[_0x1c99d5(0x23f)](_0x1c99d5(_0x5151eb._0x4874dd), _0x1c99d5(0x11f), { 'work_key': _0x3186d6[_0x1c99d5(0x20f)]() }, async _0x3dbeda => {
|
|
2234
|
+
const _0x464f72 = _0x1c99d5;
|
|
2272
2235
|
try {
|
|
2273
|
-
return textResult(await
|
|
2274
|
-
} catch (
|
|
2275
|
-
return textResult(
|
|
2236
|
+
return textResult(await _0x3fac4b[_0x464f72(0x1f5)](_0x3dbeda));
|
|
2237
|
+
} catch (_0x58fcf5) {
|
|
2238
|
+
return textResult(_0x58fcf5 instanceof Error ? _0x58fcf5['message'] : _0x464f72(_0x1cfa93._0x4287a8), !![]);
|
|
2276
2239
|
}
|
|
2277
|
-
}),
|
|
2278
|
-
|
|
2279
|
-
'result': _0x586e6f[_0x455c78(_0x335c9b._0x40751c)]([
|
|
2280
|
-
'completed',
|
|
2281
|
-
_0x455c78(_0x335c9b._0x5b88bc),
|
|
2282
|
-
'failed'
|
|
2283
|
-
]),
|
|
2284
|
-
'summary': _0x586e6f['string'](),
|
|
2285
|
-
'decisions': _0x586e6f['array'](_0x586e6f['string']())[_0x455c78(0x313)](),
|
|
2286
|
-
'files_changed': _0x586e6f[_0x455c78(_0x335c9b._0x1274b0)](_0x586e6f[_0x455c78(0x2c5)]())[_0x455c78(_0x335c9b._0xe0dad9)](),
|
|
2287
|
-
'open_issues': _0x586e6f[_0x455c78(_0x335c9b._0x1274b0)](_0x586e6f[_0x455c78(_0x335c9b._0x409aaf)]())[_0x455c78(0x313)](),
|
|
2288
|
-
'next_steps': _0x586e6f['array'](_0x586e6f['string']())['optional']()
|
|
2289
|
-
}, async _0x3b6008 => {
|
|
2290
|
-
const _0x37deb8 = _0x455c78;
|
|
2240
|
+
}), _0x228675[_0x1c99d5(_0x5151eb._0x317b3f)](_0x1c99d5(0x176), _0x1c99d5(_0x5151eb._0x4b9add), { 'work_key': _0x3186d6[_0x1c99d5(_0x5151eb._0x37fe01)]() }, async _0x18204b => {
|
|
2241
|
+
const _0x463586 = _0x1c99d5;
|
|
2291
2242
|
try {
|
|
2292
|
-
return textResult(await
|
|
2293
|
-
} catch (
|
|
2294
|
-
return textResult(
|
|
2243
|
+
return textResult(await _0x3fac4b[_0x463586(0x176)](_0x18204b));
|
|
2244
|
+
} catch (_0x4eb700) {
|
|
2245
|
+
return textResult(_0x4eb700 instanceof Error ? _0x4eb700[_0x463586(0x236)] : _0x463586(_0x29c883._0x2270e1), !![]);
|
|
2295
2246
|
}
|
|
2296
|
-
}),
|
|
2297
|
-
'work_key':
|
|
2298
|
-
'reason':
|
|
2299
|
-
}, async
|
|
2300
|
-
const
|
|
2247
|
+
}), _0x228675[_0x1c99d5(_0x5151eb._0x317b3f)](_0x1c99d5(0x120), _0x1c99d5(_0x5151eb._0x11e712), {
|
|
2248
|
+
'work_key': _0x3186d6[_0x1c99d5(0x20f)](),
|
|
2249
|
+
'reason': _0x3186d6[_0x1c99d5(_0x5151eb._0x1cb84f)]()
|
|
2250
|
+
}, async _0x45c626 => {
|
|
2251
|
+
const _0x20f704 = _0x1c99d5;
|
|
2301
2252
|
try {
|
|
2302
|
-
return textResult(await
|
|
2303
|
-
} catch (
|
|
2304
|
-
return textResult(
|
|
2253
|
+
return textResult(await _0x3fac4b[_0x20f704(0x120)](_0x45c626));
|
|
2254
|
+
} catch (_0x4b40d1) {
|
|
2255
|
+
return textResult(_0x4b40d1 instanceof Error ? _0x4b40d1['message'] : _0x20f704(0x1e8), !![]);
|
|
2305
2256
|
}
|
|
2306
|
-
}),
|
|
2307
|
-
const
|
|
2257
|
+
}), _0x45b654?.[_0x1c99d5(0x1ad)] && _0x228675['tool']('mark_waiting_input', _0x1c99d5(0x178), { 'work_key': _0x3186d6[_0x1c99d5(0x20f)]() }, async _0x97d1ca => {
|
|
2258
|
+
const _0x328915 = _0x1c99d5;
|
|
2308
2259
|
try {
|
|
2309
|
-
return textResult(await
|
|
2310
|
-
} catch (
|
|
2311
|
-
return textResult(
|
|
2260
|
+
return textResult(await _0x3fac4b[_0x328915(0x1f6)](_0x97d1ca));
|
|
2261
|
+
} catch (_0x540a47) {
|
|
2262
|
+
return textResult(_0x540a47 instanceof Error ? _0x540a47[_0x328915(_0x265597._0x2edecf)] : _0x328915(0x11a), !![]);
|
|
2312
2263
|
}
|
|
2313
2264
|
});
|
|
2314
2265
|
}
|
|
2315
|
-
async function createChatBridgeServer(
|
|
2316
|
-
const
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2266
|
+
async function createChatBridgeServer(_0x19eba3) {
|
|
2267
|
+
const _0x2cdcb3 = {
|
|
2268
|
+
_0x2256ce: 0x12e,
|
|
2269
|
+
_0x56a4f4: 0x1dc,
|
|
2270
|
+
_0x27608b: 0x1d6,
|
|
2271
|
+
_0x309f50: 0x1ad
|
|
2272
|
+
}, _0x161d22 = _0x1abe67, {McpServer: _0x3df76f} = await import(_0x161d22(_0x2cdcb3._0x2256ce)), _0x5581e0 = new _0x3df76f({
|
|
2273
|
+
'name': _0x161d22(_0x2cdcb3._0x56a4f4),
|
|
2274
|
+
'version': _0x161d22(_0x2cdcb3._0x27608b)
|
|
2275
|
+
}), _0x582913 = createChatBridgeHandlers(_0x19eba3);
|
|
2276
|
+
return await registerChatBridgeTools(_0x5581e0, _0x582913, { 'workerMode': _0x19eba3[_0x161d22(_0x2cdcb3._0x309f50)] }), {
|
|
2277
|
+
'handlers': _0x582913,
|
|
2278
|
+
'server': _0x5581e0
|
|
2323
2279
|
};
|
|
2324
2280
|
}
|
|
2325
|
-
function readFlag(
|
|
2326
|
-
const
|
|
2327
|
-
if (
|
|
2281
|
+
function readFlag(_0x365978, _0x56e2e3) {
|
|
2282
|
+
const _0x20b234 = _0x1abe67, _0x1619f5 = _0x365978[_0x20b234(0x1d0)](_0x56e2e3);
|
|
2283
|
+
if (_0x1619f5 === -0x1)
|
|
2328
2284
|
return void 0x0;
|
|
2329
|
-
return
|
|
2285
|
+
return _0x365978[_0x1619f5 + 0x1];
|
|
2330
2286
|
}
|
|
2331
|
-
function parseChatBridgeArgs(
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2287
|
+
function parseChatBridgeArgs(_0x2622fc) {
|
|
2288
|
+
const _0x4a953f = {
|
|
2289
|
+
_0x2efea8: 0x10e,
|
|
2290
|
+
_0x1624f5: 0x228,
|
|
2291
|
+
_0x172dd6: 0x19c,
|
|
2292
|
+
_0x5bd3c6: 0x156,
|
|
2293
|
+
_0x310a7c: 0x1ce,
|
|
2294
|
+
_0x199a2c: 0x132
|
|
2295
|
+
}, _0x141c45 = _0x1abe67, _0x39c115 = readFlag(_0x2622fc, '--agent-id'), _0x798e47 = readFlag(_0x2622fc, _0x141c45(0xfd)), _0x3a6236 = readFlag(_0x2622fc, _0x141c45(_0x4a953f._0x2efea8)), _0x270ccf = readFlag(_0x2622fc, _0x141c45(_0x4a953f._0x1624f5)) ?? _0x141c45(0x200), _0x116e2b = readFlag(_0x2622fc, _0x141c45(_0x4a953f._0x172dd6)), _0x53a150 = readFlag(_0x2622fc, _0x141c45(_0x4a953f._0x5bd3c6)), _0x378673 = readFlag(_0x2622fc, _0x141c45(0x238)), _0x90de50 = readFlag(_0x2622fc, _0x141c45(0x128)), _0x5d7546 = readFlag(_0x2622fc, '--worker-thread-target'), _0x1d7537 = _0x2622fc[_0x141c45(0x1b1)]('--worker-mode'), _0x5ac644 = _0x3a6236 === void 0x0 ? void 0x0 : Number['parseInt'](_0x3a6236, 0xa);
|
|
2296
|
+
if (!_0x39c115)
|
|
2297
|
+
throw new Error(_0x141c45(_0x4a953f._0x310a7c));
|
|
2298
|
+
if (!_0x798e47)
|
|
2299
|
+
throw new Error(_0x141c45(0x196));
|
|
2300
|
+
if (_0x3a6236 !== void 0x0 && (_0x5ac644 === void 0x0 || !Number[_0x141c45(0x272)](_0x5ac644) || _0x5ac644 < 0x0))
|
|
2342
2301
|
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2343
2302
|
return {
|
|
2344
|
-
'agentId':
|
|
2345
|
-
'daemonApiKey':
|
|
2346
|
-
'daemonLocalUrl':
|
|
2347
|
-
'initialLastSeenSeq':
|
|
2348
|
-
'sessionId':
|
|
2349
|
-
'serverUrl':
|
|
2350
|
-
'workerModeEnabled':
|
|
2351
|
-
'workerSessionId':
|
|
2352
|
-
'workerThreadTarget':
|
|
2353
|
-
'workerMode':
|
|
2303
|
+
'agentId': _0x39c115,
|
|
2304
|
+
'daemonApiKey': _0x798e47,
|
|
2305
|
+
'daemonLocalUrl': _0x116e2b,
|
|
2306
|
+
'initialLastSeenSeq': _0x5ac644,
|
|
2307
|
+
'sessionId': _0x53a150,
|
|
2308
|
+
'serverUrl': _0x270ccf,
|
|
2309
|
+
'workerModeEnabled': _0x378673 === void 0x0 ? void 0x0 : _0x378673 !== _0x141c45(_0x4a953f._0x199a2c),
|
|
2310
|
+
'workerSessionId': _0x90de50,
|
|
2311
|
+
'workerThreadTarget': _0x5d7546,
|
|
2312
|
+
'workerMode': _0x1d7537
|
|
2354
2313
|
};
|
|
2355
2314
|
}
|
|
2356
|
-
async function runChatBridgeCli(
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2315
|
+
async function runChatBridgeCli(_0x345c33) {
|
|
2316
|
+
const _0x935e56 = {
|
|
2317
|
+
_0x9628e6: 0x135,
|
|
2318
|
+
_0x2819d4: 0x192,
|
|
2319
|
+
_0x2ec8f5: 0x1cd,
|
|
2320
|
+
_0x6595e3: 0x1b8,
|
|
2321
|
+
_0x1d30a0: 0x182,
|
|
2322
|
+
_0x2baeba: 0x1a5
|
|
2323
|
+
}, _0x2abd38 = _0x1abe67, _0x412eee = parseChatBridgeArgs(_0x345c33), {StdioServerTransport: _0x38799a} = await import(_0x2abd38(_0x935e56._0x9628e6)), _0x33e1b5 = createInternalAgentClient(_0x412eee), _0x14a958 = createAttachmentCache(), _0x21d1e7 = await createChatBridgeServer({
|
|
2324
|
+
'agentId': _0x412eee[_0x2abd38(0x1b6)],
|
|
2325
|
+
'attachmentCache': _0x14a958,
|
|
2326
|
+
'client': _0x33e1b5,
|
|
2327
|
+
'daemonLocalUrl': _0x412eee[_0x2abd38(_0x935e56._0x2819d4)],
|
|
2365
2328
|
'uploadPreparer': prepareUploadFile,
|
|
2366
|
-
'workerModeEnabled':
|
|
2367
|
-
'workerMode':
|
|
2329
|
+
'workerModeEnabled': _0x412eee[_0x2abd38(_0x935e56._0x2ec8f5)],
|
|
2330
|
+
'workerMode': _0x412eee['workerMode'],
|
|
2331
|
+
'workerThreadTarget': _0x412eee[_0x2abd38(_0x935e56._0x6595e3)]
|
|
2368
2332
|
});
|
|
2369
|
-
await
|
|
2333
|
+
await _0x21d1e7[_0x2abd38(_0x935e56._0x1d30a0)][_0x2abd38(_0x935e56._0x2baeba)](new _0x38799a());
|
|
2370
2334
|
}
|
|
2371
|
-
var executedAsEntry = process[
|
|
2372
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2335
|
+
var executedAsEntry = process[_0x1abe67(0x165)][0x1] ? import.meta.url === pathToFileURL(process[_0x1abe67(0x165)][0x1])[_0x1abe67(0x255)] : ![];
|
|
2336
|
+
executedAsEntry && await runChatBridgeCli(process[_0x1abe67(0x165)][_0x1abe67(0x1ea)](0x2));
|
|
2373
2337
|
export {
|
|
2374
2338
|
createChatBridgeHandlers,
|
|
2375
2339
|
createChatBridgeServer,
|