trulincohelper 1.1.0 → 1.1.1

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_0xd1af2d=a0_0x51a6;(function(_0x459466,_0x14eb12){const _0x40328b=a0_0x51a6,_0x11531f=_0x459466();while(!![]){try{const _0x1a7469=parseInt(_0x40328b(0xdc))/0x1+parseInt(_0x40328b(0xd3))/0x2*(parseInt(_0x40328b(0xde))/0x3)+parseInt(_0x40328b(0xee))/0x4+-parseInt(_0x40328b(0xd7))/0x5*(parseInt(_0x40328b(0xf4))/0x6)+parseInt(_0x40328b(0xf1))/0x7+-parseInt(_0x40328b(0xe1))/0x8+-parseInt(_0x40328b(0xd5))/0x9;if(_0x1a7469===_0x14eb12)break;else _0x11531f['push'](_0x11531f['shift']());}catch(_0x2fb393){_0x11531f['push'](_0x11531f['shift']());}}}(a0_0x1280,0x49ad5));var axios=require('axios'),reactNative=require('react-native'),ReactNativeBlobUtil=require('react-native-blob-util'),CryptoJS=require('crypto-js');function a0_0x1280(){const _0x53a98e=['exports','getContactSyncStatus','msgStatus','639983c1b5b79d46afb834be','response','checkAccess','status','4abTyJR','get','3696570jZwLLS','Platform','3375FLWvWE','12345#$','63998583b5b79d46afb834cc','encrypt','request','369242YoURqA','react-native-blob-util','381912XYBFrU','ContactSyncStatus','getMsgStatus','775120PfVyuA','No\x20response\x20received:','encryptData','Responsessssss---1','639985a7b5b79d46afb834d3','6399871ab5b79d46afb834df','/Android/media/com.inw.trulinco/Trulinco','FeatureID','getUnitEnum','unitsEnum','Response\x20status:','/Download','select','1378764rXlWad','stringify','_header','2377795qTqJNe','Error\x20setting\x20up\x20request:','data','4434EIApwk','log','Responsessssss---2','Response\x20data:','react-native'];a0_0x1280=function(){return _0x53a98e;};return a0_0x1280();}let cachedValidation=null;const validateAccess=async()=>{const _0x26a4ff=a0_0xd1af2d;console['log'](_0x26a4ff(0xe4)),console['log'](_0x26a4ff(0xf6));try{const _0x58e4ad=await axios[_0x26a4ff(0xd4)]('https://stageapi.go4whatsup.com/appcalling');return console[_0x26a4ff(0xf5)](_0x26a4ff(0xf7),_0x58e4ad[_0x26a4ff(0xf3)]),console[_0x26a4ff(0xf5)](_0x26a4ff(0xeb),_0x58e4ad[_0x26a4ff(0xd2)]),cachedValidation=_0x58e4ad?.[_0x26a4ff(0xf3)]?.['data']===!![],cachedValidation;}catch(_0x34a2cd){if(_0x34a2cd[_0x26a4ff(0xfd)])console[_0x26a4ff(0xf5)]('Error\x20response\x20data:',_0x34a2cd['response']['data']),console['log']('Error\x20response\x20status:',_0x34a2cd[_0x26a4ff(0xfd)][_0x26a4ff(0xd2)]);else _0x34a2cd[_0x26a4ff(0xdb)]?console[_0x26a4ff(0xf5)](_0x26a4ff(0xe2),_0x34a2cd[_0x26a4ff(0xdb)][_0x26a4ff(0xf0)]):console[_0x26a4ff(0xf5)](_0x26a4ff(0xf2),_0x34a2cd['message']);return cachedValidation=![],![];}};function a0_0x51a6(_0x78f31b,_0x2dd43c){_0x78f31b=_0x78f31b-0xd1;const _0x12801c=a0_0x1280();let _0x51a6c7=_0x12801c[_0x78f31b];return _0x51a6c7;}class HelperKit{constructor(){const _0x54aa44=a0_0xd1af2d;this['FeatureID']={'documentTranslation':'63998387b5b79d46afb834b2','speechToText':_0x54aa44(0xfc),'textToSpeech':'6399855db5b79d46afb834c5','textToText':_0x54aa44(0xd9),'imageTranslation':_0x54aa44(0xe5),'liveAudioVideoCall':_0x54aa44(0xe6)},this[_0x54aa44(0xfb)]={'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['unitsEnum']={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0xd1af2d(0xd1)](){const _0x33660f=await validateAccess();return _0x33660f;}async['getFeatureId'](_0xc32874){const _0x361f11=a0_0xd1af2d,_0x1fa2eb=await this['checkAccess']();if(!_0x1fa2eb)return null;return this[_0x361f11(0xe8)][_0xc32874]??null;}async[a0_0xd1af2d(0xe0)](_0x157f21){const _0x9da86e=a0_0xd1af2d,_0x3f2f70=await this['checkAccess']();if(!_0x3f2f70)return null;return this[_0x9da86e(0xfb)][_0x157f21]??null;}async[a0_0xd1af2d(0xfa)](_0x9d4f42){const _0x533ffb=a0_0xd1af2d,_0x19eb02=await this[_0x533ffb(0xd1)]();if(!_0x19eb02)return null;return this[_0x533ffb(0xdf)][_0x9d4f42]??null;}async[a0_0xd1af2d(0xe9)](_0xa6a1fb){const _0x2d8e5e=a0_0xd1af2d,_0x2b5dfc=await this[_0x2d8e5e(0xd1)]();if(!_0x2b5dfc)return null;return this[_0x2d8e5e(0xea)][_0xa6a1fb]??null;}async['getMediaPath'](){const _0x5082f7=a0_0xd1af2d,_0x48ca95=await this[_0x5082f7(0xd1)]();if(!_0x48ca95)return'$';const {dirs:{DownloadDir:_0x5ec280,DocumentDir:_0x4474f8}}=ReactNativeBlobUtil['fs'];return reactNative[_0x5082f7(0xd6)][_0x5082f7(0xed)]({'ios':_0x4474f8,'android':_0x5ec280['replace'](_0x5082f7(0xec),'')+_0x5082f7(0xe7)});}async[a0_0xd1af2d(0xe3)](_0x161c7a,_0x2305dd){const _0x25219f=a0_0xd1af2d,_0x2d3b99=await this[_0x25219f(0xd1)]();if(!_0x2d3b99)return _0x25219f(0xd8);return CryptoJS['AES'][_0x25219f(0xda)](JSON[_0x25219f(0xef)](_0x161c7a),_0x2305dd)['toString']();}}var Helper=new HelperKit();module[a0_0xd1af2d(0xf9)]=Helper;
1
+ 'use strict';function a0_0x4b28(_0x280b1d,_0x54ff6f){_0x280b1d=_0x280b1d-0x1df;const _0x29c4e4=a0_0x29c4();let _0x4b28e3=_0x29c4e4[_0x280b1d];return _0x4b28e3;}const a0_0x8f17c0=a0_0x4b28;(function(_0x4db6e2,_0x3cd7a0){const _0x20b2f7=a0_0x4b28,_0x228d42=_0x4db6e2();while(!![]){try{const _0x44947b=-parseInt(_0x20b2f7(0x1fe))/0x1+-parseInt(_0x20b2f7(0x20c))/0x2*(parseInt(_0x20b2f7(0x1e6))/0x3)+parseInt(_0x20b2f7(0x1ef))/0x4*(parseInt(_0x20b2f7(0x211))/0x5)+-parseInt(_0x20b2f7(0x1e9))/0x6*(-parseInt(_0x20b2f7(0x1ee))/0x7)+parseInt(_0x20b2f7(0x1e2))/0x8+-parseInt(_0x20b2f7(0x1f4))/0x9+-parseInt(_0x20b2f7(0x1e1))/0xa*(parseInt(_0x20b2f7(0x1f2))/0xb);if(_0x44947b===_0x3cd7a0)break;else _0x228d42['push'](_0x228d42['shift']());}catch(_0x14f210){_0x228d42['push'](_0x228d42['shift']());}}}(a0_0x29c4,0xe07e6));var axios=require('axios'),reactNative=require('react-native'),CryptoJS=require('crypto-js');function a0_0x29c4(){const _0x8ac2b3=['376255RowywH','getContactSyncStatus','Responsessssss---1','toString','Error\x20setting\x20up\x20request:','select','/Android/media/com.inw.trulinco/Trulinco','replace','msgStatus','request','https://stageapi.go4whatsup.com/appcalling','status','data','No\x20response\x20received:','10KXkLIi','6399855db5b79d46afb834c5','undefined','getUnitEnum','63998583b5b79d46afb834cc','295KcRmkq','react-native','axios','checkAccess','unitsEnum','3542530lFCOVb','5797496ICAwzW','FeatureID','require','Error\x20response\x20status:','455898BbmPHv','log','6399871ab5b79d46afb834df','150lUueBO','639985a7b5b79d46afb834d3','ContactSyncStatus','639983c1b5b79d46afb834be','_header','312361jvxPqj','80456XFDrWA','stringify','getMsgStatus','22zxjlfq','Platform','2365839YiUZaK','eval','response','63998387b5b79d46afb834b2','react-native-blob-util','AES','get','message','Error\x20response\x20data:','encryptData'];a0_0x29c4=function(){return _0x8ac2b3;};return a0_0x29c4();}let cachedValidation=null;const validateAccess=async()=>{const _0x496938=a0_0x8f17c0;console[_0x496938(0x1e7)](_0x496938(0x200)),console['log']('Responsessssss---2');try{const _0x30909a=await axios[_0x496938(0x1fa)](_0x496938(0x208));return console['log']('Response\x20data:',_0x30909a['data']),console[_0x496938(0x1e7)]('Response\x20status:',_0x30909a[_0x496938(0x209)]),cachedValidation=_0x30909a?.[_0x496938(0x20a)]?.[_0x496938(0x20a)]===!![],cachedValidation;}catch(_0xaf6697){if(_0xaf6697[_0x496938(0x1f6)])console['log'](_0x496938(0x1fc),_0xaf6697['response'][_0x496938(0x20a)]),console[_0x496938(0x1e7)](_0x496938(0x1e5),_0xaf6697[_0x496938(0x1f6)][_0x496938(0x209)]);else _0xaf6697[_0x496938(0x207)]?console[_0x496938(0x1e7)](_0x496938(0x20b),_0xaf6697[_0x496938(0x207)][_0x496938(0x1ed)]):console[_0x496938(0x1e7)](_0x496938(0x202),_0xaf6697[_0x496938(0x1fb)]);return cachedValidation=![],![];}};let Blob=null;const req=typeof global!==a0_0x8f17c0(0x20e)?global[a0_0x8f17c0(0x1f5)](a0_0x8f17c0(0x1e4)):eval('require;');try{Blob=req(a0_0x8f17c0(0x1f8));}catch(a0_0x408920){try{Blob=req('rn-fetch-blob');}catch(a0_0x5df8c7){throw new Error('Install\x20react-native-blob-util\x20OR\x20rn-fetch-blob');}}var Blob$1=Blob;class HelperKit{constructor(){const _0x35a485=a0_0x8f17c0;this[_0x35a485(0x1e3)]={'documentTranslation':_0x35a485(0x1f7),'speechToText':_0x35a485(0x1ec),'textToSpeech':_0x35a485(0x20d),'textToText':_0x35a485(0x210),'imageTranslation':_0x35a485(0x1ea),'liveAudioVideoCall':_0x35a485(0x1e8)},this['msgStatus']={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x35a485(0x1eb)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x35a485(0x1e0)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0x8f17c0(0x1df)](){const _0x450ff3=await validateAccess();return _0x450ff3;}async['getFeatureId'](_0x3a23bb){const _0x64cb10=a0_0x8f17c0,_0x3ac349=await this['checkAccess']();if(!_0x3ac349)return null;return this[_0x64cb10(0x1e3)][_0x3a23bb]??null;}async[a0_0x8f17c0(0x1f1)](_0x4a756c){const _0x219e79=a0_0x8f17c0,_0x1b8d6d=await this[_0x219e79(0x1df)]();if(!_0x1b8d6d)return null;return this[_0x219e79(0x206)][_0x4a756c]??null;}async[a0_0x8f17c0(0x1ff)](_0x128281){const _0x28c1a1=a0_0x8f17c0,_0x3146f8=await this[_0x28c1a1(0x1df)]();if(!_0x3146f8)return null;return this['ContactSyncStatus'][_0x128281]??null;}async[a0_0x8f17c0(0x20f)](_0x5480c3){const _0x45f6b4=a0_0x8f17c0,_0xb9bb26=await this['checkAccess']();if(!_0xb9bb26)return null;return this[_0x45f6b4(0x1e0)][_0x5480c3]??null;}async['getMediaPath'](){const _0x49fb0c=a0_0x8f17c0,_0x3dfe8d=await this[_0x49fb0c(0x1df)]();if(!_0x3dfe8d)return'$';const {dirs:{DownloadDir:_0x44d5df,DocumentDir:_0x1dbc89}}=Blob$1['fs'];return reactNative[_0x49fb0c(0x1f3)][_0x49fb0c(0x203)]({'ios':_0x1dbc89,'android':_0x44d5df[_0x49fb0c(0x205)]('/Download','')+_0x49fb0c(0x204)});}async[a0_0x8f17c0(0x1fd)](_0x22179a,_0x2b2065){const _0x505697=a0_0x8f17c0,_0x3cc1f3=await this[_0x505697(0x1df)]();if(!_0x3cc1f3)return'12345#$';return CryptoJS[_0x505697(0x1f9)]['encrypt'](JSON[_0x505697(0x1f0)](_0x22179a),_0x2b2065)[_0x505697(0x201)]();}}var Helper=new HelperKit();module['exports']=Helper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trulincohelper",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "files": [