@connection-hub/sdk 0.0.10 → 0.0.20

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.
@@ -1 +1 @@
1
- 'use strict';function _0x514e(){const _0x1f2eaf=['YgmpX','2572Wdrazx','data','oIscG','dadas\x20ou\x20s','As\x20credenc','ção\x20ou\x20cha','getConnect','9dJVhvd','ntials','exports','/channel/','as.\x20Aguard','2013BBzYzD','isCredenti','18277zhcIfw','iais\x20do\x20cl','5547696zZtBSj','foram\x20vali','6100605HxxJzJ','iente\x20não\x20','client','Validation','listConnec','711TPqIgo','14564946hDVHFQ','api','99150RsFyfn','alsValidat','ion','Service','Connection','e\x20a\x20valida','ão\x20inválid','tions','me\x20waitFor','checkCrede','50220irQugU','2526srCZIE','()\x20primeir','/channels','get'];_0x514e=function(){return _0x1f2eaf;};return _0x514e();}const _0x2ef7dd=_0x41c6;(function(_0x58fef0,_0x490d8c){const _0xfbf816=_0x41c6,_0x362561=_0x58fef0();while(!![]){try{const _0x41e669=parseInt(_0xfbf816(0x1a5))/(-0x1213*-0x1+0x4*0x263+-0x1b9e)*(parseInt(_0xfbf816(0x1c2))/(0x6*-0x607+-0x1a1d+-0x3e49*-0x1))+-parseInt(_0xfbf816(0x1aa))/(0x128e+0xd44+-0x1*0x1fcf)*(parseInt(_0xfbf816(0x1c8))/(0x1*-0x1c12+0x1*-0xb32+0x2748))+parseInt(_0xfbf816(0x1b0))/(0x212*0x5+-0x63*0x36+0x1*0xa8d)+parseInt(_0xfbf816(0x1c3))/(0xa0f+0x3*0xa39+-0x28b4)*(parseInt(_0xfbf816(0x1ac))/(0x35*-0x74+0xdef+0x2*0x50e))+parseInt(_0xfbf816(0x1ae))/(-0x281*-0xb+0x199b+-0x20b*0x1a)+-parseInt(_0xfbf816(0x1b5))/(-0x1526+-0x11e4+0x2713)*(parseInt(_0xfbf816(0x1b8))/(-0x1861+0x1*-0xbe3+0x244e))+-parseInt(_0xfbf816(0x1b6))/(-0x1*0x1bf5+-0x103c+0x161e*0x2);if(_0x41e669===_0x490d8c)break;else _0x362561['push'](_0x362561['shift']());}catch(_0x55b5d9){_0x362561['push'](_0x362561['shift']());}}}(_0x514e,0x3346e+-0x1e589+0x95f67));function _0x41c6(_0x2baacc,_0x2b906c){const _0x3e784a=_0x514e();return _0x41c6=function(_0x308454,_0x3f6cf8){_0x308454=_0x308454-(-0x1d09*-0x1+-0x2f5*0x9+-0xcc);let _0x111f48=_0x3e784a[_0x308454];return _0x111f48;},_0x41c6(_0x2baacc,_0x2b906c);}class ConnectionService{constructor(_0x4d38ac,_0x541814){const _0x2154ad=_0x41c6;this[_0x2154ad(0x1b7)]=_0x4d38ac,this[_0x2154ad(0x1b2)]=_0x541814;}[_0x2ef7dd(0x1c1)+_0x2ef7dd(0x1a6)](_0x1dfbe4=!![]){const _0x276653=_0x2ef7dd,_0x4cc4ae={};_0x4cc4ae[_0x276653(0x1a0)]=_0x276653(0x1a2)+_0x276653(0x1ad)+_0x276653(0x1b1)+_0x276653(0x1af)+_0x276653(0x1a1)+_0x276653(0x1be)+_0x276653(0x1a9)+_0x276653(0x1bd)+_0x276653(0x1a3)+_0x276653(0x1c0)+_0x276653(0x1b3)+_0x276653(0x1c4)+'o.';const _0x2ff54e=_0x4cc4ae;if(this[_0x276653(0x1b2)]&&!this[_0x276653(0x1b2)][_0x276653(0x1ab)+_0x276653(0x1b9)+'ed']()&&_0x1dfbe4)throw new Error(_0x2ff54e[_0x276653(0x1a0)]);}async[_0x2ef7dd(0x1b4)+_0x2ef7dd(0x1bf)](){const _0x1811e3=_0x2ef7dd,_0x140bcb={};_0x140bcb[_0x1811e3(0x1c7)]=_0x1811e3(0x1c5);const _0x54fb12=_0x140bcb;this[_0x1811e3(0x1c1)+_0x1811e3(0x1a6)]();try{const _0x6d64b7=await this[_0x1811e3(0x1b7)][_0x1811e3(0x1c6)](_0x54fb12[_0x1811e3(0x1c7)]);return _0x6d64b7[_0x1811e3(0x1c9)];}catch(_0x435063){return[];}}async[_0x2ef7dd(0x1a4)+_0x2ef7dd(0x1ba)](_0x523f2e){const _0x56e5a7=_0x2ef7dd;this[_0x56e5a7(0x1c1)+_0x56e5a7(0x1a6)]();try{const _0x40b414=await this[_0x56e5a7(0x1b7)][_0x56e5a7(0x1c6)](_0x56e5a7(0x1a8)+_0x523f2e);return _0x40b414[_0x56e5a7(0x1c9)];}catch(_0x1038c6){return null;}}}const _0x235f92={};_0x235f92[_0x2ef7dd(0x1bc)+_0x2ef7dd(0x1bb)]=ConnectionService,module[_0x2ef7dd(0x1a7)]=_0x235f92;
1
+ 'use strict';const _0x598e17=_0x55dc;(function(_0x4743ef,_0x1e3793){const _0x2a759c=_0x55dc,_0x3b51b4=_0x4743ef();while(!![]){try{const _0x339347=parseInt(_0x2a759c(0xa5))/(-0x2396+-0x5ea+-0x5*-0x84d)+-parseInt(_0x2a759c(0x8c))/(0x1*-0x1d2a+0x1*-0x6ef+-0xc09*-0x3)+-parseInt(_0x2a759c(0xad))/(-0x2620+-0xa*-0x3b2+0x12f)*(parseInt(_0x2a759c(0x9b))/(0x17a*0x17+0x84+0x2276*-0x1))+-parseInt(_0x2a759c(0x9c))/(0x1b62+-0x129c+0x9*-0xf9)*(-parseInt(_0x2a759c(0x92))/(0x4ce+-0x1*-0x266f+-0x2b37))+parseInt(_0x2a759c(0xab))/(0x35*0x53+0x17bd+-0x1d*0x169)+-parseInt(_0x2a759c(0x91))/(0xcc0*0x1+0x1559*0x1+0x2211*-0x1)*(parseInt(_0x2a759c(0xa3))/(0x1*-0xfee+-0x2452*0x1+-0x1*-0x3449))+parseInt(_0x2a759c(0xa7))/(0xe63+0x5*0x3d7+0xe2*-0x26)*(parseInt(_0x2a759c(0x8f))/(0x4da+0x13f4+-0x18c3));if(_0x339347===_0x1e3793)break;else _0x3b51b4['push'](_0x3b51b4['shift']());}catch(_0xf2e1d3){_0x3b51b4['push'](_0x3b51b4['shift']());}}}(_0x4e7a,0x675d6+0x2*-0x1a151+0xe0f3));function _0x55dc(_0x596dc1,_0x2ded5f){_0x596dc1=_0x596dc1-(0x1bc*-0x6+0x977+0x176*0x1);const _0x1a8db0=_0x4e7a();let _0x3f99cb=_0x1a8db0[_0x596dc1];return _0x3f99cb;}function _0x4e7a(){const _0x2a3600=['84PvBBdu','tions','LaAcp','isCredenti','data','ção\x20ou\x20cha','alsValidat','exports','As\x20credenc','73468EIMpaK','56105kvvNgS','getConnect','dadas\x20ou\x20s','Service','ion','/channels/','get','20376mSwqba','me\x20waitFor','122634OtSlIp','iente\x20não\x20','134210XemApA','client','iais\x20do\x20cl','UOXnm','1894942KwSGZW','ntials','42GlXkvC','listConnec','checkCrede','ão\x20inválid','api','e\x20a\x20valida','foram\x20vali','Connection','as.\x20Aguard','458782ySSjzI','/channels','()\x20primeir','330otCHtT','Validation','704sBbcsm'];_0x4e7a=function(){return _0x2a3600;};return _0x4e7a();}class ConnectionService{constructor(_0x21e44e,_0x5305d1){const _0x539d06=_0x55dc;this[_0x539d06(0x87)]=_0x21e44e,this[_0x539d06(0xa8)]=_0x5305d1;}[_0x598e17(0x85)+_0x598e17(0xac)](_0x2a4669=!![]){const _0x2bad2d=_0x598e17,_0x10ffa5={};_0x10ffa5[_0x2bad2d(0x94)]=_0x2bad2d(0x9a)+_0x2bad2d(0xa9)+_0x2bad2d(0xa6)+_0x2bad2d(0x89)+_0x2bad2d(0x9e)+_0x2bad2d(0x86)+_0x2bad2d(0x8b)+_0x2bad2d(0x88)+_0x2bad2d(0x97)+_0x2bad2d(0xa4)+_0x2bad2d(0x90)+_0x2bad2d(0x8e)+'o.';const _0x214369=_0x10ffa5;if(this[_0x2bad2d(0xa8)]&&!this[_0x2bad2d(0xa8)][_0x2bad2d(0x95)+_0x2bad2d(0x98)+'ed']()&&_0x2a4669)throw new Error(_0x214369[_0x2bad2d(0x94)]);}async[_0x598e17(0xae)+_0x598e17(0x93)](){const _0x11f864=_0x598e17,_0x5293f5={};_0x5293f5[_0x11f864(0xaa)]=_0x11f864(0x8d);const _0x21a5f1=_0x5293f5;this[_0x11f864(0x85)+_0x11f864(0xac)]();try{const _0x689df9=await this[_0x11f864(0x87)][_0x11f864(0xa2)](_0x21a5f1[_0x11f864(0xaa)]);return _0x689df9[_0x11f864(0x96)];}catch(_0x467657){return[];}}async[_0x598e17(0x9d)+_0x598e17(0xa0)](_0x2da70f){const _0x2feac9=_0x598e17;this[_0x2feac9(0x85)+_0x2feac9(0xac)]();try{const _0xd5583c=await this[_0x2feac9(0x87)][_0x2feac9(0xa2)](_0x2feac9(0xa1)+_0x2da70f);return _0xd5583c[_0x2feac9(0x96)];}catch(_0x25a678){return null;}}}const _0x328db4={};_0x328db4[_0x598e17(0x8a)+_0x598e17(0x9f)]=ConnectionService,module[_0x598e17(0x99)]=_0x328db4;
@@ -8,12 +8,28 @@ declare class MessagingService {
8
8
  * @private Método interno para verificar credenciais
9
9
  */
10
10
  checkCredentials(throwError?: boolean): void;
11
+ /**
12
+ * Formatos aceitos pela Meta (Messenger Platform / Instagram).
13
+ * Ref: https://developers.facebook.com/docs/messenger-platform/instagram/features/send-message
14
+ */
15
+ private static readonly META_AUDIO_FORMATS;
16
+ private static readonly META_VIDEO_FORMATS;
17
+ private static readonly META_IMAGE_FORMATS;
11
18
  /**
12
19
  * Determines the file type based on the URL extension
13
20
  * @param url URL of the file to analyze
14
21
  * @returns The file type as "video", "audio", "image" or "file"
15
22
  */
16
23
  private getFileTypeFromUrl;
24
+ /**
25
+ * Extrai extensão da URL, ignorando query string e fragment.
26
+ */
27
+ private getExtensionFromUrl;
28
+ /**
29
+ * Valida se o anexo é aceito pela Meta (Messenger/Instagram).
30
+ * Retorna `null` se válido ou um objeto de erro estruturado se inválido.
31
+ */
32
+ private validateMetaAttachment;
17
33
  /**
18
34
  * Envia uma mensagem de texto para o Facebook
19
35
  * @param channelToken Token do canal
@@ -53,13 +69,86 @@ declare class MessagingService {
53
69
  * @param attachments Anexos (opcional)
54
70
  */
55
71
  sendEmail(channelToken: string, subject: string, body: string, to: string, attachments?: any[]): Promise<any>;
72
+ getProfileFacebook(channelToken: string, recipientId: string): Promise<any>;
73
+ getProfileInstagram(channelToken: string, recipientId: string): Promise<any>;
56
74
  /**
57
- * Envia uma mensagem para o Mercado Livre
75
+ * Envia uma mensagem de texto via WhatsApp Cloud API.
76
+ * Só funciona dentro da janela de 24h após contato do destinatário.
77
+ * Para iniciar conversa ou fora de janela, use sendTemplateToWhatsapp.
58
78
  * @param channelToken Token do canal
59
- * @param recipientId ID do destinatário
60
- * @param message Texto da mensagem
79
+ * @param to Número do destinatário em E.164 sem '+' (ex.: "5511999999999")
80
+ * @param text Texto da mensagem
61
81
  */
62
- sendToMercadoLivre(channelToken: string, recipientId: string, message: string): Promise<any>;
63
- getProfileFacebook(channelToken: string, recipientId: string): Promise<any>;
64
- getProfileInstagram(channelToken: string, recipientId: string): Promise<any>;
82
+ sendTextToWhatsapp(channelToken: string, to: string, text: string): Promise<any>;
83
+ /**
84
+ * Envia um arquivo (imagem, áudio, vídeo ou documento) via WhatsApp.
85
+ * Limites Cloud API: imagem 5MB; áudio 16MB; vídeo 16MB; documento 100MB.
86
+ * Só funciona dentro da janela de 24h.
87
+ * @param channelToken Token do canal
88
+ * @param to Número do destinatário em E.164 sem '+'
89
+ * @param attachmentUrl URL pública do arquivo
90
+ * @param type "image" | "audio" | "video" | "document"
91
+ * @param options.caption legenda (image, video, document)
92
+ * @param options.filename nome do arquivo (document)
93
+ */
94
+ sendFileToWhatsapp(channelToken: string, to: string, attachmentUrl: string, type: "image" | "audio" | "video" | "document", options?: {
95
+ caption?: string;
96
+ filename?: string;
97
+ }): Promise<any>;
98
+ /**
99
+ * Envia uma mensagem template (HSM) via WhatsApp. Necessária para iniciar
100
+ * conversa ou enviar fora da janela de 24h. O template precisa estar
101
+ * aprovado na Meta.
102
+ * @param channelToken Token do canal
103
+ * @param to Número do destinatário em E.164 sem '+'
104
+ * @param name Nome do template aprovado (ex.: "hello_world")
105
+ * @param language Código do idioma (ex.: "pt_BR", "en_US")
106
+ * @param components Componentes do template (header/body/buttons params)
107
+ */
108
+ sendTemplateToWhatsapp(channelToken: string, to: string, name: string, language: string, components?: unknown[]): Promise<any>;
109
+ /**
110
+ * Marca uma mensagem WhatsApp como lida (azul duplo).
111
+ * @param channelToken Token do canal
112
+ * @param messageId mid da mensagem recebida (campo `message.mid` no webhook)
113
+ */
114
+ markWhatsappMessageAsRead(channelToken: string, messageId: string): Promise<any>;
115
+ /**
116
+ * Envia mensagem pós-venda em uma conversa do Mercado Livre.
117
+ * Usa a Messaging API do ML (`/messages/packs/{packId}/sellers/{sellerId}`).
118
+ * @param channelToken Token do canal
119
+ * @param packId ID da conversa (`pack_id`) — vem no webhook de `messages`
120
+ * @param buyerId ID do comprador (`user_id` destinatário) — vem no payload da mensagem recebida
121
+ * @param text Texto da mensagem
122
+ * @param sellerId (opcional) ID do vendedor; se omitido, o backend usa o `pageId` do canal
123
+ */
124
+ sendMercadoLivreMessage(channelToken: string, packId: string | number, buyerId: string | number, text: string, sellerId?: string | number): Promise<any>;
125
+ /**
126
+ * Responde a uma pergunta de produto no Mercado Livre.
127
+ * Usa o endpoint `/answers` da API do ML.
128
+ * @param channelToken Token do canal
129
+ * @param questionId ID da pergunta (vem no webhook de `questions`)
130
+ * @param text Texto da resposta
131
+ */
132
+ answerMercadoLivreQuestion(channelToken: string, questionId: string | number, text: string): Promise<any>;
133
+ /**
134
+ * Envia uma mensagem de texto via Telegram Bot API.
135
+ * @param channelToken Token do canal
136
+ * @param chatId ID do chat de destino (numérico do Telegram, aceita string ou number)
137
+ * @param text Texto da mensagem
138
+ */
139
+ sendTextToTelegram(channelToken: string, chatId: string | number, text: string): Promise<any>;
140
+ /**
141
+ * Envia um arquivo via Telegram (foto, vídeo ou documento).
142
+ * @param channelToken Token do canal
143
+ * @param chatId ID do chat de destino
144
+ * @param attachmentUrl URL pública do arquivo
145
+ * @param options.type "photo" | "video" | "document". Se omitido, o backend infere pela extensão da URL.
146
+ * @param options.caption Legenda (photo/video/document)
147
+ * @param options.filename Nome do arquivo (document)
148
+ */
149
+ sendFileToTelegram(channelToken: string, chatId: string | number, attachmentUrl: string, options?: {
150
+ type?: "photo" | "video" | "document";
151
+ caption?: string;
152
+ filename?: string;
153
+ }): Promise<any>;
65
154
  }
@@ -1 +1 @@
1
- 'use strict';function _0x1f04(_0x3335c1,_0x405d1f){const _0x17980b=_0x2075();return _0x1f04=function(_0x2d7b9e,_0x1d0434){_0x2d7b9e=_0x2d7b9e-(0x10f4+0xc74+-0x7*0x3ff);let _0x2b1ae9=_0x17980b[_0x2d7b9e];return _0x2b1ae9;},_0x1f04(_0x3335c1,_0x405d1f);}const _0x53444a=_0x1f04;(function(_0x488311,_0x3281d9){const _0x5a7248=_0x1f04,_0x2a81b6=_0x488311();while(!![]){try{const _0x3e966a=parseInt(_0x5a7248(0x1b5))/(0x19d*-0x17+0x1856+-0x3*-0x442)+parseInt(_0x5a7248(0x1d3))/(0x12b*-0x5+0x3ac+0x22d)+parseInt(_0x5a7248(0x171))/(0x277*0x5+-0x1068*-0x1+-0x1cb8)+-parseInt(_0x5a7248(0x18d))/(-0xa12+0x119*-0x22+-0x17b4*-0x2)+parseInt(_0x5a7248(0x19d))/(-0x1b8+-0xb99+0xd56)+parseInt(_0x5a7248(0x17a))/(-0x71*-0x3+-0x25e2+0x2495*0x1)+parseInt(_0x5a7248(0x1c3))/(-0x84a*0x2+0x817+0x4*0x221)*(-parseInt(_0x5a7248(0x19b))/(-0xe45*0x2+-0xbca*-0x1+-0xc*-0x166));if(_0x3e966a===_0x3281d9)break;else _0x2a81b6['push'](_0x2a81b6['shift']());}catch(_0x2f2984){_0x2a81b6['push'](_0x2a81b6['shift']());}}}(_0x2075,0xe32*0x1a3+-0x11b468+0x7d7f8));class MessagingService{constructor(_0x70548d,_0x31af80){const _0x2dcb30=_0x1f04;this[_0x2dcb30(0x1cc)]=_0x70548d,this[_0x2dcb30(0x17d)]=_0x31af80;}[_0x53444a(0x1af)+_0x53444a(0x1c1)](_0x8deef2=!![]){const _0x28820b=_0x53444a,_0x4d7faf={};_0x4d7faf[_0x28820b(0x1a1)]=_0x28820b(0x186)+_0x28820b(0x181)+_0x28820b(0x1eb)+_0x28820b(0x190)+_0x28820b(0x1db)+_0x28820b(0x1c8)+_0x28820b(0x1d4);const _0x1e7814=_0x4d7faf;if(this[_0x28820b(0x17d)]&&!this[_0x28820b(0x17d)][_0x28820b(0x17f)+_0x28820b(0x1a4)+'ed']()&&_0x8deef2)throw new Error(_0x1e7814[_0x28820b(0x1a1)]);}[_0x53444a(0x1aa)+_0x53444a(0x1ad)](_0x5bc684){const _0x304624=_0x53444a,_0x13948b={};_0x13948b[_0x304624(0x1ec)]=_0x304624(0x1c2),_0x13948b[_0x304624(0x1ca)]=_0x304624(0x1b1),_0x13948b[_0x304624(0x182)]=_0x304624(0x1e5),_0x13948b[_0x304624(0x179)]=_0x304624(0x1d6),_0x13948b[_0x304624(0x1d7)]=_0x304624(0x1de),_0x13948b[_0x304624(0x1e4)]=_0x304624(0x187),_0x13948b[_0x304624(0x184)]=_0x304624(0x1c9),_0x13948b[_0x304624(0x1ed)]=_0x304624(0x17c),_0x13948b[_0x304624(0x1cb)]=_0x304624(0x175),_0x13948b[_0x304624(0x1e3)]=_0x304624(0x1e9),_0x13948b[_0x304624(0x1e1)]=_0x304624(0x1c4),_0x13948b[_0x304624(0x1a5)]=_0x304624(0x18c),_0x13948b[_0x304624(0x1ce)]=_0x304624(0x1a6),_0x13948b[_0x304624(0x1e8)]=_0x304624(0x176),_0x13948b[_0x304624(0x1c6)]=_0x304624(0x1e6),_0x13948b[_0x304624(0x1ac)]=_0x304624(0x197),_0x13948b[_0x304624(0x177)]=_0x304624(0x188),_0x13948b[_0x304624(0x1b8)]=_0x304624(0x1b9),_0x13948b[_0x304624(0x199)]=_0x304624(0x19f),_0x13948b[_0x304624(0x1b3)]=_0x304624(0x19c),_0x13948b[_0x304624(0x172)]=_0x304624(0x189),_0x13948b[_0x304624(0x173)]=_0x304624(0x1df),_0x13948b[_0x304624(0x1dd)]=_0x304624(0x194),_0x13948b[_0x304624(0x1e0)]=_0x304624(0x1b7);const _0x55ec86=_0x13948b,_0x3f714e=_0x5bc684[_0x304624(0x16f)]('.')[_0x304624(0x1a9)]()?.[_0x304624(0x191)+'e']()||'',_0x33122d=[_0x55ec86[_0x304624(0x1ec)],_0x55ec86[_0x304624(0x1ca)],_0x55ec86[_0x304624(0x182)],_0x55ec86[_0x304624(0x179)],_0x55ec86[_0x304624(0x1d7)],_0x55ec86[_0x304624(0x1e4)],_0x55ec86[_0x304624(0x184)]],_0x476d67=[_0x55ec86[_0x304624(0x1ed)],_0x55ec86[_0x304624(0x1cb)],_0x55ec86[_0x304624(0x1e3)],_0x55ec86[_0x304624(0x1e1)],_0x55ec86[_0x304624(0x1a5)],_0x55ec86[_0x304624(0x1ce)]],_0x549a47=[_0x55ec86[_0x304624(0x1e8)],_0x55ec86[_0x304624(0x1c6)],_0x55ec86[_0x304624(0x1ac)],_0x55ec86[_0x304624(0x177)],_0x55ec86[_0x304624(0x1b8)],_0x55ec86[_0x304624(0x199)],_0x55ec86[_0x304624(0x1b3)]];if(_0x33122d[_0x304624(0x19a)](_0x3f714e))return _0x55ec86[_0x304624(0x172)];if(_0x476d67[_0x304624(0x19a)](_0x3f714e))return _0x55ec86[_0x304624(0x173)];if(_0x549a47[_0x304624(0x19a)](_0x3f714e))return _0x55ec86[_0x304624(0x1dd)];return _0x55ec86[_0x304624(0x1e0)];}async[_0x53444a(0x170)+_0x53444a(0x1c5)](_0x56ed81,_0x126539,_0x59914b){const _0x26a836=_0x53444a,_0x5a7b7={};_0x5a7b7[_0x26a836(0x1a3)]=_0x26a836(0x1b6)+_0x26a836(0x1ba)+_0x26a836(0x1a2)+_0x26a836(0x195);const _0x290e4a=_0x5a7b7;this[_0x26a836(0x1af)+_0x26a836(0x1c1)]();try{const _0x4183b6={};_0x4183b6[_0x26a836(0x1d9)+'en']=_0x56ed81,_0x4183b6[_0x26a836(0x1d8)+'d']=_0x126539,_0x4183b6[_0x26a836(0x196)]=_0x59914b;const _0x4c2f4e=await this[_0x26a836(0x1cc)][_0x26a836(0x180)](_0x290e4a[_0x26a836(0x1a3)],_0x4183b6);return _0x4c2f4e[_0x26a836(0x1b2)];}catch(_0x28a887){const _0x1082d0={};return _0x1082d0[_0x26a836(0x1bb)]=![],_0x1082d0[_0x26a836(0x1c7)]=_0x28a887[_0x26a836(0x17b)]?.[_0x26a836(0x1b2)]?.[_0x26a836(0x196)]||_0x28a887[_0x26a836(0x196)],_0x1082d0;}}async[_0x53444a(0x1d2)+_0x53444a(0x1c5)](_0x122c30,_0x552060,_0x597d4f){const _0x5edc2f=_0x53444a,_0x5ebddd={};_0x5ebddd[_0x5edc2f(0x1a0)]=_0x5edc2f(0x1b6)+_0x5edc2f(0x1ba)+_0x5edc2f(0x19e)+_0x5edc2f(0x195);const _0x28473b=_0x5ebddd;this[_0x5edc2f(0x1af)+_0x5edc2f(0x1c1)]();try{const _0x20bcfe=this[_0x5edc2f(0x1aa)+_0x5edc2f(0x1ad)](_0x597d4f),_0xd96ae8={};_0xd96ae8[_0x5edc2f(0x1d9)+'en']=_0x122c30,_0xd96ae8[_0x5edc2f(0x1d8)+'d']=_0x552060,_0xd96ae8[_0x5edc2f(0x18f)+_0x5edc2f(0x192)]=_0x597d4f,_0xd96ae8[_0x5edc2f(0x1b4)]=_0x20bcfe;const _0x281cad=await this[_0x5edc2f(0x1cc)][_0x5edc2f(0x180)](_0x28473b[_0x5edc2f(0x1a0)],_0xd96ae8);return _0x281cad[_0x5edc2f(0x1b2)];}catch(_0x54f3a7){const _0x265619={};return _0x265619[_0x5edc2f(0x1bb)]=![],_0x265619[_0x5edc2f(0x1c7)]=_0x54f3a7[_0x5edc2f(0x17b)]?.[_0x5edc2f(0x1b2)]?.[_0x5edc2f(0x196)]||_0x54f3a7[_0x5edc2f(0x196)],_0x265619;}}async[_0x53444a(0x170)+_0x53444a(0x1c0)](_0x3f5919,_0x1c2d45,_0x3eef5e){const _0x747c42=_0x53444a,_0x5a3f1a={};_0x5a3f1a[_0x747c42(0x1da)]=_0x747c42(0x1b6)+_0x747c42(0x1be)+_0x747c42(0x1a7)+_0x747c42(0x183);const _0x54bb8d=_0x5a3f1a;this[_0x747c42(0x1af)+_0x747c42(0x1c1)]();try{const _0x41973a={};_0x41973a[_0x747c42(0x1d9)+'en']=_0x3f5919,_0x41973a[_0x747c42(0x1d8)+'d']=_0x1c2d45,_0x41973a[_0x747c42(0x1ae)]=_0x3eef5e;const _0x14a929=await this[_0x747c42(0x1cc)][_0x747c42(0x180)](_0x54bb8d[_0x747c42(0x1da)],_0x41973a);return _0x14a929[_0x747c42(0x1b2)];}catch(_0x5b3f40){const _0x13941a={};return _0x13941a[_0x747c42(0x1bb)]=![],_0x13941a[_0x747c42(0x1c7)]=_0x5b3f40[_0x747c42(0x17b)]?.[_0x747c42(0x1b2)]?.[_0x747c42(0x196)]||_0x5b3f40[_0x747c42(0x196)],_0x13941a;}}async[_0x53444a(0x1d2)+_0x53444a(0x1c0)](_0x2368d0,_0x4ad87a,_0x1aa61a){const _0x2f7dd7=_0x53444a,_0x5abcd6={};_0x5abcd6[_0x2f7dd7(0x18b)]=_0x2f7dd7(0x1b6)+_0x2f7dd7(0x1be)+_0x2f7dd7(0x1e2)+_0x2f7dd7(0x1d0);const _0x2e3ccb=_0x5abcd6;this[_0x2f7dd7(0x1af)+_0x2f7dd7(0x1c1)]();try{const _0x23d5cc=this[_0x2f7dd7(0x1aa)+_0x2f7dd7(0x1ad)](_0x1aa61a),_0x403d12={};_0x403d12[_0x2f7dd7(0x1d9)+'en']=_0x2368d0,_0x403d12[_0x2f7dd7(0x1d8)+'d']=_0x4ad87a,_0x403d12[_0x2f7dd7(0x18f)+_0x2f7dd7(0x192)]=_0x1aa61a,_0x403d12[_0x2f7dd7(0x1b4)]=_0x23d5cc;const _0x5dfee1=await this[_0x2f7dd7(0x1cc)][_0x2f7dd7(0x180)](_0x2e3ccb[_0x2f7dd7(0x18b)],_0x403d12);return _0x5dfee1[_0x2f7dd7(0x1b2)];}catch(_0x2a2dc3){const _0x37142c={};return _0x37142c[_0x2f7dd7(0x1bb)]=![],_0x37142c[_0x2f7dd7(0x1c7)]=_0x2a2dc3[_0x2f7dd7(0x17b)]?.[_0x2f7dd7(0x1b2)]?.[_0x2f7dd7(0x196)]||_0x2a2dc3[_0x2f7dd7(0x196)],_0x37142c;}}async[_0x53444a(0x1cd)](_0x285dc3,_0x4ee8d6,_0x57491a,_0x21dc84,_0x25489f){const _0x875f3c=_0x53444a,_0x79d241={};_0x79d241[_0x875f3c(0x17e)]=_0x875f3c(0x18e)+_0x875f3c(0x18a);const _0x4a7530=_0x79d241;this[_0x875f3c(0x1af)+_0x875f3c(0x1c1)]();try{const _0x1ea458={};_0x1ea458[_0x875f3c(0x1d9)+'en']=_0x285dc3,_0x1ea458[_0x875f3c(0x1a8)]=_0x4ee8d6,_0x1ea458[_0x875f3c(0x1cf)]=_0x57491a,_0x1ea458['to']=_0x21dc84,_0x1ea458[_0x875f3c(0x18f)+'s']=_0x25489f;const _0x393ca1=await this[_0x875f3c(0x1cc)][_0x875f3c(0x180)](_0x4a7530[_0x875f3c(0x17e)],_0x1ea458);return _0x393ca1[_0x875f3c(0x1b2)];}catch(_0x150510){const _0xe6381={};return _0xe6381[_0x875f3c(0x1bb)]=![],_0xe6381[_0x875f3c(0x1c7)]=_0x150510[_0x875f3c(0x17b)]?.[_0x875f3c(0x1b2)]?.[_0x875f3c(0x196)]||_0x150510[_0x875f3c(0x196)],_0xe6381;}}async[_0x53444a(0x1bc)+_0x53444a(0x1ab)](_0x8557f3,_0x1afbb7,_0x29c8cf){const _0x47e2f8=_0x53444a,_0x297463={};_0x297463[_0x47e2f8(0x1bd)]=_0x47e2f8(0x1b6)+_0x47e2f8(0x1d5)+_0x47e2f8(0x174)+_0x47e2f8(0x1bf)+'e';const _0x726f44=_0x297463;this[_0x47e2f8(0x1af)+_0x47e2f8(0x1c1)]();try{const _0x40c57a={};_0x40c57a[_0x47e2f8(0x1d9)+'en']=_0x8557f3,_0x40c57a[_0x47e2f8(0x1d8)+'d']=_0x1afbb7,_0x40c57a[_0x47e2f8(0x196)]=_0x29c8cf;const _0x48987e=await this[_0x47e2f8(0x1cc)][_0x47e2f8(0x180)](_0x726f44[_0x47e2f8(0x1bd)],_0x40c57a);return _0x48987e[_0x47e2f8(0x1b2)];}catch(_0x2328ba){const _0x4f69b5={};return _0x4f69b5[_0x47e2f8(0x1bb)]=![],_0x4f69b5[_0x47e2f8(0x1c7)]=_0x2328ba[_0x47e2f8(0x17b)]?.[_0x47e2f8(0x1b2)]?.[_0x47e2f8(0x196)]||_0x2328ba[_0x47e2f8(0x196)],_0x4f69b5;}}async[_0x53444a(0x178)+_0x53444a(0x1c5)](_0x578738,_0x49553f){const _0x2a6e08=_0x53444a;this[_0x2a6e08(0x1af)+_0x2a6e08(0x1c1)]();try{const _0xbeacb8={};_0xbeacb8[_0x2a6e08(0x1d9)+'en']=_0x578738,_0xbeacb8[_0x2a6e08(0x1d8)+'d']=_0x49553f;const _0x3b9c45={};_0x3b9c45[_0x2a6e08(0x198)]=_0xbeacb8;const _0x32726e=await this[_0x2a6e08(0x1cc)][_0x2a6e08(0x185)](_0x2a6e08(0x1b6)+_0x2a6e08(0x1ba)+_0x2a6e08(0x1dc)+'le',_0x3b9c45);return _0x32726e[_0x2a6e08(0x1b2)];}catch(_0x3eb6e7){const _0x14f799={};return _0x14f799[_0x2a6e08(0x1bb)]=![],_0x14f799[_0x2a6e08(0x1c7)]=_0x3eb6e7[_0x2a6e08(0x17b)]?.[_0x2a6e08(0x1b2)]?.[_0x2a6e08(0x196)]||_0x3eb6e7[_0x2a6e08(0x196)],_0x14f799;}}async[_0x53444a(0x178)+_0x53444a(0x1c0)](_0x6be397,_0xd573ee){const _0x55e7d6=_0x53444a;this[_0x55e7d6(0x1af)+_0x55e7d6(0x1c1)]();try{const _0x3dbdc8={};_0x3dbdc8[_0x55e7d6(0x1d9)+'en']=_0x6be397,_0x3dbdc8[_0x55e7d6(0x1d8)+'d']=_0xd573ee;const _0x563e51={};_0x563e51[_0x55e7d6(0x198)]=_0x3dbdc8;const _0x7fc615=await this[_0x55e7d6(0x1cc)][_0x55e7d6(0x185)](_0x55e7d6(0x1b6)+_0x55e7d6(0x1be)+_0x55e7d6(0x193)+_0x55e7d6(0x1ea),_0x563e51);return _0x7fc615[_0x55e7d6(0x1b2)];}catch(_0x51e32d){const _0x1b5b84={};return _0x1b5b84[_0x55e7d6(0x1bb)]=![],_0x1b5b84[_0x55e7d6(0x1c7)]=_0x51e32d[_0x55e7d6(0x17b)]?.[_0x55e7d6(0x1b2)]?.[_0x55e7d6(0x196)]||_0x51e32d[_0x55e7d6(0x196)],_0x1b5b84;}}}function _0x2075(){const _0x42083c=['JrFeb','tMessage','Wrkhk','get','As\x20credenc','mkv','gif','video','/send','JdrBc','m4a','5255120TAPgQo','/hub/email','attachment','foram\x20vali','toLowerCas','Url','am/getProf','image','Message','message','png','params','JpANb','includes','18191672WikXqJ','tiff','5543755PbDOnB','k/sendFile','webp','KSbgI','AICgM','k/sendText','WEQKy','alsValidat','yHcrv','wma','am/sendTex','subject','pop','getFileTyp','adoLivre','mMEIx','eFromUrl','text','checkCrede','MessagingS','mov','data','RQUDK','type','109251IPFKLT','/hub/messa','file','HXVFt','bmp','ge/faceboo','success','sendToMerc','iDWfY','ge/instagr','TextMessag','Instagram','ntials','mp4','7KoFhHN','aac','Facebook','LtcqV','error','ão\x20inválid','webm','Ampbq','EjLQJ','api','sendEmail','NnRaI','body','eMessage','exports','sendFileTo','1794174NIDvIL','as.','ge/mercado','wmv','ylHGb','recipientI','channelTok','ybeaX','dadas\x20ou\x20s','k/getProfi','hXbSX','flv','audio','TFSrJ','sjjLr','am/sendFil','EPVBz','DQePC','avi','jpeg','ervice','YoVUl','ogg','ile','iente\x20não\x20','UjSsS','HtGwO','split','sendTextTo','3153273ZYhzsF','QXBIc','cvihU','livre/send','wav','jpg','RCYqa','getProfile','uOgHO','7787694EzcLVC','response','mp3','client','paHeY','isCredenti','post','iais\x20do\x20cl'];_0x2075=function(){return _0x42083c;};return _0x2075();}const _0x448b2c={};_0x448b2c[_0x53444a(0x1b0)+_0x53444a(0x1e7)]=MessagingService,module[_0x53444a(0x1d1)]=_0x448b2c;
1
+ 'use strict';const _0x805ab9=_0x22a7;(function(_0x2e6fcb,_0x47db04){const _0x1425c3=_0x22a7,_0x9ae685=_0x2e6fcb();while(!![]){try{const _0x222969=parseInt(_0x1425c3(0x1ad))/(-0x10e7+-0x684+0x176c)+-parseInt(_0x1425c3(0x10a))/(-0x11*-0x1b+-0xee*-0x1+-0x2b7)*(-parseInt(_0x1425c3(0x18e))/(-0x1*0x64d+-0x1117+0x1767))+-parseInt(_0x1425c3(0x1b0))/(0x86*-0x22+-0x1a3b+0x2c0b)*(-parseInt(_0x1425c3(0x16c))/(-0x23e7+-0x92d+0x2d19))+-parseInt(_0x1425c3(0x113))/(0x1030*-0x2+0x1*-0xffd+-0x3063*-0x1)+-parseInt(_0x1425c3(0x169))/(-0xb*0x8d+0xb19+-0x503)+-parseInt(_0x1425c3(0x13a))/(-0x20ae+-0x1*-0x2345+-0x28f)*(parseInt(_0x1425c3(0x148))/(-0x137b+0x1ca+-0x8dd*-0x2))+parseInt(_0x1425c3(0x198))/(-0x7f9+0x1a07*-0x1+0x220a)*(parseInt(_0x1425c3(0x14a))/(-0x1*0x2456+-0x442+0x28a3));if(_0x222969===_0x47db04)break;else _0x9ae685['push'](_0x9ae685['shift']());}catch(_0x141925){_0x9ae685['push'](_0x9ae685['shift']());}}}(_0x1c90,0x2af13*0x7+0xf27a2+-0x13acef));function _0x22a7(_0xb2a214,_0x39ac25){_0xb2a214=_0xb2a214-(-0x9fe+-0x23be+0x2eae);const _0xf2f94c=_0x1c90();let _0x430837=_0xf2f94c[_0xb2a214];return _0x430837;}class MessagingService{constructor(_0x7bd9c1,_0x449420){const _0x30f2e7=_0x22a7;this[_0x30f2e7(0xfa)]=_0x7bd9c1,this[_0x30f2e7(0x10b)]=_0x449420;}[_0x805ab9(0x13e)+_0x805ab9(0x185)](_0x14e555=!![]){const _0x4401f6=_0x805ab9,_0x821dd4={};_0x821dd4[_0x4401f6(0x17a)]=_0x4401f6(0x12b)+_0x4401f6(0x162)+_0x4401f6(0x13d)+_0x4401f6(0x11c)+_0x4401f6(0x180)+_0x4401f6(0xff)+_0x4401f6(0xf7);const _0x5a70e1=_0x821dd4;if(this[_0x4401f6(0x10b)]&&!this[_0x4401f6(0x10b)][_0x4401f6(0x167)+_0x4401f6(0x192)+'ed']()&&_0x14e555)throw new Error(_0x5a70e1[_0x4401f6(0x17a)]);}[_0x805ab9(0x105)+_0x805ab9(0x10e)](_0x1b4557){const _0x2a6765=_0x805ab9,_0x94e9d7={};_0x94e9d7[_0x2a6765(0x124)]=_0x2a6765(0x129),_0x94e9d7[_0x2a6765(0x188)]=_0x2a6765(0x1a5),_0x94e9d7[_0x2a6765(0x168)]=_0x2a6765(0x161),_0x94e9d7[_0x2a6765(0x107)]=_0x2a6765(0x17b),_0x94e9d7[_0x2a6765(0x15e)]=_0x2a6765(0x111),_0x94e9d7[_0x2a6765(0x133)]=_0x2a6765(0x189),_0x94e9d7[_0x2a6765(0x154)]=_0x2a6765(0x1a1),_0x94e9d7[_0x2a6765(0x16a)]=_0x2a6765(0x11b),_0x94e9d7[_0x2a6765(0x191)]=_0x2a6765(0x135),_0x94e9d7[_0x2a6765(0x187)]=_0x2a6765(0x134),_0x94e9d7[_0x2a6765(0x12f)]=_0x2a6765(0x136),_0x94e9d7[_0x2a6765(0x163)]=_0x2a6765(0x123),_0x94e9d7[_0x2a6765(0x121)]=_0x2a6765(0x15a),_0x94e9d7[_0x2a6765(0x15d)]=_0x2a6765(0x16b),_0x94e9d7[_0x2a6765(0x102)]=_0x2a6765(0x1a6),_0x94e9d7[_0x2a6765(0x10d)]=_0x2a6765(0x177),_0x94e9d7[_0x2a6765(0x19a)]=_0x2a6765(0x164),_0x94e9d7[_0x2a6765(0x145)]=_0x2a6765(0xf8),_0x94e9d7[_0x2a6765(0x1a9)]=_0x2a6765(0x125),_0x94e9d7[_0x2a6765(0x143)]=_0x2a6765(0x12e),_0x94e9d7[_0x2a6765(0x1aa)]=_0x2a6765(0x12a),_0x94e9d7[_0x2a6765(0x160)]=_0x2a6765(0x15f),_0x94e9d7[_0x2a6765(0x108)]=_0x2a6765(0xf4),_0x94e9d7[_0x2a6765(0x10c)]=_0x2a6765(0x126);const _0x38f399=_0x94e9d7,_0x3798e5=this[_0x2a6765(0x18f)+_0x2a6765(0x128)](_0x1b4557),_0x3a6fbc=[_0x38f399[_0x2a6765(0x124)],_0x38f399[_0x2a6765(0x188)],_0x38f399[_0x2a6765(0x168)],_0x38f399[_0x2a6765(0x107)],_0x38f399[_0x2a6765(0x15e)],_0x38f399[_0x2a6765(0x133)],_0x38f399[_0x2a6765(0x154)],_0x38f399[_0x2a6765(0x16a)]],_0x45a550=[_0x38f399[_0x2a6765(0x191)],_0x38f399[_0x2a6765(0x187)],_0x38f399[_0x2a6765(0x16a)],_0x38f399[_0x2a6765(0x12f)],_0x38f399[_0x2a6765(0x163)],_0x38f399[_0x2a6765(0x121)]],_0x2f9906=[_0x38f399[_0x2a6765(0x15d)],_0x38f399[_0x2a6765(0x102)],_0x38f399[_0x2a6765(0x10d)],_0x38f399[_0x2a6765(0x19a)],_0x38f399[_0x2a6765(0x145)],_0x38f399[_0x2a6765(0x1a9)],_0x38f399[_0x2a6765(0x143)]];if(_0x3a6fbc[_0x2a6765(0x1af)](_0x3798e5))return _0x38f399[_0x2a6765(0x1aa)];if(_0x45a550[_0x2a6765(0x1af)](_0x3798e5))return _0x38f399[_0x2a6765(0x160)];if(_0x2f9906[_0x2a6765(0x1af)](_0x3798e5))return _0x38f399[_0x2a6765(0x108)];return _0x38f399[_0x2a6765(0x10c)];}[_0x805ab9(0x18f)+_0x805ab9(0x128)](_0x15449c){const _0x3eb5bc=_0x805ab9,_0x1a9bb8=_0x15449c[_0x3eb5bc(0x171)]('?')[-0x1cd*0xa+-0x1*0x13eb+0x13*0x1ff][_0x3eb5bc(0x171)]('#')[-0x5*-0x3ad+0x1231+-0x2492];return _0x1a9bb8[_0x3eb5bc(0x171)]('.')[_0x3eb5bc(0x1a7)]()?.[_0x3eb5bc(0x170)+'e']()||'';}[_0x805ab9(0x173)+_0x805ab9(0x18d)+'nt'](_0x1d8836,_0xc0ec0c){const _0x2d2583=_0x805ab9,_0x9fbf72={};_0x9fbf72[_0x2d2583(0xf5)]=function(_0x483450,_0x25592f){return _0x483450===_0x25592f;},_0x9fbf72[_0x2d2583(0x12d)]=_0x2d2583(0x15f),_0x9fbf72[_0x2d2583(0x11e)]=function(_0x2fb888,_0x5c01ba){return _0x2fb888===_0x5c01ba;},_0x9fbf72[_0x2d2583(0x140)]=_0x2d2583(0x12a),_0x9fbf72[_0x2d2583(0x104)]=function(_0x53dddb,_0x19f6ea){return _0x53dddb===_0x19f6ea;},_0x9fbf72[_0x2d2583(0xfd)]=_0x2d2583(0xf4);const _0x7b3d34=_0x9fbf72,_0x3a8e30=this[_0x2d2583(0x18f)+_0x2d2583(0x128)](_0x1d8836);let _0x5763bb=null;if(_0x7b3d34[_0x2d2583(0xf5)](_0xc0ec0c,_0x7b3d34[_0x2d2583(0x12d)]))_0x5763bb=MessagingService[_0x2d2583(0x131)+_0x2d2583(0x18a)];else{if(_0x7b3d34[_0x2d2583(0x11e)](_0xc0ec0c,_0x7b3d34[_0x2d2583(0x140)]))_0x5763bb=MessagingService[_0x2d2583(0x174)+_0x2d2583(0x18a)];else _0x7b3d34[_0x2d2583(0x104)](_0xc0ec0c,_0x7b3d34[_0x2d2583(0xfd)])&&(_0x5763bb=MessagingService[_0x2d2583(0x15c)+_0x2d2583(0x18a)]);}if(_0x5763bb&&!_0x5763bb[_0x2d2583(0x1af)](_0x3a8e30))return{'success':![],'error':_0x2d2583(0x16e)+'\x20'+_0xc0ec0c+_0x2d2583(0x118)+_0x3a8e30+(_0x2d2583(0x116)+_0x2d2583(0x181)+_0x2d2583(0x153)+_0x2d2583(0x14f)+_0x2d2583(0x183))+_0x5763bb[_0x2d2583(0x19b)](',\x20')+'.','acceptedFormats':_0x5763bb};return null;}async[_0x805ab9(0x14e)+_0x805ab9(0x1ab)](_0x54c2f3,_0x4b6599,_0x2348e9){const _0x292846=_0x805ab9,_0x265d56={};_0x265d56[_0x292846(0x1a0)]=_0x292846(0x132)+_0x292846(0x1a2)+_0x292846(0x17d)+_0x292846(0x11d);const _0x4a0651=_0x265d56;this[_0x292846(0x13e)+_0x292846(0x185)]();try{const _0x437f35={};_0x437f35[_0x292846(0x1ac)+'en']=_0x54c2f3,_0x437f35[_0x292846(0xf9)+'d']=_0x4b6599,_0x437f35[_0x292846(0xfe)]=_0x2348e9;const _0x9e5a49=await this[_0x292846(0xfa)][_0x292846(0x14d)](_0x4a0651[_0x292846(0x1a0)],_0x437f35);return _0x9e5a49[_0x292846(0x166)];}catch(_0x5b854f){const _0x1e68c5={};return _0x1e68c5[_0x292846(0x130)]=![],_0x1e68c5[_0x292846(0x147)]=_0x5b854f[_0x292846(0x141)]?.[_0x292846(0x166)]?.[_0x292846(0xfe)]||_0x5b854f[_0x292846(0xfe)],_0x1e68c5;}}async[_0x805ab9(0xfc)+_0x805ab9(0x1ab)](_0x2dedd5,_0x34dc43,_0x341c85){const _0x160b12=_0x805ab9,_0x2257d0={};_0x2257d0[_0x160b12(0x11a)]=_0x160b12(0x132)+_0x160b12(0x1a2)+_0x160b12(0x1a3)+_0x160b12(0x11d);const _0x3fdee7=_0x2257d0;this[_0x160b12(0x13e)+_0x160b12(0x185)]();try{const _0x163758=this[_0x160b12(0x105)+_0x160b12(0x10e)](_0x341c85),_0x1e7f8f=this[_0x160b12(0x173)+_0x160b12(0x18d)+'nt'](_0x341c85,_0x163758);if(_0x1e7f8f)return _0x1e7f8f;const _0x5ee478={};_0x5ee478[_0x160b12(0x1ac)+'en']=_0x2dedd5,_0x5ee478[_0x160b12(0xf9)+'d']=_0x34dc43,_0x5ee478[_0x160b12(0x199)+_0x160b12(0x1a4)]=_0x341c85,_0x5ee478[_0x160b12(0x151)]=_0x163758;const _0x4da53f=await this[_0x160b12(0xfa)][_0x160b12(0x14d)](_0x3fdee7[_0x160b12(0x11a)],_0x5ee478);return _0x4da53f[_0x160b12(0x166)];}catch(_0x2c08e7){const _0x35f302={};return _0x35f302[_0x160b12(0x130)]=![],_0x35f302[_0x160b12(0x147)]=_0x2c08e7[_0x160b12(0x141)]?.[_0x160b12(0x166)]?.[_0x160b12(0xfe)]||_0x2c08e7[_0x160b12(0xfe)],_0x35f302;}}async[_0x805ab9(0x14e)+_0x805ab9(0x155)](_0x413734,_0x4edf37,_0x11fd30){const _0x28a889=_0x805ab9,_0x5a7b2d={};_0x5a7b2d[_0x28a889(0x1a8)]=_0x28a889(0x132)+_0x28a889(0x172)+_0x28a889(0x159)+_0x28a889(0x19c);const _0x54bb57=_0x5a7b2d;this[_0x28a889(0x13e)+_0x28a889(0x185)]();try{const _0x1c2ff5={};_0x1c2ff5[_0x28a889(0x1ac)+'en']=_0x413734,_0x1c2ff5[_0x28a889(0xf9)+'d']=_0x4edf37,_0x1c2ff5[_0x28a889(0x110)]=_0x11fd30;const _0x1736d6=await this[_0x28a889(0xfa)][_0x28a889(0x14d)](_0x54bb57[_0x28a889(0x1a8)],_0x1c2ff5);return _0x1736d6[_0x28a889(0x166)];}catch(_0x459b36){const _0x17dbdf={};return _0x17dbdf[_0x28a889(0x130)]=![],_0x17dbdf[_0x28a889(0x147)]=_0x459b36[_0x28a889(0x141)]?.[_0x28a889(0x166)]?.[_0x28a889(0xfe)]||_0x459b36[_0x28a889(0xfe)],_0x17dbdf;}}async[_0x805ab9(0xfc)+_0x805ab9(0x155)](_0xf71e38,_0x4ebdcb,_0x9978c6){const _0x643c02=_0x805ab9,_0x4d26b6={};_0x4d26b6[_0x643c02(0x117)]=_0x643c02(0x132)+_0x643c02(0x172)+_0x643c02(0x101)+_0x643c02(0x156);const _0x208781=_0x4d26b6;this[_0x643c02(0x13e)+_0x643c02(0x185)]();try{const _0x576338=this[_0x643c02(0x105)+_0x643c02(0x10e)](_0x9978c6),_0x4c0cab=this[_0x643c02(0x173)+_0x643c02(0x18d)+'nt'](_0x9978c6,_0x576338);if(_0x4c0cab)return _0x4c0cab;const _0x2a0f69={};_0x2a0f69[_0x643c02(0x1ac)+'en']=_0xf71e38,_0x2a0f69[_0x643c02(0xf9)+'d']=_0x4ebdcb,_0x2a0f69[_0x643c02(0x199)+_0x643c02(0x1a4)]=_0x9978c6,_0x2a0f69[_0x643c02(0x151)]=_0x576338;const _0x5d2923=await this[_0x643c02(0xfa)][_0x643c02(0x14d)](_0x208781[_0x643c02(0x117)],_0x2a0f69);return _0x5d2923[_0x643c02(0x166)];}catch(_0x4af035){const _0x3191c0={};return _0x3191c0[_0x643c02(0x130)]=![],_0x3191c0[_0x643c02(0x147)]=_0x4af035[_0x643c02(0x141)]?.[_0x643c02(0x166)]?.[_0x643c02(0xfe)]||_0x4af035[_0x643c02(0xfe)],_0x3191c0;}}async[_0x805ab9(0xfb)](_0x18726d,_0x520d80,_0x2f31f7,_0x2b3467,_0x2cbd41){const _0xb3bd23=_0x805ab9,_0x487418={};_0x487418[_0xb3bd23(0x138)]=_0xb3bd23(0x19e)+_0xb3bd23(0x16f);const _0x51b415=_0x487418;this[_0xb3bd23(0x13e)+_0xb3bd23(0x185)]();try{const _0x49fd19={};_0x49fd19[_0xb3bd23(0x1ac)+'en']=_0x18726d,_0x49fd19[_0xb3bd23(0x196)]=_0x520d80,_0x49fd19[_0xb3bd23(0x190)]=_0x2f31f7,_0x49fd19['to']=_0x2b3467,_0x49fd19[_0xb3bd23(0x199)+'s']=_0x2cbd41;const _0x54fbc0=await this[_0xb3bd23(0xfa)][_0xb3bd23(0x14d)](_0x51b415[_0xb3bd23(0x138)],_0x49fd19);return _0x54fbc0[_0xb3bd23(0x166)];}catch(_0xf6bad9){const _0x1917c8={};return _0x1917c8[_0xb3bd23(0x130)]=![],_0x1917c8[_0xb3bd23(0x147)]=_0xf6bad9[_0xb3bd23(0x141)]?.[_0xb3bd23(0x166)]?.[_0xb3bd23(0xfe)]||_0xf6bad9[_0xb3bd23(0xfe)],_0x1917c8;}}async[_0x805ab9(0x182)+_0x805ab9(0x1ab)](_0x42bd70,_0x1e7ffb){const _0x31ccef=_0x805ab9;this[_0x31ccef(0x13e)+_0x31ccef(0x185)]();try{const _0x1b93f0={};_0x1b93f0[_0x31ccef(0x1ac)+'en']=_0x42bd70,_0x1b93f0[_0x31ccef(0xf9)+'d']=_0x1e7ffb;const _0x4786e2={};_0x4786e2[_0x31ccef(0x175)]=_0x1b93f0;const _0x4b0112=await this[_0x31ccef(0xfa)][_0x31ccef(0x19d)](_0x31ccef(0x132)+_0x31ccef(0x1a2)+_0x31ccef(0x17e)+'le',_0x4786e2);return _0x4b0112[_0x31ccef(0x166)];}catch(_0x2de121){const _0x482764={};return _0x482764[_0x31ccef(0x130)]=![],_0x482764[_0x31ccef(0x147)]=_0x2de121[_0x31ccef(0x141)]?.[_0x31ccef(0x166)]?.[_0x31ccef(0xfe)]||_0x2de121[_0x31ccef(0xfe)],_0x482764;}}async[_0x805ab9(0x182)+_0x805ab9(0x155)](_0x5a973b,_0x1a3708){const _0x331297=_0x805ab9;this[_0x331297(0x13e)+_0x331297(0x185)]();try{const _0x57242f={};_0x57242f[_0x331297(0x1ac)+'en']=_0x5a973b,_0x57242f[_0x331297(0xf9)+'d']=_0x1a3708;const _0xb52474={};_0xb52474[_0x331297(0x175)]=_0x57242f;const _0xf0b28=await this[_0x331297(0xfa)][_0x331297(0x19d)](_0x331297(0x132)+_0x331297(0x172)+_0x331297(0xf6)+_0x331297(0x17c),_0xb52474);return _0xf0b28[_0x331297(0x166)];}catch(_0x163eb3){const _0x1d6e6d={};return _0x1d6e6d[_0x331297(0x130)]=![],_0x1d6e6d[_0x331297(0x147)]=_0x163eb3[_0x331297(0x141)]?.[_0x331297(0x166)]?.[_0x331297(0xfe)]||_0x163eb3[_0x331297(0xfe)],_0x1d6e6d;}}async[_0x805ab9(0x14e)+_0x805ab9(0x12c)](_0x339359,_0x208882,_0x4a01a4){const _0xbd95bb=_0x805ab9,_0x5b5402={};_0x5b5402[_0xbd95bb(0x165)]=_0xbd95bb(0x132)+_0xbd95bb(0x14c)+_0xbd95bb(0x19f)+_0xbd95bb(0x11d);const _0x12e5e7=_0x5b5402;this[_0xbd95bb(0x13e)+_0xbd95bb(0x185)]();try{const _0x1befa2={};_0x1befa2[_0xbd95bb(0x1ac)+'en']=_0x339359,_0x1befa2['to']=_0x208882,_0x1befa2[_0xbd95bb(0x110)]=_0x4a01a4;const _0x4320f9=await this[_0xbd95bb(0xfa)][_0xbd95bb(0x14d)](_0x12e5e7[_0xbd95bb(0x165)],_0x1befa2);return _0x4320f9[_0xbd95bb(0x166)];}catch(_0x5f088a){const _0x5acf34={};return _0x5acf34[_0xbd95bb(0x130)]=![],_0x5acf34[_0xbd95bb(0x147)]=_0x5f088a[_0xbd95bb(0x141)]?.[_0xbd95bb(0x166)]?.[_0xbd95bb(0xfe)]||_0x5f088a[_0xbd95bb(0xfe)],_0x5acf34;}}async[_0x805ab9(0xfc)+_0x805ab9(0x12c)](_0x4e4cdb,_0x4b895d,_0x56fd21,_0x224219,_0x18ea1f){const _0x427be5=_0x805ab9,_0x367e28={};_0x367e28[_0x427be5(0x11f)]=_0x427be5(0x132)+_0x427be5(0x14c)+_0x427be5(0x176)+_0x427be5(0x11d);const _0x195d94=_0x367e28;this[_0x427be5(0x13e)+_0x427be5(0x185)]();try{const _0x522495={};_0x522495[_0x427be5(0x1ac)+'en']=_0x4e4cdb,_0x522495['to']=_0x4b895d,_0x522495[_0x427be5(0x199)+_0x427be5(0x1a4)]=_0x56fd21,_0x522495[_0x427be5(0x151)]=_0x224219,_0x522495[_0x427be5(0x152)]=_0x18ea1f?.[_0x427be5(0x152)],_0x522495[_0x427be5(0x178)]=_0x18ea1f?.[_0x427be5(0x178)];const _0x4b74c4=await this[_0x427be5(0xfa)][_0x427be5(0x14d)](_0x195d94[_0x427be5(0x11f)],_0x522495);return _0x4b74c4[_0x427be5(0x166)];}catch(_0x981ae5){const _0x25dd3c={};return _0x25dd3c[_0x427be5(0x130)]=![],_0x25dd3c[_0x427be5(0x147)]=_0x981ae5[_0x427be5(0x141)]?.[_0x427be5(0x166)]?.[_0x427be5(0xfe)]||_0x981ae5[_0x427be5(0xfe)],_0x25dd3c;}}async[_0x805ab9(0x186)+_0x805ab9(0x194)+'pp'](_0x55653b,_0x30eb8d,_0x37f1e7,_0x37fbd6,_0x584488){const _0x18bb99=_0x805ab9,_0x23a2c3={};_0x23a2c3[_0x18bb99(0x137)]=_0x18bb99(0x132)+_0x18bb99(0x14c)+_0x18bb99(0x100)+_0x18bb99(0x142)+'e';const _0x54cc3f=_0x23a2c3;this[_0x18bb99(0x13e)+_0x18bb99(0x185)]();try{const _0x570460={};_0x570460[_0x18bb99(0x1ac)+'en']=_0x55653b,_0x570460['to']=_0x30eb8d,_0x570460[_0x18bb99(0x197)]=_0x37f1e7,_0x570460[_0x18bb99(0x150)]=_0x37fbd6,_0x570460[_0x18bb99(0xf3)]=_0x584488;const _0x2c76da=await this[_0x18bb99(0xfa)][_0x18bb99(0x14d)](_0x54cc3f[_0x18bb99(0x137)],_0x570460);return _0x2c76da[_0x18bb99(0x166)];}catch(_0x54d566){const _0x3d3fdb={};return _0x3d3fdb[_0x18bb99(0x130)]=![],_0x3d3fdb[_0x18bb99(0x147)]=_0x54d566[_0x18bb99(0x141)]?.[_0x18bb99(0x166)]?.[_0x18bb99(0xfe)]||_0x54d566[_0x18bb99(0xfe)],_0x3d3fdb;}}async[_0x805ab9(0xf2)+_0x805ab9(0x120)+_0x805ab9(0x146)](_0x3cfae9,_0x1b2e69){const _0x52c324=_0x805ab9,_0x539f4b={};_0x539f4b[_0x52c324(0x103)]=_0x52c324(0x132)+_0x52c324(0x14c)+_0x52c324(0x13f)+'ad';const _0x4d512d=_0x539f4b;this[_0x52c324(0x13e)+_0x52c324(0x185)]();try{const _0x4731eb={};_0x4731eb[_0x52c324(0x1ac)+'en']=_0x3cfae9,_0x4731eb[_0x52c324(0x157)]=_0x1b2e69;const _0x48c0e0=await this[_0x52c324(0xfa)][_0x52c324(0x14d)](_0x4d512d[_0x52c324(0x103)],_0x4731eb);return _0x48c0e0[_0x52c324(0x166)];}catch(_0x5238ef){const _0x86174a={};return _0x86174a[_0x52c324(0x130)]=![],_0x86174a[_0x52c324(0x147)]=_0x5238ef[_0x52c324(0x141)]?.[_0x52c324(0x166)]?.[_0x52c324(0xfe)]||_0x5238ef[_0x52c324(0xfe)],_0x86174a;}}async[_0x805ab9(0x119)+_0x805ab9(0x17f)+_0x805ab9(0x14b)](_0xcaeab1,_0x30e291,_0x486489,_0x54c052,_0xe0d52b){const _0x201fbb=_0x805ab9,_0x3ab36a={};_0x3ab36a[_0x201fbb(0x179)]=_0x201fbb(0x132)+_0x201fbb(0x144)+_0x201fbb(0x158)+_0x201fbb(0x122)+'e';const _0x5a6a42=_0x3ab36a;this[_0x201fbb(0x13e)+_0x201fbb(0x185)]();try{const _0x45fc1d={};_0x45fc1d[_0x201fbb(0x1ac)+'en']=_0xcaeab1,_0x45fc1d[_0x201fbb(0x16d)]=_0x30e291,_0x45fc1d[_0x201fbb(0x106)]=_0xe0d52b,_0x45fc1d[_0x201fbb(0x114)]=_0x486489,_0x45fc1d[_0x201fbb(0x110)]=_0x54c052;const _0x2964e6=await this[_0x201fbb(0xfa)][_0x201fbb(0x14d)](_0x5a6a42[_0x201fbb(0x179)],_0x45fc1d);return _0x2964e6[_0x201fbb(0x166)];}catch(_0xeb9257){const _0x6b085a={};return _0x6b085a[_0x201fbb(0x130)]=![],_0x6b085a[_0x201fbb(0x147)]=_0xeb9257[_0x201fbb(0x141)]?.[_0x201fbb(0x166)]?.[_0x201fbb(0xfe)]||_0xeb9257[_0x201fbb(0xfe)],_0x6b085a;}}async[_0x805ab9(0x1b1)+_0x805ab9(0x127)+_0x805ab9(0x195)](_0x2f8303,_0x59cac5,_0xa1bcb7){const _0x1ebbde=_0x805ab9,_0x4c7b0e={};_0x4c7b0e[_0x1ebbde(0x112)]=_0x1ebbde(0x132)+_0x1ebbde(0x144)+_0x1ebbde(0x13b)+_0x1ebbde(0x10f);const _0x20ec8e=_0x4c7b0e;this[_0x1ebbde(0x13e)+_0x1ebbde(0x185)]();try{const _0x1c0f8c={};_0x1c0f8c[_0x1ebbde(0x1ac)+'en']=_0x2f8303,_0x1c0f8c[_0x1ebbde(0x18b)]=_0x59cac5,_0x1c0f8c[_0x1ebbde(0x110)]=_0xa1bcb7;const _0x3d2689=await this[_0x1ebbde(0xfa)][_0x1ebbde(0x14d)](_0x20ec8e[_0x1ebbde(0x112)],_0x1c0f8c);return _0x3d2689[_0x1ebbde(0x166)];}catch(_0x900bd4){const _0x4a4d8={};return _0x4a4d8[_0x1ebbde(0x130)]=![],_0x4a4d8[_0x1ebbde(0x147)]=_0x900bd4[_0x1ebbde(0x141)]?.[_0x1ebbde(0x166)]?.[_0x1ebbde(0xfe)]||_0x900bd4[_0x1ebbde(0xfe)],_0x4a4d8;}}async[_0x805ab9(0x14e)+_0x805ab9(0x1ae)](_0x5250d2,_0x13fb7c,_0x535d2e){const _0x1b2e67=_0x805ab9,_0x2ec4b6={};_0x2ec4b6[_0x1b2e67(0x149)]=_0x1b2e67(0x132)+_0x1b2e67(0x184)+_0x1b2e67(0x109)+_0x1b2e67(0x11d);const _0xcaaa7d=_0x2ec4b6;this[_0x1b2e67(0x13e)+_0x1b2e67(0x185)]();try{const _0x6c27db={};_0x6c27db[_0x1b2e67(0x1ac)+'en']=_0x5250d2,_0x6c27db[_0x1b2e67(0x15b)]=_0x13fb7c,_0x6c27db[_0x1b2e67(0x110)]=_0x535d2e;const _0x5c7b3e=await this[_0x1b2e67(0xfa)][_0x1b2e67(0x14d)](_0xcaaa7d[_0x1b2e67(0x149)],_0x6c27db);return _0x5c7b3e[_0x1b2e67(0x166)];}catch(_0x51136b){const _0x2ef9c3={};return _0x2ef9c3[_0x1b2e67(0x130)]=![],_0x2ef9c3[_0x1b2e67(0x147)]=_0x51136b[_0x1b2e67(0x141)]?.[_0x1b2e67(0x166)]?.[_0x1b2e67(0xfe)]||_0x51136b[_0x1b2e67(0xfe)],_0x2ef9c3;}}async[_0x805ab9(0xfc)+_0x805ab9(0x1ae)](_0x9b0694,_0xd86411,_0x5621d9,_0x1f898f){const _0x21a771=_0x805ab9,_0x1167c9={};_0x1167c9[_0x21a771(0x193)]=_0x21a771(0x132)+_0x21a771(0x184)+_0x21a771(0x115)+_0x21a771(0x11d);const _0x15bc67=_0x1167c9;this[_0x21a771(0x13e)+_0x21a771(0x185)]();try{const _0x3366f5={};_0x3366f5[_0x21a771(0x1ac)+'en']=_0x9b0694,_0x3366f5[_0x21a771(0x15b)]=_0xd86411,_0x3366f5[_0x21a771(0x199)+_0x21a771(0x1a4)]=_0x5621d9,_0x3366f5[_0x21a771(0x151)]=_0x1f898f?.[_0x21a771(0x151)],_0x3366f5[_0x21a771(0x152)]=_0x1f898f?.[_0x21a771(0x152)],_0x3366f5[_0x21a771(0x178)]=_0x1f898f?.[_0x21a771(0x178)];const _0x1f3114=await this[_0x21a771(0xfa)][_0x21a771(0x14d)](_0x15bc67[_0x21a771(0x193)],_0x3366f5);return _0x1f3114[_0x21a771(0x166)];}catch(_0x162d30){const _0x5a6010={};return _0x5a6010[_0x21a771(0x130)]=![],_0x5a6010[_0x21a771(0x147)]=_0x162d30[_0x21a771(0x141)]?.[_0x21a771(0x166)]?.[_0x21a771(0xfe)]||_0x162d30[_0x21a771(0xfe)],_0x5a6010;}}}function _0x1c90(){const _0x579fa1=['onFromUrl','mp4','video','As\x20credenc','Whatsapp','PEkBV','tiff','IoPAJ','success','META_AUDIO','/hub/messa','WtFDa','wav','mp3','aac','zmwDb','ldkTb','ervice','12064MrqZji','livre/answ','MessagingS','iente\x20não\x20','checkCrede','p/markAsRe','Vqwcr','response','lateMessag','XhtuC','ge/mercado','ogjgC','sRead','error','2124cXlsuO','MGnbH','297WBZfTh','age','ge/whatsap','post','sendTextTo','atos\x20aceit','language','type','caption','Meta.\x20Form','DCWEr','Instagram','eMessage','messageId','livre/send','am/sendTex','wma','chatId','META_IMAGE','cJsxf','KMEvE','audio','bishj','avi','iais\x20do\x20cl','SXXYD','gif','xfgIS','data','isCredenti','NiqZk','5295717rrDbeF','aNoOE','jpg','5YFQCEb','packId','Formato\x20de','/send','toLowerCas','split','ge/instagr','validateMe','META_VIDEO','params','p/sendFile','png','filename','kaJfz','GgFgr','wmv','ile','k/sendText','k/getProfi','oLivreMess','dadas\x20ou\x20s','eito\x20pela\x20','getProfile','os:\x20','ge/telegra','ntials','sendTempla','IdVkJ','xSjcK','mkv','_FORMATS','questionId','exports','taAttachme','1727679HZApBM','getExtensi','body','Gfgqe','alsValidat','drNmC','teToWhatsa','estion','subject','name','382290UHbjDM','attachment','MLHsl','join','tMessage','get','/hub/email','p/sendText','aPwFd','webm','ge/faceboo','k/sendFile','Url','mov','jpeg','pop','SBArb','aeTnh','oLcuq','Facebook','channelTok','1792673RXLeNK','Telegram','includes','1019488UgDmBW','answerMerc','markWhatsa','components','image','VQEQz','am/getProf','as.','bmp','recipientI','api','sendEmail','sendFileTo','yYizF','message','ão\x20inválid','p/sendTemp','am/sendFil','Lkygp','QFBwa','JxuzD','getFileTyp','sellerId','ZzlPM','XtIYC','m/sendText','2aEvDzS','client','ozfaR','XSEpQ','eFromUrl','erQuestion','text','flv','cDINM','9649404VVcmpN','buyerId','m/sendFile','\x22\x20não\x20é\x20ac','xinzK','\x20\x22.','sendMercad','RFmqr','ogg','foram\x20vali','Message','SWYEB','BZVbo','ppMessageA','mdzls','TextMessag','m4a','JabQI','webp','file','adoLivreQu'];_0x1c90=function(){return _0x579fa1;};return _0x1c90();}MessagingService[_0x805ab9(0x131)+_0x805ab9(0x18a)]=[_0x805ab9(0x136),_0x805ab9(0x123),_0x805ab9(0x134),_0x805ab9(0x129)],MessagingService[_0x805ab9(0x174)+_0x805ab9(0x18a)]=[_0x805ab9(0x129),_0x805ab9(0x11b),_0x805ab9(0x161),_0x805ab9(0x1a5),_0x805ab9(0x1a1)],MessagingService[_0x805ab9(0x15c)+_0x805ab9(0x18a)]=[_0x805ab9(0x16b),_0x805ab9(0x1a6),_0x805ab9(0x177),_0x805ab9(0x164)];const _0x17ac02={};_0x17ac02[_0x805ab9(0x13c)+_0x805ab9(0x139)]=MessagingService,module[_0x805ab9(0x18c)]=_0x17ac02;
@@ -1 +1 @@
1
- 'use strict';const _0x46db4a=_0x5a2c;function _0x32a5(){const _0x5d2cc7=['3797rYChFv','ção\x20ou\x20cha','verifyWebh','1610512UvShAo','checkCrede','client','/webhook/r','api','channelTok','ão\x20inválid','iente\x20não\x20','()\x20primeir','etup','me\x20waitFor','iais\x20do\x20cl','Validation','2783809ANFuLN','emove/','alsValidat','dadas\x20ou\x20s','vice','ookToken','webhookUrl','20NYwZzG','/webhook/s','removeWebh','As\x20credenc','tPZlS','4friFJN','1122435kJDFWh','data','1220004arHvSZ','ntials','delete','setupWebho','WebhookSer','e\x20a\x20valida','as.\x20Aguard','1378125IXZhrE','ook','isCredenti','post','MnjpT','sXbBr','success','520254UkAMjH','exports','34WaFDnH','foram\x20vali'];_0x32a5=function(){return _0x5d2cc7;};return _0x32a5();}function _0x5a2c(_0x5a2f40,_0x3f6691){const _0xcbec93=_0x32a5();return _0x5a2c=function(_0x16ce6b,_0xcd756c){_0x16ce6b=_0x16ce6b-(0x8e6*0x2+0x1*0x1005+-0x201a);let _0x23a4b6=_0xcbec93[_0x16ce6b];return _0x23a4b6;},_0x5a2c(_0x5a2f40,_0x3f6691);}(function(_0x6b6782,_0x47fce0){const _0x1c122b=_0x5a2c,_0x2426d4=_0x6b6782();while(!![]){try{const _0x455a4b=parseInt(_0x1c122b(0x1c7))/(-0x258f+-0xb2e+-0x11*-0x2de)*(-parseInt(_0x1c122b(0x1c5))/(-0xef*-0x17+0x1be+0x1*-0x1735))+parseInt(_0x1c122b(0x1e4))/(0x1949+-0x2467*0x1+0x4d*0x25)*(parseInt(_0x1c122b(0x1e3))/(0x17d+0x6cb+-0x844))+parseInt(_0x1c122b(0x1bc))/(0xd1a+-0x1d33*-0x1+0x386*-0xc)+parseInt(_0x1c122b(0x1c3))/(0x1*0xee1+0x1*-0x1a41+-0x1*-0xb66)+-parseInt(_0x1c122b(0x1d7))/(-0x13*-0x1d6+-0x13e5*0x1+0x1*-0xef6)+parseInt(_0x1c122b(0x1ca))/(0x1*-0x943+0x21c1+-0x1876*0x1)+parseInt(_0x1c122b(0x1e6))/(0xc1b+-0x8c7+-0x119*0x3)*(-parseInt(_0x1c122b(0x1de))/(-0x2091+-0x9e*-0x8+0x313*0x9));if(_0x455a4b===_0x47fce0)break;else _0x2426d4['push'](_0x2426d4['shift']());}catch(_0xcebaec){_0x2426d4['push'](_0x2426d4['shift']());}}}(_0x32a5,0x5a1df+0x5ea16+-0x86d58));class WebhookService{constructor(_0xfa9c96,_0xab5edc){const _0x2617e4=_0x5a2c;this[_0x2617e4(0x1ce)]=_0xfa9c96,this[_0x2617e4(0x1cc)]=_0xab5edc;}[_0x46db4a(0x1cb)+_0x46db4a(0x1e7)](_0xfc5fee=!![]){const _0x4a87a3=_0x46db4a,_0x10a7b5={};_0x10a7b5[_0x4a87a3(0x1c0)]=_0x4a87a3(0x1e1)+_0x4a87a3(0x1d5)+_0x4a87a3(0x1d1)+_0x4a87a3(0x1c6)+_0x4a87a3(0x1da)+_0x4a87a3(0x1d0)+_0x4a87a3(0x1bb)+_0x4a87a3(0x1ba)+_0x4a87a3(0x1c8)+_0x4a87a3(0x1d4)+_0x4a87a3(0x1d6)+_0x4a87a3(0x1d2)+'o.';const _0x1a809d=_0x10a7b5;if(this[_0x4a87a3(0x1cc)]&&!this[_0x4a87a3(0x1cc)][_0x4a87a3(0x1be)+_0x4a87a3(0x1d9)+'ed']()&&_0xfc5fee)throw new Error(_0x1a809d[_0x4a87a3(0x1c0)]);}async[_0x46db4a(0x1b8)+'ok'](_0x32c78e,_0x308a0b){const _0x28701b=_0x46db4a,_0x2357f6={};_0x2357f6[_0x28701b(0x1c1)]=_0x28701b(0x1df)+_0x28701b(0x1d3);const _0x3cbc46=_0x2357f6;this[_0x28701b(0x1cb)+_0x28701b(0x1e7)]();try{const _0x262e8d={};_0x262e8d[_0x28701b(0x1dd)]=_0x32c78e,_0x262e8d[_0x28701b(0x1cf)+'en']=_0x308a0b;const _0x4681d8=await this[_0x28701b(0x1ce)][_0x28701b(0x1bf)](_0x3cbc46[_0x28701b(0x1c1)],_0x262e8d);return _0x4681d8[_0x28701b(0x1e5)][_0x28701b(0x1c2)];}catch(_0x16c78b){return![];}}async[_0x46db4a(0x1e0)+_0x46db4a(0x1bd)](_0x1c5ff7){const _0x4aa589=_0x46db4a;this[_0x4aa589(0x1cb)+_0x4aa589(0x1e7)]();try{const _0x9895dd=await this[_0x4aa589(0x1ce)][_0x4aa589(0x1b7)](_0x4aa589(0x1cd)+_0x4aa589(0x1d8)+_0x1c5ff7);return _0x9895dd[_0x4aa589(0x1e5)][_0x4aa589(0x1c2)];}catch(_0x37f65d){return![];}}[_0x46db4a(0x1c9)+_0x46db4a(0x1dc)](_0x2ab3f3,_0x3f559e){const _0x423f1b=_0x46db4a,_0x5c47c5={};_0x5c47c5[_0x423f1b(0x1e2)]=function(_0x39b68b,_0x573d0f){return _0x39b68b===_0x573d0f;};const _0x2c14fe=_0x5c47c5;return _0x2c14fe[_0x423f1b(0x1e2)](_0x2ab3f3,_0x3f559e);}}const _0x20c341={};_0x20c341[_0x46db4a(0x1b9)+_0x46db4a(0x1db)]=WebhookService,module[_0x46db4a(0x1c4)]=_0x20c341;
1
+ 'use strict';function _0x1ead(_0x343686,_0x5b4a2f){_0x343686=_0x343686-(-0x2357+-0x6ae+0x2aa4);const _0x508f13=_0x296b();let _0x3fa4fc=_0x508f13[_0x343686];return _0x3fa4fc;}const _0x45117a=_0x1ead;(function(_0x13da39,_0x45b10b){const _0x3ca60c=_0x1ead,_0x22d6f9=_0x13da39();while(!![]){try{const _0x507b94=-parseInt(_0x3ca60c(0xc8))/(0x1ba5+0x20f1+-0x3c95)+parseInt(_0x3ca60c(0xa4))/(-0x1*0x2176+-0x1*0xf53+-0x30cb*-0x1)*(parseInt(_0x3ca60c(0xa5))/(0x115c+0x2*-0xa6b+-0x2f*-0x13))+parseInt(_0x3ca60c(0xbd))/(0x35*0x61+-0x3c8+-0x1*0x1049)+-parseInt(_0x3ca60c(0xca))/(-0xbaa*0x3+-0x1*-0x61+0x22a2)+parseInt(_0x3ca60c(0xb8))/(0x2b*-0xa6+0xa16+0x11d2)+parseInt(_0x3ca60c(0xc5))/(-0x1*0x11b1+0x21ae+-0xff6)+parseInt(_0x3ca60c(0xb3))/(0x24b0+0x115f+0x1*-0x3607)*(-parseInt(_0x3ca60c(0xc4))/(-0x157f+0x38b*0xa+-0x4a2*0x3));if(_0x507b94===_0x45b10b)break;else _0x22d6f9['push'](_0x22d6f9['shift']());}catch(_0x224a73){_0x22d6f9['push'](_0x22d6f9['shift']());}}}(_0x296b,0x298d6*-0x1+0x662*0x13+0x1*0x3c5f3));class WebhookService{constructor(_0x565f7c,_0x5aaf0c){const _0x5e2dac=_0x1ead;this[_0x5e2dac(0xaf)]=_0x565f7c,this[_0x5e2dac(0xbc)]=_0x5aaf0c;}[_0x45117a(0xbe)+_0x45117a(0xc3)](_0x175cce=!![]){const _0x5489b2=_0x45117a,_0x252e91={};_0x252e91[_0x5489b2(0xa2)]=_0x5489b2(0xcc)+_0x5489b2(0xb0)+_0x5489b2(0xba)+_0x5489b2(0xcd)+_0x5489b2(0xc0)+_0x5489b2(0xb7)+_0x5489b2(0xb5)+_0x5489b2(0xce)+_0x5489b2(0xaa)+_0x5489b2(0xab)+_0x5489b2(0xc1)+_0x5489b2(0xb2)+'o.';const _0x34be7a=_0x252e91;if(this[_0x5489b2(0xbc)]&&!this[_0x5489b2(0xbc)][_0x5489b2(0xbb)+_0x5489b2(0xa0)+'ed']()&&_0x175cce)throw new Error(_0x34be7a[_0x5489b2(0xa2)]);}async[_0x45117a(0xb9)+'ok'](_0x41c950,_0x3b7397){const _0xe7b1fa=_0x45117a,_0x23e5f2={};_0x23e5f2[_0xe7b1fa(0xc6)]=_0xe7b1fa(0xbf)+_0xe7b1fa(0xcb);const _0x479ef9=_0x23e5f2;this[_0xe7b1fa(0xbe)+_0xe7b1fa(0xc3)]();try{const _0x533861={};_0x533861[_0xe7b1fa(0xa6)]=_0x41c950,_0x533861[_0xe7b1fa(0xb6)+'en']=_0x3b7397;const _0x2dcd93=await this[_0xe7b1fa(0xaf)][_0xe7b1fa(0xa3)](_0x479ef9[_0xe7b1fa(0xc6)],_0x533861);return _0x2dcd93[_0xe7b1fa(0xc9)][_0xe7b1fa(0xad)];}catch(_0x20f45c){return![];}}async[_0x45117a(0xb4)+_0x45117a(0xa8)](_0x30486e){const _0x4cd54c=_0x45117a;this[_0x4cd54c(0xbe)+_0x4cd54c(0xc3)]();try{const _0x216580=await this[_0x4cd54c(0xaf)][_0x4cd54c(0xae)](_0x4cd54c(0xa9)+_0x4cd54c(0xa7)+_0x30486e);return _0x216580[_0x4cd54c(0xc9)][_0x4cd54c(0xad)];}catch(_0x3b8540){return![];}}[_0x45117a(0xac)+_0x45117a(0xc2)](_0x5f3b7e,_0x46a508){const _0x229585=_0x45117a,_0x541f6d={};_0x541f6d[_0x229585(0xb1)]=function(_0x536ccb,_0x5a761d){return _0x536ccb===_0x5a761d;};const _0x452857=_0x541f6d;return _0x452857[_0x229585(0xb1)](_0x5f3b7e,_0x46a508);}}const _0x19680e={};function _0x296b(){const _0x26268a=['webhookUrl','emove/','ook','/webhook/r','ção\x20ou\x20cha','me\x20waitFor','verifyWebh','success','delete','api','iais\x20do\x20cl','Ipdbk','()\x20primeir','8uHmZhU','removeWebh','as.\x20Aguard','channelTok','ão\x20inválid','293406HszDSa','setupWebho','iente\x20não\x20','isCredenti','client','789560VrDyHy','checkCrede','/webhook/s','dadas\x20ou\x20s','Validation','ookToken','ntials','2606238sSpZcL','1479072yYmryc','stcJb','vice','67294VKeTRc','data','533430FoyZBb','etup','As\x20credenc','foram\x20vali','e\x20a\x20valida','WebhookSer','alsValidat','exports','IDJpT','post','228212ACArdd','3biXBlu'];_0x296b=function(){return _0x26268a;};return _0x296b();}_0x19680e[_0x45117a(0x9f)+_0x45117a(0xc7)]=WebhookService,module[_0x45117a(0xa1)]=_0x19680e;
@@ -12,7 +12,7 @@ interface ConnectionData {
12
12
  pageAccessToken: string;
13
13
  clientBackURL: string;
14
14
  clientFrontURL: string;
15
- type: "facebook" | "instagram" | "email" | "mercadolivre";
15
+ type: "facebook" | "instagram" | "email" | "mercadolivre" | "whatsapp" | "telegram";
16
16
  active: boolean;
17
17
  emailUser?: string;
18
18
  emailPassword?: string;
@@ -24,9 +24,14 @@ interface ConnectionData {
24
24
  emailSmtpTls?: boolean;
25
25
  accessToken?: string;
26
26
  channelToken?: string;
27
+ wabaId?: string;
28
+ businessAccountId?: string;
29
+ whatsappPhoneNumber?: string;
30
+ telegramBotUsername?: string;
27
31
  }
28
32
  interface MessageData {
29
33
  mid: string;
34
+ fromMe?: boolean;
30
35
  from: {
31
36
  id: string;
32
37
  name?: string;
@@ -56,19 +61,141 @@ interface MessageData {
56
61
  };
57
62
  }>;
58
63
  };
59
- source: "facebook" | "instagram" | "email" | "telegram" | "mercadolivre" | string;
64
+ reaction?: {
65
+ mid: string;
66
+ action?: string;
67
+ reaction?: string;
68
+ emoji?: string;
69
+ };
70
+ read?: {
71
+ mid: string;
72
+ };
73
+ comment?: {
74
+ commentId: string;
75
+ parentId?: string;
76
+ postId?: string;
77
+ text?: string;
78
+ from?: {
79
+ id?: string;
80
+ name?: string;
81
+ };
82
+ verb?: string;
83
+ mediaType?: string;
84
+ };
85
+ postReaction?: {
86
+ postId?: string;
87
+ reactionType?: string;
88
+ from?: {
89
+ id?: string;
90
+ name?: string;
91
+ };
92
+ verb?: string;
93
+ };
94
+ storyMention?: {
95
+ storyId?: string;
96
+ storyUrl?: string;
97
+ from?: {
98
+ id?: string;
99
+ name?: string;
100
+ };
101
+ };
102
+ storyReply?: {
103
+ storyId?: string;
104
+ storyUrl?: string;
105
+ text?: string;
106
+ from?: {
107
+ id?: string;
108
+ name?: string;
109
+ };
110
+ };
111
+ liveComment?: {
112
+ liveId?: string;
113
+ commentId?: string;
114
+ text?: string;
115
+ from?: {
116
+ id?: string;
117
+ name?: string;
118
+ };
119
+ };
120
+ mention?: {
121
+ mediaId?: string;
122
+ commentId?: string;
123
+ text?: string;
124
+ from?: {
125
+ id?: string;
126
+ name?: string;
127
+ };
128
+ };
129
+ status?: {
130
+ mid: string;
131
+ status: "sent" | "delivered" | "read" | "failed";
132
+ recipientId?: string;
133
+ conversation?: {
134
+ id?: string;
135
+ origin?: {
136
+ type?: string;
137
+ };
138
+ expirationTimestamp?: string;
139
+ };
140
+ pricing?: {
141
+ billable?: boolean;
142
+ category?: string;
143
+ pricingModel?: string;
144
+ };
145
+ errors?: Array<{
146
+ code?: number;
147
+ title?: string;
148
+ message?: string;
149
+ errorData?: {
150
+ details?: string;
151
+ };
152
+ }>;
153
+ };
154
+ template?: {
155
+ name?: string;
156
+ language?: string;
157
+ };
158
+ location?: {
159
+ latitude: number;
160
+ longitude: number;
161
+ name?: string;
162
+ address?: string;
163
+ };
164
+ contacts?: Array<{
165
+ name?: {
166
+ formattedName?: string;
167
+ firstName?: string;
168
+ lastName?: string;
169
+ };
170
+ phones?: Array<{
171
+ phone?: string;
172
+ waId?: string;
173
+ type?: string;
174
+ }>;
175
+ }>;
176
+ interactive?: {
177
+ type: "button_reply" | "list_reply";
178
+ id: string;
179
+ title: string;
180
+ description?: string;
181
+ };
182
+ source: "facebook" | "instagram" | "email" | "telegram" | "mercadolivre" | "whatsapp" | string;
60
183
  }
61
- interface WebhookPayload {
184
+ interface HubWebhookPayload {
62
185
  pageId: string;
63
- connectionId?: string;
186
+ type: "facebook" | "instagram" | "whatsapp" | "telegram";
64
187
  messageData: MessageData[];
65
- metadata?: {
66
- platform: string;
67
- accountName?: string;
68
- externalThreadId?: string;
69
- clientId?: string;
70
- };
71
188
  }
189
+ interface EmailWebhookPayload {
190
+ type: "email";
191
+ channelToken: string;
192
+ messageData: MessageData[];
193
+ }
194
+ interface MercadoLivreWebhookPayload {
195
+ pageId: string;
196
+ messageData: any;
197
+ }
198
+ type WebhookPayload = HubWebhookPayload | EmailWebhookPayload | MercadoLivreWebhookPayload;
72
199
  interface AuthResponse {
73
200
  success: boolean;
74
201
  token?: string;
@@ -1 +1 @@
1
- 'use strict';var _0x1b9983=_0x2859;(function(_0x50b8cc,_0x2ec079){var _0xfbd05b=_0x2859,_0x587010=_0x50b8cc();while(!![]){try{var _0x245523=-parseInt(_0xfbd05b(0x181))/(-0x1d4a*0x1+0x1fa5*-0x1+0x3cf0)+parseInt(_0xfbd05b(0x183))/(-0x624+0x247d*-0x1+-0x2aa3*-0x1)+-parseInt(_0xfbd05b(0x185))/(0x1e29+-0x16bc+-0x76a)+parseInt(_0xfbd05b(0x187))/(-0x19cf+0x8a1+0x3e*0x47)+parseInt(_0xfbd05b(0x186))/(-0x1ae4+-0x149*0x16+0x372f)*(parseInt(_0xfbd05b(0x17f))/(0x3bb+-0x258c+0x21d7*0x1))+parseInt(_0xfbd05b(0x182))/(0x1b46+-0x10*-0x26+0x1d9f*-0x1)+parseInt(_0xfbd05b(0x180))/(-0xbc5+-0xce3+0x18b0);if(_0x245523===_0x2ec079)break;else _0x587010['push'](_0x587010['shift']());}catch(_0x41c401){_0x587010['push'](_0x587010['shift']());}}}(_0x24c1,-0xc920f+0x85aa+0x1*0x1a029f));function _0x2859(_0x31c127,_0x45f294){var _0x2068ee=_0x24c1();return _0x2859=function(_0x2c00ec,_0x565c90){_0x2c00ec=_0x2c00ec-(0x1e0+0x1953+-0x1d6*0xe);var _0x5a5db0=_0x2068ee[_0x2c00ec];return _0x5a5db0;},_0x2859(_0x31c127,_0x45f294);}module[_0x1b9983(0x184)]={};function _0x24c1(){var _0x4d7597=['1613595tVZqZp','12052376JoFFVT','1873602qBEATc','exports','5029446quJJfT','25BlDhai','2473856SWhQrJ','176310FljSLh','6248968fYBIcR'];_0x24c1=function(){return _0x4d7597;};return _0x24c1();}
1
+ 'use strict';var _0x311bfb=_0x4866;function _0x5653(){var _0xab5e5d=['1122368SljLqr','9cAISea','10742rfQqzQ','56KANbPc','7VHeKrn','exports','1504158ntWGoK','3583570thdqvP','21349328DQvilC','87zBaIya','66104AxkGWE','2745600guqyPI'];_0x5653=function(){return _0xab5e5d;};return _0x5653();}(function(_0x834483,_0x1b2e2d){var _0x11115f=_0x4866,_0x46cfcf=_0x834483();while(!![]){try{var _0x5044ba=-parseInt(_0x11115f(0x9d))/(-0x26*0x56+-0x809+0x14ce)*(parseInt(_0x11115f(0x9c))/(0xfe4+0xafe+-0xa0*0x2b))+parseInt(_0x11115f(0x97))/(0x1*-0x648+-0x9*-0x1a+-0x51*-0x11)*(-parseInt(_0x11115f(0x98))/(0x5c9*0x2+0x15cc+-0x215a))+-parseInt(_0x11115f(0x99))/(-0xc8b*-0x3+-0xef3+-0x16a9)+-parseInt(_0x11115f(0xa0))/(0x16a*-0x1a+-0x210c+0x45d6)*(parseInt(_0x11115f(0x9e))/(-0xf4*0x14+0x22*-0x105+-0x35c1*-0x1))+-parseInt(_0x11115f(0x9a))/(-0x1*-0x1a35+0x1*0x405+0xf19*-0x2)+-parseInt(_0x11115f(0x9b))/(-0x1f32+-0x1e93+-0x6de*-0x9)*(-parseInt(_0x11115f(0xa1))/(0x7b4+0x17*0xd+-0x8d5))+parseInt(_0x11115f(0xa2))/(-0x1137+-0x1fd8+-0x2*-0x188d);if(_0x5044ba===_0x1b2e2d)break;else _0x46cfcf['push'](_0x46cfcf['shift']());}catch(_0x11e933){_0x46cfcf['push'](_0x46cfcf['shift']());}}}(_0x5653,-0xd3443+0x2869d+0x1383a0));function _0x4866(_0x88a3bf,_0xbd1aea){_0x88a3bf=_0x88a3bf-(0x4f*0x10+0x1e97+-0x56*0x68);var _0x29f71a=_0x5653();var _0x32c4a2=_0x29f71a[_0x88a3bf];return _0x32c4a2;}module[_0x311bfb(0x9f)]={};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connection-hub/sdk",
3
- "version": "0.0.10",
3
+ "version": "0.0.20",
4
4
  "description": "SDK oficial para a API do Connection Hub",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -10,7 +10,9 @@
10
10
  "watch": "tsc --watch",
11
11
  "test": "jest",
12
12
  "lint": "eslint src",
13
- "prepublishOnly": "npm run build"
13
+ "prepublishOnly": "npm run build",
14
+ "publish:npm": "npm publish",
15
+ "publish:dry": "npm publish --dry-run"
14
16
  },
15
17
  "files": [
16
18
  "dist",
@@ -25,7 +27,9 @@
25
27
  "connection-hub-sdk",
26
28
  "connectionhub",
27
29
  "connectionhub-sdk",
28
- "mercadolivre"
30
+ "mercadolivre",
31
+ "whatsapp",
32
+ "telegram"
29
33
  ],
30
34
  "author": "OXM Tecnologia",
31
35
  "license": "MIT",