@dscord/daemon 0.1.48 → 0.1.49
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 +2210 -2168
- package/dist/index.js +8879 -8833
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,48 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_0x542af3: 0x275,
|
|
11
|
-
_0x1b6298: 0x211
|
|
12
|
-
}, _0x6a0769 = _0xd0d8, _0x46529d = _0x120329();
|
|
1
|
+
const _0x301d4a = _0x1f42;
|
|
2
|
+
(function (_0x58f5d2, _0x489259) {
|
|
3
|
+
const _0x47f8db = {
|
|
4
|
+
_0x34c944: 0x1fc,
|
|
5
|
+
_0x2f6951: 0x8d,
|
|
6
|
+
_0x234541: 0x1c4,
|
|
7
|
+
_0x56d472: 0x125,
|
|
8
|
+
_0x4822cc: 0x1bb
|
|
9
|
+
}, _0x233beb = _0x1f42, _0x386801 = _0x58f5d2();
|
|
13
10
|
while (!![]) {
|
|
14
11
|
try {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
12
|
+
const _0x2ca5ac = parseInt(_0x233beb(0x72)) / 0x1 + -parseInt(_0x233beb(0x160)) / 0x2 + -parseInt(_0x233beb(0x175)) / 0x3 * (-parseInt(_0x233beb(_0x47f8db._0x34c944)) / 0x4) + -parseInt(_0x233beb(0x126)) / 0x5 + parseInt(_0x233beb(_0x47f8db._0x2f6951)) / 0x6 + parseInt(_0x233beb(_0x47f8db._0x234541)) / 0x7 * (-parseInt(_0x233beb(0x16c)) / 0x8) + -parseInt(_0x233beb(_0x47f8db._0x56d472)) / 0x9 * (parseInt(_0x233beb(_0x47f8db._0x4822cc)) / 0xa);
|
|
13
|
+
if (_0x2ca5ac === _0x489259)
|
|
17
14
|
break;
|
|
18
15
|
else
|
|
19
|
-
|
|
20
|
-
} catch (
|
|
21
|
-
|
|
16
|
+
_0x386801['push'](_0x386801['shift']());
|
|
17
|
+
} catch (_0xbd2a71) {
|
|
18
|
+
_0x386801['push'](_0x386801['shift']());
|
|
22
19
|
}
|
|
23
20
|
}
|
|
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
|
-
}
|
|
21
|
+
}(_0x276a, 0x2a01b));
|
|
46
22
|
import { pathToFileURL } from 'node:url';
|
|
47
23
|
import {
|
|
48
24
|
mkdir,
|
|
@@ -51,2325 +27,2391 @@ import {
|
|
|
51
27
|
stat,
|
|
52
28
|
writeFile
|
|
53
29
|
} 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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
'
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
|
|
123
|
-
|
|
30
|
+
import { homedir } from 'node:os';
|
|
31
|
+
import _0x12ec89 from 'node:path';
|
|
32
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
33
|
+
'.csv': _0x301d4a(0x18c),
|
|
34
|
+
'.gif': _0x301d4a(0xfb),
|
|
35
|
+
'.jpeg': _0x301d4a(0x9e),
|
|
36
|
+
'.jpg': _0x301d4a(0x9e),
|
|
37
|
+
'.json': 'application/json',
|
|
38
|
+
'.md': _0x301d4a(0x11b),
|
|
39
|
+
'.pdf': 'application/pdf',
|
|
40
|
+
'.png': _0x301d4a(0xb4),
|
|
41
|
+
'.svg': _0x301d4a(0x132),
|
|
42
|
+
'.txt': 'text/plain',
|
|
43
|
+
'.webp': _0x301d4a(0xda),
|
|
44
|
+
'.xml': _0x301d4a(0x1bc),
|
|
45
|
+
'.zip': _0x301d4a(0x1cb)
|
|
46
|
+
};
|
|
47
|
+
function guessContentType(_0x338cde) {
|
|
48
|
+
const _0x47b39b = {
|
|
49
|
+
_0x46986a: 0x1e7,
|
|
50
|
+
_0x24fd88: 0x89
|
|
51
|
+
}, _0x47cc33 = _0x301d4a;
|
|
52
|
+
return MIME_BY_EXTENSION[_0x12ec89[_0x47cc33(_0x47b39b._0x46986a)](_0x338cde)[_0x47cc33(_0x47b39b._0x24fd88)]()] ?? _0x47cc33(0x94);
|
|
53
|
+
}
|
|
54
|
+
function safeFilename(_0x477af2) {
|
|
55
|
+
const _0x466e19 = _0x301d4a;
|
|
56
|
+
return _0x477af2[_0x466e19(0xa1)](/[\\/]/g, '-');
|
|
57
|
+
}
|
|
58
|
+
function extensionFor(_0x7aed28) {
|
|
59
|
+
const _0x4c8ad8 = { _0x1ce52b: 0x12b }, _0x615686 = _0x301d4a, _0x51b597 = Object[_0x615686(0x121)](MIME_BY_EXTENSION)[_0x615686(_0x4c8ad8._0x1ce52b)](([, _0x559aaf]) => _0x559aaf === _0x7aed28);
|
|
60
|
+
return _0x51b597?.[0x0] ?? _0x615686(0x1c5);
|
|
61
|
+
}
|
|
62
|
+
async function prepareUploadFile(_0x3bc6e8, _0x5d0d7c = {}) {
|
|
63
|
+
const _0x5932b9 = {
|
|
64
|
+
_0xeff301: 0xd1,
|
|
65
|
+
_0x33ebd9: 0x1af,
|
|
66
|
+
_0x5ed444: 0x1cc
|
|
67
|
+
}, _0x2af0cb = _0x301d4a;
|
|
68
|
+
if (!_0x12ec89[_0x2af0cb(_0x5932b9._0xeff301)](_0x3bc6e8))
|
|
69
|
+
throw new Error(_0x2af0cb(_0x5932b9._0x33ebd9));
|
|
70
|
+
const _0x578bf1 = await stat(_0x3bc6e8)[_0x2af0cb(0x12a)](() => null);
|
|
71
|
+
if (!_0x578bf1 || !_0x578bf1[_0x2af0cb(0xdf)]())
|
|
72
|
+
throw new Error('File\x20not\x20found:\x20' + _0x3bc6e8);
|
|
73
|
+
const _0x2ee11a = _0x5d0d7c[_0x2af0cb(0xbc)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
74
|
+
if (_0x578bf1[_0x2af0cb(0x102)] > _0x2ee11a)
|
|
75
|
+
throw new Error(_0x2af0cb(0x71) + _0x578bf1[_0x2af0cb(0x102)]);
|
|
76
|
+
const _0x114988 = await readFile(_0x3bc6e8), _0xf5dbd = _0x12ec89[_0x2af0cb(0x122)](_0x3bc6e8);
|
|
77
|
+
return {
|
|
78
|
+
'contentBase64': _0x114988[_0x2af0cb(0x174)](_0x2af0cb(_0x5932b9._0x5ed444)),
|
|
79
|
+
'contentType': guessContentType(_0xf5dbd),
|
|
80
|
+
'filename': _0xf5dbd,
|
|
81
|
+
'sizeBytes': _0x578bf1[_0x2af0cb(0x102)]
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function createAttachmentCache(_0xa1f813 = {}) {
|
|
85
|
+
const _0x1bc361 = {
|
|
86
|
+
_0x9fccab: 0x11c,
|
|
87
|
+
_0x5b1f90: 0x149,
|
|
88
|
+
_0x10c861: 0x1d3,
|
|
89
|
+
_0x2d4a55: 0x9c
|
|
90
|
+
}, _0x15b0af = {
|
|
91
|
+
_0x4b7c2a: 0x171,
|
|
92
|
+
_0x12674e: 0x199,
|
|
93
|
+
_0x2f7fb9: 0xbe
|
|
94
|
+
}, _0x5370bd = _0x301d4a, _0x1a5dec = _0xa1f813[_0x5370bd(_0x1bc361._0x9fccab)] ?? _0x12ec89[_0x5370bd(_0x1bc361._0x5b1f90)](homedir(), _0x5370bd(_0x1bc361._0x10c861), _0x5370bd(_0x1bc361._0x2d4a55));
|
|
95
|
+
return {
|
|
96
|
+
'cacheDir': _0x1a5dec,
|
|
97
|
+
async 'findCachedPath'(_0x4e2976) {
|
|
98
|
+
const _0x39a0bb = _0x5370bd;
|
|
99
|
+
await mkdir(_0x1a5dec, { 'recursive': !![] });
|
|
100
|
+
const _0x5a229 = await readdir(_0x1a5dec), _0x4406aa = _0x5a229['find'](_0x491574 => _0x491574[_0x39a0bb(0x182)](_0x4e2976 + '-') || _0x491574[_0x39a0bb(0x182)](_0x4e2976));
|
|
101
|
+
return _0x4406aa ? _0x12ec89[_0x39a0bb(0x149)](_0x1a5dec, _0x4406aa) : null;
|
|
102
|
+
},
|
|
103
|
+
async 'save'(_0x154ef3) {
|
|
104
|
+
const _0x48ced9 = _0x5370bd;
|
|
105
|
+
await mkdir(_0x1a5dec, { 'recursive': !![] });
|
|
106
|
+
const _0x493ad1 = _0x154ef3[_0x48ced9(0x199)]?.[_0x48ced9(_0x15b0af._0x4b7c2a)]() ? safeFilename(_0x154ef3[_0x48ced9(_0x15b0af._0x12674e)]) : '' + _0x154ef3[_0x48ced9(0xc1)] + extensionFor(_0x154ef3[_0x48ced9(_0x15b0af._0x2f7fb9)]), _0xc34c99 = _0x12ec89[_0x48ced9(0x149)](_0x1a5dec, _0x154ef3[_0x48ced9(0xc1)] + '-' + _0x493ad1);
|
|
107
|
+
return await writeFile(_0xc34c99, _0x154ef3['data']), _0xc34c99;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
import {
|
|
112
|
+
createHash,
|
|
113
|
+
randomUUID
|
|
114
|
+
} from 'node:crypto';
|
|
115
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x301d4a(0x1dd);
|
|
116
|
+
function ensureSegment(_0x5d4135) {
|
|
117
|
+
const _0x49d128 = { _0x3d50e3: 0x171 }, _0x342a29 = _0x301d4a, _0x1047b4 = _0x5d4135[_0x342a29(_0x49d128._0x3d50e3)]();
|
|
118
|
+
if (!_0x1047b4 || _0x1047b4[_0x342a29(0x110)](':'))
|
|
119
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
120
|
+
return _0x1047b4;
|
|
121
|
+
}
|
|
122
|
+
function parseThreadParts(_0x46518f) {
|
|
123
|
+
const _0x4ac949 = { _0x3be2c6: 0x1f3 }, _0x2c163a = _0x301d4a, _0x591f09 = _0x46518f[_0x2c163a(0x15c)](':');
|
|
124
|
+
if (_0x591f09[_0x2c163a(_0x4ac949._0x3be2c6)] < 0x1 || _0x591f09[_0x2c163a(_0x4ac949._0x3be2c6)] > 0x2)
|
|
125
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
126
|
+
return {
|
|
127
|
+
'channelName': ensureSegment(_0x591f09[0x0] ?? ''),
|
|
128
|
+
'threadShortId': _0x591f09[0x1] ? ensureSegment(_0x591f09[0x1]) : null
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function parseTarget(_0x4f0124) {
|
|
132
|
+
const _0x3f80fd = {
|
|
133
|
+
_0x1d3c54: 0x171,
|
|
134
|
+
_0x583c5b: 0x182,
|
|
135
|
+
_0x56095a: 0x17f,
|
|
136
|
+
_0x42ffa6: 0x88,
|
|
137
|
+
_0x37bd7e: 0x17f,
|
|
138
|
+
_0x1101d1: 0xd0,
|
|
139
|
+
_0xf65404: 0x182,
|
|
140
|
+
_0x2fbb56: 0x180,
|
|
141
|
+
_0x1c4f4b: 0x14e
|
|
142
|
+
}, _0x1b1a24 = _0x301d4a, _0x559d15 = _0x4f0124[_0x1b1a24(_0x3f80fd._0x1d3c54)]();
|
|
143
|
+
if (!_0x559d15)
|
|
144
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
145
|
+
if (_0x559d15[_0x1b1a24(_0x3f80fd._0x583c5b)]('#')) {
|
|
146
|
+
const _0x44b205 = parseThreadParts(_0x559d15[_0x1b1a24(0x165)](0x1)), _0xa4b84d = '#' + _0x44b205[_0x1b1a24(0xd0)];
|
|
147
|
+
if (!_0x44b205[_0x1b1a24(_0x3f80fd._0x56095a)])
|
|
148
|
+
return {
|
|
149
|
+
'channelName': _0x44b205[_0x1b1a24(0xd0)],
|
|
150
|
+
'channelTarget': _0xa4b84d,
|
|
151
|
+
'kind': _0x1b1a24(_0x3f80fd._0x42ffa6),
|
|
152
|
+
'target': _0xa4b84d
|
|
153
|
+
};
|
|
154
|
+
return {
|
|
155
|
+
'channelName': _0x44b205[_0x1b1a24(0xd0)],
|
|
156
|
+
'channelTarget': _0xa4b84d,
|
|
157
|
+
'kind': _0x1b1a24(0x14e),
|
|
158
|
+
'target': _0xa4b84d + ':' + _0x44b205['threadShortId'],
|
|
159
|
+
'threadShortId': _0x44b205[_0x1b1a24(_0x3f80fd._0x37bd7e)]
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
if (_0x559d15[_0x1b1a24(0x182)](_0x1b1a24(0x180))) {
|
|
163
|
+
const _0x213d0d = parseThreadParts(_0x559d15[_0x1b1a24(0x165)](0x3));
|
|
164
|
+
if (!_0x213d0d[_0x1b1a24(_0x3f80fd._0x1101d1)][_0x1b1a24(_0x3f80fd._0xf65404)]('dm-'))
|
|
165
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
166
|
+
const _0x132887 = _0x1b1a24(_0x3f80fd._0x2fbb56) + _0x213d0d['channelName'];
|
|
167
|
+
if (!_0x213d0d['threadShortId'])
|
|
168
|
+
return {
|
|
169
|
+
'channelName': _0x213d0d[_0x1b1a24(_0x3f80fd._0x1101d1)],
|
|
170
|
+
'channelTarget': _0x132887,
|
|
171
|
+
'kind': 'channel',
|
|
172
|
+
'target': _0x132887
|
|
173
|
+
};
|
|
174
|
+
return {
|
|
175
|
+
'channelName': _0x213d0d[_0x1b1a24(_0x3f80fd._0x1101d1)],
|
|
176
|
+
'channelTarget': _0x132887,
|
|
177
|
+
'kind': _0x1b1a24(_0x3f80fd._0x1c4f4b),
|
|
178
|
+
'target': _0x132887 + ':' + _0x213d0d[_0x1b1a24(0x17f)],
|
|
179
|
+
'threadShortId': _0x213d0d[_0x1b1a24(0x17f)]
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
183
|
+
}
|
|
184
|
+
function asErrorMessage(_0xe9d20e, _0x4e4bc4) {
|
|
185
|
+
const _0x55e22d = _0x301d4a;
|
|
186
|
+
if (typeof _0xe9d20e === _0x55e22d(0x108) && _0xe9d20e['trim']())
|
|
187
|
+
return _0xe9d20e;
|
|
188
|
+
return _0x4e4bc4;
|
|
189
|
+
}
|
|
190
|
+
function asRecord(_0x11892e) {
|
|
191
|
+
const _0x14ae9b = { _0x380b1b: 0x101 }, _0x56f6cb = _0x301d4a;
|
|
192
|
+
return typeof _0x11892e === _0x56f6cb(_0x14ae9b._0x380b1b) && _0x11892e !== null ? _0x11892e : {};
|
|
193
|
+
}
|
|
194
|
+
function stableStringify(_0xa07fe6) {
|
|
195
|
+
const _0x1eba22 = {
|
|
196
|
+
_0x4e0b1a: 0x101,
|
|
197
|
+
_0x381369: 0x85
|
|
198
|
+
}, _0x3d0637 = _0x301d4a;
|
|
199
|
+
if (_0xa07fe6 === null || typeof _0xa07fe6 !== _0x3d0637(_0x1eba22._0x4e0b1a))
|
|
200
|
+
return JSON[_0x3d0637(0xc5)](_0xa07fe6);
|
|
201
|
+
if (Array['isArray'](_0xa07fe6))
|
|
202
|
+
return '[' + _0xa07fe6[_0x3d0637(_0x1eba22._0x381369)](_0xb99c88 => stableStringify(_0xb99c88))[_0x3d0637(0x149)](',') + ']';
|
|
203
|
+
const _0x3141ff = Object[_0x3d0637(0x121)](_0xa07fe6)[_0x3d0637(0x1eb)](([, _0x40c24e]) => _0x40c24e !== void 0x0)[_0x3d0637(0xd9)](([_0x3c1d2f], [_0x46eb90]) => _0x3c1d2f[_0x3d0637(0x13e)](_0x46eb90))[_0x3d0637(0x85)](([_0x5ef6f5, _0x56565f]) => JSON[_0x3d0637(0xc5)](_0x5ef6f5) + ':' + stableStringify(_0x56565f));
|
|
204
|
+
return '{' + _0x3141ff['join'](',') + '}';
|
|
205
|
+
}
|
|
206
|
+
function createHeaders(_0x5cd559) {
|
|
207
|
+
const _0x531683 = { _0xcd682c: 0x170 }, _0x28bfc0 = _0x301d4a;
|
|
208
|
+
return {
|
|
209
|
+
'Content-Type': _0x28bfc0(_0x531683._0xcd682c),
|
|
210
|
+
'x-daemon-api-key': _0x5cd559
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
function toHttpBaseUrl(_0x2d9b06) {
|
|
214
|
+
const _0x4a75f2 = {
|
|
215
|
+
_0x54ccb7: 0x178,
|
|
216
|
+
_0x2c9d16: 0x15b,
|
|
217
|
+
_0x1dc09f: 0x15b,
|
|
218
|
+
_0x5ea731: 0xa1
|
|
219
|
+
}, _0x5d2d93 = _0x301d4a, _0x30af36 = new URL(_0x2d9b06);
|
|
220
|
+
if (_0x30af36[_0x5d2d93(0x15b)] === _0x5d2d93(_0x4a75f2._0x54ccb7))
|
|
221
|
+
_0x30af36[_0x5d2d93(_0x4a75f2._0x2c9d16)] = _0x5d2d93(0xc2);
|
|
222
|
+
else
|
|
223
|
+
_0x30af36[_0x5d2d93(_0x4a75f2._0x1dc09f)] === _0x5d2d93(0x154) && (_0x30af36[_0x5d2d93(0x15b)] = _0x5d2d93(0x156));
|
|
224
|
+
return _0x30af36[_0x5d2d93(0x174)]()[_0x5d2d93(_0x4a75f2._0x5ea731)](/\/$/, '');
|
|
225
|
+
}
|
|
226
|
+
function isMentionBoundary(_0x19c14d) {
|
|
227
|
+
const _0x5f0605 = { _0x13ae6a: 0x1ec }, _0x469fa7 = _0x301d4a;
|
|
228
|
+
return !_0x19c14d || /\s|[([{'",。!?、:;]/[_0x469fa7(_0x5f0605._0x13ae6a)](_0x19c14d);
|
|
229
|
+
}
|
|
230
|
+
function isMentionTerminal(_0x192db0) {
|
|
231
|
+
const _0x3bb8ad = _0x301d4a;
|
|
232
|
+
return !_0x192db0 || /\s|[)\]}'",。!?、:;,.!?]/[_0x3bb8ad(0x1ec)](_0x192db0);
|
|
233
|
+
}
|
|
234
|
+
function buildMatchableEntries(_0x21ad3e) {
|
|
235
|
+
const _0x2895e0 = {
|
|
236
|
+
_0x5e5cc8: 0xf2,
|
|
237
|
+
_0x2c5760: 0x177,
|
|
238
|
+
_0x305c49: 0xf5,
|
|
239
|
+
_0x2c7825: 0x1e9
|
|
240
|
+
}, _0x1dc7a4 = _0x301d4a, _0x51638e = [];
|
|
241
|
+
for (const _0x32c723 of [
|
|
242
|
+
..._0x21ad3e[_0x1dc7a4(0x130)],
|
|
243
|
+
..._0x21ad3e[_0x1dc7a4(_0x2895e0._0x5e5cc8)]
|
|
244
|
+
]) {
|
|
245
|
+
_0x51638e[_0x1dc7a4(_0x2895e0._0x2c5760)]({
|
|
246
|
+
'matchName': _0x32c723['name'],
|
|
247
|
+
'matchNameLower': _0x32c723[_0x1dc7a4(_0x2895e0._0x305c49)]['toLocaleLowerCase'](),
|
|
248
|
+
'participantId': _0x32c723['id']
|
|
249
|
+
}), _0x32c723['id'] !== _0x32c723['name'] && _0x51638e['push']({
|
|
250
|
+
'matchName': _0x32c723['id'],
|
|
251
|
+
'matchNameLower': _0x32c723['id'][_0x1dc7a4(_0x2895e0._0x2c7825)](),
|
|
252
|
+
'participantId': _0x32c723['id']
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
return _0x51638e;
|
|
256
|
+
}
|
|
257
|
+
function extractMentionedParticipantIds(_0xbd1369, _0xcda78e) {
|
|
258
|
+
const _0x406730 = {
|
|
259
|
+
_0x12683d: 0xd9,
|
|
260
|
+
_0x104596: 0x1f3,
|
|
261
|
+
_0x1a00e3: 0x1e9,
|
|
262
|
+
_0x41391e: 0x194,
|
|
263
|
+
_0x17c19e: 0x1f3
|
|
264
|
+
}, _0x4b424c = { _0x5a079c: 0x182 }, _0xc276b6 = _0x301d4a, _0x530f68 = buildMatchableEntries(_0xcda78e)[_0xc276b6(_0x406730._0x12683d)]((_0x2f13dc, _0x30b378) => _0x30b378[_0xc276b6(0x1a3)][_0xc276b6(0x1f3)] - _0x2f13dc[_0xc276b6(0x1a3)][_0xc276b6(0x1f3)]), _0x4804b2 = [], _0x1febcb = new Set();
|
|
265
|
+
for (let _0x526b66 = 0x0; _0x526b66 < _0xbd1369[_0xc276b6(_0x406730._0x104596)]; _0x526b66 += 0x1) {
|
|
266
|
+
if (_0xbd1369[_0x526b66] !== '@' || !isMentionBoundary(_0xbd1369[_0x526b66 - 0x1]))
|
|
267
|
+
continue;
|
|
268
|
+
const _0xd52cbd = _0xbd1369['slice'](_0x526b66 + 0x1), _0x24e19d = _0xd52cbd[_0xc276b6(_0x406730._0x1a00e3)](), _0x537e55 = _0x530f68[_0xc276b6(0x12b)](_0x194fec => {
|
|
269
|
+
const _0x3a4d8a = _0xc276b6;
|
|
270
|
+
if (!_0x24e19d[_0x3a4d8a(_0x4b424c._0x5a079c)](_0x194fec['matchNameLower']))
|
|
271
|
+
return ![];
|
|
272
|
+
return isMentionTerminal(_0xd52cbd[_0x194fec[_0x3a4d8a(0x1a3)][_0x3a4d8a(0x1f3)]]);
|
|
273
|
+
});
|
|
274
|
+
if (!_0x537e55 || _0x1febcb[_0xc276b6(0x8e)](_0x537e55[_0xc276b6(0x194)]))
|
|
275
|
+
continue;
|
|
276
|
+
_0x1febcb[_0xc276b6(0xb2)](_0x537e55[_0xc276b6(_0x406730._0x41391e)]), _0x4804b2[_0xc276b6(0x177)](_0x537e55[_0xc276b6(0x194)]), _0x526b66 += _0x537e55[_0xc276b6(0x1a3)][_0xc276b6(_0x406730._0x17c19e)];
|
|
277
|
+
}
|
|
278
|
+
return _0x4804b2;
|
|
279
|
+
}
|
|
280
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
281
|
+
function anySignal(..._0x87f401) {
|
|
282
|
+
const _0x57188f = {
|
|
283
|
+
_0x5003b3: 0xae,
|
|
284
|
+
_0x150345: 0xf6
|
|
285
|
+
}, _0x27df5d = _0x301d4a, _0x1614fa = new AbortController();
|
|
286
|
+
for (const _0x209697 of _0x87f401) {
|
|
287
|
+
if (_0x209697['aborted'])
|
|
288
|
+
return _0x1614fa[_0x27df5d(_0x57188f._0x5003b3)](_0x209697['reason']), _0x1614fa[_0x27df5d(0xf6)];
|
|
289
|
+
_0x209697['addEventListener'](_0x27df5d(0xae), () => _0x1614fa['abort'](_0x209697[_0x27df5d(0x1d9)]), {
|
|
290
|
+
'once': !![],
|
|
291
|
+
'signal': _0x1614fa[_0x27df5d(_0x57188f._0x150345)]
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
return _0x1614fa[_0x27df5d(0xf6)];
|
|
295
|
+
}
|
|
296
|
+
function createInternalAgentClient(_0x124510) {
|
|
297
|
+
const _0x5c541f = {
|
|
298
|
+
_0x14b263: 0x79,
|
|
299
|
+
_0x4d0216: 0x1bf,
|
|
300
|
+
_0x1e6345: 0x104,
|
|
301
|
+
_0x181215: 0x1f7,
|
|
302
|
+
_0x591090: 0x171,
|
|
303
|
+
_0x38f324: 0x166,
|
|
304
|
+
_0x5c8cfc: 0x1fb
|
|
305
|
+
}, _0x1deeff = {
|
|
306
|
+
_0x2fe4cc: 0x143,
|
|
307
|
+
_0x331188: 0x1fd,
|
|
308
|
+
_0x3eaeb8: 0x9f,
|
|
309
|
+
_0x182b74: 0x18d,
|
|
310
|
+
_0x444e56: 0xa4,
|
|
311
|
+
_0x27649f: 0x13a,
|
|
312
|
+
_0x3861a5: 0x108,
|
|
313
|
+
_0xf8aec6: 0xaa,
|
|
314
|
+
_0x4ff8f9: 0xaa,
|
|
315
|
+
_0x2d3317: 0x15a,
|
|
316
|
+
_0x5e6971: 0xb3,
|
|
317
|
+
_0x23e5c7: 0x80,
|
|
318
|
+
_0x580267: 0xde,
|
|
319
|
+
_0x202999: 0x143,
|
|
320
|
+
_0x1cfeee: 0x16f,
|
|
321
|
+
_0x2b7ed5: 0xf5,
|
|
322
|
+
_0x155274: 0x189,
|
|
323
|
+
_0x5d1cbb: 0x16f,
|
|
324
|
+
_0x1e7d20: 0xde,
|
|
325
|
+
_0x234216: 0x177,
|
|
326
|
+
_0x8d7f5: 0x129,
|
|
327
|
+
_0x4fa735: 0x189,
|
|
328
|
+
_0x2006f9: 0xef,
|
|
329
|
+
_0x1486ab: 0x17c,
|
|
330
|
+
_0x4def03: 0x189,
|
|
331
|
+
_0xb0038e: 0x189
|
|
332
|
+
}, _0x2f11df = {
|
|
333
|
+
_0x3a1295: 0x13a,
|
|
334
|
+
_0x382e98: 0x13a,
|
|
335
|
+
_0x10207b: 0x8e
|
|
336
|
+
}, _0xa1b811 = { _0xe31347: 0xe1 }, _0x4545ce = {
|
|
337
|
+
_0x1f3e9d: 0x1c3,
|
|
338
|
+
_0xe359ed: 0x184,
|
|
339
|
+
_0x1b9823: 0x197,
|
|
340
|
+
_0x53d638: 0x1a0,
|
|
341
|
+
_0x52d10d: 0xcb,
|
|
342
|
+
_0x5ac2d1: 0x199
|
|
343
|
+
}, _0xed7e74 = {
|
|
344
|
+
_0x5dde04: 0x9f,
|
|
345
|
+
_0x4dd531: 0xd4,
|
|
346
|
+
_0x2945bf: 0xac,
|
|
347
|
+
_0x19b9fc: 0x13f,
|
|
348
|
+
_0xc5dc6c: 0xed,
|
|
349
|
+
_0x3779b3: 0x15d,
|
|
350
|
+
_0x5bde7c: 0x1d4
|
|
351
|
+
}, _0x519eef = {
|
|
352
|
+
_0x300f68: 0x97,
|
|
353
|
+
_0x1e00f3: 0x127
|
|
354
|
+
}, _0x169415 = {
|
|
355
|
+
_0x21b659: 0x9f,
|
|
356
|
+
_0x3ced43: 0x152,
|
|
357
|
+
_0x360167: 0x13f
|
|
358
|
+
}, _0x106c49 = {
|
|
359
|
+
_0x5648b2: 0x9f,
|
|
360
|
+
_0x561183: 0x111,
|
|
361
|
+
_0x189946: 0x13f
|
|
362
|
+
}, _0x4bb828 = {
|
|
363
|
+
_0x1cb49c: 0x97,
|
|
364
|
+
_0xd95f87: 0x9f,
|
|
365
|
+
_0x198c22: 0xc5,
|
|
366
|
+
_0x1c623d: 0x176
|
|
367
|
+
}, _0x5cda9c = {
|
|
368
|
+
_0x179bd7: 0x88,
|
|
369
|
+
_0x11db11: 0xa0,
|
|
370
|
+
_0x2cbc2d: 0x9f,
|
|
371
|
+
_0x22b193: 0xb8,
|
|
372
|
+
_0x5eb202: 0x1c3
|
|
373
|
+
}, _0x1a59b1 = {
|
|
374
|
+
_0x199b6f: 0x1ae,
|
|
375
|
+
_0x9edbd0: 0x1b1,
|
|
376
|
+
_0x201dc7: 0x91
|
|
377
|
+
}, _0x2f0087 = {
|
|
378
|
+
_0x4b79b6: 0x1b1,
|
|
379
|
+
_0x493e1b: 0x70,
|
|
380
|
+
_0x416a32: 0x13f,
|
|
381
|
+
_0x27ecba: 0x15d
|
|
382
|
+
}, _0x1d656c = {
|
|
383
|
+
_0x59c253: 0xc5,
|
|
384
|
+
_0x58ac52: 0x13f,
|
|
385
|
+
_0x54b481: 0x15d,
|
|
386
|
+
_0x5660a2: 0x1da
|
|
387
|
+
}, _0x4eb618 = {
|
|
388
|
+
_0x4c7061: 0xcf,
|
|
389
|
+
_0xbaad71: 0x95,
|
|
390
|
+
_0x4975fc: 0x13a,
|
|
391
|
+
_0x417e0a: 0x1ff,
|
|
392
|
+
_0xe34e03: 0x1ff,
|
|
393
|
+
_0x360586: 0x15d
|
|
394
|
+
}, _0x119864 = {
|
|
395
|
+
_0x3d8b93: 0xe1,
|
|
396
|
+
_0x5c695a: 0x143,
|
|
397
|
+
_0x4ebfb9: 0x143,
|
|
398
|
+
_0x4af93c: 0xaa,
|
|
399
|
+
_0x583eb2: 0x13a,
|
|
400
|
+
_0x100e32: 0x13a,
|
|
401
|
+
_0x14c038: 0x13a,
|
|
402
|
+
_0x26c606: 0x116,
|
|
403
|
+
_0x16f968: 0x143,
|
|
404
|
+
_0x443650: 0x143,
|
|
405
|
+
_0x52899d: 0x7d,
|
|
406
|
+
_0x1ae9e7: 0x9f,
|
|
407
|
+
_0x4b9b4e: 0x15d,
|
|
408
|
+
_0x77f357: 0x85,
|
|
409
|
+
_0x197113: 0xff,
|
|
410
|
+
_0x4d1481: 0xc9
|
|
411
|
+
}, _0x27cdb8 = { _0x1bfc72: 0xdb }, _0x1f6f3f = {
|
|
412
|
+
_0x3209d0: 0xdb,
|
|
413
|
+
_0x39798a: 0x194
|
|
414
|
+
}, _0x3d9f87 = {
|
|
415
|
+
_0x118729: 0x14e,
|
|
416
|
+
_0x1f32ae: 0xd8,
|
|
417
|
+
_0x3f439e: 0xd8,
|
|
418
|
+
_0x57c2fc: 0xb3,
|
|
419
|
+
_0x5abcfa: 0x17f,
|
|
420
|
+
_0x149ce0: 0xb3,
|
|
421
|
+
_0x2a23f7: 0x182,
|
|
422
|
+
_0x36ec7a: 0xaa,
|
|
423
|
+
_0x5dbcbb: 0x182,
|
|
424
|
+
_0x24229f: 0x17f
|
|
425
|
+
}, _0x50d1c2 = {
|
|
426
|
+
_0x2c2771: 0xd8,
|
|
427
|
+
_0x136b3f: 0x15a,
|
|
428
|
+
_0x3a7eb4: 0xaa,
|
|
429
|
+
_0x35f2da: 0x165
|
|
430
|
+
}, _0x2ca2eb = {
|
|
431
|
+
_0x1511db: 0x9f,
|
|
432
|
+
_0x367d79: 0x1c3,
|
|
433
|
+
_0x16572d: 0x15d,
|
|
434
|
+
_0x9fcd54: 0xbd,
|
|
435
|
+
_0x2163f6: 0x1eb,
|
|
436
|
+
_0x3ea8a5: 0x106,
|
|
437
|
+
_0x4f81c1: 0x19e,
|
|
438
|
+
_0x31062c: 0x15d,
|
|
439
|
+
_0x324f4f: 0xf5
|
|
440
|
+
}, _0x44b7b2 = {
|
|
441
|
+
_0x59da68: 0x9f,
|
|
442
|
+
_0xaff2fb: 0xf9,
|
|
443
|
+
_0x40f943: 0xac,
|
|
444
|
+
_0x344897: 0x13a,
|
|
445
|
+
_0x235d64: 0x15d,
|
|
446
|
+
_0x521785: 0xaa,
|
|
447
|
+
_0x29dca2: 0xb3
|
|
448
|
+
}, _0x38b9a9 = {
|
|
449
|
+
_0x4292b9: 0x1e3,
|
|
450
|
+
_0x33e9aa: 0xc5
|
|
451
|
+
}, _0x35c365 = {
|
|
452
|
+
_0x371925: 0xb7,
|
|
453
|
+
_0x40b390: 0x1fe,
|
|
454
|
+
_0x27d184: 0x200
|
|
455
|
+
}, _0x181da4 = {
|
|
456
|
+
_0x610a3e: 0xf6,
|
|
457
|
+
_0x149c46: 0xf6,
|
|
458
|
+
_0x2c957e: 0xf6
|
|
459
|
+
}, _0x5dc2a4 = {
|
|
460
|
+
_0x2bcd49: 0xf6,
|
|
461
|
+
_0x4dea8e: 0x100,
|
|
462
|
+
_0x525d17: 0xa0
|
|
463
|
+
}, _0x476dfa = {
|
|
464
|
+
_0x16358c: 0x171,
|
|
465
|
+
_0x146ee9: 0x1f4,
|
|
466
|
+
_0x373da5: 0xde,
|
|
467
|
+
_0x3e4b64: 0x144,
|
|
468
|
+
_0x54364a: 0x143
|
|
469
|
+
}, _0x7034ff = { _0x257890: 0x1ba }, _0x5bfabe = {
|
|
470
|
+
_0xa074f: 0xe3,
|
|
471
|
+
_0x1ef77d: 0x171,
|
|
472
|
+
_0x410342: 0xa1,
|
|
473
|
+
_0x584d50: 0xa5,
|
|
474
|
+
_0x5853c0: 0x9b,
|
|
475
|
+
_0x5b2a50: 0xa0
|
|
476
|
+
}, _0x1a8b43 = _0x301d4a, _0x4844e9 = _0x124510[_0x1a8b43(_0x5c541f._0x14b263)] ?? fetch, _0x147b64 = _0x124510['fetchTimeoutMs'] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x18f9e6 = typeof _0x124510['initialLastSeenSeq'] === _0x1a8b43(_0x5c541f._0x4d0216) && _0x124510[_0x1a8b43(0x86)] > 0x0 ? _0x124510[_0x1a8b43(0x86)] : 0x0, _0x346f52 = _0x124510[_0x1a8b43(_0x5c541f._0x1e6345)]?.['trim']() || void 0x0, _0x1ac220 = _0x124510['sessionId']?.[_0x1a8b43(0x171)]() || void 0x0, _0x2a30f2 = _0x124510['workerModeEnabled'] === !![], _0x57fea4 = _0x124510[_0x1a8b43(_0x5c541f._0x181215)]?.[_0x1a8b43(_0x5c541f._0x591090)]() || void 0x0, _0x5eef97 = _0x124510[_0x1a8b43(_0x5c541f._0x38f324)]?.[_0x1a8b43(0x171)]() || void 0x0, _0x1499c4 = createHeaders(_0x124510['daemonApiKey']), _0x2a6e30 = toHttpBaseUrl(_0x124510[_0x1a8b43(_0x5c541f._0x5c8cfc)]);
|
|
477
|
+
let _0x5a2d66 = null;
|
|
478
|
+
const _0xd48291 = new Map();
|
|
479
|
+
let _0x2fd216 = _0x18f9e6, _0x956cfb = _0x18f9e6;
|
|
480
|
+
function _0x1dd2e0(_0x1e5185) {
|
|
481
|
+
const _0x48294b = _0x1a8b43, _0x2787f1 = _0x1e5185['response'][_0x48294b(0x197)][_0x48294b(0xde)](_0x48294b(_0x5bfabe._0xa074f)) ?? _0x48294b(0x1f1), _0x45d62d = _0x1e5185[_0x48294b(0x10e)][_0x48294b(_0x5bfabe._0x1ef77d)]()[_0x48294b(_0x5bfabe._0x410342)](/\s+/g, '\x20')[_0x48294b(0x165)](0x0, 0x78) || _0x48294b(0x83);
|
|
482
|
+
return '请求\x20' + _0x1e5185[_0x48294b(0x1f8)] + _0x48294b(_0x5bfabe._0x584d50) + _0x1e5185[_0x48294b(_0x5bfabe._0x5853c0)][_0x48294b(_0x5bfabe._0x5b2a50)] + ',\x20content-type=' + _0x2787f1 + _0x48294b(0x93) + _0x45d62d + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
483
|
+
}
|
|
484
|
+
async function _0x4d5259(_0x4fcc4f, _0x4aa66f) {
|
|
485
|
+
const _0x522639 = _0x1a8b43, _0xad975e = Buffer[_0x522639(0x1a0)](await _0x4aa66f[_0x522639(0xcb)]())['toString'](_0x522639(0x9d));
|
|
486
|
+
if (!_0xad975e[_0x522639(0x171)]())
|
|
487
|
+
return {};
|
|
488
|
+
try {
|
|
489
|
+
return JSON[_0x522639(_0x7034ff._0x257890)](_0xad975e);
|
|
490
|
+
} catch {
|
|
491
|
+
throw new Error(_0x1dd2e0({
|
|
492
|
+
'bodyText': _0xad975e,
|
|
493
|
+
'requestUrl': _0x4fcc4f,
|
|
494
|
+
'response': _0x4aa66f
|
|
495
|
+
}));
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
function _0x2b24de(_0x56b0b2, _0x3be566) {
|
|
499
|
+
const _0x2d34da = _0x1a8b43, _0x1fccf1 = typeof _0x3be566['idempotency_key'] === 'string' ? _0x3be566['idempotency_key'][_0x2d34da(_0x476dfa._0x16358c)]() : '';
|
|
500
|
+
if (_0x1fccf1)
|
|
501
|
+
return _0x1fccf1;
|
|
502
|
+
const _0x1d6c9a = Date['now']();
|
|
503
|
+
for (const [_0xd39e19, _0x24bc1e] of _0xd48291) {
|
|
504
|
+
_0x24bc1e[_0x2d34da(0xc6)] <= _0x1d6c9a && _0xd48291['delete'](_0xd39e19);
|
|
505
|
+
}
|
|
506
|
+
const _0x3ae73f = {
|
|
507
|
+
..._0x3be566,
|
|
508
|
+
'idempotency_key': void 0x0
|
|
509
|
+
}, _0x497f20 = createHash(_0x2d34da(0xab))[_0x2d34da(0x138)](_0x56b0b2 + ':' + stableStringify(_0x3ae73f))[_0x2d34da(_0x476dfa._0x146ee9)](_0x2d34da(0x1ef)), _0x1f4c90 = _0x56b0b2 + ':' + _0x497f20, _0x5151cf = _0xd48291[_0x2d34da(_0x476dfa._0x373da5)](_0x1f4c90);
|
|
510
|
+
if (_0x5151cf)
|
|
511
|
+
return _0x5151cf[_0x2d34da(_0x476dfa._0x3e4b64)];
|
|
512
|
+
const _0x89eb36 = _0x2d34da(0xd6) + _0x56b0b2 + ':' + randomUUID();
|
|
513
|
+
return _0xd48291[_0x2d34da(_0x476dfa._0x54364a)](_0x1f4c90, {
|
|
514
|
+
'expiresAt': _0x1d6c9a + 0x5 * 0x3c * 0x3e8,
|
|
515
|
+
'value': _0x89eb36
|
|
516
|
+
}), _0x89eb36;
|
|
517
|
+
}
|
|
518
|
+
async function _0x3be47c(_0x36839a, _0x5bc262) {
|
|
519
|
+
const _0x3f58f4 = _0x1a8b43, _0x1f8e42 = new AbortController(), _0x1a3dc3 = setTimeout(() => _0x1f8e42[_0x3f58f4(0xae)](), _0x147b64), _0x16e36c = _0x5bc262?.[_0x3f58f4(0xf6)] ? anySignal(_0x5bc262['signal'], _0x1f8e42[_0x3f58f4(0xf6)]) : _0x1f8e42[_0x3f58f4(_0x5dc2a4._0x2bcd49)], _0x3881fa = '' + _0x2a6e30 + _0x36839a;
|
|
520
|
+
try {
|
|
521
|
+
const _0x2c12f2 = await _0x4844e9(_0x3881fa, {
|
|
522
|
+
..._0x5bc262,
|
|
523
|
+
'signal': _0x16e36c
|
|
524
|
+
}), _0x25e394 = await _0x4d5259(_0x3881fa, _0x2c12f2);
|
|
525
|
+
if (!_0x2c12f2['ok'] || _0x25e394['success'] === ![])
|
|
526
|
+
throw new Error(asErrorMessage(_0x25e394[_0x3f58f4(_0x5dc2a4._0x4dea8e)], _0x3f58f4(0x184) + _0x2c12f2[_0x3f58f4(_0x5dc2a4._0x525d17)]));
|
|
527
|
+
return _0x25e394;
|
|
528
|
+
} finally {
|
|
529
|
+
clearTimeout(_0x1a3dc3);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
async function _0x55f1ec(_0x134fc4, _0x363b00) {
|
|
533
|
+
const _0x527d47 = _0x1a8b43, _0x545bdf = new AbortController(), _0x4bf8c9 = setTimeout(() => _0x545bdf['abort'](), _0x147b64), _0x9d3984 = _0x363b00?.[_0x527d47(0xf6)] ? anySignal(_0x363b00[_0x527d47(_0x181da4._0x610a3e)], _0x545bdf[_0x527d47(_0x181da4._0x149c46)]) : _0x545bdf[_0x527d47(_0x181da4._0x2c957e)], _0x57bad6 = '' + _0x2a6e30 + _0x134fc4;
|
|
534
|
+
try {
|
|
535
|
+
const _0x5ac917 = await _0x4844e9(_0x57bad6, {
|
|
536
|
+
..._0x363b00,
|
|
537
|
+
'signal': _0x9d3984
|
|
538
|
+
}), _0x559b5d = await _0x4d5259(_0x57bad6, _0x5ac917);
|
|
539
|
+
if (!_0x5ac917['ok'])
|
|
540
|
+
throw new Error(asErrorMessage(_0x559b5d['error'], _0x527d47(0x184) + _0x5ac917[_0x527d47(0xa0)]));
|
|
541
|
+
return _0x559b5d;
|
|
542
|
+
} finally {
|
|
543
|
+
clearTimeout(_0x4bf8c9);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
async function _0x4cb451(_0x2d79aa) {
|
|
547
|
+
const _0x1ed08f = _0x1a8b43;
|
|
548
|
+
if (!_0x1ac220 || _0x2d79aa <= _0x956cfb)
|
|
549
|
+
return;
|
|
550
|
+
await _0x3be47c(_0x1ed08f(_0x35c365._0x371925) + encodeURIComponent(_0x1ac220) + _0x1ed08f(_0x35c365._0x40b390), {
|
|
551
|
+
'body': JSON[_0x1ed08f(0xc5)]({ 'lastSeenSeq': _0x2d79aa }),
|
|
552
|
+
'headers': _0x1499c4,
|
|
553
|
+
'method': _0x1ed08f(_0x35c365._0x27d184)
|
|
554
|
+
}), _0x956cfb = _0x2d79aa;
|
|
555
|
+
}
|
|
556
|
+
async function _0xe8c222(_0x5646f0) {
|
|
557
|
+
const _0xc6d106 = _0x1a8b43;
|
|
558
|
+
if (!_0x346f52 || !_0x57fea4 || _0x5646f0 <= _0x956cfb)
|
|
559
|
+
return;
|
|
560
|
+
const _0x1f5f68 = await _0x4844e9(_0x346f52 + _0xc6d106(_0x38b9a9._0x4292b9), {
|
|
561
|
+
'body': JSON[_0xc6d106(_0x38b9a9._0x33e9aa)]({
|
|
562
|
+
'last_seen_seq': _0x5646f0,
|
|
563
|
+
'worker_session_id': _0x57fea4
|
|
564
|
+
}),
|
|
565
|
+
'headers': { 'Content-Type': _0xc6d106(0x170) },
|
|
566
|
+
'method': _0xc6d106(0x13f)
|
|
567
|
+
});
|
|
568
|
+
if (!_0x1f5f68['ok'])
|
|
569
|
+
throw new Error('HTTP\x20' + _0x1f5f68[_0xc6d106(0xa0)]);
|
|
570
|
+
_0x956cfb = _0x5646f0;
|
|
571
|
+
}
|
|
572
|
+
async function _0x4bf7be(_0x2125a3) {
|
|
573
|
+
const _0x511bae = _0x1a8b43, _0x161b4a = parseTarget(_0x2125a3), _0xd168b7 = await _0x3be47c('/internal/agent/' + _0x124510[_0x511bae(_0x44b7b2._0x59da68)] + _0x511bae(_0x44b7b2._0xaff2fb), {
|
|
574
|
+
'body': JSON[_0x511bae(0xc5)]({ 'target': _0x161b4a[_0x511bae(_0x44b7b2._0x40f943)] }),
|
|
575
|
+
'headers': _0x1499c4,
|
|
576
|
+
'method': 'POST'
|
|
577
|
+
});
|
|
578
|
+
return {
|
|
579
|
+
'channelId': _0xd168b7['data']?.[_0x511bae(_0x44b7b2._0x344897)] ?? '',
|
|
580
|
+
'target': _0x161b4a[_0x511bae(0xd8)],
|
|
581
|
+
'task': _0xd168b7[_0x511bae(_0x44b7b2._0x235d64)]?.[_0x511bae(0x9a)],
|
|
582
|
+
'threadId': _0xd168b7[_0x511bae(0x15d)]?.[_0x511bae(_0x44b7b2._0x521785)],
|
|
583
|
+
'threadNumber': _0xd168b7[_0x511bae(0x15d)]?.[_0x511bae(_0x44b7b2._0x29dca2)]
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
async function _0x71f341(_0x16cf8d = {}) {
|
|
587
|
+
const _0x497b81 = _0x1a8b43;
|
|
588
|
+
if (!_0x16cf8d[_0x497b81(0x1c7)] && _0x5a2d66)
|
|
589
|
+
return _0x5a2d66;
|
|
590
|
+
return _0x5a2d66 = (async () => {
|
|
591
|
+
const _0x286d94 = _0x497b81, _0x1a8aa8 = await _0x3be47c('/internal/agent/' + _0x124510[_0x286d94(_0x2ca2eb._0x1511db)] + _0x286d94(0x19d), {
|
|
592
|
+
'headers': _0x1499c4,
|
|
593
|
+
'method': _0x286d94(_0x2ca2eb._0x367d79)
|
|
594
|
+
}), _0x1c06fb = _0x1a8aa8[_0x286d94(_0x2ca2eb._0x16572d)]?.[_0x286d94(_0x2ca2eb._0x9fcd54)] ?? [], _0x275a6f = _0x1c06fb[_0x286d94(_0x2ca2eb._0x2163f6)](_0xb0f310 => _0xb0f310[_0x286d94(0xdb)]?.[_0x286d94(0x18e)] === _0x286d94(0x1a4))['map'](_0x53becb => ({
|
|
595
|
+
'id': _0x13909e(_0x53becb),
|
|
596
|
+
'name': _0x4a9276(_0x53becb)
|
|
597
|
+
}))['filter'](_0x480e2f => _0x480e2f['id']), _0x1996f3 = _0x1c06fb[_0x286d94(_0x2ca2eb._0x2163f6)](_0x41fd07 => _0x41fd07['participant']?.[_0x286d94(0x18e)] !== _0x286d94(0x1a4))[_0x286d94(0x85)](_0x1bda3c => ({
|
|
598
|
+
'id': _0x13909e(_0x1bda3c),
|
|
599
|
+
'name': _0x4a9276(_0x1bda3c)
|
|
600
|
+
}))['filter'](_0x2ea263 => _0x2ea263['id']), _0x1ce223 = _0x1a8aa8[_0x286d94(0x15d)]?.[_0x286d94(_0x2ca2eb._0x3ea8a5)]['id'] ?? '';
|
|
601
|
+
return {
|
|
602
|
+
'agents': _0x275a6f,
|
|
603
|
+
'channels': _0x1a8aa8[_0x286d94(0x15d)]?.[_0x286d94(_0x2ca2eb._0x4f81c1)] ?? [],
|
|
604
|
+
'humans': _0x1996f3,
|
|
605
|
+
'serverId': _0x1ce223,
|
|
606
|
+
'serverName': _0x1a8aa8[_0x286d94(_0x2ca2eb._0x31062c)]?.['server'][_0x286d94(_0x2ca2eb._0x324f4f)] ?? _0x1ce223
|
|
607
|
+
};
|
|
608
|
+
})()[_0x497b81(0x12a)](_0x5e9be9 => {
|
|
609
|
+
_0x5a2d66 = null;
|
|
610
|
+
throw _0x5e9be9;
|
|
611
|
+
}), _0x5a2d66;
|
|
612
|
+
}
|
|
613
|
+
function _0x386d41(_0x361016, _0x150237) {
|
|
614
|
+
const _0x2a4059 = _0x1a8b43;
|
|
615
|
+
return _0x150237['agents'][_0x2a4059(0x15f)](_0x3667cd => _0x3667cd['id'] === _0x361016 || _0x3667cd[_0x2a4059(0xf5)] === _0x361016) ? _0x2a4059(0x1a4) : _0x2a4059(0xbf);
|
|
616
|
+
}
|
|
617
|
+
function _0xf413b3(_0x60f82) {
|
|
618
|
+
const _0x365a63 = _0x1a8b43;
|
|
619
|
+
if (_0x60f82['threadNumber'] != null)
|
|
620
|
+
return _0x60f82[_0x365a63(0xd8)] + ':t' + _0x60f82[_0x365a63(0xb3)];
|
|
621
|
+
if (_0x60f82['rootMessageId'])
|
|
622
|
+
return _0x60f82[_0x365a63(_0x50d1c2._0x2c2771)] + ':' + _0x60f82[_0x365a63(_0x50d1c2._0x136b3f)];
|
|
623
|
+
if (_0x60f82[_0x365a63(0xaa)])
|
|
624
|
+
return _0x60f82[_0x365a63(_0x50d1c2._0x2c2771)] + ':' + _0x60f82[_0x365a63(_0x50d1c2._0x3a7eb4)][_0x365a63(_0x50d1c2._0x35f2da)](0x0, 0x8);
|
|
625
|
+
return _0x60f82[_0x365a63(0xd8)];
|
|
626
|
+
}
|
|
627
|
+
function _0x129612(_0x2e2aab, _0x752708) {
|
|
628
|
+
const _0x41d501 = _0x1a8b43;
|
|
629
|
+
try {
|
|
630
|
+
const _0x1e9335 = parseTarget(_0x2e2aab);
|
|
631
|
+
if (_0x1e9335[_0x41d501(0x189)] !== _0x41d501(_0x3d9f87._0x118729) || _0x1e9335[_0x41d501(_0x3d9f87._0x1f32ae)] !== _0x752708[_0x41d501(_0x3d9f87._0x3f439e)])
|
|
632
|
+
return ![];
|
|
633
|
+
if (_0x752708[_0x41d501(_0x3d9f87._0x57c2fc)] != null && _0x1e9335[_0x41d501(_0x3d9f87._0x5abcfa)] === 't' + _0x752708[_0x41d501(_0x3d9f87._0x149ce0)])
|
|
634
|
+
return !![];
|
|
635
|
+
if (_0x752708[_0x41d501(0x15a)])
|
|
636
|
+
return _0x1e9335['threadShortId'] === _0x752708[_0x41d501(0x15a)] || _0x752708['rootMessageId'][_0x41d501(_0x3d9f87._0x2a23f7)](_0x1e9335['threadShortId']);
|
|
637
|
+
if (_0x752708[_0x41d501(_0x3d9f87._0x36ec7a)])
|
|
638
|
+
return _0x1e9335[_0x41d501(_0x3d9f87._0x5abcfa)] === _0x752708['threadId'] || _0x752708[_0x41d501(0xaa)][_0x41d501(_0x3d9f87._0x5dbcbb)](_0x1e9335[_0x41d501(_0x3d9f87._0x24229f)]);
|
|
639
|
+
return ![];
|
|
640
|
+
} catch {
|
|
641
|
+
return ![];
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function _0x13909e(_0x156efb) {
|
|
645
|
+
const _0x26e24a = _0x1a8b43;
|
|
646
|
+
return _0x156efb[_0x26e24a(0xe7)]?.[_0x26e24a(0x194)] ?? _0x156efb[_0x26e24a(_0x1f6f3f._0x3209d0)]?.['id'] ?? _0x156efb[_0x26e24a(_0x1f6f3f._0x39798a)] ?? '';
|
|
647
|
+
}
|
|
648
|
+
function _0x4a9276(_0x5c882c) {
|
|
649
|
+
const _0x5f2399 = _0x1a8b43;
|
|
650
|
+
return _0x5c882c[_0x5f2399(_0x27cdb8._0x1bfc72)]?.['name'] ?? _0x13909e(_0x5c882c);
|
|
651
|
+
}
|
|
652
|
+
async function _0x30d02e(_0xb69fc9) {
|
|
653
|
+
const _0x2c99d8 = _0x1a8b43, _0x474b6a = Math[_0x2c99d8(0x14f)](_0xb69fc9[_0x2c99d8(_0x119864._0x3d8b93)] ?? 0x32, 0x64), _0x49594a = await _0x71f341(), _0x4e4a02 = new URLSearchParams();
|
|
654
|
+
_0x4e4a02[_0x2c99d8(_0x119864._0x5c695a)]('limit', String(_0x474b6a));
|
|
655
|
+
_0xb69fc9[_0x2c99d8(0xaa)] ? (_0x4e4a02[_0x2c99d8(_0x119864._0x4ebfb9)](_0x2c99d8(0xaa), _0xb69fc9[_0x2c99d8(_0x119864._0x4af93c)]), _0x4e4a02[_0x2c99d8(0x143)](_0x2c99d8(_0x119864._0x583eb2), _0xb69fc9[_0x2c99d8(_0x119864._0x100e32)])) : _0x4e4a02[_0x2c99d8(0x143)](_0x2c99d8(_0x119864._0x14c038), _0xb69fc9[_0x2c99d8(0x13a)]);
|
|
656
|
+
_0xb69fc9[_0x2c99d8(_0x119864._0x26c606)] && _0x4e4a02[_0x2c99d8(_0x119864._0x16f968)](_0x2c99d8(0xc9), String(_0xb69fc9[_0x2c99d8(_0x119864._0x26c606)]));
|
|
657
|
+
_0xb69fc9['after'] !== void 0x0 && _0x4e4a02[_0x2c99d8(_0x119864._0x443650)](_0x2c99d8(_0x119864._0x52899d), String(_0xb69fc9[_0x2c99d8(0x7d)]));
|
|
658
|
+
const _0x2fe90f = await _0x3be47c('/internal/agent/' + _0x124510[_0x2c99d8(_0x119864._0x1ae9e7)] + '/history?' + _0x4e4a02[_0x2c99d8(0x174)](), {
|
|
659
|
+
'headers': _0x1499c4,
|
|
660
|
+
'method': _0x2c99d8(0x1c3)
|
|
661
|
+
}), _0x3bb883 = (_0x2fe90f[_0x2c99d8(_0x119864._0x4b9b4e)] ?? [])[_0x2c99d8(_0x119864._0x77f357)](_0x52b540 => ({
|
|
662
|
+
'attachments': (_0x52b540[_0x2c99d8(0x9c)] ?? [])['map'](_0x3dcc02 => ({
|
|
663
|
+
'filename': _0x3dcc02[_0x2c99d8(0xed)] ?? _0x3dcc02['id'],
|
|
664
|
+
'id': _0x3dcc02['id']
|
|
665
|
+
})),
|
|
666
|
+
'content': _0x52b540[_0x2c99d8(0x1fa)] ?? '',
|
|
667
|
+
'createdAt': _0x52b540[_0x2c99d8(0x129)],
|
|
668
|
+
..._0x52b540['kind'] && _0x52b540['kind'] !== 'chat' ? { 'kind': _0x52b540[_0x2c99d8(0x189)] } : {},
|
|
669
|
+
'messageId': _0x52b540['id'],
|
|
670
|
+
'senderName': _0x52b540[_0x2c99d8(0xf4)],
|
|
671
|
+
'senderType': _0x386d41(_0x52b540[_0x2c99d8(0xf4)], _0x49594a),
|
|
672
|
+
'seq': _0x52b540[_0x2c99d8(0x7c)] ?? 0x0
|
|
673
|
+
}));
|
|
674
|
+
return {
|
|
675
|
+
'channel': _0xb69fc9[_0x2c99d8(0xd8)],
|
|
676
|
+
'hasMore': _0x2fe90f['meta']?.[_0x2c99d8(_0x119864._0x197113)] ?? ![],
|
|
677
|
+
'messages': _0x3bb883,
|
|
678
|
+
'nextCursor': _0x2fe90f['meta']?.[_0x2c99d8(_0x119864._0x4d1481)]
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
return {
|
|
682
|
+
async 'sendMessage'(_0x58b7e7) {
|
|
683
|
+
const _0x5181d6 = _0x1a8b43, _0x4b1858 = await _0x4bf7be(_0x58b7e7['target']), _0x124375 = _0x58b7e7[_0x5181d6(_0x4eb618._0x4c7061)][_0x5181d6(0x110)]('@') ? extractMentionedParticipantIds(_0x58b7e7[_0x5181d6(0xcf)], await _0x71f341()) : [], _0xe925f5 = await _0x3be47c('/internal/agent/' + _0x124510[_0x5181d6(0x9f)] + _0x5181d6(0x1a8), {
|
|
684
|
+
'body': JSON[_0x5181d6(0xc5)]({
|
|
685
|
+
'attachment_ids': _0x58b7e7[_0x5181d6(_0x4eb618._0xbaad71)],
|
|
686
|
+
'bodyMarkdown': _0x58b7e7['content'],
|
|
687
|
+
'channelId': _0x4b1858[_0x5181d6(_0x4eb618._0x4975fc)],
|
|
688
|
+
..._0x124375['length'] > 0x0 ? { 'mentionedParticipantIds': _0x124375 } : {},
|
|
689
|
+
'threadId': _0x4b1858['threadId'],
|
|
690
|
+
..._0x58b7e7[_0x5181d6(_0x4eb618._0x417e0a)] ? { 'visibility': _0x58b7e7[_0x5181d6(_0x4eb618._0xe34e03)] } : {}
|
|
691
|
+
}),
|
|
692
|
+
'headers': _0x1499c4,
|
|
693
|
+
'method': _0x5181d6(0x13f)
|
|
694
|
+
});
|
|
695
|
+
return { 'messageId': _0xe925f5[_0x5181d6(_0x4eb618._0x360586)]?.['id'] ?? '' };
|
|
696
|
+
},
|
|
697
|
+
async 'listSchedules'() {
|
|
698
|
+
const _0x4a8a17 = _0x1a8b43, _0x33bf20 = await _0x3be47c('/api/internal/schedules', {
|
|
699
|
+
'headers': _0x1499c4,
|
|
700
|
+
'method': _0x4a8a17(0x1c3)
|
|
701
|
+
});
|
|
702
|
+
return _0x33bf20[_0x4a8a17(0x15d)] ?? [];
|
|
703
|
+
},
|
|
704
|
+
async 'claimScheduleRun'(_0x42b005) {
|
|
705
|
+
const _0x2d8195 = _0x1a8b43, _0x34b029 = await _0x3be47c('/api/internal/schedules/claim', {
|
|
706
|
+
'body': JSON[_0x2d8195(_0x1d656c._0x59c253)](_0x42b005),
|
|
707
|
+
'headers': _0x1499c4,
|
|
708
|
+
'method': _0x2d8195(_0x1d656c._0x58ac52)
|
|
709
|
+
});
|
|
710
|
+
return _0x34b029[_0x2d8195(_0x1d656c._0x54b481)] ?? {
|
|
711
|
+
'granted': ![],
|
|
712
|
+
'runId': null,
|
|
713
|
+
'schedule': null,
|
|
714
|
+
'scheduledFor': _0x42b005[_0x2d8195(_0x1d656c._0x5660a2)]
|
|
715
|
+
};
|
|
716
|
+
},
|
|
717
|
+
async 'startScheduleRun'(_0x140e59) {
|
|
718
|
+
const _0x524c94 = _0x1a8b43, _0x225adb = await _0x3be47c(_0x524c94(0x1ae) + encodeURIComponent(_0x140e59[_0x524c94(_0x2f0087._0x4b79b6)]) + _0x524c94(_0x2f0087._0x493e1b), {
|
|
719
|
+
'body': JSON['stringify']({}),
|
|
720
|
+
'headers': _0x1499c4,
|
|
721
|
+
'method': _0x524c94(_0x2f0087._0x416a32)
|
|
722
|
+
});
|
|
723
|
+
return _0x225adb[_0x524c94(_0x2f0087._0x27ecba)] ?? {
|
|
724
|
+
'claimedByDaemonId': '',
|
|
725
|
+
'id': _0x140e59['runId'],
|
|
726
|
+
'scheduleId': '',
|
|
727
|
+
'status': _0x524c94(0x1ad)
|
|
728
|
+
};
|
|
729
|
+
},
|
|
730
|
+
async 'finishScheduleRun'(_0x35ff8f) {
|
|
731
|
+
const _0x4d7ebe = _0x1a8b43, _0x1a4c1d = await _0x3be47c(_0x4d7ebe(_0x1a59b1._0x199b6f) + encodeURIComponent(_0x35ff8f[_0x4d7ebe(_0x1a59b1._0x9edbd0)]) + _0x4d7ebe(0x117), {
|
|
732
|
+
'body': JSON['stringify']({
|
|
733
|
+
'error': _0x35ff8f[_0x4d7ebe(0x100)],
|
|
734
|
+
'resultJson': _0x35ff8f[_0x4d7ebe(_0x1a59b1._0x201dc7)],
|
|
735
|
+
'status': _0x35ff8f[_0x4d7ebe(0xa0)]
|
|
736
|
+
}),
|
|
737
|
+
'headers': _0x1499c4,
|
|
738
|
+
'method': _0x4d7ebe(0x13f)
|
|
739
|
+
});
|
|
740
|
+
return _0x1a4c1d[_0x4d7ebe(0x15d)] ?? {
|
|
741
|
+
'nextRunAt': null,
|
|
742
|
+
'run': {
|
|
743
|
+
'claimedByDaemonId': '',
|
|
744
|
+
'id': _0x35ff8f[_0x4d7ebe(0x1b1)],
|
|
745
|
+
'scheduleId': '',
|
|
746
|
+
'status': _0x35ff8f[_0x4d7ebe(0xa0)]
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
},
|
|
750
|
+
async 'listTasks'(_0x4cbb15) {
|
|
751
|
+
const _0x1bab8b = _0x1a8b43, _0x2cdf0b = new URLSearchParams();
|
|
752
|
+
return _0x2cdf0b[_0x1bab8b(0x143)](_0x1bab8b(_0x5cda9c._0x179bd7), _0x4cbb15['channel']), _0x4cbb15[_0x1bab8b(0xa0)] && _0x2cdf0b[_0x1bab8b(0x143)](_0x1bab8b(0xa0), _0x4cbb15[_0x1bab8b(_0x5cda9c._0x11db11)]), _0x55f1ec(_0x1bab8b(0x97) + _0x124510[_0x1bab8b(_0x5cda9c._0x2cbc2d)] + _0x1bab8b(_0x5cda9c._0x22b193) + _0x2cdf0b['toString'](), {
|
|
753
|
+
'headers': _0x1499c4,
|
|
754
|
+
'method': _0x1bab8b(_0x5cda9c._0x5eb202)
|
|
755
|
+
});
|
|
756
|
+
},
|
|
757
|
+
async 'createTasks'(_0xebcf98) {
|
|
758
|
+
const _0x448d85 = _0x1a8b43;
|
|
759
|
+
return _0x55f1ec(_0x448d85(_0x4bb828._0x1cb49c) + _0x124510[_0x448d85(_0x4bb828._0xd95f87)] + '/tasks', {
|
|
760
|
+
'body': JSON[_0x448d85(_0x4bb828._0x198c22)]({
|
|
761
|
+
..._0xebcf98,
|
|
762
|
+
'idempotency_key': _0x2b24de(_0x448d85(_0x4bb828._0x1c623d), _0xebcf98)
|
|
763
|
+
}),
|
|
764
|
+
'headers': _0x1499c4,
|
|
765
|
+
'method': _0x448d85(0x13f)
|
|
766
|
+
});
|
|
767
|
+
},
|
|
768
|
+
async 'claimTasks'(_0x541f5b) {
|
|
769
|
+
const _0x46a0f3 = _0x1a8b43;
|
|
770
|
+
return _0x55f1ec(_0x46a0f3(0x97) + _0x124510[_0x46a0f3(_0x106c49._0x5648b2)] + '/tasks/claim', {
|
|
771
|
+
'body': JSON['stringify']({
|
|
772
|
+
..._0x541f5b,
|
|
773
|
+
'idempotency_key': _0x2b24de(_0x46a0f3(_0x106c49._0x561183), _0x541f5b)
|
|
774
|
+
}),
|
|
775
|
+
'headers': _0x1499c4,
|
|
776
|
+
'method': _0x46a0f3(_0x106c49._0x189946)
|
|
777
|
+
});
|
|
778
|
+
},
|
|
779
|
+
async 'unclaimTask'(_0x2e376e) {
|
|
780
|
+
const _0xd5f949 = _0x1a8b43;
|
|
781
|
+
return _0x55f1ec(_0xd5f949(0x97) + _0x124510[_0xd5f949(_0x169415._0x21b659)] + _0xd5f949(0xce), {
|
|
782
|
+
'body': JSON[_0xd5f949(0xc5)]({
|
|
783
|
+
..._0x2e376e,
|
|
784
|
+
'idempotency_key': _0x2b24de(_0xd5f949(_0x169415._0x3ced43), _0x2e376e)
|
|
785
|
+
}),
|
|
786
|
+
'headers': _0x1499c4,
|
|
787
|
+
'method': _0xd5f949(_0x169415._0x360167)
|
|
788
|
+
});
|
|
789
|
+
},
|
|
790
|
+
async 'updateTaskStatus'(_0xe366bd) {
|
|
791
|
+
const _0xe21a03 = _0x1a8b43;
|
|
792
|
+
return _0x55f1ec(_0xe21a03(_0x519eef._0x300f68) + _0x124510[_0xe21a03(0x9f)] + '/tasks/update-status', {
|
|
793
|
+
'body': JSON[_0xe21a03(0xc5)]({
|
|
794
|
+
..._0xe366bd,
|
|
795
|
+
'idempotency_key': _0x2b24de(_0xe21a03(_0x519eef._0x1e00f3), _0xe366bd)
|
|
796
|
+
}),
|
|
797
|
+
'headers': _0x1499c4,
|
|
798
|
+
'method': _0xe21a03(0x13f)
|
|
799
|
+
});
|
|
800
|
+
},
|
|
801
|
+
async 'uploadFile'(_0x23ce09) {
|
|
802
|
+
const _0x5bd297 = _0x1a8b43, _0x595f74 = await _0x4bf7be(_0x23ce09[_0x5bd297(0x88)]);
|
|
803
|
+
if (_0x595f74[_0x5bd297(0xaa)])
|
|
804
|
+
throw new Error(_0x5bd297(0x185));
|
|
805
|
+
const _0x5a2cf5 = await _0x3be47c(_0x5bd297(0x97) + _0x124510[_0x5bd297(_0xed7e74._0x5dde04)] + _0x5bd297(_0xed7e74._0x4dd531), {
|
|
806
|
+
'body': JSON[_0x5bd297(0xc5)]({
|
|
807
|
+
'channel': _0x595f74[_0x5bd297(_0xed7e74._0x2945bf)],
|
|
808
|
+
'contentBase64': _0x23ce09[_0x5bd297(0xdd)],
|
|
809
|
+
'contentType': _0x23ce09[_0x5bd297(0xbe)],
|
|
810
|
+
'originalFilename': _0x23ce09[_0x5bd297(0xed)]
|
|
811
|
+
}),
|
|
812
|
+
'headers': _0x1499c4,
|
|
813
|
+
'method': _0x5bd297(_0xed7e74._0x19b9fc)
|
|
814
|
+
});
|
|
815
|
+
return {
|
|
816
|
+
'attachmentId': _0x5a2cf5[_0x5bd297(0x15d)]?.['id'] ?? '',
|
|
817
|
+
'filename': _0x5a2cf5[_0x5bd297(0x15d)]?.[_0x5bd297(0x199)] ?? _0x23ce09[_0x5bd297(_0xed7e74._0xc5dc6c)],
|
|
818
|
+
'sizeBytes': _0x5a2cf5[_0x5bd297(_0xed7e74._0x3779b3)]?.[_0x5bd297(_0xed7e74._0x5bde7c)] ?? 0x0
|
|
819
|
+
};
|
|
820
|
+
},
|
|
821
|
+
async 'downloadAttachment'(_0x8398d2) {
|
|
822
|
+
const _0x2ee111 = _0x1a8b43, _0x3c550f = await _0x3be47c('/api/attachments/' + _0x8398d2, {
|
|
823
|
+
'headers': _0x1499c4,
|
|
824
|
+
'method': _0x2ee111(0x1c3)
|
|
825
|
+
}), _0x4b863a = new AbortController(), _0xd662e0 = setTimeout(() => _0x4b863a[_0x2ee111(0xae)](), _0x147b64);
|
|
826
|
+
try {
|
|
827
|
+
const _0x1799e3 = await _0x4844e9(_0x2a6e30 + _0x2ee111(0x112) + _0x8398d2 + '/content', {
|
|
828
|
+
'headers': _0x1499c4,
|
|
829
|
+
'method': _0x2ee111(_0x4545ce._0x1f3e9d),
|
|
830
|
+
'signal': _0x4b863a['signal']
|
|
831
|
+
});
|
|
832
|
+
if (!_0x1799e3['ok'])
|
|
833
|
+
throw new Error(_0x2ee111(_0x4545ce._0xe359ed) + _0x1799e3[_0x2ee111(0xa0)]);
|
|
834
|
+
return {
|
|
835
|
+
'contentType': _0x3c550f[_0x2ee111(0x15d)]?.['contentType'] ?? _0x1799e3[_0x2ee111(_0x4545ce._0x1b9823)]['get']('content-type') ?? _0x2ee111(0x94),
|
|
836
|
+
'data': Buffer[_0x2ee111(_0x4545ce._0x53d638)](await _0x1799e3[_0x2ee111(_0x4545ce._0x52d10d)]()),
|
|
837
|
+
'originalFilename': _0x3c550f['data']?.[_0x2ee111(_0x4545ce._0x5ac2d1)]
|
|
838
|
+
};
|
|
839
|
+
} finally {
|
|
840
|
+
clearTimeout(_0xd662e0);
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
async 'listServer'() {
|
|
844
|
+
return _0x71f341({ 'forceRefresh': !![] });
|
|
845
|
+
},
|
|
846
|
+
async 'readHistory'(_0x3f5241) {
|
|
847
|
+
const _0x526bf5 = _0x1a8b43, _0x568457 = await _0x4bf7be(_0x3f5241[_0x526bf5(0x88)]);
|
|
848
|
+
return _0x30d02e({
|
|
849
|
+
'after': _0x3f5241[_0x526bf5(0x7d)],
|
|
850
|
+
'before': _0x3f5241[_0x526bf5(0x116)],
|
|
851
|
+
'channelId': _0x568457['channelId'],
|
|
852
|
+
'channelTarget': _0x568457[_0x526bf5(0xac)],
|
|
853
|
+
'limit': _0x3f5241[_0x526bf5(_0xa1b811._0xe31347)],
|
|
854
|
+
'threadId': _0x568457[_0x526bf5(0xaa)]
|
|
855
|
+
});
|
|
856
|
+
},
|
|
857
|
+
'resolveTarget': _0x4bf7be,
|
|
858
|
+
async 'checkMessages'() {
|
|
859
|
+
const _0x362111 = _0x1a8b43, _0x1c7132 = new URLSearchParams();
|
|
860
|
+
_0x1c7132[_0x362111(_0x1deeff._0x2fe4cc)](_0x362111(_0x1deeff._0x331188), String(_0x2fd216));
|
|
861
|
+
const _0x2926ea = _0x1c7132['toString'](), _0x244bb6 = await _0x3be47c('/internal/agent/' + _0x124510[_0x362111(_0x1deeff._0x3eaeb8)] + '/receive' + (_0x2926ea ? '?' + _0x2926ea : ''), {
|
|
862
|
+
'headers': _0x1499c4,
|
|
863
|
+
'method': _0x362111(0x1c3)
|
|
864
|
+
}), _0x2d7ff4 = _0x244bb6[_0x362111(0x15d)] ?? [], _0x139112 = _0x244bb6['meta']?.['cursor'], _0x2f507b = _0x139112 !== void 0x0 ? Math[_0x362111(_0x1deeff._0x182b74)](_0x2fd216, _0x139112) : _0x2d7ff4[_0x362111(0x1f3)] > 0x0 ? Math[_0x362111(0x18d)](_0x2fd216, _0x2d7ff4[_0x2d7ff4[_0x362111(0x1f3)] - 0x1][_0x362111(_0x1deeff._0x444e56)]) : _0x2fd216, _0x3a7fdc = _0x2d7ff4[_0x362111(0x1eb)](_0x3bf399 => _0x3bf399[_0x362111(0x196)] === 'message'), _0x347e81 = _0x5eef97 === void 0x0 && _0x2a30f2;
|
|
865
|
+
let _0x451071 = await _0x71f341(), _0xd81e27 = new Map(_0x451071[_0x362111(0x19e)][_0x362111(0x85)](_0x22a8b8 => [
|
|
866
|
+
_0x22a8b8['id'],
|
|
867
|
+
_0x22a8b8
|
|
868
|
+
]));
|
|
869
|
+
const _0x20130a = _0x3a7fdc[_0x362111(0x15f)](_0x36d5b9 => {
|
|
870
|
+
const _0x3d8905 = _0x362111, _0x5b1af1 = asRecord(_0x36d5b9[_0x3d8905(0x16f)]), _0x462dd6 = typeof _0x5b1af1?.[_0x3d8905(_0x2f11df._0x3a1295)] === _0x3d8905(0x108) ? _0x5b1af1[_0x3d8905(_0x2f11df._0x382e98)] : '';
|
|
871
|
+
return Boolean(_0x462dd6) && !_0xd81e27[_0x3d8905(_0x2f11df._0x10207b)](_0x462dd6);
|
|
872
|
+
});
|
|
873
|
+
_0x20130a && (_0x451071 = await _0x71f341({ 'forceRefresh': !![] }), _0xd81e27 = new Map(_0x451071[_0x362111(0x19e)][_0x362111(0x85)](_0x485b51 => [
|
|
874
|
+
_0x485b51['id'],
|
|
875
|
+
_0x485b51
|
|
876
|
+
])));
|
|
877
|
+
const _0xab208c = new Map();
|
|
878
|
+
for (const _0x480da2 of _0x3a7fdc) {
|
|
879
|
+
const _0x5636a1 = asRecord(_0x480da2['payloadJson']), _0x14759b = typeof _0x5636a1[_0x362111(_0x1deeff._0x27649f)] === _0x362111(_0x1deeff._0x3861a5) ? _0x5636a1[_0x362111(0x13a)] : '';
|
|
880
|
+
if (!_0x14759b)
|
|
881
|
+
continue;
|
|
882
|
+
const _0x56f80f = typeof _0x5636a1[_0x362111(_0x1deeff._0xf8aec6)] === _0x362111(_0x1deeff._0x3861a5) ? _0x5636a1[_0x362111(_0x1deeff._0x4ff8f9)] : void 0x0, _0x2177c8 = typeof _0x5636a1[_0x362111(0x15a)] === _0x362111(_0x1deeff._0x3861a5) ? _0x5636a1[_0x362111(_0x1deeff._0x2d3317)] : void 0x0, _0x6852c6 = typeof _0x5636a1[_0x362111(_0x1deeff._0x5e6971)] === 'number' && Number[_0x362111(_0x1deeff._0x23e5c7)](_0x5636a1[_0x362111(0xb3)]) ? _0x5636a1[_0x362111(0xb3)] : void 0x0, _0x44ffd2 = Boolean(_0x56f80f && (!_0x2177c8 || _0x480da2[_0x362111(0x115)] !== _0x2177c8)), _0x3384c7 = _0x44ffd2 ? _0x14759b + ':' + _0x56f80f : _0x14759b, _0x13b4cf = _0xab208c[_0x362111(_0x1deeff._0x580267)](_0x3384c7) ?? {
|
|
883
|
+
'aggregateIds': [],
|
|
884
|
+
'channelId': _0x14759b,
|
|
885
|
+
'entries': new Map(),
|
|
886
|
+
'isThreadReply': _0x44ffd2,
|
|
887
|
+
'rootMessageId': _0x2177c8,
|
|
888
|
+
'threadNumber': _0x6852c6,
|
|
889
|
+
'threadId': _0x44ffd2 ? _0x56f80f : void 0x0
|
|
890
|
+
};
|
|
891
|
+
_0x13b4cf[_0x362111(_0x1deeff._0x5e6971)] == null && _0x6852c6 != null && (_0x13b4cf[_0x362111(0xb3)] = _0x6852c6), !_0x13b4cf['rootMessageId'] && _0x2177c8 && (_0x13b4cf[_0x362111(_0x1deeff._0x2d3317)] = _0x2177c8), _0x13b4cf[_0x362111(0x113)][_0x362111(0x177)](_0x480da2[_0x362111(0x115)]), _0x13b4cf[_0x362111(0x121)][_0x362111(_0x1deeff._0x202999)](_0x480da2[_0x362111(0x115)], {
|
|
892
|
+
'payloadJson': _0x480da2[_0x362111(_0x1deeff._0x1cfeee)],
|
|
893
|
+
'seq': _0x480da2[_0x362111(0xa4)]
|
|
894
|
+
}), _0xab208c['set'](_0x3384c7, _0x13b4cf);
|
|
895
|
+
}
|
|
896
|
+
const _0x3fe6c8 = [];
|
|
897
|
+
for (const _0x4ee3ff of _0xab208c['values']()) {
|
|
898
|
+
const {
|
|
899
|
+
channelId: _0x38b396,
|
|
900
|
+
threadId: _0x5dcb13,
|
|
901
|
+
rootMessageId: _0x3b9a26,
|
|
902
|
+
threadNumber: _0x1ef761,
|
|
903
|
+
aggregateIds: _0x2eb069,
|
|
904
|
+
isThreadReply: _0x17c45b,
|
|
905
|
+
entries: _0x17e605
|
|
906
|
+
} = _0x4ee3ff, _0x4b5671 = _0xd81e27['get'](_0x38b396), _0x1c319c = _0x4b5671?.[_0x362111(_0x1deeff._0x2b7ed5)] ?? _0x38b396, _0x5a677a = _0x4b5671?.[_0x362111(_0x1deeff._0x155274)] === 'dm' ? 'dm:' + _0x1c319c : '#' + _0x1c319c, _0x37b23e = {
|
|
907
|
+
'channelTarget': _0x5a677a,
|
|
908
|
+
'rootMessageId': _0x3b9a26,
|
|
909
|
+
'threadId': _0x5dcb13,
|
|
910
|
+
'threadNumber': _0x1ef761
|
|
911
|
+
}, _0x1a2de1 = await _0x30d02e({
|
|
912
|
+
'channelId': _0x38b396,
|
|
913
|
+
'channelTarget': _0x5a677a,
|
|
914
|
+
'limit': Math['max'](_0x2eb069[_0x362111(0x1f3)], 0x32),
|
|
915
|
+
'threadId': _0x5dcb13
|
|
916
|
+
}), _0x4f14e7 = new Map(_0x1a2de1[_0x362111(0x134)]['map'](_0x159928 => [
|
|
917
|
+
_0x159928[_0x362111(0xef)],
|
|
918
|
+
_0x159928
|
|
919
|
+
])), _0x1abf1 = _0x5dcb13 ? _0xf413b3(_0x37b23e) : _0x5a677a, _0x538c75 = _0x5eef97 ? _0x17c45b && _0x129612(_0x5eef97, _0x37b23e) : !![], _0x58b224 = _0x17c45b ? _0x538c75 && _0x5eef97 ? _0x5eef97 : _0x1abf1 : _0x5a677a;
|
|
920
|
+
for (const _0x5e2f63 of _0x2eb069) {
|
|
921
|
+
if (!_0x538c75)
|
|
922
|
+
continue;
|
|
923
|
+
const _0x12cb71 = _0x17e605['get'](_0x5e2f63), _0x1b1c1d = _0x12cb71 ? asRecord(_0x12cb71[_0x362111(_0x1deeff._0x5d1cbb)]) : void 0x0, _0x486b82 = _0x1b1c1d?.['taskDeliveryMode'] === _0x362111(0x141);
|
|
924
|
+
if (_0x347e81 && _0x486b82)
|
|
925
|
+
continue;
|
|
926
|
+
const _0x56f29b = _0x4f14e7[_0x362111(_0x1deeff._0x1e7d20)](_0x5e2f63);
|
|
927
|
+
if (_0x56f29b) {
|
|
928
|
+
_0x3fe6c8[_0x362111(_0x1deeff._0x234216)]({
|
|
929
|
+
'attachments': _0x56f29b['attachments'],
|
|
930
|
+
'content': _0x56f29b[_0x362111(0xcf)],
|
|
931
|
+
'createdAt': _0x56f29b[_0x362111(_0x1deeff._0x8d7f5)],
|
|
932
|
+
..._0x56f29b[_0x362111(_0x1deeff._0x4fa735)] ? { 'kind': _0x56f29b['kind'] } : {},
|
|
933
|
+
'messageId': _0x56f29b[_0x362111(_0x1deeff._0x2006f9)],
|
|
934
|
+
'senderName': _0x56f29b[_0x362111(0x92)],
|
|
935
|
+
'senderType': _0x56f29b[_0x362111(_0x1deeff._0x1486ab)],
|
|
936
|
+
'target': _0x58b224,
|
|
937
|
+
..._0x486b82 ? { 'targetedTask': !![] } : {}
|
|
938
|
+
});
|
|
939
|
+
continue;
|
|
940
|
+
}
|
|
941
|
+
if (_0x12cb71) {
|
|
942
|
+
const _0x33b180 = typeof _0x1b1c1d?.['senderParticipantId'] === _0x362111(0x108) ? _0x1b1c1d[_0x362111(0xf4)] : '', _0x41c529 = typeof _0x1b1c1d?.[_0x362111(0x1fa)] === _0x362111(0x108) ? _0x1b1c1d[_0x362111(0x1fa)] : '', _0x563c9e = typeof _0x1b1c1d?.['kind'] === _0x362111(0x108) && _0x1b1c1d[_0x362111(_0x1deeff._0x4def03)] !== _0x362111(0x133) ? _0x1b1c1d[_0x362111(_0x1deeff._0xb0038e)] : void 0x0;
|
|
943
|
+
_0x33b180 && _0x41c529 && _0x3fe6c8['push']({
|
|
944
|
+
'attachments': [],
|
|
945
|
+
'content': _0x41c529,
|
|
946
|
+
'createdAt': new Date()[_0x362111(0x1ce)](),
|
|
947
|
+
..._0x563c9e ? { 'kind': _0x563c9e } : {},
|
|
948
|
+
'messageId': _0x5e2f63,
|
|
949
|
+
'senderName': _0x33b180,
|
|
950
|
+
'senderType': _0x386d41(_0x33b180, _0x451071),
|
|
951
|
+
'target': _0x58b224,
|
|
952
|
+
..._0x486b82 ? { 'targetedTask': !![] } : {}
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
if (_0x2f507b > 0x0) {
|
|
958
|
+
if (_0x1ac220)
|
|
959
|
+
await _0x4cb451(_0x2f507b);
|
|
960
|
+
else
|
|
961
|
+
_0x57fea4 && await _0xe8c222(_0x2f507b);
|
|
962
|
+
}
|
|
963
|
+
return _0x2f507b > _0x2fd216 && (_0x2fd216 = _0x2f507b), { 'messages': _0x5eef97 ? _0x3fe6c8 : _0x347e81 ? _0x3fe6c8['filter'](_0x13dd9a => _0x13dd9a[_0x362111(0x1e8)] !== !![]) : _0x3fe6c8 };
|
|
964
|
+
}
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
function toLocalTime(_0x3c7fe8) {
|
|
968
|
+
const _0x5659f7 = {
|
|
969
|
+
_0x4db029: 0x90,
|
|
970
|
+
_0x1441c0: 0x128
|
|
971
|
+
}, _0x396b6f = _0x301d4a, _0x26563f = new Date(_0x3c7fe8);
|
|
972
|
+
if (Number[_0x396b6f(_0x5659f7._0x4db029)](_0x26563f[_0x396b6f(0x1f0)]()))
|
|
973
|
+
return _0x3c7fe8;
|
|
974
|
+
const _0x1ba757 = _0x134741 => String(_0x134741)['padStart'](0x2, '0');
|
|
975
|
+
return _0x26563f[_0x396b6f(0xca)]() + '-' + _0x1ba757(_0x26563f['getMonth']() + 0x1) + '-' + _0x1ba757(_0x26563f[_0x396b6f(0x163)]()) + '\x20' + _0x1ba757(_0x26563f[_0x396b6f(0x146)]()) + ':' + _0x1ba757(_0x26563f[_0x396b6f(0xa8)]()) + ':' + _0x1ba757(_0x26563f[_0x396b6f(_0x5659f7._0x1441c0)]());
|
|
976
|
+
}
|
|
977
|
+
function formatAttachmentSuffix(_0x507e5f) {
|
|
978
|
+
const _0x3d54e2 = {
|
|
979
|
+
_0x5f4bdc: 0x1f3,
|
|
980
|
+
_0x263481: 0x149,
|
|
981
|
+
_0x1f68a2: 0x17b
|
|
982
|
+
}, _0x29075a = _0x301d4a;
|
|
983
|
+
if (!_0x507e5f || _0x507e5f[_0x29075a(_0x3d54e2._0x5f4bdc)] === 0x0)
|
|
984
|
+
return '';
|
|
985
|
+
return '\x20[' + _0x507e5f['length'] + _0x29075a(0x193) + (_0x507e5f[_0x29075a(_0x3d54e2._0x5f4bdc)] > 0x1 ? 's' : '') + ':\x20' + _0x507e5f[_0x29075a(0x85)](_0x3915ce => _0x3915ce[_0x29075a(0xed)] + _0x29075a(0x181) + _0x3915ce['id'] + ')')[_0x29075a(_0x3d54e2._0x263481)](',\x20') + _0x29075a(_0x3d54e2._0x1f68a2);
|
|
986
|
+
}
|
|
987
|
+
function formatCheckMessages(_0x56bee5) {
|
|
988
|
+
const _0x4b59c6 = {
|
|
989
|
+
_0x1fc671: 0x17c,
|
|
990
|
+
_0xf3284: 0x139,
|
|
991
|
+
_0x39ed0c: 0x165,
|
|
992
|
+
_0x2054ba: 0xec,
|
|
993
|
+
_0x29f561: 0xcf
|
|
994
|
+
}, _0xb6d184 = _0x301d4a;
|
|
995
|
+
if (_0x56bee5[_0xb6d184(0x1f3)] === 0x0)
|
|
996
|
+
return 'No\x20new\x20messages.';
|
|
997
|
+
return _0x56bee5['map'](_0x19c03b => {
|
|
998
|
+
const _0x40d895 = _0xb6d184, _0x4eef54 = _0x19c03b[_0x40d895(_0x4b59c6._0x1fc671)] === _0x40d895(0x1a4) ? _0x40d895(_0x4b59c6._0xf3284) : '', _0x5ca1ed = _0x19c03b[_0x40d895(0x189)] && _0x19c03b[_0x40d895(0x189)] !== _0x40d895(0x133) ? '\x20kind=' + _0x19c03b[_0x40d895(0x189)] : '';
|
|
999
|
+
return '[target=' + _0x19c03b[_0x40d895(0xac)] + _0x40d895(0xb6) + _0x19c03b[_0x40d895(0xef)][_0x40d895(_0x4b59c6._0x39ed0c)](0x0, 0x8) + _0x40d895(0xba) + toLocalTime(_0x19c03b[_0x40d895(0x129)]) + _0x4eef54 + _0x5ca1ed + _0x40d895(_0x4b59c6._0x2054ba) + _0x19c03b[_0x40d895(0x92)] + ':\x20' + _0x19c03b[_0x40d895(_0x4b59c6._0x29f561)] + formatAttachmentSuffix(_0x19c03b[_0x40d895(0x9c)]);
|
|
1000
|
+
})['join']('\x0a');
|
|
1001
|
+
}
|
|
1002
|
+
function formatHistory(_0x226604) {
|
|
1003
|
+
const _0x51109a = {
|
|
1004
|
+
_0x346c73: 0x1f3,
|
|
1005
|
+
_0x3cc3d5: 0x1f3,
|
|
1006
|
+
_0x35b7e9: 0x168,
|
|
1007
|
+
_0x24d575: 0x88
|
|
1008
|
+
}, _0x23a460 = {
|
|
1009
|
+
_0x174961: 0x17c,
|
|
1010
|
+
_0x3c7a7e: 0x139,
|
|
1011
|
+
_0x4ef6bb: 0x133,
|
|
1012
|
+
_0x1fd0db: 0x186,
|
|
1013
|
+
_0x373358: 0xaf,
|
|
1014
|
+
_0x46244b: 0xa4,
|
|
1015
|
+
_0x53f40e: 0x129
|
|
1016
|
+
}, _0xf466b5 = _0x301d4a;
|
|
1017
|
+
if (_0x226604['messages'][_0xf466b5(_0x51109a._0x346c73)] === 0x0)
|
|
1018
|
+
return _0xf466b5(0x173) + _0x226604[_0xf466b5(0x88)] + _0xf466b5(0x1b4);
|
|
1019
|
+
const _0x3b25fd = _0x226604['messages'][_0xf466b5(0x85)](_0x218ff5 => {
|
|
1020
|
+
const _0x524778 = _0xf466b5, _0x5daba9 = _0x218ff5[_0x524778(_0x23a460._0x174961)] === _0x524778(0x1a4) ? _0x524778(_0x23a460._0x3c7a7e) : '', _0x181f87 = _0x218ff5[_0x524778(0x189)] && _0x218ff5['kind'] !== _0x524778(_0x23a460._0x4ef6bb) ? _0x524778(_0x23a460._0x1fd0db) + _0x218ff5['kind'] : '';
|
|
1021
|
+
return _0x524778(_0x23a460._0x373358) + _0x218ff5[_0x524778(_0x23a460._0x46244b)] + '\x20msg=' + _0x218ff5['messageId'] + _0x524778(0xba) + toLocalTime(_0x218ff5[_0x524778(_0x23a460._0x53f40e)]) + _0x5daba9 + _0x181f87 + _0x524778(0xec) + _0x218ff5[_0x524778(0x92)] + ':\x20' + _0x218ff5[_0x524778(0xcf)] + formatAttachmentSuffix(_0x218ff5[_0x524778(0x9c)]);
|
|
1022
|
+
})[_0xf466b5(0x149)]('\x0a'), _0x31c4cf = _0x226604['hasMore'] && _0x226604['nextCursor'] ? _0xf466b5(0xa6) + _0x226604['messages'][_0xf466b5(_0x51109a._0x3cc3d5)] + _0xf466b5(0x81) + _0x226604[_0xf466b5(_0x51109a._0x35b7e9)] + _0xf466b5(0xd7) : '';
|
|
1023
|
+
return '##\x20Message\x20History\x20for\x20' + _0x226604[_0xf466b5(_0x51109a._0x24d575)] + '\x20(' + _0x226604[_0xf466b5(0x134)][_0xf466b5(_0x51109a._0x346c73)] + '\x20messages)\x0a\x0a' + _0x3b25fd + _0x31c4cf;
|
|
1024
|
+
}
|
|
1025
|
+
function formatServerDirectory(_0x47605a) {
|
|
1026
|
+
const _0x418a3b = {
|
|
1027
|
+
_0x24ebb0: 0x85,
|
|
1028
|
+
_0x40850b: 0x130,
|
|
1029
|
+
_0x41925e: 0x149,
|
|
1030
|
+
_0x456ce5: 0x17e,
|
|
1031
|
+
_0x358f1d: 0x1f3,
|
|
1032
|
+
_0x3a27db: 0x17e,
|
|
1033
|
+
_0x229a33: 0x96,
|
|
1034
|
+
_0x43c7a4: 0x109,
|
|
1035
|
+
_0x3da5b5: 0x149
|
|
1036
|
+
}, _0x197881 = _0x301d4a, _0xc6cb3d = _0x47605a[_0x197881(0x19e)]['length'] > 0x0 ? _0x47605a[_0x197881(0x19e)][_0x197881(_0x418a3b._0x24ebb0)](_0x562c46 => _0x562c46['description'] ? '-\x20#' + _0x562c46['name'] + _0x197881(0x1e6) + _0x562c46[_0x197881(0x192)] : '-\x20#' + _0x562c46['name'])['join']('\x0a') : _0x197881(0x17e), _0x8b49e6 = _0x47605a[_0x197881(_0x418a3b._0x40850b)]['length'] > 0x0 ? _0x47605a['agents'][_0x197881(0x85)](_0x1d8ab9 => _0x197881(0x98) + _0x1d8ab9[_0x197881(0xf5)])[_0x197881(_0x418a3b._0x41925e)]('\x0a') : _0x197881(_0x418a3b._0x456ce5), _0x1c0b8a = _0x47605a[_0x197881(0xf2)][_0x197881(_0x418a3b._0x358f1d)] > 0x0 ? _0x47605a[_0x197881(0xf2)]['map'](_0x56538a => _0x197881(0x98) + _0x56538a[_0x197881(0xf5)])[_0x197881(_0x418a3b._0x41925e)]('\x0a') : _0x197881(_0x418a3b._0x3a27db);
|
|
1037
|
+
return [
|
|
1038
|
+
_0x197881(_0x418a3b._0x229a33) + _0x47605a['serverName'],
|
|
1039
|
+
'',
|
|
1040
|
+
_0x197881(0x140),
|
|
1041
|
+
_0xc6cb3d,
|
|
1042
|
+
'',
|
|
1043
|
+
_0x197881(_0x418a3b._0x43c7a4),
|
|
1044
|
+
_0x8b49e6,
|
|
1045
|
+
'',
|
|
1046
|
+
'###\x20Humans',
|
|
1047
|
+
_0x1c0b8a
|
|
1048
|
+
][_0x197881(_0x418a3b._0x3da5b5)]('\x0a');
|
|
1049
|
+
}
|
|
1050
|
+
function formatUploadResult(_0xc53cc5) {
|
|
1051
|
+
const _0x2ab76e = {
|
|
1052
|
+
_0x216250: 0xed,
|
|
1053
|
+
_0x572396: 0x1d4,
|
|
1054
|
+
_0x438763: 0x14a,
|
|
1055
|
+
_0x4efcad: 0x1ac
|
|
1056
|
+
}, _0xd1afc0 = _0x301d4a;
|
|
1057
|
+
return 'File\x20uploaded:\x20' + _0xc53cc5[_0xd1afc0(_0x2ab76e._0x216250)] + '\x20(' + (_0xc53cc5[_0xd1afc0(_0x2ab76e._0x572396)] / 0x400)[_0xd1afc0(0x1a7)](0x1) + _0xd1afc0(_0x2ab76e._0x438763) + _0xc53cc5['attachmentId'] + _0xd1afc0(_0x2ab76e._0x4efcad);
|
|
1058
|
+
}
|
|
1059
|
+
function formatViewFileResult(_0x270e9c, _0x14fa25) {
|
|
1060
|
+
const _0x3797db = { _0x478c7b: 0xf1 }, _0x3d547c = _0x301d4a;
|
|
1061
|
+
return _0x14fa25 ? _0x3d547c(0xc7) + _0x270e9c : _0x3d547c(_0x3797db._0x478c7b) + _0x270e9c;
|
|
1062
|
+
}
|
|
1063
|
+
function formatTaskList(_0x26dda3, _0x40c3f8) {
|
|
1064
|
+
const _0x101934 = {
|
|
1065
|
+
_0xdf9be3: 0x13d,
|
|
1066
|
+
_0xd48281: 0x1ed,
|
|
1067
|
+
_0x20bd11: 0x8e,
|
|
1068
|
+
_0x43ff6f: 0xcc,
|
|
1069
|
+
_0x22eae5: 0x164,
|
|
1070
|
+
_0x54533a: 0x1dc
|
|
1071
|
+
}, _0x8781ff = _0x301d4a;
|
|
1072
|
+
if (_0x26dda3[_0x8781ff(0x1f3)] === 0x0)
|
|
1073
|
+
return 'No\x20tasks\x20found.';
|
|
1074
|
+
return _0x26dda3[_0x8781ff(0x85)](_0x4c8c5b => {
|
|
1075
|
+
const _0x4f88b0 = _0x8781ff, _0x3e5505 = _0x4c8c5b[_0x4f88b0(_0x101934._0xdf9be3)] == null ? _0x4f88b0(_0x101934._0xd48281) : _0x4c8c5b[_0x4f88b0(0x1df)] != null ? '#' + _0x4c8c5b[_0x4f88b0(_0x101934._0xdf9be3)] + '.' + _0x4c8c5b[_0x4f88b0(0x1df)] : '#' + _0x4c8c5b[_0x4f88b0(0x13d)], _0x2bdb3e = _0x4c8c5b[_0x4f88b0(0xef)] ? '\x20message=' + _0x4c8c5b[_0x4f88b0(0xef)] : '', _0x17ee4c = _0x40c3f8 && _0x4c8c5b[_0x4f88b0(0x13d)] != null && !_0x4c8c5b['subtaskNumber'] && _0x40c3f8[_0x4f88b0(_0x101934._0x20bd11)](_0x4c8c5b['taskNumber']) ? _0x4f88b0(_0x101934._0x43ff6f) : '', _0x3deabc = _0x4c8c5b[_0x4f88b0(_0x101934._0x22eae5)] != null && _0x4c8c5b['childrenTotal'] > 0x0 ? '\x20(' + (_0x4c8c5b[_0x4f88b0(_0x101934._0x54533a)] ?? 0x0) + '/' + _0x4c8c5b[_0x4f88b0(_0x101934._0x22eae5)] + '\x20done)' : '';
|
|
1076
|
+
return _0x3e5505 + '\x20[' + _0x4c8c5b['status'] + ']\x20' + _0x4c8c5b[_0x4f88b0(0xfd)] + _0x3deabc + _0x2bdb3e + _0x17ee4c;
|
|
1077
|
+
})[_0x8781ff(0x149)]('\x0a');
|
|
1078
|
+
}
|
|
1079
|
+
function formatCreatedTasks(_0x254087) {
|
|
1080
|
+
const _0x588230 = { _0x241ffb: 0x149 }, _0x571075 = {
|
|
1081
|
+
_0x25e58c: 0x13d,
|
|
1082
|
+
_0x2af77c: 0xfd
|
|
1083
|
+
}, _0x5d0256 = _0x301d4a;
|
|
1084
|
+
if (_0x254087['length'] === 0x0)
|
|
1085
|
+
return _0x5d0256(0x136);
|
|
1086
|
+
return _0x254087[_0x5d0256(0x85)](_0x5c4717 => {
|
|
1087
|
+
const _0x504833 = _0x5d0256, _0x5a0566 = _0x5c4717[_0x504833(0x13d)] == null ? '(legacy)' : _0x5c4717[_0x504833(0x1df)] != null ? '#' + _0x5c4717[_0x504833(_0x571075._0x25e58c)] + '.' + _0x5c4717['subtaskNumber'] : '#' + _0x5c4717[_0x504833(0x13d)], _0xcba3d6 = _0x5c4717[_0x504833(0xef)] ? _0x504833(0xc4) + _0x5c4717['messageId'] : '';
|
|
1088
|
+
return _0x5a0566 + '\x20' + _0x5c4717[_0x504833(_0x571075._0x2af77c)] + _0xcba3d6;
|
|
1089
|
+
})[_0x5d0256(_0x588230._0x241ffb)]('\x0a');
|
|
1090
|
+
}
|
|
1091
|
+
function formatClaimTaskResults(_0xf030c1) {
|
|
1092
|
+
const _0x3dc03d = {
|
|
1093
|
+
_0x206922: 0xb9,
|
|
1094
|
+
_0x5b09d5: 0x149
|
|
1095
|
+
}, _0x3e9ec0 = {
|
|
1096
|
+
_0x29b697: 0x13d,
|
|
1097
|
+
_0x3e2fae: 0x1df,
|
|
1098
|
+
_0x58901e: 0xef,
|
|
1099
|
+
_0x451ee9: 0xef,
|
|
1100
|
+
_0x111d37: 0x12d,
|
|
1101
|
+
_0x3d0835: 0x124,
|
|
1102
|
+
_0x42a669: 0x1e2,
|
|
1103
|
+
_0x39c71f: 0xd2,
|
|
1104
|
+
_0x1bb64a: 0x1d5,
|
|
1105
|
+
_0x54c9be: 0xd2,
|
|
1106
|
+
_0xaefd2f: 0x1eb,
|
|
1107
|
+
_0xcba76e: 0x1db,
|
|
1108
|
+
_0x2396af: 0x78,
|
|
1109
|
+
_0x3b7ae5: 0x14d,
|
|
1110
|
+
_0x360d31: 0x158,
|
|
1111
|
+
_0x2f5870: 0xeb
|
|
1112
|
+
}, _0x5cab58 = _0x301d4a;
|
|
1113
|
+
if (_0xf030c1[_0x5cab58(0x1f3)] === 0x0)
|
|
1114
|
+
return _0x5cab58(_0x3dc03d._0x206922);
|
|
1115
|
+
return _0xf030c1[_0x5cab58(0x85)](_0x32b72b => {
|
|
1116
|
+
const _0x401c6a = _0x5cab58;
|
|
1117
|
+
if (_0x32b72b[_0x401c6a(0x153)]) {
|
|
1118
|
+
const _0x963658 = _0x32b72b[_0x401c6a(_0x3e9ec0._0x29b697)] == null ? '(legacy)' : _0x32b72b[_0x401c6a(_0x3e9ec0._0x3e2fae)] != null ? '#' + _0x32b72b[_0x401c6a(0x13d)] + '.' + _0x32b72b[_0x401c6a(_0x3e9ec0._0x3e2fae)] : '#' + _0x32b72b[_0x401c6a(0x13d)], _0x33decc = _0x32b72b[_0x401c6a(_0x3e9ec0._0x58901e)] ? _0x401c6a(0xc4) + _0x32b72b[_0x401c6a(_0x3e9ec0._0x451ee9)] : '';
|
|
1119
|
+
if (_0x32b72b['workerHandoff']) {
|
|
1120
|
+
const _0x41d333 = [
|
|
1121
|
+
_0x401c6a(_0x3e9ec0._0x111d37),
|
|
1122
|
+
_0x32b72b[_0x401c6a(_0x3e9ec0._0x3d0835)] ? _0x401c6a(_0x3e9ec0._0x42a669) : null,
|
|
1123
|
+
_0x32b72b['executionMode'] ? 'executionMode=' + _0x32b72b['executionMode'] : null,
|
|
1124
|
+
_0x32b72b[_0x401c6a(_0x3e9ec0._0x39c71f)] ? _0x401c6a(_0x3e9ec0._0x1bb64a) + _0x32b72b[_0x401c6a(_0x3e9ec0._0x54c9be)] : null,
|
|
1125
|
+
_0x32b72b['workerDisposition'] ? _0x401c6a(0x1be) + _0x32b72b[_0x401c6a(0xdc)] : null
|
|
1126
|
+
][_0x401c6a(_0x3e9ec0._0xaefd2f)](Boolean)['join']('\x20');
|
|
1127
|
+
return _0x963658 + '\x20claimed' + _0x33decc + '\x20' + _0x41d333 + _0x401c6a(_0x3e9ec0._0xcba76e);
|
|
1128
|
+
}
|
|
1129
|
+
const _0x55c10a = _0x32b72b[_0x401c6a(_0x3e9ec0._0x2396af)] ? _0x401c6a(_0x3e9ec0._0x3b7ae5) + _0x32b72b['workerHandoffError'] : '';
|
|
1130
|
+
return _0x963658 + _0x401c6a(0x87) + _0x33decc + _0x55c10a;
|
|
1131
|
+
}
|
|
1132
|
+
const _0x19dc42 = _0x32b72b[_0x401c6a(0x13d)] == null ? _0x32b72b[_0x401c6a(_0x3e9ec0._0x451ee9)] ?? _0x401c6a(_0x3e9ec0._0x360d31) : '#' + _0x32b72b[_0x401c6a(0x13d)];
|
|
1133
|
+
return _0x19dc42 + '\x20failed:\x20' + (_0x32b72b[_0x401c6a(0x1d9)] ?? _0x401c6a(_0x3e9ec0._0x2f5870));
|
|
1134
|
+
})[_0x5cab58(_0x3dc03d._0x5b09d5)]('\x0a');
|
|
1135
|
+
}
|
|
1136
|
+
function formatUnclaimTaskResult(_0x3b20d2) {
|
|
1137
|
+
const _0x48d949 = { _0x6f7205: 0x13d }, _0x106349 = _0x301d4a, _0x2f507f = _0x3b20d2[_0x106349(_0x48d949._0x6f7205)] == null ? _0x106349(0x1ed) : _0x3b20d2['subtaskNumber'] != null ? '#' + _0x3b20d2[_0x106349(_0x48d949._0x6f7205)] + '.' + _0x3b20d2['subtaskNumber'] : '#' + _0x3b20d2[_0x106349(0x13d)];
|
|
1138
|
+
return _0x2f507f + '\x20status=' + _0x3b20d2[_0x106349(0xa0)];
|
|
1139
|
+
}
|
|
1140
|
+
function formatUpdateTaskStatusResult(_0x30339a) {
|
|
1141
|
+
const _0x3fcc3d = {
|
|
1142
|
+
_0x3e59b7: 0x13d,
|
|
1143
|
+
_0x113398: 0x1df,
|
|
1144
|
+
_0x22c784: 0x8b
|
|
1145
|
+
}, _0x4c976e = _0x301d4a, _0x39ea7 = _0x30339a[_0x4c976e(_0x3fcc3d._0x3e59b7)] == null ? _0x4c976e(0x1ed) : _0x30339a['subtaskNumber'] != null ? '#' + _0x30339a[_0x4c976e(_0x3fcc3d._0x3e59b7)] + '.' + _0x30339a[_0x4c976e(_0x3fcc3d._0x113398)] : '#' + _0x30339a[_0x4c976e(0x13d)];
|
|
1146
|
+
return _0x39ea7 + _0x4c976e(_0x3fcc3d._0x22c784) + _0x30339a[_0x4c976e(0xa0)];
|
|
1147
|
+
}
|
|
1148
|
+
function _0x276a() {
|
|
1149
|
+
const _0x467878 = [
|
|
1150
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1151
|
+
'BNvTyMvY',
|
|
1152
|
+
'zg9Uzq',
|
|
1153
|
+
'zw51Bq',
|
|
1154
|
+
'vgfZAZOG',
|
|
1155
|
+
'r0vu',
|
|
1156
|
+
'n0n5ANvpDW',
|
|
1157
|
+
'lMjPBG',
|
|
1158
|
+
'D29YA2vY',
|
|
124
1159
|
'zM9Yy2vszwzYzxnO',
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'l3DVCMTLCNmVzMLUAxnO',
|
|
152
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
1160
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1161
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1162
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1163
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1164
|
+
'yMfZzty0',
|
|
1165
|
+
'ls1ZzxnZAw9UlwLK',
|
|
1166
|
+
'Dg9ju09tDhjPBMC',
|
|
1167
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1168
|
+
'C3rHCNrLza',
|
|
1169
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1170
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1171
|
+
'lNnSB2nR',
|
|
1172
|
+
'C2L6zuj5DgvZ',
|
|
1173
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1174
|
+
'Aw5KzxHpzG',
|
|
1175
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1176
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1177
|
+
'CMvHC29U',
|
|
1178
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1179
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1180
|
+
'y2HPBgrYzw5eB25L',
|
|
1181
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1182
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1183
|
+
'C3vIDgfZA051BwjLCG',
|
|
1184
|
+
'ktSGz290ignOyw5UzwW9',
|
|
1185
|
+
'y2XPzw50',
|
|
153
1186
|
'C3rVCe1HAw49Dhj1zq',
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'B2jQzwn0',
|
|
157
|
-
'zMLSzxnFy2HHBMDLza',
|
|
158
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1187
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1188
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
159
1189
|
'zMfSC2u',
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
1190
|
+
'iokaLca',
|
|
1191
|
+
'zxH0BMfTzq',
|
|
1192
|
+
'DgfYz2v0zwruyxnR',
|
|
1193
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1194
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1195
|
+
'zMLSDgvY',
|
|
1196
|
+
'DgvZDa',
|
|
1197
|
+
'kgXLz2fJEsK',
|
|
1198
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
167
1199
|
'Agv4',
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
174
|
-
'C2nOzwr1BgvKrM9Y',
|
|
175
|
-
'y2XHAw1FDgfZA3m',
|
|
176
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
177
|
-
'C3rHCNrZv2L0Aa',
|
|
178
|
-
'Axnoyu4',
|
|
179
|
-
'C2vYDMvY',
|
|
1200
|
+
'z2v0vgLTzq',
|
|
1201
|
+
'Dw5RBM93BG',
|
|
1202
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1203
|
+
'BgvUz3rO',
|
|
1204
|
+
'zgLNzxn0',
|
|
180
1205
|
'D29YA2vYCW',
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
186
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
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',
|
|
1206
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1207
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1208
|
+
'CMvXDwvZDfvYBa',
|
|
1209
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
201
1210
|
'yM9KEu1HCMTKB3DU',
|
|
202
|
-
'
|
|
1211
|
+
'C2vYDMvYvxjS',
|
|
1212
|
+
'mtm0nZiXmKPts2z2yq',
|
|
1213
|
+
'ywz0zxjtzxe',
|
|
1214
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1215
|
+
'DMLZAwjPBgL0Eq',
|
|
203
1216
|
'uefuq0G',
|
|
204
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
205
|
-
'zMLUza',
|
|
206
|
-
'y2HHBM5LBeLK',
|
|
207
|
-
'AgLNAa',
|
|
208
|
-
'DgfZA051BwjLCG',
|
|
209
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
210
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
211
|
-
'DgHYzwfK',
|
|
212
|
-
'nKTZAvLcva',
|
|
213
|
-
'yxr0ywnOBwvUDeLK',
|
|
214
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
215
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
216
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
217
|
-
'iYmJieH1BwfUCW',
|
|
218
|
-
'zxzLBNrtzxe',
|
|
219
|
-
'ihrPBwu9',
|
|
220
|
-
'l3nLCNzLCG',
|
|
221
|
-
'lsba',
|
|
222
1217
|
't3jPz2LUywWGBwvZC2fNztOG',
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
'
|
|
230
|
-
'r0vu',
|
|
231
|
-
'ig1LC3nHz2vZkqOk',
|
|
232
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
233
|
-
'zgfLBw9UqxbPs2v5',
|
|
1218
|
+
'l3n0yxj0',
|
|
1219
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1220
|
+
'mZe5mZm4EezVy3jU',
|
|
1221
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1222
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1223
|
+
'C2vUze1LC3nHz2u',
|
|
1224
|
+
'yxjNDG',
|
|
234
1225
|
'DgHYzwfKx3rHCMDLDa',
|
|
235
|
-
'
|
|
1226
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1227
|
+
'zMv0y2HjBxbS',
|
|
1228
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1229
|
+
'DxnLCG',
|
|
1230
|
+
'zxzLBNrtzxe',
|
|
1231
|
+
'ywz0zxi',
|
|
1232
|
+
'B3bLBL9PC3n1zxm',
|
|
1233
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1234
|
+
'AxnjBNrLz2vY',
|
|
1235
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1236
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
1237
|
+
'pgvTChr5pG',
|
|
1238
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1239
|
+
'BwfW',
|
|
1240
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1241
|
+
'ignSywLTzwq',
|
|
1242
|
+
'y2HHBM5LBa',
|
|
1243
|
+
'Dg9mB3DLCKnHC2u',
|
|
1244
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1245
|
+
'ihn0yxr1CZ0',
|
|
1246
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1247
|
+
'mJaWndyXmMvjuhfkyW',
|
|
1248
|
+
'AgfZ',
|
|
1249
|
+
'Dg9VBa',
|
|
1250
|
+
'Axnoyu4',
|
|
1251
|
+
'CMvZDwX0sNnVBG',
|
|
1252
|
+
'C2vUzgvYtMfTzq',
|
|
1253
|
+
'lcbWCMv2Awv3pq',
|
|
236
1254
|
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
237
|
-
'
|
|
1255
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1256
|
+
'iYmGu2vYDMvYoIa',
|
|
1257
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1258
|
+
'lsba',
|
|
1259
|
+
'zMfPBgvK',
|
|
1260
|
+
'DgfZAW',
|
|
1261
|
+
'CMvZCg9UC2u',
|
|
1262
|
+
'yxr0ywnOBwvUDhm',
|
|
1263
|
+
'DxrMoa',
|
|
238
1264
|
'Aw1Hz2uVANbLzW',
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
1265
|
+
'ywDLBNrjza',
|
|
1266
|
+
'C3rHDhvZ',
|
|
1267
|
+
'CMvWBgfJzq',
|
|
1268
|
+
'DgfZA19Pza',
|
|
1269
|
+
'DxjNzw50',
|
|
1270
|
+
'C2vX',
|
|
1271
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1272
|
+
'cGOTls0G',
|
|
1273
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
1274
|
+
'z2v0twLUDxrLCW',
|
|
1275
|
+
'BwvZC2fNzv9Pzhm',
|
|
1276
|
+
'DgHYzwfKswq',
|
|
1277
|
+
'C2HHmJu2',
|
|
1278
|
+
'DgfYz2v0',
|
|
1279
|
+
'zgvJAxnPB25Z',
|
|
1280
|
+
'ywjVCNq',
|
|
1281
|
+
'w3nLCt0',
|
|
1282
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1283
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1284
|
+
'ywrK',
|
|
243
1285
|
'DgHYzwfKtNvTyMvY',
|
|
244
|
-
'
|
|
1286
|
+
'Aw1Hz2uVCg5N',
|
|
245
1287
|
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
246
|
-
'
|
|
247
|
-
'
|
|
248
|
-
'
|
|
249
|
-
'
|
|
250
|
-
'
|
|
251
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
252
|
-
'Dw5JBgfPBv90yxnR',
|
|
253
|
-
'DgfZA19Pza',
|
|
254
|
-
'nda2mtDjr25st0i',
|
|
255
|
-
'AxngAwXL',
|
|
256
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
257
|
-
'BgvUz3rO',
|
|
258
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
259
|
-
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1288
|
+
'ig1ZzZ0',
|
|
1289
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1290
|
+
'l3rHC2TZpW',
|
|
1291
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1292
|
+
'ihrPBwu9',
|
|
260
1293
|
'D29YA2vYtw9KzuvUywjSzwq',
|
|
261
|
-
'
|
|
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',
|
|
279
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
280
|
-
'y2XHAw0GzMfPBgvK',
|
|
281
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
282
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
283
|
-
'Dg9VBa',
|
|
284
|
-
'ls1ZzxnZAw9UlwLK',
|
|
285
|
-
'BM93',
|
|
286
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
287
|
-
'ywz0zxi',
|
|
288
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
289
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
290
|
-
'y2HPBgrYzw5eB25L',
|
|
291
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
292
|
-
'v29YA2vYia',
|
|
293
|
-
'BMfTzq',
|
|
294
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
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',
|
|
1294
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
311
1295
|
'BwvTyMvYCW',
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
1296
|
+
'y29UDgvUDfr5Cgu',
|
|
1297
|
+
'AhvTyw4',
|
|
1298
|
+
'BwvKAxvT',
|
|
1299
|
+
'yxr0ywnOBwvUDeLK',
|
|
1300
|
+
'Ahr0CdO',
|
|
1301
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1302
|
+
'ig1LC3nHz2u9',
|
|
1303
|
+
'C3rYAw5NAwz5',
|
|
317
1304
|
'zxHWAxjLC0f0',
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
1305
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1306
|
+
'CxvLDwvK',
|
|
1307
|
+
'y3vYC29Y',
|
|
1308
|
+
'z2v0rNvSBfLLyxi',
|
|
1309
|
+
'yxjYyxLcDwzMzxi',
|
|
1310
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1311
|
+
'Bg93',
|
|
1312
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1313
|
+
'y29UDgvUDa',
|
|
1314
|
+
'y2HHBM5LBe5HBwu',
|
|
1315
|
+
'AxnbyNnVBhv0zq',
|
|
1316
|
+
'DgHYzwfKvgfYz2v0',
|
|
1317
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
1318
|
+
'l3vWBg9Hza',
|
|
1319
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1320
|
+
'yxv0BZO',
|
|
1321
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1322
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1323
|
+
'C29YDa',
|
|
1324
|
+
'Aw1Hz2uVD2vICa',
|
|
1325
|
+
'CgfYDgLJAxbHBNq',
|
|
1326
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1327
|
+
'y29UDgvUDejHC2u2na',
|
|
1328
|
+
'z2v0',
|
|
1329
|
+
'AxngAwXL',
|
|
1330
|
+
'Aw5FChjVz3jLC3m',
|
|
1331
|
+
'BgLTAxq',
|
|
1332
|
+
'BgLZDfnLCNzLCG',
|
|
321
1333
|
'y29UDgvUDc10ExbL',
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
325
|
-
'C2L6zq',
|
|
326
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
327
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
328
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
329
|
-
'D3m6',
|
|
330
|
-
'kgXLz2fJEsK',
|
|
331
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
332
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
333
|
-
'BwfW',
|
|
334
|
-
'C3rYAw5N',
|
|
335
|
-
'Dg9ju09tDhjPBMC',
|
|
336
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
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',
|
|
351
|
-
'AhvTyw4',
|
|
1334
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1335
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
352
1336
|
'AxngAw5PDgu',
|
|
1337
|
+
'BwvTyMvY',
|
|
353
1338
|
'BgLZDf9Zzxj2zxi',
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
1339
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1340
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1341
|
+
'y2XHAw0GzMfPBgvK',
|
|
1342
|
+
'xsba',
|
|
1343
|
+
'zMLSzw5HBwu',
|
|
1344
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1345
|
+
'BwvZC2fNzuLK',
|
|
1346
|
+
'AwrSzq',
|
|
1347
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
358
1348
|
'AhvTyw5Z',
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'ue9tva',
|
|
363
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
364
|
-
'yMXVy2TLza',
|
|
365
|
-
'ywjVCNq',
|
|
1349
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
1350
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1351
|
+
'BMfTzq',
|
|
366
1352
|
'C2LNBMfS',
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
371
|
-
'
|
|
1353
|
+
'DMLLD19MAwXL',
|
|
1354
|
+
'B3b0Aw9UywW',
|
|
1355
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1356
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1357
|
+
'Aw1Hz2uVz2LM',
|
|
1358
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1359
|
+
'DgL0Bgu',
|
|
1360
|
+
'C2vUzf9TzxnZywDL',
|
|
1361
|
+
'AgfZtw9Yzq',
|
|
1362
|
+
'zxjYB3i',
|
|
1363
|
+
'B2jQzwn0',
|
|
1364
|
+
'C2L6zq',
|
|
1365
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1366
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1367
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1368
|
+
'C2vYDMvY',
|
|
1369
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1370
|
+
'C3rYAw5N',
|
|
1371
|
+
'iYmJiefNzw50CW',
|
|
1372
|
+
'D29YA2vYtw9Kzq',
|
|
1373
|
+
'C3vTBwfYEq',
|
|
1374
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1375
|
+
'Aw5FCMv2Awv3',
|
|
1376
|
+
'yM9KEvrLEhq',
|
|
1377
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1378
|
+
'Aw5JBhvKzxm',
|
|
1379
|
+
'y2XHAw1FDgfZA3m',
|
|
1380
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1381
|
+
'ywDNCMvNyxrLswrZ',
|
|
1382
|
+
'ywXS',
|
|
1383
|
+
'ywDNCMvNyxrLswq',
|
|
1384
|
+
'yMvMB3jL',
|
|
1385
|
+
'l2zPBMLZAa',
|
|
1386
|
+
'DxbSB2fKrMLSzq',
|
|
1387
|
+
'iJOGC3rHDhvZpq',
|
|
1388
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1389
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1390
|
+
'y2fJAgveAxi',
|
|
1391
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1392
|
+
'DgfZA0LK',
|
|
1393
|
+
'CMvJB3jK',
|
|
1394
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1395
|
+
'zw50CMLLCW',
|
|
1396
|
+
'yMfZzw5HBwu',
|
|
1397
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1398
|
+
'C3rVCe1HAw4',
|
|
1399
|
+
'mJyXnJy2ouffwKfnEq',
|
|
1400
|
+
'mta5nJiYmerLyKfsrG',
|
|
1401
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1402
|
+
'z2v0u2vJB25KCW',
|
|
1403
|
+
'y3jLyxrLzef0',
|
|
372
1404
|
'y2f0y2G',
|
|
1405
|
+
'zMLUza',
|
|
1406
|
+
'DxbSB2fKx2zPBgu',
|
|
1407
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1408
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1409
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1410
|
+
'ywDLBNrZ',
|
|
1411
|
+
'vgfZAYa',
|
|
1412
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1413
|
+
'y2HHDa',
|
|
1414
|
+
'BwvZC2fNzxm',
|
|
1415
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1416
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1417
|
+
'y2XHAw1uyxnRCW',
|
|
1418
|
+
'DxbKyxrL',
|
|
1419
|
+
'ihr5Cgu9ywDLBNq',
|
|
1420
|
+
'y2HHBM5LBeLK',
|
|
1421
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
373
1422
|
'BgLZDf90yxnRCW',
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
379
|
-
'
|
|
380
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
381
|
-
'CMvZCg9UC2u',
|
|
1423
|
+
'DgfZA051BwjLCG',
|
|
1424
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1425
|
+
'ue9tva',
|
|
1426
|
+
'iYmJienOyw5UzwXZ',
|
|
1427
|
+
'DgfYz2v0zwq',
|
|
1428
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
382
1429
|
'C2v0',
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
1430
|
+
'DMfSDwu',
|
|
1431
|
+
'Dw5JBgfPBvrHC2S',
|
|
1432
|
+
'z2v0sg91CNm',
|
|
1433
|
+
'CMvZDwX0',
|
|
1434
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1435
|
+
'AM9PBG',
|
|
1436
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1437
|
+
'ANnVBG',
|
|
1438
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1439
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1440
|
+
'DgHYzwfK',
|
|
1441
|
+
'BwLU',
|
|
1442
|
+
'D29YA19RzxK',
|
|
1443
|
+
'yxjYyxK',
|
|
1444
|
+
'Dw5JBgfPBv90yxnR',
|
|
1445
|
+
'C3vJy2vZCW',
|
|
1446
|
+
'D3nZoG',
|
|
1447
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
1448
|
+
'Ahr0Chm6',
|
|
1449
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
1450
|
+
'khvUA25VD24P',
|
|
388
1451
|
'CMvHzf9OAxn0B3j5',
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
1452
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1453
|
+
'ChjVDg9JB2W',
|
|
1454
|
+
'C3bSAxq',
|
|
1455
|
+
'zgf0yq',
|
|
1456
|
+
'v29YA2vYici',
|
|
1457
|
+
'C29Tzq',
|
|
1458
|
+
'mJy2odqWBgHyturZ',
|
|
1459
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1460
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1461
|
+
'z2v0rgf0zq',
|
|
1462
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1463
|
+
'C2XPy2u',
|
|
1464
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1465
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1466
|
+
'BMv4Den1CNnVCG',
|
|
1467
|
+
'zgLZCg9ZAxrPB24',
|
|
1468
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1469
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1470
|
+
'mtm5odiZmMvxCuXmCW',
|
|
1471
|
+
'yxnPzgu',
|
|
405
1472
|
'BwvZC2fNzq',
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'A2LUza',
|
|
409
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
410
|
-
'ywDNCMvNyxrLswrZ',
|
|
1473
|
+
'Cgf5Bg9HzePZB24',
|
|
1474
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
411
1475
|
'DhjPBq',
|
|
412
|
-
'
|
|
1476
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1477
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1478
|
+
'Dg9tDhjPBMC',
|
|
1479
|
+
'm3zdwMXPvG',
|
|
413
1480
|
'y3jLyxrLx3rHC2TZ',
|
|
414
|
-
'
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
418
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
419
|
-
'AgfZtw9Yzq',
|
|
420
|
-
'ywrK',
|
|
421
|
-
'C2HHmJu2',
|
|
422
|
-
'ls1Zzxj2zxiTDxjS',
|
|
423
|
-
'C2vUzgvYtMfTzq',
|
|
424
|
-
'mtaZmdaXmKTWwunJAa',
|
|
425
|
-
'DgfZAW',
|
|
426
|
-
'ywXS',
|
|
427
|
-
'CgfKu3rHCNq',
|
|
428
|
-
'ChvIBgLJ',
|
|
429
|
-
'Cgf5Bg9HzePZB24',
|
|
430
|
-
'zMv0y2HjBxbS',
|
|
1481
|
+
'ChvZAa',
|
|
1482
|
+
'D3m6',
|
|
1483
|
+
'y3jLyxrLvgfZA3m',
|
|
431
1484
|
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
432
|
-
'
|
|
433
|
-
'
|
|
434
|
-
'
|
|
435
|
-
'
|
|
436
|
-
'
|
|
437
|
-
'
|
|
438
|
-
'
|
|
1485
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1486
|
+
'C2vUzgvYvhLWzq',
|
|
1487
|
+
'w3rHCMDLDd0',
|
|
1488
|
+
'kg5VBMuP',
|
|
1489
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1490
|
+
'zg06',
|
|
1491
|
+
'icHPzdO',
|
|
1492
|
+
'C3rHCNrZv2L0Aa',
|
|
1493
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1494
|
+
'sfruuca',
|
|
1495
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1496
|
+
'igTPBMq9',
|
|
1497
|
+
'v29YA2vYia',
|
|
1498
|
+
'zgvZDhjVEwvK',
|
|
1499
|
+
'A2LUza',
|
|
1500
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1501
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1502
|
+
'Dgv4Dc9JC3y',
|
|
1503
|
+
'Bwf4',
|
|
1504
|
+
'DhLWzq',
|
|
1505
|
+
'AgLNAa',
|
|
1506
|
+
'yMXVy2TLza',
|
|
1507
|
+
'BgLZDfrHC2TZ',
|
|
1508
|
+
'zgvZy3jPChrPB24',
|
|
1509
|
+
'igf0DgfJAg1LBNq',
|
|
1510
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1511
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
439
1512
|
'ywDNCMvNyxrLvhLWzq',
|
|
440
|
-
'
|
|
441
|
-
'
|
|
442
|
-
'
|
|
443
|
-
'
|
|
444
|
-
'
|
|
445
|
-
'
|
|
446
|
-
'
|
|
447
|
-
'
|
|
448
|
-
'
|
|
449
|
-
'
|
|
1513
|
+
'AgvHzgvYCW',
|
|
1514
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1515
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1516
|
+
'C2f2zq',
|
|
1517
|
+
'y29UBMvJDa',
|
|
1518
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1519
|
+
'l3nLCNzLCG',
|
|
1520
|
+
'y2HHBM5LBhm',
|
|
1521
|
+
'ChvIBgLJ',
|
|
1522
|
+
'zNjVBq',
|
|
1523
|
+
'DgfZA3m',
|
|
1524
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
450
1525
|
'Bwf0y2Hoyw1L',
|
|
451
|
-
'
|
|
452
|
-
'
|
|
453
|
-
'
|
|
454
|
-
'
|
|
455
|
-
'
|
|
456
|
-
'
|
|
457
|
-
'
|
|
1526
|
+
'ywDLBNq',
|
|
1527
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
1528
|
+
'iIbUB3qGzM91BMq',
|
|
1529
|
+
'Dg9gAxHLza',
|
|
1530
|
+
'l3nLBMq',
|
|
1531
|
+
'ls1Hz2vUDc1Pza',
|
|
1532
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1533
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1534
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1535
|
+
'CNvUBMLUzW',
|
|
1536
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1537
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1538
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1539
|
+
'CNvUswq',
|
|
1540
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1541
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
1542
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1543
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
1544
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1545
|
+
'igLUia',
|
|
1546
|
+
'Dg9KBW',
|
|
1547
|
+
'EM9K',
|
|
1548
|
+
'CgfYC2u',
|
|
1549
|
+
'mtbtzhnSrvO',
|
|
1550
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1551
|
+
'zMLSzxnFy2HHBMDLza'
|
|
458
1552
|
];
|
|
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)
|
|
480
|
-
};
|
|
481
|
-
function guessContentType(_0x272da0) {
|
|
482
|
-
const _0x108a1d = { _0x1c00b2: 0x1d4 }, _0x12552a = _0x54fce;
|
|
483
|
-
return MIME_BY_EXTENSION[_0x54f963[_0x12552a(0x2a0)](_0x272da0)[_0x12552a(_0x108a1d._0x1c00b2)]()] ?? _0x12552a(0x263);
|
|
484
|
-
}
|
|
485
|
-
function safeFilename(_0x277c7e) {
|
|
486
|
-
const _0x545700 = _0x54fce;
|
|
487
|
-
return _0x277c7e[_0x545700(0x1bf)](/[\\/]/g, '-');
|
|
488
|
-
}
|
|
489
|
-
function extensionFor(_0x19703f) {
|
|
490
|
-
const _0x35e6bf = {
|
|
491
|
-
_0x3c2f59: 0x244,
|
|
492
|
-
_0x5cce02: 0x258
|
|
493
|
-
}, _0x40ab8c = _0x54fce, _0x8b3d0 = Object['entries'](MIME_BY_EXTENSION)[_0x40ab8c(_0x35e6bf._0x3c2f59)](([, _0x4d623b]) => _0x4d623b === _0x19703f);
|
|
494
|
-
return _0x8b3d0?.[0x0] ?? _0x40ab8c(_0x35e6bf._0x5cce02);
|
|
495
|
-
}
|
|
496
|
-
async function prepareUploadFile(_0x21e59c, _0x366008 = {}) {
|
|
497
|
-
const _0x335ea8 = {
|
|
498
|
-
_0x3de0a0: 0x30a,
|
|
499
|
-
_0xc18ede: 0x24d,
|
|
500
|
-
_0x3ee7a5: 0x21d,
|
|
501
|
-
_0x339701: 0x2b7,
|
|
502
|
-
_0x2a69a8: 0x1b4
|
|
503
|
-
}, _0x4495cc = _0x54fce;
|
|
504
|
-
if (!_0x54f963['isAbsolute'](_0x21e59c))
|
|
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);
|
|
513
|
-
return {
|
|
514
|
-
'contentBase64': _0x17abf2['toString'](_0x4495cc(_0x335ea8._0x2a69a8)),
|
|
515
|
-
'contentType': guessContentType(_0x409b3f),
|
|
516
|
-
'filename': _0x409b3f,
|
|
517
|
-
'sizeBytes': _0x3b1800[_0x4495cc(0x2bc)]
|
|
518
|
-
};
|
|
519
|
-
}
|
|
520
|
-
function createAttachmentCache(_0xab2aef = {}) {
|
|
521
|
-
const _0x15536e = {
|
|
522
|
-
_0x162794: 0x2f8,
|
|
523
|
-
_0x3502be: 0x1f2,
|
|
524
|
-
_0x55086e: 0x2b6
|
|
525
|
-
}, _0x2215bd = {
|
|
526
|
-
_0x404f5f: 0x312,
|
|
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');
|
|
531
|
-
return {
|
|
532
|
-
'cacheDir': _0x1fcc7e,
|
|
533
|
-
async 'findCachedPath'(_0xb39a59) {
|
|
534
|
-
const _0x416c45 = _0x3658bf;
|
|
535
|
-
await mkdir(_0x1fcc7e, { 'recursive': !![] });
|
|
536
|
-
const _0x248c29 = await readdir(_0x1fcc7e), _0x3fc562 = _0x248c29['find'](_0x21bd6f => _0x21bd6f[_0x416c45(0x228)](_0xb39a59 + '-') || _0x21bd6f['startsWith'](_0xb39a59));
|
|
537
|
-
return _0x3fc562 ? _0x54f963[_0x416c45(_0x538711._0x2199a0)](_0x1fcc7e, _0x3fc562) : null;
|
|
538
|
-
},
|
|
539
|
-
async 'save'(_0x49c54c) {
|
|
540
|
-
const _0x2ee033 = _0x3658bf;
|
|
541
|
-
await mkdir(_0x1fcc7e, { 'recursive': !![] });
|
|
542
|
-
const _0x107734 = _0x49c54c['originalFilename']?.[_0x2ee033(_0x2215bd._0x404f5f)]() ? safeFilename(_0x49c54c['originalFilename']) : '' + _0x49c54c[_0x2ee033(0x24c)] + extensionFor(_0x49c54c[_0x2ee033(_0x2215bd._0x167d44)]), _0x58a654 = _0x54f963['join'](_0x1fcc7e, _0x49c54c[_0x2ee033(_0x2215bd._0x572410)] + '-' + _0x107734);
|
|
543
|
-
return await writeFile(_0x58a654, _0x49c54c[_0x2ee033(_0x2215bd._0x4a1951)]), _0x58a654;
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
import {
|
|
548
|
-
createHash,
|
|
549
|
-
randomUUID
|
|
550
|
-
} from 'node:crypto';
|
|
551
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x54fce(0x221);
|
|
552
|
-
function ensureSegment(_0x1bd93f) {
|
|
553
|
-
const _0x4a44d9 = { _0x58c7e9: 0x218 }, _0x57232c = _0x54fce, _0x37637f = _0x1bd93f[_0x57232c(0x312)]();
|
|
554
|
-
if (!_0x37637f || _0x37637f[_0x57232c(_0x4a44d9._0x58c7e9)](':'))
|
|
555
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
556
|
-
return _0x37637f;
|
|
557
|
-
}
|
|
558
|
-
function parseThreadParts(_0x516381) {
|
|
559
|
-
const _0x2c8c86 = { _0x32a999: 0x278 }, _0x1af32b = _0x54fce, _0x23c20d = _0x516381['split'](':');
|
|
560
|
-
if (_0x23c20d['length'] < 0x1 || _0x23c20d[_0x1af32b(_0x2c8c86._0x32a999)] > 0x2)
|
|
561
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
562
|
-
return {
|
|
563
|
-
'channelName': ensureSegment(_0x23c20d[0x0] ?? ''),
|
|
564
|
-
'threadShortId': _0x23c20d[0x1] ? ensureSegment(_0x23c20d[0x1]) : null
|
|
565
|
-
};
|
|
566
|
-
}
|
|
567
|
-
function parseTarget(_0x39dad5) {
|
|
568
|
-
const _0x5d02ca = {
|
|
569
|
-
_0x4da32f: 0x228,
|
|
570
|
-
_0x19434d: 0x28b,
|
|
571
|
-
_0xddb17: 0x1ed,
|
|
572
|
-
_0x162ef4: 0x1ee,
|
|
573
|
-
_0x13114b: 0x28b,
|
|
574
|
-
_0x1cb158: 0x24a
|
|
575
|
-
}, _0xeef8a7 = _0x54fce, _0x366559 = _0x39dad5[_0xeef8a7(0x312)]();
|
|
576
|
-
if (!_0x366559)
|
|
577
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
578
|
-
if (_0x366559[_0xeef8a7(_0x5d02ca._0x4da32f)]('#')) {
|
|
579
|
-
const _0x52586a = parseThreadParts(_0x366559[_0xeef8a7(0x2ee)](0x1)), _0x53d571 = '#' + _0x52586a[_0xeef8a7(_0x5d02ca._0x19434d)];
|
|
580
|
-
if (!_0x52586a[_0xeef8a7(_0x5d02ca._0xddb17)])
|
|
581
|
-
return {
|
|
582
|
-
'channelName': _0x52586a[_0xeef8a7(0x28b)],
|
|
583
|
-
'channelTarget': _0x53d571,
|
|
584
|
-
'kind': _0xeef8a7(_0x5d02ca._0x162ef4),
|
|
585
|
-
'target': _0x53d571
|
|
586
|
-
};
|
|
587
|
-
return {
|
|
588
|
-
'channelName': _0x52586a['channelName'],
|
|
589
|
-
'channelTarget': _0x53d571,
|
|
590
|
-
'kind': _0xeef8a7(0x24a),
|
|
591
|
-
'target': _0x53d571 + ':' + _0x52586a[_0xeef8a7(0x1ed)],
|
|
592
|
-
'threadShortId': _0x52586a['threadShortId']
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
if (_0x366559[_0xeef8a7(0x228)]('dm:')) {
|
|
596
|
-
const _0x310ec8 = parseThreadParts(_0x366559[_0xeef8a7(0x2ee)](0x3));
|
|
597
|
-
if (!_0x310ec8['channelName'][_0xeef8a7(_0x5d02ca._0x4da32f)]('dm-'))
|
|
598
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
599
|
-
const _0x5103fe = 'dm:' + _0x310ec8[_0xeef8a7(_0x5d02ca._0x13114b)];
|
|
600
|
-
if (!_0x310ec8[_0xeef8a7(0x1ed)])
|
|
601
|
-
return {
|
|
602
|
-
'channelName': _0x310ec8[_0xeef8a7(0x28b)],
|
|
603
|
-
'channelTarget': _0x5103fe,
|
|
604
|
-
'kind': _0xeef8a7(0x1ee),
|
|
605
|
-
'target': _0x5103fe
|
|
606
|
-
};
|
|
607
|
-
return {
|
|
608
|
-
'channelName': _0x310ec8[_0xeef8a7(_0x5d02ca._0x19434d)],
|
|
609
|
-
'channelTarget': _0x5103fe,
|
|
610
|
-
'kind': _0xeef8a7(_0x5d02ca._0x1cb158),
|
|
611
|
-
'target': _0x5103fe + ':' + _0x310ec8[_0xeef8a7(0x1ed)],
|
|
612
|
-
'threadShortId': _0x310ec8['threadShortId']
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
616
|
-
}
|
|
617
|
-
function asErrorMessage(_0x1d4aa3, _0x1679cf) {
|
|
618
|
-
const _0xe9833d = { _0x518700: 0x312 }, _0x1d7842 = _0x54fce;
|
|
619
|
-
if (typeof _0x1d4aa3 === _0x1d7842(0x2c5) && _0x1d4aa3[_0x1d7842(_0xe9833d._0x518700)]())
|
|
620
|
-
return _0x1d4aa3;
|
|
621
|
-
return _0x1679cf;
|
|
622
|
-
}
|
|
623
|
-
function asRecord(_0x3f8e1f) {
|
|
624
|
-
const _0x382f1f = _0x54fce;
|
|
625
|
-
return typeof _0x3f8e1f === _0x382f1f(0x213) && _0x3f8e1f !== null ? _0x3f8e1f : {};
|
|
626
|
-
}
|
|
627
|
-
function stableStringify(_0xf8f8ba) {
|
|
628
|
-
const _0x220fd7 = {
|
|
629
|
-
_0x2330f3: 0x1f9,
|
|
630
|
-
_0x452ed3: 0x2c4,
|
|
631
|
-
_0x2535f6: 0x1f2,
|
|
632
|
-
_0xec9a66: 0x25a
|
|
633
|
-
}, _0x1ad1ab = _0x54fce;
|
|
634
|
-
if (_0xf8f8ba === null || typeof _0xf8f8ba !== _0x1ad1ab(0x213))
|
|
635
|
-
return JSON[_0x1ad1ab(_0x220fd7._0x2330f3)](_0xf8f8ba);
|
|
636
|
-
if (Array[_0x1ad1ab(0x1ea)](_0xf8f8ba))
|
|
637
|
-
return '[' + _0xf8f8ba[_0x1ad1ab(_0x220fd7._0x452ed3)](_0x16338f => stableStringify(_0x16338f))[_0x1ad1ab(_0x220fd7._0x2535f6)](',') + ']';
|
|
638
|
-
const _0x307028 = Object['entries'](_0xf8f8ba)['filter'](([, _0x10cf78]) => _0x10cf78 !== void 0x0)[_0x1ad1ab(_0x220fd7._0xec9a66)](([_0x1fc553], [_0x40b19a]) => _0x1fc553['localeCompare'](_0x40b19a))[_0x1ad1ab(_0x220fd7._0x452ed3)](([_0x908682, _0x3aef55]) => JSON[_0x1ad1ab(0x1f9)](_0x908682) + ':' + stableStringify(_0x3aef55));
|
|
639
|
-
return '{' + _0x307028['join'](',') + '}';
|
|
640
|
-
}
|
|
641
|
-
function createHeaders(_0x4055a3) {
|
|
642
|
-
return {
|
|
643
|
-
'Content-Type': 'application/json',
|
|
644
|
-
'x-daemon-api-key': _0x4055a3
|
|
1553
|
+
_0x276a = function () {
|
|
1554
|
+
return _0x467878;
|
|
645
1555
|
};
|
|
1556
|
+
return _0x276a();
|
|
646
1557
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
_0x3259f7[_0x6763f8(_0x494d41._0x5b5757)] = _0x6763f8(_0x494d41._0x24b495);
|
|
658
|
-
else
|
|
659
|
-
_0x3259f7[_0x6763f8(0x288)] === _0x6763f8(0x1df) && (_0x3259f7[_0x6763f8(0x288)] = _0x6763f8(_0x494d41._0x3fe9bc));
|
|
660
|
-
return _0x3259f7[_0x6763f8(_0x494d41._0x354fd9)]()[_0x6763f8(_0x494d41._0x4bebd0)](/\/$/, '');
|
|
661
|
-
}
|
|
662
|
-
function isMentionBoundary(_0xb2aeda) {
|
|
663
|
-
const _0x5c8c09 = { _0x1a5f82: 0x207 }, _0xd8817 = _0x54fce;
|
|
664
|
-
return !_0xb2aeda || /\s|[([{'",。!?、:;]/[_0xd8817(_0x5c8c09._0x1a5f82)](_0xb2aeda);
|
|
665
|
-
}
|
|
666
|
-
function isMentionTerminal(_0x22d1c1) {
|
|
667
|
-
const _0x2a3606 = _0x54fce;
|
|
668
|
-
return !_0x22d1c1 || /\s|[)\]}'",。!?、:;,.!?]/[_0x2a3606(0x207)](_0x22d1c1);
|
|
669
|
-
}
|
|
670
|
-
function buildMatchableEntries(_0xa44251) {
|
|
671
|
-
const _0x55bdc0 = {
|
|
672
|
-
_0x7cd697: 0x302,
|
|
673
|
-
_0x1ca608: 0x2dd
|
|
674
|
-
}, _0x4ca20b = _0x54fce, _0x4508a0 = [];
|
|
675
|
-
for (const _0x26260f of [
|
|
676
|
-
..._0xa44251[_0x4ca20b(_0x55bdc0._0x7cd697)],
|
|
677
|
-
..._0xa44251[_0x4ca20b(_0x55bdc0._0x1ca608)]
|
|
678
|
-
]) {
|
|
679
|
-
_0x4508a0['push']({
|
|
680
|
-
'matchName': _0x26260f['name'],
|
|
681
|
-
'matchNameLower': _0x26260f[_0x4ca20b(0x29c)][_0x4ca20b(0x2ed)](),
|
|
682
|
-
'participantId': _0x26260f['id']
|
|
683
|
-
}), _0x26260f['id'] !== _0x26260f[_0x4ca20b(0x29c)] && _0x4508a0['push']({
|
|
684
|
-
'matchName': _0x26260f['id'],
|
|
685
|
-
'matchNameLower': _0x26260f['id'][_0x4ca20b(0x2ed)](),
|
|
686
|
-
'participantId': _0x26260f['id']
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
return _0x4508a0;
|
|
690
|
-
}
|
|
691
|
-
function extractMentionedParticipantIds(_0x1caad2, _0x1f674d) {
|
|
692
|
-
const _0x226d8d = {
|
|
693
|
-
_0x3291bc: 0x31b,
|
|
694
|
-
_0x5f5c1d: 0x1c5,
|
|
695
|
-
_0x508775: 0x1a7
|
|
696
|
-
}, _0x2ab50e = { _0xe4a325: 0x2be }, _0x3bf18a = _0x54fce, _0x52a390 = buildMatchableEntries(_0x1f674d)[_0x3bf18a(0x25a)]((_0x19fb4e, _0x1ab778) => _0x1ab778[_0x3bf18a(0x1a7)][_0x3bf18a(0x278)] - _0x19fb4e[_0x3bf18a(0x1a7)][_0x3bf18a(0x278)]), _0x350120 = [], _0x934ca1 = new Set();
|
|
697
|
-
for (let _0x337289 = 0x0; _0x337289 < _0x1caad2[_0x3bf18a(0x278)]; _0x337289 += 0x1) {
|
|
698
|
-
if (_0x1caad2[_0x337289] !== '@' || !isMentionBoundary(_0x1caad2[_0x337289 - 0x1]))
|
|
699
|
-
continue;
|
|
700
|
-
const _0x265d7b = _0x1caad2['slice'](_0x337289 + 0x1), _0x1c7e82 = _0x265d7b[_0x3bf18a(0x2ed)](), _0x7dca02 = _0x52a390['find'](_0x5c2f62 => {
|
|
701
|
-
const _0x3b50f3 = _0x3bf18a;
|
|
702
|
-
if (!_0x1c7e82[_0x3b50f3(0x228)](_0x5c2f62[_0x3b50f3(_0x2ab50e._0xe4a325)]))
|
|
703
|
-
return ![];
|
|
704
|
-
return isMentionTerminal(_0x265d7b[_0x5c2f62[_0x3b50f3(0x1a7)][_0x3b50f3(0x278)]]);
|
|
705
|
-
});
|
|
706
|
-
if (!_0x7dca02 || _0x934ca1[_0x3bf18a(0x1f4)](_0x7dca02[_0x3bf18a(0x1c5)]))
|
|
707
|
-
continue;
|
|
708
|
-
_0x934ca1[_0x3bf18a(_0x226d8d._0x3291bc)](_0x7dca02[_0x3bf18a(_0x226d8d._0x5f5c1d)]), _0x350120[_0x3bf18a(0x1f8)](_0x7dca02['participantId']), _0x337289 += _0x7dca02[_0x3bf18a(_0x226d8d._0x508775)][_0x3bf18a(0x278)];
|
|
709
|
-
}
|
|
710
|
-
return _0x350120;
|
|
711
|
-
}
|
|
712
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
713
|
-
function anySignal(..._0x1c24ea) {
|
|
714
|
-
const _0x22aa11 = {
|
|
715
|
-
_0x3bc9f5: 0x2ff,
|
|
716
|
-
_0x5c6fb3: 0x2e4
|
|
717
|
-
}, _0x598139 = _0x54fce, _0x276cad = new AbortController();
|
|
718
|
-
for (const _0x501586 of _0x1c24ea) {
|
|
719
|
-
if (_0x501586[_0x598139(_0x22aa11._0x3bc9f5)])
|
|
720
|
-
return _0x276cad[_0x598139(0x2e4)](_0x501586['reason']), _0x276cad['signal'];
|
|
721
|
-
_0x501586[_0x598139(0x27a)](_0x598139(_0x22aa11._0x5c6fb3), () => _0x276cad[_0x598139(0x2e4)](_0x501586[_0x598139(0x2db)]), {
|
|
722
|
-
'once': !![],
|
|
723
|
-
'signal': _0x276cad['signal']
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
return _0x276cad[_0x598139(0x2e5)];
|
|
727
|
-
}
|
|
728
|
-
function createInternalAgentClient(_0x58bb63) {
|
|
729
|
-
const _0x574f75 = {
|
|
730
|
-
_0x15da16: 0x21c,
|
|
731
|
-
_0x4e2685: 0x1e5,
|
|
732
|
-
_0x5e3082: 0x21c,
|
|
733
|
-
_0x59edb9: 0x2e8,
|
|
734
|
-
_0x587196: 0x260,
|
|
735
|
-
_0x24a8b4: 0x1e8
|
|
736
|
-
}, _0x4c5cea = {
|
|
737
|
-
_0x11fa28: 0x304,
|
|
738
|
-
_0x5f1eff: 0x278,
|
|
739
|
-
_0x534b0e: 0x1db,
|
|
740
|
-
_0x42a407: 0x1de,
|
|
741
|
-
_0x49d6ce: 0x262,
|
|
742
|
-
_0xf8dd7d: 0x262,
|
|
743
|
-
_0x3d04a1: 0x1d8,
|
|
744
|
-
_0x284c82: 0x1c0,
|
|
745
|
-
_0xd7cf40: 0x2ef,
|
|
746
|
-
_0x49987a: 0x26a,
|
|
747
|
-
_0x428bc4: 0x2ab,
|
|
748
|
-
_0x449b6d: 0x311,
|
|
749
|
-
_0x3aed21: 0x1f8,
|
|
750
|
-
_0x3b3d9f: 0x2f5,
|
|
751
|
-
_0x1d0679: 0x324,
|
|
752
|
-
_0x4c255a: 0x1db,
|
|
753
|
-
_0x45d946: 0x278,
|
|
754
|
-
_0x1ab6b0: 0x2ef,
|
|
755
|
-
_0x5d5850: 0x2b9,
|
|
756
|
-
_0x4ad5de: 0x2f7,
|
|
757
|
-
_0x5b6d1a: 0x204,
|
|
758
|
-
_0x2b65f2: 0x30f,
|
|
759
|
-
_0x151a98: 0x1cd,
|
|
760
|
-
_0x5b11af: 0x31e,
|
|
761
|
-
_0x142f32: 0x2c5,
|
|
762
|
-
_0x242253: 0x30f,
|
|
763
|
-
_0xe38586: 0x27d
|
|
764
|
-
}, _0x5e0fa5 = {
|
|
765
|
-
_0x374667: 0x2c5,
|
|
766
|
-
_0x3e7b53: 0x245,
|
|
767
|
-
_0xbef4b8: 0x1f4
|
|
768
|
-
}, _0x263f0a = {
|
|
769
|
-
_0x3510b3: 0x296,
|
|
770
|
-
_0xe4cb5a: 0x1d8
|
|
771
|
-
}, _0x40bf93 = {
|
|
772
|
-
_0xbf9558: 0x2b1,
|
|
773
|
-
_0x464cfb: 0x234,
|
|
774
|
-
_0x2a6777: 0x2ef,
|
|
775
|
-
_0x2730a6: 0x1b5,
|
|
776
|
-
_0x1b1e4d: 0x2c7
|
|
777
|
-
}, _0x2b7994 = {
|
|
778
|
-
_0x30c73c: 0x1ee,
|
|
779
|
-
_0x3f2632: 0x1c8,
|
|
780
|
-
_0x4564c2: 0x1e7,
|
|
781
|
-
_0x16b018: 0x2e1,
|
|
782
|
-
_0x367551: 0x332
|
|
783
|
-
}, _0x1fa51d = {
|
|
784
|
-
_0x4d9086: 0x1d0,
|
|
785
|
-
_0x27ea52: 0x1f9,
|
|
786
|
-
_0x14075f: 0x2e1
|
|
787
|
-
}, _0x1b12e3 = {
|
|
788
|
-
_0x5dd8d1: 0x1c8,
|
|
789
|
-
_0x419c0f: 0x2b5,
|
|
790
|
-
_0x2bc9e3: 0x20f,
|
|
791
|
-
_0x5be6bf: 0x1f9
|
|
792
|
-
}, _0xb1d01b = {
|
|
793
|
-
_0x527b4a: 0x1c8,
|
|
794
|
-
_0x49513c: 0x1f9
|
|
795
|
-
}, _0x907907 = {
|
|
796
|
-
_0x29bdfc: 0x2b5,
|
|
797
|
-
_0x15bf9e: 0x1be
|
|
798
|
-
}, _0x1bb01d = {
|
|
799
|
-
_0x4f1d97: 0x2f5,
|
|
800
|
-
_0x1f11c3: 0x1ee,
|
|
801
|
-
_0x1fcbba: 0x281,
|
|
802
|
-
_0x15005b: 0x1d5
|
|
803
|
-
}, _0x447f64 = {
|
|
804
|
-
_0x376263: 0x30d,
|
|
805
|
-
_0x9cd6b4: 0x2e0,
|
|
806
|
-
_0x2195a8: 0x2d2,
|
|
807
|
-
_0x477efc: 0x1f9,
|
|
808
|
-
_0x2eba75: 0x281,
|
|
809
|
-
_0x19d346: 0x2e1,
|
|
810
|
-
_0x3d8ab1: 0x332
|
|
811
|
-
}, _0x4d20a4 = {
|
|
812
|
-
_0x5afa84: 0x2e0,
|
|
813
|
-
_0x42271a: 0x1f9,
|
|
814
|
-
_0x4ccd43: 0x2e1,
|
|
815
|
-
_0x90f555: 0x23b
|
|
816
|
-
}, _0x5767f2 = {
|
|
817
|
-
_0x1c61fa: 0x1f9,
|
|
818
|
-
_0x5affba: 0x2e1,
|
|
819
|
-
_0x3ff88f: 0x332,
|
|
820
|
-
_0x1d5125: 0x225
|
|
821
|
-
}, _0x14c8c9 = { _0x43bd39: 0x279 }, _0x28c57c = {
|
|
822
|
-
_0x49458a: 0x327,
|
|
823
|
-
_0x1907b7: 0x29f,
|
|
824
|
-
_0x11ef6b: 0x218,
|
|
825
|
-
_0xc4924e: 0x1c8,
|
|
826
|
-
_0x2c6266: 0x2b5,
|
|
827
|
-
_0x414c47: 0x1f9,
|
|
828
|
-
_0x5b6fa8: 0x1d8,
|
|
829
|
-
_0x201588: 0x2b0
|
|
830
|
-
}, _0x5bd2f6 = {
|
|
831
|
-
_0x5a4337: 0x2f5,
|
|
832
|
-
_0x150fb1: 0x1d8,
|
|
833
|
-
_0x5d72ef: 0x245,
|
|
834
|
-
_0x17db19: 0x2a1,
|
|
835
|
-
_0x199f54: 0x296,
|
|
836
|
-
_0x2b8cc4: 0x296,
|
|
837
|
-
_0x575373: 0x1c8,
|
|
838
|
-
_0x1ab69b: 0x1b0,
|
|
839
|
-
_0x7fbf09: 0x1d5,
|
|
840
|
-
_0x14f31b: 0x24f
|
|
841
|
-
}, _0x5c753f = { _0x27179c: 0x1a3 }, _0x16dbb4 = {
|
|
842
|
-
_0x88de41: 0x24a,
|
|
843
|
-
_0x314d26: 0x24f,
|
|
844
|
-
_0x27a927: 0x1ed,
|
|
845
|
-
_0x2e60c8: 0x2ab,
|
|
846
|
-
_0x157a0b: 0x1d8
|
|
847
|
-
}, _0x5591f4 = {
|
|
848
|
-
_0x30dc6a: 0x26a,
|
|
849
|
-
_0x29f117: 0x2ab,
|
|
850
|
-
_0x5c3fed: 0x1d8,
|
|
851
|
-
_0xebfa0c: 0x24f
|
|
852
|
-
}, _0x3339ed = {
|
|
853
|
-
_0x3b7a54: 0x1f3,
|
|
854
|
-
_0x2f40a9: 0x2eb
|
|
855
|
-
}, _0x5057b5 = {
|
|
856
|
-
_0x12c8ea: 0x2e1,
|
|
857
|
-
_0x758d6d: 0x24f,
|
|
858
|
-
_0x2f3aa8: 0x320
|
|
859
|
-
}, _0x560119 = {
|
|
860
|
-
_0x416e2b: 0x270,
|
|
861
|
-
_0x1b4275: 0x2b1
|
|
862
|
-
}, _0x586f9d = {
|
|
863
|
-
_0x498882: 0x1d9,
|
|
864
|
-
_0x5b8fd2: 0x295,
|
|
865
|
-
_0x457d31: 0x1f9
|
|
866
|
-
}, _0x35dc26 = {
|
|
867
|
-
_0x164e27: 0x2e5,
|
|
868
|
-
_0x2c08ef: 0x23c,
|
|
869
|
-
_0x467ddc: 0x281
|
|
870
|
-
}, _0x5b0ae2 = {
|
|
871
|
-
_0x2f86f1: 0x2e5,
|
|
872
|
-
_0x1242ef: 0x23c,
|
|
873
|
-
_0x15d1c7: 0x2b1
|
|
874
|
-
}, _0x38e7ea = {
|
|
875
|
-
_0x5aea2a: 0x26e,
|
|
876
|
-
_0x56b1e1: 0x26e,
|
|
877
|
-
_0xb31ecf: 0x294,
|
|
878
|
-
_0x30c659: 0x31c,
|
|
879
|
-
_0x28e047: 0x2ef,
|
|
880
|
-
_0x27ec83: 0x2f5
|
|
881
|
-
}, _0x3974ec = { _0x118cb2: 0x201 }, _0x425407 = {
|
|
882
|
-
_0x1385f7: 0x2f4,
|
|
883
|
-
_0xda7a0b: 0x1f7,
|
|
884
|
-
_0x31c818: 0x312,
|
|
885
|
-
_0x562251: 0x271,
|
|
886
|
-
_0x3670e6: 0x2a5
|
|
887
|
-
}, _0x3c8627 = _0x54fce, _0x37ea3e = _0x58bb63[_0x3c8627(0x325)] ?? fetch, _0x2be008 = _0x58bb63[_0x3c8627(0x227)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x1238de = typeof _0x58bb63[_0x3c8627(_0x574f75._0x15da16)] === _0x3c8627(_0x574f75._0x4e2685) && _0x58bb63[_0x3c8627(0x21c)] > 0x0 ? _0x58bb63[_0x3c8627(_0x574f75._0x5e3082)] : 0x0, _0x1f6611 = _0x58bb63[_0x3c8627(0x317)]?.['trim']() || void 0x0, _0x13f758 = _0x58bb63[_0x3c8627(_0x574f75._0x59edb9)]?.[_0x3c8627(0x312)]() || void 0x0, _0x2436e5 = _0x58bb63[_0x3c8627(0x27b)] === !![], _0x5c9be4 = _0x58bb63[_0x3c8627(0x2d0)]?.[_0x3c8627(0x312)]() || void 0x0, _0x2fe640 = _0x58bb63[_0x3c8627(0x2a4)]?.[_0x3c8627(0x312)]() || void 0x0, _0x421244 = createHeaders(_0x58bb63[_0x3c8627(_0x574f75._0x587196)]), _0x3d0438 = toHttpBaseUrl(_0x58bb63[_0x3c8627(_0x574f75._0x24a8b4)]);
|
|
888
|
-
let _0x58a285 = null;
|
|
889
|
-
const _0x13666c = new Map();
|
|
890
|
-
let _0x107c50 = _0x1238de, _0x5bd610 = _0x1238de;
|
|
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转发到后端。';
|
|
894
|
-
}
|
|
895
|
-
async function _0x5d23d8(_0x502dbf, _0x2ff21f) {
|
|
896
|
-
const _0x52a45d = _0x3c8627, _0x362af1 = Buffer[_0x52a45d(_0x3974ec._0x118cb2)](await _0x2ff21f['arrayBuffer']())['toString'](_0x52a45d(0x222));
|
|
897
|
-
if (!_0x362af1[_0x52a45d(0x312)]())
|
|
898
|
-
return {};
|
|
899
|
-
try {
|
|
900
|
-
return JSON['parse'](_0x362af1);
|
|
901
|
-
} catch {
|
|
902
|
-
throw new Error(_0x4e6cb1({
|
|
903
|
-
'bodyText': _0x362af1,
|
|
904
|
-
'requestUrl': _0x502dbf,
|
|
905
|
-
'response': _0x2ff21f
|
|
906
|
-
}));
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
function _0x9d512a(_0x3e6a94, _0xf15cc6) {
|
|
910
|
-
const _0x1039af = _0x3c8627, _0x371f6b = typeof _0xf15cc6[_0x1039af(_0x38e7ea._0x5aea2a)] === _0x1039af(0x2c5) ? _0xf15cc6[_0x1039af(_0x38e7ea._0x56b1e1)][_0x1039af(0x312)]() : '';
|
|
911
|
-
if (_0x371f6b)
|
|
912
|
-
return _0x371f6b;
|
|
913
|
-
const _0x27db9e = Date[_0x1039af(_0x38e7ea._0xb31ecf)]();
|
|
914
|
-
for (const [_0x3ce6a8, _0x20154a] of _0x13666c) {
|
|
915
|
-
_0x20154a[_0x1039af(0x2b4)] <= _0x27db9e && _0x13666c['delete'](_0x3ce6a8);
|
|
916
|
-
}
|
|
917
|
-
const _0x515d50 = {
|
|
918
|
-
..._0xf15cc6,
|
|
919
|
-
'idempotency_key': void 0x0
|
|
920
|
-
}, _0x5673be = createHash(_0x1039af(_0x38e7ea._0x30c659))[_0x1039af(0x282)](_0x3e6a94 + ':' + stableStringify(_0x515d50))[_0x1039af(0x1f0)](_0x1039af(0x21e)), _0x559bd5 = _0x3e6a94 + ':' + _0x5673be, _0x55637e = _0x13666c[_0x1039af(_0x38e7ea._0x28e047)](_0x559bd5);
|
|
921
|
-
if (_0x55637e)
|
|
922
|
-
return _0x55637e['value'];
|
|
923
|
-
const _0x3befe9 = 'auto:' + _0x3e6a94 + ':' + randomUUID();
|
|
924
|
-
return _0x13666c[_0x1039af(_0x38e7ea._0x27ec83)](_0x559bd5, {
|
|
925
|
-
'expiresAt': _0x27db9e + 0x5 * 0x3c * 0x3e8,
|
|
926
|
-
'value': _0x3befe9
|
|
927
|
-
}), _0x3befe9;
|
|
928
|
-
}
|
|
929
|
-
async function _0x588864(_0xd34240, _0x52d91f) {
|
|
930
|
-
const _0x4a6051 = _0x3c8627, _0x491e2d = new AbortController(), _0x4f3a59 = setTimeout(() => _0x491e2d[_0x4a6051(0x2e4)](), _0x2be008), _0x27a040 = _0x52d91f?.['signal'] ? anySignal(_0x52d91f[_0x4a6051(0x2e5)], _0x491e2d[_0x4a6051(0x2e5)]) : _0x491e2d[_0x4a6051(_0x5b0ae2._0x2f86f1)], _0x1d822f = '' + _0x3d0438 + _0xd34240;
|
|
931
|
-
try {
|
|
932
|
-
const _0x5292d5 = await _0x37ea3e(_0x1d822f, {
|
|
933
|
-
..._0x52d91f,
|
|
934
|
-
'signal': _0x27a040
|
|
935
|
-
}), _0x2c7b5a = await _0x5d23d8(_0x1d822f, _0x5292d5);
|
|
936
|
-
if (!_0x5292d5['ok'] || _0x2c7b5a['success'] === ![])
|
|
937
|
-
throw new Error(asErrorMessage(_0x2c7b5a[_0x4a6051(_0x5b0ae2._0x1242ef)], _0x4a6051(_0x5b0ae2._0x15d1c7) + _0x5292d5[_0x4a6051(0x281)]));
|
|
938
|
-
return _0x2c7b5a;
|
|
939
|
-
} finally {
|
|
940
|
-
clearTimeout(_0x4f3a59);
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
async function _0x509799(_0x1ed5bd, _0x5f1252) {
|
|
944
|
-
const _0x19378b = _0x3c8627, _0x24a90e = new AbortController(), _0x23b704 = setTimeout(() => _0x24a90e[_0x19378b(0x2e4)](), _0x2be008), _0x5566a5 = _0x5f1252?.['signal'] ? anySignal(_0x5f1252[_0x19378b(_0x35dc26._0x164e27)], _0x24a90e[_0x19378b(0x2e5)]) : _0x24a90e['signal'], _0x8e7d90 = '' + _0x3d0438 + _0x1ed5bd;
|
|
945
|
-
try {
|
|
946
|
-
const _0x3293b9 = await _0x37ea3e(_0x8e7d90, {
|
|
947
|
-
..._0x5f1252,
|
|
948
|
-
'signal': _0x5566a5
|
|
949
|
-
}), _0x279fa5 = await _0x5d23d8(_0x8e7d90, _0x3293b9);
|
|
950
|
-
if (!_0x3293b9['ok'])
|
|
951
|
-
throw new Error(asErrorMessage(_0x279fa5[_0x19378b(_0x35dc26._0x2c08ef)], 'HTTP\x20' + _0x3293b9[_0x19378b(_0x35dc26._0x467ddc)]));
|
|
952
|
-
return _0x279fa5;
|
|
953
|
-
} finally {
|
|
954
|
-
clearTimeout(_0x23b704);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
async function _0x4eb18d(_0x2822c5) {
|
|
958
|
-
const _0x4d7493 = _0x3c8627;
|
|
959
|
-
if (!_0x13f758 || _0x2822c5 <= _0x5bd610)
|
|
960
|
-
return;
|
|
961
|
-
await _0x588864(_0x4d7493(_0x586f9d._0x498882) + encodeURIComponent(_0x13f758) + _0x4d7493(_0x586f9d._0x5b8fd2), {
|
|
962
|
-
'body': JSON[_0x4d7493(_0x586f9d._0x457d31)]({ 'lastSeenSeq': _0x2822c5 }),
|
|
963
|
-
'headers': _0x421244,
|
|
964
|
-
'method': _0x4d7493(0x242)
|
|
965
|
-
}), _0x5bd610 = _0x2822c5;
|
|
966
|
-
}
|
|
967
|
-
async function _0x4b057a(_0x2bf67d) {
|
|
968
|
-
const _0x51d661 = _0x3c8627;
|
|
969
|
-
if (!_0x1f6611 || !_0x5c9be4 || _0x2bf67d <= _0x5bd610)
|
|
970
|
-
return;
|
|
971
|
-
const _0xf23480 = await _0x37ea3e(_0x1f6611 + _0x51d661(0x2f3), {
|
|
972
|
-
'body': JSON[_0x51d661(0x1f9)]({
|
|
973
|
-
'last_seen_seq': _0x2bf67d,
|
|
974
|
-
'worker_session_id': _0x5c9be4
|
|
975
|
-
}),
|
|
976
|
-
'headers': { 'Content-Type': _0x51d661(_0x560119._0x416e2b) },
|
|
977
|
-
'method': _0x51d661(0x2e1)
|
|
978
|
-
});
|
|
979
|
-
if (!_0xf23480['ok'])
|
|
980
|
-
throw new Error(_0x51d661(_0x560119._0x1b4275) + _0xf23480['status']);
|
|
981
|
-
_0x5bd610 = _0x2bf67d;
|
|
982
|
-
}
|
|
983
|
-
async function _0x24f23c(_0x22ac40) {
|
|
984
|
-
const _0x19ddd3 = _0x3c8627, _0x5917e7 = parseTarget(_0x22ac40), _0x5b09d0 = await _0x588864('/internal/agent/' + _0x58bb63['agentId'] + '/resolve-channel', {
|
|
985
|
-
'body': JSON[_0x19ddd3(0x1f9)]({ 'target': _0x5917e7[_0x19ddd3(0x327)] }),
|
|
986
|
-
'headers': _0x421244,
|
|
987
|
-
'method': _0x19ddd3(_0x5057b5._0x12c8ea)
|
|
988
|
-
});
|
|
989
|
-
return {
|
|
990
|
-
'channelId': _0x5b09d0[_0x19ddd3(0x332)]?.['channelId'] ?? '',
|
|
991
|
-
'target': _0x5917e7[_0x19ddd3(_0x5057b5._0x758d6d)],
|
|
992
|
-
'task': _0x5b09d0[_0x19ddd3(0x332)]?.[_0x19ddd3(_0x5057b5._0x2f3aa8)],
|
|
993
|
-
'threadId': _0x5b09d0[_0x19ddd3(0x332)]?.['threadId'],
|
|
994
|
-
'threadNumber': _0x5b09d0[_0x19ddd3(0x332)]?.[_0x19ddd3(0x26a)]
|
|
995
|
-
};
|
|
996
|
-
}
|
|
997
|
-
async function _0x57c9e5(_0x500279 = {}) {
|
|
998
|
-
const _0x12644c = {
|
|
999
|
-
_0x3c4ef0: 0x1c8,
|
|
1000
|
-
_0x5020ac: 0x253,
|
|
1001
|
-
_0x47caa0: 0x2ae,
|
|
1002
|
-
_0x49df56: 0x1de,
|
|
1003
|
-
_0x5ab2a5: 0x332
|
|
1004
|
-
}, _0x541f8c = _0x3c8627;
|
|
1005
|
-
if (!_0x500279[_0x541f8c(_0x3339ed._0x3b7a54)] && _0x58a285)
|
|
1006
|
-
return _0x58a285;
|
|
1007
|
-
return _0x58a285 = (async () => {
|
|
1008
|
-
const _0x148de2 = _0x541f8c, _0x37e984 = await _0x588864(_0x148de2(_0x12644c._0x3c4ef0) + _0x58bb63['agentId'] + _0x148de2(_0x12644c._0x5020ac), {
|
|
1009
|
-
'headers': _0x421244,
|
|
1010
|
-
'method': _0x148de2(0x25d)
|
|
1011
|
-
}), _0x4b72d2 = _0x37e984[_0x148de2(0x332)]?.[_0x148de2(_0x12644c._0x47caa0)] ?? [], _0x265585 = _0x4b72d2[_0x148de2(0x1de)](_0x2272d2 => _0x2272d2[_0x148de2(0x2ea)]?.['type'] === _0x148de2(0x285))[_0x148de2(0x2c4)](_0x5f5299 => ({
|
|
1012
|
-
'id': _0x14aa05(_0x5f5299),
|
|
1013
|
-
'name': _0x4a086a(_0x5f5299)
|
|
1014
|
-
}))[_0x148de2(0x1de)](_0x366283 => _0x366283['id']), _0x52e6a4 = _0x4b72d2[_0x148de2(_0x12644c._0x49df56)](_0x12ad32 => _0x12ad32['participant']?.['type'] !== 'agent')[_0x148de2(0x2c4)](_0x26456f => ({
|
|
1015
|
-
'id': _0x14aa05(_0x26456f),
|
|
1016
|
-
'name': _0x4a086a(_0x26456f)
|
|
1017
|
-
}))[_0x148de2(0x1de)](_0x297c56 => _0x297c56['id']), _0x3ac3a1 = _0x37e984[_0x148de2(_0x12644c._0x5ab2a5)]?.[_0x148de2(0x22a)]['id'] ?? '';
|
|
1018
|
-
return {
|
|
1019
|
-
'agents': _0x265585,
|
|
1020
|
-
'channels': _0x37e984[_0x148de2(_0x12644c._0x5ab2a5)]?.[_0x148de2(0x262)] ?? [],
|
|
1021
|
-
'humans': _0x52e6a4,
|
|
1022
|
-
'serverId': _0x3ac3a1,
|
|
1023
|
-
'serverName': _0x37e984[_0x148de2(0x332)]?.[_0x148de2(0x22a)]['name'] ?? _0x3ac3a1
|
|
1024
|
-
};
|
|
1025
|
-
})()[_0x541f8c(_0x3339ed._0x2f40a9)](_0x361cff => {
|
|
1026
|
-
_0x58a285 = null;
|
|
1027
|
-
throw _0x361cff;
|
|
1028
|
-
}), _0x58a285;
|
|
1029
|
-
}
|
|
1030
|
-
function _0x4f8d49(_0x29f4fa, _0x9fc49a) {
|
|
1031
|
-
const _0xa77b5c = _0x3c8627;
|
|
1032
|
-
return _0x9fc49a['agents'][_0xa77b5c(0x26d)](_0x4caccb => _0x4caccb['id'] === _0x29f4fa || _0x4caccb[_0xa77b5c(0x29c)] === _0x29f4fa) ? _0xa77b5c(0x285) : _0xa77b5c(0x2d6);
|
|
1033
|
-
}
|
|
1034
|
-
function _0x273150(_0x43b011) {
|
|
1035
|
-
const _0x4032e0 = _0x3c8627;
|
|
1036
|
-
if (_0x43b011['threadNumber'] != null)
|
|
1037
|
-
return _0x43b011[_0x4032e0(0x24f)] + ':t' + _0x43b011[_0x4032e0(_0x5591f4._0x30dc6a)];
|
|
1038
|
-
if (_0x43b011[_0x4032e0(0x2ab)])
|
|
1039
|
-
return _0x43b011[_0x4032e0(0x24f)] + ':' + _0x43b011[_0x4032e0(_0x5591f4._0x29f117)];
|
|
1040
|
-
if (_0x43b011[_0x4032e0(0x1d8)])
|
|
1041
|
-
return _0x43b011[_0x4032e0(0x24f)] + ':' + _0x43b011[_0x4032e0(_0x5591f4._0x5c3fed)][_0x4032e0(0x2ee)](0x0, 0x8);
|
|
1042
|
-
return _0x43b011[_0x4032e0(_0x5591f4._0xebfa0c)];
|
|
1043
|
-
}
|
|
1044
|
-
function _0x506440(_0x373052, _0x2dd017) {
|
|
1045
|
-
const _0x2dafb6 = _0x3c8627;
|
|
1046
|
-
try {
|
|
1047
|
-
const _0x1b09e1 = parseTarget(_0x373052);
|
|
1048
|
-
if (_0x1b09e1['kind'] !== _0x2dafb6(_0x16dbb4._0x88de41) || _0x1b09e1[_0x2dafb6(_0x16dbb4._0x314d26)] !== _0x2dd017[_0x2dafb6(0x24f)])
|
|
1049
|
-
return ![];
|
|
1050
|
-
if (_0x2dd017['threadNumber'] != null && _0x1b09e1[_0x2dafb6(_0x16dbb4._0x27a927)] === 't' + _0x2dd017[_0x2dafb6(0x26a)])
|
|
1051
|
-
return !![];
|
|
1052
|
-
if (_0x2dd017[_0x2dafb6(0x2ab)])
|
|
1053
|
-
return _0x1b09e1['threadShortId'] === _0x2dd017[_0x2dafb6(0x2ab)] || _0x2dd017[_0x2dafb6(_0x16dbb4._0x2e60c8)][_0x2dafb6(0x228)](_0x1b09e1[_0x2dafb6(0x1ed)]);
|
|
1054
|
-
if (_0x2dd017[_0x2dafb6(_0x16dbb4._0x157a0b)])
|
|
1055
|
-
return _0x1b09e1['threadShortId'] === _0x2dd017[_0x2dafb6(0x1d8)] || _0x2dd017[_0x2dafb6(0x1d8)][_0x2dafb6(0x228)](_0x1b09e1['threadShortId']);
|
|
1056
|
-
return ![];
|
|
1057
|
-
} catch {
|
|
1058
|
-
return ![];
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
function _0x14aa05(_0x174945) {
|
|
1062
|
-
const _0x2d3e27 = _0x3c8627;
|
|
1063
|
-
return _0x174945[_0x2d3e27(_0x5c753f._0x27179c)]?.['participantId'] ?? _0x174945[_0x2d3e27(0x2ea)]?.['id'] ?? _0x174945['participantId'] ?? '';
|
|
1064
|
-
}
|
|
1065
|
-
function _0x4a086a(_0x572e61) {
|
|
1066
|
-
return _0x572e61['participant']?.['name'] ?? _0x14aa05(_0x572e61);
|
|
1067
|
-
}
|
|
1068
|
-
async function _0x6c5d9c(_0x28c37b) {
|
|
1069
|
-
const _0x539bd6 = _0x3c8627, _0x53faf6 = Math['min'](_0x28c37b[_0x539bd6(0x32f)] ?? 0x32, 0x64), _0x2cf01b = await _0x57c9e5(), _0x2efb45 = new URLSearchParams();
|
|
1070
|
-
_0x2efb45[_0x539bd6(_0x5bd2f6._0x5a4337)](_0x539bd6(0x32f), String(_0x53faf6));
|
|
1071
|
-
_0x28c37b[_0x539bd6(0x1d8)] ? (_0x2efb45[_0x539bd6(_0x5bd2f6._0x5a4337)](_0x539bd6(_0x5bd2f6._0x150fb1), _0x28c37b[_0x539bd6(0x1d8)]), _0x2efb45['set']('channelId', _0x28c37b[_0x539bd6(0x245)])) : _0x2efb45[_0x539bd6(0x2f5)]('channelId', _0x28c37b[_0x539bd6(_0x5bd2f6._0x5d72ef)]);
|
|
1072
|
-
_0x28c37b['before'] && _0x2efb45['set'](_0x539bd6(0x304), String(_0x28c37b[_0x539bd6(_0x5bd2f6._0x17db19)]));
|
|
1073
|
-
_0x28c37b[_0x539bd6(_0x5bd2f6._0x199f54)] !== void 0x0 && _0x2efb45[_0x539bd6(0x2f5)](_0x539bd6(_0x5bd2f6._0x2b8cc4), String(_0x28c37b[_0x539bd6(0x296)]));
|
|
1074
|
-
const _0x4ad6d0 = await _0x588864(_0x539bd6(_0x5bd2f6._0x575373) + _0x58bb63[_0x539bd6(0x2b5)] + _0x539bd6(_0x5bd2f6._0x1ab69b) + _0x2efb45[_0x539bd6(_0x5bd2f6._0x7fbf09)](), {
|
|
1075
|
-
'headers': _0x421244,
|
|
1076
|
-
'method': _0x539bd6(0x25d)
|
|
1077
|
-
}), _0x93d269 = (_0x4ad6d0[_0x539bd6(0x332)] ?? [])['map'](_0x557be0 => ({
|
|
1078
|
-
'attachments': (_0x557be0[_0x539bd6(0x2f7)] ?? [])[_0x539bd6(0x2c4)](_0x6461e2 => ({
|
|
1079
|
-
'filename': _0x6461e2[_0x539bd6(0x2cb)] ?? _0x6461e2['id'],
|
|
1080
|
-
'id': _0x6461e2['id']
|
|
1081
|
-
})),
|
|
1082
|
-
'content': _0x557be0['bodyMarkdown'] ?? '',
|
|
1083
|
-
'createdAt': _0x557be0['createdAt'],
|
|
1084
|
-
..._0x557be0['kind'] && _0x557be0['kind'] !== 'chat' ? { 'kind': _0x557be0[_0x539bd6(0x30f)] } : {},
|
|
1085
|
-
'messageId': _0x557be0['id'],
|
|
1086
|
-
'senderName': _0x557be0[_0x539bd6(0x259)],
|
|
1087
|
-
'senderType': _0x4f8d49(_0x557be0[_0x539bd6(0x259)], _0x2cf01b),
|
|
1088
|
-
'seq': _0x557be0[_0x539bd6(0x251)] ?? 0x0
|
|
1089
|
-
}));
|
|
1090
|
-
return {
|
|
1091
|
-
'channel': _0x28c37b[_0x539bd6(_0x5bd2f6._0x14f31b)],
|
|
1092
|
-
'hasMore': _0x4ad6d0[_0x539bd6(0x1b6)]?.[_0x539bd6(0x31a)] ?? ![],
|
|
1093
|
-
'messages': _0x93d269,
|
|
1094
|
-
'nextCursor': _0x4ad6d0[_0x539bd6(0x1b6)]?.[_0x539bd6(0x304)]
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
return {
|
|
1098
|
-
async 'sendMessage'(_0x4bd821) {
|
|
1099
|
-
const _0x56337c = _0x3c8627, _0x1f1870 = await _0x24f23c(_0x4bd821[_0x56337c(_0x28c57c._0x49458a)]), _0x41cf70 = _0x4bd821[_0x56337c(_0x28c57c._0x1907b7)][_0x56337c(_0x28c57c._0x11ef6b)]('@') ? extractMentionedParticipantIds(_0x4bd821[_0x56337c(_0x28c57c._0x1907b7)], await _0x57c9e5()) : [], _0x20dddd = await _0x588864(_0x56337c(_0x28c57c._0xc4924e) + _0x58bb63[_0x56337c(_0x28c57c._0x2c6266)] + _0x56337c(0x1cc), {
|
|
1100
|
-
'body': JSON[_0x56337c(_0x28c57c._0x414c47)]({
|
|
1101
|
-
'attachment_ids': _0x4bd821[_0x56337c(0x249)],
|
|
1102
|
-
'bodyMarkdown': _0x4bd821['content'],
|
|
1103
|
-
'channelId': _0x1f1870[_0x56337c(0x245)],
|
|
1104
|
-
..._0x41cf70['length'] > 0x0 ? { 'mentionedParticipantIds': _0x41cf70 } : {},
|
|
1105
|
-
'threadId': _0x1f1870[_0x56337c(_0x28c57c._0x5b6fa8)],
|
|
1106
|
-
..._0x4bd821[_0x56337c(_0x28c57c._0x201588)] ? { 'visibility': _0x4bd821[_0x56337c(_0x28c57c._0x201588)] } : {}
|
|
1107
|
-
}),
|
|
1108
|
-
'headers': _0x421244,
|
|
1109
|
-
'method': 'POST'
|
|
1110
|
-
});
|
|
1111
|
-
return { 'messageId': _0x20dddd['data']?.['id'] ?? '' };
|
|
1112
|
-
},
|
|
1113
|
-
async 'listSchedules'() {
|
|
1114
|
-
const _0x63528e = _0x3c8627, _0x5bc5e5 = await _0x588864(_0x63528e(_0x14c8c9._0x43bd39), {
|
|
1115
|
-
'headers': _0x421244,
|
|
1116
|
-
'method': _0x63528e(0x25d)
|
|
1117
|
-
});
|
|
1118
|
-
return _0x5bc5e5[_0x63528e(0x332)] ?? [];
|
|
1119
|
-
},
|
|
1120
|
-
async 'claimScheduleRun'(_0x4c68c6) {
|
|
1121
|
-
const _0x274a9b = _0x3c8627, _0x226cca = await _0x588864('/api/internal/schedules/claim', {
|
|
1122
|
-
'body': JSON[_0x274a9b(_0x5767f2._0x1c61fa)](_0x4c68c6),
|
|
1123
|
-
'headers': _0x421244,
|
|
1124
|
-
'method': _0x274a9b(_0x5767f2._0x5affba)
|
|
1125
|
-
});
|
|
1126
|
-
return _0x226cca[_0x274a9b(_0x5767f2._0x3ff88f)] ?? {
|
|
1127
|
-
'granted': ![],
|
|
1128
|
-
'runId': null,
|
|
1129
|
-
'schedule': null,
|
|
1130
|
-
'scheduledFor': _0x4c68c6[_0x274a9b(_0x5767f2._0x1d5125)]
|
|
1131
|
-
};
|
|
1132
|
-
},
|
|
1133
|
-
async 'startScheduleRun'(_0x19ac62) {
|
|
1134
|
-
const _0x6101d2 = _0x3c8627, _0x242e39 = await _0x588864(_0x6101d2(0x30d) + encodeURIComponent(_0x19ac62[_0x6101d2(_0x4d20a4._0x5afa84)]) + _0x6101d2(0x1ca), {
|
|
1135
|
-
'body': JSON[_0x6101d2(_0x4d20a4._0x42271a)]({}),
|
|
1136
|
-
'headers': _0x421244,
|
|
1137
|
-
'method': _0x6101d2(_0x4d20a4._0x4ccd43)
|
|
1138
|
-
});
|
|
1139
|
-
return _0x242e39['data'] ?? {
|
|
1140
|
-
'claimedByDaemonId': '',
|
|
1141
|
-
'id': _0x19ac62['runId'],
|
|
1142
|
-
'scheduleId': '',
|
|
1143
|
-
'status': _0x6101d2(_0x4d20a4._0x90f555)
|
|
1144
|
-
};
|
|
1145
|
-
},
|
|
1146
|
-
async 'finishScheduleRun'(_0x5a060d) {
|
|
1147
|
-
const _0x300179 = _0x3c8627, _0x3e441c = await _0x588864(_0x300179(_0x447f64._0x376263) + encodeURIComponent(_0x5a060d[_0x300179(_0x447f64._0x9cd6b4)]) + _0x300179(_0x447f64._0x2195a8), {
|
|
1148
|
-
'body': JSON[_0x300179(_0x447f64._0x477efc)]({
|
|
1149
|
-
'error': _0x5a060d[_0x300179(0x23c)],
|
|
1150
|
-
'resultJson': _0x5a060d[_0x300179(0x1ab)],
|
|
1151
|
-
'status': _0x5a060d[_0x300179(_0x447f64._0x2eba75)]
|
|
1152
|
-
}),
|
|
1153
|
-
'headers': _0x421244,
|
|
1154
|
-
'method': _0x300179(_0x447f64._0x19d346)
|
|
1155
|
-
});
|
|
1156
|
-
return _0x3e441c[_0x300179(_0x447f64._0x3d8ab1)] ?? {
|
|
1157
|
-
'nextRunAt': null,
|
|
1158
|
-
'run': {
|
|
1159
|
-
'claimedByDaemonId': '',
|
|
1160
|
-
'id': _0x5a060d[_0x300179(_0x447f64._0x9cd6b4)],
|
|
1161
|
-
'scheduleId': '',
|
|
1162
|
-
'status': _0x5a060d['status']
|
|
1163
|
-
}
|
|
1164
|
-
};
|
|
1165
|
-
},
|
|
1166
|
-
async 'listTasks'(_0xfd5ad1) {
|
|
1167
|
-
const _0x253405 = _0x3c8627, _0x2cb7c6 = new URLSearchParams();
|
|
1168
|
-
return _0x2cb7c6[_0x253405(_0x1bb01d._0x4f1d97)](_0x253405(_0x1bb01d._0x1f11c3), _0xfd5ad1[_0x253405(_0x1bb01d._0x1f11c3)]), _0xfd5ad1[_0x253405(_0x1bb01d._0x1fcbba)] && _0x2cb7c6[_0x253405(_0x1bb01d._0x4f1d97)](_0x253405(0x281), _0xfd5ad1[_0x253405(0x281)]), _0x509799(_0x253405(0x1c8) + _0x58bb63[_0x253405(0x2b5)] + _0x253405(0x220) + _0x2cb7c6[_0x253405(_0x1bb01d._0x15005b)](), {
|
|
1169
|
-
'headers': _0x421244,
|
|
1170
|
-
'method': 'GET'
|
|
1171
|
-
});
|
|
1172
|
-
},
|
|
1173
|
-
async 'createTasks'(_0x543f7a) {
|
|
1174
|
-
const _0xe93f2a = _0x3c8627;
|
|
1175
|
-
return _0x509799('/internal/agent/' + _0x58bb63[_0xe93f2a(_0x907907._0x29bdfc)] + _0xe93f2a(_0x907907._0x15bf9e), {
|
|
1176
|
-
'body': JSON['stringify']({
|
|
1177
|
-
..._0x543f7a,
|
|
1178
|
-
'idempotency_key': _0x9d512a('create_tasks', _0x543f7a)
|
|
1179
|
-
}),
|
|
1180
|
-
'headers': _0x421244,
|
|
1181
|
-
'method': _0xe93f2a(0x2e1)
|
|
1182
|
-
});
|
|
1183
|
-
},
|
|
1184
|
-
async 'claimTasks'(_0x47dbd8) {
|
|
1185
|
-
const _0x585634 = _0x3c8627;
|
|
1186
|
-
return _0x509799(_0x585634(_0xb1d01b._0x527b4a) + _0x58bb63[_0x585634(0x2b5)] + _0x585634(0x1fa), {
|
|
1187
|
-
'body': JSON[_0x585634(_0xb1d01b._0x49513c)]({
|
|
1188
|
-
..._0x47dbd8,
|
|
1189
|
-
'idempotency_key': _0x9d512a(_0x585634(0x226), _0x47dbd8)
|
|
1190
|
-
}),
|
|
1191
|
-
'headers': _0x421244,
|
|
1192
|
-
'method': _0x585634(0x2e1)
|
|
1193
|
-
});
|
|
1194
|
-
},
|
|
1195
|
-
async 'unclaimTask'(_0x53703c) {
|
|
1196
|
-
const _0x15d8a1 = _0x3c8627;
|
|
1197
|
-
return _0x509799(_0x15d8a1(_0x1b12e3._0x5dd8d1) + _0x58bb63[_0x15d8a1(_0x1b12e3._0x419c0f)] + _0x15d8a1(_0x1b12e3._0x2bc9e3), {
|
|
1198
|
-
'body': JSON[_0x15d8a1(_0x1b12e3._0x5be6bf)]({
|
|
1199
|
-
..._0x53703c,
|
|
1200
|
-
'idempotency_key': _0x9d512a(_0x15d8a1(0x273), _0x53703c)
|
|
1201
|
-
}),
|
|
1202
|
-
'headers': _0x421244,
|
|
1203
|
-
'method': _0x15d8a1(0x2e1)
|
|
1204
|
-
});
|
|
1205
|
-
},
|
|
1206
|
-
async 'updateTaskStatus'(_0x5d3ada) {
|
|
1207
|
-
const _0x38df19 = _0x3c8627;
|
|
1208
|
-
return _0x509799(_0x38df19(0x1c8) + _0x58bb63[_0x38df19(0x2b5)] + _0x38df19(_0x1fa51d._0x4d9086), {
|
|
1209
|
-
'body': JSON[_0x38df19(_0x1fa51d._0x27ea52)]({
|
|
1210
|
-
..._0x5d3ada,
|
|
1211
|
-
'idempotency_key': _0x9d512a(_0x38df19(0x1af), _0x5d3ada)
|
|
1212
|
-
}),
|
|
1213
|
-
'headers': _0x421244,
|
|
1214
|
-
'method': _0x38df19(_0x1fa51d._0x14075f)
|
|
1215
|
-
});
|
|
1216
|
-
},
|
|
1217
|
-
async 'uploadFile'(_0x4edf6a) {
|
|
1218
|
-
const _0x4760d8 = _0x3c8627, _0x390471 = await _0x24f23c(_0x4edf6a[_0x4760d8(_0x2b7994._0x30c73c)]);
|
|
1219
|
-
if (_0x390471[_0x4760d8(0x1d8)])
|
|
1220
|
-
throw new Error(_0x4760d8(0x28c));
|
|
1221
|
-
const _0x4e783b = await _0x588864(_0x4760d8(_0x2b7994._0x3f2632) + _0x58bb63[_0x4760d8(0x2b5)] + '/upload', {
|
|
1222
|
-
'body': JSON[_0x4760d8(0x1f9)]({
|
|
1223
|
-
'channel': _0x390471[_0x4760d8(0x327)],
|
|
1224
|
-
'contentBase64': _0x4edf6a[_0x4760d8(_0x2b7994._0x4564c2)],
|
|
1225
|
-
'contentType': _0x4edf6a[_0x4760d8(0x234)],
|
|
1226
|
-
'originalFilename': _0x4edf6a['filename']
|
|
1227
|
-
}),
|
|
1228
|
-
'headers': _0x421244,
|
|
1229
|
-
'method': _0x4760d8(_0x2b7994._0x16b018)
|
|
1230
|
-
});
|
|
1231
|
-
return {
|
|
1232
|
-
'attachmentId': _0x4e783b['data']?.['id'] ?? '',
|
|
1233
|
-
'filename': _0x4e783b[_0x4760d8(_0x2b7994._0x367551)]?.['originalFilename'] ?? _0x4edf6a['filename'],
|
|
1234
|
-
'sizeBytes': _0x4e783b[_0x4760d8(0x332)]?.['sizeBytes'] ?? 0x0
|
|
1235
|
-
};
|
|
1236
|
-
},
|
|
1237
|
-
async 'downloadAttachment'(_0x5e00ef) {
|
|
1238
|
-
const _0x51e37a = _0x3c8627, _0xb70d48 = await _0x588864('/api/attachments/' + _0x5e00ef, {
|
|
1239
|
-
'headers': _0x421244,
|
|
1240
|
-
'method': _0x51e37a(0x25d)
|
|
1241
|
-
}), _0x3bef7d = new AbortController(), _0x3ba40e = setTimeout(() => _0x3bef7d[_0x51e37a(0x2e4)](), _0x2be008);
|
|
1242
|
-
try {
|
|
1243
|
-
const _0x5e06ef = await _0x37ea3e(_0x3d0438 + _0x51e37a(0x23e) + _0x5e00ef + '/content', {
|
|
1244
|
-
'headers': _0x421244,
|
|
1245
|
-
'method': 'GET',
|
|
1246
|
-
'signal': _0x3bef7d[_0x51e37a(0x2e5)]
|
|
1247
|
-
});
|
|
1248
|
-
if (!_0x5e06ef['ok'])
|
|
1249
|
-
throw new Error(_0x51e37a(_0x40bf93._0xbf9558) + _0x5e06ef['status']);
|
|
1250
|
-
return {
|
|
1251
|
-
'contentType': _0xb70d48['data']?.[_0x51e37a(_0x40bf93._0x464cfb)] ?? _0x5e06ef['headers'][_0x51e37a(_0x40bf93._0x2a6777)](_0x51e37a(0x2b8)) ?? _0x51e37a(0x263),
|
|
1252
|
-
'data': Buffer[_0x51e37a(0x201)](await _0x5e06ef[_0x51e37a(_0x40bf93._0x2730a6)]()),
|
|
1253
|
-
'originalFilename': _0xb70d48[_0x51e37a(0x332)]?.[_0x51e37a(_0x40bf93._0x1b1e4d)]
|
|
1254
|
-
};
|
|
1255
|
-
} finally {
|
|
1256
|
-
clearTimeout(_0x3ba40e);
|
|
1257
|
-
}
|
|
1258
|
-
},
|
|
1259
|
-
async 'listServer'() {
|
|
1260
|
-
return _0x57c9e5({ 'forceRefresh': !![] });
|
|
1261
|
-
},
|
|
1262
|
-
async 'readHistory'(_0x5c5475) {
|
|
1263
|
-
const _0x16914c = _0x3c8627, _0x427233 = await _0x24f23c(_0x5c5475[_0x16914c(0x1ee)]);
|
|
1264
|
-
return _0x6c5d9c({
|
|
1265
|
-
'after': _0x5c5475[_0x16914c(_0x263f0a._0x3510b3)],
|
|
1266
|
-
'before': _0x5c5475[_0x16914c(0x2a1)],
|
|
1267
|
-
'channelId': _0x427233['channelId'],
|
|
1268
|
-
'channelTarget': _0x427233['target'],
|
|
1269
|
-
'limit': _0x5c5475[_0x16914c(0x32f)],
|
|
1270
|
-
'threadId': _0x427233[_0x16914c(_0x263f0a._0xe4cb5a)]
|
|
1271
|
-
});
|
|
1272
|
-
},
|
|
1273
|
-
'resolveTarget': _0x24f23c,
|
|
1274
|
-
async 'checkMessages'() {
|
|
1275
|
-
const _0x557e19 = _0x3c8627, _0x381d4e = new URLSearchParams();
|
|
1276
|
-
_0x381d4e['set'](_0x557e19(0x1dd), String(_0x107c50));
|
|
1277
|
-
const _0x82a0cf = _0x381d4e[_0x557e19(0x1d5)](), _0x1ea653 = await _0x588864('/internal/agent/' + _0x58bb63[_0x557e19(0x2b5)] + '/receive' + (_0x82a0cf ? '?' + _0x82a0cf : ''), {
|
|
1278
|
-
'headers': _0x421244,
|
|
1279
|
-
'method': _0x557e19(0x25d)
|
|
1280
|
-
}), _0x255a6c = _0x1ea653['data'] ?? [], _0x2f857d = _0x1ea653['meta']?.[_0x557e19(_0x4c5cea._0x11fa28)], _0xe62f67 = _0x2f857d !== void 0x0 ? Math['max'](_0x107c50, _0x2f857d) : _0x255a6c['length'] > 0x0 ? Math['max'](_0x107c50, _0x255a6c[_0x255a6c[_0x557e19(_0x4c5cea._0x5f1eff)] - 0x1][_0x557e19(_0x4c5cea._0x534b0e)]) : _0x107c50, _0x46e2d4 = _0x255a6c[_0x557e19(_0x4c5cea._0x42a407)](_0x34ef43 => _0x34ef43[_0x557e19(0x32e)] === _0x557e19(0x30c)), _0x4b5652 = _0x2fe640 === void 0x0 && _0x2436e5;
|
|
1281
|
-
let _0xd24cbc = await _0x57c9e5(), _0x56d3f7 = new Map(_0xd24cbc[_0x557e19(_0x4c5cea._0x49d6ce)][_0x557e19(0x2c4)](_0x1654dd => [
|
|
1282
|
-
_0x1654dd['id'],
|
|
1283
|
-
_0x1654dd
|
|
1284
|
-
]));
|
|
1285
|
-
const _0x35659e = _0x46e2d4[_0x557e19(0x26d)](_0x3bb48c => {
|
|
1286
|
-
const _0x3e2b21 = _0x557e19, _0x426a77 = asRecord(_0x3bb48c['payloadJson']), _0x4d2a1c = typeof _0x426a77?.[_0x3e2b21(0x245)] === _0x3e2b21(_0x5e0fa5._0x374667) ? _0x426a77[_0x3e2b21(_0x5e0fa5._0x3e7b53)] : '';
|
|
1287
|
-
return Boolean(_0x4d2a1c) && !_0x56d3f7[_0x3e2b21(_0x5e0fa5._0xbef4b8)](_0x4d2a1c);
|
|
1288
|
-
});
|
|
1289
|
-
_0x35659e && (_0xd24cbc = await _0x57c9e5({ 'forceRefresh': !![] }), _0x56d3f7 = new Map(_0xd24cbc[_0x557e19(_0x4c5cea._0xf8dd7d)][_0x557e19(0x2c4)](_0x5476c7 => [
|
|
1290
|
-
_0x5476c7['id'],
|
|
1291
|
-
_0x5476c7
|
|
1292
|
-
])));
|
|
1293
|
-
const _0x151d52 = new Map();
|
|
1294
|
-
for (const _0x26d468 of _0x46e2d4) {
|
|
1295
|
-
const _0xe73d8c = asRecord(_0x26d468[_0x557e19(0x324)]), _0x182f29 = typeof _0xe73d8c[_0x557e19(0x245)] === _0x557e19(0x2c5) ? _0xe73d8c['channelId'] : '';
|
|
1296
|
-
if (!_0x182f29)
|
|
1297
|
-
continue;
|
|
1298
|
-
const _0x4a6490 = typeof _0xe73d8c[_0x557e19(_0x4c5cea._0x3d04a1)] === _0x557e19(0x2c5) ? _0xe73d8c['threadId'] : void 0x0, _0x488a5f = typeof _0xe73d8c[_0x557e19(0x2ab)] === 'string' ? _0xe73d8c['rootMessageId'] : void 0x0, _0x23df7a = typeof _0xe73d8c['threadNumber'] === _0x557e19(0x1e5) && Number[_0x557e19(_0x4c5cea._0x284c82)](_0xe73d8c['threadNumber']) ? _0xe73d8c[_0x557e19(0x26a)] : void 0x0, _0x455b67 = Boolean(_0x4a6490 && (!_0x488a5f || _0x26d468[_0x557e19(0x2ba)] !== _0x488a5f)), _0x38b430 = _0x455b67 ? _0x182f29 + ':' + _0x4a6490 : _0x182f29, _0xbfd728 = _0x151d52[_0x557e19(_0x4c5cea._0xd7cf40)](_0x38b430) ?? {
|
|
1299
|
-
'aggregateIds': [],
|
|
1300
|
-
'channelId': _0x182f29,
|
|
1301
|
-
'entries': new Map(),
|
|
1302
|
-
'isThreadReply': _0x455b67,
|
|
1303
|
-
'rootMessageId': _0x488a5f,
|
|
1304
|
-
'threadNumber': _0x23df7a,
|
|
1305
|
-
'threadId': _0x455b67 ? _0x4a6490 : void 0x0
|
|
1306
|
-
};
|
|
1307
|
-
_0xbfd728[_0x557e19(_0x4c5cea._0x49987a)] == null && _0x23df7a != null && (_0xbfd728[_0x557e19(_0x4c5cea._0x49987a)] = _0x23df7a), !_0xbfd728['rootMessageId'] && _0x488a5f && (_0xbfd728[_0x557e19(_0x4c5cea._0x428bc4)] = _0x488a5f), _0xbfd728[_0x557e19(_0x4c5cea._0x449b6d)][_0x557e19(_0x4c5cea._0x3aed21)](_0x26d468[_0x557e19(0x2ba)]), _0xbfd728[_0x557e19(0x212)][_0x557e19(_0x4c5cea._0x3b3d9f)](_0x26d468[_0x557e19(0x2ba)], {
|
|
1308
|
-
'payloadJson': _0x26d468[_0x557e19(_0x4c5cea._0x1d0679)],
|
|
1309
|
-
'seq': _0x26d468[_0x557e19(_0x4c5cea._0x4c255a)]
|
|
1310
|
-
}), _0x151d52[_0x557e19(0x2f5)](_0x38b430, _0xbfd728);
|
|
1311
|
-
}
|
|
1312
|
-
const _0x27cc37 = [];
|
|
1313
|
-
for (const _0x8f2b26 of _0x151d52[_0x557e19(0x2e9)]()) {
|
|
1314
|
-
const {
|
|
1315
|
-
channelId: _0x52abde,
|
|
1316
|
-
threadId: _0x19be6b,
|
|
1317
|
-
rootMessageId: _0x143ee0,
|
|
1318
|
-
threadNumber: _0x7f6dbf,
|
|
1319
|
-
aggregateIds: _0x3d5322,
|
|
1320
|
-
isThreadReply: _0x566d84,
|
|
1321
|
-
entries: _0x31ca06
|
|
1322
|
-
} = _0x8f2b26, _0x119f13 = _0x56d3f7[_0x557e19(0x2ef)](_0x52abde), _0x11507f = _0x119f13?.['name'] ?? _0x52abde, _0x66b88a = _0x119f13?.[_0x557e19(0x30f)] === 'dm' ? 'dm:' + _0x11507f : '#' + _0x11507f, _0xd7c0c2 = {
|
|
1323
|
-
'channelTarget': _0x66b88a,
|
|
1324
|
-
'rootMessageId': _0x143ee0,
|
|
1325
|
-
'threadId': _0x19be6b,
|
|
1326
|
-
'threadNumber': _0x7f6dbf
|
|
1327
|
-
}, _0x49c900 = await _0x6c5d9c({
|
|
1328
|
-
'channelId': _0x52abde,
|
|
1329
|
-
'channelTarget': _0x66b88a,
|
|
1330
|
-
'limit': Math[_0x557e19(0x289)](_0x3d5322[_0x557e19(_0x4c5cea._0x45d946)], 0x32),
|
|
1331
|
-
'threadId': _0x19be6b
|
|
1332
|
-
}), _0x211d79 = new Map(_0x49c900['messages'][_0x557e19(0x2c4)](_0x55180e => [
|
|
1333
|
-
_0x55180e['messageId'],
|
|
1334
|
-
_0x55180e
|
|
1335
|
-
])), _0x53e9f4 = _0x19be6b ? _0x273150(_0xd7c0c2) : _0x66b88a, _0x257d31 = _0x2fe640 ? _0x566d84 && _0x506440(_0x2fe640, _0xd7c0c2) : !![], _0x486596 = _0x566d84 ? _0x257d31 && _0x2fe640 ? _0x2fe640 : _0x53e9f4 : _0x66b88a;
|
|
1336
|
-
for (const _0x3dd4c9 of _0x3d5322) {
|
|
1337
|
-
if (!_0x257d31)
|
|
1338
|
-
continue;
|
|
1339
|
-
const _0x268132 = _0x31ca06[_0x557e19(_0x4c5cea._0x1ab6b0)](_0x3dd4c9), _0x2f9c21 = _0x268132 ? asRecord(_0x268132['payloadJson']) : void 0x0, _0x1ceb17 = _0x2f9c21?.['taskDeliveryMode'] === _0x557e19(_0x4c5cea._0x5d5850);
|
|
1340
|
-
if (_0x4b5652 && _0x1ceb17)
|
|
1341
|
-
continue;
|
|
1342
|
-
const _0x47d11e = _0x211d79[_0x557e19(_0x4c5cea._0x1ab6b0)](_0x3dd4c9);
|
|
1343
|
-
if (_0x47d11e) {
|
|
1344
|
-
_0x27cc37[_0x557e19(0x1f8)]({
|
|
1345
|
-
'attachments': _0x47d11e[_0x557e19(_0x4c5cea._0x4ad5de)],
|
|
1346
|
-
'content': _0x47d11e['content'],
|
|
1347
|
-
'createdAt': _0x47d11e[_0x557e19(_0x4c5cea._0x5b6d1a)],
|
|
1348
|
-
..._0x47d11e[_0x557e19(_0x4c5cea._0x2b65f2)] ? { 'kind': _0x47d11e[_0x557e19(0x30f)] } : {},
|
|
1349
|
-
'messageId': _0x47d11e[_0x557e19(_0x4c5cea._0x151a98)],
|
|
1350
|
-
'senderName': _0x47d11e[_0x557e19(_0x4c5cea._0x5b11af)],
|
|
1351
|
-
'senderType': _0x47d11e[_0x557e19(0x1da)],
|
|
1352
|
-
'target': _0x486596,
|
|
1353
|
-
..._0x1ceb17 ? { 'targetedTask': !![] } : {}
|
|
1354
|
-
});
|
|
1355
|
-
continue;
|
|
1356
|
-
}
|
|
1357
|
-
if (_0x268132) {
|
|
1358
|
-
const _0x419894 = typeof _0x2f9c21?.['senderParticipantId'] === _0x557e19(0x2c5) ? _0x2f9c21[_0x557e19(0x259)] : '', _0x58c88c = typeof _0x2f9c21?.[_0x557e19(0x240)] === _0x557e19(_0x4c5cea._0x142f32) ? _0x2f9c21[_0x557e19(0x240)] : '', _0x42ec95 = typeof _0x2f9c21?.[_0x557e19(0x30f)] === _0x557e19(_0x4c5cea._0x142f32) && _0x2f9c21[_0x557e19(_0x4c5cea._0x242253)] !== _0x557e19(_0x4c5cea._0xe38586) ? _0x2f9c21['kind'] : void 0x0;
|
|
1359
|
-
_0x419894 && _0x58c88c && _0x27cc37[_0x557e19(_0x4c5cea._0x3aed21)]({
|
|
1360
|
-
'attachments': [],
|
|
1361
|
-
'content': _0x58c88c,
|
|
1362
|
-
'createdAt': new Date()['toISOString'](),
|
|
1363
|
-
..._0x42ec95 ? { 'kind': _0x42ec95 } : {},
|
|
1364
|
-
'messageId': _0x3dd4c9,
|
|
1365
|
-
'senderName': _0x419894,
|
|
1366
|
-
'senderType': _0x4f8d49(_0x419894, _0xd24cbc),
|
|
1367
|
-
'target': _0x486596,
|
|
1368
|
-
..._0x1ceb17 ? { 'targetedTask': !![] } : {}
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1558
|
+
function _0x1f42(_0x57f1e5, _0x189017) {
|
|
1559
|
+
_0x57f1e5 = _0x57f1e5 - 0x6f;
|
|
1560
|
+
const _0x276a1d = _0x276a();
|
|
1561
|
+
let _0x1f427c = _0x276a1d[_0x57f1e5];
|
|
1562
|
+
if (_0x1f42['EHuTGu'] === undefined) {
|
|
1563
|
+
var _0x3cc2b9 = function (_0x369e6f) {
|
|
1564
|
+
const _0x3bd795 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1565
|
+
let _0x12ec89 = '', _0x338cde = '';
|
|
1566
|
+
for (let _0x477af2 = 0x0, _0x7aed28, _0x51b597, _0x559aaf = 0x0; _0x51b597 = _0x369e6f['charAt'](_0x559aaf++); ~_0x51b597 && (_0x7aed28 = _0x477af2 % 0x4 ? _0x7aed28 * 0x40 + _0x51b597 : _0x51b597, _0x477af2++ % 0x4) ? _0x12ec89 += String['fromCharCode'](0xff & _0x7aed28 >> (-0x2 * _0x477af2 & 0x6)) : 0x0) {
|
|
1567
|
+
_0x51b597 = _0x3bd795['indexOf'](_0x51b597);
|
|
1372
1568
|
}
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
await _0x4eb18d(_0xe62f67);
|
|
1376
|
-
else
|
|
1377
|
-
_0x5c9be4 && await _0x4b057a(_0xe62f67);
|
|
1378
|
-
}
|
|
1379
|
-
return _0xe62f67 > _0x107c50 && (_0x107c50 = _0xe62f67), { 'messages': _0x2fe640 ? _0x27cc37 : _0x4b5652 ? _0x27cc37['filter'](_0x288fbf => _0x288fbf['targetedTask'] !== !![]) : _0x27cc37 };
|
|
1380
|
-
}
|
|
1381
|
-
};
|
|
1382
|
-
}
|
|
1383
|
-
function toLocalTime(_0x4564a3) {
|
|
1384
|
-
const _0x2dc7e3 = {
|
|
1385
|
-
_0x2e142b: 0x2e6,
|
|
1386
|
-
_0x55c514: 0x1a9
|
|
1387
|
-
}, _0x3c4b93 = _0x54fce, _0x401b9d = new Date(_0x4564a3);
|
|
1388
|
-
if (Number[_0x3c4b93(0x229)](_0x401b9d[_0x3c4b93(0x20a)]()))
|
|
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)]());
|
|
1392
|
-
}
|
|
1393
|
-
function formatAttachmentSuffix(_0x44bfe4) {
|
|
1394
|
-
const _0x4e4cb4 = {
|
|
1395
|
-
_0x25229d: 0x278,
|
|
1396
|
-
_0x4f9091: 0x2c4,
|
|
1397
|
-
_0x319b27: 0x1f2
|
|
1398
|
-
}, _0x45373c = _0x54fce;
|
|
1399
|
-
if (!_0x44bfe4 || _0x44bfe4[_0x45373c(_0x4e4cb4._0x25229d)] === 0x0)
|
|
1400
|
-
return '';
|
|
1401
|
-
return '\x20[' + _0x44bfe4['length'] + _0x45373c(0x2a2) + (_0x44bfe4[_0x45373c(0x278)] > 0x1 ? 's' : '') + ':\x20' + _0x44bfe4[_0x45373c(_0x4e4cb4._0x4f9091)](_0x5405c0 => _0x5405c0[_0x45373c(0x2cb)] + _0x45373c(0x2d9) + _0x5405c0['id'] + ')')[_0x45373c(_0x4e4cb4._0x319b27)](',\x20') + _0x45373c(0x319);
|
|
1402
|
-
}
|
|
1403
|
-
function formatCheckMessages(_0x5c28ea) {
|
|
1404
|
-
const _0x54b6aa = {
|
|
1405
|
-
_0x130726: 0x22f,
|
|
1406
|
-
_0x504dda: 0x1f2
|
|
1407
|
-
}, _0x536076 = {
|
|
1408
|
-
_0x106644: 0x1da,
|
|
1409
|
-
_0x10b993: 0x30f,
|
|
1410
|
-
_0x33fbc3: 0x30f,
|
|
1411
|
-
_0x456c68: 0x266,
|
|
1412
|
-
_0x4a24b9: 0x22d,
|
|
1413
|
-
_0xfe568d: 0x1ef,
|
|
1414
|
-
_0x148892: 0x2ee
|
|
1415
|
-
}, _0x2fb8ef = _0x54fce;
|
|
1416
|
-
if (_0x5c28ea[_0x2fb8ef(0x278)] === 0x0)
|
|
1417
|
-
return _0x2fb8ef(_0x54b6aa._0x130726);
|
|
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');
|
|
1422
|
-
}
|
|
1423
|
-
function formatHistory(_0x13fecb) {
|
|
1424
|
-
const _0x276120 = {
|
|
1425
|
-
_0x18d25d: 0x278,
|
|
1426
|
-
_0x40a2e9: 0x2cd,
|
|
1427
|
-
_0x1c612d: 0x2fd,
|
|
1428
|
-
_0x1d46d9: 0x1ee,
|
|
1429
|
-
_0x123cb7: 0x1e4
|
|
1430
|
-
}, _0x4e013d = {
|
|
1431
|
-
_0x13e4be: 0x1da,
|
|
1432
|
-
_0x17ac5a: 0x1fe,
|
|
1433
|
-
_0x3ca160: 0x266,
|
|
1434
|
-
_0x104d1c: 0x1cd,
|
|
1435
|
-
_0x3c8938: 0x31e,
|
|
1436
|
-
_0x1d9e9c: 0x29f
|
|
1437
|
-
}, _0x2ed055 = _0x54fce;
|
|
1438
|
-
if (_0x13fecb[_0x2ed055(0x1e4)][_0x2ed055(0x278)] === 0x0)
|
|
1439
|
-
return _0x2ed055(0x2fd) + _0x13fecb['channel'] + '\x20(0\x20messages)\x0a\x0aNo\x20messages\x20in\x20this\x20channel.';
|
|
1440
|
-
const _0x2631df = _0x13fecb[_0x2ed055(0x1e4)][_0x2ed055(0x2c4)](_0x256aa9 => {
|
|
1441
|
-
const _0x428982 = _0x2ed055, _0x4f1aa5 = _0x256aa9[_0x428982(_0x4e013d._0x13e4be)] === _0x428982(0x285) ? _0x428982(_0x4e013d._0x17ac5a) : '', _0x333a7a = _0x256aa9[_0x428982(0x30f)] && _0x256aa9[_0x428982(0x30f)] !== 'chat' ? _0x428982(_0x4e013d._0x3ca160) + _0x256aa9[_0x428982(0x30f)] : '';
|
|
1442
|
-
return '[seq=' + _0x256aa9['seq'] + '\x20msg=' + _0x256aa9[_0x428982(_0x4e013d._0x104d1c)] + _0x428982(0x252) + toLocalTime(_0x256aa9[_0x428982(0x204)]) + _0x4f1aa5 + _0x333a7a + ']\x20@' + _0x256aa9[_0x428982(_0x4e013d._0x3c8938)] + ':\x20' + _0x256aa9[_0x428982(_0x4e013d._0x1d9e9c)] + formatAttachmentSuffix(_0x256aa9['attachments']);
|
|
1443
|
-
})[_0x2ed055(0x1f2)]('\x0a'), _0x3acb0f = _0x13fecb[_0x2ed055(0x31a)] && _0x13fecb[_0x2ed055(0x330)] ? _0x2ed055(0x21b) + _0x13fecb[_0x2ed055(0x1e4)][_0x2ed055(_0x276120._0x18d25d)] + _0x2ed055(_0x276120._0x40a2e9) + _0x13fecb[_0x2ed055(0x330)] + _0x2ed055(0x1bd) : '';
|
|
1444
|
-
return _0x2ed055(_0x276120._0x1c612d) + _0x13fecb[_0x2ed055(_0x276120._0x1d46d9)] + '\x20(' + _0x13fecb[_0x2ed055(_0x276120._0x123cb7)][_0x2ed055(0x278)] + _0x2ed055(0x25e) + _0x2631df + _0x3acb0f;
|
|
1445
|
-
}
|
|
1446
|
-
function formatServerDirectory(_0x551daf) {
|
|
1447
|
-
const _0x5262b6 = {
|
|
1448
|
-
_0x4146b1: 0x262,
|
|
1449
|
-
_0x28b8ba: 0x278,
|
|
1450
|
-
_0x5da312: 0x262,
|
|
1451
|
-
_0x39907e: 0x2c4,
|
|
1452
|
-
_0x922456: 0x278,
|
|
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);
|
|
1457
|
-
return [
|
|
1458
|
-
_0x12bd4e(0x23a) + _0x551daf['serverName'],
|
|
1459
|
-
'',
|
|
1460
|
-
_0x12bd4e(0x1c1),
|
|
1461
|
-
_0x6d07b1,
|
|
1462
|
-
'',
|
|
1463
|
-
'###\x20Agents',
|
|
1464
|
-
_0x23e7a9,
|
|
1465
|
-
'',
|
|
1466
|
-
_0x12bd4e(_0x5262b6._0xf2343d),
|
|
1467
|
-
_0x301b6f
|
|
1468
|
-
]['join']('\x0a');
|
|
1469
|
-
}
|
|
1470
|
-
function formatUploadResult(_0x18c17b) {
|
|
1471
|
-
const _0x33806f = {
|
|
1472
|
-
_0x53b639: 0x1e3,
|
|
1473
|
-
_0x5c370c: 0x2ad
|
|
1474
|
-
}, _0x2c6f89 = _0x54fce;
|
|
1475
|
-
return 'File\x20uploaded:\x20' + _0x18c17b[_0x2c6f89(0x2cb)] + '\x20(' + (_0x18c17b[_0x2c6f89(_0x33806f._0x53b639)] / 0x400)[_0x2c6f89(0x2cf)](0x1) + _0x2c6f89(_0x33806f._0x5c370c) + _0x18c17b[_0x2c6f89(0x24c)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1476
|
-
}
|
|
1477
|
-
function formatViewFileResult(_0x4848c6, _0x28c521) {
|
|
1478
|
-
const _0x3dbdcc = _0x54fce;
|
|
1479
|
-
return _0x28c521 ? _0x3dbdcc(0x1a1) + _0x4848c6 : 'Downloaded\x20to:\x20' + _0x4848c6;
|
|
1480
|
-
}
|
|
1481
|
-
function formatTaskList(_0x302208, _0x168102) {
|
|
1482
|
-
const _0x5902ca = {
|
|
1483
|
-
_0x59652d: 0x2c4,
|
|
1484
|
-
_0x3e1d15: 0x1f2
|
|
1485
|
-
}, _0x4ee501 = {
|
|
1486
|
-
_0x1203e1: 0x247,
|
|
1487
|
-
_0x5af76e: 0x2de,
|
|
1488
|
-
_0x4c97d1: 0x1cd,
|
|
1489
|
-
_0x4bd0c9: 0x284,
|
|
1490
|
-
_0x5b9c33: 0x1cd,
|
|
1491
|
-
_0x205334: 0x1f4,
|
|
1492
|
-
_0x12dfaf: 0x299
|
|
1493
|
-
}, _0x16e039 = _0x54fce;
|
|
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');
|
|
1500
|
-
}
|
|
1501
|
-
function formatCreatedTasks(_0x51654e) {
|
|
1502
|
-
const _0x22de98 = {
|
|
1503
|
-
_0x57d355: 0x2c4,
|
|
1504
|
-
_0x5171c0: 0x1f2
|
|
1505
|
-
}, _0x350881 = {
|
|
1506
|
-
_0x451728: 0x247,
|
|
1507
|
-
_0x22d6ee: 0x2de,
|
|
1508
|
-
_0x51c011: 0x1cd
|
|
1509
|
-
}, _0x1cea7f = _0x54fce;
|
|
1510
|
-
if (_0x51654e['length'] === 0x0)
|
|
1511
|
-
return _0x1cea7f(0x2da);
|
|
1512
|
-
return _0x51654e[_0x1cea7f(_0x22de98._0x57d355)](_0xa663fa => {
|
|
1513
|
-
const _0x4cd471 = _0x1cea7f, _0x2be8fe = _0xa663fa['taskNumber'] == null ? '(legacy)' : _0xa663fa['subtaskNumber'] != null ? '#' + _0xa663fa[_0x4cd471(_0x350881._0x451728)] + '.' + _0xa663fa[_0x4cd471(_0x350881._0x22d6ee)] : '#' + _0xa663fa['taskNumber'], _0x352680 = _0xa663fa['messageId'] ? '\x20message=' + _0xa663fa[_0x4cd471(_0x350881._0x51c011)] : '';
|
|
1514
|
-
return _0x2be8fe + '\x20' + _0xa663fa[_0x4cd471(0x328)] + _0x352680;
|
|
1515
|
-
})[_0x1cea7f(_0x22de98._0x5171c0)]('\x0a');
|
|
1516
|
-
}
|
|
1517
|
-
function formatClaimTaskResults(_0x3c631f) {
|
|
1518
|
-
const _0x373757 = { _0x15f52e: 0x2c4 }, _0x200666 = {
|
|
1519
|
-
_0x4f2184: 0x247,
|
|
1520
|
-
_0x8d7e65: 0x1f1,
|
|
1521
|
-
_0x2e042b: 0x287,
|
|
1522
|
-
_0x2d0269: 0x280,
|
|
1523
|
-
_0x5b577e: 0x210,
|
|
1524
|
-
_0x122e1a: 0x23f,
|
|
1525
|
-
_0x53f1f5: 0x1e0,
|
|
1526
|
-
_0x376371: 0x1de,
|
|
1527
|
-
_0x5a7bea: 0x1e6,
|
|
1528
|
-
_0x2ec10b: 0x247,
|
|
1529
|
-
_0x4c2ca8: 0x219,
|
|
1530
|
-
_0x31ea0d: 0x2db,
|
|
1531
|
-
_0x1f3784: 0x28f
|
|
1532
|
-
}, _0x3e6388 = _0x54fce;
|
|
1533
|
-
if (_0x3c631f['length'] === 0x0)
|
|
1534
|
-
return 'No\x20tasks\x20claimed.';
|
|
1535
|
-
return _0x3c631f[_0x3e6388(_0x373757._0x15f52e)](_0x3da6b1 => {
|
|
1536
|
-
const _0x337076 = _0x3e6388;
|
|
1537
|
-
if (_0x3da6b1['success']) {
|
|
1538
|
-
const _0x4019ad = _0x3da6b1['taskNumber'] == null ? '(legacy)' : _0x3da6b1['subtaskNumber'] != null ? '#' + _0x3da6b1[_0x337076(_0x200666._0x4f2184)] + '.' + _0x3da6b1[_0x337076(0x2de)] : '#' + _0x3da6b1[_0x337076(_0x200666._0x4f2184)], _0x324e69 = _0x3da6b1['messageId'] ? _0x337076(0x284) + _0x3da6b1['messageId'] : '';
|
|
1539
|
-
if (_0x3da6b1[_0x337076(_0x200666._0x8d7e65)]) {
|
|
1540
|
-
const _0x320d62 = [
|
|
1541
|
-
_0x337076(_0x200666._0x2e042b),
|
|
1542
|
-
_0x3da6b1[_0x337076(_0x200666._0x2d0269)] ? _0x337076(_0x200666._0x5b577e) : null,
|
|
1543
|
-
_0x3da6b1[_0x337076(_0x200666._0x122e1a)] ? 'executionMode=' + _0x3da6b1[_0x337076(0x23f)] : null,
|
|
1544
|
-
_0x3da6b1['threadTarget'] ? 'threadTarget=' + _0x3da6b1[_0x337076(0x2fa)] : null,
|
|
1545
|
-
_0x3da6b1['workerDisposition'] ? _0x337076(_0x200666._0x53f1f5) + _0x3da6b1['workerDisposition'] : null
|
|
1546
|
-
][_0x337076(_0x200666._0x376371)](Boolean)['join']('\x20');
|
|
1547
|
-
return _0x4019ad + _0x337076(0x2f9) + _0x324e69 + '\x20' + _0x320d62 + _0x337076(0x1ba);
|
|
1569
|
+
for (let _0x3bc6e8 = 0x0, _0x5d0d7c = _0x12ec89['length']; _0x3bc6e8 < _0x5d0d7c; _0x3bc6e8++) {
|
|
1570
|
+
_0x338cde += '%' + ('00' + _0x12ec89['charCodeAt'](_0x3bc6e8)['toString'](0x10))['slice'](-0x2);
|
|
1548
1571
|
}
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}
|
|
1556
|
-
function formatUnclaimTaskResult(_0x138350) {
|
|
1557
|
-
const _0x7ac31c = {
|
|
1558
|
-
_0x15d91c: 0x2c1,
|
|
1559
|
-
_0x586282: 0x2de,
|
|
1560
|
-
_0x35b4bb: 0x2de,
|
|
1561
|
-
_0x4ac6f1: 0x1e2
|
|
1562
|
-
}, _0x44c8ec = _0x54fce, _0x9b22f5 = _0x138350[_0x44c8ec(0x247)] == null ? _0x44c8ec(_0x7ac31c._0x15d91c) : _0x138350[_0x44c8ec(_0x7ac31c._0x586282)] != null ? '#' + _0x138350[_0x44c8ec(0x247)] + '.' + _0x138350[_0x44c8ec(_0x7ac31c._0x35b4bb)] : '#' + _0x138350[_0x44c8ec(0x247)];
|
|
1563
|
-
return _0x9b22f5 + _0x44c8ec(_0x7ac31c._0x4ac6f1) + _0x138350['status'];
|
|
1564
|
-
}
|
|
1565
|
-
function formatUpdateTaskStatusResult(_0x33f0c9) {
|
|
1566
|
-
const _0x5581c4 = {
|
|
1567
|
-
_0x541a72: 0x2de,
|
|
1568
|
-
_0x2f2cb7: 0x247,
|
|
1569
|
-
_0x545174: 0x281
|
|
1570
|
-
}, _0x2c2b5c = _0x54fce, _0x5bd349 = _0x33f0c9['taskNumber'] == null ? _0x2c2b5c(0x2c1) : _0x33f0c9[_0x2c2b5c(_0x5581c4._0x541a72)] != null ? '#' + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x2f2cb7)] + '.' + _0x33f0c9['subtaskNumber'] : '#' + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x2f2cb7)];
|
|
1571
|
-
return _0x5bd349 + _0x2c2b5c(0x1e2) + _0x33f0c9[_0x2c2b5c(_0x5581c4._0x545174)];
|
|
1572
|
+
return decodeURIComponent(_0x338cde);
|
|
1573
|
+
};
|
|
1574
|
+
_0x1f42['CLRBud'] = _0x3cc2b9, _0x1f42['jXlVBu'] = {}, _0x1f42['EHuTGu'] = !![];
|
|
1575
|
+
}
|
|
1576
|
+
const _0x5d7bf7 = _0x276a1d[0x0], _0x2d8526 = _0x57f1e5 + _0x5d7bf7, _0x27b621 = _0x1f42['jXlVBu'][_0x2d8526];
|
|
1577
|
+
return !_0x27b621 ? (_0x1f427c = _0x1f42['CLRBud'](_0x1f427c), _0x1f42['jXlVBu'][_0x2d8526] = _0x1f427c) : _0x1f427c = _0x27b621, _0x1f427c;
|
|
1572
1578
|
}
|
|
1573
1579
|
function getChatBridgeToolDefinitions() {
|
|
1574
|
-
const
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
_0x5e300b: 0x1af,
|
|
1580
|
-
_0x453559: 0x2f0,
|
|
1581
|
-
_0x27972e: 0x1a2
|
|
1582
|
-
}, _0x4c52f2 = _0x54fce;
|
|
1580
|
+
const _0xbbda5c = {
|
|
1581
|
+
_0x477233: 0xfe,
|
|
1582
|
+
_0x18d935: 0x159,
|
|
1583
|
+
_0x4c1e9f: 0x1b5
|
|
1584
|
+
}, _0x30ccfd = _0x301d4a;
|
|
1583
1585
|
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':
|
|
1586
|
+
{ 'name': _0x30ccfd(_0xbbda5c._0x477233) },
|
|
1587
|
+
{ 'name': _0x30ccfd(0x1d7) },
|
|
1588
|
+
{ 'name': _0x30ccfd(_0xbbda5c._0x18d935) },
|
|
1589
|
+
{ 'name': _0x30ccfd(0xe8) },
|
|
1590
|
+
{ 'name': _0x30ccfd(0x12c) },
|
|
1591
|
+
{ 'name': _0x30ccfd(0xf7) },
|
|
1592
|
+
{ 'name': 'list_tasks' },
|
|
1593
|
+
{ 'name': _0x30ccfd(0x176) },
|
|
1594
|
+
{ 'name': _0x30ccfd(0x111) },
|
|
1595
|
+
{ 'name': _0x30ccfd(0x152) },
|
|
1596
|
+
{ 'name': _0x30ccfd(0x127) },
|
|
1597
|
+
{ 'name': 'get_worker_status' },
|
|
1598
|
+
{ 'name': _0x30ccfd(0x155) },
|
|
1599
|
+
{ 'name': _0x30ccfd(_0xbbda5c._0x4c1e9f) },
|
|
1600
|
+
{ 'name': 'escalate_to_main' },
|
|
1601
|
+
{ 'name': _0x30ccfd(0x84) }
|
|
1600
1602
|
];
|
|
1601
1603
|
}
|
|
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
|
-
|
|
1604
|
+
function createChatBridgeHandlers(_0x139f5c) {
|
|
1605
|
+
const _0x1175de = {
|
|
1606
|
+
_0x244eca: 0x13f,
|
|
1607
|
+
_0x3b1e7f: 0xc5,
|
|
1608
|
+
_0x22e1b4: 0x14b,
|
|
1609
|
+
_0x4b9f08: 0x100,
|
|
1610
|
+
_0xb93c1b: 0x19c,
|
|
1611
|
+
_0x595c23: 0x1d9
|
|
1612
|
+
}, _0x1d50c1 = {
|
|
1613
|
+
_0xf91d7d: 0xe9,
|
|
1614
|
+
_0x50abc7: 0xee,
|
|
1615
|
+
_0x49f7e1: 0x170,
|
|
1616
|
+
_0x429797: 0x150,
|
|
1617
|
+
_0x310a8f: 0x14b
|
|
1618
|
+
}, _0x5a3e8f = {
|
|
1619
|
+
_0x4a6f87: 0x1d1,
|
|
1620
|
+
_0x4ce81e: 0x13f,
|
|
1621
|
+
_0x1721ca: 0x147,
|
|
1622
|
+
_0x26d59a: 0x10b,
|
|
1623
|
+
_0x1dc43e: 0xad,
|
|
1624
|
+
_0x46c572: 0x7e,
|
|
1625
|
+
_0x3a0782: 0x150,
|
|
1626
|
+
_0x31c1e0: 0x148,
|
|
1627
|
+
_0x3f1675: 0x147
|
|
1628
|
+
}, _0x5ae287 = {
|
|
1629
|
+
_0x5a2b44: 0x1d1,
|
|
1630
|
+
_0x4b27df: 0x172,
|
|
1631
|
+
_0x5e3497: 0x1b3
|
|
1632
|
+
}, _0x210478 = {
|
|
1633
|
+
_0x316ec9: 0x1d1,
|
|
1634
|
+
_0x58b0b2: 0x14c,
|
|
1635
|
+
_0x523499: 0x14b,
|
|
1636
|
+
_0x300fea: 0x150,
|
|
1637
|
+
_0x16384c: 0x119
|
|
1638
|
+
}, _0x665e8b = {
|
|
1639
|
+
_0x65fc3d: 0x1ca,
|
|
1640
|
+
_0x1d492d: 0x1ca,
|
|
1641
|
+
_0x514cee: 0x19a,
|
|
1642
|
+
_0x16970c: 0x13b,
|
|
1643
|
+
_0x278570: 0xbe,
|
|
1644
|
+
_0x1abb18: 0x199
|
|
1645
|
+
}, _0x278735 = { _0x4ada1e: 0x88 }, _0x151f07 = { _0x48530c: 0x1e1 }, _0x24d5d0 = {
|
|
1646
|
+
_0x8d2e90: 0x10a,
|
|
1647
|
+
_0x1b5a32: 0xf3
|
|
1648
|
+
}, _0x53f938 = {
|
|
1649
|
+
_0x1bfa8f: 0x10a,
|
|
1650
|
+
_0x29b428: 0x111,
|
|
1651
|
+
_0x56effc: 0x88,
|
|
1652
|
+
_0x3a8570: 0xa9,
|
|
1653
|
+
_0x59c07d: 0x157,
|
|
1654
|
+
_0x2b5656: 0x82,
|
|
1655
|
+
_0x39044f: 0x1e1,
|
|
1656
|
+
_0x1b70d4: 0x137,
|
|
1657
|
+
_0x50a1ce: 0x114,
|
|
1658
|
+
_0x189393: 0x85
|
|
1659
|
+
}, _0xc4b255 = {
|
|
1660
|
+
_0x1fcf2b: 0xef,
|
|
1661
|
+
_0x581d74: 0x13d,
|
|
1662
|
+
_0x5a1e70: 0x16e,
|
|
1663
|
+
_0x288628: 0x1f2
|
|
1664
|
+
}, _0x504db0 = { _0x3dbcef: 0x1a1 }, _0x480f1f = {
|
|
1665
|
+
_0x338e60: 0x1e1,
|
|
1666
|
+
_0x3d3392: 0x191,
|
|
1667
|
+
_0x46b9ec: 0x104,
|
|
1668
|
+
_0x5ce13c: 0x77,
|
|
1669
|
+
_0x37b524: 0x165,
|
|
1670
|
+
_0x7ea4ed: 0x1f3,
|
|
1671
|
+
_0x5c574a: 0x12b,
|
|
1672
|
+
_0x33bf96: 0x13d,
|
|
1673
|
+
_0x48eb6e: 0x12b,
|
|
1674
|
+
_0x1ca14a: 0xb2
|
|
1675
|
+
}, _0x18e446 = {
|
|
1676
|
+
_0x430fc8: 0x1e1,
|
|
1677
|
+
_0x51e8e9: 0xe2
|
|
1678
|
+
}, _0x56687d = {
|
|
1679
|
+
_0x5a09d0: 0x1e1,
|
|
1680
|
+
_0x9baa0: 0x10a,
|
|
1681
|
+
_0x5c05f3: 0x134,
|
|
1682
|
+
_0x21280b: 0x1eb
|
|
1683
|
+
}, _0x541a21 = {
|
|
1684
|
+
_0x1fe0bb: 0x10a,
|
|
1685
|
+
_0x2b6132: 0xbb,
|
|
1686
|
+
_0x16694: 0x104,
|
|
1687
|
+
_0x2d6786: 0x9f,
|
|
1688
|
+
_0x41bdb2: 0xac,
|
|
1689
|
+
_0x20c296: 0x9a,
|
|
1690
|
+
_0x441c8e: 0x13d,
|
|
1691
|
+
_0xf12b9b: 0xb3,
|
|
1692
|
+
_0x1d7ea6: 0x8e,
|
|
1693
|
+
_0x117bb2: 0x131,
|
|
1694
|
+
_0x32d152: 0x12f,
|
|
1695
|
+
_0x115c9c: 0x1aa,
|
|
1696
|
+
_0x5f0aa9: 0x11d,
|
|
1697
|
+
_0xbfcb76: 0xc3,
|
|
1698
|
+
_0x2ab540: 0x1c2,
|
|
1699
|
+
_0xf5d3a3: 0x11e,
|
|
1700
|
+
_0x50284f: 0xb1,
|
|
1701
|
+
_0xd62ad2: 0x13f,
|
|
1702
|
+
_0xdcb6d7: 0x7b,
|
|
1703
|
+
_0x49fd97: 0x100,
|
|
1704
|
+
_0x4ec475: 0x1b7,
|
|
1705
|
+
_0x168273: 0x12e,
|
|
1706
|
+
_0x4a24b8: 0xc8,
|
|
1707
|
+
_0x5f03a3: 0x1d0,
|
|
1708
|
+
_0x53c092: 0x120,
|
|
1709
|
+
_0x56cb35: 0x75,
|
|
1710
|
+
_0x34422e: 0xac
|
|
1711
|
+
}, _0x119dd3 = {
|
|
1712
|
+
_0x1b6400: 0x9f,
|
|
1713
|
+
_0x2ee727: 0x7f,
|
|
1714
|
+
_0x1ae0ab: 0x1f5,
|
|
1715
|
+
_0x3f96: 0x8e,
|
|
1716
|
+
_0x5031ef: 0xa0,
|
|
1717
|
+
_0x2429d0: 0x102
|
|
1718
|
+
}, _0x50aac6 = {
|
|
1719
|
+
_0x4de4be: 0x10a,
|
|
1720
|
+
_0x31e232: 0x9f,
|
|
1721
|
+
_0x212c49: 0x77
|
|
1722
|
+
}, _0x11c22a = {
|
|
1723
|
+
_0x369c2b: 0x88,
|
|
1724
|
+
_0x3bb4a5: 0x189,
|
|
1725
|
+
_0x1d9cbb: 0xb3,
|
|
1726
|
+
_0x90d9b: 0xd8,
|
|
1727
|
+
_0x338597: 0x1e1,
|
|
1728
|
+
_0x7cb63a: 0x13d,
|
|
1729
|
+
_0x3993f9: 0x17d,
|
|
1730
|
+
_0x20224d: 0xb6,
|
|
1731
|
+
_0x1b6822: 0xba,
|
|
1732
|
+
_0x4a0291: 0x104,
|
|
1733
|
+
_0x274c04: 0x13f,
|
|
1734
|
+
_0x260110: 0x170,
|
|
1735
|
+
_0x3697ed: 0xc5,
|
|
1736
|
+
_0x120df0: 0x9f,
|
|
1737
|
+
_0x19b44b: 0x11e,
|
|
1738
|
+
_0x2ad2c7: 0x14b,
|
|
1739
|
+
_0x17cccb: 0x169,
|
|
1740
|
+
_0x1f0782: 0x1c6
|
|
1741
|
+
}, _0x5e66b9 = { _0x321de3: 0x166 }, _0x43f8aa = _0x301d4a;
|
|
1742
|
+
function _0x41d7d3(_0x3eaeba, _0x281758) {
|
|
1743
|
+
const _0x3901d7 = _0x1f42;
|
|
1744
|
+
if (!_0x139f5c['workerMode'])
|
|
1745
|
+
return;
|
|
1746
|
+
if (!_0x139f5c[_0x3901d7(_0x5e66b9._0x321de3)])
|
|
1747
|
+
throw new Error(_0x3eaeba + _0x3901d7(0xe5));
|
|
1748
|
+
if (_0x281758 !== _0x139f5c[_0x3901d7(_0x5e66b9._0x321de3)])
|
|
1749
|
+
throw new Error(_0x3eaeba + _0x3901d7(0x1f6) + _0x139f5c[_0x3901d7(0x166)] + _0x3901d7(0x1e0) + _0x281758);
|
|
1750
|
+
}
|
|
1751
|
+
async function _0x1d5240(_0x19f15d) {
|
|
1752
|
+
const _0x2bd1d0 = _0x1f42;
|
|
1753
|
+
if (!_0x139f5c[_0x2bd1d0(0x104)] || !_0x139f5c['agentId'] || _0x139f5c[_0x2bd1d0(0x10a)] || _0x139f5c['workerModeEnabled'] !== !![])
|
|
1730
1754
|
return null;
|
|
1731
|
-
const
|
|
1732
|
-
if (
|
|
1755
|
+
const _0x25a392 = parseTarget(_0x19f15d[_0x2bd1d0(_0x11c22a._0x369c2b)]);
|
|
1756
|
+
if (_0x25a392[_0x2bd1d0(_0x11c22a._0x3bb4a5)] !== 'channel')
|
|
1733
1757
|
return null;
|
|
1734
|
-
const
|
|
1735
|
-
let
|
|
1758
|
+
const _0xfd8826 = _0x19f15d[_0x2bd1d0(_0x11c22a._0x1d9cbb)] != null ? _0x25a392[_0x2bd1d0(0xd8)] + ':t' + _0x19f15d[_0x2bd1d0(0xb3)] : _0x25a392[_0x2bd1d0(_0x11c22a._0x90d9b)] + ':' + _0x19f15d['messageId'];
|
|
1759
|
+
let _0x1219c9;
|
|
1736
1760
|
try {
|
|
1737
|
-
const
|
|
1738
|
-
'channel':
|
|
1761
|
+
const _0x366028 = await _0x139f5c[_0x2bd1d0(_0x11c22a._0x338597)]['readHistory']({
|
|
1762
|
+
'channel': _0xfd8826,
|
|
1739
1763
|
'limit': 0x14
|
|
1740
1764
|
});
|
|
1741
|
-
|
|
1765
|
+
_0x1219c9 = _0x366028[_0x2bd1d0(0x134)]['find'](_0x1b9b26 => _0x1b9b26[_0x2bd1d0(0xef)] === _0x19f15d[_0x2bd1d0(0xef)]);
|
|
1742
1766
|
} catch {
|
|
1743
|
-
|
|
1767
|
+
_0x1219c9 = void 0x0;
|
|
1744
1768
|
}
|
|
1745
|
-
const
|
|
1746
|
-
|
|
1769
|
+
const _0x7eecd2 = _0x19f15d[_0x2bd1d0(0x13d)] == null ? _0x2bd1d0(0x1ed) : '#' + _0x19f15d[_0x2bd1d0(_0x11c22a._0x7cb63a)], _0x396a8a = [
|
|
1770
|
+
_0x2bd1d0(_0x11c22a._0x3993f9) + _0xfd8826 + _0x2bd1d0(_0x11c22a._0x20224d) + _0x19f15d['messageId'][_0x2bd1d0(0x165)](0x0, 0x8) + _0x2bd1d0(_0x11c22a._0x1b6822) + new Date()[_0x2bd1d0(0x1ce)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x7eecd2 + _0x2bd1d0(0x17a),
|
|
1747
1771
|
'',
|
|
1748
|
-
|
|
1772
|
+
_0x1219c9 ? 'Root\x20task\x20message:\x0a' + _0x1219c9['content'] : _0x2bd1d0(0x195) + _0x19f15d['messageId'],
|
|
1749
1773
|
'',
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
][
|
|
1753
|
-
'method':
|
|
1754
|
-
'headers': { 'Content-Type':
|
|
1755
|
-
'body': JSON[
|
|
1756
|
-
'agent_id':
|
|
1757
|
-
'thread_target':
|
|
1774
|
+
_0x2bd1d0(0xe4) + _0xfd8826,
|
|
1775
|
+
_0x2bd1d0(0xd5)
|
|
1776
|
+
][_0x2bd1d0(0x149)]('\x0a'), _0x22a14a = await fetch(_0x139f5c[_0x2bd1d0(_0x11c22a._0x4a0291)] + _0x2bd1d0(0x8c), {
|
|
1777
|
+
'method': _0x2bd1d0(_0x11c22a._0x274c04),
|
|
1778
|
+
'headers': { 'Content-Type': _0x2bd1d0(_0x11c22a._0x260110) },
|
|
1779
|
+
'body': JSON[_0x2bd1d0(_0x11c22a._0x3697ed)]({
|
|
1780
|
+
'agent_id': _0x139f5c[_0x2bd1d0(_0x11c22a._0x120df0)],
|
|
1781
|
+
'thread_target': _0xfd8826,
|
|
1758
1782
|
'spawn_packet': {
|
|
1759
|
-
'replyTarget':
|
|
1760
|
-
...
|
|
1783
|
+
'replyTarget': _0xfd8826,
|
|
1784
|
+
..._0x19f15d[_0x2bd1d0(_0x11c22a._0x19b44b)] ? { 'taskId': _0x19f15d['taskId'] } : _0x19f15d[_0x2bd1d0(_0x11c22a._0x7cb63a)] != null ? { 'taskId': 'task-' + _0x19f15d[_0x2bd1d0(_0x11c22a._0x7cb63a)] } : {}
|
|
1761
1785
|
},
|
|
1762
1786
|
'payload': {
|
|
1763
|
-
'mode':
|
|
1764
|
-
'text':
|
|
1787
|
+
'mode': _0x2bd1d0(0x7b),
|
|
1788
|
+
'text': _0x396a8a
|
|
1765
1789
|
}
|
|
1766
1790
|
})
|
|
1767
|
-
}),
|
|
1768
|
-
if (!
|
|
1769
|
-
throw new Error(
|
|
1791
|
+
}), _0x437b94 = await _0x22a14a[_0x2bd1d0(_0x11c22a._0x2ad2c7)]();
|
|
1792
|
+
if (!_0x437b94['ok'])
|
|
1793
|
+
throw new Error(_0x437b94[_0x2bd1d0(0x100)] ?? 'worker\x20handoff\x20failed');
|
|
1770
1794
|
return {
|
|
1771
1795
|
'stopMain': !![],
|
|
1772
|
-
'threadTarget':
|
|
1773
|
-
'workerDisposition':
|
|
1796
|
+
'threadTarget': _0xfd8826,
|
|
1797
|
+
'workerDisposition': _0x437b94[_0x2bd1d0(_0x11c22a._0x17cccb)] === 'queued' ? 'queued' : 'started',
|
|
1774
1798
|
'workerHandoff': !![],
|
|
1775
|
-
'workerSessionId':
|
|
1776
|
-
'executionMode':
|
|
1799
|
+
'workerSessionId': _0x437b94[_0x2bd1d0(0x135)] ?? '',
|
|
1800
|
+
'executionMode': _0x2bd1d0(_0x11c22a._0x1f0782)
|
|
1777
1801
|
};
|
|
1778
1802
|
}
|
|
1779
|
-
async function
|
|
1780
|
-
const
|
|
1781
|
-
if (!
|
|
1803
|
+
async function _0x52de45() {
|
|
1804
|
+
const _0x14873e = _0x1f42;
|
|
1805
|
+
if (!_0x139f5c['daemonLocalUrl'] || !_0x139f5c[_0x14873e(0x9f)] || _0x139f5c[_0x14873e(_0x50aac6._0x4de4be)])
|
|
1782
1806
|
return null;
|
|
1783
1807
|
try {
|
|
1784
|
-
const
|
|
1785
|
-
if (!
|
|
1808
|
+
const _0x5b2afa = await fetch(_0x139f5c['daemonLocalUrl'] + _0x14873e(0x7f) + encodeURIComponent(_0x139f5c[_0x14873e(_0x50aac6._0x31e232)])), _0x378c59 = await _0x5b2afa['json']();
|
|
1809
|
+
if (!_0x378c59['ok'])
|
|
1786
1810
|
return null;
|
|
1787
|
-
const
|
|
1788
|
-
for (const
|
|
1789
|
-
|
|
1811
|
+
const _0x20c162 = new Set();
|
|
1812
|
+
for (const _0x199bec of _0x378c59[_0x14873e(0x1f5)]) {
|
|
1813
|
+
_0x199bec[_0x14873e(0xa0)] !== _0x14873e(0x188) && _0x199bec['thread_target'] && _0x20c162['add'](_0x199bec[_0x14873e(_0x50aac6._0x212c49)]);
|
|
1790
1814
|
}
|
|
1791
|
-
return
|
|
1815
|
+
return _0x20c162[_0x14873e(0x102)] > 0x0 ? _0x20c162 : null;
|
|
1792
1816
|
} catch {
|
|
1793
1817
|
return null;
|
|
1794
1818
|
}
|
|
1795
1819
|
}
|
|
1796
|
-
const
|
|
1820
|
+
const _0x5534cd = new Set([
|
|
1797
1821
|
'running',
|
|
1798
|
-
|
|
1799
|
-
|
|
1822
|
+
_0x43f8aa(0xf0),
|
|
1823
|
+
'waiting_input'
|
|
1800
1824
|
]);
|
|
1801
|
-
async function
|
|
1802
|
-
const
|
|
1803
|
-
if (!
|
|
1825
|
+
async function _0x27a2fc() {
|
|
1826
|
+
const _0x44db3d = _0x43f8aa;
|
|
1827
|
+
if (!_0x139f5c[_0x44db3d(0x104)] || !_0x139f5c[_0x44db3d(_0x119dd3._0x1b6400)] || _0x139f5c['workerMode'])
|
|
1804
1828
|
return null;
|
|
1805
1829
|
try {
|
|
1806
|
-
const
|
|
1807
|
-
if (!
|
|
1830
|
+
const _0x2a7fd2 = await fetch(_0x139f5c['daemonLocalUrl'] + _0x44db3d(_0x119dd3._0x2ee727) + encodeURIComponent(_0x139f5c[_0x44db3d(_0x119dd3._0x1b6400)])), _0x444311 = await _0x2a7fd2[_0x44db3d(0x14b)]();
|
|
1831
|
+
if (!_0x444311['ok'])
|
|
1808
1832
|
return null;
|
|
1809
|
-
const
|
|
1810
|
-
for (const
|
|
1811
|
-
|
|
1833
|
+
const _0x232caa = new Set();
|
|
1834
|
+
for (const _0x4807eb of _0x444311[_0x44db3d(_0x119dd3._0x1ae0ab)]) {
|
|
1835
|
+
_0x5534cd[_0x44db3d(_0x119dd3._0x3f96)](_0x4807eb[_0x44db3d(_0x119dd3._0x5031ef)]) && _0x4807eb[_0x44db3d(0x77)] && _0x232caa[_0x44db3d(0xb2)](_0x4807eb['thread_target']);
|
|
1812
1836
|
}
|
|
1813
|
-
return
|
|
1837
|
+
return _0x232caa[_0x44db3d(_0x119dd3._0x2429d0)] > 0x0 ? _0x232caa : null;
|
|
1814
1838
|
} catch {
|
|
1815
1839
|
return null;
|
|
1816
1840
|
}
|
|
1817
1841
|
}
|
|
1818
1842
|
return {
|
|
1819
|
-
async 'send_message'(
|
|
1820
|
-
const
|
|
1821
|
-
if (!
|
|
1822
|
-
const
|
|
1823
|
-
if (
|
|
1824
|
-
const
|
|
1825
|
-
if (
|
|
1843
|
+
async 'send_message'(_0x5f124b) {
|
|
1844
|
+
const _0x3c6b20 = _0x43f8aa;
|
|
1845
|
+
if (!_0x139f5c[_0x3c6b20(_0x541a21._0x1fe0bb)] && _0x139f5c[_0x3c6b20(_0x541a21._0x2b6132)] && _0x139f5c[_0x3c6b20(_0x541a21._0x16694)] && _0x139f5c[_0x3c6b20(_0x541a21._0x2d6786)]) {
|
|
1846
|
+
const _0x1f59d8 = await _0x139f5c[_0x3c6b20(0x1e1)][_0x3c6b20(0x1de)](_0x5f124b[_0x3c6b20(_0x541a21._0x41bdb2)]);
|
|
1847
|
+
if (_0x1f59d8['task'] && _0x1f59d8[_0x3c6b20(0xaa)]) {
|
|
1848
|
+
const _0x25969e = _0x1f59d8[_0x3c6b20(_0x541a21._0x20c296)][_0x3c6b20(_0x541a21._0x441c8e)] != null ? '#' + _0x1f59d8[_0x3c6b20(0x9a)]['taskNumber'] : '(legacy)', _0x54f1e = _0x1f59d8[_0x3c6b20(_0x541a21._0xf12b9b)] != null ? _0x1f59d8[_0x3c6b20(_0x541a21._0x41bdb2)] + ':t' + _0x1f59d8[_0x3c6b20(_0x541a21._0xf12b9b)] : _0x1f59d8['target'] + ':' + _0x1f59d8[_0x3c6b20(0xaa)][_0x3c6b20(0x165)](0x0, 0x8), _0x40e35d = await _0x27a2fc();
|
|
1849
|
+
if (_0x40e35d?.[_0x3c6b20(_0x541a21._0x1d7ea6)](_0x54f1e))
|
|
1826
1850
|
return [
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
][
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1851
|
+
_0x3c6b20(_0x541a21._0x117bb2) + _0x25969e + _0x3c6b20(0x1b7) + _0x54f1e + _0x3c6b20(_0x541a21._0x32d152),
|
|
1852
|
+
_0x3c6b20(_0x541a21._0x115c9c)
|
|
1853
|
+
]['join']('\x0a');
|
|
1854
|
+
const _0x20e083 = [
|
|
1855
|
+
_0x3c6b20(0x17d) + _0x54f1e + _0x3c6b20(_0x541a21._0x5f0aa9) + new Date()[_0x3c6b20(0x1ce)]() + _0x3c6b20(_0x541a21._0xbfcb76),
|
|
1832
1856
|
'',
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
][
|
|
1838
|
-
'method':
|
|
1839
|
-
'headers': { 'Content-Type':
|
|
1840
|
-
'body': JSON[
|
|
1841
|
-
'agent_id':
|
|
1842
|
-
'thread_target':
|
|
1857
|
+
_0x3c6b20(0x6f) + _0x5f124b['content'],
|
|
1858
|
+
_0x3c6b20(_0x541a21._0x2ab540) + _0x25969e + '\x20(' + _0x1f59d8['task'][_0x3c6b20(_0x541a21._0xf5d3a3)] + ')',
|
|
1859
|
+
_0x3c6b20(0xe4) + _0x54f1e,
|
|
1860
|
+
_0x3c6b20(_0x541a21._0x50284f)
|
|
1861
|
+
][_0x3c6b20(0x149)]('\x0a'), _0x3a96cf = await fetch(_0x139f5c[_0x3c6b20(_0x541a21._0x16694)] + _0x3c6b20(0x8c), {
|
|
1862
|
+
'method': _0x3c6b20(_0x541a21._0xd62ad2),
|
|
1863
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1864
|
+
'body': JSON[_0x3c6b20(0xc5)]({
|
|
1865
|
+
'agent_id': _0x139f5c['agentId'],
|
|
1866
|
+
'thread_target': _0x54f1e,
|
|
1843
1867
|
'spawn_packet': {
|
|
1844
|
-
'replyTarget':
|
|
1845
|
-
'taskId':
|
|
1868
|
+
'replyTarget': _0x54f1e,
|
|
1869
|
+
'taskId': _0x1f59d8[_0x3c6b20(0x9a)][_0x3c6b20(0x11e)]
|
|
1846
1870
|
},
|
|
1847
1871
|
'payload': {
|
|
1848
|
-
'mode':
|
|
1849
|
-
'text':
|
|
1872
|
+
'mode': _0x3c6b20(_0x541a21._0xdcb6d7),
|
|
1873
|
+
'text': _0x20e083
|
|
1850
1874
|
}
|
|
1851
1875
|
})
|
|
1852
|
-
}),
|
|
1853
|
-
if (!
|
|
1854
|
-
throw new Error(
|
|
1876
|
+
}), _0x35f693 = await _0x3a96cf['json']();
|
|
1877
|
+
if (!_0x35f693['ok'])
|
|
1878
|
+
throw new Error(_0x35f693[_0x3c6b20(_0x541a21._0x49fd97)] ?? _0x3c6b20(0x198));
|
|
1855
1879
|
return [
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
][
|
|
1880
|
+
_0x3c6b20(0x162) + _0x25969e + _0x3c6b20(_0x541a21._0x4ec475) + _0x54f1e + _0x3c6b20(_0x541a21._0x168273),
|
|
1881
|
+
_0x3c6b20(0x187) + (_0x35f693[_0x3c6b20(0x169)] === _0x3c6b20(_0x541a21._0x4a24b8) ? _0x3c6b20(0xc8) : _0x3c6b20(_0x541a21._0x5f03a3)) + '.',
|
|
1882
|
+
_0x3c6b20(_0x541a21._0x53c092)
|
|
1883
|
+
]['join']('\x0a');
|
|
1860
1884
|
}
|
|
1861
1885
|
}
|
|
1862
|
-
const
|
|
1863
|
-
'attachmentIds':
|
|
1864
|
-
'content':
|
|
1865
|
-
'target':
|
|
1866
|
-
'visibility':
|
|
1886
|
+
const _0x107885 = await _0x139f5c[_0x3c6b20(0x1e1)][_0x3c6b20(_0x541a21._0x56cb35)]({
|
|
1887
|
+
'attachmentIds': _0x5f124b['attachment_ids'],
|
|
1888
|
+
'content': _0x5f124b[_0x3c6b20(0xcf)],
|
|
1889
|
+
'target': _0x5f124b[_0x3c6b20(_0x541a21._0x34422e)],
|
|
1890
|
+
'visibility': _0x5f124b['visibility']
|
|
1867
1891
|
});
|
|
1868
|
-
return
|
|
1892
|
+
return _0x3c6b20(0xfc) + _0x5f124b[_0x3c6b20(0xac)] + '.\x20Message\x20ID:\x20' + _0x107885[_0x3c6b20(0xef)];
|
|
1869
1893
|
},
|
|
1870
1894
|
async 'check_messages'() {
|
|
1871
|
-
const
|
|
1872
|
-
if (!
|
|
1873
|
-
const
|
|
1874
|
-
if (
|
|
1875
|
-
return formatCheckMessages(
|
|
1895
|
+
const _0x2ad344 = _0x43f8aa, _0x1953d0 = await _0x139f5c[_0x2ad344(_0x56687d._0x5a09d0)]['checkMessages']();
|
|
1896
|
+
if (!_0x139f5c[_0x2ad344(_0x56687d._0x9baa0)]) {
|
|
1897
|
+
const _0x403857 = await _0x52de45();
|
|
1898
|
+
if (_0x403857)
|
|
1899
|
+
return formatCheckMessages(_0x1953d0[_0x2ad344(_0x56687d._0x5c05f3)][_0x2ad344(_0x56687d._0x21280b)](_0x4da5fb => !_0x403857[_0x2ad344(0x8e)](_0x4da5fb['target'])));
|
|
1876
1900
|
}
|
|
1877
|
-
return formatCheckMessages(
|
|
1901
|
+
return formatCheckMessages(_0x1953d0[_0x2ad344(0x134)]);
|
|
1878
1902
|
},
|
|
1879
|
-
async 'read_history'(
|
|
1880
|
-
const
|
|
1881
|
-
return formatHistory(
|
|
1903
|
+
async 'read_history'(_0x119f55) {
|
|
1904
|
+
const _0x49dc80 = _0x43f8aa, _0x53c42f = await _0x139f5c[_0x49dc80(0x1e1)]['readHistory'](_0x119f55);
|
|
1905
|
+
return formatHistory(_0x53c42f);
|
|
1882
1906
|
},
|
|
1883
1907
|
async 'list_server'() {
|
|
1884
|
-
const
|
|
1885
|
-
return formatServerDirectory(
|
|
1908
|
+
const _0x44bdeb = _0x43f8aa, _0x3e8580 = await _0x139f5c[_0x44bdeb(_0x18e446._0x430fc8)][_0x44bdeb(_0x18e446._0x51e8e9)]();
|
|
1909
|
+
return formatServerDirectory(_0x3e8580);
|
|
1886
1910
|
},
|
|
1887
|
-
async 'list_tasks'(
|
|
1888
|
-
const
|
|
1889
|
-
let
|
|
1890
|
-
if (
|
|
1911
|
+
async 'list_tasks'(_0x1cc61c) {
|
|
1912
|
+
const _0x3e10f9 = _0x43f8aa, _0x72bd8c = await _0x139f5c[_0x3e10f9(_0x480f1f._0x338e60)][_0x3e10f9(_0x480f1f._0x3d3392)](_0x1cc61c);
|
|
1913
|
+
let _0x3865c2;
|
|
1914
|
+
if (_0x139f5c[_0x3e10f9(_0x480f1f._0x46b9ec)] && _0x139f5c['agentId'])
|
|
1891
1915
|
try {
|
|
1892
|
-
const
|
|
1893
|
-
if (
|
|
1894
|
-
const
|
|
1895
|
-
|
|
1896
|
-
for (const
|
|
1897
|
-
if (
|
|
1916
|
+
const _0x306845 = await fetch(_0x139f5c[_0x3e10f9(0x104)] + '/workers/list?agent_id=' + encodeURIComponent(_0x139f5c['agentId'])), _0x461201 = await _0x306845[_0x3e10f9(0x14b)]();
|
|
1917
|
+
if (_0x461201['ok']) {
|
|
1918
|
+
const _0x3343ff = _0x1cc61c[_0x3e10f9(0x88)] + ':';
|
|
1919
|
+
_0x3865c2 = new Set();
|
|
1920
|
+
for (const _0x4431f3 of _0x461201[_0x3e10f9(0x1f5)]) {
|
|
1921
|
+
if (_0x4431f3[_0x3e10f9(0xa0)] === _0x3e10f9(0x188))
|
|
1898
1922
|
continue;
|
|
1899
|
-
if (
|
|
1900
|
-
const
|
|
1901
|
-
if (
|
|
1902
|
-
|
|
1923
|
+
if (_0x4431f3[_0x3e10f9(_0x480f1f._0x5ce13c)]?.[_0x3e10f9(0x182)](_0x3343ff)) {
|
|
1924
|
+
const _0x3a7caf = _0x4431f3[_0x3e10f9(0x77)][_0x3e10f9(_0x480f1f._0x37b524)](_0x3343ff[_0x3e10f9(_0x480f1f._0x7ea4ed)]), _0x3d9259 = _0x72bd8c['tasks'][_0x3e10f9(_0x480f1f._0x5c574a)](_0x43d413 => _0x43d413[_0x3e10f9(0xef)]?.[_0x3e10f9(0x182)](_0x3a7caf) === !![]);
|
|
1925
|
+
if (_0x3d9259?.[_0x3e10f9(_0x480f1f._0x33bf96)] != null) {
|
|
1926
|
+
_0x3865c2['add'](_0x3d9259[_0x3e10f9(0x13d)]);
|
|
1903
1927
|
continue;
|
|
1904
1928
|
}
|
|
1905
1929
|
}
|
|
1906
|
-
if (
|
|
1907
|
-
const
|
|
1908
|
-
|
|
1930
|
+
if (_0x4431f3[_0x3e10f9(0xa2)]) {
|
|
1931
|
+
const _0x189f98 = _0x72bd8c['tasks'][_0x3e10f9(_0x480f1f._0x48eb6e)](_0x118efb => _0x118efb[_0x3e10f9(0x11e)] === _0x4431f3['task_id']);
|
|
1932
|
+
_0x189f98?.[_0x3e10f9(0x13d)] != null && _0x3865c2[_0x3e10f9(_0x480f1f._0x1ca14a)](_0x189f98[_0x3e10f9(0x13d)]);
|
|
1909
1933
|
}
|
|
1910
1934
|
}
|
|
1911
1935
|
}
|
|
1912
1936
|
} catch {
|
|
1913
1937
|
}
|
|
1914
|
-
return formatTaskList(
|
|
1938
|
+
return formatTaskList(_0x72bd8c[_0x3e10f9(0x1a1)], _0x3865c2);
|
|
1915
1939
|
},
|
|
1916
|
-
async 'create_tasks'(
|
|
1917
|
-
const
|
|
1918
|
-
|
|
1940
|
+
async 'create_tasks'(_0x45d4c7) {
|
|
1941
|
+
const _0x5d6cd1 = _0x43f8aa;
|
|
1942
|
+
_0x41d7d3('create_tasks', _0x45d4c7[_0x5d6cd1(0x88)]);
|
|
1943
|
+
const _0x59c258 = await _0x139f5c[_0x5d6cd1(0x1e1)][_0x5d6cd1(0x179)](_0x45d4c7);
|
|
1944
|
+
return formatCreatedTasks(_0x59c258[_0x5d6cd1(_0x504db0._0x3dbcef)]);
|
|
1919
1945
|
},
|
|
1920
|
-
async 'claim_tasks'(
|
|
1921
|
-
const
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1946
|
+
async 'claim_tasks'(_0x222ac8) {
|
|
1947
|
+
const _0x29c08c = _0x43f8aa;
|
|
1948
|
+
if (_0x139f5c[_0x29c08c(_0x53f938._0x1bfa8f)]) {
|
|
1949
|
+
_0x41d7d3(_0x29c08c(_0x53f938._0x29b428), _0x222ac8[_0x29c08c(_0x53f938._0x56effc)]);
|
|
1950
|
+
if (_0x222ac8[_0x29c08c(_0x53f938._0x3a8570)] && _0x222ac8[_0x29c08c(_0x53f938._0x3a8570)]['length'] > 0x0)
|
|
1951
|
+
throw new Error(_0x29c08c(_0x53f938._0x59c07d));
|
|
1952
|
+
if (!_0x222ac8['subtask_numbers'] || _0x222ac8[_0x29c08c(_0x53f938._0x2b5656)][_0x29c08c(0x1f3)] === 0x0)
|
|
1953
|
+
throw new Error(_0x29c08c(0x142));
|
|
1954
|
+
}
|
|
1955
|
+
const _0x236fe3 = await _0x139f5c[_0x29c08c(_0x53f938._0x39044f)][_0x29c08c(_0x53f938._0x1b70d4)](_0x222ac8), _0x3d469a = await Promise[_0x29c08c(_0x53f938._0x50a1ce)](_0x236fe3['results'][_0x29c08c(_0x53f938._0x189393)](async _0x428e50 => {
|
|
1956
|
+
const _0x1faad2 = _0x29c08c;
|
|
1957
|
+
if (!_0x428e50[_0x1faad2(0x153)] || !_0x428e50[_0x1faad2(0xef)])
|
|
1958
|
+
return _0x428e50;
|
|
1930
1959
|
try {
|
|
1931
|
-
const
|
|
1932
|
-
'channel':
|
|
1933
|
-
'messageId':
|
|
1934
|
-
'taskId':
|
|
1935
|
-
'taskNumber':
|
|
1936
|
-
'threadNumber':
|
|
1960
|
+
const _0x132e4b = await _0x1d5240({
|
|
1961
|
+
'channel': _0x222ac8['channel'],
|
|
1962
|
+
'messageId': _0x428e50[_0x1faad2(_0xc4b255._0x1fcf2b)],
|
|
1963
|
+
'taskId': _0x428e50[_0x1faad2(0x11e)],
|
|
1964
|
+
'taskNumber': _0x428e50[_0x1faad2(_0xc4b255._0x581d74)],
|
|
1965
|
+
'threadNumber': _0x428e50['threadNumber']
|
|
1937
1966
|
});
|
|
1938
|
-
return
|
|
1939
|
-
...
|
|
1940
|
-
...
|
|
1941
|
-
} :
|
|
1942
|
-
} catch (
|
|
1967
|
+
return _0x132e4b ? {
|
|
1968
|
+
..._0x428e50,
|
|
1969
|
+
..._0x132e4b
|
|
1970
|
+
} : _0x428e50;
|
|
1971
|
+
} catch (_0x5aa840) {
|
|
1943
1972
|
return {
|
|
1944
|
-
...
|
|
1945
|
-
'workerHandoffError':
|
|
1973
|
+
..._0x428e50,
|
|
1974
|
+
'workerHandoffError': _0x5aa840 instanceof Error ? _0x5aa840[_0x1faad2(_0xc4b255._0x5a1e70)] : _0x1faad2(_0xc4b255._0x288628)
|
|
1946
1975
|
};
|
|
1947
1976
|
}
|
|
1948
1977
|
}));
|
|
1949
|
-
return formatClaimTaskResults(
|
|
1978
|
+
return formatClaimTaskResults(_0x3d469a);
|
|
1950
1979
|
},
|
|
1951
|
-
async 'unclaim_task'(
|
|
1952
|
-
const
|
|
1953
|
-
|
|
1980
|
+
async 'unclaim_task'(_0xa66a1) {
|
|
1981
|
+
const _0x40fa2b = _0x43f8aa;
|
|
1982
|
+
if (_0x139f5c[_0x40fa2b(_0x24d5d0._0x8d2e90)]) {
|
|
1983
|
+
_0x41d7d3('unclaim_task', _0xa66a1['channel']);
|
|
1984
|
+
if (_0xa66a1[_0x40fa2b(_0x24d5d0._0x1b5a32)] == null)
|
|
1985
|
+
throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
|
|
1986
|
+
}
|
|
1987
|
+
const _0xe0f185 = await _0x139f5c[_0x40fa2b(0x1e1)][_0x40fa2b(0x145)](_0xa66a1);
|
|
1988
|
+
return formatUnclaimTaskResult(_0xe0f185);
|
|
1954
1989
|
},
|
|
1955
|
-
async 'update_task_status'(
|
|
1956
|
-
const
|
|
1957
|
-
|
|
1990
|
+
async 'update_task_status'(_0x406cd) {
|
|
1991
|
+
const _0x319de5 = _0x43f8aa;
|
|
1992
|
+
_0x41d7d3('update_task_status', _0x406cd[_0x319de5(0x88)]);
|
|
1993
|
+
const _0x2e06fa = await _0x139f5c[_0x319de5(_0x151f07._0x48530c)][_0x319de5(0x1c9)](_0x406cd);
|
|
1994
|
+
return formatUpdateTaskStatusResult(_0x2e06fa);
|
|
1958
1995
|
},
|
|
1959
|
-
async 'upload_file'(
|
|
1960
|
-
const
|
|
1961
|
-
sizeBytes:
|
|
1962
|
-
...
|
|
1963
|
-
} =
|
|
1964
|
-
'channel':
|
|
1965
|
-
...
|
|
1996
|
+
async 'upload_file'(_0x2a1b8d) {
|
|
1997
|
+
const _0x276f50 = _0x43f8aa, _0x27fed3 = await _0x139f5c[_0x276f50(0xea)](_0x2a1b8d['file_path']), {
|
|
1998
|
+
sizeBytes: _0x4c4ead,
|
|
1999
|
+
..._0x1d4b10
|
|
2000
|
+
} = _0x27fed3, _0x29d2ec = await _0x139f5c[_0x276f50(0x1e1)][_0x276f50(0x118)]({
|
|
2001
|
+
'channel': _0x2a1b8d[_0x276f50(_0x278735._0x4ada1e)],
|
|
2002
|
+
..._0x1d4b10
|
|
1966
2003
|
});
|
|
1967
|
-
return formatUploadResult(
|
|
2004
|
+
return formatUploadResult(_0x29d2ec);
|
|
1968
2005
|
},
|
|
1969
|
-
async 'view_file'(
|
|
1970
|
-
const
|
|
1971
|
-
if (
|
|
1972
|
-
return formatViewFileResult(
|
|
1973
|
-
const
|
|
1974
|
-
'attachmentId':
|
|
1975
|
-
'contentType':
|
|
1976
|
-
'data':
|
|
1977
|
-
'originalFilename':
|
|
2006
|
+
async 'view_file'(_0x218461) {
|
|
2007
|
+
const _0x12a3e1 = _0x43f8aa, _0x506202 = await _0x139f5c[_0x12a3e1(_0x665e8b._0x65fc3d)]['findCachedPath'](_0x218461[_0x12a3e1(0x13b)]);
|
|
2008
|
+
if (_0x506202)
|
|
2009
|
+
return formatViewFileResult(_0x506202, !![]);
|
|
2010
|
+
const _0x27722a = await _0x139f5c[_0x12a3e1(0x1e1)][_0x12a3e1(0x1b0)](_0x218461[_0x12a3e1(0x13b)]), _0x23f4f2 = await _0x139f5c[_0x12a3e1(_0x665e8b._0x1d492d)][_0x12a3e1(_0x665e8b._0x514cee)]({
|
|
2011
|
+
'attachmentId': _0x218461[_0x12a3e1(_0x665e8b._0x16970c)],
|
|
2012
|
+
'contentType': _0x27722a[_0x12a3e1(_0x665e8b._0x278570)],
|
|
2013
|
+
'data': _0x27722a['data'],
|
|
2014
|
+
'originalFilename': _0x27722a[_0x12a3e1(_0x665e8b._0x1abb18)]
|
|
1978
2015
|
});
|
|
1979
|
-
return formatViewFileResult(
|
|
2016
|
+
return formatViewFileResult(_0x23f4f2, ![]);
|
|
1980
2017
|
},
|
|
1981
|
-
async 'get_worker_status'(
|
|
1982
|
-
const
|
|
1983
|
-
if (!
|
|
1984
|
-
return
|
|
1985
|
-
const
|
|
1986
|
-
if (!
|
|
1987
|
-
return 'Worker\x20\x22' +
|
|
1988
|
-
return
|
|
2018
|
+
async 'get_worker_status'(_0xd9d643) {
|
|
2019
|
+
const _0x12c1ae = _0x43f8aa;
|
|
2020
|
+
if (!_0x139f5c[_0x12c1ae(0x104)])
|
|
2021
|
+
return _0x12c1ae(_0x210478._0x316ec9);
|
|
2022
|
+
const _0x23e530 = await fetch(_0x139f5c['daemonLocalUrl'] + _0x12c1ae(_0x210478._0x58b0b2) + encodeURIComponent(_0xd9d643['work_key'])), _0x34bb2a = await _0x23e530[_0x12c1ae(_0x210478._0x523499)]();
|
|
2023
|
+
if (!_0x34bb2a['ok'])
|
|
2024
|
+
return 'Worker\x20\x22' + _0xd9d643[_0x12c1ae(_0x210478._0x300fea)] + _0x12c1ae(0x1a6);
|
|
2025
|
+
return _0x12c1ae(0x15e) + _0xd9d643[_0x12c1ae(_0x210478._0x300fea)] + _0x12c1ae(_0x210478._0x16384c) + _0x34bb2a[_0x12c1ae(0xa0)];
|
|
1989
2026
|
},
|
|
1990
|
-
async 'get_worker_result'(
|
|
1991
|
-
const
|
|
1992
|
-
if (!
|
|
1993
|
-
return
|
|
1994
|
-
const
|
|
1995
|
-
if (!
|
|
1996
|
-
return
|
|
1997
|
-
return JSON[
|
|
2027
|
+
async 'get_worker_result'(_0x44b281) {
|
|
2028
|
+
const _0x260ea3 = _0x43f8aa;
|
|
2029
|
+
if (!_0x139f5c[_0x260ea3(0x104)])
|
|
2030
|
+
return _0x260ea3(_0x5ae287._0x5a2b44);
|
|
2031
|
+
const _0x4a0ba8 = await fetch(_0x139f5c[_0x260ea3(0x104)] + _0x260ea3(_0x5ae287._0x4b27df) + encodeURIComponent(_0x44b281['work_key'])), _0x525b83 = await _0x4a0ba8[_0x260ea3(0x14b)]();
|
|
2032
|
+
if (!_0x525b83[_0x260ea3(_0x5ae287._0x5e3497)])
|
|
2033
|
+
return _0x260ea3(0xa7) + _0x44b281['work_key'] + '\x22';
|
|
2034
|
+
return JSON[_0x260ea3(0xc5)](_0x525b83[_0x260ea3(0x1b3)], null, 0x2);
|
|
1998
2035
|
},
|
|
1999
|
-
async 'finish_worker'(
|
|
2000
|
-
const
|
|
2001
|
-
if (!
|
|
2002
|
-
return
|
|
2003
|
-
const
|
|
2004
|
-
'method':
|
|
2005
|
-
'headers': { 'Content-Type':
|
|
2006
|
-
'body': JSON[
|
|
2007
|
-
'work_key':
|
|
2036
|
+
async 'finish_worker'(_0x1d7749) {
|
|
2037
|
+
const _0x450afa = _0x43f8aa;
|
|
2038
|
+
if (!_0x139f5c[_0x450afa(0x104)])
|
|
2039
|
+
return _0x450afa(_0x5a3e8f._0x4a6f87);
|
|
2040
|
+
const _0x1b114c = await fetch(_0x139f5c[_0x450afa(0x104)] + _0x450afa(0x74), {
|
|
2041
|
+
'method': _0x450afa(_0x5a3e8f._0x4ce81e),
|
|
2042
|
+
'headers': { 'Content-Type': _0x450afa(0x170) },
|
|
2043
|
+
'body': JSON['stringify']({
|
|
2044
|
+
'work_key': _0x1d7749[_0x450afa(0x150)],
|
|
2008
2045
|
'resume_packet': {
|
|
2009
2046
|
'objective': '',
|
|
2010
|
-
'result':
|
|
2011
|
-
'summary':
|
|
2012
|
-
'decisions':
|
|
2013
|
-
'filesChanged':
|
|
2014
|
-
'openIssues':
|
|
2015
|
-
'nextSteps':
|
|
2047
|
+
'result': _0x1d7749[_0x450afa(_0x5a3e8f._0x1721ca)],
|
|
2048
|
+
'summary': _0x1d7749[_0x450afa(_0x5a3e8f._0x26d59a)],
|
|
2049
|
+
'decisions': _0x1d7749[_0x450afa(_0x5a3e8f._0x1dc43e)] ?? [],
|
|
2050
|
+
'filesChanged': _0x1d7749[_0x450afa(0x1bd)] ?? [],
|
|
2051
|
+
'openIssues': _0x1d7749[_0x450afa(_0x5a3e8f._0x46c572)] ?? [],
|
|
2052
|
+
'nextSteps': _0x1d7749['next_steps'] ?? []
|
|
2016
2053
|
}
|
|
2017
2054
|
})
|
|
2018
|
-
}),
|
|
2019
|
-
if (!
|
|
2020
|
-
throw new Error(
|
|
2021
|
-
return 'Worker\x20\x22' +
|
|
2055
|
+
}), _0x5e92e2 = await _0x1b114c[_0x450afa(0x14b)]();
|
|
2056
|
+
if (!_0x5e92e2['ok'])
|
|
2057
|
+
throw new Error(_0x5e92e2[_0x450afa(0x100)] ?? _0x450afa(0xd3));
|
|
2058
|
+
return 'Worker\x20\x22' + _0x1d7749[_0x450afa(_0x5a3e8f._0x3a0782)] + _0x450afa(_0x5a3e8f._0x31c1e0) + _0x1d7749[_0x450afa(_0x5a3e8f._0x3f1675)];
|
|
2022
2059
|
},
|
|
2023
|
-
async 'mark_waiting_input'(
|
|
2024
|
-
const
|
|
2025
|
-
if (!
|
|
2026
|
-
return
|
|
2027
|
-
const
|
|
2028
|
-
'method':
|
|
2029
|
-
'headers': { 'Content-Type':
|
|
2030
|
-
'body': JSON[
|
|
2031
|
-
'work_key':
|
|
2032
|
-
'agent_id':
|
|
2060
|
+
async 'mark_waiting_input'(_0x56982d) {
|
|
2061
|
+
const _0x18537c = _0x43f8aa;
|
|
2062
|
+
if (!_0x139f5c['daemonLocalUrl'] || !_0x139f5c['agentId'])
|
|
2063
|
+
return _0x18537c(_0x1d50c1._0xf91d7d);
|
|
2064
|
+
const _0x5bc3e7 = await fetch(_0x139f5c[_0x18537c(0x104)] + _0x18537c(_0x1d50c1._0x50abc7), {
|
|
2065
|
+
'method': _0x18537c(0x13f),
|
|
2066
|
+
'headers': { 'Content-Type': _0x18537c(_0x1d50c1._0x49f7e1) },
|
|
2067
|
+
'body': JSON[_0x18537c(0xc5)]({
|
|
2068
|
+
'work_key': _0x56982d[_0x18537c(_0x1d50c1._0x429797)],
|
|
2069
|
+
'agent_id': _0x139f5c['agentId']
|
|
2033
2070
|
})
|
|
2034
|
-
}),
|
|
2035
|
-
if (!
|
|
2036
|
-
throw new Error(
|
|
2037
|
-
return
|
|
2071
|
+
}), _0x5c0abd = await _0x5bc3e7[_0x18537c(_0x1d50c1._0x310a8f)]();
|
|
2072
|
+
if (!_0x5c0abd['ok'])
|
|
2073
|
+
throw new Error(_0x5c0abd['error'] ?? _0x18537c(0x16b));
|
|
2074
|
+
return _0x18537c(0x15e) + _0x56982d['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
2038
2075
|
},
|
|
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':
|
|
2076
|
+
async 'escalate_to_main'(_0x383e0e) {
|
|
2077
|
+
const _0x286ff9 = _0x43f8aa;
|
|
2078
|
+
if (!_0x139f5c['daemonLocalUrl'])
|
|
2079
|
+
return _0x286ff9(0x1d1);
|
|
2080
|
+
const _0x2d7db6 = await fetch(_0x139f5c[_0x286ff9(0x104)] + '/workers/escalate', {
|
|
2081
|
+
'method': _0x286ff9(_0x1175de._0x244eca),
|
|
2082
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2083
|
+
'body': JSON[_0x286ff9(_0x1175de._0x3b1e7f)]({
|
|
2084
|
+
'work_key': _0x383e0e[_0x286ff9(0x150)],
|
|
2085
|
+
'reason': _0x383e0e['reason']
|
|
2049
2086
|
})
|
|
2050
|
-
}),
|
|
2051
|
-
if (!
|
|
2052
|
-
throw new Error(
|
|
2053
|
-
return
|
|
2087
|
+
}), _0x5be728 = await _0x2d7db6[_0x286ff9(_0x1175de._0x22e1b4)]();
|
|
2088
|
+
if (!_0x5be728['ok'])
|
|
2089
|
+
throw new Error(_0x5be728[_0x286ff9(_0x1175de._0x4b9f08)] ?? 'escalate_to_main\x20failed');
|
|
2090
|
+
return _0x286ff9(_0x1175de._0xb93c1b) + _0x383e0e[_0x286ff9(_0x1175de._0x595c23)];
|
|
2054
2091
|
}
|
|
2055
2092
|
};
|
|
2056
2093
|
}
|
|
2057
|
-
function textResult(
|
|
2094
|
+
function textResult(_0x29dd03, _0x20839f = ![]) {
|
|
2058
2095
|
return {
|
|
2059
2096
|
'content': [{
|
|
2060
2097
|
'type': 'text',
|
|
2061
|
-
'text':
|
|
2098
|
+
'text': _0x29dd03
|
|
2062
2099
|
}],
|
|
2063
|
-
...
|
|
2100
|
+
..._0x20839f ? { 'isError': !![] } : {}
|
|
2064
2101
|
};
|
|
2065
2102
|
}
|
|
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
|
-
'
|
|
2125
|
-
'
|
|
2126
|
-
'
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}, async _0xc4f5f => {
|
|
2132
|
-
const _0x50820d = _0x455c78;
|
|
2103
|
+
async function registerChatBridgeTools(_0x3a4075, _0x4d45ec, _0x137535) {
|
|
2104
|
+
const _0x5185a3 = {
|
|
2105
|
+
_0x4e8c31: 0x1b9,
|
|
2106
|
+
_0x3d8d24: 0x19f,
|
|
2107
|
+
_0x456a9e: 0x8f,
|
|
2108
|
+
_0x12c30b: 0x1d7,
|
|
2109
|
+
_0x314639: 0x159,
|
|
2110
|
+
_0x5d8432: 0x1d2,
|
|
2111
|
+
_0x4762e8: 0xf8,
|
|
2112
|
+
_0x479ba4: 0x13c,
|
|
2113
|
+
_0x446862: 0x1f9,
|
|
2114
|
+
_0x3c4a0e: 0xe0,
|
|
2115
|
+
_0x1323f7: 0x10d,
|
|
2116
|
+
_0x2d253e: 0x1c0,
|
|
2117
|
+
_0x42d67c: 0x108,
|
|
2118
|
+
_0x3dba87: 0x108,
|
|
2119
|
+
_0x42f26b: 0x101,
|
|
2120
|
+
_0x1a856c: 0x18f,
|
|
2121
|
+
_0xad3018: 0xa3,
|
|
2122
|
+
_0x25efee: 0x1e4,
|
|
2123
|
+
_0xf1c40a: 0x1bf,
|
|
2124
|
+
_0x1022e2: 0x108,
|
|
2125
|
+
_0xfc5e0c: 0x101,
|
|
2126
|
+
_0x423f49: 0x8f,
|
|
2127
|
+
_0x1c698a: 0x152,
|
|
2128
|
+
_0x1035bb: 0x1bf,
|
|
2129
|
+
_0x5cb734: 0x127,
|
|
2130
|
+
_0x49701b: 0x1a5,
|
|
2131
|
+
_0x14c42b: 0x1c1,
|
|
2132
|
+
_0x29ec60: 0x1c0,
|
|
2133
|
+
_0x1ed8c9: 0x1cf,
|
|
2134
|
+
_0xc2b5fb: 0x1ee,
|
|
2135
|
+
_0x1732b2: 0x155,
|
|
2136
|
+
_0xd76e13: 0x8f,
|
|
2137
|
+
_0xc14745: 0x190,
|
|
2138
|
+
_0x589789: 0x151,
|
|
2139
|
+
_0x5bf345: 0x108,
|
|
2140
|
+
_0x113f40: 0x151,
|
|
2141
|
+
_0x3e39fc: 0x10a,
|
|
2142
|
+
_0x9d14a8: 0x161
|
|
2143
|
+
}, _0x51883e = {
|
|
2144
|
+
_0x1a4218: 0x16e,
|
|
2145
|
+
_0x54a042: 0x16b
|
|
2146
|
+
}, _0x27622c = {
|
|
2147
|
+
_0xc612a4: 0x1b5,
|
|
2148
|
+
_0x43a6b9: 0xd3
|
|
2149
|
+
}, _0x10c178 = { _0x3f47d2: 0x1a2 }, _0x465c1e = {
|
|
2150
|
+
_0x5f1f27: 0x167,
|
|
2151
|
+
_0xf5198c: 0x16e
|
|
2152
|
+
}, _0x51e830 = { _0x39caed: 0x16e }, _0xf95aa = {
|
|
2153
|
+
_0x198c0d: 0x16e,
|
|
2154
|
+
_0x5ab864: 0x1b2
|
|
2155
|
+
}, _0x23d425 = { _0xe54c10: 0x1ea }, _0x489146 = { _0x185f56: 0x152 }, _0x20f330 = { _0xe57d18: 0x16e }, _0x317e36 = {
|
|
2156
|
+
_0x441460: 0x176,
|
|
2157
|
+
_0x4b58d1: 0x16e
|
|
2158
|
+
}, _0x39647c = { _0x15d4ed: 0x16a }, _0x322d2e = { _0x3c5905: 0x16e }, _0x43abb3 = { _0x5e3c1a: 0x10c }, _0x1647bc = { _0x307924: 0x1b6 }, _0x1f8968 = _0x301d4a, {z: _0x27fd5d} = await import(_0x1f8968(_0x5185a3._0x4e8c31));
|
|
2159
|
+
_0x3a4075[_0x1f8968(0x8f)](_0x1f8968(0xfe), _0x1f8968(0x105), {
|
|
2160
|
+
'target': _0x27fd5d['string'](),
|
|
2161
|
+
'content': _0x27fd5d[_0x1f8968(0x108)](),
|
|
2162
|
+
'attachment_ids': _0x27fd5d[_0x1f8968(0x151)](_0x27fd5d['string']())[_0x1f8968(0xf8)](),
|
|
2163
|
+
'visibility': _0x27fd5d[_0x1f8968(0x1c1)]([
|
|
2164
|
+
_0x1f8968(_0x5185a3._0x3d8d24),
|
|
2165
|
+
_0x1f8968(0x16d)
|
|
2166
|
+
])[_0x1f8968(0xf8)]()['describe']('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2167
|
+
}, async _0x3c63a7 => {
|
|
2133
2168
|
try {
|
|
2134
|
-
return textResult(await
|
|
2135
|
-
} catch (
|
|
2136
|
-
return textResult(
|
|
2169
|
+
return textResult(await _0x4d45ec['send_message'](_0x3c63a7));
|
|
2170
|
+
} catch (_0x1d6b04) {
|
|
2171
|
+
return textResult(_0x1d6b04 instanceof Error ? _0x1d6b04['message'] : 'send_message\x20failed', !![]);
|
|
2137
2172
|
}
|
|
2138
|
-
}),
|
|
2139
|
-
const
|
|
2173
|
+
}), _0x3a4075[_0x1f8968(_0x5185a3._0x456a9e)](_0x1f8968(_0x5185a3._0x12c30b), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2174
|
+
const _0x5470d0 = _0x1f8968;
|
|
2140
2175
|
try {
|
|
2141
|
-
return textResult(await
|
|
2142
|
-
} catch (
|
|
2143
|
-
return textResult(
|
|
2176
|
+
return textResult(await _0x4d45ec[_0x5470d0(0x1d7)]());
|
|
2177
|
+
} catch (_0x1d3a60) {
|
|
2178
|
+
return textResult(_0x1d3a60 instanceof Error ? _0x1d3a60['message'] : _0x5470d0(_0x1647bc._0x307924), !![]);
|
|
2144
2179
|
}
|
|
2145
|
-
}),
|
|
2146
|
-
'channel':
|
|
2147
|
-
'limit':
|
|
2148
|
-
'before':
|
|
2149
|
-
'after':
|
|
2150
|
-
}, async
|
|
2151
|
-
const
|
|
2180
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(_0x5185a3._0x314639), _0x1f8968(_0x5185a3._0x5d8432), {
|
|
2181
|
+
'channel': _0x27fd5d[_0x1f8968(0x108)](),
|
|
2182
|
+
'limit': _0x27fd5d['number']()[_0x1f8968(_0x5185a3._0x4762e8)](),
|
|
2183
|
+
'before': _0x27fd5d[_0x1f8968(0x1bf)]()[_0x1f8968(_0x5185a3._0x4762e8)](),
|
|
2184
|
+
'after': _0x27fd5d['number']()[_0x1f8968(0xf8)]()
|
|
2185
|
+
}, async _0x4516de => {
|
|
2186
|
+
const _0x12eca9 = _0x1f8968;
|
|
2152
2187
|
try {
|
|
2153
|
-
return textResult(await
|
|
2154
|
-
} catch (
|
|
2155
|
-
return textResult(
|
|
2188
|
+
return textResult(await _0x4d45ec['read_history'](_0x4516de));
|
|
2189
|
+
} catch (_0x172456) {
|
|
2190
|
+
return textResult(_0x172456 instanceof Error ? _0x172456[_0x12eca9(0x16e)] : _0x12eca9(_0x43abb3._0x5e3c1a), !![]);
|
|
2156
2191
|
}
|
|
2157
|
-
}),
|
|
2158
|
-
const
|
|
2192
|
+
}), _0x3a4075[_0x1f8968(_0x5185a3._0x456a9e)]('list_server', 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2193
|
+
const _0x39367c = _0x1f8968;
|
|
2159
2194
|
try {
|
|
2160
|
-
return textResult(await
|
|
2161
|
-
} catch (
|
|
2162
|
-
return textResult(
|
|
2195
|
+
return textResult(await _0x4d45ec['list_server']());
|
|
2196
|
+
} catch (_0x5ca12d) {
|
|
2197
|
+
return textResult(_0x5ca12d instanceof Error ? _0x5ca12d[_0x39367c(_0x322d2e._0x3c5905)] : _0x39367c(0x1d8), !![]);
|
|
2163
2198
|
}
|
|
2164
|
-
}),
|
|
2165
|
-
'channel':
|
|
2166
|
-
'status':
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
])[
|
|
2172
|
-
}, async
|
|
2173
|
-
const
|
|
2199
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(_0x5185a3._0x479ba4), _0x1f8968(_0x5185a3._0x446862), {
|
|
2200
|
+
'channel': _0x27fd5d['string'](),
|
|
2201
|
+
'status': _0x27fd5d[_0x1f8968(0x1c1)]([
|
|
2202
|
+
_0x1f8968(0x1b8),
|
|
2203
|
+
_0x1f8968(_0x5185a3._0x3c4a0e),
|
|
2204
|
+
_0x1f8968(_0x5185a3._0x1323f7),
|
|
2205
|
+
_0x1f8968(_0x5185a3._0x2d253e)
|
|
2206
|
+
])[_0x1f8968(_0x5185a3._0x4762e8)]()
|
|
2207
|
+
}, async _0xe1a386 => {
|
|
2208
|
+
const _0x44c057 = _0x1f8968;
|
|
2174
2209
|
try {
|
|
2175
|
-
return textResult(await
|
|
2176
|
-
} catch (
|
|
2177
|
-
return textResult(
|
|
2210
|
+
return textResult(await _0x4d45ec[_0x44c057(0x13c)](_0xe1a386));
|
|
2211
|
+
} catch (_0x4f12b1) {
|
|
2212
|
+
return textResult(_0x4f12b1 instanceof Error ? _0x4f12b1['message'] : _0x44c057(_0x39647c._0x15d4ed), !![]);
|
|
2178
2213
|
}
|
|
2179
|
-
}),
|
|
2180
|
-
'channel':
|
|
2181
|
-
'idempotency_key':
|
|
2182
|
-
'tasks':
|
|
2183
|
-
'title':
|
|
2184
|
-
'description':
|
|
2185
|
-
'priority':
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
])[
|
|
2214
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(0x176), _0x1f8968(0x103), {
|
|
2215
|
+
'channel': _0x27fd5d[_0x1f8968(_0x5185a3._0x42d67c)](),
|
|
2216
|
+
'idempotency_key': _0x27fd5d[_0x1f8968(_0x5185a3._0x3dba87)]()[_0x1f8968(_0x5185a3._0x4762e8)](),
|
|
2217
|
+
'tasks': _0x27fd5d['array'](_0x27fd5d[_0x1f8968(_0x5185a3._0x42f26b)]({
|
|
2218
|
+
'title': _0x27fd5d[_0x1f8968(0x108)](),
|
|
2219
|
+
'description': _0x27fd5d[_0x1f8968(0x108)]()[_0x1f8968(_0x5185a3._0x4762e8)](),
|
|
2220
|
+
'priority': _0x27fd5d['enum']([
|
|
2221
|
+
_0x1f8968(0xcd),
|
|
2222
|
+
_0x1f8968(0xc0),
|
|
2223
|
+
_0x1f8968(_0x5185a3._0x1a856c),
|
|
2224
|
+
_0x1f8968(_0x5185a3._0xad3018)
|
|
2225
|
+
])['optional']()
|
|
2191
2226
|
}))
|
|
2192
|
-
}, async
|
|
2193
|
-
const
|
|
2227
|
+
}, async _0x249c9d => {
|
|
2228
|
+
const _0x3541ed = _0x1f8968;
|
|
2194
2229
|
try {
|
|
2195
|
-
return textResult(await
|
|
2196
|
-
} catch (
|
|
2197
|
-
return textResult(
|
|
2230
|
+
return textResult(await _0x4d45ec[_0x3541ed(_0x317e36._0x441460)](_0x249c9d));
|
|
2231
|
+
} catch (_0x516cde) {
|
|
2232
|
+
return textResult(_0x516cde instanceof Error ? _0x516cde[_0x3541ed(_0x317e36._0x4b58d1)] : 'create_tasks\x20failed', !![]);
|
|
2198
2233
|
}
|
|
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
|
|
2234
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(0x111), _0x1f8968(_0x5185a3._0x25efee), {
|
|
2235
|
+
'channel': _0x27fd5d['string'](),
|
|
2236
|
+
'task_numbers': _0x27fd5d[_0x1f8968(0x151)](_0x27fd5d[_0x1f8968(_0x5185a3._0xf1c40a)]())[_0x1f8968(0xf8)](),
|
|
2237
|
+
'subtask_numbers': _0x27fd5d['array'](_0x27fd5d['number']())[_0x1f8968(_0x5185a3._0x4762e8)](),
|
|
2238
|
+
'message_ids': _0x27fd5d[_0x1f8968(0x151)](_0x27fd5d[_0x1f8968(_0x5185a3._0x1022e2)]())[_0x1f8968(0xf8)](),
|
|
2239
|
+
'evidence': _0x27fd5d[_0x1f8968(0x11f)](_0x27fd5d['string'](), _0x27fd5d[_0x1f8968(_0x5185a3._0xfc5e0c)]({
|
|
2240
|
+
'create_thread': _0x27fd5d[_0x1f8968(0x1f1)]()[_0x1f8968(0xf8)](),
|
|
2241
|
+
'create_task': _0x27fd5d['unknown']()[_0x1f8968(0xf8)]()
|
|
2242
|
+
}))[_0x1f8968(0xf8)](),
|
|
2243
|
+
'idempotency_key': _0x27fd5d[_0x1f8968(_0x5185a3._0x3dba87)]()[_0x1f8968(_0x5185a3._0x4762e8)]()
|
|
2244
|
+
}, async _0x4349aa => {
|
|
2245
|
+
const _0x40cf9f = _0x1f8968;
|
|
2211
2246
|
try {
|
|
2212
|
-
return textResult(await
|
|
2213
|
-
} catch (
|
|
2214
|
-
return textResult(
|
|
2247
|
+
return textResult(await _0x4d45ec[_0x40cf9f(0x111)](_0x4349aa));
|
|
2248
|
+
} catch (_0xd0257a) {
|
|
2249
|
+
return textResult(_0xd0257a instanceof Error ? _0xd0257a[_0x40cf9f(_0x20f330._0xe57d18)] : _0x40cf9f(0x73), !![]);
|
|
2215
2250
|
}
|
|
2216
|
-
}),
|
|
2217
|
-
'channel':
|
|
2218
|
-
'task_number':
|
|
2219
|
-
'subtask_number':
|
|
2220
|
-
'idempotency_key':
|
|
2221
|
-
}, async
|
|
2222
|
-
const
|
|
2251
|
+
}), _0x3a4075[_0x1f8968(_0x5185a3._0x423f49)](_0x1f8968(_0x5185a3._0x1c698a), 'Release\x20a\x20claimed\x20task\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.', {
|
|
2252
|
+
'channel': _0x27fd5d[_0x1f8968(0x108)](),
|
|
2253
|
+
'task_number': _0x27fd5d[_0x1f8968(_0x5185a3._0x1035bb)](),
|
|
2254
|
+
'subtask_number': _0x27fd5d[_0x1f8968(0x1bf)]()[_0x1f8968(0xf8)](),
|
|
2255
|
+
'idempotency_key': _0x27fd5d[_0x1f8968(_0x5185a3._0x42d67c)]()[_0x1f8968(0xf8)]()
|
|
2256
|
+
}, async _0x4c1f71 => {
|
|
2257
|
+
const _0x2af3d6 = _0x1f8968;
|
|
2223
2258
|
try {
|
|
2224
|
-
return textResult(await
|
|
2225
|
-
} catch (
|
|
2226
|
-
return textResult(
|
|
2259
|
+
return textResult(await _0x4d45ec[_0x2af3d6(_0x489146._0x185f56)](_0x4c1f71));
|
|
2260
|
+
} catch (_0xea8bb9) {
|
|
2261
|
+
return textResult(_0xea8bb9 instanceof Error ? _0xea8bb9['message'] : _0x2af3d6(0x1c8), !![]);
|
|
2227
2262
|
}
|
|
2228
|
-
}),
|
|
2229
|
-
'channel':
|
|
2230
|
-
'task_number':
|
|
2231
|
-
'subtask_number':
|
|
2232
|
-
'status':
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2263
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(_0x5185a3._0x5cb734), _0x1f8968(_0x5185a3._0x49701b), {
|
|
2264
|
+
'channel': _0x27fd5d['string'](),
|
|
2265
|
+
'task_number': _0x27fd5d[_0x1f8968(0x1bf)](),
|
|
2266
|
+
'subtask_number': _0x27fd5d[_0x1f8968(0x1bf)]()[_0x1f8968(0xf8)](),
|
|
2267
|
+
'status': _0x27fd5d[_0x1f8968(_0x5185a3._0x14c42b)]([
|
|
2268
|
+
_0x1f8968(0x1b8),
|
|
2269
|
+
'in_progress',
|
|
2270
|
+
_0x1f8968(0x10d),
|
|
2271
|
+
_0x1f8968(_0x5185a3._0x29ec60)
|
|
2237
2272
|
]),
|
|
2238
|
-
'idempotency_key':
|
|
2239
|
-
}, async
|
|
2240
|
-
const
|
|
2273
|
+
'idempotency_key': _0x27fd5d['string']()[_0x1f8968(0xf8)]()
|
|
2274
|
+
}, async _0x2b0912 => {
|
|
2275
|
+
const _0x559492 = _0x1f8968;
|
|
2241
2276
|
try {
|
|
2242
|
-
return textResult(await
|
|
2243
|
-
} catch (
|
|
2244
|
-
return textResult(
|
|
2277
|
+
return textResult(await _0x4d45ec[_0x559492(0x127)](_0x2b0912));
|
|
2278
|
+
} catch (_0x3239e7) {
|
|
2279
|
+
return textResult(_0x3239e7 instanceof Error ? _0x3239e7['message'] : _0x559492(_0x23d425._0xe54c10), !![]);
|
|
2245
2280
|
}
|
|
2246
|
-
}),
|
|
2247
|
-
'channel':
|
|
2248
|
-
'file_path':
|
|
2249
|
-
}, async
|
|
2250
|
-
const
|
|
2281
|
+
}), _0x3a4075['tool']('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.', {
|
|
2282
|
+
'channel': _0x27fd5d[_0x1f8968(0x108)](),
|
|
2283
|
+
'file_path': _0x27fd5d[_0x1f8968(0x108)]()
|
|
2284
|
+
}, async _0x2fab5c => {
|
|
2285
|
+
const _0x31961a = _0x1f8968;
|
|
2251
2286
|
try {
|
|
2252
|
-
return textResult(await
|
|
2253
|
-
} catch (
|
|
2254
|
-
return textResult(
|
|
2287
|
+
return textResult(await _0x4d45ec['upload_file'](_0x2fab5c));
|
|
2288
|
+
} catch (_0x3082a3) {
|
|
2289
|
+
return textResult(_0x3082a3 instanceof Error ? _0x3082a3[_0x31961a(_0xf95aa._0x198c0d)] : _0x31961a(_0xf95aa._0x5ab864), !![]);
|
|
2255
2290
|
}
|
|
2256
|
-
}),
|
|
2257
|
-
const
|
|
2291
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(0xf7), _0x1f8968(_0x5185a3._0x1ed8c9), { 'attachment_id': _0x27fd5d[_0x1f8968(0x108)]() }, async _0x1901c4 => {
|
|
2292
|
+
const _0x26de39 = _0x1f8968;
|
|
2258
2293
|
try {
|
|
2259
|
-
return textResult(await
|
|
2260
|
-
} catch (
|
|
2261
|
-
return textResult(
|
|
2294
|
+
return textResult(await _0x4d45ec[_0x26de39(0xf7)](_0x1901c4));
|
|
2295
|
+
} catch (_0x53eccb) {
|
|
2296
|
+
return textResult(_0x53eccb instanceof Error ? _0x53eccb[_0x26de39(_0x51e830._0x39caed)] : _0x26de39(0x18b), !![]);
|
|
2262
2297
|
}
|
|
2263
|
-
}),
|
|
2264
|
-
const
|
|
2298
|
+
}), _0x3a4075['tool'](_0x1f8968(0x167), _0x1f8968(_0x5185a3._0xc2b5fb), { 'work_key': _0x27fd5d[_0x1f8968(0x108)]() }, async _0x51c502 => {
|
|
2299
|
+
const _0x288071 = _0x1f8968;
|
|
2265
2300
|
try {
|
|
2266
|
-
return textResult(await
|
|
2267
|
-
} catch (
|
|
2268
|
-
return textResult(
|
|
2301
|
+
return textResult(await _0x4d45ec[_0x288071(_0x465c1e._0x5f1f27)](_0x51c502));
|
|
2302
|
+
} catch (_0x3c1eb4) {
|
|
2303
|
+
return textResult(_0x3c1eb4 instanceof Error ? _0x3c1eb4[_0x288071(_0x465c1e._0xf5198c)] : 'get_worker_status\x20failed', !![]);
|
|
2269
2304
|
}
|
|
2270
|
-
}),
|
|
2271
|
-
const
|
|
2305
|
+
}), _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(_0x5185a3._0x1732b2), 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x27fd5d['string']() }, async _0x38f767 => {
|
|
2306
|
+
const _0x563589 = _0x1f8968;
|
|
2272
2307
|
try {
|
|
2273
|
-
return textResult(await
|
|
2274
|
-
} catch (
|
|
2275
|
-
return textResult(
|
|
2308
|
+
return textResult(await _0x4d45ec['get_worker_result'](_0x38f767));
|
|
2309
|
+
} catch (_0x3fc895) {
|
|
2310
|
+
return textResult(_0x3fc895 instanceof Error ? _0x3fc895[_0x563589(0x16e)] : _0x563589(_0x10c178._0x3f47d2), !![]);
|
|
2276
2311
|
}
|
|
2277
|
-
}),
|
|
2278
|
-
'work_key':
|
|
2279
|
-
'result':
|
|
2312
|
+
}), _0x3a4075[_0x1f8968(_0x5185a3._0xd76e13)](_0x1f8968(0x1b5), _0x1f8968(0x11a), {
|
|
2313
|
+
'work_key': _0x27fd5d[_0x1f8968(_0x5185a3._0x3dba87)](),
|
|
2314
|
+
'result': _0x27fd5d[_0x1f8968(0x1c1)]([
|
|
2280
2315
|
'completed',
|
|
2281
|
-
|
|
2282
|
-
|
|
2316
|
+
_0x1f8968(_0x5185a3._0xc14745),
|
|
2317
|
+
_0x1f8968(0x99)
|
|
2283
2318
|
]),
|
|
2284
|
-
'summary':
|
|
2285
|
-
'decisions':
|
|
2286
|
-
'files_changed':
|
|
2287
|
-
'open_issues':
|
|
2288
|
-
'next_steps':
|
|
2289
|
-
}, async
|
|
2290
|
-
const
|
|
2319
|
+
'summary': _0x27fd5d[_0x1f8968(_0x5185a3._0x1022e2)](),
|
|
2320
|
+
'decisions': _0x27fd5d[_0x1f8968(_0x5185a3._0x589789)](_0x27fd5d[_0x1f8968(0x108)]())[_0x1f8968(0xf8)](),
|
|
2321
|
+
'files_changed': _0x27fd5d[_0x1f8968(0x151)](_0x27fd5d[_0x1f8968(_0x5185a3._0x3dba87)]())[_0x1f8968(_0x5185a3._0x4762e8)](),
|
|
2322
|
+
'open_issues': _0x27fd5d[_0x1f8968(0x151)](_0x27fd5d[_0x1f8968(_0x5185a3._0x5bf345)]())[_0x1f8968(0xf8)](),
|
|
2323
|
+
'next_steps': _0x27fd5d[_0x1f8968(_0x5185a3._0x113f40)](_0x27fd5d['string']())[_0x1f8968(_0x5185a3._0x4762e8)]()
|
|
2324
|
+
}, async _0x2e430c => {
|
|
2325
|
+
const _0x5558f5 = _0x1f8968;
|
|
2291
2326
|
try {
|
|
2292
|
-
return textResult(await
|
|
2293
|
-
} catch (
|
|
2294
|
-
return textResult(
|
|
2327
|
+
return textResult(await _0x4d45ec[_0x5558f5(_0x27622c._0xc612a4)](_0x2e430c));
|
|
2328
|
+
} catch (_0x2aec4a) {
|
|
2329
|
+
return textResult(_0x2aec4a instanceof Error ? _0x2aec4a[_0x5558f5(0x16e)] : _0x5558f5(_0x27622c._0x43a6b9), !![]);
|
|
2295
2330
|
}
|
|
2296
|
-
}),
|
|
2297
|
-
'work_key':
|
|
2298
|
-
'reason':
|
|
2299
|
-
}, async
|
|
2300
|
-
const
|
|
2331
|
+
}), _0x3a4075['tool'](_0x1f8968(0x8a), 'Escalate\x20an\x20issue\x20to\x20the\x20main\x20agent\x20session.\x20Use\x20when\x20the\x20worker\x20cannot\x20resolve\x20a\x20problem\x20alone\x20and\x20needs\x20main\x20to\x20intervene.', {
|
|
2332
|
+
'work_key': _0x27fd5d['string'](),
|
|
2333
|
+
'reason': _0x27fd5d['string']()
|
|
2334
|
+
}, async _0x4f89e0 => {
|
|
2335
|
+
const _0x59eb32 = _0x1f8968;
|
|
2301
2336
|
try {
|
|
2302
|
-
return textResult(await
|
|
2303
|
-
} catch (
|
|
2304
|
-
return textResult(
|
|
2337
|
+
return textResult(await _0x4d45ec['escalate_to_main'](_0x4f89e0));
|
|
2338
|
+
} catch (_0x404e22) {
|
|
2339
|
+
return textResult(_0x404e22 instanceof Error ? _0x404e22[_0x59eb32(0x16e)] : 'escalate_to_main\x20failed', !![]);
|
|
2305
2340
|
}
|
|
2306
|
-
}),
|
|
2307
|
-
const
|
|
2341
|
+
}), _0x137535?.[_0x1f8968(_0x5185a3._0x3e39fc)] && _0x3a4075[_0x1f8968(0x8f)](_0x1f8968(0x84), _0x1f8968(_0x5185a3._0x9d14a8), { 'work_key': _0x27fd5d[_0x1f8968(0x108)]() }, async _0x22cfbe => {
|
|
2342
|
+
const _0x5d3c8c = _0x1f8968;
|
|
2308
2343
|
try {
|
|
2309
|
-
return textResult(await
|
|
2310
|
-
} catch (
|
|
2311
|
-
return textResult(
|
|
2344
|
+
return textResult(await _0x4d45ec[_0x5d3c8c(0x84)](_0x22cfbe));
|
|
2345
|
+
} catch (_0x1ad2fb) {
|
|
2346
|
+
return textResult(_0x1ad2fb instanceof Error ? _0x1ad2fb[_0x5d3c8c(_0x51883e._0x1a4218)] : _0x5d3c8c(_0x51883e._0x54a042), !![]);
|
|
2312
2347
|
}
|
|
2313
2348
|
});
|
|
2314
2349
|
}
|
|
2315
|
-
async function createChatBridgeServer(
|
|
2316
|
-
const
|
|
2317
|
-
'name':
|
|
2318
|
-
'version':
|
|
2319
|
-
}),
|
|
2320
|
-
return await registerChatBridgeTools(
|
|
2321
|
-
'handlers':
|
|
2322
|
-
'server':
|
|
2350
|
+
async function createChatBridgeServer(_0x4d3f86) {
|
|
2351
|
+
const _0x2b05a6 = { _0xd8fef5: 0xfa }, _0x577faa = _0x301d4a, {McpServer: _0x75e4f0} = await import(_0x577faa(_0x2b05a6._0xd8fef5)), _0x484fe2 = new _0x75e4f0({
|
|
2352
|
+
'name': _0x577faa(0x133),
|
|
2353
|
+
'version': '0.0.0'
|
|
2354
|
+
}), _0x3572c7 = createChatBridgeHandlers(_0x4d3f86);
|
|
2355
|
+
return await registerChatBridgeTools(_0x484fe2, _0x3572c7, { 'workerMode': _0x4d3f86[_0x577faa(0x10a)] }), {
|
|
2356
|
+
'handlers': _0x3572c7,
|
|
2357
|
+
'server': _0x484fe2
|
|
2323
2358
|
};
|
|
2324
2359
|
}
|
|
2325
|
-
function readFlag(
|
|
2326
|
-
const
|
|
2327
|
-
if (
|
|
2360
|
+
function readFlag(_0x4841c7, _0x2b8f90) {
|
|
2361
|
+
const _0xf1b74f = _0x301d4a, _0x44026e = _0x4841c7[_0xf1b74f(0x1d6)](_0x2b8f90);
|
|
2362
|
+
if (_0x44026e === -0x1)
|
|
2328
2363
|
return void 0x0;
|
|
2329
|
-
return
|
|
2364
|
+
return _0x4841c7[_0x44026e + 0x1];
|
|
2330
2365
|
}
|
|
2331
|
-
function parseChatBridgeArgs(
|
|
2332
|
-
const
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2366
|
+
function parseChatBridgeArgs(_0x1c49e3) {
|
|
2367
|
+
const _0x1d892a = {
|
|
2368
|
+
_0x2c6946: 0x1a9,
|
|
2369
|
+
_0x48f971: 0x7a,
|
|
2370
|
+
_0x53b8da: 0x18a,
|
|
2371
|
+
_0x15511f: 0x1cd,
|
|
2372
|
+
_0x335127: 0xb0,
|
|
2373
|
+
_0x392684: 0xb5,
|
|
2374
|
+
_0x12988a: 0x110,
|
|
2375
|
+
_0x1c8173: 0xe6
|
|
2376
|
+
}, _0xb2e7c3 = _0x301d4a, _0x172bf9 = readFlag(_0x1c49e3, _0xb2e7c3(_0x1d892a._0x2c6946)), _0x4be892 = readFlag(_0x1c49e3, _0xb2e7c3(_0x1d892a._0x48f971)), _0x4d0bb3 = readFlag(_0x1c49e3, _0xb2e7c3(_0x1d892a._0x53b8da)), _0x2654a9 = readFlag(_0x1c49e3, _0xb2e7c3(0x123)) ?? _0xb2e7c3(0x183), _0x24b992 = readFlag(_0x1c49e3, '--daemon-local-url'), _0x195227 = readFlag(_0x1c49e3, _0xb2e7c3(_0x1d892a._0x15511f)), _0x815062 = readFlag(_0x1c49e3, '--worker-mode-enabled'), _0x5f1d98 = readFlag(_0x1c49e3, _0xb2e7c3(_0x1d892a._0x335127)), _0x14318b = readFlag(_0x1c49e3, _0xb2e7c3(_0x1d892a._0x392684)), _0x1908ab = _0x1c49e3[_0xb2e7c3(_0x1d892a._0x12988a)](_0xb2e7c3(0x10f)), _0x25bf64 = _0x4d0bb3 === void 0x0 ? void 0x0 : Number['parseInt'](_0x4d0bb3, 0xa);
|
|
2377
|
+
if (!_0x172bf9)
|
|
2378
|
+
throw new Error('Missing\x20--agent-id');
|
|
2379
|
+
if (!_0x4be892)
|
|
2380
|
+
throw new Error(_0xb2e7c3(0x107));
|
|
2381
|
+
if (_0x4d0bb3 !== void 0x0 && (_0x25bf64 === void 0x0 || !Number[_0xb2e7c3(_0x1d892a._0x1c8173)](_0x25bf64) || _0x25bf64 < 0x0))
|
|
2342
2382
|
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2343
2383
|
return {
|
|
2344
|
-
'agentId':
|
|
2345
|
-
'daemonApiKey':
|
|
2346
|
-
'daemonLocalUrl':
|
|
2347
|
-
'initialLastSeenSeq':
|
|
2348
|
-
'sessionId':
|
|
2349
|
-
'serverUrl':
|
|
2350
|
-
'workerModeEnabled':
|
|
2351
|
-
'workerSessionId':
|
|
2352
|
-
'workerThreadTarget':
|
|
2353
|
-
'workerMode':
|
|
2384
|
+
'agentId': _0x172bf9,
|
|
2385
|
+
'daemonApiKey': _0x4be892,
|
|
2386
|
+
'daemonLocalUrl': _0x24b992,
|
|
2387
|
+
'initialLastSeenSeq': _0x25bf64,
|
|
2388
|
+
'sessionId': _0x195227,
|
|
2389
|
+
'serverUrl': _0x2654a9,
|
|
2390
|
+
'workerModeEnabled': _0x815062 === void 0x0 ? void 0x0 : _0x815062 !== _0xb2e7c3(0x1e5),
|
|
2391
|
+
'workerSessionId': _0x5f1d98,
|
|
2392
|
+
'workerThreadTarget': _0x14318b,
|
|
2393
|
+
'workerMode': _0x1908ab
|
|
2354
2394
|
};
|
|
2355
2395
|
}
|
|
2356
|
-
async function runChatBridgeCli(
|
|
2357
|
-
const
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
'
|
|
2363
|
-
'
|
|
2364
|
-
'
|
|
2396
|
+
async function runChatBridgeCli(_0x15c44f) {
|
|
2397
|
+
const _0x479ce2 = {
|
|
2398
|
+
_0x3e86ef: 0x1ab,
|
|
2399
|
+
_0x598ab0: 0x9f,
|
|
2400
|
+
_0x3c869f: 0xbb
|
|
2401
|
+
}, _0x1cec3f = _0x301d4a, _0x58a5fd = parseChatBridgeArgs(_0x15c44f), {StdioServerTransport: _0x5b9631} = await import(_0x1cec3f(_0x479ce2._0x3e86ef)), _0x108ec6 = createInternalAgentClient(_0x58a5fd), _0x23af3e = createAttachmentCache(), _0x41f1d1 = await createChatBridgeServer({
|
|
2402
|
+
'agentId': _0x58a5fd[_0x1cec3f(_0x479ce2._0x598ab0)],
|
|
2403
|
+
'attachmentCache': _0x23af3e,
|
|
2404
|
+
'client': _0x108ec6,
|
|
2405
|
+
'daemonLocalUrl': _0x58a5fd['daemonLocalUrl'],
|
|
2365
2406
|
'uploadPreparer': prepareUploadFile,
|
|
2366
|
-
'workerModeEnabled':
|
|
2367
|
-
'workerMode':
|
|
2407
|
+
'workerModeEnabled': _0x58a5fd[_0x1cec3f(_0x479ce2._0x3c869f)],
|
|
2408
|
+
'workerMode': _0x58a5fd[_0x1cec3f(0x10a)],
|
|
2409
|
+
'workerThreadTarget': _0x58a5fd[_0x1cec3f(0x166)]
|
|
2368
2410
|
});
|
|
2369
|
-
await
|
|
2411
|
+
await _0x41f1d1[_0x1cec3f(0x106)][_0x1cec3f(0x19b)](new _0x5b9631());
|
|
2370
2412
|
}
|
|
2371
|
-
var executedAsEntry = process[
|
|
2372
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2413
|
+
var executedAsEntry = process[_0x301d4a(0x76)][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])['href'] : ![];
|
|
2414
|
+
executedAsEntry && await runChatBridgeCli(process[_0x301d4a(0x76)][_0x301d4a(0x165)](0x2));
|
|
2373
2415
|
export {
|
|
2374
2416
|
createChatBridgeHandlers,
|
|
2375
2417
|
createChatBridgeServer,
|