trulincohelper 1.1.2 → 1.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x53b7be=a0_0x3cee;(function(_0x33e320,_0x1ac5a4){const _0x312c72=a0_0x3cee,_0xda719a=_0x33e320();while(!![]){try{const _0x246f64=-parseInt(_0x312c72(0x152))/0x1+-parseInt(_0x312c72(0x163))/0x2+-parseInt(_0x312c72(0x154))/0x3+-parseInt(_0x312c72(0x14b))/0x4+parseInt(_0x312c72(0x13f))/0x5*(parseInt(_0x312c72(0x138))/0x6)+-parseInt(_0x312c72(0x14a))/0x7+-parseInt(_0x312c72(0x135))/0x8*(-parseInt(_0x312c72(0x13a))/0x9);if(_0x246f64===_0x1ac5a4)break;else _0xda719a['push'](_0xda719a['shift']());}catch(_0x5167bd){_0xda719a['push'](_0xda719a['shift']());}}}(a0_0x30a8,0xafd3f));var axios=require('axios'),reactNative=require('react-native'),CryptoJS=require('crypto-js');let cachedValidation=null;const validateAccess=async()=>{const _0x5a5fea=a0_0x53b7be;console['log']('Responsessssss---1'),console[_0x5a5fea(0x133)](_0x5a5fea(0x14c));try{const _0x1d6f7a=await axios['get'](_0x5a5fea(0x134));return console['log']('Response\x20data:',_0x1d6f7a[_0x5a5fea(0x132)]),console[_0x5a5fea(0x133)](_0x5a5fea(0x153),_0x1d6f7a['status']),cachedValidation=_0x1d6f7a?.[_0x5a5fea(0x132)]?.[_0x5a5fea(0x132)]===!![],cachedValidation;}catch(_0x34db6c){if(_0x34db6c[_0x5a5fea(0x15f)])console[_0x5a5fea(0x133)](_0x5a5fea(0x149),_0x34db6c[_0x5a5fea(0x15f)][_0x5a5fea(0x132)]),console[_0x5a5fea(0x133)](_0x5a5fea(0x15a),_0x34db6c['response'][_0x5a5fea(0x156)]);else _0x34db6c[_0x5a5fea(0x14f)]?console[_0x5a5fea(0x133)](_0x5a5fea(0x144),_0x34db6c[_0x5a5fea(0x14f)][_0x5a5fea(0x140)]):console[_0x5a5fea(0x133)](_0x5a5fea(0x15d),_0x34db6c[_0x5a5fea(0x161)]);return cachedValidation=![],![];}};let BlobModule=null;try{BlobModule=require('react-native-blob-util');}catch(a0_0x5743bc){try{BlobModule=require('rn-fetch-blob');}catch(a0_0x5a98a4){throw new Error(a0_0x53b7be(0x160));}}function a0_0x30a8(){const _0x467943=['Error\x20setting\x20up\x20request:','rn-fetch-blob','response','Please\x20install\x20react-native-blob-util\x20OR\x20rn-fetch-blob','message','63998583b5b79d46afb834cc','3920fMOlWa','data','log','https://stageapi.go4whatsup.com/appcalling','8KDOdNB','getMediaPath','encryptData','3736518Uexvoz','FeatureID','5736267cDMRHk','AES','crypto-js','checkAccess','6399855db5b79d46afb834c5','10NKFYsY','_header','select','12345#$','exports','No\x20response\x20received:','getContactSyncStatus','639985a7b5b79d46afb834d3','ContactSyncStatus','Platform','Error\x20response\x20data:','1151780VdTyTK','718448EEqdds','Responsessssss---2','react-native','getFeatureId','request','msgStatus','639983c1b5b79d46afb834be','170517dtBuek','Response\x20status:','1938147wyWbZK','react-native-blob-util','status','unitsEnum','63998387b5b79d46afb834b2','stringify','Error\x20response\x20status:','getUnitEnum','toString'];a0_0x30a8=function(){return _0x467943;};return a0_0x30a8();}var Blob=BlobModule;function a0_0x3cee(_0x3bc44e,_0x420e0a){_0x3bc44e=_0x3bc44e-0x132;const _0x30a821=a0_0x30a8();let _0x3ceec5=_0x30a821[_0x3bc44e];return _0x3ceec5;}class HelperKit{constructor(){const _0x2b4cd8=a0_0x53b7be;this[_0x2b4cd8(0x139)]={'documentTranslation':_0x2b4cd8(0x158),'speechToText':_0x2b4cd8(0x151),'textToSpeech':_0x2b4cd8(0x13e),'textToText':_0x2b4cd8(0x162),'imageTranslation':_0x2b4cd8(0x146),'liveAudioVideoCall':'6399871ab5b79d46afb834df'},this[_0x2b4cd8(0x150)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x2b4cd8(0x147)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x2b4cd8(0x157)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async['checkAccess'](){const _0x104538=await validateAccess();return _0x104538;}async[a0_0x53b7be(0x14e)](_0x20aa60){const _0x4dfe7a=a0_0x53b7be,_0x1d804c=await this['checkAccess']();if(!_0x1d804c)return null;return this[_0x4dfe7a(0x139)][_0x20aa60]??null;}async['getMsgStatus'](_0x4d8c81){const _0x530848=a0_0x53b7be,_0x5d9d16=await this[_0x530848(0x13d)]();if(!_0x5d9d16)return null;return this[_0x530848(0x150)][_0x4d8c81]??null;}async[a0_0x53b7be(0x145)](_0x6fb24d){const _0x4644b6=a0_0x53b7be,_0x4ab6b8=await this[_0x4644b6(0x13d)]();if(!_0x4ab6b8)return null;return this[_0x4644b6(0x147)][_0x6fb24d]??null;}async[a0_0x53b7be(0x15b)](_0x5f2c39){const _0x5a98b6=a0_0x53b7be,_0x60df64=await this['checkAccess']();if(!_0x60df64)return null;return this[_0x5a98b6(0x157)][_0x5f2c39]??null;}async[a0_0x53b7be(0x136)](){const _0x46b081=a0_0x53b7be,_0x5a07a7=await this[_0x46b081(0x13d)]();if(!_0x5a07a7)return'$';const {dirs:{DownloadDir:_0x24804a,DocumentDir:_0x4e4cb6}}=Blob['fs'];return reactNative[_0x46b081(0x148)][_0x46b081(0x141)]({'ios':_0x4e4cb6,'android':_0x24804a['replace']('/Download','')+'/Android/media/com.inw.trulinco/Trulinco'});}async[a0_0x53b7be(0x137)](_0x53ce6b,_0x16f774){const _0x354e14=a0_0x53b7be,_0x12bb2a=await this[_0x354e14(0x13d)]();if(!_0x12bb2a)return _0x354e14(0x142);return CryptoJS[_0x354e14(0x13b)]['encrypt'](JSON[_0x354e14(0x159)](_0x53ce6b),_0x16f774)[_0x354e14(0x15c)]();}}var Helper=new HelperKit();module[a0_0x53b7be(0x143)]=Helper;
1
+ 'use strict';const a0_0x38dbd7=a0_0x136b;(function(_0x3bd9e4,_0x5d9627){const _0x4201c2=a0_0x136b,_0x270125=_0x3bd9e4();while(!![]){try{const _0x594c5e=parseInt(_0x4201c2(0x1ab))/0x1*(parseInt(_0x4201c2(0x1af))/0x2)+parseInt(_0x4201c2(0x1b3))/0x3*(-parseInt(_0x4201c2(0x193))/0x4)+-parseInt(_0x4201c2(0x1b6))/0x5+parseInt(_0x4201c2(0x19e))/0x6*(parseInt(_0x4201c2(0x1c3))/0x7)+-parseInt(_0x4201c2(0x1c1))/0x8+parseInt(_0x4201c2(0x1c4))/0x9*(parseInt(_0x4201c2(0x1ac))/0xa)+parseInt(_0x4201c2(0x1b5))/0xb*(-parseInt(_0x4201c2(0x1ad))/0xc);if(_0x594c5e===_0x5d9627)break;else _0x270125['push'](_0x270125['shift']());}catch(_0x1eaf2c){_0x270125['push'](_0x270125['shift']());}}}(a0_0x54c1,0x56a40));var axios=require(a0_0x38dbd7(0x1a0)),reactNative=require(a0_0x38dbd7(0x1a1)),CryptoJS=require(a0_0x38dbd7(0x1c2));let cachedValidation=null;const validateAccess=async()=>{const _0x17e354=a0_0x38dbd7;console[_0x17e354(0x1bc)]('Responsessssss---1'),console[_0x17e354(0x1bc)](_0x17e354(0x1a7));try{const _0x1db142=await axios[_0x17e354(0x196)](_0x17e354(0x1a9));return cachedValidation=_0x1db142?.['data']?.[_0x17e354(0x192)]===!![],cachedValidation;}catch(_0x494f7a){if(_0x494f7a['response']);else{if(_0x494f7a[_0x17e354(0x199)]);else;}return cachedValidation=![],![];}};let BlobModule=null;try{BlobModule=require(a0_0x38dbd7(0x1ae));}catch(a0_0x18eeb6){try{BlobModule=require(a0_0x38dbd7(0x197));}catch(a0_0x254aed){throw new Error(a0_0x38dbd7(0x198));}}function a0_0x54c1(){const _0x2a5941=['639985a7b5b79d46afb834d3','encrypt','getContactSyncStatus','2101980eMTtVk','exports','axios','react-native','getFeatureId','unitsEnum','63998583b5b79d46afb834cc','getGetAllMessageEvent','getNotificationEvent','Responsessssss---2','select','https://stageapi.go4whatsup.com/appcalling','getMsgStatus','6531cruuRx','3006020qytspD','84PGJJlx','react-native-blob-util','172vzjMOU','/Android/media/com.inw.trulinco/Trulinco','AES','12345#$','3471cSIyKQ','stringify','452837ZElwoI','601265FySItZ','ContactSyncStatus','message_notification','toString','639983c1b5b79d46afb834be','msgStatus','log','6399871ab5b79d46afb834df','getMediaPath','replace','Platform','2622488uTUHuY','crypto-js','7dTapyF','9HunOki','data','420EvrowC','63998387b5b79d46afb834b2','FeatureID','get','rn-fetch-blob','Please\x20install\x20react-native-blob-util\x20OR\x20rn-fetch-blob','request','checkAccess'];a0_0x54c1=function(){return _0x2a5941;};return a0_0x54c1();}var Blob=BlobModule;class HelperKit{constructor(){const _0x5caa36=a0_0x38dbd7;this[_0x5caa36(0x195)]={'documentTranslation':_0x5caa36(0x194),'speechToText':_0x5caa36(0x1ba),'textToSpeech':'6399855db5b79d46afb834c5','textToText':_0x5caa36(0x1a4),'imageTranslation':_0x5caa36(0x19b),'liveAudioVideoCall':_0x5caa36(0x1bd)},this[_0x5caa36(0x1bb)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x5caa36(0x1b7)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x5caa36(0x1a3)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async['checkAccess'](){const _0x11a5f5=await validateAccess();return _0x11a5f5;}async[a0_0x38dbd7(0x1a2)](_0x302147){const _0x874e65=a0_0x38dbd7,_0x3168d3=await this[_0x874e65(0x19a)]();if(!_0x3168d3)return null;return this['FeatureID'][_0x302147]??null;}async[a0_0x38dbd7(0x1aa)](_0x36377e){const _0x2fb4fe=a0_0x38dbd7,_0x569ebe=await this[_0x2fb4fe(0x19a)]();if(!_0x569ebe)return null;return this[_0x2fb4fe(0x1bb)][_0x36377e]??null;}async[a0_0x38dbd7(0x19d)](_0x1cb1f4){const _0x5e46b5=a0_0x38dbd7,_0x40add1=await this[_0x5e46b5(0x19a)]();if(!_0x40add1)return null;return this[_0x5e46b5(0x1b7)][_0x1cb1f4]??null;}async['getUnitEnum'](_0x2a0e7c){const _0x55bb39=await this['checkAccess']();if(!_0x55bb39)return null;return this['unitsEnum'][_0x2a0e7c]??null;}async[a0_0x38dbd7(0x1be)](){const _0x613581=a0_0x38dbd7,_0x1e441e=await this[_0x613581(0x19a)]();if(!_0x1e441e)return'$';const {dirs:{DownloadDir:_0xca680b,DocumentDir:_0x5d2433}}=Blob['fs'];return reactNative[_0x613581(0x1c0)][_0x613581(0x1a8)]({'ios':_0x5d2433,'android':_0xca680b[_0x613581(0x1bf)]('/Download','')+_0x613581(0x1b0)});}async['encryptData'](_0x845999,_0x13ee8a){const _0xc04840=a0_0x38dbd7,_0x233111=await this['checkAccess']();if(!_0x233111)return _0xc04840(0x1b2);return CryptoJS[_0xc04840(0x1b1)][_0xc04840(0x19c)](JSON[_0xc04840(0x1b4)](_0x845999),_0x13ee8a)[_0xc04840(0x1b9)]();}async[a0_0x38dbd7(0x1a6)](){const _0x134a46=a0_0x38dbd7,_0x1047fe=await this[_0x134a46(0x19a)]();if(!_0x1047fe)return'';return _0x134a46(0x1b8);}async[a0_0x38dbd7(0x1a5)](){const _0x1032ea=await this['checkAccess']();if(!_0x1032ea)return'';return'performAction';}async['checkFeature'](){const _0x2a9812=a0_0x38dbd7,_0x15064f=await this[_0x2a9812(0x19a)]();if(!_0x15064f)return![];return!![];}}var Helper=new HelperKit();function a0_0x136b(_0x42222d,_0x2bf94d){_0x42222d=_0x42222d-0x192;const _0x54c1ef=a0_0x54c1();let _0x136b28=_0x54c1ef[_0x42222d];return _0x136b28;}module[a0_0x38dbd7(0x19f)]=Helper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trulincohelper",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "files": [