@dscord/daemon 0.1.84 → 0.1.86
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 +2225 -2188
- package/dist/index.js +10820 -10859
- package/package.json +1 -1
package/dist/chat-bridge.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
const
|
|
2
|
-
(function (
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
const _0x3b2449 = _0x24f4;
|
|
2
|
+
(function (_0xb9c993, _0x5206f0) {
|
|
3
|
+
const _0x161dd8 = {
|
|
4
|
+
_0x5d4202: 0xda,
|
|
5
|
+
_0x5cfd05: 0x14a,
|
|
6
|
+
_0x57de80: 0x15f,
|
|
7
|
+
_0x3c4c46: 0xf1,
|
|
8
|
+
_0x106874: 0x170,
|
|
9
|
+
_0x762f7: 0x1b8,
|
|
10
|
+
_0x55d2b7: 0x175
|
|
11
|
+
}, _0x2b6c20 = _0x24f4, _0x167a8d = _0xb9c993();
|
|
11
12
|
while (!![]) {
|
|
12
13
|
try {
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
14
|
+
const _0x126865 = -parseInt(_0x2b6c20(_0x161dd8._0x5d4202)) / 0x1 + parseInt(_0x2b6c20(_0x161dd8._0x5cfd05)) / 0x2 * (parseInt(_0x2b6c20(_0x161dd8._0x57de80)) / 0x3) + -parseInt(_0x2b6c20(0x1a5)) / 0x4 + parseInt(_0x2b6c20(0x1d4)) / 0x5 + parseInt(_0x2b6c20(_0x161dd8._0x3c4c46)) / 0x6 + parseInt(_0x2b6c20(_0x161dd8._0x106874)) / 0x7 * (parseInt(_0x2b6c20(_0x161dd8._0x762f7)) / 0x8) + -parseInt(_0x2b6c20(_0x161dd8._0x55d2b7)) / 0x9;
|
|
15
|
+
if (_0x126865 === _0x5206f0)
|
|
15
16
|
break;
|
|
16
17
|
else
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
|
|
18
|
+
_0x167a8d['push'](_0x167a8d['shift']());
|
|
19
|
+
} catch (_0x76f515) {
|
|
20
|
+
_0x167a8d['push'](_0x167a8d['shift']());
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
}(
|
|
23
|
+
}(_0x56dc, 0x5cd2e));
|
|
23
24
|
import { pathToFileURL } from 'node:url';
|
|
24
25
|
import {
|
|
25
26
|
mkdir,
|
|
@@ -29,2384 +30,2420 @@ import {
|
|
|
29
30
|
writeFile
|
|
30
31
|
} from 'node:fs/promises';
|
|
31
32
|
import { homedir } from 'node:os';
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
'
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
'
|
|
96
|
-
|
|
97
|
-
'
|
|
98
|
-
'
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
'
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
33
|
+
import _0x21802 from 'node:path';
|
|
34
|
+
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
35
|
+
'.csv': _0x3b2449(0x102),
|
|
36
|
+
'.gif': 'image/gif',
|
|
37
|
+
'.jpeg': _0x3b2449(0xd3),
|
|
38
|
+
'.jpg': _0x3b2449(0xd3),
|
|
39
|
+
'.json': _0x3b2449(0x18d),
|
|
40
|
+
'.md': _0x3b2449(0x205),
|
|
41
|
+
'.pdf': 'application/pdf',
|
|
42
|
+
'.png': _0x3b2449(0xe7),
|
|
43
|
+
'.svg': _0x3b2449(0x22c),
|
|
44
|
+
'.txt': _0x3b2449(0x137),
|
|
45
|
+
'.webp': _0x3b2449(0x215),
|
|
46
|
+
'.xml': _0x3b2449(0x1c0),
|
|
47
|
+
'.zip': _0x3b2449(0x207)
|
|
48
|
+
};
|
|
49
|
+
function guessContentType(_0x149805) {
|
|
50
|
+
const _0x146a60 = { _0x38adf1: 0x195 }, _0x2df75a = _0x3b2449;
|
|
51
|
+
return MIME_BY_EXTENSION[_0x21802[_0x2df75a(0xef)](_0x149805)[_0x2df75a(_0x146a60._0x38adf1)]()] ?? _0x2df75a(0x1e4);
|
|
52
|
+
}
|
|
53
|
+
function safeFilename(_0x191c9b) {
|
|
54
|
+
const _0x2c586b = { _0x419efd: 0xe6 }, _0x184f5f = _0x3b2449;
|
|
55
|
+
return _0x191c9b[_0x184f5f(_0x2c586b._0x419efd)](/[\\/]/g, '-');
|
|
56
|
+
}
|
|
57
|
+
function extensionFor(_0x1f6b11) {
|
|
58
|
+
const _0x23b6d1 = {
|
|
59
|
+
_0x5e33d6: 0x1bb,
|
|
60
|
+
_0x45b50e: 0x191
|
|
61
|
+
}, _0x1efe5a = _0x3b2449, _0x406981 = Object[_0x1efe5a(_0x23b6d1._0x5e33d6)](MIME_BY_EXTENSION)[_0x1efe5a(0x10f)](([, _0x1ca50e]) => _0x1ca50e === _0x1f6b11);
|
|
62
|
+
return _0x406981?.[0x0] ?? _0x1efe5a(_0x23b6d1._0x45b50e);
|
|
63
|
+
}
|
|
64
|
+
async function prepareUploadFile(_0x22e7f9, _0x2b24df = {}) {
|
|
65
|
+
const _0x4911b1 = {
|
|
66
|
+
_0x3d4478: 0x23b,
|
|
67
|
+
_0x3bffca: 0x232,
|
|
68
|
+
_0x4d1612: 0xed,
|
|
69
|
+
_0x1bb4b0: 0x13c,
|
|
70
|
+
_0x16f1d3: 0x253
|
|
71
|
+
}, _0x5a0d31 = _0x3b2449;
|
|
72
|
+
if (!_0x21802[_0x5a0d31(0x104)](_0x22e7f9))
|
|
73
|
+
throw new Error(_0x5a0d31(0x1fe));
|
|
74
|
+
const _0x50ac67 = await stat(_0x22e7f9)[_0x5a0d31(0xf7)](() => null);
|
|
75
|
+
if (!_0x50ac67 || !_0x50ac67[_0x5a0d31(_0x4911b1._0x3d4478)]())
|
|
76
|
+
throw new Error(_0x5a0d31(_0x4911b1._0x3bffca) + _0x22e7f9);
|
|
77
|
+
const _0x6e9c78 = _0x2b24df[_0x5a0d31(0xff)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
78
|
+
if (_0x50ac67[_0x5a0d31(0x253)] > _0x6e9c78)
|
|
79
|
+
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x50ac67[_0x5a0d31(0x253)]);
|
|
80
|
+
const _0x14da1d = await readFile(_0x22e7f9), _0x56d6f9 = _0x21802[_0x5a0d31(_0x4911b1._0x4d1612)](_0x22e7f9);
|
|
81
|
+
return {
|
|
82
|
+
'contentBase64': _0x14da1d[_0x5a0d31(0x17a)](_0x5a0d31(_0x4911b1._0x1bb4b0)),
|
|
83
|
+
'contentType': guessContentType(_0x56d6f9),
|
|
84
|
+
'filename': _0x56d6f9,
|
|
85
|
+
'sizeBytes': _0x50ac67[_0x5a0d31(_0x4911b1._0x16f1d3)]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function createAttachmentCache(_0x11c09c = {}) {
|
|
89
|
+
const _0x8c27d = {
|
|
90
|
+
_0x16e75f: 0x1c9,
|
|
91
|
+
_0x517de8: 0x14f,
|
|
92
|
+
_0x3bad5e: 0x24c
|
|
93
|
+
}, _0x20fb7b = {
|
|
94
|
+
_0x44a80a: 0x1b1,
|
|
95
|
+
_0x59b1b7: 0x24a
|
|
96
|
+
}, _0x1d745a = _0x3b2449, _0x327547 = _0x11c09c[_0x1d745a(_0x8c27d._0x16e75f)] ?? _0x21802[_0x1d745a(_0x8c27d._0x517de8)](homedir(), '.dscord', _0x1d745a(_0x8c27d._0x3bad5e));
|
|
97
|
+
return {
|
|
98
|
+
'cacheDir': _0x327547,
|
|
99
|
+
async 'findCachedPath'(_0x29197c) {
|
|
100
|
+
const _0x5eb7bc = _0x1d745a;
|
|
101
|
+
await mkdir(_0x327547, { 'recursive': !![] });
|
|
102
|
+
const _0x3bed8b = await readdir(_0x327547), _0xdf3d0 = _0x3bed8b['find'](_0x47bd26 => _0x47bd26['startsWith'](_0x29197c + '-') || _0x47bd26[_0x5eb7bc(0x229)](_0x29197c));
|
|
103
|
+
return _0xdf3d0 ? _0x21802[_0x5eb7bc(0x14f)](_0x327547, _0xdf3d0) : null;
|
|
104
|
+
},
|
|
105
|
+
async 'save'(_0x3c4676) {
|
|
106
|
+
const _0xd1aef6 = _0x1d745a;
|
|
107
|
+
await mkdir(_0x327547, { 'recursive': !![] });
|
|
108
|
+
const _0xe30036 = _0x3c4676['originalFilename']?.[_0xd1aef6(0x17f)]() ? safeFilename(_0x3c4676[_0xd1aef6(0x1e9)]) : '' + _0x3c4676[_0xd1aef6(0x18e)] + extensionFor(_0x3c4676[_0xd1aef6(_0x20fb7b._0x44a80a)]), _0x17c262 = _0x21802['join'](_0x327547, _0x3c4676[_0xd1aef6(0x18e)] + '-' + _0xe30036);
|
|
109
|
+
return await writeFile(_0x17c262, _0x3c4676[_0xd1aef6(_0x20fb7b._0x59b1b7)]), _0x17c262;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
import {
|
|
114
|
+
createHash,
|
|
115
|
+
randomUUID
|
|
116
|
+
} from 'node:crypto';
|
|
117
|
+
var UNSUPPORTED_TARGET_MESSAGE = _0x3b2449(0x1c5);
|
|
118
|
+
function ensureSegment(_0x530043) {
|
|
119
|
+
const _0x156d9c = { _0x471cb4: 0x17f }, _0x219543 = _0x3b2449, _0x994e36 = _0x530043[_0x219543(_0x156d9c._0x471cb4)]();
|
|
120
|
+
if (!_0x994e36 || _0x994e36[_0x219543(0x181)](':'))
|
|
121
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
122
|
+
return _0x994e36;
|
|
123
|
+
}
|
|
124
|
+
function parseThreadParts(_0x402b01) {
|
|
125
|
+
const _0x4b257c = {
|
|
126
|
+
_0x308441: 0x208,
|
|
127
|
+
_0x1a082a: 0x13b
|
|
128
|
+
}, _0x26150c = _0x3b2449, _0x19aaba = _0x402b01[_0x26150c(_0x4b257c._0x308441)](':');
|
|
129
|
+
if (_0x19aaba[_0x26150c(_0x4b257c._0x1a082a)] < 0x1 || _0x19aaba[_0x26150c(_0x4b257c._0x1a082a)] > 0x2)
|
|
130
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
131
|
+
return {
|
|
132
|
+
'channelName': ensureSegment(_0x19aaba[0x0] ?? ''),
|
|
133
|
+
'threadShortId': _0x19aaba[0x1] ? ensureSegment(_0x19aaba[0x1]) : null
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function parseTarget(_0x1ef250) {
|
|
137
|
+
const _0xeab989 = {
|
|
138
|
+
_0x40a921: 0x229,
|
|
139
|
+
_0x176487: 0x18b,
|
|
140
|
+
_0x1d9357: 0x1e1,
|
|
141
|
+
_0xfc4651: 0x1d8,
|
|
142
|
+
_0x5639d0: 0x1ac
|
|
143
|
+
}, _0x567694 = _0x3b2449, _0x1804b5 = _0x1ef250[_0x567694(0x17f)]();
|
|
144
|
+
if (!_0x1804b5)
|
|
145
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
146
|
+
if (_0x1804b5[_0x567694(_0xeab989._0x40a921)]('#')) {
|
|
147
|
+
const _0x47ffcb = parseThreadParts(_0x1804b5['slice'](0x1)), _0x5e4abe = '#' + _0x47ffcb['channelName'];
|
|
148
|
+
if (!_0x47ffcb[_0x567694(0x1e1)])
|
|
149
|
+
return {
|
|
150
|
+
'channelName': _0x47ffcb['channelName'],
|
|
151
|
+
'channelTarget': _0x5e4abe,
|
|
152
|
+
'kind': 'channel',
|
|
153
|
+
'target': _0x5e4abe
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
156
|
+
'channelName': _0x47ffcb['channelName'],
|
|
157
|
+
'channelTarget': _0x5e4abe,
|
|
158
|
+
'kind': _0x567694(0x16b),
|
|
159
|
+
'target': _0x5e4abe + ':' + _0x47ffcb['threadShortId'],
|
|
160
|
+
'threadShortId': _0x47ffcb[_0x567694(0x1e1)]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
if (_0x1804b5[_0x567694(_0xeab989._0x40a921)](_0x567694(0x18b))) {
|
|
164
|
+
const _0x4f046d = parseThreadParts(_0x1804b5['slice'](0x3));
|
|
165
|
+
if (!_0x4f046d['channelName']['startsWith']('dm-'))
|
|
166
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
167
|
+
const _0x5e2fe7 = _0x567694(_0xeab989._0x176487) + _0x4f046d['channelName'];
|
|
168
|
+
if (!_0x4f046d[_0x567694(_0xeab989._0x1d9357)])
|
|
169
|
+
return {
|
|
170
|
+
'channelName': _0x4f046d[_0x567694(_0xeab989._0xfc4651)],
|
|
171
|
+
'channelTarget': _0x5e2fe7,
|
|
172
|
+
'kind': _0x567694(_0xeab989._0x5639d0),
|
|
173
|
+
'target': _0x5e2fe7
|
|
174
|
+
};
|
|
175
|
+
return {
|
|
176
|
+
'channelName': _0x4f046d['channelName'],
|
|
177
|
+
'channelTarget': _0x5e2fe7,
|
|
178
|
+
'kind': _0x567694(0x16b),
|
|
179
|
+
'target': _0x5e2fe7 + ':' + _0x4f046d['threadShortId'],
|
|
180
|
+
'threadShortId': _0x4f046d[_0x567694(0x1e1)]
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
184
|
+
}
|
|
185
|
+
function asErrorMessage(_0x48c3d0, _0x5a5ec8) {
|
|
186
|
+
const _0x534525 = { _0x38a1b3: 0x222 }, _0x597b94 = _0x3b2449;
|
|
187
|
+
if (typeof _0x48c3d0 === _0x597b94(_0x534525._0x38a1b3) && _0x48c3d0[_0x597b94(0x17f)]())
|
|
188
|
+
return _0x48c3d0;
|
|
189
|
+
return _0x5a5ec8;
|
|
190
|
+
}
|
|
191
|
+
function asRecord(_0x2b1839) {
|
|
192
|
+
const _0x4f14c9 = _0x3b2449;
|
|
193
|
+
return typeof _0x2b1839 === _0x4f14c9(0x226) && _0x2b1839 !== null ? _0x2b1839 : {};
|
|
194
|
+
}
|
|
195
|
+
function stableStringify(_0x1ee461) {
|
|
196
|
+
const _0x419972 = {
|
|
197
|
+
_0x164a5a: 0x1ab,
|
|
198
|
+
_0x32a60c: 0x1bb,
|
|
199
|
+
_0x4c2fc2: 0x188,
|
|
200
|
+
_0x2ff321: 0x1b9
|
|
201
|
+
}, _0x54c915 = _0x3b2449;
|
|
202
|
+
if (_0x1ee461 === null || typeof _0x1ee461 !== 'object')
|
|
203
|
+
return JSON[_0x54c915(_0x419972._0x164a5a)](_0x1ee461);
|
|
204
|
+
if (Array[_0x54c915(0x178)](_0x1ee461))
|
|
205
|
+
return '[' + _0x1ee461[_0x54c915(0x182)](_0x18e797 => stableStringify(_0x18e797))['join'](',') + ']';
|
|
206
|
+
const _0x11f76b = Object[_0x54c915(_0x419972._0x32a60c)](_0x1ee461)[_0x54c915(_0x419972._0x4c2fc2)](([, _0x12707f]) => _0x12707f !== void 0x0)[_0x54c915(_0x419972._0x2ff321)](([_0xc23a9f], [_0x333cb6]) => _0xc23a9f[_0x54c915(0x136)](_0x333cb6))['map'](([_0x356a31, _0x2b2397]) => JSON[_0x54c915(0x1ab)](_0x356a31) + ':' + stableStringify(_0x2b2397));
|
|
207
|
+
return '{' + _0x11f76b[_0x54c915(0x14f)](',') + '}';
|
|
208
|
+
}
|
|
209
|
+
function createHeaders(_0x2d01b8) {
|
|
210
|
+
return {
|
|
211
|
+
'Content-Type': 'application/json',
|
|
212
|
+
'x-daemon-api-key': _0x2d01b8
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
function toHttpBaseUrl(_0x5d1e83) {
|
|
216
|
+
const _0x2d4813 = {
|
|
217
|
+
_0x2ad133: 0x218,
|
|
218
|
+
_0x4266b3: 0x218,
|
|
219
|
+
_0x5ce51e: 0x107
|
|
220
|
+
}, _0xbf0062 = _0x3b2449, _0x2f71dc = new URL(_0x5d1e83);
|
|
221
|
+
if (_0x2f71dc[_0xbf0062(_0x2d4813._0x2ad133)] === _0xbf0062(0x176))
|
|
222
|
+
_0x2f71dc[_0xbf0062(_0x2d4813._0x4266b3)] = _0xbf0062(0x118);
|
|
223
|
+
else
|
|
224
|
+
_0x2f71dc[_0xbf0062(_0x2d4813._0x4266b3)] === 'wss:' && (_0x2f71dc[_0xbf0062(_0x2d4813._0x2ad133)] = _0xbf0062(_0x2d4813._0x5ce51e));
|
|
225
|
+
return _0x2f71dc[_0xbf0062(0x17a)]()['replace'](/\/$/, '');
|
|
226
|
+
}
|
|
227
|
+
function isMentionBoundary(_0x4af374) {
|
|
228
|
+
const _0xc9941b = _0x3b2449;
|
|
229
|
+
return !_0x4af374 || /\s|[([{'",。!?、:;]/[_0xc9941b(0x206)](_0x4af374);
|
|
230
|
+
}
|
|
231
|
+
function isMentionTerminal(_0x28c7dc) {
|
|
232
|
+
const _0x765799 = { _0x59cfa3: 0x206 }, _0x12a4ff = _0x3b2449;
|
|
233
|
+
return !_0x28c7dc || /\s|[)\]}'",。!?、:;,.!?]/[_0x12a4ff(_0x765799._0x59cfa3)](_0x28c7dc);
|
|
234
|
+
}
|
|
235
|
+
function buildMatchableEntries(_0x4c1bff) {
|
|
236
|
+
const _0x2c1be0 = { _0xeef21e: 0xf8 }, _0x2936c6 = _0x3b2449, _0x3a68f5 = [];
|
|
237
|
+
for (const _0x5b9543 of [
|
|
238
|
+
..._0x4c1bff[_0x2936c6(0x21d)],
|
|
239
|
+
..._0x4c1bff[_0x2936c6(0x10a)]
|
|
240
|
+
]) {
|
|
241
|
+
_0x3a68f5[_0x2936c6(_0x2c1be0._0xeef21e)]({
|
|
242
|
+
'matchName': _0x5b9543[_0x2936c6(0x1fa)],
|
|
243
|
+
'matchNameLower': _0x5b9543['name']['toLocaleLowerCase'](),
|
|
244
|
+
'participantId': _0x5b9543['id']
|
|
245
|
+
}), _0x5b9543['id'] !== _0x5b9543[_0x2936c6(0x1fa)] && _0x3a68f5[_0x2936c6(0xf8)]({
|
|
246
|
+
'matchName': _0x5b9543['id'],
|
|
247
|
+
'matchNameLower': _0x5b9543['id'][_0x2936c6(0x10d)](),
|
|
248
|
+
'participantId': _0x5b9543['id']
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
return _0x3a68f5;
|
|
252
|
+
}
|
|
253
|
+
function extractMentionedParticipantIds(_0x129b8f, _0x4c28cc) {
|
|
254
|
+
const _0x1251ba = {
|
|
255
|
+
_0x1b5a83: 0x10d,
|
|
256
|
+
_0x3b16e0: 0x10f,
|
|
257
|
+
_0x1e2bb2: 0x115,
|
|
258
|
+
_0x5bff6c: 0x150,
|
|
259
|
+
_0x359111: 0x13b
|
|
260
|
+
}, _0x81090d = {
|
|
261
|
+
_0x1409d4: 0x229,
|
|
262
|
+
_0x90609b: 0x11c,
|
|
263
|
+
_0x2b6ae9: 0x1ce
|
|
264
|
+
}, _0x2b0a67 = _0x3b2449, _0x82bc01 = buildMatchableEntries(_0x4c28cc)[_0x2b0a67(0x1b9)]((_0x1aa5ad, _0x48c232) => _0x48c232[_0x2b0a67(0x1ce)][_0x2b0a67(0x13b)] - _0x1aa5ad[_0x2b0a67(0x1ce)][_0x2b0a67(0x13b)]), _0x143653 = [], _0x28d487 = new Set();
|
|
265
|
+
for (let _0x46fbc9 = 0x0; _0x46fbc9 < _0x129b8f['length']; _0x46fbc9 += 0x1) {
|
|
266
|
+
if (_0x129b8f[_0x46fbc9] !== '@' || !isMentionBoundary(_0x129b8f[_0x46fbc9 - 0x1]))
|
|
267
|
+
continue;
|
|
268
|
+
const _0x391f42 = _0x129b8f[_0x2b0a67(0x180)](_0x46fbc9 + 0x1), _0x4541bd = _0x391f42[_0x2b0a67(_0x1251ba._0x1b5a83)](), _0x336ada = _0x82bc01[_0x2b0a67(_0x1251ba._0x3b16e0)](_0x515329 => {
|
|
269
|
+
const _0x5ae283 = _0x2b0a67;
|
|
270
|
+
if (!_0x4541bd[_0x5ae283(_0x81090d._0x1409d4)](_0x515329[_0x5ae283(_0x81090d._0x90609b)]))
|
|
271
|
+
return ![];
|
|
272
|
+
return isMentionTerminal(_0x391f42[_0x515329[_0x5ae283(_0x81090d._0x2b6ae9)]['length']]);
|
|
273
|
+
});
|
|
274
|
+
if (!_0x336ada || _0x28d487[_0x2b0a67(_0x1251ba._0x1e2bb2)](_0x336ada[_0x2b0a67(0x150)]))
|
|
275
|
+
continue;
|
|
276
|
+
_0x28d487['add'](_0x336ada['participantId']), _0x143653[_0x2b0a67(0xf8)](_0x336ada[_0x2b0a67(_0x1251ba._0x5bff6c)]), _0x46fbc9 += _0x336ada[_0x2b0a67(0x1ce)][_0x2b0a67(_0x1251ba._0x359111)];
|
|
277
|
+
}
|
|
278
|
+
return _0x143653;
|
|
279
|
+
}
|
|
280
|
+
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
281
|
+
function anySignal(..._0x1d79d2) {
|
|
282
|
+
const _0x5e6f3c = {
|
|
283
|
+
_0xbb7192: 0x216,
|
|
284
|
+
_0x53b19b: 0x1f7,
|
|
285
|
+
_0x1d2cab: 0x1fd,
|
|
286
|
+
_0x3b9623: 0x1f7,
|
|
287
|
+
_0x1b1eda: 0x20b
|
|
288
|
+
}, _0x288ad6 = _0x3b2449, _0x443afe = new AbortController();
|
|
289
|
+
for (const _0x1a99df of _0x1d79d2) {
|
|
290
|
+
if (_0x1a99df[_0x288ad6(_0x5e6f3c._0xbb7192)])
|
|
291
|
+
return _0x443afe[_0x288ad6(_0x5e6f3c._0x53b19b)](_0x1a99df[_0x288ad6(_0x5e6f3c._0x1d2cab)]), _0x443afe[_0x288ad6(0x20b)];
|
|
292
|
+
_0x1a99df['addEventListener'](_0x288ad6(_0x5e6f3c._0x3b9623), () => _0x443afe[_0x288ad6(0x1f7)](_0x1a99df[_0x288ad6(0x1fd)]), {
|
|
293
|
+
'once': !![],
|
|
294
|
+
'signal': _0x443afe[_0x288ad6(_0x5e6f3c._0x1b1eda)]
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
return _0x443afe[_0x288ad6(_0x5e6f3c._0x1b1eda)];
|
|
298
|
+
}
|
|
299
|
+
function createInternalAgentClient(_0x23c4c5) {
|
|
300
|
+
const _0x451600 = {
|
|
301
|
+
_0x176143: 0x200,
|
|
302
|
+
_0x1c7288: 0x139,
|
|
303
|
+
_0x5163c9: 0x17f,
|
|
304
|
+
_0xce036d: 0x1a3,
|
|
305
|
+
_0x3605d2: 0x211,
|
|
306
|
+
_0x497bc0: 0x1a0
|
|
307
|
+
}, _0x4d7552 = {
|
|
308
|
+
_0x4f6e12: 0x1ea,
|
|
309
|
+
_0x37d69e: 0xf5,
|
|
310
|
+
_0x17f38a: 0x188,
|
|
311
|
+
_0x2411bb: 0x1a9,
|
|
312
|
+
_0x3404eb: 0x13b,
|
|
313
|
+
_0x1c4bd8: 0x109,
|
|
314
|
+
_0x328426: 0x1a9,
|
|
315
|
+
_0x34ed8a: 0x13b,
|
|
316
|
+
_0x260fcf: 0x109,
|
|
317
|
+
_0x15436c: 0x182,
|
|
318
|
+
_0x7ebb75: 0x235,
|
|
319
|
+
_0xcece1f: 0x1a7,
|
|
320
|
+
_0x1ad25c: 0x173,
|
|
321
|
+
_0x1043db: 0x1dc,
|
|
322
|
+
_0x2fc08a: 0x1dc,
|
|
323
|
+
_0x480ae7: 0x125,
|
|
324
|
+
_0x44f6ac: 0x236,
|
|
325
|
+
_0x302491: 0x21a,
|
|
326
|
+
_0x138981: 0x247,
|
|
327
|
+
_0x24a052: 0x149,
|
|
328
|
+
_0x5f3e5c: 0x1bb,
|
|
329
|
+
_0x2f45b3: 0x247,
|
|
330
|
+
_0x36f8b0: 0x213,
|
|
331
|
+
_0x251160: 0x1fa,
|
|
332
|
+
_0x6c3b28: 0x23a,
|
|
333
|
+
_0x2bf453: 0x1a9,
|
|
334
|
+
_0x34035a: 0x1a7,
|
|
335
|
+
_0x361344: 0x193,
|
|
336
|
+
_0x3b2f49: 0xf8,
|
|
337
|
+
_0x2ba6f6: 0x24c,
|
|
338
|
+
_0x35a8d6: 0x19f,
|
|
339
|
+
_0x5ab6a2: 0x222,
|
|
340
|
+
_0x102e1c: 0x1b6,
|
|
341
|
+
_0x324622: 0x23a,
|
|
342
|
+
_0x537287: 0xf8,
|
|
343
|
+
_0x1c0f92: 0x223
|
|
344
|
+
}, _0x5e5561 = { _0x3becba: 0x1a7 }, _0x36e1d7 = { _0x3e2961: 0x123 }, _0x540134 = {
|
|
345
|
+
_0xc4ffdc: 0x17a,
|
|
346
|
+
_0x3176ea: 0x1ea,
|
|
347
|
+
_0xb389bf: 0x1cc
|
|
348
|
+
}, _0x225e59 = {
|
|
349
|
+
_0xdfaea9: 0x250,
|
|
350
|
+
_0x20d970: 0x1c3,
|
|
351
|
+
_0x33e866: 0x1ea,
|
|
352
|
+
_0x267fbb: 0x1d2,
|
|
353
|
+
_0x26abdc: 0x24a,
|
|
354
|
+
_0x4f49c6: 0x1b1,
|
|
355
|
+
_0x2b3d98: 0x1e4
|
|
356
|
+
}, _0x4a70d4 = {
|
|
357
|
+
_0x2e8c73: 0x1dc,
|
|
358
|
+
_0x2b2a87: 0x220,
|
|
359
|
+
_0x1cf627: 0x199,
|
|
360
|
+
_0x3e71e8: 0x1b3,
|
|
361
|
+
_0x4dcc66: 0x237,
|
|
362
|
+
_0xb26fe9: 0x148,
|
|
363
|
+
_0x4d0f1f: 0x24a
|
|
364
|
+
}, _0x1635ed = {
|
|
365
|
+
_0x55c711: 0x19d,
|
|
366
|
+
_0x42699e: 0x22a,
|
|
367
|
+
_0x1eaa2b: 0x1ab
|
|
368
|
+
}, _0xd4e2e0 = {
|
|
369
|
+
_0x3a2df8: 0x19d,
|
|
370
|
+
_0x3ee13d: 0x1ab
|
|
371
|
+
}, _0x5cd9d0 = {
|
|
372
|
+
_0x4a59fb: 0x19d,
|
|
373
|
+
_0x3717aa: 0x1c7
|
|
374
|
+
}, _0x376c4c = {
|
|
375
|
+
_0x1672f5: 0xf9,
|
|
376
|
+
_0x1bd090: 0x1ab,
|
|
377
|
+
_0x514d83: 0x148
|
|
378
|
+
}, _0x15ff05 = {
|
|
379
|
+
_0x4626a3: 0x1ac,
|
|
380
|
+
_0x55c063: 0x1d5,
|
|
381
|
+
_0x2d8818: 0x1d9
|
|
382
|
+
}, _0x278b5d = {
|
|
383
|
+
_0x3c5561: 0x126,
|
|
384
|
+
_0x11b7ce: 0x132,
|
|
385
|
+
_0x231f58: 0x24a
|
|
386
|
+
}, _0x179e25 = { _0x524a7b: 0x24a }, _0x218cb8 = { _0x2e89a2: 0x203 }, _0x285286 = {
|
|
387
|
+
_0x4f3cf0: 0x123,
|
|
388
|
+
_0x1aecdd: 0x127,
|
|
389
|
+
_0x317389: 0xf0,
|
|
390
|
+
_0x3bdde7: 0x1dc
|
|
391
|
+
}, _0x20d569 = {
|
|
392
|
+
_0x450733: 0x157,
|
|
393
|
+
_0x3d2e10: 0x228,
|
|
394
|
+
_0x35bd03: 0x1dc,
|
|
395
|
+
_0x44e3ee: 0x173,
|
|
396
|
+
_0xa721bf: 0x1ca,
|
|
397
|
+
_0x4ae566: 0x187,
|
|
398
|
+
_0x511ede: 0x17a,
|
|
399
|
+
_0x217a60: 0x1ea,
|
|
400
|
+
_0xdcf060: 0x1ad
|
|
401
|
+
}, _0x343ca8 = { _0x44616e: 0x1ef }, _0x1d1f77 = { _0x5d6070: 0x1ef }, _0x10b0e8 = {
|
|
402
|
+
_0x38670a: 0x21a,
|
|
403
|
+
_0x27728f: 0x200,
|
|
404
|
+
_0x547a22: 0x236,
|
|
405
|
+
_0x45a0e4: 0x21a,
|
|
406
|
+
_0x3f6d1c: 0x125,
|
|
407
|
+
_0x52843e: 0x222,
|
|
408
|
+
_0x445293: 0x125,
|
|
409
|
+
_0x1442f1: 0x1dc,
|
|
410
|
+
_0x252e44: 0x229
|
|
411
|
+
}, _0x5670c9 = {
|
|
412
|
+
_0x17857e: 0x16b,
|
|
413
|
+
_0x50e80d: 0x100,
|
|
414
|
+
_0x5d9986: 0x21a,
|
|
415
|
+
_0x384ebe: 0x125,
|
|
416
|
+
_0x39a091: 0x125,
|
|
417
|
+
_0xc8ea83: 0x229,
|
|
418
|
+
_0x4ae8b4: 0x1e1,
|
|
419
|
+
_0x395618: 0x1dc
|
|
420
|
+
}, _0x9dd58b = {
|
|
421
|
+
_0x103195: 0x100,
|
|
422
|
+
_0x36145e: 0x125,
|
|
423
|
+
_0x2815f8: 0x1dc
|
|
424
|
+
}, _0x77d9de = {
|
|
425
|
+
_0x531a33: 0x21d,
|
|
426
|
+
_0x47767f: 0x10a,
|
|
427
|
+
_0x1e018f: 0x10f
|
|
428
|
+
}, _0x329395 = {
|
|
429
|
+
_0x2fe960: 0x21d,
|
|
430
|
+
_0x5c2fb6: 0x1eb
|
|
431
|
+
}, _0x4ca2d0 = { _0x14723b: 0xf7 }, _0x4794b3 = {
|
|
432
|
+
_0xe1df0a: 0x19d,
|
|
433
|
+
_0x464c9a: 0x1ab,
|
|
434
|
+
_0x5c147a: 0x24a,
|
|
435
|
+
_0x590071: 0x173,
|
|
436
|
+
_0x241be5: 0x100,
|
|
437
|
+
_0x55684d: 0x1dc
|
|
438
|
+
}, _0x138454 = {
|
|
439
|
+
_0x1ce86d: 0x1ab,
|
|
440
|
+
_0x3bed9e: 0x18d,
|
|
441
|
+
_0x1fb54d: 0x148
|
|
442
|
+
}, _0x85e16c = {
|
|
443
|
+
_0x16b499: 0x20b,
|
|
444
|
+
_0x4049dd: 0x20b,
|
|
445
|
+
_0x299a8f: 0x259
|
|
446
|
+
}, _0x354df8 = {
|
|
447
|
+
_0x41a0c7: 0x20b,
|
|
448
|
+
_0x4694a6: 0x259
|
|
449
|
+
}, _0x4ae3fb = {
|
|
450
|
+
_0x533b4a: 0x225,
|
|
451
|
+
_0x16d8f2: 0x222,
|
|
452
|
+
_0x169422: 0x17f,
|
|
453
|
+
_0x15eacf: 0x128,
|
|
454
|
+
_0x640cf3: 0xe3,
|
|
455
|
+
_0x431386: 0x1f3,
|
|
456
|
+
_0x231906: 0x119
|
|
457
|
+
}, _0x518c37 = {
|
|
458
|
+
_0x408d68: 0x121,
|
|
459
|
+
_0x69b144: 0xe6,
|
|
460
|
+
_0x58453d: 0x121,
|
|
461
|
+
_0x24ca20: 0xea,
|
|
462
|
+
_0x2dd2da: 0x165,
|
|
463
|
+
_0x3c5a56: 0xe4
|
|
464
|
+
}, _0x18d4d9 = _0x3b2449, _0x31a1dd = _0x23c4c5[_0x18d4d9(0x1a6)] ?? fetch, _0x52a517 = _0x23c4c5[_0x18d4d9(0x19c)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x4cb948 = typeof _0x23c4c5['initialLastSeenSeq'] === _0x18d4d9(_0x451600._0x176143) && _0x23c4c5['initialLastSeenSeq'] > 0x0 ? _0x23c4c5[_0x18d4d9(0x1dd)] : 0x0, _0x3d049b = _0x23c4c5[_0x18d4d9(_0x451600._0x1c7288)]?.[_0x18d4d9(_0x451600._0x5163c9)]() || void 0x0, _0x19c708 = _0x23c4c5[_0x18d4d9(_0x451600._0xce036d)]?.[_0x18d4d9(0x17f)]() || void 0x0, _0x5dec46 = _0x23c4c5[_0x18d4d9(_0x451600._0x3605d2)] === !![], _0x32317c = _0x23c4c5[_0x18d4d9(_0x451600._0x497bc0)]?.['trim']() || void 0x0, _0x2abba7 = _0x23c4c5[_0x18d4d9(0x1e8)]?.['trim']() || void 0x0, _0x35d170 = createHeaders(_0x23c4c5['daemonApiKey']), _0x206b2d = toHttpBaseUrl(_0x23c4c5[_0x18d4d9(0xd4)]);
|
|
465
|
+
let _0xf5c400 = null;
|
|
466
|
+
const _0x160e5b = new Map();
|
|
467
|
+
let _0x4d1bf5 = _0x4cb948, _0x25e91f = _0x4cb948;
|
|
468
|
+
function _0x354d90(_0x4bcba7) {
|
|
469
|
+
const _0x58ae34 = _0x18d4d9, _0x7f90a4 = _0x4bcba7[_0x58ae34(_0x518c37._0x408d68)][_0x58ae34(0x10e)][_0x58ae34(0x149)](_0x58ae34(0xe5)) ?? _0x58ae34(0x17b), _0x313b38 = _0x4bcba7['bodyText'][_0x58ae34(0x17f)]()[_0x58ae34(_0x518c37._0x69b144)](/\s+/g, '\x20')[_0x58ae34(0x180)](0x0, 0x78) || '<empty>';
|
|
470
|
+
return _0x58ae34(0x1f2) + _0x4bcba7['requestUrl'] + '\x20返回了非\x20JSON\x20响应(status=' + _0x4bcba7[_0x58ae34(_0x518c37._0x58453d)]['status'] + _0x58ae34(_0x518c37._0x24ca20) + _0x7f90a4 + _0x58ae34(_0x518c37._0x2dd2da) + _0x313b38 + _0x58ae34(_0x518c37._0x3c5a56);
|
|
471
|
+
}
|
|
472
|
+
async function _0x38b090(_0x132946, _0x1df62e) {
|
|
473
|
+
const _0x4d2267 = _0x18d4d9, _0x4a5c8b = Buffer['from'](await _0x1df62e[_0x4d2267(0x194)]())['toString'](_0x4d2267(0xd2));
|
|
474
|
+
if (!_0x4a5c8b[_0x4d2267(0x17f)]())
|
|
475
|
+
return {};
|
|
476
|
+
try {
|
|
477
|
+
return JSON['parse'](_0x4a5c8b);
|
|
478
|
+
} catch {
|
|
479
|
+
throw new Error(_0x354d90({
|
|
480
|
+
'bodyText': _0x4a5c8b,
|
|
481
|
+
'requestUrl': _0x132946,
|
|
482
|
+
'response': _0x1df62e
|
|
483
|
+
}));
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function _0x5b5032(_0x3e46a9, _0x281673) {
|
|
487
|
+
const _0x407808 = _0x18d4d9, _0x4d8644 = typeof _0x281673[_0x407808(_0x4ae3fb._0x533b4a)] === _0x407808(_0x4ae3fb._0x16d8f2) ? _0x281673[_0x407808(0x225)][_0x407808(_0x4ae3fb._0x169422)]() : '';
|
|
488
|
+
if (_0x4d8644)
|
|
489
|
+
return _0x4d8644;
|
|
490
|
+
const _0x49340e = Date[_0x407808(0x105)]();
|
|
491
|
+
for (const [_0x551ed2, _0x5ed1a0] of _0x160e5b) {
|
|
492
|
+
_0x5ed1a0[_0x407808(_0x4ae3fb._0x15eacf)] <= _0x49340e && _0x160e5b[_0x407808(_0x4ae3fb._0x640cf3)](_0x551ed2);
|
|
493
|
+
}
|
|
494
|
+
const _0x1515a0 = {
|
|
495
|
+
..._0x281673,
|
|
496
|
+
'idempotency_key': void 0x0
|
|
497
|
+
}, _0x12e942 = createHash(_0x407808(0x12d))['update'](_0x3e46a9 + ':' + stableStringify(_0x1515a0))['digest'](_0x407808(_0x4ae3fb._0x431386)), _0x389ae4 = _0x3e46a9 + ':' + _0x12e942, _0x1f941f = _0x160e5b[_0x407808(0x149)](_0x389ae4);
|
|
498
|
+
if (_0x1f941f)
|
|
499
|
+
return _0x1f941f[_0x407808(_0x4ae3fb._0x231906)];
|
|
500
|
+
const _0x37436a = _0x407808(0xe1) + _0x3e46a9 + ':' + randomUUID();
|
|
501
|
+
return _0x160e5b[_0x407808(0x1d9)](_0x389ae4, {
|
|
502
|
+
'expiresAt': _0x49340e + 0x5 * 0x3c * 0x3e8,
|
|
503
|
+
'value': _0x37436a
|
|
504
|
+
}), _0x37436a;
|
|
505
|
+
}
|
|
506
|
+
async function _0x4da1de(_0x499db9, _0x4d03f5) {
|
|
507
|
+
const _0x23319e = _0x18d4d9, _0x2b741c = new AbortController(), _0xd92b1f = setTimeout(() => _0x2b741c[_0x23319e(0x1f7)](), _0x52a517), _0x5a9067 = _0x4d03f5?.['signal'] ? anySignal(_0x4d03f5['signal'], _0x2b741c[_0x23319e(0x20b)]) : _0x2b741c[_0x23319e(_0x354df8._0x41a0c7)], _0x5893b3 = '' + _0x206b2d + _0x499db9;
|
|
508
|
+
try {
|
|
509
|
+
const _0x424990 = await _0x31a1dd(_0x5893b3, {
|
|
510
|
+
..._0x4d03f5,
|
|
511
|
+
'signal': _0x5a9067
|
|
512
|
+
}), _0x53f4bd = await _0x38b090(_0x5893b3, _0x424990);
|
|
513
|
+
if (!_0x424990['ok'] || _0x53f4bd['success'] === ![])
|
|
514
|
+
throw new Error(asErrorMessage(_0x53f4bd[_0x23319e(_0x354df8._0x4694a6)], 'HTTP\x20' + _0x424990[_0x23319e(0x1d5)]));
|
|
515
|
+
return _0x53f4bd;
|
|
516
|
+
} finally {
|
|
517
|
+
clearTimeout(_0xd92b1f);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
async function _0x145182(_0x1e2024, _0x543d37) {
|
|
521
|
+
const _0x5a281f = _0x18d4d9, _0x4c8080 = new AbortController(), _0x43764a = setTimeout(() => _0x4c8080[_0x5a281f(0x1f7)](), _0x52a517), _0xd8da38 = _0x543d37?.[_0x5a281f(_0x85e16c._0x16b499)] ? anySignal(_0x543d37['signal'], _0x4c8080[_0x5a281f(0x20b)]) : _0x4c8080[_0x5a281f(_0x85e16c._0x4049dd)], _0x55b8e0 = '' + _0x206b2d + _0x1e2024;
|
|
522
|
+
try {
|
|
523
|
+
const _0x175911 = await _0x31a1dd(_0x55b8e0, {
|
|
524
|
+
..._0x543d37,
|
|
525
|
+
'signal': _0xd8da38
|
|
526
|
+
}), _0x53d299 = await _0x38b090(_0x55b8e0, _0x175911);
|
|
527
|
+
if (!_0x175911['ok'])
|
|
528
|
+
throw new Error(asErrorMessage(_0x53d299[_0x5a281f(_0x85e16c._0x299a8f)], _0x5a281f(0x1d2) + _0x175911['status']));
|
|
529
|
+
return _0x53d299;
|
|
530
|
+
} finally {
|
|
531
|
+
clearTimeout(_0x43764a);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
async function _0x806ef2(_0x1c73b1) {
|
|
535
|
+
const _0x2fbca1 = _0x18d4d9;
|
|
536
|
+
if (!_0x19c708 || _0x1c73b1 <= _0x25e91f)
|
|
537
|
+
return;
|
|
538
|
+
await _0x4da1de(_0x2fbca1(0x21b) + encodeURIComponent(_0x19c708) + _0x2fbca1(0x189), {
|
|
539
|
+
'body': JSON['stringify']({ 'lastSeenSeq': _0x1c73b1 }),
|
|
540
|
+
'headers': _0x35d170,
|
|
541
|
+
'method': _0x2fbca1(0x230)
|
|
542
|
+
}), _0x25e91f = _0x1c73b1;
|
|
543
|
+
}
|
|
544
|
+
async function _0x405553(_0x3aade9) {
|
|
545
|
+
const _0x1c93ec = _0x18d4d9;
|
|
546
|
+
if (!_0x3d049b || !_0x32317c || _0x3aade9 <= _0x25e91f)
|
|
547
|
+
return;
|
|
548
|
+
const _0x459987 = await _0x31a1dd(_0x3d049b + _0x1c93ec(0x112), {
|
|
549
|
+
'body': JSON[_0x1c93ec(_0x138454._0x1ce86d)]({
|
|
550
|
+
'last_seen_seq': _0x3aade9,
|
|
551
|
+
'worker_session_id': _0x32317c
|
|
552
|
+
}),
|
|
553
|
+
'headers': { 'Content-Type': _0x1c93ec(_0x138454._0x3bed9e) },
|
|
554
|
+
'method': _0x1c93ec(_0x138454._0x1fb54d)
|
|
555
|
+
});
|
|
556
|
+
if (!_0x459987['ok'])
|
|
557
|
+
throw new Error(_0x1c93ec(0x1d2) + _0x459987[_0x1c93ec(0x1d5)]);
|
|
558
|
+
_0x25e91f = _0x3aade9;
|
|
559
|
+
}
|
|
560
|
+
async function _0x1fce9f(_0x2b81d8) {
|
|
561
|
+
const _0xef4836 = _0x18d4d9, _0x42689a = parseTarget(_0x2b81d8), _0x286d88 = await _0x4da1de(_0xef4836(0x220) + _0x23c4c5[_0xef4836(_0x4794b3._0xe1df0a)] + _0xef4836(0x11a), {
|
|
562
|
+
'body': JSON[_0xef4836(_0x4794b3._0x464c9a)]({ 'target': _0x42689a['target'] }),
|
|
563
|
+
'headers': _0x35d170,
|
|
564
|
+
'method': 'POST'
|
|
565
|
+
});
|
|
566
|
+
return {
|
|
567
|
+
'channelId': _0x286d88[_0xef4836(_0x4794b3._0x5c147a)]?.[_0xef4836(_0x4794b3._0x590071)] ?? '',
|
|
568
|
+
'target': _0x42689a[_0xef4836(_0x4794b3._0x241be5)],
|
|
569
|
+
'task': _0x286d88['data']?.[_0xef4836(0x22d)],
|
|
570
|
+
'threadId': _0x286d88['data']?.[_0xef4836(_0x4794b3._0x55684d)],
|
|
571
|
+
'threadNumber': _0x286d88[_0xef4836(0x24a)]?.[_0xef4836(0x21a)]
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
async function _0xf77908(_0x27f121 = {}) {
|
|
575
|
+
const _0x25aaed = {
|
|
576
|
+
_0x769c30: 0x188,
|
|
577
|
+
_0x1dce45: 0x182,
|
|
578
|
+
_0x19e030: 0xd9,
|
|
579
|
+
_0x176826: 0x24a
|
|
580
|
+
}, _0x417fbd = _0x18d4d9;
|
|
581
|
+
if (!_0x27f121['forceRefresh'] && _0xf5c400)
|
|
582
|
+
return _0xf5c400;
|
|
583
|
+
return _0xf5c400 = (async () => {
|
|
584
|
+
const _0x301c5b = _0x24f4, _0x3aa5bd = await _0x4da1de(_0x301c5b(0x220) + _0x23c4c5['agentId'] + '/server', {
|
|
585
|
+
'headers': _0x35d170,
|
|
586
|
+
'method': _0x301c5b(0x1ea)
|
|
587
|
+
}), _0x11df5f = _0x3aa5bd['data']?.[_0x301c5b(0x15a)] ?? [], _0x3a61d0 = _0x11df5f[_0x301c5b(0x188)](_0x53d452 => _0x53d452[_0x301c5b(0x1ef)]?.[_0x301c5b(0xd7)] === _0x301c5b(0x179))[_0x301c5b(0x182)](_0x17b292 => ({
|
|
588
|
+
'id': _0x2a6b5c(_0x17b292),
|
|
589
|
+
'name': _0x48f48d(_0x17b292)
|
|
590
|
+
}))[_0x301c5b(0x188)](_0x43ca30 => _0x43ca30['id']), _0x22d0aa = _0x11df5f[_0x301c5b(_0x25aaed._0x769c30)](_0x2bcbee => _0x2bcbee[_0x301c5b(0x1ef)]?.['type'] !== _0x301c5b(0x179))[_0x301c5b(_0x25aaed._0x1dce45)](_0x4f6538 => ({
|
|
591
|
+
'id': _0x2a6b5c(_0x4f6538),
|
|
592
|
+
'name': _0x48f48d(_0x4f6538)
|
|
593
|
+
}))['filter'](_0x3bfd99 => _0x3bfd99['id']), _0x437465 = _0x3aa5bd['data']?.[_0x301c5b(_0x25aaed._0x19e030)]['id'] ?? '';
|
|
594
|
+
return {
|
|
595
|
+
'agents': _0x3a61d0,
|
|
596
|
+
'channels': _0x3aa5bd[_0x301c5b(_0x25aaed._0x176826)]?.[_0x301c5b(0x235)] ?? [],
|
|
597
|
+
'humans': _0x22d0aa,
|
|
598
|
+
'serverId': _0x437465,
|
|
599
|
+
'serverName': _0x3aa5bd['data']?.[_0x301c5b(0xd9)][_0x301c5b(0x1fa)] ?? _0x437465
|
|
600
|
+
};
|
|
601
|
+
})()[_0x417fbd(_0x4ca2d0._0x14723b)](_0x205dad => {
|
|
602
|
+
_0xf5c400 = null;
|
|
603
|
+
throw _0x205dad;
|
|
604
|
+
}), _0xf5c400;
|
|
605
|
+
}
|
|
606
|
+
function _0x3d6587(_0x962d18, _0x4d2500) {
|
|
607
|
+
const _0x497eaa = _0x18d4d9;
|
|
608
|
+
return _0x4d2500[_0x497eaa(_0x329395._0x2fe960)]['some'](_0x5b72bb => _0x5b72bb['id'] === _0x962d18 || _0x5b72bb['name'] === _0x962d18) ? _0x497eaa(0x179) : _0x497eaa(_0x329395._0x5c2fb6);
|
|
609
|
+
}
|
|
610
|
+
function _0xce9ed8(_0x896f62, _0x44b728) {
|
|
611
|
+
const _0x5d74af = _0x18d4d9, _0x450a63 = [
|
|
612
|
+
..._0x44b728[_0x5d74af(_0x77d9de._0x531a33)],
|
|
613
|
+
..._0x44b728[_0x5d74af(_0x77d9de._0x47767f)]
|
|
614
|
+
][_0x5d74af(_0x77d9de._0x1e018f)](_0xfc34e7 => _0xfc34e7['id'] === _0x896f62);
|
|
615
|
+
return _0x450a63?.['name'] ?? _0x896f62;
|
|
616
|
+
}
|
|
617
|
+
function _0x21c9a1(_0x340b04) {
|
|
618
|
+
const _0x185dab = _0x18d4d9;
|
|
619
|
+
if (_0x340b04['threadNumber'] != null)
|
|
620
|
+
return _0x340b04[_0x185dab(_0x9dd58b._0x103195)] + ':t' + _0x340b04['threadNumber'];
|
|
621
|
+
if (_0x340b04[_0x185dab(0x125)])
|
|
622
|
+
return _0x340b04[_0x185dab(0x100)] + ':' + _0x340b04[_0x185dab(_0x9dd58b._0x36145e)];
|
|
623
|
+
if (_0x340b04[_0x185dab(_0x9dd58b._0x2815f8)])
|
|
624
|
+
return _0x340b04[_0x185dab(0x100)] + ':' + _0x340b04['threadId'][_0x185dab(0x180)](0x0, 0x8);
|
|
625
|
+
return _0x340b04[_0x185dab(0x100)];
|
|
626
|
+
}
|
|
627
|
+
function _0x27f662(_0x241362, _0x2eee3a) {
|
|
628
|
+
const _0x77af1b = _0x18d4d9;
|
|
629
|
+
try {
|
|
630
|
+
const _0x1d36a9 = parseTarget(_0x241362);
|
|
631
|
+
if (_0x1d36a9['kind'] !== _0x77af1b(_0x5670c9._0x17857e) || _0x1d36a9['channelTarget'] !== _0x2eee3a[_0x77af1b(_0x5670c9._0x50e80d)])
|
|
632
|
+
return ![];
|
|
633
|
+
if (_0x2eee3a[_0x77af1b(0x21a)] != null && _0x1d36a9[_0x77af1b(0x1e1)] === 't' + _0x2eee3a[_0x77af1b(_0x5670c9._0x5d9986)])
|
|
634
|
+
return !![];
|
|
635
|
+
if (_0x2eee3a[_0x77af1b(_0x5670c9._0x384ebe)])
|
|
636
|
+
return _0x1d36a9[_0x77af1b(0x1e1)] === _0x2eee3a[_0x77af1b(_0x5670c9._0x39a091)] || _0x2eee3a[_0x77af1b(0x125)][_0x77af1b(_0x5670c9._0xc8ea83)](_0x1d36a9[_0x77af1b(_0x5670c9._0x4ae8b4)]);
|
|
637
|
+
if (_0x2eee3a[_0x77af1b(0x1dc)])
|
|
638
|
+
return _0x1d36a9[_0x77af1b(0x1e1)] === _0x2eee3a[_0x77af1b(_0x5670c9._0x395618)] || _0x2eee3a['threadId'][_0x77af1b(0x229)](_0x1d36a9[_0x77af1b(_0x5670c9._0x4ae8b4)]);
|
|
639
|
+
return ![];
|
|
640
|
+
} catch {
|
|
641
|
+
return ![];
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
function _0x3c4aef(_0x489a55, _0x13138c) {
|
|
645
|
+
const _0x1565c5 = _0x18d4d9;
|
|
646
|
+
try {
|
|
647
|
+
const _0x1e04f7 = parseTarget(_0x489a55);
|
|
648
|
+
if (_0x1e04f7[_0x1565c5(0x23a)] !== _0x1565c5(0x16b))
|
|
649
|
+
return ![];
|
|
650
|
+
const _0x4746a6 = typeof _0x13138c[_0x1565c5(_0x10b0e8._0x38670a)] === _0x1565c5(_0x10b0e8._0x27728f) && Number[_0x1565c5(_0x10b0e8._0x547a22)](_0x13138c[_0x1565c5(_0x10b0e8._0x45a0e4)]) ? _0x13138c[_0x1565c5(0x21a)] : void 0x0;
|
|
651
|
+
if (_0x4746a6 != null && _0x1e04f7['threadShortId'] === 't' + _0x4746a6)
|
|
652
|
+
return !![];
|
|
653
|
+
const _0x16b884 = typeof _0x13138c[_0x1565c5(_0x10b0e8._0x3f6d1c)] === _0x1565c5(_0x10b0e8._0x52843e) ? _0x13138c[_0x1565c5(_0x10b0e8._0x445293)] : void 0x0;
|
|
654
|
+
if (_0x16b884)
|
|
655
|
+
return _0x1e04f7['threadShortId'] === _0x16b884 || _0x16b884[_0x1565c5(0x229)](_0x1e04f7['threadShortId']);
|
|
656
|
+
const _0x5628c8 = typeof _0x13138c['threadId'] === _0x1565c5(_0x10b0e8._0x52843e) ? _0x13138c[_0x1565c5(_0x10b0e8._0x1442f1)] : void 0x0;
|
|
657
|
+
return Boolean(_0x5628c8) && (_0x1e04f7['threadShortId'] === _0x5628c8 || _0x5628c8[_0x1565c5(_0x10b0e8._0x252e44)](_0x1e04f7['threadShortId']));
|
|
658
|
+
} catch {
|
|
659
|
+
return ![];
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
function _0x2a6b5c(_0x1a31d0) {
|
|
663
|
+
const _0x1c675e = _0x18d4d9;
|
|
664
|
+
return _0x1a31d0['member']?.['participantId'] ?? _0x1a31d0[_0x1c675e(_0x1d1f77._0x5d6070)]?.['id'] ?? _0x1a31d0['participantId'] ?? '';
|
|
665
|
+
}
|
|
666
|
+
function _0x48f48d(_0x437322) {
|
|
667
|
+
const _0x1d233b = _0x18d4d9;
|
|
668
|
+
return _0x437322[_0x1d233b(_0x343ca8._0x44616e)]?.[_0x1d233b(0x1fa)] ?? _0x2a6b5c(_0x437322);
|
|
669
|
+
}
|
|
670
|
+
async function _0x40290f(_0x4745ac) {
|
|
671
|
+
const _0x5942b9 = _0x18d4d9, _0x33b07b = Math[_0x5942b9(_0x20d569._0x450733)](_0x4745ac[_0x5942b9(0x228)] ?? 0x32, 0x64), _0x569e9e = await _0xf77908(), _0x13c2f3 = new URLSearchParams();
|
|
672
|
+
_0x13c2f3[_0x5942b9(0x1d9)](_0x5942b9(_0x20d569._0x3d2e10), String(_0x33b07b));
|
|
673
|
+
_0x4745ac[_0x5942b9(0x1dc)] ? (_0x13c2f3[_0x5942b9(0x1d9)](_0x5942b9(_0x20d569._0x35bd03), _0x4745ac[_0x5942b9(_0x20d569._0x35bd03)]), _0x13c2f3['set'](_0x5942b9(_0x20d569._0x44e3ee), _0x4745ac[_0x5942b9(0x173)])) : _0x13c2f3[_0x5942b9(0x1d9)](_0x5942b9(_0x20d569._0x44e3ee), _0x4745ac[_0x5942b9(0x173)]);
|
|
674
|
+
_0x4745ac[_0x5942b9(_0x20d569._0xa721bf)] && _0x13c2f3['set']('cursor', String(_0x4745ac['before']));
|
|
675
|
+
_0x4745ac[_0x5942b9(0x14e)] !== void 0x0 && _0x13c2f3['set'](_0x5942b9(0x14e), String(_0x4745ac['after']));
|
|
676
|
+
const _0x52af35 = await _0x4da1de('/internal/agent/' + _0x23c4c5['agentId'] + _0x5942b9(_0x20d569._0x4ae566) + _0x13c2f3[_0x5942b9(_0x20d569._0x511ede)](), {
|
|
677
|
+
'headers': _0x35d170,
|
|
678
|
+
'method': _0x5942b9(_0x20d569._0x217a60)
|
|
679
|
+
}), _0x4fcb09 = (_0x52af35[_0x5942b9(0x24a)] ?? [])['map'](_0x2af9ec => ({
|
|
680
|
+
'attachments': (_0x2af9ec['attachments'] ?? [])[_0x5942b9(0x182)](_0x29113e => ({
|
|
681
|
+
'filename': _0x29113e[_0x5942b9(0x237)] ?? _0x29113e['id'],
|
|
682
|
+
'id': _0x29113e['id']
|
|
683
|
+
})),
|
|
684
|
+
'content': _0x2af9ec[_0x5942b9(0x1b6)] ?? '',
|
|
685
|
+
'createdAt': _0x2af9ec[_0x5942b9(0x1f0)],
|
|
686
|
+
..._0x2af9ec[_0x5942b9(0x23a)] && _0x2af9ec['kind'] !== _0x5942b9(0x13f) ? { 'kind': _0x2af9ec[_0x5942b9(0x23a)] } : {},
|
|
687
|
+
'messageId': _0x2af9ec['id'],
|
|
688
|
+
'senderName': _0xce9ed8(_0x2af9ec[_0x5942b9(0x133)], _0x569e9e),
|
|
689
|
+
'senderType': _0x3d6587(_0x2af9ec['senderParticipantId'], _0x569e9e),
|
|
690
|
+
'seq': _0x2af9ec[_0x5942b9(0x1f8)] ?? 0x0
|
|
691
|
+
}));
|
|
692
|
+
return {
|
|
693
|
+
'channel': _0x4745ac['channelTarget'],
|
|
694
|
+
'hasMore': _0x52af35['meta']?.[_0x5942b9(_0x20d569._0xdcf060)] ?? ![],
|
|
695
|
+
'messages': _0x4fcb09,
|
|
696
|
+
'nextCursor': _0x52af35['meta']?.[_0x5942b9(0xf5)]
|
|
697
|
+
};
|
|
698
|
+
}
|
|
699
|
+
return {
|
|
700
|
+
async 'sendMessage'(_0x35cc8b) {
|
|
701
|
+
const _0x1339f6 = _0x18d4d9, _0x540274 = await _0x1fce9f(_0x35cc8b[_0x1339f6(_0x285286._0x4f3cf0)]), _0x2aa0e4 = _0x35cc8b['content']['includes']('@') ? extractMentionedParticipantIds(_0x35cc8b[_0x1339f6(_0x285286._0x1aecdd)], await _0xf77908()) : [], _0x57c368 = await _0x4da1de('/internal/agent/' + _0x23c4c5[_0x1339f6(0x19d)] + _0x1339f6(_0x285286._0x317389), {
|
|
702
|
+
'body': JSON[_0x1339f6(0x1ab)]({
|
|
703
|
+
'attachment_ids': _0x35cc8b['attachmentIds'],
|
|
704
|
+
'bodyMarkdown': _0x35cc8b[_0x1339f6(0x127)],
|
|
705
|
+
'channelId': _0x540274[_0x1339f6(0x173)],
|
|
706
|
+
..._0x2aa0e4[_0x1339f6(0x13b)] > 0x0 ? { 'mentionedParticipantIds': _0x2aa0e4 } : {},
|
|
707
|
+
'threadId': _0x540274[_0x1339f6(_0x285286._0x3bdde7)],
|
|
708
|
+
..._0x35cc8b[_0x1339f6(0x214)] ? { 'visibility': _0x35cc8b[_0x1339f6(0x214)] } : {}
|
|
709
|
+
}),
|
|
710
|
+
'headers': _0x35d170,
|
|
711
|
+
'method': _0x1339f6(0x148)
|
|
712
|
+
});
|
|
713
|
+
return { 'messageId': _0x57c368[_0x1339f6(0x24a)]?.['id'] ?? '' };
|
|
714
|
+
},
|
|
715
|
+
async 'listSchedules'() {
|
|
716
|
+
const _0x15651d = _0x18d4d9, _0x46f40e = await _0x4da1de(_0x15651d(0x15d), {
|
|
717
|
+
'headers': _0x35d170,
|
|
718
|
+
'method': _0x15651d(0x1ea)
|
|
719
|
+
});
|
|
720
|
+
return _0x46f40e[_0x15651d(0x24a)] ?? [];
|
|
721
|
+
},
|
|
722
|
+
async 'claimScheduleRun'(_0xb56b04) {
|
|
723
|
+
const _0x222cb = _0x18d4d9, _0x1a8b95 = await _0x4da1de(_0x222cb(_0x218cb8._0x2e89a2), {
|
|
724
|
+
'body': JSON[_0x222cb(0x1ab)](_0xb56b04),
|
|
725
|
+
'headers': _0x35d170,
|
|
726
|
+
'method': 'POST'
|
|
727
|
+
});
|
|
728
|
+
return _0x1a8b95[_0x222cb(0x24a)] ?? {
|
|
729
|
+
'granted': ![],
|
|
730
|
+
'runId': null,
|
|
731
|
+
'schedule': null,
|
|
732
|
+
'scheduledFor': _0xb56b04['scheduledFor']
|
|
733
|
+
};
|
|
734
|
+
},
|
|
735
|
+
async 'startScheduleRun'(_0x5a2010) {
|
|
736
|
+
const _0x4a6837 = _0x18d4d9, _0x1ccc1f = await _0x4da1de('/api/internal/schedules/' + encodeURIComponent(_0x5a2010[_0x4a6837(0x126)]) + _0x4a6837(0xfb), {
|
|
737
|
+
'body': JSON[_0x4a6837(0x1ab)]({}),
|
|
738
|
+
'headers': _0x35d170,
|
|
739
|
+
'method': _0x4a6837(0x148)
|
|
740
|
+
});
|
|
741
|
+
return _0x1ccc1f[_0x4a6837(_0x179e25._0x524a7b)] ?? {
|
|
742
|
+
'claimedByDaemonId': '',
|
|
743
|
+
'id': _0x5a2010[_0x4a6837(0x126)],
|
|
744
|
+
'scheduleId': '',
|
|
745
|
+
'status': _0x4a6837(0x18c)
|
|
746
|
+
};
|
|
747
|
+
},
|
|
748
|
+
async 'finishScheduleRun'(_0x102630) {
|
|
749
|
+
const _0x91397e = _0x18d4d9, _0xe88eb4 = await _0x4da1de('/api/internal/schedules/' + encodeURIComponent(_0x102630[_0x91397e(_0x278b5d._0x3c5561)]) + _0x91397e(_0x278b5d._0x11b7ce), {
|
|
750
|
+
'body': JSON['stringify']({
|
|
751
|
+
'error': _0x102630['error'],
|
|
752
|
+
'resultJson': _0x102630['resultJson'],
|
|
753
|
+
'status': _0x102630['status']
|
|
754
|
+
}),
|
|
755
|
+
'headers': _0x35d170,
|
|
756
|
+
'method': 'POST'
|
|
757
|
+
});
|
|
758
|
+
return _0xe88eb4[_0x91397e(_0x278b5d._0x231f58)] ?? {
|
|
759
|
+
'nextRunAt': null,
|
|
760
|
+
'run': {
|
|
761
|
+
'claimedByDaemonId': '',
|
|
762
|
+
'id': _0x102630['runId'],
|
|
763
|
+
'scheduleId': '',
|
|
764
|
+
'status': _0x102630['status']
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
},
|
|
768
|
+
async 'listTasks'(_0x466c86) {
|
|
769
|
+
const _0x3fc820 = _0x18d4d9, _0x28c1aa = new URLSearchParams();
|
|
770
|
+
return _0x28c1aa['set'](_0x3fc820(0x1ac), _0x466c86[_0x3fc820(_0x15ff05._0x4626a3)]), _0x466c86[_0x3fc820(_0x15ff05._0x55c063)] && _0x28c1aa[_0x3fc820(_0x15ff05._0x2d8818)]('status', _0x466c86[_0x3fc820(_0x15ff05._0x55c063)]), _0x145182(_0x3fc820(0x220) + _0x23c4c5[_0x3fc820(0x19d)] + _0x3fc820(0x1fc) + _0x28c1aa[_0x3fc820(0x17a)](), {
|
|
771
|
+
'headers': _0x35d170,
|
|
772
|
+
'method': 'GET'
|
|
773
|
+
});
|
|
774
|
+
},
|
|
775
|
+
async 'createTasks'(_0x2fd5e8) {
|
|
776
|
+
const _0x45ac2b = _0x18d4d9;
|
|
777
|
+
return _0x145182('/internal/agent/' + _0x23c4c5[_0x45ac2b(0x19d)] + _0x45ac2b(_0x376c4c._0x1672f5), {
|
|
778
|
+
'body': JSON[_0x45ac2b(_0x376c4c._0x1bd090)]({
|
|
779
|
+
..._0x2fd5e8,
|
|
780
|
+
'idempotency_key': _0x5b5032(_0x45ac2b(0x246), _0x2fd5e8)
|
|
781
|
+
}),
|
|
782
|
+
'headers': _0x35d170,
|
|
783
|
+
'method': _0x45ac2b(_0x376c4c._0x514d83)
|
|
784
|
+
});
|
|
785
|
+
},
|
|
786
|
+
async 'claimTasks'(_0x27114c) {
|
|
787
|
+
const _0x3937b2 = _0x18d4d9;
|
|
788
|
+
return _0x145182('/internal/agent/' + _0x23c4c5[_0x3937b2(_0x5cd9d0._0x4a59fb)] + _0x3937b2(_0x5cd9d0._0x3717aa), {
|
|
789
|
+
'body': JSON['stringify']({
|
|
790
|
+
..._0x27114c,
|
|
791
|
+
'idempotency_key': _0x5b5032('claim_tasks', _0x27114c)
|
|
792
|
+
}),
|
|
793
|
+
'headers': _0x35d170,
|
|
794
|
+
'method': 'POST'
|
|
795
|
+
});
|
|
796
|
+
},
|
|
797
|
+
async 'unclaimTask'(_0x24ed43) {
|
|
798
|
+
const _0x5f2971 = _0x18d4d9;
|
|
799
|
+
return _0x145182('/internal/agent/' + _0x23c4c5[_0x5f2971(_0xd4e2e0._0x3a2df8)] + '/tasks/unclaim', {
|
|
800
|
+
'body': JSON[_0x5f2971(_0xd4e2e0._0x3ee13d)]({
|
|
801
|
+
..._0x24ed43,
|
|
802
|
+
'idempotency_key': _0x5b5032(_0x5f2971(0x24f), _0x24ed43)
|
|
803
|
+
}),
|
|
804
|
+
'headers': _0x35d170,
|
|
805
|
+
'method': _0x5f2971(0x148)
|
|
806
|
+
});
|
|
807
|
+
},
|
|
808
|
+
async 'updateTaskStatus'(_0x2e5bcc) {
|
|
809
|
+
const _0x29e9ef = _0x18d4d9;
|
|
810
|
+
return _0x145182('/internal/agent/' + _0x23c4c5[_0x29e9ef(_0x1635ed._0x55c711)] + _0x29e9ef(_0x1635ed._0x42699e), {
|
|
811
|
+
'body': JSON[_0x29e9ef(_0x1635ed._0x1eaa2b)]({
|
|
812
|
+
..._0x2e5bcc,
|
|
813
|
+
'idempotency_key': _0x5b5032(_0x29e9ef(0x1e6), _0x2e5bcc)
|
|
814
|
+
}),
|
|
815
|
+
'headers': _0x35d170,
|
|
816
|
+
'method': 'POST'
|
|
817
|
+
});
|
|
818
|
+
},
|
|
819
|
+
async 'uploadFile'(_0x176dc0) {
|
|
820
|
+
const _0x390f8c = _0x18d4d9, _0x434082 = await _0x1fce9f(_0x176dc0[_0x390f8c(0x1ac)]);
|
|
821
|
+
if (_0x434082[_0x390f8c(_0x4a70d4._0x2e8c73)])
|
|
822
|
+
throw new Error('upload_file\x20only\x20supports\x20channel\x20or\x20DM\x20targets,\x20not\x20thread\x20targets');
|
|
823
|
+
const _0x33d96c = await _0x4da1de(_0x390f8c(_0x4a70d4._0x2b2a87) + _0x23c4c5['agentId'] + _0x390f8c(_0x4a70d4._0x1cf627), {
|
|
824
|
+
'body': JSON['stringify']({
|
|
825
|
+
'channel': _0x434082[_0x390f8c(0x123)],
|
|
826
|
+
'contentBase64': _0x176dc0[_0x390f8c(_0x4a70d4._0x3e71e8)],
|
|
827
|
+
'contentType': _0x176dc0[_0x390f8c(0x1b1)],
|
|
828
|
+
'originalFilename': _0x176dc0[_0x390f8c(_0x4a70d4._0x4dcc66)]
|
|
829
|
+
}),
|
|
830
|
+
'headers': _0x35d170,
|
|
831
|
+
'method': _0x390f8c(_0x4a70d4._0xb26fe9)
|
|
832
|
+
});
|
|
833
|
+
return {
|
|
834
|
+
'attachmentId': _0x33d96c[_0x390f8c(_0x4a70d4._0x4d0f1f)]?.['id'] ?? '',
|
|
835
|
+
'filename': _0x33d96c[_0x390f8c(0x24a)]?.['originalFilename'] ?? _0x176dc0[_0x390f8c(0x237)],
|
|
836
|
+
'sizeBytes': _0x33d96c[_0x390f8c(_0x4a70d4._0x4d0f1f)]?.[_0x390f8c(0x256)] ?? 0x0
|
|
837
|
+
};
|
|
838
|
+
},
|
|
839
|
+
async 'downloadAttachment'(_0x14f135) {
|
|
840
|
+
const _0x1a35be = _0x18d4d9, _0x305620 = await _0x4da1de('/api/attachments/' + _0x14f135, {
|
|
841
|
+
'headers': _0x35d170,
|
|
842
|
+
'method': _0x1a35be(0x1ea)
|
|
843
|
+
}), _0xe9d863 = new AbortController(), _0x340dcc = setTimeout(() => _0xe9d863[_0x1a35be(0x1f7)](), _0x52a517);
|
|
844
|
+
try {
|
|
845
|
+
const _0x5786bf = await _0x31a1dd(_0x206b2d + _0x1a35be(_0x225e59._0xdfaea9) + _0x14f135 + _0x1a35be(_0x225e59._0x20d970), {
|
|
846
|
+
'headers': _0x35d170,
|
|
847
|
+
'method': _0x1a35be(_0x225e59._0x33e866),
|
|
848
|
+
'signal': _0xe9d863[_0x1a35be(0x20b)]
|
|
849
|
+
});
|
|
850
|
+
if (!_0x5786bf['ok'])
|
|
851
|
+
throw new Error(_0x1a35be(_0x225e59._0x267fbb) + _0x5786bf['status']);
|
|
852
|
+
return {
|
|
853
|
+
'contentType': _0x305620[_0x1a35be(_0x225e59._0x26abdc)]?.[_0x1a35be(_0x225e59._0x4f49c6)] ?? _0x5786bf['headers'][_0x1a35be(0x149)]('content-type') ?? _0x1a35be(_0x225e59._0x2b3d98),
|
|
854
|
+
'data': Buffer[_0x1a35be(0x1a2)](await _0x5786bf[_0x1a35be(0x194)]()),
|
|
855
|
+
'originalFilename': _0x305620[_0x1a35be(0x24a)]?.[_0x1a35be(0x1e9)]
|
|
856
|
+
};
|
|
857
|
+
} finally {
|
|
858
|
+
clearTimeout(_0x340dcc);
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
async 'listServer'() {
|
|
862
|
+
return _0xf77908({ 'forceRefresh': !![] });
|
|
863
|
+
},
|
|
864
|
+
async 'getLatestEventSeq'() {
|
|
865
|
+
const _0x513cb1 = _0x18d4d9, _0x427b19 = new URLSearchParams();
|
|
866
|
+
_0x427b19['set']('afterSeq', '0'), _0x427b19[_0x513cb1(0x1d9)]('limit', '1');
|
|
867
|
+
const _0x1ab55d = await _0x4da1de(_0x513cb1(0x220) + _0x23c4c5['agentId'] + '/receive?' + _0x427b19[_0x513cb1(_0x540134._0xc4ffdc)](), {
|
|
868
|
+
'headers': _0x35d170,
|
|
869
|
+
'method': _0x513cb1(_0x540134._0x3176ea)
|
|
870
|
+
}), _0x890be6 = _0x1ab55d[_0x513cb1(_0x540134._0xb389bf)]?.['latestSeq'];
|
|
871
|
+
return typeof _0x890be6 === 'number' && _0x890be6 > 0x0 ? _0x890be6 : 0x0;
|
|
872
|
+
},
|
|
873
|
+
async 'readHistory'(_0x520f3c) {
|
|
874
|
+
const _0x45eac6 = _0x18d4d9, _0xc312c0 = await _0x1fce9f(_0x520f3c['channel']);
|
|
875
|
+
return _0x40290f({
|
|
876
|
+
'after': _0x520f3c['after'],
|
|
877
|
+
'before': _0x520f3c['before'],
|
|
878
|
+
'channelId': _0xc312c0[_0x45eac6(0x173)],
|
|
879
|
+
'channelTarget': _0xc312c0[_0x45eac6(_0x36e1d7._0x3e2961)],
|
|
880
|
+
'limit': _0x520f3c['limit'],
|
|
881
|
+
'threadId': _0xc312c0[_0x45eac6(0x1dc)]
|
|
882
|
+
});
|
|
883
|
+
},
|
|
884
|
+
'resolveTarget': _0x1fce9f,
|
|
885
|
+
async 'checkMessages'() {
|
|
886
|
+
const _0xf7dcdc = { _0x35f818: 0x1a7 }, _0x43971f = _0x18d4d9, _0x555021 = new URLSearchParams();
|
|
887
|
+
_0x555021[_0x43971f(0x1d9)](_0x43971f(0x111), String(_0x4d1bf5));
|
|
888
|
+
const _0x395d56 = _0x555021[_0x43971f(0x17a)](), _0x63cde3 = await _0x4da1de(_0x43971f(0x220) + _0x23c4c5['agentId'] + '/receive' + (_0x395d56 ? '?' + _0x395d56 : ''), {
|
|
889
|
+
'headers': _0x35d170,
|
|
890
|
+
'method': _0x43971f(_0x4d7552._0x4f6e12)
|
|
891
|
+
}), _0x39d36e = _0x63cde3[_0x43971f(0x24a)] ?? [], _0x573bb5 = _0x63cde3[_0x43971f(0x1cc)]?.[_0x43971f(_0x4d7552._0x37d69e)], _0x280873 = _0x2abba7 ? _0x39d36e[_0x43971f(_0x4d7552._0x17f38a)](_0x5ca136 => {
|
|
892
|
+
const _0x38ba34 = _0x43971f;
|
|
893
|
+
if (_0x5ca136[_0x38ba34(0x12f)] !== _0x38ba34(0x174))
|
|
894
|
+
return ![];
|
|
895
|
+
return _0x3c4aef(_0x2abba7, asRecord(_0x5ca136[_0x38ba34(_0x5e5561._0x3becba)]));
|
|
896
|
+
}) : _0x39d36e, _0x4cdac1 = _0x573bb5 !== void 0x0 ? _0x2abba7 ? Math[_0x43971f(_0x4d7552._0x2411bb)](_0x4d1bf5, _0x280873['length'] > 0x0 ? _0x280873[_0x280873[_0x43971f(_0x4d7552._0x3404eb)] - 0x1][_0x43971f(_0x4d7552._0x1c4bd8)] : _0x4d1bf5) : Math[_0x43971f(_0x4d7552._0x328426)](_0x4d1bf5, _0x573bb5) : _0x280873[_0x43971f(_0x4d7552._0x34ed8a)] > 0x0 ? Math[_0x43971f(_0x4d7552._0x328426)](_0x4d1bf5, _0x280873[_0x280873[_0x43971f(0x13b)] - 0x1][_0x43971f(_0x4d7552._0x260fcf)]) : _0x4d1bf5, _0x5d659f = (_0x2abba7 ? _0x280873 : _0x39d36e)[_0x43971f(0x188)](_0x293813 => _0x293813['aggregateType'] === 'message');
|
|
897
|
+
let _0x5445a2 = await _0xf77908(), _0x2cce68 = new Map(_0x5445a2[_0x43971f(0x235)][_0x43971f(_0x4d7552._0x15436c)](_0x4a0ce4 => [
|
|
898
|
+
_0x4a0ce4['id'],
|
|
899
|
+
_0x4a0ce4
|
|
900
|
+
]));
|
|
901
|
+
const _0x403ee1 = _0x5d659f['some'](_0x550912 => {
|
|
902
|
+
const _0x426c29 = _0x43971f, _0x47802d = asRecord(_0x550912[_0x426c29(_0xf7dcdc._0x35f818)]), _0x57cb14 = typeof _0x47802d?.[_0x426c29(0x173)] === 'string' ? _0x47802d[_0x426c29(0x173)] : '';
|
|
903
|
+
return Boolean(_0x57cb14) && !_0x2cce68[_0x426c29(0x115)](_0x57cb14);
|
|
904
|
+
});
|
|
905
|
+
_0x403ee1 && (_0x5445a2 = await _0xf77908({ 'forceRefresh': !![] }), _0x2cce68 = new Map(_0x5445a2[_0x43971f(_0x4d7552._0x7ebb75)][_0x43971f(0x182)](_0x2eb73e => [
|
|
906
|
+
_0x2eb73e['id'],
|
|
907
|
+
_0x2eb73e
|
|
908
|
+
])));
|
|
909
|
+
const _0xbf3df3 = new Map();
|
|
910
|
+
for (const _0x3f6667 of _0x5d659f) {
|
|
911
|
+
const _0x458efa = asRecord(_0x3f6667[_0x43971f(_0x4d7552._0xcece1f)]), _0x541932 = typeof _0x458efa[_0x43971f(_0x4d7552._0x1ad25c)] === 'string' ? _0x458efa[_0x43971f(0x173)] : '';
|
|
912
|
+
if (!_0x541932)
|
|
913
|
+
continue;
|
|
914
|
+
const _0x19a3ed = typeof _0x458efa[_0x43971f(_0x4d7552._0x1043db)] === _0x43971f(0x222) ? _0x458efa[_0x43971f(_0x4d7552._0x2fc08a)] : void 0x0, _0x2ccdb9 = typeof _0x458efa[_0x43971f(_0x4d7552._0x480ae7)] === 'string' ? _0x458efa[_0x43971f(0x125)] : void 0x0, _0x832448 = typeof _0x458efa['threadNumber'] === 'number' && Number[_0x43971f(_0x4d7552._0x44f6ac)](_0x458efa[_0x43971f(_0x4d7552._0x302491)]) ? _0x458efa[_0x43971f(0x21a)] : void 0x0, _0x134c7d = Boolean(_0x19a3ed && (!_0x2ccdb9 || _0x3f6667[_0x43971f(_0x4d7552._0x138981)] !== _0x2ccdb9)), _0x159b46 = _0x134c7d ? _0x541932 + ':' + _0x19a3ed : _0x541932, _0x3fb1ba = _0xbf3df3[_0x43971f(_0x4d7552._0x24a052)](_0x159b46) ?? {
|
|
915
|
+
'aggregateIds': [],
|
|
916
|
+
'channelId': _0x541932,
|
|
917
|
+
'entries': new Map(),
|
|
918
|
+
'isThreadReply': _0x134c7d,
|
|
919
|
+
'rootMessageId': _0x2ccdb9,
|
|
920
|
+
'threadNumber': _0x832448,
|
|
921
|
+
'threadId': _0x134c7d ? _0x19a3ed : void 0x0
|
|
922
|
+
};
|
|
923
|
+
_0x3fb1ba[_0x43971f(_0x4d7552._0x302491)] == null && _0x832448 != null && (_0x3fb1ba[_0x43971f(0x21a)] = _0x832448), !_0x3fb1ba[_0x43971f(0x125)] && _0x2ccdb9 && (_0x3fb1ba[_0x43971f(_0x4d7552._0x480ae7)] = _0x2ccdb9), _0x3fb1ba[_0x43971f(0x183)][_0x43971f(0xf8)](_0x3f6667[_0x43971f(0x247)]), _0x3fb1ba[_0x43971f(_0x4d7552._0x5f3e5c)]['set'](_0x3f6667[_0x43971f(_0x4d7552._0x2f45b3)], {
|
|
924
|
+
'payloadJson': _0x3f6667['payloadJson'],
|
|
925
|
+
'seq': _0x3f6667['seq']
|
|
926
|
+
}), _0xbf3df3[_0x43971f(0x1d9)](_0x159b46, _0x3fb1ba);
|
|
927
|
+
}
|
|
928
|
+
const _0x226714 = [];
|
|
929
|
+
for (const _0x56ebbd of _0xbf3df3[_0x43971f(_0x4d7552._0x36f8b0)]()) {
|
|
930
|
+
const {
|
|
931
|
+
channelId: _0x36304c,
|
|
932
|
+
threadId: _0x387ea1,
|
|
933
|
+
rootMessageId: _0x53aaaa,
|
|
934
|
+
threadNumber: _0x30bcae,
|
|
935
|
+
aggregateIds: _0x37b719,
|
|
936
|
+
isThreadReply: _0x12aa21,
|
|
937
|
+
entries: _0x133b3f
|
|
938
|
+
} = _0x56ebbd, _0x26fbc3 = _0x2cce68['get'](_0x36304c), _0x15f58f = _0x26fbc3?.[_0x43971f(_0x4d7552._0x251160)] ?? _0x36304c, _0xdc5d63 = _0x26fbc3?.[_0x43971f(_0x4d7552._0x6c3b28)] === 'dm' ? 'dm:' + _0x15f58f : '#' + _0x15f58f, _0x60510 = {
|
|
939
|
+
'channelTarget': _0xdc5d63,
|
|
940
|
+
'rootMessageId': _0x53aaaa,
|
|
941
|
+
'threadId': _0x387ea1,
|
|
942
|
+
'threadNumber': _0x30bcae
|
|
943
|
+
}, _0x15abfe = await _0x40290f({
|
|
944
|
+
'channelId': _0x36304c,
|
|
945
|
+
'channelTarget': _0xdc5d63,
|
|
946
|
+
'limit': Math[_0x43971f(_0x4d7552._0x2bf453)](_0x37b719[_0x43971f(0x13b)], 0x32),
|
|
947
|
+
'threadId': _0x387ea1
|
|
948
|
+
}), _0x18d76e = new Map(_0x15abfe[_0x43971f(0x20e)][_0x43971f(_0x4d7552._0x15436c)](_0x482454 => [
|
|
949
|
+
_0x482454[_0x43971f(0x106)],
|
|
950
|
+
_0x482454
|
|
951
|
+
])), _0x2625b4 = _0x387ea1 ? _0x21c9a1(_0x60510) : _0xdc5d63, _0x52e577 = _0x2abba7 ? _0x12aa21 && _0x27f662(_0x2abba7, _0x60510) : !![], _0x2533bd = _0x12aa21 ? _0x52e577 && _0x2abba7 ? _0x2abba7 : _0x2625b4 : _0xdc5d63;
|
|
952
|
+
for (const _0x294ee1 of _0x37b719) {
|
|
953
|
+
if (!_0x52e577)
|
|
954
|
+
continue;
|
|
955
|
+
const _0x452bc8 = _0x133b3f['get'](_0x294ee1), _0x16eb8c = _0x452bc8 ? asRecord(_0x452bc8[_0x43971f(_0x4d7552._0x34035a)]) : void 0x0, _0x446652 = _0x16eb8c?.[_0x43971f(_0x4d7552._0x361344)] === 'targeted', _0x22c454 = _0x18d76e[_0x43971f(_0x4d7552._0x24a052)](_0x294ee1);
|
|
956
|
+
if (_0x22c454) {
|
|
957
|
+
_0x226714[_0x43971f(_0x4d7552._0x3b2f49)]({
|
|
958
|
+
'attachments': _0x22c454[_0x43971f(_0x4d7552._0x2ba6f6)],
|
|
959
|
+
'content': _0x22c454[_0x43971f(0x127)],
|
|
960
|
+
'createdAt': _0x22c454['createdAt'],
|
|
961
|
+
..._0x22c454[_0x43971f(0x23a)] ? { 'kind': _0x22c454[_0x43971f(0x23a)] } : {},
|
|
962
|
+
'messageId': _0x22c454[_0x43971f(0x106)],
|
|
963
|
+
'senderName': _0x22c454[_0x43971f(_0x4d7552._0x35a8d6)],
|
|
964
|
+
'senderType': _0x22c454[_0x43971f(0x1e0)],
|
|
965
|
+
'target': _0x2533bd,
|
|
966
|
+
..._0x446652 ? { 'targetedTask': !![] } : {}
|
|
967
|
+
});
|
|
968
|
+
continue;
|
|
969
|
+
}
|
|
970
|
+
if (_0x452bc8) {
|
|
971
|
+
const _0x51cd7c = typeof _0x16eb8c?.[_0x43971f(0x133)] === _0x43971f(_0x4d7552._0x5ab6a2) ? _0x16eb8c['senderParticipantId'] : '', _0x25d2b7 = typeof _0x16eb8c?.[_0x43971f(0x1b6)] === 'string' ? _0x16eb8c[_0x43971f(_0x4d7552._0x102e1c)] : '', _0x270f2e = typeof _0x16eb8c?.[_0x43971f(0x23a)] === _0x43971f(0x222) && _0x16eb8c[_0x43971f(_0x4d7552._0x324622)] !== 'chat' ? _0x16eb8c[_0x43971f(0x23a)] : void 0x0;
|
|
972
|
+
_0x51cd7c && _0x25d2b7 && _0x226714[_0x43971f(_0x4d7552._0x537287)]({
|
|
973
|
+
'attachments': [],
|
|
974
|
+
'content': _0x25d2b7,
|
|
975
|
+
'createdAt': new Date()[_0x43971f(_0x4d7552._0x1c0f92)](),
|
|
976
|
+
..._0x270f2e ? { 'kind': _0x270f2e } : {},
|
|
977
|
+
'messageId': _0x294ee1,
|
|
978
|
+
'senderName': _0xce9ed8(_0x51cd7c, _0x5445a2),
|
|
979
|
+
'senderType': _0x3d6587(_0x51cd7c, _0x5445a2),
|
|
980
|
+
'target': _0x2533bd,
|
|
981
|
+
..._0x446652 ? { 'targetedTask': !![] } : {}
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
if (_0x4cdac1 > 0x0) {
|
|
987
|
+
if (_0x19c708)
|
|
988
|
+
await _0x806ef2(_0x4cdac1);
|
|
989
|
+
else
|
|
990
|
+
_0x32317c && await _0x405553(_0x4cdac1);
|
|
991
|
+
}
|
|
992
|
+
return _0x4cdac1 > _0x4d1bf5 && (_0x4d1bf5 = _0x4cdac1), { 'messages': _0x226714 };
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
function toLocalTime(_0x4a7f13) {
|
|
997
|
+
const _0x33cc08 = {
|
|
998
|
+
_0x523cce: 0x1db,
|
|
999
|
+
_0x18f2de: 0xeb,
|
|
1000
|
+
_0x28eb93: 0xdc
|
|
1001
|
+
}, _0x4555a1 = _0x3b2449, _0x1af1d9 = new Date(_0x4a7f13);
|
|
1002
|
+
if (Number['isNaN'](_0x1af1d9['getTime']()))
|
|
1003
|
+
return _0x4a7f13;
|
|
1004
|
+
const _0x16755a = _0x55472a => String(_0x55472a)[_0x4555a1(0x155)](0x2, '0');
|
|
1005
|
+
return _0x1af1d9[_0x4555a1(_0x33cc08._0x523cce)]() + '-' + _0x16755a(_0x1af1d9[_0x4555a1(0xfd)]() + 0x1) + '-' + _0x16755a(_0x1af1d9['getDate']()) + '\x20' + _0x16755a(_0x1af1d9[_0x4555a1(_0x33cc08._0x18f2de)]()) + ':' + _0x16755a(_0x1af1d9[_0x4555a1(0x242)]()) + ':' + _0x16755a(_0x1af1d9[_0x4555a1(_0x33cc08._0x28eb93)]());
|
|
1006
|
+
}
|
|
1007
|
+
function formatAttachmentSuffix(_0x44e5aa) {
|
|
1008
|
+
const _0x1f1876 = { _0x1a84cc: 0x182 }, _0x5ab09e = _0x3b2449;
|
|
1009
|
+
if (!_0x44e5aa || _0x44e5aa[_0x5ab09e(0x13b)] === 0x0)
|
|
1010
|
+
return '';
|
|
1011
|
+
return '\x20[' + _0x44e5aa['length'] + _0x5ab09e(0x1be) + (_0x44e5aa['length'] > 0x1 ? 's' : '') + ':\x20' + _0x44e5aa[_0x5ab09e(_0x1f1876._0x1a84cc)](_0x3cf97b => _0x3cf97b['filename'] + _0x5ab09e(0x1d1) + _0x3cf97b['id'] + ')')[_0x5ab09e(0x14f)](',\x20') + '\x20—\x20use\x20view_file\x20to\x20see]';
|
|
1012
|
+
}
|
|
1013
|
+
function formatCheckMessages(_0x1b86d7) {
|
|
1014
|
+
const _0x139661 = { _0x3dcd61: 0x182 }, _0xdb7d54 = {
|
|
1015
|
+
_0x2646d0: 0x1e0,
|
|
1016
|
+
_0x43db33: 0x1cb,
|
|
1017
|
+
_0x524291: 0x23a,
|
|
1018
|
+
_0x1593fc: 0x23a,
|
|
1019
|
+
_0x4c753e: 0x161,
|
|
1020
|
+
_0x3a1959: 0x123,
|
|
1021
|
+
_0x2abb54: 0x168,
|
|
1022
|
+
_0x1f2bd2: 0x106,
|
|
1023
|
+
_0x17606e: 0x1f0,
|
|
1024
|
+
_0x359f78: 0x1af
|
|
1025
|
+
}, _0x543818 = _0x3b2449;
|
|
1026
|
+
if (_0x1b86d7[_0x543818(0x13b)] === 0x0)
|
|
1027
|
+
return 'No\x20new\x20messages.';
|
|
1028
|
+
return _0x1b86d7[_0x543818(_0x139661._0x3dcd61)](_0x5c6479 => {
|
|
1029
|
+
const _0x8ae246 = _0x543818, _0x47d4de = _0x5c6479[_0x8ae246(_0xdb7d54._0x2646d0)] === 'agent' ? _0x8ae246(_0xdb7d54._0x43db33) : '', _0x443d4b = _0x5c6479[_0x8ae246(_0xdb7d54._0x524291)] && _0x5c6479[_0x8ae246(_0xdb7d54._0x1593fc)] !== _0x8ae246(0x13f) ? _0x8ae246(0x160) + _0x5c6479[_0x8ae246(0x23a)] : '';
|
|
1030
|
+
return _0x8ae246(_0xdb7d54._0x4c753e) + _0x5c6479[_0x8ae246(_0xdb7d54._0x3a1959)] + _0x8ae246(_0xdb7d54._0x2abb54) + _0x5c6479[_0x8ae246(_0xdb7d54._0x1f2bd2)]['slice'](0x0, 0x8) + _0x8ae246(0x143) + toLocalTime(_0x5c6479[_0x8ae246(_0xdb7d54._0x17606e)]) + _0x47d4de + _0x443d4b + _0x8ae246(_0xdb7d54._0x359f78) + _0x5c6479['senderName'] + ':\x20' + _0x5c6479[_0x8ae246(0x127)] + formatAttachmentSuffix(_0x5c6479['attachments']);
|
|
1031
|
+
})[_0x543818(0x14f)]('\x0a');
|
|
1032
|
+
}
|
|
1033
|
+
function formatHistory(_0x38b7b4) {
|
|
1034
|
+
const _0x3cb90c = {
|
|
1035
|
+
_0x571dff: 0x20e,
|
|
1036
|
+
_0x61b3b6: 0x182,
|
|
1037
|
+
_0x434020: 0x249,
|
|
1038
|
+
_0x260cce: 0x15c,
|
|
1039
|
+
_0x1aef05: 0x249,
|
|
1040
|
+
_0x1a2aea: 0x166
|
|
1041
|
+
}, _0x430e89 = {
|
|
1042
|
+
_0x37ff2d: 0x23a,
|
|
1043
|
+
_0x5912f9: 0x23a,
|
|
1044
|
+
_0x280bd0: 0x1a4,
|
|
1045
|
+
_0x5656a0: 0x1f0,
|
|
1046
|
+
_0x5e9e85: 0x1af,
|
|
1047
|
+
_0x5531f4: 0x19f,
|
|
1048
|
+
_0x39b802: 0x24c
|
|
1049
|
+
}, _0x349ce9 = _0x3b2449;
|
|
1050
|
+
if (_0x38b7b4[_0x349ce9(0x20e)][_0x349ce9(0x13b)] === 0x0)
|
|
1051
|
+
return '##\x20Message\x20History\x20for\x20' + _0x38b7b4[_0x349ce9(0x1ac)] + _0x349ce9(0x171);
|
|
1052
|
+
const _0x582038 = _0x38b7b4[_0x349ce9(_0x3cb90c._0x571dff)][_0x349ce9(_0x3cb90c._0x61b3b6)](_0x2255fa => {
|
|
1053
|
+
const _0x4f1b9f = _0x349ce9, _0x56f710 = _0x2255fa[_0x4f1b9f(0x1e0)] === 'agent' ? '\x20type=agent' : '', _0x13c925 = _0x2255fa[_0x4f1b9f(_0x430e89._0x37ff2d)] && _0x2255fa[_0x4f1b9f(_0x430e89._0x5912f9)] !== _0x4f1b9f(0x13f) ? _0x4f1b9f(0x160) + _0x2255fa['kind'] : '';
|
|
1054
|
+
return _0x4f1b9f(_0x430e89._0x280bd0) + _0x2255fa['seq'] + _0x4f1b9f(0x168) + _0x2255fa[_0x4f1b9f(0x106)] + _0x4f1b9f(0x143) + toLocalTime(_0x2255fa[_0x4f1b9f(_0x430e89._0x5656a0)]) + _0x56f710 + _0x13c925 + _0x4f1b9f(_0x430e89._0x5e9e85) + _0x2255fa[_0x4f1b9f(_0x430e89._0x5531f4)] + ':\x20' + _0x2255fa[_0x4f1b9f(0x127)] + formatAttachmentSuffix(_0x2255fa[_0x4f1b9f(_0x430e89._0x39b802)]);
|
|
1055
|
+
})['join']('\x0a'), _0x18a61b = _0x38b7b4[_0x349ce9(0x1ad)] && _0x38b7b4[_0x349ce9(_0x3cb90c._0x434020)] ? _0x349ce9(0x135) + _0x38b7b4[_0x349ce9(0x20e)]['length'] + _0x349ce9(_0x3cb90c._0x260cce) + _0x38b7b4[_0x349ce9(_0x3cb90c._0x1aef05)] + '\x20to\x20load\x20older\x20messages.\x20---' : '';
|
|
1056
|
+
return _0x349ce9(_0x3cb90c._0x1a2aea) + _0x38b7b4[_0x349ce9(0x1ac)] + '\x20(' + _0x38b7b4[_0x349ce9(0x20e)]['length'] + '\x20messages)\x0a\x0a' + _0x582038 + _0x18a61b;
|
|
1057
|
+
}
|
|
1058
|
+
function _0x56dc() {
|
|
1059
|
+
const _0x27543e = [
|
|
1060
|
+
'y2HHDa',
|
|
1061
|
+
'C2vUze1LC3nHz2u',
|
|
1062
|
+
'qg1VzgvSy29UDgv4DhbYB3rVy29Sl3nKAY9Zzxj2zxiVC3rKAw8UANm',
|
|
1063
|
+
'DxbSB2fKx2zPBgu',
|
|
1064
|
+
'ihrPBwu9',
|
|
1065
|
+
'igfZC2LNBMvLpua',
|
|
1066
|
+
'yxjNDG',
|
|
1067
|
+
'DgfZA051BwjLCG',
|
|
1068
|
+
'vgfZAZOG',
|
|
1069
|
+
'ue9tva',
|
|
1070
|
+
'z2v0',
|
|
1071
|
+
'nZGWmJe4qLjsugjz',
|
|
1072
|
+
'iokaLca',
|
|
1073
|
+
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
1074
|
+
'zg93BMXVywrbDhrHy2HTzw50',
|
|
112
1075
|
'ywz0zxi',
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'
|
|
118
|
-
'
|
|
119
|
-
'
|
|
1076
|
+
'AM9PBG',
|
|
1077
|
+
'CgfYDgLJAxbHBNrjza',
|
|
1078
|
+
'lsaJ',
|
|
1079
|
+
'C2vUzf9TzxnZywDL',
|
|
1080
|
+
'tgLZDcbJAgfUBMvSCYWGywDLBNrZlcbHBMqGAhvTyw5ZigLUihrOzsbJDxjYzw50ihnLCNzLCI4',
|
|
1081
|
+
'AwrSzq',
|
|
1082
|
+
'CgfKu3rHCNq',
|
|
1083
|
+
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
1084
|
+
'BwLU',
|
|
1085
|
+
'BgLZDfrHC2TZ',
|
|
1086
|
+
'l3DVCMTLCNmVD2fPDgLUz19PBNb1Da',
|
|
1087
|
+
'BwvTyMvYCW',
|
|
1088
|
+
'zgvZy3jPChrPB24',
|
|
1089
|
+
'ig1LC3nHz2vZihnOB3DUlIbvC2uGyMvMB3jLpq',
|
|
1090
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxm',
|
|
1091
|
+
'tM8GDgfZA3mGy2XHAw1Lzc4',
|
|
1092
|
+
'm3rZzerVwq',
|
|
1093
|
+
'igTPBMq9',
|
|
1094
|
+
'w3rHCMDLDd0',
|
|
1095
|
+
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
1096
|
+
'DgfZAYa',
|
|
120
1097
|
'y2XPzw50',
|
|
121
|
-
'
|
|
122
|
-
'
|
|
123
|
-
'
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
1098
|
+
'lcbWCMv2Awv3pq',
|
|
1099
|
+
'iYmGtwvZC2fNzsbiAxn0B3j5igzVCIa',
|
|
1100
|
+
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
1101
|
+
'ig1ZzZ0',
|
|
1102
|
+
'DgfZA3m',
|
|
1103
|
+
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
1104
|
+
'DgHYzwfK',
|
|
1105
|
+
'ls1KywvTB24TBg9JywWTDxjS',
|
|
1106
|
+
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw5UB3qGy2XHAw0GyNKGBwvZC2fNzv9PzhmGkhrVCc1SzxzLBcbTzxnZywDLihbYB21VDgLVBIbPCYbTywLUlwfNzw50ig9UBhKPoYb1C2uGC3vIDgfZA19UDw1IzxjZigLUC2LKzsb5B3vYig93BIb0yxnRihrOCMvHzc4',
|
|
1107
|
+
'lsba',
|
|
1108
|
+
'l3DVCMTLCNmVC3rHDhvZp3DVCMTFA2v5pq',
|
|
1109
|
+
'mZy2muPlr0LJtq',
|
|
1110
|
+
'icGWig1LC3nHz2vZkqOktM8GBwvZC2fNzxmGAw4GDgHPCYbJAgfUBMvSlG',
|
|
1111
|
+
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
1112
|
+
'y2HHBM5LBeLK',
|
|
133
1113
|
'BwvZC2fNzq',
|
|
134
|
-
'
|
|
1114
|
+
'mZm4ode3nMvjvuzyCq',
|
|
1115
|
+
'D3m6',
|
|
1116
|
+
'yxr0ywnOBwvUDf9Pza',
|
|
1117
|
+
'AxnbCNjHEq',
|
|
1118
|
+
'ywDLBNq',
|
|
135
1119
|
'Dg9tDhjPBMC',
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'
|
|
139
|
-
'
|
|
1120
|
+
'Dw5RBM93BG',
|
|
1121
|
+
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
1122
|
+
'ANnVBG',
|
|
1123
|
+
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
1124
|
+
'DhjPBq',
|
|
140
1125
|
'C2XPy2u',
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'DxnLCG',
|
|
151
|
-
'DhLWzq',
|
|
152
|
-
'mtK3odCWnwn3s0jbyq',
|
|
153
|
-
'zgvZDhjVEwvK',
|
|
154
|
-
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
155
|
-
'l3n0yxj0',
|
|
156
|
-
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
157
|
-
'Aw1Hz2uVANbLzW',
|
|
158
|
-
'DxbSB2fKuhjLCgfYzxi',
|
|
159
|
-
'zgLNzxn0',
|
|
160
|
-
'owPbDLzsBa',
|
|
161
|
-
'B3b0Aw9UywW',
|
|
162
|
-
'ihrPBwu9',
|
|
163
|
-
'ChjVDg9JB2W',
|
|
164
|
-
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
165
|
-
'sgfUzg9MzIb0BYb3B3jRzxiGzM9YihrHC2SG',
|
|
166
|
-
'C2vUzgvYtMfTzq',
|
|
167
|
-
'uM9VDcb0yxnRig1LC3nHz2u6cG',
|
|
168
|
-
'yxjYyxLcDwzMzxi',
|
|
169
|
-
'l2zPBMLZAa',
|
|
170
|
-
'zMv0y2HuAw1LB3v0txm',
|
|
171
|
-
'yxv0BZO',
|
|
172
|
-
'ywDLBNq',
|
|
173
|
-
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
174
|
-
'DgvZDa',
|
|
1126
|
+
'Aw5JBhvKzxm',
|
|
1127
|
+
'BwfW',
|
|
1128
|
+
'ywDNCMvNyxrLswrZ',
|
|
1129
|
+
'D29YA2vY',
|
|
1130
|
+
'DxjNzw50',
|
|
1131
|
+
'DMLLD19MAwXLigzHAwXLza',
|
|
1132
|
+
'l2HPC3rVCNK/',
|
|
1133
|
+
'zMLSDgvY',
|
|
1134
|
+
'l2nVBNrLEhqTBwv0CMLJCW',
|
|
175
1135
|
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxjYB3i9',
|
|
176
|
-
'
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'y2HHDa',
|
|
1136
|
+
'zg06',
|
|
1137
|
+
'CNvUBMLUzW',
|
|
1138
|
+
'yxbWBgLJyxrPB24VANnVBG',
|
|
1139
|
+
'yxr0ywnOBwvUDeLK',
|
|
181
1140
|
'y2HLy2TFBwvZC2fNzxm',
|
|
182
|
-
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
183
|
-
'y2XHAw1FDgfZA3m6ihDVCMTLCIbJyw4GB25SEsbJBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCNmU',
|
|
184
|
-
'6k+35Rgcia',
|
|
185
|
-
'Dgv4Dc9TyxjRzg93BG',
|
|
186
|
-
'igLUia',
|
|
187
|
-
'D29YA19RzxK',
|
|
188
|
-
'C3vIDgfZA19UDw1Izxi',
|
|
189
|
-
'Ahr0CdO',
|
|
190
|
-
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
191
|
-
'zgLZCg9ZAxrPB24',
|
|
192
|
-
'iow3SUwiH+AnOUwiScb3B3jRzxiG5OMN6kgm',
|
|
193
|
-
'y3jLyxrLx3rHC2TZigzHAwXLza',
|
|
194
|
-
'DgfZA0LK',
|
|
195
|
-
'kgXLz2fJEsK',
|
|
196
|
-
'y2HLy2TnzxnZywDLCW',
|
|
197
|
-
'CMvHzf9OAxn0B3j5igzHAwXLza',
|
|
198
|
-
'Cgf5Bg9HzePZB24',
|
|
199
|
-
'EM9K',
|
|
200
|
-
'DgfZAYa',
|
|
201
|
-
'DgHYzwfK',
|
|
202
|
-
'igf0DgfJAg1LBNq',
|
|
203
|
-
'DgHYzwfKvgfYz2v0',
|
|
204
|
-
'ls1Hz2vUDc1Pza',
|
|
205
|
-
'yM9KEu1HCMTKB3DU',
|
|
206
|
-
'ChvIBgLJ',
|
|
207
|
-
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
208
|
-
'nJu2ote4EuXxB2Ld',
|
|
209
|
-
'kg5VBMuP',
|
|
210
|
-
'y29UDgvUDejHC2u2na',
|
|
211
|
-
'Bwf0y2Hoyw1L',
|
|
212
|
-
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
213
|
-
'ig1ZzZ0',
|
|
214
|
-
'lsaJ',
|
|
215
|
-
'CgfYDgLJAxbHBNq',
|
|
216
|
-
'yxr0ywnOBwvUDhm',
|
|
217
|
-
'DgfZA3m',
|
|
218
|
-
'C2v0',
|
|
219
|
-
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
220
|
-
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
221
|
-
'y2XHAw1FDgfZA3m',
|
|
222
|
-
'zg9Uzq',
|
|
223
|
-
'zMLSDgvY',
|
|
224
|
-
'iYmGu2vYDMvYoIa',
|
|
225
|
-
'D29YA2vYsgfUzg9MzJ10CNvL',
|
|
226
|
-
'DgfYz2v0',
|
|
227
|
-
'C2vYDMvYtMfTzq',
|
|
228
|
-
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
229
|
-
'CNvUswq',
|
|
230
|
-
'lIbnzxnZywDLieLeoIa',
|
|
231
|
-
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
232
|
-
'AM9PBG',
|
|
233
|
-
'r0vu',
|
|
234
|
-
'ue9tva',
|
|
235
|
-
'Dgv4Dc9WBgfPBG',
|
|
236
|
-
'l2LUDgvYBMfSl2fNzw50lW',
|
|
237
|
-
'iIbUB3qGzM91BMq',
|
|
238
|
-
'pgvTChr5pG',
|
|
239
|
-
'y29UDgvUDa',
|
|
240
|
-
'xsbaC3LZDgvToIbBzw50zxiTAgfUzg9MzL0',
|
|
241
|
-
'C3rHCNrLza',
|
|
242
|
-
'DgHYzwfKu2HVCNrjza',
|
|
243
|
-
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
244
|
-
'zxHLy3v0Aw9Utw9Kzt0',
|
|
245
|
-
'BwfYA193ywL0Aw5Nx2LUChv0',
|
|
246
1141
|
'ig1ZzZ1Oyw5KB2zMihrPBwu9',
|
|
247
|
-
'ywDLBNrjza',
|
|
248
|
-
'Dg9ju09tDhjPBMC',
|
|
249
|
-
'rxnJywXHDgLVBIbZzw50ihrVig1HAw4GywDLBNqUifjLyxnVBJOG',
|
|
250
|
-
'BMfTzq',
|
|
251
|
-
'yxjYyxK',
|
|
252
|
-
'z2v0tw9UDgG',
|
|
253
|
-
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
254
|
-
'cGOTls0G',
|
|
255
|
-
'xsba',
|
|
256
|
-
'ls13B3jRzxiTDgHYzwfKlxrHCMDLDa',
|
|
257
|
-
'zxjYB3i',
|
|
258
|
-
'AhvTyw5Z',
|
|
259
|
-
'Aw5JBhvKzxm',
|
|
260
|
-
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
261
|
-
'ihr5Cgu9ywDLBNq',
|
|
262
|
-
'w3nLCt0',
|
|
263
|
-
'z2v0rgf0zq',
|
|
264
|
-
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
265
|
-
'zgvZy3jPyMu',
|
|
266
|
-
'DgHYzwfKswq',
|
|
267
|
-
'y3vYC29Y',
|
|
268
|
-
'D29YA2vYsgfUzg9MzKvYCM9Y',
|
|
269
|
-
'CMvZDwX0sNnVBG',
|
|
270
|
-
'zgvSzxrL',
|
|
271
|
-
'BwvZC2fNzuLK',
|
|
272
|
-
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
273
|
-
'BgLTAxq',
|
|
274
|
-
'yxjNDG',
|
|
275
|
-
'DMfSDwu',
|
|
276
|
-
'C2vUzf9TzxnZywDL',
|
|
277
|
-
'C2LNBMfS',
|
|
278
|
-
'BgvUz3rO',
|
|
279
|
-
'DgHYzwfKtNvTyMvY',
|
|
280
|
-
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
281
|
-
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
282
|
-
'y2fJAgveAxi',
|
|
283
|
-
'C2L6zq',
|
|
284
|
-
'BgLZDfnLCNzLCG',
|
|
285
|
-
'DMLLD19MAwXL',
|
|
286
|
-
'y2HHBM5LBfrHCMDLDa',
|
|
287
|
-
'BgLZDf9Zzxj2zxi',
|
|
288
|
-
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
289
|
-
'D29YA2vYtw9Kzq',
|
|
290
|
-
'Bwv0yq',
|
|
291
1142
|
'lMjPBG',
|
|
292
|
-
'
|
|
293
|
-
'
|
|
294
|
-
'
|
|
295
|
-
'l3jLy2vPDMu',
|
|
296
|
-
'CMvXDwvZDfvYBa',
|
|
297
|
-
'C3rVCe1HAw49Dhj1zq',
|
|
298
|
-
'BgLZDf90yxnRCW',
|
|
299
|
-
'C2f2zq',
|
|
300
|
-
'l3rHC2TZl3vUy2XHAw0',
|
|
301
|
-
'D29YA2vYx3nLC3nPB25FAwq',
|
|
302
|
-
'ywz0zxjtzxe',
|
|
303
|
-
'v29YA2vYici',
|
|
304
|
-
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
305
|
-
'y2HHBM5LBeLK',
|
|
306
|
-
'ANnVBG',
|
|
307
|
-
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
308
|
-
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
309
|
-
'Axnoyu4',
|
|
1143
|
+
'vxbSB2fKigeGBg9JywWGzMLSzsb0BYbHignOyw5UzwWGB3iGre0Gyw5KihjLDhvYBIbHBIbHDhrHy2HTzw50ieLeihrOyxqGy2fUigjLihvZzwqGD2L0AcbZzw5Kx21LC3nHz2uUifrOCMvHzcb0yxjNzxrZigfYzsbUB3qGywXSB3DLzc4',
|
|
1144
|
+
'DgfZA0rLBgL2zxj5tw9Kzq',
|
|
1145
|
+
'yxjYyxLcDwzMzxi',
|
|
310
1146
|
'Dg9mB3DLCKnHC2u',
|
|
311
1147
|
'ywrK',
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
1148
|
+
'zxnJywXHDgvFDg9FBwfPBIbMywLSzwq',
|
|
1149
|
+
'CgfYA193B3jRzxiGzMfPBgvK',
|
|
1150
|
+
'l3vWBg9Hza',
|
|
1151
|
+
'C3rVCe1HAw49Dhj1zq',
|
|
1152
|
+
'CMvHzeHPC3rVCNK',
|
|
1153
|
+
'zMv0y2HuAw1LB3v0txm',
|
|
1154
|
+
'ywDLBNrjza',
|
|
1155
|
+
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
1156
|
+
'C2vUzgvYtMfTzq',
|
|
1157
|
+
'D29YA2vYu2vZC2LVBKLK',
|
|
1158
|
+
'zw51Bq',
|
|
1159
|
+
'zNjVBq',
|
|
1160
|
+
'C2vZC2LVBKLK',
|
|
1161
|
+
'w3nLCt0',
|
|
1162
|
+
'nZiYmdi4tNDvCxbK',
|
|
1163
|
+
'zMv0y2HjBxbS',
|
|
1164
|
+
'Cgf5Bg9HzePZB24',
|
|
1165
|
+
'D29YA2vYrgLZCg9ZAxrPB249',
|
|
1166
|
+
'Bwf4',
|
|
1167
|
+
'q3jLyxrLig9UzsbVCIbTB3jLihrHC2TZigLUigeGy2HHBM5LBc4Gsw4Gysb0AhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPlcbJCMvHDgvZihn1yNrHC2TZihvUzgvYihrOzsbLEgLZDgLUzYbWyxjLBNqGDgfZAY4',
|
|
1168
|
+
'C3rYAw5NAwz5',
|
|
1169
|
+
'y2HHBM5LBa',
|
|
1170
|
+
'AgfZtw9Yzq',
|
|
321
1171
|
'igfSCMvHzhKGAgfZigfUigfJDgL2zsb3B3jRzxiUihn0B3bnywLUpxrYDwuGzxHLy3v0Aw9Utw9Kzt13B3jRzxi',
|
|
322
|
-
'
|
|
323
|
-
'
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
'
|
|
1172
|
+
'xsba',
|
|
1173
|
+
'BgLZDfnLCNzLCG',
|
|
1174
|
+
'y29UDgvUDfr5Cgu',
|
|
1175
|
+
'v29YA2vYici',
|
|
1176
|
+
'y29UDgvUDejHC2u2na',
|
|
1177
|
+
'l3DVCMTLCNmVzxnJywXHDgu',
|
|
1178
|
+
'q2XHAw0GDgfZA3mGAw4GysbJAgfUBMvSigj5ihrHC2SGBNvTyMvYig9YihnVDxjJzsbTzxnZywDLlIbgB3iGC3vIDgfZA3mGAw4Gysb0AhjLywqSihvZzsbZDwj0yxnRx251BwjLCNmGD2L0AcbHihnPBMDSzsb0yxnRx251BwjLCNmGzw50CNKU',
|
|
1179
|
+
'yM9KEu1HCMTKB3DU',
|
|
1180
|
+
'DgfZA19Pza',
|
|
1181
|
+
'ndqWB1P4Afji',
|
|
1182
|
+
'C29YDa',
|
|
1183
|
+
'BgLZDf9Zzxj2zxi',
|
|
1184
|
+
'zw50CMLLCW',
|
|
1185
|
+
'igv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1186
|
+
'CgfYA193B3jRzxi',
|
|
1187
|
+
'igf0DgfJAg1LBNq',
|
|
1188
|
+
'DgHYzwfKvgfYz2v0',
|
|
1189
|
+
'yxbWBgLJyxrPB24VEg1S',
|
|
1190
|
+
'DgfZAY0',
|
|
1191
|
+
'y2XHAw1FDgfZA3m',
|
|
1192
|
+
'l2nVBNrLBNq',
|
|
1193
|
+
'khvUA25VD24P',
|
|
1194
|
+
'vw5ZDxbWB3j0zwqGDgfYz2v0igzVCM1HDc4Gu3vWCg9YDgvKihzHBhvLCYbHCMuGi2nOyw5UzwWSigrToMrTltXUyw1LpIWGyw5KihrOzwLYihrOCMvHzcb0yxjNzxrZlG',
|
|
1195
|
+
'z2v0x3DVCMTLCL9ZDgf0Dxm',
|
|
1196
|
+
'l3rHC2TZl2nSywLT',
|
|
1197
|
+
'y2HLy2TFBwvZC2fNzxmGzMfPBgvK',
|
|
1198
|
+
'y2fJAgveAxi',
|
|
1199
|
+
'yMvMB3jL',
|
|
1200
|
+
'ihr5Cgu9ywDLBNq',
|
|
1201
|
+
'Bwv0yq',
|
|
1202
|
+
'y2HPBgrYzw5uB3rHBa',
|
|
1203
|
+
'Bwf0y2Hoyw1L',
|
|
329
1204
|
'ig1LC3nHz2u9',
|
|
330
|
-
'
|
|
331
|
-
'
|
|
1205
|
+
'twLZC2LUzYaTlwfNzw50lwLK',
|
|
1206
|
+
'icHPzdO',
|
|
1207
|
+
'sfruuca',
|
|
1208
|
+
'iJOGC3rHDhvZpq',
|
|
1209
|
+
'mtG1ndmWmePlAgX0sG',
|
|
1210
|
+
'C3rHDhvZ',
|
|
1211
|
+
'tgLZDcb0yxnRCYbPBIbHignOyw5UzwWGB3iGDgHYzwfKlIbuAhjLywqGDgfYz2v0icHLlMCUiciJy2HHBM5LBdP0AhjLywrjzciPihjLDhvYBNmGDgHLihbHCMvUDcb0yxnRihbSDxmGAxrZihn1yNrHC2TZihDPDgGGywDNCMvNyxrPB24GzMLLBgrZicHJAgLSzhjLBLrVDgfSlcbJAgLSzhjLBKrVBMuSignOAwXKCMvUsw5qCM9NCMvZCYKUienOyw5UzwWGDgfYz2v0ihjLDhvYBNmGB25SEsbWyxjLBNqGDgfZA3mGkg5Vihn1yNrHC2TZks4',
|
|
1212
|
+
'y2XHAw0GzMfPBgvK',
|
|
1213
|
+
'y2HHBM5LBe5HBwu',
|
|
1214
|
+
'C2v0',
|
|
1215
|
+
'v29YA2vYlw9UBhKUifbHCMSGDgHLign1CNjLBNqGD29YA2vYigXHBMuGywz0zxiGEw91igHHDMuGywXYzwfKEsbYzxbVCNrLzcbYzxn1BhrZigLUihrOAxmGDgHYzwfKlIbuAgLZigrVzxmGBM90igvUzcb0AguGC2vZC2LVBJSGC2fTzs10AhjLywqGzM9SBg93lxvWihDPBgWGCMvZDw1LihrOAxmGBgfUzs4',
|
|
332
1216
|
'z2v0rNvSBfLLyxi',
|
|
333
|
-
'
|
|
334
|
-
'
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
1217
|
+
'DgHYzwfKswq',
|
|
1218
|
+
'Aw5PDgLHBeXHC3rtzwvUu2vX',
|
|
1219
|
+
'DgHYzwfKx3rHCMDLDa',
|
|
1220
|
+
'ls1Hz2vUDc1Pza',
|
|
1221
|
+
'C2vUzgvYvhLWzq',
|
|
1222
|
+
'DgHYzwfKu2HVCNrjza',
|
|
1223
|
+
'DxnLCG',
|
|
338
1224
|
'ls13B3jRzxiTBw9Kzs1LBMfIBgvK',
|
|
339
|
-
'
|
|
340
|
-
'
|
|
341
|
-
'
|
|
342
|
-
'
|
|
343
|
-
'
|
|
344
|
-
'
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
't3b0Aw9UywWUieLMig9TAxr0zwqSihrOzsbTzxnZywDLigLZihb1yMXPyY4Gsw4GDgfZAYb0AhjLywrZlcbZzxqGiMfZAwrLiIbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Grg8GBM90ihnLDcbVDxrZAwrLihrOCMvHzhmU',
|
|
352
|
-
'Aw5FChjVz3jLC3m',
|
|
1225
|
+
'yxbWBgLJyxrPB24VB2n0zxqTC3rYzwfT',
|
|
1226
|
+
'q2HLy2SGDgHLign1CNjLBNqGC3rHDhvZig9MigeGC3bHD25Lzcb3B3jRzxiGyNKGAxrZihDVCMSGA2v5lG',
|
|
1227
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZ',
|
|
1228
|
+
'Dw5JBgfPBvrHC2S',
|
|
1229
|
+
'D29YA2vYvgHYzwfKvgfYz2v0',
|
|
1230
|
+
'B3jPz2LUywXgAwXLBMfTzq',
|
|
1231
|
+
'r0vu',
|
|
1232
|
+
'AhvTyw4',
|
|
1233
|
+
'l3DVCMTLCNmVzgvSAxzLCG',
|
|
1234
|
+
'rg93BMXVywqGyw4Gyxr0ywnOBwvUDcb0BYb0AguGBg9JywWGy2fJAguGyw5KihjLDhvYBIb0AguGBg9JywWGCgf0Ac4',
|
|
1235
|
+
'C3vIDgfZA19UDw1IzxjZ',
|
|
1236
|
+
'CgfYDgLJAxbHBNq',
|
|
353
1237
|
'y3jLyxrLzef0',
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
'
|
|
362
|
-
'
|
|
363
|
-
'
|
|
364
|
-
'
|
|
1238
|
+
'l3DVCMTLCNmVBgLZDd9Hz2vUDf9Pzd0',
|
|
1239
|
+
'6k+35Rgcia',
|
|
1240
|
+
'Agv4',
|
|
1241
|
+
'twfYAYb0AguGy3vYCMvUDcb3B3jRzxiGyxmGD2fPDgLUzYbMB3iGAhvTyw4GAw5WDxqUifbHDxnLCYb0AguGAwrSzsbuveWGDgLTzxiGDw50AwWGysbUzxCGBwvZC2fNzsbHCNjPDMvZlG',
|
|
1242
|
+
'DxbKyxrLx3rHC2TFC3rHDhvZigzHAwXLza',
|
|
1243
|
+
'kg5VBMuP',
|
|
1244
|
+
'ywjVCNq',
|
|
1245
|
+
'zxzLBNrtzxe',
|
|
1246
|
+
'igLUia',
|
|
1247
|
+
'BMfTzq',
|
|
1248
|
+
'DgfZA0LK',
|
|
1249
|
+
'l3rHC2TZpW',
|
|
1250
|
+
'CMvHC29U',
|
|
1251
|
+
'zMLSzv9WyxrOig11C3qGyMuGyw4GywjZB2X1DguGCgf0Aa',
|
|
1252
|
+
't3jPz2LUywWGBwvZC2fNztOG',
|
|
1253
|
+
'BNvTyMvY',
|
|
1254
|
+
'v29YA2vYigzLyxr1CMvZig5VDcbHDMfPBgfIBgu',
|
|
1255
|
+
'Bg93',
|
|
1256
|
+
'l2fWAs9PBNrLCM5HBc9Zy2HLzhvSzxmVy2XHAw0',
|
|
1257
|
+
'BgLZDf90yxnRCW',
|
|
1258
|
+
'Dgv4Dc9TyxjRzg93BG',
|
|
1259
|
+
'DgvZDa',
|
|
1260
|
+
'yxbWBgLJyxrPB24VEMLW',
|
|
1261
|
+
'C3bSAxq',
|
|
1262
|
+
'iIbUB3qGzM91BMq',
|
|
1263
|
+
'4PQG77IpifDpuKTfuIbbq1rjvKfuruqG4Ocuifn0B3aGquXmihDVCMSGB24GDgHPCYb0yxnRigLTBwvKAwf0zwX5lIbeBYbUB3qGC2vUzcbMDxj0AgvYig1LC3nHz2vZihrVihrOAxmGDgHYzwfKlG',
|
|
1264
|
+
'C2LNBMfS',
|
|
1265
|
+
'AgLNAa',
|
|
1266
|
+
'B3b0Aw9UywW',
|
|
1267
|
+
'BwvZC2fNzxm',
|
|
1268
|
+
'ihDVCMTLCKHHBMrVzMy9zMfSC2uGzxHLy3v0Aw9Utw9Kzt1TywLUcLn0yxKGAw4GBwfPBIbZzxnZAw9UoIbYzwfKihrOzsbYzwzLCMvUy2vKihbSyw4Vzg9JDw1LBNqGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYaOB3iGB3rOzxj3AxnLigfKDMfUy2uGDgHLihrHC2SGAw4GBwfPBIb3AxrOB3v0igHHBMrPBMCGB2zMihrVigeGD29YA2vYks4',
|
|
1269
|
+
'iYmJieH1BwfUCW',
|
|
1270
|
+
'D29YA2vYtw9KzuvUywjSzwq',
|
|
1271
|
+
'cUkAOo+4JYbxt1jlrviGqunusvzbveveiokaLcbtDg9Wiefmtcb3B3jRig9UihrOAxmGDgfZAYbPBw1LzgLHDgvSEs4Gv29YA2vYigHHBMrSzxmGzxHLy3v0Aw9UigvUzc10BY1LBMqU',
|
|
1272
|
+
'DMfSDwvZ',
|
|
1273
|
+
'DMLZAwjPBgL0Eq',
|
|
1274
|
+
'Aw1Hz2uVD2vICa',
|
|
365
1275
|
'ywjVCNrLza',
|
|
366
|
-
'
|
|
367
|
-
'
|
|
368
|
-
'
|
|
369
|
-
'
|
|
370
|
-
'
|
|
371
|
-
'
|
|
372
|
-
'
|
|
373
|
-
'
|
|
374
|
-
'
|
|
1276
|
+
'rMLSzsbHBhjLywr5ignHy2HLzcbHDdOG',
|
|
1277
|
+
'ChjVDg9JB2W',
|
|
1278
|
+
'iYmGu2vYDMvYoIa',
|
|
1279
|
+
'DgHYzwfKtNvTyMvY',
|
|
1280
|
+
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
1281
|
+
'yxjYyxK',
|
|
1282
|
+
'ywDLBNrZ',
|
|
1283
|
+
'iYmJiefNzw50CW',
|
|
1284
|
+
'yxr0ywnOBwvUDenHy2HLrgLY',
|
|
1285
|
+
'l2LUDgvYBMfSl2fNzw50lW',
|
|
1286
|
+
'Dg9VBa',
|
|
1287
|
+
'C3rYAw5N',
|
|
1288
|
+
'Dg9ju09tDhjPBMC',
|
|
1289
|
+
'u2vUzcbHig1LC3nHz2uUieLMihzPC2LIAwXPDhKGAxmGB21PDhrLzcWGDgHLig1LC3nHz2uGAxmGChvIBgLJlIbjBIb0yxnRihrOCMvHzhmSihnLDcb2AxnPyMLSAxr5oIbHC2LKzsbVBMX5ihDOzw4GEw91igv4CgXPy2L0BhKGD2fUDcbHBIbHC2LKzs4Gt3v0C2LKzsb0AhjLywrZlcbKBYbUB3qGC2v0ihzPC2LIAwXPDhKUifjLDxnLihrOzsbLEgfJDcb0yxjNzxqGC3rYAw5NigzYB20GAw5JB21PBMCGBwvZC2fNzxmU',
|
|
1290
|
+
'AwrLBxbVDgvUy3LFA2v5',
|
|
1291
|
+
'B2jQzwn0',
|
|
1292
|
+
'zgLZCg9ZAxrPB24',
|
|
1293
|
+
'BgLTAxq',
|
|
1294
|
+
'C3rHCNrZv2L0Aa',
|
|
375
1295
|
'l3rHC2TZl3vWzgf0zs1ZDgf0Dxm',
|
|
1296
|
+
'ignSywLTzwq',
|
|
1297
|
+
'Aw1Hz2uVC3zNk3HTBa',
|
|
1298
|
+
'DgfZAW',
|
|
1299
|
+
'cKLMihLVDxiGBwvTB3j5ig9YignOyw5UzwWGCNvSzxmGCMvXDwLYzsbYzxzPzxCSihnLBMqGysbTzxnZywDLig1LBNrPB25PBMCGDgHLihjLDMLLD2vYigjLzM9YzsbWyxjRAw5NlG',
|
|
1300
|
+
'yxr0ywnOBwvUDf9Pzhm',
|
|
1301
|
+
'uefuq0G',
|
|
1302
|
+
'Aw5FCMv2Awv3',
|
|
1303
|
+
'rMLSzsbUB3qGzM91BMq6ia',
|
|
1304
|
+
'CMvZDwX0CW',
|
|
1305
|
+
'CMvZB2X2zvrHCMDLDa',
|
|
1306
|
+
'y2HHBM5LBhm',
|
|
1307
|
+
'AxnjBNrLz2vY',
|
|
376
1308
|
'zMLSzw5HBwu',
|
|
377
|
-
'
|
|
378
|
-
'
|
|
1309
|
+
'y3jLyxrLvgfZA3m',
|
|
1310
|
+
'tM8GDgfZA3mGzM91BMqU',
|
|
1311
|
+
'A2LUza',
|
|
1312
|
+
'AxngAwXL',
|
|
1313
|
+
'DMLLD19MAwXL',
|
|
1314
|
+
'z2v0x3DVCMTLCL9ZDgf0DxmGzMfPBgvK',
|
|
1315
|
+
'ihn0yxLZigLUig1HAw4GC2vZC2LVBIaOzxHLy3v0Aw9Utw9Kzt1TywLUktSGCMvTywLUigHLCMuSihjLywqGDgHLihjLzMvYzw5JzwqGCgXHBI9KB2n1BwvUDcWGyw5KignHBgWGy3jLyxrLx3rHC2TZigLUihrOzsbWyxjLBNqGy2HHBM5LBcb0BYbICMvHAYbPDcbPBNrVihrVCc1SzxzLBcb0yxnRCYbPzIb0Agf0igLZihrOzsbPBNrLBNqU',
|
|
1316
|
+
'DxbSB2fKuhjLCgfYzxi',
|
|
1317
|
+
'C3vIDgfZA051BwjLCG',
|
|
1318
|
+
'D29YA2vYCW',
|
|
1319
|
+
'z2v0twLUDxrLCW',
|
|
1320
|
+
'zxnJywXHDgvFDg9FBwfPBG',
|
|
379
1321
|
'CMvJB3jK',
|
|
380
|
-
'
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'C3rYAw5N',
|
|
387
|
-
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
388
|
-
'y2XHAw1uyxnRCW',
|
|
389
|
-
'Aw5FCMv2Awv3',
|
|
390
|
-
'C3rHCNrZv2L0Aa',
|
|
1322
|
+
'vgHYzwfKihrHCMDLDdOG',
|
|
1323
|
+
'y3jLyxrLx3rHC2TZ',
|
|
1324
|
+
'ywDNCMvNyxrLswq',
|
|
1325
|
+
'ihn0yxr1CZ0',
|
|
1326
|
+
'BMv4Den1CNnVCG',
|
|
1327
|
+
'zgf0yq',
|
|
391
1328
|
'uMvSzwfZzsbHignSywLTzwqGDgfZAYbIEsbJAgfUBMvSigfUzcb0yxnRig51BwjLCI4GrM9Yihn1yNrHC2TZlcbHBhnVihbHC3mGC3vIDgfZA19UDw1IzxiU',
|
|
392
|
-
'
|
|
393
|
-
'
|
|
394
|
-
'
|
|
395
|
-
'
|
|
1329
|
+
'yxr0ywnOBwvUDhm',
|
|
1330
|
+
'BwfYA193ywL0Aw5Nx2LUChv0igzHAwXLza',
|
|
1331
|
+
'zgvZy3jPyMu',
|
|
1332
|
+
'Dw5JBgfPBv90yxnR',
|
|
1333
|
+
'l2fWAs9HDhrHy2HTzw50CY8',
|
|
1334
|
+
'D29YA19RzxK',
|
|
1335
|
+
'q29UDgLUDwuGzxHLy3v0Aw9UigLUihrOAxmGDgHYzwfKlIbvC2uGCMvHzf9OAxn0B3j5igLMihLVDsbUzwvKig1VCMuGy29UDgv4Dc4',
|
|
1336
|
+
'C2L6zq',
|
|
1337
|
+
'D2fPDgLUz19PBNb1Da',
|
|
1338
|
+
'C3rVCe1HAw4',
|
|
1339
|
+
'C2L6zuj5DgvZ',
|
|
1340
|
+
'kgXLz2fJEsK',
|
|
1341
|
+
'zxHLy3v0Aw9Utw9Kzt0',
|
|
1342
|
+
'zxjYB3i',
|
|
1343
|
+
'Dw5JBgfPBv90yxnRoIb3B3jRzxiGy2fUig9UBhKGDw5JBgfPBsbZDwj0yxnRCYbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcdIGjqGChjVDMLKzsbZDwj0yxnRx251BwjLCI4',
|
|
1344
|
+
'zg9Uzq',
|
|
1345
|
+
'CMvHzf9OAxn0B3j5',
|
|
1346
|
+
'DxrMoa',
|
|
1347
|
+
'Aw1Hz2uVANbLzW',
|
|
1348
|
+
'C2vYDMvYvxjS',
|
|
1349
|
+
'D29YA2vYtw9Kzq',
|
|
1350
|
+
'uMvHzcbTzxnZywDLigHPC3rVCNKGzM9YigeGy2HHBM5LBcWGre0Sig9YihrOCMvHzcb0yxjNzxqU',
|
|
1351
|
+
'DhLWzq',
|
|
1352
|
+
'rMLSzsb1CgXVywrLzdOG',
|
|
1353
|
+
'C2vYDMvY',
|
|
1354
|
+
'mZqZnJK3BNvnBwT0',
|
|
1355
|
+
'BwfPBG',
|
|
1356
|
+
'z2v0u2vJB25KCW',
|
|
1357
|
+
'CxvLDwvK',
|
|
1358
|
+
'C2f2zq',
|
|
1359
|
+
'Dg9gAxHLza',
|
|
396
1360
|
'y29UBMvJDa',
|
|
1361
|
+
'yxv0BZO',
|
|
1362
|
+
'y2XHAw1uyxnRCW',
|
|
1363
|
+
'zgvSzxrL',
|
|
1364
|
+
'77Yj44cc6l+z6ycA5BI46kgO56s6ihnLCNzLCLvYBcdMJiFLKjhKUOyGD2vIioERMEEcUE+8JoAiLUs7O+EqHUAYOEACIEAkIIbKywvTB24VAw50zxjUywWGqvbjioI9RowpKEwiSowqJUERR+oaGG',
|
|
1365
|
+
'y29UDgvUDc10ExbL',
|
|
1366
|
+
'CMvWBgfJzq',
|
|
1367
|
+
'Aw1Hz2uVCg5N',
|
|
1368
|
+
'uMvHzcb0AhjLywqGAgLZDg9YEsbIzwzVCMuGDgfRAw5NigfJDgLVBI4Grg8GBM90igvJAg8GDgHPCYbTzxnZywDLihrVihrOzsb0AhjLywqU',
|
|
1369
|
+
'zMLUzenHy2HLzfbHDgG',
|
|
1370
|
+
'lcbJB250zw50lxr5Cgu9',
|
|
1371
|
+
'z2v0sg91CNm',
|
|
1372
|
+
'zMfSC2u',
|
|
397
1373
|
'yMfZzw5HBwu',
|
|
398
|
-
'
|
|
399
|
-
'
|
|
400
|
-
'
|
|
401
|
-
'
|
|
402
|
-
'
|
|
403
|
-
'
|
|
404
|
-
'
|
|
405
|
-
'
|
|
406
|
-
'
|
|
407
|
-
'
|
|
1374
|
+
'C2vYDMvYtMfTzq',
|
|
1375
|
+
'zxH0BMfTzq',
|
|
1376
|
+
'l3nLBMq',
|
|
1377
|
+
'mJK0nJG0mfLODfbzDG',
|
|
1378
|
+
'D29YA2vYx3nLC3nPB25FAwq',
|
|
1379
|
+
'Aw5FChjVz3jLC3m',
|
|
1380
|
+
'Dw5JBgfPBv90yxnRigzHAwXLza',
|
|
1381
|
+
'y3vYC29Y',
|
|
1382
|
+
'ls1HDhrHy2HTzw50lwnHy2HLlwrPCG',
|
|
1383
|
+
'y2f0y2G',
|
|
1384
|
+
'ChvZAa',
|
|
1385
|
+
'l3rHC2TZ',
|
|
1386
|
+
'ls1PBML0AwfSlwXHC3qTC2vLBI1Zzxe',
|
|
1387
|
+
'l3n0yxj0',
|
|
1388
|
+
'iYmJienOyw5UzwXZ',
|
|
1389
|
+
'z2v0tw9UDgG',
|
|
1390
|
+
'CgfYC2vjBNq',
|
|
1391
|
+
'Bwf4rMLSzvnPEMvcExrLCW',
|
|
1392
|
+
'y2HHBM5LBfrHCMDLDa',
|
|
1393
|
+
'C3vJy2vZCW',
|
|
1394
|
+
'Dgv4Dc9JC3y',
|
|
1395
|
+
'DgHYzwfKvgfYz2v0pq',
|
|
408
1396
|
'AxnbyNnVBhv0zq',
|
|
409
|
-
'yxr0ywnOBwvUDeLK',
|
|
410
|
-
'l2fWAs9Hz2vUDc1ZzxnZAw9UCY8',
|
|
411
|
-
'zMfSC2u',
|
|
412
|
-
'z2v0',
|
|
413
|
-
'mtyXmZy3mZzfzg1zAwu',
|
|
414
|
-
'ihn0yxr1CZ0',
|
|
415
|
-
'zxzLBNrtzxe',
|
|
416
|
-
'iokaLcb1C2uGDMLLD19MAwXLihrVihnLzv0',
|
|
417
|
-
'yM9KEvrLEhq',
|
|
418
|
-
'DxbSB2fKx2zPBgu',
|
|
419
|
-
'ls1KywvTB24TyxbPlwTLEq',
|
|
420
|
-
'DMLZAwjPBgL0Eq',
|
|
421
|
-
'l3jLy2vPDMu/',
|
|
422
|
-
'zMLUza',
|
|
423
1397
|
'BM93',
|
|
1398
|
+
'BwvZC2fNzuLK',
|
|
1399
|
+
'Ahr0Chm6',
|
|
1400
|
+
'y2HLy2TnzxnZywDLCW',
|
|
1401
|
+
'C2vX',
|
|
1402
|
+
'AhvTyw5Z',
|
|
1403
|
+
'zgvZDhjVEwvK',
|
|
1404
|
+
'C2vUzf9TzxnZywDLigzHAwXLza',
|
|
1405
|
+
'Dg9mB2nHBgvmB3DLCKnHC2u',
|
|
1406
|
+
'AgvHzgvYCW',
|
|
1407
|
+
'zMLUza',
|
|
1408
|
+
'C3rHCNrLza',
|
|
1409
|
+
'ywz0zxjtzxe',
|
|
1410
|
+
'l3DVCMTLCNmVy29UDgv4Dc1TzxrYAwnZ',
|
|
1411
|
+
'yxr0ywnOBwvUDenHy2HL',
|
|
1412
|
+
'ls13B3jRzxiTC2vZC2LVBI1Pza',
|
|
1413
|
+
'AgfZ',
|
|
1414
|
+
'sw52ywXPzcaTlwLUAxrPywWTBgfZDc1ZzwvUlxnLCq',
|
|
1415
|
+
'uM9VDcb0yxnRig1LC3nHz2uGAwq6ia',
|
|
1416
|
+
'Ahr0CdO',
|
|
1417
|
+
'DMfSDwu',
|
|
1418
|
+
'l3jLC29SDMuTy2HHBM5LBa',
|
|
1419
|
+
'D29YA2vYigHHBMrVzMyGzMfPBgvK',
|
|
1420
|
+
'Bwf0y2Hoyw1Ltg93zxi',
|
|
1421
|
+
'iIbWyxjRzwqUifnHBwuTDgHYzwfKigzVBgXVDY11Ccb3AwXSihjLC3vTzsb0AgLZigXHBMuU',
|
|
1422
|
+
'DxbKyxrLvgfZA1n0yxr1CW',
|
|
1423
|
+
'iIbTyxjRzwqGyxmGD2fPDgLUz19PBNb1Dc4GvfrmihrPBwvYihbHDxnLzcb1BNrPBcbUzxH0ig1LC3nHz2uGyxjYAxzLCY4',
|
|
1424
|
+
'oIb3B3jRzxiGy2fUig9UBhKGB3bLCMf0zsbPBNnPzguGAxrZig93BIb0yxnRihrOCMvHzcaO',
|
|
1425
|
+
'CMvZCg9UC2u',
|
|
1426
|
+
'vgfZAYa',
|
|
1427
|
+
'DgfYz2v0',
|
|
1428
|
+
'BwvZC2fNzv9Pzhm',
|
|
424
1429
|
'CM9VDe1LC3nHz2vjza',
|
|
425
|
-
'
|
|
426
|
-
'
|
|
427
|
-
'
|
|
1430
|
+
'CNvUswq',
|
|
1431
|
+
'y29UDgvUDa',
|
|
1432
|
+
'zxHWAxjLC0f0',
|
|
1433
|
+
'q2HLy2SGzM9Yig5LDYbTzxnZywDLCYb3AxrOB3v0ihDHAxrPBMCU',
|
|
1434
|
+
'rg8GBM90ihnLBMqGzNvYDgHLCIbTzxnZywDLCYb0BYb0AgLZihrOCMvHzcdIGjqGDgHLihDVCMTLCIbPCYbOyw5KBgLUzYbPDc4',
|
|
1435
|
+
'igrVBMuP',
|
|
1436
|
+
'Dg9KBW',
|
|
1437
|
+
'C2HHmJu2',
|
|
1438
|
+
'DgL0Bgu',
|
|
1439
|
+
'ywDNCMvNyxrLvhLWzq',
|
|
1440
|
+
'ls13B3jRzxiTBw9Kzq',
|
|
1441
|
+
'EM9K',
|
|
1442
|
+
'l2zPBMLZAa',
|
|
1443
|
+
'C2vUzgvYugfYDgLJAxbHBNrjza',
|
|
1444
|
+
'ls1KywvTB24TyxbPlwTLEq',
|
|
1445
|
+
'cGOTls0G',
|
|
1446
|
+
'Bg9JywXLq29TCgfYzq',
|
|
1447
|
+
'Dgv4Dc9WBgfPBG',
|
|
1448
|
+
'zxHLy3v0Aw9Utw9Kzq',
|
|
1449
|
+
'zgfLBw9Utg9JywXvCMW',
|
|
1450
|
+
'lIbZDg9WtwfPBJ10CNvLigv4zwn1DgLVBK1Vzgu9D29YA2vY',
|
|
1451
|
+
'BgvUz3rO',
|
|
1452
|
+
'yMfZzty0',
|
|
1453
|
+
'rxnJywXHDguGyw4GAxnZDwuGDg8GDgHLig1HAw4GywDLBNqGC2vZC2LVBI4GvxnLihDOzw4GDgHLihDVCMTLCIbJyw5UB3qGCMvZB2X2zsbHihbYB2jSzw0GywXVBMuGyw5Kig5LzwrZig1HAw4GDg8GAw50zxj2zw5LlG',
|
|
1454
|
+
'D29YA2vYrgLZCg9ZAxrPB24'
|
|
428
1455
|
];
|
|
429
|
-
|
|
430
|
-
return
|
|
431
|
-
};
|
|
432
|
-
return _0x3cbc();
|
|
433
|
-
}
|
|
434
|
-
function _0x7c22(_0x48463b, _0x500da3) {
|
|
435
|
-
_0x48463b = _0x48463b - 0xfb;
|
|
436
|
-
const _0x3cbc69 = _0x3cbc();
|
|
437
|
-
let _0x7c2252 = _0x3cbc69[_0x48463b];
|
|
438
|
-
if (_0x7c22['erpQqS'] === undefined) {
|
|
439
|
-
var _0xbe0f07 = function (_0x59c040) {
|
|
440
|
-
const _0x5e072a = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
441
|
-
let _0x479ed7 = '', _0xf9a011 = '';
|
|
442
|
-
for (let _0x479b74 = 0x0, _0x2c958a, _0x302936, _0x174c77 = 0x0; _0x302936 = _0x59c040['charAt'](_0x174c77++); ~_0x302936 && (_0x2c958a = _0x479b74 % 0x4 ? _0x2c958a * 0x40 + _0x302936 : _0x302936, _0x479b74++ % 0x4) ? _0x479ed7 += String['fromCharCode'](0xff & _0x2c958a >> (-0x2 * _0x479b74 & 0x6)) : 0x0) {
|
|
443
|
-
_0x302936 = _0x5e072a['indexOf'](_0x302936);
|
|
444
|
-
}
|
|
445
|
-
for (let _0x477888 = 0x0, _0x2fea8d = _0x479ed7['length']; _0x477888 < _0x2fea8d; _0x477888++) {
|
|
446
|
-
_0xf9a011 += '%' + ('00' + _0x479ed7['charCodeAt'](_0x477888)['toString'](0x10))['slice'](-0x2);
|
|
447
|
-
}
|
|
448
|
-
return decodeURIComponent(_0xf9a011);
|
|
449
|
-
};
|
|
450
|
-
_0x7c22['qZRNhh'] = _0xbe0f07, _0x7c22['YyOgcl'] = {}, _0x7c22['erpQqS'] = !![];
|
|
451
|
-
}
|
|
452
|
-
const _0x1ad284 = _0x3cbc69[0x0], _0x43bde2 = _0x48463b + _0x1ad284, _0x4f063a = _0x7c22['YyOgcl'][_0x43bde2];
|
|
453
|
-
return !_0x4f063a ? (_0x7c2252 = _0x7c22['qZRNhh'](_0x7c2252), _0x7c22['YyOgcl'][_0x43bde2] = _0x7c2252) : _0x7c2252 = _0x4f063a, _0x7c2252;
|
|
454
|
-
}
|
|
455
|
-
var DEFAULT_MAX_FILE_SIZE = 0x64 * 0x400 * 0x400, MIME_BY_EXTENSION = {
|
|
456
|
-
'.csv': _0x548baf(0x27a),
|
|
457
|
-
'.gif': _0x548baf(0x281),
|
|
458
|
-
'.jpeg': _0x548baf(0x15b),
|
|
459
|
-
'.jpg': _0x548baf(0x15b),
|
|
460
|
-
'.json': _0x548baf(0x23a),
|
|
461
|
-
'.md': _0x548baf(0x177),
|
|
462
|
-
'.pdf': 'application/pdf',
|
|
463
|
-
'.png': 'image/png',
|
|
464
|
-
'.svg': _0x548baf(0x218),
|
|
465
|
-
'.txt': _0x548baf(0x1a9),
|
|
466
|
-
'.webp': 'image/webp',
|
|
467
|
-
'.xml': 'application/xml',
|
|
468
|
-
'.zip': 'application/zip'
|
|
469
|
-
};
|
|
470
|
-
function guessContentType(_0xf9a011) {
|
|
471
|
-
const _0x570feb = {
|
|
472
|
-
_0x43e6e8: 0x1f4,
|
|
473
|
-
_0x56777b: 0x273
|
|
474
|
-
}, _0x53d37f = _0x548baf;
|
|
475
|
-
return MIME_BY_EXTENSION[_0x479ed7[_0x53d37f(0x202)](_0xf9a011)[_0x53d37f(_0x570feb._0x43e6e8)]()] ?? _0x53d37f(_0x570feb._0x56777b);
|
|
476
|
-
}
|
|
477
|
-
function safeFilename(_0x479b74) {
|
|
478
|
-
const _0x851d43 = { _0x20cedd: 0x144 }, _0x516da2 = _0x548baf;
|
|
479
|
-
return _0x479b74[_0x516da2(_0x851d43._0x20cedd)](/[\\/]/g, '-');
|
|
480
|
-
}
|
|
481
|
-
function extensionFor(_0x2c958a) {
|
|
482
|
-
const _0x5b5704 = { _0xe0bc75: 0x1e1 }, _0x30a0ae = _0x548baf, _0x302936 = Object[_0x30a0ae(0x220)](MIME_BY_EXTENSION)['find'](([, _0x174c77]) => _0x174c77 === _0x2c958a);
|
|
483
|
-
return _0x302936?.[0x0] ?? _0x30a0ae(_0x5b5704._0xe0bc75);
|
|
484
|
-
}
|
|
485
|
-
async function prepareUploadFile(_0x477888, _0x2fea8d = {}) {
|
|
486
|
-
const _0x594518 = {
|
|
487
|
-
_0x316e41: 0x256,
|
|
488
|
-
_0x3d1d9e: 0x1fa,
|
|
489
|
-
_0x16c6fd: 0x1f1,
|
|
490
|
-
_0x4f2cd2: 0x1d9,
|
|
491
|
-
_0x18e57c: 0x24b,
|
|
492
|
-
_0x4d6da9: 0x145
|
|
493
|
-
}, _0x9212e7 = _0x548baf;
|
|
494
|
-
if (!_0x479ed7[_0x9212e7(_0x594518._0x316e41)](_0x477888))
|
|
495
|
-
throw new Error('file_path\x20must\x20be\x20an\x20absolute\x20path');
|
|
496
|
-
const _0x15b98d = await stat(_0x477888)[_0x9212e7(_0x594518._0x3d1d9e)](() => null);
|
|
497
|
-
if (!_0x15b98d || !_0x15b98d[_0x9212e7(0x254)]())
|
|
498
|
-
throw new Error(_0x9212e7(0x252) + _0x477888);
|
|
499
|
-
const _0x44ab29 = _0x2fea8d[_0x9212e7(_0x594518._0x16c6fd)] ?? DEFAULT_MAX_FILE_SIZE;
|
|
500
|
-
if (_0x15b98d[_0x9212e7(0x1d9)] > _0x44ab29)
|
|
501
|
-
throw new Error('File\x20size\x20exceeds\x20limit:\x20' + _0x15b98d[_0x9212e7(_0x594518._0x4f2cd2)]);
|
|
502
|
-
const _0x111b29 = await readFile(_0x477888), _0x469f4b = _0x479ed7[_0x9212e7(_0x594518._0x18e57c)](_0x477888);
|
|
503
|
-
return {
|
|
504
|
-
'contentBase64': _0x111b29[_0x9212e7(_0x594518._0x4d6da9)]('base64'),
|
|
505
|
-
'contentType': guessContentType(_0x469f4b),
|
|
506
|
-
'filename': _0x469f4b,
|
|
507
|
-
'sizeBytes': _0x15b98d['size']
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
function createAttachmentCache(_0x35d32e = {}) {
|
|
511
|
-
const _0x1c25ea = {
|
|
512
|
-
_0x39ba40: 0x1a6,
|
|
513
|
-
_0x1d6473: 0x196
|
|
514
|
-
}, _0x965a1 = {
|
|
515
|
-
_0x103b51: 0x23f,
|
|
516
|
-
_0x1eeb74: 0x27f,
|
|
517
|
-
_0xdd55a: 0x257
|
|
518
|
-
}, _0x2ae39 = _0x548baf, _0x49cf8a = _0x35d32e[_0x2ae39(0x1d8)] ?? _0x479ed7[_0x2ae39(_0x1c25ea._0x39ba40)](homedir(), _0x2ae39(0x151), _0x2ae39(_0x1c25ea._0x1d6473));
|
|
519
|
-
return {
|
|
520
|
-
'cacheDir': _0x49cf8a,
|
|
521
|
-
async 'findCachedPath'(_0x17d451) {
|
|
522
|
-
const _0x350a66 = _0x2ae39;
|
|
523
|
-
await mkdir(_0x49cf8a, { 'recursive': !![] });
|
|
524
|
-
const _0x318a06 = await readdir(_0x49cf8a), _0x435a73 = _0x318a06[_0x350a66(0x264)](_0x9cf950 => _0x9cf950['startsWith'](_0x17d451 + '-') || _0x9cf950['startsWith'](_0x17d451));
|
|
525
|
-
return _0x435a73 ? _0x479ed7[_0x350a66(0x1a6)](_0x49cf8a, _0x435a73) : null;
|
|
526
|
-
},
|
|
527
|
-
async 'save'(_0x4a9efb) {
|
|
528
|
-
const _0x2e09f4 = _0x2ae39;
|
|
529
|
-
await mkdir(_0x49cf8a, { 'recursive': !![] });
|
|
530
|
-
const _0xa66b9d = _0x4a9efb[_0x2e09f4(0x27f)]?.[_0x2e09f4(_0x965a1._0x103b51)]() ? safeFilename(_0x4a9efb[_0x2e09f4(_0x965a1._0x1eeb74)]) : '' + _0x4a9efb[_0x2e09f4(_0x965a1._0xdd55a)] + extensionFor(_0x4a9efb[_0x2e09f4(0x113)]), _0x5a8b83 = _0x479ed7[_0x2e09f4(0x1a6)](_0x49cf8a, _0x4a9efb['attachmentId'] + '-' + _0xa66b9d);
|
|
531
|
-
return await writeFile(_0x5a8b83, _0x4a9efb['data']), _0x5a8b83;
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
}
|
|
535
|
-
import {
|
|
536
|
-
createHash,
|
|
537
|
-
randomUUID
|
|
538
|
-
} from 'node:crypto';
|
|
539
|
-
var UNSUPPORTED_TARGET_MESSAGE = 'Unsupported\x20target\x20format.\x20Supported\x20values\x20are\x20#channel,\x20dm:dm-<name>,\x20and\x20their\x20thread\x20targets.';
|
|
540
|
-
function ensureSegment(_0x4a9618) {
|
|
541
|
-
const _0x5259ed = _0x548baf, _0x476e3b = _0x4a9618[_0x5259ed(0x23f)]();
|
|
542
|
-
if (!_0x476e3b || _0x476e3b[_0x5259ed(0x1c1)](':'))
|
|
543
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
544
|
-
return _0x476e3b;
|
|
545
|
-
}
|
|
546
|
-
function parseThreadParts(_0x408837) {
|
|
547
|
-
const _0x59857c = {
|
|
548
|
-
_0x2fe967: 0x12b,
|
|
549
|
-
_0x1e2c61: 0x1d4
|
|
550
|
-
}, _0xe953e8 = _0x548baf, _0x35c131 = _0x408837[_0xe953e8(_0x59857c._0x2fe967)](':');
|
|
551
|
-
if (_0x35c131['length'] < 0x1 || _0x35c131[_0xe953e8(_0x59857c._0x1e2c61)] > 0x2)
|
|
552
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
553
|
-
return {
|
|
554
|
-
'channelName': ensureSegment(_0x35c131[0x0] ?? ''),
|
|
555
|
-
'threadShortId': _0x35c131[0x1] ? ensureSegment(_0x35c131[0x1]) : null
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
function parseTarget(_0x2918b8) {
|
|
559
|
-
const _0x5ea5be = {
|
|
560
|
-
_0x53ec4b: 0x14a,
|
|
561
|
-
_0x2428a3: 0x1b0,
|
|
562
|
-
_0x1f146e: 0x244,
|
|
563
|
-
_0x4f5e22: 0x244,
|
|
564
|
-
_0x43e890: 0x130,
|
|
565
|
-
_0x5e1d72: 0x130,
|
|
566
|
-
_0x2a138b: 0x1b0
|
|
567
|
-
}, _0x3d417e = _0x548baf, _0x2ed165 = _0x2918b8['trim']();
|
|
568
|
-
if (!_0x2ed165)
|
|
569
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
570
|
-
if (_0x2ed165['startsWith']('#')) {
|
|
571
|
-
const _0x238a72 = parseThreadParts(_0x2ed165[_0x3d417e(_0x5ea5be._0x53ec4b)](0x1)), _0x21cebd = '#' + _0x238a72['channelName'];
|
|
572
|
-
if (!_0x238a72['threadShortId'])
|
|
573
|
-
return {
|
|
574
|
-
'channelName': _0x238a72[_0x3d417e(0x130)],
|
|
575
|
-
'channelTarget': _0x21cebd,
|
|
576
|
-
'kind': _0x3d417e(0x139),
|
|
577
|
-
'target': _0x21cebd
|
|
578
|
-
};
|
|
579
|
-
return {
|
|
580
|
-
'channelName': _0x238a72[_0x3d417e(0x130)],
|
|
581
|
-
'channelTarget': _0x21cebd,
|
|
582
|
-
'kind': _0x3d417e(0x187),
|
|
583
|
-
'target': _0x21cebd + ':' + _0x238a72['threadShortId'],
|
|
584
|
-
'threadShortId': _0x238a72[_0x3d417e(_0x5ea5be._0x2428a3)]
|
|
585
|
-
};
|
|
586
|
-
}
|
|
587
|
-
if (_0x2ed165[_0x3d417e(_0x5ea5be._0x1f146e)](_0x3d417e(0x12d))) {
|
|
588
|
-
const _0x167e86 = parseThreadParts(_0x2ed165[_0x3d417e(_0x5ea5be._0x53ec4b)](0x3));
|
|
589
|
-
if (!_0x167e86['channelName'][_0x3d417e(_0x5ea5be._0x4f5e22)](_0x3d417e(0x150)))
|
|
590
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
591
|
-
const _0x165812 = 'dm:' + _0x167e86[_0x3d417e(_0x5ea5be._0x43e890)];
|
|
592
|
-
if (!_0x167e86['threadShortId'])
|
|
593
|
-
return {
|
|
594
|
-
'channelName': _0x167e86[_0x3d417e(_0x5ea5be._0x5e1d72)],
|
|
595
|
-
'channelTarget': _0x165812,
|
|
596
|
-
'kind': _0x3d417e(0x139),
|
|
597
|
-
'target': _0x165812
|
|
598
|
-
};
|
|
599
|
-
return {
|
|
600
|
-
'channelName': _0x167e86[_0x3d417e(_0x5ea5be._0x43e890)],
|
|
601
|
-
'channelTarget': _0x165812,
|
|
602
|
-
'kind': _0x3d417e(0x187),
|
|
603
|
-
'target': _0x165812 + ':' + _0x167e86[_0x3d417e(_0x5ea5be._0x2a138b)],
|
|
604
|
-
'threadShortId': _0x167e86['threadShortId']
|
|
605
|
-
};
|
|
606
|
-
}
|
|
607
|
-
throw new Error(UNSUPPORTED_TARGET_MESSAGE);
|
|
608
|
-
}
|
|
609
|
-
function asErrorMessage(_0x170cd7, _0x33edb7) {
|
|
610
|
-
const _0x2d2239 = { _0x2fe3e7: 0x23f }, _0x31ac96 = _0x548baf;
|
|
611
|
-
if (typeof _0x170cd7 === 'string' && _0x170cd7[_0x31ac96(_0x2d2239._0x2fe3e7)]())
|
|
612
|
-
return _0x170cd7;
|
|
613
|
-
return _0x33edb7;
|
|
614
|
-
}
|
|
615
|
-
function asRecord(_0xfed67) {
|
|
616
|
-
const _0x6cc1c5 = { _0x1e251e: 0x1f9 }, _0x496f0f = _0x548baf;
|
|
617
|
-
return typeof _0xfed67 === _0x496f0f(_0x6cc1c5._0x1e251e) && _0xfed67 !== null ? _0xfed67 : {};
|
|
618
|
-
}
|
|
619
|
-
function stableStringify(_0x1b59e1) {
|
|
620
|
-
const _0x3c854e = {
|
|
621
|
-
_0x2f233f: 0x1f9,
|
|
622
|
-
_0x298c43: 0xfb,
|
|
623
|
-
_0x2d6440: 0x280,
|
|
624
|
-
_0x479170: 0x110,
|
|
625
|
-
_0x1eb980: 0x1a6
|
|
626
|
-
}, _0x216835 = _0x548baf;
|
|
627
|
-
if (_0x1b59e1 === null || typeof _0x1b59e1 !== _0x216835(_0x3c854e._0x2f233f))
|
|
628
|
-
return JSON['stringify'](_0x1b59e1);
|
|
629
|
-
if (Array[_0x216835(_0x3c854e._0x298c43)](_0x1b59e1))
|
|
630
|
-
return '[' + _0x1b59e1[_0x216835(_0x3c854e._0x2d6440)](_0x1d2d5b => stableStringify(_0x1d2d5b))[_0x216835(0x1a6)](',') + ']';
|
|
631
|
-
const _0x222a56 = Object[_0x216835(0x220)](_0x1b59e1)[_0x216835(0x19d)](([, _0x45d940]) => _0x45d940 !== void 0x0)[_0x216835(_0x3c854e._0x479170)](([_0x22832a], [_0x263020]) => _0x22832a[_0x216835(0x107)](_0x263020))['map'](([_0x44556e, _0x2cb84f]) => JSON[_0x216835(0x14f)](_0x44556e) + ':' + stableStringify(_0x2cb84f));
|
|
632
|
-
return '{' + _0x222a56[_0x216835(_0x3c854e._0x1eb980)](',') + '}';
|
|
633
|
-
}
|
|
634
|
-
function createHeaders(_0x4f3f60) {
|
|
635
|
-
const _0x14fa90 = _0x548baf;
|
|
636
|
-
return {
|
|
637
|
-
'Content-Type': _0x14fa90(0x23a),
|
|
638
|
-
'x-daemon-api-key': _0x4f3f60
|
|
639
|
-
};
|
|
640
|
-
}
|
|
641
|
-
function toHttpBaseUrl(_0x2b88d2) {
|
|
642
|
-
const _0x85c06 = { _0x2fa5a0: 0x161 }, _0x28a331 = _0x548baf, _0x247c15 = new URL(_0x2b88d2);
|
|
643
|
-
if (_0x247c15['protocol'] === 'ws:')
|
|
644
|
-
_0x247c15[_0x28a331(_0x85c06._0x2fa5a0)] = _0x28a331(0x17b);
|
|
645
|
-
else
|
|
646
|
-
_0x247c15['protocol'] === 'wss:' && (_0x247c15[_0x28a331(_0x85c06._0x2fa5a0)] = _0x28a331(0x101));
|
|
647
|
-
return _0x247c15[_0x28a331(0x145)]()['replace'](/\/$/, '');
|
|
648
|
-
}
|
|
649
|
-
function isMentionBoundary(_0x3ad6f8) {
|
|
650
|
-
return !_0x3ad6f8 || /\s|[([{'",。!?、:;]/['test'](_0x3ad6f8);
|
|
651
|
-
}
|
|
652
|
-
function isMentionTerminal(_0x2334bf) {
|
|
653
|
-
const _0x37bcdd = _0x548baf;
|
|
654
|
-
return !_0x2334bf || /\s|[)\]}'",。!?、:;,.!?]/[_0x37bcdd(0x16c)](_0x2334bf);
|
|
655
|
-
}
|
|
656
|
-
function buildMatchableEntries(_0x8fc7c9) {
|
|
657
|
-
const _0x236d96 = {
|
|
658
|
-
_0x36c14a: 0x1e4,
|
|
659
|
-
_0x2f3562: 0x1c0,
|
|
660
|
-
_0x2a5cc2: 0x204
|
|
661
|
-
}, _0x4201fc = _0x548baf, _0x4eddc2 = [];
|
|
662
|
-
for (const _0x50fd51 of [
|
|
663
|
-
..._0x8fc7c9[_0x4201fc(_0x236d96._0x36c14a)],
|
|
664
|
-
..._0x8fc7c9[_0x4201fc(_0x236d96._0x2f3562)]
|
|
665
|
-
]) {
|
|
666
|
-
_0x4eddc2[_0x4201fc(0x118)]({
|
|
667
|
-
'matchName': _0x50fd51[_0x4201fc(0x1b8)],
|
|
668
|
-
'matchNameLower': _0x50fd51['name']['toLocaleLowerCase'](),
|
|
669
|
-
'participantId': _0x50fd51['id']
|
|
670
|
-
}), _0x50fd51['id'] !== _0x50fd51[_0x4201fc(0x1b8)] && _0x4eddc2[_0x4201fc(0x118)]({
|
|
671
|
-
'matchName': _0x50fd51['id'],
|
|
672
|
-
'matchNameLower': _0x50fd51['id'][_0x4201fc(_0x236d96._0x2a5cc2)](),
|
|
673
|
-
'participantId': _0x50fd51['id']
|
|
674
|
-
});
|
|
675
|
-
}
|
|
676
|
-
return _0x4eddc2;
|
|
677
|
-
}
|
|
678
|
-
function extractMentionedParticipantIds(_0x3d5900, _0x20fdd9) {
|
|
679
|
-
const _0x2fb342 = {
|
|
680
|
-
_0x17080d: 0x14a,
|
|
681
|
-
_0x543231: 0x222,
|
|
682
|
-
_0x3be6b3: 0x191,
|
|
683
|
-
_0x2bacef: 0x1d4
|
|
684
|
-
}, _0x379842 = {
|
|
685
|
-
_0x502f3d: 0x244,
|
|
686
|
-
_0x4d2296: 0x140,
|
|
687
|
-
_0x5c5003: 0x191
|
|
688
|
-
}, _0x20d2f9 = _0x548baf, _0x27562e = buildMatchableEntries(_0x20fdd9)['sort']((_0x57d69e, _0x4bd8ff) => _0x4bd8ff[_0x20d2f9(0x191)][_0x20d2f9(0x1d4)] - _0x57d69e[_0x20d2f9(0x191)][_0x20d2f9(0x1d4)]), _0x748dfa = [], _0x259981 = new Set();
|
|
689
|
-
for (let _0x492edb = 0x0; _0x492edb < _0x3d5900[_0x20d2f9(0x1d4)]; _0x492edb += 0x1) {
|
|
690
|
-
if (_0x3d5900[_0x492edb] !== '@' || !isMentionBoundary(_0x3d5900[_0x492edb - 0x1]))
|
|
691
|
-
continue;
|
|
692
|
-
const _0x3ed473 = _0x3d5900[_0x20d2f9(_0x2fb342._0x17080d)](_0x492edb + 0x1), _0x3b6757 = _0x3ed473['toLocaleLowerCase'](), _0x4fbee4 = _0x27562e[_0x20d2f9(0x264)](_0x297607 => {
|
|
693
|
-
const _0x12e602 = _0x20d2f9;
|
|
694
|
-
if (!_0x3b6757[_0x12e602(_0x379842._0x502f3d)](_0x297607[_0x12e602(_0x379842._0x4d2296)]))
|
|
695
|
-
return ![];
|
|
696
|
-
return isMentionTerminal(_0x3ed473[_0x297607[_0x12e602(_0x379842._0x5c5003)]['length']]);
|
|
697
|
-
});
|
|
698
|
-
if (!_0x4fbee4 || _0x259981[_0x20d2f9(0x27e)](_0x4fbee4['participantId']))
|
|
699
|
-
continue;
|
|
700
|
-
_0x259981['add'](_0x4fbee4[_0x20d2f9(0x222)]), _0x748dfa['push'](_0x4fbee4[_0x20d2f9(_0x2fb342._0x543231)]), _0x492edb += _0x4fbee4[_0x20d2f9(_0x2fb342._0x3be6b3)][_0x20d2f9(_0x2fb342._0x2bacef)];
|
|
701
|
-
}
|
|
702
|
-
return _0x748dfa;
|
|
703
|
-
}
|
|
704
|
-
var DEFAULT_FETCH_TIMEOUT_MS = 0x3a98;
|
|
705
|
-
function anySignal(..._0x2d00f3) {
|
|
706
|
-
const _0x3d81d2 = {
|
|
707
|
-
_0xe7dbc6: 0x22b,
|
|
708
|
-
_0x4e1a1c: 0x112,
|
|
709
|
-
_0xdd0a5e: 0x1d3,
|
|
710
|
-
_0x5a05bb: 0x112
|
|
711
|
-
}, _0x1684db = _0x548baf, _0x4dff42 = new AbortController();
|
|
712
|
-
for (const _0x3873fa of _0x2d00f3) {
|
|
713
|
-
if (_0x3873fa[_0x1684db(_0x3d81d2._0xe7dbc6)])
|
|
714
|
-
return _0x4dff42[_0x1684db(_0x3d81d2._0x4e1a1c)](_0x3873fa[_0x1684db(0x255)]), _0x4dff42[_0x1684db(_0x3d81d2._0xdd0a5e)];
|
|
715
|
-
_0x3873fa[_0x1684db(0x206)](_0x1684db(_0x3d81d2._0x5a05bb), () => _0x4dff42['abort'](_0x3873fa[_0x1684db(0x255)]), {
|
|
716
|
-
'once': !![],
|
|
717
|
-
'signal': _0x4dff42[_0x1684db(0x1d3)]
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
return _0x4dff42[_0x1684db(0x1d3)];
|
|
721
|
-
}
|
|
722
|
-
function createInternalAgentClient(_0x4fb4d6) {
|
|
723
|
-
const _0x289c92 = {
|
|
724
|
-
_0x514e1c: 0x168,
|
|
725
|
-
_0x5652a2: 0x203,
|
|
726
|
-
_0x1c9fef: 0x227,
|
|
727
|
-
_0x31cc45: 0x23f,
|
|
728
|
-
_0x527188: 0x231,
|
|
729
|
-
_0x61a784: 0xfe,
|
|
730
|
-
_0x427af4: 0x22c,
|
|
731
|
-
_0x33fc6d: 0x127
|
|
732
|
-
}, _0x2b0a59 = {
|
|
733
|
-
_0x3cb7d9: 0x145,
|
|
734
|
-
_0x1f7ad4: 0x1e5,
|
|
735
|
-
_0xa6e0f4: 0x24c,
|
|
736
|
-
_0x599ffa: 0x1d4,
|
|
737
|
-
_0x573005: 0x11d,
|
|
738
|
-
_0x55ce31: 0x250,
|
|
739
|
-
_0x2c3a15: 0x11d,
|
|
740
|
-
_0x3559d1: 0x209,
|
|
741
|
-
_0x3788b9: 0x205,
|
|
742
|
-
_0x140d59: 0x240,
|
|
743
|
-
_0x173020: 0x1ef,
|
|
744
|
-
_0x366af4: 0x266,
|
|
745
|
-
_0x4e69ed: 0x1d5,
|
|
746
|
-
_0x31a130: 0x266,
|
|
747
|
-
_0x5aa3d9: 0x220,
|
|
748
|
-
_0x364bb8: 0x26e,
|
|
749
|
-
_0x242b73: 0x184,
|
|
750
|
-
_0x328b08: 0x198,
|
|
751
|
-
_0x27c0cc: 0x282,
|
|
752
|
-
_0x389c68: 0x280,
|
|
753
|
-
_0x56b677: 0x118,
|
|
754
|
-
_0x5d6aa3: 0x196,
|
|
755
|
-
_0x43e319: 0x240,
|
|
756
|
-
_0x5efffd: 0x240,
|
|
757
|
-
_0x48fdd3: 0x109,
|
|
758
|
-
_0xd09ea1: 0x172
|
|
759
|
-
}, _0x3a1d25 = { _0x53b64e: 0x1ef }, _0x405421 = {
|
|
760
|
-
_0x5481ad: 0x139,
|
|
761
|
-
_0x4ea879: 0x171,
|
|
762
|
-
_0x566924: 0x1c8
|
|
763
|
-
}, _0x1038d2 = {
|
|
764
|
-
_0x20b8ab: 0x198,
|
|
765
|
-
_0x4be780: 0x1b5,
|
|
766
|
-
_0x5a45ef: 0x263,
|
|
767
|
-
_0x1d3acd: 0x203
|
|
768
|
-
}, _0x21d68f = {
|
|
769
|
-
_0x2a011f: 0x1a7,
|
|
770
|
-
_0x595bbb: 0x158,
|
|
771
|
-
_0x5e1562: 0x272,
|
|
772
|
-
_0x126b97: 0x1d3,
|
|
773
|
-
_0x250000: 0x269,
|
|
774
|
-
_0x2272c0: 0x25a,
|
|
775
|
-
_0x2eb11f: 0x219,
|
|
776
|
-
_0x3d767a: 0x166
|
|
777
|
-
}, _0x11c2b5 = {
|
|
778
|
-
_0x5911a1: 0x1c8,
|
|
779
|
-
_0x5dee79: 0x1aa,
|
|
780
|
-
_0x457e72: 0x1b5,
|
|
781
|
-
_0x4d3b23: 0x14f,
|
|
782
|
-
_0x3d4304: 0x190,
|
|
783
|
-
_0x599b88: 0x236,
|
|
784
|
-
_0x5e8709: 0x24c
|
|
785
|
-
}, _0x196c20 = {
|
|
786
|
-
_0x141381: 0x1b5,
|
|
787
|
-
_0x530642: 0x235,
|
|
788
|
-
_0x28ac1b: 0x14f
|
|
789
|
-
}, _0x534b3e = {
|
|
790
|
-
_0xf885d1: 0x1aa,
|
|
791
|
-
_0x428dda: 0x1b5
|
|
792
|
-
}, _0x19e506 = {
|
|
793
|
-
_0x2472ce: 0x198,
|
|
794
|
-
_0x3f0ee5: 0x269,
|
|
795
|
-
_0x3af8d7: 0x269,
|
|
796
|
-
_0x187346: 0x13f,
|
|
797
|
-
_0x9e19b7: 0x145,
|
|
798
|
-
_0xc4653d: 0x1a7
|
|
799
|
-
}, _0x1ead70 = {
|
|
800
|
-
_0x5bd7fb: 0x1a8,
|
|
801
|
-
_0xc4fd48: 0x24c
|
|
802
|
-
}, _0x53d82a = {
|
|
803
|
-
_0x1f566a: 0x159,
|
|
804
|
-
_0x48d3df: 0x14f,
|
|
805
|
-
_0x1715f2: 0x275
|
|
806
|
-
}, _0x17a358 = { _0x3cb6cf: 0x124 }, _0x30f93c = {
|
|
807
|
-
_0x1ce058: 0x1ad,
|
|
808
|
-
_0x3c07e6: 0x14f,
|
|
809
|
-
_0x22dcc4: 0x1ef,
|
|
810
|
-
_0x44a451: 0x1d4,
|
|
811
|
-
_0x2ddfbe: 0x262
|
|
812
|
-
}, _0x400e48 = {
|
|
813
|
-
_0x1b79e8: 0x226,
|
|
814
|
-
_0x540ee2: 0x1c8,
|
|
815
|
-
_0xc06128: 0x198,
|
|
816
|
-
_0x28793d: 0x1ef,
|
|
817
|
-
_0x2b7501: 0x1ef,
|
|
818
|
-
_0x59c432: 0x171,
|
|
819
|
-
_0x51a43a: 0x198,
|
|
820
|
-
_0x202d80: 0x1aa,
|
|
821
|
-
_0x1a28d3: 0x1b5,
|
|
822
|
-
_0xfd6704: 0x145,
|
|
823
|
-
_0x403467: 0x1a7,
|
|
824
|
-
_0x3a950e: 0x1dc,
|
|
825
|
-
_0x52cdca: 0x1e0,
|
|
826
|
-
_0x24aa79: 0x1c9
|
|
827
|
-
}, _0x2a4f80 = { _0x4a8dc0: 0x195 }, _0x18473f = { _0x3af970: 0x195 }, _0x59565c = {
|
|
828
|
-
_0x586faf: 0x1d5,
|
|
829
|
-
_0x4e95ba: 0x125,
|
|
830
|
-
_0x5db384: 0x266,
|
|
831
|
-
_0x7a4430: 0x266,
|
|
832
|
-
_0x2a8f3c: 0x1b0,
|
|
833
|
-
_0xc659f3: 0x244,
|
|
834
|
-
_0x12df49: 0x1b0
|
|
835
|
-
}, _0x2a8ba5 = {
|
|
836
|
-
_0x25ddf5: 0x1dc,
|
|
837
|
-
_0x312d3b: 0x266,
|
|
838
|
-
_0x4bf060: 0x1b0,
|
|
839
|
-
_0x573f0c: 0x1c8,
|
|
840
|
-
_0x1928ef: 0x1b0,
|
|
841
|
-
_0x564594: 0x244
|
|
842
|
-
}, _0x23c5ea = {
|
|
843
|
-
_0x27ba9e: 0x1d5,
|
|
844
|
-
_0x40fce4: 0x1dc,
|
|
845
|
-
_0x4d33a9: 0x1dc,
|
|
846
|
-
_0x4b6355: 0x1c8,
|
|
847
|
-
_0x47d158: 0x1dc
|
|
848
|
-
}, _0xb66e68 = {
|
|
849
|
-
_0x1338ad: 0x1c0,
|
|
850
|
-
_0x16bfcd: 0x1b8
|
|
851
|
-
}, _0x407067 = { _0x24f5ca: 0x1e4 }, _0x3d5099 = { _0x1f382a: 0x1fa }, _0x5c15bb = {
|
|
852
|
-
_0x83ddee: 0x19d,
|
|
853
|
-
_0x22ec55: 0x280,
|
|
854
|
-
_0x58f7f3: 0x24c,
|
|
855
|
-
_0xf43f3: 0x24c,
|
|
856
|
-
_0x5d5888: 0x21b
|
|
857
|
-
}, _0x3b22c0 = {
|
|
858
|
-
_0x1874b3: 0x1b5,
|
|
859
|
-
_0xfe9391: 0x10d,
|
|
860
|
-
_0x259d95: 0x24c,
|
|
861
|
-
_0x32618c: 0x134,
|
|
862
|
-
_0x3130d6: 0x1c8,
|
|
863
|
-
_0x197bc3: 0x1d5
|
|
864
|
-
}, _0x40821d = {
|
|
865
|
-
_0x5e2432: 0x16b,
|
|
866
|
-
_0x373bc7: 0x23a,
|
|
867
|
-
_0x46a7cc: 0x1a8,
|
|
868
|
-
_0x1cefee: 0x267,
|
|
869
|
-
_0xc3cb99: 0x269
|
|
870
|
-
}, _0x582222 = {
|
|
871
|
-
_0x2fcd47: 0x258,
|
|
872
|
-
_0x41a307: 0x14f
|
|
873
|
-
}, _0x35965e = { _0x40389e: 0x269 }, _0x37c8d2 = {
|
|
874
|
-
_0x2d8aad: 0x1d3,
|
|
875
|
-
_0x2f08f4: 0x13d
|
|
876
|
-
}, _0x349c24 = {
|
|
877
|
-
_0x1c7d6e: 0x265,
|
|
878
|
-
_0x28c69e: 0xfc,
|
|
879
|
-
_0x461759: 0x25a,
|
|
880
|
-
_0x1030da: 0x1d1
|
|
881
|
-
}, _0x1dd4f9 = { _0x2a6083: 0x166 }, _0x5b74e1 = {
|
|
882
|
-
_0x475744: 0x25a,
|
|
883
|
-
_0x152d26: 0x219,
|
|
884
|
-
_0x507fa6: 0x144,
|
|
885
|
-
_0x330401: 0x14a,
|
|
886
|
-
_0x3d050c: 0x176,
|
|
887
|
-
_0x1b0a70: 0x11a
|
|
888
|
-
}, _0x33c246 = _0x548baf, _0x4ed19f = _0x4fb4d6['fetchImpl'] ?? fetch, _0x2e6833 = _0x4fb4d6[_0x33c246(_0x289c92._0x514e1c)] ?? DEFAULT_FETCH_TIMEOUT_MS, _0x41aede = typeof _0x4fb4d6['initialLastSeenSeq'] === _0x33c246(_0x289c92._0x5652a2) && _0x4fb4d6['initialLastSeenSeq'] > 0x0 ? _0x4fb4d6['initialLastSeenSeq'] : 0x0, _0x33a636 = _0x4fb4d6[_0x33c246(_0x289c92._0x1c9fef)]?.[_0x33c246(_0x289c92._0x31cc45)]() || void 0x0, _0x4b10f6 = _0x4fb4d6[_0x33c246(_0x289c92._0x527188)]?.['trim']() || void 0x0, _0x2a66f8 = _0x4fb4d6[_0x33c246(0x104)] === !![], _0x4b103e = _0x4fb4d6[_0x33c246(0x116)]?.[_0x33c246(0x23f)]() || void 0x0, _0x327bf5 = _0x4fb4d6[_0x33c246(_0x289c92._0x61a784)]?.[_0x33c246(0x23f)]() || void 0x0, _0x181bf3 = createHeaders(_0x4fb4d6[_0x33c246(_0x289c92._0x427af4)]), _0x10d87e = toHttpBaseUrl(_0x4fb4d6[_0x33c246(_0x289c92._0x33fc6d)]);
|
|
889
|
-
let _0x25f987 = null;
|
|
890
|
-
const _0x52b034 = new Map();
|
|
891
|
-
let _0xc87b39 = _0x41aede, _0x23e08c = _0x41aede;
|
|
892
|
-
function _0x54ab6e(_0x389130) {
|
|
893
|
-
const _0x387a8b = _0x33c246, _0x494f1b = _0x389130['response'][_0x387a8b(0x24f)][_0x387a8b(_0x5b74e1._0x475744)](_0x387a8b(_0x5b74e1._0x152d26)) ?? _0x387a8b(0x119), _0x44a087 = _0x389130[_0x387a8b(0x25f)][_0x387a8b(0x23f)]()[_0x387a8b(_0x5b74e1._0x507fa6)](/\s+/g, '\x20')[_0x387a8b(_0x5b74e1._0x330401)](0x0, 0x78) || _0x387a8b(0x1ac);
|
|
894
|
-
return _0x387a8b(_0x5b74e1._0x3d050c) + _0x389130[_0x387a8b(0x1e6)] + _0x387a8b(0x221) + _0x389130[_0x387a8b(_0x5b74e1._0x1b0a70)][_0x387a8b(0x269)] + _0x387a8b(0x228) + _0x494f1b + ',\x20preview=' + _0x44a087 + _0x387a8b(0x1e2);
|
|
895
|
-
}
|
|
896
|
-
async function _0x5346d8(_0x1e8e89, _0x4ce630) {
|
|
897
|
-
const _0x29bc46 = _0x33c246, _0x2b3644 = Buffer[_0x29bc46(0x230)](await _0x4ce630[_0x29bc46(_0x1dd4f9._0x2a6083)]())[_0x29bc46(0x145)]('utf8');
|
|
898
|
-
if (!_0x2b3644['trim']())
|
|
899
|
-
return {};
|
|
900
|
-
try {
|
|
901
|
-
return JSON[_0x29bc46(0x142)](_0x2b3644);
|
|
902
|
-
} catch {
|
|
903
|
-
throw new Error(_0x54ab6e({
|
|
904
|
-
'bodyText': _0x2b3644,
|
|
905
|
-
'requestUrl': _0x1e8e89,
|
|
906
|
-
'response': _0x4ce630
|
|
907
|
-
}));
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
function _0x3c3126(_0x32c108, _0x4db71b) {
|
|
911
|
-
const _0x5a3857 = _0x33c246, _0x211e2a = typeof _0x4db71b['idempotency_key'] === _0x5a3857(0x240) ? _0x4db71b['idempotency_key'][_0x5a3857(0x23f)]() : '';
|
|
912
|
-
if (_0x211e2a)
|
|
913
|
-
return _0x211e2a;
|
|
914
|
-
const _0x14c9a2 = Date[_0x5a3857(_0x349c24._0x1c7d6e)]();
|
|
915
|
-
for (const [_0x364ff7, _0x16ac5a] of _0x52b034) {
|
|
916
|
-
_0x16ac5a[_0x5a3857(_0x349c24._0x28c69e)] <= _0x14c9a2 && _0x52b034[_0x5a3857(0x1cc)](_0x364ff7);
|
|
917
|
-
}
|
|
918
|
-
const _0x4d89ef = {
|
|
919
|
-
..._0x4db71b,
|
|
920
|
-
'idempotency_key': void 0x0
|
|
921
|
-
}, _0x6de742 = createHash('sha256')['update'](_0x32c108 + ':' + stableStringify(_0x4d89ef))[_0x5a3857(0x15d)]('hex'), _0xf2bb5b = _0x32c108 + ':' + _0x6de742, _0x538609 = _0x52b034[_0x5a3857(_0x349c24._0x461759)](_0xf2bb5b);
|
|
922
|
-
if (_0x538609)
|
|
923
|
-
return _0x538609[_0x5a3857(_0x349c24._0x1030da)];
|
|
924
|
-
const _0x59d67d = _0x5a3857(0x169) + _0x32c108 + ':' + randomUUID();
|
|
925
|
-
return _0x52b034['set'](_0xf2bb5b, {
|
|
926
|
-
'expiresAt': _0x14c9a2 + 0x5 * 0x3c * 0x3e8,
|
|
927
|
-
'value': _0x59d67d
|
|
928
|
-
}), _0x59d67d;
|
|
929
|
-
}
|
|
930
|
-
async function _0x379f74(_0x330c1e, _0x42d2a9) {
|
|
931
|
-
const _0x1b8e87 = _0x33c246, _0x4f5feb = new AbortController(), _0x449d72 = setTimeout(() => _0x4f5feb['abort'](), _0x2e6833), _0x3f53f0 = _0x42d2a9?.['signal'] ? anySignal(_0x42d2a9[_0x1b8e87(_0x37c8d2._0x2d8aad)], _0x4f5feb['signal']) : _0x4f5feb[_0x1b8e87(_0x37c8d2._0x2d8aad)], _0x27ffc3 = '' + _0x10d87e + _0x330c1e;
|
|
932
|
-
try {
|
|
933
|
-
const _0x40a7c5 = await _0x4ed19f(_0x27ffc3, {
|
|
934
|
-
..._0x42d2a9,
|
|
935
|
-
'signal': _0x3f53f0
|
|
936
|
-
}), _0x53b6d5 = await _0x5346d8(_0x27ffc3, _0x40a7c5);
|
|
937
|
-
if (!_0x40a7c5['ok'] || _0x53b6d5[_0x1b8e87(_0x37c8d2._0x2f08f4)] === ![])
|
|
938
|
-
throw new Error(asErrorMessage(_0x53b6d5['error'], 'HTTP\x20' + _0x40a7c5[_0x1b8e87(0x269)]));
|
|
939
|
-
return _0x53b6d5;
|
|
940
|
-
} finally {
|
|
941
|
-
clearTimeout(_0x449d72);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
async function _0x3eec24(_0x610bd6, _0x580633) {
|
|
945
|
-
const _0x132001 = _0x33c246, _0x4bdb41 = new AbortController(), _0x1d1c95 = setTimeout(() => _0x4bdb41[_0x132001(0x112)](), _0x2e6833), _0x58d42e = _0x580633?.[_0x132001(0x1d3)] ? anySignal(_0x580633[_0x132001(0x1d3)], _0x4bdb41['signal']) : _0x4bdb41['signal'], _0x3c5ff7 = '' + _0x10d87e + _0x610bd6;
|
|
946
|
-
try {
|
|
947
|
-
const _0x558539 = await _0x4ed19f(_0x3c5ff7, {
|
|
948
|
-
..._0x580633,
|
|
949
|
-
'signal': _0x58d42e
|
|
950
|
-
}), _0x254ece = await _0x5346d8(_0x3c5ff7, _0x558539);
|
|
951
|
-
if (!_0x558539['ok'])
|
|
952
|
-
throw new Error(asErrorMessage(_0x254ece[_0x132001(0x1bf)], _0x132001(0x267) + _0x558539[_0x132001(_0x35965e._0x40389e)]));
|
|
953
|
-
return _0x254ece;
|
|
954
|
-
} finally {
|
|
955
|
-
clearTimeout(_0x1d1c95);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
async function _0xea8f84(_0x1660c5) {
|
|
959
|
-
const _0x561cdb = _0x33c246;
|
|
960
|
-
if (!_0x4b10f6 || _0x1660c5 <= _0x23e08c)
|
|
961
|
-
return;
|
|
962
|
-
await _0x379f74(_0x561cdb(_0x582222._0x2fcd47) + encodeURIComponent(_0x4b10f6) + '/context-metrics', {
|
|
963
|
-
'body': JSON[_0x561cdb(_0x582222._0x41a307)]({ 'lastSeenSeq': _0x1660c5 }),
|
|
964
|
-
'headers': _0x181bf3,
|
|
965
|
-
'method': 'PATCH'
|
|
966
|
-
}), _0x23e08c = _0x1660c5;
|
|
967
|
-
}
|
|
968
|
-
async function _0x116268(_0x4f860f) {
|
|
969
|
-
const _0x29978c = _0x33c246;
|
|
970
|
-
if (!_0x33a636 || !_0x4b103e || _0x4f860f <= _0x23e08c)
|
|
971
|
-
return;
|
|
972
|
-
const _0x510c83 = await _0x4ed19f(_0x33a636 + _0x29978c(_0x40821d._0x5e2432), {
|
|
973
|
-
'body': JSON['stringify']({
|
|
974
|
-
'last_seen_seq': _0x4f860f,
|
|
975
|
-
'worker_session_id': _0x4b103e
|
|
976
|
-
}),
|
|
977
|
-
'headers': { 'Content-Type': _0x29978c(_0x40821d._0x373bc7) },
|
|
978
|
-
'method': _0x29978c(_0x40821d._0x46a7cc)
|
|
979
|
-
});
|
|
980
|
-
if (!_0x510c83['ok'])
|
|
981
|
-
throw new Error(_0x29978c(_0x40821d._0x1cefee) + _0x510c83[_0x29978c(_0x40821d._0xc3cb99)]);
|
|
982
|
-
_0x23e08c = _0x4f860f;
|
|
983
|
-
}
|
|
984
|
-
async function _0x15a709(_0x533ef7) {
|
|
985
|
-
const _0x299cd9 = _0x33c246, _0x18af2c = parseTarget(_0x533ef7), _0x70656b = await _0x379f74('/internal/agent/' + _0x4fb4d6[_0x299cd9(_0x3b22c0._0x1874b3)] + _0x299cd9(_0x3b22c0._0xfe9391), {
|
|
986
|
-
'body': JSON[_0x299cd9(0x14f)]({ 'target': _0x18af2c[_0x299cd9(0x1a0)] }),
|
|
987
|
-
'headers': _0x181bf3,
|
|
988
|
-
'method': _0x299cd9(0x1a8)
|
|
989
|
-
});
|
|
990
|
-
return {
|
|
991
|
-
'channelId': _0x70656b[_0x299cd9(_0x3b22c0._0x259d95)]?.[_0x299cd9(0x1ef)] ?? '',
|
|
992
|
-
'target': _0x18af2c[_0x299cd9(0x1dc)],
|
|
993
|
-
'task': _0x70656b[_0x299cd9(0x24c)]?.[_0x299cd9(_0x3b22c0._0x32618c)],
|
|
994
|
-
'threadId': _0x70656b[_0x299cd9(0x24c)]?.[_0x299cd9(_0x3b22c0._0x3130d6)],
|
|
995
|
-
'threadNumber': _0x70656b[_0x299cd9(0x24c)]?.[_0x299cd9(_0x3b22c0._0x197bc3)]
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
async function _0x92fd4(_0x2490b9 = {}) {
|
|
999
|
-
const _0xefa291 = _0x33c246;
|
|
1000
|
-
if (!_0x2490b9['forceRefresh'] && _0x25f987)
|
|
1001
|
-
return _0x25f987;
|
|
1002
|
-
return _0x25f987 = (async () => {
|
|
1003
|
-
const _0x1c175e = _0x7c22, _0x19ea58 = await _0x379f74(_0x1c175e(0x1aa) + _0x4fb4d6['agentId'] + '/server', {
|
|
1004
|
-
'headers': _0x181bf3,
|
|
1005
|
-
'method': 'GET'
|
|
1006
|
-
}), _0x471218 = _0x19ea58[_0x1c175e(0x24c)]?.[_0x1c175e(0x238)] ?? [], _0x52e49c = _0x471218[_0x1c175e(_0x5c15bb._0x83ddee)](_0x162e2e => _0x162e2e['participant']?.[_0x1c175e(0x155)] === _0x1c175e(0x16a))[_0x1c175e(_0x5c15bb._0x22ec55)](_0x36de3d => ({
|
|
1007
|
-
'id': _0x3f6c7e(_0x36de3d),
|
|
1008
|
-
'name': _0x3dab1f(_0x36de3d)
|
|
1009
|
-
}))[_0x1c175e(_0x5c15bb._0x83ddee)](_0x459dc4 => _0x459dc4['id']), _0x1213a9 = _0x471218[_0x1c175e(0x19d)](_0x3cbf31 => _0x3cbf31[_0x1c175e(0x195)]?.[_0x1c175e(0x155)] !== _0x1c175e(0x16a))[_0x1c175e(0x280)](_0x6ea93e => ({
|
|
1010
|
-
'id': _0x3f6c7e(_0x6ea93e),
|
|
1011
|
-
'name': _0x3dab1f(_0x6ea93e)
|
|
1012
|
-
}))[_0x1c175e(0x19d)](_0x37ea9c => _0x37ea9c['id']), _0x3dd18f = _0x19ea58['data']?.['server']['id'] ?? '';
|
|
1013
|
-
return {
|
|
1014
|
-
'agents': _0x52e49c,
|
|
1015
|
-
'channels': _0x19ea58[_0x1c175e(_0x5c15bb._0x58f7f3)]?.['channels'] ?? [],
|
|
1016
|
-
'humans': _0x1213a9,
|
|
1017
|
-
'serverId': _0x3dd18f,
|
|
1018
|
-
'serverName': _0x19ea58[_0x1c175e(_0x5c15bb._0xf43f3)]?.[_0x1c175e(_0x5c15bb._0x5d5888)][_0x1c175e(0x1b8)] ?? _0x3dd18f
|
|
1019
|
-
};
|
|
1020
|
-
})()[_0xefa291(_0x3d5099._0x1f382a)](_0x2b43ea => {
|
|
1021
|
-
_0x25f987 = null;
|
|
1022
|
-
throw _0x2b43ea;
|
|
1023
|
-
}), _0x25f987;
|
|
1024
|
-
}
|
|
1025
|
-
function _0x197210(_0x58525e, _0x359b52) {
|
|
1026
|
-
const _0x2dbde6 = _0x33c246;
|
|
1027
|
-
return _0x359b52[_0x2dbde6(_0x407067._0x24f5ca)][_0x2dbde6(0x205)](_0x2bc2ff => _0x2bc2ff['id'] === _0x58525e || _0x2bc2ff[_0x2dbde6(0x1b8)] === _0x58525e) ? 'agent' : _0x2dbde6(0x251);
|
|
1028
|
-
}
|
|
1029
|
-
function _0x182591(_0x1b57e3, _0x306a74) {
|
|
1030
|
-
const _0x11a599 = _0x33c246, _0x38ad3b = [
|
|
1031
|
-
..._0x306a74[_0x11a599(0x1e4)],
|
|
1032
|
-
..._0x306a74[_0x11a599(_0xb66e68._0x1338ad)]
|
|
1033
|
-
][_0x11a599(0x264)](_0x24eba7 => _0x24eba7['id'] === _0x1b57e3);
|
|
1034
|
-
return _0x38ad3b?.[_0x11a599(_0xb66e68._0x16bfcd)] ?? _0x1b57e3;
|
|
1035
|
-
}
|
|
1036
|
-
function _0x5f0c22(_0x593bdd) {
|
|
1037
|
-
const _0x271868 = _0x33c246;
|
|
1038
|
-
if (_0x593bdd[_0x271868(_0x23c5ea._0x27ba9e)] != null)
|
|
1039
|
-
return _0x593bdd[_0x271868(_0x23c5ea._0x40fce4)] + ':t' + _0x593bdd['threadNumber'];
|
|
1040
|
-
if (_0x593bdd['rootMessageId'])
|
|
1041
|
-
return _0x593bdd[_0x271868(_0x23c5ea._0x4d33a9)] + ':' + _0x593bdd[_0x271868(0x266)];
|
|
1042
|
-
if (_0x593bdd[_0x271868(_0x23c5ea._0x4b6355)])
|
|
1043
|
-
return _0x593bdd[_0x271868(_0x23c5ea._0x4d33a9)] + ':' + _0x593bdd[_0x271868(_0x23c5ea._0x4b6355)][_0x271868(0x14a)](0x0, 0x8);
|
|
1044
|
-
return _0x593bdd[_0x271868(_0x23c5ea._0x47d158)];
|
|
1045
|
-
}
|
|
1046
|
-
function _0x3e2908(_0x2b1747, _0x460c64) {
|
|
1047
|
-
const _0x16688c = _0x33c246;
|
|
1048
|
-
try {
|
|
1049
|
-
const _0x461876 = parseTarget(_0x2b1747);
|
|
1050
|
-
if (_0x461876[_0x16688c(0x109)] !== _0x16688c(0x187) || _0x461876['channelTarget'] !== _0x460c64[_0x16688c(_0x2a8ba5._0x25ddf5)])
|
|
1051
|
-
return ![];
|
|
1052
|
-
if (_0x460c64[_0x16688c(0x1d5)] != null && _0x461876['threadShortId'] === 't' + _0x460c64[_0x16688c(0x1d5)])
|
|
1053
|
-
return !![];
|
|
1054
|
-
if (_0x460c64[_0x16688c(_0x2a8ba5._0x312d3b)])
|
|
1055
|
-
return _0x461876[_0x16688c(_0x2a8ba5._0x4bf060)] === _0x460c64[_0x16688c(_0x2a8ba5._0x312d3b)] || _0x460c64[_0x16688c(0x266)][_0x16688c(0x244)](_0x461876[_0x16688c(_0x2a8ba5._0x4bf060)]);
|
|
1056
|
-
if (_0x460c64[_0x16688c(_0x2a8ba5._0x573f0c)])
|
|
1057
|
-
return _0x461876[_0x16688c(_0x2a8ba5._0x1928ef)] === _0x460c64[_0x16688c(0x1c8)] || _0x460c64[_0x16688c(0x1c8)][_0x16688c(_0x2a8ba5._0x564594)](_0x461876[_0x16688c(0x1b0)]);
|
|
1058
|
-
return ![];
|
|
1059
|
-
} catch {
|
|
1060
|
-
return ![];
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
function _0x2360b5(_0x30d3df, _0x5c2202) {
|
|
1064
|
-
const _0x2072f4 = _0x33c246;
|
|
1065
|
-
try {
|
|
1066
|
-
const _0x5191ef = parseTarget(_0x30d3df);
|
|
1067
|
-
if (_0x5191ef['kind'] !== _0x2072f4(0x187))
|
|
1068
|
-
return ![];
|
|
1069
|
-
const _0x5ebc38 = typeof _0x5c2202[_0x2072f4(_0x59565c._0x586faf)] === _0x2072f4(0x203) && Number[_0x2072f4(_0x59565c._0x4e95ba)](_0x5c2202['threadNumber']) ? _0x5c2202['threadNumber'] : void 0x0;
|
|
1070
|
-
if (_0x5ebc38 != null && _0x5191ef['threadShortId'] === 't' + _0x5ebc38)
|
|
1071
|
-
return !![];
|
|
1072
|
-
const _0x2db2bd = typeof _0x5c2202[_0x2072f4(_0x59565c._0x5db384)] === 'string' ? _0x5c2202[_0x2072f4(_0x59565c._0x7a4430)] : void 0x0;
|
|
1073
|
-
if (_0x2db2bd)
|
|
1074
|
-
return _0x5191ef[_0x2072f4(_0x59565c._0x2a8f3c)] === _0x2db2bd || _0x2db2bd[_0x2072f4(_0x59565c._0xc659f3)](_0x5191ef[_0x2072f4(_0x59565c._0x12df49)]);
|
|
1075
|
-
const _0x5a60bb = typeof _0x5c2202[_0x2072f4(0x1c8)] === 'string' ? _0x5c2202[_0x2072f4(0x1c8)] : void 0x0;
|
|
1076
|
-
return Boolean(_0x5a60bb) && (_0x5191ef[_0x2072f4(_0x59565c._0x12df49)] === _0x5a60bb || _0x5a60bb[_0x2072f4(_0x59565c._0xc659f3)](_0x5191ef[_0x2072f4(0x1b0)]));
|
|
1077
|
-
} catch {
|
|
1078
|
-
return ![];
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
function _0x3f6c7e(_0x3bc12d) {
|
|
1082
|
-
const _0x1c77fb = _0x33c246;
|
|
1083
|
-
return _0x3bc12d['member']?.[_0x1c77fb(0x222)] ?? _0x3bc12d[_0x1c77fb(_0x18473f._0x3af970)]?.['id'] ?? _0x3bc12d['participantId'] ?? '';
|
|
1084
|
-
}
|
|
1085
|
-
function _0x3dab1f(_0x25b46e) {
|
|
1086
|
-
const _0x306a76 = _0x33c246;
|
|
1087
|
-
return _0x25b46e[_0x306a76(_0x2a4f80._0x4a8dc0)]?.[_0x306a76(0x1b8)] ?? _0x3f6c7e(_0x25b46e);
|
|
1088
|
-
}
|
|
1089
|
-
async function _0x3f6983(_0x3fce1f) {
|
|
1090
|
-
const _0x5ed6fb = _0x33c246, _0x327c9d = Math[_0x5ed6fb(_0x400e48._0x1b79e8)](_0x3fce1f['limit'] ?? 0x32, 0x64), _0x2f3c3c = await _0x92fd4(), _0x43e425 = new URLSearchParams();
|
|
1091
|
-
_0x43e425[_0x5ed6fb(0x198)](_0x5ed6fb(0x1cf), String(_0x327c9d));
|
|
1092
|
-
_0x3fce1f[_0x5ed6fb(_0x400e48._0x540ee2)] ? (_0x43e425[_0x5ed6fb(_0x400e48._0xc06128)](_0x5ed6fb(_0x400e48._0x540ee2), _0x3fce1f[_0x5ed6fb(0x1c8)]), _0x43e425[_0x5ed6fb(_0x400e48._0xc06128)](_0x5ed6fb(_0x400e48._0x28793d), _0x3fce1f[_0x5ed6fb(_0x400e48._0x2b7501)])) : _0x43e425['set']('channelId', _0x3fce1f[_0x5ed6fb(_0x400e48._0x2b7501)]);
|
|
1093
|
-
_0x3fce1f[_0x5ed6fb(_0x400e48._0x59c432)] && _0x43e425['set'](_0x5ed6fb(0x1c9), String(_0x3fce1f[_0x5ed6fb(_0x400e48._0x59c432)]));
|
|
1094
|
-
_0x3fce1f[_0x5ed6fb(0x12e)] !== void 0x0 && _0x43e425[_0x5ed6fb(_0x400e48._0x51a43a)](_0x5ed6fb(0x12e), String(_0x3fce1f[_0x5ed6fb(0x12e)]));
|
|
1095
|
-
const _0x5788a1 = await _0x379f74(_0x5ed6fb(_0x400e48._0x202d80) + _0x4fb4d6[_0x5ed6fb(_0x400e48._0x1a28d3)] + '/history?' + _0x43e425[_0x5ed6fb(_0x400e48._0xfd6704)](), {
|
|
1096
|
-
'headers': _0x181bf3,
|
|
1097
|
-
'method': _0x5ed6fb(_0x400e48._0x403467)
|
|
1098
|
-
}), _0x993665 = (_0x5788a1[_0x5ed6fb(0x24c)] ?? [])['map'](_0x48d554 => ({
|
|
1099
|
-
'attachments': (_0x48d554[_0x5ed6fb(0x196)] ?? [])[_0x5ed6fb(0x280)](_0x441d6a => ({
|
|
1100
|
-
'filename': _0x441d6a[_0x5ed6fb(0x236)] ?? _0x441d6a['id'],
|
|
1101
|
-
'id': _0x441d6a['id']
|
|
1102
|
-
})),
|
|
1103
|
-
'content': _0x48d554[_0x5ed6fb(0x18b)] ?? '',
|
|
1104
|
-
'createdAt': _0x48d554['createdAt'],
|
|
1105
|
-
..._0x48d554[_0x5ed6fb(0x109)] && _0x48d554[_0x5ed6fb(0x109)] !== _0x5ed6fb(0x172) ? { 'kind': _0x48d554['kind'] } : {},
|
|
1106
|
-
'messageId': _0x48d554['id'],
|
|
1107
|
-
'senderName': _0x182591(_0x48d554[_0x5ed6fb(0x199)], _0x2f3c3c),
|
|
1108
|
-
'senderType': _0x197210(_0x48d554['senderParticipantId'], _0x2f3c3c),
|
|
1109
|
-
'seq': _0x48d554[_0x5ed6fb(0x25d)] ?? 0x0
|
|
1110
|
-
}));
|
|
1111
|
-
return {
|
|
1112
|
-
'channel': _0x3fce1f[_0x5ed6fb(_0x400e48._0x3a950e)],
|
|
1113
|
-
'hasMore': _0x5788a1[_0x5ed6fb(_0x400e48._0x52cdca)]?.[_0x5ed6fb(0x271)] ?? ![],
|
|
1114
|
-
'messages': _0x993665,
|
|
1115
|
-
'nextCursor': _0x5788a1[_0x5ed6fb(_0x400e48._0x52cdca)]?.[_0x5ed6fb(_0x400e48._0x24aa79)]
|
|
1116
|
-
};
|
|
1117
|
-
}
|
|
1118
|
-
return {
|
|
1119
|
-
async 'sendMessage'(_0x551ebd) {
|
|
1120
|
-
const _0x3eda69 = _0x33c246, _0x28413f = await _0x15a709(_0x551ebd[_0x3eda69(0x1a0)]), _0x4e74dd = _0x551ebd[_0x3eda69(0x1ad)][_0x3eda69(0x1c1)]('@') ? extractMentionedParticipantIds(_0x551ebd[_0x3eda69(_0x30f93c._0x1ce058)], await _0x92fd4()) : [], _0x530a2a = await _0x379f74(_0x3eda69(0x1aa) + _0x4fb4d6[_0x3eda69(0x1b5)] + _0x3eda69(0x22f), {
|
|
1121
|
-
'body': JSON[_0x3eda69(_0x30f93c._0x3c07e6)]({
|
|
1122
|
-
'attachment_ids': _0x551ebd['attachmentIds'],
|
|
1123
|
-
'bodyMarkdown': _0x551ebd[_0x3eda69(0x1ad)],
|
|
1124
|
-
'channelId': _0x28413f[_0x3eda69(_0x30f93c._0x22dcc4)],
|
|
1125
|
-
..._0x4e74dd[_0x3eda69(_0x30f93c._0x44a451)] > 0x0 ? { 'mentionedParticipantIds': _0x4e74dd } : {},
|
|
1126
|
-
'threadId': _0x28413f[_0x3eda69(0x1c8)],
|
|
1127
|
-
..._0x551ebd[_0x3eda69(_0x30f93c._0x2ddfbe)] ? { 'visibility': _0x551ebd[_0x3eda69(0x262)] } : {}
|
|
1128
|
-
}),
|
|
1129
|
-
'headers': _0x181bf3,
|
|
1130
|
-
'method': _0x3eda69(0x1a8)
|
|
1131
|
-
});
|
|
1132
|
-
return { 'messageId': _0x530a2a[_0x3eda69(0x24c)]?.['id'] ?? '' };
|
|
1133
|
-
},
|
|
1134
|
-
async 'listSchedules'() {
|
|
1135
|
-
const _0x26262f = _0x33c246, _0x56f9f2 = await _0x379f74(_0x26262f(0x14c), {
|
|
1136
|
-
'headers': _0x181bf3,
|
|
1137
|
-
'method': _0x26262f(0x1a7)
|
|
1138
|
-
});
|
|
1139
|
-
return _0x56f9f2['data'] ?? [];
|
|
1140
|
-
},
|
|
1141
|
-
async 'claimScheduleRun'(_0xc3b425) {
|
|
1142
|
-
const _0x5ae780 = _0x33c246, _0x5f5e12 = await _0x379f74(_0x5ae780(_0x17a358._0x3cb6cf), {
|
|
1143
|
-
'body': JSON['stringify'](_0xc3b425),
|
|
1144
|
-
'headers': _0x181bf3,
|
|
1145
|
-
'method': _0x5ae780(0x1a8)
|
|
1146
|
-
});
|
|
1147
|
-
return _0x5f5e12[_0x5ae780(0x24c)] ?? {
|
|
1148
|
-
'granted': ![],
|
|
1149
|
-
'runId': null,
|
|
1150
|
-
'schedule': null,
|
|
1151
|
-
'scheduledFor': _0xc3b425['scheduledFor']
|
|
1152
|
-
};
|
|
1153
|
-
},
|
|
1154
|
-
async 'startScheduleRun'(_0x1c2726) {
|
|
1155
|
-
const _0xe077bf = _0x33c246, _0x3bc295 = await _0x379f74(_0xe077bf(0x246) + encodeURIComponent(_0x1c2726[_0xe077bf(0x1a3)]) + _0xe077bf(_0x53d82a._0x1f566a), {
|
|
1156
|
-
'body': JSON[_0xe077bf(_0x53d82a._0x48d3df)]({}),
|
|
1157
|
-
'headers': _0x181bf3,
|
|
1158
|
-
'method': _0xe077bf(0x1a8)
|
|
1159
|
-
});
|
|
1160
|
-
return _0x3bc295[_0xe077bf(0x24c)] ?? {
|
|
1161
|
-
'claimedByDaemonId': '',
|
|
1162
|
-
'id': _0x1c2726['runId'],
|
|
1163
|
-
'scheduleId': '',
|
|
1164
|
-
'status': _0xe077bf(_0x53d82a._0x1715f2)
|
|
1165
|
-
};
|
|
1166
|
-
},
|
|
1167
|
-
async 'finishScheduleRun'(_0x27b1b1) {
|
|
1168
|
-
const _0x4a70b0 = _0x33c246, _0x777f10 = await _0x379f74('/api/internal/schedules/' + encodeURIComponent(_0x27b1b1['runId']) + _0x4a70b0(0x167), {
|
|
1169
|
-
'body': JSON['stringify']({
|
|
1170
|
-
'error': _0x27b1b1['error'],
|
|
1171
|
-
'resultJson': _0x27b1b1[_0x4a70b0(0x1cb)],
|
|
1172
|
-
'status': _0x27b1b1['status']
|
|
1173
|
-
}),
|
|
1174
|
-
'headers': _0x181bf3,
|
|
1175
|
-
'method': _0x4a70b0(_0x1ead70._0x5bd7fb)
|
|
1176
|
-
});
|
|
1177
|
-
return _0x777f10[_0x4a70b0(_0x1ead70._0xc4fd48)] ?? {
|
|
1178
|
-
'nextRunAt': null,
|
|
1179
|
-
'run': {
|
|
1180
|
-
'claimedByDaemonId': '',
|
|
1181
|
-
'id': _0x27b1b1[_0x4a70b0(0x1a3)],
|
|
1182
|
-
'scheduleId': '',
|
|
1183
|
-
'status': _0x27b1b1[_0x4a70b0(0x269)]
|
|
1184
|
-
}
|
|
1185
|
-
};
|
|
1186
|
-
},
|
|
1187
|
-
async 'listTasks'(_0x1864b0) {
|
|
1188
|
-
const _0x5bdb51 = _0x33c246, _0x5ac784 = new URLSearchParams();
|
|
1189
|
-
return _0x5ac784[_0x5bdb51(_0x19e506._0x2472ce)](_0x5bdb51(0x139), _0x1864b0[_0x5bdb51(0x139)]), _0x1864b0[_0x5bdb51(_0x19e506._0x3f0ee5)] && _0x5ac784[_0x5bdb51(_0x19e506._0x2472ce)](_0x5bdb51(_0x19e506._0x3af8d7), _0x1864b0[_0x5bdb51(_0x19e506._0x3af8d7)]), _0x3eec24(_0x5bdb51(0x1aa) + _0x4fb4d6[_0x5bdb51(0x1b5)] + _0x5bdb51(_0x19e506._0x187346) + _0x5ac784[_0x5bdb51(_0x19e506._0x9e19b7)](), {
|
|
1190
|
-
'headers': _0x181bf3,
|
|
1191
|
-
'method': _0x5bdb51(_0x19e506._0xc4653d)
|
|
1192
|
-
});
|
|
1193
|
-
},
|
|
1194
|
-
async 'createTasks'(_0x5f33bc) {
|
|
1195
|
-
const _0x272973 = _0x33c246;
|
|
1196
|
-
return _0x3eec24(_0x272973(_0x534b3e._0xf885d1) + _0x4fb4d6[_0x272973(_0x534b3e._0x428dda)] + _0x272973(0x1f8), {
|
|
1197
|
-
'body': JSON[_0x272973(0x14f)]({
|
|
1198
|
-
..._0x5f33bc,
|
|
1199
|
-
'idempotency_key': _0x3c3126(_0x272973(0x131), _0x5f33bc)
|
|
1200
|
-
}),
|
|
1201
|
-
'headers': _0x181bf3,
|
|
1202
|
-
'method': 'POST'
|
|
1203
|
-
});
|
|
1204
|
-
},
|
|
1205
|
-
async 'claimTasks'(_0x4decc9) {
|
|
1206
|
-
const _0x1f1864 = _0x33c246;
|
|
1207
|
-
return _0x3eec24(_0x1f1864(0x1aa) + _0x4fb4d6[_0x1f1864(0x1b5)] + '/tasks/claim', {
|
|
1208
|
-
'body': JSON[_0x1f1864(0x14f)]({
|
|
1209
|
-
..._0x4decc9,
|
|
1210
|
-
'idempotency_key': _0x3c3126('claim_tasks', _0x4decc9)
|
|
1211
|
-
}),
|
|
1212
|
-
'headers': _0x181bf3,
|
|
1213
|
-
'method': _0x1f1864(0x1a8)
|
|
1214
|
-
});
|
|
1215
|
-
},
|
|
1216
|
-
async 'unclaimTask'(_0x5609d1) {
|
|
1217
|
-
const _0x36fe69 = _0x33c246;
|
|
1218
|
-
return _0x3eec24(_0x36fe69(0x1aa) + _0x4fb4d6[_0x36fe69(0x1b5)] + _0x36fe69(0x1ea), {
|
|
1219
|
-
'body': JSON[_0x36fe69(0x14f)]({
|
|
1220
|
-
..._0x5609d1,
|
|
1221
|
-
'idempotency_key': _0x3c3126(_0x36fe69(0x27b), _0x5609d1)
|
|
1222
|
-
}),
|
|
1223
|
-
'headers': _0x181bf3,
|
|
1224
|
-
'method': _0x36fe69(0x1a8)
|
|
1225
|
-
});
|
|
1226
|
-
},
|
|
1227
|
-
async 'updateTaskStatus'(_0x408cde) {
|
|
1228
|
-
const _0x3092eb = _0x33c246;
|
|
1229
|
-
return _0x3eec24('/internal/agent/' + _0x4fb4d6[_0x3092eb(_0x196c20._0x141381)] + _0x3092eb(_0x196c20._0x530642), {
|
|
1230
|
-
'body': JSON[_0x3092eb(_0x196c20._0x28ac1b)]({
|
|
1231
|
-
..._0x408cde,
|
|
1232
|
-
'idempotency_key': _0x3c3126(_0x3092eb(0x121), _0x408cde)
|
|
1233
|
-
}),
|
|
1234
|
-
'headers': _0x181bf3,
|
|
1235
|
-
'method': _0x3092eb(0x1a8)
|
|
1236
|
-
});
|
|
1237
|
-
},
|
|
1238
|
-
async 'uploadFile'(_0x5d5a57) {
|
|
1239
|
-
const _0x12352b = _0x33c246, _0x4425d1 = await _0x15a709(_0x5d5a57[_0x12352b(0x139)]);
|
|
1240
|
-
if (_0x4425d1[_0x12352b(_0x11c2b5._0x5911a1)])
|
|
1241
|
-
throw new Error(_0x12352b(0x11b));
|
|
1242
|
-
const _0x52e813 = await _0x379f74(_0x12352b(_0x11c2b5._0x5dee79) + _0x4fb4d6[_0x12352b(_0x11c2b5._0x457e72)] + '/upload', {
|
|
1243
|
-
'body': JSON[_0x12352b(_0x11c2b5._0x4d3b23)]({
|
|
1244
|
-
'channel': _0x4425d1['target'],
|
|
1245
|
-
'contentBase64': _0x5d5a57[_0x12352b(_0x11c2b5._0x3d4304)],
|
|
1246
|
-
'contentType': _0x5d5a57[_0x12352b(0x113)],
|
|
1247
|
-
'originalFilename': _0x5d5a57[_0x12352b(_0x11c2b5._0x599b88)]
|
|
1248
|
-
}),
|
|
1249
|
-
'headers': _0x181bf3,
|
|
1250
|
-
'method': 'POST'
|
|
1251
|
-
});
|
|
1252
|
-
return {
|
|
1253
|
-
'attachmentId': _0x52e813[_0x12352b(0x24c)]?.['id'] ?? '',
|
|
1254
|
-
'filename': _0x52e813[_0x12352b(_0x11c2b5._0x5e8709)]?.[_0x12352b(0x27f)] ?? _0x5d5a57[_0x12352b(_0x11c2b5._0x599b88)],
|
|
1255
|
-
'sizeBytes': _0x52e813[_0x12352b(0x24c)]?.[_0x12352b(0x100)] ?? 0x0
|
|
1256
|
-
};
|
|
1257
|
-
},
|
|
1258
|
-
async 'downloadAttachment'(_0xd4f184) {
|
|
1259
|
-
const _0x5506f7 = _0x33c246, _0x5e2639 = await _0x379f74('/api/attachments/' + _0xd4f184, {
|
|
1260
|
-
'headers': _0x181bf3,
|
|
1261
|
-
'method': _0x5506f7(_0x21d68f._0x2a011f)
|
|
1262
|
-
}), _0x54a334 = new AbortController(), _0x57db24 = setTimeout(() => _0x54a334[_0x5506f7(0x112)](), _0x2e6833);
|
|
1263
|
-
try {
|
|
1264
|
-
const _0x3a8e15 = await _0x4ed19f(_0x10d87e + _0x5506f7(_0x21d68f._0x595bbb) + _0xd4f184 + _0x5506f7(_0x21d68f._0x5e1562), {
|
|
1265
|
-
'headers': _0x181bf3,
|
|
1266
|
-
'method': _0x5506f7(0x1a7),
|
|
1267
|
-
'signal': _0x54a334[_0x5506f7(_0x21d68f._0x126b97)]
|
|
1268
|
-
});
|
|
1269
|
-
if (!_0x3a8e15['ok'])
|
|
1270
|
-
throw new Error(_0x5506f7(0x267) + _0x3a8e15[_0x5506f7(_0x21d68f._0x250000)]);
|
|
1271
|
-
return {
|
|
1272
|
-
'contentType': _0x5e2639[_0x5506f7(0x24c)]?.[_0x5506f7(0x113)] ?? _0x3a8e15[_0x5506f7(0x24f)][_0x5506f7(_0x21d68f._0x2272c0)](_0x5506f7(_0x21d68f._0x2eb11f)) ?? 'application/octet-stream',
|
|
1273
|
-
'data': Buffer[_0x5506f7(0x230)](await _0x3a8e15[_0x5506f7(_0x21d68f._0x3d767a)]()),
|
|
1274
|
-
'originalFilename': _0x5e2639[_0x5506f7(0x24c)]?.['originalFilename']
|
|
1275
|
-
};
|
|
1276
|
-
} finally {
|
|
1277
|
-
clearTimeout(_0x57db24);
|
|
1278
|
-
}
|
|
1279
|
-
},
|
|
1280
|
-
async 'listServer'() {
|
|
1281
|
-
return _0x92fd4({ 'forceRefresh': !![] });
|
|
1282
|
-
},
|
|
1283
|
-
async 'getLatestEventSeq'() {
|
|
1284
|
-
const _0x4c98a6 = _0x33c246, _0x540963 = new URLSearchParams();
|
|
1285
|
-
_0x540963[_0x4c98a6(_0x1038d2._0x20b8ab)](_0x4c98a6(0x1ec), '0'), _0x540963[_0x4c98a6(0x198)](_0x4c98a6(0x1cf), '1');
|
|
1286
|
-
const _0xea9956 = await _0x379f74(_0x4c98a6(0x1aa) + _0x4fb4d6[_0x4c98a6(_0x1038d2._0x4be780)] + _0x4c98a6(_0x1038d2._0x5a45ef) + _0x540963[_0x4c98a6(0x145)](), {
|
|
1287
|
-
'headers': _0x181bf3,
|
|
1288
|
-
'method': 'GET'
|
|
1289
|
-
}), _0x58c50f = _0xea9956[_0x4c98a6(0x1e0)]?.[_0x4c98a6(0x274)];
|
|
1290
|
-
return typeof _0x58c50f === _0x4c98a6(_0x1038d2._0x1d3acd) && _0x58c50f > 0x0 ? _0x58c50f : 0x0;
|
|
1291
|
-
},
|
|
1292
|
-
async 'readHistory'(_0x2c86d8) {
|
|
1293
|
-
const _0x543114 = _0x33c246, _0x4d3680 = await _0x15a709(_0x2c86d8[_0x543114(_0x405421._0x5481ad)]);
|
|
1294
|
-
return _0x3f6983({
|
|
1295
|
-
'after': _0x2c86d8['after'],
|
|
1296
|
-
'before': _0x2c86d8[_0x543114(_0x405421._0x4ea879)],
|
|
1297
|
-
'channelId': _0x4d3680[_0x543114(0x1ef)],
|
|
1298
|
-
'channelTarget': _0x4d3680['target'],
|
|
1299
|
-
'limit': _0x2c86d8[_0x543114(0x1cf)],
|
|
1300
|
-
'threadId': _0x4d3680[_0x543114(_0x405421._0x566924)]
|
|
1301
|
-
});
|
|
1302
|
-
},
|
|
1303
|
-
'resolveTarget': _0x15a709,
|
|
1304
|
-
async 'checkMessages'() {
|
|
1305
|
-
const _0x16c11d = _0x33c246, _0x179046 = new URLSearchParams();
|
|
1306
|
-
_0x179046[_0x16c11d(0x198)]('afterSeq', String(_0xc87b39));
|
|
1307
|
-
const _0x383e60 = _0x179046[_0x16c11d(_0x2b0a59._0x3cb7d9)](), _0x1c1d80 = await _0x379f74(_0x16c11d(0x1aa) + _0x4fb4d6[_0x16c11d(0x1b5)] + _0x16c11d(_0x2b0a59._0x1f7ad4) + (_0x383e60 ? '?' + _0x383e60 : ''), {
|
|
1308
|
-
'headers': _0x181bf3,
|
|
1309
|
-
'method': 'GET'
|
|
1310
|
-
}), _0x31f9d0 = _0x1c1d80[_0x16c11d(_0x2b0a59._0xa6e0f4)] ?? [], _0x1b858e = _0x1c1d80[_0x16c11d(0x1e0)]?.['cursor'], _0x37197b = _0x327bf5 ? _0x31f9d0['filter'](_0x2e40a7 => {
|
|
1311
|
-
const _0x448348 = _0x16c11d;
|
|
1312
|
-
if (_0x2e40a7['aggregateType'] !== _0x448348(0x143))
|
|
1313
|
-
return ![];
|
|
1314
|
-
return _0x2360b5(_0x327bf5, asRecord(_0x2e40a7[_0x448348(0x184)]));
|
|
1315
|
-
}) : _0x31f9d0, _0x4fe55c = _0x1b858e !== void 0x0 ? _0x327bf5 ? Math[_0x16c11d(0x250)](_0xc87b39, _0x37197b[_0x16c11d(0x1d4)] > 0x0 ? _0x37197b[_0x37197b[_0x16c11d(_0x2b0a59._0x599ffa)] - 0x1][_0x16c11d(_0x2b0a59._0x573005)] : _0xc87b39) : Math[_0x16c11d(_0x2b0a59._0x55ce31)](_0xc87b39, _0x1b858e) : _0x37197b[_0x16c11d(0x1d4)] > 0x0 ? Math['max'](_0xc87b39, _0x37197b[_0x37197b[_0x16c11d(_0x2b0a59._0x599ffa)] - 0x1][_0x16c11d(_0x2b0a59._0x2c3a15)]) : _0xc87b39, _0x235241 = (_0x327bf5 ? _0x37197b : _0x31f9d0)['filter'](_0x264f16 => _0x264f16[_0x16c11d(0x276)] === _0x16c11d(0x143));
|
|
1316
|
-
let _0x30fc57 = await _0x92fd4(), _0x568478 = new Map(_0x30fc57[_0x16c11d(_0x2b0a59._0x3559d1)]['map'](_0x42b4d4 => [
|
|
1317
|
-
_0x42b4d4['id'],
|
|
1318
|
-
_0x42b4d4
|
|
1319
|
-
]));
|
|
1320
|
-
const _0x4e2508 = _0x235241[_0x16c11d(_0x2b0a59._0x3788b9)](_0x5063ae => {
|
|
1321
|
-
const _0x191b10 = _0x16c11d, _0x4e2412 = asRecord(_0x5063ae[_0x191b10(0x184)]), _0x511ebf = typeof _0x4e2412?.[_0x191b10(0x1ef)] === _0x191b10(0x240) ? _0x4e2412[_0x191b10(_0x3a1d25._0x53b64e)] : '';
|
|
1322
|
-
return Boolean(_0x511ebf) && !_0x568478['has'](_0x511ebf);
|
|
1323
|
-
});
|
|
1324
|
-
_0x4e2508 && (_0x30fc57 = await _0x92fd4({ 'forceRefresh': !![] }), _0x568478 = new Map(_0x30fc57['channels']['map'](_0x338ae3 => [
|
|
1325
|
-
_0x338ae3['id'],
|
|
1326
|
-
_0x338ae3
|
|
1327
|
-
])));
|
|
1328
|
-
const _0x46fa83 = new Map();
|
|
1329
|
-
for (const _0xcbf82f of _0x235241) {
|
|
1330
|
-
const _0x5654a5 = asRecord(_0xcbf82f['payloadJson']), _0x3447ce = typeof _0x5654a5[_0x16c11d(0x1ef)] === _0x16c11d(_0x2b0a59._0x140d59) ? _0x5654a5[_0x16c11d(_0x2b0a59._0x173020)] : '';
|
|
1331
|
-
if (!_0x3447ce)
|
|
1332
|
-
continue;
|
|
1333
|
-
const _0x10d031 = typeof _0x5654a5[_0x16c11d(0x1c8)] === _0x16c11d(0x240) ? _0x5654a5['threadId'] : void 0x0, _0x432b07 = typeof _0x5654a5['rootMessageId'] === _0x16c11d(0x240) ? _0x5654a5[_0x16c11d(_0x2b0a59._0x366af4)] : void 0x0, _0x466d00 = typeof _0x5654a5[_0x16c11d(_0x2b0a59._0x4e69ed)] === _0x16c11d(0x203) && Number['isInteger'](_0x5654a5[_0x16c11d(0x1d5)]) ? _0x5654a5[_0x16c11d(0x1d5)] : void 0x0, _0x3860f5 = Boolean(_0x10d031 && (!_0x432b07 || _0xcbf82f[_0x16c11d(0x26e)] !== _0x432b07)), _0x375ca0 = _0x3860f5 ? _0x3447ce + ':' + _0x10d031 : _0x3447ce, _0xc531ea = _0x46fa83['get'](_0x375ca0) ?? {
|
|
1334
|
-
'aggregateIds': [],
|
|
1335
|
-
'channelId': _0x3447ce,
|
|
1336
|
-
'entries': new Map(),
|
|
1337
|
-
'isThreadReply': _0x3860f5,
|
|
1338
|
-
'rootMessageId': _0x432b07,
|
|
1339
|
-
'threadNumber': _0x466d00,
|
|
1340
|
-
'threadId': _0x3860f5 ? _0x10d031 : void 0x0
|
|
1341
|
-
};
|
|
1342
|
-
_0xc531ea[_0x16c11d(0x1d5)] == null && _0x466d00 != null && (_0xc531ea[_0x16c11d(0x1d5)] = _0x466d00), !_0xc531ea[_0x16c11d(0x266)] && _0x432b07 && (_0xc531ea[_0x16c11d(_0x2b0a59._0x31a130)] = _0x432b07), _0xc531ea['aggregateIds']['push'](_0xcbf82f['aggregateId']), _0xc531ea[_0x16c11d(_0x2b0a59._0x5aa3d9)][_0x16c11d(0x198)](_0xcbf82f[_0x16c11d(_0x2b0a59._0x364bb8)], {
|
|
1343
|
-
'payloadJson': _0xcbf82f[_0x16c11d(_0x2b0a59._0x242b73)],
|
|
1344
|
-
'seq': _0xcbf82f['seq']
|
|
1345
|
-
}), _0x46fa83[_0x16c11d(_0x2b0a59._0x328b08)](_0x375ca0, _0xc531ea);
|
|
1346
|
-
}
|
|
1347
|
-
const _0x16d9c2 = [];
|
|
1348
|
-
for (const _0x19e46e of _0x46fa83[_0x16c11d(_0x2b0a59._0x27c0cc)]()) {
|
|
1349
|
-
const {
|
|
1350
|
-
channelId: _0x1dbe99,
|
|
1351
|
-
threadId: _0x2d9130,
|
|
1352
|
-
rootMessageId: _0x3bf03b,
|
|
1353
|
-
threadNumber: _0x52cda7,
|
|
1354
|
-
aggregateIds: _0x793bde,
|
|
1355
|
-
isThreadReply: _0x5ccdec,
|
|
1356
|
-
entries: _0x302026
|
|
1357
|
-
} = _0x19e46e, _0x533e2e = _0x568478[_0x16c11d(0x25a)](_0x1dbe99), _0x1f8599 = _0x533e2e?.['name'] ?? _0x1dbe99, _0x1f0d8a = _0x533e2e?.[_0x16c11d(0x109)] === 'dm' ? _0x16c11d(0x12d) + _0x1f8599 : '#' + _0x1f8599, _0x165a7f = {
|
|
1358
|
-
'channelTarget': _0x1f0d8a,
|
|
1359
|
-
'rootMessageId': _0x3bf03b,
|
|
1360
|
-
'threadId': _0x2d9130,
|
|
1361
|
-
'threadNumber': _0x52cda7
|
|
1362
|
-
}, _0x3ddf59 = await _0x3f6983({
|
|
1363
|
-
'channelId': _0x1dbe99,
|
|
1364
|
-
'channelTarget': _0x1f0d8a,
|
|
1365
|
-
'limit': Math['max'](_0x793bde['length'], 0x32),
|
|
1366
|
-
'threadId': _0x2d9130
|
|
1367
|
-
}), _0x4e65b6 = new Map(_0x3ddf59[_0x16c11d(0x283)][_0x16c11d(_0x2b0a59._0x389c68)](_0x30bf0d => [
|
|
1368
|
-
_0x30bf0d[_0x16c11d(0x1cd)],
|
|
1369
|
-
_0x30bf0d
|
|
1370
|
-
])), _0x42a82a = _0x2d9130 ? _0x5f0c22(_0x165a7f) : _0x1f0d8a, _0x145ea3 = _0x327bf5 ? _0x5ccdec && _0x3e2908(_0x327bf5, _0x165a7f) : !![], _0x84ca25 = _0x5ccdec ? _0x145ea3 && _0x327bf5 ? _0x327bf5 : _0x42a82a : _0x1f0d8a;
|
|
1371
|
-
for (const _0x459751 of _0x793bde) {
|
|
1372
|
-
if (!_0x145ea3)
|
|
1373
|
-
continue;
|
|
1374
|
-
const _0x371a4f = _0x302026[_0x16c11d(0x25a)](_0x459751), _0x1c48c6 = _0x371a4f ? asRecord(_0x371a4f[_0x16c11d(0x184)]) : void 0x0, _0x588ef8 = _0x1c48c6?.[_0x16c11d(0x1a5)] === 'targeted', _0x42ad05 = _0x4e65b6[_0x16c11d(0x25a)](_0x459751);
|
|
1375
|
-
if (_0x42ad05) {
|
|
1376
|
-
_0x16d9c2[_0x16c11d(_0x2b0a59._0x56b677)]({
|
|
1377
|
-
'attachments': _0x42ad05[_0x16c11d(_0x2b0a59._0x5d6aa3)],
|
|
1378
|
-
'content': _0x42ad05[_0x16c11d(0x1ad)],
|
|
1379
|
-
'createdAt': _0x42ad05[_0x16c11d(0x21f)],
|
|
1380
|
-
..._0x42ad05[_0x16c11d(0x109)] ? { 'kind': _0x42ad05[_0x16c11d(0x109)] } : {},
|
|
1381
|
-
'messageId': _0x42ad05[_0x16c11d(0x1cd)],
|
|
1382
|
-
'senderName': _0x42ad05['senderName'],
|
|
1383
|
-
'senderType': _0x42ad05[_0x16c11d(0x14b)],
|
|
1384
|
-
'target': _0x84ca25,
|
|
1385
|
-
..._0x588ef8 ? { 'targetedTask': !![] } : {}
|
|
1386
|
-
});
|
|
1387
|
-
continue;
|
|
1388
|
-
}
|
|
1389
|
-
if (_0x371a4f) {
|
|
1390
|
-
const _0x5f95dd = typeof _0x1c48c6?.[_0x16c11d(0x199)] === _0x16c11d(_0x2b0a59._0x43e319) ? _0x1c48c6[_0x16c11d(0x199)] : '', _0x35b0fa = typeof _0x1c48c6?.[_0x16c11d(0x18b)] === _0x16c11d(_0x2b0a59._0x5efffd) ? _0x1c48c6['bodyMarkdown'] : '', _0x7751a8 = typeof _0x1c48c6?.[_0x16c11d(0x109)] === _0x16c11d(_0x2b0a59._0x140d59) && _0x1c48c6[_0x16c11d(_0x2b0a59._0x48fdd3)] !== _0x16c11d(_0x2b0a59._0xd09ea1) ? _0x1c48c6[_0x16c11d(0x109)] : void 0x0;
|
|
1391
|
-
_0x5f95dd && _0x35b0fa && _0x16d9c2[_0x16c11d(_0x2b0a59._0x56b677)]({
|
|
1392
|
-
'attachments': [],
|
|
1393
|
-
'content': _0x35b0fa,
|
|
1394
|
-
'createdAt': new Date()['toISOString'](),
|
|
1395
|
-
..._0x7751a8 ? { 'kind': _0x7751a8 } : {},
|
|
1396
|
-
'messageId': _0x459751,
|
|
1397
|
-
'senderName': _0x182591(_0x5f95dd, _0x30fc57),
|
|
1398
|
-
'senderType': _0x197210(_0x5f95dd, _0x30fc57),
|
|
1399
|
-
'target': _0x84ca25,
|
|
1400
|
-
..._0x588ef8 ? { 'targetedTask': !![] } : {}
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
}
|
|
1404
|
-
}
|
|
1405
|
-
if (_0x4fe55c > 0x0) {
|
|
1406
|
-
if (_0x4b10f6)
|
|
1407
|
-
await _0xea8f84(_0x4fe55c);
|
|
1408
|
-
else
|
|
1409
|
-
_0x4b103e && await _0x116268(_0x4fe55c);
|
|
1410
|
-
}
|
|
1411
|
-
return _0x4fe55c > _0xc87b39 && (_0xc87b39 = _0x4fe55c), { 'messages': _0x16d9c2 };
|
|
1412
|
-
}
|
|
1456
|
+
_0x56dc = function () {
|
|
1457
|
+
return _0x27543e;
|
|
1413
1458
|
};
|
|
1459
|
+
return _0x56dc();
|
|
1414
1460
|
}
|
|
1415
|
-
function
|
|
1416
|
-
const
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
const _0x366cb7 = { _0x5cd462: 0x1a6 }, _0x2e1cf4 = {
|
|
1430
|
-
_0x3a3e1f: 0x1c3,
|
|
1431
|
-
_0x269838: 0x193,
|
|
1432
|
-
_0x597563: 0x196
|
|
1433
|
-
}, _0x4e7dbf = _0x548baf;
|
|
1434
|
-
if (_0x5b3351['length'] === 0x0)
|
|
1435
|
-
return _0x4e7dbf(0x234);
|
|
1436
|
-
return _0x5b3351['map'](_0xa5e0a4 => {
|
|
1437
|
-
const _0xdef18f = _0x4e7dbf, _0x226bde = _0xa5e0a4[_0xdef18f(0x14b)] === _0xdef18f(0x16a) ? _0xdef18f(_0x2e1cf4._0x3a3e1f) : '', _0x173bfb = _0xa5e0a4['kind'] && _0xa5e0a4['kind'] !== _0xdef18f(0x172) ? _0xdef18f(0x1f7) + _0xa5e0a4[_0xdef18f(0x109)] : '';
|
|
1438
|
-
return _0xdef18f(0x1fc) + _0xa5e0a4['target'] + _0xdef18f(_0x2e1cf4._0x269838) + _0xa5e0a4[_0xdef18f(0x1cd)][_0xdef18f(0x14a)](0x0, 0x8) + _0xdef18f(0x160) + toLocalTime(_0xa5e0a4[_0xdef18f(0x21f)]) + _0x226bde + _0x173bfb + _0xdef18f(0x1bd) + _0xa5e0a4[_0xdef18f(0x164)] + ':\x20' + _0xa5e0a4['content'] + formatAttachmentSuffix(_0xa5e0a4[_0xdef18f(_0x2e1cf4._0x597563)]);
|
|
1439
|
-
})[_0x4e7dbf(_0x366cb7._0x5cd462)]('\x0a');
|
|
1440
|
-
}
|
|
1441
|
-
function formatHistory(_0x34844c) {
|
|
1442
|
-
const _0x1d33b5 = {
|
|
1443
|
-
_0x594678: 0x283,
|
|
1444
|
-
_0x40e712: 0x1d4,
|
|
1445
|
-
_0x2d312f: 0x133,
|
|
1446
|
-
_0x39224f: 0x139,
|
|
1447
|
-
_0x1b5a5a: 0x216,
|
|
1448
|
-
_0x4c54eb: 0x280,
|
|
1449
|
-
_0x35a277: 0x126,
|
|
1450
|
-
_0x17528c: 0x10c
|
|
1451
|
-
}, _0x4679da = {
|
|
1452
|
-
_0x246809: 0x172,
|
|
1453
|
-
_0x2b0a8e: 0x109,
|
|
1454
|
-
_0x452a4d: 0x1c4,
|
|
1455
|
-
_0x3f4f15: 0x193,
|
|
1456
|
-
_0x328b11: 0x1ad,
|
|
1457
|
-
_0x22be95: 0x196
|
|
1458
|
-
}, _0x14cfd9 = _0x548baf;
|
|
1459
|
-
if (_0x34844c[_0x14cfd9(_0x1d33b5._0x594678)][_0x14cfd9(_0x1d33b5._0x40e712)] === 0x0)
|
|
1460
|
-
return _0x14cfd9(_0x1d33b5._0x2d312f) + _0x34844c[_0x14cfd9(_0x1d33b5._0x39224f)] + _0x14cfd9(_0x1d33b5._0x1b5a5a);
|
|
1461
|
-
const _0x2dc70a = _0x34844c[_0x14cfd9(0x283)][_0x14cfd9(_0x1d33b5._0x4c54eb)](_0x4b0059 => {
|
|
1462
|
-
const _0x48680d = _0x14cfd9, _0x3d7713 = _0x4b0059[_0x48680d(0x14b)] === _0x48680d(0x16a) ? _0x48680d(0x1c3) : '', _0x1bf0ab = _0x4b0059['kind'] && _0x4b0059[_0x48680d(0x109)] !== _0x48680d(_0x4679da._0x246809) ? '\x20kind=' + _0x4b0059[_0x48680d(_0x4679da._0x2b0a8e)] : '';
|
|
1463
|
-
return _0x48680d(_0x4679da._0x452a4d) + _0x4b0059[_0x48680d(0x11d)] + _0x48680d(_0x4679da._0x3f4f15) + _0x4b0059[_0x48680d(0x1cd)] + _0x48680d(0x160) + toLocalTime(_0x4b0059[_0x48680d(0x21f)]) + _0x3d7713 + _0x1bf0ab + _0x48680d(0x1bd) + _0x4b0059[_0x48680d(0x164)] + ':\x20' + _0x4b0059[_0x48680d(_0x4679da._0x328b11)] + formatAttachmentSuffix(_0x4b0059[_0x48680d(_0x4679da._0x22be95)]);
|
|
1464
|
-
})['join']('\x0a'), _0x177c14 = _0x34844c[_0x14cfd9(0x271)] && _0x34844c[_0x14cfd9(_0x1d33b5._0x35a277)] ? _0x14cfd9(0x1bc) + _0x34844c['messages'][_0x14cfd9(_0x1d33b5._0x40e712)] + _0x14cfd9(_0x1d33b5._0x17528c) + _0x34844c['nextCursor'] + _0x14cfd9(0x23e) : '';
|
|
1465
|
-
return _0x14cfd9(_0x1d33b5._0x2d312f) + _0x34844c[_0x14cfd9(_0x1d33b5._0x39224f)] + '\x20(' + _0x34844c['messages'][_0x14cfd9(0x1d4)] + '\x20messages)\x0a\x0a' + _0x2dc70a + _0x177c14;
|
|
1466
|
-
}
|
|
1467
|
-
function formatServerDirectory(_0x5b1f7e) {
|
|
1468
|
-
const _0x233896 = {
|
|
1469
|
-
_0x581d29: 0x1d4,
|
|
1470
|
-
_0x524787: 0x18f,
|
|
1471
|
-
_0x596a46: 0x1e4,
|
|
1472
|
-
_0x57d0e2: 0x1a6,
|
|
1473
|
-
_0x8eb358: 0x18f,
|
|
1474
|
-
_0x1be9c5: 0x19e
|
|
1475
|
-
}, _0xec5130 = _0x548baf, _0x21fb2c = _0x5b1f7e[_0xec5130(0x209)][_0xec5130(_0x233896._0x581d29)] > 0x0 ? _0x5b1f7e[_0xec5130(0x209)]['map'](_0x513d3a => _0x513d3a[_0xec5130(0x237)] ? _0xec5130(0x194) + _0x513d3a[_0xec5130(0x1b8)] + '\x20—\x20' + _0x513d3a[_0xec5130(0x237)] : _0xec5130(0x194) + _0x513d3a[_0xec5130(0x1b8)])[_0xec5130(0x1a6)]('\x0a') : _0xec5130(_0x233896._0x524787), _0x492781 = _0x5b1f7e[_0xec5130(_0x233896._0x596a46)][_0xec5130(0x1d4)] > 0x0 ? _0x5b1f7e[_0xec5130(0x1e4)][_0xec5130(0x280)](_0x323e32 => _0xec5130(0x128) + _0x323e32[_0xec5130(0x1b8)])[_0xec5130(_0x233896._0x57d0e2)]('\x0a') : _0xec5130(_0x233896._0x524787), _0x411788 = _0x5b1f7e[_0xec5130(0x1c0)][_0xec5130(_0x233896._0x581d29)] > 0x0 ? _0x5b1f7e[_0xec5130(0x1c0)]['map'](_0x4258bc => _0xec5130(0x128) + _0x4258bc['name'])['join']('\x0a') : _0xec5130(_0x233896._0x8eb358);
|
|
1461
|
+
function formatServerDirectory(_0x583817) {
|
|
1462
|
+
const _0x41b454 = {
|
|
1463
|
+
_0x458069: 0x13b,
|
|
1464
|
+
_0x51c1af: 0x235,
|
|
1465
|
+
_0x561fbe: 0x182,
|
|
1466
|
+
_0xf7bcce: 0x14f,
|
|
1467
|
+
_0x1cd76e: 0x1f6,
|
|
1468
|
+
_0x1392cd: 0x21d,
|
|
1469
|
+
_0x12a57c: 0x14f,
|
|
1470
|
+
_0x872bf4: 0x10a,
|
|
1471
|
+
_0x3b32a8: 0xee,
|
|
1472
|
+
_0x5ac680: 0xfc,
|
|
1473
|
+
_0x4aae56: 0x21e
|
|
1474
|
+
}, _0x2c55da = _0x3b2449, _0x964531 = _0x583817['channels'][_0x2c55da(_0x41b454._0x458069)] > 0x0 ? _0x583817[_0x2c55da(_0x41b454._0x51c1af)][_0x2c55da(_0x41b454._0x561fbe)](_0x5615be => _0x5615be[_0x2c55da(0x15b)] ? _0x2c55da(0x151) + _0x5615be[_0x2c55da(0x1fa)] + _0x2c55da(0x14b) + _0x5615be[_0x2c55da(0x15b)] : _0x2c55da(0x151) + _0x5615be[_0x2c55da(0x1fa)])[_0x2c55da(_0x41b454._0xf7bcce)]('\x0a') : _0x2c55da(_0x41b454._0x1cd76e), _0x37a3c5 = _0x583817[_0x2c55da(_0x41b454._0x1392cd)]['length'] > 0x0 ? _0x583817[_0x2c55da(0x21d)][_0x2c55da(0x182)](_0x35a285 => _0x2c55da(0x16e) + _0x35a285['name'])[_0x2c55da(_0x41b454._0x12a57c)]('\x0a') : '(none)', _0x48b948 = _0x583817[_0x2c55da(0x10a)]['length'] > 0x0 ? _0x583817[_0x2c55da(_0x41b454._0x872bf4)][_0x2c55da(_0x41b454._0x561fbe)](_0x556d47 => '-\x20@' + _0x556d47['name'])[_0x2c55da(0x14f)]('\x0a') : '(none)';
|
|
1476
1475
|
return [
|
|
1477
|
-
|
|
1476
|
+
_0x2c55da(0x219) + _0x583817[_0x2c55da(_0x41b454._0x3b32a8)],
|
|
1478
1477
|
'',
|
|
1479
|
-
|
|
1480
|
-
|
|
1478
|
+
_0x2c55da(_0x41b454._0x5ac680),
|
|
1479
|
+
_0x964531,
|
|
1481
1480
|
'',
|
|
1482
|
-
|
|
1483
|
-
|
|
1481
|
+
_0x2c55da(_0x41b454._0x4aae56),
|
|
1482
|
+
_0x37a3c5,
|
|
1484
1483
|
'',
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
][
|
|
1484
|
+
_0x2c55da(0x210),
|
|
1485
|
+
_0x48b948
|
|
1486
|
+
][_0x2c55da(_0x41b454._0x12a57c)]('\x0a');
|
|
1488
1487
|
}
|
|
1489
|
-
function formatUploadResult(
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1488
|
+
function formatUploadResult(_0x4cc468) {
|
|
1489
|
+
const _0x1ecb60 = {
|
|
1490
|
+
_0x6b8853: 0xd8,
|
|
1491
|
+
_0x32af88: 0x237,
|
|
1492
|
+
_0x45e2ba: 0x256,
|
|
1493
|
+
_0x4566d8: 0xdf,
|
|
1494
|
+
_0x1ec7b8: 0x18e
|
|
1495
|
+
}, _0x4dcda8 = _0x3b2449;
|
|
1496
|
+
return _0x4dcda8(_0x1ecb60._0x6b8853) + _0x4cc468[_0x4dcda8(_0x1ecb60._0x32af88)] + '\x20(' + (_0x4cc468[_0x4dcda8(_0x1ecb60._0x45e2ba)] / 0x400)[_0x4dcda8(_0x1ecb60._0x4566d8)](0x1) + 'KB)\x0aAttachment\x20ID:\x20' + _0x4cc468[_0x4dcda8(_0x1ecb60._0x1ec7b8)] + '\x0a\x0aUse\x20this\x20ID\x20in\x20send_message\x27s\x20attachment_ids\x20parameter\x20to\x20include\x20it\x20in\x20a\x20message.';
|
|
1496
1497
|
}
|
|
1497
|
-
function formatViewFileResult(
|
|
1498
|
-
const
|
|
1499
|
-
return
|
|
1498
|
+
function formatViewFileResult(_0x2b29a2, _0x32d3c4) {
|
|
1499
|
+
const _0x5154a8 = { _0x50f41e: 0x217 }, _0x39f013 = _0x3b2449;
|
|
1500
|
+
return _0x32d3c4 ? _0x39f013(_0x5154a8._0x50f41e) + _0x2b29a2 : 'Downloaded\x20to:\x20' + _0x2b29a2;
|
|
1500
1501
|
}
|
|
1501
|
-
function formatTaskList(
|
|
1502
|
-
const
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1502
|
+
function formatTaskList(_0x2b1b09, _0x150534) {
|
|
1503
|
+
const _0x4a8237 = {
|
|
1504
|
+
_0x32ba71: 0x239,
|
|
1505
|
+
_0x3cbf4c: 0x14f
|
|
1506
|
+
}, _0x17bc11 = {
|
|
1507
|
+
_0x4887c4: 0x257,
|
|
1508
|
+
_0xa85eb7: 0x146,
|
|
1509
|
+
_0x329f61: 0x1cf,
|
|
1510
|
+
_0xc914ec: 0x106,
|
|
1511
|
+
_0x4ab419: 0x146,
|
|
1512
|
+
_0x12cc8c: 0x240,
|
|
1513
|
+
_0x368812: 0x115,
|
|
1514
|
+
_0xde3386: 0x146,
|
|
1515
|
+
_0x12e403: 0x1cd,
|
|
1516
|
+
_0xfe473c: 0x144,
|
|
1517
|
+
_0x1ee261: 0x1d5
|
|
1518
|
+
}, _0x566524 = _0x3b2449;
|
|
1519
|
+
if (_0x2b1b09[_0x566524(0x13b)] === 0x0)
|
|
1520
|
+
return _0x566524(_0x4a8237._0x32ba71);
|
|
1521
|
+
return _0x2b1b09['map'](_0x1f6bd0 => {
|
|
1522
|
+
const _0xd23321 = _0x566524, _0x3fa762 = _0x1f6bd0[_0xd23321(0x146)] == null ? _0xd23321(_0x17bc11._0x4887c4) : _0x1f6bd0[_0xd23321(0x240)] != null ? '#' + _0x1f6bd0[_0xd23321(0x146)] + '.' + _0x1f6bd0[_0xd23321(0x240)] : '#' + _0x1f6bd0[_0xd23321(_0x17bc11._0xa85eb7)], _0x17047c = _0x1f6bd0['messageId'] ? _0xd23321(_0x17bc11._0x329f61) + _0x1f6bd0[_0xd23321(_0x17bc11._0xc914ec)] : '', _0x308baf = _0x150534 && _0x1f6bd0[_0xd23321(_0x17bc11._0x4ab419)] != null && !_0x1f6bd0[_0xd23321(_0x17bc11._0x12cc8c)] && _0x150534[_0xd23321(_0x17bc11._0x368812)](_0x1f6bd0[_0xd23321(_0x17bc11._0xde3386)]) ? _0xd23321(0x1bc) : '', _0x4efc43 = _0x1f6bd0[_0xd23321(_0x17bc11._0x12e403)] != null && _0x1f6bd0['childrenTotal'] > 0x0 ? '\x20(' + (_0x1f6bd0['childrenDone'] ?? 0x0) + '/' + _0x1f6bd0[_0xd23321(0x1cd)] + _0xd23321(0x12b) : '', _0x2df640 = _0x1f6bd0['assigneeName'] ? _0xd23321(_0x17bc11._0xfe473c) + _0x1f6bd0['assigneeName'] : '';
|
|
1523
|
+
return _0x3fa762 + '\x20[' + _0x1f6bd0[_0xd23321(_0x17bc11._0x1ee261)] + ']\x20' + _0x1f6bd0[_0xd23321(0x12e)] + _0x4efc43 + _0x2df640 + _0x17047c + _0x308baf;
|
|
1524
|
+
})[_0x566524(_0x4a8237._0x3cbf4c)]('\x0a');
|
|
1519
1525
|
}
|
|
1520
|
-
function formatCreatedTasks(
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1526
|
+
function formatCreatedTasks(_0xe93216) {
|
|
1527
|
+
const _0x222d2b = {
|
|
1528
|
+
_0x2e9521: 0x13b,
|
|
1529
|
+
_0x43423f: 0x182,
|
|
1530
|
+
_0x3a9ab4: 0x14f
|
|
1531
|
+
}, _0x4a7dac = {
|
|
1532
|
+
_0x1d764d: 0x257,
|
|
1533
|
+
_0x34827a: 0x240,
|
|
1534
|
+
_0x2cd2eb: 0x1cf
|
|
1535
|
+
}, _0x4c00b0 = _0x3b2449;
|
|
1536
|
+
if (_0xe93216[_0x4c00b0(_0x222d2b._0x2e9521)] === 0x0)
|
|
1537
|
+
return 'No\x20tasks\x20created.';
|
|
1538
|
+
return _0xe93216[_0x4c00b0(_0x222d2b._0x43423f)](_0x4622b5 => {
|
|
1539
|
+
const _0x528c55 = _0x4c00b0, _0x11b804 = _0x4622b5[_0x528c55(0x146)] == null ? _0x528c55(_0x4a7dac._0x1d764d) : _0x4622b5[_0x528c55(0x240)] != null ? '#' + _0x4622b5['taskNumber'] + '.' + _0x4622b5[_0x528c55(_0x4a7dac._0x34827a)] : '#' + _0x4622b5[_0x528c55(0x146)], _0x4a6535 = _0x4622b5['messageId'] ? _0x528c55(_0x4a7dac._0x2cd2eb) + _0x4622b5[_0x528c55(0x106)] : '';
|
|
1540
|
+
return _0x11b804 + '\x20' + _0x4622b5[_0x528c55(0x12e)] + _0x4a6535;
|
|
1541
|
+
})[_0x4c00b0(_0x222d2b._0x3a9ab4)]('\x0a');
|
|
1531
1542
|
}
|
|
1532
|
-
function formatClaimTaskLabel(
|
|
1533
|
-
if (
|
|
1543
|
+
function formatClaimTaskLabel(_0x288361, _0x29bed7) {
|
|
1544
|
+
if (_0x288361 == null)
|
|
1534
1545
|
return '(legacy)';
|
|
1535
|
-
return
|
|
1546
|
+
return _0x29bed7 != null ? '#' + _0x288361 + '.' + _0x29bed7 : '#' + _0x288361;
|
|
1536
1547
|
}
|
|
1537
|
-
function formatClaimTaskResults(
|
|
1538
|
-
const
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
},
|
|
1554
|
-
if (
|
|
1555
|
-
return
|
|
1556
|
-
return
|
|
1557
|
-
const
|
|
1558
|
-
if (
|
|
1559
|
-
const
|
|
1560
|
-
if (
|
|
1561
|
-
const
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
][
|
|
1568
|
-
return
|
|
1548
|
+
function formatClaimTaskResults(_0x359f63) {
|
|
1549
|
+
const _0x1fef7c = { _0x34f03e: 0x14f }, _0x472a6a = {
|
|
1550
|
+
_0x5d8f6f: 0x101,
|
|
1551
|
+
_0x5680d9: 0x106,
|
|
1552
|
+
_0x36ae7b: 0x19a,
|
|
1553
|
+
_0xa2def8: 0x138,
|
|
1554
|
+
_0x367636: 0x258,
|
|
1555
|
+
_0x12a3fc: 0x103,
|
|
1556
|
+
_0x2b0a6a: 0x1a8,
|
|
1557
|
+
_0x22b7c8: 0x22b,
|
|
1558
|
+
_0x2f1d0a: 0x18a,
|
|
1559
|
+
_0x1b66ad: 0x106,
|
|
1560
|
+
_0x56aa0b: 0x1c4,
|
|
1561
|
+
_0x40355e: 0x146,
|
|
1562
|
+
_0x45bda6: 0x1fd,
|
|
1563
|
+
_0x22ef52: 0x1d7
|
|
1564
|
+
}, _0x139f0f = _0x3b2449;
|
|
1565
|
+
if (_0x359f63['length'] === 0x0)
|
|
1566
|
+
return _0x139f0f(0x15e);
|
|
1567
|
+
return _0x359f63[_0x139f0f(0x182)](_0x2978a2 => {
|
|
1568
|
+
const _0x339b36 = _0x139f0f;
|
|
1569
|
+
if (_0x2978a2[_0x339b36(_0x472a6a._0x5d8f6f)]) {
|
|
1570
|
+
const _0x2de05c = formatClaimTaskLabel(_0x2978a2['taskNumber'], _0x2978a2[_0x339b36(0x240)]), _0x148195 = _0x2978a2[_0x339b36(_0x472a6a._0x5680d9)] ? '\x20message=' + _0x2978a2[_0x339b36(0x106)] : '';
|
|
1571
|
+
if (_0x2978a2['workerHandoff']) {
|
|
1572
|
+
const _0x3f8b7d = [
|
|
1573
|
+
'workerHandoff=true',
|
|
1574
|
+
_0x2978a2[_0x339b36(0x255)] ? _0x339b36(_0x472a6a._0x36ae7b) : null,
|
|
1575
|
+
_0x2978a2[_0x339b36(_0x472a6a._0xa2def8)] ? _0x339b36(_0x472a6a._0x367636) + _0x2978a2[_0x339b36(0x138)] : null,
|
|
1576
|
+
_0x2978a2['threadTarget'] ? _0x339b36(_0x472a6a._0x12a3fc) + _0x2978a2[_0x339b36(0x1bf)] : null,
|
|
1577
|
+
_0x2978a2['workerDisposition'] ? _0x339b36(_0x472a6a._0x2b0a6a) + _0x2978a2[_0x339b36(0x13e)] : null
|
|
1578
|
+
][_0x339b36(0x188)](Boolean)[_0x339b36(0x14f)]('\x20');
|
|
1579
|
+
return _0x2de05c + _0x339b36(_0x472a6a._0x22b7c8) + _0x148195 + '\x20' + _0x3f8b7d + _0x339b36(0x212);
|
|
1569
1580
|
}
|
|
1570
|
-
if (
|
|
1571
|
-
return
|
|
1572
|
-
const
|
|
1573
|
-
return
|
|
1581
|
+
if (_0x2978a2['executionMode'] === _0x339b36(0xdb))
|
|
1582
|
+
return _0x2de05c + '\x20claimed' + _0x148195 + _0x339b36(0x20f);
|
|
1583
|
+
const _0x15346b = _0x2978a2[_0x339b36(0x156)] ? _0x339b36(_0x472a6a._0x2f1d0a) + _0x2978a2[_0x339b36(0x156)] : '';
|
|
1584
|
+
return _0x2de05c + '\x20claimed' + _0x148195 + _0x15346b;
|
|
1574
1585
|
}
|
|
1575
|
-
const
|
|
1576
|
-
return
|
|
1577
|
-
})[
|
|
1586
|
+
const _0x4233ca = _0x2978a2[_0x339b36(0x146)] == null ? _0x2978a2[_0x339b36(_0x472a6a._0x1b66ad)] ?? _0x339b36(_0x472a6a._0x56aa0b) : formatClaimTaskLabel(_0x2978a2[_0x339b36(_0x472a6a._0x40355e)], _0x2978a2[_0x339b36(0x240)]);
|
|
1587
|
+
return _0x4233ca + '\x20failed:\x20' + (_0x2978a2[_0x339b36(_0x472a6a._0x45bda6)] ?? _0x339b36(_0x472a6a._0x22ef52));
|
|
1588
|
+
})[_0x139f0f(_0x1fef7c._0x34f03e)]('\x0a');
|
|
1578
1589
|
}
|
|
1579
|
-
function formatUnclaimTaskResult(
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
return _0x1e53a7 + _0x81dc49(_0x807f74._0x40323f) + _0xbb8908[_0x81dc49(0x269)];
|
|
1590
|
+
function formatUnclaimTaskResult(_0x32ab8a) {
|
|
1591
|
+
const _0x496c50 = {
|
|
1592
|
+
_0x105cd3: 0x146,
|
|
1593
|
+
_0x42a292: 0x257,
|
|
1594
|
+
_0x375bfb: 0x1d5
|
|
1595
|
+
}, _0x323d33 = _0x3b2449, _0x5e86d4 = _0x32ab8a[_0x323d33(_0x496c50._0x105cd3)] == null ? _0x323d33(_0x496c50._0x42a292) : _0x32ab8a[_0x323d33(0x240)] != null ? '#' + _0x32ab8a[_0x323d33(_0x496c50._0x105cd3)] + '.' + _0x32ab8a['subtaskNumber'] : '#' + _0x32ab8a[_0x323d33(0x146)];
|
|
1596
|
+
return _0x5e86d4 + _0x323d33(0x248) + _0x32ab8a[_0x323d33(_0x496c50._0x375bfb)];
|
|
1587
1597
|
}
|
|
1588
|
-
function formatUpdateTaskStatusResult(
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1598
|
+
function formatUpdateTaskStatusResult(_0x2c0400) {
|
|
1599
|
+
const _0x4aa881 = {
|
|
1600
|
+
_0x379523: 0x257,
|
|
1601
|
+
_0x463815: 0x240,
|
|
1602
|
+
_0x544170: 0x146,
|
|
1603
|
+
_0x5aadcf: 0x1d5,
|
|
1604
|
+
_0x1785ce: 0x231,
|
|
1605
|
+
_0x19e7aa: 0x22e
|
|
1606
|
+
}, _0x4f1778 = _0x3b2449, _0x43614b = _0x2c0400['taskNumber'] == null ? _0x4f1778(_0x4aa881._0x379523) : _0x2c0400[_0x4f1778(_0x4aa881._0x463815)] != null ? '#' + _0x2c0400[_0x4f1778(_0x4aa881._0x544170)] + '.' + _0x2c0400['subtaskNumber'] : '#' + _0x2c0400[_0x4f1778(0x146)], _0x244f2a = _0x43614b + _0x4f1778(0x248) + _0x2c0400[_0x4f1778(0x1d5)];
|
|
1607
|
+
if (_0x2c0400[_0x4f1778(_0x4aa881._0x5aadcf)] !== _0x4f1778(_0x4aa881._0x1785ce))
|
|
1608
|
+
return _0x244f2a;
|
|
1609
|
+
return _0x244f2a + _0x4f1778(_0x4aa881._0x19e7aa);
|
|
1597
1610
|
}
|
|
1598
1611
|
function getChatBridgeToolDefinitions() {
|
|
1599
|
-
const
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
},
|
|
1612
|
+
const _0x2c8649 = {
|
|
1613
|
+
_0x2dafc8: 0xd1,
|
|
1614
|
+
_0xef9164: 0x1ba,
|
|
1615
|
+
_0x2fa7ac: 0x23c,
|
|
1616
|
+
_0x4a0aa9: 0x1c2
|
|
1617
|
+
}, _0x1c1aa7 = _0x3b2449;
|
|
1605
1618
|
return [
|
|
1606
|
-
{ 'name':
|
|
1619
|
+
{ 'name': 'send_message' },
|
|
1607
1620
|
{ 'name': 'check_messages' },
|
|
1608
|
-
{ 'name':
|
|
1609
|
-
{ 'name':
|
|
1610
|
-
{ 'name':
|
|
1611
|
-
{ 'name':
|
|
1612
|
-
{ 'name':
|
|
1613
|
-
{ 'name':
|
|
1614
|
-
{ 'name':
|
|
1615
|
-
{ 'name':
|
|
1616
|
-
{ 'name':
|
|
1617
|
-
{ 'name':
|
|
1618
|
-
{ 'name':
|
|
1621
|
+
{ 'name': _0x1c1aa7(_0x2c8649._0x2dafc8) },
|
|
1622
|
+
{ 'name': _0x1c1aa7(_0x2c8649._0xef9164) },
|
|
1623
|
+
{ 'name': _0x1c1aa7(0x142) },
|
|
1624
|
+
{ 'name': _0x1c1aa7(_0x2c8649._0x2fa7ac) },
|
|
1625
|
+
{ 'name': _0x1c1aa7(0x204) },
|
|
1626
|
+
{ 'name': 'create_tasks' },
|
|
1627
|
+
{ 'name': _0x1c1aa7(_0x2c8649._0x4a0aa9) },
|
|
1628
|
+
{ 'name': 'unclaim_task' },
|
|
1629
|
+
{ 'name': 'update_task_status' },
|
|
1630
|
+
{ 'name': _0x1c1aa7(0x1c6) },
|
|
1631
|
+
{ 'name': 'park_worker' },
|
|
1619
1632
|
{ 'name': 'escalate_to_main' },
|
|
1620
|
-
{ 'name':
|
|
1633
|
+
{ 'name': _0x1c1aa7(0x14c) }
|
|
1621
1634
|
];
|
|
1622
1635
|
}
|
|
1623
|
-
function createChatBridgeHandlers(
|
|
1624
|
-
const
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
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
|
-
_0x3bf5d4: 0x1eb
|
|
1752
|
-
}, _0x5b2308 = {
|
|
1753
|
-
_0x5bab0d: 0xfe,
|
|
1754
|
-
_0x237806: 0xfe
|
|
1755
|
-
}, _0x440543 = _0x548baf;
|
|
1756
|
-
function _0x3dbfff(_0x52bde8, _0x58efda) {
|
|
1757
|
-
const _0xba2b53 = _0x7c22;
|
|
1758
|
-
if (!_0x5dab7a['workerMode'])
|
|
1636
|
+
function createChatBridgeHandlers(_0x29d686) {
|
|
1637
|
+
const _0x4c7f42 = { _0x11c50a: 0x18c }, _0x2d09f2 = {
|
|
1638
|
+
_0x2afaba: 0x201,
|
|
1639
|
+
_0x2b00e6: 0x1b4,
|
|
1640
|
+
_0x20065b: 0x251,
|
|
1641
|
+
_0x43861e: 0x1fd,
|
|
1642
|
+
_0x1d359d: 0x197
|
|
1643
|
+
}, _0x4d77e8 = {
|
|
1644
|
+
_0x3b151b: 0x139,
|
|
1645
|
+
_0xfe08ae: 0x139,
|
|
1646
|
+
_0x3b32d4: 0x148,
|
|
1647
|
+
_0x4358bc: 0x24d,
|
|
1648
|
+
_0x3c25cf: 0x251
|
|
1649
|
+
}, _0x4ef5db = {
|
|
1650
|
+
_0x2bbc7b: 0x251,
|
|
1651
|
+
_0x33ec62: 0x198,
|
|
1652
|
+
_0x28400f: 0x251
|
|
1653
|
+
}, _0x94e9b1 = {
|
|
1654
|
+
_0x31f231: 0x139,
|
|
1655
|
+
_0x4ef4af: 0x201,
|
|
1656
|
+
_0x48d88b: 0x16f,
|
|
1657
|
+
_0x9615ca: 0x251,
|
|
1658
|
+
_0x424133: 0x1b2,
|
|
1659
|
+
_0x3cfbbd: 0x209,
|
|
1660
|
+
_0x3f2c72: 0x251,
|
|
1661
|
+
_0x3ff84d: 0x1d5
|
|
1662
|
+
}, _0x4adf19 = {
|
|
1663
|
+
_0x28df79: 0xe9,
|
|
1664
|
+
_0x3f6853: 0x14d,
|
|
1665
|
+
_0x55f889: 0x177
|
|
1666
|
+
}, _0x201a22 = {
|
|
1667
|
+
_0x3db4f0: 0x23f,
|
|
1668
|
+
_0xea62ed: 0x164,
|
|
1669
|
+
_0x5d7aaf: 0x1ac
|
|
1670
|
+
}, _0x2da306 = { _0x1ec14a: 0x11e }, _0x31e873 = { _0x1d7ed7: 0x1e7 }, _0x1fb41d = {
|
|
1671
|
+
_0x5d5ec4: 0x1c2,
|
|
1672
|
+
_0x20547b: 0x1ac,
|
|
1673
|
+
_0x259c1f: 0x124,
|
|
1674
|
+
_0x39611b: 0x16d,
|
|
1675
|
+
_0x3c9635: 0x1ee,
|
|
1676
|
+
_0x1c85bb: 0x1ee,
|
|
1677
|
+
_0xc46ceb: 0x13b,
|
|
1678
|
+
_0x4e15ca: 0x164,
|
|
1679
|
+
_0xdf7d00: 0x233
|
|
1680
|
+
}, _0xb680a2 = {
|
|
1681
|
+
_0x337d25: 0x1ac,
|
|
1682
|
+
_0x1d8957: 0x1fb
|
|
1683
|
+
}, _0x1b6897 = {
|
|
1684
|
+
_0x960a13: 0x164,
|
|
1685
|
+
_0x1520d5: 0x169
|
|
1686
|
+
}, _0x40cee8 = {
|
|
1687
|
+
_0x259c4e: 0x164,
|
|
1688
|
+
_0x5b5e94: 0x158,
|
|
1689
|
+
_0x406d49: 0x17d,
|
|
1690
|
+
_0x5c75b9: 0x241,
|
|
1691
|
+
_0x198d21: 0x1d5,
|
|
1692
|
+
_0x2cf0c3: 0x169,
|
|
1693
|
+
_0x6b344f: 0x146,
|
|
1694
|
+
_0x276076: 0x196,
|
|
1695
|
+
_0x5bc254: 0x1b7,
|
|
1696
|
+
_0x2020bf: 0x169,
|
|
1697
|
+
_0x409cac: 0x10f,
|
|
1698
|
+
_0x32bfc1: 0x146
|
|
1699
|
+
}, _0x332117 = { _0x1a6717: 0x19b }, _0x5969f3 = {
|
|
1700
|
+
_0x555c7b: 0x108,
|
|
1701
|
+
_0xcc05d7: 0xd5
|
|
1702
|
+
}, _0x318372 = {
|
|
1703
|
+
_0x5804f2: 0x211,
|
|
1704
|
+
_0x4818ac: 0x19d,
|
|
1705
|
+
_0xd13348: 0x234,
|
|
1706
|
+
_0x364a41: 0x123,
|
|
1707
|
+
_0x22c59b: 0x22d,
|
|
1708
|
+
_0x2f19fe: 0x214,
|
|
1709
|
+
_0x4e6753: 0x123,
|
|
1710
|
+
_0x57bdd8: 0x146,
|
|
1711
|
+
_0x12c43e: 0x123,
|
|
1712
|
+
_0x5221a5: 0x1dc,
|
|
1713
|
+
_0x48f4b4: 0x1f9,
|
|
1714
|
+
_0x144c31: 0x1ae,
|
|
1715
|
+
_0x13bbeb: 0x12a,
|
|
1716
|
+
_0x1a5b30: 0x190,
|
|
1717
|
+
_0x124083: 0x162,
|
|
1718
|
+
_0x53e04a: 0x1fb,
|
|
1719
|
+
_0x326e34: 0x14f,
|
|
1720
|
+
_0x25dfd5: 0x18d,
|
|
1721
|
+
_0x1fc8f7: 0x1f9,
|
|
1722
|
+
_0x1f9be9: 0x13a,
|
|
1723
|
+
_0x3309d9: 0x227,
|
|
1724
|
+
_0x186bb8: 0x110,
|
|
1725
|
+
_0xd81509: 0x140,
|
|
1726
|
+
_0x18ef3b: 0x214,
|
|
1727
|
+
_0x406507: 0x123,
|
|
1728
|
+
_0x489c79: 0x106
|
|
1729
|
+
}, _0x532a3 = {
|
|
1730
|
+
_0xe5fb69: 0x19d,
|
|
1731
|
+
_0x33ae28: 0x139,
|
|
1732
|
+
_0x308363: 0x1f1,
|
|
1733
|
+
_0x64bf83: 0x1d5,
|
|
1734
|
+
_0xb4d324: 0x1de
|
|
1735
|
+
}, _0x1a8185 = {
|
|
1736
|
+
_0x34465a: 0x1f1,
|
|
1737
|
+
_0x3b7d59: 0x17d,
|
|
1738
|
+
_0x59d34d: 0x10b,
|
|
1739
|
+
_0x2c91f1: 0x196
|
|
1740
|
+
}, _0x1df01c = {
|
|
1741
|
+
_0x1cd6ae: 0x1ac,
|
|
1742
|
+
_0x2425a0: 0x23a,
|
|
1743
|
+
_0x55fd05: 0x1ac,
|
|
1744
|
+
_0x124435: 0x257,
|
|
1745
|
+
_0x46499b: 0x163,
|
|
1746
|
+
_0x2cdca9: 0x164,
|
|
1747
|
+
_0x577516: 0x19b,
|
|
1748
|
+
_0x28fe5d: 0x146,
|
|
1749
|
+
_0x326855: 0x106,
|
|
1750
|
+
_0x209952: 0x252,
|
|
1751
|
+
_0x4b3aeb: 0x14f,
|
|
1752
|
+
_0x28f4af: 0x139,
|
|
1753
|
+
_0x4f2a6a: 0x18d,
|
|
1754
|
+
_0x517793: 0x1ab,
|
|
1755
|
+
_0x39f0a5: 0x19d,
|
|
1756
|
+
_0x517866: 0x1fb,
|
|
1757
|
+
_0x54cf3b: 0x259,
|
|
1758
|
+
_0x50c32b: 0x11b,
|
|
1759
|
+
_0x32f5ab: 0x227
|
|
1760
|
+
}, _0x131fa8 = { _0x641651: 0x120 }, _0x545f49 = _0x3b2449;
|
|
1761
|
+
function _0x366b57(_0xafdd6d, _0x4fee08) {
|
|
1762
|
+
const _0x158c0e = _0x24f4;
|
|
1763
|
+
if (!_0x29d686[_0x158c0e(0xd5)])
|
|
1759
1764
|
return;
|
|
1760
|
-
if (!
|
|
1761
|
-
throw new Error(
|
|
1762
|
-
if (
|
|
1763
|
-
throw new Error(
|
|
1765
|
+
if (!_0x29d686[_0x158c0e(0x1e8)])
|
|
1766
|
+
throw new Error(_0xafdd6d + ':\x20worker\x20runtime\x20missing\x20workerThreadTarget;\x20cannot\x20validate\x20scope');
|
|
1767
|
+
if (_0x4fee08 !== _0x29d686[_0x158c0e(0x1e8)])
|
|
1768
|
+
throw new Error(_0xafdd6d + _0x158c0e(_0x131fa8._0x641651) + _0x29d686[_0x158c0e(0x1e8)] + ');\x20got\x20channel=' + _0x4fee08);
|
|
1764
1769
|
}
|
|
1765
|
-
async function
|
|
1766
|
-
const
|
|
1767
|
-
if (!
|
|
1770
|
+
async function _0x462d78(_0x1022d2) {
|
|
1771
|
+
const _0x571433 = _0x24f4;
|
|
1772
|
+
if (!_0x29d686[_0x571433(0x139)] || !_0x29d686['agentId'] || _0x29d686[_0x571433(0xd5)] || _0x29d686['workerModeEnabled'] !== !![])
|
|
1768
1773
|
return null;
|
|
1769
|
-
const
|
|
1770
|
-
if (
|
|
1774
|
+
const _0x5bd0bc = parseTarget(_0x1022d2[_0x571433(_0x1df01c._0x1cd6ae)]);
|
|
1775
|
+
if (_0x5bd0bc[_0x571433(_0x1df01c._0x2425a0)] !== _0x571433(_0x1df01c._0x55fd05))
|
|
1771
1776
|
return null;
|
|
1772
|
-
if (
|
|
1773
|
-
const
|
|
1777
|
+
if (_0x1022d2[_0x571433(0x138)] === _0x571433(0xdb)) {
|
|
1778
|
+
const _0x3c40d5 = _0x1022d2[_0x571433(0x146)] == null ? _0x571433(_0x1df01c._0x124435) : '#' + _0x1022d2[_0x571433(0x146)];
|
|
1774
1779
|
return {
|
|
1775
|
-
'executionMode':
|
|
1780
|
+
'executionMode': _0x571433(0xdb),
|
|
1776
1781
|
'stopMain': ![],
|
|
1777
1782
|
'workerHandoff': ![],
|
|
1778
|
-
'workerHandoffError':
|
|
1783
|
+
'workerHandoffError': _0x571433(_0x1df01c._0x46499b) + _0x3c40d5 + _0x571433(0x23e)
|
|
1779
1784
|
};
|
|
1780
1785
|
}
|
|
1781
|
-
const
|
|
1782
|
-
let
|
|
1786
|
+
const _0x1ccd1d = _0x1022d2['threadNumber'] != null ? _0x5bd0bc['channelTarget'] + ':t' + _0x1022d2[_0x571433(0x21a)] : _0x5bd0bc['channelTarget'] + ':' + _0x1022d2[_0x571433(0x106)];
|
|
1787
|
+
let _0x590875;
|
|
1783
1788
|
try {
|
|
1784
|
-
const
|
|
1785
|
-
'channel':
|
|
1789
|
+
const _0x26a572 = await _0x29d686[_0x571433(_0x1df01c._0x2cdca9)][_0x571433(_0x1df01c._0x577516)]({
|
|
1790
|
+
'channel': _0x1ccd1d,
|
|
1786
1791
|
'limit': 0x14
|
|
1787
1792
|
});
|
|
1788
|
-
|
|
1793
|
+
_0x590875 = _0x26a572['messages']['find'](_0xfee576 => _0xfee576[_0x571433(0x106)] === _0x1022d2[_0x571433(0x106)]);
|
|
1789
1794
|
} catch {
|
|
1790
|
-
|
|
1795
|
+
_0x590875 = void 0x0;
|
|
1791
1796
|
}
|
|
1792
|
-
const
|
|
1793
|
-
|
|
1797
|
+
const _0x2fb58a = _0x1022d2['taskNumber'] == null ? '(legacy)' : '#' + _0x1022d2[_0x571433(_0x1df01c._0x28fe5d)], _0x5b66c1 = [
|
|
1798
|
+
'[target=' + _0x1ccd1d + '\x20msg=' + _0x1022d2[_0x571433(_0x1df01c._0x326855)][_0x571433(0x180)](0x0, 0x8) + _0x571433(0x143) + new Date()[_0x571433(0x223)]() + ']\x20@system:\x20[claim-handoff]\x20' + _0x2fb58a + '\x20已切换到\x20worker\x20执行',
|
|
1794
1799
|
'',
|
|
1795
|
-
|
|
1800
|
+
_0x590875 ? _0x571433(0x167) + _0x590875[_0x571433(0x127)] : _0x571433(0x117) + _0x1022d2[_0x571433(0x106)],
|
|
1796
1801
|
'',
|
|
1797
|
-
'Thread\x20target:\x20' +
|
|
1798
|
-
|
|
1799
|
-
][
|
|
1802
|
+
'Thread\x20target:\x20' + _0x1ccd1d,
|
|
1803
|
+
_0x571433(_0x1df01c._0x209952)
|
|
1804
|
+
][_0x571433(_0x1df01c._0x4b3aeb)]('\x0a'), _0x4f2e69 = await fetch(_0x29d686[_0x571433(_0x1df01c._0x28f4af)] + _0x571433(0x1ec), {
|
|
1800
1805
|
'method': 'POST',
|
|
1801
|
-
'headers': { 'Content-Type':
|
|
1802
|
-
'body': JSON[
|
|
1803
|
-
'agent_id':
|
|
1804
|
-
'thread_target':
|
|
1806
|
+
'headers': { 'Content-Type': _0x571433(_0x1df01c._0x4f2a6a) },
|
|
1807
|
+
'body': JSON[_0x571433(_0x1df01c._0x517793)]({
|
|
1808
|
+
'agent_id': _0x29d686[_0x571433(_0x1df01c._0x39f0a5)],
|
|
1809
|
+
'thread_target': _0x1ccd1d,
|
|
1805
1810
|
'spawn_packet': {
|
|
1806
|
-
'replyTarget':
|
|
1807
|
-
...
|
|
1811
|
+
'replyTarget': _0x1ccd1d,
|
|
1812
|
+
..._0x1022d2[_0x571433(0x1fb)] ? { 'taskId': _0x1022d2[_0x571433(_0x1df01c._0x517866)] } : _0x1022d2[_0x571433(0x146)] != null ? { 'taskId': _0x571433(0x1c1) + _0x1022d2[_0x571433(0x146)] } : {}
|
|
1808
1813
|
},
|
|
1809
1814
|
'payload': {
|
|
1810
|
-
'mode':
|
|
1811
|
-
'text':
|
|
1815
|
+
'mode': 'user',
|
|
1816
|
+
'text': _0x5b66c1
|
|
1812
1817
|
}
|
|
1813
1818
|
})
|
|
1814
|
-
}),
|
|
1815
|
-
if (!
|
|
1816
|
-
throw new Error(
|
|
1819
|
+
}), _0x2c06c6 = await _0x4f2e69[_0x571433(0x17d)]();
|
|
1820
|
+
if (!_0x2c06c6['ok'])
|
|
1821
|
+
throw new Error(_0x2c06c6[_0x571433(_0x1df01c._0x54cf3b)] ?? _0x571433(_0x1df01c._0x50c32b));
|
|
1817
1822
|
return {
|
|
1818
1823
|
'stopMain': !![],
|
|
1819
|
-
'threadTarget':
|
|
1820
|
-
'workerDisposition':
|
|
1824
|
+
'threadTarget': _0x1ccd1d,
|
|
1825
|
+
'workerDisposition': _0x2c06c6[_0x571433(_0x1df01c._0x32f5ab)] === _0x571433(0xdd) ? 'queued' : _0x571433(0x110),
|
|
1821
1826
|
'workerHandoff': !![],
|
|
1822
|
-
'workerSessionId':
|
|
1823
|
-
'executionMode':
|
|
1827
|
+
'workerSessionId': _0x2c06c6[_0x571433(0xf2)] ?? '',
|
|
1828
|
+
'executionMode': _0x571433(0x184)
|
|
1824
1829
|
};
|
|
1825
1830
|
}
|
|
1826
|
-
async function
|
|
1827
|
-
const
|
|
1828
|
-
if (!
|
|
1831
|
+
async function _0x18f3ce() {
|
|
1832
|
+
const _0x541d12 = _0x24f4;
|
|
1833
|
+
if (!_0x29d686[_0x541d12(0x139)] || !_0x29d686[_0x541d12(0x19d)] || _0x29d686[_0x541d12(0xd5)])
|
|
1829
1834
|
return null;
|
|
1830
1835
|
try {
|
|
1831
|
-
const
|
|
1832
|
-
if (!
|
|
1836
|
+
const _0x4adf75 = await fetch(_0x29d686[_0x541d12(0x139)] + _0x541d12(_0x1a8185._0x34465a) + encodeURIComponent(_0x29d686[_0x541d12(0x19d)])), _0x300a55 = await _0x4adf75[_0x541d12(_0x1a8185._0x3b7d59)]();
|
|
1837
|
+
if (!_0x300a55['ok'])
|
|
1833
1838
|
return null;
|
|
1834
|
-
const
|
|
1835
|
-
for (const
|
|
1836
|
-
|
|
1839
|
+
const _0xc743cb = new Set();
|
|
1840
|
+
for (const _0x3752da of _0x300a55['workers']) {
|
|
1841
|
+
_0x3752da['status'] !== _0x541d12(_0x1a8185._0x59d34d) && _0x3752da[_0x541d12(0x1de)] && _0xc743cb[_0x541d12(_0x1a8185._0x2c91f1)](_0x3752da[_0x541d12(0x1de)]);
|
|
1837
1842
|
}
|
|
1838
|
-
return
|
|
1843
|
+
return _0xc743cb[_0x541d12(0x253)] > 0x0 ? _0xc743cb : null;
|
|
1839
1844
|
} catch {
|
|
1840
1845
|
return null;
|
|
1841
1846
|
}
|
|
1842
1847
|
}
|
|
1843
|
-
const
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1848
|
+
const _0x210a9d = new Set([
|
|
1849
|
+
_0x545f49(_0x4c7f42._0x11c50a),
|
|
1850
|
+
_0x545f49(0x154),
|
|
1851
|
+
_0x545f49(0x254)
|
|
1847
1852
|
]);
|
|
1848
|
-
async function
|
|
1849
|
-
const
|
|
1850
|
-
if (!
|
|
1853
|
+
async function _0x63decf() {
|
|
1854
|
+
const _0x51a52e = _0x545f49;
|
|
1855
|
+
if (!_0x29d686[_0x51a52e(0x139)] || !_0x29d686[_0x51a52e(_0x532a3._0xe5fb69)] || _0x29d686['workerMode'])
|
|
1851
1856
|
return null;
|
|
1852
1857
|
try {
|
|
1853
|
-
const
|
|
1854
|
-
if (!
|
|
1858
|
+
const _0x3242d2 = await fetch(_0x29d686[_0x51a52e(_0x532a3._0x33ae28)] + _0x51a52e(_0x532a3._0x308363) + encodeURIComponent(_0x29d686[_0x51a52e(0x19d)])), _0x3af3ec = await _0x3242d2[_0x51a52e(0x17d)]();
|
|
1859
|
+
if (!_0x3af3ec['ok'])
|
|
1855
1860
|
return null;
|
|
1856
|
-
const
|
|
1857
|
-
for (const
|
|
1858
|
-
|
|
1861
|
+
const _0x3b5ffa = new Set();
|
|
1862
|
+
for (const _0x135753 of _0x3af3ec[_0x51a52e(0x241)]) {
|
|
1863
|
+
_0x210a9d[_0x51a52e(0x115)](_0x135753[_0x51a52e(_0x532a3._0x64bf83)]) && _0x135753['thread_target'] && _0x3b5ffa['add'](_0x135753[_0x51a52e(_0x532a3._0xb4d324)]);
|
|
1859
1864
|
}
|
|
1860
|
-
return
|
|
1865
|
+
return _0x3b5ffa['size'] > 0x0 ? _0x3b5ffa : null;
|
|
1861
1866
|
} catch {
|
|
1862
1867
|
return null;
|
|
1863
1868
|
}
|
|
1864
1869
|
}
|
|
1865
1870
|
return {
|
|
1866
|
-
async 'send_message'(
|
|
1867
|
-
const
|
|
1868
|
-
if (!
|
|
1869
|
-
const
|
|
1870
|
-
if (
|
|
1871
|
-
if (
|
|
1872
|
-
const
|
|
1873
|
-
'attachmentIds':
|
|
1874
|
-
'content':
|
|
1875
|
-
'target':
|
|
1876
|
-
'visibility':
|
|
1871
|
+
async 'send_message'(_0x56d64b) {
|
|
1872
|
+
const _0x5980df = _0x545f49;
|
|
1873
|
+
if (!_0x29d686[_0x5980df(0xd5)] && _0x29d686[_0x5980df(_0x318372._0x5804f2)] && _0x29d686[_0x5980df(0x139)] && _0x29d686[_0x5980df(_0x318372._0x4818ac)]) {
|
|
1874
|
+
const _0x5e549e = await _0x29d686[_0x5980df(0x164)][_0x5980df(_0x318372._0xd13348)](_0x56d64b[_0x5980df(_0x318372._0x364a41)]);
|
|
1875
|
+
if (_0x5e549e[_0x5980df(_0x318372._0x22c59b)] && _0x5e549e[_0x5980df(0x1dc)]) {
|
|
1876
|
+
if (_0x5e549e[_0x5980df(0x22d)][_0x5980df(0x138)] === _0x5980df(0xdb)) {
|
|
1877
|
+
const _0x1a8ef1 = await _0x29d686[_0x5980df(0x164)][_0x5980df(0x140)]({
|
|
1878
|
+
'attachmentIds': _0x56d64b[_0x5980df(0x22f)],
|
|
1879
|
+
'content': _0x56d64b[_0x5980df(0x127)],
|
|
1880
|
+
'target': _0x56d64b[_0x5980df(0x123)],
|
|
1881
|
+
'visibility': _0x56d64b[_0x5980df(_0x318372._0x2f19fe)]
|
|
1877
1882
|
});
|
|
1878
|
-
return
|
|
1883
|
+
return 'Message\x20sent\x20to\x20' + _0x56d64b[_0x5980df(_0x318372._0x4e6753)] + '.\x20Message\x20ID:\x20' + _0x1a8ef1['messageId'];
|
|
1879
1884
|
}
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1885
|
+
const _0xabbe24 = _0x5e549e['task'][_0x5980df(0x146)] != null ? '#' + _0x5e549e['task'][_0x5980df(_0x318372._0x57bdd8)] : '(legacy)', _0x554138 = _0x5e549e['threadNumber'] != null ? _0x5e549e[_0x5980df(_0x318372._0x12c43e)] + ':t' + _0x5e549e['threadNumber'] : _0x5e549e[_0x5980df(_0x318372._0x364a41)] + ':' + _0x5e549e[_0x5980df(_0x318372._0x5221a5)][_0x5980df(0x180)](0x0, 0x8), _0x53e9cf = await _0x63decf();
|
|
1886
|
+
if (_0x53e9cf?.[_0x5980df(0x115)](_0x554138))
|
|
1882
1887
|
return [
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
][
|
|
1886
|
-
const
|
|
1887
|
-
|
|
1888
|
+
_0x5980df(0x122) + _0xabbe24 + _0x5980df(_0x318372._0x48f4b4) + _0x554138 + _0x5980df(_0x318372._0x144c31),
|
|
1889
|
+
_0x5980df(_0x318372._0x13bbeb)
|
|
1890
|
+
]['join']('\x0a');
|
|
1891
|
+
const _0x4ff786 = [
|
|
1892
|
+
'[target=' + _0x554138 + _0x5980df(_0x318372._0x1a5b30) + new Date()['toISOString']() + _0x5980df(_0x318372._0x124083),
|
|
1888
1893
|
'',
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
][
|
|
1894
|
+
_0x5980df(0x1ff) + _0x56d64b[_0x5980df(0x127)],
|
|
1895
|
+
_0x5980df(0x147) + _0xabbe24 + '\x20(' + _0x5e549e[_0x5980df(0x22d)][_0x5980df(_0x318372._0x53e04a)] + ')',
|
|
1896
|
+
_0x5980df(0x245) + _0x554138,
|
|
1897
|
+
_0x5980df(0xe8)
|
|
1898
|
+
][_0x5980df(_0x318372._0x326e34)]('\x0a'), _0x32c099 = await fetch(_0x29d686[_0x5980df(0x139)] + '/workers/deliver', {
|
|
1894
1899
|
'method': 'POST',
|
|
1895
|
-
'headers': { 'Content-Type':
|
|
1896
|
-
'body': JSON[
|
|
1897
|
-
'agent_id':
|
|
1898
|
-
'thread_target':
|
|
1900
|
+
'headers': { 'Content-Type': _0x5980df(_0x318372._0x25dfd5) },
|
|
1901
|
+
'body': JSON[_0x5980df(0x1ab)]({
|
|
1902
|
+
'agent_id': _0x29d686[_0x5980df(0x19d)],
|
|
1903
|
+
'thread_target': _0x554138,
|
|
1899
1904
|
'spawn_packet': {
|
|
1900
|
-
'replyTarget':
|
|
1901
|
-
'taskId':
|
|
1905
|
+
'replyTarget': _0x554138,
|
|
1906
|
+
'taskId': _0x5e549e['task']['taskId']
|
|
1902
1907
|
},
|
|
1903
1908
|
'payload': {
|
|
1904
|
-
'mode':
|
|
1905
|
-
'text':
|
|
1909
|
+
'mode': _0x5980df(0x1e2),
|
|
1910
|
+
'text': _0x4ff786
|
|
1906
1911
|
}
|
|
1907
1912
|
})
|
|
1908
|
-
}),
|
|
1909
|
-
if (!
|
|
1910
|
-
throw new Error(
|
|
1913
|
+
}), _0x57261a = await _0x32c099[_0x5980df(0x17d)]();
|
|
1914
|
+
if (!_0x57261a['ok'])
|
|
1915
|
+
throw new Error(_0x57261a['error'] ?? 'enter-handoff\x20failed');
|
|
1911
1916
|
return [
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
][
|
|
1917
|
+
_0x5980df(0x16a) + _0xabbe24 + _0x5980df(_0x318372._0x1fc8f7) + _0x554138 + _0x5980df(_0x318372._0x1f9be9),
|
|
1918
|
+
'Worker\x20' + (_0x57261a[_0x5980df(_0x318372._0x3309d9)] === 'queued' ? _0x5980df(0xdd) : _0x5980df(_0x318372._0x186bb8)) + '.',
|
|
1919
|
+
_0x5980df(0x20a)
|
|
1920
|
+
]['join']('\x0a');
|
|
1916
1921
|
}
|
|
1917
1922
|
}
|
|
1918
|
-
const
|
|
1919
|
-
'attachmentIds':
|
|
1920
|
-
'content':
|
|
1921
|
-
'target':
|
|
1922
|
-
'visibility':
|
|
1923
|
+
const _0x413d01 = await _0x29d686['client'][_0x5980df(_0x318372._0xd81509)]({
|
|
1924
|
+
'attachmentIds': _0x56d64b[_0x5980df(0x22f)],
|
|
1925
|
+
'content': _0x56d64b[_0x5980df(0x127)],
|
|
1926
|
+
'target': _0x56d64b[_0x5980df(0x123)],
|
|
1927
|
+
'visibility': _0x56d64b[_0x5980df(_0x318372._0x18ef3b)]
|
|
1923
1928
|
});
|
|
1924
|
-
return
|
|
1929
|
+
return 'Message\x20sent\x20to\x20' + _0x56d64b[_0x5980df(_0x318372._0x406507)] + '.\x20Message\x20ID:\x20' + _0x413d01[_0x5980df(_0x318372._0x489c79)];
|
|
1925
1930
|
},
|
|
1926
1931
|
async 'check_messages'() {
|
|
1927
|
-
const
|
|
1928
|
-
if (!
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1931
|
-
return formatCheckMessages(
|
|
1932
|
+
const _0x16857c = _0x545f49, _0xfe924d = await _0x29d686['client'][_0x16857c(_0x5969f3._0x555c7b)]();
|
|
1933
|
+
if (!_0x29d686[_0x16857c(_0x5969f3._0xcc05d7)]) {
|
|
1934
|
+
const _0x5a88d5 = await _0x18f3ce();
|
|
1935
|
+
if (_0x5a88d5)
|
|
1936
|
+
return formatCheckMessages(_0xfe924d['messages']['filter'](_0x5ab9c7 => !_0x5a88d5[_0x16857c(0x115)](_0x5ab9c7['target'])));
|
|
1932
1937
|
}
|
|
1933
|
-
return formatCheckMessages(
|
|
1938
|
+
return formatCheckMessages(_0xfe924d['messages']);
|
|
1934
1939
|
},
|
|
1935
|
-
async 'read_history'(
|
|
1936
|
-
const
|
|
1937
|
-
return formatHistory(
|
|
1940
|
+
async 'read_history'(_0x4e164d) {
|
|
1941
|
+
const _0x3c2e1f = _0x545f49, _0x25514e = await _0x29d686['client'][_0x3c2e1f(_0x332117._0x1a6717)](_0x4e164d);
|
|
1942
|
+
return formatHistory(_0x25514e);
|
|
1938
1943
|
},
|
|
1939
1944
|
async 'list_server'() {
|
|
1940
|
-
const
|
|
1941
|
-
return formatServerDirectory(
|
|
1945
|
+
const _0xcb26ff = _0x545f49, _0x1a9b98 = await _0x29d686[_0xcb26ff(0x164)][_0xcb26ff(0x1b0)]();
|
|
1946
|
+
return formatServerDirectory(_0x1a9b98);
|
|
1942
1947
|
},
|
|
1943
|
-
async 'list_tasks'(
|
|
1944
|
-
const
|
|
1945
|
-
let
|
|
1946
|
-
if (
|
|
1948
|
+
async 'list_tasks'(_0x3189af) {
|
|
1949
|
+
const _0x53bc0e = _0x545f49, _0x528ab0 = await _0x29d686[_0x53bc0e(_0x40cee8._0x259c4e)][_0x53bc0e(_0x40cee8._0x5b5e94)](_0x3189af);
|
|
1950
|
+
let _0x19548c;
|
|
1951
|
+
if (_0x29d686[_0x53bc0e(0x139)] && _0x29d686['agentId'])
|
|
1947
1952
|
try {
|
|
1948
|
-
const
|
|
1949
|
-
if (
|
|
1950
|
-
const
|
|
1951
|
-
|
|
1952
|
-
for (const
|
|
1953
|
-
if (
|
|
1953
|
+
const _0x30da18 = await fetch(_0x29d686[_0x53bc0e(0x139)] + '/workers/list?agent_id=' + encodeURIComponent(_0x29d686[_0x53bc0e(0x19d)])), _0x44c1cd = await _0x30da18[_0x53bc0e(_0x40cee8._0x406d49)]();
|
|
1954
|
+
if (_0x44c1cd['ok']) {
|
|
1955
|
+
const _0x535162 = _0x3189af[_0x53bc0e(0x1ac)] + ':';
|
|
1956
|
+
_0x19548c = new Set();
|
|
1957
|
+
for (const _0xa9befe of _0x44c1cd[_0x53bc0e(_0x40cee8._0x5c75b9)]) {
|
|
1958
|
+
if (_0xa9befe[_0x53bc0e(_0x40cee8._0x198d21)] === _0x53bc0e(0x10b))
|
|
1954
1959
|
continue;
|
|
1955
|
-
if (
|
|
1956
|
-
const
|
|
1957
|
-
if (
|
|
1958
|
-
|
|
1960
|
+
if (_0xa9befe['thread_target']?.[_0x53bc0e(0x229)](_0x535162)) {
|
|
1961
|
+
const _0x21747e = _0xa9befe['thread_target'][_0x53bc0e(0x180)](_0x535162[_0x53bc0e(0x13b)]), _0x112e6d = _0x528ab0[_0x53bc0e(_0x40cee8._0x2cf0c3)]['find'](_0x2105a7 => _0x2105a7[_0x53bc0e(0x106)]?.['startsWith'](_0x21747e) === !![]);
|
|
1962
|
+
if (_0x112e6d?.[_0x53bc0e(_0x40cee8._0x6b344f)] != null) {
|
|
1963
|
+
_0x19548c[_0x53bc0e(_0x40cee8._0x276076)](_0x112e6d['taskNumber']);
|
|
1959
1964
|
continue;
|
|
1960
1965
|
}
|
|
1961
1966
|
}
|
|
1962
|
-
if (
|
|
1963
|
-
const
|
|
1964
|
-
|
|
1967
|
+
if (_0xa9befe[_0x53bc0e(_0x40cee8._0x5bc254)]) {
|
|
1968
|
+
const _0x59e8b5 = _0x528ab0[_0x53bc0e(_0x40cee8._0x2020bf)][_0x53bc0e(_0x40cee8._0x409cac)](_0x19c056 => _0x19c056[_0x53bc0e(0x1fb)] === _0xa9befe[_0x53bc0e(0x1b7)]);
|
|
1969
|
+
_0x59e8b5?.[_0x53bc0e(_0x40cee8._0x32bfc1)] != null && _0x19548c[_0x53bc0e(0x196)](_0x59e8b5['taskNumber']);
|
|
1965
1970
|
}
|
|
1966
1971
|
}
|
|
1967
1972
|
}
|
|
1968
1973
|
} catch {
|
|
1969
1974
|
}
|
|
1970
|
-
return formatTaskList(
|
|
1975
|
+
return formatTaskList(_0x528ab0[_0x53bc0e(0x169)], _0x19548c);
|
|
1971
1976
|
},
|
|
1972
|
-
async 'create_tasks'(
|
|
1973
|
-
const
|
|
1974
|
-
|
|
1975
|
-
const
|
|
1976
|
-
return formatCreatedTasks(
|
|
1977
|
+
async 'create_tasks'(_0x5700f0) {
|
|
1978
|
+
const _0x3534da = _0x545f49;
|
|
1979
|
+
_0x366b57('create_tasks', _0x5700f0['channel']);
|
|
1980
|
+
const _0x1d676c = await _0x29d686[_0x3534da(_0x1b6897._0x960a13)][_0x3534da(0x238)](_0x5700f0);
|
|
1981
|
+
return formatCreatedTasks(_0x1d676c[_0x3534da(_0x1b6897._0x1520d5)]);
|
|
1977
1982
|
},
|
|
1978
|
-
async 'claim_tasks'(
|
|
1979
|
-
const
|
|
1980
|
-
if (
|
|
1981
|
-
|
|
1982
|
-
if (
|
|
1983
|
-
throw new Error(
|
|
1984
|
-
if (!
|
|
1985
|
-
throw new Error(
|
|
1983
|
+
async 'claim_tasks'(_0x1c6849) {
|
|
1984
|
+
const _0x573fcf = _0x545f49;
|
|
1985
|
+
if (_0x29d686[_0x573fcf(0xd5)]) {
|
|
1986
|
+
_0x366b57(_0x573fcf(_0x1fb41d._0x5d5ec4), _0x1c6849[_0x573fcf(_0x1fb41d._0x20547b)]);
|
|
1987
|
+
if (_0x1c6849[_0x573fcf(0x124)] && _0x1c6849[_0x573fcf(_0x1fb41d._0x259c1f)]['length'] > 0x0)
|
|
1988
|
+
throw new Error(_0x573fcf(_0x1fb41d._0x39611b));
|
|
1989
|
+
if (!_0x1c6849[_0x573fcf(_0x1fb41d._0x3c9635)] || _0x1c6849[_0x573fcf(_0x1fb41d._0x1c85bb)][_0x573fcf(_0x1fb41d._0xc46ceb)] === 0x0)
|
|
1990
|
+
throw new Error('claim_tasks:\x20worker\x20can\x20only\x20claim\x20subtasks\x20inside\x20its\x20own\x20task\x20thread\x20—\x20provide\x20subtask_numbers.');
|
|
1986
1991
|
}
|
|
1987
|
-
const
|
|
1988
|
-
const
|
|
1989
|
-
if (!
|
|
1990
|
-
return
|
|
1992
|
+
const _0x50f8e8 = await _0x29d686[_0x573fcf(_0x1fb41d._0x4e15ca)][_0x573fcf(0xe2)](_0x1c6849), _0x2fb896 = await Promise['all'](_0x50f8e8[_0x573fcf(_0x1fb41d._0xdf7d00)][_0x573fcf(0x182)](async _0x558001 => {
|
|
1993
|
+
const _0x562f73 = _0x573fcf;
|
|
1994
|
+
if (!_0x558001[_0x562f73(0x101)] || !_0x558001[_0x562f73(0x106)])
|
|
1995
|
+
return _0x558001;
|
|
1991
1996
|
try {
|
|
1992
|
-
const
|
|
1993
|
-
'channel':
|
|
1994
|
-
'executionMode':
|
|
1995
|
-
'messageId':
|
|
1996
|
-
'taskId':
|
|
1997
|
-
'taskNumber':
|
|
1998
|
-
'threadNumber':
|
|
1997
|
+
const _0x59eae5 = await _0x462d78({
|
|
1998
|
+
'channel': _0x1c6849[_0x562f73(_0xb680a2._0x337d25)],
|
|
1999
|
+
'executionMode': _0x558001[_0x562f73(0x138)],
|
|
2000
|
+
'messageId': _0x558001['messageId'],
|
|
2001
|
+
'taskId': _0x558001[_0x562f73(_0xb680a2._0x1d8957)],
|
|
2002
|
+
'taskNumber': _0x558001[_0x562f73(0x146)],
|
|
2003
|
+
'threadNumber': _0x558001[_0x562f73(0x21a)]
|
|
1999
2004
|
});
|
|
2000
|
-
return
|
|
2001
|
-
...
|
|
2002
|
-
...
|
|
2003
|
-
} :
|
|
2004
|
-
} catch (
|
|
2005
|
+
return _0x59eae5 ? {
|
|
2006
|
+
..._0x558001,
|
|
2007
|
+
..._0x59eae5
|
|
2008
|
+
} : _0x558001;
|
|
2009
|
+
} catch (_0x38e515) {
|
|
2005
2010
|
return {
|
|
2006
|
-
...
|
|
2007
|
-
'workerHandoffError':
|
|
2011
|
+
..._0x558001,
|
|
2012
|
+
'workerHandoffError': _0x38e515 instanceof Error ? _0x38e515[_0x562f73(0x174)] : _0x562f73(0x11b)
|
|
2008
2013
|
};
|
|
2009
2014
|
}
|
|
2010
2015
|
}));
|
|
2011
|
-
return formatClaimTaskResults(
|
|
2016
|
+
return formatClaimTaskResults(_0x2fb896);
|
|
2012
2017
|
},
|
|
2013
|
-
async 'unclaim_task'(
|
|
2014
|
-
const
|
|
2015
|
-
if (
|
|
2016
|
-
|
|
2017
|
-
if (
|
|
2018
|
-
throw new Error(
|
|
2018
|
+
async 'unclaim_task'(_0x3e5888) {
|
|
2019
|
+
const _0x58afcb = _0x545f49;
|
|
2020
|
+
if (_0x29d686[_0x58afcb(0xd5)]) {
|
|
2021
|
+
_0x366b57(_0x58afcb(0x24f), _0x3e5888['channel']);
|
|
2022
|
+
if (_0x3e5888['subtask_number'] == null)
|
|
2023
|
+
throw new Error(_0x58afcb(0x25a));
|
|
2019
2024
|
}
|
|
2020
|
-
const
|
|
2021
|
-
return formatUnclaimTaskResult(
|
|
2025
|
+
const _0x1463f4 = await _0x29d686['client'][_0x58afcb(_0x31e873._0x1d7ed7)](_0x3e5888);
|
|
2026
|
+
return formatUnclaimTaskResult(_0x1463f4);
|
|
2022
2027
|
},
|
|
2023
|
-
async 'update_task_status'(
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2026
|
-
const
|
|
2027
|
-
return formatUpdateTaskStatusResult(
|
|
2028
|
+
async 'update_task_status'(_0x1bd7e3) {
|
|
2029
|
+
const _0x279a9e = _0x545f49;
|
|
2030
|
+
_0x366b57('update_task_status', _0x1bd7e3['channel']);
|
|
2031
|
+
const _0x2d1872 = await _0x29d686[_0x279a9e(0x164)][_0x279a9e(_0x2da306._0x1ec14a)](_0x1bd7e3);
|
|
2032
|
+
return formatUpdateTaskStatusResult(_0x2d1872);
|
|
2028
2033
|
},
|
|
2029
|
-
async 'upload_file'(
|
|
2030
|
-
const
|
|
2031
|
-
sizeBytes:
|
|
2032
|
-
...
|
|
2033
|
-
} =
|
|
2034
|
-
'channel':
|
|
2035
|
-
...
|
|
2034
|
+
async 'upload_file'(_0x1abac9) {
|
|
2035
|
+
const _0x43ebb4 = _0x545f49, _0x17d854 = await _0x29d686[_0x43ebb4(_0x201a22._0x3db4f0)](_0x1abac9['file_path']), {
|
|
2036
|
+
sizeBytes: _0x156b0a,
|
|
2037
|
+
..._0x1bf105
|
|
2038
|
+
} = _0x17d854, _0xaa3eef = await _0x29d686[_0x43ebb4(_0x201a22._0xea62ed)]['uploadFile']({
|
|
2039
|
+
'channel': _0x1abac9[_0x43ebb4(_0x201a22._0x5d7aaf)],
|
|
2040
|
+
..._0x1bf105
|
|
2036
2041
|
});
|
|
2037
|
-
return formatUploadResult(
|
|
2042
|
+
return formatUploadResult(_0xaa3eef);
|
|
2038
2043
|
},
|
|
2039
|
-
async 'view_file'(
|
|
2040
|
-
const
|
|
2041
|
-
if (
|
|
2042
|
-
return formatViewFileResult(
|
|
2043
|
-
const
|
|
2044
|
-
'attachmentId':
|
|
2045
|
-
'contentType':
|
|
2046
|
-
'data':
|
|
2047
|
-
'originalFilename':
|
|
2044
|
+
async 'view_file'(_0x4abbe6) {
|
|
2045
|
+
const _0x111aa3 = _0x545f49, _0xe1ba5e = await _0x29d686[_0x111aa3(0x113)][_0x111aa3(_0x4adf19._0x28df79)](_0x4abbe6['attachment_id']);
|
|
2046
|
+
if (_0xe1ba5e)
|
|
2047
|
+
return formatViewFileResult(_0xe1ba5e, !![]);
|
|
2048
|
+
const _0x10994f = await _0x29d686[_0x111aa3(0x164)][_0x111aa3(_0x4adf19._0x3f6853)](_0x4abbe6[_0x111aa3(0x177)]), _0xe41cfc = await _0x29d686['attachmentCache'][_0x111aa3(0xde)]({
|
|
2049
|
+
'attachmentId': _0x4abbe6[_0x111aa3(_0x4adf19._0x55f889)],
|
|
2050
|
+
'contentType': _0x10994f['contentType'],
|
|
2051
|
+
'data': _0x10994f[_0x111aa3(0x24a)],
|
|
2052
|
+
'originalFilename': _0x10994f[_0x111aa3(0x1e9)]
|
|
2048
2053
|
});
|
|
2049
|
-
return formatViewFileResult(
|
|
2054
|
+
return formatViewFileResult(_0xe41cfc, ![]);
|
|
2050
2055
|
},
|
|
2051
|
-
async 'get_worker_status'(
|
|
2052
|
-
const
|
|
2053
|
-
if (!
|
|
2054
|
-
return
|
|
2055
|
-
const
|
|
2056
|
-
if (!
|
|
2057
|
-
return
|
|
2058
|
-
return
|
|
2056
|
+
async 'get_worker_status'(_0x484ee7) {
|
|
2057
|
+
const _0xa4ac0c = _0x545f49;
|
|
2058
|
+
if (!_0x29d686[_0xa4ac0c(_0x94e9b1._0x31f231)])
|
|
2059
|
+
return _0xa4ac0c(_0x94e9b1._0x4ef4af);
|
|
2060
|
+
const _0x28ede9 = await fetch(_0x29d686['daemonLocalUrl'] + _0xa4ac0c(_0x94e9b1._0x48d88b) + encodeURIComponent(_0x484ee7[_0xa4ac0c(_0x94e9b1._0x9615ca)])), _0x310d67 = await _0x28ede9['json']();
|
|
2061
|
+
if (!_0x310d67['ok'])
|
|
2062
|
+
return _0xa4ac0c(_0x94e9b1._0x424133) + _0x484ee7[_0xa4ac0c(_0x94e9b1._0x9615ca)] + _0xa4ac0c(_0x94e9b1._0x3cfbbd);
|
|
2063
|
+
return _0xa4ac0c(0x1b2) + _0x484ee7[_0xa4ac0c(_0x94e9b1._0x3f2c72)] + _0xa4ac0c(0x1d3) + _0x310d67[_0xa4ac0c(_0x94e9b1._0x3ff84d)];
|
|
2059
2064
|
},
|
|
2060
|
-
async 'park_worker'(
|
|
2061
|
-
const
|
|
2062
|
-
if (!
|
|
2063
|
-
return
|
|
2064
|
-
const
|
|
2065
|
-
'method':
|
|
2066
|
-
'headers': { 'Content-Type':
|
|
2067
|
-
'body': JSON[
|
|
2068
|
-
}),
|
|
2069
|
-
if (!
|
|
2070
|
-
throw new Error(
|
|
2071
|
-
return
|
|
2065
|
+
async 'park_worker'(_0x2f3cfc) {
|
|
2066
|
+
const _0x33242a = _0x545f49;
|
|
2067
|
+
if (!_0x29d686['daemonLocalUrl'])
|
|
2068
|
+
return 'Worker\x20features\x20not\x20available';
|
|
2069
|
+
const _0x1e1d20 = await fetch(_0x29d686[_0x33242a(0x139)] + '/workers/park', {
|
|
2070
|
+
'method': _0x33242a(0x148),
|
|
2071
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2072
|
+
'body': JSON[_0x33242a(0x1ab)]({ 'work_key': _0x2f3cfc[_0x33242a(_0x4ef5db._0x2bbc7b)] })
|
|
2073
|
+
}), _0x164bb8 = await _0x1e1d20[_0x33242a(0x17d)]();
|
|
2074
|
+
if (!_0x164bb8['ok'])
|
|
2075
|
+
throw new Error(_0x164bb8['error'] ?? _0x33242a(_0x4ef5db._0x33ec62));
|
|
2076
|
+
return _0x33242a(0x1b2) + _0x2f3cfc[_0x33242a(_0x4ef5db._0x28400f)] + _0x33242a(0x11d);
|
|
2072
2077
|
},
|
|
2073
|
-
async 'mark_waiting_input'(
|
|
2074
|
-
const
|
|
2075
|
-
if (!
|
|
2078
|
+
async 'mark_waiting_input'(_0x2948b1) {
|
|
2079
|
+
const _0x43825a = _0x545f49;
|
|
2080
|
+
if (!_0x29d686[_0x43825a(_0x4d77e8._0x3b151b)] || !_0x29d686['agentId'])
|
|
2076
2081
|
return 'Worker\x20features\x20not\x20available\x20(daemon\x20local\x20URL\x20or\x20agent\x20ID\x20not\x20configured)';
|
|
2077
|
-
const
|
|
2078
|
-
'method':
|
|
2079
|
-
'headers': { 'Content-Type':
|
|
2080
|
-
'body': JSON[
|
|
2081
|
-
'work_key':
|
|
2082
|
-
'agent_id':
|
|
2082
|
+
const _0x4ab130 = await fetch(_0x29d686[_0x43825a(_0x4d77e8._0xfe08ae)] + _0x43825a(0x159), {
|
|
2083
|
+
'method': _0x43825a(_0x4d77e8._0x3b32d4),
|
|
2084
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2085
|
+
'body': JSON['stringify']({
|
|
2086
|
+
'work_key': _0x2948b1['work_key'],
|
|
2087
|
+
'agent_id': _0x29d686[_0x43825a(0x19d)]
|
|
2083
2088
|
})
|
|
2084
|
-
}),
|
|
2085
|
-
if (!
|
|
2086
|
-
throw new Error(
|
|
2087
|
-
return
|
|
2089
|
+
}), _0x370243 = await _0x4ab130['json']();
|
|
2090
|
+
if (!_0x370243['ok'])
|
|
2091
|
+
throw new Error(_0x370243[_0x43825a(0x259)] ?? _0x43825a(_0x4d77e8._0x4358bc));
|
|
2092
|
+
return _0x43825a(0x1b2) + _0x2948b1[_0x43825a(_0x4d77e8._0x3c25cf)] + _0x43825a(0x11f);
|
|
2088
2093
|
},
|
|
2089
|
-
async 'escalate_to_main'(
|
|
2090
|
-
const
|
|
2091
|
-
if (!
|
|
2092
|
-
return
|
|
2093
|
-
const
|
|
2094
|
-
'method':
|
|
2095
|
-
'headers': { 'Content-Type':
|
|
2094
|
+
async 'escalate_to_main'(_0x55e292) {
|
|
2095
|
+
const _0x146a9c = _0x545f49;
|
|
2096
|
+
if (!_0x29d686['daemonLocalUrl'])
|
|
2097
|
+
return _0x146a9c(_0x2d09f2._0x2afaba);
|
|
2098
|
+
const _0x56f44b = await fetch(_0x29d686[_0x146a9c(0x139)] + _0x146a9c(_0x2d09f2._0x2b00e6), {
|
|
2099
|
+
'method': _0x146a9c(0x148),
|
|
2100
|
+
'headers': { 'Content-Type': 'application/json' },
|
|
2096
2101
|
'body': JSON['stringify']({
|
|
2097
|
-
'work_key':
|
|
2098
|
-
'reason':
|
|
2102
|
+
'work_key': _0x55e292[_0x146a9c(_0x2d09f2._0x20065b)],
|
|
2103
|
+
'reason': _0x55e292[_0x146a9c(_0x2d09f2._0x43861e)]
|
|
2099
2104
|
})
|
|
2100
|
-
}),
|
|
2101
|
-
if (!
|
|
2102
|
-
throw new Error(
|
|
2103
|
-
return
|
|
2105
|
+
}), _0x5be92e = await _0x56f44b[_0x146a9c(0x17d)]();
|
|
2106
|
+
if (!_0x5be92e['ok'])
|
|
2107
|
+
throw new Error(_0x5be92e['error'] ?? _0x146a9c(_0x2d09f2._0x1d359d));
|
|
2108
|
+
return _0x146a9c(0x17e) + _0x55e292[_0x146a9c(_0x2d09f2._0x43861e)];
|
|
2104
2109
|
}
|
|
2105
2110
|
};
|
|
2106
2111
|
}
|
|
2107
|
-
function textResult(
|
|
2108
|
-
const _0x5c374b = _0x548baf;
|
|
2112
|
+
function textResult(_0x2f3b3c, _0x135277 = ![]) {
|
|
2109
2113
|
return {
|
|
2110
2114
|
'content': [{
|
|
2111
|
-
'type':
|
|
2112
|
-
'text':
|
|
2115
|
+
'type': 'text',
|
|
2116
|
+
'text': _0x2f3b3c
|
|
2113
2117
|
}],
|
|
2114
|
-
...
|
|
2118
|
+
..._0x135277 ? { 'isError': !![] } : {}
|
|
2115
2119
|
};
|
|
2116
2120
|
}
|
|
2117
|
-
async function registerChatBridgeTools(
|
|
2118
|
-
const
|
|
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
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2121
|
+
async function registerChatBridgeTools(_0x570a2b, _0x2b0b21, _0x11ee93) {
|
|
2122
|
+
const _0x3150b3 = {
|
|
2123
|
+
_0x229449: 0x152,
|
|
2124
|
+
_0x5bad27: 0x222,
|
|
2125
|
+
_0x2aac82: 0x21c,
|
|
2126
|
+
_0x238a93: 0x20d,
|
|
2127
|
+
_0x4e4fb9: 0x1a1,
|
|
2128
|
+
_0x6fee: 0x24e,
|
|
2129
|
+
_0x3dea10: 0x221,
|
|
2130
|
+
_0x4d257f: 0xd6,
|
|
2131
|
+
_0x3709ac: 0x200,
|
|
2132
|
+
_0x2b89ef: 0x20d,
|
|
2133
|
+
_0x3d7df5: 0x221,
|
|
2134
|
+
_0x2bf71b: 0x1ba,
|
|
2135
|
+
_0x5cbb33: 0x1d6,
|
|
2136
|
+
_0x51a1e1: 0x222,
|
|
2137
|
+
_0x2a9eec: 0xf3,
|
|
2138
|
+
_0x41d6b7: 0x231,
|
|
2139
|
+
_0x29af7c: 0x20d,
|
|
2140
|
+
_0xb1ed63: 0x1aa,
|
|
2141
|
+
_0x3aaa48: 0x20d,
|
|
2142
|
+
_0x4cfff7: 0x222,
|
|
2143
|
+
_0x15eb0b: 0x222,
|
|
2144
|
+
_0x557fe7: 0x20d,
|
|
2145
|
+
_0x3b8fbd: 0x1a1,
|
|
2146
|
+
_0x67f168: 0x202,
|
|
2147
|
+
_0x52e9ee: 0x1c2,
|
|
2148
|
+
_0x1a9d6a: 0x200,
|
|
2149
|
+
_0x2106c4: 0x21c,
|
|
2150
|
+
_0x2cd696: 0x244,
|
|
2151
|
+
_0x2edeac: 0x222,
|
|
2152
|
+
_0x206abc: 0x222,
|
|
2153
|
+
_0x64477f: 0x20d,
|
|
2154
|
+
_0x49b797: 0x24f,
|
|
2155
|
+
_0xb6a4ca: 0x24b,
|
|
2156
|
+
_0x2907b9: 0x200,
|
|
2157
|
+
_0x12f989: 0x200,
|
|
2158
|
+
_0x5a313c: 0x1e6,
|
|
2159
|
+
_0x186c10: 0x222,
|
|
2160
|
+
_0x12a2ca: 0x200,
|
|
2161
|
+
_0x4bd576: 0x221,
|
|
2162
|
+
_0x3f1df5: 0x192,
|
|
2163
|
+
_0x327bb0: 0x221,
|
|
2164
|
+
_0x27e680: 0x1ed,
|
|
2165
|
+
_0x214d7f: 0x1c6,
|
|
2166
|
+
_0x399b70: 0x1e5,
|
|
2167
|
+
_0x4e5e28: 0xd5
|
|
2168
|
+
}, _0x5e3598 = { _0x200a9a: 0x14c }, _0x4c975c = {
|
|
2169
|
+
_0x165bdb: 0x243,
|
|
2170
|
+
_0x55c1bb: 0x174,
|
|
2171
|
+
_0x121998: 0x197
|
|
2172
|
+
}, _0x143c9f = { _0x57033c: 0x198 }, _0xbdceee = { _0x266313: 0x1c6 }, _0x4a5cc3 = {
|
|
2173
|
+
_0x3a8ca9: 0x174,
|
|
2174
|
+
_0x295ff6: 0x186
|
|
2175
|
+
}, _0x476baa = { _0x4f25f1: 0x1f5 }, _0x54bb0d = { _0x496b13: 0x174 }, _0x151bf0 = { _0x2907b3: 0x1c2 }, _0x896bbd = {
|
|
2176
|
+
_0x1dc7b6: 0x246,
|
|
2177
|
+
_0x13a3c8: 0x174
|
|
2178
|
+
}, _0x43bc1b = {
|
|
2179
|
+
_0x217641: 0x204,
|
|
2180
|
+
_0x44b5b4: 0x174
|
|
2181
|
+
}, _0x125032 = { _0x48c701: 0x174 }, _0x407ece = {
|
|
2182
|
+
_0x213b93: 0xd1,
|
|
2183
|
+
_0x328db4: 0x174
|
|
2184
|
+
}, _0x248ed9 = {
|
|
2185
|
+
_0x4d355f: 0x174,
|
|
2186
|
+
_0x443b9c: 0x1c8
|
|
2187
|
+
}, _0x2cdefa = {
|
|
2188
|
+
_0x56c84a: 0x174,
|
|
2189
|
+
_0x5f086b: 0x10c
|
|
2190
|
+
}, _0x305878 = _0x3b2449, {z: _0x5b63ef} = await import(_0x305878(0x131));
|
|
2191
|
+
_0x570a2b['tool'](_0x305878(_0x3150b3._0x229449), _0x305878(0x224), {
|
|
2192
|
+
'target': _0x5b63ef[_0x305878(0x222)](),
|
|
2193
|
+
'content': _0x5b63ef[_0x305878(_0x3150b3._0x5bad27)](),
|
|
2194
|
+
'attachment_ids': _0x5b63ef[_0x305878(_0x3150b3._0x2aac82)](_0x5b63ef[_0x305878(0x222)]())[_0x305878(_0x3150b3._0x238a93)](),
|
|
2195
|
+
'visibility': _0x5b63ef[_0x305878(_0x3150b3._0x4e4fb9)]([
|
|
2196
|
+
'public',
|
|
2197
|
+
'aside'
|
|
2198
|
+
])[_0x305878(0x20d)]()[_0x305878(_0x3150b3._0x6fee)](_0x305878(0x19e))
|
|
2199
|
+
}, async _0x1179e9 => {
|
|
2200
|
+
const _0x577494 = _0x305878;
|
|
2179
2201
|
try {
|
|
2180
|
-
return textResult(await
|
|
2181
|
-
} catch (
|
|
2182
|
-
return textResult(
|
|
2202
|
+
return textResult(await _0x2b0b21['send_message'](_0x1179e9));
|
|
2203
|
+
} catch (_0x19dbe8) {
|
|
2204
|
+
return textResult(_0x19dbe8 instanceof Error ? _0x19dbe8[_0x577494(_0x2cdefa._0x56c84a)] : _0x577494(_0x2cdefa._0x5f086b), !![]);
|
|
2183
2205
|
}
|
|
2184
|
-
}),
|
|
2185
|
-
const
|
|
2206
|
+
}), _0x570a2b['tool'](_0x305878(0x18f), _0x305878(0x129), {}, async () => {
|
|
2207
|
+
const _0xde1dfd = _0x305878;
|
|
2186
2208
|
try {
|
|
2187
|
-
return textResult(await
|
|
2188
|
-
} catch (
|
|
2189
|
-
return textResult(
|
|
2209
|
+
return textResult(await _0x2b0b21[_0xde1dfd(0x18f)]());
|
|
2210
|
+
} catch (_0x49ee3c) {
|
|
2211
|
+
return textResult(_0x49ee3c instanceof Error ? _0x49ee3c[_0xde1dfd(_0x248ed9._0x4d355f)] : _0xde1dfd(_0x248ed9._0x443b9c), !![]);
|
|
2190
2212
|
}
|
|
2191
|
-
}),
|
|
2192
|
-
'channel':
|
|
2193
|
-
'limit':
|
|
2194
|
-
'before':
|
|
2195
|
-
'after':
|
|
2196
|
-
}, async
|
|
2197
|
-
const
|
|
2213
|
+
}), _0x570a2b[_0x305878(_0x3150b3._0x3dea10)](_0x305878(0xd1), _0x305878(_0x3150b3._0x4d257f), {
|
|
2214
|
+
'channel': _0x5b63ef[_0x305878(0x222)](),
|
|
2215
|
+
'limit': _0x5b63ef[_0x305878(_0x3150b3._0x3709ac)]()[_0x305878(_0x3150b3._0x2b89ef)](),
|
|
2216
|
+
'before': _0x5b63ef[_0x305878(_0x3150b3._0x3709ac)]()[_0x305878(_0x3150b3._0x238a93)](),
|
|
2217
|
+
'after': _0x5b63ef[_0x305878(0x200)]()[_0x305878(0x20d)]()
|
|
2218
|
+
}, async _0x1c5c00 => {
|
|
2219
|
+
const _0x51a880 = _0x305878;
|
|
2198
2220
|
try {
|
|
2199
|
-
return textResult(await
|
|
2200
|
-
} catch (
|
|
2201
|
-
return textResult(
|
|
2221
|
+
return textResult(await _0x2b0b21[_0x51a880(_0x407ece._0x213b93)](_0x1c5c00));
|
|
2222
|
+
} catch (_0x2ed143) {
|
|
2223
|
+
return textResult(_0x2ed143 instanceof Error ? _0x2ed143[_0x51a880(_0x407ece._0x328db4)] : 'read_history\x20failed', !![]);
|
|
2202
2224
|
}
|
|
2203
|
-
}),
|
|
2204
|
-
const
|
|
2225
|
+
}), _0x570a2b[_0x305878(_0x3150b3._0x3d7df5)](_0x305878(_0x3150b3._0x2bf71b), _0x305878(0x153), {}, async () => {
|
|
2226
|
+
const _0x4d55a8 = _0x305878;
|
|
2205
2227
|
try {
|
|
2206
|
-
return textResult(await
|
|
2207
|
-
} catch (
|
|
2208
|
-
return textResult(
|
|
2228
|
+
return textResult(await _0x2b0b21[_0x4d55a8(0x1ba)]());
|
|
2229
|
+
} catch (_0x430a07) {
|
|
2230
|
+
return textResult(_0x430a07 instanceof Error ? _0x430a07[_0x4d55a8(_0x125032._0x48c701)] : 'list_server\x20failed', !![]);
|
|
2209
2231
|
}
|
|
2210
|
-
}),
|
|
2211
|
-
'channel':
|
|
2212
|
-
'status':
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
])[
|
|
2218
|
-
}, async
|
|
2219
|
-
const
|
|
2232
|
+
}), _0x570a2b[_0x305878(0x221)](_0x305878(0x204), _0x305878(_0x3150b3._0x5cbb33), {
|
|
2233
|
+
'channel': _0x5b63ef[_0x305878(_0x3150b3._0x51a1e1)](),
|
|
2234
|
+
'status': _0x5b63ef[_0x305878(_0x3150b3._0x4e4fb9)]([
|
|
2235
|
+
'todo',
|
|
2236
|
+
_0x305878(_0x3150b3._0x2a9eec),
|
|
2237
|
+
_0x305878(_0x3150b3._0x41d6b7),
|
|
2238
|
+
_0x305878(0x25b)
|
|
2239
|
+
])[_0x305878(_0x3150b3._0x29af7c)]()
|
|
2240
|
+
}, async _0x732373 => {
|
|
2241
|
+
const _0x22b058 = _0x305878;
|
|
2220
2242
|
try {
|
|
2221
|
-
return textResult(await
|
|
2222
|
-
} catch (
|
|
2223
|
-
return textResult(
|
|
2243
|
+
return textResult(await _0x2b0b21[_0x22b058(_0x43bc1b._0x217641)](_0x732373));
|
|
2244
|
+
} catch (_0x5435a7) {
|
|
2245
|
+
return textResult(_0x5435a7 instanceof Error ? _0x5435a7[_0x22b058(_0x43bc1b._0x44b5b4)] : 'list_tasks\x20failed', !![]);
|
|
2224
2246
|
}
|
|
2225
|
-
}),
|
|
2226
|
-
'channel':
|
|
2227
|
-
'idempotency_key':
|
|
2228
|
-
'tasks':
|
|
2229
|
-
'title':
|
|
2230
|
-
'description':
|
|
2231
|
-
'priority':
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
])[
|
|
2247
|
+
}), _0x570a2b[_0x305878(_0x3150b3._0x3dea10)]('create_tasks', _0x305878(_0x3150b3._0xb1ed63), {
|
|
2248
|
+
'channel': _0x5b63ef[_0x305878(_0x3150b3._0x51a1e1)](),
|
|
2249
|
+
'idempotency_key': _0x5b63ef['string']()[_0x305878(_0x3150b3._0x3aaa48)](),
|
|
2250
|
+
'tasks': _0x5b63ef[_0x305878(0x21c)](_0x5b63ef[_0x305878(0x226)]({
|
|
2251
|
+
'title': _0x5b63ef[_0x305878(_0x3150b3._0x4cfff7)](),
|
|
2252
|
+
'description': _0x5b63ef[_0x305878(_0x3150b3._0x15eb0b)]()[_0x305878(_0x3150b3._0x557fe7)](),
|
|
2253
|
+
'priority': _0x5b63ef[_0x305878(_0x3150b3._0x3b8fbd)]([
|
|
2254
|
+
_0x305878(_0x3150b3._0x67f168),
|
|
2255
|
+
'medium',
|
|
2256
|
+
_0x305878(0x20c),
|
|
2257
|
+
_0x305878(0x185)
|
|
2258
|
+
])[_0x305878(0x20d)]()
|
|
2237
2259
|
}))
|
|
2238
|
-
}, async
|
|
2239
|
-
const
|
|
2260
|
+
}, async _0x218712 => {
|
|
2261
|
+
const _0x23953c = _0x305878;
|
|
2240
2262
|
try {
|
|
2241
|
-
return textResult(await
|
|
2242
|
-
} catch (
|
|
2243
|
-
return textResult(
|
|
2263
|
+
return textResult(await _0x2b0b21[_0x23953c(_0x896bbd._0x1dc7b6)](_0x218712));
|
|
2264
|
+
} catch (_0x18d7b1) {
|
|
2265
|
+
return textResult(_0x18d7b1 instanceof Error ? _0x18d7b1[_0x23953c(_0x896bbd._0x13a3c8)] : _0x23953c(0x17c), !![]);
|
|
2244
2266
|
}
|
|
2245
|
-
}),
|
|
2246
|
-
'channel':
|
|
2247
|
-
'task_numbers':
|
|
2248
|
-
'subtask_numbers':
|
|
2249
|
-
'message_ids':
|
|
2250
|
-
'evidence':
|
|
2251
|
-
'create_thread':
|
|
2252
|
-
'create_task':
|
|
2267
|
+
}), _0x570a2b[_0x305878(0x221)](_0x305878(_0x3150b3._0x52e9ee), _0x305878(0x1b5), {
|
|
2268
|
+
'channel': _0x5b63ef['string'](),
|
|
2269
|
+
'task_numbers': _0x5b63ef['array'](_0x5b63ef[_0x305878(_0x3150b3._0x1a9d6a)]())[_0x305878(0x20d)](),
|
|
2270
|
+
'subtask_numbers': _0x5b63ef[_0x305878(_0x3150b3._0x2106c4)](_0x5b63ef[_0x305878(0x200)]())[_0x305878(_0x3150b3._0x29af7c)](),
|
|
2271
|
+
'message_ids': _0x5b63ef[_0x305878(0x21c)](_0x5b63ef[_0x305878(0x222)]())[_0x305878(0x20d)](),
|
|
2272
|
+
'evidence': _0x5b63ef[_0x305878(_0x3150b3._0x2cd696)](_0x5b63ef[_0x305878(_0x3150b3._0x2edeac)](), _0x5b63ef['object']({
|
|
2273
|
+
'create_thread': _0x5b63ef[_0x305878(0x17b)]()['optional'](),
|
|
2274
|
+
'create_task': _0x5b63ef[_0x305878(0x17b)]()[_0x305878(0x20d)]()
|
|
2253
2275
|
}))['optional'](),
|
|
2254
|
-
'idempotency_key':
|
|
2255
|
-
}, async
|
|
2256
|
-
const
|
|
2276
|
+
'idempotency_key': _0x5b63ef[_0x305878(_0x3150b3._0x206abc)]()[_0x305878(_0x3150b3._0x64477f)]()
|
|
2277
|
+
}, async _0x4e28fb => {
|
|
2278
|
+
const _0x1a5f06 = _0x305878;
|
|
2257
2279
|
try {
|
|
2258
|
-
return textResult(await
|
|
2259
|
-
} catch (
|
|
2260
|
-
return textResult(
|
|
2280
|
+
return textResult(await _0x2b0b21[_0x1a5f06(_0x151bf0._0x2907b3)](_0x4e28fb));
|
|
2281
|
+
} catch (_0x2f2bf9) {
|
|
2282
|
+
return textResult(_0x2f2bf9 instanceof Error ? _0x2f2bf9['message'] : 'claim_tasks\x20failed', !![]);
|
|
2261
2283
|
}
|
|
2262
|
-
}),
|
|
2263
|
-
'channel':
|
|
2264
|
-
'task_number':
|
|
2265
|
-
'subtask_number':
|
|
2266
|
-
'idempotency_key':
|
|
2267
|
-
}, async
|
|
2268
|
-
const
|
|
2284
|
+
}), _0x570a2b[_0x305878(0x221)](_0x305878(_0x3150b3._0x49b797), _0x305878(_0x3150b3._0xb6a4ca), {
|
|
2285
|
+
'channel': _0x5b63ef[_0x305878(_0x3150b3._0x5bad27)](),
|
|
2286
|
+
'task_number': _0x5b63ef[_0x305878(_0x3150b3._0x2907b9)](),
|
|
2287
|
+
'subtask_number': _0x5b63ef[_0x305878(_0x3150b3._0x12f989)]()[_0x305878(0x20d)](),
|
|
2288
|
+
'idempotency_key': _0x5b63ef[_0x305878(0x222)]()[_0x305878(0x20d)]()
|
|
2289
|
+
}, async _0x159d03 => {
|
|
2290
|
+
const _0x27fda3 = _0x305878;
|
|
2269
2291
|
try {
|
|
2270
|
-
return textResult(await
|
|
2271
|
-
} catch (
|
|
2272
|
-
return textResult(
|
|
2292
|
+
return textResult(await _0x2b0b21['unclaim_task'](_0x159d03));
|
|
2293
|
+
} catch (_0x55c271) {
|
|
2294
|
+
return textResult(_0x55c271 instanceof Error ? _0x55c271[_0x27fda3(_0x54bb0d._0x496b13)] : _0x27fda3(0xf4), !![]);
|
|
2273
2295
|
}
|
|
2274
|
-
}),
|
|
2275
|
-
'channel':
|
|
2276
|
-
'task_number':
|
|
2277
|
-
'subtask_number':
|
|
2278
|
-
'status':
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2296
|
+
}), _0x570a2b[_0x305878(0x221)](_0x305878(_0x3150b3._0x5a313c), 'Update\x20task\x20status\x20by\x20channel\x20and\x20task\x20number.\x20For\x20subtasks,\x20also\x20pass\x20subtask_number.\x20Assignee\x20rules:\x20an\x20unclaimed\x20task/subtask\x20is\x20automatically\x20claimed\x20by\x20you\x20in\x20the\x20same\x20call\x20(caller\x20becomes\x20the\x20assignee);\x20if\x20the\x20task\x20is\x20already\x20claimed\x20by\x20another\x20participant,\x20the\x20server\x20returns\x20403\x20with\x20the\x20current\x20claimer\x27s\x20name\x20and\x20you\x20must\x20NOT\x20retry\x20—\x20let\x20the\x20assignee\x20finish\x20or\x20ask\x20them\x20to\x20release\x20the\x20task.\x20When\x20moving\x20work\x20to\x20in_review,\x20check\x20your\x20memory\x20or\x20channel\x20rules\x20and\x20send\x20a\x20reviewer\x20mention\x20yourself\x20when\x20appropriate.', {
|
|
2297
|
+
'channel': _0x5b63ef[_0x305878(_0x3150b3._0x186c10)](),
|
|
2298
|
+
'task_number': _0x5b63ef[_0x305878(_0x3150b3._0x12a2ca)](),
|
|
2299
|
+
'subtask_number': _0x5b63ef[_0x305878(0x200)]()['optional'](),
|
|
2300
|
+
'status': _0x5b63ef[_0x305878(_0x3150b3._0x3b8fbd)]([
|
|
2301
|
+
_0x305878(0x12c),
|
|
2302
|
+
_0x305878(0xf3),
|
|
2303
|
+
'in_review',
|
|
2304
|
+
'done'
|
|
2283
2305
|
]),
|
|
2284
|
-
'idempotency_key':
|
|
2285
|
-
}, async
|
|
2286
|
-
const
|
|
2306
|
+
'idempotency_key': _0x5b63ef[_0x305878(_0x3150b3._0x4cfff7)]()[_0x305878(0x20d)]()
|
|
2307
|
+
}, async _0x34c92c => {
|
|
2308
|
+
const _0x15009b = _0x305878;
|
|
2287
2309
|
try {
|
|
2288
|
-
return textResult(await
|
|
2289
|
-
} catch (
|
|
2290
|
-
return textResult(
|
|
2310
|
+
return textResult(await _0x2b0b21[_0x15009b(0x1e6)](_0x34c92c));
|
|
2311
|
+
} catch (_0x3d9c45) {
|
|
2312
|
+
return textResult(_0x3d9c45 instanceof Error ? _0x3d9c45[_0x15009b(0x174)] : _0x15009b(_0x476baa._0x4f25f1), !![]);
|
|
2291
2313
|
}
|
|
2292
|
-
}),
|
|
2293
|
-
'channel':
|
|
2294
|
-
'file_path':
|
|
2295
|
-
}, async
|
|
2296
|
-
const
|
|
2314
|
+
}), _0x570a2b[_0x305878(_0x3150b3._0x4bd576)](_0x305878(0x142), _0x305878(_0x3150b3._0x3f1df5), {
|
|
2315
|
+
'channel': _0x5b63ef[_0x305878(_0x3150b3._0x5bad27)](),
|
|
2316
|
+
'file_path': _0x5b63ef['string']()
|
|
2317
|
+
}, async _0x117321 => {
|
|
2318
|
+
const _0x5aa3b5 = _0x305878;
|
|
2297
2319
|
try {
|
|
2298
|
-
return textResult(await
|
|
2299
|
-
} catch (
|
|
2300
|
-
return textResult(
|
|
2320
|
+
return textResult(await _0x2b0b21[_0x5aa3b5(0x142)](_0x117321));
|
|
2321
|
+
} catch (_0x3c2cbf) {
|
|
2322
|
+
return textResult(_0x3c2cbf instanceof Error ? _0x3c2cbf[_0x5aa3b5(0x174)] : 'upload_file\x20failed', !![]);
|
|
2301
2323
|
}
|
|
2302
|
-
}),
|
|
2303
|
-
const
|
|
2324
|
+
}), _0x570a2b[_0x305878(_0x3150b3._0x327bb0)]('view_file', _0x305878(_0x3150b3._0x27e680), { 'attachment_id': _0x5b63ef[_0x305878(_0x3150b3._0x2edeac)]() }, async _0x2115bb => {
|
|
2325
|
+
const _0x49d3ab = _0x305878;
|
|
2304
2326
|
try {
|
|
2305
|
-
return textResult(await
|
|
2306
|
-
} catch (
|
|
2307
|
-
return textResult(
|
|
2327
|
+
return textResult(await _0x2b0b21[_0x49d3ab(0x23c)](_0x2115bb));
|
|
2328
|
+
} catch (_0x2e8905) {
|
|
2329
|
+
return textResult(_0x2e8905 instanceof Error ? _0x2e8905[_0x49d3ab(_0x4a5cc3._0x3a8ca9)] : _0x49d3ab(_0x4a5cc3._0x295ff6), !![]);
|
|
2308
2330
|
}
|
|
2309
|
-
}),
|
|
2310
|
-
const
|
|
2331
|
+
}), _0x570a2b[_0x305878(0x221)](_0x305878(_0x3150b3._0x214d7f), _0x305878(_0x3150b3._0x399b70), { 'work_key': _0x5b63ef['string']() }, async _0x11a605 => {
|
|
2332
|
+
const _0x46113a = _0x305878;
|
|
2311
2333
|
try {
|
|
2312
|
-
return textResult(await
|
|
2313
|
-
} catch (
|
|
2314
|
-
return textResult(
|
|
2334
|
+
return textResult(await _0x2b0b21[_0x46113a(_0xbdceee._0x266313)](_0x11a605));
|
|
2335
|
+
} catch (_0x15efb0) {
|
|
2336
|
+
return textResult(_0x15efb0 instanceof Error ? _0x15efb0[_0x46113a(0x174)] : _0x46113a(0x23d), !![]);
|
|
2315
2337
|
}
|
|
2316
|
-
}),
|
|
2317
|
-
const
|
|
2338
|
+
}), _0x570a2b[_0x305878(0x221)]('park_worker', _0x305878(0x1da), { 'work_key': _0x5b63ef[_0x305878(_0x3150b3._0x186c10)]() }, async _0x32abf6 => {
|
|
2339
|
+
const _0x2dd9ae = _0x305878;
|
|
2318
2340
|
try {
|
|
2319
|
-
return textResult(await
|
|
2320
|
-
} catch (
|
|
2321
|
-
return textResult(
|
|
2341
|
+
return textResult(await _0x2b0b21[_0x2dd9ae(0x1bd)](_0x32abf6));
|
|
2342
|
+
} catch (_0x4005fb) {
|
|
2343
|
+
return textResult(_0x4005fb instanceof Error ? _0x4005fb[_0x2dd9ae(0x174)] : _0x2dd9ae(_0x143c9f._0x57033c), !![]);
|
|
2322
2344
|
}
|
|
2323
|
-
}), !
|
|
2324
|
-
'work_key':
|
|
2325
|
-
'reason':
|
|
2326
|
-
}, async
|
|
2327
|
-
const
|
|
2345
|
+
}), !_0x11ee93?.[_0x305878(_0x3150b3._0x4e5e28)] && _0x570a2b[_0x305878(0x221)](_0x305878(0x243), _0x305878(0x13d), {
|
|
2346
|
+
'work_key': _0x5b63ef[_0x305878(0x222)](),
|
|
2347
|
+
'reason': _0x5b63ef['string']()
|
|
2348
|
+
}, async _0x29090a => {
|
|
2349
|
+
const _0x19961b = _0x305878;
|
|
2328
2350
|
try {
|
|
2329
|
-
return textResult(await
|
|
2330
|
-
} catch (
|
|
2331
|
-
return textResult(
|
|
2351
|
+
return textResult(await _0x2b0b21[_0x19961b(_0x4c975c._0x165bdb)](_0x29090a));
|
|
2352
|
+
} catch (_0x8228fd) {
|
|
2353
|
+
return textResult(_0x8228fd instanceof Error ? _0x8228fd[_0x19961b(_0x4c975c._0x55c1bb)] : _0x19961b(_0x4c975c._0x121998), !![]);
|
|
2332
2354
|
}
|
|
2333
|
-
}),
|
|
2334
|
-
const
|
|
2355
|
+
}), _0x11ee93?.[_0x305878(0xd5)] && _0x570a2b[_0x305878(0x221)]('mark_waiting_input', _0x305878(0x1f4), { 'work_key': _0x5b63ef['string']() }, async _0x532542 => {
|
|
2356
|
+
const _0x257910 = _0x305878;
|
|
2335
2357
|
try {
|
|
2336
|
-
return textResult(await
|
|
2337
|
-
} catch (
|
|
2338
|
-
return textResult(
|
|
2358
|
+
return textResult(await _0x2b0b21[_0x257910(_0x5e3598._0x200a9a)](_0x532542));
|
|
2359
|
+
} catch (_0x4f8ce6) {
|
|
2360
|
+
return textResult(_0x4f8ce6 instanceof Error ? _0x4f8ce6[_0x257910(0x174)] : 'mark_waiting_input\x20failed', !![]);
|
|
2339
2361
|
}
|
|
2340
2362
|
});
|
|
2341
2363
|
}
|
|
2342
|
-
async function createChatBridgeServer(
|
|
2343
|
-
const
|
|
2344
|
-
|
|
2345
|
-
_0x13dea2: 0x1df
|
|
2346
|
-
}, _0x2908cd = _0x548baf, {McpServer: _0x14d238} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x1de2da = new _0x14d238({
|
|
2347
|
-
'name': _0x2908cd(_0x32daa5._0x19a6d2),
|
|
2364
|
+
async function createChatBridgeServer(_0x3434f3) {
|
|
2365
|
+
const _0x100c43 = { _0x3fb820: 0xd5 }, _0x16d026 = _0x3b2449, {McpServer: _0x56d390} = await import('@modelcontextprotocol/sdk/server/mcp.js'), _0x2212f8 = new _0x56d390({
|
|
2366
|
+
'name': _0x16d026(0x13f),
|
|
2348
2367
|
'version': '0.0.0'
|
|
2349
|
-
}),
|
|
2350
|
-
return await registerChatBridgeTools(
|
|
2351
|
-
'handlers':
|
|
2352
|
-
'server':
|
|
2368
|
+
}), _0xb76bd0 = createChatBridgeHandlers(_0x3434f3);
|
|
2369
|
+
return await registerChatBridgeTools(_0x2212f8, _0xb76bd0, { 'workerMode': _0x3434f3[_0x16d026(_0x100c43._0x3fb820)] }), {
|
|
2370
|
+
'handlers': _0xb76bd0,
|
|
2371
|
+
'server': _0x2212f8
|
|
2353
2372
|
};
|
|
2354
2373
|
}
|
|
2355
|
-
function readFlag(
|
|
2356
|
-
const
|
|
2357
|
-
if (
|
|
2374
|
+
function readFlag(_0x4e3e4b, _0x17d438) {
|
|
2375
|
+
const _0x49df74 = _0x4e3e4b['indexOf'](_0x17d438);
|
|
2376
|
+
if (_0x49df74 === -0x1)
|
|
2358
2377
|
return void 0x0;
|
|
2359
|
-
return
|
|
2378
|
+
return _0x4e3e4b[_0x49df74 + 0x1];
|
|
2360
2379
|
}
|
|
2361
|
-
function parseChatBridgeArgs(
|
|
2362
|
-
const
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
if (!
|
|
2372
|
-
throw new Error(_0x7e6654(_0x58648._0x152ac2));
|
|
2373
|
-
if (!_0x2d3af8)
|
|
2380
|
+
function parseChatBridgeArgs(_0x5dfdef) {
|
|
2381
|
+
const _0x5ac459 = {
|
|
2382
|
+
_0x1c4e70: 0x1df,
|
|
2383
|
+
_0x6a8e2: 0xf6,
|
|
2384
|
+
_0x15bd6c: 0xfa,
|
|
2385
|
+
_0x359fd5: 0x130,
|
|
2386
|
+
_0x47c284: 0x116
|
|
2387
|
+
}, _0x44c96a = _0x3b2449, _0x26b730 = readFlag(_0x5dfdef, _0x44c96a(_0x5ac459._0x1c4e70)), _0x54e399 = readFlag(_0x5dfdef, _0x44c96a(_0x5ac459._0x6a8e2)), _0x2d72ca = readFlag(_0x5dfdef, _0x44c96a(0x134)), _0x343e5d = readFlag(_0x5dfdef, _0x44c96a(_0x5ac459._0x15bd6c)), _0x1e01e6 = readFlag(_0x5dfdef, '--server-url') ?? 'http://localhost:8121', _0x1cf27e = readFlag(_0x5dfdef, _0x44c96a(0x16c)), _0x29da66 = readFlag(_0x5dfdef, '--session-id'), _0x22bc06 = readFlag(_0x5dfdef, _0x44c96a(0x1e3)), _0x17ccfe = readFlag(_0x5dfdef, _0x44c96a(0x114)), _0x5c350d = readFlag(_0x5dfdef, _0x44c96a(0x172)), _0x174017 = _0x5dfdef[_0x44c96a(0x181)](_0x44c96a(_0x5ac459._0x359fd5)), _0x3d5523 = _0x343e5d === void 0x0 ? void 0x0 : Number[_0x44c96a(0xfe)](_0x343e5d, 0xa);
|
|
2388
|
+
if (!_0x26b730)
|
|
2389
|
+
throw new Error(_0x44c96a(0x1d0));
|
|
2390
|
+
if (!_0x2d72ca)
|
|
2374
2391
|
throw new Error('Missing\x20--daemon-api-key');
|
|
2375
|
-
if (
|
|
2376
|
-
throw new Error(
|
|
2392
|
+
if (_0x343e5d !== void 0x0 && (_0x3d5523 === void 0x0 || !Number['isFinite'](_0x3d5523) || _0x3d5523 < 0x0))
|
|
2393
|
+
throw new Error(_0x44c96a(_0x5ac459._0x47c284));
|
|
2377
2394
|
return {
|
|
2378
|
-
'agentId':
|
|
2379
|
-
'attachmentCacheDir':
|
|
2380
|
-
'daemonApiKey':
|
|
2381
|
-
'daemonLocalUrl':
|
|
2382
|
-
'initialLastSeenSeq':
|
|
2383
|
-
'sessionId':
|
|
2384
|
-
'serverUrl':
|
|
2385
|
-
'workerModeEnabled':
|
|
2386
|
-
'workerSessionId':
|
|
2387
|
-
'workerThreadTarget':
|
|
2388
|
-
'workerMode':
|
|
2395
|
+
'agentId': _0x26b730,
|
|
2396
|
+
'attachmentCacheDir': _0x54e399,
|
|
2397
|
+
'daemonApiKey': _0x2d72ca,
|
|
2398
|
+
'daemonLocalUrl': _0x1cf27e,
|
|
2399
|
+
'initialLastSeenSeq': _0x3d5523,
|
|
2400
|
+
'sessionId': _0x29da66,
|
|
2401
|
+
'serverUrl': _0x1e01e6,
|
|
2402
|
+
'workerModeEnabled': _0x22bc06 === void 0x0 ? void 0x0 : _0x22bc06 !== _0x44c96a(0xec),
|
|
2403
|
+
'workerSessionId': _0x17ccfe,
|
|
2404
|
+
'workerThreadTarget': _0x5c350d,
|
|
2405
|
+
'workerMode': _0x174017
|
|
2389
2406
|
};
|
|
2390
2407
|
}
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
'
|
|
2398
|
-
'
|
|
2399
|
-
'
|
|
2400
|
-
|
|
2408
|
+
function _0x24f4(_0x513b2e, _0x5c8a43) {
|
|
2409
|
+
_0x513b2e = _0x513b2e - 0xd1;
|
|
2410
|
+
const _0x56dcdb = _0x56dc();
|
|
2411
|
+
let _0x24f425 = _0x56dcdb[_0x513b2e];
|
|
2412
|
+
if (_0x24f4['FQYBqd'] === undefined) {
|
|
2413
|
+
var _0x2a099a = function (_0x1b0a4d) {
|
|
2414
|
+
const _0x43b908 = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';
|
|
2415
|
+
let _0x21802 = '', _0x149805 = '';
|
|
2416
|
+
for (let _0x191c9b = 0x0, _0x1f6b11, _0x406981, _0x1ca50e = 0x0; _0x406981 = _0x1b0a4d['charAt'](_0x1ca50e++); ~_0x406981 && (_0x1f6b11 = _0x191c9b % 0x4 ? _0x1f6b11 * 0x40 + _0x406981 : _0x406981, _0x191c9b++ % 0x4) ? _0x21802 += String['fromCharCode'](0xff & _0x1f6b11 >> (-0x2 * _0x191c9b & 0x6)) : 0x0) {
|
|
2417
|
+
_0x406981 = _0x43b908['indexOf'](_0x406981);
|
|
2418
|
+
}
|
|
2419
|
+
for (let _0x22e7f9 = 0x0, _0x2b24df = _0x21802['length']; _0x22e7f9 < _0x2b24df; _0x22e7f9++) {
|
|
2420
|
+
_0x149805 += '%' + ('00' + _0x21802['charCodeAt'](_0x22e7f9)['toString'](0x10))['slice'](-0x2);
|
|
2421
|
+
}
|
|
2422
|
+
return decodeURIComponent(_0x149805);
|
|
2423
|
+
};
|
|
2424
|
+
_0x24f4['Rvihqq'] = _0x2a099a, _0x24f4['eRmbFq'] = {}, _0x24f4['FQYBqd'] = !![];
|
|
2425
|
+
}
|
|
2426
|
+
const _0xb415f2 = _0x56dcdb[0x0], _0x592dff = _0x513b2e + _0xb415f2, _0x2ea1ba = _0x24f4['eRmbFq'][_0x592dff];
|
|
2427
|
+
return !_0x2ea1ba ? (_0x24f425 = _0x24f4['Rvihqq'](_0x24f425), _0x24f4['eRmbFq'][_0x592dff] = _0x24f425) : _0x24f425 = _0x2ea1ba, _0x24f425;
|
|
2428
|
+
}
|
|
2429
|
+
async function runChatBridgeCli(_0x43c729) {
|
|
2430
|
+
const _0x240030 = {
|
|
2431
|
+
_0x50c429: 0x21f,
|
|
2432
|
+
_0x2d4e1c: 0x1e8
|
|
2433
|
+
}, _0xcf0c7d = _0x3b2449, _0x483b77 = parseChatBridgeArgs(_0x43c729), {StdioServerTransport: _0xdfd381} = await import(_0xcf0c7d(0x141)), _0x132c81 = createInternalAgentClient(_0x483b77), _0x26447d = createAttachmentCache({ 'cacheDir': _0x483b77[_0xcf0c7d(_0x240030._0x50c429)] }), _0x3a19be = await createChatBridgeServer({
|
|
2434
|
+
'agentId': _0x483b77[_0xcf0c7d(0x19d)],
|
|
2435
|
+
'attachmentCache': _0x26447d,
|
|
2436
|
+
'client': _0x132c81,
|
|
2437
|
+
'daemonLocalUrl': _0x483b77[_0xcf0c7d(0x139)],
|
|
2401
2438
|
'uploadPreparer': prepareUploadFile,
|
|
2402
|
-
'workerModeEnabled':
|
|
2403
|
-
'workerMode':
|
|
2404
|
-
'workerThreadTarget':
|
|
2439
|
+
'workerModeEnabled': _0x483b77[_0xcf0c7d(0x211)],
|
|
2440
|
+
'workerMode': _0x483b77[_0xcf0c7d(0xd5)],
|
|
2441
|
+
'workerThreadTarget': _0x483b77[_0xcf0c7d(_0x240030._0x2d4e1c)]
|
|
2405
2442
|
});
|
|
2406
|
-
await
|
|
2443
|
+
await _0x3a19be[_0xcf0c7d(0xd9)][_0xcf0c7d(0xe0)](new _0xdfd381());
|
|
2407
2444
|
}
|
|
2408
|
-
var executedAsEntry = process[
|
|
2409
|
-
executedAsEntry && await runChatBridgeCli(process['
|
|
2445
|
+
var executedAsEntry = process[_0x3b2449(0x145)][0x1] ? import.meta.url === pathToFileURL(process[_0x3b2449(0x145)][0x1])['href'] : ![];
|
|
2446
|
+
executedAsEntry && await runChatBridgeCli(process[_0x3b2449(0x145)]['slice'](0x2));
|
|
2410
2447
|
export {
|
|
2411
2448
|
createChatBridgeHandlers,
|
|
2412
2449
|
createChatBridgeServer,
|