trulincohelper 1.0.3 → 1.0.4

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 +5 -2
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x41b7c5=a0_0x18f0;function a0_0x18f0(_0x124adf,_0x23313c){_0x124adf=_0x124adf-0x17d;const _0xdba1f9=a0_0xdba1();let _0x18f0dd=_0xdba1f9[_0x124adf];return _0x18f0dd;}(function(_0x34ba30,_0x28bc2b){const _0x19ac14=a0_0x18f0,_0xe2927a=_0x34ba30();while(!![]){try{const _0x5cd407=-parseInt(_0x19ac14(0x185))/0x1+parseInt(_0x19ac14(0x186))/0x2*(-parseInt(_0x19ac14(0x198))/0x3)+-parseInt(_0x19ac14(0x183))/0x4*(parseInt(_0x19ac14(0x19b))/0x5)+-parseInt(_0x19ac14(0x17d))/0x6+parseInt(_0x19ac14(0x19e))/0x7*(parseInt(_0x19ac14(0x189))/0x8)+-parseInt(_0x19ac14(0x184))/0x9+parseInt(_0x19ac14(0x18d))/0xa;if(_0x5cd407===_0x28bc2b)break;else _0xe2927a['push'](_0xe2927a['shift']());}catch(_0x25479d){_0xe2927a['push'](_0xe2927a['shift']());}}}(a0_0xdba1,0x7f5a9));function a0_0xdba1(){const _0x8235cf=['exports','27MpvWtB','toString','ContactSyncStatus','1805tWyYLw','getContactSyncStatus','crypto-js','6259127DFYlIc','encryptData','msgStatus','2752680yigpLG','unitsEnum','6399871ab5b79d46afb834df','data','replace','Platform','120ZlCWGZ','2577024GYImMH','574491vtiayr','152426cOeXml','encrypt','639985a7b5b79d46afb834d3','8JOXwGp','63998583b5b79d46afb834cc','6399855db5b79d46afb834c5','allowed','16438340YLHvDM','react-native','/Android/media/com.inw.trulinco/Trulinco','AES','639983c1b5b79d46afb834be','checkAccess','getFeatureId','select','https://yourapi.com/validate','get'];a0_0xdba1=function(){return _0x8235cf;};return a0_0xdba1();}var axios=require('axios'),reactNative=require(a0_0x41b7c5(0x18e)),ReactNativeBlobUtil=require('react-native-blob-util'),CryptoJS=require(a0_0x41b7c5(0x19d));let cachedValidation=null;const validateAccess=async()=>{const _0x117aea=a0_0x41b7c5;if(cachedValidation!==null)return cachedValidation;try{const _0x5464b0=await axios[_0x117aea(0x196)](_0x117aea(0x195));return cachedValidation=_0x5464b0[_0x117aea(0x180)]?.[_0x117aea(0x18c)]===!![],cachedValidation;}catch(_0x1e5b4c){return cachedValidation=![],![];}};class HelperKit{constructor(){const _0x50c4e3=a0_0x41b7c5;this['FeatureID']={'documentTranslation':'63998387b5b79d46afb834b2','speechToText':_0x50c4e3(0x191),'textToSpeech':_0x50c4e3(0x18b),'textToText':_0x50c4e3(0x18a),'imageTranslation':_0x50c4e3(0x188),'liveAudioVideoCall':_0x50c4e3(0x17f)},this[_0x50c4e3(0x1a0)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x50c4e3(0x19a)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x50c4e3(0x17e)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async['checkAccess'](){const _0x31600f=await validateAccess();return _0x31600f;}async[a0_0x41b7c5(0x193)](_0x3d112c){const _0x245a90=a0_0x41b7c5,_0x750409=await this[_0x245a90(0x192)]();if(!_0x750409)return null;return this['FeatureID'][_0x3d112c]??null;}async['getMsgStatus'](_0x185932){const _0x141c6f=a0_0x41b7c5,_0x4bf266=await this[_0x141c6f(0x192)]();if(!_0x4bf266)return null;return this[_0x141c6f(0x1a0)][_0x185932]??null;}async[a0_0x41b7c5(0x19c)](_0x4297fc){const _0x5d7b69=await this['checkAccess']();if(!_0x5d7b69)return null;return this['ContactSyncStatus'][_0x4297fc]??null;}async['getUnitEnum'](_0x590323){const _0x26ab54=a0_0x41b7c5,_0x3a1865=await this[_0x26ab54(0x192)]();if(!_0x3a1865)return null;return this['unitsEnum'][_0x590323]??null;}async['getMediaPath'](){const _0x321c85=a0_0x41b7c5,_0x5e9ca8=await this[_0x321c85(0x192)]();if(!_0x5e9ca8)return'$';const {dirs:{DownloadDir:_0x273cb4,DocumentDir:_0x5a0c60}}=ReactNativeBlobUtil['fs'];return reactNative[_0x321c85(0x182)][_0x321c85(0x194)]({'ios':_0x5a0c60,'android':_0x273cb4[_0x321c85(0x181)]('/Download','')+_0x321c85(0x18f)});}async[a0_0x41b7c5(0x19f)](_0x5f86b4,_0x1951e6){const _0x3d1349=a0_0x41b7c5,_0x509bba=await this[_0x3d1349(0x192)]();if(!_0x509bba)return'12345#$';return CryptoJS[_0x3d1349(0x190)][_0x3d1349(0x187)](JSON['stringify'](_0x5f86b4),_0x1951e6)[_0x3d1349(0x199)]();}}var Helper=new HelperKit();module[a0_0x41b7c5(0x197)]=Helper;
1
+ 'use strict';const a0_0xce642=a0_0x4dd1;(function(_0x5c84f3,_0x2ec696){const _0x42b22f=a0_0x4dd1,_0x1497cd=_0x5c84f3();while(!![]){try{const _0x50efea=-parseInt(_0x42b22f(0x10d))/0x1+-parseInt(_0x42b22f(0x10b))/0x2*(-parseInt(_0x42b22f(0x10a))/0x3)+parseInt(_0x42b22f(0x120))/0x4+-parseInt(_0x42b22f(0xff))/0x5*(-parseInt(_0x42b22f(0x10c))/0x6)+-parseInt(_0x42b22f(0xfb))/0x7*(-parseInt(_0x42b22f(0x122))/0x8)+parseInt(_0x42b22f(0x117))/0x9*(-parseInt(_0x42b22f(0x119))/0xa)+-parseInt(_0x42b22f(0x100))/0xb;if(_0x50efea===_0x2ec696)break;else _0x1497cd['push'](_0x1497cd['shift']());}catch(_0x3411df){_0x1497cd['push'](_0x1497cd['shift']());}}}(a0_0xfaa8,0x99a1c));function a0_0x4dd1(_0xe75c5,_0x4a8a70){_0xe75c5=_0xe75c5-0xfb;const _0xfaa88e=a0_0xfaa8();let _0x4dd1ce=_0xfaa88e[_0xe75c5];return _0x4dd1ce;}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 _0x2b0b72=a0_0xce642;if(cachedValidation!==null)return cachedValidation;try{const _0xa129df=await axios[_0x2b0b72(0x105)](_0x2b0b72(0x112));return cachedValidation=_0xa129df?.[_0x2b0b72(0x111)]===!![],cachedValidation;}catch(_0x5cb2a9){return cachedValidation=![],![];}};class HelperKit{constructor(){const _0x433945=a0_0xce642;this[_0x433945(0x11c)]={'documentTranslation':_0x433945(0x113),'speechToText':_0x433945(0x11a),'textToSpeech':_0x433945(0xfe),'textToText':_0x433945(0xfd),'imageTranslation':'639985a7b5b79d46afb834d3','liveAudioVideoCall':_0x433945(0x110)},this[_0x433945(0x10f)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x433945(0x101)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this['unitsEnum']={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0xce642(0x11d)](){const _0x3c3a3e=await validateAccess();return _0x3c3a3e;}async[a0_0xce642(0x109)](_0x47ad4a){const _0xd44a06=a0_0xce642,_0x21615b=await this[_0xd44a06(0x11d)]();if(!_0x21615b)return null;return this[_0xd44a06(0x11c)][_0x47ad4a]??null;}async[a0_0xce642(0x106)](_0x4415cf){const _0x54ec83=a0_0xce642,_0x53cd47=await this[_0x54ec83(0x11d)]();if(!_0x53cd47)return null;return this[_0x54ec83(0x10f)][_0x4415cf]??null;}async['getContactSyncStatus'](_0x486dcd){const _0x1d7d14=a0_0xce642,_0x3df956=await this[_0x1d7d14(0x11d)]();if(!_0x3df956)return null;return this['ContactSyncStatus'][_0x486dcd]??null;}async[a0_0xce642(0x115)](_0xbbf6e){const _0x16fa68=a0_0xce642,_0x46b471=await this[_0x16fa68(0x11d)]();if(!_0x46b471)return null;return this[_0x16fa68(0x11f)][_0xbbf6e]??null;}async[a0_0xce642(0x114)](){const _0x295d65=a0_0xce642,_0x23b1e4=await this['checkAccess']();if(!_0x23b1e4)return'$';const {dirs:{DownloadDir:_0x898780,DocumentDir:_0x337c3a}}=ReactNativeBlobUtil['fs'];return reactNative[_0x295d65(0x102)][_0x295d65(0x121)]({'ios':_0x337c3a,'android':_0x898780[_0x295d65(0x108)](_0x295d65(0x103),'')+_0x295d65(0x107)});}async['encryptData'](_0x557591,_0x2fec0a){const _0x4dadab=a0_0xce642,_0x56a7e1=await this[_0x4dadab(0x11d)]();if(!_0x56a7e1)return _0x4dadab(0x11e);return CryptoJS[_0x4dadab(0x116)][_0x4dadab(0x10e)](JSON[_0x4dadab(0x118)](_0x557591),_0x2fec0a)['toString']();}}var Helper=new HelperKit();module[a0_0xce642(0xfc)]=Helper;function a0_0xfaa8(){const _0x475f44=['get','getMsgStatus','/Android/media/com.inw.trulinco/Trulinco','replace','getFeatureId','3eYpOHF','2378108zRJvuI','6267582ATitlU','339395iovdjH','encrypt','msgStatus','6399871ab5b79d46afb834df','data','https://stageapi.go4whatsup.com/appcalling','63998387b5b79d46afb834b2','getMediaPath','getUnitEnum','AES','18lFlAAi','stringify','2848060kLEMgA','639983c1b5b79d46afb834be','react-native-blob-util','FeatureID','checkAccess','12345#$','unitsEnum','3637640ONALws','select','32ykJXGy','756553yLbOKw','exports','63998583b5b79d46afb834cc','6399855db5b79d46afb834c5','5aEnNdc','22408034sLKWsE','ContactSyncStatus','Platform','/Download','react-native'];a0_0xfaa8=function(){return _0x475f44;};return a0_0xfaa8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trulincohelper",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -26,5 +26,8 @@
26
26
  "@rollup/plugin-node-resolve": "^16.0.3",
27
27
  "javascript-obfuscator": "^5.3.0",
28
28
  "rollup": "^4.57.1"
29
+ },
30
+ "dependencies": {
31
+ "rollup-plugin-javascript-obfuscator": "^1.0.4"
29
32
  }
30
- }
33
+ }