@connection-hub/sdk 0.0.5 → 0.0.6

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';const _0x894d51=_0x13c0;(function(_0x2d3f9f,_0x1cb743){const _0xa36ce8=_0x13c0,_0x41074b=_0x2d3f9f();while(!![]){try{const _0x481e86=-parseInt(_0xa36ce8(0x1f8))/(0x21c0+0x59+-0x2218)+-parseInt(_0xa36ce8(0x1e4))/(-0xa*0x156+-0x2356+0x30b4)+-parseInt(_0xa36ce8(0x1d0))/(-0x19f*0x5+-0xbc5+0x13e3)+-parseInt(_0xa36ce8(0x214))/(0xbfc+-0x102f+0x1*0x437)*(-parseInt(_0xa36ce8(0x1c8))/(0x61f+0x1a8e+-0xbe*0x2c))+-parseInt(_0xa36ce8(0x1cd))/(-0x197b+-0x76*0x9+0x1da7)*(parseInt(_0xa36ce8(0x212))/(-0x51*-0x29+-0x96e*0x2+0x5ea))+-parseInt(_0xa36ce8(0x1df))/(0x20cc+0x6*-0x649+0x4f2)+parseInt(_0xa36ce8(0x207))/(0x91d*-0x1+0x17f6+0x768*-0x2)*(parseInt(_0xa36ce8(0x1ff))/(0xd*0x2a2+0x1*-0xf57+-0x12d9));if(_0x481e86===_0x1cb743)break;else _0x41074b['push'](_0x41074b['shift']());}catch(_0x2fad60){_0x41074b['push'](_0x41074b['shift']());}}}(_0x4964,-0xbd2f1*0x1+0x558*-0x4ff+-0x1*-0x35adbb));const axios=require(_0x894d51(0x1dc)),AuthServiceModule=require(_0x894d51(0x1c9)),MessagingServiceModule=require(_0x894d51(0x1d6)+_0x894d51(0x210)),WebhookServiceModule=require(_0x894d51(0x1e2)+_0x894d51(0x1c3)),ConnectionServiceModule=require(_0x894d51(0x202)+_0x894d51(0x1f5));class ConnectionHubClient{constructor(_0x59525b){const _0xf5a197=_0x894d51,_0x113607={};_0x113607[_0xf5a197(0x216)]=_0xf5a197(0x1d4)+_0xf5a197(0x20a)+_0xf5a197(0x1e1),_0x113607[_0xf5a197(0x1bf)]=_0xf5a197(0x1ca)+_0xf5a197(0x1cb),_0x113607[_0xf5a197(0x1ea)]=_0xf5a197(0x20d)+_0xf5a197(0x1bd),_0x113607[_0xf5a197(0x1fe)]=_0xf5a197(0x20b)+_0xf5a197(0x206)+_0xf5a197(0x1f1)+'br';const _0x9e60be=_0x113607;this[_0xf5a197(0x1d7)+_0xf5a197(0x213)]=![],this[_0xf5a197(0x1e9)+_0xf5a197(0x1e0)]=null;if(!_0x59525b[_0xf5a197(0x1c2)+'n'])throw new Error(_0x9e60be[_0xf5a197(0x216)]);this[_0xf5a197(0x1d8)]=_0x59525b;const _0x4cf822={};_0x4cf822[_0xf5a197(0x1e7)+'pe']=_0x9e60be[_0xf5a197(0x1bf)];const _0x41e814=_0x4cf822;_0x59525b[_0xf5a197(0x1c2)+'n']&&(_0x41e814[_0x9e60be[_0xf5a197(0x1ea)]]=_0xf5a197(0x1ef)+_0x59525b[_0xf5a197(0x1c2)+'n']);const _0xd7d6b9={};_0xd7d6b9[_0xf5a197(0x1f0)]=_0x59525b[_0xf5a197(0x1fd)]||_0x9e60be[_0xf5a197(0x1fe)],_0xd7d6b9[_0xf5a197(0x209)]=_0x41e814,this[_0xf5a197(0x1de)]=axios[_0xf5a197(0x1e5)](_0xd7d6b9),this[_0xf5a197(0x20f)]=new AuthServiceModule[(_0xf5a197(0x1ee))+'e'](this[_0xf5a197(0x1de)],this),this[_0xf5a197(0x205)]=new MessagingServiceModule[(_0xf5a197(0x1e8))+(_0xf5a197(0x1c4))](this[_0xf5a197(0x1de)],this),this[_0xf5a197(0x1eb)]=new WebhookServiceModule[(_0xf5a197(0x1c6))+(_0xf5a197(0x1fb))](this[_0xf5a197(0x1de)],this),this[_0xf5a197(0x1c1)+'s']=new ConnectionServiceModule[(_0xf5a197(0x1fc))+(_0xf5a197(0x204))](this[_0xf5a197(0x1de)],this),this[_0xf5a197(0x1e9)+_0xf5a197(0x1e0)]=this[_0xf5a197(0x1f2)+_0xf5a197(0x208)]();}async[_0x894d51(0x1f2)+_0x894d51(0x208)](){const _0x4be153=_0x894d51,_0x562c4b={'wAmBE':_0x4be153(0x1c7)+_0x4be153(0x203),'edDkp':function(_0x2a22ce,_0x6b2c7b){return _0x2a22ce===_0x6b2c7b;},'LhILl':function(_0x51972a,_0x3326c4){return _0x51972a(_0x3326c4);},'kycWX':function(_0x3178fb,_0x3663ac){return _0x3178fb===_0x3663ac;},'vXUBZ':function(_0xd362e1,_0x348a37){return _0xd362e1(_0x348a37);}};try{if(this[_0x4be153(0x1e9)+_0x4be153(0x1e0)])return this[_0x4be153(0x1e9)+_0x4be153(0x1e0)];return this[_0x4be153(0x1e9)+_0x4be153(0x1e0)]=new Promise(async _0x5f4e6d=>{const _0x23ce89=_0x4be153;try{const _0x178fc0=await this[_0x23ce89(0x1de)][_0x23ce89(0x1cf)](_0x562c4b[_0x23ce89(0x1db)]);this[_0x23ce89(0x1d7)+_0x23ce89(0x213)]=_0x562c4b[_0x23ce89(0x1d9)](_0x178fc0[_0x23ce89(0x211)][_0x23ce89(0x20c)],!![]),_0x562c4b[_0x23ce89(0x1e3)](_0x5f4e6d,this[_0x23ce89(0x1d7)+_0x23ce89(0x213)]);}catch(_0x595ec8){_0x562c4b[_0x23ce89(0x1d9)](_0x595ec8[_0x23ce89(0x201)]?.[_0x23ce89(0x1ed)],0x15a8+0x21fe+0xad1*-0x5)||_0x562c4b[_0x23ce89(0x1da)](_0x595ec8[_0x23ce89(0x201)]?.[_0x23ce89(0x1ed)],-0x10*0x6f+0xb7*0x21+0x5*-0x304)?(this[_0x23ce89(0x1d7)+_0x23ce89(0x213)]=![],_0x562c4b[_0x23ce89(0x1f3)](_0x5f4e6d,![])):(this[_0x23ce89(0x1d7)+_0x23ce89(0x213)]=![],_0x562c4b[_0x23ce89(0x1e3)](_0x5f4e6d,![]));}finally{this[_0x23ce89(0x1e9)+_0x23ce89(0x1e0)]=null;}}),this[_0x4be153(0x1e9)+_0x4be153(0x1e0)];}catch(_0x3e760a){return this[_0x4be153(0x1d7)+_0x4be153(0x213)]=![],![];}}[_0x894d51(0x1f6)+_0x894d51(0x1c0)+'ed'](){const _0x27542e=_0x894d51;return this[_0x27542e(0x1d7)+_0x27542e(0x213)];}[_0x894d51(0x1f9)+_0x894d51(0x1f7)](_0x8776ff=!![]){const _0x4a3b3e=_0x894d51,_0x194f68={};_0x194f68[_0x4a3b3e(0x1fa)]=_0x4a3b3e(0x1bc)+_0x4a3b3e(0x1d1)+_0x4a3b3e(0x1be)+_0x4a3b3e(0x1ec)+_0x4a3b3e(0x1d3)+_0x4a3b3e(0x1ce)+_0x4a3b3e(0x1e6)+_0x4a3b3e(0x215)+_0x4a3b3e(0x1f4)+'.';const _0x2a2493=_0x194f68;if(!this[_0x4a3b3e(0x1d7)+_0x4a3b3e(0x213)]&&_0x8776ff)throw new Error(_0x2a2493[_0x4a3b3e(0x1fa)]);return this[_0x4a3b3e(0x1d7)+_0x4a3b3e(0x213)];}async[_0x894d51(0x1cc)+_0x894d51(0x200)](){const _0x5014eb=_0x894d51;if(this[_0x5014eb(0x1e9)+_0x5014eb(0x1e0)])return this[_0x5014eb(0x1e9)+_0x5014eb(0x1e0)];if(this[_0x5014eb(0x1d7)+_0x5014eb(0x213)])return!![];return this[_0x5014eb(0x1f2)+_0x5014eb(0x208)]();}[_0x894d51(0x1dd)+_0x894d51(0x20e)](_0x26a340){const _0x366a1f=_0x894d51,_0x3fa12f={};_0x3fa12f[_0x366a1f(0x1bb)]=_0x366a1f(0x20d)+_0x366a1f(0x1bd);const _0x18e7b9=_0x3fa12f;this[_0x366a1f(0x1d8)][_0x366a1f(0x1c2)+'n']=_0x26a340,this[_0x366a1f(0x1de)][_0x366a1f(0x1c5)][_0x366a1f(0x209)][_0x18e7b9[_0x366a1f(0x1bb)]]=_0x366a1f(0x1ef)+_0x26a340,this[_0x366a1f(0x1d7)+_0x366a1f(0x213)]=![],this[_0x366a1f(0x1e9)+_0x366a1f(0x1e0)]=this[_0x366a1f(0x1f2)+_0x366a1f(0x208)]();}}const _0x1fb112={};_0x1fb112[_0x894d51(0x1fc)+_0x894d51(0x1d2)]=ConnectionHubClient,module[_0x894d51(0x1d5)]=_0x1fb112;function _0x13c0(_0x193a20,_0x59ea9a){const _0x3e4cb5=_0x4964();return _0x13c0=function(_0x104b06,_0x377e03){_0x104b06=_0x104b06-(-0x1478*-0x1+0x1b74+0x2e31*-0x1);let _0x560b64=_0x3e4cb5[_0x104b06];return _0x560b64;},_0x13c0(_0x193a20,_0x59ea9a);}function _0x4964(){const _0x213860=['defaults','WebhookSer','/auth/vali','15AjyMVK','./lib/auth','applicatio','n/json','waitForVal','150UmHrkq','ais\x20não\x20fo','get','4852182PnQSwL','o\x20iniciali','HubClient','s\x20credenci','AccessToke','exports','./lib/mess','credential','config','edDkp','kycWX','wAmBE','axios','setAccessT','api','14129128unnMdD','Promise','tório','./lib/webh','LhILl','3792172aetEJN','create','ram\x20valida','Content-Ty','MessagingS','validation','tZGHd','webhooks','tamente.\x20A','status','AuthServic','Bearer\x20','baseURL','onhub.com.','validateCr','vXUBZ','\x20inválidas','ections','isCredenti','Operations','1244838TWqYeY','canExecute','RbISE','vice','Connection','apiUrl','BhMec','2133570xtxyOs','idation','response','./lib/conn','date','Service','messaging','i.connecti','342doigYx','edentials','headers','n\x20é\x20obriga','https://ap','success','Authorizat','oken','auth','aging','data','368354LSxCbz','sValidated','967676ZCSWuh','das\x20ou\x20são','EGJrv','kysmk','Cliente\x20nã','ion','zado\x20corre','eJSKL','alsValidat','connection','accessToke','ooks','ervice'];_0x4964=function(){return _0x213860;};return _0x4964();}
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';const _0x40b985=_0x305a;(function(_0x1c168a,_0x6bafc0){const _0x2db209=_0x305a,_0x102531=_0x1c168a();while(!![]){try{const _0x23cc2d=-parseInt(_0x2db209(0x15f))/(0x21d3+-0x1fc1+-0x211)*(-parseInt(_0x2db209(0x165))/(-0x2291+0x68f+-0x4*-0x701))+-parseInt(_0x2db209(0x15e))/(-0x11c5+0x244e+-0x1286*0x1)*(-parseInt(_0x2db209(0x15b))/(0x546+0x2*-0xe84+-0xb3*-0x22))+-parseInt(_0x2db209(0x167))/(-0x2c*-0x1a+0x25c6+-0x2a39)*(parseInt(_0x2db209(0x164))/(-0x61f+0xdb+-0x2a5*-0x2))+-parseInt(_0x2db209(0x166))/(0x1b45+-0x111e+-0xa20)*(-parseInt(_0x2db209(0x16c))/(-0x75e+0x179b+0x1cd*-0x9))+-parseInt(_0x2db209(0x161))/(0xa1*0x6+0x1*-0x155c+-0xd*-0x15b)+parseInt(_0x2db209(0x168))/(-0x1b66+0x5*0x680+-0x510)*(parseInt(_0x2db209(0x15c))/(-0x139*-0xf+-0x3*-0x6a5+-0x263b))+-parseInt(_0x2db209(0x163))/(-0x13*-0x6e+0x1de+-0x9fc*0x1);if(_0x23cc2d===_0x6bafc0)break;else _0x102531['push'](_0x102531['shift']());}catch(_0x1a0372){_0x102531['push'](_0x102531['shift']());}}}(_0x2c44,0xc739b+0xe0d*-0xe9+0xf434d));const clientModule=require(_0x40b985(0x162));function _0x305a(_0x113339,_0x4713c8){const _0x43d374=_0x2c44();return _0x305a=function(_0x14393d,_0x1f0562){_0x14393d=_0x14393d-(0x1026+0x2*-0x437+-0x32f*0x2);let _0x17d5a6=_0x43d374[_0x14393d];return _0x17d5a6;},_0x305a(_0x113339,_0x4713c8);}function _0x2c44(){const _0x1cdaf4=['11yWGUrH','keys','39666BGMiAJ','8655MIYsgv','Connection','5181426XJRUeH','./client','15001716CaNYCq','78IpqsPy','430GksBZr','4783212HJmirV','591410SNqoNw','6472630DpgRrJ','HubClient','exports','./types','8EnmfTe','forEach','348ETJjof'];_0x2c44=function(){return _0x1cdaf4;};return _0x2c44();}module[_0x40b985(0x16a)][_0x40b985(0x160)+_0x40b985(0x169)]=clientModule[_0x40b985(0x160)+_0x40b985(0x169)];const types=require(_0x40b985(0x16b));Object[_0x40b985(0x15d)](types)[_0x40b985(0x15a)](_0x54d6a5=>{const _0x6b1ade=_0x40b985;module[_0x6b1ade(0x16a)][_0x54d6a5]=types[_0x54d6a5];});
@@ -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 _0x133212=_0x158f;(function(_0x34cb5a,_0x4006ee){const _0x348b5e=_0x158f,_0x327a19=_0x34cb5a();while(!![]){try{const _0x5d4742=parseInt(_0x348b5e(0x1fe))/(-0xe1c+-0x2*0x129e+0x3359)+-parseInt(_0x348b5e(0x213))/(-0x1*-0x56b+0x6ed+-0x2*0x62b)+-parseInt(_0x348b5e(0x210))/(-0xd9b+0xae6+0x2b8)*(parseInt(_0x348b5e(0x1ed))/(-0x3*-0xca8+0x31f+-0x2913))+parseInt(_0x348b5e(0x1fd))/(-0x11c9+0x15*-0xb5+0x20a7)+-parseInt(_0x348b5e(0x20c))/(-0x52+-0x1fc2+-0x24b*-0xe)*(-parseInt(_0x348b5e(0x212))/(-0x1993+0x1f6a+-0x5d0))+-parseInt(_0x348b5e(0x1f0))/(-0x1fb*0x1+0x1cb5*-0x1+0x1eb8)*(-parseInt(_0x348b5e(0x1fa))/(0x21a1*0x1+-0x20be+-0x6d*0x2))+-parseInt(_0x348b5e(0x1fb))/(-0x20d1+0x1e1*-0xd+0xd*0x468);if(_0x5d4742===_0x4006ee)break;else _0x327a19['push'](_0x327a19['shift']());}catch(_0x8cd656){_0x327a19['push'](_0x327a19['shift']());}}}(_0x2223,-0x54420+-0x6b458+0x10ed43));function _0x158f(_0x2e5f6,_0x59fcce){const _0x178fcf=_0x2223();return _0x158f=function(_0x13df25,_0x13f44b){_0x13df25=_0x13df25-(0x1f12+-0xc6e+0x1*-0x10bd);let _0x3ba510=_0x178fcf[_0x13df25];return _0x3ba510;},_0x158f(_0x2e5f6,_0x59fcce);}function _0x2223(){const _0x1f5bc0=['as.\x20Aguard','Validation','success','api','81558lquqaD','alsValidat','/auth/face','checkCrede','6774EYbnXK','foram\x20vali','21InFwod','602530xepVQD','book','ntials','/auth/merc','iente\x20não\x20','e\x20a\x20valida','agram','email','ZDyBV','post','isCredenti','facebook','As\x20credenc','message','iFBua','client','508fRnBXz','response','akLze','512sZkbPC','data','error','instagram','mercadoLiv','AuthServic','/auth/emai','ção\x20ou\x20cha','code','exports','43731IlMsCC','2212350vliwHi','me\x20waitFor','1018085TwMEvj','578705GKZuHc','()\x20primeir','adolivre','ão\x20inválid','iais\x20do\x20cl','redirectUr','dadas\x20ou\x20s','YMiTz','daYxU','/auth/inst'];_0x2223=function(){return _0x1f5bc0;};return _0x2223();}class AuthService{constructor(_0x36b835,_0x4c54d6){const _0x2525f0=_0x158f;this[_0x2525f0(0x20b)]=_0x36b835,this[_0x2525f0(0x1ec)]=_0x4c54d6;}[_0x133212(0x20f)+_0x133212(0x215)](_0x239846=!![]){const _0x371eac=_0x133212,_0x4b5685={};_0x4b5685[_0x371eac(0x205)]=_0x371eac(0x1e9)+_0x371eac(0x202)+_0x371eac(0x217)+_0x371eac(0x211)+_0x371eac(0x204)+_0x371eac(0x201)+_0x371eac(0x208)+_0x371eac(0x218)+_0x371eac(0x1f7)+_0x371eac(0x1fc)+_0x371eac(0x209)+_0x371eac(0x1ff)+'o.';const _0x410775=_0x4b5685;if(this[_0x371eac(0x1ec)]&&!this[_0x371eac(0x1ec)][_0x371eac(0x1e7)+_0x371eac(0x20d)+'ed']()&&_0x239846)throw new Error(_0x410775[_0x371eac(0x205)]);}async[_0x133212(0x1e8)](_0xa41f89,_0x509dc0){const _0x5f3fb9=_0x133212,_0x3fc343={};_0x3fc343[_0x5f3fb9(0x206)]=_0x5f3fb9(0x20e)+_0x5f3fb9(0x214);const _0x38f4fb=_0x3fc343;try{const _0x3dec4c={};_0x3dec4c[_0x5f3fb9(0x1f8)]=_0xa41f89,_0x3dec4c[_0x5f3fb9(0x203)+'i']=_0x509dc0;const _0x5409db=await this[_0x5f3fb9(0x20b)][_0x5f3fb9(0x21c)](_0x38f4fb[_0x5f3fb9(0x206)],_0x3dec4c);return _0x5409db[_0x5f3fb9(0x1f1)];}catch(_0x4bbfaf){const _0x474ba3={};return _0x474ba3[_0x5f3fb9(0x20a)]=![],_0x474ba3[_0x5f3fb9(0x1f2)]=_0x4bbfaf[_0x5f3fb9(0x1ee)]?.[_0x5f3fb9(0x1f1)]?.[_0x5f3fb9(0x1ea)]||_0x4bbfaf[_0x5f3fb9(0x1ea)],_0x474ba3;}}async[_0x133212(0x1f3)](_0x51e0d1,_0x6e1019){const _0x1018bf=_0x133212,_0xce186b={};_0xce186b[_0x1018bf(0x1ef)]=_0x1018bf(0x207)+_0x1018bf(0x219);const _0x454cd3=_0xce186b;try{const _0x153e8d={};_0x153e8d[_0x1018bf(0x1f8)]=_0x51e0d1,_0x153e8d[_0x1018bf(0x203)+'i']=_0x6e1019;const _0x4e9ec4=await this[_0x1018bf(0x20b)][_0x1018bf(0x21c)](_0x454cd3[_0x1018bf(0x1ef)],_0x153e8d);return _0x4e9ec4[_0x1018bf(0x1f1)];}catch(_0x154e8e){const _0x55a6c1={};return _0x55a6c1[_0x1018bf(0x20a)]=![],_0x55a6c1[_0x1018bf(0x1f2)]=_0x154e8e[_0x1018bf(0x1ee)]?.[_0x1018bf(0x1f1)]?.[_0x1018bf(0x1ea)]||_0x154e8e[_0x1018bf(0x1ea)],_0x55a6c1;}}async[_0x133212(0x1f4)+'re'](_0x5a5b63,_0x56ee18){const _0x7dd173=_0x133212,_0x4f118c={};_0x4f118c[_0x7dd173(0x1eb)]=_0x7dd173(0x216)+_0x7dd173(0x200);const _0x52bb29=_0x4f118c;try{const _0x1c8823={};_0x1c8823[_0x7dd173(0x1f8)]=_0x5a5b63,_0x1c8823[_0x7dd173(0x203)+'i']=_0x56ee18;const _0x3d88a1=await this[_0x7dd173(0x20b)][_0x7dd173(0x21c)](_0x52bb29[_0x7dd173(0x1eb)],_0x1c8823);return _0x3d88a1[_0x7dd173(0x1f1)];}catch(_0x4ba7e8){const _0xb4a1e7={};return _0xb4a1e7[_0x7dd173(0x20a)]=![],_0xb4a1e7[_0x7dd173(0x1f2)]=_0x4ba7e8[_0x7dd173(0x1ee)]?.[_0x7dd173(0x1f1)]?.[_0x7dd173(0x1ea)]||_0x4ba7e8[_0x7dd173(0x1ea)],_0xb4a1e7;}}async[_0x133212(0x21a)](_0x5ec925){const _0x334690=_0x133212,_0x2544f2={};_0x2544f2[_0x334690(0x21b)]=_0x334690(0x1f6)+'l';const _0x13db29=_0x2544f2;try{const _0x575101=await this[_0x334690(0x20b)][_0x334690(0x21c)](_0x13db29[_0x334690(0x21b)],_0x5ec925);return _0x575101[_0x334690(0x1f1)];}catch(_0x4ec554){const _0x517ad7={};return _0x517ad7[_0x334690(0x20a)]=![],_0x517ad7[_0x334690(0x1f2)]=_0x4ec554[_0x334690(0x1ee)]?.[_0x334690(0x1f1)]?.[_0x334690(0x1ea)]||_0x4ec554[_0x334690(0x1ea)],_0x517ad7;}}}const _0x4f90f7={};_0x4f90f7[_0x133212(0x1f5)+'e']=AuthService,module[_0x133212(0x1f9)]=_0x4f90f7;
@@ -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 _0x3d2efe=_0x2d32;function _0x2d32(_0x1dd8a2,_0x3b30c8){const _0x4f278d=_0x2329();return _0x2d32=function(_0x1963dc,_0x250f40){_0x1963dc=_0x1963dc-(0x4ee+0x253e+-0x28db);let _0x405e11=_0x4f278d[_0x1963dc];return _0x405e11;},_0x2d32(_0x1dd8a2,_0x3b30c8);}(function(_0x4cbe33,_0x1a8ede){const _0x4a9893=_0x2d32,_0x279304=_0x4cbe33();while(!![]){try{const _0x2af180=-parseInt(_0x4a9893(0x173))/(-0x1*0x20c5+-0xfba+-0x80*-0x61)+parseInt(_0x4a9893(0x169))/(-0x246a+0x1*-0x223a+0x46a6)*(-parseInt(_0x4a9893(0x176))/(-0x1e55+0x1e10+0x2*0x24))+parseInt(_0x4a9893(0x152))/(-0xf63*-0x2+-0x178c+-0x8e*0xd)*(-parseInt(_0x4a9893(0x175))/(0x1*-0x19a9+-0x3*-0x9f+0x1d5*0xd))+-parseInt(_0x4a9893(0x16f))/(0x2181+0x1*-0x101c+-0x115f)*(parseInt(_0x4a9893(0x159))/(-0x3db*-0x9+-0x722+-0x5*0x582))+parseInt(_0x4a9893(0x17a))/(-0xda7*-0x1+0x5ab+0x66e*-0x3)*(parseInt(_0x4a9893(0x177))/(-0x570+-0x2033*0x1+0x25ac))+-parseInt(_0x4a9893(0x16a))/(-0xd81+-0x1*0x31d+-0x2*-0x854)+parseInt(_0x4a9893(0x172))/(-0xc07*-0x1+-0x7ed+-0x40f*0x1);if(_0x2af180===_0x1a8ede)break;else _0x279304['push'](_0x279304['shift']());}catch(_0x50e12c){_0x279304['push'](_0x279304['shift']());}}}(_0x2329,-0x25e4d+-0x12b27a+0x22dde7));class ConnectionService{constructor(_0x52761b,_0x5080ca){const _0x30af4d=_0x2d32;this[_0x30af4d(0x16c)]=_0x52761b,this[_0x30af4d(0x170)]=_0x5080ca;}[_0x3d2efe(0x155)+_0x3d2efe(0x157)](_0xfaccc4=!![]){const _0x2cefb5=_0x3d2efe,_0x11e3e7={};_0x11e3e7[_0x2cefb5(0x16e)]=_0x2cefb5(0x15b)+_0x2cefb5(0x153)+_0x2cefb5(0x164)+_0x2cefb5(0x156)+_0x2cefb5(0x174)+_0x2cefb5(0x16b)+_0x2cefb5(0x163)+_0x2cefb5(0x16d)+_0x2cefb5(0x160)+_0x2cefb5(0x15c)+_0x2cefb5(0x15d)+_0x2cefb5(0x178)+'o.';const _0x18e9e3=_0x11e3e7;if(this[_0x2cefb5(0x170)]&&!this[_0x2cefb5(0x170)][_0x2cefb5(0x158)+_0x2cefb5(0x15a)+'ed']()&&_0xfaccc4)throw new Error(_0x18e9e3[_0x2cefb5(0x16e)]);}async[_0x3d2efe(0x168)+_0x3d2efe(0x15e)](){const _0x20a250=_0x3d2efe,_0x7a8650={};_0x7a8650[_0x20a250(0x165)]=_0x20a250(0x154);const _0x49ecc1=_0x7a8650;this[_0x20a250(0x155)+_0x20a250(0x157)]();try{const _0x1eea1e=await this[_0x20a250(0x16c)][_0x20a250(0x15f)](_0x49ecc1[_0x20a250(0x165)]);return _0x1eea1e[_0x20a250(0x179)];}catch(_0x9e8bfa){return[];}}async[_0x3d2efe(0x171)+_0x3d2efe(0x162)](_0x192dd2){const _0x78266f=_0x3d2efe;this[_0x78266f(0x155)+_0x78266f(0x157)]();try{const _0x31c26e=await this[_0x78266f(0x16c)][_0x78266f(0x15f)](_0x78266f(0x161)+_0x192dd2);return _0x31c26e[_0x78266f(0x179)];}catch(_0x293311){return null;}}}function _0x2329(){const _0x3953ed=['15091250paFrFe','ão\x20inválid','api','e\x20a\x20valida','FfGyl','225228GVjzFS','client','getConnect','33987855KiSZYt','445406Jdakze','dadas\x20ou\x20s','32345XFCXjx','60wHdgPH','985995qPcYAm','()\x20primeir','data','128qUVcGD','Service','192KdrBGS','iais\x20do\x20cl','/channels','checkCrede','foram\x20vali','ntials','isCredenti','203tczvev','alsValidat','As\x20credenc','me\x20waitFor','Validation','tions','get','ção\x20ou\x20cha','/channel/','ion','as.\x20Aguard','iente\x20não\x20','sOPZK','Connection','exports','listConnec','58456ogPHfN'];_0x2329=function(){return _0x3953ed;};return _0x2329();}const _0x2b7e59={};_0x2b7e59[_0x3d2efe(0x166)+_0x3d2efe(0x151)]=ConnectionService,module[_0x3d2efe(0x167)]=_0x2b7e59;
@@ -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';function _0x353e(){const _0x4876bb=['body','1454292dLamkV','k/sendFile','ge/instagr','includes','dadas\x20ou\x20s','ão\x20inválid','mov','webm','jpg','sendToMerc','am/sendFil','riRuk','image','9441ffhGIq','alsValidat','sgbQZ','oWQZx','webp','foram\x20vali','ogg','lwccG','ntials','Instagram','sendEmail','tMessage','wfPTz','Ouljf','xyOyd','8110vmYOPE','checkCrede','AIMAl','aac','/send','MessagingS','VAHtm','wmv','Facebook','error','data','tpJHM','channelTok','adoLivre','/hub/email','getFileTyp','ge/mercado','isCredenti','toLowerCas','pop','2211522nzuBsl','/hub/messa','client','102588RADaqL','jpeg','zgVsA','rhEhl','rTByH','as.','iente\x20não\x20','NDGXS','type','lFhNz','bmp','28YUMugb','audio','9gtLWol','response','text','KUhQh','gif','success','kDpyB','livre/send','wlKwd','ervice','wma','shTSH','mkv','IlFPc','sendTextTo','As\x20credenc','235075pmmZGF','LObie','k/sendText','OZhPx','subject','iQCMx','89732QEGhip','ExhZX','aJtmo','ioSXQ','Url','flv','TextMessag','tiff','file','eMessage','oUyFb','GUwSi','png','message','sendFileTo','video','exports','QKYIh','recipientI','am/sendTex','ewQNV','mp4','mp3','attachment','post','api','ge/faceboo','avi','split','Xwyft','iais\x20do\x20cl','2678544QVnHPV','m4a','wav','eFromUrl','Message'];_0x353e=function(){return _0x4876bb;};return _0x353e();}const _0x135414=_0x2211;(function(_0x5e04ea,_0xd5b94e){const _0x1ea56f=_0x2211,_0x400a3b=_0x5e04ea();while(!![]){try{const _0x4121bb=parseInt(_0x1ea56f(0xae))/(-0xa12+-0x1f91+0x82*0x52)+parseInt(_0x1ea56f(0x106))/(-0x41*0x10+0x63d*0x5+-0x1b1f*0x1)*(parseInt(_0x1ea56f(0x98))/(-0xbd8*0x2+0x3*0x57a+-0x1*-0x745))+-parseInt(_0x1ea56f(0x96))/(-0x6e*-0x9+0x25e6+-0x29c0)*(-parseInt(_0x1ea56f(0xa8))/(-0x1*-0x2131+-0xb49+0x1af*-0xd))+parseInt(_0x1ea56f(0x103))/(-0x695+-0x19*0x173+0x2ad6*0x1)+-parseInt(_0x1ea56f(0xd3))/(-0x963+0x12c6+-0x95c)+parseInt(_0x1ea56f(0xcd))/(-0x4a6*0x1+0xc53+0x1*-0x7a5)+-parseInt(_0x1ea56f(0xe0))/(-0x467+0x14ca+-0x5b*0x2e)*(parseInt(_0x1ea56f(0xef))/(0x1*-0xa63+-0x47*0x6+0xc17));if(_0x4121bb===_0xd5b94e)break;else _0x400a3b['push'](_0x400a3b['shift']());}catch(_0x1e3143){_0x400a3b['push'](_0x400a3b['shift']());}}}(_0x353e,0x46e59*-0x1+0x3e453+-0x3dc23*-0x1));function _0x2211(_0x35297b,_0x137ab0){const _0x5b8775=_0x353e();return _0x2211=function(_0xcdefd5,_0x154925){_0xcdefd5=_0xcdefd5-(-0xd*-0x23b+0x17ec*-0x1+0xe6*-0x5);let _0x27424c=_0x5b8775[_0xcdefd5];return _0x27424c;},_0x2211(_0x35297b,_0x137ab0);}class MessagingService{constructor(_0x379f44,_0x3f4a62){const _0x459123=_0x2211;this[_0x459123(0xc7)]=_0x379f44,this[_0x459123(0x105)]=_0x3f4a62;}[_0x135414(0xf0)+_0x135414(0xe8)](_0x3cc759=!![]){const _0x529139=_0x135414,_0x1ec8ac={};_0x1ec8ac[_0x529139(0xa9)]=_0x529139(0xa7)+_0x529139(0xcc)+_0x529139(0x10c)+_0x529139(0xe5)+_0x529139(0xd7)+_0x529139(0xd8)+_0x529139(0x10b);const _0x1d7450=_0x1ec8ac;if(this[_0x529139(0x105)]&&!this[_0x529139(0x105)][_0x529139(0x100)+_0x529139(0xe1)+'ed']()&&_0x3cc759)throw new Error(_0x1d7450[_0x529139(0xa9)]);}[_0x135414(0xfe)+_0x135414(0xd0)](_0x5c2e3b){const _0x541d59=_0x135414,_0x20efeb={};_0x20efeb[_0x541d59(0xb1)]=_0x541d59(0xc3),_0x20efeb[_0x541d59(0xb0)]=_0x541d59(0xd9),_0x20efeb[_0x541d59(0x9e)]=_0x541d59(0xc9),_0x20efeb[_0x541d59(0x10a)]=_0x541d59(0xf6),_0x20efeb[_0x541d59(0xc2)]=_0x541d59(0xb3),_0x20efeb[_0x541d59(0x108)]=_0x541d59(0xa4),_0x20efeb[_0x541d59(0xec)]=_0x541d59(0xda),_0x20efeb[_0x541d59(0xb9)]=_0x541d59(0xc4),_0x20efeb[_0x541d59(0xf5)]=_0x541d59(0xcf),_0x20efeb[_0x541d59(0x9b)]=_0x541d59(0xe6),_0x20efeb[_0x541d59(0xbf)]=_0x541d59(0xf2),_0x20efeb[_0x541d59(0xab)]=_0x541d59(0xce),_0x20efeb[_0x541d59(0xaf)]=_0x541d59(0xa2),_0x20efeb[_0x541d59(0xcb)]=_0x541d59(0xdb),_0x20efeb[_0x541d59(0x10f)]=_0x541d59(0x107),_0x20efeb[_0x541d59(0xa0)]=_0x541d59(0xba),_0x20efeb[_0x541d59(0xe3)]=_0x541d59(0x9c),_0x20efeb[_0x541d59(0xde)]=_0x541d59(0x95),_0x20efeb[_0x541d59(0xb8)]=_0x541d59(0xe4),_0x20efeb[_0x541d59(0xad)]=_0x541d59(0xb5),_0x20efeb[_0x541d59(0xe7)]=_0x541d59(0xbd),_0x20efeb[_0x541d59(0xa5)]=_0x541d59(0x97),_0x20efeb[_0x541d59(0xed)]=_0x541d59(0xdf),_0x20efeb[_0x541d59(0x109)]=_0x541d59(0xb6);const _0x409895=_0x20efeb,_0x126c17=_0x5c2e3b[_0x541d59(0xca)]('.')[_0x541d59(0x102)]()?.[_0x541d59(0x101)+'e']()||'',_0x3d0410=[_0x409895[_0x541d59(0xb1)],_0x409895[_0x541d59(0xb0)],_0x409895[_0x541d59(0x9e)],_0x409895[_0x541d59(0x10a)],_0x409895[_0x541d59(0xc2)],_0x409895[_0x541d59(0x108)],_0x409895[_0x541d59(0xec)]],_0x11f167=[_0x409895[_0x541d59(0xb9)],_0x409895[_0x541d59(0xf5)],_0x409895[_0x541d59(0x9b)],_0x409895[_0x541d59(0xbf)],_0x409895[_0x541d59(0xab)],_0x409895[_0x541d59(0xaf)]],_0x436001=[_0x409895[_0x541d59(0xcb)],_0x409895[_0x541d59(0x10f)],_0x409895[_0x541d59(0xa0)],_0x409895[_0x541d59(0xe3)],_0x409895[_0x541d59(0xde)],_0x409895[_0x541d59(0xb8)],_0x409895[_0x541d59(0xad)]];if(_0x3d0410[_0x541d59(0xd6)](_0x126c17))return _0x409895[_0x541d59(0xe7)];if(_0x11f167[_0x541d59(0xd6)](_0x126c17))return _0x409895[_0x541d59(0xa5)];if(_0x436001[_0x541d59(0xd6)](_0x126c17))return _0x409895[_0x541d59(0xed)];return _0x409895[_0x541d59(0x109)];}async[_0x135414(0xa6)+_0x135414(0xf7)](_0x24251f,_0x51ef14,_0x1d7ab3){const _0x3a31ee=_0x135414,_0xdaa61f={};_0xdaa61f[_0x3a31ee(0xe2)]=_0x3a31ee(0x104)+_0x3a31ee(0xc8)+_0x3a31ee(0xaa)+_0x3a31ee(0xd1);const _0x43881e=_0xdaa61f;this[_0x3a31ee(0xf0)+_0x3a31ee(0xe8)]();try{const _0x3900d1={};_0x3900d1[_0x3a31ee(0xfb)+'en']=_0x24251f,_0x3900d1[_0x3a31ee(0xc0)+'d']=_0x51ef14,_0x3900d1[_0x3a31ee(0xbb)]=_0x1d7ab3;const _0x185a0b=await this[_0x3a31ee(0xc7)][_0x3a31ee(0xc6)](_0x43881e[_0x3a31ee(0xe2)],_0x3900d1);return _0x185a0b[_0x3a31ee(0xf9)];}catch(_0x181060){const _0x31bfe3={};return _0x31bfe3[_0x3a31ee(0x9d)]=![],_0x31bfe3[_0x3a31ee(0xf8)]=_0x181060[_0x3a31ee(0x99)]?.[_0x3a31ee(0xf9)]?.[_0x3a31ee(0xbb)]||_0x181060[_0x3a31ee(0xbb)],_0x31bfe3;}}async[_0x135414(0xbc)+_0x135414(0xf7)](_0x87ed62,_0x4bff99,_0x3b563a){const _0x5c29f=_0x135414,_0x19c884={};_0x19c884[_0x5c29f(0xee)]=_0x5c29f(0x104)+_0x5c29f(0xc8)+_0x5c29f(0xd4)+_0x5c29f(0xd1);const _0x68ec9e=_0x19c884;this[_0x5c29f(0xf0)+_0x5c29f(0xe8)]();try{const _0x5e336f=this[_0x5c29f(0xfe)+_0x5c29f(0xd0)](_0x3b563a),_0x40efff={};_0x40efff[_0x5c29f(0xfb)+'en']=_0x87ed62,_0x40efff[_0x5c29f(0xc0)+'d']=_0x4bff99,_0x40efff[_0x5c29f(0xc5)+_0x5c29f(0xb2)]=_0x3b563a,_0x40efff[_0x5c29f(0x10e)]=_0x5e336f;const _0x415c7e=await this[_0x5c29f(0xc7)][_0x5c29f(0xc6)](_0x68ec9e[_0x5c29f(0xee)],_0x40efff);return _0x415c7e[_0x5c29f(0xf9)];}catch(_0x3a7241){const _0x255cb4={};return _0x255cb4[_0x5c29f(0x9d)]=![],_0x255cb4[_0x5c29f(0xf8)]=_0x3a7241[_0x5c29f(0x99)]?.[_0x5c29f(0xf9)]?.[_0x5c29f(0xbb)]||_0x3a7241[_0x5c29f(0xbb)],_0x255cb4;}}async[_0x135414(0xa6)+_0x135414(0xe9)](_0x117c86,_0x5e8118,_0x15d6db){const _0x27e07e=_0x135414,_0x57d92d={};_0x57d92d[_0x27e07e(0xf1)]=_0x27e07e(0x104)+_0x27e07e(0xd5)+_0x27e07e(0xc1)+_0x27e07e(0xeb);const _0x3b1c32=_0x57d92d;this[_0x27e07e(0xf0)+_0x27e07e(0xe8)]();try{const _0x375af5={};_0x375af5[_0x27e07e(0xfb)+'en']=_0x117c86,_0x375af5[_0x27e07e(0xc0)+'d']=_0x5e8118,_0x375af5[_0x27e07e(0x9a)]=_0x15d6db;const _0x2da424=await this[_0x27e07e(0xc7)][_0x27e07e(0xc6)](_0x3b1c32[_0x27e07e(0xf1)],_0x375af5);return _0x2da424[_0x27e07e(0xf9)];}catch(_0x502975){const _0x6fc068={};return _0x6fc068[_0x27e07e(0x9d)]=![],_0x6fc068[_0x27e07e(0xf8)]=_0x502975[_0x27e07e(0x99)]?.[_0x27e07e(0xf9)]?.[_0x27e07e(0xbb)]||_0x502975[_0x27e07e(0xbb)],_0x6fc068;}}async[_0x135414(0xbc)+_0x135414(0xe9)](_0x31a6d1,_0x58966b,_0x20403b){const _0x287f54=_0x135414,_0x38f30f={};_0x38f30f[_0x287f54(0x10d)]=_0x287f54(0x104)+_0x287f54(0xd5)+_0x287f54(0xdd)+_0x287f54(0xb7);const _0x201fa5=_0x38f30f;this[_0x287f54(0xf0)+_0x287f54(0xe8)]();try{const _0x976640=this[_0x287f54(0xfe)+_0x287f54(0xd0)](_0x20403b),_0x15bee8={};_0x15bee8[_0x287f54(0xfb)+'en']=_0x31a6d1,_0x15bee8[_0x287f54(0xc0)+'d']=_0x58966b,_0x15bee8[_0x287f54(0xc5)+_0x287f54(0xb2)]=_0x20403b,_0x15bee8[_0x287f54(0x10e)]=_0x976640;const _0x53eaea=await this[_0x287f54(0xc7)][_0x287f54(0xc6)](_0x201fa5[_0x287f54(0x10d)],_0x15bee8);return _0x53eaea[_0x287f54(0xf9)];}catch(_0x2cbc11){const _0x23a8f5={};return _0x23a8f5[_0x287f54(0x9d)]=![],_0x23a8f5[_0x287f54(0xf8)]=_0x2cbc11[_0x287f54(0x99)]?.[_0x287f54(0xf9)]?.[_0x287f54(0xbb)]||_0x2cbc11[_0x287f54(0xbb)],_0x23a8f5;}}async[_0x135414(0xea)](_0x4d61ad,_0x3ce0b4,_0x178e17,_0x27c58b,_0x2fbe12){const _0x3db69c=_0x135414,_0x1fbe49={};_0x1fbe49[_0x3db69c(0xfa)]=_0x3db69c(0xfd)+_0x3db69c(0xf3);const _0x5b5ace=_0x1fbe49;this[_0x3db69c(0xf0)+_0x3db69c(0xe8)]();try{const _0x405755={};_0x405755[_0x3db69c(0xfb)+'en']=_0x4d61ad,_0x405755[_0x3db69c(0xac)]=_0x3ce0b4,_0x405755[_0x3db69c(0xd2)]=_0x178e17,_0x405755['to']=_0x27c58b,_0x405755[_0x3db69c(0xc5)+'s']=_0x2fbe12;const _0x29f3eb=await this[_0x3db69c(0xc7)][_0x3db69c(0xc6)](_0x5b5ace[_0x3db69c(0xfa)],_0x405755);return _0x29f3eb[_0x3db69c(0xf9)];}catch(_0x369606){const _0x56e9f7={};return _0x56e9f7[_0x3db69c(0x9d)]=![],_0x56e9f7[_0x3db69c(0xf8)]=_0x369606[_0x3db69c(0x99)]?.[_0x3db69c(0xf9)]?.[_0x3db69c(0xbb)]||_0x369606[_0x3db69c(0xbb)],_0x56e9f7;}}async[_0x135414(0xdc)+_0x135414(0xfc)](_0x212af9,_0x373040,_0x30a0b2){const _0x4234eb=_0x135414,_0x3971f4={};_0x3971f4[_0x4234eb(0xa3)]=_0x4234eb(0x104)+_0x4234eb(0xff)+_0x4234eb(0x9f)+_0x4234eb(0xb4)+'e';const _0x548318=_0x3971f4;this[_0x4234eb(0xf0)+_0x4234eb(0xe8)]();try{const _0x19b609={};_0x19b609[_0x4234eb(0xfb)+'en']=_0x212af9,_0x19b609[_0x4234eb(0xc0)+'d']=_0x373040,_0x19b609[_0x4234eb(0xbb)]=_0x30a0b2;const _0x30f222=await this[_0x4234eb(0xc7)][_0x4234eb(0xc6)](_0x548318[_0x4234eb(0xa3)],_0x19b609);return _0x30f222[_0x4234eb(0xf9)];}catch(_0xb5c00c){const _0x17d4a8={};return _0x17d4a8[_0x4234eb(0x9d)]=![],_0x17d4a8[_0x4234eb(0xf8)]=_0xb5c00c[_0x4234eb(0x99)]?.[_0x4234eb(0xf9)]?.[_0x4234eb(0xbb)]||_0xb5c00c[_0x4234eb(0xbb)],_0x17d4a8;}}}const _0x1570ac={};_0x1570ac[_0x135414(0xf4)+_0x135414(0xa1)]=MessagingService,module[_0x135414(0xbe)]=_0x1570ac;
@@ -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';function _0x2638(_0x54c35a,_0xf99a54){const _0x41d2a7=_0x5f1b();return _0x2638=function(_0x1326ca,_0x3457e3){_0x1326ca=_0x1326ca-(-0x5*0x4f6+-0xd*0x1bd+0x25*0x155);let _0x20b9d7=_0x41d2a7[_0x1326ca];return _0x20b9d7;},_0x2638(_0x54c35a,_0xf99a54);}const _0x43521a=_0x2638;(function(_0x324997,_0x3d13cb){const _0x2eb2b4=_0x2638,_0x1af9e7=_0x324997();while(!![]){try{const _0x3f872d=parseInt(_0x2eb2b4(0x1fe))/(-0xa3f+0x224d+-0x180d)+-parseInt(_0x2eb2b4(0x201))/(0x5*0x3cd+-0x1*0x192d+0x62e)+parseInt(_0x2eb2b4(0x1f2))/(0x23ba+-0x2219+-0x19e)+-parseInt(_0x2eb2b4(0x1fa))/(0x1ceb+-0x3*-0x6cd+0x18a7*-0x2)*(parseInt(_0x2eb2b4(0x202))/(-0xa9*-0x17+0x12e6+-0x2210))+-parseInt(_0x2eb2b4(0x1ea))/(-0x3*-0x3f6+-0x32b+0x1*-0x8b1)*(parseInt(_0x2eb2b4(0x1ed))/(0x8e7*-0x1+0x19c6+0x62*-0x2c))+-parseInt(_0x2eb2b4(0x204))/(0x1f*-0x101+-0x1db1+0x3cd8)*(-parseInt(_0x2eb2b4(0x208))/(-0x1f4c+0x2*0x748+-0x597*-0x3))+parseInt(_0x2eb2b4(0x1ec))/(0x7f+0x1dec+-0x457*0x7)*(parseInt(_0x2eb2b4(0x20a))/(0x1f18+0x5*-0x281+-0x4a2*0x4));if(_0x3f872d===_0x3d13cb)break;else _0x1af9e7['push'](_0x1af9e7['shift']());}catch(_0x2fab85){_0x1af9e7['push'](_0x1af9e7['shift']());}}}(_0x5f1b,0xc88ab+-0x9dd07+0x109*0x5b3));function _0x5f1b(){const _0x2b40ce=['emove/','1269183GWFUpn','post','ão\x20inválid','ntials','me\x20waitFor','alsValidat','dadas\x20ou\x20s','channelTok','55640CjdPbR','/webhook/s','vice','WebhookSer','760646tvCupm','ook','/webhook/r','1809106MvAroY','385CZUlXI','GdCxW','8FLwHYX','client','verifyWebh','webhookUrl','8289243SyOlMx','foram\x20vali','1786279gQemDx','etup','e\x20a\x20valida','success','exports','iais\x20do\x20cl','removeWebh','ookToken','setupWebho','ção\x20ou\x20cha','api','GZdzW','hFWuH','As\x20credenc','as.\x20Aguard','Validation','isCredenti','()\x20primeir','18ovVZQS','iente\x20não\x20','70lexTmp','1643103xSpxjd','delete','data','checkCrede'];_0x5f1b=function(){return _0x2b40ce;};return _0x5f1b();}class WebhookService{constructor(_0x5e96b5,_0x1c4432){const _0x438eb8=_0x2638;this[_0x438eb8(0x1e2)]=_0x5e96b5,this[_0x438eb8(0x205)]=_0x1c4432;}[_0x43521a(0x1f0)+_0x43521a(0x1f5)](_0x22b371=!![]){const _0x175ac0=_0x43521a,_0x37a86b={};_0x37a86b[_0x175ac0(0x1e3)]=_0x175ac0(0x1e5)+_0x175ac0(0x20f)+_0x175ac0(0x1eb)+_0x175ac0(0x209)+_0x175ac0(0x1f8)+_0x175ac0(0x1f4)+_0x175ac0(0x1e6)+_0x175ac0(0x20c)+_0x175ac0(0x213)+_0x175ac0(0x1f6)+_0x175ac0(0x1e7)+_0x175ac0(0x1e9)+'o.';const _0x558503=_0x37a86b;if(this[_0x175ac0(0x205)]&&!this[_0x175ac0(0x205)][_0x175ac0(0x1e8)+_0x175ac0(0x1f7)+'ed']()&&_0x22b371)throw new Error(_0x558503[_0x175ac0(0x1e3)]);}async[_0x43521a(0x212)+'ok'](_0x16835d,_0x2e5c1e){const _0x5c838d=_0x43521a,_0x1899d3={};_0x1899d3[_0x5c838d(0x203)]=_0x5c838d(0x1fb)+_0x5c838d(0x20b);const _0x279ff1=_0x1899d3;this[_0x5c838d(0x1f0)+_0x5c838d(0x1f5)]();try{const _0x18dd4e={};_0x18dd4e[_0x5c838d(0x207)]=_0x16835d,_0x18dd4e[_0x5c838d(0x1f9)+'en']=_0x2e5c1e;const _0x4bf8cf=await this[_0x5c838d(0x1e2)][_0x5c838d(0x1f3)](_0x279ff1[_0x5c838d(0x203)],_0x18dd4e);return _0x4bf8cf[_0x5c838d(0x1ef)][_0x5c838d(0x20d)];}catch(_0x3feb10){return![];}}async[_0x43521a(0x210)+_0x43521a(0x1ff)](_0x2a58ad){const _0x40500b=_0x43521a;this[_0x40500b(0x1f0)+_0x40500b(0x1f5)]();try{const _0x1e0680=await this[_0x40500b(0x1e2)][_0x40500b(0x1ee)](_0x40500b(0x200)+_0x40500b(0x1f1)+_0x2a58ad);return _0x1e0680[_0x40500b(0x1ef)][_0x40500b(0x20d)];}catch(_0x3e564c){return![];}}[_0x43521a(0x206)+_0x43521a(0x211)](_0x20a3e8,_0x37a1b2){const _0x3a5321=_0x43521a,_0x14c792={};_0x14c792[_0x3a5321(0x1e4)]=function(_0x569ac9,_0x193180){return _0x569ac9===_0x193180;};const _0x34af99=_0x14c792;return _0x34af99[_0x3a5321(0x1e4)](_0x20a3e8,_0x37a1b2);}}const _0x1c86db={};_0x1c86db[_0x43521a(0x1fd)+_0x43521a(0x1fc)]=WebhookService,module[_0x43521a(0x20e)]=_0x1c86db;
@@ -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';function _0x5a0e(_0x237b7f,_0x1e4fa0){var _0x523514=_0x4a8b();return _0x5a0e=function(_0x2f3fe8,_0x4e1600){_0x2f3fe8=_0x2f3fe8-(0x1160*0x2+0x8c*0x3e+-0x435d);var _0x1730c0=_0x523514[_0x2f3fe8];return _0x1730c0;},_0x5a0e(_0x237b7f,_0x1e4fa0);}var _0x5582dd=_0x5a0e;(function(_0x453f8e,_0x594145){var _0x46c529=_0x5a0e,_0x15c67e=_0x453f8e();while(!![]){try{var _0x135839=parseInt(_0x46c529(0x14b))/(-0x1ca1*-0x1+-0xefc+-0xda4)*(parseInt(_0x46c529(0x14c))/(-0xe6a+0x3ee+0xa7e))+parseInt(_0x46c529(0x14e))/(0x3*-0xb51+0x8+0x21ee)*(-parseInt(_0x46c529(0x155))/(0x1*0x1945+0x1044+-0x2985))+-parseInt(_0x46c529(0x14d))/(-0xfc+0x481*-0x4+0x1305)+parseInt(_0x46c529(0x152))/(-0x1538+-0x240b*0x1+0x3949)+-parseInt(_0x46c529(0x156))/(0xd6*0x7+-0x227*-0x7+0xbf*-0x1c)*(-parseInt(_0x46c529(0x151))/(0x641*0x1+-0x1*-0x1517+0x4c*-0x5c))+parseInt(_0x46c529(0x153))/(0x2077+-0x1*0x1d4b+-0x323)+-parseInt(_0x46c529(0x154))/(0x147f+-0x38b*-0x3+-0x1f16)*(parseInt(_0x46c529(0x14f))/(-0x4*0x59e+0xa58+0xc2b));if(_0x135839===_0x594145)break;else _0x15c67e['push'](_0x15c67e['shift']());}catch(_0x100703){_0x15c67e['push'](_0x15c67e['shift']());}}}(_0x4a8b,0x2b*-0x4bec+0x32a67+0x11ea7f));module[_0x5582dd(0x150)]={};function _0x4a8b(){var _0x3aff3d=['464012ZNbUvn','1563710hFEBXp','42pAfofv','27786DcYXhy','exports','1068408ypvnuP','179514KaCJjH','8826066unvEiW','3780XtQDxh','160268LbzKql','35PrbZJy','3EjXwBI'];_0x4a8b=function(){return _0x3aff3d;};return _0x4a8b();}
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.6",
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",