@dscord/daemon 0.1.51 → 0.1.53
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 +2138 -2164
- package/dist/index.js +9102 -9017
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const _0x2cd54a = _0x46e8;
|
|
2
|
+
(function (_0xf0d828, _0x3df696) {
|
|
3
|
+
const _0x5058cc = {
|
|
4
|
+
_0x5b2321: 0x228,
|
|
5
|
+
_0x50fd69: 0x1cb,
|
|
6
|
+
_0x520f4b: 0x219,
|
|
7
|
+
_0x1a540a: 0x207,
|
|
8
|
+
_0x2b4f16: 0x15d,
|
|
9
|
+
_0x1bb633: 0x206
|
|
10
|
+
}, _0x5a89f5 = _0x46e8, _0x5aff6d = _0xf0d828();
|
|
9
11
|
while (!![]) {
|
|
10
12
|
try {
|
|
11
|
-
const
|
|
12
|
-
if (
|
|
13
|
+
const _0x46a2fc = -parseInt(_0x5a89f5(0x153)) / 0x1 + parseInt(_0x5a89f5(_0x5058cc._0x5b2321)) / 0x2 + -parseInt(_0x5a89f5(_0x5058cc._0x50fd69)) / 0x3 * (-parseInt(_0x5a89f5(0x27f)) / 0x4) + -parseInt(_0x5a89f5(0x179)) / 0x5 + -parseInt(_0x5a89f5(_0x5058cc._0x520f4b)) / 0x6 * (parseInt(_0x5a89f5(_0x5058cc._0x1a540a)) / 0x7) + -parseInt(_0x5a89f5(_0x5058cc._0x2b4f16)) / 0x8 * (-parseInt(_0x5a89f5(_0x5058cc._0x1bb633)) / 0x9) + parseInt(_0x5a89f5(0x282)) / 0xa * (parseInt(_0x5a89f5(0x172)) / 0xb);
|
|
14
|
+
if (_0x46a2fc === _0x3df696)
|
|
13
15
|
break;
|
|
14
16
|
else
|
|
15
|
-
|
|
16
|
-
} catch (
|
|
17
|
-
|
|
17
|
+
_0x5aff6d['push'](_0x5aff6d['shift']());
|
|
18
|
+
} catch (_0x3b1821) {
|
|
19
|
+
_0x5aff6d['push'](_0x5aff6d['shift']());
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
|
-
}(
|
|
22
|
+
}(_0x409f, 0xa2f38));
|
|
21
23
|
import { pathToFileURL } from 'node:url';
|
|
22
24
|
import {
|
|
23
25
|
mkdir,
|
|
@@ -27,2350 +29,2322 @@ import {
|
|
|
27
29
|
writeFile
|
|
28
30
|
} from 'node:fs/promises';
|
|
29
31
|
import { homedir } from 'node:os';
|
|
30
|
-
import
|
|
32
|
+
import _0x145552 from 'node:path';
|
|
31
33
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
32
|
-
'.csv':
|
|
33
|
-
'.gif':
|
|
34
|
-
'.jpeg':
|
|
35
|
-
'.jpg':
|
|
36
|
-
'.json':
|
|
37
|
-
'.md':
|
|
38
|
-
'.pdf':
|
|
39
|
-
'.png':
|
|
40
|
-
'.svg':
|
|
41
|
-
'.txt':
|
|
42
|
-
'.webp':
|
|
43
|
-
'.xml':
|
|
44
|
-
'.zip':
|
|
34
|
+
'.csv': 'text/csv',
|
|
35
|
+
'.gif': _0x2cd54a(0x2a4),
|
|
36
|
+
'.jpeg': _0x2cd54a(0x196),
|
|
37
|
+
'.jpg': _0x2cd54a(0x196),
|
|
38
|
+
'.json': 'application/json',
|
|
39
|
+
'.md': _0x2cd54a(0x222),
|
|
40
|
+
'.pdf': _0x2cd54a(0x1d0),
|
|
41
|
+
'.png': _0x2cd54a(0x274),
|
|
42
|
+
'.svg': 'image/svg+xml',
|
|
43
|
+
'.txt': _0x2cd54a(0x11e),
|
|
44
|
+
'.webp': _0x2cd54a(0x27e),
|
|
45
|
+
'.xml': _0x2cd54a(0x1be),
|
|
46
|
+
'.zip': _0x2cd54a(0x23d)
|
|
45
47
|
};
|
|
46
|
-
function
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
48
|
+
function guessContentType(_0x3eada6) {
|
|
49
|
+
const _0x5ea49d = _0x2cd54a;
|
|
50
|
+
return MIME_BY_EXTENSION[_0x145552['extname'](_0x3eada6)[_0x5ea49d(0x1b5)]()] ?? _0x5ea49d(0x11c);
|
|
51
|
+
}
|
|
52
|
+
function safeFilename(_0x458d33) {
|
|
53
|
+
return _0x458d33['replace'](/[\\/]/g, '-');
|
|
54
|
+
}
|
|
55
|
+
function extensionFor(_0x1d2b6b) {
|
|
56
|
+
const _0x3e168d = { _0xff27cc: 0x155 }, _0x3ce39b = _0x2cd54a, _0x10fcbf = Object[_0x3ce39b(0x1da)](MIME_BY_EXTENSION)[_0x3ce39b(0x170)](([, _0x881101]) => _0x881101 === _0x1d2b6b);
|
|
57
|
+
return _0x10fcbf?.[0x0] ?? _0x3ce39b(_0x3e168d._0xff27cc);
|
|
58
|
+
}
|
|
59
|
+
function _0x46e8(_0xfb77ea, _0x18d2a3) {
|
|
60
|
+
_0xfb77ea = _0xfb77ea - 0x117;
|
|
61
|
+
const _0x409ffb = _0x409f();
|
|
62
|
+
let _0x46e87c = _0x409ffb[_0xfb77ea];
|
|
63
|
+
if (_0x46e8['IYUIjx'] === undefined) {
|
|
64
|
+
var _0x5ded13 = function (_0x376b6d) {
|
|
65
|
+
const _0x17ca40 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
66
|
+
let _0x145552 = '', _0x3eada6 = '';
|
|
67
|
+
for (let _0x458d33 = 0x0, _0x1d2b6b, _0x10fcbf, _0x881101 = 0x0; _0x10fcbf = _0x376b6d['charAt'](_0x881101++); ~_0x10fcbf && (_0x1d2b6b = _0x458d33 % 0x4 ? _0x1d2b6b * 0x40 + _0x10fcbf : _0x10fcbf, _0x458d33++ % 0x4) ? _0x145552 += String['fromCharCode'](0xff & _0x1d2b6b >> (-0x2 * _0x458d33 & 0x6)) : 0x0) {
|
|
68
|
+
_0x10fcbf = _0x17ca40['indexOf'](_0x10fcbf);
|
|
69
|
+
}
|
|
70
|
+
for (let _0x1f3e48 = 0x0, _0x1cb4ff = _0x145552['length']; _0x1f3e48 < _0x1cb4ff; _0x1f3e48++) {
|
|
71
|
+
_0x3eada6 += '%' + ('00' + _0x145552['charCodeAt'](_0x1f3e48)['toString'](0x10))['slice'](-0x2);
|
|
72
|
+
}
|
|
73
|
+
return decodeURIComponent(_0x3eada6);
|
|
74
|
+
};
|
|
75
|
+
_0x46e8['megSak'] = _0x5ded13, _0x46e8['UFwgoK'] = {}, _0x46e8['IYUIjx'] = !![];
|
|
76
|
+
}
|
|
77
|
+
const _0x1c4190 = _0x409ffb[0x0], _0x61f0ba = _0xfb77ea + _0x1c4190, _0x345b7e = _0x46e8['UFwgoK'][_0x61f0ba];
|
|
78
|
+
return !_0x345b7e ? (_0x46e87c = _0x46e8['megSak'](_0x46e87c), _0x46e8['UFwgoK'][_0x61f0ba] = _0x46e87c) : _0x46e87c = _0x345b7e, _0x46e87c;
|
|
79
|
+
}
|
|
80
|
+
async function prepareUploadFile(_0x1f3e48, _0x1cb4ff = {}) {
|
|
81
|
+
const _0x10eec3 = {
|
|
82
|
+
_0x5f2fb5: 0x17d,
|
|
83
|
+
_0x2c3970: 0x122,
|
|
84
|
+
_0x3c0f8e: 0x210,
|
|
85
|
+
_0x357151: 0x166,
|
|
86
|
+
_0x51a571: 0x19e,
|
|
87
|
+
_0x2d7cd4: 0x1bf,
|
|
88
|
+
_0x3c16f4: 0x12e,
|
|
89
|
+
_0xabaf47: 0x166
|
|
90
|
+
}, _0x55e471 = _0x2cd54a;
|
|
91
|
+
if (!_0x145552[_0x55e471(0x187)](_0x1f3e48))
|
|
92
|
+
throw new Error(_0x55e471(0x147));
|
|
93
|
+
const _0x194be2 = await stat(_0x1f3e48)[_0x55e471(_0x10eec3._0x5f2fb5)](() => null);
|
|
94
|
+
if (!_0x194be2 || !_0x194be2[_0x55e471(_0x10eec3._0x2c3970)]())
|
|
95
|
+
throw new Error(_0x55e471(_0x10eec3._0x3c0f8e) + _0x1f3e48);
|
|
96
|
+
const _0x2da4cc = _0x1cb4ff[_0x55e471(0x13b)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
97
|
+
if (_0x194be2[_0x55e471(_0x10eec3._0x357151)] > _0x2da4cc)
|
|
98
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x194be2['size']);
|
|
99
|
+
const _0x278974 = await readFile(_0x1f3e48), _0x345a35 = _0x145552[_0x55e471(_0x10eec3._0x51a571)](_0x1f3e48);
|
|
100
|
+
return {
|
|
101
|
+
'contentBase64': _0x278974[_0x55e471(_0x10eec3._0x2d7cd4)](_0x55e471(_0x10eec3._0x3c16f4)),
|
|
102
|
+
'contentType': guessContentType(_0x345a35),
|
|
103
|
+
'filename': _0x345a35,
|
|
104
|
+
'sizeBytes': _0x194be2[_0x55e471(_0x10eec3._0xabaf47)]
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function createAttachmentCache(_0x36765d = {}) {
|
|
108
|
+
const _0x251870 = {
|
|
109
|
+
_0x44ea81: 0x291,
|
|
110
|
+
_0x4ba2e7: 0x24e
|
|
111
|
+
}, _0x592044 = { _0x4d20c9: 0x291 }, _0xb6f0cf = _0x2cd54a, _0x303251 = _0x36765d[_0xb6f0cf(0x140)] ?? _0x145552[_0xb6f0cf(_0x251870._0x44ea81)](homedir(), _0xb6f0cf(_0x251870._0x4ba2e7), _0xb6f0cf(0x246));
|
|
112
|
+
return {
|
|
113
|
+
'cacheDir': _0x303251,
|
|
114
|
+
async 'findCachedPath'(_0x1710b4) {
|
|
115
|
+
const _0x227ae1 = _0xb6f0cf;
|
|
116
|
+
await mkdir(_0x303251, { 'recursive': !![] });
|
|
117
|
+
const _0x1a6d86 = await readdir(_0x303251), _0x1a04ec = _0x1a6d86['find'](_0x113ee5 => _0x113ee5['startsWith'](_0x1710b4 + '-') || _0x113ee5[_0x227ae1(0x149)](_0x1710b4));
|
|
118
|
+
return _0x1a04ec ? _0x145552[_0x227ae1(_0x592044._0x4d20c9)](_0x303251, _0x1a04ec) : null;
|
|
119
|
+
},
|
|
120
|
+
async 'save'(_0x297253) {
|
|
121
|
+
const _0x202a8b = _0xb6f0cf;
|
|
122
|
+
await mkdir(_0x303251, { 'recursive': !![] });
|
|
123
|
+
const _0x2a751b = _0x297253['originalFilename']?.['trim']() ? safeFilename(_0x297253[_0x202a8b(0x1d6)]) : '' + _0x297253['attachmentId'] + extensionFor(_0x297253[_0x202a8b(0x19d)]), _0x56b36a = _0x145552[_0x202a8b(0x291)](_0x303251, _0x297253[_0x202a8b(0x208)] + '-' + _0x2a751b);
|
|
124
|
+
return await writeFile(_0x56b36a, _0x297253['data']), _0x56b36a;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
import {
|
|
129
|
+
createHash,
|
|
130
|
+
randomUUID
|
|
131
|
+
} from 'node:crypto';
|
|
132
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x2cd54a(0x19b);
|
|
133
|
+
function ensureSegment(_0x2c4e9e) {
|
|
134
|
+
const _0x388cb4 = _0x2cd54a, _0x210ced = _0x2c4e9e[_0x388cb4(0x275)]();
|
|
135
|
+
if (!_0x210ced || _0x210ced[_0x388cb4(0x289)](':'))
|
|
136
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
137
|
+
return _0x210ced;
|
|
138
|
+
}
|
|
139
|
+
function parseThreadParts(_0x4e4734) {
|
|
140
|
+
const _0x1b6c82 = { _0x6b0057: 0x14e }, _0xff8f47 = _0x2cd54a, _0x30fda6 = _0x4e4734[_0xff8f47(0x126)](':');
|
|
141
|
+
if (_0x30fda6['length'] < 0x1 || _0x30fda6[_0xff8f47(_0x1b6c82._0x6b0057)] > 0x2)
|
|
142
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
143
|
+
return {
|
|
144
|
+
'channelName': ensureSegment(_0x30fda6[0x0] ?? ''),
|
|
145
|
+
'threadShortId': _0x30fda6[0x1] ? ensureSegment(_0x30fda6[0x1]) : null
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
function parseTarget(_0x49ca82) {
|
|
149
|
+
const _0x130a0d = {
|
|
150
|
+
_0x1eea6e: 0x1a3,
|
|
151
|
+
_0x3f4151: 0x292,
|
|
152
|
+
_0x173068: 0x23c,
|
|
153
|
+
_0x7cb73f: 0x28f,
|
|
154
|
+
_0x34d0c0: 0x149,
|
|
155
|
+
_0x1e2b20: 0x299,
|
|
156
|
+
_0x12a777: 0x1a3
|
|
157
|
+
}, _0x2354e9 = _0x2cd54a, _0x3f7960 = _0x49ca82['trim']();
|
|
158
|
+
if (!_0x3f7960)
|
|
159
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
+
if (_0x3f7960[_0x2354e9(0x149)]('#')) {
|
|
161
|
+
const _0x1548c6 = parseThreadParts(_0x3f7960[_0x2354e9(0x28f)](0x1)), _0x1a2397 = '#' + _0x1548c6[_0x2354e9(0x292)];
|
|
162
|
+
if (!_0x1548c6[_0x2354e9(_0x130a0d._0x1eea6e)])
|
|
163
|
+
return {
|
|
164
|
+
'channelName': _0x1548c6[_0x2354e9(_0x130a0d._0x3f4151)],
|
|
165
|
+
'channelTarget': _0x1a2397,
|
|
166
|
+
'kind': _0x2354e9(0x16c),
|
|
167
|
+
'target': _0x1a2397
|
|
168
|
+
};
|
|
169
|
+
return {
|
|
170
|
+
'channelName': _0x1548c6[_0x2354e9(0x292)],
|
|
171
|
+
'channelTarget': _0x1a2397,
|
|
172
|
+
'kind': _0x2354e9(_0x130a0d._0x173068),
|
|
173
|
+
'target': _0x1a2397 + ':' + _0x1548c6[_0x2354e9(0x1a3)],
|
|
174
|
+
'threadShortId': _0x1548c6[_0x2354e9(0x1a3)]
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
if (_0x3f7960['startsWith'](_0x2354e9(0x1c0))) {
|
|
178
|
+
const _0x270601 = parseThreadParts(_0x3f7960[_0x2354e9(_0x130a0d._0x7cb73f)](0x3));
|
|
179
|
+
if (!_0x270601[_0x2354e9(0x292)][_0x2354e9(_0x130a0d._0x34d0c0)](_0x2354e9(_0x130a0d._0x1e2b20)))
|
|
180
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
181
|
+
const _0x34f376 = 'dm:' + _0x270601[_0x2354e9(0x292)];
|
|
182
|
+
if (!_0x270601[_0x2354e9(_0x130a0d._0x12a777)])
|
|
183
|
+
return {
|
|
184
|
+
'channelName': _0x270601['channelName'],
|
|
185
|
+
'channelTarget': _0x34f376,
|
|
186
|
+
'kind': 'channel',
|
|
187
|
+
'target': _0x34f376
|
|
188
|
+
};
|
|
189
|
+
return {
|
|
190
|
+
'channelName': _0x270601['channelName'],
|
|
191
|
+
'channelTarget': _0x34f376,
|
|
192
|
+
'kind': _0x2354e9(0x23c),
|
|
193
|
+
'target': _0x34f376 + ':' + _0x270601[_0x2354e9(_0x130a0d._0x1eea6e)],
|
|
194
|
+
'threadShortId': _0x270601[_0x2354e9(0x1a3)]
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
198
|
+
}
|
|
199
|
+
function asErrorMessage(_0x1b43f2, _0x22c67e) {
|
|
200
|
+
const _0x3d0bd9 = { _0x5f0e0a: 0x275 }, _0x305c11 = _0x2cd54a;
|
|
201
|
+
if (typeof _0x1b43f2 === 'string' && _0x1b43f2[_0x305c11(_0x3d0bd9._0x5f0e0a)]())
|
|
202
|
+
return _0x1b43f2;
|
|
203
|
+
return _0x22c67e;
|
|
204
|
+
}
|
|
205
|
+
function asRecord(_0x532771) {
|
|
206
|
+
return typeof _0x532771 === 'object' && _0x532771 !== null ? _0x532771 : {};
|
|
207
|
+
}
|
|
208
|
+
function stableStringify(_0x2f47fa) {
|
|
209
|
+
const _0x3875f4 = {
|
|
210
|
+
_0x4fede0: 0x1b9,
|
|
211
|
+
_0x1bcee4: 0x291,
|
|
212
|
+
_0x1fc4d2: 0x1da,
|
|
213
|
+
_0x5786c9: 0x121,
|
|
214
|
+
_0x52dae9: 0x13f
|
|
215
|
+
}, _0x1f9179 = _0x2cd54a;
|
|
216
|
+
if (_0x2f47fa === null || typeof _0x2f47fa !== 'object')
|
|
217
|
+
return JSON[_0x1f9179(0x1c9)](_0x2f47fa);
|
|
218
|
+
if (Array[_0x1f9179(_0x3875f4._0x4fede0)](_0x2f47fa))
|
|
219
|
+
return '[' + _0x2f47fa[_0x1f9179(0x13f)](_0x3ba7d9 => stableStringify(_0x3ba7d9))[_0x1f9179(_0x3875f4._0x1bcee4)](',') + ']';
|
|
220
|
+
const _0x511cf8 = Object[_0x1f9179(_0x3875f4._0x1fc4d2)](_0x2f47fa)[_0x1f9179(_0x3875f4._0x5786c9)](([, _0x6681c4]) => _0x6681c4 !== void 0x0)['sort'](([_0xe21bc], [_0x18c85d]) => _0xe21bc[_0x1f9179(0x169)](_0x18c85d))[_0x1f9179(_0x3875f4._0x52dae9)](([_0x1e4209, _0x39872d]) => JSON['stringify'](_0x1e4209) + ':' + stableStringify(_0x39872d));
|
|
221
|
+
return '{' + _0x511cf8[_0x1f9179(0x291)](',') + '}';
|
|
222
|
+
}
|
|
223
|
+
function createHeaders(_0x477238) {
|
|
224
|
+
const _0x3c5d56 = _0x2cd54a;
|
|
225
|
+
return {
|
|
226
|
+
'Content-Type': _0x3c5d56(0x230),
|
|
227
|
+
'x-daemon-api-key': _0x477238
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function toHttpBaseUrl(_0x4a23fb) {
|
|
231
|
+
const _0x33b9ad = { _0x19b5e1: 0x245 }, _0x7b792e = _0x2cd54a, _0x14481d = new URL(_0x4a23fb);
|
|
232
|
+
if (_0x14481d[_0x7b792e(_0x33b9ad._0x19b5e1)] === _0x7b792e(0x11a))
|
|
233
|
+
_0x14481d[_0x7b792e(0x245)] = _0x7b792e(0x27d);
|
|
234
|
+
else
|
|
235
|
+
_0x14481d[_0x7b792e(_0x33b9ad._0x19b5e1)] === 'wss:' && (_0x14481d['protocol'] = 'https:');
|
|
236
|
+
return _0x14481d['toString']()[_0x7b792e(0x16a)](/\/$/, '');
|
|
237
|
+
}
|
|
238
|
+
function isMentionBoundary(_0x53f9c5) {
|
|
239
|
+
const _0x52f805 = _0x2cd54a;
|
|
240
|
+
return !_0x53f9c5 || /\s|[([{'",。!?、:;]/[_0x52f805(0x29c)](_0x53f9c5);
|
|
241
|
+
}
|
|
242
|
+
function isMentionTerminal(_0x47de83) {
|
|
243
|
+
return !_0x47de83 || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x47de83);
|
|
244
|
+
}
|
|
245
|
+
function buildMatchableEntries(_0x8cf6d4) {
|
|
246
|
+
const _0x1d4969 = {
|
|
247
|
+
_0x42cae8: 0x1a8,
|
|
248
|
+
_0x199d99: 0x26e,
|
|
249
|
+
_0x3aa78a: 0x293
|
|
250
|
+
}, _0x31adce = _0x2cd54a, _0x11977c = [];
|
|
251
|
+
for (const _0x57ded5 of [
|
|
252
|
+
..._0x8cf6d4['agents'],
|
|
253
|
+
..._0x8cf6d4[_0x31adce(_0x1d4969._0x42cae8)]
|
|
254
|
+
]) {
|
|
255
|
+
_0x11977c[_0x31adce(_0x1d4969._0x199d99)]({
|
|
256
|
+
'matchName': _0x57ded5[_0x31adce(0x123)],
|
|
257
|
+
'matchNameLower': _0x57ded5['name'][_0x31adce(0x293)](),
|
|
258
|
+
'participantId': _0x57ded5['id']
|
|
259
|
+
}), _0x57ded5['id'] !== _0x57ded5[_0x31adce(0x123)] && _0x11977c['push']({
|
|
260
|
+
'matchName': _0x57ded5['id'],
|
|
261
|
+
'matchNameLower': _0x57ded5['id'][_0x31adce(_0x1d4969._0x3aa78a)](),
|
|
262
|
+
'participantId': _0x57ded5['id']
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
return _0x11977c;
|
|
266
|
+
}
|
|
267
|
+
function extractMentionedParticipantIds(_0x236057, _0x57aaa2) {
|
|
268
|
+
const _0x3bb830 = {
|
|
269
|
+
_0x18f196: 0x1b6,
|
|
270
|
+
_0x3c3a62: 0x28f,
|
|
271
|
+
_0x49be67: 0x150,
|
|
272
|
+
_0x1c3e04: 0x283,
|
|
273
|
+
_0x2c7e4b: 0x214,
|
|
274
|
+
_0x5ee91c: 0x14e
|
|
275
|
+
}, _0x571fff = { _0x5d3b8e: 0x14e }, _0x4a8b68 = _0x2cd54a, _0xd0b0ae = buildMatchableEntries(_0x57aaa2)[_0x4a8b68(_0x3bb830._0x18f196)]((_0x5787a8, _0x3c4bba) => _0x3c4bba['matchName'][_0x4a8b68(0x14e)] - _0x5787a8[_0x4a8b68(0x1ea)][_0x4a8b68(0x14e)]), _0x48902c = [], _0x452a67 = new Set();
|
|
276
|
+
for (let _0x5e1756 = 0x0; _0x5e1756 < _0x236057['length']; _0x5e1756 += 0x1) {
|
|
277
|
+
if (_0x236057[_0x5e1756] !== '@' || !isMentionBoundary(_0x236057[_0x5e1756 - 0x1]))
|
|
278
|
+
continue;
|
|
279
|
+
const _0x31ba17 = _0x236057[_0x4a8b68(_0x3bb830._0x3c3a62)](_0x5e1756 + 0x1), _0x59aa83 = _0x31ba17[_0x4a8b68(0x293)](), _0x3174c5 = _0xd0b0ae['find'](_0x28ee54 => {
|
|
280
|
+
const _0x2b65ef = _0x4a8b68;
|
|
281
|
+
if (!_0x59aa83[_0x2b65ef(0x149)](_0x28ee54[_0x2b65ef(0x1f0)]))
|
|
282
|
+
return ![];
|
|
283
|
+
return isMentionTerminal(_0x31ba17[_0x28ee54['matchName'][_0x2b65ef(_0x571fff._0x5d3b8e)]]);
|
|
284
|
+
});
|
|
285
|
+
if (!_0x3174c5 || _0x452a67[_0x4a8b68(_0x3bb830._0x49be67)](_0x3174c5[_0x4a8b68(0x214)]))
|
|
286
|
+
continue;
|
|
287
|
+
_0x452a67[_0x4a8b68(_0x3bb830._0x1c3e04)](_0x3174c5[_0x4a8b68(_0x3bb830._0x2c7e4b)]), _0x48902c[_0x4a8b68(0x26e)](_0x3174c5[_0x4a8b68(0x214)]), _0x5e1756 += _0x3174c5[_0x4a8b68(0x1ea)][_0x4a8b68(_0x3bb830._0x5ee91c)];
|
|
288
|
+
}
|
|
289
|
+
return _0x48902c;
|
|
290
|
+
}
|
|
291
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
292
|
+
function anySignal(..._0x1a4d51) {
|
|
293
|
+
const _0x119668 = {
|
|
294
|
+
_0x38e28d: 0x22e,
|
|
295
|
+
_0x2dab3c: 0x234,
|
|
296
|
+
_0x4081f5: 0x234
|
|
297
|
+
}, _0x4887ae = _0x2cd54a, _0x3d59ba = new AbortController();
|
|
298
|
+
for (const _0x2e3566 of _0x1a4d51) {
|
|
299
|
+
if (_0x2e3566[_0x4887ae(_0x119668._0x38e28d)])
|
|
300
|
+
return _0x3d59ba['abort'](_0x2e3566[_0x4887ae(0x1f8)]), _0x3d59ba[_0x4887ae(_0x119668._0x2dab3c)];
|
|
301
|
+
_0x2e3566['addEventListener'](_0x4887ae(0x265), () => _0x3d59ba[_0x4887ae(0x265)](_0x2e3566[_0x4887ae(0x1f8)]), {
|
|
302
|
+
'once': !![],
|
|
303
|
+
'signal': _0x3d59ba[_0x4887ae(_0x119668._0x4081f5)]
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return _0x3d59ba[_0x4887ae(0x234)];
|
|
307
|
+
}
|
|
308
|
+
function createInternalAgentClient(_0x2b4307) {
|
|
309
|
+
const _0x5b684b = {
|
|
310
|
+
_0x14f2d2: 0x21c,
|
|
311
|
+
_0x35b4c7: 0x250,
|
|
312
|
+
_0x342495: 0x1c6,
|
|
313
|
+
_0xec4963: 0x12c,
|
|
314
|
+
_0x4781f5: 0x269,
|
|
315
|
+
_0x37df96: 0x275
|
|
316
|
+
}, _0x28a537 = {
|
|
317
|
+
_0x21980a: 0x1bf,
|
|
318
|
+
_0x315a2b: 0x21f,
|
|
319
|
+
_0x3b4a5c: 0x280,
|
|
320
|
+
_0x50ff17: 0x14e,
|
|
321
|
+
_0x47c4db: 0x13f,
|
|
322
|
+
_0x14029b: 0x154,
|
|
323
|
+
_0x1dc122: 0x16b,
|
|
324
|
+
_0x1dccd4: 0x1c8,
|
|
325
|
+
_0x591369: 0x186,
|
|
326
|
+
_0x3eecbe: 0x128,
|
|
327
|
+
_0x45e6ff: 0x1da,
|
|
328
|
+
_0x16f936: 0x217,
|
|
329
|
+
_0x1b8281: 0x182,
|
|
330
|
+
_0x3d3a82: 0x18b,
|
|
331
|
+
_0x2ac008: 0x223,
|
|
332
|
+
_0x364316: 0x200,
|
|
333
|
+
_0x4cfecb: 0x1b3,
|
|
334
|
+
_0x723284: 0x1b3,
|
|
335
|
+
_0xbebc4f: 0x25d,
|
|
336
|
+
_0x370038: 0x16b,
|
|
337
|
+
_0x51dd50: 0x175,
|
|
338
|
+
_0x13943b: 0x175,
|
|
339
|
+
_0x4a9058: 0x26e
|
|
340
|
+
}, _0x2cb3d7 = {
|
|
341
|
+
_0x138870: 0x16c,
|
|
342
|
+
_0x2bc00e: 0x1dd
|
|
343
|
+
}, _0x4856d0 = {
|
|
344
|
+
_0x327f32: 0x1c2,
|
|
345
|
+
_0x5d2f15: 0x234,
|
|
346
|
+
_0x5782a5: 0x261,
|
|
347
|
+
_0x4405c1: 0x1cc,
|
|
348
|
+
_0x19348e: 0x17b,
|
|
349
|
+
_0x571949: 0x186,
|
|
350
|
+
_0x29bd4a: 0x1a6
|
|
351
|
+
}, _0x12bb9f = {
|
|
352
|
+
_0x3f4b94: 0x1c8,
|
|
353
|
+
_0x32ab56: 0x198,
|
|
354
|
+
_0xc62c7c: 0x1f5,
|
|
355
|
+
_0x6b5792: 0x1ca,
|
|
356
|
+
_0x5877bd: 0x1cc,
|
|
357
|
+
_0x215f27: 0x1d6,
|
|
358
|
+
_0x479cf2: 0x22b,
|
|
359
|
+
_0xb33809: 0x241
|
|
360
|
+
}, _0x2bf957 = { _0x580e7a: 0x21f }, _0x146d3c = {
|
|
361
|
+
_0x43a34d: 0x198,
|
|
362
|
+
_0x4230df: 0x24b,
|
|
363
|
+
_0x59129b: 0x1c9,
|
|
364
|
+
_0x2a920e: 0x146
|
|
365
|
+
}, _0x3226f8 = {
|
|
366
|
+
_0x416558: 0x198,
|
|
367
|
+
_0x2644b4: 0x276
|
|
368
|
+
}, _0x3cec28 = {
|
|
369
|
+
_0x3f33b9: 0x198,
|
|
370
|
+
_0x5e686f: 0x195,
|
|
371
|
+
_0x4c3cd1: 0x1c9,
|
|
372
|
+
_0x536152: 0x1e1
|
|
373
|
+
}, _0x265026 = {
|
|
374
|
+
_0x3b10a7: 0x125,
|
|
375
|
+
_0x3ae6ce: 0x16c,
|
|
376
|
+
_0x43ad8f: 0x21f,
|
|
377
|
+
_0x25193a: 0x1fa
|
|
378
|
+
}, _0x3383be = {
|
|
379
|
+
_0x5566ef: 0x243,
|
|
380
|
+
_0x10f763: 0x1e1,
|
|
381
|
+
_0x30a3c0: 0x1cc
|
|
382
|
+
}, _0x11025e = {
|
|
383
|
+
_0x1fc922: 0x1ba,
|
|
384
|
+
_0x4fbda9: 0x268,
|
|
385
|
+
_0x424f79: 0x1ba
|
|
386
|
+
}, _0x1608e8 = { _0x30ccd1: 0x1e1 }, _0xd7d123 = {
|
|
387
|
+
_0x228cb4: 0x277,
|
|
388
|
+
_0x5616d9: 0x1cc
|
|
389
|
+
}, _0x3c0ecb = {
|
|
390
|
+
_0x211878: 0x29f,
|
|
391
|
+
_0x1ebd8c: 0x1dd,
|
|
392
|
+
_0x5cbe69: 0x173,
|
|
393
|
+
_0x2f14a8: 0x1e1
|
|
394
|
+
}, _0x46c077 = {
|
|
395
|
+
_0x449e70: 0x1c8,
|
|
396
|
+
_0x72a46b: 0x1c8,
|
|
397
|
+
_0x3cbc46: 0x1dd,
|
|
398
|
+
_0x13f4ee: 0x125,
|
|
399
|
+
_0x2163e8: 0x125,
|
|
400
|
+
_0x3a1bbf: 0x133,
|
|
401
|
+
_0x12c3f6: 0x198,
|
|
402
|
+
_0x31406a: 0x1f7,
|
|
403
|
+
_0xae60e8: 0x1bf,
|
|
404
|
+
_0x493c3d: 0x1fa,
|
|
405
|
+
_0x12844d: 0x13f,
|
|
406
|
+
_0x294bcf: 0x280,
|
|
407
|
+
_0x38d70a: 0x1bb,
|
|
408
|
+
_0x4a06f1: 0x220
|
|
409
|
+
}, _0x1d9c60 = { _0x52d574: 0x123 }, _0x2ad810 = {
|
|
410
|
+
_0x1e9326: 0x1b3,
|
|
411
|
+
_0x24a681: 0x160,
|
|
412
|
+
_0x28ee7f: 0x128,
|
|
413
|
+
_0x1e803a: 0x229,
|
|
414
|
+
_0x2bf23e: 0x1a3,
|
|
415
|
+
_0x59995b: 0x1c8
|
|
416
|
+
}, _0x408f1b = {
|
|
417
|
+
_0x509e84: 0x160,
|
|
418
|
+
_0x8e8f67: 0x1c8,
|
|
419
|
+
_0x27570c: 0x28f,
|
|
420
|
+
_0xb68195: 0x160
|
|
421
|
+
}, _0xbf772f = { _0x5b5f56: 0x255 }, _0x535f06 = { _0x430af4: 0x17d }, _0x4081c5 = {
|
|
422
|
+
_0xec45cd: 0x198,
|
|
423
|
+
_0x3cc207: 0x1c8
|
|
424
|
+
}, _0x2fe62b = { _0x1c12e9: 0x230 }, _0x1224c5 = {
|
|
425
|
+
_0x2a50e9: 0x272,
|
|
426
|
+
_0x6fc219: 0x29a
|
|
427
|
+
}, _0x502d92 = {
|
|
428
|
+
_0x534ab5: 0x234,
|
|
429
|
+
_0x39ddf9: 0x243
|
|
430
|
+
}, _0x535cc9 = {
|
|
431
|
+
_0x3e194f: 0x234,
|
|
432
|
+
_0x35b2ee: 0x156
|
|
433
|
+
}, _0x507171 = {
|
|
434
|
+
_0x2a3b1d: 0x1b2,
|
|
435
|
+
_0x57b1fa: 0x18d,
|
|
436
|
+
_0x371eca: 0x281,
|
|
437
|
+
_0x10e738: 0x297,
|
|
438
|
+
_0x2abe0a: 0x233,
|
|
439
|
+
_0xfafbea: 0x125
|
|
440
|
+
}, _0x3694c9 = {
|
|
441
|
+
_0xed2d4b: 0x1aa,
|
|
442
|
+
_0x4473c0: 0x1a6
|
|
443
|
+
}, _0x4dcd07 = {
|
|
444
|
+
_0x2a0dd7: 0x26c,
|
|
445
|
+
_0x4adcde: 0x237,
|
|
446
|
+
_0x2657b2: 0x16a,
|
|
447
|
+
_0x5b7810: 0x158,
|
|
448
|
+
_0x4686cc: 0x197,
|
|
449
|
+
_0x47ce4f: 0x286
|
|
450
|
+
}, _0x39387c = _0x2cd54a, _0x432b33 = _0x2b4307[_0x39387c(_0x5b684b._0x14f2d2)] ?? fetch, _0x271e41 = _0x2b4307[_0x39387c(_0x5b684b._0x35b4c7)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x354a76 = typeof _0x2b4307[_0x39387c(0x15a)] === _0x39387c(0x1c4) && _0x2b4307['initialLastSeenSeq'] > 0x0 ? _0x2b4307[_0x39387c(0x15a)] : 0x0, _0x2bc3b5 = _0x2b4307[_0x39387c(_0x5b684b._0x342495)]?.['trim']() || void 0x0, _0x2f54d5 = _0x2b4307[_0x39387c(_0x5b684b._0xec4963)]?.[_0x39387c(0x275)]() || void 0x0, _0x50d0d5 = _0x2b4307[_0x39387c(_0x5b684b._0x4781f5)] === !![], _0x51747a = _0x2b4307['workerSessionId']?.[_0x39387c(_0x5b684b._0x37df96)]() || void 0x0, _0x21c4f8 = _0x2b4307[_0x39387c(0x191)]?.['trim']() || void 0x0, _0x23725b = createHeaders(_0x2b4307[_0x39387c(0x225)]), _0x21fb6a = toHttpBaseUrl(_0x2b4307[_0x39387c(0x288)]);
|
|
451
|
+
let _0xbd0243 = null;
|
|
452
|
+
const _0x542714 = new Map();
|
|
453
|
+
let _0x5890c9 = _0x354a76, _0x2aacaf = _0x354a76;
|
|
454
|
+
function _0x49f0d5(_0x6eb9c1) {
|
|
455
|
+
const _0x1502f3 = _0x39387c, _0x3bb13c = _0x6eb9c1[_0x1502f3(_0x4dcd07._0x2a0dd7)]['headers'][_0x1502f3(0x186)]('content-type') ?? 'unknown', _0x441707 = _0x6eb9c1[_0x1502f3(_0x4dcd07._0x4adcde)][_0x1502f3(0x275)]()[_0x1502f3(_0x4dcd07._0x2657b2)](/\s+/g, '\x20')[_0x1502f3(0x28f)](0x0, 0x78) || _0x1502f3(0x14f);
|
|
456
|
+
return _0x1502f3(_0x4dcd07._0x5b7810) + _0x6eb9c1[_0x1502f3(_0x4dcd07._0x4686cc)] + _0x1502f3(0x1ec) + _0x6eb9c1[_0x1502f3(_0x4dcd07._0x2a0dd7)]['status'] + ',\x20content-type=' + _0x3bb13c + _0x1502f3(0x1e6) + _0x441707 + _0x1502f3(_0x4dcd07._0x47ce4f);
|
|
457
|
+
}
|
|
458
|
+
async function _0x5f2d94(_0x19784d, _0x233db9) {
|
|
459
|
+
const _0x584255 = _0x39387c, _0x127b8e = Buffer[_0x584255(_0x3694c9._0xed2d4b)](await _0x233db9[_0x584255(_0x3694c9._0x4473c0)]())['toString']('utf8');
|
|
460
|
+
if (!_0x127b8e[_0x584255(0x275)]())
|
|
461
|
+
return {};
|
|
462
|
+
try {
|
|
463
|
+
return JSON['parse'](_0x127b8e);
|
|
464
|
+
} catch {
|
|
465
|
+
throw new Error(_0x49f0d5({
|
|
466
|
+
'bodyText': _0x127b8e,
|
|
467
|
+
'requestUrl': _0x19784d,
|
|
468
|
+
'response': _0x233db9
|
|
469
|
+
}));
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
function _0x322222(_0x5186f4, _0x5ba484) {
|
|
473
|
+
const _0x4babd5 = _0x39387c, _0x21075e = typeof _0x5ba484[_0x4babd5(0x1b2)] === 'string' ? _0x5ba484[_0x4babd5(_0x507171._0x2a3b1d)][_0x4babd5(0x275)]() : '';
|
|
474
|
+
if (_0x21075e)
|
|
475
|
+
return _0x21075e;
|
|
476
|
+
const _0x4ffe9f = Date[_0x4babd5(0x14b)]();
|
|
477
|
+
for (const [_0x4159ec, _0x469340] of _0x542714) {
|
|
478
|
+
_0x469340[_0x4babd5(0x165)] <= _0x4ffe9f && _0x542714[_0x4babd5(_0x507171._0x57b1fa)](_0x4159ec);
|
|
479
|
+
}
|
|
480
|
+
const _0x3f070a = {
|
|
481
|
+
..._0x5ba484,
|
|
482
|
+
'idempotency_key': void 0x0
|
|
483
|
+
}, _0x222e5a = createHash('sha256')[_0x4babd5(0x252)](_0x5186f4 + ':' + stableStringify(_0x3f070a))[_0x4babd5(_0x507171._0x371eca)](_0x4babd5(_0x507171._0x10e738)), _0x27e773 = _0x5186f4 + ':' + _0x222e5a, _0x163d35 = _0x542714[_0x4babd5(0x186)](_0x27e773);
|
|
484
|
+
if (_0x163d35)
|
|
485
|
+
return _0x163d35[_0x4babd5(_0x507171._0x2abe0a)];
|
|
486
|
+
const _0xbf8392 = _0x4babd5(0x1ed) + _0x5186f4 + ':' + randomUUID();
|
|
487
|
+
return _0x542714[_0x4babd5(_0x507171._0xfafbea)](_0x27e773, {
|
|
488
|
+
'expiresAt': _0x4ffe9f + 0x5 * 0x3c * 0x3e8,
|
|
489
|
+
'value': _0xbf8392
|
|
490
|
+
}), _0xbf8392;
|
|
491
|
+
}
|
|
492
|
+
async function _0x527030(_0x25fd12, _0x1b1596) {
|
|
493
|
+
const _0x3518f2 = _0x39387c, _0x315d2e = new AbortController(), _0x310736 = setTimeout(() => _0x315d2e[_0x3518f2(0x265)](), _0x271e41), _0x18c065 = _0x1b1596?.['signal'] ? anySignal(_0x1b1596[_0x3518f2(_0x535cc9._0x3e194f)], _0x315d2e['signal']) : _0x315d2e['signal'], _0x395e20 = '' + _0x21fb6a + _0x25fd12;
|
|
494
|
+
try {
|
|
495
|
+
const _0x5e0b02 = await _0x432b33(_0x395e20, {
|
|
496
|
+
..._0x1b1596,
|
|
497
|
+
'signal': _0x18c065
|
|
498
|
+
}), _0xf7dc1f = await _0x5f2d94(_0x395e20, _0x5e0b02);
|
|
499
|
+
if (!_0x5e0b02['ok'] || _0xf7dc1f['success'] === ![])
|
|
500
|
+
throw new Error(asErrorMessage(_0xf7dc1f[_0x3518f2(_0x535cc9._0x35b2ee)], _0x3518f2(0x261) + _0x5e0b02['status']));
|
|
501
|
+
return _0xf7dc1f;
|
|
502
|
+
} finally {
|
|
503
|
+
clearTimeout(_0x310736);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
async function _0x1bbf73(_0x129fc9, _0x2c7fa0) {
|
|
507
|
+
const _0x4241e3 = _0x39387c, _0x297ad4 = new AbortController(), _0x480b10 = setTimeout(() => _0x297ad4['abort'](), _0x271e41), _0x4a6c1b = _0x2c7fa0?.[_0x4241e3(0x234)] ? anySignal(_0x2c7fa0[_0x4241e3(0x234)], _0x297ad4[_0x4241e3(0x234)]) : _0x297ad4[_0x4241e3(_0x502d92._0x534ab5)], _0xe3351c = '' + _0x21fb6a + _0x129fc9;
|
|
508
|
+
try {
|
|
509
|
+
const _0x37f505 = await _0x432b33(_0xe3351c, {
|
|
510
|
+
..._0x2c7fa0,
|
|
511
|
+
'signal': _0x4a6c1b
|
|
512
|
+
}), _0xfc110f = await _0x5f2d94(_0xe3351c, _0x37f505);
|
|
513
|
+
if (!_0x37f505['ok'])
|
|
514
|
+
throw new Error(asErrorMessage(_0xfc110f[_0x4241e3(0x156)], _0x4241e3(0x261) + _0x37f505[_0x4241e3(_0x502d92._0x39ddf9)]));
|
|
515
|
+
return _0xfc110f;
|
|
516
|
+
} finally {
|
|
517
|
+
clearTimeout(_0x480b10);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
async function _0x4cf89a(_0x35ba07) {
|
|
521
|
+
const _0x3f2c52 = _0x39387c;
|
|
522
|
+
if (!_0x2f54d5 || _0x35ba07 <= _0x2aacaf)
|
|
523
|
+
return;
|
|
524
|
+
await _0x527030('/api/agent-sessions/' + encodeURIComponent(_0x2f54d5) + _0x3f2c52(_0x1224c5._0x2a50e9), {
|
|
525
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x35ba07 }),
|
|
526
|
+
'headers': _0x23725b,
|
|
527
|
+
'method': _0x3f2c52(_0x1224c5._0x6fc219)
|
|
528
|
+
}), _0x2aacaf = _0x35ba07;
|
|
529
|
+
}
|
|
530
|
+
async function _0x5a72d3(_0x1dbb05) {
|
|
531
|
+
const _0x5b3366 = _0x39387c;
|
|
532
|
+
if (!_0x2bc3b5 || !_0x51747a || _0x1dbb05 <= _0x2aacaf)
|
|
533
|
+
return;
|
|
534
|
+
const _0x88a36 = await _0x432b33(_0x2bc3b5 + _0x5b3366(0x28a), {
|
|
535
|
+
'body': JSON[_0x5b3366(0x1c9)]({
|
|
536
|
+
'last_seen_seq': _0x1dbb05,
|
|
537
|
+
'worker_session_id': _0x51747a
|
|
538
|
+
}),
|
|
539
|
+
'headers': { 'Content-Type': _0x5b3366(_0x2fe62b._0x1c12e9) },
|
|
540
|
+
'method': 'POST'
|
|
541
|
+
});
|
|
542
|
+
if (!_0x88a36['ok'])
|
|
543
|
+
throw new Error('HTTP\x20' + _0x88a36['status']);
|
|
544
|
+
_0x2aacaf = _0x1dbb05;
|
|
545
|
+
}
|
|
546
|
+
async function _0x32f7ee(_0x13811e) {
|
|
547
|
+
const _0x469e90 = _0x39387c, _0x16c835 = parseTarget(_0x13811e), _0x3e94ed = await _0x527030('/internal/agent/' + _0x2b4307[_0x469e90(_0x4081c5._0xec45cd)] + '/resolve-channel', {
|
|
548
|
+
'body': JSON[_0x469e90(0x1c9)]({ 'target': _0x16c835[_0x469e90(0x1ca)] }),
|
|
549
|
+
'headers': _0x23725b,
|
|
550
|
+
'method': _0x469e90(0x1e1)
|
|
551
|
+
});
|
|
552
|
+
return {
|
|
553
|
+
'channelId': _0x3e94ed[_0x469e90(0x1cc)]?.[_0x469e90(0x1dd)] ?? '',
|
|
554
|
+
'target': _0x16c835['channelTarget'],
|
|
555
|
+
'task': _0x3e94ed['data']?.[_0x469e90(0x18c)],
|
|
556
|
+
'threadId': _0x3e94ed[_0x469e90(0x1cc)]?.[_0x469e90(_0x4081c5._0x3cc207)],
|
|
557
|
+
'threadNumber': _0x3e94ed[_0x469e90(0x1cc)]?.[_0x469e90(0x128)]
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
async function _0x360470(_0x18c159 = {}) {
|
|
561
|
+
const _0x594671 = {
|
|
562
|
+
_0x2cbca0: 0x21f,
|
|
563
|
+
_0x55a585: 0x25b,
|
|
564
|
+
_0x2b18e7: 0x2a0,
|
|
565
|
+
_0x508547: 0x13f,
|
|
566
|
+
_0x3a88fd: 0x121,
|
|
567
|
+
_0x3b2069: 0x13f,
|
|
568
|
+
_0x3fe46d: 0x1cc,
|
|
569
|
+
_0x57f2f1: 0x205,
|
|
570
|
+
_0x3da793: 0x1cc,
|
|
571
|
+
_0x1a4086: 0x123
|
|
572
|
+
}, _0xc5329 = _0x39387c;
|
|
573
|
+
if (!_0x18c159['forceRefresh'] && _0xbd0243)
|
|
574
|
+
return _0xbd0243;
|
|
575
|
+
return _0xbd0243 = (async () => {
|
|
576
|
+
const _0x11d32c = _0x46e8, _0x15379b = await _0x527030(_0x11d32c(_0x594671._0x2cbca0) + _0x2b4307[_0x11d32c(0x198)] + _0x11d32c(_0x594671._0x55a585), {
|
|
577
|
+
'headers': _0x23725b,
|
|
578
|
+
'method': 'GET'
|
|
579
|
+
}), _0x502fc5 = _0x15379b['data']?.[_0x11d32c(_0x594671._0x2b18e7)] ?? [], _0xa1c1f5 = _0x502fc5['filter'](_0x51904f => _0x51904f[_0x11d32c(0x1a0)]?.['type'] === 'agent')[_0x11d32c(_0x594671._0x508547)](_0x3ff0ba => ({
|
|
580
|
+
'id': _0x146cbd(_0x3ff0ba),
|
|
581
|
+
'name': _0x46ba0f(_0x3ff0ba)
|
|
582
|
+
}))[_0x11d32c(_0x594671._0x3a88fd)](_0x43f5e4 => _0x43f5e4['id']), _0x4c1f5a = _0x502fc5[_0x11d32c(0x121)](_0x3d1ee2 => _0x3d1ee2[_0x11d32c(0x1a0)]?.[_0x11d32c(0x271)] !== _0x11d32c(0x26d))[_0x11d32c(_0x594671._0x3b2069)](_0x58b179 => ({
|
|
583
|
+
'id': _0x146cbd(_0x58b179),
|
|
584
|
+
'name': _0x46ba0f(_0x58b179)
|
|
585
|
+
}))['filter'](_0x43fa75 => _0x43fa75['id']), _0x44f91e = _0x15379b[_0x11d32c(_0x594671._0x3fe46d)]?.[_0x11d32c(_0x594671._0x57f2f1)]['id'] ?? '';
|
|
586
|
+
return {
|
|
587
|
+
'agents': _0xa1c1f5,
|
|
588
|
+
'channels': _0x15379b['data']?.[_0x11d32c(0x154)] ?? [],
|
|
589
|
+
'humans': _0x4c1f5a,
|
|
590
|
+
'serverId': _0x44f91e,
|
|
591
|
+
'serverName': _0x15379b[_0x11d32c(_0x594671._0x3da793)]?.[_0x11d32c(0x205)][_0x11d32c(_0x594671._0x1a4086)] ?? _0x44f91e
|
|
592
|
+
};
|
|
593
|
+
})()[_0xc5329(_0x535f06._0x430af4)](_0x38f54e => {
|
|
594
|
+
_0xbd0243 = null;
|
|
595
|
+
throw _0x38f54e;
|
|
596
|
+
}), _0xbd0243;
|
|
597
|
+
}
|
|
598
|
+
function _0x2a2396(_0x62949, _0x3442bc) {
|
|
599
|
+
const _0x21d8ed = _0x39387c;
|
|
600
|
+
return _0x3442bc[_0x21d8ed(_0xbf772f._0x5b5f56)][_0x21d8ed(0x1b0)](_0xaa875c => _0xaa875c['id'] === _0x62949 || _0xaa875c['name'] === _0x62949) ? 'agent' : 'human';
|
|
601
|
+
}
|
|
602
|
+
function _0x24ea17(_0x45df46) {
|
|
603
|
+
const _0x566ca3 = _0x39387c;
|
|
604
|
+
if (_0x45df46['threadNumber'] != null)
|
|
605
|
+
return _0x45df46[_0x566ca3(_0x408f1b._0x509e84)] + ':t' + _0x45df46[_0x566ca3(0x128)];
|
|
606
|
+
if (_0x45df46[_0x566ca3(0x229)])
|
|
607
|
+
return _0x45df46['channelTarget'] + ':' + _0x45df46[_0x566ca3(0x229)];
|
|
608
|
+
if (_0x45df46[_0x566ca3(_0x408f1b._0x8e8f67)])
|
|
609
|
+
return _0x45df46[_0x566ca3(0x160)] + ':' + _0x45df46[_0x566ca3(0x1c8)][_0x566ca3(_0x408f1b._0x27570c)](0x0, 0x8);
|
|
610
|
+
return _0x45df46[_0x566ca3(_0x408f1b._0xb68195)];
|
|
611
|
+
}
|
|
612
|
+
function _0x3bbf3a(_0x40390e, _0x2c1f98) {
|
|
613
|
+
const _0x454431 = _0x39387c;
|
|
614
|
+
try {
|
|
615
|
+
const _0x270897 = parseTarget(_0x40390e);
|
|
616
|
+
if (_0x270897[_0x454431(_0x2ad810._0x1e9326)] !== 'thread' || _0x270897['channelTarget'] !== _0x2c1f98[_0x454431(_0x2ad810._0x24a681)])
|
|
617
|
+
return ![];
|
|
618
|
+
if (_0x2c1f98[_0x454431(0x128)] != null && _0x270897[_0x454431(0x1a3)] === 't' + _0x2c1f98[_0x454431(_0x2ad810._0x28ee7f)])
|
|
619
|
+
return !![];
|
|
620
|
+
if (_0x2c1f98['rootMessageId'])
|
|
621
|
+
return _0x270897[_0x454431(0x1a3)] === _0x2c1f98[_0x454431(_0x2ad810._0x1e803a)] || _0x2c1f98['rootMessageId'][_0x454431(0x149)](_0x270897[_0x454431(0x1a3)]);
|
|
622
|
+
if (_0x2c1f98[_0x454431(0x1c8)])
|
|
623
|
+
return _0x270897[_0x454431(_0x2ad810._0x2bf23e)] === _0x2c1f98[_0x454431(_0x2ad810._0x59995b)] || _0x2c1f98[_0x454431(_0x2ad810._0x59995b)][_0x454431(0x149)](_0x270897[_0x454431(_0x2ad810._0x2bf23e)]);
|
|
624
|
+
return ![];
|
|
625
|
+
} catch {
|
|
626
|
+
return ![];
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
function _0x146cbd(_0x5f2355) {
|
|
630
|
+
const _0x11aedf = _0x39387c;
|
|
631
|
+
return _0x5f2355[_0x11aedf(0x23f)]?.['participantId'] ?? _0x5f2355[_0x11aedf(0x1a0)]?.['id'] ?? _0x5f2355[_0x11aedf(0x214)] ?? '';
|
|
632
|
+
}
|
|
633
|
+
function _0x46ba0f(_0x46f606) {
|
|
634
|
+
const _0x31144a = _0x39387c;
|
|
635
|
+
return _0x46f606['participant']?.[_0x31144a(_0x1d9c60._0x52d574)] ?? _0x146cbd(_0x46f606);
|
|
636
|
+
}
|
|
637
|
+
async function _0x447464(_0x51feac) {
|
|
638
|
+
const _0xa2bdab = _0x39387c, _0x301b45 = Math['min'](_0x51feac[_0xa2bdab(0x15c)] ?? 0x32, 0x64), _0x2e31d0 = await _0x360470(), _0xe00024 = new URLSearchParams();
|
|
639
|
+
_0xe00024['set']('limit', String(_0x301b45));
|
|
640
|
+
_0x51feac[_0xa2bdab(_0x46c077._0x449e70)] ? (_0xe00024['set']('threadId', _0x51feac[_0xa2bdab(_0x46c077._0x72a46b)]), _0xe00024[_0xa2bdab(0x125)](_0xa2bdab(_0x46c077._0x3cbc46), _0x51feac[_0xa2bdab(_0x46c077._0x3cbc46)])) : _0xe00024[_0xa2bdab(_0x46c077._0x13f4ee)](_0xa2bdab(0x1dd), _0x51feac[_0xa2bdab(_0x46c077._0x3cbc46)]);
|
|
641
|
+
_0x51feac[_0xa2bdab(0x20b)] && _0xe00024['set'](_0xa2bdab(0x220), String(_0x51feac['before']));
|
|
642
|
+
_0x51feac['after'] !== void 0x0 && _0xe00024[_0xa2bdab(_0x46c077._0x2163e8)]('after', String(_0x51feac[_0xa2bdab(_0x46c077._0x3a1bbf)]));
|
|
643
|
+
const _0x1c5e45 = await _0x527030(_0xa2bdab(0x21f) + _0x2b4307[_0xa2bdab(_0x46c077._0x12c3f6)] + _0xa2bdab(_0x46c077._0x31406a) + _0xe00024[_0xa2bdab(_0x46c077._0xae60e8)](), {
|
|
644
|
+
'headers': _0x23725b,
|
|
645
|
+
'method': _0xa2bdab(_0x46c077._0x493c3d)
|
|
646
|
+
}), _0x4d9999 = (_0x1c5e45[_0xa2bdab(0x1cc)] ?? [])[_0xa2bdab(_0x46c077._0x12844d)](_0x2568da => ({
|
|
647
|
+
'attachments': (_0x2568da[_0xa2bdab(0x246)] ?? [])['map'](_0x5a3b06 => ({
|
|
648
|
+
'filename': _0x5a3b06['filename'] ?? _0x5a3b06['id'],
|
|
649
|
+
'id': _0x5a3b06['id']
|
|
650
|
+
})),
|
|
651
|
+
'content': _0x2568da[_0xa2bdab(0x175)] ?? '',
|
|
652
|
+
'createdAt': _0x2568da['createdAt'],
|
|
653
|
+
..._0x2568da[_0xa2bdab(0x1b3)] && _0x2568da['kind'] !== _0xa2bdab(0x1df) ? { 'kind': _0x2568da[_0xa2bdab(0x1b3)] } : {},
|
|
654
|
+
'messageId': _0x2568da['id'],
|
|
655
|
+
'senderName': _0x2568da['senderParticipantId'],
|
|
656
|
+
'senderType': _0x2a2396(_0x2568da[_0xa2bdab(0x25d)], _0x2e31d0),
|
|
657
|
+
'seq': _0x2568da[_0xa2bdab(0x11b)] ?? 0x0
|
|
658
|
+
}));
|
|
659
|
+
return {
|
|
660
|
+
'channel': _0x51feac['channelTarget'],
|
|
661
|
+
'hasMore': _0x1c5e45[_0xa2bdab(_0x46c077._0x294bcf)]?.[_0xa2bdab(_0x46c077._0x38d70a)] ?? ![],
|
|
662
|
+
'messages': _0x4d9999,
|
|
663
|
+
'nextCursor': _0x1c5e45[_0xa2bdab(0x280)]?.[_0xa2bdab(_0x46c077._0x4a06f1)]
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
return {
|
|
667
|
+
async 'sendMessage'(_0x285057) {
|
|
668
|
+
const _0x120669 = _0x39387c, _0x2fe382 = await _0x32f7ee(_0x285057[_0x120669(0x1ca)]), _0x3cbcd5 = _0x285057[_0x120669(0x223)][_0x120669(0x289)]('@') ? extractMentionedParticipantIds(_0x285057[_0x120669(0x223)], await _0x360470()) : [], _0x234140 = await _0x527030(_0x120669(0x21f) + _0x2b4307[_0x120669(0x198)] + _0x120669(0x163), {
|
|
669
|
+
'body': JSON['stringify']({
|
|
670
|
+
'attachment_ids': _0x285057[_0x120669(_0x3c0ecb._0x211878)],
|
|
671
|
+
'bodyMarkdown': _0x285057['content'],
|
|
672
|
+
'channelId': _0x2fe382[_0x120669(_0x3c0ecb._0x1ebd8c)],
|
|
673
|
+
..._0x3cbcd5[_0x120669(0x14e)] > 0x0 ? { 'mentionedParticipantIds': _0x3cbcd5 } : {},
|
|
674
|
+
'threadId': _0x2fe382[_0x120669(0x1c8)],
|
|
675
|
+
..._0x285057[_0x120669(0x173)] ? { 'visibility': _0x285057[_0x120669(_0x3c0ecb._0x5cbe69)] } : {}
|
|
676
|
+
}),
|
|
677
|
+
'headers': _0x23725b,
|
|
678
|
+
'method': _0x120669(_0x3c0ecb._0x2f14a8)
|
|
679
|
+
});
|
|
680
|
+
return { 'messageId': _0x234140['data']?.['id'] ?? '' };
|
|
681
|
+
},
|
|
682
|
+
async 'listSchedules'() {
|
|
683
|
+
const _0x4985c7 = _0x39387c, _0xad5b28 = await _0x527030(_0x4985c7(_0xd7d123._0x228cb4), {
|
|
684
|
+
'headers': _0x23725b,
|
|
685
|
+
'method': _0x4985c7(0x1fa)
|
|
686
|
+
});
|
|
687
|
+
return _0xad5b28[_0x4985c7(_0xd7d123._0x5616d9)] ?? [];
|
|
688
|
+
},
|
|
689
|
+
async 'claimScheduleRun'(_0x304df3) {
|
|
690
|
+
const _0x14ef21 = _0x39387c, _0x3e5dc5 = await _0x527030(_0x14ef21(0x199), {
|
|
691
|
+
'body': JSON['stringify'](_0x304df3),
|
|
692
|
+
'headers': _0x23725b,
|
|
693
|
+
'method': _0x14ef21(_0x1608e8._0x30ccd1)
|
|
694
|
+
});
|
|
695
|
+
return _0x3e5dc5[_0x14ef21(0x1cc)] ?? {
|
|
696
|
+
'granted': ![],
|
|
697
|
+
'runId': null,
|
|
698
|
+
'schedule': null,
|
|
699
|
+
'scheduledFor': _0x304df3['scheduledFor']
|
|
700
|
+
};
|
|
701
|
+
},
|
|
702
|
+
async 'startScheduleRun'(_0x343c7c) {
|
|
703
|
+
const _0x449d95 = _0x39387c, _0x4119e9 = await _0x527030('/api/internal/schedules/' + encodeURIComponent(_0x343c7c[_0x449d95(_0x11025e._0x1fc922)]) + _0x449d95(_0x11025e._0x4fbda9), {
|
|
704
|
+
'body': JSON[_0x449d95(0x1c9)]({}),
|
|
705
|
+
'headers': _0x23725b,
|
|
706
|
+
'method': 'POST'
|
|
707
|
+
});
|
|
708
|
+
return _0x4119e9[_0x449d95(0x1cc)] ?? {
|
|
709
|
+
'claimedByDaemonId': '',
|
|
710
|
+
'id': _0x343c7c[_0x449d95(_0x11025e._0x424f79)],
|
|
711
|
+
'scheduleId': '',
|
|
712
|
+
'status': _0x449d95(0x28c)
|
|
713
|
+
};
|
|
714
|
+
},
|
|
715
|
+
async 'finishScheduleRun'(_0xfd7c2) {
|
|
716
|
+
const _0x1f21a1 = _0x39387c, _0x2a46ca = await _0x527030(_0x1f21a1(0x15e) + encodeURIComponent(_0xfd7c2[_0x1f21a1(0x1ba)]) + '/finish', {
|
|
717
|
+
'body': JSON[_0x1f21a1(0x1c9)]({
|
|
718
|
+
'error': _0xfd7c2[_0x1f21a1(0x156)],
|
|
719
|
+
'resultJson': _0xfd7c2[_0x1f21a1(0x227)],
|
|
720
|
+
'status': _0xfd7c2[_0x1f21a1(_0x3383be._0x5566ef)]
|
|
721
|
+
}),
|
|
722
|
+
'headers': _0x23725b,
|
|
723
|
+
'method': _0x1f21a1(_0x3383be._0x10f763)
|
|
724
|
+
});
|
|
725
|
+
return _0x2a46ca[_0x1f21a1(_0x3383be._0x30a3c0)] ?? {
|
|
726
|
+
'nextRunAt': null,
|
|
727
|
+
'run': {
|
|
728
|
+
'claimedByDaemonId': '',
|
|
729
|
+
'id': _0xfd7c2[_0x1f21a1(0x1ba)],
|
|
730
|
+
'scheduleId': '',
|
|
731
|
+
'status': _0xfd7c2['status']
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
},
|
|
735
|
+
async 'listTasks'(_0x480673) {
|
|
736
|
+
const _0x5a99c2 = _0x39387c, _0x49bd66 = new URLSearchParams();
|
|
737
|
+
return _0x49bd66[_0x5a99c2(_0x265026._0x3b10a7)](_0x5a99c2(_0x265026._0x3ae6ce), _0x480673[_0x5a99c2(_0x265026._0x3ae6ce)]), _0x480673[_0x5a99c2(0x243)] && _0x49bd66['set'](_0x5a99c2(0x243), _0x480673[_0x5a99c2(0x243)]), _0x1bbf73(_0x5a99c2(_0x265026._0x43ad8f) + _0x2b4307[_0x5a99c2(0x198)] + '/tasks?' + _0x49bd66[_0x5a99c2(0x1bf)](), {
|
|
738
|
+
'headers': _0x23725b,
|
|
739
|
+
'method': _0x5a99c2(_0x265026._0x25193a)
|
|
740
|
+
});
|
|
741
|
+
},
|
|
742
|
+
async 'createTasks'(_0x591563) {
|
|
743
|
+
const _0x10ecfc = _0x39387c;
|
|
744
|
+
return _0x1bbf73('/internal/agent/' + _0x2b4307[_0x10ecfc(_0x3cec28._0x3f33b9)] + _0x10ecfc(_0x3cec28._0x5e686f), {
|
|
745
|
+
'body': JSON[_0x10ecfc(_0x3cec28._0x4c3cd1)]({
|
|
746
|
+
..._0x591563,
|
|
747
|
+
'idempotency_key': _0x322222('create_tasks', _0x591563)
|
|
748
|
+
}),
|
|
749
|
+
'headers': _0x23725b,
|
|
750
|
+
'method': _0x10ecfc(_0x3cec28._0x536152)
|
|
751
|
+
});
|
|
752
|
+
},
|
|
753
|
+
async 'claimTasks'(_0x3cd801) {
|
|
754
|
+
const _0x29924a = _0x39387c;
|
|
755
|
+
return _0x1bbf73(_0x29924a(0x21f) + _0x2b4307[_0x29924a(_0x3226f8._0x416558)] + _0x29924a(0x1f2), {
|
|
756
|
+
'body': JSON['stringify']({
|
|
757
|
+
..._0x3cd801,
|
|
758
|
+
'idempotency_key': _0x322222(_0x29924a(_0x3226f8._0x2644b4), _0x3cd801)
|
|
759
|
+
}),
|
|
760
|
+
'headers': _0x23725b,
|
|
761
|
+
'method': _0x29924a(0x1e1)
|
|
762
|
+
});
|
|
763
|
+
},
|
|
764
|
+
async 'unclaimTask'(_0x1c51bc) {
|
|
765
|
+
const _0x2f1d8e = _0x39387c;
|
|
766
|
+
return _0x1bbf73(_0x2f1d8e(0x21f) + _0x2b4307[_0x2f1d8e(_0x146d3c._0x43a34d)] + _0x2f1d8e(_0x146d3c._0x4230df), {
|
|
767
|
+
'body': JSON[_0x2f1d8e(_0x146d3c._0x59129b)]({
|
|
768
|
+
..._0x1c51bc,
|
|
769
|
+
'idempotency_key': _0x322222(_0x2f1d8e(_0x146d3c._0x2a920e), _0x1c51bc)
|
|
770
|
+
}),
|
|
771
|
+
'headers': _0x23725b,
|
|
772
|
+
'method': 'POST'
|
|
773
|
+
});
|
|
774
|
+
},
|
|
775
|
+
async 'updateTaskStatus'(_0x34fc48) {
|
|
776
|
+
const _0x492bc0 = _0x39387c;
|
|
777
|
+
return _0x1bbf73(_0x492bc0(_0x2bf957._0x580e7a) + _0x2b4307[_0x492bc0(0x198)] + '/tasks/update-status', {
|
|
778
|
+
'body': JSON['stringify']({
|
|
779
|
+
..._0x34fc48,
|
|
780
|
+
'idempotency_key': _0x322222(_0x492bc0(0x26f), _0x34fc48)
|
|
781
|
+
}),
|
|
782
|
+
'headers': _0x23725b,
|
|
783
|
+
'method': _0x492bc0(0x1e1)
|
|
784
|
+
});
|
|
785
|
+
},
|
|
786
|
+
async 'uploadFile'(_0x5740c9) {
|
|
787
|
+
const _0x577c0c = _0x39387c, _0x28b33c = await _0x32f7ee(_0x5740c9[_0x577c0c(0x16c)]);
|
|
788
|
+
if (_0x28b33c[_0x577c0c(_0x12bb9f._0x3f4b94)])
|
|
789
|
+
throw new Error(_0x577c0c(0x212));
|
|
790
|
+
const _0x1ee980 = await _0x527030(_0x577c0c(0x21f) + _0x2b4307[_0x577c0c(_0x12bb9f._0x32ab56)] + _0x577c0c(_0x12bb9f._0xc62c7c), {
|
|
791
|
+
'body': JSON['stringify']({
|
|
792
|
+
'channel': _0x28b33c[_0x577c0c(_0x12bb9f._0x6b5792)],
|
|
793
|
+
'contentBase64': _0x5740c9[_0x577c0c(0x1b7)],
|
|
794
|
+
'contentType': _0x5740c9[_0x577c0c(0x19d)],
|
|
795
|
+
'originalFilename': _0x5740c9[_0x577c0c(0x22b)]
|
|
796
|
+
}),
|
|
797
|
+
'headers': _0x23725b,
|
|
798
|
+
'method': _0x577c0c(0x1e1)
|
|
799
|
+
});
|
|
800
|
+
return {
|
|
801
|
+
'attachmentId': _0x1ee980[_0x577c0c(_0x12bb9f._0x5877bd)]?.['id'] ?? '',
|
|
802
|
+
'filename': _0x1ee980[_0x577c0c(_0x12bb9f._0x5877bd)]?.[_0x577c0c(_0x12bb9f._0x215f27)] ?? _0x5740c9[_0x577c0c(_0x12bb9f._0x479cf2)],
|
|
803
|
+
'sizeBytes': _0x1ee980['data']?.[_0x577c0c(_0x12bb9f._0xb33809)] ?? 0x0
|
|
804
|
+
};
|
|
805
|
+
},
|
|
806
|
+
async 'downloadAttachment'(_0x2687f1) {
|
|
807
|
+
const _0x452a3d = _0x39387c, _0x5b200e = await _0x527030('/api/attachments/' + _0x2687f1, {
|
|
808
|
+
'headers': _0x23725b,
|
|
809
|
+
'method': _0x452a3d(0x1fa)
|
|
810
|
+
}), _0x4e6d28 = new AbortController(), _0x3d6892 = setTimeout(() => _0x4e6d28[_0x452a3d(0x265)](), _0x271e41);
|
|
811
|
+
try {
|
|
812
|
+
const _0x374fd3 = await _0x432b33(_0x21fb6a + _0x452a3d(_0x4856d0._0x327f32) + _0x2687f1 + _0x452a3d(0x11d), {
|
|
813
|
+
'headers': _0x23725b,
|
|
814
|
+
'method': _0x452a3d(0x1fa),
|
|
815
|
+
'signal': _0x4e6d28[_0x452a3d(_0x4856d0._0x5d2f15)]
|
|
816
|
+
});
|
|
817
|
+
if (!_0x374fd3['ok'])
|
|
818
|
+
throw new Error(_0x452a3d(_0x4856d0._0x5782a5) + _0x374fd3['status']);
|
|
819
|
+
return {
|
|
820
|
+
'contentType': _0x5b200e[_0x452a3d(_0x4856d0._0x4405c1)]?.[_0x452a3d(0x19d)] ?? _0x374fd3[_0x452a3d(_0x4856d0._0x19348e)][_0x452a3d(_0x4856d0._0x571949)](_0x452a3d(0x1c5)) ?? _0x452a3d(0x11c),
|
|
821
|
+
'data': Buffer[_0x452a3d(0x1aa)](await _0x374fd3[_0x452a3d(_0x4856d0._0x29bd4a)]()),
|
|
822
|
+
'originalFilename': _0x5b200e[_0x452a3d(0x1cc)]?.[_0x452a3d(0x1d6)]
|
|
823
|
+
};
|
|
824
|
+
} finally {
|
|
825
|
+
clearTimeout(_0x3d6892);
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
async 'listServer'() {
|
|
829
|
+
return _0x360470({ 'forceRefresh': !![] });
|
|
830
|
+
},
|
|
831
|
+
async 'readHistory'(_0x2e574e) {
|
|
832
|
+
const _0x122b4b = _0x39387c, _0x24a514 = await _0x32f7ee(_0x2e574e[_0x122b4b(_0x2cb3d7._0x138870)]);
|
|
833
|
+
return _0x447464({
|
|
834
|
+
'after': _0x2e574e[_0x122b4b(0x133)],
|
|
835
|
+
'before': _0x2e574e['before'],
|
|
836
|
+
'channelId': _0x24a514[_0x122b4b(_0x2cb3d7._0x2bc00e)],
|
|
837
|
+
'channelTarget': _0x24a514[_0x122b4b(0x1ca)],
|
|
838
|
+
'limit': _0x2e574e[_0x122b4b(0x15c)],
|
|
839
|
+
'threadId': _0x24a514[_0x122b4b(0x1c8)]
|
|
840
|
+
});
|
|
841
|
+
},
|
|
842
|
+
'resolveTarget': _0x32f7ee,
|
|
843
|
+
async 'checkMessages'() {
|
|
844
|
+
const _0x20d8b4 = {
|
|
845
|
+
_0x4586e4: 0x1dd,
|
|
846
|
+
_0x44b271: 0x150
|
|
847
|
+
}, _0x94aa97 = _0x39387c, _0x3e5c46 = new URLSearchParams();
|
|
848
|
+
_0x3e5c46['set'](_0x94aa97(0x151), String(_0x5890c9));
|
|
849
|
+
const _0x2420f0 = _0x3e5c46[_0x94aa97(_0x28a537._0x21980a)](), _0x439ea7 = await _0x527030(_0x94aa97(_0x28a537._0x315a2b) + _0x2b4307[_0x94aa97(0x198)] + '/receive' + (_0x2420f0 ? '?' + _0x2420f0 : ''), {
|
|
850
|
+
'headers': _0x23725b,
|
|
851
|
+
'method': 'GET'
|
|
852
|
+
}), _0x2d6f8f = _0x439ea7[_0x94aa97(0x1cc)] ?? [], _0x22da65 = _0x439ea7[_0x94aa97(_0x28a537._0x3b4a5c)]?.[_0x94aa97(0x220)], _0x3de228 = _0x22da65 !== void 0x0 ? Math[_0x94aa97(0x117)](_0x5890c9, _0x22da65) : _0x2d6f8f[_0x94aa97(_0x28a537._0x50ff17)] > 0x0 ? Math[_0x94aa97(0x117)](_0x5890c9, _0x2d6f8f[_0x2d6f8f[_0x94aa97(0x14e)] - 0x1][_0x94aa97(0x19c)]) : _0x5890c9, _0x39dc01 = _0x2d6f8f['filter'](_0xf0ebcf => _0xf0ebcf['aggregateType'] === _0x94aa97(0x23b)), _0x3cf257 = _0x21c4f8 === void 0x0 && _0x50d0d5;
|
|
853
|
+
let _0x3a724a = await _0x360470(), _0x40783e = new Map(_0x3a724a['channels'][_0x94aa97(_0x28a537._0x47c4db)](_0x24ef18 => [
|
|
854
|
+
_0x24ef18['id'],
|
|
855
|
+
_0x24ef18
|
|
856
|
+
]));
|
|
857
|
+
const _0x56c84a = _0x39dc01['some'](_0x331cc0 => {
|
|
858
|
+
const _0x312fa6 = _0x94aa97, _0x4cb005 = asRecord(_0x331cc0['payloadJson']), _0x81a93 = typeof _0x4cb005?.[_0x312fa6(_0x20d8b4._0x4586e4)] === _0x312fa6(0x16b) ? _0x4cb005[_0x312fa6(_0x20d8b4._0x4586e4)] : '';
|
|
859
|
+
return Boolean(_0x81a93) && !_0x40783e[_0x312fa6(_0x20d8b4._0x44b271)](_0x81a93);
|
|
860
|
+
});
|
|
861
|
+
_0x56c84a && (_0x3a724a = await _0x360470({ 'forceRefresh': !![] }), _0x40783e = new Map(_0x3a724a[_0x94aa97(_0x28a537._0x14029b)]['map'](_0x1b6f3f => [
|
|
862
|
+
_0x1b6f3f['id'],
|
|
863
|
+
_0x1b6f3f
|
|
864
|
+
])));
|
|
865
|
+
const _0x3b1562 = new Map();
|
|
866
|
+
for (const _0x26f733 of _0x39dc01) {
|
|
867
|
+
const _0xefce11 = asRecord(_0x26f733['payloadJson']), _0x268d7d = typeof _0xefce11[_0x94aa97(0x1dd)] === _0x94aa97(_0x28a537._0x1dc122) ? _0xefce11[_0x94aa97(0x1dd)] : '';
|
|
868
|
+
if (!_0x268d7d)
|
|
869
|
+
continue;
|
|
870
|
+
const _0x43ef52 = typeof _0xefce11[_0x94aa97(_0x28a537._0x1dccd4)] === 'string' ? _0xefce11['threadId'] : void 0x0, _0x130f9f = typeof _0xefce11[_0x94aa97(0x229)] === _0x94aa97(0x16b) ? _0xefce11[_0x94aa97(0x229)] : void 0x0, _0x28d7ce = typeof _0xefce11[_0x94aa97(0x128)] === _0x94aa97(0x1c4) && Number[_0x94aa97(0x17c)](_0xefce11['threadNumber']) ? _0xefce11[_0x94aa97(0x128)] : void 0x0, _0x109627 = Boolean(_0x43ef52 && (!_0x130f9f || _0x26f733[_0x94aa97(0x217)] !== _0x130f9f)), _0x2257b6 = _0x109627 ? _0x268d7d + ':' + _0x43ef52 : _0x268d7d, _0x1e11b9 = _0x3b1562[_0x94aa97(_0x28a537._0x591369)](_0x2257b6) ?? {
|
|
871
|
+
'aggregateIds': [],
|
|
872
|
+
'channelId': _0x268d7d,
|
|
873
|
+
'entries': new Map(),
|
|
874
|
+
'isThreadReply': _0x109627,
|
|
875
|
+
'rootMessageId': _0x130f9f,
|
|
876
|
+
'threadNumber': _0x28d7ce,
|
|
877
|
+
'threadId': _0x109627 ? _0x43ef52 : void 0x0
|
|
878
|
+
};
|
|
879
|
+
_0x1e11b9['threadNumber'] == null && _0x28d7ce != null && (_0x1e11b9[_0x94aa97(_0x28a537._0x3eecbe)] = _0x28d7ce), !_0x1e11b9[_0x94aa97(0x229)] && _0x130f9f && (_0x1e11b9[_0x94aa97(0x229)] = _0x130f9f), _0x1e11b9[_0x94aa97(0x15f)]['push'](_0x26f733['aggregateId']), _0x1e11b9[_0x94aa97(_0x28a537._0x45e6ff)]['set'](_0x26f733[_0x94aa97(_0x28a537._0x16f936)], {
|
|
880
|
+
'payloadJson': _0x26f733[_0x94aa97(_0x28a537._0x1b8281)],
|
|
881
|
+
'seq': _0x26f733[_0x94aa97(0x19c)]
|
|
882
|
+
}), _0x3b1562['set'](_0x2257b6, _0x1e11b9);
|
|
883
|
+
}
|
|
884
|
+
const _0x22f653 = [];
|
|
885
|
+
for (const _0x2b11cc of _0x3b1562[_0x94aa97(0x184)]()) {
|
|
886
|
+
const {
|
|
887
|
+
channelId: _0xaa1518,
|
|
888
|
+
threadId: _0xc6e76,
|
|
889
|
+
rootMessageId: _0x44bf1c,
|
|
890
|
+
threadNumber: _0x50b78c,
|
|
891
|
+
aggregateIds: _0x53c928,
|
|
892
|
+
isThreadReply: _0x1e605a,
|
|
893
|
+
entries: _0x5847b9
|
|
894
|
+
} = _0x2b11cc, _0x972a2c = _0x40783e[_0x94aa97(_0x28a537._0x591369)](_0xaa1518), _0x44d86d = _0x972a2c?.[_0x94aa97(0x123)] ?? _0xaa1518, _0x55362b = _0x972a2c?.['kind'] === 'dm' ? 'dm:' + _0x44d86d : '#' + _0x44d86d, _0x1977ed = {
|
|
895
|
+
'channelTarget': _0x55362b,
|
|
896
|
+
'rootMessageId': _0x44bf1c,
|
|
897
|
+
'threadId': _0xc6e76,
|
|
898
|
+
'threadNumber': _0x50b78c
|
|
899
|
+
}, _0x1af2a9 = await _0x447464({
|
|
900
|
+
'channelId': _0xaa1518,
|
|
901
|
+
'channelTarget': _0x55362b,
|
|
902
|
+
'limit': Math[_0x94aa97(0x117)](_0x53c928['length'], 0x32),
|
|
903
|
+
'threadId': _0xc6e76
|
|
904
|
+
}), _0x570cc8 = new Map(_0x1af2a9['messages'][_0x94aa97(_0x28a537._0x47c4db)](_0x5af103 => [
|
|
905
|
+
_0x5af103[_0x94aa97(0x185)],
|
|
906
|
+
_0x5af103
|
|
907
|
+
])), _0x194072 = _0xc6e76 ? _0x24ea17(_0x1977ed) : _0x55362b, _0x14ef83 = _0x21c4f8 ? _0x1e605a && _0x3bbf3a(_0x21c4f8, _0x1977ed) : !![], _0x367939 = _0x1e605a ? _0x14ef83 && _0x21c4f8 ? _0x21c4f8 : _0x194072 : _0x55362b;
|
|
908
|
+
for (const _0x37c185 of _0x53c928) {
|
|
909
|
+
if (!_0x14ef83)
|
|
910
|
+
continue;
|
|
911
|
+
const _0x449d93 = _0x5847b9[_0x94aa97(0x186)](_0x37c185), _0x4be5b5 = _0x449d93 ? asRecord(_0x449d93[_0x94aa97(0x182)]) : void 0x0, _0x10ca1e = _0x4be5b5?.[_0x94aa97(_0x28a537._0x3d3a82)] === _0x94aa97(0x132);
|
|
912
|
+
if (_0x3cf257 && _0x10ca1e)
|
|
913
|
+
continue;
|
|
914
|
+
const _0x4600e9 = _0x570cc8[_0x94aa97(0x186)](_0x37c185);
|
|
915
|
+
if (_0x4600e9) {
|
|
916
|
+
_0x22f653[_0x94aa97(0x26e)]({
|
|
917
|
+
'attachments': _0x4600e9['attachments'],
|
|
918
|
+
'content': _0x4600e9[_0x94aa97(_0x28a537._0x2ac008)],
|
|
919
|
+
'createdAt': _0x4600e9[_0x94aa97(_0x28a537._0x364316)],
|
|
920
|
+
..._0x4600e9[_0x94aa97(_0x28a537._0x4cfecb)] ? { 'kind': _0x4600e9[_0x94aa97(_0x28a537._0x723284)] } : {},
|
|
921
|
+
'messageId': _0x4600e9[_0x94aa97(0x185)],
|
|
922
|
+
'senderName': _0x4600e9[_0x94aa97(0x18f)],
|
|
923
|
+
'senderType': _0x4600e9[_0x94aa97(0x221)],
|
|
924
|
+
'target': _0x367939,
|
|
925
|
+
..._0x10ca1e ? { 'targetedTask': !![] } : {}
|
|
926
|
+
});
|
|
927
|
+
continue;
|
|
928
|
+
}
|
|
929
|
+
if (_0x449d93) {
|
|
930
|
+
const _0xa32091 = typeof _0x4be5b5?.[_0x94aa97(_0x28a537._0xbebc4f)] === _0x94aa97(_0x28a537._0x370038) ? _0x4be5b5[_0x94aa97(0x25d)] : '', _0x4d4c73 = typeof _0x4be5b5?.[_0x94aa97(_0x28a537._0x51dd50)] === 'string' ? _0x4be5b5[_0x94aa97(_0x28a537._0x13943b)] : '', _0x1af92a = typeof _0x4be5b5?.[_0x94aa97(0x1b3)] === _0x94aa97(0x16b) && _0x4be5b5['kind'] !== _0x94aa97(0x1df) ? _0x4be5b5['kind'] : void 0x0;
|
|
931
|
+
_0xa32091 && _0x4d4c73 && _0x22f653[_0x94aa97(_0x28a537._0x4a9058)]({
|
|
932
|
+
'attachments': [],
|
|
933
|
+
'content': _0x4d4c73,
|
|
934
|
+
'createdAt': new Date()[_0x94aa97(0x145)](),
|
|
935
|
+
..._0x1af92a ? { 'kind': _0x1af92a } : {},
|
|
936
|
+
'messageId': _0x37c185,
|
|
937
|
+
'senderName': _0xa32091,
|
|
938
|
+
'senderType': _0x2a2396(_0xa32091, _0x3a724a),
|
|
939
|
+
'target': _0x367939,
|
|
940
|
+
..._0x10ca1e ? { 'targetedTask': !![] } : {}
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
if (_0x3de228 > 0x0) {
|
|
946
|
+
if (_0x2f54d5)
|
|
947
|
+
await _0x4cf89a(_0x3de228);
|
|
948
|
+
else
|
|
949
|
+
_0x51747a && await _0x5a72d3(_0x3de228);
|
|
950
|
+
}
|
|
951
|
+
return _0x3de228 > _0x5890c9 && (_0x5890c9 = _0x3de228), { 'messages': _0x21c4f8 ? _0x22f653 : _0x3cf257 ? _0x22f653['filter'](_0x1e9f83 => _0x1e9f83[_0x94aa97(0x20d)] !== !![]) : _0x22f653 };
|
|
952
|
+
}
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
function toLocalTime(_0x2af2d0) {
|
|
956
|
+
const _0x411db1 = {
|
|
957
|
+
_0x225eed: 0x20a,
|
|
958
|
+
_0x3186e8: 0x248,
|
|
959
|
+
_0x163d12: 0x24d,
|
|
960
|
+
_0x51b42a: 0x1a4,
|
|
961
|
+
_0xdbac02: 0x24f
|
|
962
|
+
}, _0x1d4541 = _0x2cd54a, _0x476d8d = new Date(_0x2af2d0);
|
|
963
|
+
if (Number[_0x1d4541(_0x411db1._0x225eed)](_0x476d8d[_0x1d4541(0x26b)]()))
|
|
964
|
+
return _0x2af2d0;
|
|
965
|
+
const _0x23e87c = _0x4d9684 => String(_0x4d9684)[_0x1d4541(0x11f)](0x2, '0');
|
|
966
|
+
return _0x476d8d[_0x1d4541(0x192)]() + '-' + _0x23e87c(_0x476d8d[_0x1d4541(_0x411db1._0x3186e8)]() + 0x1) + '-' + _0x23e87c(_0x476d8d[_0x1d4541(_0x411db1._0x163d12)]()) + '\x20' + _0x23e87c(_0x476d8d[_0x1d4541(_0x411db1._0x51b42a)]()) + ':' + _0x23e87c(_0x476d8d[_0x1d4541(_0x411db1._0xdbac02)]()) + ':' + _0x23e87c(_0x476d8d['getSeconds']());
|
|
967
|
+
}
|
|
968
|
+
function formatAttachmentSuffix(_0x184206) {
|
|
969
|
+
const _0x502fdd = {
|
|
970
|
+
_0x4a5ca9: 0x14e,
|
|
971
|
+
_0x22a826: 0x291
|
|
972
|
+
}, _0x26b709 = _0x2cd54a;
|
|
973
|
+
if (!_0x184206 || _0x184206[_0x26b709(_0x502fdd._0x4a5ca9)] === 0x0)
|
|
974
|
+
return '';
|
|
975
|
+
return '\x20[' + _0x184206[_0x26b709(0x14e)] + _0x26b709(0x131) + (_0x184206[_0x26b709(0x14e)] > 0x1 ? 's' : '') + ':\x20' + _0x184206[_0x26b709(0x13f)](_0x29b9b8 => _0x29b9b8[_0x26b709(0x22b)] + '\x20(id:' + _0x29b9b8['id'] + ')')[_0x26b709(_0x502fdd._0x22a826)](',\x20') + _0x26b709(0x1d3);
|
|
976
|
+
}
|
|
977
|
+
function formatCheckMessages(_0x4a0f67) {
|
|
978
|
+
const _0x2ff904 = {
|
|
979
|
+
_0x38d3b6: 0x14e,
|
|
980
|
+
_0x5b8b02: 0x13f
|
|
981
|
+
}, _0xfd8001 = {
|
|
982
|
+
_0x13a900: 0x221,
|
|
983
|
+
_0x382dd9: 0x26d,
|
|
984
|
+
_0x42e74a: 0x1a7,
|
|
985
|
+
_0x597a14: 0x28f,
|
|
986
|
+
_0x26c434: 0x27a,
|
|
987
|
+
_0x546f18: 0x18f,
|
|
988
|
+
_0x3da806: 0x223
|
|
989
|
+
}, _0x283738 = _0x2cd54a;
|
|
990
|
+
if (_0x4a0f67[_0x283738(_0x2ff904._0x38d3b6)] === 0x0)
|
|
991
|
+
return 'No\x20new\x20messages.';
|
|
992
|
+
return _0x4a0f67[_0x283738(_0x2ff904._0x5b8b02)](_0x159e4e => {
|
|
993
|
+
const _0x551149 = _0x283738, _0x260581 = _0x159e4e[_0x551149(_0xfd8001._0x13a900)] === _0x551149(_0xfd8001._0x382dd9) ? '\x20type=agent' : '', _0x1b18c6 = _0x159e4e['kind'] && _0x159e4e[_0x551149(0x1b3)] !== 'chat' ? _0x551149(0x143) + _0x159e4e['kind'] : '';
|
|
994
|
+
return _0x551149(_0xfd8001._0x42e74a) + _0x159e4e[_0x551149(0x1ca)] + '\x20msg=' + _0x159e4e[_0x551149(0x185)][_0x551149(_0xfd8001._0x597a14)](0x0, 0x8) + _0x551149(0x138) + toLocalTime(_0x159e4e['createdAt']) + _0x260581 + _0x1b18c6 + _0x551149(_0xfd8001._0x26c434) + _0x159e4e[_0x551149(_0xfd8001._0x546f18)] + ':\x20' + _0x159e4e[_0x551149(_0xfd8001._0x3da806)] + formatAttachmentSuffix(_0x159e4e[_0x551149(0x246)]);
|
|
995
|
+
})['join']('\x0a');
|
|
996
|
+
}
|
|
997
|
+
function formatHistory(_0x1339d7) {
|
|
998
|
+
const _0x4f79ca = {
|
|
999
|
+
_0x3ef3a9: 0x14e,
|
|
1000
|
+
_0x1bef37: 0x176,
|
|
1001
|
+
_0xb11a2: 0x291,
|
|
1002
|
+
_0x1d7dbc: 0x1bb,
|
|
1003
|
+
_0x4d74e4: 0x278,
|
|
1004
|
+
_0x2079e9: 0x264,
|
|
1005
|
+
_0x19934e: 0x25a,
|
|
1006
|
+
_0x50fd14: 0x14e
|
|
1007
|
+
}, _0x47ad0b = {
|
|
1008
|
+
_0x5a4bf8: 0x26d,
|
|
1009
|
+
_0x28164c: 0x1df,
|
|
1010
|
+
_0x52e028: 0x143,
|
|
1011
|
+
_0x5ed075: 0x1b3,
|
|
1012
|
+
_0x5db90f: 0x28d,
|
|
1013
|
+
_0x28c360: 0x19c,
|
|
1014
|
+
_0x2a9572: 0x141,
|
|
1015
|
+
_0x5ae69d: 0x138,
|
|
1016
|
+
_0x19033c: 0x18f,
|
|
1017
|
+
_0x15c768: 0x246
|
|
1018
|
+
}, _0x174264 = _0x2cd54a;
|
|
1019
|
+
if (_0x1339d7[_0x174264(0x25a)][_0x174264(_0x4f79ca._0x3ef3a9)] === 0x0)
|
|
1020
|
+
return _0x174264(_0x4f79ca._0x1bef37) + _0x1339d7[_0x174264(0x16c)] + _0x174264(0x1f3);
|
|
1021
|
+
const _0x191687 = _0x1339d7[_0x174264(0x25a)][_0x174264(0x13f)](_0xe4640a => {
|
|
1022
|
+
const _0xffad37 = _0x174264, _0x2dada1 = _0xe4640a[_0xffad37(0x221)] === _0xffad37(_0x47ad0b._0x5a4bf8) ? _0xffad37(0x18e) : '', _0x89e995 = _0xe4640a[_0xffad37(0x1b3)] && _0xe4640a['kind'] !== _0xffad37(_0x47ad0b._0x28164c) ? _0xffad37(_0x47ad0b._0x52e028) + _0xe4640a[_0xffad37(_0x47ad0b._0x5ed075)] : '';
|
|
1023
|
+
return _0xffad37(_0x47ad0b._0x5db90f) + _0xe4640a[_0xffad37(_0x47ad0b._0x28c360)] + _0xffad37(_0x47ad0b._0x2a9572) + _0xe4640a['messageId'] + _0xffad37(_0x47ad0b._0x5ae69d) + toLocalTime(_0xe4640a[_0xffad37(0x200)]) + _0x2dada1 + _0x89e995 + ']\x20@' + _0xe4640a[_0xffad37(_0x47ad0b._0x19033c)] + ':\x20' + _0xe4640a[_0xffad37(0x223)] + formatAttachmentSuffix(_0xe4640a[_0xffad37(_0x47ad0b._0x15c768)]);
|
|
1024
|
+
})[_0x174264(_0x4f79ca._0xb11a2)]('\x0a'), _0x4aac9a = _0x1339d7[_0x174264(_0x4f79ca._0x1d7dbc)] && _0x1339d7[_0x174264(_0x4f79ca._0x4d74e4)] ? _0x174264(_0x4f79ca._0x2079e9) + _0x1339d7[_0x174264(_0x4f79ca._0x19934e)]['length'] + _0x174264(0x231) + _0x1339d7[_0x174264(0x278)] + _0x174264(0x1d4) : '';
|
|
1025
|
+
return '##\x20Message\x20History\x20for\x20' + _0x1339d7[_0x174264(0x16c)] + '\x20(' + _0x1339d7[_0x174264(_0x4f79ca._0x19934e)][_0x174264(_0x4f79ca._0x50fd14)] + _0x174264(0x22d) + _0x191687 + _0x4aac9a;
|
|
1026
|
+
}
|
|
1027
|
+
function formatServerDirectory(_0x2cff14) {
|
|
1028
|
+
const _0x416961 = {
|
|
1029
|
+
_0x55992e: 0x154,
|
|
1030
|
+
_0x10df02: 0x14e,
|
|
1031
|
+
_0x5d6cde: 0x154,
|
|
1032
|
+
_0x378634: 0x255,
|
|
1033
|
+
_0x2ee982: 0x255,
|
|
1034
|
+
_0x25dce7: 0x13f,
|
|
1035
|
+
_0x3c5544: 0x1a8,
|
|
1036
|
+
_0x2fea01: 0x270,
|
|
1037
|
+
_0x5c6ce8: 0x291
|
|
1038
|
+
}, _0x2074fe = _0x2cd54a, _0x4d2d01 = _0x2cff14[_0x2074fe(_0x416961._0x55992e)][_0x2074fe(_0x416961._0x10df02)] > 0x0 ? _0x2cff14[_0x2074fe(_0x416961._0x5d6cde)][_0x2074fe(0x13f)](_0x5b8fb5 => _0x5b8fb5[_0x2074fe(0x1f4)] ? _0x2074fe(0x1bc) + _0x5b8fb5['name'] + _0x2074fe(0x180) + _0x5b8fb5[_0x2074fe(0x1f4)] : _0x2074fe(0x1bc) + _0x5b8fb5[_0x2074fe(0x123)])['join']('\x0a') : _0x2074fe(0x1fd), _0x5a1fd9 = _0x2cff14[_0x2074fe(_0x416961._0x378634)]['length'] > 0x0 ? _0x2cff14[_0x2074fe(_0x416961._0x2ee982)][_0x2074fe(_0x416961._0x25dce7)](_0x325022 => _0x2074fe(0x1bd) + _0x325022[_0x2074fe(0x123)])[_0x2074fe(0x291)]('\x0a') : '(none)', _0x18b23a = _0x2cff14[_0x2074fe(0x1a8)][_0x2074fe(0x14e)] > 0x0 ? _0x2cff14[_0x2074fe(_0x416961._0x3c5544)][_0x2074fe(0x13f)](_0x3b589d => '-\x20@' + _0x3b589d[_0x2074fe(0x123)])[_0x2074fe(0x291)]('\x0a') : '(none)';
|
|
1039
|
+
return [
|
|
1040
|
+
_0x2074fe(0x287) + _0x2cff14[_0x2074fe(0x1a9)],
|
|
1041
|
+
'',
|
|
1042
|
+
_0x2074fe(_0x416961._0x2fea01),
|
|
1043
|
+
_0x4d2d01,
|
|
1044
|
+
'',
|
|
1045
|
+
'###\x20Agents',
|
|
1046
|
+
_0x5a1fd9,
|
|
1047
|
+
'',
|
|
1048
|
+
_0x2074fe(0x167),
|
|
1049
|
+
_0x18b23a
|
|
1050
|
+
][_0x2074fe(_0x416961._0x5c6ce8)]('\x0a');
|
|
1051
|
+
}
|
|
1052
|
+
function formatUploadResult(_0x4c18d3) {
|
|
1053
|
+
const _0x453e33 = _0x2cd54a;
|
|
1054
|
+
return 'File\x20uploaded:\x20' + _0x4c18d3[_0x453e33(0x22b)] + '\x20(' + (_0x4c18d3[_0x453e33(0x241)] / 0x400)['toFixed'](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x4c18d3[_0x453e33(0x208)] + _0x453e33(0x295);
|
|
1055
|
+
}
|
|
1056
|
+
function formatViewFileResult(_0xbaaffe, _0x2992d8) {
|
|
1057
|
+
const _0x4de47c = { _0x4df404: 0x238 }, _0x10e34d = _0x2cd54a;
|
|
1058
|
+
return _0x2992d8 ? _0x10e34d(_0x4de47c._0x4df404) + _0xbaaffe : 'Downloaded\x20to:\x20' + _0xbaaffe;
|
|
1059
|
+
}
|
|
1060
|
+
function formatTaskList(_0x47a6a8, _0x5defd0) {
|
|
1061
|
+
const _0x219e06 = {
|
|
1062
|
+
_0x449312: 0x14e,
|
|
1063
|
+
_0x478426: 0x291
|
|
1064
|
+
}, _0x80455f = {
|
|
1065
|
+
_0x50e1bb: 0x17a,
|
|
1066
|
+
_0x520b99: 0x17a,
|
|
1067
|
+
_0x328dba: 0x185,
|
|
1068
|
+
_0x10fea0: 0x267,
|
|
1069
|
+
_0x3e70a3: 0x185,
|
|
1070
|
+
_0x32ea27: 0x1cd,
|
|
1071
|
+
_0x56d076: 0x244,
|
|
1072
|
+
_0x5b206b: 0x243
|
|
1073
|
+
}, _0x5ad602 = _0x2cd54a;
|
|
1074
|
+
if (_0x47a6a8[_0x5ad602(_0x219e06._0x449312)] === 0x0)
|
|
1075
|
+
return _0x5ad602(0x235);
|
|
1076
|
+
return _0x47a6a8[_0x5ad602(0x13f)](_0x3eaba8 => {
|
|
1077
|
+
const _0x315188 = _0x5ad602, _0x973403 = _0x3eaba8[_0x315188(0x249)] == null ? _0x315188(0x273) : _0x3eaba8[_0x315188(_0x80455f._0x50e1bb)] != null ? '#' + _0x3eaba8[_0x315188(0x249)] + '.' + _0x3eaba8[_0x315188(_0x80455f._0x520b99)] : '#' + _0x3eaba8[_0x315188(0x249)], _0x455d3e = _0x3eaba8[_0x315188(_0x80455f._0x328dba)] ? _0x315188(_0x80455f._0x10fea0) + _0x3eaba8[_0x315188(_0x80455f._0x3e70a3)] : '', _0x21bed = _0x5defd0 && _0x3eaba8['taskNumber'] != null && !_0x3eaba8['subtaskNumber'] && _0x5defd0['has'](_0x3eaba8[_0x315188(0x249)]) ? _0x315188(_0x80455f._0x32ea27) : '', _0x21d661 = _0x3eaba8['childrenTotal'] != null && _0x3eaba8['childrenTotal'] > 0x0 ? '\x20(' + (_0x3eaba8[_0x315188(0x119)] ?? 0x0) + '/' + _0x3eaba8[_0x315188(0x12d)] + _0x315188(_0x80455f._0x56d076) : '';
|
|
1078
|
+
return _0x973403 + '\x20[' + _0x3eaba8[_0x315188(_0x80455f._0x5b206b)] + ']\x20' + _0x3eaba8['title'] + _0x21d661 + _0x455d3e + _0x21bed;
|
|
1079
|
+
})[_0x5ad602(_0x219e06._0x478426)]('\x0a');
|
|
1080
|
+
}
|
|
1081
|
+
function _0x409f() {
|
|
1082
|
+
const _0x32e0a1 = [
|
|
147
1083
|
'C2vUzgvYtMfTzq',
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'C2L6zq',
|
|
160
|
-
'BM93',
|
|
161
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
162
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
163
|
-
'iYmJienOyw5UzwXZ',
|
|
164
|
-
'nZi5ote5wMDgA1bl',
|
|
165
|
-
'Dgv4Dc9WBgfPBG',
|
|
166
|
-
'mtC5mKLNtLPytq',
|
|
167
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
168
|
-
'icHPzdO',
|
|
169
|
-
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1084
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1085
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1086
|
+
'z2v0rNvSBfLLyxi',
|
|
1087
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1088
|
+
'DgL0Bgu',
|
|
1089
|
+
'l3rHC2TZ',
|
|
1090
|
+
'Aw1Hz2uVANbLzW',
|
|
1091
|
+
'CMvXDwvZDfvYBa',
|
|
1092
|
+
'ywDLBNrjza',
|
|
1093
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1094
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
170
1095
|
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1096
|
+
'C2vX',
|
|
171
1097
|
'y29UDgvUDfr5Cgu',
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
1098
|
+
'yMfZzw5HBwu',
|
|
1099
|
+
'CMvJB3jK',
|
|
1100
|
+
'CgfYDgLJAxbHBNq',
|
|
1101
|
+
'C2f2zq',
|
|
1102
|
+
'v29YA2vYici',
|
|
177
1103
|
'DgHYzwfKu2HVCNrjza',
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
1104
|
+
'z2v0sg91CNm',
|
|
1105
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1106
|
+
'yxjYyxLcDwzMzxi',
|
|
1107
|
+
'w3rHCMDLDd0',
|
|
1108
|
+
'AhvTyw5Z',
|
|
1109
|
+
'C2vYDMvYtMfTzq',
|
|
1110
|
+
'zNjVBq',
|
|
1111
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1112
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1113
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1114
|
+
'CMvHzf9OAxn0B3j5',
|
|
1115
|
+
'CgfYA193B3jRzxi',
|
|
1116
|
+
'C29Tzq',
|
|
184
1117
|
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
193
|
-
'z2v0rNvSBfLLyxi',
|
|
194
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
195
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
196
|
-
'l3vWBg9Hza',
|
|
197
|
-
'igLUia',
|
|
198
|
-
'zg9Uzq',
|
|
199
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
200
|
-
'CMvHzeHPC3rVCNK',
|
|
201
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
202
|
-
'D29YA2vYtw9Kzq',
|
|
203
|
-
'C2vUzgvYvhLWzq',
|
|
1118
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1119
|
+
'A2LUza',
|
|
1120
|
+
'B3b0Aw9UywW',
|
|
1121
|
+
'Dg9mB3DLCKnHC2u',
|
|
1122
|
+
'C29YDa',
|
|
1123
|
+
'y29UDgvUDejHC2u2na',
|
|
1124
|
+
'ihn0yxr1CZ0',
|
|
204
1125
|
'AxnbCNjHEq',
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
1126
|
+
'CNvUswq',
|
|
1127
|
+
'AgfZtw9Yzq',
|
|
1128
|
+
'lsaJ',
|
|
1129
|
+
'lsba',
|
|
209
1130
|
'yxbWBgLJyxrPB24VEg1S',
|
|
1131
|
+
'Dg9tDhjPBMC',
|
|
1132
|
+
'zg06',
|
|
1133
|
+
'BgLZDf9Zzxj2zxi',
|
|
1134
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1135
|
+
'zMfSC2u',
|
|
1136
|
+
'BNvTyMvY',
|
|
1137
|
+
'y29UDgvUDc10ExbL',
|
|
1138
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1139
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1140
|
+
'DgHYzwfKswq',
|
|
1141
|
+
'C3rYAw5NAwz5',
|
|
1142
|
+
'DgfYz2v0',
|
|
1143
|
+
'ndvMBxzQyNO',
|
|
1144
|
+
'zgf0yq',
|
|
1145
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1146
|
+
'C3rVCe1HAw4',
|
|
1147
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1148
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1149
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1150
|
+
'DgfZAY0',
|
|
1151
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1152
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1153
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1154
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1155
|
+
'yxjYyxK',
|
|
1156
|
+
'AhjLzG',
|
|
1157
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1158
|
+
'zw50CMLLCW',
|
|
210
1159
|
'D29YA2vYsgfUzg9MzG',
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
1160
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1161
|
+
'y2HHBM5LBeLK',
|
|
1162
|
+
'iJOGC3rHDhvZpq',
|
|
1163
|
+
'y2HHDa',
|
|
1164
|
+
'Bg93',
|
|
1165
|
+
'ue9tva',
|
|
1166
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
1167
|
+
'vgfZAYa',
|
|
1168
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1169
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1170
|
+
'lcbWCMv2Awv3pq',
|
|
1171
|
+
'BgLZDfrHC2TZ',
|
|
215
1172
|
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
216
|
-
'
|
|
1173
|
+
'AxngAw5PDgu',
|
|
1174
|
+
'Bwf0y2Hoyw1L',
|
|
1175
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1176
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
1177
|
+
'yxv0BZO',
|
|
1178
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1179
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1180
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1181
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1182
|
+
'l3rHC2TZl2nSywLT',
|
|
1183
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1184
|
+
'zgvZy3jPChrPB24',
|
|
1185
|
+
'l3vWBg9Hza',
|
|
1186
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1187
|
+
'l2HPC3rVCNK/',
|
|
1188
|
+
'CMvHC29U',
|
|
1189
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
1190
|
+
'r0vu',
|
|
217
1191
|
'yxr0ywnOBwvUDf9Pza',
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'BwLU',
|
|
221
|
-
'ls1Hz2vUDc1Pza',
|
|
222
|
-
'AxnbyNnVBhv0zq',
|
|
223
|
-
'nZm2nZi4yxHsDLnA',
|
|
224
|
-
'C29YDa',
|
|
225
|
-
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
226
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1192
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1193
|
+
'kg5VBMuP',
|
|
227
1194
|
'yxjNDG',
|
|
228
|
-
'
|
|
229
|
-
'DgfYz2v0zwq',
|
|
230
|
-
'yxjYyxLcDwzMzxi',
|
|
231
|
-
'ls1KywvTB24TBg9JywWTDxjS',
|
|
232
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
233
|
-
'D29YA2vY',
|
|
234
|
-
'w3rHCMDLDd0',
|
|
235
|
-
'C2HHmJu2',
|
|
236
|
-
'AxnjBNrLz2vY',
|
|
237
|
-
'AgfZtw9Yzq',
|
|
238
|
-
'DgHYzwfKtNvTyMvY',
|
|
239
|
-
'y3vYC29Y',
|
|
240
|
-
'iokaLca',
|
|
241
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
242
|
-
'igrVBMuP',
|
|
243
|
-
'lMjPBG',
|
|
244
|
-
'z2v0rgf0zq',
|
|
245
|
-
'zMLSDgvY',
|
|
246
|
-
'C2vYDMvY',
|
|
247
|
-
'l2zPBMLZAa',
|
|
248
|
-
'l3rHC2TZl2nSywLT',
|
|
249
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
250
|
-
'ls1Zzxj2zxiTDxjS',
|
|
251
|
-
'Dgv4Dc9JC3y',
|
|
252
|
-
'mc4WlJa',
|
|
253
|
-
'zgLZCg9ZAxrPB24',
|
|
254
|
-
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
255
|
-
'ignSywLTzwq',
|
|
256
|
-
'DxjNzw50',
|
|
257
|
-
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
258
|
-
'zw51Bq',
|
|
259
|
-
'zMv0y2HjBxbS',
|
|
260
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
1195
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
261
1196
|
'y3jLyxrLzef0',
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
1197
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1198
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1199
|
+
'BwvKAxvT',
|
|
1200
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1201
|
+
'C2vYDMvY',
|
|
1202
|
+
'nJeYmJG4ovziyLjjBG',
|
|
1203
|
+
'nZm1ntm4m3nPDhjXCa',
|
|
1204
|
+
'yxr0ywnOBwvUDeLK',
|
|
1205
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1206
|
+
'Axnoyu4',
|
|
1207
|
+
'yMvMB3jL',
|
|
1208
|
+
'Aw5FChjVz3jLC3m',
|
|
1209
|
+
'DgfYz2v0zwruyxnR',
|
|
1210
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1211
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1212
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1213
|
+
'AgLNAa',
|
|
1214
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
273
1215
|
'DMLLD19MAwXLigzHAwXLza',
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
1216
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1217
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1218
|
+
'y3jLyxrLvgfZA3m',
|
|
1219
|
+
'ywDNCMvNyxrLswq',
|
|
1220
|
+
'B2jQzwn0',
|
|
1221
|
+
'nLHhwevKsG',
|
|
1222
|
+
'Dw5JBgfPBvrHC2S',
|
|
278
1223
|
'DgHYzwfKvgfYz2v0',
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'
|
|
294
|
-
'
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'
|
|
299
|
-
'
|
|
1224
|
+
'zMv0y2HjBxbS',
|
|
1225
|
+
'zMLSzv9WyxrO',
|
|
1226
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1227
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1228
|
+
'y3vYC29Y',
|
|
1229
|
+
'C2vUzgvYvhLWzq',
|
|
1230
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1231
|
+
'y29UDgvUDa',
|
|
1232
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1233
|
+
'zgfLBw9UqxbPs2v5',
|
|
1234
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1235
|
+
'CMvZDwX0sNnVBG',
|
|
1236
|
+
'mtK3nZi0mLHxtKX6Dq',
|
|
1237
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1238
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1239
|
+
'zMLSzw5HBwu',
|
|
1240
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1241
|
+
'ig1LC3nHz2vZkqOk',
|
|
1242
|
+
'ywjVCNrLza',
|
|
1243
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1244
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1245
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1246
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1247
|
+
'DMfSDwu',
|
|
1248
|
+
'C2LNBMfS',
|
|
300
1249
|
'tM8GDgfZA3mGzM91BMqU',
|
|
1250
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1251
|
+
'yM9KEvrLEhq',
|
|
1252
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1253
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1254
|
+
'BwvZC2fNzv9Pzhm',
|
|
1255
|
+
'BwvZC2fNzq',
|
|
1256
|
+
'DgHYzwfK',
|
|
1257
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1258
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1259
|
+
'BwvTyMvY',
|
|
1260
|
+
'ANnVBG',
|
|
1261
|
+
'C2L6zuj5DgvZ',
|
|
1262
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
301
1263
|
'C3rHDhvZ',
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'Dw5JBgfPBvrHC2S',
|
|
308
|
-
'DxnLCG',
|
|
309
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
310
|
-
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1264
|
+
'igrVBMuP',
|
|
1265
|
+
'ChjVDg9JB2W',
|
|
1266
|
+
'yxr0ywnOBwvUDhm',
|
|
1267
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1268
|
+
'z2v0tw9UDgG',
|
|
311
1269
|
'DgfZA051BwjLCG',
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
1270
|
+
'zg9Uzq',
|
|
1271
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1272
|
+
'DgfZA0LK',
|
|
1273
|
+
'z2v0rgf0zq',
|
|
1274
|
+
'lNnSB2nR',
|
|
1275
|
+
'z2v0twLUDxrLCW',
|
|
1276
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1277
|
+
'Dw5RBM93BG',
|
|
1278
|
+
'DxbKyxrL',
|
|
1279
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1280
|
+
'CgfYC2vjBNq',
|
|
319
1281
|
'ywDLBNrZ',
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
1282
|
+
'BgLZDfnLCNzLCG',
|
|
1283
|
+
'vgfZAZOG',
|
|
1284
|
+
'C3rHCNrLza',
|
|
1285
|
+
'D29YA2vYCW',
|
|
1286
|
+
'BwvZC2fNzxm',
|
|
1287
|
+
'l3nLCNzLCG',
|
|
1288
|
+
'iIbUB3qGzM91BMq',
|
|
1289
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1290
|
+
'D29YA19RzxK',
|
|
1291
|
+
'DMLLD19MAwXL',
|
|
1292
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1293
|
+
'sfruuca',
|
|
1294
|
+
'y2XPzw50',
|
|
1295
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1296
|
+
'cGOTls0G',
|
|
1297
|
+
'ywjVCNq',
|
|
1298
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1299
|
+
'ig1LC3nHz2u9',
|
|
1300
|
+
'l3n0yxj0',
|
|
1301
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1302
|
+
'CMvHzeHPC3rVCNK',
|
|
1303
|
+
'z2v0vgLTzq',
|
|
1304
|
+
'CMvZCg9UC2u',
|
|
1305
|
+
'ywDLBNq',
|
|
325
1306
|
'ChvZAa',
|
|
326
|
-
'
|
|
1307
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1308
|
+
'iYmJienOyw5UzwXZ',
|
|
327
1309
|
'DhLWzq',
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'odqZm1jeDfnisW',
|
|
331
|
-
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
1310
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1311
|
+
'kgXLz2fJEsK',
|
|
332
1312
|
'Aw1Hz2uVCg5N',
|
|
333
|
-
'zgf0yq',
|
|
334
|
-
'ywjVCNrLza',
|
|
335
|
-
'l2nVBNrLBNq',
|
|
336
1313
|
'DhjPBq',
|
|
337
|
-
'
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'zMLSzv9WyxrO',
|
|
341
|
-
'zMfSC2u',
|
|
342
|
-
'CNvUBMLUzW',
|
|
343
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
344
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
345
|
-
'mJvir3vKCuG',
|
|
346
|
-
'ywXS',
|
|
347
|
-
'igTPBMq9',
|
|
348
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
349
|
-
'AgfZ',
|
|
350
|
-
'ywDLBNq',
|
|
351
|
-
'ywDNCMvNyxrLswq',
|
|
352
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
353
|
-
'ig1ZzZ0',
|
|
354
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
355
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
356
|
-
'yxnPzgu',
|
|
357
|
-
'vgfZAYa',
|
|
358
|
-
'iIbUB3qGzM91BMq',
|
|
359
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
360
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
361
|
-
'l3nLCNzLCG',
|
|
362
|
-
'zxH0BMfTzq',
|
|
363
|
-
'ywDLBNrjza',
|
|
364
|
-
'BwvKAxvT',
|
|
365
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
366
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
367
|
-
'CMvZDwX0CW',
|
|
368
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
369
|
-
'C2vUzf9TzxnZywDL',
|
|
370
|
-
'C29Tzq',
|
|
371
|
-
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
372
|
-
'sfruuca',
|
|
373
|
-
'ihr5Cgu9ywDLBNq',
|
|
374
|
-
'CMvWBgfJzq',
|
|
1314
|
+
'y2XHAw1FDgfZA3m',
|
|
1315
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1316
|
+
'BMv4Den1CNnVCG',
|
|
375
1317
|
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
376
|
-
'
|
|
377
|
-
'
|
|
1318
|
+
'xsba',
|
|
1319
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
378
1320
|
'CxvLDwvK',
|
|
379
|
-
'
|
|
1321
|
+
'Ahr0CdO',
|
|
1322
|
+
'Aw1Hz2uVD2vICa',
|
|
1323
|
+
'mJq5mtq4ELvdqvDR',
|
|
1324
|
+
'Bwv0yq',
|
|
1325
|
+
'zgLNzxn0',
|
|
1326
|
+
'mJeXmJy3mgv2DNjUEa',
|
|
1327
|
+
'ywrK',
|
|
1328
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1329
|
+
'ktSGz290ignOyw5UzwW9',
|
|
1330
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1331
|
+
'iYmGu2vYDMvYoIa',
|
|
1332
|
+
'C2vYDMvYvxjS',
|
|
1333
|
+
'Aw5JBhvKzxm',
|
|
1334
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1335
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1336
|
+
'CNvUBMLUzW',
|
|
1337
|
+
'w3nLCt0',
|
|
1338
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1339
|
+
'C2XPy2u',
|
|
1340
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1341
|
+
'AM9PBG',
|
|
1342
|
+
'y2HHBM5LBe5HBwu',
|
|
1343
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1344
|
+
'v29YA2vYia',
|
|
1345
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1346
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1347
|
+
'Agv4',
|
|
1348
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1349
|
+
'zg0T',
|
|
1350
|
+
'uefuq0G',
|
|
1351
|
+
'BgLZDf90yxnRCW',
|
|
1352
|
+
'DgvZDa',
|
|
1353
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1354
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1355
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1356
|
+
'BwvTyMvYCW',
|
|
1357
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1358
|
+
'Dgv4Da',
|
|
1359
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1360
|
+
'Aw1Hz2uVz2LM',
|
|
1361
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1362
|
+
'Bwf4',
|
|
1363
|
+
'D29YA2vYtw9Kzq',
|
|
1364
|
+
'y2HPBgrYzw5eB25L',
|
|
1365
|
+
'D3m6',
|
|
1366
|
+
'zxzLBNrtzxe',
|
|
1367
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1368
|
+
'l2nVBNrLBNq',
|
|
1369
|
+
'Dgv4Dc9WBgfPBG',
|
|
1370
|
+
'CgfKu3rHCNq',
|
|
380
1371
|
'zgvZy3jPyMu',
|
|
381
|
-
'
|
|
1372
|
+
'zMLSDgvY',
|
|
1373
|
+
'AxngAwXL',
|
|
1374
|
+
'BMfTzq',
|
|
382
1375
|
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
392
|
-
'
|
|
393
|
-
'C3rYAw5N',
|
|
394
|
-
'zMLUza',
|
|
1376
|
+
'C2v0',
|
|
1377
|
+
'C3bSAxq',
|
|
1378
|
+
'ls1Hz2vUDc1Pza',
|
|
1379
|
+
'DgHYzwfKtNvTyMvY',
|
|
1380
|
+
'DgfZA3m',
|
|
1381
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1382
|
+
'igzHAwXLzdOG',
|
|
1383
|
+
'C2vZC2LVBKLK',
|
|
1384
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1385
|
+
'yMfZzty0',
|
|
395
1386
|
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
1387
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1388
|
+
'igf0DgfJAg1LBNq',
|
|
1389
|
+
'DgfYz2v0zwq',
|
|
1390
|
+
'ywz0zxi',
|
|
1391
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1392
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1393
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1394
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1395
|
+
'ihrPBwu9',
|
|
1396
|
+
'mc4WlJa',
|
|
1397
|
+
'CMvZDwX0CW',
|
|
1398
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1399
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1400
|
+
'DgfZA19Pza',
|
|
1401
|
+
'ChvIBgLJ',
|
|
1402
|
+
'BwfW',
|
|
1403
|
+
'y2fJAgveAxi',
|
|
1404
|
+
'ig1ZzZ0',
|
|
1405
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1406
|
+
'igTPBMq9',
|
|
1407
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
1408
|
+
'Dg9ju09tDhjPBMC',
|
|
1409
|
+
'Dw5JBgfPBv90yxnR',
|
|
402
1410
|
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'ig1LC3nHz2vZkqOk',
|
|
413
|
-
'Agv4',
|
|
414
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
415
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
416
|
-
'AxngAw5PDgu',
|
|
417
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
418
|
-
'AM9PBG',
|
|
419
|
-
'zxzLBNrtzxe',
|
|
420
|
-
'y2XHAw1FDgfZA3m',
|
|
421
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
422
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
423
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
424
|
-
'z2v0sg91CNm',
|
|
425
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
426
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
427
|
-
'EM9K',
|
|
1411
|
+
'Dg9VBa',
|
|
1412
|
+
'C3rHCNrZv2L0Aa',
|
|
1413
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
1414
|
+
'BM93',
|
|
1415
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1416
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1417
|
+
'BgvUz3rO',
|
|
1418
|
+
'pgvTChr5pG',
|
|
1419
|
+
'AgfZ',
|
|
428
1420
|
'ywz0zxjtzxe',
|
|
429
|
-
'
|
|
430
|
-
'
|
|
1421
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
1422
|
+
'mti2otCYog92uhPYAa',
|
|
1423
|
+
'y2HHBM5LBhm',
|
|
1424
|
+
'lMjPBG',
|
|
1425
|
+
'zxjYB3i',
|
|
1426
|
+
'C2vUze1LC3nHz2u',
|
|
1427
|
+
'6k+35Rgcia',
|
|
1428
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1429
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1430
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
1431
|
+
'BgLTAxq',
|
|
1432
|
+
'og9IvvjTuG',
|
|
1433
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1434
|
+
'ywDNCMvNyxrLswrZ',
|
|
1435
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1436
|
+
'DxnLCG',
|
|
1437
|
+
'AwrSzq',
|
|
1438
|
+
'l3nLBMq',
|
|
1439
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1440
|
+
'zxHWAxjLC0f0',
|
|
1441
|
+
'C2L6zq',
|
|
1442
|
+
'iYmJieH1BwfUCW',
|
|
1443
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1444
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1445
|
+
'CMvWBgfJzq',
|
|
1446
|
+
'C3rYAw5N',
|
|
1447
|
+
'y2HHBM5LBa',
|
|
1448
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1449
|
+
'y2XHAw1uyxnRCW',
|
|
1450
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1451
|
+
'zMLUza',
|
|
1452
|
+
'ignSywLTzwq',
|
|
1453
|
+
'nZDqtMTns0m',
|
|
1454
|
+
'DMLZAwjPBgL0Eq',
|
|
1455
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
1456
|
+
'yM9KEu1HCMTKB3DU',
|
|
1457
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1458
|
+
'igLUia',
|
|
431
1459
|
'DxbSB2fKx2zPBgu',
|
|
1460
|
+
'ntq3mdG1nu1bAMj5tG',
|
|
1461
|
+
'C3vIDgfZA051BwjLCG',
|
|
1462
|
+
'AgvHzgvYCW',
|
|
1463
|
+
'AxnjBNrLz2vY',
|
|
1464
|
+
'y2f0y2G',
|
|
1465
|
+
'zw51Bq',
|
|
1466
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1467
|
+
'iokaLca',
|
|
1468
|
+
'ls1Zzxj2zxiTDxjS',
|
|
1469
|
+
'Cgf5Bg9HzePZB24',
|
|
1470
|
+
'khvUA25VD24P',
|
|
1471
|
+
'DMfSDwvZ',
|
|
1472
|
+
'BwvZC2fNzuLK',
|
|
1473
|
+
'z2v0',
|
|
1474
|
+
'AxnbyNnVBhv0zq',
|
|
1475
|
+
'zgLZCg9ZAxrPB24',
|
|
1476
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1477
|
+
'C3vJy2vZCW',
|
|
1478
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
432
1479
|
'DgfZAW',
|
|
433
|
-
'
|
|
434
|
-
'
|
|
435
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
436
|
-
'pgvTChr5pG',
|
|
437
|
-
'v29YA2vYici',
|
|
438
|
-
'C3rHCNrZv2L0Aa',
|
|
439
|
-
'DgfYz2v0',
|
|
440
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
441
|
-
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
442
|
-
'CgfYC2u',
|
|
443
|
-
'zgvZy3jPChrPB24',
|
|
444
|
-
'Dg9KBW',
|
|
445
|
-
'Ahr0Chm6',
|
|
446
|
-
'y2XHAw1uyxnRCW',
|
|
447
|
-
'C2XPy2u',
|
|
448
|
-
'C3rHCNrLza',
|
|
449
|
-
'yMvMB3jL',
|
|
450
|
-
'yMfZzw5HBwu',
|
|
451
|
-
'D29YA2vYvgHYzwfKvgfYz2v0'
|
|
1480
|
+
'zgvSzxrL',
|
|
1481
|
+
'ihr5Cgu9ywDLBNq'
|
|
452
1482
|
];
|
|
453
|
-
|
|
454
|
-
return
|
|
455
|
-
};
|
|
456
|
-
return _0x281a();
|
|
457
|
-
}
|
|
458
|
-
function guessContentType(_0x3c3c81) {
|
|
459
|
-
const _0x140e38 = { _0x1ea248: 0x1bf }, _0x4825f7 = _0x1b8c9f;
|
|
460
|
-
return MIME_BY_EXTENSION[_0x31ca99[_0x4825f7(0x119)](_0x3c3c81)[_0x4825f7(_0x140e38._0x1ea248)]()] ?? _0x4825f7(0x260);
|
|
461
|
-
}
|
|
462
|
-
function safeFilename(_0x402af2) {
|
|
463
|
-
const _0x477dba = { _0x584bec: 0x125 }, _0x383064 = _0x1b8c9f;
|
|
464
|
-
return _0x402af2[_0x383064(_0x477dba._0x584bec)](/[\\/]/g, '-');
|
|
465
|
-
}
|
|
466
|
-
function extensionFor(_0x333f91) {
|
|
467
|
-
const _0x39b676 = _0x1b8c9f, _0x40239d = Object[_0x39b676(0x1f6)](MIME_BY_EXTENSION)[_0x39b676(0x139)](([, _0x495f01]) => _0x495f01 === _0x333f91);
|
|
468
|
-
return _0x40239d?.[0x0] ?? _0x39b676(0x236);
|
|
469
|
-
}
|
|
470
|
-
async function prepareUploadFile(_0x167820, _0x1c3a75 = {}) {
|
|
471
|
-
const _0x3d5f14 = {
|
|
472
|
-
_0x1fd979: 0x221,
|
|
473
|
-
_0x5e6926: 0x13d,
|
|
474
|
-
_0x3a4462: 0x1e4,
|
|
475
|
-
_0x5f3a86: 0x1e2,
|
|
476
|
-
_0x37e1d7: 0x171
|
|
477
|
-
}, _0x38d1fa = _0x1b8c9f;
|
|
478
|
-
if (!_0x31ca99[_0x38d1fa(_0x3d5f14._0x1fd979)](_0x167820))
|
|
479
|
-
throw new Error(_0x38d1fa(0x141));
|
|
480
|
-
const _0x28ef67 = await stat(_0x167820)[_0x38d1fa(0x211)](() => null);
|
|
481
|
-
if (!_0x28ef67 || !_0x28ef67[_0x38d1fa(_0x3d5f14._0x5e6926)]())
|
|
482
|
-
throw new Error(_0x38d1fa(0x1c0) + _0x167820);
|
|
483
|
-
const _0x153c19 = _0x1c3a75[_0x38d1fa(_0x3d5f14._0x3a4462)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
484
|
-
if (_0x28ef67[_0x38d1fa(_0x3d5f14._0x5f3a86)] > _0x153c19)
|
|
485
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x28ef67[_0x38d1fa(0x1e2)]);
|
|
486
|
-
const _0x2a6af2 = await readFile(_0x167820), _0x1830ab = _0x31ca99[_0x38d1fa(_0x3d5f14._0x37e1d7)](_0x167820);
|
|
487
|
-
return {
|
|
488
|
-
'contentBase64': _0x2a6af2[_0x38d1fa(0x25f)]('base64'),
|
|
489
|
-
'contentType': guessContentType(_0x1830ab),
|
|
490
|
-
'filename': _0x1830ab,
|
|
491
|
-
'sizeBytes': _0x28ef67[_0x38d1fa(_0x3d5f14._0x5f3a86)]
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
function createAttachmentCache(_0x1f5af6 = {}) {
|
|
495
|
-
const _0x393ba5 = { _0x52b8f5: 0x1d0 }, _0x229d81 = {
|
|
496
|
-
_0x4b7234: 0x151,
|
|
497
|
-
_0x2abbfa: 0x160
|
|
498
|
-
}, _0x437e37 = _0x1b8c9f, _0x56f27d = _0x1f5af6[_0x437e37(_0x393ba5._0x52b8f5)] ?? _0x31ca99[_0x437e37(0x151)](homedir(), _0x437e37(0x184), _0x437e37(0x1bb));
|
|
499
|
-
return {
|
|
500
|
-
'cacheDir': _0x56f27d,
|
|
501
|
-
async 'findCachedPath'(_0x102a07) {
|
|
502
|
-
const _0x266f24 = _0x437e37;
|
|
503
|
-
await mkdir(_0x56f27d, { 'recursive': !![] });
|
|
504
|
-
const _0x46c6cf = await readdir(_0x56f27d), _0x531e71 = _0x46c6cf[_0x266f24(0x139)](_0x19c1cf => _0x19c1cf[_0x266f24(0x165)](_0x102a07 + '-') || _0x19c1cf[_0x266f24(0x165)](_0x102a07));
|
|
505
|
-
return _0x531e71 ? _0x31ca99['join'](_0x56f27d, _0x531e71) : null;
|
|
506
|
-
},
|
|
507
|
-
async 'save'(_0x3a6acd) {
|
|
508
|
-
const _0x21f664 = _0x437e37;
|
|
509
|
-
await mkdir(_0x56f27d, { 'recursive': !![] });
|
|
510
|
-
const _0x5207b1 = _0x3a6acd['originalFilename']?.[_0x21f664(0x293)]() ? safeFilename(_0x3a6acd[_0x21f664(0x193)]) : '' + _0x3a6acd['attachmentId'] + extensionFor(_0x3a6acd[_0x21f664(0x1ee)]), _0x469ae2 = _0x31ca99[_0x21f664(_0x229d81._0x4b7234)](_0x56f27d, _0x3a6acd[_0x21f664(_0x229d81._0x2abbfa)] + '-' + _0x5207b1);
|
|
511
|
-
return await writeFile(_0x469ae2, _0x3a6acd['data']), _0x469ae2;
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
}
|
|
515
|
-
import {
|
|
516
|
-
createHash,
|
|
517
|
-
randomUUID
|
|
518
|
-
} from 'node:crypto';
|
|
519
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x1b8c9f(0x1ed);
|
|
520
|
-
function ensureSegment(_0x1bf4bb) {
|
|
521
|
-
const _0xbcc793 = {
|
|
522
|
-
_0x3fdfe5: 0x293,
|
|
523
|
-
_0x97d610: 0x12e
|
|
524
|
-
}, _0x4eb96a = _0x1b8c9f, _0x1df6ab = _0x1bf4bb[_0x4eb96a(_0xbcc793._0x3fdfe5)]();
|
|
525
|
-
if (!_0x1df6ab || _0x1df6ab[_0x4eb96a(_0xbcc793._0x97d610)](':'))
|
|
526
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
527
|
-
return _0x1df6ab;
|
|
528
|
-
}
|
|
529
|
-
function parseThreadParts(_0x308189) {
|
|
530
|
-
const _0x5ee37d = {
|
|
531
|
-
_0x3d831b: 0x250,
|
|
532
|
-
_0x5ec6cd: 0x135,
|
|
533
|
-
_0x5dd18b: 0x135
|
|
534
|
-
}, _0x31cc31 = _0x1b8c9f, _0x2aec83 = _0x308189[_0x31cc31(_0x5ee37d._0x3d831b)](':');
|
|
535
|
-
if (_0x2aec83[_0x31cc31(_0x5ee37d._0x5ec6cd)] < 0x1 || _0x2aec83[_0x31cc31(_0x5ee37d._0x5dd18b)] > 0x2)
|
|
536
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
537
|
-
return {
|
|
538
|
-
'channelName': ensureSegment(_0x2aec83[0x0] ?? ''),
|
|
539
|
-
'threadShortId': _0x2aec83[0x1] ? ensureSegment(_0x2aec83[0x1]) : null
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
function parseTarget(_0x389b5b) {
|
|
543
|
-
const _0xa0ff28 = {
|
|
544
|
-
_0x357d26: 0x293,
|
|
545
|
-
_0xa4a1cd: 0x174,
|
|
546
|
-
_0x5c8e14: 0x1f4,
|
|
547
|
-
_0x1b8f18: 0x268,
|
|
548
|
-
_0x2f4026: 0x174,
|
|
549
|
-
_0x2645c3: 0x1f4,
|
|
550
|
-
_0x1ed5fc: 0x165,
|
|
551
|
-
_0x2d89b1: 0x1a2,
|
|
552
|
-
_0x135a42: 0x1f4
|
|
553
|
-
}, _0x4f2e46 = _0x1b8c9f, _0x101416 = _0x389b5b[_0x4f2e46(_0xa0ff28._0x357d26)]();
|
|
554
|
-
if (!_0x101416)
|
|
555
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
556
|
-
if (_0x101416[_0x4f2e46(0x165)]('#')) {
|
|
557
|
-
const _0x3030a5 = parseThreadParts(_0x101416['slice'](0x1)), _0xffaef2 = '#' + _0x3030a5[_0x4f2e46(_0xa0ff28._0xa4a1cd)];
|
|
558
|
-
if (!_0x3030a5[_0x4f2e46(_0xa0ff28._0x5c8e14)])
|
|
559
|
-
return {
|
|
560
|
-
'channelName': _0x3030a5['channelName'],
|
|
561
|
-
'channelTarget': _0xffaef2,
|
|
562
|
-
'kind': _0x4f2e46(_0xa0ff28._0x1b8f18),
|
|
563
|
-
'target': _0xffaef2
|
|
564
|
-
};
|
|
565
|
-
return {
|
|
566
|
-
'channelName': _0x3030a5[_0x4f2e46(_0xa0ff28._0x2f4026)],
|
|
567
|
-
'channelTarget': _0xffaef2,
|
|
568
|
-
'kind': _0x4f2e46(0x1b4),
|
|
569
|
-
'target': _0xffaef2 + ':' + _0x3030a5[_0x4f2e46(0x1f4)],
|
|
570
|
-
'threadShortId': _0x3030a5[_0x4f2e46(_0xa0ff28._0x2645c3)]
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
if (_0x101416[_0x4f2e46(_0xa0ff28._0x1ed5fc)](_0x4f2e46(_0xa0ff28._0x2d89b1))) {
|
|
574
|
-
const _0x5785d1 = parseThreadParts(_0x101416[_0x4f2e46(0x16e)](0x3));
|
|
575
|
-
if (!_0x5785d1[_0x4f2e46(_0xa0ff28._0xa4a1cd)]['startsWith']('dm-'))
|
|
576
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
577
|
-
const _0x5317db = _0x4f2e46(0x1a2) + _0x5785d1[_0x4f2e46(_0xa0ff28._0x2f4026)];
|
|
578
|
-
if (!_0x5785d1[_0x4f2e46(_0xa0ff28._0x135a42)])
|
|
579
|
-
return {
|
|
580
|
-
'channelName': _0x5785d1[_0x4f2e46(_0xa0ff28._0x2f4026)],
|
|
581
|
-
'channelTarget': _0x5317db,
|
|
582
|
-
'kind': _0x4f2e46(_0xa0ff28._0x1b8f18),
|
|
583
|
-
'target': _0x5317db
|
|
584
|
-
};
|
|
585
|
-
return {
|
|
586
|
-
'channelName': _0x5785d1[_0x4f2e46(0x174)],
|
|
587
|
-
'channelTarget': _0x5317db,
|
|
588
|
-
'kind': _0x4f2e46(0x1b4),
|
|
589
|
-
'target': _0x5317db + ':' + _0x5785d1[_0x4f2e46(0x1f4)],
|
|
590
|
-
'threadShortId': _0x5785d1[_0x4f2e46(0x1f4)]
|
|
591
|
-
};
|
|
592
|
-
}
|
|
593
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
594
|
-
}
|
|
595
|
-
function asErrorMessage(_0x31c138, _0x1920bb) {
|
|
596
|
-
const _0x2775f4 = { _0x447b7d: 0x293 }, _0x2b61ab = _0x1b8c9f;
|
|
597
|
-
if (typeof _0x31c138 === 'string' && _0x31c138[_0x2b61ab(_0x2775f4._0x447b7d)]())
|
|
598
|
-
return _0x31c138;
|
|
599
|
-
return _0x1920bb;
|
|
600
|
-
}
|
|
601
|
-
function asRecord(_0x184ba9) {
|
|
602
|
-
const _0x279d9a = { _0x278bc1: 0x1d9 }, _0x4d6fb1 = _0x1b8c9f;
|
|
603
|
-
return typeof _0x184ba9 === _0x4d6fb1(_0x279d9a._0x278bc1) && _0x184ba9 !== null ? _0x184ba9 : {};
|
|
604
|
-
}
|
|
605
|
-
function stableStringify(_0x41b8b6) {
|
|
606
|
-
const _0x592a1f = {
|
|
607
|
-
_0xe22049: 0x20f,
|
|
608
|
-
_0x4506ab: 0x238,
|
|
609
|
-
_0x2d7d32: 0x151
|
|
610
|
-
}, _0x393373 = _0x1b8c9f;
|
|
611
|
-
if (_0x41b8b6 === null || typeof _0x41b8b6 !== _0x393373(0x1d9))
|
|
612
|
-
return JSON['stringify'](_0x41b8b6);
|
|
613
|
-
if (Array[_0x393373(_0x592a1f._0xe22049)](_0x41b8b6))
|
|
614
|
-
return '[' + _0x41b8b6[_0x393373(0x1be)](_0x385c87 => stableStringify(_0x385c87))[_0x393373(0x151)](',') + ']';
|
|
615
|
-
const _0x3aba32 = Object[_0x393373(0x1f6)](_0x41b8b6)[_0x393373(_0x592a1f._0x4506ab)](([, _0xe648e4]) => _0xe648e4 !== void 0x0)['sort'](([_0x4ea308], [_0x2ab922]) => _0x4ea308[_0x393373(0x26c)](_0x2ab922))[_0x393373(0x1be)](([_0x450ac9, _0x535360]) => JSON['stringify'](_0x450ac9) + ':' + stableStringify(_0x535360));
|
|
616
|
-
return '{' + _0x3aba32[_0x393373(_0x592a1f._0x2d7d32)](',') + '}';
|
|
617
|
-
}
|
|
618
|
-
function createHeaders(_0xc98de8) {
|
|
619
|
-
return {
|
|
620
|
-
'Content-Type': 'application/json',
|
|
621
|
-
'x-daemon-api-key': _0xc98de8
|
|
622
|
-
};
|
|
623
|
-
}
|
|
624
|
-
function toHttpBaseUrl(_0x5b342a) {
|
|
625
|
-
const _0x557057 = {
|
|
626
|
-
_0x13a9de: 0x1b7,
|
|
627
|
-
_0x544b53: 0x187,
|
|
628
|
-
_0x5da655: 0x190,
|
|
629
|
-
_0x57c782: 0x16c
|
|
630
|
-
}, _0x2291fe = _0x1b8c9f, _0x2b4942 = new URL(_0x5b342a);
|
|
631
|
-
if (_0x2b4942['protocol'] === _0x2291fe(_0x557057._0x13a9de))
|
|
632
|
-
_0x2b4942[_0x2291fe(0x187)] = _0x2291fe(0x1fd);
|
|
633
|
-
else
|
|
634
|
-
_0x2b4942[_0x2291fe(_0x557057._0x544b53)] === _0x2291fe(_0x557057._0x5da655) && (_0x2b4942[_0x2291fe(0x187)] = _0x2291fe(_0x557057._0x57c782));
|
|
635
|
-
return _0x2b4942[_0x2291fe(0x25f)]()[_0x2291fe(0x125)](/\/$/, '');
|
|
636
|
-
}
|
|
637
|
-
function isMentionBoundary(_0x4f0aa5) {
|
|
638
|
-
const _0x2217ba = _0x1b8c9f;
|
|
639
|
-
return !_0x4f0aa5 || /\s|[([{'",。!?、:;]/[_0x2217ba(0x262)](_0x4f0aa5);
|
|
640
|
-
}
|
|
641
|
-
function isMentionTerminal(_0x5b9641) {
|
|
642
|
-
const _0x4af8c2 = _0x1b8c9f;
|
|
643
|
-
return !_0x5b9641 || /\s|[)\]}'",。!?、:;,.!?]/[_0x4af8c2(0x262)](_0x5b9641);
|
|
644
|
-
}
|
|
645
|
-
function buildMatchableEntries(_0x5375ab) {
|
|
646
|
-
const _0x566120 = {
|
|
647
|
-
_0x56c6b7: 0x282,
|
|
648
|
-
_0x3f46e7: 0x1c8,
|
|
649
|
-
_0x536431: 0x1ba,
|
|
650
|
-
_0x2cfc02: 0x1c6
|
|
651
|
-
}, _0xe1b1dd = _0x1b8c9f, _0x3cc9ab = [];
|
|
652
|
-
for (const _0x423a86 of [
|
|
653
|
-
..._0x5375ab[_0xe1b1dd(_0x566120._0x56c6b7)],
|
|
654
|
-
..._0x5375ab[_0xe1b1dd(_0x566120._0x3f46e7)]
|
|
655
|
-
]) {
|
|
656
|
-
_0x3cc9ab[_0xe1b1dd(0x288)]({
|
|
657
|
-
'matchName': _0x423a86[_0xe1b1dd(0x1ba)],
|
|
658
|
-
'matchNameLower': _0x423a86[_0xe1b1dd(0x1ba)][_0xe1b1dd(0x1c6)](),
|
|
659
|
-
'participantId': _0x423a86['id']
|
|
660
|
-
}), _0x423a86['id'] !== _0x423a86[_0xe1b1dd(_0x566120._0x536431)] && _0x3cc9ab[_0xe1b1dd(0x288)]({
|
|
661
|
-
'matchName': _0x423a86['id'],
|
|
662
|
-
'matchNameLower': _0x423a86['id'][_0xe1b1dd(_0x566120._0x2cfc02)](),
|
|
663
|
-
'participantId': _0x423a86['id']
|
|
664
|
-
});
|
|
665
|
-
}
|
|
666
|
-
return _0x3cc9ab;
|
|
667
|
-
}
|
|
668
|
-
function extractMentionedParticipantIds(_0x26ca65, _0x349679) {
|
|
669
|
-
const _0x4b5916 = {
|
|
670
|
-
_0x24009e: 0x16e,
|
|
671
|
-
_0x215dec: 0x1c6,
|
|
672
|
-
_0x22f569: 0x139,
|
|
673
|
-
_0x3c23a1: 0x2a0,
|
|
674
|
-
_0x1d85e9: 0x288,
|
|
675
|
-
_0x1dae42: 0x267
|
|
676
|
-
}, _0x2b9add = _0x1b8c9f, _0x3018a4 = buildMatchableEntries(_0x349679)[_0x2b9add(0x223)]((_0x46a691, _0x5dd500) => _0x5dd500[_0x2b9add(0x267)][_0x2b9add(0x135)] - _0x46a691[_0x2b9add(0x267)][_0x2b9add(0x135)]), _0x740247 = [], _0x2daf4e = new Set();
|
|
677
|
-
for (let _0x16d23c = 0x0; _0x16d23c < _0x26ca65[_0x2b9add(0x135)]; _0x16d23c += 0x1) {
|
|
678
|
-
if (_0x26ca65[_0x16d23c] !== '@' || !isMentionBoundary(_0x26ca65[_0x16d23c - 0x1]))
|
|
679
|
-
continue;
|
|
680
|
-
const _0x1e9dbf = _0x26ca65[_0x2b9add(_0x4b5916._0x24009e)](_0x16d23c + 0x1), _0x44194b = _0x1e9dbf[_0x2b9add(_0x4b5916._0x215dec)](), _0x43fc43 = _0x3018a4[_0x2b9add(_0x4b5916._0x22f569)](_0x3c8965 => {
|
|
681
|
-
const _0x37a5f2 = _0x2b9add;
|
|
682
|
-
if (!_0x44194b[_0x37a5f2(0x165)](_0x3c8965[_0x37a5f2(0x158)]))
|
|
683
|
-
return ![];
|
|
684
|
-
return isMentionTerminal(_0x1e9dbf[_0x3c8965['matchName'][_0x37a5f2(0x135)]]);
|
|
685
|
-
});
|
|
686
|
-
if (!_0x43fc43 || _0x2daf4e[_0x2b9add(_0x4b5916._0x3c23a1)](_0x43fc43[_0x2b9add(0x216)]))
|
|
687
|
-
continue;
|
|
688
|
-
_0x2daf4e[_0x2b9add(0x142)](_0x43fc43[_0x2b9add(0x216)]), _0x740247[_0x2b9add(_0x4b5916._0x1d85e9)](_0x43fc43['participantId']), _0x16d23c += _0x43fc43[_0x2b9add(_0x4b5916._0x1dae42)][_0x2b9add(0x135)];
|
|
689
|
-
}
|
|
690
|
-
return _0x740247;
|
|
691
|
-
}
|
|
692
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
693
|
-
function anySignal(..._0x22d9d6) {
|
|
694
|
-
const _0x594ab7 = {
|
|
695
|
-
_0x4b614b: 0x263,
|
|
696
|
-
_0x89659c: 0x1ef,
|
|
697
|
-
_0x4b21f1: 0x15d
|
|
698
|
-
}, _0x10db74 = _0x1b8c9f, _0x167a3d = new AbortController();
|
|
699
|
-
for (const _0x29b3a5 of _0x22d9d6) {
|
|
700
|
-
if (_0x29b3a5[_0x10db74(0x291)])
|
|
701
|
-
return _0x167a3d['abort'](_0x29b3a5['reason']), _0x167a3d[_0x10db74(_0x594ab7._0x4b614b)];
|
|
702
|
-
_0x29b3a5[_0x10db74(_0x594ab7._0x89659c)](_0x10db74(_0x594ab7._0x4b21f1), () => _0x167a3d[_0x10db74(0x15d)](_0x29b3a5[_0x10db74(0x13c)]), {
|
|
703
|
-
'once': !![],
|
|
704
|
-
'signal': _0x167a3d[_0x10db74(0x263)]
|
|
705
|
-
});
|
|
706
|
-
}
|
|
707
|
-
return _0x167a3d['signal'];
|
|
708
|
-
}
|
|
709
|
-
function createInternalAgentClient(_0x5df74d) {
|
|
710
|
-
const _0x4011f5 = {
|
|
711
|
-
_0x4ee8c3: 0x246,
|
|
712
|
-
_0x1d6546: 0x191,
|
|
713
|
-
_0xb606ce: 0x1f7,
|
|
714
|
-
_0x288ea5: 0x293,
|
|
715
|
-
_0x299397: 0x148,
|
|
716
|
-
_0x37c85d: 0x172,
|
|
717
|
-
_0x1e62ca: 0x199
|
|
718
|
-
}, _0x4543a0 = {
|
|
719
|
-
_0x21c467: 0x286,
|
|
720
|
-
_0x2808dc: 0x180,
|
|
721
|
-
_0x4a965e: 0x135,
|
|
722
|
-
_0xbd3860: 0x183,
|
|
723
|
-
_0x202adb: 0x121,
|
|
724
|
-
_0x126e13: 0x196,
|
|
725
|
-
_0x2e0500: 0x1a7,
|
|
726
|
-
_0x5a748a: 0x24c,
|
|
727
|
-
_0x2cdf69: 0x231,
|
|
728
|
-
_0x454581: 0x191,
|
|
729
|
-
_0x8ba5ab: 0x22f,
|
|
730
|
-
_0x204e73: 0x213,
|
|
731
|
-
_0x485fcf: 0x1f0,
|
|
732
|
-
_0x8c1fb9: 0x131,
|
|
733
|
-
_0x5d052a: 0x2a2,
|
|
734
|
-
_0xd9a5: 0x257,
|
|
735
|
-
_0x4678c5: 0x196,
|
|
736
|
-
_0x20fd16: 0x1ba,
|
|
737
|
-
_0x2c0556: 0x258,
|
|
738
|
-
_0x272297: 0x213,
|
|
739
|
-
_0x11eb20: 0x17a,
|
|
740
|
-
_0x40d1d0: 0x228,
|
|
741
|
-
_0x4f3d73: 0x213,
|
|
742
|
-
_0x433f03: 0x288,
|
|
743
|
-
_0x5a5aa7: 0x20e,
|
|
744
|
-
_0x4916f8: 0x138,
|
|
745
|
-
_0x56fcfd: 0x1cf,
|
|
746
|
-
_0x54ccd7: 0x258
|
|
747
|
-
}, _0x26e747 = {
|
|
748
|
-
_0x1a490b: 0x170,
|
|
749
|
-
_0x515c39: 0x24c
|
|
750
|
-
}, _0x1ae5ec = {
|
|
751
|
-
_0x1fa5ba: 0x292,
|
|
752
|
-
_0x3fa537: 0x290
|
|
753
|
-
}, _0x3e2e85 = {
|
|
754
|
-
_0x51a6ac: 0x18c,
|
|
755
|
-
_0x13ac2c: 0x11a,
|
|
756
|
-
_0xe44f6b: 0x207,
|
|
757
|
-
_0x21b24e: 0x166,
|
|
758
|
-
_0x56a105: 0x146,
|
|
759
|
-
_0x19cd2f: 0x1ee,
|
|
760
|
-
_0x26569: 0x193
|
|
761
|
-
}, _0x21bb76 = {
|
|
762
|
-
_0x5dbe01: 0x11a,
|
|
763
|
-
_0x1ae730: 0x192,
|
|
764
|
-
_0x4e5f84: 0x1cc,
|
|
765
|
-
_0x5f155f: 0x212
|
|
766
|
-
}, _0x377b53 = {
|
|
767
|
-
_0x458747: 0x11a,
|
|
768
|
-
_0x40b572: 0x23b,
|
|
769
|
-
_0x19b3b0: 0x227
|
|
770
|
-
}, _0x48b349 = { _0x7eaf4e: 0x11a }, _0x3286be = {
|
|
771
|
-
_0x5712ac: 0x268,
|
|
772
|
-
_0x21cd07: 0x270,
|
|
773
|
-
_0x289d52: 0x270,
|
|
774
|
-
_0x44ed91: 0x274,
|
|
775
|
-
_0x127088: 0x11a,
|
|
776
|
-
_0x28d1bc: 0x134
|
|
777
|
-
}, _0x1bd002 = {
|
|
778
|
-
_0x5679ba: 0x17d,
|
|
779
|
-
_0x4d2768: 0x18a,
|
|
780
|
-
_0x133498: 0x1a4,
|
|
781
|
-
_0x4bae78: 0x270
|
|
782
|
-
}, _0x49a9ff = {
|
|
783
|
-
_0x355c58: 0x275,
|
|
784
|
-
_0x4d9546: 0x1cc
|
|
785
|
-
}, _0x56b65f = {
|
|
786
|
-
_0x143d50: 0x27d,
|
|
787
|
-
_0xc43261: 0x1cc,
|
|
788
|
-
_0x2f7bcd: 0x290
|
|
789
|
-
}, _0x1e7fb8 = {
|
|
790
|
-
_0x47f3ad: 0x19c,
|
|
791
|
-
_0x5a58c6: 0x24c,
|
|
792
|
-
_0x451f14: 0x1d4
|
|
793
|
-
}, _0x8d5f6b = {
|
|
794
|
-
_0x1d759c: 0x257,
|
|
795
|
-
_0x4a9637: 0x24c,
|
|
796
|
-
_0x1c1e2a: 0x257,
|
|
797
|
-
_0x383fc7: 0x1a7,
|
|
798
|
-
_0x56c632: 0x21d,
|
|
799
|
-
_0x5cab96: 0x21d,
|
|
800
|
-
_0x2997d7: 0x274,
|
|
801
|
-
_0x141325: 0x11a,
|
|
802
|
-
_0x3fa425: 0x1dd,
|
|
803
|
-
_0x44e398: 0x266,
|
|
804
|
-
_0x495bf8: 0x230,
|
|
805
|
-
_0x4e9d54: 0x180
|
|
806
|
-
}, _0x4fe121 = {
|
|
807
|
-
_0x1b7d8d: 0x25d,
|
|
808
|
-
_0x2d0eb5: 0x1ba
|
|
809
|
-
}, _0x24b49a = { _0x508f6b: 0x216 }, _0x3891ec = {
|
|
810
|
-
_0x155ab2: 0x1b4,
|
|
811
|
-
_0x3ddb0b: 0x266,
|
|
812
|
-
_0x53bd4f: 0x231,
|
|
813
|
-
_0x3956bd: 0x1f0,
|
|
814
|
-
_0x58191d: 0x165,
|
|
815
|
-
_0x244373: 0x24c
|
|
816
|
-
}, _0x2f5bb1 = {
|
|
817
|
-
_0x5288d7: 0x231,
|
|
818
|
-
_0x320763: 0x24c
|
|
819
|
-
}, _0x20ee86 = {
|
|
820
|
-
_0x2db5bc: 0x282,
|
|
821
|
-
_0x56a916: 0x2a1,
|
|
822
|
-
_0x196b7f: 0x1a9
|
|
823
|
-
}, _0x14d545 = { _0x3fbb5d: 0x211 }, _0x1387db = {
|
|
824
|
-
_0xd1bd89: 0x274,
|
|
825
|
-
_0x1bb9d6: 0x118,
|
|
826
|
-
_0x10a996: 0x286,
|
|
827
|
-
_0x58f55e: 0x238,
|
|
828
|
-
_0x2e78fa: 0x239,
|
|
829
|
-
_0x2eecf7: 0x1ba
|
|
830
|
-
}, _0x4643d0 = {
|
|
831
|
-
_0x4ba066: 0x266,
|
|
832
|
-
_0x4b17d4: 0x290,
|
|
833
|
-
_0x371389: 0x24c,
|
|
834
|
-
_0x4af8c8: 0x290
|
|
835
|
-
}, _0x8929f8 = {
|
|
836
|
-
_0x3a9ae3: 0x189,
|
|
837
|
-
_0xf40b7a: 0x1cc,
|
|
838
|
-
_0x1eb94b: 0x123
|
|
839
|
-
}, _0x6d2dd = { _0x1c427f: 0x130 }, _0x3e978a = {
|
|
840
|
-
_0x6f99d9: 0x263,
|
|
841
|
-
_0x5ec268: 0x263,
|
|
842
|
-
_0x5b5093: 0x263,
|
|
843
|
-
_0x245605: 0x1a4,
|
|
844
|
-
_0x54c4c7: 0x123,
|
|
845
|
-
_0x32fa7b: 0x270
|
|
846
|
-
}, _0x479e26 = {
|
|
847
|
-
_0x550958: 0x263,
|
|
848
|
-
_0x3f8072: 0x195,
|
|
849
|
-
_0x4496ec: 0x1a4
|
|
850
|
-
}, _0x1cc249 = {
|
|
851
|
-
_0x42d099: 0x1b9,
|
|
852
|
-
_0x17e838: 0x1e3,
|
|
853
|
-
_0xac17cf: 0x1df,
|
|
854
|
-
_0x3fd6e1: 0x14c,
|
|
855
|
-
_0x5ca3c5: 0x213
|
|
856
|
-
}, _0xadd605 = {
|
|
857
|
-
_0x3a65f6: 0x1a3,
|
|
858
|
-
_0x42dd19: 0x229
|
|
859
|
-
}, _0x366fb8 = {
|
|
860
|
-
_0x5532f2: 0x294,
|
|
861
|
-
_0x11c6b8: 0x12a,
|
|
862
|
-
_0x305a4a: 0x1af,
|
|
863
|
-
_0x29a82a: 0x270,
|
|
864
|
-
_0x1906ef: 0x188,
|
|
865
|
-
_0x547a08: 0x17c,
|
|
866
|
-
_0x25fd10: 0x26b
|
|
867
|
-
}, _0x392684 = _0x1b8c9f, _0x26d1b4 = _0x5df74d[_0x392684(_0x4011f5._0x4ee8c3)] ?? fetch, _0x15d960 = _0x5df74d[_0x392684(0x159)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x56bfe6 = typeof _0x5df74d[_0x392684(0x1f7)] === _0x392684(_0x4011f5._0x1d6546) && _0x5df74d[_0x392684(0x1f7)] > 0x0 ? _0x5df74d[_0x392684(_0x4011f5._0xb606ce)] : 0x0, _0x4947c5 = _0x5df74d['daemonLocalUrl']?.[_0x392684(_0x4011f5._0x288ea5)]() || void 0x0, _0x5d991b = _0x5df74d[_0x392684(_0x4011f5._0x299397)]?.['trim']() || void 0x0, _0x228b85 = _0x5df74d[_0x392684(0x1ea)] === !![], _0xfa4e0 = _0x5df74d['workerSessionId']?.['trim']() || void 0x0, _0x2a0de9 = _0x5df74d[_0x392684(_0x4011f5._0x37c85d)]?.[_0x392684(0x293)]() || void 0x0, _0x316d86 = createHeaders(_0x5df74d['daemonApiKey']), _0x1ae1e6 = toHttpBaseUrl(_0x5df74d[_0x392684(_0x4011f5._0x1e62ca)]);
|
|
868
|
-
let _0x7654c5 = null;
|
|
869
|
-
const _0x49a99b = new Map();
|
|
870
|
-
let _0x1a9c8d = _0x56bfe6, _0x81647f = _0x56bfe6;
|
|
871
|
-
function _0x48f0e6(_0x341c5e) {
|
|
872
|
-
const _0x5479ed = _0x392684, _0x48b4db = _0x341c5e[_0x5479ed(_0x366fb8._0x5532f2)][_0x5479ed(_0x366fb8._0x11c6b8)][_0x5479ed(0x213)]('content-type') ?? _0x5479ed(0x1e0), _0x59689f = _0x341c5e['bodyText']['trim']()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5479ed(0x163);
|
|
873
|
-
return _0x5479ed(0x21b) + _0x341c5e[_0x5479ed(_0x366fb8._0x305a4a)] + _0x5479ed(0x162) + _0x341c5e[_0x5479ed(0x294)][_0x5479ed(_0x366fb8._0x29a82a)] + _0x5479ed(_0x366fb8._0x1906ef) + _0x48b4db + _0x5479ed(_0x366fb8._0x547a08) + _0x59689f + _0x5479ed(_0x366fb8._0x25fd10);
|
|
874
|
-
}
|
|
875
|
-
async function _0x41683e(_0x29662b, _0x8b7d88) {
|
|
876
|
-
const _0x1faffc = _0x392684, _0x3f6cf4 = Buffer[_0x1faffc(_0xadd605._0x3a65f6)](await _0x8b7d88[_0x1faffc(_0xadd605._0x42dd19)]())['toString']('utf8');
|
|
877
|
-
if (!_0x3f6cf4[_0x1faffc(0x293)]())
|
|
878
|
-
return {};
|
|
879
|
-
try {
|
|
880
|
-
return JSON[_0x1faffc(0x169)](_0x3f6cf4);
|
|
881
|
-
} catch {
|
|
882
|
-
throw new Error(_0x48f0e6({
|
|
883
|
-
'bodyText': _0x3f6cf4,
|
|
884
|
-
'requestUrl': _0x29662b,
|
|
885
|
-
'response': _0x8b7d88
|
|
886
|
-
}));
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
function _0x4852c(_0xfb15a8, _0x3c5fab) {
|
|
890
|
-
const _0x3067c7 = _0x392684, _0x370a15 = typeof _0x3c5fab['idempotency_key'] === 'string' ? _0x3c5fab[_0x3067c7(_0x1cc249._0x42d099)]['trim']() : '';
|
|
891
|
-
if (_0x370a15)
|
|
892
|
-
return _0x370a15;
|
|
893
|
-
const _0x801bdc = Date[_0x3067c7(_0x1cc249._0x17e838)]();
|
|
894
|
-
for (const [_0x27843c, _0xbe36e3] of _0x49a99b) {
|
|
895
|
-
_0xbe36e3[_0x3067c7(_0x1cc249._0xac17cf)] <= _0x801bdc && _0x49a99b[_0x3067c7(0x182)](_0x27843c);
|
|
896
|
-
}
|
|
897
|
-
const _0x4a9fe4 = {
|
|
898
|
-
..._0x3c5fab,
|
|
899
|
-
'idempotency_key': void 0x0
|
|
900
|
-
}, _0x2d9004 = createHash(_0x3067c7(0x22e))[_0x3067c7(0x18e)](_0xfb15a8 + ':' + stableStringify(_0x4a9fe4))[_0x3067c7(0x289)](_0x3067c7(_0x1cc249._0x3fd6e1)), _0x36756a = _0xfb15a8 + ':' + _0x2d9004, _0x28b0d2 = _0x49a99b[_0x3067c7(_0x1cc249._0x5ca3c5)](_0x36756a);
|
|
901
|
-
if (_0x28b0d2)
|
|
902
|
-
return _0x28b0d2['value'];
|
|
903
|
-
const _0x34f6aa = _0x3067c7(0x173) + _0xfb15a8 + ':' + randomUUID();
|
|
904
|
-
return _0x49a99b[_0x3067c7(0x257)](_0x36756a, {
|
|
905
|
-
'expiresAt': _0x801bdc + 0x5 * 0x3c * 0x3e8,
|
|
906
|
-
'value': _0x34f6aa
|
|
907
|
-
}), _0x34f6aa;
|
|
908
|
-
}
|
|
909
|
-
async function _0x5f00a9(_0x410dbd, _0x49e517) {
|
|
910
|
-
const _0x43e92b = _0x392684, _0x187d43 = new AbortController(), _0x310cdf = setTimeout(() => _0x187d43[_0x43e92b(0x15d)](), _0x15d960), _0x214a3b = _0x49e517?.['signal'] ? anySignal(_0x49e517[_0x43e92b(_0x479e26._0x550958)], _0x187d43['signal']) : _0x187d43[_0x43e92b(0x263)], _0x39848e = '' + _0x1ae1e6 + _0x410dbd;
|
|
911
|
-
try {
|
|
912
|
-
const _0x43ef59 = await _0x26d1b4(_0x39848e, {
|
|
913
|
-
..._0x49e517,
|
|
914
|
-
'signal': _0x214a3b
|
|
915
|
-
}), _0x43d5d4 = await _0x41683e(_0x39848e, _0x43ef59);
|
|
916
|
-
if (!_0x43ef59['ok'] || _0x43d5d4[_0x43e92b(_0x479e26._0x3f8072)] === ![])
|
|
917
|
-
throw new Error(asErrorMessage(_0x43d5d4[_0x43e92b(_0x479e26._0x4496ec)], _0x43e92b(0x123) + _0x43ef59[_0x43e92b(0x270)]));
|
|
918
|
-
return _0x43d5d4;
|
|
919
|
-
} finally {
|
|
920
|
-
clearTimeout(_0x310cdf);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
async function _0x1ce2dd(_0x330be3, _0x1f8578) {
|
|
924
|
-
const _0xcbb989 = _0x392684, _0x288b37 = new AbortController(), _0x44e964 = setTimeout(() => _0x288b37[_0xcbb989(0x15d)](), _0x15d960), _0x8c19d4 = _0x1f8578?.[_0xcbb989(0x263)] ? anySignal(_0x1f8578[_0xcbb989(_0x3e978a._0x6f99d9)], _0x288b37[_0xcbb989(_0x3e978a._0x5ec268)]) : _0x288b37[_0xcbb989(_0x3e978a._0x5b5093)], _0x3789a4 = '' + _0x1ae1e6 + _0x330be3;
|
|
925
|
-
try {
|
|
926
|
-
const _0x37bae6 = await _0x26d1b4(_0x3789a4, {
|
|
927
|
-
..._0x1f8578,
|
|
928
|
-
'signal': _0x8c19d4
|
|
929
|
-
}), _0x47c52a = await _0x41683e(_0x3789a4, _0x37bae6);
|
|
930
|
-
if (!_0x37bae6['ok'])
|
|
931
|
-
throw new Error(asErrorMessage(_0x47c52a[_0xcbb989(_0x3e978a._0x245605)], _0xcbb989(_0x3e978a._0x54c4c7) + _0x37bae6[_0xcbb989(_0x3e978a._0x32fa7b)]));
|
|
932
|
-
return _0x47c52a;
|
|
933
|
-
} finally {
|
|
934
|
-
clearTimeout(_0x44e964);
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
async function _0x531ff0(_0x32bf5d) {
|
|
938
|
-
const _0x2f4bd3 = _0x392684;
|
|
939
|
-
if (!_0x5d991b || _0x32bf5d <= _0x81647f)
|
|
940
|
-
return;
|
|
941
|
-
await _0x5f00a9('/api/agent-sessions/' + encodeURIComponent(_0x5d991b) + _0x2f4bd3(_0x6d2dd._0x1c427f), {
|
|
942
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x32bf5d }),
|
|
943
|
-
'headers': _0x316d86,
|
|
944
|
-
'method': _0x2f4bd3(0x24d)
|
|
945
|
-
}), _0x81647f = _0x32bf5d;
|
|
946
|
-
}
|
|
947
|
-
async function _0x361051(_0x49361c) {
|
|
948
|
-
const _0x2f8124 = _0x392684;
|
|
949
|
-
if (!_0x4947c5 || !_0xfa4e0 || _0x49361c <= _0x81647f)
|
|
950
|
-
return;
|
|
951
|
-
const _0x14693a = await _0x26d1b4(_0x4947c5 + _0x2f8124(_0x8929f8._0x3a9ae3), {
|
|
952
|
-
'body': JSON[_0x2f8124(_0x8929f8._0xf40b7a)]({
|
|
953
|
-
'last_seen_seq': _0x49361c,
|
|
954
|
-
'worker_session_id': _0xfa4e0
|
|
955
|
-
}),
|
|
956
|
-
'headers': { 'Content-Type': _0x2f8124(0x200) },
|
|
957
|
-
'method': _0x2f8124(0x227)
|
|
958
|
-
});
|
|
959
|
-
if (!_0x14693a['ok'])
|
|
960
|
-
throw new Error(_0x2f8124(_0x8929f8._0x1eb94b) + _0x14693a['status']);
|
|
961
|
-
_0x81647f = _0x49361c;
|
|
962
|
-
}
|
|
963
|
-
async function _0x1f76d7(_0x11b702) {
|
|
964
|
-
const _0x49fc7f = _0x392684, _0x175c86 = parseTarget(_0x11b702), _0xc75acb = await _0x5f00a9('/internal/agent/' + _0x5df74d[_0x49fc7f(0x11a)] + _0x49fc7f(0x269), {
|
|
965
|
-
'body': JSON[_0x49fc7f(0x1cc)]({ 'target': _0x175c86['target'] }),
|
|
966
|
-
'headers': _0x316d86,
|
|
967
|
-
'method': _0x49fc7f(0x227)
|
|
968
|
-
});
|
|
969
|
-
return {
|
|
970
|
-
'channelId': _0xc75acb['data']?.[_0x49fc7f(0x1a7)] ?? '',
|
|
971
|
-
'target': _0x175c86[_0x49fc7f(_0x4643d0._0x4ba066)],
|
|
972
|
-
'task': _0xc75acb[_0x49fc7f(0x290)]?.[_0x49fc7f(0x15f)],
|
|
973
|
-
'threadId': _0xc75acb[_0x49fc7f(_0x4643d0._0x4b17d4)]?.[_0x49fc7f(_0x4643d0._0x371389)],
|
|
974
|
-
'threadNumber': _0xc75acb[_0x49fc7f(_0x4643d0._0x4af8c8)]?.[_0x49fc7f(0x231)]
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
async function _0x315294(_0x3f55ac = {}) {
|
|
978
|
-
const _0x517337 = _0x392684;
|
|
979
|
-
if (!_0x3f55ac[_0x517337(0x19b)] && _0x7654c5)
|
|
980
|
-
return _0x7654c5;
|
|
981
|
-
return _0x7654c5 = (async () => {
|
|
982
|
-
const _0x3ccdcd = _0x517337, _0x121d88 = await _0x5f00a9(_0x3ccdcd(_0x1387db._0xd1bd89) + _0x5df74d['agentId'] + _0x3ccdcd(_0x1387db._0x1bb9d6), {
|
|
983
|
-
'headers': _0x316d86,
|
|
984
|
-
'method': _0x3ccdcd(_0x1387db._0x10a996)
|
|
985
|
-
}), _0x14add1 = _0x121d88[_0x3ccdcd(0x290)]?.['members'] ?? [], _0x26d57f = _0x14add1[_0x3ccdcd(_0x1387db._0x58f55e)](_0x321b88 => _0x321b88[_0x3ccdcd(0x25d)]?.[_0x3ccdcd(0x28a)] === _0x3ccdcd(0x2a1))['map'](_0x2769e4 => ({
|
|
986
|
-
'id': _0x21d6b8(_0x2769e4),
|
|
987
|
-
'name': _0x4969ed(_0x2769e4)
|
|
988
|
-
}))[_0x3ccdcd(_0x1387db._0x58f55e)](_0x94f2d8 => _0x94f2d8['id']), _0x5a9991 = _0x14add1['filter'](_0x79d8a7 => _0x79d8a7[_0x3ccdcd(0x25d)]?.['type'] !== 'agent')[_0x3ccdcd(0x1be)](_0x21d1e8 => ({
|
|
989
|
-
'id': _0x21d6b8(_0x21d1e8),
|
|
990
|
-
'name': _0x4969ed(_0x21d1e8)
|
|
991
|
-
}))['filter'](_0x168099 => _0x168099['id']), _0x5e80c3 = _0x121d88[_0x3ccdcd(0x290)]?.[_0x3ccdcd(_0x1387db._0x2e78fa)]['id'] ?? '';
|
|
992
|
-
return {
|
|
993
|
-
'agents': _0x26d57f,
|
|
994
|
-
'channels': _0x121d88['data']?.[_0x3ccdcd(0x1a8)] ?? [],
|
|
995
|
-
'humans': _0x5a9991,
|
|
996
|
-
'serverId': _0x5e80c3,
|
|
997
|
-
'serverName': _0x121d88[_0x3ccdcd(0x290)]?.[_0x3ccdcd(0x239)][_0x3ccdcd(_0x1387db._0x2eecf7)] ?? _0x5e80c3
|
|
998
|
-
};
|
|
999
|
-
})()[_0x517337(_0x14d545._0x3fbb5d)](_0x411d9d => {
|
|
1000
|
-
_0x7654c5 = null;
|
|
1001
|
-
throw _0x411d9d;
|
|
1002
|
-
}), _0x7654c5;
|
|
1003
|
-
}
|
|
1004
|
-
function _0x3d804e(_0x2edcf2, _0x4f0af9) {
|
|
1005
|
-
const _0x2e18ed = _0x392684;
|
|
1006
|
-
return _0x4f0af9[_0x2e18ed(_0x20ee86._0x2db5bc)]['some'](_0x220bed => _0x220bed['id'] === _0x2edcf2 || _0x220bed[_0x2e18ed(0x1ba)] === _0x2edcf2) ? _0x2e18ed(_0x20ee86._0x56a916) : _0x2e18ed(_0x20ee86._0x196b7f);
|
|
1007
|
-
}
|
|
1008
|
-
function _0x118dc5(_0x24bab2) {
|
|
1009
|
-
const _0xe91c2e = _0x392684;
|
|
1010
|
-
if (_0x24bab2['threadNumber'] != null)
|
|
1011
|
-
return _0x24bab2[_0xe91c2e(0x266)] + ':t' + _0x24bab2[_0xe91c2e(_0x2f5bb1._0x5288d7)];
|
|
1012
|
-
if (_0x24bab2[_0xe91c2e(0x1f0)])
|
|
1013
|
-
return _0x24bab2[_0xe91c2e(0x266)] + ':' + _0x24bab2[_0xe91c2e(0x1f0)];
|
|
1014
|
-
if (_0x24bab2[_0xe91c2e(_0x2f5bb1._0x320763)])
|
|
1015
|
-
return _0x24bab2[_0xe91c2e(0x266)] + ':' + _0x24bab2[_0xe91c2e(0x24c)][_0xe91c2e(0x16e)](0x0, 0x8);
|
|
1016
|
-
return _0x24bab2['channelTarget'];
|
|
1017
|
-
}
|
|
1018
|
-
function _0x53854f(_0x42d52c, _0x33e0e2) {
|
|
1019
|
-
const _0x299dd0 = _0x392684;
|
|
1020
|
-
try {
|
|
1021
|
-
const _0x2afb67 = parseTarget(_0x42d52c);
|
|
1022
|
-
if (_0x2afb67[_0x299dd0(0x258)] !== _0x299dd0(_0x3891ec._0x155ab2) || _0x2afb67[_0x299dd0(_0x3891ec._0x3ddb0b)] !== _0x33e0e2['channelTarget'])
|
|
1023
|
-
return ![];
|
|
1024
|
-
if (_0x33e0e2[_0x299dd0(_0x3891ec._0x53bd4f)] != null && _0x2afb67['threadShortId'] === 't' + _0x33e0e2['threadNumber'])
|
|
1025
|
-
return !![];
|
|
1026
|
-
if (_0x33e0e2[_0x299dd0(_0x3891ec._0x3956bd)])
|
|
1027
|
-
return _0x2afb67[_0x299dd0(0x1f4)] === _0x33e0e2['rootMessageId'] || _0x33e0e2[_0x299dd0(_0x3891ec._0x3956bd)][_0x299dd0(_0x3891ec._0x58191d)](_0x2afb67[_0x299dd0(0x1f4)]);
|
|
1028
|
-
if (_0x33e0e2[_0x299dd0(_0x3891ec._0x244373)])
|
|
1029
|
-
return _0x2afb67[_0x299dd0(0x1f4)] === _0x33e0e2[_0x299dd0(_0x3891ec._0x244373)] || _0x33e0e2[_0x299dd0(0x24c)]['startsWith'](_0x2afb67['threadShortId']);
|
|
1030
|
-
return ![];
|
|
1031
|
-
} catch {
|
|
1032
|
-
return ![];
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
function _0x21d6b8(_0x58730f) {
|
|
1036
|
-
const _0x5210a6 = _0x392684;
|
|
1037
|
-
return _0x58730f[_0x5210a6(0x149)]?.['participantId'] ?? _0x58730f['participant']?.['id'] ?? _0x58730f[_0x5210a6(_0x24b49a._0x508f6b)] ?? '';
|
|
1038
|
-
}
|
|
1039
|
-
function _0x4969ed(_0x23d62) {
|
|
1040
|
-
const _0x2f700a = _0x392684;
|
|
1041
|
-
return _0x23d62[_0x2f700a(_0x4fe121._0x1b7d8d)]?.[_0x2f700a(_0x4fe121._0x2d0eb5)] ?? _0x21d6b8(_0x23d62);
|
|
1042
|
-
}
|
|
1043
|
-
async function _0x55dcd3(_0x378b79) {
|
|
1044
|
-
const _0x5805e4 = _0x392684, _0x2ef290 = Math[_0x5805e4(0x21f)](_0x378b79['limit'] ?? 0x32, 0x64), _0x5c3f28 = await _0x315294(), _0x4cc35e = new URLSearchParams();
|
|
1045
|
-
_0x4cc35e[_0x5805e4(_0x8d5f6b._0x1d759c)]('limit', String(_0x2ef290));
|
|
1046
|
-
_0x378b79[_0x5805e4(_0x8d5f6b._0x4a9637)] ? (_0x4cc35e[_0x5805e4(0x257)](_0x5805e4(0x24c), _0x378b79['threadId']), _0x4cc35e[_0x5805e4(_0x8d5f6b._0x1c1e2a)]('channelId', _0x378b79['channelId'])) : _0x4cc35e[_0x5805e4(0x257)](_0x5805e4(0x1a7), _0x378b79[_0x5805e4(_0x8d5f6b._0x383fc7)]);
|
|
1047
|
-
_0x378b79[_0x5805e4(0x170)] && _0x4cc35e[_0x5805e4(_0x8d5f6b._0x1d759c)](_0x5805e4(0x232), String(_0x378b79['before']));
|
|
1048
|
-
_0x378b79[_0x5805e4(0x21d)] !== void 0x0 && _0x4cc35e[_0x5805e4(0x257)](_0x5805e4(_0x8d5f6b._0x56c632), String(_0x378b79[_0x5805e4(_0x8d5f6b._0x5cab96)]));
|
|
1049
|
-
const _0x227286 = await _0x5f00a9(_0x5805e4(_0x8d5f6b._0x2997d7) + _0x5df74d[_0x5805e4(_0x8d5f6b._0x141325)] + _0x5805e4(_0x8d5f6b._0x3fa425) + _0x4cc35e['toString'](), {
|
|
1050
|
-
'headers': _0x316d86,
|
|
1051
|
-
'method': _0x5805e4(0x286)
|
|
1052
|
-
}), _0xe78ec2 = (_0x227286[_0x5805e4(0x290)] ?? [])['map'](_0x207752 => ({
|
|
1053
|
-
'attachments': (_0x207752[_0x5805e4(0x1bb)] ?? [])[_0x5805e4(0x1be)](_0x59e6b3 => ({
|
|
1054
|
-
'filename': _0x59e6b3[_0x5805e4(0x12f)] ?? _0x59e6b3['id'],
|
|
1055
|
-
'id': _0x59e6b3['id']
|
|
1056
|
-
})),
|
|
1057
|
-
'content': _0x207752['bodyMarkdown'] ?? '',
|
|
1058
|
-
'createdAt': _0x207752[_0x5805e4(0x248)],
|
|
1059
|
-
..._0x207752['kind'] && _0x207752[_0x5805e4(0x258)] !== _0x5805e4(0x1cf) ? { 'kind': _0x207752[_0x5805e4(0x258)] } : {},
|
|
1060
|
-
'messageId': _0x207752['id'],
|
|
1061
|
-
'senderName': _0x207752[_0x5805e4(0x18d)],
|
|
1062
|
-
'senderType': _0x3d804e(_0x207752[_0x5805e4(0x18d)], _0x5c3f28),
|
|
1063
|
-
'seq': _0x207752[_0x5805e4(0x152)] ?? 0x0
|
|
1064
|
-
}));
|
|
1065
|
-
return {
|
|
1066
|
-
'channel': _0x378b79[_0x5805e4(_0x8d5f6b._0x44e398)],
|
|
1067
|
-
'hasMore': _0x227286[_0x5805e4(0x180)]?.[_0x5805e4(_0x8d5f6b._0x495bf8)] ?? ![],
|
|
1068
|
-
'messages': _0xe78ec2,
|
|
1069
|
-
'nextCursor': _0x227286[_0x5805e4(_0x8d5f6b._0x4e9d54)]?.[_0x5805e4(0x232)]
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
return {
|
|
1073
|
-
async 'sendMessage'(_0x58f8d2) {
|
|
1074
|
-
const _0x202b5f = _0x392684, _0xeb6572 = await _0x1f76d7(_0x58f8d2[_0x202b5f(0x166)]), _0x55a7ec = _0x58f8d2['content'][_0x202b5f(0x12e)]('@') ? extractMentionedParticipantIds(_0x58f8d2[_0x202b5f(_0x1e7fb8._0x47f3ad)], await _0x315294()) : [], _0x39471c = await _0x5f00a9(_0x202b5f(0x274) + _0x5df74d['agentId'] + '/send', {
|
|
1075
|
-
'body': JSON[_0x202b5f(0x1cc)]({
|
|
1076
|
-
'attachment_ids': _0x58f8d2[_0x202b5f(0x155)],
|
|
1077
|
-
'bodyMarkdown': _0x58f8d2['content'],
|
|
1078
|
-
'channelId': _0xeb6572[_0x202b5f(0x1a7)],
|
|
1079
|
-
..._0x55a7ec['length'] > 0x0 ? { 'mentionedParticipantIds': _0x55a7ec } : {},
|
|
1080
|
-
'threadId': _0xeb6572[_0x202b5f(_0x1e7fb8._0x5a58c6)],
|
|
1081
|
-
..._0x58f8d2[_0x202b5f(_0x1e7fb8._0x451f14)] ? { 'visibility': _0x58f8d2[_0x202b5f(0x1d4)] } : {}
|
|
1082
|
-
}),
|
|
1083
|
-
'headers': _0x316d86,
|
|
1084
|
-
'method': 'POST'
|
|
1085
|
-
});
|
|
1086
|
-
return { 'messageId': _0x39471c['data']?.['id'] ?? '' };
|
|
1087
|
-
},
|
|
1088
|
-
async 'listSchedules'() {
|
|
1089
|
-
const _0x22e90f = _0x392684, _0x33b2e0 = await _0x5f00a9('/api/internal/schedules', {
|
|
1090
|
-
'headers': _0x316d86,
|
|
1091
|
-
'method': _0x22e90f(0x286)
|
|
1092
|
-
});
|
|
1093
|
-
return _0x33b2e0['data'] ?? [];
|
|
1094
|
-
},
|
|
1095
|
-
async 'claimScheduleRun'(_0x1165d9) {
|
|
1096
|
-
const _0x2ac8ac = _0x392684, _0x5b7fae = await _0x5f00a9(_0x2ac8ac(_0x56b65f._0x143d50), {
|
|
1097
|
-
'body': JSON[_0x2ac8ac(_0x56b65f._0xc43261)](_0x1165d9),
|
|
1098
|
-
'headers': _0x316d86,
|
|
1099
|
-
'method': _0x2ac8ac(0x227)
|
|
1100
|
-
});
|
|
1101
|
-
return _0x5b7fae[_0x2ac8ac(_0x56b65f._0x2f7bcd)] ?? {
|
|
1102
|
-
'granted': ![],
|
|
1103
|
-
'runId': null,
|
|
1104
|
-
'schedule': null,
|
|
1105
|
-
'scheduledFor': _0x1165d9[_0x2ac8ac(0x13f)]
|
|
1106
|
-
};
|
|
1107
|
-
},
|
|
1108
|
-
async 'startScheduleRun'(_0x8dfaf3) {
|
|
1109
|
-
const _0x52350a = _0x392684, _0x1d817b = await _0x5f00a9(_0x52350a(0x17d) + encodeURIComponent(_0x8dfaf3['runId']) + _0x52350a(_0x49a9ff._0x355c58), {
|
|
1110
|
-
'body': JSON[_0x52350a(_0x49a9ff._0x4d9546)]({}),
|
|
1111
|
-
'headers': _0x316d86,
|
|
1112
|
-
'method': _0x52350a(0x227)
|
|
1113
|
-
});
|
|
1114
|
-
return _0x1d817b[_0x52350a(0x290)] ?? {
|
|
1115
|
-
'claimedByDaemonId': '',
|
|
1116
|
-
'id': _0x8dfaf3[_0x52350a(0x18a)],
|
|
1117
|
-
'scheduleId': '',
|
|
1118
|
-
'status': _0x52350a(0x299)
|
|
1119
|
-
};
|
|
1120
|
-
},
|
|
1121
|
-
async 'finishScheduleRun'(_0x3de021) {
|
|
1122
|
-
const _0x559952 = _0x392684, _0x561c12 = await _0x5f00a9(_0x559952(_0x1bd002._0x5679ba) + encodeURIComponent(_0x3de021[_0x559952(_0x1bd002._0x4d2768)]) + _0x559952(0x23a), {
|
|
1123
|
-
'body': JSON[_0x559952(0x1cc)]({
|
|
1124
|
-
'error': _0x3de021[_0x559952(_0x1bd002._0x133498)],
|
|
1125
|
-
'resultJson': _0x3de021['resultJson'],
|
|
1126
|
-
'status': _0x3de021[_0x559952(_0x1bd002._0x4bae78)]
|
|
1127
|
-
}),
|
|
1128
|
-
'headers': _0x316d86,
|
|
1129
|
-
'method': 'POST'
|
|
1130
|
-
});
|
|
1131
|
-
return _0x561c12[_0x559952(0x290)] ?? {
|
|
1132
|
-
'nextRunAt': null,
|
|
1133
|
-
'run': {
|
|
1134
|
-
'claimedByDaemonId': '',
|
|
1135
|
-
'id': _0x3de021[_0x559952(0x18a)],
|
|
1136
|
-
'scheduleId': '',
|
|
1137
|
-
'status': _0x3de021['status']
|
|
1138
|
-
}
|
|
1139
|
-
};
|
|
1140
|
-
},
|
|
1141
|
-
async 'listTasks'(_0x50eddf) {
|
|
1142
|
-
const _0x52aa47 = _0x392684, _0xea606b = new URLSearchParams();
|
|
1143
|
-
return _0xea606b['set']('channel', _0x50eddf[_0x52aa47(_0x3286be._0x5712ac)]), _0x50eddf['status'] && _0xea606b[_0x52aa47(0x257)](_0x52aa47(_0x3286be._0x21cd07), _0x50eddf[_0x52aa47(_0x3286be._0x289d52)]), _0x1ce2dd(_0x52aa47(_0x3286be._0x44ed91) + _0x5df74d[_0x52aa47(_0x3286be._0x127088)] + _0x52aa47(_0x3286be._0x28d1bc) + _0xea606b['toString'](), {
|
|
1144
|
-
'headers': _0x316d86,
|
|
1145
|
-
'method': 'GET'
|
|
1146
|
-
});
|
|
1147
|
-
},
|
|
1148
|
-
async 'createTasks'(_0xdc982d) {
|
|
1149
|
-
const _0x2deeb1 = _0x392684;
|
|
1150
|
-
return _0x1ce2dd('/internal/agent/' + _0x5df74d[_0x2deeb1(_0x48b349._0x7eaf4e)] + _0x2deeb1(0x18f), {
|
|
1151
|
-
'body': JSON['stringify']({
|
|
1152
|
-
..._0xdc982d,
|
|
1153
|
-
'idempotency_key': _0x4852c('create_tasks', _0xdc982d)
|
|
1154
|
-
}),
|
|
1155
|
-
'headers': _0x316d86,
|
|
1156
|
-
'method': _0x2deeb1(0x227)
|
|
1157
|
-
});
|
|
1158
|
-
},
|
|
1159
|
-
async 'claimTasks'(_0xa32897) {
|
|
1160
|
-
const _0x570a85 = _0x392684;
|
|
1161
|
-
return _0x1ce2dd('/internal/agent/' + _0x5df74d[_0x570a85(_0x377b53._0x458747)] + _0x570a85(_0x377b53._0x40b572), {
|
|
1162
|
-
'body': JSON[_0x570a85(0x1cc)]({
|
|
1163
|
-
..._0xa32897,
|
|
1164
|
-
'idempotency_key': _0x4852c(_0x570a85(0x153), _0xa32897)
|
|
1165
|
-
}),
|
|
1166
|
-
'headers': _0x316d86,
|
|
1167
|
-
'method': _0x570a85(_0x377b53._0x19b3b0)
|
|
1168
|
-
});
|
|
1169
|
-
},
|
|
1170
|
-
async 'unclaimTask'(_0x3110eb) {
|
|
1171
|
-
const _0x17fc3e = _0x392684;
|
|
1172
|
-
return _0x1ce2dd(_0x17fc3e(0x274) + _0x5df74d[_0x17fc3e(_0x21bb76._0x5dbe01)] + _0x17fc3e(_0x21bb76._0x1ae730), {
|
|
1173
|
-
'body': JSON[_0x17fc3e(_0x21bb76._0x4e5f84)]({
|
|
1174
|
-
..._0x3110eb,
|
|
1175
|
-
'idempotency_key': _0x4852c(_0x17fc3e(_0x21bb76._0x5f155f), _0x3110eb)
|
|
1176
|
-
}),
|
|
1177
|
-
'headers': _0x316d86,
|
|
1178
|
-
'method': _0x17fc3e(0x227)
|
|
1179
|
-
});
|
|
1180
|
-
},
|
|
1181
|
-
async 'updateTaskStatus'(_0x503345) {
|
|
1182
|
-
const _0x37aedb = _0x392684;
|
|
1183
|
-
return _0x1ce2dd('/internal/agent/' + _0x5df74d[_0x37aedb(0x11a)] + '/tasks/update-status', {
|
|
1184
|
-
'body': JSON['stringify']({
|
|
1185
|
-
..._0x503345,
|
|
1186
|
-
'idempotency_key': _0x4852c(_0x37aedb(0x179), _0x503345)
|
|
1187
|
-
}),
|
|
1188
|
-
'headers': _0x316d86,
|
|
1189
|
-
'method': _0x37aedb(0x227)
|
|
1190
|
-
});
|
|
1191
|
-
},
|
|
1192
|
-
async 'uploadFile'(_0x535657) {
|
|
1193
|
-
const _0x137f37 = _0x392684, _0x5ec616 = await _0x1f76d7(_0x535657[_0x137f37(0x268)]);
|
|
1194
|
-
if (_0x5ec616[_0x137f37(0x24c)])
|
|
1195
|
-
throw new Error(_0x137f37(_0x3e2e85._0x51a6ac));
|
|
1196
|
-
const _0x52f7e9 = await _0x5f00a9('/internal/agent/' + _0x5df74d[_0x137f37(_0x3e2e85._0x13ac2c)] + _0x137f37(_0x3e2e85._0xe44f6b), {
|
|
1197
|
-
'body': JSON['stringify']({
|
|
1198
|
-
'channel': _0x5ec616[_0x137f37(_0x3e2e85._0x21b24e)],
|
|
1199
|
-
'contentBase64': _0x535657[_0x137f37(_0x3e2e85._0x56a105)],
|
|
1200
|
-
'contentType': _0x535657[_0x137f37(_0x3e2e85._0x19cd2f)],
|
|
1201
|
-
'originalFilename': _0x535657[_0x137f37(0x12f)]
|
|
1202
|
-
}),
|
|
1203
|
-
'headers': _0x316d86,
|
|
1204
|
-
'method': 'POST'
|
|
1205
|
-
});
|
|
1206
|
-
return {
|
|
1207
|
-
'attachmentId': _0x52f7e9[_0x137f37(0x290)]?.['id'] ?? '',
|
|
1208
|
-
'filename': _0x52f7e9[_0x137f37(0x290)]?.[_0x137f37(_0x3e2e85._0x26569)] ?? _0x535657['filename'],
|
|
1209
|
-
'sizeBytes': _0x52f7e9[_0x137f37(0x290)]?.[_0x137f37(0x26e)] ?? 0x0
|
|
1210
|
-
};
|
|
1211
|
-
},
|
|
1212
|
-
async 'downloadAttachment'(_0x90cff9) {
|
|
1213
|
-
const _0xc2443b = _0x392684, _0x4de95f = await _0x5f00a9(_0xc2443b(0x296) + _0x90cff9, {
|
|
1214
|
-
'headers': _0x316d86,
|
|
1215
|
-
'method': _0xc2443b(0x286)
|
|
1216
|
-
}), _0x114f51 = new AbortController(), _0x31fd69 = setTimeout(() => _0x114f51['abort'](), _0x15d960);
|
|
1217
|
-
try {
|
|
1218
|
-
const _0x5801f1 = await _0x26d1b4(_0x1ae1e6 + _0xc2443b(0x296) + _0x90cff9 + _0xc2443b(_0x1ae5ec._0x1fa5ba), {
|
|
1219
|
-
'headers': _0x316d86,
|
|
1220
|
-
'method': _0xc2443b(0x286),
|
|
1221
|
-
'signal': _0x114f51[_0xc2443b(0x263)]
|
|
1222
|
-
});
|
|
1223
|
-
if (!_0x5801f1['ok'])
|
|
1224
|
-
throw new Error(_0xc2443b(0x123) + _0x5801f1[_0xc2443b(0x270)]);
|
|
1225
|
-
return {
|
|
1226
|
-
'contentType': _0x4de95f[_0xc2443b(_0x1ae5ec._0x3fa537)]?.[_0xc2443b(0x1ee)] ?? _0x5801f1[_0xc2443b(0x12a)]['get']('content-type') ?? _0xc2443b(0x260),
|
|
1227
|
-
'data': Buffer['from'](await _0x5801f1['arrayBuffer']()),
|
|
1228
|
-
'originalFilename': _0x4de95f[_0xc2443b(_0x1ae5ec._0x3fa537)]?.['originalFilename']
|
|
1229
|
-
};
|
|
1230
|
-
} finally {
|
|
1231
|
-
clearTimeout(_0x31fd69);
|
|
1232
|
-
}
|
|
1233
|
-
},
|
|
1234
|
-
async 'listServer'() {
|
|
1235
|
-
return _0x315294({ 'forceRefresh': !![] });
|
|
1236
|
-
},
|
|
1237
|
-
async 'readHistory'(_0x53e645) {
|
|
1238
|
-
const _0x31929f = _0x392684, _0x4560f1 = await _0x1f76d7(_0x53e645['channel']);
|
|
1239
|
-
return _0x55dcd3({
|
|
1240
|
-
'after': _0x53e645[_0x31929f(0x21d)],
|
|
1241
|
-
'before': _0x53e645[_0x31929f(_0x26e747._0x1a490b)],
|
|
1242
|
-
'channelId': _0x4560f1[_0x31929f(0x1a7)],
|
|
1243
|
-
'channelTarget': _0x4560f1[_0x31929f(0x166)],
|
|
1244
|
-
'limit': _0x53e645['limit'],
|
|
1245
|
-
'threadId': _0x4560f1[_0x31929f(_0x26e747._0x515c39)]
|
|
1246
|
-
});
|
|
1247
|
-
},
|
|
1248
|
-
'resolveTarget': _0x1f76d7,
|
|
1249
|
-
async 'checkMessages'() {
|
|
1250
|
-
const _0x3c5e77 = {
|
|
1251
|
-
_0xb43ed: 0x1a7,
|
|
1252
|
-
_0x3774b3: 0x138
|
|
1253
|
-
}, _0x16abbc = _0x392684, _0x3d11e9 = new URLSearchParams();
|
|
1254
|
-
_0x3d11e9[_0x16abbc(0x257)](_0x16abbc(0x15b), String(_0x1a9c8d));
|
|
1255
|
-
const _0x460f94 = _0x3d11e9['toString'](), _0x21ddbb = await _0x5f00a9(_0x16abbc(0x274) + _0x5df74d['agentId'] + _0x16abbc(0x284) + (_0x460f94 ? '?' + _0x460f94 : ''), {
|
|
1256
|
-
'headers': _0x316d86,
|
|
1257
|
-
'method': _0x16abbc(_0x4543a0._0x21c467)
|
|
1258
|
-
}), _0x4ee05c = _0x21ddbb['data'] ?? [], _0x5e5697 = _0x21ddbb[_0x16abbc(_0x4543a0._0x2808dc)]?.[_0x16abbc(0x232)], _0x30adf5 = _0x5e5697 !== void 0x0 ? Math[_0x16abbc(0x28b)](_0x1a9c8d, _0x5e5697) : _0x4ee05c[_0x16abbc(_0x4543a0._0x4a965e)] > 0x0 ? Math[_0x16abbc(0x28b)](_0x1a9c8d, _0x4ee05c[_0x4ee05c[_0x16abbc(0x135)] - 0x1][_0x16abbc(_0x4543a0._0xbd3860)]) : _0x1a9c8d, _0x5ea15a = _0x4ee05c[_0x16abbc(0x238)](_0x3430ed => _0x3430ed[_0x16abbc(0x287)] === _0x16abbc(0x25e)), _0x2948af = _0x2a0de9 === void 0x0 && _0x228b85;
|
|
1259
|
-
let _0x5da524 = await _0x315294(), _0x4f6b8a = new Map(_0x5da524[_0x16abbc(0x1a8)]['map'](_0x78d5d8 => [
|
|
1260
|
-
_0x78d5d8['id'],
|
|
1261
|
-
_0x78d5d8
|
|
1262
|
-
]));
|
|
1263
|
-
const _0x456a54 = _0x5ea15a[_0x16abbc(_0x4543a0._0x202adb)](_0x5a9e5e => {
|
|
1264
|
-
const _0x4ded13 = _0x16abbc, _0x420041 = asRecord(_0x5a9e5e['payloadJson']), _0x473e05 = typeof _0x420041?.[_0x4ded13(_0x3c5e77._0xb43ed)] === _0x4ded13(_0x3c5e77._0x3774b3) ? _0x420041[_0x4ded13(0x1a7)] : '';
|
|
1265
|
-
return Boolean(_0x473e05) && !_0x4f6b8a[_0x4ded13(0x2a0)](_0x473e05);
|
|
1266
|
-
});
|
|
1267
|
-
_0x456a54 && (_0x5da524 = await _0x315294({ 'forceRefresh': !![] }), _0x4f6b8a = new Map(_0x5da524[_0x16abbc(0x1a8)][_0x16abbc(0x1be)](_0x535585 => [
|
|
1268
|
-
_0x535585['id'],
|
|
1269
|
-
_0x535585
|
|
1270
|
-
])));
|
|
1271
|
-
const _0xb90023 = new Map();
|
|
1272
|
-
for (const _0x446aae of _0x5ea15a) {
|
|
1273
|
-
const _0x3b870b = asRecord(_0x446aae[_0x16abbc(_0x4543a0._0x126e13)]), _0x698362 = typeof _0x3b870b[_0x16abbc(0x1a7)] === _0x16abbc(0x138) ? _0x3b870b[_0x16abbc(_0x4543a0._0x2e0500)] : '';
|
|
1274
|
-
if (!_0x698362)
|
|
1275
|
-
continue;
|
|
1276
|
-
const _0x1c449c = typeof _0x3b870b[_0x16abbc(0x24c)] === 'string' ? _0x3b870b[_0x16abbc(_0x4543a0._0x5a748a)] : void 0x0, _0x2cffc3 = typeof _0x3b870b[_0x16abbc(0x1f0)] === _0x16abbc(0x138) ? _0x3b870b['rootMessageId'] : void 0x0, _0x59c0b3 = typeof _0x3b870b[_0x16abbc(_0x4543a0._0x2cdf69)] === _0x16abbc(_0x4543a0._0x454581) && Number[_0x16abbc(_0x4543a0._0x8ba5ab)](_0x3b870b['threadNumber']) ? _0x3b870b['threadNumber'] : void 0x0, _0x9b3229 = Boolean(_0x1c449c && (!_0x2cffc3 || _0x446aae['aggregateId'] !== _0x2cffc3)), _0x447ab0 = _0x9b3229 ? _0x698362 + ':' + _0x1c449c : _0x698362, _0x40f487 = _0xb90023[_0x16abbc(_0x4543a0._0x204e73)](_0x447ab0) ?? {
|
|
1277
|
-
'aggregateIds': [],
|
|
1278
|
-
'channelId': _0x698362,
|
|
1279
|
-
'entries': new Map(),
|
|
1280
|
-
'isThreadReply': _0x9b3229,
|
|
1281
|
-
'rootMessageId': _0x2cffc3,
|
|
1282
|
-
'threadNumber': _0x59c0b3,
|
|
1283
|
-
'threadId': _0x9b3229 ? _0x1c449c : void 0x0
|
|
1284
|
-
};
|
|
1285
|
-
_0x40f487[_0x16abbc(_0x4543a0._0x2cdf69)] == null && _0x59c0b3 != null && (_0x40f487[_0x16abbc(0x231)] = _0x59c0b3), !_0x40f487[_0x16abbc(_0x4543a0._0x485fcf)] && _0x2cffc3 && (_0x40f487[_0x16abbc(0x1f0)] = _0x2cffc3), _0x40f487[_0x16abbc(_0x4543a0._0x8c1fb9)][_0x16abbc(0x288)](_0x446aae[_0x16abbc(_0x4543a0._0x5d052a)]), _0x40f487[_0x16abbc(0x1f6)][_0x16abbc(_0x4543a0._0xd9a5)](_0x446aae[_0x16abbc(0x2a2)], {
|
|
1286
|
-
'payloadJson': _0x446aae[_0x16abbc(_0x4543a0._0x4678c5)],
|
|
1287
|
-
'seq': _0x446aae[_0x16abbc(0x183)]
|
|
1288
|
-
}), _0xb90023[_0x16abbc(0x257)](_0x447ab0, _0x40f487);
|
|
1289
|
-
}
|
|
1290
|
-
const _0x342e8d = [];
|
|
1291
|
-
for (const _0x25c705 of _0xb90023['values']()) {
|
|
1292
|
-
const {
|
|
1293
|
-
channelId: _0x3dbdac,
|
|
1294
|
-
threadId: _0x473ad9,
|
|
1295
|
-
rootMessageId: _0x1d8a36,
|
|
1296
|
-
threadNumber: _0x160f78,
|
|
1297
|
-
aggregateIds: _0x1cd3fc,
|
|
1298
|
-
isThreadReply: _0x5b2d0e,
|
|
1299
|
-
entries: _0x394c30
|
|
1300
|
-
} = _0x25c705, _0x3bdc34 = _0x4f6b8a[_0x16abbc(0x213)](_0x3dbdac), _0x71babf = _0x3bdc34?.[_0x16abbc(_0x4543a0._0x20fd16)] ?? _0x3dbdac, _0x1f5123 = _0x3bdc34?.[_0x16abbc(_0x4543a0._0x2c0556)] === 'dm' ? 'dm:' + _0x71babf : '#' + _0x71babf, _0x56bf40 = {
|
|
1301
|
-
'channelTarget': _0x1f5123,
|
|
1302
|
-
'rootMessageId': _0x1d8a36,
|
|
1303
|
-
'threadId': _0x473ad9,
|
|
1304
|
-
'threadNumber': _0x160f78
|
|
1305
|
-
}, _0x4c1de8 = await _0x55dcd3({
|
|
1306
|
-
'channelId': _0x3dbdac,
|
|
1307
|
-
'channelTarget': _0x1f5123,
|
|
1308
|
-
'limit': Math[_0x16abbc(0x28b)](_0x1cd3fc[_0x16abbc(0x135)], 0x32),
|
|
1309
|
-
'threadId': _0x473ad9
|
|
1310
|
-
}), _0x2599aa = new Map(_0x4c1de8[_0x16abbc(0x137)]['map'](_0x4eeb3a => [
|
|
1311
|
-
_0x4eeb3a[_0x16abbc(0x24b)],
|
|
1312
|
-
_0x4eeb3a
|
|
1313
|
-
])), _0x1b4b52 = _0x473ad9 ? _0x118dc5(_0x56bf40) : _0x1f5123, _0x58126a = _0x2a0de9 ? _0x5b2d0e && _0x53854f(_0x2a0de9, _0x56bf40) : !![], _0x4e8bd9 = _0x5b2d0e ? _0x58126a && _0x2a0de9 ? _0x2a0de9 : _0x1b4b52 : _0x1f5123;
|
|
1314
|
-
for (const _0x320068 of _0x1cd3fc) {
|
|
1315
|
-
if (!_0x58126a)
|
|
1316
|
-
continue;
|
|
1317
|
-
const _0x518582 = _0x394c30[_0x16abbc(_0x4543a0._0x272297)](_0x320068), _0x481a7a = _0x518582 ? asRecord(_0x518582['payloadJson']) : void 0x0, _0x1d87de = _0x481a7a?.[_0x16abbc(_0x4543a0._0x11eb20)] === _0x16abbc(_0x4543a0._0x40d1d0);
|
|
1318
|
-
if (_0x2948af && _0x1d87de)
|
|
1319
|
-
continue;
|
|
1320
|
-
const _0x131186 = _0x2599aa[_0x16abbc(_0x4543a0._0x4f3d73)](_0x320068);
|
|
1321
|
-
if (_0x131186) {
|
|
1322
|
-
_0x342e8d[_0x16abbc(_0x4543a0._0x433f03)]({
|
|
1323
|
-
'attachments': _0x131186['attachments'],
|
|
1324
|
-
'content': _0x131186['content'],
|
|
1325
|
-
'createdAt': _0x131186[_0x16abbc(0x248)],
|
|
1326
|
-
..._0x131186[_0x16abbc(_0x4543a0._0x2c0556)] ? { 'kind': _0x131186[_0x16abbc(_0x4543a0._0x2c0556)] } : {},
|
|
1327
|
-
'messageId': _0x131186['messageId'],
|
|
1328
|
-
'senderName': _0x131186['senderName'],
|
|
1329
|
-
'senderType': _0x131186[_0x16abbc(_0x4543a0._0x5a5aa7)],
|
|
1330
|
-
'target': _0x4e8bd9,
|
|
1331
|
-
..._0x1d87de ? { 'targetedTask': !![] } : {}
|
|
1332
|
-
});
|
|
1333
|
-
continue;
|
|
1334
|
-
}
|
|
1335
|
-
if (_0x518582) {
|
|
1336
|
-
const _0x1c39c4 = typeof _0x481a7a?.[_0x16abbc(0x18d)] === _0x16abbc(_0x4543a0._0x4916f8) ? _0x481a7a['senderParticipantId'] : '', _0x2cd93b = typeof _0x481a7a?.['bodyMarkdown'] === _0x16abbc(0x138) ? _0x481a7a[_0x16abbc(0x12c)] : '', _0x488007 = typeof _0x481a7a?.['kind'] === _0x16abbc(_0x4543a0._0x4916f8) && _0x481a7a[_0x16abbc(_0x4543a0._0x2c0556)] !== _0x16abbc(_0x4543a0._0x56fcfd) ? _0x481a7a[_0x16abbc(_0x4543a0._0x54ccd7)] : void 0x0;
|
|
1337
|
-
_0x1c39c4 && _0x2cd93b && _0x342e8d[_0x16abbc(0x288)]({
|
|
1338
|
-
'attachments': [],
|
|
1339
|
-
'content': _0x2cd93b,
|
|
1340
|
-
'createdAt': new Date()['toISOString'](),
|
|
1341
|
-
..._0x488007 ? { 'kind': _0x488007 } : {},
|
|
1342
|
-
'messageId': _0x320068,
|
|
1343
|
-
'senderName': _0x1c39c4,
|
|
1344
|
-
'senderType': _0x3d804e(_0x1c39c4, _0x5da524),
|
|
1345
|
-
'target': _0x4e8bd9,
|
|
1346
|
-
..._0x1d87de ? { 'targetedTask': !![] } : {}
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
if (_0x30adf5 > 0x0) {
|
|
1352
|
-
if (_0x5d991b)
|
|
1353
|
-
await _0x531ff0(_0x30adf5);
|
|
1354
|
-
else
|
|
1355
|
-
_0xfa4e0 && await _0x361051(_0x30adf5);
|
|
1356
|
-
}
|
|
1357
|
-
return _0x30adf5 > _0x1a9c8d && (_0x1a9c8d = _0x30adf5), { 'messages': _0x2a0de9 ? _0x342e8d : _0x2948af ? _0x342e8d[_0x16abbc(0x238)](_0x44c962 => _0x44c962[_0x16abbc(0x1ad)] !== !![]) : _0x342e8d };
|
|
1358
|
-
}
|
|
1483
|
+
_0x409f = function () {
|
|
1484
|
+
return _0x32e0a1;
|
|
1359
1485
|
};
|
|
1486
|
+
return _0x409f();
|
|
1360
1487
|
}
|
|
1361
|
-
function
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
}, _0x4f6617 = _0x1b8c9f;
|
|
1379
|
-
if (!_0x258480 || _0x258480[_0x4f6617(0x135)] === 0x0)
|
|
1380
|
-
return '';
|
|
1381
|
-
return '\x20[' + _0x258480[_0x4f6617(_0x3ee26c._0x453816)] + _0x4f6617(0x127) + (_0x258480[_0x4f6617(0x135)] > 0x1 ? 's' : '') + ':\x20' + _0x258480['map'](_0xa6a953 => _0xa6a953[_0x4f6617(0x12f)] + _0x4f6617(0x1eb) + _0xa6a953['id'] + ')')['join'](',\x20') + _0x4f6617(_0x3ee26c._0x542b1b);
|
|
1382
|
-
}
|
|
1383
|
-
function formatCheckMessages(_0x5cde27) {
|
|
1384
|
-
const _0xcd3c16 = {
|
|
1385
|
-
_0x489aec: 0x135,
|
|
1386
|
-
_0xeda9ea: 0x1be,
|
|
1387
|
-
_0xac7e96: 0x151
|
|
1388
|
-
}, _0xf2d6d4 = {
|
|
1389
|
-
_0x5f5664: 0x124,
|
|
1390
|
-
_0x225d0b: 0x29e,
|
|
1391
|
-
_0x5aa20f: 0x258,
|
|
1392
|
-
_0x335820: 0x24b,
|
|
1393
|
-
_0xb98014: 0x24e,
|
|
1394
|
-
_0x2ba474: 0x1bb
|
|
1395
|
-
}, _0x265d0c = _0x1b8c9f;
|
|
1396
|
-
if (_0x5cde27[_0x265d0c(_0xcd3c16._0x489aec)] === 0x0)
|
|
1397
|
-
return 'No\x20new\x20messages.';
|
|
1398
|
-
return _0x5cde27[_0x265d0c(_0xcd3c16._0xeda9ea)](_0x1ef561 => {
|
|
1399
|
-
const _0x4084ab = _0x265d0c, _0x41326a = _0x1ef561['senderType'] === _0x4084ab(0x2a1) ? _0x4084ab(_0xf2d6d4._0x5f5664) : '', _0x579840 = _0x1ef561[_0x4084ab(0x258)] && _0x1ef561[_0x4084ab(0x258)] !== _0x4084ab(0x1cf) ? _0x4084ab(_0xf2d6d4._0x225d0b) + _0x1ef561[_0x4084ab(_0xf2d6d4._0x5aa20f)] : '';
|
|
1400
|
-
return '[target=' + _0x1ef561[_0x4084ab(0x166)] + _0x4084ab(0x2a4) + _0x1ef561[_0x4084ab(_0xf2d6d4._0x335820)][_0x4084ab(0x16e)](0x0, 0x8) + _0x4084ab(_0xf2d6d4._0xb98014) + toLocalTime(_0x1ef561[_0x4084ab(0x248)]) + _0x41326a + _0x579840 + ']\x20@' + _0x1ef561[_0x4084ab(0x1d6)] + ':\x20' + _0x1ef561[_0x4084ab(0x19c)] + formatAttachmentSuffix(_0x1ef561[_0x4084ab(_0xf2d6d4._0x2ba474)]);
|
|
1401
|
-
})[_0x265d0c(_0xcd3c16._0xac7e96)]('\x0a');
|
|
1402
|
-
}
|
|
1403
|
-
function formatHistory(_0x3130bf) {
|
|
1404
|
-
const _0x5c1f23 = {
|
|
1405
|
-
_0x4d0701: 0x268,
|
|
1406
|
-
_0x2605c3: 0x13b,
|
|
1407
|
-
_0x3e8939: 0x135
|
|
1408
|
-
}, _0x51151a = {
|
|
1409
|
-
_0xee84a5: 0x20e,
|
|
1410
|
-
_0x389ff5: 0x2a1,
|
|
1411
|
-
_0x157577: 0x124,
|
|
1412
|
-
_0xd99e33: 0x258,
|
|
1413
|
-
_0x2235b1: 0x19a,
|
|
1414
|
-
_0x16a87a: 0x2a4,
|
|
1415
|
-
_0x1699ae: 0x248
|
|
1416
|
-
}, _0x3d4cbc = _0x1b8c9f;
|
|
1417
|
-
if (_0x3130bf[_0x3d4cbc(0x137)][_0x3d4cbc(0x135)] === 0x0)
|
|
1418
|
-
return _0x3d4cbc(0x11c) + _0x3130bf[_0x3d4cbc(_0x5c1f23._0x4d0701)] + _0x3d4cbc(_0x5c1f23._0x2605c3);
|
|
1419
|
-
const _0x5c978d = _0x3130bf[_0x3d4cbc(0x137)][_0x3d4cbc(0x1be)](_0x133490 => {
|
|
1420
|
-
const _0x7ad5a7 = _0x3d4cbc, _0xfd456a = _0x133490[_0x7ad5a7(_0x51151a._0xee84a5)] === _0x7ad5a7(_0x51151a._0x389ff5) ? _0x7ad5a7(_0x51151a._0x157577) : '', _0x2f3b06 = _0x133490[_0x7ad5a7(_0x51151a._0xd99e33)] && _0x133490[_0x7ad5a7(0x258)] !== 'chat' ? '\x20kind=' + _0x133490[_0x7ad5a7(_0x51151a._0xd99e33)] : '';
|
|
1421
|
-
return _0x7ad5a7(_0x51151a._0x2235b1) + _0x133490['seq'] + _0x7ad5a7(_0x51151a._0x16a87a) + _0x133490['messageId'] + _0x7ad5a7(0x24e) + toLocalTime(_0x133490[_0x7ad5a7(_0x51151a._0x1699ae)]) + _0xfd456a + _0x2f3b06 + _0x7ad5a7(0x1b1) + _0x133490['senderName'] + ':\x20' + _0x133490[_0x7ad5a7(0x19c)] + formatAttachmentSuffix(_0x133490[_0x7ad5a7(0x1bb)]);
|
|
1422
|
-
})['join']('\x0a'), _0x5d305f = _0x3130bf['hasMore'] && _0x3130bf[_0x3d4cbc(0x1ab)] ? _0x3d4cbc(0x1a5) + _0x3130bf[_0x3d4cbc(0x137)][_0x3d4cbc(_0x5c1f23._0x3e8939)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x3130bf[_0x3d4cbc(0x1ab)] + _0x3d4cbc(0x249) : '';
|
|
1423
|
-
return _0x3d4cbc(0x11c) + _0x3130bf['channel'] + '\x20(' + _0x3130bf[_0x3d4cbc(0x137)]['length'] + _0x3d4cbc(0x14b) + _0x5c978d + _0x5d305f;
|
|
1424
|
-
}
|
|
1425
|
-
function formatServerDirectory(_0x31f067) {
|
|
1426
|
-
const _0x3b2af3 = {
|
|
1427
|
-
_0x19a8dc: 0x135,
|
|
1428
|
-
_0x34dee3: 0x1be,
|
|
1429
|
-
_0x5650ef: 0x151,
|
|
1430
|
-
_0x553052: 0x135,
|
|
1431
|
-
_0x191dd7: 0x151,
|
|
1432
|
-
_0x2742a5: 0x272,
|
|
1433
|
-
_0x391959: 0x295,
|
|
1434
|
-
_0x2d98ce: 0x1e6,
|
|
1435
|
-
_0x193acc: 0x1b6
|
|
1436
|
-
}, _0x59d1e5 = _0x1b8c9f, _0xcf3539 = _0x31f067['channels'][_0x59d1e5(_0x3b2af3._0x19a8dc)] > 0x0 ? _0x31f067['channels'][_0x59d1e5(_0x3b2af3._0x34dee3)](_0x20560c => _0x20560c['description'] ? '-\x20#' + _0x20560c[_0x59d1e5(0x1ba)] + _0x59d1e5(0x233) + _0x20560c[_0x59d1e5(0x16a)] : _0x59d1e5(0x147) + _0x20560c[_0x59d1e5(0x1ba)])['join']('\x0a') : _0x59d1e5(0x1b3), _0x5553b5 = _0x31f067[_0x59d1e5(0x282)]['length'] > 0x0 ? _0x31f067['agents'][_0x59d1e5(_0x3b2af3._0x34dee3)](_0x28ba76 => _0x59d1e5(0x217) + _0x28ba76[_0x59d1e5(0x1ba)])[_0x59d1e5(_0x3b2af3._0x5650ef)]('\x0a') : _0x59d1e5(0x1b3), _0xe15145 = _0x31f067[_0x59d1e5(0x1c8)][_0x59d1e5(_0x3b2af3._0x553052)] > 0x0 ? _0x31f067[_0x59d1e5(0x1c8)][_0x59d1e5(0x1be)](_0x287a8b => _0x59d1e5(0x217) + _0x287a8b[_0x59d1e5(0x1ba)])[_0x59d1e5(_0x3b2af3._0x191dd7)]('\x0a') : '(none)';
|
|
1437
|
-
return [
|
|
1438
|
-
_0x59d1e5(_0x3b2af3._0x2742a5) + _0x31f067[_0x59d1e5(_0x3b2af3._0x391959)],
|
|
1439
|
-
'',
|
|
1440
|
-
_0x59d1e5(_0x3b2af3._0x2d98ce),
|
|
1441
|
-
_0xcf3539,
|
|
1442
|
-
'',
|
|
1443
|
-
_0x59d1e5(_0x3b2af3._0x193acc),
|
|
1444
|
-
_0x5553b5,
|
|
1445
|
-
'',
|
|
1446
|
-
'###\x20Humans',
|
|
1447
|
-
_0xe15145
|
|
1448
|
-
][_0x59d1e5(_0x3b2af3._0x5650ef)]('\x0a');
|
|
1449
|
-
}
|
|
1450
|
-
function formatUploadResult(_0x1108fc) {
|
|
1451
|
-
const _0x1a4892 = _0x1b8c9f;
|
|
1452
|
-
return 'File\x20uploaded:\x20' + _0x1108fc['filename'] + '\x20(' + (_0x1108fc[_0x1a4892(0x26e)] / 0x400)[_0x1a4892(0x219)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x1108fc['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1488
|
+
function formatCreatedTasks(_0x2c7aa6) {
|
|
1489
|
+
const _0x52d430 = {
|
|
1490
|
+
_0x2473aa: 0x14e,
|
|
1491
|
+
_0x51c315: 0x2a5,
|
|
1492
|
+
_0x3c1ba9: 0x13f,
|
|
1493
|
+
_0x3021c6: 0x291
|
|
1494
|
+
}, _0x4525f9 = {
|
|
1495
|
+
_0x4d1ca3: 0x249,
|
|
1496
|
+
_0x19665c: 0x17a,
|
|
1497
|
+
_0x57a642: 0x185
|
|
1498
|
+
}, _0x254602 = _0x2cd54a;
|
|
1499
|
+
if (_0x2c7aa6[_0x254602(_0x52d430._0x2473aa)] === 0x0)
|
|
1500
|
+
return _0x254602(_0x52d430._0x51c315);
|
|
1501
|
+
return _0x2c7aa6[_0x254602(_0x52d430._0x3c1ba9)](_0x207ca7 => {
|
|
1502
|
+
const _0x1812a7 = _0x254602, _0x2bfbea = _0x207ca7[_0x1812a7(_0x4525f9._0x4d1ca3)] == null ? _0x1812a7(0x273) : _0x207ca7[_0x1812a7(_0x4525f9._0x19665c)] != null ? '#' + _0x207ca7[_0x1812a7(0x249)] + '.' + _0x207ca7['subtaskNumber'] : '#' + _0x207ca7[_0x1812a7(0x249)], _0x54c9a5 = _0x207ca7[_0x1812a7(_0x4525f9._0x57a642)] ? '\x20message=' + _0x207ca7[_0x1812a7(0x185)] : '';
|
|
1503
|
+
return _0x2bfbea + '\x20' + _0x207ca7[_0x1812a7(0x194)] + _0x54c9a5;
|
|
1504
|
+
})[_0x254602(_0x52d430._0x3021c6)]('\x0a');
|
|
1453
1505
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
})[_0x3676e1(_0x1514c9._0x43317c)]('\x0a');
|
|
1478
|
-
}
|
|
1479
|
-
function formatCreatedTasks(_0x9c67f3) {
|
|
1480
|
-
const _0x186ab7 = {
|
|
1481
|
-
_0x3aa1dd: 0x135,
|
|
1482
|
-
_0xc4f7b8: 0x2a3,
|
|
1483
|
-
_0x49ff19: 0x151
|
|
1484
|
-
}, _0x3d5fb4 = {
|
|
1485
|
-
_0x37a869: 0x261,
|
|
1486
|
-
_0xb1aa83: 0x27c,
|
|
1487
|
-
_0x3df9ce: 0x24b
|
|
1488
|
-
}, _0xa60897 = _0x1b8c9f;
|
|
1489
|
-
if (_0x9c67f3[_0xa60897(_0x186ab7._0x3aa1dd)] === 0x0)
|
|
1490
|
-
return _0xa60897(_0x186ab7._0xc4f7b8);
|
|
1491
|
-
return _0x9c67f3[_0xa60897(0x1be)](_0x5db5ec => {
|
|
1492
|
-
const _0x3d337d = _0xa60897, _0x3f1092 = _0x5db5ec[_0x3d337d(0x27a)] == null ? _0x3d337d(_0x3d5fb4._0x37a869) : _0x5db5ec[_0x3d337d(_0x3d5fb4._0xb1aa83)] != null ? '#' + _0x5db5ec[_0x3d337d(0x27a)] + '.' + _0x5db5ec['subtaskNumber'] : '#' + _0x5db5ec['taskNumber'], _0x45fa08 = _0x5db5ec[_0x3d337d(_0x3d5fb4._0x3df9ce)] ? _0x3d337d(0x15c) + _0x5db5ec[_0x3d337d(0x24b)] : '';
|
|
1493
|
-
return _0x3f1092 + '\x20' + _0x5db5ec['title'] + _0x45fa08;
|
|
1494
|
-
})[_0xa60897(_0x186ab7._0x49ff19)]('\x0a');
|
|
1495
|
-
}
|
|
1496
|
-
function formatClaimTaskResults(_0x24eda1) {
|
|
1497
|
-
const _0x169b77 = {
|
|
1498
|
-
_0x2cd718: 0x135,
|
|
1499
|
-
_0x3c4f7b: 0x151
|
|
1500
|
-
}, _0x1ab247 = {
|
|
1501
|
-
_0x386d40: 0x27a,
|
|
1502
|
-
_0x2d8b2a: 0x27c,
|
|
1503
|
-
_0x37b4f1: 0x24b,
|
|
1504
|
-
_0x335d98: 0x215,
|
|
1505
|
-
_0x217feb: 0x1c1,
|
|
1506
|
-
_0x5b5efc: 0x259,
|
|
1507
|
-
_0x21fa6f: 0x1ec,
|
|
1508
|
-
_0x4c1288: 0x279,
|
|
1509
|
-
_0x42498b: 0x116,
|
|
1510
|
-
_0x136d21: 0x194,
|
|
1511
|
-
_0x12f0c8: 0x13c
|
|
1512
|
-
}, _0x235937 = _0x1b8c9f;
|
|
1513
|
-
if (_0x24eda1[_0x235937(_0x169b77._0x2cd718)] === 0x0)
|
|
1506
|
+
function formatClaimTaskResults(_0x243206) {
|
|
1507
|
+
const _0x51591a = {
|
|
1508
|
+
_0x2cda71: 0x14e,
|
|
1509
|
+
_0x31a884: 0x13f,
|
|
1510
|
+
_0x281875: 0x291
|
|
1511
|
+
}, _0x2066bd = {
|
|
1512
|
+
_0x56741d: 0x249,
|
|
1513
|
+
_0x39b8d7: 0x273,
|
|
1514
|
+
_0x274c7b: 0x17a,
|
|
1515
|
+
_0x40d359: 0x17a,
|
|
1516
|
+
_0x240248: 0x27b,
|
|
1517
|
+
_0x15c29a: 0x253,
|
|
1518
|
+
_0xc7fab4: 0x1e4,
|
|
1519
|
+
_0x4087a4: 0x1e4,
|
|
1520
|
+
_0x402b15: 0x21b,
|
|
1521
|
+
_0x4e0051: 0x1e5,
|
|
1522
|
+
_0x471313: 0x136,
|
|
1523
|
+
_0x4edacc: 0x121,
|
|
1524
|
+
_0x2f9731: 0x22a,
|
|
1525
|
+
_0x5605e8: 0x215,
|
|
1526
|
+
_0xe888db: 0x12b
|
|
1527
|
+
}, _0x3de95f = _0x2cd54a;
|
|
1528
|
+
if (_0x243206[_0x3de95f(_0x51591a._0x2cda71)] === 0x0)
|
|
1514
1529
|
return 'No\x20tasks\x20claimed.';
|
|
1515
|
-
return
|
|
1516
|
-
const
|
|
1517
|
-
if (
|
|
1518
|
-
const
|
|
1519
|
-
if (
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
][
|
|
1527
|
-
return
|
|
1530
|
+
return _0x243206[_0x3de95f(_0x51591a._0x31a884)](_0x51c436 => {
|
|
1531
|
+
const _0x17fe5a = _0x3de95f;
|
|
1532
|
+
if (_0x51c436['success']) {
|
|
1533
|
+
const _0x1ccc0e = _0x51c436[_0x17fe5a(_0x2066bd._0x56741d)] == null ? _0x17fe5a(_0x2066bd._0x39b8d7) : _0x51c436[_0x17fe5a(_0x2066bd._0x274c7b)] != null ? '#' + _0x51c436[_0x17fe5a(_0x2066bd._0x56741d)] + '.' + _0x51c436[_0x17fe5a(_0x2066bd._0x40d359)] : '#' + _0x51c436[_0x17fe5a(0x249)], _0x372b65 = _0x51c436['messageId'] ? _0x17fe5a(0x267) + _0x51c436['messageId'] : '';
|
|
1534
|
+
if (_0x51c436[_0x17fe5a(0x1db)]) {
|
|
1535
|
+
const _0x14d2db = [
|
|
1536
|
+
_0x17fe5a(_0x2066bd._0x240248),
|
|
1537
|
+
_0x51c436[_0x17fe5a(0x1ce)] ? _0x17fe5a(_0x2066bd._0x15c29a) : null,
|
|
1538
|
+
_0x51c436[_0x17fe5a(_0x2066bd._0xc7fab4)] ? _0x17fe5a(0x20f) + _0x51c436[_0x17fe5a(_0x2066bd._0x4087a4)] : null,
|
|
1539
|
+
_0x51c436[_0x17fe5a(0x21b)] ? _0x17fe5a(0x22c) + _0x51c436[_0x17fe5a(_0x2066bd._0x402b15)] : null,
|
|
1540
|
+
_0x51c436[_0x17fe5a(_0x2066bd._0x4e0051)] ? _0x17fe5a(_0x2066bd._0x471313) + _0x51c436[_0x17fe5a(0x1e5)] : null
|
|
1541
|
+
][_0x17fe5a(_0x2066bd._0x4edacc)](Boolean)[_0x17fe5a(0x291)]('\x20');
|
|
1542
|
+
return _0x1ccc0e + _0x17fe5a(0x171) + _0x372b65 + '\x20' + _0x14d2db + _0x17fe5a(_0x2066bd._0x2f9731);
|
|
1528
1543
|
}
|
|
1529
|
-
const
|
|
1530
|
-
return
|
|
1544
|
+
const _0x26312d = _0x51c436[_0x17fe5a(_0x2066bd._0x5605e8)] ? '\x20workerHandoff=false\x20error=' + _0x51c436[_0x17fe5a(_0x2066bd._0x5605e8)] : '';
|
|
1545
|
+
return _0x1ccc0e + _0x17fe5a(0x171) + _0x372b65 + _0x26312d;
|
|
1531
1546
|
}
|
|
1532
|
-
const
|
|
1533
|
-
return
|
|
1534
|
-
})[
|
|
1547
|
+
const _0x9ea601 = _0x51c436[_0x17fe5a(_0x2066bd._0x56741d)] == null ? _0x51c436[_0x17fe5a(0x185)] ?? _0x17fe5a(0x183) : '#' + _0x51c436[_0x17fe5a(0x249)];
|
|
1548
|
+
return _0x9ea601 + _0x17fe5a(_0x2066bd._0xe888db) + (_0x51c436[_0x17fe5a(0x1f8)] ?? 'claim\x20failed');
|
|
1549
|
+
})[_0x3de95f(_0x51591a._0x281875)]('\x0a');
|
|
1535
1550
|
}
|
|
1536
|
-
function formatUnclaimTaskResult(
|
|
1537
|
-
const
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
}, _0x285db0 = _0x1b8c9f, _0x9ca1be = _0x1c7d92[_0x285db0(_0x4e9914._0xe31706)] == null ? _0x285db0(_0x4e9914._0x1396f8) : _0x1c7d92[_0x285db0(0x27c)] != null ? '#' + _0x1c7d92[_0x285db0(0x27a)] + '.' + _0x1c7d92[_0x285db0(_0x4e9914._0x2cf413)] : '#' + _0x1c7d92[_0x285db0(0x27a)];
|
|
1544
|
-
return _0x9ca1be + _0x285db0(_0x4e9914._0x3c9b2e) + _0x1c7d92[_0x285db0(_0x4e9914._0x36b5af)];
|
|
1551
|
+
function formatUnclaimTaskResult(_0x39b546) {
|
|
1552
|
+
const _0x5b267c = {
|
|
1553
|
+
_0x2596e6: 0x249,
|
|
1554
|
+
_0x539aac: 0x273,
|
|
1555
|
+
_0x27cec2: 0x1b8
|
|
1556
|
+
}, _0x364596 = _0x2cd54a, _0x467c50 = _0x39b546[_0x364596(_0x5b267c._0x2596e6)] == null ? _0x364596(_0x5b267c._0x539aac) : _0x39b546['subtaskNumber'] != null ? '#' + _0x39b546[_0x364596(0x249)] + '.' + _0x39b546[_0x364596(0x17a)] : '#' + _0x39b546[_0x364596(0x249)];
|
|
1557
|
+
return _0x467c50 + _0x364596(_0x5b267c._0x27cec2) + _0x39b546['status'];
|
|
1545
1558
|
}
|
|
1546
|
-
function formatUpdateTaskStatusResult(
|
|
1547
|
-
const
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
},
|
|
1552
|
-
return
|
|
1559
|
+
function formatUpdateTaskStatusResult(_0x50aaf1) {
|
|
1560
|
+
const _0x1be268 = {
|
|
1561
|
+
_0x90c947: 0x249,
|
|
1562
|
+
_0x111440: 0x249,
|
|
1563
|
+
_0x258a55: 0x1b8
|
|
1564
|
+
}, _0x20527c = _0x2cd54a, _0x8eb7d5 = _0x50aaf1[_0x20527c(_0x1be268._0x90c947)] == null ? '(legacy)' : _0x50aaf1[_0x20527c(0x17a)] != null ? '#' + _0x50aaf1['taskNumber'] + '.' + _0x50aaf1[_0x20527c(0x17a)] : '#' + _0x50aaf1[_0x20527c(_0x1be268._0x111440)];
|
|
1565
|
+
return _0x8eb7d5 + _0x20527c(_0x1be268._0x258a55) + _0x50aaf1['status'];
|
|
1553
1566
|
}
|
|
1554
1567
|
function getChatBridgeToolDefinitions() {
|
|
1555
|
-
const
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
},
|
|
1568
|
+
const _0xe626ef = {
|
|
1569
|
+
_0xfe97b9: 0x1c1,
|
|
1570
|
+
_0xe14f7f: 0x28e,
|
|
1571
|
+
_0x21a53e: 0x1af,
|
|
1572
|
+
_0x2e3a59: 0x266,
|
|
1573
|
+
_0x935aa: 0x279
|
|
1574
|
+
}, _0x4138db = _0x2cd54a;
|
|
1562
1575
|
return [
|
|
1563
|
-
{ 'name':
|
|
1564
|
-
{ 'name':
|
|
1565
|
-
{ 'name':
|
|
1566
|
-
{ 'name':
|
|
1576
|
+
{ 'name': 'send_message' },
|
|
1577
|
+
{ 'name': _0x4138db(0x1ee) },
|
|
1578
|
+
{ 'name': 'read_history' },
|
|
1579
|
+
{ 'name': _0x4138db(_0xe626ef._0xfe97b9) },
|
|
1567
1580
|
{ 'name': 'upload_file' },
|
|
1568
|
-
{ 'name':
|
|
1581
|
+
{ 'name': 'view_file' },
|
|
1569
1582
|
{ 'name': 'list_tasks' },
|
|
1570
|
-
{ 'name':
|
|
1571
|
-
{ 'name':
|
|
1572
|
-
{ 'name':
|
|
1573
|
-
{ 'name':
|
|
1574
|
-
{ 'name':
|
|
1575
|
-
{ 'name':
|
|
1576
|
-
{ 'name':
|
|
1577
|
-
{ 'name':
|
|
1583
|
+
{ 'name': _0x4138db(0x14d) },
|
|
1584
|
+
{ 'name': 'claim_tasks' },
|
|
1585
|
+
{ 'name': _0x4138db(0x146) },
|
|
1586
|
+
{ 'name': 'update_task_status' },
|
|
1587
|
+
{ 'name': _0x4138db(_0xe626ef._0xe14f7f) },
|
|
1588
|
+
{ 'name': _0x4138db(_0xe626ef._0x21a53e) },
|
|
1589
|
+
{ 'name': _0x4138db(_0xe626ef._0x2e3a59) },
|
|
1590
|
+
{ 'name': _0x4138db(_0xe626ef._0x935aa) }
|
|
1578
1591
|
];
|
|
1579
1592
|
}
|
|
1580
|
-
function
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
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
|
-
_0x1adfea: 0x27b,
|
|
1716
|
-
_0x2a1f7b: 0x27a,
|
|
1717
|
-
_0x4bc2d1: 0x22d,
|
|
1718
|
-
_0x3869e5: 0x24b,
|
|
1719
|
-
_0x3bdee0: 0x24e,
|
|
1720
|
-
_0x4163c6: 0x1dc,
|
|
1721
|
-
_0x5b891d: 0x205,
|
|
1722
|
-
_0x2a47a6: 0x13a,
|
|
1723
|
-
_0x1451fd: 0x151,
|
|
1724
|
-
_0x3138ea: 0x227,
|
|
1725
|
-
_0x1a513b: 0x11a,
|
|
1726
|
-
_0x336805: 0x19f,
|
|
1727
|
-
_0x1cd975: 0x240,
|
|
1728
|
-
_0x4eee57: 0x16f,
|
|
1729
|
-
_0x3c6b76: 0x1ac,
|
|
1730
|
-
_0xaa614f: 0x22c
|
|
1731
|
-
}, _0x376695 = {
|
|
1732
|
-
_0x4937b9: 0x172,
|
|
1733
|
-
_0x3f05ad: 0x172
|
|
1734
|
-
}, _0x30473e = _0x1b8c9f;
|
|
1735
|
-
function _0x4af718(_0x29b7c2, _0x1053e6) {
|
|
1736
|
-
const _0x3f5095 = _0x3671;
|
|
1737
|
-
if (!_0x41a796[_0x3f5095(0x20d)])
|
|
1593
|
+
function createChatBridgeHandlers(_0x5e51c9) {
|
|
1594
|
+
const _0x48ccba = { _0x56cae2: 0x28c }, _0xb64721 = {
|
|
1595
|
+
_0x3ec865: 0x1c6,
|
|
1596
|
+
_0x3c8f88: 0x29e,
|
|
1597
|
+
_0x30de54: 0x1f8,
|
|
1598
|
+
_0x5154f1: 0x190,
|
|
1599
|
+
_0x55453f: 0x1f8
|
|
1600
|
+
}, _0x3fe798 = {
|
|
1601
|
+
_0x2c4ff6: 0x230,
|
|
1602
|
+
_0x16e9ad: 0x25e,
|
|
1603
|
+
_0x4135c8: 0x25e,
|
|
1604
|
+
_0x5f1dc7: 0x19a
|
|
1605
|
+
}, _0x557ad6 = {
|
|
1606
|
+
_0x1a6b85: 0x20e,
|
|
1607
|
+
_0x8b6232: 0x1c9,
|
|
1608
|
+
_0x301231: 0x25e,
|
|
1609
|
+
_0x5a75aa: 0x156,
|
|
1610
|
+
_0x177226: 0x1a2,
|
|
1611
|
+
_0x24b968: 0x1e8
|
|
1612
|
+
}, _0x5939b9 = {
|
|
1613
|
+
_0x4010bd: 0x1c6,
|
|
1614
|
+
_0x29c819: 0x25e,
|
|
1615
|
+
_0xbb3445: 0x1de,
|
|
1616
|
+
_0x55ba21: 0x243
|
|
1617
|
+
}, _0x47ee0c = {
|
|
1618
|
+
_0x3d6212: 0x1fb,
|
|
1619
|
+
_0x429b30: 0x1a1,
|
|
1620
|
+
_0xe6dfe2: 0x1fb,
|
|
1621
|
+
_0x4055e0: 0x19d
|
|
1622
|
+
}, _0x3c4af9 = { _0x229180: 0x21d }, _0xeb7293 = { _0x370058: 0x262 }, _0x4feaa6 = { _0x4a9e24: 0x16c }, _0x5e677b = {
|
|
1623
|
+
_0x2317af: 0x16c,
|
|
1624
|
+
_0xa2d479: 0x144,
|
|
1625
|
+
_0x2dcad4: 0x15b,
|
|
1626
|
+
_0x4f90df: 0x16e,
|
|
1627
|
+
_0x597170: 0x13f
|
|
1628
|
+
}, _0x332f5d = {
|
|
1629
|
+
_0x28816d: 0x18a,
|
|
1630
|
+
_0x3040d5: 0x185,
|
|
1631
|
+
_0x5e8e48: 0x128,
|
|
1632
|
+
_0x194600: 0x23b
|
|
1633
|
+
}, _0x20be46 = {
|
|
1634
|
+
_0x27f6ca: 0x14d,
|
|
1635
|
+
_0x1060e6: 0x262,
|
|
1636
|
+
_0x13b761: 0x216
|
|
1637
|
+
}, _0x3b01cc = {
|
|
1638
|
+
_0x35233c: 0x262,
|
|
1639
|
+
_0x19b777: 0x1e7,
|
|
1640
|
+
_0x263b65: 0x1c6,
|
|
1641
|
+
_0x2db768: 0x198,
|
|
1642
|
+
_0x59c096: 0x198,
|
|
1643
|
+
_0x1ca845: 0x240,
|
|
1644
|
+
_0x4427ec: 0x16c,
|
|
1645
|
+
_0x3910e7: 0x259,
|
|
1646
|
+
_0x3ec47: 0x243,
|
|
1647
|
+
_0x219df8: 0x28b,
|
|
1648
|
+
_0x108b3a: 0x129,
|
|
1649
|
+
_0x2db98e: 0x170,
|
|
1650
|
+
_0x55485c: 0x283,
|
|
1651
|
+
_0x9e331d: 0x249,
|
|
1652
|
+
_0xe3285e: 0x129
|
|
1653
|
+
}, _0x1e77ff = {
|
|
1654
|
+
_0x2cc2ec: 0x262,
|
|
1655
|
+
_0x5772fa: 0x118
|
|
1656
|
+
}, _0x39f306 = {
|
|
1657
|
+
_0x197c61: 0x118,
|
|
1658
|
+
_0x58d76c: 0x1c6,
|
|
1659
|
+
_0x2d7d46: 0x18c,
|
|
1660
|
+
_0x3605b9: 0x249,
|
|
1661
|
+
_0x37bd8c: 0x150,
|
|
1662
|
+
_0x3ba843: 0x1e3,
|
|
1663
|
+
_0x406761: 0x177,
|
|
1664
|
+
_0x16c702: 0x1ff,
|
|
1665
|
+
_0x92eafb: 0x223,
|
|
1666
|
+
_0x35b128: 0x257,
|
|
1667
|
+
_0x362c80: 0x18c,
|
|
1668
|
+
_0x2b3b87: 0x24c,
|
|
1669
|
+
_0xfe163: 0x290,
|
|
1670
|
+
_0x3061ba: 0x168,
|
|
1671
|
+
_0x3a1a4d: 0x230,
|
|
1672
|
+
_0x222f79: 0x1c9,
|
|
1673
|
+
_0x43aa97: 0x18c,
|
|
1674
|
+
_0x56f107: 0x24c,
|
|
1675
|
+
_0x10f9be: 0x177,
|
|
1676
|
+
_0x51e453: 0x1d9,
|
|
1677
|
+
_0x53bec8: 0x294,
|
|
1678
|
+
_0x1f69d1: 0x27c,
|
|
1679
|
+
_0x2904e3: 0x258,
|
|
1680
|
+
_0x159c3c: 0x262,
|
|
1681
|
+
_0x3267a3: 0x1f6,
|
|
1682
|
+
_0x51a60a: 0x1ca,
|
|
1683
|
+
_0x5be660: 0x1dc,
|
|
1684
|
+
_0x260cf4: 0x1f1,
|
|
1685
|
+
_0x40a863: 0x185
|
|
1686
|
+
}, _0x2881d0 = {
|
|
1687
|
+
_0x13e2d4: 0x1c6,
|
|
1688
|
+
_0x55f4ee: 0x198,
|
|
1689
|
+
_0x458e55: 0x259,
|
|
1690
|
+
_0x2fb05e: 0x243,
|
|
1691
|
+
_0x34e67d: 0x28b
|
|
1692
|
+
}, _0x5a80d3 = {
|
|
1693
|
+
_0x3eadf5: 0x1c6,
|
|
1694
|
+
_0x4a91b0: 0x118,
|
|
1695
|
+
_0x18a056: 0x198,
|
|
1696
|
+
_0x769298: 0x259,
|
|
1697
|
+
_0x199049: 0x166
|
|
1698
|
+
}, _0xbc55b0 = {
|
|
1699
|
+
_0x280697: 0x128,
|
|
1700
|
+
_0x52eb95: 0x185,
|
|
1701
|
+
_0x921784: 0x262,
|
|
1702
|
+
_0x3eeace: 0x26a,
|
|
1703
|
+
_0x407b37: 0x25a,
|
|
1704
|
+
_0xd8b7e4: 0x273,
|
|
1705
|
+
_0x2d52bd: 0x1a7,
|
|
1706
|
+
_0x3ca2ba: 0x141,
|
|
1707
|
+
_0x160c38: 0x145,
|
|
1708
|
+
_0x3453f7: 0x23e,
|
|
1709
|
+
_0x418c31: 0x224,
|
|
1710
|
+
_0x352852: 0x291,
|
|
1711
|
+
_0x17b4e4: 0x168,
|
|
1712
|
+
_0x3539c9: 0x1e1,
|
|
1713
|
+
_0x247451: 0x230,
|
|
1714
|
+
_0x3e1325: 0x1c9,
|
|
1715
|
+
_0x4521e5: 0x198,
|
|
1716
|
+
_0x384d08: 0x24c,
|
|
1717
|
+
_0x239689: 0x1d2,
|
|
1718
|
+
_0x720155: 0x240,
|
|
1719
|
+
_0x570390: 0x27c,
|
|
1720
|
+
_0x3d931c: 0x1a5
|
|
1721
|
+
}, _0xec6026 = {
|
|
1722
|
+
_0x2077cc: 0x191,
|
|
1723
|
+
_0x2562da: 0x285
|
|
1724
|
+
}, _0x32e1b7 = _0x2cd54a;
|
|
1725
|
+
function _0x343cbb(_0x3b98e6, _0x279b74) {
|
|
1726
|
+
const _0x5844aa = _0x46e8;
|
|
1727
|
+
if (!_0x5e51c9['workerMode'])
|
|
1738
1728
|
return;
|
|
1739
|
-
if (!
|
|
1740
|
-
throw new Error(
|
|
1741
|
-
if (
|
|
1742
|
-
throw new Error(
|
|
1729
|
+
if (!_0x5e51c9['workerThreadTarget'])
|
|
1730
|
+
throw new Error(_0x3b98e6 + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
|
|
1731
|
+
if (_0x279b74 !== _0x5e51c9[_0x5844aa(_0xec6026._0x2077cc)])
|
|
1732
|
+
throw new Error(_0x3b98e6 + _0x5844aa(0x12a) + _0x5e51c9[_0x5844aa(0x191)] + _0x5844aa(_0xec6026._0x2562da) + _0x279b74);
|
|
1743
1733
|
}
|
|
1744
|
-
async function
|
|
1745
|
-
const
|
|
1746
|
-
if (!
|
|
1734
|
+
async function _0x92cc0f(_0x57fdb6) {
|
|
1735
|
+
const _0x1a051f = _0x46e8;
|
|
1736
|
+
if (!_0x5e51c9[_0x1a051f(0x1c6)] || !_0x5e51c9['agentId'] || _0x5e51c9[_0x1a051f(0x118)] || _0x5e51c9[_0x1a051f(0x269)] !== !![])
|
|
1747
1737
|
return null;
|
|
1748
|
-
const
|
|
1749
|
-
if (
|
|
1738
|
+
const _0xf32b0b = parseTarget(_0x57fdb6['channel']);
|
|
1739
|
+
if (_0xf32b0b[_0x1a051f(0x1b3)] !== 'channel')
|
|
1750
1740
|
return null;
|
|
1751
|
-
const
|
|
1752
|
-
let
|
|
1741
|
+
const _0x33eebb = _0x57fdb6[_0x1a051f(0x128)] != null ? _0xf32b0b[_0x1a051f(0x160)] + ':t' + _0x57fdb6[_0x1a051f(_0xbc55b0._0x280697)] : _0xf32b0b[_0x1a051f(0x160)] + ':' + _0x57fdb6[_0x1a051f(_0xbc55b0._0x52eb95)];
|
|
1742
|
+
let _0x443c01;
|
|
1753
1743
|
try {
|
|
1754
|
-
const
|
|
1755
|
-
'channel':
|
|
1744
|
+
const _0x5f2859 = await _0x5e51c9[_0x1a051f(_0xbc55b0._0x921784)][_0x1a051f(_0xbc55b0._0x3eeace)]({
|
|
1745
|
+
'channel': _0x33eebb,
|
|
1756
1746
|
'limit': 0x14
|
|
1757
1747
|
});
|
|
1758
|
-
|
|
1748
|
+
_0x443c01 = _0x5f2859[_0x1a051f(_0xbc55b0._0x407b37)]['find'](_0x4f5024 => _0x4f5024[_0x1a051f(0x185)] === _0x57fdb6[_0x1a051f(0x185)]);
|
|
1759
1749
|
} catch {
|
|
1760
|
-
|
|
1750
|
+
_0x443c01 = void 0x0;
|
|
1761
1751
|
}
|
|
1762
|
-
const
|
|
1763
|
-
|
|
1752
|
+
const _0x458938 = _0x57fdb6[_0x1a051f(0x249)] == null ? _0x1a051f(_0xbc55b0._0xd8b7e4) : '#' + _0x57fdb6['taskNumber'], _0x33e9e0 = [
|
|
1753
|
+
_0x1a051f(_0xbc55b0._0x2d52bd) + _0x33eebb + _0x1a051f(_0xbc55b0._0x3ca2ba) + _0x57fdb6[_0x1a051f(0x185)][_0x1a051f(0x28f)](0x0, 0x8) + '\x20time=' + new Date()[_0x1a051f(_0xbc55b0._0x160c38)]() + _0x1a051f(_0xbc55b0._0x3453f7) + _0x458938 + _0x1a051f(0x298),
|
|
1764
1754
|
'',
|
|
1765
|
-
|
|
1755
|
+
_0x443c01 ? _0x1a051f(_0xbc55b0._0x418c31) + _0x443c01[_0x1a051f(0x223)] : _0x1a051f(0x12f) + _0x57fdb6[_0x1a051f(0x185)],
|
|
1766
1756
|
'',
|
|
1767
|
-
'Thread\x20target:\x20' +
|
|
1768
|
-
|
|
1769
|
-
][
|
|
1770
|
-
'method':
|
|
1771
|
-
'headers': { 'Content-Type':
|
|
1772
|
-
'body': JSON[
|
|
1773
|
-
'agent_id':
|
|
1774
|
-
'thread_target':
|
|
1757
|
+
'Thread\x20target:\x20' + _0x33eebb,
|
|
1758
|
+
_0x1a051f(0x296)
|
|
1759
|
+
][_0x1a051f(_0xbc55b0._0x352852)]('\x0a'), _0x1ad641 = await fetch(_0x5e51c9['daemonLocalUrl'] + _0x1a051f(_0xbc55b0._0x17b4e4), {
|
|
1760
|
+
'method': _0x1a051f(_0xbc55b0._0x3539c9),
|
|
1761
|
+
'headers': { 'Content-Type': _0x1a051f(_0xbc55b0._0x247451) },
|
|
1762
|
+
'body': JSON[_0x1a051f(_0xbc55b0._0x3e1325)]({
|
|
1763
|
+
'agent_id': _0x5e51c9[_0x1a051f(_0xbc55b0._0x4521e5)],
|
|
1764
|
+
'thread_target': _0x33eebb,
|
|
1775
1765
|
'spawn_packet': {
|
|
1776
|
-
'replyTarget':
|
|
1777
|
-
...
|
|
1766
|
+
'replyTarget': _0x33eebb,
|
|
1767
|
+
..._0x57fdb6['taskId'] ? { 'taskId': _0x57fdb6[_0x1a051f(_0xbc55b0._0x384d08)] } : _0x57fdb6['taskNumber'] != null ? { 'taskId': _0x1a051f(_0xbc55b0._0x239689) + _0x57fdb6['taskNumber'] } : {}
|
|
1778
1768
|
},
|
|
1779
1769
|
'payload': {
|
|
1780
|
-
'mode':
|
|
1781
|
-
'text':
|
|
1770
|
+
'mode': _0x1a051f(0x161),
|
|
1771
|
+
'text': _0x33e9e0
|
|
1782
1772
|
}
|
|
1783
1773
|
})
|
|
1784
|
-
}),
|
|
1785
|
-
if (!
|
|
1786
|
-
throw new Error(
|
|
1774
|
+
}), _0x4b7313 = await _0x1ad641[_0x1a051f(_0xbc55b0._0x720155)]();
|
|
1775
|
+
if (!_0x4b7313['ok'])
|
|
1776
|
+
throw new Error(_0x4b7313[_0x1a051f(0x156)] ?? _0x1a051f(0x1cf));
|
|
1787
1777
|
return {
|
|
1788
1778
|
'stopMain': !![],
|
|
1789
|
-
'threadTarget':
|
|
1790
|
-
'workerDisposition':
|
|
1779
|
+
'threadTarget': _0x33eebb,
|
|
1780
|
+
'workerDisposition': _0x4b7313[_0x1a051f(0x188)] === 'queued' ? _0x1a051f(_0xbc55b0._0x570390) : 'started',
|
|
1791
1781
|
'workerHandoff': !![],
|
|
1792
|
-
'workerSessionId':
|
|
1793
|
-
'executionMode':
|
|
1782
|
+
'workerSessionId': _0x4b7313[_0x1a051f(_0xbc55b0._0x3d931c)] ?? '',
|
|
1783
|
+
'executionMode': 'worker'
|
|
1794
1784
|
};
|
|
1795
1785
|
}
|
|
1796
|
-
async function
|
|
1797
|
-
const
|
|
1798
|
-
if (!
|
|
1786
|
+
async function _0x58b434() {
|
|
1787
|
+
const _0xbeabc8 = _0x46e8;
|
|
1788
|
+
if (!_0x5e51c9[_0xbeabc8(_0x5a80d3._0x3eadf5)] || !_0x5e51c9[_0xbeabc8(0x198)] || _0x5e51c9[_0xbeabc8(_0x5a80d3._0x4a91b0)])
|
|
1799
1789
|
return null;
|
|
1800
1790
|
try {
|
|
1801
|
-
const
|
|
1802
|
-
if (!
|
|
1791
|
+
const _0x33e787 = await fetch(_0x5e51c9[_0xbeabc8(_0x5a80d3._0x3eadf5)] + _0xbeabc8(0x13c) + encodeURIComponent(_0x5e51c9[_0xbeabc8(_0x5a80d3._0x18a056)])), _0x3be804 = await _0x33e787['json']();
|
|
1792
|
+
if (!_0x3be804['ok'])
|
|
1803
1793
|
return null;
|
|
1804
|
-
const
|
|
1805
|
-
for (const
|
|
1806
|
-
|
|
1794
|
+
const _0x364caa = new Set();
|
|
1795
|
+
for (const _0x1d9d7a of _0x3be804[_0xbeabc8(_0x5a80d3._0x769298)]) {
|
|
1796
|
+
_0x1d9d7a['status'] !== 'destroyed' && _0x1d9d7a[_0xbeabc8(0x28b)] && _0x364caa['add'](_0x1d9d7a[_0xbeabc8(0x28b)]);
|
|
1807
1797
|
}
|
|
1808
|
-
return
|
|
1798
|
+
return _0x364caa[_0xbeabc8(_0x5a80d3._0x199049)] > 0x0 ? _0x364caa : null;
|
|
1809
1799
|
} catch {
|
|
1810
1800
|
return null;
|
|
1811
1801
|
}
|
|
1812
1802
|
}
|
|
1813
|
-
const
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1803
|
+
const _0x48595f = new Set([
|
|
1804
|
+
_0x32e1b7(_0x48ccba._0x56cae2),
|
|
1805
|
+
_0x32e1b7(0x162),
|
|
1806
|
+
'waiting_input'
|
|
1817
1807
|
]);
|
|
1818
|
-
async function
|
|
1819
|
-
const
|
|
1820
|
-
if (!
|
|
1808
|
+
async function _0x3f6835() {
|
|
1809
|
+
const _0x6942bb = _0x32e1b7;
|
|
1810
|
+
if (!_0x5e51c9['daemonLocalUrl'] || !_0x5e51c9['agentId'] || _0x5e51c9[_0x6942bb(0x118)])
|
|
1821
1811
|
return null;
|
|
1822
1812
|
try {
|
|
1823
|
-
const
|
|
1824
|
-
if (!
|
|
1813
|
+
const _0x45415a = await fetch(_0x5e51c9[_0x6942bb(_0x2881d0._0x13e2d4)] + '/workers/list?agent_id=' + encodeURIComponent(_0x5e51c9[_0x6942bb(_0x2881d0._0x55f4ee)])), _0x2113dc = await _0x45415a[_0x6942bb(0x240)]();
|
|
1814
|
+
if (!_0x2113dc['ok'])
|
|
1825
1815
|
return null;
|
|
1826
|
-
const
|
|
1827
|
-
for (const
|
|
1828
|
-
|
|
1816
|
+
const _0x51a1da = new Set();
|
|
1817
|
+
for (const _0x180a54 of _0x2113dc[_0x6942bb(_0x2881d0._0x458e55)]) {
|
|
1818
|
+
_0x48595f[_0x6942bb(0x150)](_0x180a54[_0x6942bb(_0x2881d0._0x2fb05e)]) && _0x180a54[_0x6942bb(_0x2881d0._0x34e67d)] && _0x51a1da['add'](_0x180a54['thread_target']);
|
|
1829
1819
|
}
|
|
1830
|
-
return
|
|
1820
|
+
return _0x51a1da[_0x6942bb(0x166)] > 0x0 ? _0x51a1da : null;
|
|
1831
1821
|
} catch {
|
|
1832
1822
|
return null;
|
|
1833
1823
|
}
|
|
1834
1824
|
}
|
|
1835
1825
|
return {
|
|
1836
|
-
async 'send_message'(
|
|
1837
|
-
const
|
|
1838
|
-
if (!
|
|
1839
|
-
const
|
|
1840
|
-
if (
|
|
1841
|
-
const
|
|
1842
|
-
if (
|
|
1826
|
+
async 'send_message'(_0x3456e5) {
|
|
1827
|
+
const _0x383aad = _0x32e1b7;
|
|
1828
|
+
if (!_0x5e51c9[_0x383aad(_0x39f306._0x197c61)] && _0x5e51c9[_0x383aad(0x269)] && _0x5e51c9[_0x383aad(_0x39f306._0x58d76c)] && _0x5e51c9[_0x383aad(0x198)]) {
|
|
1829
|
+
const _0x188a6c = await _0x5e51c9[_0x383aad(0x262)]['resolveTarget'](_0x3456e5[_0x383aad(0x1ca)]);
|
|
1830
|
+
if (_0x188a6c[_0x383aad(_0x39f306._0x2d7d46)] && _0x188a6c['threadId']) {
|
|
1831
|
+
const _0x4e336a = _0x188a6c[_0x383aad(_0x39f306._0x2d7d46)][_0x383aad(_0x39f306._0x3605b9)] != null ? '#' + _0x188a6c['task']['taskNumber'] : '(legacy)', _0x284287 = _0x188a6c[_0x383aad(0x128)] != null ? _0x188a6c[_0x383aad(0x1ca)] + ':t' + _0x188a6c[_0x383aad(0x128)] : _0x188a6c['target'] + ':' + _0x188a6c['threadId'][_0x383aad(0x28f)](0x0, 0x8), _0x38c922 = await _0x3f6835();
|
|
1832
|
+
if (_0x38c922?.[_0x383aad(_0x39f306._0x37bd8c)](_0x284287))
|
|
1843
1833
|
return [
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
][
|
|
1847
|
-
const
|
|
1848
|
-
|
|
1834
|
+
_0x383aad(_0x39f306._0x3ba843) + _0x4e336a + _0x383aad(_0x39f306._0x406761) + _0x284287 + _0x383aad(_0x39f306._0x16c702),
|
|
1835
|
+
_0x383aad(0x260)
|
|
1836
|
+
]['join']('\x0a');
|
|
1837
|
+
const _0x865af2 = [
|
|
1838
|
+
_0x383aad(0x1a7) + _0x284287 + '\x20msg=handoff\x20time=' + new Date()[_0x383aad(0x145)]() + _0x383aad(0x164),
|
|
1849
1839
|
'',
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
][
|
|
1855
|
-
'method':
|
|
1856
|
-
'headers': { 'Content-Type':
|
|
1857
|
-
'body': JSON[
|
|
1858
|
-
'agent_id':
|
|
1859
|
-
'thread_target':
|
|
1840
|
+
'Original\x20message:\x20' + _0x3456e5[_0x383aad(_0x39f306._0x92eafb)],
|
|
1841
|
+
_0x383aad(_0x39f306._0x35b128) + _0x4e336a + '\x20(' + _0x188a6c[_0x383aad(_0x39f306._0x362c80)][_0x383aad(_0x39f306._0x2b3b87)] + ')',
|
|
1842
|
+
'Thread\x20target:\x20' + _0x284287,
|
|
1843
|
+
_0x383aad(_0x39f306._0xfe163)
|
|
1844
|
+
][_0x383aad(0x291)]('\x0a'), _0x48185c = await fetch(_0x5e51c9[_0x383aad(0x1c6)] + _0x383aad(_0x39f306._0x3061ba), {
|
|
1845
|
+
'method': _0x383aad(0x1e1),
|
|
1846
|
+
'headers': { 'Content-Type': _0x383aad(_0x39f306._0x3a1a4d) },
|
|
1847
|
+
'body': JSON[_0x383aad(_0x39f306._0x222f79)]({
|
|
1848
|
+
'agent_id': _0x5e51c9['agentId'],
|
|
1849
|
+
'thread_target': _0x284287,
|
|
1860
1850
|
'spawn_packet': {
|
|
1861
|
-
'replyTarget':
|
|
1862
|
-
'taskId':
|
|
1851
|
+
'replyTarget': _0x284287,
|
|
1852
|
+
'taskId': _0x188a6c[_0x383aad(_0x39f306._0x43aa97)][_0x383aad(_0x39f306._0x56f107)]
|
|
1863
1853
|
},
|
|
1864
1854
|
'payload': {
|
|
1865
|
-
'mode':
|
|
1866
|
-
'text':
|
|
1855
|
+
'mode': _0x383aad(0x161),
|
|
1856
|
+
'text': _0x865af2
|
|
1867
1857
|
}
|
|
1868
1858
|
})
|
|
1869
|
-
}),
|
|
1870
|
-
if (!
|
|
1871
|
-
throw new Error(
|
|
1859
|
+
}), _0xd2a9ac = await _0x48185c[_0x383aad(0x240)]();
|
|
1860
|
+
if (!_0xd2a9ac['ok'])
|
|
1861
|
+
throw new Error(_0xd2a9ac[_0x383aad(0x156)] ?? _0x383aad(0x2a3));
|
|
1872
1862
|
return [
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1863
|
+
'Handoff\x20to\x20worker\x20for\x20task\x20' + _0x4e336a + _0x383aad(_0x39f306._0x10f9be) + _0x284287 + _0x383aad(_0x39f306._0x51e453),
|
|
1864
|
+
_0x383aad(_0x39f306._0x53bec8) + (_0xd2a9ac['disposition'] === _0x383aad(_0x39f306._0x1f69d1) ? _0x383aad(_0x39f306._0x1f69d1) : _0x383aad(_0x39f306._0x2904e3)) + '.',
|
|
1865
|
+
_0x383aad(0x247)
|
|
1876
1866
|
]['join']('\x0a');
|
|
1877
1867
|
}
|
|
1878
1868
|
}
|
|
1879
|
-
const
|
|
1880
|
-
'attachmentIds':
|
|
1881
|
-
'content':
|
|
1882
|
-
'target':
|
|
1883
|
-
'visibility':
|
|
1869
|
+
const _0x3a559a = await _0x5e51c9[_0x383aad(_0x39f306._0x159c3c)][_0x383aad(0x157)]({
|
|
1870
|
+
'attachmentIds': _0x3456e5[_0x383aad(_0x39f306._0x3267a3)],
|
|
1871
|
+
'content': _0x3456e5[_0x383aad(0x223)],
|
|
1872
|
+
'target': _0x3456e5[_0x383aad(_0x39f306._0x51a60a)],
|
|
1873
|
+
'visibility': _0x3456e5[_0x383aad(0x173)]
|
|
1884
1874
|
});
|
|
1885
|
-
return
|
|
1875
|
+
return _0x383aad(_0x39f306._0x5be660) + _0x3456e5[_0x383aad(_0x39f306._0x51a60a)] + _0x383aad(_0x39f306._0x260cf4) + _0x3a559a[_0x383aad(_0x39f306._0x40a863)];
|
|
1886
1876
|
},
|
|
1887
1877
|
async 'check_messages'() {
|
|
1888
|
-
const
|
|
1889
|
-
if (!
|
|
1890
|
-
const
|
|
1891
|
-
if (
|
|
1892
|
-
return formatCheckMessages(
|
|
1878
|
+
const _0x1f9c54 = _0x32e1b7, _0x4404a1 = await _0x5e51c9[_0x1f9c54(_0x1e77ff._0x2cc2ec)][_0x1f9c54(0x22f)]();
|
|
1879
|
+
if (!_0x5e51c9[_0x1f9c54(_0x1e77ff._0x5772fa)]) {
|
|
1880
|
+
const _0x346ef0 = await _0x58b434();
|
|
1881
|
+
if (_0x346ef0)
|
|
1882
|
+
return formatCheckMessages(_0x4404a1[_0x1f9c54(0x25a)]['filter'](_0x2e47fa => !_0x346ef0[_0x1f9c54(0x150)](_0x2e47fa[_0x1f9c54(0x1ca)])));
|
|
1893
1883
|
}
|
|
1894
|
-
return formatCheckMessages(
|
|
1884
|
+
return formatCheckMessages(_0x4404a1[_0x1f9c54(0x25a)]);
|
|
1895
1885
|
},
|
|
1896
|
-
async 'read_history'(
|
|
1897
|
-
const
|
|
1898
|
-
return formatHistory(
|
|
1886
|
+
async 'read_history'(_0x3e0134) {
|
|
1887
|
+
const _0x54c1e2 = _0x32e1b7, _0xa48463 = await _0x5e51c9['client'][_0x54c1e2(0x26a)](_0x3e0134);
|
|
1888
|
+
return formatHistory(_0xa48463);
|
|
1899
1889
|
},
|
|
1900
1890
|
async 'list_server'() {
|
|
1901
|
-
const
|
|
1902
|
-
return formatServerDirectory(
|
|
1891
|
+
const _0x1d565e = _0x32e1b7, _0x411dbe = await _0x5e51c9[_0x1d565e(0x262)][_0x1d565e(0x256)]();
|
|
1892
|
+
return formatServerDirectory(_0x411dbe);
|
|
1903
1893
|
},
|
|
1904
|
-
async 'list_tasks'(
|
|
1905
|
-
const
|
|
1906
|
-
let
|
|
1907
|
-
if (
|
|
1894
|
+
async 'list_tasks'(_0x2f4c7b) {
|
|
1895
|
+
const _0x15e2f1 = _0x32e1b7, _0x22fca3 = await _0x5e51c9[_0x15e2f1(_0x3b01cc._0x35233c)][_0x15e2f1(_0x3b01cc._0x19b777)](_0x2f4c7b);
|
|
1896
|
+
let _0x4d9049;
|
|
1897
|
+
if (_0x5e51c9[_0x15e2f1(_0x3b01cc._0x263b65)] && _0x5e51c9[_0x15e2f1(_0x3b01cc._0x2db768)])
|
|
1908
1898
|
try {
|
|
1909
|
-
const
|
|
1910
|
-
if (
|
|
1911
|
-
const
|
|
1912
|
-
|
|
1913
|
-
for (const
|
|
1914
|
-
if (
|
|
1899
|
+
const _0x139c9d = await fetch(_0x5e51c9[_0x15e2f1(_0x3b01cc._0x263b65)] + _0x15e2f1(0x13c) + encodeURIComponent(_0x5e51c9[_0x15e2f1(_0x3b01cc._0x59c096)])), _0x5af665 = await _0x139c9d[_0x15e2f1(_0x3b01cc._0x1ca845)]();
|
|
1900
|
+
if (_0x5af665['ok']) {
|
|
1901
|
+
const _0x58c051 = _0x2f4c7b[_0x15e2f1(_0x3b01cc._0x4427ec)] + ':';
|
|
1902
|
+
_0x4d9049 = new Set();
|
|
1903
|
+
for (const _0x2d2938 of _0x5af665[_0x15e2f1(_0x3b01cc._0x3910e7)]) {
|
|
1904
|
+
if (_0x2d2938[_0x15e2f1(_0x3b01cc._0x3ec47)] === 'destroyed')
|
|
1915
1905
|
continue;
|
|
1916
|
-
if (
|
|
1917
|
-
const
|
|
1918
|
-
if (
|
|
1919
|
-
|
|
1906
|
+
if (_0x2d2938[_0x15e2f1(_0x3b01cc._0x219df8)]?.[_0x15e2f1(0x149)](_0x58c051)) {
|
|
1907
|
+
const _0x5f2639 = _0x2d2938['thread_target'][_0x15e2f1(0x28f)](_0x58c051[_0x15e2f1(0x14e)]), _0x433255 = _0x22fca3[_0x15e2f1(_0x3b01cc._0x108b3a)][_0x15e2f1(_0x3b01cc._0x2db98e)](_0x30f6ae => _0x30f6ae[_0x15e2f1(0x185)]?.[_0x15e2f1(0x149)](_0x5f2639) === !![]);
|
|
1908
|
+
if (_0x433255?.[_0x15e2f1(0x249)] != null) {
|
|
1909
|
+
_0x4d9049[_0x15e2f1(_0x3b01cc._0x55485c)](_0x433255[_0x15e2f1(0x249)]);
|
|
1920
1910
|
continue;
|
|
1921
1911
|
}
|
|
1922
1912
|
}
|
|
1923
|
-
if (
|
|
1924
|
-
const
|
|
1925
|
-
|
|
1913
|
+
if (_0x2d2938['task_id']) {
|
|
1914
|
+
const _0x4f10c7 = _0x22fca3[_0x15e2f1(0x129)]['find'](_0x5ab0c2 => _0x5ab0c2[_0x15e2f1(0x24c)] === _0x2d2938[_0x15e2f1(0x13d)]);
|
|
1915
|
+
_0x4f10c7?.['taskNumber'] != null && _0x4d9049['add'](_0x4f10c7[_0x15e2f1(_0x3b01cc._0x9e331d)]);
|
|
1926
1916
|
}
|
|
1927
1917
|
}
|
|
1928
1918
|
}
|
|
1929
1919
|
} catch {
|
|
1930
1920
|
}
|
|
1931
|
-
return formatTaskList(
|
|
1921
|
+
return formatTaskList(_0x22fca3[_0x15e2f1(_0x3b01cc._0xe3285e)], _0x4d9049);
|
|
1932
1922
|
},
|
|
1933
|
-
async 'create_tasks'(
|
|
1934
|
-
const
|
|
1935
|
-
|
|
1936
|
-
const
|
|
1937
|
-
return formatCreatedTasks(
|
|
1923
|
+
async 'create_tasks'(_0x464a0b) {
|
|
1924
|
+
const _0x598dd7 = _0x32e1b7;
|
|
1925
|
+
_0x343cbb(_0x598dd7(_0x20be46._0x27f6ca), _0x464a0b[_0x598dd7(0x16c)]);
|
|
1926
|
+
const _0x4b183c = await _0x5e51c9[_0x598dd7(_0x20be46._0x1060e6)][_0x598dd7(_0x20be46._0x13b761)](_0x464a0b);
|
|
1927
|
+
return formatCreatedTasks(_0x4b183c['tasks']);
|
|
1938
1928
|
},
|
|
1939
|
-
async 'claim_tasks'(
|
|
1940
|
-
const
|
|
1941
|
-
if (
|
|
1942
|
-
|
|
1943
|
-
if (
|
|
1944
|
-
throw new Error(
|
|
1945
|
-
if (!
|
|
1946
|
-
throw new Error(
|
|
1929
|
+
async 'claim_tasks'(_0x4bc345) {
|
|
1930
|
+
const _0x373d44 = _0x32e1b7;
|
|
1931
|
+
if (_0x5e51c9['workerMode']) {
|
|
1932
|
+
_0x343cbb('claim_tasks', _0x4bc345[_0x373d44(_0x5e677b._0x2317af)]);
|
|
1933
|
+
if (_0x4bc345[_0x373d44(0x23a)] && _0x4bc345['message_ids'][_0x373d44(0x14e)] > 0x0)
|
|
1934
|
+
throw new Error(_0x373d44(0x152));
|
|
1935
|
+
if (!_0x4bc345['subtask_numbers'] || _0x4bc345[_0x373d44(_0x5e677b._0xa2d479)][_0x373d44(0x14e)] === 0x0)
|
|
1936
|
+
throw new Error(_0x373d44(_0x5e677b._0x2dcad4));
|
|
1947
1937
|
}
|
|
1948
|
-
const
|
|
1949
|
-
const
|
|
1950
|
-
if (!
|
|
1951
|
-
return
|
|
1938
|
+
const _0x5e2938 = await _0x5e51c9[_0x373d44(0x262)][_0x373d44(_0x5e677b._0x4f90df)](_0x4bc345), _0x43ce1f = await Promise['all'](_0x5e2938[_0x373d44(0x13a)][_0x373d44(_0x5e677b._0x597170)](async _0x3a5b16 => {
|
|
1939
|
+
const _0x440ef8 = _0x373d44;
|
|
1940
|
+
if (!_0x3a5b16[_0x440ef8(_0x332f5d._0x28816d)] || !_0x3a5b16[_0x440ef8(_0x332f5d._0x3040d5)])
|
|
1941
|
+
return _0x3a5b16;
|
|
1952
1942
|
try {
|
|
1953
|
-
const
|
|
1954
|
-
'channel':
|
|
1955
|
-
'messageId':
|
|
1956
|
-
'taskId':
|
|
1957
|
-
'taskNumber':
|
|
1958
|
-
'threadNumber':
|
|
1943
|
+
const _0x4c6b21 = await _0x92cc0f({
|
|
1944
|
+
'channel': _0x4bc345[_0x440ef8(0x16c)],
|
|
1945
|
+
'messageId': _0x3a5b16[_0x440ef8(0x185)],
|
|
1946
|
+
'taskId': _0x3a5b16[_0x440ef8(0x24c)],
|
|
1947
|
+
'taskNumber': _0x3a5b16[_0x440ef8(0x249)],
|
|
1948
|
+
'threadNumber': _0x3a5b16[_0x440ef8(_0x332f5d._0x5e8e48)]
|
|
1959
1949
|
});
|
|
1960
|
-
return
|
|
1961
|
-
...
|
|
1962
|
-
...
|
|
1963
|
-
} :
|
|
1964
|
-
} catch (
|
|
1950
|
+
return _0x4c6b21 ? {
|
|
1951
|
+
..._0x3a5b16,
|
|
1952
|
+
..._0x4c6b21
|
|
1953
|
+
} : _0x3a5b16;
|
|
1954
|
+
} catch (_0x16b624) {
|
|
1965
1955
|
return {
|
|
1966
|
-
...
|
|
1967
|
-
'workerHandoffError':
|
|
1956
|
+
..._0x3a5b16,
|
|
1957
|
+
'workerHandoffError': _0x16b624 instanceof Error ? _0x16b624[_0x440ef8(_0x332f5d._0x194600)] : 'worker\x20handoff\x20failed'
|
|
1968
1958
|
};
|
|
1969
1959
|
}
|
|
1970
1960
|
}));
|
|
1971
|
-
return formatClaimTaskResults(
|
|
1961
|
+
return formatClaimTaskResults(_0x43ce1f);
|
|
1972
1962
|
},
|
|
1973
|
-
async 'unclaim_task'(
|
|
1974
|
-
const
|
|
1975
|
-
if (
|
|
1976
|
-
|
|
1977
|
-
if (
|
|
1978
|
-
throw new Error(
|
|
1963
|
+
async 'unclaim_task'(_0x12fa0e) {
|
|
1964
|
+
const _0x1114b1 = _0x32e1b7;
|
|
1965
|
+
if (_0x5e51c9['workerMode']) {
|
|
1966
|
+
_0x343cbb(_0x1114b1(0x146), _0x12fa0e[_0x1114b1(_0x4feaa6._0x4a9e24)]);
|
|
1967
|
+
if (_0x12fa0e[_0x1114b1(0x14a)] == null)
|
|
1968
|
+
throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
|
|
1979
1969
|
}
|
|
1980
|
-
const
|
|
1981
|
-
return formatUnclaimTaskResult(
|
|
1970
|
+
const _0x4b2bdb = await _0x5e51c9['client'][_0x1114b1(0x21a)](_0x12fa0e);
|
|
1971
|
+
return formatUnclaimTaskResult(_0x4b2bdb);
|
|
1982
1972
|
},
|
|
1983
|
-
async 'update_task_status'(
|
|
1984
|
-
const
|
|
1985
|
-
|
|
1986
|
-
const
|
|
1987
|
-
return formatUpdateTaskStatusResult(
|
|
1973
|
+
async 'update_task_status'(_0x497c64) {
|
|
1974
|
+
const _0x50f749 = _0x32e1b7;
|
|
1975
|
+
_0x343cbb('update_task_status', _0x497c64[_0x50f749(0x16c)]);
|
|
1976
|
+
const _0x74c16c = await _0x5e51c9[_0x50f749(_0xeb7293._0x370058)][_0x50f749(0x1fc)](_0x497c64);
|
|
1977
|
+
return formatUpdateTaskStatusResult(_0x74c16c);
|
|
1988
1978
|
},
|
|
1989
|
-
async 'upload_file'(
|
|
1990
|
-
const
|
|
1991
|
-
sizeBytes:
|
|
1992
|
-
...
|
|
1993
|
-
} =
|
|
1994
|
-
'channel':
|
|
1995
|
-
...
|
|
1979
|
+
async 'upload_file'(_0x2a8990) {
|
|
1980
|
+
const _0x521d10 = _0x32e1b7, _0x2892e7 = await _0x5e51c9[_0x521d10(0x201)](_0x2a8990[_0x521d10(_0x3c4af9._0x229180)]), {
|
|
1981
|
+
sizeBytes: _0x20d311,
|
|
1982
|
+
..._0x49a627
|
|
1983
|
+
} = _0x2892e7, _0x24981e = await _0x5e51c9[_0x521d10(0x262)]['uploadFile']({
|
|
1984
|
+
'channel': _0x2a8990[_0x521d10(0x16c)],
|
|
1985
|
+
..._0x49a627
|
|
1996
1986
|
});
|
|
1997
|
-
return formatUploadResult(
|
|
1987
|
+
return formatUploadResult(_0x24981e);
|
|
1998
1988
|
},
|
|
1999
|
-
async 'view_file'(
|
|
2000
|
-
const
|
|
2001
|
-
if (
|
|
2002
|
-
return formatViewFileResult(
|
|
2003
|
-
const
|
|
2004
|
-
'attachmentId':
|
|
2005
|
-
'contentType':
|
|
2006
|
-
'data':
|
|
2007
|
-
'originalFilename':
|
|
1989
|
+
async 'view_file'(_0x52d6cb) {
|
|
1990
|
+
const _0x1f4c15 = _0x32e1b7, _0x1b70c6 = await _0x5e51c9[_0x1f4c15(0x263)][_0x1f4c15(0x1ac)](_0x52d6cb[_0x1f4c15(_0x47ee0c._0x3d6212)]);
|
|
1991
|
+
if (_0x1b70c6)
|
|
1992
|
+
return formatViewFileResult(_0x1b70c6, !![]);
|
|
1993
|
+
const _0x2c49f6 = await _0x5e51c9[_0x1f4c15(0x262)][_0x1f4c15(0x239)](_0x52d6cb['attachment_id']), _0x1e4c6d = await _0x5e51c9[_0x1f4c15(0x263)][_0x1f4c15(_0x47ee0c._0x429b30)]({
|
|
1994
|
+
'attachmentId': _0x52d6cb[_0x1f4c15(_0x47ee0c._0xe6dfe2)],
|
|
1995
|
+
'contentType': _0x2c49f6[_0x1f4c15(_0x47ee0c._0x4055e0)],
|
|
1996
|
+
'data': _0x2c49f6[_0x1f4c15(0x1cc)],
|
|
1997
|
+
'originalFilename': _0x2c49f6[_0x1f4c15(0x1d6)]
|
|
2008
1998
|
});
|
|
2009
|
-
return formatViewFileResult(
|
|
1999
|
+
return formatViewFileResult(_0x1e4c6d, ![]);
|
|
2010
2000
|
},
|
|
2011
|
-
async 'get_worker_status'(
|
|
2012
|
-
const
|
|
2013
|
-
if (!
|
|
2001
|
+
async 'get_worker_status'(_0x9b2e) {
|
|
2002
|
+
const _0x456fe3 = _0x32e1b7;
|
|
2003
|
+
if (!_0x5e51c9[_0x456fe3(0x1c6)])
|
|
2014
2004
|
return 'Worker\x20features\x20not\x20available';
|
|
2015
|
-
const
|
|
2016
|
-
if (!
|
|
2017
|
-
return
|
|
2018
|
-
return
|
|
2005
|
+
const _0x336c14 = await fetch(_0x5e51c9[_0x456fe3(_0x5939b9._0x4010bd)] + _0x456fe3(0x1b1) + encodeURIComponent(_0x9b2e[_0x456fe3(_0x5939b9._0x29c819)])), _0x3e5fb9 = await _0x336c14[_0x456fe3(0x240)]();
|
|
2006
|
+
if (!_0x3e5fb9['ok'])
|
|
2007
|
+
return 'Worker\x20\x22' + _0x9b2e[_0x456fe3(0x25e)] + _0x456fe3(0x25c);
|
|
2008
|
+
return _0x456fe3(0x1a2) + _0x9b2e['work_key'] + _0x456fe3(_0x5939b9._0xbb3445) + _0x3e5fb9[_0x456fe3(_0x5939b9._0x55ba21)];
|
|
2019
2009
|
},
|
|
2020
|
-
async 'park_worker'(
|
|
2021
|
-
const
|
|
2022
|
-
if (!
|
|
2023
|
-
return
|
|
2024
|
-
const
|
|
2025
|
-
'method':
|
|
2026
|
-
'headers': { 'Content-Type': _0x47bd8b(_0x174d79._0x27f07d) },
|
|
2027
|
-
'body': JSON[_0x47bd8b(0x1cc)]({ 'work_key': _0x1b943b[_0x47bd8b(0x273)] })
|
|
2028
|
-
}), _0x1874fa = await _0x446868[_0x47bd8b(_0x174d79._0x59ad8e)]();
|
|
2029
|
-
if (!_0x1874fa['ok'])
|
|
2030
|
-
throw new Error(_0x1874fa['error'] ?? 'park_worker\x20failed');
|
|
2031
|
-
return 'Worker\x20\x22' + _0x1b943b[_0x47bd8b(_0x174d79._0xf10b6)] + _0x47bd8b(0x21a);
|
|
2032
|
-
},
|
|
2033
|
-
async 'mark_waiting_input'(_0x47a5c6) {
|
|
2034
|
-
const _0x7e9080 = _0x30473e;
|
|
2035
|
-
if (!_0x41a796['daemonLocalUrl'] || !_0x41a796[_0x7e9080(0x11a)])
|
|
2036
|
-
return _0x7e9080(0x14e);
|
|
2037
|
-
const _0x26e329 = await fetch(_0x41a796[_0x7e9080(0x283)] + _0x7e9080(_0x58ab06._0x270541), {
|
|
2038
|
-
'method': _0x7e9080(_0x58ab06._0x4fccba),
|
|
2010
|
+
async 'park_worker'(_0x1c7d87) {
|
|
2011
|
+
const _0x45567c = _0x32e1b7;
|
|
2012
|
+
if (!_0x5e51c9[_0x45567c(0x1c6)])
|
|
2013
|
+
return _0x45567c(_0x557ad6._0x1a6b85);
|
|
2014
|
+
const _0x1e2315 = await fetch(_0x5e51c9[_0x45567c(0x1c6)] + _0x45567c(0x174), {
|
|
2015
|
+
'method': _0x45567c(0x1e1),
|
|
2039
2016
|
'headers': { 'Content-Type': 'application/json' },
|
|
2017
|
+
'body': JSON[_0x45567c(_0x557ad6._0x8b6232)]({ 'work_key': _0x1c7d87[_0x45567c(_0x557ad6._0x301231)] })
|
|
2018
|
+
}), _0x5220ed = await _0x1e2315['json']();
|
|
2019
|
+
if (!_0x5220ed['ok'])
|
|
2020
|
+
throw new Error(_0x5220ed[_0x45567c(_0x557ad6._0x5a75aa)] ?? _0x45567c(0x1eb));
|
|
2021
|
+
return _0x45567c(_0x557ad6._0x177226) + _0x1c7d87[_0x45567c(_0x557ad6._0x301231)] + _0x45567c(_0x557ad6._0x24b968);
|
|
2022
|
+
},
|
|
2023
|
+
async 'mark_waiting_input'(_0x4bd372) {
|
|
2024
|
+
const _0x11cabf = _0x32e1b7;
|
|
2025
|
+
if (!_0x5e51c9['daemonLocalUrl'] || !_0x5e51c9[_0x11cabf(0x198)])
|
|
2026
|
+
return _0x11cabf(0x242);
|
|
2027
|
+
const _0x375755 = await fetch(_0x5e51c9[_0x11cabf(0x1c6)] + _0x11cabf(0x1ef), {
|
|
2028
|
+
'method': 'POST',
|
|
2029
|
+
'headers': { 'Content-Type': _0x11cabf(_0x3fe798._0x2c4ff6) },
|
|
2040
2030
|
'body': JSON['stringify']({
|
|
2041
|
-
'work_key':
|
|
2042
|
-
'agent_id':
|
|
2031
|
+
'work_key': _0x4bd372[_0x11cabf(_0x3fe798._0x16e9ad)],
|
|
2032
|
+
'agent_id': _0x5e51c9['agentId']
|
|
2043
2033
|
})
|
|
2044
|
-
}),
|
|
2045
|
-
if (!
|
|
2046
|
-
throw new Error(
|
|
2047
|
-
return
|
|
2034
|
+
}), _0x2396b3 = await _0x375755['json']();
|
|
2035
|
+
if (!_0x2396b3['ok'])
|
|
2036
|
+
throw new Error(_0x2396b3[_0x11cabf(0x156)] ?? _0x11cabf(0x2a1));
|
|
2037
|
+
return _0x11cabf(0x1a2) + _0x4bd372[_0x11cabf(_0x3fe798._0x4135c8)] + _0x11cabf(_0x3fe798._0x5f1dc7);
|
|
2048
2038
|
},
|
|
2049
|
-
async 'escalate_to_main'(
|
|
2050
|
-
const
|
|
2051
|
-
if (!
|
|
2052
|
-
return
|
|
2053
|
-
const
|
|
2039
|
+
async 'escalate_to_main'(_0x256ea2) {
|
|
2040
|
+
const _0x2369f2 = _0x32e1b7;
|
|
2041
|
+
if (!_0x5e51c9[_0x2369f2(0x1c6)])
|
|
2042
|
+
return _0x2369f2(0x20e);
|
|
2043
|
+
const _0x4ab94e = await fetch(_0x5e51c9[_0x2369f2(_0xb64721._0x3ec865)] + _0x2369f2(_0xb64721._0x3c8f88), {
|
|
2054
2044
|
'method': 'POST',
|
|
2055
|
-
'headers': { 'Content-Type':
|
|
2056
|
-
'body': JSON[
|
|
2057
|
-
'work_key':
|
|
2058
|
-
'reason':
|
|
2045
|
+
'headers': { 'Content-Type': _0x2369f2(0x230) },
|
|
2046
|
+
'body': JSON[_0x2369f2(0x1c9)]({
|
|
2047
|
+
'work_key': _0x256ea2['work_key'],
|
|
2048
|
+
'reason': _0x256ea2[_0x2369f2(_0xb64721._0x30de54)]
|
|
2059
2049
|
})
|
|
2060
|
-
}),
|
|
2061
|
-
if (!
|
|
2062
|
-
throw new Error(
|
|
2063
|
-
return
|
|
2050
|
+
}), _0x46167a = await _0x4ab94e[_0x2369f2(0x240)]();
|
|
2051
|
+
if (!_0x46167a['ok'])
|
|
2052
|
+
throw new Error(_0x46167a[_0x2369f2(0x156)] ?? _0x2369f2(0x16f));
|
|
2053
|
+
return _0x2369f2(_0xb64721._0x5154f1) + _0x256ea2[_0x2369f2(_0xb64721._0x55453f)];
|
|
2064
2054
|
}
|
|
2065
2055
|
};
|
|
2066
2056
|
}
|
|
2067
|
-
function textResult(
|
|
2068
|
-
const
|
|
2057
|
+
function textResult(_0x15f2b4, _0xc75215 = ![]) {
|
|
2058
|
+
const _0x11eeba = { _0x37288c: 0x2a2 }, _0x31c43f = _0x2cd54a;
|
|
2069
2059
|
return {
|
|
2070
2060
|
'content': [{
|
|
2071
|
-
'type':
|
|
2072
|
-
'text':
|
|
2061
|
+
'type': _0x31c43f(_0x11eeba._0x37288c),
|
|
2062
|
+
'text': _0x15f2b4
|
|
2073
2063
|
}],
|
|
2074
|
-
...
|
|
2064
|
+
..._0xc75215 ? { 'isError': !![] } : {}
|
|
2075
2065
|
};
|
|
2076
2066
|
}
|
|
2077
|
-
async function registerChatBridgeTools(
|
|
2078
|
-
const
|
|
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
|
-
|
|
2132
|
-
_0x24201e: 0x25e,
|
|
2133
|
-
_0x3f48b7: 0x1d2
|
|
2134
|
-
}, _0x36a587 = _0x1b8c9f, {z: _0x5a6572} = await import(_0x36a587(0x15a));
|
|
2135
|
-
_0x43ac40[_0x36a587(_0xa48b63._0x3558e9)]('send_message', _0x36a587(_0xa48b63._0x57d96d), {
|
|
2136
|
-
'target': _0x5a6572[_0x36a587(0x138)](),
|
|
2137
|
-
'content': _0x5a6572[_0x36a587(0x138)](),
|
|
2138
|
-
'attachment_ids': _0x5a6572[_0x36a587(0x1f9)](_0x5a6572[_0x36a587(0x138)]())[_0x36a587(_0xa48b63._0x2839ff)](),
|
|
2139
|
-
'visibility': _0x5a6572['enum']([
|
|
2140
|
-
_0x36a587(_0xa48b63._0x5995ec),
|
|
2141
|
-
_0x36a587(_0xa48b63._0x71b7e5)
|
|
2142
|
-
])['optional']()[_0x36a587(0x12b)]('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.')
|
|
2143
|
-
}, async _0x27a3c3 => {
|
|
2144
|
-
const _0x508acf = _0x36a587;
|
|
2067
|
+
async function registerChatBridgeTools(_0x3de2e2, _0x3632f9, _0x520287) {
|
|
2068
|
+
const _0x50a2da = {
|
|
2069
|
+
_0x37ff9c: 0x148,
|
|
2070
|
+
_0x534b3e: 0x16b,
|
|
2071
|
+
_0x470f2e: 0x17e,
|
|
2072
|
+
_0x5a78fa: 0x13e,
|
|
2073
|
+
_0x56ebc2: 0x1c4,
|
|
2074
|
+
_0x28d997: 0x1b4,
|
|
2075
|
+
_0x31b111: 0x1b4,
|
|
2076
|
+
_0x12cc1c: 0x24a,
|
|
2077
|
+
_0x421612: 0x1b4,
|
|
2078
|
+
_0x3e9f4b: 0x142,
|
|
2079
|
+
_0x35509f: 0x1d7,
|
|
2080
|
+
_0x2ac567: 0x1e0,
|
|
2081
|
+
_0x39776b: 0x211,
|
|
2082
|
+
_0x39bc07: 0x1c4,
|
|
2083
|
+
_0x3c7d0d: 0x1b4,
|
|
2084
|
+
_0x5a0b84: 0x1b4,
|
|
2085
|
+
_0x3a8be7: 0x1b4,
|
|
2086
|
+
_0x52a70e: 0x146,
|
|
2087
|
+
_0x4293f4: 0x1c4,
|
|
2088
|
+
_0x4c9c16: 0x148,
|
|
2089
|
+
_0x2f1171: 0x26f,
|
|
2090
|
+
_0x2278c9: 0x1c4,
|
|
2091
|
+
_0x369b28: 0x148,
|
|
2092
|
+
_0x1c3fdb: 0x178,
|
|
2093
|
+
_0x37f528: 0x284,
|
|
2094
|
+
_0x4c82a8: 0x148,
|
|
2095
|
+
_0x3a3c55: 0x148,
|
|
2096
|
+
_0xc31378: 0x16b,
|
|
2097
|
+
_0x580051: 0x118
|
|
2098
|
+
}, _0x4e0216 = { _0x1adb52: 0x279 }, _0x5abfe5 = {
|
|
2099
|
+
_0x5d160b: 0x23b,
|
|
2100
|
+
_0x23421a: 0x16f
|
|
2101
|
+
}, _0x36da83 = { _0x32de99: 0x1af }, _0x3fb296 = { _0x3b7331: 0x29d }, _0x29cd23 = {
|
|
2102
|
+
_0x41b919: 0x25f,
|
|
2103
|
+
_0x15efaa: 0x23b,
|
|
2104
|
+
_0x337380: 0x213
|
|
2105
|
+
}, _0x1d86da = {
|
|
2106
|
+
_0x10397e: 0x26f,
|
|
2107
|
+
_0x44bf2e: 0x23b
|
|
2108
|
+
}, _0x4f6a5d = { _0x5b2553: 0x193 }, _0x358aad = { _0x1aa6b0: 0x202 }, _0x44318f = { _0x512f0: 0x23b }, _0x4cf74d = {
|
|
2109
|
+
_0x59d32d: 0x29b,
|
|
2110
|
+
_0x3c03a0: 0x23b
|
|
2111
|
+
}, _0x7c3205 = { _0x63f631: 0x23b }, _0x115b96 = _0x2cd54a, {z: _0x229b66} = await import('zod');
|
|
2112
|
+
_0x3de2e2[_0x115b96(_0x50a2da._0x37ff9c)]('send_message', _0x115b96(0x1d5), {
|
|
2113
|
+
'target': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)](),
|
|
2114
|
+
'content': _0x229b66['string'](),
|
|
2115
|
+
'attachment_ids': _0x229b66[_0x115b96(0x1d7)](_0x229b66[_0x115b96(0x16b)]())['optional'](),
|
|
2116
|
+
'visibility': _0x229b66[_0x115b96(_0x50a2da._0x470f2e)]([
|
|
2117
|
+
_0x115b96(_0x50a2da._0x5a78fa),
|
|
2118
|
+
'aside'
|
|
2119
|
+
])['optional']()[_0x115b96(0x120)](_0x115b96(0x1f9))
|
|
2120
|
+
}, async _0x567887 => {
|
|
2121
|
+
const _0x2ac812 = _0x115b96;
|
|
2145
2122
|
try {
|
|
2146
|
-
return textResult(await
|
|
2147
|
-
} catch (
|
|
2148
|
-
return textResult(
|
|
2123
|
+
return textResult(await _0x3632f9['send_message'](_0x567887));
|
|
2124
|
+
} catch (_0x569ee9) {
|
|
2125
|
+
return textResult(_0x569ee9 instanceof Error ? _0x569ee9[_0x2ac812(0x23b)] : _0x2ac812(0x130), !![]);
|
|
2149
2126
|
}
|
|
2150
|
-
}),
|
|
2151
|
-
const
|
|
2127
|
+
}), _0x3de2e2[_0x115b96(0x148)](_0x115b96(0x1ee), 'Check\x20for\x20new\x20messages\x20without\x20waiting.', {}, async () => {
|
|
2128
|
+
const _0x3752e6 = _0x115b96;
|
|
2152
2129
|
try {
|
|
2153
|
-
return textResult(await
|
|
2154
|
-
} catch (
|
|
2155
|
-
return textResult(
|
|
2130
|
+
return textResult(await _0x3632f9['check_messages']());
|
|
2131
|
+
} catch (_0x3d5882) {
|
|
2132
|
+
return textResult(_0x3d5882 instanceof Error ? _0x3d5882[_0x3752e6(0x23b)] : _0x3752e6(0x134), !![]);
|
|
2156
2133
|
}
|
|
2157
|
-
}),
|
|
2158
|
-
'channel':
|
|
2159
|
-
'limit':
|
|
2160
|
-
'before':
|
|
2161
|
-
'after':
|
|
2162
|
-
}, async
|
|
2163
|
-
const
|
|
2134
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x37ff9c)](_0x115b96(0x1ae), _0x115b96(0x137), {
|
|
2135
|
+
'channel': _0x229b66[_0x115b96(0x16b)](),
|
|
2136
|
+
'limit': _0x229b66[_0x115b96(_0x50a2da._0x56ebc2)]()[_0x115b96(_0x50a2da._0x28d997)](),
|
|
2137
|
+
'before': _0x229b66['number']()[_0x115b96(_0x50a2da._0x31b111)](),
|
|
2138
|
+
'after': _0x229b66['number']()[_0x115b96(_0x50a2da._0x28d997)]()
|
|
2139
|
+
}, async _0xafc85b => {
|
|
2140
|
+
const _0x5df1ce = _0x115b96;
|
|
2164
2141
|
try {
|
|
2165
|
-
return textResult(await
|
|
2166
|
-
} catch (
|
|
2167
|
-
return textResult(
|
|
2142
|
+
return textResult(await _0x3632f9[_0x5df1ce(0x1ae)](_0xafc85b));
|
|
2143
|
+
} catch (_0x62c330) {
|
|
2144
|
+
return textResult(_0x62c330 instanceof Error ? _0x62c330[_0x5df1ce(0x23b)] : _0x5df1ce(0x159), !![]);
|
|
2168
2145
|
}
|
|
2169
|
-
}),
|
|
2170
|
-
const
|
|
2146
|
+
}), _0x3de2e2['tool'](_0x115b96(0x1c1), _0x115b96(0x226), {}, async () => {
|
|
2147
|
+
const _0x1d1147 = _0x115b96;
|
|
2171
2148
|
try {
|
|
2172
|
-
return textResult(await
|
|
2173
|
-
} catch (
|
|
2174
|
-
return textResult(
|
|
2149
|
+
return textResult(await _0x3632f9['list_server']());
|
|
2150
|
+
} catch (_0x5c9880) {
|
|
2151
|
+
return textResult(_0x5c9880 instanceof Error ? _0x5c9880[_0x1d1147(_0x7c3205._0x63f631)] : _0x1d1147(0x189), !![]);
|
|
2175
2152
|
}
|
|
2176
|
-
}),
|
|
2177
|
-
'channel':
|
|
2178
|
-
'status':
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
])[
|
|
2184
|
-
}, async
|
|
2185
|
-
const
|
|
2153
|
+
}), _0x3de2e2[_0x115b96(0x148)]('list_tasks', 'List\x20tasks\x20in\x20a\x20channel\x20or\x20thread.\x20Thread\x20target\x20(e.g.\x20\x22#channel:threadId\x22)\x20returns\x20the\x20parent\x20task\x20plus\x20its\x20subtasks\x20with\x20aggregation\x20fields\x20(childrenTotal,\x20childrenDone,\x20childrenInProgress).\x20Channel\x20target\x20returns\x20only\x20parent\x20tasks\x20(no\x20subtasks).', {
|
|
2154
|
+
'channel': _0x229b66[_0x115b96(0x16b)](),
|
|
2155
|
+
'status': _0x229b66[_0x115b96(0x17e)]([
|
|
2156
|
+
'todo',
|
|
2157
|
+
_0x115b96(0x20c),
|
|
2158
|
+
'in_review',
|
|
2159
|
+
_0x115b96(_0x50a2da._0x12cc1c)
|
|
2160
|
+
])[_0x115b96(_0x50a2da._0x421612)]()
|
|
2161
|
+
}, async _0x26f170 => {
|
|
2162
|
+
const _0x436f02 = _0x115b96;
|
|
2186
2163
|
try {
|
|
2187
|
-
return textResult(await
|
|
2188
|
-
} catch (
|
|
2189
|
-
return textResult(
|
|
2164
|
+
return textResult(await _0x3632f9[_0x436f02(_0x4cf74d._0x59d32d)](_0x26f170));
|
|
2165
|
+
} catch (_0x491053) {
|
|
2166
|
+
return textResult(_0x491053 instanceof Error ? _0x491053[_0x436f02(_0x4cf74d._0x3c03a0)] : _0x436f02(0x209), !![]);
|
|
2190
2167
|
}
|
|
2191
|
-
}),
|
|
2192
|
-
'channel':
|
|
2193
|
-
'idempotency_key':
|
|
2194
|
-
'tasks':
|
|
2195
|
-
'title':
|
|
2196
|
-
'description':
|
|
2197
|
-
'priority':
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
])[
|
|
2168
|
+
}), _0x3de2e2[_0x115b96(0x148)](_0x115b96(0x14d), _0x115b96(_0x50a2da._0x3e9f4b), {
|
|
2169
|
+
'channel': _0x229b66['string'](),
|
|
2170
|
+
'idempotency_key': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)]()[_0x115b96(_0x50a2da._0x31b111)](),
|
|
2171
|
+
'tasks': _0x229b66[_0x115b96(_0x50a2da._0x35509f)](_0x229b66['object']({
|
|
2172
|
+
'title': _0x229b66['string'](),
|
|
2173
|
+
'description': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)]()['optional'](),
|
|
2174
|
+
'priority': _0x229b66['enum']([
|
|
2175
|
+
_0x115b96(_0x50a2da._0x2ac567),
|
|
2176
|
+
_0x115b96(0x203),
|
|
2177
|
+
_0x115b96(_0x50a2da._0x39776b),
|
|
2178
|
+
'urgent'
|
|
2179
|
+
])[_0x115b96(_0x50a2da._0x421612)]()
|
|
2203
2180
|
}))
|
|
2204
|
-
}, async
|
|
2205
|
-
const
|
|
2181
|
+
}, async _0x5870a1 => {
|
|
2182
|
+
const _0x529acc = _0x115b96;
|
|
2206
2183
|
try {
|
|
2207
|
-
return textResult(await
|
|
2208
|
-
} catch (
|
|
2209
|
-
return textResult(
|
|
2184
|
+
return textResult(await _0x3632f9[_0x529acc(0x14d)](_0x5870a1));
|
|
2185
|
+
} catch (_0x596f56) {
|
|
2186
|
+
return textResult(_0x596f56 instanceof Error ? _0x596f56[_0x529acc(_0x44318f._0x512f0)] : 'create_tasks\x20failed', !![]);
|
|
2210
2187
|
}
|
|
2211
|
-
}),
|
|
2212
|
-
'channel':
|
|
2213
|
-
'task_numbers':
|
|
2214
|
-
'subtask_numbers':
|
|
2215
|
-
'message_ids':
|
|
2216
|
-
'evidence':
|
|
2217
|
-
'create_thread':
|
|
2218
|
-
'create_task':
|
|
2219
|
-
}))[
|
|
2220
|
-
'idempotency_key':
|
|
2221
|
-
}, async
|
|
2222
|
-
const
|
|
2188
|
+
}), _0x3de2e2[_0x115b96(0x148)](_0x115b96(0x276), 'Claim\x20tasks\x20in\x20a\x20channel\x20by\x20task\x20number\x20or\x20source\x20message.\x20For\x20subtasks\x20in\x20a\x20thread,\x20use\x20subtask_numbers\x20with\x20a\x20single\x20task_numbers\x20entry.', {
|
|
2189
|
+
'channel': _0x229b66['string'](),
|
|
2190
|
+
'task_numbers': _0x229b66[_0x115b96(0x1d7)](_0x229b66[_0x115b96(_0x50a2da._0x39bc07)]())[_0x115b96(_0x50a2da._0x3c7d0d)](),
|
|
2191
|
+
'subtask_numbers': _0x229b66[_0x115b96(_0x50a2da._0x35509f)](_0x229b66['number']())[_0x115b96(_0x50a2da._0x5a0b84)](),
|
|
2192
|
+
'message_ids': _0x229b66['array'](_0x229b66[_0x115b96(0x16b)]())['optional'](),
|
|
2193
|
+
'evidence': _0x229b66[_0x115b96(0x19f)](_0x229b66[_0x115b96(_0x50a2da._0x534b3e)](), _0x229b66[_0x115b96(0x218)]({
|
|
2194
|
+
'create_thread': _0x229b66[_0x115b96(0x251)]()['optional'](),
|
|
2195
|
+
'create_task': _0x229b66['unknown']()[_0x115b96(_0x50a2da._0x5a0b84)]()
|
|
2196
|
+
}))[_0x115b96(_0x50a2da._0x3a8be7)](),
|
|
2197
|
+
'idempotency_key': _0x229b66['string']()[_0x115b96(_0x50a2da._0x421612)]()
|
|
2198
|
+
}, async _0x35d319 => {
|
|
2199
|
+
const _0x4947e6 = _0x115b96;
|
|
2223
2200
|
try {
|
|
2224
|
-
return textResult(await
|
|
2225
|
-
} catch (
|
|
2226
|
-
return textResult(
|
|
2201
|
+
return textResult(await _0x3632f9[_0x4947e6(0x276)](_0x35d319));
|
|
2202
|
+
} catch (_0x468206) {
|
|
2203
|
+
return textResult(_0x468206 instanceof Error ? _0x468206[_0x4947e6(0x23b)] : _0x4947e6(_0x358aad._0x1aa6b0), !![]);
|
|
2227
2204
|
}
|
|
2228
|
-
}),
|
|
2229
|
-
'channel':
|
|
2230
|
-
'task_number':
|
|
2231
|
-
'subtask_number':
|
|
2232
|
-
'idempotency_key':
|
|
2233
|
-
}, async
|
|
2234
|
-
const
|
|
2205
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x37ff9c)](_0x115b96(_0x50a2da._0x52a70e), _0x115b96(0x1c7), {
|
|
2206
|
+
'channel': _0x229b66['string'](),
|
|
2207
|
+
'task_number': _0x229b66[_0x115b96(_0x50a2da._0x4293f4)](),
|
|
2208
|
+
'subtask_number': _0x229b66[_0x115b96(0x1c4)]()[_0x115b96(_0x50a2da._0x5a0b84)](),
|
|
2209
|
+
'idempotency_key': _0x229b66['string']()['optional']()
|
|
2210
|
+
}, async _0x22dfaa => {
|
|
2211
|
+
const _0xde55ca = _0x115b96;
|
|
2235
2212
|
try {
|
|
2236
|
-
return textResult(await
|
|
2237
|
-
} catch (
|
|
2238
|
-
return textResult(
|
|
2213
|
+
return textResult(await _0x3632f9[_0xde55ca(0x146)](_0x22dfaa));
|
|
2214
|
+
} catch (_0x4b3d72) {
|
|
2215
|
+
return textResult(_0x4b3d72 instanceof Error ? _0x4b3d72[_0xde55ca(0x23b)] : _0xde55ca(_0x4f6a5d._0x5b2553), !![]);
|
|
2239
2216
|
}
|
|
2240
|
-
}),
|
|
2241
|
-
'channel':
|
|
2242
|
-
'task_number':
|
|
2243
|
-
'subtask_number':
|
|
2244
|
-
'status':
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2217
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x4c9c16)](_0x115b96(_0x50a2da._0x2f1171), _0x115b96(0x1e2), {
|
|
2218
|
+
'channel': _0x229b66[_0x115b96(0x16b)](),
|
|
2219
|
+
'task_number': _0x229b66[_0x115b96(_0x50a2da._0x2278c9)](),
|
|
2220
|
+
'subtask_number': _0x229b66[_0x115b96(_0x50a2da._0x56ebc2)]()[_0x115b96(_0x50a2da._0x3c7d0d)](),
|
|
2221
|
+
'status': _0x229b66[_0x115b96(0x17e)]([
|
|
2222
|
+
'todo',
|
|
2223
|
+
'in_progress',
|
|
2224
|
+
'in_review',
|
|
2225
|
+
_0x115b96(_0x50a2da._0x12cc1c)
|
|
2249
2226
|
]),
|
|
2250
|
-
'idempotency_key':
|
|
2251
|
-
}, async
|
|
2252
|
-
const
|
|
2227
|
+
'idempotency_key': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)]()[_0x115b96(_0x50a2da._0x3c7d0d)]()
|
|
2228
|
+
}, async _0x223349 => {
|
|
2229
|
+
const _0xf48969 = _0x115b96;
|
|
2253
2230
|
try {
|
|
2254
|
-
return textResult(await
|
|
2255
|
-
} catch (
|
|
2256
|
-
return textResult(
|
|
2231
|
+
return textResult(await _0x3632f9[_0xf48969(_0x1d86da._0x10397e)](_0x223349));
|
|
2232
|
+
} catch (_0x7d9296) {
|
|
2233
|
+
return textResult(_0x7d9296 instanceof Error ? _0x7d9296[_0xf48969(_0x1d86da._0x44bf2e)] : _0xf48969(0x124), !![]);
|
|
2257
2234
|
}
|
|
2258
|
-
}),
|
|
2259
|
-
'channel':
|
|
2260
|
-
'file_path':
|
|
2261
|
-
}, async
|
|
2262
|
-
const
|
|
2235
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x369b28)](_0x115b96(_0x50a2da._0x1c3fdb), _0x115b96(_0x50a2da._0x37f528), {
|
|
2236
|
+
'channel': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)](),
|
|
2237
|
+
'file_path': _0x229b66[_0x115b96(0x16b)]()
|
|
2238
|
+
}, async _0x49d260 => {
|
|
2239
|
+
const _0x5f0d0d = _0x115b96;
|
|
2263
2240
|
try {
|
|
2264
|
-
return textResult(await
|
|
2265
|
-
} catch (
|
|
2266
|
-
return textResult(
|
|
2241
|
+
return textResult(await _0x3632f9[_0x5f0d0d(0x178)](_0x49d260));
|
|
2242
|
+
} catch (_0x157b0e) {
|
|
2243
|
+
return textResult(_0x157b0e instanceof Error ? _0x157b0e['message'] : 'upload_file\x20failed', !![]);
|
|
2267
2244
|
}
|
|
2268
|
-
}),
|
|
2269
|
-
const
|
|
2245
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x4c9c16)](_0x115b96(0x25f), _0x115b96(0x1ab), { 'attachment_id': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)]() }, async _0x826b5a => {
|
|
2246
|
+
const _0x41d9ef = _0x115b96;
|
|
2270
2247
|
try {
|
|
2271
|
-
return textResult(await
|
|
2272
|
-
} catch (
|
|
2273
|
-
return textResult(
|
|
2248
|
+
return textResult(await _0x3632f9[_0x41d9ef(_0x29cd23._0x41b919)](_0x826b5a));
|
|
2249
|
+
} catch (_0xa430d7) {
|
|
2250
|
+
return textResult(_0xa430d7 instanceof Error ? _0xa430d7[_0x41d9ef(_0x29cd23._0x15efaa)] : _0x41d9ef(_0x29cd23._0x337380), !![]);
|
|
2274
2251
|
}
|
|
2275
|
-
}),
|
|
2276
|
-
const
|
|
2252
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x4c82a8)](_0x115b96(0x28e), 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)]() }, async _0x4355fb => {
|
|
2253
|
+
const _0x13cc90 = _0x115b96;
|
|
2277
2254
|
try {
|
|
2278
|
-
return textResult(await
|
|
2279
|
-
} catch (
|
|
2280
|
-
return textResult(
|
|
2255
|
+
return textResult(await _0x3632f9['get_worker_status'](_0x4355fb));
|
|
2256
|
+
} catch (_0x54d1b4) {
|
|
2257
|
+
return textResult(_0x54d1b4 instanceof Error ? _0x54d1b4['message'] : _0x13cc90(_0x3fb296._0x3b7331), !![]);
|
|
2281
2258
|
}
|
|
2282
|
-
}),
|
|
2283
|
-
const
|
|
2259
|
+
}), _0x3de2e2[_0x115b96(_0x50a2da._0x3a3c55)](_0x115b96(0x1af), 'Worker-only.\x20Park\x20the\x20current\x20worker\x20lane\x20after\x20you\x20have\x20already\x20reported\x20results\x20in\x20this\x20thread.\x20This\x20does\x20not\x20end\x20the\x20session;\x20same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.', { 'work_key': _0x229b66[_0x115b96(_0x50a2da._0xc31378)]() }, async _0x4ec8d7 => {
|
|
2260
|
+
const _0x509a66 = _0x115b96;
|
|
2284
2261
|
try {
|
|
2285
|
-
return textResult(await
|
|
2286
|
-
} catch (
|
|
2287
|
-
return textResult(
|
|
2262
|
+
return textResult(await _0x3632f9[_0x509a66(_0x36da83._0x32de99)](_0x4ec8d7));
|
|
2263
|
+
} catch (_0x23b660) {
|
|
2264
|
+
return textResult(_0x23b660 instanceof Error ? _0x23b660['message'] : _0x509a66(0x1eb), !![]);
|
|
2288
2265
|
}
|
|
2289
|
-
}),
|
|
2290
|
-
'work_key':
|
|
2291
|
-
'reason':
|
|
2292
|
-
}, async
|
|
2293
|
-
const
|
|
2266
|
+
}), _0x3de2e2[_0x115b96(0x148)]('escalate_to_main', _0x115b96(0x232), {
|
|
2267
|
+
'work_key': _0x229b66[_0x115b96(0x16b)](),
|
|
2268
|
+
'reason': _0x229b66[_0x115b96(_0x50a2da._0x534b3e)]()
|
|
2269
|
+
}, async _0x268344 => {
|
|
2270
|
+
const _0x8fd02a = _0x115b96;
|
|
2294
2271
|
try {
|
|
2295
|
-
return textResult(await
|
|
2296
|
-
} catch (
|
|
2297
|
-
return textResult(
|
|
2272
|
+
return textResult(await _0x3632f9[_0x8fd02a(0x266)](_0x268344));
|
|
2273
|
+
} catch (_0x475a93) {
|
|
2274
|
+
return textResult(_0x475a93 instanceof Error ? _0x475a93[_0x8fd02a(_0x5abfe5._0x5d160b)] : _0x8fd02a(_0x5abfe5._0x23421a), !![]);
|
|
2298
2275
|
}
|
|
2299
|
-
}),
|
|
2300
|
-
const
|
|
2276
|
+
}), _0x520287?.[_0x115b96(_0x50a2da._0x580051)] && _0x3de2e2[_0x115b96(0x148)](_0x115b96(0x279), _0x115b96(0x17f), { 'work_key': _0x229b66[_0x115b96(0x16b)]() }, async _0x1108cc => {
|
|
2277
|
+
const _0x266bfa = _0x115b96;
|
|
2301
2278
|
try {
|
|
2302
|
-
return textResult(await
|
|
2303
|
-
} catch (
|
|
2304
|
-
return textResult(
|
|
2279
|
+
return textResult(await _0x3632f9[_0x266bfa(_0x4e0216._0x1adb52)](_0x1108cc));
|
|
2280
|
+
} catch (_0x71c3c9) {
|
|
2281
|
+
return textResult(_0x71c3c9 instanceof Error ? _0x71c3c9[_0x266bfa(0x23b)] : _0x266bfa(0x2a1), !![]);
|
|
2305
2282
|
}
|
|
2306
2283
|
});
|
|
2307
2284
|
}
|
|
2308
|
-
async function createChatBridgeServer(
|
|
2309
|
-
const
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
},
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
return await registerChatBridgeTools(_0x41df74, _0x445a0f, { 'workerMode': _0x38cba5[_0x16444b(0x20d)] }), {
|
|
2317
|
-
'handlers': _0x445a0f,
|
|
2318
|
-
'server': _0x41df74
|
|
2285
|
+
async function createChatBridgeServer(_0xd70d73) {
|
|
2286
|
+
const _0x527c7b = { _0x7c8cea: 0x1df }, _0x4e2032 = _0x2cd54a, {McpServer: _0x3d814c} = await import(_0x4e2032(0x1d1)), _0x447ed0 = new _0x3d814c({
|
|
2287
|
+
'name': _0x4e2032(_0x527c7b._0x7c8cea),
|
|
2288
|
+
'version': _0x4e2032(0x139)
|
|
2289
|
+
}), _0x51ecae = createChatBridgeHandlers(_0xd70d73);
|
|
2290
|
+
return await registerChatBridgeTools(_0x447ed0, _0x51ecae, { 'workerMode': _0xd70d73['workerMode'] }), {
|
|
2291
|
+
'handlers': _0x51ecae,
|
|
2292
|
+
'server': _0x447ed0
|
|
2319
2293
|
};
|
|
2320
2294
|
}
|
|
2321
|
-
function readFlag(
|
|
2322
|
-
const
|
|
2323
|
-
if (
|
|
2295
|
+
function readFlag(_0x319d96, _0x54442d) {
|
|
2296
|
+
const _0x3f17ed = _0x319d96['indexOf'](_0x54442d);
|
|
2297
|
+
if (_0x3f17ed === -0x1)
|
|
2324
2298
|
return void 0x0;
|
|
2325
|
-
return
|
|
2299
|
+
return _0x319d96[_0x3f17ed + 0x1];
|
|
2326
2300
|
}
|
|
2327
|
-
function parseChatBridgeArgs(
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
if (!
|
|
2338
|
-
throw new Error(
|
|
2339
|
-
if (
|
|
2340
|
-
throw new Error(
|
|
2301
|
+
function parseChatBridgeArgs(_0x5010c7) {
|
|
2302
|
+
const _0x408d84 = {
|
|
2303
|
+
_0x36c073: 0x181,
|
|
2304
|
+
_0x30b838: 0x14c,
|
|
2305
|
+
_0x1e3a6b: 0x135,
|
|
2306
|
+
_0x2c6934: 0x254,
|
|
2307
|
+
_0x3c4722: 0x204,
|
|
2308
|
+
_0x2697a5: 0x1e9,
|
|
2309
|
+
_0x539358: 0x1c3
|
|
2310
|
+
}, _0x22204b = _0x2cd54a, _0x18f1e8 = readFlag(_0x5010c7, _0x22204b(0x127)), _0x1d7926 = readFlag(_0x5010c7, _0x22204b(0x21e)), _0x2dde72 = readFlag(_0x5010c7, '--initial-last-seen-seq'), _0x12a29e = readFlag(_0x5010c7, _0x22204b(_0x408d84._0x36c073)) ?? _0x22204b(_0x408d84._0x30b838), _0xa9b419 = readFlag(_0x5010c7, _0x22204b(_0x408d84._0x1e3a6b)), _0x180532 = readFlag(_0x5010c7, '--session-id'), _0x1e85ba = readFlag(_0x5010c7, _0x22204b(0x16d)), _0x3982b6 = readFlag(_0x5010c7, '--worker-session-id'), _0x466c17 = readFlag(_0x5010c7, '--worker-thread-target'), _0xa55aa0 = _0x5010c7['includes']('--worker-mode'), _0x3f601b = _0x2dde72 === void 0x0 ? void 0x0 : Number[_0x22204b(_0x408d84._0x2c6934)](_0x2dde72, 0xa);
|
|
2311
|
+
if (!_0x18f1e8)
|
|
2312
|
+
throw new Error(_0x22204b(0x1ad));
|
|
2313
|
+
if (!_0x1d7926)
|
|
2314
|
+
throw new Error(_0x22204b(_0x408d84._0x3c4722));
|
|
2315
|
+
if (_0x2dde72 !== void 0x0 && (_0x3f601b === void 0x0 || !Number[_0x22204b(_0x408d84._0x2697a5)](_0x3f601b) || _0x3f601b < 0x0))
|
|
2316
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2341
2317
|
return {
|
|
2342
|
-
'agentId':
|
|
2343
|
-
'daemonApiKey':
|
|
2344
|
-
'daemonLocalUrl':
|
|
2345
|
-
'initialLastSeenSeq':
|
|
2346
|
-
'sessionId':
|
|
2347
|
-
'serverUrl':
|
|
2348
|
-
'workerModeEnabled':
|
|
2349
|
-
'workerSessionId':
|
|
2350
|
-
'workerThreadTarget':
|
|
2351
|
-
'workerMode':
|
|
2318
|
+
'agentId': _0x18f1e8,
|
|
2319
|
+
'daemonApiKey': _0x1d7926,
|
|
2320
|
+
'daemonLocalUrl': _0xa9b419,
|
|
2321
|
+
'initialLastSeenSeq': _0x3f601b,
|
|
2322
|
+
'sessionId': _0x180532,
|
|
2323
|
+
'serverUrl': _0x12a29e,
|
|
2324
|
+
'workerModeEnabled': _0x1e85ba === void 0x0 ? void 0x0 : _0x1e85ba !== _0x22204b(_0x408d84._0x539358),
|
|
2325
|
+
'workerSessionId': _0x3982b6,
|
|
2326
|
+
'workerThreadTarget': _0x466c17,
|
|
2327
|
+
'workerMode': _0xa55aa0
|
|
2352
2328
|
};
|
|
2353
2329
|
}
|
|
2354
|
-
async function runChatBridgeCli(
|
|
2355
|
-
const
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
'
|
|
2362
|
-
'
|
|
2363
|
-
'client': _0x4bd88d,
|
|
2364
|
-
'daemonLocalUrl': _0x970ace[_0x479963(0x283)],
|
|
2330
|
+
async function runChatBridgeCli(_0x4351e2) {
|
|
2331
|
+
const _0x11cf00 = {
|
|
2332
|
+
_0x210943: 0x198,
|
|
2333
|
+
_0x3fa111: 0x1c6
|
|
2334
|
+
}, _0x524414 = _0x2cd54a, _0x5ef4ce = parseChatBridgeArgs(_0x4351e2), {StdioServerTransport: _0x541d57} = await import(_0x524414(0x236)), _0x2c26a3 = createInternalAgentClient(_0x5ef4ce), _0x209083 = createAttachmentCache(), _0x1bac58 = await createChatBridgeServer({
|
|
2335
|
+
'agentId': _0x5ef4ce[_0x524414(_0x11cf00._0x210943)],
|
|
2336
|
+
'attachmentCache': _0x209083,
|
|
2337
|
+
'client': _0x2c26a3,
|
|
2338
|
+
'daemonLocalUrl': _0x5ef4ce[_0x524414(_0x11cf00._0x3fa111)],
|
|
2365
2339
|
'uploadPreparer': prepareUploadFile,
|
|
2366
|
-
'workerModeEnabled':
|
|
2367
|
-
'workerMode':
|
|
2368
|
-
'workerThreadTarget':
|
|
2340
|
+
'workerModeEnabled': _0x5ef4ce[_0x524414(0x269)],
|
|
2341
|
+
'workerMode': _0x5ef4ce[_0x524414(0x118)],
|
|
2342
|
+
'workerThreadTarget': _0x5ef4ce['workerThreadTarget']
|
|
2369
2343
|
});
|
|
2370
|
-
await
|
|
2344
|
+
await _0x1bac58[_0x524414(0x205)]['connect'](new _0x541d57());
|
|
2371
2345
|
}
|
|
2372
|
-
var executedAsEntry = process[
|
|
2373
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2346
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x2cd54a(0x1fe)][0x1])[_0x2cd54a(0x1d8)] : ![];
|
|
2347
|
+
executedAsEntry && await runChatBridgeCli(process[_0x2cd54a(0x1fe)][_0x2cd54a(0x28f)](0x2));
|
|
2374
2348
|
export {
|
|
2375
2349
|
createChatBridgeHandlers,
|
|
2376
2350
|
createChatBridgeServer,
|