@dscord/daemon 0.1.70 → 0.1.71
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 +2216 -2210
- package/dist/index.js +10490 -10536
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
_0x1acbc5: 0x2a6
|
|
12
|
-
}, _0x1a23fa = _0x355a, _0x4fd799 = _0x357d71();
|
|
1
|
+
const _0x58fa01 = _0x3f6e;
|
|
2
|
+
(function (_0x5a6bde, _0xffe8a6) {
|
|
3
|
+
const _0x4ad366 = {
|
|
4
|
+
_0x203344: 0x1f8,
|
|
5
|
+
_0x22c933: 0x14d,
|
|
6
|
+
_0x188ade: 0x21e,
|
|
7
|
+
_0x1507e5: 0x1e9,
|
|
8
|
+
_0x28345e: 0x232,
|
|
9
|
+
_0x5df2a8: 0x206
|
|
10
|
+
}, _0x191992 = _0x3f6e, _0x466950 = _0x5a6bde();
|
|
13
11
|
while (!![]) {
|
|
14
12
|
try {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
13
|
+
const _0x37007d = parseInt(_0x191992(_0x4ad366._0x203344)) / 0x1 * (-parseInt(_0x191992(0xf7)) / 0x2) + -parseInt(_0x191992(0x168)) / 0x3 * (parseInt(_0x191992(_0x4ad366._0x22c933)) / 0x4) + parseInt(_0x191992(_0x4ad366._0x188ade)) / 0x5 * (-parseInt(_0x191992(_0x4ad366._0x1507e5)) / 0x6) + -parseInt(_0x191992(0x162)) / 0x7 * (parseInt(_0x191992(_0x4ad366._0x28345e)) / 0x8) + -parseInt(_0x191992(0x16b)) / 0x9 + parseInt(_0x191992(0x152)) / 0xa + -parseInt(_0x191992(0x1e1)) / 0xb * (-parseInt(_0x191992(_0x4ad366._0x5df2a8)) / 0xc);
|
|
14
|
+
if (_0x37007d === _0xffe8a6)
|
|
17
15
|
break;
|
|
18
16
|
else
|
|
19
|
-
|
|
20
|
-
} catch (
|
|
21
|
-
|
|
17
|
+
_0x466950['push'](_0x466950['shift']());
|
|
18
|
+
} catch (_0x540a64) {
|
|
19
|
+
_0x466950['push'](_0x466950['shift']());
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
|
-
}(
|
|
22
|
+
}(_0x4b2a, 0x43211));
|
|
25
23
|
import { pathToFileURL } from 'node:url';
|
|
26
24
|
import {
|
|
27
25
|
mkdir,
|
|
@@ -31,2410 +29,2418 @@ import {
|
|
|
31
29
|
writeFile
|
|
32
30
|
} from 'node:fs/promises';
|
|
33
31
|
import { homedir } from 'node:os';
|
|
34
|
-
import
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
'
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
'
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
'
|
|
129
|
-
|
|
32
|
+
import _0x7cf118 from 'node:path';
|
|
33
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
34
|
+
'.csv': 'text/csv',
|
|
35
|
+
'.gif': _0x58fa01(0x1c8),
|
|
36
|
+
'.jpeg': _0x58fa01(0x1dd),
|
|
37
|
+
'.jpg': _0x58fa01(0x1dd),
|
|
38
|
+
'.json': 'application/json',
|
|
39
|
+
'.md': 'text/markdown',
|
|
40
|
+
'.pdf': _0x58fa01(0x165),
|
|
41
|
+
'.png': _0x58fa01(0xc8),
|
|
42
|
+
'.svg': 'image/svg+xml',
|
|
43
|
+
'.txt': _0x58fa01(0x14f),
|
|
44
|
+
'.webp': _0x58fa01(0xec),
|
|
45
|
+
'.xml': _0x58fa01(0x175),
|
|
46
|
+
'.zip': _0x58fa01(0x139)
|
|
47
|
+
};
|
|
48
|
+
function guessContentType(_0x3bc7a0) {
|
|
49
|
+
const _0x9ea74f = _0x58fa01;
|
|
50
|
+
return MIME_BY_EXTENSION[_0x7cf118[_0x9ea74f(0x20e)](_0x3bc7a0)[_0x9ea74f(0x18e)]()] ?? _0x9ea74f(0x1ae);
|
|
51
|
+
}
|
|
52
|
+
function safeFilename(_0x4dbb13) {
|
|
53
|
+
const _0x25440d = { _0x1c9a10: 0xbb }, _0x228552 = _0x58fa01;
|
|
54
|
+
return _0x4dbb13[_0x228552(_0x25440d._0x1c9a10)](/[\\/]/g, '-');
|
|
55
|
+
}
|
|
56
|
+
function extensionFor(_0x296d0e) {
|
|
57
|
+
const _0x51c00a = { _0x2dcf96: 0xf6 }, _0x189d45 = _0x58fa01, _0x4995be = Object[_0x189d45(_0x51c00a._0x2dcf96)](MIME_BY_EXTENSION)['find'](([, _0x3b09c5]) => _0x3b09c5 === _0x296d0e);
|
|
58
|
+
return _0x4995be?.[0x0] ?? _0x189d45(0x190);
|
|
59
|
+
}
|
|
60
|
+
async function prepareUploadFile(_0x5f4df0, _0xaf1ef = {}) {
|
|
61
|
+
const _0x37831e = {
|
|
62
|
+
_0x571a22: 0x1de,
|
|
63
|
+
_0x286bb8: 0x19d,
|
|
64
|
+
_0x3c4eb7: 0x1c3
|
|
65
|
+
}, _0x1435d1 = _0x58fa01;
|
|
66
|
+
if (!_0x7cf118[_0x1435d1(0x1ca)](_0x5f4df0))
|
|
67
|
+
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
68
|
+
const _0x3f2cbf = await stat(_0x5f4df0)[_0x1435d1(0x20d)](() => null);
|
|
69
|
+
if (!_0x3f2cbf || !_0x3f2cbf['isFile']())
|
|
70
|
+
throw new Error(_0x1435d1(_0x37831e._0x571a22) + _0x5f4df0);
|
|
71
|
+
const _0x167722 = _0xaf1ef['maxFileSizeBytes'] ?? DEFAULT_MAX_FILE_SIZE;
|
|
72
|
+
if (_0x3f2cbf['size'] > _0x167722)
|
|
73
|
+
throw new Error(_0x1435d1(_0x37831e._0x286bb8) + _0x3f2cbf[_0x1435d1(0x177)]);
|
|
74
|
+
const _0x5a1623 = await readFile(_0x5f4df0), _0x29f530 = _0x7cf118['basename'](_0x5f4df0);
|
|
75
|
+
return {
|
|
76
|
+
'contentBase64': _0x5a1623[_0x1435d1(0x1c9)](_0x1435d1(_0x37831e._0x3c4eb7)),
|
|
77
|
+
'contentType': guessContentType(_0x29f530),
|
|
78
|
+
'filename': _0x29f530,
|
|
79
|
+
'sizeBytes': _0x3f2cbf[_0x1435d1(0x177)]
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function createAttachmentCache(_0x1172a6 = {}) {
|
|
83
|
+
const _0x440992 = {
|
|
84
|
+
_0x57b56d: 0x144,
|
|
85
|
+
_0xc545a2: 0x128
|
|
86
|
+
}, _0x1267a0 = {
|
|
87
|
+
_0x28bc0d: 0x186,
|
|
88
|
+
_0x5798e3: 0x130,
|
|
89
|
+
_0x40308a: 0x1cb,
|
|
90
|
+
_0x43f02f: 0x1fa
|
|
91
|
+
}, _0x54017a = {
|
|
92
|
+
_0x2967c2: 0x1b6,
|
|
93
|
+
_0x2700b9: 0x1fa
|
|
94
|
+
}, _0x3049eb = _0x58fa01, _0xd4e861 = _0x1172a6[_0x3049eb(_0x440992._0x57b56d)] ?? _0x7cf118[_0x3049eb(0x1fa)](homedir(), _0x3049eb(0xcb), _0x3049eb(_0x440992._0xc545a2));
|
|
95
|
+
return {
|
|
96
|
+
'cacheDir': _0xd4e861,
|
|
97
|
+
async 'findCachedPath'(_0x1e7b55) {
|
|
98
|
+
const _0x3e932b = _0x3049eb;
|
|
99
|
+
await mkdir(_0xd4e861, { 'recursive': !![] });
|
|
100
|
+
const _0x3835b1 = await readdir(_0xd4e861), _0x6d582c = _0x3835b1[_0x3e932b(_0x54017a._0x2967c2)](_0x2b5e93 => _0x2b5e93['startsWith'](_0x1e7b55 + '-') || _0x2b5e93['startsWith'](_0x1e7b55));
|
|
101
|
+
return _0x6d582c ? _0x7cf118[_0x3e932b(_0x54017a._0x2700b9)](_0xd4e861, _0x6d582c) : null;
|
|
102
|
+
},
|
|
103
|
+
async 'save'(_0x13c2c2) {
|
|
104
|
+
const _0xd7e11c = _0x3049eb;
|
|
105
|
+
await mkdir(_0xd4e861, { 'recursive': !![] });
|
|
106
|
+
const _0x48e6ae = _0x13c2c2['originalFilename']?.[_0xd7e11c(_0x1267a0._0x28bc0d)]() ? safeFilename(_0x13c2c2[_0xd7e11c(0xf8)]) : '' + _0x13c2c2[_0xd7e11c(_0x1267a0._0x5798e3)] + extensionFor(_0x13c2c2[_0xd7e11c(_0x1267a0._0x40308a)]), _0x1d67c9 = _0x7cf118[_0xd7e11c(_0x1267a0._0x43f02f)](_0xd4e861, _0x13c2c2['attachmentId'] + '-' + _0x48e6ae);
|
|
107
|
+
return await writeFile(_0x1d67c9, _0x13c2c2[_0xd7e11c(0xea)]), _0x1d67c9;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
import {
|
|
112
|
+
createHash,
|
|
113
|
+
randomUUID
|
|
114
|
+
} from 'node:crypto';
|
|
115
|
+
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
116
|
+
function ensureSegment(_0x507c09) {
|
|
117
|
+
const _0x2a71e3 = _0x58fa01, _0x583322 = _0x507c09[_0x2a71e3(0x186)]();
|
|
118
|
+
if (!_0x583322 || _0x583322[_0x2a71e3(0x1f4)](':'))
|
|
119
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
120
|
+
return _0x583322;
|
|
121
|
+
}
|
|
122
|
+
function parseThreadParts(_0xb7136b) {
|
|
123
|
+
const _0x17c39e = {
|
|
124
|
+
_0x2055be: 0x1dc,
|
|
125
|
+
_0x19a4ac: 0x101
|
|
126
|
+
}, _0x5a4082 = _0x58fa01, _0x5e83e8 = _0xb7136b[_0x5a4082(_0x17c39e._0x2055be)](':');
|
|
127
|
+
if (_0x5e83e8['length'] < 0x1 || _0x5e83e8[_0x5a4082(_0x17c39e._0x19a4ac)] > 0x2)
|
|
128
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
129
|
+
return {
|
|
130
|
+
'channelName': ensureSegment(_0x5e83e8[0x0] ?? ''),
|
|
131
|
+
'threadShortId': _0x5e83e8[0x1] ? ensureSegment(_0x5e83e8[0x1]) : null
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function parseTarget(_0x252be2) {
|
|
135
|
+
const _0x25676c = {
|
|
136
|
+
_0x41f331: 0x186,
|
|
137
|
+
_0x16148f: 0x124,
|
|
138
|
+
_0x1867e1: 0x122,
|
|
139
|
+
_0x2ecbb6: 0x100,
|
|
140
|
+
_0x16c245: 0xd3,
|
|
141
|
+
_0x3f6c20: 0x170,
|
|
142
|
+
_0x574e46: 0x124,
|
|
143
|
+
_0x3d5d23: 0x225,
|
|
144
|
+
_0x30f63c: 0x122,
|
|
145
|
+
_0x5d3029: 0x100,
|
|
146
|
+
_0x1ae948: 0x124,
|
|
147
|
+
_0x5c1cc1: 0x1a6,
|
|
148
|
+
_0x4fcb30: 0xd3
|
|
149
|
+
}, _0x24c584 = _0x58fa01, _0x5ad2a5 = _0x252be2[_0x24c584(_0x25676c._0x41f331)]();
|
|
150
|
+
if (!_0x5ad2a5)
|
|
151
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
152
|
+
if (_0x5ad2a5[_0x24c584(_0x25676c._0x16148f)]('#')) {
|
|
153
|
+
const _0x33c93b = parseThreadParts(_0x5ad2a5[_0x24c584(_0x25676c._0x1867e1)](0x1)), _0x5baff7 = '#' + _0x33c93b[_0x24c584(0x100)];
|
|
154
|
+
if (!_0x33c93b['threadShortId'])
|
|
155
|
+
return {
|
|
156
|
+
'channelName': _0x33c93b[_0x24c584(_0x25676c._0x2ecbb6)],
|
|
157
|
+
'channelTarget': _0x5baff7,
|
|
158
|
+
'kind': _0x24c584(_0x25676c._0x16c245),
|
|
159
|
+
'target': _0x5baff7
|
|
160
|
+
};
|
|
161
|
+
return {
|
|
162
|
+
'channelName': _0x33c93b[_0x24c584(0x100)],
|
|
163
|
+
'channelTarget': _0x5baff7,
|
|
164
|
+
'kind': _0x24c584(_0x25676c._0x3f6c20),
|
|
165
|
+
'target': _0x5baff7 + ':' + _0x33c93b[_0x24c584(0x229)],
|
|
166
|
+
'threadShortId': _0x33c93b['threadShortId']
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
if (_0x5ad2a5[_0x24c584(_0x25676c._0x574e46)](_0x24c584(_0x25676c._0x3d5d23))) {
|
|
170
|
+
const _0x27f7b9 = parseThreadParts(_0x5ad2a5[_0x24c584(_0x25676c._0x30f63c)](0x3));
|
|
171
|
+
if (!_0x27f7b9[_0x24c584(_0x25676c._0x5d3029)][_0x24c584(_0x25676c._0x1ae948)](_0x24c584(_0x25676c._0x5c1cc1)))
|
|
172
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
173
|
+
const _0x5f4368 = _0x24c584(0x225) + _0x27f7b9['channelName'];
|
|
174
|
+
if (!_0x27f7b9['threadShortId'])
|
|
175
|
+
return {
|
|
176
|
+
'channelName': _0x27f7b9[_0x24c584(0x100)],
|
|
177
|
+
'channelTarget': _0x5f4368,
|
|
178
|
+
'kind': _0x24c584(_0x25676c._0x4fcb30),
|
|
179
|
+
'target': _0x5f4368
|
|
180
|
+
};
|
|
181
|
+
return {
|
|
182
|
+
'channelName': _0x27f7b9[_0x24c584(0x100)],
|
|
183
|
+
'channelTarget': _0x5f4368,
|
|
184
|
+
'kind': _0x24c584(0x170),
|
|
185
|
+
'target': _0x5f4368 + ':' + _0x27f7b9['threadShortId'],
|
|
186
|
+
'threadShortId': _0x27f7b9['threadShortId']
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
190
|
+
}
|
|
191
|
+
function asErrorMessage(_0xc84fbe, _0x46b8cd) {
|
|
192
|
+
const _0xb68efd = {
|
|
193
|
+
_0x2fecb4: 0x23b,
|
|
194
|
+
_0x4ae57b: 0x186
|
|
195
|
+
}, _0x2db615 = _0x58fa01;
|
|
196
|
+
if (typeof _0xc84fbe === _0x2db615(_0xb68efd._0x2fecb4) && _0xc84fbe[_0x2db615(_0xb68efd._0x4ae57b)]())
|
|
197
|
+
return _0xc84fbe;
|
|
198
|
+
return _0x46b8cd;
|
|
199
|
+
}
|
|
200
|
+
function asRecord(_0x56380c) {
|
|
201
|
+
return typeof _0x56380c === 'object' && _0x56380c !== null ? _0x56380c : {};
|
|
202
|
+
}
|
|
203
|
+
function stableStringify(_0x5b51e7) {
|
|
204
|
+
const _0x90bfae = {
|
|
205
|
+
_0x445763: 0x22e,
|
|
206
|
+
_0x54c502: 0x1a8
|
|
207
|
+
}, _0x1bf0cb = _0x58fa01;
|
|
208
|
+
if (_0x5b51e7 === null || typeof _0x5b51e7 !== _0x1bf0cb(_0x90bfae._0x445763))
|
|
209
|
+
return JSON[_0x1bf0cb(0x113)](_0x5b51e7);
|
|
210
|
+
if (Array[_0x1bf0cb(0x22d)](_0x5b51e7))
|
|
211
|
+
return '[' + _0x5b51e7[_0x1bf0cb(_0x90bfae._0x54c502)](_0x440b2d => stableStringify(_0x440b2d))[_0x1bf0cb(0x1fa)](',') + ']';
|
|
212
|
+
const _0x298b14 = Object['entries'](_0x5b51e7)[_0x1bf0cb(0x161)](([, _0x35a0b2]) => _0x35a0b2 !== void 0x0)['sort'](([_0x4fd440], [_0x51796d]) => _0x4fd440[_0x1bf0cb(0x233)](_0x51796d))[_0x1bf0cb(_0x90bfae._0x54c502)](([_0x934ae1, _0x531b11]) => JSON['stringify'](_0x934ae1) + ':' + stableStringify(_0x531b11));
|
|
213
|
+
return '{' + _0x298b14[_0x1bf0cb(0x1fa)](',') + '}';
|
|
214
|
+
}
|
|
215
|
+
function createHeaders(_0x4aa446) {
|
|
216
|
+
const _0x73643b = { _0x4743ce: 0x1ac }, _0x48d50c = _0x58fa01;
|
|
217
|
+
return {
|
|
218
|
+
'Content-Type': _0x48d50c(_0x73643b._0x4743ce),
|
|
219
|
+
'x-daemon-api-key': _0x4aa446
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
function toHttpBaseUrl(_0x4c113e) {
|
|
223
|
+
const _0x4bf70e = {
|
|
224
|
+
_0x543802: 0xdd,
|
|
225
|
+
_0x1ae769: 0x1c9
|
|
226
|
+
}, _0x59221b = _0x58fa01, _0x25e66a = new URL(_0x4c113e);
|
|
227
|
+
if (_0x25e66a['protocol'] === _0x59221b(0x1be))
|
|
228
|
+
_0x25e66a[_0x59221b(0x1f3)] = _0x59221b(0x131);
|
|
229
|
+
else
|
|
230
|
+
_0x25e66a['protocol'] === _0x59221b(0x169) && (_0x25e66a['protocol'] = _0x59221b(_0x4bf70e._0x543802));
|
|
231
|
+
return _0x25e66a[_0x59221b(_0x4bf70e._0x1ae769)]()[_0x59221b(0xbb)](/\/$/, '');
|
|
232
|
+
}
|
|
233
|
+
function isMentionBoundary(_0x389eb5) {
|
|
234
|
+
const _0x1e1c5b = { _0x12142c: 0x110 }, _0x5176ec = _0x58fa01;
|
|
235
|
+
return !_0x389eb5 || /\s|[([{'",。!?、:;]/[_0x5176ec(_0x1e1c5b._0x12142c)](_0x389eb5);
|
|
236
|
+
}
|
|
237
|
+
function isMentionTerminal(_0x4d93ad) {
|
|
238
|
+
const _0x23f2a1 = { _0x3c6ff2: 0x110 }, _0x3ea8b1 = _0x58fa01;
|
|
239
|
+
return !_0x4d93ad || /\s|[)\]}'",。!?、:;,.!?]/[_0x3ea8b1(_0x23f2a1._0x3c6ff2)](_0x4d93ad);
|
|
240
|
+
}
|
|
241
|
+
function buildMatchableEntries(_0x22fa64) {
|
|
242
|
+
const _0x44e440 = {
|
|
243
|
+
_0x4d3fda: 0x209,
|
|
244
|
+
_0x3960ec: 0x1af,
|
|
245
|
+
_0x2aa870: 0x16e,
|
|
246
|
+
_0x44a9eb: 0x138,
|
|
247
|
+
_0x370c03: 0xcd
|
|
248
|
+
}, _0x557087 = _0x58fa01, _0x2c39fd = [];
|
|
249
|
+
for (const _0x5b16f8 of [
|
|
250
|
+
..._0x22fa64[_0x557087(_0x44e440._0x4d3fda)],
|
|
251
|
+
..._0x22fa64[_0x557087(_0x44e440._0x3960ec)]
|
|
252
|
+
]) {
|
|
253
|
+
_0x2c39fd[_0x557087(_0x44e440._0x2aa870)]({
|
|
254
|
+
'matchName': _0x5b16f8[_0x557087(_0x44e440._0x44a9eb)],
|
|
255
|
+
'matchNameLower': _0x5b16f8[_0x557087(0x138)][_0x557087(0xcd)](),
|
|
256
|
+
'participantId': _0x5b16f8['id']
|
|
257
|
+
}), _0x5b16f8['id'] !== _0x5b16f8[_0x557087(0x138)] && _0x2c39fd[_0x557087(0x16e)]({
|
|
258
|
+
'matchName': _0x5b16f8['id'],
|
|
259
|
+
'matchNameLower': _0x5b16f8['id'][_0x557087(_0x44e440._0x370c03)](),
|
|
260
|
+
'participantId': _0x5b16f8['id']
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
return _0x2c39fd;
|
|
264
|
+
}
|
|
265
|
+
function extractMentionedParticipantIds(_0x2f03be, _0x54a764) {
|
|
266
|
+
const _0x62e45b = {
|
|
267
|
+
_0x2aff69: 0xcd,
|
|
268
|
+
_0x5c6f5b: 0x1b6,
|
|
269
|
+
_0x21c232: 0x220,
|
|
270
|
+
_0x3e58eb: 0x145,
|
|
271
|
+
_0x54d96b: 0x101
|
|
272
|
+
}, _0x3225fa = {
|
|
273
|
+
_0x3b9f3b: 0x1c1,
|
|
274
|
+
_0x2e04cc: 0x14a
|
|
275
|
+
}, _0x2f63e2 = _0x58fa01, _0xeeeeab = buildMatchableEntries(_0x54a764)[_0x2f63e2(0xd0)]((_0x4d2e74, _0x4b2184) => _0x4b2184[_0x2f63e2(0x14a)][_0x2f63e2(0x101)] - _0x4d2e74[_0x2f63e2(0x14a)][_0x2f63e2(0x101)]), _0xbebf04 = [], _0x42e34f = new Set();
|
|
276
|
+
for (let _0x229d0a = 0x0; _0x229d0a < _0x2f03be['length']; _0x229d0a += 0x1) {
|
|
277
|
+
if (_0x2f03be[_0x229d0a] !== '@' || !isMentionBoundary(_0x2f03be[_0x229d0a - 0x1]))
|
|
278
|
+
continue;
|
|
279
|
+
const _0x550b65 = _0x2f03be['slice'](_0x229d0a + 0x1), _0x23f3dd = _0x550b65[_0x2f63e2(_0x62e45b._0x2aff69)](), _0x393170 = _0xeeeeab[_0x2f63e2(_0x62e45b._0x5c6f5b)](_0x1bdaef => {
|
|
280
|
+
const _0x13c8f4 = _0x2f63e2;
|
|
281
|
+
if (!_0x23f3dd[_0x13c8f4(0x124)](_0x1bdaef[_0x13c8f4(_0x3225fa._0x3b9f3b)]))
|
|
282
|
+
return ![];
|
|
283
|
+
return isMentionTerminal(_0x550b65[_0x1bdaef[_0x13c8f4(_0x3225fa._0x2e04cc)]['length']]);
|
|
284
|
+
});
|
|
285
|
+
if (!_0x393170 || _0x42e34f[_0x2f63e2(_0x62e45b._0x21c232)](_0x393170[_0x2f63e2(0x145)]))
|
|
286
|
+
continue;
|
|
287
|
+
_0x42e34f['add'](_0x393170[_0x2f63e2(_0x62e45b._0x3e58eb)]), _0xbebf04[_0x2f63e2(0x16e)](_0x393170[_0x2f63e2(0x145)]), _0x229d0a += _0x393170[_0x2f63e2(0x14a)][_0x2f63e2(_0x62e45b._0x54d96b)];
|
|
288
|
+
}
|
|
289
|
+
return _0xbebf04;
|
|
290
|
+
}
|
|
291
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
292
|
+
function anySignal(..._0x4a9b0f) {
|
|
293
|
+
const _0x4026ae = {
|
|
294
|
+
_0x246581: 0x10d,
|
|
295
|
+
_0x32c727: 0x223,
|
|
296
|
+
_0x489916: 0xfe
|
|
297
|
+
}, _0x54f5bc = _0x58fa01, _0x3dabbf = new AbortController();
|
|
298
|
+
for (const _0x4ef9bd of _0x4a9b0f) {
|
|
299
|
+
if (_0x4ef9bd['aborted'])
|
|
300
|
+
return _0x3dabbf[_0x54f5bc(_0x4026ae._0x246581)](_0x4ef9bd['reason']), _0x3dabbf[_0x54f5bc(0xfe)];
|
|
301
|
+
_0x4ef9bd[_0x54f5bc(_0x4026ae._0x32c727)]('abort', () => _0x3dabbf[_0x54f5bc(0x10d)](_0x4ef9bd[_0x54f5bc(0x1ba)]), {
|
|
302
|
+
'once': !![],
|
|
303
|
+
'signal': _0x3dabbf[_0x54f5bc(_0x4026ae._0x489916)]
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return _0x3dabbf[_0x54f5bc(_0x4026ae._0x489916)];
|
|
307
|
+
}
|
|
308
|
+
function createInternalAgentClient(_0x3b7920) {
|
|
309
|
+
const _0x242a7e = {
|
|
310
|
+
_0x54ef27: 0x1a5,
|
|
311
|
+
_0x31948f: 0xc0,
|
|
312
|
+
_0x45d4ed: 0x120,
|
|
313
|
+
_0x5c0e76: 0x109,
|
|
314
|
+
_0x501f41: 0xe3,
|
|
315
|
+
_0x373178: 0x1e2,
|
|
316
|
+
_0x168b6a: 0x13e
|
|
317
|
+
}, _0x1f6ae7 = {
|
|
318
|
+
_0x55ec62: 0x237,
|
|
319
|
+
_0x5a7fe0: 0x1c9,
|
|
320
|
+
_0x5b5257: 0xc3,
|
|
321
|
+
_0xd6f207: 0x185,
|
|
322
|
+
_0x4225a3: 0x200,
|
|
323
|
+
_0x1910d4: 0x101,
|
|
324
|
+
_0x1f3755: 0xc9,
|
|
325
|
+
_0x1cc27b: 0x101,
|
|
326
|
+
_0x16874e: 0x161,
|
|
327
|
+
_0x4f8423: 0x1a8,
|
|
328
|
+
_0x2a0952: 0x12e,
|
|
329
|
+
_0xe1dde9: 0x14c,
|
|
330
|
+
_0xf99722: 0x23b,
|
|
331
|
+
_0xfeb6c6: 0x1b8,
|
|
332
|
+
_0x4716a2: 0x1a0,
|
|
333
|
+
_0x1476a5: 0x1f7,
|
|
334
|
+
_0x3ea4ac: 0x16e,
|
|
335
|
+
_0x491a3b: 0xf6,
|
|
336
|
+
_0x2981a1: 0x1db,
|
|
337
|
+
_0x3e173e: 0x188,
|
|
338
|
+
_0x264e5d: 0xc9,
|
|
339
|
+
_0x2cc570: 0x138,
|
|
340
|
+
_0x1b5a08: 0x1c2,
|
|
341
|
+
_0x509348: 0x1ce,
|
|
342
|
+
_0x44e84c: 0x16e,
|
|
343
|
+
_0x566242: 0x128,
|
|
344
|
+
_0x4e4f14: 0x196,
|
|
345
|
+
_0x12d2d6: 0x11d,
|
|
346
|
+
_0x5bd01c: 0x196,
|
|
347
|
+
_0x1ca13d: 0x1c4
|
|
348
|
+
}, _0x5ee7b5 = { _0x51ff93: 0x181 }, _0x4c6b31 = {
|
|
349
|
+
_0x57a393: 0x212,
|
|
350
|
+
_0x26554d: 0x1b8
|
|
351
|
+
}, _0x153594 = {
|
|
352
|
+
_0x36d6c7: 0x106,
|
|
353
|
+
_0x2fa837: 0x1ed,
|
|
354
|
+
_0x351856: 0x1c9,
|
|
355
|
+
_0x39a7f9: 0x151,
|
|
356
|
+
_0x13e96f: 0xe7
|
|
357
|
+
}, _0x3943dd = {
|
|
358
|
+
_0x42b355: 0x1cc,
|
|
359
|
+
_0x2fdfff: 0x239
|
|
360
|
+
}, _0x4758b7 = {
|
|
361
|
+
_0xd7a56e: 0xc3,
|
|
362
|
+
_0x453e1b: 0x18b,
|
|
363
|
+
_0xa47a66: 0x113,
|
|
364
|
+
_0x4b65be: 0x197,
|
|
365
|
+
_0x3cd9ca: 0x1e5,
|
|
366
|
+
_0x224973: 0xea,
|
|
367
|
+
_0x201556: 0xf8,
|
|
368
|
+
_0xa96d: 0x197
|
|
369
|
+
}, _0x16df83 = {
|
|
370
|
+
_0x13bd94: 0x1ff,
|
|
371
|
+
_0x4aca08: 0x113,
|
|
372
|
+
_0x4f58c3: 0x1e5
|
|
373
|
+
}, _0xb5be9f = {
|
|
374
|
+
_0x4de972: 0xc3,
|
|
375
|
+
_0x231c53: 0x113
|
|
376
|
+
}, _0x4d109b = {
|
|
377
|
+
_0x2e7b67: 0x1ff,
|
|
378
|
+
_0x3d314c: 0x235,
|
|
379
|
+
_0x44cfc2: 0x1e5
|
|
380
|
+
}, _0x117d21 = {
|
|
381
|
+
_0xeea1d7: 0x1db,
|
|
382
|
+
_0x161b0c: 0xd3,
|
|
383
|
+
_0x36c272: 0xc3,
|
|
384
|
+
_0x38c4de: 0x151
|
|
385
|
+
}, _0x522c5d = {
|
|
386
|
+
_0x3de5e4: 0x113,
|
|
387
|
+
_0x28566a: 0xe2
|
|
388
|
+
}, _0x2ba3ed = {
|
|
389
|
+
_0xe2a1ee: 0x219,
|
|
390
|
+
_0x343ed0: 0x113,
|
|
391
|
+
_0x3005bf: 0x1e5,
|
|
392
|
+
_0x8709b5: 0xea,
|
|
393
|
+
_0x1d5cfd: 0xc2
|
|
394
|
+
}, _0xfbce8a = {
|
|
395
|
+
_0x35953b: 0xf5,
|
|
396
|
+
_0x3ca85c: 0x113,
|
|
397
|
+
_0x161751: 0xea
|
|
398
|
+
}, _0x889ad6 = {
|
|
399
|
+
_0x603e29: 0x212,
|
|
400
|
+
_0x16449a: 0x1f4,
|
|
401
|
+
_0x3aee78: 0xc3,
|
|
402
|
+
_0x46238d: 0x1fb,
|
|
403
|
+
_0x20ed9d: 0x181,
|
|
404
|
+
_0x137c39: 0x101,
|
|
405
|
+
_0x16770d: 0x1b8,
|
|
406
|
+
_0x3fd71f: 0x11f,
|
|
407
|
+
_0x124bf7: 0x1e5
|
|
408
|
+
}, _0xe186f4 = {
|
|
409
|
+
_0x38f753: 0x106,
|
|
410
|
+
_0xfd81c: 0x1db,
|
|
411
|
+
_0x58e767: 0x1b8,
|
|
412
|
+
_0x156cfd: 0x1b8,
|
|
413
|
+
_0x48635e: 0x1db,
|
|
414
|
+
_0x4085fb: 0x181,
|
|
415
|
+
_0x2bfdd7: 0x181,
|
|
416
|
+
_0x1ec9e6: 0x102,
|
|
417
|
+
_0x1894cd: 0x13a,
|
|
418
|
+
_0x462afc: 0xc3,
|
|
419
|
+
_0x4addac: 0x151
|
|
420
|
+
}, _0x5304b9 = { _0x5e91fe: 0x145 }, _0x405a92 = {
|
|
421
|
+
_0xa3b909: 0x1a0,
|
|
422
|
+
_0x5efd95: 0x1f7,
|
|
423
|
+
_0x3ebfdc: 0x229,
|
|
424
|
+
_0x4862f8: 0x124,
|
|
425
|
+
_0x5bfeef: 0x229,
|
|
426
|
+
_0xb87f46: 0x1b8,
|
|
427
|
+
_0x3e30f8: 0x1b8
|
|
428
|
+
}, _0x47a7d1 = {
|
|
429
|
+
_0xcf47f1: 0x170,
|
|
430
|
+
_0x25559d: 0xd7,
|
|
431
|
+
_0x5997bb: 0x229,
|
|
432
|
+
_0x2e424e: 0x1f7,
|
|
433
|
+
_0x3e94e2: 0x124
|
|
434
|
+
}, _0x1fd8c1 = {
|
|
435
|
+
_0x23a454: 0x1a0,
|
|
436
|
+
_0x56d715: 0xd7,
|
|
437
|
+
_0x4c8860: 0x1a0,
|
|
438
|
+
_0xfe07df: 0x1b8
|
|
439
|
+
}, _0x9d42cd = {
|
|
440
|
+
_0x4d4187: 0x209,
|
|
441
|
+
_0x2e4867: 0x138
|
|
442
|
+
}, _0x9684b1 = {
|
|
443
|
+
_0x291521: 0x12e,
|
|
444
|
+
_0x3a3dee: 0x1f6,
|
|
445
|
+
_0x163ae7: 0x192
|
|
446
|
+
}, _0xa1ba7d = { _0x56ef31: 0x20d }, _0x1c5208 = {
|
|
447
|
+
_0x47ea44: 0x216,
|
|
448
|
+
_0x1adbb3: 0x151,
|
|
449
|
+
_0x5c9082: 0xea,
|
|
450
|
+
_0x5e1a1b: 0x22f,
|
|
451
|
+
_0x31e5b6: 0x1a8,
|
|
452
|
+
_0x2f39b4: 0xea,
|
|
453
|
+
_0xea4a33: 0x138
|
|
454
|
+
}, _0x34d198 = {
|
|
455
|
+
_0x2c745e: 0xc3,
|
|
456
|
+
_0xa880f5: 0x1ff,
|
|
457
|
+
_0x23d89c: 0x113,
|
|
458
|
+
_0x5b4b3c: 0x212,
|
|
459
|
+
_0x18c219: 0x181,
|
|
460
|
+
_0xadd420: 0x1a0
|
|
461
|
+
}, _0x518469 = { _0x24b057: 0xe5 }, _0x33c067 = {
|
|
462
|
+
_0x11bf4c: 0xfe,
|
|
463
|
+
_0x3eb47d: 0x163
|
|
464
|
+
}, _0x17b16d = {
|
|
465
|
+
_0x3e4d66: 0xfe,
|
|
466
|
+
_0x409b77: 0xfe,
|
|
467
|
+
_0x539d27: 0x1f5,
|
|
468
|
+
_0x3eb53b: 0xe2
|
|
469
|
+
}, _0x31b3e8 = {
|
|
470
|
+
_0x491559: 0x121,
|
|
471
|
+
_0xb05a7b: 0xe1,
|
|
472
|
+
_0x327b4: 0x1c7,
|
|
473
|
+
_0x56dcf7: 0xf3,
|
|
474
|
+
_0x5cf4c9: 0x1d7,
|
|
475
|
+
_0xe18b3f: 0x1ce,
|
|
476
|
+
_0x57465e: 0xde
|
|
477
|
+
}, _0x54f65f = {
|
|
478
|
+
_0x4dbf73: 0x1ce,
|
|
479
|
+
_0x31c165: 0x186,
|
|
480
|
+
_0x45cc62: 0xbb,
|
|
481
|
+
_0x535e57: 0x122,
|
|
482
|
+
_0x779574: 0x1f2,
|
|
483
|
+
_0x3362cb: 0x1fc,
|
|
484
|
+
_0xcf6557: 0xe2,
|
|
485
|
+
_0x34486e: 0x126
|
|
486
|
+
}, _0x517d22 = _0x58fa01, _0x1ed3f9 = _0x3b7920[_0x517d22(_0x242a7e._0x54ef27)] ?? fetch, _0x3c5734 = _0x3b7920[_0x517d22(_0x242a7e._0x31948f)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x387476 = typeof _0x3b7920[_0x517d22(0x22a)] === 'number' && _0x3b7920[_0x517d22(0x22a)] > 0x0 ? _0x3b7920[_0x517d22(0x22a)] : 0x0, _0x49c4d8 = _0x3b7920[_0x517d22(_0x242a7e._0x45d4ed)]?.[_0x517d22(0x186)]() || void 0x0, _0x213d2c = _0x3b7920[_0x517d22(0x1ee)]?.[_0x517d22(0x186)]() || void 0x0, _0x49aff4 = _0x3b7920[_0x517d22(_0x242a7e._0x5c0e76)] === !![], _0x568f05 = _0x3b7920[_0x517d22(_0x242a7e._0x501f41)]?.['trim']() || void 0x0, _0x2cec5b = _0x3b7920[_0x517d22(_0x242a7e._0x373178)]?.[_0x517d22(0x186)]() || void 0x0, _0xe74cc9 = createHeaders(_0x3b7920[_0x517d22(_0x242a7e._0x168b6a)]), _0x557bc6 = toHttpBaseUrl(_0x3b7920['serverUrl']);
|
|
487
|
+
let _0x3c571f = null;
|
|
488
|
+
const _0xd54664 = new Map();
|
|
489
|
+
let _0x113c6e = _0x387476, _0x51f1c4 = _0x387476;
|
|
490
|
+
function _0x52a49b(_0x1bd17b) {
|
|
491
|
+
const _0x38085e = _0x517d22, _0x33b48a = _0x1bd17b['response']['headers'][_0x38085e(_0x54f65f._0x4dbf73)]('content-type') ?? 'unknown', _0x413421 = _0x1bd17b['bodyText'][_0x38085e(_0x54f65f._0x31c165)]()[_0x38085e(_0x54f65f._0x45cc62)](/\s+/g, '\x20')[_0x38085e(_0x54f65f._0x535e57)](0x0, 0x78) || '<empty>';
|
|
492
|
+
return _0x38085e(_0x54f65f._0x779574) + _0x1bd17b[_0x38085e(_0x54f65f._0x3362cb)] + '\x20返回了非\x20JSON\x20响应(status=' + _0x1bd17b['response'][_0x38085e(_0x54f65f._0xcf6557)] + _0x38085e(_0x54f65f._0x34486e) + _0x33b48a + ',\x20preview=' + _0x413421 + _0x38085e(0x10e);
|
|
493
|
+
}
|
|
494
|
+
async function _0x13c03d(_0x3f757f, _0x51f04e) {
|
|
495
|
+
const _0x17ddfd = _0x517d22, _0x518f03 = Buffer['from'](await _0x51f04e[_0x17ddfd(0x239)]())['toString'](_0x17ddfd(0x207));
|
|
496
|
+
if (!_0x518f03['trim']())
|
|
497
|
+
return {};
|
|
498
|
+
try {
|
|
499
|
+
return JSON['parse'](_0x518f03);
|
|
500
|
+
} catch {
|
|
501
|
+
throw new Error(_0x52a49b({
|
|
502
|
+
'bodyText': _0x518f03,
|
|
503
|
+
'requestUrl': _0x3f757f,
|
|
504
|
+
'response': _0x51f04e
|
|
505
|
+
}));
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
function _0xbb703d(_0x11c849, _0x11ad59) {
|
|
509
|
+
const _0x56f2dc = _0x517d22, _0x212c15 = typeof _0x11ad59[_0x56f2dc(0x121)] === _0x56f2dc(0x23b) ? _0x11ad59[_0x56f2dc(_0x31b3e8._0x491559)][_0x56f2dc(0x186)]() : '';
|
|
510
|
+
if (_0x212c15)
|
|
511
|
+
return _0x212c15;
|
|
512
|
+
const _0x409711 = Date[_0x56f2dc(_0x31b3e8._0xb05a7b)]();
|
|
513
|
+
for (const [_0x55c439, _0x28c99e] of _0xd54664) {
|
|
514
|
+
_0x28c99e[_0x56f2dc(_0x31b3e8._0x327b4)] <= _0x409711 && _0xd54664[_0x56f2dc(_0x31b3e8._0x56dcf7)](_0x55c439);
|
|
515
|
+
}
|
|
516
|
+
const _0x1b0c96 = {
|
|
517
|
+
..._0x11ad59,
|
|
518
|
+
'idempotency_key': void 0x0
|
|
519
|
+
}, _0x3bbe67 = createHash('sha256')[_0x56f2dc(0xf2)](_0x11c849 + ':' + stableStringify(_0x1b0c96))[_0x56f2dc(0x1d2)](_0x56f2dc(_0x31b3e8._0x5cf4c9)), _0x5ed179 = _0x11c849 + ':' + _0x3bbe67, _0x591ce8 = _0xd54664[_0x56f2dc(_0x31b3e8._0xe18b3f)](_0x5ed179);
|
|
520
|
+
if (_0x591ce8)
|
|
521
|
+
return _0x591ce8[_0x56f2dc(_0x31b3e8._0x57465e)];
|
|
522
|
+
const _0x30df4d = 'auto:' + _0x11c849 + ':' + randomUUID();
|
|
523
|
+
return _0xd54664[_0x56f2dc(0x1db)](_0x5ed179, {
|
|
524
|
+
'expiresAt': _0x409711 + 0x5 * 0x3c * 0x3e8,
|
|
525
|
+
'value': _0x30df4d
|
|
526
|
+
}), _0x30df4d;
|
|
527
|
+
}
|
|
528
|
+
async function _0x510cf7(_0x381882, _0x2b8743) {
|
|
529
|
+
const _0x5554ac = _0x517d22, _0x37976f = new AbortController(), _0x504633 = setTimeout(() => _0x37976f['abort'](), _0x3c5734), _0x5c67d0 = _0x2b8743?.[_0x5554ac(_0x17b16d._0x3e4d66)] ? anySignal(_0x2b8743['signal'], _0x37976f[_0x5554ac(_0x17b16d._0x409b77)]) : _0x37976f[_0x5554ac(0xfe)], _0x1f6488 = '' + _0x557bc6 + _0x381882;
|
|
530
|
+
try {
|
|
531
|
+
const _0x1522fd = await _0x1ed3f9(_0x1f6488, {
|
|
532
|
+
..._0x2b8743,
|
|
533
|
+
'signal': _0x5c67d0
|
|
534
|
+
}), _0x1831d1 = await _0x13c03d(_0x1f6488, _0x1522fd);
|
|
535
|
+
if (!_0x1522fd['ok'] || _0x1831d1[_0x5554ac(_0x17b16d._0x539d27)] === ![])
|
|
536
|
+
throw new Error(asErrorMessage(_0x1831d1['error'], 'HTTP\x20' + _0x1522fd[_0x5554ac(_0x17b16d._0x3eb53b)]));
|
|
537
|
+
return _0x1831d1;
|
|
538
|
+
} finally {
|
|
539
|
+
clearTimeout(_0x504633);
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
async function _0x3a4ff1(_0x26e162, _0x16557c) {
|
|
543
|
+
const _0x2cc594 = _0x517d22, _0x25dc2c = new AbortController(), _0x290629 = setTimeout(() => _0x25dc2c[_0x2cc594(0x10d)](), _0x3c5734), _0x42ab47 = _0x16557c?.[_0x2cc594(_0x33c067._0x11bf4c)] ? anySignal(_0x16557c[_0x2cc594(0xfe)], _0x25dc2c[_0x2cc594(0xfe)]) : _0x25dc2c['signal'], _0x5c4827 = '' + _0x557bc6 + _0x26e162;
|
|
544
|
+
try {
|
|
545
|
+
const _0x1f2122 = await _0x1ed3f9(_0x5c4827, {
|
|
546
|
+
..._0x16557c,
|
|
547
|
+
'signal': _0x42ab47
|
|
548
|
+
}), _0x151ba7 = await _0x13c03d(_0x5c4827, _0x1f2122);
|
|
549
|
+
if (!_0x1f2122['ok'])
|
|
550
|
+
throw new Error(asErrorMessage(_0x151ba7[_0x2cc594(_0x33c067._0x3eb47d)], 'HTTP\x20' + _0x1f2122['status']));
|
|
551
|
+
return _0x151ba7;
|
|
552
|
+
} finally {
|
|
553
|
+
clearTimeout(_0x290629);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
async function _0x10a5cd(_0x5bb93d) {
|
|
557
|
+
const _0x4c76a0 = _0x517d22;
|
|
558
|
+
if (!_0x213d2c || _0x5bb93d <= _0x51f1c4)
|
|
559
|
+
return;
|
|
560
|
+
await _0x510cf7(_0x4c76a0(_0x518469._0x24b057) + encodeURIComponent(_0x213d2c) + _0x4c76a0(0x171), {
|
|
561
|
+
'body': JSON[_0x4c76a0(0x113)]({ 'lastSeenSeq': _0x5bb93d }),
|
|
562
|
+
'headers': _0xe74cc9,
|
|
563
|
+
'method': 'PATCH'
|
|
564
|
+
}), _0x51f1c4 = _0x5bb93d;
|
|
565
|
+
}
|
|
566
|
+
async function _0x4083f6(_0x563c91) {
|
|
567
|
+
const _0x5c479d = _0x517d22;
|
|
568
|
+
if (!_0x49c4d8 || !_0x568f05 || _0x563c91 <= _0x51f1c4)
|
|
569
|
+
return;
|
|
570
|
+
const _0x14a493 = await _0x1ed3f9(_0x49c4d8 + '/workers/context-metrics', {
|
|
571
|
+
'body': JSON['stringify']({
|
|
572
|
+
'last_seen_seq': _0x563c91,
|
|
573
|
+
'worker_session_id': _0x568f05
|
|
574
|
+
}),
|
|
575
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
576
|
+
'method': _0x5c479d(0x1e5)
|
|
577
|
+
});
|
|
578
|
+
if (!_0x14a493['ok'])
|
|
579
|
+
throw new Error('HTTP\x20' + _0x14a493[_0x5c479d(0xe2)]);
|
|
580
|
+
_0x51f1c4 = _0x563c91;
|
|
581
|
+
}
|
|
582
|
+
async function _0x50be46(_0x8b159a) {
|
|
583
|
+
const _0x533aca = _0x517d22, _0x4db983 = parseTarget(_0x8b159a), _0x5e5e47 = await _0x510cf7(_0x533aca(_0x34d198._0x2c745e) + _0x3b7920[_0x533aca(_0x34d198._0xa880f5)] + '/resolve-channel', {
|
|
584
|
+
'body': JSON[_0x533aca(_0x34d198._0x23d89c)]({ 'target': _0x4db983[_0x533aca(_0x34d198._0x5b4b3c)] }),
|
|
585
|
+
'headers': _0xe74cc9,
|
|
586
|
+
'method': 'POST'
|
|
587
|
+
});
|
|
588
|
+
return {
|
|
589
|
+
'channelId': _0x5e5e47[_0x533aca(0xea)]?.[_0x533aca(_0x34d198._0x18c219)] ?? '',
|
|
590
|
+
'target': _0x4db983[_0x533aca(0xd7)],
|
|
591
|
+
'task': _0x5e5e47['data']?.[_0x533aca(0x243)],
|
|
592
|
+
'threadId': _0x5e5e47[_0x533aca(0xea)]?.[_0x533aca(0x1b8)],
|
|
593
|
+
'threadNumber': _0x5e5e47[_0x533aca(0xea)]?.[_0x533aca(_0x34d198._0xadd420)]
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
async function _0x1f00a1(_0x3e684c = {}) {
|
|
597
|
+
const _0x179da7 = _0x517d22;
|
|
598
|
+
if (!_0x3e684c[_0x179da7(0x1d5)] && _0x3c571f)
|
|
599
|
+
return _0x3c571f;
|
|
600
|
+
return _0x3c571f = (async () => {
|
|
601
|
+
const _0x1b8344 = _0x179da7, _0x2ac3c9 = await _0x510cf7(_0x1b8344(0xc3) + _0x3b7920['agentId'] + _0x1b8344(_0x1c5208._0x47ea44), {
|
|
602
|
+
'headers': _0xe74cc9,
|
|
603
|
+
'method': _0x1b8344(_0x1c5208._0x1adbb3)
|
|
604
|
+
}), _0x552c8f = _0x2ac3c9[_0x1b8344(_0x1c5208._0x5c9082)]?.[_0x1b8344(_0x1c5208._0x5e1a1b)] ?? [], _0xe786d0 = _0x552c8f[_0x1b8344(0x161)](_0x22754a => _0x22754a[_0x1b8344(0xef)]?.[_0x1b8344(0x1f1)] === _0x1b8344(0x1f6))[_0x1b8344(_0x1c5208._0x31e5b6)](_0x360532 => ({
|
|
605
|
+
'id': _0x3f29c4(_0x360532),
|
|
606
|
+
'name': _0x29800c(_0x360532)
|
|
607
|
+
}))[_0x1b8344(0x161)](_0x370455 => _0x370455['id']), _0x55ace0 = _0x552c8f[_0x1b8344(0x161)](_0x16a192 => _0x16a192['participant']?.[_0x1b8344(0x1f1)] !== 'agent')[_0x1b8344(0x1a8)](_0x2af1dd => ({
|
|
608
|
+
'id': _0x3f29c4(_0x2af1dd),
|
|
609
|
+
'name': _0x29800c(_0x2af1dd)
|
|
610
|
+
}))['filter'](_0x12875d => _0x12875d['id']), _0x196a4b = _0x2ac3c9['data']?.[_0x1b8344(0x13b)]['id'] ?? '';
|
|
611
|
+
return {
|
|
612
|
+
'agents': _0xe786d0,
|
|
613
|
+
'channels': _0x2ac3c9[_0x1b8344(_0x1c5208._0x2f39b4)]?.[_0x1b8344(0x14c)] ?? [],
|
|
614
|
+
'humans': _0x55ace0,
|
|
615
|
+
'serverId': _0x196a4b,
|
|
616
|
+
'serverName': _0x2ac3c9['data']?.['server'][_0x1b8344(_0x1c5208._0xea4a33)] ?? _0x196a4b
|
|
617
|
+
};
|
|
618
|
+
})()[_0x179da7(_0xa1ba7d._0x56ef31)](_0x4b642f => {
|
|
619
|
+
_0x3c571f = null;
|
|
620
|
+
throw _0x4b642f;
|
|
621
|
+
}), _0x3c571f;
|
|
622
|
+
}
|
|
623
|
+
function _0x4836ae(_0x463a4e, _0xf9b94d) {
|
|
624
|
+
const _0x78d009 = _0x517d22;
|
|
625
|
+
return _0xf9b94d['agents'][_0x78d009(_0x9684b1._0x291521)](_0x5ed123 => _0x5ed123['id'] === _0x463a4e || _0x5ed123[_0x78d009(0x138)] === _0x463a4e) ? _0x78d009(_0x9684b1._0x3a3dee) : _0x78d009(_0x9684b1._0x163ae7);
|
|
626
|
+
}
|
|
627
|
+
function _0x5f2a3e(_0x1496c2, _0x2ae1de) {
|
|
628
|
+
const _0x9f2d46 = _0x517d22, _0x4048df = [
|
|
629
|
+
..._0x2ae1de[_0x9f2d46(_0x9d42cd._0x4d4187)],
|
|
630
|
+
..._0x2ae1de[_0x9f2d46(0x1af)]
|
|
631
|
+
][_0x9f2d46(0x1b6)](_0x34c36e => _0x34c36e['id'] === _0x1496c2);
|
|
632
|
+
return _0x4048df?.[_0x9f2d46(_0x9d42cd._0x2e4867)] ?? _0x1496c2;
|
|
633
|
+
}
|
|
634
|
+
function _0x3991fc(_0x5d6dc0) {
|
|
635
|
+
const _0x10f5b4 = _0x517d22;
|
|
636
|
+
if (_0x5d6dc0[_0x10f5b4(_0x1fd8c1._0x23a454)] != null)
|
|
637
|
+
return _0x5d6dc0[_0x10f5b4(_0x1fd8c1._0x56d715)] + ':t' + _0x5d6dc0[_0x10f5b4(_0x1fd8c1._0x4c8860)];
|
|
638
|
+
if (_0x5d6dc0['rootMessageId'])
|
|
639
|
+
return _0x5d6dc0['channelTarget'] + ':' + _0x5d6dc0['rootMessageId'];
|
|
640
|
+
if (_0x5d6dc0[_0x10f5b4(_0x1fd8c1._0xfe07df)])
|
|
641
|
+
return _0x5d6dc0[_0x10f5b4(0xd7)] + ':' + _0x5d6dc0['threadId'][_0x10f5b4(0x122)](0x0, 0x8);
|
|
642
|
+
return _0x5d6dc0['channelTarget'];
|
|
643
|
+
}
|
|
644
|
+
function _0x10e3d5(_0x118712, _0x2cad8a) {
|
|
645
|
+
const _0x3b3727 = _0x517d22;
|
|
646
|
+
try {
|
|
647
|
+
const _0x497fe1 = parseTarget(_0x118712);
|
|
648
|
+
if (_0x497fe1[_0x3b3727(0x196)] !== _0x3b3727(_0x47a7d1._0xcf47f1) || _0x497fe1['channelTarget'] !== _0x2cad8a[_0x3b3727(_0x47a7d1._0x25559d)])
|
|
649
|
+
return ![];
|
|
650
|
+
if (_0x2cad8a[_0x3b3727(0x1a0)] != null && _0x497fe1[_0x3b3727(_0x47a7d1._0x5997bb)] === 't' + _0x2cad8a[_0x3b3727(0x1a0)])
|
|
651
|
+
return !![];
|
|
652
|
+
if (_0x2cad8a[_0x3b3727(_0x47a7d1._0x2e424e)])
|
|
653
|
+
return _0x497fe1[_0x3b3727(_0x47a7d1._0x5997bb)] === _0x2cad8a[_0x3b3727(0x1f7)] || _0x2cad8a[_0x3b3727(0x1f7)]['startsWith'](_0x497fe1[_0x3b3727(0x229)]);
|
|
654
|
+
if (_0x2cad8a[_0x3b3727(0x1b8)])
|
|
655
|
+
return _0x497fe1[_0x3b3727(_0x47a7d1._0x5997bb)] === _0x2cad8a[_0x3b3727(0x1b8)] || _0x2cad8a[_0x3b3727(0x1b8)][_0x3b3727(_0x47a7d1._0x3e94e2)](_0x497fe1[_0x3b3727(0x229)]);
|
|
656
|
+
return ![];
|
|
657
|
+
} catch {
|
|
658
|
+
return ![];
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
function _0x6b12b3(_0x5001f8, _0x439b88) {
|
|
662
|
+
const _0x1f8bf3 = _0x517d22;
|
|
663
|
+
try {
|
|
664
|
+
const _0x24a4d0 = parseTarget(_0x5001f8);
|
|
665
|
+
if (_0x24a4d0['kind'] !== _0x1f8bf3(0x170))
|
|
666
|
+
return ![];
|
|
667
|
+
const _0x2b4fb1 = typeof _0x439b88[_0x1f8bf3(_0x405a92._0xa3b909)] === 'number' && Number[_0x1f8bf3(0x218)](_0x439b88[_0x1f8bf3(0x1a0)]) ? _0x439b88[_0x1f8bf3(0x1a0)] : void 0x0;
|
|
668
|
+
if (_0x2b4fb1 != null && _0x24a4d0[_0x1f8bf3(0x229)] === 't' + _0x2b4fb1)
|
|
669
|
+
return !![];
|
|
670
|
+
const _0x2fc0e6 = typeof _0x439b88[_0x1f8bf3(_0x405a92._0x5efd95)] === _0x1f8bf3(0x23b) ? _0x439b88[_0x1f8bf3(0x1f7)] : void 0x0;
|
|
671
|
+
if (_0x2fc0e6)
|
|
672
|
+
return _0x24a4d0[_0x1f8bf3(_0x405a92._0x3ebfdc)] === _0x2fc0e6 || _0x2fc0e6[_0x1f8bf3(_0x405a92._0x4862f8)](_0x24a4d0[_0x1f8bf3(_0x405a92._0x5bfeef)]);
|
|
673
|
+
const _0x2d23ce = typeof _0x439b88[_0x1f8bf3(_0x405a92._0xb87f46)] === _0x1f8bf3(0x23b) ? _0x439b88[_0x1f8bf3(_0x405a92._0x3e30f8)] : void 0x0;
|
|
674
|
+
return Boolean(_0x2d23ce) && (_0x24a4d0['threadShortId'] === _0x2d23ce || _0x2d23ce[_0x1f8bf3(0x124)](_0x24a4d0[_0x1f8bf3(_0x405a92._0x5bfeef)]));
|
|
675
|
+
} catch {
|
|
676
|
+
return ![];
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
function _0x3f29c4(_0x41d191) {
|
|
680
|
+
const _0x59a140 = _0x517d22;
|
|
681
|
+
return _0x41d191[_0x59a140(0xbf)]?.[_0x59a140(_0x5304b9._0x5e91fe)] ?? _0x41d191['participant']?.['id'] ?? _0x41d191[_0x59a140(0x145)] ?? '';
|
|
682
|
+
}
|
|
683
|
+
function _0x29800c(_0x309e9e) {
|
|
684
|
+
const _0x3a39a0 = _0x517d22;
|
|
685
|
+
return _0x309e9e['participant']?.[_0x3a39a0(0x138)] ?? _0x3f29c4(_0x309e9e);
|
|
686
|
+
}
|
|
687
|
+
async function _0x56e44b(_0x4a85ac) {
|
|
688
|
+
const _0x5605cd = _0x517d22, _0x27250d = Math[_0x5605cd(0x244)](_0x4a85ac[_0x5605cd(_0xe186f4._0x38f753)] ?? 0x32, 0x64), _0x3cc975 = await _0x1f00a1(), _0xf275cb = new URLSearchParams();
|
|
689
|
+
_0xf275cb[_0x5605cd(_0xe186f4._0xfd81c)](_0x5605cd(0x106), String(_0x27250d));
|
|
690
|
+
_0x4a85ac['threadId'] ? (_0xf275cb[_0x5605cd(_0xe186f4._0xfd81c)](_0x5605cd(_0xe186f4._0x58e767), _0x4a85ac[_0x5605cd(_0xe186f4._0x156cfd)]), _0xf275cb[_0x5605cd(_0xe186f4._0x48635e)](_0x5605cd(_0xe186f4._0x4085fb), _0x4a85ac[_0x5605cd(_0xe186f4._0x2bfdd7)])) : _0xf275cb['set']('channelId', _0x4a85ac['channelId']);
|
|
691
|
+
_0x4a85ac['before'] && _0xf275cb[_0x5605cd(_0xe186f4._0x48635e)](_0x5605cd(0x200), String(_0x4a85ac[_0x5605cd(_0xe186f4._0x1ec9e6)]));
|
|
692
|
+
_0x4a85ac[_0x5605cd(_0xe186f4._0x1894cd)] !== void 0x0 && _0xf275cb[_0x5605cd(_0xe186f4._0x48635e)](_0x5605cd(0x13a), String(_0x4a85ac[_0x5605cd(0x13a)]));
|
|
693
|
+
const _0x30fbed = await _0x510cf7(_0x5605cd(_0xe186f4._0x462afc) + _0x3b7920[_0x5605cd(0x1ff)] + '/history?' + _0xf275cb[_0x5605cd(0x1c9)](), {
|
|
694
|
+
'headers': _0xe74cc9,
|
|
695
|
+
'method': _0x5605cd(_0xe186f4._0x4addac)
|
|
696
|
+
}), _0x1637f9 = (_0x30fbed[_0x5605cd(0xea)] ?? [])[_0x5605cd(0x1a8)](_0x3692d0 => ({
|
|
697
|
+
'attachments': (_0x3692d0[_0x5605cd(0x128)] ?? [])[_0x5605cd(0x1a8)](_0x5c667d => ({
|
|
698
|
+
'filename': _0x5c667d[_0x5605cd(0x197)] ?? _0x5c667d['id'],
|
|
699
|
+
'id': _0x5c667d['id']
|
|
700
|
+
})),
|
|
701
|
+
'content': _0x3692d0['bodyMarkdown'] ?? '',
|
|
702
|
+
'createdAt': _0x3692d0[_0x5605cd(0x17b)],
|
|
703
|
+
..._0x3692d0[_0x5605cd(0x196)] && _0x3692d0[_0x5605cd(0x196)] !== _0x5605cd(0x1c4) ? { 'kind': _0x3692d0[_0x5605cd(0x196)] } : {},
|
|
704
|
+
'messageId': _0x3692d0['id'],
|
|
705
|
+
'senderName': _0x5f2a3e(_0x3692d0[_0x5605cd(0x228)], _0x3cc975),
|
|
706
|
+
'senderType': _0x4836ae(_0x3692d0[_0x5605cd(0x228)], _0x3cc975),
|
|
707
|
+
'seq': _0x3692d0[_0x5605cd(0xf0)] ?? 0x0
|
|
708
|
+
}));
|
|
709
|
+
return {
|
|
710
|
+
'channel': _0x4a85ac['channelTarget'],
|
|
711
|
+
'hasMore': _0x30fbed[_0x5605cd(0x185)]?.[_0x5605cd(0x16d)] ?? ![],
|
|
712
|
+
'messages': _0x1637f9,
|
|
713
|
+
'nextCursor': _0x30fbed[_0x5605cd(0x185)]?.[_0x5605cd(0x200)]
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
return {
|
|
717
|
+
async 'sendMessage'(_0x265a9f) {
|
|
718
|
+
const _0x4b49f3 = _0x517d22, _0x5d37c9 = await _0x50be46(_0x265a9f[_0x4b49f3(_0x889ad6._0x603e29)]), _0x2c961f = _0x265a9f[_0x4b49f3(0xcc)][_0x4b49f3(_0x889ad6._0x16449a)]('@') ? extractMentionedParticipantIds(_0x265a9f[_0x4b49f3(0xcc)], await _0x1f00a1()) : [], _0x105e60 = await _0x510cf7(_0x4b49f3(_0x889ad6._0x3aee78) + _0x3b7920[_0x4b49f3(0x1ff)] + '/send', {
|
|
719
|
+
'body': JSON['stringify']({
|
|
720
|
+
'attachment_ids': _0x265a9f[_0x4b49f3(_0x889ad6._0x46238d)],
|
|
721
|
+
'bodyMarkdown': _0x265a9f[_0x4b49f3(0xcc)],
|
|
722
|
+
'channelId': _0x5d37c9[_0x4b49f3(_0x889ad6._0x20ed9d)],
|
|
723
|
+
..._0x2c961f[_0x4b49f3(_0x889ad6._0x137c39)] > 0x0 ? { 'mentionedParticipantIds': _0x2c961f } : {},
|
|
724
|
+
'threadId': _0x5d37c9[_0x4b49f3(_0x889ad6._0x16770d)],
|
|
725
|
+
..._0x265a9f[_0x4b49f3(_0x889ad6._0x3fd71f)] ? { 'visibility': _0x265a9f[_0x4b49f3(0x11f)] } : {}
|
|
726
|
+
}),
|
|
727
|
+
'headers': _0xe74cc9,
|
|
728
|
+
'method': _0x4b49f3(_0x889ad6._0x124bf7)
|
|
729
|
+
});
|
|
730
|
+
return { 'messageId': _0x105e60['data']?.['id'] ?? '' };
|
|
731
|
+
},
|
|
732
|
+
async 'listSchedules'() {
|
|
733
|
+
const _0x2fa00b = _0x517d22, _0x336575 = await _0x510cf7('/api/internal/schedules', {
|
|
734
|
+
'headers': _0xe74cc9,
|
|
735
|
+
'method': _0x2fa00b(0x151)
|
|
736
|
+
});
|
|
737
|
+
return _0x336575['data'] ?? [];
|
|
738
|
+
},
|
|
739
|
+
async 'claimScheduleRun'(_0x167478) {
|
|
740
|
+
const _0x12ef17 = _0x517d22, _0x1ecf03 = await _0x510cf7(_0x12ef17(_0xfbce8a._0x35953b), {
|
|
741
|
+
'body': JSON[_0x12ef17(_0xfbce8a._0x3ca85c)](_0x167478),
|
|
742
|
+
'headers': _0xe74cc9,
|
|
743
|
+
'method': _0x12ef17(0x1e5)
|
|
744
|
+
});
|
|
745
|
+
return _0x1ecf03[_0x12ef17(_0xfbce8a._0x161751)] ?? {
|
|
746
|
+
'granted': ![],
|
|
747
|
+
'runId': null,
|
|
748
|
+
'schedule': null,
|
|
749
|
+
'scheduledFor': _0x167478[_0x12ef17(0x202)]
|
|
750
|
+
};
|
|
751
|
+
},
|
|
752
|
+
async 'startScheduleRun'(_0x5e2dce) {
|
|
753
|
+
const _0xda3da3 = _0x517d22, _0x5a22d2 = await _0x510cf7(_0xda3da3(0x1e4) + encodeURIComponent(_0x5e2dce[_0xda3da3(_0x2ba3ed._0xe2a1ee)]) + _0xda3da3(0x1a4), {
|
|
754
|
+
'body': JSON[_0xda3da3(_0x2ba3ed._0x343ed0)]({}),
|
|
755
|
+
'headers': _0xe74cc9,
|
|
756
|
+
'method': _0xda3da3(_0x2ba3ed._0x3005bf)
|
|
757
|
+
});
|
|
758
|
+
return _0x5a22d2[_0xda3da3(_0x2ba3ed._0x8709b5)] ?? {
|
|
759
|
+
'claimedByDaemonId': '',
|
|
760
|
+
'id': _0x5e2dce[_0xda3da3(0x219)],
|
|
761
|
+
'scheduleId': '',
|
|
762
|
+
'status': _0xda3da3(_0x2ba3ed._0x1d5cfd)
|
|
763
|
+
};
|
|
764
|
+
},
|
|
765
|
+
async 'finishScheduleRun'(_0x1edcb2) {
|
|
766
|
+
const _0x28de1f = _0x517d22, _0x28bb42 = await _0x510cf7(_0x28de1f(0x1e4) + encodeURIComponent(_0x1edcb2[_0x28de1f(0x219)]) + '/finish', {
|
|
767
|
+
'body': JSON[_0x28de1f(_0x522c5d._0x3de5e4)]({
|
|
768
|
+
'error': _0x1edcb2['error'],
|
|
769
|
+
'resultJson': _0x1edcb2[_0x28de1f(0x12a)],
|
|
770
|
+
'status': _0x1edcb2[_0x28de1f(_0x522c5d._0x28566a)]
|
|
771
|
+
}),
|
|
772
|
+
'headers': _0xe74cc9,
|
|
773
|
+
'method': _0x28de1f(0x1e5)
|
|
774
|
+
});
|
|
775
|
+
return _0x28bb42['data'] ?? {
|
|
776
|
+
'nextRunAt': null,
|
|
777
|
+
'run': {
|
|
778
|
+
'claimedByDaemonId': '',
|
|
779
|
+
'id': _0x1edcb2[_0x28de1f(0x219)],
|
|
780
|
+
'scheduleId': '',
|
|
781
|
+
'status': _0x1edcb2['status']
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
},
|
|
785
|
+
async 'listTasks'(_0x586fdf) {
|
|
786
|
+
const _0x5e5091 = _0x517d22, _0x4e2c43 = new URLSearchParams();
|
|
787
|
+
return _0x4e2c43[_0x5e5091(_0x117d21._0xeea1d7)](_0x5e5091(_0x117d21._0x161b0c), _0x586fdf[_0x5e5091(0xd3)]), _0x586fdf['status'] && _0x4e2c43[_0x5e5091(0x1db)](_0x5e5091(0xe2), _0x586fdf[_0x5e5091(0xe2)]), _0x3a4ff1(_0x5e5091(_0x117d21._0x36c272) + _0x3b7920['agentId'] + _0x5e5091(0x123) + _0x4e2c43[_0x5e5091(0x1c9)](), {
|
|
788
|
+
'headers': _0xe74cc9,
|
|
789
|
+
'method': _0x5e5091(_0x117d21._0x38c4de)
|
|
790
|
+
});
|
|
791
|
+
},
|
|
792
|
+
async 'createTasks'(_0xb448d8) {
|
|
793
|
+
const _0xb8c504 = _0x517d22;
|
|
794
|
+
return _0x3a4ff1(_0xb8c504(0xc3) + _0x3b7920[_0xb8c504(_0x4d109b._0x2e7b67)] + _0xb8c504(0x115), {
|
|
795
|
+
'body': JSON['stringify']({
|
|
796
|
+
..._0xb448d8,
|
|
797
|
+
'idempotency_key': _0xbb703d(_0xb8c504(_0x4d109b._0x3d314c), _0xb448d8)
|
|
798
|
+
}),
|
|
799
|
+
'headers': _0xe74cc9,
|
|
800
|
+
'method': _0xb8c504(_0x4d109b._0x44cfc2)
|
|
801
|
+
});
|
|
802
|
+
},
|
|
803
|
+
async 'claimTasks'(_0x301799) {
|
|
804
|
+
const _0x35b164 = _0x517d22;
|
|
805
|
+
return _0x3a4ff1(_0x35b164(_0xb5be9f._0x4de972) + _0x3b7920['agentId'] + _0x35b164(0xff), {
|
|
806
|
+
'body': JSON[_0x35b164(_0xb5be9f._0x231c53)]({
|
|
807
|
+
..._0x301799,
|
|
808
|
+
'idempotency_key': _0xbb703d('claim_tasks', _0x301799)
|
|
809
|
+
}),
|
|
810
|
+
'headers': _0xe74cc9,
|
|
811
|
+
'method': _0x35b164(0x1e5)
|
|
812
|
+
});
|
|
813
|
+
},
|
|
814
|
+
async 'unclaimTask'(_0x52766d) {
|
|
815
|
+
const _0x363e66 = _0x517d22;
|
|
816
|
+
return _0x3a4ff1('/internal/agent/' + _0x3b7920[_0x363e66(0x1ff)] + _0x363e66(0x150), {
|
|
817
|
+
'body': JSON['stringify']({
|
|
818
|
+
..._0x52766d,
|
|
819
|
+
'idempotency_key': _0xbb703d('unclaim_task', _0x52766d)
|
|
820
|
+
}),
|
|
821
|
+
'headers': _0xe74cc9,
|
|
822
|
+
'method': _0x363e66(0x1e5)
|
|
823
|
+
});
|
|
824
|
+
},
|
|
825
|
+
async 'updateTaskStatus'(_0x30f2f8) {
|
|
826
|
+
const _0x1f5f99 = _0x517d22;
|
|
827
|
+
return _0x3a4ff1(_0x1f5f99(0xc3) + _0x3b7920[_0x1f5f99(_0x16df83._0x13bd94)] + '/tasks/update-status', {
|
|
828
|
+
'body': JSON[_0x1f5f99(_0x16df83._0x4aca08)]({
|
|
829
|
+
..._0x30f2f8,
|
|
830
|
+
'idempotency_key': _0xbb703d(_0x1f5f99(0x21b), _0x30f2f8)
|
|
831
|
+
}),
|
|
832
|
+
'headers': _0xe74cc9,
|
|
833
|
+
'method': _0x1f5f99(_0x16df83._0x4f58c3)
|
|
834
|
+
});
|
|
835
|
+
},
|
|
836
|
+
async 'uploadFile'(_0x39d120) {
|
|
837
|
+
const _0xeee2cd = _0x517d22, _0x26ddd2 = await _0x50be46(_0x39d120['channel']);
|
|
838
|
+
if (_0x26ddd2[_0xeee2cd(0x1b8)])
|
|
839
|
+
throw new Error(_0xeee2cd(0x166));
|
|
840
|
+
const _0x42d850 = await _0x510cf7(_0xeee2cd(_0x4758b7._0xd7a56e) + _0x3b7920['agentId'] + _0xeee2cd(_0x4758b7._0x453e1b), {
|
|
841
|
+
'body': JSON[_0xeee2cd(_0x4758b7._0xa47a66)]({
|
|
842
|
+
'channel': _0x26ddd2[_0xeee2cd(0x212)],
|
|
843
|
+
'contentBase64': _0x39d120['contentBase64'],
|
|
844
|
+
'contentType': _0x39d120['contentType'],
|
|
845
|
+
'originalFilename': _0x39d120[_0xeee2cd(_0x4758b7._0x4b65be)]
|
|
846
|
+
}),
|
|
847
|
+
'headers': _0xe74cc9,
|
|
848
|
+
'method': _0xeee2cd(_0x4758b7._0x3cd9ca)
|
|
849
|
+
});
|
|
850
|
+
return {
|
|
851
|
+
'attachmentId': _0x42d850[_0xeee2cd(_0x4758b7._0x224973)]?.['id'] ?? '',
|
|
852
|
+
'filename': _0x42d850[_0xeee2cd(0xea)]?.[_0xeee2cd(_0x4758b7._0x201556)] ?? _0x39d120[_0xeee2cd(_0x4758b7._0xa96d)],
|
|
853
|
+
'sizeBytes': _0x42d850[_0xeee2cd(0xea)]?.[_0xeee2cd(0x15e)] ?? 0x0
|
|
854
|
+
};
|
|
855
|
+
},
|
|
856
|
+
async 'downloadAttachment'(_0x31f74e) {
|
|
857
|
+
const _0x51af49 = _0x517d22, _0x416daf = await _0x510cf7(_0x51af49(0x18a) + _0x31f74e, {
|
|
858
|
+
'headers': _0xe74cc9,
|
|
859
|
+
'method': _0x51af49(0x151)
|
|
860
|
+
}), _0x3dc816 = new AbortController(), _0x1fe955 = setTimeout(() => _0x3dc816[_0x51af49(0x10d)](), _0x3c5734);
|
|
861
|
+
try {
|
|
862
|
+
const _0x4587cc = await _0x1ed3f9(_0x557bc6 + _0x51af49(0x18a) + _0x31f74e + '/content', {
|
|
863
|
+
'headers': _0xe74cc9,
|
|
864
|
+
'method': _0x51af49(0x151),
|
|
865
|
+
'signal': _0x3dc816['signal']
|
|
866
|
+
});
|
|
867
|
+
if (!_0x4587cc['ok'])
|
|
868
|
+
throw new Error(_0x51af49(_0x3943dd._0x42b355) + _0x4587cc['status']);
|
|
869
|
+
return {
|
|
870
|
+
'contentType': _0x416daf['data']?.[_0x51af49(0x1cb)] ?? _0x4587cc[_0x51af49(0x221)][_0x51af49(0x1ce)]('content-type') ?? _0x51af49(0x1ae),
|
|
871
|
+
'data': Buffer[_0x51af49(0xe6)](await _0x4587cc[_0x51af49(_0x3943dd._0x2fdfff)]()),
|
|
872
|
+
'originalFilename': _0x416daf[_0x51af49(0xea)]?.['originalFilename']
|
|
873
|
+
};
|
|
874
|
+
} finally {
|
|
875
|
+
clearTimeout(_0x1fe955);
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
async 'listServer'() {
|
|
879
|
+
return _0x1f00a1({ 'forceRefresh': !![] });
|
|
880
|
+
},
|
|
881
|
+
async 'getLatestEventSeq'() {
|
|
882
|
+
const _0x4a0252 = _0x517d22, _0x5e6bdc = new URLSearchParams();
|
|
883
|
+
_0x5e6bdc[_0x4a0252(0x1db)]('afterSeq', '0'), _0x5e6bdc[_0x4a0252(0x1db)](_0x4a0252(_0x153594._0x36d6c7), '1');
|
|
884
|
+
const _0x304d67 = await _0x510cf7(_0x4a0252(0xc3) + _0x3b7920['agentId'] + _0x4a0252(_0x153594._0x2fa837) + _0x5e6bdc[_0x4a0252(_0x153594._0x351856)](), {
|
|
885
|
+
'headers': _0xe74cc9,
|
|
886
|
+
'method': _0x4a0252(_0x153594._0x39a7f9)
|
|
887
|
+
}), _0x7c1391 = _0x304d67['meta']?.['latestSeq'];
|
|
888
|
+
return typeof _0x7c1391 === _0x4a0252(_0x153594._0x13e96f) && _0x7c1391 > 0x0 ? _0x7c1391 : 0x0;
|
|
889
|
+
},
|
|
890
|
+
async 'readHistory'(_0x186e74) {
|
|
891
|
+
const _0x557fbc = _0x517d22, _0x5d7a5e = await _0x50be46(_0x186e74['channel']);
|
|
892
|
+
return _0x56e44b({
|
|
893
|
+
'after': _0x186e74['after'],
|
|
894
|
+
'before': _0x186e74[_0x557fbc(0x102)],
|
|
895
|
+
'channelId': _0x5d7a5e[_0x557fbc(0x181)],
|
|
896
|
+
'channelTarget': _0x5d7a5e[_0x557fbc(_0x4c6b31._0x57a393)],
|
|
897
|
+
'limit': _0x186e74['limit'],
|
|
898
|
+
'threadId': _0x5d7a5e[_0x557fbc(_0x4c6b31._0x26554d)]
|
|
899
|
+
});
|
|
900
|
+
},
|
|
901
|
+
'resolveTarget': _0x50be46,
|
|
902
|
+
async 'checkMessages'() {
|
|
903
|
+
const _0x121166 = _0x517d22, _0x1e8bd9 = new URLSearchParams();
|
|
904
|
+
_0x1e8bd9[_0x121166(0x1db)](_0x121166(_0x1f6ae7._0x55ec62), String(_0x113c6e));
|
|
905
|
+
const _0x4fe887 = _0x1e8bd9[_0x121166(_0x1f6ae7._0x5a7fe0)](), _0xfe9473 = await _0x510cf7(_0x121166(_0x1f6ae7._0x5b5257) + _0x3b7920[_0x121166(0x1ff)] + _0x121166(0x21d) + (_0x4fe887 ? '?' + _0x4fe887 : ''), {
|
|
906
|
+
'headers': _0xe74cc9,
|
|
907
|
+
'method': 'GET'
|
|
908
|
+
}), _0x1a15b1 = _0xfe9473['data'] ?? [], _0x86ad9 = _0xfe9473[_0x121166(_0x1f6ae7._0xd6f207)]?.[_0x121166(_0x1f6ae7._0x4225a3)], _0x153f66 = _0x2cec5b ? _0x1a15b1[_0x121166(0x161)](_0x13753e => {
|
|
909
|
+
const _0x5f13d5 = _0x121166;
|
|
910
|
+
if (_0x13753e['aggregateType'] !== _0x5f13d5(0x1a2))
|
|
911
|
+
return ![];
|
|
912
|
+
return _0x6b12b3(_0x2cec5b, asRecord(_0x13753e['payloadJson']));
|
|
913
|
+
}) : _0x1a15b1, _0x371e7b = _0x86ad9 !== void 0x0 ? _0x2cec5b ? Math['max'](_0x113c6e, _0x153f66[_0x121166(0x101)] > 0x0 ? _0x153f66[_0x153f66[_0x121166(_0x1f6ae7._0x1910d4)] - 0x1][_0x121166(_0x1f6ae7._0x1f3755)] : _0x113c6e) : Math['max'](_0x113c6e, _0x86ad9) : _0x153f66[_0x121166(_0x1f6ae7._0x1cc27b)] > 0x0 ? Math[_0x121166(0xcf)](_0x113c6e, _0x153f66[_0x153f66[_0x121166(0x101)] - 0x1][_0x121166(0xc9)]) : _0x113c6e, _0x2e9253 = (_0x2cec5b ? _0x153f66 : _0x1a15b1)[_0x121166(_0x1f6ae7._0x16874e)](_0x4296ce => _0x4296ce['aggregateType'] === 'message'), _0x4b9690 = _0x2cec5b === void 0x0 && _0x49aff4;
|
|
914
|
+
let _0x4488d0 = await _0x1f00a1(), _0x3d6d02 = new Map(_0x4488d0['channels'][_0x121166(_0x1f6ae7._0x4f8423)](_0x1f82b6 => [
|
|
915
|
+
_0x1f82b6['id'],
|
|
916
|
+
_0x1f82b6
|
|
917
|
+
]));
|
|
918
|
+
const _0x5109af = _0x2e9253[_0x121166(_0x1f6ae7._0x2a0952)](_0x3e5e13 => {
|
|
919
|
+
const _0x1e0894 = _0x121166, _0x1c8f93 = asRecord(_0x3e5e13[_0x1e0894(0x188)]), _0x429210 = typeof _0x1c8f93?.[_0x1e0894(_0x5ee7b5._0x51ff93)] === _0x1e0894(0x23b) ? _0x1c8f93[_0x1e0894(_0x5ee7b5._0x51ff93)] : '';
|
|
920
|
+
return Boolean(_0x429210) && !_0x3d6d02[_0x1e0894(0x220)](_0x429210);
|
|
921
|
+
});
|
|
922
|
+
_0x5109af && (_0x4488d0 = await _0x1f00a1({ 'forceRefresh': !![] }), _0x3d6d02 = new Map(_0x4488d0[_0x121166(_0x1f6ae7._0xe1dde9)][_0x121166(_0x1f6ae7._0x4f8423)](_0x6cc3d2 => [
|
|
923
|
+
_0x6cc3d2['id'],
|
|
924
|
+
_0x6cc3d2
|
|
925
|
+
])));
|
|
926
|
+
const _0x1b5c30 = new Map();
|
|
927
|
+
for (const _0x48caae of _0x2e9253) {
|
|
928
|
+
const _0x4f443c = asRecord(_0x48caae[_0x121166(0x188)]), _0x22a715 = typeof _0x4f443c[_0x121166(0x181)] === _0x121166(0x23b) ? _0x4f443c[_0x121166(0x181)] : '';
|
|
929
|
+
if (!_0x22a715)
|
|
930
|
+
continue;
|
|
931
|
+
const _0x532530 = typeof _0x4f443c[_0x121166(0x1b8)] === _0x121166(_0x1f6ae7._0xf99722) ? _0x4f443c[_0x121166(_0x1f6ae7._0xfeb6c6)] : void 0x0, _0xf6f07c = typeof _0x4f443c[_0x121166(0x1f7)] === 'string' ? _0x4f443c[_0x121166(0x1f7)] : void 0x0, _0x8e6476 = typeof _0x4f443c[_0x121166(_0x1f6ae7._0x4716a2)] === 'number' && Number['isInteger'](_0x4f443c[_0x121166(0x1a0)]) ? _0x4f443c[_0x121166(_0x1f6ae7._0x4716a2)] : void 0x0, _0x505328 = Boolean(_0x532530 && (!_0xf6f07c || _0x48caae[_0x121166(0xce)] !== _0xf6f07c)), _0x17e8bf = _0x505328 ? _0x22a715 + ':' + _0x532530 : _0x22a715, _0x3b3a85 = _0x1b5c30[_0x121166(0x1ce)](_0x17e8bf) ?? {
|
|
932
|
+
'aggregateIds': [],
|
|
933
|
+
'channelId': _0x22a715,
|
|
934
|
+
'entries': new Map(),
|
|
935
|
+
'isThreadReply': _0x505328,
|
|
936
|
+
'rootMessageId': _0xf6f07c,
|
|
937
|
+
'threadNumber': _0x8e6476,
|
|
938
|
+
'threadId': _0x505328 ? _0x532530 : void 0x0
|
|
939
|
+
};
|
|
940
|
+
_0x3b3a85['threadNumber'] == null && _0x8e6476 != null && (_0x3b3a85[_0x121166(_0x1f6ae7._0x4716a2)] = _0x8e6476), !_0x3b3a85[_0x121166(_0x1f6ae7._0x1476a5)] && _0xf6f07c && (_0x3b3a85[_0x121166(_0x1f6ae7._0x1476a5)] = _0xf6f07c), _0x3b3a85[_0x121166(0x194)][_0x121166(_0x1f6ae7._0x3ea4ac)](_0x48caae['aggregateId']), _0x3b3a85[_0x121166(_0x1f6ae7._0x491a3b)][_0x121166(_0x1f6ae7._0x2981a1)](_0x48caae[_0x121166(0xce)], {
|
|
941
|
+
'payloadJson': _0x48caae[_0x121166(_0x1f6ae7._0x3e173e)],
|
|
942
|
+
'seq': _0x48caae[_0x121166(_0x1f6ae7._0x264e5d)]
|
|
943
|
+
}), _0x1b5c30['set'](_0x17e8bf, _0x3b3a85);
|
|
944
|
+
}
|
|
945
|
+
const _0x59a3ed = [];
|
|
946
|
+
for (const _0x54c71b of _0x1b5c30['values']()) {
|
|
947
|
+
const {
|
|
948
|
+
channelId: _0x3f4def,
|
|
949
|
+
threadId: _0xe8da06,
|
|
950
|
+
rootMessageId: _0x353aaa,
|
|
951
|
+
threadNumber: _0x3a689d,
|
|
952
|
+
aggregateIds: _0x55b672,
|
|
953
|
+
isThreadReply: _0x472900,
|
|
954
|
+
entries: _0x1f82b2
|
|
955
|
+
} = _0x54c71b, _0x5a3a2d = _0x3d6d02['get'](_0x3f4def), _0x4aa2cb = _0x5a3a2d?.[_0x121166(_0x1f6ae7._0x2cc570)] ?? _0x3f4def, _0x4fdb33 = _0x5a3a2d?.['kind'] === 'dm' ? 'dm:' + _0x4aa2cb : '#' + _0x4aa2cb, _0x2d5cd8 = {
|
|
956
|
+
'channelTarget': _0x4fdb33,
|
|
957
|
+
'rootMessageId': _0x353aaa,
|
|
958
|
+
'threadId': _0xe8da06,
|
|
959
|
+
'threadNumber': _0x3a689d
|
|
960
|
+
}, _0xa6fd3e = await _0x56e44b({
|
|
961
|
+
'channelId': _0x3f4def,
|
|
962
|
+
'channelTarget': _0x4fdb33,
|
|
963
|
+
'limit': Math['max'](_0x55b672['length'], 0x32),
|
|
964
|
+
'threadId': _0xe8da06
|
|
965
|
+
}), _0x4f8715 = new Map(_0xa6fd3e[_0x121166(0x17a)]['map'](_0x2e577c => [
|
|
966
|
+
_0x2e577c['messageId'],
|
|
967
|
+
_0x2e577c
|
|
968
|
+
])), _0x48ee3c = _0xe8da06 ? _0x3991fc(_0x2d5cd8) : _0x4fdb33, _0x45abc7 = _0x2cec5b ? _0x472900 && _0x10e3d5(_0x2cec5b, _0x2d5cd8) : !![], _0x3800a6 = _0x472900 ? _0x45abc7 && _0x2cec5b ? _0x2cec5b : _0x48ee3c : _0x4fdb33;
|
|
969
|
+
for (const _0x4ca468 of _0x55b672) {
|
|
970
|
+
if (!_0x45abc7)
|
|
971
|
+
continue;
|
|
972
|
+
const _0x2fac90 = _0x1f82b2[_0x121166(0x1ce)](_0x4ca468), _0x55fd3d = _0x2fac90 ? asRecord(_0x2fac90[_0x121166(0x188)]) : void 0x0, _0x34a966 = _0x55fd3d?.[_0x121166(_0x1f6ae7._0x1b5a08)] === _0x121166(0x12f);
|
|
973
|
+
if (_0x4b9690 && _0x34a966)
|
|
974
|
+
continue;
|
|
975
|
+
const _0x7be6dd = _0x4f8715[_0x121166(_0x1f6ae7._0x509348)](_0x4ca468);
|
|
976
|
+
if (_0x7be6dd) {
|
|
977
|
+
_0x59a3ed[_0x121166(_0x1f6ae7._0x44e84c)]({
|
|
978
|
+
'attachments': _0x7be6dd[_0x121166(_0x1f6ae7._0x566242)],
|
|
979
|
+
'content': _0x7be6dd[_0x121166(0xcc)],
|
|
980
|
+
'createdAt': _0x7be6dd[_0x121166(0x17b)],
|
|
981
|
+
..._0x7be6dd[_0x121166(_0x1f6ae7._0x4e4f14)] ? { 'kind': _0x7be6dd[_0x121166(0x196)] } : {},
|
|
982
|
+
'messageId': _0x7be6dd[_0x121166(_0x1f6ae7._0x12d2d6)],
|
|
983
|
+
'senderName': _0x7be6dd['senderName'],
|
|
984
|
+
'senderType': _0x7be6dd['senderType'],
|
|
985
|
+
'target': _0x3800a6,
|
|
986
|
+
..._0x34a966 ? { 'targetedTask': !![] } : {}
|
|
987
|
+
});
|
|
988
|
+
continue;
|
|
989
|
+
}
|
|
990
|
+
if (_0x2fac90) {
|
|
991
|
+
const _0x159d86 = typeof _0x55fd3d?.[_0x121166(0x228)] === _0x121166(0x23b) ? _0x55fd3d['senderParticipantId'] : '', _0x571b98 = typeof _0x55fd3d?.[_0x121166(0xd6)] === 'string' ? _0x55fd3d['bodyMarkdown'] : '', _0x521b91 = typeof _0x55fd3d?.[_0x121166(0x196)] === 'string' && _0x55fd3d[_0x121166(_0x1f6ae7._0x5bd01c)] !== _0x121166(_0x1f6ae7._0x1ca13d) ? _0x55fd3d[_0x121166(0x196)] : void 0x0;
|
|
992
|
+
_0x159d86 && _0x571b98 && _0x59a3ed[_0x121166(0x16e)]({
|
|
993
|
+
'attachments': [],
|
|
994
|
+
'content': _0x571b98,
|
|
995
|
+
'createdAt': new Date()['toISOString'](),
|
|
996
|
+
..._0x521b91 ? { 'kind': _0x521b91 } : {},
|
|
997
|
+
'messageId': _0x4ca468,
|
|
998
|
+
'senderName': _0x5f2a3e(_0x159d86, _0x4488d0),
|
|
999
|
+
'senderType': _0x4836ae(_0x159d86, _0x4488d0),
|
|
1000
|
+
'target': _0x3800a6,
|
|
1001
|
+
..._0x34a966 ? { 'targetedTask': !![] } : {}
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
if (_0x371e7b > 0x0) {
|
|
1007
|
+
if (_0x213d2c)
|
|
1008
|
+
await _0x10a5cd(_0x371e7b);
|
|
1009
|
+
else
|
|
1010
|
+
_0x568f05 && await _0x4083f6(_0x371e7b);
|
|
1011
|
+
}
|
|
1012
|
+
return _0x371e7b > _0x113c6e && (_0x113c6e = _0x371e7b), { 'messages': _0x2cec5b ? _0x59a3ed : _0x4b9690 ? _0x59a3ed[_0x121166(0x161)](_0x115359 => _0x115359[_0x121166(0x13d)] !== !![]) : _0x59a3ed };
|
|
1013
|
+
}
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
function toLocalTime(_0x520fd3) {
|
|
1017
|
+
const _0x5ef450 = {
|
|
1018
|
+
_0x3c8564: 0x182,
|
|
1019
|
+
_0x503196: 0x1bb,
|
|
1020
|
+
_0x57e0d6: 0x236,
|
|
1021
|
+
_0x4be7a0: 0x1cd
|
|
1022
|
+
}, _0x513837 = _0x58fa01, _0x398857 = new Date(_0x520fd3);
|
|
1023
|
+
if (Number[_0x513837(0x1d0)](_0x398857[_0x513837(_0x5ef450._0x3c8564)]()))
|
|
1024
|
+
return _0x520fd3;
|
|
1025
|
+
const _0x2c8d5b = _0x37163c => String(_0x37163c)[_0x513837(0xc6)](0x2, '0');
|
|
1026
|
+
return _0x398857[_0x513837(_0x5ef450._0x503196)]() + '-' + _0x2c8d5b(_0x398857[_0x513837(0x10f)]() + 0x1) + '-' + _0x2c8d5b(_0x398857[_0x513837(_0x5ef450._0x57e0d6)]()) + '\x20' + _0x2c8d5b(_0x398857['getHours']()) + ':' + _0x2c8d5b(_0x398857[_0x513837(0xba)]()) + ':' + _0x2c8d5b(_0x398857[_0x513837(_0x5ef450._0x4be7a0)]());
|
|
1027
|
+
}
|
|
1028
|
+
function formatAttachmentSuffix(_0x49400a) {
|
|
1029
|
+
const _0x350eae = {
|
|
1030
|
+
_0x732b09: 0x101,
|
|
1031
|
+
_0x1b3e73: 0xe9,
|
|
1032
|
+
_0x3ec43a: 0x101,
|
|
1033
|
+
_0x220933: 0x1a8,
|
|
1034
|
+
_0x566f05: 0x214
|
|
1035
|
+
}, _0x333da8 = _0x58fa01;
|
|
1036
|
+
if (!_0x49400a || _0x49400a[_0x333da8(0x101)] === 0x0)
|
|
1037
|
+
return '';
|
|
1038
|
+
return '\x20[' + _0x49400a[_0x333da8(_0x350eae._0x732b09)] + _0x333da8(_0x350eae._0x1b3e73) + (_0x49400a[_0x333da8(_0x350eae._0x3ec43a)] > 0x1 ? 's' : '') + ':\x20' + _0x49400a[_0x333da8(_0x350eae._0x220933)](_0x5e6362 => _0x5e6362[_0x333da8(0x197)] + '\x20(id:' + _0x5e6362['id'] + ')')['join'](',\x20') + _0x333da8(_0x350eae._0x566f05);
|
|
1039
|
+
}
|
|
1040
|
+
function _0x4b2a() {
|
|
1041
|
+
const _0xc1e036 = [
|
|
1042
|
+
'DMfSDwu',
|
|
1043
|
+
'AxngAw5PDgu',
|
|
1044
|
+
'l3DVCMTLCNmVCgfYAW',
|
|
1045
|
+
'BM93',
|
|
1046
|
+
'C3rHDhvZ',
|
|
1047
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1048
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1049
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1050
|
+
'zNjVBq',
|
|
1051
|
+
'BNvTyMvY',
|
|
130
1052
|
'ls1Zzxj2zxiTDxjS',
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
1053
|
+
'igf0DgfJAg1LBNq',
|
|
1054
|
+
'zgf0yq',
|
|
1055
|
+
'D29YA2vYtw9Kzq',
|
|
1056
|
+
'Aw1Hz2uVD2vICa',
|
|
1057
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
1058
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1059
|
+
'CgfYDgLJAxbHBNq',
|
|
1060
|
+
'zxzLBNrtzxe',
|
|
1061
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1062
|
+
'DxbKyxrL',
|
|
1063
|
+
'zgvSzxrL',
|
|
1064
|
+
'zw51Bq',
|
|
1065
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
137
1066
|
'zw50CMLLCW',
|
|
138
|
-
'
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
1067
|
+
'nJC5mKjPzwPUtq',
|
|
1068
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1069
|
+
'Dg9KBW',
|
|
1070
|
+
'DgfZA051BwjLCG',
|
|
1071
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1072
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1073
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1074
|
+
'C2LNBMfS',
|
|
1075
|
+
'l3rHC2TZl2nSywLT',
|
|
1076
|
+
'y2HHBM5LBe5HBwu',
|
|
1077
|
+
'BgvUz3rO',
|
|
1078
|
+
'yMvMB3jL',
|
|
144
1079
|
'B3b0Aw9UywW',
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
1080
|
+
'DgHYzwfKvgfYz2v0',
|
|
1081
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1082
|
+
'BgLTAxq',
|
|
1083
|
+
'yxjNDG',
|
|
1084
|
+
'ig1ZzZ0',
|
|
1085
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1086
|
+
'BMv4Den1CNnVCG',
|
|
1087
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1088
|
+
'w3nLCt0',
|
|
149
1089
|
'ywjVCNq',
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
1090
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1091
|
+
'z2v0tw9UDgG',
|
|
1092
|
+
'DgvZDa',
|
|
1093
|
+
'ihrPBwu9',
|
|
1094
|
+
'y2HPBgrYzw5eB25L',
|
|
1095
|
+
'C3rYAw5NAwz5',
|
|
1096
|
+
'y2XHAw0GzMfPBgvK',
|
|
1097
|
+
'l3rHC2TZ',
|
|
1098
|
+
'AgLNAa',
|
|
160
1099
|
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
1100
|
+
'DgfZA0LK',
|
|
1101
|
+
'lsaJ',
|
|
1102
|
+
'C3rVCe1HAw4',
|
|
1103
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1104
|
+
'zgvZy3jPyMu',
|
|
1105
|
+
'BwvZC2fNzuLK',
|
|
1106
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1107
|
+
'DMLZAwjPBgL0Eq',
|
|
1108
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1109
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1110
|
+
'C2XPy2u',
|
|
1111
|
+
'l3rHC2TZpW',
|
|
1112
|
+
'C3rHCNrZv2L0Aa',
|
|
1113
|
+
'CgfYA193B3jRzxi',
|
|
1114
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1115
|
+
'yxnPzgu',
|
|
1116
|
+
'yxr0ywnOBwvUDhm',
|
|
1117
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1118
|
+
'CMvZDwX0sNnVBG',
|
|
1119
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1120
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1121
|
+
'BgLZDf9Zzxj2zxi',
|
|
1122
|
+
'C29Tzq',
|
|
164
1123
|
'DgfYz2v0zwq',
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
'
|
|
169
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
170
|
-
'BgvUz3rO',
|
|
171
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
172
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
173
|
-
'C2vUzgvYtMfTzq',
|
|
174
|
-
'Aw1Hz2uVCg5N',
|
|
175
|
-
'CgfYDgLJAxbHBNrjza',
|
|
176
|
-
'ignSywLTzwq',
|
|
177
|
-
'y2HLy2TnzxnZywDLCW',
|
|
1124
|
+
'yxr0ywnOBwvUDeLK',
|
|
1125
|
+
'Ahr0CdO',
|
|
1126
|
+
'DxbSB2fKx2zPBguGzMfPBgvK',
|
|
1127
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
178
1128
|
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
'
|
|
197
|
-
'
|
|
198
|
-
'
|
|
1129
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1130
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1131
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1132
|
+
'BMfTzq',
|
|
1133
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1134
|
+
'ywz0zxi',
|
|
1135
|
+
'C2vYDMvY',
|
|
1136
|
+
'C2f2zq',
|
|
1137
|
+
'DgfYz2v0zwruyxnR',
|
|
1138
|
+
'zgfLBw9UqxbPs2v5',
|
|
1139
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
1140
|
+
'AhjLzG',
|
|
1141
|
+
'Aw5KzxHpzG',
|
|
1142
|
+
'Aw5FChjVz3jLC3m',
|
|
1143
|
+
'y2XPzw50',
|
|
1144
|
+
'y2fJAgveAxi',
|
|
1145
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1146
|
+
'ANnVBG',
|
|
1147
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1148
|
+
'ktSGz290ignOyw5UzwW9',
|
|
199
1149
|
'CMvHzeHPC3rVCNK',
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
'
|
|
1150
|
+
'Bwf0y2Hoyw1L',
|
|
1151
|
+
'y2XHAw1uyxnRCW',
|
|
1152
|
+
'y2HHBM5LBhm',
|
|
1153
|
+
'mte0odq5nNzgqwTIyq',
|
|
1154
|
+
'zgvZy3jPChrPB24',
|
|
1155
|
+
'Dgv4Dc9WBgfPBG',
|
|
1156
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1157
|
+
'r0vu',
|
|
1158
|
+
'mJGZntu3merpyMP1Cq',
|
|
1159
|
+
'yxjYyxK',
|
|
1160
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1161
|
+
'xsba',
|
|
1162
|
+
'ihr5Cgu9ywDLBNq',
|
|
1163
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1164
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
1165
|
+
'ywrK',
|
|
1166
|
+
'lIbnzxnZywDLieLeoIa',
|
|
203
1167
|
'Dw5RBM93BG',
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
1168
|
+
'BwvKAxvT',
|
|
1169
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1170
|
+
'C2L6zuj5DgvZ',
|
|
1171
|
+
'Aw5FCMv2Awv3',
|
|
1172
|
+
'BwvZC2fNzv9Pzhm',
|
|
1173
|
+
'zMLSDgvY',
|
|
1174
|
+
'ndi5mZHftwjquM4',
|
|
1175
|
+
'zxjYB3i',
|
|
1176
|
+
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
1177
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1178
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1179
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1180
|
+
'm0j6tMnZyq',
|
|
1181
|
+
'D3nZoG',
|
|
1182
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1183
|
+
'mJC2odG1mhbQvNHwuW',
|
|
1184
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
208
1185
|
'AgfZtw9Yzq',
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'yxv0BZO',
|
|
213
|
-
'BMv4Den1CNnVCG',
|
|
214
|
-
'yxr0ywnOBwvUDhm',
|
|
215
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
216
|
-
'ywDNCMvNyxrLswq',
|
|
217
|
-
'CMvHC29U',
|
|
218
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
219
|
-
'C29YDa',
|
|
220
|
-
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
221
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
222
|
-
'lsaJ',
|
|
223
|
-
'DxnLCG',
|
|
224
|
-
'zMv0y2HjBxbS',
|
|
225
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
226
|
-
'DgfZA051BwjLCG',
|
|
227
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
228
|
-
'zgvZDhjVEwvK',
|
|
229
|
-
'lcbWCMv2Awv3pq',
|
|
230
|
-
'C2L6zq',
|
|
231
|
-
'ywjVCNrLza',
|
|
232
|
-
'kgXLz2fJEsK',
|
|
233
|
-
'AxngAwXL',
|
|
234
|
-
'sfruuca',
|
|
235
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
236
|
-
'w3rHCMDLDd0',
|
|
237
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
238
|
-
'D29YA19RzxK',
|
|
239
|
-
'C2v0',
|
|
240
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
241
|
-
'AxnbyNnVBhv0zq',
|
|
242
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
243
|
-
'yxr0ywnOBwvUDeLK',
|
|
244
|
-
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
245
|
-
'zM9Yy2vszwzYzxnO',
|
|
246
|
-
'mtbfswTHqMO',
|
|
247
|
-
'iIbUB3qGzM91BMq',
|
|
1186
|
+
'ChvZAa',
|
|
1187
|
+
'ChvIBgLJ',
|
|
1188
|
+
'DgHYzwfK',
|
|
248
1189
|
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
249
|
-
'ywz0zxjtzxe',
|
|
250
|
-
'l2nVBNrLBNq',
|
|
251
1190
|
'Dg9gAxHLza',
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
263
|
-
'
|
|
264
|
-
'
|
|
265
|
-
'
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'C2vUze1LC3nHz2u',
|
|
272
|
-
'BwvZC2fNzuLK',
|
|
273
|
-
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
274
|
-
'C2LNBMfS',
|
|
275
|
-
'DMfSDwvZ',
|
|
276
|
-
'DxbKyxrL',
|
|
277
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
278
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
279
|
-
'C3rYAw5N',
|
|
1191
|
+
'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
|
|
1192
|
+
'kgXLz2fJEsK',
|
|
1193
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1194
|
+
'vgfZAZOG',
|
|
1195
|
+
'C2L6zq',
|
|
1196
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1197
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1198
|
+
'BwvZC2fNzxm',
|
|
1199
|
+
'y3jLyxrLzef0',
|
|
1200
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1201
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1202
|
+
'Dg9VBa',
|
|
1203
|
+
'CgfYC2vjBNq',
|
|
1204
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1205
|
+
'y2HHBM5LBeLK',
|
|
1206
|
+
'z2v0vgLTzq',
|
|
1207
|
+
'Dw5JBgfPBvrHC2S',
|
|
1208
|
+
'iYmJiefNzw50CW',
|
|
1209
|
+
'Bwv0yq',
|
|
280
1210
|
'DhjPBq',
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'BwvZC2fNzxm',
|
|
285
|
-
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
286
|
-
'DgHYzwfKswq',
|
|
287
|
-
'ndyXngLKD3PrzG',
|
|
288
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1211
|
+
'C2vUzf9TzxnZywDL',
|
|
1212
|
+
'Cgf5Bg9HzePZB24',
|
|
1213
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
289
1214
|
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
290
|
-
'
|
|
1215
|
+
'l3vWBg9Hza',
|
|
1216
|
+
'khvUA25VD24P',
|
|
1217
|
+
'ihn0yxr1CZ0',
|
|
1218
|
+
'Dg9mB3DLCKnHC2u',
|
|
1219
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1220
|
+
'lMjPBG',
|
|
1221
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1222
|
+
'AhvTyw4',
|
|
1223
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1224
|
+
'ywDNCMvNyxrLswrZ',
|
|
1225
|
+
'Dg9ju09tDhjPBMC',
|
|
1226
|
+
'A2LUza',
|
|
1227
|
+
'zMLSzw5HBwu',
|
|
1228
|
+
'ig1LC3nHz2vZkqOk',
|
|
1229
|
+
'DgL0Bgu',
|
|
1230
|
+
'DxbSB2fKx2zPBgu',
|
|
1231
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1232
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1233
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1234
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1235
|
+
'igLUia',
|
|
1236
|
+
'DgHYzwfKtNvTyMvY',
|
|
1237
|
+
'DxnLCG',
|
|
1238
|
+
'BwvZC2fNzq',
|
|
1239
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1240
|
+
'l3n0yxj0',
|
|
1241
|
+
'zMv0y2HjBxbS',
|
|
1242
|
+
'zg0T',
|
|
1243
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1244
|
+
'BwfW',
|
|
1245
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1246
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1247
|
+
'igzHAwXLzdOG',
|
|
1248
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1249
|
+
'D29YA2vY',
|
|
1250
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1251
|
+
'AhvTyw5Z',
|
|
1252
|
+
'iYmJienOyw5UzwXZ',
|
|
1253
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
1254
|
+
'BgLZDfrHC2TZ',
|
|
1255
|
+
'C2vUzgvYtMfTzq',
|
|
1256
|
+
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
1257
|
+
'CMvZDwX0CW',
|
|
1258
|
+
'zMLUza',
|
|
1259
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1260
|
+
'DgHYzwfKswq',
|
|
1261
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
1262
|
+
'CMvHC29U',
|
|
1263
|
+
'z2v0rNvSBfLLyxi',
|
|
1264
|
+
'D29YA2vYCW',
|
|
1265
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1266
|
+
'D3m6',
|
|
1267
|
+
'DgfZAY0',
|
|
1268
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
1269
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1270
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1271
|
+
'yMfZzty0',
|
|
1272
|
+
'y2HHDa',
|
|
1273
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1274
|
+
'v29YA2vYici',
|
|
1275
|
+
'zxHWAxjLC0f0',
|
|
1276
|
+
'Aw1Hz2uVz2LM',
|
|
1277
|
+
'Dg9tDhjPBMC',
|
|
1278
|
+
'AxnbyNnVBhv0zq',
|
|
291
1279
|
'y29UDgvUDfr5Cgu',
|
|
292
|
-
'
|
|
1280
|
+
'sfruuca',
|
|
1281
|
+
'z2v0u2vJB25KCW',
|
|
1282
|
+
'z2v0',
|
|
1283
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1284
|
+
'Axnoyu4',
|
|
293
1285
|
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
294
|
-
'
|
|
295
|
-
'
|
|
296
|
-
'
|
|
297
|
-
'
|
|
1286
|
+
'zgLNzxn0',
|
|
1287
|
+
'ignSywLTzwq',
|
|
1288
|
+
'zMfSC2u',
|
|
1289
|
+
'zM9Yy2vszwzYzxnO',
|
|
298
1290
|
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
1291
|
+
'Agv4',
|
|
1292
|
+
'DMLLD19MAwXL',
|
|
1293
|
+
'zMLSzv9WyxrO',
|
|
1294
|
+
'kg5VBMuP',
|
|
1295
|
+
'C2v0',
|
|
1296
|
+
'C3bSAxq',
|
|
1297
|
+
'Aw1Hz2uVANbLzW',
|
|
1298
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1299
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
1300
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1301
|
+
'ntuZm1Pmr0X2yq',
|
|
307
1302
|
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
1303
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1304
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1305
|
+
'ue9tva',
|
|
1306
|
+
'y29UBMvJDa',
|
|
1307
|
+
'DxbSB2fKrMLSzq',
|
|
1308
|
+
'CxvLDwvK',
|
|
1309
|
+
'odrIrNvIr3K',
|
|
1310
|
+
'iYmGu2vYDMvYoIa',
|
|
1311
|
+
'zgLZCg9ZAxrPB24',
|
|
1312
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1313
|
+
'l3jLy2vPDMu/',
|
|
1314
|
+
'C2vZC2LVBKLK',
|
|
317
1315
|
'BgLZDf90yxnRCW',
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
1316
|
+
'DxjNzw50',
|
|
1317
|
+
'DhLWzq',
|
|
1318
|
+
'6k+35Rgcia',
|
|
1319
|
+
'ChjVDg9JB2W',
|
|
1320
|
+
'Aw5JBhvKzxm',
|
|
1321
|
+
'C3vJy2vZCW',
|
|
1322
|
+
'ywDLBNq',
|
|
1323
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1324
|
+
'mtu3BeXYsffu',
|
|
1325
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1326
|
+
'AM9PBG',
|
|
1327
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1328
|
+
'CMvXDwvZDfvYBa',
|
|
1329
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1330
|
+
'y2XHAw1FDgfZA3m',
|
|
1331
|
+
'ywDLBNrjza',
|
|
1332
|
+
'y3vYC29Y',
|
|
1333
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1334
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1335
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1336
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1337
|
+
'w3rHCMDLDd0',
|
|
1338
|
+
'ndi2ndH5u2z6wu8',
|
|
1339
|
+
'DxrMoa',
|
|
1340
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1341
|
+
'ywDLBNrZ',
|
|
1342
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1343
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVBwnWlMPZ',
|
|
1344
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
1345
|
+
'y2f0y2G',
|
|
326
1346
|
'zxH0BMfTzq',
|
|
327
|
-
'
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
331
|
-
'igTPBMq9',
|
|
332
|
-
'mtaZnJm2DvncC3zo',
|
|
333
|
-
'C2f2zq',
|
|
334
|
-
'y2XHAw0GzMfPBgvK',
|
|
335
|
-
'C2vUzgvYvhLWzq',
|
|
336
|
-
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1347
|
+
'mc4WlJa',
|
|
1348
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1349
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
337
1350
|
'DgfYz2v0',
|
|
338
|
-
'
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'zgf0yq',
|
|
344
|
-
'C3bSAxq',
|
|
345
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
346
|
-
'ls13B3jRzxiTBw9Kzq',
|
|
347
|
-
'y2XPzw50',
|
|
348
|
-
'rMLSzsb1CgXVywrLzdOG',
|
|
1351
|
+
'Dw5JBgfPBv90yxnR',
|
|
1352
|
+
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
1353
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1354
|
+
'l3nLCNzLCG',
|
|
1355
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
349
1356
|
'AxnjBNrLz2vY',
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'DgHYzwfKvgfYz2v0pq',
|
|
353
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
1357
|
+
'CNvUswq',
|
|
1358
|
+
'DgfZAYa',
|
|
354
1359
|
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'D3m6',
|
|
359
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
360
|
-
'Bgf0zxn0u2vX',
|
|
361
|
-
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
362
|
-
'yxr0ywnOBwvUDenHy2HL',
|
|
363
|
-
'DhLWzq',
|
|
364
|
-
'ls1Hz2vUDc1Pza',
|
|
365
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
366
|
-
'zgLZCg9ZAxrPB24',
|
|
367
|
-
'C29Tzq',
|
|
368
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
369
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
370
|
-
'mte5odHTyvjiqxG',
|
|
371
|
-
'zMfSC2u',
|
|
372
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
373
|
-
'yxr0ywnOBwvUDf9Pzhm',
|
|
374
|
-
'A2LUza',
|
|
375
|
-
'y2HHBM5LBhm',
|
|
376
|
-
'ywDLBNrZ',
|
|
377
|
-
'AhjLzG',
|
|
378
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
379
|
-
'D3nZoG',
|
|
380
|
-
'BwfW',
|
|
381
|
-
'l2HPC3rVCNK/',
|
|
382
|
-
'mZrJvMfmq0W',
|
|
383
|
-
'nti5odK3ogXfEhrABW',
|
|
384
|
-
'CMvZCg9UC2u',
|
|
385
|
-
'AM9PBG',
|
|
386
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
387
|
-
'Dgv4Dc9JC3y',
|
|
388
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
389
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
390
|
-
'CMvWBgfJzq',
|
|
391
|
-
'y3jLyxrLzef0',
|
|
392
|
-
'ue9tva',
|
|
393
|
-
'uefuq0G',
|
|
394
|
-
'tM8GDgfZA3mGzM91BMqU',
|
|
1360
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1361
|
+
'l3jLy2vPDMu',
|
|
1362
|
+
'mtGZote1BKvowefI',
|
|
395
1363
|
'zg93BMXVywrbDhrHy2HTzw50',
|
|
396
|
-
'
|
|
397
|
-
'
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'
|
|
412
|
-
'zMLUza',
|
|
413
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1364
|
+
'AgfZ',
|
|
1365
|
+
'AgvHzgvYCW',
|
|
1366
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1367
|
+
'ywrKrxzLBNrmAxn0zw5LCG',
|
|
1368
|
+
'cGOTls0G',
|
|
1369
|
+
'zg06',
|
|
1370
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1371
|
+
'BwfPBG',
|
|
1372
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1373
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1374
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1375
|
+
'v29YA2vYia',
|
|
1376
|
+
'Bg93',
|
|
1377
|
+
'AxnbCNjHEq',
|
|
1378
|
+
'B2jQzwn0',
|
|
1379
|
+
'BwvTyMvYCW',
|
|
414
1380
|
'D29YA2vYsgfUzg9MzG',
|
|
415
|
-
'
|
|
416
|
-
'
|
|
417
|
-
'
|
|
1381
|
+
'zgvZDhjVEwvK',
|
|
1382
|
+
'mJaWEgPgtKro',
|
|
1383
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1384
|
+
'DgfZA19Pza',
|
|
1385
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1386
|
+
'z2v0rgf0zq',
|
|
1387
|
+
'ywz0zxjtzxe',
|
|
1388
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1389
|
+
'yxjYyxLcDwzMzxi',
|
|
1390
|
+
'CMvJB3jK',
|
|
1391
|
+
'C3rYAw5N',
|
|
1392
|
+
'D29YA19RzxK',
|
|
1393
|
+
'zg9Uzq',
|
|
1394
|
+
'igTPBMq9',
|
|
1395
|
+
'C3rHCNrLza',
|
|
1396
|
+
'C3vIDgfZA051BwjLCG',
|
|
1397
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
1398
|
+
'y3jLyxrLvgfZA3m',
|
|
1399
|
+
'DgfZAW',
|
|
1400
|
+
'BwLU',
|
|
1401
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1402
|
+
'ywXS',
|
|
1403
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1404
|
+
'z2v0twLUDxrLCW',
|
|
1405
|
+
'CMvWBgfJzq',
|
|
1406
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1407
|
+
'lsba',
|
|
1408
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
1409
|
+
'BwvTyMvY',
|
|
1410
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1411
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1412
|
+
'CNvUBMLUzW',
|
|
1413
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1414
|
+
'DgfZA3m',
|
|
1415
|
+
'C2vUze1LC3nHz2u',
|
|
418
1416
|
'CgfKu3rHCNq',
|
|
419
|
-
'
|
|
1417
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1418
|
+
'Aw1Hz2uVCg5N',
|
|
1419
|
+
'C2vX',
|
|
1420
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1421
|
+
'lMrZy29Yza',
|
|
1422
|
+
'y29UDgvUDa',
|
|
1423
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1424
|
+
'ywDNCMvNyxrLswq',
|
|
1425
|
+
'Bwf4',
|
|
1426
|
+
'C29YDa',
|
|
1427
|
+
'CMvHzf9OAxn0B3j5',
|
|
1428
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1429
|
+
'y2HHBM5LBa',
|
|
1430
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
420
1431
|
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
421
|
-
'
|
|
422
|
-
'
|
|
423
|
-
'
|
|
424
|
-
'
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
428
|
-
'
|
|
429
|
-
'DxrMoa',
|
|
430
|
-
'yxnPzgu',
|
|
431
|
-
'xsba',
|
|
432
|
-
'z2v0twLUDxrLCW',
|
|
433
|
-
'DgL0Bgu',
|
|
434
|
-
'B3jPz2LUywXgAwXLBMfTzq'
|
|
1432
|
+
'yM9KEu1HCMTKB3DU',
|
|
1433
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1434
|
+
'iJOGC3rHDhvZpq',
|
|
1435
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1436
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1437
|
+
'ig1LC3nHz2u9',
|
|
1438
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1439
|
+
'Ahr0Chm6'
|
|
435
1440
|
];
|
|
436
|
-
|
|
437
|
-
return
|
|
1441
|
+
_0x4b2a = function () {
|
|
1442
|
+
return _0xc1e036;
|
|
438
1443
|
};
|
|
439
|
-
return
|
|
1444
|
+
return _0x4b2a();
|
|
440
1445
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
1446
|
+
function formatCheckMessages(_0x1ed7a5) {
|
|
1447
|
+
const _0x24b776 = {
|
|
1448
|
+
_0x14c0c0: 0x204,
|
|
1449
|
+
_0x179cef: 0x1a8
|
|
1450
|
+
}, _0x45b178 = {
|
|
1451
|
+
_0x1b9945: 0x205,
|
|
1452
|
+
_0xd1dc6c: 0x11d
|
|
1453
|
+
}, _0x62cf50 = _0x58fa01;
|
|
1454
|
+
if (_0x1ed7a5[_0x62cf50(0x101)] === 0x0)
|
|
1455
|
+
return _0x62cf50(_0x24b776._0x14c0c0);
|
|
1456
|
+
return _0x1ed7a5[_0x62cf50(_0x24b776._0x179cef)](_0x1435ed => {
|
|
1457
|
+
const _0x5da129 = _0x62cf50, _0x253fcc = _0x1435ed['senderType'] === _0x5da129(0x1f6) ? _0x5da129(0x156) : '', _0x3934c9 = _0x1435ed[_0x5da129(0x196)] && _0x1435ed['kind'] !== _0x5da129(0x1c4) ? '\x20kind=' + _0x1435ed['kind'] : '';
|
|
1458
|
+
return _0x5da129(_0x45b178._0x1b9945) + _0x1435ed[_0x5da129(0x212)] + _0x5da129(0x108) + _0x1435ed[_0x5da129(_0x45b178._0xd1dc6c)][_0x5da129(0x122)](0x0, 0x8) + _0x5da129(0x111) + toLocalTime(_0x1435ed['createdAt']) + _0x253fcc + _0x3934c9 + _0x5da129(0x155) + _0x1435ed['senderName'] + ':\x20' + _0x1435ed[_0x5da129(0xcc)] + formatAttachmentSuffix(_0x1435ed[_0x5da129(0x128)]);
|
|
1459
|
+
})[_0x62cf50(0x1fa)]('\x0a');
|
|
1460
|
+
}
|
|
1461
|
+
function _0x3f6e(_0x5746bf, _0x5c2d58) {
|
|
1462
|
+
_0x5746bf = _0x5746bf - 0xb8;
|
|
1463
|
+
const _0x4b2a72 = _0x4b2a();
|
|
1464
|
+
let _0x3f6e3f = _0x4b2a72[_0x5746bf];
|
|
1465
|
+
if (_0x3f6e['wtSovc'] === undefined) {
|
|
1466
|
+
var _0x48c76 = function (_0x3bc943) {
|
|
1467
|
+
const _0x9920b9 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1468
|
+
let _0x7cf118 = '', _0x3bc7a0 = '';
|
|
1469
|
+
for (let _0x4dbb13 = 0x0, _0x296d0e, _0x4995be, _0x3b09c5 = 0x0; _0x4995be = _0x3bc943['charAt'](_0x3b09c5++); ~_0x4995be && (_0x296d0e = _0x4dbb13 % 0x4 ? _0x296d0e * 0x40 + _0x4995be : _0x4995be, _0x4dbb13++ % 0x4) ? _0x7cf118 += String['fromCharCode'](0xff & _0x296d0e >> (-0x2 * _0x4dbb13 & 0x6)) : 0x0) {
|
|
1470
|
+
_0x4995be = _0x9920b9['indexOf'](_0x4995be);
|
|
451
1471
|
}
|
|
452
|
-
for (let
|
|
453
|
-
|
|
1472
|
+
for (let _0x5f4df0 = 0x0, _0xaf1ef = _0x7cf118['length']; _0x5f4df0 < _0xaf1ef; _0x5f4df0++) {
|
|
1473
|
+
_0x3bc7a0 += '%' + ('00' + _0x7cf118['charCodeAt'](_0x5f4df0)['toString'](0x10))['slice'](-0x2);
|
|
454
1474
|
}
|
|
455
|
-
return decodeURIComponent(
|
|
456
|
-
};
|
|
457
|
-
_0x355a['CNTcXr'] = _0x57dd42, _0x355a['WITemE'] = {}, _0x355a['kpbAtO'] = !![];
|
|
458
|
-
}
|
|
459
|
-
const _0x3a5664 = _0x2c5cdd[0x0], _0x373a41 = _0x5f470c + _0x3a5664, _0x44162a = _0x355a['WITemE'][_0x373a41];
|
|
460
|
-
return !_0x44162a ? (_0x355aca = _0x355a['CNTcXr'](_0x355aca), _0x355a['WITemE'][_0x373a41] = _0x355aca) : _0x355aca = _0x44162a, _0x355aca;
|
|
461
|
-
}
|
|
462
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
463
|
-
'.csv': _0x2869e3(0x2b7),
|
|
464
|
-
'.gif': 'image/gif',
|
|
465
|
-
'.jpeg': _0x2869e3(0x19f),
|
|
466
|
-
'.jpg': _0x2869e3(0x19f),
|
|
467
|
-
'.json': 'application/json',
|
|
468
|
-
'.md': 'text/markdown',
|
|
469
|
-
'.pdf': _0x2869e3(0x2cd),
|
|
470
|
-
'.png': _0x2869e3(0x1e2),
|
|
471
|
-
'.svg': _0x2869e3(0x2b8),
|
|
472
|
-
'.txt': _0x2869e3(0x1d6),
|
|
473
|
-
'.webp': _0x2869e3(0x2c5),
|
|
474
|
-
'.xml': _0x2869e3(0x2f9),
|
|
475
|
-
'.zip': _0x2869e3(0x221)
|
|
476
|
-
};
|
|
477
|
-
function guessContentType(_0x3f2382) {
|
|
478
|
-
const _0x44eba1 = { _0xe18630: 0x304 }, _0x200fc6 = _0x2869e3;
|
|
479
|
-
return MIME_BY_EXTENSION[_0x40ff1a[_0x200fc6(0x27a)](_0x3f2382)[_0x200fc6(_0x44eba1._0xe18630)]()] ?? 'application/octet-stream';
|
|
480
|
-
}
|
|
481
|
-
function safeFilename(_0x1e4bb0) {
|
|
482
|
-
const _0x20862e = _0x2869e3;
|
|
483
|
-
return _0x1e4bb0[_0x20862e(0x2ba)](/[\\/]/g, '-');
|
|
484
|
-
}
|
|
485
|
-
function extensionFor(_0x2fb04b) {
|
|
486
|
-
const _0x3e004a = { _0x3ce397: 0x1bd }, _0x5ead75 = _0x2869e3, _0x1ecc76 = Object[_0x5ead75(_0x3e004a._0x3ce397)](MIME_BY_EXTENSION)[_0x5ead75(0x2d0)](([, _0x5e4ce8]) => _0x5e4ce8 === _0x2fb04b);
|
|
487
|
-
return _0x1ecc76?.[0x0] ?? _0x5ead75(0x237);
|
|
488
|
-
}
|
|
489
|
-
async function prepareUploadFile(_0x1c7101, _0x4bb0a5 = {}) {
|
|
490
|
-
const _0x376178 = {
|
|
491
|
-
_0x474d67: 0x305,
|
|
492
|
-
_0x5845d6: 0x297,
|
|
493
|
-
_0x5794f4: 0x1b0
|
|
494
|
-
}, _0x97f84 = _0x2869e3;
|
|
495
|
-
if (!_0x40ff1a[_0x97f84(0x225)](_0x1c7101))
|
|
496
|
-
throw new Error(_0x97f84(0x17f));
|
|
497
|
-
const _0x4b6e10 = await stat(_0x1c7101)['catch'](() => null);
|
|
498
|
-
if (!_0x4b6e10 || !_0x4b6e10[_0x97f84(0x21d)]())
|
|
499
|
-
throw new Error(_0x97f84(_0x376178._0x474d67) + _0x1c7101);
|
|
500
|
-
const _0x53d29c = _0x4bb0a5[_0x97f84(_0x376178._0x5845d6)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
501
|
-
if (_0x4b6e10['size'] > _0x53d29c)
|
|
502
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x4b6e10[_0x97f84(0x21a)]);
|
|
503
|
-
const _0x30788c = await readFile(_0x1c7101), _0x470faa = _0x40ff1a[_0x97f84(_0x376178._0x5794f4)](_0x1c7101);
|
|
504
|
-
return {
|
|
505
|
-
'contentBase64': _0x30788c[_0x97f84(0x2dc)](_0x97f84(0x1b2)),
|
|
506
|
-
'contentType': guessContentType(_0x470faa),
|
|
507
|
-
'filename': _0x470faa,
|
|
508
|
-
'sizeBytes': _0x4b6e10[_0x97f84(0x21a)]
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
function createAttachmentCache(_0x59b61d = {}) {
|
|
512
|
-
const _0x1adf7f = {
|
|
513
|
-
_0x144023: 0x2e6,
|
|
514
|
-
_0x12aa20: 0x227
|
|
515
|
-
}, _0x5e9ae9 = { _0x39fdbd: 0x2b5 }, _0x52246d = _0x2869e3, _0xedfc7b = _0x59b61d['cacheDir'] ?? _0x40ff1a['join'](homedir(), '.dscord', _0x52246d(0x20a));
|
|
516
|
-
return {
|
|
517
|
-
'cacheDir': _0xedfc7b,
|
|
518
|
-
async 'findCachedPath'(_0x1724b8) {
|
|
519
|
-
const _0x484247 = _0x52246d;
|
|
520
|
-
await mkdir(_0xedfc7b, { 'recursive': !![] });
|
|
521
|
-
const _0x325d43 = await readdir(_0xedfc7b), _0x40b50e = _0x325d43['find'](_0x43ffca => _0x43ffca[_0x484247(0x1a9)](_0x1724b8 + '-') || _0x43ffca[_0x484247(0x1a9)](_0x1724b8));
|
|
522
|
-
return _0x40b50e ? _0x40ff1a[_0x484247(_0x5e9ae9._0x39fdbd)](_0xedfc7b, _0x40b50e) : null;
|
|
523
|
-
},
|
|
524
|
-
async 'save'(_0x49ae21) {
|
|
525
|
-
const _0x5a98fb = _0x52246d;
|
|
526
|
-
await mkdir(_0xedfc7b, { 'recursive': !![] });
|
|
527
|
-
const _0x56e425 = _0x49ae21[_0x5a98fb(_0x1adf7f._0x144023)]?.[_0x5a98fb(0x24c)]() ? safeFilename(_0x49ae21['originalFilename']) : '' + _0x49ae21[_0x5a98fb(0x227)] + extensionFor(_0x49ae21['contentType']), _0x2fcd5a = _0x40ff1a['join'](_0xedfc7b, _0x49ae21[_0x5a98fb(_0x1adf7f._0x12aa20)] + '-' + _0x56e425);
|
|
528
|
-
return await writeFile(_0x2fcd5a, _0x49ae21[_0x5a98fb(0x28b)]), _0x2fcd5a;
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
import {
|
|
533
|
-
createHash,
|
|
534
|
-
randomUUID
|
|
535
|
-
} from 'node:crypto';
|
|
536
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x2869e3(0x20e);
|
|
537
|
-
function ensureSegment(_0x2bf25a) {
|
|
538
|
-
const _0x3c6851 = { _0x46ae5c: 0x24c }, _0x21ca8b = _0x2869e3, _0x148b3f = _0x2bf25a[_0x21ca8b(_0x3c6851._0x46ae5c)]();
|
|
539
|
-
if (!_0x148b3f || _0x148b3f[_0x21ca8b(0x182)](':'))
|
|
540
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
541
|
-
return _0x148b3f;
|
|
542
|
-
}
|
|
543
|
-
function parseThreadParts(_0x316c70) {
|
|
544
|
-
const _0x514d53 = _0x2869e3, _0x499adc = _0x316c70[_0x514d53(0x28c)](':');
|
|
545
|
-
if (_0x499adc['length'] < 0x1 || _0x499adc[_0x514d53(0x1de)] > 0x2)
|
|
546
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
547
|
-
return {
|
|
548
|
-
'channelName': ensureSegment(_0x499adc[0x0] ?? ''),
|
|
549
|
-
'threadShortId': _0x499adc[0x1] ? ensureSegment(_0x499adc[0x1]) : null
|
|
550
|
-
};
|
|
551
|
-
}
|
|
552
|
-
function parseTarget(_0x473680) {
|
|
553
|
-
const _0x5e9b97 = {
|
|
554
|
-
_0x1df5a0: 0x24c,
|
|
555
|
-
_0xc9e4de: 0x1a9,
|
|
556
|
-
_0x437668: 0x231,
|
|
557
|
-
_0x337a31: 0x1e7,
|
|
558
|
-
_0x3343b6: 0x288,
|
|
559
|
-
_0x18497e: 0x1bc,
|
|
560
|
-
_0x4bf678: 0x1d1,
|
|
561
|
-
_0x5cccb5: 0x23f,
|
|
562
|
-
_0x49523d: 0x188,
|
|
563
|
-
_0x45622a: 0x288,
|
|
564
|
-
_0x1c8fc9: 0x1bc
|
|
565
|
-
}, _0x5eb34a = _0x2869e3, _0x442014 = _0x473680[_0x5eb34a(_0x5e9b97._0x1df5a0)]();
|
|
566
|
-
if (!_0x442014)
|
|
567
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
568
|
-
if (_0x442014[_0x5eb34a(_0x5e9b97._0xc9e4de)]('#')) {
|
|
569
|
-
const _0x2cdf3e = parseThreadParts(_0x442014[_0x5eb34a(_0x5e9b97._0x437668)](0x1)), _0x1d3401 = '#' + _0x2cdf3e['channelName'];
|
|
570
|
-
if (!_0x2cdf3e[_0x5eb34a(0x1bc)])
|
|
571
|
-
return {
|
|
572
|
-
'channelName': _0x2cdf3e[_0x5eb34a(0x1e7)],
|
|
573
|
-
'channelTarget': _0x1d3401,
|
|
574
|
-
'kind': 'channel',
|
|
575
|
-
'target': _0x1d3401
|
|
576
|
-
};
|
|
577
|
-
return {
|
|
578
|
-
'channelName': _0x2cdf3e[_0x5eb34a(_0x5e9b97._0x337a31)],
|
|
579
|
-
'channelTarget': _0x1d3401,
|
|
580
|
-
'kind': _0x5eb34a(_0x5e9b97._0x3343b6),
|
|
581
|
-
'target': _0x1d3401 + ':' + _0x2cdf3e[_0x5eb34a(_0x5e9b97._0x18497e)],
|
|
582
|
-
'threadShortId': _0x2cdf3e[_0x5eb34a(0x1bc)]
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
if (_0x442014['startsWith']('dm:')) {
|
|
586
|
-
const _0x5539c7 = parseThreadParts(_0x442014[_0x5eb34a(0x231)](0x3));
|
|
587
|
-
if (!_0x5539c7['channelName']['startsWith'](_0x5eb34a(_0x5e9b97._0x4bf678)))
|
|
588
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
589
|
-
const _0x34d5df = _0x5eb34a(_0x5e9b97._0x5cccb5) + _0x5539c7[_0x5eb34a(0x1e7)];
|
|
590
|
-
if (!_0x5539c7['threadShortId'])
|
|
591
|
-
return {
|
|
592
|
-
'channelName': _0x5539c7['channelName'],
|
|
593
|
-
'channelTarget': _0x34d5df,
|
|
594
|
-
'kind': _0x5eb34a(_0x5e9b97._0x49523d),
|
|
595
|
-
'target': _0x34d5df
|
|
596
|
-
};
|
|
597
|
-
return {
|
|
598
|
-
'channelName': _0x5539c7[_0x5eb34a(0x1e7)],
|
|
599
|
-
'channelTarget': _0x34d5df,
|
|
600
|
-
'kind': _0x5eb34a(_0x5e9b97._0x45622a),
|
|
601
|
-
'target': _0x34d5df + ':' + _0x5539c7[_0x5eb34a(_0x5e9b97._0x1c8fc9)],
|
|
602
|
-
'threadShortId': _0x5539c7[_0x5eb34a(0x1bc)]
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
606
|
-
}
|
|
607
|
-
function asErrorMessage(_0x11d7de, _0x5ad964) {
|
|
608
|
-
const _0x5133b2 = { _0x3df1cb: 0x24c }, _0xb92643 = _0x2869e3;
|
|
609
|
-
if (typeof _0x11d7de === _0xb92643(0x24b) && _0x11d7de[_0xb92643(_0x5133b2._0x3df1cb)]())
|
|
610
|
-
return _0x11d7de;
|
|
611
|
-
return _0x5ad964;
|
|
612
|
-
}
|
|
613
|
-
function asRecord(_0x44d096) {
|
|
614
|
-
const _0x1bcbc1 = _0x2869e3;
|
|
615
|
-
return typeof _0x44d096 === _0x1bcbc1(0x1d5) && _0x44d096 !== null ? _0x44d096 : {};
|
|
616
|
-
}
|
|
617
|
-
function stableStringify(_0x435e88) {
|
|
618
|
-
const _0x4fbeea = {
|
|
619
|
-
_0x70f7cd: 0x1ba,
|
|
620
|
-
_0x2adaa4: 0x2b5,
|
|
621
|
-
_0x4a7e8d: 0x20f
|
|
622
|
-
}, _0x3fe34b = _0x2869e3;
|
|
623
|
-
if (_0x435e88 === null || typeof _0x435e88 !== 'object')
|
|
624
|
-
return JSON[_0x3fe34b(_0x4fbeea._0x70f7cd)](_0x435e88);
|
|
625
|
-
if (Array['isArray'](_0x435e88))
|
|
626
|
-
return '[' + _0x435e88[_0x3fe34b(0x2b0)](_0x1789ff => stableStringify(_0x1789ff))[_0x3fe34b(_0x4fbeea._0x2adaa4)](',') + ']';
|
|
627
|
-
const _0x344eae = Object[_0x3fe34b(0x1bd)](_0x435e88)[_0x3fe34b(0x27b)](([, _0x36d979]) => _0x36d979 !== void 0x0)[_0x3fe34b(_0x4fbeea._0x4a7e8d)](([_0x57bc2c], [_0x1d49f2]) => _0x57bc2c[_0x3fe34b(0x1b5)](_0x1d49f2))[_0x3fe34b(0x2b0)](([_0x1d5289, _0x9fd737]) => JSON[_0x3fe34b(0x1ba)](_0x1d5289) + ':' + stableStringify(_0x9fd737));
|
|
628
|
-
return '{' + _0x344eae[_0x3fe34b(0x2b5)](',') + '}';
|
|
629
|
-
}
|
|
630
|
-
function createHeaders(_0x3ba942) {
|
|
631
|
-
const _0x13ffab = _0x2869e3;
|
|
632
|
-
return {
|
|
633
|
-
'Content-Type': _0x13ffab(0x1f4),
|
|
634
|
-
'x-daemon-api-key': _0x3ba942
|
|
635
|
-
};
|
|
636
|
-
}
|
|
637
|
-
function toHttpBaseUrl(_0x3b1963) {
|
|
638
|
-
const _0x32313c = {
|
|
639
|
-
_0x1f08f4: 0x2ca,
|
|
640
|
-
_0xf3e6ec: 0x2ca,
|
|
641
|
-
_0x4847a1: 0x2dc,
|
|
642
|
-
_0x67afb4: 0x2ba
|
|
643
|
-
}, _0x3328d2 = _0x2869e3, _0x5594a9 = new URL(_0x3b1963);
|
|
644
|
-
if (_0x5594a9[_0x3328d2(_0x32313c._0x1f08f4)] === _0x3328d2(0x29a))
|
|
645
|
-
_0x5594a9[_0x3328d2(0x2ca)] = 'http:';
|
|
646
|
-
else
|
|
647
|
-
_0x5594a9[_0x3328d2(_0x32313c._0xf3e6ec)] === _0x3328d2(0x2af) && (_0x5594a9[_0x3328d2(_0x32313c._0xf3e6ec)] = 'https:');
|
|
648
|
-
return _0x5594a9[_0x3328d2(_0x32313c._0x4847a1)]()[_0x3328d2(_0x32313c._0x67afb4)](/\/$/, '');
|
|
649
|
-
}
|
|
650
|
-
function isMentionBoundary(_0x1b4362) {
|
|
651
|
-
const _0x236d84 = _0x2869e3;
|
|
652
|
-
return !_0x1b4362 || /\s|[([{'",。!?、:;]/[_0x236d84(0x1b8)](_0x1b4362);
|
|
653
|
-
}
|
|
654
|
-
function isMentionTerminal(_0x15a07e) {
|
|
655
|
-
return !_0x15a07e || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x15a07e);
|
|
656
|
-
}
|
|
657
|
-
function buildMatchableEntries(_0x33551f) {
|
|
658
|
-
const _0x31e882 = {
|
|
659
|
-
_0x38c2c9: 0x2c3,
|
|
660
|
-
_0x2cb4df: 0x18f
|
|
661
|
-
}, _0x5222a2 = _0x2869e3, _0x466f34 = [];
|
|
662
|
-
for (const _0x8a69f1 of [
|
|
663
|
-
..._0x33551f[_0x5222a2(0x2ac)],
|
|
664
|
-
..._0x33551f['humans']
|
|
665
|
-
]) {
|
|
666
|
-
_0x466f34[_0x5222a2(0x1eb)]({
|
|
667
|
-
'matchName': _0x8a69f1[_0x5222a2(0x2c3)],
|
|
668
|
-
'matchNameLower': _0x8a69f1[_0x5222a2(0x2c3)]['toLocaleLowerCase'](),
|
|
669
|
-
'participantId': _0x8a69f1['id']
|
|
670
|
-
}), _0x8a69f1['id'] !== _0x8a69f1[_0x5222a2(_0x31e882._0x38c2c9)] && _0x466f34[_0x5222a2(0x1eb)]({
|
|
671
|
-
'matchName': _0x8a69f1['id'],
|
|
672
|
-
'matchNameLower': _0x8a69f1['id'][_0x5222a2(_0x31e882._0x2cb4df)](),
|
|
673
|
-
'participantId': _0x8a69f1['id']
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
return _0x466f34;
|
|
677
|
-
}
|
|
678
|
-
function extractMentionedParticipantIds(_0x39f9e9, _0x855f7f) {
|
|
679
|
-
const _0xf83848 = {
|
|
680
|
-
_0x5c329c: 0x1de,
|
|
681
|
-
_0x1d79d0: 0x231,
|
|
682
|
-
_0x229f5e: 0x18f,
|
|
683
|
-
_0x3d6efb: 0x1af,
|
|
684
|
-
_0x12cb41: 0x1eb,
|
|
685
|
-
_0x50f31e: 0x1f0
|
|
686
|
-
}, _0x40f660 = _0x2869e3, _0x17035f = buildMatchableEntries(_0x855f7f)[_0x40f660(0x20f)]((_0x583533, _0x1224da) => _0x1224da[_0x40f660(0x1f0)][_0x40f660(0x1de)] - _0x583533[_0x40f660(0x1f0)][_0x40f660(0x1de)]), _0x21d3f8 = [], _0x35a3e3 = new Set();
|
|
687
|
-
for (let _0x41a63c = 0x0; _0x41a63c < _0x39f9e9[_0x40f660(_0xf83848._0x5c329c)]; _0x41a63c += 0x1) {
|
|
688
|
-
if (_0x39f9e9[_0x41a63c] !== '@' || !isMentionBoundary(_0x39f9e9[_0x41a63c - 0x1]))
|
|
689
|
-
continue;
|
|
690
|
-
const _0xbffd99 = _0x39f9e9[_0x40f660(_0xf83848._0x1d79d0)](_0x41a63c + 0x1), _0x1d805a = _0xbffd99[_0x40f660(_0xf83848._0x229f5e)](), _0x1b9f87 = _0x17035f[_0x40f660(0x2d0)](_0x29e062 => {
|
|
691
|
-
const _0x35ac7b = _0x40f660;
|
|
692
|
-
if (!_0x1d805a[_0x35ac7b(0x1a9)](_0x29e062[_0x35ac7b(0x2a5)]))
|
|
693
|
-
return ![];
|
|
694
|
-
return isMentionTerminal(_0xbffd99[_0x29e062['matchName'][_0x35ac7b(0x1de)]]);
|
|
695
|
-
});
|
|
696
|
-
if (!_0x1b9f87 || _0x35a3e3[_0x40f660(0x1da)](_0x1b9f87['participantId']))
|
|
697
|
-
continue;
|
|
698
|
-
_0x35a3e3[_0x40f660(_0xf83848._0x3d6efb)](_0x1b9f87[_0x40f660(0x1e3)]), _0x21d3f8[_0x40f660(_0xf83848._0x12cb41)](_0x1b9f87[_0x40f660(0x1e3)]), _0x41a63c += _0x1b9f87[_0x40f660(_0xf83848._0x50f31e)]['length'];
|
|
699
|
-
}
|
|
700
|
-
return _0x21d3f8;
|
|
701
|
-
}
|
|
702
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
703
|
-
function anySignal(..._0x2aabec) {
|
|
704
|
-
const _0x28aef1 = {
|
|
705
|
-
_0x50655d: 0x246,
|
|
706
|
-
_0x5e2361: 0x1ea
|
|
707
|
-
}, _0x3d259e = _0x2869e3, _0x205cfe = new AbortController();
|
|
708
|
-
for (const _0x9dca44 of _0x2aabec) {
|
|
709
|
-
if (_0x9dca44[_0x3d259e(0x21b)])
|
|
710
|
-
return _0x205cfe['abort'](_0x9dca44[_0x3d259e(0x20d)]), _0x205cfe[_0x3d259e(_0x28aef1._0x50655d)];
|
|
711
|
-
_0x9dca44[_0x3d259e(_0x28aef1._0x5e2361)]('abort', () => _0x205cfe[_0x3d259e(0x1c9)](_0x9dca44['reason']), {
|
|
712
|
-
'once': !![],
|
|
713
|
-
'signal': _0x205cfe['signal']
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
return _0x205cfe[_0x3d259e(_0x28aef1._0x50655d)];
|
|
717
|
-
}
|
|
718
|
-
function createInternalAgentClient(_0x197643) {
|
|
719
|
-
const _0xc89b44 = {
|
|
720
|
-
_0x5d2d88: 0x1f2,
|
|
721
|
-
_0x597d2b: 0x292,
|
|
722
|
-
_0x554900: 0x24c,
|
|
723
|
-
_0x142f2c: 0x27c,
|
|
724
|
-
_0x518f3f: 0x187
|
|
725
|
-
}, _0x3878f7 = {
|
|
726
|
-
_0x50f31a: 0x223,
|
|
727
|
-
_0x249357: 0x2f5,
|
|
728
|
-
_0x34586c: 0x28b,
|
|
729
|
-
_0x5ad3a2: 0x269,
|
|
730
|
-
_0x97af5f: 0x27b,
|
|
731
|
-
_0x33cca8: 0x2c6,
|
|
732
|
-
_0x4b619a: 0x1de,
|
|
733
|
-
_0x5730d3: 0x23e,
|
|
734
|
-
_0x261ef1: 0x1de,
|
|
735
|
-
_0x2a0a14: 0x23e,
|
|
736
|
-
_0x4ddc0d: 0x2a3,
|
|
737
|
-
_0x1f7599: 0x26f,
|
|
738
|
-
_0x51e308: 0x1f2,
|
|
739
|
-
_0x150f43: 0x1ac,
|
|
740
|
-
_0x271177: 0x272,
|
|
741
|
-
_0x405578: 0x1bd,
|
|
742
|
-
_0x1a0639: 0x223,
|
|
743
|
-
_0x27cd82: 0x247,
|
|
744
|
-
_0x32fb4b: 0x2c3,
|
|
745
|
-
_0x3f457e: 0x23f,
|
|
746
|
-
_0x567c1a: 0x2b0,
|
|
747
|
-
_0x394e3d: 0x268,
|
|
748
|
-
_0x4e3572: 0x24b
|
|
749
|
-
}, _0x511f33 = {
|
|
750
|
-
_0x4bb8bf: 0x188,
|
|
751
|
-
_0x22fe52: 0x1a2,
|
|
752
|
-
_0x477d6b: 0x2c7,
|
|
753
|
-
_0x6fe7a7: 0x252
|
|
754
|
-
}, _0x4b9dab = {
|
|
755
|
-
_0x1308b3: 0x2c7,
|
|
756
|
-
_0x35c5dc: 0x265,
|
|
757
|
-
_0x37fa34: 0x2dc
|
|
758
|
-
}, _0x467253 = {
|
|
759
|
-
_0x44c03c: 0x255,
|
|
760
|
-
_0x1cb2c4: 0x28a,
|
|
761
|
-
_0x49576f: 0x255,
|
|
762
|
-
_0x17f23e: 0x22e,
|
|
763
|
-
_0x381139: 0x28a,
|
|
764
|
-
_0x2f2c60: 0x17b,
|
|
765
|
-
_0x48cebf: 0x1a1,
|
|
766
|
-
_0x4fa3b4: 0x274,
|
|
767
|
-
_0x4429b7: 0x2e6
|
|
768
|
-
}, _0x236892 = {
|
|
769
|
-
_0x2fd404: 0x188,
|
|
770
|
-
_0x63117f: 0x252,
|
|
771
|
-
_0x2907fb: 0x2f5,
|
|
772
|
-
_0x46226b: 0x285,
|
|
773
|
-
_0x131759: 0x19a,
|
|
774
|
-
_0xdce5ae: 0x28b,
|
|
775
|
-
_0x1e2e70: 0x2ef
|
|
776
|
-
}, _0x3a34f9 = {
|
|
777
|
-
_0x5457eb: 0x226,
|
|
778
|
-
_0x30fc68: 0x1ba
|
|
779
|
-
}, _0xa97e57 = {
|
|
780
|
-
_0x440c8f: 0x2f5,
|
|
781
|
-
_0x262448: 0x1ba,
|
|
782
|
-
_0x5a8d21: 0x198
|
|
783
|
-
}, _0x16a8cc = {
|
|
784
|
-
_0x3884d3: 0x226,
|
|
785
|
-
_0x4fc07a: 0x2f5,
|
|
786
|
-
_0x25a827: 0x2f8
|
|
787
|
-
}, _0x2b76e4 = { _0x5ab9d3: 0x226 }, _0x4ccf82 = {
|
|
788
|
-
_0x473d68: 0x223,
|
|
789
|
-
_0x2e34c2: 0x17b,
|
|
790
|
-
_0x141241: 0x226,
|
|
791
|
-
_0x89682a: 0x2dc
|
|
792
|
-
}, _0x29660a = {
|
|
793
|
-
_0x475f64: 0x1db,
|
|
794
|
-
_0x4d1d02: 0x1ba,
|
|
795
|
-
_0x4b49ad: 0x23a,
|
|
796
|
-
_0x2528e3: 0x17b
|
|
797
|
-
}, _0x16b67 = {
|
|
798
|
-
_0x127993: 0x19b,
|
|
799
|
-
_0x29cbb1: 0x1db
|
|
800
|
-
}, _0x4376d8 = {
|
|
801
|
-
_0x5c9a28: 0x26e,
|
|
802
|
-
_0x184df9: 0x28b
|
|
803
|
-
}, _0x5acd38 = { _0x28a10a: 0x28a }, _0x30f55f = {
|
|
804
|
-
_0x59ad51: 0x268,
|
|
805
|
-
_0xc420d5: 0x226,
|
|
806
|
-
_0x406e5b: 0x1a5,
|
|
807
|
-
_0x4be859: 0x252,
|
|
808
|
-
_0x55742d: 0x2c0,
|
|
809
|
-
_0x46495b: 0x28b
|
|
810
|
-
}, _0x2c8127 = {
|
|
811
|
-
_0x57fa3b: 0x241,
|
|
812
|
-
_0x2a2f2e: 0x2c7,
|
|
813
|
-
_0x51be1c: 0x223,
|
|
814
|
-
_0x23b2e1: 0x1a5,
|
|
815
|
-
_0x350998: 0x1c6,
|
|
816
|
-
_0x2dbdd5: 0x1a2,
|
|
817
|
-
_0x7a28e2: 0x1a4,
|
|
818
|
-
_0x40bb08: 0x226,
|
|
819
|
-
_0x4e5c4f: 0x2f5,
|
|
820
|
-
_0x202829: 0x269
|
|
821
|
-
}, _0x11d1c8 = { _0x45927b: 0x2c3 }, _0x4b82da = {
|
|
822
|
-
_0x33ff78: 0x1e3,
|
|
823
|
-
_0x5e2095: 0x26a
|
|
824
|
-
}, _0x11c970 = {
|
|
825
|
-
_0xb017ae: 0x2aa,
|
|
826
|
-
_0x3654bf: 0x26f,
|
|
827
|
-
_0x4c2f0d: 0x1bc,
|
|
828
|
-
_0xe2ab10: 0x24b,
|
|
829
|
-
_0x18ed65: 0x1a9,
|
|
830
|
-
_0x4594a8: 0x1bc
|
|
831
|
-
}, _0x54ad71 = {
|
|
832
|
-
_0x4d6a8e: 0x288,
|
|
833
|
-
_0x1862a7: 0x1ac,
|
|
834
|
-
_0x456d30: 0x1bc,
|
|
835
|
-
_0x582822: 0x252,
|
|
836
|
-
_0x2b886b: 0x1a9,
|
|
837
|
-
_0x2d9e2c: 0x1bc
|
|
838
|
-
}, _0x2281d3 = {
|
|
839
|
-
_0x2ffe82: 0x26f,
|
|
840
|
-
_0x4f67b9: 0x252,
|
|
841
|
-
_0x394d27: 0x231,
|
|
842
|
-
_0x202e3a: 0x2a1
|
|
843
|
-
}, _0xeaa39e = {
|
|
844
|
-
_0x2976e6: 0x2ac,
|
|
845
|
-
_0x2a6b44: 0x17c
|
|
846
|
-
}, _0x3d027e = {
|
|
847
|
-
_0x383b1c: 0x229,
|
|
848
|
-
_0x4b8d7c: 0x202
|
|
849
|
-
}, _0x3edb50 = {
|
|
850
|
-
_0x47c609: 0x2f5,
|
|
851
|
-
_0x594472: 0x206,
|
|
852
|
-
_0x5d293b: 0x28b,
|
|
853
|
-
_0x268df4: 0x27b,
|
|
854
|
-
_0x16efbb: 0x2b0,
|
|
855
|
-
_0x3a2289: 0x28b,
|
|
856
|
-
_0x328fa6: 0x2fc
|
|
857
|
-
}, _0x413953 = {
|
|
858
|
-
_0x1817f6: 0x2f5,
|
|
859
|
-
_0x54f5d5: 0x2bc,
|
|
860
|
-
_0x59d8db: 0x1a5,
|
|
861
|
-
_0x18c6b4: 0x1cf,
|
|
862
|
-
_0x4722d7: 0x252,
|
|
863
|
-
_0x3739c9: 0x28b
|
|
864
|
-
}, _0x4bb20d = {
|
|
865
|
-
_0x52047d: 0x1dd,
|
|
866
|
-
_0x29ec0d: 0x2bd
|
|
867
|
-
}, _0x1746f7 = {
|
|
868
|
-
_0x3f94be: 0x246,
|
|
869
|
-
_0x2955fb: 0x246,
|
|
870
|
-
_0x220f1d: 0x17b
|
|
871
|
-
}, _0x39e7fc = {
|
|
872
|
-
_0x488dc4: 0x246,
|
|
873
|
-
_0x41edd4: 0x1b9
|
|
874
|
-
}, _0x1078ca = {
|
|
875
|
-
_0x5b6019: 0x24b,
|
|
876
|
-
_0x423ea5: 0x248,
|
|
877
|
-
_0xc79f32: 0x208,
|
|
878
|
-
_0x30a433: 0x223
|
|
879
|
-
}, _0x8933cc = {
|
|
880
|
-
_0x46f24c: 0x1c8,
|
|
881
|
-
_0x2da697: 0x2dc,
|
|
882
|
-
_0x59feac: 0x2e1,
|
|
883
|
-
_0x4e7aa6: 0x24c
|
|
884
|
-
}, _0x57a6bb = {
|
|
885
|
-
_0x4ccbec: 0x18a,
|
|
886
|
-
_0x6ae259: 0x2ff,
|
|
887
|
-
_0x281be4: 0x2de,
|
|
888
|
-
_0x3b0906: 0x2b4,
|
|
889
|
-
_0x3e2a2c: 0x17b,
|
|
890
|
-
_0xcfb774: 0x219,
|
|
891
|
-
_0x2fd5bd: 0x2c9
|
|
892
|
-
}, _0x3793bc = _0x2869e3, _0x4c5200 = _0x197643[_0x3793bc(0x214)] ?? fetch, _0x4147f9 = _0x197643[_0x3793bc(0x1d3)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4c8a18 = typeof _0x197643['initialLastSeenSeq'] === _0x3793bc(_0xc89b44._0x5d2d88) && _0x197643[_0x3793bc(_0xc89b44._0x597d2b)] > 0x0 ? _0x197643[_0x3793bc(0x292)] : 0x0, _0x38591a = _0x197643[_0x3793bc(0x18b)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x30023b = _0x197643[_0x3793bc(_0xc89b44._0x142f2c)]?.['trim']() || void 0x0, _0x414a64 = _0x197643[_0x3793bc(_0xc89b44._0x518f3f)] === !![], _0x576566 = _0x197643[_0x3793bc(0x211)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x3c19e6 = _0x197643[_0x3793bc(0x267)]?.[_0x3793bc(_0xc89b44._0x554900)]() || void 0x0, _0x5d2e87 = createHeaders(_0x197643['daemonApiKey']), _0xea0e6e = toHttpBaseUrl(_0x197643[_0x3793bc(0x1be)]);
|
|
893
|
-
let _0xc8a8dc = null;
|
|
894
|
-
const _0x92329d = new Map();
|
|
895
|
-
let _0x3f1834 = _0x4c8a18, _0x1bc613 = _0x4c8a18;
|
|
896
|
-
function _0x3a5168(_0x3744a2) {
|
|
897
|
-
const _0x94f3d4 = _0x3793bc, _0x454cf5 = _0x3744a2[_0x94f3d4(0x2b4)][_0x94f3d4(0x1a1)]['get'](_0x94f3d4(_0x57a6bb._0x4ccbec)) ?? _0x94f3d4(0x1ff), _0x233305 = _0x3744a2[_0x94f3d4(_0x57a6bb._0x6ae259)][_0x94f3d4(0x24c)]()[_0x94f3d4(0x2ba)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x94f3d4(0x1b4);
|
|
898
|
-
return '请求\x20' + _0x3744a2[_0x94f3d4(_0x57a6bb._0x281be4)] + _0x94f3d4(0x1ce) + _0x3744a2[_0x94f3d4(_0x57a6bb._0x3b0906)][_0x94f3d4(_0x57a6bb._0x3e2a2c)] + ',\x20content-type=' + _0x454cf5 + _0x94f3d4(_0x57a6bb._0xcfb774) + _0x233305 + _0x94f3d4(_0x57a6bb._0x2fd5bd);
|
|
899
|
-
}
|
|
900
|
-
async function _0x1f549d(_0x2c6e98, _0x18483c) {
|
|
901
|
-
const _0x34e2e3 = _0x3793bc, _0x1c1ceb = Buffer[_0x34e2e3(0x24d)](await _0x18483c[_0x34e2e3(_0x8933cc._0x46f24c)]())[_0x34e2e3(_0x8933cc._0x2da697)](_0x34e2e3(_0x8933cc._0x59feac));
|
|
902
|
-
if (!_0x1c1ceb[_0x34e2e3(_0x8933cc._0x4e7aa6)]())
|
|
903
|
-
return {};
|
|
904
|
-
try {
|
|
905
|
-
return JSON['parse'](_0x1c1ceb);
|
|
906
|
-
} catch {
|
|
907
|
-
throw new Error(_0x3a5168({
|
|
908
|
-
'bodyText': _0x1c1ceb,
|
|
909
|
-
'requestUrl': _0x2c6e98,
|
|
910
|
-
'response': _0x18483c
|
|
911
|
-
}));
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
function _0x56036f(_0x2a598c, _0x551761) {
|
|
915
|
-
const _0x6a9a34 = _0x3793bc, _0x579096 = typeof _0x551761['idempotency_key'] === _0x6a9a34(_0x1078ca._0x5b6019) ? _0x551761['idempotency_key'][_0x6a9a34(0x24c)]() : '';
|
|
916
|
-
if (_0x579096)
|
|
917
|
-
return _0x579096;
|
|
918
|
-
const _0x2905da = Date['now']();
|
|
919
|
-
for (const [_0x44097e, _0x575bad] of _0x92329d) {
|
|
920
|
-
_0x575bad['expiresAt'] <= _0x2905da && _0x92329d['delete'](_0x44097e);
|
|
921
|
-
}
|
|
922
|
-
const _0x50f7bb = {
|
|
923
|
-
..._0x551761,
|
|
924
|
-
'idempotency_key': void 0x0
|
|
925
|
-
}, _0x114a39 = createHash(_0x6a9a34(0x189))[_0x6a9a34(_0x1078ca._0x423ea5)](_0x2a598c + ':' + stableStringify(_0x50f7bb))[_0x6a9a34(0x258)](_0x6a9a34(0x1aa)), _0x2709e4 = _0x2a598c + ':' + _0x114a39, _0x55c166 = _0x92329d[_0x6a9a34(0x274)](_0x2709e4);
|
|
926
|
-
if (_0x55c166)
|
|
927
|
-
return _0x55c166[_0x6a9a34(0x2e9)];
|
|
928
|
-
const _0x9bfe4d = _0x6a9a34(_0x1078ca._0xc79f32) + _0x2a598c + ':' + randomUUID();
|
|
929
|
-
return _0x92329d[_0x6a9a34(_0x1078ca._0x30a433)](_0x2709e4, {
|
|
930
|
-
'expiresAt': _0x2905da + 0x5 * 0x3c * 0x3e8,
|
|
931
|
-
'value': _0x9bfe4d
|
|
932
|
-
}), _0x9bfe4d;
|
|
933
|
-
}
|
|
934
|
-
async function _0x372d0f(_0x5676e6, _0x36a76c) {
|
|
935
|
-
const _0x4a5f2e = _0x3793bc, _0x437ca5 = new AbortController(), _0x195545 = setTimeout(() => _0x437ca5[_0x4a5f2e(0x1c9)](), _0x4147f9), _0xb92915 = _0x36a76c?.[_0x4a5f2e(_0x39e7fc._0x488dc4)] ? anySignal(_0x36a76c[_0x4a5f2e(_0x39e7fc._0x488dc4)], _0x437ca5[_0x4a5f2e(0x246)]) : _0x437ca5[_0x4a5f2e(_0x39e7fc._0x488dc4)], _0x131e67 = '' + _0xea0e6e + _0x5676e6;
|
|
936
|
-
try {
|
|
937
|
-
const _0x1da50a = await _0x4c5200(_0x131e67, {
|
|
938
|
-
..._0x36a76c,
|
|
939
|
-
'signal': _0xb92915
|
|
940
|
-
}), _0x440efa = await _0x1f549d(_0x131e67, _0x1da50a);
|
|
941
|
-
if (!_0x1da50a['ok'] || _0x440efa[_0x4a5f2e(_0x39e7fc._0x41edd4)] === ![])
|
|
942
|
-
throw new Error(asErrorMessage(_0x440efa['error'], 'HTTP\x20' + _0x1da50a['status']));
|
|
943
|
-
return _0x440efa;
|
|
944
|
-
} finally {
|
|
945
|
-
clearTimeout(_0x195545);
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
async function _0xd80a40(_0x2585ef, _0x3f2448) {
|
|
949
|
-
const _0x3f9854 = _0x3793bc, _0x5b76b1 = new AbortController(), _0x47094a = setTimeout(() => _0x5b76b1[_0x3f9854(0x1c9)](), _0x4147f9), _0x590abf = _0x3f2448?.[_0x3f9854(0x246)] ? anySignal(_0x3f2448[_0x3f9854(_0x1746f7._0x3f94be)], _0x5b76b1[_0x3f9854(_0x1746f7._0x3f94be)]) : _0x5b76b1[_0x3f9854(_0x1746f7._0x2955fb)], _0x3a297b = '' + _0xea0e6e + _0x2585ef;
|
|
950
|
-
try {
|
|
951
|
-
const _0x325d2d = await _0x4c5200(_0x3a297b, {
|
|
952
|
-
..._0x3f2448,
|
|
953
|
-
'signal': _0x590abf
|
|
954
|
-
}), _0x2d96d5 = await _0x1f549d(_0x3a297b, _0x325d2d);
|
|
955
|
-
if (!_0x325d2d['ok'])
|
|
956
|
-
throw new Error(asErrorMessage(_0x2d96d5['error'], 'HTTP\x20' + _0x325d2d[_0x3f9854(_0x1746f7._0x220f1d)]));
|
|
957
|
-
return _0x2d96d5;
|
|
958
|
-
} finally {
|
|
959
|
-
clearTimeout(_0x47094a);
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
async function _0x5705da(_0xcddd30) {
|
|
963
|
-
const _0x5b138a = _0x3793bc;
|
|
964
|
-
if (!_0x30023b || _0xcddd30 <= _0x1bc613)
|
|
965
|
-
return;
|
|
966
|
-
await _0x372d0f(_0x5b138a(_0x4bb20d._0x52047d) + encodeURIComponent(_0x30023b) + _0x5b138a(0x22c), {
|
|
967
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0xcddd30 }),
|
|
968
|
-
'headers': _0x5d2e87,
|
|
969
|
-
'method': _0x5b138a(_0x4bb20d._0x29ec0d)
|
|
970
|
-
}), _0x1bc613 = _0xcddd30;
|
|
971
|
-
}
|
|
972
|
-
async function _0x21c1a9(_0x4694ad) {
|
|
973
|
-
const _0x20a12e = _0x3793bc;
|
|
974
|
-
if (!_0x38591a || !_0x576566 || _0x4694ad <= _0x1bc613)
|
|
975
|
-
return;
|
|
976
|
-
const _0x5ba364 = await _0x4c5200(_0x38591a + _0x20a12e(0x238), {
|
|
977
|
-
'body': JSON['stringify']({
|
|
978
|
-
'last_seen_seq': _0x4694ad,
|
|
979
|
-
'worker_session_id': _0x576566
|
|
980
|
-
}),
|
|
981
|
-
'headers': { 'Content-Type': _0x20a12e(0x1f4) },
|
|
982
|
-
'method': _0x20a12e(0x2bc)
|
|
983
|
-
});
|
|
984
|
-
if (!_0x5ba364['ok'])
|
|
985
|
-
throw new Error(_0x20a12e(0x21e) + _0x5ba364[_0x20a12e(0x17b)]);
|
|
986
|
-
_0x1bc613 = _0x4694ad;
|
|
987
|
-
}
|
|
988
|
-
async function _0x2b9c99(_0x2b1e04) {
|
|
989
|
-
const _0x410985 = _0x3793bc, _0x501b62 = parseTarget(_0x2b1e04), _0x48303a = await _0x372d0f(_0x410985(0x226) + _0x197643[_0x410985(_0x413953._0x1817f6)] + _0x410985(0x2fb), {
|
|
990
|
-
'body': JSON['stringify']({ 'target': _0x501b62[_0x410985(0x285)] }),
|
|
991
|
-
'headers': _0x5d2e87,
|
|
992
|
-
'method': _0x410985(_0x413953._0x54f5d5)
|
|
993
|
-
});
|
|
994
|
-
return {
|
|
995
|
-
'channelId': _0x48303a[_0x410985(0x28b)]?.[_0x410985(_0x413953._0x59d8db)] ?? '',
|
|
996
|
-
'target': _0x501b62['channelTarget'],
|
|
997
|
-
'task': _0x48303a[_0x410985(0x28b)]?.[_0x410985(_0x413953._0x18c6b4)],
|
|
998
|
-
'threadId': _0x48303a['data']?.[_0x410985(_0x413953._0x4722d7)],
|
|
999
|
-
'threadNumber': _0x48303a[_0x410985(_0x413953._0x3739c9)]?.[_0x410985(0x26f)]
|
|
1000
|
-
};
|
|
1001
|
-
}
|
|
1002
|
-
async function _0x331252(_0x21f887 = {}) {
|
|
1003
|
-
const _0x2def84 = _0x3793bc;
|
|
1004
|
-
if (!_0x21f887[_0x2def84(_0x3d027e._0x383b1c)] && _0xc8a8dc)
|
|
1005
|
-
return _0xc8a8dc;
|
|
1006
|
-
return _0xc8a8dc = (async () => {
|
|
1007
|
-
const _0x4aeeac = _0x2def84, _0x9d6284 = await _0x372d0f(_0x4aeeac(0x226) + _0x197643[_0x4aeeac(_0x3edb50._0x47c609)] + _0x4aeeac(_0x3edb50._0x594472), {
|
|
1008
|
-
'headers': _0x5d2e87,
|
|
1009
|
-
'method': _0x4aeeac(0x28a)
|
|
1010
|
-
}), _0x4ff1ab = _0x9d6284[_0x4aeeac(_0x3edb50._0x5d293b)]?.['members'] ?? [], _0x52ca3c = _0x4ff1ab[_0x4aeeac(_0x3edb50._0x268df4)](_0x525e95 => _0x525e95[_0x4aeeac(0x26a)]?.[_0x4aeeac(0x29f)] === _0x4aeeac(0x1f3))['map'](_0x3ba925 => ({
|
|
1011
|
-
'id': _0xad0202(_0x3ba925),
|
|
1012
|
-
'name': _0x232cf9(_0x3ba925)
|
|
1013
|
-
}))[_0x4aeeac(0x27b)](_0x1b1241 => _0x1b1241['id']), _0xd9b616 = _0x4ff1ab[_0x4aeeac(0x27b)](_0x117896 => _0x117896[_0x4aeeac(0x26a)]?.[_0x4aeeac(0x29f)] !== _0x4aeeac(0x1f3))[_0x4aeeac(_0x3edb50._0x16efbb)](_0x3a2d1e => ({
|
|
1014
|
-
'id': _0xad0202(_0x3a2d1e),
|
|
1015
|
-
'name': _0x232cf9(_0x3a2d1e)
|
|
1016
|
-
}))[_0x4aeeac(0x27b)](_0x392daa => _0x392daa['id']), _0x481570 = _0x9d6284[_0x4aeeac(_0x3edb50._0x3a2289)]?.[_0x4aeeac(0x2fc)]['id'] ?? '';
|
|
1017
|
-
return {
|
|
1018
|
-
'agents': _0x52ca3c,
|
|
1019
|
-
'channels': _0x9d6284['data']?.['channels'] ?? [],
|
|
1020
|
-
'humans': _0xd9b616,
|
|
1021
|
-
'serverId': _0x481570,
|
|
1022
|
-
'serverName': _0x9d6284[_0x4aeeac(0x28b)]?.[_0x4aeeac(_0x3edb50._0x328fa6)]['name'] ?? _0x481570
|
|
1023
|
-
};
|
|
1024
|
-
})()[_0x2def84(_0x3d027e._0x4b8d7c)](_0x297e52 => {
|
|
1025
|
-
_0xc8a8dc = null;
|
|
1026
|
-
throw _0x297e52;
|
|
1027
|
-
}), _0xc8a8dc;
|
|
1028
|
-
}
|
|
1029
|
-
function _0x45d3d3(_0x53a201, _0x53d2f5) {
|
|
1030
|
-
const _0x121a42 = _0x3793bc;
|
|
1031
|
-
return _0x53d2f5[_0x121a42(0x2ac)]['some'](_0x5dad7b => _0x5dad7b['id'] === _0x53a201 || _0x5dad7b[_0x121a42(0x2c3)] === _0x53a201) ? _0x121a42(0x1f3) : 'human';
|
|
1032
|
-
}
|
|
1033
|
-
function _0xba39f1(_0x5e20e9, _0x3f2dc1) {
|
|
1034
|
-
const _0x5eabdc = _0x3793bc, _0xbc0a6d = [
|
|
1035
|
-
..._0x3f2dc1[_0x5eabdc(_0xeaa39e._0x2976e6)],
|
|
1036
|
-
..._0x3f2dc1[_0x5eabdc(_0xeaa39e._0x2a6b44)]
|
|
1037
|
-
][_0x5eabdc(0x2d0)](_0x40211f => _0x40211f['id'] === _0x5e20e9);
|
|
1038
|
-
return _0xbc0a6d?.['name'] ?? _0x5e20e9;
|
|
1039
|
-
}
|
|
1040
|
-
function _0x4115cc(_0x54148f) {
|
|
1041
|
-
const _0x4e96fd = _0x3793bc;
|
|
1042
|
-
if (_0x54148f[_0x4e96fd(0x26f)] != null)
|
|
1043
|
-
return _0x54148f[_0x4e96fd(0x2a1)] + ':t' + _0x54148f[_0x4e96fd(_0x2281d3._0x2ffe82)];
|
|
1044
|
-
if (_0x54148f[_0x4e96fd(0x1ac)])
|
|
1045
|
-
return _0x54148f['channelTarget'] + ':' + _0x54148f[_0x4e96fd(0x1ac)];
|
|
1046
|
-
if (_0x54148f[_0x4e96fd(_0x2281d3._0x4f67b9)])
|
|
1047
|
-
return _0x54148f[_0x4e96fd(0x2a1)] + ':' + _0x54148f[_0x4e96fd(0x252)][_0x4e96fd(_0x2281d3._0x394d27)](0x0, 0x8);
|
|
1048
|
-
return _0x54148f[_0x4e96fd(_0x2281d3._0x202e3a)];
|
|
1049
|
-
}
|
|
1050
|
-
function _0x5bc090(_0x32a3e5, _0x1352c7) {
|
|
1051
|
-
const _0x3b25bd = _0x3793bc;
|
|
1052
|
-
try {
|
|
1053
|
-
const _0x4ee605 = parseTarget(_0x32a3e5);
|
|
1054
|
-
if (_0x4ee605[_0x3b25bd(0x2aa)] !== _0x3b25bd(_0x54ad71._0x4d6a8e) || _0x4ee605[_0x3b25bd(0x2a1)] !== _0x1352c7['channelTarget'])
|
|
1055
|
-
return ![];
|
|
1056
|
-
if (_0x1352c7[_0x3b25bd(0x26f)] != null && _0x4ee605['threadShortId'] === 't' + _0x1352c7[_0x3b25bd(0x26f)])
|
|
1057
|
-
return !![];
|
|
1058
|
-
if (_0x1352c7['rootMessageId'])
|
|
1059
|
-
return _0x4ee605[_0x3b25bd(0x1bc)] === _0x1352c7[_0x3b25bd(0x1ac)] || _0x1352c7[_0x3b25bd(_0x54ad71._0x1862a7)][_0x3b25bd(0x1a9)](_0x4ee605[_0x3b25bd(_0x54ad71._0x456d30)]);
|
|
1060
|
-
if (_0x1352c7[_0x3b25bd(0x252)])
|
|
1061
|
-
return _0x4ee605['threadShortId'] === _0x1352c7['threadId'] || _0x1352c7[_0x3b25bd(_0x54ad71._0x582822)][_0x3b25bd(_0x54ad71._0x2b886b)](_0x4ee605[_0x3b25bd(_0x54ad71._0x2d9e2c)]);
|
|
1062
|
-
return ![];
|
|
1063
|
-
} catch {
|
|
1064
|
-
return ![];
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
function _0x4020d7(_0x36607b, _0x12b4aa) {
|
|
1068
|
-
const _0x1af121 = _0x3793bc;
|
|
1069
|
-
try {
|
|
1070
|
-
const _0x3452ff = parseTarget(_0x36607b);
|
|
1071
|
-
if (_0x3452ff[_0x1af121(_0x11c970._0xb017ae)] !== _0x1af121(0x288))
|
|
1072
|
-
return ![];
|
|
1073
|
-
const _0x33fd60 = typeof _0x12b4aa['threadNumber'] === 'number' && Number['isInteger'](_0x12b4aa['threadNumber']) ? _0x12b4aa[_0x1af121(_0x11c970._0x3654bf)] : void 0x0;
|
|
1074
|
-
if (_0x33fd60 != null && _0x3452ff[_0x1af121(_0x11c970._0x4c2f0d)] === 't' + _0x33fd60)
|
|
1075
|
-
return !![];
|
|
1076
|
-
const _0x538de0 = typeof _0x12b4aa[_0x1af121(0x1ac)] === _0x1af121(_0x11c970._0xe2ab10) ? _0x12b4aa['rootMessageId'] : void 0x0;
|
|
1077
|
-
if (_0x538de0)
|
|
1078
|
-
return _0x3452ff[_0x1af121(0x1bc)] === _0x538de0 || _0x538de0[_0x1af121(_0x11c970._0x18ed65)](_0x3452ff[_0x1af121(0x1bc)]);
|
|
1079
|
-
const _0x3b13d7 = typeof _0x12b4aa['threadId'] === 'string' ? _0x12b4aa['threadId'] : void 0x0;
|
|
1080
|
-
return Boolean(_0x3b13d7) && (_0x3452ff[_0x1af121(0x1bc)] === _0x3b13d7 || _0x3b13d7['startsWith'](_0x3452ff[_0x1af121(_0x11c970._0x4594a8)]));
|
|
1081
|
-
} catch {
|
|
1082
|
-
return ![];
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
function _0xad0202(_0x49338d) {
|
|
1086
|
-
const _0xe54f6a = _0x3793bc;
|
|
1087
|
-
return _0x49338d['member']?.[_0xe54f6a(_0x4b82da._0x33ff78)] ?? _0x49338d[_0xe54f6a(_0x4b82da._0x5e2095)]?.['id'] ?? _0x49338d[_0xe54f6a(0x1e3)] ?? '';
|
|
1088
|
-
}
|
|
1089
|
-
function _0x232cf9(_0x4e1761) {
|
|
1090
|
-
const _0x52aeaf = _0x3793bc;
|
|
1091
|
-
return _0x4e1761[_0x52aeaf(0x26a)]?.[_0x52aeaf(_0x11d1c8._0x45927b)] ?? _0xad0202(_0x4e1761);
|
|
1092
|
-
}
|
|
1093
|
-
async function _0x44fd12(_0x596e74) {
|
|
1094
|
-
const _0x31ee1a = _0x3793bc, _0x13fd66 = Math[_0x31ee1a(_0x2c8127._0x57fa3b)](_0x596e74[_0x31ee1a(_0x2c8127._0x2a2f2e)] ?? 0x32, 0x64), _0x596083 = await _0x331252(), _0x293bca = new URLSearchParams();
|
|
1095
|
-
_0x293bca[_0x31ee1a(_0x2c8127._0x51be1c)](_0x31ee1a(0x2c7), String(_0x13fd66));
|
|
1096
|
-
_0x596e74[_0x31ee1a(0x252)] ? (_0x293bca[_0x31ee1a(_0x2c8127._0x51be1c)]('threadId', _0x596e74[_0x31ee1a(0x252)]), _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x23b2e1), _0x596e74[_0x31ee1a(0x1a5)])) : _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x23b2e1), _0x596e74['channelId']);
|
|
1097
|
-
_0x596e74[_0x31ee1a(0x1a2)] && _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(_0x2c8127._0x350998), String(_0x596e74[_0x31ee1a(_0x2c8127._0x2dbdd5)]));
|
|
1098
|
-
_0x596e74[_0x31ee1a(0x1a4)] !== void 0x0 && _0x293bca[_0x31ee1a(0x223)](_0x31ee1a(0x1a4), String(_0x596e74[_0x31ee1a(_0x2c8127._0x7a28e2)]));
|
|
1099
|
-
const _0xd7b596 = await _0x372d0f(_0x31ee1a(_0x2c8127._0x40bb08) + _0x197643[_0x31ee1a(_0x2c8127._0x4e5c4f)] + _0x31ee1a(0x2b1) + _0x293bca[_0x31ee1a(0x2dc)](), {
|
|
1100
|
-
'headers': _0x5d2e87,
|
|
1101
|
-
'method': 'GET'
|
|
1102
|
-
}), _0x30140e = (_0xd7b596[_0x31ee1a(0x28b)] ?? [])[_0x31ee1a(0x2b0)](_0x55f3ef => ({
|
|
1103
|
-
'attachments': (_0x55f3ef[_0x31ee1a(0x20a)] ?? [])['map'](_0x887f90 => ({
|
|
1104
|
-
'filename': _0x887f90[_0x31ee1a(0x2ef)] ?? _0x887f90['id'],
|
|
1105
|
-
'id': _0x887f90['id']
|
|
1106
|
-
})),
|
|
1107
|
-
'content': _0x55f3ef[_0x31ee1a(0x1cc)] ?? '',
|
|
1108
|
-
'createdAt': _0x55f3ef[_0x31ee1a(0x2bb)],
|
|
1109
|
-
..._0x55f3ef[_0x31ee1a(0x2aa)] && _0x55f3ef['kind'] !== _0x31ee1a(0x302) ? { 'kind': _0x55f3ef['kind'] } : {},
|
|
1110
|
-
'messageId': _0x55f3ef['id'],
|
|
1111
|
-
'senderName': _0xba39f1(_0x55f3ef[_0x31ee1a(0x249)], _0x596083),
|
|
1112
|
-
'senderType': _0x45d3d3(_0x55f3ef[_0x31ee1a(0x249)], _0x596083),
|
|
1113
|
-
'seq': _0x55f3ef[_0x31ee1a(0x23c)] ?? 0x0
|
|
1114
|
-
}));
|
|
1115
|
-
return {
|
|
1116
|
-
'channel': _0x596e74[_0x31ee1a(0x2a1)],
|
|
1117
|
-
'hasMore': _0xd7b596['meta']?.['hasMore'] ?? ![],
|
|
1118
|
-
'messages': _0x30140e,
|
|
1119
|
-
'nextCursor': _0xd7b596[_0x31ee1a(_0x2c8127._0x202829)]?.[_0x31ee1a(0x1c6)]
|
|
1475
|
+
return decodeURIComponent(_0x3bc7a0);
|
|
1120
1476
|
};
|
|
1477
|
+
_0x3f6e['rhtiwg'] = _0x48c76, _0x3f6e['PAITdW'] = {}, _0x3f6e['wtSovc'] = !![];
|
|
1121
1478
|
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
const _0x3f071a = _0x3793bc, _0x4e45ca = await _0x2b9c99(_0x12a246[_0x3f071a(0x285)]), _0x57fa16 = _0x12a246[_0x3f071a(_0x30f55f._0x59ad51)]['includes']('@') ? extractMentionedParticipantIds(_0x12a246['content'], await _0x331252()) : [], _0x335723 = await _0x372d0f(_0x3f071a(_0x30f55f._0xc420d5) + _0x197643['agentId'] + '/send', {
|
|
1125
|
-
'body': JSON['stringify']({
|
|
1126
|
-
'attachment_ids': _0x12a246['attachmentIds'],
|
|
1127
|
-
'bodyMarkdown': _0x12a246[_0x3f071a(0x268)],
|
|
1128
|
-
'channelId': _0x4e45ca[_0x3f071a(_0x30f55f._0x406e5b)],
|
|
1129
|
-
..._0x57fa16[_0x3f071a(0x1de)] > 0x0 ? { 'mentionedParticipantIds': _0x57fa16 } : {},
|
|
1130
|
-
'threadId': _0x4e45ca[_0x3f071a(_0x30f55f._0x4be859)],
|
|
1131
|
-
..._0x12a246[_0x3f071a(_0x30f55f._0x55742d)] ? { 'visibility': _0x12a246[_0x3f071a(0x2c0)] } : {}
|
|
1132
|
-
}),
|
|
1133
|
-
'headers': _0x5d2e87,
|
|
1134
|
-
'method': _0x3f071a(0x2bc)
|
|
1135
|
-
});
|
|
1136
|
-
return { 'messageId': _0x335723[_0x3f071a(_0x30f55f._0x46495b)]?.['id'] ?? '' };
|
|
1137
|
-
},
|
|
1138
|
-
async 'listSchedules'() {
|
|
1139
|
-
const _0x45b0fc = _0x3793bc, _0x5416ef = await _0x372d0f(_0x45b0fc(0x1c3), {
|
|
1140
|
-
'headers': _0x5d2e87,
|
|
1141
|
-
'method': _0x45b0fc(_0x5acd38._0x28a10a)
|
|
1142
|
-
});
|
|
1143
|
-
return _0x5416ef[_0x45b0fc(0x28b)] ?? [];
|
|
1144
|
-
},
|
|
1145
|
-
async 'claimScheduleRun'(_0x4725c3) {
|
|
1146
|
-
const _0x49cc2f = _0x3793bc, _0x342ae2 = await _0x372d0f(_0x49cc2f(_0x4376d8._0x5c9a28), {
|
|
1147
|
-
'body': JSON[_0x49cc2f(0x1ba)](_0x4725c3),
|
|
1148
|
-
'headers': _0x5d2e87,
|
|
1149
|
-
'method': 'POST'
|
|
1150
|
-
});
|
|
1151
|
-
return _0x342ae2[_0x49cc2f(_0x4376d8._0x184df9)] ?? {
|
|
1152
|
-
'granted': ![],
|
|
1153
|
-
'runId': null,
|
|
1154
|
-
'schedule': null,
|
|
1155
|
-
'scheduledFor': _0x4725c3['scheduledFor']
|
|
1156
|
-
};
|
|
1157
|
-
},
|
|
1158
|
-
async 'startScheduleRun'(_0x204384) {
|
|
1159
|
-
const _0x196e94 = _0x3793bc, _0x44573e = await _0x372d0f(_0x196e94(0x20b) + encodeURIComponent(_0x204384[_0x196e94(0x1db)]) + _0x196e94(_0x16b67._0x127993), {
|
|
1160
|
-
'body': JSON[_0x196e94(0x1ba)]({}),
|
|
1161
|
-
'headers': _0x5d2e87,
|
|
1162
|
-
'method': _0x196e94(0x2bc)
|
|
1163
|
-
});
|
|
1164
|
-
return _0x44573e[_0x196e94(0x28b)] ?? {
|
|
1165
|
-
'claimedByDaemonId': '',
|
|
1166
|
-
'id': _0x204384[_0x196e94(_0x16b67._0x29cbb1)],
|
|
1167
|
-
'scheduleId': '',
|
|
1168
|
-
'status': 'running'
|
|
1169
|
-
};
|
|
1170
|
-
},
|
|
1171
|
-
async 'finishScheduleRun'(_0x303e76) {
|
|
1172
|
-
const _0x5dcda8 = _0x3793bc, _0x53f50c = await _0x372d0f('/api/internal/schedules/' + encodeURIComponent(_0x303e76[_0x5dcda8(_0x29660a._0x475f64)]) + '/finish', {
|
|
1173
|
-
'body': JSON[_0x5dcda8(_0x29660a._0x4d1d02)]({
|
|
1174
|
-
'error': _0x303e76['error'],
|
|
1175
|
-
'resultJson': _0x303e76[_0x5dcda8(_0x29660a._0x4b49ad)],
|
|
1176
|
-
'status': _0x303e76[_0x5dcda8(_0x29660a._0x2528e3)]
|
|
1177
|
-
}),
|
|
1178
|
-
'headers': _0x5d2e87,
|
|
1179
|
-
'method': _0x5dcda8(0x2bc)
|
|
1180
|
-
});
|
|
1181
|
-
return _0x53f50c[_0x5dcda8(0x28b)] ?? {
|
|
1182
|
-
'nextRunAt': null,
|
|
1183
|
-
'run': {
|
|
1184
|
-
'claimedByDaemonId': '',
|
|
1185
|
-
'id': _0x303e76['runId'],
|
|
1186
|
-
'scheduleId': '',
|
|
1187
|
-
'status': _0x303e76[_0x5dcda8(_0x29660a._0x2528e3)]
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
|
-
},
|
|
1191
|
-
async 'listTasks'(_0x17ef71) {
|
|
1192
|
-
const _0x2dfa9c = _0x3793bc, _0x147ff3 = new URLSearchParams();
|
|
1193
|
-
return _0x147ff3[_0x2dfa9c(_0x4ccf82._0x473d68)](_0x2dfa9c(0x188), _0x17ef71['channel']), _0x17ef71['status'] && _0x147ff3['set'](_0x2dfa9c(_0x4ccf82._0x2e34c2), _0x17ef71[_0x2dfa9c(0x17b)]), _0xd80a40(_0x2dfa9c(_0x4ccf82._0x141241) + _0x197643['agentId'] + _0x2dfa9c(0x2f3) + _0x147ff3[_0x2dfa9c(_0x4ccf82._0x89682a)](), {
|
|
1194
|
-
'headers': _0x5d2e87,
|
|
1195
|
-
'method': 'GET'
|
|
1196
|
-
});
|
|
1197
|
-
},
|
|
1198
|
-
async 'createTasks'(_0x192133) {
|
|
1199
|
-
const _0x62e6d3 = _0x3793bc;
|
|
1200
|
-
return _0xd80a40(_0x62e6d3(_0x2b76e4._0x5ab9d3) + _0x197643['agentId'] + _0x62e6d3(0x286), {
|
|
1201
|
-
'body': JSON[_0x62e6d3(0x1ba)]({
|
|
1202
|
-
..._0x192133,
|
|
1203
|
-
'idempotency_key': _0x56036f(_0x62e6d3(0x1a3), _0x192133)
|
|
1204
|
-
}),
|
|
1205
|
-
'headers': _0x5d2e87,
|
|
1206
|
-
'method': 'POST'
|
|
1207
|
-
});
|
|
1208
|
-
},
|
|
1209
|
-
async 'claimTasks'(_0x1ff39d) {
|
|
1210
|
-
const _0x5b4c09 = _0x3793bc;
|
|
1211
|
-
return _0xd80a40(_0x5b4c09(_0x16a8cc._0x3884d3) + _0x197643[_0x5b4c09(_0x16a8cc._0x4fc07a)] + _0x5b4c09(_0x16a8cc._0x25a827), {
|
|
1212
|
-
'body': JSON['stringify']({
|
|
1213
|
-
..._0x1ff39d,
|
|
1214
|
-
'idempotency_key': _0x56036f(_0x5b4c09(0x2df), _0x1ff39d)
|
|
1215
|
-
}),
|
|
1216
|
-
'headers': _0x5d2e87,
|
|
1217
|
-
'method': 'POST'
|
|
1218
|
-
});
|
|
1219
|
-
},
|
|
1220
|
-
async 'unclaimTask'(_0x16cec7) {
|
|
1221
|
-
const _0x1ce9c8 = _0x3793bc;
|
|
1222
|
-
return _0xd80a40('/internal/agent/' + _0x197643[_0x1ce9c8(_0xa97e57._0x440c8f)] + _0x1ce9c8(0x235), {
|
|
1223
|
-
'body': JSON[_0x1ce9c8(_0xa97e57._0x262448)]({
|
|
1224
|
-
..._0x16cec7,
|
|
1225
|
-
'idempotency_key': _0x56036f(_0x1ce9c8(_0xa97e57._0x5a8d21), _0x16cec7)
|
|
1226
|
-
}),
|
|
1227
|
-
'headers': _0x5d2e87,
|
|
1228
|
-
'method': _0x1ce9c8(0x2bc)
|
|
1229
|
-
});
|
|
1230
|
-
},
|
|
1231
|
-
async 'updateTaskStatus'(_0x21ed09) {
|
|
1232
|
-
const _0x2b811e = _0x3793bc;
|
|
1233
|
-
return _0xd80a40(_0x2b811e(_0x3a34f9._0x5457eb) + _0x197643['agentId'] + '/tasks/update-status', {
|
|
1234
|
-
'body': JSON[_0x2b811e(_0x3a34f9._0x30fc68)]({
|
|
1235
|
-
..._0x21ed09,
|
|
1236
|
-
'idempotency_key': _0x56036f(_0x2b811e(0x296), _0x21ed09)
|
|
1237
|
-
}),
|
|
1238
|
-
'headers': _0x5d2e87,
|
|
1239
|
-
'method': 'POST'
|
|
1240
|
-
});
|
|
1241
|
-
},
|
|
1242
|
-
async 'uploadFile'(_0x20b55d) {
|
|
1243
|
-
const _0x4eb5d1 = _0x3793bc, _0x36e66f = await _0x2b9c99(_0x20b55d[_0x4eb5d1(_0x236892._0x2fd404)]);
|
|
1244
|
-
if (_0x36e66f[_0x4eb5d1(_0x236892._0x63117f)])
|
|
1245
|
-
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
1246
|
-
const _0x185c97 = await _0x372d0f(_0x4eb5d1(0x226) + _0x197643[_0x4eb5d1(_0x236892._0x2907fb)] + '/upload', {
|
|
1247
|
-
'body': JSON[_0x4eb5d1(0x1ba)]({
|
|
1248
|
-
'channel': _0x36e66f[_0x4eb5d1(_0x236892._0x46226b)],
|
|
1249
|
-
'contentBase64': _0x20b55d[_0x4eb5d1(_0x236892._0x131759)],
|
|
1250
|
-
'contentType': _0x20b55d[_0x4eb5d1(0x257)],
|
|
1251
|
-
'originalFilename': _0x20b55d[_0x4eb5d1(0x2ef)]
|
|
1252
|
-
}),
|
|
1253
|
-
'headers': _0x5d2e87,
|
|
1254
|
-
'method': 'POST'
|
|
1255
|
-
});
|
|
1256
|
-
return {
|
|
1257
|
-
'attachmentId': _0x185c97[_0x4eb5d1(_0x236892._0xdce5ae)]?.['id'] ?? '',
|
|
1258
|
-
'filename': _0x185c97[_0x4eb5d1(0x28b)]?.[_0x4eb5d1(0x2e6)] ?? _0x20b55d[_0x4eb5d1(_0x236892._0x1e2e70)],
|
|
1259
|
-
'sizeBytes': _0x185c97[_0x4eb5d1(_0x236892._0xdce5ae)]?.['sizeBytes'] ?? 0x0
|
|
1260
|
-
};
|
|
1261
|
-
},
|
|
1262
|
-
async 'downloadAttachment'(_0x538a90) {
|
|
1263
|
-
const _0xbb8f1b = _0x3793bc, _0x3b0281 = await _0x372d0f(_0xbb8f1b(_0x467253._0x44c03c) + _0x538a90, {
|
|
1264
|
-
'headers': _0x5d2e87,
|
|
1265
|
-
'method': _0xbb8f1b(_0x467253._0x1cb2c4)
|
|
1266
|
-
}), _0x468a9e = new AbortController(), _0x17d4b6 = setTimeout(() => _0x468a9e[_0xbb8f1b(0x1c9)](), _0x4147f9);
|
|
1267
|
-
try {
|
|
1268
|
-
const _0x122eaa = await _0x4c5200(_0xea0e6e + _0xbb8f1b(_0x467253._0x49576f) + _0x538a90 + _0xbb8f1b(_0x467253._0x17f23e), {
|
|
1269
|
-
'headers': _0x5d2e87,
|
|
1270
|
-
'method': _0xbb8f1b(_0x467253._0x381139),
|
|
1271
|
-
'signal': _0x468a9e['signal']
|
|
1272
|
-
});
|
|
1273
|
-
if (!_0x122eaa['ok'])
|
|
1274
|
-
throw new Error('HTTP\x20' + _0x122eaa[_0xbb8f1b(_0x467253._0x2f2c60)]);
|
|
1275
|
-
return {
|
|
1276
|
-
'contentType': _0x3b0281[_0xbb8f1b(0x28b)]?.[_0xbb8f1b(0x257)] ?? _0x122eaa[_0xbb8f1b(_0x467253._0x48cebf)][_0xbb8f1b(_0x467253._0x4fa3b4)](_0xbb8f1b(0x18a)) ?? _0xbb8f1b(0x1c7),
|
|
1277
|
-
'data': Buffer[_0xbb8f1b(0x24d)](await _0x122eaa['arrayBuffer']()),
|
|
1278
|
-
'originalFilename': _0x3b0281['data']?.[_0xbb8f1b(_0x467253._0x4429b7)]
|
|
1279
|
-
};
|
|
1280
|
-
} finally {
|
|
1281
|
-
clearTimeout(_0x17d4b6);
|
|
1282
|
-
}
|
|
1283
|
-
},
|
|
1284
|
-
async 'listServer'() {
|
|
1285
|
-
return _0x331252({ 'forceRefresh': !![] });
|
|
1286
|
-
},
|
|
1287
|
-
async 'getLatestEventSeq'() {
|
|
1288
|
-
const _0x5cd583 = _0x3793bc, _0x3787ce = new URLSearchParams();
|
|
1289
|
-
_0x3787ce['set'](_0x5cd583(0x22d), '0'), _0x3787ce[_0x5cd583(0x223)](_0x5cd583(_0x4b9dab._0x1308b3), '1');
|
|
1290
|
-
const _0xe3ce14 = await _0x372d0f('/internal/agent/' + _0x197643[_0x5cd583(0x2f5)] + _0x5cd583(_0x4b9dab._0x35c5dc) + _0x3787ce[_0x5cd583(_0x4b9dab._0x37fa34)](), {
|
|
1291
|
-
'headers': _0x5d2e87,
|
|
1292
|
-
'method': 'GET'
|
|
1293
|
-
}), _0x417f2b = _0xe3ce14[_0x5cd583(0x269)]?.[_0x5cd583(0x29c)];
|
|
1294
|
-
return typeof _0x417f2b === _0x5cd583(0x1f2) && _0x417f2b > 0x0 ? _0x417f2b : 0x0;
|
|
1295
|
-
},
|
|
1296
|
-
async 'readHistory'(_0x46ce01) {
|
|
1297
|
-
const _0x12339b = _0x3793bc, _0x483d9 = await _0x2b9c99(_0x46ce01[_0x12339b(_0x511f33._0x4bb8bf)]);
|
|
1298
|
-
return _0x44fd12({
|
|
1299
|
-
'after': _0x46ce01['after'],
|
|
1300
|
-
'before': _0x46ce01[_0x12339b(_0x511f33._0x22fe52)],
|
|
1301
|
-
'channelId': _0x483d9['channelId'],
|
|
1302
|
-
'channelTarget': _0x483d9['target'],
|
|
1303
|
-
'limit': _0x46ce01[_0x12339b(_0x511f33._0x477d6b)],
|
|
1304
|
-
'threadId': _0x483d9[_0x12339b(_0x511f33._0x6fe7a7)]
|
|
1305
|
-
});
|
|
1306
|
-
},
|
|
1307
|
-
'resolveTarget': _0x2b9c99,
|
|
1308
|
-
async 'checkMessages'() {
|
|
1309
|
-
const _0x2fda8c = { _0x154021: 0x25f }, _0x479a45 = _0x3793bc, _0x4dfb9f = new URLSearchParams();
|
|
1310
|
-
_0x4dfb9f[_0x479a45(_0x3878f7._0x50f31a)](_0x479a45(0x22d), String(_0x3f1834));
|
|
1311
|
-
const _0x4425c7 = _0x4dfb9f['toString'](), _0x43ca45 = await _0x372d0f(_0x479a45(0x226) + _0x197643[_0x479a45(_0x3878f7._0x249357)] + '/receive' + (_0x4425c7 ? '?' + _0x4425c7 : ''), {
|
|
1312
|
-
'headers': _0x5d2e87,
|
|
1313
|
-
'method': 'GET'
|
|
1314
|
-
}), _0x290dd0 = _0x43ca45[_0x479a45(_0x3878f7._0x34586c)] ?? [], _0x2c1a3c = _0x43ca45[_0x479a45(_0x3878f7._0x5ad3a2)]?.[_0x479a45(0x1c6)], _0xae8572 = _0x3c19e6 ? _0x290dd0[_0x479a45(_0x3878f7._0x97af5f)](_0x2eb1c3 => {
|
|
1315
|
-
const _0x54f98d = _0x479a45;
|
|
1316
|
-
if (_0x2eb1c3[_0x54f98d(0x23d)] !== _0x54f98d(0x234))
|
|
1317
|
-
return ![];
|
|
1318
|
-
return _0x4020d7(_0x3c19e6, asRecord(_0x2eb1c3[_0x54f98d(0x25f)]));
|
|
1319
|
-
}) : _0x290dd0, _0x6eef14 = _0x2c1a3c !== void 0x0 ? _0x3c19e6 ? Math[_0x479a45(_0x3878f7._0x33cca8)](_0x3f1834, _0xae8572[_0x479a45(_0x3878f7._0x4b619a)] > 0x0 ? _0xae8572[_0xae8572[_0x479a45(0x1de)] - 0x1][_0x479a45(_0x3878f7._0x5730d3)] : _0x3f1834) : Math[_0x479a45(0x2c6)](_0x3f1834, _0x2c1a3c) : _0xae8572[_0x479a45(0x1de)] > 0x0 ? Math[_0x479a45(0x2c6)](_0x3f1834, _0xae8572[_0xae8572[_0x479a45(_0x3878f7._0x261ef1)] - 0x1][_0x479a45(_0x3878f7._0x2a0a14)]) : _0x3f1834, _0x781d72 = (_0x3c19e6 ? _0xae8572 : _0x290dd0)[_0x479a45(0x27b)](_0x188345 => _0x188345['aggregateType'] === _0x479a45(0x234)), _0x111984 = _0x3c19e6 === void 0x0 && _0x414a64;
|
|
1320
|
-
let _0x50a2d8 = await _0x331252(), _0x25e943 = new Map(_0x50a2d8[_0x479a45(0x2ab)]['map'](_0x3c2f58 => [
|
|
1321
|
-
_0x3c2f58['id'],
|
|
1322
|
-
_0x3c2f58
|
|
1323
|
-
]));
|
|
1324
|
-
const _0x439e63 = _0x781d72[_0x479a45(_0x3878f7._0x4ddc0d)](_0x24b44b => {
|
|
1325
|
-
const _0x4241b3 = _0x479a45, _0x515aa5 = asRecord(_0x24b44b[_0x4241b3(_0x2fda8c._0x154021)]), _0x5aaa93 = typeof _0x515aa5?.[_0x4241b3(0x1a5)] === 'string' ? _0x515aa5['channelId'] : '';
|
|
1326
|
-
return Boolean(_0x5aaa93) && !_0x25e943['has'](_0x5aaa93);
|
|
1327
|
-
});
|
|
1328
|
-
_0x439e63 && (_0x50a2d8 = await _0x331252({ 'forceRefresh': !![] }), _0x25e943 = new Map(_0x50a2d8[_0x479a45(0x2ab)]['map'](_0x495d42 => [
|
|
1329
|
-
_0x495d42['id'],
|
|
1330
|
-
_0x495d42
|
|
1331
|
-
])));
|
|
1332
|
-
const _0x342985 = new Map();
|
|
1333
|
-
for (const _0x5b5c1f of _0x781d72) {
|
|
1334
|
-
const _0x5760d0 = asRecord(_0x5b5c1f['payloadJson']), _0x1ee4cd = typeof _0x5760d0[_0x479a45(0x1a5)] === 'string' ? _0x5760d0[_0x479a45(0x1a5)] : '';
|
|
1335
|
-
if (!_0x1ee4cd)
|
|
1336
|
-
continue;
|
|
1337
|
-
const _0x34f5d6 = typeof _0x5760d0['threadId'] === _0x479a45(0x24b) ? _0x5760d0['threadId'] : void 0x0, _0x2cdcb5 = typeof _0x5760d0[_0x479a45(0x1ac)] === 'string' ? _0x5760d0[_0x479a45(0x1ac)] : void 0x0, _0x424105 = typeof _0x5760d0[_0x479a45(_0x3878f7._0x1f7599)] === _0x479a45(_0x3878f7._0x51e308) && Number[_0x479a45(0x291)](_0x5760d0['threadNumber']) ? _0x5760d0[_0x479a45(0x26f)] : void 0x0, _0x1f5302 = Boolean(_0x34f5d6 && (!_0x2cdcb5 || _0x5b5c1f[_0x479a45(0x20c)] !== _0x2cdcb5)), _0x3dcfe6 = _0x1f5302 ? _0x1ee4cd + ':' + _0x34f5d6 : _0x1ee4cd, _0x229ea2 = _0x342985['get'](_0x3dcfe6) ?? {
|
|
1338
|
-
'aggregateIds': [],
|
|
1339
|
-
'channelId': _0x1ee4cd,
|
|
1340
|
-
'entries': new Map(),
|
|
1341
|
-
'isThreadReply': _0x1f5302,
|
|
1342
|
-
'rootMessageId': _0x2cdcb5,
|
|
1343
|
-
'threadNumber': _0x424105,
|
|
1344
|
-
'threadId': _0x1f5302 ? _0x34f5d6 : void 0x0
|
|
1345
|
-
};
|
|
1346
|
-
_0x229ea2[_0x479a45(0x26f)] == null && _0x424105 != null && (_0x229ea2[_0x479a45(_0x3878f7._0x1f7599)] = _0x424105), !_0x229ea2[_0x479a45(_0x3878f7._0x150f43)] && _0x2cdcb5 && (_0x229ea2['rootMessageId'] = _0x2cdcb5), _0x229ea2[_0x479a45(_0x3878f7._0x271177)]['push'](_0x5b5c1f[_0x479a45(0x20c)]), _0x229ea2[_0x479a45(_0x3878f7._0x405578)][_0x479a45(_0x3878f7._0x1a0639)](_0x5b5c1f['aggregateId'], {
|
|
1347
|
-
'payloadJson': _0x5b5c1f[_0x479a45(0x25f)],
|
|
1348
|
-
'seq': _0x5b5c1f[_0x479a45(0x23e)]
|
|
1349
|
-
}), _0x342985['set'](_0x3dcfe6, _0x229ea2);
|
|
1350
|
-
}
|
|
1351
|
-
const _0x456c39 = [];
|
|
1352
|
-
for (const _0x5d751c of _0x342985[_0x479a45(_0x3878f7._0x27cd82)]()) {
|
|
1353
|
-
const {
|
|
1354
|
-
channelId: _0x1b6da5,
|
|
1355
|
-
threadId: _0x45f709,
|
|
1356
|
-
rootMessageId: _0x333e54,
|
|
1357
|
-
threadNumber: _0x4d04f8,
|
|
1358
|
-
aggregateIds: _0x416495,
|
|
1359
|
-
isThreadReply: _0x11a514,
|
|
1360
|
-
entries: _0x3de9af
|
|
1361
|
-
} = _0x5d751c, _0x305620 = _0x25e943['get'](_0x1b6da5), _0x52734b = _0x305620?.[_0x479a45(_0x3878f7._0x32fb4b)] ?? _0x1b6da5, _0x19d9dd = _0x305620?.[_0x479a45(0x2aa)] === 'dm' ? _0x479a45(_0x3878f7._0x3f457e) + _0x52734b : '#' + _0x52734b, _0x36eb04 = {
|
|
1362
|
-
'channelTarget': _0x19d9dd,
|
|
1363
|
-
'rootMessageId': _0x333e54,
|
|
1364
|
-
'threadId': _0x45f709,
|
|
1365
|
-
'threadNumber': _0x4d04f8
|
|
1366
|
-
}, _0x4d53e2 = await _0x44fd12({
|
|
1367
|
-
'channelId': _0x1b6da5,
|
|
1368
|
-
'channelTarget': _0x19d9dd,
|
|
1369
|
-
'limit': Math[_0x479a45(0x2c6)](_0x416495[_0x479a45(0x1de)], 0x32),
|
|
1370
|
-
'threadId': _0x45f709
|
|
1371
|
-
}), _0x16b171 = new Map(_0x4d53e2['messages'][_0x479a45(_0x3878f7._0x567c1a)](_0xa67492 => [
|
|
1372
|
-
_0xa67492[_0x479a45(0x244)],
|
|
1373
|
-
_0xa67492
|
|
1374
|
-
])), _0x2a3256 = _0x45f709 ? _0x4115cc(_0x36eb04) : _0x19d9dd, _0x4cd834 = _0x3c19e6 ? _0x11a514 && _0x5bc090(_0x3c19e6, _0x36eb04) : !![], _0xebfd10 = _0x11a514 ? _0x4cd834 && _0x3c19e6 ? _0x3c19e6 : _0x2a3256 : _0x19d9dd;
|
|
1375
|
-
for (const _0x59aa4d of _0x416495) {
|
|
1376
|
-
if (!_0x4cd834)
|
|
1377
|
-
continue;
|
|
1378
|
-
const _0x488ffa = _0x3de9af[_0x479a45(0x274)](_0x59aa4d), _0x17f45b = _0x488ffa ? asRecord(_0x488ffa[_0x479a45(0x25f)]) : void 0x0, _0x5ad34f = _0x17f45b?.['taskDeliveryMode'] === _0x479a45(0x1d8);
|
|
1379
|
-
if (_0x111984 && _0x5ad34f)
|
|
1380
|
-
continue;
|
|
1381
|
-
const _0x360e90 = _0x16b171[_0x479a45(0x274)](_0x59aa4d);
|
|
1382
|
-
if (_0x360e90) {
|
|
1383
|
-
_0x456c39[_0x479a45(0x1eb)]({
|
|
1384
|
-
'attachments': _0x360e90[_0x479a45(0x20a)],
|
|
1385
|
-
'content': _0x360e90[_0x479a45(_0x3878f7._0x394e3d)],
|
|
1386
|
-
'createdAt': _0x360e90[_0x479a45(0x2bb)],
|
|
1387
|
-
..._0x360e90['kind'] ? { 'kind': _0x360e90['kind'] } : {},
|
|
1388
|
-
'messageId': _0x360e90['messageId'],
|
|
1389
|
-
'senderName': _0x360e90[_0x479a45(0x1e1)],
|
|
1390
|
-
'senderType': _0x360e90[_0x479a45(0x283)],
|
|
1391
|
-
'target': _0xebfd10,
|
|
1392
|
-
..._0x5ad34f ? { 'targetedTask': !![] } : {}
|
|
1393
|
-
});
|
|
1394
|
-
continue;
|
|
1395
|
-
}
|
|
1396
|
-
if (_0x488ffa) {
|
|
1397
|
-
const _0x428a9c = typeof _0x17f45b?.['senderParticipantId'] === _0x479a45(_0x3878f7._0x4e3572) ? _0x17f45b[_0x479a45(0x249)] : '', _0x52d458 = typeof _0x17f45b?.['bodyMarkdown'] === _0x479a45(0x24b) ? _0x17f45b['bodyMarkdown'] : '', _0x588485 = typeof _0x17f45b?.[_0x479a45(0x2aa)] === _0x479a45(0x24b) && _0x17f45b['kind'] !== _0x479a45(0x302) ? _0x17f45b['kind'] : void 0x0;
|
|
1398
|
-
_0x428a9c && _0x52d458 && _0x456c39[_0x479a45(0x1eb)]({
|
|
1399
|
-
'attachments': [],
|
|
1400
|
-
'content': _0x52d458,
|
|
1401
|
-
'createdAt': new Date()[_0x479a45(0x199)](),
|
|
1402
|
-
..._0x588485 ? { 'kind': _0x588485 } : {},
|
|
1403
|
-
'messageId': _0x59aa4d,
|
|
1404
|
-
'senderName': _0xba39f1(_0x428a9c, _0x50a2d8),
|
|
1405
|
-
'senderType': _0x45d3d3(_0x428a9c, _0x50a2d8),
|
|
1406
|
-
'target': _0xebfd10,
|
|
1407
|
-
..._0x5ad34f ? { 'targetedTask': !![] } : {}
|
|
1408
|
-
});
|
|
1409
|
-
}
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
if (_0x6eef14 > 0x0) {
|
|
1413
|
-
if (_0x30023b)
|
|
1414
|
-
await _0x5705da(_0x6eef14);
|
|
1415
|
-
else
|
|
1416
|
-
_0x576566 && await _0x21c1a9(_0x6eef14);
|
|
1417
|
-
}
|
|
1418
|
-
return _0x6eef14 > _0x3f1834 && (_0x3f1834 = _0x6eef14), { 'messages': _0x3c19e6 ? _0x456c39 : _0x111984 ? _0x456c39[_0x479a45(0x27b)](_0x5c0b72 => _0x5c0b72[_0x479a45(0x27d)] !== !![]) : _0x456c39 };
|
|
1419
|
-
}
|
|
1420
|
-
};
|
|
1421
|
-
}
|
|
1422
|
-
function toLocalTime(_0x786f80) {
|
|
1423
|
-
const _0x5735f3 = {
|
|
1424
|
-
_0x742c32: 0x23b,
|
|
1425
|
-
_0x55318c: 0x1f8,
|
|
1426
|
-
_0xb52c5d: 0x2e4
|
|
1427
|
-
}, _0x2789b7 = _0x2869e3, _0x22c52d = new Date(_0x786f80);
|
|
1428
|
-
if (Number['isNaN'](_0x22c52d['getTime']()))
|
|
1429
|
-
return _0x786f80;
|
|
1430
|
-
const _0x33e05f = _0x35bae8 => String(_0x35bae8)[_0x2789b7(0x2d6)](0x2, '0');
|
|
1431
|
-
return _0x22c52d[_0x2789b7(0x25a)]() + '-' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0x742c32)]() + 0x1) + '-' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0x55318c)]()) + '\x20' + _0x33e05f(_0x22c52d['getHours']()) + ':' + _0x33e05f(_0x22c52d[_0x2789b7(_0x5735f3._0xb52c5d)]()) + ':' + _0x33e05f(_0x22c52d[_0x2789b7(0x239)]());
|
|
1479
|
+
const _0x148694 = _0x4b2a72[0x0], _0x1e09e8 = _0x5746bf + _0x148694, _0x18461b = _0x3f6e['PAITdW'][_0x1e09e8];
|
|
1480
|
+
return !_0x18461b ? (_0x3f6e3f = _0x3f6e['rhtiwg'](_0x3f6e3f), _0x3f6e['PAITdW'][_0x1e09e8] = _0x3f6e3f) : _0x3f6e3f = _0x18461b, _0x3f6e3f;
|
|
1432
1481
|
}
|
|
1433
|
-
function
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
},
|
|
1457
|
-
|
|
1458
|
-
return _0x714e41(0x1a0);
|
|
1459
|
-
return _0x143d77[_0x714e41(_0x1876e8._0x4a8a22)](_0x3be252 => {
|
|
1460
|
-
const _0x417c01 = _0x714e41, _0x4d8d26 = _0x3be252[_0x417c01(_0x4772c0._0x4e5359)] === _0x417c01(_0x4772c0._0x36758c) ? _0x417c01(_0x4772c0._0x5054f8) : '', _0x180627 = _0x3be252[_0x417c01(_0x4772c0._0x785fd)] && _0x3be252[_0x417c01(_0x4772c0._0x785fd)] !== 'chat' ? '\x20kind=' + _0x3be252['kind'] : '';
|
|
1461
|
-
return _0x417c01(0x220) + _0x3be252[_0x417c01(_0x4772c0._0x5a000f)] + _0x417c01(0x186) + _0x3be252[_0x417c01(0x244)][_0x417c01(0x231)](0x0, 0x8) + _0x417c01(_0x4772c0._0x42fda2) + toLocalTime(_0x3be252[_0x417c01(0x2bb)]) + _0x4d8d26 + _0x180627 + _0x417c01(_0x4772c0._0x42cf4e) + _0x3be252['senderName'] + ':\x20' + _0x3be252[_0x417c01(_0x4772c0._0x96bd3c)] + formatAttachmentSuffix(_0x3be252[_0x417c01(_0x4772c0._0x261bf8)]);
|
|
1462
|
-
})[_0x714e41(0x2b5)]('\x0a');
|
|
1482
|
+
function formatHistory(_0xe4c427) {
|
|
1483
|
+
const _0xb43eb1 = {
|
|
1484
|
+
_0x4f0a6a: 0x101,
|
|
1485
|
+
_0x1a03a7: 0x1a8,
|
|
1486
|
+
_0x4bba82: 0x16d,
|
|
1487
|
+
_0x296440: 0x10a,
|
|
1488
|
+
_0x5433a8: 0x224,
|
|
1489
|
+
_0x5007be: 0x17a,
|
|
1490
|
+
_0x507a49: 0x101,
|
|
1491
|
+
_0xb1e746: 0x20a,
|
|
1492
|
+
_0x5a9004: 0x101
|
|
1493
|
+
}, _0xc18ac8 = {
|
|
1494
|
+
_0x207523: 0x1f6,
|
|
1495
|
+
_0x2809c4: 0x196,
|
|
1496
|
+
_0x9c7488: 0x196,
|
|
1497
|
+
_0x432554: 0xc9,
|
|
1498
|
+
_0x427ddf: 0x155
|
|
1499
|
+
}, _0x3445ca = _0x58fa01;
|
|
1500
|
+
if (_0xe4c427['messages'][_0x3445ca(_0xb43eb1._0x4f0a6a)] === 0x0)
|
|
1501
|
+
return _0x3445ca(0x226) + _0xe4c427[_0x3445ca(0xd3)] + _0x3445ca(0x11e);
|
|
1502
|
+
const _0x3a8fa1 = _0xe4c427[_0x3445ca(0x17a)][_0x3445ca(_0xb43eb1._0x1a03a7)](_0x198fe3 => {
|
|
1503
|
+
const _0x4701e8 = _0x3445ca, _0x22f8f0 = _0x198fe3['senderType'] === _0x4701e8(_0xc18ac8._0x207523) ? _0x4701e8(0x156) : '', _0x40f1d1 = _0x198fe3[_0x4701e8(_0xc18ac8._0x2809c4)] && _0x198fe3[_0x4701e8(_0xc18ac8._0x9c7488)] !== _0x4701e8(0x1c4) ? _0x4701e8(0x23e) + _0x198fe3[_0x4701e8(_0xc18ac8._0x9c7488)] : '';
|
|
1504
|
+
return _0x4701e8(0x10c) + _0x198fe3[_0x4701e8(_0xc18ac8._0x432554)] + '\x20msg=' + _0x198fe3['messageId'] + _0x4701e8(0x111) + toLocalTime(_0x198fe3['createdAt']) + _0x22f8f0 + _0x40f1d1 + _0x4701e8(_0xc18ac8._0x427ddf) + _0x198fe3[_0x4701e8(0x1b3)] + ':\x20' + _0x198fe3['content'] + formatAttachmentSuffix(_0x198fe3[_0x4701e8(0x128)]);
|
|
1505
|
+
})[_0x3445ca(0x1fa)]('\x0a'), _0x22b4ed = _0xe4c427[_0x3445ca(_0xb43eb1._0x4bba82)] && _0xe4c427[_0x3445ca(_0xb43eb1._0x296440)] ? _0x3445ca(_0xb43eb1._0x5433a8) + _0xe4c427[_0x3445ca(_0xb43eb1._0x5007be)][_0x3445ca(_0xb43eb1._0x507a49)] + _0x3445ca(0x1d1) + _0xe4c427[_0x3445ca(_0xb43eb1._0x296440)] + _0x3445ca(_0xb43eb1._0xb1e746) : '';
|
|
1506
|
+
return _0x3445ca(0x226) + _0xe4c427[_0x3445ca(0xd3)] + '\x20(' + _0xe4c427[_0x3445ca(0x17a)][_0x3445ca(_0xb43eb1._0x5a9004)] + _0x3445ca(0x198) + _0x3a8fa1 + _0x22b4ed;
|
|
1463
1507
|
}
|
|
1464
|
-
function
|
|
1465
|
-
const
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
_0x483a2f: 0x2ae,
|
|
1475
|
-
_0x4b37f5: 0x250,
|
|
1476
|
-
_0xea2382: 0x1de
|
|
1477
|
-
}, _0xd107dd = {
|
|
1478
|
-
_0x38a432: 0x283,
|
|
1479
|
-
_0x2f9695: 0x2aa,
|
|
1480
|
-
_0x5e4086: 0x302,
|
|
1481
|
-
_0x5275eb: 0x2aa,
|
|
1482
|
-
_0xf1b7b7: 0x244,
|
|
1483
|
-
_0x259f2d: 0x256,
|
|
1484
|
-
_0x5048b0: 0x2bb,
|
|
1485
|
-
_0x4a728f: 0x1e1,
|
|
1486
|
-
_0x21eaa1: 0x20a
|
|
1487
|
-
}, _0x4aa0a9 = _0x2869e3;
|
|
1488
|
-
if (_0x575b54[_0x4aa0a9(_0x5ddb40._0x913ae3)]['length'] === 0x0)
|
|
1489
|
-
return '##\x20Message\x20History\x20for\x20' + _0x575b54[_0x4aa0a9(0x188)] + _0x4aa0a9(_0x5ddb40._0x3b4855);
|
|
1490
|
-
const _0x1184af = _0x575b54['messages'][_0x4aa0a9(_0x5ddb40._0x1e76e0)](_0x29d76b => {
|
|
1491
|
-
const _0x34e8bf = _0x4aa0a9, _0x31c29b = _0x29d76b[_0x34e8bf(_0xd107dd._0x38a432)] === 'agent' ? _0x34e8bf(0x1d0) : '', _0x11fa3d = _0x29d76b['kind'] && _0x29d76b[_0x34e8bf(_0xd107dd._0x2f9695)] !== _0x34e8bf(_0xd107dd._0x5e4086) ? _0x34e8bf(0x27f) + _0x29d76b[_0x34e8bf(_0xd107dd._0x5275eb)] : '';
|
|
1492
|
-
return _0x34e8bf(0x17d) + _0x29d76b[_0x34e8bf(0x23e)] + _0x34e8bf(0x186) + _0x29d76b[_0x34e8bf(_0xd107dd._0xf1b7b7)] + _0x34e8bf(_0xd107dd._0x259f2d) + toLocalTime(_0x29d76b[_0x34e8bf(_0xd107dd._0x5048b0)]) + _0x31c29b + _0x11fa3d + _0x34e8bf(0x2e3) + _0x29d76b[_0x34e8bf(_0xd107dd._0x4a728f)] + ':\x20' + _0x29d76b[_0x34e8bf(0x268)] + formatAttachmentSuffix(_0x29d76b[_0x34e8bf(_0xd107dd._0x21eaa1)]);
|
|
1493
|
-
})[_0x4aa0a9(_0x5ddb40._0x2e6a48)]('\x0a'), _0x24159e = _0x575b54[_0x4aa0a9(0x204)] && _0x575b54[_0x4aa0a9(_0x5ddb40._0x1fbf8b)] ? _0x4aa0a9(_0x5ddb40._0x122d23) + _0x575b54[_0x4aa0a9(_0x5ddb40._0x21b6cc)]['length'] + _0x4aa0a9(0x259) + _0x575b54[_0x4aa0a9(_0x5ddb40._0x3be653)] + _0x4aa0a9(_0x5ddb40._0x483a2f) : '';
|
|
1494
|
-
return _0x4aa0a9(0x1e0) + _0x575b54['channel'] + '\x20(' + _0x575b54[_0x4aa0a9(_0x5ddb40._0x4b37f5)][_0x4aa0a9(_0x5ddb40._0xea2382)] + '\x20messages)\x0a\x0a' + _0x1184af + _0x24159e;
|
|
1495
|
-
}
|
|
1496
|
-
function formatServerDirectory(_0x551f55) {
|
|
1497
|
-
const _0x1087d9 = {
|
|
1498
|
-
_0x36cf87: 0x2ab,
|
|
1499
|
-
_0x3ee647: 0x2ac,
|
|
1500
|
-
_0x3a89a6: 0x2ac,
|
|
1501
|
-
_0x541c62: 0x17c,
|
|
1502
|
-
_0x2351d9: 0x2b0,
|
|
1503
|
-
_0x4ed322: 0x2b5,
|
|
1504
|
-
_0x457121: 0x1fe,
|
|
1505
|
-
_0x317bbf: 0x2cb,
|
|
1506
|
-
_0x579951: 0x1fa,
|
|
1507
|
-
_0x1cd793: 0x2b5
|
|
1508
|
-
}, _0x15ae96 = _0x2869e3, _0x144b55 = _0x551f55[_0x15ae96(_0x1087d9._0x36cf87)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(0x2ab)][_0x15ae96(0x2b0)](_0x410fa8 => _0x410fa8['description'] ? _0x15ae96(0x212) + _0x410fa8['name'] + _0x15ae96(0x2ec) + _0x410fa8[_0x15ae96(0x190)] : _0x15ae96(0x212) + _0x410fa8['name'])['join']('\x0a') : _0x15ae96(0x2db), _0x29c670 = _0x551f55[_0x15ae96(_0x1087d9._0x3ee647)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(_0x1087d9._0x3a89a6)][_0x15ae96(0x2b0)](_0x5cb8e9 => _0x15ae96(0x299) + _0x5cb8e9['name'])[_0x15ae96(0x2b5)]('\x0a') : '(none)', _0x4cb1bc = _0x551f55[_0x15ae96(_0x1087d9._0x541c62)][_0x15ae96(0x1de)] > 0x0 ? _0x551f55[_0x15ae96(0x17c)][_0x15ae96(_0x1087d9._0x2351d9)](_0xac2f18 => _0x15ae96(0x299) + _0xac2f18[_0x15ae96(0x2c3)])[_0x15ae96(_0x1087d9._0x4ed322)]('\x0a') : _0x15ae96(0x2db);
|
|
1508
|
+
function formatServerDirectory(_0x49f4a1) {
|
|
1509
|
+
const _0x2f609b = {
|
|
1510
|
+
_0xe71ef6: 0x14c,
|
|
1511
|
+
_0x318348: 0x101,
|
|
1512
|
+
_0x1165ce: 0x1a8,
|
|
1513
|
+
_0x28c022: 0x1fa,
|
|
1514
|
+
_0x49ef93: 0x1da,
|
|
1515
|
+
_0x335196: 0x1af,
|
|
1516
|
+
_0x375d66: 0x184
|
|
1517
|
+
}, _0x2ea544 = _0x58fa01, _0x46c82b = _0x49f4a1[_0x2ea544(_0x2f609b._0xe71ef6)][_0x2ea544(_0x2f609b._0x318348)] > 0x0 ? _0x49f4a1[_0x2ea544(0x14c)][_0x2ea544(0x1a8)](_0x4c7b86 => _0x4c7b86[_0x2ea544(0x14e)] ? '-\x20#' + _0x4c7b86[_0x2ea544(0x138)] + '\x20—\x20' + _0x4c7b86['description'] : _0x2ea544(0x119) + _0x4c7b86[_0x2ea544(0x138)])[_0x2ea544(0x1fa)]('\x0a') : '(none)', _0x45544f = _0x49f4a1[_0x2ea544(0x209)]['length'] > 0x0 ? _0x49f4a1[_0x2ea544(0x209)][_0x2ea544(_0x2f609b._0x1165ce)](_0x1dfbb5 => _0x2ea544(0xbd) + _0x1dfbb5[_0x2ea544(0x138)])[_0x2ea544(_0x2f609b._0x28c022)]('\x0a') : _0x2ea544(_0x2f609b._0x49ef93), _0x5d0c75 = _0x49f4a1[_0x2ea544(_0x2f609b._0x335196)][_0x2ea544(0x101)] > 0x0 ? _0x49f4a1[_0x2ea544(0x1af)]['map'](_0x19d73f => _0x2ea544(0xbd) + _0x19d73f['name'])[_0x2ea544(0x1fa)]('\x0a') : '(none)';
|
|
1509
1518
|
return [
|
|
1510
|
-
|
|
1519
|
+
_0x2ea544(0x1ea) + _0x49f4a1['serverName'],
|
|
1511
1520
|
'',
|
|
1512
|
-
|
|
1513
|
-
|
|
1521
|
+
_0x2ea544(0x1b0),
|
|
1522
|
+
_0x46c82b,
|
|
1514
1523
|
'',
|
|
1515
|
-
|
|
1516
|
-
|
|
1524
|
+
_0x2ea544(_0x2f609b._0x375d66),
|
|
1525
|
+
_0x45544f,
|
|
1517
1526
|
'',
|
|
1518
1527
|
'###\x20Humans',
|
|
1519
|
-
|
|
1520
|
-
][
|
|
1528
|
+
_0x5d0c75
|
|
1529
|
+
][_0x2ea544(_0x2f609b._0x28c022)]('\x0a');
|
|
1521
1530
|
}
|
|
1522
|
-
function formatUploadResult(
|
|
1523
|
-
const
|
|
1524
|
-
|
|
1531
|
+
function formatUploadResult(_0x3e8a2a) {
|
|
1532
|
+
const _0x4694b5 = {
|
|
1533
|
+
_0x409089: 0x1b4,
|
|
1534
|
+
_0xe35313: 0x130,
|
|
1535
|
+
_0x8ab591: 0x117
|
|
1536
|
+
}, _0x324ffc = _0x58fa01;
|
|
1537
|
+
return _0x324ffc(0xdc) + _0x3e8a2a['filename'] + '\x20(' + (_0x3e8a2a['sizeBytes'] / 0x400)[_0x324ffc(0x172)](0x1) + _0x324ffc(_0x4694b5._0x409089) + _0x3e8a2a[_0x324ffc(_0x4694b5._0xe35313)] + _0x324ffc(_0x4694b5._0x8ab591);
|
|
1525
1538
|
}
|
|
1526
|
-
function formatViewFileResult(
|
|
1527
|
-
const
|
|
1528
|
-
return
|
|
1539
|
+
function formatViewFileResult(_0x5dbaac, _0x52358c) {
|
|
1540
|
+
const _0x46d1d3 = { _0x50129c: 0x241 }, _0x429a7c = _0x58fa01;
|
|
1541
|
+
return _0x52358c ? _0x429a7c(0x18f) + _0x5dbaac : _0x429a7c(_0x46d1d3._0x50129c) + _0x5dbaac;
|
|
1529
1542
|
}
|
|
1530
|
-
function formatTaskList(
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
},
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
return _0x29515d[_0x15dc2b(_0x14cce7._0x5a04a6)](_0x39d14 => {
|
|
1547
|
-
const _0x19d025 = _0x15dc2b, _0x3ebc36 = _0x39d14[_0x19d025(0x216)] == null ? _0x19d025(_0x1e0d27._0x15d245) : _0x39d14[_0x19d025(_0x1e0d27._0x398d8f)] != null ? '#' + _0x39d14['taskNumber'] + '.' + _0x39d14[_0x19d025(0x2ce)] : '#' + _0x39d14['taskNumber'], _0x21c6d0 = _0x39d14[_0x19d025(_0x1e0d27._0x39730d)] ? '\x20message=' + _0x39d14[_0x19d025(_0x1e0d27._0x39730d)] : '', _0x2c09f4 = _0x516677 && _0x39d14[_0x19d025(_0x1e0d27._0x1e8bd5)] != null && !_0x39d14[_0x19d025(_0x1e0d27._0x2333b6)] && _0x516677[_0x19d025(_0x1e0d27._0x5c58d6)](_0x39d14[_0x19d025(_0x1e0d27._0x1e09dd)]) ? _0x19d025(0x26c) : '', _0x20c6fb = _0x39d14[_0x19d025(_0x1e0d27._0x10dc13)] != null && _0x39d14[_0x19d025(0x197)] > 0x0 ? '\x20(' + (_0x39d14[_0x19d025(0x1f9)] ?? 0x0) + '/' + _0x39d14['childrenTotal'] + '\x20done)' : '';
|
|
1548
|
-
return _0x3ebc36 + '\x20[' + _0x39d14['status'] + ']\x20' + _0x39d14['title'] + _0x20c6fb + _0x21c6d0 + _0x2c09f4;
|
|
1549
|
-
})[_0x15dc2b(_0x14cce7._0x47ab14)]('\x0a');
|
|
1543
|
+
function formatTaskList(_0x4e0ebb, _0x13ee62) {
|
|
1544
|
+
const _0xb86159 = {
|
|
1545
|
+
_0x5ab18a: 0x101,
|
|
1546
|
+
_0x32928c: 0x1a8
|
|
1547
|
+
}, _0x326daa = {
|
|
1548
|
+
_0x4476bf: 0xfa,
|
|
1549
|
+
_0x152569: 0x220,
|
|
1550
|
+
_0x2cbc7e: 0xee,
|
|
1551
|
+
_0x4e9cd6: 0x199
|
|
1552
|
+
}, _0x2da938 = _0x58fa01;
|
|
1553
|
+
if (_0x4e0ebb[_0x2da938(_0xb86159._0x5ab18a)] === 0x0)
|
|
1554
|
+
return _0x2da938(0x193);
|
|
1555
|
+
return _0x4e0ebb[_0x2da938(_0xb86159._0x32928c)](_0x102780 => {
|
|
1556
|
+
const _0x25803f = _0x2da938, _0x29cc64 = _0x102780[_0x25803f(_0x326daa._0x4476bf)] == null ? _0x25803f(0x174) : _0x102780[_0x25803f(0x240)] != null ? '#' + _0x102780[_0x25803f(0xfa)] + '.' + _0x102780['subtaskNumber'] : '#' + _0x102780['taskNumber'], _0x1c5cc5 = _0x102780[_0x25803f(0x11d)] ? _0x25803f(0xdb) + _0x102780[_0x25803f(0x11d)] : '', _0x4992f7 = _0x13ee62 && _0x102780['taskNumber'] != null && !_0x102780[_0x25803f(0x240)] && _0x13ee62[_0x25803f(_0x326daa._0x152569)](_0x102780[_0x25803f(0xfa)]) ? _0x25803f(0x1a9) : '', _0x1f998f = _0x102780[_0x25803f(0xee)] != null && _0x102780[_0x25803f(_0x326daa._0x2cbc7e)] > 0x0 ? '\x20(' + (_0x102780[_0x25803f(0x112)] ?? 0x0) + '/' + _0x102780['childrenTotal'] + '\x20done)' : '';
|
|
1557
|
+
return _0x29cc64 + '\x20[' + _0x102780[_0x25803f(0xe2)] + ']\x20' + _0x102780[_0x25803f(_0x326daa._0x4e9cd6)] + _0x1f998f + _0x1c5cc5 + _0x4992f7;
|
|
1558
|
+
})['join']('\x0a');
|
|
1550
1559
|
}
|
|
1551
|
-
function formatCreatedTasks(
|
|
1552
|
-
const
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
return _0x3253d7 + '\x20' + _0x43c135[_0x3854d2(0x2e5)] + _0xf7d997;
|
|
1564
|
-
})[_0x526515(_0x55474d._0x493bc3)]('\x0a');
|
|
1560
|
+
function formatCreatedTasks(_0x329a2f) {
|
|
1561
|
+
const _0x25bea2 = {
|
|
1562
|
+
_0x1c012b: 0xfa,
|
|
1563
|
+
_0x25c718: 0x240,
|
|
1564
|
+
_0x43e3e0: 0x11d
|
|
1565
|
+
}, _0x4acbc1 = _0x58fa01;
|
|
1566
|
+
if (_0x329a2f[_0x4acbc1(0x101)] === 0x0)
|
|
1567
|
+
return _0x4acbc1(0x1a7);
|
|
1568
|
+
return _0x329a2f['map'](_0x5e6b5f => {
|
|
1569
|
+
const _0x484de6 = _0x4acbc1, _0x459499 = _0x5e6b5f[_0x484de6(_0x25bea2._0x1c012b)] == null ? _0x484de6(0x174) : _0x5e6b5f['subtaskNumber'] != null ? '#' + _0x5e6b5f[_0x484de6(0xfa)] + '.' + _0x5e6b5f[_0x484de6(_0x25bea2._0x25c718)] : '#' + _0x5e6b5f[_0x484de6(0xfa)], _0x525ba1 = _0x5e6b5f[_0x484de6(_0x25bea2._0x43e3e0)] ? _0x484de6(0xdb) + _0x5e6b5f['messageId'] : '';
|
|
1570
|
+
return _0x459499 + '\x20' + _0x5e6b5f[_0x484de6(0x199)] + _0x525ba1;
|
|
1571
|
+
})[_0x4acbc1(0x1fa)]('\x0a');
|
|
1565
1572
|
}
|
|
1566
|
-
function formatClaimTaskLabel(
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
return _0x4e59a4 != null ? '#' + _0x159e43 + '.' + _0x4e59a4 : '#' + _0x159e43;
|
|
1573
|
+
function formatClaimTaskLabel(_0x450524, _0xc5fb60) {
|
|
1574
|
+
if (_0x450524 == null)
|
|
1575
|
+
return '(legacy)';
|
|
1576
|
+
return _0xc5fb60 != null ? '#' + _0x450524 + '.' + _0xc5fb60 : '#' + _0x450524;
|
|
1571
1577
|
}
|
|
1572
|
-
function formatClaimTaskResults(
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
},
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1578
|
+
function formatClaimTaskResults(_0xd06a20) {
|
|
1579
|
+
const _0x195368 = {
|
|
1580
|
+
_0x4b31f6: 0x101,
|
|
1581
|
+
_0x5f3b29: 0x1fa
|
|
1582
|
+
}, _0x37728c = {
|
|
1583
|
+
_0x58e782: 0xfa,
|
|
1584
|
+
_0x5b9f4f: 0x240,
|
|
1585
|
+
_0x2a5d00: 0x11d,
|
|
1586
|
+
_0x2cd357: 0x1c5,
|
|
1587
|
+
_0x1429e8: 0x11a,
|
|
1588
|
+
_0x581eea: 0x179,
|
|
1589
|
+
_0x31650d: 0x210,
|
|
1590
|
+
_0x439ba3: 0x104,
|
|
1591
|
+
_0x2eb9db: 0x19e,
|
|
1592
|
+
_0x141f8d: 0x211,
|
|
1593
|
+
_0x42230e: 0xed,
|
|
1594
|
+
_0x387d0d: 0xe4,
|
|
1595
|
+
_0x42d5ee: 0xe4,
|
|
1596
|
+
_0x32c477: 0x1d3,
|
|
1597
|
+
_0x4997f4: 0x18c,
|
|
1598
|
+
_0x5e76f4: 0x1ab
|
|
1599
|
+
}, _0x321156 = _0x58fa01;
|
|
1600
|
+
if (_0xd06a20[_0x321156(_0x195368._0x4b31f6)] === 0x0)
|
|
1590
1601
|
return 'No\x20tasks\x20claimed.';
|
|
1591
|
-
return
|
|
1592
|
-
const
|
|
1593
|
-
if (
|
|
1594
|
-
const
|
|
1595
|
-
if (
|
|
1596
|
-
const
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
][
|
|
1603
|
-
return
|
|
1602
|
+
return _0xd06a20[_0x321156(0x1a8)](_0x15ad86 => {
|
|
1603
|
+
const _0x518cde = _0x321156;
|
|
1604
|
+
if (_0x15ad86['success']) {
|
|
1605
|
+
const _0x49779f = formatClaimTaskLabel(_0x15ad86[_0x518cde(_0x37728c._0x58e782)], _0x15ad86[_0x518cde(_0x37728c._0x5b9f4f)]), _0x2da9be = _0x15ad86[_0x518cde(_0x37728c._0x2a5d00)] ? '\x20message=' + _0x15ad86[_0x518cde(0x11d)] : '';
|
|
1606
|
+
if (_0x15ad86[_0x518cde(0x230)]) {
|
|
1607
|
+
const _0x561b80 = [
|
|
1608
|
+
_0x518cde(_0x37728c._0x2cd357),
|
|
1609
|
+
_0x15ad86[_0x518cde(_0x37728c._0x1429e8)] ? 'stopMain=true' : null,
|
|
1610
|
+
_0x15ad86[_0x518cde(_0x37728c._0x581eea)] ? _0x518cde(_0x37728c._0x31650d) + _0x15ad86[_0x518cde(0x179)] : null,
|
|
1611
|
+
_0x15ad86[_0x518cde(_0x37728c._0x439ba3)] ? _0x518cde(0x12c) + _0x15ad86[_0x518cde(_0x37728c._0x439ba3)] : null,
|
|
1612
|
+
_0x15ad86[_0x518cde(0x19e)] ? 'workerDisposition=' + _0x15ad86[_0x518cde(_0x37728c._0x2eb9db)] : null
|
|
1613
|
+
][_0x518cde(0x161)](Boolean)['join']('\x20');
|
|
1614
|
+
return _0x49779f + '\x20claimed' + _0x2da9be + '\x20' + _0x561b80 + _0x518cde(_0x37728c._0x141f8d);
|
|
1604
1615
|
}
|
|
1605
|
-
if (
|
|
1606
|
-
return
|
|
1607
|
-
const
|
|
1608
|
-
return
|
|
1616
|
+
if (_0x15ad86[_0x518cde(0x179)] === _0x518cde(0x227))
|
|
1617
|
+
return _0x49779f + '\x20claimed' + _0x2da9be + _0x518cde(_0x37728c._0x42230e);
|
|
1618
|
+
const _0x532d4a = _0x15ad86[_0x518cde(_0x37728c._0x387d0d)] ? '\x20workerHandoff=false\x20error=' + _0x15ad86[_0x518cde(_0x37728c._0x42d5ee)] : '';
|
|
1619
|
+
return _0x49779f + _0x518cde(_0x37728c._0x32c477) + _0x2da9be + _0x532d4a;
|
|
1609
1620
|
}
|
|
1610
|
-
const
|
|
1611
|
-
return
|
|
1612
|
-
})[
|
|
1621
|
+
const _0x711372 = _0x15ad86[_0x518cde(0xfa)] == null ? _0x15ad86[_0x518cde(0x11d)] ?? _0x518cde(_0x37728c._0x4997f4) : formatClaimTaskLabel(_0x15ad86[_0x518cde(_0x37728c._0x58e782)], _0x15ad86[_0x518cde(0x240)]);
|
|
1622
|
+
return _0x711372 + _0x518cde(_0x37728c._0x5e76f4) + (_0x15ad86['reason'] ?? _0x518cde(0x114));
|
|
1623
|
+
})[_0x321156(_0x195368._0x5f3b29)]('\x0a');
|
|
1613
1624
|
}
|
|
1614
|
-
function formatUnclaimTaskResult(
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1617
|
-
_0x2fb5dd: 0x200
|
|
1618
|
-
}, _0x7f1193 = _0x2869e3, _0x484dab = _0x2c7edf[_0x7f1193(0x216)] == null ? _0x7f1193(_0x2b845a._0x1c7317) : _0x2c7edf[_0x7f1193(0x2ce)] != null ? '#' + _0x2c7edf['taskNumber'] + '.' + _0x2c7edf['subtaskNumber'] : '#' + _0x2c7edf[_0x7f1193(0x216)];
|
|
1619
|
-
return _0x484dab + _0x7f1193(_0x2b845a._0x2fb5dd) + _0x2c7edf['status'];
|
|
1625
|
+
function formatUnclaimTaskResult(_0x951c66) {
|
|
1626
|
+
const _0x462a11 = { _0x384b2c: 0x240 }, _0x3bca95 = _0x58fa01, _0xe0890 = _0x951c66[_0x3bca95(0xfa)] == null ? _0x3bca95(0x174) : _0x951c66[_0x3bca95(_0x462a11._0x384b2c)] != null ? '#' + _0x951c66[_0x3bca95(0xfa)] + '.' + _0x951c66['subtaskNumber'] : '#' + _0x951c66[_0x3bca95(0xfa)];
|
|
1627
|
+
return _0xe0890 + _0x3bca95(0x18d) + _0x951c66['status'];
|
|
1620
1628
|
}
|
|
1621
|
-
function formatUpdateTaskStatusResult(
|
|
1622
|
-
const
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
_0x28a2c0: 0x17b,
|
|
1627
|
-
_0x47c10e: 0x277
|
|
1628
|
-
}, _0x5e4443 = _0x2869e3, _0x411bfd = _0x45cc52[_0x5e4443(0x216)] == null ? _0x5e4443(_0x38f2f5._0x2695e8) : _0x45cc52[_0x5e4443(0x2ce)] != null ? '#' + _0x45cc52[_0x5e4443(_0x38f2f5._0x482d10)] + '.' + _0x45cc52[_0x5e4443(_0x38f2f5._0x523a5c)] : '#' + _0x45cc52['taskNumber'], _0x3536bf = _0x411bfd + _0x5e4443(0x200) + _0x45cc52[_0x5e4443(_0x38f2f5._0x28a2c0)];
|
|
1629
|
-
if (_0x45cc52[_0x5e4443(_0x38f2f5._0x28a2c0)] !== _0x5e4443(_0x38f2f5._0x47c10e))
|
|
1630
|
-
return _0x3536bf;
|
|
1631
|
-
return _0x3536bf + '\x0aIf\x20your\x20memory\x20or\x20channel\x20rules\x20require\x20review,\x20send\x20a\x20message\x20mentioning\x20the\x20reviewer\x20before\x20parking.';
|
|
1629
|
+
function formatUpdateTaskStatusResult(_0x35964e) {
|
|
1630
|
+
const _0x333aa1 = { _0x1c55a1: 0xe2 }, _0x41d840 = _0x58fa01, _0x7b72fa = _0x35964e[_0x41d840(0xfa)] == null ? _0x41d840(0x174) : _0x35964e[_0x41d840(0x240)] != null ? '#' + _0x35964e['taskNumber'] + '.' + _0x35964e[_0x41d840(0x240)] : '#' + _0x35964e[_0x41d840(0xfa)], _0x5e49ff = _0x7b72fa + _0x41d840(0x18d) + _0x35964e['status'];
|
|
1631
|
+
if (_0x35964e[_0x41d840(_0x333aa1._0x1c55a1)] !== _0x41d840(0x15f))
|
|
1632
|
+
return _0x5e49ff;
|
|
1633
|
+
return _0x5e49ff + _0x41d840(0x173);
|
|
1632
1634
|
}
|
|
1633
1635
|
function getChatBridgeToolDefinitions() {
|
|
1634
|
-
const
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
_0x2676cb: 0x1d2,
|
|
1641
|
-
_0x439688: 0x1ad
|
|
1642
|
-
}, _0x4f5994 = _0x2869e3;
|
|
1636
|
+
const _0x2cd4cb = {
|
|
1637
|
+
_0x2acbdd: 0x12d,
|
|
1638
|
+
_0x462d22: 0x1ef,
|
|
1639
|
+
_0xa120cf: 0x235,
|
|
1640
|
+
_0x3b792e: 0x125
|
|
1641
|
+
}, _0x4339b6 = _0x58fa01;
|
|
1643
1642
|
return [
|
|
1644
|
-
{ 'name':
|
|
1645
|
-
{ 'name':
|
|
1646
|
-
{ 'name':
|
|
1647
|
-
{ 'name':
|
|
1648
|
-
{ 'name':
|
|
1649
|
-
{ 'name':
|
|
1650
|
-
{ 'name':
|
|
1651
|
-
{ 'name':
|
|
1643
|
+
{ 'name': 'send_message' },
|
|
1644
|
+
{ 'name': _0x4339b6(0x137) },
|
|
1645
|
+
{ 'name': 'read_history' },
|
|
1646
|
+
{ 'name': _0x4339b6(_0x2cd4cb._0x2acbdd) },
|
|
1647
|
+
{ 'name': _0x4339b6(0x19a) },
|
|
1648
|
+
{ 'name': _0x4339b6(0x1d8) },
|
|
1649
|
+
{ 'name': _0x4339b6(_0x2cd4cb._0x462d22) },
|
|
1650
|
+
{ 'name': _0x4339b6(_0x2cd4cb._0xa120cf) },
|
|
1652
1651
|
{ 'name': 'claim_tasks' },
|
|
1653
|
-
{ 'name':
|
|
1654
|
-
{ 'name':
|
|
1655
|
-
{ 'name':
|
|
1656
|
-
{ 'name':
|
|
1657
|
-
{ 'name':
|
|
1658
|
-
{ 'name':
|
|
1652
|
+
{ 'name': _0x4339b6(0x213) },
|
|
1653
|
+
{ 'name': _0x4339b6(0x21b) },
|
|
1654
|
+
{ 'name': _0x4339b6(0x105) },
|
|
1655
|
+
{ 'name': _0x4339b6(_0x2cd4cb._0x3b792e) },
|
|
1656
|
+
{ 'name': _0x4339b6(0xbc) },
|
|
1657
|
+
{ 'name': _0x4339b6(0x147) }
|
|
1659
1658
|
];
|
|
1660
1659
|
}
|
|
1661
|
-
function createChatBridgeHandlers(
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
},
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
},
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
},
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
_0x1a37bd: 0x267
|
|
1800
|
-
}, _0x359f22 = _0x2869e3;
|
|
1801
|
-
function _0x2022e6(_0x4e66c2, _0x26aea1) {
|
|
1802
|
-
const _0x4c1ddb = _0x355a;
|
|
1803
|
-
if (!_0x2eac44[_0x4c1ddb(0x1a6)])
|
|
1660
|
+
function createChatBridgeHandlers(_0x81c4e4) {
|
|
1661
|
+
const _0x4ca15e = {
|
|
1662
|
+
_0x19f990: 0xd2,
|
|
1663
|
+
_0x45a2be: 0x1ac,
|
|
1664
|
+
_0x366df1: 0x113,
|
|
1665
|
+
_0x26d60b: 0x23c,
|
|
1666
|
+
_0x3ee5ef: 0x1ba
|
|
1667
|
+
}, _0x3c361f = {
|
|
1668
|
+
_0x388acb: 0xb9,
|
|
1669
|
+
_0x36eeb1: 0x1e5,
|
|
1670
|
+
_0xd07d21: 0x113,
|
|
1671
|
+
_0x38b1e3: 0x23c,
|
|
1672
|
+
_0x1404d2: 0x163,
|
|
1673
|
+
_0x3b652f: 0x154,
|
|
1674
|
+
_0x4b77ad: 0x1c6
|
|
1675
|
+
}, _0x5d3e89 = {
|
|
1676
|
+
_0x3c64b5: 0x120,
|
|
1677
|
+
_0x491741: 0x1e5,
|
|
1678
|
+
_0x2dd8d7: 0x1ac,
|
|
1679
|
+
_0x4867e0: 0x146,
|
|
1680
|
+
_0x1f3d4b: 0x1c6
|
|
1681
|
+
}, _0x78ce79 = {
|
|
1682
|
+
_0x3ad1e8: 0x120,
|
|
1683
|
+
_0x2a750b: 0x1b7,
|
|
1684
|
+
_0x3fae8b: 0x23c,
|
|
1685
|
+
_0x18a8e0: 0xd8
|
|
1686
|
+
}, _0xfdb29d = {
|
|
1687
|
+
_0x288a5a: 0xda,
|
|
1688
|
+
_0x2291ef: 0x21f,
|
|
1689
|
+
_0x8c3832: 0x1f9,
|
|
1690
|
+
_0x5a2fee: 0xf8
|
|
1691
|
+
}, _0x3eed8e = {
|
|
1692
|
+
_0x2447d7: 0x16a,
|
|
1693
|
+
_0x1b80e4: 0x143
|
|
1694
|
+
}, _0x2ab0c6 = { _0x3f6c70: 0x21b }, _0x2fcafc = {
|
|
1695
|
+
_0x373ec2: 0xeb,
|
|
1696
|
+
_0x97f11a: 0x213,
|
|
1697
|
+
_0x35bf6c: 0x1b9,
|
|
1698
|
+
_0x1fdcce: 0xd5,
|
|
1699
|
+
_0x32a0f9: 0x143
|
|
1700
|
+
}, _0x4dfbfe = {
|
|
1701
|
+
_0x41daaa: 0xeb,
|
|
1702
|
+
_0x2ed3ae: 0x160,
|
|
1703
|
+
_0xf7d6c4: 0x160,
|
|
1704
|
+
_0x352cdf: 0xbe,
|
|
1705
|
+
_0x547e54: 0xb8
|
|
1706
|
+
}, _0x1a95be = {
|
|
1707
|
+
_0x524237: 0x235,
|
|
1708
|
+
_0x56190f: 0x242,
|
|
1709
|
+
_0xcf6fb5: 0xc4
|
|
1710
|
+
}, _0x44842b = {
|
|
1711
|
+
_0x5ee1e3: 0x1b2,
|
|
1712
|
+
_0x3a5f5b: 0x1ff,
|
|
1713
|
+
_0x3511bc: 0x1bc,
|
|
1714
|
+
_0x4693fa: 0xc4,
|
|
1715
|
+
_0x16b8fa: 0xfa,
|
|
1716
|
+
_0xe75249: 0x159,
|
|
1717
|
+
_0x5abac2: 0x234,
|
|
1718
|
+
_0x2e0bc5: 0xc4,
|
|
1719
|
+
_0xdab012: 0x159,
|
|
1720
|
+
_0x37ec4f: 0xfa
|
|
1721
|
+
}, _0x13bd33 = {
|
|
1722
|
+
_0x4f0f31: 0x143,
|
|
1723
|
+
_0x52345f: 0xeb,
|
|
1724
|
+
_0x1bcfdd: 0x17a,
|
|
1725
|
+
_0x45a027: 0x17a
|
|
1726
|
+
}, _0x2e9201 = {
|
|
1727
|
+
_0x240565: 0x1ff,
|
|
1728
|
+
_0x30bf05: 0x243,
|
|
1729
|
+
_0xacef4e: 0xfa,
|
|
1730
|
+
_0x159ad8: 0xfa,
|
|
1731
|
+
_0x554f49: 0x174,
|
|
1732
|
+
_0x268903: 0x212,
|
|
1733
|
+
_0x434cae: 0x1b8,
|
|
1734
|
+
_0x550e48: 0x205,
|
|
1735
|
+
_0x1be5f5: 0x1e0,
|
|
1736
|
+
_0x2efdab: 0xcc,
|
|
1737
|
+
_0x43ff09: 0x176,
|
|
1738
|
+
_0x55f6f3: 0x1fa,
|
|
1739
|
+
_0x212566: 0x133,
|
|
1740
|
+
_0x3bc9af: 0x113,
|
|
1741
|
+
_0x49d68b: 0x1a1,
|
|
1742
|
+
_0x5dc997: 0x1a3,
|
|
1743
|
+
_0x4cafdf: 0x16c,
|
|
1744
|
+
_0x3828bd: 0x201,
|
|
1745
|
+
_0x18fb1b: 0x22b,
|
|
1746
|
+
_0xccc619: 0x1e8,
|
|
1747
|
+
_0x5c29e4: 0x1e8,
|
|
1748
|
+
_0x537aa0: 0x1d6,
|
|
1749
|
+
_0x2584a0: 0x143,
|
|
1750
|
+
_0x42a4ee: 0x17d,
|
|
1751
|
+
_0x5d6c80: 0x15a
|
|
1752
|
+
}, _0x233eae = {
|
|
1753
|
+
_0x252a72: 0x1ff,
|
|
1754
|
+
_0x56ed7f: 0x120,
|
|
1755
|
+
_0x16b14c: 0x1ff,
|
|
1756
|
+
_0x2349be: 0xe2,
|
|
1757
|
+
_0x450e7b: 0x177
|
|
1758
|
+
}, _0x27b7e1 = {
|
|
1759
|
+
_0x5b08db: 0x120,
|
|
1760
|
+
_0x411ce9: 0x146,
|
|
1761
|
+
_0x51cc58: 0x231,
|
|
1762
|
+
_0x59de4b: 0x1bd
|
|
1763
|
+
}, _0x496cd6 = {
|
|
1764
|
+
_0x53b2cd: 0x1ff,
|
|
1765
|
+
_0xc44c89: 0xd3,
|
|
1766
|
+
_0x1656af: 0x179,
|
|
1767
|
+
_0x2d27be: 0xfa,
|
|
1768
|
+
_0x56f967: 0x174,
|
|
1769
|
+
_0x296056: 0x164,
|
|
1770
|
+
_0xc2cd2b: 0x143,
|
|
1771
|
+
_0x2c5bb3: 0x1b6,
|
|
1772
|
+
_0x24ee97: 0x205,
|
|
1773
|
+
_0x102477: 0x11d,
|
|
1774
|
+
_0x25dca2: 0x122,
|
|
1775
|
+
_0x3af234: 0x134,
|
|
1776
|
+
_0x24d78b: 0x238,
|
|
1777
|
+
_0x1c3aa8: 0xcc,
|
|
1778
|
+
_0x1e01d9: 0xd9,
|
|
1779
|
+
_0x1d7c0a: 0x1fa,
|
|
1780
|
+
_0xfbeec7: 0x120,
|
|
1781
|
+
_0x1ea470: 0x133,
|
|
1782
|
+
_0xac5935: 0x118,
|
|
1783
|
+
_0x16ed77: 0xfa,
|
|
1784
|
+
_0x41c931: 0x1bf,
|
|
1785
|
+
_0x35dbe4: 0xfa,
|
|
1786
|
+
_0x4fd192: 0x1a1,
|
|
1787
|
+
_0x4fa892: 0x163,
|
|
1788
|
+
_0x54f12a: 0x1eb,
|
|
1789
|
+
_0x376296: 0x1e8,
|
|
1790
|
+
_0x4ddbe4: 0x1aa
|
|
1791
|
+
}, _0x485d2e = {
|
|
1792
|
+
_0x3e749d: 0x1e2,
|
|
1793
|
+
_0x37a5c7: 0x148
|
|
1794
|
+
}, _0x949f9a = _0x58fa01;
|
|
1795
|
+
function _0x2037c6(_0x1ab13c, _0x431352) {
|
|
1796
|
+
const _0x5047d1 = _0x3f6e;
|
|
1797
|
+
if (!_0x81c4e4[_0x5047d1(0xeb)])
|
|
1804
1798
|
return;
|
|
1805
|
-
if (!
|
|
1806
|
-
throw new Error(
|
|
1807
|
-
if (
|
|
1808
|
-
throw new Error(
|
|
1799
|
+
if (!_0x81c4e4[_0x5047d1(_0x485d2e._0x3e749d)])
|
|
1800
|
+
throw new Error(_0x1ab13c + _0x5047d1(0x1b1));
|
|
1801
|
+
if (_0x431352 !== _0x81c4e4['workerThreadTarget'])
|
|
1802
|
+
throw new Error(_0x1ab13c + _0x5047d1(0x178) + _0x81c4e4[_0x5047d1(_0x485d2e._0x3e749d)] + _0x5047d1(_0x485d2e._0x37a5c7) + _0x431352);
|
|
1809
1803
|
}
|
|
1810
|
-
async function
|
|
1811
|
-
const
|
|
1812
|
-
if (!
|
|
1804
|
+
async function _0x591def(_0x4bdb06) {
|
|
1805
|
+
const _0x5c84ad = _0x3f6e;
|
|
1806
|
+
if (!_0x81c4e4[_0x5c84ad(0x120)] || !_0x81c4e4[_0x5c84ad(_0x496cd6._0x53b2cd)] || _0x81c4e4[_0x5c84ad(0xeb)] || _0x81c4e4[_0x5c84ad(0x109)] !== !![])
|
|
1813
1807
|
return null;
|
|
1814
|
-
const
|
|
1815
|
-
if (
|
|
1808
|
+
const _0x33f649 = parseTarget(_0x4bdb06[_0x5c84ad(_0x496cd6._0xc44c89)]);
|
|
1809
|
+
if (_0x33f649[_0x5c84ad(0x196)] !== _0x5c84ad(0xd3))
|
|
1816
1810
|
return null;
|
|
1817
|
-
if (
|
|
1818
|
-
const
|
|
1811
|
+
if (_0x4bdb06[_0x5c84ad(_0x496cd6._0x1656af)] === _0x5c84ad(0x227)) {
|
|
1812
|
+
const _0x1b3e02 = _0x4bdb06[_0x5c84ad(_0x496cd6._0x2d27be)] == null ? _0x5c84ad(_0x496cd6._0x56f967) : '#' + _0x4bdb06[_0x5c84ad(0xfa)];
|
|
1819
1813
|
return {
|
|
1820
1814
|
'executionMode': 'main',
|
|
1821
1815
|
'stopMain': ![],
|
|
1822
1816
|
'workerHandoff': ![],
|
|
1823
|
-
'workerHandoffError':
|
|
1817
|
+
'workerHandoffError': _0x5c84ad(0x21a) + _0x1b3e02 + _0x5c84ad(_0x496cd6._0x296056)
|
|
1824
1818
|
};
|
|
1825
1819
|
}
|
|
1826
|
-
const
|
|
1827
|
-
let
|
|
1820
|
+
const _0x30d501 = _0x4bdb06[_0x5c84ad(0x1a0)] != null ? _0x33f649[_0x5c84ad(0xd7)] + ':t' + _0x4bdb06[_0x5c84ad(0x1a0)] : _0x33f649['channelTarget'] + ':' + _0x4bdb06[_0x5c84ad(0x11d)];
|
|
1821
|
+
let _0x47ebad;
|
|
1828
1822
|
try {
|
|
1829
|
-
const
|
|
1830
|
-
'channel':
|
|
1823
|
+
const _0x2d4eff = await _0x81c4e4[_0x5c84ad(_0x496cd6._0xc2cd2b)][_0x5c84ad(0x149)]({
|
|
1824
|
+
'channel': _0x30d501,
|
|
1831
1825
|
'limit': 0x14
|
|
1832
1826
|
});
|
|
1833
|
-
|
|
1827
|
+
_0x47ebad = _0x2d4eff['messages'][_0x5c84ad(_0x496cd6._0x2c5bb3)](_0x42f201 => _0x42f201['messageId'] === _0x4bdb06['messageId']);
|
|
1834
1828
|
} catch {
|
|
1835
|
-
|
|
1829
|
+
_0x47ebad = void 0x0;
|
|
1836
1830
|
}
|
|
1837
|
-
const
|
|
1838
|
-
|
|
1831
|
+
const _0x52a2b8 = _0x4bdb06[_0x5c84ad(0xfa)] == null ? '(legacy)' : '#' + _0x4bdb06['taskNumber'], _0x1818a4 = [
|
|
1832
|
+
_0x5c84ad(_0x496cd6._0x24ee97) + _0x30d501 + '\x20msg=' + _0x4bdb06[_0x5c84ad(_0x496cd6._0x102477)][_0x5c84ad(_0x496cd6._0x25dca2)](0x0, 0x8) + _0x5c84ad(0x111) + new Date()[_0x5c84ad(0x195)]() + _0x5c84ad(_0x496cd6._0x3af234) + _0x52a2b8 + '\x20已切换到\x20worker\x20执行',
|
|
1839
1833
|
'',
|
|
1840
|
-
|
|
1834
|
+
_0x47ebad ? _0x5c84ad(_0x496cd6._0x24d78b) + _0x47ebad[_0x5c84ad(_0x496cd6._0x1c3aa8)] : 'Root\x20task\x20message\x20id:\x20' + _0x4bdb06[_0x5c84ad(_0x496cd6._0x102477)],
|
|
1841
1835
|
'',
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
][
|
|
1836
|
+
_0x5c84ad(0x135) + _0x30d501,
|
|
1837
|
+
_0x5c84ad(_0x496cd6._0x1e01d9)
|
|
1838
|
+
][_0x5c84ad(_0x496cd6._0x1d7c0a)]('\x0a'), _0x40035a = await fetch(_0x81c4e4[_0x5c84ad(_0x496cd6._0xfbeec7)] + _0x5c84ad(_0x496cd6._0x1ea470), {
|
|
1845
1839
|
'method': 'POST',
|
|
1846
|
-
'headers': { 'Content-Type':
|
|
1847
|
-
'body': JSON[
|
|
1848
|
-
'agent_id':
|
|
1849
|
-
'thread_target':
|
|
1840
|
+
'headers': { 'Content-Type': _0x5c84ad(0x1ac) },
|
|
1841
|
+
'body': JSON[_0x5c84ad(0x113)]({
|
|
1842
|
+
'agent_id': _0x81c4e4[_0x5c84ad(0x1ff)],
|
|
1843
|
+
'thread_target': _0x30d501,
|
|
1850
1844
|
'spawn_packet': {
|
|
1851
|
-
'replyTarget':
|
|
1852
|
-
...
|
|
1845
|
+
'replyTarget': _0x30d501,
|
|
1846
|
+
..._0x4bdb06[_0x5c84ad(0x118)] ? { 'taskId': _0x4bdb06[_0x5c84ad(_0x496cd6._0xac5935)] } : _0x4bdb06[_0x5c84ad(_0x496cd6._0x16ed77)] != null ? { 'taskId': _0x5c84ad(_0x496cd6._0x41c931) + _0x4bdb06[_0x5c84ad(_0x496cd6._0x35dbe4)] } : {}
|
|
1853
1847
|
},
|
|
1854
1848
|
'payload': {
|
|
1855
|
-
'mode':
|
|
1856
|
-
'text':
|
|
1849
|
+
'mode': _0x5c84ad(_0x496cd6._0x4fd192),
|
|
1850
|
+
'text': _0x1818a4
|
|
1857
1851
|
}
|
|
1858
1852
|
})
|
|
1859
|
-
}),
|
|
1860
|
-
if (!
|
|
1861
|
-
throw new Error(
|
|
1853
|
+
}), _0x5f23a8 = await _0x40035a['json']();
|
|
1854
|
+
if (!_0x5f23a8['ok'])
|
|
1855
|
+
throw new Error(_0x5f23a8[_0x5c84ad(_0x496cd6._0x4fa892)] ?? _0x5c84ad(0x11b));
|
|
1862
1856
|
return {
|
|
1863
1857
|
'stopMain': !![],
|
|
1864
|
-
'threadTarget':
|
|
1865
|
-
'workerDisposition':
|
|
1858
|
+
'threadTarget': _0x30d501,
|
|
1859
|
+
'workerDisposition': _0x5f23a8[_0x5c84ad(_0x496cd6._0x54f12a)] === _0x5c84ad(0x1e8) ? _0x5c84ad(_0x496cd6._0x376296) : _0x5c84ad(0x23f),
|
|
1866
1860
|
'workerHandoff': !![],
|
|
1867
|
-
'workerSessionId':
|
|
1868
|
-
'executionMode':
|
|
1861
|
+
'workerSessionId': _0x5f23a8[_0x5c84ad(_0x496cd6._0x4ddbe4)] ?? '',
|
|
1862
|
+
'executionMode': _0x5c84ad(0x1ad)
|
|
1869
1863
|
};
|
|
1870
1864
|
}
|
|
1871
|
-
async function
|
|
1872
|
-
const
|
|
1873
|
-
if (!
|
|
1865
|
+
async function _0x2c68d5() {
|
|
1866
|
+
const _0x1019ae = _0x3f6e;
|
|
1867
|
+
if (!_0x81c4e4[_0x1019ae(_0x27b7e1._0x5b08db)] || !_0x81c4e4['agentId'] || _0x81c4e4['workerMode'])
|
|
1874
1868
|
return null;
|
|
1875
1869
|
try {
|
|
1876
|
-
const
|
|
1877
|
-
if (!
|
|
1870
|
+
const _0x43203c = await fetch(_0x81c4e4[_0x1019ae(0x120)] + _0x1019ae(0xfc) + encodeURIComponent(_0x81c4e4['agentId'])), _0x545467 = await _0x43203c[_0x1019ae(_0x27b7e1._0x411ce9)]();
|
|
1871
|
+
if (!_0x545467['ok'])
|
|
1878
1872
|
return null;
|
|
1879
|
-
const
|
|
1880
|
-
for (const
|
|
1881
|
-
|
|
1873
|
+
const _0xb23868 = new Set();
|
|
1874
|
+
for (const _0x4a8f96 of _0x545467[_0x1019ae(0x1bc)]) {
|
|
1875
|
+
_0x4a8f96[_0x1019ae(0xe2)] !== _0x1019ae(_0x27b7e1._0x51cc58) && _0x4a8f96[_0x1019ae(_0x27b7e1._0x59de4b)] && _0xb23868[_0x1019ae(0x159)](_0x4a8f96[_0x1019ae(0x1bd)]);
|
|
1882
1876
|
}
|
|
1883
|
-
return
|
|
1877
|
+
return _0xb23868[_0x1019ae(0x177)] > 0x0 ? _0xb23868 : null;
|
|
1884
1878
|
} catch {
|
|
1885
1879
|
return null;
|
|
1886
1880
|
}
|
|
1887
1881
|
}
|
|
1888
|
-
const
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1882
|
+
const _0x24b208 = new Set([
|
|
1883
|
+
_0x949f9a(0xc2),
|
|
1884
|
+
'idle',
|
|
1885
|
+
_0x949f9a(0x157)
|
|
1892
1886
|
]);
|
|
1893
|
-
async function
|
|
1894
|
-
const
|
|
1895
|
-
if (!
|
|
1887
|
+
async function _0x3a970f() {
|
|
1888
|
+
const _0x360fd6 = _0x949f9a;
|
|
1889
|
+
if (!_0x81c4e4[_0x360fd6(0x120)] || !_0x81c4e4[_0x360fd6(_0x233eae._0x252a72)] || _0x81c4e4[_0x360fd6(0xeb)])
|
|
1896
1890
|
return null;
|
|
1897
1891
|
try {
|
|
1898
|
-
const
|
|
1899
|
-
if (!
|
|
1892
|
+
const _0x1ee952 = await fetch(_0x81c4e4[_0x360fd6(_0x233eae._0x56ed7f)] + '/workers/list?agent_id=' + encodeURIComponent(_0x81c4e4[_0x360fd6(_0x233eae._0x16b14c)])), _0x694c88 = await _0x1ee952['json']();
|
|
1893
|
+
if (!_0x694c88['ok'])
|
|
1900
1894
|
return null;
|
|
1901
|
-
const
|
|
1902
|
-
for (const
|
|
1903
|
-
|
|
1895
|
+
const _0x3ef0a9 = new Set();
|
|
1896
|
+
for (const _0x27b780 of _0x694c88['workers']) {
|
|
1897
|
+
_0x24b208['has'](_0x27b780[_0x360fd6(_0x233eae._0x2349be)]) && _0x27b780[_0x360fd6(0x1bd)] && _0x3ef0a9['add'](_0x27b780['thread_target']);
|
|
1904
1898
|
}
|
|
1905
|
-
return
|
|
1899
|
+
return _0x3ef0a9[_0x360fd6(_0x233eae._0x450e7b)] > 0x0 ? _0x3ef0a9 : null;
|
|
1906
1900
|
} catch {
|
|
1907
1901
|
return null;
|
|
1908
1902
|
}
|
|
1909
1903
|
}
|
|
1910
1904
|
return {
|
|
1911
|
-
async 'send_message'(
|
|
1912
|
-
const
|
|
1913
|
-
if (!
|
|
1914
|
-
const
|
|
1915
|
-
if (
|
|
1916
|
-
const
|
|
1917
|
-
if (
|
|
1905
|
+
async 'send_message'(_0x1ab68d) {
|
|
1906
|
+
const _0xd0b095 = _0x949f9a;
|
|
1907
|
+
if (!_0x81c4e4[_0xd0b095(0xeb)] && _0x81c4e4['workerModeEnabled'] && _0x81c4e4['daemonLocalUrl'] && _0x81c4e4[_0xd0b095(_0x2e9201._0x240565)]) {
|
|
1908
|
+
const _0x1ffde4 = await _0x81c4e4[_0xd0b095(0x143)]['resolveTarget'](_0x1ab68d[_0xd0b095(0x212)]);
|
|
1909
|
+
if (_0x1ffde4['task'] && _0x1ffde4[_0xd0b095(0x1b8)]) {
|
|
1910
|
+
const _0x50e02d = _0x1ffde4[_0xd0b095(_0x2e9201._0x30bf05)][_0xd0b095(_0x2e9201._0xacef4e)] != null ? '#' + _0x1ffde4[_0xd0b095(0x243)][_0xd0b095(_0x2e9201._0x159ad8)] : _0xd0b095(_0x2e9201._0x554f49), _0x1a6faa = _0x1ffde4[_0xd0b095(0x1a0)] != null ? _0x1ffde4[_0xd0b095(_0x2e9201._0x268903)] + ':t' + _0x1ffde4['threadNumber'] : _0x1ffde4[_0xd0b095(_0x2e9201._0x268903)] + ':' + _0x1ffde4[_0xd0b095(_0x2e9201._0x434cae)][_0xd0b095(0x122)](0x0, 0x8), _0x4e16c5 = await _0x3a970f();
|
|
1911
|
+
if (_0x4e16c5?.[_0xd0b095(0x220)](_0x1a6faa))
|
|
1918
1912
|
return [
|
|
1919
|
-
'Task\x20' +
|
|
1920
|
-
|
|
1921
|
-
][
|
|
1922
|
-
const
|
|
1923
|
-
|
|
1913
|
+
'Task\x20' + _0x50e02d + _0xd0b095(0x19f) + _0x1a6faa + _0xd0b095(0x203),
|
|
1914
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1915
|
+
][_0xd0b095(0x1fa)]('\x0a');
|
|
1916
|
+
const _0x4ffaff = [
|
|
1917
|
+
_0xd0b095(_0x2e9201._0x550e48) + _0x1a6faa + _0xd0b095(_0x2e9201._0x1be5f5) + new Date()[_0xd0b095(0x195)]() + ']\x20@system:\x20[enter-handoff]',
|
|
1924
1918
|
'',
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
][
|
|
1930
|
-
'method':
|
|
1931
|
-
'headers': { 'Content-Type':
|
|
1932
|
-
'body': JSON[
|
|
1933
|
-
'agent_id':
|
|
1934
|
-
'thread_target':
|
|
1919
|
+
'Original\x20message:\x20' + _0x1ab68d[_0xd0b095(_0x2e9201._0x2efdab)],
|
|
1920
|
+
_0xd0b095(_0x2e9201._0x43ff09) + _0x50e02d + '\x20(' + _0x1ffde4[_0xd0b095(0x243)]['taskId'] + ')',
|
|
1921
|
+
_0xd0b095(0x135) + _0x1a6faa,
|
|
1922
|
+
_0xd0b095(0xf1)
|
|
1923
|
+
][_0xd0b095(_0x2e9201._0x55f6f3)]('\x0a'), _0x950e3f = await fetch(_0x81c4e4['daemonLocalUrl'] + _0xd0b095(_0x2e9201._0x212566), {
|
|
1924
|
+
'method': _0xd0b095(0x1e5),
|
|
1925
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1926
|
+
'body': JSON[_0xd0b095(_0x2e9201._0x3bc9af)]({
|
|
1927
|
+
'agent_id': _0x81c4e4[_0xd0b095(0x1ff)],
|
|
1928
|
+
'thread_target': _0x1a6faa,
|
|
1935
1929
|
'spawn_packet': {
|
|
1936
|
-
'replyTarget':
|
|
1937
|
-
'taskId':
|
|
1930
|
+
'replyTarget': _0x1a6faa,
|
|
1931
|
+
'taskId': _0x1ffde4['task']['taskId']
|
|
1938
1932
|
},
|
|
1939
1933
|
'payload': {
|
|
1940
|
-
'mode':
|
|
1941
|
-
'text':
|
|
1934
|
+
'mode': _0xd0b095(_0x2e9201._0x49d68b),
|
|
1935
|
+
'text': _0x4ffaff
|
|
1942
1936
|
}
|
|
1943
1937
|
})
|
|
1944
|
-
}),
|
|
1945
|
-
if (!
|
|
1946
|
-
throw new Error(
|
|
1938
|
+
}), _0x12315e = await _0x950e3f['json']();
|
|
1939
|
+
if (!_0x12315e['ok'])
|
|
1940
|
+
throw new Error(_0x12315e['error'] ?? _0xd0b095(_0x2e9201._0x5dc997));
|
|
1947
1941
|
return [
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
][
|
|
1942
|
+
_0xd0b095(_0x2e9201._0x4cafdf) + _0x50e02d + _0xd0b095(0x19f) + _0x1a6faa + _0xd0b095(_0x2e9201._0x3828bd),
|
|
1943
|
+
_0xd0b095(_0x2e9201._0x18fb1b) + (_0x12315e[_0xd0b095(0x1eb)] === _0xd0b095(_0x2e9201._0xccc619) ? _0xd0b095(_0x2e9201._0x5c29e4) : 'started') + '.',
|
|
1944
|
+
_0xd0b095(_0x2e9201._0x537aa0)
|
|
1945
|
+
][_0xd0b095(0x1fa)]('\x0a');
|
|
1952
1946
|
}
|
|
1953
1947
|
}
|
|
1954
|
-
const
|
|
1955
|
-
'attachmentIds':
|
|
1956
|
-
'content':
|
|
1957
|
-
'target':
|
|
1958
|
-
'visibility':
|
|
1948
|
+
const _0x2f328c = await _0x81c4e4[_0xd0b095(_0x2e9201._0x2584a0)][_0xd0b095(0xc5)]({
|
|
1949
|
+
'attachmentIds': _0x1ab68d[_0xd0b095(_0x2e9201._0x42a4ee)],
|
|
1950
|
+
'content': _0x1ab68d[_0xd0b095(0xcc)],
|
|
1951
|
+
'target': _0x1ab68d[_0xd0b095(0x212)],
|
|
1952
|
+
'visibility': _0x1ab68d['visibility']
|
|
1959
1953
|
});
|
|
1960
|
-
return
|
|
1954
|
+
return _0xd0b095(0xc7) + _0x1ab68d[_0xd0b095(0x212)] + _0xd0b095(_0x2e9201._0x5d6c80) + _0x2f328c[_0xd0b095(0x11d)];
|
|
1961
1955
|
},
|
|
1962
1956
|
async 'check_messages'() {
|
|
1963
|
-
const
|
|
1964
|
-
if (!
|
|
1965
|
-
const
|
|
1966
|
-
if (
|
|
1967
|
-
return formatCheckMessages(
|
|
1957
|
+
const _0x4d82ca = _0x949f9a, _0x3e97ad = await _0x81c4e4[_0x4d82ca(_0x13bd33._0x4f0f31)][_0x4d82ca(0xfd)]();
|
|
1958
|
+
if (!_0x81c4e4[_0x4d82ca(_0x13bd33._0x52345f)]) {
|
|
1959
|
+
const _0x5060d0 = await _0x2c68d5();
|
|
1960
|
+
if (_0x5060d0)
|
|
1961
|
+
return formatCheckMessages(_0x3e97ad[_0x4d82ca(_0x13bd33._0x1bcfdd)][_0x4d82ca(0x161)](_0x488ff6 => !_0x5060d0[_0x4d82ca(0x220)](_0x488ff6['target'])));
|
|
1968
1962
|
}
|
|
1969
|
-
return formatCheckMessages(
|
|
1963
|
+
return formatCheckMessages(_0x3e97ad[_0x4d82ca(_0x13bd33._0x45a027)]);
|
|
1970
1964
|
},
|
|
1971
|
-
async 'read_history'(
|
|
1972
|
-
const
|
|
1973
|
-
return formatHistory(
|
|
1965
|
+
async 'read_history'(_0x35059a) {
|
|
1966
|
+
const _0x10dba9 = await _0x81c4e4['client']['readHistory'](_0x35059a);
|
|
1967
|
+
return formatHistory(_0x10dba9);
|
|
1974
1968
|
},
|
|
1975
1969
|
async 'list_server'() {
|
|
1976
|
-
const
|
|
1977
|
-
return formatServerDirectory(
|
|
1970
|
+
const _0x3b9d12 = _0x949f9a, _0x182876 = await _0x81c4e4[_0x3b9d12(0x143)]['listServer']();
|
|
1971
|
+
return formatServerDirectory(_0x182876);
|
|
1978
1972
|
},
|
|
1979
|
-
async 'list_tasks'(
|
|
1980
|
-
const
|
|
1981
|
-
let
|
|
1982
|
-
if (
|
|
1973
|
+
async 'list_tasks'(_0x1f7659) {
|
|
1974
|
+
const _0x8d5b9d = _0x949f9a, _0x26d9be = await _0x81c4e4[_0x8d5b9d(0x143)][_0x8d5b9d(_0x44842b._0x5ee1e3)](_0x1f7659);
|
|
1975
|
+
let _0x185c20;
|
|
1976
|
+
if (_0x81c4e4[_0x8d5b9d(0x120)] && _0x81c4e4[_0x8d5b9d(_0x44842b._0x3a5f5b)])
|
|
1983
1977
|
try {
|
|
1984
|
-
const
|
|
1985
|
-
if (
|
|
1986
|
-
const
|
|
1987
|
-
|
|
1988
|
-
for (const
|
|
1989
|
-
if (
|
|
1978
|
+
const _0x1d89e2 = await fetch(_0x81c4e4[_0x8d5b9d(0x120)] + _0x8d5b9d(0xfc) + encodeURIComponent(_0x81c4e4['agentId'])), _0x48d374 = await _0x1d89e2[_0x8d5b9d(0x146)]();
|
|
1979
|
+
if (_0x48d374['ok']) {
|
|
1980
|
+
const _0x31ff6c = _0x1f7659[_0x8d5b9d(0xd3)] + ':';
|
|
1981
|
+
_0x185c20 = new Set();
|
|
1982
|
+
for (const _0x105905 of _0x48d374[_0x8d5b9d(_0x44842b._0x3511bc)]) {
|
|
1983
|
+
if (_0x105905['status'] === _0x8d5b9d(0x231))
|
|
1990
1984
|
continue;
|
|
1991
|
-
if (
|
|
1992
|
-
const
|
|
1993
|
-
if (
|
|
1994
|
-
|
|
1985
|
+
if (_0x105905[_0x8d5b9d(0x1bd)]?.[_0x8d5b9d(0x124)](_0x31ff6c)) {
|
|
1986
|
+
const _0x5c0854 = _0x105905[_0x8d5b9d(0x1bd)]['slice'](_0x31ff6c[_0x8d5b9d(0x101)]), _0x54b20b = _0x26d9be[_0x8d5b9d(_0x44842b._0x4693fa)][_0x8d5b9d(0x1b6)](_0x5eec96 => _0x5eec96[_0x8d5b9d(0x11d)]?.[_0x8d5b9d(0x124)](_0x5c0854) === !![]);
|
|
1987
|
+
if (_0x54b20b?.[_0x8d5b9d(_0x44842b._0x16b8fa)] != null) {
|
|
1988
|
+
_0x185c20[_0x8d5b9d(_0x44842b._0xe75249)](_0x54b20b[_0x8d5b9d(0xfa)]);
|
|
1995
1989
|
continue;
|
|
1996
1990
|
}
|
|
1997
1991
|
}
|
|
1998
|
-
if (
|
|
1999
|
-
const
|
|
2000
|
-
|
|
1992
|
+
if (_0x105905[_0x8d5b9d(_0x44842b._0x5abac2)]) {
|
|
1993
|
+
const _0xafaef0 = _0x26d9be[_0x8d5b9d(_0x44842b._0x2e0bc5)]['find'](_0x545801 => _0x545801[_0x8d5b9d(0x118)] === _0x105905[_0x8d5b9d(0x234)]);
|
|
1994
|
+
_0xafaef0?.['taskNumber'] != null && _0x185c20[_0x8d5b9d(_0x44842b._0xdab012)](_0xafaef0[_0x8d5b9d(_0x44842b._0x37ec4f)]);
|
|
2001
1995
|
}
|
|
2002
1996
|
}
|
|
2003
1997
|
}
|
|
2004
1998
|
} catch {
|
|
2005
1999
|
}
|
|
2006
|
-
return formatTaskList(
|
|
2000
|
+
return formatTaskList(_0x26d9be[_0x8d5b9d(0xc4)], _0x185c20);
|
|
2007
2001
|
},
|
|
2008
|
-
async 'create_tasks'(
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2011
|
-
const
|
|
2012
|
-
return formatCreatedTasks(
|
|
2002
|
+
async 'create_tasks'(_0x2d8c1c) {
|
|
2003
|
+
const _0x4f553e = _0x949f9a;
|
|
2004
|
+
_0x2037c6(_0x4f553e(_0x1a95be._0x524237), _0x2d8c1c['channel']);
|
|
2005
|
+
const _0x2ddae1 = await _0x81c4e4['client'][_0x4f553e(_0x1a95be._0x56190f)](_0x2d8c1c);
|
|
2006
|
+
return formatCreatedTasks(_0x2ddae1[_0x4f553e(_0x1a95be._0xcf6fb5)]);
|
|
2013
2007
|
},
|
|
2014
|
-
async 'claim_tasks'(
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2008
|
+
async 'claim_tasks'(_0x3b09fb) {
|
|
2009
|
+
const _0x450204 = {
|
|
2010
|
+
_0x1e2f2f: 0x1f5,
|
|
2011
|
+
_0x413791: 0xd3,
|
|
2012
|
+
_0x57ea32: 0x179,
|
|
2013
|
+
_0x5d316f: 0x11d,
|
|
2014
|
+
_0x3bfdee: 0x118,
|
|
2015
|
+
_0x51b8c3: 0xfa
|
|
2016
|
+
}, _0x5c5146 = _0x949f9a;
|
|
2017
|
+
if (_0x81c4e4[_0x5c5146(_0x4dfbfe._0x41daaa)]) {
|
|
2018
|
+
_0x2037c6('claim_tasks', _0x3b09fb[_0x5c5146(0xd3)]);
|
|
2019
|
+
if (_0x3b09fb[_0x5c5146(_0x4dfbfe._0x2ed3ae)] && _0x3b09fb[_0x5c5146(_0x4dfbfe._0xf7d6c4)][_0x5c5146(0x101)] > 0x0)
|
|
2022
2020
|
throw new Error('claim_tasks:\x20worker\x20cannot\x20claim\x20by\x20message_ids\x20(top-level\x20message\x20promotion\x20is\x20main-agent\x20only);\x20use\x20subtask_numbers\x20inside\x20your\x20own\x20task\x20thread.');
|
|
2023
|
-
if (!
|
|
2024
|
-
throw new Error(
|
|
2021
|
+
if (!_0x3b09fb['subtask_numbers'] || _0x3b09fb[_0x5c5146(_0x4dfbfe._0x352cdf)][_0x5c5146(0x101)] === 0x0)
|
|
2022
|
+
throw new Error(_0x5c5146(0x1c0));
|
|
2025
2023
|
}
|
|
2026
|
-
const
|
|
2027
|
-
const
|
|
2028
|
-
if (!
|
|
2029
|
-
return
|
|
2024
|
+
const _0x7441cf = await _0x81c4e4['client'][_0x5c5146(0x14b)](_0x3b09fb), _0x24fd9d = await Promise[_0x5c5146(_0x4dfbfe._0x547e54)](_0x7441cf[_0x5c5146(0x1b5)]['map'](async _0x421292 => {
|
|
2025
|
+
const _0x1f6737 = _0x5c5146;
|
|
2026
|
+
if (!_0x421292[_0x1f6737(_0x450204._0x1e2f2f)] || !_0x421292[_0x1f6737(0x11d)])
|
|
2027
|
+
return _0x421292;
|
|
2030
2028
|
try {
|
|
2031
|
-
const
|
|
2032
|
-
'channel':
|
|
2033
|
-
'executionMode':
|
|
2034
|
-
'messageId':
|
|
2035
|
-
'taskId':
|
|
2036
|
-
'taskNumber':
|
|
2037
|
-
'threadNumber':
|
|
2029
|
+
const _0x366f27 = await _0x591def({
|
|
2030
|
+
'channel': _0x3b09fb[_0x1f6737(_0x450204._0x413791)],
|
|
2031
|
+
'executionMode': _0x421292[_0x1f6737(_0x450204._0x57ea32)],
|
|
2032
|
+
'messageId': _0x421292[_0x1f6737(_0x450204._0x5d316f)],
|
|
2033
|
+
'taskId': _0x421292[_0x1f6737(_0x450204._0x3bfdee)],
|
|
2034
|
+
'taskNumber': _0x421292[_0x1f6737(_0x450204._0x51b8c3)],
|
|
2035
|
+
'threadNumber': _0x421292[_0x1f6737(0x1a0)]
|
|
2038
2036
|
});
|
|
2039
|
-
return
|
|
2040
|
-
...
|
|
2041
|
-
...
|
|
2042
|
-
} :
|
|
2043
|
-
} catch (
|
|
2037
|
+
return _0x366f27 ? {
|
|
2038
|
+
..._0x421292,
|
|
2039
|
+
..._0x366f27
|
|
2040
|
+
} : _0x421292;
|
|
2041
|
+
} catch (_0x1f5815) {
|
|
2044
2042
|
return {
|
|
2045
|
-
...
|
|
2046
|
-
'workerHandoffError':
|
|
2043
|
+
..._0x421292,
|
|
2044
|
+
'workerHandoffError': _0x1f5815 instanceof Error ? _0x1f5815['message'] : 'worker\x20handoff\x20failed'
|
|
2047
2045
|
};
|
|
2048
2046
|
}
|
|
2049
2047
|
}));
|
|
2050
|
-
return formatClaimTaskResults(
|
|
2048
|
+
return formatClaimTaskResults(_0x24fd9d);
|
|
2051
2049
|
},
|
|
2052
|
-
async 'unclaim_task'(
|
|
2053
|
-
const
|
|
2054
|
-
if (
|
|
2055
|
-
|
|
2056
|
-
if (
|
|
2057
|
-
throw new Error(
|
|
2050
|
+
async 'unclaim_task'(_0x1d3b50) {
|
|
2051
|
+
const _0x2f8a18 = _0x949f9a;
|
|
2052
|
+
if (_0x81c4e4[_0x2f8a18(_0x2fcafc._0x373ec2)]) {
|
|
2053
|
+
_0x2037c6(_0x2f8a18(_0x2fcafc._0x97f11a), _0x1d3b50[_0x2f8a18(0xd3)]);
|
|
2054
|
+
if (_0x1d3b50[_0x2f8a18(_0x2fcafc._0x35bf6c)] == null)
|
|
2055
|
+
throw new Error(_0x2f8a18(_0x2fcafc._0x1fdcce));
|
|
2058
2056
|
}
|
|
2059
|
-
const
|
|
2060
|
-
return formatUnclaimTaskResult(
|
|
2057
|
+
const _0x36e36c = await _0x81c4e4[_0x2f8a18(_0x2fcafc._0x32a0f9)][_0x2f8a18(0x183)](_0x1d3b50);
|
|
2058
|
+
return formatUnclaimTaskResult(_0x36e36c);
|
|
2061
2059
|
},
|
|
2062
|
-
async 'update_task_status'(
|
|
2063
|
-
const
|
|
2064
|
-
|
|
2065
|
-
const
|
|
2066
|
-
return formatUpdateTaskStatusResult(
|
|
2060
|
+
async 'update_task_status'(_0x36773d) {
|
|
2061
|
+
const _0x6a2484 = _0x949f9a;
|
|
2062
|
+
_0x2037c6(_0x6a2484(_0x2ab0c6._0x3f6c70), _0x36773d[_0x6a2484(0xd3)]);
|
|
2063
|
+
const _0x2f394b = await _0x81c4e4[_0x6a2484(0x143)][_0x6a2484(0x10b)](_0x36773d);
|
|
2064
|
+
return formatUpdateTaskStatusResult(_0x2f394b);
|
|
2067
2065
|
},
|
|
2068
|
-
async 'upload_file'(
|
|
2069
|
-
const
|
|
2070
|
-
sizeBytes:
|
|
2071
|
-
...
|
|
2072
|
-
} =
|
|
2073
|
-
'channel':
|
|
2074
|
-
...
|
|
2066
|
+
async 'upload_file'(_0x426a31) {
|
|
2067
|
+
const _0x42cccb = _0x949f9a, _0x3bf48d = await _0x81c4e4[_0x42cccb(_0x3eed8e._0x2447d7)](_0x426a31[_0x42cccb(0x1d9)]), {
|
|
2068
|
+
sizeBytes: _0x27b161,
|
|
2069
|
+
..._0x1c0c14
|
|
2070
|
+
} = _0x3bf48d, _0x3b1ece = await _0x81c4e4[_0x42cccb(_0x3eed8e._0x1b80e4)][_0x42cccb(0x1e7)]({
|
|
2071
|
+
'channel': _0x426a31[_0x42cccb(0xd3)],
|
|
2072
|
+
..._0x1c0c14
|
|
2075
2073
|
});
|
|
2076
|
-
return formatUploadResult(
|
|
2074
|
+
return formatUploadResult(_0x3b1ece);
|
|
2077
2075
|
},
|
|
2078
|
-
async 'view_file'(
|
|
2079
|
-
const
|
|
2080
|
-
if (
|
|
2081
|
-
return formatViewFileResult(
|
|
2082
|
-
const
|
|
2083
|
-
'attachmentId':
|
|
2084
|
-
'contentType':
|
|
2085
|
-
'data':
|
|
2086
|
-
'originalFilename':
|
|
2076
|
+
async 'view_file'(_0x10c3a9) {
|
|
2077
|
+
const _0x422a78 = _0x949f9a, _0x4dfb4a = await _0x81c4e4[_0x422a78(0x1f9)][_0x422a78(_0xfdb29d._0x288a5a)](_0x10c3a9['attachment_id']);
|
|
2078
|
+
if (_0x4dfb4a)
|
|
2079
|
+
return formatViewFileResult(_0x4dfb4a, !![]);
|
|
2080
|
+
const _0x278c45 = await _0x81c4e4[_0x422a78(0x143)][_0x422a78(_0xfdb29d._0x2291ef)](_0x10c3a9['attachment_id']), _0x154db3 = await _0x81c4e4[_0x422a78(_0xfdb29d._0x8c3832)][_0x422a78(0x13c)]({
|
|
2081
|
+
'attachmentId': _0x10c3a9[_0x422a78(0x19b)],
|
|
2082
|
+
'contentType': _0x278c45[_0x422a78(0x1cb)],
|
|
2083
|
+
'data': _0x278c45['data'],
|
|
2084
|
+
'originalFilename': _0x278c45[_0x422a78(_0xfdb29d._0x5a2fee)]
|
|
2087
2085
|
});
|
|
2088
|
-
return formatViewFileResult(
|
|
2086
|
+
return formatViewFileResult(_0x154db3, ![]);
|
|
2089
2087
|
},
|
|
2090
|
-
async 'get_worker_status'(
|
|
2091
|
-
const
|
|
2092
|
-
if (!
|
|
2093
|
-
return
|
|
2094
|
-
const
|
|
2095
|
-
if (!
|
|
2096
|
-
return
|
|
2097
|
-
return
|
|
2088
|
+
async 'get_worker_status'(_0x3d29c8) {
|
|
2089
|
+
const _0x16d9d9 = _0x949f9a;
|
|
2090
|
+
if (!_0x81c4e4[_0x16d9d9(_0x78ce79._0x3ad1e8)])
|
|
2091
|
+
return _0x16d9d9(0xd4);
|
|
2092
|
+
const _0x31f959 = await fetch(_0x81c4e4['daemonLocalUrl'] + _0x16d9d9(_0x78ce79._0x2a750b) + encodeURIComponent(_0x3d29c8[_0x16d9d9(0x23c)])), _0x35a15e = await _0x31f959[_0x16d9d9(0x146)]();
|
|
2093
|
+
if (!_0x35a15e['ok'])
|
|
2094
|
+
return _0x16d9d9(0x1c6) + _0x3d29c8[_0x16d9d9(_0x78ce79._0x3fae8b)] + '\x22\x20not\x20found';
|
|
2095
|
+
return _0x16d9d9(0x1c6) + _0x3d29c8['work_key'] + _0x16d9d9(_0x78ce79._0x18a8e0) + _0x35a15e[_0x16d9d9(0xe2)];
|
|
2098
2096
|
},
|
|
2099
|
-
async 'park_worker'(
|
|
2100
|
-
const
|
|
2101
|
-
if (!
|
|
2102
|
-
return
|
|
2103
|
-
const
|
|
2104
|
-
'method':
|
|
2105
|
-
'headers': { 'Content-Type':
|
|
2106
|
-
'body': JSON[
|
|
2107
|
-
}),
|
|
2108
|
-
if (!
|
|
2109
|
-
throw new Error(
|
|
2110
|
-
return
|
|
2097
|
+
async 'park_worker'(_0x36321d) {
|
|
2098
|
+
const _0x3cde9a = _0x949f9a;
|
|
2099
|
+
if (!_0x81c4e4[_0x3cde9a(_0x5d3e89._0x3c64b5)])
|
|
2100
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2101
|
+
const _0x28ca0f = await fetch(_0x81c4e4[_0x3cde9a(0x120)] + _0x3cde9a(0xe0), {
|
|
2102
|
+
'method': _0x3cde9a(_0x5d3e89._0x491741),
|
|
2103
|
+
'headers': { 'Content-Type': _0x3cde9a(_0x5d3e89._0x2dd8d7) },
|
|
2104
|
+
'body': JSON[_0x3cde9a(0x113)]({ 'work_key': _0x36321d['work_key'] })
|
|
2105
|
+
}), _0x3f48bb = await _0x28ca0f[_0x3cde9a(_0x5d3e89._0x4867e0)]();
|
|
2106
|
+
if (!_0x3f48bb['ok'])
|
|
2107
|
+
throw new Error(_0x3f48bb[_0x3cde9a(0x163)] ?? 'park_worker\x20failed');
|
|
2108
|
+
return _0x3cde9a(_0x5d3e89._0x1f3d4b) + _0x36321d['work_key'] + _0x3cde9a(0x158);
|
|
2111
2109
|
},
|
|
2112
|
-
async 'mark_waiting_input'(
|
|
2113
|
-
const
|
|
2114
|
-
if (!
|
|
2115
|
-
return
|
|
2116
|
-
const
|
|
2117
|
-
'method':
|
|
2110
|
+
async 'mark_waiting_input'(_0x5e9870) {
|
|
2111
|
+
const _0x523136 = _0x949f9a;
|
|
2112
|
+
if (!_0x81c4e4[_0x523136(0x120)] || !_0x81c4e4[_0x523136(0x1ff)])
|
|
2113
|
+
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
2114
|
+
const _0x44231d = await fetch(_0x81c4e4[_0x523136(0x120)] + _0x523136(_0x3c361f._0x388acb), {
|
|
2115
|
+
'method': _0x523136(_0x3c361f._0x36eeb1),
|
|
2118
2116
|
'headers': { 'Content-Type': 'application/json' },
|
|
2119
|
-
'body': JSON[
|
|
2120
|
-
'work_key':
|
|
2121
|
-
'agent_id':
|
|
2117
|
+
'body': JSON[_0x523136(_0x3c361f._0xd07d21)]({
|
|
2118
|
+
'work_key': _0x5e9870[_0x523136(_0x3c361f._0x38b1e3)],
|
|
2119
|
+
'agent_id': _0x81c4e4[_0x523136(0x1ff)]
|
|
2122
2120
|
})
|
|
2123
|
-
}),
|
|
2124
|
-
if (!
|
|
2125
|
-
throw new Error(
|
|
2126
|
-
return
|
|
2121
|
+
}), _0x7f5e1f = await _0x44231d[_0x523136(0x146)]();
|
|
2122
|
+
if (!_0x7f5e1f['ok'])
|
|
2123
|
+
throw new Error(_0x7f5e1f[_0x523136(_0x3c361f._0x1404d2)] ?? _0x523136(_0x3c361f._0x3b652f));
|
|
2124
|
+
return _0x523136(_0x3c361f._0x4b77ad) + _0x5e9870[_0x523136(_0x3c361f._0x38b1e3)] + _0x523136(0x1e3);
|
|
2127
2125
|
},
|
|
2128
|
-
async 'escalate_to_main'(
|
|
2129
|
-
const
|
|
2130
|
-
if (!
|
|
2131
|
-
return
|
|
2132
|
-
const
|
|
2126
|
+
async 'escalate_to_main'(_0x5661fa) {
|
|
2127
|
+
const _0x573a7e = _0x949f9a;
|
|
2128
|
+
if (!_0x81c4e4['daemonLocalUrl'])
|
|
2129
|
+
return _0x573a7e(0xd4);
|
|
2130
|
+
const _0x391710 = await fetch(_0x81c4e4[_0x573a7e(0x120)] + _0x573a7e(_0x4ca15e._0x19f990), {
|
|
2133
2131
|
'method': 'POST',
|
|
2134
|
-
'headers': { 'Content-Type':
|
|
2135
|
-
'body': JSON[
|
|
2136
|
-
'work_key':
|
|
2137
|
-
'reason':
|
|
2132
|
+
'headers': { 'Content-Type': _0x573a7e(_0x4ca15e._0x45a2be) },
|
|
2133
|
+
'body': JSON[_0x573a7e(_0x4ca15e._0x366df1)]({
|
|
2134
|
+
'work_key': _0x5661fa[_0x573a7e(_0x4ca15e._0x26d60b)],
|
|
2135
|
+
'reason': _0x5661fa[_0x573a7e(_0x4ca15e._0x3ee5ef)]
|
|
2138
2136
|
})
|
|
2139
|
-
}),
|
|
2140
|
-
if (!
|
|
2141
|
-
throw new Error(
|
|
2142
|
-
return
|
|
2137
|
+
}), _0xc28a52 = await _0x391710[_0x573a7e(0x146)]();
|
|
2138
|
+
if (!_0xc28a52['ok'])
|
|
2139
|
+
throw new Error(_0xc28a52[_0x573a7e(0x163)] ?? _0x573a7e(0x222));
|
|
2140
|
+
return _0x573a7e(0x191) + _0x5661fa['reason'];
|
|
2143
2141
|
}
|
|
2144
2142
|
};
|
|
2145
2143
|
}
|
|
2146
|
-
function textResult(
|
|
2147
|
-
const _0x46dc22 = _0x2869e3;
|
|
2144
|
+
function textResult(_0x337ae8, _0x128a4e = ![]) {
|
|
2148
2145
|
return {
|
|
2149
2146
|
'content': [{
|
|
2150
|
-
'type':
|
|
2151
|
-
'text':
|
|
2147
|
+
'type': 'text',
|
|
2148
|
+
'text': _0x337ae8
|
|
2152
2149
|
}],
|
|
2153
|
-
...
|
|
2150
|
+
..._0x128a4e ? { 'isError': !![] } : {}
|
|
2154
2151
|
};
|
|
2155
2152
|
}
|
|
2156
|
-
async function registerChatBridgeTools(
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
},
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
},
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
},
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2153
|
+
async function registerChatBridgeTools(_0x1e33e3, _0x2b73de, _0x559fb6) {
|
|
2154
|
+
const _0x5b3384 = {
|
|
2155
|
+
_0x4f1f45: 0x129,
|
|
2156
|
+
_0x4d0512: 0x23b,
|
|
2157
|
+
_0x1ad059: 0x103,
|
|
2158
|
+
_0xf5b2b7: 0xf4,
|
|
2159
|
+
_0x36e231: 0x16f,
|
|
2160
|
+
_0x286c60: 0x11c,
|
|
2161
|
+
_0x3861e3: 0x137,
|
|
2162
|
+
_0x3fd890: 0x23b,
|
|
2163
|
+
_0x18d5c2: 0xe7,
|
|
2164
|
+
_0x438091: 0x103,
|
|
2165
|
+
_0x34b87a: 0x12d,
|
|
2166
|
+
_0x1a5809: 0x17e,
|
|
2167
|
+
_0xeb6a38: 0xf4,
|
|
2168
|
+
_0xb9b006: 0x103,
|
|
2169
|
+
_0x232a23: 0x235,
|
|
2170
|
+
_0x4db0b7: 0x136,
|
|
2171
|
+
_0x50b39e: 0x153,
|
|
2172
|
+
_0x23b0d0: 0x22c,
|
|
2173
|
+
_0x2d2ef9: 0x15c,
|
|
2174
|
+
_0x5accaa: 0x116,
|
|
2175
|
+
_0x4d6efa: 0x1f0,
|
|
2176
|
+
_0x4e1096: 0x17e,
|
|
2177
|
+
_0x331aa3: 0x1fe,
|
|
2178
|
+
_0x490e9b: 0x21c,
|
|
2179
|
+
_0x28f3dd: 0x103,
|
|
2180
|
+
_0xbb1e00: 0x21b,
|
|
2181
|
+
_0x32ca6c: 0xe7,
|
|
2182
|
+
_0x38cfa6: 0x103,
|
|
2183
|
+
_0x1cdc7c: 0x23d,
|
|
2184
|
+
_0x21fb2d: 0x19a,
|
|
2185
|
+
_0x9267b5: 0x17e,
|
|
2186
|
+
_0x5ad8b2: 0x17e,
|
|
2187
|
+
_0x1c2d60: 0x17e,
|
|
2188
|
+
_0x206b02: 0x125,
|
|
2189
|
+
_0x1fdd67: 0xeb,
|
|
2190
|
+
_0x48cb86: 0x23b,
|
|
2191
|
+
_0x4f4f30: 0x1ec
|
|
2192
|
+
}, _0xb4b6bf = { _0x31e10b: 0x222 }, _0x4a9920 = { _0x8b1691: 0x1fd }, _0x2b19c7 = { _0x51f6bc: 0x1d8 }, _0x460d21 = {
|
|
2193
|
+
_0x1c3c3d: 0x21b,
|
|
2194
|
+
_0x358260: 0x1a2
|
|
2195
|
+
}, _0x2d592d = { _0x21fc40: 0x217 }, _0x2fbe6f = {
|
|
2196
|
+
_0x17345f: 0x235,
|
|
2197
|
+
_0x2f9844: 0x1a2
|
|
2198
|
+
}, _0x38cf7c = { _0x34e56f: 0x1a2 }, _0x301077 = {
|
|
2199
|
+
_0x2df5a6: 0x12d,
|
|
2200
|
+
_0x25e5d3: 0x1a2
|
|
2201
|
+
}, _0x165592 = {
|
|
2202
|
+
_0xfd68e6: 0xd1,
|
|
2203
|
+
_0x1376a6: 0xc1
|
|
2204
|
+
}, _0x237bdb = { _0x414550: 0x180 }, _0x4281ce = { _0x589d69: 0x215 }, _0x5e7ccb = _0x58fa01, {z: _0x3d3058} = await import('zod');
|
|
2205
|
+
_0x1e33e3['tool'](_0x5e7ccb(0x187), _0x5e7ccb(_0x5b3384._0x4f1f45), {
|
|
2206
|
+
'target': _0x3d3058[_0x5e7ccb(0x23b)](),
|
|
2207
|
+
'content': _0x3d3058[_0x5e7ccb(_0x5b3384._0x4d0512)](),
|
|
2208
|
+
'attachment_ids': _0x3d3058['array'](_0x3d3058[_0x5e7ccb(_0x5b3384._0x4d0512)]())[_0x5e7ccb(_0x5b3384._0x1ad059)](),
|
|
2209
|
+
'visibility': _0x3d3058[_0x5e7ccb(_0x5b3384._0xf5b2b7)]([
|
|
2210
|
+
_0x5e7ccb(_0x5b3384._0x36e231),
|
|
2211
|
+
_0x5e7ccb(0x127)
|
|
2212
|
+
])['optional']()[_0x5e7ccb(_0x5b3384._0x286c60)](_0x5e7ccb(0x13f))
|
|
2213
|
+
}, async _0x502e2e => {
|
|
2214
|
+
const _0x1f23bb = _0x5e7ccb;
|
|
2212
2215
|
try {
|
|
2213
|
-
return textResult(await
|
|
2214
|
-
} catch (
|
|
2215
|
-
return textResult(
|
|
2216
|
+
return textResult(await _0x2b73de['send_message'](_0x502e2e));
|
|
2217
|
+
} catch (_0x4cfb03) {
|
|
2218
|
+
return textResult(_0x4cfb03 instanceof Error ? _0x4cfb03['message'] : _0x1f23bb(_0x4281ce._0x589d69), !![]);
|
|
2216
2219
|
}
|
|
2217
|
-
}),
|
|
2218
|
-
const
|
|
2220
|
+
}), _0x1e33e3[_0x5e7ccb(0x17e)](_0x5e7ccb(_0x5b3384._0x3861e3), _0x5e7ccb(0x12b), {}, async () => {
|
|
2221
|
+
const _0x3ad45f = _0x5e7ccb;
|
|
2219
2222
|
try {
|
|
2220
|
-
return textResult(await
|
|
2221
|
-
} catch (
|
|
2222
|
-
return textResult(
|
|
2223
|
+
return textResult(await _0x2b73de[_0x3ad45f(0x137)]());
|
|
2224
|
+
} catch (_0x580bf9) {
|
|
2225
|
+
return textResult(_0x580bf9 instanceof Error ? _0x580bf9['message'] : _0x3ad45f(_0x237bdb._0x414550), !![]);
|
|
2223
2226
|
}
|
|
2224
|
-
}),
|
|
2225
|
-
'channel':
|
|
2226
|
-
'limit':
|
|
2227
|
-
'before':
|
|
2228
|
-
'after':
|
|
2229
|
-
}, async
|
|
2230
|
-
const
|
|
2227
|
+
}), _0x1e33e3['tool'](_0x5e7ccb(0xd1), 'Read\x20message\x20history\x20for\x20a\x20channel,\x20DM,\x20or\x20thread\x20target.', {
|
|
2228
|
+
'channel': _0x3d3058[_0x5e7ccb(_0x5b3384._0x3fd890)](),
|
|
2229
|
+
'limit': _0x3d3058['number']()['optional'](),
|
|
2230
|
+
'before': _0x3d3058[_0x5e7ccb(_0x5b3384._0x18d5c2)]()['optional'](),
|
|
2231
|
+
'after': _0x3d3058[_0x5e7ccb(_0x5b3384._0x18d5c2)]()[_0x5e7ccb(_0x5b3384._0x438091)]()
|
|
2232
|
+
}, async _0x54a08e => {
|
|
2233
|
+
const _0x24807 = _0x5e7ccb;
|
|
2231
2234
|
try {
|
|
2232
|
-
return textResult(await
|
|
2233
|
-
} catch (
|
|
2234
|
-
return textResult(
|
|
2235
|
+
return textResult(await _0x2b73de[_0x24807(_0x165592._0xfd68e6)](_0x54a08e));
|
|
2236
|
+
} catch (_0x33a4c0) {
|
|
2237
|
+
return textResult(_0x33a4c0 instanceof Error ? _0x33a4c0['message'] : _0x24807(_0x165592._0x1376a6), !![]);
|
|
2235
2238
|
}
|
|
2236
|
-
}),
|
|
2237
|
-
const
|
|
2239
|
+
}), _0x1e33e3[_0x5e7ccb(0x17e)](_0x5e7ccb(_0x5b3384._0x34b87a), 'List\x20channels,\x20agents,\x20and\x20humans\x20in\x20the\x20current\x20server.', {}, async () => {
|
|
2240
|
+
const _0x5c1657 = _0x5e7ccb;
|
|
2238
2241
|
try {
|
|
2239
|
-
return textResult(await
|
|
2240
|
-
} catch (
|
|
2241
|
-
return textResult(
|
|
2242
|
+
return textResult(await _0x2b73de[_0x5c1657(_0x301077._0x2df5a6)]());
|
|
2243
|
+
} catch (_0x3dd1a4) {
|
|
2244
|
+
return textResult(_0x3dd1a4 instanceof Error ? _0x3dd1a4[_0x5c1657(_0x301077._0x25e5d3)] : 'list_server\x20failed', !![]);
|
|
2242
2245
|
}
|
|
2243
|
-
}),
|
|
2244
|
-
'channel':
|
|
2245
|
-
'status':
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2246
|
+
}), _0x1e33e3[_0x5e7ccb(_0x5b3384._0x1a5809)](_0x5e7ccb(0x1ef), _0x5e7ccb(0x1df), {
|
|
2247
|
+
'channel': _0x3d3058['string'](),
|
|
2248
|
+
'status': _0x3d3058[_0x5e7ccb(_0x5b3384._0xeb6a38)]([
|
|
2249
|
+
_0x5e7ccb(0xf9),
|
|
2250
|
+
_0x5e7ccb(0x142),
|
|
2251
|
+
'in_review',
|
|
2249
2252
|
'done'
|
|
2250
|
-
])[
|
|
2251
|
-
}, async
|
|
2252
|
-
const
|
|
2253
|
+
])[_0x5e7ccb(_0x5b3384._0xb9b006)]()
|
|
2254
|
+
}, async _0x3a570f => {
|
|
2255
|
+
const _0x29339c = _0x5e7ccb;
|
|
2253
2256
|
try {
|
|
2254
|
-
return textResult(await
|
|
2255
|
-
} catch (
|
|
2256
|
-
return textResult(
|
|
2257
|
+
return textResult(await _0x2b73de['list_tasks'](_0x3a570f));
|
|
2258
|
+
} catch (_0x56e59a) {
|
|
2259
|
+
return textResult(_0x56e59a instanceof Error ? _0x56e59a[_0x29339c(_0x38cf7c._0x34e56f)] : 'list_tasks\x20failed', !![]);
|
|
2257
2260
|
}
|
|
2258
|
-
}),
|
|
2259
|
-
'channel':
|
|
2260
|
-
'idempotency_key':
|
|
2261
|
-
'tasks':
|
|
2262
|
-
'title':
|
|
2263
|
-
'description':
|
|
2264
|
-
'priority':
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2261
|
+
}), _0x1e33e3['tool'](_0x5e7ccb(_0x5b3384._0x232a23), _0x5e7ccb(_0x5b3384._0x4db0b7), {
|
|
2262
|
+
'channel': _0x3d3058[_0x5e7ccb(0x23b)](),
|
|
2263
|
+
'idempotency_key': _0x3d3058[_0x5e7ccb(0x23b)]()[_0x5e7ccb(0x103)](),
|
|
2264
|
+
'tasks': _0x3d3058[_0x5e7ccb(_0x5b3384._0x50b39e)](_0x3d3058['object']({
|
|
2265
|
+
'title': _0x3d3058['string'](),
|
|
2266
|
+
'description': _0x3d3058[_0x5e7ccb(0x23b)]()[_0x5e7ccb(0x103)](),
|
|
2267
|
+
'priority': _0x3d3058[_0x5e7ccb(0xf4)]([
|
|
2268
|
+
_0x5e7ccb(_0x5b3384._0x23b0d0),
|
|
2269
|
+
_0x5e7ccb(_0x5b3384._0x2d2ef9),
|
|
2270
|
+
_0x5e7ccb(_0x5b3384._0x5accaa),
|
|
2271
|
+
_0x5e7ccb(_0x5b3384._0x4d6efa)
|
|
2269
2272
|
])['optional']()
|
|
2270
2273
|
}))
|
|
2271
|
-
}, async
|
|
2272
|
-
const
|
|
2274
|
+
}, async _0x370090 => {
|
|
2275
|
+
const _0x35398b = _0x5e7ccb;
|
|
2273
2276
|
try {
|
|
2274
|
-
return textResult(await
|
|
2275
|
-
} catch (
|
|
2276
|
-
return textResult(
|
|
2277
|
+
return textResult(await _0x2b73de[_0x35398b(_0x2fbe6f._0x17345f)](_0x370090));
|
|
2278
|
+
} catch (_0x3ec196) {
|
|
2279
|
+
return textResult(_0x3ec196 instanceof Error ? _0x3ec196[_0x35398b(_0x2fbe6f._0x2f9844)] : 'create_tasks\x20failed', !![]);
|
|
2277
2280
|
}
|
|
2278
|
-
}),
|
|
2279
|
-
'channel':
|
|
2280
|
-
'task_numbers':
|
|
2281
|
-
'subtask_numbers':
|
|
2282
|
-
'message_ids':
|
|
2283
|
-
'evidence':
|
|
2284
|
-
'create_thread':
|
|
2285
|
-
'create_task':
|
|
2286
|
-
}))[
|
|
2287
|
-
'idempotency_key':
|
|
2288
|
-
}, async
|
|
2289
|
-
const
|
|
2281
|
+
}), _0x1e33e3[_0x5e7ccb(_0x5b3384._0x4e1096)](_0x5e7ccb(_0x5b3384._0x331aa3), _0x5e7ccb(_0x5b3384._0x490e9b), {
|
|
2282
|
+
'channel': _0x3d3058[_0x5e7ccb(0x23b)](),
|
|
2283
|
+
'task_numbers': _0x3d3058[_0x5e7ccb(0x153)](_0x3d3058['number']())[_0x5e7ccb(0x103)](),
|
|
2284
|
+
'subtask_numbers': _0x3d3058['array'](_0x3d3058[_0x5e7ccb(0xe7)]())[_0x5e7ccb(_0x5b3384._0x438091)](),
|
|
2285
|
+
'message_ids': _0x3d3058[_0x5e7ccb(0x153)](_0x3d3058[_0x5e7ccb(0x23b)]())[_0x5e7ccb(0x103)](),
|
|
2286
|
+
'evidence': _0x3d3058[_0x5e7ccb(0x23a)](_0x3d3058['string'](), _0x3d3058[_0x5e7ccb(0x22e)]({
|
|
2287
|
+
'create_thread': _0x3d3058['unknown']()[_0x5e7ccb(_0x5b3384._0x1ad059)](),
|
|
2288
|
+
'create_task': _0x3d3058[_0x5e7ccb(0x15b)]()[_0x5e7ccb(_0x5b3384._0x28f3dd)]()
|
|
2289
|
+
}))[_0x5e7ccb(_0x5b3384._0x28f3dd)](),
|
|
2290
|
+
'idempotency_key': _0x3d3058['string']()[_0x5e7ccb(_0x5b3384._0x438091)]()
|
|
2291
|
+
}, async _0x596d04 => {
|
|
2292
|
+
const _0x2746a6 = _0x5e7ccb;
|
|
2290
2293
|
try {
|
|
2291
|
-
return textResult(await
|
|
2292
|
-
} catch (
|
|
2293
|
-
return textResult(
|
|
2294
|
+
return textResult(await _0x2b73de['claim_tasks'](_0x596d04));
|
|
2295
|
+
} catch (_0x3d269a) {
|
|
2296
|
+
return textResult(_0x3d269a instanceof Error ? _0x3d269a[_0x2746a6(0x1a2)] : 'claim_tasks\x20failed', !![]);
|
|
2294
2297
|
}
|
|
2295
|
-
}),
|
|
2296
|
-
'channel':
|
|
2297
|
-
'task_number':
|
|
2298
|
-
'subtask_number':
|
|
2299
|
-
'idempotency_key':
|
|
2300
|
-
}, async
|
|
2301
|
-
const
|
|
2298
|
+
}), _0x1e33e3[_0x5e7ccb(0x17e)](_0x5e7ccb(0x213), _0x5e7ccb(0x208), {
|
|
2299
|
+
'channel': _0x3d3058['string'](),
|
|
2300
|
+
'task_number': _0x3d3058[_0x5e7ccb(0xe7)](),
|
|
2301
|
+
'subtask_number': _0x3d3058[_0x5e7ccb(_0x5b3384._0x18d5c2)]()[_0x5e7ccb(0x103)](),
|
|
2302
|
+
'idempotency_key': _0x3d3058[_0x5e7ccb(0x23b)]()[_0x5e7ccb(0x103)]()
|
|
2303
|
+
}, async _0x247101 => {
|
|
2304
|
+
const _0x5c966a = _0x5e7ccb;
|
|
2302
2305
|
try {
|
|
2303
|
-
return textResult(await
|
|
2304
|
-
} catch (
|
|
2305
|
-
return textResult(
|
|
2306
|
+
return textResult(await _0x2b73de['unclaim_task'](_0x247101));
|
|
2307
|
+
} catch (_0x11df10) {
|
|
2308
|
+
return textResult(_0x11df10 instanceof Error ? _0x11df10[_0x5c966a(0x1a2)] : _0x5c966a(_0x2d592d._0x21fc40), !![]);
|
|
2306
2309
|
}
|
|
2307
|
-
}),
|
|
2308
|
-
'channel':
|
|
2309
|
-
'task_number':
|
|
2310
|
-
'subtask_number':
|
|
2311
|
-
'status':
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2310
|
+
}), _0x1e33e3[_0x5e7ccb(0x17e)](_0x5e7ccb(_0x5b3384._0xbb1e00), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.\x20When\x20moving\x20work\x20to\x20in_review,\x20check\x20your\x20memory\x20or\x20channel\x20rules\x20and\x20send\x20a\x20reviewer\x20mention\x20yourself\x20when\x20appropriate.', {
|
|
2311
|
+
'channel': _0x3d3058[_0x5e7ccb(_0x5b3384._0x4d0512)](),
|
|
2312
|
+
'task_number': _0x3d3058[_0x5e7ccb(_0x5b3384._0x32ca6c)](),
|
|
2313
|
+
'subtask_number': _0x3d3058[_0x5e7ccb(0xe7)]()[_0x5e7ccb(_0x5b3384._0x38cfa6)](),
|
|
2314
|
+
'status': _0x3d3058[_0x5e7ccb(0xf4)]([
|
|
2315
|
+
_0x5e7ccb(0xf9),
|
|
2316
|
+
_0x5e7ccb(0x142),
|
|
2317
|
+
'in_review',
|
|
2318
|
+
_0x5e7ccb(_0x5b3384._0x1cdc7c)
|
|
2316
2319
|
]),
|
|
2317
|
-
'idempotency_key':
|
|
2318
|
-
}, async
|
|
2319
|
-
const
|
|
2320
|
+
'idempotency_key': _0x3d3058[_0x5e7ccb(0x23b)]()['optional']()
|
|
2321
|
+
}, async _0x360f73 => {
|
|
2322
|
+
const _0xa36f1e = _0x5e7ccb;
|
|
2320
2323
|
try {
|
|
2321
|
-
return textResult(await
|
|
2322
|
-
} catch (
|
|
2323
|
-
return textResult(
|
|
2324
|
+
return textResult(await _0x2b73de[_0xa36f1e(_0x460d21._0x1c3c3d)](_0x360f73));
|
|
2325
|
+
} catch (_0x1a64e3) {
|
|
2326
|
+
return textResult(_0x1a64e3 instanceof Error ? _0x1a64e3[_0xa36f1e(_0x460d21._0x358260)] : _0xa36f1e(0x167), !![]);
|
|
2324
2327
|
}
|
|
2325
|
-
}),
|
|
2326
|
-
'channel':
|
|
2327
|
-
'file_path':
|
|
2328
|
-
}, async
|
|
2329
|
-
const
|
|
2328
|
+
}), _0x1e33e3['tool'](_0x5e7ccb(_0x5b3384._0x21fb2d), _0x5e7ccb(0x189), {
|
|
2329
|
+
'channel': _0x3d3058['string'](),
|
|
2330
|
+
'file_path': _0x3d3058[_0x5e7ccb(_0x5b3384._0x4d0512)]()
|
|
2331
|
+
}, async _0x2cfb4f => {
|
|
2332
|
+
const _0x137fcd = _0x5e7ccb;
|
|
2330
2333
|
try {
|
|
2331
|
-
return textResult(await
|
|
2332
|
-
} catch (
|
|
2333
|
-
return textResult(
|
|
2334
|
+
return textResult(await _0x2b73de[_0x137fcd(0x19a)](_0x2cfb4f));
|
|
2335
|
+
} catch (_0x39ee96) {
|
|
2336
|
+
return textResult(_0x39ee96 instanceof Error ? _0x39ee96[_0x137fcd(0x1a2)] : _0x137fcd(0x132), !![]);
|
|
2334
2337
|
}
|
|
2335
|
-
}),
|
|
2336
|
-
const
|
|
2338
|
+
}), _0x1e33e3[_0x5e7ccb(_0x5b3384._0x9267b5)](_0x5e7ccb(0x1d8), _0x5e7ccb(0x1cf), { 'attachment_id': _0x3d3058['string']() }, async _0x5a373f => {
|
|
2339
|
+
const _0x3fb284 = _0x5e7ccb;
|
|
2337
2340
|
try {
|
|
2338
|
-
return textResult(await
|
|
2339
|
-
} catch (
|
|
2340
|
-
return textResult(
|
|
2341
|
+
return textResult(await _0x2b73de[_0x3fb284(_0x2b19c7._0x51f6bc)](_0x5a373f));
|
|
2342
|
+
} catch (_0x58fae9) {
|
|
2343
|
+
return textResult(_0x58fae9 instanceof Error ? _0x58fae9['message'] : 'view_file\x20failed', !![]);
|
|
2341
2344
|
}
|
|
2342
|
-
}),
|
|
2343
|
-
const
|
|
2345
|
+
}), _0x1e33e3[_0x5e7ccb(_0x5b3384._0x5ad8b2)]('get_worker_status', 'Check\x20the\x20current\x20status\x20of\x20a\x20spawned\x20worker\x20by\x20its\x20work\x20key.', { 'work_key': _0x3d3058[_0x5e7ccb(_0x5b3384._0x4d0512)]() }, async _0x1a20e9 => {
|
|
2346
|
+
const _0x1e442c = _0x5e7ccb;
|
|
2344
2347
|
try {
|
|
2345
|
-
return textResult(await
|
|
2346
|
-
} catch (
|
|
2347
|
-
return textResult(
|
|
2348
|
+
return textResult(await _0x2b73de['get_worker_status'](_0x1a20e9));
|
|
2349
|
+
} catch (_0x21515b) {
|
|
2350
|
+
return textResult(_0x21515b instanceof Error ? _0x21515b[_0x1e442c(0x1a2)] : _0x1e442c(_0x4a9920._0x8b1691), !![]);
|
|
2348
2351
|
}
|
|
2349
|
-
}),
|
|
2350
|
-
const
|
|
2352
|
+
}), _0x1e33e3[_0x5e7ccb(_0x5b3384._0x1c2d60)](_0x5e7ccb(_0x5b3384._0x206b02), 'Worker-only.\x20Park\x20the\x20current\x20worker\x20lane\x20after\x20you\x20have\x20already\x20reported\x20results\x20in\x20this\x20thread.\x20This\x20does\x20not\x20end\x20the\x20session;\x20same-thread\x20follow-up\x20will\x20resume\x20this\x20lane.', { 'work_key': _0x3d3058[_0x5e7ccb(0x23b)]() }, async _0x25b2c1 => {
|
|
2353
|
+
const _0x50fe48 = _0x5e7ccb;
|
|
2351
2354
|
try {
|
|
2352
|
-
return textResult(await
|
|
2353
|
-
} catch (
|
|
2354
|
-
return textResult(
|
|
2355
|
+
return textResult(await _0x2b73de[_0x50fe48(0x125)](_0x25b2c1));
|
|
2356
|
+
} catch (_0x6db68d) {
|
|
2357
|
+
return textResult(_0x6db68d instanceof Error ? _0x6db68d[_0x50fe48(0x1a2)] : 'park_worker\x20failed', !![]);
|
|
2355
2358
|
}
|
|
2356
|
-
}), !
|
|
2357
|
-
'work_key':
|
|
2358
|
-
'reason':
|
|
2359
|
-
}, async
|
|
2359
|
+
}), !_0x559fb6?.[_0x5e7ccb(_0x5b3384._0x1fdd67)] && _0x1e33e3[_0x5e7ccb(0x17e)]('escalate_to_main', _0x5e7ccb(0x19c), {
|
|
2360
|
+
'work_key': _0x3d3058[_0x5e7ccb(_0x5b3384._0x48cb86)](),
|
|
2361
|
+
'reason': _0x3d3058[_0x5e7ccb(0x23b)]()
|
|
2362
|
+
}, async _0xf3b970 => {
|
|
2363
|
+
const _0x1c2579 = _0x5e7ccb;
|
|
2360
2364
|
try {
|
|
2361
|
-
return textResult(await
|
|
2362
|
-
} catch (
|
|
2363
|
-
return textResult(
|
|
2365
|
+
return textResult(await _0x2b73de[_0x1c2579(0xbc)](_0xf3b970));
|
|
2366
|
+
} catch (_0x2ffeb1) {
|
|
2367
|
+
return textResult(_0x2ffeb1 instanceof Error ? _0x2ffeb1['message'] : _0x1c2579(_0xb4b6bf._0x31e10b), !![]);
|
|
2364
2368
|
}
|
|
2365
|
-
}),
|
|
2366
|
-
const
|
|
2369
|
+
}), _0x559fb6?.[_0x5e7ccb(_0x5b3384._0x1fdd67)] && _0x1e33e3[_0x5e7ccb(0x17e)]('mark_waiting_input', _0x5e7ccb(_0x5b3384._0x4f4f30), { 'work_key': _0x3d3058['string']() }, async _0x5ca7ae => {
|
|
2370
|
+
const _0x7ced97 = _0x5e7ccb;
|
|
2367
2371
|
try {
|
|
2368
|
-
return textResult(await
|
|
2369
|
-
} catch (
|
|
2370
|
-
return textResult(
|
|
2372
|
+
return textResult(await _0x2b73de[_0x7ced97(0x147)](_0x5ca7ae));
|
|
2373
|
+
} catch (_0x2b872b) {
|
|
2374
|
+
return textResult(_0x2b872b instanceof Error ? _0x2b872b['message'] : _0x7ced97(0x154), !![]);
|
|
2371
2375
|
}
|
|
2372
2376
|
});
|
|
2373
2377
|
}
|
|
2374
|
-
async function createChatBridgeServer(
|
|
2375
|
-
const
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2378
|
+
async function createChatBridgeServer(_0x229719) {
|
|
2379
|
+
const _0x45c799 = {
|
|
2380
|
+
_0x30ab22: 0x20b,
|
|
2381
|
+
_0x3e078d: 0x20f,
|
|
2382
|
+
_0x4a323c: 0xeb
|
|
2383
|
+
}, _0x17946d = _0x58fa01, {McpServer: _0x13e48d} = await import(_0x17946d(_0x45c799._0x30ab22)), _0x59346c = new _0x13e48d({
|
|
2384
|
+
'name': _0x17946d(0x1c4),
|
|
2385
|
+
'version': _0x17946d(_0x45c799._0x3e078d)
|
|
2386
|
+
}), _0x8bffb8 = createChatBridgeHandlers(_0x229719);
|
|
2387
|
+
return await registerChatBridgeTools(_0x59346c, _0x8bffb8, { 'workerMode': _0x229719[_0x17946d(_0x45c799._0x4a323c)] }), {
|
|
2388
|
+
'handlers': _0x8bffb8,
|
|
2389
|
+
'server': _0x59346c
|
|
2382
2390
|
};
|
|
2383
2391
|
}
|
|
2384
|
-
function readFlag(
|
|
2385
|
-
const
|
|
2386
|
-
if (
|
|
2392
|
+
function readFlag(_0x4a7e64, _0x101925) {
|
|
2393
|
+
const _0xcb8f8e = _0x58fa01, _0x48e088 = _0x4a7e64[_0xcb8f8e(0x141)](_0x101925);
|
|
2394
|
+
if (_0x48e088 === -0x1)
|
|
2387
2395
|
return void 0x0;
|
|
2388
|
-
return
|
|
2396
|
+
return _0x4a7e64[_0x48e088 + 0x1];
|
|
2389
2397
|
}
|
|
2390
|
-
function parseChatBridgeArgs(
|
|
2391
|
-
const
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
if (!_0x810aa5)
|
|
2398
|
+
function parseChatBridgeArgs(_0x11cdb2) {
|
|
2399
|
+
const _0x17b2e1 = {
|
|
2400
|
+
_0x4c8616: 0xfb,
|
|
2401
|
+
_0x1b9d60: 0x15d,
|
|
2402
|
+
_0x115ee6: 0xca,
|
|
2403
|
+
_0x2e1b2b: 0x1f4,
|
|
2404
|
+
_0x2a72b8: 0x17f
|
|
2405
|
+
}, _0x22b388 = _0x58fa01, _0x37150d = readFlag(_0x11cdb2, '--agent-id'), _0x3a5d2b = readFlag(_0x11cdb2, '--attachment-cache-dir'), _0x5182c2 = readFlag(_0x11cdb2, _0x22b388(_0x17b2e1._0x4c8616)), _0xed0804 = readFlag(_0x11cdb2, _0x22b388(0x245)), _0x2805d1 = readFlag(_0x11cdb2, _0x22b388(0xe8)) ?? _0x22b388(_0x17b2e1._0x1b9d60), _0x1550d6 = readFlag(_0x11cdb2, '--daemon-local-url'), _0x4c018a = readFlag(_0x11cdb2, '--session-id'), _0x20a2dd = readFlag(_0x11cdb2, _0x22b388(_0x17b2e1._0x115ee6)), _0x2d0711 = readFlag(_0x11cdb2, '--worker-session-id'), _0x410c1a = readFlag(_0x11cdb2, '--worker-thread-target'), _0x4db69c = _0x11cdb2[_0x22b388(_0x17b2e1._0x2e1b2b)]('--worker-mode'), _0x5eb230 = _0xed0804 === void 0x0 ? void 0x0 : Number[_0x22b388(_0x17b2e1._0x2a72b8)](_0xed0804, 0xa);
|
|
2406
|
+
if (!_0x37150d)
|
|
2407
|
+
throw new Error(_0x22b388(0x17c));
|
|
2408
|
+
if (!_0x5182c2)
|
|
2402
2409
|
throw new Error('Missing\x20--daemon-api-key');
|
|
2403
|
-
if (
|
|
2404
|
-
throw new Error(
|
|
2410
|
+
if (_0xed0804 !== void 0x0 && (_0x5eb230 === void 0x0 || !Number[_0x22b388(0xdf)](_0x5eb230) || _0x5eb230 < 0x0))
|
|
2411
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2405
2412
|
return {
|
|
2406
|
-
'agentId':
|
|
2407
|
-
'attachmentCacheDir':
|
|
2408
|
-
'daemonApiKey':
|
|
2409
|
-
'daemonLocalUrl':
|
|
2410
|
-
'initialLastSeenSeq':
|
|
2411
|
-
'sessionId':
|
|
2412
|
-
'serverUrl':
|
|
2413
|
-
'workerModeEnabled':
|
|
2414
|
-
'workerSessionId':
|
|
2415
|
-
'workerThreadTarget':
|
|
2416
|
-
'workerMode':
|
|
2413
|
+
'agentId': _0x37150d,
|
|
2414
|
+
'attachmentCacheDir': _0x3a5d2b,
|
|
2415
|
+
'daemonApiKey': _0x5182c2,
|
|
2416
|
+
'daemonLocalUrl': _0x1550d6,
|
|
2417
|
+
'initialLastSeenSeq': _0x5eb230,
|
|
2418
|
+
'sessionId': _0x4c018a,
|
|
2419
|
+
'serverUrl': _0x2805d1,
|
|
2420
|
+
'workerModeEnabled': _0x20a2dd === void 0x0 ? void 0x0 : _0x20a2dd !== _0x22b388(0x1d4),
|
|
2421
|
+
'workerSessionId': _0x2d0711,
|
|
2422
|
+
'workerThreadTarget': _0x410c1a,
|
|
2423
|
+
'workerMode': _0x4db69c
|
|
2417
2424
|
};
|
|
2418
2425
|
}
|
|
2419
|
-
async function runChatBridgeCli(
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
'
|
|
2426
|
-
'
|
|
2427
|
-
'
|
|
2428
|
-
'daemonLocalUrl': _0x307d59['daemonLocalUrl'],
|
|
2426
|
+
async function runChatBridgeCli(_0x2c1ce4) {
|
|
2427
|
+
const _0x2eaa4b = {
|
|
2428
|
+
_0x2a6225: 0x1ff,
|
|
2429
|
+
_0x515ec9: 0xeb
|
|
2430
|
+
}, _0x434b73 = _0x58fa01, _0x85ffb3 = parseChatBridgeArgs(_0x2c1ce4), {StdioServerTransport: _0x586a2f} = await import('@modelcontextprotocol/sdk/server/stdio.js'), _0x57ed87 = createInternalAgentClient(_0x85ffb3), _0x3432ee = createAttachmentCache({ 'cacheDir': _0x85ffb3[_0x434b73(0x20c)] }), _0x4579ef = await createChatBridgeServer({
|
|
2431
|
+
'agentId': _0x85ffb3[_0x434b73(_0x2eaa4b._0x2a6225)],
|
|
2432
|
+
'attachmentCache': _0x3432ee,
|
|
2433
|
+
'client': _0x57ed87,
|
|
2434
|
+
'daemonLocalUrl': _0x85ffb3[_0x434b73(0x120)],
|
|
2429
2435
|
'uploadPreparer': prepareUploadFile,
|
|
2430
|
-
'workerModeEnabled':
|
|
2431
|
-
'workerMode':
|
|
2432
|
-
'workerThreadTarget':
|
|
2436
|
+
'workerModeEnabled': _0x85ffb3[_0x434b73(0x109)],
|
|
2437
|
+
'workerMode': _0x85ffb3[_0x434b73(_0x2eaa4b._0x515ec9)],
|
|
2438
|
+
'workerThreadTarget': _0x85ffb3[_0x434b73(0x1e2)]
|
|
2433
2439
|
});
|
|
2434
|
-
await
|
|
2440
|
+
await _0x4579ef['server'][_0x434b73(0x1e6)](new _0x586a2f());
|
|
2435
2441
|
}
|
|
2436
|
-
var executedAsEntry = process[
|
|
2437
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2442
|
+
var executedAsEntry = process['argv'][0x1] ? import.meta.url === pathToFileURL(process['argv'][0x1])[_0x58fa01(0x140)] : ![];
|
|
2443
|
+
executedAsEntry && await runChatBridgeCli(process[_0x58fa01(0x107)][_0x58fa01(0x122)](0x2));
|
|
2438
2444
|
export {
|
|
2439
2445
|
createChatBridgeHandlers,
|
|
2440
2446
|
createChatBridgeServer,
|