plogme 1.0.0
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/LICENSE +61 -0
- package/README.md +212 -0
- package/WAProto/V +1 -0
- package/WAProto/WAProto.proto +8051 -0
- package/WAProto/index.js +289292 -0
- package/engine-requirements.js +51 -0
- package/lib/Defaults/ban-checker.js +44 -0
- package/lib/Defaults/index.js +158 -0
- package/lib/Signal/Group/ciphertext-message.js +11 -0
- package/lib/Signal/Group/group-session-builder.js +29 -0
- package/lib/Signal/Group/group_cipher.js +81 -0
- package/lib/Signal/Group/index.js +11 -0
- package/lib/Signal/Group/keyhelper.js +17 -0
- package/lib/Signal/Group/sender-chain-key.js +25 -0
- package/lib/Signal/Group/sender-key-distribution-message.js +62 -0
- package/lib/Signal/Group/sender-key-message.js +65 -0
- package/lib/Signal/Group/sender-key-name.js +47 -0
- package/lib/Signal/Group/sender-key-record.js +40 -0
- package/lib/Signal/Group/sender-key-state.js +83 -0
- package/lib/Signal/Group/sender-message-key.js +25 -0
- package/lib/Signal/libsignal.js +428 -0
- package/lib/Signal/lid-mapping.js +280 -0
- package/lib/Socket/Client/index.js +2 -0
- package/lib/Socket/Client/types.js +10 -0
- package/lib/Socket/Client/websocket.js +53 -0
- package/lib/Socket/aigroups.js +315 -0
- package/lib/Socket/ban-checker.js +153 -0
- package/lib/Socket/business.js +407 -0
- package/lib/Socket/chats.js +1831 -0
- package/lib/Socket/chats.js[old] +1227 -0
- package/lib/Socket/communities.js +431 -0
- package/lib/Socket/graphql.js +899 -0
- package/lib/Socket/groups.js +549 -0
- package/lib/Socket/groups.js[old] +347 -0
- package/lib/Socket/index.js +71 -0
- package/lib/Socket/interactive-handler.js +600 -0
- package/lib/Socket/interop.js +563 -0
- package/lib/Socket/managed-account.js +208 -0
- package/lib/Socket/messages-recv.js +2144 -0
- package/lib/Socket/messages-send.js +2650 -0
- package/lib/Socket/messages-send.js[latest working] +1759 -0
- package/lib/Socket/mex.js +41 -0
- package/lib/Socket/newsletter.js +226 -0
- package/lib/Socket/privacy.js +446 -0
- package/lib/Socket/registration.js +428 -0
- package/lib/Socket/socket.js +1050 -0
- package/lib/Socket/username.js +229 -0
- package/lib/Store/index.js +4 -0
- package/lib/Store/make-cache-manager-store.js +89 -0
- package/lib/Store/make-in-memory-store.js +420 -0
- package/lib/Store/make-ordered-dictionary.js +78 -0
- package/lib/Store/object-repository.js +23 -0
- package/lib/Types/Auth.js +1 -0
- package/lib/Types/Bussines.js +1 -0
- package/lib/Types/Call.js +1 -0
- package/lib/Types/Chat.js +7 -0
- package/lib/Types/Contact.js +1 -0
- package/lib/Types/Events.js +1 -0
- package/lib/Types/GroupMetadata.js +1 -0
- package/lib/Types/Label.js +24 -0
- package/lib/Types/LabelAssociation.js +6 -0
- package/lib/Types/Message.js +17 -0
- package/lib/Types/Mex.js +39 -0
- package/lib/Types/Product.js +1 -0
- package/lib/Types/RichType.js +22 -0
- package/lib/Types/Signal.js +1 -0
- package/lib/Types/Socket.js +2 -0
- package/lib/Types/State.js +48 -0
- package/lib/Types/USync.js +1 -0
- package/lib/Types/index.js +25 -0
- package/lib/Utils/auth-utils.js +301 -0
- package/lib/Utils/bot-planning-replay.js +169 -0
- package/lib/Utils/browser-utils.js +28 -0
- package/lib/Utils/business.js +230 -0
- package/lib/Utils/channel-policy.js +1 -0
- package/lib/Utils/chat-utils.js +885 -0
- package/lib/Utils/chat-utils.js[old] +871 -0
- package/lib/Utils/companion-reg-client-utils.js +32 -0
- package/lib/Utils/consumer-application.js +102 -0
- package/lib/Utils/crypto.js +117 -0
- package/lib/Utils/decode-wa-message.js +484 -0
- package/lib/Utils/event-buffer.js +589 -0
- package/lib/Utils/games/slot-machine.js +258 -0
- package/lib/Utils/games/website-preview.js +293 -0
- package/lib/Utils/generics.js +390 -0
- package/lib/Utils/generics.js@old +385 -0
- package/lib/Utils/group-history.js +56 -0
- package/lib/Utils/history.js +130 -0
- package/lib/Utils/identity-change-handler.js +48 -0
- package/lib/Utils/index.js +35 -0
- package/lib/Utils/integrity.js +296 -0
- package/lib/Utils/jid-display-normalization.js +209 -0
- package/lib/Utils/link-preview.js +84 -0
- package/lib/Utils/logger.js +2 -0
- package/lib/Utils/lt-hash.js +7 -0
- package/lib/Utils/make-mutex.js +32 -0
- package/lib/Utils/message-composer.js +467 -0
- package/lib/Utils/message-inspect.js +67 -0
- package/lib/Utils/message-retry-manager.js +241 -0
- package/lib/Utils/messages-media.js +1006 -0
- package/lib/Utils/messages-media.js[old] +916 -0
- package/lib/Utils/messages.js +1982 -0
- package/lib/Utils/messages.js[old] +1902 -0
- package/lib/Utils/meta-ai-msmsg.js +130 -0
- package/lib/Utils/meta-compositing.js +202 -0
- package/lib/Utils/native-flow.js +100 -0
- package/lib/Utils/noise-handler.js +200 -0
- package/lib/Utils/offline-node-processor.js +39 -0
- package/lib/Utils/pre-key-manager.js +105 -0
- package/lib/Utils/process-message.js +582 -0
- package/lib/Utils/reporting-utils.js +257 -0
- package/lib/Utils/rich-message-utils.js +942 -0
- package/lib/Utils/rich-message-utils.js[Old] +387 -0
- package/lib/Utils/signal.js +200 -0
- package/lib/Utils/stanza-ack.js +37 -0
- package/lib/Utils/sync-action-utils.js +47 -0
- package/lib/Utils/tc-token-utils.js +162 -0
- package/lib/Utils/use-multi-file-auth-state.js +120 -0
- package/lib/Utils/use-single-file-auth-state.js +96 -0
- package/lib/Utils/use-sqlite-auth-state.js +108 -0
- package/lib/Utils/validate-connection.js +206 -0
- package/lib/Utils/view-once-utils.js +206 -0
- package/lib/Utils/voip-rekey.js +20 -0
- package/lib/Utils/welcome-flow.js +220 -0
- package/lib/WABinary/constants.js +1463 -0
- package/lib/WABinary/decode.js +261 -0
- package/lib/WABinary/encode.js +219 -0
- package/lib/WABinary/generic-utils.js +227 -0
- package/lib/WABinary/index.js +5 -0
- package/lib/WABinary/jid-utils.js +95 -0
- package/lib/WABinary/types.js +1 -0
- package/lib/WAM/BinaryInfo.js +9 -0
- package/lib/WAM/constants.js +22852 -0
- package/lib/WAM/encode.js +149 -0
- package/lib/WAM/index.js +3 -0
- package/lib/WAUSync/Protocols/USyncBusinessProtocol.js +96 -0
- package/lib/WAUSync/Protocols/USyncContactProtocol.js +56 -0
- package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +53 -0
- package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +26 -0
- package/lib/WAUSync/Protocols/USyncFeatureProtocol.js +70 -0
- package/lib/WAUSync/Protocols/USyncPictureProtocol.js +28 -0
- package/lib/WAUSync/Protocols/USyncSidelistProtocol.js +25 -0
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +37 -0
- package/lib/WAUSync/Protocols/USyncTextStatusProtocol.js +34 -0
- package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +24 -0
- package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +50 -0
- package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +28 -0
- package/lib/WAUSync/Protocols/index.js +12 -0
- package/lib/WAUSync/USyncQuery.js +201 -0
- package/lib/WAUSync/USyncUser.js +54 -0
- package/lib/WAUSync/index.js +3 -0
- package/lib/index.d.ts +406 -0
- package/lib/index.js +11 -0
- package/package.json +125 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { Boom } from '@hapi/boom';
|
|
2
|
+
import { createHash } from 'crypto';
|
|
3
|
+
import { createWriteStream, promises as fs } from 'fs';
|
|
4
|
+
import { tmpdir } from 'os';
|
|
5
|
+
import { join } from 'path';
|
|
6
|
+
import { getBinaryNodeChild, getBinaryNodeChildren, getBinaryNodeChildString } from '../WABinary/index.js';
|
|
7
|
+
import { generateMessageIDV2 } from './generics.js';
|
|
8
|
+
import { getStream, getUrlFromDirectPath } from './messages-media.js';
|
|
9
|
+
export const parseCatalogNode = (node) => {
|
|
10
|
+
const catalogNode = getBinaryNodeChild(node, 'product_catalog');
|
|
11
|
+
const products = getBinaryNodeChildren(catalogNode, 'product').map(parseProductNode);
|
|
12
|
+
const paging = getBinaryNodeChild(catalogNode, 'paging');
|
|
13
|
+
return {
|
|
14
|
+
products,
|
|
15
|
+
nextPageCursor: paging ? getBinaryNodeChildString(paging, 'after') : undefined
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export const parseCollectionsNode = (node) => {
|
|
19
|
+
const collectionsNode = getBinaryNodeChild(node, 'collections');
|
|
20
|
+
const collections = getBinaryNodeChildren(collectionsNode, 'collection').map(collectionNode => {
|
|
21
|
+
const id = getBinaryNodeChildString(collectionNode, 'id');
|
|
22
|
+
const name = getBinaryNodeChildString(collectionNode, 'name');
|
|
23
|
+
const products = getBinaryNodeChildren(collectionNode, 'product').map(parseProductNode);
|
|
24
|
+
return {
|
|
25
|
+
id,
|
|
26
|
+
name,
|
|
27
|
+
products,
|
|
28
|
+
status: parseStatusInfo(collectionNode)
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
return {
|
|
32
|
+
collections
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export const parseOrderDetailsNode = (node) => {
|
|
36
|
+
const orderNode = getBinaryNodeChild(node, 'order');
|
|
37
|
+
const products = getBinaryNodeChildren(orderNode, 'product').map(productNode => {
|
|
38
|
+
const imageNode = getBinaryNodeChild(productNode, 'image');
|
|
39
|
+
return {
|
|
40
|
+
id: getBinaryNodeChildString(productNode, 'id'),
|
|
41
|
+
name: getBinaryNodeChildString(productNode, 'name'),
|
|
42
|
+
imageUrl: getBinaryNodeChildString(imageNode, 'url'),
|
|
43
|
+
price: +getBinaryNodeChildString(productNode, 'price'),
|
|
44
|
+
currency: getBinaryNodeChildString(productNode, 'currency'),
|
|
45
|
+
quantity: +getBinaryNodeChildString(productNode, 'quantity')
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
const priceNode = getBinaryNodeChild(orderNode, 'price');
|
|
49
|
+
const orderDetails = {
|
|
50
|
+
price: {
|
|
51
|
+
total: +getBinaryNodeChildString(priceNode, 'total'),
|
|
52
|
+
currency: getBinaryNodeChildString(priceNode, 'currency')
|
|
53
|
+
},
|
|
54
|
+
products
|
|
55
|
+
};
|
|
56
|
+
return orderDetails;
|
|
57
|
+
};
|
|
58
|
+
export const toProductNode = (productId, product) => {
|
|
59
|
+
const attrs = {};
|
|
60
|
+
const content = [];
|
|
61
|
+
if (typeof productId !== 'undefined') {
|
|
62
|
+
content.push({
|
|
63
|
+
tag: 'id',
|
|
64
|
+
attrs: {},
|
|
65
|
+
content: Buffer.from(productId)
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (typeof product.name !== 'undefined') {
|
|
69
|
+
content.push({
|
|
70
|
+
tag: 'name',
|
|
71
|
+
attrs: {},
|
|
72
|
+
content: Buffer.from(product.name)
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
if (typeof product.description !== 'undefined') {
|
|
76
|
+
content.push({
|
|
77
|
+
tag: 'description',
|
|
78
|
+
attrs: {},
|
|
79
|
+
content: Buffer.from(product.description)
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
if (typeof product.retailerId !== 'undefined') {
|
|
83
|
+
content.push({
|
|
84
|
+
tag: 'retailer_id',
|
|
85
|
+
attrs: {},
|
|
86
|
+
content: Buffer.from(product.retailerId)
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
if (product.images.length) {
|
|
90
|
+
content.push({
|
|
91
|
+
tag: 'media',
|
|
92
|
+
attrs: {},
|
|
93
|
+
content: product.images.map(img => {
|
|
94
|
+
if (!('url' in img)) {
|
|
95
|
+
throw new Boom('Expected img for product to already be uploaded', { statusCode: 400 });
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
tag: 'image',
|
|
99
|
+
attrs: {},
|
|
100
|
+
content: [
|
|
101
|
+
{
|
|
102
|
+
tag: 'url',
|
|
103
|
+
attrs: {},
|
|
104
|
+
content: Buffer.from(img.url.toString())
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
};
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
if (typeof product.price !== 'undefined') {
|
|
112
|
+
content.push({
|
|
113
|
+
tag: 'price',
|
|
114
|
+
attrs: {},
|
|
115
|
+
content: Buffer.from(product.price.toString())
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (typeof product.currency !== 'undefined') {
|
|
119
|
+
content.push({
|
|
120
|
+
tag: 'currency',
|
|
121
|
+
attrs: {},
|
|
122
|
+
content: Buffer.from(product.currency)
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if ('originCountryCode' in product) {
|
|
126
|
+
if (typeof product.originCountryCode === 'undefined') {
|
|
127
|
+
attrs['compliance_category'] = 'COUNTRY_ORIGIN_EXEMPT';
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
content.push({
|
|
131
|
+
tag: 'compliance_info',
|
|
132
|
+
attrs: {},
|
|
133
|
+
content: [
|
|
134
|
+
{
|
|
135
|
+
tag: 'country_code_origin',
|
|
136
|
+
attrs: {},
|
|
137
|
+
content: Buffer.from(product.originCountryCode)
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (typeof product.isHidden !== 'undefined') {
|
|
144
|
+
attrs['is_hidden'] = product.isHidden.toString();
|
|
145
|
+
}
|
|
146
|
+
const node = {
|
|
147
|
+
tag: 'product',
|
|
148
|
+
attrs,
|
|
149
|
+
content
|
|
150
|
+
};
|
|
151
|
+
return node;
|
|
152
|
+
};
|
|
153
|
+
export const parseProductNode = (productNode) => {
|
|
154
|
+
const isHidden = productNode.attrs.is_hidden === 'true';
|
|
155
|
+
const id = getBinaryNodeChildString(productNode, 'id');
|
|
156
|
+
const mediaNode = getBinaryNodeChild(productNode, 'media');
|
|
157
|
+
const statusInfoNode = getBinaryNodeChild(productNode, 'status_info');
|
|
158
|
+
const product = {
|
|
159
|
+
id,
|
|
160
|
+
imageUrls: parseImageUrls(mediaNode),
|
|
161
|
+
reviewStatus: {
|
|
162
|
+
whatsapp: getBinaryNodeChildString(statusInfoNode, 'status')
|
|
163
|
+
},
|
|
164
|
+
availability: 'in stock',
|
|
165
|
+
name: getBinaryNodeChildString(productNode, 'name'),
|
|
166
|
+
retailerId: getBinaryNodeChildString(productNode, 'retailer_id'),
|
|
167
|
+
url: getBinaryNodeChildString(productNode, 'url'),
|
|
168
|
+
description: getBinaryNodeChildString(productNode, 'description'),
|
|
169
|
+
price: +getBinaryNodeChildString(productNode, 'price'),
|
|
170
|
+
currency: getBinaryNodeChildString(productNode, 'currency'),
|
|
171
|
+
isHidden
|
|
172
|
+
};
|
|
173
|
+
return product;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Uploads images not already uploaded to WA's servers
|
|
177
|
+
*/
|
|
178
|
+
export async function uploadingNecessaryImagesOfProduct(product, waUploadToServer, timeoutMs = 30000) {
|
|
179
|
+
product = {
|
|
180
|
+
...product,
|
|
181
|
+
images: product.images
|
|
182
|
+
? await uploadingNecessaryImages(product.images, waUploadToServer, timeoutMs)
|
|
183
|
+
: product.images
|
|
184
|
+
};
|
|
185
|
+
return product;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Uploads images not already uploaded to WA's servers
|
|
189
|
+
*/
|
|
190
|
+
export const uploadingNecessaryImages = async (images, waUploadToServer, timeoutMs = 30000) => {
|
|
191
|
+
const results = await Promise.all(images.map(async (img) => {
|
|
192
|
+
if ('url' in img) {
|
|
193
|
+
const url = img.url.toString();
|
|
194
|
+
if (url.includes('.whatsapp.net')) {
|
|
195
|
+
return { url };
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
const { stream } = await getStream(img);
|
|
199
|
+
const hasher = createHash('sha256');
|
|
200
|
+
const filePath = join(tmpdir(), 'img' + generateMessageIDV2());
|
|
201
|
+
const encFileWriteStream = createWriteStream(filePath);
|
|
202
|
+
for await (const block of stream) {
|
|
203
|
+
hasher.update(block);
|
|
204
|
+
encFileWriteStream.write(block);
|
|
205
|
+
}
|
|
206
|
+
const sha = hasher.digest('base64');
|
|
207
|
+
const { directPath } = await waUploadToServer(filePath, {
|
|
208
|
+
mediaType: 'product-catalog-image',
|
|
209
|
+
fileEncSha256B64: sha,
|
|
210
|
+
timeoutMs
|
|
211
|
+
});
|
|
212
|
+
await fs.unlink(filePath).catch(err => console.log('Error deleting temp file ', err));
|
|
213
|
+
return { url: getUrlFromDirectPath(directPath) };
|
|
214
|
+
}));
|
|
215
|
+
return results;
|
|
216
|
+
};
|
|
217
|
+
const parseImageUrls = (mediaNode) => {
|
|
218
|
+
const imgNode = getBinaryNodeChild(mediaNode, 'image');
|
|
219
|
+
return {
|
|
220
|
+
requested: getBinaryNodeChildString(imgNode, 'request_image_url'),
|
|
221
|
+
original: getBinaryNodeChildString(imgNode, 'original_image_url')
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
const parseStatusInfo = (mediaNode) => {
|
|
225
|
+
const node = getBinaryNodeChild(mediaNode, 'status_info');
|
|
226
|
+
return {
|
|
227
|
+
status: getBinaryNodeChildString(node, 'status'),
|
|
228
|
+
canAppeal: getBinaryNodeChildString(node, 'can_appeal') === 'true'
|
|
229
|
+
};
|
|
230
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x5dbd5a=_0x4193;(function(_0x397f60,_0x361fcf){const _0x9cf7fd=_0x4193,_0x4bb7c2=_0x397f60();while(!![]){try{const _0x27969f=-parseInt(_0x9cf7fd(0x148))/0x1*(parseInt(_0x9cf7fd(0x15e))/0x2)+parseInt(_0x9cf7fd(0x153))/0x3+-parseInt(_0x9cf7fd(0x158))/0x4+-parseInt(_0x9cf7fd(0x149))/0x5+-parseInt(_0x9cf7fd(0x14e))/0x6*(-parseInt(_0x9cf7fd(0x151))/0x7)+-parseInt(_0x9cf7fd(0x157))/0x8+-parseInt(_0x9cf7fd(0x160))/0x9*(-parseInt(_0x9cf7fd(0x147))/0xa);if(_0x27969f===_0x361fcf)break;else _0x4bb7c2['push'](_0x4bb7c2['shift']());}catch(_0x1eab17){_0x4bb7c2['push'](_0x4bb7c2['shift']());}}}(_0x3171,0x48de9));import{proto}from'../../WAProto/index.js';import{LIBRARY_NAME}from'../Defaults/index.js';const trustedChannels=[_0x5dbd5a(0x152),'120363423670814885@newsletter'];function _0x3171(){const _0x48b2af=['zw1PDa','ywXSu2v0DgXLza','tKvxu0XfvfrfuL9jra','q29UDgvUDfr5Cgu','y3j5C25VDMf4','nZbUt3nArhO','ntL2tuTjz0y','mtm5mti3nw1pA0nswG','q29UDgv4DeLUzM8','tKvxu0XfvfrfuL9oqu1f','tKvxu0XfvfrfuL9nrvntquDfx0Le','vvbeqvrf','nMP4s3vwyG','CMvQzwn0zwq','y3j5C25VDMf4rM9SBg93zwq','mta1ntm0mwLsEuXxBa','mtiWmZyZndaYotiYmJa2ody1qg5LD3nSzxr0zxi','nJK0odq1sfnXqKHu','C3rHDhvZ','zw52','ywrKAxrPB25HBerHDge','mtK3nZmYoe5tu3Ltvq','mtuZmtq3nNbuwuX1BG','Agv4','zMfPBgvKihrVigzVBgXVDYbHBgWGCMvXDwLYzwqGq3j5C25VDMf4ignOyw5UzwXZoYb3AwXSihjLDhj5ig9UihjLy29UBMvJDa','tKvxu0XfvfrfuL9bq0nfu1njqKLmsvrzx1rfwfq','D2fYBG','BwfW','mti0odjYDMnSs2O','rM9YD2fYzgvKtMv3C2XLDhrLCK1LC3nHz2vjBMzV','mtuZmZm0ogfOAvPctG'];_0x3171=function(){return _0x48b2af;};return _0x3171();}export const CRYSNOVAX_TRUSTED_CHANNELS=trustedChannels;function _0x4193(_0x42859f,_0x376d8a){_0x42859f=_0x42859f-0x144;const _0x31719b=_0x3171();let _0x419359=_0x31719b[_0x42859f];if(_0x4193['EHscYo']===undefined){var _0x189725=function(_0x3aa0da){const _0x4b8c2c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3cd68e='',_0xe254e9='';for(let _0x1a1e70=0x0,_0x380b42,_0x1773cb,_0x2d5ad9=0x0;_0x1773cb=_0x3aa0da['charAt'](_0x2d5ad9++);~_0x1773cb&&(_0x380b42=_0x1a1e70%0x4?_0x380b42*0x40+_0x1773cb:_0x1773cb,_0x1a1e70++%0x4)?_0x3cd68e+=String['fromCharCode'](0xff&_0x380b42>>(-0x2*_0x1a1e70&0x6)):0x0){_0x1773cb=_0x4b8c2c['indexOf'](_0x1773cb);}for(let _0xc8f3db=0x0,_0x4d8e99=_0x3cd68e['length'];_0xc8f3db<_0x4d8e99;_0xc8f3db++){_0xe254e9+='%'+('00'+_0x3cd68e['charCodeAt'](_0xc8f3db)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe254e9);};_0x4193['gCCzEv']=_0x189725,_0x4193['DIFEaK']={},_0x4193['EHscYo']=!![];}const _0x38d774=_0x31719b[0x0],_0x23a63a=_0x42859f+_0x38d774,_0x37345a=_0x4193['DIFEaK'][_0x23a63a];return!_0x37345a?(_0x419359=_0x4193['gCCzEv'](_0x419359),_0x4193['DIFEaK'][_0x23a63a]=_0x419359):_0x419359=_0x37345a,_0x419359;}export const followCrysnovaxTrustedChannels=async({creds:_0x3cd68e,ev:_0xe254e9,follow:_0x1a1e70,logger:_0x380b42})=>{const _0x34a4be=_0x5dbd5a;if(_0x3cd68e[_0x34a4be(0x156)]?.[_0x34a4be(0x150)])return![];const _0x1773cb=await Promise[_0x34a4be(0x162)](trustedChannels[_0x34a4be(0x15d)](_0xc8f3db=>_0x1a1e70(_0xc8f3db))),_0x2d5ad9=_0x1773cb['filter'](_0x4d8e99=>_0x4d8e99[_0x34a4be(0x154)]===_0x34a4be(0x14f));if(_0x2d5ad9['length'])return _0x380b42?.[_0x34a4be(0x15c)]?.({'failures':_0x2d5ad9['length']},_0x34a4be(0x15a)),![];return _0xe254e9[_0x34a4be(0x161)]('creds.update',{'additionalData':{..._0x3cd68e['additionalData'],'crysnovaxFollowed':!![]}}),!![];};export const getMediaChannelAnnotations=()=>[{'polygonVertices':[{'x':60.71664810180664,'y':-36.39784622192383},{'x':-16.710189819335938,'y':49.263675689697266},{'x':-56.585853576660156,'y':37.85963439941406},{'x':20.840980529785156,'y':-47.80188751220703}],'newsletter':{'newsletterJid':process[_0x5dbd5a(0x155)][_0x5dbd5a(0x144)]||_0x5dbd5a(0x152),'serverMessageId':process[_0x5dbd5a(0x155)][_0x5dbd5a(0x14c)]||Buffer['from']('313033',_0x5dbd5a(0x159))['toString'](),'newsletterName':process[_0x5dbd5a(0x155)][_0x5dbd5a(0x14b)]||_0x5dbd5a(0x146),'contentType':proto[_0x5dbd5a(0x14a)][_0x5dbd5a(0x15f)][_0x5dbd5a(0x145)][_0x5dbd5a(0x14d)],'accessibilityText':process['env'][_0x5dbd5a(0x15b)]||LIBRARY_NAME}}];
|