@connection-hub/sdk 0.0.5 → 0.0.7

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/client.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- import { ConnectionHubConfig } from "./types";
2
- import { AuthService } from "./lib/auth";
3
- import { MessagingService } from "./lib/messaging";
4
- import { WebhookService } from "./lib/webhooks";
5
- import { ConnectionService } from "./lib/connections";
6
- export declare class ConnectionHubClient {
1
+ declare const axios: any;
2
+ declare const AuthServiceModule: any;
3
+ declare const MessagingServiceModule: any;
4
+ declare const WebhookServiceModule: any;
5
+ declare const ConnectionServiceModule: any;
6
+ declare class ConnectionHubClient {
7
7
  private readonly api;
8
8
  private readonly config;
9
9
  private credentialsValidated;
10
10
  private validationPromise;
11
- auth: AuthService;
12
- messaging: MessagingService;
13
- webhooks: WebhookService;
14
- connections: ConnectionService;
11
+ auth: any;
12
+ messaging: any;
13
+ webhooks: any;
14
+ connections: any;
15
15
  /**
16
16
  * Cria uma nova instância do cliente Connection Hub
17
17
  * @param config Configuração do cliente
18
18
  */
19
- constructor(config: ConnectionHubConfig);
19
+ constructor(config: any);
20
20
  /**
21
21
  * Valida se a apiKey e o accessToken são válidos
22
22
  * @returns Uma promessa que resolve para true se as credenciais são válidas
package/dist/client.js CHANGED
@@ -1 +1 @@
1
- const _0x4bfcc3=_0x37cc;(function(_0x533611,_0x3aff17){const _0x294de0=_0x37cc,_0x39c63a=_0x533611();while(!![]){try{const _0x2d4aa9=-parseInt(_0x294de0(0x1c3))/(-0xcc6+0x85*-0x11+0x39a*0x6)+-parseInt(_0x294de0(0x1bc))/(0xc*-0x1f+0x25d2+0x2cc*-0xd)*(parseInt(_0x294de0(0x1d0))/(-0x9b9*-0x1+-0x87+-0x92f*0x1))+parseInt(_0x294de0(0x1d4))/(0x1d65+-0x251c+-0x7bb*-0x1)+parseInt(_0x294de0(0x1d9))/(0x1e97+0x156e+-0x1a00*0x2)+-parseInt(_0x294de0(0x1d6))/(0x31*-0x5+0x1*-0x1645+0x1f*0xc0)*(-parseInt(_0x294de0(0x1cc))/(0x4d7+0xb8*0x10+-0x1050))+-parseInt(_0x294de0(0x1b2))/(0x22f1+-0x1*-0x227c+-0x4565)*(parseInt(_0x294de0(0x1b6))/(-0x1521+0x24b0+-0x7c3*0x2))+parseInt(_0x294de0(0x1d1))/(-0x1d6+-0x32*0x35+0xc3a)*(parseInt(_0x294de0(0x1f2))/(0x1d*0x71+-0xa05+-0x2bd));if(_0x2d4aa9===_0x3aff17)break;else _0x39c63a['push'](_0x39c63a['shift']());}catch(_0x2ae33c){_0x39c63a['push'](_0x39c63a['shift']());}}}(_0x3d2f,0x5*0x369d+-0x386c9+0x4849d));import _0x3b74d3 from'axios';function _0x3d2f(){const _0x1d63aa=['edentials','accessToke','Cliente\x20nã','21627QKWQRz','i.connecti','AccessToke','baseURL','success','canExecute','184VZNGkf','setAccessT','XvbFx','defaults','onhub.com.','ram\x20valida','Content-Ty','224351TaKlfM','idation','applicatio','Operations','vPFSz','Promise','tório','data','ais\x20não\x20fo','11837NrTkBq','messaging','date','oken','5358asDUtB','1140WAmnao','yMYLa','SlpFk','452596FarIEA','headers','558TPmWdq','WIbBH','n\x20é\x20obriga','730060bNHtez','euQDX','n/json','credential','\x20inválidas','sValidated','Bearer\x20','validateCr','zado\x20corre','apiUrl','YfPJe','das\x20ou\x20são','https://ap','ion','s\x20credenci','response','webhooks','XHOmE','config','Authorizat','/auth/vali','QtCZa','IIIPz','o\x20iniciali','api','20075iIRWsg','auth','MKjtW','get','validation','create','tamente.\x20A','status','waitForVal','isCredenti','alsValidat','connection','336ZjnRCD'];_0x3d2f=function(){return _0x1d63aa;};return _0x3d2f();}import{AuthService}from'./lib/auth';import{MessagingService}from'./lib/messaging';import{WebhookService}from'./lib/webhooks';import{ConnectionService}from'./lib/connections';function _0x37cc(_0x19ab09,_0x37a770){const _0x44dd0f=_0x3d2f();return _0x37cc=function(_0xd8aa54,_0x533962){_0xd8aa54=_0xd8aa54-(0x16a1+0x1*-0x1ca5+0x74*0x11);let _0x1e6d22=_0x44dd0f[_0xd8aa54];return _0x1e6d22;},_0x37cc(_0x19ab09,_0x37a770);}export class ConnectionHubClient{constructor(_0x1a3f97){const _0x5e4f4e=_0x37cc,_0x245ab4={};_0x245ab4[_0x5e4f4e(0x1be)]=_0x5e4f4e(0x1b8)+_0x5e4f4e(0x1d8)+_0x5e4f4e(0x1c9),_0x245ab4[_0x5e4f4e(0x1d3)]=_0x5e4f4e(0x1c5)+_0x5e4f4e(0x1db),_0x245ab4[_0x5e4f4e(0x1ef)]=_0x5e4f4e(0x1ec)+_0x5e4f4e(0x1e6),_0x245ab4[_0x5e4f4e(0x1ee)]=_0x5e4f4e(0x1e5)+_0x5e4f4e(0x1b7)+_0x5e4f4e(0x1c0)+'br';const _0x181be3=_0x245ab4;this[_0x5e4f4e(0x1dc)+_0x5e4f4e(0x1de)]=![],this[_0x5e4f4e(0x1f6)+_0x5e4f4e(0x1c8)]=null;if(!_0x1a3f97[_0x5e4f4e(0x1b4)+'n'])throw new Error(_0x181be3[_0x5e4f4e(0x1be)]);this[_0x5e4f4e(0x1eb)]=_0x1a3f97;const _0x538db5={};_0x538db5[_0x5e4f4e(0x1c2)+'pe']=_0x181be3[_0x5e4f4e(0x1d3)];const _0x2211c9=_0x538db5;_0x1a3f97[_0x5e4f4e(0x1b4)+'n']&&(_0x2211c9[_0x181be3[_0x5e4f4e(0x1ef)]]=_0x5e4f4e(0x1df)+_0x1a3f97[_0x5e4f4e(0x1b4)+'n']);const _0x37d2e5={};_0x37d2e5[_0x5e4f4e(0x1b9)]=_0x1a3f97[_0x5e4f4e(0x1e2)]||_0x181be3[_0x5e4f4e(0x1ee)],_0x37d2e5[_0x5e4f4e(0x1d5)]=_0x2211c9,this[_0x5e4f4e(0x1f1)]=_0x3b74d3[_0x5e4f4e(0x1f7)](_0x37d2e5),this[_0x5e4f4e(0x1f3)]=new AuthService(this[_0x5e4f4e(0x1f1)],this),this[_0x5e4f4e(0x1cd)]=new MessagingService(this[_0x5e4f4e(0x1f1)],this),this[_0x5e4f4e(0x1e9)]=new WebhookService(this[_0x5e4f4e(0x1f1)],this),this[_0x5e4f4e(0x1b1)+'s']=new ConnectionService(this[_0x5e4f4e(0x1f1)],this),this[_0x5e4f4e(0x1f6)+_0x5e4f4e(0x1c8)]=this[_0x5e4f4e(0x1e0)+_0x5e4f4e(0x1b3)]();}async[_0x4bfcc3(0x1e0)+_0x4bfcc3(0x1b3)](){const _0x2a9a8c=_0x4bfcc3,_0x32f1bd={'euQDX':_0x2a9a8c(0x1ed)+_0x2a9a8c(0x1ce),'XHOmE':function(_0x25faa0,_0x1f3d61){return _0x25faa0===_0x1f3d61;},'yMYLa':function(_0xec5437,_0x4aada8){return _0xec5437(_0x4aada8);},'WIbBH':function(_0x1feb68,_0x17d098){return _0x1feb68===_0x17d098;},'MKjtW':function(_0x32a804,_0x26aa37){return _0x32a804===_0x26aa37;}};try{if(this[_0x2a9a8c(0x1f6)+_0x2a9a8c(0x1c8)])return this[_0x2a9a8c(0x1f6)+_0x2a9a8c(0x1c8)];return this[_0x2a9a8c(0x1f6)+_0x2a9a8c(0x1c8)]=new Promise(async _0x1ccddd=>{const _0x4cd4f4=_0x2a9a8c;try{const _0x1c7ffc=await this[_0x4cd4f4(0x1f1)][_0x4cd4f4(0x1f5)](_0x32f1bd[_0x4cd4f4(0x1da)]);this[_0x4cd4f4(0x1dc)+_0x4cd4f4(0x1de)]=_0x32f1bd[_0x4cd4f4(0x1ea)](_0x1c7ffc[_0x4cd4f4(0x1ca)][_0x4cd4f4(0x1ba)],!![]),_0x32f1bd[_0x4cd4f4(0x1d2)](_0x1ccddd,this[_0x4cd4f4(0x1dc)+_0x4cd4f4(0x1de)]);}catch(_0x261bb9){_0x32f1bd[_0x4cd4f4(0x1d7)](_0x261bb9[_0x4cd4f4(0x1e8)]?.[_0x4cd4f4(0x1f9)],-0x1326*0x1+-0x8ce+-0x1d85*-0x1)||_0x32f1bd[_0x4cd4f4(0x1f4)](_0x261bb9[_0x4cd4f4(0x1e8)]?.[_0x4cd4f4(0x1f9)],-0x1*-0x170b+-0x34a*0x9+-0x2b6*-0x3)?(this[_0x4cd4f4(0x1dc)+_0x4cd4f4(0x1de)]=![],_0x32f1bd[_0x4cd4f4(0x1d2)](_0x1ccddd,![])):(this[_0x4cd4f4(0x1dc)+_0x4cd4f4(0x1de)]=![],_0x32f1bd[_0x4cd4f4(0x1d2)](_0x1ccddd,![]));}finally{this[_0x4cd4f4(0x1f6)+_0x4cd4f4(0x1c8)]=null;}}),this[_0x2a9a8c(0x1f6)+_0x2a9a8c(0x1c8)];}catch(_0x415cca){return this[_0x2a9a8c(0x1dc)+_0x2a9a8c(0x1de)]=![],![];}}[_0x4bfcc3(0x1fb)+_0x4bfcc3(0x1b0)+'ed'](){const _0x5e5140=_0x4bfcc3;return this[_0x5e5140(0x1dc)+_0x5e5140(0x1de)];}[_0x4bfcc3(0x1bb)+_0x4bfcc3(0x1c6)](_0x20e22e=!![]){const _0x1b73bc=_0x4bfcc3,_0x38bd65={};_0x38bd65[_0x1b73bc(0x1e3)]=_0x1b73bc(0x1b5)+_0x1b73bc(0x1f0)+_0x1b73bc(0x1e1)+_0x1b73bc(0x1f8)+_0x1b73bc(0x1e7)+_0x1b73bc(0x1cb)+_0x1b73bc(0x1c1)+_0x1b73bc(0x1e4)+_0x1b73bc(0x1dd)+'.';const _0x57c6ed=_0x38bd65;if(!this[_0x1b73bc(0x1dc)+_0x1b73bc(0x1de)]&&_0x20e22e)throw new Error(_0x57c6ed[_0x1b73bc(0x1e3)]);return this[_0x1b73bc(0x1dc)+_0x1b73bc(0x1de)];}async[_0x4bfcc3(0x1fa)+_0x4bfcc3(0x1c4)](){const _0x22bdd1=_0x4bfcc3;if(this[_0x22bdd1(0x1f6)+_0x22bdd1(0x1c8)])return this[_0x22bdd1(0x1f6)+_0x22bdd1(0x1c8)];if(this[_0x22bdd1(0x1dc)+_0x22bdd1(0x1de)])return!![];return this[_0x22bdd1(0x1e0)+_0x22bdd1(0x1b3)]();}[_0x4bfcc3(0x1bd)+_0x4bfcc3(0x1cf)](_0x490451){const _0x8b3f51=_0x4bfcc3,_0x467212={};_0x467212[_0x8b3f51(0x1c7)]=_0x8b3f51(0x1ec)+_0x8b3f51(0x1e6);const _0x566133=_0x467212;this[_0x8b3f51(0x1eb)][_0x8b3f51(0x1b4)+'n']=_0x490451,this[_0x8b3f51(0x1f1)][_0x8b3f51(0x1bf)][_0x8b3f51(0x1d5)][_0x566133[_0x8b3f51(0x1c7)]]=_0x8b3f51(0x1df)+_0x490451,this[_0x8b3f51(0x1dc)+_0x8b3f51(0x1de)]=![],this[_0x8b3f51(0x1f6)+_0x8b3f51(0x1c8)]=this[_0x8b3f51(0x1e0)+_0x8b3f51(0x1b3)]();}}
1
+ 'use strict';function _0x3a8d(){const _0x3353f4=['webhooks','1557UdXjRz','./lib/auth','tório','MessagingS','pMXsW','das\x20ou\x20são','Connection','create','38611970BwYZgy','3773000fpbKdF','accessToke','vice','FpXnW','n\x20é\x20obriga','AuthServic','Content-Ty','sValidated','WpkwI','LkQDv','oken','data','applicatio','onhub.com.','6569292Viruwd','success','./lib/mess','validation','bnXLM','ram\x20valida','credential','HubClient','aging','Service','ooks','778EpYnqo','zMNsg','o\x20iniciali','s\x20credenci','3682904dnqVWE','waitForVal','axios','/auth/vali','get','Cliente\x20nã','exports','Bearer\x20','Operations','\x20inválidas','oGMzU','setAccessT','api','alsValidat','defaults','ion','LOqto','config','tamente.\x20A','validateCr','Authorizat','i.connecti','idation','edentials','https://ap','connection','LWhfj','WebhookSer','n/json','auth','./lib/webh','status','3528735LNEKwv','date','canExecute','138oSNjwF','AccessToke','apiUrl','zado\x20corre','plNjq','ervice','27gkbCti','Promise','baseURL','ections','86404zGgWEx','xoIUt','isCredenti','zeDyJ','./lib/conn','response','messaging','headers','ais\x20não\x20fo'];_0x3a8d=function(){return _0x3353f4;};return _0x3a8d();}const _0x13ddc0=_0x4ff4;(function(_0x592a98,_0x561970){const _0x384922=_0x4ff4,_0x1d5248=_0x592a98();while(!![]){try{const _0x5380fb=parseInt(_0x384922(0xd0))/(-0x1c74+-0x1*0x1472+-0x56f*-0x9)*(-parseInt(_0x384922(0x95))/(-0x694+0x38f*-0x7+-0x2dd*-0xb))+parseInt(_0x384922(0xbc))/(-0x1ecb+0x44b+0x1a83)*(-parseInt(_0x384922(0xc6))/(0x49+-0x14f0+0x14ab))+-parseInt(_0x384922(0xb9))/(-0xc1*-0x24+-0xd0+-0x1a4f)+parseInt(_0x384922(0x8a))/(0x81a+-0x1573+0xd5f)+-parseInt(_0x384922(0x7c))/(-0x7*-0x10d+-0x3*0xcfc+0x1fa0)+parseInt(_0x384922(0x99))/(-0x631+0x19c9+0x2*-0x9c8)*(-parseInt(_0x384922(0xc2))/(-0x1c91+-0x1503+0x319d))+parseInt(_0x384922(0x7b))/(0x667*-0x1+-0x579*0x1+0xbea);if(_0x5380fb===_0x561970)break;else _0x1d5248['push'](_0x1d5248['shift']());}catch(_0x5c891d){_0x1d5248['push'](_0x1d5248['shift']());}}}(_0x3a8d,0x8b*0x132b+0x12bc37+-0x11fd64));const axios=require(_0x13ddc0(0x9b)),AuthServiceModule=require(_0x13ddc0(0xd1)),MessagingServiceModule=require(_0x13ddc0(0x8c)+_0x13ddc0(0x92)),WebhookServiceModule=require(_0x13ddc0(0xb7)+_0x13ddc0(0x94)),ConnectionServiceModule=require(_0x13ddc0(0xca)+_0x13ddc0(0xc5));class ConnectionHubClient{constructor(_0x456ead){const _0x3cae2d=_0x13ddc0,_0x31ca07={};_0x31ca07[_0x3cae2d(0xc7)]=_0x3cae2d(0xbd)+_0x3cae2d(0x80)+_0x3cae2d(0xd2),_0x31ca07[_0x3cae2d(0x85)]=_0x3cae2d(0x88)+_0x3cae2d(0xb5),_0x31ca07[_0x3cae2d(0xc9)]=_0x3cae2d(0xad)+_0x3cae2d(0xa8),_0x31ca07[_0x3cae2d(0x7f)]=_0x3cae2d(0xb1)+_0x3cae2d(0xae)+_0x3cae2d(0x89)+'br';const _0x26178f=_0x31ca07;this[_0x3cae2d(0x90)+_0x3cae2d(0x83)]=![],this[_0x3cae2d(0x8d)+_0x3cae2d(0xc3)]=null;if(!_0x456ead[_0x3cae2d(0x7d)+'n'])throw new Error(_0x26178f[_0x3cae2d(0xc7)]);this[_0x3cae2d(0xaa)]=_0x456ead;const _0xdddeee={};_0xdddeee[_0x3cae2d(0x82)+'pe']=_0x26178f[_0x3cae2d(0x85)];const _0x23f50c=_0xdddeee;_0x456ead[_0x3cae2d(0x7d)+'n']&&(_0x23f50c[_0x26178f[_0x3cae2d(0xc9)]]=_0x3cae2d(0xa0)+_0x456ead[_0x3cae2d(0x7d)+'n']);const _0x19b54f={};_0x19b54f[_0x3cae2d(0xc4)]=_0x456ead[_0x3cae2d(0xbe)]||_0x26178f[_0x3cae2d(0x7f)],_0x19b54f[_0x3cae2d(0xcd)]=_0x23f50c,this[_0x3cae2d(0xa5)]=axios[_0x3cae2d(0x7a)](_0x19b54f),this[_0x3cae2d(0xb6)]=new AuthServiceModule[(_0x3cae2d(0x81))+'e'](this[_0x3cae2d(0xa5)],this),this[_0x3cae2d(0xcc)]=new MessagingServiceModule[(_0x3cae2d(0xd3))+(_0x3cae2d(0xc1))](this[_0x3cae2d(0xa5)],this),this[_0x3cae2d(0xcf)]=new WebhookServiceModule[(_0x3cae2d(0xb4))+(_0x3cae2d(0x7e))](this[_0x3cae2d(0xa5)],this),this[_0x3cae2d(0xb2)+'s']=new ConnectionServiceModule[(_0x3cae2d(0xd6))+(_0x3cae2d(0x93))](this[_0x3cae2d(0xa5)],this),this[_0x3cae2d(0x8d)+_0x3cae2d(0xc3)]=this[_0x3cae2d(0xac)+_0x3cae2d(0xb0)]();}async[_0x13ddc0(0xac)+_0x13ddc0(0xb0)](){const _0x4e459a=_0x13ddc0,_0x4ea15e={'bnXLM':_0x4e459a(0x9c)+_0x4e459a(0xba),'LOqto':function(_0x25ca0a,_0x8e0599){return _0x25ca0a===_0x8e0599;},'oGMzU':function(_0x3fc366,_0x447368){return _0x3fc366(_0x447368);},'pMXsW':function(_0x4f7999,_0x3e30a1){return _0x4f7999===_0x3e30a1;},'LWhfj':function(_0x462c83,_0x2ea2e1){return _0x462c83(_0x2ea2e1);},'WpkwI':function(_0x3c0bf5,_0x533cd2){return _0x3c0bf5(_0x533cd2);}};try{if(this[_0x4e459a(0x8d)+_0x4e459a(0xc3)])return this[_0x4e459a(0x8d)+_0x4e459a(0xc3)];return this[_0x4e459a(0x8d)+_0x4e459a(0xc3)]=new Promise(async _0x364c7f=>{const _0x52fe66=_0x4e459a;try{const _0x5c6b00=await this[_0x52fe66(0xa5)][_0x52fe66(0x9d)](_0x4ea15e[_0x52fe66(0x8e)]);this[_0x52fe66(0x90)+_0x52fe66(0x83)]=_0x4ea15e[_0x52fe66(0xa9)](_0x5c6b00[_0x52fe66(0x87)][_0x52fe66(0x8b)],!![]),_0x4ea15e[_0x52fe66(0xa3)](_0x364c7f,this[_0x52fe66(0x90)+_0x52fe66(0x83)]);}catch(_0x1fb303){_0x4ea15e[_0x52fe66(0xd4)](_0x1fb303[_0x52fe66(0xcb)]?.[_0x52fe66(0xb8)],-0xa1c*0x1+0x617+-0x596*-0x1)||_0x4ea15e[_0x52fe66(0xd4)](_0x1fb303[_0x52fe66(0xcb)]?.[_0x52fe66(0xb8)],0x1*0x629+0x1*-0x22b6+0x1e20)?(this[_0x52fe66(0x90)+_0x52fe66(0x83)]=![],_0x4ea15e[_0x52fe66(0xb3)](_0x364c7f,![])):(this[_0x52fe66(0x90)+_0x52fe66(0x83)]=![],_0x4ea15e[_0x52fe66(0x84)](_0x364c7f,![]));}finally{this[_0x52fe66(0x8d)+_0x52fe66(0xc3)]=null;}}),this[_0x4e459a(0x8d)+_0x4e459a(0xc3)];}catch(_0x5e0a86){return this[_0x4e459a(0x90)+_0x4e459a(0x83)]=![],![];}}[_0x13ddc0(0xc8)+_0x13ddc0(0xa6)+'ed'](){const _0x38ddd6=_0x13ddc0;return this[_0x38ddd6(0x90)+_0x38ddd6(0x83)];}[_0x13ddc0(0xbb)+_0x13ddc0(0xa1)](_0xa0d5f8=!![]){const _0x39de36=_0x13ddc0,_0x1e2dbc={};_0x1e2dbc[_0x39de36(0x96)]=_0x39de36(0x9e)+_0x39de36(0x97)+_0x39de36(0xbf)+_0x39de36(0xab)+_0x39de36(0x98)+_0x39de36(0xce)+_0x39de36(0x8f)+_0x39de36(0xd5)+_0x39de36(0xa2)+'.';const _0x5ba2aa=_0x1e2dbc;if(!this[_0x39de36(0x90)+_0x39de36(0x83)]&&_0xa0d5f8)throw new Error(_0x5ba2aa[_0x39de36(0x96)]);return this[_0x39de36(0x90)+_0x39de36(0x83)];}async[_0x13ddc0(0x9a)+_0x13ddc0(0xaf)](){const _0x34bd90=_0x13ddc0;if(this[_0x34bd90(0x8d)+_0x34bd90(0xc3)])return this[_0x34bd90(0x8d)+_0x34bd90(0xc3)];if(this[_0x34bd90(0x90)+_0x34bd90(0x83)])return!![];return this[_0x34bd90(0xac)+_0x34bd90(0xb0)]();}[_0x13ddc0(0xa4)+_0x13ddc0(0x86)](_0x1963b6){const _0x57af01=_0x13ddc0,_0x31e8e1={};_0x31e8e1[_0x57af01(0xc0)]=_0x57af01(0xad)+_0x57af01(0xa8);const _0x71e5bc=_0x31e8e1;this[_0x57af01(0xaa)][_0x57af01(0x7d)+'n']=_0x1963b6,this[_0x57af01(0xa5)][_0x57af01(0xa7)][_0x57af01(0xcd)][_0x71e5bc[_0x57af01(0xc0)]]=_0x57af01(0xa0)+_0x1963b6,this[_0x57af01(0x90)+_0x57af01(0x83)]=![],this[_0x57af01(0x8d)+_0x57af01(0xc3)]=this[_0x57af01(0xac)+_0x57af01(0xb0)]();}}function _0x4ff4(_0x3cfbe6,_0x64cc13){const _0xf7edde=_0x3a8d();return _0x4ff4=function(_0x191d46,_0x42d860){_0x191d46=_0x191d46-(0x1357*-0x2+-0xb15+0x323d);let _0x23bc37=_0xf7edde[_0x191d46];return _0x23bc37;},_0x4ff4(_0x3cfbe6,_0x64cc13);}const _0x55ab07={};_0x55ab07[_0x13ddc0(0xd6)+_0x13ddc0(0x91)]=ConnectionHubClient,module[_0x13ddc0(0x9f)]=_0x55ab07;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- import { ConnectionHubClient } from './client';
2
- export { ConnectionHubClient };
3
- export * from './types';
1
+ declare const clientModule: any;
2
+ declare const types: any;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2704b0,_0x61fb55){var _0x11332d=_0x4ad4,_0x5a3600=_0x2704b0();while(!![]){try{var _0x4bda0e=parseInt(_0x11332d(0x135))/(0x1*0x925+0x61*-0x5d+0x11*0x189)*(parseInt(_0x11332d(0x130))/(0x1a34*0x1+0x478*-0x5+-0x3da))+parseInt(_0x11332d(0x12f))/(-0xb63*-0x1+-0xc3*-0xf+-0x16cd)+parseInt(_0x11332d(0x12e))/(0x7ff+-0x22f+0x7*-0xd4)*(-parseInt(_0x11332d(0x133))/(-0xe95+-0x7*-0x22d+-0xa1*0x1))+-parseInt(_0x11332d(0x12d))/(-0x34c*-0x2+-0x13*0x1b1+0x1991)*(-parseInt(_0x11332d(0x136))/(-0x10c9*-0x1+0x2*-0xeb4+0xca6))+-parseInt(_0x11332d(0x131))/(0xc74+0x9*0x24f+-0x2133*0x1)+-parseInt(_0x11332d(0x132))/(0x9*-0x99+-0x9b*0x2c+-0x1*-0x200e)+parseInt(_0x11332d(0x134))/(0x887*-0x3+-0x4*0x7eb+-0x1*-0x394b);if(_0x4bda0e===_0x61fb55)break;else _0x5a3600['push'](_0x5a3600['shift']());}catch(_0x24efc1){_0x5a3600['push'](_0x5a3600['shift']());}}}(_0x581f,0x91151+-0xe0ab1+0xca5b0));import{ConnectionHubClient}from'./client';export{ConnectionHubClient};export*from'./types';function _0x4ad4(_0x2c29c1,_0x2b16d3){var _0x4356d7=_0x581f();return _0x4ad4=function(_0x2ab1bd,_0x36a812){_0x2ab1bd=_0x2ab1bd-(0x40*-0x20+0x1d8d+0x146*-0x10);var _0x35ba7b=_0x4356d7[_0x2ab1bd];return _0x35ba7b;},_0x4ad4(_0x2c29c1,_0x2b16d3);}function _0x581f(){var _0x2cbace=['174sBKrrN','4hvuyvV','382218MnpOCk','374TVddRF','1833736wmnbph','2084778brWBND','268595WRqEFZ','3613560pkqOfv','786CNUYSt','92134svzQtn'];_0x581f=function(){return _0x2cbace;};return _0x581f();}
1
+ 'use strict';function _0xa74f(){const _0x430131=['19038WIXYCU','34974SuPJjk','2042848YRcMUN','HubClient','1189636CefdDP','1355YwEixY','1099479NFGiuo','./types','./client','2571030JrBDNU','exports','2570rdKzIB','28VltWFD','keys','2417236kSgjQT','Connection','forEach'];_0xa74f=function(){return _0x430131;};return _0xa74f();}const _0x5f2d8b=_0x27bf;(function(_0x4898b7,_0x4da575){const _0x148da7=_0x27bf,_0xb757dd=_0x4898b7();while(!![]){try{const _0x1203bc=-parseInt(_0x148da7(0x13d))/(-0x133+-0x1669*0x1+0x179d)+parseInt(_0x148da7(0x13b))/(-0x3*0x881+-0x146c*0x1+0x1*0x2df1)+parseInt(_0x148da7(0x140))/(-0x7*-0x3b8+-0xf6a+-0x389*0x3)+-parseInt(_0x148da7(0x134))/(-0x42*-0x7c+0xb01+0x2af5*-0x1)+parseInt(_0x148da7(0x13c))/(-0xa*-0x2bd+-0x1512+-0x64b)*(parseInt(_0x148da7(0x137))/(0x8f*0x22+0x1*0xab7+0x95*-0x33))+parseInt(_0x148da7(0x132))/(0x1*0x161a+-0xb66+-0x38f*0x3)*(-parseInt(_0x148da7(0x139))/(0xf66+-0x2568+-0x1*-0x160a))+parseInt(_0x148da7(0x138))/(0x65*0xc+-0x2*-0xa6+-0x5*0x133)*(parseInt(_0x148da7(0x142))/(0x8d8*-0x4+0x17a1+-0x1af*-0x7));if(_0x1203bc===_0x4da575)break;else _0xb757dd['push'](_0xb757dd['shift']());}catch(_0x17d77a){_0xb757dd['push'](_0xb757dd['shift']());}}}(_0xa74f,-0x997a5+-0xd12b*-0x13+0x2ff65));function _0x27bf(_0x39f4b0,_0x279a1d){const _0x46c586=_0xa74f();return _0x27bf=function(_0x40225c,_0x46fafa){_0x40225c=_0x40225c-(0x4a8+-0x1c38+0x18c2);let _0x332b87=_0x46c586[_0x40225c];return _0x332b87;},_0x27bf(_0x39f4b0,_0x279a1d);}const clientModule=require(_0x5f2d8b(0x13f));module[_0x5f2d8b(0x141)][_0x5f2d8b(0x135)+_0x5f2d8b(0x13a)]=clientModule[_0x5f2d8b(0x135)+_0x5f2d8b(0x13a)];const types=require(_0x5f2d8b(0x13e));Object[_0x5f2d8b(0x133)](types)[_0x5f2d8b(0x136)](_0x19c840=>{const _0x59a899=_0x5f2d8b;module[_0x59a899(0x141)][_0x19c840]=types[_0x19c840];});
@@ -1,9 +1,7 @@
1
- import { AxiosInstance } from 'axios';
2
- import { AuthResponse, ConnectionHubClientType, BaseService } from '../../types';
3
- export declare class AuthService implements BaseService {
1
+ declare class AuthService {
4
2
  private readonly api;
5
3
  private readonly client?;
6
- constructor(api: AxiosInstance, client?: ConnectionHubClientType | undefined);
4
+ constructor(api: any, client?: any | undefined);
7
5
  /**
8
6
  * Verifica se o cliente pode executar operações
9
7
  * @param throwError Se true, lança um erro caso as credenciais não sejam válidas (padrão: true)
@@ -15,19 +13,19 @@ export declare class AuthService implements BaseService {
15
13
  * @param code Código de autorização do Facebook
16
14
  * @param redirectUri URI de redirecionamento
17
15
  */
18
- facebook(code: string, redirectUri: string): Promise<AuthResponse>;
16
+ facebook(code: string, redirectUri: string): Promise<any>;
19
17
  /**
20
18
  * Autentica com o Instagram
21
19
  * @param code Código de autorização do Instagram
22
20
  * @param redirectUri URI de redirecionamento
23
21
  */
24
- instagram(code: string, redirectUri: string): Promise<AuthResponse>;
22
+ instagram(code: string, redirectUri: string): Promise<any>;
25
23
  /**
26
24
  * Autentica com o Mercado Livre
27
25
  * @param code Código de autorização do Mercado Livre
28
26
  * @param redirectUri URI de redirecionamento
29
27
  */
30
- mercadoLivre(code: string, redirectUri: string): Promise<AuthResponse>;
28
+ mercadoLivre(code: string, redirectUri: string): Promise<any>;
31
29
  /**
32
30
  * Autentica com Email
33
31
  * @param credentials Credenciais de email
@@ -41,5 +39,5 @@ export declare class AuthService implements BaseService {
41
39
  emailSmtpHost: string;
42
40
  emailSmtpPort: number;
43
41
  emailSmtpTls: boolean;
44
- }): Promise<AuthResponse>;
42
+ }): Promise<any>;
45
43
  }
@@ -1 +1 @@
1
- function _0x2a57(_0x1a4395,_0x2eb175){const _0x4e5299=_0x1803();return _0x2a57=function(_0x57d2d5,_0x31aeae){_0x57d2d5=_0x57d2d5-(0x12c+-0xd7b+-0xff*-0xe);let _0x2efa9d=_0x4e5299[_0x57d2d5];return _0x2efa9d;},_0x2a57(_0x1a4395,_0x2eb175);}const _0x37599d=_0x2a57;(function(_0x48d5fc,_0x5e1380){const _0x51a4c2=_0x2a57,_0x32cf5f=_0x48d5fc();while(!![]){try{const _0x24500f=-parseInt(_0x51a4c2(0x1a8))/(0x14aa+-0x1ea6+0x9fd*0x1)*(-parseInt(_0x51a4c2(0x1c0))/(-0x20a4+0x25b2+0x13*-0x44))+parseInt(_0x51a4c2(0x1b0))/(-0x157c+-0x1e*0xf8+0x328f)*(-parseInt(_0x51a4c2(0x1d4))/(0x14b6+-0x1263*-0x1+-0x2715))+-parseInt(_0x51a4c2(0x1c8))/(0x2*0x473+-0xc1*-0x1b+-0x1d3c)*(parseInt(_0x51a4c2(0x1a9))/(0xbea+0x4*0xf7+-0xfc0))+parseInt(_0x51a4c2(0x1aa))/(-0xd*0x1af+0x2312*-0x1+0x412*0xe)+-parseInt(_0x51a4c2(0x1a4))/(0xb65+-0x9e6+-0x177)*(-parseInt(_0x51a4c2(0x1ba))/(-0x64a+-0x1336*-0x1+-0x1*0xce3))+-parseInt(_0x51a4c2(0x1b1))/(0x2244+0x1d07+-0x3f41)*(-parseInt(_0x51a4c2(0x1a7))/(-0x1c68+0xfca*-0x1+0x2c3d))+-parseInt(_0x51a4c2(0x1b6))/(-0x97*-0x1d+0x1*-0x19fd+0x8ee);if(_0x24500f===_0x5e1380)break;else _0x32cf5f['push'](_0x32cf5f['shift']());}catch(_0x56445c){_0x32cf5f['push'](_0x32cf5f['shift']());}}}(_0x1803,0x97a6c+-0x7484d+-0x1*-0x30253));export class AuthService{constructor(_0x2e58a6,_0x394ae5){const _0xdc2145=_0x2a57;this[_0xdc2145(0x1d2)]=_0x2e58a6,this[_0xdc2145(0x1c2)]=_0x394ae5;}[_0x37599d(0x1c5)+_0x37599d(0x1d1)](_0x1b32f9=!![]){const _0x24b986=_0x37599d,_0x49e234={};_0x49e234[_0x24b986(0x1c4)]=_0x24b986(0x1a3)+_0x24b986(0x1d7)+_0x24b986(0x1b8)+_0x24b986(0x1c1)+_0x24b986(0x1b2)+_0x24b986(0x1b5)+_0x24b986(0x1b7)+_0x24b986(0x1c7)+_0x24b986(0x1c3)+_0x24b986(0x1ca)+_0x24b986(0x1b4)+_0x24b986(0x1ac)+'o.';const _0x322ae3=_0x49e234;if(this[_0x24b986(0x1c2)]&&!this[_0x24b986(0x1c2)][_0x24b986(0x1c6)+_0x24b986(0x1ae)+'ed']()&&_0x1b32f9)throw new Error(_0x322ae3[_0x24b986(0x1c4)]);}async[_0x37599d(0x1b9)](_0x1661b7,_0x4791f3){const _0x31c2be=_0x37599d,_0x4234bf={};_0x4234bf[_0x31c2be(0x1af)]=_0x31c2be(0x1cc)+_0x31c2be(0x1ad);const _0x3bb54f=_0x4234bf;try{const _0x288f97={};_0x288f97[_0x31c2be(0x1cd)]=_0x1661b7,_0x288f97[_0x31c2be(0x1ab)+'i']=_0x4791f3;const _0x5cf55e=await this[_0x31c2be(0x1d2)][_0x31c2be(0x1b3)](_0x3bb54f[_0x31c2be(0x1af)],_0x288f97);return _0x5cf55e[_0x31c2be(0x1bb)];}catch(_0x22863b){const _0x2246b0={};return _0x2246b0[_0x31c2be(0x1bd)]=![],_0x2246b0[_0x31c2be(0x1d3)]=_0x22863b[_0x31c2be(0x1d8)]?.[_0x31c2be(0x1bb)]?.[_0x31c2be(0x1bf)]||_0x22863b[_0x31c2be(0x1bf)],_0x2246b0;}}async[_0x37599d(0x1ce)](_0x307dca,_0x7a1e8d){const _0x5cfbe0=_0x37599d,_0x277742={};_0x277742[_0x5cfbe0(0x1bc)]=_0x5cfbe0(0x1d5)+_0x5cfbe0(0x1d0);const _0x3c860e=_0x277742;try{const _0x99723a={};_0x99723a[_0x5cfbe0(0x1cd)]=_0x307dca,_0x99723a[_0x5cfbe0(0x1ab)+'i']=_0x7a1e8d;const _0x3851fd=await this[_0x5cfbe0(0x1d2)][_0x5cfbe0(0x1b3)](_0x3c860e[_0x5cfbe0(0x1bc)],_0x99723a);return _0x3851fd[_0x5cfbe0(0x1bb)];}catch(_0x36c769){const _0x562f57={};return _0x562f57[_0x5cfbe0(0x1bd)]=![],_0x562f57[_0x5cfbe0(0x1d3)]=_0x36c769[_0x5cfbe0(0x1d8)]?.[_0x5cfbe0(0x1bb)]?.[_0x5cfbe0(0x1bf)]||_0x36c769[_0x5cfbe0(0x1bf)],_0x562f57;}}async[_0x37599d(0x1cf)+'re'](_0x42274e,_0x24f179){const _0x51e2d9=_0x37599d,_0x58f830={};_0x58f830[_0x51e2d9(0x1a6)]=_0x51e2d9(0x1be)+_0x51e2d9(0x1c9);const _0x217c35=_0x58f830;try{const _0x25e455={};_0x25e455[_0x51e2d9(0x1cd)]=_0x42274e,_0x25e455[_0x51e2d9(0x1ab)+'i']=_0x24f179;const _0x45b2ef=await this[_0x51e2d9(0x1d2)][_0x51e2d9(0x1b3)](_0x217c35[_0x51e2d9(0x1a6)],_0x25e455);return _0x45b2ef[_0x51e2d9(0x1bb)];}catch(_0x43e82b){const _0x54fdc0={};return _0x54fdc0[_0x51e2d9(0x1bd)]=![],_0x54fdc0[_0x51e2d9(0x1d3)]=_0x43e82b[_0x51e2d9(0x1d8)]?.[_0x51e2d9(0x1bb)]?.[_0x51e2d9(0x1bf)]||_0x43e82b[_0x51e2d9(0x1bf)],_0x54fdc0;}}async[_0x37599d(0x1d6)](_0x20143b){const _0x624341=_0x37599d,_0x49f258={};_0x49f258[_0x624341(0x1cb)]=_0x624341(0x1a5)+'l';const _0x1de25d=_0x49f258;try{const _0x4ffc92=await this[_0x624341(0x1d2)][_0x624341(0x1b3)](_0x1de25d[_0x624341(0x1cb)],_0x20143b);return _0x4ffc92[_0x624341(0x1bb)];}catch(_0x3511b6){const _0x4d80c4={};return _0x4d80c4[_0x624341(0x1bd)]=![],_0x4d80c4[_0x624341(0x1d3)]=_0x3511b6[_0x624341(0x1d8)]?.[_0x624341(0x1bb)]?.[_0x624341(0x1bf)]||_0x3511b6[_0x624341(0x1bf)],_0x4d80c4;}}}function _0x1803(){const _0x2a280e=['/auth/emai','QJscV','187IuiNWg','27jBwdOs','242994gumpJN','3520279OfGKqS','redirectUr','()\x20primeir','book','alsValidat','gjWzj','1399206SuStpQ','224130BItTGr','dadas\x20ou\x20s','post','Validation','ão\x20inválid','4486164UpqUUG','as.\x20Aguard','iente\x20não\x20','facebook','9pRLcHC','data','ZHvdz','success','/auth/merc','message','21298ODChoP','foram\x20vali','client','ção\x20ou\x20cha','JbWet','checkCrede','isCredenti','e\x20a\x20valida','15CJyQer','adolivre','me\x20waitFor','rVDtx','/auth/face','code','instagram','mercadoLiv','agram','ntials','api','error','4YSGpmi','/auth/inst','email','iais\x20do\x20cl','response','As\x20credenc','1051288TSuHrI'];_0x1803=function(){return _0x2a280e;};return _0x1803();}
1
+ 'use strict';const _0x52971f=_0x166c;function _0x15ac(){const _0x55ca37=['ção\x20ou\x20cha','email','/auth/inst','16601068KehNoj','575VkYxlR','/auth/emai','isCredenti','iais\x20do\x20cl','book','87QPmqBK','Validation','client','25XJHziF','EUUjd','722694DgHdIG','alsValidat','agram','10038CAVTrc','As\x20credenc','/auth/merc','exports','instagram','as.\x20Aguard','post','adolivre','45648FnNthi','39142wXHYxW','response','api','facebook','redirectUr','4544700jUNRYi','error','jGSFX','dadas\x20ou\x20s','gFycu','code','32LpQNWu','mercadoLiv','ucJzs','2799594WkrTFe','data','/auth/face','ão\x20inválid','ntials','message','()\x20primeir','foram\x20vali','me\x20waitFor','checkCrede','iente\x20não\x20','success','fORtx','AuthServic','e\x20a\x20valida'];_0x15ac=function(){return _0x55ca37;};return _0x15ac();}(function(_0x266c9c,_0x5cdefb){const _0x24a62e=_0x166c,_0x11f1a5=_0x266c9c();while(!![]){try{const _0x3cb9b2=-parseInt(_0x24a62e(0x191))/(0x647*-0x1+0x16fb*0x1+-0x19*0xab)*(-parseInt(_0x24a62e(0x19f))/(0x16d3*0x1+-0xa6+0x1*-0x162b))+-parseInt(_0x24a62e(0x18e))/(-0x1dac+0x2489+-0x2*0x36d)*(parseInt(_0x24a62e(0x19e))/(-0x1420+0x41c+0x1008))+parseInt(_0x24a62e(0x189))/(0xa*0xe+-0xa3d+0x9b6*0x1)*(-parseInt(_0x24a62e(0x196))/(-0x1a05+-0x7ed*0x1+0x21f8))+parseInt(_0x24a62e(0x193))/(-0x1024*-0x1+-0x23ff+0x13e2)*(-parseInt(_0x24a62e(0x173))/(-0x98a+-0x11e1+0x1b73))+-parseInt(_0x24a62e(0x176))/(0x1*0x1485+0x6a3*0x1+-0x1*0x1b1f)+-parseInt(_0x24a62e(0x16d))/(0x91a+0x9fa*0x1+-0x130a)+parseInt(_0x24a62e(0x188))/(0x5ed*0x1+0x23d3+-0x29b5);if(_0x3cb9b2===_0x5cdefb)break;else _0x11f1a5['push'](_0x11f1a5['shift']());}catch(_0xc352d6){_0x11f1a5['push'](_0x11f1a5['shift']());}}}(_0x15ac,-0x34df9+0x1*0x5aab7+-0x2*-0x114f5));function _0x166c(_0x100c08,_0x2b0c18){const _0x10d986=_0x15ac();return _0x166c=function(_0x331ceb,_0x4d22cd){_0x331ceb=_0x331ceb-(0x145c+0x19ca+-0x2cba);let _0x407462=_0x10d986[_0x331ceb];return _0x407462;},_0x166c(_0x100c08,_0x2b0c18);}class AuthService{constructor(_0x53bb2f,_0x58fdf0){const _0x3f754a=_0x166c;this[_0x3f754a(0x1a1)]=_0x53bb2f,this[_0x3f754a(0x190)]=_0x58fdf0;}[_0x52971f(0x17f)+_0x52971f(0x17a)](_0xca634d=!![]){const _0x37a5ca=_0x52971f,_0x26af14={};_0x26af14[_0x37a5ca(0x175)]=_0x37a5ca(0x197)+_0x37a5ca(0x18c)+_0x37a5ca(0x180)+_0x37a5ca(0x17d)+_0x37a5ca(0x170)+_0x37a5ca(0x179)+_0x37a5ca(0x19b)+_0x37a5ca(0x184)+_0x37a5ca(0x185)+_0x37a5ca(0x17e)+_0x37a5ca(0x18f)+_0x37a5ca(0x17c)+'o.';const _0x2b81e5=_0x26af14;if(this[_0x37a5ca(0x190)]&&!this[_0x37a5ca(0x190)][_0x37a5ca(0x18b)+_0x37a5ca(0x194)+'ed']()&&_0xca634d)throw new Error(_0x2b81e5[_0x37a5ca(0x175)]);}async[_0x52971f(0x1a2)](_0x43eece,_0x3f2fed){const _0x199634=_0x52971f,_0x2059d5={};_0x2059d5[_0x199634(0x16f)]=_0x199634(0x178)+_0x199634(0x18d);const _0x107914=_0x2059d5;try{const _0x13f4d6={};_0x13f4d6[_0x199634(0x172)]=_0x43eece,_0x13f4d6[_0x199634(0x16c)+'i']=_0x3f2fed;const _0x1d8b98=await this[_0x199634(0x1a1)][_0x199634(0x19c)](_0x107914[_0x199634(0x16f)],_0x13f4d6);return _0x1d8b98[_0x199634(0x177)];}catch(_0x1d05fd){const _0x31fed7={};return _0x31fed7[_0x199634(0x181)]=![],_0x31fed7[_0x199634(0x16e)]=_0x1d05fd[_0x199634(0x1a0)]?.[_0x199634(0x177)]?.[_0x199634(0x17b)]||_0x1d05fd[_0x199634(0x17b)],_0x31fed7;}}async[_0x52971f(0x19a)](_0x20ccd2,_0x45c508){const _0x4b7b6b=_0x52971f,_0x8d05e1={};_0x8d05e1[_0x4b7b6b(0x171)]=_0x4b7b6b(0x187)+_0x4b7b6b(0x195);const _0x490a7b=_0x8d05e1;try{const _0x2564dc={};_0x2564dc[_0x4b7b6b(0x172)]=_0x20ccd2,_0x2564dc[_0x4b7b6b(0x16c)+'i']=_0x45c508;const _0x387ecb=await this[_0x4b7b6b(0x1a1)][_0x4b7b6b(0x19c)](_0x490a7b[_0x4b7b6b(0x171)],_0x2564dc);return _0x387ecb[_0x4b7b6b(0x177)];}catch(_0x2a8226){const _0x3a719b={};return _0x3a719b[_0x4b7b6b(0x181)]=![],_0x3a719b[_0x4b7b6b(0x16e)]=_0x2a8226[_0x4b7b6b(0x1a0)]?.[_0x4b7b6b(0x177)]?.[_0x4b7b6b(0x17b)]||_0x2a8226[_0x4b7b6b(0x17b)],_0x3a719b;}}async[_0x52971f(0x174)+'re'](_0x3997c3,_0x50d5e6){const _0x5ee48f=_0x52971f,_0x5dc195={};_0x5dc195[_0x5ee48f(0x192)]=_0x5ee48f(0x198)+_0x5ee48f(0x19d);const _0x3a862d=_0x5dc195;try{const _0xa0b024={};_0xa0b024[_0x5ee48f(0x172)]=_0x3997c3,_0xa0b024[_0x5ee48f(0x16c)+'i']=_0x50d5e6;const _0x1f52bb=await this[_0x5ee48f(0x1a1)][_0x5ee48f(0x19c)](_0x3a862d[_0x5ee48f(0x192)],_0xa0b024);return _0x1f52bb[_0x5ee48f(0x177)];}catch(_0x171817){const _0x31aa8c={};return _0x31aa8c[_0x5ee48f(0x181)]=![],_0x31aa8c[_0x5ee48f(0x16e)]=_0x171817[_0x5ee48f(0x1a0)]?.[_0x5ee48f(0x177)]?.[_0x5ee48f(0x17b)]||_0x171817[_0x5ee48f(0x17b)],_0x31aa8c;}}async[_0x52971f(0x186)](_0x24b3ee){const _0x496075=_0x52971f,_0x15d439={};_0x15d439[_0x496075(0x182)]=_0x496075(0x18a)+'l';const _0x59af6b=_0x15d439;try{const _0x2a152a=await this[_0x496075(0x1a1)][_0x496075(0x19c)](_0x59af6b[_0x496075(0x182)],_0x24b3ee);return _0x2a152a[_0x496075(0x177)];}catch(_0x5bb06a){const _0x45ee37={};return _0x45ee37[_0x496075(0x181)]=![],_0x45ee37[_0x496075(0x16e)]=_0x5bb06a[_0x496075(0x1a0)]?.[_0x496075(0x177)]?.[_0x496075(0x17b)]||_0x5bb06a[_0x496075(0x17b)],_0x45ee37;}}}const _0x161ec6={};_0x161ec6[_0x52971f(0x183)+'e']=AuthService,module[_0x52971f(0x199)]=_0x161ec6;
@@ -1,9 +1,7 @@
1
- import { AxiosInstance } from 'axios';
2
- import { ConnectionData, ConnectionHubClientType, BaseService } from '../../types';
3
- export declare class ConnectionService implements BaseService {
1
+ declare class ConnectionService {
4
2
  private readonly api;
5
3
  private readonly client?;
6
- constructor(api: AxiosInstance, client?: ConnectionHubClientType | undefined);
4
+ constructor(api: any, client?: any | undefined);
7
5
  /**
8
6
  * Verifica se o cliente pode executar operações
9
7
  * @param throwError Se true, lança um erro caso as credenciais não sejam válidas (padrão: true)
@@ -12,9 +10,9 @@ export declare class ConnectionService implements BaseService {
12
10
  /**
13
11
  * Lista todas as conexões
14
12
  */
15
- listConnections(): Promise<ConnectionData[]>;
13
+ listConnections(): Promise<any[]>;
16
14
  /**
17
15
  * Obtém uma conexão específica
18
16
  */
19
- getConnection(channelToken: string): Promise<ConnectionData | null>;
17
+ getConnection(channelToken: string): Promise<any | null>;
20
18
  }
@@ -1 +1 @@
1
- const _0x5bf158=_0x43c5;(function(_0x1e154f,_0xe2a723){const _0xc5659f=_0x43c5,_0x3451dc=_0x1e154f();while(!![]){try{const _0x53b285=-parseInt(_0xc5659f(0x10b))/(-0xb*-0x9d+-0x13b4+0x2a*0x4f)+parseInt(_0xc5659f(0x101))/(0x1454+-0x7f6+-0x2*0x62e)+-parseInt(_0xc5659f(0xfa))/(0x23f2+0x5f*-0x69+0x308)+parseInt(_0xc5659f(0x107))/(-0xafc+-0xcc7*0x1+0x17c7)+parseInt(_0xc5659f(0xfc))/(0x2a*-0x6d+-0x19ca+0x2bb1)+parseInt(_0xc5659f(0x119))/(0xd21*0x2+-0x2*0x821+-0x9fa)+parseInt(_0xc5659f(0xfd))/(-0x2250+-0xac+-0x2303*-0x1)*(-parseInt(_0xc5659f(0x111))/(-0x1b72+-0x14a8+0x3022));if(_0x53b285===_0xe2a723)break;else _0x3451dc['push'](_0x3451dc['shift']());}catch(_0x3bcddd){_0x3451dc['push'](_0x3451dc['shift']());}}}(_0x73fc,0x31e8d*-0x2+0x553b1+0x464fd));function _0x43c5(_0x4152d7,_0x2f01f0){const _0x4f7a40=_0x73fc();return _0x43c5=function(_0xf9b50e,_0x3b3902){_0xf9b50e=_0xf9b50e-(0x1884+-0x1*-0x15d7+-0x5*0x914);let _0x54b754=_0x4f7a40[_0xf9b50e];return _0x54b754;},_0x43c5(_0x4152d7,_0x2f01f0);}function _0x73fc(){const _0x2d1f32=['6472yTJRJA','foram\x20vali','checkCrede','ção\x20ou\x20cha','Validation','IPjDm','As\x20credenc','listConnec','1968126EOkefN','isCredenti','/channels','ão\x20inválid','Gkgja','101937ZrrWbo','iente\x20não\x20','1694205OwRtdZ','6335ZZTQlb','dadas\x20ou\x20s','getConnect','data','882492XGrkWs','iais\x20do\x20cl','me\x20waitFor','api','client','alsValidat','214228FCMDNS','as.\x20Aguard','e\x20a\x20valida','/channel/','167297PJSnbF','tions','ion','get','ntials','()\x20primeir'];_0x73fc=function(){return _0x2d1f32;};return _0x73fc();}export class ConnectionService{constructor(_0x3f6455,_0x2ebba1){const _0x1228bc=_0x43c5;this[_0x1228bc(0x104)]=_0x3f6455,this[_0x1228bc(0x105)]=_0x2ebba1;}[_0x5bf158(0x113)+_0x5bf158(0x10f)](_0x584196=!![]){const _0x2fe79d=_0x5bf158,_0x57499a={};_0x57499a[_0x2fe79d(0xf9)]=_0x2fe79d(0x117)+_0x2fe79d(0x102)+_0x2fe79d(0xfb)+_0x2fe79d(0x112)+_0x2fe79d(0xfe)+_0x2fe79d(0xf8)+_0x2fe79d(0x108)+_0x2fe79d(0x109)+_0x2fe79d(0x114)+_0x2fe79d(0x103)+_0x2fe79d(0x115)+_0x2fe79d(0x110)+'o.';const _0x23811c=_0x57499a;if(this[_0x2fe79d(0x105)]&&!this[_0x2fe79d(0x105)][_0x2fe79d(0x11a)+_0x2fe79d(0x106)+'ed']()&&_0x584196)throw new Error(_0x23811c[_0x2fe79d(0xf9)]);}async[_0x5bf158(0x118)+_0x5bf158(0x10c)](){const _0x30916f=_0x5bf158,_0x393ebf={};_0x393ebf[_0x30916f(0x116)]=_0x30916f(0xf7);const _0x447170=_0x393ebf;this[_0x30916f(0x113)+_0x30916f(0x10f)]();try{const _0x125e12=await this[_0x30916f(0x104)][_0x30916f(0x10e)](_0x447170[_0x30916f(0x116)]);return _0x125e12[_0x30916f(0x100)];}catch(_0x156707){return[];}}async[_0x5bf158(0xff)+_0x5bf158(0x10d)](_0x41b8a2){const _0x1753a0=_0x5bf158;this[_0x1753a0(0x113)+_0x1753a0(0x10f)]();try{const _0x5875d0=await this[_0x1753a0(0x104)][_0x1753a0(0x10e)](_0x1753a0(0x10a)+_0x41b8a2);return _0x5875d0[_0x1753a0(0x100)];}catch(_0x2b6393){return null;}}}
1
+ 'use strict';const _0x55196f=_0x28fa;(function(_0x28f4ed,_0xa5b4c1){const _0xd89a93=_0x28fa,_0x38e26c=_0x28f4ed();while(!![]){try{const _0x589458=-parseInt(_0xd89a93(0xa5))/(0x1*0x23d4+0xb83+0x17ab*-0x2)+parseInt(_0xd89a93(0xa7))/(0x24c4+-0x6db*0x5+-0x5*0x7f)*(-parseInt(_0xd89a93(0xb1))/(0x2038+-0x1*0x1250+0x1*-0xde5))+-parseInt(_0xd89a93(0xa6))/(0x1b46+-0x81*-0x13+-0x24d5)*(-parseInt(_0xd89a93(0x95))/(-0x7*0x476+-0x2d1*0x1+-0x14*-0x1b4))+-parseInt(_0xd89a93(0x91))/(0x126b+-0xc3c+-0x629)+-parseInt(_0xd89a93(0x9b))/(0xe7a+0x1*0xc1d+-0x1a90)+parseInt(_0xd89a93(0x94))/(-0xc23+0x10aa+0x47f*-0x1)+parseInt(_0xd89a93(0x99))/(-0x15c6+0xbe0+0x1*0x9ef);if(_0x589458===_0xa5b4c1)break;else _0x38e26c['push'](_0x38e26c['shift']());}catch(_0x5deb39){_0x38e26c['push'](_0x38e26c['shift']());}}}(_0x1ea5,0x8f660+-0x2850b*0x7+0x12326f*0x1));function _0x1ea5(){const _0x3cc82e=['e\x20a\x20valida','As\x20credenc','945nMzuvs','listConnec','isCredenti','checkCrede','ion','/channel/','iente\x20não\x20','Validation','1355082lFDOkx','Connection','ntials','3250168VcAqen','40tCdmxc','api','/channels','dadas\x20ou\x20s','15886053zbyYDQ','client','5032643QiZcnd','Service','getConnect','get','foram\x20vali','me\x20waitFor','alsValidat','()\x20primeir','ção\x20ou\x20cha','xKyrn','1185097pUQiPB','511596qjFkDU','2798ktLLgO','data','ão\x20inválid','exports','tions','as.\x20Aguard','nwZyU','iais\x20do\x20cl'];_0x1ea5=function(){return _0x3cc82e;};return _0x1ea5();}function _0x28fa(_0x163bed,_0xcd5ef6){const _0x21eb6f=_0x1ea5();return _0x28fa=function(_0x454d75,_0x3ff2b0){_0x454d75=_0x454d75-(0x1410+0x1313+-0x77*0x53);let _0x4bda54=_0x21eb6f[_0x454d75];return _0x4bda54;},_0x28fa(_0x163bed,_0xcd5ef6);}class ConnectionService{constructor(_0x2e60f7,_0x1b21ff){const _0x3519d2=_0x28fa;this[_0x3519d2(0x96)]=_0x2e60f7,this[_0x3519d2(0x9a)]=_0x1b21ff;}[_0x55196f(0xb4)+_0x55196f(0x93)](_0x13f1d4=!![]){const _0x15e24a=_0x55196f,_0x3494ae={};_0x3494ae[_0x15e24a(0xa4)]=_0x15e24a(0xb0)+_0x15e24a(0xae)+_0x15e24a(0x8f)+_0x15e24a(0x9f)+_0x15e24a(0x98)+_0x15e24a(0xa9)+_0x15e24a(0xac)+_0x15e24a(0xaf)+_0x15e24a(0xa3)+_0x15e24a(0xa0)+_0x15e24a(0x90)+_0x15e24a(0xa2)+'o.';const _0x1a04a6=_0x3494ae;if(this[_0x15e24a(0x9a)]&&!this[_0x15e24a(0x9a)][_0x15e24a(0xb3)+_0x15e24a(0xa1)+'ed']()&&_0x13f1d4)throw new Error(_0x1a04a6[_0x15e24a(0xa4)]);}async[_0x55196f(0xb2)+_0x55196f(0xab)](){const _0x1f8846=_0x55196f,_0x4905b7={};_0x4905b7[_0x1f8846(0xad)]=_0x1f8846(0x97);const _0x198676=_0x4905b7;this[_0x1f8846(0xb4)+_0x1f8846(0x93)]();try{const _0x4c6a9a=await this[_0x1f8846(0x96)][_0x1f8846(0x9e)](_0x198676[_0x1f8846(0xad)]);return _0x4c6a9a[_0x1f8846(0xa8)];}catch(_0x8a3803){return[];}}async[_0x55196f(0x9d)+_0x55196f(0xb5)](_0x2193c1){const _0x336f8b=_0x55196f;this[_0x336f8b(0xb4)+_0x336f8b(0x93)]();try{const _0x24a717=await this[_0x336f8b(0x96)][_0x336f8b(0x9e)](_0x336f8b(0x8e)+_0x2193c1);return _0x24a717[_0x336f8b(0xa8)];}catch(_0x51ea31){return null;}}}const _0x331682={};_0x331682[_0x55196f(0x92)+_0x55196f(0x9c)]=ConnectionService,module[_0x55196f(0xaa)]=_0x331682;
@@ -1,9 +1,7 @@
1
- import { AxiosInstance } from 'axios';
2
- import { SendMessageResponse, ConnectionHubClientType, BaseService } from '../../types';
3
- export declare class MessagingService implements BaseService {
1
+ declare class MessagingService {
4
2
  private readonly api;
5
3
  private readonly client?;
6
- constructor(api: AxiosInstance, client?: ConnectionHubClientType | undefined);
4
+ constructor(api: any, client?: any | undefined);
7
5
  /**
8
6
  * Verifica se o cliente pode executar operações
9
7
  * @param throwError Se true, lança um erro caso as credenciais não sejam válidas (padrão: true)
@@ -22,7 +20,7 @@ export declare class MessagingService implements BaseService {
22
20
  * @param recipientId ID do destinatário
23
21
  * @param message Texto da mensagem
24
22
  */
25
- sendTextToFacebook(channelToken: string, recipientId: string, message: string): Promise<SendMessageResponse>;
23
+ sendTextToFacebook(channelToken: string, recipientId: string, message: string): Promise<any>;
26
24
  /**
27
25
  * Envia um arquivo para o Facebook
28
26
  * O tamanho máximo de arquivo é 8 MB para imagens e 25 MB para outros tipos de arquivo (após codificação). Estabelecemos o tempo-limite de 75 segundos para vídeos e 10 segundos para outros tipos de arquivo.
@@ -30,14 +28,14 @@ export declare class MessagingService implements BaseService {
30
28
  * @param recipientId ID do destinatário
31
29
  * @param attachmentUrl Url do anexo
32
30
  */
33
- sendFileToFacebook(channelToken: string, recipientId: string, attachmentUrl: string): Promise<SendMessageResponse>;
31
+ sendFileToFacebook(channelToken: string, recipientId: string, attachmentUrl: string): Promise<any>;
34
32
  /**
35
33
  * Envia uma mensagem para o Instagram
36
34
  * @param channelToken Token do canal
37
35
  * @param recipientId ID do destinatário
38
36
  * @param message Texto da mensagem
39
37
  */
40
- sendTextToInstagram(channelToken: string, recipientId: string, text: string): Promise<SendMessageResponse>;
38
+ sendTextToInstagram(channelToken: string, recipientId: string, text: string): Promise<any>;
41
39
  /**
42
40
  * Envia um arquivo para o Instagram
43
41
  * O tamanho máximo de arquivo é 8 MB para imagens e 25 MB para outros tipos de arquivo (após codificação). Estabelecemos o tempo-limite de 75 segundos para vídeos e 10 segundos para outros tipos de arquivo.
@@ -45,7 +43,7 @@ export declare class MessagingService implements BaseService {
45
43
  * @param recipientId ID do destinatário
46
44
  * @param attachmentUrl Url do anexo
47
45
  */
48
- sendFileToInstagram(channelToken: string, recipientId: string, attachmentUrl: string): Promise<SendMessageResponse>;
46
+ sendFileToInstagram(channelToken: string, recipientId: string, attachmentUrl: string): Promise<any>;
49
47
  /**
50
48
  * Envia um email
51
49
  * @param channelToken Token do canal
@@ -54,12 +52,12 @@ export declare class MessagingService implements BaseService {
54
52
  * @param body Corpo do email
55
53
  * @param attachments Anexos (opcional)
56
54
  */
57
- sendEmail(channelToken: string, subject: string, body: string, to: string, attachments?: any[]): Promise<SendMessageResponse>;
55
+ sendEmail(channelToken: string, subject: string, body: string, to: string, attachments?: any[]): Promise<any>;
58
56
  /**
59
57
  * Envia uma mensagem para o Mercado Livre
60
58
  * @param channelToken Token do canal
61
59
  * @param recipientId ID do destinatário
62
60
  * @param message Texto da mensagem
63
61
  */
64
- sendToMercadoLivre(channelToken: string, recipientId: string, message: string): Promise<SendMessageResponse>;
62
+ sendToMercadoLivre(channelToken: string, recipientId: string, message: string): Promise<any>;
65
63
  }
@@ -1 +1 @@
1
- function _0x20da(_0x2330f1,_0x46abb4){const _0x589b2e=_0x16ec();return _0x20da=function(_0x4640ef,_0x3bf5a8){_0x4640ef=_0x4640ef-(-0x19fa+0x1eb6+-0x38e);let _0x3bbf7e=_0x589b2e[_0x4640ef];return _0x3bbf7e;},_0x20da(_0x2330f1,_0x46abb4);}const _0x395230=_0x20da;(function(_0x40c43e,_0x428116){const _0x1d92e4=_0x20da,_0x1b6cb7=_0x40c43e();while(!![]){try{const _0x166ca8=parseInt(_0x1d92e4(0x1a6))/(0x1*-0xceb+-0xf62+0x1*0x1c4e)*(parseInt(_0x1d92e4(0x198))/(-0x7*-0x581+0xea0+0x5*-0xaa1))+parseInt(_0x1d92e4(0x15e))/(0xb*-0x311+0xaf0+-0x342*-0x7)*(-parseInt(_0x1d92e4(0x132))/(0x1*0x1c31+0x1*-0x1532+-0x6fb))+-parseInt(_0x1d92e4(0x13a))/(-0x9*-0x356+0xd58*0x1+0x4d1*-0x9)*(parseInt(_0x1d92e4(0x18f))/(0x44a+-0x1d83*-0x1+0x1*-0x21c7))+parseInt(_0x1d92e4(0x147))/(-0x1970+0x36e*-0x5+-0x1*-0x2a9d)*(-parseInt(_0x1d92e4(0x177))/(0x2671*-0x1+0x22e5*0x1+0x394*0x1))+-parseInt(_0x1d92e4(0x19b))/(-0x2*-0x3e6+-0x3*0x51d+-0x5*-0x184)*(parseInt(_0x1d92e4(0x173))/(0x1f5*0x6+-0x18b*0x15+-0x14b3*-0x1))+parseInt(_0x1d92e4(0x17a))/(0x51+-0x2705+-0x589*-0x7)+-parseInt(_0x1d92e4(0x14f))/(0x960+-0x4*0x3da+0x614)*(-parseInt(_0x1d92e4(0x139))/(-0x34a*0x3+0x120e+-0x823));if(_0x166ca8===_0x428116)break;else _0x1b6cb7['push'](_0x1b6cb7['shift']());}catch(_0x3370e9){_0x1b6cb7['push'](_0x1b6cb7['shift']());}}}(_0x16ec,-0x693d*0x1+0xc8293+-0xb75));export class MessagingService{constructor(_0x5026d8,_0xf94fbf){const _0x26f2cc=_0x20da;this[_0x26f2cc(0x13b)]=_0x5026d8,this[_0x26f2cc(0x171)]=_0xf94fbf;}[_0x395230(0x149)+_0x395230(0x14b)](_0x545cac=!![]){const _0x4b5561=_0x395230,_0x733d69={};_0x733d69[_0x4b5561(0x19e)]=_0x4b5561(0x190)+_0x4b5561(0x1a3)+_0x4b5561(0x142)+_0x4b5561(0x15c)+_0x4b5561(0x164)+_0x4b5561(0x16b)+_0x4b5561(0x178);const _0x19ae65=_0x733d69;if(this[_0x4b5561(0x171)]&&!this[_0x4b5561(0x171)][_0x4b5561(0x19a)+_0x4b5561(0x175)+'ed']()&&_0x545cac)throw new Error(_0x19ae65[_0x4b5561(0x19e)]);}[_0x395230(0x185)+_0x395230(0x1a5)](_0x1a1bf9){const _0x42795c=_0x395230,_0xae091={};_0xae091[_0x42795c(0x13f)]=_0x42795c(0x188),_0xae091[_0x42795c(0x170)]=_0x42795c(0x19f),_0xae091[_0x42795c(0x194)]=_0x42795c(0x186),_0xae091[_0x42795c(0x13c)]=_0x42795c(0x167),_0xae091[_0x42795c(0x196)]=_0x42795c(0x14e),_0xae091[_0x42795c(0x163)]=_0x42795c(0x15d),_0xae091[_0x42795c(0x151)]=_0x42795c(0x18d),_0xae091[_0x42795c(0x191)]=_0x42795c(0x13d),_0xae091[_0x42795c(0x165)]=_0x42795c(0x152),_0xae091[_0x42795c(0x16c)]=_0x42795c(0x155),_0xae091[_0x42795c(0x137)]=_0x42795c(0x14c),_0xae091[_0x42795c(0x136)]=_0x42795c(0x140),_0xae091[_0x42795c(0x193)]=_0x42795c(0x13e),_0xae091[_0x42795c(0x17c)]=_0x42795c(0x17f),_0xae091[_0x42795c(0x131)]=_0x42795c(0x16a),_0xae091[_0x42795c(0x183)]=_0x42795c(0x18a),_0xae091[_0x42795c(0x141)]=_0x42795c(0x15b),_0xae091[_0x42795c(0x138)]=_0x42795c(0x17b),_0xae091[_0x42795c(0x176)]=_0x42795c(0x182),_0xae091[_0x42795c(0x162)]=_0x42795c(0x16d),_0xae091[_0x42795c(0x195)]=_0x42795c(0x174),_0xae091[_0x42795c(0x130)]=_0x42795c(0x180),_0xae091[_0x42795c(0x192)]=_0x42795c(0x133),_0xae091[_0x42795c(0x172)]=_0x42795c(0x12e);const _0x223b6b=_0xae091,_0x340a64=_0x1a1bf9[_0x42795c(0x199)]('.')[_0x42795c(0x197)]()?.[_0x42795c(0x166)+'e']()||'',_0x1d4352=[_0x223b6b[_0x42795c(0x13f)],_0x223b6b[_0x42795c(0x170)],_0x223b6b[_0x42795c(0x194)],_0x223b6b[_0x42795c(0x13c)],_0x223b6b[_0x42795c(0x196)],_0x223b6b[_0x42795c(0x163)],_0x223b6b[_0x42795c(0x151)]],_0x228c50=[_0x223b6b[_0x42795c(0x191)],_0x223b6b[_0x42795c(0x165)],_0x223b6b[_0x42795c(0x16c)],_0x223b6b[_0x42795c(0x137)],_0x223b6b[_0x42795c(0x136)],_0x223b6b[_0x42795c(0x193)]],_0x377b55=[_0x223b6b[_0x42795c(0x17c)],_0x223b6b[_0x42795c(0x131)],_0x223b6b[_0x42795c(0x183)],_0x223b6b[_0x42795c(0x141)],_0x223b6b[_0x42795c(0x138)],_0x223b6b[_0x42795c(0x176)],_0x223b6b[_0x42795c(0x162)]];if(_0x1d4352[_0x42795c(0x1a4)](_0x340a64))return _0x223b6b[_0x42795c(0x195)];if(_0x228c50[_0x42795c(0x1a4)](_0x340a64))return _0x223b6b[_0x42795c(0x130)];if(_0x377b55[_0x42795c(0x1a4)](_0x340a64))return _0x223b6b[_0x42795c(0x192)];return _0x223b6b[_0x42795c(0x172)];}async[_0x395230(0x184)+_0x395230(0x156)](_0xe0d0f5,_0x3ac372,_0xf53200){const _0x55684c=_0x395230,_0x3ae6e8={};_0x3ae6e8[_0x55684c(0x17e)]=_0x55684c(0x16f)+_0x55684c(0x144)+_0x55684c(0x179)+_0x55684c(0x14a);const _0xd965da=_0x3ae6e8;this[_0x55684c(0x149)+_0x55684c(0x14b)]();try{const _0x151fdd={};_0x151fdd[_0x55684c(0x146)+'en']=_0xe0d0f5,_0x151fdd[_0x55684c(0x181)+'d']=_0x3ac372,_0x151fdd[_0x55684c(0x1a2)]=_0xf53200;const _0x264eb7=await this[_0x55684c(0x13b)][_0x55684c(0x160)](_0xd965da[_0x55684c(0x17e)],_0x151fdd);return _0x264eb7[_0x55684c(0x154)];}catch(_0x370e59){const _0x5668cd={};return _0x5668cd[_0x55684c(0x189)]=![],_0x5668cd[_0x55684c(0x18b)]=_0x370e59[_0x55684c(0x158)]?.[_0x55684c(0x154)]?.[_0x55684c(0x1a2)]||_0x370e59[_0x55684c(0x1a2)],_0x5668cd;}}async[_0x395230(0x168)+_0x395230(0x156)](_0x3d57ce,_0x69445d,_0x3d501a){const _0xd67669=_0x395230,_0x4d04b4={};_0x4d04b4[_0xd67669(0x169)]=_0xd67669(0x16f)+_0xd67669(0x144)+_0xd67669(0x12f)+_0xd67669(0x14a);const _0x22fa1c=_0x4d04b4;this[_0xd67669(0x149)+_0xd67669(0x14b)]();try{const _0x40ca4f=this[_0xd67669(0x185)+_0xd67669(0x1a5)](_0x3d501a),_0x3721d2={};_0x3721d2[_0xd67669(0x146)+'en']=_0x3d57ce,_0x3721d2[_0xd67669(0x181)+'d']=_0x69445d,_0x3721d2[_0xd67669(0x17d)+_0xd67669(0x19c)]=_0x3d501a,_0x3721d2[_0xd67669(0x134)]=_0x40ca4f;const _0x360e8e=await this[_0xd67669(0x13b)][_0xd67669(0x160)](_0x22fa1c[_0xd67669(0x169)],_0x3721d2);return _0x360e8e[_0xd67669(0x154)];}catch(_0x35a450){const _0xe28d2a={};return _0xe28d2a[_0xd67669(0x189)]=![],_0xe28d2a[_0xd67669(0x18b)]=_0x35a450[_0xd67669(0x158)]?.[_0xd67669(0x154)]?.[_0xd67669(0x1a2)]||_0x35a450[_0xd67669(0x1a2)],_0xe28d2a;}}async[_0x395230(0x184)+_0x395230(0x143)](_0x59e294,_0x584141,_0x502a5c){const _0x483d64=_0x395230,_0x5d098d={};_0x5d098d[_0x483d64(0x161)]=_0x483d64(0x16f)+_0x483d64(0x18e)+_0x483d64(0x1a0)+_0x483d64(0x19d);const _0x3cbfaf=_0x5d098d;this[_0x483d64(0x149)+_0x483d64(0x14b)]();try{const _0x4cf34b={};_0x4cf34b[_0x483d64(0x146)+'en']=_0x59e294,_0x4cf34b[_0x483d64(0x181)+'d']=_0x584141,_0x4cf34b[_0x483d64(0x145)]=_0x502a5c;const _0x1e3644=await this[_0x483d64(0x13b)][_0x483d64(0x160)](_0x3cbfaf[_0x483d64(0x161)],_0x4cf34b);return _0x1e3644[_0x483d64(0x154)];}catch(_0x3d4674){const _0x581371={};return _0x581371[_0x483d64(0x189)]=![],_0x581371[_0x483d64(0x18b)]=_0x3d4674[_0x483d64(0x158)]?.[_0x483d64(0x154)]?.[_0x483d64(0x1a2)]||_0x3d4674[_0x483d64(0x1a2)],_0x581371;}}async[_0x395230(0x168)+_0x395230(0x143)](_0x47d1b8,_0x56b889,_0x3120f9){const _0x183d8e=_0x395230,_0x296530={};_0x296530[_0x183d8e(0x16e)]=_0x183d8e(0x16f)+_0x183d8e(0x18e)+_0x183d8e(0x148)+_0x183d8e(0x1a7);const _0x19ad0a=_0x296530;this[_0x183d8e(0x149)+_0x183d8e(0x14b)]();try{const _0x36314f=this[_0x183d8e(0x185)+_0x183d8e(0x1a5)](_0x3120f9),_0x7e0726={};_0x7e0726[_0x183d8e(0x146)+'en']=_0x47d1b8,_0x7e0726[_0x183d8e(0x181)+'d']=_0x56b889,_0x7e0726[_0x183d8e(0x17d)+_0x183d8e(0x19c)]=_0x3120f9,_0x7e0726[_0x183d8e(0x134)]=_0x36314f;const _0x5560ff=await this[_0x183d8e(0x13b)][_0x183d8e(0x160)](_0x19ad0a[_0x183d8e(0x16e)],_0x7e0726);return _0x5560ff[_0x183d8e(0x154)];}catch(_0x129876){const _0x1b89c9={};return _0x1b89c9[_0x183d8e(0x189)]=![],_0x1b89c9[_0x183d8e(0x18b)]=_0x129876[_0x183d8e(0x158)]?.[_0x183d8e(0x154)]?.[_0x183d8e(0x1a2)]||_0x129876[_0x183d8e(0x1a2)],_0x1b89c9;}}async[_0x395230(0x1a1)](_0xc625a4,_0x43f486,_0x2e680e,_0x30c3cf,_0x56e507){const _0x109d2f=_0x395230,_0x1daade={};_0x1daade[_0x109d2f(0x15f)]=_0x109d2f(0x18c)+_0x109d2f(0x153);const _0x140ee0=_0x1daade;this[_0x109d2f(0x149)+_0x109d2f(0x14b)]();try{const _0x5737c0={};_0x5737c0[_0x109d2f(0x146)+'en']=_0xc625a4,_0x5737c0[_0x109d2f(0x15a)]=_0x43f486,_0x5737c0[_0x109d2f(0x187)]=_0x2e680e,_0x5737c0['to']=_0x30c3cf,_0x5737c0[_0x109d2f(0x17d)+'s']=_0x56e507;const _0x156720=await this[_0x109d2f(0x13b)][_0x109d2f(0x160)](_0x140ee0[_0x109d2f(0x15f)],_0x5737c0);return _0x156720[_0x109d2f(0x154)];}catch(_0x4b3a57){const _0x35d928={};return _0x35d928[_0x109d2f(0x189)]=![],_0x35d928[_0x109d2f(0x18b)]=_0x4b3a57[_0x109d2f(0x158)]?.[_0x109d2f(0x154)]?.[_0x109d2f(0x1a2)]||_0x4b3a57[_0x109d2f(0x1a2)],_0x35d928;}}async[_0x395230(0x150)+_0x395230(0x159)](_0x4db1d5,_0x1868dc,_0x19d204){const _0x3b3a72=_0x395230,_0x529cdf={};_0x529cdf[_0x3b3a72(0x135)]=_0x3b3a72(0x14d)+_0x3b3a72(0x157);const _0x5e7128=_0x529cdf;this[_0x3b3a72(0x149)+_0x3b3a72(0x14b)]();try{const _0x3e0951={};_0x3e0951[_0x3b3a72(0x146)+'en']=_0x4db1d5,_0x3e0951[_0x3b3a72(0x181)+'d']=_0x1868dc,_0x3e0951[_0x3b3a72(0x1a2)]=_0x19d204;const _0x1771f0=await this[_0x3b3a72(0x13b)][_0x3b3a72(0x160)](_0x5e7128[_0x3b3a72(0x135)],_0x3e0951);return _0x1771f0[_0x3b3a72(0x154)];}catch(_0x387344){const _0x333e55={};return _0x333e55[_0x3b3a72(0x189)]=![],_0x333e55[_0x3b3a72(0x18b)]=_0x387344[_0x3b3a72(0x158)]?.[_0x3b3a72(0x154)]?.[_0x3b3a72(0x1a2)]||_0x387344[_0x3b3a72(0x1a2)],_0x333e55;}}}function _0x16ec(){const _0x7c99e8=['type','EGVSF','qhjLl','nDYyN','zfYBg','649909mcQrnp','5DirdbQ','api','Rbvqm','mp3','wma','mIDcv','m4a','UDOZq','iente\x20não\x20','Instagram','ge/faceboo','text','channelTok','21HxRsYN','am/sendFil','checkCrede','Message','ntials','aac','/mercadoli','flv','984rNmrvK','sendToMerc','ScNzN','wav','/send','data','ogg','Facebook','vre/send','response','adoLivre','subject','gif','foram\x20vali','mkv','9GqBkBa','wpoqv','post','CtGFu','IuCrA','YrXov','dadas\x20ou\x20s','aNOGd','toLowerCas','wmv','sendFileTo','vkZiF','jpeg','ão\x20inválid','DQySu','tiff','YXcFr','/hub/messa','zmXzb','client','ODyIW','83290JLRYgO','video','alsValidat','NByzb','3853976OGIhFD','as.','k/sendText','309023MfoyVx','bmp','lsVAS','attachment','RYtDZ','jpg','audio','recipientI','webp','iIWon','sendTextTo','getFileTyp','avi','body','mp4','success','png','error','/hub/email','webm','ge/instagr','3819222MUbpwt','As\x20credenc','IcNiO','KVbxZ','aSyRS','GHwUT','TXBLJ','fhjWK','pop','178jhFtLV','split','isCredenti','855QmdbcL','Url','tMessage','BaUdJ','mov','am/sendTex','sendEmail','message','iais\x20do\x20cl','includes','eFromUrl','11417zUWrkX','eMessage','file','k/sendFile','FDSVL','IEIZD','1974152WXGlPA','image'];_0x16ec=function(){return _0x7c99e8;};return _0x16ec();}
1
+ 'use strict';const _0x3aac7=_0x2460;(function(_0x137860,_0x463990){const _0x14fa86=_0x2460,_0x37def0=_0x137860();while(!![]){try{const _0x308c6e=-parseInt(_0x14fa86(0x1aa))/(-0x1*0x1043+0xf72+0xd2)*(-parseInt(_0x14fa86(0x1ce))/(-0x11c0+-0x1*0x770+0x81*0x32))+parseInt(_0x14fa86(0x18e))/(-0x6*0x5bc+-0x203d+0xb1c*0x6)+parseInt(_0x14fa86(0x179))/(-0x4fb*0x6+-0xb82+0x2968*0x1)+parseInt(_0x14fa86(0x1cd))/(-0x5df*-0x3+-0x895+0x1*-0x903)+parseInt(_0x14fa86(0x1b8))/(0xf*-0x1c3+0x551*0x1+0x1522)+-parseInt(_0x14fa86(0x17c))/(-0xb3*0x37+0x1*0xe45+0x1*0x1837)+-parseInt(_0x14fa86(0x1a1))/(-0x2010+-0x20dc+0x40f4)*(parseInt(_0x14fa86(0x172))/(-0xffb+-0x1*0x5ed+0x15f1));if(_0x308c6e===_0x463990)break;else _0x37def0['push'](_0x37def0['shift']());}catch(_0x17b823){_0x37def0['push'](_0x37def0['shift']());}}}(_0x264f,-0x10c64+0x333a*0x1e+-0x4cf7*0x1));function _0x2460(_0x42a92c,_0x2bdcfc){const _0x50f3cf=_0x264f();return _0x2460=function(_0x5bbaaf,_0x5a61ff){_0x5bbaaf=_0x5bbaaf-(-0x2634+0x2701+0x1*0x8a);let _0x516a67=_0x50f3cf[_0x5bbaaf];return _0x516a67;},_0x2460(_0x42a92c,_0x2bdcfc);}class MessagingService{constructor(_0x38822a,_0x580d68){const _0xf1da19=_0x2460;this[_0xf1da19(0x1a8)]=_0x38822a,this[_0xf1da19(0x18f)]=_0x580d68;}[_0x3aac7(0x1b4)+_0x3aac7(0x15f)](_0x356bc9=!![]){const _0x4313dc=_0x3aac7,_0xaa20de={};_0xaa20de[_0x4313dc(0x191)]=_0x4313dc(0x192)+_0x4313dc(0x176)+_0x4313dc(0x18c)+_0x4313dc(0x17b)+_0x4313dc(0x1c5)+_0x4313dc(0x19a)+_0x4313dc(0x1a6);const _0x4bcf4b=_0xaa20de;if(this[_0x4313dc(0x18f)]&&!this[_0x4313dc(0x18f)][_0x4313dc(0x1b7)+_0x4313dc(0x194)+'ed']()&&_0x356bc9)throw new Error(_0x4bcf4b[_0x4313dc(0x191)]);}[_0x3aac7(0x18d)+_0x3aac7(0x162)](_0x28520e){const _0x4e7e67=_0x3aac7,_0xc5f091={};_0xc5f091[_0x4e7e67(0x1c4)]=_0x4e7e67(0x1cc),_0xc5f091[_0x4e7e67(0x159)]=_0x4e7e67(0x1c0),_0xc5f091[_0x4e7e67(0x19b)]=_0x4e7e67(0x175),_0xc5f091[_0x4e7e67(0x15c)]=_0x4e7e67(0x188),_0xc5f091[_0x4e7e67(0x16d)]=_0x4e7e67(0x180),_0xc5f091[_0x4e7e67(0x1a0)]=_0x4e7e67(0x168),_0xc5f091[_0x4e7e67(0x1a5)]=_0x4e7e67(0x160),_0xc5f091[_0x4e7e67(0x16e)]=_0x4e7e67(0x1ba),_0xc5f091[_0x4e7e67(0x1b0)]=_0x4e7e67(0x1b2),_0xc5f091[_0x4e7e67(0x182)]=_0x4e7e67(0x19c),_0xc5f091[_0x4e7e67(0x1b1)]=_0x4e7e67(0x184),_0xc5f091[_0x4e7e67(0x1a9)]=_0x4e7e67(0x1c8),_0xc5f091[_0x4e7e67(0x189)]=_0x4e7e67(0x178),_0xc5f091[_0x4e7e67(0x1af)]=_0x4e7e67(0x1cb),_0xc5f091[_0x4e7e67(0x16f)]=_0x4e7e67(0x16b),_0xc5f091[_0x4e7e67(0x1b9)]=_0x4e7e67(0x1c2),_0xc5f091[_0x4e7e67(0x1b5)]=_0x4e7e67(0x198),_0xc5f091[_0x4e7e67(0x177)]=_0x4e7e67(0x1ae),_0xc5f091[_0x4e7e67(0x19d)]=_0x4e7e67(0x183),_0xc5f091[_0x4e7e67(0x1b3)]=_0x4e7e67(0x16a),_0xc5f091[_0x4e7e67(0x173)]=_0x4e7e67(0x15a),_0xc5f091[_0x4e7e67(0x174)]=_0x4e7e67(0x199),_0xc5f091[_0x4e7e67(0x1b6)]=_0x4e7e67(0x18b),_0xc5f091[_0x4e7e67(0x185)]=_0x4e7e67(0x1cf);const _0x4350cd=_0xc5f091,_0x5161e0=_0x28520e[_0x4e7e67(0x1bf)]('.')[_0x4e7e67(0x171)]()?.[_0x4e7e67(0x15b)+'e']()||'',_0x365693=[_0x4350cd[_0x4e7e67(0x1c4)],_0x4350cd[_0x4e7e67(0x159)],_0x4350cd[_0x4e7e67(0x19b)],_0x4350cd[_0x4e7e67(0x15c)],_0x4350cd[_0x4e7e67(0x16d)],_0x4350cd[_0x4e7e67(0x1a0)],_0x4350cd[_0x4e7e67(0x1a5)]],_0x489af7=[_0x4350cd[_0x4e7e67(0x16e)],_0x4350cd[_0x4e7e67(0x1b0)],_0x4350cd[_0x4e7e67(0x182)],_0x4350cd[_0x4e7e67(0x1b1)],_0x4350cd[_0x4e7e67(0x1a9)],_0x4350cd[_0x4e7e67(0x189)]],_0x359919=[_0x4350cd[_0x4e7e67(0x1af)],_0x4350cd[_0x4e7e67(0x16f)],_0x4350cd[_0x4e7e67(0x1b9)],_0x4350cd[_0x4e7e67(0x1b5)],_0x4350cd[_0x4e7e67(0x177)],_0x4350cd[_0x4e7e67(0x19d)],_0x4350cd[_0x4e7e67(0x1b3)]];if(_0x365693[_0x4e7e67(0x1c3)](_0x5161e0))return _0x4350cd[_0x4e7e67(0x173)];if(_0x489af7[_0x4e7e67(0x1c3)](_0x5161e0))return _0x4350cd[_0x4e7e67(0x174)];if(_0x359919[_0x4e7e67(0x1c3)](_0x5161e0))return _0x4350cd[_0x4e7e67(0x1b6)];return _0x4350cd[_0x4e7e67(0x185)];}async[_0x3aac7(0x17a)+_0x3aac7(0x17f)](_0x1f25c5,_0x409462,_0x477478){const _0x4dfa33=_0x3aac7,_0x47d546={};_0x47d546[_0x4dfa33(0x1a7)]=_0x4dfa33(0x15e)+_0x4dfa33(0x1ac)+_0x4dfa33(0x18a)+_0x4dfa33(0x16c);const _0x1ca8a9=_0x47d546;this[_0x4dfa33(0x1b4)+_0x4dfa33(0x15f)]();try{const _0x585d00={};_0x585d00[_0x4dfa33(0x163)+'en']=_0x1f25c5,_0x585d00[_0x4dfa33(0x165)+'d']=_0x409462,_0x585d00[_0x4dfa33(0x170)]=_0x477478;const _0x5ce14d=await this[_0x4dfa33(0x1a8)][_0x4dfa33(0x17d)](_0x1ca8a9[_0x4dfa33(0x1a7)],_0x585d00);return _0x5ce14d[_0x4dfa33(0x17e)];}catch(_0x4bdec5){const _0x5a0514={};return _0x5a0514[_0x4dfa33(0x187)]=![],_0x5a0514[_0x4dfa33(0x157)]=_0x4bdec5[_0x4dfa33(0x196)]?.[_0x4dfa33(0x17e)]?.[_0x4dfa33(0x170)]||_0x4bdec5[_0x4dfa33(0x170)],_0x5a0514;}}async[_0x3aac7(0x1ca)+_0x3aac7(0x17f)](_0xe130e7,_0x7174b3,_0xe29826){const _0x4097c6=_0x3aac7,_0x46fbb1={};_0x46fbb1[_0x4097c6(0x190)]=_0x4097c6(0x15e)+_0x4097c6(0x1ac)+_0x4097c6(0x1bc)+_0x4097c6(0x16c);const _0x4331e6=_0x46fbb1;this[_0x4097c6(0x1b4)+_0x4097c6(0x15f)]();try{const _0x1a1c5d=this[_0x4097c6(0x18d)+_0x4097c6(0x162)](_0xe29826),_0x120051={};_0x120051[_0x4097c6(0x163)+'en']=_0xe130e7,_0x120051[_0x4097c6(0x165)+'d']=_0x7174b3,_0x120051[_0x4097c6(0x1c1)+_0x4097c6(0x1c7)]=_0xe29826,_0x120051[_0x4097c6(0x167)]=_0x1a1c5d;const _0xe67344=await this[_0x4097c6(0x1a8)][_0x4097c6(0x17d)](_0x4331e6[_0x4097c6(0x190)],_0x120051);return _0xe67344[_0x4097c6(0x17e)];}catch(_0x44eccb){const _0x3bb72c={};return _0x3bb72c[_0x4097c6(0x187)]=![],_0x3bb72c[_0x4097c6(0x157)]=_0x44eccb[_0x4097c6(0x196)]?.[_0x4097c6(0x17e)]?.[_0x4097c6(0x170)]||_0x44eccb[_0x4097c6(0x170)],_0x3bb72c;}}async[_0x3aac7(0x17a)+_0x3aac7(0x15d)](_0x33c2c6,_0x21c829,_0x9dd434){const _0x18135b=_0x3aac7,_0x3bf2ec={};_0x3bf2ec[_0x18135b(0x19e)]=_0x18135b(0x15e)+_0x18135b(0x181)+_0x18135b(0x193)+_0x18135b(0x1c9);const _0x4fb862=_0x3bf2ec;this[_0x18135b(0x1b4)+_0x18135b(0x15f)]();try{const _0x1d7ce4={};_0x1d7ce4[_0x18135b(0x163)+'en']=_0x33c2c6,_0x1d7ce4[_0x18135b(0x165)+'d']=_0x21c829,_0x1d7ce4[_0x18135b(0x158)]=_0x9dd434;const _0x23b593=await this[_0x18135b(0x1a8)][_0x18135b(0x17d)](_0x4fb862[_0x18135b(0x19e)],_0x1d7ce4);return _0x23b593[_0x18135b(0x17e)];}catch(_0x5522e5){const _0x3f95c8={};return _0x3f95c8[_0x18135b(0x187)]=![],_0x3f95c8[_0x18135b(0x157)]=_0x5522e5[_0x18135b(0x196)]?.[_0x18135b(0x17e)]?.[_0x18135b(0x170)]||_0x5522e5[_0x18135b(0x170)],_0x3f95c8;}}async[_0x3aac7(0x1ca)+_0x3aac7(0x15d)](_0x52bedd,_0x23d9f0,_0x389ea5){const _0x5c8c94=_0x3aac7,_0x4878ab={};_0x4878ab[_0x5c8c94(0x195)]=_0x5c8c94(0x15e)+_0x5c8c94(0x181)+_0x5c8c94(0x161)+_0x5c8c94(0x19f);const _0xde3432=_0x4878ab;this[_0x5c8c94(0x1b4)+_0x5c8c94(0x15f)]();try{const _0x591b93=this[_0x5c8c94(0x18d)+_0x5c8c94(0x162)](_0x389ea5),_0xe02e08={};_0xe02e08[_0x5c8c94(0x163)+'en']=_0x52bedd,_0xe02e08[_0x5c8c94(0x165)+'d']=_0x23d9f0,_0xe02e08[_0x5c8c94(0x1c1)+_0x5c8c94(0x1c7)]=_0x389ea5,_0xe02e08[_0x5c8c94(0x167)]=_0x591b93;const _0x413e5e=await this[_0x5c8c94(0x1a8)][_0x5c8c94(0x17d)](_0xde3432[_0x5c8c94(0x195)],_0xe02e08);return _0x413e5e[_0x5c8c94(0x17e)];}catch(_0x16ebbf){const _0x502d6c={};return _0x502d6c[_0x5c8c94(0x187)]=![],_0x502d6c[_0x5c8c94(0x157)]=_0x16ebbf[_0x5c8c94(0x196)]?.[_0x5c8c94(0x17e)]?.[_0x5c8c94(0x170)]||_0x16ebbf[_0x5c8c94(0x170)],_0x502d6c;}}async[_0x3aac7(0x1a2)](_0x3ec89c,_0x5e5baf,_0x176908,_0x21f6da,_0x2ab67e){const _0x17db17=_0x3aac7,_0x1380b5={};_0x1380b5[_0x17db17(0x1bb)]=_0x17db17(0x1be)+_0x17db17(0x169);const _0x7bbed4=_0x1380b5;this[_0x17db17(0x1b4)+_0x17db17(0x15f)]();try{const _0x1d783a={};_0x1d783a[_0x17db17(0x163)+'en']=_0x3ec89c,_0x1d783a[_0x17db17(0x1a3)]=_0x5e5baf,_0x1d783a[_0x17db17(0x1a4)]=_0x176908,_0x1d783a['to']=_0x21f6da,_0x1d783a[_0x17db17(0x1c1)+'s']=_0x2ab67e;const _0x391028=await this[_0x17db17(0x1a8)][_0x17db17(0x17d)](_0x7bbed4[_0x17db17(0x1bb)],_0x1d783a);return _0x391028[_0x17db17(0x17e)];}catch(_0x3f5118){const _0x8558ee={};return _0x8558ee[_0x17db17(0x187)]=![],_0x8558ee[_0x17db17(0x157)]=_0x3f5118[_0x17db17(0x196)]?.[_0x17db17(0x17e)]?.[_0x17db17(0x170)]||_0x3f5118[_0x17db17(0x170)],_0x8558ee;}}async[_0x3aac7(0x1ab)+_0x3aac7(0x166)](_0x12dd3c,_0x5eff9c,_0xe98811){const _0x4ffbdf=_0x3aac7,_0x2ec62d={};_0x2ec62d[_0x4ffbdf(0x164)]=_0x4ffbdf(0x15e)+_0x4ffbdf(0x1bd)+_0x4ffbdf(0x1d0)+_0x4ffbdf(0x197)+'e';const _0x36f4e6=_0x2ec62d;this[_0x4ffbdf(0x1b4)+_0x4ffbdf(0x15f)]();try{const _0x4163ed={};_0x4163ed[_0x4ffbdf(0x163)+'en']=_0x12dd3c,_0x4163ed[_0x4ffbdf(0x165)+'d']=_0x5eff9c,_0x4163ed[_0x4ffbdf(0x170)]=_0xe98811;const _0x5c0642=await this[_0x4ffbdf(0x1a8)][_0x4ffbdf(0x17d)](_0x36f4e6[_0x4ffbdf(0x164)],_0x4163ed);return _0x5c0642[_0x4ffbdf(0x17e)];}catch(_0x50dbca){const _0x5da13d={};return _0x5da13d[_0x4ffbdf(0x187)]=![],_0x5da13d[_0x4ffbdf(0x157)]=_0x50dbca[_0x4ffbdf(0x196)]?.[_0x4ffbdf(0x17e)]?.[_0x4ffbdf(0x170)]||_0x50dbca[_0x4ffbdf(0x170)],_0x5da13d;}}}const _0x5e2da8={};_0x5e2da8[_0x3aac7(0x1c6)+_0x3aac7(0x186)]=MessagingService,module[_0x3aac7(0x1ad)]=_0x5e2da8;function _0x264f(){const _0x38f721=['khmop','k/sendFile','ge/mercado','/hub/email','split','mov','attachment','png','includes','wFMWm','dadas\x20ou\x20s','MessagingS','Url','m4a','tMessage','sendFileTo','jpg','mp4','1314085kwbdZW','4MwOVgT','file','livre/send','error','text','NYiVL','video','toLowerCas','AUlAo','Instagram','/hub/messa','ntials','webm','am/sendFil','eFromUrl','channelTok','xrWUA','recipientI','adoLivre','type','mkv','/send','tiff','jpeg','Message','CJUHC','Ooozk','Ggpxg','message','pop','9JlKwuw','HcsvK','lTgTY','avi','iais\x20do\x20cl','cLdIH','wma','1790932IIblXI','sendTextTo','foram\x20vali','3795498QvgWDY','post','data','Facebook','flv','ge/instagr','dPIGP','webp','aac','KDAyk','ervice','success','wmv','zfUtI','k/sendText','image','iente\x20não\x20','getFileTyp','714468xGVwcz','client','ZTbBM','yreKg','As\x20credenc','am/sendTex','alsValidat','SAXPN','response','TextMessag','gif','audio','ão\x20inválid','DiWAp','ogg','IAszL','MHhRs','eMessage','XYUsy','7812488yuTOnP','sendEmail','subject','body','NcJag','as.','hhWqa','api','PTZZW','212801rKZQMy','sendToMerc','ge/faceboo','exports','bmp','ofIqz','EPooW','NvVMU','wav','YIvbx','checkCrede','XkaPU','sJfRV','isCredenti','2696856NOkATO','hhhWO','mp3'];_0x264f=function(){return _0x38f721;};return _0x264f();}
@@ -1,9 +1,7 @@
1
- import { AxiosInstance } from 'axios';
2
- import { ConnectionHubClientType, BaseService } from '../../types';
3
- export declare class WebhookService implements BaseService {
1
+ declare class WebhookService {
4
2
  private readonly api;
5
3
  private readonly client?;
6
- constructor(api: AxiosInstance, client?: ConnectionHubClientType | undefined);
4
+ constructor(api: any, client?: any | undefined);
7
5
  /**
8
6
  * Verifica se o cliente pode executar operações
9
7
  * @param throwError Se true, lança um erro caso as credenciais não sejam válidas (padrão: true)
@@ -1 +1 @@
1
- function _0x1c4b(_0x10edee,_0x5bb273){const _0x3e724a=_0x539f();return _0x1c4b=function(_0x4cbc8b,_0x1c1158){_0x4cbc8b=_0x4cbc8b-(-0x12*0x14e+-0x1*-0x215a+-0x1*0x86d);let _0x52007d=_0x3e724a[_0x4cbc8b];return _0x52007d;},_0x1c4b(_0x10edee,_0x5bb273);}const _0x3a72d7=_0x1c4b;function _0x539f(){const _0xfa9d88=['webhookUrl','me\x20waitFor','ão\x20inválid','api','unFmk','/webhook/s','56PnNFBT','emove/','delete','498511UvXofW','post','/webhook/r','success','ntials','channelTok','gLVgn','ção\x20ou\x20cha','5318663KnGUwk','ookToken','ewknh','363078GIMrkN','checkCrede','599166OYhjlb','()\x20primeir','client','iais\x20do\x20cl','As\x20credenc','verifyWebh','as.\x20Aguard','Validation','e\x20a\x20valida','alsValidat','etup','foram\x20vali','data','isCredenti','ook','175895ymLOnp','112mXntQD','iente\x20não\x20','removeWebh','239862RQyTBs','483072sGfJwI','setupWebho','dadas\x20ou\x20s'];_0x539f=function(){return _0xfa9d88;};return _0x539f();}(function(_0xe66234,_0x558bb4){const _0xf26c39=_0x1c4b,_0x45a23d=_0xe66234();while(!![]){try{const _0x551881=-parseInt(_0xf26c39(0x183))/(0x29*-0x95+0x2420+-0x3*0x416)+parseInt(_0xf26c39(0x176))/(0x2*-0xa5d+-0x1*-0x15aa+-0xee)+parseInt(_0xf26c39(0x18e))/(0x1*-0x112c+0x188a+-0x75b)+parseInt(_0xf26c39(0x180))/(0x10bc+0x9af+-0x1a67*0x1)*(parseInt(_0xf26c39(0x172))/(-0x133a+0x1*0x1ac9+0xa*-0xc1))+parseInt(_0xf26c39(0x177))/(0x851+-0x12dd+0xa92)+-parseInt(_0xf26c39(0x18b))/(0x1273+0x2256+-0x2*0x1a61)+parseInt(_0xf26c39(0x173))/(-0x5ef*-0x5+0x10*-0x232+0x57d*0x1)*(parseInt(_0xf26c39(0x190))/(-0xe4c+-0x3a1*-0xa+0xb*-0x1ff));if(_0x551881===_0x558bb4)break;else _0x45a23d['push'](_0x45a23d['shift']());}catch(_0x16b905){_0x45a23d['push'](_0x45a23d['shift']());}}}(_0x539f,-0x3eb9*0x2d+0x418f*-0x10+-0x3*-0x78580));export class WebhookService{constructor(_0x1d47fe,_0x1e8fb5){const _0x207a2b=_0x1c4b;this[_0x207a2b(0x17d)]=_0x1d47fe,this[_0x207a2b(0x192)]=_0x1e8fb5;}[_0x3a72d7(0x18f)+_0x3a72d7(0x187)](_0x4796b2=!![]){const _0x340739=_0x3a72d7,_0x28c6bf={};_0x28c6bf[_0x340739(0x17e)]=_0x340739(0x194)+_0x340739(0x193)+_0x340739(0x174)+_0x340739(0x19b)+_0x340739(0x179)+_0x340739(0x17c)+_0x340739(0x196)+_0x340739(0x198)+_0x340739(0x18a)+_0x340739(0x17b)+_0x340739(0x197)+_0x340739(0x191)+'o.';const _0x7e7e27=_0x28c6bf;if(this[_0x340739(0x192)]&&!this[_0x340739(0x192)][_0x340739(0x19d)+_0x340739(0x199)+'ed']()&&_0x4796b2)throw new Error(_0x7e7e27[_0x340739(0x17e)]);}async[_0x3a72d7(0x178)+'ok'](_0x5d2d58,_0x33de22){const _0x53f037=_0x3a72d7,_0x16bd56={};_0x16bd56[_0x53f037(0x18d)]=_0x53f037(0x17f)+_0x53f037(0x19a);const _0x3941f2=_0x16bd56;this[_0x53f037(0x18f)+_0x53f037(0x187)]();try{const _0x2e7ad3={};_0x2e7ad3[_0x53f037(0x17a)]=_0x5d2d58,_0x2e7ad3[_0x53f037(0x188)+'en']=_0x33de22;const _0x47e11f=await this[_0x53f037(0x17d)][_0x53f037(0x184)](_0x3941f2[_0x53f037(0x18d)],_0x2e7ad3);return _0x47e11f[_0x53f037(0x19c)][_0x53f037(0x186)];}catch(_0x412722){return![];}}async[_0x3a72d7(0x175)+_0x3a72d7(0x171)](_0x5c5fa0){const _0x5d7f2e=_0x3a72d7;this[_0x5d7f2e(0x18f)+_0x5d7f2e(0x187)]();try{const _0x43fdb6=await this[_0x5d7f2e(0x17d)][_0x5d7f2e(0x182)](_0x5d7f2e(0x185)+_0x5d7f2e(0x181)+_0x5c5fa0);return _0x43fdb6[_0x5d7f2e(0x19c)][_0x5d7f2e(0x186)];}catch(_0x160828){return![];}}[_0x3a72d7(0x195)+_0x3a72d7(0x18c)](_0x4f4c80,_0xc573ad){const _0x14ad4a=_0x3a72d7,_0x4f01a3={};_0x4f01a3[_0x14ad4a(0x189)]=function(_0x340eda,_0xa31c5e){return _0x340eda===_0xa31c5e;};const _0x5b2f08=_0x4f01a3;return _0x5b2f08[_0x14ad4a(0x189)](_0x4f4c80,_0xc573ad);}}
1
+ 'use strict';const _0x360dc2=_0x2aa5;(function(_0x4c208e,_0x1f5f1c){const _0x19c1d0=_0x2aa5,_0x53945f=_0x4c208e();while(!![]){try{const _0x3780af=parseInt(_0x19c1d0(0xe9))/(-0xccf*0x2+0x14*-0x53+0x201b)+parseInt(_0x19c1d0(0xf5))/(-0x1f7*0x8+-0x1f*-0x17+0x1*0xcf1)+-parseInt(_0x19c1d0(0x104))/(-0x2068+-0x1*0x1367+0x33d2)*(parseInt(_0x19c1d0(0xe8))/(-0x111c+-0x3*-0x38b+0x67f*0x1))+-parseInt(_0x19c1d0(0xf1))/(-0xc3+-0x341+0x409)+-parseInt(_0x19c1d0(0xed))/(0x238f*0x1+-0xee4+-0x14a5)*(parseInt(_0x19c1d0(0xf7))/(0x47a+-0x1722+0x12af))+-parseInt(_0x19c1d0(0xde))/(0x1a25+0x14e0+-0x17*0x20b)*(parseInt(_0x19c1d0(0xda))/(0x53+-0x2*-0x5f6+0x2*-0x61b))+parseInt(_0x19c1d0(0xee))/(-0x1eb6+0xd*0x23f+0x1*0x18d)*(parseInt(_0x19c1d0(0xe2))/(0x156a+-0xc31+0x5e*-0x19));if(_0x3780af===_0x1f5f1c)break;else _0x53945f['push'](_0x53945f['shift']());}catch(_0x2de496){_0x53945f['push'](_0x53945f['shift']());}}}(_0x56f1,-0x12ed5d+-0x1*-0x18b491+0x1*0x93430));class WebhookService{constructor(_0x26b94e,_0x3d044c){const _0x46716b=_0x2aa5;this[_0x46716b(0xdc)]=_0x26b94e,this[_0x46716b(0x106)]=_0x3d044c;}[_0x360dc2(0xf8)+_0x360dc2(0xf0)](_0x3b5ff5=!![]){const _0x350b1e=_0x360dc2,_0x26ab1f={};_0x26ab1f[_0x350b1e(0xe1)]=_0x350b1e(0xff)+_0x350b1e(0xe5)+_0x350b1e(0x100)+_0x350b1e(0xf4)+_0x350b1e(0xd6)+_0x350b1e(0xfe)+_0x350b1e(0xfc)+_0x350b1e(0xf2)+_0x350b1e(0xdf)+_0x350b1e(0xdd)+_0x350b1e(0x102)+_0x350b1e(0xec)+'o.';const _0x51c043=_0x26ab1f;if(this[_0x350b1e(0x106)]&&!this[_0x350b1e(0x106)][_0x350b1e(0xf9)+_0x350b1e(0xf6)+'ed']()&&_0x3b5ff5)throw new Error(_0x51c043[_0x350b1e(0xe1)]);}async[_0x360dc2(0xf3)+'ok'](_0x14b8b7,_0x3d28fd){const _0x4306b3=_0x360dc2,_0x49e5a8={};_0x49e5a8[_0x4306b3(0x103)]=_0x4306b3(0xfd)+_0x4306b3(0xe3);const _0x292231=_0x49e5a8;this[_0x4306b3(0xf8)+_0x4306b3(0xf0)]();try{const _0x52519d={};_0x52519d[_0x4306b3(0xfa)]=_0x14b8b7,_0x52519d[_0x4306b3(0x107)+'en']=_0x3d28fd;const _0x55f5fa=await this[_0x4306b3(0xdc)][_0x4306b3(0xe0)](_0x292231[_0x4306b3(0x103)],_0x52519d);return _0x55f5fa[_0x4306b3(0xd7)][_0x4306b3(0xd9)];}catch(_0x2f5975){return![];}}async[_0x360dc2(0x101)+_0x360dc2(0xe7)](_0x4e9bde){const _0x1e3254=_0x360dc2;this[_0x1e3254(0xf8)+_0x1e3254(0xf0)]();try{const _0xd08e5d=await this[_0x1e3254(0xdc)][_0x1e3254(0xfb)](_0x1e3254(0xef)+_0x1e3254(0xeb)+_0x4e9bde);return _0xd08e5d[_0x1e3254(0xd7)][_0x1e3254(0xd9)];}catch(_0xd5fdee){return![];}}[_0x360dc2(0xdb)+_0x360dc2(0xe6)](_0x44ad81,_0x426746){const _0x1b8c85=_0x360dc2,_0x52dfa4={};_0x52dfa4[_0x1b8c85(0xea)]=function(_0x4db7a2,_0x4015be){return _0x4db7a2===_0x4015be;};const _0x5cf129=_0x52dfa4;return _0x5cf129[_0x1b8c85(0xea)](_0x44ad81,_0x426746);}}function _0x2aa5(_0x3d8e97,_0x1dd2c3){const _0x3bf856=_0x56f1();return _0x2aa5=function(_0x31f8a6,_0x3f11ad){_0x31f8a6=_0x31f8a6-(-0x3*0x4bf+-0x210+0x6b*0x29);let _0x374a2f=_0x3bf856[_0x31f8a6];return _0x374a2f;},_0x2aa5(_0x3d8e97,_0x1dd2c3);}function _0x56f1(){const _0xe238ab=['isCredenti','webhookUrl','delete','as.\x20Aguard','/webhook/s','ão\x20inválid','As\x20credenc','iente\x20não\x20','removeWebh','Validation','skDQE','5003949ncYHuK','vice','client','channelTok','dadas\x20ou\x20s','data','WebhookSer','success','9YsZFKX','verifyWebh','api','me\x20waitFor','5053736TZLgSp','ção\x20ou\x20cha','post','HCZcH','44srcDrS','etup','exports','iais\x20do\x20cl','ookToken','ook','4cOxjLW','1517730gErBIa','AOxCb','emove/','()\x20primeir','1020rrqkjf','8798810YfEgpy','/webhook/r','ntials','8494915yGMYYt','e\x20a\x20valida','setupWebho','foram\x20vali','290158PlkSun','alsValidat','8309ZvLZJg','checkCrede'];_0x56f1=function(){return _0xe238ab;};return _0x56f1();}const _0x35782b={};_0x35782b[_0x360dc2(0xd8)+_0x360dc2(0x105)]=WebhookService,module[_0x360dc2(0xe4)]=_0x35782b;
@@ -1,12 +1,12 @@
1
- export interface ConnectionHubConfig {
1
+ interface ConnectionHubConfig {
2
2
  apiUrl?: string;
3
3
  accessToken: string;
4
4
  }
5
- export type ConnectionHubClientType = any;
6
- export interface BaseService {
5
+ type ConnectionHubClientType = any;
6
+ interface BaseService {
7
7
  checkCredentials?(): void;
8
8
  }
9
- export interface ConnectionData {
9
+ interface ConnectionData {
10
10
  pageId: string;
11
11
  pageName: string;
12
12
  pageAccessToken: string;
@@ -25,7 +25,7 @@ export interface ConnectionData {
25
25
  accessToken?: string;
26
26
  channelToken?: string;
27
27
  }
28
- export interface MessageData {
28
+ interface MessageData {
29
29
  mid: string;
30
30
  from: {
31
31
  id: string;
@@ -58,7 +58,7 @@ export interface MessageData {
58
58
  };
59
59
  source: "facebook" | "instagram" | "email" | "telegram" | "mercadolivre" | string;
60
60
  }
61
- export interface WebhookPayload {
61
+ interface WebhookPayload {
62
62
  pageId: string;
63
63
  connectionId?: string;
64
64
  messageData: MessageData[];
@@ -69,17 +69,17 @@ export interface WebhookPayload {
69
69
  clientId?: string;
70
70
  };
71
71
  }
72
- export interface AuthResponse {
72
+ interface AuthResponse {
73
73
  success: boolean;
74
74
  token?: string;
75
75
  error?: string;
76
76
  }
77
- export interface SendMessageResponse {
77
+ interface SendMessageResponse {
78
78
  success: boolean;
79
79
  messageId?: string;
80
80
  error?: string;
81
81
  }
82
- export interface AttachmentInstagram {
82
+ interface AttachmentInstagram {
83
83
  type: string;
84
84
  payload: {
85
85
  url: string;
@@ -1 +1 @@
1
- export{};
1
+ 'use strict';var _0x1e3a4a=_0x4e01;(function(_0x4851ec,_0x4181ac){var _0x578c35=_0x4e01,_0x2b1e56=_0x4851ec();while(!![]){try{var _0x174b4d=parseInt(_0x578c35(0xe8))/(-0x1*-0x166f+0x828+0x2d*-0xae)*(-parseInt(_0x578c35(0xf1))/(0x1*-0x18b9+-0x177*0x5+-0x16*-0x175))+-parseInt(_0x578c35(0xf0))/(-0xee6*-0x1+-0x23f3+0x1510)+-parseInt(_0x578c35(0xf2))/(0x1*-0x20d2+0x885*-0x1+-0xdc9*-0x3)*(-parseInt(_0x578c35(0xe9))/(0x1023+0x1*0xa1c+0x3*-0x8be))+-parseInt(_0x578c35(0xef))/(-0x34d+0x2e7+0x6c)+parseInt(_0x578c35(0xe7))/(0x8e9+0x1*0x1cf3+-0x25d5)*(-parseInt(_0x578c35(0xee))/(0xaa*-0x26+-0x21e1+0x13b7*0x3))+parseInt(_0x578c35(0xec))/(0xcf7+-0x1*-0x101e+-0x1d0c)*(-parseInt(_0x578c35(0xed))/(0x242f*0x1+0x14c*-0x4+-0x1ef5))+parseInt(_0x578c35(0xea))/(-0x7*0x409+0x893+0x1*0x13b7);if(_0x174b4d===_0x4181ac)break;else _0x2b1e56['push'](_0x2b1e56['shift']());}catch(_0x35d99a){_0x2b1e56['push'](_0x2b1e56['shift']());}}}(_0x2fe0,0x4a338+-0xefcd+0x5561b));function _0x4e01(_0x362308,_0x38336f){var _0x342a91=_0x2fe0();return _0x4e01=function(_0x2ae65f,_0x29bff3){_0x2ae65f=_0x2ae65f-(0x194*0xa+-0x4*0x551+-0x147*-0x5);var _0x4981ab=_0x342a91[_0x2ae65f];return _0x4981ab;},_0x4e01(_0x362308,_0x38336f);}function _0x2fe0(){var _0x28489c=['442617Xitzur','6998iwAqFm','4ASSlkW','315XmMKda','34ONHxLp','3207085UCCbNh','20931999FpntaD','exports','56367nVPkTm','190XSoeEb','133592UJwSno','4890642DrioFK'];_0x2fe0=function(){return _0x28489c;};return _0x2fe0();}module[_0x1e3a4a(0xeb)]={};
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@connection-hub/sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "SDK oficial para a API do Connection Hub",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "type": "module",
9
8
  "scripts": {
10
9
  "build": "tsc && node obfuscate.js",
11
10
  "watch": "tsc --watch",