trulincohelper 1.0.7 → 1.0.9

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_0x376b5b=a0_0x23d6;(function(_0x3001cb,_0x14abb3){const _0x53b4f4=a0_0x23d6,_0x50e0cf=_0x3001cb();while(!![]){try{const _0x13c988=parseInt(_0x53b4f4(0x167))/0x1+parseInt(_0x53b4f4(0x15c))/0x2*(-parseInt(_0x53b4f4(0x151))/0x3)+-parseInt(_0x53b4f4(0x15f))/0x4*(parseInt(_0x53b4f4(0x161))/0x5)+-parseInt(_0x53b4f4(0x159))/0x6*(parseInt(_0x53b4f4(0x13a))/0x7)+-parseInt(_0x53b4f4(0x15b))/0x8+parseInt(_0x53b4f4(0x143))/0x9*(-parseInt(_0x53b4f4(0x162))/0xa)+-parseInt(_0x53b4f4(0x15a))/0xb*(-parseInt(_0x53b4f4(0x141))/0xc);if(_0x13c988===_0x14abb3)break;else _0x50e0cf['push'](_0x50e0cf['shift']());}catch(_0x59a1ed){_0x50e0cf['push'](_0x50e0cf['shift']());}}}(a0_0x2651,0x58de3));function a0_0x23d6(_0x5d6025,_0x611991){_0x5d6025=_0x5d6025-0x139;const _0x265163=a0_0x2651();let _0x23d6aa=_0x265163[_0x5d6025];return _0x23d6aa;}var axios=require(a0_0x376b5b(0x13b)),reactNative=require(a0_0x376b5b(0x16c)),ReactNativeBlobUtil=require(a0_0x376b5b(0x16d)),CryptoJS=require(a0_0x376b5b(0x146));function a0_0x2651(){const _0x4b7421=['/Download','toString','6399855db5b79d46afb834c5','Error\x20response\x20data:','react-native','react-native-blob-util','63998387b5b79d46afb834b2','getMsgStatus','log','12345#$','AES','19439JBMSaP','axios','encrypt','https://stageapi.go4whatsup.com/appcalling','Error\x20response\x20status:','select','get','15684WTbWrp','stringify','18mGqcjM','Platform','msgStatus','crypto-js','unitsEnum','639985a7b5b79d46afb834d3','getFeatureId','639983c1b5b79d46afb834be','Responsessssss---1','checkAccess','Responsessssss---2','data','message','status','1501698gEfuKt','exports','request','ContactSyncStatus','No\x20response\x20received:','Error\x20setting\x20up\x20request:','getUnitEnum','replace','636lottaH','18623yTxtOS','315328gwYLLv','2VmJsDm','63998583b5b79d46afb834cc','Response\x20data:','7044KXufte','getMediaPath','1735LwEZdZ','3509070xncOTY','_header','6399871ab5b79d46afb834df','response','FeatureID','298477hNTXBm'];a0_0x2651=function(){return _0x4b7421;};return a0_0x2651();}let cachedValidation=null;const validateAccess=async()=>{const _0x584a45=a0_0x376b5b;console[_0x584a45(0x170)](_0x584a45(0x14b)),console[_0x584a45(0x170)](_0x584a45(0x14d));try{const _0xc513d2=await axios[_0x584a45(0x140)](_0x584a45(0x13d));return console[_0x584a45(0x170)](_0x584a45(0x15e),_0xc513d2[_0x584a45(0x14e)]),console[_0x584a45(0x170)]('Response\x20status:',_0xc513d2[_0x584a45(0x150)]),cachedValidation=_0xc513d2?.[_0x584a45(0x14e)]===!![],cachedValidation;}catch(_0x389dfc){if(_0x389dfc['response'])console[_0x584a45(0x170)](_0x584a45(0x16b),_0x389dfc['response'][_0x584a45(0x14e)]),console[_0x584a45(0x170)](_0x584a45(0x13e),_0x389dfc[_0x584a45(0x165)][_0x584a45(0x150)]);else _0x389dfc[_0x584a45(0x153)]?console[_0x584a45(0x170)](_0x584a45(0x155),_0x389dfc[_0x584a45(0x153)][_0x584a45(0x163)]):console[_0x584a45(0x170)](_0x584a45(0x156),_0x389dfc[_0x584a45(0x14f)]);return cachedValidation=![],![];}};class HelperKit{constructor(){const _0x4dc3b6=a0_0x376b5b;this['FeatureID']={'documentTranslation':_0x4dc3b6(0x16e),'speechToText':_0x4dc3b6(0x14a),'textToSpeech':_0x4dc3b6(0x16a),'textToText':_0x4dc3b6(0x15d),'imageTranslation':_0x4dc3b6(0x148),'liveAudioVideoCall':_0x4dc3b6(0x164)},this[_0x4dc3b6(0x145)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x4dc3b6(0x154)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x4dc3b6(0x147)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async['checkAccess'](){const _0x59980b=await validateAccess();return _0x59980b;}async[a0_0x376b5b(0x149)](_0x8d39d4){const _0x402c48=a0_0x376b5b,_0x40828c=await this[_0x402c48(0x14c)]();if(!_0x40828c)return null;return this[_0x402c48(0x166)][_0x8d39d4]??null;}async[a0_0x376b5b(0x16f)](_0x1003b9){const _0x50546b=a0_0x376b5b,_0x515c5e=await this[_0x50546b(0x14c)]();if(!_0x515c5e)return null;return this[_0x50546b(0x145)][_0x1003b9]??null;}async['getContactSyncStatus'](_0x1378bf){const _0x3aab71=a0_0x376b5b,_0x2fd60a=await this[_0x3aab71(0x14c)]();if(!_0x2fd60a)return null;return this[_0x3aab71(0x154)][_0x1378bf]??null;}async[a0_0x376b5b(0x157)](_0x1ba773){const _0x1bef4a=a0_0x376b5b,_0x19ca37=await this[_0x1bef4a(0x14c)]();if(!_0x19ca37)return null;return this[_0x1bef4a(0x147)][_0x1ba773]??null;}async[a0_0x376b5b(0x160)](){const _0x3cb975=a0_0x376b5b,_0xba0d2a=await this[_0x3cb975(0x14c)]();if(!_0xba0d2a)return'$';const {dirs:{DownloadDir:_0x2bb9c3,DocumentDir:_0x261acf}}=ReactNativeBlobUtil['fs'];return reactNative[_0x3cb975(0x144)][_0x3cb975(0x13f)]({'ios':_0x261acf,'android':_0x2bb9c3[_0x3cb975(0x158)](_0x3cb975(0x168),'')+'/Android/media/com.inw.trulinco/Trulinco'});}async['encryptData'](_0xd245f,_0xe76654){const _0x265c8c=a0_0x376b5b,_0x2d9757=await this[_0x265c8c(0x14c)]();if(!_0x2d9757)return _0x265c8c(0x171);return CryptoJS[_0x265c8c(0x139)][_0x265c8c(0x13c)](JSON[_0x265c8c(0x142)](_0xd245f),_0xe76654)[_0x265c8c(0x169)]();}}var Helper=new HelperKit();module[a0_0x376b5b(0x152)]=Helper;
1
+ 'use strict';function a0_0x31dd(_0x4ba533,_0x4217f0){_0x4ba533=_0x4ba533-0xd9;const _0x4d24ab=a0_0x4d24();let _0x31dd82=_0x4d24ab[_0x4ba533];return _0x31dd82;}const a0_0x42d78e=a0_0x31dd;(function(_0x5b1bf7,_0x5d1150){const _0x3b95fc=a0_0x31dd,_0x54f8c4=_0x5b1bf7();while(!![]){try{const _0x21cd19=parseInt(_0x3b95fc(0xf4))/0x1*(-parseInt(_0x3b95fc(0xef))/0x2)+-parseInt(_0x3b95fc(0xe8))/0x3+-parseInt(_0x3b95fc(0xe1))/0x4*(-parseInt(_0x3b95fc(0xe5))/0x5)+-parseInt(_0x3b95fc(0xdc))/0x6*(-parseInt(_0x3b95fc(0x109))/0x7)+-parseInt(_0x3b95fc(0xe2))/0x8+parseInt(_0x3b95fc(0xe4))/0x9*(parseInt(_0x3b95fc(0xe7))/0xa)+-parseInt(_0x3b95fc(0xf0))/0xb*(-parseInt(_0x3b95fc(0xf5))/0xc);if(_0x21cd19===_0x5d1150)break;else _0x54f8c4['push'](_0x54f8c4['shift']());}catch(_0x1cd2f5){_0x54f8c4['push'](_0x54f8c4['shift']());}}}(a0_0x4d24,0x3bd14));var axios=require('axios'),reactNative=require('react-native'),ReactNativeBlobUtil=require('react-native-blob-util'),CryptoJS=require('crypto-js');let cachedValidation=null;const validateAccess=async()=>{const _0x416c58=a0_0x42d78e;console[_0x416c58(0x107)](_0x416c58(0xff)),console['log'](_0x416c58(0xec));try{const _0x2d6da9=await axios[_0x416c58(0xda)](_0x416c58(0xfe));return console[_0x416c58(0x107)](_0x416c58(0xf3),_0x2d6da9['data']),console[_0x416c58(0x107)](_0x416c58(0x104),_0x2d6da9[_0x416c58(0xf1)]),cachedValidation=_0x2d6da9?.[_0x416c58(0xe9)]?.[_0x416c58(0xe9)]===!![],cachedValidation;}catch(_0x4ac8b8){if(_0x4ac8b8[_0x416c58(0x105)])console['log'](_0x416c58(0xde),_0x4ac8b8[_0x416c58(0x105)]['data']),console[_0x416c58(0x107)](_0x416c58(0x101),_0x4ac8b8[_0x416c58(0x105)][_0x416c58(0xf1)]);else _0x4ac8b8[_0x416c58(0x103)]?console['log'](_0x416c58(0x102),_0x4ac8b8['request']['_header']):console[_0x416c58(0x107)](_0x416c58(0xdb),_0x4ac8b8[_0x416c58(0x108)]);return cachedValidation=![],![];}};class HelperKit{constructor(){const _0x4be7d2=a0_0x42d78e;this[_0x4be7d2(0xed)]={'documentTranslation':_0x4be7d2(0x10a),'speechToText':_0x4be7d2(0x106),'textToSpeech':_0x4be7d2(0xdf),'textToText':'63998583b5b79d46afb834cc','imageTranslation':_0x4be7d2(0xf6),'liveAudioVideoCall':'6399871ab5b79d46afb834df'},this['msgStatus']={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x4be7d2(0xe6)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x4be7d2(0xeb)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0x42d78e(0xdd)](){const _0x5daa90=await validateAccess();return _0x5daa90;}async['getFeatureId'](_0x1e95fb){const _0x296086=a0_0x42d78e,_0x37b748=await this[_0x296086(0xdd)]();if(!_0x37b748)return null;return this['FeatureID'][_0x1e95fb]??null;}async[a0_0x42d78e(0xee)](_0x1653c3){const _0x28ea6f=a0_0x42d78e,_0x3af446=await this[_0x28ea6f(0xdd)]();if(!_0x3af446)return null;return this['msgStatus'][_0x1653c3]??null;}async[a0_0x42d78e(0xe0)](_0x1f5d5b){const _0x338cd8=a0_0x42d78e,_0x2cad90=await this[_0x338cd8(0xdd)]();if(!_0x2cad90)return null;return this[_0x338cd8(0xe6)][_0x1f5d5b]??null;}async[a0_0x42d78e(0xf7)](_0x4229ac){const _0x549862=await this['checkAccess']();if(!_0x549862)return null;return this['unitsEnum'][_0x4229ac]??null;}async[a0_0x42d78e(0xfb)](){const _0x17e089=a0_0x42d78e,_0x21435c=await this[_0x17e089(0xdd)]();if(!_0x21435c)return'$';const {dirs:{DownloadDir:_0x3d16d8,DocumentDir:_0x5b2a9f}}=ReactNativeBlobUtil['fs'];return reactNative[_0x17e089(0xfd)][_0x17e089(0xf9)]({'ios':_0x5b2a9f,'android':_0x3d16d8[_0x17e089(0xfc)]('/Download','')+'/Android/media/com.inw.trulinco/Trulinco'});}async['encryptData'](_0x3b6ab4,_0x58e9dd){const _0x530ff2=a0_0x42d78e,_0x5d8e55=await this[_0x530ff2(0xdd)]();if(!_0x5d8e55)return _0x530ff2(0x100);return CryptoJS[_0x530ff2(0xea)][_0x530ff2(0xfa)](JSON[_0x530ff2(0xf8)](_0x3b6ab4),_0x58e9dd)[_0x530ff2(0xe3)]();}}var Helper=new HelperKit();module['exports']=Helper;function a0_0x4d24(){const _0x3f2cbc=['Platform','https://stageapi.go4whatsup.com/appcalling','Responsessssss---1','12345#$','Error\x20response\x20status:','No\x20response\x20received:','request','Response\x20status:','response','639983c1b5b79d46afb834be','log','message','21loRkvO','63998387b5b79d46afb834b2','axios','get','Error\x20setting\x20up\x20request:','5034AHuZrh','checkAccess','Error\x20response\x20data:','6399855db5b79d46afb834c5','getContactSyncStatus','12vWBaIh','2548672SPxGnA','toString','1077237wfgTzh','80875hmfKYW','ContactSyncStatus','10nlADlj','475230EdCQYx','data','AES','unitsEnum','Responsessssss---2','FeatureID','getMsgStatus','2Befpyu','82577ikfoxG','status','react-native-blob-util','Response\x20data:','342062vxfdki','1428RZqFae','639985a7b5b79d46afb834d3','getUnitEnum','stringify','select','encrypt','getMediaPath','replace'];a0_0x4d24=function(){return _0x3f2cbc;};return a0_0x4d24();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trulincohelper",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "files": [