trulincohelper 1.0.5 → 1.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +8 -3
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function a0_0x2f78(){const _0x2d814a=['1486600TQFjmV','Error\x20response\x20status:','Responsessssss---1','https://stageapi.go4whatsup.com/appcalling','Platform','unitsEnum','No\x20response\x20received:','10JYraSt','getMsgStatus','select','10AnWLDq','FeatureID','react-native-blob-util','getFeatureId','msgStatus','encryptData','request','26327VTZpGa','639985a7b5b79d46afb834d3','1730498uyIBKU','react-native','crypto-js','data','get','64sceTQU','_header','639983c1b5b79d46afb834be','/Download','message','stringify','encrypt','Response\x20status:','39235IFfeTg','6399855db5b79d46afb834c5','414652LUloBa','log','axios','getContactSyncStatus','6399871ab5b79d46afb834df','AES','414RJQlnK','44964IvKJZb','response','checkAccess','getMediaPath','status','951162VIzykT','ContactSyncStatus','exports','63998583b5b79d46afb834cc'];a0_0x2f78=function(){return _0x2d814a;};return a0_0x2f78();}const a0_0x1b42a0=a0_0x7991;(function(_0x2d32c9,_0x5220e0){const _0x49275b=a0_0x7991,_0x5863aa=_0x2d32c9();while(!![]){try{const _0x5d833e=parseInt(_0x49275b(0x14a))/0x1*(parseInt(_0x49275b(0x131))/0x2)+parseInt(_0x49275b(0x158))/0x3+-parseInt(_0x49275b(0x14c))/0x4+-parseInt(_0x49275b(0x15c))/0x5+-parseInt(_0x49275b(0x152))/0x6*(-parseInt(_0x49275b(0x13b))/0x7)+-parseInt(_0x49275b(0x142))/0x8*(parseInt(_0x49275b(0x153))/0x9)+parseInt(_0x49275b(0x134))/0xa*(-parseInt(_0x49275b(0x13d))/0xb);if(_0x5d833e===_0x5220e0)break;else _0x5863aa['push'](_0x5863aa['shift']());}catch(_0x55b8b3){_0x5863aa['push'](_0x5863aa['shift']());}}}(a0_0x2f78,0x2a985));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 _0x51c0e6=a0_0x1b42a0;console[_0x51c0e6(0x14d)](_0x51c0e6(0x12c));if(cachedValidation!==null)return cachedValidation;console[_0x51c0e6(0x14d)]('Responsessssss---2');try{const _0x4f068c=await axios[_0x51c0e6(0x141)](_0x51c0e6(0x12d));return console['log']('Response\x20data:',_0x4f068c[_0x51c0e6(0x140)]),console[_0x51c0e6(0x14d)](_0x51c0e6(0x149),_0x4f068c['status']),cachedValidation=_0x4f068c?.['data']===!![],cachedValidation;}catch(_0x260c96){if(_0x260c96[_0x51c0e6(0x154)])console[_0x51c0e6(0x14d)]('Error\x20response\x20data:',_0x260c96[_0x51c0e6(0x154)][_0x51c0e6(0x140)]),console[_0x51c0e6(0x14d)](_0x51c0e6(0x15d),_0x260c96['response'][_0x51c0e6(0x157)]);else _0x260c96[_0x51c0e6(0x13a)]?console[_0x51c0e6(0x14d)](_0x51c0e6(0x130),_0x260c96[_0x51c0e6(0x13a)][_0x51c0e6(0x143)]):console['log']('Error\x20setting\x20up\x20request:',_0x260c96[_0x51c0e6(0x146)]);return cachedValidation=![],![];}};class HelperKit{constructor(){const _0x496690=a0_0x1b42a0;this[_0x496690(0x135)]={'documentTranslation':'63998387b5b79d46afb834b2','speechToText':_0x496690(0x144),'textToSpeech':_0x496690(0x14b),'textToText':_0x496690(0x15b),'imageTranslation':_0x496690(0x13c),'liveAudioVideoCall':_0x496690(0x150)},this[_0x496690(0x138)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this['ContactSyncStatus']={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x496690(0x12f)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0x1b42a0(0x155)](){const _0x17c4c9=await validateAccess();return _0x17c4c9;}async[a0_0x1b42a0(0x137)](_0x26f21d){const _0x7cdfa5=a0_0x1b42a0,_0x344926=await this[_0x7cdfa5(0x155)]();if(!_0x344926)return null;return this[_0x7cdfa5(0x135)][_0x26f21d]??null;}async[a0_0x1b42a0(0x132)](_0x393078){const _0x1e9ebf=a0_0x1b42a0,_0x119418=await this[_0x1e9ebf(0x155)]();if(!_0x119418)return null;return this['msgStatus'][_0x393078]??null;}async[a0_0x1b42a0(0x14f)](_0x51c8e4){const _0x42fb62=a0_0x1b42a0,_0x4986ed=await this[_0x42fb62(0x155)]();if(!_0x4986ed)return null;return this[_0x42fb62(0x159)][_0x51c8e4]??null;}async['getUnitEnum'](_0x98b440){const _0x236de2=a0_0x1b42a0,_0x214914=await this['checkAccess']();if(!_0x214914)return null;return this[_0x236de2(0x12f)][_0x98b440]??null;}async[a0_0x1b42a0(0x156)](){const _0xeef1db=a0_0x1b42a0,_0x11ba57=await this[_0xeef1db(0x155)]();if(!_0x11ba57)return'$';const {dirs:{DownloadDir:_0x5a9ded,DocumentDir:_0x539713}}=ReactNativeBlobUtil['fs'];return reactNative[_0xeef1db(0x12e)][_0xeef1db(0x133)]({'ios':_0x539713,'android':_0x5a9ded['replace'](_0xeef1db(0x145),'')+'/Android/media/com.inw.trulinco/Trulinco'});}async[a0_0x1b42a0(0x139)](_0x2b8334,_0x46516b){const _0x874d3a=a0_0x1b42a0,_0x36649d=await this[_0x874d3a(0x155)]();if(!_0x36649d)return'12345#$';return CryptoJS[_0x874d3a(0x151)][_0x874d3a(0x148)](JSON[_0x874d3a(0x147)](_0x2b8334),_0x46516b)['toString']();}}function a0_0x7991(_0x44ebd9,_0x189292){_0x44ebd9=_0x44ebd9-0x12c;const _0x2f7889=a0_0x2f78();let _0x799122=_0x2f7889[_0x44ebd9];return _0x799122;}var Helper=new HelperKit();module[a0_0x1b42a0(0x15a)]=Helper;
1
+ 'use strict';const a0_0x384363=a0_0xb83c;(function(_0x559044,_0x2084a4){const _0x184c3e=a0_0xb83c,_0x2c5194=_0x559044();while(!![]){try{const _0x49c7db=parseInt(_0x184c3e(0x194))/0x1*(-parseInt(_0x184c3e(0x18c))/0x2)+parseInt(_0x184c3e(0x197))/0x3*(-parseInt(_0x184c3e(0x1a2))/0x4)+-parseInt(_0x184c3e(0x18d))/0x5+parseInt(_0x184c3e(0x196))/0x6*(parseInt(_0x184c3e(0x1af))/0x7)+-parseInt(_0x184c3e(0x18a))/0x8+-parseInt(_0x184c3e(0x1a3))/0x9*(parseInt(_0x184c3e(0x1b2))/0xa)+parseInt(_0x184c3e(0x183))/0xb;if(_0x49c7db===_0x2084a4)break;else _0x2c5194['push'](_0x2c5194['shift']());}catch(_0x4ea0f6){_0x2c5194['push'](_0x2c5194['shift']());}}}(a0_0x394b,0x4d33a));function a0_0x394b(){const _0x3256fc=['getMediaPath','axios','Error\x20response\x20status:','message','crypto-js','639985a7b5b79d46afb834d3','63998387b5b79d46afb834b2','_header','data','unitsEnum','91zlvKsM','Error\x20setting\x20up\x20request:','/Android/media/com.inw.trulinco/Trulinco','330CTAmwE','No\x20response\x20received:','639983c1b5b79d46afb834be','13563286YEGfUV','checkAccess','select','getUnitEnum','Response\x20data:','Response\x20status:','exports','1327880rpvXhd','FeatureID','139108zARqbj','1505175FYMhIJ','replace','getMsgStatus','stringify','12345#$','msgStatus','encrypt','1drmADp','response','141282RlhJJd','165LfTHDI','request','6399855db5b79d46afb834c5','/Download','react-native','getContactSyncStatus','Platform','status','log','ContactSyncStatus','Responsessssss---2','37580lezoHO','46260afcliy','Responsessssss---1'];a0_0x394b=function(){return _0x3256fc;};return a0_0x394b();}function a0_0xb83c(_0x40045d,_0x428706){_0x40045d=_0x40045d-0x181;const _0x394bec=a0_0x394b();let _0xb83c70=_0x394bec[_0x40045d];return _0xb83c70;}var axios=require(a0_0x384363(0x1a6)),reactNative=require(a0_0x384363(0x19b)),ReactNativeBlobUtil=require('react-native-blob-util'),CryptoJS=require(a0_0x384363(0x1a9));let cachedValidation=null;const validateAccess=async()=>{const _0x10f08b=a0_0x384363;console[_0x10f08b(0x19f)](_0x10f08b(0x1a4)),console[_0x10f08b(0x19f)](_0x10f08b(0x1a1));try{const _0x2eda64=await axios['get']('https://stageapi.go4whatsup.com/appcalling');return console[_0x10f08b(0x19f)](_0x10f08b(0x187),_0x2eda64[_0x10f08b(0x1ad)]),console[_0x10f08b(0x19f)](_0x10f08b(0x188),_0x2eda64[_0x10f08b(0x19e)]),cachedValidation=_0x2eda64?.[_0x10f08b(0x1ad)]===!![],cachedValidation;}catch(_0x27fdd9){if(_0x27fdd9[_0x10f08b(0x195)])console[_0x10f08b(0x19f)]('Error\x20response\x20data:',_0x27fdd9[_0x10f08b(0x195)][_0x10f08b(0x1ad)]),console[_0x10f08b(0x19f)](_0x10f08b(0x1a7),_0x27fdd9[_0x10f08b(0x195)][_0x10f08b(0x19e)]);else _0x27fdd9[_0x10f08b(0x198)]?console[_0x10f08b(0x19f)](_0x10f08b(0x181),_0x27fdd9[_0x10f08b(0x198)][_0x10f08b(0x1ac)]):console[_0x10f08b(0x19f)](_0x10f08b(0x1b0),_0x27fdd9[_0x10f08b(0x1a8)]);return cachedValidation=![],![];}};class HelperKit{constructor(){const _0x51c450=a0_0x384363;this[_0x51c450(0x18b)]={'documentTranslation':_0x51c450(0x1ab),'speechToText':_0x51c450(0x182),'textToSpeech':_0x51c450(0x199),'textToText':'63998583b5b79d46afb834cc','imageTranslation':_0x51c450(0x1aa),'liveAudioVideoCall':'6399871ab5b79d46afb834df'},this[_0x51c450(0x192)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this['ContactSyncStatus']={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x51c450(0x1ae)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0x384363(0x184)](){const _0x5bb96f=await validateAccess();return _0x5bb96f;}async['getFeatureId'](_0x48a96f){const _0x3aff03=a0_0x384363,_0x4dc5e4=await this[_0x3aff03(0x184)]();if(!_0x4dc5e4)return null;return this[_0x3aff03(0x18b)][_0x48a96f]??null;}async[a0_0x384363(0x18f)](_0x3e6775){const _0x309800=a0_0x384363,_0x9be8d5=await this[_0x309800(0x184)]();if(!_0x9be8d5)return null;return this[_0x309800(0x192)][_0x3e6775]??null;}async[a0_0x384363(0x19c)](_0xf14755){const _0x3bd04d=a0_0x384363,_0x2f0d37=await this[_0x3bd04d(0x184)]();if(!_0x2f0d37)return null;return this[_0x3bd04d(0x1a0)][_0xf14755]??null;}async[a0_0x384363(0x186)](_0x593895){const _0x3f0681=a0_0x384363,_0x462115=await this[_0x3f0681(0x184)]();if(!_0x462115)return null;return this[_0x3f0681(0x1ae)][_0x593895]??null;}async[a0_0x384363(0x1a5)](){const _0x2716d8=a0_0x384363,_0x18dd15=await this[_0x2716d8(0x184)]();if(!_0x18dd15)return'$';const {dirs:{DownloadDir:_0x4479ed,DocumentDir:_0x39c839}}=ReactNativeBlobUtil['fs'];return reactNative[_0x2716d8(0x19d)][_0x2716d8(0x185)]({'ios':_0x39c839,'android':_0x4479ed[_0x2716d8(0x18e)](_0x2716d8(0x19a),'')+_0x2716d8(0x1b1)});}async['encryptData'](_0x1c2e96,_0x57caa2){const _0x474a58=a0_0x384363,_0x28ff0a=await this[_0x474a58(0x184)]();if(!_0x28ff0a)return _0x474a58(0x191);return CryptoJS['AES'][_0x474a58(0x193)](JSON[_0x474a58(0x190)](_0x1c2e96),_0x57caa2)['toString']();}}var Helper=new HelperKit();module[a0_0x384363(0x189)]=Helper;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "trulincohelper",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "dist/index.js",
5
+ "type": "module",
5
6
  "files": [
6
7
  "dist"
7
8
  ],
@@ -18,7 +19,8 @@
18
19
  "peerDependencies": {
19
20
  "axios": "*",
20
21
  "crypto-js": "*",
21
- "react-native-blob-util": "*"
22
+ "react-native-blob-util": "*",
23
+ "react-native": "*"
22
24
  },
23
25
  "devDependencies": {
24
26
  "axios": "^1.6.0",
@@ -27,9 +29,12 @@
27
29
  "@rollup/plugin-node-resolve": "^16.0.3",
28
30
  "javascript-obfuscator": "^5.3.0",
29
31
  "rollup": "^4.57.1",
30
- "react-native-blob-util": "^0.17.0"
32
+ "react-native-blob-util": "^0.17.0",
33
+ "react-native": "0.73.0",
34
+ "crypto-js": "^4.2.0"
31
35
  },
32
36
  "dependencies": {
33
37
  "rollup-plugin-javascript-obfuscator": "^1.0.4"
34
38
  }
39
+
35
40
  }