@dscord/daemon 0.1.61 → 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 +2155 -2192
- package/dist/index.js +9750 -9525
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_0x35bc8b: 0x2e1,
|
|
10
|
-
_0x409d5b: 0x1f2
|
|
11
|
-
}, _0x5c3c54 = _0x41c3, _0x25f892 = _0xacd2a3();
|
|
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();
|
|
12
9
|
while (!![]) {
|
|
13
10
|
try {
|
|
14
|
-
const
|
|
15
|
-
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)
|
|
16
13
|
break;
|
|
17
14
|
else
|
|
18
|
-
|
|
19
|
-
} catch (
|
|
20
|
-
|
|
15
|
+
_0x1707e6['push'](_0x1707e6['shift']());
|
|
16
|
+
} catch (_0x5872c3) {
|
|
17
|
+
_0x1707e6['push'](_0x1707e6['shift']());
|
|
21
18
|
}
|
|
22
19
|
}
|
|
23
|
-
}(
|
|
20
|
+
}(_0x2631, 0x70c27));
|
|
24
21
|
import { pathToFileURL } from 'node:url';
|
|
25
22
|
import {
|
|
26
23
|
mkdir,
|
|
@@ -30,2377 +27,2343 @@ import {
|
|
|
30
27
|
writeFile
|
|
31
28
|
} from 'node:fs/promises';
|
|
32
29
|
import { homedir } from 'node:os';
|
|
33
|
-
import
|
|
30
|
+
import _0x230848 from 'node:path';
|
|
34
31
|
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
35
|
-
'.csv':
|
|
36
|
-
'.gif':
|
|
37
|
-
'.jpeg':
|
|
38
|
-
'.jpg':
|
|
39
|
-
'.json':
|
|
40
|
-
'.md':
|
|
41
|
-
'.pdf':
|
|
42
|
-
'.png':
|
|
43
|
-
'.svg':
|
|
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),
|
|
44
41
|
'.txt': 'text/plain',
|
|
45
|
-
'.webp':
|
|
46
|
-
'.xml':
|
|
47
|
-
'.zip':
|
|
42
|
+
'.webp': _0x2980fe(0x238),
|
|
43
|
+
'.xml': _0x2980fe(0x23d),
|
|
44
|
+
'.zip': 'application/zip'
|
|
48
45
|
};
|
|
49
|
-
function guessContentType(
|
|
50
|
-
const
|
|
51
|
-
|
|
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
52
|
}
|
|
53
|
-
function safeFilename(
|
|
54
|
-
|
|
53
|
+
function safeFilename(_0x295423) {
|
|
54
|
+
const _0x442e82 = { _0x5b63e7: 0x201 }, _0x5ba6a9 = _0x2980fe;
|
|
55
|
+
return _0x295423[_0x5ba6a9(_0x442e82._0x5b63e7)](/[\\/]/g, '-');
|
|
55
56
|
}
|
|
56
|
-
function extensionFor(
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
_0x48f1e4: 0x18f
|
|
60
|
-
}, _0x4868e8 = _0x28aee3, _0x29663a = Object[_0x4868e8(_0x4c99da._0x2775c8)](MIME_BY_EXTENSION)[_0x4868e8(0x274)](([, _0x2a02f8]) => _0x2a02f8 === _0x328e7b);
|
|
61
|
-
return _0x29663a?.[0x0] ?? _0x4868e8(_0x4c99da._0x48f1e4);
|
|
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);
|
|
62
60
|
}
|
|
63
|
-
async function prepareUploadFile(
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
if (!
|
|
71
|
-
throw new Error(
|
|
72
|
-
const
|
|
73
|
-
if (!
|
|
74
|
-
throw new Error(
|
|
75
|
-
const
|
|
76
|
-
if (
|
|
77
|
-
throw new Error(
|
|
78
|
-
const
|
|
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);
|
|
79
77
|
return {
|
|
80
|
-
'contentBase64':
|
|
81
|
-
'contentType': guessContentType(
|
|
82
|
-
'filename':
|
|
83
|
-
'sizeBytes':
|
|
78
|
+
'contentBase64': _0x44e0b1[_0x4225da(_0x20dd48._0x5ad7e5)]('base64'),
|
|
79
|
+
'contentType': guessContentType(_0x278a64),
|
|
80
|
+
'filename': _0x278a64,
|
|
81
|
+
'sizeBytes': _0x5d66ad['size']
|
|
84
82
|
};
|
|
85
83
|
}
|
|
86
|
-
function createAttachmentCache(
|
|
87
|
-
const
|
|
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));
|
|
88
94
|
return {
|
|
89
|
-
'cacheDir':
|
|
90
|
-
async 'findCachedPath'(
|
|
91
|
-
const
|
|
92
|
-
await mkdir(
|
|
93
|
-
const
|
|
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;
|
|
95
101
|
},
|
|
96
|
-
async 'save'(
|
|
97
|
-
const
|
|
98
|
-
await mkdir(
|
|
99
|
-
const
|
|
100
|
-
return await writeFile(
|
|
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;
|
|
101
107
|
}
|
|
102
108
|
};
|
|
103
109
|
}
|
|
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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
'
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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',
|
|
1130
|
+
'C3bSAxq',
|
|
1131
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
175
1132
|
'twLZC2LUzYaTlwrHzw1VBI1HCgKTA2v5',
|
|
1133
|
+
'lMjPBG',
|
|
1134
|
+
'Bwv0yq',
|
|
1135
|
+
'BgLZDf90yxnRCW',
|
|
1136
|
+
'DgL0Bgu',
|
|
176
1137
|
'xsba',
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'C2nOzwr1BgvKrM9Y',
|
|
181
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
182
|
-
'ywDLBNq',
|
|
183
|
-
'ktSGz290ignOyw5UzwW9',
|
|
184
|
-
'yxr0ywnOBwvUDeLKCW',
|
|
185
|
-
'iIbUB3qGzM91BMq',
|
|
186
|
-
'yxv0BZO',
|
|
187
|
-
'mJbStML4rLe',
|
|
188
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
189
|
-
'BgLZDf9Zzxj2zxi',
|
|
190
|
-
'DMLLD19MAwXLigzHAwXLza',
|
|
191
|
-
'DhjPBq',
|
|
192
|
-
'Dg9VBa',
|
|
193
|
-
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
194
|
-
'ndK1ntm0BMrRseTf',
|
|
195
|
-
'igLUia',
|
|
196
|
-
'y2HHBM5LBe5HBwu',
|
|
197
|
-
'yM9KEvrLEhq',
|
|
198
|
-
'AhvTyw4',
|
|
199
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
200
|
-
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
201
|
-
'Aw5KzxHpzG',
|
|
202
|
-
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
203
|
-
'y3vYC29Y',
|
|
204
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1138
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1139
|
+
'Agv4',
|
|
1140
|
+
'D29YA2vYrgLZCg9ZAxrPB24',
|
|
205
1141
|
'Bwf0y2Hoyw1L',
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
1142
|
+
'DgHYzwfK',
|
|
1143
|
+
'DxnLCG',
|
|
1144
|
+
'AxngAw5PDgu',
|
|
1145
|
+
'DgfZA3m',
|
|
1146
|
+
'lsba',
|
|
1147
|
+
'zgvZy3jPyMu',
|
|
1148
|
+
'y29UDgvUDc10ExbL',
|
|
1149
|
+
'yxr0ywnOBwvUDeLKCW',
|
|
1150
|
+
'igTPBMq9',
|
|
1151
|
+
'ihn0yxr1CZ0',
|
|
1152
|
+
'z2v0',
|
|
1153
|
+
'D3nZoG',
|
|
1154
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1155
|
+
'zw51Bq',
|
|
1156
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1157
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1158
|
+
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
1159
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1160
|
+
'BwvZC2fNzq',
|
|
1161
|
+
'ywjVCNrLza',
|
|
1162
|
+
'l3n0yxj0',
|
|
1163
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1164
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1165
|
+
'w3rHCMDLDd0',
|
|
1166
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1167
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1168
|
+
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
1169
|
+
'ywXS',
|
|
1170
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1171
|
+
'ywrK',
|
|
1172
|
+
'ihrPBwu9',
|
|
1173
|
+
'CMvJB3jK',
|
|
210
1174
|
'vgfZAYa',
|
|
211
|
-
'
|
|
1175
|
+
'AxnjBNrLz2vY',
|
|
1176
|
+
'ChvIBgLJ',
|
|
1177
|
+
'CgfYC2u',
|
|
1178
|
+
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
1179
|
+
'C29Tzq',
|
|
1180
|
+
'C2vYDMvY',
|
|
1181
|
+
'Aw1Hz2uVD2vICa',
|
|
1182
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1183
|
+
'DMLLD19MAwXL',
|
|
1184
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1185
|
+
'BwfW',
|
|
1186
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1187
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1188
|
+
'C2vUze1LC3nHz2u',
|
|
1189
|
+
'AxngAwXL',
|
|
1190
|
+
'zxH0BMfTzq',
|
|
1191
|
+
'B2jQzwn0',
|
|
1192
|
+
'CxvLDwvK',
|
|
1193
|
+
'v29YA2vYia',
|
|
1194
|
+
'ig1ZzZ0',
|
|
1195
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1196
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1197
|
+
'Dgv4Dc9JC3y',
|
|
1198
|
+
'ywDLBNq',
|
|
212
1199
|
'BwvZC2fNzxm',
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'sfruuca',
|
|
219
|
-
'yxbWBgLJyxrPB24VEMLW',
|
|
220
|
-
'ignSywLTzwq',
|
|
1200
|
+
'AgfZ',
|
|
1201
|
+
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
1202
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1203
|
+
'zgLZCg9ZAxrPB24',
|
|
1204
|
+
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
221
1205
|
'BwvTyMvYCW',
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
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',
|
|
226
1233
|
'DxbSB2fKx2zPBgu',
|
|
227
|
-
'
|
|
1234
|
+
'y2HHBM5LBhm',
|
|
1235
|
+
'Dgv4Da',
|
|
1236
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1237
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1238
|
+
'zw50CMLLCW',
|
|
1239
|
+
'zMLSDgvY',
|
|
1240
|
+
'DgfZAY0',
|
|
228
1241
|
'yMvMB3jL',
|
|
1242
|
+
'C2vUzf9TzxnZywDL',
|
|
1243
|
+
'y2fJAgveAxi',
|
|
1244
|
+
'DgHYzwfKtNvTyMvY',
|
|
1245
|
+
'khvUA25VD24P',
|
|
1246
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1247
|
+
'l3nLBMq',
|
|
1248
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1249
|
+
'zg9Uzq',
|
|
1250
|
+
'yM9KEvrLEhq',
|
|
1251
|
+
'ogT2s05OvW',
|
|
1252
|
+
'AwrSzq',
|
|
229
1253
|
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
230
|
-
'
|
|
231
|
-
'
|
|
1254
|
+
'ChvZAa',
|
|
1255
|
+
'Ahr0CdO',
|
|
1256
|
+
'DhjPBq',
|
|
1257
|
+
'BwvZC2fNzuLK',
|
|
1258
|
+
'lsaJ',
|
|
1259
|
+
'yxjYyxK',
|
|
1260
|
+
'r0vu',
|
|
1261
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
232
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',
|
|
1277
|
+
'Dg9tDhjPBMC',
|
|
1278
|
+
'Dg9VBa',
|
|
1279
|
+
'zgLNzxn0',
|
|
1280
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1281
|
+
'Cgf5Bg9HzePZB24',
|
|
1282
|
+
'BMv4Den1CNnVCG',
|
|
1283
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
1284
|
+
'y29UDgvUDa',
|
|
1285
|
+
'CNvUBMLUzW',
|
|
1286
|
+
'iYmJiefNzw50CW',
|
|
1287
|
+
'zgvZDhjVEwvK',
|
|
1288
|
+
'w3nLCt0',
|
|
1289
|
+
'BgLTAxq',
|
|
1290
|
+
'igLUia',
|
|
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',
|
|
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',
|
|
1339
|
+
'zMLUza',
|
|
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',
|
|
1363
|
+
'y2XHAw1FDgfZA3m',
|
|
1364
|
+
'C2L6zq',
|
|
1365
|
+
'y2HHBM5LBeLK',
|
|
1366
|
+
'ANnVBG',
|
|
233
1367
|
'6k+35Rgcia',
|
|
234
|
-
'
|
|
1368
|
+
'AhvTyw4',
|
|
1369
|
+
'lIbnzxnZywDLieLeoIa',
|
|
1370
|
+
'CMvZDwX0CW',
|
|
1371
|
+
'DgfZAW',
|
|
1372
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1373
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1374
|
+
'AhvTyw5Z',
|
|
235
1375
|
'y2XHAw1uyxnRCW',
|
|
236
|
-
'
|
|
237
|
-
'
|
|
1376
|
+
'C2vZC2LVBKLK',
|
|
1377
|
+
'D29YA2vYsgfUzg9MzG',
|
|
1378
|
+
'y2XPzw50',
|
|
1379
|
+
'DxrMoa',
|
|
1380
|
+
'DgfZA051BwjLCG',
|
|
1381
|
+
'CM9VDe1LC3nHz2vjza',
|
|
1382
|
+
'rg93BMXVywrLzcb0BZOG',
|
|
1383
|
+
'C2vYDMvYtMfTzq',
|
|
1384
|
+
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
1385
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1386
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
238
1387
|
'Bwf4',
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
1388
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1389
|
+
'l3rHC2TZpW',
|
|
1390
|
+
'zg0T',
|
|
1391
|
+
'Ahr0Chm6',
|
|
1392
|
+
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1393
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1394
|
+
'BgLZDf9Zzxj2zxi',
|
|
1395
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1396
|
+
'CMvXDwvZDfvYBa',
|
|
1397
|
+
'zMv0y2HjBxbS',
|
|
1398
|
+
'DxjNzw50',
|
|
1399
|
+
'Aw1Hz2uVANbLzW',
|
|
243
1400
|
'cGOTls0G',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
1401
|
+
'CMvZCg9UC2u',
|
|
1402
|
+
'D29YA2vYtw9Kzq',
|
|
1403
|
+
'ywDLBNrZ',
|
|
1404
|
+
'l3vWBg9Hza',
|
|
1405
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1406
|
+
'C2XPy2u',
|
|
1407
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
1408
|
+
'CgfYDgLJAxbHBNq',
|
|
1409
|
+
'CgfYA193B3jRzxi',
|
|
1410
|
+
'xsbaC3LZDgvToIbBy2XHAw0TAgfUzg9MzL0G',
|
|
246
1411
|
'l3nLCNzLCG',
|
|
247
|
-
'
|
|
248
|
-
'
|
|
249
|
-
'ls1ZzxnZAw9UlwLK',
|
|
250
|
-
'y29UDgvUDc10ExbL',
|
|
251
|
-
'y2HHBM5LBeLK',
|
|
252
|
-
'C2HHmJu2',
|
|
253
|
-
'D3m6',
|
|
254
|
-
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
255
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
256
|
-
'zMfSC2u',
|
|
1412
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
1413
|
+
'yxr0ywnOBwvUDhm',
|
|
257
1414
|
'BgLZDf9Zzxj2zxiGzMfPBgvK',
|
|
1415
|
+
'BwvKAxvT',
|
|
1416
|
+
'ywjVCNq',
|
|
1417
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1418
|
+
'C2vYDMvYvxjS',
|
|
1419
|
+
'yM9KEu1HCMTKB3DU',
|
|
1420
|
+
'y2HHDa',
|
|
1421
|
+
'z2v0twLUDxrLCW',
|
|
1422
|
+
'CMvHzeHPC3rVCNK',
|
|
1423
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1424
|
+
'Dg9KBW',
|
|
258
1425
|
'zg06',
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'C3rVCe1HAw4',
|
|
263
|
-
'zMLSDgvY',
|
|
264
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
265
|
-
'C2XPy2u',
|
|
266
|
-
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
267
|
-
'ywDNCMvNyxrLswrZ',
|
|
268
|
-
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
269
|
-
'tM8GBMv3ig1LC3nHz2vZlG',
|
|
1426
|
+
'CMvHC29U',
|
|
1427
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1428
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
270
1429
|
'Dg9ju09tDhjPBMC',
|
|
271
|
-
'
|
|
272
|
-
'
|
|
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',
|
|
1444
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1445
|
+
'sfruuca',
|
|
1446
|
+
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
1447
|
+
'DgfYz2v0zwruyxnR',
|
|
1448
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1449
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmV',
|
|
1450
|
+
'yxbWBgLJyxrPB24VCgrM',
|
|
1451
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1452
|
+
'CMvZDwX0sNnVBG',
|
|
1453
|
+
'l3rHC2TZl3vUy2XHAw0',
|
|
1454
|
+
'mc4WlJa',
|
|
1455
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1456
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
273
1457
|
'zgfLBw9Utg9JywXvCMW',
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
'
|
|
291
|
-
'
|
|
292
|
-
'
|
|
293
|
-
'
|
|
294
|
-
'v29YA2vYici',
|
|
295
|
-
'zw50CMLLCW',
|
|
296
|
-
'y2HLy2TFBwvZC2fNzxm',
|
|
297
|
-
'CgfYA193B3jRzxi',
|
|
298
|
-
'mZq5nti2neDpuK9NDq',
|
|
299
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
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',
|
|
300
1478
|
'ihrVigXVywqGB2XKzxiGBwvZC2fNzxmUic0Tlq',
|
|
301
|
-
'
|
|
1479
|
+
'kgXLz2fJEsK',
|
|
1480
|
+
'zMLSzw5HBwu',
|
|
1481
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1482
|
+
'ywz0zxi',
|
|
1483
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1484
|
+
'ig1LC3nHz2u9',
|
|
1485
|
+
'C3rHCNrZv2L0Aa',
|
|
1486
|
+
'Aw5KzxHpzG',
|
|
1487
|
+
'y2HHBM5LBe5HBwu',
|
|
1488
|
+
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
302
1489
|
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
303
|
-
'
|
|
304
|
-
'
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
312
|
-
'yxbWBgLJyxrPB24VEg1S',
|
|
313
|
-
'C3vIDgfZA19UDw1IzxjZ',
|
|
314
|
-
'yxbWBgLJyxrPB24VCgrM',
|
|
315
|
-
'BwfW',
|
|
1490
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1491
|
+
'D3m6',
|
|
1492
|
+
'igf0DgfJAg1LBNq',
|
|
1493
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1494
|
+
'kg5VBMuP',
|
|
1495
|
+
'BMfTzq',
|
|
1496
|
+
'C3rHCNrLza',
|
|
1497
|
+
'C2vUzgvYtMfTzq',
|
|
316
1498
|
'C2v0',
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
322
|
-
'AgvHzgvYCW',
|
|
1499
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1500
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1501
|
+
'iYmGu2vYDMvYoIa',
|
|
1502
|
+
'C3rYAw5N',
|
|
1503
|
+
'C2LNBMfS',
|
|
323
1504
|
'l3rHC2TZl2nSywLT',
|
|
324
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
325
|
-
'pgvTChr5pG',
|
|
326
|
-
'C2vUze1LC3nHz2u',
|
|
327
|
-
's0iPcKf0DgfJAg1LBNqGsuq6ia',
|
|
328
|
-
'B3jPz2LUywXgAwXLBMfTzq',
|
|
329
|
-
'y2HPBgrYzw5eB25L',
|
|
330
|
-
'AxnjBNrLz2vY',
|
|
331
|
-
'Dw5JBgfPBv90yxnR',
|
|
332
|
-
'ioI/LowBNUs6HUMDNIbku09oiowtJEw6Lo+8Ihn0yxr1CZ0',
|
|
333
|
-
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
334
1505
|
'yxr0ywnOBwvUDeLK',
|
|
335
|
-
'z2v0',
|
|
336
|
-
'yxbWBgLJyxrPB24VANnVBG',
|
|
337
|
-
'r0vu',
|
|
338
|
-
'y2f0y2G',
|
|
339
|
-
'vgHYzwfKihrHCMDLDdOG',
|
|
340
|
-
'zgLZCg9ZAxrPB24',
|
|
341
|
-
'tM8GDgfZA3mGy3jLyxrLzc4',
|
|
342
|
-
'iJOGC3rHDhvZpq',
|
|
343
|
-
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
344
|
-
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
345
|
-
'C3rHCNrLza',
|
|
346
|
-
'DgHYzwfKx3rHCMDLDa',
|
|
347
|
-
'kg5VBMuP',
|
|
348
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
349
|
-
'C2vYDMvYvxjS',
|
|
350
|
-
'ywjVCNq',
|
|
351
|
-
'ywz0zxi',
|
|
352
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
353
|
-
'twvZC2fNzsbZzw50ihrVia',
|
|
354
|
-
'l3n0yxj0',
|
|
355
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
356
|
-
'CMvZB2X2zvrHCMDLDa',
|
|
357
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
358
|
-
'Dg9gAxHLza',
|
|
359
|
-
'DgHYzwfKtNvTyMvY',
|
|
360
|
-
'y2HPBgrYzw5uB3rHBa',
|
|
361
|
-
'zMLSzw5HBwu',
|
|
362
|
-
'zxHLy3v0Aw9Utw9Kzq',
|
|
363
|
-
'l3rHC2TZpW',
|
|
364
|
-
'ig1LC3nHz2vZkqOk',
|
|
365
|
-
'igrVBMuP',
|
|
366
|
-
'zg9Uzq',
|
|
367
1506
|
'C2f2zq',
|
|
368
|
-
'Cgf5Bg9HzePZB24',
|
|
369
|
-
'Aw5FCMv2Awv3',
|
|
370
|
-
'lsba',
|
|
371
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
372
|
-
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
373
|
-
'l3DVCMTLCNmVCgfYAW',
|
|
374
|
-
'y29UBMvJDa',
|
|
375
|
-
'zgvZy3jPyMu',
|
|
376
|
-
'Bwv0yq',
|
|
377
|
-
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
378
|
-
'rMLSzsbZAxPLigv4y2vLzhmGBgLTAxq6ia',
|
|
379
|
-
'CMvHzf9OAxn0B3j5',
|
|
380
|
-
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
381
|
-
'BMv4Den1CNnVCG',
|
|
382
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
383
|
-
'DgfZA051BwjLCG',
|
|
384
|
-
'Ahr0CdO',
|
|
385
|
-
'lsaJ',
|
|
386
|
-
'Aw5JBhvKzxm',
|
|
387
|
-
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
388
|
-
'l3jLC29SDMuTy2HHBM5LBa',
|
|
389
|
-
'lIbnzxnZywDLieLeoIa',
|
|
390
|
-
'CNvUswq',
|
|
391
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
392
|
-
'z2v0rgf0zq',
|
|
393
|
-
'Aw1Hz2uVANbLzW',
|
|
394
|
-
'DgL0Bgu',
|
|
395
|
-
'y3jLyxrLzef0',
|
|
396
|
-
'zMv0y2HjBxbS',
|
|
397
|
-
'ywXS',
|
|
398
|
-
'yxr0ywnOBwvUDf9Pza',
|
|
399
|
-
'CMvZDwX0sNnVBG',
|
|
400
|
-
'Aw1Hz2uVD2vICa',
|
|
401
|
-
'ywz0zxjtzxe',
|
|
402
|
-
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
403
|
-
'vgfZAZOG',
|
|
404
|
-
'iokaLca',
|
|
405
|
-
'l3rHC2TZ',
|
|
406
1507
|
'BwvTyMvY',
|
|
407
|
-
'
|
|
408
|
-
'
|
|
409
|
-
'
|
|
410
|
-
'
|
|
411
|
-
'CMvWBgfJzq',
|
|
412
|
-
'igzHAwXLzdOG',
|
|
413
|
-
'v29YA2vYia',
|
|
414
|
-
'DgfZA0LK',
|
|
415
|
-
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
416
|
-
'DgfYz2v0zwq',
|
|
417
|
-
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
418
|
-
'Dg9tDhjPBMC',
|
|
419
|
-
'zgvSzxrL',
|
|
420
|
-
'ig1ZzZ0',
|
|
421
|
-
'Aw5FChjVz3jLC3m',
|
|
422
|
-
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBguGkgrHzw1VBIbSB2nHBcbvuKWGB3iGywDLBNqGsuqGBM90ignVBMzPz3vYzwqP',
|
|
423
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
424
|
-
'BNvTyMvY',
|
|
425
|
-
'CMvZDwX0CW',
|
|
426
|
-
'mte3otG5mtLtEMzgugq',
|
|
427
|
-
'ywrK',
|
|
428
|
-
'C3vIDgfZA051BwjLCG',
|
|
429
|
-
'A2LUza',
|
|
430
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
431
|
-
'z2v0tw9UDgG',
|
|
432
|
-
'Bg93',
|
|
433
|
-
'BwvZC2fNzq',
|
|
434
|
-
'ChvZAa',
|
|
435
|
-
'zgvZy3jPChrPB24',
|
|
436
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
437
|
-
'C3rYAw5NAwz5',
|
|
438
|
-
'y29UDgvUDa',
|
|
439
|
-
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
440
|
-
'mteYtK9krvjn',
|
|
441
|
-
'DgfZAW',
|
|
442
|
-
'zw51Bq',
|
|
443
|
-
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
444
|
-
'y29UDgvUDejHC2u2na',
|
|
445
|
-
'CMvJB3jK',
|
|
446
|
-
'zgfLBw9UqxbPs2v5',
|
|
447
|
-
'yxr0ywnOBwvUDhm',
|
|
1508
|
+
'C2vX',
|
|
1509
|
+
'AgfZtw9Yzq',
|
|
1510
|
+
'y2HLy2TFBwvZC2fNzxm',
|
|
1511
|
+
'Dw5RBM93BG',
|
|
448
1512
|
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
449
|
-
'
|
|
450
|
-
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
451
|
-
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
452
|
-
'C3bSAxq',
|
|
453
|
-
'yxjYyxK',
|
|
454
|
-
'D29YA2vYu2vZC2LVBKLK',
|
|
455
|
-
'B2jQzwn0',
|
|
456
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
457
|
-
'zw50zxiTAgfUzg9MzIbMywLSzwq',
|
|
458
|
-
'ywDLBNrjza',
|
|
459
|
-
'zxnJywXHDgvFDg9FBwfPBG',
|
|
460
|
-
'D29YA2vYCW',
|
|
461
|
-
'Dg9mB3DLCKnHC2u',
|
|
462
|
-
'yxjNDG',
|
|
463
|
-
'AgfZ',
|
|
464
|
-
'DxbSB2fKx2zPBguGB25SEsbZDxbWB3j0CYbJAgfUBMvSig9YiernihrHCMDLDhmSig5VDcb0AhjLywqGDgfYz2v0CW',
|
|
465
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
466
|
-
'l2zPBMLZAa',
|
|
467
|
-
'AhjLzG',
|
|
468
|
-
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
469
|
-
'z2v0sg91CNm',
|
|
470
|
-
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
471
|
-
'y2XHAw1FDgfZA3m',
|
|
472
|
-
'iYmJieH1BwfUCW',
|
|
473
|
-
'Aw1Hz2uVCg5N',
|
|
474
|
-
'khvUA25VD24P',
|
|
475
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
476
|
-
'C29Tzq',
|
|
477
|
-
'z2v0twLUDxrLCW',
|
|
478
|
-
'CMvXDwvZDfvYBa',
|
|
479
|
-
'CgfYDgLJAxbHBNq',
|
|
480
|
-
'DgfYz2v0',
|
|
481
|
-
'BwvZC2fNzuLK',
|
|
482
|
-
'DMLZAwjPBgL0Eq',
|
|
483
|
-
'lMjPBG',
|
|
484
|
-
'Bwf0y2Hoyw1Ltg93zxi',
|
|
485
|
-
'mZy5nJaZmefgBxfcsq',
|
|
486
|
-
'D29YA19RzxK',
|
|
487
|
-
'BgLZDf90yxnRCYbMywLSzwq',
|
|
488
|
-
'DgfZAY0',
|
|
489
|
-
'zg0T',
|
|
490
|
-
'y2XPzw50',
|
|
491
|
-
'z2v0vgLTzq',
|
|
492
|
-
'y2HHBM5LBa',
|
|
493
|
-
'ue9tva',
|
|
494
|
-
'AwrLBxbVDgvUy3LFA2v5',
|
|
1513
|
+
'AgLNAa',
|
|
495
1514
|
'BgvUz3rO',
|
|
496
|
-
'
|
|
497
|
-
'
|
|
498
|
-
'
|
|
499
|
-
'
|
|
500
|
-
'
|
|
1515
|
+
'ig1LC3nHz2vZkqOk',
|
|
1516
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
1517
|
+
'CMvWBgfJzq',
|
|
1518
|
+
'zMLSzv9WyxrO',
|
|
1519
|
+
'Aw5FCMv2Awv3'
|
|
501
1520
|
];
|
|
502
|
-
|
|
503
|
-
return
|
|
504
|
-
};
|
|
505
|
-
return _0x2e92();
|
|
506
|
-
}
|
|
507
|
-
import {
|
|
508
|
-
createHash,
|
|
509
|
-
randomUUID
|
|
510
|
-
} from 'node:crypto';
|
|
511
|
-
var UNSUPPORTED_TARGET_MESSAGE = _0x28aee3(0x201);
|
|
512
|
-
function ensureSegment(_0x2861f1) {
|
|
513
|
-
const _0x23d0d5 = {
|
|
514
|
-
_0x5d236e: 0x1f6,
|
|
515
|
-
_0x519b17: 0x2b9
|
|
516
|
-
}, _0x25f3ee = _0x28aee3, _0x499e94 = _0x2861f1[_0x25f3ee(_0x23d0d5._0x5d236e)]();
|
|
517
|
-
if (!_0x499e94 || _0x499e94[_0x25f3ee(_0x23d0d5._0x519b17)](':'))
|
|
518
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
519
|
-
return _0x499e94;
|
|
520
|
-
}
|
|
521
|
-
function parseThreadParts(_0x2621af) {
|
|
522
|
-
const _0x2115d0 = { _0x4ae61a: 0x19b }, _0x2ec236 = _0x28aee3, _0x1317e7 = _0x2621af[_0x2ec236(0x170)](':');
|
|
523
|
-
if (_0x1317e7[_0x2ec236(0x19b)] < 0x1 || _0x1317e7[_0x2ec236(_0x2115d0._0x4ae61a)] > 0x2)
|
|
524
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
525
|
-
return {
|
|
526
|
-
'channelName': ensureSegment(_0x1317e7[0x0] ?? ''),
|
|
527
|
-
'threadShortId': _0x1317e7[0x1] ? ensureSegment(_0x1317e7[0x1]) : null
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function parseTarget(_0x3e4a37) {
|
|
531
|
-
const _0x585aac = {
|
|
532
|
-
_0x51f732: 0x1f6,
|
|
533
|
-
_0x10b930: 0x1fb,
|
|
534
|
-
_0x4e3b79: 0x21e,
|
|
535
|
-
_0x26f7cd: 0x20f,
|
|
536
|
-
_0x53e037: 0x239,
|
|
537
|
-
_0x449779: 0x240,
|
|
538
|
-
_0x8e27cb: 0x1fb,
|
|
539
|
-
_0x351962: 0x195
|
|
540
|
-
}, _0x5d13bc = _0x28aee3, _0x17533a = _0x3e4a37[_0x5d13bc(_0x585aac._0x51f732)]();
|
|
541
|
-
if (!_0x17533a)
|
|
542
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
543
|
-
if (_0x17533a[_0x5d13bc(0x20f)]('#')) {
|
|
544
|
-
const _0x499d87 = parseThreadParts(_0x17533a[_0x5d13bc(0x240)](0x1)), _0x29ae25 = '#' + _0x499d87[_0x5d13bc(0x1fb)];
|
|
545
|
-
if (!_0x499d87['threadShortId'])
|
|
546
|
-
return {
|
|
547
|
-
'channelName': _0x499d87[_0x5d13bc(_0x585aac._0x10b930)],
|
|
548
|
-
'channelTarget': _0x29ae25,
|
|
549
|
-
'kind': 'channel',
|
|
550
|
-
'target': _0x29ae25
|
|
551
|
-
};
|
|
552
|
-
return {
|
|
553
|
-
'channelName': _0x499d87[_0x5d13bc(0x1fb)],
|
|
554
|
-
'channelTarget': _0x29ae25,
|
|
555
|
-
'kind': 'thread',
|
|
556
|
-
'target': _0x29ae25 + ':' + _0x499d87[_0x5d13bc(_0x585aac._0x4e3b79)],
|
|
557
|
-
'threadShortId': _0x499d87[_0x5d13bc(_0x585aac._0x4e3b79)]
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
if (_0x17533a[_0x5d13bc(_0x585aac._0x26f7cd)](_0x5d13bc(_0x585aac._0x53e037))) {
|
|
561
|
-
const _0x2144cd = parseThreadParts(_0x17533a[_0x5d13bc(_0x585aac._0x449779)](0x3));
|
|
562
|
-
if (!_0x2144cd[_0x5d13bc(_0x585aac._0x8e27cb)]['startsWith'](_0x5d13bc(_0x585aac._0x351962)))
|
|
563
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
564
|
-
const _0x697faf = _0x5d13bc(_0x585aac._0x53e037) + _0x2144cd['channelName'];
|
|
565
|
-
if (!_0x2144cd[_0x5d13bc(_0x585aac._0x4e3b79)])
|
|
566
|
-
return {
|
|
567
|
-
'channelName': _0x2144cd[_0x5d13bc(0x1fb)],
|
|
568
|
-
'channelTarget': _0x697faf,
|
|
569
|
-
'kind': _0x5d13bc(0x198),
|
|
570
|
-
'target': _0x697faf
|
|
571
|
-
};
|
|
572
|
-
return {
|
|
573
|
-
'channelName': _0x2144cd[_0x5d13bc(0x1fb)],
|
|
574
|
-
'channelTarget': _0x697faf,
|
|
575
|
-
'kind': 'thread',
|
|
576
|
-
'target': _0x697faf + ':' + _0x2144cd['threadShortId'],
|
|
577
|
-
'threadShortId': _0x2144cd[_0x5d13bc(0x21e)]
|
|
578
|
-
};
|
|
579
|
-
}
|
|
580
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
581
|
-
}
|
|
582
|
-
function asErrorMessage(_0x3e5918, _0x194d21) {
|
|
583
|
-
const _0x1aaf04 = _0x28aee3;
|
|
584
|
-
if (typeof _0x3e5918 === _0x1aaf04(0x20c) && _0x3e5918[_0x1aaf04(0x1f6)]())
|
|
585
|
-
return _0x3e5918;
|
|
586
|
-
return _0x194d21;
|
|
587
|
-
}
|
|
588
|
-
function asRecord(_0x13108c) {
|
|
589
|
-
return typeof _0x13108c === 'object' && _0x13108c !== null ? _0x13108c : {};
|
|
590
|
-
}
|
|
591
|
-
function stableStringify(_0x25d8e2) {
|
|
592
|
-
const _0xd5146d = {
|
|
593
|
-
_0x4661c2: 0x173,
|
|
594
|
-
_0x17077b: 0x272
|
|
595
|
-
}, _0x3b1e77 = _0x28aee3;
|
|
596
|
-
if (_0x25d8e2 === null || typeof _0x25d8e2 !== _0x3b1e77(_0xd5146d._0x4661c2))
|
|
597
|
-
return JSON['stringify'](_0x25d8e2);
|
|
598
|
-
if (Array[_0x3b1e77(0x1a3)](_0x25d8e2))
|
|
599
|
-
return '[' + _0x25d8e2[_0x3b1e77(0x272)](_0x510c3e => stableStringify(_0x510c3e))[_0x3b1e77(0x1dd)](',') + ']';
|
|
600
|
-
const _0x4781c3 = Object['entries'](_0x25d8e2)[_0x3b1e77(0x23e)](([, _0x507674]) => _0x507674 !== void 0x0)['sort'](([_0x2bdc30], [_0x57b0d1]) => _0x2bdc30[_0x3b1e77(0x1c7)](_0x57b0d1))[_0x3b1e77(_0xd5146d._0x17077b)](([_0x428ba9, _0x34345d]) => JSON[_0x3b1e77(0x161)](_0x428ba9) + ':' + stableStringify(_0x34345d));
|
|
601
|
-
return '{' + _0x4781c3[_0x3b1e77(0x1dd)](',') + '}';
|
|
602
|
-
}
|
|
603
|
-
function createHeaders(_0x47378d) {
|
|
604
|
-
const _0x2561db = { _0x41e9d7: 0x287 }, _0x3917c1 = _0x28aee3;
|
|
605
|
-
return {
|
|
606
|
-
'Content-Type': _0x3917c1(_0x2561db._0x41e9d7),
|
|
607
|
-
'x-daemon-api-key': _0x47378d
|
|
608
|
-
};
|
|
609
|
-
}
|
|
610
|
-
function toHttpBaseUrl(_0x5e6861) {
|
|
611
|
-
const _0x2c2568 = {
|
|
612
|
-
_0x1f5c11: 0x234,
|
|
613
|
-
_0x35edf4: 0x1d0,
|
|
614
|
-
_0x12a139: 0x2b7
|
|
615
|
-
}, _0x1e5caa = _0x28aee3, _0xe76f12 = new URL(_0x5e6861);
|
|
616
|
-
if (_0xe76f12['protocol'] === _0x1e5caa(_0x2c2568._0x1f5c11))
|
|
617
|
-
_0xe76f12[_0x1e5caa(_0x2c2568._0x35edf4)] = _0x1e5caa(_0x2c2568._0x12a139);
|
|
618
|
-
else
|
|
619
|
-
_0xe76f12['protocol'] === 'wss:' && (_0xe76f12['protocol'] = _0x1e5caa(0x1ea));
|
|
620
|
-
return _0xe76f12['toString']()['replace'](/\/$/, '');
|
|
621
|
-
}
|
|
622
|
-
function isMentionBoundary(_0x21dc05) {
|
|
623
|
-
const _0x58cc2a = _0x28aee3;
|
|
624
|
-
return !_0x21dc05 || /\s|[([{'",。!?、:;]/[_0x58cc2a(0x1c4)](_0x21dc05);
|
|
625
|
-
}
|
|
626
|
-
function isMentionTerminal(_0x114fdc) {
|
|
627
|
-
return !_0x114fdc || /\s|[)\]}'",。!?、:;,.!?]/['test'](_0x114fdc);
|
|
628
|
-
}
|
|
629
|
-
function buildMatchableEntries(_0x58817a) {
|
|
630
|
-
const _0xa338d9 = {
|
|
631
|
-
_0x3450b7: 0x268,
|
|
632
|
-
_0x94bfbe: 0x2e9
|
|
633
|
-
}, _0x326f42 = _0x28aee3, _0x48db61 = [];
|
|
634
|
-
for (const _0x546dc6 of [
|
|
635
|
-
..._0x58817a[_0x326f42(0x19c)],
|
|
636
|
-
..._0x58817a[_0x326f42(_0xa338d9._0x3450b7)]
|
|
637
|
-
]) {
|
|
638
|
-
_0x48db61[_0x326f42(_0xa338d9._0x94bfbe)]({
|
|
639
|
-
'matchName': _0x546dc6['name'],
|
|
640
|
-
'matchNameLower': _0x546dc6['name'][_0x326f42(0x277)](),
|
|
641
|
-
'participantId': _0x546dc6['id']
|
|
642
|
-
}), _0x546dc6['id'] !== _0x546dc6[_0x326f42(0x1e5)] && _0x48db61[_0x326f42(0x2e9)]({
|
|
643
|
-
'matchName': _0x546dc6['id'],
|
|
644
|
-
'matchNameLower': _0x546dc6['id']['toLocaleLowerCase'](),
|
|
645
|
-
'participantId': _0x546dc6['id']
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
return _0x48db61;
|
|
649
|
-
}
|
|
650
|
-
function extractMentionedParticipantIds(_0x40c32c, _0x12537f) {
|
|
651
|
-
const _0x1e529 = {
|
|
652
|
-
_0x399f6b: 0x19b,
|
|
653
|
-
_0x4a5bdf: 0x240,
|
|
654
|
-
_0xc0f08f: 0x215,
|
|
655
|
-
_0x4d373c: 0x2e9,
|
|
656
|
-
_0x24b4cb: 0x204
|
|
657
|
-
}, _0x4d1ded = {
|
|
658
|
-
_0x96c884: 0x20f,
|
|
659
|
-
_0x52cd6d: 0x190,
|
|
660
|
-
_0x218b9e: 0x19b
|
|
661
|
-
}, _0x17d671 = _0x28aee3, _0xc3158e = buildMatchableEntries(_0x12537f)[_0x17d671(0x228)]((_0x22a904, _0x23532f) => _0x23532f[_0x17d671(0x204)]['length'] - _0x22a904[_0x17d671(0x204)][_0x17d671(0x19b)]), _0x49304c = [], _0x568277 = new Set();
|
|
662
|
-
for (let _0x236e7a = 0x0; _0x236e7a < _0x40c32c[_0x17d671(_0x1e529._0x399f6b)]; _0x236e7a += 0x1) {
|
|
663
|
-
if (_0x40c32c[_0x236e7a] !== '@' || !isMentionBoundary(_0x40c32c[_0x236e7a - 0x1]))
|
|
664
|
-
continue;
|
|
665
|
-
const _0x46db40 = _0x40c32c[_0x17d671(_0x1e529._0x4a5bdf)](_0x236e7a + 0x1), _0x260d11 = _0x46db40['toLocaleLowerCase'](), _0x228f3d = _0xc3158e['find'](_0x941ddc => {
|
|
666
|
-
const _0x352699 = _0x17d671;
|
|
667
|
-
if (!_0x260d11[_0x352699(_0x4d1ded._0x96c884)](_0x941ddc[_0x352699(_0x4d1ded._0x52cd6d)]))
|
|
668
|
-
return ![];
|
|
669
|
-
return isMentionTerminal(_0x46db40[_0x941ddc[_0x352699(0x204)][_0x352699(_0x4d1ded._0x218b9e)]]);
|
|
670
|
-
});
|
|
671
|
-
if (!_0x228f3d || _0x568277[_0x17d671(0x17b)](_0x228f3d[_0x17d671(_0x1e529._0xc0f08f)]))
|
|
672
|
-
continue;
|
|
673
|
-
_0x568277['add'](_0x228f3d['participantId']), _0x49304c[_0x17d671(_0x1e529._0x4d373c)](_0x228f3d['participantId']), _0x236e7a += _0x228f3d[_0x17d671(_0x1e529._0x24b4cb)]['length'];
|
|
674
|
-
}
|
|
675
|
-
return _0x49304c;
|
|
676
|
-
}
|
|
677
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
678
|
-
function anySignal(..._0xfad2b0) {
|
|
679
|
-
const _0x36f0a2 = {
|
|
680
|
-
_0x4e5dd3: 0x295,
|
|
681
|
-
_0x7d9b13: 0x1b6,
|
|
682
|
-
_0x3083d4: 0x295
|
|
683
|
-
}, _0x303577 = _0x28aee3, _0x22f076 = new AbortController();
|
|
684
|
-
for (const _0x5205a1 of _0xfad2b0) {
|
|
685
|
-
if (_0x5205a1['aborted'])
|
|
686
|
-
return _0x22f076[_0x303577(_0x36f0a2._0x4e5dd3)](_0x5205a1[_0x303577(0x1b3)]), _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
687
|
-
_0x5205a1['addEventListener'](_0x303577(_0x36f0a2._0x3083d4), () => _0x22f076[_0x303577(0x295)](_0x5205a1[_0x303577(0x1b3)]), {
|
|
688
|
-
'once': !![],
|
|
689
|
-
'signal': _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)]
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
return _0x22f076[_0x303577(_0x36f0a2._0x7d9b13)];
|
|
693
|
-
}
|
|
694
|
-
function createInternalAgentClient(_0x3bb6b7) {
|
|
695
|
-
const _0x14054b = {
|
|
696
|
-
_0x2662d4: 0x23f,
|
|
697
|
-
_0x44bb1e: 0x2df,
|
|
698
|
-
_0x15217e: 0x172,
|
|
699
|
-
_0x17ffea: 0x1f6,
|
|
700
|
-
_0x28fdc5: 0x16a,
|
|
701
|
-
_0x3194ac: 0x294
|
|
702
|
-
}, _0x1c0289 = {
|
|
703
|
-
_0x48ce1a: 0x19d,
|
|
704
|
-
_0x451525: 0x176,
|
|
705
|
-
_0xe426c5: 0x288,
|
|
706
|
-
_0x2f4597: 0x2af,
|
|
707
|
-
_0x2cbe33: 0x202,
|
|
708
|
-
_0x266778: 0x225,
|
|
709
|
-
_0x22a6ca: 0x19b,
|
|
710
|
-
_0x2e059d: 0x19b,
|
|
711
|
-
_0x5a9b60: 0x23e,
|
|
712
|
-
_0x15b654: 0x1d3,
|
|
713
|
-
_0x22b91a: 0x188,
|
|
714
|
-
_0x5b04b3: 0x20c,
|
|
715
|
-
_0x46e7df: 0x232,
|
|
716
|
-
_0xf1d99a: 0x1a0,
|
|
717
|
-
_0x2f7f46: 0x20c,
|
|
718
|
-
_0x271bb9: 0x269,
|
|
719
|
-
_0x3194a2: 0x20c,
|
|
720
|
-
_0x5aaad6: 0x29e,
|
|
721
|
-
_0x5bedd8: 0x281,
|
|
722
|
-
_0x6ba06a: 0x29e,
|
|
723
|
-
_0x4078ae: 0x1d8,
|
|
724
|
-
_0x383e10: 0x29e,
|
|
725
|
-
_0x444bac: 0x269,
|
|
726
|
-
_0xdc1113: 0x269,
|
|
727
|
-
_0x586d41: 0x2e9,
|
|
728
|
-
_0x5c04f3: 0x25e,
|
|
729
|
-
_0x44eac3: 0x239,
|
|
730
|
-
_0x12954c: 0x272,
|
|
731
|
-
_0x744452: 0x286,
|
|
732
|
-
_0x5ee732: 0x203,
|
|
733
|
-
_0x1710bf: 0x2d7,
|
|
734
|
-
_0x544c3: 0x162,
|
|
735
|
-
_0x540203: 0x2e4,
|
|
736
|
-
_0x213e9a: 0x1c2,
|
|
737
|
-
_0x39bbf3: 0x218,
|
|
738
|
-
_0x595d7c: 0x21a
|
|
739
|
-
}, _0x1d69b1 = {
|
|
740
|
-
_0x36ef6d: 0x2a7,
|
|
741
|
-
_0x31e886: 0x232,
|
|
742
|
-
_0x1699b6: 0x20c
|
|
743
|
-
}, _0x63a30c = {
|
|
744
|
-
_0x5db128: 0x296,
|
|
745
|
-
_0x3deb5d: 0x21b
|
|
746
|
-
}, _0x6a3ff5 = {
|
|
747
|
-
_0x254fd0: 0x1ec,
|
|
748
|
-
_0x5f3711: 0x288,
|
|
749
|
-
_0x6dfcc6: 0x1b6,
|
|
750
|
-
_0x209772: 0x19f,
|
|
751
|
-
_0x1460ec: 0x279,
|
|
752
|
-
_0x100ac6: 0x286,
|
|
753
|
-
_0x6b5069: 0x231,
|
|
754
|
-
_0x573126: 0x1a5
|
|
755
|
-
}, _0x2c5794 = {
|
|
756
|
-
_0xa85bf2: 0x176,
|
|
757
|
-
_0x15b995: 0x20e,
|
|
758
|
-
_0x23a462: 0x161,
|
|
759
|
-
_0xaf3664: 0x19f,
|
|
760
|
-
_0xf5083b: 0x2a0,
|
|
761
|
-
_0xe09642: 0x264,
|
|
762
|
-
_0x7f2658: 0x24b
|
|
763
|
-
}, _0x200b23 = { _0x31b56f: 0x1d7 }, _0x9a1578 = {
|
|
764
|
-
_0x3c041f: 0x161,
|
|
765
|
-
_0x293887: 0x282,
|
|
766
|
-
_0xbc75fe: 0x199
|
|
767
|
-
}, _0x50dace = { _0x34f27e: 0x19d }, _0x2916ed = {
|
|
768
|
-
_0xbe4c7d: 0x176,
|
|
769
|
-
_0x21540b: 0x161
|
|
770
|
-
}, _0xf46048 = {
|
|
771
|
-
_0x5f45ca: 0x273,
|
|
772
|
-
_0x520316: 0x1b0,
|
|
773
|
-
_0x614c6: 0x2a2
|
|
774
|
-
}, _0x1b448d = {
|
|
775
|
-
_0x1d6b78: 0x1b7,
|
|
776
|
-
_0x4a4bcf: 0x17e,
|
|
777
|
-
_0x143645: 0x26d,
|
|
778
|
-
_0x182c4d: 0x2c6,
|
|
779
|
-
_0x49211a: 0x1b0,
|
|
780
|
-
_0x4d0d00: 0x264
|
|
781
|
-
}, _0x1939d0 = { _0xb11cb8: 0x264 }, _0x1a75a5 = {
|
|
782
|
-
_0x456695: 0x252,
|
|
783
|
-
_0x335977: 0x161
|
|
784
|
-
}, _0x4859a0 = {
|
|
785
|
-
_0x4cb8f4: 0x18c,
|
|
786
|
-
_0x48b217: 0x2b9,
|
|
787
|
-
_0x3322d0: 0x176,
|
|
788
|
-
_0x8af1c2: 0x161,
|
|
789
|
-
_0x378aef: 0x1ef,
|
|
790
|
-
_0x2782d3: 0x1a0,
|
|
791
|
-
_0x44582d: 0x18e,
|
|
792
|
-
_0x3bb155: 0x199
|
|
793
|
-
}, _0x5178d6 = {
|
|
794
|
-
_0x1fb818: 0x1ab,
|
|
795
|
-
_0x3b41f1: 0x273,
|
|
796
|
-
_0x3153ff: 0x273,
|
|
797
|
-
_0x336b5f: 0x232,
|
|
798
|
-
_0x1c9450: 0x21b,
|
|
799
|
-
_0x338fb7: 0x19d,
|
|
800
|
-
_0x2ca19f: 0x2d9,
|
|
801
|
-
_0x4a339f: 0x272,
|
|
802
|
-
_0x18db34: 0x236,
|
|
803
|
-
_0x4a8030: 0x2af,
|
|
804
|
-
_0x5169dc: 0x1b4
|
|
805
|
-
}, _0x56af25 = { _0x41e4c8: 0x215 }, _0x1c6706 = {
|
|
806
|
-
_0x32488c: 0x29e,
|
|
807
|
-
_0x495178: 0x2df,
|
|
808
|
-
_0x581a5c: 0x281,
|
|
809
|
-
_0x28bf38: 0x21e,
|
|
810
|
-
_0x3a3a00: 0x269,
|
|
811
|
-
_0x5172cd: 0x20f
|
|
812
|
-
}, _0x52be5b = {
|
|
813
|
-
_0x4024e4: 0x1ac,
|
|
814
|
-
_0x3c6d2c: 0x236,
|
|
815
|
-
_0x3cc838: 0x21e,
|
|
816
|
-
_0x65f2f6: 0x269,
|
|
817
|
-
_0x4733cd: 0x21e,
|
|
818
|
-
_0x534f20: 0x1a0,
|
|
819
|
-
_0x5009ab: 0x21e
|
|
820
|
-
}, _0x55c115 = {
|
|
821
|
-
_0x565a75: 0x236,
|
|
822
|
-
_0x1a8110: 0x269,
|
|
823
|
-
_0x559375: 0x1a0
|
|
824
|
-
}, _0x126249 = { _0xca8dd0: 0x1fd }, _0x13a869 = { _0x1d43ad: 0x289 }, _0xd93e9c = {
|
|
825
|
-
_0x1b287e: 0x176,
|
|
826
|
-
_0x40a931: 0x214,
|
|
827
|
-
_0x17b9c7: 0x272,
|
|
828
|
-
_0x4abaa5: 0x23e,
|
|
829
|
-
_0x1675f5: 0x22c,
|
|
830
|
-
_0x321d3f: 0x264
|
|
831
|
-
}, _0x3d1f2b = {
|
|
832
|
-
_0x22c476: 0x2bb,
|
|
833
|
-
_0x14a5f6: 0x199,
|
|
834
|
-
_0x436be6: 0x264,
|
|
835
|
-
_0x354239: 0x232,
|
|
836
|
-
_0xeafba7: 0x236,
|
|
837
|
-
_0x5de5d0: 0x29e
|
|
838
|
-
}, _0x2c3c50 = {
|
|
839
|
-
_0x298837: 0x24a,
|
|
840
|
-
_0x2c41aa: 0x1e3
|
|
841
|
-
}, _0xaed242 = {
|
|
842
|
-
_0x1acb1f: 0x1b6,
|
|
843
|
-
_0x25fa2a: 0x26d,
|
|
844
|
-
_0x2e42c5: 0x211
|
|
845
|
-
}, _0x22c7d5 = { _0x49941b: 0x26d }, _0x50cd80 = {
|
|
846
|
-
_0x3b302f: 0x19a,
|
|
847
|
-
_0x1a13de: 0x20c,
|
|
848
|
-
_0xb92ae9: 0x1dc,
|
|
849
|
-
_0x49173a: 0x1ce,
|
|
850
|
-
_0x11b043: 0x22f,
|
|
851
|
-
_0xd6aa8d: 0x1f1
|
|
852
|
-
}, _0x10b8bb = {
|
|
853
|
-
_0x5e4a3e: 0x207,
|
|
854
|
-
_0x47c1c4: 0x1a5,
|
|
855
|
-
_0x118390: 0x1d5,
|
|
856
|
-
_0xe38d43: 0x2d0
|
|
857
|
-
}, _0xd59838 = {
|
|
858
|
-
_0x1e28eb: 0x279,
|
|
859
|
-
_0x50d234: 0x286,
|
|
860
|
-
_0x4c503e: 0x1a9,
|
|
861
|
-
_0x9e1e64: 0x1f6,
|
|
862
|
-
_0x5431f8: 0x220,
|
|
863
|
-
_0x2a88b4: 0x18a,
|
|
864
|
-
_0x7be67d: 0x283,
|
|
865
|
-
_0x49e564: 0x23c
|
|
866
|
-
}, _0x48f325 = _0x28aee3, _0x230d44 = _0x3bb6b7[_0x48f325(0x2c3)] ?? fetch, _0x48c043 = _0x3bb6b7[_0x48f325(_0x14054b._0x2662d4)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x439287 = typeof _0x3bb6b7['initialLastSeenSeq'] === _0x48f325(_0x14054b._0x44bb1e) && _0x3bb6b7['initialLastSeenSeq'] > 0x0 ? _0x3bb6b7[_0x48f325(0x241)] : 0x0, _0x18f974 = _0x3bb6b7[_0x48f325(0x248)]?.['trim']() || void 0x0, _0x35c865 = _0x3bb6b7['sessionId']?.['trim']() || void 0x0, _0x207f3c = _0x3bb6b7['workerModeEnabled'] === !![], _0x5e99c6 = _0x3bb6b7[_0x48f325(_0x14054b._0x15217e)]?.[_0x48f325(_0x14054b._0x17ffea)]() || void 0x0, _0x2bd29b = _0x3bb6b7['workerThreadTarget']?.[_0x48f325(0x1f6)]() || void 0x0, _0xc87eec = createHeaders(_0x3bb6b7[_0x48f325(_0x14054b._0x28fdc5)]), _0x4cea4c = toHttpBaseUrl(_0x3bb6b7[_0x48f325(_0x14054b._0x3194ac)]);
|
|
867
|
-
let _0xb4cf24 = null;
|
|
868
|
-
const _0xe7adc6 = new Map();
|
|
869
|
-
let _0x15451c = _0x439287, _0x35c778 = _0x439287;
|
|
870
|
-
function _0x3508ab(_0x2b7bf9) {
|
|
871
|
-
const _0x5d41c9 = _0x48f325, _0x3ef710 = _0x2b7bf9[_0x5d41c9(0x23c)][_0x5d41c9(_0xd59838._0x1e28eb)][_0x5d41c9(_0xd59838._0x50d234)](_0x5d41c9(0x231)) ?? _0x5d41c9(_0xd59838._0x4c503e), _0x2fe82c = _0x2b7bf9[_0x5d41c9(0x1fc)][_0x5d41c9(_0xd59838._0x9e1e64)]()[_0x5d41c9(0x2d2)](/\s+/g, '\x20')['slice'](0x0, 0x78) || _0x5d41c9(0x27c);
|
|
872
|
-
return _0x5d41c9(_0xd59838._0x5431f8) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x2a88b4)] + _0x5d41c9(_0xd59838._0x7be67d) + _0x2b7bf9[_0x5d41c9(_0xd59838._0x49e564)][_0x5d41c9(0x1b0)] + ',\x20content-type=' + _0x3ef710 + ',\x20preview=' + _0x2fe82c + ')。这通常表示\x20serverUrl\x20指向了\x20web\x20站点,或代理没有把\x20daemon/internal\x20API\x20转发到后端。';
|
|
873
|
-
}
|
|
874
|
-
async function _0x1da27c(_0x43f4fb, _0x1463bd) {
|
|
875
|
-
const _0x51c0c1 = _0x48f325, _0x208eee = Buffer[_0x51c0c1(_0x10b8bb._0x5e4a3e)](await _0x1463bd[_0x51c0c1(_0x10b8bb._0x47c1c4)]())['toString'](_0x51c0c1(_0x10b8bb._0x118390));
|
|
876
|
-
if (!_0x208eee[_0x51c0c1(0x1f6)]())
|
|
877
|
-
return {};
|
|
878
|
-
try {
|
|
879
|
-
return JSON[_0x51c0c1(_0x10b8bb._0xe38d43)](_0x208eee);
|
|
880
|
-
} catch {
|
|
881
|
-
throw new Error(_0x3508ab({
|
|
882
|
-
'bodyText': _0x208eee,
|
|
883
|
-
'requestUrl': _0x43f4fb,
|
|
884
|
-
'response': _0x1463bd
|
|
885
|
-
}));
|
|
886
|
-
}
|
|
887
|
-
}
|
|
888
|
-
function _0x102300(_0x2fe772, _0x54ca7c) {
|
|
889
|
-
const _0x297c83 = _0x48f325, _0xb7cbda = typeof _0x54ca7c[_0x297c83(_0x50cd80._0x3b302f)] === _0x297c83(_0x50cd80._0x1a13de) ? _0x54ca7c[_0x297c83(0x19a)]['trim']() : '';
|
|
890
|
-
if (_0xb7cbda)
|
|
891
|
-
return _0xb7cbda;
|
|
892
|
-
const _0xe8b2d3 = Date[_0x297c83(_0x50cd80._0xb92ae9)]();
|
|
893
|
-
for (const [_0x281b1a, _0x4ddae9] of _0xe7adc6) {
|
|
894
|
-
_0x4ddae9[_0x297c83(_0x50cd80._0x49173a)] <= _0xe8b2d3 && _0xe7adc6[_0x297c83(0x2da)](_0x281b1a);
|
|
895
|
-
}
|
|
896
|
-
const _0x46b5df = {
|
|
897
|
-
..._0x54ca7c,
|
|
898
|
-
'idempotency_key': void 0x0
|
|
899
|
-
}, _0x43523a = createHash(_0x297c83(0x233))[_0x297c83(_0x50cd80._0x11b043)](_0x2fe772 + ':' + stableStringify(_0x46b5df))['digest']('hex'), _0x33b741 = _0x2fe772 + ':' + _0x43523a, _0x5466d4 = _0xe7adc6[_0x297c83(0x286)](_0x33b741);
|
|
900
|
-
if (_0x5466d4)
|
|
901
|
-
return _0x5466d4['value'];
|
|
902
|
-
const _0x39fdb7 = _0x297c83(_0x50cd80._0xd6aa8d) + _0x2fe772 + ':' + randomUUID();
|
|
903
|
-
return _0xe7adc6[_0x297c83(0x273)](_0x33b741, {
|
|
904
|
-
'expiresAt': _0xe8b2d3 + 0x5 * 0x3c * 0x3e8,
|
|
905
|
-
'value': _0x39fdb7
|
|
906
|
-
}), _0x39fdb7;
|
|
907
|
-
}
|
|
908
|
-
async function _0x2827a2(_0x4902d7, _0x297d6d) {
|
|
909
|
-
const _0x29f21 = _0x48f325, _0x584b12 = new AbortController(), _0x29b0f7 = setTimeout(() => _0x584b12[_0x29f21(0x295)](), _0x48c043), _0x5569cc = _0x297d6d?.[_0x29f21(0x1b6)] ? anySignal(_0x297d6d['signal'], _0x584b12[_0x29f21(0x1b6)]) : _0x584b12[_0x29f21(0x1b6)], _0x3fc3eb = '' + _0x4cea4c + _0x4902d7;
|
|
910
|
-
try {
|
|
911
|
-
const _0x26a4f8 = await _0x230d44(_0x3fc3eb, {
|
|
912
|
-
..._0x297d6d,
|
|
913
|
-
'signal': _0x5569cc
|
|
914
|
-
}), _0x45d6fa = await _0x1da27c(_0x3fc3eb, _0x26a4f8);
|
|
915
|
-
if (!_0x26a4f8['ok'] || _0x45d6fa['success'] === ![])
|
|
916
|
-
throw new Error(asErrorMessage(_0x45d6fa[_0x29f21(_0x22c7d5._0x49941b)], _0x29f21(0x211) + _0x26a4f8['status']));
|
|
917
|
-
return _0x45d6fa;
|
|
918
|
-
} finally {
|
|
919
|
-
clearTimeout(_0x29b0f7);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
async function _0x316b90(_0x5829da, _0x2c1e10) {
|
|
923
|
-
const _0x1378bc = _0x48f325, _0x45457f = new AbortController(), _0x44f1dc = setTimeout(() => _0x45457f[_0x1378bc(0x295)](), _0x48c043), _0x301abc = _0x2c1e10?.[_0x1378bc(_0xaed242._0x1acb1f)] ? anySignal(_0x2c1e10['signal'], _0x45457f['signal']) : _0x45457f[_0x1378bc(0x1b6)], _0x1909eb = '' + _0x4cea4c + _0x5829da;
|
|
924
|
-
try {
|
|
925
|
-
const _0x106dff = await _0x230d44(_0x1909eb, {
|
|
926
|
-
..._0x2c1e10,
|
|
927
|
-
'signal': _0x301abc
|
|
928
|
-
}), _0x2a45a7 = await _0x1da27c(_0x1909eb, _0x106dff);
|
|
929
|
-
if (!_0x106dff['ok'])
|
|
930
|
-
throw new Error(asErrorMessage(_0x2a45a7[_0x1378bc(_0xaed242._0x25fa2a)], _0x1378bc(_0xaed242._0x2e42c5) + _0x106dff[_0x1378bc(0x1b0)]));
|
|
931
|
-
return _0x2a45a7;
|
|
932
|
-
} finally {
|
|
933
|
-
clearTimeout(_0x44f1dc);
|
|
934
|
-
}
|
|
935
|
-
}
|
|
936
|
-
async function _0x2d0964(_0x30073a) {
|
|
937
|
-
const _0x200e32 = _0x48f325;
|
|
938
|
-
if (!_0x35c865 || _0x30073a <= _0x35c778)
|
|
939
|
-
return;
|
|
940
|
-
await _0x2827a2(_0x200e32(_0x2c3c50._0x298837) + encodeURIComponent(_0x35c865) + _0x200e32(_0x2c3c50._0x2c41aa), {
|
|
941
|
-
'body': JSON['stringify']({ 'lastSeenSeq': _0x30073a }),
|
|
942
|
-
'headers': _0xc87eec,
|
|
943
|
-
'method': 'PATCH'
|
|
944
|
-
}), _0x35c778 = _0x30073a;
|
|
945
|
-
}
|
|
946
|
-
async function _0x5add0b(_0x5ed6ba) {
|
|
947
|
-
const _0x3930cd = _0x48f325;
|
|
948
|
-
if (!_0x18f974 || !_0x5e99c6 || _0x5ed6ba <= _0x35c778)
|
|
949
|
-
return;
|
|
950
|
-
const _0x4cea64 = await _0x230d44(_0x18f974 + '/workers/context-metrics', {
|
|
951
|
-
'body': JSON[_0x3930cd(0x161)]({
|
|
952
|
-
'last_seen_seq': _0x5ed6ba,
|
|
953
|
-
'worker_session_id': _0x5e99c6
|
|
954
|
-
}),
|
|
955
|
-
'headers': { 'Content-Type': _0x3930cd(0x287) },
|
|
956
|
-
'method': 'POST'
|
|
957
|
-
});
|
|
958
|
-
if (!_0x4cea64['ok'])
|
|
959
|
-
throw new Error('HTTP\x20' + _0x4cea64['status']);
|
|
960
|
-
_0x35c778 = _0x5ed6ba;
|
|
961
|
-
}
|
|
962
|
-
async function _0x110dfc(_0x36469e) {
|
|
963
|
-
const _0x5d41be = _0x48f325, _0x2c507f = parseTarget(_0x36469e), _0x247014 = await _0x2827a2(_0x5d41be(0x19d) + _0x3bb6b7[_0x5d41be(0x176)] + _0x5d41be(_0x3d1f2b._0x22c476), {
|
|
964
|
-
'body': JSON[_0x5d41be(0x161)]({ 'target': _0x2c507f[_0x5d41be(0x18c)] }),
|
|
965
|
-
'headers': _0xc87eec,
|
|
966
|
-
'method': _0x5d41be(_0x3d1f2b._0x14a5f6)
|
|
967
|
-
});
|
|
968
|
-
return {
|
|
969
|
-
'channelId': _0x247014[_0x5d41be(_0x3d1f2b._0x436be6)]?.[_0x5d41be(_0x3d1f2b._0x354239)] ?? '',
|
|
970
|
-
'target': _0x2c507f[_0x5d41be(_0x3d1f2b._0xeafba7)],
|
|
971
|
-
'task': _0x247014[_0x5d41be(0x264)]?.[_0x5d41be(0x165)],
|
|
972
|
-
'threadId': _0x247014[_0x5d41be(0x264)]?.['threadId'],
|
|
973
|
-
'threadNumber': _0x247014[_0x5d41be(_0x3d1f2b._0x436be6)]?.[_0x5d41be(_0x3d1f2b._0x5de5d0)]
|
|
974
|
-
};
|
|
975
|
-
}
|
|
976
|
-
async function _0x11949c(_0x51f51d = {}) {
|
|
977
|
-
const _0x6639ae = _0x48f325;
|
|
978
|
-
if (!_0x51f51d[_0x6639ae(0x1e9)] && _0xb4cf24)
|
|
979
|
-
return _0xb4cf24;
|
|
980
|
-
return _0xb4cf24 = (async () => {
|
|
981
|
-
const _0x5abf3b = _0x6639ae, _0x5e0bb0 = await _0x2827a2('/internal/agent/' + _0x3bb6b7[_0x5abf3b(_0xd93e9c._0x1b287e)] + _0x5abf3b(0x22d), {
|
|
982
|
-
'headers': _0xc87eec,
|
|
983
|
-
'method': _0x5abf3b(0x288)
|
|
984
|
-
}), _0x4f1eb1 = _0x5e0bb0[_0x5abf3b(0x264)]?.[_0x5abf3b(_0xd93e9c._0x40a931)] ?? [], _0x3d618e = _0x4f1eb1['filter'](_0x4378b3 => _0x4378b3[_0x5abf3b(0x18b)]?.[_0x5abf3b(0x24d)] === _0x5abf3b(0x1ed))[_0x5abf3b(_0xd93e9c._0x17b9c7)](_0x70db70 => ({
|
|
985
|
-
'id': _0x21bcad(_0x70db70),
|
|
986
|
-
'name': _0x4f4593(_0x70db70)
|
|
987
|
-
}))[_0x5abf3b(_0xd93e9c._0x4abaa5)](_0x3b13d2 => _0x3b13d2['id']), _0x37e3a5 = _0x4f1eb1[_0x5abf3b(0x23e)](_0x43289d => _0x43289d['participant']?.[_0x5abf3b(0x24d)] !== 'agent')['map'](_0x19b8bb => ({
|
|
988
|
-
'id': _0x21bcad(_0x19b8bb),
|
|
989
|
-
'name': _0x4f4593(_0x19b8bb)
|
|
990
|
-
}))[_0x5abf3b(_0xd93e9c._0x4abaa5)](_0x5ec985 => _0x5ec985['id']), _0x54ee8f = _0x5e0bb0[_0x5abf3b(0x264)]?.[_0x5abf3b(_0xd93e9c._0x1675f5)]['id'] ?? '';
|
|
991
|
-
return {
|
|
992
|
-
'agents': _0x3d618e,
|
|
993
|
-
'channels': _0x5e0bb0['data']?.['channels'] ?? [],
|
|
994
|
-
'humans': _0x37e3a5,
|
|
995
|
-
'serverId': _0x54ee8f,
|
|
996
|
-
'serverName': _0x5e0bb0[_0x5abf3b(_0xd93e9c._0x321d3f)]?.[_0x5abf3b(0x22c)]['name'] ?? _0x54ee8f
|
|
997
|
-
};
|
|
998
|
-
})()[_0x6639ae(_0x13a869._0x1d43ad)](_0x43971b => {
|
|
999
|
-
_0xb4cf24 = null;
|
|
1000
|
-
throw _0x43971b;
|
|
1001
|
-
}), _0xb4cf24;
|
|
1002
|
-
}
|
|
1003
|
-
function _0x517ef7(_0x229f72, _0x29724e) {
|
|
1004
|
-
const _0x423c53 = _0x48f325;
|
|
1005
|
-
return _0x29724e[_0x423c53(0x19c)]['some'](_0x3c581b => _0x3c581b['id'] === _0x229f72 || _0x3c581b[_0x423c53(0x1e5)] === _0x229f72) ? _0x423c53(0x1ed) : _0x423c53(_0x126249._0xca8dd0);
|
|
1006
|
-
}
|
|
1007
|
-
function _0x1a9f4f(_0x19d899) {
|
|
1008
|
-
const _0x638d86 = _0x48f325;
|
|
1009
|
-
if (_0x19d899['threadNumber'] != null)
|
|
1010
|
-
return _0x19d899[_0x638d86(_0x55c115._0x565a75)] + ':t' + _0x19d899['threadNumber'];
|
|
1011
|
-
if (_0x19d899[_0x638d86(_0x55c115._0x1a8110)])
|
|
1012
|
-
return _0x19d899['channelTarget'] + ':' + _0x19d899['rootMessageId'];
|
|
1013
|
-
if (_0x19d899[_0x638d86(0x1a0)])
|
|
1014
|
-
return _0x19d899['channelTarget'] + ':' + _0x19d899[_0x638d86(_0x55c115._0x559375)][_0x638d86(0x240)](0x0, 0x8);
|
|
1015
|
-
return _0x19d899['channelTarget'];
|
|
1016
|
-
}
|
|
1017
|
-
function _0x377524(_0x51cb00, _0x4abed6) {
|
|
1018
|
-
const _0x2328b3 = _0x48f325;
|
|
1019
|
-
try {
|
|
1020
|
-
const _0x4b91ed = parseTarget(_0x51cb00);
|
|
1021
|
-
if (_0x4b91ed['kind'] !== _0x2328b3(_0x52be5b._0x4024e4) || _0x4b91ed[_0x2328b3(0x236)] !== _0x4abed6[_0x2328b3(_0x52be5b._0x3c6d2c)])
|
|
1022
|
-
return ![];
|
|
1023
|
-
if (_0x4abed6[_0x2328b3(0x29e)] != null && _0x4b91ed['threadShortId'] === 't' + _0x4abed6['threadNumber'])
|
|
1024
|
-
return !![];
|
|
1025
|
-
if (_0x4abed6['rootMessageId'])
|
|
1026
|
-
return _0x4b91ed[_0x2328b3(_0x52be5b._0x3cc838)] === _0x4abed6['rootMessageId'] || _0x4abed6[_0x2328b3(_0x52be5b._0x65f2f6)][_0x2328b3(0x20f)](_0x4b91ed[_0x2328b3(_0x52be5b._0x4733cd)]);
|
|
1027
|
-
if (_0x4abed6[_0x2328b3(_0x52be5b._0x534f20)])
|
|
1028
|
-
return _0x4b91ed[_0x2328b3(_0x52be5b._0x5009ab)] === _0x4abed6[_0x2328b3(0x1a0)] || _0x4abed6['threadId'][_0x2328b3(0x20f)](_0x4b91ed[_0x2328b3(0x21e)]);
|
|
1029
|
-
return ![];
|
|
1030
|
-
} catch {
|
|
1031
|
-
return ![];
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
function _0x222741(_0x518fa3, _0x16d43c) {
|
|
1035
|
-
const _0x7a4cf0 = _0x48f325;
|
|
1036
|
-
try {
|
|
1037
|
-
const _0x363bd4 = parseTarget(_0x518fa3);
|
|
1038
|
-
if (_0x363bd4[_0x7a4cf0(0x2e4)] !== 'thread')
|
|
1039
|
-
return ![];
|
|
1040
|
-
const _0x29dd9e = typeof _0x16d43c[_0x7a4cf0(_0x1c6706._0x32488c)] === _0x7a4cf0(_0x1c6706._0x495178) && Number[_0x7a4cf0(_0x1c6706._0x581a5c)](_0x16d43c['threadNumber']) ? _0x16d43c['threadNumber'] : void 0x0;
|
|
1041
|
-
if (_0x29dd9e != null && _0x363bd4[_0x7a4cf0(_0x1c6706._0x28bf38)] === 't' + _0x29dd9e)
|
|
1042
|
-
return !![];
|
|
1043
|
-
const _0x9630a0 = typeof _0x16d43c[_0x7a4cf0(_0x1c6706._0x3a3a00)] === _0x7a4cf0(0x20c) ? _0x16d43c[_0x7a4cf0(0x269)] : void 0x0;
|
|
1044
|
-
if (_0x9630a0)
|
|
1045
|
-
return _0x363bd4[_0x7a4cf0(0x21e)] === _0x9630a0 || _0x9630a0[_0x7a4cf0(_0x1c6706._0x5172cd)](_0x363bd4['threadShortId']);
|
|
1046
|
-
const _0x197c69 = typeof _0x16d43c[_0x7a4cf0(0x1a0)] === _0x7a4cf0(0x20c) ? _0x16d43c['threadId'] : void 0x0;
|
|
1047
|
-
return Boolean(_0x197c69) && (_0x363bd4[_0x7a4cf0(_0x1c6706._0x28bf38)] === _0x197c69 || _0x197c69[_0x7a4cf0(0x20f)](_0x363bd4[_0x7a4cf0(0x21e)]));
|
|
1048
|
-
} catch {
|
|
1049
|
-
return ![];
|
|
1050
|
-
}
|
|
1051
|
-
}
|
|
1052
|
-
function _0x21bcad(_0x29afed) {
|
|
1053
|
-
const _0x35a13e = _0x48f325;
|
|
1054
|
-
return _0x29afed[_0x35a13e(0x2cd)]?.[_0x35a13e(0x215)] ?? _0x29afed[_0x35a13e(0x18b)]?.['id'] ?? _0x29afed[_0x35a13e(_0x56af25._0x41e4c8)] ?? '';
|
|
1055
|
-
}
|
|
1056
|
-
function _0x4f4593(_0x2a3f31) {
|
|
1057
|
-
const _0x4c2f12 = _0x48f325;
|
|
1058
|
-
return _0x2a3f31[_0x4c2f12(0x18b)]?.[_0x4c2f12(0x1e5)] ?? _0x21bcad(_0x2a3f31);
|
|
1059
|
-
}
|
|
1060
|
-
async function _0x5ec010(_0xbe6a15) {
|
|
1061
|
-
const _0x5b6a91 = _0x48f325, _0x13bc88 = Math['min'](_0xbe6a15[_0x5b6a91(0x1ab)] ?? 0x32, 0x64), _0x416fa6 = await _0x11949c(), _0x51e0be = new URLSearchParams();
|
|
1062
|
-
_0x51e0be['set'](_0x5b6a91(_0x5178d6._0x1fb818), String(_0x13bc88));
|
|
1063
|
-
_0xbe6a15['threadId'] ? (_0x51e0be[_0x5b6a91(_0x5178d6._0x3b41f1)]('threadId', _0xbe6a15[_0x5b6a91(0x1a0)]), _0x51e0be[_0x5b6a91(_0x5178d6._0x3b41f1)](_0x5b6a91(0x232), _0xbe6a15[_0x5b6a91(0x232)])) : _0x51e0be[_0x5b6a91(_0x5178d6._0x3153ff)](_0x5b6a91(0x232), _0xbe6a15[_0x5b6a91(_0x5178d6._0x336b5f)]);
|
|
1064
|
-
_0xbe6a15[_0x5b6a91(0x21b)] && _0x51e0be[_0x5b6a91(0x273)](_0x5b6a91(0x202), String(_0xbe6a15[_0x5b6a91(_0x5178d6._0x1c9450)]));
|
|
1065
|
-
_0xbe6a15[_0x5b6a91(0x296)] !== void 0x0 && _0x51e0be['set'](_0x5b6a91(0x296), String(_0xbe6a15[_0x5b6a91(0x296)]));
|
|
1066
|
-
const _0x4dc5a8 = await _0x2827a2(_0x5b6a91(_0x5178d6._0x338fb7) + _0x3bb6b7[_0x5b6a91(0x176)] + '/history?' + _0x51e0be[_0x5b6a91(_0x5178d6._0x2ca19f)](), {
|
|
1067
|
-
'headers': _0xc87eec,
|
|
1068
|
-
'method': _0x5b6a91(0x288)
|
|
1069
|
-
}), _0x42b8d4 = (_0x4dc5a8['data'] ?? [])[_0x5b6a91(_0x5178d6._0x4a339f)](_0x57f9a4 => ({
|
|
1070
|
-
'attachments': (_0x57f9a4[_0x5b6a91(0x16b)] ?? [])[_0x5b6a91(0x272)](_0xa08c73 => ({
|
|
1071
|
-
'filename': _0xa08c73[_0x5b6a91(0x2a0)] ?? _0xa08c73['id'],
|
|
1072
|
-
'id': _0xa08c73['id']
|
|
1073
|
-
})),
|
|
1074
|
-
'content': _0x57f9a4['bodyMarkdown'] ?? '',
|
|
1075
|
-
'createdAt': _0x57f9a4['createdAt'],
|
|
1076
|
-
..._0x57f9a4['kind'] && _0x57f9a4[_0x5b6a91(0x2e4)] !== _0x5b6a91(0x21a) ? { 'kind': _0x57f9a4[_0x5b6a91(0x2e4)] } : {},
|
|
1077
|
-
'messageId': _0x57f9a4['id'],
|
|
1078
|
-
'senderName': _0x57f9a4[_0x5b6a91(0x1c2)],
|
|
1079
|
-
'senderType': _0x517ef7(_0x57f9a4[_0x5b6a91(0x1c2)], _0x416fa6),
|
|
1080
|
-
'seq': _0x57f9a4[_0x5b6a91(0x1c8)] ?? 0x0
|
|
1081
|
-
}));
|
|
1082
|
-
return {
|
|
1083
|
-
'channel': _0xbe6a15[_0x5b6a91(_0x5178d6._0x18db34)],
|
|
1084
|
-
'hasMore': _0x4dc5a8[_0x5b6a91(_0x5178d6._0x4a8030)]?.[_0x5b6a91(_0x5178d6._0x5169dc)] ?? ![],
|
|
1085
|
-
'messages': _0x42b8d4,
|
|
1086
|
-
'nextCursor': _0x4dc5a8['meta']?.[_0x5b6a91(0x202)]
|
|
1087
|
-
};
|
|
1088
|
-
}
|
|
1089
|
-
return {
|
|
1090
|
-
async 'sendMessage'(_0x5a235b) {
|
|
1091
|
-
const _0x47ab3c = _0x48f325, _0x54596e = await _0x110dfc(_0x5a235b[_0x47ab3c(_0x4859a0._0x4cb8f4)]), _0x5ebc31 = _0x5a235b[_0x47ab3c(0x162)][_0x47ab3c(_0x4859a0._0x48b217)]('@') ? extractMentionedParticipantIds(_0x5a235b['content'], await _0x11949c()) : [], _0x3a854b = await _0x2827a2('/internal/agent/' + _0x3bb6b7[_0x47ab3c(_0x4859a0._0x3322d0)] + '/send', {
|
|
1092
|
-
'body': JSON[_0x47ab3c(_0x4859a0._0x8af1c2)]({
|
|
1093
|
-
'attachment_ids': _0x5a235b[_0x47ab3c(_0x4859a0._0x378aef)],
|
|
1094
|
-
'bodyMarkdown': _0x5a235b[_0x47ab3c(0x162)],
|
|
1095
|
-
'channelId': _0x54596e[_0x47ab3c(0x232)],
|
|
1096
|
-
..._0x5ebc31[_0x47ab3c(0x19b)] > 0x0 ? { 'mentionedParticipantIds': _0x5ebc31 } : {},
|
|
1097
|
-
'threadId': _0x54596e[_0x47ab3c(_0x4859a0._0x2782d3)],
|
|
1098
|
-
..._0x5a235b[_0x47ab3c(0x18e)] ? { 'visibility': _0x5a235b[_0x47ab3c(_0x4859a0._0x44582d)] } : {}
|
|
1099
|
-
}),
|
|
1100
|
-
'headers': _0xc87eec,
|
|
1101
|
-
'method': _0x47ab3c(_0x4859a0._0x3bb155)
|
|
1102
|
-
});
|
|
1103
|
-
return { 'messageId': _0x3a854b['data']?.['id'] ?? '' };
|
|
1104
|
-
},
|
|
1105
|
-
async 'listSchedules'() {
|
|
1106
|
-
const _0x1bb3b1 = _0x48f325, _0x44493c = await _0x2827a2(_0x1bb3b1(0x16f), {
|
|
1107
|
-
'headers': _0xc87eec,
|
|
1108
|
-
'method': _0x1bb3b1(0x288)
|
|
1109
|
-
});
|
|
1110
|
-
return _0x44493c['data'] ?? [];
|
|
1111
|
-
},
|
|
1112
|
-
async 'claimScheduleRun'(_0x2cf883) {
|
|
1113
|
-
const _0x135e35 = _0x48f325, _0x9545d5 = await _0x2827a2(_0x135e35(_0x1a75a5._0x456695), {
|
|
1114
|
-
'body': JSON[_0x135e35(_0x1a75a5._0x335977)](_0x2cf883),
|
|
1115
|
-
'headers': _0xc87eec,
|
|
1116
|
-
'method': _0x135e35(0x199)
|
|
1117
|
-
});
|
|
1118
|
-
return _0x9545d5[_0x135e35(0x264)] ?? {
|
|
1119
|
-
'granted': ![],
|
|
1120
|
-
'runId': null,
|
|
1121
|
-
'schedule': null,
|
|
1122
|
-
'scheduledFor': _0x2cf883[_0x135e35(0x1eb)]
|
|
1123
|
-
};
|
|
1124
|
-
},
|
|
1125
|
-
async 'startScheduleRun'(_0xc782aa) {
|
|
1126
|
-
const _0x1df7a8 = _0x48f325, _0x3104d2 = await _0x2827a2(_0x1df7a8(0x1b7) + encodeURIComponent(_0xc782aa[_0x1df7a8(0x2bd)]) + _0x1df7a8(0x299), {
|
|
1127
|
-
'body': JSON[_0x1df7a8(0x161)]({}),
|
|
1128
|
-
'headers': _0xc87eec,
|
|
1129
|
-
'method': _0x1df7a8(0x199)
|
|
1130
|
-
});
|
|
1131
|
-
return _0x3104d2[_0x1df7a8(_0x1939d0._0xb11cb8)] ?? {
|
|
1132
|
-
'claimedByDaemonId': '',
|
|
1133
|
-
'id': _0xc782aa[_0x1df7a8(0x2bd)],
|
|
1134
|
-
'scheduleId': '',
|
|
1135
|
-
'status': _0x1df7a8(0x259)
|
|
1136
|
-
};
|
|
1137
|
-
},
|
|
1138
|
-
async 'finishScheduleRun'(_0xf43cef) {
|
|
1139
|
-
const _0xf8f16c = _0x48f325, _0x2179cb = await _0x2827a2(_0xf8f16c(_0x1b448d._0x1d6b78) + encodeURIComponent(_0xf43cef[_0xf8f16c(0x2bd)]) + _0xf8f16c(_0x1b448d._0x4a4bcf), {
|
|
1140
|
-
'body': JSON['stringify']({
|
|
1141
|
-
'error': _0xf43cef[_0xf8f16c(_0x1b448d._0x143645)],
|
|
1142
|
-
'resultJson': _0xf43cef[_0xf8f16c(_0x1b448d._0x182c4d)],
|
|
1143
|
-
'status': _0xf43cef[_0xf8f16c(_0x1b448d._0x49211a)]
|
|
1144
|
-
}),
|
|
1145
|
-
'headers': _0xc87eec,
|
|
1146
|
-
'method': _0xf8f16c(0x199)
|
|
1147
|
-
});
|
|
1148
|
-
return _0x2179cb[_0xf8f16c(_0x1b448d._0x4d0d00)] ?? {
|
|
1149
|
-
'nextRunAt': null,
|
|
1150
|
-
'run': {
|
|
1151
|
-
'claimedByDaemonId': '',
|
|
1152
|
-
'id': _0xf43cef[_0xf8f16c(0x2bd)],
|
|
1153
|
-
'scheduleId': '',
|
|
1154
|
-
'status': _0xf43cef[_0xf8f16c(0x1b0)]
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
},
|
|
1158
|
-
async 'listTasks'(_0x20722d) {
|
|
1159
|
-
const _0x1830d3 = _0x48f325, _0x2afdbc = new URLSearchParams();
|
|
1160
|
-
return _0x2afdbc[_0x1830d3(0x273)]('channel', _0x20722d[_0x1830d3(0x198)]), _0x20722d['status'] && _0x2afdbc[_0x1830d3(_0xf46048._0x5f45ca)]('status', _0x20722d[_0x1830d3(_0xf46048._0x520316)]), _0x316b90(_0x1830d3(0x19d) + _0x3bb6b7['agentId'] + _0x1830d3(_0xf46048._0x614c6) + _0x2afdbc[_0x1830d3(0x2d9)](), {
|
|
1161
|
-
'headers': _0xc87eec,
|
|
1162
|
-
'method': 'GET'
|
|
1163
|
-
});
|
|
1164
|
-
},
|
|
1165
|
-
async 'createTasks'(_0x32a205) {
|
|
1166
|
-
const _0xa261a2 = _0x48f325;
|
|
1167
|
-
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0xa261a2(_0x2916ed._0xbe4c7d)] + _0xa261a2(0x2cc), {
|
|
1168
|
-
'body': JSON[_0xa261a2(_0x2916ed._0x21540b)]({
|
|
1169
|
-
..._0x32a205,
|
|
1170
|
-
'idempotency_key': _0x102300('create_tasks', _0x32a205)
|
|
1171
|
-
}),
|
|
1172
|
-
'headers': _0xc87eec,
|
|
1173
|
-
'method': 'POST'
|
|
1174
|
-
});
|
|
1175
|
-
},
|
|
1176
|
-
async 'claimTasks'(_0x4bb18d) {
|
|
1177
|
-
const _0x239398 = _0x48f325;
|
|
1178
|
-
return _0x316b90(_0x239398(_0x50dace._0x34f27e) + _0x3bb6b7['agentId'] + _0x239398(0x27a), {
|
|
1179
|
-
'body': JSON[_0x239398(0x161)]({
|
|
1180
|
-
..._0x4bb18d,
|
|
1181
|
-
'idempotency_key': _0x102300('claim_tasks', _0x4bb18d)
|
|
1182
|
-
}),
|
|
1183
|
-
'headers': _0xc87eec,
|
|
1184
|
-
'method': _0x239398(0x199)
|
|
1185
|
-
});
|
|
1186
|
-
},
|
|
1187
|
-
async 'unclaimTask'(_0x173089) {
|
|
1188
|
-
const _0x5ea04f = _0x48f325;
|
|
1189
|
-
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0x5ea04f(0x176)] + _0x5ea04f(0x160), {
|
|
1190
|
-
'body': JSON[_0x5ea04f(_0x9a1578._0x3c041f)]({
|
|
1191
|
-
..._0x173089,
|
|
1192
|
-
'idempotency_key': _0x102300(_0x5ea04f(_0x9a1578._0x293887), _0x173089)
|
|
1193
|
-
}),
|
|
1194
|
-
'headers': _0xc87eec,
|
|
1195
|
-
'method': _0x5ea04f(_0x9a1578._0xbc75fe)
|
|
1196
|
-
});
|
|
1197
|
-
},
|
|
1198
|
-
async 'updateTaskStatus'(_0x3c9423) {
|
|
1199
|
-
const _0x40004a = _0x48f325;
|
|
1200
|
-
return _0x316b90('/internal/agent/' + _0x3bb6b7[_0x40004a(0x176)] + _0x40004a(_0x200b23._0x31b56f), {
|
|
1201
|
-
'body': JSON['stringify']({
|
|
1202
|
-
..._0x3c9423,
|
|
1203
|
-
'idempotency_key': _0x102300(_0x40004a(0x1f8), _0x3c9423)
|
|
1204
|
-
}),
|
|
1205
|
-
'headers': _0xc87eec,
|
|
1206
|
-
'method': _0x40004a(0x199)
|
|
1207
|
-
});
|
|
1208
|
-
},
|
|
1209
|
-
async 'uploadFile'(_0x213157) {
|
|
1210
|
-
const _0x372205 = _0x48f325, _0x416c69 = await _0x110dfc(_0x213157[_0x372205(0x198)]);
|
|
1211
|
-
if (_0x416c69[_0x372205(0x1a0)])
|
|
1212
|
-
throw new Error(_0x372205(0x17c));
|
|
1213
|
-
const _0x45a4cf = await _0x2827a2(_0x372205(0x19d) + _0x3bb6b7[_0x372205(_0x2c5794._0xa85bf2)] + _0x372205(_0x2c5794._0x15b995), {
|
|
1214
|
-
'body': JSON[_0x372205(_0x2c5794._0x23a462)]({
|
|
1215
|
-
'channel': _0x416c69['target'],
|
|
1216
|
-
'contentBase64': _0x213157[_0x372205(0x168)],
|
|
1217
|
-
'contentType': _0x213157[_0x372205(_0x2c5794._0xaf3664)],
|
|
1218
|
-
'originalFilename': _0x213157[_0x372205(_0x2c5794._0xf5083b)]
|
|
1219
|
-
}),
|
|
1220
|
-
'headers': _0xc87eec,
|
|
1221
|
-
'method': _0x372205(0x199)
|
|
1222
|
-
});
|
|
1223
|
-
return {
|
|
1224
|
-
'attachmentId': _0x45a4cf[_0x372205(0x264)]?.['id'] ?? '',
|
|
1225
|
-
'filename': _0x45a4cf[_0x372205(_0x2c5794._0xe09642)]?.['originalFilename'] ?? _0x213157[_0x372205(0x2a0)],
|
|
1226
|
-
'sizeBytes': _0x45a4cf['data']?.[_0x372205(_0x2c5794._0x7f2658)] ?? 0x0
|
|
1227
|
-
};
|
|
1228
|
-
},
|
|
1229
|
-
async 'downloadAttachment'(_0x43f0ad) {
|
|
1230
|
-
const _0x4e4c67 = _0x48f325, _0x56d8d7 = await _0x2827a2(_0x4e4c67(_0x6a3ff5._0x254fd0) + _0x43f0ad, {
|
|
1231
|
-
'headers': _0xc87eec,
|
|
1232
|
-
'method': _0x4e4c67(_0x6a3ff5._0x5f3711)
|
|
1233
|
-
}), _0x42cccd = new AbortController(), _0x30b6c4 = setTimeout(() => _0x42cccd[_0x4e4c67(0x295)](), _0x48c043);
|
|
1234
|
-
try {
|
|
1235
|
-
const _0x4c5a30 = await _0x230d44(_0x4cea4c + '/api/attachments/' + _0x43f0ad + '/content', {
|
|
1236
|
-
'headers': _0xc87eec,
|
|
1237
|
-
'method': 'GET',
|
|
1238
|
-
'signal': _0x42cccd[_0x4e4c67(_0x6a3ff5._0x6dfcc6)]
|
|
1239
|
-
});
|
|
1240
|
-
if (!_0x4c5a30['ok'])
|
|
1241
|
-
throw new Error(_0x4e4c67(0x211) + _0x4c5a30[_0x4e4c67(0x1b0)]);
|
|
1242
|
-
return {
|
|
1243
|
-
'contentType': _0x56d8d7[_0x4e4c67(0x264)]?.[_0x4e4c67(_0x6a3ff5._0x209772)] ?? _0x4c5a30[_0x4e4c67(_0x6a3ff5._0x1460ec)][_0x4e4c67(_0x6a3ff5._0x100ac6)](_0x4e4c67(_0x6a3ff5._0x6b5069)) ?? _0x4e4c67(0x26c),
|
|
1244
|
-
'data': Buffer[_0x4e4c67(0x207)](await _0x4c5a30[_0x4e4c67(_0x6a3ff5._0x573126)]()),
|
|
1245
|
-
'originalFilename': _0x56d8d7[_0x4e4c67(0x264)]?.[_0x4e4c67(0x27f)]
|
|
1246
|
-
};
|
|
1247
|
-
} finally {
|
|
1248
|
-
clearTimeout(_0x30b6c4);
|
|
1249
|
-
}
|
|
1250
|
-
},
|
|
1251
|
-
async 'listServer'() {
|
|
1252
|
-
return _0x11949c({ 'forceRefresh': !![] });
|
|
1253
|
-
},
|
|
1254
|
-
async 'readHistory'(_0x2323f6) {
|
|
1255
|
-
const _0x4161ed = _0x48f325, _0x1a4cb5 = await _0x110dfc(_0x2323f6['channel']);
|
|
1256
|
-
return _0x5ec010({
|
|
1257
|
-
'after': _0x2323f6[_0x4161ed(_0x63a30c._0x5db128)],
|
|
1258
|
-
'before': _0x2323f6[_0x4161ed(_0x63a30c._0x3deb5d)],
|
|
1259
|
-
'channelId': _0x1a4cb5['channelId'],
|
|
1260
|
-
'channelTarget': _0x1a4cb5[_0x4161ed(0x18c)],
|
|
1261
|
-
'limit': _0x2323f6[_0x4161ed(0x1ab)],
|
|
1262
|
-
'threadId': _0x1a4cb5[_0x4161ed(0x1a0)]
|
|
1263
|
-
});
|
|
1264
|
-
},
|
|
1265
|
-
'resolveTarget': _0x110dfc,
|
|
1266
|
-
async 'checkMessages'() {
|
|
1267
|
-
const _0x58443c = {
|
|
1268
|
-
_0x53d111: 0x278,
|
|
1269
|
-
_0x28e730: 0x2a7
|
|
1270
|
-
}, _0xe2b955 = _0x48f325, _0xe1fc3a = new URLSearchParams();
|
|
1271
|
-
_0xe1fc3a[_0xe2b955(0x273)](_0xe2b955(0x2c8), String(_0x15451c));
|
|
1272
|
-
const _0x260e71 = _0xe1fc3a['toString'](), _0x4f8498 = await _0x2827a2(_0xe2b955(_0x1c0289._0x48ce1a) + _0x3bb6b7[_0xe2b955(_0x1c0289._0x451525)] + _0xe2b955(0x24f) + (_0x260e71 ? '?' + _0x260e71 : ''), {
|
|
1273
|
-
'headers': _0xc87eec,
|
|
1274
|
-
'method': _0xe2b955(_0x1c0289._0xe426c5)
|
|
1275
|
-
}), _0x42c094 = _0x4f8498[_0xe2b955(0x264)] ?? [], _0x1a8817 = _0x4f8498[_0xe2b955(_0x1c0289._0x2f4597)]?.[_0xe2b955(_0x1c0289._0x2cbe33)], _0x23e081 = _0x2bd29b ? _0x42c094['filter'](_0x117964 => {
|
|
1276
|
-
const _0x42b80a = _0xe2b955;
|
|
1277
|
-
if (_0x117964[_0x42b80a(_0x58443c._0x53d111)] !== 'message')
|
|
1278
|
-
return ![];
|
|
1279
|
-
return _0x222741(_0x2bd29b, asRecord(_0x117964[_0x42b80a(_0x58443c._0x28e730)]));
|
|
1280
|
-
}) : _0x42c094, _0x1565e8 = _0x1a8817 !== void 0x0 ? _0x2bd29b ? Math[_0xe2b955(_0x1c0289._0x266778)](_0x15451c, _0x23e081[_0xe2b955(0x19b)] > 0x0 ? _0x23e081[_0x23e081[_0xe2b955(_0x1c0289._0x22a6ca)] - 0x1][_0xe2b955(0x1cc)] : _0x15451c) : Math['max'](_0x15451c, _0x1a8817) : _0x23e081[_0xe2b955(_0x1c0289._0x2e059d)] > 0x0 ? Math[_0xe2b955(0x225)](_0x15451c, _0x23e081[_0x23e081[_0xe2b955(0x19b)] - 0x1]['seq']) : _0x15451c, _0x53d822 = _0x42c094[_0xe2b955(_0x1c0289._0x5a9b60)](_0x36703f => _0x36703f[_0xe2b955(0x278)] === _0xe2b955(0x2e8)), _0x1b7358 = _0x2bd29b === void 0x0 && _0x207f3c;
|
|
1281
|
-
let _0x48430a = await _0x11949c(), _0x2542bc = new Map(_0x48430a[_0xe2b955(_0x1c0289._0x15b654)]['map'](_0xc97f01 => [
|
|
1282
|
-
_0xc97f01['id'],
|
|
1283
|
-
_0xc97f01
|
|
1284
|
-
]));
|
|
1285
|
-
const _0x457934 = _0x53d822[_0xe2b955(_0x1c0289._0x22b91a)](_0x80e8ec => {
|
|
1286
|
-
const _0x1abf8d = _0xe2b955, _0x54d8fa = asRecord(_0x80e8ec[_0x1abf8d(_0x1d69b1._0x36ef6d)]), _0x3fb2fc = typeof _0x54d8fa?.[_0x1abf8d(_0x1d69b1._0x31e886)] === _0x1abf8d(_0x1d69b1._0x1699b6) ? _0x54d8fa[_0x1abf8d(0x232)] : '';
|
|
1287
|
-
return Boolean(_0x3fb2fc) && !_0x2542bc['has'](_0x3fb2fc);
|
|
1288
|
-
});
|
|
1289
|
-
_0x457934 && (_0x48430a = await _0x11949c({ 'forceRefresh': !![] }), _0x2542bc = new Map(_0x48430a[_0xe2b955(_0x1c0289._0x15b654)][_0xe2b955(0x272)](_0x45516a => [
|
|
1290
|
-
_0x45516a['id'],
|
|
1291
|
-
_0x45516a
|
|
1292
|
-
])));
|
|
1293
|
-
const _0x50f22c = new Map();
|
|
1294
|
-
for (const _0x252c00 of _0x53d822) {
|
|
1295
|
-
const _0x159dcb = asRecord(_0x252c00[_0xe2b955(0x2a7)]), _0x44c53a = typeof _0x159dcb[_0xe2b955(0x232)] === _0xe2b955(_0x1c0289._0x5b04b3) ? _0x159dcb[_0xe2b955(_0x1c0289._0x46e7df)] : '';
|
|
1296
|
-
if (!_0x44c53a)
|
|
1297
|
-
continue;
|
|
1298
|
-
const _0x27597a = typeof _0x159dcb[_0xe2b955(_0x1c0289._0xf1d99a)] === _0xe2b955(_0x1c0289._0x2f7f46) ? _0x159dcb[_0xe2b955(0x1a0)] : void 0x0, _0x4543c7 = typeof _0x159dcb[_0xe2b955(_0x1c0289._0x271bb9)] === _0xe2b955(_0x1c0289._0x3194a2) ? _0x159dcb[_0xe2b955(0x269)] : void 0x0, _0x27765c = typeof _0x159dcb[_0xe2b955(_0x1c0289._0x5aaad6)] === 'number' && Number[_0xe2b955(_0x1c0289._0x5bedd8)](_0x159dcb[_0xe2b955(_0x1c0289._0x5aaad6)]) ? _0x159dcb[_0xe2b955(_0x1c0289._0x6ba06a)] : void 0x0, _0x3be78c = Boolean(_0x27597a && (!_0x4543c7 || _0x252c00[_0xe2b955(_0x1c0289._0x4078ae)] !== _0x4543c7)), _0x5c4728 = _0x3be78c ? _0x44c53a + ':' + _0x27597a : _0x44c53a, _0x142dd9 = _0x50f22c['get'](_0x5c4728) ?? {
|
|
1299
|
-
'aggregateIds': [],
|
|
1300
|
-
'channelId': _0x44c53a,
|
|
1301
|
-
'entries': new Map(),
|
|
1302
|
-
'isThreadReply': _0x3be78c,
|
|
1303
|
-
'rootMessageId': _0x4543c7,
|
|
1304
|
-
'threadNumber': _0x27765c,
|
|
1305
|
-
'threadId': _0x3be78c ? _0x27597a : void 0x0
|
|
1306
|
-
};
|
|
1307
|
-
_0x142dd9[_0xe2b955(_0x1c0289._0x383e10)] == null && _0x27765c != null && (_0x142dd9[_0xe2b955(0x29e)] = _0x27765c), !_0x142dd9[_0xe2b955(_0x1c0289._0x444bac)] && _0x4543c7 && (_0x142dd9[_0xe2b955(_0x1c0289._0xdc1113)] = _0x4543c7), _0x142dd9[_0xe2b955(0x242)][_0xe2b955(_0x1c0289._0x586d41)](_0x252c00['aggregateId']), _0x142dd9[_0xe2b955(_0x1c0289._0x5c04f3)][_0xe2b955(0x273)](_0x252c00[_0xe2b955(0x1d8)], {
|
|
1308
|
-
'payloadJson': _0x252c00[_0xe2b955(0x2a7)],
|
|
1309
|
-
'seq': _0x252c00['seq']
|
|
1310
|
-
}), _0x50f22c[_0xe2b955(0x273)](_0x5c4728, _0x142dd9);
|
|
1311
|
-
}
|
|
1312
|
-
const _0x3843d3 = [];
|
|
1313
|
-
for (const _0x555b88 of _0x50f22c[_0xe2b955(0x1b1)]()) {
|
|
1314
|
-
const {
|
|
1315
|
-
channelId: _0xe367ec,
|
|
1316
|
-
threadId: _0x58e011,
|
|
1317
|
-
rootMessageId: _0x20fb15,
|
|
1318
|
-
threadNumber: _0x2f3fe7,
|
|
1319
|
-
aggregateIds: _0x4cbb95,
|
|
1320
|
-
isThreadReply: _0x4430a1,
|
|
1321
|
-
entries: _0x1e2983
|
|
1322
|
-
} = _0x555b88, _0x3ca988 = _0x2542bc[_0xe2b955(0x286)](_0xe367ec), _0x4e8f8a = _0x3ca988?.[_0xe2b955(0x1e5)] ?? _0xe367ec, _0x1dce52 = _0x3ca988?.[_0xe2b955(0x2e4)] === 'dm' ? _0xe2b955(_0x1c0289._0x44eac3) + _0x4e8f8a : '#' + _0x4e8f8a, _0x316f7f = {
|
|
1323
|
-
'channelTarget': _0x1dce52,
|
|
1324
|
-
'rootMessageId': _0x20fb15,
|
|
1325
|
-
'threadId': _0x58e011,
|
|
1326
|
-
'threadNumber': _0x2f3fe7
|
|
1327
|
-
}, _0xb61251 = await _0x5ec010({
|
|
1328
|
-
'channelId': _0xe367ec,
|
|
1329
|
-
'channelTarget': _0x1dce52,
|
|
1330
|
-
'limit': Math['max'](_0x4cbb95['length'], 0x32),
|
|
1331
|
-
'threadId': _0x58e011
|
|
1332
|
-
}), _0xd6c793 = new Map(_0xb61251[_0xe2b955(0x20b)][_0xe2b955(_0x1c0289._0x12954c)](_0x30636e => [
|
|
1333
|
-
_0x30636e[_0xe2b955(0x18d)],
|
|
1334
|
-
_0x30636e
|
|
1335
|
-
])), _0x23104d = _0x58e011 ? _0x1a9f4f(_0x316f7f) : _0x1dce52, _0xfee26a = _0x2bd29b ? _0x4430a1 && _0x377524(_0x2bd29b, _0x316f7f) : !![], _0x5b0ef6 = _0x4430a1 ? _0xfee26a && _0x2bd29b ? _0x2bd29b : _0x23104d : _0x1dce52;
|
|
1336
|
-
for (const _0x47fcf8 of _0x4cbb95) {
|
|
1337
|
-
if (!_0xfee26a)
|
|
1338
|
-
continue;
|
|
1339
|
-
const _0x492736 = _0x1e2983[_0xe2b955(_0x1c0289._0x744452)](_0x47fcf8), _0x145d7a = _0x492736 ? asRecord(_0x492736['payloadJson']) : void 0x0, _0x199f00 = _0x145d7a?.[_0xe2b955(_0x1c0289._0x5ee732)] === _0xe2b955(_0x1c0289._0x1710bf);
|
|
1340
|
-
if (_0x1b7358 && _0x199f00)
|
|
1341
|
-
continue;
|
|
1342
|
-
const _0x378f1a = _0xd6c793[_0xe2b955(0x286)](_0x47fcf8);
|
|
1343
|
-
if (_0x378f1a) {
|
|
1344
|
-
_0x3843d3[_0xe2b955(0x2e9)]({
|
|
1345
|
-
'attachments': _0x378f1a[_0xe2b955(0x16b)],
|
|
1346
|
-
'content': _0x378f1a[_0xe2b955(_0x1c0289._0x544c3)],
|
|
1347
|
-
'createdAt': _0x378f1a['createdAt'],
|
|
1348
|
-
..._0x378f1a['kind'] ? { 'kind': _0x378f1a[_0xe2b955(_0x1c0289._0x540203)] } : {},
|
|
1349
|
-
'messageId': _0x378f1a['messageId'],
|
|
1350
|
-
'senderName': _0x378f1a[_0xe2b955(0x1a1)],
|
|
1351
|
-
'senderType': _0x378f1a[_0xe2b955(0x1d6)],
|
|
1352
|
-
'target': _0x5b0ef6,
|
|
1353
|
-
..._0x199f00 ? { 'targetedTask': !![] } : {}
|
|
1354
|
-
});
|
|
1355
|
-
continue;
|
|
1356
|
-
}
|
|
1357
|
-
if (_0x492736) {
|
|
1358
|
-
const _0x2c6f79 = typeof _0x145d7a?.[_0xe2b955(_0x1c0289._0x213e9a)] === _0xe2b955(0x20c) ? _0x145d7a[_0xe2b955(_0x1c0289._0x213e9a)] : '', _0x5dacba = typeof _0x145d7a?.[_0xe2b955(0x218)] === _0xe2b955(0x20c) ? _0x145d7a[_0xe2b955(_0x1c0289._0x39bbf3)] : '', _0xf51d6b = typeof _0x145d7a?.[_0xe2b955(_0x1c0289._0x540203)] === _0xe2b955(0x20c) && _0x145d7a[_0xe2b955(0x2e4)] !== _0xe2b955(_0x1c0289._0x595d7c) ? _0x145d7a[_0xe2b955(0x2e4)] : void 0x0;
|
|
1359
|
-
_0x2c6f79 && _0x5dacba && _0x3843d3[_0xe2b955(_0x1c0289._0x586d41)]({
|
|
1360
|
-
'attachments': [],
|
|
1361
|
-
'content': _0x5dacba,
|
|
1362
|
-
'createdAt': new Date()[_0xe2b955(0x245)](),
|
|
1363
|
-
..._0xf51d6b ? { 'kind': _0xf51d6b } : {},
|
|
1364
|
-
'messageId': _0x47fcf8,
|
|
1365
|
-
'senderName': _0x2c6f79,
|
|
1366
|
-
'senderType': _0x517ef7(_0x2c6f79, _0x48430a),
|
|
1367
|
-
'target': _0x5b0ef6,
|
|
1368
|
-
..._0x199f00 ? { 'targetedTask': !![] } : {}
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
if (_0x1565e8 > 0x0) {
|
|
1374
|
-
if (_0x35c865)
|
|
1375
|
-
await _0x2d0964(_0x1565e8);
|
|
1376
|
-
else
|
|
1377
|
-
_0x5e99c6 && await _0x5add0b(_0x1565e8);
|
|
1378
|
-
}
|
|
1379
|
-
return _0x1565e8 > _0x15451c && (_0x15451c = _0x1565e8), { 'messages': _0x2bd29b ? _0x3843d3 : _0x1b7358 ? _0x3843d3[_0xe2b955(0x23e)](_0xff35f8 => _0xff35f8[_0xe2b955(0x1df)] !== !![]) : _0x3843d3 };
|
|
1380
|
-
}
|
|
1521
|
+
_0x2631 = function () {
|
|
1522
|
+
return _0x2a4fbf;
|
|
1381
1523
|
};
|
|
1524
|
+
return _0x2631();
|
|
1382
1525
|
}
|
|
1383
|
-
function
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
return _0x180a57(0x244);
|
|
1412
|
-
return _0x1f3f9c['map'](_0x20ddf3 => {
|
|
1413
|
-
const _0x4c957a = _0x180a57, _0x14c1a7 = _0x20ddf3['senderType'] === _0x4c957a(0x1ed) ? _0x4c957a(0x21f) : '', _0x3fdb2b = _0x20ddf3[_0x4c957a(0x2e4)] && _0x20ddf3['kind'] !== _0x4c957a(0x21a) ? _0x4c957a(0x25b) + _0x20ddf3[_0x4c957a(0x2e4)] : '';
|
|
1414
|
-
return _0x4c957a(0x1a6) + _0x20ddf3[_0x4c957a(0x18c)] + _0x4c957a(_0x3fdbcd._0x246907) + _0x20ddf3[_0x4c957a(0x18d)]['slice'](0x0, 0x8) + _0x4c957a(0x2cf) + toLocalTime(_0x20ddf3[_0x4c957a(0x2c2)]) + _0x14c1a7 + _0x3fdb2b + _0x4c957a(0x1e7) + _0x20ddf3[_0x4c957a(0x1a1)] + ':\x20' + _0x20ddf3[_0x4c957a(_0x3fdbcd._0x31cbba)] + formatAttachmentSuffix(_0x20ddf3[_0x4c957a(_0x3fdbcd._0x3968de)]);
|
|
1415
|
-
})[_0x180a57(0x1dd)]('\x0a');
|
|
1416
|
-
}
|
|
1417
|
-
function formatHistory(_0x47cccf) {
|
|
1418
|
-
const _0xd1e2c2 = {
|
|
1419
|
-
_0x35fd47: 0x20b,
|
|
1420
|
-
_0x21c240: 0x19b,
|
|
1421
|
-
_0x446c9b: 0x28e,
|
|
1422
|
-
_0xf4bac0: 0x1b4,
|
|
1423
|
-
_0xe0562c: 0x2b4,
|
|
1424
|
-
_0x54b3a7: 0x263,
|
|
1425
|
-
_0x4a3982: 0x19b,
|
|
1426
|
-
_0xd47706: 0x2a3
|
|
1427
|
-
}, _0x219e4e = {
|
|
1428
|
-
_0x52c70c: 0x1d6,
|
|
1429
|
-
_0x485306: 0x1ed,
|
|
1430
|
-
_0x2b69f6: 0x2e4,
|
|
1431
|
-
_0x405411: 0x21a,
|
|
1432
|
-
_0x429916: 0x25b,
|
|
1433
|
-
_0x205e81: 0x2e4,
|
|
1434
|
-
_0x302a94: 0x18d,
|
|
1435
|
-
_0x88bde3: 0x162,
|
|
1436
|
-
_0x1d14f4: 0x16b
|
|
1437
|
-
}, _0x51eb1a = _0x28aee3;
|
|
1438
|
-
if (_0x47cccf[_0x51eb1a(_0xd1e2c2._0x35fd47)][_0x51eb1a(_0xd1e2c2._0x21c240)] === 0x0)
|
|
1439
|
-
return _0x51eb1a(_0xd1e2c2._0x446c9b) + _0x47cccf['channel'] + _0x51eb1a(0x167);
|
|
1440
|
-
const _0x413c57 = _0x47cccf[_0x51eb1a(0x20b)]['map'](_0x31f1c5 => {
|
|
1441
|
-
const _0x36c59c = _0x51eb1a, _0x373dfd = _0x31f1c5[_0x36c59c(_0x219e4e._0x52c70c)] === _0x36c59c(_0x219e4e._0x485306) ? _0x36c59c(0x21f) : '', _0x744a58 = _0x31f1c5[_0x36c59c(_0x219e4e._0x2b69f6)] && _0x31f1c5[_0x36c59c(0x2e4)] !== _0x36c59c(_0x219e4e._0x405411) ? _0x36c59c(_0x219e4e._0x429916) + _0x31f1c5[_0x36c59c(_0x219e4e._0x205e81)] : '';
|
|
1442
|
-
return '[seq=' + _0x31f1c5[_0x36c59c(0x1cc)] + _0x36c59c(0x2db) + _0x31f1c5[_0x36c59c(_0x219e4e._0x302a94)] + _0x36c59c(0x2cf) + toLocalTime(_0x31f1c5['createdAt']) + _0x373dfd + _0x744a58 + _0x36c59c(0x1e7) + _0x31f1c5[_0x36c59c(0x1a1)] + ':\x20' + _0x31f1c5[_0x36c59c(_0x219e4e._0x88bde3)] + formatAttachmentSuffix(_0x31f1c5[_0x36c59c(_0x219e4e._0x1d14f4)]);
|
|
1443
|
-
})[_0x51eb1a(0x1dd)]('\x0a'), _0x3a2531 = _0x47cccf[_0x51eb1a(_0xd1e2c2._0xf4bac0)] && _0x47cccf[_0x51eb1a(_0xd1e2c2._0xe0562c)] ? _0x51eb1a(0x22a) + _0x47cccf['messages'][_0x51eb1a(0x19b)] + _0x51eb1a(0x2b0) + _0x47cccf[_0x51eb1a(0x2b4)] + _0x51eb1a(_0xd1e2c2._0x54b3a7) : '';
|
|
1444
|
-
return _0x51eb1a(_0xd1e2c2._0x446c9b) + _0x47cccf[_0x51eb1a(0x198)] + '\x20(' + _0x47cccf['messages'][_0x51eb1a(_0xd1e2c2._0x4a3982)] + _0x51eb1a(_0xd1e2c2._0xd47706) + _0x413c57 + _0x3a2531;
|
|
1445
|
-
}
|
|
1446
|
-
function formatServerDirectory(_0x1c532b) {
|
|
1447
|
-
const _0x10be98 = {
|
|
1448
|
-
_0x92d4d1: 0x1d3,
|
|
1449
|
-
_0x2797d2: 0x272,
|
|
1450
|
-
_0x3555dc: 0x19c,
|
|
1451
|
-
_0x58d163: 0x19b,
|
|
1452
|
-
_0x5643fc: 0x1dd,
|
|
1453
|
-
_0x402e8c: 0x292,
|
|
1454
|
-
_0x1161a8: 0x19b,
|
|
1455
|
-
_0x102db9: 0x1c0,
|
|
1456
|
-
_0x262af8: 0x184
|
|
1457
|
-
}, _0x3f236c = _0x28aee3, _0x548bd5 = _0x1c532b['channels']['length'] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x92d4d1)][_0x3f236c(_0x10be98._0x2797d2)](_0x2a7cb7 => _0x2a7cb7[_0x3f236c(0x2ea)] ? _0x3f236c(0x2b8) + _0x2a7cb7['name'] + _0x3f236c(0x2cb) + _0x2a7cb7['description'] : '-\x20#' + _0x2a7cb7[_0x3f236c(0x1e5)])['join']('\x0a') : _0x3f236c(0x292), _0x310292 = _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(_0x10be98._0x58d163)] > 0x0 ? _0x1c532b[_0x3f236c(_0x10be98._0x3555dc)][_0x3f236c(0x272)](_0x43f38f => '-\x20@' + _0x43f38f[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : _0x3f236c(_0x10be98._0x402e8c), _0x16ad94 = _0x1c532b['humans'][_0x3f236c(_0x10be98._0x1161a8)] > 0x0 ? _0x1c532b['humans']['map'](_0x57c717 => _0x3f236c(0x2a9) + _0x57c717[_0x3f236c(0x1e5)])[_0x3f236c(_0x10be98._0x5643fc)]('\x0a') : '(none)';
|
|
1458
|
-
return [
|
|
1459
|
-
_0x3f236c(0x26a) + _0x1c532b['serverName'],
|
|
1460
|
-
'',
|
|
1461
|
-
_0x3f236c(_0x10be98._0x102db9),
|
|
1462
|
-
_0x548bd5,
|
|
1463
|
-
'',
|
|
1464
|
-
'###\x20Agents',
|
|
1465
|
-
_0x310292,
|
|
1466
|
-
'',
|
|
1467
|
-
_0x3f236c(_0x10be98._0x262af8),
|
|
1468
|
-
_0x16ad94
|
|
1469
|
-
][_0x3f236c(_0x10be98._0x5643fc)]('\x0a');
|
|
1470
|
-
}
|
|
1471
|
-
function formatUploadResult(_0x197b77) {
|
|
1472
|
-
const _0x44e965 = {
|
|
1473
|
-
_0xce7480: 0x24b,
|
|
1474
|
-
_0x2f7780: 0x29d,
|
|
1475
|
-
_0xd79903: 0x1b9
|
|
1476
|
-
}, _0x2ad0ec = _0x28aee3;
|
|
1477
|
-
return 'File\x20uploaded:\x20' + _0x197b77[_0x2ad0ec(0x2a0)] + '\x20(' + (_0x197b77[_0x2ad0ec(_0x44e965._0xce7480)] / 0x400)[_0x2ad0ec(_0x44e965._0x2f7780)](0x1) + _0x2ad0ec(0x27e) + _0x197b77[_0x2ad0ec(0x285)] + _0x2ad0ec(_0x44e965._0xd79903);
|
|
1478
|
-
}
|
|
1479
|
-
function formatViewFileResult(_0x5bf0e8, _0x464ac5) {
|
|
1480
|
-
const _0x56709c = _0x28aee3;
|
|
1481
|
-
return _0x464ac5 ? _0x56709c(0x2ab) + _0x5bf0e8 : 'Downloaded\x20to:\x20' + _0x5bf0e8;
|
|
1482
|
-
}
|
|
1483
|
-
function formatTaskList(_0x3d7ccd, _0x183f4b) {
|
|
1484
|
-
const _0x54ca27 = {
|
|
1485
|
-
_0x469792: 0x249,
|
|
1486
|
-
_0x1db50b: 0x1dd
|
|
1487
|
-
}, _0x1d5caf = {
|
|
1488
|
-
_0x36e333: 0x2b6,
|
|
1489
|
-
_0x12a0dd: 0x18d,
|
|
1490
|
-
_0x43d2cd: 0x17b,
|
|
1491
|
-
_0x296541: 0x2b6,
|
|
1492
|
-
_0x466e86: 0x29f,
|
|
1493
|
-
_0x1ca451: 0x2a4,
|
|
1494
|
-
_0x5b825f: 0x2c1
|
|
1495
|
-
}, _0x576f38 = _0x28aee3;
|
|
1496
|
-
if (_0x3d7ccd[_0x576f38(0x19b)] === 0x0)
|
|
1497
|
-
return _0x576f38(_0x54ca27._0x469792);
|
|
1498
|
-
return _0x3d7ccd[_0x576f38(0x272)](_0xb16d87 => {
|
|
1499
|
-
const _0x46a938 = _0x576f38, _0xdef65c = _0xb16d87[_0x46a938(0x2b6)] == null ? _0x46a938(0x255) : _0xb16d87[_0x46a938(0x2e3)] != null ? '#' + _0xb16d87[_0x46a938(_0x1d5caf._0x36e333)] + '.' + _0xb16d87[_0x46a938(0x2e3)] : '#' + _0xb16d87[_0x46a938(_0x1d5caf._0x36e333)], _0x4c4eb8 = _0xb16d87[_0x46a938(0x18d)] ? _0x46a938(0x1c5) + _0xb16d87[_0x46a938(_0x1d5caf._0x12a0dd)] : '', _0x1f8864 = _0x183f4b && _0xb16d87[_0x46a938(0x2b6)] != null && !_0xb16d87[_0x46a938(0x2e3)] && _0x183f4b[_0x46a938(_0x1d5caf._0x43d2cd)](_0xb16d87[_0x46a938(_0x1d5caf._0x296541)]) ? '\x20executionMode=worker' : '', _0x4ed56d = _0xb16d87[_0x46a938(0x29f)] != null && _0xb16d87[_0x46a938(_0x1d5caf._0x466e86)] > 0x0 ? '\x20(' + (_0xb16d87[_0x46a938(0x280)] ?? 0x0) + '/' + _0xb16d87[_0x46a938(_0x1d5caf._0x466e86)] + _0x46a938(_0x1d5caf._0x1ca451) : '';
|
|
1500
|
-
return _0xdef65c + '\x20[' + _0xb16d87[_0x46a938(0x1b0)] + ']\x20' + _0xb16d87[_0x46a938(_0x1d5caf._0x5b825f)] + _0x4ed56d + _0x4c4eb8 + _0x1f8864;
|
|
1501
|
-
})[_0x576f38(_0x54ca27._0x1db50b)]('\x0a');
|
|
1502
|
-
}
|
|
1503
|
-
function _0x41c3(_0x3e36fe, _0x3f1235) {
|
|
1504
|
-
_0x3e36fe = _0x3e36fe - 0x160;
|
|
1505
|
-
const _0x2e92a6 = _0x2e92();
|
|
1506
|
-
let _0x41c3e3 = _0x2e92a6[_0x3e36fe];
|
|
1507
|
-
if (_0x41c3['GnMGDk'] === undefined) {
|
|
1508
|
-
var _0x10add8 = function (_0x4b27b9) {
|
|
1509
|
-
const _0x3b683e = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
1510
|
-
let _0x35e736 = '', _0x1c7992 = '';
|
|
1511
|
-
for (let _0x1c495b = 0x0, _0x328e7b, _0x29663a, _0x2a02f8 = 0x0; _0x29663a = _0x4b27b9['charAt'](_0x2a02f8++); ~_0x29663a && (_0x328e7b = _0x1c495b % 0x4 ? _0x328e7b * 0x40 + _0x29663a : _0x29663a, _0x1c495b++ % 0x4) ? _0x35e736 += String['fromCharCode'](0xff & _0x328e7b >> (-0x2 * _0x1c495b & 0x6)) : 0x0) {
|
|
1512
|
-
_0x29663a = _0x3b683e['indexOf'](_0x29663a);
|
|
1513
|
-
}
|
|
1514
|
-
for (let _0x14ee6e = 0x0, _0x12546d = _0x35e736['length']; _0x14ee6e < _0x12546d; _0x14ee6e++) {
|
|
1515
|
-
_0x1c7992 += '%' + ('00' + _0x35e736['charCodeAt'](_0x14ee6e)['toString'](0x10))['slice'](-0x2);
|
|
1516
|
-
}
|
|
1517
|
-
return decodeURIComponent(_0x1c7992);
|
|
1518
|
-
};
|
|
1519
|
-
_0x41c3['FWxGIC'] = _0x10add8, _0x41c3['OyedTw'] = {}, _0x41c3['GnMGDk'] = !![];
|
|
1520
|
-
}
|
|
1521
|
-
const _0x8d698e = _0x2e92a6[0x0], _0x5420ec = _0x3e36fe + _0x8d698e, _0x27b8b7 = _0x41c3['OyedTw'][_0x5420ec];
|
|
1522
|
-
return !_0x27b8b7 ? (_0x41c3e3 = _0x41c3['FWxGIC'](_0x41c3e3), _0x41c3['OyedTw'][_0x5420ec] = _0x41c3e3) : _0x41c3e3 = _0x27b8b7, _0x41c3e3;
|
|
1523
|
-
}
|
|
1524
|
-
function formatCreatedTasks(_0x2ca879) {
|
|
1525
|
-
const _0x3e4462 = {
|
|
1526
|
-
_0x4edde0: 0x19b,
|
|
1527
|
-
_0x661628: 0x272
|
|
1528
|
-
}, _0x10d1fb = {
|
|
1529
|
-
_0x12764c: 0x1c5,
|
|
1530
|
-
_0x1b4f8a: 0x2c1
|
|
1531
|
-
}, _0x2c6db9 = _0x28aee3;
|
|
1532
|
-
if (_0x2ca879[_0x2c6db9(_0x3e4462._0x4edde0)] === 0x0)
|
|
1533
|
-
return _0x2c6db9(0x28c);
|
|
1534
|
-
return _0x2ca879[_0x2c6db9(_0x3e4462._0x661628)](_0x2ee3db => {
|
|
1535
|
-
const _0x32617 = _0x2c6db9, _0xc376a5 = _0x2ee3db['taskNumber'] == null ? '(legacy)' : _0x2ee3db['subtaskNumber'] != null ? '#' + _0x2ee3db['taskNumber'] + '.' + _0x2ee3db['subtaskNumber'] : '#' + _0x2ee3db[_0x32617(0x2b6)], _0x275476 = _0x2ee3db[_0x32617(0x18d)] ? _0x32617(_0x10d1fb._0x12764c) + _0x2ee3db[_0x32617(0x18d)] : '';
|
|
1536
|
-
return _0xc376a5 + '\x20' + _0x2ee3db[_0x32617(_0x10d1fb._0x1b4f8a)] + _0x275476;
|
|
1537
|
-
})[_0x2c6db9(0x1dd)]('\x0a');
|
|
1538
|
-
}
|
|
1539
|
-
function formatClaimTaskLabel(_0x21e71a, _0x2561ca) {
|
|
1540
|
-
if (_0x21e71a == null)
|
|
1541
|
-
return '(legacy)';
|
|
1542
|
-
return _0x2561ca != null ? '#' + _0x21e71a + '.' + _0x2561ca : '#' + _0x21e71a;
|
|
1543
|
-
}
|
|
1544
|
-
function formatClaimTaskResults(_0x230983) {
|
|
1545
|
-
const _0x1b57a4 = { _0xe0ce59: 0x28f }, _0x38c796 = {
|
|
1546
|
-
_0x25693b: 0x258,
|
|
1547
|
-
_0x117488: 0x2b6,
|
|
1548
|
-
_0xb1f565: 0x2e3,
|
|
1549
|
-
_0x37533b: 0x2be,
|
|
1550
|
-
_0x3dad44: 0x23d,
|
|
1551
|
-
_0x51a247: 0x208,
|
|
1552
|
-
_0x51ff4c: 0x2a1,
|
|
1553
|
-
_0x553c77: 0x1e2,
|
|
1554
|
-
_0x3669ba: 0x22e,
|
|
1555
|
-
_0x5d4531: 0x1b5,
|
|
1556
|
-
_0x2330d0: 0x23e,
|
|
1557
|
-
_0xa8a259: 0x1dd,
|
|
1558
|
-
_0x3484d8: 0x180,
|
|
1559
|
-
_0x41777f: 0x265,
|
|
1560
|
-
_0x1275d3: 0x163
|
|
1561
|
-
}, _0x1ed6dc = _0x28aee3;
|
|
1562
|
-
if (_0x230983[_0x1ed6dc(0x19b)] === 0x0)
|
|
1563
|
-
return _0x1ed6dc(_0x1b57a4._0xe0ce59);
|
|
1564
|
-
return _0x230983[_0x1ed6dc(0x272)](_0x5a3fa4 => {
|
|
1565
|
-
const _0x160cfe = _0x1ed6dc;
|
|
1566
|
-
if (_0x5a3fa4[_0x160cfe(_0x38c796._0x25693b)]) {
|
|
1567
|
-
const _0x110105 = formatClaimTaskLabel(_0x5a3fa4[_0x160cfe(_0x38c796._0x117488)], _0x5a3fa4[_0x160cfe(_0x38c796._0xb1f565)]), _0x6e7b1c = _0x5a3fa4['messageId'] ? '\x20message=' + _0x5a3fa4['messageId'] : '';
|
|
1568
|
-
if (_0x5a3fa4['workerHandoff']) {
|
|
1569
|
-
const _0x580c8f = [
|
|
1570
|
-
_0x160cfe(_0x38c796._0x37533b),
|
|
1571
|
-
_0x5a3fa4[_0x160cfe(_0x38c796._0x3dad44)] ? _0x160cfe(_0x38c796._0x51a247) : null,
|
|
1572
|
-
_0x5a3fa4[_0x160cfe(_0x38c796._0x51ff4c)] ? 'executionMode=' + _0x5a3fa4[_0x160cfe(_0x38c796._0x51ff4c)] : null,
|
|
1573
|
-
_0x5a3fa4[_0x160cfe(_0x38c796._0x553c77)] ? 'threadTarget=' + _0x5a3fa4['threadTarget'] : null,
|
|
1574
|
-
_0x5a3fa4[_0x160cfe(_0x38c796._0x3669ba)] ? _0x160cfe(_0x38c796._0x5d4531) + _0x5a3fa4[_0x160cfe(0x22e)] : null
|
|
1575
|
-
][_0x160cfe(_0x38c796._0x2330d0)](Boolean)[_0x160cfe(_0x38c796._0xa8a259)]('\x20');
|
|
1576
|
-
return _0x110105 + _0x160cfe(0x213) + _0x6e7b1c + '\x20' + _0x580c8f + _0x160cfe(_0x38c796._0x3484d8);
|
|
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);
|
|
1577
1554
|
}
|
|
1578
|
-
const
|
|
1579
|
-
return
|
|
1555
|
+
const _0x42545d = _0x171caa[_0x530732(_0x39365a._0x2e7187)] ? _0x530732(0x125) + _0x171caa[_0x530732(_0x39365a._0x2493c9)] : '';
|
|
1556
|
+
return _0x221948 + '\x20claimed' + _0x22d0de + _0x42545d;
|
|
1580
1557
|
}
|
|
1581
|
-
const
|
|
1582
|
-
return
|
|
1583
|
-
})[
|
|
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');
|
|
1584
1561
|
}
|
|
1585
|
-
function formatUnclaimTaskResult(
|
|
1586
|
-
const
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
},
|
|
1590
|
-
return
|
|
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'];
|
|
1591
1568
|
}
|
|
1592
|
-
function formatUpdateTaskStatusResult(
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
},
|
|
1599
|
-
return
|
|
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)];
|
|
1600
1577
|
}
|
|
1601
1578
|
function getChatBridgeToolDefinitions() {
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
_0x1162ad: 0x2d1,
|
|
1607
|
-
_0x4917b9: 0x282,
|
|
1608
|
-
_0x465d80: 0x260
|
|
1609
|
-
}, _0x3bfe22 = _0x28aee3;
|
|
1579
|
+
const _0x1ce12a = {
|
|
1580
|
+
_0x9e950d: 0x1fa,
|
|
1581
|
+
_0x3b0aa2: 0x229
|
|
1582
|
+
}, _0x44778e = _0x2980fe;
|
|
1610
1583
|
return [
|
|
1611
|
-
{ 'name':
|
|
1612
|
-
{ 'name':
|
|
1613
|
-
{ 'name':
|
|
1614
|
-
{ 'name':
|
|
1615
|
-
{ 'name':
|
|
1616
|
-
{ 'name':
|
|
1617
|
-
{ 'name':
|
|
1618
|
-
{ 'name':
|
|
1619
|
-
{ 'name':
|
|
1620
|
-
{ 'name':
|
|
1621
|
-
{ 'name':
|
|
1622
|
-
{ 'name':
|
|
1623
|
-
{ 'name':
|
|
1624
|
-
{ 'name':
|
|
1625
|
-
{ '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) }
|
|
1626
1599
|
];
|
|
1627
1600
|
}
|
|
1628
|
-
function createChatBridgeHandlers(
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
},
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
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
|
-
_0x179109: 0x1a7,
|
|
1761
|
-
_0x17bb39: 0x210,
|
|
1762
|
-
_0x5ab406: 0x1ee
|
|
1763
|
-
}, _0x4fefa1 = _0x28aee3;
|
|
1764
|
-
function _0x30ed5d(_0x508404, _0x869e64) {
|
|
1765
|
-
const _0x59e54d = _0x41c3;
|
|
1766
|
-
if (!_0x274237[_0x59e54d(0x1aa)])
|
|
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)])
|
|
1767
1733
|
return;
|
|
1768
|
-
if (!
|
|
1769
|
-
throw new Error(
|
|
1770
|
-
if (
|
|
1771
|
-
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);
|
|
1772
1738
|
}
|
|
1773
|
-
async function
|
|
1774
|
-
const
|
|
1775
|
-
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)] !== !![])
|
|
1776
1742
|
return null;
|
|
1777
|
-
const
|
|
1778
|
-
if (
|
|
1743
|
+
const _0x4a0807 = parseTarget(_0x6e1a4[_0x114174(0x156)]);
|
|
1744
|
+
if (_0x4a0807[_0x114174(0x150)] !== 'channel')
|
|
1779
1745
|
return null;
|
|
1780
|
-
const
|
|
1781
|
-
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;
|
|
1782
1748
|
try {
|
|
1783
|
-
const
|
|
1784
|
-
'channel':
|
|
1749
|
+
const _0x243f61 = await _0x396446[_0x114174(0x176)]['readHistory']({
|
|
1750
|
+
'channel': _0x4c1b79,
|
|
1785
1751
|
'limit': 0x14
|
|
1786
1752
|
});
|
|
1787
|
-
|
|
1753
|
+
_0x4b1e1b = _0x243f61[_0x114174(0x24a)]['find'](_0x5d7a18 => _0x5d7a18[_0x114174(0xfd)] === _0x6e1a4[_0x114174(0xfd)]);
|
|
1788
1754
|
} catch {
|
|
1789
|
-
|
|
1755
|
+
_0x4b1e1b = void 0x0;
|
|
1790
1756
|
}
|
|
1791
|
-
const
|
|
1792
|
-
|
|
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),
|
|
1793
1759
|
'',
|
|
1794
|
-
|
|
1760
|
+
_0x4b1e1b ? _0x114174(_0x3f17e1._0x2c591b) + _0x4b1e1b[_0x114174(0x118)] : _0x114174(_0x3f17e1._0x9805e4) + _0x6e1a4[_0x114174(0xfd)],
|
|
1795
1761
|
'',
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
][
|
|
1799
|
-
'method':
|
|
1800
|
-
'headers': { 'Content-Type':
|
|
1801
|
-
'body': JSON[
|
|
1802
|
-
'agent_id':
|
|
1803
|
-
'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,
|
|
1804
1770
|
'spawn_packet': {
|
|
1805
|
-
'replyTarget':
|
|
1806
|
-
...
|
|
1771
|
+
'replyTarget': _0x4c1b79,
|
|
1772
|
+
..._0x6e1a4[_0x114174(_0x3f17e1._0x284199)] ? { 'taskId': _0x6e1a4[_0x114174(_0x3f17e1._0x284199)] } : _0x6e1a4['taskNumber'] != null ? { 'taskId': _0x114174(0xec) + _0x6e1a4['taskNumber'] } : {}
|
|
1807
1773
|
},
|
|
1808
1774
|
'payload': {
|
|
1809
|
-
'mode':
|
|
1810
|
-
'text':
|
|
1775
|
+
'mode': _0x114174(_0x3f17e1._0x25390f),
|
|
1776
|
+
'text': _0x2b69f4
|
|
1811
1777
|
}
|
|
1812
1778
|
})
|
|
1813
|
-
}),
|
|
1814
|
-
if (!
|
|
1815
|
-
throw new Error(
|
|
1779
|
+
}), _0x22db43 = await _0x46ea02['json']();
|
|
1780
|
+
if (!_0x22db43['ok'])
|
|
1781
|
+
throw new Error(_0x22db43['error'] ?? _0x114174(_0x3f17e1._0x59f0f0));
|
|
1816
1782
|
return {
|
|
1817
1783
|
'stopMain': !![],
|
|
1818
|
-
'threadTarget':
|
|
1819
|
-
'workerDisposition':
|
|
1784
|
+
'threadTarget': _0x4c1b79,
|
|
1785
|
+
'workerDisposition': _0x22db43[_0x114174(_0x3f17e1._0x58a64d)] === _0x114174(0x243) ? _0x114174(0x243) : _0x114174(_0x3f17e1._0x47c13f),
|
|
1820
1786
|
'workerHandoff': !![],
|
|
1821
|
-
'workerSessionId':
|
|
1822
|
-
'executionMode':
|
|
1787
|
+
'workerSessionId': _0x22db43[_0x114174(_0x3f17e1._0x59c912)] ?? '',
|
|
1788
|
+
'executionMode': _0x114174(_0x3f17e1._0x4e630a)
|
|
1823
1789
|
};
|
|
1824
1790
|
}
|
|
1825
|
-
async function
|
|
1826
|
-
const
|
|
1827
|
-
if (!
|
|
1791
|
+
async function _0x23d001() {
|
|
1792
|
+
const _0x497f25 = _0x1c13;
|
|
1793
|
+
if (!_0x396446[_0x497f25(0x1c5)] || !_0x396446['agentId'] || _0x396446[_0x497f25(_0x178cf5._0x15deb4)])
|
|
1828
1794
|
return null;
|
|
1829
1795
|
try {
|
|
1830
|
-
const
|
|
1831
|
-
if (!
|
|
1796
|
+
const _0x39933c = await fetch(_0x396446[_0x497f25(0x1c5)] + _0x497f25(0x17d) + encodeURIComponent(_0x396446[_0x497f25(_0x178cf5._0xaf1595)])), _0x2ceb35 = await _0x39933c['json']();
|
|
1797
|
+
if (!_0x2ceb35['ok'])
|
|
1832
1798
|
return null;
|
|
1833
|
-
const
|
|
1834
|
-
for (const
|
|
1835
|
-
|
|
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)]);
|
|
1836
1802
|
}
|
|
1837
|
-
return
|
|
1803
|
+
return _0x3ae63a[_0x497f25(0x168)] > 0x0 ? _0x3ae63a : null;
|
|
1838
1804
|
} catch {
|
|
1839
1805
|
return null;
|
|
1840
1806
|
}
|
|
1841
1807
|
}
|
|
1842
|
-
const
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1808
|
+
const _0x3387a1 = new Set([
|
|
1809
|
+
_0x3a58d8(_0x3b3c31._0x3d1bc4),
|
|
1810
|
+
_0x3a58d8(0xf8),
|
|
1811
|
+
_0x3a58d8(0x142)
|
|
1846
1812
|
]);
|
|
1847
|
-
async function
|
|
1848
|
-
const
|
|
1849
|
-
if (!
|
|
1813
|
+
async function _0x56ca41() {
|
|
1814
|
+
const _0x29edd2 = _0x3a58d8;
|
|
1815
|
+
if (!_0x396446['daemonLocalUrl'] || !_0x396446[_0x29edd2(0x1d3)] || _0x396446[_0x29edd2(_0x2173af._0x247d03)])
|
|
1850
1816
|
return null;
|
|
1851
1817
|
try {
|
|
1852
|
-
const
|
|
1853
|
-
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'])
|
|
1854
1820
|
return null;
|
|
1855
|
-
const
|
|
1856
|
-
for (const
|
|
1857
|
-
|
|
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)]);
|
|
1858
1824
|
}
|
|
1859
|
-
return
|
|
1825
|
+
return _0x5b5449[_0x29edd2(0x168)] > 0x0 ? _0x5b5449 : null;
|
|
1860
1826
|
} catch {
|
|
1861
1827
|
return null;
|
|
1862
1828
|
}
|
|
1863
1829
|
}
|
|
1864
1830
|
return {
|
|
1865
|
-
async 'send_message'(
|
|
1866
|
-
const
|
|
1867
|
-
if (!
|
|
1868
|
-
const
|
|
1869
|
-
if (
|
|
1870
|
-
const
|
|
1871
|
-
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))
|
|
1872
1838
|
return [
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
][
|
|
1876
|
-
const
|
|
1877
|
-
|
|
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),
|
|
1878
1844
|
'',
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
][
|
|
1884
|
-
'method':
|
|
1885
|
-
'headers': { 'Content-Type':
|
|
1886
|
-
'body': JSON[
|
|
1887
|
-
'agent_id':
|
|
1888
|
-
'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,
|
|
1889
1855
|
'spawn_packet': {
|
|
1890
|
-
'replyTarget':
|
|
1891
|
-
'taskId':
|
|
1856
|
+
'replyTarget': _0x52aff2,
|
|
1857
|
+
'taskId': _0x3d003e[_0x1f6079(_0x2994c7._0x5d4b9d)][_0x1f6079(_0x2994c7._0x562c0e)]
|
|
1892
1858
|
},
|
|
1893
1859
|
'payload': {
|
|
1894
|
-
'mode':
|
|
1895
|
-
'text':
|
|
1860
|
+
'mode': _0x1f6079(0x212),
|
|
1861
|
+
'text': _0x1cdb9d
|
|
1896
1862
|
}
|
|
1897
1863
|
})
|
|
1898
|
-
}),
|
|
1899
|
-
if (!
|
|
1900
|
-
throw new Error(
|
|
1864
|
+
}), _0x5a6987 = await _0x41f38d[_0x1f6079(0x16a)]();
|
|
1865
|
+
if (!_0x5a6987['ok'])
|
|
1866
|
+
throw new Error(_0x5a6987[_0x1f6079(_0x2994c7._0x1d151e)] ?? _0x1f6079(0x1ba));
|
|
1901
1867
|
return [
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
][
|
|
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');
|
|
1906
1872
|
}
|
|
1907
1873
|
}
|
|
1908
|
-
const
|
|
1909
|
-
'attachmentIds':
|
|
1910
|
-
'content':
|
|
1911
|
-
'target':
|
|
1912
|
-
'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)]
|
|
1913
1879
|
});
|
|
1914
|
-
return
|
|
1880
|
+
return _0x1f6079(_0x2994c7._0x51dd6e) + _0x2b4bbe['target'] + _0x1f6079(0x16d) + _0x14be7c[_0x1f6079(_0x2994c7._0x1a144f)];
|
|
1915
1881
|
},
|
|
1916
1882
|
async 'check_messages'() {
|
|
1917
|
-
const
|
|
1918
|
-
if (!
|
|
1919
|
-
const
|
|
1920
|
-
if (
|
|
1921
|
-
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)])));
|
|
1922
1888
|
}
|
|
1923
|
-
return formatCheckMessages(
|
|
1889
|
+
return formatCheckMessages(_0x359295[_0x478c51(_0x47df46._0x410894)]);
|
|
1924
1890
|
},
|
|
1925
|
-
async 'read_history'(
|
|
1926
|
-
const
|
|
1927
|
-
return formatHistory(
|
|
1891
|
+
async 'read_history'(_0x3a06a9) {
|
|
1892
|
+
const _0x482ce7 = _0x3a58d8, _0x399375 = await _0x396446[_0x482ce7(0x176)][_0x482ce7(0x1a2)](_0x3a06a9);
|
|
1893
|
+
return formatHistory(_0x399375);
|
|
1928
1894
|
},
|
|
1929
1895
|
async 'list_server'() {
|
|
1930
|
-
const
|
|
1931
|
-
return formatServerDirectory(
|
|
1896
|
+
const _0x241af4 = _0x3a58d8, _0x1b5235 = await _0x396446[_0x241af4(0x176)]['listServer']();
|
|
1897
|
+
return formatServerDirectory(_0x1b5235);
|
|
1932
1898
|
},
|
|
1933
|
-
async 'list_tasks'(
|
|
1934
|
-
const
|
|
1935
|
-
let
|
|
1936
|
-
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)])
|
|
1937
1903
|
try {
|
|
1938
|
-
const
|
|
1939
|
-
if (
|
|
1940
|
-
const
|
|
1941
|
-
|
|
1942
|
-
for (const
|
|
1943
|
-
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))
|
|
1944
1910
|
continue;
|
|
1945
|
-
if (
|
|
1946
|
-
const
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
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)]);
|
|
1949
1915
|
continue;
|
|
1950
1916
|
}
|
|
1951
1917
|
}
|
|
1952
|
-
if (
|
|
1953
|
-
const
|
|
1954
|
-
|
|
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)]);
|
|
1955
1921
|
}
|
|
1956
1922
|
}
|
|
1957
1923
|
}
|
|
1958
1924
|
} catch {
|
|
1959
1925
|
}
|
|
1960
|
-
return formatTaskList(
|
|
1926
|
+
return formatTaskList(_0x5c35a2[_0x2597b7(_0x4658bc._0x370140)], _0x4f1af2);
|
|
1961
1927
|
},
|
|
1962
|
-
async 'create_tasks'(
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1966
|
-
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']);
|
|
1967
1933
|
},
|
|
1968
|
-
async 'claim_tasks'(
|
|
1969
|
-
const
|
|
1970
|
-
if (
|
|
1971
|
-
|
|
1972
|
-
if (
|
|
1973
|
-
throw new Error(
|
|
1974
|
-
if (!
|
|
1975
|
-
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));
|
|
1976
1942
|
}
|
|
1977
|
-
const
|
|
1978
|
-
const
|
|
1979
|
-
if (!
|
|
1980
|
-
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;
|
|
1981
1947
|
try {
|
|
1982
|
-
const
|
|
1983
|
-
'channel':
|
|
1984
|
-
'messageId':
|
|
1985
|
-
'taskId':
|
|
1986
|
-
'taskNumber':
|
|
1987
|
-
'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']
|
|
1988
1954
|
});
|
|
1989
|
-
return
|
|
1990
|
-
...
|
|
1991
|
-
...
|
|
1992
|
-
} :
|
|
1993
|
-
} catch (
|
|
1955
|
+
return _0x2cd016 ? {
|
|
1956
|
+
..._0xfa6a87,
|
|
1957
|
+
..._0x2cd016
|
|
1958
|
+
} : _0xfa6a87;
|
|
1959
|
+
} catch (_0x4973b3) {
|
|
1994
1960
|
return {
|
|
1995
|
-
...
|
|
1996
|
-
'workerHandoffError':
|
|
1961
|
+
..._0xfa6a87,
|
|
1962
|
+
'workerHandoffError': _0x4973b3 instanceof Error ? _0x4973b3[_0x2caba5(_0x2f72b2._0x190bdf)] : _0x2caba5(0x134)
|
|
1997
1963
|
};
|
|
1998
1964
|
}
|
|
1999
1965
|
}));
|
|
2000
|
-
return formatClaimTaskResults(
|
|
1966
|
+
return formatClaimTaskResults(_0x22ea69);
|
|
2001
1967
|
},
|
|
2002
|
-
async 'unclaim_task'(
|
|
2003
|
-
const
|
|
2004
|
-
if (
|
|
2005
|
-
|
|
2006
|
-
if (
|
|
2007
|
-
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.');
|
|
2008
1974
|
}
|
|
2009
|
-
const
|
|
2010
|
-
return formatUnclaimTaskResult(
|
|
1975
|
+
const _0x545083 = await _0x396446[_0x5f0e5f(0x176)][_0x5f0e5f(0x10e)](_0x448de8);
|
|
1976
|
+
return formatUnclaimTaskResult(_0x545083);
|
|
2011
1977
|
},
|
|
2012
|
-
async 'update_task_status'(
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2015
|
-
const
|
|
2016
|
-
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);
|
|
2017
1983
|
},
|
|
2018
|
-
async 'upload_file'(
|
|
2019
|
-
const
|
|
2020
|
-
sizeBytes:
|
|
2021
|
-
...
|
|
2022
|
-
} =
|
|
2023
|
-
'channel':
|
|
2024
|
-
...
|
|
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
|
|
2025
1991
|
});
|
|
2026
|
-
return formatUploadResult(
|
|
1992
|
+
return formatUploadResult(_0x232086);
|
|
2027
1993
|
},
|
|
2028
|
-
async 'view_file'(
|
|
2029
|
-
const
|
|
2030
|
-
if (
|
|
2031
|
-
return formatViewFileResult(
|
|
2032
|
-
const
|
|
2033
|
-
'attachmentId':
|
|
2034
|
-
'contentType':
|
|
2035
|
-
'data':
|
|
2036
|
-
'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)]
|
|
2037
2003
|
});
|
|
2038
|
-
return formatViewFileResult(
|
|
2004
|
+
return formatViewFileResult(_0x17cd8c, ![]);
|
|
2039
2005
|
},
|
|
2040
|
-
async 'get_worker_status'(
|
|
2041
|
-
const
|
|
2042
|
-
if (!
|
|
2043
|
-
return
|
|
2044
|
-
const
|
|
2045
|
-
if (!
|
|
2046
|
-
return
|
|
2047
|
-
return
|
|
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)];
|
|
2048
2014
|
},
|
|
2049
|
-
async 'park_worker'(
|
|
2050
|
-
const
|
|
2051
|
-
if (!
|
|
2052
|
-
return
|
|
2053
|
-
const
|
|
2054
|
-
'method':
|
|
2055
|
-
'headers': { 'Content-Type':
|
|
2056
|
-
'body': JSON[
|
|
2057
|
-
}),
|
|
2058
|
-
if (!
|
|
2059
|
-
throw new Error(
|
|
2060
|
-
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);
|
|
2061
2027
|
},
|
|
2062
|
-
async 'mark_waiting_input'(
|
|
2063
|
-
const
|
|
2064
|
-
if (!
|
|
2065
|
-
return
|
|
2066
|
-
const
|
|
2067
|
-
'method':
|
|
2068
|
-
'headers': { 'Content-Type':
|
|
2069
|
-
'body': JSON[
|
|
2070
|
-
'work_key':
|
|
2071
|
-
'agent_id':
|
|
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),
|
|
2034
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2035
|
+
'body': JSON[_0x21da49(0x151)]({
|
|
2036
|
+
'work_key': _0xecff06[_0x21da49(_0x1d3941._0x4a32a0)],
|
|
2037
|
+
'agent_id': _0x396446[_0x21da49(_0x1d3941._0x6e979d)]
|
|
2072
2038
|
})
|
|
2073
|
-
}),
|
|
2074
|
-
if (!
|
|
2075
|
-
throw new Error(
|
|
2076
|
-
return
|
|
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.';
|
|
2077
2043
|
},
|
|
2078
|
-
async 'escalate_to_main'(
|
|
2079
|
-
const
|
|
2080
|
-
if (!
|
|
2081
|
-
return
|
|
2082
|
-
const
|
|
2083
|
-
'method':
|
|
2084
|
-
'headers': { 'Content-Type':
|
|
2085
|
-
'body': JSON[
|
|
2086
|
-
'work_key':
|
|
2087
|
-
'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)]
|
|
2088
2054
|
})
|
|
2089
|
-
}),
|
|
2090
|
-
if (!
|
|
2091
|
-
throw new Error(
|
|
2092
|
-
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'];
|
|
2093
2059
|
}
|
|
2094
2060
|
};
|
|
2095
2061
|
}
|
|
2096
|
-
function textResult(
|
|
2097
|
-
const
|
|
2062
|
+
function textResult(_0x116cf1, _0x3d94e3 = ![]) {
|
|
2063
|
+
const _0xe8f4ea = { _0x1c5a6b: 0x26e }, _0x58252b = _0x2980fe;
|
|
2098
2064
|
return {
|
|
2099
2065
|
'content': [{
|
|
2100
|
-
'type':
|
|
2101
|
-
'text':
|
|
2066
|
+
'type': _0x58252b(_0xe8f4ea._0x1c5a6b),
|
|
2067
|
+
'text': _0x116cf1
|
|
2102
2068
|
}],
|
|
2103
|
-
...
|
|
2069
|
+
..._0x3d94e3 ? { 'isError': !![] } : {}
|
|
2104
2070
|
};
|
|
2105
2071
|
}
|
|
2106
|
-
async function registerChatBridgeTools(
|
|
2107
|
-
const
|
|
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
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
_0x386885(_0x26be3b._0x3a2ddb)
|
|
2173
|
-
])[_0x386885(0x256)]()[_0x386885(_0x26be3b._0x18b3e1)]('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.')
|
|
2174
|
-
}, async _0x67e6c9 => {
|
|
2175
|
-
const _0x48eff2 = _0x386885;
|
|
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),
|
|
2134
|
+
'aside'
|
|
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;
|
|
2176
2138
|
try {
|
|
2177
|
-
return textResult(await
|
|
2178
|
-
} catch (
|
|
2179
|
-
return textResult(
|
|
2139
|
+
return textResult(await _0x4eeec5[_0x1ccb0e(0xee)](_0x11b6b1));
|
|
2140
|
+
} catch (_0x5de7be) {
|
|
2141
|
+
return textResult(_0x5de7be instanceof Error ? _0x5de7be['message'] : _0x1ccb0e(0x101), !![]);
|
|
2180
2142
|
}
|
|
2181
|
-
}),
|
|
2182
|
-
const
|
|
2143
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x585d49), _0x475033(0x1b2), {}, async () => {
|
|
2144
|
+
const _0x30fec3 = _0x475033;
|
|
2183
2145
|
try {
|
|
2184
|
-
return textResult(await
|
|
2185
|
-
} catch (
|
|
2186
|
-
return textResult(
|
|
2146
|
+
return textResult(await _0x4eeec5[_0x30fec3(0x1fa)]());
|
|
2147
|
+
} catch (_0x9dd996) {
|
|
2148
|
+
return textResult(_0x9dd996 instanceof Error ? _0x9dd996['message'] : _0x30fec3(0xf2), !![]);
|
|
2187
2149
|
}
|
|
2188
|
-
}),
|
|
2189
|
-
'channel':
|
|
2190
|
-
'limit':
|
|
2191
|
-
'before':
|
|
2192
|
-
'after':
|
|
2193
|
-
}, async
|
|
2194
|
-
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;
|
|
2195
2157
|
try {
|
|
2196
|
-
return textResult(await
|
|
2197
|
-
} catch (
|
|
2198
|
-
return textResult(
|
|
2158
|
+
return textResult(await _0x4eeec5[_0x476da3(_0x4a30b2._0x396d5f)](_0x50f733));
|
|
2159
|
+
} catch (_0x173209) {
|
|
2160
|
+
return textResult(_0x173209 instanceof Error ? _0x173209['message'] : _0x476da3(0x22b), !![]);
|
|
2199
2161
|
}
|
|
2200
|
-
}),
|
|
2201
|
-
const
|
|
2162
|
+
}), _0x3de6b5[_0x475033(0x112)](_0x475033(_0x2365e7._0x15173e), _0x475033(_0x2365e7._0x57eac5), {}, async () => {
|
|
2163
|
+
const _0x4b274f = _0x475033;
|
|
2202
2164
|
try {
|
|
2203
|
-
return textResult(await
|
|
2204
|
-
} catch (
|
|
2205
|
-
return textResult(
|
|
2165
|
+
return textResult(await _0x4eeec5[_0x4b274f(0x186)]());
|
|
2166
|
+
} catch (_0x34eb32) {
|
|
2167
|
+
return textResult(_0x34eb32 instanceof Error ? _0x34eb32[_0x4b274f(0x223)] : _0x4b274f(_0x4ab932._0x34a208), !![]);
|
|
2206
2168
|
}
|
|
2207
|
-
}),
|
|
2208
|
-
'channel':
|
|
2209
|
-
'status':
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
])[
|
|
2215
|
-
}, async
|
|
2216
|
-
const
|
|
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),
|
|
2174
|
+
'in_review',
|
|
2175
|
+
_0x475033(_0x2365e7._0x51c019)
|
|
2176
|
+
])[_0x475033(0x25a)]()
|
|
2177
|
+
}, async _0x5dc0a5 => {
|
|
2178
|
+
const _0x54cd15 = _0x475033;
|
|
2217
2179
|
try {
|
|
2218
|
-
return textResult(await
|
|
2219
|
-
} catch (
|
|
2220
|
-
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), !![]);
|
|
2221
2183
|
}
|
|
2222
|
-
}),
|
|
2223
|
-
'channel':
|
|
2224
|
-
'idempotency_key':
|
|
2225
|
-
'tasks':
|
|
2226
|
-
'title':
|
|
2227
|
-
'description':
|
|
2228
|
-
'priority':
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
])[
|
|
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)]([
|
|
2191
|
+
'low',
|
|
2192
|
+
_0x475033(_0x2365e7._0x3280c2),
|
|
2193
|
+
_0x475033(_0x2365e7._0x29bf64),
|
|
2194
|
+
_0x475033(0x18a)
|
|
2195
|
+
])[_0x475033(_0x2365e7._0x20b8fa)]()
|
|
2234
2196
|
}))
|
|
2235
|
-
}, async
|
|
2236
|
-
const
|
|
2197
|
+
}, async _0x2f3db8 => {
|
|
2198
|
+
const _0x5518fe = _0x475033;
|
|
2237
2199
|
try {
|
|
2238
|
-
return textResult(await
|
|
2239
|
-
} catch (
|
|
2240
|
-
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', !![]);
|
|
2241
2203
|
}
|
|
2242
|
-
}),
|
|
2243
|
-
'channel':
|
|
2244
|
-
'task_numbers':
|
|
2245
|
-
'subtask_numbers':
|
|
2246
|
-
'message_ids':
|
|
2247
|
-
'evidence':
|
|
2248
|
-
'create_thread':
|
|
2249
|
-
'create_task':
|
|
2250
|
-
}))[
|
|
2251
|
-
'idempotency_key':
|
|
2252
|
-
}, async
|
|
2253
|
-
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;
|
|
2254
2216
|
try {
|
|
2255
|
-
return textResult(await
|
|
2256
|
-
} catch (
|
|
2257
|
-
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), !![]);
|
|
2258
2220
|
}
|
|
2259
|
-
}),
|
|
2260
|
-
'channel':
|
|
2261
|
-
'task_number':
|
|
2262
|
-
'subtask_number':
|
|
2263
|
-
'idempotency_key':
|
|
2264
|
-
}, async
|
|
2265
|
-
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;
|
|
2266
2228
|
try {
|
|
2267
|
-
return textResult(await
|
|
2268
|
-
} catch (
|
|
2269
|
-
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), !![]);
|
|
2270
2232
|
}
|
|
2271
|
-
}),
|
|
2272
|
-
'channel':
|
|
2273
|
-
'task_number':
|
|
2274
|
-
'subtask_number':
|
|
2275
|
-
'status':
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
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),
|
|
2241
|
+
'done'
|
|
2280
2242
|
]),
|
|
2281
|
-
'idempotency_key':
|
|
2282
|
-
}, async
|
|
2283
|
-
const
|
|
2243
|
+
'idempotency_key': _0x17fc8e[_0x475033(_0x2365e7._0x4d4bfb)]()[_0x475033(_0x2365e7._0x2419f9)]()
|
|
2244
|
+
}, async _0x9e69c8 => {
|
|
2245
|
+
const _0x21d096 = _0x475033;
|
|
2284
2246
|
try {
|
|
2285
|
-
return textResult(await
|
|
2286
|
-
} catch (
|
|
2287
|
-
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', !![]);
|
|
2288
2250
|
}
|
|
2289
|
-
}),
|
|
2290
|
-
'channel':
|
|
2291
|
-
'file_path':
|
|
2292
|
-
}, async
|
|
2293
|
-
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;
|
|
2294
2256
|
try {
|
|
2295
|
-
return textResult(await
|
|
2296
|
-
} catch (
|
|
2297
|
-
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', !![]);
|
|
2298
2260
|
}
|
|
2299
|
-
}),
|
|
2300
|
-
const
|
|
2261
|
+
}), _0x3de6b5[_0x475033(0x112)]('view_file', _0x475033(_0x2365e7._0x1f2468), { 'attachment_id': _0x17fc8e[_0x475033(_0x2365e7._0x37920d)]() }, async _0x423304 => {
|
|
2262
|
+
const _0x95c55a = _0x475033;
|
|
2301
2263
|
try {
|
|
2302
|
-
return textResult(await
|
|
2303
|
-
} catch (
|
|
2304
|
-
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), !![]);
|
|
2305
2267
|
}
|
|
2306
|
-
}),
|
|
2307
|
-
const
|
|
2268
|
+
}), _0x3de6b5['tool'](_0x475033(_0x2365e7._0x5843fb), _0x475033(0x1bc), { 'work_key': _0x17fc8e[_0x475033(0x1f2)]() }, async _0x25ae3b => {
|
|
2269
|
+
const _0x5a24bd = _0x475033;
|
|
2308
2270
|
try {
|
|
2309
|
-
return textResult(await
|
|
2310
|
-
} catch (
|
|
2311
|
-
return textResult(
|
|
2271
|
+
return textResult(await _0x4eeec5[_0x5a24bd(_0x5c7f7b._0x4b6f63)](_0x25ae3b));
|
|
2272
|
+
} catch (_0x21ebf5) {
|
|
2273
|
+
return textResult(_0x21ebf5 instanceof Error ? _0x21ebf5['message'] : _0x5a24bd(0x1c6), !![]);
|
|
2312
2274
|
}
|
|
2313
|
-
}),
|
|
2314
|
-
const
|
|
2275
|
+
}), _0x3de6b5[_0x475033(_0x2365e7._0x38574c)](_0x475033(0x195), _0x475033(0x117), { 'work_key': _0x17fc8e[_0x475033(0x1f2)]() }, async _0xda654e => {
|
|
2276
|
+
const _0x5e1bcc = _0x475033;
|
|
2315
2277
|
try {
|
|
2316
|
-
return textResult(await
|
|
2317
|
-
} catch (
|
|
2318
|
-
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), !![]);
|
|
2319
2281
|
}
|
|
2320
|
-
}),
|
|
2321
|
-
'work_key':
|
|
2322
|
-
'reason':
|
|
2323
|
-
}, async
|
|
2324
|
-
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;
|
|
2325
2287
|
try {
|
|
2326
|
-
return textResult(await
|
|
2327
|
-
} catch (
|
|
2328
|
-
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), !![]);
|
|
2329
2291
|
}
|
|
2330
|
-
}),
|
|
2331
|
-
const
|
|
2292
|
+
}), _0x20fb93?.[_0x475033(0x18e)] && _0x3de6b5[_0x475033(0x112)]('mark_waiting_input', _0x475033(0x206), { 'work_key': _0x17fc8e[_0x475033(0x1f2)]() }, async _0x3e3a28 => {
|
|
2293
|
+
const _0x343afa = _0x475033;
|
|
2332
2294
|
try {
|
|
2333
|
-
return textResult(await
|
|
2334
|
-
} catch (
|
|
2335
|
-
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), !![]);
|
|
2336
2298
|
}
|
|
2337
2299
|
});
|
|
2338
2300
|
}
|
|
2339
|
-
async function createChatBridgeServer(
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
}),
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
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
|
|
2347
2312
|
};
|
|
2348
2313
|
}
|
|
2349
|
-
function readFlag(
|
|
2350
|
-
const
|
|
2351
|
-
if (
|
|
2314
|
+
function readFlag(_0x59d62c, _0x8261a) {
|
|
2315
|
+
const _0x5a6d5c = _0x2980fe, _0x33ecfb = _0x59d62c[_0x5a6d5c(0x1e2)](_0x8261a);
|
|
2316
|
+
if (_0x33ecfb === -0x1)
|
|
2352
2317
|
return void 0x0;
|
|
2353
|
-
return
|
|
2318
|
+
return _0x59d62c[_0x33ecfb + 0x1];
|
|
2354
2319
|
}
|
|
2355
|
-
function parseChatBridgeArgs(
|
|
2356
|
-
const
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
_0x594b8f: 0x217,
|
|
2364
|
-
_0x4764c3: 0x237
|
|
2365
|
-
}, _0x560e11 = _0x28aee3, _0x1e4849 = readFlag(_0x1051d0, '--agent-id'), _0x5920f2 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x509a0f)), _0x3ae280 = readFlag(_0x1051d0, '--daemon-api-key'), _0x573c43 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x5c78ef)), _0x29dbb0 = readFlag(_0x1051d0, _0x560e11(0x1bc)) ?? 'http://localhost:8121', _0xb25b70 = readFlag(_0x1051d0, _0x560e11(0x1bf)), _0x3520f6 = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x7add9e)), _0x381308 = readFlag(_0x1051d0, '--worker-mode-enabled'), _0x157680 = readFlag(_0x1051d0, '--worker-session-id'), _0x1d19fe = readFlag(_0x1051d0, _0x560e11(_0x30c605._0x1e9a38)), _0x13664f = _0x1051d0[_0x560e11(_0x30c605._0x3abc0e)](_0x560e11(_0x30c605._0x3193e1)), _0x48911b = _0x573c43 === void 0x0 ? void 0x0 : Number['parseInt'](_0x573c43, 0xa);
|
|
2366
|
-
if (!_0x1e4849)
|
|
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)
|
|
2367
2328
|
throw new Error('Missing\x20--agent-id');
|
|
2368
|
-
if (!
|
|
2369
|
-
throw new Error(
|
|
2370
|
-
if (
|
|
2371
|
-
throw new Error(
|
|
2329
|
+
if (!_0x426b63)
|
|
2330
|
+
throw new Error(_0x373d6d(_0x244ef7._0x5c85bf));
|
|
2331
|
+
if (_0x232302 !== void 0x0 && (_0x1996ea === void 0x0 || !Number[_0x373d6d(0x213)](_0x1996ea) || _0x1996ea < 0x0))
|
|
2332
|
+
throw new Error('Invalid\x20--initial-last-seen-seq');
|
|
2372
2333
|
return {
|
|
2373
|
-
'agentId':
|
|
2374
|
-
'attachmentCacheDir':
|
|
2375
|
-
'daemonApiKey':
|
|
2376
|
-
'daemonLocalUrl':
|
|
2377
|
-
'initialLastSeenSeq':
|
|
2378
|
-
'sessionId':
|
|
2379
|
-
'serverUrl':
|
|
2380
|
-
'workerModeEnabled':
|
|
2381
|
-
'workerSessionId':
|
|
2382
|
-
'workerThreadTarget':
|
|
2383
|
-
'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
|
|
2384
2345
|
};
|
|
2385
2346
|
}
|
|
2386
|
-
async function runChatBridgeCli(
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
'
|
|
2394
|
-
'
|
|
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)],
|
|
2395
2358
|
'uploadPreparer': prepareUploadFile,
|
|
2396
|
-
'workerModeEnabled':
|
|
2397
|
-
'workerMode':
|
|
2398
|
-
'workerThreadTarget':
|
|
2359
|
+
'workerModeEnabled': _0x11ef2f[_0x3c6c63(_0x3cbd0a._0x32dc2a)],
|
|
2360
|
+
'workerMode': _0x11ef2f[_0x3c6c63(0x18e)],
|
|
2361
|
+
'workerThreadTarget': _0x11ef2f[_0x3c6c63(0x185)]
|
|
2399
2362
|
});
|
|
2400
|
-
await
|
|
2363
|
+
await _0x4a228c[_0x3c6c63(0x237)][_0x3c6c63(_0x3cbd0a._0x51bdac)](new _0x3ec055());
|
|
2401
2364
|
}
|
|
2402
|
-
var executedAsEntry = process[
|
|
2403
|
-
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));
|
|
2404
2367
|
export {
|
|
2405
2368
|
createChatBridgeHandlers,
|
|
2406
2369
|
createChatBridgeServer,
|