@onairos/react-native 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/apiKeyService.js +1 -1
- package/lib/commonjs/services/authService.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/oauthService.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 +2 -4
- 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/apiKeyService.js +1 -1
- package/lib/module/services/authService.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/oauthService.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 -8
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2977(){const _0x34c513=['💾\x20Storing\x20LLM\x20data\x20locally\x20(temporary)...','connected','✅\x20LLM\x20data\x20stored\x20locally\x20successfully','userId','stringify','appName','timestamp','length','KievF','log','MaPMy','📊\x20Data\x20size:\x20','dataSize','❌\x20Failed\x20to\x20store\x20LLM\x20data:','❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:','ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:','✅\x20Retrieved\x20LLM\x20data\x20for\x20user:','WzNtm','getItem','IiVcn','parse','NXXqA','tWEyN','error','fPvdr','❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','❌\x20Failed\x20to\x20clear\x20LLM\x20data:','rAmQU','qNCht','aDtqO','GfLSt','sOvDT','bHiLP','mGhbP','iTBHV','uBQvr','uLTth','Unknown\x20error','kKnLK','FvnTt','cLdwE','❌\x20Failed\x20to\x20update\x20LLM\x20status:','dGkUl','vRYBs','AuTml','oEVHb','warn','⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','❌\x20Failed\x20to\x20request\x20LLM\x20data\x20from\x20backend:','message','rZZsS','setItem','ihCDj','EKioN','removeItem','chatgpt','🔍\x20Platform\x20connection\x20check:','entries','filter','includes','llm','oFekw','EZfjT','VFAFh','1.0','oeUfK','data','conversations','chatHistory','customData','toISOString','ASPdi','ptISd','SJNvi','IizLX','giswF','❌\x20Backend\x20data\x20ingestion\x20failed:','❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:','AvJwv','EkbNv','DqRxw','📡\x20Sending\x20LLM\x20data\x20to\x20backend\x20for\x20processing...','BASE_URL','/llmdata','Bearer\x20','email','AebPW','accessToken','tokenExpiry','GpsMO','aEXNz','json','✅\x20Backend\x20received\x20and\x20stored\x20LLM\x20data:','cyzrH','KSggd','XXvXJ','text','pstRU','Backend\x20error:\x20','VYwgB','gYpeW','poMsJ','cDeoU','❌\x20Failed\x20to\x20request\x20LLM\x20data:','VRiyA','📤\x20Requesting\x20backend\x20to\x20send\x20LLM\x20data\x20to\x20developer...','apiUrl','status','TWVSR','RwjAw','gFWdJ','VKkIO','preferences','getAllKeys','❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:'];_0x2977=function(){return _0x34c513;};return _0x2977();}import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';function _0x31fb(_0x297791,_0x31fb87){_0x297791=_0x297791-0x0;const _0x276ea4=_0x2977();let _0x298f74=_0x276ea4[_0x297791];return _0x298f74;}const LLM_DATA_STORAGE_KEY='@onairos:llm_data',LLM_METADATA_STORAGE_KEY='@onairos:llm_metadata';export const storeLLMData=async _0x47e8c8=>{const _0x41c2b8={'JncBB':_0x31fb(0x0),'KievF':_0x31fb(0x1),'MaPMy':_0x31fb(0x2)};try{console['log'](_0x41c2b8['JncBB']),await AsyncStorage['setItem'](LLM_DATA_STORAGE_KEY+':'+_0x47e8c8[_0x31fb(0x3)],JSON[_0x31fb(0x4)](_0x47e8c8));const _0x2e55f4={'userId':_0x47e8c8[_0x31fb(0x3)],'email':_0x47e8c8['email'],'appName':_0x47e8c8[_0x31fb(0x5)],'timestamp':_0x47e8c8[_0x31fb(0x6)],'hasData':!![],'dataSize':JSON[_0x31fb(0x4)](_0x47e8c8['data'])[_0x31fb(0x7)],'connectionStatus':_0x41c2b8[_0x31fb(0x8)]};return await AsyncStorage['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x47e8c8[_0x31fb(0x3)],JSON['stringify'](_0x2e55f4)),console[_0x31fb(0x9)](_0x41c2b8[_0x31fb(0xa)]),console[_0x31fb(0x9)](_0x31fb(0xb)+_0x2e55f4[_0x31fb(0xc)]+'\x20bytes'),!![];}catch(_0x56784c){return console['error'](_0x31fb(0xd),_0x56784c),![];}};export const getLLMData=async _0x11fe08=>{const _0x1c864e={'fPvdr':_0x31fb(0xe),'IiVcn':_0x31fb(0xf),'IGJuu':_0x31fb(0x10),'NXXqA':function(_0x5e9c47,_0x3f6ebb){return _0x5e9c47!==_0x3f6ebb;},'tWEyN':_0x31fb(0x11)};try{const _0x10417b=await AsyncStorage[_0x31fb(0x12)](LLM_DATA_STORAGE_KEY+':'+_0x11fe08);if(!_0x10417b)return console[_0x31fb(0x9)](_0x1c864e[_0x31fb(0x13)],_0x11fe08),null;const _0x3eee00=JSON[_0x31fb(0x14)](_0x10417b);return console['log'](_0x1c864e['IGJuu'],_0x11fe08),_0x3eee00;}catch(_0x429c34){return _0x1c864e[_0x31fb(0x15)](_0x1c864e[_0x31fb(0x16)],_0x1c864e[_0x31fb(0x16)])?(_0x531a7e[_0x31fb(0x17)](_0x1c864e[_0x31fb(0x18)],_0x2c248c),null):(console[_0x31fb(0x17)](_0x31fb(0x19),_0x429c34),null);}};export const getLLMMetadata=async _0xd21aa8=>{const _0x59f663={'mGhbP':_0x31fb(0x1a),'uBQvr':_0x31fb(0x19),'GfLSt':function(_0x4297ed,_0x24f8c2){return _0x4297ed===_0x24f8c2;},'sOvDT':_0x31fb(0x1b),'bHiLP':_0x31fb(0x1c),'iTBHV':function(_0x6a49cd,_0x2c792a){return _0x6a49cd===_0x2c792a;},'tSkwA':_0x31fb(0x1d),'uLTth':_0x31fb(0xe)};try{if(_0x59f663[_0x31fb(0x1e)](_0x59f663[_0x31fb(0x1f)],_0x59f663[_0x31fb(0x20)]))return _0xf55cb9['error'](_0x59f663[_0x31fb(0x21)],_0x104e3f),![];else{const _0x26d723=await AsyncStorage['getItem'](LLM_METADATA_STORAGE_KEY+':'+_0xd21aa8);if(!_0x26d723)return null;return JSON[_0x31fb(0x14)](_0x26d723);}}catch(_0x232fa3){return _0x59f663[_0x31fb(0x22)]('xHdad',_0x59f663['tSkwA'])?(_0x3fa7d0[_0x31fb(0x17)](_0x59f663[_0x31fb(0x23)],_0xe30b74),null):(console['error'](_0x59f663[_0x31fb(0x24)],_0x232fa3),null);}};export const updateLLMStatus=async(_0x5c6338,_0x5acffd)=>{const _0x14012b={'rZZsS':_0x31fb(0x25),'snvIP':_0x31fb(0xf),'dGkUl':function(_0x1ed7b0,_0x1d71f5){return _0x1ed7b0(_0x1d71f5);},'vRYBs':function(_0xb68d02,_0x3347a7){return _0xb68d02!==_0x3347a7;},'AuTml':_0x31fb(0x26),'oEVHb':_0x31fb(0x27),'ihCDj':_0x31fb(0x28),'EKioN':_0x31fb(0x29)};try{const _0x5b1108=await _0x14012b[_0x31fb(0x2a)](getLLMMetadata,_0x5c6338);if(!_0x5b1108)return _0x14012b[_0x31fb(0x2b)](_0x14012b[_0x31fb(0x2c)],_0x14012b[_0x31fb(0x2d)])?(console[_0x31fb(0x2e)](_0x31fb(0x2f),_0x5c6338),![]):(_0x3d929b[_0x31fb(0x17)](_0x31fb(0x30),_0x397325),{'success':![],'message':_0x1af5eb instanceof _0x1c1237?_0x993f8e[_0x31fb(0x31)]:_0x14012b[_0x31fb(0x32)]});return _0x5b1108['connectionStatus']=_0x5acffd,await AsyncStorage[_0x31fb(0x33)](LLM_METADATA_STORAGE_KEY+':'+_0x5c6338,JSON[_0x31fb(0x4)](_0x5b1108)),console[_0x31fb(0x9)]('✅\x20Updated\x20LLM\x20status\x20to:\x20'+_0x5acffd),!![];}catch(_0x4e6a31){return'cLdwE'===_0x14012b[_0x31fb(0x34)]?(console['error'](_0x14012b[_0x31fb(0x35)],_0x4e6a31),![]):(_0x28b153[_0x31fb(0x9)](_0x14012b['snvIP'],_0x4ad519),null);}};export const clearLLMData=async _0x10d149=>{const _0xfc3305={'nBgLe':_0x31fb(0x1a)};try{return await AsyncStorage[_0x31fb(0x36)](LLM_DATA_STORAGE_KEY+':'+_0x10d149),await AsyncStorage['removeItem'](LLM_METADATA_STORAGE_KEY+':'+_0x10d149),console[_0x31fb(0x9)]('✅\x20LLM\x20data\x20cleared\x20for\x20user:',_0x10d149),!![];}catch(_0x396deb){return console[_0x31fb(0x17)](_0xfc3305['nBgLe'],_0x396deb),![];}};export const hasOnlyLLMConnection=_0x325ae6=>{const _0x54587e={'oFekw':_0x31fb(0x37),'EZfjT':function(_0xfd2447,_0x310fa3){return _0xfd2447===_0x310fa3;},'VFAFh':_0x31fb(0x38)},_0x1145fb=Object[_0x31fb(0x39)](_0x325ae6)[_0x31fb(0x3a)](([_0xeee6ee,_0x47e406])=>_0x47e406)['map'](([_0x12aea6,_0x3506b6])=>_0x12aea6),_0x5bdb1c=_0x1145fb[_0x31fb(0x3b)](_0x31fb(0x3c))||_0x1145fb['includes'](_0x54587e[_0x31fb(0x3d)]),_0x34c7e4=_0x54587e[_0x31fb(0x3e)](_0x1145fb['length'],0x1)&&_0x5bdb1c;return console[_0x31fb(0x9)](_0x54587e[_0x31fb(0x3f)],{'connectedPlatforms':_0x1145fb,'hasLLM':_0x5bdb1c,'onlyLLM':_0x34c7e4}),_0x34c7e4;};export const formatLLMDataForDeveloper=_0x21fb45=>{const _0xb5319d={'oeUfK':_0x31fb(0x3c),'ASPdi':_0x31fb(0x40)};return{'platform':_0xb5319d[_0x31fb(0x41)],'userId':_0x21fb45[_0x31fb(0x3)],'email':_0x21fb45['email'],'timestamp':_0x21fb45['timestamp'],'data':{'type':'chatgpt','conversations':_0x21fb45[_0x31fb(0x42)][_0x31fb(0x43)]||[],'chatHistory':_0x21fb45[_0x31fb(0x42)][_0x31fb(0x44)]||[],'preferences':_0x21fb45[_0x31fb(0x42)]['preferences']||{},'customData':_0x21fb45[_0x31fb(0x42)][_0x31fb(0x45)]||{}},'metadata':{'appName':_0x21fb45['appName'],'collectedAt':new Date(_0x21fb45[_0x31fb(0x6)])[_0x31fb(0x46)](),'dataVersion':_0xb5319d[_0x31fb(0x47)]}};};export const sendLLMDataToBackend=async(_0x32e882,_0xb1b916)=>{const _0x42df7e={'FcFaf':'chatgpt','DqRxw':'🔍\x20Platform\x20connection\x20check:','cyzrH':_0x31fb(0xd),'AvJwv':function(_0x997ef9,_0x3ad12b){return _0x997ef9!==_0x3ad12b;},'EkbNv':_0x31fb(0x48),'xFVAH':function(_0x117361,_0x6c5ae8,_0x440302){return _0x117361(_0x6c5ae8,_0x440302);},'AebPW':_0x31fb(0x3c),'GpsMO':function(_0x31847e,_0x1f7cc4){return _0x31847e===_0x1f7cc4;},'aEXNz':_0x31fb(0x49),'KSggd':_0x31fb(0x4a),'XXvXJ':_0x31fb(0x4b),'pstRU':_0x31fb(0x4c),'VYwgB':_0x31fb(0x4d),'gYpeW':function(_0x262b3a,_0x407833){return _0x262b3a instanceof _0x407833;},'poMsJ':'Unknown\x20error'};try{if(_0x42df7e[_0x31fb(0x4e)](_0x42df7e['EkbNv'],_0x42df7e[_0x31fb(0x4f)])){const _0x319c23=_0x4876df[_0x31fb(0x39)](_0x3bc525)[_0x31fb(0x3a)](([_0x582ca7,_0x5e78fc])=>_0x5e78fc)['map'](([_0x53c645,_0x41863a])=>_0x53c645),_0x2436c5=_0x319c23[_0x31fb(0x3b)](_0x31fb(0x3c))||_0x319c23[_0x31fb(0x3b)](_0x42df7e['FcFaf']),_0x468e10=_0x319c23[_0x31fb(0x7)]===0x1&&_0x2436c5;return _0x420df4[_0x31fb(0x9)](_0x42df7e[_0x31fb(0x50)],{'connectedPlatforms':_0x319c23,'hasLLM':_0x2436c5,'onlyLLM':_0x468e10}),_0x468e10;}else{console[_0x31fb(0x9)](_0x31fb(0x51));const _0x2e822e=await _0x42df7e['xFVAH'](fetch,API_CONFIG[_0x31fb(0x52)]+_0x31fb(0x53),{'method':'POST','headers':{'Content-Type':'application/json',..._0xb1b916&&{'Authorization':_0x31fb(0x54)+_0xb1b916}},'body':JSON[_0x31fb(0x4)]({'userId':_0x32e882[_0x31fb(0x3)],'email':_0x32e882[_0x31fb(0x55)],'appName':_0x32e882['appName'],'platform':_0x42df7e[_0x31fb(0x56)],'connectionType':_0x42df7e['FcFaf'],'timestamp':new Date()[_0x31fb(0x46)](),'data':_0x32e882['data'],'accessToken':_0x32e882[_0x31fb(0x57)],'refreshToken':_0x32e882['refreshToken'],'tokenExpiry':_0x32e882[_0x31fb(0x58)],'metadata':{'collectedAt':new Date(_0x32e882[_0x31fb(0x6)])[_0x31fb(0x46)](),'dataVersion':_0x31fb(0x40)}})});if(_0x2e822e['ok']){if(_0x42df7e[_0x31fb(0x59)](_0x42df7e['aEXNz'],_0x42df7e[_0x31fb(0x5a)])){const _0xab93ce=await _0x2e822e[_0x31fb(0x5b)]();return console[_0x31fb(0x9)](_0x31fb(0x5c),_0xab93ce),{'success':!![],'message':_0xab93ce[_0x31fb(0x31)],'connectionId':_0xab93ce['connectionId']};}else return _0x86304f[_0x31fb(0x17)](_0x42df7e[_0x31fb(0x5d)],_0x43a75a),![];}else{if(_0x42df7e[_0x31fb(0x5e)]===_0x42df7e[_0x31fb(0x5f)])return _0x277cea[_0x31fb(0x17)]('❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:',_0x3b513d),[];else{const _0x5dc9a9=await _0x2e822e[_0x31fb(0x60)]();return console[_0x31fb(0x17)](_0x42df7e[_0x31fb(0x61)],_0x2e822e['status'],_0x5dc9a9),{'success':![],'message':_0x31fb(0x62)+_0x2e822e['status']};}}}}catch(_0x24ef1b){return console[_0x31fb(0x17)](_0x42df7e[_0x31fb(0x63)],_0x24ef1b),{'success':![],'message':_0x42df7e[_0x31fb(0x64)](_0x24ef1b,Error)?_0x24ef1b[_0x31fb(0x31)]:_0x42df7e[_0x31fb(0x65)]};}};export const requestLLMDataForDeveloper=async(_0x531782,_0x4c35fb,_0xfc6daa,_0x14877f,_0x5f5c86)=>{const _0x2b3b42={'oxSpt':function(_0x13037e,_0x61fc29){return _0x13037e!==_0x61fc29;},'VRiyA':_0x31fb(0x66),'RpKov':'✅\x20Backend\x20processing\x20LLM\x20data\x20request:','KmSPB':_0x31fb(0x67),'TWVSR':_0x31fb(0x30),'bbLwA':function(_0x2ced7b,_0x3cae5c){return _0x2ced7b instanceof _0x3cae5c;},'RwjAw':_0x31fb(0x25)};try{if(_0x2b3b42['oxSpt'](_0x2b3b42[_0x31fb(0x68)],_0x31fb(0x66)))return null;else{console[_0x31fb(0x9)](_0x31fb(0x69));const _0x99a9df=await fetch(API_CONFIG[_0x31fb(0x52)]+'/llmdata/request',{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x31fb(0x54)+_0x5f5c86},'body':JSON[_0x31fb(0x4)]({'userId':_0x531782,'email':_0x4c35fb,'appName':_0xfc6daa,'requestedData':_0x14877f,'timestamp':new Date()[_0x31fb(0x46)]()})});if(_0x99a9df['ok']){const _0x1b2656=await _0x99a9df[_0x31fb(0x5b)]();return console[_0x31fb(0x9)](_0x2b3b42['RpKov'],_0x1b2656),{'success':!![],'message':_0x1b2656[_0x31fb(0x31)],'apiUrl':_0x1b2656[_0x31fb(0x6a)],'token':_0x1b2656['token']};}else{const _0x1c1676=await _0x99a9df[_0x31fb(0x60)]();return console[_0x31fb(0x17)](_0x2b3b42['KmSPB'],_0x99a9df['status'],_0x1c1676),{'success':![],'message':_0x31fb(0x62)+_0x99a9df[_0x31fb(0x6b)]};}}}catch(_0x3263cb){return console[_0x31fb(0x17)](_0x2b3b42[_0x31fb(0x6c)],_0x3263cb),{'success':![],'message':_0x2b3b42['bbLwA'](_0x3263cb,Error)?_0x3263cb[_0x31fb(0x31)]:_0x2b3b42[_0x31fb(0x6d)]};}};export const getAllLLMDataKeys=async()=>{const _0x202ef5={'xOjKm':_0x31fb(0x3c),'rpcUS':_0x31fb(0x37),'piVjB':function(_0x3e72ac,_0x3e72c5){return _0x3e72ac===_0x3e72c5;},'gFWdJ':'fAzkY','VKkIO':'nJZla'};try{if(_0x202ef5['piVjB'](_0x202ef5[_0x31fb(0x6e)],_0x202ef5[_0x31fb(0x6f)]))return{'platform':_0x202ef5['xOjKm'],'userId':_0xf6fa6f[_0x31fb(0x3)],'email':_0x25d5ac[_0x31fb(0x55)],'timestamp':_0x18f9e1['timestamp'],'data':{'type':_0x202ef5['rpcUS'],'conversations':_0x23cbd0[_0x31fb(0x42)][_0x31fb(0x43)]||[],'chatHistory':_0x310c98[_0x31fb(0x42)][_0x31fb(0x44)]||[],'preferences':_0x8d2b12['data'][_0x31fb(0x70)]||{},'customData':_0x47d3ec[_0x31fb(0x42)]['customData']||{}},'metadata':{'appName':_0x1a4f10[_0x31fb(0x5)],'collectedAt':new _0x5b8849(_0x1a10ad['timestamp'])[_0x31fb(0x46)](),'dataVersion':_0x31fb(0x40)}};else{const _0x2e7b43=await AsyncStorage[_0x31fb(0x71)](),_0x2c6638=_0x2e7b43['filter'](_0x76053=>_0x76053['startsWith'](LLM_DATA_STORAGE_KEY)||_0x76053['startsWith'](LLM_METADATA_STORAGE_KEY));return _0x2c6638;}}catch(_0x2aa376){return console[_0x31fb(0x17)](_0x31fb(0x72),_0x2aa376),[];}};
|
|
1
|
+
import AsyncStorage from'@react-native-async-storage/async-storage';import{API_CONFIG}from'../config/api';const LLM_DATA_STORAGE_KEY=_0x59e1(0x0),LLM_METADATA_STORAGE_KEY='@onairos:llm_metadata';export const storeLLMData=async _0x55a86c=>{const _0x33d363={'Rgnce':_0x59e1(0x1),'ytrwC':function(_0x14484b,_0x1a4cd7){return _0x14484b===_0x1a4cd7;},'VBPpf':'tbHMo','VRbLb':_0x59e1(0x2),'mHsSO':_0x59e1(0x3),'hBXVz':'✅\x20LLM\x20data\x20stored\x20locally\x20successfully'};try{if(_0x33d363[_0x59e1(0x4)](_0x33d363['VBPpf'],_0x59e1(0x5)))return _0x288459[_0x59e1(0x6)](_0x33d363[_0x59e1(0x7)],_0x598833),null;else{console[_0x59e1(0x8)](_0x33d363[_0x59e1(0x9)]),await AsyncStorage[_0x59e1(0xa)](LLM_DATA_STORAGE_KEY+':'+_0x55a86c[_0x59e1(0xb)],JSON[_0x59e1(0xc)](_0x55a86c));const _0xe4bc3e={'userId':_0x55a86c[_0x59e1(0xb)],'email':_0x55a86c[_0x59e1(0xd)],'appName':_0x55a86c[_0x59e1(0xe)],'timestamp':_0x55a86c[_0x59e1(0xf)],'hasData':!![],'dataSize':JSON[_0x59e1(0xc)](_0x55a86c[_0x59e1(0x10)])['length'],'connectionStatus':_0x33d363[_0x59e1(0x11)]};return await AsyncStorage['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x55a86c[_0x59e1(0xb)],JSON[_0x59e1(0xc)](_0xe4bc3e)),console[_0x59e1(0x8)](_0x33d363['hBXVz']),console[_0x59e1(0x8)](_0x59e1(0x12)+_0xe4bc3e[_0x59e1(0x13)]+_0x59e1(0x14)),!![];}}catch(_0x4da029){return console[_0x59e1(0x6)](_0x59e1(0x15),_0x4da029),![];}};export const getLLMData=async _0x24d17f=>{const _0x2af053={'dUWlG':_0x59e1(0x15),'hCWBX':_0x59e1(0x16),'SzLOZ':_0x59e1(0x17),'WxWhI':_0x59e1(0x18),'ZAoOq':_0x59e1(0x19),'Mcsjr':_0x59e1(0x1a)};try{if(_0x2af053[_0x59e1(0x1b)]!==_0x2af053[_0x59e1(0x1c)]){const _0x59f1fa=await AsyncStorage[_0x59e1(0x1d)](LLM_DATA_STORAGE_KEY+':'+_0x24d17f);if(!_0x59f1fa)return _0x2af053[_0x59e1(0x1e)]===_0x59e1(0x1f)?(_0x100b56['error'](_0x2af053[_0x59e1(0x20)],_0x1dd7a7),![]):(console[_0x59e1(0x8)](_0x2af053[_0x59e1(0x21)],_0x24d17f),null);const _0x34ac53=JSON['parse'](_0x59f1fa);return console[_0x59e1(0x8)](_0x2af053[_0x59e1(0x22)],_0x24d17f),_0x34ac53;}else return _0x5c8610[_0x59e1(0x6)](_0x59e1(0x23),_0x30382f),![];}catch(_0x2470a9){return console[_0x59e1(0x6)](_0x59e1(0x24),_0x2470a9),null;}};export const getLLMMetadata=async _0x29ec48=>{const _0x1d8351={'zssAp':_0x59e1(0x25),'XrINx':_0x59e1(0x26),'mSSwy':_0x59e1(0x27),'gKqMN':function(_0x71bcfb,_0x2c4049){return _0x71bcfb===_0x2c4049;},'mZamP':_0x59e1(0x28),'VOkLs':function(_0x10be90,_0x3e083b){return _0x10be90!==_0x3e083b;},'wAzAo':_0x59e1(0x29),'kvjBn':'JtXNy','MOthg':function(_0xd8ff94,_0x4fb840){return _0xd8ff94!==_0x4fb840;},'KbWQH':'rVehY','ZBCDy':'❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:'};try{const _0x4366ac=await AsyncStorage[_0x59e1(0x1d)](LLM_METADATA_STORAGE_KEY+':'+_0x29ec48);if(!_0x4366ac)return _0x1d8351[_0x59e1(0x2a)](_0x1d8351[_0x59e1(0x2b)],_0x1d8351[_0x59e1(0x2c)])?null:(_0x22069c['error'](_0x1d8351[_0x59e1(0x2d)],_0x5356b5),[]);return JSON['parse'](_0x4366ac);}catch(_0x4c6cba){if(_0x1d8351[_0x59e1(0x2e)](_0x1d8351['KbWQH'],_0x1d8351[_0x59e1(0x2f)])){const _0x26e2bc=_0x583b7f['entries'](_0x2aa9c6)[_0x59e1(0x30)](([_0x566ce9,_0x17a5bf])=>_0x17a5bf)[_0x59e1(0x31)](([_0x43b0df,_0xa63db])=>_0x43b0df),_0x1813b9=_0x26e2bc[_0x59e1(0x32)](_0x1d8351['XrINx'])||_0x26e2bc[_0x59e1(0x32)](_0x1d8351[_0x59e1(0x33)]),_0x321b8a=_0x1d8351[_0x59e1(0x34)](_0x26e2bc[_0x59e1(0x35)],0x1)&&_0x1813b9;return _0x103417[_0x59e1(0x8)](_0x1d8351['mZamP'],{'connectedPlatforms':_0x26e2bc,'hasLLM':_0x1813b9,'onlyLLM':_0x321b8a}),_0x321b8a;}else return console[_0x59e1(0x6)](_0x1d8351['ZBCDy'],_0x4c6cba),null;}};function _0x59e1(_0x86c620,_0x59e1df){_0x86c620=_0x86c620-0x0;const _0x5af76d=_0x86c6();let _0x4f36fc=_0x5af76d[_0x86c620];return _0x4f36fc;}export const updateLLMStatus=async(_0x240228,_0x4fb8b7)=>{const _0x59bc64={'MxKKu':_0x59e1(0x24),'heoQW':function(_0x57ca02,_0x34a2dd){return _0x57ca02===_0x34a2dd;},'gwkVv':'YySfb','acTOw':function(_0x5639d7,_0x1703aa){return _0x5639d7(_0x1703aa);},'wpEAb':_0x59e1(0x36)};try{if(_0x59bc64['heoQW'](_0x59bc64[_0x59e1(0x37)],_0x59bc64[_0x59e1(0x37)])){const _0x39cab0=await _0x59bc64[_0x59e1(0x38)](getLLMMetadata,_0x240228);if(!_0x39cab0)return console[_0x59e1(0x39)](_0x59bc64[_0x59e1(0x3a)],_0x240228),![];return _0x39cab0[_0x59e1(0x3b)]=_0x4fb8b7,await AsyncStorage['setItem'](LLM_METADATA_STORAGE_KEY+':'+_0x240228,JSON[_0x59e1(0xc)](_0x39cab0)),console[_0x59e1(0x8)](_0x59e1(0x3c)+_0x4fb8b7),!![];}else return _0x57b5e2['error'](_0x59bc64[_0x59e1(0x3d)],_0x3fda08),null;}catch(_0xd173ea){return console[_0x59e1(0x6)](_0x59e1(0x23),_0xd173ea),![];}};export const clearLLMData=async _0x1384dd=>{const _0x3f42c4={'aDioH':_0x59e1(0x3e)};try{return await AsyncStorage[_0x59e1(0x3f)](LLM_DATA_STORAGE_KEY+':'+_0x1384dd),await AsyncStorage[_0x59e1(0x3f)](LLM_METADATA_STORAGE_KEY+':'+_0x1384dd),console[_0x59e1(0x8)](_0x59e1(0x40),_0x1384dd),!![];}catch(_0x4ebdfa){return console[_0x59e1(0x6)](_0x3f42c4['aDioH'],_0x4ebdfa),![];}};function _0x86c6(){const _0x5ed265=['@onairos:llm_data','❌\x20Failed\x20to\x20retrieve\x20LLM\x20metadata:','💾\x20Storing\x20LLM\x20data\x20locally\x20(temporary)...','connected','ytrwC','inFFV','error','Rgnce','log','VRbLb','setItem','userId','stringify','email','appName','timestamp','data','mHsSO','📊\x20Data\x20size:\x20','dataSize','\x20bytes','❌\x20Failed\x20to\x20store\x20LLM\x20data:','gpKVe','MMjxc','xEuEh','ℹ️\x20No\x20LLM\x20data\x20found\x20for\x20user:','✅\x20Retrieved\x20LLM\x20data\x20for\x20user:','hCWBX','SzLOZ','getItem','WxWhI','RcLaj','dUWlG','ZAoOq','Mcsjr','❌\x20Failed\x20to\x20update\x20LLM\x20status:','❌\x20Failed\x20to\x20retrieve\x20LLM\x20data:','❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:','llm','chatgpt','🔍\x20Platform\x20connection\x20check:','wSdva','VOkLs','wAzAo','kvjBn','zssAp','MOthg','KbWQH','filter','map','includes','mSSwy','gKqMN','length','⚠️\x20No\x20LLM\x20metadata\x20found\x20for\x20user:','gwkVv','acTOw','warn','wpEAb','connectionStatus','✅\x20Updated\x20LLM\x20status\x20to:\x20','MxKKu','❌\x20Failed\x20to\x20clear\x20LLM\x20data:','removeItem','✅\x20LLM\x20data\x20cleared\x20for\x20user:','entries','VsRJn','AJfmv','1.0','EqMEs','conversations','chatHistory','toISOString','sEZvX','📡\x20Sending\x20LLM\x20data\x20to\x20backend\x20for\x20processing...','✅\x20Backend\x20received\x20and\x20stored\x20LLM\x20data:','❌\x20Backend\x20data\x20ingestion\x20failed:','ytWrO','/llmdata','bbxvJ','refreshToken','tokenExpiry','cBAoQ','VYuLP','message','connectionId','text','Backend\x20error:\x20','Unknown\x20error','📤\x20Requesting\x20backend\x20to\x20send\x20LLM\x20data\x20to\x20developer...','egvfw','✅\x20Backend\x20processing\x20LLM\x20data\x20request:','❌\x20Failed\x20to\x20request\x20LLM\x20data:','❌\x20Failed\x20to\x20request\x20LLM\x20data\x20from\x20backend:','RKzvF','VezIv','bgqwK','PKkNp','AFoBo','CpaVY','BASE_URL','/llmdata/request','Bearer\x20','kGaYM','json','GpnBg','apiUrl','token','cTsZC','status','SbNLS','oBdgF','getAllKeys','TfYKo'];_0x86c6=function(){return _0x5ed265;};return _0x86c6();}export const hasOnlyLLMConnection=_0x98af9d=>{const _0x1bf91b={'VsRJn':_0x59e1(0x26),'hFwPC':_0x59e1(0x27),'AJfmv':function(_0x11eacd,_0x2ce879){return _0x11eacd===_0x2ce879;}},_0x1427e6=Object[_0x59e1(0x41)](_0x98af9d)[_0x59e1(0x30)](([_0x46fcdd,_0x58d03c])=>_0x58d03c)[_0x59e1(0x31)](([_0x220e8d,_0xc8254e])=>_0x220e8d),_0x3c55fa=_0x1427e6['includes'](_0x1bf91b[_0x59e1(0x42)])||_0x1427e6[_0x59e1(0x32)](_0x1bf91b['hFwPC']),_0x175ee8=_0x1bf91b[_0x59e1(0x43)](_0x1427e6[_0x59e1(0x35)],0x1)&&_0x3c55fa;return console[_0x59e1(0x8)]('🔍\x20Platform\x20connection\x20check:',{'connectedPlatforms':_0x1427e6,'hasLLM':_0x3c55fa,'onlyLLM':_0x175ee8}),_0x175ee8;};export const formatLLMDataForDeveloper=_0x526df1=>{const _0x712ff7={'EqMEs':_0x59e1(0x27),'sEZvX':_0x59e1(0x44)};return{'platform':'llm','userId':_0x526df1[_0x59e1(0xb)],'email':_0x526df1[_0x59e1(0xd)],'timestamp':_0x526df1[_0x59e1(0xf)],'data':{'type':_0x712ff7[_0x59e1(0x45)],'conversations':_0x526df1['data'][_0x59e1(0x46)]||[],'chatHistory':_0x526df1[_0x59e1(0x10)][_0x59e1(0x47)]||[],'preferences':_0x526df1[_0x59e1(0x10)]['preferences']||{},'customData':_0x526df1[_0x59e1(0x10)]['customData']||{}},'metadata':{'appName':_0x526df1['appName'],'collectedAt':new Date(_0x526df1[_0x59e1(0xf)])[_0x59e1(0x48)](),'dataVersion':_0x712ff7[_0x59e1(0x49)]}};};export const sendLLMDataToBackend=async(_0x3ac2df,_0x428a93)=>{const _0x94ea32={'Axoxy':_0x59e1(0x4a),'ytWrO':function(_0x49fd7c,_0x279ff3,_0x1c5d61){return _0x49fd7c(_0x279ff3,_0x1c5d61);},'bbxvJ':function(_0x23a5da,_0x4fff3f){return _0x23a5da&&_0x4fff3f;},'NoqMj':_0x59e1(0x26),'wjppq':'chatgpt','cBAoQ':'1.0','VYuLP':_0x59e1(0x4b),'RitbN':_0x59e1(0x4c),'XuxrE':function(_0x296ed3,_0x5a3cd3){return _0x296ed3 instanceof _0x5a3cd3;}};try{console[_0x59e1(0x8)](_0x94ea32['Axoxy']);const _0x19c5b2=await _0x94ea32[_0x59e1(0x4d)](fetch,API_CONFIG['BASE_URL']+_0x59e1(0x4e),{'method':'POST','headers':{'Content-Type':'application/json',..._0x94ea32[_0x59e1(0x4f)](_0x428a93,{'Authorization':'Bearer\x20'+_0x428a93})},'body':JSON[_0x59e1(0xc)]({'userId':_0x3ac2df[_0x59e1(0xb)],'email':_0x3ac2df['email'],'appName':_0x3ac2df[_0x59e1(0xe)],'platform':_0x94ea32['NoqMj'],'connectionType':_0x94ea32['wjppq'],'timestamp':new Date()[_0x59e1(0x48)](),'data':_0x3ac2df[_0x59e1(0x10)],'accessToken':_0x3ac2df['accessToken'],'refreshToken':_0x3ac2df[_0x59e1(0x50)],'tokenExpiry':_0x3ac2df[_0x59e1(0x51)],'metadata':{'collectedAt':new Date(_0x3ac2df[_0x59e1(0xf)])[_0x59e1(0x48)](),'dataVersion':_0x94ea32[_0x59e1(0x52)]}})});if(_0x19c5b2['ok']){const _0x70da62=await _0x19c5b2['json']();return console[_0x59e1(0x8)](_0x94ea32[_0x59e1(0x53)],_0x70da62),{'success':!![],'message':_0x70da62[_0x59e1(0x54)],'connectionId':_0x70da62[_0x59e1(0x55)]};}else{const _0x2f5577=await _0x19c5b2[_0x59e1(0x56)]();return console['error'](_0x94ea32['RitbN'],_0x19c5b2['status'],_0x2f5577),{'success':![],'message':_0x59e1(0x57)+_0x19c5b2['status']};}}catch(_0x45d91a){return console[_0x59e1(0x6)]('❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:',_0x45d91a),{'success':![],'message':_0x94ea32['XuxrE'](_0x45d91a,Error)?_0x45d91a['message']:_0x59e1(0x58)};}};export const requestLLMDataForDeveloper=async(_0x11429,_0x7747af,_0x5d1347,_0x41af3a,_0x1192c8)=>{const _0x2197fb={'bgqwK':'❌\x20Failed\x20to\x20send\x20data\x20to\x20backend:','PKkNp':function(_0x26e9f6,_0x1214d9){return _0x26e9f6 instanceof _0x1214d9;},'oBdgF':_0x59e1(0x58),'TPKMu':function(_0x5edb88,_0x61834d){return _0x5edb88!==_0x61834d;},'VezIv':'RKzvF','AFoBo':_0x59e1(0x59),'CpaVY':function(_0x719b3e,_0x6b6370,_0x36f51a){return _0x719b3e(_0x6b6370,_0x36f51a);},'kGaYM':function(_0x479cf8,_0x30a02d){return _0x479cf8===_0x30a02d;},'OmwDi':_0x59e1(0x5a),'GpnBg':_0x59e1(0x5b),'cTsZC':_0x59e1(0x5c),'SbNLS':_0x59e1(0x5d)};try{if(_0x2197fb['TPKMu'](_0x59e1(0x5e),_0x2197fb[_0x59e1(0x5f)]))return _0xc37216[_0x59e1(0x6)](_0x2197fb[_0x59e1(0x60)],_0x1e1af0),{'success':![],'message':_0x2197fb[_0x59e1(0x61)](_0x54fad9,_0x33756c)?_0xcd2926[_0x59e1(0x54)]:_0x2197fb['oBdgF']};else{console['log'](_0x2197fb[_0x59e1(0x62)]);const _0x54d5a6=await _0x2197fb[_0x59e1(0x63)](fetch,API_CONFIG[_0x59e1(0x64)]+_0x59e1(0x65),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x59e1(0x66)+_0x1192c8},'body':JSON['stringify']({'userId':_0x11429,'email':_0x7747af,'appName':_0x5d1347,'requestedData':_0x41af3a,'timestamp':new Date()[_0x59e1(0x48)]()})});if(_0x54d5a6['ok']){if(_0x2197fb[_0x59e1(0x67)](_0x59e1(0x5a),_0x2197fb['OmwDi'])){const _0x2bfd51=await _0x54d5a6[_0x59e1(0x68)]();return console[_0x59e1(0x8)](_0x2197fb[_0x59e1(0x69)],_0x2bfd51),{'success':!![],'message':_0x2bfd51[_0x59e1(0x54)],'apiUrl':_0x2bfd51[_0x59e1(0x6a)],'token':_0x2bfd51[_0x59e1(0x6b)]};}else return null;}else{const _0x4725af=await _0x54d5a6[_0x59e1(0x56)]();return console['error'](_0x2197fb[_0x59e1(0x6c)],_0x54d5a6['status'],_0x4725af),{'success':![],'message':_0x59e1(0x57)+_0x54d5a6[_0x59e1(0x6d)]};}}}catch(_0xf05540){return console[_0x59e1(0x6)](_0x2197fb[_0x59e1(0x6e)],_0xf05540),{'success':![],'message':_0xf05540 instanceof Error?_0xf05540['message']:_0x2197fb[_0x59e1(0x6f)]};}};export const getAllLLMDataKeys=async()=>{const _0x582078={'TfYKo':'❌\x20Failed\x20to\x20get\x20LLM\x20data\x20keys:'};try{const _0x2f3c4b=await AsyncStorage[_0x59e1(0x70)](),_0x5c78d0=_0x2f3c4b['filter'](_0x5ac5b6=>_0x5ac5b6['startsWith'](LLM_DATA_STORAGE_KEY)||_0x5ac5b6['startsWith'](LLM_METADATA_STORAGE_KEY));return _0x5c78d0;}catch(_0x13d459){return console[_0x59e1(0x6)](_0x582078[_0x59e1(0x71)],_0x13d459),[];}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAuthToken}from'./authService';import{API_CONFIG}from'../config/api';const API_BASE_URL=''+API_CONFIG[
|
|
1
|
+
function _0x1c6d(_0x1953bc,_0x1c6d12){_0x1953bc=_0x1953bc-0x0;const _0x2e27f6=_0x1953();let _0xea6230=_0x2e27f6[_0x1953bc];return _0xea6230;}import{getAuthToken}from'./authService';import{API_CONFIG}from'../config/api';const API_BASE_URL=''+API_CONFIG[_0x1c6d(0x0)];export const getTrainingStatus=async _0x46ba4e=>{const _0x46af86={'luaAX':_0x1c6d(0x1),'afGTI':_0x1c6d(0x2),'wOBSe':function(_0x9367dc,_0x3cfb09){return _0x9367dc===_0x3cfb09;},'MrwuV':'zECTd','ZnNLv':function(_0x1ea471,_0x475f60,_0x89ccb0){return _0x1ea471(_0x475f60,_0x89ccb0);},'BWjJY':function(_0x25f9eb,_0x4e8a1d){return _0x25f9eb!==_0x4e8a1d;},'cxjMA':_0x1c6d(0x3),'Ifchq':_0x1c6d(0x4)};try{if(_0x46af86[_0x1c6d(0x5)](_0x46af86[_0x1c6d(0x6)],_0x46af86[_0x1c6d(0x6)])){const _0x523e15=await getAuthToken();if(!_0x523e15)throw new Error(_0x46af86[_0x1c6d(0x7)]);const _0x28b01f=await _0x46af86['ZnNLv'](fetch,API_BASE_URL+_0x1c6d(0x8)+_0x46ba4e,{'method':'GET','headers':{'Authorization':_0x523e15,'Content-Type':'application/json'}});if(!_0x28b01f['ok']){if(_0x46af86[_0x1c6d(0x9)](_0x1c6d(0x3),_0x46af86[_0x1c6d(0xa)]))throw new _0x3deb65(_0x46af86['luaAX']);else{const _0x261cf9=await _0x28b01f[_0x1c6d(0xb)]();throw new Error(_0x261cf9[_0x1c6d(0xc)]||_0x1c6d(0xd)+_0x28b01f[_0x1c6d(0xe)]);}}return await _0x28b01f[_0x1c6d(0xb)]();}else{_0x303961[_0x1c6d(0xc)](_0x46af86[_0x1c6d(0xf)],_0x23c141);throw _0x386cbd;}}catch(_0x336292){console['error'](_0x46af86[_0x1c6d(0x10)],_0x336292);throw _0x336292;}};export const getModelInfo=async()=>{const _0xc42260={'csFEa':_0x1c6d(0x11),'yIbjG':'ysGkm','RtFSL':function(_0x4ae625,_0x3ad391,_0xde2611){return _0x4ae625(_0x3ad391,_0xde2611);},'GDqQI':_0x1c6d(0x12),'Wfixg':'❌\x20Failed\x20to\x20get\x20model\x20info:'};try{const _0x3371a9=await getAuthToken();if(!_0x3371a9){if(_0xc42260[_0x1c6d(0x13)]!==_0xc42260['yIbjG'])return _0x38617e[_0x1c6d(0x14)](_0xc42260[_0x1c6d(0x15)],_0x18e8fe),![];else throw new Error(_0x1c6d(0x1));}const _0xffad5a=await _0xc42260['RtFSL'](fetch,API_BASE_URL+_0x1c6d(0x16),{'method':'GET','headers':{'Authorization':_0x3371a9,'Content-Type':'application/json'}});if(!_0xffad5a['ok']){if(_0x1c6d(0x17)===_0xc42260[_0x1c6d(0x18)]){const _0x220937=_0x360de2['parse'](_0x2783a2);throw new _0x2100f7(_0x220937[_0x1c6d(0xc)]||_0x1c6d(0xd)+_0x349139['status']);}else{const _0x3da609=await _0xffad5a[_0x1c6d(0xb)]();throw new Error(_0x3da609[_0x1c6d(0xc)]||_0x1c6d(0xd)+_0xffad5a[_0x1c6d(0xe)]);}}return await _0xffad5a[_0x1c6d(0xb)]();}catch(_0xad5c12){console[_0x1c6d(0xc)](_0xc42260['Wfixg'],_0xad5c12);throw _0xad5c12;}};function _0x1953(){const _0xf6ac51=['BASE_URL','No\x20authentication\x20token\x20available','❌\x20Failed\x20to\x20get\x20model\x20info:','KYNoY','❌\x20Failed\x20to\x20get\x20training\x20status:','wOBSe','MrwuV','luaAX','/mobile-training/status/','BWjJY','cxjMA','json','error','HTTP\x20','status','afGTI','Ifchq','⚠️\x20Could\x20not\x20check\x20training\x20status:','kyeDQ','yIbjG','warn','csFEa','/mobile-training/model-info','lZHbQ','GDqQI','❌\x20Failed\x20to\x20get\x20health\x20check:','/mobile-training/health','HSgrk','4|5|3|6|2|0|1','\x20\x20\x20-\x20Backend\x20validation:\x20Handles\x20all\x20edge\x20cases\x20✅','\x20\x20\x20-\x20Full\x20refresh\x20tokens:\x20Auto-refresh\x20when\x20expired\x20✅','ℹ️\x20[TRAINING]\x20No\x20migration\x20checks\x20needed:','🚀\x20Starting\x20Enoch\x20training\x20for\x20user:','(backend\x20auto-handles\x20YouTube)','\x20\x20\x20-\x20Temporary\x20mode\x20connections:\x20Work\x20automatically\x20✅','❌\x20Training\x20error:','hEgxL','zOLXc','qrPCx','FIxBo','log','jWwXZ','Ceiyq','dRxOK','username','bpFUx','SuMRI','izcUL','afbGP','❌\x20Training\x20start\x20error:','📤\x20Sending\x20training\x20data\x20to\x20/mobile-training/enoch:','❌\x20Training\x20API\x20failed\x20with\x20status:','QOkRS','xMIPZ','📡\x20Training\x20API\x20response:','iWkYh','bNOGF','LaXfT','uBsBg','NYtck','/mobile-training/enoch','📡\x20Training\x20API\x20response\x20status:','text','yqzPs','IHTtm','parse','MsQMd','mNhdH','Training\x20API\x20failed:\x20','\x20-\x20','elrBi','aVuoh','sLicx','success','isTraining','aLcTN','aWYaz','unmjj','OVfvw','tMoJY','features','DlpZH','PYiVI'];_0x1953=function(){return _0xf6ac51;};return _0x1953();}export const getHealthCheck=async()=>{const _0x51e526={'VWWKk':function(_0x1927c5,_0x3492e2,_0x43e10e){return _0x1927c5(_0x3492e2,_0x43e10e);},'GhWBj':_0x1c6d(0x19)};try{const _0x4ccfd3=await _0x51e526['VWWKk'](fetch,API_BASE_URL+_0x1c6d(0x1a),{'method':'GET','headers':{'Content-Type':'application/json'}});if(!_0x4ccfd3['ok']){const _0x32f7ca=await _0x4ccfd3[_0x1c6d(0xb)]();throw new Error(_0x32f7ca[_0x1c6d(0xc)]||_0x1c6d(0xd)+_0x4ccfd3[_0x1c6d(0xe)]);}return await _0x4ccfd3[_0x1c6d(0xb)]();}catch(_0x3d418c){console[_0x1c6d(0xc)](_0x51e526['GhWBj'],_0x3d418c);throw _0x3d418c;}};export const startEnochTrainingWithYouTubeCheck=async _0x2f9f4a=>{const _0x1963e1={'hEgxL':function(_0x39a322,_0x564f66){return _0x39a322!==_0x564f66;},'EDQKu':_0x1c6d(0x1b),'zOLXc':_0x1c6d(0x1c),'qrPCx':_0x1c6d(0x1d),'FIxBo':function(_0xde01d5,_0xa48dfa){return _0xde01d5(_0xa48dfa);},'jWwXZ':_0x1c6d(0x1e),'Ceiyq':_0x1c6d(0x1f),'dRxOK':_0x1c6d(0x20),'bpFUx':_0x1c6d(0x21),'SuMRI':'🚀\x20[TRAINING]\x20Starting\x20training\x20-\x20backend\x20handles\x20all\x20YouTube\x20cases\x20automatically','izcUL':_0x1c6d(0x22),'afbGP':_0x1c6d(0x23)};try{if(_0x1963e1[_0x1c6d(0x24)](_0x1963e1['EDQKu'],_0x1c6d(0x1b)))throw new _0xb5337a(_0x1c6d(0x1));else{const _0x2e1d5b=_0x1963e1[_0x1c6d(0x25)]['split']('|');let _0x453ff5=0x0;while(!![]){switch(_0x2e1d5b[_0x453ff5++]){case'0':console['log'](_0x1963e1[_0x1c6d(0x26)]);continue;case'1':return await _0x1963e1[_0x1c6d(0x27)](startEnochTraining,_0x2f9f4a);case'2':console[_0x1c6d(0x28)](_0x1963e1[_0x1c6d(0x29)]);continue;case'3':console['log'](_0x1963e1[_0x1c6d(0x2a)]);continue;case'4':console['log'](_0x1963e1[_0x1c6d(0x2b)],_0x2f9f4a[_0x1c6d(0x2c)],_0x1963e1[_0x1c6d(0x2d)]);continue;case'5':console['log'](_0x1963e1[_0x1c6d(0x2e)]);continue;case'6':console[_0x1c6d(0x28)](_0x1963e1[_0x1c6d(0x2f)]);continue;}break;}}}catch(_0x58b65a){console[_0x1c6d(0xc)](_0x1963e1[_0x1c6d(0x30)],_0x58b65a);throw _0x58b65a;}};export const startEnochTraining=async _0x46b82e=>{const _0x4fbcac={'aVuoh':_0x1c6d(0x31),'iWkYh':function(_0x2da5f6,_0x4723e8){return _0x2da5f6===_0x4723e8;},'bNOGF':'UaqdK','LaXfT':function(_0x355556){return _0x355556();},'uBsBg':_0x1c6d(0x1),'KfUSF':_0x1c6d(0x32),'NYtck':function(_0x5e0f01,_0x52fcca,_0x5a7126){return _0x5e0f01(_0x52fcca,_0x5a7126);},'oafCC':_0x1c6d(0x33),'yqzPs':'Error:','IHTtm':_0x1c6d(0x34),'xknAb':_0x1c6d(0x35),'MsQMd':function(_0x3c4b3d,_0x1bff6e){return _0x3c4b3d!==_0x1bff6e;},'elrBi':_0x1c6d(0x36)};try{if(_0x4fbcac[_0x1c6d(0x37)](_0x4fbcac[_0x1c6d(0x38)],_0x4fbcac[_0x1c6d(0x38)])){const _0x22ebec=await _0x4fbcac[_0x1c6d(0x39)](getAuthToken);if(!_0x22ebec)throw new Error(_0x4fbcac[_0x1c6d(0x3a)]);console[_0x1c6d(0x28)](_0x4fbcac['KfUSF'],_0x46b82e);const _0x2fc9cf=await _0x4fbcac[_0x1c6d(0x3b)](fetch,API_BASE_URL+_0x1c6d(0x3c),{'method':'POST','headers':{'Content-Type':'application/json','Authorization':_0x22ebec},'body':JSON['stringify'](_0x46b82e)});console[_0x1c6d(0x28)](_0x1c6d(0x3d),_0x2fc9cf[_0x1c6d(0xe)]);if(!_0x2fc9cf['ok']){const _0x4706a5=await _0x2fc9cf[_0x1c6d(0x3e)]();console['error'](_0x4fbcac['oafCC'],_0x2fc9cf[_0x1c6d(0xe)],_0x4fbcac[_0x1c6d(0x3f)],_0x4706a5);try{if(_0x4fbcac[_0x1c6d(0x37)](_0x4fbcac[_0x1c6d(0x40)],_0x4fbcac['xknAb'])){_0x330854[_0x1c6d(0xc)](_0x1c6d(0x23),_0x58dfd0);throw _0x1ea44f;}else{const _0x5040ed=JSON[_0x1c6d(0x41)](_0x4706a5);throw new Error(_0x5040ed[_0x1c6d(0xc)]||_0x1c6d(0xd)+_0x2fc9cf[_0x1c6d(0xe)]);}}catch(_0x5efba3){if(_0x4fbcac[_0x1c6d(0x42)](_0x1c6d(0x43),'HygFC'))throw new Error(_0x1c6d(0x44)+_0x2fc9cf[_0x1c6d(0xe)]+_0x1c6d(0x45)+_0x4706a5);else{_0x4cf34a['error'](_0x1c6d(0x4),_0x55f5bb);throw _0x192d04;}}}const _0x2e1be7=await _0x2fc9cf[_0x1c6d(0xb)]();return console[_0x1c6d(0x28)](_0x4fbcac[_0x1c6d(0x46)],_0x2e1be7),_0x2e1be7;}else{_0x24b4f2[_0x1c6d(0xc)](_0x4fbcac['aVuoh'],_0x2071f2);throw _0x279985;}}catch(_0x1ee301){console[_0x1c6d(0xc)](_0x4fbcac[_0x1c6d(0x47)],_0x1ee301);throw _0x1ee301;}};export const isTrainingInProgress=async _0x5b37e7=>{const _0x9fe0e5={'sLicx':function(_0x2e36d3,_0x53002e){return _0x2e36d3(_0x53002e);},'aLcTN':_0x1c6d(0x11)};try{const _0x3bff48=await _0x9fe0e5[_0x1c6d(0x48)](getTrainingStatus,_0x5b37e7);return _0x3bff48[_0x1c6d(0x49)]&&_0x3bff48[_0x1c6d(0x4a)];}catch(_0x557404){return console[_0x1c6d(0x14)](_0x9fe0e5[_0x1c6d(0x4b)],_0x557404),![];}};export const getTrainingFeatures=async()=>{const _0xe6f8a4={'DlpZH':_0x1c6d(0x1),'unmjj':function(_0x1707dd,_0x1f6b28){return _0x1707dd===_0x1f6b28;},'OVfvw':_0x1c6d(0x4c),'tMoJY':function(_0x576342){return _0x576342();},'PYiVI':'⚠️\x20Could\x20not\x20get\x20training\x20features:'};try{if(_0xe6f8a4[_0x1c6d(0x4d)](_0xe6f8a4[_0x1c6d(0x4e)],_0xe6f8a4[_0x1c6d(0x4e)])){const _0x2020e2=await _0xe6f8a4[_0x1c6d(0x4f)](getHealthCheck);return _0x2020e2[_0x1c6d(0x50)];}else throw new _0x2a14ed(_0xe6f8a4[_0x1c6d(0x51)]);}catch(_0x3d4f74){return console['warn'](_0xe6f8a4[_0x1c6d(0x52)],_0x3d4f74),null;}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Linking}from'react-native';function _0x2a1a(_0x5a4bca,_0x2a1a09){_0x5a4bca=_0x5a4bca-0x0;const _0x43e685=_0x5a4b();let _0xa6e8c7=_0x43e685[_0x5a4bca];return _0xa6e8c7;}function _0x5a4b(){const _0x2db63f=['YOUR_INSTAGRAM_CLIENT_ID','https://api.instagram.com/oauth/access_token','code','onairosanime://auth/youtube','https://accounts.google.com/o/oauth2/auth','https://oauth2.googleapis.com/token','YOUR_PINTEREST_CLIENT_ID','boards:read,pins:read','https://api.pinterest.com/v5/oauth/token','YOUR_REDDIT_CLIENT_ID','onairosanime://auth/reddit','identity,read','https://www.reddit.com/api/v1/authorize','https://www.reddit.com/api/v1/access_token','random','substring','alciY','url','addEventListener','bDCjv','function','wPcDh','WYXxo','JcuAo','removeAllListeners','KqzRU','lfyyJ','EynCc','SFSbv','ngruf','onairosanime://auth/','BPhDm','state','error','kufkK','AJrfH','xAdAr','Error\x20handling\x20OAuth\x20deep\x20link:','kyVqI','aeJIa','startsWith','gnOuv','LnthN','searchParams','get','rnKvR','PvVAX','XKxTw','uZsUe','qDIMy','rZOTi','OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','YHyUR','dIagy','gzcZj','gmhqI','OAuth\x20error:\x20','InYYC','XjEgy','Error\x20disconnecting\x20platform\x20(','sgEnE','NMMjw','Unsupported\x20platform:\x20','No\x20authorization\x20code\x20received','KlXma','authorization_code','application/x-www-form-urlencoded','Failed\x20to\x20exchange\x20code\x20for\x20token','qhqBZ','kAabv','iRJKP','ixZEm','clientId','oAQmZ','xftdM','toString','AUbGZ','YkoZs','qbxpi','zOvVn','access_token','refresh_token','expires_in','username','Error\x20exchanging\x20code\x20for\x20token\x20(','instagram','youtube','https://www.googleapis.com/youtube/v3/channels?part=snippet&mine=true','pinterest','https://api.pinterest.com/v5/user_account','reddit','https://oauth.reddit.com/api/v1/me','Failed\x20to\x20fetch\x20user\x20info','lmwyG','tQdFK','Bearer\x20','CQaEM','CyrHU','WNTaj','tdNfl','WTyNt','json','MAvVI','fToGy','items','snippet','title','full_name','rGMWs','name','YKjtC','VAduR','Error\x20fetching\x20user\x20info\x20(','LfMIy','client_id','redirect_uri','scope','Cfuiz','BWRQZ','Qhmia','WkkVY','cfmBE','JEzpq','oWwdc','Xlpxm','authorizationEndpoint','append','redirectUri','response_type','responseType','openURL','sJMYC','nTZtA','oSoWm','DdRcw','XYjrS','TQzlR','FggkA','/users/disconnect-platform','qKFrh','wWpLK','post','platforms','uqYGp','SJhPG','uAKLv','FEfMU','bqPcu','DaXfr','cxRPF','kHkLf','hnroW','Lkquw','NZbeK','idRmj','APSvr','userId','token','refreshToken','expiresIn','gOTKK','now','RkqDL','CGrIc','piljS','IQSWk','Error\x20storing\x20platform\x20connection\x20('];_0x5a4b=function(){return _0x2db63f;};return _0x5a4b();}import{updateCredentials}from'../utils/secureStorage';import{sha256}from'../utils/crypto';import{onairosApi}from'../api';import{API_CONFIG}from'../config/api';const OAUTH_CONFIGS={'instagram':{'clientId':_0x2a1a(0x0),'redirectUri':'onairosanime://auth/instagram','scope':'user_profile,user_media','authorizationEndpoint':'https://api.instagram.com/oauth/authorize','tokenEndpoint':_0x2a1a(0x1),'responseType':_0x2a1a(0x2)},'youtube':{'clientId':'YOUR_YOUTUBE_CLIENT_ID','redirectUri':_0x2a1a(0x3),'scope':'https://www.googleapis.com/auth/youtube.readonly','authorizationEndpoint':_0x2a1a(0x4),'tokenEndpoint':_0x2a1a(0x5),'responseType':_0x2a1a(0x2)},'pinterest':{'clientId':_0x2a1a(0x6),'redirectUri':'onairosanime://auth/pinterest','scope':_0x2a1a(0x7),'authorizationEndpoint':'https://www.pinterest.com/oauth/','tokenEndpoint':_0x2a1a(0x8),'responseType':'code'},'reddit':{'clientId':_0x2a1a(0x9),'redirectUri':_0x2a1a(0xa),'scope':_0x2a1a(0xb),'authorizationEndpoint':_0x2a1a(0xc),'tokenEndpoint':_0x2a1a(0xd),'responseType':_0x2a1a(0x2)}},generateState=()=>{const _0x52d870={'alciY':function(_0x1c74db,_0x519097){return _0x1c74db(_0x519097);}},_0x1bdfbb=Math[_0x2a1a(0xe)]()['toString'](0x24)[_0x2a1a(0xf)](0x2,0xf);return _0x52d870[_0x2a1a(0x10)](sha256,_0x1bdfbb)['substring'](0x0,0xa);};export const initializeOAuthService=()=>{const _0x6f435a={'bDCjv':_0x2a1a(0x11)};Linking[_0x2a1a(0x12)](_0x6f435a[_0x2a1a(0x13)],handleDeepLink);};export const cleanupOAuthService=()=>{const _0x4f2c39={'ngruf':'url','JcuAo':function(_0x570617,_0x468378){return _0x570617===_0x468378;},'KqzRU':_0x2a1a(0x14),'lfyyJ':function(_0x3d290a,_0x41cded){return _0x3d290a!==_0x41cded;},'EynCc':_0x2a1a(0x15),'SFSbv':_0x2a1a(0x16)};_0x4f2c39[_0x2a1a(0x17)](typeof Linking[_0x2a1a(0x18)],_0x4f2c39[_0x2a1a(0x19)])&&(_0x4f2c39[_0x2a1a(0x1a)](_0x4f2c39[_0x2a1a(0x1b)],_0x4f2c39[_0x2a1a(0x1c)])?Linking[_0x2a1a(0x18)](_0x4f2c39[_0x2a1a(0x1d)]):Linking[_0x2a1a(0x18)](_0x4f2c39['ngruf']));};let currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;const handleDeepLink=async _0x3cc1d7=>{const _0x476c3e={'rZOTi':function(_0x24227a,_0x3590db){return _0x24227a(_0x3590db);},'gzcZj':'OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','IkHfO':_0x2a1a(0x1e),'gnOuv':function(_0x547f9c,_0x175a79){return _0x547f9c!==_0x175a79;},'KEWcO':_0x2a1a(0x1f),'rnKvR':_0x2a1a(0x20),'PvVAX':_0x2a1a(0x21),'XKxTw':function(_0x1200de,_0x10db04){return _0x1200de!==_0x10db04;},'uZsUe':'lCHxz','YHyUR':function(_0x2222a4,_0x4388af){return _0x2222a4===_0x4388af;},'dIagy':_0x2a1a(0x22),'lixLt':'wIcBd','gmhqI':function(_0x5a604c,_0x3970d0){return _0x5a604c(_0x3970d0);},'InYYC':function(_0x367cdf,_0x5ea54d,_0x5dbd85){return _0x367cdf(_0x5ea54d,_0x5dbd85);},'XjEgy':_0x2a1a(0x23),'sgEnE':function(_0x2afbe0,_0xcfdf5e){return _0x2afbe0===_0xcfdf5e;},'rhbDo':'FrauX','NMMjw':_0x2a1a(0x24),'LcDiE':_0x2a1a(0x25),'KlXma':function(_0x43f1ec,_0x388098){return _0x43f1ec!==_0x388098;},'rMgVK':_0x2a1a(0x26),'jVGAO':_0x2a1a(0x27)};try{const {url:_0x417c61}=_0x3cc1d7;if(!_0x417c61[_0x2a1a(0x28)](_0x476c3e['IkHfO']))return;const _0x4fa799=_0x417c61['split'](_0x476c3e['IkHfO'])[0x1]['split']('?')[0x0];if(_0x4fa799!==currentOAuthPlatform){if(_0x476c3e[_0x2a1a(0x29)](_0x2a1a(0x2a),_0x476c3e['KEWcO']))return;else{_0x4751c5[_0x2a1a(0x21)]('Error\x20exchanging\x20code\x20for\x20token\x20('+_0x594d23+'):',_0x14495f);throw _0x17dd23;}}const _0x7cc297=new URL(_0x417c61)[_0x2a1a(0x2b)],_0x3e10c3=_0x7cc297['get'](_0x2a1a(0x2)),_0x1a771c=_0x7cc297[_0x2a1a(0x2c)](_0x476c3e[_0x2a1a(0x2d)]),_0x1ee129=_0x7cc297[_0x2a1a(0x2c)](_0x476c3e[_0x2a1a(0x2e)]);if(_0x1a771c!==currentOAuthState){if(_0x476c3e[_0x2a1a(0x2f)](_0x476c3e[_0x2a1a(0x30)],_0x2a1a(0x31))){currentOAuthReject&&_0x476c3e[_0x2a1a(0x32)](currentOAuthReject,new Error(_0x2a1a(0x33)));return;}else _0x42b3f0=null,_0x7b856f=null,_0x3ca4be=null,_0x40f34b=null;}if(_0x1ee129){if(_0x476c3e[_0x2a1a(0x34)](_0x476c3e[_0x2a1a(0x35)],_0x476c3e['lixLt'])){_0x4aba9a&&_0x476c3e[_0x2a1a(0x32)](_0x2ac183,new _0x481dbd(_0x476c3e[_0x2a1a(0x36)]));return;}else{currentOAuthReject&&_0x476c3e[_0x2a1a(0x37)](currentOAuthReject,new Error(_0x2a1a(0x38)+_0x1ee129));return;}}if(_0x3e10c3){const _0x1419ca=await _0x476c3e[_0x2a1a(0x39)](exchangeCodeForToken,_0x4fa799,_0x3e10c3);if(currentOAuthResolve){if(_0x476c3e[_0x2a1a(0x3a)]===_0x476c3e[_0x2a1a(0x3a)])_0x476c3e[_0x2a1a(0x32)](currentOAuthResolve,_0x1419ca);else return _0x2d54b3[_0x2a1a(0x21)](_0x2a1a(0x3b)+_0x5e7db3+'):',_0x2e55ea),![];}}else{if(currentOAuthReject){if(_0x476c3e[_0x2a1a(0x3c)](_0x476c3e['rhbDo'],_0x476c3e[_0x2a1a(0x3d)]))throw new _0x5135ba(_0x2a1a(0x3e)+_0x1b0af1);else _0x476c3e['rZOTi'](currentOAuthReject,new Error(_0x2a1a(0x3f)));}}}catch(_0x5957e0){console[_0x2a1a(0x21)](_0x476c3e['LcDiE'],_0x5957e0),currentOAuthReject&¤tOAuthReject(_0x5957e0);}finally{_0x476c3e[_0x2a1a(0x40)](_0x476c3e['rMgVK'],_0x476c3e['jVGAO'])?(currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null):_0x3a5403(new _0x21c9bd(_0x2a1a(0x33)));}},exchangeCodeForToken=async(_0x4096eb,_0xaa8d8f)=>{const _0x1dccb3={'ixZEm':function(_0x556b79,_0x54e82f){return _0x556b79(_0x54e82f);},'qbxpi':_0x2a1a(0x11),'qhqBZ':function(_0x5eaea4,_0x5c040a){return _0x5eaea4!==_0x5c040a;},'kAabv':'iRJKP','eVwxg':_0x2a1a(0x41),'oAQmZ':function(_0x560e0b,_0x3e347d,_0x4b5e40){return _0x560e0b(_0x3e347d,_0x4b5e40);},'xftdM':_0x2a1a(0x42),'AUbGZ':'YkoZs','zOvVn':_0x2a1a(0x43)};try{if(_0x1dccb3[_0x2a1a(0x44)](_0x1dccb3[_0x2a1a(0x45)],_0x2a1a(0x46)))_0x1dccb3[_0x2a1a(0x47)](_0x198017,_0x38790c);else{const _0x1187f5=OAUTH_CONFIGS[_0x4096eb];if(!_0x1187f5)throw new Error(_0x2a1a(0x3e)+_0x4096eb);const _0x5e5a62=new URLSearchParams({'grant_type':_0x1dccb3['eVwxg'],'code':_0xaa8d8f,'redirect_uri':_0x1187f5['redirectUri'],'client_id':_0x1187f5[_0x2a1a(0x48)]}),_0x2edb15=await _0x1dccb3[_0x2a1a(0x49)](fetch,_0x1187f5['tokenEndpoint'],{'method':'POST','headers':{'Content-Type':_0x1dccb3[_0x2a1a(0x4a)]},'body':_0x5e5a62[_0x2a1a(0x4b)]()}),_0xd1c6cf=await _0x2edb15['json']();if(!_0x2edb15['ok']){if(_0x1dccb3[_0x2a1a(0x4c)]!==_0x2a1a(0x4d))Linking[_0x2a1a(0x12)](_0x1dccb3[_0x2a1a(0x4e)],_0x4565fa);else throw new Error(_0xd1c6cf['error']||_0x1dccb3[_0x2a1a(0x4f)]);}const _0x27a781=await fetchUserInfo(_0x4096eb,_0xd1c6cf[_0x2a1a(0x50)]);return{'token':_0xd1c6cf['access_token'],'refreshToken':_0xd1c6cf[_0x2a1a(0x51)],'expiresIn':_0xd1c6cf[_0x2a1a(0x52)],'username':_0x27a781[_0x2a1a(0x53)],'userId':_0x27a781['id']};}}catch(_0x6213f5){console[_0x2a1a(0x21)](_0x2a1a(0x54)+_0x4096eb+'):',_0x6213f5);throw _0x6213f5;}},fetchUserInfo=async(_0xa09540,_0x115e3b)=>{const _0x5e4778={'LfMIy':function(_0x5b4114,_0x4fba5b){return _0x5b4114(_0x4fba5b);},'fToGy':_0x2a1a(0x55),'CQaEM':_0x2a1a(0x56),'CyrHU':_0x2a1a(0x57),'WNTaj':_0x2a1a(0x58),'tdNfl':_0x2a1a(0x59),'rGMWs':_0x2a1a(0x5a),'oMiOM':_0x2a1a(0x5b),'WTyNt':function(_0x36c5b7,_0xea60e9,_0x20c47e){return _0x36c5b7(_0xea60e9,_0x20c47e);},'MAvVI':_0x2a1a(0x5c),'YKjtC':_0x2a1a(0x5d),'VAduR':_0x2a1a(0x5e)};try{let _0x487a2a,_0x17215d={'Authorization':_0x2a1a(0x5f)+_0x115e3b};switch(_0xa09540){case _0x5e4778['fToGy']:_0x487a2a='https://graph.instagram.com/me?fields=id,username';break;case _0x5e4778[_0x2a1a(0x60)]:_0x487a2a=_0x5e4778[_0x2a1a(0x61)];break;case _0x5e4778[_0x2a1a(0x62)]:_0x487a2a=_0x5e4778[_0x2a1a(0x63)];break;case _0x5e4778['rGMWs']:_0x487a2a=_0x5e4778['oMiOM'];break;default:throw new Error(_0x2a1a(0x3e)+_0xa09540);}const _0x2d5cb2=await _0x5e4778[_0x2a1a(0x64)](fetch,_0x487a2a,{'headers':_0x17215d}),_0x3a150e=await _0x2d5cb2[_0x2a1a(0x65)]();if(!_0x2d5cb2['ok'])throw new Error(_0x3a150e[_0x2a1a(0x21)]||_0x5e4778[_0x2a1a(0x66)]);switch(_0xa09540){case _0x5e4778[_0x2a1a(0x67)]:return{'id':_0x3a150e['id'],'username':_0x3a150e[_0x2a1a(0x53)]};case _0x5e4778['CQaEM']:return{'id':_0x3a150e['items'][0x0]['id'],'username':_0x3a150e[_0x2a1a(0x68)][0x0][_0x2a1a(0x69)][_0x2a1a(0x6a)]};case _0x5e4778[_0x2a1a(0x62)]:return{'id':_0x3a150e['id'],'username':_0x3a150e[_0x2a1a(0x53)]||_0x3a150e[_0x2a1a(0x6b)]};case _0x5e4778[_0x2a1a(0x6c)]:return{'id':_0x3a150e['id'],'username':_0x3a150e[_0x2a1a(0x6d)]};default:throw new Error(_0x2a1a(0x3e)+_0xa09540);}}catch(_0x45495d){if(_0x5e4778[_0x2a1a(0x6e)]!==_0x5e4778[_0x2a1a(0x6f)]){console['error'](_0x2a1a(0x70)+_0xa09540+'):',_0x45495d);throw _0x45495d;}else _0x5e4778[_0x2a1a(0x71)](_0x132bf0,new _0x10ba97(_0x2a1a(0x38)+_0x425205));}};export const connectPlatform=_0x6a83e0=>{const _0x2c6d27={'oWwdc':function(_0x25885f,_0x21d24b){return _0x25885f(_0x21d24b);},'BWRQZ':_0x2a1a(0x72),'Qhmia':_0x2a1a(0x73),'TswQw':_0x2a1a(0x74),'JgOrK':_0x2a1a(0x20),'cfmBE':function(_0x4687d9,_0x40025e){return _0x4687d9!==_0x40025e;},'WkkVY':_0x2a1a(0x75),'JEzpq':'RBKPN','Xlpxm':function(_0x3428cf){return _0x3428cf();},'sJMYC':'nTZtA'};return new Promise((_0x3159e0,_0x6ae42a)=>{const _0x3bc234={'oSoWm':_0x2c6d27[_0x2a1a(0x76)],'DdRcw':_0x2c6d27[_0x2a1a(0x77)],'XYjrS':_0x2c6d27['TswQw'],'TQzlR':_0x2c6d27['JgOrK']};if(_0x2c6d27['cfmBE'](_0x2c6d27[_0x2a1a(0x78)],_0x2c6d27[_0x2a1a(0x78)]))throw new _0x5ebe94(_0x2a1a(0x3e)+_0x3f15ca);else try{const _0x201224=OAUTH_CONFIGS[_0x6a83e0];if(!_0x201224){if(_0x2c6d27[_0x2a1a(0x79)](_0x2c6d27[_0x2a1a(0x7a)],'RBKPN')){const _0x4af796=_0x1a3b82[_0x2a1a(0xe)]()['toString'](0x24)['substring'](0x2,0xf);return _0x2c6d27[_0x2a1a(0x7b)](_0x5961ae,_0x4af796)['substring'](0x0,0xa);}else throw new Error('Unsupported\x20platform:\x20'+_0x6a83e0);}const _0x3b9a5b=_0x2c6d27[_0x2a1a(0x7c)](generateState),_0x1bf8ee=new URL(_0x201224[_0x2a1a(0x7d)]);_0x1bf8ee['searchParams']['append'](_0x2c6d27[_0x2a1a(0x76)],_0x201224['clientId']),_0x1bf8ee['searchParams'][_0x2a1a(0x7e)](_0x2c6d27[_0x2a1a(0x77)],_0x201224[_0x2a1a(0x7f)]),_0x1bf8ee[_0x2a1a(0x2b)]['append'](_0x2a1a(0x80),_0x201224[_0x2a1a(0x81)]),_0x1bf8ee[_0x2a1a(0x2b)][_0x2a1a(0x7e)](_0x2c6d27['TswQw'],_0x201224[_0x2a1a(0x74)]),_0x1bf8ee[_0x2a1a(0x2b)][_0x2a1a(0x7e)]('state',_0x3b9a5b),currentOAuthState=_0x3b9a5b,currentOAuthPlatform=_0x6a83e0,currentOAuthResolve=_0x3159e0,currentOAuthReject=_0x6ae42a,Linking[_0x2a1a(0x82)](_0x1bf8ee[_0x2a1a(0x4b)]());}catch(_0x31e92f){if(_0x2c6d27[_0x2a1a(0x83)]!==_0x2a1a(0x84))try{const _0xb26813=_0x36072d[_0x1ce63d];if(!_0xb26813)throw new _0x2dcb5b(_0x2a1a(0x3e)+_0x5f38d9);const _0x3b4017=_0xdab5e9(),_0x57fd8a=new _0x3dfec6(_0xb26813[_0x2a1a(0x7d)]);_0x57fd8a[_0x2a1a(0x2b)]['append'](_0x3bc234[_0x2a1a(0x85)],_0xb26813[_0x2a1a(0x48)]),_0x57fd8a[_0x2a1a(0x2b)][_0x2a1a(0x7e)](_0x3bc234[_0x2a1a(0x86)],_0xb26813[_0x2a1a(0x7f)]),_0x57fd8a[_0x2a1a(0x2b)][_0x2a1a(0x7e)](_0x2a1a(0x80),_0xb26813['responseType']),_0x57fd8a['searchParams']['append'](_0x3bc234[_0x2a1a(0x87)],_0xb26813[_0x2a1a(0x74)]),_0x57fd8a[_0x2a1a(0x2b)]['append'](_0x3bc234[_0x2a1a(0x88)],_0x3b4017),_0x2440a9=_0x3b4017,_0x28a6ce=_0x3ec6c0,_0x320f10=_0x291079,_0x2de2e4=_0x2d86ea,Linking[_0x2a1a(0x82)](_0x57fd8a[_0x2a1a(0x4b)]());}catch(_0x3b4999){_0x563639(_0x3b4999);}else _0x6ae42a(_0x31e92f);}});};export const disconnectPlatform=async(_0x32da34,_0x4b1e8)=>{const _0x5b0acf={'qqJNE':function(_0x182a40,_0x575ba2){return _0x182a40(_0x575ba2);},'SJhPG':_0x2a1a(0x3f),'qKFrh':function(_0x34c101,_0x1c1874){return _0x34c101===_0x1c1874;},'wWpLK':_0x2a1a(0x89),'EfvMp':_0x2a1a(0x8a),'GQuWe':function(_0x1e6314,_0x20e87f){return _0x1e6314===_0x20e87f;},'uqYGp':'DZKFQ'};try{if(_0x5b0acf[_0x2a1a(0x8b)](_0x5b0acf['wWpLK'],_0x5b0acf[_0x2a1a(0x8c)])){await onairosApi[_0x2a1a(0x8d)](_0x5b0acf['EfvMp'],{'platform':_0x32da34,'username':_0x4b1e8[_0x2a1a(0x53)]});const _0x199fb5={..._0x4b1e8[_0x2a1a(0x8e)]};return _0x199fb5&&_0x32da34 in _0x199fb5&&delete _0x199fb5[_0x32da34],await updateCredentials({..._0x4b1e8,'platforms':_0x199fb5}),!![];}else return;}catch(_0x527d03){if(_0x5b0acf['GQuWe'](_0x5b0acf[_0x2a1a(0x8f)],_0x5b0acf[_0x2a1a(0x8f)]))return console['error']('Error\x20disconnecting\x20platform\x20('+_0x32da34+'):',_0x527d03),![];else _0x125ee1&&_0x5b0acf['qqJNE'](_0x3354de,new _0x574031(_0x5b0acf[_0x2a1a(0x90)]));}};export const storePlatformConnection=async(_0x2da6bc,_0x1e8648,_0x53093a)=>{const _0x1024ae={'IQSWk':function(_0x260cb9,_0x49bad1){return _0x260cb9(_0x49bad1);},'DaXfr':_0x2a1a(0x91),'cxRPF':_0x2a1a(0x92),'kHkLf':function(_0x2aa8ac,_0x1e8e38){return _0x2aa8ac===_0x1e8e38;},'hnroW':_0x2a1a(0x56),'piljS':_0x2a1a(0x58),'Lkquw':function(_0x1850f5,_0x591a27){return _0x1850f5===_0x591a27;},'NZbeK':'reddit','idRmj':function(_0x15aff7,_0xc7bb06){return _0x15aff7===_0xc7bb06;},'APSvr':_0x2a1a(0x93),'gOTKK':function(_0x218dcf,_0x16c075){return _0x218dcf+_0x16c075;},'RkqDL':function(_0x530080,_0x24e0af){return _0x530080*_0x24e0af;},'CGrIc':_0x2a1a(0x55),'RDDUF':function(_0x288cf3,_0x1fddb2){return _0x288cf3===_0x1fddb2;}};try{if(_0x1024ae[_0x2a1a(0x94)]===_0x1024ae[_0x2a1a(0x95)])delete _0x14ed6b[_0x23deee];else{const _0x834cb0=_0x2da6bc==='instagram'||_0x1024ae[_0x2a1a(0x96)](_0x2da6bc,_0x1024ae[_0x2a1a(0x97)])||_0x2da6bc===_0x1024ae['piljS']||_0x1024ae[_0x2a1a(0x98)](_0x2da6bc,_0x1024ae[_0x2a1a(0x99)]);if(!_0x834cb0){if(_0x1024ae[_0x2a1a(0x9a)](_0x1024ae[_0x2a1a(0x9b)],'bqPcu'))throw new Error(_0x2a1a(0x3e)+_0x2da6bc);else _0x1024ae['IQSWk'](_0x2b8a3a,_0x54d60c);}const _0x134c12={..._0x53093a[_0x2a1a(0x8e)]},_0x4d0a56={'username':_0x1e8648[_0x2a1a(0x53)],'userId':_0x1e8648[_0x2a1a(0x9c)],'token':_0x1e8648[_0x2a1a(0x9d)],'refreshToken':_0x1e8648[_0x2a1a(0x9e)],'expiresAt':_0x1e8648[_0x2a1a(0x9f)]?_0x1024ae[_0x2a1a(0xa0)](Date[_0x2a1a(0xa1)](),_0x1024ae[_0x2a1a(0xa2)](_0x1e8648[_0x2a1a(0x9f)],0x3e8)):null,'connectedAt':Date[_0x2a1a(0xa1)]()};if(_0x1024ae[_0x2a1a(0x98)](_0x2da6bc,_0x1024ae[_0x2a1a(0xa3)]))_0x134c12['instagram']=_0x4d0a56;else{if(_0x2da6bc===_0x2a1a(0x56))_0x134c12[_0x2a1a(0x56)]=_0x4d0a56;else{if(_0x1024ae['RDDUF'](_0x2da6bc,_0x1024ae[_0x2a1a(0xa4)]))_0x134c12[_0x2a1a(0x58)]=_0x4d0a56;else{if(_0x1024ae[_0x2a1a(0x98)](_0x2da6bc,_0x2a1a(0x5a)))_0x134c12[_0x2a1a(0x5a)]=_0x4d0a56;}}}return await _0x1024ae[_0x2a1a(0xa5)](updateCredentials,{..._0x53093a,'platforms':_0x134c12}),!![];}}catch(_0x26f46a){return console[_0x2a1a(0x21)](_0x2a1a(0xa6)+_0x2da6bc+'):',_0x26f46a),![];}};export const OAuthService={'initializeOAuthService':initializeOAuthService,'cleanupOAuthService':cleanupOAuthService,'connectPlatform':connectPlatform,'disconnectPlatform':disconnectPlatform,'storePlatformConnection':storePlatformConnection,'_apiBaseUrl':''+API_CONFIG['BASE_URL']};
|
|
1
|
+
function _0x9b4e(_0x3587ed,_0x9b4e8f){_0x3587ed=_0x3587ed-0x0;const _0x2305c5=_0x3587();let _0x2424fd=_0x2305c5[_0x3587ed];return _0x2424fd;}import{Linking}from'react-native';import{updateCredentials}from'../utils/secureStorage';import{sha256}from'../utils/crypto';import{onairosApi}from'../api';import{API_CONFIG}from'../config/api';const OAUTH_CONFIGS={'instagram':{'clientId':_0x9b4e(0x0),'redirectUri':'onairosanime://auth/instagram','scope':_0x9b4e(0x1),'authorizationEndpoint':_0x9b4e(0x2),'tokenEndpoint':'https://api.instagram.com/oauth/access_token','responseType':_0x9b4e(0x3)},'youtube':{'clientId':_0x9b4e(0x4),'redirectUri':'onairosanime://auth/youtube','scope':_0x9b4e(0x5),'authorizationEndpoint':_0x9b4e(0x6),'tokenEndpoint':_0x9b4e(0x7),'responseType':'code'},'pinterest':{'clientId':'YOUR_PINTEREST_CLIENT_ID','redirectUri':_0x9b4e(0x8),'scope':_0x9b4e(0x9),'authorizationEndpoint':_0x9b4e(0xa),'tokenEndpoint':_0x9b4e(0xb),'responseType':_0x9b4e(0x3)},'reddit':{'clientId':_0x9b4e(0xc),'redirectUri':_0x9b4e(0xd),'scope':'identity,read','authorizationEndpoint':'https://www.reddit.com/api/v1/authorize','tokenEndpoint':_0x9b4e(0xe),'responseType':_0x9b4e(0x3)}},generateState=()=>{const _0x5c1acc={'XbRLN':function(_0x4e46f4,_0x4580f1){return _0x4e46f4(_0x4580f1);}},_0x11f073=Math[_0x9b4e(0xf)]()[_0x9b4e(0x10)](0x24)['substring'](0x2,0xf);return _0x5c1acc[_0x9b4e(0x11)](sha256,_0x11f073)[_0x9b4e(0x12)](0x0,0xa);};export const initializeOAuthService=()=>{Linking[_0x9b4e(0x13)](_0x9b4e(0x14),handleDeepLink);};export const cleanupOAuthService=()=>{const _0x497b1e={'MFPKp':_0x9b4e(0x15),'orGBF':function(_0x52c518,_0x3c4866){return _0x52c518(_0x3c4866);},'pwdXC':function(_0x532a9a,_0x27690c){return _0x532a9a===_0x27690c;},'ANDmi':_0x9b4e(0x16),'YNdpv':_0x9b4e(0x14)};_0x497b1e[_0x9b4e(0x17)](typeof Linking[_0x9b4e(0x18)],_0x9b4e(0x19))&&(_0x497b1e['ANDmi']!==_0x9b4e(0x16)?(_0x12df8c['error'](_0x497b1e[_0x9b4e(0x1a)],_0x54c321),_0x3db516&&_0x497b1e[_0x9b4e(0x1b)](_0x21a0c1,_0x4b544c)):Linking[_0x9b4e(0x18)](_0x497b1e[_0x9b4e(0x1c)]));};let currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;const handleDeepLink=async _0x258298=>{const _0x1663fa={'nUQXR':_0x9b4e(0x1d),'uWlqw':function(_0xd74698,_0x38acbf){return _0xd74698===_0x38acbf;},'eAWJR':_0x9b4e(0x19),'XzKhX':_0x9b4e(0x14),'DyLKn':function(_0x14f108,_0x24e6bd){return _0x14f108(_0x24e6bd);},'vrFYt':function(_0x12d4f2,_0x5626f7){return _0x12d4f2!==_0x5626f7;},'NbPwK':_0x9b4e(0x1e),'BweAt':_0x9b4e(0x1f),'gtQSQ':_0x9b4e(0x20),'wGSPO':_0x9b4e(0x21),'XgBrT':function(_0x2a2682,_0x4ff509){return _0x2a2682!==_0x4ff509;},'JxHYM':_0x9b4e(0x22),'qZdRf':function(_0x5680e4,_0x5ae293){return _0x5680e4(_0x5ae293);},'CUsCf':function(_0x4d1871,_0x5f5910,_0xc96efe){return _0x4d1871(_0x5f5910,_0xc96efe);},'Mxjmy':function(_0x2eb243,_0x1eaac0){return _0x2eb243!==_0x1eaac0;},'nXrwI':_0x9b4e(0x23),'IkLKF':'BnsHX','QSHIg':_0x9b4e(0x24),'dLsbh':_0x9b4e(0x15),'OnPCT':function(_0x400c2c,_0x1de1c0){return _0x400c2c===_0x1de1c0;},'dxoZQ':_0x9b4e(0x25),'jAEse':function(_0x3eeeff,_0x246818){return _0x3eeeff(_0x246818);}};try{if(_0x1663fa[_0x9b4e(0x26)](_0x9b4e(0x27),'QpvbH')){const {url:_0x5d5c43}=_0x258298;if(!_0x5d5c43[_0x9b4e(0x28)](_0x1663fa[_0x9b4e(0x29)])){if(_0x9b4e(0x2a)!==_0x9b4e(0x2a))throw new _0x25803b(_0x21c696[_0x9b4e(0x2b)]||_0x1663fa[_0x9b4e(0x2c)]);else return;}const _0x397c7b=_0x5d5c43[_0x9b4e(0x2d)](_0x1663fa[_0x9b4e(0x29)])[0x1]['split']('?')[0x0];if(_0x397c7b!==currentOAuthPlatform)return;const _0x478ccd=new URL(_0x5d5c43)[_0x9b4e(0x2e)],_0x2f0545=_0x478ccd[_0x9b4e(0x2f)](_0x9b4e(0x3)),_0x173b9d=_0x478ccd[_0x9b4e(0x2f)](_0x1663fa[_0x9b4e(0x30)]),_0x26dff6=_0x478ccd[_0x9b4e(0x2f)](_0x9b4e(0x2b));if(_0x1663fa[_0x9b4e(0x26)](_0x173b9d,currentOAuthState)){if(currentOAuthReject){if(_0x1663fa['gtQSQ']!==_0x1663fa['gtQSQ']){_0x437e51[_0x9b4e(0x2b)]('Error\x20exchanging\x20code\x20for\x20token\x20('+_0x27e364+'):',_0x59d090);throw _0x25c3d6;}else _0x1663fa[_0x9b4e(0x31)](currentOAuthReject,new Error(_0x1663fa[_0x9b4e(0x32)]));}return;}if(_0x26dff6){if(_0x1663fa[_0x9b4e(0x33)](_0x1663fa['JxHYM'],_0x1663fa[_0x9b4e(0x34)]))_0x1663fa[_0x9b4e(0x35)](typeof Linking[_0x9b4e(0x18)],_0x1663fa[_0x9b4e(0x36)])&&Linking[_0x9b4e(0x18)](_0x1663fa[_0x9b4e(0x37)]);else{currentOAuthReject&&_0x1663fa['qZdRf'](currentOAuthReject,new Error(_0x9b4e(0x38)+_0x26dff6));return;}}if(_0x2f0545){const _0x79b66a=await _0x1663fa[_0x9b4e(0x39)](exchangeCodeForToken,_0x397c7b,_0x2f0545);currentOAuthResolve&¤tOAuthResolve(_0x79b66a);}else{if(currentOAuthReject){if(_0x1663fa[_0x9b4e(0x3a)](_0x1663fa['nXrwI'],_0x1663fa[_0x9b4e(0x3b)]))_0x1663fa[_0x9b4e(0x31)](currentOAuthReject,new Error(_0x1663fa[_0x9b4e(0x3c)]));else throw new _0xf25217(_0x9b4e(0x3d)+_0x277dd1);}}}else _0x1663fa[_0x9b4e(0x31)](_0x577235,_0x589924);}catch(_0x88f394){console['error'](_0x1663fa[_0x9b4e(0x3e)],_0x88f394),currentOAuthReject&&(_0x1663fa[_0x9b4e(0x3f)](_0x1663fa[_0x9b4e(0x40)],_0x9b4e(0x25))?_0x1663fa[_0x9b4e(0x41)](currentOAuthReject,_0x88f394):_0x1663fa[_0x9b4e(0x31)](_0x2ea1df,_0x4f554d));}finally{currentOAuthState=null,currentOAuthPlatform=null,currentOAuthResolve=null,currentOAuthReject=null;}},exchangeCodeForToken=async(_0x2db28d,_0x2f3a10)=>{const _0x10fa86={'xtzXN':'url','uZzIB':function(_0x34c816,_0x4ac0ba){return _0x34c816(_0x4ac0ba);},'WauAm':'WEFEU','rAcma':_0x9b4e(0x42),'DBRyW':function(_0x296935,_0x1631c8){return _0x296935===_0x1631c8;},'jafTk':'ObMpL'};try{const _0x47c484=OAUTH_CONFIGS[_0x2db28d];if(!_0x47c484){if(_0x10fa86[_0x9b4e(0x43)]===_0x10fa86['WauAm'])throw new Error(_0x9b4e(0x3d)+_0x2db28d);else Linking['removeAllListeners'](_0x10fa86[_0x9b4e(0x44)]);}const _0x5d30b0=new URLSearchParams({'grant_type':_0x9b4e(0x45),'code':_0x2f3a10,'redirect_uri':_0x47c484[_0x9b4e(0x46)],'client_id':_0x47c484[_0x9b4e(0x47)]}),_0x5dce71=await fetch(_0x47c484[_0x9b4e(0x48)],{'method':'POST','headers':{'Content-Type':_0x10fa86[_0x9b4e(0x49)]},'body':_0x5d30b0[_0x9b4e(0x10)]()}),_0x13213c=await _0x5dce71[_0x9b4e(0x4a)]();if(!_0x5dce71['ok'])throw new Error(_0x13213c[_0x9b4e(0x2b)]||'Failed\x20to\x20exchange\x20code\x20for\x20token');const _0x2a82db=await fetchUserInfo(_0x2db28d,_0x13213c[_0x9b4e(0x4b)]);return{'token':_0x13213c[_0x9b4e(0x4b)],'refreshToken':_0x13213c[_0x9b4e(0x4c)],'expiresIn':_0x13213c[_0x9b4e(0x4d)],'username':_0x2a82db['username'],'userId':_0x2a82db['id']};}catch(_0x10c7a8){if(_0x10fa86['DBRyW'](_0x10fa86[_0x9b4e(0x4e)],_0x10fa86[_0x9b4e(0x4e)])){console[_0x9b4e(0x2b)](_0x9b4e(0x4f)+_0x2db28d+'):',_0x10c7a8);throw _0x10c7a8;}else{_0x3124d4&&_0x10fa86[_0x9b4e(0x50)](_0x2c9886,new _0x1d67ee(_0x9b4e(0x38)+_0x56127a));return;}}},fetchUserInfo=async(_0x40ee61,_0x1a98f6)=>{const _0x277abf={'nzPMN':_0x9b4e(0x24),'vuLAX':_0x9b4e(0x51),'fmNrq':_0x9b4e(0x52),'QoEtY':_0x9b4e(0x53),'DdtwX':_0x9b4e(0x54),'vtRyX':_0x9b4e(0x55),'mOvta':function(_0x40b940,_0x5d71d1,_0x5ac4c1){return _0x40b940(_0x5d71d1,_0x5ac4c1);},'bHhXh':function(_0x181b68,_0x63db1b){return _0x181b68===_0x63db1b;},'wNCbn':_0x9b4e(0x56)};try{let _0x424d93,_0x508b89={'Authorization':_0x9b4e(0x57)+_0x1a98f6};switch(_0x40ee61){case _0x277abf[_0x9b4e(0x58)]:_0x424d93=_0x277abf['fmNrq'];break;case _0x277abf[_0x9b4e(0x59)]:_0x424d93=_0x277abf[_0x9b4e(0x5a)];break;case _0x9b4e(0x5b):_0x424d93=_0x9b4e(0x5c);break;case _0x277abf[_0x9b4e(0x5d)]:_0x424d93=_0x9b4e(0x5e);break;default:throw new Error(_0x9b4e(0x3d)+_0x40ee61);}const _0xfa6d9=await _0x277abf[_0x9b4e(0x5f)](fetch,_0x424d93,{'headers':_0x508b89}),_0x2c6d58=await _0xfa6d9['json']();if(!_0xfa6d9['ok'])throw new Error(_0x2c6d58['error']||_0x9b4e(0x1d));switch(_0x40ee61){case _0x277abf[_0x9b4e(0x58)]:return{'id':_0x2c6d58['id'],'username':_0x2c6d58[_0x9b4e(0x60)]};case _0x277abf[_0x9b4e(0x59)]:return{'id':_0x2c6d58['items'][0x0]['id'],'username':_0x2c6d58[_0x9b4e(0x61)][0x0][_0x9b4e(0x62)][_0x9b4e(0x63)]};case _0x9b4e(0x5b):return{'id':_0x2c6d58['id'],'username':_0x2c6d58['username']||_0x2c6d58[_0x9b4e(0x64)]};case _0x277abf[_0x9b4e(0x5d)]:return{'id':_0x2c6d58['id'],'username':_0x2c6d58[_0x9b4e(0x65)]};default:throw new Error(_0x9b4e(0x3d)+_0x40ee61);}}catch(_0x15bf8c){if(_0x277abf[_0x9b4e(0x66)](_0x277abf[_0x9b4e(0x67)],'FCZHr'))_0x2ea915(new _0x1d8a2a(_0x277abf[_0x9b4e(0x68)]));else{console[_0x9b4e(0x2b)](_0x9b4e(0x69)+_0x40ee61+'):',_0x15bf8c);throw _0x15bf8c;}}};export const connectPlatform=_0x276a12=>{const _0x5c2895={'plgWE':function(_0x54e538,_0x289571){return _0x54e538(_0x289571);},'FsVnc':function(_0x9befea,_0x18c95f){return _0x9befea===_0x18c95f;},'xRrdn':_0x9b4e(0x6a),'NdYlO':function(_0x50b3a3,_0x3b2cba){return _0x50b3a3===_0x3b2cba;},'qxAIL':_0x9b4e(0x6b),'zNSdM':function(_0x33c0d6,_0x20a18e){return _0x33c0d6!==_0x20a18e;},'cLLDB':'xcYHJ','RoVEB':'MrCUJ','AMpBQ':function(_0xce17f8){return _0xce17f8();},'fVXBm':_0x9b4e(0x6c),'UeTFc':_0x9b4e(0x6d),'zzQsb':_0x9b4e(0x6e)};return new Promise((_0x42d5dc,_0x3b2627)=>{const _0x1fa0c8={'OVYRi':function(_0x3c70d8,_0x3b7a9f){return _0x5c2895[_0x9b4e(0x6f)](_0x3c70d8,_0x3b7a9f);}};if(_0x5c2895[_0x9b4e(0x70)](_0x5c2895['xRrdn'],_0x5c2895[_0x9b4e(0x71)]))try{if(_0x5c2895[_0x9b4e(0x72)](_0x5c2895['qxAIL'],_0x9b4e(0x6b))){const _0x5eaeb8=OAUTH_CONFIGS[_0x276a12];if(!_0x5eaeb8){if(_0x5c2895[_0x9b4e(0x73)](_0x5c2895[_0x9b4e(0x74)],_0x5c2895[_0x9b4e(0x75)]))throw new Error(_0x9b4e(0x3d)+_0x276a12);else{const _0x14a6ed=_0x3bd49c[_0x9b4e(0xf)]()['toString'](0x24)['substring'](0x2,0xf);return _0x1fa0c8[_0x9b4e(0x76)](_0x25af64,_0x14a6ed)[_0x9b4e(0x12)](0x0,0xa);}}const _0xd225f1=_0x5c2895[_0x9b4e(0x77)](generateState),_0x43f9c0=new URL(_0x5eaeb8[_0x9b4e(0x78)]);_0x43f9c0['searchParams'][_0x9b4e(0x79)](_0x9b4e(0x7a),_0x5eaeb8['clientId']),_0x43f9c0[_0x9b4e(0x2e)]['append'](_0x5c2895[_0x9b4e(0x7b)],_0x5eaeb8[_0x9b4e(0x46)]),_0x43f9c0[_0x9b4e(0x2e)]['append'](_0x5c2895['UeTFc'],_0x5eaeb8[_0x9b4e(0x7c)]),_0x43f9c0['searchParams']['append'](_0x5c2895[_0x9b4e(0x7d)],_0x5eaeb8[_0x9b4e(0x6e)]),_0x43f9c0[_0x9b4e(0x2e)]['append'](_0x9b4e(0x1f),_0xd225f1),currentOAuthState=_0xd225f1,currentOAuthPlatform=_0x276a12,currentOAuthResolve=_0x42d5dc,currentOAuthReject=_0x3b2627,Linking['openURL'](_0x43f9c0[_0x9b4e(0x10)]());}else{_0x3545e6['error']('Error\x20fetching\x20user\x20info\x20('+_0x21b120+'):',_0x2d2780);throw _0x4cc199;}}catch(_0xd6b43){_0x5c2895[_0x9b4e(0x6f)](_0x3b2627,_0xd6b43);}else delete _0x2f0e9c[_0x33d5b5];});};export const disconnectPlatform=async(_0x58d50e,_0x1a301e)=>{const _0xb72f80={'miyga':_0x9b4e(0x14),'SOpUy':_0x9b4e(0x7e),'cugQV':function(_0x16ebc2,_0x130ba2){return _0x16ebc2(_0x130ba2);},'XRprM':_0x9b4e(0x7f),'DkXdk':_0x9b4e(0x80)};try{await onairosApi[_0x9b4e(0x81)](_0xb72f80[_0x9b4e(0x82)],{'platform':_0x58d50e,'username':_0x1a301e[_0x9b4e(0x60)]});const _0x459283={..._0x1a301e[_0x9b4e(0x83)]};return _0x459283&&_0x58d50e in _0x459283&&delete _0x459283[_0x58d50e],await _0xb72f80[_0x9b4e(0x84)](updateCredentials,{..._0x1a301e,'platforms':_0x459283}),!![];}catch(_0x1e3864){if(_0xb72f80[_0x9b4e(0x85)]!==_0xb72f80[_0x9b4e(0x86)])return console[_0x9b4e(0x2b)](_0x9b4e(0x87)+_0x58d50e+'):',_0x1e3864),![];else Linking[_0x9b4e(0x13)](_0xb72f80['miyga'],_0xf4c298);}};export const storePlatformConnection=async(_0x52b283,_0x4862df,_0x4e4d21)=>{const _0x483f16={'XMQyP':function(_0x2a4a85,_0x5a2950){return _0x2a4a85(_0x5a2950);},'CQSZW':'OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','kzSLm':function(_0x3dbde9){return _0x3dbde9();},'JwlSS':_0x9b4e(0x6c),'xoKTc':'response_type','KSkFN':_0x9b4e(0x6e),'lUaXu':_0x9b4e(0x1f),'JLmlX':function(_0x53b608,_0x486274){return _0x53b608(_0x486274);},'UvNYI':function(_0x85c3b4,_0x2596da){return _0x85c3b4===_0x2596da;},'RTfRu':'instagram','ggHgq':_0x9b4e(0x5b),'BXtSp':_0x9b4e(0x88),'yrCVH':function(_0x16a5ca,_0x1fde0f){return _0x16a5ca+_0x1fde0f;},'usBLm':function(_0x1df25d,_0x37aada){return _0x1df25d===_0x37aada;},'pWyPx':_0x9b4e(0x53),'DiLcA':function(_0x5d297c,_0x380533){return _0x5d297c(_0x380533);},'UExAj':_0x9b4e(0x89)};try{const _0x3ea4a9=_0x483f16[_0x9b4e(0x8a)](_0x52b283,_0x483f16[_0x9b4e(0x8b)])||_0x52b283===_0x9b4e(0x53)||_0x52b283===_0x483f16[_0x9b4e(0x8c)]||_0x52b283===_0x9b4e(0x55);if(!_0x3ea4a9){if(_0x483f16[_0x9b4e(0x8a)]('gWIdW',_0x483f16[_0x9b4e(0x8d)])){_0x504345&&_0x483f16[_0x9b4e(0x8e)](_0x17b33e,new _0x5613ea(_0x483f16[_0x9b4e(0x8f)]));return;}else throw new Error(_0x9b4e(0x3d)+_0x52b283);}const _0x5bc1dd={..._0x4e4d21[_0x9b4e(0x83)]},_0x120180={'username':_0x4862df['username'],'userId':_0x4862df['userId'],'token':_0x4862df[_0x9b4e(0x90)],'refreshToken':_0x4862df[_0x9b4e(0x91)],'expiresAt':_0x4862df[_0x9b4e(0x92)]?_0x483f16[_0x9b4e(0x93)](Date[_0x9b4e(0x94)](),_0x4862df[_0x9b4e(0x92)]*0x3e8):null,'connectedAt':Date[_0x9b4e(0x94)]()};if(_0x483f16[_0x9b4e(0x95)](_0x52b283,_0x9b4e(0x51)))_0x5bc1dd[_0x9b4e(0x51)]=_0x120180;else{if(_0x483f16[_0x9b4e(0x8a)](_0x52b283,_0x483f16['pWyPx']))_0x5bc1dd[_0x9b4e(0x53)]=_0x120180;else{if(_0x52b283===_0x483f16[_0x9b4e(0x8c)])_0x5bc1dd[_0x9b4e(0x5b)]=_0x120180;else{if(_0x483f16[_0x9b4e(0x95)](_0x52b283,_0x9b4e(0x55)))_0x5bc1dd[_0x9b4e(0x55)]=_0x120180;}}}return await _0x483f16[_0x9b4e(0x96)](updateCredentials,{..._0x4e4d21,'platforms':_0x5bc1dd}),!![];}catch(_0x460221){if(_0x483f16[_0x9b4e(0x97)]===_0x9b4e(0x89))return console[_0x9b4e(0x2b)](_0x9b4e(0x98)+_0x52b283+'):',_0x460221),![];else try{const _0x3ae47e=_0x518c9e[_0x1e2e72];if(!_0x3ae47e)throw new _0x4082ac(_0x9b4e(0x3d)+_0x165a50);const _0x52203e=_0x483f16[_0x9b4e(0x99)](_0x3b32ed),_0x3e78a2=new _0x1ff3cf(_0x3ae47e[_0x9b4e(0x78)]);_0x3e78a2[_0x9b4e(0x2e)][_0x9b4e(0x79)]('client_id',_0x3ae47e[_0x9b4e(0x47)]),_0x3e78a2[_0x9b4e(0x2e)]['append'](_0x483f16['JwlSS'],_0x3ae47e[_0x9b4e(0x46)]),_0x3e78a2[_0x9b4e(0x2e)][_0x9b4e(0x79)](_0x483f16[_0x9b4e(0x9a)],_0x3ae47e['responseType']),_0x3e78a2[_0x9b4e(0x2e)][_0x9b4e(0x79)](_0x483f16[_0x9b4e(0x9b)],_0x3ae47e[_0x9b4e(0x6e)]),_0x3e78a2[_0x9b4e(0x2e)][_0x9b4e(0x79)](_0x483f16[_0x9b4e(0x9c)],_0x52203e),_0x215bd8=_0x52203e,_0x3d3725=_0x51065f,_0x61f76b=_0xd4c203,_0x3d7b21=_0x4fc629,Linking['openURL'](_0x3e78a2[_0x9b4e(0x10)]());}catch(_0x323839){_0x483f16['JLmlX'](_0x469ccb,_0x323839);}}};function _0x3587(){const _0x336983=['YOUR_INSTAGRAM_CLIENT_ID','user_profile,user_media','https://api.instagram.com/oauth/authorize','code','YOUR_YOUTUBE_CLIENT_ID','https://www.googleapis.com/auth/youtube.readonly','https://accounts.google.com/o/oauth2/auth','https://oauth2.googleapis.com/token','onairosanime://auth/pinterest','boards:read,pins:read','https://www.pinterest.com/oauth/','https://api.pinterest.com/v5/oauth/token','YOUR_REDDIT_CLIENT_ID','onairosanime://auth/reddit','https://www.reddit.com/api/v1/access_token','random','toString','XbRLN','substring','addEventListener','url','Error\x20handling\x20OAuth\x20deep\x20link:','JSIvu','pwdXC','removeAllListeners','function','MFPKp','orGBF','YNdpv','Failed\x20to\x20fetch\x20user\x20info','onairosanime://auth/','state','EoCHp','OAuth\x20state\x20mismatch\x20-\x20possible\x20CSRF\x20attack','bfWlU','VgTKg','No\x20authorization\x20code\x20received','hZQIZ','vrFYt','gppAR','startsWith','NbPwK','fZxhN','error','nUQXR','split','searchParams','get','BweAt','DyLKn','wGSPO','XgBrT','JxHYM','uWlqw','eAWJR','XzKhX','OAuth\x20error:\x20','CUsCf','Mxjmy','IkLKF','QSHIg','Unsupported\x20platform:\x20','dLsbh','OnPCT','dxoZQ','jAEse','application/x-www-form-urlencoded','WauAm','xtzXN','authorization_code','redirectUri','clientId','tokenEndpoint','rAcma','json','access_token','refresh_token','expires_in','jafTk','Error\x20exchanging\x20code\x20for\x20token\x20(','uZzIB','instagram','https://graph.instagram.com/me?fields=id,username','youtube','https://www.googleapis.com/youtube/v3/channels?part=snippet&mine=true','reddit','QwlRo','Bearer\x20','vuLAX','QoEtY','DdtwX','pinterest','https://api.pinterest.com/v5/user_account','vtRyX','https://oauth.reddit.com/api/v1/me','mOvta','username','items','snippet','title','full_name','name','bHhXh','wNCbn','nzPMN','Error\x20fetching\x20user\x20info\x20(','zWvHu','TmYAQ','redirect_uri','response_type','scope','plgWE','FsVnc','xRrdn','NdYlO','zNSdM','cLLDB','RoVEB','OVYRi','AMpBQ','authorizationEndpoint','append','client_id','fVXBm','responseType','zzQsb','/users/disconnect-platform','sJYns','opgVa','post','SOpUy','platforms','cugQV','XRprM','DkXdk','Error\x20disconnecting\x20platform\x20(','fNiTS','hMfWQ','UvNYI','RTfRu','ggHgq','BXtSp','XMQyP','CQSZW','token','refreshToken','expiresIn','yrCVH','now','usBLm','DiLcA','UExAj','Error\x20storing\x20platform\x20connection\x20(','kzSLm','xoKTc','KSkFN','lUaXu','BASE_URL'];_0x3587=function(){return _0x336983;};return _0x3587();}export const OAuthService={'initializeOAuthService':initializeOAuthService,'cleanupOAuthService':cleanupOAuthService,'connectPlatform':connectPlatform,'disconnectPlatform':disconnectPlatform,'storePlatformConnection':storePlatformConnection,'_apiBaseUrl':''+API_CONFIG[_0x9b4e(0x9d)]};
|
|
@@ -4,4 +4,4 @@ var __ONAIROS_REQ_REGISTRY__ = [
|
|
|
4
4
|
require('react-native-crypto-js')
|
|
5
5
|
];
|
|
6
6
|
function __ONAIROS_REQ_FUNC__(i) { return __ONAIROS_REQ_REGISTRY__[i]; }
|
|
7
|
-
const CryptoJS=__ONAIROS_REQ_FUNC__(0x0);import{getTemporaryPin}from'./pinStorageUtils';
|
|
7
|
+
const CryptoJS=__ONAIROS_REQ_FUNC__(0x0);import{getTemporaryPin}from'./pinStorageUtils';function _0x79f3(){const _0x13d901=['onairos-pin-encryption-key-2024','wtzNi','❌\x20Error\x20encrypting\x20PIN:','AES','encrypt','toString','log','🔐\x20PIN\x20encrypted\x20successfully','ErdPv','error','ajhjD','decrypt','enc','Utf8','VQpJx','dMLBg','fApJt','⚠️\x20No\x20temporary\x20PIN\x20available\x20for\x20encryption','✅\x20PIN\x20encrypted\x20for\x20API\x20transmission','HzGKq','hjUDz','TkRHJ','fuEYp','🔓\x20PIN\x20decrypted\x20successfully','🔒\x20PIN\x20hashed\x20successfully','fZLoX','❌\x20Error\x20hashing\x20PIN:','Rpvfc','lWOvl','VmYCk','bCZBE'];_0x79f3=function(){return _0x13d901;};return _0x79f3();}const ENCRYPTION_KEY=_0x2726(0x0);export const encryptPin=_0x48735b=>{const _0xe49b3={'ErdPv':_0x2726(0x1),'ajhjD':_0x2726(0x2)};try{const _0x181e47=CryptoJS[_0x2726(0x3)][_0x2726(0x4)](_0x48735b,ENCRYPTION_KEY)[_0x2726(0x5)]();return console[_0x2726(0x6)](_0x2726(0x7)),_0x181e47;}catch(_0x1bd477){if(_0xe49b3['ErdPv']!==_0xe49b3[_0x2726(0x8)]){_0x4c5a35[_0x2726(0x9)]('❌\x20Error\x20decrypting\x20PIN:',_0x378151);throw _0x243378;}else{console[_0x2726(0x9)](_0xe49b3[_0x2726(0xa)],_0x1bd477);throw _0x1bd477;}}};function _0x2726(_0x79f301,_0x27263f){_0x79f301=_0x79f301-0x0;const _0x5f41df=_0x79f3();let _0x3440a3=_0x5f41df[_0x79f301];return _0x3440a3;}export const decryptPin=_0x37e466=>{const _0x9dc741={'VQpJx':'🔓\x20PIN\x20decrypted\x20successfully','dMLBg':'❌\x20Error\x20decrypting\x20PIN:'};try{const _0x2af545=CryptoJS['AES'][_0x2726(0xb)](_0x37e466,ENCRYPTION_KEY),_0x44767b=_0x2af545['toString'](CryptoJS[_0x2726(0xc)][_0x2726(0xd)]);return console['log'](_0x9dc741[_0x2726(0xe)]),_0x44767b;}catch(_0x50ee77){console[_0x2726(0x9)](_0x9dc741[_0x2726(0xf)],_0x50ee77);throw _0x50ee77;}};export const getEncryptedPinForAPI=async()=>{const _0x152f42={'HzGKq':'ZgRRH','hjUDz':_0x2726(0x10),'TkRHJ':function(_0x236814){return _0x236814();},'alHZT':_0x2726(0x11),'MNLCD':_0x2726(0x12),'fuEYp':'❌\x20Error\x20getting\x20encrypted\x20PIN\x20for\x20API:'};try{if(_0x152f42[_0x2726(0x13)]!==_0x152f42[_0x2726(0x14)]){const _0x46b76c=_0x152f42[_0x2726(0x15)](getTemporaryPin);if(!_0x46b76c)return console['log'](_0x152f42['alHZT']),null;const _0x503644=encryptPin(_0x46b76c);return console['log'](_0x152f42['MNLCD']),_0x503644;}else{_0xacecdd[_0x2726(0x9)](_0x2726(0x2),_0x55da3f);throw _0xd3975f;}}catch(_0x1c2fe3){return console[_0x2726(0x9)](_0x152f42[_0x2726(0x16)],_0x1c2fe3),null;}};export const hashPin=_0x288768=>{const _0x4ea31a={'VmYCk':_0x2726(0x17),'Rpvfc':function(_0xcc5180,_0x9eb1e1){return _0xcc5180+_0x9eb1e1;},'YNmdT':_0x2726(0x18),'lWOvl':_0x2726(0x19),'bCZBE':_0x2726(0x1a)};try{const _0x256e45=CryptoJS['SHA256'](_0x4ea31a[_0x2726(0x1b)](_0x288768,ENCRYPTION_KEY))[_0x2726(0x5)]();return console['log'](_0x4ea31a['YNmdT']),_0x256e45;}catch(_0x5c639d){if(_0x4ea31a[_0x2726(0x1c)]!==_0x4ea31a[_0x2726(0x1c)]){const _0x4078ea=_0x592ec5[_0x2726(0x3)][_0x2726(0xb)](_0x1086c0,_0x3cdf4c),_0x43c9ea=_0x4078ea[_0x2726(0x5)](_0x14a79d[_0x2726(0xc)]['Utf8']);return _0x53cda7[_0x2726(0x6)](_0x4ea31a[_0x2726(0x1d)]),_0x43c9ea;}else{console[_0x2726(0x9)](_0x4ea31a[_0x2726(0x1e)],_0x5c639d);throw _0x5c639d;}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{biometricPinService}from'./biometricPinService';export const getStoredPinForTraining=async()=>{const
|
|
1
|
+
import{biometricPinService}from'./biometricPinService';function _0x50ad(_0x458731,_0x50ada2){_0x458731=_0x458731-0x0;const _0x45941e=_0x4587();let _0x4a7f14=_0x45941e[_0x458731];return _0x4a7f14;}export const getStoredPinForTraining=async()=>{const _0x479824={'cqblO':_0x50ad(0x0),'TxdLF':_0x50ad(0x1),'xvJgz':_0x50ad(0x2),'CMkcQ':_0x50ad(0x3),'RGCDf':function(_0x48718c,_0x547136){return _0x48718c===_0x547136;},'CtBpa':'❌\x20Error\x20retrieving\x20stored\x20PIN:'};try{console[_0x50ad(0x4)](_0x479824[_0x50ad(0x5)]);const _0x5ecc0c=await biometricPinService[_0x50ad(0x6)]();if(!_0x5ecc0c)return console[_0x50ad(0x4)](_0x479824['TxdLF']),null;const _0x43350f=await biometricPinService['retrievePinWithBiometric']();return _0x43350f?(console['log'](_0x479824[_0x50ad(0x7)]),_0x43350f):(console[_0x50ad(0x4)](_0x479824['CMkcQ']),null);}catch(_0xe15605){return _0x479824[_0x50ad(0x8)](_0x50ad(0x9),'tIpuJ')?_0x3ef7bc:(console[_0x50ad(0xa)](_0x479824[_0x50ad(0xb)],_0xe15605),null);}};export const hasStoredPin=async()=>{const _0xf313d4={'ySSDM':'❌\x20Error\x20checking\x20PIN\x20storage:'};try{return await biometricPinService[_0x50ad(0x6)]();}catch(_0x3652c2){return console['error'](_0xf313d4[_0x50ad(0xc)],_0x3652c2),![];}};export const clearStoredPin=async()=>{const _0x2489dd={'XQlwI':'📝\x20Temporary\x20PIN\x20set\x20for\x20training','TjetS':function(_0x271ac5,_0xc32b7f){return _0x271ac5!==_0xc32b7f;},'hLPFi':_0x50ad(0xd),'bkbUr':'🗑️\x20Clearing\x20stored\x20PIN...','sNgRt':'❌\x20Error\x20clearing\x20stored\x20PIN:'};try{if(_0x2489dd[_0x50ad(0xe)](_0x2489dd['hLPFi'],_0x50ad(0xd)))_0x3a9036=_0x48df40,_0x11c7be[_0x50ad(0x4)](_0x2489dd[_0x50ad(0xf)]);else return console[_0x50ad(0x4)](_0x2489dd[_0x50ad(0x10)]),await biometricPinService[_0x50ad(0x11)]();}catch(_0x4c473e){return console[_0x50ad(0xa)](_0x2489dd['sNgRt'],_0x4c473e),![];}};export const getPinForTraining=async _0x3b054a=>{const _0x53a7ba={'Wfrdx':'❌\x20Error\x20retrieving\x20stored\x20PIN:','TyOQd':function(_0x3f0c3d,_0x1c130e){return _0x3f0c3d===_0x1c130e;},'ACPDO':'UubEb','odAep':function(_0x198d69){return _0x198d69();}};if(_0x3b054a)return _0x53a7ba[_0x50ad(0x12)](_0x53a7ba[_0x50ad(0x13)],_0x53a7ba['ACPDO'])?(console[_0x50ad(0x4)](_0x50ad(0x14)),_0x3b054a):(_0x24f1a2[_0x50ad(0xa)](_0x53a7ba['Wfrdx'],_0x275d2a),null);return await _0x53a7ba['odAep'](getStoredPinForTraining);};let temporaryPin=null;export const setTemporaryPin=_0x4a0829=>{const _0x8085cf={'usTeW':_0x50ad(0x15)};temporaryPin=_0x4a0829,console[_0x50ad(0x4)](_0x8085cf['usTeW']);};export const getTemporaryPin=()=>{return temporaryPin;};export const clearTemporaryPin=()=>{temporaryPin=null,console['log'](_0x50ad(0x16));};function _0x4587(){const _0x4426b5=['🔓\x20Retrieving\x20stored\x20PIN\x20for\x20training...','⚠️\x20No\x20PIN\x20stored\x20in\x20secure\x20storage','✅\x20PIN\x20retrieved\x20successfully\x20for\x20training','❌\x20Failed\x20to\x20retrieve\x20PIN\x20or\x20user\x20cancelled\x20authentication','log','cqblO','isPinStored','xvJgz','RGCDf','HkShm','error','CtBpa','ySSDM','vERlZ','TjetS','XQlwI','bkbUr','removePinFromStorage','TyOQd','ACPDO','📝\x20Using\x20temporary\x20PIN\x20for\x20training','📝\x20Temporary\x20PIN\x20set\x20for\x20training','🗑️\x20Temporary\x20PIN\x20cleared'];_0x4587=function(){return _0x4426b5;};return _0x4587();}
|