@dscord/daemon 0.1.13 → 0.1.14
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 +2048 -1951
- package/dist/index.js +7420 -7101
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,46 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
for (let _0x272e79 = 0x0, _0x220405 = _0x1aa3f5['length']; _0x272e79 < _0x220405; _0x272e79++) {
|
|
14
|
-
_0x2f9eee += '%' + ('00' + _0x1aa3f5['charCodeAt'](_0x272e79)['toString'](0x10))['slice'](-0x2);
|
|
15
|
-
}
|
|
16
|
-
return decodeURIComponent(_0x2f9eee);
|
|
17
|
-
};
|
|
18
|
-
_0xaeca['JTwscp'] = _0x23269f, _0xaeca['QgTNeu'] = {}, _0xaeca['PhxcOF'] = !![];
|
|
19
|
-
}
|
|
20
|
-
const _0x5b6d94 = _0x4879f3[0x0], _0x29c565 = _0x5cddca + _0x5b6d94, _0x34b829 = _0xaeca['QgTNeu'][_0x29c565];
|
|
21
|
-
return !_0x34b829 ? (_0xaeca36 = _0xaeca['JTwscp'](_0xaeca36), _0xaeca['QgTNeu'][_0x29c565] = _0xaeca36) : _0xaeca36 = _0x34b829, _0xaeca36;
|
|
22
|
-
}
|
|
23
|
-
(function (_0x522cfc, _0x2565c4) {
|
|
24
|
-
const _0x45cb3c = {
|
|
25
|
-
_0x14479b: 0x28e,
|
|
26
|
-
_0x1d2a74: 0x205,
|
|
27
|
-
_0x246dc9: 0x24a,
|
|
28
|
-
_0x23d28c: 0x238,
|
|
29
|
-
_0x530fb4: 0x17e,
|
|
30
|
-
_0x1a1a6e: 0x1df
|
|
31
|
-
}, _0x3f76a0 = _0xaeca, _0x2fa24a = _0x522cfc();
|
|
1
|
+
const _0x84e1c7 = _0x4ff1;
|
|
2
|
+
(function (_0x2dcc81, _0x105cfb) {
|
|
3
|
+
const _0x3ae9db = {
|
|
4
|
+
_0x16e0aa: 0x1a7,
|
|
5
|
+
_0x4430bd: 0x258,
|
|
6
|
+
_0x17a94f: 0x280,
|
|
7
|
+
_0x4d798b: 0x1f3,
|
|
8
|
+
_0x182b36: 0x17f,
|
|
9
|
+
_0x3e8400: 0x215,
|
|
10
|
+
_0x791ced: 0x209,
|
|
11
|
+
_0x2e84c0: 0x29d
|
|
12
|
+
}, _0x419bb8 = _0x4ff1, _0x12d01b = _0x2dcc81();
|
|
32
13
|
while (!![]) {
|
|
33
14
|
try {
|
|
34
|
-
const
|
|
35
|
-
if (
|
|
15
|
+
const _0x2f781a = -parseInt(_0x419bb8(_0x3ae9db._0x16e0aa)) / 0x1 + parseInt(_0x419bb8(_0x3ae9db._0x4430bd)) / 0x2 * (-parseInt(_0x419bb8(0x196)) / 0x3) + -parseInt(_0x419bb8(_0x3ae9db._0x17a94f)) / 0x4 + parseInt(_0x419bb8(0x20e)) / 0x5 + parseInt(_0x419bb8(0x204)) / 0x6 * (parseInt(_0x419bb8(_0x3ae9db._0x4d798b)) / 0x7) + parseInt(_0x419bb8(_0x3ae9db._0x182b36)) / 0x8 * (-parseInt(_0x419bb8(_0x3ae9db._0x3e8400)) / 0x9) + -parseInt(_0x419bb8(_0x3ae9db._0x791ced)) / 0xa * (-parseInt(_0x419bb8(_0x3ae9db._0x2e84c0)) / 0xb);
|
|
16
|
+
if (_0x2f781a === _0x105cfb)
|
|
36
17
|
break;
|
|
37
18
|
else
|
|
38
|
-
|
|
39
|
-
} catch (
|
|
40
|
-
|
|
19
|
+
_0x12d01b['push'](_0x12d01b['shift']());
|
|
20
|
+
} catch (_0x3581c2) {
|
|
21
|
+
_0x12d01b['push'](_0x12d01b['shift']());
|
|
41
22
|
}
|
|
42
23
|
}
|
|
43
|
-
}(
|
|
24
|
+
}(_0x1f56, 0x1e44e));
|
|
44
25
|
import { pathToFileURL } from 'node:url';
|
|
45
26
|
import {
|
|
46
27
|
mkdir,
|
|
@@ -50,74 +31,104 @@ import {
|
|
|
50
31
|
writeFile
|
|
51
32
|
} from 'node:fs/promises';
|
|
52
33
|
import { homedir } from 'node:os';
|
|
53
|
-
|
|
34
|
+
function _0x4ff1(_0x4eb3d1, _0x2ef167) {
|
|
35
|
+
_0x4eb3d1 = _0x4eb3d1 - 0x160;
|
|
36
|
+
const _0x1f56f0 = _0x1f56();
|
|
37
|
+
let _0x4ff1bb = _0x1f56f0[_0x4eb3d1];
|
|
38
|
+
if (_0x4ff1['LkDULG'] === undefined) {
|
|
39
|
+
var _0x1167af = function (_0x46da1d) {
|
|
40
|
+
const _0x88b883 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
41
|
+
let _0x3b0e99 = '', _0x86124 = '';
|
|
42
|
+
for (let _0x244daf = 0x0, _0x188019, _0x297b3a, _0x3cf68d = 0x0; _0x297b3a = _0x46da1d['charAt'](_0x3cf68d++); ~_0x297b3a && (_0x188019 = _0x244daf % 0x4 ? _0x188019 * 0x40 + _0x297b3a : _0x297b3a, _0x244daf++ % 0x4) ? _0x3b0e99 += String['fromCharCode'](0xff & _0x188019 >> (-0x2 * _0x244daf & 0x6)) : 0x0) {
|
|
43
|
+
_0x297b3a = _0x88b883['indexOf'](_0x297b3a);
|
|
44
|
+
}
|
|
45
|
+
for (let _0x4e26d7 = 0x0, _0x4a2547 = _0x3b0e99['length']; _0x4e26d7 < _0x4a2547; _0x4e26d7++) {
|
|
46
|
+
_0x86124 += '%' + ('00' + _0x3b0e99['charCodeAt'](_0x4e26d7)['toString'](0x10))['slice'](-0x2);
|
|
47
|
+
}
|
|
48
|
+
return decodeURIComponent(_0x86124);
|
|
49
|
+
};
|
|
50
|
+
_0x4ff1['BPhiqJ'] = _0x1167af, _0x4ff1['MEmfio'] = {}, _0x4ff1['LkDULG'] = !![];
|
|
51
|
+
}
|
|
52
|
+
const _0x552b17 = _0x1f56f0[0x0], _0x47bc00 = _0x4eb3d1 + _0x552b17, _0x2cfd4e = _0x4ff1['MEmfio'][_0x47bc00];
|
|
53
|
+
return !_0x2cfd4e ? (_0x4ff1bb = _0x4ff1['BPhiqJ'](_0x4ff1bb), _0x4ff1['MEmfio'][_0x47bc00] = _0x4ff1bb) : _0x4ff1bb = _0x2cfd4e, _0x4ff1bb;
|
|
54
|
+
}
|
|
55
|
+
import _0x3b0e99 from 'node:path';
|
|
54
56
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
55
|
-
'.csv':
|
|
56
|
-
'.gif':
|
|
57
|
-
'.jpeg':
|
|
58
|
-
'.jpg':
|
|
59
|
-
'.json':
|
|
60
|
-
'.md':
|
|
61
|
-
'.pdf':
|
|
62
|
-
'.png':
|
|
63
|
-
'.svg':
|
|
64
|
-
'.txt':
|
|
65
|
-
'.webp':
|
|
66
|
-
'.xml':
|
|
67
|
-
'.zip':
|
|
57
|
+
'.csv': 'text/csv',
|
|
58
|
+
'.gif': _0x84e1c7(0x1ad),
|
|
59
|
+
'.jpeg': _0x84e1c7(0x1bf),
|
|
60
|
+
'.jpg': 'image/jpeg',
|
|
61
|
+
'.json': 'application/json',
|
|
62
|
+
'.md': 'text/markdown',
|
|
63
|
+
'.pdf': _0x84e1c7(0x26a),
|
|
64
|
+
'.png': 'image/png',
|
|
65
|
+
'.svg': _0x84e1c7(0x237),
|
|
66
|
+
'.txt': _0x84e1c7(0x223),
|
|
67
|
+
'.webp': 'image/webp',
|
|
68
|
+
'.xml': _0x84e1c7(0x205),
|
|
69
|
+
'.zip': _0x84e1c7(0x26c)
|
|
68
70
|
};
|
|
69
|
-
function guessContentType(
|
|
70
|
-
const
|
|
71
|
-
|
|
71
|
+
function guessContentType(_0x86124) {
|
|
72
|
+
const _0x31712a = {
|
|
73
|
+
_0x11ffcf: 0x29a,
|
|
74
|
+
_0x1c6dab: 0x1b8,
|
|
75
|
+
_0x4aa37b: 0x208
|
|
76
|
+
}, _0x3ae492 = _0x84e1c7;
|
|
77
|
+
return MIME_BY_EXTENSION[_0x3b0e99[_0x3ae492(_0x31712a._0x11ffcf)](_0x86124)[_0x3ae492(_0x31712a._0x1c6dab)]()] ?? _0x3ae492(_0x31712a._0x4aa37b);
|
|
72
78
|
}
|
|
73
|
-
function safeFilename(
|
|
74
|
-
const
|
|
75
|
-
return
|
|
79
|
+
function safeFilename(_0x244daf) {
|
|
80
|
+
const _0x18dbb7 = _0x84e1c7;
|
|
81
|
+
return _0x244daf[_0x18dbb7(0x1d3)](/[\\/]/g, '-');
|
|
76
82
|
}
|
|
77
|
-
function extensionFor(
|
|
78
|
-
const
|
|
79
|
-
|
|
83
|
+
function extensionFor(_0x188019) {
|
|
84
|
+
const _0x34982d = {
|
|
85
|
+
_0x5e93f2: 0x2da,
|
|
86
|
+
_0xdc81a1: 0x266
|
|
87
|
+
}, _0x5c7fb0 = _0x84e1c7, _0x297b3a = Object[_0x5c7fb0(0x2df)](MIME_BY_EXTENSION)[_0x5c7fb0(_0x34982d._0x5e93f2)](([, _0x3cf68d]) => _0x3cf68d === _0x188019);
|
|
88
|
+
return _0x297b3a?.[0x0] ?? _0x5c7fb0(_0x34982d._0xdc81a1);
|
|
80
89
|
}
|
|
81
|
-
async function prepareUploadFile(
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if (!
|
|
91
|
-
throw new Error(
|
|
92
|
-
const
|
|
93
|
-
if (
|
|
94
|
-
throw new Error(
|
|
95
|
-
const
|
|
96
|
-
if (_0x5389a0[_0x2428db(_0x2e2024._0x1e22a9)] > _0x79d0)
|
|
97
|
-
throw new Error(_0x2428db(0x242) + _0x5389a0[_0x2428db(0x22a)]);
|
|
98
|
-
const _0x4ab644 = await readFile(_0x272e79), _0x1152a7 = _0x1aa3f5[_0x2428db(0x19b)](_0x272e79);
|
|
90
|
+
async function prepareUploadFile(_0x4e26d7, _0x4a2547 = {}) {
|
|
91
|
+
const _0x42e6e9 = {
|
|
92
|
+
_0x3c744c: 0x1e1,
|
|
93
|
+
_0x2cd323: 0x286,
|
|
94
|
+
_0xcb6d08: 0x2e5
|
|
95
|
+
}, _0x219575 = _0x84e1c7;
|
|
96
|
+
if (!_0x3b0e99[_0x219575(0x1d7)](_0x4e26d7))
|
|
97
|
+
throw new Error(_0x219575(0x2e0));
|
|
98
|
+
const _0x12d631 = await stat(_0x4e26d7)[_0x219575(_0x42e6e9._0x3c744c)](() => null);
|
|
99
|
+
if (!_0x12d631 || !_0x12d631['isFile']())
|
|
100
|
+
throw new Error(_0x219575(_0x42e6e9._0x2cd323) + _0x4e26d7);
|
|
101
|
+
const _0x58a5f0 = _0x4a2547['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
102
|
+
if (_0x12d631[_0x219575(_0x42e6e9._0xcb6d08)] > _0x58a5f0)
|
|
103
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x12d631['size']);
|
|
104
|
+
const _0x44f8be = await readFile(_0x4e26d7), _0x1fc4d9 = _0x3b0e99['basename'](_0x4e26d7);
|
|
99
105
|
return {
|
|
100
|
-
'contentBase64':
|
|
101
|
-
'contentType': guessContentType(
|
|
102
|
-
'filename':
|
|
103
|
-
'sizeBytes':
|
|
106
|
+
'contentBase64': _0x44f8be['toString']('base64'),
|
|
107
|
+
'contentType': guessContentType(_0x1fc4d9),
|
|
108
|
+
'filename': _0x1fc4d9,
|
|
109
|
+
'sizeBytes': _0x12d631[_0x219575(0x2e5)]
|
|
104
110
|
};
|
|
105
111
|
}
|
|
106
|
-
function createAttachmentCache(
|
|
107
|
-
const
|
|
112
|
+
function createAttachmentCache(_0x465a97 = {}) {
|
|
113
|
+
const _0x3ef64f = { _0x2b74fe: 0x295 }, _0x99ca03 = {
|
|
114
|
+
_0x2c0b2b: 0x1d5,
|
|
115
|
+
_0x22bf1a: 0x16e,
|
|
116
|
+
_0x5ceb9: 0x295,
|
|
117
|
+
_0x3513fc: 0x239
|
|
118
|
+
}, _0xa1135c = _0x84e1c7, _0x3827d9 = _0x465a97['cacheDir'] ?? _0x3b0e99[_0xa1135c(_0x3ef64f._0x2b74fe)](homedir(), '.slock', 'attachments');
|
|
108
119
|
return {
|
|
109
|
-
'cacheDir':
|
|
110
|
-
async 'findCachedPath'(
|
|
111
|
-
const
|
|
112
|
-
await mkdir(
|
|
113
|
-
const
|
|
114
|
-
return
|
|
120
|
+
'cacheDir': _0x3827d9,
|
|
121
|
+
async 'findCachedPath'(_0x57f5fe) {
|
|
122
|
+
const _0x488b53 = _0xa1135c;
|
|
123
|
+
await mkdir(_0x3827d9, { 'recursive': !![] });
|
|
124
|
+
const _0x2f0772 = await readdir(_0x3827d9), _0x4e7f25 = _0x2f0772['find'](_0x2d9c6b => _0x2d9c6b[_0x488b53(0x269)](_0x57f5fe + '-') || _0x2d9c6b['startsWith'](_0x57f5fe));
|
|
125
|
+
return _0x4e7f25 ? _0x3b0e99[_0x488b53(0x295)](_0x3827d9, _0x4e7f25) : null;
|
|
115
126
|
},
|
|
116
|
-
async 'save'(
|
|
117
|
-
const
|
|
118
|
-
await mkdir(
|
|
119
|
-
const
|
|
120
|
-
return await writeFile(
|
|
127
|
+
async 'save'(_0x151b99) {
|
|
128
|
+
const _0x51c653 = _0xa1135c;
|
|
129
|
+
await mkdir(_0x3827d9, { 'recursive': !![] });
|
|
130
|
+
const _0x394766 = _0x151b99[_0x51c653(0x16e)]?.[_0x51c653(_0x99ca03._0x2c0b2b)]() ? safeFilename(_0x151b99[_0x51c653(_0x99ca03._0x22bf1a)]) : '' + _0x151b99['attachmentId'] + extensionFor(_0x151b99[_0x51c653(0x191)]), _0x7d4732 = _0x3b0e99[_0x51c653(_0x99ca03._0x5ceb9)](_0x3827d9, _0x151b99[_0x51c653(_0x99ca03._0x3513fc)] + '-' + _0x394766);
|
|
131
|
+
return await writeFile(_0x7d4732, _0x151b99[_0x51c653(0x297)]), _0x7d4732;
|
|
121
132
|
}
|
|
122
133
|
};
|
|
123
134
|
}
|
|
@@ -125,2072 +136,2158 @@ import {
|
|
|
125
136
|
createHash,
|
|
126
137
|
randomUUID
|
|
127
138
|
} from 'node:crypto';
|
|
128
|
-
var UNSUPPORTED_TARGET_MESSAGE =
|
|
129
|
-
function ensureSegment(
|
|
130
|
-
const
|
|
131
|
-
if (!
|
|
139
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x84e1c7(0x2c4);
|
|
140
|
+
function ensureSegment(_0x241881) {
|
|
141
|
+
const _0x46b348 = _0x84e1c7, _0x5a1672 = _0x241881['trim']();
|
|
142
|
+
if (!_0x5a1672 || _0x5a1672[_0x46b348(0x275)](':'))
|
|
132
143
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
133
|
-
return
|
|
144
|
+
return _0x5a1672;
|
|
134
145
|
}
|
|
135
|
-
function parseThreadParts(
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
_0xe75f97: 0x1e3
|
|
139
|
-
}, _0x3cb8af = _0x4ab0ed, _0x3fedfb = _0x12aacb[_0x3cb8af(0x1ca)](':');
|
|
140
|
-
if (_0x3fedfb[_0x3cb8af(_0x136c20._0x57e6bf)] < 0x1 || _0x3fedfb[_0x3cb8af(_0x136c20._0xe75f97)] > 0x2)
|
|
146
|
+
function parseThreadParts(_0x4912c6) {
|
|
147
|
+
const _0xa55c98 = { _0x2ed99c: 0x17e }, _0x3d359d = _0x84e1c7, _0x1e7f11 = _0x4912c6[_0x3d359d(_0xa55c98._0x2ed99c)](':');
|
|
148
|
+
if (_0x1e7f11['length'] < 0x1 || _0x1e7f11[_0x3d359d(0x216)] > 0x2)
|
|
141
149
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
142
150
|
return {
|
|
143
|
-
'channelName': ensureSegment(
|
|
144
|
-
'threadShortId':
|
|
151
|
+
'channelName': ensureSegment(_0x1e7f11[0x0] ?? ''),
|
|
152
|
+
'threadShortId': _0x1e7f11[0x1] ? ensureSegment(_0x1e7f11[0x1]) : null
|
|
145
153
|
};
|
|
146
154
|
}
|
|
147
|
-
function parseTarget(
|
|
148
|
-
const
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
function parseTarget(_0x556677) {
|
|
156
|
+
const _0x584af4 = {
|
|
157
|
+
_0x5e5e21: 0x269,
|
|
158
|
+
_0x8fb44a: 0x16b,
|
|
159
|
+
_0x4e3afb: 0x198,
|
|
160
|
+
_0x23d65a: 0x219,
|
|
161
|
+
_0x5e964e: 0x16b,
|
|
162
|
+
_0x544bae: 0x270,
|
|
163
|
+
_0x46283b: 0x219,
|
|
164
|
+
_0x2d19c6: 0x198,
|
|
165
|
+
_0x29e789: 0x2b8,
|
|
166
|
+
_0x396c04: 0x219,
|
|
167
|
+
_0x196cb1: 0x198
|
|
168
|
+
}, _0x292109 = _0x84e1c7, _0x567457 = _0x556677['trim']();
|
|
169
|
+
if (!_0x567457)
|
|
159
170
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
160
|
-
if (
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
171
|
+
if (_0x567457[_0x292109(_0x584af4._0x5e5e21)]('#')) {
|
|
172
|
+
const _0x4017a2 = parseThreadParts(_0x567457[_0x292109(_0x584af4._0x8fb44a)](0x1)), _0x96f26f = '#' + _0x4017a2['channelName'];
|
|
173
|
+
if (!_0x4017a2[_0x292109(_0x584af4._0x4e3afb)])
|
|
163
174
|
return {
|
|
164
|
-
'channelName':
|
|
165
|
-
'channelTarget':
|
|
175
|
+
'channelName': _0x4017a2[_0x292109(0x219)],
|
|
176
|
+
'channelTarget': _0x96f26f,
|
|
166
177
|
'kind': 'channel',
|
|
167
|
-
'target':
|
|
178
|
+
'target': _0x96f26f
|
|
168
179
|
};
|
|
169
180
|
return {
|
|
170
|
-
'channelName':
|
|
171
|
-
'channelTarget':
|
|
172
|
-
'kind':
|
|
173
|
-
'target':
|
|
174
|
-
'threadShortId':
|
|
181
|
+
'channelName': _0x4017a2[_0x292109(_0x584af4._0x23d65a)],
|
|
182
|
+
'channelTarget': _0x96f26f,
|
|
183
|
+
'kind': _0x292109(0x255),
|
|
184
|
+
'target': _0x96f26f + ':' + _0x4017a2['threadShortId'],
|
|
185
|
+
'threadShortId': _0x4017a2[_0x292109(0x198)]
|
|
175
186
|
};
|
|
176
187
|
}
|
|
177
|
-
if (
|
|
178
|
-
const
|
|
179
|
-
if (!
|
|
188
|
+
if (_0x567457[_0x292109(0x269)](_0x292109(0x270))) {
|
|
189
|
+
const _0x476136 = parseThreadParts(_0x567457[_0x292109(_0x584af4._0x5e964e)](0x3));
|
|
190
|
+
if (!_0x476136[_0x292109(0x219)][_0x292109(_0x584af4._0x5e5e21)](_0x292109(0x2d7)))
|
|
180
191
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
181
|
-
const
|
|
182
|
-
if (!
|
|
192
|
+
const _0x42d0c2 = _0x292109(_0x584af4._0x544bae) + _0x476136[_0x292109(_0x584af4._0x46283b)];
|
|
193
|
+
if (!_0x476136[_0x292109(_0x584af4._0x2d19c6)])
|
|
183
194
|
return {
|
|
184
|
-
'channelName':
|
|
185
|
-
'channelTarget':
|
|
186
|
-
'kind':
|
|
187
|
-
'target':
|
|
195
|
+
'channelName': _0x476136[_0x292109(_0x584af4._0x23d65a)],
|
|
196
|
+
'channelTarget': _0x42d0c2,
|
|
197
|
+
'kind': _0x292109(_0x584af4._0x29e789),
|
|
198
|
+
'target': _0x42d0c2
|
|
188
199
|
};
|
|
189
200
|
return {
|
|
190
|
-
'channelName':
|
|
191
|
-
'channelTarget':
|
|
192
|
-
'kind':
|
|
193
|
-
'target':
|
|
194
|
-
'threadShortId':
|
|
201
|
+
'channelName': _0x476136[_0x292109(_0x584af4._0x396c04)],
|
|
202
|
+
'channelTarget': _0x42d0c2,
|
|
203
|
+
'kind': _0x292109(0x255),
|
|
204
|
+
'target': _0x42d0c2 + ':' + _0x476136[_0x292109(_0x584af4._0x196cb1)],
|
|
205
|
+
'threadShortId': _0x476136[_0x292109(0x198)]
|
|
195
206
|
};
|
|
196
207
|
}
|
|
197
208
|
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
198
209
|
}
|
|
199
|
-
function asErrorMessage(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
function asRecord(_0x2623d7) {
|
|
205
|
-
const _0x4e769e = _0x4ab0ed;
|
|
206
|
-
return typeof _0x2623d7 === _0x4e769e(0x16f) && _0x2623d7 !== null ? _0x2623d7 : {};
|
|
207
|
-
}
|
|
208
|
-
function stableStringify(_0xaecf8a) {
|
|
209
|
-
const _0x31e2e4 = {
|
|
210
|
-
_0x2c617f: 0x2a5,
|
|
211
|
-
_0x575c12: 0x1ba,
|
|
212
|
-
_0x36151d: 0x1d9,
|
|
213
|
-
_0x7dbd31: 0x1cd,
|
|
214
|
-
_0xca35e6: 0x243
|
|
215
|
-
}, _0x5098aa = _0x4ab0ed;
|
|
216
|
-
if (_0xaecf8a === null || typeof _0xaecf8a !== _0x5098aa(0x16f))
|
|
217
|
-
return JSON[_0x5098aa(0x203)](_0xaecf8a);
|
|
218
|
-
if (Array[_0x5098aa(0x290)](_0xaecf8a))
|
|
219
|
-
return '[' + _0xaecf8a['map'](_0x19906c => stableStringify(_0x19906c))[_0x5098aa(_0x31e2e4._0x2c617f)](',') + ']';
|
|
220
|
-
const _0x4dc4da = Object[_0x5098aa(_0x31e2e4._0x575c12)](_0xaecf8a)[_0x5098aa(_0x31e2e4._0x36151d)](([, _0x55290a]) => _0x55290a !== void 0x0)[_0x5098aa(_0x31e2e4._0x7dbd31)](([_0x1353dc], [_0x5c0619]) => _0x1353dc[_0x5098aa(0x1db)](_0x5c0619))[_0x5098aa(_0x31e2e4._0xca35e6)](([_0x1f18d9, _0x5cd1f3]) => JSON[_0x5098aa(0x203)](_0x1f18d9) + ':' + stableStringify(_0x5cd1f3));
|
|
221
|
-
return '{' + _0x4dc4da['join'](',') + '}';
|
|
222
|
-
}
|
|
223
|
-
function createHeaders(_0x263213) {
|
|
224
|
-
return {
|
|
225
|
-
'Content-Type': 'application/json',
|
|
226
|
-
'x-daemon-api-key': _0x263213
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
function toHttpBaseUrl(_0x5ae23a) {
|
|
230
|
-
const _0x1ab542 = {
|
|
231
|
-
_0x89b192: 0x25f,
|
|
232
|
-
_0x97f5d: 0x1b3,
|
|
233
|
-
_0x383b4b: 0x1e0,
|
|
234
|
-
_0x143239: 0x25f,
|
|
235
|
-
_0x4e5965: 0x28b
|
|
236
|
-
}, _0x376e4d = _0x4ab0ed, _0x2b27c2 = new URL(_0x5ae23a);
|
|
237
|
-
if (_0x2b27c2[_0x376e4d(_0x1ab542._0x89b192)] === _0x376e4d(0x167))
|
|
238
|
-
_0x2b27c2[_0x376e4d(0x25f)] = _0x376e4d(_0x1ab542._0x97f5d);
|
|
239
|
-
else
|
|
240
|
-
_0x2b27c2[_0x376e4d(0x25f)] === _0x376e4d(_0x1ab542._0x383b4b) && (_0x2b27c2[_0x376e4d(_0x1ab542._0x143239)] = _0x376e4d(_0x1ab542._0x4e5965));
|
|
241
|
-
return _0x2b27c2[_0x376e4d(0x173)]()['replace'](/\/$/, '');
|
|
242
|
-
}
|
|
243
|
-
function isMentionBoundary(_0x27a71c) {
|
|
244
|
-
return !_0x27a71c || /\s|[([{'",。!?、:;]/['test'](_0x27a71c);
|
|
245
|
-
}
|
|
246
|
-
function isMentionTerminal(_0x1e264d) {
|
|
247
|
-
return !_0x1e264d || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x1e264d);
|
|
248
|
-
}
|
|
249
|
-
function buildMatchableEntries(_0x382f12) {
|
|
250
|
-
const _0x22320c = {
|
|
251
|
-
_0x2df15c: 0x228,
|
|
252
|
-
_0x2e8d4f: 0x209,
|
|
253
|
-
_0x165643: 0x24b
|
|
254
|
-
}, _0x52d2b6 = _0x4ab0ed, _0x53df42 = [];
|
|
255
|
-
for (const _0x3b9a04 of [
|
|
256
|
-
..._0x382f12['agents'],
|
|
257
|
-
..._0x382f12['humans']
|
|
258
|
-
]) {
|
|
259
|
-
_0x53df42['push']({
|
|
260
|
-
'matchName': _0x3b9a04[_0x52d2b6(0x228)],
|
|
261
|
-
'matchNameLower': _0x3b9a04[_0x52d2b6(_0x22320c._0x2df15c)][_0x52d2b6(0x24b)](),
|
|
262
|
-
'participantId': _0x3b9a04['id']
|
|
263
|
-
}), _0x3b9a04['id'] !== _0x3b9a04[_0x52d2b6(0x228)] && _0x53df42[_0x52d2b6(_0x22320c._0x2e8d4f)]({
|
|
264
|
-
'matchName': _0x3b9a04['id'],
|
|
265
|
-
'matchNameLower': _0x3b9a04['id'][_0x52d2b6(_0x22320c._0x165643)](),
|
|
266
|
-
'participantId': _0x3b9a04['id']
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
return _0x53df42;
|
|
270
|
-
}
|
|
271
|
-
function extractMentionedParticipantIds(_0x59528d, _0x579bca) {
|
|
272
|
-
const _0x586792 = {
|
|
273
|
-
_0x3709a2: 0x1e3,
|
|
274
|
-
_0x211698: 0x297,
|
|
275
|
-
_0x345afe: 0x1a6,
|
|
276
|
-
_0xbcf5a9: 0x209
|
|
277
|
-
}, _0x11335b = { _0x14db98: 0x1e3 }, _0x4a46ee = _0x4ab0ed, _0x3dd6d1 = buildMatchableEntries(_0x579bca)[_0x4a46ee(0x1cd)]((_0x4fa280, _0x1be579) => _0x1be579[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)] - _0x4fa280[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)]), _0x20c3bb = [], _0x1e047f = new Set();
|
|
278
|
-
for (let _0x19ada9 = 0x0; _0x19ada9 < _0x59528d[_0x4a46ee(_0x586792._0x3709a2)]; _0x19ada9 += 0x1) {
|
|
279
|
-
if (_0x59528d[_0x19ada9] !== '@' || !isMentionBoundary(_0x59528d[_0x19ada9 - 0x1]))
|
|
280
|
-
continue;
|
|
281
|
-
const _0x525869 = _0x59528d[_0x4a46ee(0x27a)](_0x19ada9 + 0x1), _0x121649 = _0x525869[_0x4a46ee(0x24b)](), _0x2da6e9 = _0x3dd6d1[_0x4a46ee(0x21e)](_0x2eab04 => {
|
|
282
|
-
const _0x1efa5f = _0x4a46ee;
|
|
283
|
-
if (!_0x121649[_0x1efa5f(0x2af)](_0x2eab04['matchNameLower']))
|
|
284
|
-
return ![];
|
|
285
|
-
return isMentionTerminal(_0x525869[_0x2eab04[_0x1efa5f(0x19f)][_0x1efa5f(_0x11335b._0x14db98)]]);
|
|
286
|
-
});
|
|
287
|
-
if (!_0x2da6e9 || _0x1e047f[_0x4a46ee(_0x586792._0x211698)](_0x2da6e9[_0x4a46ee(_0x586792._0x345afe)]))
|
|
288
|
-
continue;
|
|
289
|
-
_0x1e047f[_0x4a46ee(0x2b9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x20c3bb[_0x4a46ee(_0x586792._0xbcf5a9)](_0x2da6e9[_0x4a46ee(0x1a6)]), _0x19ada9 += _0x2da6e9[_0x4a46ee(0x19f)][_0x4a46ee(0x1e3)];
|
|
290
|
-
}
|
|
291
|
-
return _0x20c3bb;
|
|
292
|
-
}
|
|
293
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
294
|
-
function anySignal(..._0x1c42ea) {
|
|
295
|
-
const _0x2abd7c = {
|
|
296
|
-
_0x1a8c7d: 0x206,
|
|
297
|
-
_0x4b4179: 0x1d6
|
|
298
|
-
}, _0x2eaa42 = _0x4ab0ed, _0x2d5c86 = new AbortController();
|
|
299
|
-
for (const _0x3a4cae of _0x1c42ea) {
|
|
300
|
-
if (_0x3a4cae[_0x2eaa42(0x1ff)])
|
|
301
|
-
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x1a8c7d)](_0x3a4cae['reason']), _0x2d5c86['signal'];
|
|
302
|
-
_0x3a4cae['addEventListener'](_0x2eaa42(0x206), () => _0x2d5c86['abort'](_0x3a4cae['reason']), {
|
|
303
|
-
'once': !![],
|
|
304
|
-
'signal': _0x2d5c86['signal']
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
return _0x2d5c86[_0x2eaa42(_0x2abd7c._0x4b4179)];
|
|
308
|
-
}
|
|
309
|
-
function createInternalAgentClient(_0x58f74a) {
|
|
310
|
-
const _0x4fe2f7 = {
|
|
311
|
-
_0x50385c: 0x1a2,
|
|
312
|
-
_0x24ceb0: 0x16d,
|
|
313
|
-
_0x84e7a5: 0x17c
|
|
314
|
-
}, _0x1c7d90 = {
|
|
315
|
-
_0x22a04d: 0x179,
|
|
316
|
-
_0x1e5c31: 0x1ce,
|
|
317
|
-
_0xda23c1: 0x187,
|
|
318
|
-
_0x381049: 0x229,
|
|
319
|
-
_0x2baff7: 0x1a3,
|
|
320
|
-
_0x38afca: 0x294,
|
|
321
|
-
_0x4b0698: 0x1ac,
|
|
322
|
-
_0x302280: 0x291,
|
|
323
|
-
_0x5c3133: 0x1bc,
|
|
324
|
-
_0x4d8357: 0x16d,
|
|
325
|
-
_0x2405e4: 0x1bc,
|
|
326
|
-
_0x3e062a: 0x293,
|
|
327
|
-
_0x194972: 0x293,
|
|
328
|
-
_0x30404c: 0x212,
|
|
329
|
-
_0x29f60b: 0x1fa,
|
|
330
|
-
_0x36b08c: 0x234,
|
|
331
|
-
_0x2b8279: 0x1e3,
|
|
332
|
-
_0x3aeab6: 0x243,
|
|
333
|
-
_0x1228f7: 0x15a,
|
|
334
|
-
_0x1178cd: 0x2b5,
|
|
335
|
-
_0x47cf60: 0x25e,
|
|
336
|
-
_0x42151a: 0x160,
|
|
337
|
-
_0x79ddba: 0x268,
|
|
338
|
-
_0x27649e: 0x1fd
|
|
339
|
-
}, _0x1a7f0b = {
|
|
340
|
-
_0x44b3f4: 0x1a4,
|
|
341
|
-
_0x309fbc: 0x286,
|
|
342
|
-
_0x581fa6: 0x294,
|
|
343
|
-
_0x2621aa: 0x2b7,
|
|
344
|
-
_0x26de95: 0x1ac
|
|
345
|
-
}, _0x55ce3c = {
|
|
346
|
-
_0x5e5b35: 0x1d6,
|
|
347
|
-
_0x589e3a: 0x23c,
|
|
348
|
-
_0x20f358: 0x165,
|
|
349
|
-
_0x4f6993: 0x15d
|
|
350
|
-
}, _0x275824 = {
|
|
351
|
-
_0x3ef129: 0x1a4,
|
|
352
|
-
_0x1df1af: 0x2c0,
|
|
353
|
-
_0x2f970d: 0x25c,
|
|
354
|
-
_0x23e6eb: 0x227
|
|
355
|
-
}, _0x5164c6 = {
|
|
356
|
-
_0x2eb1fc: 0x179,
|
|
357
|
-
_0x11c292: 0x1ce,
|
|
358
|
-
_0x2cf270: 0x203,
|
|
359
|
-
_0xadb360: 0x272
|
|
360
|
-
}, _0x1d729d = { _0x3324c1: 0x2a0 }, _0x4bf035 = {
|
|
361
|
-
_0x207b60: 0x1b6,
|
|
362
|
-
_0x3eb81e: 0x203,
|
|
363
|
-
_0x1fc250: 0x2a0
|
|
364
|
-
}, _0x203839 = {
|
|
365
|
-
_0x5d1bf4: 0x203,
|
|
366
|
-
_0x1085bd: 0x253,
|
|
367
|
-
_0x4030c2: 0x2a0
|
|
368
|
-
}, _0x26df12 = {
|
|
369
|
-
_0x5969db: 0x1c0,
|
|
370
|
-
_0x2c0a25: 0x21d,
|
|
371
|
-
_0x24059a: 0x1c0
|
|
372
|
-
}, _0x22f4c4 = {
|
|
373
|
-
_0x9a4e10: 0x16b,
|
|
374
|
-
_0x95b5bc: 0x263,
|
|
375
|
-
_0x505049: 0x259,
|
|
376
|
-
_0x2bf9c6: 0x1c0
|
|
377
|
-
}, _0x726f5f = {
|
|
378
|
-
_0x5b58cc: 0x183,
|
|
379
|
-
_0x4ed5d8: 0x225,
|
|
380
|
-
_0x402775: 0x2a0
|
|
381
|
-
}, _0x428f84 = {
|
|
382
|
-
_0x4913e7: 0x1b4,
|
|
383
|
-
_0x527c61: 0x181
|
|
384
|
-
}, _0x18e6db = {
|
|
385
|
-
_0x2f0ea2: 0x289,
|
|
386
|
-
_0x207485: 0x229
|
|
387
|
-
}, _0x58f306 = {
|
|
388
|
-
_0x287272: 0x2ae,
|
|
389
|
-
_0x3bdb3c: 0x2b5,
|
|
390
|
-
_0x46d39c: 0x285,
|
|
391
|
-
_0x18c597: 0x179,
|
|
392
|
-
_0x2b8fec: 0x203,
|
|
393
|
-
_0x1a2d90: 0x2b5,
|
|
394
|
-
_0x49f776: 0x1e3,
|
|
395
|
-
_0x59c457: 0x2a0
|
|
396
|
-
}, _0x4f85a3 = {
|
|
397
|
-
_0x451429: 0x21d,
|
|
398
|
-
_0x408cef: 0x1ac,
|
|
399
|
-
_0x122b1a: 0x294,
|
|
400
|
-
_0x38ad31: 0x21d,
|
|
401
|
-
_0xf7a33b: 0x20b,
|
|
402
|
-
_0x56c9e6: 0x1fb,
|
|
403
|
-
_0x5e62be: 0x173,
|
|
404
|
-
_0x139529: 0x20a,
|
|
405
|
-
_0x46971e: 0x243,
|
|
406
|
-
_0x219071: 0x1d2,
|
|
407
|
-
_0x3ba3ea: 0x1d2
|
|
408
|
-
}, _0x362512 = { _0x545348: 0x197 }, _0x35bba9 = {
|
|
409
|
-
_0x18be69: 0x18d,
|
|
410
|
-
_0x189b8f: 0x293,
|
|
411
|
-
_0x7e6ebc: 0x1ac,
|
|
412
|
-
_0x260b5e: 0x2af
|
|
413
|
-
}, _0x136866 = {
|
|
414
|
-
_0x23ef8a: 0x1bc,
|
|
415
|
-
_0x33e270: 0x258,
|
|
416
|
-
_0x2c9cb7: 0x27a
|
|
417
|
-
}, _0x18727f = { _0x43ec5c: 0x2bb }, _0x2c4ca4 = {
|
|
418
|
-
_0x51db5e: 0x179,
|
|
419
|
-
_0x4ee713: 0x248,
|
|
420
|
-
_0x166170: 0x26d,
|
|
421
|
-
_0x22b4ec: 0x229,
|
|
422
|
-
_0xc6123b: 0x243,
|
|
423
|
-
_0x59adc5: 0x243,
|
|
424
|
-
_0x279e96: 0x229,
|
|
425
|
-
_0x4b19f0: 0x24c,
|
|
426
|
-
_0x1d5568: 0x1d9,
|
|
427
|
-
_0xf3dc19: 0x229,
|
|
428
|
-
_0x3262b2: 0x296,
|
|
429
|
-
_0x39fd04: 0x228
|
|
430
|
-
}, _0x2788cf = {
|
|
431
|
-
_0x294b84: 0x179,
|
|
432
|
-
_0x11c0d2: 0x2ae
|
|
433
|
-
}, _0x8ebe99 = {
|
|
434
|
-
_0x2537a2: 0x188,
|
|
435
|
-
_0x5ac886: 0x246
|
|
436
|
-
}, _0x307d2a = {
|
|
437
|
-
_0x360a04: 0x1d6,
|
|
438
|
-
_0x3fbefb: 0x1d6
|
|
439
|
-
}, _0x522317 = { _0x45be27: 0x263 }, _0x153730 = {
|
|
440
|
-
_0x463b17: 0x291,
|
|
441
|
-
_0x5e9a46: 0x2be,
|
|
442
|
-
_0x23254d: 0x1e4,
|
|
443
|
-
_0x424393: 0x1c4,
|
|
444
|
-
_0x17dfbd: 0x251,
|
|
445
|
-
_0x961526: 0x268
|
|
446
|
-
}, _0x8681bc = {
|
|
447
|
-
_0x5524bb: 0x1c3,
|
|
448
|
-
_0x1bd8a1: 0x1e4
|
|
449
|
-
}, _0x9ca63f = {
|
|
450
|
-
_0x3ec642: 0x2ac,
|
|
451
|
-
_0x37fa4a: 0x268,
|
|
452
|
-
_0x3c4a19: 0x21b,
|
|
453
|
-
_0x4e4370: 0x1c0,
|
|
454
|
-
_0xe6a7d9: 0x1e9
|
|
455
|
-
}, _0x4403d0 = _0x4ab0ed, _0x96fd5d = _0x58f74a['fetchImpl'] ?? fetch, _0x1785a2 = _0x58f74a[_0x4403d0(0x193)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4dacbc = typeof _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] === _0x4403d0(_0x4fe2f7._0x24ceb0) && _0x58f74a[_0x4403d0(0x1a2)] > 0x0 ? _0x58f74a[_0x4403d0(_0x4fe2f7._0x50385c)] : 0x0, _0x73b33 = _0x58f74a[_0x4403d0(_0x4fe2f7._0x84e7a5)]?.['trim']() || void 0x0, _0x4570c9 = _0x58f74a['workerThreadTarget']?.['trim']() || void 0x0, _0x529f0c = createHeaders(_0x58f74a[_0x4403d0(0x1f4)]), _0xb724a0 = toHttpBaseUrl(_0x58f74a['serverUrl']);
|
|
456
|
-
let _0x33de00 = null;
|
|
457
|
-
const _0x2ad9bb = new Map();
|
|
458
|
-
let _0x5ee29d = _0x4dacbc, _0x1d7d06 = _0x4dacbc;
|
|
459
|
-
function _0x4dfd71(_0x481bb8) {
|
|
460
|
-
const _0x47a481 = _0x4403d0, _0x2587c5 = _0x481bb8[_0x47a481(_0x9ca63f._0x3ec642)]['headers'][_0x47a481(_0x9ca63f._0x37fa4a)](_0x47a481(_0x9ca63f._0x3c4a19)) ?? 'unknown', _0x40f0a6 = _0x481bb8[_0x47a481(0x1c9)][_0x47a481(0x1e4)]()['replace'](/\s+/g, '\x20')['slice'](0x0, 0x78) || '<empty>';
|
|
461
|
-
return '请求\x20' + _0x481bb8['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x481bb8[_0x47a481(0x2ac)][_0x47a481(_0x9ca63f._0x4e4370)] + _0x47a481(0x1b7) + _0x2587c5 + _0x47a481(0x2ba) + _0x40f0a6 + _0x47a481(_0x9ca63f._0xe6a7d9);
|
|
462
|
-
}
|
|
463
|
-
async function _0x52f5fe(_0x2d7dec, _0x42b7aa) {
|
|
464
|
-
const _0x1bfab7 = _0x4403d0, _0x44a6f8 = Buffer[_0x1bfab7(_0x8681bc._0x5524bb)](await _0x42b7aa[_0x1bfab7(0x278)]())['toString'](_0x1bfab7(0x178));
|
|
465
|
-
if (!_0x44a6f8[_0x1bfab7(_0x8681bc._0x1bd8a1)]())
|
|
466
|
-
return {};
|
|
467
|
-
try {
|
|
468
|
-
return JSON[_0x1bfab7(0x1a5)](_0x44a6f8);
|
|
469
|
-
} catch {
|
|
470
|
-
throw new Error(_0x4dfd71({
|
|
471
|
-
'bodyText': _0x44a6f8,
|
|
472
|
-
'requestUrl': _0x2d7dec,
|
|
473
|
-
'response': _0x42b7aa
|
|
474
|
-
}));
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
function _0x1ed405(_0x4b713b, _0x341f5a) {
|
|
478
|
-
const _0x128c6c = _0x4403d0, _0x505f32 = typeof _0x341f5a['idempotency_key'] === _0x128c6c(_0x153730._0x463b17) ? _0x341f5a[_0x128c6c(_0x153730._0x5e9a46)][_0x128c6c(_0x153730._0x23254d)]() : '';
|
|
479
|
-
if (_0x505f32)
|
|
480
|
-
return _0x505f32;
|
|
481
|
-
const _0x392861 = Date['now']();
|
|
482
|
-
for (const [_0x328131, _0x390dbc] of _0x2ad9bb) {
|
|
483
|
-
_0x390dbc[_0x128c6c(_0x153730._0x424393)] <= _0x392861 && _0x2ad9bb['delete'](_0x328131);
|
|
484
|
-
}
|
|
485
|
-
const _0x17080a = {
|
|
486
|
-
..._0x341f5a,
|
|
487
|
-
'idempotency_key': void 0x0
|
|
488
|
-
}, _0x21b690 = createHash(_0x128c6c(_0x153730._0x17dfbd))[_0x128c6c(0x1cf)](_0x4b713b + ':' + stableStringify(_0x17080a))[_0x128c6c(0x270)](_0x128c6c(0x27d)), _0x38cb72 = _0x4b713b + ':' + _0x21b690, _0xe37198 = _0x2ad9bb[_0x128c6c(_0x153730._0x961526)](_0x38cb72);
|
|
489
|
-
if (_0xe37198)
|
|
490
|
-
return _0xe37198['value'];
|
|
491
|
-
const _0x14fb27 = 'auto:' + _0x4b713b + ':' + randomUUID();
|
|
492
|
-
return _0x2ad9bb[_0x128c6c(0x21d)](_0x38cb72, {
|
|
493
|
-
'expiresAt': _0x392861 + 0x5 * 0x3c * 0x3e8,
|
|
494
|
-
'value': _0x14fb27
|
|
495
|
-
}), _0x14fb27;
|
|
496
|
-
}
|
|
497
|
-
async function _0x2f42f1(_0x388910, _0x4440a4) {
|
|
498
|
-
const _0x403a96 = _0x4403d0, _0x34d808 = new AbortController(), _0x10f06e = setTimeout(() => _0x34d808[_0x403a96(0x206)](), _0x1785a2), _0x1b410e = _0x4440a4?.['signal'] ? anySignal(_0x4440a4['signal'], _0x34d808[_0x403a96(0x1d6)]) : _0x34d808[_0x403a96(0x1d6)], _0x2c3185 = '' + _0xb724a0 + _0x388910;
|
|
499
|
-
try {
|
|
500
|
-
const _0x14ded4 = await _0x96fd5d(_0x2c3185, {
|
|
501
|
-
..._0x4440a4,
|
|
502
|
-
'signal': _0x1b410e
|
|
503
|
-
}), _0x245f07 = await _0x52f5fe(_0x2c3185, _0x14ded4);
|
|
504
|
-
if (!_0x14ded4['ok'] || _0x245f07['success'] === ![])
|
|
505
|
-
throw new Error(asErrorMessage(_0x245f07[_0x403a96(_0x522317._0x45be27)], _0x403a96(0x23c) + _0x14ded4['status']));
|
|
506
|
-
return _0x245f07;
|
|
507
|
-
} finally {
|
|
508
|
-
clearTimeout(_0x10f06e);
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
async function _0xdd71cc(_0xa966a7, _0x17934b) {
|
|
512
|
-
const _0x10a81a = _0x4403d0, _0x2ed743 = new AbortController(), _0x2bcdbf = setTimeout(() => _0x2ed743[_0x10a81a(0x206)](), _0x1785a2), _0xf6389c = _0x17934b?.[_0x10a81a(_0x307d2a._0x360a04)] ? anySignal(_0x17934b[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2ed743['signal']) : _0x2ed743[_0x10a81a(_0x307d2a._0x3fbefb)], _0x2f9a78 = '' + _0xb724a0 + _0xa966a7;
|
|
513
|
-
try {
|
|
514
|
-
const _0x53fe7f = await _0x96fd5d(_0x2f9a78, {
|
|
515
|
-
..._0x17934b,
|
|
516
|
-
'signal': _0xf6389c
|
|
517
|
-
}), _0x915570 = await _0x52f5fe(_0x2f9a78, _0x53fe7f);
|
|
518
|
-
if (!_0x53fe7f['ok'])
|
|
519
|
-
throw new Error(asErrorMessage(_0x915570[_0x10a81a(0x263)], 'HTTP\x20' + _0x53fe7f[_0x10a81a(0x1c0)]));
|
|
520
|
-
return _0x915570;
|
|
521
|
-
} finally {
|
|
522
|
-
clearTimeout(_0x2bcdbf);
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
async function _0x4108fe(_0x553eea) {
|
|
526
|
-
const _0x2ff434 = _0x4403d0;
|
|
527
|
-
if (!_0x73b33 || _0x553eea <= _0x1d7d06)
|
|
528
|
-
return;
|
|
529
|
-
await _0x2f42f1(_0x2ff434(_0x8ebe99._0x2537a2) + encodeURIComponent(_0x73b33) + _0x2ff434(_0x8ebe99._0x5ac886), {
|
|
530
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x553eea }),
|
|
531
|
-
'headers': _0x529f0c,
|
|
532
|
-
'method': 'PATCH'
|
|
533
|
-
}), _0x1d7d06 = _0x553eea;
|
|
534
|
-
}
|
|
535
|
-
async function _0x2de7a6(_0x2c673b) {
|
|
536
|
-
const _0x1df71c = _0x4403d0, _0xf7d405 = parseTarget(_0x2c673b), _0x24ac11 = await _0x2f42f1(_0x1df71c(_0x2788cf._0x294b84) + _0x58f74a[_0x1df71c(0x1ce)] + '/resolve-channel', {
|
|
537
|
-
'body': JSON[_0x1df71c(0x203)]({ 'target': _0xf7d405[_0x1df71c(_0x2788cf._0x11c0d2)] }),
|
|
538
|
-
'headers': _0x529f0c,
|
|
539
|
-
'method': 'POST'
|
|
540
|
-
});
|
|
541
|
-
return {
|
|
542
|
-
'channelId': _0x24ac11[_0x1df71c(0x229)]?.[_0x1df71c(0x294)] ?? '',
|
|
543
|
-
'target': _0xf7d405['channelTarget'],
|
|
544
|
-
'threadId': _0x24ac11['data']?.[_0x1df71c(0x1ac)]
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
async function _0x4c5559() {
|
|
548
|
-
return !_0x33de00 && (_0x33de00 = (async () => {
|
|
549
|
-
const _0x1302a5 = _0xaeca, _0x602e0c = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x51db5e) + _0x58f74a['agentId'] + _0x1302a5(_0x2c4ca4._0x4ee713), {
|
|
550
|
-
'headers': _0x529f0c,
|
|
551
|
-
'method': _0x1302a5(0x20a)
|
|
552
|
-
}), _0x1f4000 = _0x602e0c['data']?.[_0x1302a5(0x296)]['id'] ?? '';
|
|
553
|
-
let _0x2d6e94 = [];
|
|
554
|
-
try {
|
|
555
|
-
const _0xb18b5a = await _0x2f42f1(_0x1302a5(_0x2c4ca4._0x166170) + encodeURIComponent(_0x1f4000), {
|
|
556
|
-
'headers': _0x529f0c,
|
|
557
|
-
'method': _0x1302a5(0x20a)
|
|
558
|
-
});
|
|
559
|
-
_0x2d6e94 = _0xb18b5a[_0x1302a5(_0x2c4ca4._0x22b4ec)] ?? [];
|
|
560
|
-
} catch {
|
|
561
|
-
_0x2d6e94 = [];
|
|
562
|
-
}
|
|
563
|
-
const _0x4c702b = _0x2d6e94[_0x1302a5(_0x2c4ca4._0xc6123b)](_0x4b37b5 => ({
|
|
564
|
-
'id': _0x4b37b5[_0x1302a5(0x21f)]?.['id'] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? '',
|
|
565
|
-
'name': _0x4b37b5[_0x1302a5(0x21f)]?.[_0x1302a5(0x228)] ?? _0x4b37b5[_0x1302a5(0x2c4)]?.[_0x1302a5(0x1a6)] ?? ''
|
|
566
|
-
}))['filter'](_0x15bd5b => _0x15bd5b['id']), _0x12fdfe = new Set(_0x4c702b[_0x1302a5(_0x2c4ca4._0x59adc5)](_0x2dfb58 => _0x2dfb58['id'])), _0x2260c2 = (_0x602e0c[_0x1302a5(_0x2c4ca4._0x279e96)]?.[_0x1302a5(_0x2c4ca4._0x4b19f0)] ?? [])[_0x1302a5(_0x2c4ca4._0x1d5568)](_0x12e90b => !_0x12fdfe['has'](_0xe7e545(_0x12e90b)))['map'](_0xf4d18b => ({
|
|
567
|
-
'id': _0xe7e545(_0xf4d18b),
|
|
568
|
-
'name': _0x56442e(_0xf4d18b)
|
|
569
|
-
}))[_0x1302a5(0x1d9)](_0x13161b => _0x13161b['id']);
|
|
570
|
-
return {
|
|
571
|
-
'agents': _0x4c702b,
|
|
572
|
-
'channels': _0x602e0c[_0x1302a5(_0x2c4ca4._0x22b4ec)]?.[_0x1302a5(0x231)] ?? [],
|
|
573
|
-
'humans': _0x2260c2,
|
|
574
|
-
'serverId': _0x1f4000,
|
|
575
|
-
'serverName': _0x602e0c[_0x1302a5(_0x2c4ca4._0xf3dc19)]?.[_0x1302a5(_0x2c4ca4._0x3262b2)][_0x1302a5(_0x2c4ca4._0x39fd04)] ?? _0x1f4000
|
|
576
|
-
};
|
|
577
|
-
})()['catch'](_0x432536 => {
|
|
578
|
-
_0x33de00 = null;
|
|
579
|
-
throw _0x432536;
|
|
580
|
-
})), _0x33de00;
|
|
581
|
-
}
|
|
582
|
-
function _0xfeef44(_0x29a54f, _0x2ae16f) {
|
|
583
|
-
const _0x7a8045 = _0x4403d0;
|
|
584
|
-
return _0x2ae16f[_0x7a8045(0x23e)][_0x7a8045(0x23d)](_0x2d772c => _0x2d772c['id'] === _0x29a54f || _0x2d772c[_0x7a8045(0x228)] === _0x29a54f) ? _0x7a8045(0x1e8) : _0x7a8045(_0x18727f._0x43ec5c);
|
|
585
|
-
}
|
|
586
|
-
function _0x86ee5(_0x345b26) {
|
|
587
|
-
const _0x42c6f2 = _0x4403d0;
|
|
588
|
-
if (_0x345b26[_0x42c6f2(_0x136866._0x23ef8a)] != null)
|
|
589
|
-
return _0x345b26['channelTarget'] + ':t' + _0x345b26[_0x42c6f2(0x1bc)];
|
|
590
|
-
if (_0x345b26[_0x42c6f2(0x293)])
|
|
591
|
-
return _0x345b26['channelTarget'] + ':' + _0x345b26[_0x42c6f2(0x293)];
|
|
592
|
-
if (_0x345b26[_0x42c6f2(0x1ac)])
|
|
593
|
-
return _0x345b26[_0x42c6f2(_0x136866._0x33e270)] + ':' + _0x345b26[_0x42c6f2(0x1ac)][_0x42c6f2(_0x136866._0x2c9cb7)](0x0, 0x8);
|
|
594
|
-
return _0x345b26['channelTarget'];
|
|
595
|
-
}
|
|
596
|
-
function _0x4a54c2(_0x465751, _0x3e47de) {
|
|
597
|
-
const _0x16cc28 = _0x4403d0;
|
|
598
|
-
try {
|
|
599
|
-
const _0x41d47b = parseTarget(_0x465751);
|
|
600
|
-
if (_0x41d47b[_0x16cc28(0x1aa)] !== 'thread' || _0x41d47b[_0x16cc28(0x258)] !== _0x3e47de[_0x16cc28(0x258)])
|
|
601
|
-
return ![];
|
|
602
|
-
if (_0x3e47de[_0x16cc28(0x1bc)] != null && _0x41d47b[_0x16cc28(_0x35bba9._0x18be69)] === 't' + _0x3e47de[_0x16cc28(0x1bc)])
|
|
603
|
-
return !![];
|
|
604
|
-
if (_0x3e47de[_0x16cc28(_0x35bba9._0x189b8f)])
|
|
605
|
-
return _0x41d47b['threadShortId'] === _0x3e47de['rootMessageId'] || _0x3e47de['rootMessageId'][_0x16cc28(0x2af)](_0x41d47b[_0x16cc28(_0x35bba9._0x18be69)]);
|
|
606
|
-
if (_0x3e47de[_0x16cc28(_0x35bba9._0x7e6ebc)])
|
|
607
|
-
return _0x41d47b[_0x16cc28(0x18d)] === _0x3e47de['threadId'] || _0x3e47de[_0x16cc28(0x1ac)][_0x16cc28(_0x35bba9._0x260b5e)](_0x41d47b['threadShortId']);
|
|
608
|
-
return ![];
|
|
609
|
-
} catch {
|
|
610
|
-
return ![];
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
function _0xe7e545(_0x4b1165) {
|
|
614
|
-
const _0x566bd8 = _0x4403d0;
|
|
615
|
-
return _0x4b1165['member']?.['participantId'] ?? _0x4b1165[_0x566bd8(0x197)]?.['id'] ?? _0x4b1165[_0x566bd8(0x1a6)] ?? '';
|
|
616
|
-
}
|
|
617
|
-
function _0x56442e(_0x26cacf) {
|
|
618
|
-
const _0x317eee = _0x4403d0;
|
|
619
|
-
return _0x26cacf[_0x317eee(_0x362512._0x545348)]?.['name'] ?? _0xe7e545(_0x26cacf);
|
|
620
|
-
}
|
|
621
|
-
async function _0x4a8bb3(_0x468d00) {
|
|
622
|
-
const _0x255163 = _0x4403d0, _0xeff874 = Math[_0x255163(0x282)](_0x468d00['limit'] ?? 0x32, 0x64), _0x45d8ef = await _0x4c5559(), _0x31337e = new URLSearchParams();
|
|
623
|
-
_0x31337e['set'](_0x255163(0x2b7), String(_0xeff874));
|
|
624
|
-
_0x468d00[_0x255163(0x1ac)] ? (_0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x408cef), _0x468d00['threadId']), _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00[_0x255163(_0x4f85a3._0x122b1a)])) : _0x31337e[_0x255163(0x21d)](_0x255163(_0x4f85a3._0x122b1a), _0x468d00['channelId']);
|
|
625
|
-
_0x468d00['before'] && _0x31337e[_0x255163(_0x4f85a3._0x38ad31)](_0x255163(_0x4f85a3._0xf7a33b), String(_0x468d00[_0x255163(0x286)]));
|
|
626
|
-
_0x468d00['after'] !== void 0x0 && _0x31337e[_0x255163(_0x4f85a3._0x451429)](_0x255163(_0x4f85a3._0x56c9e6), String(_0x468d00[_0x255163(0x1fb)]));
|
|
627
|
-
const _0x4c2cd2 = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + '/history?' + _0x31337e[_0x255163(_0x4f85a3._0x5e62be)](), {
|
|
628
|
-
'headers': _0x529f0c,
|
|
629
|
-
'method': _0x255163(_0x4f85a3._0x139529)
|
|
630
|
-
}), _0x3b52de = (_0x4c2cd2[_0x255163(0x229)] ?? [])[_0x255163(_0x4f85a3._0x46971e)](_0xe96b33 => ({
|
|
631
|
-
'attachments': (_0xe96b33[_0x255163(0x15a)] ?? [])[_0x255163(0x243)](_0x580f85 => ({
|
|
632
|
-
'filename': _0x580f85[_0x255163(0x25c)] ?? _0x580f85['id'],
|
|
633
|
-
'id': _0x580f85['id']
|
|
634
|
-
})),
|
|
635
|
-
'content': _0xe96b33[_0x255163(0x28d)] ?? '',
|
|
636
|
-
'createdAt': _0xe96b33['createdAt'],
|
|
637
|
-
'messageId': _0xe96b33['id'],
|
|
638
|
-
'senderName': _0xe96b33[_0x255163(0x1fd)],
|
|
639
|
-
'senderType': _0xfeef44(_0xe96b33['senderParticipantId'], _0x45d8ef),
|
|
640
|
-
'seq': _0xe96b33['eventSeq'] ?? 0x0
|
|
641
|
-
}));
|
|
642
|
-
return {
|
|
643
|
-
'channel': _0x468d00[_0x255163(0x258)],
|
|
644
|
-
'hasMore': _0x4c2cd2[_0x255163(_0x4f85a3._0x219071)]?.[_0x255163(0x204)] ?? ![],
|
|
645
|
-
'messages': _0x3b52de,
|
|
646
|
-
'nextCursor': _0x4c2cd2[_0x255163(_0x4f85a3._0x3ba3ea)]?.[_0x255163(_0x4f85a3._0xf7a33b)]
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
return {
|
|
650
|
-
async 'sendMessage'(_0xeed77) {
|
|
651
|
-
const _0x21f04c = _0x4403d0, _0x31c8ad = await _0x2de7a6(_0xeed77[_0x21f04c(_0x58f306._0x287272)]), _0x1e3f86 = _0xeed77[_0x21f04c(_0x58f306._0x3bdb3c)][_0x21f04c(_0x58f306._0x46d39c)]('@') ? extractMentionedParticipantIds(_0xeed77[_0x21f04c(0x2b5)], await _0x4c5559()) : [], _0x3ff680 = await _0x2f42f1(_0x21f04c(_0x58f306._0x18c597) + _0x58f74a[_0x21f04c(0x1ce)] + '/send', {
|
|
652
|
-
'body': JSON[_0x21f04c(_0x58f306._0x2b8fec)]({
|
|
653
|
-
'attachment_ids': _0xeed77[_0x21f04c(0x29f)],
|
|
654
|
-
'bodyMarkdown': _0xeed77[_0x21f04c(_0x58f306._0x1a2d90)],
|
|
655
|
-
'channelId': _0x31c8ad[_0x21f04c(0x294)],
|
|
656
|
-
..._0x1e3f86[_0x21f04c(_0x58f306._0x49f776)] > 0x0 ? { 'mentionedParticipantIds': _0x1e3f86 } : {},
|
|
657
|
-
'threadId': _0x31c8ad[_0x21f04c(0x1ac)]
|
|
658
|
-
}),
|
|
659
|
-
'headers': _0x529f0c,
|
|
660
|
-
'method': _0x21f04c(_0x58f306._0x59c457)
|
|
661
|
-
});
|
|
662
|
-
return { 'messageId': _0x3ff680['data']?.['id'] ?? '' };
|
|
663
|
-
},
|
|
664
|
-
async 'listSchedules'() {
|
|
665
|
-
const _0x44e0ca = _0x4403d0, _0x1b4401 = await _0x2f42f1(_0x44e0ca(_0x18e6db._0x2f0ea2), {
|
|
666
|
-
'headers': _0x529f0c,
|
|
667
|
-
'method': _0x44e0ca(0x20a)
|
|
668
|
-
});
|
|
669
|
-
return _0x1b4401[_0x44e0ca(_0x18e6db._0x207485)] ?? [];
|
|
670
|
-
},
|
|
671
|
-
async 'claimScheduleRun'(_0xd8b4f0) {
|
|
672
|
-
const _0x2ba834 = _0x4403d0, _0x3928f5 = await _0x2f42f1(_0x2ba834(_0x428f84._0x4913e7), {
|
|
673
|
-
'body': JSON['stringify'](_0xd8b4f0),
|
|
674
|
-
'headers': _0x529f0c,
|
|
675
|
-
'method': 'POST'
|
|
676
|
-
});
|
|
677
|
-
return _0x3928f5[_0x2ba834(0x229)] ?? {
|
|
678
|
-
'granted': ![],
|
|
679
|
-
'runId': null,
|
|
680
|
-
'schedule': null,
|
|
681
|
-
'scheduledFor': _0xd8b4f0[_0x2ba834(_0x428f84._0x527c61)]
|
|
682
|
-
};
|
|
683
|
-
},
|
|
684
|
-
async 'startScheduleRun'(_0xfa03a9) {
|
|
685
|
-
const _0x4e86dd = _0x4403d0, _0x263c9e = await _0x2f42f1(_0x4e86dd(_0x726f5f._0x5b58cc) + encodeURIComponent(_0xfa03a9[_0x4e86dd(0x29d)]) + _0x4e86dd(_0x726f5f._0x4ed5d8), {
|
|
686
|
-
'body': JSON[_0x4e86dd(0x203)]({}),
|
|
687
|
-
'headers': _0x529f0c,
|
|
688
|
-
'method': _0x4e86dd(_0x726f5f._0x402775)
|
|
689
|
-
});
|
|
690
|
-
return _0x263c9e[_0x4e86dd(0x229)] ?? {
|
|
691
|
-
'claimedByDaemonId': '',
|
|
692
|
-
'id': _0xfa03a9['runId'],
|
|
693
|
-
'scheduleId': '',
|
|
694
|
-
'status': 'running'
|
|
695
|
-
};
|
|
696
|
-
},
|
|
697
|
-
async 'finishScheduleRun'(_0x40f712) {
|
|
698
|
-
const _0x264a62 = _0x4403d0, _0x201d20 = await _0x2f42f1(_0x264a62(0x183) + encodeURIComponent(_0x40f712['runId']) + _0x264a62(_0x22f4c4._0x9a4e10), {
|
|
699
|
-
'body': JSON[_0x264a62(0x203)]({
|
|
700
|
-
'error': _0x40f712[_0x264a62(_0x22f4c4._0x95b5bc)],
|
|
701
|
-
'resultJson': _0x40f712[_0x264a62(_0x22f4c4._0x505049)],
|
|
702
|
-
'status': _0x40f712[_0x264a62(_0x22f4c4._0x2bf9c6)]
|
|
703
|
-
}),
|
|
704
|
-
'headers': _0x529f0c,
|
|
705
|
-
'method': 'POST'
|
|
706
|
-
});
|
|
707
|
-
return _0x201d20['data'] ?? {
|
|
708
|
-
'nextRunAt': null,
|
|
709
|
-
'run': {
|
|
710
|
-
'claimedByDaemonId': '',
|
|
711
|
-
'id': _0x40f712[_0x264a62(0x29d)],
|
|
712
|
-
'scheduleId': '',
|
|
713
|
-
'status': _0x40f712['status']
|
|
714
|
-
}
|
|
715
|
-
};
|
|
716
|
-
},
|
|
717
|
-
async 'listTasks'(_0xd5e6ee) {
|
|
718
|
-
const _0xe76bb = _0x4403d0, _0x112c01 = new URLSearchParams();
|
|
719
|
-
return _0x112c01['set']('channel', _0xd5e6ee['channel']), _0xd5e6ee[_0xe76bb(_0x26df12._0x5969db)] && _0x112c01[_0xe76bb(_0x26df12._0x2c0a25)](_0xe76bb(_0x26df12._0x5969db), _0xd5e6ee[_0xe76bb(_0x26df12._0x24059a)]), _0xdd71cc(_0xe76bb(0x179) + _0x58f74a[_0xe76bb(0x1ce)] + _0xe76bb(0x28a) + _0x112c01[_0xe76bb(0x173)](), {
|
|
720
|
-
'headers': _0x529f0c,
|
|
721
|
-
'method': 'GET'
|
|
722
|
-
});
|
|
723
|
-
},
|
|
724
|
-
async 'createTasks'(_0x4ff2ba) {
|
|
725
|
-
const _0x5627f7 = _0x4403d0;
|
|
726
|
-
return _0xdd71cc(_0x5627f7(0x179) + _0x58f74a[_0x5627f7(0x1ce)] + '/tasks', {
|
|
727
|
-
'body': JSON[_0x5627f7(_0x203839._0x5d1bf4)]({
|
|
728
|
-
..._0x4ff2ba,
|
|
729
|
-
'idempotency_key': _0x1ed405(_0x5627f7(_0x203839._0x1085bd), _0x4ff2ba)
|
|
730
|
-
}),
|
|
731
|
-
'headers': _0x529f0c,
|
|
732
|
-
'method': _0x5627f7(_0x203839._0x4030c2)
|
|
733
|
-
});
|
|
734
|
-
},
|
|
735
|
-
async 'claimTasks'(_0x554b7b) {
|
|
736
|
-
const _0x3d4570 = _0x4403d0;
|
|
737
|
-
return _0xdd71cc(_0x3d4570(0x179) + _0x58f74a[_0x3d4570(0x1ce)] + _0x3d4570(_0x4bf035._0x207b60), {
|
|
738
|
-
'body': JSON[_0x3d4570(_0x4bf035._0x3eb81e)]({
|
|
739
|
-
..._0x554b7b,
|
|
740
|
-
'idempotency_key': _0x1ed405(_0x3d4570(0x166), _0x554b7b)
|
|
741
|
-
}),
|
|
742
|
-
'headers': _0x529f0c,
|
|
743
|
-
'method': _0x3d4570(_0x4bf035._0x1fc250)
|
|
744
|
-
});
|
|
745
|
-
},
|
|
746
|
-
async 'unclaimTask'(_0x2ce56d) {
|
|
747
|
-
const _0x4b2326 = _0x4403d0;
|
|
748
|
-
return _0xdd71cc('/internal/agent/' + _0x58f74a['agentId'] + '/tasks/unclaim', {
|
|
749
|
-
'body': JSON[_0x4b2326(0x203)]({
|
|
750
|
-
..._0x2ce56d,
|
|
751
|
-
'idempotency_key': _0x1ed405(_0x4b2326(0x2bd), _0x2ce56d)
|
|
752
|
-
}),
|
|
753
|
-
'headers': _0x529f0c,
|
|
754
|
-
'method': _0x4b2326(_0x1d729d._0x3324c1)
|
|
755
|
-
});
|
|
756
|
-
},
|
|
757
|
-
async 'updateTaskStatus'(_0x4bf836) {
|
|
758
|
-
const _0x3cac92 = _0x4403d0;
|
|
759
|
-
return _0xdd71cc(_0x3cac92(_0x5164c6._0x2eb1fc) + _0x58f74a[_0x3cac92(_0x5164c6._0x11c292)] + '/tasks/update-status', {
|
|
760
|
-
'body': JSON[_0x3cac92(_0x5164c6._0x2cf270)]({
|
|
761
|
-
..._0x4bf836,
|
|
762
|
-
'idempotency_key': _0x1ed405(_0x3cac92(_0x5164c6._0xadb360), _0x4bf836)
|
|
763
|
-
}),
|
|
764
|
-
'headers': _0x529f0c,
|
|
765
|
-
'method': _0x3cac92(0x2a0)
|
|
766
|
-
});
|
|
767
|
-
},
|
|
768
|
-
async 'uploadFile'(_0x438191) {
|
|
769
|
-
const _0x34f0f6 = _0x4403d0, _0x525ae1 = await _0x2de7a6(_0x438191[_0x34f0f6(_0x275824._0x3ef129)]);
|
|
770
|
-
if (_0x525ae1[_0x34f0f6(0x1ac)])
|
|
771
|
-
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
772
|
-
const _0x5ffbca = await _0x2f42f1('/internal/agent/' + _0x58f74a['agentId'] + _0x34f0f6(0x237), {
|
|
773
|
-
'body': JSON[_0x34f0f6(0x203)]({
|
|
774
|
-
'channel': _0x525ae1['target'],
|
|
775
|
-
'contentBase64': _0x438191[_0x34f0f6(_0x275824._0x1df1af)],
|
|
776
|
-
'contentType': _0x438191[_0x34f0f6(0x165)],
|
|
777
|
-
'originalFilename': _0x438191[_0x34f0f6(_0x275824._0x2f970d)]
|
|
778
|
-
}),
|
|
779
|
-
'headers': _0x529f0c,
|
|
780
|
-
'method': _0x34f0f6(0x2a0)
|
|
781
|
-
});
|
|
782
|
-
return {
|
|
783
|
-
'attachmentId': _0x5ffbca[_0x34f0f6(0x229)]?.['id'] ?? '',
|
|
784
|
-
'filename': _0x5ffbca[_0x34f0f6(0x229)]?.['originalFilename'] ?? _0x438191[_0x34f0f6(0x25c)],
|
|
785
|
-
'sizeBytes': _0x5ffbca['data']?.[_0x34f0f6(_0x275824._0x23e6eb)] ?? 0x0
|
|
786
|
-
};
|
|
787
|
-
},
|
|
788
|
-
async 'downloadAttachment'(_0x369bb1) {
|
|
789
|
-
const _0x5558b8 = _0x4403d0, _0x2bb11c = await _0x2f42f1('/api/attachments/' + _0x369bb1, {
|
|
790
|
-
'headers': _0x529f0c,
|
|
791
|
-
'method': 'GET'
|
|
792
|
-
}), _0x108e51 = new AbortController(), _0x4ff8a6 = setTimeout(() => _0x108e51[_0x5558b8(0x206)](), _0x1785a2);
|
|
793
|
-
try {
|
|
794
|
-
const _0x301054 = await _0x96fd5d(_0xb724a0 + '/api/attachments/' + _0x369bb1 + _0x5558b8(0x1d3), {
|
|
795
|
-
'headers': _0x529f0c,
|
|
796
|
-
'method': _0x5558b8(0x20a),
|
|
797
|
-
'signal': _0x108e51[_0x5558b8(_0x55ce3c._0x5e5b35)]
|
|
798
|
-
});
|
|
799
|
-
if (!_0x301054['ok'])
|
|
800
|
-
throw new Error(_0x5558b8(_0x55ce3c._0x589e3a) + _0x301054[_0x5558b8(0x1c0)]);
|
|
801
|
-
return {
|
|
802
|
-
'contentType': _0x2bb11c['data']?.[_0x5558b8(_0x55ce3c._0x20f358)] ?? _0x301054[_0x5558b8(_0x55ce3c._0x4f6993)]['get']('content-type') ?? 'application/octet-stream',
|
|
803
|
-
'data': Buffer[_0x5558b8(0x1c3)](await _0x301054['arrayBuffer']()),
|
|
804
|
-
'originalFilename': _0x2bb11c['data']?.[_0x5558b8(0x1ad)]
|
|
805
|
-
};
|
|
806
|
-
} finally {
|
|
807
|
-
clearTimeout(_0x4ff8a6);
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
async 'listServer'() {
|
|
811
|
-
return _0x4c5559();
|
|
812
|
-
},
|
|
813
|
-
async 'readHistory'(_0x2fd275) {
|
|
814
|
-
const _0x173a65 = _0x4403d0, _0x31a8f5 = await _0x2de7a6(_0x2fd275[_0x173a65(_0x1a7f0b._0x44b3f4)]);
|
|
815
|
-
return _0x4a8bb3({
|
|
816
|
-
'after': _0x2fd275[_0x173a65(0x1fb)],
|
|
817
|
-
'before': _0x2fd275[_0x173a65(_0x1a7f0b._0x309fbc)],
|
|
818
|
-
'channelId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x581fa6)],
|
|
819
|
-
'channelTarget': _0x31a8f5['target'],
|
|
820
|
-
'limit': _0x2fd275[_0x173a65(_0x1a7f0b._0x2621aa)],
|
|
821
|
-
'threadId': _0x31a8f5[_0x173a65(_0x1a7f0b._0x26de95)]
|
|
822
|
-
});
|
|
823
|
-
},
|
|
824
|
-
async 'checkMessages'() {
|
|
825
|
-
const _0x2fbecb = _0x4403d0, _0xe99583 = new URLSearchParams();
|
|
826
|
-
_0xe99583[_0x2fbecb(0x21d)](_0x2fbecb(0x284), String(_0x5ee29d));
|
|
827
|
-
const _0x56ce68 = _0xe99583[_0x2fbecb(0x173)](), _0x5524e2 = await _0x2f42f1(_0x2fbecb(_0x1c7d90._0x22a04d) + _0x58f74a[_0x2fbecb(_0x1c7d90._0x1e5c31)] + _0x2fbecb(_0x1c7d90._0xda23c1) + (_0x56ce68 ? '?' + _0x56ce68 : ''), {
|
|
828
|
-
'headers': _0x529f0c,
|
|
829
|
-
'method': 'GET'
|
|
830
|
-
}), _0x14383a = _0x5524e2[_0x2fbecb(_0x1c7d90._0x381049)] ?? [], _0x4ab14d = _0x5524e2[_0x2fbecb(0x1d2)]?.[_0x2fbecb(0x20b)], _0x2c9f15 = _0x4ab14d !== void 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x4ab14d) : _0x14383a['length'] > 0x0 ? Math[_0x2fbecb(0x185)](_0x5ee29d, _0x14383a[_0x14383a[_0x2fbecb(0x1e3)] - 0x1][_0x2fbecb(0x1fa)]) : _0x5ee29d, _0x2cca88 = await _0x4c5559(), _0x125b2c = new Map(_0x2cca88[_0x2fbecb(0x231)][_0x2fbecb(0x243)](_0x4c8926 => [
|
|
831
|
-
_0x4c8926['id'],
|
|
832
|
-
_0x4c8926
|
|
833
|
-
])), _0x44f94b = _0x14383a['filter'](_0x59b395 => _0x59b395[_0x2fbecb(0x196)] === _0x2fbecb(0x256)), _0x3f3688 = new Map();
|
|
834
|
-
for (const _0x27222a of _0x44f94b) {
|
|
835
|
-
const _0x114909 = asRecord(_0x27222a[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x3453f6 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x38afca)] === _0x2fbecb(0x291) ? _0x114909['channelId'] : '';
|
|
836
|
-
if (!_0x3453f6)
|
|
837
|
-
continue;
|
|
838
|
-
const _0x4a1fd8 = typeof _0x114909[_0x2fbecb(0x1ac)] === 'string' ? _0x114909[_0x2fbecb(_0x1c7d90._0x4b0698)] : void 0x0, _0x2be9d3 = typeof _0x114909[_0x2fbecb(0x293)] === _0x2fbecb(_0x1c7d90._0x302280) ? _0x114909[_0x2fbecb(0x293)] : void 0x0, _0xebf534 = typeof _0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)] === _0x2fbecb(_0x1c7d90._0x4d8357) && Number[_0x2fbecb(0x2a6)](_0x114909[_0x2fbecb(_0x1c7d90._0x5c3133)]) ? _0x114909[_0x2fbecb(0x1bc)] : void 0x0, _0x4add42 = Boolean(_0x4a1fd8 && (!_0x2be9d3 || _0x27222a['aggregateId'] !== _0x2be9d3)), _0x39de24 = _0x4add42 ? _0x3453f6 + ':' + _0x4a1fd8 : _0x3453f6, _0x3c66f5 = _0x3f3688[_0x2fbecb(0x268)](_0x39de24) ?? {
|
|
839
|
-
'aggregateIds': [],
|
|
840
|
-
'channelId': _0x3453f6,
|
|
841
|
-
'entries': new Map(),
|
|
842
|
-
'isThreadReply': _0x4add42,
|
|
843
|
-
'rootMessageId': _0x2be9d3,
|
|
844
|
-
'threadNumber': _0xebf534,
|
|
845
|
-
'threadId': _0x4add42 ? _0x4a1fd8 : void 0x0
|
|
846
|
-
};
|
|
847
|
-
_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] == null && _0xebf534 != null && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x2405e4)] = _0xebf534), !_0x3c66f5[_0x2fbecb(_0x1c7d90._0x3e062a)] && _0x2be9d3 && (_0x3c66f5[_0x2fbecb(_0x1c7d90._0x194972)] = _0x2be9d3), _0x3c66f5[_0x2fbecb(_0x1c7d90._0x30404c)][_0x2fbecb(0x209)](_0x27222a[_0x2fbecb(0x19d)]), _0x3c66f5[_0x2fbecb(0x1ba)]['set'](_0x27222a[_0x2fbecb(0x19d)], {
|
|
848
|
-
'payloadJson': _0x27222a[_0x2fbecb(0x1a3)],
|
|
849
|
-
'seq': _0x27222a[_0x2fbecb(_0x1c7d90._0x29f60b)]
|
|
850
|
-
}), _0x3f3688[_0x2fbecb(0x21d)](_0x39de24, _0x3c66f5);
|
|
851
|
-
}
|
|
852
|
-
const _0x1eaaa8 = [];
|
|
853
|
-
for (const _0x269be1 of _0x3f3688[_0x2fbecb(_0x1c7d90._0x36b08c)]()) {
|
|
854
|
-
const {
|
|
855
|
-
channelId: _0x546a4e,
|
|
856
|
-
threadId: _0x579065,
|
|
857
|
-
rootMessageId: _0x1b738f,
|
|
858
|
-
threadNumber: _0x1edaea,
|
|
859
|
-
aggregateIds: _0x4c45cf,
|
|
860
|
-
isThreadReply: _0x2942ec,
|
|
861
|
-
entries: _0x3d7e3c
|
|
862
|
-
} = _0x269be1, _0x4926ed = _0x125b2c[_0x2fbecb(0x268)](_0x546a4e), _0x55d225 = _0x4926ed?.[_0x2fbecb(0x228)] ?? _0x546a4e, _0x2a64b5 = _0x4926ed?.[_0x2fbecb(0x1aa)] === 'dm' ? _0x2fbecb(0x18b) + _0x55d225 : '#' + _0x55d225, _0x10a5c4 = {
|
|
863
|
-
'channelTarget': _0x2a64b5,
|
|
864
|
-
'rootMessageId': _0x1b738f,
|
|
865
|
-
'threadId': _0x579065,
|
|
866
|
-
'threadNumber': _0x1edaea
|
|
867
|
-
}, _0x10210e = await _0x4a8bb3({
|
|
868
|
-
'channelId': _0x546a4e,
|
|
869
|
-
'channelTarget': _0x2a64b5,
|
|
870
|
-
'limit': Math[_0x2fbecb(0x185)](_0x4c45cf[_0x2fbecb(_0x1c7d90._0x2b8279)], 0x32),
|
|
871
|
-
'threadId': _0x579065
|
|
872
|
-
}), _0x3f95c2 = new Map(_0x10210e['messages'][_0x2fbecb(_0x1c7d90._0x3aeab6)](_0xf7f0a0 => [
|
|
873
|
-
_0xf7f0a0[_0x2fbecb(0x160)],
|
|
874
|
-
_0xf7f0a0
|
|
875
|
-
])), _0x10eded = _0x579065 ? _0x86ee5(_0x10a5c4) : _0x2a64b5, _0x1e3634 = _0x4570c9 ? _0x2942ec && _0x4a54c2(_0x4570c9, _0x10a5c4) : !![], _0x4689d8 = _0x2942ec ? _0x1e3634 && _0x4570c9 ? _0x4570c9 : _0x10eded : _0x2a64b5;
|
|
876
|
-
for (const _0x2184db of _0x4c45cf) {
|
|
877
|
-
if (!_0x1e3634)
|
|
878
|
-
continue;
|
|
879
|
-
const _0x1599c3 = _0x3f95c2[_0x2fbecb(0x268)](_0x2184db);
|
|
880
|
-
if (_0x1599c3) {
|
|
881
|
-
_0x1eaaa8[_0x2fbecb(0x209)]({
|
|
882
|
-
'attachments': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1228f7)],
|
|
883
|
-
'content': _0x1599c3[_0x2fbecb(_0x1c7d90._0x1178cd)],
|
|
884
|
-
'createdAt': _0x1599c3[_0x2fbecb(_0x1c7d90._0x47cf60)],
|
|
885
|
-
'messageId': _0x1599c3[_0x2fbecb(_0x1c7d90._0x42151a)],
|
|
886
|
-
'senderName': _0x1599c3[_0x2fbecb(0x15c)],
|
|
887
|
-
'senderType': _0x1599c3[_0x2fbecb(0x28c)],
|
|
888
|
-
'target': _0x4689d8
|
|
889
|
-
});
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
const _0x220569 = _0x3d7e3c[_0x2fbecb(_0x1c7d90._0x79ddba)](_0x2184db);
|
|
893
|
-
if (_0x220569) {
|
|
894
|
-
const _0x823c7 = asRecord(_0x220569[_0x2fbecb(_0x1c7d90._0x2baff7)]), _0x33ced0 = typeof _0x823c7[_0x2fbecb(_0x1c7d90._0x27649e)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x1fd)] : '', _0x24cff2 = typeof _0x823c7[_0x2fbecb(0x28d)] === _0x2fbecb(0x291) ? _0x823c7[_0x2fbecb(0x28d)] : '';
|
|
895
|
-
_0x33ced0 && _0x24cff2 && _0x1eaaa8[_0x2fbecb(0x209)]({
|
|
896
|
-
'attachments': [],
|
|
897
|
-
'content': _0x24cff2,
|
|
898
|
-
'createdAt': new Date()[_0x2fbecb(0x1a9)](),
|
|
899
|
-
'messageId': _0x2184db,
|
|
900
|
-
'senderName': _0x33ced0,
|
|
901
|
-
'senderType': _0xfeef44(_0x33ced0, _0x2cca88),
|
|
902
|
-
'target': _0x4689d8
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
return _0x2c9f15 > 0x0 && await _0x4108fe(_0x2c9f15), _0x2c9f15 > _0x5ee29d && (_0x5ee29d = _0x2c9f15), { 'messages': _0x1eaaa8 };
|
|
908
|
-
}
|
|
909
|
-
};
|
|
210
|
+
function asErrorMessage(_0x144707, _0x3783f5) {
|
|
211
|
+
const _0x7ff8f3 = _0x84e1c7;
|
|
212
|
+
if (typeof _0x144707 === _0x7ff8f3(0x234) && _0x144707[_0x7ff8f3(0x1d5)]())
|
|
213
|
+
return _0x144707;
|
|
214
|
+
return _0x3783f5;
|
|
910
215
|
}
|
|
911
|
-
function
|
|
912
|
-
const
|
|
913
|
-
|
|
914
|
-
_0x399ca6: 0x25a,
|
|
915
|
-
_0x87e06b: 0x279
|
|
916
|
-
}, _0x438cf1 = _0x4ab0ed, _0x446f76 = new Date(_0x38c0f2);
|
|
917
|
-
if (Number[_0x438cf1(_0x2950b1._0x40dfa9)](_0x446f76[_0x438cf1(0x1e6)]()))
|
|
918
|
-
return _0x38c0f2;
|
|
919
|
-
const _0xec39f7 = _0x2b0f11 => String(_0x2b0f11)[_0x438cf1(0x1eb)](0x2, '0');
|
|
920
|
-
return _0x446f76[_0x438cf1(0x1c8)]() + '-' + _0xec39f7(_0x446f76[_0x438cf1(0x20e)]() + 0x1) + '-' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x399ca6)]()) + '\x20' + _0xec39f7(_0x446f76[_0x438cf1(_0x2950b1._0x87e06b)]()) + ':' + _0xec39f7(_0x446f76['getMinutes']()) + ':' + _0xec39f7(_0x446f76[_0x438cf1(0x195)]());
|
|
216
|
+
function asRecord(_0x26bc86) {
|
|
217
|
+
const _0x2b4a96 = { _0x41620c: 0x23e }, _0xfba7da = _0x84e1c7;
|
|
218
|
+
return typeof _0x26bc86 === _0xfba7da(_0x2b4a96._0x41620c) && _0x26bc86 !== null ? _0x26bc86 : {};
|
|
921
219
|
}
|
|
922
|
-
function
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
220
|
+
function stableStringify(_0x31d686) {
|
|
221
|
+
const _0x5a0f43 = {
|
|
222
|
+
_0x467207: 0x23e,
|
|
223
|
+
_0x595462: 0x1d2,
|
|
224
|
+
_0x2aff66: 0x1fb
|
|
225
|
+
}, _0x572ab9 = _0x84e1c7;
|
|
226
|
+
if (_0x31d686 === null || typeof _0x31d686 !== _0x572ab9(_0x5a0f43._0x467207))
|
|
227
|
+
return JSON['stringify'](_0x31d686);
|
|
228
|
+
if (Array[_0x572ab9(0x181)](_0x31d686))
|
|
229
|
+
return '[' + _0x31d686[_0x572ab9(0x169)](_0xba23b9 => stableStringify(_0xba23b9))[_0x572ab9(0x295)](',') + ']';
|
|
230
|
+
const _0x3085c7 = Object['entries'](_0x31d686)[_0x572ab9(_0x5a0f43._0x595462)](([, _0x18552d]) => _0x18552d !== void 0x0)[_0x572ab9(_0x5a0f43._0x2aff66)](([_0xe51e16], [_0x22baea]) => _0xe51e16[_0x572ab9(0x24f)](_0x22baea))['map'](([_0x18d6fa, _0x347679]) => JSON[_0x572ab9(0x2c7)](_0x18d6fa) + ':' + stableStringify(_0x347679));
|
|
231
|
+
return '{' + _0x3085c7[_0x572ab9(0x295)](',') + '}';
|
|
930
232
|
}
|
|
931
|
-
function
|
|
932
|
-
const
|
|
933
|
-
'
|
|
934
|
-
'
|
|
935
|
-
'zMLSDgvY',
|
|
936
|
-
'zMLUzenHy2HLzfbHDgG',
|
|
937
|
-
'Bg9JywXLq29TCgfYzq',
|
|
938
|
-
'y29UBMvJDa',
|
|
939
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
940
|
-
'BgLZDf90yxnRCW',
|
|
941
|
-
'nZG0ntnuvMP0vKW',
|
|
942
|
-
'D3nZoG',
|
|
943
|
-
'y2fJAgveAxi',
|
|
944
|
-
'v29YA2vYici',
|
|
945
|
-
'BgvUz3rO',
|
|
946
|
-
'DhjPBq',
|
|
947
|
-
'D29YA2vYtw9Kzq',
|
|
948
|
-
'z2v0vgLTzq',
|
|
949
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
950
|
-
'ywDLBNq',
|
|
951
|
-
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
952
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
953
|
-
'CgfKu3rHCNq',
|
|
954
|
-
'CMvZDw1Lx3bHy2TLDa',
|
|
955
|
-
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
956
|
-
'DgL0Bgu',
|
|
957
|
-
'igzHAwXLzdOG',
|
|
958
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
959
|
-
'zw51Bq',
|
|
960
|
-
'Aw5FCMv2Awv3',
|
|
961
|
-
'DgfZAY0',
|
|
962
|
-
'zgfLBw9UqxbPs2v5',
|
|
963
|
-
'C3bHD25Lza',
|
|
964
|
-
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
965
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
966
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
233
|
+
function _0x1f56() {
|
|
234
|
+
const _0x214060 = [
|
|
235
|
+
'BwvZC2fNzxm',
|
|
236
|
+
'AhvTyw4',
|
|
967
237
|
'kg5VBMuP',
|
|
968
|
-
'
|
|
969
|
-
'
|
|
970
|
-
'
|
|
971
|
-
'
|
|
972
|
-
'
|
|
973
|
-
'
|
|
974
|
-
'
|
|
975
|
-
'
|
|
976
|
-
'
|
|
977
|
-
'
|
|
978
|
-
'
|
|
979
|
-
'
|
|
980
|
-
'
|
|
981
|
-
'
|
|
982
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
983
|
-
'ChvZAa',
|
|
984
|
-
'r0vu',
|
|
238
|
+
'DgfZA051BwjLCG',
|
|
239
|
+
'zg0T',
|
|
240
|
+
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
241
|
+
'Ahr0Chm6',
|
|
242
|
+
'zMLUza',
|
|
243
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
244
|
+
'Ahr0CdO',
|
|
245
|
+
'zNjVBq',
|
|
246
|
+
'A2LUza',
|
|
247
|
+
'zw50CMLLCW',
|
|
248
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
249
|
+
'ywrK',
|
|
250
|
+
'C2LNBMfS',
|
|
251
|
+
'icHPzdO',
|
|
985
252
|
'y3vYC29Y',
|
|
986
|
-
'
|
|
987
|
-
'
|
|
988
|
-
'
|
|
989
|
-
'
|
|
990
|
-
'
|
|
991
|
-
'
|
|
253
|
+
'C2L6zq',
|
|
254
|
+
'D3nZoG',
|
|
255
|
+
'ls1Hz2vUDc1Pza',
|
|
256
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
257
|
+
'C29Tzq',
|
|
258
|
+
'Axnoyu4',
|
|
259
|
+
'l3vWBg9Hza',
|
|
260
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
261
|
+
'CMvZDw1Lx3bHy2TLDa',
|
|
262
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
992
263
|
'ywDNCMvNyxrLswrZ',
|
|
993
|
-
'
|
|
994
|
-
'
|
|
995
|
-
'
|
|
996
|
-
'
|
|
997
|
-
'
|
|
998
|
-
'
|
|
999
|
-
'
|
|
264
|
+
'BwfW',
|
|
265
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
266
|
+
'C2XPy2u',
|
|
267
|
+
'DxbSB2fKx2zPBgu',
|
|
268
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
269
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
270
|
+
'CMvZCg9UC2u',
|
|
271
|
+
'Agv4',
|
|
272
|
+
'AhvTyw5Z',
|
|
273
|
+
'zgLZCg9ZAxrPB24',
|
|
274
|
+
'Dg9tDhjPBMC',
|
|
275
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1000
276
|
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1001
|
-
'
|
|
1002
|
-
'
|
|
1003
|
-
'
|
|
1004
|
-
'
|
|
1005
|
-
'
|
|
1006
|
-
'
|
|
1007
|
-
'
|
|
1008
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1009
|
-
'zMfPBgvK',
|
|
1010
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1011
|
-
'l3n0yxj0',
|
|
1012
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1013
|
-
'C2L6zuj5DgvZ',
|
|
1014
|
-
'BMfTzq',
|
|
1015
|
-
'zgf0yq',
|
|
1016
|
-
'C2L6zq',
|
|
1017
|
-
'y3jLyxrLvgfZA3m',
|
|
1018
|
-
'Aw1Hz2uVANbLzW',
|
|
1019
|
-
'nJyWDKz1Dvfg',
|
|
1020
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1021
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1022
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
277
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
278
|
+
'zgvJAxnPB25Z',
|
|
279
|
+
'ihn0yxr1CZ0',
|
|
280
|
+
'y29UBMvJDa',
|
|
281
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
282
|
+
'xsba',
|
|
283
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1023
284
|
'y2HHBM5LBhm',
|
|
1024
|
-
'
|
|
1025
|
-
'
|
|
1026
|
-
'
|
|
1027
|
-
'
|
|
1028
|
-
'
|
|
1029
|
-
'l3vWBg9Hza',
|
|
1030
|
-
'nNvuvu9WzG',
|
|
1031
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1032
|
-
'iIbUB3qGzM91BMq',
|
|
1033
|
-
'ig1LC3nHz2vZkqOk',
|
|
1034
|
-
'sfruuca',
|
|
1035
|
-
'C29Tzq',
|
|
1036
|
-
'ywDLBNrZ',
|
|
1037
|
-
'C2vUzf9TzxnZywDL',
|
|
1038
|
-
'y2XPzw50',
|
|
1039
|
-
'v29YA2vYia',
|
|
1040
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1041
|
-
'BwfW',
|
|
1042
|
-
'lMjPBG',
|
|
1043
|
-
'DgHYzwfKvgfYz2v0',
|
|
1044
|
-
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1045
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1046
|
-
'l3nLCNzLCG',
|
|
1047
|
-
'icHPzdO',
|
|
1048
|
-
'ndKZmtC0oevkEefUwq',
|
|
1049
|
-
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1050
|
-
'BwvTyMvYCW',
|
|
1051
|
-
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1052
|
-
'iJOGC3rHDhvZpq',
|
|
285
|
+
'C3bSAxq',
|
|
286
|
+
'mtmYohHTDffzDq',
|
|
287
|
+
'DgfZA19Pza',
|
|
288
|
+
'AxnbCNjHEq',
|
|
289
|
+
'D3m6',
|
|
1053
290
|
'DgHYzwfKx3rHCMDLDa',
|
|
1054
|
-
'
|
|
1055
|
-
'
|
|
1056
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1057
|
-
'y3jLyxrLx3rHC2TZ',
|
|
1058
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
1059
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1060
|
-
'BwvZC2fNzq',
|
|
1061
|
-
'y2XHAw1uyxnRCW',
|
|
1062
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
1063
|
-
'CMvZDwX0sNnVBG',
|
|
1064
|
-
'z2v0rgf0zq',
|
|
1065
|
-
'D29YA19RzxK',
|
|
1066
|
-
'zMLSzw5HBwu',
|
|
291
|
+
'z2v0sg91CNm',
|
|
292
|
+
'zMv0y2HjBxbS',
|
|
1067
293
|
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1068
|
-
'
|
|
1069
|
-
'
|
|
1070
|
-
'
|
|
1071
|
-
'
|
|
294
|
+
'zMLUAxnOx3DVCMTLCIbMywLSzwq',
|
|
295
|
+
'Dw5RBM93BG',
|
|
296
|
+
'D29YA2vYsgfUzg9MzJ1MywXZzsbLCNjVCJ0',
|
|
297
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
298
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
299
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
300
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1072
301
|
'zgvZy3jPChrPB24',
|
|
1073
|
-
'
|
|
1074
|
-
'
|
|
1075
|
-
'
|
|
302
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
303
|
+
'CgfYDgLJAxbHBNrZ',
|
|
304
|
+
'y29UDgvUDfr5Cgu',
|
|
305
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
306
|
+
'BgLZDf90yxnRCW',
|
|
307
|
+
'ywDLBNq',
|
|
308
|
+
'ywjVCNq',
|
|
309
|
+
'otnIB1bgt1a',
|
|
310
|
+
'Dg9KBW',
|
|
311
|
+
'DgHYzwfKu2HVCNrjza',
|
|
312
|
+
'Dgv4Da',
|
|
313
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
314
|
+
'yM9KEvrLEhq',
|
|
315
|
+
'sfruuca',
|
|
316
|
+
'CNvUswq',
|
|
317
|
+
'DgHYzwfKvgfYz2v0',
|
|
318
|
+
'DgfYz2v0zwruyxnR',
|
|
319
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
320
|
+
'zgvZDhjVEwvK',
|
|
1076
321
|
'tM8GDgfZA3mGzM91BMqU',
|
|
1077
|
-
'
|
|
1078
|
-
'
|
|
322
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
323
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
324
|
+
'BM93',
|
|
325
|
+
'Dg9VBa',
|
|
326
|
+
'mJu5odfjt0PiwvG',
|
|
327
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
328
|
+
'DMfSDwvZ',
|
|
329
|
+
'D29YA2vYtw9Kzq',
|
|
330
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
331
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
332
|
+
'Aw1Hz2uVz2LM',
|
|
333
|
+
'C3rVCe1HAw4',
|
|
334
|
+
'iYmGu2vYDMvYoIa',
|
|
335
|
+
'u3bHD24Gysb3B3jRzxiGywDLBNqGDg8GAgfUzgXLigeGC3vIDgfZAYbHC3LUy2HYB25VDxnSEs4GvgHLihDVCMTLCIbYDw5ZigLUigL0CYbVD24GC2vZC2LVBIbHBMqGCMvWB3j0CYbIywnRihDOzw4Gzg9Uzs4',
|
|
336
|
+
'tM8GCMvZDwX0ihLLDcbMB3iGD29YA2vYici',
|
|
337
|
+
'DxbKyxrL',
|
|
338
|
+
'lsaJ',
|
|
339
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
340
|
+
'AxngAw5PDgu',
|
|
341
|
+
'ls1ZzxnZAw9UlwLK',
|
|
342
|
+
'DxjNzw50',
|
|
343
|
+
'Dg9mB3DLCKnHC2u',
|
|
344
|
+
'BNvTyMvY',
|
|
345
|
+
'CMvXDwvZDfvYBa',
|
|
346
|
+
'igzHAwXLzdOG',
|
|
347
|
+
'yM9KEu1HCMTKB3DU',
|
|
348
|
+
'BgLZDf9Zzxj2zxi',
|
|
349
|
+
'BwvKAxvT',
|
|
350
|
+
'Aw1Hz2uVANbLzW',
|
|
1079
351
|
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1080
|
-
'
|
|
1081
|
-
'
|
|
1082
|
-
'
|
|
1083
|
-
'
|
|
1084
|
-
'
|
|
352
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
353
|
+
'CM9VDe1LC3nHz2vjza',
|
|
354
|
+
'C2vUze1LC3nHz2u',
|
|
355
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
356
|
+
'6k+35Rgcia',
|
|
357
|
+
'zMLUAxnOx3DVCMTLCG',
|
|
358
|
+
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
359
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
360
|
+
'BwLU',
|
|
361
|
+
'AgfZtw9Yzq',
|
|
1085
362
|
'iYmJieH1BwfUCW',
|
|
1086
|
-
'
|
|
1087
|
-
'
|
|
1088
|
-
'
|
|
1089
|
-
'
|
|
1090
|
-
'
|
|
1091
|
-
'
|
|
1092
|
-
'
|
|
1093
|
-
'
|
|
363
|
+
'BMv4Den1CNnVCG',
|
|
364
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
365
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
366
|
+
'C3rHDhvZ',
|
|
367
|
+
'l3rHC2TZ',
|
|
368
|
+
'l3nLBMq',
|
|
369
|
+
'zMLSDgvY',
|
|
370
|
+
'CMvWBgfJzq',
|
|
371
|
+
'zMfPBgvK',
|
|
372
|
+
'DhjPBq',
|
|
1094
373
|
'yxjYyxLcDwzMzxi',
|
|
1095
|
-
'
|
|
1096
|
-
'
|
|
1097
|
-
'
|
|
1098
|
-
'
|
|
1099
|
-
'
|
|
1100
|
-
'
|
|
1101
|
-
'
|
|
1102
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
1103
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1104
|
-
'BwLU',
|
|
1105
|
-
'kgXLz2fJEsK',
|
|
374
|
+
'AxnbyNnVBhv0zq',
|
|
375
|
+
'BwvZC2fNzq',
|
|
376
|
+
'CMvJB3jK',
|
|
377
|
+
'z2v0u2vJB25KCW',
|
|
378
|
+
'ig1LC3nHz2u9',
|
|
379
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
380
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1106
381
|
'ywz0zxjtzxe',
|
|
1107
|
-
'
|
|
1108
|
-
'
|
|
1109
|
-
'
|
|
1110
|
-
'
|
|
1111
|
-
'
|
|
1112
|
-
'
|
|
1113
|
-
'Ahr0Chm6',
|
|
1114
|
-
'C2vUzgvYvhLWzq',
|
|
1115
|
-
'yM9KEu1HCMTKB3DU',
|
|
1116
|
-
'mtm3mJeWEfv4qxjQ',
|
|
1117
|
-
'B3b0Aw9UywW',
|
|
1118
|
-
'AxnbCNjHEq',
|
|
1119
|
-
'C3rYAw5N',
|
|
1120
|
-
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1121
|
-
'CM9VDe1LC3nHz2vjza',
|
|
1122
|
-
'y2HHBM5LBeLK',
|
|
1123
|
-
'zMLSzxnFy2HHBMDLza',
|
|
382
|
+
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
383
|
+
'Aw5KzxHpzG',
|
|
384
|
+
'y2f0y2G',
|
|
385
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
386
|
+
'ChjVDg9JB2W',
|
|
387
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1124
388
|
'C2vYDMvY',
|
|
1125
|
-
'
|
|
1126
|
-
'
|
|
1127
|
-
'
|
|
1128
|
-
'
|
|
1129
|
-
'
|
|
389
|
+
'lsba',
|
|
390
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
391
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
392
|
+
'ywz0zxi',
|
|
393
|
+
'zg9Uzq',
|
|
1130
394
|
'AhjLzG',
|
|
1131
|
-
'
|
|
1132
|
-
'
|
|
1133
|
-
'
|
|
1134
|
-
'
|
|
1135
|
-
'
|
|
1136
|
-
'
|
|
1137
|
-
'
|
|
1138
|
-
'
|
|
1139
|
-
'
|
|
1140
|
-
'AxnjBNrLz2vY',
|
|
1141
|
-
'Axnoyu4',
|
|
1142
|
-
'CxvLDwvK',
|
|
1143
|
-
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1144
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1145
|
-
'AxngAwXL',
|
|
1146
|
-
'CMvZCg9UC2u',
|
|
1147
|
-
'C3bHD25FD29YA2vYigzHAwXLza',
|
|
395
|
+
'zMLSzxnFy2HHBMDLza',
|
|
396
|
+
'Aw5FChjVz3jLC3m',
|
|
397
|
+
'z2v0vgLTzq',
|
|
398
|
+
'C2vUzgvYtMfTzq',
|
|
399
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
400
|
+
'D29YA19RzxK',
|
|
401
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
402
|
+
'mJuZntrpCM9rsM0',
|
|
403
|
+
'iIbUB3qGzM91BMq',
|
|
1148
404
|
'DgfYz2v0',
|
|
1149
|
-
'
|
|
1150
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1151
|
-
'Aw1Hz2uVD2vICa',
|
|
1152
|
-
'ls1ZzxnZAw9UlwLK',
|
|
1153
|
-
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1154
|
-
'ignSywLTzwq',
|
|
1155
|
-
'y29UDgvUDa',
|
|
1156
|
-
'C3rVCe1HAw4',
|
|
1157
|
-
'BgLTAxq',
|
|
1158
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1159
|
-
'ywrK',
|
|
1160
|
-
'lcbWCMv2Awv3pq',
|
|
1161
|
-
'AhvTyw4',
|
|
405
|
+
'zw51Bq',
|
|
1162
406
|
'zxHLy3v0Aw9Utw9Kzq',
|
|
1163
|
-
'
|
|
407
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
408
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
409
|
+
'l2HPC3rVCNK/',
|
|
410
|
+
'C29YDa',
|
|
411
|
+
'C2vUzf9TzxnZywDL',
|
|
412
|
+
'Dg9gAxHLza',
|
|
413
|
+
'cGOTls0G',
|
|
414
|
+
'ihrPBwu9',
|
|
1164
415
|
'AwrLBxbVDgvUy3LFA2v5',
|
|
1165
|
-
'
|
|
1166
|
-
'
|
|
1167
|
-
'
|
|
1168
|
-
'
|
|
1169
|
-
'
|
|
1170
|
-
'
|
|
1171
|
-
'
|
|
1172
|
-
'
|
|
1173
|
-
'
|
|
416
|
+
'z2v0rNvSBfLLyxi',
|
|
417
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
418
|
+
'y2XHAw1FDgfZA3m',
|
|
419
|
+
'odret3vUq2u',
|
|
420
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
421
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
422
|
+
'C2f2zq',
|
|
423
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
424
|
+
'mteWEersr0rv',
|
|
425
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
426
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
427
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
428
|
+
'ihr5Cgu9ywDLBNq',
|
|
429
|
+
'mtqYmZu1y2nfzhDP',
|
|
430
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
431
|
+
'AgfZ',
|
|
432
|
+
'C2vYDMvYvxjS',
|
|
433
|
+
'z2v0',
|
|
434
|
+
'ChvZAa',
|
|
435
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
436
|
+
'nteZqKvPD2fU',
|
|
437
|
+
'BgvUz3rO',
|
|
438
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
439
|
+
'Aw5FCMv2Awv3',
|
|
440
|
+
'y2HHBM5LBe5HBwu',
|
|
1174
441
|
'twvZC2fNzsbZzw50ihrVia',
|
|
1175
|
-
'
|
|
1176
|
-
'
|
|
1177
|
-
'
|
|
1178
|
-
'
|
|
1179
|
-
'
|
|
1180
|
-
'
|
|
1181
|
-
'
|
|
1182
|
-
'
|
|
442
|
+
'kgXLz2fJEsK',
|
|
443
|
+
'C2vYDMvYx21LBwjLCNm',
|
|
444
|
+
'DMfSDwu',
|
|
445
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
446
|
+
'yxjNDG',
|
|
447
|
+
'CMvZDwX0',
|
|
448
|
+
'zMLSzv9WyxrO',
|
|
449
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1183
450
|
'Dgv4Dc9WBgfPBG',
|
|
451
|
+
'l3rHC2TZl2nSywLT',
|
|
452
|
+
'iYmJiefNzw50CW',
|
|
453
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
454
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
455
|
+
'lcbWCMv2Awv3pq',
|
|
456
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
457
|
+
'v29YA2vYia',
|
|
458
|
+
'y29UDgvUDejHC2u2na',
|
|
459
|
+
'y29UDgvUDa',
|
|
460
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
461
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
462
|
+
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
463
|
+
'BgLZDfrHC2TZ',
|
|
464
|
+
'DgvZDa',
|
|
1184
465
|
'yxjYyxK',
|
|
1185
|
-
'
|
|
1186
|
-
'
|
|
1187
|
-
'
|
|
1188
|
-
'
|
|
1189
|
-
'
|
|
1190
|
-
'
|
|
1191
|
-
'
|
|
1192
|
-
'
|
|
1193
|
-
'
|
|
1194
|
-
'
|
|
1195
|
-
'
|
|
466
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlG',
|
|
467
|
+
'C3rYAw5N',
|
|
468
|
+
'C3bHD25Lza',
|
|
469
|
+
'z2v0rgf0zq',
|
|
470
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
471
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
472
|
+
'yxr0ywnOBwvUDeLK',
|
|
473
|
+
'y3jLyxrLzef0',
|
|
474
|
+
'ywDLBNrjza',
|
|
475
|
+
'DgfYz2v0zwq',
|
|
476
|
+
'CgfYC2u',
|
|
1196
477
|
'B2jQzwn0',
|
|
478
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
479
|
+
'Bwf0y2Hoyw1L',
|
|
480
|
+
'C2L6zuj5DgvZ',
|
|
481
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
482
|
+
'yxv0BZO',
|
|
483
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4',
|
|
484
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
485
|
+
'y2HHBM5LBeLK',
|
|
486
|
+
'ywjVCNrLza',
|
|
487
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
488
|
+
'DgL0Bgu',
|
|
489
|
+
'C3rHCNrLza',
|
|
1197
490
|
'igf0DgfJAg1LBNq',
|
|
1198
|
-
'
|
|
1199
|
-
'
|
|
1200
|
-
'
|
|
1201
|
-
'
|
|
1202
|
-
'
|
|
1203
|
-
'
|
|
1204
|
-
'
|
|
491
|
+
'C3bHD25FD29YA2vY',
|
|
492
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
493
|
+
'y2XPzw50',
|
|
494
|
+
'Bg9JywXLq29TCgfYzq',
|
|
495
|
+
'y3jLyxrLx3rHC2TZ',
|
|
496
|
+
'BwvZC2fNzuLK',
|
|
497
|
+
'C2vX',
|
|
498
|
+
'DgHYzwfKswq',
|
|
499
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
500
|
+
'DgHYzwfK',
|
|
501
|
+
'yMvMB3jL',
|
|
502
|
+
'iokaLca',
|
|
503
|
+
'mtqYnZHwC1HAr2e',
|
|
504
|
+
'y29UDgvUDc10ExbL',
|
|
505
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
506
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
507
|
+
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
508
|
+
'B3bLBL9PC3n1zxm',
|
|
509
|
+
'y2XHAw0GzMfPBgvK',
|
|
510
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
511
|
+
'EM9K',
|
|
512
|
+
'D29YA2vYCW',
|
|
513
|
+
'AgvHzgvYCW',
|
|
514
|
+
'w3nLCt0',
|
|
515
|
+
'ywDNCMvNyxrLswq',
|
|
516
|
+
'zMLSzw5HBwu',
|
|
517
|
+
'lMjPBG',
|
|
518
|
+
'z2v0x3DVCMTLCL9Yzxn1Bhq',
|
|
519
|
+
'CgfYC2vjBNq',
|
|
520
|
+
'C3rHCNrZv2L0Aa',
|
|
521
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
522
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
523
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
524
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
525
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
526
|
+
'v29YA2vYici',
|
|
527
|
+
'zg06',
|
|
528
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlG',
|
|
529
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWU',
|
|
530
|
+
'w3rHCMDLDd0',
|
|
531
|
+
'ywDLBNrZ',
|
|
532
|
+
'Aw5JBhvKzxm',
|
|
533
|
+
'Bwf4',
|
|
534
|
+
'zxjYB3i',
|
|
535
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
536
|
+
'z2v0tw9UDgG',
|
|
537
|
+
'C2vYDMvYtMfTzq',
|
|
1205
538
|
'DxrMoa',
|
|
1206
|
-
'
|
|
1207
|
-
'
|
|
1208
|
-
'
|
|
539
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
540
|
+
'ig1LC3nHz2vZkqOk',
|
|
541
|
+
'ywXS',
|
|
542
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
543
|
+
'mtq4mdu2s2LfwM9O',
|
|
544
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
545
|
+
'C3vJy2vZCW',
|
|
546
|
+
'l3DVCMTLCNmVzMLUAxnO',
|
|
1209
547
|
'C2vZC2LVBKLK',
|
|
1210
|
-
'
|
|
1211
|
-
'
|
|
1212
|
-
'
|
|
1213
|
-
'
|
|
1214
|
-
'
|
|
1215
|
-
'
|
|
1216
|
-
'
|
|
1217
|
-
'
|
|
1218
|
-
'
|
|
1219
|
-
'
|
|
1220
|
-
'
|
|
548
|
+
'BMfTzq',
|
|
549
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
550
|
+
'DMLLD19MAwXL',
|
|
551
|
+
'B3b0Aw9UywW',
|
|
552
|
+
'DxnLCG',
|
|
553
|
+
'ig1ZzZ0',
|
|
554
|
+
'y29TCgXLDgvK',
|
|
555
|
+
'CMvZDwX0sNnVBG',
|
|
556
|
+
'Bwv0yq',
|
|
557
|
+
'Cgf5Bg9HzePZB24',
|
|
558
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
559
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
560
|
+
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
561
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
562
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
563
|
+
'Dg9ju09tDhjPBMC',
|
|
564
|
+
'AM9PBG',
|
|
565
|
+
'l3nLCNzLCG',
|
|
566
|
+
'zgf0yq',
|
|
567
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
568
|
+
'zMfSC2u',
|
|
569
|
+
'zxH0BMfTzq',
|
|
570
|
+
'y2XHAw1uyxnRCW',
|
|
571
|
+
'iJOGC3rHDhvZpq',
|
|
572
|
+
'mZm4nty5qLniuKvZ',
|
|
573
|
+
'AgLNAa',
|
|
574
|
+
'CNvUBMLUzW',
|
|
575
|
+
'BgLTAxq',
|
|
576
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
577
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGBM90ignVBMzPz3vYzwqP',
|
|
578
|
+
'CMvHC29U',
|
|
579
|
+
'lcb3B3jRx2TLEtOG',
|
|
580
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
581
|
+
'yxr0ywnOBwvUDhm',
|
|
582
|
+
'D29YA2vYsgfUzg9MzG',
|
|
583
|
+
'Dw5JBgfPBv90yxnR',
|
|
1221
584
|
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1222
|
-
'
|
|
1223
|
-
'
|
|
1224
|
-
'
|
|
1225
|
-
'
|
|
1226
|
-
'DgHYzwfKu2HVCNrjza',
|
|
585
|
+
'CxvLDwvK',
|
|
586
|
+
'BgLZDfnLCNzLCG',
|
|
587
|
+
'l2fWAs9Hz2vUDhm/C2vYDMvYswq9',
|
|
588
|
+
'CgfKu3rHCNq',
|
|
1227
589
|
'ANnVBG',
|
|
1228
|
-
'
|
|
1229
|
-
'
|
|
1230
|
-
'
|
|
1231
|
-
'
|
|
1232
|
-
'
|
|
1233
|
-
'
|
|
1234
|
-
'z2v0u2vJB25KCW',
|
|
1235
|
-
'ywDNCMvNyxrLvhLWzq',
|
|
1236
|
-
'CgfYDgLJAxbHBNq',
|
|
1237
|
-
'Dw5RBM93BG',
|
|
1238
|
-
'l3DVCMTLCNmVCMvZDwX0p3DVCMTFA2v5pq',
|
|
1239
|
-
'zgvJAxnPB25Z',
|
|
1240
|
-
'yMfZzw5HBwu',
|
|
1241
|
-
'Dg9VBa',
|
|
1242
|
-
'ywDNCMvNyxrLswq',
|
|
1243
|
-
'z2v0x3DVCMTLCL9Yzxn1BhqGzMfPBgvK',
|
|
1244
|
-
'Bwf0y2Hoyw1L',
|
|
1245
|
-
'Aw5FChjVz3jLC3m',
|
|
1246
|
-
'DgfZA0LK',
|
|
1247
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1248
|
-
'Cgf5Bg9HzePZB24',
|
|
1249
|
-
'y2HHBM5LBa',
|
|
1250
|
-
'CgfYC2u',
|
|
590
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
591
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
592
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
593
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
594
|
+
'C2v0',
|
|
595
|
+
'z2v0twLUDxrLCW',
|
|
1251
596
|
'CgfYDgLJAxbHBNrjza',
|
|
1252
|
-
'
|
|
1253
|
-
'
|
|
1254
|
-
'
|
|
1255
|
-
'
|
|
1256
|
-
'
|
|
1257
|
-
'
|
|
1258
|
-
'
|
|
1259
|
-
'
|
|
1260
|
-
'
|
|
1261
|
-
'
|
|
1262
|
-
'
|
|
597
|
+
'l3DVCMTLCNmVC3bHD24',
|
|
598
|
+
'y2HHDa',
|
|
599
|
+
'y2HHBM5LBa',
|
|
600
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
601
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
602
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
603
|
+
'Dw5JBgfPBvrHC2S',
|
|
604
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
605
|
+
'CgfYDgLJAxbHBNq',
|
|
606
|
+
'lIbnzxnZywDLieLeoIa',
|
|
607
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1263
608
|
'D29YA2vY',
|
|
1264
|
-
'
|
|
1265
|
-
'
|
|
1266
|
-
'Dgv4Dc9JC3y',
|
|
1267
|
-
'l3rHC2TZl2nSywLT',
|
|
1268
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
1269
|
-
'Dg9KBW',
|
|
1270
|
-
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1271
|
-
'zw50CMLLCW',
|
|
1272
|
-
'y2XHAw0GzMfPBgvK',
|
|
1273
|
-
'DgHYzwfKtNvTyMvY',
|
|
1274
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1275
|
-
'u2LNBMfSihrOyxqGDgHLign1CNjLBNqGD29YA2vYihnLC3nPB24GAxmGzMLUAxnOzwqGyw5KihbYB3zPzguGysbYzxn1BhqGC3vTBwfYEs4',
|
|
1276
|
-
'ihr5Cgu9ywDLBNq',
|
|
1277
|
-
'C3rHDhvZ',
|
|
1278
|
-
'ig1LC3nHz2u9',
|
|
1279
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1280
|
-
'zNjVBq',
|
|
1281
|
-
'zxHWAxjLC0f0',
|
|
1282
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1283
|
-
'zgLZCg9ZAxrPB24',
|
|
1284
|
-
'iIbMAw5PC2HLzcb3AxrOihjLC3vSDdOG',
|
|
1285
|
-
'z2v0rNvSBfLLyxi',
|
|
1286
|
-
'yM9KEvrLEhq',
|
|
1287
|
-
'C3bSAxq',
|
|
609
|
+
'CMvHzf9OAxn0B3j5',
|
|
610
|
+
'y3jLyxrLvgfZA3m',
|
|
1288
611
|
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1289
|
-
'
|
|
1290
|
-
'
|
|
1291
|
-
'
|
|
1292
|
-
'
|
|
1293
|
-
'
|
|
1294
|
-
'
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'
|
|
612
|
+
'ue9tva',
|
|
613
|
+
'DgHYzwfKtNvTyMvY',
|
|
614
|
+
'C3rYAw5NAwz5',
|
|
615
|
+
'zgfLBw9UqxbPs2v5',
|
|
616
|
+
'yMXVy2TLza',
|
|
617
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
618
|
+
'CMvHzeHPC3rVCNK',
|
|
619
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
620
|
+
'r0vu',
|
|
621
|
+
'BwvTyMvY',
|
|
622
|
+
'DgfZA0LK',
|
|
623
|
+
'C2HHmJu2',
|
|
624
|
+
'C2vUzgvYvhLWzq',
|
|
625
|
+
'DgfZA3m'
|
|
1300
626
|
];
|
|
1301
|
-
|
|
1302
|
-
return
|
|
627
|
+
_0x1f56 = function () {
|
|
628
|
+
return _0x214060;
|
|
629
|
+
};
|
|
630
|
+
return _0x1f56();
|
|
631
|
+
}
|
|
632
|
+
function createHeaders(_0x387ed4) {
|
|
633
|
+
const _0x2fdcce = { _0x593f82: 0x24d }, _0x3dc5c4 = _0x84e1c7;
|
|
634
|
+
return {
|
|
635
|
+
'Content-Type': _0x3dc5c4(_0x2fdcce._0x593f82),
|
|
636
|
+
'x-daemon-api-key': _0x387ed4
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function toHttpBaseUrl(_0x34610f) {
|
|
640
|
+
const _0xff61f2 = {
|
|
641
|
+
_0x106e56: 0x182,
|
|
642
|
+
_0x3b54df: 0x2dc,
|
|
643
|
+
_0x509021: 0x1e3,
|
|
644
|
+
_0x42b5ea: 0x2e6,
|
|
645
|
+
_0x244fbb: 0x1d3
|
|
646
|
+
}, _0x5eeb34 = _0x84e1c7, _0x1e332a = new URL(_0x34610f);
|
|
647
|
+
if (_0x1e332a['protocol'] === _0x5eeb34(_0xff61f2._0x106e56))
|
|
648
|
+
_0x1e332a['protocol'] = _0x5eeb34(_0xff61f2._0x3b54df);
|
|
649
|
+
else
|
|
650
|
+
_0x1e332a[_0x5eeb34(_0xff61f2._0x509021)] === _0x5eeb34(_0xff61f2._0x42b5ea) && (_0x1e332a[_0x5eeb34(0x1e3)] = _0x5eeb34(0x2d9));
|
|
651
|
+
return _0x1e332a[_0x5eeb34(0x173)]()[_0x5eeb34(_0xff61f2._0x244fbb)](/\/$/, '');
|
|
652
|
+
}
|
|
653
|
+
function isMentionBoundary(_0x292df8) {
|
|
654
|
+
return !_0x292df8 || /\s|[([{'",。!?、:;]/['test'](_0x292df8);
|
|
655
|
+
}
|
|
656
|
+
function isMentionTerminal(_0x1ece59) {
|
|
657
|
+
const _0x1629da = _0x84e1c7;
|
|
658
|
+
return !_0x1ece59 || /\s|[)\]}'",。!?、:;,.!?]/[_0x1629da(0x231)](_0x1ece59);
|
|
659
|
+
}
|
|
660
|
+
function buildMatchableEntries(_0xbe2243) {
|
|
661
|
+
const _0x3b0e02 = {
|
|
662
|
+
_0x4f0607: 0x274,
|
|
663
|
+
_0x16e946: 0x171,
|
|
664
|
+
_0x2bf483: 0x213,
|
|
665
|
+
_0x20fcce: 0x1f8
|
|
666
|
+
}, _0x4c82e6 = _0x84e1c7, _0x3b0459 = [];
|
|
667
|
+
for (const _0x439f8c of [
|
|
668
|
+
..._0xbe2243[_0x4c82e6(_0x3b0e02._0x4f0607)],
|
|
669
|
+
..._0xbe2243[_0x4c82e6(_0x3b0e02._0x16e946)]
|
|
670
|
+
]) {
|
|
671
|
+
_0x3b0459[_0x4c82e6(_0x3b0e02._0x2bf483)]({
|
|
672
|
+
'matchName': _0x439f8c['name'],
|
|
673
|
+
'matchNameLower': _0x439f8c[_0x4c82e6(0x285)][_0x4c82e6(_0x3b0e02._0x20fcce)](),
|
|
674
|
+
'participantId': _0x439f8c['id']
|
|
675
|
+
}), _0x439f8c['id'] !== _0x439f8c['name'] && _0x3b0459['push']({
|
|
676
|
+
'matchName': _0x439f8c['id'],
|
|
677
|
+
'matchNameLower': _0x439f8c['id']['toLocaleLowerCase'](),
|
|
678
|
+
'participantId': _0x439f8c['id']
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
return _0x3b0459;
|
|
682
|
+
}
|
|
683
|
+
function extractMentionedParticipantIds(_0x3f82e0, _0x5cd019) {
|
|
684
|
+
const _0x19e348 = {
|
|
685
|
+
_0x19cc21: 0x1fb,
|
|
686
|
+
_0x198e50: 0x210,
|
|
687
|
+
_0x4806fd: 0x2e1,
|
|
688
|
+
_0x3a9c9c: 0x2b5,
|
|
689
|
+
_0x40586f: 0x216
|
|
690
|
+
}, _0xfe7c6a = { _0x53921d: 0x269 }, _0x58b97c = _0x84e1c7, _0x4f2509 = buildMatchableEntries(_0x5cd019)[_0x58b97c(_0x19e348._0x19cc21)]((_0x2aad33, _0x59ec47) => _0x59ec47[_0x58b97c(0x240)][_0x58b97c(0x216)] - _0x2aad33['matchName']['length']), _0x3b2f89 = [], _0xe2add5 = new Set();
|
|
691
|
+
for (let _0xec8f0 = 0x0; _0xec8f0 < _0x3f82e0['length']; _0xec8f0 += 0x1) {
|
|
692
|
+
if (_0x3f82e0[_0xec8f0] !== '@' || !isMentionBoundary(_0x3f82e0[_0xec8f0 - 0x1]))
|
|
693
|
+
continue;
|
|
694
|
+
const _0x152a3e = _0x3f82e0['slice'](_0xec8f0 + 0x1), _0x3864ff = _0x152a3e['toLocaleLowerCase'](), _0x4262e1 = _0x4f2509['find'](_0x4059de => {
|
|
695
|
+
const _0x568823 = _0x58b97c;
|
|
696
|
+
if (!_0x3864ff[_0x568823(_0xfe7c6a._0x53921d)](_0x4059de[_0x568823(0x1dc)]))
|
|
697
|
+
return ![];
|
|
698
|
+
return isMentionTerminal(_0x152a3e[_0x4059de[_0x568823(0x240)][_0x568823(0x216)]]);
|
|
699
|
+
});
|
|
700
|
+
if (!_0x4262e1 || _0xe2add5[_0x58b97c(_0x19e348._0x198e50)](_0x4262e1['participantId']))
|
|
701
|
+
continue;
|
|
702
|
+
_0xe2add5[_0x58b97c(_0x19e348._0x4806fd)](_0x4262e1[_0x58b97c(_0x19e348._0x3a9c9c)]), _0x3b2f89[_0x58b97c(0x213)](_0x4262e1[_0x58b97c(_0x19e348._0x3a9c9c)]), _0xec8f0 += _0x4262e1[_0x58b97c(0x240)][_0x58b97c(_0x19e348._0x40586f)];
|
|
703
|
+
}
|
|
704
|
+
return _0x3b2f89;
|
|
705
|
+
}
|
|
706
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
707
|
+
function anySignal(..._0x24e3b3) {
|
|
708
|
+
const _0x5de929 = {
|
|
709
|
+
_0x5be611: 0x2a3,
|
|
710
|
+
_0x2cc253: 0x2e2
|
|
711
|
+
}, _0xe22063 = _0x84e1c7, _0x213182 = new AbortController();
|
|
712
|
+
for (const _0x6ce29f of _0x24e3b3) {
|
|
713
|
+
if (_0x6ce29f[_0xe22063(0x247)])
|
|
714
|
+
return _0x213182['abort'](_0x6ce29f[_0xe22063(_0x5de929._0x5be611)]), _0x213182['signal'];
|
|
715
|
+
_0x6ce29f[_0xe22063(0x26b)](_0xe22063(0x195), () => _0x213182['abort'](_0x6ce29f[_0xe22063(0x2a3)]), {
|
|
716
|
+
'once': !![],
|
|
717
|
+
'signal': _0x213182[_0xe22063(_0x5de929._0x2cc253)]
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
return _0x213182[_0xe22063(_0x5de929._0x2cc253)];
|
|
721
|
+
}
|
|
722
|
+
function createInternalAgentClient(_0xdaecdf) {
|
|
723
|
+
const _0x4073fb = {
|
|
724
|
+
_0x39cc75: 0x242,
|
|
725
|
+
_0x334b5a: 0x1e4,
|
|
726
|
+
_0x3a5565: 0x1e4,
|
|
727
|
+
_0x89cb63: 0x26e,
|
|
728
|
+
_0x241a3f: 0x1d5,
|
|
729
|
+
_0x4a4c90: 0x206,
|
|
730
|
+
_0x3e07fa: 0x1ce,
|
|
731
|
+
_0x396cb6: 0x1d5,
|
|
732
|
+
_0x3ac2d6: 0x1d5,
|
|
733
|
+
_0x5227a3: 0x211
|
|
734
|
+
}, _0x311ebd = {
|
|
735
|
+
_0x5730ae: 0x173,
|
|
736
|
+
_0x7a0e88: 0x2cd,
|
|
737
|
+
_0x3be2dc: 0x2e4,
|
|
738
|
+
_0x45eb7b: 0x276,
|
|
739
|
+
_0x3c5dec: 0x17d,
|
|
740
|
+
_0x5dccaf: 0x1c2,
|
|
741
|
+
_0x3a1128: 0x234,
|
|
742
|
+
_0x494186: 0x2c6,
|
|
743
|
+
_0xddf19c: 0x264,
|
|
744
|
+
_0x3cc77a: 0x168,
|
|
745
|
+
_0x36109f: 0x2b3,
|
|
746
|
+
_0x4a3030: 0x169,
|
|
747
|
+
_0x34b6be: 0x28e,
|
|
748
|
+
_0x54619a: 0x212,
|
|
749
|
+
_0x478d47: 0x23a,
|
|
750
|
+
_0x15e1bd: 0x251,
|
|
751
|
+
_0x2d515c: 0x20a
|
|
752
|
+
}, _0x192f77 = { _0x581a4c: 0x253 }, _0x2f5f8b = {
|
|
753
|
+
_0x1d2877: 0x1cd,
|
|
754
|
+
_0x558515: 0x1cd,
|
|
755
|
+
_0x378e20: 0x2cd,
|
|
756
|
+
_0x15d319: 0x19c,
|
|
757
|
+
_0x34c30e: 0x297,
|
|
758
|
+
_0x193959: 0x191,
|
|
759
|
+
_0x3343b7: 0x212
|
|
760
|
+
}, _0x233c80 = {
|
|
761
|
+
_0x2f8873: 0x1a3,
|
|
762
|
+
_0x325ca7: 0x23b,
|
|
763
|
+
_0x5b40e3: 0x2c7,
|
|
764
|
+
_0x5b1267: 0x22b,
|
|
765
|
+
_0x16d325: 0x2c5,
|
|
766
|
+
_0x760980: 0x297,
|
|
767
|
+
_0x5d97f7: 0x16e
|
|
768
|
+
}, _0x1cc6eb = {
|
|
769
|
+
_0x3a5713: 0x281,
|
|
770
|
+
_0x2808a6: 0x2db
|
|
771
|
+
}, _0x5a5cfd = {
|
|
772
|
+
_0x151970: 0x18a,
|
|
773
|
+
_0x39b175: 0x23b,
|
|
774
|
+
_0x37c68e: 0x2c5
|
|
775
|
+
}, _0x14e9fb = {
|
|
776
|
+
_0x506ccb: 0x23b,
|
|
777
|
+
_0xbafc3f: 0x2c7
|
|
778
|
+
}, _0x10936e = { _0x5ba742: 0x18a }, _0x5e7b8b = {
|
|
779
|
+
_0x5414ac: 0x1cf,
|
|
780
|
+
_0x3a1018: 0x2b3,
|
|
781
|
+
_0x5075f3: 0x18a
|
|
782
|
+
}, _0x5b3f1d = {
|
|
783
|
+
_0x5884df: 0x2c7,
|
|
784
|
+
_0x4730cb: 0x277,
|
|
785
|
+
_0xbe318a: 0x28c,
|
|
786
|
+
_0x1273bd: 0x19d
|
|
787
|
+
}, _0x749d9f = {
|
|
788
|
+
_0x3a4eea: 0x167,
|
|
789
|
+
_0x1cf22a: 0x2c7,
|
|
790
|
+
_0x33bdcc: 0x297,
|
|
791
|
+
_0x2583f2: 0x19d,
|
|
792
|
+
_0x1e2760: 0x29f
|
|
793
|
+
}, _0x193005 = { _0x37dbbb: 0x2c5 }, _0x154045 = { _0xab7ff1: 0x297 }, _0x58ffeb = {
|
|
794
|
+
_0x21ae11: 0x23b,
|
|
795
|
+
_0x27ffd1: 0x22c,
|
|
796
|
+
_0x18e6d2: 0x246,
|
|
797
|
+
_0x3cb907: 0x253
|
|
798
|
+
}, _0x4988e6 = {
|
|
799
|
+
_0x44d4da: 0x1c9,
|
|
800
|
+
_0x17337a: 0x2b3,
|
|
801
|
+
_0x211642: 0x2a0,
|
|
802
|
+
_0x57ab0d: 0x2b3,
|
|
803
|
+
_0x197c98: 0x253,
|
|
804
|
+
_0x50d6fa: 0x246,
|
|
805
|
+
_0x579e86: 0x256,
|
|
806
|
+
_0x10cf5f: 0x1e9,
|
|
807
|
+
_0x1384c3: 0x18a,
|
|
808
|
+
_0x4028e3: 0x297,
|
|
809
|
+
_0x22c728: 0x169,
|
|
810
|
+
_0x44d7da: 0x1e8,
|
|
811
|
+
_0x2cb1ab: 0x28d,
|
|
812
|
+
_0x34077a: 0x2e4
|
|
813
|
+
}, _0x2b039f = { _0x2bb5a8: 0x285 }, _0x49fb40 = {
|
|
814
|
+
_0x3d5064: 0x2ce,
|
|
815
|
+
_0x4bb98f: 0x2b5
|
|
816
|
+
}, _0x4be8cf = {
|
|
817
|
+
_0x370521: 0x2de,
|
|
818
|
+
_0x1cfb85: 0x255,
|
|
819
|
+
_0x5322aa: 0x2c6,
|
|
820
|
+
_0x50eac4: 0x1c2,
|
|
821
|
+
_0x168c7f: 0x253,
|
|
822
|
+
_0x275039: 0x269,
|
|
823
|
+
_0x2d81cb: 0x198
|
|
824
|
+
}, _0x4d9fb2 = {
|
|
825
|
+
_0x4c4acf: 0x1e8,
|
|
826
|
+
_0x989f47: 0x2c6,
|
|
827
|
+
_0x38398d: 0x1c2,
|
|
828
|
+
_0x376ca4: 0x253,
|
|
829
|
+
_0x26f7b3: 0x253
|
|
830
|
+
}, _0x5d2dfd = { _0x1981f0: 0x274 }, _0x59255e = { _0xc272eb: 0x1e1 }, _0xab2c8d = {
|
|
831
|
+
_0x4b806e: 0x18a,
|
|
832
|
+
_0x2ed179: 0x1e5,
|
|
833
|
+
_0x7947e0: 0x169,
|
|
834
|
+
_0x2c8154: 0x297,
|
|
835
|
+
_0x44fa18: 0x1d2,
|
|
836
|
+
_0x11f557: 0x297,
|
|
837
|
+
_0x52dfea: 0x1e5,
|
|
838
|
+
_0x40a71e: 0x285
|
|
839
|
+
}, _0x184e82 = { _0x307b25: 0x297 }, _0x3edaf1 = {
|
|
840
|
+
_0x45c1c4: 0x2c7,
|
|
841
|
+
_0x4d9d12: 0x2c5,
|
|
842
|
+
_0xe8cdab: 0x19c
|
|
843
|
+
}, _0x33d8c9 = {
|
|
844
|
+
_0x42449b: 0x2e2,
|
|
845
|
+
_0x396182: 0x277,
|
|
846
|
+
_0x1d9245: 0x19c
|
|
847
|
+
}, _0x5e14da = {
|
|
848
|
+
_0x5ce46e: 0x2e2,
|
|
849
|
+
_0x61d937: 0x2e2,
|
|
850
|
+
_0x557f55: 0x277
|
|
851
|
+
}, _0x4a0d58 = {
|
|
852
|
+
_0x5efaca: 0x234,
|
|
853
|
+
_0x7dd502: 0x1b2,
|
|
854
|
+
_0x5b3c2f: 0x212,
|
|
855
|
+
_0x3acb58: 0x21d
|
|
856
|
+
}, _0x391a39 = {
|
|
857
|
+
_0x4e252e: 0x173,
|
|
858
|
+
_0x5ca15e: 0x23d
|
|
859
|
+
}, _0x2bba10 = {
|
|
860
|
+
_0x3bc7df: 0x16f,
|
|
861
|
+
_0x4ae886: 0x259,
|
|
862
|
+
_0x4ea192: 0x1d5,
|
|
863
|
+
_0x35c950: 0x1df,
|
|
864
|
+
_0x5c0011: 0x228,
|
|
865
|
+
_0xaf080f: 0x18d
|
|
866
|
+
}, _0x257a80 = _0x84e1c7, _0x37f05e = _0xdaecdf[_0x257a80(0x185)] ?? fetch, _0xe668f9 = _0xdaecdf[_0x257a80(_0x4073fb._0x39cc75)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x34ae50 = typeof _0xdaecdf[_0x257a80(_0x4073fb._0x334b5a)] === _0x257a80(0x1b9) && _0xdaecdf['initialLastSeenSeq'] > 0x0 ? _0xdaecdf[_0x257a80(_0x4073fb._0x3a5565)] : 0x0, _0x334f2e = _0xdaecdf[_0x257a80(_0x4073fb._0x89cb63)]?.[_0x257a80(_0x4073fb._0x241a3f)]() || void 0x0, _0x4fdff0 = _0xdaecdf[_0x257a80(0x284)]?.['trim']() || void 0x0, _0x29afb4 = _0xdaecdf[_0x257a80(_0x4073fb._0x4a4c90)] === !![], _0x3d9d4f = _0xdaecdf[_0x257a80(_0x4073fb._0x3e07fa)]?.[_0x257a80(_0x4073fb._0x396cb6)]() || void 0x0, _0xf601bd = _0xdaecdf[_0x257a80(0x2cc)]?.[_0x257a80(_0x4073fb._0x3ac2d6)]() || void 0x0, _0x38dae4 = createHeaders(_0xdaecdf[_0x257a80(0x2c8)]), _0x2ba3ae = toHttpBaseUrl(_0xdaecdf[_0x257a80(_0x4073fb._0x5227a3)]);
|
|
867
|
+
let _0x4544d6 = null;
|
|
868
|
+
const _0x4b392e = new Map();
|
|
869
|
+
let _0x3032e9 = _0x34ae50, _0x4b96d8 = _0x34ae50;
|
|
870
|
+
function _0x1b79ac(_0x140791) {
|
|
871
|
+
const _0x367d8a = _0x257a80, _0x44de2d = _0x140791[_0x367d8a(_0x2bba10._0x3bc7df)][_0x367d8a(0x262)][_0x367d8a(0x212)](_0x367d8a(_0x2bba10._0x4ae886)) ?? _0x367d8a(0x188), _0x36041e = _0x140791[_0x367d8a(0x19b)][_0x367d8a(_0x2bba10._0x4ea192)]()[_0x367d8a(0x1d3)](/\s+/g, '\x20')[_0x367d8a(0x16b)](0x0, 0x78) || '<empty>';
|
|
872
|
+
return _0x367d8a(0x1c5) + _0x140791[_0x367d8a(0x1ba)] + _0x367d8a(_0x2bba10._0x35c950) + _0x140791[_0x367d8a(0x16f)][_0x367d8a(0x1cf)] + ',\x20content-type=' + _0x44de2d + _0x367d8a(_0x2bba10._0x5c0011) + _0x36041e + _0x367d8a(_0x2bba10._0xaf080f);
|
|
873
|
+
}
|
|
874
|
+
async function _0x5e8af7(_0x5737ff, _0x2dd0eb) {
|
|
875
|
+
const _0x4f9358 = _0x257a80, _0x19d855 = Buffer[_0x4f9358(0x2dd)](await _0x2dd0eb[_0x4f9358(0x1d6)]())[_0x4f9358(_0x391a39._0x4e252e)](_0x4f9358(0x27b));
|
|
876
|
+
if (!_0x19d855[_0x4f9358(0x1d5)]())
|
|
877
|
+
return {};
|
|
878
|
+
try {
|
|
879
|
+
return JSON[_0x4f9358(_0x391a39._0x5ca15e)](_0x19d855);
|
|
880
|
+
} catch {
|
|
881
|
+
throw new Error(_0x1b79ac({
|
|
882
|
+
'bodyText': _0x19d855,
|
|
883
|
+
'requestUrl': _0x5737ff,
|
|
884
|
+
'response': _0x2dd0eb
|
|
885
|
+
}));
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
function _0x5f2b67(_0x679b3f, _0x3b64ff) {
|
|
889
|
+
const _0x3c9cee = _0x257a80, _0x532e4f = typeof _0x3b64ff['idempotency_key'] === _0x3c9cee(_0x4a0d58._0x5efaca) ? _0x3b64ff[_0x3c9cee(0x200)]['trim']() : '';
|
|
890
|
+
if (_0x532e4f)
|
|
891
|
+
return _0x532e4f;
|
|
892
|
+
const _0xd18def = Date[_0x3c9cee(0x1a5)]();
|
|
893
|
+
for (const [_0xea4e8c, _0x2b8ba7] of _0x4b392e) {
|
|
894
|
+
_0x2b8ba7['expiresAt'] <= _0xd18def && _0x4b392e['delete'](_0xea4e8c);
|
|
895
|
+
}
|
|
896
|
+
const _0x34e85e = {
|
|
897
|
+
..._0x3b64ff,
|
|
898
|
+
'idempotency_key': void 0x0
|
|
899
|
+
}, _0x20ad9d = createHash(_0x3c9cee(0x2d0))[_0x3c9cee(_0x4a0d58._0x7dd502)](_0x679b3f + ':' + stableStringify(_0x34e85e))['digest'](_0x3c9cee(0x170)), _0x28befa = _0x679b3f + ':' + _0x20ad9d, _0x4b3836 = _0x4b392e[_0x3c9cee(_0x4a0d58._0x5b3c2f)](_0x28befa);
|
|
900
|
+
if (_0x4b3836)
|
|
901
|
+
return _0x4b3836[_0x3c9cee(_0x4a0d58._0x3acb58)];
|
|
902
|
+
const _0x130c19 = _0x3c9cee(0x243) + _0x679b3f + ':' + randomUUID();
|
|
903
|
+
return _0x4b392e['set'](_0x28befa, {
|
|
904
|
+
'expiresAt': _0xd18def + 0x5 * 0x3c * 0x3e8,
|
|
905
|
+
'value': _0x130c19
|
|
906
|
+
}), _0x130c19;
|
|
907
|
+
}
|
|
908
|
+
async function _0x2a9a06(_0x519746, _0x4fdd00) {
|
|
909
|
+
const _0x4074c8 = _0x257a80, _0x3a4255 = new AbortController(), _0xa4a5bf = setTimeout(() => _0x3a4255[_0x4074c8(0x195)](), _0xe668f9), _0x2100fd = _0x4fdd00?.[_0x4074c8(_0x5e14da._0x5ce46e)] ? anySignal(_0x4fdd00[_0x4074c8(_0x5e14da._0x61d937)], _0x3a4255['signal']) : _0x3a4255[_0x4074c8(0x2e2)], _0x57ef88 = '' + _0x2ba3ae + _0x519746;
|
|
910
|
+
try {
|
|
911
|
+
const _0x569efa = await _0x37f05e(_0x57ef88, {
|
|
912
|
+
..._0x4fdd00,
|
|
913
|
+
'signal': _0x2100fd
|
|
914
|
+
}), _0x107e3b = await _0x5e8af7(_0x57ef88, _0x569efa);
|
|
915
|
+
if (!_0x569efa['ok'] || _0x107e3b[_0x4074c8(0x282)] === ![])
|
|
916
|
+
throw new Error(asErrorMessage(_0x107e3b[_0x4074c8(_0x5e14da._0x557f55)], 'HTTP\x20' + _0x569efa['status']));
|
|
917
|
+
return _0x107e3b;
|
|
918
|
+
} finally {
|
|
919
|
+
clearTimeout(_0xa4a5bf);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
async function _0x3c9e5d(_0x4870e6, _0x570657) {
|
|
923
|
+
const _0x36a6ce = _0x257a80, _0x53e7d9 = new AbortController(), _0x21bdbd = setTimeout(() => _0x53e7d9['abort'](), _0xe668f9), _0x209a99 = _0x570657?.[_0x36a6ce(_0x33d8c9._0x42449b)] ? anySignal(_0x570657['signal'], _0x53e7d9['signal']) : _0x53e7d9[_0x36a6ce(0x2e2)], _0x5b5cfc = '' + _0x2ba3ae + _0x4870e6;
|
|
924
|
+
try {
|
|
925
|
+
const _0x5c5847 = await _0x37f05e(_0x5b5cfc, {
|
|
926
|
+
..._0x570657,
|
|
927
|
+
'signal': _0x209a99
|
|
928
|
+
}), _0x5486c = await _0x5e8af7(_0x5b5cfc, _0x5c5847);
|
|
929
|
+
if (!_0x5c5847['ok'])
|
|
930
|
+
throw new Error(asErrorMessage(_0x5486c[_0x36a6ce(_0x33d8c9._0x396182)], _0x36a6ce(_0x33d8c9._0x1d9245) + _0x5c5847['status']));
|
|
931
|
+
return _0x5486c;
|
|
932
|
+
} finally {
|
|
933
|
+
clearTimeout(_0x21bdbd);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
async function _0x258ce3(_0x1d6fe8) {
|
|
937
|
+
const _0x2f17eb = _0x257a80;
|
|
938
|
+
if (!_0x4fdff0 || _0x1d6fe8 <= _0x4b96d8)
|
|
939
|
+
return;
|
|
940
|
+
await _0x2a9a06(_0x2f17eb(0x2a9) + encodeURIComponent(_0x4fdff0) + _0x2f17eb(0x290), {
|
|
941
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x1d6fe8 }),
|
|
942
|
+
'headers': _0x38dae4,
|
|
943
|
+
'method': 'PATCH'
|
|
944
|
+
}), _0x4b96d8 = _0x1d6fe8;
|
|
945
|
+
}
|
|
946
|
+
async function _0x2120e3(_0x342d1d) {
|
|
947
|
+
const _0x2ee19e = _0x257a80;
|
|
948
|
+
if (!_0x334f2e || !_0x3d9d4f || _0x342d1d <= _0x4b96d8)
|
|
949
|
+
return;
|
|
950
|
+
const _0x41beb0 = await _0x37f05e(_0x334f2e + '/workers/context-metrics', {
|
|
951
|
+
'body': JSON[_0x2ee19e(_0x3edaf1._0x45c1c4)]({
|
|
952
|
+
'last_seen_seq': _0x342d1d,
|
|
953
|
+
'worker_session_id': _0x3d9d4f
|
|
954
|
+
}),
|
|
955
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
956
|
+
'method': _0x2ee19e(_0x3edaf1._0x4d9d12)
|
|
957
|
+
});
|
|
958
|
+
if (!_0x41beb0['ok'])
|
|
959
|
+
throw new Error(_0x2ee19e(_0x3edaf1._0xe8cdab) + _0x41beb0[_0x2ee19e(0x1cf)]);
|
|
960
|
+
_0x4b96d8 = _0x342d1d;
|
|
961
|
+
}
|
|
962
|
+
async function _0x532698(_0x47e8e8) {
|
|
963
|
+
const _0x1dfc95 = _0x257a80, _0x7cb561 = parseTarget(_0x47e8e8), _0x4bbca8 = await _0x2a9a06(_0x1dfc95(0x18a) + _0xdaecdf['agentId'] + _0x1dfc95(0x2b1), {
|
|
964
|
+
'body': JSON['stringify']({ 'target': _0x7cb561[_0x1dfc95(0x1f5)] }),
|
|
965
|
+
'headers': _0x38dae4,
|
|
966
|
+
'method': _0x1dfc95(0x2c5)
|
|
967
|
+
});
|
|
968
|
+
return {
|
|
969
|
+
'channelId': _0x4bbca8[_0x1dfc95(_0x184e82._0x307b25)]?.['channelId'] ?? '',
|
|
970
|
+
'target': _0x7cb561[_0x1dfc95(0x1e8)],
|
|
971
|
+
'threadId': _0x4bbca8[_0x1dfc95(0x297)]?.['threadId']
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
async function _0xa9a3f7() {
|
|
975
|
+
const _0x50abb2 = _0x257a80;
|
|
976
|
+
return !_0x4544d6 && (_0x4544d6 = (async () => {
|
|
977
|
+
const _0x1cba70 = _0x4ff1, _0x2c36c2 = await _0x2a9a06(_0x1cba70(_0xab2c8d._0x4b806e) + _0xdaecdf[_0x1cba70(0x23b)] + _0x1cba70(0x296), {
|
|
978
|
+
'headers': _0x38dae4,
|
|
979
|
+
'method': _0x1cba70(0x2cd)
|
|
980
|
+
}), _0x259b9e = _0x2c36c2[_0x1cba70(0x297)]?.[_0x1cba70(_0xab2c8d._0x2ed179)]['id'] ?? '';
|
|
981
|
+
let _0x47170a = [];
|
|
982
|
+
try {
|
|
983
|
+
const _0x705f1b = await _0x2a9a06(_0x1cba70(0x2ac) + encodeURIComponent(_0x259b9e), {
|
|
984
|
+
'headers': _0x38dae4,
|
|
985
|
+
'method': 'GET'
|
|
986
|
+
});
|
|
987
|
+
_0x47170a = _0x705f1b[_0x1cba70(0x297)] ?? [];
|
|
988
|
+
} catch {
|
|
989
|
+
_0x47170a = [];
|
|
990
|
+
}
|
|
991
|
+
const _0x27768b = _0x47170a['map'](_0x5475c7 => ({
|
|
992
|
+
'id': _0x5475c7[_0x1cba70(0x190)]?.['id'] ?? _0x5475c7['server_members']?.[_0x1cba70(0x2b5)] ?? '',
|
|
993
|
+
'name': _0x5475c7[_0x1cba70(0x190)]?.[_0x1cba70(0x285)] ?? _0x5475c7[_0x1cba70(0x21c)]?.[_0x1cba70(0x2b5)] ?? ''
|
|
994
|
+
}))[_0x1cba70(0x1d2)](_0x4dcddb => _0x4dcddb['id']), _0xabbf24 = new Set(_0x27768b[_0x1cba70(_0xab2c8d._0x7947e0)](_0x7d26fb => _0x7d26fb['id'])), _0xe67c63 = (_0x2c36c2[_0x1cba70(_0xab2c8d._0x2c8154)]?.['members'] ?? [])[_0x1cba70(_0xab2c8d._0x44fa18)](_0x2adfbd => !_0xabbf24[_0x1cba70(0x210)](_0x5ed678(_0x2adfbd)))['map'](_0x427f32 => ({
|
|
995
|
+
'id': _0x5ed678(_0x427f32),
|
|
996
|
+
'name': _0x21b599(_0x427f32)
|
|
997
|
+
}))['filter'](_0x46c547 => _0x46c547['id']);
|
|
998
|
+
return {
|
|
999
|
+
'agents': _0x27768b,
|
|
1000
|
+
'channels': _0x2c36c2[_0x1cba70(_0xab2c8d._0x2c8154)]?.['channels'] ?? [],
|
|
1001
|
+
'humans': _0xe67c63,
|
|
1002
|
+
'serverId': _0x259b9e,
|
|
1003
|
+
'serverName': _0x2c36c2[_0x1cba70(_0xab2c8d._0x11f557)]?.[_0x1cba70(_0xab2c8d._0x52dfea)][_0x1cba70(_0xab2c8d._0x40a71e)] ?? _0x259b9e
|
|
1004
|
+
};
|
|
1005
|
+
})()[_0x50abb2(_0x59255e._0xc272eb)](_0xfe79f3 => {
|
|
1006
|
+
_0x4544d6 = null;
|
|
1007
|
+
throw _0xfe79f3;
|
|
1008
|
+
})), _0x4544d6;
|
|
1009
|
+
}
|
|
1010
|
+
function _0x38cc54(_0x472318, _0x5524c8) {
|
|
1011
|
+
const _0x368e41 = _0x257a80;
|
|
1012
|
+
return _0x5524c8[_0x368e41(_0x5d2dfd._0x1981f0)][_0x368e41(0x162)](_0x3d106b => _0x3d106b['id'] === _0x472318 || _0x3d106b[_0x368e41(0x285)] === _0x472318) ? _0x368e41(0x194) : _0x368e41(0x2d4);
|
|
1013
|
+
}
|
|
1014
|
+
function _0x58382d(_0x54c66f) {
|
|
1015
|
+
const _0x3752dc = _0x257a80;
|
|
1016
|
+
if (_0x54c66f['threadNumber'] != null)
|
|
1017
|
+
return _0x54c66f[_0x3752dc(_0x4d9fb2._0x4c4acf)] + ':t' + _0x54c66f[_0x3752dc(_0x4d9fb2._0x989f47)];
|
|
1018
|
+
if (_0x54c66f[_0x3752dc(_0x4d9fb2._0x38398d)])
|
|
1019
|
+
return _0x54c66f[_0x3752dc(0x1e8)] + ':' + _0x54c66f['rootMessageId'];
|
|
1020
|
+
if (_0x54c66f[_0x3752dc(_0x4d9fb2._0x376ca4)])
|
|
1021
|
+
return _0x54c66f[_0x3752dc(_0x4d9fb2._0x4c4acf)] + ':' + _0x54c66f[_0x3752dc(_0x4d9fb2._0x26f7b3)]['slice'](0x0, 0x8);
|
|
1022
|
+
return _0x54c66f[_0x3752dc(_0x4d9fb2._0x4c4acf)];
|
|
1023
|
+
}
|
|
1024
|
+
function _0x49d73e(_0x5450a6, _0x51cf95) {
|
|
1025
|
+
const _0x2e4b7e = _0x257a80;
|
|
1026
|
+
try {
|
|
1027
|
+
const _0x564b9e = parseTarget(_0x5450a6);
|
|
1028
|
+
if (_0x564b9e[_0x2e4b7e(_0x4be8cf._0x370521)] !== _0x2e4b7e(_0x4be8cf._0x1cfb85) || _0x564b9e['channelTarget'] !== _0x51cf95[_0x2e4b7e(0x1e8)])
|
|
1029
|
+
return ![];
|
|
1030
|
+
if (_0x51cf95[_0x2e4b7e(0x2c6)] != null && _0x564b9e[_0x2e4b7e(0x198)] === 't' + _0x51cf95[_0x2e4b7e(_0x4be8cf._0x5322aa)])
|
|
1031
|
+
return !![];
|
|
1032
|
+
if (_0x51cf95[_0x2e4b7e(_0x4be8cf._0x50eac4)])
|
|
1033
|
+
return _0x564b9e[_0x2e4b7e(0x198)] === _0x51cf95['rootMessageId'] || _0x51cf95[_0x2e4b7e(0x1c2)][_0x2e4b7e(0x269)](_0x564b9e['threadShortId']);
|
|
1034
|
+
if (_0x51cf95[_0x2e4b7e(_0x4be8cf._0x168c7f)])
|
|
1035
|
+
return _0x564b9e[_0x2e4b7e(0x198)] === _0x51cf95[_0x2e4b7e(0x253)] || _0x51cf95['threadId'][_0x2e4b7e(_0x4be8cf._0x275039)](_0x564b9e[_0x2e4b7e(_0x4be8cf._0x2d81cb)]);
|
|
1036
|
+
return ![];
|
|
1037
|
+
} catch {
|
|
1038
|
+
return ![];
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
function _0x5ed678(_0x5adda5) {
|
|
1042
|
+
const _0x34f735 = _0x257a80;
|
|
1043
|
+
return _0x5adda5[_0x34f735(_0x49fb40._0x3d5064)]?.[_0x34f735(_0x49fb40._0x4bb98f)] ?? _0x5adda5['participant']?.['id'] ?? _0x5adda5[_0x34f735(0x2b5)] ?? '';
|
|
1044
|
+
}
|
|
1045
|
+
function _0x21b599(_0x4b83e3) {
|
|
1046
|
+
const _0x248009 = _0x257a80;
|
|
1047
|
+
return _0x4b83e3[_0x248009(0x2be)]?.[_0x248009(_0x2b039f._0x2bb5a8)] ?? _0x5ed678(_0x4b83e3);
|
|
1048
|
+
}
|
|
1049
|
+
async function _0x130faa(_0x15c3f8) {
|
|
1050
|
+
const _0x2841b3 = _0x257a80, _0x285de9 = Math[_0x2841b3(_0x4988e6._0x44d4da)](_0x15c3f8['limit'] ?? 0x32, 0x64), _0x225334 = await _0xa9a3f7(), _0x14525a = new URLSearchParams();
|
|
1051
|
+
_0x14525a[_0x2841b3(_0x4988e6._0x17337a)](_0x2841b3(_0x4988e6._0x211642), String(_0x285de9));
|
|
1052
|
+
_0x15c3f8['threadId'] ? (_0x14525a[_0x2841b3(_0x4988e6._0x57ab0d)](_0x2841b3(0x253), _0x15c3f8[_0x2841b3(_0x4988e6._0x197c98)]), _0x14525a[_0x2841b3(_0x4988e6._0x57ab0d)](_0x2841b3(0x246), _0x15c3f8[_0x2841b3(_0x4988e6._0x50d6fa)])) : _0x14525a[_0x2841b3(0x2b3)](_0x2841b3(0x246), _0x15c3f8[_0x2841b3(_0x4988e6._0x50d6fa)]);
|
|
1053
|
+
_0x15c3f8[_0x2841b3(_0x4988e6._0x579e86)] && _0x14525a[_0x2841b3(_0x4988e6._0x17337a)]('cursor', String(_0x15c3f8[_0x2841b3(0x256)]));
|
|
1054
|
+
_0x15c3f8['after'] !== void 0x0 && _0x14525a[_0x2841b3(0x2b3)](_0x2841b3(_0x4988e6._0x10cf5f), String(_0x15c3f8[_0x2841b3(0x1e9)]));
|
|
1055
|
+
const _0x4f40a0 = await _0x2a9a06(_0x2841b3(_0x4988e6._0x1384c3) + _0xdaecdf['agentId'] + _0x2841b3(0x1fa) + _0x14525a['toString'](), {
|
|
1056
|
+
'headers': _0x38dae4,
|
|
1057
|
+
'method': 'GET'
|
|
1058
|
+
}), _0x4a9e76 = (_0x4f40a0[_0x2841b3(_0x4988e6._0x4028e3)] ?? [])[_0x2841b3(_0x4988e6._0x22c728)](_0x423663 => ({
|
|
1059
|
+
'attachments': (_0x423663[_0x2841b3(0x2a6)] ?? [])[_0x2841b3(0x169)](_0x47c985 => ({
|
|
1060
|
+
'filename': _0x47c985[_0x2841b3(0x265)] ?? _0x47c985['id'],
|
|
1061
|
+
'id': _0x47c985['id']
|
|
1062
|
+
})),
|
|
1063
|
+
'content': _0x423663[_0x2841b3(0x1bc)] ?? '',
|
|
1064
|
+
'createdAt': _0x423663['createdAt'],
|
|
1065
|
+
'messageId': _0x423663['id'],
|
|
1066
|
+
'senderName': _0x423663[_0x2841b3(0x20a)],
|
|
1067
|
+
'senderType': _0x38cc54(_0x423663['senderParticipantId'], _0x225334),
|
|
1068
|
+
'seq': _0x423663['eventSeq'] ?? 0x0
|
|
1069
|
+
}));
|
|
1070
|
+
return {
|
|
1071
|
+
'channel': _0x15c3f8[_0x2841b3(_0x4988e6._0x44d7da)],
|
|
1072
|
+
'hasMore': _0x4f40a0['meta']?.[_0x2841b3(0x1ca)] ?? ![],
|
|
1073
|
+
'messages': _0x4a9e76,
|
|
1074
|
+
'nextCursor': _0x4f40a0[_0x2841b3(_0x4988e6._0x2cb1ab)]?.[_0x2841b3(_0x4988e6._0x34077a)]
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
return {
|
|
1078
|
+
async 'sendMessage'(_0x2bedb2) {
|
|
1079
|
+
const _0x226ad8 = _0x257a80, _0xbc9c66 = await _0x532698(_0x2bedb2[_0x226ad8(0x1f5)]), _0x4c7ff1 = _0x2bedb2[_0x226ad8(0x22c)]['includes']('@') ? extractMentionedParticipantIds(_0x2bedb2[_0x226ad8(0x22c)], await _0xa9a3f7()) : [], _0xdb9ae = await _0x2a9a06(_0x226ad8(0x18a) + _0xdaecdf[_0x226ad8(_0x58ffeb._0x21ae11)] + _0x226ad8(0x1d1), {
|
|
1080
|
+
'body': JSON[_0x226ad8(0x2c7)]({
|
|
1081
|
+
'attachment_ids': _0x2bedb2[_0x226ad8(0x222)],
|
|
1082
|
+
'bodyMarkdown': _0x2bedb2[_0x226ad8(_0x58ffeb._0x27ffd1)],
|
|
1083
|
+
'channelId': _0xbc9c66[_0x226ad8(_0x58ffeb._0x18e6d2)],
|
|
1084
|
+
..._0x4c7ff1[_0x226ad8(0x216)] > 0x0 ? { 'mentionedParticipantIds': _0x4c7ff1 } : {},
|
|
1085
|
+
'threadId': _0xbc9c66[_0x226ad8(_0x58ffeb._0x3cb907)]
|
|
1086
|
+
}),
|
|
1087
|
+
'headers': _0x38dae4,
|
|
1088
|
+
'method': _0x226ad8(0x2c5)
|
|
1089
|
+
});
|
|
1090
|
+
return { 'messageId': _0xdb9ae['data']?.['id'] ?? '' };
|
|
1091
|
+
},
|
|
1092
|
+
async 'listSchedules'() {
|
|
1093
|
+
const _0x50869a = _0x257a80, _0x56bb95 = await _0x2a9a06('/api/internal/schedules', {
|
|
1094
|
+
'headers': _0x38dae4,
|
|
1095
|
+
'method': 'GET'
|
|
1096
|
+
});
|
|
1097
|
+
return _0x56bb95[_0x50869a(_0x154045._0xab7ff1)] ?? [];
|
|
1098
|
+
},
|
|
1099
|
+
async 'claimScheduleRun'(_0x14d516) {
|
|
1100
|
+
const _0x2556e0 = _0x257a80, _0x3a161d = await _0x2a9a06(_0x2556e0(0x19a), {
|
|
1101
|
+
'body': JSON[_0x2556e0(0x2c7)](_0x14d516),
|
|
1102
|
+
'headers': _0x38dae4,
|
|
1103
|
+
'method': _0x2556e0(_0x193005._0x37dbbb)
|
|
1104
|
+
});
|
|
1105
|
+
return _0x3a161d['data'] ?? {
|
|
1106
|
+
'granted': ![],
|
|
1107
|
+
'runId': null,
|
|
1108
|
+
'schedule': null,
|
|
1109
|
+
'scheduledFor': _0x14d516[_0x2556e0(0x174)]
|
|
1110
|
+
};
|
|
1111
|
+
},
|
|
1112
|
+
async 'startScheduleRun'(_0x599b4a) {
|
|
1113
|
+
const _0x1c00e8 = _0x257a80, _0x58bf7e = await _0x2a9a06(_0x1c00e8(_0x749d9f._0x3a4eea) + encodeURIComponent(_0x599b4a['runId']) + '/start', {
|
|
1114
|
+
'body': JSON[_0x1c00e8(_0x749d9f._0x1cf22a)]({}),
|
|
1115
|
+
'headers': _0x38dae4,
|
|
1116
|
+
'method': _0x1c00e8(0x2c5)
|
|
1117
|
+
});
|
|
1118
|
+
return _0x58bf7e[_0x1c00e8(_0x749d9f._0x33bdcc)] ?? {
|
|
1119
|
+
'claimedByDaemonId': '',
|
|
1120
|
+
'id': _0x599b4a[_0x1c00e8(_0x749d9f._0x2583f2)],
|
|
1121
|
+
'scheduleId': '',
|
|
1122
|
+
'status': _0x1c00e8(_0x749d9f._0x1e2760)
|
|
1123
|
+
};
|
|
1124
|
+
},
|
|
1125
|
+
async 'finishScheduleRun'(_0x387556) {
|
|
1126
|
+
const _0x416124 = _0x257a80, _0x5bf8fe = await _0x2a9a06(_0x416124(0x167) + encodeURIComponent(_0x387556['runId']) + '/finish', {
|
|
1127
|
+
'body': JSON[_0x416124(_0x5b3f1d._0x5884df)]({
|
|
1128
|
+
'error': _0x387556[_0x416124(_0x5b3f1d._0x4730cb)],
|
|
1129
|
+
'resultJson': _0x387556[_0x416124(_0x5b3f1d._0xbe318a)],
|
|
1130
|
+
'status': _0x387556[_0x416124(0x1cf)]
|
|
1131
|
+
}),
|
|
1132
|
+
'headers': _0x38dae4,
|
|
1133
|
+
'method': 'POST'
|
|
1134
|
+
});
|
|
1135
|
+
return _0x5bf8fe['data'] ?? {
|
|
1136
|
+
'nextRunAt': null,
|
|
1137
|
+
'run': {
|
|
1138
|
+
'claimedByDaemonId': '',
|
|
1139
|
+
'id': _0x387556[_0x416124(_0x5b3f1d._0x1273bd)],
|
|
1140
|
+
'scheduleId': '',
|
|
1141
|
+
'status': _0x387556['status']
|
|
1142
|
+
}
|
|
1143
|
+
};
|
|
1144
|
+
},
|
|
1145
|
+
async 'listTasks'(_0x349032) {
|
|
1146
|
+
const _0x256cb7 = _0x257a80, _0x13927f = new URLSearchParams();
|
|
1147
|
+
return _0x13927f[_0x256cb7(0x2b3)]('channel', _0x349032['channel']), _0x349032[_0x256cb7(_0x5e7b8b._0x5414ac)] && _0x13927f[_0x256cb7(_0x5e7b8b._0x3a1018)](_0x256cb7(0x1cf), _0x349032['status']), _0x3c9e5d(_0x256cb7(_0x5e7b8b._0x5075f3) + _0xdaecdf['agentId'] + '/tasks?' + _0x13927f[_0x256cb7(0x173)](), {
|
|
1148
|
+
'headers': _0x38dae4,
|
|
1149
|
+
'method': 'GET'
|
|
1150
|
+
});
|
|
1151
|
+
},
|
|
1152
|
+
async 'createTasks'(_0x2bc775) {
|
|
1153
|
+
const _0x513f78 = _0x257a80;
|
|
1154
|
+
return _0x3c9e5d(_0x513f78(_0x10936e._0x5ba742) + _0xdaecdf[_0x513f78(0x23b)] + _0x513f78(0x1d0), {
|
|
1155
|
+
'body': JSON['stringify']({
|
|
1156
|
+
..._0x2bc775,
|
|
1157
|
+
'idempotency_key': _0x5f2b67(_0x513f78(0x250), _0x2bc775)
|
|
1158
|
+
}),
|
|
1159
|
+
'headers': _0x38dae4,
|
|
1160
|
+
'method': _0x513f78(0x2c5)
|
|
1161
|
+
});
|
|
1162
|
+
},
|
|
1163
|
+
async 'claimTasks'(_0x48a6d9) {
|
|
1164
|
+
const _0x3b70d0 = _0x257a80;
|
|
1165
|
+
return _0x3c9e5d(_0x3b70d0(0x18a) + _0xdaecdf[_0x3b70d0(_0x14e9fb._0x506ccb)] + _0x3b70d0(0x224), {
|
|
1166
|
+
'body': JSON[_0x3b70d0(_0x14e9fb._0xbafc3f)]({
|
|
1167
|
+
..._0x48a6d9,
|
|
1168
|
+
'idempotency_key': _0x5f2b67(_0x3b70d0(0x203), _0x48a6d9)
|
|
1169
|
+
}),
|
|
1170
|
+
'headers': _0x38dae4,
|
|
1171
|
+
'method': 'POST'
|
|
1172
|
+
});
|
|
1173
|
+
},
|
|
1174
|
+
async 'unclaimTask'(_0x4fa2ff) {
|
|
1175
|
+
const _0x36c214 = _0x257a80;
|
|
1176
|
+
return _0x3c9e5d(_0x36c214(_0x5a5cfd._0x151970) + _0xdaecdf[_0x36c214(_0x5a5cfd._0x39b175)] + '/tasks/unclaim', {
|
|
1177
|
+
'body': JSON['stringify']({
|
|
1178
|
+
..._0x4fa2ff,
|
|
1179
|
+
'idempotency_key': _0x5f2b67(_0x36c214(0x2a8), _0x4fa2ff)
|
|
1180
|
+
}),
|
|
1181
|
+
'headers': _0x38dae4,
|
|
1182
|
+
'method': _0x36c214(_0x5a5cfd._0x37c68e)
|
|
1183
|
+
});
|
|
1184
|
+
},
|
|
1185
|
+
async 'updateTaskStatus'(_0x23dfce) {
|
|
1186
|
+
const _0x1ee23d = _0x257a80;
|
|
1187
|
+
return _0x3c9e5d('/internal/agent/' + _0xdaecdf[_0x1ee23d(0x23b)] + _0x1ee23d(_0x1cc6eb._0x3a5713), {
|
|
1188
|
+
'body': JSON[_0x1ee23d(0x2c7)]({
|
|
1189
|
+
..._0x23dfce,
|
|
1190
|
+
'idempotency_key': _0x5f2b67(_0x1ee23d(_0x1cc6eb._0x2808a6), _0x23dfce)
|
|
1191
|
+
}),
|
|
1192
|
+
'headers': _0x38dae4,
|
|
1193
|
+
'method': _0x1ee23d(0x2c5)
|
|
1194
|
+
});
|
|
1195
|
+
},
|
|
1196
|
+
async 'uploadFile'(_0x652ba) {
|
|
1197
|
+
const _0x31cf7c = _0x257a80, _0x2d3bdd = await _0x532698(_0x652ba[_0x31cf7c(0x2b8)]);
|
|
1198
|
+
if (_0x2d3bdd[_0x31cf7c(0x253)])
|
|
1199
|
+
throw new Error(_0x31cf7c(_0x233c80._0x2f8873));
|
|
1200
|
+
const _0xa3674b = await _0x2a9a06(_0x31cf7c(0x18a) + _0xdaecdf[_0x31cf7c(_0x233c80._0x325ca7)] + _0x31cf7c(0x164), {
|
|
1201
|
+
'body': JSON[_0x31cf7c(_0x233c80._0x5b40e3)]({
|
|
1202
|
+
'channel': _0x2d3bdd[_0x31cf7c(0x1f5)],
|
|
1203
|
+
'contentBase64': _0x652ba[_0x31cf7c(_0x233c80._0x5b1267)],
|
|
1204
|
+
'contentType': _0x652ba['contentType'],
|
|
1205
|
+
'originalFilename': _0x652ba[_0x31cf7c(0x265)]
|
|
1206
|
+
}),
|
|
1207
|
+
'headers': _0x38dae4,
|
|
1208
|
+
'method': _0x31cf7c(_0x233c80._0x16d325)
|
|
1209
|
+
});
|
|
1210
|
+
return {
|
|
1211
|
+
'attachmentId': _0xa3674b[_0x31cf7c(_0x233c80._0x760980)]?.['id'] ?? '',
|
|
1212
|
+
'filename': _0xa3674b[_0x31cf7c(0x297)]?.[_0x31cf7c(_0x233c80._0x5d97f7)] ?? _0x652ba[_0x31cf7c(0x265)],
|
|
1213
|
+
'sizeBytes': _0xa3674b['data']?.[_0x31cf7c(0x241)] ?? 0x0
|
|
1214
|
+
};
|
|
1215
|
+
},
|
|
1216
|
+
async 'downloadAttachment'(_0x11c928) {
|
|
1217
|
+
const _0x4048c4 = _0x257a80, _0x30f648 = await _0x2a9a06(_0x4048c4(_0x2f5f8b._0x1d2877) + _0x11c928, {
|
|
1218
|
+
'headers': _0x38dae4,
|
|
1219
|
+
'method': _0x4048c4(0x2cd)
|
|
1220
|
+
}), _0x4b8c74 = new AbortController(), _0x501e53 = setTimeout(() => _0x4b8c74[_0x4048c4(0x195)](), _0xe668f9);
|
|
1221
|
+
try {
|
|
1222
|
+
const _0x4a1c2a = await _0x37f05e(_0x2ba3ae + _0x4048c4(_0x2f5f8b._0x558515) + _0x11c928 + '/content', {
|
|
1223
|
+
'headers': _0x38dae4,
|
|
1224
|
+
'method': _0x4048c4(_0x2f5f8b._0x378e20),
|
|
1225
|
+
'signal': _0x4b8c74['signal']
|
|
1226
|
+
});
|
|
1227
|
+
if (!_0x4a1c2a['ok'])
|
|
1228
|
+
throw new Error(_0x4048c4(_0x2f5f8b._0x15d319) + _0x4a1c2a[_0x4048c4(0x1cf)]);
|
|
1229
|
+
return {
|
|
1230
|
+
'contentType': _0x30f648[_0x4048c4(_0x2f5f8b._0x34c30e)]?.[_0x4048c4(_0x2f5f8b._0x193959)] ?? _0x4a1c2a['headers'][_0x4048c4(_0x2f5f8b._0x3343b7)]('content-type') ?? _0x4048c4(0x208),
|
|
1231
|
+
'data': Buffer[_0x4048c4(0x2dd)](await _0x4a1c2a[_0x4048c4(0x1d6)]()),
|
|
1232
|
+
'originalFilename': _0x30f648[_0x4048c4(0x297)]?.[_0x4048c4(0x16e)]
|
|
1233
|
+
};
|
|
1234
|
+
} finally {
|
|
1235
|
+
clearTimeout(_0x501e53);
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
async 'listServer'() {
|
|
1239
|
+
return _0xa9a3f7();
|
|
1240
|
+
},
|
|
1241
|
+
async 'readHistory'(_0x299a2e) {
|
|
1242
|
+
const _0x2c3176 = _0x257a80, _0xdc9463 = await _0x532698(_0x299a2e[_0x2c3176(0x2b8)]);
|
|
1243
|
+
return _0x130faa({
|
|
1244
|
+
'after': _0x299a2e[_0x2c3176(0x1e9)],
|
|
1245
|
+
'before': _0x299a2e['before'],
|
|
1246
|
+
'channelId': _0xdc9463[_0x2c3176(0x246)],
|
|
1247
|
+
'channelTarget': _0xdc9463['target'],
|
|
1248
|
+
'limit': _0x299a2e[_0x2c3176(0x2a0)],
|
|
1249
|
+
'threadId': _0xdc9463[_0x2c3176(_0x192f77._0x581a4c)]
|
|
1250
|
+
});
|
|
1251
|
+
},
|
|
1252
|
+
async 'checkMessages'() {
|
|
1253
|
+
const _0x110c06 = _0x257a80, _0x176c74 = new URLSearchParams();
|
|
1254
|
+
_0x176c74['set'](_0x110c06(0x1de), String(_0x3032e9));
|
|
1255
|
+
const _0x38312a = _0x176c74[_0x110c06(_0x311ebd._0x5730ae)](), _0xc811eb = await _0x2a9a06(_0x110c06(0x18a) + _0xdaecdf['agentId'] + '/receive' + (_0x38312a ? '?' + _0x38312a : ''), {
|
|
1256
|
+
'headers': _0x38dae4,
|
|
1257
|
+
'method': _0x110c06(_0x311ebd._0x7a0e88)
|
|
1258
|
+
}), _0x443ea1 = _0xc811eb[_0x110c06(0x297)] ?? [], _0x57ef74 = _0xc811eb['meta']?.[_0x110c06(_0x311ebd._0x3be2dc)], _0x3be219 = _0x57ef74 !== void 0x0 ? Math[_0x110c06(_0x311ebd._0x45eb7b)](_0x3032e9, _0x57ef74) : _0x443ea1[_0x110c06(0x216)] > 0x0 ? Math[_0x110c06(0x276)](_0x3032e9, _0x443ea1[_0x443ea1['length'] - 0x1][_0x110c06(0x252)]) : _0x3032e9, _0x3058dc = _0xf601bd === void 0x0 && _0x29afb4, _0x1e1f6b = await _0xa9a3f7(), _0x19a691 = new Map(_0x1e1f6b[_0x110c06(_0x311ebd._0x3c5dec)]['map'](_0x3ee876 => [
|
|
1259
|
+
_0x3ee876['id'],
|
|
1260
|
+
_0x3ee876
|
|
1261
|
+
])), _0x4e979d = _0x443ea1['filter'](_0x381dc8 => _0x381dc8['aggregateType'] === _0x110c06(0x1d8)), _0x298ae7 = new Map();
|
|
1262
|
+
for (const _0x59a6a1 of _0x4e979d) {
|
|
1263
|
+
const _0xcf921f = asRecord(_0x59a6a1['payloadJson']), _0x116874 = typeof _0xcf921f[_0x110c06(0x246)] === _0x110c06(0x234) ? _0xcf921f[_0x110c06(0x246)] : '';
|
|
1264
|
+
if (!_0x116874)
|
|
1265
|
+
continue;
|
|
1266
|
+
const _0x269b0b = typeof _0xcf921f[_0x110c06(0x253)] === _0x110c06(0x234) ? _0xcf921f['threadId'] : void 0x0, _0xaddce8 = typeof _0xcf921f[_0x110c06(_0x311ebd._0x5dccaf)] === _0x110c06(_0x311ebd._0x3a1128) ? _0xcf921f['rootMessageId'] : void 0x0, _0x40e5f1 = typeof _0xcf921f['threadNumber'] === _0x110c06(0x1b9) && Number['isInteger'](_0xcf921f[_0x110c06(_0x311ebd._0x494186)]) ? _0xcf921f[_0x110c06(0x2c6)] : void 0x0, _0x5feb43 = Boolean(_0x269b0b && (!_0xaddce8 || _0x59a6a1[_0x110c06(_0x311ebd._0xddf19c)] !== _0xaddce8)), _0x431a1a = _0x5feb43 ? _0x116874 + ':' + _0x269b0b : _0x116874, _0x5c85ce = _0x298ae7['get'](_0x431a1a) ?? {
|
|
1267
|
+
'aggregateIds': [],
|
|
1268
|
+
'channelId': _0x116874,
|
|
1269
|
+
'entries': new Map(),
|
|
1270
|
+
'isThreadReply': _0x5feb43,
|
|
1271
|
+
'rootMessageId': _0xaddce8,
|
|
1272
|
+
'threadNumber': _0x40e5f1,
|
|
1273
|
+
'threadId': _0x5feb43 ? _0x269b0b : void 0x0
|
|
1274
|
+
};
|
|
1275
|
+
_0x5c85ce[_0x110c06(_0x311ebd._0x494186)] == null && _0x40e5f1 != null && (_0x5c85ce[_0x110c06(0x2c6)] = _0x40e5f1), !_0x5c85ce[_0x110c06(_0x311ebd._0x5dccaf)] && _0xaddce8 && (_0x5c85ce[_0x110c06(0x1c2)] = _0xaddce8), _0x5c85ce[_0x110c06(_0x311ebd._0x3cc77a)][_0x110c06(0x213)](_0x59a6a1[_0x110c06(_0x311ebd._0xddf19c)]), _0x5c85ce['entries'][_0x110c06(_0x311ebd._0x36109f)](_0x59a6a1['aggregateId'], {
|
|
1276
|
+
'payloadJson': _0x59a6a1[_0x110c06(0x28e)],
|
|
1277
|
+
'seq': _0x59a6a1[_0x110c06(0x252)]
|
|
1278
|
+
}), _0x298ae7[_0x110c06(0x2b3)](_0x431a1a, _0x5c85ce);
|
|
1279
|
+
}
|
|
1280
|
+
const _0x2ecb0e = [];
|
|
1281
|
+
for (const _0x2e34e2 of _0x298ae7[_0x110c06(0x1a9)]()) {
|
|
1282
|
+
const {
|
|
1283
|
+
channelId: _0x59785b,
|
|
1284
|
+
threadId: _0x222e6c,
|
|
1285
|
+
rootMessageId: _0x2d1214,
|
|
1286
|
+
threadNumber: _0x1ef059,
|
|
1287
|
+
aggregateIds: _0x352814,
|
|
1288
|
+
isThreadReply: _0x2141e3,
|
|
1289
|
+
entries: _0x3539e2
|
|
1290
|
+
} = _0x2e34e2, _0x42085f = _0x19a691[_0x110c06(0x212)](_0x59785b), _0x5570b4 = _0x42085f?.[_0x110c06(0x285)] ?? _0x59785b, _0x3f8c57 = _0x42085f?.['kind'] === 'dm' ? _0x110c06(0x270) + _0x5570b4 : '#' + _0x5570b4, _0x111604 = {
|
|
1291
|
+
'channelTarget': _0x3f8c57,
|
|
1292
|
+
'rootMessageId': _0x2d1214,
|
|
1293
|
+
'threadId': _0x222e6c,
|
|
1294
|
+
'threadNumber': _0x1ef059
|
|
1295
|
+
}, _0x510398 = await _0x130faa({
|
|
1296
|
+
'channelId': _0x59785b,
|
|
1297
|
+
'channelTarget': _0x3f8c57,
|
|
1298
|
+
'limit': Math[_0x110c06(0x276)](_0x352814['length'], 0x32),
|
|
1299
|
+
'threadId': _0x222e6c
|
|
1300
|
+
}), _0x4b1ab4 = new Map(_0x510398['messages'][_0x110c06(_0x311ebd._0x4a3030)](_0x98f38 => [
|
|
1301
|
+
_0x98f38[_0x110c06(0x251)],
|
|
1302
|
+
_0x98f38
|
|
1303
|
+
])), _0x3a866d = _0x222e6c ? _0x58382d(_0x111604) : _0x3f8c57, _0x596f26 = _0xf601bd ? _0x2141e3 && _0x49d73e(_0xf601bd, _0x111604) : !![], _0xcf7411 = _0x2141e3 ? _0x596f26 && _0xf601bd ? _0xf601bd : _0x3a866d : _0x3f8c57;
|
|
1304
|
+
for (const _0x5848ac of _0x352814) {
|
|
1305
|
+
if (!_0x596f26)
|
|
1306
|
+
continue;
|
|
1307
|
+
const _0x3fd6b7 = _0x3539e2[_0x110c06(0x212)](_0x5848ac), _0x486949 = _0x3fd6b7 ? asRecord(_0x3fd6b7[_0x110c06(_0x311ebd._0x34b6be)]) : void 0x0, _0x1af207 = _0x486949?.[_0x110c06(0x1c8)] === _0x110c06(0x23c);
|
|
1308
|
+
if (_0x3058dc && _0x1af207)
|
|
1309
|
+
continue;
|
|
1310
|
+
const _0x17c04f = _0x4b1ab4[_0x110c06(_0x311ebd._0x54619a)](_0x5848ac);
|
|
1311
|
+
if (_0x17c04f) {
|
|
1312
|
+
_0x2ecb0e[_0x110c06(0x213)]({
|
|
1313
|
+
'attachments': _0x17c04f['attachments'],
|
|
1314
|
+
'content': _0x17c04f['content'],
|
|
1315
|
+
'createdAt': _0x17c04f[_0x110c06(_0x311ebd._0x478d47)],
|
|
1316
|
+
'messageId': _0x17c04f[_0x110c06(_0x311ebd._0x15e1bd)],
|
|
1317
|
+
'senderName': _0x17c04f['senderName'],
|
|
1318
|
+
'senderType': _0x17c04f['senderType'],
|
|
1319
|
+
'target': _0xcf7411,
|
|
1320
|
+
..._0x1af207 ? { 'targetedTask': !![] } : {}
|
|
1321
|
+
});
|
|
1322
|
+
continue;
|
|
1323
|
+
}
|
|
1324
|
+
if (_0x3fd6b7) {
|
|
1325
|
+
const _0x1acff3 = typeof _0x486949?.[_0x110c06(_0x311ebd._0x2d515c)] === _0x110c06(_0x311ebd._0x3a1128) ? _0x486949[_0x110c06(0x20a)] : '', _0x101868 = typeof _0x486949?.[_0x110c06(0x1bc)] === _0x110c06(_0x311ebd._0x3a1128) ? _0x486949['bodyMarkdown'] : '';
|
|
1326
|
+
_0x1acff3 && _0x101868 && _0x2ecb0e['push']({
|
|
1327
|
+
'attachments': [],
|
|
1328
|
+
'content': _0x101868,
|
|
1329
|
+
'createdAt': new Date()['toISOString'](),
|
|
1330
|
+
'messageId': _0x5848ac,
|
|
1331
|
+
'senderName': _0x1acff3,
|
|
1332
|
+
'senderType': _0x38cc54(_0x1acff3, _0x1e1f6b),
|
|
1333
|
+
'target': _0xcf7411,
|
|
1334
|
+
..._0x1af207 ? { 'targetedTask': !![] } : {}
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}
|
|
1339
|
+
if (_0x3be219 > 0x0) {
|
|
1340
|
+
if (_0x4fdff0)
|
|
1341
|
+
await _0x258ce3(_0x3be219);
|
|
1342
|
+
else
|
|
1343
|
+
_0x3d9d4f && await _0x2120e3(_0x3be219);
|
|
1344
|
+
}
|
|
1345
|
+
return _0x3be219 > _0x3032e9 && (_0x3032e9 = _0x3be219), { 'messages': _0xf601bd ? _0x2ecb0e : _0x3058dc ? _0x2ecb0e[_0x110c06(0x1d2)](_0xfd598f => _0xfd598f[_0x110c06(0x19f)] !== !![]) : _0x2ecb0e };
|
|
1346
|
+
}
|
|
1303
1347
|
};
|
|
1304
|
-
return _0x4879();
|
|
1305
1348
|
}
|
|
1306
|
-
function
|
|
1307
|
-
const
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1349
|
+
function toLocalTime(_0x5ba76e) {
|
|
1350
|
+
const _0x3530e5 = {
|
|
1351
|
+
_0x2aef30: 0x1ee,
|
|
1352
|
+
_0x327d55: 0x201,
|
|
1353
|
+
_0x2adac6: 0x279,
|
|
1354
|
+
_0x5e1ebb: 0x236,
|
|
1355
|
+
_0x2326db: 0x184,
|
|
1356
|
+
_0x518888: 0x1da
|
|
1357
|
+
}, _0x4cad71 = _0x84e1c7, _0x33dfc5 = new Date(_0x5ba76e);
|
|
1358
|
+
if (Number[_0x4cad71(0x163)](_0x33dfc5[_0x4cad71(_0x3530e5._0x2aef30)]()))
|
|
1359
|
+
return _0x5ba76e;
|
|
1360
|
+
const _0x5e357c = _0x47dfdd => String(_0x47dfdd)[_0x4cad71(0x2ad)](0x2, '0');
|
|
1361
|
+
return _0x33dfc5[_0x4cad71(_0x3530e5._0x327d55)]() + '-' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x2adac6)]() + 0x1) + '-' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x5e1ebb)]()) + '\x20' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x2326db)]()) + ':' + _0x5e357c(_0x33dfc5[_0x4cad71(0x2b4)]()) + ':' + _0x5e357c(_0x33dfc5[_0x4cad71(_0x3530e5._0x518888)]());
|
|
1362
|
+
}
|
|
1363
|
+
function formatAttachmentSuffix(_0x3a43e2) {
|
|
1364
|
+
const _0x3487a4 = {
|
|
1365
|
+
_0x351faa: 0x216,
|
|
1366
|
+
_0x4b014c: 0x216,
|
|
1367
|
+
_0x1be8b9: 0x295,
|
|
1368
|
+
_0x48eafc: 0x25a
|
|
1369
|
+
}, _0x1d769d = _0x84e1c7;
|
|
1370
|
+
if (!_0x3a43e2 || _0x3a43e2[_0x1d769d(_0x3487a4._0x351faa)] === 0x0)
|
|
1371
|
+
return '';
|
|
1372
|
+
return '\x20[' + _0x3a43e2[_0x1d769d(_0x3487a4._0x4b014c)] + _0x1d769d(0x24b) + (_0x3a43e2['length'] > 0x1 ? 's' : '') + ':\x20' + _0x3a43e2['map'](_0x59a486 => _0x59a486[_0x1d769d(0x265)] + _0x1d769d(0x2e3) + _0x59a486['id'] + ')')[_0x1d769d(_0x3487a4._0x1be8b9)](',\x20') + _0x1d769d(_0x3487a4._0x48eafc);
|
|
1373
|
+
}
|
|
1374
|
+
function formatCheckMessages(_0x3362ce) {
|
|
1375
|
+
const _0x11ba09 = { _0x45179e: 0x1ab }, _0x218f72 = {
|
|
1376
|
+
_0x5dfa4e: 0x2d1,
|
|
1377
|
+
_0x83f46f: 0x194,
|
|
1378
|
+
_0x2e6f81: 0x1f5,
|
|
1379
|
+
_0xd7ab21: 0x251,
|
|
1380
|
+
_0x46e33f: 0x16b,
|
|
1381
|
+
_0x33b59b: 0x17b,
|
|
1382
|
+
_0x519c3b: 0x22c
|
|
1383
|
+
}, _0x2912d2 = _0x84e1c7;
|
|
1384
|
+
if (_0x3362ce['length'] === 0x0)
|
|
1385
|
+
return _0x2912d2(_0x11ba09._0x45179e);
|
|
1386
|
+
return _0x3362ce['map'](_0x42316a => {
|
|
1387
|
+
const _0x4ce395 = _0x2912d2, _0x4bafb1 = _0x42316a[_0x4ce395(_0x218f72._0x5dfa4e)] === _0x4ce395(_0x218f72._0x83f46f) ? _0x4ce395(0x20d) : '';
|
|
1388
|
+
return _0x4ce395(0x273) + _0x42316a[_0x4ce395(_0x218f72._0x2e6f81)] + _0x4ce395(0x28a) + _0x42316a[_0x4ce395(_0x218f72._0xd7ab21)][_0x4ce395(_0x218f72._0x46e33f)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x42316a[_0x4ce395(0x23a)]) + _0x4bafb1 + _0x4ce395(_0x218f72._0x33b59b) + _0x42316a[_0x4ce395(0x1ef)] + ':\x20' + _0x42316a[_0x4ce395(_0x218f72._0x519c3b)] + formatAttachmentSuffix(_0x42316a['attachments']);
|
|
1389
|
+
})[_0x2912d2(0x295)]('\x0a');
|
|
1319
1390
|
}
|
|
1320
|
-
function formatHistory(
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
},
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1391
|
+
function formatHistory(_0x37331a) {
|
|
1392
|
+
const _0x3042c6 = {
|
|
1393
|
+
_0x3147f5: 0x2d3,
|
|
1394
|
+
_0x39559b: 0x2b8,
|
|
1395
|
+
_0x3ebf46: 0x1a8,
|
|
1396
|
+
_0x52e000: 0x169,
|
|
1397
|
+
_0x29e6dd: 0x295,
|
|
1398
|
+
_0x1df756: 0x1fe,
|
|
1399
|
+
_0x347a34: 0x1cc,
|
|
1400
|
+
_0x88d393: 0x176
|
|
1401
|
+
}, _0x268ae5 = {
|
|
1402
|
+
_0x74d5d6: 0x2d1,
|
|
1403
|
+
_0x467e5d: 0x20d,
|
|
1404
|
+
_0x5d532b: 0x263,
|
|
1405
|
+
_0x5c7524: 0x251,
|
|
1406
|
+
_0x4ca399: 0x1ff,
|
|
1407
|
+
_0x4a03d1: 0x23a,
|
|
1408
|
+
_0x2631d4: 0x17b,
|
|
1409
|
+
_0x4c12d6: 0x22c
|
|
1410
|
+
}, _0x2879eb = _0x84e1c7;
|
|
1411
|
+
if (_0x37331a[_0x2879eb(_0x3042c6._0x3147f5)]['length'] === 0x0)
|
|
1412
|
+
return _0x2879eb(0x176) + _0x37331a[_0x2879eb(_0x3042c6._0x39559b)] + _0x2879eb(_0x3042c6._0x3ebf46);
|
|
1413
|
+
const _0x459613 = _0x37331a[_0x2879eb(0x2d3)][_0x2879eb(_0x3042c6._0x52e000)](_0x2f247c => {
|
|
1414
|
+
const _0x4b6640 = _0x2879eb, _0x5ec32b = _0x2f247c[_0x4b6640(_0x268ae5._0x74d5d6)] === 'agent' ? _0x4b6640(_0x268ae5._0x467e5d) : '';
|
|
1415
|
+
return _0x4b6640(_0x268ae5._0x5d532b) + _0x2f247c[_0x4b6640(0x252)] + _0x4b6640(0x28a) + _0x2f247c[_0x4b6640(_0x268ae5._0x5c7524)] + _0x4b6640(_0x268ae5._0x4ca399) + toLocalTime(_0x2f247c[_0x4b6640(_0x268ae5._0x4a03d1)]) + _0x5ec32b + _0x4b6640(_0x268ae5._0x2631d4) + _0x2f247c[_0x4b6640(0x1ef)] + ':\x20' + _0x2f247c[_0x4b6640(_0x268ae5._0x4c12d6)] + formatAttachmentSuffix(_0x2f247c[_0x4b6640(0x2a6)]);
|
|
1416
|
+
})[_0x2879eb(_0x3042c6._0x29e6dd)]('\x0a'), _0x2e6540 = _0x37331a[_0x2879eb(0x1ca)] && _0x37331a[_0x2879eb(0x1cc)] ? _0x2879eb(_0x3042c6._0x1df756) + _0x37331a[_0x2879eb(0x2d3)]['length'] + _0x2879eb(0x2a5) + _0x37331a[_0x2879eb(_0x3042c6._0x347a34)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1417
|
+
return _0x2879eb(_0x3042c6._0x88d393) + _0x37331a['channel'] + '\x20(' + _0x37331a['messages'][_0x2879eb(0x216)] + _0x2879eb(0x27d) + _0x459613 + _0x2e6540;
|
|
1345
1418
|
}
|
|
1346
|
-
function formatServerDirectory(
|
|
1347
|
-
const
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1419
|
+
function formatServerDirectory(_0x431fb0) {
|
|
1420
|
+
const _0xb73f7 = {
|
|
1421
|
+
_0x1750e1: 0x17d,
|
|
1422
|
+
_0xdc4c63: 0x169,
|
|
1423
|
+
_0x1f09e4: 0x216,
|
|
1424
|
+
_0x95e207: 0x171,
|
|
1425
|
+
_0x19b2f2: 0x295,
|
|
1426
|
+
_0x4f0681: 0x2d5,
|
|
1427
|
+
_0x48b5f4: 0x27a,
|
|
1428
|
+
_0xf5cc0f: 0x225,
|
|
1429
|
+
_0x2c556d: 0x1cb,
|
|
1430
|
+
_0x30009c: 0x295
|
|
1431
|
+
}, _0x33558e = _0x84e1c7, _0x1ae7ae = _0x431fb0[_0x33558e(0x17d)][_0x33558e(0x216)] > 0x0 ? _0x431fb0[_0x33558e(_0xb73f7._0x1750e1)][_0x33558e(_0xb73f7._0xdc4c63)](_0x48de87 => _0x48de87[_0x33558e(0x18e)] ? _0x33558e(0x1b3) + _0x48de87[_0x33558e(0x285)] + _0x33558e(0x257) + _0x48de87[_0x33558e(0x18e)] : _0x33558e(0x1b3) + _0x48de87['name'])[_0x33558e(0x295)]('\x0a') : '(none)', _0xbdbb95 = _0x431fb0['agents'][_0x33558e(_0xb73f7._0x1f09e4)] > 0x0 ? _0x431fb0[_0x33558e(0x274)]['map'](_0x3b4825 => _0x33558e(0x1e6) + _0x3b4825[_0x33558e(0x285)])[_0x33558e(0x295)]('\x0a') : _0x33558e(0x2d5), _0xdf6865 = _0x431fb0['humans']['length'] > 0x0 ? _0x431fb0[_0x33558e(_0xb73f7._0x95e207)][_0x33558e(_0xb73f7._0xdc4c63)](_0x317bef => _0x33558e(0x1e6) + _0x317bef['name'])[_0x33558e(_0xb73f7._0x19b2f2)]('\x0a') : _0x33558e(_0xb73f7._0x4f0681);
|
|
1357
1432
|
return [
|
|
1358
|
-
|
|
1433
|
+
_0x33558e(0x1af) + _0x431fb0[_0x33558e(_0xb73f7._0x48b5f4)],
|
|
1359
1434
|
'',
|
|
1360
|
-
|
|
1361
|
-
|
|
1435
|
+
'###\x20Channels',
|
|
1436
|
+
_0x1ae7ae,
|
|
1362
1437
|
'',
|
|
1363
|
-
|
|
1364
|
-
|
|
1438
|
+
_0x33558e(_0xb73f7._0xf5cc0f),
|
|
1439
|
+
_0xbdbb95,
|
|
1365
1440
|
'',
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
][
|
|
1441
|
+
_0x33558e(_0xb73f7._0x2c556d),
|
|
1442
|
+
_0xdf6865
|
|
1443
|
+
][_0x33558e(_0xb73f7._0x30009c)]('\x0a');
|
|
1369
1444
|
}
|
|
1370
|
-
function formatUploadResult(
|
|
1371
|
-
const
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
return _0x3a19e0(0x224) + _0x579791[_0x3a19e0(_0x5df97c._0x5b9096)] + '\x20(' + (_0x579791['sizeBytes'] / 0x400)[_0x3a19e0(_0x5df97c._0x1daa90)](0x1) + _0x3a19e0(_0x5df97c._0x17aa7c) + _0x579791['attachmentId'] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1445
|
+
function formatUploadResult(_0x403a2e) {
|
|
1446
|
+
const _0x4c6611 = {
|
|
1447
|
+
_0x51b61c: 0x1fd,
|
|
1448
|
+
_0x3b8607: 0x239
|
|
1449
|
+
}, _0x496f37 = _0x84e1c7;
|
|
1450
|
+
return 'File\x20uploaded:\x20' + _0x403a2e[_0x496f37(0x265)] + '\x20(' + (_0x403a2e['sizeBytes'] / 0x400)[_0x496f37(_0x4c6611._0x51b61c)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x403a2e[_0x496f37(_0x4c6611._0x3b8607)] + _0x496f37(0x227);
|
|
1377
1451
|
}
|
|
1378
|
-
function formatViewFileResult(
|
|
1379
|
-
const
|
|
1380
|
-
|
|
1452
|
+
function formatViewFileResult(_0x18e1d4, _0x4ceb13) {
|
|
1453
|
+
const _0x14d1ee = {
|
|
1454
|
+
_0x741f4e: 0x2bb,
|
|
1455
|
+
_0xd7cea1: 0x16d
|
|
1456
|
+
}, _0x24a8ce = _0x84e1c7;
|
|
1457
|
+
return _0x4ceb13 ? _0x24a8ce(_0x14d1ee._0x741f4e) + _0x18e1d4 : _0x24a8ce(_0x14d1ee._0xd7cea1) + _0x18e1d4;
|
|
1381
1458
|
}
|
|
1382
|
-
function formatTaskList(
|
|
1383
|
-
const
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
},
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
})['join']('\x0a');
|
|
1459
|
+
function formatTaskList(_0x51ad31, _0x20de3a) {
|
|
1460
|
+
const _0x4bef2e = {
|
|
1461
|
+
_0x31868d: 0x216,
|
|
1462
|
+
_0x3a9948: 0x295
|
|
1463
|
+
}, _0x12cf0f = {
|
|
1464
|
+
_0x3ad138: 0x2d6,
|
|
1465
|
+
_0x2a0ac4: 0x21b,
|
|
1466
|
+
_0x3e9dc9: 0x1cf
|
|
1467
|
+
}, _0x594dff = _0x84e1c7;
|
|
1468
|
+
if (_0x51ad31[_0x594dff(_0x4bef2e._0x31868d)] === 0x0)
|
|
1469
|
+
return _0x594dff(0x1a2);
|
|
1470
|
+
return _0x51ad31['map'](_0x5aff54 => {
|
|
1471
|
+
const _0xf08a39 = _0x594dff, _0x5c631f = _0x5aff54[_0xf08a39(_0x12cf0f._0x3ad138)] == null ? _0xf08a39(_0x12cf0f._0x2a0ac4) : '#' + _0x5aff54['taskNumber'], _0x4d36f1 = _0x5aff54[_0xf08a39(0x251)] ? _0xf08a39(0x1db) + _0x5aff54[_0xf08a39(0x251)] : '', _0x1a6989 = _0x20de3a && _0x5aff54[_0xf08a39(0x2d6)] != null && _0x20de3a[_0xf08a39(0x210)](_0x5aff54['taskNumber']) ? _0xf08a39(0x1a4) : '';
|
|
1472
|
+
return _0x5c631f + '\x20[' + _0x5aff54[_0xf08a39(_0x12cf0f._0x3e9dc9)] + ']\x20' + _0x5aff54[_0xf08a39(0x249)] + _0x4d36f1 + _0x1a6989;
|
|
1473
|
+
})[_0x594dff(_0x4bef2e._0x3a9948)]('\x0a');
|
|
1398
1474
|
}
|
|
1399
|
-
function formatCreatedTasks(
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
})['join']('\x0a');
|
|
1475
|
+
function formatCreatedTasks(_0x46685c) {
|
|
1476
|
+
const _0x467bdb = {
|
|
1477
|
+
_0x426ddd: 0x21b,
|
|
1478
|
+
_0x1fd963: 0x1db
|
|
1479
|
+
}, _0x144c3c = _0x84e1c7;
|
|
1480
|
+
if (_0x46685c['length'] === 0x0)
|
|
1481
|
+
return 'No\x20tasks\x20created.';
|
|
1482
|
+
return _0x46685c[_0x144c3c(0x169)](_0x17132e => {
|
|
1483
|
+
const _0x3cbdcc = _0x144c3c, _0xe9e81d = _0x17132e['taskNumber'] == null ? _0x3cbdcc(_0x467bdb._0x426ddd) : '#' + _0x17132e['taskNumber'];
|
|
1484
|
+
return _0xe9e81d + '\x20' + _0x17132e[_0x3cbdcc(0x249)] + _0x3cbdcc(_0x467bdb._0x1fd963) + _0x17132e['messageId'];
|
|
1485
|
+
})[_0x144c3c(0x295)]('\x0a');
|
|
1411
1486
|
}
|
|
1412
|
-
function formatClaimTaskResults(
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
const _0x2d33b7 = _0x63e7f9[_0x47f690(0x1d4)] == null ? '(legacy)' : '#' + _0x63e7f9[_0x47f690(0x1d4)], _0x20c845 = _0x63e7f9[_0x47f690(0x160)] ? _0x47f690(_0x193bdb._0x3bce1b) + _0x63e7f9[_0x47f690(0x160)] : '', _0x22ac38 = _0x63e7f9['workerHandoff'] ? [
|
|
1436
|
-
_0x47f690(0x1bd),
|
|
1437
|
-
_0x63e7f9[_0x47f690(_0x193bdb._0x32db6f)] ? _0x47f690(_0x193bdb._0x1e06a3) : null,
|
|
1438
|
-
_0x63e7f9[_0x47f690(0x2bc)] ? 'executionMode=' + _0x63e7f9[_0x47f690(_0x193bdb._0x4d723a)] : null,
|
|
1439
|
-
_0x63e7f9['threadTarget'] ? _0x47f690(0x280) + _0x63e7f9[_0x47f690(0x245)] : null,
|
|
1440
|
-
_0x63e7f9[_0x47f690(0x20c)] ? _0x47f690(_0x193bdb._0x220cf9) + _0x63e7f9[_0x47f690(_0x193bdb._0x4e413f)] : null
|
|
1441
|
-
][_0x47f690(_0x193bdb._0x3348ab)](Boolean)[_0x47f690(0x2a5)]('\x20') : _0x63e7f9[_0x47f690(_0x193bdb._0x53557f)] ? _0x47f690(0x233) + _0x63e7f9[_0x47f690(0x226)] : '';
|
|
1487
|
+
function formatClaimTaskResults(_0x3f834a) {
|
|
1488
|
+
const _0x486346 = { _0x3d2b47: 0x216 }, _0x5a3c9d = {
|
|
1489
|
+
_0x232267: 0x251,
|
|
1490
|
+
_0x43e3a9: 0x2b9,
|
|
1491
|
+
_0x426af0: 0x1f7,
|
|
1492
|
+
_0xa66e02: 0x18b,
|
|
1493
|
+
_0x35a578: 0x2a1,
|
|
1494
|
+
_0x4832f9: 0x1d2,
|
|
1495
|
+
_0x1d8995: 0x295,
|
|
1496
|
+
_0x1381c4: 0x189
|
|
1497
|
+
}, _0x1256a4 = _0x84e1c7;
|
|
1498
|
+
if (_0x3f834a[_0x1256a4(_0x486346._0x3d2b47)] === 0x0)
|
|
1499
|
+
return _0x1256a4(0x17a);
|
|
1500
|
+
return _0x3f834a[_0x1256a4(0x169)](_0x316ba3 => {
|
|
1501
|
+
const _0x254eee = _0x1256a4;
|
|
1502
|
+
if (_0x316ba3['success']) {
|
|
1503
|
+
const _0x19713a = _0x316ba3[_0x254eee(0x2d6)] == null ? '(legacy)' : '#' + _0x316ba3[_0x254eee(0x2d6)], _0x4ffad8 = _0x316ba3[_0x254eee(_0x5a3c9d._0x232267)] ? _0x254eee(0x1db) + _0x316ba3[_0x254eee(_0x5a3c9d._0x232267)] : '', _0x1ed147 = _0x316ba3[_0x254eee(0x2a7)] ? [
|
|
1504
|
+
_0x254eee(0x1e7),
|
|
1505
|
+
_0x316ba3[_0x254eee(0x1ae)] ? _0x254eee(0x293) : null,
|
|
1506
|
+
_0x316ba3['executionMode'] ? _0x254eee(_0x5a3c9d._0x43e3a9) + _0x316ba3[_0x254eee(_0x5a3c9d._0x426af0)] : null,
|
|
1507
|
+
_0x316ba3[_0x254eee(0x19e)] ? _0x254eee(_0x5a3c9d._0xa66e02) + _0x316ba3['threadTarget'] : null,
|
|
1508
|
+
_0x316ba3[_0x254eee(_0x5a3c9d._0x35a578)] ? _0x254eee(0x245) + _0x316ba3[_0x254eee(0x2a1)] : null
|
|
1509
|
+
][_0x254eee(_0x5a3c9d._0x4832f9)](Boolean)[_0x254eee(_0x5a3c9d._0x1d8995)]('\x20') : _0x316ba3['workerHandoffError'] ? _0x254eee(_0x5a3c9d._0x1381c4) + _0x316ba3['workerHandoffError'] : '';
|
|
1442
1510
|
return [
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
][
|
|
1511
|
+
_0x19713a + '\x20claimed' + _0x4ffad8,
|
|
1512
|
+
_0x1ed147
|
|
1513
|
+
][_0x254eee(0x1d2)](Boolean)[_0x254eee(_0x5a3c9d._0x1d8995)]('\x20');
|
|
1446
1514
|
}
|
|
1447
|
-
const
|
|
1448
|
-
return
|
|
1449
|
-
})[
|
|
1515
|
+
const _0x115228 = _0x316ba3['taskNumber'] == null ? _0x316ba3[_0x254eee(_0x5a3c9d._0x232267)] ?? '(unknown)' : '#' + _0x316ba3['taskNumber'];
|
|
1516
|
+
return _0x115228 + _0x254eee(0x1bb) + (_0x316ba3['reason'] ?? _0x254eee(0x25e));
|
|
1517
|
+
})[_0x1256a4(0x295)]('\x0a');
|
|
1450
1518
|
}
|
|
1451
|
-
function formatUnclaimTaskResult(
|
|
1452
|
-
const
|
|
1453
|
-
|
|
1519
|
+
function formatUnclaimTaskResult(_0x3a2199) {
|
|
1520
|
+
const _0x6e1faa = {
|
|
1521
|
+
_0x41176e: 0x21b,
|
|
1522
|
+
_0x5c1bb5: 0x1cf
|
|
1523
|
+
}, _0x3922b7 = _0x84e1c7, _0x670caa = _0x3a2199[_0x3922b7(0x2d6)] == null ? _0x3922b7(_0x6e1faa._0x41176e) : '#' + _0x3a2199[_0x3922b7(0x2d6)];
|
|
1524
|
+
return _0x670caa + _0x3922b7(0x178) + _0x3a2199[_0x3922b7(_0x6e1faa._0x5c1bb5)];
|
|
1454
1525
|
}
|
|
1455
|
-
function formatUpdateTaskStatusResult(
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1526
|
+
function formatUpdateTaskStatusResult(_0x364d6f) {
|
|
1527
|
+
const _0x1faa75 = {
|
|
1528
|
+
_0x5dfa86: 0x21b,
|
|
1529
|
+
_0x5b784a: 0x178
|
|
1530
|
+
}, _0x9299b4 = _0x84e1c7, _0x44bc1d = _0x364d6f['taskNumber'] == null ? _0x9299b4(_0x1faa75._0x5dfa86) : '#' + _0x364d6f[_0x9299b4(0x2d6)];
|
|
1531
|
+
return _0x44bc1d + _0x9299b4(_0x1faa75._0x5b784a) + _0x364d6f[_0x9299b4(0x1cf)];
|
|
1458
1532
|
}
|
|
1459
1533
|
function getChatBridgeToolDefinitions() {
|
|
1460
|
-
const
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1534
|
+
const _0x1a90a5 = {
|
|
1535
|
+
_0x55b639: 0x254,
|
|
1536
|
+
_0x3909ae: 0x16c,
|
|
1537
|
+
_0x2db62f: 0x193,
|
|
1538
|
+
_0x3ebf72: 0x203,
|
|
1539
|
+
_0xd644d: 0x2a8,
|
|
1540
|
+
_0x378b0e: 0x2db,
|
|
1541
|
+
_0x39ca33: 0x1c6
|
|
1542
|
+
}, _0x10ab3c = _0x84e1c7;
|
|
1468
1543
|
return [
|
|
1469
|
-
{ 'name':
|
|
1470
|
-
{ 'name':
|
|
1471
|
-
{ 'name':
|
|
1472
|
-
{ 'name':
|
|
1473
|
-
{ 'name':
|
|
1474
|
-
{ 'name':
|
|
1475
|
-
{ 'name':
|
|
1476
|
-
{ 'name':
|
|
1477
|
-
{ 'name':
|
|
1478
|
-
{ 'name':
|
|
1479
|
-
{ 'name':
|
|
1480
|
-
{ 'name':
|
|
1481
|
-
{ 'name':
|
|
1482
|
-
{ 'name':
|
|
1483
|
-
{ 'name':
|
|
1484
|
-
{ 'name':
|
|
1485
|
-
{ 'name':
|
|
1544
|
+
{ 'name': 'send_message' },
|
|
1545
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x55b639) },
|
|
1546
|
+
{ 'name': _0x10ab3c(0x2c2) },
|
|
1547
|
+
{ 'name': 'list_server' },
|
|
1548
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x3909ae) },
|
|
1549
|
+
{ 'name': 'view_file' },
|
|
1550
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x2db62f) },
|
|
1551
|
+
{ 'name': _0x10ab3c(0x250) },
|
|
1552
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x3ebf72) },
|
|
1553
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0xd644d) },
|
|
1554
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x378b0e) },
|
|
1555
|
+
{ 'name': _0x10ab3c(0x24c) },
|
|
1556
|
+
{ 'name': _0x10ab3c(0x161) },
|
|
1557
|
+
{ 'name': 'get_worker_result' },
|
|
1558
|
+
{ 'name': _0x10ab3c(_0x1a90a5._0x39ca33) },
|
|
1559
|
+
{ 'name': 'escalate_to_main' },
|
|
1560
|
+
{ 'name': _0x10ab3c(0x18c) }
|
|
1486
1561
|
];
|
|
1487
1562
|
}
|
|
1488
|
-
function createChatBridgeHandlers(
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
},
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
},
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
},
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1563
|
+
function createChatBridgeHandlers(_0x4d6661) {
|
|
1564
|
+
const _0x1596d9 = {
|
|
1565
|
+
_0x31449a: 0x1dd,
|
|
1566
|
+
_0x1311a9: 0x25b
|
|
1567
|
+
}, _0x55e122 = {
|
|
1568
|
+
_0x184d78: 0x1c0,
|
|
1569
|
+
_0x3313dd: 0x24d,
|
|
1570
|
+
_0x4e4dd4: 0x277
|
|
1571
|
+
}, _0x2d9ef3 = {
|
|
1572
|
+
_0x2555ff: 0x1f1,
|
|
1573
|
+
_0x26b77f: 0x220,
|
|
1574
|
+
_0x4ff4cd: 0x177,
|
|
1575
|
+
_0x359702: 0x1ec,
|
|
1576
|
+
_0x445256: 0x2ae,
|
|
1577
|
+
_0x189011: 0x277,
|
|
1578
|
+
_0x5299a5: 0x1f1
|
|
1579
|
+
}, _0x24d144 = {
|
|
1580
|
+
_0x48795e: 0x26e,
|
|
1581
|
+
_0x84034c: 0x1f2,
|
|
1582
|
+
_0x1ca124: 0x25c,
|
|
1583
|
+
_0x55cb54: 0x2ae,
|
|
1584
|
+
_0x359bb8: 0x166,
|
|
1585
|
+
_0x501254: 0x166
|
|
1586
|
+
}, _0x13d6c5 = {
|
|
1587
|
+
_0x4d8875: 0x26e,
|
|
1588
|
+
_0xc05035: 0x238,
|
|
1589
|
+
_0x44feee: 0x1f1,
|
|
1590
|
+
_0x3dd377: 0x2ae,
|
|
1591
|
+
_0x460d74: 0x26f,
|
|
1592
|
+
_0x51b48d: 0x1cf
|
|
1593
|
+
}, _0x16677d = {
|
|
1594
|
+
_0x4c0e95: 0x2b6,
|
|
1595
|
+
_0x47cbb2: 0x24d,
|
|
1596
|
+
_0x3aa375: 0x2c7,
|
|
1597
|
+
_0x34981f: 0x2aa,
|
|
1598
|
+
_0x337918: 0x22a,
|
|
1599
|
+
_0x22230e: 0x27c,
|
|
1600
|
+
_0x2c36cc: 0x1f1
|
|
1601
|
+
}, _0x3c7f44 = {
|
|
1602
|
+
_0x3a4747: 0x24e,
|
|
1603
|
+
_0x4de8b5: 0x22e,
|
|
1604
|
+
_0x3e26e3: 0x297
|
|
1605
|
+
}, _0x42b309 = { _0x53522f: 0x24e }, _0x3d945a = { _0x41dee6: 0x24e }, _0x55d19c = {
|
|
1606
|
+
_0x4e67f8: 0x282,
|
|
1607
|
+
_0x5aec4a: 0x251,
|
|
1608
|
+
_0x3456dd: 0x2d6,
|
|
1609
|
+
_0x1551b6: 0x1d8
|
|
1610
|
+
}, _0x5e7390 = {
|
|
1611
|
+
_0x164244: 0x24e,
|
|
1612
|
+
_0x5782ac: 0x2c3,
|
|
1613
|
+
_0xd9897c: 0x2d2
|
|
1614
|
+
}, _0x2483f9 = {
|
|
1615
|
+
_0x191296: 0x24e,
|
|
1616
|
+
_0x2f347f: 0x26e,
|
|
1617
|
+
_0x95918d: 0x23b,
|
|
1618
|
+
_0x503c1f: 0x23b,
|
|
1619
|
+
_0x36133f: 0x2b8,
|
|
1620
|
+
_0x224522: 0x1cf,
|
|
1621
|
+
_0x4e7a71: 0x183,
|
|
1622
|
+
_0x2d7d66: 0x269,
|
|
1623
|
+
_0x12eccd: 0x216,
|
|
1624
|
+
_0x4f94b2: 0x2da,
|
|
1625
|
+
_0x5086ca: 0x180,
|
|
1626
|
+
_0x107a6f: 0x2e1,
|
|
1627
|
+
_0x334e74: 0x2d2
|
|
1628
|
+
}, _0x4e8a56 = { _0x12789c: 0x24e }, _0x4a0444 = {
|
|
1629
|
+
_0x153e57: 0x24e,
|
|
1630
|
+
_0x560339: 0x2cb
|
|
1631
|
+
}, _0xd7897f = { _0x40d176: 0x17c }, _0x3b48bd = {
|
|
1632
|
+
_0x557a67: 0x1c3,
|
|
1633
|
+
_0x51d04c: 0x1f5
|
|
1634
|
+
}, _0x5bc3f8 = {
|
|
1635
|
+
_0x4786d2: 0x26e,
|
|
1636
|
+
_0x1d7bc5: 0x261,
|
|
1637
|
+
_0x3c249a: 0x1a1,
|
|
1638
|
+
_0x26c53f: 0x183
|
|
1639
|
+
}, _0x338854 = {
|
|
1640
|
+
_0x1f66d0: 0x26e,
|
|
1641
|
+
_0x288b77: 0x23b,
|
|
1642
|
+
_0x356127: 0x1aa,
|
|
1643
|
+
_0x4d60bc: 0x206,
|
|
1644
|
+
_0x23854d: 0x2de,
|
|
1645
|
+
_0x5a6be8: 0x1e8,
|
|
1646
|
+
_0x287946: 0x2d6,
|
|
1647
|
+
_0x324e7c: 0x273,
|
|
1648
|
+
_0x2825aa: 0x1ff,
|
|
1649
|
+
_0x4322f2: 0x294,
|
|
1650
|
+
_0x1bb46f: 0x226,
|
|
1651
|
+
_0x54ea7a: 0x251,
|
|
1652
|
+
_0x5add39: 0x1e2,
|
|
1653
|
+
_0x4b9af1: 0x2af,
|
|
1654
|
+
_0x372ee1: 0x202,
|
|
1655
|
+
_0x2bd88d: 0x2c5,
|
|
1656
|
+
_0x399c31: 0x2c7,
|
|
1657
|
+
_0x55265a: 0x2d6,
|
|
1658
|
+
_0x50dda9: 0x2d6,
|
|
1659
|
+
_0x2bce5f: 0x289,
|
|
1660
|
+
_0xf7903c: 0x2ae,
|
|
1661
|
+
_0xecf81b: 0x192,
|
|
1662
|
+
_0x528ce3: 0x2aa,
|
|
1663
|
+
_0x2df23e: 0x2aa,
|
|
1664
|
+
_0x5a99e5: 0x24a
|
|
1573
1665
|
};
|
|
1574
|
-
async function
|
|
1575
|
-
const
|
|
1576
|
-
if (!
|
|
1666
|
+
async function _0x529af5(_0x188368) {
|
|
1667
|
+
const _0x5e8d72 = _0x4ff1;
|
|
1668
|
+
if (!_0x4d6661[_0x5e8d72(_0x338854._0x1f66d0)] || !_0x4d6661[_0x5e8d72(_0x338854._0x288b77)] || _0x4d6661[_0x5e8d72(_0x338854._0x356127)] || _0x4d6661[_0x5e8d72(_0x338854._0x4d60bc)] !== !![])
|
|
1577
1669
|
return null;
|
|
1578
|
-
const
|
|
1579
|
-
if (
|
|
1670
|
+
const _0xc34531 = parseTarget(_0x188368[_0x5e8d72(0x2b8)]);
|
|
1671
|
+
if (_0xc34531[_0x5e8d72(_0x338854._0x23854d)] !== 'channel')
|
|
1580
1672
|
return null;
|
|
1581
|
-
const
|
|
1582
|
-
let
|
|
1673
|
+
const _0x323a99 = _0x188368[_0x5e8d72(0x2c6)] != null ? _0xc34531[_0x5e8d72(0x1e8)] + ':t' + _0x188368['threadNumber'] : _0xc34531[_0x5e8d72(_0x338854._0x5a6be8)] + ':' + _0x188368['messageId'];
|
|
1674
|
+
let _0x55a23d;
|
|
1583
1675
|
try {
|
|
1584
|
-
const
|
|
1585
|
-
'channel':
|
|
1676
|
+
const _0x3bea36 = await _0x4d6661[_0x5e8d72(0x24e)][_0x5e8d72(0x2cb)]({
|
|
1677
|
+
'channel': _0x323a99,
|
|
1586
1678
|
'limit': 0x14
|
|
1587
1679
|
});
|
|
1588
|
-
|
|
1680
|
+
_0x55a23d = _0x3bea36['messages'][_0x5e8d72(0x2da)](_0x4c2ab7 => _0x4c2ab7[_0x5e8d72(0x251)] === _0x188368[_0x5e8d72(0x251)]);
|
|
1589
1681
|
} catch {
|
|
1590
|
-
|
|
1682
|
+
_0x55a23d = void 0x0;
|
|
1591
1683
|
}
|
|
1592
|
-
const
|
|
1593
|
-
|
|
1684
|
+
const _0x23c28f = _0x188368[_0x5e8d72(0x2d6)] == null ? _0x5e8d72(0x21b) : '#' + _0x188368[_0x5e8d72(_0x338854._0x287946)], _0x4acaa6 = [
|
|
1685
|
+
_0x5e8d72(_0x338854._0x324e7c) + _0x323a99 + _0x5e8d72(0x28a) + _0x188368['messageId'][_0x5e8d72(0x16b)](0x0, 0x8) + _0x5e8d72(_0x338854._0x2825aa) + new Date()[_0x5e8d72(_0x338854._0x4322f2)]() + _0x5e8d72(0x1f9) + _0x23c28f + _0x5e8d72(_0x338854._0x1bb46f),
|
|
1594
1686
|
'',
|
|
1595
|
-
|
|
1687
|
+
_0x55a23d ? 'Root\x20task\x20message:\x0a' + _0x55a23d[_0x5e8d72(0x22c)] : _0x5e8d72(0x1a0) + _0x188368[_0x5e8d72(_0x338854._0x54ea7a)],
|
|
1596
1688
|
'',
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
][
|
|
1600
|
-
'method':
|
|
1601
|
-
'headers': { 'Content-Type':
|
|
1602
|
-
'body': JSON[
|
|
1603
|
-
'agent_id':
|
|
1604
|
-
'thread_target':
|
|
1689
|
+
_0x5e8d72(_0x338854._0x5add39) + _0x323a99,
|
|
1690
|
+
_0x5e8d72(_0x338854._0x4b9af1)
|
|
1691
|
+
]['join']('\x0a'), _0x4038f6 = await fetch(_0x4d6661[_0x5e8d72(0x26e)] + _0x5e8d72(_0x338854._0x372ee1), {
|
|
1692
|
+
'method': _0x5e8d72(_0x338854._0x2bd88d),
|
|
1693
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1694
|
+
'body': JSON[_0x5e8d72(_0x338854._0x399c31)]({
|
|
1695
|
+
'agent_id': _0x4d6661['agentId'],
|
|
1696
|
+
'thread_target': _0x323a99,
|
|
1605
1697
|
'spawn_packet': {
|
|
1606
|
-
'replyTarget':
|
|
1607
|
-
...
|
|
1698
|
+
'replyTarget': _0x323a99,
|
|
1699
|
+
..._0x188368['taskId'] ? { 'taskId': _0x188368['taskId'] } : _0x188368[_0x5e8d72(_0x338854._0x55265a)] != null ? { 'taskId': 'task-' + _0x188368[_0x5e8d72(_0x338854._0x50dda9)] } : {}
|
|
1608
1700
|
},
|
|
1609
1701
|
'payload': {
|
|
1610
|
-
'mode':
|
|
1611
|
-
'text':
|
|
1702
|
+
'mode': _0x5e8d72(_0x338854._0x2bce5f),
|
|
1703
|
+
'text': _0x4acaa6
|
|
1612
1704
|
}
|
|
1613
1705
|
})
|
|
1614
|
-
}),
|
|
1615
|
-
if (!
|
|
1616
|
-
throw new Error(
|
|
1706
|
+
}), _0x661a28 = await _0x4038f6[_0x5e8d72(_0x338854._0xf7903c)]();
|
|
1707
|
+
if (!_0x661a28['ok'])
|
|
1708
|
+
throw new Error(_0x661a28[_0x5e8d72(0x277)] ?? _0x5e8d72(_0x338854._0xecf81b));
|
|
1617
1709
|
return {
|
|
1618
1710
|
'stopMain': !![],
|
|
1619
|
-
'threadTarget':
|
|
1620
|
-
'workerDisposition':
|
|
1711
|
+
'threadTarget': _0x323a99,
|
|
1712
|
+
'workerDisposition': _0x661a28['disposition'] === _0x5e8d72(_0x338854._0x528ce3) ? _0x5e8d72(_0x338854._0x2df23e) : _0x5e8d72(_0x338854._0x5a99e5),
|
|
1621
1713
|
'workerHandoff': !![],
|
|
1622
|
-
'workerSessionId':
|
|
1623
|
-
'executionMode':
|
|
1714
|
+
'workerSessionId': _0x661a28[_0x5e8d72(0x27c)] ?? '',
|
|
1715
|
+
'executionMode': _0x5e8d72(0x2c1)
|
|
1624
1716
|
};
|
|
1625
1717
|
}
|
|
1626
|
-
async function
|
|
1627
|
-
const
|
|
1628
|
-
if (!
|
|
1718
|
+
async function _0x474296() {
|
|
1719
|
+
const _0x1f0683 = _0x4ff1;
|
|
1720
|
+
if (!_0x4d6661[_0x1f0683(0x26e)] || !_0x4d6661[_0x1f0683(0x23b)] || _0x4d6661['workerMode'])
|
|
1629
1721
|
return null;
|
|
1630
1722
|
try {
|
|
1631
|
-
const
|
|
1632
|
-
if (!
|
|
1723
|
+
const _0x179960 = await fetch(_0x4d6661[_0x1f0683(_0x5bc3f8._0x4786d2)] + '/workers/list?agent_id=' + encodeURIComponent(_0x4d6661['agentId'])), _0x9a5a1c = await _0x179960['json']();
|
|
1724
|
+
if (!_0x9a5a1c['ok'])
|
|
1633
1725
|
return null;
|
|
1634
|
-
const
|
|
1635
|
-
for (const
|
|
1636
|
-
|
|
1726
|
+
const _0x1e3b1a = new Set();
|
|
1727
|
+
for (const _0xeab87c of _0x9a5a1c[_0x1f0683(_0x5bc3f8._0x1d7bc5)]) {
|
|
1728
|
+
_0xeab87c[_0x1f0683(0x1cf)] !== _0x1f0683(_0x5bc3f8._0x3c249a) && _0xeab87c[_0x1f0683(0x183)] && _0x1e3b1a[_0x1f0683(0x2e1)](_0xeab87c[_0x1f0683(_0x5bc3f8._0x26c53f)]);
|
|
1637
1729
|
}
|
|
1638
|
-
return
|
|
1730
|
+
return _0x1e3b1a[_0x1f0683(0x2e5)] > 0x0 ? _0x1e3b1a : null;
|
|
1639
1731
|
} catch {
|
|
1640
1732
|
return null;
|
|
1641
1733
|
}
|
|
1642
1734
|
}
|
|
1643
1735
|
return {
|
|
1644
|
-
async 'send_message'(
|
|
1645
|
-
const
|
|
1646
|
-
'attachmentIds':
|
|
1647
|
-
'content':
|
|
1648
|
-
'target':
|
|
1736
|
+
async 'send_message'(_0x4736b3) {
|
|
1737
|
+
const _0x5c5842 = _0x4ff1, _0x5b3df9 = await _0x4d6661[_0x5c5842(0x24e)][_0x5c5842(_0x3b48bd._0x557a67)]({
|
|
1738
|
+
'attachmentIds': _0x4736b3['attachment_ids'],
|
|
1739
|
+
'content': _0x4736b3['content'],
|
|
1740
|
+
'target': _0x4736b3[_0x5c5842(0x1f5)]
|
|
1649
1741
|
});
|
|
1650
|
-
return
|
|
1742
|
+
return _0x5c5842(0x21a) + _0x4736b3[_0x5c5842(_0x3b48bd._0x51d04c)] + _0x5c5842(0x2bf) + _0x5b3df9[_0x5c5842(0x251)];
|
|
1651
1743
|
},
|
|
1652
1744
|
async 'check_messages'() {
|
|
1653
|
-
const
|
|
1654
|
-
if (!
|
|
1655
|
-
const
|
|
1656
|
-
if (
|
|
1657
|
-
return formatCheckMessages(
|
|
1745
|
+
const _0x1bd20d = _0x4ff1, _0x108309 = await _0x4d6661[_0x1bd20d(0x24e)][_0x1bd20d(_0xd7897f._0x40d176)]();
|
|
1746
|
+
if (!_0x4d6661[_0x1bd20d(0x1aa)]) {
|
|
1747
|
+
const _0x503e4e = await _0x474296();
|
|
1748
|
+
if (_0x503e4e)
|
|
1749
|
+
return formatCheckMessages(_0x108309['messages']['filter'](_0x3d586b => !_0x503e4e[_0x1bd20d(0x210)](_0x3d586b[_0x1bd20d(0x1f5)])));
|
|
1658
1750
|
}
|
|
1659
|
-
return formatCheckMessages(
|
|
1751
|
+
return formatCheckMessages(_0x108309['messages']);
|
|
1660
1752
|
},
|
|
1661
|
-
async 'read_history'(
|
|
1662
|
-
const
|
|
1663
|
-
return formatHistory(
|
|
1753
|
+
async 'read_history'(_0x291297) {
|
|
1754
|
+
const _0x37fb9b = _0x4ff1, _0x311de7 = await _0x4d6661[_0x37fb9b(_0x4a0444._0x153e57)][_0x37fb9b(_0x4a0444._0x560339)](_0x291297);
|
|
1755
|
+
return formatHistory(_0x311de7);
|
|
1664
1756
|
},
|
|
1665
1757
|
async 'list_server'() {
|
|
1666
|
-
const
|
|
1667
|
-
return formatServerDirectory(
|
|
1758
|
+
const _0x3cdffa = _0x4ff1, _0x5dd534 = await _0x4d6661[_0x3cdffa(_0x4e8a56._0x12789c)][_0x3cdffa(0x2ab)]();
|
|
1759
|
+
return formatServerDirectory(_0x5dd534);
|
|
1668
1760
|
},
|
|
1669
|
-
async 'list_tasks'(
|
|
1670
|
-
const
|
|
1671
|
-
let
|
|
1672
|
-
if (
|
|
1761
|
+
async 'list_tasks'(_0xabf973) {
|
|
1762
|
+
const _0x1b34d7 = _0x4ff1, _0x52f6c2 = await _0x4d6661[_0x1b34d7(_0x2483f9._0x191296)][_0x1b34d7(0x230)](_0xabf973);
|
|
1763
|
+
let _0x2b7d18;
|
|
1764
|
+
if (_0x4d6661[_0x1b34d7(_0x2483f9._0x2f347f)] && _0x4d6661[_0x1b34d7(_0x2483f9._0x95918d)])
|
|
1673
1765
|
try {
|
|
1674
|
-
const
|
|
1675
|
-
if (
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1678
|
-
for (const
|
|
1679
|
-
if (
|
|
1766
|
+
const _0x244d9b = await fetch(_0x4d6661['daemonLocalUrl'] + _0x1b34d7(0x186) + encodeURIComponent(_0x4d6661[_0x1b34d7(_0x2483f9._0x503c1f)])), _0x1c77f1 = await _0x244d9b[_0x1b34d7(0x2ae)]();
|
|
1767
|
+
if (_0x1c77f1['ok']) {
|
|
1768
|
+
const _0x26a6de = _0xabf973[_0x1b34d7(_0x2483f9._0x36133f)] + ':';
|
|
1769
|
+
_0x2b7d18 = new Set();
|
|
1770
|
+
for (const _0x146a14 of _0x1c77f1[_0x1b34d7(0x261)]) {
|
|
1771
|
+
if (_0x146a14[_0x1b34d7(_0x2483f9._0x224522)] === _0x1b34d7(0x1a1))
|
|
1680
1772
|
continue;
|
|
1681
|
-
if (
|
|
1682
|
-
const
|
|
1683
|
-
if (
|
|
1684
|
-
|
|
1773
|
+
if (_0x146a14[_0x1b34d7(_0x2483f9._0x4e7a71)]?.[_0x1b34d7(_0x2483f9._0x2d7d66)](_0x26a6de)) {
|
|
1774
|
+
const _0xea2c45 = _0x146a14[_0x1b34d7(0x183)][_0x1b34d7(0x16b)](_0x26a6de[_0x1b34d7(_0x2483f9._0x12eccd)]), _0x5ce0ed = _0x52f6c2['tasks'][_0x1b34d7(_0x2483f9._0x4f94b2)](_0x494f4f => _0x494f4f[_0x1b34d7(0x251)]?.['startsWith'](_0xea2c45) === !![]);
|
|
1775
|
+
if (_0x5ce0ed?.['taskNumber'] != null) {
|
|
1776
|
+
_0x2b7d18['add'](_0x5ce0ed[_0x1b34d7(0x2d6)]);
|
|
1685
1777
|
continue;
|
|
1686
1778
|
}
|
|
1687
1779
|
}
|
|
1688
|
-
if (
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1780
|
+
if (_0x146a14[_0x1b34d7(_0x2483f9._0x5086ca)]) {
|
|
1781
|
+
const _0xd780a = _0x52f6c2['tasks'][_0x1b34d7(_0x2483f9._0x4f94b2)](_0x36aaf2 => _0x36aaf2['taskId'] === _0x146a14[_0x1b34d7(0x180)]);
|
|
1782
|
+
_0xd780a?.['taskNumber'] != null && _0x2b7d18[_0x1b34d7(_0x2483f9._0x107a6f)](_0xd780a['taskNumber']);
|
|
1691
1783
|
}
|
|
1692
1784
|
}
|
|
1693
1785
|
}
|
|
1694
1786
|
} catch {
|
|
1695
1787
|
}
|
|
1696
|
-
return formatTaskList(
|
|
1788
|
+
return formatTaskList(_0x52f6c2[_0x1b34d7(_0x2483f9._0x334e74)], _0x2b7d18);
|
|
1697
1789
|
},
|
|
1698
|
-
async 'create_tasks'(
|
|
1699
|
-
const
|
|
1700
|
-
return formatCreatedTasks(
|
|
1790
|
+
async 'create_tasks'(_0x1b3aa8) {
|
|
1791
|
+
const _0x27b53e = _0x4ff1, _0x5831eb = await _0x4d6661[_0x27b53e(_0x5e7390._0x164244)][_0x27b53e(_0x5e7390._0x5782ac)](_0x1b3aa8);
|
|
1792
|
+
return formatCreatedTasks(_0x5831eb[_0x27b53e(_0x5e7390._0xd9897c)]);
|
|
1701
1793
|
},
|
|
1702
|
-
async 'claim_tasks'(
|
|
1703
|
-
const
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
_0x85eb89: 0x22e
|
|
1708
|
-
}, _0x3f661c = _0xaeca, _0x181777 = await _0x38edde['client'][_0x3f661c(0x257)](_0x1b8164), _0x433dc2 = await Promise['all'](_0x181777['results'][_0x3f661c(0x243)](async _0x215fb8 => {
|
|
1709
|
-
const _0x292835 = _0x3f661c;
|
|
1710
|
-
if (!_0x215fb8[_0x292835(_0x55f9d2._0x385c2f)] || !_0x215fb8[_0x292835(0x160)])
|
|
1711
|
-
return _0x215fb8;
|
|
1794
|
+
async 'claim_tasks'(_0x346f58) {
|
|
1795
|
+
const _0x14803c = _0x4ff1, _0x3eb44e = await _0x4d6661[_0x14803c(_0x3d945a._0x41dee6)][_0x14803c(0x29b)](_0x346f58), _0x503bfb = await Promise[_0x14803c(0x27e)](_0x3eb44e['results']['map'](async _0x16eb0f => {
|
|
1796
|
+
const _0x3ef427 = _0x14803c;
|
|
1797
|
+
if (!_0x16eb0f[_0x3ef427(_0x55d19c._0x4e67f8)] || !_0x16eb0f[_0x3ef427(_0x55d19c._0x5aec4a)])
|
|
1798
|
+
return _0x16eb0f;
|
|
1712
1799
|
try {
|
|
1713
|
-
const
|
|
1714
|
-
'channel':
|
|
1715
|
-
'messageId':
|
|
1716
|
-
'taskId':
|
|
1717
|
-
'taskNumber':
|
|
1718
|
-
'threadNumber':
|
|
1800
|
+
const _0x2f6645 = await _0x529af5({
|
|
1801
|
+
'channel': _0x346f58['channel'],
|
|
1802
|
+
'messageId': _0x16eb0f[_0x3ef427(0x251)],
|
|
1803
|
+
'taskId': _0x16eb0f[_0x3ef427(0x2cf)],
|
|
1804
|
+
'taskNumber': _0x16eb0f[_0x3ef427(_0x55d19c._0x3456dd)],
|
|
1805
|
+
'threadNumber': _0x16eb0f['threadNumber']
|
|
1719
1806
|
});
|
|
1720
|
-
return
|
|
1721
|
-
...
|
|
1722
|
-
...
|
|
1723
|
-
} :
|
|
1724
|
-
} catch (
|
|
1807
|
+
return _0x2f6645 ? {
|
|
1808
|
+
..._0x16eb0f,
|
|
1809
|
+
..._0x2f6645
|
|
1810
|
+
} : _0x16eb0f;
|
|
1811
|
+
} catch (_0x2e3106) {
|
|
1725
1812
|
return {
|
|
1726
|
-
...
|
|
1727
|
-
'workerHandoffError':
|
|
1813
|
+
..._0x16eb0f,
|
|
1814
|
+
'workerHandoffError': _0x2e3106 instanceof Error ? _0x2e3106[_0x3ef427(_0x55d19c._0x1551b6)] : 'worker\x20handoff\x20failed'
|
|
1728
1815
|
};
|
|
1729
1816
|
}
|
|
1730
1817
|
}));
|
|
1731
|
-
return formatClaimTaskResults(
|
|
1818
|
+
return formatClaimTaskResults(_0x503bfb);
|
|
1732
1819
|
},
|
|
1733
|
-
async 'unclaim_task'(
|
|
1734
|
-
const
|
|
1735
|
-
return formatUnclaimTaskResult(
|
|
1820
|
+
async 'unclaim_task'(_0x31fb1f) {
|
|
1821
|
+
const _0x3e51c7 = _0x4ff1, _0x568471 = await _0x4d6661[_0x3e51c7(0x24e)][_0x3e51c7(0x2bc)](_0x31fb1f);
|
|
1822
|
+
return formatUnclaimTaskResult(_0x568471);
|
|
1736
1823
|
},
|
|
1737
|
-
async 'update_task_status'(
|
|
1738
|
-
const
|
|
1739
|
-
return formatUpdateTaskStatusResult(
|
|
1824
|
+
async 'update_task_status'(_0xb9b801) {
|
|
1825
|
+
const _0x28c25f = _0x4ff1, _0x17407d = await _0x4d6661[_0x28c25f(_0x42b309._0x53522f)]['updateTaskStatus'](_0xb9b801);
|
|
1826
|
+
return formatUpdateTaskStatusResult(_0x17407d);
|
|
1740
1827
|
},
|
|
1741
|
-
async 'upload_file'(
|
|
1742
|
-
const
|
|
1743
|
-
sizeBytes:
|
|
1744
|
-
...
|
|
1745
|
-
} =
|
|
1746
|
-
'channel':
|
|
1747
|
-
...
|
|
1828
|
+
async 'upload_file'(_0x360367) {
|
|
1829
|
+
const _0x2ead65 = _0x4ff1, _0x1a62d3 = await _0x4d6661[_0x2ead65(0x18f)](_0x360367[_0x2ead65(0x221)]), {
|
|
1830
|
+
sizeBytes: _0x19ef60,
|
|
1831
|
+
..._0x5a7f46
|
|
1832
|
+
} = _0x1a62d3, _0x4cfdf1 = await _0x4d6661[_0x2ead65(0x24e)]['uploadFile']({
|
|
1833
|
+
'channel': _0x360367[_0x2ead65(0x2b8)],
|
|
1834
|
+
..._0x5a7f46
|
|
1748
1835
|
});
|
|
1749
|
-
return formatUploadResult(
|
|
1836
|
+
return formatUploadResult(_0x4cfdf1);
|
|
1750
1837
|
},
|
|
1751
|
-
async 'view_file'(
|
|
1752
|
-
const
|
|
1753
|
-
if (
|
|
1754
|
-
return formatViewFileResult(
|
|
1755
|
-
const
|
|
1756
|
-
'attachmentId':
|
|
1757
|
-
'contentType':
|
|
1758
|
-
'data':
|
|
1759
|
-
'originalFilename':
|
|
1838
|
+
async 'view_file'(_0x5a5cc2) {
|
|
1839
|
+
const _0x4f7383 = _0x4ff1, _0x1fbb39 = await _0x4d6661[_0x4f7383(0x22d)][_0x4f7383(0x292)](_0x5a5cc2[_0x4f7383(0x2bd)]);
|
|
1840
|
+
if (_0x1fbb39)
|
|
1841
|
+
return formatViewFileResult(_0x1fbb39, !![]);
|
|
1842
|
+
const _0x47362f = await _0x4d6661[_0x4f7383(_0x3c7f44._0x3a4747)][_0x4f7383(_0x3c7f44._0x4de8b5)](_0x5a5cc2[_0x4f7383(0x2bd)]), _0x28c4c9 = await _0x4d6661[_0x4f7383(0x22d)][_0x4f7383(0x207)]({
|
|
1843
|
+
'attachmentId': _0x5a5cc2[_0x4f7383(0x2bd)],
|
|
1844
|
+
'contentType': _0x47362f['contentType'],
|
|
1845
|
+
'data': _0x47362f[_0x4f7383(_0x3c7f44._0x3e26e3)],
|
|
1846
|
+
'originalFilename': _0x47362f['originalFilename']
|
|
1760
1847
|
});
|
|
1761
|
-
return formatViewFileResult(
|
|
1848
|
+
return formatViewFileResult(_0x28c4c9, ![]);
|
|
1762
1849
|
},
|
|
1763
|
-
async 'spawn_worker'(
|
|
1764
|
-
const
|
|
1765
|
-
if (!
|
|
1766
|
-
return
|
|
1767
|
-
const
|
|
1768
|
-
'method':
|
|
1769
|
-
'headers': { 'Content-Type':
|
|
1770
|
-
'body': JSON[
|
|
1771
|
-
'agent_id':
|
|
1772
|
-
'work_key':
|
|
1773
|
-
'thread_target':
|
|
1850
|
+
async 'spawn_worker'(_0x34bb39) {
|
|
1851
|
+
const _0x15ba55 = _0x4ff1;
|
|
1852
|
+
if (!_0x4d6661['daemonLocalUrl'] || !_0x4d6661['agentId'])
|
|
1853
|
+
return _0x15ba55(0x2a2);
|
|
1854
|
+
const _0x52ead1 = await fetch(_0x4d6661[_0x15ba55(0x26e)] + _0x15ba55(_0x16677d._0x4c0e95), {
|
|
1855
|
+
'method': _0x15ba55(0x2c5),
|
|
1856
|
+
'headers': { 'Content-Type': _0x15ba55(_0x16677d._0x47cbb2) },
|
|
1857
|
+
'body': JSON[_0x15ba55(_0x16677d._0x3aa375)]({
|
|
1858
|
+
'agent_id': _0x4d6661[_0x15ba55(0x23b)],
|
|
1859
|
+
'work_key': _0x34bb39[_0x15ba55(0x1f1)],
|
|
1860
|
+
'thread_target': _0x34bb39[_0x15ba55(0x183)],
|
|
1774
1861
|
'spawn_packet': {
|
|
1775
|
-
'replyTarget':
|
|
1776
|
-
'taskId':
|
|
1862
|
+
'replyTarget': _0x34bb39['reply_target'],
|
|
1863
|
+
'taskId': _0x34bb39[_0x15ba55(0x180)]
|
|
1777
1864
|
}
|
|
1778
1865
|
})
|
|
1779
|
-
}),
|
|
1780
|
-
if (!
|
|
1781
|
-
throw new Error(
|
|
1782
|
-
const
|
|
1783
|
-
return
|
|
1866
|
+
}), _0x5c2cb2 = await _0x52ead1[_0x15ba55(0x2ae)]();
|
|
1867
|
+
if (!_0x5c2cb2['ok'])
|
|
1868
|
+
throw new Error(_0x5c2cb2[_0x15ba55(0x277)] ?? _0x15ba55(0x2d8));
|
|
1869
|
+
const _0x26370e = _0x5c2cb2[_0x15ba55(0x172)] === _0x15ba55(_0x16677d._0x34981f) ? _0x15ba55(0x2aa) : _0x15ba55(0x235);
|
|
1870
|
+
return _0x15ba55(_0x16677d._0x337918) + _0x26370e + '.\x20Session\x20ID:\x20' + _0x5c2cb2[_0x15ba55(_0x16677d._0x22230e)] + _0x15ba55(0x2a4) + _0x34bb39[_0x15ba55(_0x16677d._0x2c36cc)];
|
|
1784
1871
|
},
|
|
1785
|
-
async 'get_worker_status'(
|
|
1786
|
-
const
|
|
1787
|
-
if (!
|
|
1788
|
-
return
|
|
1789
|
-
const
|
|
1790
|
-
if (!
|
|
1791
|
-
return
|
|
1792
|
-
return
|
|
1872
|
+
async 'get_worker_status'(_0x1c4d0a) {
|
|
1873
|
+
const _0x4742b0 = _0x4ff1;
|
|
1874
|
+
if (!_0x4d6661[_0x4742b0(_0x13d6c5._0x4d8875)])
|
|
1875
|
+
return _0x4742b0(0x1f2);
|
|
1876
|
+
const _0x53cf2b = await fetch(_0x4d6661['daemonLocalUrl'] + _0x4742b0(_0x13d6c5._0xc05035) + encodeURIComponent(_0x1c4d0a[_0x4742b0(_0x13d6c5._0x44feee)])), _0x5cb011 = await _0x53cf2b[_0x4742b0(_0x13d6c5._0x3dd377)]();
|
|
1877
|
+
if (!_0x5cb011['ok'])
|
|
1878
|
+
return _0x4742b0(_0x13d6c5._0x460d74) + _0x1c4d0a['work_key'] + _0x4742b0(0x1f4);
|
|
1879
|
+
return _0x4742b0(_0x13d6c5._0x460d74) + _0x1c4d0a[_0x4742b0(_0x13d6c5._0x44feee)] + _0x4742b0(0x29c) + _0x5cb011[_0x4742b0(_0x13d6c5._0x51b48d)];
|
|
1793
1880
|
},
|
|
1794
|
-
async 'get_worker_result'(
|
|
1795
|
-
const
|
|
1796
|
-
if (!
|
|
1797
|
-
return
|
|
1798
|
-
const
|
|
1799
|
-
if (!
|
|
1800
|
-
return
|
|
1801
|
-
return JSON[
|
|
1881
|
+
async 'get_worker_result'(_0x54af7c) {
|
|
1882
|
+
const _0x26e7f7 = _0x4ff1;
|
|
1883
|
+
if (!_0x4d6661[_0x26e7f7(_0x24d144._0x48795e)])
|
|
1884
|
+
return _0x26e7f7(_0x24d144._0x84034c);
|
|
1885
|
+
const _0x158f7b = await fetch(_0x4d6661[_0x26e7f7(0x26e)] + _0x26e7f7(_0x24d144._0x1ca124) + encodeURIComponent(_0x54af7c['work_key'])), _0x5bf3ad = await _0x158f7b[_0x26e7f7(_0x24d144._0x55cb54)]();
|
|
1886
|
+
if (!_0x5bf3ad[_0x26e7f7(_0x24d144._0x359bb8)])
|
|
1887
|
+
return _0x26e7f7(0x1b1) + _0x54af7c['work_key'] + '\x22';
|
|
1888
|
+
return JSON[_0x26e7f7(0x2c7)](_0x5bf3ad[_0x26e7f7(_0x24d144._0x501254)], null, 0x2);
|
|
1802
1889
|
},
|
|
1803
|
-
async 'finish_worker'(
|
|
1804
|
-
const
|
|
1805
|
-
if (!
|
|
1806
|
-
return
|
|
1807
|
-
const
|
|
1808
|
-
'method':
|
|
1809
|
-
'headers': { 'Content-Type':
|
|
1810
|
-
'body': JSON[
|
|
1811
|
-
'work_key':
|
|
1890
|
+
async 'finish_worker'(_0x5d0b57) {
|
|
1891
|
+
const _0x22be02 = _0x4ff1;
|
|
1892
|
+
if (!_0x4d6661['daemonLocalUrl'])
|
|
1893
|
+
return _0x22be02(0x1f2);
|
|
1894
|
+
const _0x3c18db = await fetch(_0x4d6661['daemonLocalUrl'] + _0x22be02(0x283), {
|
|
1895
|
+
'method': _0x22be02(0x2c5),
|
|
1896
|
+
'headers': { 'Content-Type': _0x22be02(0x24d) },
|
|
1897
|
+
'body': JSON[_0x22be02(0x2c7)]({
|
|
1898
|
+
'work_key': _0x5d0b57[_0x22be02(_0x2d9ef3._0x2555ff)],
|
|
1812
1899
|
'resume_packet': {
|
|
1813
1900
|
'objective': '',
|
|
1814
|
-
'result':
|
|
1815
|
-
'summary':
|
|
1816
|
-
'decisions':
|
|
1817
|
-
'filesChanged':
|
|
1818
|
-
'openIssues':
|
|
1819
|
-
'nextSteps':
|
|
1901
|
+
'result': _0x5d0b57[_0x22be02(_0x2d9ef3._0x26b77f)],
|
|
1902
|
+
'summary': _0x5d0b57['summary'],
|
|
1903
|
+
'decisions': _0x5d0b57[_0x22be02(_0x2d9ef3._0x4ff4cd)] ?? [],
|
|
1904
|
+
'filesChanged': _0x5d0b57[_0x22be02(_0x2d9ef3._0x359702)] ?? [],
|
|
1905
|
+
'openIssues': _0x5d0b57[_0x22be02(0x25d)] ?? [],
|
|
1906
|
+
'nextSteps': _0x5d0b57['next_steps'] ?? []
|
|
1820
1907
|
}
|
|
1821
1908
|
})
|
|
1822
|
-
}),
|
|
1823
|
-
if (!
|
|
1824
|
-
throw new Error(
|
|
1825
|
-
return
|
|
1909
|
+
}), _0xe8c5ef = await _0x3c18db[_0x22be02(_0x2d9ef3._0x445256)]();
|
|
1910
|
+
if (!_0xe8c5ef['ok'])
|
|
1911
|
+
throw new Error(_0xe8c5ef[_0x22be02(_0x2d9ef3._0x189011)] ?? 'finish_worker\x20failed');
|
|
1912
|
+
return _0x22be02(0x26f) + _0x5d0b57[_0x22be02(_0x2d9ef3._0x5299a5)] + _0x22be02(0x291) + _0x5d0b57[_0x22be02(_0x2d9ef3._0x26b77f)];
|
|
1826
1913
|
},
|
|
1827
|
-
async 'mark_waiting_input'(
|
|
1828
|
-
const
|
|
1829
|
-
if (!
|
|
1830
|
-
return
|
|
1831
|
-
const
|
|
1832
|
-
'method':
|
|
1833
|
-
'headers': { 'Content-Type':
|
|
1834
|
-
'body': JSON[
|
|
1835
|
-
'work_key':
|
|
1836
|
-
'agent_id':
|
|
1914
|
+
async 'mark_waiting_input'(_0x49d0bc) {
|
|
1915
|
+
const _0xd4d24e = _0x4ff1;
|
|
1916
|
+
if (!_0x4d6661[_0xd4d24e(0x26e)] || !_0x4d6661['agentId'])
|
|
1917
|
+
return _0xd4d24e(_0x55e122._0x184d78);
|
|
1918
|
+
const _0x33bf9a = await fetch(_0x4d6661['daemonLocalUrl'] + '/workers/waiting_input', {
|
|
1919
|
+
'method': _0xd4d24e(0x2c5),
|
|
1920
|
+
'headers': { 'Content-Type': _0xd4d24e(_0x55e122._0x3313dd) },
|
|
1921
|
+
'body': JSON[_0xd4d24e(0x2c7)]({
|
|
1922
|
+
'work_key': _0x49d0bc[_0xd4d24e(0x1f1)],
|
|
1923
|
+
'agent_id': _0x4d6661['agentId']
|
|
1837
1924
|
})
|
|
1838
|
-
}),
|
|
1839
|
-
if (!
|
|
1840
|
-
throw new Error(
|
|
1841
|
-
return 'Worker\x20\x22' +
|
|
1925
|
+
}), _0x196edf = await _0x33bf9a[_0xd4d24e(0x2ae)]();
|
|
1926
|
+
if (!_0x196edf['ok'])
|
|
1927
|
+
throw new Error(_0x196edf[_0xd4d24e(_0x55e122._0x4e4dd4)] ?? _0xd4d24e(0x20f));
|
|
1928
|
+
return 'Worker\x20\x22' + _0x49d0bc['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
1842
1929
|
},
|
|
1843
|
-
async 'escalate_to_main'(
|
|
1844
|
-
const
|
|
1845
|
-
if (!
|
|
1846
|
-
return
|
|
1847
|
-
const
|
|
1848
|
-
'method':
|
|
1849
|
-
'headers': { 'Content-Type':
|
|
1850
|
-
'body': JSON[
|
|
1851
|
-
'work_key':
|
|
1852
|
-
'reason':
|
|
1930
|
+
async 'escalate_to_main'(_0x2fd53b) {
|
|
1931
|
+
const _0x64bd07 = _0x4ff1;
|
|
1932
|
+
if (!_0x4d6661[_0x64bd07(0x26e)])
|
|
1933
|
+
return _0x64bd07(0x1f2);
|
|
1934
|
+
const _0x5636ef = await fetch(_0x4d6661[_0x64bd07(0x26e)] + _0x64bd07(_0x1596d9._0x31449a), {
|
|
1935
|
+
'method': 'POST',
|
|
1936
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1937
|
+
'body': JSON[_0x64bd07(0x2c7)]({
|
|
1938
|
+
'work_key': _0x2fd53b['work_key'],
|
|
1939
|
+
'reason': _0x2fd53b['reason']
|
|
1853
1940
|
})
|
|
1854
|
-
}),
|
|
1855
|
-
if (!
|
|
1856
|
-
throw new Error(
|
|
1857
|
-
return
|
|
1941
|
+
}), _0xd2e174 = await _0x5636ef['json']();
|
|
1942
|
+
if (!_0xd2e174['ok'])
|
|
1943
|
+
throw new Error(_0xd2e174[_0x64bd07(0x277)] ?? _0x64bd07(_0x1596d9._0x1311a9));
|
|
1944
|
+
return _0x64bd07(0x278) + _0x2fd53b['reason'];
|
|
1858
1945
|
}
|
|
1859
1946
|
};
|
|
1860
1947
|
}
|
|
1861
|
-
function textResult(
|
|
1862
|
-
const
|
|
1948
|
+
function textResult(_0x4f7e31, _0x42bd2b = ![]) {
|
|
1949
|
+
const _0x1ac9a6 = _0x84e1c7;
|
|
1863
1950
|
return {
|
|
1864
1951
|
'content': [{
|
|
1865
|
-
'type':
|
|
1866
|
-
'text':
|
|
1952
|
+
'type': _0x1ac9a6(0x199),
|
|
1953
|
+
'text': _0x4f7e31
|
|
1867
1954
|
}],
|
|
1868
|
-
...
|
|
1955
|
+
..._0x42bd2b ? { 'isError': !![] } : {}
|
|
1869
1956
|
};
|
|
1870
1957
|
}
|
|
1871
|
-
async function registerChatBridgeTools(
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
},
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1958
|
+
async function registerChatBridgeTools(_0x100860, _0x40bb49, _0xd12731) {
|
|
1959
|
+
const _0x1173b3 = {
|
|
1960
|
+
_0x3d4965: 0x260,
|
|
1961
|
+
_0x50c0d3: 0x234,
|
|
1962
|
+
_0x18d6f2: 0x234,
|
|
1963
|
+
_0x34c3f2: 0x1a6,
|
|
1964
|
+
_0x152d7c: 0x2ca,
|
|
1965
|
+
_0x50500b: 0x288,
|
|
1966
|
+
_0x4afd5d: 0x1a6,
|
|
1967
|
+
_0x56e5f2: 0x193,
|
|
1968
|
+
_0x545458: 0x272,
|
|
1969
|
+
_0x33ed54: 0x1f6,
|
|
1970
|
+
_0x2b54de: 0x218,
|
|
1971
|
+
_0x520bf2: 0x1ea,
|
|
1972
|
+
_0x4c348d: 0x1be,
|
|
1973
|
+
_0x5a24f5: 0x29e,
|
|
1974
|
+
_0x120076: 0x232,
|
|
1975
|
+
_0xd191a: 0x234,
|
|
1976
|
+
_0x57136e: 0x288,
|
|
1977
|
+
_0xb1217e: 0x23e,
|
|
1978
|
+
_0x28beae: 0x288,
|
|
1979
|
+
_0x15925a: 0x1b9,
|
|
1980
|
+
_0x5c5956: 0x271,
|
|
1981
|
+
_0x39e2a2: 0x1f6,
|
|
1982
|
+
_0x2d01b8: 0x197,
|
|
1983
|
+
_0xf078da: 0x1ed,
|
|
1984
|
+
_0x3cc947: 0x1ea,
|
|
1985
|
+
_0xa9320c: 0x287,
|
|
1986
|
+
_0x3fcbfa: 0x2b0,
|
|
1987
|
+
_0x3e25cc: 0x24c,
|
|
1988
|
+
_0x85f55b: 0x234,
|
|
1989
|
+
_0x51351b: 0x234,
|
|
1990
|
+
_0x1a8a28: 0x288,
|
|
1991
|
+
_0x70ad3d: 0x234,
|
|
1992
|
+
_0x409e93: 0x234,
|
|
1993
|
+
_0x30b51a: 0x234,
|
|
1994
|
+
_0x1e21bf: 0x267,
|
|
1995
|
+
_0x1233bf: 0x1c6,
|
|
1996
|
+
_0x268481: 0x1c7,
|
|
1997
|
+
_0x159c6d: 0x28b,
|
|
1998
|
+
_0x1c876b: 0x2c9,
|
|
1999
|
+
_0x1deacf: 0x1d4,
|
|
2000
|
+
_0x3d1bc4: 0x234,
|
|
2001
|
+
_0xf2d26d: 0x232,
|
|
2002
|
+
_0x1aeebd: 0x234,
|
|
2003
|
+
_0x599a9f: 0x288,
|
|
2004
|
+
_0x5b62c6: 0x232,
|
|
2005
|
+
_0x349c9c: 0x1a6,
|
|
2006
|
+
_0x359646: 0x214
|
|
2007
|
+
}, _0x23baca = {
|
|
2008
|
+
_0x94f771: 0x18c,
|
|
2009
|
+
_0x323253: 0x1d8
|
|
2010
|
+
}, _0x5823ba = {
|
|
2011
|
+
_0x4f9eef: 0x26d,
|
|
2012
|
+
_0x318ffe: 0x1d8
|
|
2013
|
+
}, _0x132b03 = { _0x44a71b: 0x187 }, _0x53afb2 = {
|
|
2014
|
+
_0x1e1509: 0x1d8,
|
|
2015
|
+
_0x2bfafa: 0x22f
|
|
2016
|
+
}, _0x43d0cb = { _0x3cc686: 0x1d8 }, _0x545d60 = {
|
|
2017
|
+
_0x281249: 0x24c,
|
|
2018
|
+
_0x53d6fc: 0x2d8
|
|
2019
|
+
}, _0x2839b1 = { _0x51cb79: 0x2ba }, _0x321b93 = {
|
|
2020
|
+
_0x1b58a6: 0x2a8,
|
|
2021
|
+
_0x5f4f36: 0x1d8,
|
|
2022
|
+
_0x4e8000: 0x1c1
|
|
2023
|
+
}, _0x440e8e = { _0x1bd929: 0x203 }, _0x2bb11d = {
|
|
2024
|
+
_0x274988: 0x1bd,
|
|
2025
|
+
_0x64c0: 0x1b4
|
|
2026
|
+
}, _0x191491 = {
|
|
2027
|
+
_0x321470: 0x1d8,
|
|
2028
|
+
_0x58869b: 0x2c0
|
|
2029
|
+
}, _0x3e5701 = { _0x524d0e: 0x1d8 }, _0x584888 = _0x84e1c7, {z: _0x4bfbc5} = await import(_0x584888(_0x1173b3._0x3d4965));
|
|
2030
|
+
_0x100860[_0x584888(0x1a6)](_0x584888(0x1fc), 'Send\x20a\x20message\x20to\x20a\x20channel\x20or\x20DM.\x20Reuse\x20the\x20exact\x20target\x20string\x20from\x20incoming\x20messages;\x20thread\x20targets\x20use\x20the\x20same\x20field.', {
|
|
2031
|
+
'target': _0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)](),
|
|
2032
|
+
'content': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)](),
|
|
2033
|
+
'attachment_ids': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)]())[_0x584888(0x288)]()
|
|
2034
|
+
}, async _0x4dbcc1 => {
|
|
2035
|
+
const _0x2e8d2f = _0x584888;
|
|
1943
2036
|
try {
|
|
1944
|
-
return textResult(await
|
|
1945
|
-
} catch (
|
|
1946
|
-
return textResult(
|
|
2037
|
+
return textResult(await _0x40bb49['send_message'](_0x4dbcc1));
|
|
2038
|
+
} catch (_0x492538) {
|
|
2039
|
+
return textResult(_0x492538 instanceof Error ? _0x492538[_0x2e8d2f(_0x3e5701._0x524d0e)] : _0x2e8d2f(0x298), !![]);
|
|
1947
2040
|
}
|
|
1948
|
-
}),
|
|
1949
|
-
const
|
|
2041
|
+
}), _0x100860['tool'](_0x584888(0x254), _0x584888(0x20b), {}, async () => {
|
|
2042
|
+
const _0x4b5aa9 = _0x584888;
|
|
1950
2043
|
try {
|
|
1951
|
-
return textResult(await
|
|
1952
|
-
} catch (
|
|
1953
|
-
return textResult(
|
|
2044
|
+
return textResult(await _0x40bb49['check_messages']());
|
|
2045
|
+
} catch (_0x44aa3f) {
|
|
2046
|
+
return textResult(_0x44aa3f instanceof Error ? _0x44aa3f[_0x4b5aa9(0x1d8)] : _0x4b5aa9(0x27f), !![]);
|
|
1954
2047
|
}
|
|
1955
|
-
}),
|
|
1956
|
-
'channel':
|
|
1957
|
-
'limit':
|
|
1958
|
-
'before':
|
|
1959
|
-
'after':
|
|
1960
|
-
}, async
|
|
1961
|
-
const
|
|
2048
|
+
}), _0x100860[_0x584888(_0x1173b3._0x34c3f2)](_0x584888(0x2c2), _0x584888(_0x1173b3._0x152d7c), {
|
|
2049
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2050
|
+
'limit': _0x4bfbc5[_0x584888(0x1b9)]()[_0x584888(0x288)](),
|
|
2051
|
+
'before': _0x4bfbc5[_0x584888(0x1b9)]()['optional'](),
|
|
2052
|
+
'after': _0x4bfbc5[_0x584888(0x1b9)]()[_0x584888(_0x1173b3._0x50500b)]()
|
|
2053
|
+
}, async _0x1b1d7b => {
|
|
2054
|
+
const _0x26859a = _0x584888;
|
|
1962
2055
|
try {
|
|
1963
|
-
return textResult(await
|
|
1964
|
-
} catch (
|
|
1965
|
-
return textResult(
|
|
2056
|
+
return textResult(await _0x40bb49[_0x26859a(0x2c2)](_0x1b1d7b));
|
|
2057
|
+
} catch (_0x15bad1) {
|
|
2058
|
+
return textResult(_0x15bad1 instanceof Error ? _0x15bad1[_0x26859a(_0x191491._0x321470)] : _0x26859a(_0x191491._0x58869b), !![]);
|
|
1966
2059
|
}
|
|
1967
|
-
}),
|
|
1968
|
-
const
|
|
2060
|
+
}), _0x100860[_0x584888(_0x1173b3._0x4afd5d)](_0x584888(0x1bd), _0x584888(0x20c), {}, async () => {
|
|
2061
|
+
const _0x39da6c = _0x584888;
|
|
1969
2062
|
try {
|
|
1970
|
-
return textResult(await
|
|
1971
|
-
} catch (
|
|
1972
|
-
return textResult(
|
|
2063
|
+
return textResult(await _0x40bb49[_0x39da6c(_0x2bb11d._0x274988)]());
|
|
2064
|
+
} catch (_0x2cbfdd) {
|
|
2065
|
+
return textResult(_0x2cbfdd instanceof Error ? _0x2cbfdd[_0x39da6c(0x1d8)] : _0x39da6c(_0x2bb11d._0x64c0), !![]);
|
|
1973
2066
|
}
|
|
1974
|
-
}),
|
|
1975
|
-
'channel':
|
|
1976
|
-
'status':
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
])[
|
|
1982
|
-
}, async
|
|
1983
|
-
const
|
|
2067
|
+
}), _0x100860[_0x584888(_0x1173b3._0x34c3f2)](_0x584888(_0x1173b3._0x56e5f2), _0x584888(_0x1173b3._0x545458), {
|
|
2068
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2069
|
+
'status': _0x4bfbc5[_0x584888(_0x1173b3._0x33ed54)]([
|
|
2070
|
+
_0x584888(0x197),
|
|
2071
|
+
_0x584888(0x1ed),
|
|
2072
|
+
_0x584888(_0x1173b3._0x2b54de),
|
|
2073
|
+
_0x584888(_0x1173b3._0x520bf2)
|
|
2074
|
+
])['optional']()
|
|
2075
|
+
}, async _0x6757d5 => {
|
|
2076
|
+
const _0xae893c = _0x584888;
|
|
1984
2077
|
try {
|
|
1985
|
-
return textResult(await
|
|
1986
|
-
} catch (
|
|
1987
|
-
return textResult(
|
|
2078
|
+
return textResult(await _0x40bb49['list_tasks'](_0x6757d5));
|
|
2079
|
+
} catch (_0x7c28ae) {
|
|
2080
|
+
return textResult(_0x7c28ae instanceof Error ? _0x7c28ae[_0xae893c(0x1d8)] : 'list_tasks\x20failed', !![]);
|
|
1988
2081
|
}
|
|
1989
|
-
}),
|
|
1990
|
-
'channel':
|
|
1991
|
-
'idempotency_key':
|
|
1992
|
-
'tasks':
|
|
1993
|
-
'title':
|
|
1994
|
-
'description':
|
|
1995
|
-
'priority':
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
])[
|
|
2082
|
+
}), _0x100860['tool']('create_tasks', 'Create\x20one\x20or\x20more\x20tasks\x20in\x20a\x20channel.', {
|
|
2083
|
+
'channel': _0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)](),
|
|
2084
|
+
'idempotency_key': _0x4bfbc5[_0x584888(0x234)]()[_0x584888(_0x1173b3._0x50500b)](),
|
|
2085
|
+
'tasks': _0x4bfbc5[_0x584888(0x232)](_0x4bfbc5[_0x584888(0x23e)]({
|
|
2086
|
+
'title': _0x4bfbc5[_0x584888(0x234)](),
|
|
2087
|
+
'description': _0x4bfbc5['string']()['optional'](),
|
|
2088
|
+
'priority': _0x4bfbc5[_0x584888(0x1f6)]([
|
|
2089
|
+
'low',
|
|
2090
|
+
_0x584888(_0x1173b3._0x4c348d),
|
|
2091
|
+
_0x584888(_0x1173b3._0x5a24f5),
|
|
2092
|
+
_0x584888(0x1b7)
|
|
2093
|
+
])[_0x584888(_0x1173b3._0x50500b)]()
|
|
2001
2094
|
}))
|
|
2002
|
-
}, async
|
|
2003
|
-
const
|
|
2095
|
+
}, async _0x5d12dc => {
|
|
2096
|
+
const _0x2480ae = _0x584888;
|
|
2004
2097
|
try {
|
|
2005
|
-
return textResult(await
|
|
2006
|
-
} catch (
|
|
2007
|
-
return textResult(
|
|
2098
|
+
return textResult(await _0x40bb49[_0x2480ae(0x250)](_0x5d12dc));
|
|
2099
|
+
} catch (_0x1c11ad) {
|
|
2100
|
+
return textResult(_0x1c11ad instanceof Error ? _0x1c11ad[_0x2480ae(0x1d8)] : _0x2480ae(0x1f0), !![]);
|
|
2008
2101
|
}
|
|
2009
|
-
}),
|
|
2010
|
-
'channel':
|
|
2011
|
-
'task_numbers':
|
|
2012
|
-
'message_ids':
|
|
2013
|
-
'evidence':
|
|
2014
|
-
'create_thread':
|
|
2015
|
-
'create_task':
|
|
2016
|
-
}))[
|
|
2017
|
-
'idempotency_key':
|
|
2018
|
-
}, async
|
|
2019
|
-
const
|
|
2102
|
+
}), _0x100860[_0x584888(0x1a6)]('claim_tasks', _0x584888(0x233), {
|
|
2103
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2104
|
+
'task_numbers': _0x4bfbc5[_0x584888(_0x1173b3._0x120076)](_0x4bfbc5['number']())['optional'](),
|
|
2105
|
+
'message_ids': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0xd191a)]())[_0x584888(_0x1173b3._0x57136e)](),
|
|
2106
|
+
'evidence': _0x4bfbc5[_0x584888(0x1d9)](_0x4bfbc5[_0x584888(_0x1173b3._0xd191a)](), _0x4bfbc5[_0x584888(_0x1173b3._0xb1217e)]({
|
|
2107
|
+
'create_thread': _0x4bfbc5[_0x584888(0x188)]()[_0x584888(_0x1173b3._0x28beae)](),
|
|
2108
|
+
'create_task': _0x4bfbc5['unknown']()['optional']()
|
|
2109
|
+
}))[_0x584888(0x288)](),
|
|
2110
|
+
'idempotency_key': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]()['optional']()
|
|
2111
|
+
}, async _0x513f95 => {
|
|
2112
|
+
const _0xdef9c9 = _0x584888;
|
|
2020
2113
|
try {
|
|
2021
|
-
return textResult(await
|
|
2022
|
-
} catch (
|
|
2023
|
-
return textResult(
|
|
2114
|
+
return textResult(await _0x40bb49[_0xdef9c9(_0x440e8e._0x1bd929)](_0x513f95));
|
|
2115
|
+
} catch (_0x3bf041) {
|
|
2116
|
+
return textResult(_0x3bf041 instanceof Error ? _0x3bf041['message'] : 'claim_tasks\x20failed', !![]);
|
|
2024
2117
|
}
|
|
2025
|
-
}),
|
|
2026
|
-
'channel':
|
|
2027
|
-
'task_number':
|
|
2028
|
-
'idempotency_key':
|
|
2029
|
-
}, async
|
|
2030
|
-
const
|
|
2118
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(0x2a8), _0x584888(0x244), {
|
|
2119
|
+
'channel': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)](),
|
|
2120
|
+
'task_number': _0x4bfbc5[_0x584888(_0x1173b3._0x15925a)](),
|
|
2121
|
+
'idempotency_key': _0x4bfbc5['string']()[_0x584888(_0x1173b3._0x57136e)]()
|
|
2122
|
+
}, async _0x3510c5 => {
|
|
2123
|
+
const _0x1eeb09 = _0x584888;
|
|
2031
2124
|
try {
|
|
2032
|
-
return textResult(await
|
|
2033
|
-
} catch (
|
|
2034
|
-
return textResult(
|
|
2125
|
+
return textResult(await _0x40bb49[_0x1eeb09(_0x321b93._0x1b58a6)](_0x3510c5));
|
|
2126
|
+
} catch (_0x3de299) {
|
|
2127
|
+
return textResult(_0x3de299 instanceof Error ? _0x3de299[_0x1eeb09(_0x321b93._0x5f4f36)] : _0x1eeb09(_0x321b93._0x4e8000), !![]);
|
|
2035
2128
|
}
|
|
2036
|
-
}),
|
|
2037
|
-
'channel':
|
|
2038
|
-
'task_number':
|
|
2039
|
-
'status':
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2129
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(0x2db), _0x584888(_0x1173b3._0x5c5956), {
|
|
2130
|
+
'channel': _0x4bfbc5[_0x584888(0x234)](),
|
|
2131
|
+
'task_number': _0x4bfbc5[_0x584888(0x1b9)](),
|
|
2132
|
+
'status': _0x4bfbc5[_0x584888(_0x1173b3._0x39e2a2)]([
|
|
2133
|
+
_0x584888(_0x1173b3._0x2d01b8),
|
|
2134
|
+
_0x584888(_0x1173b3._0xf078da),
|
|
2135
|
+
_0x584888(_0x1173b3._0x2b54de),
|
|
2136
|
+
_0x584888(_0x1173b3._0x3cc947)
|
|
2044
2137
|
]),
|
|
2045
|
-
'idempotency_key':
|
|
2046
|
-
}, async
|
|
2047
|
-
const
|
|
2138
|
+
'idempotency_key': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]()[_0x584888(0x288)]()
|
|
2139
|
+
}, async _0x1bce54 => {
|
|
2140
|
+
const _0x4dda37 = _0x584888;
|
|
2048
2141
|
try {
|
|
2049
|
-
return textResult(await
|
|
2050
|
-
} catch (
|
|
2051
|
-
return textResult(
|
|
2142
|
+
return textResult(await _0x40bb49['update_task_status'](_0x1bce54));
|
|
2143
|
+
} catch (_0x2bb809) {
|
|
2144
|
+
return textResult(_0x2bb809 instanceof Error ? _0x2bb809['message'] : _0x4dda37(_0x2839b1._0x51cb79), !![]);
|
|
2052
2145
|
}
|
|
2053
|
-
}),
|
|
2054
|
-
'channel':
|
|
2055
|
-
'file_path':
|
|
2056
|
-
}, async
|
|
2057
|
-
const
|
|
2146
|
+
}), _0x100860[_0x584888(_0x1173b3._0x34c3f2)](_0x584888(0x16c), _0x584888(0x23f), {
|
|
2147
|
+
'channel': _0x4bfbc5[_0x584888(_0x1173b3._0x50c0d3)](),
|
|
2148
|
+
'file_path': _0x4bfbc5['string']()
|
|
2149
|
+
}, async _0x5bdf26 => {
|
|
2150
|
+
const _0x9e9133 = _0x584888;
|
|
2058
2151
|
try {
|
|
2059
|
-
return textResult(await
|
|
2060
|
-
} catch (
|
|
2061
|
-
return textResult(
|
|
2152
|
+
return textResult(await _0x40bb49[_0x9e9133(0x16c)](_0x5bdf26));
|
|
2153
|
+
} catch (_0xa5afce) {
|
|
2154
|
+
return textResult(_0xa5afce instanceof Error ? _0xa5afce[_0x9e9133(0x1d8)] : 'upload_file\x20failed', !![]);
|
|
2062
2155
|
}
|
|
2063
|
-
}),
|
|
2064
|
-
const
|
|
2156
|
+
}), _0x100860['tool'](_0x584888(_0x1173b3._0xa9320c), _0x584888(_0x1173b3._0x3fcbfa), { 'attachment_id': _0x4bfbc5[_0x584888(0x234)]() }, async _0x22440d => {
|
|
2157
|
+
const _0x2b28ef = _0x584888;
|
|
2065
2158
|
try {
|
|
2066
|
-
return textResult(await
|
|
2067
|
-
} catch (
|
|
2068
|
-
return textResult(
|
|
2159
|
+
return textResult(await _0x40bb49[_0x2b28ef(0x287)](_0x22440d));
|
|
2160
|
+
} catch (_0x5c964f) {
|
|
2161
|
+
return textResult(_0x5c964f instanceof Error ? _0x5c964f[_0x2b28ef(0x1d8)] : _0x2b28ef(0x165), !![]);
|
|
2069
2162
|
}
|
|
2070
|
-
}),
|
|
2071
|
-
'work_key':
|
|
2072
|
-
'thread_target':
|
|
2073
|
-
'objective':
|
|
2074
|
-
'conclusions':
|
|
2075
|
-
'relevant_files':
|
|
2076
|
-
'open_questions':
|
|
2077
|
-
'reply_target':
|
|
2078
|
-
'task_id':
|
|
2079
|
-
}, async
|
|
2080
|
-
const
|
|
2163
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(_0x1173b3._0x3e25cc), _0x584888(0x1b0), {
|
|
2164
|
+
'work_key': _0x4bfbc5[_0x584888(_0x1173b3._0x85f55b)](),
|
|
2165
|
+
'thread_target': _0x4bfbc5['string'](),
|
|
2166
|
+
'objective': _0x4bfbc5[_0x584888(_0x1173b3._0x51351b)](),
|
|
2167
|
+
'conclusions': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]())[_0x584888(0x288)](),
|
|
2168
|
+
'relevant_files': _0x4bfbc5[_0x584888(0x232)](_0x4bfbc5[_0x584888(0x234)]())[_0x584888(_0x1173b3._0x1a8a28)](),
|
|
2169
|
+
'open_questions': _0x4bfbc5['array'](_0x4bfbc5[_0x584888(_0x1173b3._0x70ad3d)]())[_0x584888(_0x1173b3._0x57136e)](),
|
|
2170
|
+
'reply_target': _0x4bfbc5[_0x584888(_0x1173b3._0x409e93)](),
|
|
2171
|
+
'task_id': _0x4bfbc5[_0x584888(_0x1173b3._0x30b51a)]()[_0x584888(0x288)]()
|
|
2172
|
+
}, async _0xa79da2 => {
|
|
2173
|
+
const _0x54b569 = _0x584888;
|
|
2081
2174
|
try {
|
|
2082
|
-
return textResult(await
|
|
2083
|
-
} catch (
|
|
2084
|
-
return textResult(
|
|
2175
|
+
return textResult(await _0x40bb49[_0x54b569(_0x545d60._0x281249)](_0xa79da2));
|
|
2176
|
+
} catch (_0x363914) {
|
|
2177
|
+
return textResult(_0x363914 instanceof Error ? _0x363914['message'] : _0x54b569(_0x545d60._0x53d6fc), !![]);
|
|
2085
2178
|
}
|
|
2086
|
-
}),
|
|
2087
|
-
const
|
|
2179
|
+
}), _0x100860[_0x584888(_0x1173b3._0x4afd5d)](_0x584888(0x161), _0x584888(0x217), { 'work_key': _0x4bfbc5[_0x584888(0x234)]() }, async _0x19c703 => {
|
|
2180
|
+
const _0x2592b8 = _0x584888;
|
|
2088
2181
|
try {
|
|
2089
|
-
return textResult(await
|
|
2090
|
-
} catch (
|
|
2091
|
-
return textResult(
|
|
2182
|
+
return textResult(await _0x40bb49[_0x2592b8(0x161)](_0x19c703));
|
|
2183
|
+
} catch (_0xa33834) {
|
|
2184
|
+
return textResult(_0xa33834 instanceof Error ? _0xa33834[_0x2592b8(_0x43d0cb._0x3cc686)] : 'get_worker_status\x20failed', !![]);
|
|
2092
2185
|
}
|
|
2093
|
-
}),
|
|
2094
|
-
const
|
|
2186
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(_0x1173b3._0x1e21bf), 'Retrieve\x20the\x20result\x20(resume\x20packet)\x20of\x20a\x20completed\x20worker.', { 'work_key': _0x4bfbc5[_0x584888(_0x1173b3._0x18d6f2)]() }, async _0x2d67d1 => {
|
|
2187
|
+
const _0x22aae4 = _0x584888;
|
|
2095
2188
|
try {
|
|
2096
|
-
return textResult(await
|
|
2097
|
-
} catch (
|
|
2098
|
-
return textResult(
|
|
2189
|
+
return textResult(await _0x40bb49['get_worker_result'](_0x2d67d1));
|
|
2190
|
+
} catch (_0x441e83) {
|
|
2191
|
+
return textResult(_0x441e83 instanceof Error ? _0x441e83[_0x22aae4(_0x53afb2._0x1e1509)] : _0x22aae4(_0x53afb2._0x2bfafa), !![]);
|
|
2099
2192
|
}
|
|
2100
|
-
}),
|
|
2101
|
-
'work_key':
|
|
2102
|
-
'result':
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2193
|
+
}), _0x100860[_0x584888(0x1a6)](_0x584888(_0x1173b3._0x1233bf), _0x584888(_0x1173b3._0x268481), {
|
|
2194
|
+
'work_key': _0x4bfbc5[_0x584888(0x234)](),
|
|
2195
|
+
'result': _0x4bfbc5['enum']([
|
|
2196
|
+
_0x584888(_0x1173b3._0x159c6d),
|
|
2197
|
+
_0x584888(_0x1173b3._0x1c876b),
|
|
2198
|
+
_0x584888(_0x1173b3._0x1deacf)
|
|
2106
2199
|
]),
|
|
2107
|
-
'summary':
|
|
2108
|
-
'decisions':
|
|
2109
|
-
'files_changed':
|
|
2110
|
-
'open_issues':
|
|
2111
|
-
'next_steps':
|
|
2112
|
-
}, async
|
|
2113
|
-
const
|
|
2200
|
+
'summary': _0x4bfbc5[_0x584888(_0x1173b3._0x3d1bc4)](),
|
|
2201
|
+
'decisions': _0x4bfbc5[_0x584888(_0x1173b3._0xf2d26d)](_0x4bfbc5[_0x584888(_0x1173b3._0x51351b)]())[_0x584888(_0x1173b3._0x28beae)](),
|
|
2202
|
+
'files_changed': _0x4bfbc5[_0x584888(_0x1173b3._0xf2d26d)](_0x4bfbc5[_0x584888(_0x1173b3._0x1aeebd)]())['optional'](),
|
|
2203
|
+
'open_issues': _0x4bfbc5[_0x584888(_0x1173b3._0xf2d26d)](_0x4bfbc5[_0x584888(0x234)]())[_0x584888(_0x1173b3._0x599a9f)](),
|
|
2204
|
+
'next_steps': _0x4bfbc5[_0x584888(_0x1173b3._0x5b62c6)](_0x4bfbc5[_0x584888(0x234)]())[_0x584888(0x288)]()
|
|
2205
|
+
}, async _0x39f527 => {
|
|
2206
|
+
const _0x160a73 = _0x584888;
|
|
2114
2207
|
try {
|
|
2115
|
-
return textResult(await
|
|
2116
|
-
} catch (
|
|
2117
|
-
return textResult(
|
|
2208
|
+
return textResult(await _0x40bb49['finish_worker'](_0x39f527));
|
|
2209
|
+
} catch (_0x5388cd) {
|
|
2210
|
+
return textResult(_0x5388cd instanceof Error ? _0x5388cd[_0x160a73(0x1d8)] : _0x160a73(_0x132b03._0x44a71b), !![]);
|
|
2118
2211
|
}
|
|
2119
|
-
}),
|
|
2120
|
-
'work_key':
|
|
2121
|
-
'reason':
|
|
2122
|
-
}, async
|
|
2123
|
-
const
|
|
2212
|
+
}), _0x100860[_0x584888(_0x1173b3._0x349c9c)](_0x584888(0x26d), _0x584888(_0x1173b3._0x359646), {
|
|
2213
|
+
'work_key': _0x4bfbc5[_0x584888(0x234)](),
|
|
2214
|
+
'reason': _0x4bfbc5[_0x584888(_0x1173b3._0xd191a)]()
|
|
2215
|
+
}, async _0x4da9f4 => {
|
|
2216
|
+
const _0x1548c7 = _0x584888;
|
|
2124
2217
|
try {
|
|
2125
|
-
return textResult(await
|
|
2126
|
-
} catch (
|
|
2127
|
-
return textResult(
|
|
2218
|
+
return textResult(await _0x40bb49[_0x1548c7(_0x5823ba._0x4f9eef)](_0x4da9f4));
|
|
2219
|
+
} catch (_0x1b3191) {
|
|
2220
|
+
return textResult(_0x1b3191 instanceof Error ? _0x1b3191[_0x1548c7(_0x5823ba._0x318ffe)] : _0x1548c7(0x25b), !![]);
|
|
2128
2221
|
}
|
|
2129
|
-
}),
|
|
2130
|
-
const
|
|
2222
|
+
}), _0xd12731?.[_0x584888(0x1aa)] && _0x100860[_0x584888(_0x1173b3._0x4afd5d)](_0x584888(0x18c), 'Mark\x20the\x20current\x20worker\x20as\x20waiting\x20for\x20human\x20input.\x20Pauses\x20the\x20idle\x20TTL\x20timer\x20until\x20a\x20new\x20message\x20arrives.', { 'work_key': _0x4bfbc5['string']() }, async _0x1cbdfb => {
|
|
2223
|
+
const _0x4c3a0d = _0x584888;
|
|
2131
2224
|
try {
|
|
2132
|
-
return textResult(await
|
|
2133
|
-
} catch (
|
|
2134
|
-
return textResult(
|
|
2225
|
+
return textResult(await _0x40bb49[_0x4c3a0d(_0x23baca._0x94f771)](_0x1cbdfb));
|
|
2226
|
+
} catch (_0xf6278e) {
|
|
2227
|
+
return textResult(_0xf6278e instanceof Error ? _0xf6278e[_0x4c3a0d(_0x23baca._0x323253)] : _0x4c3a0d(0x20f), !![]);
|
|
2135
2228
|
}
|
|
2136
2229
|
});
|
|
2137
2230
|
}
|
|
2138
|
-
async function createChatBridgeServer(
|
|
2139
|
-
const
|
|
2140
|
-
'name':
|
|
2141
|
-
'version':
|
|
2142
|
-
}),
|
|
2143
|
-
return await registerChatBridgeTools(
|
|
2144
|
-
'handlers':
|
|
2145
|
-
'server':
|
|
2231
|
+
async function createChatBridgeServer(_0x4175d7) {
|
|
2232
|
+
const _0x42d30d = { _0x4e4850: 0x2b7 }, _0xe33b68 = _0x84e1c7, {McpServer: _0x48ebe3} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x393d10 = new _0x48ebe3({
|
|
2233
|
+
'name': _0xe33b68(_0x42d30d._0x4e4850),
|
|
2234
|
+
'version': '0.0.0'
|
|
2235
|
+
}), _0x4fbd59 = createChatBridgeHandlers(_0x4175d7);
|
|
2236
|
+
return await registerChatBridgeTools(_0x393d10, _0x4fbd59, { 'workerMode': _0x4175d7[_0xe33b68(0x1aa)] }), {
|
|
2237
|
+
'handlers': _0x4fbd59,
|
|
2238
|
+
'server': _0x393d10
|
|
2146
2239
|
};
|
|
2147
2240
|
}
|
|
2148
|
-
function readFlag(
|
|
2149
|
-
const
|
|
2150
|
-
if (
|
|
2241
|
+
function readFlag(_0x2826a5, _0x5e39f7) {
|
|
2242
|
+
const _0xd111b2 = _0x84e1c7, _0x4a5756 = _0x2826a5[_0xd111b2(0x1e0)](_0x5e39f7);
|
|
2243
|
+
if (_0x4a5756 === -0x1)
|
|
2151
2244
|
return void 0x0;
|
|
2152
|
-
return
|
|
2245
|
+
return _0x2826a5[_0x4a5756 + 0x1];
|
|
2153
2246
|
}
|
|
2154
|
-
function parseChatBridgeArgs(
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2247
|
+
function parseChatBridgeArgs(_0x5c8bd4) {
|
|
2248
|
+
const _0x35b3ff = {
|
|
2249
|
+
_0x1b1f40: 0x160,
|
|
2250
|
+
_0x167fb9: 0x28f,
|
|
2251
|
+
_0x130ed6: 0x248,
|
|
2252
|
+
_0xca64af: 0x275,
|
|
2253
|
+
_0x49a077: 0x21e,
|
|
2254
|
+
_0x21c1d2: 0x268,
|
|
2255
|
+
_0x4fe2fb: 0x1c4,
|
|
2256
|
+
_0x3651f7: 0x1b5
|
|
2257
|
+
}, _0x1934e5 = _0x84e1c7, _0x35bebf = readFlag(_0x5c8bd4, _0x1934e5(_0x35b3ff._0x1b1f40)), _0x4620d5 = readFlag(_0x5c8bd4, _0x1934e5(_0x35b3ff._0x167fb9)), _0x4ff71c = readFlag(_0x5c8bd4, '--initial-last-seen-seq'), _0x4ac761 = readFlag(_0x5c8bd4, '--server-url') ?? _0x1934e5(0x2b2), _0x57872c = readFlag(_0x5c8bd4, _0x1934e5(0x25f)), _0x4cd4d5 = readFlag(_0x5c8bd4, _0x1934e5(0x1b6)), _0x2929e9 = readFlag(_0x5c8bd4, _0x1934e5(0x1ac)), _0x1a3ffd = readFlag(_0x5c8bd4, _0x1934e5(_0x35b3ff._0x130ed6)), _0x2167f6 = readFlag(_0x5c8bd4, _0x1934e5(0x16a)), _0x5ae19c = _0x5c8bd4[_0x1934e5(_0x35b3ff._0xca64af)](_0x1934e5(_0x35b3ff._0x49a077)), _0x1f23ab = _0x4ff71c === void 0x0 ? void 0x0 : Number[_0x1934e5(_0x35b3ff._0x21c1d2)](_0x4ff71c, 0xa);
|
|
2258
|
+
if (!_0x35bebf)
|
|
2259
|
+
throw new Error('Missing\x20--agent-id');
|
|
2260
|
+
if (!_0x4620d5)
|
|
2261
|
+
throw new Error(_0x1934e5(_0x35b3ff._0x4fe2fb));
|
|
2262
|
+
if (_0x4ff71c !== void 0x0 && (_0x1f23ab === void 0x0 || !Number[_0x1934e5(_0x35b3ff._0x3651f7)](_0x1f23ab) || _0x1f23ab < 0x0))
|
|
2263
|
+
throw new Error(_0x1934e5(0x175));
|
|
2165
2264
|
return {
|
|
2166
|
-
'agentId':
|
|
2167
|
-
'daemonApiKey':
|
|
2168
|
-
'daemonLocalUrl':
|
|
2169
|
-
'initialLastSeenSeq':
|
|
2170
|
-
'sessionId':
|
|
2171
|
-
'serverUrl':
|
|
2172
|
-
'workerModeEnabled':
|
|
2173
|
-
'
|
|
2174
|
-
'
|
|
2265
|
+
'agentId': _0x35bebf,
|
|
2266
|
+
'daemonApiKey': _0x4620d5,
|
|
2267
|
+
'daemonLocalUrl': _0x57872c,
|
|
2268
|
+
'initialLastSeenSeq': _0x1f23ab,
|
|
2269
|
+
'sessionId': _0x4cd4d5,
|
|
2270
|
+
'serverUrl': _0x4ac761,
|
|
2271
|
+
'workerModeEnabled': _0x2929e9 === void 0x0 ? void 0x0 : _0x2929e9 !== _0x1934e5(0x299),
|
|
2272
|
+
'workerSessionId': _0x1a3ffd,
|
|
2273
|
+
'workerThreadTarget': _0x2167f6,
|
|
2274
|
+
'workerMode': _0x5ae19c
|
|
2175
2275
|
};
|
|
2176
2276
|
}
|
|
2177
|
-
async function runChatBridgeCli(
|
|
2178
|
-
const
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
'
|
|
2183
|
-
'attachmentCache': _0x4464fd,
|
|
2184
|
-
'client': _0x10a746,
|
|
2185
|
-
'daemonLocalUrl': _0x175d04[_0x1773cd(0x267)],
|
|
2277
|
+
async function runChatBridgeCli(_0x51a88e) {
|
|
2278
|
+
const _0x4f59fa = { _0x566531: 0x179 }, _0x1cd309 = _0x84e1c7, _0x128f91 = parseChatBridgeArgs(_0x51a88e), {StdioServerTransport: _0x20098c} = await import(_0x1cd309(0x229)), _0x437399 = createInternalAgentClient(_0x128f91), _0x4bb48a = createAttachmentCache(), _0x369761 = await createChatBridgeServer({
|
|
2279
|
+
'agentId': _0x128f91['agentId'],
|
|
2280
|
+
'attachmentCache': _0x4bb48a,
|
|
2281
|
+
'client': _0x437399,
|
|
2282
|
+
'daemonLocalUrl': _0x128f91['daemonLocalUrl'],
|
|
2186
2283
|
'uploadPreparer': prepareUploadFile,
|
|
2187
|
-
'workerModeEnabled':
|
|
2188
|
-
'workerMode':
|
|
2284
|
+
'workerModeEnabled': _0x128f91['workerModeEnabled'],
|
|
2285
|
+
'workerMode': _0x128f91[_0x1cd309(0x1aa)]
|
|
2189
2286
|
});
|
|
2190
|
-
await
|
|
2287
|
+
await _0x369761[_0x1cd309(0x1e5)][_0x1cd309(_0x4f59fa._0x566531)](new _0x20098c());
|
|
2191
2288
|
}
|
|
2192
|
-
var executedAsEntry = process[
|
|
2193
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2289
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process[_0x84e1c7(0x21f)][0x1])[_0x84e1c7(0x1eb)] : ![];
|
|
2290
|
+
executedAsEntry && await runChatBridgeCli(process['argv'][_0x84e1c7(0x16b)](0x2));
|
|
2194
2291
|
export {
|
|
2195
2292
|
createChatBridgeHandlers,
|
|
2196
2293
|
createChatBridgeServer,
|