@dscord/daemon 0.1.62 → 0.1.63
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 +2168 -2198
- package/dist/index.js +11237 -11310
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, _0x1adfbf = _0x7e16, _0x2e829e = _0x564876();
|
|
1
|
+
const _0x2980fe = _0x1c13;
|
|
2
|
+
(function (_0x1ae774, _0x388721) {
|
|
3
|
+
const _0x2537de = {
|
|
4
|
+
_0x2a1c57: 0x13c,
|
|
5
|
+
_0x5d24de: 0x263,
|
|
6
|
+
_0x40a302: 0x1d9,
|
|
7
|
+
_0x9dd823: 0xf7
|
|
8
|
+
}, _0x3e918d = _0x1c13, _0x1707e6 = _0x1ae774();
|
|
10
9
|
while (!![]) {
|
|
11
10
|
try {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
11
|
+
const _0x350b3b = -parseInt(_0x3e918d(_0x2537de._0x2a1c57)) / 0x1 * (parseInt(_0x3e918d(0x158)) / 0x2) + -parseInt(_0x3e918d(0x1b1)) / 0x3 * (-parseInt(_0x3e918d(0x10a)) / 0x4) + -parseInt(_0x3e918d(_0x2537de._0x5d24de)) / 0x5 + -parseInt(_0x3e918d(0x204)) / 0x6 + parseInt(_0x3e918d(_0x2537de._0x40a302)) / 0x7 * (parseInt(_0x3e918d(_0x2537de._0x9dd823)) / 0x8) + -parseInt(_0x3e918d(0x261)) / 0x9 + parseInt(_0x3e918d(0x159)) / 0xa;
|
|
12
|
+
if (_0x350b3b === _0x388721)
|
|
14
13
|
break;
|
|
15
14
|
else
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
15
|
+
_0x1707e6['push'](_0x1707e6['shift']());
|
|
16
|
+
} catch (_0x5872c3) {
|
|
17
|
+
_0x1707e6['push'](_0x1707e6['shift']());
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
}(
|
|
20
|
+
}(_0x2631, 0x70c27));
|
|
22
21
|
import { pathToFileURL } from 'node:url';
|
|
23
22
|
import {
|
|
24
23
|
mkdir,
|
|
@@ -28,2372 +27,2343 @@ import {
|
|
|
28
27
|
writeFile
|
|
29
28
|
} from 'node:fs/promises';
|
|
30
29
|
import { homedir } from 'node:os';
|
|
31
|
-
import
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'
|
|
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
|
-
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
'
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
'
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
30
|
+
import _0x230848 from 'node:path';
|
|
31
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
32
|
+
'.csv': _0x2980fe(0x248),
|
|
33
|
+
'.gif': _0x2980fe(0x12b),
|
|
34
|
+
'.jpeg': _0x2980fe(0x18b),
|
|
35
|
+
'.jpg': _0x2980fe(0x18b),
|
|
36
|
+
'.json': _0x2980fe(0x1ae),
|
|
37
|
+
'.md': 'text/markdown',
|
|
38
|
+
'.pdf': _0x2980fe(0x1be),
|
|
39
|
+
'.png': 'image/png',
|
|
40
|
+
'.svg': _0x2980fe(0x106),
|
|
41
|
+
'.txt': 'text/plain',
|
|
42
|
+
'.webp': _0x2980fe(0x238),
|
|
43
|
+
'.xml': _0x2980fe(0x23d),
|
|
44
|
+
'.zip': 'application/zip'
|
|
45
|
+
};
|
|
46
|
+
function guessContentType(_0x456c30) {
|
|
47
|
+
const _0x1ff7a2 = {
|
|
48
|
+
_0x20d8f5: 0x137,
|
|
49
|
+
_0x4c97a4: 0x22d
|
|
50
|
+
}, _0x2f0f3e = _0x2980fe;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x230848[_0x2f0f3e(0x241)](_0x456c30)[_0x2f0f3e(_0x1ff7a2._0x20d8f5)]()] ?? _0x2f0f3e(_0x1ff7a2._0x4c97a4);
|
|
52
|
+
}
|
|
53
|
+
function safeFilename(_0x295423) {
|
|
54
|
+
const _0x442e82 = { _0x5b63e7: 0x201 }, _0x5ba6a9 = _0x2980fe;
|
|
55
|
+
return _0x295423[_0x5ba6a9(_0x442e82._0x5b63e7)](/[\\/]/g, '-');
|
|
56
|
+
}
|
|
57
|
+
function extensionFor(_0x37cca9) {
|
|
58
|
+
const _0x23f813 = _0x2980fe, _0x55a747 = Object[_0x23f813(0x271)](MIME_BY_EXTENSION)[_0x23f813(0x14f)](([, _0x5102d6]) => _0x5102d6 === _0x37cca9);
|
|
59
|
+
return _0x55a747?.[0x0] ?? _0x23f813(0x208);
|
|
60
|
+
}
|
|
61
|
+
async function prepareUploadFile(_0x3f2941, _0x5040f1 = {}) {
|
|
62
|
+
const _0x20dd48 = {
|
|
63
|
+
_0x2a59c6: 0x122,
|
|
64
|
+
_0x23516b: 0x24d,
|
|
65
|
+
_0x1be594: 0x141,
|
|
66
|
+
_0x5ad7e5: 0x111
|
|
67
|
+
}, _0x4225da = _0x2980fe;
|
|
68
|
+
if (!_0x230848[_0x4225da(_0x20dd48._0x2a59c6)](_0x3f2941))
|
|
69
|
+
throw new Error(_0x4225da(0x1cc));
|
|
70
|
+
const _0x5d66ad = await stat(_0x3f2941)['catch'](() => null);
|
|
71
|
+
if (!_0x5d66ad || !_0x5d66ad[_0x4225da(0x240)]())
|
|
72
|
+
throw new Error(_0x4225da(_0x20dd48._0x23516b) + _0x3f2941);
|
|
73
|
+
const _0x2edb84 = _0x5040f1[_0x4225da(0x170)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
74
|
+
if (_0x5d66ad[_0x4225da(0x168)] > _0x2edb84)
|
|
75
|
+
throw new Error(_0x4225da(0x17c) + _0x5d66ad[_0x4225da(0x168)]);
|
|
76
|
+
const _0x44e0b1 = await readFile(_0x3f2941), _0x278a64 = _0x230848[_0x4225da(_0x20dd48._0x1be594)](_0x3f2941);
|
|
77
|
+
return {
|
|
78
|
+
'contentBase64': _0x44e0b1[_0x4225da(_0x20dd48._0x5ad7e5)]('base64'),
|
|
79
|
+
'contentType': guessContentType(_0x278a64),
|
|
80
|
+
'filename': _0x278a64,
|
|
81
|
+
'sizeBytes': _0x5d66ad['size']
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function createAttachmentCache(_0x211d56 = {}) {
|
|
85
|
+
const _0x178c94 = {
|
|
86
|
+
_0x3c14ac: 0xef,
|
|
87
|
+
_0x591b32: 0x25e,
|
|
88
|
+
_0x6d0202: 0x199
|
|
89
|
+
}, _0x572ab6 = {
|
|
90
|
+
_0x4d4213: 0x144,
|
|
91
|
+
_0x16b31d: 0x1f5,
|
|
92
|
+
_0x2e0982: 0x160
|
|
93
|
+
}, _0x3ba0e9 = _0x2980fe, _0x291512 = _0x211d56[_0x3ba0e9(_0x178c94._0x3c14ac)] ?? _0x230848[_0x3ba0e9(_0x178c94._0x591b32)](homedir(), _0x3ba0e9(0x140), _0x3ba0e9(_0x178c94._0x6d0202));
|
|
94
|
+
return {
|
|
95
|
+
'cacheDir': _0x291512,
|
|
96
|
+
async 'findCachedPath'(_0x19e314) {
|
|
97
|
+
const _0xec3a44 = _0x3ba0e9;
|
|
98
|
+
await mkdir(_0x291512, { 'recursive': !![] });
|
|
99
|
+
const _0x4f89a0 = await readdir(_0x291512), _0x150ae6 = _0x4f89a0['find'](_0x588a6e => _0x588a6e['startsWith'](_0x19e314 + '-') || _0x588a6e[_0xec3a44(0x1e1)](_0x19e314));
|
|
100
|
+
return _0x150ae6 ? _0x230848[_0xec3a44(0x25e)](_0x291512, _0x150ae6) : null;
|
|
101
|
+
},
|
|
102
|
+
async 'save'(_0x489318) {
|
|
103
|
+
const _0x31c9cd = _0x3ba0e9;
|
|
104
|
+
await mkdir(_0x291512, { 'recursive': !![] });
|
|
105
|
+
const _0x202310 = _0x489318[_0x31c9cd(0x144)]?.['trim']() ? safeFilename(_0x489318[_0x31c9cd(_0x572ab6._0x4d4213)]) : '' + _0x489318[_0x31c9cd(_0x572ab6._0x16b31d)] + extensionFor(_0x489318[_0x31c9cd(_0x572ab6._0x2e0982)]), _0x53f47d = _0x230848[_0x31c9cd(0x25e)](_0x291512, _0x489318[_0x31c9cd(0x1f5)] + '-' + _0x202310);
|
|
106
|
+
return await writeFile(_0x53f47d, _0x489318[_0x31c9cd(0x10d)]), _0x53f47d;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
import {
|
|
111
|
+
createHash,
|
|
112
|
+
randomUUID
|
|
113
|
+
} from 'node:crypto';
|
|
114
|
+
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
115
|
+
function ensureSegment(_0x3a7b3c) {
|
|
116
|
+
const _0x561359 = _0x2980fe, _0x1ad3ec = _0x3a7b3c[_0x561359(0xfc)]();
|
|
117
|
+
if (!_0x1ad3ec || _0x1ad3ec['includes'](':'))
|
|
118
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
119
|
+
return _0x1ad3ec;
|
|
120
|
+
}
|
|
121
|
+
function parseThreadParts(_0x5a3627) {
|
|
122
|
+
const _0x4df121 = {
|
|
123
|
+
_0x3347b8: 0x205,
|
|
124
|
+
_0x420ea8: 0x1fe
|
|
125
|
+
}, _0x1c989f = _0x2980fe, _0x2ee841 = _0x5a3627[_0x1c989f(_0x4df121._0x3347b8)](':');
|
|
126
|
+
if (_0x2ee841[_0x1c989f(_0x4df121._0x420ea8)] < 0x1 || _0x2ee841[_0x1c989f(0x1fe)] > 0x2)
|
|
127
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
128
|
+
return {
|
|
129
|
+
'channelName': ensureSegment(_0x2ee841[0x0] ?? ''),
|
|
130
|
+
'threadShortId': _0x2ee841[0x1] ? ensureSegment(_0x2ee841[0x1]) : null
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function parseTarget(_0x2bb40e) {
|
|
134
|
+
const _0x330463 = {
|
|
135
|
+
_0x482b98: 0x192,
|
|
136
|
+
_0x33bae2: 0x1e3,
|
|
137
|
+
_0x7a0305: 0x156,
|
|
138
|
+
_0x2b7f04: 0x1e3,
|
|
139
|
+
_0x3ff000: 0x211,
|
|
140
|
+
_0x15bdd7: 0x1e1,
|
|
141
|
+
_0x164132: 0x1e1,
|
|
142
|
+
_0x142b6a: 0x182
|
|
143
|
+
}, _0x560755 = _0x2980fe, _0x3481c6 = _0x2bb40e['trim']();
|
|
144
|
+
if (!_0x3481c6)
|
|
145
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
146
|
+
if (_0x3481c6[_0x560755(0x1e1)]('#')) {
|
|
147
|
+
const _0x29f663 = parseThreadParts(_0x3481c6[_0x560755(_0x330463._0x482b98)](0x1)), _0x2035cf = '#' + _0x29f663[_0x560755(0x1e3)];
|
|
148
|
+
if (!_0x29f663[_0x560755(0x1d7)])
|
|
149
|
+
return {
|
|
150
|
+
'channelName': _0x29f663[_0x560755(_0x330463._0x33bae2)],
|
|
151
|
+
'channelTarget': _0x2035cf,
|
|
152
|
+
'kind': _0x560755(_0x330463._0x7a0305),
|
|
153
|
+
'target': _0x2035cf
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
156
|
+
'channelName': _0x29f663[_0x560755(_0x330463._0x2b7f04)],
|
|
157
|
+
'channelTarget': _0x2035cf,
|
|
158
|
+
'kind': _0x560755(_0x330463._0x3ff000),
|
|
159
|
+
'target': _0x2035cf + ':' + _0x29f663[_0x560755(0x1d7)],
|
|
160
|
+
'threadShortId': _0x29f663[_0x560755(0x1d7)]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
if (_0x3481c6[_0x560755(_0x330463._0x15bdd7)]('dm:')) {
|
|
164
|
+
const _0x5f157f = parseThreadParts(_0x3481c6[_0x560755(0x192)](0x3));
|
|
165
|
+
if (!_0x5f157f[_0x560755(_0x330463._0x2b7f04)][_0x560755(_0x330463._0x164132)](_0x560755(_0x330463._0x142b6a)))
|
|
166
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
167
|
+
const _0x2a0397 = 'dm:' + _0x5f157f[_0x560755(0x1e3)];
|
|
168
|
+
if (!_0x5f157f[_0x560755(0x1d7)])
|
|
169
|
+
return {
|
|
170
|
+
'channelName': _0x5f157f[_0x560755(0x1e3)],
|
|
171
|
+
'channelTarget': _0x2a0397,
|
|
172
|
+
'kind': _0x560755(0x156),
|
|
173
|
+
'target': _0x2a0397
|
|
174
|
+
};
|
|
175
|
+
return {
|
|
176
|
+
'channelName': _0x5f157f['channelName'],
|
|
177
|
+
'channelTarget': _0x2a0397,
|
|
178
|
+
'kind': 'thread',
|
|
179
|
+
'target': _0x2a0397 + ':' + _0x5f157f[_0x560755(0x1d7)],
|
|
180
|
+
'threadShortId': _0x5f157f[_0x560755(0x1d7)]
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
184
|
+
}
|
|
185
|
+
function asErrorMessage(_0x4b2356, _0x4387b8) {
|
|
186
|
+
const _0x278659 = _0x2980fe;
|
|
187
|
+
if (typeof _0x4b2356 === 'string' && _0x4b2356[_0x278659(0xfc)]())
|
|
188
|
+
return _0x4b2356;
|
|
189
|
+
return _0x4387b8;
|
|
190
|
+
}
|
|
191
|
+
function asRecord(_0x3bd27d) {
|
|
192
|
+
const _0x4033d8 = _0x2980fe;
|
|
193
|
+
return typeof _0x3bd27d === _0x4033d8(0x242) && _0x3bd27d !== null ? _0x3bd27d : {};
|
|
194
|
+
}
|
|
195
|
+
function stableStringify(_0x2b57af) {
|
|
196
|
+
const _0x314f51 = {
|
|
197
|
+
_0x5a7cf8: 0x23c,
|
|
198
|
+
_0x24c827: 0x25e,
|
|
199
|
+
_0x12cb9b: 0x271,
|
|
200
|
+
_0x2972c4: 0x272,
|
|
201
|
+
_0x5c0fdb: 0x132
|
|
202
|
+
}, _0x5b0436 = _0x2980fe;
|
|
203
|
+
if (_0x2b57af === null || typeof _0x2b57af !== 'object')
|
|
204
|
+
return JSON['stringify'](_0x2b57af);
|
|
205
|
+
if (Array[_0x5b0436(0x12a)](_0x2b57af))
|
|
206
|
+
return '[' + _0x2b57af[_0x5b0436(_0x314f51._0x5a7cf8)](_0x30d2a3 => stableStringify(_0x30d2a3))[_0x5b0436(_0x314f51._0x24c827)](',') + ']';
|
|
207
|
+
const _0x25163a = Object[_0x5b0436(_0x314f51._0x12cb9b)](_0x2b57af)[_0x5b0436(_0x314f51._0x2972c4)](([, _0x433252]) => _0x433252 !== void 0x0)[_0x5b0436(_0x314f51._0x5c0fdb)](([_0xd0a617], [_0xa8c85]) => _0xd0a617['localeCompare'](_0xa8c85))[_0x5b0436(0x23c)](([_0xe0909e, _0x591b52]) => JSON['stringify'](_0xe0909e) + ':' + stableStringify(_0x591b52));
|
|
208
|
+
return '{' + _0x25163a[_0x5b0436(0x25e)](',') + '}';
|
|
209
|
+
}
|
|
210
|
+
function createHeaders(_0x3f97e7) {
|
|
211
|
+
const _0x31dd5c = { _0x58aa40: 0x1ae }, _0x29ecd2 = _0x2980fe;
|
|
212
|
+
return {
|
|
213
|
+
'Content-Type': _0x29ecd2(_0x31dd5c._0x58aa40),
|
|
214
|
+
'x-daemon-api-key': _0x3f97e7
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
function toHttpBaseUrl(_0x157b7a) {
|
|
218
|
+
const _0xf95caa = {
|
|
219
|
+
_0x4b6ac1: 0x1e7,
|
|
220
|
+
_0x56fa25: 0xfb
|
|
221
|
+
}, _0x2787fe = _0x2980fe, _0x14b3ae = new URL(_0x157b7a);
|
|
222
|
+
if (_0x14b3ae[_0x2787fe(0x10f)] === _0x2787fe(_0xf95caa._0x4b6ac1))
|
|
223
|
+
_0x14b3ae['protocol'] = _0x2787fe(_0xf95caa._0x56fa25);
|
|
224
|
+
else
|
|
225
|
+
_0x14b3ae[_0x2787fe(0x10f)] === _0x2787fe(0x21c) && (_0x14b3ae[_0x2787fe(0x10f)] = _0x2787fe(0x183));
|
|
226
|
+
return _0x14b3ae['toString']()[_0x2787fe(0x201)](/\/$/, '');
|
|
227
|
+
}
|
|
228
|
+
function isMentionBoundary(_0x46617c) {
|
|
229
|
+
const _0x3c0fb8 = { _0x4279b1: 0x133 }, _0x1c7a31 = _0x2980fe;
|
|
230
|
+
return !_0x46617c || /\s|[([{'",。!?、:;]/[_0x1c7a31(_0x3c0fb8._0x4279b1)](_0x46617c);
|
|
231
|
+
}
|
|
232
|
+
function isMentionTerminal(_0x302f52) {
|
|
233
|
+
const _0x9576a7 = { _0x4302eb: 0x133 }, _0x1243eb = _0x2980fe;
|
|
234
|
+
return !_0x302f52 || /\s|[)\]}'",。!?、:;,.!?]/[_0x1243eb(_0x9576a7._0x4302eb)](_0x302f52);
|
|
235
|
+
}
|
|
236
|
+
function buildMatchableEntries(_0x864215) {
|
|
237
|
+
const _0x52c105 = {
|
|
238
|
+
_0x1aaacf: 0x172,
|
|
239
|
+
_0x40c96f: 0x1eb
|
|
240
|
+
}, _0x47df3e = _0x2980fe, _0x485e01 = [];
|
|
241
|
+
for (const _0x474c7f of [
|
|
242
|
+
..._0x864215[_0x47df3e(0x18f)],
|
|
243
|
+
..._0x864215[_0x47df3e(_0x52c105._0x1aaacf)]
|
|
244
|
+
]) {
|
|
245
|
+
_0x485e01['push']({
|
|
246
|
+
'matchName': _0x474c7f[_0x47df3e(_0x52c105._0x40c96f)],
|
|
247
|
+
'matchNameLower': _0x474c7f[_0x47df3e(0x1eb)][_0x47df3e(0x21d)](),
|
|
248
|
+
'participantId': _0x474c7f['id']
|
|
249
|
+
}), _0x474c7f['id'] !== _0x474c7f[_0x47df3e(_0x52c105._0x40c96f)] && _0x485e01['push']({
|
|
250
|
+
'matchName': _0x474c7f['id'],
|
|
251
|
+
'matchNameLower': _0x474c7f['id'][_0x47df3e(0x21d)](),
|
|
252
|
+
'participantId': _0x474c7f['id']
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
return _0x485e01;
|
|
256
|
+
}
|
|
257
|
+
function extractMentionedParticipantIds(_0x187739, _0x310173) {
|
|
258
|
+
const _0x4a30c9 = {
|
|
259
|
+
_0x3ccfc5: 0x1fe,
|
|
260
|
+
_0x2602d0: 0x21d,
|
|
261
|
+
_0x3caf2e: 0x14f,
|
|
262
|
+
_0x571d03: 0x1b5,
|
|
263
|
+
_0x1f38c1: 0x1b5,
|
|
264
|
+
_0x73e746: 0x1fe
|
|
265
|
+
}, _0x1fb2dc = _0x2980fe, _0x5628bb = buildMatchableEntries(_0x310173)[_0x1fb2dc(0x132)]((_0xeaa952, _0x4a2bcb) => _0x4a2bcb[_0x1fb2dc(0x210)][_0x1fb2dc(0x1fe)] - _0xeaa952[_0x1fb2dc(0x210)]['length']), _0x2e6045 = [], _0x569ca7 = new Set();
|
|
266
|
+
for (let _0x5c9b1c = 0x0; _0x5c9b1c < _0x187739[_0x1fb2dc(_0x4a30c9._0x3ccfc5)]; _0x5c9b1c += 0x1) {
|
|
267
|
+
if (_0x187739[_0x5c9b1c] !== '@' || !isMentionBoundary(_0x187739[_0x5c9b1c - 0x1]))
|
|
268
|
+
continue;
|
|
269
|
+
const _0x1b879b = _0x187739[_0x1fb2dc(0x192)](_0x5c9b1c + 0x1), _0x120a8f = _0x1b879b[_0x1fb2dc(_0x4a30c9._0x2602d0)](), _0x46969f = _0x5628bb[_0x1fb2dc(_0x4a30c9._0x3caf2e)](_0x10200b => {
|
|
270
|
+
const _0x17266c = _0x1fb2dc;
|
|
271
|
+
if (!_0x120a8f[_0x17266c(0x1e1)](_0x10200b['matchNameLower']))
|
|
272
|
+
return ![];
|
|
273
|
+
return isMentionTerminal(_0x1b879b[_0x10200b['matchName'][_0x17266c(0x1fe)]]);
|
|
274
|
+
});
|
|
275
|
+
if (!_0x46969f || _0x569ca7['has'](_0x46969f[_0x1fb2dc(_0x4a30c9._0x571d03)]))
|
|
276
|
+
continue;
|
|
277
|
+
_0x569ca7[_0x1fb2dc(0x22e)](_0x46969f[_0x1fb2dc(0x1b5)]), _0x2e6045['push'](_0x46969f[_0x1fb2dc(_0x4a30c9._0x1f38c1)]), _0x5c9b1c += _0x46969f[_0x1fb2dc(0x210)][_0x1fb2dc(_0x4a30c9._0x73e746)];
|
|
278
|
+
}
|
|
279
|
+
return _0x2e6045;
|
|
280
|
+
}
|
|
281
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
282
|
+
function anySignal(..._0x287e6f) {
|
|
283
|
+
const _0x2183cd = {
|
|
284
|
+
_0x5dc005: 0x19c,
|
|
285
|
+
_0x3e4b7b: 0x1f3
|
|
286
|
+
}, _0x594803 = _0x2980fe, _0x282c07 = new AbortController();
|
|
287
|
+
for (const _0x123466 of _0x287e6f) {
|
|
288
|
+
if (_0x123466[_0x594803(0x224)])
|
|
289
|
+
return _0x282c07[_0x594803(_0x2183cd._0x5dc005)](_0x123466['reason']), _0x282c07[_0x594803(0x1f3)];
|
|
290
|
+
_0x123466['addEventListener']('abort', () => _0x282c07[_0x594803(0x19c)](_0x123466['reason']), {
|
|
291
|
+
'once': !![],
|
|
292
|
+
'signal': _0x282c07[_0x594803(_0x2183cd._0x3e4b7b)]
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
return _0x282c07[_0x594803(_0x2183cd._0x3e4b7b)];
|
|
296
|
+
}
|
|
297
|
+
function createInternalAgentClient(_0x618bbe) {
|
|
298
|
+
const _0x549bd2 = {
|
|
299
|
+
_0x54c2c4: 0xfc,
|
|
300
|
+
_0x2ad023: 0x12e
|
|
301
|
+
}, _0x4efdfd = {
|
|
302
|
+
_0x22c320: 0x157,
|
|
303
|
+
_0x31b4d5: 0x100,
|
|
304
|
+
_0x21900d: 0x1fe,
|
|
305
|
+
_0x5136ac: 0x17f,
|
|
306
|
+
_0x3185b9: 0x1fe,
|
|
307
|
+
_0x5abdea: 0x26d,
|
|
308
|
+
_0x4e3729: 0x23c,
|
|
309
|
+
_0x3baf39: 0x169,
|
|
310
|
+
_0x58623c: 0x1f2,
|
|
311
|
+
_0x6ce64f: 0x179,
|
|
312
|
+
_0x10f36c: 0x179,
|
|
313
|
+
_0x48fddf: 0xf0,
|
|
314
|
+
_0x96b934: 0x13d,
|
|
315
|
+
_0x34a1ea: 0xf0,
|
|
316
|
+
_0x1f9cc7: 0xf0,
|
|
317
|
+
_0x2845c6: 0x179,
|
|
318
|
+
_0xc05711: 0x1b3,
|
|
319
|
+
_0x22685f: 0x13d,
|
|
320
|
+
_0x23dc8b: 0x1f8,
|
|
321
|
+
_0x110bf5: 0x161,
|
|
322
|
+
_0x4dff10: 0x21b,
|
|
323
|
+
_0x3a7290: 0x254,
|
|
324
|
+
_0x4e34e6: 0xfa,
|
|
325
|
+
_0x30c8ee: 0x150,
|
|
326
|
+
_0x33c306: 0xfd,
|
|
327
|
+
_0x3b872d: 0x1ed,
|
|
328
|
+
_0x316fde: 0x1d4,
|
|
329
|
+
_0x200ab9: 0x150
|
|
330
|
+
}, _0x2ae90b = {
|
|
331
|
+
_0x1d62e9: 0x156,
|
|
332
|
+
_0x39abe1: 0xed,
|
|
333
|
+
_0x3c0835: 0x169,
|
|
334
|
+
_0x3261f1: 0x256
|
|
335
|
+
}, _0x333810 = {
|
|
336
|
+
_0x29fd15: 0x107,
|
|
337
|
+
_0x45d7f6: 0x100,
|
|
338
|
+
_0xeb05d9: 0x10d,
|
|
339
|
+
_0x434437: 0x160,
|
|
340
|
+
_0x47b325: 0x22d,
|
|
341
|
+
_0x42417a: 0x1ce
|
|
342
|
+
}, _0x75c1cf = {
|
|
343
|
+
_0x1032de: 0x12c,
|
|
344
|
+
_0x5ce30e: 0x1cf,
|
|
345
|
+
_0x4fde0b: 0x1bf,
|
|
346
|
+
_0x5c5596: 0x151,
|
|
347
|
+
_0x2aa2bc: 0x160,
|
|
348
|
+
_0x48dab7: 0x10d,
|
|
349
|
+
_0x3f3673: 0x144,
|
|
350
|
+
_0x3e94eb: 0x1dc,
|
|
351
|
+
_0x36058d: 0x268
|
|
352
|
+
}, _0x5d521c = {
|
|
353
|
+
_0x43c006: 0x147,
|
|
354
|
+
_0x3296e7: 0x151
|
|
355
|
+
}, _0x5087af = { _0x52a906: 0x1c1 }, _0x4115a0 = {
|
|
356
|
+
_0x4b80fd: 0x1bf,
|
|
357
|
+
_0x4be93e: 0x1d3,
|
|
358
|
+
_0x2ec904: 0x1f4,
|
|
359
|
+
_0x972595: 0x151,
|
|
360
|
+
_0x3a30b5: 0x15f
|
|
361
|
+
}, _0x4fe750 = { _0x1184ee: 0x1bf }, _0x3e842e = {
|
|
362
|
+
_0x3e4ca5: 0x1bd,
|
|
363
|
+
_0x3360ee: 0x151,
|
|
364
|
+
_0x4ff744: 0x1c0,
|
|
365
|
+
_0x37d080: 0x1b0,
|
|
366
|
+
_0x47725e: 0x15f,
|
|
367
|
+
_0x1261b2: 0x10d
|
|
368
|
+
}, _0x41d3f9 = {
|
|
369
|
+
_0x2c2246: 0x225,
|
|
370
|
+
_0x286a7c: 0x15f
|
|
371
|
+
}, _0x5d90e3 = {
|
|
372
|
+
_0x83ebc3: 0x151,
|
|
373
|
+
_0x282064: 0x10d
|
|
374
|
+
}, _0xbcd2b6 = {
|
|
375
|
+
_0x3f389a: 0x118,
|
|
376
|
+
_0x153a08: 0x1d3,
|
|
377
|
+
_0x3676d6: 0xf3,
|
|
378
|
+
_0x1f7b9b: 0x169,
|
|
379
|
+
_0x3a9314: 0x1fe,
|
|
380
|
+
_0x234dc8: 0x12c
|
|
381
|
+
}, _0x39be20 = {
|
|
382
|
+
_0x3bac5f: 0x11d,
|
|
383
|
+
_0x4c24fc: 0x12c,
|
|
384
|
+
_0x504058: 0x169,
|
|
385
|
+
_0x291a9b: 0x1ee,
|
|
386
|
+
_0x152084: 0x169,
|
|
387
|
+
_0x93b4b8: 0xed,
|
|
388
|
+
_0x4740f9: 0x1de,
|
|
389
|
+
_0x36199b: 0x1de,
|
|
390
|
+
_0xa5ca7e: 0x111,
|
|
391
|
+
_0x5db517: 0x100,
|
|
392
|
+
_0x2690ba: 0x260
|
|
393
|
+
}, _0x5a2e30 = { _0x10015e: 0x194 }, _0x5c0291 = {
|
|
394
|
+
_0x46744a: 0x1f7,
|
|
395
|
+
_0x177c05: 0x194
|
|
396
|
+
}, _0xa73e4b = {
|
|
397
|
+
_0x4e76b2: 0x232,
|
|
398
|
+
_0x5ab0b7: 0x1d7,
|
|
399
|
+
_0x5a4f82: 0x179,
|
|
400
|
+
_0x1f0468: 0x12c,
|
|
401
|
+
_0xa8ea89: 0x1e1
|
|
402
|
+
}, _0x2348dd = {
|
|
403
|
+
_0xab843e: 0x150,
|
|
404
|
+
_0x110841: 0x1d7,
|
|
405
|
+
_0xdce9d2: 0xf0,
|
|
406
|
+
_0x3fc238: 0x179,
|
|
407
|
+
_0x29cb09: 0x12c
|
|
408
|
+
}, _0x36371b = { _0x134ea9: 0x260 }, _0x281c79 = { _0x2395e8: 0x18f }, _0x25e1c9 = {
|
|
409
|
+
_0x4677e5: 0x197,
|
|
410
|
+
_0x423a86: 0x100,
|
|
411
|
+
_0x4240c7: 0x10d,
|
|
412
|
+
_0x3a515c: 0x237,
|
|
413
|
+
_0x48d3ee: 0x26d
|
|
414
|
+
}, _0x156b0a = {
|
|
415
|
+
_0x48ce07: 0x21f,
|
|
416
|
+
_0x6b5f6c: 0x10d,
|
|
417
|
+
_0x32e0ce: 0x260,
|
|
418
|
+
_0x2453a5: 0x16f,
|
|
419
|
+
_0x594998: 0xf0
|
|
420
|
+
}, _0x36ef15 = { _0x162404: 0x15f }, _0x3e50cc = {
|
|
421
|
+
_0x2c02f5: 0x1d5,
|
|
422
|
+
_0x570d8b: 0x151
|
|
423
|
+
}, _0x27ef08 = {
|
|
424
|
+
_0x59cf32: 0x1f3,
|
|
425
|
+
_0xa8a7aa: 0x1f3
|
|
426
|
+
}, _0x16daa3 = {
|
|
427
|
+
_0x413368: 0x1f3,
|
|
428
|
+
_0x46a452: 0x110,
|
|
429
|
+
_0x2ecf03: 0x1b9
|
|
430
|
+
}, _0xf84036 = {
|
|
431
|
+
_0x35dd14: 0xfc,
|
|
432
|
+
_0x1f761e: 0x262,
|
|
433
|
+
_0x1355cc: 0x264,
|
|
434
|
+
_0x5bb380: 0x20e,
|
|
435
|
+
_0x43cc24: 0x21b
|
|
436
|
+
}, _0x6b41b6 = {
|
|
437
|
+
_0x33bcc2: 0x177,
|
|
438
|
+
_0x3b8dbf: 0x234
|
|
439
|
+
}, _0x56617e = {
|
|
440
|
+
_0x1cc93f: 0x18d,
|
|
441
|
+
_0x3fd048: 0x149,
|
|
442
|
+
_0x4d68d3: 0xf6,
|
|
443
|
+
_0x556dbb: 0x201,
|
|
444
|
+
_0x222b93: 0x105,
|
|
445
|
+
_0x4415e0: 0x130,
|
|
446
|
+
_0x37dfa6: 0x123,
|
|
447
|
+
_0x441417: 0x1a8
|
|
448
|
+
}, _0x353f47 = _0x2980fe, _0xe87b3e = _0x618bbe[_0x353f47(0x189)] ?? fetch, _0x1f7210 = _0x618bbe[_0x353f47(0x25b)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x283f24 = typeof _0x618bbe['initialLastSeenSeq'] === _0x353f47(0x126) && _0x618bbe[_0x353f47(0x15e)] > 0x0 ? _0x618bbe['initialLastSeenSeq'] : 0x0, _0x2fcb62 = _0x618bbe['daemonLocalUrl']?.[_0x353f47(_0x549bd2._0x54c2c4)]() || void 0x0, _0x4d60d2 = _0x618bbe[_0x353f47(0x174)]?.[_0x353f47(0xfc)]() || void 0x0, _0x1fc8eb = _0x618bbe[_0x353f47(0x191)] === !![], _0x2662e9 = _0x618bbe[_0x353f47(_0x549bd2._0x2ad023)]?.[_0x353f47(0xfc)]() || void 0x0, _0x2bd8ff = _0x618bbe['workerThreadTarget']?.[_0x353f47(_0x549bd2._0x54c2c4)]() || void 0x0, _0x20903e = createHeaders(_0x618bbe['daemonApiKey']), _0x4a7b93 = toHttpBaseUrl(_0x618bbe[_0x353f47(0x19e)]);
|
|
449
|
+
let _0x29690d = null;
|
|
450
|
+
const _0x54d43a = new Map();
|
|
451
|
+
let _0xbf1d9 = _0x283f24, _0x42679a = _0x283f24;
|
|
452
|
+
function _0x2dfda9(_0xa27673) {
|
|
453
|
+
const _0x42d0b0 = _0x353f47, _0x5c6c04 = _0xa27673[_0x42d0b0(_0x56617e._0x1cc93f)][_0x42d0b0(_0x56617e._0x3fd048)]['get'](_0x42d0b0(0x217)) ?? _0x42d0b0(0x1fb), _0xa8d5f3 = _0xa27673[_0x42d0b0(_0x56617e._0x4d68d3)]['trim']()[_0x42d0b0(_0x56617e._0x556dbb)](/\s+/g, '\x20')[_0x42d0b0(0x192)](0x0, 0x78) || _0x42d0b0(_0x56617e._0x222b93);
|
|
454
|
+
return _0x42d0b0(0x16b) + _0xa27673[_0x42d0b0(0x188)] + '\x20返回了非\x20JSON\x20响应(status=' + _0xa27673['response'][_0x42d0b0(0x1b0)] + _0x42d0b0(_0x56617e._0x4415e0) + _0x5c6c04 + _0x42d0b0(_0x56617e._0x37dfa6) + _0xa8d5f3 + _0x42d0b0(_0x56617e._0x441417);
|
|
455
|
+
}
|
|
456
|
+
async function _0x12e948(_0x1263bc, _0x40a42a) {
|
|
457
|
+
const _0xc0893c = _0x353f47, _0x3c2d22 = Buffer['from'](await _0x40a42a[_0xc0893c(0x1ce)]())[_0xc0893c(0x111)](_0xc0893c(_0x6b41b6._0x33bcc2));
|
|
458
|
+
if (!_0x3c2d22[_0xc0893c(0xfc)]())
|
|
459
|
+
return {};
|
|
460
|
+
try {
|
|
461
|
+
return JSON[_0xc0893c(_0x6b41b6._0x3b8dbf)](_0x3c2d22);
|
|
462
|
+
} catch {
|
|
463
|
+
throw new Error(_0x2dfda9({
|
|
464
|
+
'bodyText': _0x3c2d22,
|
|
465
|
+
'requestUrl': _0x1263bc,
|
|
466
|
+
'response': _0x40a42a
|
|
467
|
+
}));
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function _0x284d66(_0x290c46, _0x3d337a) {
|
|
471
|
+
const _0xcfe8bc = _0x353f47, _0x54bec6 = typeof _0x3d337a[_0xcfe8bc(0x13a)] === _0xcfe8bc(0x1f2) ? _0x3d337a[_0xcfe8bc(0x13a)][_0xcfe8bc(_0xf84036._0x35dd14)]() : '';
|
|
472
|
+
if (_0x54bec6)
|
|
473
|
+
return _0x54bec6;
|
|
474
|
+
const _0x97c804 = Date[_0xcfe8bc(0x104)]();
|
|
475
|
+
for (const [_0x551d57, _0x4a6297] of _0x54d43a) {
|
|
476
|
+
_0x4a6297['expiresAt'] <= _0x97c804 && _0x54d43a['delete'](_0x551d57);
|
|
477
|
+
}
|
|
478
|
+
const _0x223e5e = {
|
|
479
|
+
..._0x3d337a,
|
|
480
|
+
'idempotency_key': void 0x0
|
|
481
|
+
}, _0x32308e = createHash(_0xcfe8bc(_0xf84036._0x1f761e))[_0xcfe8bc(_0xf84036._0x1355cc)](_0x290c46 + ':' + stableStringify(_0x223e5e))[_0xcfe8bc(0x113)](_0xcfe8bc(_0xf84036._0x5bb380)), _0x4a49e6 = _0x290c46 + ':' + _0x32308e, _0x1a5b4 = _0x54d43a[_0xcfe8bc(_0xf84036._0x43cc24)](_0x4a49e6);
|
|
482
|
+
if (_0x1a5b4)
|
|
483
|
+
return _0x1a5b4[_0xcfe8bc(0x267)];
|
|
484
|
+
const _0x1924d2 = 'auto:' + _0x290c46 + ':' + randomUUID();
|
|
485
|
+
return _0x54d43a['set'](_0x4a49e6, {
|
|
486
|
+
'expiresAt': _0x97c804 + 0x5 * 0x3c * 0x3e8,
|
|
487
|
+
'value': _0x1924d2
|
|
488
|
+
}), _0x1924d2;
|
|
489
|
+
}
|
|
490
|
+
async function _0x5cb262(_0x561e30, _0xb44311) {
|
|
491
|
+
const _0x40b3de = _0x353f47, _0x2198af = new AbortController(), _0x314f93 = setTimeout(() => _0x2198af['abort'](), _0x1f7210), _0x242511 = _0xb44311?.[_0x40b3de(_0x16daa3._0x413368)] ? anySignal(_0xb44311[_0x40b3de(0x1f3)], _0x2198af[_0x40b3de(0x1f3)]) : _0x2198af[_0x40b3de(0x1f3)], _0x2bb45b = '' + _0x4a7b93 + _0x561e30;
|
|
492
|
+
try {
|
|
493
|
+
const _0x1a1413 = await _0xe87b3e(_0x2bb45b, {
|
|
494
|
+
..._0xb44311,
|
|
495
|
+
'signal': _0x242511
|
|
496
|
+
}), _0x52321e = await _0x12e948(_0x2bb45b, _0x1a1413);
|
|
497
|
+
if (!_0x1a1413['ok'] || _0x52321e[_0x40b3de(_0x16daa3._0x46a452)] === ![])
|
|
498
|
+
throw new Error(asErrorMessage(_0x52321e['error'], _0x40b3de(_0x16daa3._0x2ecf03) + _0x1a1413[_0x40b3de(0x1b0)]));
|
|
499
|
+
return _0x52321e;
|
|
500
|
+
} finally {
|
|
501
|
+
clearTimeout(_0x314f93);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
async function _0x4b8234(_0x3174c1, _0x40df4e) {
|
|
505
|
+
const _0xfa7312 = _0x353f47, _0x169ed3 = new AbortController(), _0x44f90d = setTimeout(() => _0x169ed3['abort'](), _0x1f7210), _0x24cc0a = _0x40df4e?.[_0xfa7312(0x1f3)] ? anySignal(_0x40df4e[_0xfa7312(_0x27ef08._0x59cf32)], _0x169ed3[_0xfa7312(0x1f3)]) : _0x169ed3[_0xfa7312(_0x27ef08._0xa8a7aa)], _0x48a07d = '' + _0x4a7b93 + _0x3174c1;
|
|
506
|
+
try {
|
|
507
|
+
const _0x245d55 = await _0xe87b3e(_0x48a07d, {
|
|
508
|
+
..._0x40df4e,
|
|
509
|
+
'signal': _0x24cc0a
|
|
510
|
+
}), _0x3bae90 = await _0x12e948(_0x48a07d, _0x245d55);
|
|
511
|
+
if (!_0x245d55['ok'])
|
|
512
|
+
throw new Error(asErrorMessage(_0x3bae90['error'], _0xfa7312(0x1b9) + _0x245d55[_0xfa7312(0x1b0)]));
|
|
513
|
+
return _0x3bae90;
|
|
514
|
+
} finally {
|
|
515
|
+
clearTimeout(_0x44f90d);
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
async function _0x44967a(_0x161b7b) {
|
|
519
|
+
const _0xc9437a = _0x353f47;
|
|
520
|
+
if (!_0x4d60d2 || _0x161b7b <= _0x42679a)
|
|
521
|
+
return;
|
|
522
|
+
await _0x5cb262('/api/agent-sessions/' + encodeURIComponent(_0x4d60d2) + _0xc9437a(_0x3e50cc._0x2c02f5), {
|
|
523
|
+
'body': JSON[_0xc9437a(_0x3e50cc._0x570d8b)]({ 'lastSeenSeq': _0x161b7b }),
|
|
524
|
+
'headers': _0x20903e,
|
|
525
|
+
'method': 'PATCH'
|
|
526
|
+
}), _0x42679a = _0x161b7b;
|
|
527
|
+
}
|
|
528
|
+
async function _0x25ddc0(_0x3d3bf5) {
|
|
529
|
+
const _0x5d4d8f = _0x353f47;
|
|
530
|
+
if (!_0x2fcb62 || !_0x2662e9 || _0x3d3bf5 <= _0x42679a)
|
|
531
|
+
return;
|
|
532
|
+
const _0x4f3398 = await _0xe87b3e(_0x2fcb62 + '/workers/context-metrics', {
|
|
533
|
+
'body': JSON[_0x5d4d8f(0x151)]({
|
|
534
|
+
'last_seen_seq': _0x3d3bf5,
|
|
535
|
+
'worker_session_id': _0x2662e9
|
|
536
|
+
}),
|
|
537
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
538
|
+
'method': _0x5d4d8f(_0x36ef15._0x162404)
|
|
539
|
+
});
|
|
540
|
+
if (!_0x4f3398['ok'])
|
|
541
|
+
throw new Error('HTTP\x20' + _0x4f3398[_0x5d4d8f(0x1b0)]);
|
|
542
|
+
_0x42679a = _0x3d3bf5;
|
|
543
|
+
}
|
|
544
|
+
async function _0x834c99(_0x5660e1) {
|
|
545
|
+
const _0x4b64f5 = _0x353f47, _0x53ddfb = parseTarget(_0x5660e1), _0x4ab4fa = await _0x5cb262(_0x4b64f5(0x1bf) + _0x618bbe[_0x4b64f5(0x1d3)] + _0x4b64f5(_0x156b0a._0x48ce07), {
|
|
546
|
+
'body': JSON[_0x4b64f5(0x151)]({ 'target': _0x53ddfb[_0x4b64f5(0x256)] }),
|
|
547
|
+
'headers': _0x20903e,
|
|
548
|
+
'method': _0x4b64f5(0x15f)
|
|
549
|
+
});
|
|
550
|
+
return {
|
|
551
|
+
'channelId': _0x4ab4fa[_0x4b64f5(_0x156b0a._0x6b5f6c)]?.['channelId'] ?? '',
|
|
552
|
+
'target': _0x53ddfb[_0x4b64f5(_0x156b0a._0x32e0ce)],
|
|
553
|
+
'task': _0x4ab4fa[_0x4b64f5(_0x156b0a._0x6b5f6c)]?.[_0x4b64f5(_0x156b0a._0x2453a5)],
|
|
554
|
+
'threadId': _0x4ab4fa[_0x4b64f5(0x10d)]?.[_0x4b64f5(0x12c)],
|
|
555
|
+
'threadNumber': _0x4ab4fa[_0x4b64f5(0x10d)]?.[_0x4b64f5(_0x156b0a._0x594998)]
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
async function _0x56876c(_0x5a215b = {}) {
|
|
559
|
+
if (!_0x5a215b['forceRefresh'] && _0x29690d)
|
|
560
|
+
return _0x29690d;
|
|
561
|
+
return _0x29690d = (async () => {
|
|
562
|
+
const _0x54fd54 = _0x1c13, _0x3e8e04 = await _0x5cb262('/internal/agent/' + _0x618bbe[_0x54fd54(0x1d3)] + _0x54fd54(_0x25e1c9._0x4677e5), {
|
|
563
|
+
'headers': _0x20903e,
|
|
564
|
+
'method': _0x54fd54(_0x25e1c9._0x423a86)
|
|
565
|
+
}), _0x2b1b86 = _0x3e8e04[_0x54fd54(_0x25e1c9._0x4240c7)]?.[_0x54fd54(0x250)] ?? [], _0x56c76c = _0x2b1b86[_0x54fd54(0x272)](_0x41cca2 => _0x41cca2[_0x54fd54(0x194)]?.[_0x54fd54(0x124)] === _0x54fd54(0x249))[_0x54fd54(0x23c)](_0x2dc9be => ({
|
|
566
|
+
'id': _0x5ae573(_0x2dc9be),
|
|
567
|
+
'name': _0x4cec81(_0x2dc9be)
|
|
568
|
+
}))[_0x54fd54(0x272)](_0x321370 => _0x321370['id']), _0x5ae0a0 = _0x2b1b86['filter'](_0x374cd8 => _0x374cd8[_0x54fd54(0x194)]?.[_0x54fd54(0x124)] !== _0x54fd54(0x249))[_0x54fd54(0x23c)](_0x5efa53 => ({
|
|
569
|
+
'id': _0x5ae573(_0x5efa53),
|
|
570
|
+
'name': _0x4cec81(_0x5efa53)
|
|
571
|
+
}))['filter'](_0x44bb5e => _0x44bb5e['id']), _0xd544e3 = _0x3e8e04[_0x54fd54(0x10d)]?.[_0x54fd54(_0x25e1c9._0x3a515c)]['id'] ?? '';
|
|
572
|
+
return {
|
|
573
|
+
'agents': _0x56c76c,
|
|
574
|
+
'channels': _0x3e8e04[_0x54fd54(0x10d)]?.[_0x54fd54(_0x25e1c9._0x48d3ee)] ?? [],
|
|
575
|
+
'humans': _0x5ae0a0,
|
|
576
|
+
'serverId': _0xd544e3,
|
|
577
|
+
'serverName': _0x3e8e04[_0x54fd54(_0x25e1c9._0x4240c7)]?.[_0x54fd54(0x237)]['name'] ?? _0xd544e3
|
|
578
|
+
};
|
|
579
|
+
})()['catch'](_0x3b1b47 => {
|
|
580
|
+
_0x29690d = null;
|
|
581
|
+
throw _0x3b1b47;
|
|
582
|
+
}), _0x29690d;
|
|
583
|
+
}
|
|
584
|
+
function _0xdcb972(_0x5dbacb, _0x5c44f4) {
|
|
585
|
+
const _0x3a1f67 = _0x353f47;
|
|
586
|
+
return _0x5c44f4[_0x3a1f67(_0x281c79._0x2395e8)]['some'](_0x3b08ed => _0x3b08ed['id'] === _0x5dbacb || _0x3b08ed['name'] === _0x5dbacb) ? 'agent' : _0x3a1f67(0x16c);
|
|
587
|
+
}
|
|
588
|
+
function _0x1d700b(_0x52a3f4) {
|
|
589
|
+
const _0x43294d = _0x353f47;
|
|
590
|
+
if (_0x52a3f4['threadNumber'] != null)
|
|
591
|
+
return _0x52a3f4[_0x43294d(_0x36371b._0x134ea9)] + ':t' + _0x52a3f4[_0x43294d(0xf0)];
|
|
592
|
+
if (_0x52a3f4[_0x43294d(0x179)])
|
|
593
|
+
return _0x52a3f4[_0x43294d(_0x36371b._0x134ea9)] + ':' + _0x52a3f4[_0x43294d(0x179)];
|
|
594
|
+
if (_0x52a3f4[_0x43294d(0x12c)])
|
|
595
|
+
return _0x52a3f4[_0x43294d(0x260)] + ':' + _0x52a3f4[_0x43294d(0x12c)][_0x43294d(0x192)](0x0, 0x8);
|
|
596
|
+
return _0x52a3f4[_0x43294d(0x260)];
|
|
597
|
+
}
|
|
598
|
+
function _0x2b8a01(_0x2803a6, _0x5c2285) {
|
|
599
|
+
const _0x5351a9 = _0x353f47;
|
|
600
|
+
try {
|
|
601
|
+
const _0x3a73 = parseTarget(_0x2803a6);
|
|
602
|
+
if (_0x3a73[_0x5351a9(_0x2348dd._0xab843e)] !== _0x5351a9(0x211) || _0x3a73[_0x5351a9(0x260)] !== _0x5c2285['channelTarget'])
|
|
603
|
+
return ![];
|
|
604
|
+
if (_0x5c2285['threadNumber'] != null && _0x3a73[_0x5351a9(_0x2348dd._0x110841)] === 't' + _0x5c2285[_0x5351a9(_0x2348dd._0xdce9d2)])
|
|
605
|
+
return !![];
|
|
606
|
+
if (_0x5c2285[_0x5351a9(_0x2348dd._0x3fc238)])
|
|
607
|
+
return _0x3a73[_0x5351a9(0x1d7)] === _0x5c2285[_0x5351a9(0x179)] || _0x5c2285[_0x5351a9(0x179)][_0x5351a9(0x1e1)](_0x3a73[_0x5351a9(_0x2348dd._0x110841)]);
|
|
608
|
+
if (_0x5c2285[_0x5351a9(_0x2348dd._0x29cb09)])
|
|
609
|
+
return _0x3a73['threadShortId'] === _0x5c2285[_0x5351a9(0x12c)] || _0x5c2285['threadId']['startsWith'](_0x3a73[_0x5351a9(0x1d7)]);
|
|
610
|
+
return ![];
|
|
611
|
+
} catch {
|
|
612
|
+
return ![];
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
function _0x50dd1f(_0x4af7ae, _0x32b2d9) {
|
|
616
|
+
const _0x104a2c = _0x353f47;
|
|
617
|
+
try {
|
|
618
|
+
const _0x50ff76 = parseTarget(_0x4af7ae);
|
|
619
|
+
if (_0x50ff76[_0x104a2c(0x150)] !== _0x104a2c(0x211))
|
|
620
|
+
return ![];
|
|
621
|
+
const _0x74878 = typeof _0x32b2d9[_0x104a2c(0xf0)] === _0x104a2c(0x126) && Number[_0x104a2c(_0xa73e4b._0x4e76b2)](_0x32b2d9[_0x104a2c(0xf0)]) ? _0x32b2d9[_0x104a2c(0xf0)] : void 0x0;
|
|
622
|
+
if (_0x74878 != null && _0x50ff76[_0x104a2c(_0xa73e4b._0x5ab0b7)] === 't' + _0x74878)
|
|
623
|
+
return !![];
|
|
624
|
+
const _0x4e16dc = typeof _0x32b2d9[_0x104a2c(0x179)] === 'string' ? _0x32b2d9[_0x104a2c(_0xa73e4b._0x5a4f82)] : void 0x0;
|
|
625
|
+
if (_0x4e16dc)
|
|
626
|
+
return _0x50ff76['threadShortId'] === _0x4e16dc || _0x4e16dc[_0x104a2c(0x1e1)](_0x50ff76[_0x104a2c(0x1d7)]);
|
|
627
|
+
const _0x282fbb = typeof _0x32b2d9[_0x104a2c(_0xa73e4b._0x1f0468)] === 'string' ? _0x32b2d9['threadId'] : void 0x0;
|
|
628
|
+
return Boolean(_0x282fbb) && (_0x50ff76[_0x104a2c(0x1d7)] === _0x282fbb || _0x282fbb[_0x104a2c(_0xa73e4b._0xa8ea89)](_0x50ff76[_0x104a2c(0x1d7)]));
|
|
629
|
+
} catch {
|
|
630
|
+
return ![];
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
function _0x5ae573(_0x3f079d) {
|
|
634
|
+
const _0x3fcd29 = _0x353f47;
|
|
635
|
+
return _0x3f079d[_0x3fcd29(_0x5c0291._0x46744a)]?.[_0x3fcd29(0x1b5)] ?? _0x3f079d[_0x3fcd29(_0x5c0291._0x177c05)]?.['id'] ?? _0x3f079d[_0x3fcd29(0x1b5)] ?? '';
|
|
636
|
+
}
|
|
637
|
+
function _0x4cec81(_0x200d8d) {
|
|
638
|
+
const _0x354bb7 = _0x353f47;
|
|
639
|
+
return _0x200d8d[_0x354bb7(_0x5a2e30._0x10015e)]?.[_0x354bb7(0x1eb)] ?? _0x5ae573(_0x200d8d);
|
|
640
|
+
}
|
|
641
|
+
async function _0x2f2d08(_0x159046) {
|
|
642
|
+
const _0x52671b = _0x353f47, _0xacbb7b = Math[_0x52671b(0x1d1)](_0x159046[_0x52671b(0x11d)] ?? 0x32, 0x64), _0x4c02d8 = await _0x56876c(), _0x5178af = new URLSearchParams();
|
|
643
|
+
_0x5178af[_0x52671b(0x1ee)](_0x52671b(_0x39be20._0x3bac5f), String(_0xacbb7b));
|
|
644
|
+
_0x159046[_0x52671b(_0x39be20._0x4c24fc)] ? (_0x5178af['set']('threadId', _0x159046[_0x52671b(0x12c)]), _0x5178af['set'](_0x52671b(_0x39be20._0x504058), _0x159046[_0x52671b(0x169)])) : _0x5178af[_0x52671b(_0x39be20._0x291a9b)]('channelId', _0x159046[_0x52671b(_0x39be20._0x152084)]);
|
|
645
|
+
_0x159046[_0x52671b(_0x39be20._0x93b4b8)] && _0x5178af[_0x52671b(0x1ee)](_0x52671b(0x103), String(_0x159046['before']));
|
|
646
|
+
_0x159046[_0x52671b(_0x39be20._0x4740f9)] !== void 0x0 && _0x5178af[_0x52671b(_0x39be20._0x291a9b)](_0x52671b(_0x39be20._0x36199b), String(_0x159046[_0x52671b(0x1de)]));
|
|
647
|
+
const _0x5c74c9 = await _0x5cb262(_0x52671b(0x1bf) + _0x618bbe[_0x52671b(0x1d3)] + '/history?' + _0x5178af[_0x52671b(_0x39be20._0xa5ca7e)](), {
|
|
648
|
+
'headers': _0x20903e,
|
|
649
|
+
'method': _0x52671b(_0x39be20._0x5db517)
|
|
650
|
+
}), _0x290c74 = (_0x5c74c9[_0x52671b(0x10d)] ?? [])[_0x52671b(0x23c)](_0x3e8eb4 => ({
|
|
651
|
+
'attachments': (_0x3e8eb4[_0x52671b(0x199)] ?? [])[_0x52671b(0x23c)](_0x46fb10 => ({
|
|
652
|
+
'filename': _0x46fb10[_0x52671b(0x1dc)] ?? _0x46fb10['id'],
|
|
653
|
+
'id': _0x46fb10['id']
|
|
654
|
+
})),
|
|
655
|
+
'content': _0x3e8eb4[_0x52671b(0x19f)] ?? '',
|
|
656
|
+
'createdAt': _0x3e8eb4[_0x52671b(0x109)],
|
|
657
|
+
..._0x3e8eb4[_0x52671b(0x150)] && _0x3e8eb4['kind'] !== _0x52671b(0x1a0) ? { 'kind': _0x3e8eb4['kind'] } : {},
|
|
658
|
+
'messageId': _0x3e8eb4['id'],
|
|
659
|
+
'senderName': _0x3e8eb4[_0x52671b(0x1d4)],
|
|
660
|
+
'senderType': _0xdcb972(_0x3e8eb4[_0x52671b(0x1d4)], _0x4c02d8),
|
|
661
|
+
'seq': _0x3e8eb4[_0x52671b(0x10b)] ?? 0x0
|
|
662
|
+
}));
|
|
663
|
+
return {
|
|
664
|
+
'channel': _0x159046[_0x52671b(_0x39be20._0x2690ba)],
|
|
665
|
+
'hasMore': _0x5c74c9[_0x52671b(0x209)]?.['hasMore'] ?? ![],
|
|
666
|
+
'messages': _0x290c74,
|
|
667
|
+
'nextCursor': _0x5c74c9['meta']?.[_0x52671b(0x103)]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
return {
|
|
671
|
+
async 'sendMessage'(_0x5ae375) {
|
|
672
|
+
const _0x43ea05 = _0x353f47, _0x378e96 = await _0x834c99(_0x5ae375['target']), _0x59cd8d = _0x5ae375[_0x43ea05(0x118)][_0x43ea05(0x255)]('@') ? extractMentionedParticipantIds(_0x5ae375[_0x43ea05(_0xbcd2b6._0x3f389a)], await _0x56876c()) : [], _0x574a21 = await _0x5cb262(_0x43ea05(0x1bf) + _0x618bbe[_0x43ea05(_0xbcd2b6._0x153a08)] + _0x43ea05(_0xbcd2b6._0x3676d6), {
|
|
673
|
+
'body': JSON[_0x43ea05(0x151)]({
|
|
674
|
+
'attachment_ids': _0x5ae375[_0x43ea05(0x218)],
|
|
675
|
+
'bodyMarkdown': _0x5ae375['content'],
|
|
676
|
+
'channelId': _0x378e96[_0x43ea05(_0xbcd2b6._0x1f7b9b)],
|
|
677
|
+
..._0x59cd8d[_0x43ea05(_0xbcd2b6._0x3a9314)] > 0x0 ? { 'mentionedParticipantIds': _0x59cd8d } : {},
|
|
678
|
+
'threadId': _0x378e96[_0x43ea05(_0xbcd2b6._0x234dc8)],
|
|
679
|
+
..._0x5ae375['visibility'] ? { 'visibility': _0x5ae375[_0x43ea05(0x1ad)] } : {}
|
|
680
|
+
}),
|
|
681
|
+
'headers': _0x20903e,
|
|
682
|
+
'method': _0x43ea05(0x15f)
|
|
683
|
+
});
|
|
684
|
+
return { 'messageId': _0x574a21['data']?.['id'] ?? '' };
|
|
685
|
+
},
|
|
686
|
+
async 'listSchedules'() {
|
|
687
|
+
const _0x2f10d5 = _0x353f47, _0x1852b1 = await _0x5cb262('/api/internal/schedules', {
|
|
688
|
+
'headers': _0x20903e,
|
|
689
|
+
'method': 'GET'
|
|
690
|
+
});
|
|
691
|
+
return _0x1852b1[_0x2f10d5(0x10d)] ?? [];
|
|
692
|
+
},
|
|
693
|
+
async 'claimScheduleRun'(_0x5b0020) {
|
|
694
|
+
const _0xd9c27f = _0x353f47, _0x2a6cba = await _0x5cb262('/api/internal/schedules/claim', {
|
|
695
|
+
'body': JSON[_0xd9c27f(_0x5d90e3._0x83ebc3)](_0x5b0020),
|
|
696
|
+
'headers': _0x20903e,
|
|
697
|
+
'method': _0xd9c27f(0x15f)
|
|
698
|
+
});
|
|
699
|
+
return _0x2a6cba[_0xd9c27f(_0x5d90e3._0x282064)] ?? {
|
|
700
|
+
'granted': ![],
|
|
701
|
+
'runId': null,
|
|
702
|
+
'schedule': null,
|
|
703
|
+
'scheduledFor': _0x5b0020[_0xd9c27f(0x165)]
|
|
704
|
+
};
|
|
705
|
+
},
|
|
706
|
+
async 'startScheduleRun'(_0x3b0e5a) {
|
|
707
|
+
const _0x365f9e = _0x353f47, _0x26b654 = await _0x5cb262(_0x365f9e(0x1bd) + encodeURIComponent(_0x3b0e5a[_0x365f9e(0x1d0)]) + _0x365f9e(_0x41d3f9._0x2c2246), {
|
|
708
|
+
'body': JSON['stringify']({}),
|
|
709
|
+
'headers': _0x20903e,
|
|
710
|
+
'method': _0x365f9e(_0x41d3f9._0x286a7c)
|
|
711
|
+
});
|
|
712
|
+
return _0x26b654[_0x365f9e(0x10d)] ?? {
|
|
713
|
+
'claimedByDaemonId': '',
|
|
714
|
+
'id': _0x3b0e5a[_0x365f9e(0x1d0)],
|
|
715
|
+
'scheduleId': '',
|
|
716
|
+
'status': _0x365f9e(0x119)
|
|
717
|
+
};
|
|
718
|
+
},
|
|
719
|
+
async 'finishScheduleRun'(_0x4048d2) {
|
|
720
|
+
const _0x757921 = _0x353f47, _0x1289f7 = await _0x5cb262(_0x757921(_0x3e842e._0x3e4ca5) + encodeURIComponent(_0x4048d2['runId']) + '/finish', {
|
|
721
|
+
'body': JSON[_0x757921(_0x3e842e._0x3360ee)]({
|
|
722
|
+
'error': _0x4048d2[_0x757921(0x152)],
|
|
723
|
+
'resultJson': _0x4048d2[_0x757921(_0x3e842e._0x4ff744)],
|
|
724
|
+
'status': _0x4048d2[_0x757921(_0x3e842e._0x37d080)]
|
|
725
|
+
}),
|
|
726
|
+
'headers': _0x20903e,
|
|
727
|
+
'method': _0x757921(_0x3e842e._0x47725e)
|
|
728
|
+
});
|
|
729
|
+
return _0x1289f7[_0x757921(_0x3e842e._0x1261b2)] ?? {
|
|
730
|
+
'nextRunAt': null,
|
|
731
|
+
'run': {
|
|
732
|
+
'claimedByDaemonId': '',
|
|
733
|
+
'id': _0x4048d2['runId'],
|
|
734
|
+
'scheduleId': '',
|
|
735
|
+
'status': _0x4048d2[_0x757921(0x1b0)]
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
},
|
|
739
|
+
async 'listTasks'(_0x5e1a21) {
|
|
740
|
+
const _0x338d8a = _0x353f47, _0x26acb1 = new URLSearchParams();
|
|
741
|
+
return _0x26acb1[_0x338d8a(0x1ee)](_0x338d8a(0x156), _0x5e1a21['channel']), _0x5e1a21['status'] && _0x26acb1[_0x338d8a(0x1ee)](_0x338d8a(0x1b0), _0x5e1a21['status']), _0x4b8234(_0x338d8a(0x1bf) + _0x618bbe[_0x338d8a(0x1d3)] + _0x338d8a(0x181) + _0x26acb1[_0x338d8a(0x111)](), {
|
|
742
|
+
'headers': _0x20903e,
|
|
743
|
+
'method': _0x338d8a(0x100)
|
|
744
|
+
});
|
|
745
|
+
},
|
|
746
|
+
async 'createTasks'(_0x73a86e) {
|
|
747
|
+
const _0x3ee0bb = _0x353f47;
|
|
748
|
+
return _0x4b8234(_0x3ee0bb(_0x4fe750._0x1184ee) + _0x618bbe[_0x3ee0bb(0x1d3)] + '/tasks', {
|
|
749
|
+
'body': JSON[_0x3ee0bb(0x151)]({
|
|
750
|
+
..._0x73a86e,
|
|
751
|
+
'idempotency_key': _0x284d66('create_tasks', _0x73a86e)
|
|
752
|
+
}),
|
|
753
|
+
'headers': _0x20903e,
|
|
754
|
+
'method': _0x3ee0bb(0x15f)
|
|
755
|
+
});
|
|
756
|
+
},
|
|
757
|
+
async 'claimTasks'(_0x5869c3) {
|
|
758
|
+
const _0xa85fac = _0x353f47;
|
|
759
|
+
return _0x4b8234(_0xa85fac(_0x4115a0._0x4b80fd) + _0x618bbe[_0xa85fac(_0x4115a0._0x4be93e)] + _0xa85fac(_0x4115a0._0x2ec904), {
|
|
760
|
+
'body': JSON[_0xa85fac(_0x4115a0._0x972595)]({
|
|
761
|
+
..._0x5869c3,
|
|
762
|
+
'idempotency_key': _0x284d66(_0xa85fac(0x167), _0x5869c3)
|
|
763
|
+
}),
|
|
764
|
+
'headers': _0x20903e,
|
|
765
|
+
'method': _0xa85fac(_0x4115a0._0x3a30b5)
|
|
766
|
+
});
|
|
767
|
+
},
|
|
768
|
+
async 'unclaimTask'(_0x1c56c1) {
|
|
769
|
+
const _0x1cacae = _0x353f47;
|
|
770
|
+
return _0x4b8234(_0x1cacae(0x1bf) + _0x618bbe['agentId'] + _0x1cacae(_0x5087af._0x52a906), {
|
|
771
|
+
'body': JSON[_0x1cacae(0x151)]({
|
|
772
|
+
..._0x1c56c1,
|
|
773
|
+
'idempotency_key': _0x284d66(_0x1cacae(0x1d6), _0x1c56c1)
|
|
774
|
+
}),
|
|
775
|
+
'headers': _0x20903e,
|
|
776
|
+
'method': _0x1cacae(0x15f)
|
|
777
|
+
});
|
|
778
|
+
},
|
|
779
|
+
async 'updateTaskStatus'(_0x33c24c) {
|
|
780
|
+
const _0x5706b9 = _0x353f47;
|
|
781
|
+
return _0x4b8234('/internal/agent/' + _0x618bbe['agentId'] + _0x5706b9(_0x5d521c._0x43c006), {
|
|
782
|
+
'body': JSON[_0x5706b9(_0x5d521c._0x3296e7)]({
|
|
783
|
+
..._0x33c24c,
|
|
784
|
+
'idempotency_key': _0x284d66(_0x5706b9(0x239), _0x33c24c)
|
|
785
|
+
}),
|
|
786
|
+
'headers': _0x20903e,
|
|
787
|
+
'method': _0x5706b9(0x15f)
|
|
788
|
+
});
|
|
789
|
+
},
|
|
790
|
+
async 'uploadFile'(_0xb57840) {
|
|
791
|
+
const _0x2da5b3 = _0x353f47, _0x15c3a3 = await _0x834c99(_0xb57840['channel']);
|
|
792
|
+
if (_0x15c3a3[_0x2da5b3(_0x75c1cf._0x1032de)])
|
|
793
|
+
throw new Error(_0x2da5b3(_0x75c1cf._0x5ce30e));
|
|
794
|
+
const _0x406da8 = await _0x5cb262(_0x2da5b3(_0x75c1cf._0x4fde0b) + _0x618bbe['agentId'] + _0x2da5b3(0x190), {
|
|
795
|
+
'body': JSON[_0x2da5b3(_0x75c1cf._0x5c5596)]({
|
|
796
|
+
'channel': _0x15c3a3['target'],
|
|
797
|
+
'contentBase64': _0xb57840[_0x2da5b3(0x15a)],
|
|
798
|
+
'contentType': _0xb57840[_0x2da5b3(_0x75c1cf._0x2aa2bc)],
|
|
799
|
+
'originalFilename': _0xb57840['filename']
|
|
800
|
+
}),
|
|
801
|
+
'headers': _0x20903e,
|
|
802
|
+
'method': _0x2da5b3(0x15f)
|
|
803
|
+
});
|
|
804
|
+
return {
|
|
805
|
+
'attachmentId': _0x406da8[_0x2da5b3(_0x75c1cf._0x48dab7)]?.['id'] ?? '',
|
|
806
|
+
'filename': _0x406da8[_0x2da5b3(0x10d)]?.[_0x2da5b3(_0x75c1cf._0x3f3673)] ?? _0xb57840[_0x2da5b3(_0x75c1cf._0x3e94eb)],
|
|
807
|
+
'sizeBytes': _0x406da8[_0x2da5b3(0x10d)]?.[_0x2da5b3(_0x75c1cf._0x36058d)] ?? 0x0
|
|
808
|
+
};
|
|
809
|
+
},
|
|
810
|
+
async 'downloadAttachment'(_0x4115d7) {
|
|
811
|
+
const _0x58ee04 = _0x353f47, _0x1272ee = await _0x5cb262(_0x58ee04(_0x333810._0x29fd15) + _0x4115d7, {
|
|
812
|
+
'headers': _0x20903e,
|
|
813
|
+
'method': _0x58ee04(_0x333810._0x45d7f6)
|
|
814
|
+
}), _0x2ed2c4 = new AbortController(), _0x7d29eb = setTimeout(() => _0x2ed2c4[_0x58ee04(0x19c)](), _0x1f7210);
|
|
815
|
+
try {
|
|
816
|
+
const _0x20da42 = await _0xe87b3e(_0x4a7b93 + _0x58ee04(_0x333810._0x29fd15) + _0x4115d7 + _0x58ee04(0x153), {
|
|
817
|
+
'headers': _0x20903e,
|
|
818
|
+
'method': _0x58ee04(0x100),
|
|
819
|
+
'signal': _0x2ed2c4[_0x58ee04(0x1f3)]
|
|
820
|
+
});
|
|
821
|
+
if (!_0x20da42['ok'])
|
|
822
|
+
throw new Error('HTTP\x20' + _0x20da42[_0x58ee04(0x1b0)]);
|
|
823
|
+
return {
|
|
824
|
+
'contentType': _0x1272ee[_0x58ee04(_0x333810._0xeb05d9)]?.[_0x58ee04(_0x333810._0x434437)] ?? _0x20da42['headers']['get'](_0x58ee04(0x217)) ?? _0x58ee04(_0x333810._0x47b325),
|
|
825
|
+
'data': Buffer['from'](await _0x20da42[_0x58ee04(_0x333810._0x42417a)]()),
|
|
826
|
+
'originalFilename': _0x1272ee[_0x58ee04(0x10d)]?.[_0x58ee04(0x144)]
|
|
827
|
+
};
|
|
828
|
+
} finally {
|
|
829
|
+
clearTimeout(_0x7d29eb);
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
async 'listServer'() {
|
|
833
|
+
return _0x56876c({ 'forceRefresh': !![] });
|
|
834
|
+
},
|
|
835
|
+
async 'readHistory'(_0x320cce) {
|
|
836
|
+
const _0x1dd5d1 = _0x353f47, _0xf885b6 = await _0x834c99(_0x320cce[_0x1dd5d1(_0x2ae90b._0x1d62e9)]);
|
|
837
|
+
return _0x2f2d08({
|
|
838
|
+
'after': _0x320cce[_0x1dd5d1(0x1de)],
|
|
839
|
+
'before': _0x320cce[_0x1dd5d1(_0x2ae90b._0x39abe1)],
|
|
840
|
+
'channelId': _0xf885b6[_0x1dd5d1(_0x2ae90b._0x3c0835)],
|
|
841
|
+
'channelTarget': _0xf885b6[_0x1dd5d1(_0x2ae90b._0x3261f1)],
|
|
842
|
+
'limit': _0x320cce[_0x1dd5d1(0x11d)],
|
|
843
|
+
'threadId': _0xf885b6[_0x1dd5d1(0x12c)]
|
|
844
|
+
});
|
|
845
|
+
},
|
|
846
|
+
'resolveTarget': _0x834c99,
|
|
847
|
+
async 'checkMessages'() {
|
|
848
|
+
const _0x343c91 = {
|
|
849
|
+
_0x2033d5: 0x169,
|
|
850
|
+
_0x49342f: 0x1f2
|
|
851
|
+
}, _0x1a109f = _0x353f47, _0x38645e = new URLSearchParams();
|
|
852
|
+
_0x38645e[_0x1a109f(0x1ee)](_0x1a109f(0x15d), String(_0xbf1d9));
|
|
853
|
+
const _0x116e1f = _0x38645e[_0x1a109f(0x111)](), _0xb8927 = await _0x5cb262(_0x1a109f(0x1bf) + _0x618bbe[_0x1a109f(0x1d3)] + _0x1a109f(_0x4efdfd._0x22c320) + (_0x116e1f ? '?' + _0x116e1f : ''), {
|
|
854
|
+
'headers': _0x20903e,
|
|
855
|
+
'method': _0x1a109f(_0x4efdfd._0x31b4d5)
|
|
856
|
+
}), _0x354bd0 = _0xb8927['data'] ?? [], _0x2348c1 = _0xb8927[_0x1a109f(0x209)]?.[_0x1a109f(0x103)], _0x3b60f8 = _0x2bd8ff ? _0x354bd0[_0x1a109f(0x272)](_0x53c605 => {
|
|
857
|
+
const _0x555bcb = _0x1a109f;
|
|
858
|
+
if (_0x53c605[_0x555bcb(0x1b4)] !== 'message')
|
|
859
|
+
return ![];
|
|
860
|
+
return _0x50dd1f(_0x2bd8ff, asRecord(_0x53c605[_0x555bcb(0x115)]));
|
|
861
|
+
}) : _0x354bd0, _0x3c7e27 = _0x2348c1 !== void 0x0 ? _0x2bd8ff ? Math[_0x1a109f(0x17f)](_0xbf1d9, _0x3b60f8[_0x1a109f(_0x4efdfd._0x21900d)] > 0x0 ? _0x3b60f8[_0x3b60f8[_0x1a109f(0x1fe)] - 0x1][_0x1a109f(0x1f8)] : _0xbf1d9) : Math[_0x1a109f(_0x4efdfd._0x5136ac)](_0xbf1d9, _0x2348c1) : _0x3b60f8[_0x1a109f(_0x4efdfd._0x21900d)] > 0x0 ? Math[_0x1a109f(0x17f)](_0xbf1d9, _0x3b60f8[_0x3b60f8[_0x1a109f(_0x4efdfd._0x3185b9)] - 0x1][_0x1a109f(0x1f8)]) : _0xbf1d9, _0x525246 = _0x354bd0['filter'](_0x4395b9 => _0x4395b9[_0x1a109f(0x1b4)] === 'message'), _0x183d31 = _0x2bd8ff === void 0x0 && _0x1fc8eb;
|
|
862
|
+
let _0x1daa07 = await _0x56876c(), _0x552321 = new Map(_0x1daa07[_0x1a109f(0x26d)][_0x1a109f(0x23c)](_0x1d3935 => [
|
|
863
|
+
_0x1d3935['id'],
|
|
864
|
+
_0x1d3935
|
|
865
|
+
]));
|
|
866
|
+
const _0x1094e1 = _0x525246[_0x1a109f(0x236)](_0x495029 => {
|
|
867
|
+
const _0x53cfcf = _0x1a109f, _0x2014c5 = asRecord(_0x495029[_0x53cfcf(0x115)]), _0x36c918 = typeof _0x2014c5?.[_0x53cfcf(_0x343c91._0x2033d5)] === _0x53cfcf(_0x343c91._0x49342f) ? _0x2014c5[_0x53cfcf(0x169)] : '';
|
|
868
|
+
return Boolean(_0x36c918) && !_0x552321[_0x53cfcf(0x24b)](_0x36c918);
|
|
869
|
+
});
|
|
870
|
+
_0x1094e1 && (_0x1daa07 = await _0x56876c({ 'forceRefresh': !![] }), _0x552321 = new Map(_0x1daa07[_0x1a109f(_0x4efdfd._0x5abdea)][_0x1a109f(_0x4efdfd._0x4e3729)](_0x8d5a39 => [
|
|
871
|
+
_0x8d5a39['id'],
|
|
872
|
+
_0x8d5a39
|
|
873
|
+
])));
|
|
874
|
+
const _0x59f0d8 = new Map();
|
|
875
|
+
for (const _0x1577fd of _0x525246) {
|
|
876
|
+
const _0x52b2cb = asRecord(_0x1577fd[_0x1a109f(0x115)]), _0x1924a9 = typeof _0x52b2cb[_0x1a109f(_0x4efdfd._0x3baf39)] === 'string' ? _0x52b2cb[_0x1a109f(0x169)] : '';
|
|
877
|
+
if (!_0x1924a9)
|
|
878
|
+
continue;
|
|
879
|
+
const _0x3d33d0 = typeof _0x52b2cb[_0x1a109f(0x12c)] === _0x1a109f(_0x4efdfd._0x58623c) ? _0x52b2cb['threadId'] : void 0x0, _0x12d0b1 = typeof _0x52b2cb[_0x1a109f(_0x4efdfd._0x6ce64f)] === _0x1a109f(0x1f2) ? _0x52b2cb[_0x1a109f(_0x4efdfd._0x10f36c)] : void 0x0, _0x5f3497 = typeof _0x52b2cb['threadNumber'] === _0x1a109f(0x126) && Number[_0x1a109f(0x232)](_0x52b2cb[_0x1a109f(0xf0)]) ? _0x52b2cb[_0x1a109f(_0x4efdfd._0x48fddf)] : void 0x0, _0x5d0a11 = Boolean(_0x3d33d0 && (!_0x12d0b1 || _0x1577fd[_0x1a109f(_0x4efdfd._0x96b934)] !== _0x12d0b1)), _0x2ad46c = _0x5d0a11 ? _0x1924a9 + ':' + _0x3d33d0 : _0x1924a9, _0x3934ac = _0x59f0d8[_0x1a109f(0x21b)](_0x2ad46c) ?? {
|
|
880
|
+
'aggregateIds': [],
|
|
881
|
+
'channelId': _0x1924a9,
|
|
882
|
+
'entries': new Map(),
|
|
883
|
+
'isThreadReply': _0x5d0a11,
|
|
884
|
+
'rootMessageId': _0x12d0b1,
|
|
885
|
+
'threadNumber': _0x5f3497,
|
|
886
|
+
'threadId': _0x5d0a11 ? _0x3d33d0 : void 0x0
|
|
887
|
+
};
|
|
888
|
+
_0x3934ac[_0x1a109f(_0x4efdfd._0x34a1ea)] == null && _0x5f3497 != null && (_0x3934ac[_0x1a109f(_0x4efdfd._0x1f9cc7)] = _0x5f3497), !_0x3934ac[_0x1a109f(_0x4efdfd._0x2845c6)] && _0x12d0b1 && (_0x3934ac['rootMessageId'] = _0x12d0b1), _0x3934ac[_0x1a109f(_0x4efdfd._0xc05711)]['push'](_0x1577fd[_0x1a109f(0x13d)]), _0x3934ac[_0x1a109f(0x271)][_0x1a109f(0x1ee)](_0x1577fd[_0x1a109f(_0x4efdfd._0x22685f)], {
|
|
889
|
+
'payloadJson': _0x1577fd[_0x1a109f(0x115)],
|
|
890
|
+
'seq': _0x1577fd[_0x1a109f(_0x4efdfd._0x23dc8b)]
|
|
891
|
+
}), _0x59f0d8['set'](_0x2ad46c, _0x3934ac);
|
|
892
|
+
}
|
|
893
|
+
const _0x53f2f5 = [];
|
|
894
|
+
for (const _0x27eff3 of _0x59f0d8[_0x1a109f(_0x4efdfd._0x110bf5)]()) {
|
|
895
|
+
const {
|
|
896
|
+
channelId: _0x2bd9a1,
|
|
897
|
+
threadId: _0x2d9c16,
|
|
898
|
+
rootMessageId: _0xf89f6f,
|
|
899
|
+
threadNumber: _0x5a3b6f,
|
|
900
|
+
aggregateIds: _0x4bd0c2,
|
|
901
|
+
isThreadReply: _0x11179a,
|
|
902
|
+
entries: _0x973743
|
|
903
|
+
} = _0x27eff3, _0x14be61 = _0x552321[_0x1a109f(_0x4efdfd._0x4dff10)](_0x2bd9a1), _0xec0f76 = _0x14be61?.['name'] ?? _0x2bd9a1, _0xb82dd1 = _0x14be61?.[_0x1a109f(0x150)] === 'dm' ? _0x1a109f(0x1a5) + _0xec0f76 : '#' + _0xec0f76, _0x91c279 = {
|
|
904
|
+
'channelTarget': _0xb82dd1,
|
|
905
|
+
'rootMessageId': _0xf89f6f,
|
|
906
|
+
'threadId': _0x2d9c16,
|
|
907
|
+
'threadNumber': _0x5a3b6f
|
|
908
|
+
}, _0x460917 = await _0x2f2d08({
|
|
909
|
+
'channelId': _0x2bd9a1,
|
|
910
|
+
'channelTarget': _0xb82dd1,
|
|
911
|
+
'limit': Math[_0x1a109f(0x17f)](_0x4bd0c2[_0x1a109f(0x1fe)], 0x32),
|
|
912
|
+
'threadId': _0x2d9c16
|
|
913
|
+
}), _0x41c1ce = new Map(_0x460917[_0x1a109f(0x24a)][_0x1a109f(_0x4efdfd._0x4e3729)](_0x50dbb4 => [
|
|
914
|
+
_0x50dbb4[_0x1a109f(0xfd)],
|
|
915
|
+
_0x50dbb4
|
|
916
|
+
])), _0x5788b9 = _0x2d9c16 ? _0x1d700b(_0x91c279) : _0xb82dd1, _0x3ed88b = _0x2bd8ff ? _0x11179a && _0x2b8a01(_0x2bd8ff, _0x91c279) : !![], _0xfe79c3 = _0x11179a ? _0x3ed88b && _0x2bd8ff ? _0x2bd8ff : _0x5788b9 : _0xb82dd1;
|
|
917
|
+
for (const _0x2c4f77 of _0x4bd0c2) {
|
|
918
|
+
if (!_0x3ed88b)
|
|
919
|
+
continue;
|
|
920
|
+
const _0x522633 = _0x973743[_0x1a109f(0x21b)](_0x2c4f77), _0x25f1e4 = _0x522633 ? asRecord(_0x522633['payloadJson']) : void 0x0, _0x4e5739 = _0x25f1e4?.[_0x1a109f(_0x4efdfd._0x3a7290)] === _0x1a109f(0x139);
|
|
921
|
+
if (_0x183d31 && _0x4e5739)
|
|
922
|
+
continue;
|
|
923
|
+
const _0x43e0c8 = _0x41c1ce[_0x1a109f(_0x4efdfd._0x4dff10)](_0x2c4f77);
|
|
924
|
+
if (_0x43e0c8) {
|
|
925
|
+
_0x53f2f5[_0x1a109f(_0x4efdfd._0x4e34e6)]({
|
|
926
|
+
'attachments': _0x43e0c8[_0x1a109f(0x199)],
|
|
927
|
+
'content': _0x43e0c8[_0x1a109f(0x118)],
|
|
928
|
+
'createdAt': _0x43e0c8[_0x1a109f(0x109)],
|
|
929
|
+
..._0x43e0c8[_0x1a109f(0x150)] ? { 'kind': _0x43e0c8[_0x1a109f(_0x4efdfd._0x30c8ee)] } : {},
|
|
930
|
+
'messageId': _0x43e0c8[_0x1a109f(_0x4efdfd._0x33c306)],
|
|
931
|
+
'senderName': _0x43e0c8[_0x1a109f(_0x4efdfd._0x3b872d)],
|
|
932
|
+
'senderType': _0x43e0c8['senderType'],
|
|
933
|
+
'target': _0xfe79c3,
|
|
934
|
+
..._0x4e5739 ? { 'targetedTask': !![] } : {}
|
|
935
|
+
});
|
|
936
|
+
continue;
|
|
937
|
+
}
|
|
938
|
+
if (_0x522633) {
|
|
939
|
+
const _0x188a04 = typeof _0x25f1e4?.[_0x1a109f(_0x4efdfd._0x316fde)] === _0x1a109f(0x1f2) ? _0x25f1e4[_0x1a109f(_0x4efdfd._0x316fde)] : '', _0x3f2be9 = typeof _0x25f1e4?.['bodyMarkdown'] === _0x1a109f(_0x4efdfd._0x58623c) ? _0x25f1e4[_0x1a109f(0x19f)] : '', _0x24e6a1 = typeof _0x25f1e4?.[_0x1a109f(_0x4efdfd._0x200ab9)] === _0x1a109f(0x1f2) && _0x25f1e4['kind'] !== _0x1a109f(0x1a0) ? _0x25f1e4[_0x1a109f(0x150)] : void 0x0;
|
|
940
|
+
_0x188a04 && _0x3f2be9 && _0x53f2f5[_0x1a109f(_0x4efdfd._0x4e34e6)]({
|
|
941
|
+
'attachments': [],
|
|
942
|
+
'content': _0x3f2be9,
|
|
943
|
+
'createdAt': new Date()[_0x1a109f(0x1a9)](),
|
|
944
|
+
..._0x24e6a1 ? { 'kind': _0x24e6a1 } : {},
|
|
945
|
+
'messageId': _0x2c4f77,
|
|
946
|
+
'senderName': _0x188a04,
|
|
947
|
+
'senderType': _0xdcb972(_0x188a04, _0x1daa07),
|
|
948
|
+
'target': _0xfe79c3,
|
|
949
|
+
..._0x4e5739 ? { 'targetedTask': !![] } : {}
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
if (_0x3c7e27 > 0x0) {
|
|
955
|
+
if (_0x4d60d2)
|
|
956
|
+
await _0x44967a(_0x3c7e27);
|
|
957
|
+
else
|
|
958
|
+
_0x2662e9 && await _0x25ddc0(_0x3c7e27);
|
|
959
|
+
}
|
|
960
|
+
return _0x3c7e27 > _0xbf1d9 && (_0xbf1d9 = _0x3c7e27), { 'messages': _0x2bd8ff ? _0x53f2f5 : _0x183d31 ? _0x53f2f5[_0x1a109f(0x272)](_0x2c855f => _0x2c855f[_0x1a109f(0x1bb)] !== !![]) : _0x53f2f5 };
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
function toLocalTime(_0x317088) {
|
|
965
|
+
const _0x144658 = { _0x16008a: 0x1a1 }, _0x152c42 = _0x2980fe, _0x233ae4 = new Date(_0x317088);
|
|
966
|
+
if (Number['isNaN'](_0x233ae4['getTime']()))
|
|
967
|
+
return _0x317088;
|
|
968
|
+
const _0x5aa9ef = _0x597e96 => String(_0x597e96)[_0x152c42(0x108)](0x2, '0');
|
|
969
|
+
return _0x233ae4['getFullYear']() + '-' + _0x5aa9ef(_0x233ae4[_0x152c42(0x121)]() + 0x1) + '-' + _0x5aa9ef(_0x233ae4['getDate']()) + '\x20' + _0x5aa9ef(_0x233ae4['getHours']()) + ':' + _0x5aa9ef(_0x233ae4[_0x152c42(_0x144658._0x16008a)]()) + ':' + _0x5aa9ef(_0x233ae4['getSeconds']());
|
|
970
|
+
}
|
|
971
|
+
function _0x1c13(_0x1ad13b, _0x184f5e) {
|
|
972
|
+
_0x1ad13b = _0x1ad13b - 0xec;
|
|
973
|
+
const _0x263188 = _0x2631();
|
|
974
|
+
let _0x1c13de = _0x263188[_0x1ad13b];
|
|
975
|
+
if (_0x1c13['oFMVLC'] === undefined) {
|
|
976
|
+
var _0x5beb02 = function (_0x23b6a8) {
|
|
977
|
+
const _0x476523 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
978
|
+
let _0x230848 = '', _0x456c30 = '';
|
|
979
|
+
for (let _0x295423 = 0x0, _0x37cca9, _0x55a747, _0x5102d6 = 0x0; _0x55a747 = _0x23b6a8['charAt'](_0x5102d6++); ~_0x55a747 && (_0x37cca9 = _0x295423 % 0x4 ? _0x37cca9 * 0x40 + _0x55a747 : _0x55a747, _0x295423++ % 0x4) ? _0x230848 += String['fromCharCode'](0xff & _0x37cca9 >> (-0x2 * _0x295423 & 0x6)) : 0x0) {
|
|
980
|
+
_0x55a747 = _0x476523['indexOf'](_0x55a747);
|
|
981
|
+
}
|
|
982
|
+
for (let _0x3f2941 = 0x0, _0x5040f1 = _0x230848['length']; _0x3f2941 < _0x5040f1; _0x3f2941++) {
|
|
983
|
+
_0x456c30 += '%' + ('00' + _0x230848['charCodeAt'](_0x3f2941)['toString'](0x10))['slice'](-0x2);
|
|
984
|
+
}
|
|
985
|
+
return decodeURIComponent(_0x456c30);
|
|
986
|
+
};
|
|
987
|
+
_0x1c13['LUdYFp'] = _0x5beb02, _0x1c13['mOJTJD'] = {}, _0x1c13['oFMVLC'] = !![];
|
|
988
|
+
}
|
|
989
|
+
const _0x1268cd = _0x263188[0x0], _0x3216a5 = _0x1ad13b + _0x1268cd, _0x2d5580 = _0x1c13['mOJTJD'][_0x3216a5];
|
|
990
|
+
return !_0x2d5580 ? (_0x1c13de = _0x1c13['LUdYFp'](_0x1c13de), _0x1c13['mOJTJD'][_0x3216a5] = _0x1c13de) : _0x1c13de = _0x2d5580, _0x1c13de;
|
|
991
|
+
}
|
|
992
|
+
function formatAttachmentSuffix(_0x563076) {
|
|
993
|
+
const _0x330751 = {
|
|
994
|
+
_0x1dac6f: 0x1fe,
|
|
995
|
+
_0x2155ee: 0x1e8,
|
|
996
|
+
_0x6996f5: 0x25e
|
|
997
|
+
}, _0xcb7070 = _0x2980fe;
|
|
998
|
+
if (!_0x563076 || _0x563076['length'] === 0x0)
|
|
999
|
+
return '';
|
|
1000
|
+
return '\x20[' + _0x563076[_0xcb7070(_0x330751._0x1dac6f)] + _0xcb7070(_0x330751._0x2155ee) + (_0x563076[_0xcb7070(0x1fe)] > 0x1 ? 's' : '') + ':\x20' + _0x563076['map'](_0x58fad6 => _0x58fad6['filename'] + '\x20(id:' + _0x58fad6['id'] + ')')[_0xcb7070(_0x330751._0x6996f5)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1001
|
+
}
|
|
1002
|
+
function formatCheckMessages(_0x5dffe0) {
|
|
1003
|
+
const _0x4aad28 = {
|
|
1004
|
+
_0x187a39: 0x184,
|
|
1005
|
+
_0x52d04d: 0x23c,
|
|
1006
|
+
_0x1e0631: 0x25e
|
|
1007
|
+
}, _0x30b7e7 = {
|
|
1008
|
+
_0x358184: 0x102,
|
|
1009
|
+
_0x563f36: 0x1a0,
|
|
1010
|
+
_0x300b26: 0x219,
|
|
1011
|
+
_0x2df7d1: 0x256,
|
|
1012
|
+
_0x39fc0a: 0xfd,
|
|
1013
|
+
_0x13a16d: 0x109,
|
|
1014
|
+
_0x36a768: 0x20c
|
|
1015
|
+
}, _0x290c57 = _0x2980fe;
|
|
1016
|
+
if (_0x5dffe0['length'] === 0x0)
|
|
1017
|
+
return _0x290c57(_0x4aad28._0x187a39);
|
|
1018
|
+
return _0x5dffe0[_0x290c57(_0x4aad28._0x52d04d)](_0x4a500d => {
|
|
1019
|
+
const _0xd425bc = _0x290c57, _0x565245 = _0x4a500d['senderType'] === _0xd425bc(0x249) ? _0xd425bc(_0x30b7e7._0x358184) : '', _0x407423 = _0x4a500d[_0xd425bc(0x150)] && _0x4a500d[_0xd425bc(0x150)] !== _0xd425bc(_0x30b7e7._0x563f36) ? _0xd425bc(_0x30b7e7._0x300b26) + _0x4a500d['kind'] : '';
|
|
1020
|
+
return '[target=' + _0x4a500d[_0xd425bc(_0x30b7e7._0x2df7d1)] + '\x20msg=' + _0x4a500d[_0xd425bc(_0x30b7e7._0x39fc0a)]['slice'](0x0, 0x8) + _0xd425bc(0x22f) + toLocalTime(_0x4a500d[_0xd425bc(_0x30b7e7._0x13a16d)]) + _0x565245 + _0x407423 + _0xd425bc(_0x30b7e7._0x36a768) + _0x4a500d['senderName'] + ':\x20' + _0x4a500d[_0xd425bc(0x118)] + formatAttachmentSuffix(_0x4a500d[_0xd425bc(0x199)]);
|
|
1021
|
+
})[_0x290c57(_0x4aad28._0x1e0631)]('\x0a');
|
|
1022
|
+
}
|
|
1023
|
+
function formatHistory(_0x3f0f61) {
|
|
1024
|
+
const _0x16670d = {
|
|
1025
|
+
_0x19db28: 0x24a,
|
|
1026
|
+
_0x3f8d5c: 0x25e,
|
|
1027
|
+
_0x24fc61: 0x116,
|
|
1028
|
+
_0x260b3b: 0x1fe
|
|
1029
|
+
}, _0x115bcc = {
|
|
1030
|
+
_0x53310d: 0x102,
|
|
1031
|
+
_0x483ef6: 0x150,
|
|
1032
|
+
_0x22711e: 0x11c,
|
|
1033
|
+
_0x196099: 0x1f8,
|
|
1034
|
+
_0x149661: 0x20c
|
|
1035
|
+
}, _0x3fc7ca = _0x2980fe;
|
|
1036
|
+
if (_0x3f0f61['messages'][_0x3fc7ca(0x1fe)] === 0x0)
|
|
1037
|
+
return '##\x20Message\x20History\x20for\x20' + _0x3f0f61['channel'] + _0x3fc7ca(0x19d);
|
|
1038
|
+
const _0x246007 = _0x3f0f61[_0x3fc7ca(_0x16670d._0x19db28)][_0x3fc7ca(0x23c)](_0x398e3c => {
|
|
1039
|
+
const _0x3be9fd = _0x3fc7ca, _0x552d80 = _0x398e3c['senderType'] === _0x3be9fd(0x249) ? _0x3be9fd(_0x115bcc._0x53310d) : '', _0x2dac8c = _0x398e3c[_0x3be9fd(0x150)] && _0x398e3c['kind'] !== _0x3be9fd(0x1a0) ? _0x3be9fd(0x219) + _0x398e3c[_0x3be9fd(_0x115bcc._0x483ef6)] : '';
|
|
1040
|
+
return _0x3be9fd(_0x115bcc._0x22711e) + _0x398e3c[_0x3be9fd(_0x115bcc._0x196099)] + _0x3be9fd(0x245) + _0x398e3c['messageId'] + '\x20time=' + toLocalTime(_0x398e3c['createdAt']) + _0x552d80 + _0x2dac8c + _0x3be9fd(_0x115bcc._0x149661) + _0x398e3c[_0x3be9fd(0x1ed)] + ':\x20' + _0x398e3c[_0x3be9fd(0x118)] + formatAttachmentSuffix(_0x398e3c[_0x3be9fd(0x199)]);
|
|
1041
|
+
})[_0x3fc7ca(_0x16670d._0x3f8d5c)]('\x0a'), _0x34d980 = _0x3f0f61[_0x3fc7ca(0x1f9)] && _0x3f0f61[_0x3fc7ca(_0x16670d._0x24fc61)] ? _0x3fc7ca(0x18c) + _0x3f0f61[_0x3fc7ca(_0x16670d._0x19db28)][_0x3fc7ca(_0x16670d._0x260b3b)] + '\x20messages\x20shown.\x20Use\x20before=' + _0x3f0f61[_0x3fc7ca(0x116)] + _0x3fc7ca(0x1da) : '';
|
|
1042
|
+
return '##\x20Message\x20History\x20for\x20' + _0x3f0f61['channel'] + '\x20(' + _0x3f0f61['messages']['length'] + _0x3fc7ca(0x1ff) + _0x246007 + _0x34d980;
|
|
1043
|
+
}
|
|
1044
|
+
function formatServerDirectory(_0x24f17e) {
|
|
1045
|
+
const _0x5e1ef4 = {
|
|
1046
|
+
_0x1b372b: 0x23c,
|
|
1047
|
+
_0x5853a8: 0x1ea,
|
|
1048
|
+
_0x573479: 0x18f,
|
|
1049
|
+
_0x21addb: 0x1fe,
|
|
1050
|
+
_0x3cf9d3: 0x18f,
|
|
1051
|
+
_0x266623: 0x172,
|
|
1052
|
+
_0x4e7beb: 0x23c,
|
|
1053
|
+
_0x40f939: 0x1ea,
|
|
1054
|
+
_0xae4992: 0x251,
|
|
1055
|
+
_0x58d024: 0x25e
|
|
1056
|
+
}, _0x3d02eb = _0x2980fe, _0x41a956 = _0x24f17e[_0x3d02eb(0x26d)][_0x3d02eb(0x1fe)] > 0x0 ? _0x24f17e['channels'][_0x3d02eb(_0x5e1ef4._0x1b372b)](_0x28fc38 => _0x28fc38['description'] ? _0x3d02eb(0xfe) + _0x28fc38[_0x3d02eb(0x1eb)] + '\x20—\x20' + _0x28fc38[_0x3d02eb(0x135)] : _0x3d02eb(0xfe) + _0x28fc38[_0x3d02eb(0x1eb)])[_0x3d02eb(0x25e)]('\x0a') : _0x3d02eb(_0x5e1ef4._0x5853a8), _0x2e55b2 = _0x24f17e[_0x3d02eb(_0x5e1ef4._0x573479)][_0x3d02eb(_0x5e1ef4._0x21addb)] > 0x0 ? _0x24f17e[_0x3d02eb(_0x5e1ef4._0x3cf9d3)][_0x3d02eb(0x23c)](_0x1bbd08 => _0x3d02eb(0x215) + _0x1bbd08[_0x3d02eb(0x1eb)])['join']('\x0a') : _0x3d02eb(_0x5e1ef4._0x5853a8), _0x1cb5df = _0x24f17e[_0x3d02eb(0x172)]['length'] > 0x0 ? _0x24f17e[_0x3d02eb(_0x5e1ef4._0x266623)][_0x3d02eb(_0x5e1ef4._0x4e7beb)](_0x2d8578 => _0x3d02eb(0x215) + _0x2d8578['name'])['join']('\x0a') : _0x3d02eb(_0x5e1ef4._0x40f939);
|
|
1057
|
+
return [
|
|
1058
|
+
_0x3d02eb(0x1f1) + _0x24f17e[_0x3d02eb(0x17b)],
|
|
1059
|
+
'',
|
|
1060
|
+
_0x3d02eb(0x14e),
|
|
1061
|
+
_0x41a956,
|
|
1062
|
+
'',
|
|
1063
|
+
_0x3d02eb(0x11a),
|
|
1064
|
+
_0x2e55b2,
|
|
1065
|
+
'',
|
|
1066
|
+
_0x3d02eb(_0x5e1ef4._0xae4992),
|
|
1067
|
+
_0x1cb5df
|
|
1068
|
+
][_0x3d02eb(_0x5e1ef4._0x58d024)]('\x0a');
|
|
1069
|
+
}
|
|
1070
|
+
function formatUploadResult(_0x50422c) {
|
|
1071
|
+
const _0x48304c = {
|
|
1072
|
+
_0x5c5c66: 0x1dc,
|
|
1073
|
+
_0x2d8c0a: 0x268
|
|
1074
|
+
}, _0x2e1cc1 = _0x2980fe;
|
|
1075
|
+
return 'File\x20uploaded:\x20' + _0x50422c[_0x2e1cc1(_0x48304c._0x5c5c66)] + '\x20(' + (_0x50422c[_0x2e1cc1(_0x48304c._0x2d8c0a)] / 0x400)['toFixed'](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x50422c[_0x2e1cc1(0x1f5)] + _0x2e1cc1(0x145);
|
|
1076
|
+
}
|
|
1077
|
+
function formatViewFileResult(_0x37e0a6, _0x4ec8fe) {
|
|
1078
|
+
const _0x28a0d1 = { _0x4d2586: 0x17a }, _0x1740d9 = _0x2980fe;
|
|
1079
|
+
return _0x4ec8fe ? _0x1740d9(0x220) + _0x37e0a6 : _0x1740d9(_0x28a0d1._0x4d2586) + _0x37e0a6;
|
|
1080
|
+
}
|
|
1081
|
+
function formatTaskList(_0x180e6d, _0x379031) {
|
|
1082
|
+
const _0x2aefb9 = {
|
|
1083
|
+
_0x1193f0: 0x1fe,
|
|
1084
|
+
_0x519d1b: 0x180,
|
|
1085
|
+
_0x58d4ac: 0x23c
|
|
1086
|
+
}, _0x3b4c0c = {
|
|
1087
|
+
_0x2e98a8: 0x1db,
|
|
1088
|
+
_0x37340d: 0x26b,
|
|
1089
|
+
_0xbed387: 0xfd,
|
|
1090
|
+
_0x2da21c: 0x1e0,
|
|
1091
|
+
_0x5cb6e6: 0x26b,
|
|
1092
|
+
_0xfc9cc5: 0x24b,
|
|
1093
|
+
_0x2559e9: 0x1dd,
|
|
1094
|
+
_0x20928f: 0x14c,
|
|
1095
|
+
_0xc4982c: 0x1b0,
|
|
1096
|
+
_0xafaa4e: 0x20b
|
|
1097
|
+
}, _0x414aee = _0x2980fe;
|
|
1098
|
+
if (_0x180e6d[_0x414aee(_0x2aefb9._0x1193f0)] === 0x0)
|
|
1099
|
+
return _0x414aee(_0x2aefb9._0x519d1b);
|
|
1100
|
+
return _0x180e6d[_0x414aee(_0x2aefb9._0x58d4ac)](_0x545a16 => {
|
|
1101
|
+
const _0x36c431 = _0x414aee, _0x28d99d = _0x545a16[_0x36c431(0x178)] == null ? _0x36c431(_0x3b4c0c._0x2e98a8) : _0x545a16[_0x36c431(_0x3b4c0c._0x37340d)] != null ? '#' + _0x545a16['taskNumber'] + '.' + _0x545a16[_0x36c431(0x26b)] : '#' + _0x545a16[_0x36c431(0x178)], _0xe09f80 = _0x545a16[_0x36c431(_0x3b4c0c._0xbed387)] ? _0x36c431(_0x3b4c0c._0x2da21c) + _0x545a16[_0x36c431(0xfd)] : '', _0x46fae7 = _0x379031 && _0x545a16[_0x36c431(0x178)] != null && !_0x545a16[_0x36c431(_0x3b4c0c._0x5cb6e6)] && _0x379031[_0x36c431(_0x3b4c0c._0xfc9cc5)](_0x545a16[_0x36c431(0x178)]) ? '\x20executionMode=worker' : '', _0x5531a1 = _0x545a16[_0x36c431(0x1dd)] != null && _0x545a16[_0x36c431(_0x3b4c0c._0x2559e9)] > 0x0 ? '\x20(' + (_0x545a16[_0x36c431(_0x3b4c0c._0x20928f)] ?? 0x0) + '/' + _0x545a16[_0x36c431(_0x3b4c0c._0x2559e9)] + '\x20done)' : '';
|
|
1102
|
+
return _0x28d99d + '\x20[' + _0x545a16[_0x36c431(_0x3b4c0c._0xc4982c)] + ']\x20' + _0x545a16[_0x36c431(_0x3b4c0c._0xafaa4e)] + _0x5531a1 + _0xe09f80 + _0x46fae7;
|
|
1103
|
+
})['join']('\x0a');
|
|
1104
|
+
}
|
|
1105
|
+
function formatCreatedTasks(_0x28a321) {
|
|
1106
|
+
const _0x4b9b95 = {
|
|
1107
|
+
_0x25bf9d: 0x1fe,
|
|
1108
|
+
_0x250059: 0x1e4
|
|
1109
|
+
}, _0x558f67 = {
|
|
1110
|
+
_0x42fb59: 0x26b,
|
|
1111
|
+
_0x8311f2: 0x178,
|
|
1112
|
+
_0x26844a: 0x20b
|
|
1113
|
+
}, _0x5ca69c = _0x2980fe;
|
|
1114
|
+
if (_0x28a321[_0x5ca69c(_0x4b9b95._0x25bf9d)] === 0x0)
|
|
1115
|
+
return _0x5ca69c(_0x4b9b95._0x250059);
|
|
1116
|
+
return _0x28a321['map'](_0x16520 => {
|
|
1117
|
+
const _0xfaaf9 = _0x5ca69c, _0x4f6526 = _0x16520[_0xfaaf9(0x178)] == null ? _0xfaaf9(0x1db) : _0x16520[_0xfaaf9(_0x558f67._0x42fb59)] != null ? '#' + _0x16520[_0xfaaf9(0x178)] + '.' + _0x16520[_0xfaaf9(_0x558f67._0x42fb59)] : '#' + _0x16520[_0xfaaf9(_0x558f67._0x8311f2)], _0x4e3d7c = _0x16520[_0xfaaf9(0xfd)] ? _0xfaaf9(0x1e0) + _0x16520['messageId'] : '';
|
|
1118
|
+
return _0x4f6526 + '\x20' + _0x16520[_0xfaaf9(_0x558f67._0x26844a)] + _0x4e3d7c;
|
|
1119
|
+
})[_0x5ca69c(0x25e)]('\x0a');
|
|
1120
|
+
}
|
|
1121
|
+
function formatClaimTaskLabel(_0x5abd49, _0x5a0c72) {
|
|
1122
|
+
const _0x87b5b9 = _0x2980fe;
|
|
1123
|
+
if (_0x5abd49 == null)
|
|
1124
|
+
return _0x87b5b9(0x1db);
|
|
1125
|
+
return _0x5a0c72 != null ? '#' + _0x5abd49 + '.' + _0x5a0c72 : '#' + _0x5abd49;
|
|
1126
|
+
}
|
|
1127
|
+
function _0x2631() {
|
|
1128
|
+
const _0x2a4fbf = [
|
|
1129
|
+
'mJu1mZu2nfPyDxj5tG',
|
|
156
1130
|
'C3bSAxq',
|
|
157
|
-
'
|
|
158
|
-
'
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
'
|
|
162
|
-
'
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
1131
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1132
|
+
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1133
|
+
'lMjPBG',
|
|
1134
|
+
'Bwv0yq',
|
|
1135
|
+
'BgLZDf90yxnRCW',
|
|
1136
|
+
'DgL0Bgu',
|
|
1137
|
+
'xsba',
|
|
1138
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1139
|
+
'Agv4',
|
|
1140
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
1141
|
+
'Bwf0y2Hoyw1L',
|
|
167
1142
|
'DgHYzwfK',
|
|
168
|
-
'
|
|
169
|
-
'
|
|
170
|
-
'
|
|
1143
|
+
'DxnLCG',
|
|
1144
|
+
'AxngAw5PDgu',
|
|
1145
|
+
'DgfZA3m',
|
|
1146
|
+
'lsba',
|
|
171
1147
|
'zgvZy3jPyMu',
|
|
172
|
-
'
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
1148
|
+
'y29UDgvUDc10ExbL',
|
|
1149
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1150
|
+
'igTPBMq9',
|
|
1151
|
+
'ihn0yxr1CZ0',
|
|
176
1152
|
'z2v0',
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'CMvZDwX0sNnVBG',
|
|
184
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
185
|
-
'BNvTyMvY',
|
|
186
|
-
'CM9VDe1LC3nHz2vjza',
|
|
187
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
188
|
-
'yxv0BZO',
|
|
189
|
-
'l3n0yxj0',
|
|
190
|
-
'l2nVBNrLBNq',
|
|
191
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
192
|
-
'rg93BMXVywrLzcb0BZOG',
|
|
193
|
-
'kgXLz2fJEsK',
|
|
194
|
-
'igzHAwXLzdOG',
|
|
195
|
-
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
196
|
-
'Aw1Hz2uVCg5N',
|
|
197
|
-
'yxr0ywnOBwvUDhm',
|
|
198
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
199
|
-
'BM93',
|
|
200
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
201
|
-
'mtGXofLXtgzprG',
|
|
202
|
-
'AxnbyNnVBhv0zq',
|
|
203
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
204
|
-
'BgvUz3rO',
|
|
205
|
-
'C3rHCNrZv2L0Aa',
|
|
206
|
-
'zxzLBNrtzxe',
|
|
207
|
-
'C2v0',
|
|
208
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
209
|
-
'C2vUzf9TzxnZywDL',
|
|
210
|
-
'igrVBMuP',
|
|
211
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
212
|
-
'lcbWCMv2Awv3pq',
|
|
213
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
214
|
-
'Aw5FCMv2Awv3',
|
|
215
|
-
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
216
|
-
'yxjYyxLcDwzMzxi',
|
|
217
|
-
'BwvTyMvY',
|
|
218
|
-
'sfruuca',
|
|
219
|
-
'C2vUzgvYtMfTzq',
|
|
220
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
221
|
-
'z2v0vgLTzq',
|
|
222
|
-
'zMv0y2HjBxbS',
|
|
223
|
-
'CMvWBgfJzq',
|
|
224
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
225
|
-
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
226
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
227
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
228
|
-
'y2XHAw0GzMfPBgvK',
|
|
229
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
230
|
-
'yMvMB3jL',
|
|
231
|
-
'y2HPBgrYzw5eB25L',
|
|
1153
|
+
'D3nZoG',
|
|
1154
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1155
|
+
'zw51Bq',
|
|
1156
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1157
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1158
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
232
1159
|
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
233
|
-
'
|
|
234
|
-
'
|
|
235
|
-
'
|
|
236
|
-
'
|
|
237
|
-
'rMLSzsbUB3qGzM91BMq6ia',
|
|
238
|
-
'DgHYzwfKu2HVCNrjza',
|
|
239
|
-
'ktSGz290ignOyw5UzwW9',
|
|
240
|
-
'EM9K',
|
|
241
|
-
'D29YA2vYtw9Kzq',
|
|
242
|
-
'ywz0zxjtzxe',
|
|
243
|
-
'DgfZAW',
|
|
244
|
-
'CgfYC2vjBNq',
|
|
245
|
-
'D29YA2vYtw9KzuvUywjSzwq',
|
|
246
|
-
'C3rHCNrLza',
|
|
247
|
-
'C3rYAw5N',
|
|
248
|
-
'DgfZA051BwjLCG',
|
|
249
|
-
'igTPBMq9',
|
|
250
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
251
|
-
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
252
|
-
'C3vJy2vZCW',
|
|
253
|
-
'D3m6',
|
|
254
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
255
|
-
'AxngAwXL',
|
|
256
|
-
'zMfSC2u',
|
|
257
|
-
'ywjVCNq',
|
|
258
|
-
'icHPzdO',
|
|
259
|
-
'CxvLDwvK',
|
|
260
|
-
'iIbUB3qGzM91BMq',
|
|
261
|
-
'A2LUza',
|
|
262
|
-
'nJm3nJy1vwnXAfrf',
|
|
263
|
-
'zNjVBq',
|
|
264
|
-
'BgLZDf90yxnRCW',
|
|
265
|
-
'y2HHBM5LBeLK',
|
|
1160
|
+
'BwvZC2fNzq',
|
|
1161
|
+
'ywjVCNrLza',
|
|
1162
|
+
'l3n0yxj0',
|
|
1163
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
266
1164
|
'ls1KywvTB24TyxbPlwTLEq',
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'ls1Zzxj2zxiTDxjS',
|
|
281
|
-
'y2HHDa',
|
|
282
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
283
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
284
|
-
'y2XHAw1uyxnRCW',
|
|
285
|
-
'C2vYDMvY',
|
|
286
|
-
'DgfZA19Pza',
|
|
287
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
288
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
289
|
-
'zg06',
|
|
290
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1165
|
+
'w3rHCMDLDd0',
|
|
1166
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1167
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1168
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1169
|
+
'ywXS',
|
|
1170
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1171
|
+
'ywrK',
|
|
1172
|
+
'ihrPBwu9',
|
|
1173
|
+
'CMvJB3jK',
|
|
1174
|
+
'vgfZAYa',
|
|
1175
|
+
'AxnjBNrLz2vY',
|
|
1176
|
+
'ChvIBgLJ',
|
|
1177
|
+
'CgfYC2u',
|
|
291
1178
|
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
292
|
-
'
|
|
293
|
-
'
|
|
294
|
-
'
|
|
1179
|
+
'C29Tzq',
|
|
1180
|
+
'C2vYDMvY',
|
|
1181
|
+
'Aw1Hz2uVD2vICa',
|
|
295
1182
|
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
296
|
-
'
|
|
297
|
-
'
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'
|
|
303
|
-
'
|
|
304
|
-
'ls1Hz2vUDc1Pza',
|
|
1183
|
+
'DMLLD19MAwXL',
|
|
1184
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1185
|
+
'BwfW',
|
|
1186
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1187
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1188
|
+
'C2vUze1LC3nHz2u',
|
|
1189
|
+
'AxngAwXL',
|
|
1190
|
+
'zxH0BMfTzq',
|
|
305
1191
|
'B2jQzwn0',
|
|
306
|
-
'
|
|
307
|
-
'
|
|
1192
|
+
'CxvLDwvK',
|
|
1193
|
+
'v29YA2vYia',
|
|
1194
|
+
'ig1ZzZ0',
|
|
308
1195
|
'yxr0ywnOBwvUDenHy2HL',
|
|
309
|
-
'
|
|
1196
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1197
|
+
'Dgv4Dc9JC3y',
|
|
1198
|
+
'ywDLBNq',
|
|
1199
|
+
'BwvZC2fNzxm',
|
|
1200
|
+
'AgfZ',
|
|
1201
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1202
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1203
|
+
'zgLZCg9ZAxrPB24',
|
|
1204
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
1205
|
+
'BwvTyMvYCW',
|
|
1206
|
+
'iYmJieH1BwfUCW',
|
|
1207
|
+
'EM9K',
|
|
1208
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1209
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1210
|
+
'Aw5JBhvKzxm',
|
|
1211
|
+
'DgfYz2v0',
|
|
1212
|
+
'y2XHAw0GzMfPBgvK',
|
|
1213
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1214
|
+
'y2XHAw1FDgfZA3mGzMfPBgvK',
|
|
1215
|
+
'B3b0Aw9UywW',
|
|
1216
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1217
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1218
|
+
'C3rVCe1HAw4',
|
|
1219
|
+
'AM9PBG',
|
|
1220
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1221
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1222
|
+
'mtK5ntyWnLzrtgXbza',
|
|
1223
|
+
'C2HHmJu2',
|
|
1224
|
+
'ntq3odi1AevrqwPp',
|
|
1225
|
+
'DxbKyxrL',
|
|
1226
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1227
|
+
'y29UBMvJDa',
|
|
1228
|
+
'DMfSDwu',
|
|
1229
|
+
'C2L6zuj5DgvZ',
|
|
1230
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1231
|
+
'BgLZDf90yxnRCYbMywLSzwq',
|
|
1232
|
+
'C3vIDgfZA051BwjLCG',
|
|
1233
|
+
'DxbSB2fKx2zPBgu',
|
|
1234
|
+
'y2HHBM5LBhm',
|
|
1235
|
+
'Dgv4Da',
|
|
1236
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1237
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1238
|
+
'zw50CMLLCW',
|
|
1239
|
+
'zMLSDgvY',
|
|
1240
|
+
'DgfZAY0',
|
|
1241
|
+
'yMvMB3jL',
|
|
1242
|
+
'C2vUzf9TzxnZywDL',
|
|
1243
|
+
'y2fJAgveAxi',
|
|
1244
|
+
'DgHYzwfKtNvTyMvY',
|
|
1245
|
+
'khvUA25VD24P',
|
|
1246
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1247
|
+
'l3nLBMq',
|
|
1248
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1249
|
+
'zg9Uzq',
|
|
310
1250
|
'yM9KEvrLEhq',
|
|
311
|
-
'
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'BwLU',
|
|
321
|
-
'yM9KEu1HCMTKB3DU',
|
|
322
|
-
'mJi0nda1nKDgvKTzAG',
|
|
323
|
-
'ue9tva',
|
|
324
|
-
'D29YA2vYsgfUzg9MzG',
|
|
325
|
-
'DgfZA0LK',
|
|
326
|
-
'zxHWAxjLC0f0',
|
|
1251
|
+
'ogT2s05OvW',
|
|
1252
|
+
'AwrSzq',
|
|
1253
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1254
|
+
'ChvZAa',
|
|
1255
|
+
'Ahr0CdO',
|
|
1256
|
+
'DhjPBq',
|
|
1257
|
+
'BwvZC2fNzuLK',
|
|
1258
|
+
'lsaJ',
|
|
1259
|
+
'yxjYyxK',
|
|
327
1260
|
'r0vu',
|
|
328
|
-
'
|
|
329
|
-
'
|
|
330
|
-
'
|
|
331
|
-
'
|
|
332
|
-
'
|
|
333
|
-
'
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
1261
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1262
|
+
'ihr5Cgu9ywDLBNq',
|
|
1263
|
+
'y3vYC29Y',
|
|
1264
|
+
'BM93',
|
|
1265
|
+
'pgvTChr5pG',
|
|
1266
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1267
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1268
|
+
'CgfKu3rHCNq',
|
|
1269
|
+
'y3jLyxrLzef0',
|
|
1270
|
+
'nJHLwLjpDgq',
|
|
1271
|
+
'zxzLBNrtzxe',
|
|
1272
|
+
'BwvZC2fNzv9Pzhm',
|
|
1273
|
+
'zgf0yq',
|
|
1274
|
+
'Dw5JBgfPBvrHC2S',
|
|
1275
|
+
'ChjVDg9JB2W',
|
|
1276
|
+
'C3vJy2vZCW',
|
|
338
1277
|
'Dg9tDhjPBMC',
|
|
339
|
-
'uefuq0G',
|
|
340
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
341
|
-
'xsba',
|
|
342
1278
|
'Dg9VBa',
|
|
343
|
-
'
|
|
344
|
-
'
|
|
1279
|
+
'zgLNzxn0',
|
|
1280
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1281
|
+
'Cgf5Bg9HzePZB24',
|
|
1282
|
+
'BMv4Den1CNnVCG',
|
|
1283
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
1284
|
+
'y29UDgvUDa',
|
|
1285
|
+
'CNvUBMLUzW',
|
|
1286
|
+
'iYmJiefNzw50CW',
|
|
1287
|
+
'zgvZDhjVEwvK',
|
|
1288
|
+
'w3nLCt0',
|
|
1289
|
+
'BgLTAxq',
|
|
345
1290
|
'igLUia',
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
1291
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
1292
|
+
'DgfZA19Pza',
|
|
1293
|
+
'z2v0tw9UDgG',
|
|
1294
|
+
'AxnbyNnVBhv0zq',
|
|
1295
|
+
'lcbWCMv2Awv3pq',
|
|
1296
|
+
'DhLWzq',
|
|
1297
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
1298
|
+
'BNvTyMvY',
|
|
1299
|
+
'vgfZAZOG',
|
|
1300
|
+
'DgHYzwfKvgfYz2v0',
|
|
1301
|
+
'D29YA2vY',
|
|
1302
|
+
'AxnbCNjHEq',
|
|
1303
|
+
'Aw1Hz2uVz2LM',
|
|
1304
|
+
'DgHYzwfKswq',
|
|
1305
|
+
'twvZC2fNzsbZzw50ihrVia',
|
|
1306
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1307
|
+
'C3vIDgfZA19UDw1Izxi',
|
|
1308
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1309
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1310
|
+
'C29YDa',
|
|
1311
|
+
'DgvZDa',
|
|
1312
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1313
|
+
'zgvZy3jPChrPB24',
|
|
1314
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1315
|
+
'Dg9mB3DLCKnHC2u',
|
|
1316
|
+
'yxjNDG',
|
|
1317
|
+
'DgfYz2v0zwq',
|
|
1318
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1319
|
+
'v29YA2vYici',
|
|
1320
|
+
'ngDpBu9WuG',
|
|
1321
|
+
'ywDNCMvNyxrLswq',
|
|
353
1322
|
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1323
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
1324
|
+
'lMrZy29Yza',
|
|
1325
|
+
'yMfZzw5HBwu',
|
|
1326
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1327
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1328
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1329
|
+
'cGPvC2uGDgHPCYbjrcbPBIbZzw5Kx21LC3nHz2uNCYbHDhrHy2HTzw50x2LKCYbWyxjHBwv0zxiGDg8GAw5JBhvKzsbPDcbPBIbHig1LC3nHz2uU',
|
|
1330
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1331
|
+
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1332
|
+
'AhjLzG',
|
|
1333
|
+
'AgvHzgvYCW',
|
|
1334
|
+
'ignSywLTzwq',
|
|
1335
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1336
|
+
'y2HPBgrYzw5eB25L',
|
|
1337
|
+
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
1338
|
+
'iYmJienOyw5UzwXZ',
|
|
354
1339
|
'zMLUza',
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
1340
|
+
'A2LUza',
|
|
1341
|
+
'C3rYAw5NAwz5',
|
|
1342
|
+
'zxjYB3i',
|
|
1343
|
+
'l2nVBNrLBNq',
|
|
1344
|
+
'CMvHzf9OAxn0B3j5',
|
|
1345
|
+
'DgfZA0LK',
|
|
1346
|
+
'y2HHBM5LBa',
|
|
1347
|
+
'l3jLy2vPDMu',
|
|
1348
|
+
'mZm3nJy2thj0CeHA',
|
|
1349
|
+
'odi3ntm3mhbcuKnkEG',
|
|
1350
|
+
'y29UDgvUDejHC2u2na',
|
|
1351
|
+
'D29YA19RzxK',
|
|
1352
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1353
|
+
'ywz0zxjtzxe',
|
|
1354
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1355
|
+
'ue9tva',
|
|
1356
|
+
'y29UDgvUDfr5Cgu',
|
|
1357
|
+
'DMfSDwvZ',
|
|
1358
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1359
|
+
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
1360
|
+
'D29YA2vYCW',
|
|
1361
|
+
'C2nOzwr1BgvKrM9Y',
|
|
1362
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
361
1363
|
'y2XHAw1FDgfZA3m',
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
365
|
-
'
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
371
|
-
'Aw1Hz2uVC3zNk3HTBa',
|
|
372
|
-
'ls1ZzxnZAw9UlwLK',
|
|
373
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
374
|
-
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
375
|
-
'CMvZCg9UC2u',
|
|
376
|
-
'DxbSB2fKrMLSzq',
|
|
377
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
378
|
-
'nJK1ntmWAKzgBgPm',
|
|
1364
|
+
'C2L6zq',
|
|
1365
|
+
'y2HHBM5LBeLK',
|
|
1366
|
+
'ANnVBG',
|
|
1367
|
+
'6k+35Rgcia',
|
|
1368
|
+
'AhvTyw4',
|
|
1369
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1370
|
+
'CMvZDwX0CW',
|
|
1371
|
+
'DgfZAW',
|
|
379
1372
|
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
1373
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1374
|
+
'AhvTyw5Z',
|
|
1375
|
+
'y2XHAw1uyxnRCW',
|
|
1376
|
+
'C2vZC2LVBKLK',
|
|
1377
|
+
'D29YA2vYsgfUzg9MzG',
|
|
1378
|
+
'y2XPzw50',
|
|
1379
|
+
'DxrMoa',
|
|
1380
|
+
'DgfZA051BwjLCG',
|
|
1381
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1382
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
1383
|
+
'C2vYDMvYtMfTzq',
|
|
1384
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1385
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1386
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1387
|
+
'Bwf4',
|
|
1388
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1389
|
+
'l3rHC2TZpW',
|
|
1390
|
+
'zg0T',
|
|
1391
|
+
'Ahr0Chm6',
|
|
1392
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1393
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1394
|
+
'BgLZDf9Zzxj2zxi',
|
|
1395
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1396
|
+
'CMvXDwvZDfvYBa',
|
|
1397
|
+
'zMv0y2HjBxbS',
|
|
1398
|
+
'DxjNzw50',
|
|
1399
|
+
'Aw1Hz2uVANbLzW',
|
|
1400
|
+
'cGOTls0G',
|
|
1401
|
+
'CMvZCg9UC2u',
|
|
1402
|
+
'D29YA2vYtw9Kzq',
|
|
388
1403
|
'ywDLBNrZ',
|
|
389
|
-
'Bg9JywXLq29TCgfYzq',
|
|
390
|
-
'C2HHmJu2',
|
|
391
|
-
'Dg9ju09tDhjPBMC',
|
|
392
|
-
'nZqYmJC2mNblBwzPBq',
|
|
393
|
-
'lcbJB250zw50lxr5Cgu9',
|
|
394
|
-
'zgfLBw9Utg9JywXvCMW',
|
|
395
|
-
'ihn0yxr1CZ0',
|
|
396
|
-
'zxjYB3i',
|
|
397
|
-
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
398
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
399
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
400
|
-
'vxbKyxrLihrHC2SGC3rHDhvZigj5ignOyw5UzwWGyw5KihrHC2SGBNvTyMvYlIbgB3iGC3vIDgfZA3mSigfSC28GCgfZCYbZDwj0yxnRx251BwjLCI4',
|
|
401
|
-
'BwvTyMvYCW',
|
|
402
|
-
'D29YA2vY',
|
|
403
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
404
|
-
'yxjNDG',
|
|
405
|
-
'BwvZC2fNzxm',
|
|
406
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
407
|
-
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
408
|
-
'DgHYzwfKswq',
|
|
409
|
-
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
410
|
-
'BMv4Den1CNnVCG',
|
|
411
|
-
'AgfZ',
|
|
412
|
-
'DgHYzwfKvgfYz2v0',
|
|
413
|
-
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
414
1404
|
'l3vWBg9Hza',
|
|
415
|
-
'
|
|
416
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
417
|
-
'v29YA2vYia',
|
|
418
|
-
'D29YA19RzxK',
|
|
419
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
420
|
-
'lMjPBG',
|
|
421
|
-
'CgfYC2u',
|
|
422
|
-
'y2fJAgveAxi',
|
|
423
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
424
|
-
'BwvKAxvT',
|
|
425
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
426
|
-
'Dg9mB3DLCKnHC2u',
|
|
427
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
1405
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
428
1406
|
'C2XPy2u',
|
|
1407
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
1408
|
+
'CgfYDgLJAxbHBNq',
|
|
1409
|
+
'CgfYA193B3jRzxi',
|
|
1410
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
1411
|
+
'l3nLCNzLCG',
|
|
1412
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
1413
|
+
'yxr0ywnOBwvUDhm',
|
|
1414
|
+
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1415
|
+
'BwvKAxvT',
|
|
1416
|
+
'ywjVCNq',
|
|
1417
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1418
|
+
'C2vYDMvYvxjS',
|
|
1419
|
+
'yM9KEu1HCMTKB3DU',
|
|
1420
|
+
'y2HHDa',
|
|
1421
|
+
'z2v0twLUDxrLCW',
|
|
1422
|
+
'CMvHzeHPC3rVCNK',
|
|
1423
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1424
|
+
'Dg9KBW',
|
|
1425
|
+
'zg06',
|
|
1426
|
+
'CMvHC29U',
|
|
1427
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1428
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1429
|
+
'Dg9ju09tDhjPBMC',
|
|
1430
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1431
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1432
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1433
|
+
'DMLZAwjPBgL0Eq',
|
|
1434
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1435
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
1436
|
+
'C3rHDhvZ',
|
|
1437
|
+
'odmWmtLSqKvHreu',
|
|
1438
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1439
|
+
'ywDNCMvNyxrLswrZ',
|
|
1440
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1441
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1442
|
+
'oIb3B3jRzxiGCNvUDgLTzsbTAxnZAw5NihDVCMTLCLrOCMvHzfrHCMDLDdSGy2fUBM90ihzHBgLKyxrLihnJB3bL',
|
|
1443
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
429
1444
|
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
430
|
-
'
|
|
431
|
-
'
|
|
432
|
-
'
|
|
433
|
-
'
|
|
1445
|
+
'sfruuca',
|
|
1446
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1447
|
+
'DgfYz2v0zwruyxnR',
|
|
1448
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1449
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1450
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1451
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1452
|
+
'CMvZDwX0sNnVBG',
|
|
1453
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1454
|
+
'mc4WlJa',
|
|
1455
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1456
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1457
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1458
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1459
|
+
'Aw5FChjVz3jLC3m',
|
|
1460
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1461
|
+
'Ahr0CdOVl2XVy2fSAg9ZDdO4mtiX',
|
|
1462
|
+
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
1463
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
1464
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1465
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
1466
|
+
'yxjYyxLcDwzMzxi',
|
|
1467
|
+
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
1468
|
+
'CNvUswq',
|
|
1469
|
+
'BwLU',
|
|
1470
|
+
'iIbUB3qGzM91BMq',
|
|
1471
|
+
'ywDLBNrjza',
|
|
1472
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1473
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
1474
|
+
'Dw5JBgfPBv90yxnR',
|
|
1475
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1476
|
+
'DxbSB2fKrMLSzq',
|
|
1477
|
+
'nde3mJC3meDKt0vnEq',
|
|
1478
|
+
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
1479
|
+
'kgXLz2fJEsK',
|
|
1480
|
+
'zMLSzw5HBwu',
|
|
1481
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1482
|
+
'ywz0zxi',
|
|
1483
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1484
|
+
'ig1LC3nHz2u9',
|
|
1485
|
+
'C3rHCNrZv2L0Aa',
|
|
1486
|
+
'Aw5KzxHpzG',
|
|
1487
|
+
'y2HHBM5LBe5HBwu',
|
|
1488
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
1489
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1490
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1491
|
+
'D3m6',
|
|
1492
|
+
'igf0DgfJAg1LBNq',
|
|
1493
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1494
|
+
'kg5VBMuP',
|
|
1495
|
+
'BMfTzq',
|
|
1496
|
+
'C3rHCNrLza',
|
|
1497
|
+
'C2vUzgvYtMfTzq',
|
|
1498
|
+
'C2v0',
|
|
1499
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1500
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1501
|
+
'iYmGu2vYDMvYoIa',
|
|
1502
|
+
'C3rYAw5N',
|
|
1503
|
+
'C2LNBMfS',
|
|
1504
|
+
'l3rHC2TZl2nSywLT',
|
|
1505
|
+
'yxr0ywnOBwvUDeLK',
|
|
1506
|
+
'C2f2zq',
|
|
1507
|
+
'BwvTyMvY',
|
|
1508
|
+
'C2vX',
|
|
1509
|
+
'AgfZtw9Yzq',
|
|
1510
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1511
|
+
'Dw5RBM93BG',
|
|
1512
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1513
|
+
'AgLNAa',
|
|
1514
|
+
'BgvUz3rO',
|
|
1515
|
+
'ig1LC3nHz2vZkqOk',
|
|
1516
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1517
|
+
'CMvWBgfJzq',
|
|
1518
|
+
'zMLSzv9WyxrO',
|
|
1519
|
+
'Aw5FCMv2Awv3'
|
|
434
1520
|
];
|
|
435
|
-
|
|
436
|
-
return
|
|
437
|
-
};
|
|
438
|
-
return _0x42c5();
|
|
439
|
-
}
|
|
440
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
441
|
-
'.csv': _0x3cf5af(0x149),
|
|
442
|
-
'.gif': _0x3cf5af(0x166),
|
|
443
|
-
'.jpeg': _0x3cf5af(0x1ef),
|
|
444
|
-
'.jpg': 'image/jpeg',
|
|
445
|
-
'.json': _0x3cf5af(0x14a),
|
|
446
|
-
'.md': 'text/markdown',
|
|
447
|
-
'.pdf': 'application/pdf',
|
|
448
|
-
'.png': _0x3cf5af(0x185),
|
|
449
|
-
'.svg': _0x3cf5af(0x234),
|
|
450
|
-
'.txt': _0x3cf5af(0x1ad),
|
|
451
|
-
'.webp': 'image/webp',
|
|
452
|
-
'.xml': _0x3cf5af(0x212),
|
|
453
|
-
'.zip': _0x3cf5af(0x158)
|
|
454
|
-
};
|
|
455
|
-
function guessContentType(_0x3e8c3e) {
|
|
456
|
-
const _0x3783a3 = {
|
|
457
|
-
_0x1685f6: 0x26b,
|
|
458
|
-
_0x9ad01d: 0x16d
|
|
459
|
-
}, _0x5c456b = _0x3cf5af;
|
|
460
|
-
return MIME_BY_EXTENSION[_0x24ec42[_0x5c456b(0x148)](_0x3e8c3e)[_0x5c456b(_0x3783a3._0x1685f6)]()] ?? _0x5c456b(_0x3783a3._0x9ad01d);
|
|
461
|
-
}
|
|
462
|
-
function safeFilename(_0x365ad1) {
|
|
463
|
-
return _0x365ad1['replace'](/[\\/]/g, '-');
|
|
464
|
-
}
|
|
465
|
-
function extensionFor(_0x50ccce) {
|
|
466
|
-
const _0x16f56e = { _0x574ec2: 0x232 }, _0x401824 = _0x3cf5af, _0x3ca6be = Object[_0x401824(_0x16f56e._0x574ec2)](MIME_BY_EXTENSION)[_0x401824(0x223)](([, _0x11213b]) => _0x11213b === _0x50ccce);
|
|
467
|
-
return _0x3ca6be?.[0x0] ?? _0x401824(0x265);
|
|
468
|
-
}
|
|
469
|
-
async function prepareUploadFile(_0x3ab3c7, _0x55cecd = {}) {
|
|
470
|
-
const _0x35e743 = {
|
|
471
|
-
_0x35683c: 0x18b,
|
|
472
|
-
_0x29f98e: 0x230,
|
|
473
|
-
_0x1cc4c5: 0x1ae,
|
|
474
|
-
_0x201818: 0x1d4,
|
|
475
|
-
_0x10e790: 0x20b
|
|
476
|
-
}, _0x4b8a1a = _0x3cf5af;
|
|
477
|
-
if (!_0x24ec42[_0x4b8a1a(_0x35e743._0x35683c)](_0x3ab3c7))
|
|
478
|
-
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
479
|
-
const _0x3afd7a = await stat(_0x3ab3c7)[_0x4b8a1a(_0x35e743._0x29f98e)](() => null);
|
|
480
|
-
if (!_0x3afd7a || !_0x3afd7a[_0x4b8a1a(0x1c0)]())
|
|
481
|
-
throw new Error(_0x4b8a1a(_0x35e743._0x1cc4c5) + _0x3ab3c7);
|
|
482
|
-
const _0x127092 = _0x55cecd[_0x4b8a1a(0x23c)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
483
|
-
if (_0x3afd7a[_0x4b8a1a(_0x35e743._0x201818)] > _0x127092)
|
|
484
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x3afd7a['size']);
|
|
485
|
-
const _0x1c184d = await readFile(_0x3ab3c7), _0x20b12c = _0x24ec42['basename'](_0x3ab3c7);
|
|
486
|
-
return {
|
|
487
|
-
'contentBase64': _0x1c184d['toString'](_0x4b8a1a(_0x35e743._0x10e790)),
|
|
488
|
-
'contentType': guessContentType(_0x20b12c),
|
|
489
|
-
'filename': _0x20b12c,
|
|
490
|
-
'sizeBytes': _0x3afd7a[_0x4b8a1a(_0x35e743._0x201818)]
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
function createAttachmentCache(_0x191a9b = {}) {
|
|
494
|
-
const _0x5b9be5 = {
|
|
495
|
-
_0x1ad078: 0x267,
|
|
496
|
-
_0x2a7b52: 0x292,
|
|
497
|
-
_0x5a7320: 0x186
|
|
498
|
-
}, _0x4a7b3e = {
|
|
499
|
-
_0x5d2ca0: 0x108,
|
|
500
|
-
_0x2fd37f: 0x128,
|
|
501
|
-
_0x1a3b20: 0x108
|
|
502
|
-
}, _0x1a2ed3 = { _0x4faa71: 0x146 }, _0x2461d6 = _0x3cf5af, _0x33ea2f = _0x191a9b[_0x2461d6(_0x5b9be5._0x1ad078)] ?? _0x24ec42[_0x2461d6(0x146)](homedir(), _0x2461d6(_0x5b9be5._0x2a7b52), _0x2461d6(_0x5b9be5._0x5a7320));
|
|
503
|
-
return {
|
|
504
|
-
'cacheDir': _0x33ea2f,
|
|
505
|
-
async 'findCachedPath'(_0x58efca) {
|
|
506
|
-
const _0x15859f = _0x2461d6;
|
|
507
|
-
await mkdir(_0x33ea2f, { 'recursive': !![] });
|
|
508
|
-
const _0x565bd5 = await readdir(_0x33ea2f), _0x6f630c = _0x565bd5[_0x15859f(0x223)](_0x57a1db => _0x57a1db[_0x15859f(0x18e)](_0x58efca + '-') || _0x57a1db[_0x15859f(0x18e)](_0x58efca));
|
|
509
|
-
return _0x6f630c ? _0x24ec42[_0x15859f(_0x1a2ed3._0x4faa71)](_0x33ea2f, _0x6f630c) : null;
|
|
510
|
-
},
|
|
511
|
-
async 'save'(_0x2ff6b7) {
|
|
512
|
-
const _0xb494aa = _0x2461d6;
|
|
513
|
-
await mkdir(_0x33ea2f, { 'recursive': !![] });
|
|
514
|
-
const _0x35bef9 = _0x2ff6b7[_0xb494aa(_0x4a7b3e._0x5d2ca0)]?.[_0xb494aa(_0x4a7b3e._0x2fd37f)]() ? safeFilename(_0x2ff6b7[_0xb494aa(_0x4a7b3e._0x1a3b20)]) : '' + _0x2ff6b7[_0xb494aa(0x225)] + extensionFor(_0x2ff6b7[_0xb494aa(0x10b)]), _0x3bcb14 = _0x24ec42[_0xb494aa(0x146)](_0x33ea2f, _0x2ff6b7[_0xb494aa(0x225)] + '-' + _0x35bef9);
|
|
515
|
-
return await writeFile(_0x3bcb14, _0x2ff6b7[_0xb494aa(0x1ec)]), _0x3bcb14;
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
function _0x7e16(_0x2defe2, _0x2f2cf2) {
|
|
520
|
-
_0x2defe2 = _0x2defe2 - 0x106;
|
|
521
|
-
const _0x42c546 = _0x42c5();
|
|
522
|
-
let _0x7e1602 = _0x42c546[_0x2defe2];
|
|
523
|
-
if (_0x7e16['dMudok'] === undefined) {
|
|
524
|
-
var _0x3a16fe = function (_0x1982cc) {
|
|
525
|
-
const _0x20ce97 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
526
|
-
let _0x24ec42 = '', _0x3e8c3e = '';
|
|
527
|
-
for (let _0x365ad1 = 0x0, _0x50ccce, _0x3ca6be, _0x11213b = 0x0; _0x3ca6be = _0x1982cc['charAt'](_0x11213b++); ~_0x3ca6be && (_0x50ccce = _0x365ad1 % 0x4 ? _0x50ccce * 0x40 + _0x3ca6be : _0x3ca6be, _0x365ad1++ % 0x4) ? _0x24ec42 += String['fromCharCode'](0xff & _0x50ccce >> (-0x2 * _0x365ad1 & 0x6)) : 0x0) {
|
|
528
|
-
_0x3ca6be = _0x20ce97['indexOf'](_0x3ca6be);
|
|
529
|
-
}
|
|
530
|
-
for (let _0x3ab3c7 = 0x0, _0x55cecd = _0x24ec42['length']; _0x3ab3c7 < _0x55cecd; _0x3ab3c7++) {
|
|
531
|
-
_0x3e8c3e += '%' + ('00' + _0x24ec42['charCodeAt'](_0x3ab3c7)['toString'](0x10))['slice'](-0x2);
|
|
532
|
-
}
|
|
533
|
-
return decodeURIComponent(_0x3e8c3e);
|
|
534
|
-
};
|
|
535
|
-
_0x7e16['YfdngP'] = _0x3a16fe, _0x7e16['JPTxrN'] = {}, _0x7e16['dMudok'] = !![];
|
|
536
|
-
}
|
|
537
|
-
const _0x417066 = _0x42c546[0x0], _0x3f7716 = _0x2defe2 + _0x417066, _0x128511 = _0x7e16['JPTxrN'][_0x3f7716];
|
|
538
|
-
return !_0x128511 ? (_0x7e1602 = _0x7e16['YfdngP'](_0x7e1602), _0x7e16['JPTxrN'][_0x3f7716] = _0x7e1602) : _0x7e1602 = _0x128511, _0x7e1602;
|
|
539
|
-
}
|
|
540
|
-
import {
|
|
541
|
-
createHash,
|
|
542
|
-
randomUUID
|
|
543
|
-
} from 'node:crypto';
|
|
544
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x3cf5af(0x143);
|
|
545
|
-
function ensureSegment(_0x4beff1) {
|
|
546
|
-
const _0x4f9ab6 = { _0x6c27f8: 0x128 }, _0x37dbe4 = _0x3cf5af, _0x175cc6 = _0x4beff1[_0x37dbe4(_0x4f9ab6._0x6c27f8)]();
|
|
547
|
-
if (!_0x175cc6 || _0x175cc6[_0x37dbe4(0x28d)](':'))
|
|
548
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
549
|
-
return _0x175cc6;
|
|
550
|
-
}
|
|
551
|
-
function parseThreadParts(_0x12c378) {
|
|
552
|
-
const _0x1982d8 = {
|
|
553
|
-
_0x4cbe00: 0x15d,
|
|
554
|
-
_0x3a50d3: 0x18d
|
|
555
|
-
}, _0x512f50 = _0x3cf5af, _0x116a44 = _0x12c378[_0x512f50(_0x1982d8._0x4cbe00)](':');
|
|
556
|
-
if (_0x116a44[_0x512f50(_0x1982d8._0x3a50d3)] < 0x1 || _0x116a44['length'] > 0x2)
|
|
557
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
558
|
-
return {
|
|
559
|
-
'channelName': ensureSegment(_0x116a44[0x0] ?? ''),
|
|
560
|
-
'threadShortId': _0x116a44[0x1] ? ensureSegment(_0x116a44[0x1]) : null
|
|
561
|
-
};
|
|
562
|
-
}
|
|
563
|
-
function parseTarget(_0x1a378f) {
|
|
564
|
-
const _0x113455 = {
|
|
565
|
-
_0x2cf7eb: 0x128,
|
|
566
|
-
_0x7c427: 0x18e,
|
|
567
|
-
_0x447998: 0x1af,
|
|
568
|
-
_0x4fbf72: 0x1f4,
|
|
569
|
-
_0xa269f2: 0x136,
|
|
570
|
-
_0x406f87: 0x168,
|
|
571
|
-
_0x103007: 0x1e2,
|
|
572
|
-
_0x22cfba: 0x1ff,
|
|
573
|
-
_0x4d83ac: 0x136,
|
|
574
|
-
_0x31382c: 0x136
|
|
575
|
-
}, _0x4ec9da = _0x3cf5af, _0x213f7f = _0x1a378f[_0x4ec9da(_0x113455._0x2cf7eb)]();
|
|
576
|
-
if (!_0x213f7f)
|
|
577
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
578
|
-
if (_0x213f7f[_0x4ec9da(_0x113455._0x7c427)]('#')) {
|
|
579
|
-
const _0x49e4a3 = parseThreadParts(_0x213f7f['slice'](0x1)), _0x4771c5 = '#' + _0x49e4a3[_0x4ec9da(0x136)];
|
|
580
|
-
if (!_0x49e4a3[_0x4ec9da(_0x113455._0x447998)])
|
|
581
|
-
return {
|
|
582
|
-
'channelName': _0x49e4a3[_0x4ec9da(0x136)],
|
|
583
|
-
'channelTarget': _0x4771c5,
|
|
584
|
-
'kind': _0x4ec9da(_0x113455._0x4fbf72),
|
|
585
|
-
'target': _0x4771c5
|
|
586
|
-
};
|
|
587
|
-
return {
|
|
588
|
-
'channelName': _0x49e4a3[_0x4ec9da(_0x113455._0xa269f2)],
|
|
589
|
-
'channelTarget': _0x4771c5,
|
|
590
|
-
'kind': _0x4ec9da(_0x113455._0x406f87),
|
|
591
|
-
'target': _0x4771c5 + ':' + _0x49e4a3[_0x4ec9da(0x1af)],
|
|
592
|
-
'threadShortId': _0x49e4a3[_0x4ec9da(0x1af)]
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
if (_0x213f7f['startsWith'](_0x4ec9da(_0x113455._0x103007))) {
|
|
596
|
-
const _0x5e01b0 = parseThreadParts(_0x213f7f[_0x4ec9da(0x26d)](0x3));
|
|
597
|
-
if (!_0x5e01b0['channelName'][_0x4ec9da(0x18e)](_0x4ec9da(_0x113455._0x22cfba)))
|
|
598
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
599
|
-
const _0x5aaa06 = _0x4ec9da(_0x113455._0x103007) + _0x5e01b0[_0x4ec9da(_0x113455._0xa269f2)];
|
|
600
|
-
if (!_0x5e01b0['threadShortId'])
|
|
601
|
-
return {
|
|
602
|
-
'channelName': _0x5e01b0[_0x4ec9da(_0x113455._0x4d83ac)],
|
|
603
|
-
'channelTarget': _0x5aaa06,
|
|
604
|
-
'kind': _0x4ec9da(_0x113455._0x4fbf72),
|
|
605
|
-
'target': _0x5aaa06
|
|
606
|
-
};
|
|
607
|
-
return {
|
|
608
|
-
'channelName': _0x5e01b0[_0x4ec9da(_0x113455._0x31382c)],
|
|
609
|
-
'channelTarget': _0x5aaa06,
|
|
610
|
-
'kind': 'thread',
|
|
611
|
-
'target': _0x5aaa06 + ':' + _0x5e01b0[_0x4ec9da(_0x113455._0x447998)],
|
|
612
|
-
'threadShortId': _0x5e01b0[_0x4ec9da(0x1af)]
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
616
|
-
}
|
|
617
|
-
function asErrorMessage(_0xc6bdf8, _0x3fee3b) {
|
|
618
|
-
const _0x2351b2 = { _0x12806e: 0x128 }, _0x2767e5 = _0x3cf5af;
|
|
619
|
-
if (typeof _0xc6bdf8 === _0x2767e5(0x1b8) && _0xc6bdf8[_0x2767e5(_0x2351b2._0x12806e)]())
|
|
620
|
-
return _0xc6bdf8;
|
|
621
|
-
return _0x3fee3b;
|
|
622
|
-
}
|
|
623
|
-
function asRecord(_0x2dfd11) {
|
|
624
|
-
const _0x443978 = _0x3cf5af;
|
|
625
|
-
return typeof _0x2dfd11 === _0x443978(0x1f2) && _0x2dfd11 !== null ? _0x2dfd11 : {};
|
|
626
|
-
}
|
|
627
|
-
function stableStringify(_0x51e55a) {
|
|
628
|
-
const _0x78e015 = {
|
|
629
|
-
_0x367efd: 0x232,
|
|
630
|
-
_0x1d99eb: 0x20f,
|
|
631
|
-
_0x55f69e: 0x172,
|
|
632
|
-
_0x167f8e: 0x146
|
|
633
|
-
}, _0x2c6b33 = _0x3cf5af;
|
|
634
|
-
if (_0x51e55a === null || typeof _0x51e55a !== _0x2c6b33(0x1f2))
|
|
635
|
-
return JSON[_0x2c6b33(0x277)](_0x51e55a);
|
|
636
|
-
if (Array['isArray'](_0x51e55a))
|
|
637
|
-
return '[' + _0x51e55a['map'](_0x412a0c => stableStringify(_0x412a0c))['join'](',') + ']';
|
|
638
|
-
const _0x3d83a6 = Object[_0x2c6b33(_0x78e015._0x367efd)](_0x51e55a)[_0x2c6b33(_0x78e015._0x1d99eb)](([, _0x5e3317]) => _0x5e3317 !== void 0x0)[_0x2c6b33(_0x78e015._0x55f69e)](([_0x16ca27], [_0x953643]) => _0x16ca27[_0x2c6b33(0x246)](_0x953643))['map'](([_0x156b09, _0xf840f0]) => JSON[_0x2c6b33(0x277)](_0x156b09) + ':' + stableStringify(_0xf840f0));
|
|
639
|
-
return '{' + _0x3d83a6[_0x2c6b33(_0x78e015._0x167f8e)](',') + '}';
|
|
640
|
-
}
|
|
641
|
-
function createHeaders(_0x51d93d) {
|
|
642
|
-
const _0x1c4662 = _0x3cf5af;
|
|
643
|
-
return {
|
|
644
|
-
'Content-Type': _0x1c4662(0x14a),
|
|
645
|
-
'x-daemon-api-key': _0x51d93d
|
|
646
|
-
};
|
|
647
|
-
}
|
|
648
|
-
function toHttpBaseUrl(_0x5c7df9) {
|
|
649
|
-
const _0x3f5c80 = {
|
|
650
|
-
_0x421328: 0x1be,
|
|
651
|
-
_0x6c1457: 0x281,
|
|
652
|
-
_0x594bb2: 0x11d
|
|
653
|
-
}, _0x5931ae = _0x3cf5af, _0xab3725 = new URL(_0x5c7df9);
|
|
654
|
-
if (_0xab3725[_0x5931ae(0x281)] === _0x5931ae(_0x3f5c80._0x421328))
|
|
655
|
-
_0xab3725[_0x5931ae(_0x3f5c80._0x6c1457)] = _0x5931ae(0x160);
|
|
656
|
-
else
|
|
657
|
-
_0xab3725[_0x5931ae(_0x3f5c80._0x6c1457)] === _0x5931ae(_0x3f5c80._0x594bb2) && (_0xab3725['protocol'] = 'https:');
|
|
658
|
-
return _0xab3725['toString']()[_0x5931ae(0x1a0)](/\/$/, '');
|
|
659
|
-
}
|
|
660
|
-
function isMentionBoundary(_0x2f0c01) {
|
|
661
|
-
return !_0x2f0c01 || /\s|[([{'",。!?、:;]/['test'](_0x2f0c01);
|
|
662
|
-
}
|
|
663
|
-
function isMentionTerminal(_0x319925) {
|
|
664
|
-
const _0x55914f = _0x3cf5af;
|
|
665
|
-
return !_0x319925 || /\s|[)\]}'",。!?、:;,.!?]/[_0x55914f(0x1e9)](_0x319925);
|
|
666
|
-
}
|
|
667
|
-
function buildMatchableEntries(_0x22dfe6) {
|
|
668
|
-
const _0x3975ff = {
|
|
669
|
-
_0x3bb23d: 0x13c,
|
|
670
|
-
_0x4afffa: 0x173,
|
|
671
|
-
_0xfeef4d: 0x13c,
|
|
672
|
-
_0x2ca369: 0x240
|
|
673
|
-
}, _0x35b30d = _0x3cf5af, _0x343d93 = [];
|
|
674
|
-
for (const _0x18ae4a of [
|
|
675
|
-
..._0x22dfe6[_0x35b30d(0x245)],
|
|
676
|
-
..._0x22dfe6['humans']
|
|
677
|
-
]) {
|
|
678
|
-
_0x343d93[_0x35b30d(_0x3975ff._0x3bb23d)]({
|
|
679
|
-
'matchName': _0x18ae4a[_0x35b30d(0x173)],
|
|
680
|
-
'matchNameLower': _0x18ae4a[_0x35b30d(_0x3975ff._0x4afffa)][_0x35b30d(0x240)](),
|
|
681
|
-
'participantId': _0x18ae4a['id']
|
|
682
|
-
}), _0x18ae4a['id'] !== _0x18ae4a['name'] && _0x343d93[_0x35b30d(_0x3975ff._0xfeef4d)]({
|
|
683
|
-
'matchName': _0x18ae4a['id'],
|
|
684
|
-
'matchNameLower': _0x18ae4a['id'][_0x35b30d(_0x3975ff._0x2ca369)](),
|
|
685
|
-
'participantId': _0x18ae4a['id']
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
return _0x343d93;
|
|
689
|
-
}
|
|
690
|
-
function extractMentionedParticipantIds(_0x4497e5, _0x2f09ab) {
|
|
691
|
-
const _0x395232 = {
|
|
692
|
-
_0x106a88: 0x172,
|
|
693
|
-
_0x5f05a2: 0x26d,
|
|
694
|
-
_0x513df7: 0x223,
|
|
695
|
-
_0xd89c2: 0x15a,
|
|
696
|
-
_0xd6dd06: 0x231,
|
|
697
|
-
_0x41d525: 0x15a,
|
|
698
|
-
_0x15adf2: 0x18d
|
|
699
|
-
}, _0x28bcd3 = {
|
|
700
|
-
_0x421444: 0x138,
|
|
701
|
-
_0x39f49f: 0x18d
|
|
702
|
-
}, _0x15574b = _0x3cf5af, _0x178cca = buildMatchableEntries(_0x2f09ab)[_0x15574b(_0x395232._0x106a88)]((_0x49636f, _0x2d4c91) => _0x2d4c91['matchName'][_0x15574b(0x18d)] - _0x49636f[_0x15574b(0x23e)][_0x15574b(0x18d)]), _0x5b662b = [], _0x2a2529 = new Set();
|
|
703
|
-
for (let _0x3f5351 = 0x0; _0x3f5351 < _0x4497e5[_0x15574b(0x18d)]; _0x3f5351 += 0x1) {
|
|
704
|
-
if (_0x4497e5[_0x3f5351] !== '@' || !isMentionBoundary(_0x4497e5[_0x3f5351 - 0x1]))
|
|
705
|
-
continue;
|
|
706
|
-
const _0x3c16c2 = _0x4497e5[_0x15574b(_0x395232._0x5f05a2)](_0x3f5351 + 0x1), _0x551eee = _0x3c16c2['toLocaleLowerCase'](), _0x3dd61d = _0x178cca[_0x15574b(_0x395232._0x513df7)](_0x55375c => {
|
|
707
|
-
const _0x34613c = _0x15574b;
|
|
708
|
-
if (!_0x551eee[_0x34613c(0x18e)](_0x55375c[_0x34613c(_0x28bcd3._0x421444)]))
|
|
709
|
-
return ![];
|
|
710
|
-
return isMentionTerminal(_0x3c16c2[_0x55375c['matchName'][_0x34613c(_0x28bcd3._0x39f49f)]]);
|
|
711
|
-
});
|
|
712
|
-
if (!_0x3dd61d || _0x2a2529[_0x15574b(0x25c)](_0x3dd61d[_0x15574b(_0x395232._0xd89c2)]))
|
|
713
|
-
continue;
|
|
714
|
-
_0x2a2529[_0x15574b(_0x395232._0xd6dd06)](_0x3dd61d[_0x15574b(0x15a)]), _0x5b662b[_0x15574b(0x13c)](_0x3dd61d[_0x15574b(_0x395232._0x41d525)]), _0x3f5351 += _0x3dd61d[_0x15574b(0x23e)][_0x15574b(_0x395232._0x15adf2)];
|
|
715
|
-
}
|
|
716
|
-
return _0x5b662b;
|
|
717
|
-
}
|
|
718
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
719
|
-
function anySignal(..._0x583eb7) {
|
|
720
|
-
const _0x3779ac = { _0x43eadd: 0x1c2 }, _0x11dc2d = _0x3cf5af, _0x1ae520 = new AbortController();
|
|
721
|
-
for (const _0x48c288 of _0x583eb7) {
|
|
722
|
-
if (_0x48c288[_0x11dc2d(0x22f)])
|
|
723
|
-
return _0x1ae520[_0x11dc2d(_0x3779ac._0x43eadd)](_0x48c288[_0x11dc2d(0x154)]), _0x1ae520['signal'];
|
|
724
|
-
_0x48c288['addEventListener']('abort', () => _0x1ae520[_0x11dc2d(0x1c2)](_0x48c288['reason']), {
|
|
725
|
-
'once': !![],
|
|
726
|
-
'signal': _0x1ae520[_0x11dc2d(0x142)]
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
return _0x1ae520['signal'];
|
|
730
|
-
}
|
|
731
|
-
function createInternalAgentClient(_0x378182) {
|
|
732
|
-
const _0x389af4 = {
|
|
733
|
-
_0x370fa0: 0x26c,
|
|
734
|
-
_0x551da3: 0x17a,
|
|
735
|
-
_0x2b488a: 0x1e3,
|
|
736
|
-
_0x42fbb6: 0x128,
|
|
737
|
-
_0x28f89c: 0x153,
|
|
738
|
-
_0x279441: 0x128,
|
|
739
|
-
_0x5df096: 0x1b6,
|
|
740
|
-
_0x3977bd: 0x1dc,
|
|
741
|
-
_0x58750d: 0x129,
|
|
742
|
-
_0x228d2d: 0x128,
|
|
743
|
-
_0x5a2db9: 0x14c
|
|
744
|
-
}, _0x2d1927 = {
|
|
745
|
-
_0x4d21cd: 0x190,
|
|
746
|
-
_0x83e488: 0x288,
|
|
747
|
-
_0x52a0fa: 0x107,
|
|
748
|
-
_0x19e27d: 0x20f,
|
|
749
|
-
_0x435e45: 0x284,
|
|
750
|
-
_0x4f2e20: 0x1ca,
|
|
751
|
-
_0xfb7054: 0x17b,
|
|
752
|
-
_0x4ee86c: 0x147,
|
|
753
|
-
_0x9e8ef3: 0x171,
|
|
754
|
-
_0x13c76e: 0x232,
|
|
755
|
-
_0x9e4912: 0x16a,
|
|
756
|
-
_0x2a59ab: 0x18d,
|
|
757
|
-
_0x1741c5: 0x256,
|
|
758
|
-
_0x4713f5: 0x26f,
|
|
759
|
-
_0x1e41a7: 0x1c6,
|
|
760
|
-
_0x517379: 0x260,
|
|
761
|
-
_0x26e3e1: 0x202,
|
|
762
|
-
_0x5eeca6: 0x1b8,
|
|
763
|
-
_0x42e902: 0x13c,
|
|
764
|
-
_0x359c47: 0x248
|
|
765
|
-
}, _0x433d67 = {
|
|
766
|
-
_0xcd1b84: 0x1ca,
|
|
767
|
-
_0x445004: 0x20c
|
|
768
|
-
}, _0x5afa7e = {
|
|
769
|
-
_0x484ef9: 0x22e,
|
|
770
|
-
_0x47dc05: 0x208,
|
|
771
|
-
_0x12ee1a: 0x22e,
|
|
772
|
-
_0xffa40: 0x142,
|
|
773
|
-
_0x409ccb: 0x10b,
|
|
774
|
-
_0x1bbb14: 0x22b,
|
|
775
|
-
_0x3f0ca5: 0x171,
|
|
776
|
-
_0x449243: 0x108
|
|
777
|
-
}, _0x2e0c40 = {
|
|
778
|
-
_0x218a76: 0x1f4,
|
|
779
|
-
_0x4ad477: 0x259,
|
|
780
|
-
_0xe54975: 0x295,
|
|
781
|
-
_0x5af325: 0x288,
|
|
782
|
-
_0x384a55: 0x25f,
|
|
783
|
-
_0x4ebf94: 0x226,
|
|
784
|
-
_0x58a4be: 0x10b,
|
|
785
|
-
_0x102d81: 0x1ec
|
|
786
|
-
}, _0x551db2 = {
|
|
787
|
-
_0x10f987: 0x23d,
|
|
788
|
-
_0x81e9fb: 0x204
|
|
789
|
-
}, _0x3b4247 = {
|
|
790
|
-
_0x59a1cc: 0x10c,
|
|
791
|
-
_0x506714: 0x288,
|
|
792
|
-
_0x7f0428: 0x1a1,
|
|
793
|
-
_0x18dc88: 0x277,
|
|
794
|
-
_0x23d91c: 0x113
|
|
795
|
-
}, _0x25f0b3 = { _0x3e14c5: 0x277 }, _0x423577 = {
|
|
796
|
-
_0x525a29: 0x1f4,
|
|
797
|
-
_0x1d4a8b: 0x190,
|
|
798
|
-
_0x3a486d: 0x291
|
|
799
|
-
}, _0x9789d8 = {
|
|
800
|
-
_0x2f9bbf: 0x109,
|
|
801
|
-
_0x4cce09: 0x277,
|
|
802
|
-
_0x3a6290: 0x109
|
|
803
|
-
}, _0x2fd1f7 = {
|
|
804
|
-
_0x1db28f: 0x1a3,
|
|
805
|
-
_0x30a826: 0x17e,
|
|
806
|
-
_0x18d29e: 0x1ec
|
|
807
|
-
}, _0x34ed25 = {
|
|
808
|
-
_0xdfc7c4: 0x1db,
|
|
809
|
-
_0x38b7ae: 0x277,
|
|
810
|
-
_0x233688: 0x204
|
|
811
|
-
}, _0x12f092 = { _0x120e86: 0x208 }, _0x18b573 = {
|
|
812
|
-
_0x470b4f: 0x226,
|
|
813
|
-
_0x4ef096: 0x288,
|
|
814
|
-
_0x1c9cb4: 0x28c
|
|
815
|
-
}, _0x1cd4a9 = {
|
|
816
|
-
_0x12b53a: 0x201,
|
|
817
|
-
_0x1776e5: 0x20c,
|
|
818
|
-
_0x44d79c: 0x1ca,
|
|
819
|
-
_0x89ab59: 0x167,
|
|
820
|
-
_0x5206ca: 0x10d,
|
|
821
|
-
_0x563b58: 0x10c,
|
|
822
|
-
_0x1fd374: 0x288,
|
|
823
|
-
_0x38737d: 0x208,
|
|
824
|
-
_0x32363a: 0x1ec,
|
|
825
|
-
_0x15abcf: 0x215,
|
|
826
|
-
_0x507362: 0x221,
|
|
827
|
-
_0x351f1f: 0x12e
|
|
828
|
-
}, _0x51a651 = { _0x7e39c3: 0x27b }, _0x3a3764 = { _0x161eb7: 0x15a }, _0x352c1d = {
|
|
829
|
-
_0x105b63: 0x168,
|
|
830
|
-
_0x169c65: 0x147,
|
|
831
|
-
_0x59cca7: 0x1af,
|
|
832
|
-
_0x5315fa: 0x18e,
|
|
833
|
-
_0x2955cd: 0x259
|
|
834
|
-
}, _0x32dd32 = {
|
|
835
|
-
_0x52900c: 0x215,
|
|
836
|
-
_0x54cccb: 0x147,
|
|
837
|
-
_0x5dc1cf: 0x1af,
|
|
838
|
-
_0x582d9e: 0x17b,
|
|
839
|
-
_0x1e1979: 0x18e,
|
|
840
|
-
_0x2263b4: 0x259
|
|
841
|
-
}, _0x5af2af = {
|
|
842
|
-
_0x1c24f3: 0x215,
|
|
843
|
-
_0xde7ab9: 0x17b,
|
|
844
|
-
_0x1395bf: 0x17b,
|
|
845
|
-
_0x1b372e: 0x259,
|
|
846
|
-
_0x2bea5b: 0x259
|
|
847
|
-
}, _0x29dfc6 = {
|
|
848
|
-
_0x133a55: 0x245,
|
|
849
|
-
_0x48cd94: 0x157
|
|
850
|
-
}, _0x477be2 = {
|
|
851
|
-
_0x477405: 0x288,
|
|
852
|
-
_0x3db9e1: 0x20d,
|
|
853
|
-
_0x5386de: 0x226,
|
|
854
|
-
_0x3e2abd: 0x1ca,
|
|
855
|
-
_0x4a68df: 0x215,
|
|
856
|
-
_0x13ae28: 0x1ec
|
|
857
|
-
}, _0x759e19 = {
|
|
858
|
-
_0x1867d6: 0x264,
|
|
859
|
-
_0x350e28: 0x277,
|
|
860
|
-
_0x285087: 0x19b
|
|
861
|
-
}, _0x2cf1d6 = { _0x35c750: 0x277 }, _0x2ebd2c = {
|
|
862
|
-
_0x212902: 0x142,
|
|
863
|
-
_0x48946d: 0x19b,
|
|
864
|
-
_0x9022b: 0x291
|
|
865
|
-
}, _0x4732f0 = {
|
|
866
|
-
_0x21a3ed: 0x142,
|
|
867
|
-
_0x45547f: 0x142,
|
|
868
|
-
_0x5acd46: 0x1bd,
|
|
869
|
-
_0x1ba173: 0x24d,
|
|
870
|
-
_0x320d44: 0x291
|
|
871
|
-
}, _0x36411c = {
|
|
872
|
-
_0x571902: 0x228,
|
|
873
|
-
_0x6212f2: 0x228,
|
|
874
|
-
_0x41b303: 0x128,
|
|
875
|
-
_0x364f49: 0x188,
|
|
876
|
-
_0x4f3410: 0x152,
|
|
877
|
-
_0x3c31ab: 0x110,
|
|
878
|
-
_0x14e10a: 0x271,
|
|
879
|
-
_0x5d8883: 0x171,
|
|
880
|
-
_0x24d044: 0x145,
|
|
881
|
-
_0x53a392: 0x17d
|
|
882
|
-
}, _0x4f3d71 = { _0x3122b7: 0x213 }, _0x46852e = {
|
|
883
|
-
_0x29987d: 0x238,
|
|
884
|
-
_0x55a4dc: 0x1e7,
|
|
885
|
-
_0x2bba84: 0x128,
|
|
886
|
-
_0x2bbf4c: 0x135,
|
|
887
|
-
_0x235162: 0x169,
|
|
888
|
-
_0x23df55: 0x291,
|
|
889
|
-
_0x53154d: 0x24a
|
|
890
|
-
}, _0x14f5b3 = _0x3cf5af, _0x3d26df = _0x378182[_0x14f5b3(0x19f)] ?? fetch, _0x4d11d4 = _0x378182[_0x14f5b3(_0x389af4._0x370fa0)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x3bbe76 = typeof _0x378182['initialLastSeenSeq'] === _0x14f5b3(_0x389af4._0x551da3) && _0x378182[_0x14f5b3(0x1e3)] > 0x0 ? _0x378182[_0x14f5b3(_0x389af4._0x2b488a)] : 0x0, _0x543d13 = _0x378182['daemonLocalUrl']?.[_0x14f5b3(_0x389af4._0x42fbb6)]() || void 0x0, _0x329f69 = _0x378182[_0x14f5b3(_0x389af4._0x28f89c)]?.[_0x14f5b3(_0x389af4._0x279441)]() || void 0x0, _0x3a9c60 = _0x378182[_0x14f5b3(_0x389af4._0x5df096)] === !![], _0x5b02cc = _0x378182[_0x14f5b3(_0x389af4._0x3977bd)]?.[_0x14f5b3(0x128)]() || void 0x0, _0x36b777 = _0x378182[_0x14f5b3(_0x389af4._0x58750d)]?.[_0x14f5b3(_0x389af4._0x228d2d)]() || void 0x0, _0x17ed33 = createHeaders(_0x378182[_0x14f5b3(0x287)]), _0xa0a276 = toHttpBaseUrl(_0x378182[_0x14f5b3(_0x389af4._0x5a2db9)]);
|
|
891
|
-
let _0x53ba02 = null;
|
|
892
|
-
const _0x5464db = new Map();
|
|
893
|
-
let _0x27020f = _0x3bbe76, _0x541be7 = _0x3bbe76;
|
|
894
|
-
function _0x435828(_0x482e04) {
|
|
895
|
-
const _0x52b0e8 = _0x14f5b3, _0x2a724e = _0x482e04[_0x52b0e8(_0x46852e._0x29987d)][_0x52b0e8(0x22b)][_0x52b0e8(0x171)](_0x52b0e8(_0x46852e._0x55a4dc)) ?? 'unknown', _0xaab1b5 = _0x482e04[_0x52b0e8(0x1f7)][_0x52b0e8(_0x46852e._0x2bba84)]()[_0x52b0e8(0x1a0)](/\s+/g, '\x20')[_0x52b0e8(0x26d)](0x0, 0x78) || '<empty>';
|
|
896
|
-
return _0x52b0e8(0x1eb) + _0x482e04[_0x52b0e8(_0x46852e._0x2bbf4c)] + _0x52b0e8(_0x46852e._0x235162) + _0x482e04['response'][_0x52b0e8(_0x46852e._0x23df55)] + _0x52b0e8(_0x46852e._0x53154d) + _0x2a724e + _0x52b0e8(0x195) + _0xaab1b5 + _0x52b0e8(0x13a);
|
|
897
|
-
}
|
|
898
|
-
async function _0x474918(_0x3a295a, _0x3a1cbb) {
|
|
899
|
-
const _0x5e5836 = _0x14f5b3, _0x24d986 = Buffer[_0x5e5836(0x1c8)](await _0x3a1cbb[_0x5e5836(0x199)]())[_0x5e5836(_0x4f3d71._0x3122b7)](_0x5e5836(0x27a));
|
|
900
|
-
if (!_0x24d986[_0x5e5836(0x128)]())
|
|
901
|
-
return {};
|
|
902
|
-
try {
|
|
903
|
-
return JSON[_0x5e5836(0x266)](_0x24d986);
|
|
904
|
-
} catch {
|
|
905
|
-
throw new Error(_0x435828({
|
|
906
|
-
'bodyText': _0x24d986,
|
|
907
|
-
'requestUrl': _0x3a295a,
|
|
908
|
-
'response': _0x3a1cbb
|
|
909
|
-
}));
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
function _0x5682ba(_0x17dc56, _0x57850c) {
|
|
913
|
-
const _0x18d9b3 = _0x14f5b3, _0x3b2dbd = typeof _0x57850c[_0x18d9b3(_0x36411c._0x571902)] === 'string' ? _0x57850c[_0x18d9b3(_0x36411c._0x6212f2)][_0x18d9b3(_0x36411c._0x41b303)]() : '';
|
|
914
|
-
if (_0x3b2dbd)
|
|
915
|
-
return _0x3b2dbd;
|
|
916
|
-
const _0x7bfb38 = Date[_0x18d9b3(_0x36411c._0x364f49)]();
|
|
917
|
-
for (const [_0x58a3bb, _0x263d2a] of _0x5464db) {
|
|
918
|
-
_0x263d2a[_0x18d9b3(0x207)] <= _0x7bfb38 && _0x5464db[_0x18d9b3(_0x36411c._0x4f3410)](_0x58a3bb);
|
|
919
|
-
}
|
|
920
|
-
const _0x411b32 = {
|
|
921
|
-
..._0x57850c,
|
|
922
|
-
'idempotency_key': void 0x0
|
|
923
|
-
}, _0x5b61f8 = createHash(_0x18d9b3(0x247))['update'](_0x17dc56 + ':' + stableStringify(_0x411b32))[_0x18d9b3(_0x36411c._0x3c31ab)](_0x18d9b3(_0x36411c._0x14e10a)), _0x4b1b8e = _0x17dc56 + ':' + _0x5b61f8, _0x13da4f = _0x5464db[_0x18d9b3(_0x36411c._0x5d8883)](_0x4b1b8e);
|
|
924
|
-
if (_0x13da4f)
|
|
925
|
-
return _0x13da4f[_0x18d9b3(_0x36411c._0x24d044)];
|
|
926
|
-
const _0x3619df = _0x18d9b3(_0x36411c._0x53a392) + _0x17dc56 + ':' + randomUUID();
|
|
927
|
-
return _0x5464db[_0x18d9b3(0x190)](_0x4b1b8e, {
|
|
928
|
-
'expiresAt': _0x7bfb38 + 0x5 * 0x3c * 0x3e8,
|
|
929
|
-
'value': _0x3619df
|
|
930
|
-
}), _0x3619df;
|
|
931
|
-
}
|
|
932
|
-
async function _0x252eb3(_0x58bccc, _0x5c297f) {
|
|
933
|
-
const _0x2b8186 = _0x14f5b3, _0x4047df = new AbortController(), _0x258498 = setTimeout(() => _0x4047df[_0x2b8186(0x1c2)](), _0x4d11d4), _0x5cebd2 = _0x5c297f?.[_0x2b8186(_0x4732f0._0x21a3ed)] ? anySignal(_0x5c297f['signal'], _0x4047df[_0x2b8186(_0x4732f0._0x45547f)]) : _0x4047df[_0x2b8186(0x142)], _0x2d146c = '' + _0xa0a276 + _0x58bccc;
|
|
934
|
-
try {
|
|
935
|
-
const _0x35e692 = await _0x3d26df(_0x2d146c, {
|
|
936
|
-
..._0x5c297f,
|
|
937
|
-
'signal': _0x5cebd2
|
|
938
|
-
}), _0x5d4cfd = await _0x474918(_0x2d146c, _0x35e692);
|
|
939
|
-
if (!_0x35e692['ok'] || _0x5d4cfd[_0x2b8186(_0x4732f0._0x5acd46)] === ![])
|
|
940
|
-
throw new Error(asErrorMessage(_0x5d4cfd[_0x2b8186(_0x4732f0._0x1ba173)], 'HTTP\x20' + _0x35e692[_0x2b8186(_0x4732f0._0x320d44)]));
|
|
941
|
-
return _0x5d4cfd;
|
|
942
|
-
} finally {
|
|
943
|
-
clearTimeout(_0x258498);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
async function _0x539991(_0x26ace5, _0x1296d1) {
|
|
947
|
-
const _0x1a6a3a = _0x14f5b3, _0x2e1d99 = new AbortController(), _0x321898 = setTimeout(() => _0x2e1d99[_0x1a6a3a(0x1c2)](), _0x4d11d4), _0x33314c = _0x1296d1?.[_0x1a6a3a(0x142)] ? anySignal(_0x1296d1['signal'], _0x2e1d99[_0x1a6a3a(_0x2ebd2c._0x212902)]) : _0x2e1d99[_0x1a6a3a(0x142)], _0x436715 = '' + _0xa0a276 + _0x26ace5;
|
|
948
|
-
try {
|
|
949
|
-
const _0x307367 = await _0x3d26df(_0x436715, {
|
|
950
|
-
..._0x1296d1,
|
|
951
|
-
'signal': _0x33314c
|
|
952
|
-
}), _0x498c89 = await _0x474918(_0x436715, _0x307367);
|
|
953
|
-
if (!_0x307367['ok'])
|
|
954
|
-
throw new Error(asErrorMessage(_0x498c89[_0x1a6a3a(0x24d)], _0x1a6a3a(_0x2ebd2c._0x48946d) + _0x307367[_0x1a6a3a(_0x2ebd2c._0x9022b)]));
|
|
955
|
-
return _0x498c89;
|
|
956
|
-
} finally {
|
|
957
|
-
clearTimeout(_0x321898);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
async function _0x3b3a19(_0x435bdb) {
|
|
961
|
-
const _0x4594e5 = _0x14f5b3;
|
|
962
|
-
if (!_0x329f69 || _0x435bdb <= _0x541be7)
|
|
963
|
-
return;
|
|
964
|
-
await _0x252eb3('/api/agent-sessions/' + encodeURIComponent(_0x329f69) + _0x4594e5(0x151), {
|
|
965
|
-
'body': JSON[_0x4594e5(_0x2cf1d6._0x35c750)]({ 'lastSeenSeq': _0x435bdb }),
|
|
966
|
-
'headers': _0x17ed33,
|
|
967
|
-
'method': _0x4594e5(0x214)
|
|
968
|
-
}), _0x541be7 = _0x435bdb;
|
|
969
|
-
}
|
|
970
|
-
async function _0x152b64(_0x331fe5) {
|
|
971
|
-
const _0x134cc5 = _0x14f5b3;
|
|
972
|
-
if (!_0x543d13 || !_0x5b02cc || _0x331fe5 <= _0x541be7)
|
|
973
|
-
return;
|
|
974
|
-
const _0x5af68c = await _0x3d26df(_0x543d13 + _0x134cc5(_0x759e19._0x1867d6), {
|
|
975
|
-
'body': JSON[_0x134cc5(_0x759e19._0x350e28)]({
|
|
976
|
-
'last_seen_seq': _0x331fe5,
|
|
977
|
-
'worker_session_id': _0x5b02cc
|
|
978
|
-
}),
|
|
979
|
-
'headers': { 'Content-Type': _0x134cc5(0x14a) },
|
|
980
|
-
'method': 'POST'
|
|
981
|
-
});
|
|
982
|
-
if (!_0x5af68c['ok'])
|
|
983
|
-
throw new Error(_0x134cc5(_0x759e19._0x285087) + _0x5af68c['status']);
|
|
984
|
-
_0x541be7 = _0x331fe5;
|
|
985
|
-
}
|
|
986
|
-
async function _0x2ab924(_0x4dd308) {
|
|
987
|
-
const _0x230f82 = _0x14f5b3, _0x255d46 = parseTarget(_0x4dd308), _0x55e32a = await _0x252eb3('/internal/agent/' + _0x378182[_0x230f82(_0x477be2._0x477405)] + _0x230f82(_0x477be2._0x3db9e1), {
|
|
988
|
-
'body': JSON[_0x230f82(0x277)]({ 'target': _0x255d46[_0x230f82(_0x477be2._0x5386de)] }),
|
|
989
|
-
'headers': _0x17ed33,
|
|
990
|
-
'method': 'POST'
|
|
991
|
-
});
|
|
992
|
-
return {
|
|
993
|
-
'channelId': _0x55e32a[_0x230f82(0x1ec)]?.[_0x230f82(_0x477be2._0x3e2abd)] ?? '',
|
|
994
|
-
'target': _0x255d46[_0x230f82(_0x477be2._0x4a68df)],
|
|
995
|
-
'task': _0x55e32a[_0x230f82(0x1ec)]?.[_0x230f82(0x1b4)],
|
|
996
|
-
'threadId': _0x55e32a['data']?.['threadId'],
|
|
997
|
-
'threadNumber': _0x55e32a[_0x230f82(_0x477be2._0x13ae28)]?.['threadNumber']
|
|
998
|
-
};
|
|
999
|
-
}
|
|
1000
|
-
async function _0x589a42(_0x1c2372 = {}) {
|
|
1001
|
-
const _0x3479e3 = {
|
|
1002
|
-
_0x1cc032: 0x1ec,
|
|
1003
|
-
_0x1db692: 0x20f,
|
|
1004
|
-
_0x117ae3: 0x1de
|
|
1005
|
-
}, _0x3e8ade = _0x14f5b3;
|
|
1006
|
-
if (!_0x1c2372[_0x3e8ade(0x144)] && _0x53ba02)
|
|
1007
|
-
return _0x53ba02;
|
|
1008
|
-
return _0x53ba02 = (async () => {
|
|
1009
|
-
const _0x499757 = _0x3e8ade, _0xbb280 = await _0x252eb3(_0x499757(0x10c) + _0x378182[_0x499757(0x288)] + _0x499757(0x272), {
|
|
1010
|
-
'headers': _0x17ed33,
|
|
1011
|
-
'method': _0x499757(0x208)
|
|
1012
|
-
}), _0x363358 = _0xbb280[_0x499757(_0x3479e3._0x1cc032)]?.[_0x499757(0x252)] ?? [], _0x47df4b = _0x363358[_0x499757(_0x3479e3._0x1db692)](_0x3043cc => _0x3043cc[_0x499757(0x27b)]?.['type'] === _0x499757(0x28e))[_0x499757(0x21c)](_0x2d89fe => ({
|
|
1013
|
-
'id': _0x3c7770(_0x2d89fe),
|
|
1014
|
-
'name': _0x456c5e(_0x2d89fe)
|
|
1015
|
-
}))['filter'](_0x364a29 => _0x364a29['id']), _0x42f2b1 = _0x363358[_0x499757(0x20f)](_0x24583d => _0x24583d[_0x499757(0x27b)]?.[_0x499757(0x1cc)] !== 'agent')[_0x499757(0x21c)](_0x449352 => ({
|
|
1016
|
-
'id': _0x3c7770(_0x449352),
|
|
1017
|
-
'name': _0x456c5e(_0x449352)
|
|
1018
|
-
}))[_0x499757(0x20f)](_0x8c5ca2 => _0x8c5ca2['id']), _0xc5fbaf = _0xbb280[_0x499757(0x1ec)]?.['server']['id'] ?? '';
|
|
1019
|
-
return {
|
|
1020
|
-
'agents': _0x47df4b,
|
|
1021
|
-
'channels': _0xbb280[_0x499757(_0x3479e3._0x1cc032)]?.[_0x499757(0x284)] ?? [],
|
|
1022
|
-
'humans': _0x42f2b1,
|
|
1023
|
-
'serverId': _0xc5fbaf,
|
|
1024
|
-
'serverName': _0xbb280['data']?.[_0x499757(_0x3479e3._0x117ae3)]['name'] ?? _0xc5fbaf
|
|
1025
|
-
};
|
|
1026
|
-
})()[_0x3e8ade(0x230)](_0x8763eb => {
|
|
1027
|
-
_0x53ba02 = null;
|
|
1028
|
-
throw _0x8763eb;
|
|
1029
|
-
}), _0x53ba02;
|
|
1030
|
-
}
|
|
1031
|
-
function _0x189ec4(_0x123108, _0x3e976) {
|
|
1032
|
-
const _0x40ecd8 = _0x14f5b3;
|
|
1033
|
-
return _0x3e976[_0x40ecd8(_0x29dfc6._0x133a55)][_0x40ecd8(_0x29dfc6._0x48cd94)](_0x2530b1 => _0x2530b1['id'] === _0x123108 || _0x2530b1[_0x40ecd8(0x173)] === _0x123108) ? _0x40ecd8(0x28e) : _0x40ecd8(0x111);
|
|
1034
|
-
}
|
|
1035
|
-
function _0xb2570f(_0x1e7713) {
|
|
1036
|
-
const _0x34d8fe = _0x14f5b3;
|
|
1037
|
-
if (_0x1e7713[_0x34d8fe(0x147)] != null)
|
|
1038
|
-
return _0x1e7713[_0x34d8fe(_0x5af2af._0x1c24f3)] + ':t' + _0x1e7713[_0x34d8fe(0x147)];
|
|
1039
|
-
if (_0x1e7713[_0x34d8fe(_0x5af2af._0xde7ab9)])
|
|
1040
|
-
return _0x1e7713['channelTarget'] + ':' + _0x1e7713[_0x34d8fe(_0x5af2af._0x1395bf)];
|
|
1041
|
-
if (_0x1e7713[_0x34d8fe(_0x5af2af._0x1b372e)])
|
|
1042
|
-
return _0x1e7713[_0x34d8fe(0x215)] + ':' + _0x1e7713[_0x34d8fe(_0x5af2af._0x2bea5b)][_0x34d8fe(0x26d)](0x0, 0x8);
|
|
1043
|
-
return _0x1e7713[_0x34d8fe(0x215)];
|
|
1044
|
-
}
|
|
1045
|
-
function _0x1b6776(_0x4b0456, _0x4a68ad) {
|
|
1046
|
-
const _0x303aa4 = _0x14f5b3;
|
|
1047
|
-
try {
|
|
1048
|
-
const _0x556b53 = parseTarget(_0x4b0456);
|
|
1049
|
-
if (_0x556b53[_0x303aa4(0x1c6)] !== 'thread' || _0x556b53['channelTarget'] !== _0x4a68ad[_0x303aa4(_0x32dd32._0x52900c)])
|
|
1050
|
-
return ![];
|
|
1051
|
-
if (_0x4a68ad[_0x303aa4(_0x32dd32._0x54cccb)] != null && _0x556b53['threadShortId'] === 't' + _0x4a68ad[_0x303aa4(_0x32dd32._0x54cccb)])
|
|
1052
|
-
return !![];
|
|
1053
|
-
if (_0x4a68ad['rootMessageId'])
|
|
1054
|
-
return _0x556b53[_0x303aa4(_0x32dd32._0x5dc1cf)] === _0x4a68ad['rootMessageId'] || _0x4a68ad[_0x303aa4(_0x32dd32._0x582d9e)][_0x303aa4(_0x32dd32._0x1e1979)](_0x556b53[_0x303aa4(_0x32dd32._0x5dc1cf)]);
|
|
1055
|
-
if (_0x4a68ad[_0x303aa4(_0x32dd32._0x2263b4)])
|
|
1056
|
-
return _0x556b53['threadShortId'] === _0x4a68ad['threadId'] || _0x4a68ad['threadId']['startsWith'](_0x556b53[_0x303aa4(0x1af)]);
|
|
1057
|
-
return ![];
|
|
1058
|
-
} catch {
|
|
1059
|
-
return ![];
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
function _0x437520(_0x9d1267, _0x4d40ab) {
|
|
1063
|
-
const _0x58cf18 = _0x14f5b3;
|
|
1064
|
-
try {
|
|
1065
|
-
const _0xbe1bab = parseTarget(_0x9d1267);
|
|
1066
|
-
if (_0xbe1bab['kind'] !== _0x58cf18(_0x352c1d._0x105b63))
|
|
1067
|
-
return ![];
|
|
1068
|
-
const _0x3cec03 = typeof _0x4d40ab[_0x58cf18(_0x352c1d._0x169c65)] === _0x58cf18(0x17a) && Number['isInteger'](_0x4d40ab[_0x58cf18(_0x352c1d._0x169c65)]) ? _0x4d40ab[_0x58cf18(0x147)] : void 0x0;
|
|
1069
|
-
if (_0x3cec03 != null && _0xbe1bab[_0x58cf18(_0x352c1d._0x59cca7)] === 't' + _0x3cec03)
|
|
1070
|
-
return !![];
|
|
1071
|
-
const _0x4c5361 = typeof _0x4d40ab[_0x58cf18(0x17b)] === 'string' ? _0x4d40ab[_0x58cf18(0x17b)] : void 0x0;
|
|
1072
|
-
if (_0x4c5361)
|
|
1073
|
-
return _0xbe1bab['threadShortId'] === _0x4c5361 || _0x4c5361[_0x58cf18(_0x352c1d._0x5315fa)](_0xbe1bab['threadShortId']);
|
|
1074
|
-
const _0x141e1d = typeof _0x4d40ab[_0x58cf18(_0x352c1d._0x2955cd)] === 'string' ? _0x4d40ab['threadId'] : void 0x0;
|
|
1075
|
-
return Boolean(_0x141e1d) && (_0xbe1bab['threadShortId'] === _0x141e1d || _0x141e1d[_0x58cf18(_0x352c1d._0x5315fa)](_0xbe1bab['threadShortId']));
|
|
1076
|
-
} catch {
|
|
1077
|
-
return ![];
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
function _0x3c7770(_0x1f695b) {
|
|
1081
|
-
const _0x152a6e = _0x14f5b3;
|
|
1082
|
-
return _0x1f695b[_0x152a6e(0x19a)]?.[_0x152a6e(_0x3a3764._0x161eb7)] ?? _0x1f695b[_0x152a6e(0x27b)]?.['id'] ?? _0x1f695b['participantId'] ?? '';
|
|
1083
|
-
}
|
|
1084
|
-
function _0x456c5e(_0x306860) {
|
|
1085
|
-
const _0x393728 = _0x14f5b3;
|
|
1086
|
-
return _0x306860[_0x393728(_0x51a651._0x7e39c3)]?.[_0x393728(0x173)] ?? _0x3c7770(_0x306860);
|
|
1087
|
-
}
|
|
1088
|
-
async function _0x276c3f(_0x1fc4eb) {
|
|
1089
|
-
const _0x5a5d8e = _0x14f5b3, _0x24b2d2 = Math[_0x5a5d8e(_0x1cd4a9._0x12b53a)](_0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x1776e5)] ?? 0x32, 0x64), _0xf55dc3 = await _0x589a42(), _0x58ef8c = new URLSearchParams();
|
|
1090
|
-
_0x58ef8c['set'](_0x5a5d8e(0x20c), String(_0x24b2d2));
|
|
1091
|
-
_0x1fc4eb[_0x5a5d8e(0x259)] ? (_0x58ef8c[_0x5a5d8e(0x190)](_0x5a5d8e(0x259), _0x1fc4eb[_0x5a5d8e(0x259)]), _0x58ef8c[_0x5a5d8e(0x190)](_0x5a5d8e(_0x1cd4a9._0x44d79c), _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x44d79c)])) : _0x58ef8c[_0x5a5d8e(0x190)]('channelId', _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x44d79c)]);
|
|
1092
|
-
_0x1fc4eb[_0x5a5d8e(0x1a7)] && _0x58ef8c['set'](_0x5a5d8e(_0x1cd4a9._0x89ab59), String(_0x1fc4eb[_0x5a5d8e(0x1a7)]));
|
|
1093
|
-
_0x1fc4eb[_0x5a5d8e(0x10d)] !== void 0x0 && _0x58ef8c['set'](_0x5a5d8e(_0x1cd4a9._0x5206ca), String(_0x1fc4eb['after']));
|
|
1094
|
-
const _0x5766bf = await _0x252eb3(_0x5a5d8e(_0x1cd4a9._0x563b58) + _0x378182[_0x5a5d8e(_0x1cd4a9._0x1fd374)] + _0x5a5d8e(0x28a) + _0x58ef8c['toString'](), {
|
|
1095
|
-
'headers': _0x17ed33,
|
|
1096
|
-
'method': _0x5a5d8e(_0x1cd4a9._0x38737d)
|
|
1097
|
-
}), _0x4a6a0c = (_0x5766bf[_0x5a5d8e(_0x1cd4a9._0x32363a)] ?? [])['map'](_0x54721d => ({
|
|
1098
|
-
'attachments': (_0x54721d[_0x5a5d8e(0x186)] ?? [])['map'](_0x2e7dbc => ({
|
|
1099
|
-
'filename': _0x2e7dbc['filename'] ?? _0x2e7dbc['id'],
|
|
1100
|
-
'id': _0x2e7dbc['id']
|
|
1101
|
-
})),
|
|
1102
|
-
'content': _0x54721d['bodyMarkdown'] ?? '',
|
|
1103
|
-
'createdAt': _0x54721d[_0x5a5d8e(0x1d0)],
|
|
1104
|
-
..._0x54721d[_0x5a5d8e(0x1c6)] && _0x54721d['kind'] !== _0x5a5d8e(0x1da) ? { 'kind': _0x54721d[_0x5a5d8e(0x1c6)] } : {},
|
|
1105
|
-
'messageId': _0x54721d['id'],
|
|
1106
|
-
'senderName': _0x54721d[_0x5a5d8e(0x191)],
|
|
1107
|
-
'senderType': _0x189ec4(_0x54721d['senderParticipantId'], _0xf55dc3),
|
|
1108
|
-
'seq': _0x54721d[_0x5a5d8e(0x18f)] ?? 0x0
|
|
1109
|
-
}));
|
|
1110
|
-
return {
|
|
1111
|
-
'channel': _0x1fc4eb[_0x5a5d8e(_0x1cd4a9._0x15abcf)],
|
|
1112
|
-
'hasMore': _0x5766bf[_0x5a5d8e(_0x1cd4a9._0x507362)]?.[_0x5a5d8e(_0x1cd4a9._0x351f1f)] ?? ![],
|
|
1113
|
-
'messages': _0x4a6a0c,
|
|
1114
|
-
'nextCursor': _0x5766bf['meta']?.[_0x5a5d8e(_0x1cd4a9._0x89ab59)]
|
|
1115
|
-
};
|
|
1116
|
-
}
|
|
1117
|
-
return {
|
|
1118
|
-
async 'sendMessage'(_0xe2db25) {
|
|
1119
|
-
const _0x91aa27 = _0x14f5b3, _0x1819ee = await _0x2ab924(_0xe2db25[_0x91aa27(_0x18b573._0x470b4f)]), _0x370c6e = _0xe2db25[_0x91aa27(0x26f)]['includes']('@') ? extractMentionedParticipantIds(_0xe2db25['content'], await _0x589a42()) : [], _0x362f24 = await _0x252eb3('/internal/agent/' + _0x378182[_0x91aa27(_0x18b573._0x4ef096)] + '/send', {
|
|
1120
|
-
'body': JSON['stringify']({
|
|
1121
|
-
'attachment_ids': _0xe2db25[_0x91aa27(0x1fc)],
|
|
1122
|
-
'bodyMarkdown': _0xe2db25['content'],
|
|
1123
|
-
'channelId': _0x1819ee['channelId'],
|
|
1124
|
-
..._0x370c6e[_0x91aa27(0x18d)] > 0x0 ? { 'mentionedParticipantIds': _0x370c6e } : {},
|
|
1125
|
-
'threadId': _0x1819ee[_0x91aa27(0x259)],
|
|
1126
|
-
..._0xe2db25[_0x91aa27(_0x18b573._0x1c9cb4)] ? { 'visibility': _0xe2db25['visibility'] } : {}
|
|
1127
|
-
}),
|
|
1128
|
-
'headers': _0x17ed33,
|
|
1129
|
-
'method': 'POST'
|
|
1130
|
-
});
|
|
1131
|
-
return { 'messageId': _0x362f24[_0x91aa27(0x1ec)]?.['id'] ?? '' };
|
|
1132
|
-
},
|
|
1133
|
-
async 'listSchedules'() {
|
|
1134
|
-
const _0x50cce8 = _0x14f5b3, _0x17ec9a = await _0x252eb3(_0x50cce8(0x1bb), {
|
|
1135
|
-
'headers': _0x17ed33,
|
|
1136
|
-
'method': _0x50cce8(_0x12f092._0x120e86)
|
|
1137
|
-
});
|
|
1138
|
-
return _0x17ec9a['data'] ?? [];
|
|
1139
|
-
},
|
|
1140
|
-
async 'claimScheduleRun'(_0x3ab6a7) {
|
|
1141
|
-
const _0x3f6c56 = _0x14f5b3, _0x7fe926 = await _0x252eb3(_0x3f6c56(_0x34ed25._0xdfc7c4), {
|
|
1142
|
-
'body': JSON[_0x3f6c56(_0x34ed25._0x38b7ae)](_0x3ab6a7),
|
|
1143
|
-
'headers': _0x17ed33,
|
|
1144
|
-
'method': _0x3f6c56(_0x34ed25._0x233688)
|
|
1145
|
-
});
|
|
1146
|
-
return _0x7fe926[_0x3f6c56(0x1ec)] ?? {
|
|
1147
|
-
'granted': ![],
|
|
1148
|
-
'runId': null,
|
|
1149
|
-
'schedule': null,
|
|
1150
|
-
'scheduledFor': _0x3ab6a7['scheduledFor']
|
|
1151
|
-
};
|
|
1152
|
-
},
|
|
1153
|
-
async 'startScheduleRun'(_0x491c42) {
|
|
1154
|
-
const _0x5c4bdb = _0x14f5b3, _0x33fcf8 = await _0x252eb3(_0x5c4bdb(_0x2fd1f7._0x1db28f) + encodeURIComponent(_0x491c42[_0x5c4bdb(0x109)]) + _0x5c4bdb(_0x2fd1f7._0x30a826), {
|
|
1155
|
-
'body': JSON[_0x5c4bdb(0x277)]({}),
|
|
1156
|
-
'headers': _0x17ed33,
|
|
1157
|
-
'method': _0x5c4bdb(0x204)
|
|
1158
|
-
});
|
|
1159
|
-
return _0x33fcf8[_0x5c4bdb(_0x2fd1f7._0x18d29e)] ?? {
|
|
1160
|
-
'claimedByDaemonId': '',
|
|
1161
|
-
'id': _0x491c42[_0x5c4bdb(0x109)],
|
|
1162
|
-
'scheduleId': '',
|
|
1163
|
-
'status': 'running'
|
|
1164
|
-
};
|
|
1165
|
-
},
|
|
1166
|
-
async 'finishScheduleRun'(_0x5ebec7) {
|
|
1167
|
-
const _0x175034 = _0x14f5b3, _0x57aba2 = await _0x252eb3(_0x175034(0x1a3) + encodeURIComponent(_0x5ebec7[_0x175034(_0x9789d8._0x2f9bbf)]) + _0x175034(0x1f3), {
|
|
1168
|
-
'body': JSON[_0x175034(_0x9789d8._0x4cce09)]({
|
|
1169
|
-
'error': _0x5ebec7[_0x175034(0x24d)],
|
|
1170
|
-
'resultJson': _0x5ebec7[_0x175034(0x178)],
|
|
1171
|
-
'status': _0x5ebec7[_0x175034(0x291)]
|
|
1172
|
-
}),
|
|
1173
|
-
'headers': _0x17ed33,
|
|
1174
|
-
'method': _0x175034(0x204)
|
|
1175
|
-
});
|
|
1176
|
-
return _0x57aba2['data'] ?? {
|
|
1177
|
-
'nextRunAt': null,
|
|
1178
|
-
'run': {
|
|
1179
|
-
'claimedByDaemonId': '',
|
|
1180
|
-
'id': _0x5ebec7[_0x175034(_0x9789d8._0x3a6290)],
|
|
1181
|
-
'scheduleId': '',
|
|
1182
|
-
'status': _0x5ebec7[_0x175034(0x291)]
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
},
|
|
1186
|
-
async 'listTasks'(_0x4ec697) {
|
|
1187
|
-
const _0x2fd955 = _0x14f5b3, _0x360c34 = new URLSearchParams();
|
|
1188
|
-
return _0x360c34[_0x2fd955(0x190)](_0x2fd955(_0x423577._0x525a29), _0x4ec697[_0x2fd955(0x1f4)]), _0x4ec697[_0x2fd955(0x291)] && _0x360c34[_0x2fd955(_0x423577._0x1d4a8b)]('status', _0x4ec697[_0x2fd955(_0x423577._0x3a486d)]), _0x539991('/internal/agent/' + _0x378182['agentId'] + _0x2fd955(0x293) + _0x360c34['toString'](), {
|
|
1189
|
-
'headers': _0x17ed33,
|
|
1190
|
-
'method': _0x2fd955(0x208)
|
|
1191
|
-
});
|
|
1192
|
-
},
|
|
1193
|
-
async 'createTasks'(_0x262d37) {
|
|
1194
|
-
const _0x19745e = _0x14f5b3;
|
|
1195
|
-
return _0x539991('/internal/agent/' + _0x378182['agentId'] + '/tasks', {
|
|
1196
|
-
'body': JSON[_0x19745e(_0x25f0b3._0x3e14c5)]({
|
|
1197
|
-
..._0x262d37,
|
|
1198
|
-
'idempotency_key': _0x5682ba('create_tasks', _0x262d37)
|
|
1199
|
-
}),
|
|
1200
|
-
'headers': _0x17ed33,
|
|
1201
|
-
'method': 'POST'
|
|
1202
|
-
});
|
|
1203
|
-
},
|
|
1204
|
-
async 'claimTasks'(_0x27433e) {
|
|
1205
|
-
const _0x183f36 = _0x14f5b3;
|
|
1206
|
-
return _0x539991('/internal/agent/' + _0x378182['agentId'] + _0x183f36(0x159), {
|
|
1207
|
-
'body': JSON[_0x183f36(0x277)]({
|
|
1208
|
-
..._0x27433e,
|
|
1209
|
-
'idempotency_key': _0x5682ba('claim_tasks', _0x27433e)
|
|
1210
|
-
}),
|
|
1211
|
-
'headers': _0x17ed33,
|
|
1212
|
-
'method': _0x183f36(0x204)
|
|
1213
|
-
});
|
|
1214
|
-
},
|
|
1215
|
-
async 'unclaimTask'(_0x536e54) {
|
|
1216
|
-
const _0x13f166 = _0x14f5b3;
|
|
1217
|
-
return _0x539991(_0x13f166(_0x3b4247._0x59a1cc) + _0x378182[_0x13f166(_0x3b4247._0x506714)] + _0x13f166(_0x3b4247._0x7f0428), {
|
|
1218
|
-
'body': JSON[_0x13f166(_0x3b4247._0x18dc88)]({
|
|
1219
|
-
..._0x536e54,
|
|
1220
|
-
'idempotency_key': _0x5682ba(_0x13f166(_0x3b4247._0x23d91c), _0x536e54)
|
|
1221
|
-
}),
|
|
1222
|
-
'headers': _0x17ed33,
|
|
1223
|
-
'method': _0x13f166(0x204)
|
|
1224
|
-
});
|
|
1225
|
-
},
|
|
1226
|
-
async 'updateTaskStatus'(_0x5626c1) {
|
|
1227
|
-
const _0xbdcc37 = _0x14f5b3;
|
|
1228
|
-
return _0x539991('/internal/agent/' + _0x378182['agentId'] + _0xbdcc37(_0x551db2._0x10f987), {
|
|
1229
|
-
'body': JSON[_0xbdcc37(0x277)]({
|
|
1230
|
-
..._0x5626c1,
|
|
1231
|
-
'idempotency_key': _0x5682ba(_0xbdcc37(0x1e8), _0x5626c1)
|
|
1232
|
-
}),
|
|
1233
|
-
'headers': _0x17ed33,
|
|
1234
|
-
'method': _0xbdcc37(_0x551db2._0x81e9fb)
|
|
1235
|
-
});
|
|
1236
|
-
},
|
|
1237
|
-
async 'uploadFile'(_0x536108) {
|
|
1238
|
-
const _0x253051 = _0x14f5b3, _0x40a82f = await _0x2ab924(_0x536108[_0x253051(_0x2e0c40._0x218a76)]);
|
|
1239
|
-
if (_0x40a82f[_0x253051(_0x2e0c40._0x4ad477)])
|
|
1240
|
-
throw new Error(_0x253051(_0x2e0c40._0xe54975));
|
|
1241
|
-
const _0x422047 = await _0x252eb3('/internal/agent/' + _0x378182[_0x253051(_0x2e0c40._0x5af325)] + _0x253051(_0x2e0c40._0x384a55), {
|
|
1242
|
-
'body': JSON[_0x253051(0x277)]({
|
|
1243
|
-
'channel': _0x40a82f[_0x253051(_0x2e0c40._0x4ebf94)],
|
|
1244
|
-
'contentBase64': _0x536108['contentBase64'],
|
|
1245
|
-
'contentType': _0x536108[_0x253051(_0x2e0c40._0x58a4be)],
|
|
1246
|
-
'originalFilename': _0x536108[_0x253051(0x274)]
|
|
1247
|
-
}),
|
|
1248
|
-
'headers': _0x17ed33,
|
|
1249
|
-
'method': _0x253051(0x204)
|
|
1250
|
-
});
|
|
1251
|
-
return {
|
|
1252
|
-
'attachmentId': _0x422047[_0x253051(_0x2e0c40._0x102d81)]?.['id'] ?? '',
|
|
1253
|
-
'filename': _0x422047[_0x253051(_0x2e0c40._0x102d81)]?.[_0x253051(0x108)] ?? _0x536108['filename'],
|
|
1254
|
-
'sizeBytes': _0x422047[_0x253051(0x1ec)]?.[_0x253051(0x22d)] ?? 0x0
|
|
1255
|
-
};
|
|
1256
|
-
},
|
|
1257
|
-
async 'downloadAttachment'(_0x178b78) {
|
|
1258
|
-
const _0x77cba6 = _0x14f5b3, _0xe2ff58 = await _0x252eb3(_0x77cba6(_0x5afa7e._0x484ef9) + _0x178b78, {
|
|
1259
|
-
'headers': _0x17ed33,
|
|
1260
|
-
'method': _0x77cba6(_0x5afa7e._0x47dc05)
|
|
1261
|
-
}), _0x5672dd = new AbortController(), _0x1aedb3 = setTimeout(() => _0x5672dd[_0x77cba6(0x1c2)](), _0x4d11d4);
|
|
1262
|
-
try {
|
|
1263
|
-
const _0x5b3cae = await _0x3d26df(_0xa0a276 + _0x77cba6(_0x5afa7e._0x12ee1a) + _0x178b78 + _0x77cba6(0x17f), {
|
|
1264
|
-
'headers': _0x17ed33,
|
|
1265
|
-
'method': _0x77cba6(_0x5afa7e._0x47dc05),
|
|
1266
|
-
'signal': _0x5672dd[_0x77cba6(_0x5afa7e._0xffa40)]
|
|
1267
|
-
});
|
|
1268
|
-
if (!_0x5b3cae['ok'])
|
|
1269
|
-
throw new Error(_0x77cba6(0x19b) + _0x5b3cae['status']);
|
|
1270
|
-
return {
|
|
1271
|
-
'contentType': _0xe2ff58[_0x77cba6(0x1ec)]?.[_0x77cba6(_0x5afa7e._0x409ccb)] ?? _0x5b3cae[_0x77cba6(_0x5afa7e._0x1bbb14)][_0x77cba6(_0x5afa7e._0x3f0ca5)](_0x77cba6(0x1e7)) ?? _0x77cba6(0x16d),
|
|
1272
|
-
'data': Buffer[_0x77cba6(0x1c8)](await _0x5b3cae['arrayBuffer']()),
|
|
1273
|
-
'originalFilename': _0xe2ff58[_0x77cba6(0x1ec)]?.[_0x77cba6(_0x5afa7e._0x449243)]
|
|
1274
|
-
};
|
|
1275
|
-
} finally {
|
|
1276
|
-
clearTimeout(_0x1aedb3);
|
|
1277
|
-
}
|
|
1278
|
-
},
|
|
1279
|
-
async 'listServer'() {
|
|
1280
|
-
return _0x589a42({ 'forceRefresh': !![] });
|
|
1281
|
-
},
|
|
1282
|
-
async 'readHistory'(_0x33a5ef) {
|
|
1283
|
-
const _0x37ddb1 = _0x14f5b3, _0x5e856b = await _0x2ab924(_0x33a5ef[_0x37ddb1(0x1f4)]);
|
|
1284
|
-
return _0x276c3f({
|
|
1285
|
-
'after': _0x33a5ef[_0x37ddb1(0x10d)],
|
|
1286
|
-
'before': _0x33a5ef['before'],
|
|
1287
|
-
'channelId': _0x5e856b[_0x37ddb1(_0x433d67._0xcd1b84)],
|
|
1288
|
-
'channelTarget': _0x5e856b[_0x37ddb1(0x226)],
|
|
1289
|
-
'limit': _0x33a5ef[_0x37ddb1(_0x433d67._0x445004)],
|
|
1290
|
-
'threadId': _0x5e856b[_0x37ddb1(0x259)]
|
|
1291
|
-
});
|
|
1292
|
-
},
|
|
1293
|
-
'resolveTarget': _0x2ab924,
|
|
1294
|
-
async 'checkMessages'() {
|
|
1295
|
-
const _0x2ae633 = {
|
|
1296
|
-
_0xde1052: 0x177,
|
|
1297
|
-
_0x29b8fe: 0x1b8,
|
|
1298
|
-
_0x4e2d63: 0x1ca
|
|
1299
|
-
}, _0x14ebee = { _0x4f3474: 0x21d }, _0x39ea38 = _0x14f5b3, _0x352494 = new URLSearchParams();
|
|
1300
|
-
_0x352494[_0x39ea38(_0x2d1927._0x4d21cd)](_0x39ea38(0x1b3), String(_0x27020f));
|
|
1301
|
-
const _0x1ff6e6 = _0x352494[_0x39ea38(0x213)](), _0x379b8b = await _0x252eb3('/internal/agent/' + _0x378182[_0x39ea38(_0x2d1927._0x83e488)] + _0x39ea38(0x132) + (_0x1ff6e6 ? '?' + _0x1ff6e6 : ''), {
|
|
1302
|
-
'headers': _0x17ed33,
|
|
1303
|
-
'method': 'GET'
|
|
1304
|
-
}), _0x9c09e9 = _0x379b8b[_0x39ea38(0x1ec)] ?? [], _0x1bf5e1 = _0x379b8b[_0x39ea38(0x221)]?.[_0x39ea38(0x167)], _0x43f76d = _0x36b777 ? _0x9c09e9['filter'](_0x3fb05b => {
|
|
1305
|
-
const _0x2c462 = _0x39ea38;
|
|
1306
|
-
if (_0x3fb05b[_0x2c462(_0x14ebee._0x4f3474)] !== _0x2c462(0x219))
|
|
1307
|
-
return ![];
|
|
1308
|
-
return _0x437520(_0x36b777, asRecord(_0x3fb05b['payloadJson']));
|
|
1309
|
-
}) : _0x9c09e9, _0x43a4ba = _0x1bf5e1 !== void 0x0 ? _0x36b777 ? Math['max'](_0x27020f, _0x43f76d[_0x39ea38(0x18d)] > 0x0 ? _0x43f76d[_0x43f76d['length'] - 0x1][_0x39ea38(_0x2d1927._0x52a0fa)] : _0x27020f) : Math[_0x39ea38(0x16a)](_0x27020f, _0x1bf5e1) : _0x43f76d[_0x39ea38(0x18d)] > 0x0 ? Math['max'](_0x27020f, _0x43f76d[_0x43f76d[_0x39ea38(0x18d)] - 0x1]['seq']) : _0x27020f, _0xb61644 = _0x9c09e9[_0x39ea38(_0x2d1927._0x19e27d)](_0x1cfa66 => _0x1cfa66['aggregateType'] === _0x39ea38(0x219)), _0x207005 = _0x36b777 === void 0x0 && _0x3a9c60;
|
|
1310
|
-
let _0x5a9ec8 = await _0x589a42(), _0x1002d2 = new Map(_0x5a9ec8['channels'][_0x39ea38(0x21c)](_0x3d28d6 => [
|
|
1311
|
-
_0x3d28d6['id'],
|
|
1312
|
-
_0x3d28d6
|
|
1313
|
-
]));
|
|
1314
|
-
const _0x3a573b = _0xb61644[_0x39ea38(0x157)](_0x1f8f5c => {
|
|
1315
|
-
const _0x33f983 = _0x39ea38, _0x4dc56e = asRecord(_0x1f8f5c[_0x33f983(_0x2ae633._0xde1052)]), _0x3433c4 = typeof _0x4dc56e?.[_0x33f983(0x1ca)] === _0x33f983(_0x2ae633._0x29b8fe) ? _0x4dc56e[_0x33f983(_0x2ae633._0x4e2d63)] : '';
|
|
1316
|
-
return Boolean(_0x3433c4) && !_0x1002d2['has'](_0x3433c4);
|
|
1317
|
-
});
|
|
1318
|
-
_0x3a573b && (_0x5a9ec8 = await _0x589a42({ 'forceRefresh': !![] }), _0x1002d2 = new Map(_0x5a9ec8[_0x39ea38(_0x2d1927._0x435e45)]['map'](_0x40ec9f => [
|
|
1319
|
-
_0x40ec9f['id'],
|
|
1320
|
-
_0x40ec9f
|
|
1321
|
-
])));
|
|
1322
|
-
const _0x4d2ccb = new Map();
|
|
1323
|
-
for (const _0x4c92e3 of _0xb61644) {
|
|
1324
|
-
const _0x109b31 = asRecord(_0x4c92e3['payloadJson']), _0x589b27 = typeof _0x109b31[_0x39ea38(_0x2d1927._0x4f2e20)] === _0x39ea38(0x1b8) ? _0x109b31[_0x39ea38(0x1ca)] : '';
|
|
1325
|
-
if (!_0x589b27)
|
|
1326
|
-
continue;
|
|
1327
|
-
const _0x449b09 = typeof _0x109b31['threadId'] === _0x39ea38(0x1b8) ? _0x109b31[_0x39ea38(0x259)] : void 0x0, _0x1db4a0 = typeof _0x109b31[_0x39ea38(0x17b)] === 'string' ? _0x109b31[_0x39ea38(_0x2d1927._0xfb7054)] : void 0x0, _0x44a7af = typeof _0x109b31[_0x39ea38(_0x2d1927._0x4ee86c)] === _0x39ea38(0x17a) && Number[_0x39ea38(0x15f)](_0x109b31[_0x39ea38(0x147)]) ? _0x109b31['threadNumber'] : void 0x0, _0xb3e995 = Boolean(_0x449b09 && (!_0x1db4a0 || _0x4c92e3['aggregateId'] !== _0x1db4a0)), _0x2ab979 = _0xb3e995 ? _0x589b27 + ':' + _0x449b09 : _0x589b27, _0x1990ac = _0x4d2ccb[_0x39ea38(_0x2d1927._0x9e8ef3)](_0x2ab979) ?? {
|
|
1328
|
-
'aggregateIds': [],
|
|
1329
|
-
'channelId': _0x589b27,
|
|
1330
|
-
'entries': new Map(),
|
|
1331
|
-
'isThreadReply': _0xb3e995,
|
|
1332
|
-
'rootMessageId': _0x1db4a0,
|
|
1333
|
-
'threadNumber': _0x44a7af,
|
|
1334
|
-
'threadId': _0xb3e995 ? _0x449b09 : void 0x0
|
|
1335
|
-
};
|
|
1336
|
-
_0x1990ac[_0x39ea38(0x147)] == null && _0x44a7af != null && (_0x1990ac['threadNumber'] = _0x44a7af), !_0x1990ac[_0x39ea38(0x17b)] && _0x1db4a0 && (_0x1990ac[_0x39ea38(0x17b)] = _0x1db4a0), _0x1990ac['aggregateIds'][_0x39ea38(0x13c)](_0x4c92e3['aggregateId']), _0x1990ac[_0x39ea38(_0x2d1927._0x13c76e)]['set'](_0x4c92e3['aggregateId'], {
|
|
1337
|
-
'payloadJson': _0x4c92e3[_0x39ea38(0x177)],
|
|
1338
|
-
'seq': _0x4c92e3[_0x39ea38(0x107)]
|
|
1339
|
-
}), _0x4d2ccb[_0x39ea38(0x190)](_0x2ab979, _0x1990ac);
|
|
1340
|
-
}
|
|
1341
|
-
const _0x1a2f7f = [];
|
|
1342
|
-
for (const _0x969a30 of _0x4d2ccb[_0x39ea38(0x1f6)]()) {
|
|
1343
|
-
const {
|
|
1344
|
-
channelId: _0x3dcb9b,
|
|
1345
|
-
threadId: _0x52968f,
|
|
1346
|
-
rootMessageId: _0x3708a9,
|
|
1347
|
-
threadNumber: _0x4ed0ce,
|
|
1348
|
-
aggregateIds: _0x25f0fd,
|
|
1349
|
-
isThreadReply: _0x3507f1,
|
|
1350
|
-
entries: _0x2df93c
|
|
1351
|
-
} = _0x969a30, _0x16c365 = _0x1002d2['get'](_0x3dcb9b), _0x5652a3 = _0x16c365?.[_0x39ea38(0x173)] ?? _0x3dcb9b, _0x22e8c6 = _0x16c365?.['kind'] === 'dm' ? _0x39ea38(0x1e2) + _0x5652a3 : '#' + _0x5652a3, _0x22497b = {
|
|
1352
|
-
'channelTarget': _0x22e8c6,
|
|
1353
|
-
'rootMessageId': _0x3708a9,
|
|
1354
|
-
'threadId': _0x52968f,
|
|
1355
|
-
'threadNumber': _0x4ed0ce
|
|
1356
|
-
}, _0x37cd25 = await _0x276c3f({
|
|
1357
|
-
'channelId': _0x3dcb9b,
|
|
1358
|
-
'channelTarget': _0x22e8c6,
|
|
1359
|
-
'limit': Math[_0x39ea38(_0x2d1927._0x9e4912)](_0x25f0fd[_0x39ea38(_0x2d1927._0x2a59ab)], 0x32),
|
|
1360
|
-
'threadId': _0x52968f
|
|
1361
|
-
}), _0x3fc3ab = new Map(_0x37cd25[_0x39ea38(_0x2d1927._0x1741c5)]['map'](_0x23ca70 => [
|
|
1362
|
-
_0x23ca70[_0x39ea38(0x161)],
|
|
1363
|
-
_0x23ca70
|
|
1364
|
-
])), _0x5a5516 = _0x52968f ? _0xb2570f(_0x22497b) : _0x22e8c6, _0x2ed4f3 = _0x36b777 ? _0x3507f1 && _0x1b6776(_0x36b777, _0x22497b) : !![], _0x46dcf9 = _0x3507f1 ? _0x2ed4f3 && _0x36b777 ? _0x36b777 : _0x5a5516 : _0x22e8c6;
|
|
1365
|
-
for (const _0x231145 of _0x25f0fd) {
|
|
1366
|
-
if (!_0x2ed4f3)
|
|
1367
|
-
continue;
|
|
1368
|
-
const _0x3402fc = _0x2df93c[_0x39ea38(0x171)](_0x231145), _0x342eb6 = _0x3402fc ? asRecord(_0x3402fc['payloadJson']) : void 0x0, _0x3dd364 = _0x342eb6?.['taskDeliveryMode'] === 'targeted';
|
|
1369
|
-
if (_0x207005 && _0x3dd364)
|
|
1370
|
-
continue;
|
|
1371
|
-
const _0x3df688 = _0x3fc3ab[_0x39ea38(0x171)](_0x231145);
|
|
1372
|
-
if (_0x3df688) {
|
|
1373
|
-
_0x1a2f7f['push']({
|
|
1374
|
-
'attachments': _0x3df688[_0x39ea38(0x186)],
|
|
1375
|
-
'content': _0x3df688[_0x39ea38(_0x2d1927._0x4713f5)],
|
|
1376
|
-
'createdAt': _0x3df688[_0x39ea38(0x1d0)],
|
|
1377
|
-
..._0x3df688[_0x39ea38(_0x2d1927._0x1e41a7)] ? { 'kind': _0x3df688[_0x39ea38(0x1c6)] } : {},
|
|
1378
|
-
'messageId': _0x3df688['messageId'],
|
|
1379
|
-
'senderName': _0x3df688[_0x39ea38(0x19c)],
|
|
1380
|
-
'senderType': _0x3df688[_0x39ea38(_0x2d1927._0x517379)],
|
|
1381
|
-
'target': _0x46dcf9,
|
|
1382
|
-
..._0x3dd364 ? { 'targetedTask': !![] } : {}
|
|
1383
|
-
});
|
|
1384
|
-
continue;
|
|
1385
|
-
}
|
|
1386
|
-
if (_0x3402fc) {
|
|
1387
|
-
const _0x18ab34 = typeof _0x342eb6?.['senderParticipantId'] === _0x39ea38(0x1b8) ? _0x342eb6[_0x39ea38(0x191)] : '', _0x1f6f84 = typeof _0x342eb6?.['bodyMarkdown'] === 'string' ? _0x342eb6[_0x39ea38(_0x2d1927._0x26e3e1)] : '', _0x4b96b1 = typeof _0x342eb6?.[_0x39ea38(0x1c6)] === _0x39ea38(_0x2d1927._0x5eeca6) && _0x342eb6[_0x39ea38(0x1c6)] !== _0x39ea38(0x1da) ? _0x342eb6['kind'] : void 0x0;
|
|
1388
|
-
_0x18ab34 && _0x1f6f84 && _0x1a2f7f[_0x39ea38(_0x2d1927._0x42e902)]({
|
|
1389
|
-
'attachments': [],
|
|
1390
|
-
'content': _0x1f6f84,
|
|
1391
|
-
'createdAt': new Date()[_0x39ea38(_0x2d1927._0x359c47)](),
|
|
1392
|
-
..._0x4b96b1 ? { 'kind': _0x4b96b1 } : {},
|
|
1393
|
-
'messageId': _0x231145,
|
|
1394
|
-
'senderName': _0x18ab34,
|
|
1395
|
-
'senderType': _0x189ec4(_0x18ab34, _0x5a9ec8),
|
|
1396
|
-
'target': _0x46dcf9,
|
|
1397
|
-
..._0x3dd364 ? { 'targetedTask': !![] } : {}
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
if (_0x43a4ba > 0x0) {
|
|
1403
|
-
if (_0x329f69)
|
|
1404
|
-
await _0x3b3a19(_0x43a4ba);
|
|
1405
|
-
else
|
|
1406
|
-
_0x5b02cc && await _0x152b64(_0x43a4ba);
|
|
1407
|
-
}
|
|
1408
|
-
return _0x43a4ba > _0x27020f && (_0x27020f = _0x43a4ba), { 'messages': _0x36b777 ? _0x1a2f7f : _0x207005 ? _0x1a2f7f[_0x39ea38(0x20f)](_0x2cbab1 => _0x2cbab1[_0x39ea38(0x1d3)] !== !![]) : _0x1a2f7f };
|
|
1409
|
-
}
|
|
1521
|
+
_0x2631 = function () {
|
|
1522
|
+
return _0x2a4fbf;
|
|
1410
1523
|
};
|
|
1524
|
+
return _0x2631();
|
|
1411
1525
|
}
|
|
1412
|
-
function
|
|
1413
|
-
const
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
if (_0x5cc297['length'] === 0x0)
|
|
1441
|
-
return _0x3ca9fe(_0x5a74dd._0x31e22d);
|
|
1442
|
-
return _0x5cc297[_0x3ca9fe(_0x5a74dd._0xbc75ec)](_0x147295 => {
|
|
1443
|
-
const _0x547f9c = _0x3ca9fe, _0x3b04db = _0x147295['senderType'] === 'agent' ? _0x547f9c(_0x7c29cf._0xc61287) : '', _0x313767 = _0x147295[_0x547f9c(_0x7c29cf._0x1e5983)] && _0x147295['kind'] !== _0x547f9c(0x1da) ? _0x547f9c(0x1ba) + _0x147295['kind'] : '';
|
|
1444
|
-
return '[target=' + _0x147295[_0x547f9c(0x226)] + _0x547f9c(_0x7c29cf._0x31a021) + _0x147295[_0x547f9c(_0x7c29cf._0x58cb91)][_0x547f9c(0x26d)](0x0, 0x8) + '\x20time=' + toLocalTime(_0x147295[_0x547f9c(_0x7c29cf._0x401655)]) + _0x3b04db + _0x313767 + _0x547f9c(0x216) + _0x147295[_0x547f9c(_0x7c29cf._0x960047)] + ':\x20' + _0x147295[_0x547f9c(0x26f)] + formatAttachmentSuffix(_0x147295['attachments']);
|
|
1445
|
-
})[_0x3ca9fe(0x146)]('\x0a');
|
|
1446
|
-
}
|
|
1447
|
-
function formatHistory(_0xc4863) {
|
|
1448
|
-
const _0x498fea = {
|
|
1449
|
-
_0x50848f: 0x1a4,
|
|
1450
|
-
_0x371955: 0x21c,
|
|
1451
|
-
_0x37125f: 0x146,
|
|
1452
|
-
_0x55c64d: 0x1cd,
|
|
1453
|
-
_0x4bf02a: 0x256,
|
|
1454
|
-
_0x27bdcb: 0x1a6,
|
|
1455
|
-
_0x378c78: 0x25b,
|
|
1456
|
-
_0x4e480a: 0x1f4
|
|
1457
|
-
}, _0x700955 = {
|
|
1458
|
-
_0x1949f3: 0x260,
|
|
1459
|
-
_0x498696: 0x14e,
|
|
1460
|
-
_0x10cffd: 0x1c6,
|
|
1461
|
-
_0x2d0592: 0x1ba,
|
|
1462
|
-
_0x134021: 0x286,
|
|
1463
|
-
_0x4fde1c: 0x107,
|
|
1464
|
-
_0x28ddc4: 0x161,
|
|
1465
|
-
_0x5e1baf: 0x216,
|
|
1466
|
-
_0x46b4f6: 0x19c,
|
|
1467
|
-
_0x12dab7: 0x186
|
|
1468
|
-
}, _0x5588c1 = _0x3cf5af;
|
|
1469
|
-
if (_0xc4863[_0x5588c1(0x256)]['length'] === 0x0)
|
|
1470
|
-
return _0x5588c1(_0x498fea._0x50848f) + _0xc4863[_0x5588c1(0x1f4)] + _0x5588c1(0x227);
|
|
1471
|
-
const _0x510902 = _0xc4863[_0x5588c1(0x256)][_0x5588c1(_0x498fea._0x371955)](_0x4c83e6 => {
|
|
1472
|
-
const _0x35cca2 = _0x5588c1, _0x422477 = _0x4c83e6[_0x35cca2(_0x700955._0x1949f3)] === _0x35cca2(0x28e) ? _0x35cca2(_0x700955._0x498696) : '', _0x8d5477 = _0x4c83e6[_0x35cca2(_0x700955._0x10cffd)] && _0x4c83e6['kind'] !== _0x35cca2(0x1da) ? _0x35cca2(_0x700955._0x2d0592) + _0x4c83e6['kind'] : '';
|
|
1473
|
-
return _0x35cca2(_0x700955._0x134021) + _0x4c83e6[_0x35cca2(_0x700955._0x4fde1c)] + _0x35cca2(0x275) + _0x4c83e6[_0x35cca2(_0x700955._0x28ddc4)] + '\x20time=' + toLocalTime(_0x4c83e6[_0x35cca2(0x1d0)]) + _0x422477 + _0x8d5477 + _0x35cca2(_0x700955._0x5e1baf) + _0x4c83e6[_0x35cca2(_0x700955._0x46b4f6)] + ':\x20' + _0x4c83e6[_0x35cca2(0x26f)] + formatAttachmentSuffix(_0x4c83e6[_0x35cca2(_0x700955._0x12dab7)]);
|
|
1474
|
-
})[_0x5588c1(_0x498fea._0x37125f)]('\x0a'), _0x80e10f = _0xc4863[_0x5588c1(0x12e)] && _0xc4863[_0x5588c1(0x25b)] ? _0x5588c1(_0x498fea._0x55c64d) + _0xc4863[_0x5588c1(_0x498fea._0x4bf02a)][_0x5588c1(0x18d)] + _0x5588c1(_0x498fea._0x27bdcb) + _0xc4863[_0x5588c1(_0x498fea._0x378c78)] + _0x5588c1(0x198) : '';
|
|
1475
|
-
return _0x5588c1(0x1a4) + _0xc4863[_0x5588c1(_0x498fea._0x4e480a)] + '\x20(' + _0xc4863[_0x5588c1(0x256)]['length'] + _0x5588c1(0x133) + _0x510902 + _0x80e10f;
|
|
1476
|
-
}
|
|
1477
|
-
function formatServerDirectory(_0x39d7ca) {
|
|
1478
|
-
const _0x2fba02 = {
|
|
1479
|
-
_0x3964b7: 0x284,
|
|
1480
|
-
_0x3ac035: 0x21c,
|
|
1481
|
-
_0x5cd3a4: 0x1d2,
|
|
1482
|
-
_0x1077f6: 0x245,
|
|
1483
|
-
_0x30e0ed: 0x245,
|
|
1484
|
-
_0x41c041: 0x18d,
|
|
1485
|
-
_0x3a7f17: 0x20e
|
|
1486
|
-
}, _0x5b98ab = _0x3cf5af, _0xb73205 = _0x39d7ca['channels']['length'] > 0x0 ? _0x39d7ca[_0x5b98ab(_0x2fba02._0x3964b7)][_0x5b98ab(_0x2fba02._0x3ac035)](_0x300cb1 => _0x300cb1[_0x5b98ab(0x13e)] ? _0x5b98ab(0x137) + _0x300cb1['name'] + '\x20—\x20' + _0x300cb1[_0x5b98ab(0x13e)] : _0x5b98ab(0x137) + _0x300cb1[_0x5b98ab(0x173)])['join']('\x0a') : _0x5b98ab(_0x2fba02._0x5cd3a4), _0x2be49f = _0x39d7ca[_0x5b98ab(_0x2fba02._0x1077f6)][_0x5b98ab(0x18d)] > 0x0 ? _0x39d7ca[_0x5b98ab(_0x2fba02._0x30e0ed)]['map'](_0x2b9229 => _0x5b98ab(0x27e) + _0x2b9229[_0x5b98ab(0x173)])[_0x5b98ab(0x146)]('\x0a') : _0x5b98ab(0x1d2), _0x585bb6 = _0x39d7ca[_0x5b98ab(0x276)][_0x5b98ab(_0x2fba02._0x41c041)] > 0x0 ? _0x39d7ca['humans'][_0x5b98ab(_0x2fba02._0x3ac035)](_0x58e992 => '-\x20@' + _0x58e992['name'])[_0x5b98ab(0x146)]('\x0a') : '(none)';
|
|
1487
|
-
return [
|
|
1488
|
-
_0x5b98ab(0x126) + _0x39d7ca[_0x5b98ab(_0x2fba02._0x3a7f17)],
|
|
1489
|
-
'',
|
|
1490
|
-
_0x5b98ab(0x28b),
|
|
1491
|
-
_0xb73205,
|
|
1492
|
-
'',
|
|
1493
|
-
'###\x20Agents',
|
|
1494
|
-
_0x2be49f,
|
|
1495
|
-
'',
|
|
1496
|
-
_0x5b98ab(0x120),
|
|
1497
|
-
_0x585bb6
|
|
1498
|
-
][_0x5b98ab(0x146)]('\x0a');
|
|
1499
|
-
}
|
|
1500
|
-
function formatUploadResult(_0x5607b6) {
|
|
1501
|
-
const _0x362f42 = {
|
|
1502
|
-
_0x5b7bc6: 0x274,
|
|
1503
|
-
_0x295564: 0x220
|
|
1504
|
-
}, _0x538f67 = _0x3cf5af;
|
|
1505
|
-
return 'File\x20uploaded:\x20' + _0x5607b6[_0x538f67(_0x362f42._0x5b7bc6)] + '\x20(' + (_0x5607b6[_0x538f67(0x22d)] / 0x400)[_0x538f67(_0x362f42._0x295564)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x5607b6[_0x538f67(0x225)] + _0x538f67(0x139);
|
|
1506
|
-
}
|
|
1507
|
-
function formatViewFileResult(_0x1c00f4, _0x539a66) {
|
|
1508
|
-
const _0x5ace29 = { _0x4530e4: 0x20a }, _0x71503e = _0x3cf5af;
|
|
1509
|
-
return _0x539a66 ? _0x71503e(_0x5ace29._0x4530e4) + _0x1c00f4 : _0x71503e(0x181) + _0x1c00f4;
|
|
1510
|
-
}
|
|
1511
|
-
function formatTaskList(_0x2101bd, _0x2e0ac8) {
|
|
1512
|
-
const _0x25ebb7 = { _0x2c2879: 0x16f }, _0x35cb77 = {
|
|
1513
|
-
_0x5d584a: 0x1b9,
|
|
1514
|
-
_0x3ea58e: 0x12f,
|
|
1515
|
-
_0x12f9f0: 0x1b9,
|
|
1516
|
-
_0x2f3f9c: 0x12f,
|
|
1517
|
-
_0x20b4b0: 0x1b9,
|
|
1518
|
-
_0x53f7c4: 0x161,
|
|
1519
|
-
_0x4e10c8: 0x12f,
|
|
1520
|
-
_0x21d376: 0x25c,
|
|
1521
|
-
_0x2caa2b: 0x174,
|
|
1522
|
-
_0xaad358: 0x1a8,
|
|
1523
|
-
_0x56d10c: 0x193,
|
|
1524
|
-
_0x21251a: 0x291,
|
|
1525
|
-
_0x1e082b: 0x122
|
|
1526
|
-
}, _0x15d448 = _0x3cf5af;
|
|
1527
|
-
if (_0x2101bd[_0x15d448(0x18d)] === 0x0)
|
|
1528
|
-
return _0x15d448(_0x25ebb7._0x2c2879);
|
|
1529
|
-
return _0x2101bd[_0x15d448(0x21c)](_0x523776 => {
|
|
1530
|
-
const _0x582655 = _0x15d448, _0x44e56f = _0x523776[_0x582655(_0x35cb77._0x5d584a)] == null ? _0x582655(0x182) : _0x523776[_0x582655(_0x35cb77._0x3ea58e)] != null ? '#' + _0x523776[_0x582655(_0x35cb77._0x12f9f0)] + '.' + _0x523776[_0x582655(_0x35cb77._0x2f3f9c)] : '#' + _0x523776[_0x582655(_0x35cb77._0x20b4b0)], _0x220a7e = _0x523776['messageId'] ? _0x582655(0x244) + _0x523776[_0x582655(_0x35cb77._0x53f7c4)] : '', _0x4b1060 = _0x2e0ac8 && _0x523776[_0x582655(0x1b9)] != null && !_0x523776[_0x582655(_0x35cb77._0x4e10c8)] && _0x2e0ac8[_0x582655(_0x35cb77._0x21d376)](_0x523776[_0x582655(0x1b9)]) ? _0x582655(_0x35cb77._0x2caa2b) : '', _0x1288d0 = _0x523776[_0x582655(0x17c)] != null && _0x523776[_0x582655(0x17c)] > 0x0 ? '\x20(' + (_0x523776[_0x582655(_0x35cb77._0xaad358)] ?? 0x0) + '/' + _0x523776['childrenTotal'] + _0x582655(_0x35cb77._0x56d10c) : '';
|
|
1531
|
-
return _0x44e56f + '\x20[' + _0x523776[_0x582655(_0x35cb77._0x21251a)] + ']\x20' + _0x523776[_0x582655(_0x35cb77._0x1e082b)] + _0x1288d0 + _0x220a7e + _0x4b1060;
|
|
1532
|
-
})[_0x15d448(0x146)]('\x0a');
|
|
1533
|
-
}
|
|
1534
|
-
function formatCreatedTasks(_0x5148cf) {
|
|
1535
|
-
const _0x543f7b = {
|
|
1536
|
-
_0x401d6e: 0x18d,
|
|
1537
|
-
_0x199d43: 0x21c
|
|
1538
|
-
}, _0x3e3551 = {
|
|
1539
|
-
_0x2ae782: 0x1b9,
|
|
1540
|
-
_0x5d7ed5: 0x182,
|
|
1541
|
-
_0x559dc3: 0x12f,
|
|
1542
|
-
_0x4ca73b: 0x12f,
|
|
1543
|
-
_0x17269d: 0x244,
|
|
1544
|
-
_0x3c68a7: 0x161
|
|
1545
|
-
}, _0x2d6567 = _0x3cf5af;
|
|
1546
|
-
if (_0x5148cf[_0x2d6567(_0x543f7b._0x401d6e)] === 0x0)
|
|
1547
|
-
return _0x2d6567(0x119);
|
|
1548
|
-
return _0x5148cf[_0x2d6567(_0x543f7b._0x199d43)](_0x583330 => {
|
|
1549
|
-
const _0xe92ddc = _0x2d6567, _0x114ce5 = _0x583330[_0xe92ddc(_0x3e3551._0x2ae782)] == null ? _0xe92ddc(_0x3e3551._0x5d7ed5) : _0x583330[_0xe92ddc(_0x3e3551._0x559dc3)] != null ? '#' + _0x583330[_0xe92ddc(0x1b9)] + '.' + _0x583330[_0xe92ddc(_0x3e3551._0x4ca73b)] : '#' + _0x583330['taskNumber'], _0xea5cb = _0x583330['messageId'] ? _0xe92ddc(_0x3e3551._0x17269d) + _0x583330[_0xe92ddc(_0x3e3551._0x3c68a7)] : '';
|
|
1550
|
-
return _0x114ce5 + '\x20' + _0x583330['title'] + _0xea5cb;
|
|
1551
|
-
})['join']('\x0a');
|
|
1552
|
-
}
|
|
1553
|
-
function formatClaimTaskLabel(_0x298aad, _0x1195f5) {
|
|
1554
|
-
if (_0x298aad == null)
|
|
1555
|
-
return '(legacy)';
|
|
1556
|
-
return _0x1195f5 != null ? '#' + _0x298aad + '.' + _0x1195f5 : '#' + _0x298aad;
|
|
1557
|
-
}
|
|
1558
|
-
function formatClaimTaskResults(_0x4512a3) {
|
|
1559
|
-
const _0x38e1ec = { _0x46de32: 0x18d }, _0x38bf2d = {
|
|
1560
|
-
_0x3e2dbe: 0x1b9,
|
|
1561
|
-
_0x19a44f: 0x161,
|
|
1562
|
-
_0x550ed0: 0x14d,
|
|
1563
|
-
_0x41ad27: 0x21e,
|
|
1564
|
-
_0x230538: 0x130,
|
|
1565
|
-
_0x175b84: 0x140,
|
|
1566
|
-
_0x23d64f: 0x20f,
|
|
1567
|
-
_0x5ea942: 0x146,
|
|
1568
|
-
_0x547b98: 0x175,
|
|
1569
|
-
_0x15a05d: 0x1f0,
|
|
1570
|
-
_0x52532b: 0x1a5
|
|
1571
|
-
}, _0x3b6e5d = _0x3cf5af;
|
|
1572
|
-
if (_0x4512a3[_0x3b6e5d(_0x38e1ec._0x46de32)] === 0x0)
|
|
1573
|
-
return _0x3b6e5d(0x11a);
|
|
1574
|
-
return _0x4512a3[_0x3b6e5d(0x21c)](_0x1f82e8 => {
|
|
1575
|
-
const _0x3a7f22 = _0x3b6e5d;
|
|
1576
|
-
if (_0x1f82e8['success']) {
|
|
1577
|
-
const _0x2eea0e = formatClaimTaskLabel(_0x1f82e8[_0x3a7f22(_0x38bf2d._0x3e2dbe)], _0x1f82e8['subtaskNumber']), _0x74c534 = _0x1f82e8[_0x3a7f22(0x161)] ? _0x3a7f22(0x244) + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x19a44f)] : '';
|
|
1578
|
-
if (_0x1f82e8[_0x3a7f22(0x205)]) {
|
|
1579
|
-
const _0xef63da = [
|
|
1580
|
-
_0x3a7f22(_0x38bf2d._0x550ed0),
|
|
1581
|
-
_0x1f82e8[_0x3a7f22(0x229)] ? _0x3a7f22(_0x38bf2d._0x41ad27) : null,
|
|
1582
|
-
_0x1f82e8['executionMode'] ? _0x3a7f22(0x196) + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x230538)] : null,
|
|
1583
|
-
_0x1f82e8[_0x3a7f22(0x25d)] ? 'threadTarget=' + _0x1f82e8[_0x3a7f22(0x25d)] : null,
|
|
1584
|
-
_0x1f82e8[_0x3a7f22(0x140)] ? 'workerDisposition=' + _0x1f82e8[_0x3a7f22(_0x38bf2d._0x175b84)] : null
|
|
1585
|
-
][_0x3a7f22(_0x38bf2d._0x23d64f)](Boolean)[_0x3a7f22(_0x38bf2d._0x5ea942)]('\x20');
|
|
1586
|
-
return _0x2eea0e + '\x20claimed' + _0x74c534 + '\x20' + _0xef63da + _0x3a7f22(0x26e);
|
|
1526
|
+
function formatClaimTaskResults(_0x4588fe) {
|
|
1527
|
+
const _0x211c59 = { _0x4ec5ee: 0x247 }, _0x39365a = {
|
|
1528
|
+
_0x52f862: 0x24f,
|
|
1529
|
+
_0x3cd7eb: 0x25d,
|
|
1530
|
+
_0x1acb47: 0x270,
|
|
1531
|
+
_0x35bf2c: 0x272,
|
|
1532
|
+
_0x337f56: 0x25e,
|
|
1533
|
+
_0x34cc2a: 0x1b8,
|
|
1534
|
+
_0x2e7187: 0x1e5,
|
|
1535
|
+
_0x2493c9: 0x1e5,
|
|
1536
|
+
_0x582424: 0x178,
|
|
1537
|
+
_0x31a50b: 0x26b
|
|
1538
|
+
}, _0x3fc347 = _0x2980fe;
|
|
1539
|
+
if (_0x4588fe[_0x3fc347(0x1fe)] === 0x0)
|
|
1540
|
+
return _0x3fc347(_0x211c59._0x4ec5ee);
|
|
1541
|
+
return _0x4588fe[_0x3fc347(0x23c)](_0x171caa => {
|
|
1542
|
+
const _0x530732 = _0x3fc347;
|
|
1543
|
+
if (_0x171caa['success']) {
|
|
1544
|
+
const _0x221948 = formatClaimTaskLabel(_0x171caa['taskNumber'], _0x171caa['subtaskNumber']), _0x22d0de = _0x171caa['messageId'] ? '\x20message=' + _0x171caa[_0x530732(0xfd)] : '';
|
|
1545
|
+
if (_0x171caa[_0x530732(0x175)]) {
|
|
1546
|
+
const _0x2256e0 = [
|
|
1547
|
+
_0x530732(_0x39365a._0x52f862),
|
|
1548
|
+
_0x171caa[_0x530732(_0x39365a._0x3cd7eb)] ? _0x530732(0x171) : null,
|
|
1549
|
+
_0x171caa[_0x530732(_0x39365a._0x1acb47)] ? 'executionMode=' + _0x171caa[_0x530732(_0x39365a._0x1acb47)] : null,
|
|
1550
|
+
_0x171caa[_0x530732(0x128)] ? _0x530732(0x200) + _0x171caa[_0x530732(0x128)] : null,
|
|
1551
|
+
_0x171caa['workerDisposition'] ? 'workerDisposition=' + _0x171caa[_0x530732(0x20f)] : null
|
|
1552
|
+
][_0x530732(_0x39365a._0x35bf2c)](Boolean)[_0x530732(_0x39365a._0x337f56)]('\x20');
|
|
1553
|
+
return _0x221948 + _0x530732(0x14a) + _0x22d0de + '\x20' + _0x2256e0 + _0x530732(_0x39365a._0x34cc2a);
|
|
1587
1554
|
}
|
|
1588
|
-
const
|
|
1589
|
-
return
|
|
1555
|
+
const _0x42545d = _0x171caa[_0x530732(_0x39365a._0x2e7187)] ? _0x530732(0x125) + _0x171caa[_0x530732(_0x39365a._0x2493c9)] : '';
|
|
1556
|
+
return _0x221948 + '\x20claimed' + _0x22d0de + _0x42545d;
|
|
1590
1557
|
}
|
|
1591
|
-
const
|
|
1592
|
-
return
|
|
1593
|
-
})[
|
|
1558
|
+
const _0x53a5ae = _0x171caa['taskNumber'] == null ? _0x171caa[_0x530732(0xfd)] ?? _0x530732(0xf1) : formatClaimTaskLabel(_0x171caa[_0x530732(_0x39365a._0x582424)], _0x171caa[_0x530732(_0x39365a._0x31a50b)]);
|
|
1559
|
+
return _0x53a5ae + '\x20failed:\x20' + (_0x171caa[_0x530732(0x1a6)] ?? _0x530732(0x257));
|
|
1560
|
+
})[_0x3fc347(0x25e)]('\x0a');
|
|
1594
1561
|
}
|
|
1595
|
-
function formatUnclaimTaskResult(
|
|
1596
|
-
const
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
return _0xf32162 + _0xaa5057(0x24c) + _0x2f0a0b[_0xaa5057(_0x20b84a._0x2c8f35)];
|
|
1562
|
+
function formatUnclaimTaskResult(_0x1c4ff8) {
|
|
1563
|
+
const _0x2a9e74 = {
|
|
1564
|
+
_0x55c2c4: 0x1db,
|
|
1565
|
+
_0x5146fb: 0x26b
|
|
1566
|
+
}, _0x429247 = _0x2980fe, _0xdb53aa = _0x1c4ff8[_0x429247(0x178)] == null ? _0x429247(_0x2a9e74._0x55c2c4) : _0x1c4ff8[_0x429247(0x26b)] != null ? '#' + _0x1c4ff8[_0x429247(0x178)] + '.' + _0x1c4ff8[_0x429247(_0x2a9e74._0x5146fb)] : '#' + _0x1c4ff8['taskNumber'];
|
|
1567
|
+
return _0xdb53aa + '\x20status=' + _0x1c4ff8['status'];
|
|
1602
1568
|
}
|
|
1603
|
-
function formatUpdateTaskStatusResult(
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
return _0x49c6c3 + _0x5b2084(_0x1be3d1._0x6645a4) + _0x19b694[_0x5b2084(_0x1be3d1._0x42fba3)];
|
|
1569
|
+
function formatUpdateTaskStatusResult(_0x4130fa) {
|
|
1570
|
+
const _0x19f703 = {
|
|
1571
|
+
_0x3277a2: 0x178,
|
|
1572
|
+
_0x365522: 0x178,
|
|
1573
|
+
_0x1cb02c: 0x26b,
|
|
1574
|
+
_0x1b2e9b: 0x178
|
|
1575
|
+
}, _0xaf1ad9 = _0x2980fe, _0x25660d = _0x4130fa[_0xaf1ad9(_0x19f703._0x3277a2)] == null ? _0xaf1ad9(0x1db) : _0x4130fa['subtaskNumber'] != null ? '#' + _0x4130fa[_0xaf1ad9(_0x19f703._0x365522)] + '.' + _0x4130fa[_0xaf1ad9(_0x19f703._0x1cb02c)] : '#' + _0x4130fa[_0xaf1ad9(_0x19f703._0x1b2e9b)];
|
|
1576
|
+
return _0x25660d + _0xaf1ad9(0x21a) + _0x4130fa[_0xaf1ad9(0x1b0)];
|
|
1612
1577
|
}
|
|
1613
1578
|
function getChatBridgeToolDefinitions() {
|
|
1614
|
-
const
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
_0x237c11: 0x11f
|
|
1619
|
-
}, _0x33eef6 = _0x3cf5af;
|
|
1579
|
+
const _0x1ce12a = {
|
|
1580
|
+
_0x9e950d: 0x1fa,
|
|
1581
|
+
_0x3b0aa2: 0x229
|
|
1582
|
+
}, _0x44778e = _0x2980fe;
|
|
1620
1583
|
return [
|
|
1621
|
-
{ 'name':
|
|
1622
|
-
{ 'name':
|
|
1623
|
-
{ 'name':
|
|
1624
|
-
{ 'name':
|
|
1625
|
-
{ 'name':
|
|
1626
|
-
{ 'name':
|
|
1627
|
-
{ 'name':
|
|
1628
|
-
{ 'name':
|
|
1629
|
-
{ 'name':
|
|
1630
|
-
{ 'name':
|
|
1631
|
-
{ 'name':
|
|
1632
|
-
{ 'name':
|
|
1633
|
-
{ 'name':
|
|
1634
|
-
{ 'name':
|
|
1635
|
-
{ 'name':
|
|
1584
|
+
{ 'name': 'send_message' },
|
|
1585
|
+
{ 'name': _0x44778e(_0x1ce12a._0x9e950d) },
|
|
1586
|
+
{ 'name': _0x44778e(0x154) },
|
|
1587
|
+
{ 'name': 'list_server' },
|
|
1588
|
+
{ 'name': _0x44778e(0x26c) },
|
|
1589
|
+
{ 'name': 'view_file' },
|
|
1590
|
+
{ 'name': _0x44778e(0x20a) },
|
|
1591
|
+
{ 'name': _0x44778e(0x1aa) },
|
|
1592
|
+
{ 'name': _0x44778e(0x167) },
|
|
1593
|
+
{ 'name': _0x44778e(0x1d6) },
|
|
1594
|
+
{ 'name': 'update_task_status' },
|
|
1595
|
+
{ 'name': _0x44778e(_0x1ce12a._0x3b0aa2) },
|
|
1596
|
+
{ 'name': _0x44778e(0x195) },
|
|
1597
|
+
{ 'name': _0x44778e(0x1cb) },
|
|
1598
|
+
{ 'name': _0x44778e(0x131) }
|
|
1636
1599
|
];
|
|
1637
1600
|
}
|
|
1638
|
-
function createChatBridgeHandlers(
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
},
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
},
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
},
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
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
|
-
|
|
1601
|
+
function createChatBridgeHandlers(_0x396446) {
|
|
1602
|
+
const _0x3b3c31 = { _0x3d1bc4: 0x119 }, _0x25f1ac = {
|
|
1603
|
+
_0x45f3a2: 0x20d,
|
|
1604
|
+
_0x371aeb: 0x1c5,
|
|
1605
|
+
_0x17aebd: 0x15f,
|
|
1606
|
+
_0x228706: 0x151,
|
|
1607
|
+
_0x19acb0: 0x15b,
|
|
1608
|
+
_0x515ba0: 0x16a,
|
|
1609
|
+
_0x8ca8c9: 0x152
|
|
1610
|
+
}, _0x1d3941 = {
|
|
1611
|
+
_0x5de5f8: 0x11f,
|
|
1612
|
+
_0x4a32a0: 0x15b,
|
|
1613
|
+
_0x6e979d: 0x1d3
|
|
1614
|
+
}, _0xc49df4 = {
|
|
1615
|
+
_0x17663c: 0x15f,
|
|
1616
|
+
_0x46eeef: 0x15b,
|
|
1617
|
+
_0x16d5f2: 0x152,
|
|
1618
|
+
_0x172f22: 0x17e,
|
|
1619
|
+
_0x563019: 0x1cd
|
|
1620
|
+
}, _0x1382d6 = {
|
|
1621
|
+
_0x412d73: 0x15b,
|
|
1622
|
+
_0x3f137e: 0x1d2
|
|
1623
|
+
}, _0xe3eae = {
|
|
1624
|
+
_0x389e31: 0x1af,
|
|
1625
|
+
_0x448f44: 0x246,
|
|
1626
|
+
_0x6daa87: 0x1f6,
|
|
1627
|
+
_0x2c8805: 0x160
|
|
1628
|
+
}, _0x3f7685 = {
|
|
1629
|
+
_0x543c14: 0x202,
|
|
1630
|
+
_0x39c814: 0x176,
|
|
1631
|
+
_0x46f771: 0x1d8,
|
|
1632
|
+
_0x4afd3e: 0x156
|
|
1633
|
+
}, _0x2c9d0c = {
|
|
1634
|
+
_0x17cdd3: 0x156,
|
|
1635
|
+
_0x43b4bd: 0x176
|
|
1636
|
+
}, _0x151f71 = { _0x1f2b8b: 0x12f }, _0x3f46d0 = {
|
|
1637
|
+
_0x2aedd3: 0x18e,
|
|
1638
|
+
_0x3582f2: 0x167,
|
|
1639
|
+
_0x5ed1f4: 0x156,
|
|
1640
|
+
_0x4522c4: 0x10c,
|
|
1641
|
+
_0x573516: 0x166,
|
|
1642
|
+
_0x56c45f: 0x166,
|
|
1643
|
+
_0x1c71d4: 0x193,
|
|
1644
|
+
_0x25d640: 0x16e,
|
|
1645
|
+
_0xaaf601: 0x23c
|
|
1646
|
+
}, _0x2f72b2 = {
|
|
1647
|
+
_0x1979f6: 0x110,
|
|
1648
|
+
_0x45df73: 0x156,
|
|
1649
|
+
_0x25e996: 0x178,
|
|
1650
|
+
_0x190bdf: 0x223
|
|
1651
|
+
}, _0x4658bc = {
|
|
1652
|
+
_0x56645d: 0x176,
|
|
1653
|
+
_0x29c9da: 0x17d,
|
|
1654
|
+
_0x57bf9b: 0x214,
|
|
1655
|
+
_0x279c5e: 0x14f,
|
|
1656
|
+
_0x5c3b9c: 0x178,
|
|
1657
|
+
_0x3f614e: 0x22e,
|
|
1658
|
+
_0x57dc77: 0x178,
|
|
1659
|
+
_0x4c2be3: 0x120,
|
|
1660
|
+
_0x370140: 0x214
|
|
1661
|
+
}, _0x47df46 = {
|
|
1662
|
+
_0x18013f: 0x176,
|
|
1663
|
+
_0x57c2ba: 0x272,
|
|
1664
|
+
_0x410894: 0x24a
|
|
1665
|
+
}, _0x2994c7 = {
|
|
1666
|
+
_0x283acb: 0x18e,
|
|
1667
|
+
_0x2d3bc7: 0x1c5,
|
|
1668
|
+
_0x5d854a: 0x226,
|
|
1669
|
+
_0x5d4b9d: 0x16f,
|
|
1670
|
+
_0x1d68c9: 0x178,
|
|
1671
|
+
_0x1d86b2: 0x256,
|
|
1672
|
+
_0x51bb08: 0x256,
|
|
1673
|
+
_0x411277: 0x24b,
|
|
1674
|
+
_0x4ae27b: 0x231,
|
|
1675
|
+
_0x16369a: 0x25e,
|
|
1676
|
+
_0x3b2746: 0x1fc,
|
|
1677
|
+
_0x1b6c4c: 0x1ef,
|
|
1678
|
+
_0x476667: 0x118,
|
|
1679
|
+
_0x562c0e: 0x155,
|
|
1680
|
+
_0x3df95d: 0x1f0,
|
|
1681
|
+
_0x236a4b: 0xf4,
|
|
1682
|
+
_0x4265ae: 0x1c8,
|
|
1683
|
+
_0x5e6e34: 0x1d3,
|
|
1684
|
+
_0x1d151e: 0x152,
|
|
1685
|
+
_0x43fcd2: 0x258,
|
|
1686
|
+
_0x4550c1: 0x136,
|
|
1687
|
+
_0x28bbaf: 0x24e,
|
|
1688
|
+
_0x20f101: 0x243,
|
|
1689
|
+
_0x316537: 0x243,
|
|
1690
|
+
_0x1464ab: 0x23f,
|
|
1691
|
+
_0x51dd6e: 0x12d,
|
|
1692
|
+
_0x1a144f: 0xfd
|
|
1693
|
+
}, _0x2173af = {
|
|
1694
|
+
_0x247d03: 0x18e,
|
|
1695
|
+
_0x556beb: 0x1d3,
|
|
1696
|
+
_0x40c8e5: 0x164,
|
|
1697
|
+
_0x24eb0f: 0x22e,
|
|
1698
|
+
_0x216928: 0x162
|
|
1699
|
+
}, _0x178cf5 = {
|
|
1700
|
+
_0x15deb4: 0x18e,
|
|
1701
|
+
_0xaf1595: 0x1d3,
|
|
1702
|
+
_0x9b79ab: 0x1b0,
|
|
1703
|
+
_0x29c3d4: 0x162,
|
|
1704
|
+
_0x4cceed: 0x162
|
|
1705
|
+
}, _0x3f17e1 = {
|
|
1706
|
+
_0x4a7d5f: 0x191,
|
|
1707
|
+
_0x51d800: 0xf0,
|
|
1708
|
+
_0x1ba20f: 0xf0,
|
|
1709
|
+
_0xe73afa: 0x228,
|
|
1710
|
+
_0x4c63ee: 0x245,
|
|
1711
|
+
_0x4b098f: 0xfd,
|
|
1712
|
+
_0x404135: 0x22f,
|
|
1713
|
+
_0x5ed877: 0x24c,
|
|
1714
|
+
_0x2c591b: 0x146,
|
|
1715
|
+
_0x9805e4: 0xf9,
|
|
1716
|
+
_0x284199: 0x155,
|
|
1717
|
+
_0x25390f: 0x212,
|
|
1718
|
+
_0x59f0f0: 0x134,
|
|
1719
|
+
_0x58a64d: 0x24e,
|
|
1720
|
+
_0x47c13f: 0x1ec,
|
|
1721
|
+
_0x59c912: 0x143,
|
|
1722
|
+
_0x4e630a: 0x129
|
|
1723
|
+
}, _0x3a4f83 = {
|
|
1724
|
+
_0x537493: 0x18e,
|
|
1725
|
+
_0x474990: 0x185,
|
|
1726
|
+
_0xee289e: 0x1b6,
|
|
1727
|
+
_0x5a747f: 0x26f,
|
|
1728
|
+
_0x231ff4: 0x185
|
|
1729
|
+
}, _0x3a58d8 = _0x2980fe;
|
|
1730
|
+
function _0x4682d0(_0x4af6df, _0x22682f) {
|
|
1731
|
+
const _0x5d64e3 = _0x1c13;
|
|
1732
|
+
if (!_0x396446[_0x5d64e3(_0x3a4f83._0x537493)])
|
|
1763
1733
|
return;
|
|
1764
|
-
if (!
|
|
1765
|
-
throw new Error(
|
|
1766
|
-
if (
|
|
1767
|
-
throw new Error(
|
|
1734
|
+
if (!_0x396446[_0x5d64e3(_0x3a4f83._0x474990)])
|
|
1735
|
+
throw new Error(_0x4af6df + _0x5d64e3(_0x3a4f83._0xee289e));
|
|
1736
|
+
if (_0x22682f !== _0x396446['workerThreadTarget'])
|
|
1737
|
+
throw new Error(_0x4af6df + _0x5d64e3(_0x3a4f83._0x5a747f) + _0x396446[_0x5d64e3(_0x3a4f83._0x231ff4)] + ');\x20got\x20channel=' + _0x22682f);
|
|
1768
1738
|
}
|
|
1769
|
-
async function
|
|
1770
|
-
const
|
|
1771
|
-
if (!
|
|
1739
|
+
async function _0x2d4cad(_0x6e1a4) {
|
|
1740
|
+
const _0x114174 = _0x1c13;
|
|
1741
|
+
if (!_0x396446[_0x114174(0x1c5)] || !_0x396446[_0x114174(0x1d3)] || _0x396446[_0x114174(0x18e)] || _0x396446[_0x114174(_0x3f17e1._0x4a7d5f)] !== !![])
|
|
1772
1742
|
return null;
|
|
1773
|
-
const
|
|
1774
|
-
if (
|
|
1743
|
+
const _0x4a0807 = parseTarget(_0x6e1a4[_0x114174(0x156)]);
|
|
1744
|
+
if (_0x4a0807[_0x114174(0x150)] !== 'channel')
|
|
1775
1745
|
return null;
|
|
1776
|
-
const
|
|
1777
|
-
let
|
|
1746
|
+
const _0x4c1b79 = _0x6e1a4[_0x114174(_0x3f17e1._0x51d800)] != null ? _0x4a0807[_0x114174(0x260)] + ':t' + _0x6e1a4[_0x114174(_0x3f17e1._0x1ba20f)] : _0x4a0807['channelTarget'] + ':' + _0x6e1a4[_0x114174(0xfd)];
|
|
1747
|
+
let _0x4b1e1b;
|
|
1778
1748
|
try {
|
|
1779
|
-
const
|
|
1780
|
-
'channel':
|
|
1749
|
+
const _0x243f61 = await _0x396446[_0x114174(0x176)]['readHistory']({
|
|
1750
|
+
'channel': _0x4c1b79,
|
|
1781
1751
|
'limit': 0x14
|
|
1782
1752
|
});
|
|
1783
|
-
|
|
1753
|
+
_0x4b1e1b = _0x243f61[_0x114174(0x24a)]['find'](_0x5d7a18 => _0x5d7a18[_0x114174(0xfd)] === _0x6e1a4[_0x114174(0xfd)]);
|
|
1784
1754
|
} catch {
|
|
1785
|
-
|
|
1755
|
+
_0x4b1e1b = void 0x0;
|
|
1786
1756
|
}
|
|
1787
|
-
const
|
|
1788
|
-
|
|
1757
|
+
const _0x1768e3 = _0x6e1a4['taskNumber'] == null ? _0x114174(0x1db) : '#' + _0x6e1a4['taskNumber'], _0x2b69f4 = [
|
|
1758
|
+
_0x114174(_0x3f17e1._0xe73afa) + _0x4c1b79 + _0x114174(_0x3f17e1._0x4c63ee) + _0x6e1a4[_0x114174(_0x3f17e1._0x4b098f)][_0x114174(0x192)](0x0, 0x8) + _0x114174(_0x3f17e1._0x404135) + new Date()[_0x114174(0x1a9)]() + _0x114174(0x196) + _0x1768e3 + _0x114174(_0x3f17e1._0x5ed877),
|
|
1789
1759
|
'',
|
|
1790
|
-
|
|
1760
|
+
_0x4b1e1b ? _0x114174(_0x3f17e1._0x2c591b) + _0x4b1e1b[_0x114174(0x118)] : _0x114174(_0x3f17e1._0x9805e4) + _0x6e1a4[_0x114174(0xfd)],
|
|
1791
1761
|
'',
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
][
|
|
1795
|
-
'method':
|
|
1796
|
-
'headers': { 'Content-Type':
|
|
1797
|
-
'body': JSON[
|
|
1798
|
-
'agent_id':
|
|
1799
|
-
'thread_target':
|
|
1762
|
+
_0x114174(0x1f0) + _0x4c1b79,
|
|
1763
|
+
'Continue\x20execution\x20in\x20this\x20thread.\x20Use\x20read_history\x20if\x20you\x20need\x20more\x20context.'
|
|
1764
|
+
][_0x114174(0x25e)]('\x0a'), _0x46ea02 = await fetch(_0x396446[_0x114174(0x1c5)] + _0x114174(0x1c8), {
|
|
1765
|
+
'method': _0x114174(0x15f),
|
|
1766
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
1767
|
+
'body': JSON[_0x114174(0x151)]({
|
|
1768
|
+
'agent_id': _0x396446['agentId'],
|
|
1769
|
+
'thread_target': _0x4c1b79,
|
|
1800
1770
|
'spawn_packet': {
|
|
1801
|
-
'replyTarget':
|
|
1802
|
-
...
|
|
1771
|
+
'replyTarget': _0x4c1b79,
|
|
1772
|
+
..._0x6e1a4[_0x114174(_0x3f17e1._0x284199)] ? { 'taskId': _0x6e1a4[_0x114174(_0x3f17e1._0x284199)] } : _0x6e1a4['taskNumber'] != null ? { 'taskId': _0x114174(0xec) + _0x6e1a4['taskNumber'] } : {}
|
|
1803
1773
|
},
|
|
1804
1774
|
'payload': {
|
|
1805
|
-
'mode':
|
|
1806
|
-
'text':
|
|
1775
|
+
'mode': _0x114174(_0x3f17e1._0x25390f),
|
|
1776
|
+
'text': _0x2b69f4
|
|
1807
1777
|
}
|
|
1808
1778
|
})
|
|
1809
|
-
}),
|
|
1810
|
-
if (!
|
|
1811
|
-
throw new Error(
|
|
1779
|
+
}), _0x22db43 = await _0x46ea02['json']();
|
|
1780
|
+
if (!_0x22db43['ok'])
|
|
1781
|
+
throw new Error(_0x22db43['error'] ?? _0x114174(_0x3f17e1._0x59f0f0));
|
|
1812
1782
|
return {
|
|
1813
1783
|
'stopMain': !![],
|
|
1814
|
-
'threadTarget':
|
|
1815
|
-
'workerDisposition':
|
|
1784
|
+
'threadTarget': _0x4c1b79,
|
|
1785
|
+
'workerDisposition': _0x22db43[_0x114174(_0x3f17e1._0x58a64d)] === _0x114174(0x243) ? _0x114174(0x243) : _0x114174(_0x3f17e1._0x47c13f),
|
|
1816
1786
|
'workerHandoff': !![],
|
|
1817
|
-
'workerSessionId':
|
|
1818
|
-
'executionMode':
|
|
1787
|
+
'workerSessionId': _0x22db43[_0x114174(_0x3f17e1._0x59c912)] ?? '',
|
|
1788
|
+
'executionMode': _0x114174(_0x3f17e1._0x4e630a)
|
|
1819
1789
|
};
|
|
1820
1790
|
}
|
|
1821
|
-
async function
|
|
1822
|
-
const
|
|
1823
|
-
if (!
|
|
1791
|
+
async function _0x23d001() {
|
|
1792
|
+
const _0x497f25 = _0x1c13;
|
|
1793
|
+
if (!_0x396446[_0x497f25(0x1c5)] || !_0x396446['agentId'] || _0x396446[_0x497f25(_0x178cf5._0x15deb4)])
|
|
1824
1794
|
return null;
|
|
1825
1795
|
try {
|
|
1826
|
-
const
|
|
1827
|
-
if (!
|
|
1796
|
+
const _0x39933c = await fetch(_0x396446[_0x497f25(0x1c5)] + _0x497f25(0x17d) + encodeURIComponent(_0x396446[_0x497f25(_0x178cf5._0xaf1595)])), _0x2ceb35 = await _0x39933c['json']();
|
|
1797
|
+
if (!_0x2ceb35['ok'])
|
|
1828
1798
|
return null;
|
|
1829
|
-
const
|
|
1830
|
-
for (const
|
|
1831
|
-
|
|
1799
|
+
const _0x3ae63a = new Set();
|
|
1800
|
+
for (const _0x5bca79 of _0x2ceb35[_0x497f25(0x164)]) {
|
|
1801
|
+
_0x5bca79[_0x497f25(_0x178cf5._0x9b79ab)] !== _0x497f25(0x11b) && _0x5bca79[_0x497f25(_0x178cf5._0x29c3d4)] && _0x3ae63a[_0x497f25(0x22e)](_0x5bca79[_0x497f25(_0x178cf5._0x4cceed)]);
|
|
1832
1802
|
}
|
|
1833
|
-
return
|
|
1803
|
+
return _0x3ae63a[_0x497f25(0x168)] > 0x0 ? _0x3ae63a : null;
|
|
1834
1804
|
} catch {
|
|
1835
1805
|
return null;
|
|
1836
1806
|
}
|
|
1837
1807
|
}
|
|
1838
|
-
const
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1808
|
+
const _0x3387a1 = new Set([
|
|
1809
|
+
_0x3a58d8(_0x3b3c31._0x3d1bc4),
|
|
1810
|
+
_0x3a58d8(0xf8),
|
|
1811
|
+
_0x3a58d8(0x142)
|
|
1842
1812
|
]);
|
|
1843
|
-
async function
|
|
1844
|
-
const
|
|
1845
|
-
if (!
|
|
1813
|
+
async function _0x56ca41() {
|
|
1814
|
+
const _0x29edd2 = _0x3a58d8;
|
|
1815
|
+
if (!_0x396446['daemonLocalUrl'] || !_0x396446[_0x29edd2(0x1d3)] || _0x396446[_0x29edd2(_0x2173af._0x247d03)])
|
|
1846
1816
|
return null;
|
|
1847
1817
|
try {
|
|
1848
|
-
const
|
|
1849
|
-
if (!
|
|
1818
|
+
const _0x417c9f = await fetch(_0x396446[_0x29edd2(0x1c5)] + '/workers/list?agent_id=' + encodeURIComponent(_0x396446[_0x29edd2(_0x2173af._0x556beb)])), _0x18c17c = await _0x417c9f['json']();
|
|
1819
|
+
if (!_0x18c17c['ok'])
|
|
1850
1820
|
return null;
|
|
1851
|
-
const
|
|
1852
|
-
for (const
|
|
1853
|
-
|
|
1821
|
+
const _0x5b5449 = new Set();
|
|
1822
|
+
for (const _0xe5a93b of _0x18c17c[_0x29edd2(_0x2173af._0x40c8e5)]) {
|
|
1823
|
+
_0x3387a1['has'](_0xe5a93b[_0x29edd2(0x1b0)]) && _0xe5a93b['thread_target'] && _0x5b5449[_0x29edd2(_0x2173af._0x24eb0f)](_0xe5a93b[_0x29edd2(_0x2173af._0x216928)]);
|
|
1854
1824
|
}
|
|
1855
|
-
return
|
|
1825
|
+
return _0x5b5449[_0x29edd2(0x168)] > 0x0 ? _0x5b5449 : null;
|
|
1856
1826
|
} catch {
|
|
1857
1827
|
return null;
|
|
1858
1828
|
}
|
|
1859
1829
|
}
|
|
1860
1830
|
return {
|
|
1861
|
-
async 'send_message'(
|
|
1862
|
-
const
|
|
1863
|
-
if (!
|
|
1864
|
-
const
|
|
1865
|
-
if (
|
|
1866
|
-
const
|
|
1867
|
-
if (
|
|
1831
|
+
async 'send_message'(_0x2b4bbe) {
|
|
1832
|
+
const _0x1f6079 = _0x3a58d8;
|
|
1833
|
+
if (!_0x396446[_0x1f6079(_0x2994c7._0x283acb)] && _0x396446[_0x1f6079(0x191)] && _0x396446[_0x1f6079(_0x2994c7._0x2d3bc7)] && _0x396446['agentId']) {
|
|
1834
|
+
const _0x3d003e = await _0x396446[_0x1f6079(0x176)][_0x1f6079(_0x2994c7._0x5d854a)](_0x2b4bbe['target']);
|
|
1835
|
+
if (_0x3d003e['task'] && _0x3d003e[_0x1f6079(0x12c)]) {
|
|
1836
|
+
const _0x2db5ed = _0x3d003e[_0x1f6079(_0x2994c7._0x5d4b9d)][_0x1f6079(_0x2994c7._0x1d68c9)] != null ? '#' + _0x3d003e[_0x1f6079(0x16f)]['taskNumber'] : _0x1f6079(0x1db), _0x52aff2 = _0x3d003e['threadNumber'] != null ? _0x3d003e[_0x1f6079(_0x2994c7._0x1d86b2)] + ':t' + _0x3d003e[_0x1f6079(0xf0)] : _0x3d003e[_0x1f6079(_0x2994c7._0x51bb08)] + ':' + _0x3d003e['threadId'][_0x1f6079(0x192)](0x0, 0x8), _0x227499 = await _0x56ca41();
|
|
1837
|
+
if (_0x227499?.[_0x1f6079(_0x2994c7._0x411277)](_0x52aff2))
|
|
1868
1838
|
return [
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
][
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1839
|
+
_0x1f6079(_0x2994c7._0x4ae27b) + _0x2db5ed + _0x1f6079(0x11e) + _0x52aff2 + _0x1f6079(0x1ca),
|
|
1840
|
+
'Do\x20not\x20send\x20further\x20messages\x20to\x20this\x20thread\x20—\x20the\x20worker\x20is\x20handling\x20it.'
|
|
1841
|
+
][_0x1f6079(_0x2994c7._0x16369a)]('\x0a');
|
|
1842
|
+
const _0x1cdb9d = [
|
|
1843
|
+
_0x1f6079(0x228) + _0x52aff2 + _0x1f6079(0x235) + new Date()[_0x1f6079(0x1a9)]() + _0x1f6079(_0x2994c7._0x3b2746),
|
|
1874
1844
|
'',
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
][
|
|
1880
|
-
'method':
|
|
1881
|
-
'headers': { 'Content-Type':
|
|
1882
|
-
'body': JSON[
|
|
1883
|
-
'agent_id':
|
|
1884
|
-
'thread_target':
|
|
1845
|
+
_0x1f6079(_0x2994c7._0x1b6c4c) + _0x2b4bbe[_0x1f6079(_0x2994c7._0x476667)],
|
|
1846
|
+
_0x1f6079(0x127) + _0x2db5ed + '\x20(' + _0x3d003e[_0x1f6079(0x16f)][_0x1f6079(_0x2994c7._0x562c0e)] + ')',
|
|
1847
|
+
_0x1f6079(_0x2994c7._0x3df95d) + _0x52aff2,
|
|
1848
|
+
_0x1f6079(_0x2994c7._0x236a4b)
|
|
1849
|
+
][_0x1f6079(0x25e)]('\x0a'), _0x41f38d = await fetch(_0x396446[_0x1f6079(_0x2994c7._0x2d3bc7)] + _0x1f6079(_0x2994c7._0x4265ae), {
|
|
1850
|
+
'method': _0x1f6079(0x15f),
|
|
1851
|
+
'headers': { 'Content-Type': _0x1f6079(0x1ae) },
|
|
1852
|
+
'body': JSON['stringify']({
|
|
1853
|
+
'agent_id': _0x396446[_0x1f6079(_0x2994c7._0x5e6e34)],
|
|
1854
|
+
'thread_target': _0x52aff2,
|
|
1885
1855
|
'spawn_packet': {
|
|
1886
|
-
'replyTarget':
|
|
1887
|
-
'taskId':
|
|
1856
|
+
'replyTarget': _0x52aff2,
|
|
1857
|
+
'taskId': _0x3d003e[_0x1f6079(_0x2994c7._0x5d4b9d)][_0x1f6079(_0x2994c7._0x562c0e)]
|
|
1888
1858
|
},
|
|
1889
1859
|
'payload': {
|
|
1890
|
-
'mode':
|
|
1891
|
-
'text':
|
|
1860
|
+
'mode': _0x1f6079(0x212),
|
|
1861
|
+
'text': _0x1cdb9d
|
|
1892
1862
|
}
|
|
1893
1863
|
})
|
|
1894
|
-
}),
|
|
1895
|
-
if (!
|
|
1896
|
-
throw new Error(
|
|
1864
|
+
}), _0x5a6987 = await _0x41f38d[_0x1f6079(0x16a)]();
|
|
1865
|
+
if (!_0x5a6987['ok'])
|
|
1866
|
+
throw new Error(_0x5a6987[_0x1f6079(_0x2994c7._0x1d151e)] ?? _0x1f6079(0x1ba));
|
|
1897
1867
|
return [
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
][
|
|
1868
|
+
_0x1f6079(_0x2994c7._0x43fcd2) + _0x2db5ed + _0x1f6079(0x11e) + _0x52aff2 + _0x1f6079(_0x2994c7._0x4550c1),
|
|
1869
|
+
_0x1f6079(0x244) + (_0x5a6987[_0x1f6079(_0x2994c7._0x28bbaf)] === _0x1f6079(_0x2994c7._0x20f101) ? _0x1f6079(_0x2994c7._0x316537) : 'started') + '.',
|
|
1870
|
+
_0x1f6079(0x1ab)
|
|
1871
|
+
][_0x1f6079(_0x2994c7._0x16369a)]('\x0a');
|
|
1902
1872
|
}
|
|
1903
1873
|
}
|
|
1904
|
-
const
|
|
1905
|
-
'attachmentIds':
|
|
1906
|
-
'content':
|
|
1907
|
-
'target':
|
|
1908
|
-
'visibility':
|
|
1874
|
+
const _0x14be7c = await _0x396446[_0x1f6079(0x176)][_0x1f6079(_0x2994c7._0x1464ab)]({
|
|
1875
|
+
'attachmentIds': _0x2b4bbe[_0x1f6079(0x1e9)],
|
|
1876
|
+
'content': _0x2b4bbe[_0x1f6079(0x118)],
|
|
1877
|
+
'target': _0x2b4bbe[_0x1f6079(0x256)],
|
|
1878
|
+
'visibility': _0x2b4bbe[_0x1f6079(0x1ad)]
|
|
1909
1879
|
});
|
|
1910
|
-
return
|
|
1880
|
+
return _0x1f6079(_0x2994c7._0x51dd6e) + _0x2b4bbe['target'] + _0x1f6079(0x16d) + _0x14be7c[_0x1f6079(_0x2994c7._0x1a144f)];
|
|
1911
1881
|
},
|
|
1912
1882
|
async 'check_messages'() {
|
|
1913
|
-
const
|
|
1914
|
-
if (!
|
|
1915
|
-
const
|
|
1916
|
-
if (
|
|
1917
|
-
return formatCheckMessages(
|
|
1883
|
+
const _0x478c51 = _0x3a58d8, _0x359295 = await _0x396446[_0x478c51(_0x47df46._0x18013f)][_0x478c51(0x1e6)]();
|
|
1884
|
+
if (!_0x396446['workerMode']) {
|
|
1885
|
+
const _0x5bce0a = await _0x23d001();
|
|
1886
|
+
if (_0x5bce0a)
|
|
1887
|
+
return formatCheckMessages(_0x359295['messages'][_0x478c51(_0x47df46._0x57c2ba)](_0x1c7311 => !_0x5bce0a[_0x478c51(0x24b)](_0x1c7311[_0x478c51(0x256)])));
|
|
1918
1888
|
}
|
|
1919
|
-
return formatCheckMessages(
|
|
1889
|
+
return formatCheckMessages(_0x359295[_0x478c51(_0x47df46._0x410894)]);
|
|
1920
1890
|
},
|
|
1921
|
-
async 'read_history'(
|
|
1922
|
-
const
|
|
1923
|
-
return formatHistory(
|
|
1891
|
+
async 'read_history'(_0x3a06a9) {
|
|
1892
|
+
const _0x482ce7 = _0x3a58d8, _0x399375 = await _0x396446[_0x482ce7(0x176)][_0x482ce7(0x1a2)](_0x3a06a9);
|
|
1893
|
+
return formatHistory(_0x399375);
|
|
1924
1894
|
},
|
|
1925
1895
|
async 'list_server'() {
|
|
1926
|
-
const
|
|
1927
|
-
return formatServerDirectory(
|
|
1896
|
+
const _0x241af4 = _0x3a58d8, _0x1b5235 = await _0x396446[_0x241af4(0x176)]['listServer']();
|
|
1897
|
+
return formatServerDirectory(_0x1b5235);
|
|
1928
1898
|
},
|
|
1929
|
-
async 'list_tasks'(
|
|
1930
|
-
const
|
|
1931
|
-
let
|
|
1932
|
-
if (
|
|
1899
|
+
async 'list_tasks'(_0x5e193b) {
|
|
1900
|
+
const _0x2597b7 = _0x3a58d8, _0x5c35a2 = await _0x396446[_0x2597b7(_0x4658bc._0x56645d)]['listTasks'](_0x5e193b);
|
|
1901
|
+
let _0x4f1af2;
|
|
1902
|
+
if (_0x396446[_0x2597b7(0x1c5)] && _0x396446[_0x2597b7(0x1d3)])
|
|
1933
1903
|
try {
|
|
1934
|
-
const
|
|
1935
|
-
if (
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1938
|
-
for (const
|
|
1939
|
-
if (
|
|
1904
|
+
const _0x344650 = await fetch(_0x396446['daemonLocalUrl'] + _0x2597b7(_0x4658bc._0x29c9da) + encodeURIComponent(_0x396446['agentId'])), _0x529509 = await _0x344650[_0x2597b7(0x16a)]();
|
|
1905
|
+
if (_0x529509['ok']) {
|
|
1906
|
+
const _0x4e9c86 = _0x5e193b['channel'] + ':';
|
|
1907
|
+
_0x4f1af2 = new Set();
|
|
1908
|
+
for (const _0x11d7d6 of _0x529509[_0x2597b7(0x164)]) {
|
|
1909
|
+
if (_0x11d7d6['status'] === _0x2597b7(0x11b))
|
|
1940
1910
|
continue;
|
|
1941
|
-
if (
|
|
1942
|
-
const
|
|
1943
|
-
if (
|
|
1944
|
-
|
|
1911
|
+
if (_0x11d7d6[_0x2597b7(0x162)]?.['startsWith'](_0x4e9c86)) {
|
|
1912
|
+
const _0x48f20c = _0x11d7d6[_0x2597b7(0x162)][_0x2597b7(0x192)](_0x4e9c86[_0x2597b7(0x1fe)]), _0x4ec751 = _0x5c35a2[_0x2597b7(_0x4658bc._0x57bf9b)][_0x2597b7(_0x4658bc._0x279c5e)](_0x49f8be => _0x49f8be[_0x2597b7(0xfd)]?.[_0x2597b7(0x1e1)](_0x48f20c) === !![]);
|
|
1913
|
+
if (_0x4ec751?.[_0x2597b7(_0x4658bc._0x5c3b9c)] != null) {
|
|
1914
|
+
_0x4f1af2[_0x2597b7(_0x4658bc._0x3f614e)](_0x4ec751[_0x2597b7(_0x4658bc._0x57dc77)]);
|
|
1945
1915
|
continue;
|
|
1946
1916
|
}
|
|
1947
1917
|
}
|
|
1948
|
-
if (
|
|
1949
|
-
const
|
|
1950
|
-
|
|
1918
|
+
if (_0x11d7d6[_0x2597b7(_0x4658bc._0x4c2be3)]) {
|
|
1919
|
+
const _0x5df157 = _0x5c35a2['tasks']['find'](_0x293279 => _0x293279['taskId'] === _0x11d7d6['task_id']);
|
|
1920
|
+
_0x5df157?.[_0x2597b7(0x178)] != null && _0x4f1af2['add'](_0x5df157[_0x2597b7(_0x4658bc._0x57dc77)]);
|
|
1951
1921
|
}
|
|
1952
1922
|
}
|
|
1953
1923
|
}
|
|
1954
1924
|
} catch {
|
|
1955
1925
|
}
|
|
1956
|
-
return formatTaskList(
|
|
1926
|
+
return formatTaskList(_0x5c35a2[_0x2597b7(_0x4658bc._0x370140)], _0x4f1af2);
|
|
1957
1927
|
},
|
|
1958
|
-
async 'create_tasks'(
|
|
1959
|
-
const
|
|
1960
|
-
|
|
1961
|
-
const
|
|
1962
|
-
return formatCreatedTasks(
|
|
1928
|
+
async 'create_tasks'(_0x512164) {
|
|
1929
|
+
const _0x53b5ca = _0x3a58d8;
|
|
1930
|
+
_0x4682d0(_0x53b5ca(0x1aa), _0x512164['channel']);
|
|
1931
|
+
const _0x252006 = await _0x396446['client']['createTasks'](_0x512164);
|
|
1932
|
+
return formatCreatedTasks(_0x252006['tasks']);
|
|
1963
1933
|
},
|
|
1964
|
-
async 'claim_tasks'(
|
|
1965
|
-
const
|
|
1966
|
-
if (
|
|
1967
|
-
|
|
1968
|
-
if (
|
|
1969
|
-
throw new Error(
|
|
1970
|
-
if (!
|
|
1971
|
-
throw new Error(
|
|
1934
|
+
async 'claim_tasks'(_0x8d8d6d) {
|
|
1935
|
+
const _0x457c27 = _0x3a58d8;
|
|
1936
|
+
if (_0x396446[_0x457c27(_0x3f46d0._0x2aedd3)]) {
|
|
1937
|
+
_0x4682d0(_0x457c27(_0x3f46d0._0x3582f2), _0x8d8d6d[_0x457c27(_0x3f46d0._0x5ed1f4)]);
|
|
1938
|
+
if (_0x8d8d6d[_0x457c27(_0x3f46d0._0x4522c4)] && _0x8d8d6d[_0x457c27(_0x3f46d0._0x4522c4)][_0x457c27(0x1fe)] > 0x0)
|
|
1939
|
+
throw new Error(_0x457c27(0x198));
|
|
1940
|
+
if (!_0x8d8d6d[_0x457c27(_0x3f46d0._0x573516)] || _0x8d8d6d[_0x457c27(_0x3f46d0._0x56c45f)][_0x457c27(0x1fe)] === 0x0)
|
|
1941
|
+
throw new Error(_0x457c27(_0x3f46d0._0x1c71d4));
|
|
1972
1942
|
}
|
|
1973
|
-
const
|
|
1974
|
-
const
|
|
1975
|
-
if (!
|
|
1976
|
-
return
|
|
1943
|
+
const _0x150086 = await _0x396446[_0x457c27(0x176)][_0x457c27(0x173)](_0x8d8d6d), _0x22ea69 = await Promise[_0x457c27(0x22c)](_0x150086[_0x457c27(_0x3f46d0._0x25d640)][_0x457c27(_0x3f46d0._0xaaf601)](async _0xfa6a87 => {
|
|
1944
|
+
const _0x2caba5 = _0x457c27;
|
|
1945
|
+
if (!_0xfa6a87[_0x2caba5(_0x2f72b2._0x1979f6)] || !_0xfa6a87['messageId'])
|
|
1946
|
+
return _0xfa6a87;
|
|
1977
1947
|
try {
|
|
1978
|
-
const
|
|
1979
|
-
'channel':
|
|
1980
|
-
'messageId':
|
|
1981
|
-
'taskId':
|
|
1982
|
-
'taskNumber':
|
|
1983
|
-
'threadNumber':
|
|
1948
|
+
const _0x2cd016 = await _0x2d4cad({
|
|
1949
|
+
'channel': _0x8d8d6d[_0x2caba5(_0x2f72b2._0x45df73)],
|
|
1950
|
+
'messageId': _0xfa6a87['messageId'],
|
|
1951
|
+
'taskId': _0xfa6a87[_0x2caba5(0x155)],
|
|
1952
|
+
'taskNumber': _0xfa6a87[_0x2caba5(_0x2f72b2._0x25e996)],
|
|
1953
|
+
'threadNumber': _0xfa6a87['threadNumber']
|
|
1984
1954
|
});
|
|
1985
|
-
return
|
|
1986
|
-
...
|
|
1987
|
-
...
|
|
1988
|
-
} :
|
|
1989
|
-
} catch (
|
|
1955
|
+
return _0x2cd016 ? {
|
|
1956
|
+
..._0xfa6a87,
|
|
1957
|
+
..._0x2cd016
|
|
1958
|
+
} : _0xfa6a87;
|
|
1959
|
+
} catch (_0x4973b3) {
|
|
1990
1960
|
return {
|
|
1991
|
-
...
|
|
1992
|
-
'workerHandoffError':
|
|
1961
|
+
..._0xfa6a87,
|
|
1962
|
+
'workerHandoffError': _0x4973b3 instanceof Error ? _0x4973b3[_0x2caba5(_0x2f72b2._0x190bdf)] : _0x2caba5(0x134)
|
|
1993
1963
|
};
|
|
1994
1964
|
}
|
|
1995
1965
|
}));
|
|
1996
|
-
return formatClaimTaskResults(
|
|
1966
|
+
return formatClaimTaskResults(_0x22ea69);
|
|
1997
1967
|
},
|
|
1998
|
-
async 'unclaim_task'(
|
|
1999
|
-
const
|
|
2000
|
-
if (
|
|
2001
|
-
|
|
2002
|
-
if (
|
|
2003
|
-
throw new Error(
|
|
1968
|
+
async 'unclaim_task'(_0x448de8) {
|
|
1969
|
+
const _0x5f0e5f = _0x3a58d8;
|
|
1970
|
+
if (_0x396446[_0x5f0e5f(0x18e)]) {
|
|
1971
|
+
_0x4682d0(_0x5f0e5f(0x1d6), _0x448de8['channel']);
|
|
1972
|
+
if (_0x448de8[_0x5f0e5f(_0x151f71._0x1f2b8b)] == null)
|
|
1973
|
+
throw new Error('unclaim_task:\x20worker\x20can\x20only\x20unclaim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_number.');
|
|
2004
1974
|
}
|
|
2005
|
-
const
|
|
2006
|
-
return formatUnclaimTaskResult(
|
|
1975
|
+
const _0x545083 = await _0x396446[_0x5f0e5f(0x176)][_0x5f0e5f(0x10e)](_0x448de8);
|
|
1976
|
+
return formatUnclaimTaskResult(_0x545083);
|
|
2007
1977
|
},
|
|
2008
|
-
async 'update_task_status'(
|
|
2009
|
-
const
|
|
2010
|
-
|
|
2011
|
-
const
|
|
2012
|
-
return formatUpdateTaskStatusResult(
|
|
1978
|
+
async 'update_task_status'(_0x36f9b4) {
|
|
1979
|
+
const _0x240de6 = _0x3a58d8;
|
|
1980
|
+
_0x4682d0('update_task_status', _0x36f9b4[_0x240de6(_0x2c9d0c._0x17cdd3)]);
|
|
1981
|
+
const _0x4f3ff0 = await _0x396446[_0x240de6(_0x2c9d0c._0x43b4bd)][_0x240de6(0x23b)](_0x36f9b4);
|
|
1982
|
+
return formatUpdateTaskStatusResult(_0x4f3ff0);
|
|
2013
1983
|
},
|
|
2014
|
-
async 'upload_file'(
|
|
2015
|
-
const
|
|
2016
|
-
sizeBytes:
|
|
2017
|
-
...
|
|
2018
|
-
} =
|
|
2019
|
-
'channel':
|
|
2020
|
-
...
|
|
1984
|
+
async 'upload_file'(_0x4762cf) {
|
|
1985
|
+
const _0x476c7c = _0x3a58d8, _0x41a3c5 = await _0x396446['uploadPreparer'](_0x4762cf[_0x476c7c(_0x3f7685._0x543c14)]), {
|
|
1986
|
+
sizeBytes: _0x1ddab1,
|
|
1987
|
+
..._0x2f3b6d
|
|
1988
|
+
} = _0x41a3c5, _0x232086 = await _0x396446[_0x476c7c(_0x3f7685._0x39c814)][_0x476c7c(_0x3f7685._0x46f771)]({
|
|
1989
|
+
'channel': _0x4762cf[_0x476c7c(_0x3f7685._0x4afd3e)],
|
|
1990
|
+
..._0x2f3b6d
|
|
2021
1991
|
});
|
|
2022
|
-
return formatUploadResult(
|
|
1992
|
+
return formatUploadResult(_0x232086);
|
|
2023
1993
|
},
|
|
2024
|
-
async 'view_file'(
|
|
2025
|
-
const
|
|
2026
|
-
if (
|
|
2027
|
-
return formatViewFileResult(
|
|
2028
|
-
const
|
|
2029
|
-
'attachmentId':
|
|
2030
|
-
'contentType':
|
|
2031
|
-
'data':
|
|
2032
|
-
'originalFilename':
|
|
1994
|
+
async 'view_file'(_0x2185f6) {
|
|
1995
|
+
const _0x4030a7 = _0x3a58d8, _0x37790a = await _0x396446[_0x4030a7(0x246)][_0x4030a7(0x1a7)](_0x2185f6['attachment_id']);
|
|
1996
|
+
if (_0x37790a)
|
|
1997
|
+
return formatViewFileResult(_0x37790a, !![]);
|
|
1998
|
+
const _0x28d06e = await _0x396446[_0x4030a7(0x176)][_0x4030a7(_0xe3eae._0x389e31)](_0x2185f6['attachment_id']), _0x17cd8c = await _0x396446[_0x4030a7(_0xe3eae._0x448f44)][_0x4030a7(_0xe3eae._0x6daa87)]({
|
|
1999
|
+
'attachmentId': _0x2185f6[_0x4030a7(0x22a)],
|
|
2000
|
+
'contentType': _0x28d06e[_0x4030a7(_0xe3eae._0x2c8805)],
|
|
2001
|
+
'data': _0x28d06e[_0x4030a7(0x10d)],
|
|
2002
|
+
'originalFilename': _0x28d06e[_0x4030a7(0x144)]
|
|
2033
2003
|
});
|
|
2034
|
-
return formatViewFileResult(
|
|
2004
|
+
return formatViewFileResult(_0x17cd8c, ![]);
|
|
2035
2005
|
},
|
|
2036
|
-
async 'get_worker_status'(
|
|
2037
|
-
const
|
|
2038
|
-
if (!
|
|
2039
|
-
return
|
|
2040
|
-
const
|
|
2041
|
-
if (!
|
|
2042
|
-
return
|
|
2043
|
-
return 'Worker\x20\x22' +
|
|
2006
|
+
async 'get_worker_status'(_0x292e1b) {
|
|
2007
|
+
const _0x2a710a = _0x3a58d8;
|
|
2008
|
+
if (!_0x396446['daemonLocalUrl'])
|
|
2009
|
+
return _0x2a710a(0x20d);
|
|
2010
|
+
const _0x334421 = await fetch(_0x396446[_0x2a710a(0x1c5)] + '/workers/status?work_key=' + encodeURIComponent(_0x292e1b['work_key'])), _0x4239f3 = await _0x334421[_0x2a710a(0x16a)]();
|
|
2011
|
+
if (!_0x4239f3['ok'])
|
|
2012
|
+
return 'Worker\x20\x22' + _0x292e1b[_0x2a710a(_0x1382d6._0x412d73)] + _0x2a710a(_0x1382d6._0x3f137e);
|
|
2013
|
+
return 'Worker\x20\x22' + _0x292e1b[_0x2a710a(0x15b)] + '\x22:\x20status=' + _0x4239f3[_0x2a710a(0x1b0)];
|
|
2044
2014
|
},
|
|
2045
|
-
async 'park_worker'(
|
|
2046
|
-
const
|
|
2047
|
-
if (!
|
|
2048
|
-
return
|
|
2049
|
-
const
|
|
2050
|
-
'method':
|
|
2051
|
-
'headers': { 'Content-Type':
|
|
2052
|
-
'body': JSON[
|
|
2053
|
-
}),
|
|
2054
|
-
if (!
|
|
2055
|
-
throw new Error(
|
|
2056
|
-
return
|
|
2015
|
+
async 'park_worker'(_0x27f320) {
|
|
2016
|
+
const _0x49404f = _0x3a58d8;
|
|
2017
|
+
if (!_0x396446[_0x49404f(0x1c5)])
|
|
2018
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2019
|
+
const _0x353be5 = await fetch(_0x396446[_0x49404f(0x1c5)] + '/workers/park', {
|
|
2020
|
+
'method': _0x49404f(_0xc49df4._0x17663c),
|
|
2021
|
+
'headers': { 'Content-Type': _0x49404f(0x1ae) },
|
|
2022
|
+
'body': JSON[_0x49404f(0x151)]({ 'work_key': _0x27f320[_0x49404f(_0xc49df4._0x46eeef)] })
|
|
2023
|
+
}), _0x4006e7 = await _0x353be5['json']();
|
|
2024
|
+
if (!_0x4006e7['ok'])
|
|
2025
|
+
throw new Error(_0x4006e7[_0x49404f(_0xc49df4._0x16d5f2)] ?? _0x49404f(_0xc49df4._0x172f22));
|
|
2026
|
+
return _0x49404f(0x13b) + _0x27f320[_0x49404f(0x15b)] + _0x49404f(_0xc49df4._0x563019);
|
|
2057
2027
|
},
|
|
2058
|
-
async 'mark_waiting_input'(
|
|
2059
|
-
const
|
|
2060
|
-
if (!
|
|
2061
|
-
return
|
|
2062
|
-
const
|
|
2063
|
-
'method':
|
|
2028
|
+
async 'mark_waiting_input'(_0xecff06) {
|
|
2029
|
+
const _0x21da49 = _0x3a58d8;
|
|
2030
|
+
if (!_0x396446['daemonLocalUrl'] || !_0x396446[_0x21da49(0x1d3)])
|
|
2031
|
+
return _0x21da49(_0x1d3941._0x5de5f8);
|
|
2032
|
+
const _0x23350b = await fetch(_0x396446['daemonLocalUrl'] + '/workers/waiting_input', {
|
|
2033
|
+
'method': _0x21da49(0x15f),
|
|
2064
2034
|
'headers': { 'Content-Type': 'application/json' },
|
|
2065
|
-
'body': JSON[
|
|
2066
|
-
'work_key':
|
|
2067
|
-
'agent_id':
|
|
2035
|
+
'body': JSON[_0x21da49(0x151)]({
|
|
2036
|
+
'work_key': _0xecff06[_0x21da49(_0x1d3941._0x4a32a0)],
|
|
2037
|
+
'agent_id': _0x396446[_0x21da49(_0x1d3941._0x6e979d)]
|
|
2068
2038
|
})
|
|
2069
|
-
}),
|
|
2070
|
-
if (!
|
|
2071
|
-
throw new Error(
|
|
2072
|
-
return 'Worker\x20\x22' +
|
|
2039
|
+
}), _0x10b684 = await _0x23350b['json']();
|
|
2040
|
+
if (!_0x10b684['ok'])
|
|
2041
|
+
throw new Error(_0x10b684[_0x21da49(0x152)] ?? _0x21da49(0x187));
|
|
2042
|
+
return 'Worker\x20\x22' + _0xecff06['work_key'] + '\x22\x20marked\x20as\x20waiting_input.\x20TTL\x20timer\x20paused\x20until\x20next\x20message\x20arrives.';
|
|
2073
2043
|
},
|
|
2074
|
-
async 'escalate_to_main'(
|
|
2075
|
-
const
|
|
2076
|
-
if (!
|
|
2077
|
-
return
|
|
2078
|
-
const
|
|
2079
|
-
'method':
|
|
2080
|
-
'headers': { 'Content-Type':
|
|
2081
|
-
'body': JSON[
|
|
2082
|
-
'work_key':
|
|
2083
|
-
'reason':
|
|
2044
|
+
async 'escalate_to_main'(_0x509997) {
|
|
2045
|
+
const _0x24b3cd = _0x3a58d8;
|
|
2046
|
+
if (!_0x396446[_0x24b3cd(0x1c5)])
|
|
2047
|
+
return _0x24b3cd(_0x25f1ac._0x45f3a2);
|
|
2048
|
+
const _0x2d963e = await fetch(_0x396446[_0x24b3cd(_0x25f1ac._0x371aeb)] + '/workers/escalate', {
|
|
2049
|
+
'method': _0x24b3cd(_0x25f1ac._0x17aebd),
|
|
2050
|
+
'headers': { 'Content-Type': _0x24b3cd(0x1ae) },
|
|
2051
|
+
'body': JSON[_0x24b3cd(_0x25f1ac._0x228706)]({
|
|
2052
|
+
'work_key': _0x509997[_0x24b3cd(_0x25f1ac._0x19acb0)],
|
|
2053
|
+
'reason': _0x509997[_0x24b3cd(0x1a6)]
|
|
2084
2054
|
})
|
|
2085
|
-
}),
|
|
2086
|
-
if (!
|
|
2087
|
-
throw new Error(
|
|
2088
|
-
return
|
|
2055
|
+
}), _0x3a0dc0 = await _0x2d963e[_0x24b3cd(_0x25f1ac._0x515ba0)]();
|
|
2056
|
+
if (!_0x3a0dc0['ok'])
|
|
2057
|
+
throw new Error(_0x3a0dc0[_0x24b3cd(_0x25f1ac._0x8ca8c9)] ?? _0x24b3cd(0x1ac));
|
|
2058
|
+
return _0x24b3cd(0x1df) + _0x509997['reason'];
|
|
2089
2059
|
}
|
|
2090
2060
|
};
|
|
2091
2061
|
}
|
|
2092
|
-
function textResult(
|
|
2093
|
-
const
|
|
2062
|
+
function textResult(_0x116cf1, _0x3d94e3 = ![]) {
|
|
2063
|
+
const _0xe8f4ea = { _0x1c5a6b: 0x26e }, _0x58252b = _0x2980fe;
|
|
2094
2064
|
return {
|
|
2095
2065
|
'content': [{
|
|
2096
|
-
'type':
|
|
2097
|
-
'text':
|
|
2066
|
+
'type': _0x58252b(_0xe8f4ea._0x1c5a6b),
|
|
2067
|
+
'text': _0x116cf1
|
|
2098
2068
|
}],
|
|
2099
|
-
...
|
|
2069
|
+
..._0x3d94e3 ? { 'isError': !![] } : {}
|
|
2100
2070
|
};
|
|
2101
2071
|
}
|
|
2102
|
-
async function registerChatBridgeTools(
|
|
2103
|
-
const
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
},
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
},
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
},
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
'
|
|
2160
|
-
|
|
2072
|
+
async function registerChatBridgeTools(_0x3de6b5, _0x4eeec5, _0x20fb93) {
|
|
2073
|
+
const _0x2365e7 = {
|
|
2074
|
+
_0x2def04: 0x252,
|
|
2075
|
+
_0x357b62: 0xee,
|
|
2076
|
+
_0x54addb: 0x25a,
|
|
2077
|
+
_0x5b871c: 0x25a,
|
|
2078
|
+
_0x585d49: 0x1fa,
|
|
2079
|
+
_0x469394: 0x1c3,
|
|
2080
|
+
_0x5ec5c5: 0x126,
|
|
2081
|
+
_0x33b74c: 0x25a,
|
|
2082
|
+
_0x15173e: 0x186,
|
|
2083
|
+
_0x57eac5: 0x1b7,
|
|
2084
|
+
_0x38574c: 0x112,
|
|
2085
|
+
_0x2cb53f: 0x13f,
|
|
2086
|
+
_0x5d2be2: 0x21e,
|
|
2087
|
+
_0x408041: 0x1a4,
|
|
2088
|
+
_0x51c019: 0xf5,
|
|
2089
|
+
_0x4bea85: 0x112,
|
|
2090
|
+
_0x4af593: 0x1aa,
|
|
2091
|
+
_0x37920d: 0x1f2,
|
|
2092
|
+
_0x575ec1: 0xff,
|
|
2093
|
+
_0x3280c2: 0x19b,
|
|
2094
|
+
_0x29bf64: 0x1fd,
|
|
2095
|
+
_0x20b8fa: 0x25a,
|
|
2096
|
+
_0x4f41a7: 0x167,
|
|
2097
|
+
_0x1f2ea8: 0x1a3,
|
|
2098
|
+
_0x532c5f: 0x1f2,
|
|
2099
|
+
_0xe766d0: 0xff,
|
|
2100
|
+
_0xd282cf: 0x126,
|
|
2101
|
+
_0x48b38f: 0x25a,
|
|
2102
|
+
_0x317379: 0x25a,
|
|
2103
|
+
_0x44764f: 0x1fb,
|
|
2104
|
+
_0x411cba: 0x1d6,
|
|
2105
|
+
_0x3d86b7: 0x14d,
|
|
2106
|
+
_0x37087f: 0x126,
|
|
2107
|
+
_0x19751a: 0x239,
|
|
2108
|
+
_0x127b70: 0x163,
|
|
2109
|
+
_0x4d4bfb: 0x1f2,
|
|
2110
|
+
_0x33c323: 0x126,
|
|
2111
|
+
_0x327e72: 0x203,
|
|
2112
|
+
_0x2419f9: 0x25a,
|
|
2113
|
+
_0x227b23: 0x26c,
|
|
2114
|
+
_0x1f2468: 0x15c,
|
|
2115
|
+
_0x5843fb: 0x229,
|
|
2116
|
+
_0x4962f7: 0x1cb,
|
|
2117
|
+
_0x20d1cc: 0x253
|
|
2118
|
+
}, _0x36f891 = {
|
|
2119
|
+
_0x2736bf: 0x223,
|
|
2120
|
+
_0x325a17: 0x187
|
|
2121
|
+
}, _0x1f52ff = { _0x36f183: 0x1ac }, _0x8bfb7 = { _0x59c973: 0x195 }, _0x5c7f7b = { _0x4b6f63: 0x229 }, _0x502cfe = { _0x5da837: 0x23a }, _0x10c697 = {
|
|
2122
|
+
_0x1f6f5b: 0x26c,
|
|
2123
|
+
_0x19c81f: 0x223
|
|
2124
|
+
}, _0x53e573 = { _0x2eb3d0: 0x223 }, _0x4bf2f6 = { _0x1a39c9: 0x223 }, _0x9ed0c1 = {
|
|
2125
|
+
_0x16a271: 0x223,
|
|
2126
|
+
_0x37c00b: 0x259
|
|
2127
|
+
}, _0x440c09 = { _0x52ce68: 0x1aa }, _0xf050a5 = { _0x19a337: 0x223 }, _0x4ab932 = { _0x34a208: 0x19a }, _0x4a30b2 = { _0x396d5f: 0x154 }, _0x475033 = _0x2980fe, {z: _0x17fc8e} = await import(_0x475033(_0x2365e7._0x2def04));
|
|
2128
|
+
_0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x357b62), _0x475033(0x13e), {
|
|
2129
|
+
'target': _0x17fc8e[_0x475033(0x1f2)](),
|
|
2130
|
+
'content': _0x17fc8e[_0x475033(0x1f2)](),
|
|
2131
|
+
'attachment_ids': _0x17fc8e['array'](_0x17fc8e['string']())[_0x475033(_0x2365e7._0x54addb)](),
|
|
2132
|
+
'visibility': _0x17fc8e[_0x475033(0x21e)]([
|
|
2133
|
+
_0x475033(0x233),
|
|
2161
2134
|
'aside'
|
|
2162
|
-
])[
|
|
2163
|
-
}, async
|
|
2164
|
-
const
|
|
2135
|
+
])[_0x475033(_0x2365e7._0x5b871c)]()[_0x475033(0x216)]('Optional.\x20If\x20omitted,\x20the\x20message\x20is\x20public.\x20In\x20task\x20threads,\x20set\x20\x22aside\x22\x20only\x20when\x20you\x20explicitly\x20want\x20an\x20aside.\x20Do\x20not\x20set\x20outside\x20threads.')
|
|
2136
|
+
}, async _0x11b6b1 => {
|
|
2137
|
+
const _0x1ccb0e = _0x475033;
|
|
2165
2138
|
try {
|
|
2166
|
-
return textResult(await
|
|
2167
|
-
} catch (
|
|
2168
|
-
return textResult(
|
|
2139
|
+
return textResult(await _0x4eeec5[_0x1ccb0e(0xee)](_0x11b6b1));
|
|
2140
|
+
} catch (_0x5de7be) {
|
|
2141
|
+
return textResult(_0x5de7be instanceof Error ? _0x5de7be['message'] : _0x1ccb0e(0x101), !![]);
|
|
2169
2142
|
}
|
|
2170
|
-
}),
|
|
2171
|
-
const
|
|
2143
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x585d49), _0x475033(0x1b2), {}, async () => {
|
|
2144
|
+
const _0x30fec3 = _0x475033;
|
|
2172
2145
|
try {
|
|
2173
|
-
return textResult(await
|
|
2174
|
-
} catch (
|
|
2175
|
-
return textResult(
|
|
2146
|
+
return textResult(await _0x4eeec5[_0x30fec3(0x1fa)]());
|
|
2147
|
+
} catch (_0x9dd996) {
|
|
2148
|
+
return textResult(_0x9dd996 instanceof Error ? _0x9dd996['message'] : _0x30fec3(0xf2), !![]);
|
|
2176
2149
|
}
|
|
2177
|
-
}),
|
|
2178
|
-
'channel':
|
|
2179
|
-
'limit':
|
|
2180
|
-
'before':
|
|
2181
|
-
'after':
|
|
2182
|
-
}, async
|
|
2183
|
-
const
|
|
2150
|
+
}), _0x3de6b5[_0x475033(0x112)]('read_history', _0x475033(_0x2365e7._0x469394), {
|
|
2151
|
+
'channel': _0x17fc8e[_0x475033(0x1f2)](),
|
|
2152
|
+
'limit': _0x17fc8e[_0x475033(_0x2365e7._0x5ec5c5)]()[_0x475033(0x25a)](),
|
|
2153
|
+
'before': _0x17fc8e[_0x475033(0x126)]()['optional'](),
|
|
2154
|
+
'after': _0x17fc8e['number']()[_0x475033(_0x2365e7._0x33b74c)]()
|
|
2155
|
+
}, async _0x50f733 => {
|
|
2156
|
+
const _0x476da3 = _0x475033;
|
|
2184
2157
|
try {
|
|
2185
|
-
return textResult(await
|
|
2186
|
-
} catch (
|
|
2187
|
-
return textResult(
|
|
2158
|
+
return textResult(await _0x4eeec5[_0x476da3(_0x4a30b2._0x396d5f)](_0x50f733));
|
|
2159
|
+
} catch (_0x173209) {
|
|
2160
|
+
return textResult(_0x173209 instanceof Error ? _0x173209['message'] : _0x476da3(0x22b), !![]);
|
|
2188
2161
|
}
|
|
2189
|
-
}),
|
|
2190
|
-
const
|
|
2162
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x15173e), _0x475033(_0x2365e7._0x57eac5), {}, async () => {
|
|
2163
|
+
const _0x4b274f = _0x475033;
|
|
2191
2164
|
try {
|
|
2192
|
-
return textResult(await
|
|
2193
|
-
} catch (
|
|
2194
|
-
return textResult(
|
|
2165
|
+
return textResult(await _0x4eeec5[_0x4b274f(0x186)]());
|
|
2166
|
+
} catch (_0x34eb32) {
|
|
2167
|
+
return textResult(_0x34eb32 instanceof Error ? _0x34eb32[_0x4b274f(0x223)] : _0x4b274f(_0x4ab932._0x34a208), !![]);
|
|
2195
2168
|
}
|
|
2196
|
-
}),
|
|
2197
|
-
'channel':
|
|
2198
|
-
'status':
|
|
2199
|
-
|
|
2200
|
-
|
|
2169
|
+
}), _0x3de6b5[_0x475033(_0x2365e7._0x38574c)](_0x475033(0x20a), _0x475033(_0x2365e7._0x2cb53f), {
|
|
2170
|
+
'channel': _0x17fc8e[_0x475033(0x1f2)](),
|
|
2171
|
+
'status': _0x17fc8e[_0x475033(_0x2365e7._0x5d2be2)]([
|
|
2172
|
+
_0x475033(_0x2365e7._0x408041),
|
|
2173
|
+
_0x475033(0x1c7),
|
|
2201
2174
|
'in_review',
|
|
2202
|
-
|
|
2203
|
-
])[
|
|
2204
|
-
}, async
|
|
2205
|
-
const
|
|
2175
|
+
_0x475033(_0x2365e7._0x51c019)
|
|
2176
|
+
])[_0x475033(0x25a)]()
|
|
2177
|
+
}, async _0x5dc0a5 => {
|
|
2178
|
+
const _0x54cd15 = _0x475033;
|
|
2206
2179
|
try {
|
|
2207
|
-
return textResult(await
|
|
2208
|
-
} catch (
|
|
2209
|
-
return textResult(
|
|
2180
|
+
return textResult(await _0x4eeec5[_0x54cd15(0x20a)](_0x5dc0a5));
|
|
2181
|
+
} catch (_0x1483f4) {
|
|
2182
|
+
return textResult(_0x1483f4 instanceof Error ? _0x1483f4[_0x54cd15(_0xf050a5._0x19a337)] : _0x54cd15(0x26a), !![]);
|
|
2210
2183
|
}
|
|
2211
|
-
}),
|
|
2212
|
-
'channel':
|
|
2213
|
-
'idempotency_key':
|
|
2214
|
-
'tasks':
|
|
2215
|
-
'title':
|
|
2216
|
-
'description':
|
|
2217
|
-
'priority':
|
|
2184
|
+
}), _0x3de6b5[_0x475033(_0x2365e7._0x4bea85)](_0x475033(_0x2365e7._0x4af593), _0x475033(0x114), {
|
|
2185
|
+
'channel': _0x17fc8e['string'](),
|
|
2186
|
+
'idempotency_key': _0x17fc8e[_0x475033(_0x2365e7._0x37920d)]()['optional'](),
|
|
2187
|
+
'tasks': _0x17fc8e[_0x475033(_0x2365e7._0x575ec1)](_0x17fc8e[_0x475033(0x242)]({
|
|
2188
|
+
'title': _0x17fc8e[_0x475033(_0x2365e7._0x37920d)](),
|
|
2189
|
+
'description': _0x17fc8e[_0x475033(0x1f2)]()['optional'](),
|
|
2190
|
+
'priority': _0x17fc8e[_0x475033(_0x2365e7._0x5d2be2)]([
|
|
2218
2191
|
'low',
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
])[
|
|
2192
|
+
_0x475033(_0x2365e7._0x3280c2),
|
|
2193
|
+
_0x475033(_0x2365e7._0x29bf64),
|
|
2194
|
+
_0x475033(0x18a)
|
|
2195
|
+
])[_0x475033(_0x2365e7._0x20b8fa)]()
|
|
2223
2196
|
}))
|
|
2224
|
-
}, async
|
|
2225
|
-
const
|
|
2197
|
+
}, async _0x2f3db8 => {
|
|
2198
|
+
const _0x5518fe = _0x475033;
|
|
2226
2199
|
try {
|
|
2227
|
-
return textResult(await
|
|
2228
|
-
} catch (
|
|
2229
|
-
return textResult(
|
|
2200
|
+
return textResult(await _0x4eeec5[_0x5518fe(_0x440c09._0x52ce68)](_0x2f3db8));
|
|
2201
|
+
} catch (_0x29fa76) {
|
|
2202
|
+
return textResult(_0x29fa76 instanceof Error ? _0x29fa76['message'] : 'create_tasks\x20failed', !![]);
|
|
2230
2203
|
}
|
|
2231
|
-
}),
|
|
2232
|
-
'channel':
|
|
2233
|
-
'task_numbers':
|
|
2234
|
-
'subtask_numbers':
|
|
2235
|
-
'message_ids':
|
|
2236
|
-
'evidence':
|
|
2237
|
-
'create_thread':
|
|
2238
|
-
'create_task':
|
|
2239
|
-
}))[
|
|
2240
|
-
'idempotency_key':
|
|
2241
|
-
}, async
|
|
2242
|
-
const
|
|
2204
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x4f41a7), _0x475033(_0x2365e7._0x1f2ea8), {
|
|
2205
|
+
'channel': _0x17fc8e[_0x475033(_0x2365e7._0x532c5f)](),
|
|
2206
|
+
'task_numbers': _0x17fc8e[_0x475033(0xff)](_0x17fc8e[_0x475033(0x126)]())[_0x475033(0x25a)](),
|
|
2207
|
+
'subtask_numbers': _0x17fc8e[_0x475033(_0x2365e7._0xe766d0)](_0x17fc8e[_0x475033(_0x2365e7._0xd282cf)]())[_0x475033(_0x2365e7._0x48b38f)](),
|
|
2208
|
+
'message_ids': _0x17fc8e[_0x475033(_0x2365e7._0xe766d0)](_0x17fc8e['string']())[_0x475033(_0x2365e7._0x317379)](),
|
|
2209
|
+
'evidence': _0x17fc8e[_0x475033(0x230)](_0x17fc8e[_0x475033(0x1f2)](), _0x17fc8e[_0x475033(0x242)]({
|
|
2210
|
+
'create_thread': _0x17fc8e[_0x475033(_0x2365e7._0x44764f)]()[_0x475033(0x25a)](),
|
|
2211
|
+
'create_task': _0x17fc8e[_0x475033(0x1fb)]()['optional']()
|
|
2212
|
+
}))[_0x475033(0x25a)](),
|
|
2213
|
+
'idempotency_key': _0x17fc8e[_0x475033(0x1f2)]()[_0x475033(0x25a)]()
|
|
2214
|
+
}, async _0x59b5 => {
|
|
2215
|
+
const _0x74b101 = _0x475033;
|
|
2243
2216
|
try {
|
|
2244
|
-
return textResult(await
|
|
2245
|
-
} catch (
|
|
2246
|
-
return textResult(
|
|
2217
|
+
return textResult(await _0x4eeec5[_0x74b101(0x167)](_0x59b5));
|
|
2218
|
+
} catch (_0x44760e) {
|
|
2219
|
+
return textResult(_0x44760e instanceof Error ? _0x44760e[_0x74b101(_0x9ed0c1._0x16a271)] : _0x74b101(_0x9ed0c1._0x37c00b), !![]);
|
|
2247
2220
|
}
|
|
2248
|
-
}),
|
|
2249
|
-
'channel':
|
|
2250
|
-
'task_number':
|
|
2251
|
-
'subtask_number':
|
|
2252
|
-
'idempotency_key':
|
|
2253
|
-
}, async
|
|
2254
|
-
const
|
|
2221
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x411cba), _0x475033(_0x2365e7._0x3d86b7), {
|
|
2222
|
+
'channel': _0x17fc8e[_0x475033(_0x2365e7._0x37920d)](),
|
|
2223
|
+
'task_number': _0x17fc8e[_0x475033(0x126)](),
|
|
2224
|
+
'subtask_number': _0x17fc8e[_0x475033(_0x2365e7._0x37087f)]()[_0x475033(_0x2365e7._0x5b871c)](),
|
|
2225
|
+
'idempotency_key': _0x17fc8e[_0x475033(_0x2365e7._0x532c5f)]()[_0x475033(0x25a)]()
|
|
2226
|
+
}, async _0x385321 => {
|
|
2227
|
+
const _0x186dc7 = _0x475033;
|
|
2255
2228
|
try {
|
|
2256
|
-
return textResult(await
|
|
2257
|
-
} catch (
|
|
2258
|
-
return textResult(
|
|
2229
|
+
return textResult(await _0x4eeec5[_0x186dc7(0x1d6)](_0x385321));
|
|
2230
|
+
} catch (_0x1c252e) {
|
|
2231
|
+
return textResult(_0x1c252e instanceof Error ? _0x1c252e[_0x186dc7(_0x4bf2f6._0x1a39c9)] : _0x186dc7(0x25f), !![]);
|
|
2259
2232
|
}
|
|
2260
|
-
}),
|
|
2261
|
-
'channel':
|
|
2262
|
-
'task_number':
|
|
2263
|
-
'subtask_number':
|
|
2264
|
-
'status':
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2233
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x19751a), _0x475033(_0x2365e7._0x127b70), {
|
|
2234
|
+
'channel': _0x17fc8e[_0x475033(_0x2365e7._0x4d4bfb)](),
|
|
2235
|
+
'task_number': _0x17fc8e[_0x475033(_0x2365e7._0x33c323)](),
|
|
2236
|
+
'subtask_number': _0x17fc8e[_0x475033(0x126)]()[_0x475033(0x25a)](),
|
|
2237
|
+
'status': _0x17fc8e[_0x475033(0x21e)]([
|
|
2238
|
+
_0x475033(0x1a4),
|
|
2239
|
+
_0x475033(0x1c7),
|
|
2240
|
+
_0x475033(_0x2365e7._0x327e72),
|
|
2268
2241
|
'done'
|
|
2269
2242
|
]),
|
|
2270
|
-
'idempotency_key':
|
|
2271
|
-
}, async
|
|
2272
|
-
const
|
|
2243
|
+
'idempotency_key': _0x17fc8e[_0x475033(_0x2365e7._0x4d4bfb)]()[_0x475033(_0x2365e7._0x2419f9)]()
|
|
2244
|
+
}, async _0x9e69c8 => {
|
|
2245
|
+
const _0x21d096 = _0x475033;
|
|
2273
2246
|
try {
|
|
2274
|
-
return textResult(await
|
|
2275
|
-
} catch (
|
|
2276
|
-
return textResult(
|
|
2247
|
+
return textResult(await _0x4eeec5[_0x21d096(0x239)](_0x9e69c8));
|
|
2248
|
+
} catch (_0x392135) {
|
|
2249
|
+
return textResult(_0x392135 instanceof Error ? _0x392135[_0x21d096(_0x53e573._0x2eb3d0)] : 'update_task_status\x20failed', !![]);
|
|
2277
2250
|
}
|
|
2278
|
-
}),
|
|
2279
|
-
'channel':
|
|
2280
|
-
'file_path':
|
|
2281
|
-
}, async
|
|
2282
|
-
const
|
|
2251
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x227b23), _0x475033(0x14b), {
|
|
2252
|
+
'channel': _0x17fc8e['string'](),
|
|
2253
|
+
'file_path': _0x17fc8e[_0x475033(_0x2365e7._0x532c5f)]()
|
|
2254
|
+
}, async _0x431689 => {
|
|
2255
|
+
const _0x2f597d = _0x475033;
|
|
2283
2256
|
try {
|
|
2284
|
-
return textResult(await
|
|
2285
|
-
} catch (
|
|
2286
|
-
return textResult(
|
|
2257
|
+
return textResult(await _0x4eeec5[_0x2f597d(_0x10c697._0x1f6f5b)](_0x431689));
|
|
2258
|
+
} catch (_0x2a266c) {
|
|
2259
|
+
return textResult(_0x2a266c instanceof Error ? _0x2a266c[_0x2f597d(_0x10c697._0x19c81f)] : 'upload_file\x20failed', !![]);
|
|
2287
2260
|
}
|
|
2288
|
-
}),
|
|
2289
|
-
const
|
|
2261
|
+
}), _0x3de6b5[_0x475033(0x112)]('view_file', _0x475033(_0x2365e7._0x1f2468), { 'attachment_id': _0x17fc8e[_0x475033(_0x2365e7._0x37920d)]() }, async _0x423304 => {
|
|
2262
|
+
const _0x95c55a = _0x475033;
|
|
2290
2263
|
try {
|
|
2291
|
-
return textResult(await
|
|
2292
|
-
} catch (
|
|
2293
|
-
return textResult(
|
|
2264
|
+
return textResult(await _0x4eeec5[_0x95c55a(_0x502cfe._0x5da837)](_0x423304));
|
|
2265
|
+
} catch (_0x4b7de7) {
|
|
2266
|
+
return textResult(_0x4b7de7 instanceof Error ? _0x4b7de7[_0x95c55a(0x223)] : _0x95c55a(0x23e), !![]);
|
|
2294
2267
|
}
|
|
2295
|
-
}),
|
|
2296
|
-
const
|
|
2268
|
+
}), _0x3de6b5['tool'](_0x475033(_0x2365e7._0x5843fb), _0x475033(0x1bc), { 'work_key': _0x17fc8e[_0x475033(0x1f2)]() }, async _0x25ae3b => {
|
|
2269
|
+
const _0x5a24bd = _0x475033;
|
|
2297
2270
|
try {
|
|
2298
|
-
return textResult(await
|
|
2299
|
-
} catch (
|
|
2300
|
-
return textResult(
|
|
2271
|
+
return textResult(await _0x4eeec5[_0x5a24bd(_0x5c7f7b._0x4b6f63)](_0x25ae3b));
|
|
2272
|
+
} catch (_0x21ebf5) {
|
|
2273
|
+
return textResult(_0x21ebf5 instanceof Error ? _0x21ebf5['message'] : _0x5a24bd(0x1c6), !![]);
|
|
2301
2274
|
}
|
|
2302
|
-
}),
|
|
2303
|
-
const
|
|
2275
|
+
}), _0x3de6b5[_0x475033(_0x2365e7._0x38574c)](_0x475033(0x195), _0x475033(0x117), { 'work_key': _0x17fc8e[_0x475033(0x1f2)]() }, async _0xda654e => {
|
|
2276
|
+
const _0x5e1bcc = _0x475033;
|
|
2304
2277
|
try {
|
|
2305
|
-
return textResult(await
|
|
2306
|
-
} catch (
|
|
2307
|
-
return textResult(
|
|
2278
|
+
return textResult(await _0x4eeec5[_0x5e1bcc(_0x8bfb7._0x59c973)](_0xda654e));
|
|
2279
|
+
} catch (_0x4c33fd) {
|
|
2280
|
+
return textResult(_0x4c33fd instanceof Error ? _0x4c33fd[_0x5e1bcc(0x223)] : _0x5e1bcc(0x17e), !![]);
|
|
2308
2281
|
}
|
|
2309
|
-
}),
|
|
2310
|
-
'work_key':
|
|
2311
|
-
'reason':
|
|
2312
|
-
}, async
|
|
2313
|
-
const
|
|
2282
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x4962f7), _0x475033(_0x2365e7._0x20d1cc), {
|
|
2283
|
+
'work_key': _0x17fc8e[_0x475033(0x1f2)](),
|
|
2284
|
+
'reason': _0x17fc8e[_0x475033(_0x2365e7._0x37920d)]()
|
|
2285
|
+
}, async _0x29517b => {
|
|
2286
|
+
const _0x10ec33 = _0x475033;
|
|
2314
2287
|
try {
|
|
2315
|
-
return textResult(await
|
|
2316
|
-
} catch (
|
|
2317
|
-
return textResult(
|
|
2288
|
+
return textResult(await _0x4eeec5['escalate_to_main'](_0x29517b));
|
|
2289
|
+
} catch (_0x1d1836) {
|
|
2290
|
+
return textResult(_0x1d1836 instanceof Error ? _0x1d1836[_0x10ec33(0x223)] : _0x10ec33(_0x1f52ff._0x36f183), !![]);
|
|
2318
2291
|
}
|
|
2319
|
-
}),
|
|
2320
|
-
const
|
|
2292
|
+
}), _0x20fb93?.[_0x475033(0x18e)] && _0x3de6b5[_0x475033(0x112)]('mark_waiting_input', _0x475033(0x206), { 'work_key': _0x17fc8e[_0x475033(0x1f2)]() }, async _0x3e3a28 => {
|
|
2293
|
+
const _0x343afa = _0x475033;
|
|
2321
2294
|
try {
|
|
2322
|
-
return textResult(await
|
|
2323
|
-
} catch (
|
|
2324
|
-
return textResult(
|
|
2295
|
+
return textResult(await _0x4eeec5[_0x343afa(0x131)](_0x3e3a28));
|
|
2296
|
+
} catch (_0x177840) {
|
|
2297
|
+
return textResult(_0x177840 instanceof Error ? _0x177840[_0x343afa(_0x36f891._0x2736bf)] : _0x343afa(_0x36f891._0x325a17), !![]);
|
|
2325
2298
|
}
|
|
2326
2299
|
});
|
|
2327
2300
|
}
|
|
2328
|
-
async function createChatBridgeServer(
|
|
2329
|
-
const
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
},
|
|
2333
|
-
'name':
|
|
2334
|
-
'version':
|
|
2335
|
-
}),
|
|
2336
|
-
return await registerChatBridgeTools(
|
|
2337
|
-
'handlers':
|
|
2338
|
-
'server':
|
|
2301
|
+
async function createChatBridgeServer(_0x410c8b) {
|
|
2302
|
+
const _0x180c95 = {
|
|
2303
|
+
_0x4d7efa: 0x1c2,
|
|
2304
|
+
_0x3250fb: 0x18e
|
|
2305
|
+
}, _0x15aec0 = _0x2980fe, {McpServer: _0x590775} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x4e2a2e = new _0x590775({
|
|
2306
|
+
'name': _0x15aec0(0x1a0),
|
|
2307
|
+
'version': _0x15aec0(_0x180c95._0x4d7efa)
|
|
2308
|
+
}), _0x9d9067 = createChatBridgeHandlers(_0x410c8b);
|
|
2309
|
+
return await registerChatBridgeTools(_0x4e2a2e, _0x9d9067, { 'workerMode': _0x410c8b[_0x15aec0(_0x180c95._0x3250fb)] }), {
|
|
2310
|
+
'handlers': _0x9d9067,
|
|
2311
|
+
'server': _0x4e2a2e
|
|
2339
2312
|
};
|
|
2340
2313
|
}
|
|
2341
|
-
function readFlag(
|
|
2342
|
-
const
|
|
2343
|
-
if (
|
|
2314
|
+
function readFlag(_0x59d62c, _0x8261a) {
|
|
2315
|
+
const _0x5a6d5c = _0x2980fe, _0x33ecfb = _0x59d62c[_0x5a6d5c(0x1e2)](_0x8261a);
|
|
2316
|
+
if (_0x33ecfb === -0x1)
|
|
2344
2317
|
return void 0x0;
|
|
2345
|
-
return
|
|
2318
|
+
return _0x59d62c[_0x33ecfb + 0x1];
|
|
2346
2319
|
}
|
|
2347
|
-
function parseChatBridgeArgs(
|
|
2348
|
-
const
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
}, _0x4a3291 = _0x3cf5af, _0x1261b3 = readFlag(_0x32cd20, _0x4a3291(0x1f1)), _0x2d8d8d = readFlag(_0x32cd20, '--attachment-cache-dir'), _0x28c984 = readFlag(_0x32cd20, _0x4a3291(0x1cb)), _0x1327af = readFlag(_0x32cd20, '--initial-last-seen-seq'), _0x1157db = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x218f05)) ?? 'http://localhost:8121', _0x404416 = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x43eae9)), _0x19cda7 = readFlag(_0x32cd20, _0x4a3291(_0x34da4b._0x28492d)), _0x339943 = readFlag(_0x32cd20, '--worker-mode-enabled'), _0xb07ab0 = readFlag(_0x32cd20, _0x4a3291(0x294)), _0x3fa05f = readFlag(_0x32cd20, _0x4a3291(0x1a9)), _0x4707a5 = _0x32cd20[_0x4a3291(_0x34da4b._0xbff7f3)]('--worker-mode'), _0x38fbc6 = _0x1327af === void 0x0 ? void 0x0 : Number[_0x4a3291(_0x34da4b._0xc39d86)](_0x1327af, 0xa);
|
|
2356
|
-
if (!_0x1261b3)
|
|
2320
|
+
function parseChatBridgeArgs(_0x18b40d) {
|
|
2321
|
+
const _0x244ef7 = {
|
|
2322
|
+
_0x2a215e: 0x227,
|
|
2323
|
+
_0xed75cc: 0x1c4,
|
|
2324
|
+
_0x573339: 0x222,
|
|
2325
|
+
_0x5c85bf: 0x207
|
|
2326
|
+
}, _0x373d6d = _0x2980fe, _0x3e476b = readFlag(_0x18b40d, '--agent-id'), _0x3dba77 = readFlag(_0x18b40d, '--attachment-cache-dir'), _0x426b63 = readFlag(_0x18b40d, _0x373d6d(_0x244ef7._0x2a215e)), _0x232302 = readFlag(_0x18b40d, _0x373d6d(0x25c)), _0xe33781 = readFlag(_0x18b40d, '--server-url') ?? _0x373d6d(0x1c9), _0x43b061 = readFlag(_0x18b40d, _0x373d6d(_0x244ef7._0xed75cc)), _0x2ec676 = readFlag(_0x18b40d, '--session-id'), _0xd879ba = readFlag(_0x18b40d, _0x373d6d(0x221)), _0x45a267 = readFlag(_0x18b40d, _0x373d6d(0x265)), _0x590303 = readFlag(_0x18b40d, _0x373d6d(_0x244ef7._0x573339)), _0x380af3 = _0x18b40d[_0x373d6d(0x255)]('--worker-mode'), _0x1996ea = _0x232302 === void 0x0 ? void 0x0 : Number['parseInt'](_0x232302, 0xa);
|
|
2327
|
+
if (!_0x3e476b)
|
|
2357
2328
|
throw new Error('Missing\x20--agent-id');
|
|
2358
|
-
if (!
|
|
2359
|
-
throw new Error(
|
|
2360
|
-
if (
|
|
2329
|
+
if (!_0x426b63)
|
|
2330
|
+
throw new Error(_0x373d6d(_0x244ef7._0x5c85bf));
|
|
2331
|
+
if (_0x232302 !== void 0x0 && (_0x1996ea === void 0x0 || !Number[_0x373d6d(0x213)](_0x1996ea) || _0x1996ea < 0x0))
|
|
2361
2332
|
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2362
2333
|
return {
|
|
2363
|
-
'agentId':
|
|
2364
|
-
'attachmentCacheDir':
|
|
2365
|
-
'daemonApiKey':
|
|
2366
|
-
'daemonLocalUrl':
|
|
2367
|
-
'initialLastSeenSeq':
|
|
2368
|
-
'sessionId':
|
|
2369
|
-
'serverUrl':
|
|
2370
|
-
'workerModeEnabled':
|
|
2371
|
-
'workerSessionId':
|
|
2372
|
-
'workerThreadTarget':
|
|
2373
|
-
'workerMode':
|
|
2334
|
+
'agentId': _0x3e476b,
|
|
2335
|
+
'attachmentCacheDir': _0x3dba77,
|
|
2336
|
+
'daemonApiKey': _0x426b63,
|
|
2337
|
+
'daemonLocalUrl': _0x43b061,
|
|
2338
|
+
'initialLastSeenSeq': _0x1996ea,
|
|
2339
|
+
'sessionId': _0x2ec676,
|
|
2340
|
+
'serverUrl': _0xe33781,
|
|
2341
|
+
'workerModeEnabled': _0xd879ba === void 0x0 ? void 0x0 : _0xd879ba !== 'false',
|
|
2342
|
+
'workerSessionId': _0x45a267,
|
|
2343
|
+
'workerThreadTarget': _0x590303,
|
|
2344
|
+
'workerMode': _0x380af3
|
|
2374
2345
|
};
|
|
2375
2346
|
}
|
|
2376
|
-
async function runChatBridgeCli(
|
|
2377
|
-
const
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
'
|
|
2385
|
-
'
|
|
2386
|
-
'
|
|
2387
|
-
'daemonLocalUrl': _0x3c36b9[_0x24627d(_0x34165d._0x207923)],
|
|
2347
|
+
async function runChatBridgeCli(_0x120121) {
|
|
2348
|
+
const _0x3cbd0a = {
|
|
2349
|
+
_0x3fe2b9: 0x269,
|
|
2350
|
+
_0x2d8f70: 0x1c5,
|
|
2351
|
+
_0x32dc2a: 0x191,
|
|
2352
|
+
_0x51bdac: 0x266
|
|
2353
|
+
}, _0x3c6c63 = _0x2980fe, _0x11ef2f = parseChatBridgeArgs(_0x120121), {StdioServerTransport: _0x3ec055} = await import(_0x3c6c63(_0x3cbd0a._0x3fe2b9)), _0x5a811f = createInternalAgentClient(_0x11ef2f), _0x44378a = createAttachmentCache({ 'cacheDir': _0x11ef2f['attachmentCacheDir'] }), _0x4a228c = await createChatBridgeServer({
|
|
2354
|
+
'agentId': _0x11ef2f[_0x3c6c63(0x1d3)],
|
|
2355
|
+
'attachmentCache': _0x44378a,
|
|
2356
|
+
'client': _0x5a811f,
|
|
2357
|
+
'daemonLocalUrl': _0x11ef2f[_0x3c6c63(_0x3cbd0a._0x2d8f70)],
|
|
2388
2358
|
'uploadPreparer': prepareUploadFile,
|
|
2389
|
-
'workerModeEnabled':
|
|
2390
|
-
'workerMode':
|
|
2391
|
-
'workerThreadTarget':
|
|
2359
|
+
'workerModeEnabled': _0x11ef2f[_0x3c6c63(_0x3cbd0a._0x32dc2a)],
|
|
2360
|
+
'workerMode': _0x11ef2f[_0x3c6c63(0x18e)],
|
|
2361
|
+
'workerThreadTarget': _0x11ef2f[_0x3c6c63(0x185)]
|
|
2392
2362
|
});
|
|
2393
|
-
await
|
|
2363
|
+
await _0x4a228c[_0x3c6c63(0x237)][_0x3c6c63(_0x3cbd0a._0x51bdac)](new _0x3ec055());
|
|
2394
2364
|
}
|
|
2395
|
-
var executedAsEntry = process[
|
|
2396
|
-
executedAsEntry && await runChatBridgeCli(process[
|
|
2365
|
+
var executedAsEntry = process[_0x2980fe(0x138)][0x1] ? import.meta.url === pathToFileURL(process[_0x2980fe(0x138)][0x1])[_0x2980fe(0x148)] : ![];
|
|
2366
|
+
executedAsEntry && await runChatBridgeCli(process[_0x2980fe(0x138)][_0x2980fe(0x192)](0x2));
|
|
2397
2367
|
export {
|
|
2398
2368
|
createChatBridgeHandlers,
|
|
2399
2369
|
createChatBridgeServer,
|