@onairos/react-native 3.6.6 â 3.6.8
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.
- package/lib/commonjs/api/index.js +1 -1
- package/lib/commonjs/components/BodyText.js +1 -1
- package/lib/commonjs/components/BrandMark.js +1 -1
- package/lib/commonjs/components/CodeInput.js +1 -1
- package/lib/commonjs/components/EmailInput.js +1 -1
- package/lib/commonjs/components/GoogleButton.js +1 -1
- package/lib/commonjs/components/HeadingGroup.js +1 -1
- package/lib/commonjs/components/LLMDataInputModal.js +1 -1
- package/lib/commonjs/components/ModalHeader.js +1 -1
- package/lib/commonjs/components/ModalSheet.js +1 -1
- package/lib/commonjs/components/Onairos.js +1 -1
- package/lib/commonjs/components/OnairosButton.js +1 -1
- package/lib/commonjs/components/OnairosSignInButton.js +1 -1
- package/lib/commonjs/components/Overlay.js +1 -1
- package/lib/commonjs/components/PersonaImage.js +1 -1
- package/lib/commonjs/components/PersonaLoadingScreen.js +1 -1
- package/lib/commonjs/components/PersonalizationConsentScreen.js +1 -1
- package/lib/commonjs/components/PinCreationScreen.js +1 -1
- package/lib/commonjs/components/PinInput.js +1 -1
- package/lib/commonjs/components/PlatformConnectorsStep.js +1 -1
- package/lib/commonjs/components/PlatformList.js +1 -1
- package/lib/commonjs/components/PlatformToggle.js +1 -1
- package/lib/commonjs/components/PrimaryButton.js +1 -1
- package/lib/commonjs/components/SignInMatchAnimation.js +1 -1
- package/lib/commonjs/components/SignInStep.js +1 -1
- package/lib/commonjs/components/UniversalOnboarding.js +1 -1
- package/lib/commonjs/components/VerificationStep.js +1 -1
- package/lib/commonjs/components/WelcomeScreen.js +1 -1
- package/lib/commonjs/components/icons/Basicproficon.js +1 -1
- package/lib/commonjs/components/icons/Basicprofile.js +1 -1
- package/lib/commonjs/components/icons/Checkbox.js +1 -1
- package/lib/commonjs/components/icons/Checkmark.js +1 -1
- package/lib/commonjs/components/icons/Contentanalysis.js +1 -1
- package/lib/commonjs/components/icons/Contenticon.js +1 -1
- package/lib/commonjs/components/icons/EnochE.js +1 -1
- package/lib/commonjs/components/icons/Personalityicon.js +1 -1
- package/lib/commonjs/components/icons/Personalityprofile.js +1 -1
- package/lib/commonjs/components/icons/Personalitytraits.js +1 -1
- package/lib/commonjs/components/icons/Userpreferences.js +1 -1
- package/lib/commonjs/components/icons/index.js +1 -1
- package/lib/commonjs/components/onboarding/OAuthWebView.js +1 -1
- package/lib/commonjs/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/commonjs/components/onboarding/PinInput.js +1 -1
- package/lib/commonjs/components/onboarding/PlatformConnector.js +1 -1
- package/lib/commonjs/config/api.js +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/context/AuthContext.js +1 -1
- package/lib/commonjs/hooks/useConnectedAccounts.js +1 -1
- package/lib/commonjs/hooks/useConnections.js +1 -1
- package/lib/commonjs/hooks/useCredentials.js +1 -1
- package/lib/commonjs/hooks/useUserConnections.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/services/apiClient.js +1 -1
- package/lib/commonjs/services/biometricPinService.js +1 -1
- package/lib/commonjs/services/chatGPTConversationExtractor.js +1 -1
- package/lib/commonjs/services/chatGPTConversationService.js +1 -1
- package/lib/commonjs/services/claudeConversationExtractor.js +1 -1
- package/lib/commonjs/services/claudeConversationService.js +1 -1
- package/lib/commonjs/services/connectedAccountsService.js +1 -1
- package/lib/commonjs/services/googleAuthService.js +1 -1
- package/lib/commonjs/services/hingeDataExtractor.js +1 -1
- package/lib/commonjs/services/hingeDataService.js +1 -1
- package/lib/commonjs/services/imageCompressionService.js +1 -1
- package/lib/commonjs/services/instagramDataExtractor.js +1 -1
- package/lib/commonjs/services/instagramDataService.js +1 -1
- package/lib/commonjs/services/jwtStorageService.js +1 -1
- package/lib/commonjs/services/linkedinDOMExtractor.js +1 -1
- package/lib/commonjs/services/linkedinProfileService.js +1 -1
- package/lib/commonjs/services/linkedinScrapingService.js +1 -1
- package/lib/commonjs/services/llmDataStorage.js +1 -1
- package/lib/commonjs/services/mobileTrainingService.js +1 -1
- package/lib/commonjs/services/pinEncryptionService.js +1 -1
- package/lib/commonjs/services/pinStorageUtils.js +1 -1
- package/lib/commonjs/services/platformAuthService.js +1 -1
- package/lib/commonjs/services/sephoraDataExtractor.js +1 -1
- package/lib/commonjs/services/sephoraDataService.js +1 -1
- package/lib/commonjs/services/storageService.js +1 -1
- package/lib/commonjs/services/telegramDataExtractor.js +1 -1
- package/lib/commonjs/services/telegramDataService.js +1 -1
- package/lib/commonjs/services/trainingApiHelpers.js +1 -1
- package/lib/commonjs/services/userConnectionsService.js +1 -1
- package/lib/commonjs/services/youtubeMigrationService.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/types/index.js +1 -1
- package/lib/commonjs/types.js +1 -1
- package/lib/commonjs/utils/Portal.js +1 -1
- package/lib/commonjs/utils/api.js +1 -1
- package/lib/commonjs/utils/assetRegistry.js +1 -1
- package/lib/commonjs/utils/auth.js +1 -1
- package/lib/commonjs/utils/connectorTests.js +1 -1
- package/lib/commonjs/utils/crypto.js +1 -1
- package/lib/commonjs/utils/debugHelper.js +1 -1
- package/lib/commonjs/utils/encryption.js +1 -1
- package/lib/commonjs/utils/eventUtils.js +1 -1
- package/lib/commonjs/utils/haptics.js +1 -1
- package/lib/commonjs/utils/imagePreloader.js +1 -1
- package/lib/commonjs/utils/networkDiagnostics.js +1 -1
- package/lib/commonjs/utils/onairosApi.js +1 -1
- package/lib/commonjs/utils/programmaticFlow.js +1 -1
- package/lib/commonjs/utils/retryHelper.js +1 -1
- package/lib/commonjs/utils/secureStorage.js +1 -1
- package/lib/commonjs/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/commonjs/utils/webviewScripts/claude.js +1 -1
- package/lib/commonjs/utils/webviewScripts/hinge.js +1 -1
- package/lib/commonjs/utils/webviewScripts/index.js +1 -1
- package/lib/commonjs/utils/webviewScripts/instagram.js +1 -1
- package/lib/commonjs/utils/webviewScripts/linkedin.js +1 -1
- package/lib/commonjs/utils/webviewScripts/sephora.js +1 -1
- package/lib/commonjs/utils/webviewScripts/telegram.js +1 -1
- package/lib/module/api/index.js +1 -1
- package/lib/module/components/BodyText.js +1 -1
- package/lib/module/components/BrandMark.js +1 -1
- package/lib/module/components/CodeInput.js +1 -1
- package/lib/module/components/EmailInput.js +1 -1
- package/lib/module/components/GoogleButton.js +1 -1
- package/lib/module/components/HeadingGroup.js +1 -1
- package/lib/module/components/LLMDataInputModal.js +1 -1
- package/lib/module/components/ModalHeader.js +1 -1
- package/lib/module/components/ModalSheet.js +1 -1
- package/lib/module/components/Onairos.js +1 -1
- package/lib/module/components/OnairosButton.js +1 -1
- package/lib/module/components/OnairosSignInButton.js +1 -1
- package/lib/module/components/Overlay.js +1 -1
- package/lib/module/components/PersonaImage.js +1 -1
- package/lib/module/components/PersonaLoadingScreen.js +1 -1
- package/lib/module/components/PersonalizationConsentScreen.js +1 -1
- package/lib/module/components/PinCreationScreen.js +1 -1
- package/lib/module/components/PinInput.js +1 -1
- package/lib/module/components/PlatformConnectorsStep.js +1 -1
- package/lib/module/components/PlatformList.js +1 -1
- package/lib/module/components/PlatformToggle.js +1 -1
- package/lib/module/components/PrimaryButton.js +1 -1
- package/lib/module/components/SignInMatchAnimation.js +1 -1
- package/lib/module/components/SignInStep.js +1 -1
- package/lib/module/components/UniversalOnboarding.js +1 -1
- package/lib/module/components/VerificationStep.js +1 -1
- package/lib/module/components/WelcomeScreen.js +1 -1
- package/lib/module/components/icons/Basicproficon.js +1 -1
- package/lib/module/components/icons/Basicprofile.js +1 -1
- package/lib/module/components/icons/Checkbox.js +1 -1
- package/lib/module/components/icons/Checkmark.js +1 -1
- package/lib/module/components/icons/Contentanalysis.js +1 -1
- package/lib/module/components/icons/Contenticon.js +1 -1
- package/lib/module/components/icons/EnochE.js +1 -1
- package/lib/module/components/icons/Personalityicon.js +1 -1
- package/lib/module/components/icons/Personalityprofile.js +1 -1
- package/lib/module/components/icons/Personalitytraits.js +1 -1
- package/lib/module/components/icons/Userpreferences.js +1 -1
- package/lib/module/components/onboarding/OAuthWebView.js +1 -1
- package/lib/module/components/onboarding/OnboardingHeader.js +1 -1
- package/lib/module/components/onboarding/PinInput.js +1 -1
- package/lib/module/components/onboarding/PlatformConnector.js +1 -1
- package/lib/module/config/api.js +1 -1
- package/lib/module/constants/index.js +1 -1
- package/lib/module/context/AuthContext.js +1 -1
- package/lib/module/hooks/useConnectedAccounts.js +1 -1
- package/lib/module/hooks/useConnections.js +1 -1
- package/lib/module/hooks/useCredentials.js +1 -1
- package/lib/module/hooks/useUserConnections.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/services/apiClient.js +1 -1
- package/lib/module/services/biometricPinService.js +1 -1
- package/lib/module/services/chatGPTConversationExtractor.js +1 -1
- package/lib/module/services/chatGPTConversationService.js +1 -1
- package/lib/module/services/claudeConversationExtractor.js +1 -1
- package/lib/module/services/claudeConversationService.js +1 -1
- package/lib/module/services/connectedAccountsService.js +1 -1
- package/lib/module/services/googleAuthService.js +1 -1
- package/lib/module/services/hingeDataExtractor.js +1 -1
- package/lib/module/services/hingeDataService.js +1 -1
- package/lib/module/services/imageCompressionService.js +1 -1
- package/lib/module/services/instagramDataExtractor.js +1 -1
- package/lib/module/services/instagramDataService.js +1 -1
- package/lib/module/services/jwtStorageService.js +1 -1
- package/lib/module/services/linkedinDOMExtractor.js +1 -1
- package/lib/module/services/linkedinProfileService.js +1 -1
- package/lib/module/services/linkedinScrapingService.js +1 -1
- package/lib/module/services/llmDataStorage.js +1 -1
- package/lib/module/services/mobileTrainingService.js +1 -1
- package/lib/module/services/pinEncryptionService.js +1 -1
- package/lib/module/services/pinStorageUtils.js +1 -1
- package/lib/module/services/platformAuthService.js +1 -1
- package/lib/module/services/sephoraDataExtractor.js +1 -1
- package/lib/module/services/sephoraDataService.js +1 -1
- package/lib/module/services/storageService.js +1 -1
- package/lib/module/services/telegramDataExtractor.js +1 -1
- package/lib/module/services/telegramDataService.js +1 -1
- package/lib/module/services/trainingApiHelpers.js +1 -1
- package/lib/module/services/userConnectionsService.js +1 -1
- package/lib/module/services/youtubeMigrationService.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/types.js +1 -1
- package/lib/module/utils/Portal.js +1 -1
- package/lib/module/utils/api.js +1 -1
- package/lib/module/utils/assetRegistry.js +1 -1
- package/lib/module/utils/auth.js +1 -1
- package/lib/module/utils/connectorTests.js +1 -1
- package/lib/module/utils/crypto.js +1 -1
- package/lib/module/utils/debugHelper.js +1 -1
- package/lib/module/utils/encryption.js +1 -1
- package/lib/module/utils/eventUtils.js +1 -1
- package/lib/module/utils/haptics.js +1 -1
- package/lib/module/utils/networkDiagnostics.js +1 -1
- package/lib/module/utils/onairosApi.js +1 -1
- package/lib/module/utils/programmaticFlow.js +1 -1
- package/lib/module/utils/retryHelper.js +1 -1
- package/lib/module/utils/secureStorage.js +1 -1
- package/lib/module/utils/webviewScripts/chatgpt.js +1 -1
- package/lib/module/utils/webviewScripts/claude.js +1 -1
- package/lib/module/utils/webviewScripts/hinge.js +1 -1
- package/lib/module/utils/webviewScripts/index.js +1 -1
- package/lib/module/utils/webviewScripts/instagram.js +1 -1
- package/lib/module/utils/webviewScripts/linkedin.js +1 -1
- package/lib/module/utils/webviewScripts/sephora.js +1 -1
- package/lib/module/utils/webviewScripts/telegram.js +1 -1
- package/package.json +1 -1
|
@@ -7,4 +7,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
7
7
|
require('react-native-keychain')
|
|
8
8
|
];
|
|
9
9
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
-
function _0x3297(){const _0x184245=['defineProperty','__esModule','useCredentials','warn','ZQClr','fMouo','getGenericPassword','oQbSS','SEGYh','function','tVHbs','default','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','RPLAU','rsHGI','cFWqx','hNQgb','JzZyW','service','HHWpr','uKrXW','parse','password','NjRus','pderC','GzuyZ','VkPoq','AiEEP','hbkVG','McXIu','EzRhy','setGenericPassword','zbWYD','YxzJS','boFPM','error','Error\x20clearing\x20credentials:','kOsMd','zArbR','uuWpK','Error\x20checking\x20credentials:','MxFFI','Ccgpj','YCsFG','iIatV','ADpsC','resetGenericPassword','WufOX','KmBQG','VHXUW','nJnad','Error\x20getting\x20credentials:','NukEC','LrCCQ','hjZwF','JKxkd','Error\x20validating\x20credentials:','kOnRI','fsDFZ','mVKfZ','NjjmZ','pyVgs','nwZFk','XojFo','ZFOBN','credentials','ABcOc','bMPCN','EEKJF','useCallback','STORAGE_KEYS','hqquv','fJfpK','xrznQ','WJLAt','BIOMETRY_ANY','accessible','WHEN_UNLOCKED','Hnpdx','uQcwG','rrcYT','IKDXp','dOKLr','BgJPj','ybxgy','SOSvI','AfBwm','zddSF','KBxtz','API_CONFIG','BASE_URL','/validate','stringify','PqcpJ'];_0x3297=function(){return _0x184245;};return _0x3297();}Object[_0x4729(0x0)](exports,_0x4729(0x1),{'value':!![]}),exports[_0x4729(0x2)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_constants=__ONAIROS_REQ_FUNC__(0x1),_api=__ONAIROS_REQ_FUNC__(0x2);function _0x4729(_0x3297b1,_0x4729e1){_0x3297b1=_0x3297b1-0x0;const _0x5ed49f=_0x3297();let _0x2a0fc4=_0x5ed49f[_0x3297b1];return _0x2a0fc4;}const mockCredentialStorage={};let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x3);}catch(_0x2aae44){console[_0x4729(0x3)]('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0xc2222={'fMouo':function(_0x2fb544,_0x4bb601){return _0x2fb544===_0x4bb601;},'oQbSS':'function','SEGYh':function(_0x2626b5,_0x49fb48){return _0x2626b5===_0x49fb48;},'XrQQA':_0x4729(0x4)};try{return Keychain&&_0xc2222[_0x4729(0x5)](typeof Keychain[_0x4729(0x6)],_0xc2222[_0x4729(0x7)]);}catch(_0x1d6719){return _0xc2222[_0x4729(0x8)](_0x4729(0x4),_0xc2222['XrQQA'])?![]:![];}},safeGetGenericPassword=async _0x2a46f2=>{const _0x403c27={'hNQgb':function(_0x22d9d4,_0x591635){return _0x22d9d4===_0x591635;},'JzZyW':_0x4729(0x9),'RPLAU':function(_0xe14e5d){return _0xe14e5d();},'rsHGI':function(_0x13dfb9,_0x48bef8){return _0x13dfb9!==_0x48bef8;},'cFWqx':_0x4729(0xa),'NjRus':_0x4729(0xb),'HHWpr':'LUfRR','vAIwG':_0x4729(0xc)};try{if(_0x403c27[_0x4729(0xd)](isKeychainAvailable))return _0x403c27[_0x4729(0xe)](_0x403c27['cFWqx'],_0x403c27[_0x4729(0xf)])?Keychain&&_0x403c27[_0x4729(0x10)](typeof Keychain[_0x4729(0x6)],_0x403c27[_0x4729(0x11)]):await Keychain['getGenericPassword'](_0x2a46f2);else{const _0x22dba6=(_0x2a46f2===null||_0x2a46f2===void 0x0?void 0x0:_0x2a46f2[_0x4729(0x12)])||_0x403c27['NjRus'];return mockCredentialStorage[_0x22dba6]||null;}}catch(_0x3e528e){if(_0x403c27[_0x4729(0x10)](_0x403c27[_0x4729(0x13)],_0x4729(0x14)))return _0x7e43ff[_0x4729(0x15)](_0x3ae49b[_0x4729(0x16)]);else{console['warn'](_0x403c27['vAIwG'],_0x3e528e);const _0x411778=(_0x403c27[_0x4729(0x10)](_0x2a46f2,null)||_0x2a46f2===void 0x0?void 0x0:_0x2a46f2[_0x4729(0x12)])||_0x403c27[_0x4729(0x17)];return mockCredentialStorage[_0x411778]||null;}}},safeSetGenericPassword=async(_0x43f9ff,_0x93f20f,_0x2dc1c2)=>{const _0x4bf04b={'EzRhy':_0x4729(0x9),'zbWYD':function(_0x5dab8e,_0xacb5f1){return _0x5dab8e===_0xacb5f1;},'zArbR':'default','hbkVG':function(_0x5afc0c,_0x54fa66){return _0x5afc0c!==_0x54fa66;},'GzuyZ':'rFeBM','VkPoq':'dvSzP','AiEEP':function(_0xa6e67f){return _0xa6e67f();},'McXIu':_0x4729(0x18),'kOsMd':function(_0xa8feb2,_0x5c3b68){return _0xa8feb2===_0x5c3b68;},'sUAYc':function(_0x4bd58c,_0x3a38d3){return _0x4bd58c===_0x3a38d3;},'uuWpK':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage'};try{if(_0x4bf04b['hbkVG'](_0x4bf04b[_0x4729(0x19)],_0x4bf04b[_0x4729(0x1a)])){if(_0x4bf04b[_0x4729(0x1b)](isKeychainAvailable)){if(_0x4bf04b[_0x4729(0x1c)](_0x4bf04b['McXIu'],_0x4bf04b[_0x4729(0x1d)]))try{return Keychain&&typeof Keychain['getGenericPassword']===_0x4bf04b[_0x4729(0x1e)];}catch(_0xbb5c2a){return![];}else return await Keychain[_0x4729(0x1f)](_0x43f9ff,_0x93f20f,_0x2dc1c2);}else{if(_0x4bf04b[_0x4729(0x20)](_0x4729(0x21),_0x4729(0x22)))_0x1adee5[_0x4729(0x23)](_0x4729(0x24),_0x2b3a19);else{const _0x44a97c=(_0x4bf04b[_0x4729(0x25)](_0x2dc1c2,null)||_0x4bf04b['sUAYc'](_0x2dc1c2,void 0x0)?void 0x0:_0x2dc1c2['service'])||_0x4bf04b['zArbR'];return mockCredentialStorage[_0x44a97c]={'username':_0x43f9ff,'password':_0x93f20f},!![];}}}else{const _0x35f3ea=(_0x55a2cf===null||_0x4bf04b[_0x4729(0x20)](_0x4ea236,void 0x0)?void 0x0:_0x1036b6[_0x4729(0x12)])||_0x4bf04b[_0x4729(0x26)];return _0x469102[_0x35f3ea]||null;}}catch(_0x3ab863){console['warn'](_0x4bf04b[_0x4729(0x27)],_0x3ab863);const _0x34cf91=(_0x2dc1c2===null||_0x4bf04b[_0x4729(0x20)](_0x2dc1c2,void 0x0)?void 0x0:_0x2dc1c2['service'])||_0x4bf04b[_0x4729(0x26)];return mockCredentialStorage[_0x34cf91]={'username':_0x43f9ff,'password':_0x93f20f},!![];}},safeResetGenericPassword=async _0x3d7a84=>{const _0x224581={'iIatV':_0x4729(0x28),'Ccgpj':function(_0x5ac364,_0x2f815b){return _0x5ac364!==_0x2f815b;},'YCsFG':_0x4729(0x29),'ADpsC':function(_0x362f37){return _0x362f37();},'WufOX':function(_0x4ccecf,_0x1fa504){return _0x4ccecf===_0x1fa504;},'VHXUW':_0x4729(0xb),'KmBQG':_0x4729(0xc)};try{if(_0x224581[_0x4729(0x2a)](_0x4729(0x29),_0x224581[_0x4729(0x2b)]))return _0x540470[_0x4729(0x23)](_0x224581[_0x4729(0x2c)],_0x4aa43d),![];else{if(_0x224581[_0x4729(0x2d)](isKeychainAvailable))return await Keychain[_0x4729(0x2e)](_0x3d7a84);else{const _0x1792b9=(_0x224581[_0x4729(0x2f)](_0x3d7a84,null)||_0x224581[_0x4729(0x2f)](_0x3d7a84,void 0x0)?void 0x0:_0x3d7a84[_0x4729(0x12)])||_0x224581['VHXUW'];return delete mockCredentialStorage[_0x1792b9],!![];}}}catch(_0x3b571e){console[_0x4729(0x3)](_0x224581[_0x4729(0x30)],_0x3b571e);const _0x560a9f=(_0x3d7a84===null||_0x3d7a84===void 0x0?void 0x0:_0x3d7a84[_0x4729(0x12)])||_0x224581[_0x4729(0x31)];return delete mockCredentialStorage[_0x560a9f],!![];}},useCredentials=()=>{const _0x310107={'kOnRI':function(_0x194dce,_0x424613){return _0x194dce===_0x424613;},'fsDFZ':function(_0x48dd07,_0x27f7df){return _0x48dd07===_0x27f7df;},'mVKfZ':_0x4729(0xb),'NjjmZ':_0x4729(0x32),'ZFOBN':function(_0x175622,_0x23d497){return _0x175622(_0x23d497);},'zddSF':function(_0x52dd32,_0x279d7a){return _0x52dd32===_0x279d7a;},'ABcOc':'DQWSz','bMPCN':'Error\x20checking\x20credentials:','hqquv':_0x4729(0x33),'fJfpK':function(_0x44cdfc,_0x432402){return _0x44cdfc!==_0x432402;},'wzQWz':'oohHW','xrznQ':_0x4729(0x34),'WJLAt':function(_0x1ba9a8){return _0x1ba9a8();},'Hnpdx':function(_0x4bd99a,_0x23cedb,_0x2645fa,_0x4a1621){return _0x4bd99a(_0x23cedb,_0x2645fa,_0x4a1621);},'uQcwG':'Error\x20storing\x20credentials:','rrcYT':'fjsgZ','IKDXp':_0x4729(0x35),'dOKLr':function(_0x44b2b3,_0x5c1ee4){return _0x44b2b3(_0x5c1ee4);},'BgJPj':_0x4729(0x24),'ybxgy':function(_0x4432d9,_0x346562){return _0x4432d9===_0x346562;},'SOSvI':_0x4729(0x36),'AfBwm':_0x4729(0x37),'KBxtz':function(_0x555d55,_0x1f78c2,_0x3f6dee){return _0x555d55(_0x1f78c2,_0x3f6dee);},'PqcpJ':_0x4729(0x38)},_0x2e3d9a=(0x0,_react['useCallback'])(async()=>{const _0x276809={'pyVgs':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','nwZFk':function(_0x123820,_0x3fd309){return _0x310107[_0x4729(0x39)](_0x123820,_0x3fd309);},'XojFo':function(_0x1fddd7,_0x3afe0f){return _0x310107[_0x4729(0x3a)](_0x1fddd7,_0x3afe0f);},'EEKJF':_0x310107[_0x4729(0x3b)]};if(_0x310107[_0x4729(0x3c)]!==_0x310107[_0x4729(0x3c)]){_0x323ec0[_0x4729(0x3)](_0x276809[_0x4729(0x3d)],_0xabba64);const _0x18bb1d=(_0x276809[_0x4729(0x3e)](_0xf1f3b3,null)||_0x276809[_0x4729(0x3f)](_0x44fe5f,void 0x0)?void 0x0:_0x213ecb['service'])||'default';return _0x2b16f7[_0x18bb1d]||null;}else try{const _0x44ab38=await _0x310107[_0x4729(0x40)](safeGetGenericPassword,{'service':_constants['STORAGE_KEYS'][_0x4729(0x41)]});return!!_0x44ab38;}catch(_0x16e12a){if(_0x310107['zddSF'](_0x310107[_0x4729(0x42)],_0x310107[_0x4729(0x42)]))return console[_0x4729(0x23)](_0x310107[_0x4729(0x43)],_0x16e12a),![];else{_0x1e94d0[_0x4729(0x3)](_0x276809[_0x4729(0x3d)],_0x4e31a4);const _0xa3e4f=(_0x276809[_0x4729(0x3f)](_0x271be4,null)||_0x43f4b1===void 0x0?void 0x0:_0x337f32['service'])||_0x276809[_0x4729(0x44)];return _0x2663f2[_0xa3e4f]={'username':_0x46f444,'password':_0xbe50b7},!![];}}},[]),_0x46ea7d=(0x0,_react[_0x4729(0x45)])(async()=>{try{const _0x573e3b=await safeGetGenericPassword({'service':_constants[_0x4729(0x46)][_0x4729(0x41)]});if(_0x573e3b)return JSON['parse'](_0x573e3b[_0x4729(0x16)]);return null;}catch(_0x2beaf8){return console[_0x4729(0x23)](_0x310107[_0x4729(0x47)],_0x2beaf8),null;}},[]),_0x55889d=(0x0,_react['useCallback'])(async(_0x1670c3,_0xa61b5a,_0x5bfcba)=>{if(_0x310107[_0x4729(0x48)](_0x310107['wzQWz'],_0x310107[_0x4729(0x49)]))try{const _0x389dcd={'service':_constants['STORAGE_KEYS']['credentials']};if(_0x310107[_0x4729(0x4a)](isKeychainAvailable)){var _0x4160ef,_0x4f7783;_0x389dcd['accessControl']=_0x310107['fsDFZ'](_0x4160ef=Keychain['ACCESS_CONTROL'],null)||_0x310107[_0x4729(0x39)](_0x4160ef,void 0x0)?void 0x0:_0x4160ef[_0x4729(0x4b)],_0x389dcd[_0x4729(0x4c)]=_0x310107[_0x4729(0x39)](_0x4f7783=Keychain['ACCESSIBLE'],null)||_0x310107[_0x4729(0x3a)](_0x4f7783,void 0x0)?void 0x0:_0x4f7783[_0x4729(0x4d)];}return await _0x310107[_0x4729(0x4e)](safeSetGenericPassword,_0x1670c3,JSON['stringify']({'userPin':_0xa61b5a,'accessToken':_0x5bfcba}),_0x389dcd),!![];}catch(_0xe05c5){return console['error'](_0x310107[_0x4729(0x4f)],_0xe05c5),![];}else return _0x6f2d7f[_0x4729(0x23)](_0x4729(0x33),_0x19884f),null;},[]),_0x439357=(0x0,_react[_0x4729(0x45)])(async()=>{try{if(_0x310107[_0x4729(0x50)]!==_0x310107[_0x4729(0x51)])await _0x310107[_0x4729(0x52)](safeResetGenericPassword,{'service':_constants[_0x4729(0x46)][_0x4729(0x41)]});else return _0x2635ef[_0x4729(0x23)]('Error\x20storing\x20credentials:',_0x37368e),![];}catch(_0xa5cd41){console[_0x4729(0x23)](_0x310107[_0x4729(0x53)],_0xa5cd41);}},[]),_0xa08c54=(0x0,_react[_0x4729(0x45)])(async _0x41caef=>{try{if(_0x310107[_0x4729(0x54)](_0x310107[_0x4729(0x55)],_0x310107[_0x4729(0x56)])){const _0x541c4b=(_0x310107[_0x4729(0x57)](_0x3a7a52,null)||_0x48cfe3===void 0x0?void 0x0:_0x46f2bb[_0x4729(0x12)])||_0x310107[_0x4729(0x3b)];return _0x4ce9ed[_0x541c4b]={'username':_0x5c8d81,'password':_0xd7b338},!![];}else{const _0x47607b=await _0x310107[_0x4729(0x58)](fetch,_api[_0x4729(0x59)][_0x4729(0x5a)]+_0x4729(0x5b),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4729(0x5c)]({'username':_0x41caef})}),_0x288177=await _0x47607b['json']();return{'success':!![],'isValid':_0x288177['valid'],'credentials':_0x288177[_0x4729(0x41)]};}}catch(_0x220984){return console[_0x4729(0x23)](_0x310107[_0x4729(0x5d)],_0x220984),{'success':![],'isValid':![]};}},[]);return{'hasCredentials':_0x2e3d9a,'getCredentials':_0x46ea7d,'storeCredentials':_0x55889d,'clearCredentials':_0x439357,'validateCredentials':_0xa08c54};};exports[_0x4729(0x2)]=useCredentials;
|
|
10
|
+
Object[_0x4d61(0x0)](exports,_0x4d61(0x1),{'value':!![]}),exports[_0x4d61(0x2)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_constants=__ONAIROS_REQ_FUNC__(0x1),_api=__ONAIROS_REQ_FUNC__(0x2);const mockCredentialStorage={};let Keychain=null;try{Keychain=__ONAIROS_REQ_FUNC__(0x3);}catch(_0x5e4cb2){console[_0x4d61(0x3)]('react-native-keychain module not available in useCredentials, using mock storage');}const isKeychainAvailable=()=>{const _0x293fd7={'PIOss':function(_0x453f9b,_0x459854){return _0x453f9b===_0x459854;},'gXpKs':_0x4d61(0x4),'nwNMq':_0x4d61(0x5)};try{return _0x293fd7[_0x4d61(0x6)](_0x4d61(0x4),_0x293fd7[_0x4d61(0x7)])?Keychain&&_0x293fd7[_0x4d61(0x6)](typeof Keychain[_0x4d61(0x8)],_0x293fd7[_0x4d61(0x9)]):![];}catch(_0x24836e){return![];}},safeGetGenericPassword=async _0x5dd170=>{const _0x18d80c={'tyfst':function(_0x272a46,_0x3c7aea){return _0x272a46===_0x3c7aea;},'cxtem':'EMSOE','cVXhl':function(_0x19ed85){return _0x19ed85();},'Fmtdr':_0x4d61(0xa),'jCEdC':_0x4d61(0xb),'FOevJ':function(_0x34270e,_0x412dff){return _0x34270e===_0x412dff;},'wwfxw':_0x4d61(0xc),'nOoKT':_0x4d61(0xd)};try{if(_0x18d80c[_0x4d61(0xe)]!==_0x4d61(0xf)){if(_0x18d80c[_0x4d61(0x10)](isKeychainAvailable))return await Keychain['getGenericPassword'](_0x5dd170);else{if(_0x18d80c['tyfst'](_0x18d80c['Fmtdr'],_0x18d80c['jCEdC']))return _0x6cf22['parse'](_0x3620ac[_0x4d61(0x11)]);else{const _0x4fa850=(_0x18d80c[_0x4d61(0x12)](_0x5dd170,null)||_0x18d80c['FOevJ'](_0x5dd170,void 0x0)?void 0x0:_0x5dd170[_0x4d61(0x13)])||_0x18d80c[_0x4d61(0x14)];return mockCredentialStorage[_0x4fa850]||null;}}}else try{return Keychain&&_0x18d80c[_0x4d61(0x15)](typeof Keychain[_0x4d61(0x8)],_0x4d61(0x5));}catch(_0x346c27){return![];}}catch(_0x4f2723){console['warn'](_0x18d80c[_0x4d61(0x16)],_0x4f2723);const _0x1a17ef=(_0x5dd170===null||_0x5dd170===void 0x0?void 0x0:_0x5dd170[_0x4d61(0x13)])||'default';return mockCredentialStorage[_0x1a17ef]||null;}},safeSetGenericPassword=async(_0x248b89,_0x309bca,_0x26dea8)=>{const _0x4855db={'LKCkD':function(_0x6fe0f1,_0x44d9f3){return _0x6fe0f1===_0x44d9f3;},'NHsSr':_0x4d61(0xc),'ZNmxQ':'function','ycqMM':_0x4d61(0x17),'aYjWU':function(_0x2f8b2f,_0x25dc0b){return _0x2f8b2f===_0x25dc0b;},'eMccP':_0x4d61(0x18),'MvgIQ':_0x4d61(0x19),'qqCpV':function(_0x56066a){return _0x56066a();},'sNUoo':_0x4d61(0x1a),'qMqoF':function(_0x14fe6f,_0x2c78b0){return _0x14fe6f===_0x2c78b0;},'jHIbw':'DlRET','FWUUh':_0x4d61(0xd)};try{if(_0x4855db[_0x4d61(0x1b)](_0x4855db['eMccP'],_0x4855db[_0x4d61(0x1c)])){const _0x277956=(_0x2628fa===null||_0x4855db[_0x4d61(0x1d)](_0x28d88d,void 0x0)?void 0x0:_0x20d313['service'])||_0x4855db[_0x4d61(0x1e)];return _0x3a8ed0[_0x277956]||null;}else{if(_0x4855db['qqCpV'](isKeychainAvailable))return await Keychain[_0x4d61(0x1f)](_0x248b89,_0x309bca,_0x26dea8);else{if(_0x4855db['sNUoo']==='czmPf'){const _0x499c87=(_0x4855db['LKCkD'](_0x26dea8,null)||_0x4855db['qMqoF'](_0x26dea8,void 0x0)?void 0x0:_0x26dea8['service'])||_0x4855db[_0x4d61(0x1e)];return mockCredentialStorage[_0x499c87]={'username':_0x248b89,'password':_0x309bca},!![];}else return Keychain&&typeof Keychain[_0x4d61(0x8)]===_0x4855db['ZNmxQ'];}}}catch(_0x38cf7a){if(_0x4855db['jHIbw']!==_0x4855db[_0x4d61(0x20)])return _0x3b647c[_0x4d61(0x21)](_0x4855db[_0x4d61(0x22)],_0x3e7fcb),{'success':![],'isValid':![]};else{console[_0x4d61(0x3)](_0x4855db['FWUUh'],_0x38cf7a);const _0x5088fd=(_0x4855db[_0x4d61(0x1b)](_0x26dea8,null)||_0x26dea8===void 0x0?void 0x0:_0x26dea8[_0x4d61(0x13)])||_0x4855db[_0x4d61(0x1e)];return mockCredentialStorage[_0x5088fd]={'username':_0x248b89,'password':_0x309bca},!![];}}},safeResetGenericPassword=async _0x49ff5d=>{const _0x86e501={'EaBBH':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','COpRL':function(_0x4ffdb2,_0x3c27ff){return _0x4ffdb2===_0x3c27ff;},'eooeB':function(_0x2a13df){return _0x2a13df();},'bFfKy':function(_0x50332,_0x4a456c){return _0x50332!==_0x4a456c;},'asJsU':_0x4d61(0x23),'dAPkh':_0x4d61(0xc)};try{if(_0x86e501[_0x4d61(0x24)](isKeychainAvailable))return await Keychain[_0x4d61(0x25)](_0x49ff5d);else{if(_0x86e501[_0x4d61(0x26)](_0x86e501[_0x4d61(0x27)],_0x4d61(0x23))){_0x5efb60[_0x4d61(0x3)](_0x86e501['EaBBH'],_0x533fb7);const _0x2018b6=(_0x86e501['COpRL'](_0x334f20,null)||_0x4d2ed1===void 0x0?void 0x0:_0x1d1042[_0x4d61(0x13)])||'default';return _0x353c3e[_0x2018b6]={'username':_0x39c76d,'password':_0x1125bd},!![];}else{const _0x39aa20=(_0x86e501[_0x4d61(0x28)](_0x49ff5d,null)||_0x86e501[_0x4d61(0x28)](_0x49ff5d,void 0x0)?void 0x0:_0x49ff5d['service'])||_0x86e501['dAPkh'];return delete mockCredentialStorage[_0x39aa20],!![];}}}catch(_0x4104d0){console[_0x4d61(0x3)](_0x86e501[_0x4d61(0x29)],_0x4104d0);const _0x3b3aa4=(_0x86e501[_0x4d61(0x28)](_0x49ff5d,null)||_0x49ff5d===void 0x0?void 0x0:_0x49ff5d[_0x4d61(0x13)])||_0x86e501[_0x4d61(0x2a)];return delete mockCredentialStorage[_0x3b3aa4],!![];}},useCredentials=()=>{const _0x191625={'lYsdR':function(_0x1c92d9,_0xfc1a29){return _0x1c92d9(_0xfc1a29);},'emKVe':_0x4d61(0x2b),'VUWnB':function(_0x264a8b,_0x2319e4){return _0x264a8b===_0x2319e4;},'EKJhm':function(_0x5d322d,_0x549ad3){return _0x5d322d===_0x549ad3;},'Iigjv':_0x4d61(0xc),'odtbV':'MsNzL','GKLLn':_0x4d61(0x2c),'sLyhl':_0x4d61(0x2d),'RuIUz':function(_0x426d71,_0x368f5f){return _0x426d71===_0x368f5f;},'agqnM':_0x4d61(0x2e),'NilAn':'Keychain\x20access\x20failed,\x20using\x20mock\x20storage','oDvFQ':function(_0x58225b,_0x43e6b7){return _0x58225b===_0x43e6b7;},'FkspU':_0x4d61(0x2f),'QzecL':'aMgaJ','wNydF':function(_0x1a547a,_0xd889a1){return _0x1a547a===_0xd889a1;},'vMVkE':function(_0x2b7c44,_0x52184a){return _0x2b7c44===_0x52184a;},'hJpHi':function(_0x107d04,_0x2f63ed){return _0x107d04===_0x2f63ed;},'zdcew':function(_0x5955f1,_0x569219,_0x11b95f,_0x2f8fbc){return _0x5955f1(_0x569219,_0x11b95f,_0x2f8fbc);},'FHrXo':function(_0x5adf6e,_0x28b379){return _0x5adf6e===_0x28b379;},'SsUSD':'xoEgX','ztCyd':_0x4d61(0x30),'HlkKT':function(_0x27027d,_0x37bdcb){return _0x27027d===_0x37bdcb;},'lQrow':function(_0x418bcc,_0x264710){return _0x418bcc!==_0x264710;},'iNtrx':_0x4d61(0x31),'BPXYe':function(_0x16bbed,_0x55db33){return _0x16bbed===_0x55db33;},'LIBns':function(_0x56875c,_0x8bc2bc){return _0x56875c===_0x8bc2bc;},'HgVWx':'dbmNG','XMRTX':_0x4d61(0x32),'hFVAR':function(_0x5d24d2,_0x4f05e6,_0x5c24c7){return _0x5d24d2(_0x4f05e6,_0x5c24c7);},'mNIgo':function(_0x16a46a,_0x3c69bd){return _0x16a46a!==_0x3c69bd;},'pjhTA':_0x4d61(0x33),'DTiMH':_0x4d61(0x17)},_0x466aa3=(0x0,_react[_0x4d61(0x34)])(async()=>{try{const _0x240e77=await _0x191625[_0x4d61(0x35)](safeGetGenericPassword,{'service':_constants['STORAGE_KEYS'][_0x4d61(0x36)]});return!!_0x240e77;}catch(_0x458a1b){return console['error'](_0x191625[_0x4d61(0x37)],_0x458a1b),![];}},[]),_0x2962ce=(0x0,_react[_0x4d61(0x34)])(async()=>{const _0xd11ab5={'AumsL':function(_0x5a30bf,_0x460285){return _0x5a30bf(_0x460285);}};if(_0x191625[_0x4d61(0x38)]===_0x191625['GKLLn']){const _0x3b4e62=(_0x191625['VUWnB'](_0x4a5cff,null)||_0x191625['EKJhm'](_0x16d352,void 0x0)?void 0x0:_0x4c01e3[_0x4d61(0x13)])||_0x191625['Iigjv'];return delete _0xf2d2cf[_0x3b4e62],!![];}else try{const _0x32758c=await safeGetGenericPassword({'service':_constants[_0x4d61(0x39)]['credentials']});if(_0x32758c){if(_0x191625['VUWnB'](_0x191625[_0x4d61(0x3a)],_0x191625[_0x4d61(0x3a)]))return JSON[_0x4d61(0x3b)](_0x32758c['password']);else Keychain=_0xd11ab5[_0x4d61(0x3c)](_0x5dfec8,0x3);}return null;}catch(_0x3e7574){if(_0x191625['RuIUz'](_0x191625[_0x4d61(0x3d)],_0x191625[_0x4d61(0x3d)]))return console[_0x4d61(0x21)](_0x4d61(0x3e),_0x3e7574),null;else _0x4a9a73[_0x4d61(0x3)]('react-native-keychain module not available in useCredentials, using mock storage');}},[]),_0x20d5f9=(0x0,_react['useCallback'])(async(_0x20d937,_0xdd1dec,_0xe67baf)=>{try{const _0x119e99={'service':_constants[_0x4d61(0x39)]['credentials']};if(isKeychainAvailable()){if(_0x191625[_0x4d61(0x3f)](_0x4d61(0x40),_0x191625[_0x4d61(0x41)])){var _0x18413d,_0x554568;_0x119e99[_0x4d61(0x42)]=_0x191625[_0x4d61(0x43)](_0x18413d=Keychain[_0x4d61(0x44)],null)||_0x191625[_0x4d61(0x45)](_0x18413d,void 0x0)?void 0x0:_0x18413d[_0x4d61(0x46)],_0x119e99[_0x4d61(0x47)]=_0x191625[_0x4d61(0x48)](_0x554568=Keychain['ACCESSIBLE'],null)||_0x191625[_0x4d61(0x49)](_0x554568,void 0x0)?void 0x0:_0x554568[_0x4d61(0x4a)];}else{_0x28eb7b[_0x4d61(0x3)](_0x191625[_0x4d61(0x4b)],_0x34c185);const _0x5e55c9=(_0x191625[_0x4d61(0x3f)](_0x24742a,null)||_0x191625[_0x4d61(0x4c)](_0x18f35c,void 0x0)?void 0x0:_0x2f1436['service'])||_0x191625[_0x4d61(0x4d)];return _0x470344[_0x5e55c9]||null;}}return await _0x191625[_0x4d61(0x4e)](safeSetGenericPassword,_0x20d937,JSON[_0x4d61(0x4f)]({'userPin':_0xdd1dec,'accessToken':_0xe67baf}),_0x119e99),!![];}catch(_0x4aea09){if(_0x191625['FHrXo'](_0x191625[_0x4d61(0x50)],_0x191625[_0x4d61(0x50)]))return console[_0x4d61(0x21)](_0x191625[_0x4d61(0x51)],_0x4aea09),![];else _0x58ef31[_0x4d61(0x21)](_0x191625['FkspU'],_0x187fc9);}},[]),_0x33599e=(0x0,_react['useCallback'])(async()=>{const _0x1f5dbd={'GIfOS':_0x191625[_0x4d61(0x4b)],'ETDAX':function(_0x562408,_0x19c7ea){return _0x191625[_0x4d61(0x52)](_0x562408,_0x19c7ea);},'qWVea':function(_0x4da2c0,_0x4fd917){return _0x191625[_0x4d61(0x49)](_0x4da2c0,_0x4fd917);}};try{await _0x191625[_0x4d61(0x35)](safeResetGenericPassword,{'service':_constants[_0x4d61(0x39)][_0x4d61(0x36)]});}catch(_0x2ce045){if(_0x191625[_0x4d61(0x53)](_0x191625['iNtrx'],_0x191625[_0x4d61(0x54)])){_0x24c259[_0x4d61(0x3)](_0x1f5dbd[_0x4d61(0x55)],_0x13ef97);const _0xd645ea=(_0x1f5dbd['ETDAX'](_0x3b2e72,null)||_0x1f5dbd[_0x4d61(0x56)](_0xd8fce0,void 0x0)?void 0x0:_0x37a8eb[_0x4d61(0x13)])||_0x4d61(0xc);return delete _0x25da04[_0xd645ea],!![];}else console['error'](_0x191625[_0x4d61(0x57)],_0x2ce045);}},[]),_0x332987=(0x0,_react['useCallback'])(async _0xfcb29d=>{const _0x539ce7={'ZoZrv':_0x4d61(0x3e)};if(_0x191625['lQrow'](_0x191625[_0x4d61(0x58)],_0x191625[_0x4d61(0x59)]))try{const _0x1a8cb8=await _0x191625['hFVAR'](fetch,_api[_0x4d61(0x5a)][_0x4d61(0x5b)]+_0x4d61(0x5c),{'method':'POST','headers':{'Content-Type':'application/json'},'body':JSON[_0x4d61(0x4f)]({'username':_0xfcb29d})}),_0x41bde4=await _0x1a8cb8[_0x4d61(0x5d)]();return{'success':!![],'isValid':_0x41bde4['valid'],'credentials':_0x41bde4[_0x4d61(0x36)]};}catch(_0x2e0541){return _0x191625[_0x4d61(0x5e)](_0x4d61(0x5f),_0x191625[_0x4d61(0x60)])?(console[_0x4d61(0x21)](_0x191625['DTiMH'],_0x2e0541),{'success':![],'isValid':![]}):(_0x16ebdd['error'](_0x539ce7[_0x4d61(0x61)],_0x495202),null);}else{const _0x128374=(_0x191625[_0x4d61(0x62)](_0x303a50,null)||_0x191625[_0x4d61(0x63)](_0x268487,void 0x0)?void 0x0:_0x4857b0[_0x4d61(0x13)])||_0x191625[_0x4d61(0x4d)];return _0x1542f4[_0x128374]={'username':_0x4d11d6,'password':_0x1475a6},!![];}},[]);return{'hasCredentials':_0x466aa3,'getCredentials':_0x2962ce,'storeCredentials':_0x20d5f9,'clearCredentials':_0x33599e,'validateCredentials':_0x332987};};exports[_0x4d61(0x2)]=useCredentials;function _0x4d61(_0x5ca197,_0x4d6117){_0x5ca197=_0x5ca197-0x0;const _0x1f0fd8=_0x5ca1();let _0x47327f=_0x1f0fd8[_0x5ca197];return _0x47327f;}function _0x5ca1(){const _0x4f4ddc=['defineProperty','__esModule','useCredentials','warn','oTYWI','function','PIOss','gXpKs','getGenericPassword','nwNMq','uEdnA','xezTC','default','Keychain\x20access\x20failed,\x20using\x20mock\x20storage','cxtem','ybdCk','cVXhl','password','FOevJ','service','wwfxw','tyfst','nOoKT','Error\x20validating\x20credentials:','eyquD','HeguF','czmPf','aYjWU','MvgIQ','LKCkD','NHsSr','setGenericPassword','jHIbw','error','ycqMM','zlZhx','eooeB','resetGenericPassword','bFfKy','asJsU','COpRL','EaBBH','dAPkh','Error\x20checking\x20credentials:','OKKKa','mMwzs','nSRpw','Error\x20clearing\x20credentials:','Error\x20storing\x20credentials:','kAACV','yNKKi','rrZTx','useCallback','lYsdR','credentials','emKVe','odtbV','STORAGE_KEYS','sLyhl','parse','AumsL','agqnM','Error\x20getting\x20credentials:','VUWnB','aMgaJ','QzecL','accessControl','wNydF','ACCESS_CONTROL','EKJhm','BIOMETRY_ANY','accessible','vMVkE','hJpHi','WHEN_UNLOCKED','NilAn','oDvFQ','Iigjv','zdcew','stringify','SsUSD','ztCyd','HlkKT','lQrow','iNtrx','GIfOS','qWVea','FkspU','HgVWx','XMRTX','API_CONFIG','BASE_URL','/validate','json','mNIgo','tZPLq','pjhTA','ZoZrv','BPXYe','LIBns'];_0x5ca1=function(){return _0x4f4ddc;};return _0x5ca1();}
|
|
@@ -7,4 +7,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
7
7
|
require("@react-native-async-storage/async-storage")
|
|
8
8
|
];
|
|
9
9
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
10
|
-
|
|
10
|
+
function _0x23ec(_0x4fb91e,_0x23ecd1){_0x4fb91e=_0x4fb91e-0x0;const _0x33a270=_0x4fb9();let _0x231e63=_0x33a270[_0x4fb91e];return _0x231e63;}function _0x4fb9(){const _0x50be08=['defineProperty','__esModule','useUserConnections','Failed\x20to\x20load\x20connections','â\x20Error\x20fetching\x20connections\x20by\x20userId:','qKioh','ecxxO','ovTQE','onairos_jwt_token','4|2|3|0|1','Authentication\x20required\x20for\x20connections','â ī¸\x20[CONNECTIONS\x20HOOK]\x20Skipping\x20API\x20call\x20to\x20prevent\x20unauthenticated\x20requests','đ¯\x20[DEMO\x20MODE]\x20Reviewer\x20bypass\x20detected\x20-\x20skipping\x20API\x20call\x20for\x20demo','â\x20[CONNECTIONS\x20HOOK]\x20Unexpected\x20null\x20token\x20after\x20validation','đ\x20Loading\x20user\x20connections\x20with\x20authentication...','â
\x20Connections\x20loaded:','fCVfE','â
\x20[CONNECTIONS\x20HOOK]\x20Connections\x20refresh\x20completed','UhKCK','OIVRR','gSxlx','tbFbP','đ\x20Fetching\x20connections\x20by\x20userId:','â\x20Error\x20uploading\x20profile\x20picture:','useState','â\x20Error\x20fetching\x20connections\x20by\x20username:','kQoZZ','YaRHI','mhsWH','JNgtx','RZirm','cEjeS','getAuthToken','getItem','UhzZF','reviewer-bypass-token','JpZcM','DQKnA','warn','WOpOi','HbSlR','log','voUSE','zQsZP','XFyHQ','substring','...','getUserConnections','length','vrNfO','message','zdrmW','error','aOjsM','ItnNq','Nvrhb','kNJxy','wOoRX','useCallback','qmjGJ','TMrxr','rfAxu','JBQXy','JcArF','â ī¸\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','AFWvR','EadWD','fXNZA','PWTdC','Tbbqv','uturU','NNphC','sltUm','OVxKU','getUserConnectionsByUserId','ZkHVN','OsKCm','jpg','uploadProfilePicture','success','ASURz','useEffect'];_0x4fb9=function(){return _0x50be08;};return _0x4fb9();}Object[_0x23ec(0x0)](exports,_0x23ec(0x1),{'value':!![]}),exports[_0x23ec(0x2)]=void 0x0;var _react=__ONAIROS_REQ_FUNC__(0x0),_userConnectionsService=__ONAIROS_REQ_FUNC__(0x1),_authService=__ONAIROS_REQ_FUNC__(0x2),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x3));function _interopRequireDefault(_0x18131c){return _0x18131c&&_0x18131c[_0x23ec(0x1)]?_0x18131c:{'default':_0x18131c};}const useUserConnections=()=>{const _0x549414={'vrNfO':function(_0x39853c,_0x203271){return _0x39853c instanceof _0x203271;},'zdrmW':_0x23ec(0x3),'aOjsM':'â\x20Error\x20loading\x20connections:','cEjeS':function(_0xbdec0,_0x1085be){return _0xbdec0(_0x1085be);},'kQoZZ':_0x23ec(0x4),'YaRHI':_0x23ec(0x5),'mhsWH':'VAKOA','JNgtx':_0x23ec(0x6),'RZirm':_0x23ec(0x7),'UhzZF':_0x23ec(0x8),'JpZcM':function(_0x4f2135,_0x2bf7e6){return _0x4f2135&&_0x2bf7e6;},'DQKnA':_0x23ec(0x9),'NdQQT':_0x23ec(0xa),'WOpOi':_0x23ec(0xb),'HbSlR':function(_0x5667d4,_0x3a6329){return _0x5667d4(_0x3a6329);},'xJVos':'â ī¸\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20connections\x20refresh','ShKAj':_0x23ec(0xc),'voUSE':function(_0x480e3f,_0x310137){return _0x480e3f(_0x310137);},'zQsZP':_0x23ec(0xd),'rfAxu':'Authentication\x20error','XFyHQ':_0x23ec(0xe),'OlqGb':_0x23ec(0xf),'ItnNq':function(_0x1ee173,_0x14e753){return _0x1ee173!==_0x14e753;},'npNWb':_0x23ec(0x10),'sTvRu':function(_0xabb804,_0x45aa56){return _0xabb804(_0x45aa56);},'Nvrhb':function(_0x56ed5b,_0x48bd8b){return _0x56ed5b!==_0x48bd8b;},'kNJxy':'MEMbb','NmMHi':'đ\x20[CONNECTIONS\x20HOOK]\x20Refreshing\x20connections...','BbEBK':function(_0x506ed9){return _0x506ed9();},'qmjGJ':_0x23ec(0x11),'TMrxr':function(_0x1457f2,_0x23be44){return _0x1457f2(_0x23be44);},'JBQXy':_0x23ec(0x12),'JcArF':_0x23ec(0x13),'AFWvR':'đ\x20Fetching\x20connections\x20by\x20username:','EadWD':'đ\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:','fXNZA':'eeiZF','ZkHVN':function(_0x591d8f){return _0x591d8f();},'OsKCm':'â ī¸\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20username\x20connections','uturU':function(_0x9d0602,_0x14ced8){return _0x9d0602===_0x14ced8;},'sBmQt':_0x23ec(0x14),'NNphC':'lfBrE','sltUm':_0x23ec(0x15),'OVxKU':'â ī¸\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections','PNJYt':_0x23ec(0x16),'ASURz':_0x23ec(0x17)},[_0x1b3594,_0x12c380]=(0x0,_react[_0x23ec(0x18)])([]),[_0x518c31,_0x3dc659]=(0x0,_react[_0x23ec(0x18)])(!![]),[_0x59f0e5,_0x2308bb]=(0x0,_react[_0x23ec(0x18)])(null),_0x31239d=(0x0,_react['useCallback'])(async()=>{const _0xbaf025={'ydgRt':_0x23ec(0x19),'cajir':_0x549414[_0x23ec(0x1a)]};if(_0x549414[_0x23ec(0x1b)]!==_0x549414[_0x23ec(0x1c)])try{if(_0x549414[_0x23ec(0x1d)]!==_0x549414[_0x23ec(0x1e)]){_0x549414[_0x23ec(0x1f)](_0x3dc659,!![]),_0x549414['cEjeS'](_0x2308bb,null);const _0x1df224=await(0x0,_authService[_0x23ec(0x20)])(),_0x3008e5=await _asyncStorage['default'][_0x23ec(0x21)](_0x549414[_0x23ec(0x22)]),_0x384081=_0x3008e5===_0x23ec(0x23);if(_0x549414[_0x23ec(0x24)](!_0x1df224,!_0x384081)){const _0x3dcfe7=_0x549414[_0x23ec(0x25)]['split']('|');let _0x4922f3=0x0;while(!![]){switch(_0x3dcfe7[_0x4922f3++]){case'0':_0x549414[_0x23ec(0x1f)](_0x2308bb,_0x549414['NdQQT']);continue;case'1':return;case'2':console[_0x23ec(0x26)](_0x549414[_0x23ec(0x27)]);continue;case'3':_0x549414[_0x23ec(0x28)](_0x12c380,[]);continue;case'4':console['warn'](_0x549414['xJVos']);continue;}break;}}if(_0x384081){console[_0x23ec(0x29)](_0x549414['ShKAj']),_0x549414[_0x23ec(0x28)](_0x12c380,[]),_0x549414[_0x23ec(0x2a)](_0x2308bb,null);return;}if(!_0x1df224){console['error'](_0x549414[_0x23ec(0x2b)]),_0x549414[_0x23ec(0x28)](_0x12c380,[]),_0x549414[_0x23ec(0x2a)](_0x2308bb,_0x549414['rfAxu']);return;}console[_0x23ec(0x29)](_0x549414[_0x23ec(0x2c)]),console[_0x23ec(0x29)]('đ\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:',_0x1df224[_0x23ec(0x2d)](0x0,0x14)+_0x23ec(0x2e));const _0x18373f=await(0x0,_userConnectionsService[_0x23ec(0x2f)])();_0x549414[_0x23ec(0x2a)](_0x12c380,_0x18373f),console['log'](_0x549414['OlqGb'],_0x18373f[_0x23ec(0x30)]);}else{const _0x8cbfcf=_0x549414[_0x23ec(0x31)](_0x58de53,_0x3b3b06)?_0x395927[_0x23ec(0x32)]:_0x549414[_0x23ec(0x33)];_0x10bd8e[_0x23ec(0x34)](_0x549414[_0x23ec(0x35)],_0x8cbfcf),_0x549414[_0x23ec(0x1f)](_0x1458e5,_0x8cbfcf),_0x4a965b([]);}}catch(_0x2ac49a){if(_0x549414[_0x23ec(0x36)]('wIeSc',_0x549414['npNWb'])){const _0x39912c=_0x549414[_0x23ec(0x31)](_0x2ac49a,Error)?_0x2ac49a['message']:_0x549414[_0x23ec(0x33)];console['error'](_0x549414[_0x23ec(0x35)],_0x39912c),_0x549414['cEjeS'](_0x2308bb,_0x39912c),_0x549414['sTvRu'](_0x12c380,[]);}else return _0x1c1bbe['error'](_0xbaf025['ydgRt'],_0x475731),[];}finally{if(_0x549414[_0x23ec(0x37)](_0x549414[_0x23ec(0x38)],_0x23ec(0x39)))_0x549414[_0x23ec(0x2a)](_0x3dc659,![]);else return _0x30f682[_0x23ec(0x34)](_0xbaf025['cajir'],_0x3f6037),[];}else return _0x4227f9[_0x23ec(0x26)]('â ī¸\x20[CONNECTIONS\x20HOOK]\x20No\x20authentication\x20token\x20available\x20for\x20user\x20ID\x20connections'),[];},[]),_0x516b6d=(0x0,_react[_0x23ec(0x3a)])(async()=>{console[_0x23ec(0x29)](_0x549414['NmMHi']),await _0x549414['BbEBK'](_0x31239d),console[_0x23ec(0x29)](_0x549414[_0x23ec(0x3b)]);},[_0x31239d]),_0x12b5d7=(0x0,_react[_0x23ec(0x3a)])(async _0x4e3f2d=>{const _0x372f9b={'KSlXe':_0x549414[_0x23ec(0x2b)],'PWTdC':function(_0x324ccd,_0x17eb00){return _0x549414[_0x23ec(0x3c)](_0x324ccd,_0x17eb00);},'Tbbqv':_0x549414[_0x23ec(0x3d)]};if(_0x549414['ItnNq'](_0x549414[_0x23ec(0x3e)],_0x549414[_0x23ec(0x3f)]))try{const _0x5e0414=await(0x0,_authService[_0x23ec(0x20)])();if(!_0x5e0414)return console[_0x23ec(0x26)](_0x23ec(0x40)),[];return console[_0x23ec(0x29)](_0x549414[_0x23ec(0x41)],_0x4e3f2d),console[_0x23ec(0x29)](_0x549414[_0x23ec(0x42)],_0x5e0414[_0x23ec(0x2d)](0x0,0x14)+'...'),await(0x0,_userConnectionsService['getUserConnectionsByUsername'])(_0x4e3f2d);}catch(_0x38f88b){if(_0x549414[_0x23ec(0x37)](_0x549414[_0x23ec(0x43)],_0x549414[_0x23ec(0x43)])){_0xf83ae9['error'](_0x372f9b['KSlXe']),_0x372f9b[_0x23ec(0x44)](_0x4c9376,[]),_0x372f9b[_0x23ec(0x44)](_0x5e0059,_0x372f9b[_0x23ec(0x45)]);return;}else return console['error'](_0x23ec(0x19),_0x38f88b),[];}else return _0x3618c3&&_0x27cd0b[_0x23ec(0x1)]?_0x3de15b:{'default':_0xa52788};},[]),_0x11294a=(0x0,_react[_0x23ec(0x3a)])(async _0x3be656=>{if(_0x549414[_0x23ec(0x46)](_0x23ec(0x14),_0x549414['sBmQt']))try{if(_0x549414['ItnNq'](_0x549414[_0x23ec(0x47)],_0x549414[_0x23ec(0x48)])){const _0x519632=await(0x0,_authService['getAuthToken'])();if(!_0x519632)return console[_0x23ec(0x26)](_0x549414[_0x23ec(0x49)]),[];return console['log'](_0x549414['PNJYt'],_0x3be656),console['log']('đ\x20[CONNECTIONS\x20HOOK]\x20Using\x20auth\x20token:',_0x519632[_0x23ec(0x2d)](0x0,0x14)+_0x23ec(0x2e)),await(0x0,_userConnectionsService[_0x23ec(0x4a)])(_0x3be656);}else _0x549414[_0x23ec(0x4b)](_0x152a7d);}catch(_0x986746){return console[_0x23ec(0x34)](_0x549414[_0x23ec(0x1a)],_0x986746),[];}else return _0xc1dc12[_0x23ec(0x26)](_0x549414[_0x23ec(0x4c)]),[];},[]),_0x5035bc=(0x0,_react[_0x23ec(0x3a)])(async(_0x5ad28a,_0x2d1d27=_0x23ec(0x4d))=>{try{console[_0x23ec(0x29)]('đˇ\x20Uploading\x20profile\x20picture\x20for\x20user:');const _0x441d25=await(0x0,_userConnectionsService[_0x23ec(0x4e)])(_0x5ad28a,_0x2d1d27);return _0x441d25[_0x23ec(0x4f)];}catch(_0x56e9f2){return console[_0x23ec(0x34)](_0x549414[_0x23ec(0x50)],_0x56e9f2),![];}},[]);return(0x0,_react[_0x23ec(0x51)])(()=>{_0x31239d();},[_0x31239d]),{'connections':_0x1b3594,'isLoading':_0x518c31,'error':_0x59f0e5,'refreshConnections':_0x516b6d,'getConnectionsByUsername':_0x12b5d7,'getConnectionsByUserId':_0x11294a,'uploadUserProfilePicture':_0x5035bc};};exports[_0x23ec(0x2)]=useUserConnections;
|
package/lib/commonjs/index.js
CHANGED
|
@@ -31,4 +31,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
31
31
|
require("./services/apiClient")
|
|
32
32
|
];
|
|
33
33
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
34
|
-
function
|
|
34
|
+
function _0x2a90(_0x4fbf0a,_0x2a9013){_0x4fbf0a=_0x4fbf0a-0x0;var _0x1c1c4c=_0x4fbf();var _0xa80483=_0x1c1c4c[_0x4fbf0a];return _0xa80483;}Object['defineProperty'](exports,'__esModule',{'value':!![]}),Object[_0x2a90(0x0)](exports,_0x2a90(0x1),{'enumerable':!![],'get':function(){return _apiClient['ApiClient'];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x2),{'enumerable':!![],'get':function(){return _BodyText[_0x2a90(0x2)];}}),Object['defineProperty'](exports,'BrandMark',{'enumerable':!![],'get':function(){return _BrandMark[_0x2a90(0x3)];}}),Object['defineProperty'](exports,'HeadingGroup',{'enumerable':!![],'get':function(){return _HeadingGroup[_0x2a90(0x4)];}}),Object['defineProperty'](exports,_0x2a90(0x5),{'enumerable':!![],'get':function(){return _ModalHeader[_0x2a90(0x5)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x6),{'enumerable':!![],'get':function(){return _ModalSheet['ModalSheet'];}}),Object['defineProperty'](exports,_0x2a90(0x7),{'enumerable':!![],'get':function(){return _OAuthWebView[_0x2a90(0x7)];}}),Object['defineProperty'](exports,_0x2a90(0x8),{'enumerable':!![],'get':function(){return _Onairos['Onairos'];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x9),{'enumerable':!![],'get':function(){return _OnairosButton['OnairosButton'];}}),Object['defineProperty'](exports,_0x2a90(0xa),{'enumerable':!![],'get':function(){return _OnairosSignInButton[_0x2a90(0xa)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0xb),{'enumerable':!![],'get':function(){return _PersonaImage[_0x2a90(0xc)];}}),Object[_0x2a90(0x0)](exports,'PersonalizationConsentScreen',{'enumerable':!![],'get':function(){return _PersonalizationConsentScreen[_0x2a90(0xd)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0xe),{'enumerable':!![],'get':function(){return _PinCreationScreen[_0x2a90(0xe)];}}),Object[_0x2a90(0x0)](exports,'PlatformConnectorsStep',{'enumerable':!![],'get':function(){return _PlatformConnectorsStep[_0x2a90(0xc)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0xf),{'enumerable':!![],'get':function(){return _Portal[_0x2a90(0xf)];}}),Object['defineProperty'](exports,_0x2a90(0x10),{'enumerable':!![],'get':function(){return _Portal[_0x2a90(0x10)];}}),Object[_0x2a90(0x0)](exports,'PrimaryButton',{'enumerable':!![],'get':function(){return _PrimaryButton[_0x2a90(0x11)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x12),{'enumerable':!![],'get':function(){return _SignInStep['SignInStep'];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x13),{'enumerable':!![],'get':function(){return _UniversalOnboarding[_0x2a90(0x13)];}}),Object[_0x2a90(0x0)](exports,'VerificationStep',{'enumerable':!![],'get':function(){return _VerificationStep[_0x2a90(0x14)];}}),Object['defineProperty'](exports,'WelcomeScreen',{'enumerable':!![],'get':function(){return _WelcomeScreen[_0x2a90(0xc)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x15),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2a90(0x15)];}}),Object['defineProperty'](exports,_0x2a90(0x16),{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2a90(0x16)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x17),{'enumerable':!![],'get':function(){return _authService[_0x2a90(0x17)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x18),{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2a90(0x18)];}}),Object['defineProperty'](exports,_0x2a90(0x19),{'enumerable':!![],'get':function(){return _apiKeyService[_0x2a90(0x19)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x1a),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2a90(0x1a)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x1b),{'enumerable':!![],'get':function(){return _apiKeyService['extractUserDataFromJWT'];}}),Object['defineProperty'](exports,_0x2a90(0x1c),{'enumerable':!![],'get':function(){return _apiKeyService['extractUsernameFromJWT'];}}),Object['defineProperty'](exports,_0x2a90(0x1d),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2a90(0x1d)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x1e),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2a90(0x1e)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x1f),{'enumerable':!![],'get':function(){return _networkDiagnostics[_0x2a90(0x1f)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x20),{'enumerable':!![],'get':function(){return _apiKeyService[_0x2a90(0x20)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x21),{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2a90(0x21)];}}),Object['defineProperty'](exports,_0x2a90(0x22),{'enumerable':!![],'get':function(){return _networkDiagnostics[_0x2a90(0x22)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x23),{'enumerable':!![],'get':function(){return _authService['isAuthenticated'];}}),Object[_0x2a90(0x0)](exports,'isValidLinkedInUrl',{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2a90(0x24)];}}),Object[_0x2a90(0x0)](exports,'parseExtractionMessage',{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2a90(0x25)];}}),Object[_0x2a90(0x0)](exports,'runFullDiagnostics',{'enumerable':!![],'get':function(){return _networkDiagnostics[_0x2a90(0x26)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x27),{'enumerable':!![],'get':function(){return _linkedinScrapingService[_0x2a90(0x27)];}}),Object[_0x2a90(0x0)](exports,'testApiConnectivity',{'enumerable':!![],'get':function(){return _platformAuthService[_0x2a90(0x28)];}}),Object[_0x2a90(0x0)](exports,'updateGoogleClientIds',{'enumerable':!![],'get':function(){return _googleAuthService[_0x2a90(0x29)];}}),Object[_0x2a90(0x0)](exports,_0x2a90(0x2a),{'enumerable':!![],'get':function(){return _useConnections[_0x2a90(0x2a)];}}),Object[_0x2a90(0x0)](exports,'validateExtractedUrl',{'enumerable':!![],'get':function(){return _linkedinDOMExtractor[_0x2a90(0x2b)];}});var _OnairosButton=__ONAIROS_REQ_FUNC__(0x0),_OnairosSignInButton=__ONAIROS_REQ_FUNC__(0x1),_Onairos=__ONAIROS_REQ_FUNC__(0x2),_UniversalOnboarding=__ONAIROS_REQ_FUNC__(0x3),_OAuthWebView=__ONAIROS_REQ_FUNC__(0x4),_Portal=__ONAIROS_REQ_FUNC__(0x5),_WelcomeScreen=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x6)),_PrimaryButton=__ONAIROS_REQ_FUNC__(0x7),_ModalSheet=__ONAIROS_REQ_FUNC__(0x8),_ModalHeader=__ONAIROS_REQ_FUNC__(0x9),_BrandMark=__ONAIROS_REQ_FUNC__(0xa),_HeadingGroup=__ONAIROS_REQ_FUNC__(0xb),_BodyText=__ONAIROS_REQ_FUNC__(0xc),_SignInStep=__ONAIROS_REQ_FUNC__(0xd),_VerificationStep=__ONAIROS_REQ_FUNC__(0xe),_PlatformConnectorsStep=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0xf)),_PersonalizationConsentScreen=__ONAIROS_REQ_FUNC__(0x10),_PinCreationScreen=__ONAIROS_REQ_FUNC__(0x11),_PersonaImage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x12)),_useConnections=__ONAIROS_REQ_FUNC__(0x13),_apiKeyService=__ONAIROS_REQ_FUNC__(0x14),_authService=__ONAIROS_REQ_FUNC__(0x15),_googleAuthService=__ONAIROS_REQ_FUNC__(0x16),_platformAuthService=__ONAIROS_REQ_FUNC__(0x17),_networkDiagnostics=__ONAIROS_REQ_FUNC__(0x18),_linkedinScrapingService=__ONAIROS_REQ_FUNC__(0x19),_linkedinDOMExtractor=__ONAIROS_REQ_FUNC__(0x1a),_apiClient=__ONAIROS_REQ_FUNC__(0x1b);function _interopRequireDefault(_0x5a2f23){return _0x5a2f23&&_0x5a2f23[_0x2a90(0x2c)]?_0x5a2f23:{'default':_0x5a2f23};}console[_0x2a90(0x2d)](_0x2a90(0x2e)),console[_0x2a90(0x2d)]('\uD83D\uDE80 [ONAIROS SDK] Source: onairos-npm-react-native/src/index.ts');function _0x4fbf(){var _0x444006=['defineProperty','ApiClient','BodyText','BrandMark','HeadingGroup','ModalHeader','ModalSheet','OAuthWebView','Onairos','OnairosButton','OnairosSignInButton','PersonaImage','default','PersonalizationConsentScreen','PinCreationScreen','Portal','PortalHost','PrimaryButton','SignInStep','UniversalOnboarding','VerificationStep','canScrapeProfile','checkScrapingStatus','clearAllAuthTokens','completeLinkedInExtraction','decodeJWTPayload','extractLinkedInUsername','extractUserDataFromJWT','extractUsernameFromJWT','formatLinkedInUrl','getLinkedInConnectionStatus','getNetworkStatus','initializeApiKey','initiateProfileScraping','isApiReachable','isAuthenticated','isValidLinkedInUrl','parseExtractionMessage','runFullDiagnostics','scrapeLinkedInProfile','testApiConnectivity','updateGoogleClientIds','useConnections','validateExtractedUrl','__esModule','log','đ\x20[ONAIROS\x20SDK]\x20LOCAL\x20SDK\x20LOADED\x20-\x20Version\x205.0.0-local-dev'];_0x4fbf=function(){return _0x444006;};return _0x4fbf();}
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("../config/api")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
function _0x52d7(_0x375b1f,_0x52d7e8){_0x375b1f=_0x375b1f-0x0;const _0x5d1fe1=_0x375b();let _0x518e8b=_0x5d1fe1[_0x375b1f];return _0x518e8b;}Object['defineProperty'](exports,_0x52d7(0x0),{'value':!![]}),exports[_0x52d7(0x1)]=exports[_0x52d7(0x2)]=exports[_0x52d7(0x3)]=exports[_0x52d7(0x4)]=exports[_0x52d7(0x5)]=exports[_0x52d7(0x6)]=exports[_0x52d7(0x7)]=exports[_0x52d7(0x8)]=void 0x0;var _jwtStorageService=__ONAIROS_REQ_FUNC__(0x0),_api=__ONAIROS_REQ_FUNC__(0x1);let currentRequestId=0x0;function _0x375b(){const _0x2c9ab6=['__esModule','default','authenticatedRequest','apiPut','apiPost','apiGet','apiDelete','apiClient','ApiClient','API_CONFIG','BASE_URL','baseUrl','authTriggers','OnairosSDK/1.0.0','Request\x20cancelled','UslYX','akfLW','log','đ\x20[API\x20Client]\x20Starting\x20request\x20','getTokenTypeForRoute','đ¯\x20[API\x20Client]\x20Route\x20','\x20requires\x20','\x20token','getRequestHeaders','requiresAuth','method','headers','body','stringify','signal','đ\x20[API\x20Client]\x20Request\x20','\x20using\x20','JwYlz','đĄ\x20[API\x20Client]\x20Response\x20','\x20status:','status','handle401Error','json','delete','message','Request\x20failed\x20with\x20status\x20','request','ztHSH','bUiqW','name','\x20was\x20cancelled','error','â\x20[API\x20Client]\x20Request\x20','\x20failed:','Unknown\x20error','\x20token\x20available\x20for\x20route\x20','.\x20Please\x20authenticate\x20first.','XjbgI','triggerReAuthForTokenType','clearJWT','\x20token\x20due\x20to\x20401\x20error','đĢ\x20[API\x20Client]\x20Request\x20','\x20received\x20401\x20for\x20','\x20token\x20on\x20route:\x20','\x20authentication\x20expired\x20for\x20','.\x20Please\x20re-authenticate.','cancelRequestsForTokenType','AbortError','đ§\x20[API\x20Client]\x20Triggering\x20Enoch\x20email\x20re-verification','â ī¸\x20[API\x20Client]\x20No\x20Enoch\x20re-auth\x20trigger\x20configured','OTucp','đ\x20[API\x20Client]\x20Triggering\x20auth\x20token\x20refresh','â ī¸\x20[API\x20Client]\x20No\x20auth\x20token\x20refresh\x20trigger\x20configured','đ\x20[API\x20Client]\x20Triggering\x20re-auth\x20for\x20','\x20token\x20(endpoint:\x20','TokenType','ENOCH','triggerEnochReAuth','RpwTK','warn','GCPsY','ONAIROS','triggerOnairosReAuth','Crknu','GOsqA','â ī¸\x20[API\x20Client]\x20No\x20Onairos\x20re-auth\x20trigger\x20configured','AUTH','triggerAuthTokenRefresh','qyiYR','YvQlv','ZqGVH','QniTo','KyLNu','JraYq','â\x20[API\x20Client]\x20Failed\x20to\x20trigger\x20re-auth\x20for\x20','entries','LaBPh','GOnyO','tCDGy','abort','KlcRS','\x20token\x20failure','QBVca','đ\x20[API\x20Client]\x20Replacing\x20','DrKyW','zsVAG','â
\x20[API\x20Client]\x20','\x20token\x20replaced\x20and\x20related\x20requests\x20cancelled','debugTokens','đ\x20[API\x20Client]\x20Debug:\x20Current\x20token\x20status','vIrQz','asYWP','getAllTokens','SjSlm','IkWAh','sRMdp','substring','...\x20(length:\x20','length','đ\x20','owuVL','get','post','put','bind'];_0x375b=function(){return _0x2c9ab6;};return _0x375b();}const activeRequests=new Map();class ApiClient{constructor(_0x150b8c=_api[_0x52d7(0x9)][_0x52d7(0xa)],_0x18afcd={}){this[_0x52d7(0xb)]=_0x150b8c,this[_0x52d7(0xc)]=_0x18afcd;}async['request'](_0x3e6195,_0x4ee786={}){const _0x1eb821={'UslYX':function(_0x5918a8,_0xd36bf1){return _0x5918a8===_0xd36bf1;},'kbLPw':'akfLW','XtdDE':_0x52d7(0xd),'JwYlz':function(_0x15c2f0,_0x25a888,_0x3ab375){return _0x15c2f0(_0x25a888,_0x3ab375);},'ztHSH':function(_0x9f419,_0x499afc){return _0x9f419 instanceof _0x499afc;},'bUiqW':function(_0x2b4365,_0x4db6de){return _0x2b4365===_0x4db6de;},'WjuHs':_0x52d7(0xe),'cIiRI':function(_0x236ee6,_0x4f06f4){return _0x236ee6 instanceof _0x4f06f4;}},_0x29e2d7=++currentRequestId,_0x221dc1=new AbortController();activeRequests['set'](_0x29e2d7,_0x221dc1);try{if(_0x1eb821[_0x52d7(0xf)](_0x52d7(0x10),_0x1eb821['kbLPw'])){console[_0x52d7(0x11)](_0x52d7(0x12)+_0x29e2d7+'\x20to:\x20'+_0x3e6195);const _0x56b160=(0x0,_jwtStorageService[_0x52d7(0x13)])(_0x3e6195);console[_0x52d7(0x11)](_0x52d7(0x14)+_0x3e6195+_0x52d7(0x15)+_0x56b160+_0x52d7(0x16));const _0x2e5ea0=await this[_0x52d7(0x17)](_0x3e6195,_0x4ee786[_0x52d7(0x18)]!==![]),_0x4b1f4a={'method':_0x4ee786[_0x52d7(0x19)]||'GET','headers':{'Content-Type':'application/json','User-Agent':_0x1eb821['XtdDE'],..._0x2e5ea0,..._0x4ee786[_0x52d7(0x1a)]},'body':_0x4ee786[_0x52d7(0x1b)]?JSON[_0x52d7(0x1c)](_0x4ee786['body']):undefined,'signal':_0x221dc1[_0x52d7(0x1d)]};console[_0x52d7(0x11)](_0x52d7(0x1e)+_0x29e2d7+_0x52d7(0x1f)+_0x56b160+_0x52d7(0x16));const _0x36aaf0=await _0x1eb821[_0x52d7(0x20)](fetch,''+this[_0x52d7(0xb)]+_0x3e6195,_0x4b1f4a);console[_0x52d7(0x11)](_0x52d7(0x21)+_0x29e2d7+_0x52d7(0x22),_0x36aaf0['status']);if(_0x1eb821['UslYX'](_0x36aaf0[_0x52d7(0x23)],0x191))return await this[_0x52d7(0x24)](_0x29e2d7,_0x3e6195,_0x56b160,_0x4ee786);const _0x4d5bd3=await _0x36aaf0[_0x52d7(0x25)]();activeRequests[_0x52d7(0x26)](_0x29e2d7);if(!_0x36aaf0['ok'])return{'success':![],'error':_0x4d5bd3[_0x52d7(0x27)]||_0x52d7(0x28)+_0x36aaf0[_0x52d7(0x23)],'status':_0x36aaf0[_0x52d7(0x23)],'tokenType':_0x56b160};return{'success':!![],'data':_0x4d5bd3,'status':_0x36aaf0[_0x52d7(0x23)],'tokenType':_0x56b160};}else return this[_0x52d7(0x29)](_0x31a979,{..._0x5eda0c,'method':'DELETE'});}catch(_0x1ff815){activeRequests[_0x52d7(0x26)](_0x29e2d7);if(_0x1eb821[_0x52d7(0x2a)](_0x1ff815,Error)&&_0x1eb821[_0x52d7(0x2b)](_0x1ff815[_0x52d7(0x2c)],'AbortError'))return console['log']('đĢ\x20[API\x20Client]\x20Request\x20'+_0x29e2d7+_0x52d7(0x2d)),{'success':![],'error':_0x1eb821['WjuHs'],'status':0x0};return console[_0x52d7(0x2e)](_0x52d7(0x2f)+_0x29e2d7+_0x52d7(0x30),_0x1ff815),{'success':![],'error':_0x1eb821['cIiRI'](_0x1ff815,Error)?_0x1ff815['message']:_0x52d7(0x31),'status':0x0};}}async[_0x52d7(0x17)](_0x2f778d,_0x47bd46){if(!_0x47bd46)return{};const _0x14d646=await(0x0,_jwtStorageService['getJWTForRoute'])(_0x2f778d);if(!_0x14d646){const _0x2d79fb=(0x0,_jwtStorageService[_0x52d7(0x13)])(_0x2f778d);throw new Error('No\x20'+_0x2d79fb+_0x52d7(0x32)+_0x2f778d+_0x52d7(0x33));}return{'Authorization':_0x14d646};}async[_0x52d7(0x24)](_0x57011c,_0xe3e496,_0xe6bf5a,_0x5778c4){const _0x17a461={'XjbgI':'4|2|1|6|0|3|5'},_0x42b988=_0x17a461[_0x52d7(0x34)]['split']('|');let _0x24923d=0x0;while(!![]){switch(_0x42b988[_0x24923d++]){case'0':await this[_0x52d7(0x35)](_0xe6bf5a,_0xe3e496);continue;case'1':await(0x0,_jwtStorageService[_0x52d7(0x36)])(_0xe6bf5a);continue;case'2':console['log']('đ\x20[API\x20Client]\x20Clearing\x20'+_0xe6bf5a+_0x52d7(0x37));continue;case'3':console[_0x52d7(0x11)]('đ\x20[API\x20Client]\x20'+_0xe6bf5a+'\x20token\x20cleared,\x20user\x20needs\x20to\x20re-authenticate');continue;case'4':console[_0x52d7(0x2e)](_0x52d7(0x38)+_0x57011c+_0x52d7(0x39)+_0xe6bf5a+_0x52d7(0x3a)+_0xe3e496);continue;case'5':return{'success':![],'error':_0xe6bf5a+_0x52d7(0x3b)+_0xe3e496+_0x52d7(0x3c),'status':0x191,'tokenType':_0xe6bf5a};case'6':this[_0x52d7(0x3d)](_0xe6bf5a,_0x57011c);continue;}break;}}async[_0x52d7(0x35)](_0x340d26,_0x239caf){const _0x1bbc2a={'ZqGVH':function(_0x1ab346,_0x2f024c){return _0x1ab346 instanceof _0x2f024c;},'Crknu':function(_0x13c65a,_0x3d25c8){return _0x13c65a===_0x3d25c8;},'QniTo':_0x52d7(0x3e),'KyLNu':_0x52d7(0xe),'RpwTK':_0x52d7(0x3f),'GCPsY':_0x52d7(0x40),'kXDNN':'đ\x20[API\x20Client]\x20Triggering\x20Onairos\x20re-authentication','GOsqA':_0x52d7(0x41),'nNNPS':_0x52d7(0x42),'qyiYR':function(_0x1fd9e9,_0x5585f2){return _0x1fd9e9!==_0x5585f2;},'YvQlv':'uijJY','JraYq':_0x52d7(0x43)};console[_0x52d7(0x11)](_0x52d7(0x44)+_0x340d26+_0x52d7(0x45)+_0x239caf+')');try{switch(_0x340d26){case _jwtStorageService[_0x52d7(0x46)][_0x52d7(0x47)]:this[_0x52d7(0xc)][_0x52d7(0x48)]?(console[_0x52d7(0x11)](_0x1bbc2a[_0x52d7(0x49)]),await this[_0x52d7(0xc)][_0x52d7(0x48)]()):console[_0x52d7(0x4a)](_0x1bbc2a[_0x52d7(0x4b)]);break;case _jwtStorageService[_0x52d7(0x46)][_0x52d7(0x4c)]:if(this['authTriggers'][_0x52d7(0x4d)])console[_0x52d7(0x11)](_0x1bbc2a['kXDNN']),await this[_0x52d7(0xc)][_0x52d7(0x4d)]();else{if(_0x1bbc2a[_0x52d7(0x4e)](_0x52d7(0x41),_0x1bbc2a[_0x52d7(0x4f)]))console['warn'](_0x52d7(0x50));else return this[_0x52d7(0x29)](_0x1f9cbf,{..._0x52923c,'method':'PUT','body':_0x1eed4a});}break;case _jwtStorageService[_0x52d7(0x46)][_0x52d7(0x51)]:if(this[_0x52d7(0xc)][_0x52d7(0x52)])console['log'](_0x1bbc2a['nNNPS']),await this[_0x52d7(0xc)][_0x52d7(0x52)]();else{if(_0x1bbc2a[_0x52d7(0x53)](_0x1bbc2a['YvQlv'],_0x1bbc2a[_0x52d7(0x54)])){_0x359c41[_0x52d7(0x26)](_0x328a06);if(_0x1bbc2a[_0x52d7(0x55)](_0x5af52d,_0xeeda50)&&_0x1bbc2a[_0x52d7(0x4e)](_0x5cab41[_0x52d7(0x2c)],_0x1bbc2a[_0x52d7(0x56)]))return _0x46979a[_0x52d7(0x11)](_0x52d7(0x38)+_0x530c09+_0x52d7(0x2d)),{'success':![],'error':_0x1bbc2a[_0x52d7(0x57)],'status':0x0};return _0x541f7b[_0x52d7(0x2e)](_0x52d7(0x2f)+_0x5e2852+_0x52d7(0x30),_0x407365),{'success':![],'error':_0x1bbc2a[_0x52d7(0x55)](_0x2fec22,_0x37ac59)?_0x2c4e55[_0x52d7(0x27)]:_0x52d7(0x31),'status':0x0};}else console[_0x52d7(0x4a)](_0x1bbc2a[_0x52d7(0x58)]);}break;}}catch(_0x38f331){console[_0x52d7(0x2e)](_0x52d7(0x59)+_0x340d26+':',_0x38f331);}}[_0x52d7(0x3d)](_0x38b13b,_0x256695){const _0x2a81b1={'LaBPh':function(_0x56cff4,_0xf66bf1){return _0x56cff4!==_0xf66bf1;},'GOnyO':function(_0x2b85f3,_0x25182a){return _0x2b85f3!==_0x25182a;},'tCDGy':'eUYXN','KlcRS':function(_0x39b85d,_0x33a007){return _0x39b85d>_0x33a007;}};let _0x2bb12d=0x0;for(const [_0x158576,_0x12cb11]of activeRequests[_0x52d7(0x5a)]()){if(_0x2a81b1[_0x52d7(0x5b)](_0x158576,_0x256695)){if(_0x2a81b1[_0x52d7(0x5c)](_0x2a81b1[_0x52d7(0x5d)],_0x2a81b1['tCDGy']))return{'success':![],'error':_0x16e690['message']||_0x52d7(0x28)+_0x391dbe[_0x52d7(0x23)],'status':_0x3c2f42[_0x52d7(0x23)],'tokenType':_0x39ec58};else _0x12cb11[_0x52d7(0x5e)](),activeRequests[_0x52d7(0x26)](_0x158576),_0x2bb12d++;}}_0x2a81b1[_0x52d7(0x5f)](_0x2bb12d,0x0)&&console[_0x52d7(0x11)]('đĢ\x20[API\x20Client]\x20Cancelled\x20'+_0x2bb12d+'\x20requests\x20due\x20to\x20'+_0x38b13b+_0x52d7(0x60));}async['replaceTokenForType'](_0x5e18f8,_0xde4d52){const _0x4e13c0={'DrKyW':function(_0x21c760,_0x5f1472){return _0x21c760!==_0x5f1472;},'zsVAG':_0x52d7(0x61)};console['log'](_0x52d7(0x62)+_0x5e18f8+_0x52d7(0x16)),this[_0x52d7(0x3d)](_0x5e18f8);const _0x6f94d4=await(0x0,_jwtStorageService['replaceJWTAfterVerification'])(_0x5e18f8,_0xde4d52);return _0x6f94d4&&(_0x4e13c0[_0x52d7(0x63)](_0x4e13c0[_0x52d7(0x64)],_0x4e13c0[_0x52d7(0x64)])?_0x5184b5[_0x52d7(0x4a)](_0x52d7(0x43)):console[_0x52d7(0x11)](_0x52d7(0x65)+_0x5e18f8+_0x52d7(0x66))),_0x6f94d4;}async[_0x52d7(0x67)](){const _0x101b97={'sRMdp':_0x52d7(0x50),'asYWP':_0x52d7(0x68),'SjSlm':function(_0xbdd7c8,_0xf4345){return _0xbdd7c8===_0xf4345;},'qNorA':'jdEgw','IkWAh':_0x52d7(0x69)};console[_0x52d7(0x11)](_0x101b97[_0x52d7(0x6a)]);const _0xbdda27=await(0x0,_jwtStorageService[_0x52d7(0x6b)])();for(const [_0x3a952e,_0x4271b1]of Object[_0x52d7(0x5a)](_0xbdda27)){_0x4271b1?_0x101b97[_0x52d7(0x6c)](_0x101b97['qNorA'],_0x101b97[_0x52d7(0x6d)])?_0x37bf3e[_0x52d7(0x4a)](_0x101b97[_0x52d7(0x6e)]):console[_0x52d7(0x11)]('đ\x20'+_0x3a952e+':\x20'+_0x4271b1[_0x52d7(0x6f)](0x0,0x14)+_0x52d7(0x70)+_0x4271b1[_0x52d7(0x71)]+')'):console[_0x52d7(0x11)](_0x52d7(0x72)+_0x3a952e+':\x20null');}return _0xbdda27;}['setAuthTriggers'](_0x58a00f){const _0x324d7f={'owuVL':'đ§\x20[API\x20Client]\x20Authentication\x20triggers\x20updated'};this[_0x52d7(0xc)]={...this[_0x52d7(0xc)],..._0x58a00f},console[_0x52d7(0x11)](_0x324d7f[_0x52d7(0x73)]);}async[_0x52d7(0x74)](_0x346719,_0x45b5b6={}){return this[_0x52d7(0x29)](_0x346719,{..._0x45b5b6,'method':'GET'});}async[_0x52d7(0x75)](_0xf8017f,_0x417ad6,_0x71791f={}){return this[_0x52d7(0x29)](_0xf8017f,{..._0x71791f,'method':'POST','body':_0x417ad6});}async[_0x52d7(0x76)](_0x424208,_0x190f7a,_0x41bea4={}){return this['request'](_0x424208,{..._0x41bea4,'method':'PUT','body':_0x190f7a});}async[_0x52d7(0x26)](_0x201c2c,_0x5c1c14={}){return this[_0x52d7(0x29)](_0x201c2c,{..._0x5c1c14,'method':'DELETE'});}}exports['ApiClient']=ApiClient;const apiClient=exports[_0x52d7(0x7)]=new ApiClient(),authenticatedRequest=exports[_0x52d7(0x2)]=apiClient['request']['bind'](apiClient),apiGet=exports[_0x52d7(0x5)]=apiClient[_0x52d7(0x74)][_0x52d7(0x77)](apiClient),apiPost=exports[_0x52d7(0x4)]=apiClient[_0x52d7(0x75)][_0x52d7(0x77)](apiClient),apiPut=exports[_0x52d7(0x3)]=apiClient['put'][_0x52d7(0x77)](apiClient),apiDelete=exports['apiDelete']=apiClient[_0x52d7(0x26)]['bind'](apiClient);var _default=exports[_0x52d7(0x1)]=apiClient;
|
|
8
|
+
function _0xb0d7(){const _0x305906=['defineProperty','__esModule','authenticatedRequest','apiPut','apiPost','apiDelete','ApiClient','API_CONFIG','BASE_URL','request','CZGdF','OnairosSDK/1.0.0','AbortError','Request\x20cancelled','set','zLStN','log','đ\x20[API\x20Client]\x20Starting\x20request\x20','\x20to:\x20','getTokenTypeForRoute','\x20requires\x20','\x20token','getRequestHeaders','rnBCB','qLDaX','headers','body','stringify','signal','đ\x20[API\x20Client]\x20Request\x20','\x20using\x20','baseUrl','đĄ\x20[API\x20Client]\x20Response\x20','status','mXsAS','handle401Error','delete','message','authTriggers','name','\x20was\x20cancelled','KBARU','error','â\x20[API\x20Client]\x20Request\x20','\x20failed:','No\x20','\x20token\x20available\x20for\x20route\x20','.\x20Please\x20authenticate\x20first.','getJWTForRoute','YZlsT','YhaxK','\x20requests\x20due\x20to\x20','1|4|3|0|6|5|2','oukup','split','đĢ\x20[API\x20Client]\x20Request\x20','\x20token\x20on\x20route:\x20','\x20authentication\x20expired\x20for\x20','.\x20Please\x20re-authenticate.','clearJWT','\x20token\x20due\x20to\x20401\x20error','đ\x20[API\x20Client]\x20','\x20token\x20cleared,\x20user\x20needs\x20to\x20re-authenticate','triggerReAuthForTokenType','đ§\x20[API\x20Client]\x20Triggering\x20Enoch\x20email\x20re-verification','bWzCN','â ī¸\x20[API\x20Client]\x20No\x20Enoch\x20re-auth\x20trigger\x20configured','đ\x20[API\x20Client]\x20Triggering\x20Onairos\x20re-authentication','â ī¸\x20[API\x20Client]\x20No\x20auth\x20token\x20refresh\x20trigger\x20configured','eCxrw','WmARF','đ\x20[API\x20Client]\x20Triggering\x20re-auth\x20for\x20','\x20token\x20(endpoint:\x20','TokenType','ENOCH','triggerEnochReAuth','OEHVt','warn','iDxQk','triggerOnairosReAuth','wVYyG','â ī¸\x20[API\x20Client]\x20No\x20Onairos\x20re-auth\x20trigger\x20configured','AUTH','OPHEK','icyYL','sVOoA','Request\x20failed\x20with\x20status\x20','đ\x20[API\x20Client]\x20Triggering\x20auth\x20token\x20refresh','triggerAuthTokenRefresh','ydikl','AqlLt','SEhTL','đ\x20','substring','...\x20(length:\x20','length','â\x20[API\x20Client]\x20Failed\x20to\x20trigger\x20re-auth\x20for\x20','cancelRequestsForTokenType','JkxQW','cPyDo','MYToi','entries','PWjxV','abort','NvVPa','\x20token\x20failure','ArVlx','AjXBY','replaceTokenForType','replaceJWTAfterVerification','â
\x20[API\x20Client]\x20','\x20token\x20replaced\x20and\x20related\x20requests\x20cancelled','đ\x20[API\x20Client]\x20Debug:\x20Current\x20token\x20status','getAllTokens','đ\x20','đ§\x20[API\x20Client]\x20Authentication\x20triggers\x20updated','get','apiClient','bind','post','put','default'];_0xb0d7=function(){return _0x305906;};return _0xb0d7();}Object[_0x39bd(0x0)](exports,_0x39bd(0x1),{'value':!![]}),exports['default']=exports[_0x39bd(0x2)]=exports[_0x39bd(0x3)]=exports[_0x39bd(0x4)]=exports['apiGet']=exports[_0x39bd(0x5)]=exports['apiClient']=exports[_0x39bd(0x6)]=void 0x0;var _jwtStorageService=__ONAIROS_REQ_FUNC__(0x0),_api=__ONAIROS_REQ_FUNC__(0x1);let currentRequestId=0x0;const activeRequests=new Map();class ApiClient{constructor(_0x3ea060=_api[_0x39bd(0x7)][_0x39bd(0x8)],_0xe655ab={}){this['baseUrl']=_0x3ea060,this['authTriggers']=_0xe655ab;}async[_0x39bd(0x9)](_0x14b6b6,_0x13ea34={}){const _0x16d636={'mXsAS':function(_0x2abbfd,_0x57f02b){return _0x2abbfd===_0x57f02b;},'zLStN':_0x39bd(0xa),'rnBCB':function(_0x28d5dd,_0x549332){return _0x28d5dd!==_0x549332;},'qLDaX':_0x39bd(0xb),'ebGHe':'uCsjB','VHBFX':function(_0x41a0ed,_0x336b92){return _0x41a0ed instanceof _0x336b92;},'IBswc':_0x39bd(0xc),'KBARU':_0x39bd(0xd),'KDkCM':'Unknown\x20error'},_0x37bf6f=++currentRequestId,_0x3d3add=new AbortController();activeRequests[_0x39bd(0xe)](_0x37bf6f,_0x3d3add);try{if(_0x16d636['mXsAS'](_0x16d636[_0x39bd(0xf)],_0x16d636[_0x39bd(0xf)])){console[_0x39bd(0x10)](_0x39bd(0x11)+_0x37bf6f+_0x39bd(0x12)+_0x14b6b6);const _0x2d2b2d=(0x0,_jwtStorageService[_0x39bd(0x13)])(_0x14b6b6);console[_0x39bd(0x10)]('đ¯\x20[API\x20Client]\x20Route\x20'+_0x14b6b6+_0x39bd(0x14)+_0x2d2b2d+_0x39bd(0x15));const _0x3afb1f=await this[_0x39bd(0x16)](_0x14b6b6,_0x16d636[_0x39bd(0x17)](_0x13ea34['requiresAuth'],![])),_0x5d3d04={'method':_0x13ea34['method']||'GET','headers':{'Content-Type':'application/json','User-Agent':_0x16d636[_0x39bd(0x18)],..._0x3afb1f,..._0x13ea34[_0x39bd(0x19)]},'body':_0x13ea34[_0x39bd(0x1a)]?JSON[_0x39bd(0x1b)](_0x13ea34[_0x39bd(0x1a)]):undefined,'signal':_0x3d3add[_0x39bd(0x1c)]};console[_0x39bd(0x10)](_0x39bd(0x1d)+_0x37bf6f+_0x39bd(0x1e)+_0x2d2b2d+_0x39bd(0x15));const _0x5de2f2=await fetch(''+this[_0x39bd(0x1f)]+_0x14b6b6,_0x5d3d04);console[_0x39bd(0x10)](_0x39bd(0x20)+_0x37bf6f+'\x20status:',_0x5de2f2[_0x39bd(0x21)]);if(_0x16d636[_0x39bd(0x22)](_0x5de2f2[_0x39bd(0x21)],0x191))return await this[_0x39bd(0x23)](_0x37bf6f,_0x14b6b6,_0x2d2b2d,_0x13ea34);const _0x341901=await _0x5de2f2['json']();activeRequests[_0x39bd(0x24)](_0x37bf6f);if(!_0x5de2f2['ok'])return{'success':![],'error':_0x341901[_0x39bd(0x25)]||'Request\x20failed\x20with\x20status\x20'+_0x5de2f2['status'],'status':_0x5de2f2[_0x39bd(0x21)],'tokenType':_0x2d2b2d};return{'success':!![],'data':_0x341901,'status':_0x5de2f2[_0x39bd(0x21)],'tokenType':_0x2d2b2d};}else this[_0x39bd(0x1f)]=_0x593567,this[_0x39bd(0x26)]=_0x2ab859;}catch(_0x5b6547){if(_0x16d636[_0x39bd(0x17)](_0x16d636['ebGHe'],'Iesfm')){activeRequests[_0x39bd(0x24)](_0x37bf6f);if(_0x16d636['VHBFX'](_0x5b6547,Error)&&_0x5b6547[_0x39bd(0x27)]===_0x16d636['IBswc'])return console[_0x39bd(0x10)]('đĢ\x20[API\x20Client]\x20Request\x20'+_0x37bf6f+_0x39bd(0x28)),{'success':![],'error':_0x16d636[_0x39bd(0x29)],'status':0x0};return console[_0x39bd(0x2a)](_0x39bd(0x2b)+_0x37bf6f+_0x39bd(0x2c),_0x5b6547),{'success':![],'error':_0x5b6547 instanceof Error?_0x5b6547[_0x39bd(0x25)]:_0x16d636['KDkCM'],'status':0x0};}else{const _0x532c8b=(0x0,_0x5e64f5[_0x39bd(0x13)])(_0x190025);throw new _0x5dfd82(_0x39bd(0x2d)+_0x532c8b+_0x39bd(0x2e)+_0x5df728+_0x39bd(0x2f));}}}async['getRequestHeaders'](_0x561524,_0x312a44){if(!_0x312a44)return{};const _0x3a77b7=await(0x0,_jwtStorageService[_0x39bd(0x30)])(_0x561524);if(!_0x3a77b7){if(_0x39bd(0x31)!==_0x39bd(0x32)){const _0x543c94=(0x0,_jwtStorageService[_0x39bd(0x13)])(_0x561524);throw new Error(_0x39bd(0x2d)+_0x543c94+_0x39bd(0x2e)+_0x561524+_0x39bd(0x2f));}else _0x1de1e4[_0x39bd(0x10)]('đĢ\x20[API\x20Client]\x20Cancelled\x20'+_0x3f9e3e+_0x39bd(0x33)+_0xf12261+'\x20token\x20failure');}return{'Authorization':_0x3a77b7};}async[_0x39bd(0x23)](_0x2b5da6,_0x5a4811,_0x1f53e7,_0x5a0a7f){const _0x4e7370={'oukup':_0x39bd(0x34)},_0x57710b=_0x4e7370[_0x39bd(0x35)][_0x39bd(0x36)]('|');let _0x2ff7fa=0x0;while(!![]){switch(_0x57710b[_0x2ff7fa++]){case'0':this['cancelRequestsForTokenType'](_0x1f53e7,_0x2b5da6);continue;case'1':console[_0x39bd(0x2a)](_0x39bd(0x37)+_0x2b5da6+'\x20received\x20401\x20for\x20'+_0x1f53e7+_0x39bd(0x38)+_0x5a4811);continue;case'2':return{'success':![],'error':_0x1f53e7+_0x39bd(0x39)+_0x5a4811+_0x39bd(0x3a),'status':0x191,'tokenType':_0x1f53e7};case'3':await(0x0,_jwtStorageService[_0x39bd(0x3b)])(_0x1f53e7);continue;case'4':console[_0x39bd(0x10)]('đ\x20[API\x20Client]\x20Clearing\x20'+_0x1f53e7+_0x39bd(0x3c));continue;case'5':console[_0x39bd(0x10)](_0x39bd(0x3d)+_0x1f53e7+_0x39bd(0x3e));continue;case'6':await this[_0x39bd(0x3f)](_0x1f53e7,_0x5a4811);continue;}break;}}async[_0x39bd(0x3f)](_0x29baa1,_0x212a2c){const _0x175610={'hrOjR':_0x39bd(0x40),'OEHVt':_0x39bd(0x41),'iDxQk':_0x39bd(0x42),'wVYyG':_0x39bd(0x43),'OPHEK':function(_0x373b7f,_0x4c1b50){return _0x373b7f===_0x4c1b50;},'icyYL':'oOCaf','ydikl':_0x39bd(0x44),'AqlLt':_0x39bd(0x45),'SEhTL':_0x39bd(0x46)};console['log'](_0x39bd(0x47)+_0x29baa1+_0x39bd(0x48)+_0x212a2c+')');try{switch(_0x29baa1){case _jwtStorageService[_0x39bd(0x49)][_0x39bd(0x4a)]:if(this[_0x39bd(0x26)][_0x39bd(0x4b)])console[_0x39bd(0x10)](_0x175610['hrOjR']),await this[_0x39bd(0x26)][_0x39bd(0x4b)]();else{if(_0x175610[_0x39bd(0x4c)]===_0x175610[_0x39bd(0x4c)])console[_0x39bd(0x4d)](_0x175610[_0x39bd(0x4e)]);else return this[_0x39bd(0x9)](_0x56aa52,{..._0x20be6e,'method':'POST','body':_0x5a4e2a});}break;case _jwtStorageService[_0x39bd(0x49)]['ONAIROS']:this[_0x39bd(0x26)][_0x39bd(0x4f)]?(console[_0x39bd(0x10)](_0x175610[_0x39bd(0x50)]),await this[_0x39bd(0x26)][_0x39bd(0x4f)]()):console['warn'](_0x39bd(0x51));break;case _jwtStorageService['TokenType'][_0x39bd(0x52)]:if(this[_0x39bd(0x26)]['triggerAuthTokenRefresh']){if(_0x175610[_0x39bd(0x53)](_0x175610[_0x39bd(0x54)],_0x39bd(0x55)))return{'success':![],'error':_0x2b8f5d['message']||_0x39bd(0x56)+_0x39d88f[_0x39bd(0x21)],'status':_0x341e81[_0x39bd(0x21)],'tokenType':_0x7e4592};else console[_0x39bd(0x10)](_0x39bd(0x57)),await this[_0x39bd(0x26)][_0x39bd(0x58)]();}else console[_0x39bd(0x4d)](_0x175610[_0x39bd(0x59)]);break;}}catch(_0x43aa0d){_0x175610[_0x39bd(0x5a)]===_0x175610[_0x39bd(0x5b)]?_0x48c480[_0x39bd(0x10)](_0x39bd(0x5c)+_0x3150ce+':\x20'+_0xc3b379[_0x39bd(0x5d)](0x0,0x14)+_0x39bd(0x5e)+_0x4a1620[_0x39bd(0x5f)]+')'):console[_0x39bd(0x2a)](_0x39bd(0x60)+_0x29baa1+':',_0x43aa0d);}}[_0x39bd(0x61)](_0x3bfd53,_0x2ff1d3){const _0x1b8baa={'eAYDn':function(_0x5146c2,_0x5ec53c){return _0x5146c2!==_0x5ec53c;},'NvVPa':function(_0x1216fe,_0x310e36){return _0x1216fe>_0x310e36;},'VSPgW':function(_0x39e2da,_0x2e38ea){return _0x39e2da===_0x2e38ea;},'PWjxV':_0x39bd(0x62),'noPkQ':_0x39bd(0x63),'KoOTT':'eEWwM','ArVlx':function(_0xf1cbdc,_0x321822){return _0xf1cbdc>_0x321822;},'AjXBY':_0x39bd(0x64),'TLGDA':'mulJW'};let _0x4c512c=0x0;for(const [_0x2d8476,_0x45a0e3]of activeRequests[_0x39bd(0x65)]()){if(_0x1b8baa['VSPgW'](_0x1b8baa[_0x39bd(0x66)],_0x39bd(0x62))){if(_0x2d8476!==_0x2ff1d3){if(_0x1b8baa['VSPgW'](_0x1b8baa['noPkQ'],_0x1b8baa['KoOTT'])){let _0x400c0c=0x0;for(const [_0x3873fb,_0x40f605]of _0x34273f[_0x39bd(0x65)]()){_0x1b8baa['eAYDn'](_0x3873fb,_0x2e2073)&&(_0x40f605[_0x39bd(0x67)](),_0x5adac5['delete'](_0x3873fb),_0x400c0c++);}_0x1b8baa[_0x39bd(0x68)](_0x400c0c,0x0)&&_0x503964[_0x39bd(0x10)]('đĢ\x20[API\x20Client]\x20Cancelled\x20'+_0x400c0c+_0x39bd(0x33)+_0x280fe8+_0x39bd(0x69));}else _0x45a0e3[_0x39bd(0x67)](),activeRequests['delete'](_0x2d8476),_0x4c512c++;}}else return this[_0x39bd(0x9)](_0x54b5bf,{..._0x1cb75c,'method':'PUT','body':_0x7ebb33});}_0x1b8baa[_0x39bd(0x6a)](_0x4c512c,0x0)&&(_0x1b8baa['VSPgW'](_0x1b8baa[_0x39bd(0x6b)],_0x1b8baa['TLGDA'])?_0x5906b3[_0x39bd(0x4d)](_0x39bd(0x42)):console['log']('đĢ\x20[API\x20Client]\x20Cancelled\x20'+_0x4c512c+_0x39bd(0x33)+_0x3bfd53+_0x39bd(0x69)));}async[_0x39bd(0x6c)](_0x169f4a,_0x14b78f){console[_0x39bd(0x10)]('đ\x20[API\x20Client]\x20Replacing\x20'+_0x169f4a+_0x39bd(0x15)),this['cancelRequestsForTokenType'](_0x169f4a);const _0x166e54=await(0x0,_jwtStorageService[_0x39bd(0x6d)])(_0x169f4a,_0x14b78f);return _0x166e54&&console['log'](_0x39bd(0x6e)+_0x169f4a+_0x39bd(0x6f)),_0x166e54;}async['debugTokens'](){const _0x5830fc={'pwZeC':_0x39bd(0x70)};console[_0x39bd(0x10)](_0x5830fc['pwZeC']);const _0x5389c4=await(0x0,_jwtStorageService[_0x39bd(0x71)])();for(const [_0x36f9cb,_0x587ea7]of Object['entries'](_0x5389c4)){_0x587ea7?console[_0x39bd(0x10)](_0x39bd(0x5c)+_0x36f9cb+':\x20'+_0x587ea7[_0x39bd(0x5d)](0x0,0x14)+_0x39bd(0x5e)+_0x587ea7['length']+')'):console[_0x39bd(0x10)](_0x39bd(0x72)+_0x36f9cb+':\x20null');}return _0x5389c4;}['setAuthTriggers'](_0x45d924){const _0x23ca13={'PbbOw':_0x39bd(0x73)};this[_0x39bd(0x26)]={...this[_0x39bd(0x26)],..._0x45d924},console[_0x39bd(0x10)](_0x23ca13['PbbOw']);}async[_0x39bd(0x74)](_0x44ed3f,_0x53d6f6={}){return this[_0x39bd(0x9)](_0x44ed3f,{..._0x53d6f6,'method':'GET'});}async['post'](_0x5b0c05,_0x5c92c0,_0x9aa288={}){return this[_0x39bd(0x9)](_0x5b0c05,{..._0x9aa288,'method':'POST','body':_0x5c92c0});}async['put'](_0xd27f6b,_0xad1ac7,_0x30c698={}){return this[_0x39bd(0x9)](_0xd27f6b,{..._0x30c698,'method':'PUT','body':_0xad1ac7});}async[_0x39bd(0x24)](_0x1ce248,_0x1e72cc={}){return this[_0x39bd(0x9)](_0x1ce248,{..._0x1e72cc,'method':'DELETE'});}}exports[_0x39bd(0x6)]=ApiClient;function _0x39bd(_0xb0d79a,_0x39bd22){_0xb0d79a=_0xb0d79a-0x0;const _0x377e8d=_0xb0d7();let _0x3e3caa=_0x377e8d[_0xb0d79a];return _0x3e3caa;}const apiClient=exports[_0x39bd(0x75)]=new ApiClient(),authenticatedRequest=exports['authenticatedRequest']=apiClient[_0x39bd(0x9)][_0x39bd(0x76)](apiClient),apiGet=exports['apiGet']=apiClient['get'][_0x39bd(0x76)](apiClient),apiPost=exports[_0x39bd(0x4)]=apiClient[_0x39bd(0x77)][_0x39bd(0x76)](apiClient),apiPut=exports['apiPut']=apiClient[_0x39bd(0x78)][_0x39bd(0x76)](apiClient),apiDelete=exports[_0x39bd(0x5)]=apiClient[_0x39bd(0x24)][_0x39bd(0x76)](apiClient);var _default=exports[_0x39bd(0x79)]=apiClient;
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
Object[_0x42f8(0x0)](exports,_0x42f8(0x1),{'value':!![]}),exports['storePinWithBiometric']=exports[_0x42f8(0x2)]=exports['removePinFromStorage']=exports[_0x42f8(0x3)]=exports['isBiometricAvailable']=exports[_0x42f8(0x4)]=void 0x0;var Keychain=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x459063,_0x242431){const _0x2a38c5={'RGbMt':_0x42f8(0x5),'SKIHH':_0x42f8(0x6),'lGRHD':'NhTaP','ZPIXp':function(_0x4e5868,_0x466607){return _0x4e5868&&_0x466607;},'NpAOV':function(_0x540b92,_0x458159){return _0x540b92===_0x458159;},'vpzVn':function(_0x49afaa,_0x3f2348){return _0x49afaa!=_0x3f2348;},'petRx':'object','kEBLD':_0x42f8(0x7),'OlPqU':function(_0x3117bb,_0x495f08){return _0x3117bb!==_0x495f08;},'yOAvZ':'default','nGHOk':function(_0x203a87,_0x4d4687,_0x55acb0,_0x1ca531){return _0x203a87(_0x4d4687,_0x55acb0,_0x1ca531);},'rHEdm':function(_0x400b98,_0x4c083d){return _0x400b98==_0x4c083d;}};if(_0x2a38c5[_0x42f8(0x8)]('function',typeof WeakMap))var _0x2aa807=new WeakMap(),_0xf32939=new WeakMap();return(_interopRequireWildcard=function(_0x3231fe,_0x4ccf0d){const _0x2fec21={'aWCEg':_0x42f8(0x9)};if(_0x2a38c5[_0x42f8(0xa)]!==_0x2a38c5[_0x42f8(0xb)]){if(_0x2a38c5[_0x42f8(0xc)](!_0x4ccf0d,_0x3231fe)&&_0x3231fe['__esModule'])return _0x3231fe;var _0x55fabf,_0x5a46b5,_0x5c3268={'__proto__':null,'default':_0x3231fe};if(_0x2a38c5[_0x42f8(0xd)](null,_0x3231fe)||_0x2a38c5[_0x42f8(0xe)](_0x2a38c5['petRx'],typeof _0x3231fe)&&_0x42f8(0xf)!=typeof _0x3231fe)return _0x5c3268;if(_0x55fabf=_0x4ccf0d?_0xf32939:_0x2aa807){if(_0x2a38c5[_0x42f8(0xd)](_0x2a38c5[_0x42f8(0x10)],_0x42f8(0x7))){if(_0x55fabf[_0x42f8(0x11)](_0x3231fe))return _0x55fabf[_0x42f8(0x12)](_0x3231fe);_0x55fabf['set'](_0x3231fe,_0x5c3268);}else return _0x419142[_0x42f8(0x13)](_0x2fec21['aWCEg'],_0x2d662a),![];}for(const _0xdcb3ea in _0x3231fe)_0x2a38c5[_0x42f8(0x14)](_0x2a38c5[_0x42f8(0x15)],_0xdcb3ea)&&{}[_0x42f8(0x16)]['call'](_0x3231fe,_0xdcb3ea)&&((_0x5a46b5=(_0x55fabf=Object['defineProperty'])&&Object[_0x42f8(0x17)](_0x3231fe,_0xdcb3ea))&&(_0x5a46b5[_0x42f8(0x12)]||_0x5a46b5[_0x42f8(0x18)])?_0x2a38c5['nGHOk'](_0x55fabf,_0x5c3268,_0xdcb3ea,_0x5a46b5):_0x5c3268[_0xdcb3ea]=_0x3231fe[_0xdcb3ea]);return _0x5c3268;}else return _0x56d654[_0x42f8(0x19)](_0x2a38c5[_0x42f8(0x1a)]),null;})(_0x459063,_0x242431);}const PIN_SERVICE_KEY=_0x42f8(0x1b),PIN_USERNAME=_0x42f8(0x1c),isBiometricAvailable=async()=>{const _0x165358={'fAzPf':function(_0x523484,_0x1e8e56){return _0x523484===_0x1e8e56;},'HmMnk':function(_0x5079a7,_0x10c522){return _0x5079a7===_0x10c522;}};try{const _0x2b08e1=await Keychain[_0x42f8(0x1d)]();return console[_0x42f8(0x19)]('đą\x20Biometric\x20support:',_0x2b08e1),_0x2b08e1===Keychain[_0x42f8(0x1e)][_0x42f8(0x1f)]||_0x165358[_0x42f8(0x20)](_0x2b08e1,Keychain['BIOMETRY_TYPE']['TOUCH_ID'])||_0x165358['HmMnk'](_0x2b08e1,Keychain[_0x42f8(0x1e)][_0x42f8(0x21)])||_0x2b08e1===Keychain[_0x42f8(0x1e)]['FACE']||_0x165358[_0x42f8(0x22)](_0x2b08e1,Keychain[_0x42f8(0x1e)][_0x42f8(0x23)]);}catch(_0x41df4c){return console['error'](_0x42f8(0x9),_0x41df4c),![];}};exports[_0x42f8(0x24)]=isBiometricAvailable;const storePinWithBiometric=async _0x49aa1a=>{const _0x365381={'EyaUA':function(_0x3a040e,_0x3793fb){return _0x3a040e!=_0x3793fb;},'mVMUm':_0x42f8(0xf),'towXI':'default','gIeRH':function(_0x1995e2,_0x369870,_0x56171f,_0x76cf9c){return _0x1995e2(_0x369870,_0x56171f,_0x76cf9c);},'LGfcj':'â\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','rmfiH':'đ¤\x20User\x20cancelled\x20biometric\x20authentication','VrUKR':function(_0x3767e5,_0x49cdbf){return _0x3767e5!==_0x49cdbf;},'jUbvA':_0x42f8(0x25),'xglbG':_0x42f8(0x26),'LKayp':_0x42f8(0x27),'zQjfa':function(_0x2e49a3){return _0x2e49a3();},'TvfTA':_0x42f8(0x28),'WDlkN':function(_0x24180f,_0x13c43f){return _0x24180f===_0x13c43f;},'vSbKn':_0x42f8(0x29),'uQTTu':_0x42f8(0x2a),'DnNYa':_0x42f8(0x2b),'KYAaU':_0x42f8(0x2c),'yfRvG':_0x42f8(0x2d),'iQPmo':_0x42f8(0x2e),'BiKEX':_0x42f8(0x2f),'afoMG':_0x42f8(0x30),'FFgFp':function(_0x5685fb,_0x2343be){return _0x5685fb!==_0x2343be;},'csqsJ':_0x42f8(0x31),'MnTmU':function(_0x3e4618,_0x37c61d){return _0x3e4618!==_0x37c61d;},'pMnyp':_0x42f8(0x32),'hWmAZ':function(_0x29ac7f,_0x413fbe){return _0x29ac7f!==_0x413fbe;},'skfox':function(_0x2323fc,_0x16b57c){return _0x2323fc!==_0x16b57c;},'XyITT':_0x42f8(0x33),'XLmbk':function(_0x1f7a89,_0x470d44){return _0x1f7a89===_0x470d44;},'uzIbc':'đą\x20Face\x20ID/Touch\x20ID\x20not\x20available','juuON':function(_0x1cbc5b,_0x5655ea){return _0x1cbc5b!==_0x5655ea;},'aFFHt':function(_0x3ae53e,_0x5336d6){return _0x3ae53e!==_0x5336d6;},'WQnWM':function(_0x3924e4,_0x27d43c){return _0x3924e4!==_0x27d43c;},'yRqzn':_0x42f8(0x34),'VSmcj':function(_0x290820,_0x23752e){return _0x290820===_0x23752e;},'BoUSW':function(_0x411d68,_0x3792d1){return _0x411d68===_0x3792d1;},'goRnN':function(_0x4d419c,_0xa83a20){return _0x4d419c===_0xa83a20;},'YvdMF':_0x42f8(0x35),'YvgCh':_0x42f8(0x36),'WKaNT':function(_0x17ac00,_0xe23fdc){return _0x17ac00!==_0xe23fdc;},'oCHrU':function(_0x2db313,_0x509b61){return _0x2db313===_0x509b61;},'CSrHp':_0x42f8(0x37)};try{if(_0x365381[_0x42f8(0x38)](_0x365381[_0x42f8(0x39)],_0x365381['xglbG'])){console[_0x42f8(0x19)](_0x365381[_0x42f8(0x3a)]);const _0x30149f=await _0x365381['zQjfa'](isBiometricAvailable);if(!_0x30149f)return console[_0x42f8(0x13)](_0x365381[_0x42f8(0x3b)]),![];console['log'](_0x365381['TvfTA']);const _0x2867d9={'accessControl':Keychain[_0x42f8(0x3c)][_0x42f8(0x3d)],'authenticationType':Keychain[_0x42f8(0x3e)][_0x42f8(0x3f)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._0x365381[_0x42f8(0x40)](_reactNative[_0x42f8(0x41)]['OS'],_0x365381[_0x42f8(0x42)])&&{'localizedPrompt':_0x42f8(0x43),'localizedCancel':_0x365381[_0x42f8(0x44)]},..._0x365381[_0x42f8(0x40)](_reactNative['Platform']['OS'],_0x365381[_0x42f8(0x45)])&&{'promptMessage':_0x365381['KYAaU'],'cancelButtonText':_0x365381[_0x42f8(0x44)]}};console[_0x42f8(0x19)](_0x42f8(0x46));const _0x41accf=await Keychain[_0x42f8(0x47)](PIN_USERNAME,_0x49aa1a,{'service':PIN_SERVICE_KEY,..._0x2867d9});return console[_0x42f8(0x19)](_0x365381[_0x42f8(0x48)]),console[_0x42f8(0x19)](_0x365381['iQPmo'],_0x41accf),!![];}else{if(!_0x4fd840&&_0x518552&&_0x13973a['__esModule'])return _0x121814;var _0x64e67e,_0x416e2c,_0x28888d={'__proto__':null,'default':_0x2d0118};if(null===_0x55f4f6||_0x365381[_0x42f8(0x49)](_0x42f8(0x4a),typeof _0xa36f53)&&_0x365381[_0x42f8(0x49)](_0x365381[_0x42f8(0x4b)],typeof _0x168e06))return _0x28888d;if(_0x64e67e=_0xeea90?_0x4f26c9:_0x17ff7d){if(_0x64e67e[_0x42f8(0x11)](_0x29b899))return _0x64e67e[_0x42f8(0x12)](_0x1b6df4);_0x64e67e[_0x42f8(0x18)](_0x52099e,_0x28888d);}for(const _0x5ecc8e in _0x30373e)_0x365381[_0x42f8(0x4c)]!==_0x5ecc8e&&{}['hasOwnProperty'][_0x42f8(0x4d)](_0x13cdbb,_0x5ecc8e)&&((_0x416e2c=(_0x64e67e=_0x4461e3[_0x42f8(0x0)])&&_0x248f05[_0x42f8(0x17)](_0x3a4c16,_0x5ecc8e))&&(_0x416e2c[_0x42f8(0x12)]||_0x416e2c['set'])?_0x365381[_0x42f8(0x4e)](_0x64e67e,_0x28888d,_0x5ecc8e,_0x416e2c):_0x28888d[_0x5ecc8e]=_0x11ed4b[_0x5ecc8e]);return _0x28888d;}}catch(_0x227668){var _0x3ad87f,_0x10cee6,_0x5da7a6,_0x2c5029;console[_0x42f8(0x13)](_0x365381['BiKEX'],_0x227668),console[_0x42f8(0x13)](_0x365381[_0x42f8(0x4f)],{'message':_0x227668[_0x42f8(0x50)],'code':_0x227668['code'],'domain':_0x227668['domain'],'userInfo':_0x227668['userInfo']});if(_0x227668!==null&&_0x365381[_0x42f8(0x38)](_0x227668,void 0x0)&&_0x365381[_0x42f8(0x38)](_0x3ad87f=_0x227668['message'],null)&&_0x365381[_0x42f8(0x51)](_0x3ad87f,void 0x0)&&_0x3ad87f[_0x42f8(0x52)](_0x365381[_0x42f8(0x53)])||_0x365381[_0x42f8(0x40)](_0x365381['WDlkN'](_0x227668,null)||_0x365381[_0x42f8(0x40)](_0x227668,void 0x0)?void 0x0:_0x227668[_0x42f8(0x54)],-0x80))return _0x365381['MnTmU'](_0x365381[_0x42f8(0x55)],_0x365381[_0x42f8(0x55)])?(_0xfee435[_0x42f8(0x13)](_0x365381[_0x42f8(0x3b)]),![]):(console[_0x42f8(0x19)]('đ¤\x20User\x20cancelled\x20Face\x20ID\x20authentication'),![]);else{if(_0x365381[_0x42f8(0x51)](_0x227668,null)&&_0x365381[_0x42f8(0x56)](_0x227668,void 0x0)&&_0x365381[_0x42f8(0x57)](_0x10cee6=_0x227668[_0x42f8(0x50)],null)&&_0x10cee6!==void 0x0&&_0x10cee6[_0x42f8(0x52)](_0x365381[_0x42f8(0x58)])||_0x365381['WDlkN'](_0x365381[_0x42f8(0x59)](_0x227668,null)||_0x227668===void 0x0?void 0x0:_0x227668['code'],-0x6))return console['log'](_0x365381[_0x42f8(0x5a)]),![];else{if(_0x365381[_0x42f8(0x38)](_0x227668,null)&&_0x365381[_0x42f8(0x5b)](_0x227668,void 0x0)&&_0x365381['aFFHt'](_0x5da7a6=_0x227668['message'],null)&&_0x365381[_0x42f8(0x5c)](_0x5da7a6,void 0x0)&&_0x5da7a6[_0x42f8(0x52)](_0x365381[_0x42f8(0x5d)])||_0x365381[_0x42f8(0x5e)](_0x365381[_0x42f8(0x5f)](_0x227668,null)||_0x365381['goRnN'](_0x227668,void 0x0)?void 0x0:_0x227668['code'],-0x1))return _0x365381[_0x42f8(0x5f)](_0x365381[_0x42f8(0x60)],'SccFz')?(_0x449894[_0x42f8(0x19)](_0x365381['rmfiH']),null):(console['log'](_0x365381['YvgCh']),![]);else{if(_0x365381[_0x42f8(0x5c)](_0x227668,null)&&_0x365381[_0x42f8(0x5b)](_0x227668,void 0x0)&&_0x365381[_0x42f8(0x61)](_0x2c5029=_0x227668[_0x42f8(0x50)],null)&&_0x2c5029!==void 0x0&&_0x2c5029[_0x42f8(0x52)]('BiometryLockout')||(_0x227668===null||_0x365381['oCHrU'](_0x227668,void 0x0)?void 0x0:_0x227668[_0x42f8(0x54)])===-0x8)return console[_0x42f8(0x19)](_0x365381[_0x42f8(0x62)]),![];}}}return console['error'](_0x42f8(0x63),_0x227668['message']),![];}};exports[_0x42f8(0x64)]=storePinWithBiometric;const retrievePinWithBiometric=async()=>{const _0x3a56a3={'WeRcG':'đą\x20Biometric\x20not\x20available','OCWAe':_0x42f8(0x36),'lDvAD':'â
\x20PIN\x20retrieved\x20successfully','kyapE':_0x42f8(0x65),'yjKCg':'đ\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','LKXvU':function(_0x4ab478,_0x5c4430){return _0x4ab478===_0x5c4430;},'FuehN':_0x42f8(0x66),'dZFJs':_0x42f8(0x5),'qBLiB':_0x42f8(0x67),'PrSKP':_0x42f8(0x68),'yNFyr':function(_0x121e97,_0x280bfa){return _0x121e97!==_0x280bfa;},'WqZyY':_0x42f8(0x31),'kpRRd':function(_0x285444,_0x14b18d){return _0x285444===_0x14b18d;},'cxzEK':_0x42f8(0x69),'rzHOe':_0x42f8(0x6a),'vrdiF':_0x42f8(0x6b),'rPEjl':function(_0xe23abf,_0x27b369){return _0xe23abf!==_0x27b369;},'rgrtS':_0x42f8(0x33)};try{if('JUaBX'===_0x3a56a3[_0x42f8(0x6c)])return _0x4d2ba4[_0x42f8(0x19)](_0x3a56a3[_0x42f8(0x6d)]),null;else{console[_0x42f8(0x19)](_0x3a56a3['yjKCg']);const _0x182b7f=await Keychain[_0x42f8(0x6e)]({'service':PIN_SERVICE_KEY});if(_0x182b7f&&_0x182b7f[_0x42f8(0x6f)]){if(_0x3a56a3[_0x42f8(0x70)](_0x3a56a3[_0x42f8(0x71)],_0x42f8(0x66)))return console[_0x42f8(0x19)](_0x3a56a3[_0x42f8(0x72)]),_0x182b7f[_0x42f8(0x6f)];else{if(_0x2e511a[_0x42f8(0x11)](_0xdadd59))return _0x58294e[_0x42f8(0x12)](_0x1ffdf3);_0x3f7af9[_0x42f8(0x18)](_0x45cb2e,_0x48d9fb);}}else return console[_0x42f8(0x19)](_0x3a56a3[_0x42f8(0x73)]),null;}}catch(_0x2b22b7){if(_0x3a56a3[_0x42f8(0x74)]!==_0x3a56a3['qBLiB'])return _0x5b2a71[_0x42f8(0x19)](_0x3a56a3[_0x42f8(0x75)]),![];else{var _0x498f5c,_0x3770e9;console['error'](_0x3a56a3['PrSKP'],_0x2b22b7);if(_0x2b22b7!==null&&_0x3a56a3[_0x42f8(0x76)](_0x2b22b7,void 0x0)&&_0x3a56a3[_0x42f8(0x76)](_0x498f5c=_0x2b22b7[_0x42f8(0x50)],null)&&_0x498f5c!==void 0x0&&_0x498f5c[_0x42f8(0x52)](_0x3a56a3[_0x42f8(0x77)]))return _0x3a56a3['kpRRd'](_0x3a56a3[_0x42f8(0x78)],_0x3a56a3[_0x42f8(0x79)])?(_0x1957e1['log'](_0x3a56a3[_0x42f8(0x72)]),_0xa4e56d[_0x42f8(0x6f)]):(console[_0x42f8(0x19)](_0x3a56a3[_0x42f8(0x7a)]),null);else{if(_0x3a56a3[_0x42f8(0x76)](_0x2b22b7,null)&&_0x3a56a3[_0x42f8(0x76)](_0x2b22b7,void 0x0)&&_0x3a56a3['yNFyr'](_0x3770e9=_0x2b22b7['message'],null)&&_0x3a56a3[_0x42f8(0x7b)](_0x3770e9,void 0x0)&&_0x3770e9['includes'](_0x3a56a3[_0x42f8(0x7c)]))return console[_0x42f8(0x19)](_0x3a56a3[_0x42f8(0x6d)]),null;}return null;}}};function _0x42f8(_0x3bbea0,_0x42f8f9){_0x3bbea0=_0x3bbea0-0x0;const _0x501f28=_0x3bbe();let _0x217aa4=_0x501f28[_0x3bbea0];return _0x217aa4;}exports[_0x42f8(0x2)]=retrievePinWithBiometric;const isPinStored=async()=>{const _0x262525={'GkMPr':_0x42f8(0x7d)};try{const _0x369205=await Keychain[_0x42f8(0x6e)]({'service':PIN_SERVICE_KEY});return!!(_0x369205&&_0x369205[_0x42f8(0x6f)]);}catch(_0x6585f1){return console[_0x42f8(0x13)](_0x262525['GkMPr'],_0x6585f1),![];}};exports['isPinStored']=isPinStored;function _0x3bbe(){const _0x8bf9ca=['defineProperty','__esModule','retrievePinWithBiometric','isPinStored','biometricPinService','â ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','LBxfb','OCWJS','rHEdm','â\x20Error\x20checking\x20biometric\x20availability:','SKIHH','lGRHD','ZPIXp','NpAOV','vpzVn','function','kEBLD','has','get','error','OlPqU','yOAvZ','hasOwnProperty','getOwnPropertyDescriptor','set','log','RGbMt','OnairosEventsPIN','user_pin','getSupportedBiometryType','BIOMETRY_TYPE','FACE_ID','fAzPf','FINGERPRINT','HmMnk','IRIS','isBiometricAvailable','mpjLl','PXMVJ','đ\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','đą\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ios','Cancel','android','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','â
\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','đ\x20Keychain\x20storage\x20result:','â\x20Face\x20ID\x20authentication\x20failed:','â\x20Error\x20details:','UserCancel','TQKyI','BiometryNotAvailable','AuthenticationFailed','VsAkf','đĢ\x20Face\x20ID\x20authentication\x20failed','đ\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','VrUKR','jUbvA','LKayp','LGfcj','ACCESS_CONTROL','BIOMETRY_CURRENT_SET','AUTHENTICATION_TYPE','BIOMETRICS','WDlkN','Platform','vSbKn','Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','uQTTu','DnNYa','đ¤\x20Requesting\x20Face\x20ID\x20authentication...','setGenericPassword','yfRvG','EyaUA','object','mVMUm','towXI','call','gIeRH','afoMG','message','FFgFp','includes','csqsJ','code','pMnyp','hWmAZ','skfox','XyITT','XLmbk','uzIbc','juuON','WQnWM','yRqzn','VSmcj','BoUSW','YvdMF','WKaNT','CSrHp','â\x20Unknown\x20Face\x20ID\x20error:','storePinWithBiometric','bVZpE','jfwnT','gmwoq','â\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','fHmWd','lYihs','đ¤\x20User\x20cancelled\x20biometric\x20authentication','kyapE','WeRcG','getGenericPassword','password','LKXvU','FuehN','lDvAD','dZFJs','qBLiB','OCWAe','yNFyr','WqZyY','cxzEK','rzHOe','vrdiF','rPEjl','rgrtS','â\x20Error\x20checking\x20PIN\x20storage:','đī¸\x20Removing\x20PIN\x20from\x20secure\x20storage...','â\x20Error\x20removing\x20PIN\x20from\x20storage:','HTKQM','SNmPp'];_0x3bbe=function(){return _0x8bf9ca;};return _0x3bbe();}const removePinFromStorage=async()=>{const _0x54ff46={'HTKQM':_0x42f8(0x7e),'SNmPp':'â
\x20PIN\x20removed\x20successfully','MSjFB':_0x42f8(0x7f)};try{return console[_0x42f8(0x19)](_0x54ff46[_0x42f8(0x80)]),await Keychain['resetGenericPassword']({'service':PIN_SERVICE_KEY}),console[_0x42f8(0x19)](_0x54ff46[_0x42f8(0x81)]),!![];}catch(_0x179aa6){return console[_0x42f8(0x13)](_0x54ff46['MSjFB'],_0x179aa6),![];}};exports['removePinFromStorage']=removePinFromStorage;const biometricPinService=exports[_0x42f8(0x4)]={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
|
|
8
|
+
Object[_0x264c(0x0)](exports,'__esModule',{'value':!![]}),exports['storePinWithBiometric']=exports[_0x264c(0x1)]=exports[_0x264c(0x2)]=exports[_0x264c(0x3)]=exports['isBiometricAvailable']=exports[_0x264c(0x4)]=void 0x0;function _0x264c(_0x105415,_0x264cdf){_0x105415=_0x105415-0x0;const _0x5768a9=_0x1054();let _0x12e5cf=_0x5768a9[_0x105415];return _0x12e5cf;}var Keychain=_interopRequireWildcard(__ONAIROS_REQ_FUNC__(0x0)),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _interopRequireWildcard(_0x535734,_0x4877ca){const _0x27bc43={'xtVsL':function(_0x547662,_0x4da152){return _0x547662!==_0x4da152;},'uXQOH':_0x264c(0x5),'TCmBI':'DzkqI','YrYrC':function(_0x3daa11,_0x3e2a84){return _0x3daa11&&_0x3e2a84;},'MlBZJ':function(_0x44a1ad,_0x87c4b4){return _0x44a1ad===_0x87c4b4;},'FkEio':_0x264c(0x6),'qyMeH':function(_0x1ce83d,_0x80ed0d){return _0x1ce83d!=_0x80ed0d;},'ySceZ':'default','NgoGl':function(_0x3eb872,_0x483742,_0x31ba27,_0x1c63b6){return _0x3eb872(_0x483742,_0x31ba27,_0x1c63b6);},'cJYCC':_0x264c(0x7)};if(_0x27bc43[_0x264c(0x8)]==typeof WeakMap)var _0x22a3ff=new WeakMap(),_0x1282c9=new WeakMap();return(_interopRequireWildcard=function(_0x46463b,_0x3af096){if(_0x27bc43[_0x264c(0x9)](_0x27bc43[_0x264c(0xa)],_0x27bc43[_0x264c(0xb)])){if(_0x27bc43[_0x264c(0xc)](!_0x3af096,_0x46463b)&&_0x46463b[_0x264c(0xd)])return _0x46463b;var _0x47fb22,_0x347540,_0x40b21b={'__proto__':null,'default':_0x46463b};if(_0x27bc43[_0x264c(0xe)](null,_0x46463b)||_0x27bc43['FkEio']!=typeof _0x46463b&&_0x27bc43['qyMeH'](_0x264c(0x7),typeof _0x46463b))return _0x40b21b;if(_0x47fb22=_0x3af096?_0x1282c9:_0x22a3ff){if(_0x47fb22[_0x264c(0xf)](_0x46463b))return _0x47fb22[_0x264c(0x10)](_0x46463b);_0x47fb22[_0x264c(0x11)](_0x46463b,_0x40b21b);}for(const _0x10775d in _0x46463b)_0x27bc43[_0x264c(0x12)]!==_0x10775d&&{}[_0x264c(0x13)][_0x264c(0x14)](_0x46463b,_0x10775d)&&((_0x347540=(_0x47fb22=Object[_0x264c(0x0)])&&Object['getOwnPropertyDescriptor'](_0x46463b,_0x10775d))&&(_0x347540[_0x264c(0x10)]||_0x347540['set'])?_0x27bc43[_0x264c(0x15)](_0x47fb22,_0x40b21b,_0x10775d,_0x347540):_0x40b21b[_0x10775d]=_0x46463b[_0x10775d]);return _0x40b21b;}else{if(_0x17f23f['has'](_0x38d0de))return _0x5cc34c[_0x264c(0x10)](_0x169686);_0x469021[_0x264c(0x11)](_0x3a8ca9,_0x49ce22);}})(_0x535734,_0x4877ca);}const PIN_SERVICE_KEY='OnairosEventsPIN',PIN_USERNAME=_0x264c(0x16),isBiometricAvailable=async()=>{const _0x5a6a2d={'uPETJ':'â ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','EALHl':'đ\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts','vTDKN':function(_0x312008,_0x21112a){return _0x312008===_0x21112a;},'BSozt':_0x264c(0x17),'mCwwD':function(_0x32f18e,_0x491bb2){return _0x32f18e===_0x491bb2;},'Slkln':function(_0x284ad9,_0x2659ce){return _0x284ad9!==_0x2659ce;},'AybsY':'GNPug','PQPdd':_0x264c(0x18)};try{if(_0x5a6a2d['vTDKN']('mDUoF',_0x264c(0x19))){const _0xbdc225=await Keychain['getSupportedBiometryType']();return console[_0x264c(0x1a)](_0x5a6a2d[_0x264c(0x1b)],_0xbdc225),_0x5a6a2d[_0x264c(0x1c)](_0xbdc225,Keychain[_0x264c(0x1d)][_0x264c(0x1e)])||_0x5a6a2d[_0x264c(0x1c)](_0xbdc225,Keychain[_0x264c(0x1d)][_0x264c(0x1f)])||_0xbdc225===Keychain['BIOMETRY_TYPE'][_0x264c(0x20)]||_0x5a6a2d[_0x264c(0x21)](_0xbdc225,Keychain[_0x264c(0x1d)][_0x264c(0x22)])||_0x5a6a2d[_0x264c(0x21)](_0xbdc225,Keychain[_0x264c(0x1d)][_0x264c(0x23)]);}else return _0x20c5c9[_0x264c(0x1a)](_0x5a6a2d[_0x264c(0x24)]),null;}catch(_0x165a25){return _0x5a6a2d[_0x264c(0x25)](_0x264c(0x26),_0x5a6a2d[_0x264c(0x27)])?(console[_0x264c(0x28)](_0x5a6a2d[_0x264c(0x29)],_0x165a25),![]):(_0x40d7a8[_0x264c(0x1a)](_0x5a6a2d['EALHl']),![]);}};exports[_0x264c(0x2a)]=isBiometricAvailable;const storePinWithBiometric=async _0x4bbc5a=>{const _0x16c31f={'aLETk':_0x264c(0x2b),'PWGrW':_0x264c(0x2c),'osfjR':_0x264c(0x2d),'JZzMy':function(_0x3c5f8a,_0x3bf9f1){return _0x3c5f8a!==_0x3bf9f1;},'lboLy':'zWzCT','BlhMl':_0x264c(0x2e),'zzXQJ':function(_0x36f7fd){return _0x36f7fd();},'rCtVH':_0x264c(0x2f),'xeJTo':_0x264c(0x30),'JQCOJ':_0x264c(0x31),'EjbYV':'Cancel','UtUuN':'đ¤\x20Requesting\x20Face\x20ID\x20authentication...','TmMhF':_0x264c(0x32),'ueNnG':_0x264c(0x33),'INdgE':function(_0x367ea3,_0x15475a){return _0x367ea3!==_0x15475a;},'kXGKC':function(_0x28654b,_0x4fd805){return _0x28654b!==_0x4fd805;},'OutXT':'UserCancel','lUcCj':function(_0x5f03ff,_0x45ea03){return _0x5f03ff===_0x45ea03;},'Hbbkp':_0x264c(0x34),'nmpuB':_0x264c(0x35),'zdTwz':_0x264c(0x36),'UFrLX':_0x264c(0x37),'ndwpp':_0x264c(0x38),'EIDjm':function(_0x578cb0,_0x226d52){return _0x578cb0!==_0x226d52;},'CUqdy':function(_0x12a553,_0x4f7c16){return _0x12a553!==_0x4f7c16;},'aArnz':function(_0x1106ef,_0x3e489d){return _0x1106ef!==_0x3e489d;},'yTYcS':_0x264c(0x39),'ImBdh':function(_0x4475fd,_0x2c1f17){return _0x4475fd===_0x2c1f17;},'scvxL':function(_0x55e91d,_0x50a7a5){return _0x55e91d===_0x50a7a5;},'mbaqU':'gGdlZ','uqvSF':_0x264c(0x3a),'DOmqL':'đ\x20Face\x20ID\x20locked\x20out\x20-\x20too\x20many\x20failed\x20attempts'};try{if(_0x16c31f['JZzMy'](_0x264c(0x3b),_0x16c31f[_0x264c(0x3c)]))return _0xc0ba29[_0x264c(0x28)](_0x264c(0x18),_0x128c52),![];else{console[_0x264c(0x1a)](_0x16c31f['BlhMl']);const _0x2aea5d=await _0x16c31f[_0x264c(0x3d)](isBiometricAvailable);if(!_0x2aea5d)return console[_0x264c(0x28)](_0x16c31f['rCtVH']),![];console[_0x264c(0x1a)](_0x264c(0x3e));const _0x177250={'accessControl':Keychain[_0x264c(0x3f)][_0x264c(0x40)],'authenticationType':Keychain['AUTHENTICATION_TYPE'][_0x264c(0x41)],'touchID':!![],'showModal':!![],'kLocalizedFallbackTitle':'',..._reactNative[_0x264c(0x42)]['OS']===_0x16c31f['xeJTo']&&{'localizedPrompt':_0x16c31f['JQCOJ'],'localizedCancel':_0x16c31f['EjbYV']},..._reactNative[_0x264c(0x42)]['OS']===_0x264c(0x43)&&{'promptMessage':_0x264c(0x44),'cancelButtonText':_0x16c31f[_0x264c(0x45)]}};console[_0x264c(0x1a)](_0x16c31f['UtUuN']);const _0x5acd89=await Keychain[_0x264c(0x46)](PIN_USERNAME,_0x4bbc5a,{'service':PIN_SERVICE_KEY,..._0x177250});return console[_0x264c(0x1a)](_0x264c(0x47)),console[_0x264c(0x1a)](_0x264c(0x48),_0x5acd89),!![];}}catch(_0x5e53c4){var _0x80864,_0x25dc38,_0x77a25d,_0x2d894f;console[_0x264c(0x28)](_0x16c31f[_0x264c(0x49)],_0x5e53c4),console[_0x264c(0x28)](_0x16c31f[_0x264c(0x4a)],{'message':_0x5e53c4[_0x264c(0x4b)],'code':_0x5e53c4[_0x264c(0x4c)],'domain':_0x5e53c4[_0x264c(0x4d)],'userInfo':_0x5e53c4[_0x264c(0x4e)]});if(_0x5e53c4!==null&&_0x16c31f[_0x264c(0x4f)](_0x5e53c4,void 0x0)&&_0x16c31f[_0x264c(0x50)](_0x80864=_0x5e53c4[_0x264c(0x4b)],null)&&_0x16c31f[_0x264c(0x51)](_0x80864,void 0x0)&&_0x80864[_0x264c(0x52)](_0x16c31f['OutXT'])||_0x16c31f[_0x264c(0x53)](_0x16c31f['lUcCj'](_0x5e53c4,null)||_0x5e53c4===void 0x0?void 0x0:_0x5e53c4[_0x264c(0x4c)],-0x80))return _0x16c31f[_0x264c(0x54)]===_0x16c31f[_0x264c(0x55)]?(_0x4b5c48[_0x264c(0x28)](_0x16c31f['aLETk'],_0x51e5e3),![]):(console[_0x264c(0x1a)](_0x16c31f[_0x264c(0x56)]),![]);else{if(_0x5e53c4!==null&&_0x16c31f['JZzMy'](_0x5e53c4,void 0x0)&&_0x16c31f['INdgE'](_0x25dc38=_0x5e53c4[_0x264c(0x4b)],null)&&_0x25dc38!==void 0x0&&_0x25dc38['includes'](_0x16c31f[_0x264c(0x57)])||(_0x5e53c4===null||_0x16c31f[_0x264c(0x53)](_0x5e53c4,void 0x0)?void 0x0:_0x5e53c4[_0x264c(0x4c)])===-0x6)return _0x16c31f[_0x264c(0x53)](_0x264c(0x58),_0x16c31f[_0x264c(0x59)])?(_0x16a599[_0x264c(0x1a)](_0x16c31f['PWGrW']),![]):(console[_0x264c(0x1a)](_0x16c31f[_0x264c(0x5a)]),![]);else{if(_0x16c31f[_0x264c(0x5b)](_0x5e53c4,null)&&_0x16c31f[_0x264c(0x5b)](_0x5e53c4,void 0x0)&&_0x16c31f[_0x264c(0x5c)](_0x77a25d=_0x5e53c4['message'],null)&&_0x16c31f[_0x264c(0x5d)](_0x77a25d,void 0x0)&&_0x77a25d['includes'](_0x16c31f[_0x264c(0x5e)])||_0x16c31f['ImBdh'](_0x16c31f[_0x264c(0x5f)](_0x5e53c4,null)||_0x16c31f[_0x264c(0x5f)](_0x5e53c4,void 0x0)?void 0x0:_0x5e53c4[_0x264c(0x4c)],-0x1))return _0x16c31f['mbaqU']!==_0x16c31f[_0x264c(0x60)]?(_0x51ff4f[_0x264c(0x1a)](_0x16c31f[_0x264c(0x61)]),![]):(console[_0x264c(0x1a)](_0x16c31f[_0x264c(0x61)]),![]);else{if(_0x16c31f[_0x264c(0x51)](_0x5e53c4,null)&&_0x5e53c4!==void 0x0&&(_0x2d894f=_0x5e53c4[_0x264c(0x4b)])!==null&&_0x16c31f[_0x264c(0x5c)](_0x2d894f,void 0x0)&&_0x2d894f[_0x264c(0x52)](_0x16c31f[_0x264c(0x62)])||_0x16c31f[_0x264c(0x53)](_0x16c31f[_0x264c(0x63)](_0x5e53c4,null)||_0x5e53c4===void 0x0?void 0x0:_0x5e53c4[_0x264c(0x4c)],-0x8))return console[_0x264c(0x1a)](_0x16c31f[_0x264c(0x64)]),![];}}}return console[_0x264c(0x28)](_0x264c(0x65),_0x5e53c4[_0x264c(0x4b)]),![];}};exports[_0x264c(0x66)]=storePinWithBiometric;const retrievePinWithBiometric=async()=>{const _0x21546c={'HyaAK':_0x264c(0x36),'nxoWB':'â\x20Error\x20retrieving\x20PIN\x20with\x20biometric:','WopOf':function(_0x797d68,_0x309bf7){return _0x797d68!==_0x309bf7;},'pHLRC':_0x264c(0x67),'WbItW':function(_0x23bd75,_0x417366){return _0x23bd75!==_0x417366;},'TlrgS':function(_0x305a6c,_0x561f97){return _0x305a6c!==_0x561f97;},'nVoID':'đą\x20Biometric\x20not\x20available','TzdUt':_0x264c(0x68),'NFvUW':_0x264c(0x69),'iHhus':_0x264c(0x6a),'iDNVD':function(_0x93e01b,_0x3059ab){return _0x93e01b===_0x3059ab;},'noWeW':_0x264c(0x6b),'zPOdl':_0x264c(0x6c),'oqtEe':function(_0x3ebc58,_0x1682ad){return _0x3ebc58!==_0x1682ad;}};try{console[_0x264c(0x1a)](_0x21546c['TzdUt']);const _0x313cf5=await Keychain['getGenericPassword']({'service':PIN_SERVICE_KEY});return _0x313cf5&&_0x313cf5['password']?(console[_0x264c(0x1a)](_0x21546c[_0x264c(0x6d)]),_0x313cf5[_0x264c(0x6e)]):(console[_0x264c(0x1a)](_0x264c(0x6f)),null);}catch(_0x226a53){if(_0x21546c[_0x264c(0x70)]===_0x21546c[_0x264c(0x70)]){var _0x2d95dc,_0x3835f1;console[_0x264c(0x28)](_0x21546c[_0x264c(0x71)],_0x226a53);if(_0x21546c['WbItW'](_0x226a53,null)&&_0x226a53!==void 0x0&&_0x21546c['WbItW'](_0x2d95dc=_0x226a53[_0x264c(0x4b)],null)&&_0x2d95dc!==void 0x0&&_0x2d95dc[_0x264c(0x52)](_0x264c(0x67)))return _0x21546c[_0x264c(0x72)](_0x21546c['noWeW'],_0x264c(0x73))?(_0x26c4ea['log'](_0x21546c[_0x264c(0x74)]),![]):(console[_0x264c(0x1a)](_0x21546c[_0x264c(0x75)]),null);else{if(_0x226a53!==null&&_0x226a53!==void 0x0&&_0x21546c['oqtEe'](_0x3835f1=_0x226a53[_0x264c(0x4b)],null)&&_0x3835f1!==void 0x0&&_0x3835f1[_0x264c(0x52)](_0x264c(0x37)))return console[_0x264c(0x1a)](_0x264c(0x76)),null;}return null;}else{var _0x242d76,_0x1fd84e;_0x57d095['error'](_0x21546c[_0x264c(0x71)],_0x44b2ce);if(_0x21546c[_0x264c(0x77)](_0x3a72dc,null)&&_0x477d88!==void 0x0&&(_0x242d76=_0x225782['message'])!==null&&_0x21546c['WopOf'](_0x242d76,void 0x0)&&_0x242d76['includes'](_0x21546c['pHLRC']))return _0x139d69['log']('đ¤\x20User\x20cancelled\x20biometric\x20authentication'),null;else{if(_0x21546c[_0x264c(0x78)](_0x4864ce,null)&&_0x21546c['WbItW'](_0x4174ed,void 0x0)&&(_0x1fd84e=_0xc14df3[_0x264c(0x4b)])!==null&&_0x21546c[_0x264c(0x79)](_0x1fd84e,void 0x0)&&_0x1fd84e['includes'](_0x264c(0x37)))return _0x3acdcd[_0x264c(0x1a)](_0x21546c[_0x264c(0x7a)]),null;}return null;}}};exports['retrievePinWithBiometric']=retrievePinWithBiometric;const isPinStored=async()=>{const _0x33b4f8={'OgaCg':function(_0x5bcf88,_0x2f6e13){return _0x5bcf88&&_0x2f6e13;},'mZNmb':function(_0x2a888e,_0x2123ff){return _0x2a888e===_0x2123ff;},'SAkLe':function(_0x56bbd2,_0x1808c3){return _0x56bbd2!=_0x1808c3;},'MHUGg':_0x264c(0x6),'DhmyV':_0x264c(0x7),'QetEX':function(_0xa411b,_0x2a81ed){return _0xa411b!==_0x2a81ed;},'oHSSL':_0x264c(0x7b),'QSaXo':function(_0x5f174c,_0x55e49e,_0x3927e8,_0x4db162){return _0x5f174c(_0x55e49e,_0x3927e8,_0x4db162);},'yzlyy':function(_0x41ba76,_0x281f71){return _0x41ba76==_0x281f71;},'nkiJX':function(_0x441a79,_0x4922cc){return _0x441a79===_0x4922cc;},'yVvfI':_0x264c(0x7c),'uRqSV':_0x264c(0x7d),'uCDOE':_0x264c(0x7e),'gwGNd':'â\x20Error\x20checking\x20PIN\x20storage:'};try{if(_0x33b4f8[_0x264c(0x7f)](_0x33b4f8['yVvfI'],_0x33b4f8[_0x264c(0x80)])){const _0x277ef4=await Keychain[_0x264c(0x81)]({'service':PIN_SERVICE_KEY});return!!(_0x277ef4&&_0x277ef4['password']);}else return _0x2a7ad9[_0x264c(0x28)](_0x264c(0x2f)),![];}catch(_0x28b17f){if(_0x33b4f8[_0x264c(0x82)]!==_0x33b4f8[_0x264c(0x83)])return console[_0x264c(0x28)](_0x33b4f8[_0x264c(0x84)],_0x28b17f),![];else{const _0x23843f={'NvXaf':function(_0x3b2fa2,_0x458404){return _0x33b4f8[_0x264c(0x85)](_0x3b2fa2,_0x458404);},'FHSLJ':function(_0x527474,_0x47b2a0){return _0x33b4f8[_0x264c(0x86)](_0x527474,_0x47b2a0);},'YLahi':function(_0x30a29e,_0x468cae){return _0x33b4f8['SAkLe'](_0x30a29e,_0x468cae);},'UNmkl':_0x33b4f8['MHUGg'],'PexZh':function(_0x2ec08a,_0xb7a5a3){return _0x33b4f8[_0x264c(0x87)](_0x2ec08a,_0xb7a5a3);},'xhISN':_0x33b4f8[_0x264c(0x88)],'XFhNu':function(_0x35d51a,_0x20b267){return _0x33b4f8[_0x264c(0x89)](_0x35d51a,_0x20b267);},'osiaf':_0x33b4f8['oHSSL'],'DmUUh':function(_0x2fba40,_0x4fd3f7,_0x3a820c,_0x47f49e){return _0x33b4f8['QSaXo'](_0x2fba40,_0x4fd3f7,_0x3a820c,_0x47f49e);}};if(_0x33b4f8[_0x264c(0x8a)](_0x33b4f8['DhmyV'],typeof _0x24fda8))var _0x34c704=new _0x5f23ee(),_0x414a59=new _0x99cc2f();return(_0x4450f7=function(_0x19bdc5,_0x378dcd){if(_0x23843f[_0x264c(0x8b)](!_0x378dcd,_0x19bdc5)&&_0x19bdc5[_0x264c(0xd)])return _0x19bdc5;var _0x16a05c,_0x2cd986,_0x451cff={'__proto__':null,'default':_0x19bdc5};if(_0x23843f[_0x264c(0x8c)](null,_0x19bdc5)||_0x23843f[_0x264c(0x8d)](_0x23843f[_0x264c(0x8e)],typeof _0x19bdc5)&&_0x23843f['PexZh'](_0x23843f[_0x264c(0x8f)],typeof _0x19bdc5))return _0x451cff;if(_0x16a05c=_0x378dcd?_0x414a59:_0x34c704){if(_0x16a05c[_0x264c(0xf)](_0x19bdc5))return _0x16a05c[_0x264c(0x10)](_0x19bdc5);_0x16a05c[_0x264c(0x11)](_0x19bdc5,_0x451cff);}for(const _0x5ea9fd in _0x19bdc5)_0x23843f[_0x264c(0x90)](_0x23843f[_0x264c(0x91)],_0x5ea9fd)&&{}[_0x264c(0x13)]['call'](_0x19bdc5,_0x5ea9fd)&&((_0x2cd986=(_0x16a05c=_0x30d627['defineProperty'])&&_0xcad322[_0x264c(0x92)](_0x19bdc5,_0x5ea9fd))&&(_0x2cd986[_0x264c(0x10)]||_0x2cd986[_0x264c(0x11)])?_0x23843f[_0x264c(0x93)](_0x16a05c,_0x451cff,_0x5ea9fd,_0x2cd986):_0x451cff[_0x5ea9fd]=_0x19bdc5[_0x5ea9fd]);return _0x451cff;})(_0x4ea6ff,_0x48f788);}}};function _0x1054(){const _0x4dea6d=['defineProperty','retrievePinWithBiometric','removePinFromStorage','isPinStored','biometricPinService','pSPiq','object','function','cJYCC','xtVsL','uXQOH','TCmBI','YrYrC','__esModule','MlBZJ','has','get','set','ySceZ','hasOwnProperty','call','NgoGl','user_pin','đą\x20Biometric\x20support:','â\x20Error\x20checking\x20biometric\x20availability:','mDUoF','log','BSozt','vTDKN','BIOMETRY_TYPE','FACE_ID','TOUCH_ID','FINGERPRINT','mCwwD','FACE','IRIS','uPETJ','Slkln','nPgQF','AybsY','error','PQPdd','isBiometricAvailable','â\x20Error\x20removing\x20PIN\x20from\x20storage:','đą\x20Face\x20ID/Touch\x20ID\x20not\x20available','đĢ\x20Face\x20ID\x20authentication\x20failed','đ\x20Starting\x20Face\x20ID\x20authentication\x20for\x20PIN\x20storage...','â\x20Face\x20ID/Touch\x20ID\x20not\x20available\x20on\x20this\x20device','ios','Authenticate\x20with\x20Face\x20ID\x20to\x20secure\x20your\x20PIN','â\x20Face\x20ID\x20authentication\x20failed:','â\x20Error\x20details:','JRiaB','oIKap','đ¤\x20User\x20cancelled\x20Face\x20ID\x20authentication','BiometryNotAvailable','XYOTu','AuthenticationFailed','BiometryLockout','zWzCT','lboLy','zzXQJ','đą\x20Face\x20ID\x20available,\x20showing\x20authentication\x20prompt...','ACCESS_CONTROL','BIOMETRY_CURRENT_SET','BIOMETRICS','Platform','android','Authenticate\x20with\x20biometric\x20to\x20secure\x20your\x20PIN','EjbYV','setGenericPassword','â
\x20Face\x20ID\x20authentication\x20successful\x20-\x20PIN\x20stored\x20securely','đ\x20Keychain\x20storage\x20result:','TmMhF','ueNnG','message','code','domain','userInfo','JZzMy','INdgE','kXGKC','includes','lUcCj','Hbbkp','nmpuB','zdTwz','UFrLX','OgCvp','ndwpp','PWGrW','EIDjm','CUqdy','aArnz','yTYcS','scvxL','mbaqU','osfjR','uqvSF','ImBdh','DOmqL','â\x20Unknown\x20Face\x20ID\x20error:','storePinWithBiometric','UserCancel','đ\x20Retrieving\x20PIN\x20with\x20biometric\x20authentication...','â
\x20PIN\x20retrieved\x20successfully','yovEQ','FCjzf','đ¤\x20User\x20cancelled\x20biometric\x20authentication','NFvUW','password','â ī¸\x20No\x20PIN\x20found\x20in\x20secure\x20storage','iHhus','nxoWB','iDNVD','MdrYL','HyaAK','zPOdl','đą\x20Biometric\x20not\x20available','WopOf','WbItW','TlrgS','nVoID','default','OjKCk','zncbG','SVbGE','nkiJX','yVvfI','getGenericPassword','uRqSV','uCDOE','gwGNd','OgaCg','mZNmb','SAkLe','DhmyV','QetEX','yzlyy','NvXaf','FHSLJ','YLahi','UNmkl','xhISN','XFhNu','osiaf','getOwnPropertyDescriptor','DmUUh','đī¸\x20Removing\x20PIN\x20from\x20secure\x20storage...','resetGenericPassword','VDrro','cHMFS','kdOAi','PcGPO','bPeBr'];_0x1054=function(){return _0x4dea6d;};return _0x1054();}exports['isPinStored']=isPinStored;const removePinFromStorage=async()=>{const _0x62882c={'bPeBr':_0x264c(0x6c),'VDrro':'â
\x20PIN\x20removed\x20successfully','cHMFS':function(_0x4552d2,_0x5decbd){return _0x4552d2!==_0x5decbd;},'kdOAi':'ljzUc','ePrwZ':_0x264c(0x2b)};try{return console[_0x264c(0x1a)](_0x264c(0x94)),await Keychain[_0x264c(0x95)]({'service':PIN_SERVICE_KEY}),console['log'](_0x62882c[_0x264c(0x96)]),!![];}catch(_0x8c0708){return _0x62882c[_0x264c(0x97)](_0x62882c[_0x264c(0x98)],_0x264c(0x99))?(console['error'](_0x62882c['ePrwZ'],_0x8c0708),![]):(_0x400f85[_0x264c(0x1a)](_0x62882c[_0x264c(0x9a)]),null);}};exports['removePinFromStorage']=removePinFromStorage;const biometricPinService=exports['biometricPinService']={'storePinWithBiometric':storePinWithBiometric,'retrievePinWithBiometric':retrievePinWithBiometric,'isPinStored':isPinStored,'removePinFromStorage':removePinFromStorage,'isBiometricAvailable':isBiometricAvailable};
|
|
@@ -5,4 +5,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
5
5
|
require("react-native")
|
|
6
6
|
];
|
|
7
7
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
8
|
-
function _0x2358(_0x108082,_0x235806){_0x108082=_0x108082-0x0;const _0x6b94b3=_0x1080();let _0x30b9f6=_0x6b94b3[_0x108082];return _0x30b9f6;}Object[_0x2358(0x0)](exports,'__esModule',{'value':!![]}),exports['useChatGPTConversationExtractor']=void 0x0;var _chatGPTConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);function _0x1080(){const _0xba2303=['defineProperty','â ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','â\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','đ¤\x20[CHATGPT_EXTRACTOR]\x20Username:','đ\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','default','âšī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','â\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','Data\x20Error','No\x20valid\x20conversations\x20found\x20to\x20export.','đĄ\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','â\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','AnVVg','Export\x20Error','đ§ \x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','ZHvOc','â\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','nVaBg','MXSuU','EIbNC','zgTqC','log','KUcOR','mhakz','oUzDJ','length','error','uRQOo','Alert','puUrG','AUodm','filter','orKEL','conversation_id','title','isArray','user_messages','JANKi','SoyXN','TOPSO','alert','â ī¸\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','\x20invalid\x20conversations','success','zmamL','yUlVQ','data','DXHxS','fhQaD','TODQi','dDMrU','smQwn','uvyOg','Orodf','YBgjw','iOVeX','â\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','TsFel','lSRba','ISDSj','warn','ewXWh','mmenk','UyKeF','items','XAyHM','memory_entries','memories','đ\x20[CHATGPT_EXTRACTOR]\x20Found\x20','\x20memory\x20items,\x20','\x20memories','WcpWq','âšī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','đĄ\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','storeChatGPTMemories','â
\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','CKAKL','memoriesCount','sSngt','bCmRl','useChatGPTConversationExtractor'];_0x1080=function(){return _0xba2303;};return _0x1080();}const useChatGPTConversationExtractor=()=>{const _0x5156ad={'MXSuU':_0x2358(0x1),'EIbNC':function(_0x2f43c1,_0x3c771f){return _0x2f43c1>_0x3c771f;},'zgTqC':'dIcYg','xJsWk':_0x2358(0x2),'uvyOg':'Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','KUcOR':'đ\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','mhakz':_0x2358(0x3),'oUzDJ':_0x2358(0x4),'uRQOo':'â\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','puUrG':'Error','ROcFo':_0x2358(0x5),'Orodf':_0x2358(0x6),'AUodm':function(_0x524c4b,_0x20d284){return _0x524c4b===_0x20d284;},'YisFc':_0x2358(0x7),'uOqmh':_0x2358(0x8),'MAtdO':_0x2358(0x9),'hDwua':_0x2358(0xa),'ZTshO':function(_0x5afd3c,_0x156827){return _0x5afd3c-_0x156827;},'oMVNq':_0x2358(0xb),'zmamL':'â
\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','yUlVQ':'đ\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:','DXHxS':_0x2358(0xc),'fhQaD':_0x2358(0xd),'TODQi':_0x2358(0xe),'dDMrU':_0x2358(0xf),'YEYDV':'FmrIF','smQwn':_0x2358(0x10),'TsFel':_0x2358(0x11),'ISDSj':_0x2358(0x12),'ewXWh':'â ī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','mmenk':function(_0x1f3cd4,_0x438727){return _0x1f3cd4===_0x438727;},'UyKeF':function(_0x56708d,_0x4c17a5){return _0x56708d===_0x4c17a5;},'XAyHM':function(_0x2116b7,_0x5eb3c9){return _0x2116b7===_0x5eb3c9;},'WcpWq':function(_0x255159,_0x554e3d){return _0x255159===_0x554e3d;},'CKAKL':function(_0x5967dd,_0x197350){return _0x5967dd!==_0x197350;},'sSngt':_0x2358(0x13),'bCmRl':_0x2358(0x14)},_0x15f676=async(_0x4c6f03,_0x162095)=>{const _0x5d903e={'orKEL':_0x5156ad[_0x2358(0x15)],'JANKi':function(_0x32a913,_0x2848fa){return _0x5156ad[_0x2358(0x16)](_0x32a913,_0x2848fa);},'SoyXN':_0x5156ad[_0x2358(0x17)],'nMBan':_0x5156ad['xJsWk'],'YBgjw':'Export\x20Error','iOVeX':_0x5156ad['uvyOg']};console[_0x2358(0x18)](_0x5156ad[_0x2358(0x19)]),console[_0x2358(0x18)](_0x5156ad[_0x2358(0x1a)],_0x4c6f03),console[_0x2358(0x18)](_0x5156ad[_0x2358(0x1b)],_0x162095[_0x2358(0x1c)]);if(!_0x4c6f03)return console[_0x2358(0x1d)](_0x5156ad[_0x2358(0x1e)]),_reactNative[_0x2358(0x1f)]['alert'](_0x5156ad[_0x2358(0x20)],_0x5156ad['ROcFo'],[{'text':'OK','style':_0x5156ad['Orodf']}]),![];if(!_0x162095||_0x5156ad[_0x2358(0x21)](_0x162095[_0x2358(0x1c)],0x0))return console[_0x2358(0x18)](_0x5156ad['YisFc']),!![];const _0x2da9de=_0x162095[_0x2358(0x22)](_0x4741f6=>{const _0x121697={'TOPSO':_0x5d903e[_0x2358(0x23)]},_0xc1a6ab=_0x4741f6[_0x2358(0x24)]&&_0x4741f6[_0x2358(0x25)]&&Array[_0x2358(0x26)](_0x4741f6[_0x2358(0x27)])&&_0x5d903e[_0x2358(0x28)](_0x4741f6['user_messages'][_0x2358(0x1c)],0x0);return!_0xc1a6ab&&(_0x5d903e[_0x2358(0x29)]!==_0x5d903e[_0x2358(0x29)]?_0x4a45e7['warn'](_0x121697[_0x2358(0x2a)],_0x5606f0):console['warn'](_0x5d903e[_0x2358(0x23)],_0x4741f6)),_0xc1a6ab;});if(_0x5156ad[_0x2358(0x21)](_0x2da9de[_0x2358(0x1c)],0x0))return console[_0x2358(0x1d)](_0x5156ad['uOqmh']),_reactNative[_0x2358(0x1f)][_0x2358(0x2b)](_0x5156ad['MAtdO'],_0x5156ad['hDwua'],[{'text':'OK','style':_0x5156ad['Orodf']}]),![];_0x2da9de[_0x2358(0x1c)]<_0x162095[_0x2358(0x1c)]&&console['warn'](_0x2358(0x2c)+_0x5156ad['ZTshO'](_0x162095[_0x2358(0x1c)],_0x2da9de[_0x2358(0x1c)])+_0x2358(0x2d));try{console[_0x2358(0x18)](_0x5156ad['oMVNq']);const _0x4db094=await(0x0,_chatGPTConversationService['storeChatGPTConversations'])(_0x4c6f03,_0x2da9de);return _0x4db094[_0x2358(0x2e)]?(console[_0x2358(0x18)](_0x5156ad[_0x2358(0x2f)]),console[_0x2358(0x18)](_0x5156ad[_0x2358(0x30)],_0x4db094[_0x2358(0x31)]),!![]):(console[_0x2358(0x1d)](_0x5156ad[_0x2358(0x32)],_0x4db094['error']),_reactNative[_0x2358(0x1f)][_0x2358(0x2b)](_0x5156ad[_0x2358(0x33)],_0x4db094[_0x2358(0x1d)]||_0x5156ad[_0x2358(0x34)],[{'text':'OK','style':_0x2358(0x6)}]),![]);}catch(_0x10144a){return _0x5156ad[_0x2358(0x35)]!==_0x5156ad['YEYDV']?(console[_0x2358(0x1d)](_0x5156ad['xJsWk'],_0x10144a),_reactNative['Alert'][_0x2358(0x2b)](_0x5156ad[_0x2358(0x36)],_0x5156ad[_0x2358(0x37)],[{'text':'OK','style':_0x5156ad[_0x2358(0x38)]}]),![]):(_0x23de00[_0x2358(0x1d)](_0x5d903e['nMBan'],_0x325a91),_0x5b3a0a[_0x2358(0x1f)][_0x2358(0x2b)](_0x5d903e[_0x2358(0x39)],_0x5d903e[_0x2358(0x3a)],[{'text':'OK','style':_0x2358(0x6)}]),![]);}},_0x43a2c8=async _0x132ede=>{const _0x4d362f={'oCRcZ':_0x2358(0x3b)};var _0x583ad2,_0x38c1b2,_0x343bd0;console['log'](_0x5156ad[_0x2358(0x3c)]);if(!_0x132ede)return _0x5156ad['AUodm'](_0x2358(0x3d),_0x5156ad[_0x2358(0x3e)])?(_0x5a6982['log']('â
\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully'),_0x1e2c35[_0x2358(0x18)](_0x5156ad['yUlVQ'],_0x16dcc1['data']),!![]):(console[_0x2358(0x3f)](_0x5156ad[_0x2358(0x40)]),![]);const _0x3de17f=(_0x5156ad[_0x2358(0x41)](_0x132ede,null)||_0x5156ad[_0x2358(0x41)](_0x132ede,void 0x0)||_0x5156ad[_0x2358(0x42)](_0x583ad2=_0x132ede[_0x2358(0x43)],null)||_0x5156ad[_0x2358(0x21)](_0x583ad2,void 0x0)?void 0x0:_0x583ad2[_0x2358(0x1c)])||0x0,_0x3a4dc0=(_0x5156ad[_0x2358(0x21)](_0x132ede,null)||_0x5156ad[_0x2358(0x41)](_0x132ede,void 0x0)||_0x5156ad[_0x2358(0x44)](_0x38c1b2=_0x132ede[_0x2358(0x45)],null)||_0x5156ad[_0x2358(0x21)](_0x38c1b2,void 0x0)?void 0x0:_0x38c1b2['length'])||0x0,_0x12b179=(_0x5156ad['UyKeF'](_0x132ede,null)||_0x132ede===void 0x0||_0x5156ad[_0x2358(0x42)](_0x343bd0=_0x132ede[_0x2358(0x46)],null)||_0x343bd0===void 0x0?void 0x0:_0x343bd0['length'])||0x0;console['log'](_0x2358(0x47)+_0x3de17f+_0x2358(0x48)+_0x3a4dc0+'\x20memory\x20entries,\x20'+_0x12b179+_0x2358(0x49));if(_0x3de17f===0x0&&_0x5156ad[_0x2358(0x4a)](_0x3a4dc0,0x0)&&_0x5156ad['WcpWq'](_0x12b179,0x0))return console[_0x2358(0x18)](_0x2358(0x4b)),!![];try{console[_0x2358(0x18)](_0x2358(0x4c));const _0x6b59da=await(0x0,_chatGPTConversationService[_0x2358(0x4d)])(_0x132ede);if(_0x6b59da['success']){var _0x36e7ea;return console[_0x2358(0x18)](_0x2358(0x4e)),_0x5156ad[_0x2358(0x4f)](_0x36e7ea=_0x6b59da[_0x2358(0x31)],null)&&_0x36e7ea!==void 0x0&&_0x36e7ea['memoriesCount']&&console[_0x2358(0x18)]('đ\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20'+_0x6b59da[_0x2358(0x31)][_0x2358(0x50)]+'\x20memories'),!![];}else return console[_0x2358(0x1d)](_0x5156ad[_0x2358(0x51)],_0x6b59da[_0x2358(0x1d)]),![];}catch(_0x1145d0){return _0x5156ad[_0x2358(0x52)]==='cHjVm'?(_0x56bded[_0x2358(0x1d)](_0x4d362f['oCRcZ'],_0x22a10d),![]):(console[_0x2358(0x1d)](_0x2358(0x3b),_0x1145d0),![]);}};return{'initiateConversationExport':_0x15f676,'storeMemories':_0x43a2c8};};exports[_0x2358(0x53)]=useChatGPTConversationExtractor;
|
|
8
|
+
function _0x25d3(_0x2851f7,_0x25d3ba){_0x2851f7=_0x2851f7-0x0;const _0x5bff6e=_0x2851();let _0x1ea752=_0x5bff6e[_0x2851f7];return _0x1ea752;}Object[_0x25d3(0x0)](exports,_0x25d3(0x1),{'value':!![]}),exports[_0x25d3(0x2)]=void 0x0;var _chatGPTConversationService=__ONAIROS_REQ_FUNC__(0x0),_reactNative=__ONAIROS_REQ_FUNC__(0x1);const useChatGPTConversationExtractor=()=>{const _0x2bb76a={'WPIMV':_0x25d3(0x3),'VuiCR':function(_0x1030ef,_0x2bf668){return _0x1030ef!==_0x2bf668;},'iUWik':function(_0x577b77,_0x16f9c4){return _0x577b77>_0x16f9c4;},'Oszfw':function(_0x20af93,_0x44fa7c){return _0x20af93===_0x44fa7c;},'kvvWP':_0x25d3(0x4),'Vkklx':_0x25d3(0x5),'dHhIL':_0x25d3(0x6),'kDeZa':_0x25d3(0x7),'IJrYg':_0x25d3(0x8),'teaPZ':_0x25d3(0x9),'XmWCj':_0x25d3(0xa),'gitZS':_0x25d3(0xb),'eGdlS':_0x25d3(0xc),'MEGxS':_0x25d3(0xd),'Fvbyg':_0x25d3(0xe),'LsXtx':_0x25d3(0xf),'XvqnM':'â\x20[CHATGPT_EXTRACTOR]\x20No\x20valid\x20conversations\x20after\x20filtering','iHoRO':'Data\x20Error','nXQKT':'No\x20valid\x20conversations\x20found\x20to\x20export.','mWiuE':function(_0x365baa,_0x37cf4d){return _0x365baa<_0x37cf4d;},'hTEGM':'TrVvl','qxwdW':function(_0x57064b,_0x3462c2){return _0x57064b-_0x3462c2;},'qTWdu':_0x25d3(0x10),'TCnkW':_0x25d3(0x11),'drnak':_0x25d3(0x12),'fYAJT':function(_0xcea031,_0xe0f5a1){return _0xcea031!==_0xe0f5a1;},'gbpDq':_0x25d3(0x13),'PAlaR':'â\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','kCKfI':_0x25d3(0x14),'ieDIh':_0x25d3(0x15),'bIkrS':function(_0x203f66,_0x182f2b){return _0x203f66===_0x182f2b;},'eQxOm':function(_0x112582,_0x339eba){return _0x112582===_0x339eba;},'AlouY':function(_0x1da38b,_0x4c2d6a){return _0x1da38b===_0x4c2d6a;},'jsurX':_0x25d3(0x16),'AySHQ':_0x25d3(0x17),'HBhSa':'đĄ\x20[CHATGPT_EXTRACTOR]\x20Sending\x20memories\x20to\x20backend...','CMRvi':_0x25d3(0x18),'MVqvr':function(_0x5c5e78,_0xc48973){return _0x5c5e78!==_0xc48973;},'WFHIV':_0x25d3(0x19),'LEUEh':_0x25d3(0x1a)},_0x10c52d=async(_0x5669c8,_0xcec223)=>{const _0x3d672c={'OQvyU':function(_0x411363,_0xc40532){return _0x2bb76a[_0x25d3(0x1b)](_0x411363,_0xc40532);},'BGSNm':function(_0x3685f6,_0x2ddee8){return _0x2bb76a[_0x25d3(0x1c)](_0x3685f6,_0x2ddee8);},'KXhGX':function(_0x28ca89,_0xaced8a){return _0x2bb76a[_0x25d3(0x1d)](_0x28ca89,_0xaced8a);},'Jvuut':_0x2bb76a['kvvWP'],'noFcn':_0x2bb76a[_0x25d3(0x1e)],'AUXWm':'â\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','mjeJr':'â\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','KOUru':_0x2bb76a[_0x25d3(0x1f)],'ffwkH':_0x2bb76a[_0x25d3(0x20)],'Zpmmk':_0x2bb76a[_0x25d3(0x21)]};console[_0x25d3(0x22)](_0x2bb76a[_0x25d3(0x23)]),console[_0x25d3(0x22)](_0x2bb76a[_0x25d3(0x24)],_0x5669c8),console['log'](_0x2bb76a[_0x25d3(0x25)],_0xcec223[_0x25d3(0x26)]);if(!_0x5669c8)return console[_0x25d3(0x27)](_0x2bb76a[_0x25d3(0x28)]),_reactNative['Alert']['alert'](_0x2bb76a[_0x25d3(0x29)],_0x2bb76a[_0x25d3(0x2a)],[{'text':'OK','style':_0x2bb76a[_0x25d3(0x21)]}]),![];if(!_0xcec223||_0x2bb76a[_0x25d3(0x1d)](_0xcec223['length'],0x0))return _0x2bb76a[_0x25d3(0x2b)]===_0x25d3(0x2c)?(_0x387dc5['error'](_0x25d3(0x2d),_0x5eedd2),_0x510fc2[_0x25d3(0x2e)][_0x25d3(0x2f)](_0x25d3(0x14),_0x2bb76a[_0x25d3(0x30)],[{'text':'OK','style':'default'}]),![]):(console['log'](_0x25d3(0x31)),!![]);const _0x3d9ba6=_0xcec223[_0x25d3(0x32)](_0x1afebd=>{const _0x5c5d0f={'yYLRW':_0x25d3(0x18),'kZhnR':function(_0x1077af,_0x3c5dc7){return _0x3d672c[_0x25d3(0x33)](_0x1077af,_0x3c5dc7);}},_0x48251a=_0x1afebd[_0x25d3(0x34)]&&_0x1afebd['title']&&Array[_0x25d3(0x35)](_0x1afebd['user_messages'])&&_0x3d672c['BGSNm'](_0x1afebd[_0x25d3(0x36)][_0x25d3(0x26)],0x0);if(!_0x48251a){if(_0x3d672c[_0x25d3(0x37)](_0x3d672c[_0x25d3(0x38)],_0x25d3(0x4)))console['warn'](_0x3d672c[_0x25d3(0x39)],_0x1afebd);else{var _0x30b4fa;return _0x2b95f6[_0x25d3(0x22)](_0x5c5d0f['yYLRW']),(_0x30b4fa=_0xa856a4['data'])!==null&&_0x5c5d0f[_0x25d3(0x3a)](_0x30b4fa,void 0x0)&&_0x30b4fa['memoriesCount']&&_0x2ad367[_0x25d3(0x22)](_0x25d3(0x3b)+_0x28bf88[_0x25d3(0x3c)][_0x25d3(0x3d)]+_0x25d3(0x3e)),!![];}}return _0x48251a;});if(_0x2bb76a[_0x25d3(0x1d)](_0x3d9ba6[_0x25d3(0x26)],0x0))return console['error'](_0x2bb76a[_0x25d3(0x3f)]),_reactNative[_0x25d3(0x2e)][_0x25d3(0x2f)](_0x2bb76a[_0x25d3(0x40)],_0x2bb76a[_0x25d3(0x41)],[{'text':'OK','style':_0x2bb76a[_0x25d3(0x21)]}]),![];if(_0x2bb76a[_0x25d3(0x42)](_0x3d9ba6['length'],_0xcec223[_0x25d3(0x26)])){if(_0x2bb76a['hTEGM']===_0x2bb76a[_0x25d3(0x43)])console[_0x25d3(0x44)](_0x25d3(0x45)+_0x2bb76a[_0x25d3(0x46)](_0xcec223[_0x25d3(0x26)],_0x3d9ba6[_0x25d3(0x26)])+_0x25d3(0x47));else return _0x37d063[_0x25d3(0x27)](_0x3d672c[_0x25d3(0x48)],_0x5f72d),![];}try{console[_0x25d3(0x22)](_0x2bb76a[_0x25d3(0x49)]);const _0x3b9bf5=await(0x0,_chatGPTConversationService['storeChatGPTConversations'])(_0x5669c8,_0x3d9ba6);return _0x3b9bf5[_0x25d3(0x4a)]?(console[_0x25d3(0x22)](_0x2bb76a['TCnkW']),console[_0x25d3(0x22)]('đ\x20[CHATGPT_EXTRACTOR]\x20Backend\x20response:',_0x3b9bf5[_0x25d3(0x3c)]),!![]):(console['error'](_0x2bb76a[_0x25d3(0x4b)],_0x3b9bf5[_0x25d3(0x27)]),_reactNative[_0x25d3(0x2e)][_0x25d3(0x2f)](_0x2bb76a['dHhIL'],_0x3b9bf5[_0x25d3(0x27)]||_0x25d3(0x7),[{'text':'OK','style':_0x2bb76a[_0x25d3(0x21)]}]),![]);}catch(_0x3f3caa){return _0x2bb76a['fYAJT'](_0x2bb76a[_0x25d3(0x4c)],_0x2bb76a[_0x25d3(0x4c)])?(_0x413cfa['error'](_0x3d672c[_0x25d3(0x4d)],_0x345309['error']),_0x37742d[_0x25d3(0x2e)][_0x25d3(0x2f)](_0x3d672c[_0x25d3(0x4e)],_0x9d298a[_0x25d3(0x27)]||_0x3d672c['ffwkH'],[{'text':'OK','style':_0x3d672c[_0x25d3(0x4f)]}]),![]):(console['error'](_0x2bb76a['PAlaR'],_0x3f3caa),_reactNative[_0x25d3(0x2e)][_0x25d3(0x2f)](_0x2bb76a['kCKfI'],_0x2bb76a['WPIMV'],[{'text':'OK','style':_0x2bb76a[_0x25d3(0x21)]}]),![]);}},_0x588fb6=async _0x2492ac=>{const _0x59bd4b={'YSzzD':'âšī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success'};var _0x58cefd,_0x4d7af5,_0x497490;console['log'](_0x25d3(0x50));if(!_0x2492ac)return console[_0x25d3(0x44)](_0x2bb76a[_0x25d3(0x51)]),![];const _0x4d17de=(_0x2492ac===null||_0x2bb76a[_0x25d3(0x1d)](_0x2492ac,void 0x0)||(_0x58cefd=_0x2492ac[_0x25d3(0x52)])===null||_0x58cefd===void 0x0?void 0x0:_0x58cefd[_0x25d3(0x26)])||0x0,_0x32cf61=(_0x2bb76a[_0x25d3(0x1d)](_0x2492ac,null)||_0x2bb76a[_0x25d3(0x53)](_0x2492ac,void 0x0)||(_0x4d7af5=_0x2492ac['memory_entries'])===null||_0x2bb76a[_0x25d3(0x54)](_0x4d7af5,void 0x0)?void 0x0:_0x4d7af5['length'])||0x0,_0x50cceb=(_0x2bb76a[_0x25d3(0x54)](_0x2492ac,null)||_0x2bb76a[_0x25d3(0x1d)](_0x2492ac,void 0x0)||(_0x497490=_0x2492ac[_0x25d3(0x55)])===null||_0x2bb76a[_0x25d3(0x1d)](_0x497490,void 0x0)?void 0x0:_0x497490['length'])||0x0;console[_0x25d3(0x22)]('đ\x20[CHATGPT_EXTRACTOR]\x20Found\x20'+_0x4d17de+_0x25d3(0x56)+_0x32cf61+'\x20memory\x20entries,\x20'+_0x50cceb+'\x20memories');if(_0x2bb76a[_0x25d3(0x57)](_0x4d17de,0x0)&&_0x32cf61===0x0&&_0x2bb76a[_0x25d3(0x53)](_0x50cceb,0x0))return console[_0x25d3(0x22)](_0x2bb76a['jsurX']),!![];try{if(_0x2bb76a['AlouY'](_0x2bb76a[_0x25d3(0x58)],_0x2bb76a['AySHQ'])){console['log'](_0x2bb76a[_0x25d3(0x59)]);const _0x58725b=await(0x0,_chatGPTConversationService['storeChatGPTMemories'])(_0x2492ac);if(_0x58725b[_0x25d3(0x4a)]){var _0x140d86;return console[_0x25d3(0x22)](_0x2bb76a[_0x25d3(0x5a)]),_0x2bb76a['MVqvr'](_0x140d86=_0x58725b[_0x25d3(0x3c)],null)&&_0x140d86!==void 0x0&&_0x140d86['memoriesCount']&&console[_0x25d3(0x22)](_0x25d3(0x3b)+_0x58725b[_0x25d3(0x3c)][_0x25d3(0x3d)]+_0x25d3(0x3e)),!![];}else return console[_0x25d3(0x27)](_0x2bb76a['WFHIV'],_0x58725b[_0x25d3(0x27)]),![];}else return _0x1d6a9a[_0x25d3(0x22)](_0x59bd4b[_0x25d3(0x5b)]),!![];}catch(_0x29150d){return console[_0x25d3(0x27)](_0x2bb76a['LEUEh'],_0x29150d),![];}};return{'initiateConversationExport':_0x10c52d,'storeMemories':_0x588fb6};};exports[_0x25d3(0x2)]=useChatGPTConversationExtractor;function _0x2851(){const _0x532f5c=['defineProperty','__esModule','useChatGPTConversationExtractor','Failed\x20to\x20connect\x20to\x20the\x20conversation\x20storage\x20service.\x20Please\x20check\x20your\x20network\x20connection.','tXaNA','â ī¸\x20[CHATGPT_EXTRACTOR]\x20Invalid\x20conversation:','Export\x20Failed','An\x20unknown\x20error\x20occurred\x20during\x20conversation\x20storage.','default','đ\x20[CHATGPT_EXTRACTOR]\x20Initiating\x20conversation\x20export','đ¤\x20[CHATGPT_EXTRACTOR]\x20Username:','đ\x20[CHATGPT_EXTRACTOR]\x20Conversations\x20to\x20send:','â\x20[CHATGPT_EXTRACTOR]\x20Username\x20is\x20required','Error','Username\x20is\x20required\x20to\x20export\x20ChatGPT\x20conversations.','AIvkF','đĄ\x20[CHATGPT_EXTRACTOR]\x20Sending\x20to\x20backend...','â
\x20[CHATGPT_EXTRACTOR]\x20Export\x20completed\x20successfully','â\x20[CHATGPT_EXTRACTOR]\x20Backend\x20storage\x20failed:','JvhOf','Export\x20Error','â ī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20data\x20provided','âšī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20memories\x20to\x20store\x20-\x20treating\x20as\x20success','OgnaT','â
\x20[CHATGPT_EXTRACTOR]\x20Memories\x20stored\x20successfully','â\x20[CHATGPT_EXTRACTOR]\x20Memories\x20storage\x20failed:','â\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20storing\x20memories:','VuiCR','iUWik','Oszfw','Vkklx','dHhIL','kDeZa','IJrYg','log','teaPZ','XmWCj','gitZS','length','error','eGdlS','MEGxS','Fvbyg','LsXtx','ZyvuX','â\x20[CHATGPT_EXTRACTOR]\x20Unexpected\x20error\x20during\x20export:','Alert','alert','WPIMV','âšī¸\x20[CHATGPT_EXTRACTOR]\x20No\x20conversations\x20to\x20export\x20-\x20treating\x20as\x20success\x20(connected)','filter','OQvyU','conversation_id','isArray','user_messages','KXhGX','Jvuut','noFcn','kZhnR','đ\x20[CHATGPT_EXTRACTOR]\x20Backend\x20stored\x20','data','memoriesCount','\x20memories','XvqnM','iHoRO','nXQKT','mWiuE','hTEGM','warn','â ī¸\x20[CHATGPT_EXTRACTOR]\x20Filtered\x20out\x20','qxwdW','\x20invalid\x20conversations','AUXWm','qTWdu','success','drnak','gbpDq','mjeJr','KOUru','Zpmmk','đ§ \x20[CHATGPT_EXTRACTOR]\x20Storing\x20ChatGPT\x20memories...','ieDIh','items','bIkrS','eQxOm','memories','\x20memory\x20items,\x20','AlouY','AySHQ','HBhSa','CMRvi','YSzzD'];_0x2851=function(){return _0x532f5c;};return _0x2851();}
|
|
@@ -6,4 +6,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
6
6
|
require("react-native")
|
|
7
7
|
];
|
|
8
8
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
9
|
-
Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['storeChatGPTMemories']=exports[_0x1f32(0x0)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x1451ab){return _0x1451ab&&_0x1451ab['__esModule']?_0x1451ab:{'default':_0x1451ab};}const storeChatGPTConversations=async(_0x36bb45,_0x22469b)=>{const _0x291472={'OxmCp':_0x1f32(0x1),'kTkaL':function(_0x19edd3,_0x33eec6){return _0x19edd3+_0x33eec6;},'yKVIj':function(_0x3e1385,_0x41608d){return _0x3e1385+_0x41608d;},'tVMHL':_0x1f32(0x2),'HXavk':_0x1f32(0x3),'Zcybs':_0x1f32(0x4),'WRhQr':_0x1f32(0x5),'AJQCi':_0x1f32(0x6),'tERpl':function(_0x9b6e21,_0x3a0253){return _0x9b6e21||_0x3a0253;},'tOvJw':function(_0x42b6fa,_0x454a46){return _0x42b6fa===_0x454a46;},'uTUnw':_0x1f32(0x7),'DscYk':_0x1f32(0x8),'JDlXZ':_0x1f32(0x9),'OFcdg':_0x1f32(0xa),'lWAak':_0x1f32(0xb),'zKQVY':function(_0x452bc1,_0xe29965){return _0x452bc1!==_0xe29965;},'HXErg':_0x1f32(0xc),'XWSBi':_0x1f32(0xd),'uJHNQ':_0x1f32(0xe),'WSuxY':_0x1f32(0xf),'hzcdi':_0x1f32(0x10),'cMthb':_0x1f32(0x11),'rKwHR':function(_0x3e0495,_0xe16451){return _0x3e0495<_0xe16451;},'xUSuu':function(_0x40b140,_0x53efe2){return _0x40b140/_0x53efe2;},'XiGgZ':_0x1f32(0x12),'NTWNc':function(_0x688341,_0x1799e6,_0x559e82){return _0x688341(_0x1799e6,_0x559e82);},'LAlDl':_0x1f32(0x13),'anqUX':function(_0x1a31f5,_0x3787ba){return _0x1a31f5<_0x3787ba;},'NAqSU':function(_0x27d392,_0x394abc){return _0x27d392-_0x394abc;},'vVPMX':function(_0x2c29bf,_0x45fbc4){return _0x2c29bf>_0x45fbc4;},'DcZbv':'nUloz','kFWdS':'fTBKY','prDEq':_0x1f32(0x14),'YcVpg':_0x1f32(0x15),'VfxwI':_0x1f32(0x16)};console[_0x1f32(0x17)](_0x291472[_0x1f32(0x18)],_0x36bb45),console['log'](_0x291472[_0x1f32(0x19)],_0x22469b[_0x1f32(0x1a)]),console[_0x1f32(0x17)](_0x291472['AJQCi'],_0x22469b[_0x1f32(0x1b)]((_0x32dd6b,_0x585887)=>_0x32dd6b+_0x585887[_0x1f32(0x1c)][_0x1f32(0x1a)],0x0));if(_0x291472[_0x1f32(0x1d)](!_0x36bb45,!_0x22469b)||_0x291472[_0x1f32(0x1e)](_0x22469b[_0x1f32(0x1a)],0x0))return _0x291472[_0x1f32(0x1f)]!==_0x291472[_0x1f32(0x20)]?(console[_0x1f32(0x21)](_0x291472[_0x1f32(0x22)]),{'success':![],'error':_0x291472['OxmCp']}):(_0x1b93e5[_0x1f32(0x21)](_0x1f32(0x9)),{'success':![],'error':_0x291472[_0x1f32(0x23)]});try{const _0x54ac9f=await _asyncStorage[_0x1f32(0x24)][_0x1f32(0x25)](_0x1f32(0x26))||await _asyncStorage[_0x1f32(0x24)][_0x1f32(0x25)](_0x291472[_0x1f32(0x27)])||await _asyncStorage[_0x1f32(0x24)][_0x1f32(0x25)](_0x291472['lWAak']);if(!_0x54ac9f){if(_0x291472[_0x1f32(0x28)](_0x1f32(0x29),_0x1f32(0x29)))_0x10cbe1[_0x1f32(0x17)](_0x1f32(0x2a)+_0x291472[_0x1f32(0x2b)](_0x34bb98,0x1)+'/'+_0x5b6bdf['length']),_0x530f35++;else return console[_0x1f32(0x21)](_0x291472[_0x1f32(0x2c)]),{'success':![],'error':_0x291472['XWSBi']};}console[_0x1f32(0x17)](_0x291472[_0x1f32(0x2d)]);const _0x559353={'platform':_reactNative['Platform']['OS'],'appVersion':_0x291472[_0x1f32(0x2e)],'osVersion':_0x291472[_0x1f32(0x1e)](_reactNative['Platform']['OS'],'ios')?_0x1f32(0x2f):_reactNative[_0x1f32(0x30)]['OS'],'deviceModel':_0x291472[_0x1f32(0x1e)](_reactNative[_0x1f32(0x30)]['OS'],_0x291472[_0x1f32(0x31)])?_0x291472[_0x1f32(0x32)]:_0x1f32(0x33),'isOfflineSync':![]};let _0x2991eb=0x0,_0x280639=0x0;for(let _0x179910=0x0;_0x291472['rKwHR'](_0x179910,_0x22469b[_0x1f32(0x1a)]);_0x179910++){const _0x39ca30=_0x22469b[_0x179910],_0xc035e=Date[_0x1f32(0x34)](),_0x314dc6=_0x39ca30[_0x1f32(0x1c)][_0x1f32(0x35)]((_0x32d466,_0x4d3ec2)=>({'id':_0x39ca30['conversation_id']+'-msg-'+_0x4d3ec2,'role':'user','content':_0x32d466,'timestamp':new Date(_0xc035e-(_0x39ca30[_0x1f32(0x1c)][_0x1f32(0x1a)]-_0x4d3ec2)*0x3e8)[_0x1f32(0x36)](),'metadata':{}})),_0x43719e={'conversationId':_0x39ca30[_0x1f32(0x37)],'messages':_0x314dc6,'context':{'title':_0x39ca30[_0x1f32(0x38)],'create_time':Math['floor'](_0x291472[_0x1f32(0x39)](_0xc035e,0x3e8)),'update_time':Math['floor'](_0x291472[_0x1f32(0x39)](_0xc035e,0x3e8))},'mobileMetadata':_0x559353},_0x2b1d9e={'platform':_0x291472['XiGgZ'],'conversationData':_0x43719e,'memoryType':'conversation'};console[_0x1f32(0x17)](_0x1f32(0x3a)+(_0x179910+0x1)+'/'+_0x22469b[_0x1f32(0x1a)]+':\x20'+_0x39ca30['title']);try{const _0x21d983=await _0x291472[_0x1f32(0x3b)](fetch,_api[_0x1f32(0x3c)]['BASE_URL']+'/llm-data/store',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x1f32(0x3d)+_0x54ac9f,'User-Agent':_0x1f32(0x3e)+_reactNative[_0x1f32(0x30)]['OS']+')'},'body':JSON['stringify'](_0x2b1d9e)}),_0x57fb26=await _0x21d983[_0x1f32(0x3f)]();_0x21d983['ok']?(console['log'](_0x1f32(0x2a)+_0x291472[_0x1f32(0x40)](_0x179910,0x1)+'/'+_0x22469b[_0x1f32(0x1a)]),_0x2991eb++):_0x291472[_0x1f32(0x41)]!==_0x291472[_0x1f32(0x41)]?(_0x13406c[_0x1f32(0x42)](_0x1f32(0x43)+_0x291472[_0x1f32(0x40)](_0x2172b2,0x1)+':',_0x3f3119),_0x5ae2e5++):(console[_0x1f32(0x42)](_0x1f32(0x44)+_0x291472[_0x1f32(0x2b)](_0x179910,0x1)+'/'+_0x22469b[_0x1f32(0x1a)]+':',_0x57fb26[_0x1f32(0x21)]||_0x21d983[_0x1f32(0x45)]),_0x280639++);}catch(_0xe04ca0){console['warn'](_0x1f32(0x43)+_0x291472['kTkaL'](_0x179910,0x1)+':',_0xe04ca0),_0x280639++;}_0x291472[_0x1f32(0x46)](_0x179910,_0x291472[_0x1f32(0x47)](_0x22469b[_0x1f32(0x1a)],0x1))&&await new Promise(_0x535273=>setTimeout(_0x535273,0x12c));}return console['log'](_0x1f32(0x48)+_0x2991eb+_0x1f32(0x49)+_0x280639+'\x20failed'),_0x291472['vVPMX'](_0x2991eb,0x0)?_0x291472['zKQVY'](_0x291472[_0x1f32(0x4a)],_0x291472[_0x1f32(0x4b)])?{'success':!![],'message':_0x1f32(0x4c)+_0x2991eb+_0x1f32(0x4d)+_0x22469b[_0x1f32(0x1a)]+_0x1f32(0x4e)}:(_0x5c8081[_0x1f32(0x21)](_0x291472[_0x1f32(0x4f)]),{'success':![],'error':_0x1f32(0x50)}):_0x291472[_0x1f32(0x1e)](_0x291472[_0x1f32(0x51)],_0x1f32(0x52))?(_0x2830b0[_0x1f32(0x42)](_0x1f32(0x53)+_0x1c35fc[_0x1f32(0x45)]),_0x1356b9['warn'](_0x1f32(0x54)+(_0x34f12e[_0x1f32(0x21)]||_0x291472[_0x1f32(0x55)])),{'success':![],'error':_0x3ca27e[_0x1f32(0x21)]||'HTTP\x20'+_0x3ffd77[_0x1f32(0x45)]}):{'success':![],'error':'Failed\x20to\x20store\x20conversations\x20('+_0x280639+_0x1f32(0x56)};}catch(_0x58a762){return _0x291472[_0x1f32(0x57)]!==_0x291472[_0x1f32(0x58)]?(console[_0x1f32(0x21)](_0x1f32(0x59),_0x58a762),{'success':![],'error':_0x58a762[_0x1f32(0x5a)]||'Network\x20error.\x20Please\x20check\x20your\x20connection.'}):{'success':![],'error':_0x1f32(0x5b)+_0x3d1650+'\x20errors)'};}};function _0x1f32(_0x4afe15,_0x1f323f){_0x4afe15=_0x4afe15-0x0;const _0x599677=_0x4afe();let _0x52a18b=_0x599677[_0x4afe15];return _0x52a18b;}exports['storeChatGPTConversations']=storeChatGPTConversations;const storeChatGPTMemories=async _0x5c5707=>{const _0x466311={'sgFMr':function(_0x401fc7,_0x308b29){return _0x401fc7+_0x308b29;},'PpzzI':'3|2|0|1|4','BggwZ':function(_0x3980ae,_0x4a0407){return _0x3980ae!==_0x4a0407;},'GgtHu':function(_0x41ccbe,_0x6ca613){return _0x41ccbe!==_0x6ca613;},'anWJg':_0x1f32(0x5c),'ClPGt':_0x1f32(0x5d),'tGPlA':_0x1f32(0x5e),'EekNf':_0x1f32(0x59),'WukZy':_0x1f32(0x5f),'jwyoq':function(_0x317b1b,_0x1f7376){return _0x317b1b===_0x1f7376;},'dZmlu':function(_0x254914,_0x57f30f){return _0x254914===_0x57f30f;},'pmzGG':function(_0x211dce,_0x3e0444){return _0x211dce===_0x3e0444;},'UEoxc':function(_0x2c386d,_0x5131b7){return _0x2c386d===_0x5131b7;},'Ewqox':function(_0x4b64de,_0x29f693){return _0x4b64de!==_0x29f693;},'nAFch':_0x1f32(0x60),'cNddh':_0x1f32(0x61),'sAfkc':'Invalid\x20input:\x20memoriesData\x20missing.','zhbjD':_0x1f32(0x26),'LsbgD':_0x1f32(0xa),'oqhMa':_0x1f32(0xd),'EMhGc':'đ\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','nlNTA':'mobile-chatgpt','iAAIJ':function(_0x273fa4,_0x4cb9e3){return _0x273fa4||_0x4cb9e3;},'mamEi':function(_0x58dd35,_0x15a015,_0x3077ad){return _0x58dd35(_0x15a015,_0x3077ad);},'uWImh':function(_0x19a04b,_0x391b22){return _0x19a04b===_0x391b22;},'YnIec':_0x1f32(0x62),'lCEGO':_0x1f32(0x63),'sXhUo':_0x1f32(0x64),'cWDoc':'Unknown\x20error','ZKSTV':_0x1f32(0x65),'DqBpG':_0x1f32(0x66)};var _0x4a09ed,_0xf36c50,_0x169c61;console[_0x1f32(0x17)](_0x466311[_0x1f32(0x67)]);const _0x27c695=(_0x466311['jwyoq'](_0x5c5707,null)||_0x466311[_0x1f32(0x68)](_0x5c5707,void 0x0)||_0x466311[_0x1f32(0x68)](_0x4a09ed=_0x5c5707[_0x1f32(0x69)],null)||_0x466311['jwyoq'](_0x4a09ed,void 0x0)?void 0x0:_0x4a09ed[_0x1f32(0x1a)])||0x0,_0x286f92=(_0x5c5707===null||_0x466311['dZmlu'](_0x5c5707,void 0x0)||_0x466311[_0x1f32(0x68)](_0xf36c50=_0x5c5707[_0x1f32(0x6a)],null)||_0xf36c50===void 0x0?void 0x0:_0xf36c50['length'])||0x0,_0x40936d=(_0x466311[_0x1f32(0x6b)](_0x5c5707,null)||_0x466311['UEoxc'](_0x5c5707,void 0x0)||_0x466311[_0x1f32(0x68)](_0x169c61=_0x5c5707[_0x1f32(0x6c)],null)||_0x466311[_0x1f32(0x6d)](_0x169c61,void 0x0)?void 0x0:_0x169c61['length'])||0x0,_0x4787a3=_0x466311[_0x1f32(0x6e)](_0x27c695+_0x286f92,_0x40936d);console['log']('đ\x20[CHATGPT_SERVICE]\x20Found\x20'+_0x27c695+_0x1f32(0x6f)+_0x286f92+_0x1f32(0x70)+_0x40936d+_0x1f32(0x71)+_0x4787a3+')');if(!_0x5c5707){if(_0x466311[_0x1f32(0x72)](_0x466311['nAFch'],_0x466311[_0x1f32(0x73)]))return console[_0x1f32(0x21)](_0x1f32(0x2)),{'success':![],'error':_0x466311[_0x1f32(0x74)]};else _0x5cc117[_0x1f32(0x42)](_0x1f32(0x44)+_0x466311[_0x1f32(0x6e)](_0x212785,0x1)+'/'+_0x1f9cb5['length']+':',_0x2240ab['error']||_0xd7aebe[_0x1f32(0x45)]),_0x44d51f++;}try{const _0x4ab832=await _asyncStorage[_0x1f32(0x24)][_0x1f32(0x25)](_0x466311[_0x1f32(0x75)])||await _asyncStorage[_0x1f32(0x24)][_0x1f32(0x25)](_0x466311[_0x1f32(0x76)])||await _asyncStorage[_0x1f32(0x24)]['getItem'](_0x1f32(0xb));if(!_0x4ab832){if(_0x466311[_0x1f32(0x6b)]('JBGEC',_0x1f32(0x77)))return console[_0x1f32(0x21)](_0x1f32(0xc)),{'success':![],'error':_0x466311['oqhMa']};else _0xb4c601[_0x1f32(0x17)](_0x1f32(0x78)+_0x58f7eb[_0x1f32(0x79)]['memoriesCount']+_0x1f32(0x7a));}console[_0x1f32(0x17)](_0x466311[_0x1f32(0x7b)]);const _0x580c26=_0x1f32(0xf),_0x3390d4={'platform':_0x466311['nlNTA'],'memoriesData':_0x5c5707,'metadata':{'source':'react-native-sdk','appVersion':_0x580c26,'fetchedAt':new Date()[_0x1f32(0x36)]()}},_0x5d2221=Object[_0x1f32(0x7c)](_0x466311[_0x1f32(0x7d)](_0x5c5707,{}));console['log'](_0x1f32(0x7e)),console[_0x1f32(0x17)]('đ\x20[CHATGPT_SERVICE]\x20URL:\x20'+_api[_0x1f32(0x3c)][_0x1f32(0x7f)]+'/llm-data/store-memories'),console['log'](_0x1f32(0x80)+_0x5d2221['join'](',\x20')),console[_0x1f32(0x17)]('đĻ\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)');const _0x3003b9=await _0x466311[_0x1f32(0x81)](fetch,_api[_0x1f32(0x3c)][_0x1f32(0x7f)]+_0x1f32(0x82),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x1f32(0x3d)+_0x4ab832,'User-Agent':'OnairosSDK/'+_0x580c26+'\x20('+_reactNative[_0x1f32(0x30)]['OS']+')'},'body':JSON[_0x1f32(0x83)](_0x3390d4)}),_0x348ffa=await _0x3003b9[_0x1f32(0x3f)]();if(_0x3003b9['ok']){if(_0x466311[_0x1f32(0x84)](_0x466311[_0x1f32(0x85)],_0x466311[_0x1f32(0x85)])){var _0x16d889;console['log'](_0x466311[_0x1f32(0x86)]);if(_0x348ffa[_0x1f32(0x5a)]){if(_0x466311[_0x1f32(0x87)](_0x1f32(0x63),_0x466311[_0x1f32(0x88)])){const _0x48673b=_0x466311[_0x1f32(0x89)][_0x1f32(0x8a)]('|');let _0x1221cc=0x0;while(!![]){switch(_0x48673b[_0x1221cc++]){case'0':_0x192d06[_0x1f32(0x5a)]&&_0x3f1926[_0x1f32(0x17)](_0x1f32(0x8b)+_0x55b938[_0x1f32(0x5a)]);continue;case'1':_0x466311['BggwZ'](_0x2e1d55=_0x46ae2a[_0x1f32(0x79)],null)&&_0x466311[_0x1f32(0x8c)](_0x2e1d55,void 0x0)&&_0x2e1d55[_0x1f32(0x8d)]&&_0x3cf232['log'](_0x1f32(0x78)+_0x1dbb2a[_0x1f32(0x79)]['memoriesCount']+'\x20memory\x20items\x20in\x20database');continue;case'2':_0x77897f[_0x1f32(0x17)](_0x466311[_0x1f32(0x86)]);continue;case'3':var _0x2e1d55;continue;case'4':return{'success':!![],'message':_0x3ed2b5['message']||'Memories\x20stored\x20successfully','data':_0x594495[_0x1f32(0x79)]};}break;}}else console[_0x1f32(0x17)](_0x1f32(0x8b)+_0x348ffa['message']);}return(_0x16d889=_0x348ffa['data'])!==null&&_0x466311['Ewqox'](_0x16d889,void 0x0)&&_0x16d889[_0x1f32(0x8d)]&&console[_0x1f32(0x17)](_0x1f32(0x78)+_0x348ffa[_0x1f32(0x79)][_0x1f32(0x8d)]+_0x1f32(0x7a)),{'success':!![],'message':_0x348ffa[_0x1f32(0x5a)]||_0x466311['sXhUo'],'data':_0x348ffa[_0x1f32(0x79)]};}else return _0x97127[_0x1f32(0x21)](_0x466311['ClPGt'],_0x39ccb0),{'success':![],'error':_0x1edf3b[_0x1f32(0x5a)]||_0x466311[_0x1f32(0x8e)]};}else return console['warn'](_0x1f32(0x53)+_0x3003b9[_0x1f32(0x45)]),console['warn'](_0x1f32(0x54)+(_0x348ffa[_0x1f32(0x21)]||_0x466311[_0x1f32(0x8f)])),{'success':![],'error':_0x348ffa['error']||_0x1f32(0x90)+_0x3003b9['status']};}catch(_0x38f7){return _0x466311[_0x1f32(0x91)]===_0x466311['DqBpG']?(_0x239fb2['error'](_0x466311['EekNf'],_0x342a6c),{'success':![],'error':_0x1dc430[_0x1f32(0x5a)]||_0x466311[_0x1f32(0x8e)]}):(console['error'](_0x466311[_0x1f32(0x92)],_0x38f7),{'success':![],'error':_0x38f7['message']||_0x466311[_0x1f32(0x8e)]});}};exports[_0x1f32(0x93)]=storeChatGPTMemories;function _0x4afe(){const _0x219bd3=['storeChatGPTConversations','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','â\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Unknown\x20error','đ\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','đ\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:','đ\x20[CHATGPT_SERVICE]\x20Total\x20messages:','ptTmx','IQzNA','â\x20[CHATGPT_SERVICE]\x20Invalid\x20input','enoch_token','auth_token','â\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','đ\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','1.0.0','ios','iPhone','mobile-chatgpt','agvSq','oSmNC','tTGoB','xkxkG','log','Zcybs','WRhQr','length','reduce','user_messages','tERpl','tOvJw','uTUnw','DscYk','error','JDlXZ','OxmCp','default','getItem','onairos_jwt_token','OFcdg','zKQVY','vdEkY','â
\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20','kTkaL','HXErg','uJHNQ','WSuxY','17.0','Platform','hzcdi','cMthb','Android','now','map','toISOString','conversation_id','title','xUSuu','đĄ\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20','NTWNc','API_CONFIG','Bearer\x20','OnairosSDK/1.0.0\x20(','json','yKVIj','LAlDl','warn','â ī¸\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','â ī¸\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','status','anqUX','NAqSU','đ\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','DcZbv','kFWdS','Stored\x20','\x20of\x20','\x20conversations','tVMHL','Invalid\x20input:\x20memoriesData\x20missing.','prDEq','CyYbs','â ī¸\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20','â ī¸\x20[CHATGPT_SERVICE]\x20Error:\x20','HXavk','\x20errors)','YcVpg','VfxwI','â\x20[CHATGPT_SERVICE]\x20Network\x20error:','message','Failed\x20to\x20store\x20conversations\x20(','â
\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend','â\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','Network\x20error.\x20Please\x20check\x20your\x20connection.','đ§ \x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','rhurZ','eTocO','DQKQM','nwLiB','Memories\x20stored\x20successfully','DJRbu','PvSNN','WukZy','jwyoq','items','memory_entries','pmzGG','memories','UEoxc','sgFMr','\x20items,\x20','\x20entries,\x20','\x20memories\x20(total:\x20','Ewqox','cNddh','sAfkc','zhbjD','LsbgD','JBGEC','đ\x20[CHATGPT_SERVICE]\x20Stored\x20','data','\x20memory\x20items\x20in\x20database','EMhGc','keys','iAAIJ','đĄ\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','BASE_URL','đĻ\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20','mamEi','/llm-data/store-memories','stringify','uWImh','YnIec','anWJg','BggwZ','lCEGO','PpzzI','split','đ\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','GgtHu','memoriesCount','tGPlA','cWDoc','HTTP\x20','ZKSTV','ClPGt','storeChatGPTMemories'];_0x4afe=function(){return _0x219bd3;};return _0x4afe();}
|
|
9
|
+
function _0x5463(){const _0x370df3=['defineProperty','storeChatGPTMemories','storeChatGPTConversations','đ\x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20conversations\x20for:','đ\x20[CHATGPT_SERVICE]\x20Total\x20messages:','â\x20[CHATGPT_SERVICE]\x20Invalid\x20input','Invalid\x20input:\x20userId\x20or\x20conversations\x20missing.','bmYVM','â\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','1.0.0','ios','iPhone','mobile-chatgpt','OCfrl','yiRHW','rHhej','NphlH','â\x20[CHATGPT_SERVICE]\x20Network\x20error:','log','CPZsn','ydaQL','reduce','length','fQXGJ','KOyzx','â\x20[CHATGPT_SERVICE]\x20Memories\x20network\x20error:','message','USASn','getItem','onairos_jwt_token','default','nUtYi','GhBuL','AwkpH','YkBRA','lhkhp','__esModule','đ\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20conversations','Platform','odVhR','kmGnZ','cBUdU','user_messages','map','conversation_id','-msg-','user','toISOString','title','floor','KABNr','jPmDF','FzamL','đĄ\x20[CHATGPT_SERVICE]\x20Sending\x20conversation\x20','PSKPp','API_CONFIG','BASE_URL','/llm-data/store','Bearer\x20','OnairosSDK/1.0.0\x20(','stringify','json','â
\x20[CHATGPT_SERVICE]\x20Sent\x20conversation\x20','gTJrf','warn','â ī¸\x20[CHATGPT_SERVICE]\x20Failed\x20conversation\x20','error','status','â ī¸\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20','kiyLy','bRTdM','dXwet','Stored\x20','\x20of\x20','đ\x20[CHATGPT_SERVICE]\x20Complete:\x20','\x20success,\x20','\x20failed','vcZaz','ItJBy','KgDKC','LerlX','\x20conversations','zqmeG','AfHrn','uQVQz','\x20errors)','DKkvR','DeQKb','jbpDZ','Network\x20error.\x20Please\x20check\x20your\x20connection.','đ§ \x20[CHATGPT_SERVICE]\x20Storing\x20ChatGPT\x20memories...','â\x20[CHATGPT_SERVICE]\x20Invalid\x20input:\x20memoriesData\x20missing','Invalid\x20input:\x20memoriesData\x20missing.','enoch_token','đ\x20[CHATGPT_SERVICE]\x20Auth\x20token\x20found\x20for\x20memories','qozre','Memories\x20stored\x20successfully','BgNsJ','vTyOw','items','SUFQY','whoCi','memory_entries','gPama','nnPfH','memories','PiZoq','đ\x20[CHATGPT_SERVICE]\x20Found\x20','dmYQo','kILDS','KylOW','FdcwF','Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.','zFyOM','keys','đĄ\x20[CHATGPT_SERVICE]\x20Sending\x20memories\x20to\x20backend...','/llm-data/store-memories','join','OnairosSDK/','đ\x20[CHATGPT_SERVICE]\x20Backend\x20response:\x20','data','jybzk','memoriesCount','â ī¸\x20[CHATGPT_SERVICE]\x20Error:\x20','HTTP\x20'];_0x5463=function(){return _0x370df3;};return _0x5463();}Object[_0x5a11(0x0)](exports,'__esModule',{'value':!![]}),exports[_0x5a11(0x1)]=exports[_0x5a11(0x2)]=void 0x0;var _api=__ONAIROS_REQ_FUNC__(0x0),_asyncStorage=_interopRequireDefault(__ONAIROS_REQ_FUNC__(0x1)),_reactNative=__ONAIROS_REQ_FUNC__(0x2);function _interopRequireDefault(_0x4bd3e7){return _0x4bd3e7&&_0x4bd3e7['__esModule']?_0x4bd3e7:{'default':_0x4bd3e7};}const storeChatGPTConversations=async(_0x19745c,_0x87085f)=>{const _0x5b1bbd={'USASn':'Network\x20error.\x20Please\x20check\x20your\x20connection.','gTJrf':function(_0x4eb4e5,_0x5bb120){return _0x4eb4e5+_0x5bb120;},'CPZsn':_0x5a11(0x3),'ydaQL':_0x5a11(0x4),'fQXGJ':function(_0x37cae6,_0x1390fd){return _0x37cae6||_0x1390fd;},'yrNlz':function(_0x2274b1,_0x17cc4f){return _0x2274b1===_0x17cc4f;},'KOyzx':function(_0x1eada5,_0x1cdcdc){return _0x1eada5!==_0x1cdcdc;},'MIQHq':'ZTWCx','DfUou':_0x5a11(0x5),'qUyjK':_0x5a11(0x6),'nUtYi':'enoch_token','GhBuL':'auth_token','AwkpH':function(_0x5d0f84,_0x28d10b){return _0x5d0f84===_0x28d10b;},'lhkhp':_0x5a11(0x7),'HRPUc':_0x5a11(0x8),'odVhR':_0x5a11(0x9),'kmGnZ':'17.0','dKeKF':_0x5a11(0xa),'cBUdU':_0x5a11(0xb),'Tjhgm':'Android','KABNr':function(_0x407b19,_0x4bca01){return _0x407b19/_0x4bca01;},'jPmDF':_0x5a11(0xc),'FzamL':'conversation','PSKPp':function(_0x38bded,_0x2324bd,_0x2b4671){return _0x38bded(_0x2324bd,_0x2b4671);},'kiyLy':function(_0x181a8d,_0x39c8e5){return _0x181a8d<_0x39c8e5;},'bRTdM':function(_0x29eb1f,_0x23e3a6){return _0x29eb1f-_0x23e3a6;},'dXwet':'QoXpj','vcZaz':function(_0x3991a4,_0x5568be){return _0x3991a4>_0x5568be;},'ItJBy':function(_0x2ffa27,_0x32254e){return _0x2ffa27===_0x32254e;},'KgDKC':'vORuR','LerlX':_0x5a11(0xd),'zqmeG':function(_0x23145f,_0x1b8fae){return _0x23145f===_0x1b8fae;},'AfHrn':'fzSjl','uQVQz':_0x5a11(0xe),'DKkvR':_0x5a11(0xf),'DeQKb':_0x5a11(0x10),'jbpDZ':_0x5a11(0x11)};console[_0x5a11(0x12)](_0x5b1bbd[_0x5a11(0x13)],_0x19745c),console[_0x5a11(0x12)]('đ\x20[CHATGPT_SERVICE]\x20Number\x20of\x20conversations:',_0x87085f['length']),console[_0x5a11(0x12)](_0x5b1bbd[_0x5a11(0x14)],_0x87085f[_0x5a11(0x15)]((_0x1fa620,_0x124810)=>_0x1fa620+_0x124810['user_messages'][_0x5a11(0x16)],0x0));if(_0x5b1bbd[_0x5a11(0x17)](!_0x19745c,!_0x87085f)||_0x5b1bbd['yrNlz'](_0x87085f[_0x5a11(0x16)],0x0))return _0x5b1bbd[_0x5a11(0x18)](_0x5b1bbd['MIQHq'],_0x5b1bbd['MIQHq'])?(_0x5556b1['error'](_0x5a11(0x19),_0x12a1b0),{'success':![],'error':_0x56e49a[_0x5a11(0x1a)]||_0x5b1bbd[_0x5a11(0x1b)]}):(console['error'](_0x5b1bbd['DfUou']),{'success':![],'error':_0x5b1bbd['qUyjK']});try{const _0x3145d1=await _asyncStorage['default'][_0x5a11(0x1c)](_0x5a11(0x1d))||await _asyncStorage[_0x5a11(0x1e)][_0x5a11(0x1c)](_0x5b1bbd[_0x5a11(0x1f)])||await _asyncStorage['default']['getItem'](_0x5b1bbd[_0x5a11(0x20)]);if(!_0x3145d1)return _0x5b1bbd[_0x5a11(0x21)](_0x5a11(0x22),_0x5b1bbd[_0x5a11(0x23)])?_0x3dda63&&_0x4ed3bd[_0x5a11(0x24)]?_0x45c9e8:{'default':_0x14db6b}:(console['error'](_0x5b1bbd['HRPUc']),{'success':![],'error':'Authentication\x20token\x20not\x20found.\x20Please\x20log\x20in\x20again.'});console[_0x5a11(0x12)](_0x5a11(0x25));const _0x14b7f8={'platform':_reactNative[_0x5a11(0x26)]['OS'],'appVersion':_0x5b1bbd[_0x5a11(0x27)],'osVersion':_0x5b1bbd['AwkpH'](_reactNative[_0x5a11(0x26)]['OS'],_0x5a11(0xa))?_0x5b1bbd[_0x5a11(0x28)]:_reactNative['Platform']['OS'],'deviceModel':_0x5b1bbd[_0x5a11(0x21)](_reactNative['Platform']['OS'],_0x5b1bbd['dKeKF'])?_0x5b1bbd[_0x5a11(0x29)]:_0x5b1bbd['Tjhgm'],'isOfflineSync':![]};let _0x5df1ea=0x0,_0x57720e=0x0;for(let _0x2c3ed3=0x0;_0x2c3ed3<_0x87085f[_0x5a11(0x16)];_0x2c3ed3++){const _0x50f1b3=_0x87085f[_0x2c3ed3],_0x18cd04=Date['now'](),_0x1d6681=_0x50f1b3[_0x5a11(0x2a)][_0x5a11(0x2b)]((_0x513901,_0x3b87d8)=>({'id':_0x50f1b3[_0x5a11(0x2c)]+_0x5a11(0x2d)+_0x3b87d8,'role':_0x5a11(0x2e),'content':_0x513901,'timestamp':new Date(_0x18cd04-(_0x50f1b3[_0x5a11(0x2a)]['length']-_0x3b87d8)*0x3e8)[_0x5a11(0x2f)](),'metadata':{}})),_0x40d07f={'conversationId':_0x50f1b3[_0x5a11(0x2c)],'messages':_0x1d6681,'context':{'title':_0x50f1b3[_0x5a11(0x30)],'create_time':Math[_0x5a11(0x31)](_0x5b1bbd[_0x5a11(0x32)](_0x18cd04,0x3e8)),'update_time':Math[_0x5a11(0x31)](_0x5b1bbd[_0x5a11(0x32)](_0x18cd04,0x3e8))},'mobileMetadata':_0x14b7f8},_0x9a7a07={'platform':_0x5b1bbd[_0x5a11(0x33)],'conversationData':_0x40d07f,'memoryType':_0x5b1bbd[_0x5a11(0x34)]};console['log'](_0x5a11(0x35)+(_0x2c3ed3+0x1)+'/'+_0x87085f[_0x5a11(0x16)]+':\x20'+_0x50f1b3[_0x5a11(0x30)]);try{const _0x9e0067=await _0x5b1bbd[_0x5a11(0x36)](fetch,_api[_0x5a11(0x37)][_0x5a11(0x38)]+_0x5a11(0x39),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x5a11(0x3a)+_0x3145d1,'User-Agent':_0x5a11(0x3b)+_reactNative[_0x5a11(0x26)]['OS']+')'},'body':JSON[_0x5a11(0x3c)](_0x9a7a07)}),_0x374dd5=await _0x9e0067[_0x5a11(0x3d)]();_0x9e0067['ok']?(console[_0x5a11(0x12)](_0x5a11(0x3e)+_0x5b1bbd[_0x5a11(0x3f)](_0x2c3ed3,0x1)+'/'+_0x87085f[_0x5a11(0x16)]),_0x5df1ea++):(console[_0x5a11(0x40)](_0x5a11(0x41)+_0x5b1bbd['gTJrf'](_0x2c3ed3,0x1)+'/'+_0x87085f[_0x5a11(0x16)]+':',_0x374dd5[_0x5a11(0x42)]||_0x9e0067[_0x5a11(0x43)]),_0x57720e++);}catch(_0x5e29f8){console['warn'](_0x5a11(0x44)+(_0x2c3ed3+0x1)+':',_0x5e29f8),_0x57720e++;}if(_0x5b1bbd[_0x5a11(0x45)](_0x2c3ed3,_0x5b1bbd[_0x5a11(0x46)](_0x87085f['length'],0x1))){if(_0x5b1bbd[_0x5a11(0x47)]===_0x5b1bbd[_0x5a11(0x47)])await new Promise(_0x4c842b=>setTimeout(_0x4c842b,0x12c));else return{'success':!![],'message':_0x5a11(0x48)+_0x37a36a+_0x5a11(0x49)+_0x4bc39e[_0x5a11(0x16)]+'\x20conversations'};}}console['log'](_0x5a11(0x4a)+_0x5df1ea+_0x5a11(0x4b)+_0x57720e+_0x5a11(0x4c));if(_0x5b1bbd[_0x5a11(0x4d)](_0x5df1ea,0x0))return _0x5b1bbd[_0x5a11(0x4e)](_0x5b1bbd[_0x5a11(0x4f)],_0x5b1bbd[_0x5a11(0x50)])?(_0x42cacf[_0x5a11(0x42)]('â\x20[CHATGPT_SERVICE]\x20Network\x20error:',_0x1cbb8e),{'success':![],'error':_0x433d39['message']||_0x5b1bbd[_0x5a11(0x1b)]}):{'success':!![],'message':_0x5a11(0x48)+_0x5df1ea+_0x5a11(0x49)+_0x87085f['length']+_0x5a11(0x51)};else{if(_0x5b1bbd[_0x5a11(0x52)](_0x5b1bbd[_0x5a11(0x53)],_0x5b1bbd[_0x5a11(0x54)]))_0x125ee3[_0x5a11(0x40)]('â ī¸\x20[CHATGPT_SERVICE]\x20Network\x20error\x20for\x20conversation\x20'+_0x5b1bbd[_0x5a11(0x3f)](_0x4a7a42,0x1)+':',_0x1ca9c8),_0x68cc98++;else return{'success':![],'error':'Failed\x20to\x20store\x20conversations\x20('+_0x57720e+_0x5a11(0x55)};}}catch(_0x2bac73){if(_0x5b1bbd[_0x5a11(0x18)](_0x5b1bbd[_0x5a11(0x56)],_0x5b1bbd[_0x5a11(0x57)]))return console[_0x5a11(0x42)](_0x5b1bbd[_0x5a11(0x58)],_0x2bac73),{'success':![],'error':_0x2bac73[_0x5a11(0x1a)]||_0x5a11(0x59)};else _0x2de384[_0x5a11(0x12)](_0x5a11(0x3e)+(_0x38481a+0x1)+'/'+_0x3a6562['length']),_0x37f529++;}};exports['storeChatGPTConversations']=storeChatGPTConversations;const storeChatGPTMemories=async _0x1d9508=>{const _0x59aa85={'BgNsJ':_0x5a11(0x5a),'xtoNZ':function(_0xe40c67,_0x41891a){return _0xe40c67===_0x41891a;},'vTyOw':function(_0x1a0d06,_0x20f0c3){return _0x1a0d06===_0x20f0c3;},'SUFQY':function(_0x471b26,_0x44e1be){return _0x471b26===_0x44e1be;},'whoCi':function(_0x4021a6,_0x334439){return _0x4021a6===_0x334439;},'gPama':function(_0x5bc6df,_0x586147){return _0x5bc6df===_0x586147;},'nnPfH':function(_0x43dd93,_0x15c2ca){return _0x43dd93===_0x15c2ca;},'PiZoq':function(_0x37cad7,_0x3f3e10){return _0x37cad7+_0x3f3e10;},'dmYQo':_0x5a11(0x5b),'kILDS':_0x5a11(0x5c),'gPgBo':_0x5a11(0x1d),'KylOW':_0x5a11(0x5d),'FdcwF':'â\x20[CHATGPT_SERVICE]\x20No\x20auth\x20token\x20found\x20in\x20any\x20storage\x20key','FFArA':_0x5a11(0x5e),'zFyOM':'mobile-chatgpt','OPWIU':function(_0x527a53,_0x3dd9ec){return _0x527a53||_0x3dd9ec;},'cIbXs':function(_0x370efe,_0x1baccc,_0xf07b0){return _0x370efe(_0x1baccc,_0xf07b0);},'deUPE':function(_0x1e97da,_0xfd5f8e){return _0x1e97da!==_0xfd5f8e;},'jybzk':_0x5a11(0x5f),'rzwxQ':_0x5a11(0x60)};var _0x15615f,_0x42a740,_0x458078;console[_0x5a11(0x12)](_0x59aa85[_0x5a11(0x61)]);const _0x5d273b=(_0x59aa85['xtoNZ'](_0x1d9508,null)||_0x59aa85[_0x5a11(0x62)](_0x1d9508,void 0x0)||(_0x15615f=_0x1d9508[_0x5a11(0x63)])===null||_0x59aa85['xtoNZ'](_0x15615f,void 0x0)?void 0x0:_0x15615f['length'])||0x0,_0x4f9926=(_0x59aa85[_0x5a11(0x64)](_0x1d9508,null)||_0x59aa85[_0x5a11(0x64)](_0x1d9508,void 0x0)||_0x59aa85[_0x5a11(0x65)](_0x42a740=_0x1d9508[_0x5a11(0x66)],null)||_0x59aa85[_0x5a11(0x67)](_0x42a740,void 0x0)?void 0x0:_0x42a740[_0x5a11(0x16)])||0x0,_0x1a4c60=(_0x59aa85[_0x5a11(0x68)](_0x1d9508,null)||_0x59aa85[_0x5a11(0x68)](_0x1d9508,void 0x0)||(_0x458078=_0x1d9508[_0x5a11(0x69)])===null||_0x458078===void 0x0?void 0x0:_0x458078['length'])||0x0,_0x436986=_0x59aa85[_0x5a11(0x6a)](_0x59aa85['PiZoq'](_0x5d273b,_0x4f9926),_0x1a4c60);console[_0x5a11(0x12)](_0x5a11(0x6b)+_0x5d273b+'\x20items,\x20'+_0x4f9926+'\x20entries,\x20'+_0x1a4c60+'\x20memories\x20(total:\x20'+_0x436986+')');if(!_0x1d9508)return console[_0x5a11(0x42)](_0x59aa85[_0x5a11(0x6c)]),{'success':![],'error':_0x59aa85[_0x5a11(0x6d)]};try{const _0x4f7dde=await _asyncStorage[_0x5a11(0x1e)][_0x5a11(0x1c)](_0x59aa85['gPgBo'])||await _asyncStorage[_0x5a11(0x1e)][_0x5a11(0x1c)](_0x59aa85[_0x5a11(0x6e)])||await _asyncStorage[_0x5a11(0x1e)]['getItem']('auth_token');if(!_0x4f7dde)return console[_0x5a11(0x42)](_0x59aa85[_0x5a11(0x6f)]),{'success':![],'error':_0x5a11(0x70)};console[_0x5a11(0x12)](_0x59aa85['FFArA']);const _0x94f008=_0x5a11(0x9),_0x1c4698={'platform':_0x59aa85[_0x5a11(0x71)],'memoriesData':_0x1d9508,'metadata':{'source':'react-native-sdk','appVersion':_0x94f008,'fetchedAt':new Date()[_0x5a11(0x2f)]()}},_0x56b474=Object[_0x5a11(0x72)](_0x59aa85['OPWIU'](_0x1d9508,{}));console[_0x5a11(0x12)](_0x5a11(0x73)),console['log']('đ\x20[CHATGPT_SERVICE]\x20URL:\x20'+_api[_0x5a11(0x37)][_0x5a11(0x38)]+_0x5a11(0x74)),console[_0x5a11(0x12)]('đĻ\x20[CHATGPT_SERVICE]\x20Raw\x20memoriesData\x20keys:\x20'+_0x56b474[_0x5a11(0x75)](',\x20')),console[_0x5a11(0x12)]('đĻ\x20[CHATGPT_SERVICE]\x20Raw\x20response\x20sent\x20as-is\x20(no\x20transformation)');const _0x5185fb=await _0x59aa85['cIbXs'](fetch,_api[_0x5a11(0x37)][_0x5a11(0x38)]+'/llm-data/store-memories',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x5a11(0x3a)+_0x4f7dde,'User-Agent':_0x5a11(0x76)+_0x94f008+'\x20('+_reactNative[_0x5a11(0x26)]['OS']+')'},'body':JSON[_0x5a11(0x3c)](_0x1c4698)}),_0x28a1ab=await _0x5185fb['json']();if(_0x5185fb['ok']){var _0x1504aa;return console[_0x5a11(0x12)]('â
\x20[CHATGPT_SERVICE]\x20Successfully\x20sent\x20memories\x20to\x20backend'),_0x28a1ab[_0x5a11(0x1a)]&&console[_0x5a11(0x12)](_0x5a11(0x77)+_0x28a1ab['message']),_0x59aa85['deUPE'](_0x1504aa=_0x28a1ab[_0x5a11(0x78)],null)&&_0x1504aa!==void 0x0&&_0x1504aa['memoriesCount']&&('KGOjd'===_0x59aa85[_0x5a11(0x79)]?(_0x2adb9e[_0x5a11(0x40)](_0x5a11(0x41)+(_0x313f63+0x1)+'/'+_0x25f014[_0x5a11(0x16)]+':',_0x540dcb[_0x5a11(0x42)]||_0x3f89ea['status']),_0x16545b++):console['log']('đ\x20[CHATGPT_SERVICE]\x20Stored\x20'+_0x28a1ab[_0x5a11(0x78)][_0x5a11(0x7a)]+'\x20memory\x20items\x20in\x20database')),{'success':!![],'message':_0x28a1ab[_0x5a11(0x1a)]||_0x59aa85['rzwxQ'],'data':_0x28a1ab['data']};}else return console['warn']('â ī¸\x20[CHATGPT_SERVICE]\x20Memories\x20backend\x20returned\x20status:\x20'+_0x5185fb['status']),console['warn'](_0x5a11(0x7b)+(_0x28a1ab[_0x5a11(0x42)]||'Unknown\x20error')),{'success':![],'error':_0x28a1ab[_0x5a11(0x42)]||_0x5a11(0x7c)+_0x5185fb[_0x5a11(0x43)]};}catch(_0x26ef4a){return console[_0x5a11(0x42)](_0x5a11(0x19),_0x26ef4a),{'success':![],'error':_0x26ef4a[_0x5a11(0x1a)]||_0x5a11(0x59)};}};function _0x5a11(_0x5463c0,_0x5a11c5){_0x5463c0=_0x5463c0-0x0;const _0x4dd258=_0x5463();let _0x1b0d84=_0x4dd258[_0x5463c0];return _0x1b0d84;}exports[_0x5a11(0x1)]=storeChatGPTMemories;
|