trulincohelper 1.1.5 → 1.1.7

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_0x3b8401=a0_0x5153;(function(_0x2b1675,_0x1a9b4f){const _0x101330=a0_0x5153,_0x50f601=_0x2b1675();while(!![]){try{const _0x388f63=-parseInt(_0x101330(0x86))/0x1+parseInt(_0x101330(0x76))/0x2+-parseInt(_0x101330(0x9f))/0x3*(-parseInt(_0x101330(0xa0))/0x4)+-parseInt(_0x101330(0x81))/0x5*(-parseInt(_0x101330(0x8e))/0x6)+-parseInt(_0x101330(0x94))/0x7+-parseInt(_0x101330(0x9e))/0x8*(-parseInt(_0x101330(0x9b))/0x9)+-parseInt(_0x101330(0x95))/0xa;if(_0x388f63===_0x1a9b4f)break;else _0x50f601['push'](_0x50f601['shift']());}catch(_0x4037b3){_0x50f601['push'](_0x50f601['shift']());}}}(a0_0x5ac1,0x7ac27));var axios=require('axios'),reactNative=require('react-native'),CryptoJS=require('crypto-js');let cachedValidation=null;const validateAccess=async()=>{const _0x1f1e40=a0_0x3b8401;console[_0x1f1e40(0x84)](_0x1f1e40(0x9c)),console[_0x1f1e40(0x84)]('Responsessssss---2');try{const _0x587e8a=await axios[_0x1f1e40(0x83)](_0x1f1e40(0x98));return cachedValidation=_0x587e8a?.[_0x1f1e40(0x93)]?.[_0x1f1e40(0x93)]===!![],cachedValidation;}catch(_0x265c3a){if(_0x265c3a[_0x1f1e40(0x8d)]);else{if(_0x265c3a[_0x1f1e40(0x9d)]);else;}return cachedValidation=![],![];}};let BlobModule=null;try{BlobModule=require('react-native-blob-util');}catch(a0_0x573766){try{BlobModule=require('rn-fetch-blob');}catch(a0_0x10c138){throw new Error('Please\x20install\x20react-native-blob-util\x20OR\x20rn-fetch-blob');}}var Blob=BlobModule;class HelperKit{constructor(){const _0x2a9a86=a0_0x3b8401;this[_0x2a9a86(0x77)]={'documentTranslation':_0x2a9a86(0x7e),'speechToText':_0x2a9a86(0x8c),'textToSpeech':_0x2a9a86(0x85),'textToText':_0x2a9a86(0x89),'imageTranslation':_0x2a9a86(0x72),'liveAudioVideoCall':_0x2a9a86(0x7a)},this['msgStatus']={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x2a9a86(0x74)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this['unitsEnum']={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async['checkAccess'](){const _0xc606a5=await validateAccess();return _0xc606a5;}async[a0_0x3b8401(0x78)](_0x136234){const _0x12d160=a0_0x3b8401,_0x54c51f=await this[_0x12d160(0x7d)]();if(!_0x54c51f)return null;return this[_0x12d160(0x77)][_0x136234]??null;}async[a0_0x3b8401(0x75)](_0x2a97ef){const _0x1a7616=a0_0x3b8401,_0x100cd0=await this[_0x1a7616(0x7d)]();if(!_0x100cd0)return null;return this[_0x1a7616(0x80)][_0x2a97ef]??null;}async['getContactSyncStatus'](_0x12530a){const _0x15cab9=a0_0x3b8401,_0x2827e1=await this[_0x15cab9(0x7d)]();if(!_0x2827e1)return null;return this['ContactSyncStatus'][_0x12530a]??null;}async[a0_0x3b8401(0x97)](_0x169550){const _0x35e846=a0_0x3b8401,_0x96bac2=await this[_0x35e846(0x7d)]();if(!_0x96bac2)return null;return this[_0x35e846(0x99)][_0x169550]??null;}async[a0_0x3b8401(0x91)](){const _0x1d7833=a0_0x3b8401,_0xbdb199=await this[_0x1d7833(0x7d)]();if(!_0xbdb199)return'$';const {dirs:{DownloadDir:_0x27129d,DocumentDir:_0x49483c}}=Blob['fs'];return reactNative[_0x1d7833(0x8f)][_0x1d7833(0x88)]({'ios':_0x49483c,'android':_0x27129d[_0x1d7833(0x82)](_0x1d7833(0x7c),'')+_0x1d7833(0x79)});}async[a0_0x3b8401(0x8a)](_0xf9c9a0,_0x21cd6c){const _0x95d744=a0_0x3b8401,_0x28ffba=await this[_0x95d744(0x7d)]();if(!_0x28ffba)return'12345#$';return CryptoJS[_0x95d744(0x92)][_0x95d744(0x73)](JSON[_0x95d744(0x90)](_0xf9c9a0),_0x21cd6c)['toString']();}async[a0_0x3b8401(0x7f)](){const _0x2aa6b3=a0_0x3b8401,_0x1a2a77=await this[_0x2aa6b3(0x7d)]();if(!_0x1a2a77)return'';return _0x2aa6b3(0x71);}async[a0_0x3b8401(0x9a)](){const _0x362422=a0_0x3b8401,_0x5006c1=await this[_0x362422(0x7d)]();if(!_0x5006c1)return'';return'performAction';}async[a0_0x3b8401(0x7b)](){const _0xe9583e=a0_0x3b8401,_0x4bca85=await this[_0xe9583e(0x7d)]();if(!_0x4bca85)return![];return!![];}}function a0_0x5153(_0x5a7d33,_0x184276){_0x5a7d33=_0x5a7d33-0x71;const _0x5ac182=a0_0x5ac1();let _0x51539e=_0x5ac182[_0x5a7d33];return _0x51539e;}var Helper=new HelperKit();module['exports']=Helper;function a0_0x5ac1(){const _0x455c58=['unitsEnum','getGetAllMessageEvent','2709JodJbt','Responsessssss---1','request','17696mKxqMb','28383yxPvvy','8iwolVu','message_notification','639985a7b5b79d46afb834d3','encrypt','ContactSyncStatus','getMsgStatus','1703942HanjAF','FeatureID','getFeatureId','/Android/media/com.inw.trulinco/Trulinco','6399871ab5b79d46afb834df','checkFeature','/Download','checkAccess','63998387b5b79d46afb834b2','getNotificationEvent','msgStatus','500nVRfPv','replace','get','log','6399855db5b79d46afb834c5','204568Zivtqt','react-native','select','63998583b5b79d46afb834cc','encryptData','rn-fetch-blob','639983c1b5b79d46afb834be','response','17922iaZeHz','Platform','stringify','getMediaPath','AES','data','6465606CcbDVb','2043560FMVfef','axios','getUnitEnum','https://stageapi.go4whatsup.com/appcalling'];a0_0x5ac1=function(){return _0x455c58;};return a0_0x5ac1();}
1
+ 'use strict';function a0_0x147f(_0x5c5dd4,_0x532639){_0x5c5dd4=_0x5c5dd4-0x67;const _0x29ecec=a0_0x29ec();let _0x147f44=_0x29ecec[_0x5c5dd4];return _0x147f44;}const a0_0x2248bb=a0_0x147f;(function(_0x4ce604,_0x14aee5){const _0x3ffa6a=a0_0x147f,_0x2301c0=_0x4ce604();while(!![]){try{const _0x13415f=parseInt(_0x3ffa6a(0x90))/0x1*(parseInt(_0x3ffa6a(0x6d))/0x2)+-parseInt(_0x3ffa6a(0x70))/0x3*(parseInt(_0x3ffa6a(0x9b))/0x4)+parseInt(_0x3ffa6a(0x71))/0x5*(parseInt(_0x3ffa6a(0x7b))/0x6)+parseInt(_0x3ffa6a(0x8d))/0x7*(-parseInt(_0x3ffa6a(0x85))/0x8)+-parseInt(_0x3ffa6a(0x76))/0x9*(parseInt(_0x3ffa6a(0x83))/0xa)+-parseInt(_0x3ffa6a(0x80))/0xb*(parseInt(_0x3ffa6a(0x7e))/0xc)+-parseInt(_0x3ffa6a(0x7d))/0xd*(-parseInt(_0x3ffa6a(0x6b))/0xe);if(_0x13415f===_0x14aee5)break;else _0x2301c0['push'](_0x2301c0['shift']());}catch(_0x10bc83){_0x2301c0['push'](_0x2301c0['shift']());}}}(a0_0x29ec,0x677f6));var axios=require('axios'),reactNative=require('react-native'),CryptoJS=require('crypto-js');let cachedValidation=null;const validateAccess=async()=>{const _0x28331c=a0_0x2248bb,_0x446b53=!__DEV__;try{if(_0x446b53){const _0x43e1de=await axios[_0x28331c(0x74)]('https://api.go4whatsup.com/appcalling');cachedValidation=_0x43e1de?.[_0x28331c(0x8a)]?.[_0x28331c(0x8a)]===!![];}else cachedValidation=!![];return cachedValidation;}catch(_0x8cc127){if(_0x8cc127[_0x28331c(0x6a)]);else{if(_0x8cc127[_0x28331c(0x86)]);else;}return _0x446b53?(cachedValidation=![],![]):!![];}};let BlobModule=null;try{BlobModule=require('react-native-blob-util');}catch(a0_0x35fc9a){try{BlobModule=require('rn-fetch-blob');}catch(a0_0x28d801){throw new Error(a0_0x2248bb(0x77));}}var Blob=BlobModule;class HelperKit{constructor(){const _0x299cd3=a0_0x2248bb;this[_0x299cd3(0x8c)]={'documentTranslation':_0x299cd3(0x78),'speechToText':_0x299cd3(0x91),'textToSpeech':_0x299cd3(0x8e),'textToText':_0x299cd3(0x68),'imageTranslation':_0x299cd3(0x93),'liveAudioVideoCall':_0x299cd3(0x6f)},this[_0x299cd3(0x75)]={'deleted':-0x2,'failed':-0x1,'added':0x0,'sent':0x1,'delivered':0x2,'readed':0x3,'received':0x4,'reaction':0x5,'startTyping':0xb,'stopTyping':0xc},this[_0x299cd3(0x9a)]={'started':0x1,'completed':0x2,'done':0x3,'error':0x4},this[_0x299cd3(0x82)]={'minutes':0x1,'messages':0x2,'credits':0x3,'units':0x4};}async[a0_0x2248bb(0x8f)](){const _0x2a74e1=await validateAccess();return _0x2a74e1;}async[a0_0x2248bb(0x88)](_0x2fd6a0){const _0xddcb3=a0_0x2248bb,_0x186f0d=await this[_0xddcb3(0x8f)]();if(!_0x186f0d)return null;return this[_0xddcb3(0x8c)][_0x2fd6a0]??null;}async[a0_0x2248bb(0x8b)](_0x3637de){const _0x3d5968=a0_0x2248bb,_0x143101=await this[_0x3d5968(0x8f)]();if(!_0x143101)return null;return this['msgStatus'][_0x3637de]??null;}async[a0_0x2248bb(0x72)](_0x38595f){const _0x2bb83a=a0_0x2248bb,_0x1dd87a=await this[_0x2bb83a(0x8f)]();if(!_0x1dd87a)return null;return this[_0x2bb83a(0x9a)][_0x38595f]??null;}async[a0_0x2248bb(0x81)](_0x110595){const _0x476963=a0_0x2248bb,_0x584df7=await this['checkAccess']();if(!_0x584df7)return null;return this[_0x476963(0x82)][_0x110595]??null;}async[a0_0x2248bb(0x73)](){const _0x4de5b9=a0_0x2248bb,_0x57721c=await this['checkAccess']();if(!_0x57721c)return'$';const {dirs:{DownloadDir:_0x4663f4,DocumentDir:_0x382a47}}=Blob['fs'];return reactNative['Platform'][_0x4de5b9(0x7a)]({'ios':_0x382a47,'android':_0x4663f4[_0x4de5b9(0x87)](_0x4de5b9(0x94),'')+_0x4de5b9(0x7f)});}async[a0_0x2248bb(0x92)](_0x1379be,_0x5d27a6){const _0x177a13=a0_0x2248bb,_0x4251a0=await this[_0x177a13(0x8f)]();if(!_0x4251a0)return _0x177a13(0x98);return CryptoJS[_0x177a13(0x97)][_0x177a13(0x84)](JSON[_0x177a13(0x7c)](_0x1379be),_0x5d27a6)[_0x177a13(0x96)]();}async[a0_0x2248bb(0x99)](){const _0x1fa6a9=a0_0x2248bb,_0x5537f9=await this[_0x1fa6a9(0x8f)]();if(!_0x5537f9)return'';return'message_notification';}async['getGetAllMessageEvent'](){const _0x46b048=a0_0x2248bb,_0x2f8545=await this[_0x46b048(0x8f)]();if(!_0x2f8545)return'';return _0x46b048(0x69);}async[a0_0x2248bb(0x67)](){const _0x43965b=a0_0x2248bb,_0x719cdb=await this[_0x43965b(0x8f)]();if(!_0x719cdb)return![];return!![];}}var Helper=new HelperKit();function a0_0x29ec(){const _0x5a0086=['replace','getFeatureId','axios','data','getMsgStatus','FeatureID','420385QSPlDA','6399855db5b79d46afb834c5','checkAccess','225371IXNOCt','639983c1b5b79d46afb834be','encryptData','639985a7b5b79d46afb834d3','/Download','exports','toString','AES','12345#$','getNotificationEvent','ContactSyncStatus','148vDpRGw','checkFeature','63998583b5b79d46afb834cc','performAction','response','1480346HBCnlj','rn-fetch-blob','6LzcQiS','react-native','6399871ab5b79d46afb834df','28947FOvkhG','5GyIyXa','getContactSyncStatus','getMediaPath','get','msgStatus','723213erDIMQ','Please\x20install\x20react-native-blob-util\x20OR\x20rn-fetch-blob','63998387b5b79d46afb834b2','react-native-blob-util','select','828582mmnaog','stringify','78qGuVnc','276qVpbjf','/Android/media/com.inw.trulinco/Trulinco','213752zCHrLh','getUnitEnum','unitsEnum','20rWdtnd','encrypt','8pbaOnK','request'];a0_0x29ec=function(){return _0x5a0086;};return a0_0x29ec();}module[a0_0x2248bb(0x95)]=Helper;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trulincohelper",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "files": [